worked on GarageApp stuff
This commit is contained in:
parent
60aaf17af3
commit
eb606572b0
51919 changed files with 2168177 additions and 18 deletions
59
node_modules/@mui/material/AppBar/AppBar.d.ts
generated
vendored
Normal file
59
node_modules/@mui/material/AppBar/AppBar.d.ts
generated
vendored
Normal file
|
|
@ -0,0 +1,59 @@
|
|||
import * as React from 'react';
|
||||
import { SxProps } from '@mui/system';
|
||||
import { OverridableStringUnion } from '@mui/types';
|
||||
import { OverridableComponent, OverrideProps } from "../OverridableComponent/index.js";
|
||||
import { PropTypes, Theme } from "../styles/index.js";
|
||||
import { AppBarClasses } from "./appBarClasses.js";
|
||||
import { ExtendPaperTypeMap } from "../Paper/Paper.js";
|
||||
export interface AppBarPropsColorOverrides {}
|
||||
export interface AppBarOwnProps {
|
||||
/**
|
||||
* Override or extend the styles applied to the component.
|
||||
*/
|
||||
classes?: Partial<AppBarClasses>;
|
||||
/**
|
||||
* The color of the component.
|
||||
* It supports both default and custom theme colors, which can be added as shown in the
|
||||
* [palette customization guide](https://mui.com/material-ui/customization/palette/#custom-colors).
|
||||
* @default 'primary'
|
||||
*/
|
||||
color?: OverridableStringUnion<PropTypes.Color | 'transparent' | 'error' | 'info' | 'success' | 'warning', AppBarPropsColorOverrides>;
|
||||
/**
|
||||
* If true, the `color` prop is applied in dark mode.
|
||||
* @default false
|
||||
*/
|
||||
enableColorOnDark?: boolean;
|
||||
/**
|
||||
* The positioning type. The behavior of the different options is described
|
||||
* [in the MDN web docs](https://developer.mozilla.org/en-US/docs/Web/CSS/position).
|
||||
* Note: `sticky` is not universally supported and will fall back to `static` when unavailable.
|
||||
* @default 'fixed'
|
||||
*/
|
||||
position?: 'fixed' | 'absolute' | 'sticky' | 'static' | 'relative';
|
||||
/**
|
||||
* The system prop that allows defining system overrides as well as additional CSS styles.
|
||||
*/
|
||||
sx?: SxProps<Theme>;
|
||||
}
|
||||
export type AppBarTypeMap<AdditionalProps = {}, RootComponent extends React.ElementType = 'header'> = ExtendPaperTypeMap<{
|
||||
props: AdditionalProps & AppBarOwnProps;
|
||||
defaultComponent: RootComponent;
|
||||
}, 'position' | 'color' | 'classes'>;
|
||||
|
||||
/**
|
||||
*
|
||||
* Demos:
|
||||
*
|
||||
* - [App Bar](https://mui.com/material-ui/react-app-bar/)
|
||||
*
|
||||
* API:
|
||||
*
|
||||
* - [AppBar API](https://mui.com/material-ui/api/app-bar/)
|
||||
* - inherits [Paper API](https://mui.com/material-ui/api/paper/)
|
||||
*/
|
||||
|
||||
declare const AppBar: OverridableComponent<AppBarTypeMap>;
|
||||
export type AppBarProps<RootComponent extends React.ElementType = AppBarTypeMap['defaultComponent'], AdditionalProps = {}> = OverrideProps<AppBarTypeMap<AdditionalProps, RootComponent>, RootComponent> & {
|
||||
component?: React.ElementType;
|
||||
};
|
||||
export default AppBar;
|
||||
234
node_modules/@mui/material/AppBar/AppBar.js
generated
vendored
Normal file
234
node_modules/@mui/material/AppBar/AppBar.js
generated
vendored
Normal file
|
|
@ -0,0 +1,234 @@
|
|||
"use strict";
|
||||
'use client';
|
||||
|
||||
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault").default;
|
||||
var _interopRequireWildcard = require("@babel/runtime/helpers/interopRequireWildcard").default;
|
||||
Object.defineProperty(exports, "__esModule", {
|
||||
value: true
|
||||
});
|
||||
exports.default = void 0;
|
||||
var React = _interopRequireWildcard(require("react"));
|
||||
var _propTypes = _interopRequireDefault(require("prop-types"));
|
||||
var _clsx = _interopRequireDefault(require("clsx"));
|
||||
var _composeClasses = _interopRequireDefault(require("@mui/utils/composeClasses"));
|
||||
var _zeroStyled = require("../zero-styled");
|
||||
var _memoTheme = _interopRequireDefault(require("../utils/memoTheme"));
|
||||
var _DefaultPropsProvider = require("../DefaultPropsProvider");
|
||||
var _capitalize = _interopRequireDefault(require("../utils/capitalize"));
|
||||
var _createSimplePaletteValueFilter = _interopRequireDefault(require("../utils/createSimplePaletteValueFilter"));
|
||||
var _Paper = _interopRequireDefault(require("../Paper"));
|
||||
var _appBarClasses = require("./appBarClasses");
|
||||
var _jsxRuntime = require("react/jsx-runtime");
|
||||
const useUtilityClasses = ownerState => {
|
||||
const {
|
||||
color,
|
||||
position,
|
||||
classes
|
||||
} = ownerState;
|
||||
const slots = {
|
||||
root: ['root', `color${(0, _capitalize.default)(color)}`, `position${(0, _capitalize.default)(position)}`]
|
||||
};
|
||||
return (0, _composeClasses.default)(slots, _appBarClasses.getAppBarUtilityClass, classes);
|
||||
};
|
||||
|
||||
// var2 is the fallback.
|
||||
// Ex. var1: 'var(--a)', var2: 'var(--b)'; return: 'var(--a, var(--b))'
|
||||
const joinVars = (var1, var2) => var1 ? `${var1?.replace(')', '')}, ${var2})` : var2;
|
||||
const AppBarRoot = (0, _zeroStyled.styled)(_Paper.default, {
|
||||
name: 'MuiAppBar',
|
||||
slot: 'Root',
|
||||
overridesResolver: (props, styles) => {
|
||||
const {
|
||||
ownerState
|
||||
} = props;
|
||||
return [styles.root, styles[`position${(0, _capitalize.default)(ownerState.position)}`], styles[`color${(0, _capitalize.default)(ownerState.color)}`]];
|
||||
}
|
||||
})((0, _memoTheme.default)(({
|
||||
theme
|
||||
}) => ({
|
||||
display: 'flex',
|
||||
flexDirection: 'column',
|
||||
width: '100%',
|
||||
boxSizing: 'border-box',
|
||||
// Prevent padding issue with the Modal and fixed positioned AppBar.
|
||||
flexShrink: 0,
|
||||
variants: [{
|
||||
props: {
|
||||
position: 'fixed'
|
||||
},
|
||||
style: {
|
||||
position: 'fixed',
|
||||
zIndex: (theme.vars || theme).zIndex.appBar,
|
||||
top: 0,
|
||||
left: 'auto',
|
||||
right: 0,
|
||||
'@media print': {
|
||||
// Prevent the app bar to be visible on each printed page.
|
||||
position: 'absolute'
|
||||
}
|
||||
}
|
||||
}, {
|
||||
props: {
|
||||
position: 'absolute'
|
||||
},
|
||||
style: {
|
||||
position: 'absolute',
|
||||
zIndex: (theme.vars || theme).zIndex.appBar,
|
||||
top: 0,
|
||||
left: 'auto',
|
||||
right: 0
|
||||
}
|
||||
}, {
|
||||
props: {
|
||||
position: 'sticky'
|
||||
},
|
||||
style: {
|
||||
position: 'sticky',
|
||||
zIndex: (theme.vars || theme).zIndex.appBar,
|
||||
top: 0,
|
||||
left: 'auto',
|
||||
right: 0
|
||||
}
|
||||
}, {
|
||||
props: {
|
||||
position: 'static'
|
||||
},
|
||||
style: {
|
||||
position: 'static'
|
||||
}
|
||||
}, {
|
||||
props: {
|
||||
position: 'relative'
|
||||
},
|
||||
style: {
|
||||
position: 'relative'
|
||||
}
|
||||
}, {
|
||||
props: {
|
||||
color: 'inherit'
|
||||
},
|
||||
style: {
|
||||
'--AppBar-color': 'inherit'
|
||||
}
|
||||
}, {
|
||||
props: {
|
||||
color: 'default'
|
||||
},
|
||||
style: {
|
||||
'--AppBar-background': theme.vars ? theme.vars.palette.AppBar.defaultBg : theme.palette.grey[100],
|
||||
'--AppBar-color': theme.vars ? theme.vars.palette.text.primary : theme.palette.getContrastText(theme.palette.grey[100]),
|
||||
...theme.applyStyles('dark', {
|
||||
'--AppBar-background': theme.vars ? theme.vars.palette.AppBar.defaultBg : theme.palette.grey[900],
|
||||
'--AppBar-color': theme.vars ? theme.vars.palette.text.primary : theme.palette.getContrastText(theme.palette.grey[900])
|
||||
})
|
||||
}
|
||||
}, ...Object.entries(theme.palette).filter((0, _createSimplePaletteValueFilter.default)(['contrastText'])).map(([color]) => ({
|
||||
props: {
|
||||
color
|
||||
},
|
||||
style: {
|
||||
'--AppBar-background': (theme.vars ?? theme).palette[color].main,
|
||||
'--AppBar-color': (theme.vars ?? theme).palette[color].contrastText
|
||||
}
|
||||
})), {
|
||||
props: props => props.enableColorOnDark === true && !['inherit', 'transparent'].includes(props.color),
|
||||
style: {
|
||||
backgroundColor: 'var(--AppBar-background)',
|
||||
color: 'var(--AppBar-color)'
|
||||
}
|
||||
}, {
|
||||
props: props => props.enableColorOnDark === false && !['inherit', 'transparent'].includes(props.color),
|
||||
style: {
|
||||
backgroundColor: 'var(--AppBar-background)',
|
||||
color: 'var(--AppBar-color)',
|
||||
...theme.applyStyles('dark', {
|
||||
backgroundColor: theme.vars ? joinVars(theme.vars.palette.AppBar.darkBg, 'var(--AppBar-background)') : null,
|
||||
color: theme.vars ? joinVars(theme.vars.palette.AppBar.darkColor, 'var(--AppBar-color)') : null
|
||||
})
|
||||
}
|
||||
}, {
|
||||
props: {
|
||||
color: 'transparent'
|
||||
},
|
||||
style: {
|
||||
'--AppBar-background': 'transparent',
|
||||
'--AppBar-color': 'inherit',
|
||||
backgroundColor: 'var(--AppBar-background)',
|
||||
color: 'var(--AppBar-color)',
|
||||
...theme.applyStyles('dark', {
|
||||
backgroundImage: 'none'
|
||||
})
|
||||
}
|
||||
}]
|
||||
})));
|
||||
const AppBar = /*#__PURE__*/React.forwardRef(function AppBar(inProps, ref) {
|
||||
const props = (0, _DefaultPropsProvider.useDefaultProps)({
|
||||
props: inProps,
|
||||
name: 'MuiAppBar'
|
||||
});
|
||||
const {
|
||||
className,
|
||||
color = 'primary',
|
||||
enableColorOnDark = false,
|
||||
position = 'fixed',
|
||||
...other
|
||||
} = props;
|
||||
const ownerState = {
|
||||
...props,
|
||||
color,
|
||||
position,
|
||||
enableColorOnDark
|
||||
};
|
||||
const classes = useUtilityClasses(ownerState);
|
||||
return /*#__PURE__*/(0, _jsxRuntime.jsx)(AppBarRoot, {
|
||||
square: true,
|
||||
component: "header",
|
||||
ownerState: ownerState,
|
||||
elevation: 4,
|
||||
className: (0, _clsx.default)(classes.root, className, position === 'fixed' && 'mui-fixed'),
|
||||
ref: ref,
|
||||
...other
|
||||
});
|
||||
});
|
||||
process.env.NODE_ENV !== "production" ? AppBar.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`. │
|
||||
// └─────────────────────────────────────────────────────────────────────┘
|
||||
/**
|
||||
* The content of the component.
|
||||
*/
|
||||
children: _propTypes.default.node,
|
||||
/**
|
||||
* Override or extend the styles applied to the component.
|
||||
*/
|
||||
classes: _propTypes.default.object,
|
||||
/**
|
||||
* @ignore
|
||||
*/
|
||||
className: _propTypes.default.string,
|
||||
/**
|
||||
* The color of the component.
|
||||
* It supports both default and custom theme colors, which can be added as shown in the
|
||||
* [palette customization guide](https://mui.com/material-ui/customization/palette/#custom-colors).
|
||||
* @default 'primary'
|
||||
*/
|
||||
color: _propTypes.default /* @typescript-to-proptypes-ignore */.oneOfType([_propTypes.default.oneOf(['default', 'inherit', 'primary', 'secondary', 'transparent', 'error', 'info', 'success', 'warning']), _propTypes.default.string]),
|
||||
/**
|
||||
* If true, the `color` prop is applied in dark mode.
|
||||
* @default false
|
||||
*/
|
||||
enableColorOnDark: _propTypes.default.bool,
|
||||
/**
|
||||
* The positioning type. The behavior of the different options is described
|
||||
* [in the MDN web docs](https://developer.mozilla.org/en-US/docs/Web/CSS/position).
|
||||
* Note: `sticky` is not universally supported and will fall back to `static` when unavailable.
|
||||
* @default 'fixed'
|
||||
*/
|
||||
position: _propTypes.default.oneOf(['absolute', 'fixed', 'relative', 'static', 'sticky']),
|
||||
/**
|
||||
* The system prop that allows defining system overrides as well as additional CSS styles.
|
||||
*/
|
||||
sx: _propTypes.default.oneOfType([_propTypes.default.arrayOf(_propTypes.default.oneOfType([_propTypes.default.func, _propTypes.default.object, _propTypes.default.bool])), _propTypes.default.func, _propTypes.default.object])
|
||||
} : void 0;
|
||||
var _default = exports.default = AppBar;
|
||||
36
node_modules/@mui/material/AppBar/appBarClasses.d.ts
generated
vendored
Normal file
36
node_modules/@mui/material/AppBar/appBarClasses.d.ts
generated
vendored
Normal file
|
|
@ -0,0 +1,36 @@
|
|||
export interface AppBarClasses {
|
||||
/** Styles applied to the root element. */
|
||||
root: string;
|
||||
/** Styles applied to the root element if `position="fixed"`. */
|
||||
positionFixed: string;
|
||||
/** Styles applied to the root element if `position="absolute"`. */
|
||||
positionAbsolute: string;
|
||||
/** Styles applied to the root element if `position="sticky"`. */
|
||||
positionSticky: string;
|
||||
/** Styles applied to the root element if `position="static"`. */
|
||||
positionStatic: string;
|
||||
/** Styles applied to the root element if `position="relative"`. */
|
||||
positionRelative: string;
|
||||
/** Styles applied to the root element if `color="default"`. */
|
||||
colorDefault: string;
|
||||
/** Styles applied to the root element if `color="primary"`. */
|
||||
colorPrimary: string;
|
||||
/** Styles applied to the root element if `color="secondary"`. */
|
||||
colorSecondary: string;
|
||||
/** Styles applied to the root element if `color="inherit"`. */
|
||||
colorInherit: string;
|
||||
/** Styles applied to the root element if `color="transparent"`. */
|
||||
colorTransparent: string;
|
||||
/** Styles applied to the root element if `color="error"`. */
|
||||
colorError: string;
|
||||
/** Styles applied to the root element if `color="info"`. */
|
||||
colorInfo: string;
|
||||
/** Styles applied to the root element if `color="success"`. */
|
||||
colorSuccess: string;
|
||||
/** Styles applied to the root element if `color="warning"`. */
|
||||
colorWarning: string;
|
||||
}
|
||||
export type AppBarClassKey = keyof AppBarClasses;
|
||||
export declare function getAppBarUtilityClass(slot: string): string;
|
||||
declare const appBarClasses: AppBarClasses;
|
||||
export default appBarClasses;
|
||||
15
node_modules/@mui/material/AppBar/appBarClasses.js
generated
vendored
Normal file
15
node_modules/@mui/material/AppBar/appBarClasses.js
generated
vendored
Normal file
|
|
@ -0,0 +1,15 @@
|
|||
"use strict";
|
||||
|
||||
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault").default;
|
||||
Object.defineProperty(exports, "__esModule", {
|
||||
value: true
|
||||
});
|
||||
exports.default = void 0;
|
||||
exports.getAppBarUtilityClass = getAppBarUtilityClass;
|
||||
var _generateUtilityClasses = _interopRequireDefault(require("@mui/utils/generateUtilityClasses"));
|
||||
var _generateUtilityClass = _interopRequireDefault(require("@mui/utils/generateUtilityClass"));
|
||||
function getAppBarUtilityClass(slot) {
|
||||
return (0, _generateUtilityClass.default)('MuiAppBar', slot);
|
||||
}
|
||||
const appBarClasses = (0, _generateUtilityClasses.default)('MuiAppBar', ['root', 'positionFixed', 'positionAbsolute', 'positionSticky', 'positionStatic', 'positionRelative', 'colorDefault', 'colorPrimary', 'colorSecondary', 'colorInherit', 'colorTransparent', 'colorError', 'colorInfo', 'colorSuccess', 'colorWarning']);
|
||||
var _default = exports.default = appBarClasses;
|
||||
4
node_modules/@mui/material/AppBar/index.d.ts
generated
vendored
Normal file
4
node_modules/@mui/material/AppBar/index.d.ts
generated
vendored
Normal file
|
|
@ -0,0 +1,4 @@
|
|||
export { default } from "./AppBar.js";
|
||||
export * from "./AppBar.js";
|
||||
export { default as appBarClasses } from "./appBarClasses.js";
|
||||
export * from "./appBarClasses.js";
|
||||
35
node_modules/@mui/material/AppBar/index.js
generated
vendored
Normal file
35
node_modules/@mui/material/AppBar/index.js
generated
vendored
Normal file
|
|
@ -0,0 +1,35 @@
|
|||
"use strict";
|
||||
|
||||
var _interopRequireWildcard = require("@babel/runtime/helpers/interopRequireWildcard").default;
|
||||
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault").default;
|
||||
Object.defineProperty(exports, "__esModule", {
|
||||
value: true
|
||||
});
|
||||
var _exportNames = {
|
||||
appBarClasses: true
|
||||
};
|
||||
Object.defineProperty(exports, "appBarClasses", {
|
||||
enumerable: true,
|
||||
get: function () {
|
||||
return _appBarClasses.default;
|
||||
}
|
||||
});
|
||||
Object.defineProperty(exports, "default", {
|
||||
enumerable: true,
|
||||
get: function () {
|
||||
return _AppBar.default;
|
||||
}
|
||||
});
|
||||
var _AppBar = _interopRequireDefault(require("./AppBar"));
|
||||
var _appBarClasses = _interopRequireWildcard(require("./appBarClasses"));
|
||||
Object.keys(_appBarClasses).forEach(function (key) {
|
||||
if (key === "default" || key === "__esModule") return;
|
||||
if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
|
||||
if (key in exports && exports[key] === _appBarClasses[key]) return;
|
||||
Object.defineProperty(exports, key, {
|
||||
enumerable: true,
|
||||
get: function () {
|
||||
return _appBarClasses[key];
|
||||
}
|
||||
});
|
||||
});
|
||||
Loading…
Add table
Add a link
Reference in a new issue