paradiego

This commit is contained in:
2024-09-18 13:34:19 -03:00
commit 3f0e204289
12510 changed files with 1486101 additions and 0 deletions

88
node_modules/@mui/material/Drawer/Drawer.d.ts generated vendored Normal file
View File

@@ -0,0 +1,88 @@
import * as React from 'react';
import { SxProps } from '@mui/system';
import { InternalStandardProps as StandardProps, Theme } from '..';
import { ModalProps } from '../Modal';
import { SlideProps } from '../Slide';
import { PaperProps } from '../Paper';
import { TransitionProps } from '../transitions/transition';
import { DrawerClasses } from './drawerClasses';
export interface DrawerProps extends StandardProps<ModalProps, 'open' | 'children'> {
/**
* Side from which the drawer will appear.
* @default 'left'
*/
anchor?: 'left' | 'top' | 'right' | 'bottom';
/**
* The content of the component.
*/
children?: React.ReactNode;
/**
* Override or extend the styles applied to the component.
*/
classes?: Partial<DrawerClasses>;
/**
* The elevation of the drawer.
* @default 16
*/
elevation?: number;
/**
* Props applied to the [`Modal`](https://mui.com/material-ui/api/modal/) element.
* @default {}
*/
ModalProps?: Partial<ModalProps>;
/**
* Callback fired when the component requests to be closed.
* The `reason` parameter can optionally be used to control the response to `onClose`.
*
* @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.
* @default false
*/
open?: boolean;
/**
* Props applied to the [`Paper`](https://mui.com/material-ui/api/paper/) element.
* @default {}
*/
PaperProps?: Partial<PaperProps<React.ElementType>>;
/**
* Props applied to the [`Slide`](https://mui.com/material-ui/api/slide/) element.
*/
SlideProps?: Partial<SlideProps>;
/**
* 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.
* @default {
* enter: theme.transitions.duration.enteringScreen,
* exit: theme.transitions.duration.leavingScreen,
* }
*/
transitionDuration?: TransitionProps['timeout'];
/**
* The variant to use.
* @default 'temporary'
*/
variant?: 'permanent' | 'persistent' | 'temporary';
}
/**
* The props of the [Modal](https://mui.com/material-ui/api/modal/) component are available
* when `variant="temporary"` is set.
*
* Demos:
*
* - [Drawer](https://mui.com/material-ui/react-drawer/)
*
* API:
*
* - [Drawer API](https://mui.com/material-ui/api/drawer/)
*/
export default function Drawer(props: DrawerProps): React.JSX.Element;

362
node_modules/@mui/material/Drawer/Drawer.js generated vendored Normal file
View File

