worked on GarageApp stuff
This commit is contained in:
parent
60aaf17af3
commit
eb606572b0
51919 changed files with 2168177 additions and 18 deletions
185
node_modules/@mui/material/Dialog/Dialog.d.ts
generated
vendored
Normal file
185
node_modules/@mui/material/Dialog/Dialog.d.ts
generated
vendored
Normal file
|
|
@ -0,0 +1,185 @@
|
|||
import * as React from 'react';
|
||||
import { SxProps, Breakpoint } from '@mui/system';
|
||||
import { Theme } from "../styles/index.js";
|
||||
import { InternalStandardProps as StandardProps } from "../internal/index.js";
|
||||
import { BackdropProps } from "../Backdrop/index.js";
|
||||
import { PaperProps } from "../Paper/index.js";
|
||||
import { ModalProps } from "../Modal/index.js";
|
||||
import { TransitionProps } from "../transitions/transition.js";
|
||||
import { DialogClasses } from "./dialogClasses.js";
|
||||
import { CreateSlotsAndSlotProps, SlotComponentProps, SlotProps } from "../utils/types.js";
|
||||
export interface DialogSlots {
|
||||
/**
|
||||
* The component that renders the transition.
|
||||
* [Follow this guide](/material-ui/transitions/#transitioncomponent-prop) to learn more about the requirements for this component.
|
||||
* @default Collapse
|
||||
*/
|
||||
transition?: React.ElementType;
|
||||
/**
|
||||
* The component that renders the paper.
|
||||
* @default Paper
|
||||
*/
|
||||
paper?: React.ElementType;
|
||||
/**
|
||||
* The component that renders the container.
|
||||
*/
|
||||
container?: React.ElementType;
|
||||
/**
|
||||
* The component that renders the backdrop.
|
||||
*/
|
||||
backdrop?: React.ElementType;
|
||||
/**
|
||||
* The component that renders the root.
|
||||
*/
|
||||
root?: React.ElementType;
|
||||
}
|
||||
export interface DialogTransitionSlotPropsOverrides {}
|
||||
export interface DialogPaperSlotPropsOverrides {}
|
||||
export interface DialogContainerSlotPropsOverrides {}
|
||||
export interface DialogBackdropSlotPropsOverrides {}
|
||||
export interface DialogRootSlotPropsOverrides {}
|
||||
export type DialogSlotsAndSlotProps = CreateSlotsAndSlotProps<DialogSlots, {
|
||||
/**
|
||||
* Props forwarded to the root slot.
|
||||
* By default, the avaible props are based on the [Modal](https://mui.com/material-ui/api/modal/#props) component.
|
||||
*/
|
||||
root: SlotProps<React.ElementType<ModalProps>, DialogRootSlotPropsOverrides, DialogOwnerState>;
|
||||
/**
|
||||
* Props forwarded to the backdrop slot.
|
||||
* By default, the avaible props are based on the [Backdrop](https://mui.com/material-ui/api/backdrop/#props) component.
|
||||
*/
|
||||
backdrop: SlotProps<React.ElementType<BackdropProps>, DialogBackdropSlotPropsOverrides, DialogOwnerState>;
|
||||
/**
|
||||
* Props forwarded to the container slot.
|
||||
* By default, the avaible props are based on a div element.
|
||||
*/
|
||||
container: SlotProps<'div', DialogContainerSlotPropsOverrides, DialogOwnerState>;
|
||||
/**
|
||||
* 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 & DialogTransitionSlotPropsOverrides, DialogOwnerState>;
|
||||
/**
|
||||
* Props forwarded to the paper slot.
|
||||
* By default, the avaible props are based on the [Paper](https://mui.com/material-ui/api/paper/#props) component.
|
||||
*/
|
||||
paper: SlotProps<React.ElementType<PaperProps>, DialogPaperSlotPropsOverrides, DialogOwnerState>;
|
||||
}>;
|
||||
export interface DialogProps extends Omit<StandardProps<ModalProps, 'children'>, 'slots' | 'slotProps'>, DialogSlotsAndSlotProps {
|
||||
/**
|
||||
* The id(s) of the element(s) that describe the dialog.
|
||||
*/
|
||||
'aria-describedby'?: string;
|
||||
/**
|
||||
* The id(s) of the element(s) that label the dialog.
|
||||
*/
|
||||
'aria-labelledby'?: string;
|
||||
/**
|
||||
* Informs assistive technologies that the element is modal.
|
||||
* It's added on the element with role="dialog".
|
||||
* @default true
|
||||
*/
|
||||
'aria-modal'?: boolean | 'true' | 'false';
|
||||
/**
|
||||
* Dialog children, usually the included sub-components.
|
||||
*/
|
||||
children?: React.ReactNode;
|
||||
/**
|
||||
* Override or extend the styles applied to the component.
|
||||
*/
|
||||
classes?: Partial<DialogClasses>;
|
||||
/**
|
||||
* If `true`, hitting escape will not fire the `onClose` callback.
|
||||
* @default false
|
||||
*/
|
||||
disableEscapeKeyDown?: boolean;
|
||||
/**
|
||||
* If `true`, the dialog is full-screen.
|
||||
* @default false
|
||||
*/
|
||||
fullScreen?: boolean;
|
||||
/**
|
||||
* If `true`, the dialog stretches to `maxWidth`.
|
||||
*
|
||||
* Notice that the dialog width grow is limited by the default margin.
|
||||
* @default false
|
||||
*/
|
||||
fullWidth?: boolean;
|
||||
/**
|
||||
* Determine the max-width of the dialog.
|
||||
* The dialog width grows with the size of the screen.
|
||||
* Set to `false` to disable `maxWidth`.
|
||||
* @default 'sm'
|
||||
*/
|
||||
maxWidth?: Breakpoint | false;
|
||||
/**
|
||||
* Callback fired when the component requests to be closed.
|
||||
*
|
||||
* @param {object} event The event source of the callback.
|
||||
* @param {string} reason Can be: `"escapeKeyDown"`, `"backdropClick"`.
|
||||
*/
|
||||
onClose?: ModalProps['onClose'];
|
||||
/**
|
||||
* If `true`, the component is shown.
|
||||
*/
|
||||
open: ModalProps['open'];
|
||||
/**
|
||||
* The component used to render the body of the dialog.
|
||||
* @default Paper
|
||||
*/
|
||||
PaperComponent?: React.JSXElementConstructor<PaperProps>;
|
||||
/**
|
||||
* Props applied to the [`Paper`](https://mui.com/material-ui/api/paper/) element.
|
||||
* @default {}
|
||||
* @deprecated Use `slotProps.paper` 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.
|
||||
*/
|
||||
PaperProps?: Partial<PaperProps<React.ElementType>>;
|
||||
/**
|
||||
* Determine the container for scrolling the dialog.
|
||||
* @default 'paper'
|
||||
*/
|
||||
scroll?: 'body' | 'paper';
|
||||
/**
|
||||
* The system prop that allows defining system overrides as well as additional CSS styles.
|
||||
*/
|
||||
sx?: SxProps<Theme>;
|
||||
/**
|
||||
* 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>;
|
||||
}>;
|
||||
/**
|
||||
* The duration for the transition, in milliseconds.
|
||||
* You may specify a single timeout for all transitions, or individually with an object.
|
||||
* @default {
|
||||
* enter: theme.transitions.duration.enteringScreen,
|
||||
* exit: theme.transitions.duration.leavingScreen,
|
||||
* }
|
||||
*/
|
||||
transitionDuration?: TransitionProps['timeout'];
|
||||
/**
|
||||
* Props applied to the transition element.
|
||||
* By default, the element is based on this [`Transition`](https://reactcommunity.org/react-transition-group/transition/) component.
|
||||
* @deprecated Use `slotProps.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.
|
||||
*/
|
||||
TransitionProps?: TransitionProps;
|
||||
}
|
||||
|
||||
/**
|
||||
* Dialogs are overlaid modal paper based components with a backdrop.
|
||||
*
|
||||
* Demos:
|
||||
*
|
||||
* - [Dialog](https://mui.com/material-ui/react-dialog/)
|
||||
*
|
||||
* API:
|
||||
*
|
||||
* - [Dialog API](https://mui.com/material-ui/api/dialog/)
|
||||
* - inherits [Modal API](https://mui.com/material-ui/api/modal/)
|
||||
*/
|
||||
export default function Dialog(props: DialogProps): React.JSX.Element;
|
||||
export interface DialogOwnerState extends Omit<DialogProps, 'slots' | 'slotProps'> {}
|
||||
516
node_modules/@mui/material/Dialog/Dialog.js
generated
vendored
Normal file
516
node_modules/@mui/material/Dialog/Dialog.js
generated
vendored
Normal file
|
|
@ -0,0 +1,516 @@
|
|||
"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 _useId = _interopRequireDefault(require("@mui/utils/useId"));
|
||||
var _capitalize = _interopRequireDefault(require("../utils/capitalize"));
|
||||
var _Modal = _interopRequireDefault(require("../Modal"));
|
||||
var _Fade = _interopRequireDefault(require("../Fade"));
|
||||
var _Paper = _interopRequireDefault(require("../Paper"));
|
||||
var _dialogClasses = _interopRequireWildcard(require("./dialogClasses"));
|
||||
var _DialogContext = _interopRequireDefault(require("./DialogContext"));
|
||||
var _Backdrop = _interopRequireDefault(require("../Backdrop"));
|
||||
var _zeroStyled = require("../zero-styled");
|
||||
var _memoTheme = _interopRequireDefault(require("../utils/memoTheme"));
|
||||
var _DefaultPropsProvider = require("../DefaultPropsProvider");
|
||||
var _useSlot = _interopRequireDefault(require("../utils/useSlot"));
|
||||
var _jsxRuntime = require("react/jsx-runtime");
|
||||
const DialogBackdrop = (0, _zeroStyled.styled)(_Backdrop.default, {
|
||||
name: 'MuiDialog',
|
||||
slot: 'Backdrop',
|
||||
overrides: (props, styles) => styles.backdrop
|
||||
})({
|
||||
// Improve scrollable dialog support.
|
||||
zIndex: -1
|
||||
});
|
||||
const useUtilityClasses = ownerState => {
|
||||
const {
|
||||
classes,
|
||||
scroll,
|
||||
maxWidth,
|
||||
fullWidth,
|
||||
fullScreen
|
||||
} = ownerState;
|
||||
const slots = {
|
||||
root: ['root'],
|
||||
container: ['container', `scroll${(0, _capitalize.default)(scroll)}`],
|
||||
paper: ['paper', `paperScroll${(0, _capitalize.default)(scroll)}`, `paperWidth${(0, _capitalize.default)(String(maxWidth))}`, fullWidth && 'paperFullWidth', fullScreen && 'paperFullScreen']
|
||||
};
|
||||
return (0, _composeClasses.default)(slots, _dialogClasses.getDialogUtilityClass, classes);
|
||||
};
|
||||
const DialogRoot = (0, _zeroStyled.styled)(_Modal.default, {
|
||||
name: 'MuiDialog',
|
||||
slot: 'Root'
|
||||
})({
|
||||
'@media print': {
|
||||
// Use !important to override the Modal inline-style.
|
||||
position: 'absolute !important'
|
||||
}
|
||||
});
|
||||
const DialogContainer = (0, _zeroStyled.styled)('div', {
|
||||
name: 'MuiDialog',
|
||||
slot: 'Container',
|
||||
overridesResolver: (props, styles) => {
|
||||
const {
|
||||
ownerState
|
||||
} = props;
|
||||
return [styles.container, styles[`scroll${(0, _capitalize.default)(ownerState.scroll)}`]];
|
||||
}
|
||||
})({
|
||||
height: '100%',
|
||||
'@media print': {
|
||||
height: 'auto'
|
||||
},
|
||||
// We disable the focus ring for mouse, touch and keyboard users.
|
||||
outline: 0,
|
||||
variants: [{
|
||||
props: {
|
||||
scroll: 'paper'
|
||||
},
|
||||
style: {
|
||||
display: 'flex',
|
||||
justifyContent: 'center',
|
||||
alignItems: 'center'
|
||||
}
|
||||
}, {
|
||||
props: {
|
||||
scroll: 'body'
|
||||
},
|
||||
style: {
|
||||
overflowY: 'auto',
|
||||
overflowX: 'hidden',
|
||||
textAlign: 'center',
|
||||
'&::after': {
|
||||
content: '""',
|
||||
display: 'inline-block',
|
||||
verticalAlign: 'middle',
|
||||
height: '100%',
|
||||
width: '0'
|
||||
}
|
||||
}
|
||||
}]
|
||||
});
|
||||
const DialogPaper = (0, _zeroStyled.styled)(_Paper.default, {
|
||||
name: 'MuiDialog',
|
||||
slot: 'Paper',
|
||||
overridesResolver: (props, styles) => {
|
||||
const {
|
||||
ownerState
|
||||
} = props;
|
||||
return [styles.paper, styles[`scrollPaper${(0, _capitalize.default)(ownerState.scroll)}`], styles[`paperWidth${(0, _capitalize.default)(String(ownerState.maxWidth))}`], ownerState.fullWidth && styles.paperFullWidth, ownerState.fullScreen && styles.paperFullScreen];
|
||||
}
|
||||
})((0, _memoTheme.default)(({
|
||||
theme
|
||||
}) => ({
|
||||
margin: 32,
|
||||
position: 'relative',
|
||||
overflowY: 'auto',
|
||||
'@media print': {
|
||||
overflowY: 'visible',
|
||||
boxShadow: 'none'
|
||||
},
|
||||
variants: [{
|
||||
props: {
|
||||
scroll: 'paper'
|
||||
},
|
||||
style: {
|
||||
display: 'flex',
|
||||
flexDirection: 'column',
|
||||
maxHeight: 'calc(100% - 64px)'
|
||||
}
|
||||
}, {
|
||||
props: {
|
||||
scroll: 'body'
|
||||
},
|
||||
style: {
|
||||
display: 'inline-block',
|
||||
verticalAlign: 'middle',
|
||||
textAlign: 'initial'
|
||||
}
|
||||
}, {
|
||||
props: ({
|
||||
ownerState
|
||||
}) => !ownerState.maxWidth,
|
||||
style: {
|
||||
maxWidth: 'calc(100% - 64px)'
|
||||
}
|
||||
}, {
|
||||
props: {
|
||||
maxWidth: 'xs'
|
||||
},
|
||||
style: {
|
||||
maxWidth: theme.breakpoints.unit === 'px' ? Math.max(theme.breakpoints.values.xs, 444) : `max(${theme.breakpoints.values.xs}${theme.breakpoints.unit}, 444px)`,
|
||||
[`&.${_dialogClasses.default.paperScrollBody}`]: {
|
||||
[theme.breakpoints.down(Math.max(theme.breakpoints.values.xs, 444) + 32 * 2)]: {
|
||||
maxWidth: 'calc(100% - 64px)'
|
||||
}
|
||||
}
|
||||
}
|
||||
}, ...Object.keys(theme.breakpoints.values).filter(maxWidth => maxWidth !== 'xs').map(maxWidth => ({
|
||||
props: {
|
||||
maxWidth
|
||||
},
|
||||
style: {
|
||||
maxWidth: `${theme.breakpoints.values[maxWidth]}${theme.breakpoints.unit}`,
|
||||
[`&.${_dialogClasses.default.paperScrollBody}`]: {
|
||||
[theme.breakpoints.down(theme.breakpoints.values[maxWidth] + 32 * 2)]: {
|
||||
maxWidth: 'calc(100% - 64px)'
|
||||
}
|
||||
}
|
||||
}
|
||||
})), {
|
||||
props: ({
|
||||
ownerState
|
||||
}) => ownerState.fullWidth,
|
||||
style: {
|
||||
width: 'calc(100% - 64px)'
|
||||
}
|
||||
}, {
|
||||
props: ({
|
||||
ownerState
|
||||
}) => ownerState.fullScreen,
|
||||
style: {
|
||||
margin: 0,
|
||||
width: '100%',
|
||||
maxWidth: '100%',
|
||||
height: '100%',
|
||||
maxHeight: 'none',
|
||||
borderRadius: 0,
|
||||
[`&.${_dialogClasses.default.paperScrollBody}`]: {
|
||||
margin: 0,
|
||||
maxWidth: '100%'
|
||||
}
|
||||
}
|
||||
}]
|
||||
})));
|
||||
|
||||
/**
|
||||
* Dialogs are overlaid modal paper based components with a backdrop.
|
||||
*/
|
||||
const Dialog = /*#__PURE__*/React.forwardRef(function Dialog(inProps, ref) {
|
||||
const props = (0, _DefaultPropsProvider.useDefaultProps)({
|
||||
props: inProps,
|
||||
name: 'MuiDialog'
|
||||
});
|
||||
const theme = (0, _zeroStyled.useTheme)();
|
||||
const defaultTransitionDuration = {
|
||||
enter: theme.transitions.duration.enteringScreen,
|
||||
exit: theme.transitions.duration.leavingScreen
|
||||
};
|
||||
const {
|
||||
'aria-describedby': ariaDescribedby,
|
||||
'aria-labelledby': ariaLabelledbyProp,
|
||||
'aria-modal': ariaModal = true,
|
||||
BackdropComponent,
|
||||
BackdropProps,
|
||||
children,
|
||||
className,
|
||||
disableEscapeKeyDown = false,
|
||||
fullScreen = false,
|
||||
fullWidth = false,
|
||||
maxWidth = 'sm',
|
||||
onClick,
|
||||
onClose,
|
||||
open,
|
||||
PaperComponent = _Paper.default,
|
||||
PaperProps = {},
|
||||
scroll = 'paper',
|
||||
slots = {},
|
||||
slotProps = {},
|
||||
TransitionComponent = _Fade.default,
|
||||
transitionDuration = defaultTransitionDuration,
|
||||
TransitionProps,
|
||||
...other
|
||||
} = props;
|
||||
const ownerState = {
|
||||
...props,
|
||||
disableEscapeKeyDown,
|
||||
fullScreen,
|
||||
fullWidth,
|
||||
maxWidth,
|
||||
scroll
|
||||
};
|
||||
const classes = useUtilityClasses(ownerState);
|
||||
const backdropClick = React.useRef();
|
||||
const handleMouseDown = event => {
|
||||
// We don't want to close the dialog when clicking the dialog content.
|
||||
// Make sure the event starts and ends on the same DOM element.
|
||||
backdropClick.current = event.target === event.currentTarget;
|
||||
};
|
||||
const handleBackdropClick = event => {
|
||||
if (onClick) {
|
||||
onClick(event);
|
||||
}
|
||||
|
||||
// Ignore the events not coming from the "backdrop".
|
||||
if (!backdropClick.current) {
|
||||
return;
|
||||
}
|
||||
backdropClick.current = null;
|
||||
if (onClose) {
|
||||
onClose(event, 'backdropClick');
|
||||
}
|
||||
};
|
||||
const ariaLabelledby = (0, _useId.default)(ariaLabelledbyProp);
|
||||
const dialogContextValue = React.useMemo(() => {
|
||||
return {
|
||||
titleId: ariaLabelledby
|
||||
};
|
||||
}, [ariaLabelledby]);
|
||||
const backwardCompatibleSlots = {
|
||||
transition: TransitionComponent,
|
||||
...slots
|
||||
};
|
||||
const backwardCompatibleSlotProps = {
|
||||
transition: TransitionProps,
|
||||
paper: PaperProps,
|
||||
backdrop: BackdropProps,
|
||||
...slotProps
|
||||
};
|
||||
const externalForwardedProps = {
|
||||
slots: backwardCompatibleSlots,
|
||||
slotProps: backwardCompatibleSlotProps
|
||||
};
|
||||
const [RootSlot, rootSlotProps] = (0, _useSlot.default)('root', {
|
||||
elementType: DialogRoot,
|
||||
shouldForwardComponentProp: true,
|
||||
externalForwardedProps,
|
||||
ownerState,
|
||||
className: (0, _clsx.default)(classes.root, className),
|
||||
ref
|
||||
});
|
||||
const [BackdropSlot, backdropSlotProps] = (0, _useSlot.default)('backdrop', {
|
||||
elementType: DialogBackdrop,
|
||||
shouldForwardComponentProp: true,
|
||||
externalForwardedProps,
|
||||
ownerState
|
||||
});
|
||||
const [PaperSlot, paperSlotProps] = (0, _useSlot.default)('paper', {
|
||||
elementType: DialogPaper,
|
||||
shouldForwardComponentProp: true,
|
||||
externalForwardedProps,
|
||||
ownerState,
|
||||
className: (0, _clsx.default)(classes.paper, PaperProps.className)
|
||||
});
|
||||
const [ContainerSlot, containerSlotProps] = (0, _useSlot.default)('container', {
|
||||
elementType: DialogContainer,
|
||||
externalForwardedProps,
|
||||
ownerState,
|
||||
className: classes.container
|
||||
});
|
||||
const [TransitionSlot, transitionSlotProps] = (0, _useSlot.default)('transition', {
|
||||
elementType: _Fade.default,
|
||||
externalForwardedProps,
|
||||
ownerState,
|
||||
additionalProps: {
|
||||
appear: true,
|
||||
in: open,
|
||||
timeout: transitionDuration,
|
||||
role: 'presentation'
|
||||
}
|
||||
});
|
||||
return /*#__PURE__*/(0, _jsxRuntime.jsx)(RootSlot, {
|
||||
closeAfterTransition: true,
|
||||
slots: {
|
||||
backdrop: BackdropSlot
|
||||
},
|
||||
slotProps: {
|
||||
backdrop: {
|
||||
transitionDuration,
|
||||
as: BackdropComponent,
|
||||
...backdropSlotProps
|
||||
}
|
||||
},
|
||||
disableEscapeKeyDown: disableEscapeKeyDown,
|
||||
onClose: onClose,
|
||||
open: open,
|
||||
onClick: handleBackdropClick,
|
||||
...rootSlotProps,
|
||||
...other,
|
||||
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(TransitionSlot, {
|
||||
...transitionSlotProps,
|
||||
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(ContainerSlot, {
|
||||
onMouseDown: handleMouseDown,
|
||||
...containerSlotProps,
|
||||
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(PaperSlot, {
|
||||
as: PaperComponent,
|
||||
elevation: 24,
|
||||
role: "dialog",
|
||||
"aria-describedby": ariaDescribedby,
|
||||
"aria-labelledby": ariaLabelledby,
|
||||
"aria-modal": ariaModal,
|
||||
...paperSlotProps,
|
||||
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_DialogContext.default.Provider, {
|
||||
value: dialogContextValue,
|
||||
children: children
|
||||
})
|
||||
})
|
||||
})
|
||||
})
|
||||
});
|
||||
});
|
||||
process.env.NODE_ENV !== "production" ? Dialog.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 id(s) of the element(s) that describe the dialog.
|
||||
*/
|
||||
'aria-describedby': _propTypes.default.string,
|
||||
/**
|
||||
* The id(s) of the element(s) that label the dialog.
|
||||
*/
|
||||
'aria-labelledby': _propTypes.default.string,
|
||||
/**
|
||||
* Informs assistive technologies that the element is modal.
|
||||
* It's added on the element with role="dialog".
|
||||
* @default true
|
||||
*/
|
||||
'aria-modal': _propTypes.default.oneOfType([_propTypes.default.oneOf(['false', 'true']), _propTypes.default.bool]),
|
||||
/**
|
||||
* A backdrop component. This prop enables custom backdrop rendering.
|
||||
* @deprecated Use `slots.backdrop` instead. While this prop currently works, it will be removed in the next major version.
|
||||
* Use the `slots.backdrop` prop to make your application ready for the next version of Material UI.
|
||||
* @default styled(Backdrop, {
|
||||
* name: 'MuiModal',
|
||||
* slot: 'Backdrop',
|
||||
* })({
|
||||
* zIndex: -1,
|
||||
* })
|
||||
*/
|
||||
BackdropComponent: _propTypes.default.elementType,
|
||||
/**
|
||||
* @ignore
|
||||
*/
|
||||
BackdropProps: _propTypes.default.object,
|
||||
/**
|
||||
* Dialog children, usually the included sub-components.
|
||||
*/
|
||||
children: _propTypes.default.node,
|
||||
/**
|
||||
* Override or extend the styles applied to the component.
|
||||
*/
|
||||
classes: _propTypes.default.object,
|
||||
/**
|
||||
* @ignore
|
||||
*/
|
||||
className: _propTypes.default.string,
|
||||
/**
|
||||
* If `true`, hitting escape will not fire the `onClose` callback.
|
||||
* @default false
|
||||
*/
|
||||
disableEscapeKeyDown: _propTypes.default.bool,
|
||||
/**
|
||||
* If `true`, the dialog is full-screen.
|
||||
* @default false
|
||||
*/
|
||||
fullScreen: _propTypes.default.bool,
|
||||
/**
|
||||
* If `true`, the dialog stretches to `maxWidth`.
|
||||
*
|
||||
* Notice that the dialog width grow is limited by the default margin.
|
||||
* @default false
|
||||
*/
|
||||
fullWidth: _propTypes.default.bool,
|
||||
/**
|
||||
* Determine the max-width of the dialog.
|
||||
* The dialog width grows with the size of the screen.
|
||||
* Set to `false` to disable `maxWidth`.
|
||||
* @default 'sm'
|
||||
*/
|
||||
maxWidth: _propTypes.default /* @typescript-to-proptypes-ignore */.oneOfType([_propTypes.default.oneOf(['xs', 'sm', 'md', 'lg', 'xl', false]), _propTypes.default.string]),
|
||||
/**
|
||||
* @ignore
|
||||
*/
|
||||
onClick: _propTypes.default.func,
|
||||
/**
|
||||
* Callback fired when the component requests to be closed.
|
||||
*
|
||||
* @param {object} event The event source of the callback.
|
||||
* @param {string} reason Can be: `"escapeKeyDown"`, `"backdropClick"`.
|
||||
*/
|
||||
onClose: _propTypes.default.func,
|
||||
/**
|
||||
* If `true`, the component is shown.
|
||||
*/
|
||||
open: _propTypes.default.bool.isRequired,
|
||||
/**
|
||||
* The component used to render the body of the dialog.
|
||||
* @default Paper
|
||||
*/
|
||||
PaperComponent: _propTypes.default.elementType,
|
||||
/**
|
||||
* Props applied to the [`Paper`](https://mui.com/material-ui/api/paper/) element.
|
||||
* @default {}
|
||||
* @deprecated Use `slotProps.paper` 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.
|
||||
*/
|
||||
PaperProps: _propTypes.default.object,
|
||||
/**
|
||||
* Determine the container for scrolling the dialog.
|
||||
* @default 'paper'
|
||||
*/
|
||||
scroll: _propTypes.default.oneOf(['body', 'paper']),
|
||||
/**
|
||||
* The props used for each slot inside.
|
||||
* @default {}
|
||||
*/
|
||||
slotProps: _propTypes.default.shape({
|
||||
backdrop: _propTypes.default.oneOfType([_propTypes.default.func, _propTypes.default.object]),
|
||||
container: _propTypes.default.oneOfType([_propTypes.default.func, _propTypes.default.object]),
|
||||
paper: _propTypes.default.oneOfType([_propTypes.default.func, _propTypes.default.object]),
|
||||
root: _propTypes.default.oneOfType([_propTypes.default.func, _propTypes.default.object]),
|
||||
transition: _propTypes.default.oneOfType([_propTypes.default.func, _propTypes.default.object])
|
||||
}),
|
||||
/**
|
||||
* The components used for each slot inside.
|
||||
* @default {}
|
||||
*/
|
||||
slots: _propTypes.default.shape({
|
||||
backdrop: _propTypes.default.elementType,
|
||||
container: _propTypes.default.elementType,
|
||||
paper: _propTypes.default.elementType,
|
||||
root: _propTypes.default.elementType,
|
||||
transition: _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]),
|
||||
/**
|
||||
* 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.default.elementType,
|
||||
/**
|
||||
* The duration for the transition, in milliseconds.
|
||||
* You may specify a single timeout for all transitions, or individually with an object.
|
||||
* @default {
|
||||
* enter: theme.transitions.duration.enteringScreen,
|
||||
* exit: theme.transitions.duration.leavingScreen,
|
||||
* }
|
||||
*/
|
||||
transitionDuration: _propTypes.default.oneOfType([_propTypes.default.number, _propTypes.default.shape({
|
||||
appear: _propTypes.default.number,
|
||||
enter: _propTypes.default.number,
|
||||
exit: _propTypes.default.number
|
||||
})]),
|
||||
/**
|
||||
* Props applied to the transition element.
|
||||
* By default, the element is based on this [`Transition`](https://reactcommunity.org/react-transition-group/transition/) component.
|
||||
* @deprecated Use `slotProps.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.
|
||||
*/
|
||||
TransitionProps: _propTypes.default.object
|
||||
} : void 0;
|
||||
var _default = exports.default = Dialog;
|
||||
6
node_modules/@mui/material/Dialog/DialogContext.d.ts
generated
vendored
Normal file
6
node_modules/@mui/material/Dialog/DialogContext.d.ts
generated
vendored
Normal file
|
|
@ -0,0 +1,6 @@
|
|||
import * as React from 'react';
|
||||
interface DialogContextValue {
|
||||
titleId?: string;
|
||||
}
|
||||
declare const DialogContext: React.Context<DialogContextValue>;
|
||||
export default DialogContext;
|
||||
14
node_modules/@mui/material/Dialog/DialogContext.js
generated
vendored
Normal file
14
node_modules/@mui/material/Dialog/DialogContext.js
generated
vendored
Normal file
|
|
@ -0,0 +1,14 @@
|
|||
"use strict";
|
||||
'use client';
|
||||
|
||||
var _interopRequireWildcard = require("@babel/runtime/helpers/interopRequireWildcard").default;
|
||||
Object.defineProperty(exports, "__esModule", {
|
||||
value: true
|
||||
});
|
||||
exports.default = void 0;
|
||||
var React = _interopRequireWildcard(require("react"));
|
||||
const DialogContext = /*#__PURE__*/React.createContext({});
|
||||
if (process.env.NODE_ENV !== 'production') {
|
||||
DialogContext.displayName = 'DialogContext';
|
||||
}
|
||||
var _default = exports.default = DialogContext;
|
||||
40
node_modules/@mui/material/Dialog/dialogClasses.d.ts
generated
vendored
Normal file
40
node_modules/@mui/material/Dialog/dialogClasses.d.ts
generated
vendored
Normal file
|
|
@ -0,0 +1,40 @@
|
|||
export interface DialogClasses {
|
||||
/** Styles applied to the root element. */
|
||||
root: string;
|
||||
/** Styles applied to the container element if `scroll="paper"`. */
|
||||
scrollPaper: string;
|
||||
/** Styles applied to the container element if `scroll="body"`. */
|
||||
scrollBody: string;
|
||||
/** Styles applied to the container element. */
|
||||
container: string;
|
||||
/** Styles applied to the Paper component. */
|
||||
paper: string;
|
||||
/** Styles applied to the Paper component if `scroll="paper"`.
|
||||
* @deprecated Combine the [.MuiDialog-paper](/material-ui/api/dialog/#dialog-classes-paper) and [.MuiDialog-scrollPaper](/material-ui/api/dialog/#dialog-classes-scrollPaper) classes instead. See [Migrating from deprecated APIs](/material-ui/migration/migrating-from-deprecated-apis/) for more details.
|
||||
*/
|
||||
paperScrollPaper: string;
|
||||
/** Styles applied to the Paper component if `scroll="body"`.
|
||||
* @deprecated Combine the [.MuiDialog-paper](/material-ui/api/dialog/#dialog-classes-paper) and [.MuiDialog-scrollBody](/material-ui/api/dialog/#dialog-classes-scrollBody) classes instead. See [Migrating from deprecated APIs](/material-ui/migration/migrating-from-deprecated-apis/) for more details.
|
||||
*/
|
||||
paperScrollBody: string;
|
||||
/** Styles applied to the Paper component if `maxWidth=false`. */
|
||||
paperWidthFalse: string;
|
||||
/** Styles applied to the Paper component if `maxWidth="xs"`. */
|
||||
paperWidthXs: string;
|
||||
/** Styles applied to the Paper component if `maxWidth="sm"`. */
|
||||
paperWidthSm: string;
|
||||
/** Styles applied to the Paper component if `maxWidth="md"`. */
|
||||
paperWidthMd: string;
|
||||
/** Styles applied to the Paper component if `maxWidth="lg"`. */
|
||||
paperWidthLg: string;
|
||||
/** Styles applied to the Paper component if `maxWidth="xl"`. */
|
||||
paperWidthXl: string;
|
||||
/** Styles applied to the Paper component if `fullWidth={true}`. */
|
||||
paperFullWidth: string;
|
||||
/** Styles applied to the Paper component if `fullScreen={true}`. */
|
||||
paperFullScreen: string;
|
||||
}
|
||||
export type DialogClassKey = keyof DialogClasses;
|
||||
export declare function getDialogUtilityClass(slot: string): string;
|
||||
declare const dialogClasses: DialogClasses;
|
||||
export default dialogClasses;
|
||||
15
node_modules/@mui/material/Dialog/dialogClasses.js
generated
vendored
Normal file
15
node_modules/@mui/material/Dialog/dialogClasses.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.getDialogUtilityClass = getDialogUtilityClass;
|
||||
var _generateUtilityClasses = _interopRequireDefault(require("@mui/utils/generateUtilityClasses"));
|
||||
var _generateUtilityClass = _interopRequireDefault(require("@mui/utils/generateUtilityClass"));
|
||||
function getDialogUtilityClass(slot) {
|
||||
return (0, _generateUtilityClass.default)('MuiDialog', slot);
|
||||
}
|
||||
const dialogClasses = (0, _generateUtilityClasses.default)('MuiDialog', ['root', 'scrollPaper', 'scrollBody', 'container', 'paper', 'paperScrollPaper', 'paperScrollBody', 'paperWidthFalse', 'paperWidthXs', 'paperWidthSm', 'paperWidthMd', 'paperWidthLg', 'paperWidthXl', 'paperFullWidth', 'paperFullScreen']);
|
||||
var _default = exports.default = dialogClasses;
|
||||
4
node_modules/@mui/material/Dialog/index.d.ts
generated
vendored
Normal file
4
node_modules/@mui/material/Dialog/index.d.ts
generated
vendored
Normal file
|
|
@ -0,0 +1,4 @@
|
|||
export { default } from "./Dialog.js";
|
||||
export * from "./Dialog.js";
|
||||
export { default as dialogClasses } from "./dialogClasses.js";
|
||||
export * from "./dialogClasses.js";
|
||||
35
node_modules/@mui/material/Dialog/index.js
generated
vendored
Normal file
35
node_modules/@mui/material/Dialog/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 = {
|
||||
dialogClasses: true
|
||||
};
|
||||
Object.defineProperty(exports, "default", {
|
||||
enumerable: true,
|
||||
get: function () {
|
||||
return _Dialog.default;
|
||||
}
|
||||
});
|
||||
Object.defineProperty(exports, "dialogClasses", {
|
||||
enumerable: true,
|
||||
get: function () {
|
||||
return _dialogClasses.default;
|
||||
}
|
||||
});
|
||||
var _Dialog = _interopRequireDefault(require("./Dialog"));
|
||||
var _dialogClasses = _interopRequireWildcard(require("./dialogClasses"));
|
||||
Object.keys(_dialogClasses).forEach(function (key) {
|
||||
if (key === "default" || key === "__esModule") return;
|
||||
if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
|
||||
if (key in exports && exports[key] === _dialogClasses[key]) return;
|
||||
Object.defineProperty(exports, key, {
|
||||
enumerable: true,
|
||||
get: function () {
|
||||
return _dialogClasses[key];
|
||||
}
|
||||
});
|
||||
});
|
||||
Loading…
Add table
Add a link
Reference in a new issue