worked on GarageApp stuff
This commit is contained in:
parent
60aaf17af3
commit
eb606572b0
51919 changed files with 2168177 additions and 18 deletions
50
node_modules/@mui/material/esm/ImageListItemBar/ImageListItemBar.d.ts
generated
vendored
Normal file
50
node_modules/@mui/material/esm/ImageListItemBar/ImageListItemBar.d.ts
generated
vendored
Normal file
|
|
@ -0,0 +1,50 @@
|
|||
import * as React from 'react';
|
||||
import { SxProps } from '@mui/system';
|
||||
import { Theme } from "../styles/index.js";
|
||||
import { InternalStandardProps as StandardProps } from "../internal/index.js";
|
||||
import { ImageListItemBarClasses } from "./imageListItemBarClasses.js";
|
||||
export interface ImageListItemBarProps extends StandardProps<React.HTMLAttributes<HTMLDivElement>, 'title'> {
|
||||
/**
|
||||
* An IconButton element to be used as secondary action target
|
||||
* (primary action target is the item itself).
|
||||
*/
|
||||
actionIcon?: React.ReactNode;
|
||||
/**
|
||||
* Position of secondary action IconButton.
|
||||
* @default 'right'
|
||||
*/
|
||||
actionPosition?: 'left' | 'right';
|
||||
/**
|
||||
* Override or extend the styles applied to the component.
|
||||
*/
|
||||
classes?: Partial<ImageListItemBarClasses>;
|
||||
/**
|
||||
* Position of the title bar.
|
||||
* @default 'bottom'
|
||||
*/
|
||||
position?: 'below' | 'top' | 'bottom';
|
||||
/**
|
||||
* String or element serving as subtitle (support text).
|
||||
*/
|
||||
subtitle?: React.ReactNode;
|
||||
/**
|
||||
* The system prop that allows defining system overrides as well as additional CSS styles.
|
||||
*/
|
||||
sx?: SxProps<Theme>;
|
||||
/**
|
||||
* Title to be displayed.
|
||||
*/
|
||||
title?: React.ReactNode;
|
||||
}
|
||||
|
||||
/**
|
||||
*
|
||||
* Demos:
|
||||
*
|
||||
* - [Image List](https://mui.com/material-ui/react-image-list/)
|
||||
*
|
||||
* API:
|
||||
*
|
||||
* - [ImageListItemBar API](https://mui.com/material-ui/api/image-list-item-bar/)
|
||||
*/
|
||||
export default function ImageListItemBar(props: ImageListItemBarProps): React.JSX.Element;
|
||||
251
node_modules/@mui/material/esm/ImageListItemBar/ImageListItemBar.js
generated
vendored
Normal file
251
node_modules/@mui/material/esm/ImageListItemBar/ImageListItemBar.js
generated
vendored
Normal file
|
|
@ -0,0 +1,251 @@
|
|||
'use client';
|
||||
|
||||
import composeClasses from '@mui/utils/composeClasses';
|
||||
import clsx from 'clsx';
|
||||
import PropTypes from 'prop-types';
|
||||
import * as React from 'react';
|
||||
import { styled } from "../zero-styled/index.js";
|
||||
import memoTheme from "../utils/memoTheme.js";
|
||||
import { useDefaultProps } from "../DefaultPropsProvider/index.js";
|
||||
import capitalize from "../utils/capitalize.js";
|
||||
import { getImageListItemBarUtilityClass } from "./imageListItemBarClasses.js";
|
||||
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
||||
const useUtilityClasses = ownerState => {
|
||||
const {
|
||||
classes,
|
||||
position,
|
||||
actionIcon,
|
||||
actionPosition
|
||||
} = ownerState;
|
||||
const slots = {
|
||||
root: ['root', `position${capitalize(position)}`, `actionPosition${capitalize(actionPosition)}`],
|
||||
titleWrap: ['titleWrap', `titleWrap${capitalize(position)}`, actionIcon && `titleWrapActionPos${capitalize(actionPosition)}`],
|
||||
title: ['title'],
|
||||
subtitle: ['subtitle'],
|
||||
actionIcon: ['actionIcon', `actionIconActionPos${capitalize(actionPosition)}`]
|
||||
};
|
||||
return composeClasses(slots, getImageListItemBarUtilityClass, classes);
|
||||
};
|
||||
const ImageListItemBarRoot = styled('div', {
|
||||
name: 'MuiImageListItemBar',
|
||||
slot: 'Root',
|
||||
overridesResolver: (props, styles) => {
|
||||
const {
|
||||
ownerState
|
||||
} = props;
|
||||
return [styles.root, styles[`position${capitalize(ownerState.position)}`]];
|
||||
}
|
||||
})(memoTheme(({
|
||||
theme
|
||||
}) => {
|
||||
return {
|
||||
position: 'absolute',
|
||||
left: 0,
|
||||
right: 0,
|
||||
background: 'rgba(0, 0, 0, 0.5)',
|
||||
display: 'flex',
|
||||
alignItems: 'center',
|
||||
fontFamily: theme.typography.fontFamily,
|
||||
variants: [{
|
||||
props: {
|
||||
position: 'bottom'
|
||||
},
|
||||
style: {
|
||||
bottom: 0
|
||||
}
|
||||
}, {
|
||||
props: {
|
||||
position: 'top'
|
||||
},
|
||||
style: {
|
||||
top: 0
|
||||
}
|
||||
}, {
|
||||
props: {
|
||||
position: 'below'
|
||||
},
|
||||
style: {
|
||||
position: 'relative',
|
||||
background: 'transparent',
|
||||
alignItems: 'normal'
|
||||
}
|
||||
}]
|
||||
};
|
||||
}));
|
||||
const ImageListItemBarTitleWrap = styled('div', {
|
||||
name: 'MuiImageListItemBar',
|
||||
slot: 'TitleWrap',
|
||||
overridesResolver: (props, styles) => {
|
||||
const {
|
||||
ownerState
|
||||
} = props;
|
||||
return [styles.titleWrap, styles[`titleWrap${capitalize(ownerState.position)}`], ownerState.actionIcon && styles[`titleWrapActionPos${capitalize(ownerState.actionPosition)}`]];
|
||||
}
|
||||
})(memoTheme(({
|
||||
theme
|
||||
}) => {
|
||||
return {
|
||||
flexGrow: 1,
|
||||
padding: '12px 16px',
|
||||
color: (theme.vars || theme).palette.common.white,
|
||||
overflow: 'hidden',
|
||||
variants: [{
|
||||
props: {
|
||||
position: 'below'
|
||||
},
|
||||
style: {
|
||||
padding: '6px 0 12px',
|
||||
color: 'inherit'
|
||||
}
|
||||
}, {
|
||||
props: ({
|
||||
ownerState
|
||||
}) => ownerState.actionIcon && ownerState.actionPosition === 'left',
|
||||
style: {
|
||||
paddingLeft: 0
|
||||
}
|
||||
}, {
|
||||
props: ({
|
||||
ownerState
|
||||
}) => ownerState.actionIcon && ownerState.actionPosition === 'right',
|
||||
style: {
|
||||
paddingRight: 0
|
||||
}
|
||||
}]
|
||||
};
|
||||
}));
|
||||
const ImageListItemBarTitle = styled('div', {
|
||||
name: 'MuiImageListItemBar',
|
||||
slot: 'Title'
|
||||
})(memoTheme(({
|
||||
theme
|
||||
}) => {
|
||||
return {
|
||||
fontSize: theme.typography.pxToRem(16),
|
||||
lineHeight: '24px',
|
||||
textOverflow: 'ellipsis',
|
||||
overflow: 'hidden',
|
||||
whiteSpace: 'nowrap'
|
||||
};
|
||||
}));
|
||||
const ImageListItemBarSubtitle = styled('div', {
|
||||
name: 'MuiImageListItemBar',
|
||||
slot: 'Subtitle'
|
||||
})(memoTheme(({
|
||||
theme
|
||||
}) => {
|
||||
return {
|
||||
fontSize: theme.typography.pxToRem(12),
|
||||
lineHeight: 1,
|
||||
textOverflow: 'ellipsis',
|
||||
overflow: 'hidden',
|
||||
whiteSpace: 'nowrap'
|
||||
};
|
||||
}));
|
||||
const ImageListItemBarActionIcon = styled('div', {
|
||||
name: 'MuiImageListItemBar',
|
||||
slot: 'ActionIcon',
|
||||
overridesResolver: (props, styles) => {
|
||||
const {
|
||||
ownerState
|
||||
} = props;
|
||||
return [styles.actionIcon, styles[`actionIconActionPos${capitalize(ownerState.actionPosition)}`]];
|
||||
}
|
||||
})({
|
||||
variants: [{
|
||||
props: {
|
||||
actionPosition: 'left'
|
||||
},
|
||||
style: {
|
||||
order: -1
|
||||
}
|
||||
}]
|
||||
});
|
||||
const ImageListItemBar = /*#__PURE__*/React.forwardRef(function ImageListItemBar(inProps, ref) {
|
||||
const props = useDefaultProps({
|
||||
props: inProps,
|
||||
name: 'MuiImageListItemBar'
|
||||
});
|
||||
const {
|
||||
actionIcon,
|
||||
actionPosition = 'right',
|
||||
className,
|
||||
subtitle,
|
||||
title,
|
||||
position = 'bottom',
|
||||
...other
|
||||
} = props;
|
||||
const ownerState = {
|
||||
...props,
|
||||
position,
|
||||
actionPosition
|
||||
};
|
||||
const classes = useUtilityClasses(ownerState);
|
||||
return /*#__PURE__*/_jsxs(ImageListItemBarRoot, {
|
||||
ownerState: ownerState,
|
||||
className: clsx(classes.root, className),
|
||||
ref: ref,
|
||||
...other,
|
||||
children: [/*#__PURE__*/_jsxs(ImageListItemBarTitleWrap, {
|
||||
ownerState: ownerState,
|
||||
className: classes.titleWrap,
|
||||
children: [/*#__PURE__*/_jsx(ImageListItemBarTitle, {
|
||||
className: classes.title,
|
||||
children: title
|
||||
}), subtitle ? /*#__PURE__*/_jsx(ImageListItemBarSubtitle, {
|
||||
className: classes.subtitle,
|
||||
children: subtitle
|
||||
}) : null]
|
||||
}), actionIcon ? /*#__PURE__*/_jsx(ImageListItemBarActionIcon, {
|
||||
ownerState: ownerState,
|
||||
className: classes.actionIcon,
|
||||
children: actionIcon
|
||||
}) : null]
|
||||
});
|
||||
});
|
||||
process.env.NODE_ENV !== "production" ? ImageListItemBar.propTypes /* remove-proptypes */ = {
|
||||
// ┌────────────────────────────── Warning ──────────────────────────────┐
|
||||
// │ These PropTypes are generated from the TypeScript type definitions. │
|
||||
// │ To update them, edit the d.ts file and run `pnpm proptypes`. │
|
||||
// └─────────────────────────────────────────────────────────────────────┘
|
||||
/**
|
||||
* An IconButton element to be used as secondary action target
|
||||
* (primary action target is the item itself).
|
||||
*/
|
||||
actionIcon: PropTypes.node,
|
||||
/**
|
||||
* Position of secondary action IconButton.
|
||||
* @default 'right'
|
||||
*/
|
||||
actionPosition: PropTypes.oneOf(['left', 'right']),
|
||||
/**
|
||||
* @ignore
|
||||
*/
|
||||
children: PropTypes.node,
|
||||
/**
|
||||
* Override or extend the styles applied to the component.
|
||||
*/
|
||||
classes: PropTypes.object,
|
||||
/**
|
||||
* @ignore
|
||||
*/
|
||||
className: PropTypes.string,
|
||||
/**
|
||||
* Position of the title bar.
|
||||
* @default 'bottom'
|
||||
*/
|
||||
position: PropTypes.oneOf(['below', 'bottom', 'top']),
|
||||
/**
|
||||
* String or element serving as subtitle (support text).
|
||||
*/
|
||||
subtitle: PropTypes.node,
|
||||
/**
|
||||
* The system prop that allows defining system overrides as well as additional CSS styles.
|
||||
*/
|
||||
sx: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.func, PropTypes.object, PropTypes.bool])), PropTypes.func, PropTypes.object]),
|
||||
/**
|
||||
* Title to be displayed.
|
||||
*/
|
||||
title: PropTypes.node
|
||||
} : void 0;
|
||||
export default ImageListItemBar;
|
||||
42
node_modules/@mui/material/esm/ImageListItemBar/imageListItemBarClasses.d.ts
generated
vendored
Normal file
42
node_modules/@mui/material/esm/ImageListItemBar/imageListItemBarClasses.d.ts
generated
vendored
Normal file
|
|
@ -0,0 +1,42 @@
|
|||
export interface ImageListItemBarClasses {
|
||||
/** Styles applied to the root element. */
|
||||
root: string;
|
||||
/** Styles applied to the root element if `position="bottom"`. */
|
||||
positionBottom: string;
|
||||
/** Styles applied to the root element if `position="top"`. */
|
||||
positionTop: string;
|
||||
/** Styles applied to the root element if `position="below"`. */
|
||||
positionBelow: string;
|
||||
/** Styles applied to the action container element if `actionPosition="left"`. */
|
||||
actionPositionLeft: string;
|
||||
/** Styles applied to the action container element if `actionPosition="right"`. */
|
||||
actionPositionRight: string;
|
||||
/** Styles applied to the title and subtitle container element. */
|
||||
titleWrap: string;
|
||||
/** Styles applied to the title and subtitle container element if `position="below"`.
|
||||
* @deprecated Combine the [.MuiImageListItemBar-titleWrap](/material-ui/api/image-list-item-bar/#image-list-item-bar-classes-titleWrap) and [.MuiImageListItemBar-positionBelow](/material-ui/api/image-list-item-bar/#image-list-item-bar-classes-positionBelow) classes instead. See [Migrating from deprecated APIs](/material-ui/migration/migrating-from-deprecated-apis/) for more details.
|
||||
*/
|
||||
titleWrapBelow: string;
|
||||
/** Styles applied to the container element if `actionPosition="left"`.
|
||||
* @deprecated Combine the [.MuiImageListItemBar-titleWrap](/material-ui/api/image-list-item-bar/#image-list-item-bar-classes-titleWrap) and [.MuiImageListItemBar-actionPositionLeft](/material-ui/api/image-list-item-bar/#image-list-item-bar-classes-actionPositionLeft) classes instead. See [Migrating from deprecated APIs](/material-ui/migration/migrating-from-deprecated-apis/) for more details.
|
||||
*/
|
||||
titleWrapActionPosLeft: string;
|
||||
/** Styles applied to the container element if `actionPosition="right"`.
|
||||
* @deprecated Combine the [.MuiImageListItemBar-titleWrap](/material-ui/api/image-list-item-bar/#image-list-item-bar-classes-titleWrap) and [.MuiImageListItemBar-actionPositionRight](/material-ui/api/image-list-item-bar/#image-list-item-bar-classes-actionPositionRight) classes instead. See [Migrating from deprecated APIs](/material-ui/migration/migrating-from-deprecated-apis/) for more details.
|
||||
*/
|
||||
titleWrapActionPosRight: string;
|
||||
/** Styles applied to the title container element. */
|
||||
title: string;
|
||||
/** Styles applied to the subtitle container element. */
|
||||
subtitle: string;
|
||||
/** Styles applied to the actionIcon if supplied. */
|
||||
actionIcon: string;
|
||||
/** Styles applied to the actionIcon if `actionPosition="left"`.
|
||||
* @deprecated Combine the [.MuiImageListItemBar-actionIcon](/material-ui/api/image-list-item-bar/#image-list-item-bar-classes-actionIcon) and [.MuiImageListItemBar-actionPositionLeft](/material-ui/api/image-list-item-bar/#image-list-item-bar-classes-actionPositionLeft) classes instead. See [Migrating from deprecated APIs](/material-ui/migration/migrating-from-deprecated-apis/) for more details.
|
||||
*/
|
||||
actionIconActionPosLeft: string;
|
||||
}
|
||||
export type ImageListItemBarClassKey = keyof ImageListItemBarClasses;
|
||||
export declare function getImageListItemBarUtilityClass(slot: string): string;
|
||||
declare const imageListItemBarClasses: ImageListItemBarClasses;
|
||||
export default imageListItemBarClasses;
|
||||
7
node_modules/@mui/material/esm/ImageListItemBar/imageListItemBarClasses.js
generated
vendored
Normal file
7
node_modules/@mui/material/esm/ImageListItemBar/imageListItemBarClasses.js
generated
vendored
Normal file
|
|
@ -0,0 +1,7 @@
|
|||
import generateUtilityClasses from '@mui/utils/generateUtilityClasses';
|
||||
import generateUtilityClass from '@mui/utils/generateUtilityClass';
|
||||
export function getImageListItemBarUtilityClass(slot) {
|
||||
return generateUtilityClass('MuiImageListItemBar', slot);
|
||||
}
|
||||
const imageListItemBarClasses = generateUtilityClasses('MuiImageListItemBar', ['root', 'positionBottom', 'positionTop', 'positionBelow', 'actionPositionLeft', 'actionPositionRight', 'titleWrap', 'titleWrapBottom', 'titleWrapTop', 'titleWrapBelow', 'titleWrapActionPosLeft', 'titleWrapActionPosRight', 'title', 'subtitle', 'actionIcon', 'actionIconActionPosLeft', 'actionIconActionPosRight']);
|
||||
export default imageListItemBarClasses;
|
||||
4
node_modules/@mui/material/esm/ImageListItemBar/index.d.ts
generated
vendored
Normal file
4
node_modules/@mui/material/esm/ImageListItemBar/index.d.ts
generated
vendored
Normal file
|
|
@ -0,0 +1,4 @@
|
|||
export { default } from "./ImageListItemBar.js";
|
||||
export * from "./ImageListItemBar.js";
|
||||
export * from "./imageListItemBarClasses.js";
|
||||
export { default as imageListItemBarClasses } from "./imageListItemBarClasses.js";
|
||||
3
node_modules/@mui/material/esm/ImageListItemBar/index.js
generated
vendored
Normal file
3
node_modules/@mui/material/esm/ImageListItemBar/index.js
generated
vendored
Normal file
|
|
@ -0,0 +1,3 @@
|
|||
export { default } from "./ImageListItemBar.js";
|
||||
export * from "./imageListItemBarClasses.js";
|
||||
export { default as imageListItemBarClasses } from "./imageListItemBarClasses.js";
|
||||
Loading…
Add table
Add a link
Reference in a new issue