@@ -0,0 +1,362 @@
'use client';
import * as React from 'react';
import PropTypes from 'prop-types';
import clsx from 'clsx';
import integerPropType from '@mui/utils/integerPropType';
import composeClasses from '@mui/utils/composeClasses';
import { useRtl } from '@mui/system/RtlProvider';
import Modal from "../Modal/index.js";
import Slide from "../Slide/index.js";
import Paper from "../Paper/index.js";
import capitalize from "../utils/capitalize.js";
import rootShouldForwardProp from "../styles/rootShouldForwardProp.js";
import { styled, useTheme } from "../zero-styled/index.js";
import memoTheme from "../utils/memoTheme.js";
import { useDefaultProps } from "../DefaultPropsProvider/index.js";
import { getDrawerUtilityClass } from "./drawerClasses.js";
import { jsx as _jsx } from "react/jsx-runtime";
const overridesResolver = (props, styles) => {
const {
ownerState
} = props;
return [styles.root, (ownerState.variant === 'permanent' || ownerState.variant === 'persistent') && styles.docked, styles.modal];
};
const useUtilityClasses = ownerState => {
const {
classes,
anchor,
variant
} = ownerState;
const slots = {
root: ['root'],
docked: [(variant === 'permanent' || variant === 'persistent') && 'docked'],
modal: ['modal'],
paper: ['paper', `paperAnchor${capitalize(anchor)}`, variant !== 'temporary' && `paperAnchorDocked${capitalize(anchor)}`]
};
return composeClasses(slots, getDrawerUtilityClass, classes);
};
const DrawerRoot = styled(Modal, {
name: 'MuiDrawer',
slot: 'Root',
overridesResolver
})(memoTheme(({
theme
}) => ({
zIndex: (theme.vars || theme).zIndex.drawer
})));
const DrawerDockedRoot = styled('div', {
shouldForwardProp: rootShouldForwardProp,
name: 'MuiDrawer',
slot: 'Docked',
skipVariantsResolver: false,
overridesResolver
})({
flex: '0 0 auto'
});
const DrawerPaper = styled(Paper, {
name: 'MuiDrawer',
slot: 'Paper',
overridesResolver: (props, styles) => {
const {
ownerState
} = props;
return [styles.paper, styles[`paperAnchor${capitalize(ownerState.anchor)}`], ownerState.variant !== 'temporary' && styles[`paperAnchorDocked${capitalize(ownerState.anchor)}`]];
}
})(memoTheme(({
theme
}) => ({
overflowY: 'auto',
display: 'flex',
flexDirection: 'column',
height: '100%',
flex: '1 0 auto',
zIndex: (theme.vars || theme).zIndex.drawer,
// Add iOS momentum scrolling for iOS < 13.0
WebkitOverflowScrolling: 'touch',
// temporary style
position: 'fixed',
top: 0,
// We disable the focus ring for mouse, touch and keyboard users.
// At some point, it would be better to keep it for keyboard users.
// :focus-ring CSS pseudo-class will help.
outline: 0,
variants: [{
props: {
anchor: 'left'
},
style: {
left: 0
}
}, {
props: {
anchor: 'top'
},
style: {
top: 0,
left: 0,
right: 0,
height: 'auto',
maxHeight: '100%'
}
}, {
props: {
anchor: 'right'
},
style: {
right: 0
}
}, {
props: {
anchor: 'bottom'
},
style: {
top: 'auto',
left: 0,
bottom: 0,
right: 0,
height: 'auto',
maxHeight: '100%'
}
}, {
props: ({
ownerState
}) => ownerState.anchor === 'left' && ownerState.variant !== 'temporary',
style: {
borderRight: `1px solid ${(theme.vars || theme).palette.divider}`
}
}, {
props: ({
ownerState
}) => ownerState.anchor === 'top' && ownerState.variant !== 'temporary',
style: {
borderBottom: `1px solid ${(theme.vars || theme).palette.divider}`
}
}, {
props: ({
ownerState
}) => ownerState.anchor === 'right' && ownerState.variant !== 'temporary',
style: {
borderLeft: `1px solid ${(theme.vars || theme).palette.divider}`
}
}, {
props: ({
ownerState
}) => ownerState.anchor === 'bottom' && ownerState.variant !== 'temporary',
style: {
borderTop: `1px solid ${(theme.vars || theme).palette.divider}`
}
}]
})));
const oppositeDirection = {
left: 'right',
right: 'left',
top: 'down',
bottom: 'up'
};
export function isHorizontal(anchor) {
return ['left', 'right'].includes(anchor);
}
export function getAnchor({
direction
}, anchor) {
return direction === 'rtl' && isHorizontal(anchor) ? oppositeDirection[anchor] : anchor;
}
/**
* The props of the [Modal](/material-ui/api/modal/) component are available
* when `variant="temporary"` is set.
*/
const Drawer = /*#__PURE__*/React.forwardRef(function Drawer(inProps, ref) {
const props = useDefaultProps({
props: inProps,
name: 'MuiDrawer'
});
const theme = useTheme();
const isRtl = useRtl();
const defaultTransitionDuration = {
enter: theme.transitions.duration.enteringScreen,
exit: theme.transitions.duration.leavingScreen
};
const {
anchor: anchorProp = 'left',
BackdropProps,
children,
className,
elevation = 16,
hideBackdrop = false,
ModalProps: {
BackdropProps: BackdropPropsProp,
...ModalProps
} = {},
onClose,
open = false,
PaperProps = {},
SlideProps,
// eslint-disable-next-line react/prop-types
TransitionComponent = Slide,
transitionDuration = defaultTransitionDuration,
variant = 'temporary',
...other
} = props;
// Let's assume that the Drawer will always be rendered on user space.
// We use this state is order to skip the appear transition during the
// initial mount of the component.
const mounted = React.useRef(false);
React.useEffect(() => {
mounted.current = true;
}, []);
const anchorInvariant = getAnchor({
direction: isRtl ? 'rtl' : 'ltr'
}, anchorProp);
const anchor = anchorProp;
const ownerState = {
...props,
anchor,
elevation,
open,
variant,
...other
};
const classes = useUtilityClasses(ownerState);
const drawer = /*#__PURE__*/_jsx(DrawerPaper, {
elevation: variant === 'temporary' ? elevation : 0,
square: true,
...PaperProps,
className: clsx(classes.paper, PaperProps.className),
ownerState: ownerState,
children: children
});
if (variant === 'permanent') {
return /*#__PURE__*/_jsx(DrawerDockedRoot, {
className: clsx(classes.root, classes.docked, className),
ownerState: ownerState,
ref: ref,
...other,
children: drawer
});
}
const slidingDrawer = /*#__PURE__*/_jsx(TransitionComponent, {
in: open,
direction: oppositeDirection[anchorInvariant],
timeout: transitionDuration,
appear: mounted.current,
...SlideProps,
children: drawer
});
if (variant === 'persistent') {
return /*#__PURE__*/_jsx(DrawerDockedRoot, {
className: clsx(classes.root, classes.docked, className),
ownerState: ownerState,
ref: ref,
...other,
children: slidingDrawer
});
}
// variant === temporary
return /*#__PURE__*/_jsx(DrawerRoot, {
BackdropProps: {
...BackdropProps,
...BackdropPropsProp,
transitionDuration
},
className: clsx(classes.root, classes.modal, className),
open: open,
ownerState: ownerState,
onClose: onClose,
hideBackdrop: hideBackdrop,
ref: ref,
...other,
...ModalProps,
children: slidingDrawer
});
});
process.env.NODE_ENV !== "production" ? Drawer.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`. │
// └─────────────────────────────────────────────────────────────────────┘
/**
* Side from which the drawer will appear.
* @default 'left'
*/
anchor: PropTypes.oneOf(['bottom', 'left', 'right', 'top']),
/**
* @ignore
*/
BackdropProps: PropTypes.object,
/**
* 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 elevation of the drawer.
* @default 16
*/
elevation: integerPropType,
/**
* If `true`, the backdrop is not rendered.
* @default false
*/
hideBackdrop: PropTypes.bool,
/**
* Props applied to the [`Modal`](https://mui.com/material-ui/api/modal/) element.
* @default {}
*/
ModalProps: PropTypes.object,
/**
* Callback fired when the component requests to be closed.
* The `reason` parameter can optionally be used to control the response to `onClose`.
*
* @param {object} event The event source of the callback.
* @param {string} reason Can be: `"escapeKeyDown"`, `"backdropClick"`.
*/
onClose: PropTypes.func,
/**
* If `true`, the component is shown.
* @default false
*/
open: PropTypes.bool,
/**
* Props applied to the [`Paper`](https://mui.com/material-ui/api/paper/) element.
* @default {}
*/
PaperProps: PropTypes.object,
/**
* Props applied to the [`Slide`](https://mui.com/material-ui/api/slide/) element.
*/
SlideProps: PropTypes.object,
/**
* 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 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.oneOfType([PropTypes.number, PropTypes.shape({
appear: PropTypes.number,
enter: PropTypes.number,
exit: PropTypes.number
})]),
/**
* The variant to use.
* @default 'temporary'
*/
variant: PropTypes.oneOf(['permanent', 'persistent', 'temporary'])
} : void 0;
export default Drawer;

30
node_modules/@mui/material/Drawer/drawerClasses.d.ts generated vendored Normal file
View File

@@ -0,0 +1,30 @@
export interface DrawerClasses {
/** Styles applied to the root element. */
root: string;
/** Styles applied to the root element if `variant="permanent or persistent"`. */
docked: string;
/** Styles applied to the Paper component. */
paper: string;
/** Styles applied to the Paper component if `anchor="left"`. */
paperAnchorLeft: string;
/** Styles applied to the Paper component if `anchor="right"`. */
paperAnchorRight: string;
/** Styles applied to the Paper component if `anchor="top"`. */
paperAnchorTop: string;
/** Styles applied to the Paper component if `anchor="bottom"`. */
paperAnchorBottom: string;
/** Styles applied to the Paper component if `anchor="left"` and `variant` is not "temporary". */
paperAnchorDockedLeft: string;
/** Styles applied to the Paper component if `anchor="top"` and `variant` is not "temporary". */
paperAnchorDockedTop: string;
/** Styles applied to the Paper component if `anchor="right"` and `variant` is not "temporary". */
paperAnchorDockedRight: string;
/** Styles applied to the Paper component if `anchor="bottom"` and `variant` is not "temporary". */
paperAnchorDockedBottom: string;
/** Styles applied to the Modal component. */
modal: string;
}
export type DrawerClassKey = keyof DrawerClasses;
export declare function getDrawerUtilityClass(slot: string): string;
declare const drawerClasses: DrawerClasses;
export default drawerClasses;

7
node_modules/@mui/material/Drawer/drawerClasses.js generated vendored Normal file
View File

@@ -0,0 +1,7 @@
import generateUtilityClasses from '@mui/utils/generateUtilityClasses';
import generateUtilityClass from '@mui/utils/generateUtilityClass';
export function getDrawerUtilityClass(slot) {
return generateUtilityClass('MuiDrawer', slot);
}
const drawerClasses = generateUtilityClasses('MuiDrawer', ['root', 'docked', 'paper', 'paperAnchorLeft', 'paperAnchorRight', 'paperAnchorTop', 'paperAnchorBottom', 'paperAnchorDockedLeft', 'paperAnchorDockedRight', 'paperAnchorDockedTop', 'paperAnchorDockedBottom', 'modal']);
export default drawerClasses;

5
node_modules/@mui/material/Drawer/index.d.ts generated vendored Normal file
View File

@@ -0,0 +1,5 @@
export { default } from './Drawer';
export * from './Drawer';
export { default as drawerClasses } from './drawerClasses';
export * from './drawerClasses';

3
node_modules/@mui/material/Drawer/index.js generated vendored Normal file
View File

@@ -0,0 +1,3 @@
export { default } from "./Drawer.js";
export { default as drawerClasses } from "./drawerClasses.js";
export * from "./drawerClasses.js";

6
node_modules/@mui/material/Drawer/package.json generated vendored Normal file
View File

@@ -0,0 +1,6 @@
{
"sideEffects": false,
"module": "./index.js",
"main": "../node/Drawer/index.js",
"types": "./index.d.ts"
}