worked on GarageApp stuff
This commit is contained in:
parent
60aaf17af3
commit
eb606572b0
51919 changed files with 2168177 additions and 18 deletions
118
node_modules/@mui/material/esm/Backdrop/Backdrop.d.ts
generated
vendored
Normal file
118
node_modules/@mui/material/esm/Backdrop/Backdrop.d.ts
generated
vendored
Normal file
|
|
@ -0,0 +1,118 @@
|
|||
import * as React from 'react';
|
||||
import { SxProps } from '@mui/system';
|
||||
import { FadeProps } from "../Fade/index.js";
|
||||
import { TransitionProps } from "../transitions/transition.js";
|
||||
import { Theme } from "../styles/index.js";
|
||||
import { BackdropClasses } from "./backdropClasses.js";
|
||||
import { OverridableComponent, OverrideProps } from "../OverridableComponent/index.js";
|
||||
import { CreateSlotsAndSlotProps, SlotComponentProps, SlotProps } from "../utils/types.js";
|
||||
export interface BackdropSlots {
|
||||
/**
|
||||
* The component that renders the root.
|
||||
* @default 'div'
|
||||
*/
|
||||
root: React.ElementType;
|
||||
/**
|
||||
* The component that renders the transition.
|
||||
* [Follow this guide](https://mui.com/material-ui/transitions/#transitioncomponent-prop) to learn more about the requirements for this component.
|
||||
* @default Fade
|
||||
*/
|
||||
transition: React.ElementType;
|
||||
}
|
||||
export interface BackdropComponentsPropsOverrides {}
|
||||
export interface BackdropTransitionSlotPropsOverrides {}
|
||||
export type BackdropSlotsAndSlotProps = CreateSlotsAndSlotProps<BackdropSlots, {
|
||||
/**
|
||||
* Props forwarded to the transition slot.
|
||||
* By default, the avaible props are based on the div element.
|
||||
*/
|
||||
root: SlotProps<'div', BackdropComponentsPropsOverrides, BackdropOwnerState>;
|
||||
/**
|
||||
* Props forwarded to the transition slot.
|
||||
* By default, the avaible props are based on the [Fade](https://mui.com/material-ui/api/fade/#props) component.
|
||||
*/
|
||||
transition: SlotComponentProps<React.ElementType, TransitionProps & BackdropTransitionSlotPropsOverrides, BackdropOwnerState>;
|
||||
}>;
|
||||
export interface BackdropOwnProps extends Partial<Omit<FadeProps, 'children'>>, BackdropSlotsAndSlotProps {
|
||||
/**
|
||||
* The content of the component.
|
||||
*/
|
||||
children?: React.ReactNode;
|
||||
/**
|
||||
* The components used for each slot inside.
|
||||
*
|
||||
* @deprecated Use the `slots` prop instead. This prop will be removed in a future major release. See [Migrating from deprecated APIs](https://mui.com/material-ui/migration/migrating-from-deprecated-apis/) for more details.
|
||||
*
|
||||
* @default {}
|
||||
*/
|
||||
components?: {
|
||||
Root?: React.ElementType;
|
||||
};
|
||||
/**
|
||||
* The extra props for the slot components.
|
||||
* You can override the existing props or add new ones.
|
||||
*
|
||||
* @deprecated Use the `slotProps` prop instead. This prop will be removed in a future major release. See [Migrating from deprecated APIs](https://mui.com/material-ui/migration/migrating-from-deprecated-apis/) for more details.
|
||||
*
|
||||
* @default {}
|
||||
*/
|
||||
componentsProps?: {
|
||||
root?: React.HTMLAttributes<HTMLDivElement> & BackdropComponentsPropsOverrides;
|
||||
};
|
||||
/**
|
||||
* Override or extend the styles applied to the component.
|
||||
*/
|
||||
classes?: Partial<BackdropClasses>;
|
||||
/**
|
||||
* If `true`, the backdrop is invisible.
|
||||
* It can be used when rendering a popover or a custom select component.
|
||||
* @default false
|
||||
*/
|
||||
invisible?: boolean;
|
||||
/**
|
||||
* If `true`, the component is shown.
|
||||
*/
|
||||
open: boolean;
|
||||
/**
|
||||
* The system prop that allows defining system overrides as well as additional CSS styles.
|
||||
*/
|
||||
sx?: SxProps<Theme>;
|
||||
/**
|
||||
* The duration for the transition, in milliseconds.
|
||||
* You may specify a single timeout for all transitions, or individually with an object.
|
||||
*/
|
||||
transitionDuration?: TransitionProps['timeout'];
|
||||
/**
|
||||
* The component used for the transition.
|
||||
* [Follow this guide](https://mui.com/material-ui/transitions/#transitioncomponent-prop) to learn more about the requirements for this component.
|
||||
* @default Fade
|
||||
* @deprecated Use `slots.transition` instead. This prop will be removed in a future major release. See [Migrating from deprecated APIs](/material-ui/migration/migrating-from-deprecated-apis/) for more details.
|
||||
*/
|
||||
TransitionComponent?: React.JSXElementConstructor<TransitionProps & {
|
||||
children: React.ReactElement<unknown, any>;
|
||||
}>;
|
||||
}
|
||||
export interface BackdropTypeMap<AdditionalProps = {}, RootComponent extends React.ElementType = 'div'> {
|
||||
props: AdditionalProps & BackdropOwnProps;
|
||||
defaultComponent: RootComponent;
|
||||
}
|
||||
type BackdropRootProps = NonNullable<BackdropTypeMap['props']['componentsProps']>['root'];
|
||||
export declare const BackdropRoot: React.FC<BackdropRootProps>;
|
||||
|
||||
/**
|
||||
*
|
||||
* Demos:
|
||||
*
|
||||
* - [Backdrop](https://mui.com/material-ui/react-backdrop/)
|
||||
*
|
||||
* API:
|
||||
*
|
||||
* - [Backdrop API](https://mui.com/material-ui/api/backdrop/)
|
||||
* - inherits [Fade API](https://mui.com/material-ui/api/fade/)
|
||||
*/
|
||||
declare const Backdrop: OverridableComponent<BackdropTypeMap>;
|
||||
export type BackdropProps<RootComponent extends React.ElementType = BackdropTypeMap['defaultComponent'], AdditionalProps = {}> = OverrideProps<BackdropTypeMap<AdditionalProps, RootComponent>, RootComponent> & {
|
||||
component?: React.ElementType;
|
||||
};
|
||||
export interface BackdropOwnerState extends BackdropProps {}
|
||||
export default Backdrop;
|
||||
206
node_modules/@mui/material/esm/Backdrop/Backdrop.js
generated
vendored
Normal file
206
node_modules/@mui/material/esm/Backdrop/Backdrop.js
generated
vendored
Normal file
|
|
@ -0,0 +1,206 @@
|
|||
'use client';
|
||||
|
||||
import * as React from 'react';
|
||||
import PropTypes from 'prop-types';
|
||||
import clsx from 'clsx';
|
||||
import composeClasses from '@mui/utils/composeClasses';
|
||||
import { styled } from "../zero-styled/index.js";
|
||||
import { useDefaultProps } from "../DefaultPropsProvider/index.js";
|
||||
import useSlot from "../utils/useSlot.js";
|
||||
import Fade from "../Fade/index.js";
|
||||
import { getBackdropUtilityClass } from "./backdropClasses.js";
|
||||
import { jsx as _jsx } from "react/jsx-runtime";
|
||||
const useUtilityClasses = ownerState => {
|
||||
const {
|
||||
classes,
|
||||
invisible
|
||||
} = ownerState;
|
||||
const slots = {
|
||||
root: ['root', invisible && 'invisible']
|
||||
};
|
||||
return composeClasses(slots, getBackdropUtilityClass, classes);
|
||||
};
|
||||
const BackdropRoot = styled('div', {
|
||||
name: 'MuiBackdrop',
|
||||
slot: 'Root',
|
||||
overridesResolver: (props, styles) => {
|
||||
const {
|
||||
ownerState
|
||||
} = props;
|
||||
return [styles.root, ownerState.invisible && styles.invisible];
|
||||
}
|
||||
})({
|
||||
position: 'fixed',
|
||||
display: 'flex',
|
||||
alignItems: 'center',
|
||||
justifyContent: 'center',
|
||||
right: 0,
|
||||
bottom: 0,
|
||||
top: 0,
|
||||
left: 0,
|
||||
backgroundColor: 'rgba(0, 0, 0, 0.5)',
|
||||
WebkitTapHighlightColor: 'transparent',
|
||||
variants: [{
|
||||
props: {
|
||||
invisible: true
|
||||
},
|
||||
style: {
|
||||
backgroundColor: 'transparent'
|
||||
}
|
||||
}]
|
||||
});
|
||||
const Backdrop = /*#__PURE__*/React.forwardRef(function Backdrop(inProps, ref) {
|
||||
const props = useDefaultProps({
|
||||
props: inProps,
|
||||
name: 'MuiBackdrop'
|
||||
});
|
||||
const {
|
||||
children,
|
||||
className,
|
||||
component = 'div',
|
||||
invisible = false,
|
||||
open,
|
||||
components = {},
|
||||
componentsProps = {},
|
||||
slotProps = {},
|
||||
slots = {},
|
||||
TransitionComponent: TransitionComponentProp,
|
||||
transitionDuration,
|
||||
...other
|
||||
} = props;
|
||||
const ownerState = {
|
||||
...props,
|
||||
component,
|
||||
invisible
|
||||
};
|
||||
const classes = useUtilityClasses(ownerState);
|
||||
const backwardCompatibleSlots = {
|
||||
transition: TransitionComponentProp,
|
||||
root: components.Root,
|
||||
...slots
|
||||
};
|
||||
const backwardCompatibleSlotProps = {
|
||||
...componentsProps,
|
||||
...slotProps
|
||||
};
|
||||
const externalForwardedProps = {
|
||||
component,
|
||||
slots: backwardCompatibleSlots,
|
||||
slotProps: backwardCompatibleSlotProps
|
||||
};
|
||||
const [RootSlot, rootProps] = useSlot('root', {
|
||||
elementType: BackdropRoot,
|
||||
externalForwardedProps,
|
||||
className: clsx(classes.root, className),
|
||||
ownerState
|
||||
});
|
||||
const [TransitionSlot, transitionProps] = useSlot('transition', {
|
||||
elementType: Fade,
|
||||
externalForwardedProps,
|
||||
ownerState
|
||||
});
|
||||
return /*#__PURE__*/_jsx(TransitionSlot, {
|
||||
in: open,
|
||||
timeout: transitionDuration,
|
||||
...other,
|
||||
...transitionProps,
|
||||
children: /*#__PURE__*/_jsx(RootSlot, {
|
||||
"aria-hidden": true,
|
||||
...rootProps,
|
||||
classes: classes,
|
||||
ref: ref,
|
||||
children: children
|
||||
})
|
||||
});
|
||||
});
|
||||
process.env.NODE_ENV !== "production" ? Backdrop.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.node,
|
||||
/**
|
||||
* Override or extend the styles applied to the component.
|
||||
*/
|
||||
classes: PropTypes.object,
|
||||
/**
|
||||
* @ignore
|
||||
*/
|
||||
className: PropTypes.string,
|
||||
/**
|
||||
* The component used for the root node.
|
||||
* Either a string to use a HTML element or a component.
|
||||
*/
|
||||
component: PropTypes.elementType,
|
||||
/**
|
||||
* The components used for each slot inside.
|
||||
*
|
||||
* @deprecated Use the `slots` prop instead. This prop will be removed in a future major release. See [Migrating from deprecated APIs](https://mui.com/material-ui/migration/migrating-from-deprecated-apis/) for more details.
|
||||
*
|
||||
* @default {}
|
||||
*/
|
||||
components: PropTypes.shape({
|
||||
Root: PropTypes.elementType
|
||||
}),
|
||||
/**
|
||||
* The extra props for the slot components.
|
||||
* You can override the existing props or add new ones.
|
||||
*
|
||||
* @deprecated Use the `slotProps` prop instead. This prop will be removed in a future major release. See [Migrating from deprecated APIs](https://mui.com/material-ui/migration/migrating-from-deprecated-apis/) for more details.
|
||||
*
|
||||
* @default {}
|
||||
*/
|
||||
componentsProps: PropTypes.shape({
|
||||
root: PropTypes.object
|
||||
}),
|
||||
/**
|
||||
* If `true`, the backdrop is invisible.
|
||||
* It can be used when rendering a popover or a custom select component.
|
||||
* @default false
|
||||
*/
|
||||
invisible: PropTypes.bool,
|
||||
/**
|
||||
* If `true`, the component is shown.
|
||||
*/
|
||||
open: PropTypes.bool.isRequired,
|
||||
/**
|
||||
* The props used for each slot inside.
|
||||
* @default {}
|
||||
*/
|
||||
slotProps: PropTypes.shape({
|
||||
root: PropTypes.oneOfType([PropTypes.func, PropTypes.object]),
|
||||
transition: PropTypes.oneOfType([PropTypes.func, PropTypes.object])
|
||||
}),
|
||||
/**
|
||||
* The components used for each slot inside.
|
||||
* @default {}
|
||||
*/
|
||||
slots: PropTypes.shape({
|
||||
root: PropTypes.elementType,
|
||||
transition: PropTypes.elementType
|
||||
}),
|
||||
/**
|
||||
* 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]),
|
||||
/**
|
||||
* The component used for the transition.
|
||||
* [Follow this guide](https://mui.com/material-ui/transitions/#transitioncomponent-prop) to learn more about the requirements for this component.
|
||||
* @default Fade
|
||||
* @deprecated Use `slots.transition` instead. This prop will be removed in a future major release. See [Migrating from deprecated APIs](/material-ui/migration/migrating-from-deprecated-apis/) for more details.
|
||||
*/
|
||||
TransitionComponent: PropTypes.elementType,
|
||||
/**
|
||||
* The duration for the transition, in milliseconds.
|
||||
* You may specify a single timeout for all transitions, or individually with an object.
|
||||
*/
|
||||
transitionDuration: PropTypes.oneOfType([PropTypes.number, PropTypes.shape({
|
||||
appear: PropTypes.number,
|
||||
enter: PropTypes.number,
|
||||
exit: PropTypes.number
|
||||
})])
|
||||
} : void 0;
|
||||
export default Backdrop;
|
||||
10
node_modules/@mui/material/esm/Backdrop/backdropClasses.d.ts
generated
vendored
Normal file
10
node_modules/@mui/material/esm/Backdrop/backdropClasses.d.ts
generated
vendored
Normal file
|
|
@ -0,0 +1,10 @@
|
|||
export interface BackdropClasses {
|
||||
/** Styles applied to the root element. */
|
||||
root: string;
|
||||
/** Styles applied to the root element if `invisible={true}`. */
|
||||
invisible: string;
|
||||
}
|
||||
export type BackdropClassKey = keyof BackdropClasses;
|
||||
export declare function getBackdropUtilityClass(slot: string): string;
|
||||
declare const backdropClasses: BackdropClasses;
|
||||
export default backdropClasses;
|
||||
7
node_modules/@mui/material/esm/Backdrop/backdropClasses.js
generated
vendored
Normal file
7
node_modules/@mui/material/esm/Backdrop/backdropClasses.js
generated
vendored
Normal file
|
|
@ -0,0 +1,7 @@
|
|||
import generateUtilityClasses from '@mui/utils/generateUtilityClasses';
|
||||
import generateUtilityClass from '@mui/utils/generateUtilityClass';
|
||||
export function getBackdropUtilityClass(slot) {
|
||||
return generateUtilityClass('MuiBackdrop', slot);
|
||||
}
|
||||
const backdropClasses = generateUtilityClasses('MuiBackdrop', ['root', 'invisible']);
|
||||
export default backdropClasses;
|
||||
4
node_modules/@mui/material/esm/Backdrop/index.d.ts
generated
vendored
Normal file
4
node_modules/@mui/material/esm/Backdrop/index.d.ts
generated
vendored
Normal file
|
|
@ -0,0 +1,4 @@
|
|||
export { default } from "./Backdrop.js";
|
||||
export * from "./Backdrop.js";
|
||||
export { default as backdropClasses } from "./backdropClasses.js";
|
||||
export * from "./backdropClasses.js";
|
||||
3
node_modules/@mui/material/esm/Backdrop/index.js
generated
vendored
Normal file
3
node_modules/@mui/material/esm/Backdrop/index.js
generated
vendored
Normal file
|
|
@ -0,0 +1,3 @@
|
|||
export { default } from "./Backdrop.js";
|
||||
export { default as backdropClasses } from "./backdropClasses.js";
|
||||
export * from "./backdropClasses.js";
|
||||
Loading…
Add table
Add a link
Reference in a new issue