worked on GarageApp stuff
This commit is contained in:
parent
60aaf17af3
commit
eb606572b0
51919 changed files with 2168177 additions and 18 deletions
88
node_modules/@mui/material/BottomNavigationAction/BottomNavigationAction.d.ts
generated
vendored
Normal file
88
node_modules/@mui/material/BottomNavigationAction/BottomNavigationAction.d.ts
generated
vendored
Normal file
|
|
@ -0,0 +1,88 @@
|
|||
import * as React from 'react';
|
||||
import { SxProps } from '@mui/system';
|
||||
import { CreateSlotsAndSlotProps, SlotProps } from "../utils/types.js";
|
||||
import { Theme } from "../styles/index.js";
|
||||
import { ButtonBaseProps, ButtonBaseTypeMap, ExtendButtonBase, ExtendButtonBaseTypeMap } from "../ButtonBase/index.js";
|
||||
import { OverrideProps } from "../OverridableComponent/index.js";
|
||||
import { BottomNavigationActionClasses } from "./bottomNavigationActionClasses.js";
|
||||
export interface BottomNavigationActionSlots {
|
||||
/**
|
||||
* The component that renders the root.
|
||||
* @default ButtonBase
|
||||
*/
|
||||
root: React.ElementType;
|
||||
/**
|
||||
* The component that renders the label.
|
||||
* @default span
|
||||
*/
|
||||
label: React.ElementType;
|
||||
}
|
||||
export type BottomNavigationActionSlotsAndSlotProps = CreateSlotsAndSlotProps<BottomNavigationActionSlots, {
|
||||
/**
|
||||
* Props forwarded to the root slot.
|
||||
* By default, the avaible props are based on the ButtonBase element.
|
||||
*/
|
||||
root: SlotProps<React.ElementType<ButtonBaseProps>, {}, BottomNavigationActionOwnerState>;
|
||||
/**
|
||||
* Props forwarded to the label slot.
|
||||
* By default, the avaible props are based on the span element.
|
||||
*/
|
||||
label: SlotProps<'span', {}, BottomNavigationActionOwnerState>;
|
||||
}>;
|
||||
export interface BottomNavigationActionOwnProps extends BottomNavigationActionSlotsAndSlotProps {
|
||||
/**
|
||||
* This prop isn't supported.
|
||||
* Use the `component` prop if you need to change the children structure.
|
||||
*/
|
||||
children?: React.ReactNode;
|
||||
/**
|
||||
* Override or extend the styles applied to the component.
|
||||
*/
|
||||
classes?: Partial<BottomNavigationActionClasses>;
|
||||
/**
|
||||
* The icon to display.
|
||||
*/
|
||||
icon?: React.ReactNode;
|
||||
/**
|
||||
* The label element.
|
||||
*/
|
||||
label?: React.ReactNode;
|
||||
/**
|
||||
* If `true`, the `BottomNavigationAction` will show its label.
|
||||
* By default, only the selected `BottomNavigationAction`
|
||||
* inside `BottomNavigation` will show its label.
|
||||
*
|
||||
* The prop defaults to the value (`false`) inherited from the parent BottomNavigation component.
|
||||
*/
|
||||
showLabel?: boolean;
|
||||
/**
|
||||
* The system prop that allows defining system overrides as well as additional CSS styles.
|
||||
*/
|
||||
sx?: SxProps<Theme>;
|
||||
/**
|
||||
* You can provide your own value. Otherwise, we fallback to the child position index.
|
||||
*/
|
||||
value?: any;
|
||||
}
|
||||
export type BottomNavigationActionTypeMap<AdditionalProps, RootComponent extends React.ElementType> = ExtendButtonBaseTypeMap<{
|
||||
props: AdditionalProps & BottomNavigationActionOwnProps;
|
||||
defaultComponent: RootComponent;
|
||||
}>;
|
||||
|
||||
/**
|
||||
*
|
||||
* Demos:
|
||||
*
|
||||
* - [Bottom Navigation](https://mui.com/material-ui/react-bottom-navigation/)
|
||||
*
|
||||
* API:
|
||||
*
|
||||
* - [BottomNavigationAction API](https://mui.com/material-ui/api/bottom-navigation-action/)
|
||||
* - inherits [ButtonBase API](https://mui.com/material-ui/api/button-base/)
|
||||
*/
|
||||
declare const BottomNavigationAction: ExtendButtonBase<BottomNavigationActionTypeMap<{}, ButtonBaseTypeMap['defaultComponent']>>;
|
||||
export type BottomNavigationActionProps<RootComponent extends React.ElementType = ButtonBaseTypeMap['defaultComponent'], AdditionalProps = {}> = OverrideProps<BottomNavigationActionTypeMap<AdditionalProps, RootComponent>, RootComponent> & {
|
||||
component?: React.ElementType;
|
||||
};
|
||||
export interface BottomNavigationActionOwnerState extends Omit<BottomNavigationActionProps, 'slots' | 'slotProps'> {}
|
||||
export default BottomNavigationAction;
|
||||
237
node_modules/@mui/material/BottomNavigationAction/BottomNavigationAction.js
generated
vendored
Normal file
237
node_modules/@mui/material/BottomNavigationAction/BottomNavigationAction.js
generated
vendored
Normal file
|
|
@ -0,0 +1,237 @@
|
|||
"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 _ButtonBase = _interopRequireDefault(require("../ButtonBase"));
|
||||
var _unsupportedProp = _interopRequireDefault(require("../utils/unsupportedProp"));
|
||||
var _bottomNavigationActionClasses = _interopRequireWildcard(require("./bottomNavigationActionClasses"));
|
||||
var _useSlot = _interopRequireDefault(require("../utils/useSlot"));
|
||||
var _jsxRuntime = require("react/jsx-runtime");
|
||||
const useUtilityClasses = ownerState => {
|
||||
const {
|
||||
classes,
|
||||
showLabel,
|
||||
selected
|
||||
} = ownerState;
|
||||
const slots = {
|
||||
root: ['root', !showLabel && !selected && 'iconOnly', selected && 'selected'],
|
||||
label: ['label', !showLabel && !selected && 'iconOnly', selected && 'selected']
|
||||
};
|
||||
return (0, _composeClasses.default)(slots, _bottomNavigationActionClasses.getBottomNavigationActionUtilityClass, classes);
|
||||
};
|
||||
const BottomNavigationActionRoot = (0, _zeroStyled.styled)(_ButtonBase.default, {
|
||||
name: 'MuiBottomNavigationAction',
|
||||
slot: 'Root',
|
||||
overridesResolver: (props, styles) => {
|
||||
const {
|
||||
ownerState
|
||||
} = props;
|
||||
return [styles.root, !ownerState.showLabel && !ownerState.selected && styles.iconOnly];
|
||||
}
|
||||
})((0, _memoTheme.default)(({
|
||||
theme
|
||||
}) => ({
|
||||
transition: theme.transitions.create(['color', 'padding-top'], {
|
||||
duration: theme.transitions.duration.short
|
||||
}),
|
||||
padding: '0px 12px',
|
||||
minWidth: 80,
|
||||
maxWidth: 168,
|
||||
color: (theme.vars || theme).palette.text.secondary,
|
||||
flexDirection: 'column',
|
||||
flex: '1',
|
||||
[`&.${_bottomNavigationActionClasses.default.selected}`]: {
|
||||
color: (theme.vars || theme).palette.primary.main
|
||||
},
|
||||
variants: [{
|
||||
props: ({
|
||||
showLabel,
|
||||
selected
|
||||
}) => !showLabel && !selected,
|
||||
style: {
|
||||
paddingTop: 14
|
||||
}
|
||||
}, {
|
||||
props: ({
|
||||
showLabel,
|
||||
selected,
|
||||
label
|
||||
}) => !showLabel && !selected && !label,
|
||||
style: {
|
||||
paddingTop: 0
|
||||
}
|
||||
}]
|
||||
})));
|
||||
const BottomNavigationActionLabel = (0, _zeroStyled.styled)('span', {
|
||||
name: 'MuiBottomNavigationAction',
|
||||
slot: 'Label'
|
||||
})((0, _memoTheme.default)(({
|
||||
theme
|
||||
}) => ({
|
||||
fontFamily: theme.typography.fontFamily,
|
||||
fontSize: theme.typography.pxToRem(12),
|
||||
opacity: 1,
|
||||
transition: 'font-size 0.2s, opacity 0.2s',
|
||||
transitionDelay: '0.1s',
|
||||
[`&.${_bottomNavigationActionClasses.default.selected}`]: {
|
||||
fontSize: theme.typography.pxToRem(14)
|
||||
},
|
||||
variants: [{
|
||||
props: ({
|
||||
showLabel,
|
||||
selected
|
||||
}) => !showLabel && !selected,
|
||||
style: {
|
||||
opacity: 0,
|
||||
transitionDelay: '0s'
|
||||
}
|
||||
}]
|
||||
})));
|
||||
const BottomNavigationAction = /*#__PURE__*/React.forwardRef(function BottomNavigationAction(inProps, ref) {
|
||||
const props = (0, _DefaultPropsProvider.useDefaultProps)({
|
||||
props: inProps,
|
||||
name: 'MuiBottomNavigationAction'
|
||||
});
|
||||
const {
|
||||
className,
|
||||
icon,
|
||||
label,
|
||||
onChange,
|
||||
onClick,
|
||||
// eslint-disable-next-line react/prop-types -- private, always overridden by BottomNavigation
|
||||
selected,
|
||||
showLabel,
|
||||
value,
|
||||
slots = {},
|
||||
slotProps = {},
|
||||
...other
|
||||
} = props;
|
||||
const ownerState = props;
|
||||
const classes = useUtilityClasses(ownerState);
|
||||
const handleChange = event => {
|
||||
if (onChange) {
|
||||
onChange(event, value);
|
||||
}
|
||||
if (onClick) {
|
||||
onClick(event);
|
||||
}
|
||||
};
|
||||
const externalForwardedProps = {
|
||||
slots,
|
||||
slotProps
|
||||
};
|
||||
const [RootSlot, rootProps] = (0, _useSlot.default)('root', {
|
||||
elementType: BottomNavigationActionRoot,
|
||||
externalForwardedProps: {
|
||||
...externalForwardedProps,
|
||||
...other
|
||||
},
|
||||
shouldForwardComponentProp: true,
|
||||
ownerState,
|
||||
ref,
|
||||
className: (0, _clsx.default)(classes.root, className),
|
||||
additionalProps: {
|
||||
focusRipple: true
|
||||
},
|
||||
getSlotProps: handlers => ({
|
||||
...handlers,
|
||||
onClick: event => {
|
||||
handlers.onClick?.(event);
|
||||
handleChange(event);
|
||||
}
|
||||
})
|
||||
});
|
||||
const [LabelSlot, labelProps] = (0, _useSlot.default)('label', {
|
||||
elementType: BottomNavigationActionLabel,
|
||||
externalForwardedProps,
|
||||
ownerState,
|
||||
className: classes.label
|
||||
});
|
||||
return /*#__PURE__*/(0, _jsxRuntime.jsxs)(RootSlot, {
|
||||
...rootProps,
|
||||
children: [icon, /*#__PURE__*/(0, _jsxRuntime.jsx)(LabelSlot, {
|
||||
...labelProps,
|
||||
children: label
|
||||
})]
|
||||
});
|
||||
});
|
||||
process.env.NODE_ENV !== "production" ? BottomNavigationAction.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`. │
|
||||
// └─────────────────────────────────────────────────────────────────────┘
|
||||
/**
|
||||
* This prop isn't supported.
|
||||
* Use the `component` prop if you need to change the children structure.
|
||||
*/
|
||||
children: _unsupportedProp.default,
|
||||
/**
|
||||
* Override or extend the styles applied to the component.
|
||||
*/
|
||||
classes: _propTypes.default.object,
|
||||
/**
|
||||
* @ignore
|
||||
*/
|
||||
className: _propTypes.default.string,
|
||||
/**
|
||||
* The icon to display.
|
||||
*/
|
||||
icon: _propTypes.default.node,
|
||||
/**
|
||||
* The label element.
|
||||
*/
|
||||
label: _propTypes.default.node,
|
||||
/**
|
||||
* @ignore
|
||||
*/
|
||||
onChange: _propTypes.default.func,
|
||||
/**
|
||||
* @ignore
|
||||
*/
|
||||
onClick: _propTypes.default.func,
|
||||
/**
|
||||
* If `true`, the `BottomNavigationAction` will show its label.
|
||||
* By default, only the selected `BottomNavigationAction`
|
||||
* inside `BottomNavigation` will show its label.
|
||||
*
|
||||
* The prop defaults to the value (`false`) inherited from the parent BottomNavigation component.
|
||||
*/
|
||||
showLabel: _propTypes.default.bool,
|
||||
/**
|
||||
* The props used for each slot inside.
|
||||
* @default {}
|
||||
*/
|
||||
slotProps: _propTypes.default.shape({
|
||||
label: _propTypes.default.oneOfType([_propTypes.default.func, _propTypes.default.object]),
|
||||
root: _propTypes.default.oneOfType([_propTypes.default.func, _propTypes.default.object])
|
||||
}),
|
||||
/**
|
||||
* The components used for each slot inside.
|
||||
* @default {}
|
||||
*/
|
||||
slots: _propTypes.default.shape({
|
||||
label: _propTypes.default.elementType,
|
||||
root: _propTypes.default.elementType
|
||||
}),
|
||||
/**
|
||||
* 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]),
|
||||
/**
|
||||
* You can provide your own value. Otherwise, we fallback to the child position index.
|
||||
*/
|
||||
value: _propTypes.default.any
|
||||
} : void 0;
|
||||
var _default = exports.default = BottomNavigationAction;
|
||||
14
node_modules/@mui/material/BottomNavigationAction/bottomNavigationActionClasses.d.ts
generated
vendored
Normal file
14
node_modules/@mui/material/BottomNavigationAction/bottomNavigationActionClasses.d.ts
generated
vendored
Normal file
|
|
@ -0,0 +1,14 @@
|
|||
export interface BottomNavigationActionClasses {
|
||||
/** Styles applied to the root element. */
|
||||
root: string;
|
||||
/** State class applied to the root element if selected. */
|
||||
selected: string;
|
||||
/** State class applied to the root element if `showLabel={false}` and not selected. */
|
||||
iconOnly: string;
|
||||
/** Styles applied to the label's span element. */
|
||||
label: string;
|
||||
}
|
||||
export type BottomNavigationActionClassKey = keyof BottomNavigationActionClasses;
|
||||
export declare function getBottomNavigationActionUtilityClass(slot: string): string;
|
||||
declare const bottomNavigationActionClasses: BottomNavigationActionClasses;
|
||||
export default bottomNavigationActionClasses;
|
||||
15
node_modules/@mui/material/BottomNavigationAction/bottomNavigationActionClasses.js
generated
vendored
Normal file
15
node_modules/@mui/material/BottomNavigationAction/bottomNavigationActionClasses.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.getBottomNavigationActionUtilityClass = getBottomNavigationActionUtilityClass;
|
||||
var _generateUtilityClasses = _interopRequireDefault(require("@mui/utils/generateUtilityClasses"));
|
||||
var _generateUtilityClass = _interopRequireDefault(require("@mui/utils/generateUtilityClass"));
|
||||
function getBottomNavigationActionUtilityClass(slot) {
|
||||
return (0, _generateUtilityClass.default)('MuiBottomNavigationAction', slot);
|
||||
}
|
||||
const bottomNavigationActionClasses = (0, _generateUtilityClasses.default)('MuiBottomNavigationAction', ['root', 'iconOnly', 'selected', 'label']);
|
||||
var _default = exports.default = bottomNavigationActionClasses;
|
||||
4
node_modules/@mui/material/BottomNavigationAction/index.d.ts
generated
vendored
Normal file
4
node_modules/@mui/material/BottomNavigationAction/index.d.ts
generated
vendored
Normal file
|
|
@ -0,0 +1,4 @@
|
|||
export { default } from "./BottomNavigationAction.js";
|
||||
export * from "./BottomNavigationAction.js";
|
||||
export { default as bottomNavigationActionClasses } from "./bottomNavigationActionClasses.js";
|
||||
export * from "./bottomNavigationActionClasses.js";
|
||||
35
node_modules/@mui/material/BottomNavigationAction/index.js
generated
vendored
Normal file
35
node_modules/@mui/material/BottomNavigationAction/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 = {
|
||||
bottomNavigationActionClasses: true
|
||||
};
|
||||
Object.defineProperty(exports, "bottomNavigationActionClasses", {
|
||||
enumerable: true,
|
||||
get: function () {
|
||||
return _bottomNavigationActionClasses.default;
|
||||
}
|
||||
});
|
||||
Object.defineProperty(exports, "default", {
|
||||
enumerable: true,
|
||||
get: function () {
|
||||
return _BottomNavigationAction.default;
|
||||
}
|
||||
});
|
||||
var _BottomNavigationAction = _interopRequireDefault(require("./BottomNavigationAction"));
|
||||
var _bottomNavigationActionClasses = _interopRequireWildcard(require("./bottomNavigationActionClasses"));
|
||||
Object.keys(_bottomNavigationActionClasses).forEach(function (key) {
|
||||
if (key === "default" || key === "__esModule") return;
|
||||
if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
|
||||
if (key in exports && exports[key] === _bottomNavigationActionClasses[key]) return;
|
||||
Object.defineProperty(exports, key, {
|
||||
enumerable: true,
|
||||
get: function () {
|
||||
return _bottomNavigationActionClasses[key];
|
||||
}
|
||||
});
|
||||
});
|
||||
Loading…
Add table
Add a link
Reference in a new issue