Jesus sucks
This commit is contained in:
296
backend/frontend/node_modules/@mui/material/modern/Accordion/Accordion.js
generated
vendored
Normal file
296
backend/frontend/node_modules/@mui/material/modern/Accordion/Accordion.js
generated
vendored
Normal file
@@ -0,0 +1,296 @@
|
||||
'use client';
|
||||
|
||||
import _extends from "@babel/runtime/helpers/esm/extends";
|
||||
import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/esm/objectWithoutPropertiesLoose";
|
||||
const _excluded = ["children", "className", "defaultExpanded", "disabled", "disableGutters", "expanded", "onChange", "square", "slots", "slotProps", "TransitionComponent", "TransitionProps"];
|
||||
import * as React from 'react';
|
||||
import { isFragment } from 'react-is';
|
||||
import PropTypes from 'prop-types';
|
||||
import clsx from 'clsx';
|
||||
import chainPropTypes from '@mui/utils/chainPropTypes';
|
||||
import composeClasses from '@mui/utils/composeClasses';
|
||||
import { styled } from '../zero-styled';
|
||||
import { useDefaultProps } from '../DefaultPropsProvider';
|
||||
import Collapse from '../Collapse';
|
||||
import Paper from '../Paper';
|
||||
import AccordionContext from './AccordionContext';
|
||||
import useControlled from '../utils/useControlled';
|
||||
import useSlot from '../utils/useSlot';
|
||||
import accordionClasses, { getAccordionUtilityClass } from './accordionClasses';
|
||||
import { jsx as _jsx } from "react/jsx-runtime";
|
||||
import { jsxs as _jsxs } from "react/jsx-runtime";
|
||||
const useUtilityClasses = ownerState => {
|
||||
const {
|
||||
classes,
|
||||
square,
|
||||
expanded,
|
||||
disabled,
|
||||
disableGutters
|
||||
} = ownerState;
|
||||
const slots = {
|
||||
root: ['root', !square && 'rounded', expanded && 'expanded', disabled && 'disabled', !disableGutters && 'gutters'],
|
||||
region: ['region']
|
||||
};
|
||||
return composeClasses(slots, getAccordionUtilityClass, classes);
|
||||
};
|
||||
const AccordionRoot = styled(Paper, {
|
||||
name: 'MuiAccordion',
|
||||
slot: 'Root',
|
||||
overridesResolver: (props, styles) => {
|
||||
const {
|
||||
ownerState
|
||||
} = props;
|
||||
return [{
|
||||
[`& .${accordionClasses.region}`]: styles.region
|
||||
}, styles.root, !ownerState.square && styles.rounded, !ownerState.disableGutters && styles.gutters];
|
||||
}
|
||||
})(({
|
||||
theme
|
||||
}) => {
|
||||
const transition = {
|
||||
duration: theme.transitions.duration.shortest
|
||||
};
|
||||
return {
|
||||
position: 'relative',
|
||||
transition: theme.transitions.create(['margin'], transition),
|
||||
overflowAnchor: 'none',
|
||||
// Keep the same scrolling position
|
||||
'&::before': {
|
||||
position: 'absolute',
|
||||
left: 0,
|
||||
top: -1,
|
||||
right: 0,
|
||||
height: 1,
|
||||
content: '""',
|
||||
opacity: 1,
|
||||
backgroundColor: (theme.vars || theme).palette.divider,
|
||||
transition: theme.transitions.create(['opacity', 'background-color'], transition)
|
||||
},
|
||||
'&:first-of-type': {
|
||||
'&::before': {
|
||||
display: 'none'
|
||||
}
|
||||
},
|
||||
[`&.${accordionClasses.expanded}`]: {
|
||||
'&::before': {
|
||||
opacity: 0
|
||||
},
|
||||
'&:first-of-type': {
|
||||
marginTop: 0
|
||||
},
|
||||
'&:last-of-type': {
|
||||
marginBottom: 0
|
||||
},
|
||||
'& + &': {
|
||||
'&::before': {
|
||||
display: 'none'
|
||||
}
|
||||
}
|
||||
},
|
||||
[`&.${accordionClasses.disabled}`]: {
|
||||
backgroundColor: (theme.vars || theme).palette.action.disabledBackground
|
||||
}
|
||||
};
|
||||
}, ({
|
||||
theme
|
||||
}) => ({
|
||||
variants: [{
|
||||
props: props => !props.square,
|
||||
style: {
|
||||
borderRadius: 0,
|
||||
'&:first-of-type': {
|
||||
borderTopLeftRadius: (theme.vars || theme).shape.borderRadius,
|
||||
borderTopRightRadius: (theme.vars || theme).shape.borderRadius
|
||||
},
|
||||
'&:last-of-type': {
|
||||
borderBottomLeftRadius: (theme.vars || theme).shape.borderRadius,
|
||||
borderBottomRightRadius: (theme.vars || theme).shape.borderRadius,
|
||||
// Fix a rendering issue on Edge
|
||||
'@supports (-ms-ime-align: auto)': {
|
||||
borderBottomLeftRadius: 0,
|
||||
borderBottomRightRadius: 0
|
||||
}
|
||||
}
|
||||
}
|
||||
}, {
|
||||
props: props => !props.disableGutters,
|
||||
style: {
|
||||
[`&.${accordionClasses.expanded}`]: {
|
||||
margin: '16px 0'
|
||||
}
|
||||
}
|
||||
}]
|
||||
}));
|
||||
const Accordion = /*#__PURE__*/React.forwardRef(function Accordion(inProps, ref) {
|
||||
const props = useDefaultProps({
|
||||
props: inProps,
|
||||
name: 'MuiAccordion'
|
||||
});
|
||||
const {
|
||||
children: childrenProp,
|
||||
className,
|
||||
defaultExpanded = false,
|
||||
disabled = false,
|
||||
disableGutters = false,
|
||||
expanded: expandedProp,
|
||||
onChange,
|
||||
square = false,
|
||||
slots = {},
|
||||
slotProps = {},
|
||||
TransitionComponent: TransitionComponentProp,
|
||||
TransitionProps: TransitionPropsProp
|
||||
} = props,
|
||||
other = _objectWithoutPropertiesLoose(props, _excluded);
|
||||
const [expanded, setExpandedState] = useControlled({
|
||||
controlled: expandedProp,
|
||||
default: defaultExpanded,
|
||||
name: 'Accordion',
|
||||
state: 'expanded'
|
||||
});
|
||||
const handleChange = React.useCallback(event => {
|
||||
setExpandedState(!expanded);
|
||||
if (onChange) {
|
||||
onChange(event, !expanded);
|
||||
}
|
||||
}, [expanded, onChange, setExpandedState]);
|
||||
const [summary, ...children] = React.Children.toArray(childrenProp);
|
||||
const contextValue = React.useMemo(() => ({
|
||||
expanded,
|
||||
disabled,
|
||||
disableGutters,
|
||||
toggle: handleChange
|
||||
}), [expanded, disabled, disableGutters, handleChange]);
|
||||
const ownerState = _extends({}, props, {
|
||||
square,
|
||||
disabled,
|
||||
disableGutters,
|
||||
expanded
|
||||
});
|
||||
const classes = useUtilityClasses(ownerState);
|
||||
const backwardCompatibleSlots = _extends({
|
||||
transition: TransitionComponentProp
|
||||
}, slots);
|
||||
const backwardCompatibleSlotProps = _extends({
|
||||
transition: TransitionPropsProp
|
||||
}, slotProps);
|
||||
const [TransitionSlot, transitionProps] = useSlot('transition', {
|
||||
elementType: Collapse,
|
||||
externalForwardedProps: {
|
||||
slots: backwardCompatibleSlots,
|
||||
slotProps: backwardCompatibleSlotProps
|
||||
},
|
||||
ownerState
|
||||
});
|
||||
return /*#__PURE__*/_jsxs(AccordionRoot, _extends({
|
||||
className: clsx(classes.root, className),
|
||||
ref: ref,
|
||||
ownerState: ownerState,
|
||||
square: square
|
||||
}, other, {
|
||||
children: [/*#__PURE__*/_jsx(AccordionContext.Provider, {
|
||||
value: contextValue,
|
||||
children: summary
|
||||
}), /*#__PURE__*/_jsx(TransitionSlot, _extends({
|
||||
in: expanded,
|
||||
timeout: "auto"
|
||||
}, transitionProps, {
|
||||
children: /*#__PURE__*/_jsx("div", {
|
||||
"aria-labelledby": summary.props.id,
|
||||
id: summary.props['aria-controls'],
|
||||
role: "region",
|
||||
className: classes.region,
|
||||
children: children
|
||||
})
|
||||
}))]
|
||||
}));
|
||||
});
|
||||
process.env.NODE_ENV !== "production" ? Accordion.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: chainPropTypes(PropTypes.node.isRequired, props => {
|
||||
const summary = React.Children.toArray(props.children)[0];
|
||||
if (isFragment(summary)) {
|
||||
return new Error("MUI: The Accordion doesn't accept a Fragment as a child. " + 'Consider providing an array instead.');
|
||||
}
|
||||
if (! /*#__PURE__*/React.isValidElement(summary)) {
|
||||
return new Error('MUI: Expected the first child of Accordion to be a valid element.');
|
||||
}
|
||||
return null;
|
||||
}),
|
||||
/**
|
||||
* Override or extend the styles applied to the component.
|
||||
*/
|
||||
classes: PropTypes.object,
|
||||
/**
|
||||
* @ignore
|
||||
*/
|
||||
className: PropTypes.string,
|
||||
/**
|
||||
* If `true`, expands the accordion by default.
|
||||
* @default false
|
||||
*/
|
||||
defaultExpanded: PropTypes.bool,
|
||||
/**
|
||||
* If `true`, the component is disabled.
|
||||
* @default false
|
||||
*/
|
||||
disabled: PropTypes.bool,
|
||||
/**
|
||||
* If `true`, it removes the margin between two expanded accordion items and the increase of height.
|
||||
* @default false
|
||||
*/
|
||||
disableGutters: PropTypes.bool,
|
||||
/**
|
||||
* If `true`, expands the accordion, otherwise collapse it.
|
||||
* Setting this prop enables control over the accordion.
|
||||
*/
|
||||
expanded: PropTypes.bool,
|
||||
/**
|
||||
* Callback fired when the expand/collapse state is changed.
|
||||
*
|
||||
* @param {React.SyntheticEvent} event The event source of the callback. **Warning**: This is a generic event not a change event.
|
||||
* @param {boolean} expanded The `expanded` state of the accordion.
|
||||
*/
|
||||
onChange: PropTypes.func,
|
||||
/**
|
||||
* The props used for each slot inside.
|
||||
* @default {}
|
||||
*/
|
||||
slotProps: PropTypes.shape({
|
||||
transition: PropTypes.oneOfType([PropTypes.func, PropTypes.object])
|
||||
}),
|
||||
/**
|
||||
* The components used for each slot inside.
|
||||
* @default {}
|
||||
*/
|
||||
slots: PropTypes.shape({
|
||||
transition: PropTypes.elementType
|
||||
}),
|
||||
/**
|
||||
* If `true`, rounded corners are disabled.
|
||||
* @default false
|
||||
*/
|
||||
square: PropTypes.bool,
|
||||
/**
|
||||
* 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](/material-ui/transitions/#transitioncomponent-prop) to learn more about the requirements for this component.
|
||||
* @deprecated Use `slots.transition` instead. This prop will be removed in v7. [How to migrate](/material-ui/migration/migrating-from-deprecated-apis/).
|
||||
*/
|
||||
TransitionComponent: PropTypes.elementType,
|
||||
/**
|
||||
* 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 v7. [How to migrate](/material-ui/migration/migrating-from-deprecated-apis/).
|
||||
*/
|
||||
TransitionProps: PropTypes.object
|
||||
} : void 0;
|
||||
export default Accordion;
|
||||
13
backend/frontend/node_modules/@mui/material/modern/Accordion/AccordionContext.js
generated
vendored
Normal file
13
backend/frontend/node_modules/@mui/material/modern/Accordion/AccordionContext.js
generated
vendored
Normal file
@@ -0,0 +1,13 @@
|
||||
'use client';
|
||||
|
||||
import * as React from 'react';
|
||||
|
||||
/**
|
||||
* @ignore - internal component.
|
||||
* @type {React.Context<{} | {expanded: boolean, disabled: boolean, toggle: () => void}>}
|
||||
*/
|
||||
const AccordionContext = /*#__PURE__*/React.createContext({});
|
||||
if (process.env.NODE_ENV !== 'production') {
|
||||
AccordionContext.displayName = 'AccordionContext';
|
||||
}
|
||||
export default AccordionContext;
|
||||
7
backend/frontend/node_modules/@mui/material/modern/Accordion/accordionClasses.js
generated
vendored
Normal file
7
backend/frontend/node_modules/@mui/material/modern/Accordion/accordionClasses.js
generated
vendored
Normal file
@@ -0,0 +1,7 @@
|
||||
import generateUtilityClasses from '@mui/utils/generateUtilityClasses';
|
||||
import generateUtilityClass from '@mui/utils/generateUtilityClass';
|
||||
export function getAccordionUtilityClass(slot) {
|
||||
return generateUtilityClass('MuiAccordion', slot);
|
||||
}
|
||||
const accordionClasses = generateUtilityClasses('MuiAccordion', ['root', 'rounded', 'expanded', 'disabled', 'gutters', 'region']);
|
||||
export default accordionClasses;
|
||||
3
backend/frontend/node_modules/@mui/material/modern/Accordion/index.js
generated
vendored
Normal file
3
backend/frontend/node_modules/@mui/material/modern/Accordion/index.js
generated
vendored
Normal file
@@ -0,0 +1,3 @@
|
||||
export { default } from './Accordion';
|
||||
export { default as accordionClasses } from './accordionClasses';
|
||||
export * from './accordionClasses';
|
||||
94
backend/frontend/node_modules/@mui/material/modern/AccordionActions/AccordionActions.js
generated
vendored
Normal file
94
backend/frontend/node_modules/@mui/material/modern/AccordionActions/AccordionActions.js
generated
vendored
Normal file
@@ -0,0 +1,94 @@
|
||||
'use client';
|
||||
|
||||
import _extends from "@babel/runtime/helpers/esm/extends";
|
||||
import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/esm/objectWithoutPropertiesLoose";
|
||||
const _excluded = ["className", "disableSpacing"];
|
||||
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';
|
||||
import { useDefaultProps } from '../DefaultPropsProvider';
|
||||
import { getAccordionActionsUtilityClass } from './accordionActionsClasses';
|
||||
import { jsx as _jsx } from "react/jsx-runtime";
|
||||
const useUtilityClasses = ownerState => {
|
||||
const {
|
||||
classes,
|
||||
disableSpacing
|
||||
} = ownerState;
|
||||
const slots = {
|
||||
root: ['root', !disableSpacing && 'spacing']
|
||||
};
|
||||
return composeClasses(slots, getAccordionActionsUtilityClass, classes);
|
||||
};
|
||||
const AccordionActionsRoot = styled('div', {
|
||||
name: 'MuiAccordionActions',
|
||||
slot: 'Root',
|
||||
overridesResolver: (props, styles) => {
|
||||
const {
|
||||
ownerState
|
||||
} = props;
|
||||
return [styles.root, !ownerState.disableSpacing && styles.spacing];
|
||||
}
|
||||
})({
|
||||
display: 'flex',
|
||||
alignItems: 'center',
|
||||
padding: 8,
|
||||
justifyContent: 'flex-end',
|
||||
variants: [{
|
||||
props: props => !props.disableSpacing,
|
||||
style: {
|
||||
'& > :not(style) ~ :not(style)': {
|
||||
marginLeft: 8
|
||||
}
|
||||
}
|
||||
}]
|
||||
});
|
||||
const AccordionActions = /*#__PURE__*/React.forwardRef(function AccordionActions(inProps, ref) {
|
||||
const props = useDefaultProps({
|
||||
props: inProps,
|
||||
name: 'MuiAccordionActions'
|
||||
});
|
||||
const {
|
||||
className,
|
||||
disableSpacing = false
|
||||
} = props,
|
||||
other = _objectWithoutPropertiesLoose(props, _excluded);
|
||||
const ownerState = _extends({}, props, {
|
||||
disableSpacing
|
||||
});
|
||||
const classes = useUtilityClasses(ownerState);
|
||||
return /*#__PURE__*/_jsx(AccordionActionsRoot, _extends({
|
||||
className: clsx(classes.root, className),
|
||||
ref: ref,
|
||||
ownerState: ownerState
|
||||
}, other));
|
||||
});
|
||||
process.env.NODE_ENV !== "production" ? AccordionActions.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,
|
||||
/**
|
||||
* If `true`, the actions do not have additional margin.
|
||||
* @default false
|
||||
*/
|
||||
disableSpacing: PropTypes.bool,
|
||||
/**
|
||||
* 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])
|
||||
} : void 0;
|
||||
export default AccordionActions;
|
||||
7
backend/frontend/node_modules/@mui/material/modern/AccordionActions/accordionActionsClasses.js
generated
vendored
Normal file
7
backend/frontend/node_modules/@mui/material/modern/AccordionActions/accordionActionsClasses.js
generated
vendored
Normal file
@@ -0,0 +1,7 @@
|
||||
import generateUtilityClasses from '@mui/utils/generateUtilityClasses';
|
||||
import generateUtilityClass from '@mui/utils/generateUtilityClass';
|
||||
export function getAccordionActionsUtilityClass(slot) {
|
||||
return generateUtilityClass('MuiAccordionActions', slot);
|
||||
}
|
||||
const accordionActionsClasses = generateUtilityClasses('MuiAccordionActions', ['root', 'spacing']);
|
||||
export default accordionActionsClasses;
|
||||
3
backend/frontend/node_modules/@mui/material/modern/AccordionActions/index.js
generated
vendored
Normal file
3
backend/frontend/node_modules/@mui/material/modern/AccordionActions/index.js
generated
vendored
Normal file
@@ -0,0 +1,3 @@
|
||||
export { default } from './AccordionActions';
|
||||
export { default as accordionActionsClasses } from './accordionActionsClasses';
|
||||
export * from './accordionActionsClasses';
|
||||
71
backend/frontend/node_modules/@mui/material/modern/AccordionDetails/AccordionDetails.js
generated
vendored
Normal file
71
backend/frontend/node_modules/@mui/material/modern/AccordionDetails/AccordionDetails.js
generated
vendored
Normal file
@@ -0,0 +1,71 @@
|
||||
'use client';
|
||||
|
||||
import _extends from "@babel/runtime/helpers/esm/extends";
|
||||
import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/esm/objectWithoutPropertiesLoose";
|
||||
const _excluded = ["className"];
|
||||
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';
|
||||
import { useDefaultProps } from '../DefaultPropsProvider';
|
||||
import { getAccordionDetailsUtilityClass } from './accordionDetailsClasses';
|
||||
import { jsx as _jsx } from "react/jsx-runtime";
|
||||
const useUtilityClasses = ownerState => {
|
||||
const {
|
||||
classes
|
||||
} = ownerState;
|
||||
const slots = {
|
||||
root: ['root']
|
||||
};
|
||||
return composeClasses(slots, getAccordionDetailsUtilityClass, classes);
|
||||
};
|
||||
const AccordionDetailsRoot = styled('div', {
|
||||
name: 'MuiAccordionDetails',
|
||||
slot: 'Root',
|
||||
overridesResolver: (props, styles) => styles.root
|
||||
})(({
|
||||
theme
|
||||
}) => ({
|
||||
padding: theme.spacing(1, 2, 2)
|
||||
}));
|
||||
const AccordionDetails = /*#__PURE__*/React.forwardRef(function AccordionDetails(inProps, ref) {
|
||||
const props = useDefaultProps({
|
||||
props: inProps,
|
||||
name: 'MuiAccordionDetails'
|
||||
});
|
||||
const {
|
||||
className
|
||||
} = props,
|
||||
other = _objectWithoutPropertiesLoose(props, _excluded);
|
||||
const ownerState = props;
|
||||
const classes = useUtilityClasses(ownerState);
|
||||
return /*#__PURE__*/_jsx(AccordionDetailsRoot, _extends({
|
||||
className: clsx(classes.root, className),
|
||||
ref: ref,
|
||||
ownerState: ownerState
|
||||
}, other));
|
||||
});
|
||||
process.env.NODE_ENV !== "production" ? AccordionDetails.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 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])
|
||||
} : void 0;
|
||||
export default AccordionDetails;
|
||||
7
backend/frontend/node_modules/@mui/material/modern/AccordionDetails/accordionDetailsClasses.js
generated
vendored
Normal file
7
backend/frontend/node_modules/@mui/material/modern/AccordionDetails/accordionDetailsClasses.js
generated
vendored
Normal file
@@ -0,0 +1,7 @@
|
||||
import generateUtilityClasses from '@mui/utils/generateUtilityClasses';
|
||||
import generateUtilityClass from '@mui/utils/generateUtilityClass';
|
||||
export function getAccordionDetailsUtilityClass(slot) {
|
||||
return generateUtilityClass('MuiAccordionDetails', slot);
|
||||
}
|
||||
const accordionDetailsClasses = generateUtilityClasses('MuiAccordionDetails', ['root']);
|
||||
export default accordionDetailsClasses;
|
||||
3
backend/frontend/node_modules/@mui/material/modern/AccordionDetails/index.js
generated
vendored
Normal file
3
backend/frontend/node_modules/@mui/material/modern/AccordionDetails/index.js
generated
vendored
Normal file
@@ -0,0 +1,3 @@
|
||||
export { default } from './AccordionDetails';
|
||||
export { default as accordionDetailsClasses } from './accordionDetailsClasses';
|
||||
export * from './accordionDetailsClasses';
|
||||
200
backend/frontend/node_modules/@mui/material/modern/AccordionSummary/AccordionSummary.js
generated
vendored
Normal file
200
backend/frontend/node_modules/@mui/material/modern/AccordionSummary/AccordionSummary.js
generated
vendored
Normal file
@@ -0,0 +1,200 @@
|
||||
'use client';
|
||||
|
||||
import _extends from "@babel/runtime/helpers/esm/extends";
|
||||
import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/esm/objectWithoutPropertiesLoose";
|
||||
const _excluded = ["children", "className", "expandIcon", "focusVisibleClassName", "onClick"];
|
||||
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';
|
||||
import { useDefaultProps } from '../DefaultPropsProvider';
|
||||
import ButtonBase from '../ButtonBase';
|
||||
import AccordionContext from '../Accordion/AccordionContext';
|
||||
import accordionSummaryClasses, { getAccordionSummaryUtilityClass } from './accordionSummaryClasses';
|
||||
import { jsx as _jsx } from "react/jsx-runtime";
|
||||
import { jsxs as _jsxs } from "react/jsx-runtime";
|
||||
const useUtilityClasses = ownerState => {
|
||||
const {
|
||||
classes,
|
||||
expanded,
|
||||
disabled,
|
||||
disableGutters
|
||||
} = ownerState;
|
||||
const slots = {
|
||||
root: ['root', expanded && 'expanded', disabled && 'disabled', !disableGutters && 'gutters'],
|
||||
focusVisible: ['focusVisible'],
|
||||
content: ['content', expanded && 'expanded', !disableGutters && 'contentGutters'],
|
||||
expandIconWrapper: ['expandIconWrapper', expanded && 'expanded']
|
||||
};
|
||||
return composeClasses(slots, getAccordionSummaryUtilityClass, classes);
|
||||
};
|
||||
const AccordionSummaryRoot = styled(ButtonBase, {
|
||||
name: 'MuiAccordionSummary',
|
||||
slot: 'Root',
|
||||
overridesResolver: (props, styles) => styles.root
|
||||
})(({
|
||||
theme
|
||||
}) => {
|
||||
const transition = {
|
||||
duration: theme.transitions.duration.shortest
|
||||
};
|
||||
return {
|
||||
display: 'flex',
|
||||
minHeight: 48,
|
||||
padding: theme.spacing(0, 2),
|
||||
transition: theme.transitions.create(['min-height', 'background-color'], transition),
|
||||
[`&.${accordionSummaryClasses.focusVisible}`]: {
|
||||
backgroundColor: (theme.vars || theme).palette.action.focus
|
||||
},
|
||||
[`&.${accordionSummaryClasses.disabled}`]: {
|
||||
opacity: (theme.vars || theme).palette.action.disabledOpacity
|
||||
},
|
||||
[`&:hover:not(.${accordionSummaryClasses.disabled})`]: {
|
||||
cursor: 'pointer'
|
||||
},
|
||||
variants: [{
|
||||
props: props => !props.disableGutters,
|
||||
style: {
|
||||
[`&.${accordionSummaryClasses.expanded}`]: {
|
||||
minHeight: 64
|
||||
}
|
||||
}
|
||||
}]
|
||||
};
|
||||
});
|
||||
const AccordionSummaryContent = styled('div', {
|
||||
name: 'MuiAccordionSummary',
|
||||
slot: 'Content',
|
||||
overridesResolver: (props, styles) => styles.content
|
||||
})(({
|
||||
theme
|
||||
}) => ({
|
||||
display: 'flex',
|
||||
flexGrow: 1,
|
||||
margin: '12px 0',
|
||||
variants: [{
|
||||
props: props => !props.disableGutters,
|
||||
style: {
|
||||
transition: theme.transitions.create(['margin'], {
|
||||
duration: theme.transitions.duration.shortest
|
||||
}),
|
||||
[`&.${accordionSummaryClasses.expanded}`]: {
|
||||
margin: '20px 0'
|
||||
}
|
||||
}
|
||||
}]
|
||||
}));
|
||||
const AccordionSummaryExpandIconWrapper = styled('div', {
|
||||
name: 'MuiAccordionSummary',
|
||||
slot: 'ExpandIconWrapper',
|
||||
overridesResolver: (props, styles) => styles.expandIconWrapper
|
||||
})(({
|
||||
theme
|
||||
}) => ({
|
||||
display: 'flex',
|
||||
color: (theme.vars || theme).palette.action.active,
|
||||
transform: 'rotate(0deg)',
|
||||
transition: theme.transitions.create('transform', {
|
||||
duration: theme.transitions.duration.shortest
|
||||
}),
|
||||
[`&.${accordionSummaryClasses.expanded}`]: {
|
||||
transform: 'rotate(180deg)'
|
||||
}
|
||||
}));
|
||||
const AccordionSummary = /*#__PURE__*/React.forwardRef(function AccordionSummary(inProps, ref) {
|
||||
const props = useDefaultProps({
|
||||
props: inProps,
|
||||
name: 'MuiAccordionSummary'
|
||||
});
|
||||
const {
|
||||
children,
|
||||
className,
|
||||
expandIcon,
|
||||
focusVisibleClassName,
|
||||
onClick
|
||||
} = props,
|
||||
other = _objectWithoutPropertiesLoose(props, _excluded);
|
||||
const {
|
||||
disabled = false,
|
||||
disableGutters,
|
||||
expanded,
|
||||
toggle
|
||||
} = React.useContext(AccordionContext);
|
||||
const handleChange = event => {
|
||||
if (toggle) {
|
||||
toggle(event);
|
||||
}
|
||||
if (onClick) {
|
||||
onClick(event);
|
||||
}
|
||||
};
|
||||
const ownerState = _extends({}, props, {
|
||||
expanded,
|
||||
disabled,
|
||||
disableGutters
|
||||
});
|
||||
const classes = useUtilityClasses(ownerState);
|
||||
return /*#__PURE__*/_jsxs(AccordionSummaryRoot, _extends({
|
||||
focusRipple: false,
|
||||
disableRipple: true,
|
||||
disabled: disabled,
|
||||
component: "div",
|
||||
"aria-expanded": expanded,
|
||||
className: clsx(classes.root, className),
|
||||
focusVisibleClassName: clsx(classes.focusVisible, focusVisibleClassName),
|
||||
onClick: handleChange,
|
||||
ref: ref,
|
||||
ownerState: ownerState
|
||||
}, other, {
|
||||
children: [/*#__PURE__*/_jsx(AccordionSummaryContent, {
|
||||
className: classes.content,
|
||||
ownerState: ownerState,
|
||||
children: children
|
||||
}), expandIcon && /*#__PURE__*/_jsx(AccordionSummaryExpandIconWrapper, {
|
||||
className: classes.expandIconWrapper,
|
||||
ownerState: ownerState,
|
||||
children: expandIcon
|
||||
})]
|
||||
}));
|
||||
});
|
||||
process.env.NODE_ENV !== "production" ? AccordionSummary.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 icon to display as the expand indicator.
|
||||
*/
|
||||
expandIcon: PropTypes.node,
|
||||
/**
|
||||
* This prop can help identify which element has keyboard focus.
|
||||
* The class name will be applied when the element gains the focus through keyboard interaction.
|
||||
* It's a polyfill for the [CSS :focus-visible selector](https://drafts.csswg.org/selectors-4/#the-focus-visible-pseudo).
|
||||
* The rationale for using this feature [is explained here](https://github.com/WICG/focus-visible/blob/HEAD/explainer.md).
|
||||
* A [polyfill can be used](https://github.com/WICG/focus-visible) to apply a `focus-visible` class to other components
|
||||
* if needed.
|
||||
*/
|
||||
focusVisibleClassName: PropTypes.string,
|
||||
/**
|
||||
* @ignore
|
||||
*/
|
||||
onClick: PropTypes.func,
|
||||
/**
|
||||
* 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])
|
||||
} : void 0;
|
||||
export default AccordionSummary;
|
||||
7
backend/frontend/node_modules/@mui/material/modern/AccordionSummary/accordionSummaryClasses.js
generated
vendored
Normal file
7
backend/frontend/node_modules/@mui/material/modern/AccordionSummary/accordionSummaryClasses.js
generated
vendored
Normal file
@@ -0,0 +1,7 @@
|
||||
import generateUtilityClasses from '@mui/utils/generateUtilityClasses';
|
||||
import generateUtilityClass from '@mui/utils/generateUtilityClass';
|
||||
export function getAccordionSummaryUtilityClass(slot) {
|
||||
return generateUtilityClass('MuiAccordionSummary', slot);
|
||||
}
|
||||
const accordionSummaryClasses = generateUtilityClasses('MuiAccordionSummary', ['root', 'expanded', 'focusVisible', 'disabled', 'gutters', 'contentGutters', 'content', 'expandIconWrapper']);
|
||||
export default accordionSummaryClasses;
|
||||
3
backend/frontend/node_modules/@mui/material/modern/AccordionSummary/index.js
generated
vendored
Normal file
3
backend/frontend/node_modules/@mui/material/modern/AccordionSummary/index.js
generated
vendored
Normal file
@@ -0,0 +1,3 @@
|
||||
export { default } from './AccordionSummary';
|
||||
export { default as accordionSummaryClasses } from './accordionSummaryClasses';
|
||||
export * from './accordionSummaryClasses';
|
||||
348
backend/frontend/node_modules/@mui/material/modern/Alert/Alert.js
generated
vendored
Normal file
348
backend/frontend/node_modules/@mui/material/modern/Alert/Alert.js
generated
vendored
Normal file
@@ -0,0 +1,348 @@
|
||||
'use client';
|
||||
|
||||
import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/esm/objectWithoutPropertiesLoose";
|
||||
import _extends from "@babel/runtime/helpers/esm/extends";
|
||||
const _excluded = ["action", "children", "className", "closeText", "color", "components", "componentsProps", "icon", "iconMapping", "onClose", "role", "severity", "slotProps", "slots", "variant"];
|
||||
import * as React from 'react';
|
||||
import PropTypes from 'prop-types';
|
||||
import clsx from 'clsx';
|
||||
import composeClasses from '@mui/utils/composeClasses';
|
||||
import { darken, lighten } from '@mui/system/colorManipulator';
|
||||
import { styled } from '../zero-styled';
|
||||
import { useDefaultProps } from '../DefaultPropsProvider';
|
||||
import useSlot from '../utils/useSlot';
|
||||
import capitalize from '../utils/capitalize';
|
||||
import Paper from '../Paper';
|
||||
import alertClasses, { getAlertUtilityClass } from './alertClasses';
|
||||
import IconButton from '../IconButton';
|
||||
import SuccessOutlinedIcon from '../internal/svg-icons/SuccessOutlined';
|
||||
import ReportProblemOutlinedIcon from '../internal/svg-icons/ReportProblemOutlined';
|
||||
import ErrorOutlineIcon from '../internal/svg-icons/ErrorOutline';
|
||||
import InfoOutlinedIcon from '../internal/svg-icons/InfoOutlined';
|
||||
import CloseIcon from '../internal/svg-icons/Close';
|
||||
import { jsx as _jsx } from "react/jsx-runtime";
|
||||
import { jsxs as _jsxs } from "react/jsx-runtime";
|
||||
const useUtilityClasses = ownerState => {
|
||||
const {
|
||||
variant,
|
||||
color,
|
||||
severity,
|
||||
classes
|
||||
} = ownerState;
|
||||
const slots = {
|
||||
root: ['root', `color${capitalize(color || severity)}`, `${variant}${capitalize(color || severity)}`, `${variant}`],
|
||||
icon: ['icon'],
|
||||
message: ['message'],
|
||||
action: ['action']
|
||||
};
|
||||
return composeClasses(slots, getAlertUtilityClass, classes);
|
||||
};
|
||||
const AlertRoot = styled(Paper, {
|
||||
name: 'MuiAlert',
|
||||
slot: 'Root',
|
||||
overridesResolver: (props, styles) => {
|
||||
const {
|
||||
ownerState
|
||||
} = props;
|
||||
return [styles.root, styles[ownerState.variant], styles[`${ownerState.variant}${capitalize(ownerState.color || ownerState.severity)}`]];
|
||||
}
|
||||
})(({
|
||||
theme
|
||||
}) => {
|
||||
const getColor = theme.palette.mode === 'light' ? darken : lighten;
|
||||
const getBackgroundColor = theme.palette.mode === 'light' ? lighten : darken;
|
||||
return _extends({}, theme.typography.body2, {
|
||||
backgroundColor: 'transparent',
|
||||
display: 'flex',
|
||||
padding: '6px 16px',
|
||||
variants: [...Object.entries(theme.palette).filter(([, value]) => value.main && value.light).map(([color]) => ({
|
||||
props: {
|
||||
colorSeverity: color,
|
||||
variant: 'standard'
|
||||
},
|
||||
style: {
|
||||
color: theme.vars ? theme.vars.palette.Alert[`${color}Color`] : getColor(theme.palette[color].light, 0.6),
|
||||
backgroundColor: theme.vars ? theme.vars.palette.Alert[`${color}StandardBg`] : getBackgroundColor(theme.palette[color].light, 0.9),
|
||||
[`& .${alertClasses.icon}`]: theme.vars ? {
|
||||
color: theme.vars.palette.Alert[`${color}IconColor`]
|
||||
} : {
|
||||
color: theme.palette[color].main
|
||||
}
|
||||
}
|
||||
})), ...Object.entries(theme.palette).filter(([, value]) => value.main && value.light).map(([color]) => ({
|
||||
props: {
|
||||
colorSeverity: color,
|
||||
variant: 'outlined'
|
||||
},
|
||||
style: {
|
||||
color: theme.vars ? theme.vars.palette.Alert[`${color}Color`] : getColor(theme.palette[color].light, 0.6),
|
||||
border: `1px solid ${(theme.vars || theme).palette[color].light}`,
|
||||
[`& .${alertClasses.icon}`]: theme.vars ? {
|
||||
color: theme.vars.palette.Alert[`${color}IconColor`]
|
||||
} : {
|
||||
color: theme.palette[color].main
|
||||
}
|
||||
}
|
||||
})), ...Object.entries(theme.palette).filter(([, value]) => value.main && value.dark).map(([color]) => ({
|
||||
props: {
|
||||
colorSeverity: color,
|
||||
variant: 'filled'
|
||||
},
|
||||
style: _extends({
|
||||
fontWeight: theme.typography.fontWeightMedium
|
||||
}, theme.vars ? {
|
||||
color: theme.vars.palette.Alert[`${color}FilledColor`],
|
||||
backgroundColor: theme.vars.palette.Alert[`${color}FilledBg`]
|
||||
} : {
|
||||
backgroundColor: theme.palette.mode === 'dark' ? theme.palette[color].dark : theme.palette[color].main,
|
||||
color: theme.palette.getContrastText(theme.palette[color].main)
|
||||
})
|
||||
}))]
|
||||
});
|
||||
});
|
||||
const AlertIcon = styled('div', {
|
||||
name: 'MuiAlert',
|
||||
slot: 'Icon',
|
||||
overridesResolver: (props, styles) => styles.icon
|
||||
})({
|
||||
marginRight: 12,
|
||||
padding: '7px 0',
|
||||
display: 'flex',
|
||||
fontSize: 22,
|
||||
opacity: 0.9
|
||||
});
|
||||
const AlertMessage = styled('div', {
|
||||
name: 'MuiAlert',
|
||||
slot: 'Message',
|
||||
overridesResolver: (props, styles) => styles.message
|
||||
})({
|
||||
padding: '8px 0',
|
||||
minWidth: 0,
|
||||
overflow: 'auto'
|
||||
});
|
||||
const AlertAction = styled('div', {
|
||||
name: 'MuiAlert',
|
||||
slot: 'Action',
|
||||
overridesResolver: (props, styles) => styles.action
|
||||
})({
|
||||
display: 'flex',
|
||||
alignItems: 'flex-start',
|
||||
padding: '4px 0 0 16px',
|
||||
marginLeft: 'auto',
|
||||
marginRight: -8
|
||||
});
|
||||
const defaultIconMapping = {
|
||||
success: /*#__PURE__*/_jsx(SuccessOutlinedIcon, {
|
||||
fontSize: "inherit"
|
||||
}),
|
||||
warning: /*#__PURE__*/_jsx(ReportProblemOutlinedIcon, {
|
||||
fontSize: "inherit"
|
||||
}),
|
||||
error: /*#__PURE__*/_jsx(ErrorOutlineIcon, {
|
||||
fontSize: "inherit"
|
||||
}),
|
||||
info: /*#__PURE__*/_jsx(InfoOutlinedIcon, {
|
||||
fontSize: "inherit"
|
||||
})
|
||||
};
|
||||
const Alert = /*#__PURE__*/React.forwardRef(function Alert(inProps, ref) {
|
||||
const props = useDefaultProps({
|
||||
props: inProps,
|
||||
name: 'MuiAlert'
|
||||
});
|
||||
const {
|
||||
action,
|
||||
children,
|
||||
className,
|
||||
closeText = 'Close',
|
||||
color,
|
||||
components = {},
|
||||
componentsProps = {},
|
||||
icon,
|
||||
iconMapping = defaultIconMapping,
|
||||
onClose,
|
||||
role = 'alert',
|
||||
severity = 'success',
|
||||
slotProps = {},
|
||||
slots = {},
|
||||
variant = 'standard'
|
||||
} = props,
|
||||
other = _objectWithoutPropertiesLoose(props, _excluded);
|
||||
const ownerState = _extends({}, props, {
|
||||
color,
|
||||
severity,
|
||||
variant,
|
||||
colorSeverity: color || severity
|
||||
});
|
||||
const classes = useUtilityClasses(ownerState);
|
||||
const externalForwardedProps = {
|
||||
slots: _extends({
|
||||
closeButton: components.CloseButton,
|
||||
closeIcon: components.CloseIcon
|
||||
}, slots),
|
||||
slotProps: _extends({}, componentsProps, slotProps)
|
||||
};
|
||||
const [CloseButtonSlot, closeButtonProps] = useSlot('closeButton', {
|
||||
elementType: IconButton,
|
||||
externalForwardedProps,
|
||||
ownerState
|
||||
});
|
||||
const [CloseIconSlot, closeIconProps] = useSlot('closeIcon', {
|
||||
elementType: CloseIcon,
|
||||
externalForwardedProps,
|
||||
ownerState
|
||||
});
|
||||
return /*#__PURE__*/_jsxs(AlertRoot, _extends({
|
||||
role: role,
|
||||
elevation: 0,
|
||||
ownerState: ownerState,
|
||||
className: clsx(classes.root, className),
|
||||
ref: ref
|
||||
}, other, {
|
||||
children: [icon !== false ? /*#__PURE__*/_jsx(AlertIcon, {
|
||||
ownerState: ownerState,
|
||||
className: classes.icon,
|
||||
children: icon || iconMapping[severity] || defaultIconMapping[severity]
|
||||
}) : null, /*#__PURE__*/_jsx(AlertMessage, {
|
||||
ownerState: ownerState,
|
||||
className: classes.message,
|
||||
children: children
|
||||
}), action != null ? /*#__PURE__*/_jsx(AlertAction, {
|
||||
ownerState: ownerState,
|
||||
className: classes.action,
|
||||
children: action
|
||||
}) : null, action == null && onClose ? /*#__PURE__*/_jsx(AlertAction, {
|
||||
ownerState: ownerState,
|
||||
className: classes.action,
|
||||
children: /*#__PURE__*/_jsx(CloseButtonSlot, _extends({
|
||||
size: "small",
|
||||
"aria-label": closeText,
|
||||
title: closeText,
|
||||
color: "inherit",
|
||||
onClick: onClose
|
||||
}, closeButtonProps, {
|
||||
children: /*#__PURE__*/_jsx(CloseIconSlot, _extends({
|
||||
fontSize: "small"
|
||||
}, closeIconProps))
|
||||
}))
|
||||
}) : null]
|
||||
}));
|
||||
});
|
||||
process.env.NODE_ENV !== "production" ? Alert.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 action to display. It renders after the message, at the end of the alert.
|
||||
*/
|
||||
action: PropTypes.node,
|
||||
/**
|
||||
* The content of the component.
|
||||
*/
|
||||
children: PropTypes.node,
|
||||
/**
|
||||
* Override or extend the styles applied to the component.
|
||||
*/
|
||||
classes: PropTypes.object,
|
||||
/**
|
||||
* @ignore
|
||||
*/
|
||||
className: PropTypes.string,
|
||||
/**
|
||||
* Override the default label for the *close popup* icon button.
|
||||
*
|
||||
* For localization purposes, you can use the provided [translations](/material-ui/guides/localization/).
|
||||
* @default 'Close'
|
||||
*/
|
||||
closeText: PropTypes.string,
|
||||
/**
|
||||
* The color of the component. Unless provided, the value is taken from the `severity` prop.
|
||||
* 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).
|
||||
*/
|
||||
color: PropTypes /* @typescript-to-proptypes-ignore */.oneOfType([PropTypes.oneOf(['error', 'info', 'success', 'warning']), PropTypes.string]),
|
||||
/**
|
||||
* The components used for each slot inside.
|
||||
*
|
||||
* @deprecated use the `slots` prop instead. This prop will be removed in v7. [How to migrate](/material-ui/migration/migrating-from-deprecated-apis/).
|
||||
*
|
||||
* @default {}
|
||||
*/
|
||||
components: PropTypes.shape({
|
||||
CloseButton: PropTypes.elementType,
|
||||
CloseIcon: 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 v7. [How to migrate](/material-ui/migration/migrating-from-deprecated-apis/).
|
||||
*
|
||||
* @default {}
|
||||
*/
|
||||
componentsProps: PropTypes.shape({
|
||||
closeButton: PropTypes.object,
|
||||
closeIcon: PropTypes.object
|
||||
}),
|
||||
/**
|
||||
* Override the icon displayed before the children.
|
||||
* Unless provided, the icon is mapped to the value of the `severity` prop.
|
||||
* Set to `false` to remove the `icon`.
|
||||
*/
|
||||
icon: PropTypes.node,
|
||||
/**
|
||||
* The component maps the `severity` prop to a range of different icons,
|
||||
* for instance success to `<SuccessOutlined>`.
|
||||
* If you wish to change this mapping, you can provide your own.
|
||||
* Alternatively, you can use the `icon` prop to override the icon displayed.
|
||||
*/
|
||||
iconMapping: PropTypes.shape({
|
||||
error: PropTypes.node,
|
||||
info: PropTypes.node,
|
||||
success: PropTypes.node,
|
||||
warning: PropTypes.node
|
||||
}),
|
||||
/**
|
||||
* Callback fired when the component requests to be closed.
|
||||
* When provided and no `action` prop is set, a close icon button is displayed that triggers the callback when clicked.
|
||||
* @param {React.SyntheticEvent} event The event source of the callback.
|
||||
*/
|
||||
onClose: PropTypes.func,
|
||||
/**
|
||||
* The ARIA role attribute of the element.
|
||||
* @default 'alert'
|
||||
*/
|
||||
role: PropTypes.string,
|
||||
/**
|
||||
* The severity of the alert. This defines the color and icon used.
|
||||
* @default 'success'
|
||||
*/
|
||||
severity: PropTypes /* @typescript-to-proptypes-ignore */.oneOfType([PropTypes.oneOf(['error', 'info', 'success', 'warning']), PropTypes.string]),
|
||||
/**
|
||||
* The props used for each slot inside.
|
||||
* @default {}
|
||||
*/
|
||||
slotProps: PropTypes.shape({
|
||||
closeButton: PropTypes.oneOfType([PropTypes.func, PropTypes.object]),
|
||||
closeIcon: PropTypes.oneOfType([PropTypes.func, PropTypes.object])
|
||||
}),
|
||||
/**
|
||||
* The components used for each slot inside.
|
||||
* @default {}
|
||||
*/
|
||||
slots: PropTypes.shape({
|
||||
closeButton: PropTypes.elementType,
|
||||
closeIcon: 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 variant to use.
|
||||
* @default 'standard'
|
||||
*/
|
||||
variant: PropTypes /* @typescript-to-proptypes-ignore */.oneOfType([PropTypes.oneOf(['filled', 'outlined', 'standard']), PropTypes.string])
|
||||
} : void 0;
|
||||
export default Alert;
|
||||
7
backend/frontend/node_modules/@mui/material/modern/Alert/alertClasses.js
generated
vendored
Normal file
7
backend/frontend/node_modules/@mui/material/modern/Alert/alertClasses.js
generated
vendored
Normal file
@@ -0,0 +1,7 @@
|
||||
import generateUtilityClasses from '@mui/utils/generateUtilityClasses';
|
||||
import generateUtilityClass from '@mui/utils/generateUtilityClass';
|
||||
export function getAlertUtilityClass(slot) {
|
||||
return generateUtilityClass('MuiAlert', slot);
|
||||
}
|
||||
const alertClasses = generateUtilityClasses('MuiAlert', ['root', 'action', 'icon', 'message', 'filled', 'colorSuccess', 'colorInfo', 'colorWarning', 'colorError', 'filledSuccess', 'filledInfo', 'filledWarning', 'filledError', 'outlined', 'outlinedSuccess', 'outlinedInfo', 'outlinedWarning', 'outlinedError', 'standard', 'standardSuccess', 'standardInfo', 'standardWarning', 'standardError']);
|
||||
export default alertClasses;
|
||||
5
backend/frontend/node_modules/@mui/material/modern/Alert/index.js
generated
vendored
Normal file
5
backend/frontend/node_modules/@mui/material/modern/Alert/index.js
generated
vendored
Normal file
@@ -0,0 +1,5 @@
|
||||
'use client';
|
||||
|
||||
export { default } from './Alert';
|
||||
export { default as alertClasses } from './alertClasses';
|
||||
export * from './alertClasses';
|
||||
77
backend/frontend/node_modules/@mui/material/modern/AlertTitle/AlertTitle.js
generated
vendored
Normal file
77
backend/frontend/node_modules/@mui/material/modern/AlertTitle/AlertTitle.js
generated
vendored
Normal file
@@ -0,0 +1,77 @@
|
||||
'use client';
|
||||
|
||||
import _extends from "@babel/runtime/helpers/esm/extends";
|
||||
import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/esm/objectWithoutPropertiesLoose";
|
||||
const _excluded = ["className"];
|
||||
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';
|
||||
import { useDefaultProps } from '../DefaultPropsProvider';
|
||||
import Typography from '../Typography';
|
||||
import { getAlertTitleUtilityClass } from './alertTitleClasses';
|
||||
import { jsx as _jsx } from "react/jsx-runtime";
|
||||
const useUtilityClasses = ownerState => {
|
||||
const {
|
||||
classes
|
||||
} = ownerState;
|
||||
const slots = {
|
||||
root: ['root']
|
||||
};
|
||||
return composeClasses(slots, getAlertTitleUtilityClass, classes);
|
||||
};
|
||||
const AlertTitleRoot = styled(Typography, {
|
||||
name: 'MuiAlertTitle',
|
||||
slot: 'Root',
|
||||
overridesResolver: (props, styles) => styles.root
|
||||
})(({
|
||||
theme
|
||||
}) => {
|
||||
return {
|
||||
fontWeight: theme.typography.fontWeightMedium,
|
||||
marginTop: -2
|
||||
};
|
||||
});
|
||||
const AlertTitle = /*#__PURE__*/React.forwardRef(function AlertTitle(inProps, ref) {
|
||||
const props = useDefaultProps({
|
||||
props: inProps,
|
||||
name: 'MuiAlertTitle'
|
||||
});
|
||||
const {
|
||||
className
|
||||
} = props,
|
||||
other = _objectWithoutPropertiesLoose(props, _excluded);
|
||||
const ownerState = props;
|
||||
const classes = useUtilityClasses(ownerState);
|
||||
return /*#__PURE__*/_jsx(AlertTitleRoot, _extends({
|
||||
gutterBottom: true,
|
||||
component: "div",
|
||||
ownerState: ownerState,
|
||||
ref: ref,
|
||||
className: clsx(classes.root, className)
|
||||
}, other));
|
||||
});
|
||||
process.env.NODE_ENV !== "production" ? AlertTitle.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 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])
|
||||
} : void 0;
|
||||
export default AlertTitle;
|
||||
7
backend/frontend/node_modules/@mui/material/modern/AlertTitle/alertTitleClasses.js
generated
vendored
Normal file
7
backend/frontend/node_modules/@mui/material/modern/AlertTitle/alertTitleClasses.js
generated
vendored
Normal file
@@ -0,0 +1,7 @@
|
||||
import generateUtilityClasses from '@mui/utils/generateUtilityClasses';
|
||||
import generateUtilityClass from '@mui/utils/generateUtilityClass';
|
||||
export function getAlertTitleUtilityClass(slot) {
|
||||
return generateUtilityClass('MuiAlertTitle', slot);
|
||||
}
|
||||
const alertTitleClasses = generateUtilityClasses('MuiAlertTitle', ['root']);
|
||||
export default alertTitleClasses;
|
||||
5
backend/frontend/node_modules/@mui/material/modern/AlertTitle/index.js
generated
vendored
Normal file
5
backend/frontend/node_modules/@mui/material/modern/AlertTitle/index.js
generated
vendored
Normal file
@@ -0,0 +1,5 @@
|
||||
'use client';
|
||||
|
||||
export { default } from './AlertTitle';
|
||||
export { default as alertTitleClasses } from './alertTitleClasses';
|
||||
export * from './alertTitleClasses';
|
||||
179
backend/frontend/node_modules/@mui/material/modern/AppBar/AppBar.js
generated
vendored
Normal file
179
backend/frontend/node_modules/@mui/material/modern/AppBar/AppBar.js
generated
vendored
Normal file
@@ -0,0 +1,179 @@
|
||||
'use client';
|
||||
|
||||
import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/esm/objectWithoutPropertiesLoose";
|
||||
import _extends from "@babel/runtime/helpers/esm/extends";
|
||||
const _excluded = ["className", "color", "enableColorOnDark", "position"];
|
||||
import * as React from 'react';
|
||||
import PropTypes from 'prop-types';
|
||||
import clsx from 'clsx';
|
||||
import composeClasses from '@mui/utils/composeClasses';
|
||||
import styled from '../styles/styled';
|
||||
import { useDefaultProps } from '../DefaultPropsProvider';
|
||||
import capitalize from '../utils/capitalize';
|
||||
import Paper from '../Paper';
|
||||
import { getAppBarUtilityClass } from './appBarClasses';
|
||||
import { jsx as _jsx } from "react/jsx-runtime";
|
||||
const useUtilityClasses = ownerState => {
|
||||
const {
|
||||
color,
|
||||
position,
|
||||
classes
|
||||
} = ownerState;
|
||||
const slots = {
|
||||
root: ['root', `color${capitalize(color)}`, `position${capitalize(position)}`]
|
||||
};
|
||||
return composeClasses(slots, 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 = styled(Paper, {
|
||||
name: 'MuiAppBar',
|
||||
slot: 'Root',
|
||||
overridesResolver: (props, styles) => {
|
||||
const {
|
||||
ownerState
|
||||
} = props;
|
||||
return [styles.root, styles[`position${capitalize(ownerState.position)}`], styles[`color${capitalize(ownerState.color)}`]];
|
||||
}
|
||||
})(({
|
||||
theme,
|
||||
ownerState
|
||||
}) => {
|
||||
const backgroundColorDefault = theme.palette.mode === 'light' ? theme.palette.grey[100] : theme.palette.grey[900];
|
||||
return _extends({
|
||||
display: 'flex',
|
||||
flexDirection: 'column',
|
||||
width: '100%',
|
||||
boxSizing: 'border-box',
|
||||
// Prevent padding issue with the Modal and fixed positioned AppBar.
|
||||
flexShrink: 0
|
||||
}, ownerState.position === 'fixed' && {
|
||||
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'
|
||||
}
|
||||
}, ownerState.position === 'absolute' && {
|
||||
position: 'absolute',
|
||||
zIndex: (theme.vars || theme).zIndex.appBar,
|
||||
top: 0,
|
||||
left: 'auto',
|
||||
right: 0
|
||||
}, ownerState.position === 'sticky' && {
|
||||
// ⚠️ sticky is not supported by IE11.
|
||||
position: 'sticky',
|
||||
zIndex: (theme.vars || theme).zIndex.appBar,
|
||||
top: 0,
|
||||
left: 'auto',
|
||||
right: 0
|
||||
}, ownerState.position === 'static' && {
|
||||
position: 'static'
|
||||
}, ownerState.position === 'relative' && {
|
||||
position: 'relative'
|
||||
}, !theme.vars && _extends({}, ownerState.color === 'default' && {
|
||||
backgroundColor: backgroundColorDefault,
|
||||
color: theme.palette.getContrastText(backgroundColorDefault)
|
||||
}, ownerState.color && ownerState.color !== 'default' && ownerState.color !== 'inherit' && ownerState.color !== 'transparent' && {
|
||||
backgroundColor: theme.palette[ownerState.color].main,
|
||||
color: theme.palette[ownerState.color].contrastText
|
||||
}, ownerState.color === 'inherit' && {
|
||||
color: 'inherit'
|
||||
}, theme.palette.mode === 'dark' && !ownerState.enableColorOnDark && {
|
||||
backgroundColor: null,
|
||||
color: null
|
||||
}, ownerState.color === 'transparent' && _extends({
|
||||
backgroundColor: 'transparent',
|
||||
color: 'inherit'
|
||||
}, theme.palette.mode === 'dark' && {
|
||||
backgroundImage: 'none'
|
||||
})), theme.vars && _extends({}, ownerState.color === 'default' && {
|
||||
'--AppBar-background': ownerState.enableColorOnDark ? theme.vars.palette.AppBar.defaultBg : joinVars(theme.vars.palette.AppBar.darkBg, theme.vars.palette.AppBar.defaultBg),
|
||||
'--AppBar-color': ownerState.enableColorOnDark ? theme.vars.palette.text.primary : joinVars(theme.vars.palette.AppBar.darkColor, theme.vars.palette.text.primary)
|
||||
}, ownerState.color && !ownerState.color.match(/^(default|inherit|transparent)$/) && {
|
||||
'--AppBar-background': ownerState.enableColorOnDark ? theme.vars.palette[ownerState.color].main : joinVars(theme.vars.palette.AppBar.darkBg, theme.vars.palette[ownerState.color].main),
|
||||
'--AppBar-color': ownerState.enableColorOnDark ? theme.vars.palette[ownerState.color].contrastText : joinVars(theme.vars.palette.AppBar.darkColor, theme.vars.palette[ownerState.color].contrastText)
|
||||
}, !['inherit', 'transparent'].includes(ownerState.color) && {
|
||||
backgroundColor: 'var(--AppBar-background)'
|
||||
}, {
|
||||
color: ownerState.color === 'inherit' ? 'inherit' : 'var(--AppBar-color)'
|
||||
}, ownerState.color === 'transparent' && {
|
||||
backgroundImage: 'none',
|
||||
backgroundColor: 'transparent',
|
||||
color: 'inherit'
|
||||
}));
|
||||
});
|
||||
const AppBar = /*#__PURE__*/React.forwardRef(function AppBar(inProps, ref) {
|
||||
const props = useDefaultProps({
|
||||
props: inProps,
|
||||
name: 'MuiAppBar'
|
||||
});
|
||||
const {
|
||||
className,
|
||||
color = 'primary',
|
||||
enableColorOnDark = false,
|
||||
position = 'fixed'
|
||||
} = props,
|
||||
other = _objectWithoutPropertiesLoose(props, _excluded);
|
||||
const ownerState = _extends({}, props, {
|
||||
color,
|
||||
position,
|
||||
enableColorOnDark
|
||||
});
|
||||
const classes = useUtilityClasses(ownerState);
|
||||
return /*#__PURE__*/_jsx(AppBarRoot, _extends({
|
||||
square: true,
|
||||
component: "header",
|
||||
ownerState: ownerState,
|
||||
elevation: 4,
|
||||
className: clsx(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.node,
|
||||
/**
|
||||
* Override or extend the styles applied to the component.
|
||||
*/
|
||||
classes: PropTypes.object,
|
||||
/**
|
||||
* @ignore
|
||||
*/
|
||||
className: PropTypes.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 /* @typescript-to-proptypes-ignore */.oneOfType([PropTypes.oneOf(['default', 'inherit', 'primary', 'secondary', 'transparent', 'error', 'info', 'success', 'warning']), PropTypes.string]),
|
||||
/**
|
||||
* If true, the `color` prop is applied in dark mode.
|
||||
* @default false
|
||||
*/
|
||||
enableColorOnDark: PropTypes.bool,
|
||||
/**
|
||||
* The positioning type. The behavior of the different options is described
|
||||
* [in the MDN web docs](https://developer.mozilla.org/en-US/docs/Learn/CSS/CSS_layout/Positioning).
|
||||
* Note: `sticky` is not universally supported and will fall back to `static` when unavailable.
|
||||
* @default 'fixed'
|
||||
*/
|
||||
position: PropTypes.oneOf(['absolute', 'fixed', 'relative', 'static', 'sticky']),
|
||||
/**
|
||||
* 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])
|
||||
} : void 0;
|
||||
export default AppBar;
|
||||
7
backend/frontend/node_modules/@mui/material/modern/AppBar/appBarClasses.js
generated
vendored
Normal file
7
backend/frontend/node_modules/@mui/material/modern/AppBar/appBarClasses.js
generated
vendored
Normal file
@@ -0,0 +1,7 @@
|
||||
import generateUtilityClasses from '@mui/utils/generateUtilityClasses';
|
||||
import generateUtilityClass from '@mui/utils/generateUtilityClass';
|
||||
export function getAppBarUtilityClass(slot) {
|
||||
return generateUtilityClass('MuiAppBar', slot);
|
||||
}
|
||||
const appBarClasses = generateUtilityClasses('MuiAppBar', ['root', 'positionFixed', 'positionAbsolute', 'positionSticky', 'positionStatic', 'positionRelative', 'colorDefault', 'colorPrimary', 'colorSecondary', 'colorInherit', 'colorTransparent', 'colorError', 'colorInfo', 'colorSuccess', 'colorWarning']);
|
||||
export default appBarClasses;
|
||||
5
backend/frontend/node_modules/@mui/material/modern/AppBar/index.js
generated
vendored
Normal file
5
backend/frontend/node_modules/@mui/material/modern/AppBar/index.js
generated
vendored
Normal file
@@ -0,0 +1,5 @@
|
||||
'use client';
|
||||
|
||||
export { default } from './AppBar';
|
||||
export { default as appBarClasses } from './appBarClasses';
|
||||
export * from './appBarClasses';
|
||||
1135
backend/frontend/node_modules/@mui/material/modern/Autocomplete/Autocomplete.js
generated
vendored
Normal file
1135
backend/frontend/node_modules/@mui/material/modern/Autocomplete/Autocomplete.js
generated
vendored
Normal file
File diff suppressed because it is too large
Load Diff
7
backend/frontend/node_modules/@mui/material/modern/Autocomplete/autocompleteClasses.js
generated
vendored
Normal file
7
backend/frontend/node_modules/@mui/material/modern/Autocomplete/autocompleteClasses.js
generated
vendored
Normal file
@@ -0,0 +1,7 @@
|
||||
import generateUtilityClasses from '@mui/utils/generateUtilityClasses';
|
||||
import generateUtilityClass from '@mui/utils/generateUtilityClass';
|
||||
export function getAutocompleteUtilityClass(slot) {
|
||||
return generateUtilityClass('MuiAutocomplete', slot);
|
||||
}
|
||||
const autocompleteClasses = generateUtilityClasses('MuiAutocomplete', ['root', 'expanded', 'fullWidth', 'focused', 'focusVisible', 'tag', 'tagSizeSmall', 'tagSizeMedium', 'hasPopupIcon', 'hasClearIcon', 'inputRoot', 'input', 'inputFocused', 'endAdornment', 'clearIndicator', 'popupIndicator', 'popupIndicatorOpen', 'popper', 'popperDisablePortal', 'paper', 'listbox', 'loading', 'noOptions', 'option', 'groupLabel', 'groupUl']);
|
||||
export default autocompleteClasses;
|
||||
5
backend/frontend/node_modules/@mui/material/modern/Autocomplete/index.js
generated
vendored
Normal file
5
backend/frontend/node_modules/@mui/material/modern/Autocomplete/index.js
generated
vendored
Normal file
@@ -0,0 +1,5 @@
|
||||
'use client';
|
||||
|
||||
export { default, createFilterOptions } from './Autocomplete';
|
||||
export { default as autocompleteClasses } from './autocompleteClasses';
|
||||
export * from './autocompleteClasses';
|
||||
289
backend/frontend/node_modules/@mui/material/modern/Avatar/Avatar.js
generated
vendored
Normal file
289
backend/frontend/node_modules/@mui/material/modern/Avatar/Avatar.js
generated
vendored
Normal file
@@ -0,0 +1,289 @@
|
||||
'use client';
|
||||
|
||||
import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/esm/objectWithoutPropertiesLoose";
|
||||
import _extends from "@babel/runtime/helpers/esm/extends";
|
||||
const _excluded = ["alt", "children", "className", "component", "slots", "slotProps", "imgProps", "sizes", "src", "srcSet", "variant"];
|
||||
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';
|
||||
import { useDefaultProps } from '../DefaultPropsProvider';
|
||||
import Person from '../internal/svg-icons/Person';
|
||||
import { getAvatarUtilityClass } from './avatarClasses';
|
||||
import useSlot from '../utils/useSlot';
|
||||
import { jsx as _jsx } from "react/jsx-runtime";
|
||||
const useUtilityClasses = ownerState => {
|
||||
const {
|
||||
classes,
|
||||
variant,
|
||||
colorDefault
|
||||
} = ownerState;
|
||||
const slots = {
|
||||
root: ['root', variant, colorDefault && 'colorDefault'],
|
||||
img: ['img'],
|
||||
fallback: ['fallback']
|
||||
};
|
||||
return composeClasses(slots, getAvatarUtilityClass, classes);
|
||||
};
|
||||
const AvatarRoot = styled('div', {
|
||||
name: 'MuiAvatar',
|
||||
slot: 'Root',
|
||||
overridesResolver: (props, styles) => {
|
||||
const {
|
||||
ownerState
|
||||
} = props;
|
||||
return [styles.root, styles[ownerState.variant], ownerState.colorDefault && styles.colorDefault];
|
||||
}
|
||||
})(({
|
||||
theme
|
||||
}) => ({
|
||||
position: 'relative',
|
||||
display: 'flex',
|
||||
alignItems: 'center',
|
||||
justifyContent: 'center',
|
||||
flexShrink: 0,
|
||||
width: 40,
|
||||
height: 40,
|
||||
fontFamily: theme.typography.fontFamily,
|
||||
fontSize: theme.typography.pxToRem(20),
|
||||
lineHeight: 1,
|
||||
borderRadius: '50%',
|
||||
overflow: 'hidden',
|
||||
userSelect: 'none',
|
||||
variants: [{
|
||||
props: {
|
||||
variant: 'rounded'
|
||||
},
|
||||
style: {
|
||||
borderRadius: (theme.vars || theme).shape.borderRadius
|
||||
}
|
||||
}, {
|
||||
props: {
|
||||
variant: 'square'
|
||||
},
|
||||
style: {
|
||||
borderRadius: 0
|
||||
}
|
||||
}, {
|
||||
props: {
|
||||
colorDefault: true
|
||||
},
|
||||
style: _extends({
|
||||
color: (theme.vars || theme).palette.background.default
|
||||
}, theme.vars ? {
|
||||
backgroundColor: theme.vars.palette.Avatar.defaultBg
|
||||
} : _extends({
|
||||
backgroundColor: theme.palette.grey[400]
|
||||
}, theme.applyStyles('dark', {
|
||||
backgroundColor: theme.palette.grey[600]
|
||||
})))
|
||||
}]
|
||||
}));
|
||||
const AvatarImg = styled('img', {
|
||||
name: 'MuiAvatar',
|
||||
slot: 'Img',
|
||||
overridesResolver: (props, styles) => styles.img
|
||||
})({
|
||||
width: '100%',
|
||||
height: '100%',
|
||||
textAlign: 'center',
|
||||
// Handle non-square image. The property isn't supported by IE11.
|
||||
objectFit: 'cover',
|
||||
// Hide alt text.
|
||||
color: 'transparent',
|
||||
// Hide the image broken icon, only works on Chrome.
|
||||
textIndent: 10000
|
||||
});
|
||||
const AvatarFallback = styled(Person, {
|
||||
name: 'MuiAvatar',
|
||||
slot: 'Fallback',
|
||||
overridesResolver: (props, styles) => styles.fallback
|
||||
})({
|
||||
width: '75%',
|
||||
height: '75%'
|
||||
});
|
||||
function useLoaded({
|
||||
crossOrigin,
|
||||
referrerPolicy,
|
||||
src,
|
||||
srcSet
|
||||
}) {
|
||||
const [loaded, setLoaded] = React.useState(false);
|
||||
React.useEffect(() => {
|
||||
if (!src && !srcSet) {
|
||||
return undefined;
|
||||
}
|
||||
setLoaded(false);
|
||||
let active = true;
|
||||
const image = new Image();
|
||||
image.onload = () => {
|
||||
if (!active) {
|
||||
return;
|
||||
}
|
||||
setLoaded('loaded');
|
||||
};
|
||||
image.onerror = () => {
|
||||
if (!active) {
|
||||
return;
|
||||
}
|
||||
setLoaded('error');
|
||||
};
|
||||
image.crossOrigin = crossOrigin;
|
||||
image.referrerPolicy = referrerPolicy;
|
||||
image.src = src;
|
||||
if (srcSet) {
|
||||
image.srcset = srcSet;
|
||||
}
|
||||
return () => {
|
||||
active = false;
|
||||
};
|
||||
}, [crossOrigin, referrerPolicy, src, srcSet]);
|
||||
return loaded;
|
||||
}
|
||||
const Avatar = /*#__PURE__*/React.forwardRef(function Avatar(inProps, ref) {
|
||||
const props = useDefaultProps({
|
||||
props: inProps,
|
||||
name: 'MuiAvatar'
|
||||
});
|
||||
const {
|
||||
alt,
|
||||
children: childrenProp,
|
||||
className,
|
||||
component = 'div',
|
||||
slots = {},
|
||||
slotProps = {},
|
||||
imgProps,
|
||||
sizes,
|
||||
src,
|
||||
srcSet,
|
||||
variant = 'circular'
|
||||
} = props,
|
||||
other = _objectWithoutPropertiesLoose(props, _excluded);
|
||||
let children = null;
|
||||
|
||||
// Use a hook instead of onError on the img element to support server-side rendering.
|
||||
const loaded = useLoaded(_extends({}, imgProps, {
|
||||
src,
|
||||
srcSet
|
||||
}));
|
||||
const hasImg = src || srcSet;
|
||||
const hasImgNotFailing = hasImg && loaded !== 'error';
|
||||
const ownerState = _extends({}, props, {
|
||||
colorDefault: !hasImgNotFailing,
|
||||
component,
|
||||
variant
|
||||
});
|
||||
const classes = useUtilityClasses(ownerState);
|
||||
const [ImgSlot, imgSlotProps] = useSlot('img', {
|
||||
className: classes.img,
|
||||
elementType: AvatarImg,
|
||||
externalForwardedProps: {
|
||||
slots,
|
||||
slotProps: {
|
||||
img: _extends({}, imgProps, slotProps.img)
|
||||
}
|
||||
},
|
||||
additionalProps: {
|
||||
alt,
|
||||
src,
|
||||
srcSet,
|
||||
sizes
|
||||
},
|
||||
ownerState
|
||||
});
|
||||
if (hasImgNotFailing) {
|
||||
children = /*#__PURE__*/_jsx(ImgSlot, _extends({}, imgSlotProps));
|
||||
// We only render valid children, non valid children are rendered with a fallback
|
||||
// We consider that invalid children are all falsy values, except 0, which is valid.
|
||||
} else if (!!childrenProp || childrenProp === 0) {
|
||||
children = childrenProp;
|
||||
} else if (hasImg && alt) {
|
||||
children = alt[0];
|
||||
} else {
|
||||
children = /*#__PURE__*/_jsx(AvatarFallback, {
|
||||
ownerState: ownerState,
|
||||
className: classes.fallback
|
||||
});
|
||||
}
|
||||
return /*#__PURE__*/_jsx(AvatarRoot, _extends({
|
||||
as: component,
|
||||
ownerState: ownerState,
|
||||
className: clsx(classes.root, className),
|
||||
ref: ref
|
||||
}, other, {
|
||||
children: children
|
||||
}));
|
||||
});
|
||||
process.env.NODE_ENV !== "production" ? Avatar.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`. │
|
||||
// └─────────────────────────────────────────────────────────────────────┘
|
||||
/**
|
||||
* Used in combination with `src` or `srcSet` to
|
||||
* provide an alt attribute for the rendered `img` element.
|
||||
*/
|
||||
alt: PropTypes.string,
|
||||
/**
|
||||
* Used to render icon or text elements inside the Avatar if `src` is not set.
|
||||
* This can be an element, or just a string.
|
||||
*/
|
||||
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,
|
||||
/**
|
||||
* [Attributes](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/img#attributes) applied to the `img` element if the component is used to display an image.
|
||||
* It can be used to listen for the loading error event.
|
||||
* @deprecated Use `slotProps.img` instead. This prop will be removed in v7. [How to migrate](/material-ui/migration/migrating-from-deprecated-apis/).
|
||||
*/
|
||||
imgProps: PropTypes.object,
|
||||
/**
|
||||
* The `sizes` attribute for the `img` element.
|
||||
*/
|
||||
sizes: PropTypes.string,
|
||||
/**
|
||||
* The props used for each slot inside.
|
||||
* @default {}
|
||||
*/
|
||||
slotProps: PropTypes.shape({
|
||||
img: PropTypes.oneOfType([PropTypes.func, PropTypes.object])
|
||||
}),
|
||||
/**
|
||||
* The components used for each slot inside.
|
||||
* @default {}
|
||||
*/
|
||||
slots: PropTypes.shape({
|
||||
img: PropTypes.elementType
|
||||
}),
|
||||
/**
|
||||
* The `src` attribute for the `img` element.
|
||||
*/
|
||||
src: PropTypes.string,
|
||||
/**
|
||||
* The `srcSet` attribute for the `img` element.
|
||||
* Use this attribute for responsive image display.
|
||||
*/
|
||||
srcSet: PropTypes.string,
|
||||
/**
|
||||
* 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 shape of the avatar.
|
||||
* @default 'circular'
|
||||
*/
|
||||
variant: PropTypes /* @typescript-to-proptypes-ignore */.oneOfType([PropTypes.oneOf(['circular', 'rounded', 'square']), PropTypes.string])
|
||||
} : void 0;
|
||||
export default Avatar;
|
||||
7
backend/frontend/node_modules/@mui/material/modern/Avatar/avatarClasses.js
generated
vendored
Normal file
7
backend/frontend/node_modules/@mui/material/modern/Avatar/avatarClasses.js
generated
vendored
Normal file
@@ -0,0 +1,7 @@
|
||||
import generateUtilityClasses from '@mui/utils/generateUtilityClasses';
|
||||
import generateUtilityClass from '@mui/utils/generateUtilityClass';
|
||||
export function getAvatarUtilityClass(slot) {
|
||||
return generateUtilityClass('MuiAvatar', slot);
|
||||
}
|
||||
const avatarClasses = generateUtilityClasses('MuiAvatar', ['root', 'colorDefault', 'circular', 'rounded', 'square', 'img', 'fallback']);
|
||||
export default avatarClasses;
|
||||
5
backend/frontend/node_modules/@mui/material/modern/Avatar/index.js
generated
vendored
Normal file
5
backend/frontend/node_modules/@mui/material/modern/Avatar/index.js
generated
vendored
Normal file
@@ -0,0 +1,5 @@
|
||||
'use client';
|
||||
|
||||
export { default } from './Avatar';
|
||||
export { default as avatarClasses } from './avatarClasses';
|
||||
export * from './avatarClasses';
|
||||
199
backend/frontend/node_modules/@mui/material/modern/AvatarGroup/AvatarGroup.js
generated
vendored
Normal file
199
backend/frontend/node_modules/@mui/material/modern/AvatarGroup/AvatarGroup.js
generated
vendored
Normal file
@@ -0,0 +1,199 @@
|
||||
'use client';
|
||||
|
||||
import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/esm/objectWithoutPropertiesLoose";
|
||||
import _extends from "@babel/runtime/helpers/esm/extends";
|
||||
const _excluded = ["children", "className", "component", "componentsProps", "max", "renderSurplus", "slotProps", "spacing", "total", "variant"];
|
||||
import * as React from 'react';
|
||||
import PropTypes from 'prop-types';
|
||||
import { isFragment } from 'react-is';
|
||||
import clsx from 'clsx';
|
||||
import chainPropTypes from '@mui/utils/chainPropTypes';
|
||||
import composeClasses from '@mui/utils/composeClasses';
|
||||
import styled from '../styles/styled';
|
||||
import { useDefaultProps } from '../DefaultPropsProvider';
|
||||
import Avatar, { avatarClasses } from '../Avatar';
|
||||
import avatarGroupClasses, { getAvatarGroupUtilityClass } from './avatarGroupClasses';
|
||||
import { jsx as _jsx } from "react/jsx-runtime";
|
||||
import { jsxs as _jsxs } from "react/jsx-runtime";
|
||||
const SPACINGS = {
|
||||
small: -16,
|
||||
medium: null
|
||||
};
|
||||
const useUtilityClasses = ownerState => {
|
||||
const {
|
||||
classes
|
||||
} = ownerState;
|
||||
const slots = {
|
||||
root: ['root'],
|
||||
avatar: ['avatar']
|
||||
};
|
||||
return composeClasses(slots, getAvatarGroupUtilityClass, classes);
|
||||
};
|
||||
const AvatarGroupRoot = styled('div', {
|
||||
name: 'MuiAvatarGroup',
|
||||
slot: 'Root',
|
||||
overridesResolver: (props, styles) => _extends({
|
||||
[`& .${avatarGroupClasses.avatar}`]: styles.avatar
|
||||
}, styles.root)
|
||||
})(({
|
||||
theme,
|
||||
ownerState
|
||||
}) => {
|
||||
const marginValue = ownerState.spacing && SPACINGS[ownerState.spacing] !== undefined ? SPACINGS[ownerState.spacing] : -ownerState.spacing;
|
||||
return {
|
||||
[`& .${avatarClasses.root}`]: {
|
||||
border: `2px solid ${(theme.vars || theme).palette.background.default}`,
|
||||
boxSizing: 'content-box',
|
||||
marginLeft: marginValue ?? -8,
|
||||
'&:last-child': {
|
||||
marginLeft: 0
|
||||
}
|
||||
},
|
||||
display: 'flex',
|
||||
flexDirection: 'row-reverse'
|
||||
};
|
||||
});
|
||||
const AvatarGroup = /*#__PURE__*/React.forwardRef(function AvatarGroup(inProps, ref) {
|
||||
const props = useDefaultProps({
|
||||
props: inProps,
|
||||
name: 'MuiAvatarGroup'
|
||||
});
|
||||
const {
|
||||
children: childrenProp,
|
||||
className,
|
||||
component = 'div',
|
||||
componentsProps = {},
|
||||
max = 5,
|
||||
renderSurplus,
|
||||
slotProps = {},
|
||||
spacing = 'medium',
|
||||
total,
|
||||
variant = 'circular'
|
||||
} = props,
|
||||
other = _objectWithoutPropertiesLoose(props, _excluded);
|
||||
let clampedMax = max < 2 ? 2 : max;
|
||||
const ownerState = _extends({}, props, {
|
||||
max,
|
||||
spacing,
|
||||
component,
|
||||
variant
|
||||
});
|
||||
const classes = useUtilityClasses(ownerState);
|
||||
const children = React.Children.toArray(childrenProp).filter(child => {
|
||||
if (process.env.NODE_ENV !== 'production') {
|
||||
if (isFragment(child)) {
|
||||
console.error(["MUI: The AvatarGroup component doesn't accept a Fragment as a child.", 'Consider providing an array instead.'].join('\n'));
|
||||
}
|
||||
}
|
||||
return /*#__PURE__*/React.isValidElement(child);
|
||||
});
|
||||
const totalAvatars = total || children.length;
|
||||
if (totalAvatars === clampedMax) {
|
||||
clampedMax += 1;
|
||||
}
|
||||
clampedMax = Math.min(totalAvatars + 1, clampedMax);
|
||||
const maxAvatars = Math.min(children.length, clampedMax - 1);
|
||||
const extraAvatars = Math.max(totalAvatars - clampedMax, totalAvatars - maxAvatars, 0);
|
||||
const extraAvatarsElement = renderSurplus ? renderSurplus(extraAvatars) : `+${extraAvatars}`;
|
||||
const additionalAvatarSlotProps = slotProps.additionalAvatar ?? componentsProps.additionalAvatar;
|
||||
return /*#__PURE__*/_jsxs(AvatarGroupRoot, _extends({
|
||||
as: component,
|
||||
ownerState: ownerState,
|
||||
className: clsx(classes.root, className),
|
||||
ref: ref
|
||||
}, other, {
|
||||
children: [extraAvatars ? /*#__PURE__*/_jsx(Avatar, _extends({
|
||||
variant: variant
|
||||
}, additionalAvatarSlotProps, {
|
||||
className: clsx(classes.avatar, additionalAvatarSlotProps?.className),
|
||||
children: extraAvatarsElement
|
||||
})) : null, children.slice(0, maxAvatars).reverse().map(child => {
|
||||
return /*#__PURE__*/React.cloneElement(child, {
|
||||
className: clsx(child.props.className, classes.avatar),
|
||||
variant: child.props.variant || variant
|
||||
});
|
||||
})]
|
||||
}));
|
||||
});
|
||||
process.env.NODE_ENV !== "production" ? AvatarGroup.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 avatars to stack.
|
||||
*/
|
||||
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 extra props for the slot components.
|
||||
* You can override the existing props or add new ones.
|
||||
*
|
||||
* This prop is an alias for the `slotProps` prop.
|
||||
* It's recommended to use the `slotProps` prop instead, as `componentsProps` will be deprecated in the future.
|
||||
*
|
||||
* @default {}
|
||||
*/
|
||||
componentsProps: PropTypes.shape({
|
||||
additionalAvatar: PropTypes.object
|
||||
}),
|
||||
/**
|
||||
* Max avatars to show before +x.
|
||||
* @default 5
|
||||
*/
|
||||
max: chainPropTypes(PropTypes.number, props => {
|
||||
if (props.max < 2) {
|
||||
return new Error(['MUI: The prop `max` should be equal to 2 or above.', 'A value below is clamped to 2.'].join('\n'));
|
||||
}
|
||||
return null;
|
||||
}),
|
||||
/**
|
||||
* custom renderer of extraAvatars
|
||||
* @param {number} surplus number of extra avatars
|
||||
* @returns {React.ReactNode} custom element to display
|
||||
*/
|
||||
renderSurplus: PropTypes.func,
|
||||
/**
|
||||
* The extra props for the slot components.
|
||||
* You can override the existing props or add new ones.
|
||||
*
|
||||
* This prop is an alias for the `componentsProps` prop, which will be deprecated in the future.
|
||||
*
|
||||
* @default {}
|
||||
*/
|
||||
slotProps: PropTypes.shape({
|
||||
additionalAvatar: PropTypes.object
|
||||
}),
|
||||
/**
|
||||
* Spacing between avatars.
|
||||
* @default 'medium'
|
||||
*/
|
||||
spacing: PropTypes.oneOfType([PropTypes.oneOf(['medium', 'small']), PropTypes.number]),
|
||||
/**
|
||||
* 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 total number of avatars. Used for calculating the number of extra avatars.
|
||||
* @default children.length
|
||||
*/
|
||||
total: PropTypes.number,
|
||||
/**
|
||||
* The variant to use.
|
||||
* @default 'circular'
|
||||
*/
|
||||
variant: PropTypes /* @typescript-to-proptypes-ignore */.oneOfType([PropTypes.oneOf(['circular', 'rounded', 'square']), PropTypes.string])
|
||||
} : void 0;
|
||||
export default AvatarGroup;
|
||||
7
backend/frontend/node_modules/@mui/material/modern/AvatarGroup/avatarGroupClasses.js
generated
vendored
Normal file
7
backend/frontend/node_modules/@mui/material/modern/AvatarGroup/avatarGroupClasses.js
generated
vendored
Normal file
@@ -0,0 +1,7 @@
|
||||
import generateUtilityClasses from '@mui/utils/generateUtilityClasses';
|
||||
import generateUtilityClass from '@mui/utils/generateUtilityClass';
|
||||
export function getAvatarGroupUtilityClass(slot) {
|
||||
return generateUtilityClass('MuiAvatarGroup', slot);
|
||||
}
|
||||
const avatarGroupClasses = generateUtilityClasses('MuiAvatarGroup', ['root', 'avatar']);
|
||||
export default avatarGroupClasses;
|
||||
5
backend/frontend/node_modules/@mui/material/modern/AvatarGroup/index.js
generated
vendored
Normal file
5
backend/frontend/node_modules/@mui/material/modern/AvatarGroup/index.js
generated
vendored
Normal file
@@ -0,0 +1,5 @@
|
||||
'use client';
|
||||
|
||||
export { default } from './AvatarGroup';
|
||||
export { default as avatarGroupClasses } from './avatarGroupClasses';
|
||||
export * from './avatarGroupClasses';
|
||||
187
backend/frontend/node_modules/@mui/material/modern/Backdrop/Backdrop.js
generated
vendored
Normal file
187
backend/frontend/node_modules/@mui/material/modern/Backdrop/Backdrop.js
generated
vendored
Normal file
@@ -0,0 +1,187 @@
|
||||
'use client';
|
||||
|
||||
import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/esm/objectWithoutPropertiesLoose";
|
||||
import _extends from "@babel/runtime/helpers/esm/extends";
|
||||
const _excluded = ["children", "className", "component", "components", "componentsProps", "invisible", "open", "slotProps", "slots", "TransitionComponent", "transitionDuration"];
|
||||
import * as React from 'react';
|
||||
import PropTypes from 'prop-types';
|
||||
import clsx from 'clsx';
|
||||
import composeClasses from '@mui/utils/composeClasses';
|
||||
import styled from '../styles/styled';
|
||||
import { useDefaultProps } from '../DefaultPropsProvider';
|
||||
import Fade from '../Fade';
|
||||
import { getBackdropUtilityClass } from './backdropClasses';
|
||||
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];
|
||||
}
|
||||
})(({
|
||||
ownerState
|
||||
}) => _extends({
|
||||
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'
|
||||
}, ownerState.invisible && {
|
||||
backgroundColor: 'transparent'
|
||||
}));
|
||||
const Backdrop = /*#__PURE__*/React.forwardRef(function Backdrop(inProps, ref) {
|
||||
const props = useDefaultProps({
|
||||
props: inProps,
|
||||
name: 'MuiBackdrop'
|
||||
});
|
||||
const {
|
||||
children,
|
||||
className,
|
||||
component = 'div',
|
||||
components = {},
|
||||
componentsProps = {},
|
||||
invisible = false,
|
||||
open,
|
||||
slotProps = {},
|
||||
slots = {},
|
||||
TransitionComponent = Fade,
|
||||
transitionDuration
|
||||
} = props,
|
||||
other = _objectWithoutPropertiesLoose(props, _excluded);
|
||||
const ownerState = _extends({}, props, {
|
||||
component,
|
||||
invisible
|
||||
});
|
||||
const classes = useUtilityClasses(ownerState);
|
||||
const rootSlotProps = slotProps.root ?? componentsProps.root;
|
||||
return /*#__PURE__*/_jsx(TransitionComponent, _extends({
|
||||
in: open,
|
||||
timeout: transitionDuration
|
||||
}, other, {
|
||||
children: /*#__PURE__*/_jsx(BackdropRoot, _extends({
|
||||
"aria-hidden": true
|
||||
}, rootSlotProps, {
|
||||
as: slots.root ?? components.Root ?? component,
|
||||
className: clsx(classes.root, className, rootSlotProps?.className),
|
||||
ownerState: _extends({}, ownerState, rootSlotProps?.ownerState),
|
||||
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.
|
||||
*
|
||||
* This prop is an alias for the `slots` prop.
|
||||
* It's recommended to use the `slots` prop instead.
|
||||
*
|
||||
* @default {}
|
||||
*/
|
||||
components: PropTypes.shape({
|
||||
Root: PropTypes.elementType
|
||||
}),
|
||||
/**
|
||||
* The extra props for the slot components.
|
||||
* You can override the existing props or add new ones.
|
||||
*
|
||||
* This prop is an alias for the `slotProps` prop.
|
||||
* It's recommended to use the `slotProps` prop instead, as `componentsProps` will be deprecated in the future.
|
||||
*
|
||||
* @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 extra props for the slot components.
|
||||
* You can override the existing props or add new ones.
|
||||
*
|
||||
* This prop is an alias for the `componentsProps` prop, which will be deprecated in the future.
|
||||
*
|
||||
* @default {}
|
||||
*/
|
||||
slotProps: PropTypes.shape({
|
||||
root: PropTypes.object
|
||||
}),
|
||||
/**
|
||||
* The components used for each slot inside.
|
||||
*
|
||||
* This prop is an alias for the `components` prop, which will be deprecated in the future.
|
||||
*
|
||||
* @default {}
|
||||
*/
|
||||
slots: PropTypes.shape({
|
||||
root: 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](/material-ui/transitions/#transitioncomponent-prop) to learn more about the requirements for this component.
|
||||
* @default Fade
|
||||
*/
|
||||
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;
|
||||
7
backend/frontend/node_modules/@mui/material/modern/Backdrop/backdropClasses.js
generated
vendored
Normal file
7
backend/frontend/node_modules/@mui/material/modern/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;
|
||||
5
backend/frontend/node_modules/@mui/material/modern/Backdrop/index.js
generated
vendored
Normal file
5
backend/frontend/node_modules/@mui/material/modern/Backdrop/index.js
generated
vendored
Normal file
@@ -0,0 +1,5 @@
|
||||
'use client';
|
||||
|
||||
export { default } from './Backdrop';
|
||||
export { default as backdropClasses } from './backdropClasses';
|
||||
export * from './backdropClasses';
|
||||
424
backend/frontend/node_modules/@mui/material/modern/Badge/Badge.js
generated
vendored
Normal file
424
backend/frontend/node_modules/@mui/material/modern/Badge/Badge.js
generated
vendored
Normal file
@@ -0,0 +1,424 @@
|
||||
'use client';
|
||||
|
||||
import _extends from "@babel/runtime/helpers/esm/extends";
|
||||
import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/esm/objectWithoutPropertiesLoose";
|
||||
const _excluded = ["anchorOrigin", "className", "classes", "component", "components", "componentsProps", "children", "overlap", "color", "invisible", "max", "badgeContent", "slots", "slotProps", "showZero", "variant"];
|
||||
import * as React from 'react';
|
||||
import PropTypes from 'prop-types';
|
||||
import clsx from 'clsx';
|
||||
import usePreviousProps from '@mui/utils/usePreviousProps';
|
||||
import composeClasses from '@mui/utils/composeClasses';
|
||||
import useSlotProps from '@mui/utils/useSlotProps';
|
||||
import useBadge from './useBadge';
|
||||
import { styled } from '../zero-styled';
|
||||
import { useDefaultProps } from '../DefaultPropsProvider';
|
||||
import capitalize from '../utils/capitalize';
|
||||
import badgeClasses, { getBadgeUtilityClass } from './badgeClasses';
|
||||
import { jsx as _jsx } from "react/jsx-runtime";
|
||||
import { jsxs as _jsxs } from "react/jsx-runtime";
|
||||
const RADIUS_STANDARD = 10;
|
||||
const RADIUS_DOT = 4;
|
||||
const useUtilityClasses = ownerState => {
|
||||
const {
|
||||
color,
|
||||
anchorOrigin,
|
||||
invisible,
|
||||
overlap,
|
||||
variant,
|
||||
classes = {}
|
||||
} = ownerState;
|
||||
const slots = {
|
||||
root: ['root'],
|
||||
badge: ['badge', variant, invisible && 'invisible', `anchorOrigin${capitalize(anchorOrigin.vertical)}${capitalize(anchorOrigin.horizontal)}`, `anchorOrigin${capitalize(anchorOrigin.vertical)}${capitalize(anchorOrigin.horizontal)}${capitalize(overlap)}`, `overlap${capitalize(overlap)}`, color !== 'default' && `color${capitalize(color)}`]
|
||||
};
|
||||
return composeClasses(slots, getBadgeUtilityClass, classes);
|
||||
};
|
||||
const BadgeRoot = styled('span', {
|
||||
name: 'MuiBadge',
|
||||
slot: 'Root',
|
||||
overridesResolver: (props, styles) => styles.root
|
||||
})({
|
||||
position: 'relative',
|
||||
display: 'inline-flex',
|
||||
// For correct alignment with the text.
|
||||
verticalAlign: 'middle',
|
||||
flexShrink: 0
|
||||
});
|
||||
const BadgeBadge = styled('span', {
|
||||
name: 'MuiBadge',
|
||||
slot: 'Badge',
|
||||
overridesResolver: (props, styles) => {
|
||||
const {
|
||||
ownerState
|
||||
} = props;
|
||||
return [styles.badge, styles[ownerState.variant], styles[`anchorOrigin${capitalize(ownerState.anchorOrigin.vertical)}${capitalize(ownerState.anchorOrigin.horizontal)}${capitalize(ownerState.overlap)}`], ownerState.color !== 'default' && styles[`color${capitalize(ownerState.color)}`], ownerState.invisible && styles.invisible];
|
||||
}
|
||||
})(({
|
||||
theme
|
||||
}) => ({
|
||||
display: 'flex',
|
||||
flexDirection: 'row',
|
||||
flexWrap: 'wrap',
|
||||
justifyContent: 'center',
|
||||
alignContent: 'center',
|
||||
alignItems: 'center',
|
||||
position: 'absolute',
|
||||
boxSizing: 'border-box',
|
||||
fontFamily: theme.typography.fontFamily,
|
||||
fontWeight: theme.typography.fontWeightMedium,
|
||||
fontSize: theme.typography.pxToRem(12),
|
||||
minWidth: RADIUS_STANDARD * 2,
|
||||
lineHeight: 1,
|
||||
padding: '0 6px',
|
||||
height: RADIUS_STANDARD * 2,
|
||||
borderRadius: RADIUS_STANDARD,
|
||||
zIndex: 1,
|
||||
// Render the badge on top of potential ripples.
|
||||
transition: theme.transitions.create('transform', {
|
||||
easing: theme.transitions.easing.easeInOut,
|
||||
duration: theme.transitions.duration.enteringScreen
|
||||
}),
|
||||
variants: [...Object.keys((theme.vars ?? theme).palette).filter(key => (theme.vars ?? theme).palette[key].main && (theme.vars ?? theme).palette[key].contrastText).map(color => ({
|
||||
props: {
|
||||
color
|
||||
},
|
||||
style: {
|
||||
backgroundColor: (theme.vars || theme).palette[color].main,
|
||||
color: (theme.vars || theme).palette[color].contrastText
|
||||
}
|
||||
})), {
|
||||
props: {
|
||||
variant: 'dot'
|
||||
},
|
||||
style: {
|
||||
borderRadius: RADIUS_DOT,
|
||||
height: RADIUS_DOT * 2,
|
||||
minWidth: RADIUS_DOT * 2,
|
||||
padding: 0
|
||||
}
|
||||
}, {
|
||||
props: ({
|
||||
ownerState
|
||||
}) => ownerState.anchorOrigin.vertical === 'top' && ownerState.anchorOrigin.horizontal === 'right' && ownerState.overlap === 'rectangular',
|
||||
style: {
|
||||
top: 0,
|
||||
right: 0,
|
||||
transform: 'scale(1) translate(50%, -50%)',
|
||||
transformOrigin: '100% 0%',
|
||||
[`&.${badgeClasses.invisible}`]: {
|
||||
transform: 'scale(0) translate(50%, -50%)'
|
||||
}
|
||||
}
|
||||
}, {
|
||||
props: ({
|
||||
ownerState
|
||||
}) => ownerState.anchorOrigin.vertical === 'bottom' && ownerState.anchorOrigin.horizontal === 'right' && ownerState.overlap === 'rectangular',
|
||||
style: {
|
||||
bottom: 0,
|
||||
right: 0,
|
||||
transform: 'scale(1) translate(50%, 50%)',
|
||||
transformOrigin: '100% 100%',
|
||||
[`&.${badgeClasses.invisible}`]: {
|
||||
transform: 'scale(0) translate(50%, 50%)'
|
||||
}
|
||||
}
|
||||
}, {
|
||||
props: ({
|
||||
ownerState
|
||||
}) => ownerState.anchorOrigin.vertical === 'top' && ownerState.anchorOrigin.horizontal === 'left' && ownerState.overlap === 'rectangular',
|
||||
style: {
|
||||
top: 0,
|
||||
left: 0,
|
||||
transform: 'scale(1) translate(-50%, -50%)',
|
||||
transformOrigin: '0% 0%',
|
||||
[`&.${badgeClasses.invisible}`]: {
|
||||
transform: 'scale(0) translate(-50%, -50%)'
|
||||
}
|
||||
}
|
||||
}, {
|
||||
props: ({
|
||||
ownerState
|
||||
}) => ownerState.anchorOrigin.vertical === 'bottom' && ownerState.anchorOrigin.horizontal === 'left' && ownerState.overlap === 'rectangular',
|
||||
style: {
|
||||
bottom: 0,
|
||||
left: 0,
|
||||
transform: 'scale(1) translate(-50%, 50%)',
|
||||
transformOrigin: '0% 100%',
|
||||
[`&.${badgeClasses.invisible}`]: {
|
||||
transform: 'scale(0) translate(-50%, 50%)'
|
||||
}
|
||||
}
|
||||
}, {
|
||||
props: ({
|
||||
ownerState
|
||||
}) => ownerState.anchorOrigin.vertical === 'top' && ownerState.anchorOrigin.horizontal === 'right' && ownerState.overlap === 'circular',
|
||||
style: {
|
||||
top: '14%',
|
||||
right: '14%',
|
||||
transform: 'scale(1) translate(50%, -50%)',
|
||||
transformOrigin: '100% 0%',
|
||||
[`&.${badgeClasses.invisible}`]: {
|
||||
transform: 'scale(0) translate(50%, -50%)'
|
||||
}
|
||||
}
|
||||
}, {
|
||||
props: ({
|
||||
ownerState
|
||||
}) => ownerState.anchorOrigin.vertical === 'bottom' && ownerState.anchorOrigin.horizontal === 'right' && ownerState.overlap === 'circular',
|
||||
style: {
|
||||
bottom: '14%',
|
||||
right: '14%',
|
||||
transform: 'scale(1) translate(50%, 50%)',
|
||||
transformOrigin: '100% 100%',
|
||||
[`&.${badgeClasses.invisible}`]: {
|
||||
transform: 'scale(0) translate(50%, 50%)'
|
||||
}
|
||||
}
|
||||
}, {
|
||||
props: ({
|
||||
ownerState
|
||||
}) => ownerState.anchorOrigin.vertical === 'top' && ownerState.anchorOrigin.horizontal === 'left' && ownerState.overlap === 'circular',
|
||||
style: {
|
||||
top: '14%',
|
||||
left: '14%',
|
||||
transform: 'scale(1) translate(-50%, -50%)',
|
||||
transformOrigin: '0% 0%',
|
||||
[`&.${badgeClasses.invisible}`]: {
|
||||
transform: 'scale(0) translate(-50%, -50%)'
|
||||
}
|
||||
}
|
||||
}, {
|
||||
props: ({
|
||||
ownerState
|
||||
}) => ownerState.anchorOrigin.vertical === 'bottom' && ownerState.anchorOrigin.horizontal === 'left' && ownerState.overlap === 'circular',
|
||||
style: {
|
||||
bottom: '14%',
|
||||
left: '14%',
|
||||
transform: 'scale(1) translate(-50%, 50%)',
|
||||
transformOrigin: '0% 100%',
|
||||
[`&.${badgeClasses.invisible}`]: {
|
||||
transform: 'scale(0) translate(-50%, 50%)'
|
||||
}
|
||||
}
|
||||
}, {
|
||||
props: {
|
||||
invisible: true
|
||||
},
|
||||
style: {
|
||||
transition: theme.transitions.create('transform', {
|
||||
easing: theme.transitions.easing.easeInOut,
|
||||
duration: theme.transitions.duration.leavingScreen
|
||||
})
|
||||
}
|
||||
}]
|
||||
}));
|
||||
const Badge = /*#__PURE__*/React.forwardRef(function Badge(inProps, ref) {
|
||||
const props = useDefaultProps({
|
||||
props: inProps,
|
||||
name: 'MuiBadge'
|
||||
});
|
||||
const {
|
||||
anchorOrigin: anchorOriginProp = {
|
||||
vertical: 'top',
|
||||
horizontal: 'right'
|
||||
},
|
||||
className,
|
||||
component,
|
||||
components = {},
|
||||
componentsProps = {},
|
||||
children,
|
||||
overlap: overlapProp = 'rectangular',
|
||||
color: colorProp = 'default',
|
||||
invisible: invisibleProp = false,
|
||||
max: maxProp = 99,
|
||||
badgeContent: badgeContentProp,
|
||||
slots,
|
||||
slotProps,
|
||||
showZero = false,
|
||||
variant: variantProp = 'standard'
|
||||
} = props,
|
||||
other = _objectWithoutPropertiesLoose(props, _excluded);
|
||||
const {
|
||||
badgeContent,
|
||||
invisible: invisibleFromHook,
|
||||
max,
|
||||
displayValue: displayValueFromHook
|
||||
} = useBadge({
|
||||
max: maxProp,
|
||||
invisible: invisibleProp,
|
||||
badgeContent: badgeContentProp,
|
||||
showZero
|
||||
});
|
||||
const prevProps = usePreviousProps({
|
||||
anchorOrigin: anchorOriginProp,
|
||||
color: colorProp,
|
||||
overlap: overlapProp,
|
||||
variant: variantProp,
|
||||
badgeContent: badgeContentProp
|
||||
});
|
||||
const invisible = invisibleFromHook || badgeContent == null && variantProp !== 'dot';
|
||||
const {
|
||||
color = colorProp,
|
||||
overlap = overlapProp,
|
||||
anchorOrigin = anchorOriginProp,
|
||||
variant = variantProp
|
||||
} = invisible ? prevProps : props;
|
||||
const displayValue = variant !== 'dot' ? displayValueFromHook : undefined;
|
||||
const ownerState = _extends({}, props, {
|
||||
badgeContent,
|
||||
invisible,
|
||||
max,
|
||||
displayValue,
|
||||
showZero,
|
||||
anchorOrigin,
|
||||
color,
|
||||
overlap,
|
||||
variant
|
||||
});
|
||||
const classes = useUtilityClasses(ownerState);
|
||||
|
||||
// support both `slots` and `components` for backward compatibility
|
||||
const RootSlot = slots?.root ?? components.Root ?? BadgeRoot;
|
||||
const BadgeSlot = slots?.badge ?? components.Badge ?? BadgeBadge;
|
||||
const rootSlotProps = slotProps?.root ?? componentsProps.root;
|
||||
const badgeSlotProps = slotProps?.badge ?? componentsProps.badge;
|
||||
const rootProps = useSlotProps({
|
||||
elementType: RootSlot,
|
||||
externalSlotProps: rootSlotProps,
|
||||
externalForwardedProps: other,
|
||||
additionalProps: {
|
||||
ref,
|
||||
as: component
|
||||
},
|
||||
ownerState,
|
||||
className: clsx(rootSlotProps?.className, classes.root, className)
|
||||
});
|
||||
const badgeProps = useSlotProps({
|
||||
elementType: BadgeSlot,
|
||||
externalSlotProps: badgeSlotProps,
|
||||
ownerState,
|
||||
className: clsx(classes.badge, badgeSlotProps?.className)
|
||||
});
|
||||
return /*#__PURE__*/_jsxs(RootSlot, _extends({}, rootProps, {
|
||||
children: [children, /*#__PURE__*/_jsx(BadgeSlot, _extends({}, badgeProps, {
|
||||
children: displayValue
|
||||
}))]
|
||||
}));
|
||||
});
|
||||
process.env.NODE_ENV !== "production" ? Badge.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 anchor of the badge.
|
||||
* @default {
|
||||
* vertical: 'top',
|
||||
* horizontal: 'right',
|
||||
* }
|
||||
*/
|
||||
anchorOrigin: PropTypes.shape({
|
||||
horizontal: PropTypes.oneOf(['left', 'right']).isRequired,
|
||||
vertical: PropTypes.oneOf(['bottom', 'top']).isRequired
|
||||
}),
|
||||
/**
|
||||
* The content rendered within the badge.
|
||||
*/
|
||||
badgeContent: PropTypes.node,
|
||||
/**
|
||||
* The badge will be added relative to this node.
|
||||
*/
|
||||
children: PropTypes.node,
|
||||
/**
|
||||
* Override or extend the styles applied to the component.
|
||||
*/
|
||||
classes: PropTypes.object,
|
||||
/**
|
||||
* @ignore
|
||||
*/
|
||||
className: PropTypes.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 'default'
|
||||
*/
|
||||
color: PropTypes /* @typescript-to-proptypes-ignore */.oneOfType([PropTypes.oneOf(['default', 'primary', 'secondary', 'error', 'info', 'success', 'warning']), 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.
|
||||
*
|
||||
* This prop is an alias for the `slots` prop.
|
||||
* It's recommended to use the `slots` prop instead.
|
||||
*
|
||||
* @default {}
|
||||
*/
|
||||
components: PropTypes.shape({
|
||||
Badge: PropTypes.elementType,
|
||||
Root: PropTypes.elementType
|
||||
}),
|
||||
/**
|
||||
* The extra props for the slot components.
|
||||
* You can override the existing props or add new ones.
|
||||
*
|
||||
* This prop is an alias for the `slotProps` prop.
|
||||
* It's recommended to use the `slotProps` prop instead, as `componentsProps` will be deprecated in the future.
|
||||
*
|
||||
* @default {}
|
||||
*/
|
||||
componentsProps: PropTypes.shape({
|
||||
badge: PropTypes.oneOfType([PropTypes.func, PropTypes.object]),
|
||||
root: PropTypes.oneOfType([PropTypes.func, PropTypes.object])
|
||||
}),
|
||||
/**
|
||||
* If `true`, the badge is invisible.
|
||||
* @default false
|
||||
*/
|
||||
invisible: PropTypes.bool,
|
||||
/**
|
||||
* Max count to show.
|
||||
* @default 99
|
||||
*/
|
||||
max: PropTypes.number,
|
||||
/**
|
||||
* Wrapped shape the badge should overlap.
|
||||
* @default 'rectangular'
|
||||
*/
|
||||
overlap: PropTypes.oneOf(['circular', 'rectangular']),
|
||||
/**
|
||||
* Controls whether the badge is hidden when `badgeContent` is zero.
|
||||
* @default false
|
||||
*/
|
||||
showZero: PropTypes.bool,
|
||||
/**
|
||||
* The props used for each slot inside the Badge.
|
||||
* @default {}
|
||||
*/
|
||||
slotProps: PropTypes.shape({
|
||||
badge: PropTypes.oneOfType([PropTypes.func, PropTypes.object]),
|
||||
root: PropTypes.oneOfType([PropTypes.func, PropTypes.object])
|
||||
}),
|
||||
/**
|
||||
* The components used for each slot inside the Badge.
|
||||
* Either a string to use a HTML element or a component.
|
||||
* @default {}
|
||||
*/
|
||||
slots: PropTypes.shape({
|
||||
badge: PropTypes.elementType,
|
||||
root: 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 variant to use.
|
||||
* @default 'standard'
|
||||
*/
|
||||
variant: PropTypes /* @typescript-to-proptypes-ignore */.oneOfType([PropTypes.oneOf(['dot', 'standard']), PropTypes.string])
|
||||
} : void 0;
|
||||
export default Badge;
|
||||
9
backend/frontend/node_modules/@mui/material/modern/Badge/badgeClasses.js
generated
vendored
Normal file
9
backend/frontend/node_modules/@mui/material/modern/Badge/badgeClasses.js
generated
vendored
Normal file
@@ -0,0 +1,9 @@
|
||||
import generateUtilityClasses from '@mui/utils/generateUtilityClasses';
|
||||
import generateUtilityClass from '@mui/utils/generateUtilityClass';
|
||||
export function getBadgeUtilityClass(slot) {
|
||||
return generateUtilityClass('MuiBadge', slot);
|
||||
}
|
||||
const badgeClasses = generateUtilityClasses('MuiBadge', ['root', 'badge', 'dot', 'standard', 'anchorOriginTopRight', 'anchorOriginBottomRight', 'anchorOriginTopLeft', 'anchorOriginBottomLeft', 'invisible', 'colorError', 'colorInfo', 'colorPrimary', 'colorSecondary', 'colorSuccess', 'colorWarning', 'overlapRectangular', 'overlapCircular',
|
||||
// TODO: v6 remove the overlap value from these class keys
|
||||
'anchorOriginTopLeftCircular', 'anchorOriginTopLeftRectangular', 'anchorOriginTopRightCircular', 'anchorOriginTopRightRectangular', 'anchorOriginBottomLeftCircular', 'anchorOriginBottomLeftRectangular', 'anchorOriginBottomRightCircular', 'anchorOriginBottomRightRectangular']);
|
||||
export default badgeClasses;
|
||||
5
backend/frontend/node_modules/@mui/material/modern/Badge/index.js
generated
vendored
Normal file
5
backend/frontend/node_modules/@mui/material/modern/Badge/index.js
generated
vendored
Normal file
@@ -0,0 +1,5 @@
|
||||
'use client';
|
||||
|
||||
export { default } from './Badge';
|
||||
export { default as badgeClasses } from './badgeClasses';
|
||||
export * from './badgeClasses';
|
||||
41
backend/frontend/node_modules/@mui/material/modern/Badge/useBadge.js
generated
vendored
Normal file
41
backend/frontend/node_modules/@mui/material/modern/Badge/useBadge.js
generated
vendored
Normal file
@@ -0,0 +1,41 @@
|
||||
'use client';
|
||||
|
||||
import { usePreviousProps } from '@mui/utils';
|
||||
/**
|
||||
*
|
||||
* Demos:
|
||||
*
|
||||
* - [Badge](https://next.mui.com/base-ui/react-badge/#hook)
|
||||
*
|
||||
* API:
|
||||
*
|
||||
* - [useBadge API](https://next.mui.com/base-ui/react-badge/hooks-api/#use-badge)
|
||||
*/
|
||||
function useBadge(parameters) {
|
||||
const {
|
||||
badgeContent: badgeContentProp,
|
||||
invisible: invisibleProp = false,
|
||||
max: maxProp = 99,
|
||||
showZero = false
|
||||
} = parameters;
|
||||
const prevProps = usePreviousProps({
|
||||
badgeContent: badgeContentProp,
|
||||
max: maxProp
|
||||
});
|
||||
let invisible = invisibleProp;
|
||||
if (invisibleProp === false && badgeContentProp === 0 && !showZero) {
|
||||
invisible = true;
|
||||
}
|
||||
const {
|
||||
badgeContent,
|
||||
max = maxProp
|
||||
} = invisible ? prevProps : parameters;
|
||||
const displayValue = badgeContent && Number(badgeContent) > max ? `${max}+` : badgeContent;
|
||||
return {
|
||||
badgeContent,
|
||||
invisible,
|
||||
max,
|
||||
displayValue
|
||||
};
|
||||
}
|
||||
export default useBadge;
|
||||
1
backend/frontend/node_modules/@mui/material/modern/Badge/useBadge.types.js
generated
vendored
Normal file
1
backend/frontend/node_modules/@mui/material/modern/Badge/useBadge.types.js
generated
vendored
Normal file
@@ -0,0 +1 @@
|
||||
export {};
|
||||
124
backend/frontend/node_modules/@mui/material/modern/BottomNavigation/BottomNavigation.js
generated
vendored
Normal file
124
backend/frontend/node_modules/@mui/material/modern/BottomNavigation/BottomNavigation.js
generated
vendored
Normal file
@@ -0,0 +1,124 @@
|
||||
'use client';
|
||||
|
||||
import _extends from "@babel/runtime/helpers/esm/extends";
|
||||
import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/esm/objectWithoutPropertiesLoose";
|
||||
const _excluded = ["children", "className", "component", "onChange", "showLabels", "value"];
|
||||
import * as React from 'react';
|
||||
import { isFragment } from 'react-is';
|
||||
import PropTypes from 'prop-types';
|
||||
import clsx from 'clsx';
|
||||
import composeClasses from '@mui/utils/composeClasses';
|
||||
import styled from '../styles/styled';
|
||||
import { useDefaultProps } from '../DefaultPropsProvider';
|
||||
import { getBottomNavigationUtilityClass } from './bottomNavigationClasses';
|
||||
import { jsx as _jsx } from "react/jsx-runtime";
|
||||
const useUtilityClasses = ownerState => {
|
||||
const {
|
||||
classes
|
||||
} = ownerState;
|
||||
const slots = {
|
||||
root: ['root']
|
||||
};
|
||||
return composeClasses(slots, getBottomNavigationUtilityClass, classes);
|
||||
};
|
||||
const BottomNavigationRoot = styled('div', {
|
||||
name: 'MuiBottomNavigation',
|
||||
slot: 'Root',
|
||||
overridesResolver: (props, styles) => styles.root
|
||||
})(({
|
||||
theme
|
||||
}) => ({
|
||||
display: 'flex',
|
||||
justifyContent: 'center',
|
||||
height: 56,
|
||||
backgroundColor: (theme.vars || theme).palette.background.paper
|
||||
}));
|
||||
const BottomNavigation = /*#__PURE__*/React.forwardRef(function BottomNavigation(inProps, ref) {
|
||||
const props = useDefaultProps({
|
||||
props: inProps,
|
||||
name: 'MuiBottomNavigation'
|
||||
});
|
||||
const {
|
||||
children,
|
||||
className,
|
||||
component = 'div',
|
||||
onChange,
|
||||
showLabels = false,
|
||||
value
|
||||
} = props,
|
||||
other = _objectWithoutPropertiesLoose(props, _excluded);
|
||||
const ownerState = _extends({}, props, {
|
||||
component,
|
||||
showLabels
|
||||
});
|
||||
const classes = useUtilityClasses(ownerState);
|
||||
return /*#__PURE__*/_jsx(BottomNavigationRoot, _extends({
|
||||
as: component,
|
||||
className: clsx(classes.root, className),
|
||||
ref: ref,
|
||||
ownerState: ownerState
|
||||
}, other, {
|
||||
children: React.Children.map(children, (child, childIndex) => {
|
||||
if (! /*#__PURE__*/React.isValidElement(child)) {
|
||||
return null;
|
||||
}
|
||||
if (process.env.NODE_ENV !== 'production') {
|
||||
if (isFragment(child)) {
|
||||
console.error(["MUI: The BottomNavigation component doesn't accept a Fragment as a child.", 'Consider providing an array instead.'].join('\n'));
|
||||
}
|
||||
}
|
||||
const childValue = child.props.value === undefined ? childIndex : child.props.value;
|
||||
return /*#__PURE__*/React.cloneElement(child, {
|
||||
selected: childValue === value,
|
||||
showLabel: child.props.showLabel !== undefined ? child.props.showLabel : showLabels,
|
||||
value: childValue,
|
||||
onChange
|
||||
});
|
||||
})
|
||||
}));
|
||||
});
|
||||
process.env.NODE_ENV !== "production" ? BottomNavigation.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,
|
||||
/**
|
||||
* Callback fired when the value changes.
|
||||
*
|
||||
* @param {React.SyntheticEvent} event The event source of the callback. **Warning**: This is a generic event not a change event.
|
||||
* @param {any} value We default to the index of the child.
|
||||
*/
|
||||
onChange: PropTypes.func,
|
||||
/**
|
||||
* If `true`, all `BottomNavigationAction`s will show their labels.
|
||||
* By default, only the selected `BottomNavigationAction` will show its label.
|
||||
* @default false
|
||||
*/
|
||||
showLabels: PropTypes.bool,
|
||||
/**
|
||||
* 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 value of the currently selected `BottomNavigationAction`.
|
||||
*/
|
||||
value: PropTypes.any
|
||||
} : void 0;
|
||||
export default BottomNavigation;
|
||||
7
backend/frontend/node_modules/@mui/material/modern/BottomNavigation/bottomNavigationClasses.js
generated
vendored
Normal file
7
backend/frontend/node_modules/@mui/material/modern/BottomNavigation/bottomNavigationClasses.js
generated
vendored
Normal file
@@ -0,0 +1,7 @@
|
||||
import generateUtilityClasses from '@mui/utils/generateUtilityClasses';
|
||||
import generateUtilityClass from '@mui/utils/generateUtilityClass';
|
||||
export function getBottomNavigationUtilityClass(slot) {
|
||||
return generateUtilityClass('MuiBottomNavigation', slot);
|
||||
}
|
||||
const bottomNavigationClasses = generateUtilityClasses('MuiBottomNavigation', ['root']);
|
||||
export default bottomNavigationClasses;
|
||||
5
backend/frontend/node_modules/@mui/material/modern/BottomNavigation/index.js
generated
vendored
Normal file
5
backend/frontend/node_modules/@mui/material/modern/BottomNavigation/index.js
generated
vendored
Normal file
@@ -0,0 +1,5 @@
|
||||
'use client';
|
||||
|
||||
export { default } from './BottomNavigation';
|
||||
export { default as bottomNavigationClasses } from './bottomNavigationClasses';
|
||||
export * from './bottomNavigationClasses';
|
||||
173
backend/frontend/node_modules/@mui/material/modern/BottomNavigationAction/BottomNavigationAction.js
generated
vendored
Normal file
173
backend/frontend/node_modules/@mui/material/modern/BottomNavigationAction/BottomNavigationAction.js
generated
vendored
Normal file
@@ -0,0 +1,173 @@
|
||||
'use client';
|
||||
|
||||
import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/esm/objectWithoutPropertiesLoose";
|
||||
import _extends from "@babel/runtime/helpers/esm/extends";
|
||||
const _excluded = ["className", "icon", "label", "onChange", "onClick", "selected", "showLabel", "value"];
|
||||
import * as React from 'react';
|
||||
import PropTypes from 'prop-types';
|
||||
import clsx from 'clsx';
|
||||
import composeClasses from '@mui/utils/composeClasses';
|
||||
import styled from '../styles/styled';
|
||||
import { useDefaultProps } from '../DefaultPropsProvider';
|
||||
import ButtonBase from '../ButtonBase';
|
||||
import unsupportedProp from '../utils/unsupportedProp';
|
||||
import bottomNavigationActionClasses, { getBottomNavigationActionUtilityClass } from './bottomNavigationActionClasses';
|
||||
import { jsx as _jsx } from "react/jsx-runtime";
|
||||
import { jsxs as _jsxs } from "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 composeClasses(slots, getBottomNavigationActionUtilityClass, classes);
|
||||
};
|
||||
const BottomNavigationActionRoot = styled(ButtonBase, {
|
||||
name: 'MuiBottomNavigationAction',
|
||||
slot: 'Root',
|
||||
overridesResolver: (props, styles) => {
|
||||
const {
|
||||
ownerState
|
||||
} = props;
|
||||
return [styles.root, !ownerState.showLabel && !ownerState.selected && styles.iconOnly];
|
||||
}
|
||||
})(({
|
||||
theme,
|
||||
ownerState
|
||||
}) => _extends({
|
||||
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'
|
||||
}, !ownerState.showLabel && !ownerState.selected && {
|
||||
paddingTop: 14
|
||||
}, !ownerState.showLabel && !ownerState.selected && !ownerState.label && {
|
||||
paddingTop: 0
|
||||
}, {
|
||||
[`&.${bottomNavigationActionClasses.selected}`]: {
|
||||
color: (theme.vars || theme).palette.primary.main
|
||||
}
|
||||
}));
|
||||
const BottomNavigationActionLabel = styled('span', {
|
||||
name: 'MuiBottomNavigationAction',
|
||||
slot: 'Label',
|
||||
overridesResolver: (props, styles) => styles.label
|
||||
})(({
|
||||
theme,
|
||||
ownerState
|
||||
}) => _extends({
|
||||
fontFamily: theme.typography.fontFamily,
|
||||
fontSize: theme.typography.pxToRem(12),
|
||||
opacity: 1,
|
||||
transition: 'font-size 0.2s, opacity 0.2s',
|
||||
transitionDelay: '0.1s'
|
||||
}, !ownerState.showLabel && !ownerState.selected && {
|
||||
opacity: 0,
|
||||
transitionDelay: '0s'
|
||||
}, {
|
||||
[`&.${bottomNavigationActionClasses.selected}`]: {
|
||||
fontSize: theme.typography.pxToRem(14)
|
||||
}
|
||||
}));
|
||||
const BottomNavigationAction = /*#__PURE__*/React.forwardRef(function BottomNavigationAction(inProps, ref) {
|
||||
const props = useDefaultProps({
|
||||
props: inProps,
|
||||
name: 'MuiBottomNavigationAction'
|
||||
});
|
||||
const {
|
||||
className,
|
||||
icon,
|
||||
label,
|
||||
onChange,
|
||||
onClick
|
||||
// eslint-disable-next-line react/prop-types -- private, always overridden by BottomNavigation
|
||||
,
|
||||
|
||||
value
|
||||
} = props,
|
||||
other = _objectWithoutPropertiesLoose(props, _excluded);
|
||||
const ownerState = props;
|
||||
const classes = useUtilityClasses(ownerState);
|
||||
const handleChange = event => {
|
||||
if (onChange) {
|
||||
onChange(event, value);
|
||||
}
|
||||
if (onClick) {
|
||||
onClick(event);
|
||||
}
|
||||
};
|
||||
return /*#__PURE__*/_jsxs(BottomNavigationActionRoot, _extends({
|
||||
ref: ref,
|
||||
className: clsx(classes.root, className),
|
||||
focusRipple: true,
|
||||
onClick: handleChange,
|
||||
ownerState: ownerState
|
||||
}, other, {
|
||||
children: [icon, /*#__PURE__*/_jsx(BottomNavigationActionLabel, {
|
||||
className: classes.label,
|
||||
ownerState: ownerState,
|
||||
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,
|
||||
/**
|
||||
* Override or extend the styles applied to the component.
|
||||
*/
|
||||
classes: PropTypes.object,
|
||||
/**
|
||||
* @ignore
|
||||
*/
|
||||
className: PropTypes.string,
|
||||
/**
|
||||
* The icon to display.
|
||||
*/
|
||||
icon: PropTypes.node,
|
||||
/**
|
||||
* The label element.
|
||||
*/
|
||||
label: PropTypes.node,
|
||||
/**
|
||||
* @ignore
|
||||
*/
|
||||
onChange: PropTypes.func,
|
||||
/**
|
||||
* @ignore
|
||||
*/
|
||||
onClick: PropTypes.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.bool,
|
||||
/**
|
||||
* 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]),
|
||||
/**
|
||||
* You can provide your own value. Otherwise, we fallback to the child position index.
|
||||
*/
|
||||
value: PropTypes.any
|
||||
} : void 0;
|
||||
export default BottomNavigationAction;
|
||||
7
backend/frontend/node_modules/@mui/material/modern/BottomNavigationAction/bottomNavigationActionClasses.js
generated
vendored
Normal file
7
backend/frontend/node_modules/@mui/material/modern/BottomNavigationAction/bottomNavigationActionClasses.js
generated
vendored
Normal file
@@ -0,0 +1,7 @@
|
||||
import generateUtilityClasses from '@mui/utils/generateUtilityClasses';
|
||||
import generateUtilityClass from '@mui/utils/generateUtilityClass';
|
||||
export function getBottomNavigationActionUtilityClass(slot) {
|
||||
return generateUtilityClass('MuiBottomNavigationAction', slot);
|
||||
}
|
||||
const bottomNavigationActionClasses = generateUtilityClasses('MuiBottomNavigationAction', ['root', 'iconOnly', 'selected', 'label']);
|
||||
export default bottomNavigationActionClasses;
|
||||
5
backend/frontend/node_modules/@mui/material/modern/BottomNavigationAction/index.js
generated
vendored
Normal file
5
backend/frontend/node_modules/@mui/material/modern/BottomNavigationAction/index.js
generated
vendored
Normal file
@@ -0,0 +1,5 @@
|
||||
'use client';
|
||||
|
||||
export { default } from './BottomNavigationAction';
|
||||
export { default as bottomNavigationActionClasses } from './bottomNavigationActionClasses';
|
||||
export * from './bottomNavigationActionClasses';
|
||||
35
backend/frontend/node_modules/@mui/material/modern/Box/Box.js
generated
vendored
Normal file
35
backend/frontend/node_modules/@mui/material/modern/Box/Box.js
generated
vendored
Normal file
@@ -0,0 +1,35 @@
|
||||
'use client';
|
||||
|
||||
import { createBox } from '@mui/system';
|
||||
import PropTypes from 'prop-types';
|
||||
import { unstable_ClassNameGenerator as ClassNameGenerator } from '../className';
|
||||
import { createTheme } from '../styles';
|
||||
import THEME_ID from '../styles/identifier';
|
||||
import boxClasses from './boxClasses';
|
||||
const defaultTheme = createTheme();
|
||||
const Box = createBox({
|
||||
themeId: THEME_ID,
|
||||
defaultTheme,
|
||||
defaultClassName: boxClasses.root,
|
||||
generateClassName: ClassNameGenerator.generate
|
||||
});
|
||||
process.env.NODE_ENV !== "production" ? Box.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`. │
|
||||
// └─────────────────────────────────────────────────────────────────────┘
|
||||
/**
|
||||
* @ignore
|
||||
*/
|
||||
children: PropTypes.node,
|
||||
/**
|
||||
* The component used for the root node.
|
||||
* Either a string to use a HTML element or a component.
|
||||
*/
|
||||
component: 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])
|
||||
} : void 0;
|
||||
export default Box;
|
||||
3
backend/frontend/node_modules/@mui/material/modern/Box/boxClasses.js
generated
vendored
Normal file
3
backend/frontend/node_modules/@mui/material/modern/Box/boxClasses.js
generated
vendored
Normal file
@@ -0,0 +1,3 @@
|
||||
import generateUtilityClasses from '@mui/utils/generateUtilityClasses';
|
||||
const boxClasses = generateUtilityClasses('MuiBox', ['root']);
|
||||
export default boxClasses;
|
||||
5
backend/frontend/node_modules/@mui/material/modern/Box/index.js
generated
vendored
Normal file
5
backend/frontend/node_modules/@mui/material/modern/Box/index.js
generated
vendored
Normal file
@@ -0,0 +1,5 @@
|
||||
'use client';
|
||||
|
||||
export { default } from './Box';
|
||||
export { default as boxClasses } from './boxClasses';
|
||||
export * from './boxClasses';
|
||||
88
backend/frontend/node_modules/@mui/material/modern/Breadcrumbs/BreadcrumbCollapsed.js
generated
vendored
Normal file
88
backend/frontend/node_modules/@mui/material/modern/Breadcrumbs/BreadcrumbCollapsed.js
generated
vendored
Normal file
@@ -0,0 +1,88 @@
|
||||
'use client';
|
||||
|
||||
import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/esm/objectWithoutPropertiesLoose";
|
||||
import _extends from "@babel/runtime/helpers/esm/extends";
|
||||
const _excluded = ["slots", "slotProps"];
|
||||
import * as React from 'react';
|
||||
import PropTypes from 'prop-types';
|
||||
import { emphasize } from '@mui/system/colorManipulator';
|
||||
import styled from '../styles/styled';
|
||||
import MoreHorizIcon from '../internal/svg-icons/MoreHoriz';
|
||||
import ButtonBase from '../ButtonBase';
|
||||
import { jsx as _jsx } from "react/jsx-runtime";
|
||||
const BreadcrumbCollapsedButton = styled(ButtonBase)(({
|
||||
theme
|
||||
}) => _extends({
|
||||
display: 'flex',
|
||||
marginLeft: `calc(${theme.spacing(1)} * 0.5)`,
|
||||
marginRight: `calc(${theme.spacing(1)} * 0.5)`
|
||||
}, theme.palette.mode === 'light' ? {
|
||||
backgroundColor: theme.palette.grey[100],
|
||||
color: theme.palette.grey[700]
|
||||
} : {
|
||||
backgroundColor: theme.palette.grey[700],
|
||||
color: theme.palette.grey[100]
|
||||
}, {
|
||||
borderRadius: 2,
|
||||
'&:hover, &:focus': _extends({}, theme.palette.mode === 'light' ? {
|
||||
backgroundColor: theme.palette.grey[200]
|
||||
} : {
|
||||
backgroundColor: theme.palette.grey[600]
|
||||
}),
|
||||
'&:active': _extends({
|
||||
boxShadow: theme.shadows[0]
|
||||
}, theme.palette.mode === 'light' ? {
|
||||
backgroundColor: emphasize(theme.palette.grey[200], 0.12)
|
||||
} : {
|
||||
backgroundColor: emphasize(theme.palette.grey[600], 0.12)
|
||||
})
|
||||
}));
|
||||
const BreadcrumbCollapsedIcon = styled(MoreHorizIcon)({
|
||||
width: 24,
|
||||
height: 16
|
||||
});
|
||||
|
||||
/**
|
||||
* @ignore - internal component.
|
||||
*/
|
||||
function BreadcrumbCollapsed(props) {
|
||||
const {
|
||||
slots = {},
|
||||
slotProps = {}
|
||||
} = props,
|
||||
otherProps = _objectWithoutPropertiesLoose(props, _excluded);
|
||||
const ownerState = props;
|
||||
return /*#__PURE__*/_jsx("li", {
|
||||
children: /*#__PURE__*/_jsx(BreadcrumbCollapsedButton, _extends({
|
||||
focusRipple: true
|
||||
}, otherProps, {
|
||||
ownerState: ownerState,
|
||||
children: /*#__PURE__*/_jsx(BreadcrumbCollapsedIcon, _extends({
|
||||
as: slots.CollapsedIcon,
|
||||
ownerState: ownerState
|
||||
}, slotProps.collapsedIcon))
|
||||
}))
|
||||
});
|
||||
}
|
||||
process.env.NODE_ENV !== "production" ? BreadcrumbCollapsed.propTypes = {
|
||||
/**
|
||||
* The props used for the CollapsedIcon slot.
|
||||
* @default {}
|
||||
*/
|
||||
slotProps: PropTypes.shape({
|
||||
collapsedIcon: PropTypes.oneOfType([PropTypes.func, PropTypes.object])
|
||||
}),
|
||||
/**
|
||||
* The components used for each slot inside the BreadcumbCollapsed.
|
||||
* Either a string to use a HTML element or a component.
|
||||
* @default {}
|
||||
*/
|
||||
slots: PropTypes.shape({
|
||||
CollapsedIcon: PropTypes.elementType
|
||||
}),
|
||||
/**
|
||||
* The system prop that allows defining system overrides as well as additional CSS styles.
|
||||
*/
|
||||
sx: PropTypes.object
|
||||
} : void 0;
|
||||
export default BreadcrumbCollapsed;
|
||||
242
backend/frontend/node_modules/@mui/material/modern/Breadcrumbs/Breadcrumbs.js
generated
vendored
Normal file
242
backend/frontend/node_modules/@mui/material/modern/Breadcrumbs/Breadcrumbs.js
generated
vendored
Normal file
@@ -0,0 +1,242 @@
|
||||
'use client';
|
||||
|
||||
import _extends from "@babel/runtime/helpers/esm/extends";
|
||||
import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/esm/objectWithoutPropertiesLoose";
|
||||
const _excluded = ["children", "className", "component", "slots", "slotProps", "expandText", "itemsAfterCollapse", "itemsBeforeCollapse", "maxItems", "separator"];
|
||||
import * as React from 'react';
|
||||
import { isFragment } from 'react-is';
|
||||
import PropTypes from 'prop-types';
|
||||
import clsx from 'clsx';
|
||||
import integerPropType from '@mui/utils/integerPropType';
|
||||
import composeClasses from '@mui/utils/composeClasses';
|
||||
import useSlotProps from '@mui/utils/useSlotProps';
|
||||
import styled from '../styles/styled';
|
||||
import { useDefaultProps } from '../DefaultPropsProvider';
|
||||
import Typography from '../Typography';
|
||||
import BreadcrumbCollapsed from './BreadcrumbCollapsed';
|
||||
import breadcrumbsClasses, { getBreadcrumbsUtilityClass } from './breadcrumbsClasses';
|
||||
import { jsx as _jsx } from "react/jsx-runtime";
|
||||
const useUtilityClasses = ownerState => {
|
||||
const {
|
||||
classes
|
||||
} = ownerState;
|
||||
const slots = {
|
||||
root: ['root'],
|
||||
li: ['li'],
|
||||
ol: ['ol'],
|
||||
separator: ['separator']
|
||||
};
|
||||
return composeClasses(slots, getBreadcrumbsUtilityClass, classes);
|
||||
};
|
||||
const BreadcrumbsRoot = styled(Typography, {
|
||||
name: 'MuiBreadcrumbs',
|
||||
slot: 'Root',
|
||||
overridesResolver: (props, styles) => {
|
||||
return [{
|
||||
[`& .${breadcrumbsClasses.li}`]: styles.li
|
||||
}, styles.root];
|
||||
}
|
||||
})({});
|
||||
const BreadcrumbsOl = styled('ol', {
|
||||
name: 'MuiBreadcrumbs',
|
||||
slot: 'Ol',
|
||||
overridesResolver: (props, styles) => styles.ol
|
||||
})({
|
||||
display: 'flex',
|
||||
flexWrap: 'wrap',
|
||||
alignItems: 'center',
|
||||
padding: 0,
|
||||
margin: 0,
|
||||
listStyle: 'none'
|
||||
});
|
||||
const BreadcrumbsSeparator = styled('li', {
|
||||
name: 'MuiBreadcrumbs',
|
||||
slot: 'Separator',
|
||||
overridesResolver: (props, styles) => styles.separator
|
||||
})({
|
||||
display: 'flex',
|
||||
userSelect: 'none',
|
||||
marginLeft: 8,
|
||||
marginRight: 8
|
||||
});
|
||||
function insertSeparators(items, className, separator, ownerState) {
|
||||
return items.reduce((acc, current, index) => {
|
||||
if (index < items.length - 1) {
|
||||
acc = acc.concat(current, /*#__PURE__*/_jsx(BreadcrumbsSeparator, {
|
||||
"aria-hidden": true,
|
||||
className: className,
|
||||
ownerState: ownerState,
|
||||
children: separator
|
||||
}, `separator-${index}`));
|
||||
} else {
|
||||
acc.push(current);
|
||||
}
|
||||
return acc;
|
||||
}, []);
|
||||
}
|
||||
const Breadcrumbs = /*#__PURE__*/React.forwardRef(function Breadcrumbs(inProps, ref) {
|
||||
const props = useDefaultProps({
|
||||
props: inProps,
|
||||
name: 'MuiBreadcrumbs'
|
||||
});
|
||||
const {
|
||||
children,
|
||||
className,
|
||||
component = 'nav',
|
||||
slots = {},
|
||||
slotProps = {},
|
||||
expandText = 'Show path',
|
||||
itemsAfterCollapse = 1,
|
||||
itemsBeforeCollapse = 1,
|
||||
maxItems = 8,
|
||||
separator = '/'
|
||||
} = props,
|
||||
other = _objectWithoutPropertiesLoose(props, _excluded);
|
||||
const [expanded, setExpanded] = React.useState(false);
|
||||
const ownerState = _extends({}, props, {
|
||||
component,
|
||||
expanded,
|
||||
expandText,
|
||||
itemsAfterCollapse,
|
||||
itemsBeforeCollapse,
|
||||
maxItems,
|
||||
separator
|
||||
});
|
||||
const classes = useUtilityClasses(ownerState);
|
||||
const collapsedIconSlotProps = useSlotProps({
|
||||
elementType: slots.CollapsedIcon,
|
||||
externalSlotProps: slotProps.collapsedIcon,
|
||||
ownerState
|
||||
});
|
||||
const listRef = React.useRef(null);
|
||||
const renderItemsBeforeAndAfter = allItems => {
|
||||
const handleClickExpand = () => {
|
||||
setExpanded(true);
|
||||
|
||||
// The clicked element received the focus but gets removed from the DOM.
|
||||
// Let's keep the focus in the component after expanding.
|
||||
// Moving it to the <ol> or <nav> does not cause any announcement in NVDA.
|
||||
// By moving it to some link/button at least we have some announcement.
|
||||
const focusable = listRef.current.querySelector('a[href],button,[tabindex]');
|
||||
if (focusable) {
|
||||
focusable.focus();
|
||||
}
|
||||
};
|
||||
|
||||
// This defends against someone passing weird input, to ensure that if all
|
||||
// items would be shown anyway, we just show all items without the EllipsisItem
|
||||
if (itemsBeforeCollapse + itemsAfterCollapse >= allItems.length) {
|
||||
if (process.env.NODE_ENV !== 'production') {
|
||||
console.error(['MUI: You have provided an invalid combination of props to the Breadcrumbs.', `itemsAfterCollapse={${itemsAfterCollapse}} + itemsBeforeCollapse={${itemsBeforeCollapse}} >= maxItems={${maxItems}}`].join('\n'));
|
||||
}
|
||||
return allItems;
|
||||
}
|
||||
return [...allItems.slice(0, itemsBeforeCollapse), /*#__PURE__*/_jsx(BreadcrumbCollapsed, {
|
||||
"aria-label": expandText,
|
||||
slots: {
|
||||
CollapsedIcon: slots.CollapsedIcon
|
||||
},
|
||||
slotProps: {
|
||||
collapsedIcon: collapsedIconSlotProps
|
||||
},
|
||||
onClick: handleClickExpand
|
||||
}, "ellipsis"), ...allItems.slice(allItems.length - itemsAfterCollapse, allItems.length)];
|
||||
};
|
||||
const allItems = React.Children.toArray(children).filter(child => {
|
||||
if (process.env.NODE_ENV !== 'production') {
|
||||
if (isFragment(child)) {
|
||||
console.error(["MUI: The Breadcrumbs component doesn't accept a Fragment as a child.", 'Consider providing an array instead.'].join('\n'));
|
||||
}
|
||||
}
|
||||
return /*#__PURE__*/React.isValidElement(child);
|
||||
}).map((child, index) => /*#__PURE__*/_jsx("li", {
|
||||
className: classes.li,
|
||||
children: child
|
||||
}, `child-${index}`));
|
||||
return /*#__PURE__*/_jsx(BreadcrumbsRoot, _extends({
|
||||
ref: ref,
|
||||
component: component,
|
||||
color: "text.secondary",
|
||||
className: clsx(classes.root, className),
|
||||
ownerState: ownerState
|
||||
}, other, {
|
||||
children: /*#__PURE__*/_jsx(BreadcrumbsOl, {
|
||||
className: classes.ol,
|
||||
ref: listRef,
|
||||
ownerState: ownerState,
|
||||
children: insertSeparators(expanded || maxItems && allItems.length <= maxItems ? allItems : renderItemsBeforeAndAfter(allItems), classes.separator, separator, ownerState)
|
||||
})
|
||||
}));
|
||||
});
|
||||
process.env.NODE_ENV !== "production" ? Breadcrumbs.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,
|
||||
/**
|
||||
* Override the default label for the expand button.
|
||||
*
|
||||
* For localization purposes, you can use the provided [translations](/material-ui/guides/localization/).
|
||||
* @default 'Show path'
|
||||
*/
|
||||
expandText: PropTypes.string,
|
||||
/**
|
||||
* If max items is exceeded, the number of items to show after the ellipsis.
|
||||
* @default 1
|
||||
*/
|
||||
itemsAfterCollapse: integerPropType,
|
||||
/**
|
||||
* If max items is exceeded, the number of items to show before the ellipsis.
|
||||
* @default 1
|
||||
*/
|
||||
itemsBeforeCollapse: integerPropType,
|
||||
/**
|
||||
* Specifies the maximum number of breadcrumbs to display. When there are more
|
||||
* than the maximum number, only the first `itemsBeforeCollapse` and last `itemsAfterCollapse`
|
||||
* will be shown, with an ellipsis in between.
|
||||
* @default 8
|
||||
*/
|
||||
maxItems: integerPropType,
|
||||
/**
|
||||
* Custom separator node.
|
||||
* @default '/'
|
||||
*/
|
||||
separator: PropTypes.node,
|
||||
/**
|
||||
* The props used for each slot inside the Breadcumb.
|
||||
* @default {}
|
||||
*/
|
||||
slotProps: PropTypes.shape({
|
||||
collapsedIcon: PropTypes.oneOfType([PropTypes.func, PropTypes.object])
|
||||
}),
|
||||
/**
|
||||
* The components used for each slot inside the Breadcumb.
|
||||
* Either a string to use a HTML element or a component.
|
||||
* @default {}
|
||||
*/
|
||||
slots: PropTypes.shape({
|
||||
CollapsedIcon: 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])
|
||||
} : void 0;
|
||||
export default Breadcrumbs;
|
||||
7
backend/frontend/node_modules/@mui/material/modern/Breadcrumbs/breadcrumbsClasses.js
generated
vendored
Normal file
7
backend/frontend/node_modules/@mui/material/modern/Breadcrumbs/breadcrumbsClasses.js
generated
vendored
Normal file
@@ -0,0 +1,7 @@
|
||||
import generateUtilityClasses from '@mui/utils/generateUtilityClasses';
|
||||
import generateUtilityClass from '@mui/utils/generateUtilityClass';
|
||||
export function getBreadcrumbsUtilityClass(slot) {
|
||||
return generateUtilityClass('MuiBreadcrumbs', slot);
|
||||
}
|
||||
const breadcrumbsClasses = generateUtilityClasses('MuiBreadcrumbs', ['root', 'ol', 'li', 'separator']);
|
||||
export default breadcrumbsClasses;
|
||||
5
backend/frontend/node_modules/@mui/material/modern/Breadcrumbs/index.js
generated
vendored
Normal file
5
backend/frontend/node_modules/@mui/material/modern/Breadcrumbs/index.js
generated
vendored
Normal file
@@ -0,0 +1,5 @@
|
||||
'use client';
|
||||
|
||||
export { default } from './Breadcrumbs';
|
||||
export { default as breadcrumbsClasses } from './breadcrumbsClasses';
|
||||
export * from './breadcrumbsClasses';
|
||||
378
backend/frontend/node_modules/@mui/material/modern/Button/Button.js
generated
vendored
Normal file
378
backend/frontend/node_modules/@mui/material/modern/Button/Button.js
generated
vendored
Normal file
@@ -0,0 +1,378 @@
|
||||
'use client';
|
||||
|
||||
import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/esm/objectWithoutPropertiesLoose";
|
||||
import _extends from "@babel/runtime/helpers/esm/extends";
|
||||
const _excluded = ["children", "color", "component", "className", "disabled", "disableElevation", "disableFocusRipple", "endIcon", "focusVisibleClassName", "fullWidth", "size", "startIcon", "type", "variant"];
|
||||
import * as React from 'react';
|
||||
import PropTypes from 'prop-types';
|
||||
import clsx from 'clsx';
|
||||
import resolveProps from '@mui/utils/resolveProps';
|
||||
import composeClasses from '@mui/utils/composeClasses';
|
||||
import { alpha } from '@mui/system/colorManipulator';
|
||||
import styled, { rootShouldForwardProp } from '../styles/styled';
|
||||
import { useDefaultProps } from '../DefaultPropsProvider';
|
||||
import ButtonBase from '../ButtonBase';
|
||||
import capitalize from '../utils/capitalize';
|
||||
import buttonClasses, { getButtonUtilityClass } from './buttonClasses';
|
||||
import ButtonGroupContext from '../ButtonGroup/ButtonGroupContext';
|
||||
import ButtonGroupButtonContext from '../ButtonGroup/ButtonGroupButtonContext';
|
||||
import { jsx as _jsx } from "react/jsx-runtime";
|
||||
import { jsxs as _jsxs } from "react/jsx-runtime";
|
||||
const useUtilityClasses = ownerState => {
|
||||
const {
|
||||
color,
|
||||
disableElevation,
|
||||
fullWidth,
|
||||
size,
|
||||
variant,
|
||||
classes
|
||||
} = ownerState;
|
||||
const slots = {
|
||||
root: ['root', variant, `${variant}${capitalize(color)}`, `size${capitalize(size)}`, `${variant}Size${capitalize(size)}`, `color${capitalize(color)}`, disableElevation && 'disableElevation', fullWidth && 'fullWidth'],
|
||||
label: ['label'],
|
||||
startIcon: ['icon', 'startIcon', `iconSize${capitalize(size)}`],
|
||||
endIcon: ['icon', 'endIcon', `iconSize${capitalize(size)}`]
|
||||
};
|
||||
const composedClasses = composeClasses(slots, getButtonUtilityClass, classes);
|
||||
return _extends({}, classes, composedClasses);
|
||||
};
|
||||
const commonIconStyles = ownerState => _extends({}, ownerState.size === 'small' && {
|
||||
'& > *:nth-of-type(1)': {
|
||||
fontSize: 18
|
||||
}
|
||||
}, ownerState.size === 'medium' && {
|
||||
'& > *:nth-of-type(1)': {
|
||||
fontSize: 20
|
||||
}
|
||||
}, ownerState.size === 'large' && {
|
||||
'& > *:nth-of-type(1)': {
|
||||
fontSize: 22
|
||||
}
|
||||
});
|
||||
const ButtonRoot = styled(ButtonBase, {
|
||||
shouldForwardProp: prop => rootShouldForwardProp(prop) || prop === 'classes',
|
||||
name: 'MuiButton',
|
||||
slot: 'Root',
|
||||
overridesResolver: (props, styles) => {
|
||||
const {
|
||||
ownerState
|
||||
} = props;
|
||||
return [styles.root, styles[ownerState.variant], styles[`${ownerState.variant}${capitalize(ownerState.color)}`], styles[`size${capitalize(ownerState.size)}`], styles[`${ownerState.variant}Size${capitalize(ownerState.size)}`], ownerState.color === 'inherit' && styles.colorInherit, ownerState.disableElevation && styles.disableElevation, ownerState.fullWidth && styles.fullWidth];
|
||||
}
|
||||
})(({
|
||||
theme,
|
||||
ownerState
|
||||
}) => {
|
||||
const inheritContainedBackgroundColor = theme.palette.mode === 'light' ? theme.palette.grey[300] : theme.palette.grey[800];
|
||||
const inheritContainedHoverBackgroundColor = theme.palette.mode === 'light' ? theme.palette.grey.A100 : theme.palette.grey[700];
|
||||
return _extends({}, theme.typography.button, {
|
||||
minWidth: 64,
|
||||
padding: '6px 16px',
|
||||
borderRadius: (theme.vars || theme).shape.borderRadius,
|
||||
transition: theme.transitions.create(['background-color', 'box-shadow', 'border-color', 'color'], {
|
||||
duration: theme.transitions.duration.short
|
||||
}),
|
||||
'&:hover': _extends({
|
||||
textDecoration: 'none',
|
||||
backgroundColor: theme.vars ? `rgba(${theme.vars.palette.text.primaryChannel} / ${theme.vars.palette.action.hoverOpacity})` : alpha(theme.palette.text.primary, theme.palette.action.hoverOpacity),
|
||||
// Reset on touch devices, it doesn't add specificity
|
||||
'@media (hover: none)': {
|
||||
backgroundColor: 'transparent'
|
||||
}
|
||||
}, ownerState.variant === 'text' && ownerState.color !== 'inherit' && {
|
||||
backgroundColor: theme.vars ? `rgba(${theme.vars.palette[ownerState.color].mainChannel} / ${theme.vars.palette.action.hoverOpacity})` : alpha(theme.palette[ownerState.color].main, theme.palette.action.hoverOpacity),
|
||||
// Reset on touch devices, it doesn't add specificity
|
||||
'@media (hover: none)': {
|
||||
backgroundColor: 'transparent'
|
||||
}
|
||||
}, ownerState.variant === 'outlined' && ownerState.color !== 'inherit' && {
|
||||
border: `1px solid ${(theme.vars || theme).palette[ownerState.color].main}`,
|
||||
backgroundColor: theme.vars ? `rgba(${theme.vars.palette[ownerState.color].mainChannel} / ${theme.vars.palette.action.hoverOpacity})` : alpha(theme.palette[ownerState.color].main, theme.palette.action.hoverOpacity),
|
||||
// Reset on touch devices, it doesn't add specificity
|
||||
'@media (hover: none)': {
|
||||
backgroundColor: 'transparent'
|
||||
}
|
||||
}, ownerState.variant === 'contained' && {
|
||||
backgroundColor: theme.vars ? theme.vars.palette.Button.inheritContainedHoverBg : inheritContainedHoverBackgroundColor,
|
||||
boxShadow: (theme.vars || theme).shadows[4],
|
||||
// Reset on touch devices, it doesn't add specificity
|
||||
'@media (hover: none)': {
|
||||
boxShadow: (theme.vars || theme).shadows[2],
|
||||
backgroundColor: (theme.vars || theme).palette.grey[300]
|
||||
}
|
||||
}, ownerState.variant === 'contained' && ownerState.color !== 'inherit' && {
|
||||
backgroundColor: (theme.vars || theme).palette[ownerState.color].dark,
|
||||
// Reset on touch devices, it doesn't add specificity
|
||||
'@media (hover: none)': {
|
||||
backgroundColor: (theme.vars || theme).palette[ownerState.color].main
|
||||
}
|
||||
}),
|
||||
'&:active': _extends({}, ownerState.variant === 'contained' && {
|
||||
boxShadow: (theme.vars || theme).shadows[8]
|
||||
}),
|
||||
[`&.${buttonClasses.focusVisible}`]: _extends({}, ownerState.variant === 'contained' && {
|
||||
boxShadow: (theme.vars || theme).shadows[6]
|
||||
}),
|
||||
[`&.${buttonClasses.disabled}`]: _extends({
|
||||
color: (theme.vars || theme).palette.action.disabled
|
||||
}, ownerState.variant === 'outlined' && {
|
||||
border: `1px solid ${(theme.vars || theme).palette.action.disabledBackground}`
|
||||
}, ownerState.variant === 'contained' && {
|
||||
color: (theme.vars || theme).palette.action.disabled,
|
||||
boxShadow: (theme.vars || theme).shadows[0],
|
||||
backgroundColor: (theme.vars || theme).palette.action.disabledBackground
|
||||
})
|
||||
}, ownerState.variant === 'text' && {
|
||||
padding: '6px 8px'
|
||||
}, ownerState.variant === 'text' && ownerState.color !== 'inherit' && {
|
||||
color: (theme.vars || theme).palette[ownerState.color].main
|
||||
}, ownerState.variant === 'outlined' && {
|
||||
padding: '5px 15px',
|
||||
border: '1px solid currentColor'
|
||||
}, ownerState.variant === 'outlined' && ownerState.color !== 'inherit' && {
|
||||
color: (theme.vars || theme).palette[ownerState.color].main,
|
||||
border: theme.vars ? `1px solid rgba(${theme.vars.palette[ownerState.color].mainChannel} / 0.5)` : `1px solid ${alpha(theme.palette[ownerState.color].main, 0.5)}`
|
||||
}, ownerState.variant === 'contained' && {
|
||||
color: theme.vars ?
|
||||
// this is safe because grey does not change between default light/dark mode
|
||||
theme.vars.palette.text.primary : theme.palette.getContrastText?.(theme.palette.grey[300]),
|
||||
backgroundColor: theme.vars ? theme.vars.palette.Button.inheritContainedBg : inheritContainedBackgroundColor,
|
||||
boxShadow: (theme.vars || theme).shadows[2]
|
||||
}, ownerState.variant === 'contained' && ownerState.color !== 'inherit' && {
|
||||
color: (theme.vars || theme).palette[ownerState.color].contrastText,
|
||||
backgroundColor: (theme.vars || theme).palette[ownerState.color].main
|
||||
}, ownerState.color === 'inherit' && {
|
||||
color: 'inherit',
|
||||
borderColor: 'currentColor'
|
||||
}, ownerState.size === 'small' && ownerState.variant === 'text' && {
|
||||
padding: '4px 5px',
|
||||
fontSize: theme.typography.pxToRem(13)
|
||||
}, ownerState.size === 'large' && ownerState.variant === 'text' && {
|
||||
padding: '8px 11px',
|
||||
fontSize: theme.typography.pxToRem(15)
|
||||
}, ownerState.size === 'small' && ownerState.variant === 'outlined' && {
|
||||
padding: '3px 9px',
|
||||
fontSize: theme.typography.pxToRem(13)
|
||||
}, ownerState.size === 'large' && ownerState.variant === 'outlined' && {
|
||||
padding: '7px 21px',
|
||||
fontSize: theme.typography.pxToRem(15)
|
||||
}, ownerState.size === 'small' && ownerState.variant === 'contained' && {
|
||||
padding: '4px 10px',
|
||||
fontSize: theme.typography.pxToRem(13)
|
||||
}, ownerState.size === 'large' && ownerState.variant === 'contained' && {
|
||||
padding: '8px 22px',
|
||||
fontSize: theme.typography.pxToRem(15)
|
||||
}, ownerState.fullWidth && {
|
||||
width: '100%'
|
||||
});
|
||||
}, ({
|
||||
ownerState
|
||||
}) => ownerState.disableElevation && {
|
||||
boxShadow: 'none',
|
||||
'&:hover': {
|
||||
boxShadow: 'none'
|
||||
},
|
||||
[`&.${buttonClasses.focusVisible}`]: {
|
||||
boxShadow: 'none'
|
||||
},
|
||||
'&:active': {
|
||||
boxShadow: 'none'
|
||||
},
|
||||
[`&.${buttonClasses.disabled}`]: {
|
||||
boxShadow: 'none'
|
||||
}
|
||||
});
|
||||
const ButtonStartIcon = styled('span', {
|
||||
name: 'MuiButton',
|
||||
slot: 'StartIcon',
|
||||
overridesResolver: (props, styles) => {
|
||||
const {
|
||||
ownerState
|
||||
} = props;
|
||||
return [styles.startIcon, styles[`iconSize${capitalize(ownerState.size)}`]];
|
||||
}
|
||||
})(({
|
||||
ownerState
|
||||
}) => _extends({
|
||||
display: 'inherit',
|
||||
marginRight: 8,
|
||||
marginLeft: -4
|
||||
}, ownerState.size === 'small' && {
|
||||
marginLeft: -2
|
||||
}, commonIconStyles(ownerState)));
|
||||
const ButtonEndIcon = styled('span', {
|
||||
name: 'MuiButton',
|
||||
slot: 'EndIcon',
|
||||
overridesResolver: (props, styles) => {
|
||||
const {
|
||||
ownerState
|
||||
} = props;
|
||||
return [styles.endIcon, styles[`iconSize${capitalize(ownerState.size)}`]];
|
||||
}
|
||||
})(({
|
||||
ownerState
|
||||
}) => _extends({
|
||||
display: 'inherit',
|
||||
marginRight: -4,
|
||||
marginLeft: 8
|
||||
}, ownerState.size === 'small' && {
|
||||
marginRight: -2
|
||||
}, commonIconStyles(ownerState)));
|
||||
const Button = /*#__PURE__*/React.forwardRef(function Button(inProps, ref) {
|
||||
// props priority: `inProps` > `contextProps` > `themeDefaultProps`
|
||||
const contextProps = React.useContext(ButtonGroupContext);
|
||||
const buttonGroupButtonContextPositionClassName = React.useContext(ButtonGroupButtonContext);
|
||||
const resolvedProps = resolveProps(contextProps, inProps);
|
||||
const props = useDefaultProps({
|
||||
props: resolvedProps,
|
||||
name: 'MuiButton'
|
||||
});
|
||||
const {
|
||||
children,
|
||||
color = 'primary',
|
||||
component = 'button',
|
||||
className,
|
||||
disabled = false,
|
||||
disableElevation = false,
|
||||
disableFocusRipple = false,
|
||||
endIcon: endIconProp,
|
||||
focusVisibleClassName,
|
||||
fullWidth = false,
|
||||
size = 'medium',
|
||||
startIcon: startIconProp,
|
||||
type,
|
||||
variant = 'text'
|
||||
} = props,
|
||||
other = _objectWithoutPropertiesLoose(props, _excluded);
|
||||
const ownerState = _extends({}, props, {
|
||||
color,
|
||||
component,
|
||||
disabled,
|
||||
disableElevation,
|
||||
disableFocusRipple,
|
||||
fullWidth,
|
||||
size,
|
||||
type,
|
||||
variant
|
||||
});
|
||||
const classes = useUtilityClasses(ownerState);
|
||||
const startIcon = startIconProp && /*#__PURE__*/_jsx(ButtonStartIcon, {
|
||||
className: classes.startIcon,
|
||||
ownerState: ownerState,
|
||||
children: startIconProp
|
||||
});
|
||||
const endIcon = endIconProp && /*#__PURE__*/_jsx(ButtonEndIcon, {
|
||||
className: classes.endIcon,
|
||||
ownerState: ownerState,
|
||||
children: endIconProp
|
||||
});
|
||||
const positionClassName = buttonGroupButtonContextPositionClassName || '';
|
||||
return /*#__PURE__*/_jsxs(ButtonRoot, _extends({
|
||||
ownerState: ownerState,
|
||||
className: clsx(contextProps.className, classes.root, className, positionClassName),
|
||||
component: component,
|
||||
disabled: disabled,
|
||||
focusRipple: !disableFocusRipple,
|
||||
focusVisibleClassName: clsx(classes.focusVisible, focusVisibleClassName),
|
||||
ref: ref,
|
||||
type: type
|
||||
}, other, {
|
||||
classes: classes,
|
||||
children: [startIcon, children, endIcon]
|
||||
}));
|
||||
});
|
||||
process.env.NODE_ENV !== "production" ? Button.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 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 /* @typescript-to-proptypes-ignore */.oneOfType([PropTypes.oneOf(['inherit', 'primary', 'secondary', 'success', 'error', 'info', 'warning']), PropTypes.string]),
|
||||
/**
|
||||
* The component used for the root node.
|
||||
* Either a string to use a HTML element or a component.
|
||||
*/
|
||||
component: PropTypes.elementType,
|
||||
/**
|
||||
* If `true`, the component is disabled.
|
||||
* @default false
|
||||
*/
|
||||
disabled: PropTypes.bool,
|
||||
/**
|
||||
* If `true`, no elevation is used.
|
||||
* @default false
|
||||
*/
|
||||
disableElevation: PropTypes.bool,
|
||||
/**
|
||||
* If `true`, the keyboard focus ripple is disabled.
|
||||
* @default false
|
||||
*/
|
||||
disableFocusRipple: PropTypes.bool,
|
||||
/**
|
||||
* If `true`, the ripple effect is disabled.
|
||||
*
|
||||
* ⚠️ Without a ripple there is no styling for :focus-visible by default. Be sure
|
||||
* to highlight the element by applying separate styles with the `.Mui-focusVisible` class.
|
||||
* @default false
|
||||
*/
|
||||
disableRipple: PropTypes.bool,
|
||||
/**
|
||||
* Element placed after the children.
|
||||
*/
|
||||
endIcon: PropTypes.node,
|
||||
/**
|
||||
* @ignore
|
||||
*/
|
||||
focusVisibleClassName: PropTypes.string,
|
||||
/**
|
||||
* If `true`, the button will take up the full width of its container.
|
||||
* @default false
|
||||
*/
|
||||
fullWidth: PropTypes.bool,
|
||||
/**
|
||||
* The URL to link to when the button is clicked.
|
||||
* If defined, an `a` element will be used as the root node.
|
||||
*/
|
||||
href: PropTypes.string,
|
||||
/**
|
||||
* The size of the component.
|
||||
* `small` is equivalent to the dense button styling.
|
||||
* @default 'medium'
|
||||
*/
|
||||
size: PropTypes /* @typescript-to-proptypes-ignore */.oneOfType([PropTypes.oneOf(['small', 'medium', 'large']), PropTypes.string]),
|
||||
/**
|
||||
* Element placed before the children.
|
||||
*/
|
||||
startIcon: PropTypes.node,
|
||||
/**
|
||||
* 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]),
|
||||
/**
|
||||
* @ignore
|
||||
*/
|
||||
type: PropTypes.oneOfType([PropTypes.oneOf(['button', 'reset', 'submit']), PropTypes.string]),
|
||||
/**
|
||||
* The variant to use.
|
||||
* @default 'text'
|
||||
*/
|
||||
variant: PropTypes /* @typescript-to-proptypes-ignore */.oneOfType([PropTypes.oneOf(['contained', 'outlined', 'text']), PropTypes.string])
|
||||
} : void 0;
|
||||
export default Button;
|
||||
7
backend/frontend/node_modules/@mui/material/modern/Button/buttonClasses.js
generated
vendored
Normal file
7
backend/frontend/node_modules/@mui/material/modern/Button/buttonClasses.js
generated
vendored
Normal file
@@ -0,0 +1,7 @@
|
||||
import generateUtilityClasses from '@mui/utils/generateUtilityClasses';
|
||||
import generateUtilityClass from '@mui/utils/generateUtilityClass';
|
||||
export function getButtonUtilityClass(slot) {
|
||||
return generateUtilityClass('MuiButton', slot);
|
||||
}
|
||||
const buttonClasses = generateUtilityClasses('MuiButton', ['root', 'text', 'textInherit', 'textPrimary', 'textSecondary', 'textSuccess', 'textError', 'textInfo', 'textWarning', 'outlined', 'outlinedInherit', 'outlinedPrimary', 'outlinedSecondary', 'outlinedSuccess', 'outlinedError', 'outlinedInfo', 'outlinedWarning', 'contained', 'containedInherit', 'containedPrimary', 'containedSecondary', 'containedSuccess', 'containedError', 'containedInfo', 'containedWarning', 'disableElevation', 'focusVisible', 'disabled', 'colorInherit', 'colorPrimary', 'colorSecondary', 'colorSuccess', 'colorError', 'colorInfo', 'colorWarning', 'textSizeSmall', 'textSizeMedium', 'textSizeLarge', 'outlinedSizeSmall', 'outlinedSizeMedium', 'outlinedSizeLarge', 'containedSizeSmall', 'containedSizeMedium', 'containedSizeLarge', 'sizeMedium', 'sizeSmall', 'sizeLarge', 'fullWidth', 'startIcon', 'endIcon', 'icon', 'iconSizeSmall', 'iconSizeMedium', 'iconSizeLarge']);
|
||||
export default buttonClasses;
|
||||
5
backend/frontend/node_modules/@mui/material/modern/Button/index.js
generated
vendored
Normal file
5
backend/frontend/node_modules/@mui/material/modern/Button/index.js
generated
vendored
Normal file
@@ -0,0 +1,5 @@
|
||||
'use client';
|
||||
|
||||
export { default } from './Button';
|
||||
export { default as buttonClasses } from './buttonClasses';
|
||||
export * from './buttonClasses';
|
||||
477
backend/frontend/node_modules/@mui/material/modern/ButtonBase/ButtonBase.js
generated
vendored
Normal file
477
backend/frontend/node_modules/@mui/material/modern/ButtonBase/ButtonBase.js
generated
vendored
Normal file
@@ -0,0 +1,477 @@
|
||||
'use client';
|
||||
|
||||
import _extends from "@babel/runtime/helpers/esm/extends";
|
||||
import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/esm/objectWithoutPropertiesLoose";
|
||||
const _excluded = ["action", "centerRipple", "children", "className", "component", "disabled", "disableRipple", "disableTouchRipple", "focusRipple", "focusVisibleClassName", "LinkComponent", "onBlur", "onClick", "onContextMenu", "onDragLeave", "onFocus", "onFocusVisible", "onKeyDown", "onKeyUp", "onMouseDown", "onMouseLeave", "onMouseUp", "onTouchEnd", "onTouchMove", "onTouchStart", "tabIndex", "TouchRippleProps", "touchRippleRef", "type"];
|
||||
import * as React from 'react';
|
||||
import PropTypes from 'prop-types';
|
||||
import clsx from 'clsx';
|
||||
import refType from '@mui/utils/refType';
|
||||
import elementTypeAcceptingRef from '@mui/utils/elementTypeAcceptingRef';
|
||||
import composeClasses from '@mui/utils/composeClasses';
|
||||
import styled from '../styles/styled';
|
||||
import { useDefaultProps } from '../DefaultPropsProvider';
|
||||
import useForkRef from '../utils/useForkRef';
|
||||
import useEventCallback from '../utils/useEventCallback';
|
||||
import useIsFocusVisible from '../utils/useIsFocusVisible';
|
||||
import TouchRipple from './TouchRipple';
|
||||
import buttonBaseClasses, { getButtonBaseUtilityClass } from './buttonBaseClasses';
|
||||
import { jsx as _jsx } from "react/jsx-runtime";
|
||||
import { jsxs as _jsxs } from "react/jsx-runtime";
|
||||
const useUtilityClasses = ownerState => {
|
||||
const {
|
||||
disabled,
|
||||
focusVisible,
|
||||
focusVisibleClassName,
|
||||
classes
|
||||
} = ownerState;
|
||||
const slots = {
|
||||
root: ['root', disabled && 'disabled', focusVisible && 'focusVisible']
|
||||
};
|
||||
const composedClasses = composeClasses(slots, getButtonBaseUtilityClass, classes);
|
||||
if (focusVisible && focusVisibleClassName) {
|
||||
composedClasses.root += ` ${focusVisibleClassName}`;
|
||||
}
|
||||
return composedClasses;
|
||||
};
|
||||
export const ButtonBaseRoot = styled('button', {
|
||||
name: 'MuiButtonBase',
|
||||
slot: 'Root',
|
||||
overridesResolver: (props, styles) => styles.root
|
||||
})({
|
||||
display: 'inline-flex',
|
||||
alignItems: 'center',
|
||||
justifyContent: 'center',
|
||||
position: 'relative',
|
||||
boxSizing: 'border-box',
|
||||
WebkitTapHighlightColor: 'transparent',
|
||||
backgroundColor: 'transparent',
|
||||
// Reset default value
|
||||
// We disable the focus ring for mouse, touch and keyboard users.
|
||||
outline: 0,
|
||||
border: 0,
|
||||
margin: 0,
|
||||
// Remove the margin in Safari
|
||||
borderRadius: 0,
|
||||
padding: 0,
|
||||
// Remove the padding in Firefox
|
||||
cursor: 'pointer',
|
||||
userSelect: 'none',
|
||||
verticalAlign: 'middle',
|
||||
MozAppearance: 'none',
|
||||
// Reset
|
||||
WebkitAppearance: 'none',
|
||||
// Reset
|
||||
textDecoration: 'none',
|
||||
// So we take precedent over the style of a native <a /> element.
|
||||
color: 'inherit',
|
||||
'&::-moz-focus-inner': {
|
||||
borderStyle: 'none' // Remove Firefox dotted outline.
|
||||
},
|
||||
[`&.${buttonBaseClasses.disabled}`]: {
|
||||
pointerEvents: 'none',
|
||||
// Disable link interactions
|
||||
cursor: 'default'
|
||||
},
|
||||
'@media print': {
|
||||
colorAdjust: 'exact'
|
||||
}
|
||||
});
|
||||
|
||||
/**
|
||||
* `ButtonBase` contains as few styles as possible.
|
||||
* It aims to be a simple building block for creating a button.
|
||||
* It contains a load of style reset and some focus/ripple logic.
|
||||
*/
|
||||
const ButtonBase = /*#__PURE__*/React.forwardRef(function ButtonBase(inProps, ref) {
|
||||
const props = useDefaultProps({
|
||||
props: inProps,
|
||||
name: 'MuiButtonBase'
|
||||
});
|
||||
const {
|
||||
action,
|
||||
centerRipple = false,
|
||||
children,
|
||||
className,
|
||||
component = 'button',
|
||||
disabled = false,
|
||||
disableRipple = false,
|
||||
disableTouchRipple = false,
|
||||
focusRipple = false,
|
||||
LinkComponent = 'a',
|
||||
onBlur,
|
||||
onClick,
|
||||
onContextMenu,
|
||||
onDragLeave,
|
||||
onFocus,
|
||||
onFocusVisible,
|
||||
onKeyDown,
|
||||
onKeyUp,
|
||||
onMouseDown,
|
||||
onMouseLeave,
|
||||
onMouseUp,
|
||||
onTouchEnd,
|
||||
onTouchMove,
|
||||
onTouchStart,
|
||||
tabIndex = 0,
|
||||
TouchRippleProps,
|
||||
touchRippleRef,
|
||||
type
|
||||
} = props,
|
||||
other = _objectWithoutPropertiesLoose(props, _excluded);
|
||||
const buttonRef = React.useRef(null);
|
||||
const rippleRef = React.useRef(null);
|
||||
const handleRippleRef = useForkRef(rippleRef, touchRippleRef);
|
||||
const {
|
||||
isFocusVisibleRef,
|
||||
onFocus: handleFocusVisible,
|
||||
onBlur: handleBlurVisible,
|
||||
ref: focusVisibleRef
|
||||
} = useIsFocusVisible();
|
||||
const [focusVisible, setFocusVisible] = React.useState(false);
|
||||
if (disabled && focusVisible) {
|
||||
setFocusVisible(false);
|
||||
}
|
||||
React.useImperativeHandle(action, () => ({
|
||||
focusVisible: () => {
|
||||
setFocusVisible(true);
|
||||
buttonRef.current.focus();
|
||||
}
|
||||
}), []);
|
||||
const [mountedState, setMountedState] = React.useState(false);
|
||||
React.useEffect(() => {
|
||||
setMountedState(true);
|
||||
}, []);
|
||||
const enableTouchRipple = mountedState && !disableRipple && !disabled;
|
||||
React.useEffect(() => {
|
||||
if (focusVisible && focusRipple && !disableRipple && mountedState) {
|
||||
rippleRef.current.pulsate();
|
||||
}
|
||||
}, [disableRipple, focusRipple, focusVisible, mountedState]);
|
||||
function useRippleHandler(rippleAction, eventCallback, skipRippleAction = disableTouchRipple) {
|
||||
return useEventCallback(event => {
|
||||
if (eventCallback) {
|
||||
eventCallback(event);
|
||||
}
|
||||
const ignore = skipRippleAction;
|
||||
if (!ignore && rippleRef.current) {
|
||||
rippleRef.current[rippleAction](event);
|
||||
}
|
||||
return true;
|
||||
});
|
||||
}
|
||||
const handleMouseDown = useRippleHandler('start', onMouseDown);
|
||||
const handleContextMenu = useRippleHandler('stop', onContextMenu);
|
||||
const handleDragLeave = useRippleHandler('stop', onDragLeave);
|
||||
const handleMouseUp = useRippleHandler('stop', onMouseUp);
|
||||
const handleMouseLeave = useRippleHandler('stop', event => {
|
||||
if (focusVisible) {
|
||||
event.preventDefault();
|
||||
}
|
||||
if (onMouseLeave) {
|
||||
onMouseLeave(event);
|
||||
}
|
||||
});
|
||||
const handleTouchStart = useRippleHandler('start', onTouchStart);
|
||||
const handleTouchEnd = useRippleHandler('stop', onTouchEnd);
|
||||
const handleTouchMove = useRippleHandler('stop', onTouchMove);
|
||||
const handleBlur = useRippleHandler('stop', event => {
|
||||
handleBlurVisible(event);
|
||||
if (isFocusVisibleRef.current === false) {
|
||||
setFocusVisible(false);
|
||||
}
|
||||
if (onBlur) {
|
||||
onBlur(event);
|
||||
}
|
||||
}, false);
|
||||
const handleFocus = useEventCallback(event => {
|
||||
// Fix for https://github.com/facebook/react/issues/7769
|
||||
if (!buttonRef.current) {
|
||||
buttonRef.current = event.currentTarget;
|
||||
}
|
||||
handleFocusVisible(event);
|
||||
if (isFocusVisibleRef.current === true) {
|
||||
setFocusVisible(true);
|
||||
if (onFocusVisible) {
|
||||
onFocusVisible(event);
|
||||
}
|
||||
}
|
||||
if (onFocus) {
|
||||
onFocus(event);
|
||||
}
|
||||
});
|
||||
const isNonNativeButton = () => {
|
||||
const button = buttonRef.current;
|
||||
return component && component !== 'button' && !(button.tagName === 'A' && button.href);
|
||||
};
|
||||
|
||||
/**
|
||||
* IE11 shim for https://developer.mozilla.org/en-US/docs/Web/API/KeyboardEvent/repeat
|
||||
*/
|
||||
const keydownRef = React.useRef(false);
|
||||
const handleKeyDown = useEventCallback(event => {
|
||||
// Check if key is already down to avoid repeats being counted as multiple activations
|
||||
if (focusRipple && !keydownRef.current && focusVisible && rippleRef.current && event.key === ' ') {
|
||||
keydownRef.current = true;
|
||||
rippleRef.current.stop(event, () => {
|
||||
rippleRef.current.start(event);
|
||||
});
|
||||
}
|
||||
if (event.target === event.currentTarget && isNonNativeButton() && event.key === ' ') {
|
||||
event.preventDefault();
|
||||
}
|
||||
if (onKeyDown) {
|
||||
onKeyDown(event);
|
||||
}
|
||||
|
||||
// Keyboard accessibility for non interactive elements
|
||||
if (event.target === event.currentTarget && isNonNativeButton() && event.key === 'Enter' && !disabled) {
|
||||
event.preventDefault();
|
||||
if (onClick) {
|
||||
onClick(event);
|
||||
}
|
||||
}
|
||||
});
|
||||
const handleKeyUp = useEventCallback(event => {
|
||||
// calling preventDefault in keyUp on a <button> will not dispatch a click event if Space is pressed
|
||||
// https://codesandbox.io/p/sandbox/button-keyup-preventdefault-dn7f0
|
||||
if (focusRipple && event.key === ' ' && rippleRef.current && focusVisible && !event.defaultPrevented) {
|
||||
keydownRef.current = false;
|
||||
rippleRef.current.stop(event, () => {
|
||||
rippleRef.current.pulsate(event);
|
||||
});
|
||||
}
|
||||
if (onKeyUp) {
|
||||
onKeyUp(event);
|
||||
}
|
||||
|
||||
// Keyboard accessibility for non interactive elements
|
||||
if (onClick && event.target === event.currentTarget && isNonNativeButton() && event.key === ' ' && !event.defaultPrevented) {
|
||||
onClick(event);
|
||||
}
|
||||
});
|
||||
let ComponentProp = component;
|
||||
if (ComponentProp === 'button' && (other.href || other.to)) {
|
||||
ComponentProp = LinkComponent;
|
||||
}
|
||||
const buttonProps = {};
|
||||
if (ComponentProp === 'button') {
|
||||
buttonProps.type = type === undefined ? 'button' : type;
|
||||
buttonProps.disabled = disabled;
|
||||
} else {
|
||||
if (!other.href && !other.to) {
|
||||
buttonProps.role = 'button';
|
||||
}
|
||||
if (disabled) {
|
||||
buttonProps['aria-disabled'] = disabled;
|
||||
}
|
||||
}
|
||||
const handleRef = useForkRef(ref, focusVisibleRef, buttonRef);
|
||||
if (process.env.NODE_ENV !== 'production') {
|
||||
// eslint-disable-next-line react-hooks/rules-of-hooks
|
||||
React.useEffect(() => {
|
||||
if (enableTouchRipple && !rippleRef.current) {
|
||||
console.error(['MUI: The `component` prop provided to ButtonBase is invalid.', 'Please make sure the children prop is rendered in this custom component.'].join('\n'));
|
||||
}
|
||||
}, [enableTouchRipple]);
|
||||
}
|
||||
const ownerState = _extends({}, props, {
|
||||
centerRipple,
|
||||
component,
|
||||
disabled,
|
||||
disableRipple,
|
||||
disableTouchRipple,
|
||||
focusRipple,
|
||||
tabIndex,
|
||||
focusVisible
|
||||
});
|
||||
const classes = useUtilityClasses(ownerState);
|
||||
return /*#__PURE__*/_jsxs(ButtonBaseRoot, _extends({
|
||||
as: ComponentProp,
|
||||
className: clsx(classes.root, className),
|
||||
ownerState: ownerState,
|
||||
onBlur: handleBlur,
|
||||
onClick: onClick,
|
||||
onContextMenu: handleContextMenu,
|
||||
onFocus: handleFocus,
|
||||
onKeyDown: handleKeyDown,
|
||||
onKeyUp: handleKeyUp,
|
||||
onMouseDown: handleMouseDown,
|
||||
onMouseLeave: handleMouseLeave,
|
||||
onMouseUp: handleMouseUp,
|
||||
onDragLeave: handleDragLeave,
|
||||
onTouchEnd: handleTouchEnd,
|
||||
onTouchMove: handleTouchMove,
|
||||
onTouchStart: handleTouchStart,
|
||||
ref: handleRef,
|
||||
tabIndex: disabled ? -1 : tabIndex,
|
||||
type: type
|
||||
}, buttonProps, other, {
|
||||
children: [children, enableTouchRipple ?
|
||||
/*#__PURE__*/
|
||||
/* TouchRipple is only needed client-side, x2 boost on the server. */
|
||||
_jsx(TouchRipple, _extends({
|
||||
ref: handleRippleRef,
|
||||
center: centerRipple
|
||||
}, TouchRippleProps)) : null]
|
||||
}));
|
||||
});
|
||||
process.env.NODE_ENV !== "production" ? ButtonBase.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`. │
|
||||
// └─────────────────────────────────────────────────────────────────────┘
|
||||
/**
|
||||
* A ref for imperative actions.
|
||||
* It currently only supports `focusVisible()` action.
|
||||
*/
|
||||
action: refType,
|
||||
/**
|
||||
* If `true`, the ripples are centered.
|
||||
* They won't start at the cursor interaction position.
|
||||
* @default false
|
||||
*/
|
||||
centerRipple: PropTypes.bool,
|
||||
/**
|
||||
* 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: elementTypeAcceptingRef,
|
||||
/**
|
||||
* If `true`, the component is disabled.
|
||||
* @default false
|
||||
*/
|
||||
disabled: PropTypes.bool,
|
||||
/**
|
||||
* If `true`, the ripple effect is disabled.
|
||||
*
|
||||
* ⚠️ Without a ripple there is no styling for :focus-visible by default. Be sure
|
||||
* to highlight the element by applying separate styles with the `.Mui-focusVisible` class.
|
||||
* @default false
|
||||
*/
|
||||
disableRipple: PropTypes.bool,
|
||||
/**
|
||||
* If `true`, the touch ripple effect is disabled.
|
||||
* @default false
|
||||
*/
|
||||
disableTouchRipple: PropTypes.bool,
|
||||
/**
|
||||
* If `true`, the base button will have a keyboard focus ripple.
|
||||
* @default false
|
||||
*/
|
||||
focusRipple: PropTypes.bool,
|
||||
/**
|
||||
* This prop can help identify which element has keyboard focus.
|
||||
* The class name will be applied when the element gains the focus through keyboard interaction.
|
||||
* It's a polyfill for the [CSS :focus-visible selector](https://drafts.csswg.org/selectors-4/#the-focus-visible-pseudo).
|
||||
* The rationale for using this feature [is explained here](https://github.com/WICG/focus-visible/blob/HEAD/explainer.md).
|
||||
* A [polyfill can be used](https://github.com/WICG/focus-visible) to apply a `focus-visible` class to other components
|
||||
* if needed.
|
||||
*/
|
||||
focusVisibleClassName: PropTypes.string,
|
||||
/**
|
||||
* @ignore
|
||||
*/
|
||||
href: PropTypes /* @typescript-to-proptypes-ignore */.any,
|
||||
/**
|
||||
* The component used to render a link when the `href` prop is provided.
|
||||
* @default 'a'
|
||||
*/
|
||||
LinkComponent: PropTypes.elementType,
|
||||
/**
|
||||
* @ignore
|
||||
*/
|
||||
onBlur: PropTypes.func,
|
||||
/**
|
||||
* @ignore
|
||||
*/
|
||||
onClick: PropTypes.func,
|
||||
/**
|
||||
* @ignore
|
||||
*/
|
||||
onContextMenu: PropTypes.func,
|
||||
/**
|
||||
* @ignore
|
||||
*/
|
||||
onDragLeave: PropTypes.func,
|
||||
/**
|
||||
* @ignore
|
||||
*/
|
||||
onFocus: PropTypes.func,
|
||||
/**
|
||||
* Callback fired when the component is focused with a keyboard.
|
||||
* We trigger a `onFocus` callback too.
|
||||
*/
|
||||
onFocusVisible: PropTypes.func,
|
||||
/**
|
||||
* @ignore
|
||||
*/
|
||||
onKeyDown: PropTypes.func,
|
||||
/**
|
||||
* @ignore
|
||||
*/
|
||||
onKeyUp: PropTypes.func,
|
||||
/**
|
||||
* @ignore
|
||||
*/
|
||||
onMouseDown: PropTypes.func,
|
||||
/**
|
||||
* @ignore
|
||||
*/
|
||||
onMouseLeave: PropTypes.func,
|
||||
/**
|
||||
* @ignore
|
||||
*/
|
||||
onMouseUp: PropTypes.func,
|
||||
/**
|
||||
* @ignore
|
||||
*/
|
||||
onTouchEnd: PropTypes.func,
|
||||
/**
|
||||
* @ignore
|
||||
*/
|
||||
onTouchMove: PropTypes.func,
|
||||
/**
|
||||
* @ignore
|
||||
*/
|
||||
onTouchStart: PropTypes.func,
|
||||
/**
|
||||
* 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]),
|
||||
/**
|
||||
* @default 0
|
||||
*/
|
||||
tabIndex: PropTypes.number,
|
||||
/**
|
||||
* Props applied to the `TouchRipple` element.
|
||||
*/
|
||||
TouchRippleProps: PropTypes.object,
|
||||
/**
|
||||
* A ref that points to the `TouchRipple` element.
|
||||
*/
|
||||
touchRippleRef: PropTypes.oneOfType([PropTypes.func, PropTypes.shape({
|
||||
current: PropTypes.shape({
|
||||
pulsate: PropTypes.func.isRequired,
|
||||
start: PropTypes.func.isRequired,
|
||||
stop: PropTypes.func.isRequired
|
||||
})
|
||||
})]),
|
||||
/**
|
||||
* @ignore
|
||||
*/
|
||||
type: PropTypes.oneOfType([PropTypes.oneOf(['button', 'reset', 'submit']), PropTypes.string])
|
||||
} : void 0;
|
||||
export default ButtonBase;
|
||||
88
backend/frontend/node_modules/@mui/material/modern/ButtonBase/Ripple.js
generated
vendored
Normal file
88
backend/frontend/node_modules/@mui/material/modern/ButtonBase/Ripple.js
generated
vendored
Normal file
@@ -0,0 +1,88 @@
|
||||
'use client';
|
||||
|
||||
import * as React from 'react';
|
||||
import PropTypes from 'prop-types';
|
||||
import clsx from 'clsx';
|
||||
|
||||
/**
|
||||
* @ignore - internal component.
|
||||
*/
|
||||
import { jsx as _jsx } from "react/jsx-runtime";
|
||||
function Ripple(props) {
|
||||
const {
|
||||
className,
|
||||
classes,
|
||||
pulsate = false,
|
||||
rippleX,
|
||||
rippleY,
|
||||
rippleSize,
|
||||
in: inProp,
|
||||
onExited,
|
||||
timeout
|
||||
} = props;
|
||||
const [leaving, setLeaving] = React.useState(false);
|
||||
const rippleClassName = clsx(className, classes.ripple, classes.rippleVisible, pulsate && classes.ripplePulsate);
|
||||
const rippleStyles = {
|
||||
width: rippleSize,
|
||||
height: rippleSize,
|
||||
top: -(rippleSize / 2) + rippleY,
|
||||
left: -(rippleSize / 2) + rippleX
|
||||
};
|
||||
const childClassName = clsx(classes.child, leaving && classes.childLeaving, pulsate && classes.childPulsate);
|
||||
if (!inProp && !leaving) {
|
||||
setLeaving(true);
|
||||
}
|
||||
React.useEffect(() => {
|
||||
if (!inProp && onExited != null) {
|
||||
// react-transition-group#onExited
|
||||
const timeoutId = setTimeout(onExited, timeout);
|
||||
return () => {
|
||||
clearTimeout(timeoutId);
|
||||
};
|
||||
}
|
||||
return undefined;
|
||||
}, [onExited, inProp, timeout]);
|
||||
return /*#__PURE__*/_jsx("span", {
|
||||
className: rippleClassName,
|
||||
style: rippleStyles,
|
||||
children: /*#__PURE__*/_jsx("span", {
|
||||
className: childClassName
|
||||
})
|
||||
});
|
||||
}
|
||||
process.env.NODE_ENV !== "production" ? Ripple.propTypes = {
|
||||
/**
|
||||
* Override or extend the styles applied to the component.
|
||||
*/
|
||||
classes: PropTypes.object.isRequired,
|
||||
className: PropTypes.string,
|
||||
/**
|
||||
* @ignore - injected from TransitionGroup
|
||||
*/
|
||||
in: PropTypes.bool,
|
||||
/**
|
||||
* @ignore - injected from TransitionGroup
|
||||
*/
|
||||
onExited: PropTypes.func,
|
||||
/**
|
||||
* If `true`, the ripple pulsates, typically indicating the keyboard focus state of an element.
|
||||
*/
|
||||
pulsate: PropTypes.bool,
|
||||
/**
|
||||
* Diameter of the ripple.
|
||||
*/
|
||||
rippleSize: PropTypes.number,
|
||||
/**
|
||||
* Horizontal position of the ripple center.
|
||||
*/
|
||||
rippleX: PropTypes.number,
|
||||
/**
|
||||
* Vertical position of the ripple center.
|
||||
*/
|
||||
rippleY: PropTypes.number,
|
||||
/**
|
||||
* exit delay
|
||||
*/
|
||||
timeout: PropTypes.number.isRequired
|
||||
} : void 0;
|
||||
export default Ripple;
|
||||
328
backend/frontend/node_modules/@mui/material/modern/ButtonBase/TouchRipple.js
generated
vendored
Normal file
328
backend/frontend/node_modules/@mui/material/modern/ButtonBase/TouchRipple.js
generated
vendored
Normal file
@@ -0,0 +1,328 @@
|
||||
'use client';
|
||||
|
||||
import _extends from "@babel/runtime/helpers/esm/extends";
|
||||
import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/esm/objectWithoutPropertiesLoose";
|
||||
const _excluded = ["center", "classes", "className"];
|
||||
import * as React from 'react';
|
||||
import PropTypes from 'prop-types';
|
||||
import { TransitionGroup } from 'react-transition-group';
|
||||
import clsx from 'clsx';
|
||||
import { keyframes } from '@mui/system';
|
||||
import useTimeout from '@mui/utils/useTimeout';
|
||||
import styled from '../styles/styled';
|
||||
import { useDefaultProps } from '../DefaultPropsProvider';
|
||||
import Ripple from './Ripple';
|
||||
import touchRippleClasses from './touchRippleClasses';
|
||||
import { jsx as _jsx } from "react/jsx-runtime";
|
||||
const DURATION = 550;
|
||||
export const DELAY_RIPPLE = 80;
|
||||
const enterKeyframe = keyframes`
|
||||
0% {
|
||||
transform: scale(0);
|
||||
opacity: 0.1;
|
||||
}
|
||||
|
||||
100% {
|
||||
transform: scale(1);
|
||||
opacity: 0.3;
|
||||
}
|
||||
`;
|
||||
const exitKeyframe = keyframes`
|
||||
0% {
|
||||
opacity: 1;
|
||||
}
|
||||
|
||||
100% {
|
||||
opacity: 0;
|
||||
}
|
||||
`;
|
||||
const pulsateKeyframe = keyframes`
|
||||
0% {
|
||||
transform: scale(1);
|
||||
}
|
||||
|
||||
50% {
|
||||
transform: scale(0.92);
|
||||
}
|
||||
|
||||
100% {
|
||||
transform: scale(1);
|
||||
}
|
||||
`;
|
||||
export const TouchRippleRoot = styled('span', {
|
||||
name: 'MuiTouchRipple',
|
||||
slot: 'Root'
|
||||
})({
|
||||
overflow: 'hidden',
|
||||
pointerEvents: 'none',
|
||||
position: 'absolute',
|
||||
zIndex: 0,
|
||||
top: 0,
|
||||
right: 0,
|
||||
bottom: 0,
|
||||
left: 0,
|
||||
borderRadius: 'inherit'
|
||||
});
|
||||
|
||||
// This `styled()` function invokes keyframes. `styled-components` only supports keyframes
|
||||
// in string templates. Do not convert these styles in JS object as it will break.
|
||||
export const TouchRippleRipple = styled(Ripple, {
|
||||
name: 'MuiTouchRipple',
|
||||
slot: 'Ripple'
|
||||
})`
|
||||
opacity: 0;
|
||||
position: absolute;
|
||||
|
||||
&.${touchRippleClasses.rippleVisible} {
|
||||
opacity: 0.3;
|
||||
transform: scale(1);
|
||||
animation-name: ${enterKeyframe};
|
||||
animation-duration: ${DURATION}ms;
|
||||
animation-timing-function: ${({
|
||||
theme
|
||||
}) => theme.transitions.easing.easeInOut};
|
||||
}
|
||||
|
||||
&.${touchRippleClasses.ripplePulsate} {
|
||||
animation-duration: ${({
|
||||
theme
|
||||
}) => theme.transitions.duration.shorter}ms;
|
||||
}
|
||||
|
||||
& .${touchRippleClasses.child} {
|
||||
opacity: 1;
|
||||
display: block;
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
border-radius: 50%;
|
||||
background-color: currentColor;
|
||||
}
|
||||
|
||||
& .${touchRippleClasses.childLeaving} {
|
||||
opacity: 0;
|
||||
animation-name: ${exitKeyframe};
|
||||
animation-duration: ${DURATION}ms;
|
||||
animation-timing-function: ${({
|
||||
theme
|
||||
}) => theme.transitions.easing.easeInOut};
|
||||
}
|
||||
|
||||
& .${touchRippleClasses.childPulsate} {
|
||||
position: absolute;
|
||||
/* @noflip */
|
||||
left: 0px;
|
||||
top: 0;
|
||||
animation-name: ${pulsateKeyframe};
|
||||
animation-duration: 2500ms;
|
||||
animation-timing-function: ${({
|
||||
theme
|
||||
}) => theme.transitions.easing.easeInOut};
|
||||
animation-iteration-count: infinite;
|
||||
animation-delay: 200ms;
|
||||
}
|
||||
`;
|
||||
|
||||
/**
|
||||
* @ignore - internal component.
|
||||
*
|
||||
* TODO v5: Make private
|
||||
*/
|
||||
const TouchRipple = /*#__PURE__*/React.forwardRef(function TouchRipple(inProps, ref) {
|
||||
const props = useDefaultProps({
|
||||
props: inProps,
|
||||
name: 'MuiTouchRipple'
|
||||
});
|
||||
const {
|
||||
center: centerProp = false,
|
||||
classes = {},
|
||||
className
|
||||
} = props,
|
||||
other = _objectWithoutPropertiesLoose(props, _excluded);
|
||||
const [ripples, setRipples] = React.useState([]);
|
||||
const nextKey = React.useRef(0);
|
||||
const rippleCallback = React.useRef(null);
|
||||
React.useEffect(() => {
|
||||
if (rippleCallback.current) {
|
||||
rippleCallback.current();
|
||||
rippleCallback.current = null;
|
||||
}
|
||||
}, [ripples]);
|
||||
|
||||
// Used to filter out mouse emulated events on mobile.
|
||||
const ignoringMouseDown = React.useRef(false);
|
||||
// We use a timer in order to only show the ripples for touch "click" like events.
|
||||
// We don't want to display the ripple for touch scroll events.
|
||||
const startTimer = useTimeout();
|
||||
|
||||
// This is the hook called once the previous timeout is ready.
|
||||
const startTimerCommit = React.useRef(null);
|
||||
const container = React.useRef(null);
|
||||
const startCommit = React.useCallback(params => {
|
||||
const {
|
||||
pulsate,
|
||||
rippleX,
|
||||
rippleY,
|
||||
rippleSize,
|
||||
cb
|
||||
} = params;
|
||||
setRipples(oldRipples => [...oldRipples, /*#__PURE__*/_jsx(TouchRippleRipple, {
|
||||
classes: {
|
||||
ripple: clsx(classes.ripple, touchRippleClasses.ripple),
|
||||
rippleVisible: clsx(classes.rippleVisible, touchRippleClasses.rippleVisible),
|
||||
ripplePulsate: clsx(classes.ripplePulsate, touchRippleClasses.ripplePulsate),
|
||||
child: clsx(classes.child, touchRippleClasses.child),
|
||||
childLeaving: clsx(classes.childLeaving, touchRippleClasses.childLeaving),
|
||||
childPulsate: clsx(classes.childPulsate, touchRippleClasses.childPulsate)
|
||||
},
|
||||
timeout: DURATION,
|
||||
pulsate: pulsate,
|
||||
rippleX: rippleX,
|
||||
rippleY: rippleY,
|
||||
rippleSize: rippleSize
|
||||
}, nextKey.current)]);
|
||||
nextKey.current += 1;
|
||||
rippleCallback.current = cb;
|
||||
}, [classes]);
|
||||
const start = React.useCallback((event = {}, options = {}, cb = () => {}) => {
|
||||
const {
|
||||
pulsate = false,
|
||||
center = centerProp || options.pulsate,
|
||||
fakeElement = false // For test purposes
|
||||
} = options;
|
||||
if (event?.type === 'mousedown' && ignoringMouseDown.current) {
|
||||
ignoringMouseDown.current = false;
|
||||
return;
|
||||
}
|
||||
if (event?.type === 'touchstart') {
|
||||
ignoringMouseDown.current = true;
|
||||
}
|
||||
const element = fakeElement ? null : container.current;
|
||||
const rect = element ? element.getBoundingClientRect() : {
|
||||
width: 0,
|
||||
height: 0,
|
||||
left: 0,
|
||||
top: 0
|
||||
};
|
||||
|
||||
// Get the size of the ripple
|
||||
let rippleX;
|
||||
let rippleY;
|
||||
let rippleSize;
|
||||
if (center || event === undefined || event.clientX === 0 && event.clientY === 0 || !event.clientX && !event.touches) {
|
||||
rippleX = Math.round(rect.width / 2);
|
||||
rippleY = Math.round(rect.height / 2);
|
||||
} else {
|
||||
const {
|
||||
clientX,
|
||||
clientY
|
||||
} = event.touches && event.touches.length > 0 ? event.touches[0] : event;
|
||||
rippleX = Math.round(clientX - rect.left);
|
||||
rippleY = Math.round(clientY - rect.top);
|
||||
}
|
||||
if (center) {
|
||||
rippleSize = Math.sqrt((2 * rect.width ** 2 + rect.height ** 2) / 3);
|
||||
|
||||
// For some reason the animation is broken on Mobile Chrome if the size is even.
|
||||
if (rippleSize % 2 === 0) {
|
||||
rippleSize += 1;
|
||||
}
|
||||
} else {
|
||||
const sizeX = Math.max(Math.abs((element ? element.clientWidth : 0) - rippleX), rippleX) * 2 + 2;
|
||||
const sizeY = Math.max(Math.abs((element ? element.clientHeight : 0) - rippleY), rippleY) * 2 + 2;
|
||||
rippleSize = Math.sqrt(sizeX ** 2 + sizeY ** 2);
|
||||
}
|
||||
|
||||
// Touche devices
|
||||
if (event?.touches) {
|
||||
// check that this isn't another touchstart due to multitouch
|
||||
// otherwise we will only clear a single timer when unmounting while two
|
||||
// are running
|
||||
if (startTimerCommit.current === null) {
|
||||
// Prepare the ripple effect.
|
||||
startTimerCommit.current = () => {
|
||||
startCommit({
|
||||
pulsate,
|
||||
rippleX,
|
||||
rippleY,
|
||||
rippleSize,
|
||||
cb
|
||||
});
|
||||
};
|
||||
// Delay the execution of the ripple effect.
|
||||
// We have to make a tradeoff with this delay value.
|
||||
startTimer.start(DELAY_RIPPLE, () => {
|
||||
if (startTimerCommit.current) {
|
||||
startTimerCommit.current();
|
||||
startTimerCommit.current = null;
|
||||
}
|
||||
});
|
||||
}
|
||||
} else {
|
||||
startCommit({
|
||||
pulsate,
|
||||
rippleX,
|
||||
rippleY,
|
||||
rippleSize,
|
||||
cb
|
||||
});
|
||||
}
|
||||
}, [centerProp, startCommit, startTimer]);
|
||||
const pulsate = React.useCallback(() => {
|
||||
start({}, {
|
||||
pulsate: true
|
||||
});
|
||||
}, [start]);
|
||||
const stop = React.useCallback((event, cb) => {
|
||||
startTimer.clear();
|
||||
|
||||
// The touch interaction occurs too quickly.
|
||||
// We still want to show ripple effect.
|
||||
if (event?.type === 'touchend' && startTimerCommit.current) {
|
||||
startTimerCommit.current();
|
||||
startTimerCommit.current = null;
|
||||
startTimer.start(0, () => {
|
||||
stop(event, cb);
|
||||
});
|
||||
return;
|
||||
}
|
||||
startTimerCommit.current = null;
|
||||
setRipples(oldRipples => {
|
||||
if (oldRipples.length > 0) {
|
||||
return oldRipples.slice(1);
|
||||
}
|
||||
return oldRipples;
|
||||
});
|
||||
rippleCallback.current = cb;
|
||||
}, [startTimer]);
|
||||
React.useImperativeHandle(ref, () => ({
|
||||
pulsate,
|
||||
start,
|
||||
stop
|
||||
}), [pulsate, start, stop]);
|
||||
return /*#__PURE__*/_jsx(TouchRippleRoot, _extends({
|
||||
className: clsx(touchRippleClasses.root, classes.root, className),
|
||||
ref: container
|
||||
}, other, {
|
||||
children: /*#__PURE__*/_jsx(TransitionGroup, {
|
||||
component: null,
|
||||
exit: true,
|
||||
children: ripples
|
||||
})
|
||||
}));
|
||||
});
|
||||
process.env.NODE_ENV !== "production" ? TouchRipple.propTypes = {
|
||||
/**
|
||||
* If `true`, the ripple starts at the center of the component
|
||||
* rather than at the point of interaction.
|
||||
*/
|
||||
center: PropTypes.bool,
|
||||
/**
|
||||
* Override or extend the styles applied to the component.
|
||||
*/
|
||||
classes: PropTypes.object,
|
||||
/**
|
||||
* @ignore
|
||||
*/
|
||||
className: PropTypes.string
|
||||
} : void 0;
|
||||
export default TouchRipple;
|
||||
7
backend/frontend/node_modules/@mui/material/modern/ButtonBase/buttonBaseClasses.js
generated
vendored
Normal file
7
backend/frontend/node_modules/@mui/material/modern/ButtonBase/buttonBaseClasses.js
generated
vendored
Normal file
@@ -0,0 +1,7 @@
|
||||
import generateUtilityClasses from '@mui/utils/generateUtilityClasses';
|
||||
import generateUtilityClass from '@mui/utils/generateUtilityClass';
|
||||
export function getButtonBaseUtilityClass(slot) {
|
||||
return generateUtilityClass('MuiButtonBase', slot);
|
||||
}
|
||||
const buttonBaseClasses = generateUtilityClasses('MuiButtonBase', ['root', 'disabled', 'focusVisible']);
|
||||
export default buttonBaseClasses;
|
||||
7
backend/frontend/node_modules/@mui/material/modern/ButtonBase/index.js
generated
vendored
Normal file
7
backend/frontend/node_modules/@mui/material/modern/ButtonBase/index.js
generated
vendored
Normal file
@@ -0,0 +1,7 @@
|
||||
'use client';
|
||||
|
||||
export { default } from './ButtonBase';
|
||||
export { default as buttonBaseClasses } from './buttonBaseClasses';
|
||||
export * from './buttonBaseClasses';
|
||||
export { default as touchRippleClasses } from './touchRippleClasses';
|
||||
export * from './touchRippleClasses';
|
||||
7
backend/frontend/node_modules/@mui/material/modern/ButtonBase/touchRippleClasses.js
generated
vendored
Normal file
7
backend/frontend/node_modules/@mui/material/modern/ButtonBase/touchRippleClasses.js
generated
vendored
Normal file
@@ -0,0 +1,7 @@
|
||||
import generateUtilityClasses from '@mui/utils/generateUtilityClasses';
|
||||
import generateUtilityClass from '@mui/utils/generateUtilityClass';
|
||||
export function getTouchRippleUtilityClass(slot) {
|
||||
return generateUtilityClass('MuiTouchRipple', slot);
|
||||
}
|
||||
const touchRippleClasses = generateUtilityClasses('MuiTouchRipple', ['root', 'ripple', 'rippleVisible', 'ripplePulsate', 'child', 'childLeaving', 'childPulsate']);
|
||||
export default touchRippleClasses;
|
||||
293
backend/frontend/node_modules/@mui/material/modern/ButtonGroup/ButtonGroup.js
generated
vendored
Normal file
293
backend/frontend/node_modules/@mui/material/modern/ButtonGroup/ButtonGroup.js
generated
vendored
Normal file
@@ -0,0 +1,293 @@
|
||||
'use client';
|
||||
|
||||
import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/esm/objectWithoutPropertiesLoose";
|
||||
import _extends from "@babel/runtime/helpers/esm/extends";
|
||||
const _excluded = ["children", "className", "color", "component", "disabled", "disableElevation", "disableFocusRipple", "disableRipple", "fullWidth", "orientation", "size", "variant"];
|
||||
import * as React from 'react';
|
||||
import PropTypes from 'prop-types';
|
||||
import clsx from 'clsx';
|
||||
import composeClasses from '@mui/utils/composeClasses';
|
||||
import { alpha } from '@mui/system/colorManipulator';
|
||||
import getValidReactChildren from '@mui/utils/getValidReactChildren';
|
||||
import capitalize from '../utils/capitalize';
|
||||
import styled from '../styles/styled';
|
||||
import { useDefaultProps } from '../DefaultPropsProvider';
|
||||
import buttonGroupClasses, { getButtonGroupUtilityClass } from './buttonGroupClasses';
|
||||
import ButtonGroupContext from './ButtonGroupContext';
|
||||
import ButtonGroupButtonContext from './ButtonGroupButtonContext';
|
||||
import { jsx as _jsx } from "react/jsx-runtime";
|
||||
const overridesResolver = (props, styles) => {
|
||||
const {
|
||||
ownerState
|
||||
} = props;
|
||||
return [{
|
||||
[`& .${buttonGroupClasses.grouped}`]: styles.grouped
|
||||
}, {
|
||||
[`& .${buttonGroupClasses.grouped}`]: styles[`grouped${capitalize(ownerState.orientation)}`]
|
||||
}, {
|
||||
[`& .${buttonGroupClasses.grouped}`]: styles[`grouped${capitalize(ownerState.variant)}`]
|
||||
}, {
|
||||
[`& .${buttonGroupClasses.grouped}`]: styles[`grouped${capitalize(ownerState.variant)}${capitalize(ownerState.orientation)}`]
|
||||
}, {
|
||||
[`& .${buttonGroupClasses.grouped}`]: styles[`grouped${capitalize(ownerState.variant)}${capitalize(ownerState.color)}`]
|
||||
}, {
|
||||
[`& .${buttonGroupClasses.firstButton}`]: styles.firstButton
|
||||
}, {
|
||||
[`& .${buttonGroupClasses.lastButton}`]: styles.lastButton
|
||||
}, {
|
||||
[`& .${buttonGroupClasses.middleButton}`]: styles.middleButton
|
||||
}, styles.root, styles[ownerState.variant], ownerState.disableElevation === true && styles.disableElevation, ownerState.fullWidth && styles.fullWidth, ownerState.orientation === 'vertical' && styles.vertical];
|
||||
};
|
||||
const useUtilityClasses = ownerState => {
|
||||
const {
|
||||
classes,
|
||||
color,
|
||||
disabled,
|
||||
disableElevation,
|
||||
fullWidth,
|
||||
orientation,
|
||||
variant
|
||||
} = ownerState;
|
||||
const slots = {
|
||||
root: ['root', variant, orientation === 'vertical' && 'vertical', fullWidth && 'fullWidth', disableElevation && 'disableElevation'],
|
||||
grouped: ['grouped', `grouped${capitalize(orientation)}`, `grouped${capitalize(variant)}`, `grouped${capitalize(variant)}${capitalize(orientation)}`, `grouped${capitalize(variant)}${capitalize(color)}`, disabled && 'disabled'],
|
||||
firstButton: ['firstButton'],
|
||||
lastButton: ['lastButton'],
|
||||
middleButton: ['middleButton']
|
||||
};
|
||||
return composeClasses(slots, getButtonGroupUtilityClass, classes);
|
||||
};
|
||||
const ButtonGroupRoot = styled('div', {
|
||||
name: 'MuiButtonGroup',
|
||||
slot: 'Root',
|
||||
overridesResolver
|
||||
})(({
|
||||
theme,
|
||||
ownerState
|
||||
}) => _extends({
|
||||
display: 'inline-flex',
|
||||
borderRadius: (theme.vars || theme).shape.borderRadius
|
||||
}, ownerState.variant === 'contained' && {
|
||||
boxShadow: (theme.vars || theme).shadows[2]
|
||||
}, ownerState.disableElevation && {
|
||||
boxShadow: 'none'
|
||||
}, ownerState.fullWidth && {
|
||||
width: '100%'
|
||||
}, ownerState.orientation === 'vertical' && {
|
||||
flexDirection: 'column'
|
||||
}, {
|
||||
[`& .${buttonGroupClasses.grouped}`]: _extends({
|
||||
minWidth: 40,
|
||||
'&:hover': _extends({}, ownerState.variant === 'contained' && {
|
||||
boxShadow: 'none'
|
||||
})
|
||||
}, ownerState.variant === 'contained' && {
|
||||
boxShadow: 'none'
|
||||
}),
|
||||
[`& .${buttonGroupClasses.firstButton},& .${buttonGroupClasses.middleButton}`]: _extends({}, ownerState.orientation === 'horizontal' && {
|
||||
borderTopRightRadius: 0,
|
||||
borderBottomRightRadius: 0
|
||||
}, ownerState.orientation === 'vertical' && {
|
||||
borderBottomRightRadius: 0,
|
||||
borderBottomLeftRadius: 0
|
||||
}, ownerState.variant === 'text' && ownerState.orientation === 'horizontal' && {
|
||||
borderRight: theme.vars ? `1px solid rgba(${theme.vars.palette.common.onBackgroundChannel} / 0.23)` : `1px solid ${theme.palette.mode === 'light' ? 'rgba(0, 0, 0, 0.23)' : 'rgba(255, 255, 255, 0.23)'}`,
|
||||
[`&.${buttonGroupClasses.disabled}`]: {
|
||||
borderRight: `1px solid ${(theme.vars || theme).palette.action.disabled}`
|
||||
}
|
||||
}, ownerState.variant === 'text' && ownerState.orientation === 'vertical' && {
|
||||
borderBottom: theme.vars ? `1px solid rgba(${theme.vars.palette.common.onBackgroundChannel} / 0.23)` : `1px solid ${theme.palette.mode === 'light' ? 'rgba(0, 0, 0, 0.23)' : 'rgba(255, 255, 255, 0.23)'}`,
|
||||
[`&.${buttonGroupClasses.disabled}`]: {
|
||||
borderBottom: `1px solid ${(theme.vars || theme).palette.action.disabled}`
|
||||
}
|
||||
}, ownerState.variant === 'text' && ownerState.color !== 'inherit' && {
|
||||
borderColor: theme.vars ? `rgba(${theme.vars.palette[ownerState.color].mainChannel} / 0.5)` : alpha(theme.palette[ownerState.color].main, 0.5)
|
||||
}, ownerState.variant === 'outlined' && ownerState.orientation === 'horizontal' && {
|
||||
borderRightColor: 'transparent'
|
||||
}, ownerState.variant === 'outlined' && ownerState.orientation === 'vertical' && {
|
||||
borderBottomColor: 'transparent'
|
||||
}, ownerState.variant === 'contained' && ownerState.orientation === 'horizontal' && {
|
||||
borderRight: `1px solid ${(theme.vars || theme).palette.grey[400]}`,
|
||||
[`&.${buttonGroupClasses.disabled}`]: {
|
||||
borderRight: `1px solid ${(theme.vars || theme).palette.action.disabled}`
|
||||
}
|
||||
}, ownerState.variant === 'contained' && ownerState.orientation === 'vertical' && {
|
||||
borderBottom: `1px solid ${(theme.vars || theme).palette.grey[400]}`,
|
||||
[`&.${buttonGroupClasses.disabled}`]: {
|
||||
borderBottom: `1px solid ${(theme.vars || theme).palette.action.disabled}`
|
||||
}
|
||||
}, ownerState.variant === 'contained' && ownerState.color !== 'inherit' && {
|
||||
borderColor: (theme.vars || theme).palette[ownerState.color].dark
|
||||
}, {
|
||||
'&:hover': _extends({}, ownerState.variant === 'outlined' && ownerState.orientation === 'horizontal' && {
|
||||
borderRightColor: 'currentColor'
|
||||
}, ownerState.variant === 'outlined' && ownerState.orientation === 'vertical' && {
|
||||
borderBottomColor: 'currentColor'
|
||||
})
|
||||
}),
|
||||
[`& .${buttonGroupClasses.lastButton},& .${buttonGroupClasses.middleButton}`]: _extends({}, ownerState.orientation === 'horizontal' && {
|
||||
borderTopLeftRadius: 0,
|
||||
borderBottomLeftRadius: 0
|
||||
}, ownerState.orientation === 'vertical' && {
|
||||
borderTopRightRadius: 0,
|
||||
borderTopLeftRadius: 0
|
||||
}, ownerState.variant === 'outlined' && ownerState.orientation === 'horizontal' && {
|
||||
marginLeft: -1
|
||||
}, ownerState.variant === 'outlined' && ownerState.orientation === 'vertical' && {
|
||||
marginTop: -1
|
||||
})
|
||||
}));
|
||||
const ButtonGroup = /*#__PURE__*/React.forwardRef(function ButtonGroup(inProps, ref) {
|
||||
const props = useDefaultProps({
|
||||
props: inProps,
|
||||
name: 'MuiButtonGroup'
|
||||
});
|
||||
const {
|
||||
children,
|
||||
className,
|
||||
color = 'primary',
|
||||
component = 'div',
|
||||
disabled = false,
|
||||
disableElevation = false,
|
||||
disableFocusRipple = false,
|
||||
disableRipple = false,
|
||||
fullWidth = false,
|
||||
orientation = 'horizontal',
|
||||
size = 'medium',
|
||||
variant = 'outlined'
|
||||
} = props,
|
||||
other = _objectWithoutPropertiesLoose(props, _excluded);
|
||||
const ownerState = _extends({}, props, {
|
||||
color,
|
||||
component,
|
||||
disabled,
|
||||
disableElevation,
|
||||
disableFocusRipple,
|
||||
disableRipple,
|
||||
fullWidth,
|
||||
orientation,
|
||||
size,
|
||||
variant
|
||||
});
|
||||
const classes = useUtilityClasses(ownerState);
|
||||
const context = React.useMemo(() => ({
|
||||
className: classes.grouped,
|
||||
color,
|
||||
disabled,
|
||||
disableElevation,
|
||||
disableFocusRipple,
|
||||
disableRipple,
|
||||
fullWidth,
|
||||
size,
|
||||
variant
|
||||
}), [color, disabled, disableElevation, disableFocusRipple, disableRipple, fullWidth, size, variant, classes.grouped]);
|
||||
const validChildren = getValidReactChildren(children);
|
||||
const childrenCount = validChildren.length;
|
||||
const getButtonPositionClassName = index => {
|
||||
const isFirstButton = index === 0;
|
||||
const isLastButton = index === childrenCount - 1;
|
||||
if (isFirstButton && isLastButton) {
|
||||
return '';
|
||||
}
|
||||
if (isFirstButton) {
|
||||
return classes.firstButton;
|
||||
}
|
||||
if (isLastButton) {
|
||||
return classes.lastButton;
|
||||
}
|
||||
return classes.middleButton;
|
||||
};
|
||||
return /*#__PURE__*/_jsx(ButtonGroupRoot, _extends({
|
||||
as: component,
|
||||
role: "group",
|
||||
className: clsx(classes.root, className),
|
||||
ref: ref,
|
||||
ownerState: ownerState
|
||||
}, other, {
|
||||
children: /*#__PURE__*/_jsx(ButtonGroupContext.Provider, {
|
||||
value: context,
|
||||
children: validChildren.map((child, index) => {
|
||||
return /*#__PURE__*/_jsx(ButtonGroupButtonContext.Provider, {
|
||||
value: getButtonPositionClassName(index),
|
||||
children: child
|
||||
}, index);
|
||||
})
|
||||
})
|
||||
}));
|
||||
});
|
||||
process.env.NODE_ENV !== "production" ? ButtonGroup.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 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 /* @typescript-to-proptypes-ignore */.oneOfType([PropTypes.oneOf(['inherit', 'primary', 'secondary', 'error', 'info', 'success', 'warning']), PropTypes.string]),
|
||||
/**
|
||||
* The component used for the root node.
|
||||
* Either a string to use a HTML element or a component.
|
||||
*/
|
||||
component: PropTypes.elementType,
|
||||
/**
|
||||
* If `true`, the component is disabled.
|
||||
* @default false
|
||||
*/
|
||||
disabled: PropTypes.bool,
|
||||
/**
|
||||
* If `true`, no elevation is used.
|
||||
* @default false
|
||||
*/
|
||||
disableElevation: PropTypes.bool,
|
||||
/**
|
||||
* If `true`, the button keyboard focus ripple is disabled.
|
||||
* @default false
|
||||
*/
|
||||
disableFocusRipple: PropTypes.bool,
|
||||
/**
|
||||
* If `true`, the button ripple effect is disabled.
|
||||
* @default false
|
||||
*/
|
||||
disableRipple: PropTypes.bool,
|
||||
/**
|
||||
* If `true`, the buttons will take up the full width of its container.
|
||||
* @default false
|
||||
*/
|
||||
fullWidth: PropTypes.bool,
|
||||
/**
|
||||
* The component orientation (layout flow direction).
|
||||
* @default 'horizontal'
|
||||
*/
|
||||
orientation: PropTypes.oneOf(['horizontal', 'vertical']),
|
||||
/**
|
||||
* The size of the component.
|
||||
* `small` is equivalent to the dense button styling.
|
||||
* @default 'medium'
|
||||
*/
|
||||
size: PropTypes /* @typescript-to-proptypes-ignore */.oneOfType([PropTypes.oneOf(['small', 'medium', 'large']), PropTypes.string]),
|
||||
/**
|
||||
* 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 variant to use.
|
||||
* @default 'outlined'
|
||||
*/
|
||||
variant: PropTypes /* @typescript-to-proptypes-ignore */.oneOfType([PropTypes.oneOf(['contained', 'outlined', 'text']), PropTypes.string])
|
||||
} : void 0;
|
||||
export default ButtonGroup;
|
||||
9
backend/frontend/node_modules/@mui/material/modern/ButtonGroup/ButtonGroupButtonContext.js
generated
vendored
Normal file
9
backend/frontend/node_modules/@mui/material/modern/ButtonGroup/ButtonGroupButtonContext.js
generated
vendored
Normal file
@@ -0,0 +1,9 @@
|
||||
import * as React from 'react';
|
||||
/**
|
||||
* @ignore - internal component.
|
||||
*/
|
||||
const ButtonGroupButtonContext = /*#__PURE__*/React.createContext(undefined);
|
||||
if (process.env.NODE_ENV !== 'production') {
|
||||
ButtonGroupButtonContext.displayName = 'ButtonGroupButtonContext';
|
||||
}
|
||||
export default ButtonGroupButtonContext;
|
||||
9
backend/frontend/node_modules/@mui/material/modern/ButtonGroup/ButtonGroupContext.js
generated
vendored
Normal file
9
backend/frontend/node_modules/@mui/material/modern/ButtonGroup/ButtonGroupContext.js
generated
vendored
Normal file
@@ -0,0 +1,9 @@
|
||||
import * as React from 'react';
|
||||
/**
|
||||
* @ignore - internal component.
|
||||
*/
|
||||
const ButtonGroupContext = /*#__PURE__*/React.createContext({});
|
||||
if (process.env.NODE_ENV !== 'production') {
|
||||
ButtonGroupContext.displayName = 'ButtonGroupContext';
|
||||
}
|
||||
export default ButtonGroupContext;
|
||||
7
backend/frontend/node_modules/@mui/material/modern/ButtonGroup/buttonGroupClasses.js
generated
vendored
Normal file
7
backend/frontend/node_modules/@mui/material/modern/ButtonGroup/buttonGroupClasses.js
generated
vendored
Normal file
@@ -0,0 +1,7 @@
|
||||
import generateUtilityClasses from '@mui/utils/generateUtilityClasses';
|
||||
import generateUtilityClass from '@mui/utils/generateUtilityClass';
|
||||
export function getButtonGroupUtilityClass(slot) {
|
||||
return generateUtilityClass('MuiButtonGroup', slot);
|
||||
}
|
||||
const buttonGroupClasses = generateUtilityClasses('MuiButtonGroup', ['root', 'contained', 'outlined', 'text', 'disableElevation', 'disabled', 'firstButton', 'fullWidth', 'vertical', 'grouped', 'groupedHorizontal', 'groupedVertical', 'groupedText', 'groupedTextHorizontal', 'groupedTextVertical', 'groupedTextPrimary', 'groupedTextSecondary', 'groupedOutlined', 'groupedOutlinedHorizontal', 'groupedOutlinedVertical', 'groupedOutlinedPrimary', 'groupedOutlinedSecondary', 'groupedContained', 'groupedContainedHorizontal', 'groupedContainedVertical', 'groupedContainedPrimary', 'groupedContainedSecondary', 'lastButton', 'middleButton']);
|
||||
export default buttonGroupClasses;
|
||||
7
backend/frontend/node_modules/@mui/material/modern/ButtonGroup/index.js
generated
vendored
Normal file
7
backend/frontend/node_modules/@mui/material/modern/ButtonGroup/index.js
generated
vendored
Normal file
@@ -0,0 +1,7 @@
|
||||
'use client';
|
||||
|
||||
export { default } from './ButtonGroup';
|
||||
export { default as buttonGroupClasses } from './buttonGroupClasses';
|
||||
export * from './buttonGroupClasses';
|
||||
export { default as ButtonGroupContext } from './ButtonGroupContext';
|
||||
export { default as ButtonGroupButtonContext } from './ButtonGroupButtonContext';
|
||||
87
backend/frontend/node_modules/@mui/material/modern/Card/Card.js
generated
vendored
Normal file
87
backend/frontend/node_modules/@mui/material/modern/Card/Card.js
generated
vendored
Normal file
@@ -0,0 +1,87 @@
|
||||
'use client';
|
||||
|
||||
import _extends from "@babel/runtime/helpers/esm/extends";
|
||||
import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/esm/objectWithoutPropertiesLoose";
|
||||
const _excluded = ["className", "raised"];
|
||||
import * as React from 'react';
|
||||
import PropTypes from 'prop-types';
|
||||
import clsx from 'clsx';
|
||||
import chainPropTypes from '@mui/utils/chainPropTypes';
|
||||
import composeClasses from '@mui/utils/composeClasses';
|
||||
import styled from '../styles/styled';
|
||||
import { useDefaultProps } from '../DefaultPropsProvider';
|
||||
import Paper from '../Paper';
|
||||
import { getCardUtilityClass } from './cardClasses';
|
||||
import { jsx as _jsx } from "react/jsx-runtime";
|
||||
const useUtilityClasses = ownerState => {
|
||||
const {
|
||||
classes
|
||||
} = ownerState;
|
||||
const slots = {
|
||||
root: ['root']
|
||||
};
|
||||
return composeClasses(slots, getCardUtilityClass, classes);
|
||||
};
|
||||
const CardRoot = styled(Paper, {
|
||||
name: 'MuiCard',
|
||||
slot: 'Root',
|
||||
overridesResolver: (props, styles) => styles.root
|
||||
})(() => {
|
||||
return {
|
||||
overflow: 'hidden'
|
||||
};
|
||||
});
|
||||
const Card = /*#__PURE__*/React.forwardRef(function Card(inProps, ref) {
|
||||
const props = useDefaultProps({
|
||||
props: inProps,
|
||||
name: 'MuiCard'
|
||||
});
|
||||
const {
|
||||
className,
|
||||
raised = false
|
||||
} = props,
|
||||
other = _objectWithoutPropertiesLoose(props, _excluded);
|
||||
const ownerState = _extends({}, props, {
|
||||
raised
|
||||
});
|
||||
const classes = useUtilityClasses(ownerState);
|
||||
return /*#__PURE__*/_jsx(CardRoot, _extends({
|
||||
className: clsx(classes.root, className),
|
||||
elevation: raised ? 8 : undefined,
|
||||
ref: ref,
|
||||
ownerState: ownerState
|
||||
}, other));
|
||||
});
|
||||
process.env.NODE_ENV !== "production" ? Card.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,
|
||||
/**
|
||||
* If `true`, the card will use raised styling.
|
||||
* @default false
|
||||
*/
|
||||
raised: chainPropTypes(PropTypes.bool, props => {
|
||||
if (props.raised && props.variant === 'outlined') {
|
||||
return new Error('MUI: Combining `raised={true}` with `variant="outlined"` has no effect.');
|
||||
}
|
||||
return null;
|
||||
}),
|
||||
/**
|
||||
* 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])
|
||||
} : void 0;
|
||||
export default Card;
|
||||
7
backend/frontend/node_modules/@mui/material/modern/Card/cardClasses.js
generated
vendored
Normal file
7
backend/frontend/node_modules/@mui/material/modern/Card/cardClasses.js
generated
vendored
Normal file
@@ -0,0 +1,7 @@
|
||||
import generateUtilityClasses from '@mui/utils/generateUtilityClasses';
|
||||
import generateUtilityClass from '@mui/utils/generateUtilityClass';
|
||||
export function getCardUtilityClass(slot) {
|
||||
return generateUtilityClass('MuiCard', slot);
|
||||
}
|
||||
const cardClasses = generateUtilityClasses('MuiCard', ['root']);
|
||||
export default cardClasses;
|
||||
5
backend/frontend/node_modules/@mui/material/modern/Card/index.js
generated
vendored
Normal file
5
backend/frontend/node_modules/@mui/material/modern/Card/index.js
generated
vendored
Normal file
@@ -0,0 +1,5 @@
|
||||
'use client';
|
||||
|
||||
export { default } from './Card';
|
||||
export { default as cardClasses } from './cardClasses';
|
||||
export * from './cardClasses';
|
||||
120
backend/frontend/node_modules/@mui/material/modern/CardActionArea/CardActionArea.js
generated
vendored
Normal file
120
backend/frontend/node_modules/@mui/material/modern/CardActionArea/CardActionArea.js
generated
vendored
Normal file
@@ -0,0 +1,120 @@
|
||||
'use client';
|
||||
|
||||
import _extends from "@babel/runtime/helpers/esm/extends";
|
||||
import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/esm/objectWithoutPropertiesLoose";
|
||||
const _excluded = ["children", "className", "focusVisibleClassName"];
|
||||
import * as React from 'react';
|
||||
import PropTypes from 'prop-types';
|
||||
import clsx from 'clsx';
|
||||
import composeClasses from '@mui/utils/composeClasses';
|
||||
import { useDefaultProps } from '../DefaultPropsProvider';
|
||||
import styled from '../styles/styled';
|
||||
import cardActionAreaClasses, { getCardActionAreaUtilityClass } from './cardActionAreaClasses';
|
||||
import ButtonBase from '../ButtonBase';
|
||||
import { jsx as _jsx } from "react/jsx-runtime";
|
||||
import { jsxs as _jsxs } from "react/jsx-runtime";
|
||||
const useUtilityClasses = ownerState => {
|
||||
const {
|
||||
classes
|
||||
} = ownerState;
|
||||
const slots = {
|
||||
root: ['root'],
|
||||
focusHighlight: ['focusHighlight']
|
||||
};
|
||||
return composeClasses(slots, getCardActionAreaUtilityClass, classes);
|
||||
};
|
||||
const CardActionAreaRoot = styled(ButtonBase, {
|
||||
name: 'MuiCardActionArea',
|
||||
slot: 'Root',
|
||||
overridesResolver: (props, styles) => styles.root
|
||||
})(({
|
||||
theme
|
||||
}) => ({
|
||||
display: 'block',
|
||||
textAlign: 'inherit',
|
||||
borderRadius: 'inherit',
|
||||
// for Safari to work https://github.com/mui/material-ui/issues/36285.
|
||||
width: '100%',
|
||||
[`&:hover .${cardActionAreaClasses.focusHighlight}`]: {
|
||||
opacity: (theme.vars || theme).palette.action.hoverOpacity,
|
||||
'@media (hover: none)': {
|
||||
opacity: 0
|
||||
}
|
||||
},
|
||||
[`&.${cardActionAreaClasses.focusVisible} .${cardActionAreaClasses.focusHighlight}`]: {
|
||||
opacity: (theme.vars || theme).palette.action.focusOpacity
|
||||
}
|
||||
}));
|
||||
const CardActionAreaFocusHighlight = styled('span', {
|
||||
name: 'MuiCardActionArea',
|
||||
slot: 'FocusHighlight',
|
||||
overridesResolver: (props, styles) => styles.focusHighlight
|
||||
})(({
|
||||
theme
|
||||
}) => ({
|
||||
overflow: 'hidden',
|
||||
pointerEvents: 'none',
|
||||
position: 'absolute',
|
||||
top: 0,
|
||||
right: 0,
|
||||
bottom: 0,
|
||||
left: 0,
|
||||
borderRadius: 'inherit',
|
||||
opacity: 0,
|
||||
backgroundColor: 'currentcolor',
|
||||
transition: theme.transitions.create('opacity', {
|
||||
duration: theme.transitions.duration.short
|
||||
})
|
||||
}));
|
||||
const CardActionArea = /*#__PURE__*/React.forwardRef(function CardActionArea(inProps, ref) {
|
||||
const props = useDefaultProps({
|
||||
props: inProps,
|
||||
name: 'MuiCardActionArea'
|
||||
});
|
||||
const {
|
||||
children,
|
||||
className,
|
||||
focusVisibleClassName
|
||||
} = props,
|
||||
other = _objectWithoutPropertiesLoose(props, _excluded);
|
||||
const ownerState = props;
|
||||
const classes = useUtilityClasses(ownerState);
|
||||
return /*#__PURE__*/_jsxs(CardActionAreaRoot, _extends({
|
||||
className: clsx(classes.root, className),
|
||||
focusVisibleClassName: clsx(focusVisibleClassName, classes.focusVisible),
|
||||
ref: ref,
|
||||
ownerState: ownerState
|
||||
}, other, {
|
||||
children: [children, /*#__PURE__*/_jsx(CardActionAreaFocusHighlight, {
|
||||
className: classes.focusHighlight,
|
||||
ownerState: ownerState
|
||||
})]
|
||||
}));
|
||||
});
|
||||
process.env.NODE_ENV !== "production" ? CardActionArea.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,
|
||||
/**
|
||||
* @ignore
|
||||
*/
|
||||
focusVisibleClassName: PropTypes.string,
|
||||
/**
|
||||
* 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])
|
||||
} : void 0;
|
||||
export default CardActionArea;
|
||||
7
backend/frontend/node_modules/@mui/material/modern/CardActionArea/cardActionAreaClasses.js
generated
vendored
Normal file
7
backend/frontend/node_modules/@mui/material/modern/CardActionArea/cardActionAreaClasses.js
generated
vendored
Normal file
@@ -0,0 +1,7 @@
|
||||
import generateUtilityClasses from '@mui/utils/generateUtilityClasses';
|
||||
import generateUtilityClass from '@mui/utils/generateUtilityClass';
|
||||
export function getCardActionAreaUtilityClass(slot) {
|
||||
return generateUtilityClass('MuiCardActionArea', slot);
|
||||
}
|
||||
const cardActionAreaClasses = generateUtilityClasses('MuiCardActionArea', ['root', 'focusVisible', 'focusHighlight']);
|
||||
export default cardActionAreaClasses;
|
||||
5
backend/frontend/node_modules/@mui/material/modern/CardActionArea/index.js
generated
vendored
Normal file
5
backend/frontend/node_modules/@mui/material/modern/CardActionArea/index.js
generated
vendored
Normal file
@@ -0,0 +1,5 @@
|
||||
'use client';
|
||||
|
||||
export { default } from './CardActionArea';
|
||||
export { default as cardActionAreaClasses } from './cardActionAreaClasses';
|
||||
export * from './cardActionAreaClasses';
|
||||
91
backend/frontend/node_modules/@mui/material/modern/CardActions/CardActions.js
generated
vendored
Normal file
91
backend/frontend/node_modules/@mui/material/modern/CardActions/CardActions.js
generated
vendored
Normal file
@@ -0,0 +1,91 @@
|
||||
'use client';
|
||||
|
||||
import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/esm/objectWithoutPropertiesLoose";
|
||||
import _extends from "@babel/runtime/helpers/esm/extends";
|
||||
const _excluded = ["disableSpacing", "className"];
|
||||
import * as React from 'react';
|
||||
import PropTypes from 'prop-types';
|
||||
import clsx from 'clsx';
|
||||
import composeClasses from '@mui/utils/composeClasses';
|
||||
import styled from '../styles/styled';
|
||||
import { useDefaultProps } from '../DefaultPropsProvider';
|
||||
import { getCardActionsUtilityClass } from './cardActionsClasses';
|
||||
import { jsx as _jsx } from "react/jsx-runtime";
|
||||
const useUtilityClasses = ownerState => {
|
||||
const {
|
||||
classes,
|
||||
disableSpacing
|
||||
} = ownerState;
|
||||
const slots = {
|
||||
root: ['root', !disableSpacing && 'spacing']
|
||||
};
|
||||
return composeClasses(slots, getCardActionsUtilityClass, classes);
|
||||
};
|
||||
const CardActionsRoot = styled('div', {
|
||||
name: 'MuiCardActions',
|
||||
slot: 'Root',
|
||||
overridesResolver: (props, styles) => {
|
||||
const {
|
||||
ownerState
|
||||
} = props;
|
||||
return [styles.root, !ownerState.disableSpacing && styles.spacing];
|
||||
}
|
||||
})(({
|
||||
ownerState
|
||||
}) => _extends({
|
||||
display: 'flex',
|
||||
alignItems: 'center',
|
||||
padding: 8
|
||||
}, !ownerState.disableSpacing && {
|
||||
'& > :not(style) ~ :not(style)': {
|
||||
marginLeft: 8
|
||||
}
|
||||
}));
|
||||
const CardActions = /*#__PURE__*/React.forwardRef(function CardActions(inProps, ref) {
|
||||
const props = useDefaultProps({
|
||||
props: inProps,
|
||||
name: 'MuiCardActions'
|
||||
});
|
||||
const {
|
||||
disableSpacing = false,
|
||||
className
|
||||
} = props,
|
||||
other = _objectWithoutPropertiesLoose(props, _excluded);
|
||||
const ownerState = _extends({}, props, {
|
||||
disableSpacing
|
||||
});
|
||||
const classes = useUtilityClasses(ownerState);
|
||||
return /*#__PURE__*/_jsx(CardActionsRoot, _extends({
|
||||
className: clsx(classes.root, className),
|
||||
ownerState: ownerState,
|
||||
ref: ref
|
||||
}, other));
|
||||
});
|
||||
process.env.NODE_ENV !== "production" ? CardActions.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,
|
||||
/**
|
||||
* If `true`, the actions do not have additional margin.
|
||||
* @default false
|
||||
*/
|
||||
disableSpacing: PropTypes.bool,
|
||||
/**
|
||||
* 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])
|
||||
} : void 0;
|
||||
export default CardActions;
|
||||
7
backend/frontend/node_modules/@mui/material/modern/CardActions/cardActionsClasses.js
generated
vendored
Normal file
7
backend/frontend/node_modules/@mui/material/modern/CardActions/cardActionsClasses.js
generated
vendored
Normal file
@@ -0,0 +1,7 @@
|
||||
import generateUtilityClasses from '@mui/utils/generateUtilityClasses';
|
||||
import generateUtilityClass from '@mui/utils/generateUtilityClass';
|
||||
export function getCardActionsUtilityClass(slot) {
|
||||
return generateUtilityClass('MuiCardActions', slot);
|
||||
}
|
||||
const cardActionsClasses = generateUtilityClasses('MuiCardActions', ['root', 'spacing']);
|
||||
export default cardActionsClasses;
|
||||
5
backend/frontend/node_modules/@mui/material/modern/CardActions/index.js
generated
vendored
Normal file
5
backend/frontend/node_modules/@mui/material/modern/CardActions/index.js
generated
vendored
Normal file
@@ -0,0 +1,5 @@
|
||||
'use client';
|
||||
|
||||
export { default } from './CardActions';
|
||||
export { default as cardActionsClasses } from './cardActionsClasses';
|
||||
export * from './cardActionsClasses';
|
||||
83
backend/frontend/node_modules/@mui/material/modern/CardContent/CardContent.js
generated
vendored
Normal file
83
backend/frontend/node_modules/@mui/material/modern/CardContent/CardContent.js
generated
vendored
Normal file
@@ -0,0 +1,83 @@
|
||||
'use client';
|
||||
|
||||
import _extends from "@babel/runtime/helpers/esm/extends";
|
||||
import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/esm/objectWithoutPropertiesLoose";
|
||||
const _excluded = ["className", "component"];
|
||||
import * as React from 'react';
|
||||
import PropTypes from 'prop-types';
|
||||
import clsx from 'clsx';
|
||||
import composeClasses from '@mui/utils/composeClasses';
|
||||
import styled from '../styles/styled';
|
||||
import { useDefaultProps } from '../DefaultPropsProvider';
|
||||
import { getCardContentUtilityClass } from './cardContentClasses';
|
||||
import { jsx as _jsx } from "react/jsx-runtime";
|
||||
const useUtilityClasses = ownerState => {
|
||||
const {
|
||||
classes
|
||||
} = ownerState;
|
||||
const slots = {
|
||||
root: ['root']
|
||||
};
|
||||
return composeClasses(slots, getCardContentUtilityClass, classes);
|
||||
};
|
||||
const CardContentRoot = styled('div', {
|
||||
name: 'MuiCardContent',
|
||||
slot: 'Root',
|
||||
overridesResolver: (props, styles) => styles.root
|
||||
})(() => {
|
||||
return {
|
||||
padding: 16,
|
||||
'&:last-child': {
|
||||
paddingBottom: 24
|
||||
}
|
||||
};
|
||||
});
|
||||
const CardContent = /*#__PURE__*/React.forwardRef(function CardContent(inProps, ref) {
|
||||
const props = useDefaultProps({
|
||||
props: inProps,
|
||||
name: 'MuiCardContent'
|
||||
});
|
||||
const {
|
||||
className,
|
||||
component = 'div'
|
||||
} = props,
|
||||
other = _objectWithoutPropertiesLoose(props, _excluded);
|
||||
const ownerState = _extends({}, props, {
|
||||
component
|
||||
});
|
||||
const classes = useUtilityClasses(ownerState);
|
||||
return /*#__PURE__*/_jsx(CardContentRoot, _extends({
|
||||
as: component,
|
||||
className: clsx(classes.root, className),
|
||||
ownerState: ownerState,
|
||||
ref: ref
|
||||
}, other));
|
||||
});
|
||||
process.env.NODE_ENV !== "production" ? CardContent.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 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])
|
||||
} : void 0;
|
||||
export default CardContent;
|
||||
7
backend/frontend/node_modules/@mui/material/modern/CardContent/cardContentClasses.js
generated
vendored
Normal file
7
backend/frontend/node_modules/@mui/material/modern/CardContent/cardContentClasses.js
generated
vendored
Normal file
@@ -0,0 +1,7 @@
|
||||
import generateUtilityClasses from '@mui/utils/generateUtilityClasses';
|
||||
import generateUtilityClass from '@mui/utils/generateUtilityClass';
|
||||
export function getCardContentUtilityClass(slot) {
|
||||
return generateUtilityClass('MuiCardContent', slot);
|
||||
}
|
||||
const cardContentClasses = generateUtilityClasses('MuiCardContent', ['root']);
|
||||
export default cardContentClasses;
|
||||
5
backend/frontend/node_modules/@mui/material/modern/CardContent/index.js
generated
vendored
Normal file
5
backend/frontend/node_modules/@mui/material/modern/CardContent/index.js
generated
vendored
Normal file
@@ -0,0 +1,5 @@
|
||||
'use client';
|
||||
|
||||
export { default } from './CardContent';
|
||||
export { default as cardContentClasses } from './cardContentClasses';
|
||||
export * from './cardContentClasses';
|
||||
196
backend/frontend/node_modules/@mui/material/modern/CardHeader/CardHeader.js
generated
vendored
Normal file
196
backend/frontend/node_modules/@mui/material/modern/CardHeader/CardHeader.js
generated
vendored
Normal file
@@ -0,0 +1,196 @@
|
||||
'use client';
|
||||
|
||||
import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/esm/objectWithoutPropertiesLoose";
|
||||
import _extends from "@babel/runtime/helpers/esm/extends";
|
||||
const _excluded = ["action", "avatar", "className", "component", "disableTypography", "subheader", "subheaderTypographyProps", "title", "titleTypographyProps"];
|
||||
import * as React from 'react';
|
||||
import PropTypes from 'prop-types';
|
||||
import clsx from 'clsx';
|
||||
import composeClasses from '@mui/utils/composeClasses';
|
||||
import Typography from '../Typography';
|
||||
import { useDefaultProps } from '../DefaultPropsProvider';
|
||||
import styled from '../styles/styled';
|
||||
import cardHeaderClasses, { getCardHeaderUtilityClass } from './cardHeaderClasses';
|
||||
import { jsx as _jsx } from "react/jsx-runtime";
|
||||
import { jsxs as _jsxs } from "react/jsx-runtime";
|
||||
const useUtilityClasses = ownerState => {
|
||||
const {
|
||||
classes
|
||||
} = ownerState;
|
||||
const slots = {
|
||||
root: ['root'],
|
||||
avatar: ['avatar'],
|
||||
action: ['action'],
|
||||
content: ['content'],
|
||||
title: ['title'],
|
||||
subheader: ['subheader']
|
||||
};
|
||||
return composeClasses(slots, getCardHeaderUtilityClass, classes);
|
||||
};
|
||||
const CardHeaderRoot = styled('div', {
|
||||
name: 'MuiCardHeader',
|
||||
slot: 'Root',
|
||||
overridesResolver: (props, styles) => _extends({
|
||||
[`& .${cardHeaderClasses.title}`]: styles.title,
|
||||
[`& .${cardHeaderClasses.subheader}`]: styles.subheader
|
||||
}, styles.root)
|
||||
})({
|
||||
display: 'flex',
|
||||
alignItems: 'center',
|
||||
padding: 16
|
||||
});
|
||||
const CardHeaderAvatar = styled('div', {
|
||||
name: 'MuiCardHeader',
|
||||
slot: 'Avatar',
|
||||
overridesResolver: (props, styles) => styles.avatar
|
||||
})({
|
||||
display: 'flex',
|
||||
flex: '0 0 auto',
|
||||
marginRight: 16
|
||||
});
|
||||
const CardHeaderAction = styled('div', {
|
||||
name: 'MuiCardHeader',
|
||||
slot: 'Action',
|
||||
overridesResolver: (props, styles) => styles.action
|
||||
})({
|
||||
flex: '0 0 auto',
|
||||
alignSelf: 'flex-start',
|
||||
marginTop: -4,
|
||||
marginRight: -8,
|
||||
marginBottom: -4
|
||||
});
|
||||
const CardHeaderContent = styled('div', {
|
||||
name: 'MuiCardHeader',
|
||||
slot: 'Content',
|
||||
overridesResolver: (props, styles) => styles.content
|
||||
})({
|
||||
flex: '1 1 auto'
|
||||
});
|
||||
const CardHeader = /*#__PURE__*/React.forwardRef(function CardHeader(inProps, ref) {
|
||||
const props = useDefaultProps({
|
||||
props: inProps,
|
||||
name: 'MuiCardHeader'
|
||||
});
|
||||
const {
|
||||
action,
|
||||
avatar,
|
||||
className,
|
||||
component = 'div',
|
||||
disableTypography = false,
|
||||
subheader: subheaderProp,
|
||||
subheaderTypographyProps,
|
||||
title: titleProp,
|
||||
titleTypographyProps
|
||||
} = props,
|
||||
other = _objectWithoutPropertiesLoose(props, _excluded);
|
||||
const ownerState = _extends({}, props, {
|
||||
component,
|
||||
disableTypography
|
||||
});
|
||||
const classes = useUtilityClasses(ownerState);
|
||||
let title = titleProp;
|
||||
if (title != null && title.type !== Typography && !disableTypography) {
|
||||
title = /*#__PURE__*/_jsx(Typography, _extends({
|
||||
variant: avatar ? 'body2' : 'h5',
|
||||
className: classes.title,
|
||||
component: "span",
|
||||
display: "block"
|
||||
}, titleTypographyProps, {
|
||||
children: title
|
||||
}));
|
||||
}
|
||||
let subheader = subheaderProp;
|
||||
if (subheader != null && subheader.type !== Typography && !disableTypography) {
|
||||
subheader = /*#__PURE__*/_jsx(Typography, _extends({
|
||||
variant: avatar ? 'body2' : 'body1',
|
||||
className: classes.subheader,
|
||||
color: "text.secondary",
|
||||
component: "span",
|
||||
display: "block"
|
||||
}, subheaderTypographyProps, {
|
||||
children: subheader
|
||||
}));
|
||||
}
|
||||
return /*#__PURE__*/_jsxs(CardHeaderRoot, _extends({
|
||||
className: clsx(classes.root, className),
|
||||
as: component,
|
||||
ref: ref,
|
||||
ownerState: ownerState
|
||||
}, other, {
|
||||
children: [avatar && /*#__PURE__*/_jsx(CardHeaderAvatar, {
|
||||
className: classes.avatar,
|
||||
ownerState: ownerState,
|
||||
children: avatar
|
||||
}), /*#__PURE__*/_jsxs(CardHeaderContent, {
|
||||
className: classes.content,
|
||||
ownerState: ownerState,
|
||||
children: [title, subheader]
|
||||
}), action && /*#__PURE__*/_jsx(CardHeaderAction, {
|
||||
className: classes.action,
|
||||
ownerState: ownerState,
|
||||
children: action
|
||||
})]
|
||||
}));
|
||||
});
|
||||
process.env.NODE_ENV !== "production" ? CardHeader.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 action to display in the card header.
|
||||
*/
|
||||
action: PropTypes.node,
|
||||
/**
|
||||
* The Avatar element to display.
|
||||
*/
|
||||
avatar: PropTypes.node,
|
||||
/**
|
||||
* @ignore
|
||||
*/
|
||||
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,
|
||||
/**
|
||||
* If `true`, `subheader` and `title` won't be wrapped by a Typography component.
|
||||
* This can be useful to render an alternative Typography variant by wrapping
|
||||
* the `title` text, and optional `subheader` text
|
||||
* with the Typography component.
|
||||
* @default false
|
||||
*/
|
||||
disableTypography: PropTypes.bool,
|
||||
/**
|
||||
* The content of the component.
|
||||
*/
|
||||
subheader: PropTypes.node,
|
||||
/**
|
||||
* These props will be forwarded to the subheader
|
||||
* (as long as disableTypography is not `true`).
|
||||
*/
|
||||
subheaderTypographyProps: 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 content of the component.
|
||||
*/
|
||||
title: PropTypes.node,
|
||||
/**
|
||||
* These props will be forwarded to the title
|
||||
* (as long as disableTypography is not `true`).
|
||||
*/
|
||||
titleTypographyProps: PropTypes.object
|
||||
} : void 0;
|
||||
export default CardHeader;
|
||||
7
backend/frontend/node_modules/@mui/material/modern/CardHeader/cardHeaderClasses.js
generated
vendored
Normal file
7
backend/frontend/node_modules/@mui/material/modern/CardHeader/cardHeaderClasses.js
generated
vendored
Normal file
@@ -0,0 +1,7 @@
|
||||
import generateUtilityClasses from '@mui/utils/generateUtilityClasses';
|
||||
import generateUtilityClass from '@mui/utils/generateUtilityClass';
|
||||
export function getCardHeaderUtilityClass(slot) {
|
||||
return generateUtilityClass('MuiCardHeader', slot);
|
||||
}
|
||||
const cardHeaderClasses = generateUtilityClasses('MuiCardHeader', ['root', 'avatar', 'action', 'content', 'title', 'subheader']);
|
||||
export default cardHeaderClasses;
|
||||
5
backend/frontend/node_modules/@mui/material/modern/CardHeader/index.js
generated
vendored
Normal file
5
backend/frontend/node_modules/@mui/material/modern/CardHeader/index.js
generated
vendored
Normal file
@@ -0,0 +1,5 @@
|
||||
'use client';
|
||||
|
||||
export { default } from './CardHeader';
|
||||
export { default as cardHeaderClasses } from './cardHeaderClasses';
|
||||
export * from './cardHeaderClasses';
|
||||
138
backend/frontend/node_modules/@mui/material/modern/CardMedia/CardMedia.js
generated
vendored
Normal file
138
backend/frontend/node_modules/@mui/material/modern/CardMedia/CardMedia.js
generated
vendored
Normal file
@@ -0,0 +1,138 @@
|
||||
'use client';
|
||||
|
||||
import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/esm/objectWithoutPropertiesLoose";
|
||||
import _extends from "@babel/runtime/helpers/esm/extends";
|
||||
const _excluded = ["children", "className", "component", "image", "src", "style"];
|
||||
import * as React from 'react';
|
||||
import PropTypes from 'prop-types';
|
||||
import clsx from 'clsx';
|
||||
import chainPropTypes from '@mui/utils/chainPropTypes';
|
||||
import composeClasses from '@mui/utils/composeClasses';
|
||||
import { useDefaultProps } from '../DefaultPropsProvider';
|
||||
import styled from '../styles/styled';
|
||||
import { getCardMediaUtilityClass } from './cardMediaClasses';
|
||||
import { jsx as _jsx } from "react/jsx-runtime";
|
||||
const useUtilityClasses = ownerState => {
|
||||
const {
|
||||
classes,
|
||||
isMediaComponent,
|
||||
isImageComponent
|
||||
} = ownerState;
|
||||
const slots = {
|
||||
root: ['root', isMediaComponent && 'media', isImageComponent && 'img']
|
||||
};
|
||||
return composeClasses(slots, getCardMediaUtilityClass, classes);
|
||||
};
|
||||
const CardMediaRoot = styled('div', {
|
||||
name: 'MuiCardMedia',
|
||||
slot: 'Root',
|
||||
overridesResolver: (props, styles) => {
|
||||
const {
|
||||
ownerState
|
||||
} = props;
|
||||
const {
|
||||
isMediaComponent,
|
||||
isImageComponent
|
||||
} = ownerState;
|
||||
return [styles.root, isMediaComponent && styles.media, isImageComponent && styles.img];
|
||||
}
|
||||
})(({
|
||||
ownerState
|
||||
}) => _extends({
|
||||
display: 'block',
|
||||
backgroundSize: 'cover',
|
||||
backgroundRepeat: 'no-repeat',
|
||||
backgroundPosition: 'center'
|
||||
}, ownerState.isMediaComponent && {
|
||||
width: '100%'
|
||||
}, ownerState.isImageComponent && {
|
||||
// ⚠️ object-fit is not supported by IE11.
|
||||
objectFit: 'cover'
|
||||
}));
|
||||
const MEDIA_COMPONENTS = ['video', 'audio', 'picture', 'iframe', 'img'];
|
||||
const IMAGE_COMPONENTS = ['picture', 'img'];
|
||||
const CardMedia = /*#__PURE__*/React.forwardRef(function CardMedia(inProps, ref) {
|
||||
const props = useDefaultProps({
|
||||
props: inProps,
|
||||
name: 'MuiCardMedia'
|
||||
});
|
||||
const {
|
||||
children,
|
||||
className,
|
||||
component = 'div',
|
||||
image,
|
||||
src,
|
||||
style
|
||||
} = props,
|
||||
other = _objectWithoutPropertiesLoose(props, _excluded);
|
||||
const isMediaComponent = MEDIA_COMPONENTS.indexOf(component) !== -1;
|
||||
const composedStyle = !isMediaComponent && image ? _extends({
|
||||
backgroundImage: `url("${image}")`
|
||||
}, style) : style;
|
||||
const ownerState = _extends({}, props, {
|
||||
component,
|
||||
isMediaComponent,
|
||||
isImageComponent: IMAGE_COMPONENTS.indexOf(component) !== -1
|
||||
});
|
||||
const classes = useUtilityClasses(ownerState);
|
||||
return /*#__PURE__*/_jsx(CardMediaRoot, _extends({
|
||||
className: clsx(classes.root, className),
|
||||
as: component,
|
||||
role: !isMediaComponent && image ? 'img' : undefined,
|
||||
ref: ref,
|
||||
style: composedStyle,
|
||||
ownerState: ownerState,
|
||||
src: isMediaComponent ? image || src : undefined
|
||||
}, other, {
|
||||
children: children
|
||||
}));
|
||||
});
|
||||
process.env.NODE_ENV !== "production" ? CardMedia.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: chainPropTypes(PropTypes.node, props => {
|
||||
if (!props.children && !props.image && !props.src && !props.component) {
|
||||
return new Error('MUI: Either `children`, `image`, `src` or `component` prop must be specified.');
|
||||
}
|
||||
return null;
|
||||
}),
|
||||
/**
|
||||
* 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,
|
||||
/**
|
||||
* Image to be displayed as a background image.
|
||||
* Either `image` or `src` prop must be specified.
|
||||
* Note that caller must specify height otherwise the image will not be visible.
|
||||
*/
|
||||
image: PropTypes.string,
|
||||
/**
|
||||
* An alias for `image` property.
|
||||
* Available only with media components.
|
||||
* Media components: `video`, `audio`, `picture`, `iframe`, `img`.
|
||||
*/
|
||||
src: PropTypes.string,
|
||||
/**
|
||||
* @ignore
|
||||
*/
|
||||
style: 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])
|
||||
} : void 0;
|
||||
export default CardMedia;
|
||||
7
backend/frontend/node_modules/@mui/material/modern/CardMedia/cardMediaClasses.js
generated
vendored
Normal file
7
backend/frontend/node_modules/@mui/material/modern/CardMedia/cardMediaClasses.js
generated
vendored
Normal file
@@ -0,0 +1,7 @@
|
||||
import generateUtilityClasses from '@mui/utils/generateUtilityClasses';
|
||||
import generateUtilityClass from '@mui/utils/generateUtilityClass';
|
||||
export function getCardMediaUtilityClass(slot) {
|
||||
return generateUtilityClass('MuiCardMedia', slot);
|
||||
}
|
||||
const cardMediaClasses = generateUtilityClasses('MuiCardMedia', ['root', 'media', 'img']);
|
||||
export default cardMediaClasses;
|
||||
5
backend/frontend/node_modules/@mui/material/modern/CardMedia/index.js
generated
vendored
Normal file
5
backend/frontend/node_modules/@mui/material/modern/CardMedia/index.js
generated
vendored
Normal file
@@ -0,0 +1,5 @@
|
||||
'use client';
|
||||
|
||||
export { default } from './CardMedia';
|
||||
export { default as cardMediaClasses } from './cardMediaClasses';
|
||||
export * from './cardMediaClasses';
|
||||
211
backend/frontend/node_modules/@mui/material/modern/Checkbox/Checkbox.js
generated
vendored
Normal file
211
backend/frontend/node_modules/@mui/material/modern/Checkbox/Checkbox.js
generated
vendored
Normal file
@@ -0,0 +1,211 @@
|
||||
'use client';
|
||||
|
||||
import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/esm/objectWithoutPropertiesLoose";
|
||||
import _extends from "@babel/runtime/helpers/esm/extends";
|
||||
const _excluded = ["checkedIcon", "color", "icon", "indeterminate", "indeterminateIcon", "inputProps", "size", "className"];
|
||||
import * as React from 'react';
|
||||
import PropTypes from 'prop-types';
|
||||
import clsx from 'clsx';
|
||||
import refType from '@mui/utils/refType';
|
||||
import composeClasses from '@mui/utils/composeClasses';
|
||||
import { alpha } from '@mui/system/colorManipulator';
|
||||
import SwitchBase from '../internal/SwitchBase';
|
||||
import CheckBoxOutlineBlankIcon from '../internal/svg-icons/CheckBoxOutlineBlank';
|
||||
import CheckBoxIcon from '../internal/svg-icons/CheckBox';
|
||||
import IndeterminateCheckBoxIcon from '../internal/svg-icons/IndeterminateCheckBox';
|
||||
import capitalize from '../utils/capitalize';
|
||||
import { useDefaultProps } from '../DefaultPropsProvider';
|
||||
import styled, { rootShouldForwardProp } from '../styles/styled';
|
||||
import checkboxClasses, { getCheckboxUtilityClass } from './checkboxClasses';
|
||||
import { jsx as _jsx } from "react/jsx-runtime";
|
||||
const useUtilityClasses = ownerState => {
|
||||
const {
|
||||
classes,
|
||||
indeterminate,
|
||||
color,
|
||||
size
|
||||
} = ownerState;
|
||||
const slots = {
|
||||
root: ['root', indeterminate && 'indeterminate', `color${capitalize(color)}`, `size${capitalize(size)}`]
|
||||
};
|
||||
const composedClasses = composeClasses(slots, getCheckboxUtilityClass, classes);
|
||||
return _extends({}, classes, composedClasses);
|
||||
};
|
||||
const CheckboxRoot = styled(SwitchBase, {
|
||||
shouldForwardProp: prop => rootShouldForwardProp(prop) || prop === 'classes',
|
||||
name: 'MuiCheckbox',
|
||||
slot: 'Root',
|
||||
overridesResolver: (props, styles) => {
|
||||
const {
|
||||
ownerState
|
||||
} = props;
|
||||
return [styles.root, ownerState.indeterminate && styles.indeterminate, styles[`size${capitalize(ownerState.size)}`], ownerState.color !== 'default' && styles[`color${capitalize(ownerState.color)}`]];
|
||||
}
|
||||
})(({
|
||||
theme,
|
||||
ownerState
|
||||
}) => _extends({
|
||||
color: (theme.vars || theme).palette.text.secondary
|
||||
}, !ownerState.disableRipple && {
|
||||
'&:hover': {
|
||||
backgroundColor: theme.vars ? `rgba(${ownerState.color === 'default' ? theme.vars.palette.action.activeChannel : theme.vars.palette[ownerState.color].mainChannel} / ${theme.vars.palette.action.hoverOpacity})` : alpha(ownerState.color === 'default' ? theme.palette.action.active : theme.palette[ownerState.color].main, theme.palette.action.hoverOpacity),
|
||||
// Reset on touch devices, it doesn't add specificity
|
||||
'@media (hover: none)': {
|
||||
backgroundColor: 'transparent'
|
||||
}
|
||||
}
|
||||
}, ownerState.color !== 'default' && {
|
||||
[`&.${checkboxClasses.checked}, &.${checkboxClasses.indeterminate}`]: {
|
||||
color: (theme.vars || theme).palette[ownerState.color].main
|
||||
},
|
||||
[`&.${checkboxClasses.disabled}`]: {
|
||||
color: (theme.vars || theme).palette.action.disabled
|
||||
}
|
||||
}));
|
||||
const defaultCheckedIcon = /*#__PURE__*/_jsx(CheckBoxIcon, {});
|
||||
const defaultIcon = /*#__PURE__*/_jsx(CheckBoxOutlineBlankIcon, {});
|
||||
const defaultIndeterminateIcon = /*#__PURE__*/_jsx(IndeterminateCheckBoxIcon, {});
|
||||
const Checkbox = /*#__PURE__*/React.forwardRef(function Checkbox(inProps, ref) {
|
||||
const props = useDefaultProps({
|
||||
props: inProps,
|
||||
name: 'MuiCheckbox'
|
||||
});
|
||||
const {
|
||||
checkedIcon = defaultCheckedIcon,
|
||||
color = 'primary',
|
||||
icon: iconProp = defaultIcon,
|
||||
indeterminate = false,
|
||||
indeterminateIcon: indeterminateIconProp = defaultIndeterminateIcon,
|
||||
inputProps,
|
||||
size = 'medium',
|
||||
className
|
||||
} = props,
|
||||
other = _objectWithoutPropertiesLoose(props, _excluded);
|
||||
const icon = indeterminate ? indeterminateIconProp : iconProp;
|
||||
const indeterminateIcon = indeterminate ? indeterminateIconProp : checkedIcon;
|
||||
const ownerState = _extends({}, props, {
|
||||
color,
|
||||
indeterminate,
|
||||
size
|
||||
});
|
||||
const classes = useUtilityClasses(ownerState);
|
||||
return /*#__PURE__*/_jsx(CheckboxRoot, _extends({
|
||||
type: "checkbox",
|
||||
inputProps: _extends({
|
||||
'data-indeterminate': indeterminate
|
||||
}, inputProps),
|
||||
icon: /*#__PURE__*/React.cloneElement(icon, {
|
||||
fontSize: icon.props.fontSize ?? size
|
||||
}),
|
||||
checkedIcon: /*#__PURE__*/React.cloneElement(indeterminateIcon, {
|
||||
fontSize: indeterminateIcon.props.fontSize ?? size
|
||||
}),
|
||||
ownerState: ownerState,
|
||||
ref: ref,
|
||||
className: clsx(classes.root, className)
|
||||
}, other, {
|
||||
classes: classes
|
||||
}));
|
||||
});
|
||||
process.env.NODE_ENV !== "production" ? Checkbox.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`. │
|
||||
// └─────────────────────────────────────────────────────────────────────┘
|
||||
/**
|
||||
* If `true`, the component is checked.
|
||||
*/
|
||||
checked: PropTypes.bool,
|
||||
/**
|
||||
* The icon to display when the component is checked.
|
||||
* @default <CheckBoxIcon />
|
||||
*/
|
||||
checkedIcon: PropTypes.node,
|
||||
/**
|
||||
* Override or extend the styles applied to the component.
|
||||
*/
|
||||
classes: PropTypes.object,
|
||||
/**
|
||||
* @ignore
|
||||
*/
|
||||
className: PropTypes.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 /* @typescript-to-proptypes-ignore */.oneOfType([PropTypes.oneOf(['default', 'primary', 'secondary', 'error', 'info', 'success', 'warning']), PropTypes.string]),
|
||||
/**
|
||||
* The default checked state. Use when the component is not controlled.
|
||||
*/
|
||||
defaultChecked: PropTypes.bool,
|
||||
/**
|
||||
* If `true`, the component is disabled.
|
||||
* @default false
|
||||
*/
|
||||
disabled: PropTypes.bool,
|
||||
/**
|
||||
* If `true`, the ripple effect is disabled.
|
||||
* @default false
|
||||
*/
|
||||
disableRipple: PropTypes.bool,
|
||||
/**
|
||||
* The icon to display when the component is unchecked.
|
||||
* @default <CheckBoxOutlineBlankIcon />
|
||||
*/
|
||||
icon: PropTypes.node,
|
||||
/**
|
||||
* The id of the `input` element.
|
||||
*/
|
||||
id: PropTypes.string,
|
||||
/**
|
||||
* If `true`, the component appears indeterminate.
|
||||
* This does not set the native input element to indeterminate due
|
||||
* to inconsistent behavior across browsers.
|
||||
* However, we set a `data-indeterminate` attribute on the `input`.
|
||||
* @default false
|
||||
*/
|
||||
indeterminate: PropTypes.bool,
|
||||
/**
|
||||
* The icon to display when the component is indeterminate.
|
||||
* @default <IndeterminateCheckBoxIcon />
|
||||
*/
|
||||
indeterminateIcon: PropTypes.node,
|
||||
/**
|
||||
* [Attributes](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input#Attributes) applied to the `input` element.
|
||||
*/
|
||||
inputProps: PropTypes.object,
|
||||
/**
|
||||
* Pass a ref to the `input` element.
|
||||
*/
|
||||
inputRef: refType,
|
||||
/**
|
||||
* Callback fired when the state is changed.
|
||||
*
|
||||
* @param {React.ChangeEvent<HTMLInputElement>} event The event source of the callback.
|
||||
* You can pull out the new checked state by accessing `event.target.checked` (boolean).
|
||||
*/
|
||||
onChange: PropTypes.func,
|
||||
/**
|
||||
* If `true`, the `input` element is required.
|
||||
* @default false
|
||||
*/
|
||||
required: PropTypes.bool,
|
||||
/**
|
||||
* The size of the component.
|
||||
* `small` is equivalent to the dense checkbox styling.
|
||||
* @default 'medium'
|
||||
*/
|
||||
size: PropTypes /* @typescript-to-proptypes-ignore */.oneOfType([PropTypes.oneOf(['medium', 'small']), PropTypes.string]),
|
||||
/**
|
||||
* 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 value of the component. The DOM API casts this to a string.
|
||||
* The browser uses "on" as the default value.
|
||||
*/
|
||||
value: PropTypes.any
|
||||
} : void 0;
|
||||
export default Checkbox;
|
||||
7
backend/frontend/node_modules/@mui/material/modern/Checkbox/checkboxClasses.js
generated
vendored
Normal file
7
backend/frontend/node_modules/@mui/material/modern/Checkbox/checkboxClasses.js
generated
vendored
Normal file
@@ -0,0 +1,7 @@
|
||||
import generateUtilityClasses from '@mui/utils/generateUtilityClasses';
|
||||
import generateUtilityClass from '@mui/utils/generateUtilityClass';
|
||||
export function getCheckboxUtilityClass(slot) {
|
||||
return generateUtilityClass('MuiCheckbox', slot);
|
||||
}
|
||||
const checkboxClasses = generateUtilityClasses('MuiCheckbox', ['root', 'checked', 'disabled', 'indeterminate', 'colorPrimary', 'colorSecondary', 'sizeSmall', 'sizeMedium']);
|
||||
export default checkboxClasses;
|
||||
5
backend/frontend/node_modules/@mui/material/modern/Checkbox/index.js
generated
vendored
Normal file
5
backend/frontend/node_modules/@mui/material/modern/Checkbox/index.js
generated
vendored
Normal file
@@ -0,0 +1,5 @@
|
||||
'use client';
|
||||
|
||||
export { default } from './Checkbox';
|
||||
export { default as checkboxClasses } from './checkboxClasses';
|
||||
export * from './checkboxClasses';
|
||||
506
backend/frontend/node_modules/@mui/material/modern/Chip/Chip.js
generated
vendored
Normal file
506
backend/frontend/node_modules/@mui/material/modern/Chip/Chip.js
generated
vendored
Normal file
@@ -0,0 +1,506 @@
|
||||
'use client';
|
||||
|
||||
import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/esm/objectWithoutPropertiesLoose";
|
||||
import _extends from "@babel/runtime/helpers/esm/extends";
|
||||
const _excluded = ["avatar", "className", "clickable", "color", "component", "deleteIcon", "disabled", "icon", "label", "onClick", "onDelete", "onKeyDown", "onKeyUp", "size", "variant", "tabIndex", "skipFocusWhenDisabled"];
|
||||
import * as React from 'react';
|
||||
import PropTypes from 'prop-types';
|
||||
import clsx from 'clsx';
|
||||
import composeClasses from '@mui/utils/composeClasses';
|
||||
import { alpha } from '@mui/system/colorManipulator';
|
||||
import CancelIcon from '../internal/svg-icons/Cancel';
|
||||
import useForkRef from '../utils/useForkRef';
|
||||
import unsupportedProp from '../utils/unsupportedProp';
|
||||
import capitalize from '../utils/capitalize';
|
||||
import ButtonBase from '../ButtonBase';
|
||||
import { useDefaultProps } from '../DefaultPropsProvider';
|
||||
import styled from '../styles/styled';
|
||||
import chipClasses, { getChipUtilityClass } from './chipClasses';
|
||||
import { jsx as _jsx } from "react/jsx-runtime";
|
||||
import { jsxs as _jsxs } from "react/jsx-runtime";
|
||||
const useUtilityClasses = ownerState => {
|
||||
const {
|
||||
classes,
|
||||
disabled,
|
||||
size,
|
||||
color,
|
||||
iconColor,
|
||||
onDelete,
|
||||
clickable,
|
||||
variant
|
||||
} = ownerState;
|
||||
const slots = {
|
||||
root: ['root', variant, disabled && 'disabled', `size${capitalize(size)}`, `color${capitalize(color)}`, clickable && 'clickable', clickable && `clickableColor${capitalize(color)}`, onDelete && 'deletable', onDelete && `deletableColor${capitalize(color)}`, `${variant}${capitalize(color)}`],
|
||||
label: ['label', `label${capitalize(size)}`],
|
||||
avatar: ['avatar', `avatar${capitalize(size)}`, `avatarColor${capitalize(color)}`],
|
||||
icon: ['icon', `icon${capitalize(size)}`, `iconColor${capitalize(iconColor)}`],
|
||||
deleteIcon: ['deleteIcon', `deleteIcon${capitalize(size)}`, `deleteIconColor${capitalize(color)}`, `deleteIcon${capitalize(variant)}Color${capitalize(color)}`]
|
||||
};
|
||||
return composeClasses(slots, getChipUtilityClass, classes);
|
||||
};
|
||||
const ChipRoot = styled('div', {
|
||||
name: 'MuiChip',
|
||||
slot: 'Root',
|
||||
overridesResolver: (props, styles) => {
|
||||
const {
|
||||
ownerState
|
||||
} = props;
|
||||
const {
|
||||
color,
|
||||
iconColor,
|
||||
clickable,
|
||||
onDelete,
|
||||
size,
|
||||
variant
|
||||
} = ownerState;
|
||||
return [{
|
||||
[`& .${chipClasses.avatar}`]: styles.avatar
|
||||
}, {
|
||||
[`& .${chipClasses.avatar}`]: styles[`avatar${capitalize(size)}`]
|
||||
}, {
|
||||
[`& .${chipClasses.avatar}`]: styles[`avatarColor${capitalize(color)}`]
|
||||
}, {
|
||||
[`& .${chipClasses.icon}`]: styles.icon
|
||||
}, {
|
||||
[`& .${chipClasses.icon}`]: styles[`icon${capitalize(size)}`]
|
||||
}, {
|
||||
[`& .${chipClasses.icon}`]: styles[`iconColor${capitalize(iconColor)}`]
|
||||
}, {
|
||||
[`& .${chipClasses.deleteIcon}`]: styles.deleteIcon
|
||||
}, {
|
||||
[`& .${chipClasses.deleteIcon}`]: styles[`deleteIcon${capitalize(size)}`]
|
||||
}, {
|
||||
[`& .${chipClasses.deleteIcon}`]: styles[`deleteIconColor${capitalize(color)}`]
|
||||
}, {
|
||||
[`& .${chipClasses.deleteIcon}`]: styles[`deleteIcon${capitalize(variant)}Color${capitalize(color)}`]
|
||||
}, styles.root, styles[`size${capitalize(size)}`], styles[`color${capitalize(color)}`], clickable && styles.clickable, clickable && color !== 'default' && styles[`clickableColor${capitalize(color)})`], onDelete && styles.deletable, onDelete && color !== 'default' && styles[`deletableColor${capitalize(color)}`], styles[variant], styles[`${variant}${capitalize(color)}`]];
|
||||
}
|
||||
})(({
|
||||
theme,
|
||||
ownerState
|
||||
}) => {
|
||||
const textColor = theme.palette.mode === 'light' ? theme.palette.grey[700] : theme.palette.grey[300];
|
||||
return _extends({
|
||||
maxWidth: '100%',
|
||||
fontFamily: theme.typography.fontFamily,
|
||||
fontSize: theme.typography.pxToRem(13),
|
||||
display: 'inline-flex',
|
||||
alignItems: 'center',
|
||||
justifyContent: 'center',
|
||||
height: 32,
|
||||
color: (theme.vars || theme).palette.text.primary,
|
||||
backgroundColor: (theme.vars || theme).palette.action.selected,
|
||||
borderRadius: 32 / 2,
|
||||
whiteSpace: 'nowrap',
|
||||
transition: theme.transitions.create(['background-color', 'box-shadow']),
|
||||
// reset cursor explicitly in case ButtonBase is used
|
||||
cursor: 'unset',
|
||||
// We disable the focus ring for mouse, touch and keyboard users.
|
||||
outline: 0,
|
||||
textDecoration: 'none',
|
||||
border: 0,
|
||||
// Remove `button` border
|
||||
padding: 0,
|
||||
// Remove `button` padding
|
||||
verticalAlign: 'middle',
|
||||
boxSizing: 'border-box',
|
||||
[`&.${chipClasses.disabled}`]: {
|
||||
opacity: (theme.vars || theme).palette.action.disabledOpacity,
|
||||
pointerEvents: 'none'
|
||||
},
|
||||
[`& .${chipClasses.avatar}`]: {
|
||||
marginLeft: 5,
|
||||
marginRight: -6,
|
||||
width: 24,
|
||||
height: 24,
|
||||
color: theme.vars ? theme.vars.palette.Chip.defaultAvatarColor : textColor,
|
||||
fontSize: theme.typography.pxToRem(12)
|
||||
},
|
||||
[`& .${chipClasses.avatarColorPrimary}`]: {
|
||||
color: (theme.vars || theme).palette.primary.contrastText,
|
||||
backgroundColor: (theme.vars || theme).palette.primary.dark
|
||||
},
|
||||
[`& .${chipClasses.avatarColorSecondary}`]: {
|
||||
color: (theme.vars || theme).palette.secondary.contrastText,
|
||||
backgroundColor: (theme.vars || theme).palette.secondary.dark
|
||||
},
|
||||
[`& .${chipClasses.avatarSmall}`]: {
|
||||
marginLeft: 4,
|
||||
marginRight: -4,
|
||||
width: 18,
|
||||
height: 18,
|
||||
fontSize: theme.typography.pxToRem(10)
|
||||
},
|
||||
[`& .${chipClasses.icon}`]: _extends({
|
||||
marginLeft: 5,
|
||||
marginRight: -6
|
||||
}, ownerState.size === 'small' && {
|
||||
fontSize: 18,
|
||||
marginLeft: 4,
|
||||
marginRight: -4
|
||||
}, ownerState.iconColor === ownerState.color && _extends({
|
||||
color: theme.vars ? theme.vars.palette.Chip.defaultIconColor : textColor
|
||||
}, ownerState.color !== 'default' && {
|
||||
color: 'inherit'
|
||||
})),
|
||||
[`& .${chipClasses.deleteIcon}`]: _extends({
|
||||
WebkitTapHighlightColor: 'transparent',
|
||||
color: theme.vars ? `rgba(${theme.vars.palette.text.primaryChannel} / 0.26)` : alpha(theme.palette.text.primary, 0.26),
|
||||
fontSize: 22,
|
||||
cursor: 'pointer',
|
||||
margin: '0 5px 0 -6px',
|
||||
'&:hover': {
|
||||
color: theme.vars ? `rgba(${theme.vars.palette.text.primaryChannel} / 0.4)` : alpha(theme.palette.text.primary, 0.4)
|
||||
}
|
||||
}, ownerState.size === 'small' && {
|
||||
fontSize: 16,
|
||||
marginRight: 4,
|
||||
marginLeft: -4
|
||||
}, ownerState.color !== 'default' && {
|
||||
color: theme.vars ? `rgba(${theme.vars.palette[ownerState.color].contrastTextChannel} / 0.7)` : alpha(theme.palette[ownerState.color].contrastText, 0.7),
|
||||
'&:hover, &:active': {
|
||||
color: (theme.vars || theme).palette[ownerState.color].contrastText
|
||||
}
|
||||
})
|
||||
}, ownerState.size === 'small' && {
|
||||
height: 24
|
||||
}, ownerState.color !== 'default' && {
|
||||
backgroundColor: (theme.vars || theme).palette[ownerState.color].main,
|
||||
color: (theme.vars || theme).palette[ownerState.color].contrastText
|
||||
}, ownerState.onDelete && {
|
||||
[`&.${chipClasses.focusVisible}`]: {
|
||||
backgroundColor: theme.vars ? `rgba(${theme.vars.palette.action.selectedChannel} / calc(${theme.vars.palette.action.selectedOpacity} + ${theme.vars.palette.action.focusOpacity}))` : alpha(theme.palette.action.selected, theme.palette.action.selectedOpacity + theme.palette.action.focusOpacity)
|
||||
}
|
||||
}, ownerState.onDelete && ownerState.color !== 'default' && {
|
||||
[`&.${chipClasses.focusVisible}`]: {
|
||||
backgroundColor: (theme.vars || theme).palette[ownerState.color].dark
|
||||
}
|
||||
});
|
||||
}, ({
|
||||
theme,
|
||||
ownerState
|
||||
}) => _extends({}, ownerState.clickable && {
|
||||
userSelect: 'none',
|
||||
WebkitTapHighlightColor: 'transparent',
|
||||
cursor: 'pointer',
|
||||
'&:hover': {
|
||||
backgroundColor: theme.vars ? `rgba(${theme.vars.palette.action.selectedChannel} / calc(${theme.vars.palette.action.selectedOpacity} + ${theme.vars.palette.action.hoverOpacity}))` : alpha(theme.palette.action.selected, theme.palette.action.selectedOpacity + theme.palette.action.hoverOpacity)
|
||||
},
|
||||
[`&.${chipClasses.focusVisible}`]: {
|
||||
backgroundColor: theme.vars ? `rgba(${theme.vars.palette.action.selectedChannel} / calc(${theme.vars.palette.action.selectedOpacity} + ${theme.vars.palette.action.focusOpacity}))` : alpha(theme.palette.action.selected, theme.palette.action.selectedOpacity + theme.palette.action.focusOpacity)
|
||||
},
|
||||
'&:active': {
|
||||
boxShadow: (theme.vars || theme).shadows[1]
|
||||
}
|
||||
}, ownerState.clickable && ownerState.color !== 'default' && {
|
||||
[`&:hover, &.${chipClasses.focusVisible}`]: {
|
||||
backgroundColor: (theme.vars || theme).palette[ownerState.color].dark
|
||||
}
|
||||
}), ({
|
||||
theme,
|
||||
ownerState
|
||||
}) => _extends({}, ownerState.variant === 'outlined' && {
|
||||
backgroundColor: 'transparent',
|
||||
border: theme.vars ? `1px solid ${theme.vars.palette.Chip.defaultBorder}` : `1px solid ${theme.palette.mode === 'light' ? theme.palette.grey[400] : theme.palette.grey[700]}`,
|
||||
[`&.${chipClasses.clickable}:hover`]: {
|
||||
backgroundColor: (theme.vars || theme).palette.action.hover
|
||||
},
|
||||
[`&.${chipClasses.focusVisible}`]: {
|
||||
backgroundColor: (theme.vars || theme).palette.action.focus
|
||||
},
|
||||
[`& .${chipClasses.avatar}`]: {
|
||||
marginLeft: 4
|
||||
},
|
||||
[`& .${chipClasses.avatarSmall}`]: {
|
||||
marginLeft: 2
|
||||
},
|
||||
[`& .${chipClasses.icon}`]: {
|
||||
marginLeft: 4
|
||||
},
|
||||
[`& .${chipClasses.iconSmall}`]: {
|
||||
marginLeft: 2
|
||||
},
|
||||
[`& .${chipClasses.deleteIcon}`]: {
|
||||
marginRight: 5
|
||||
},
|
||||
[`& .${chipClasses.deleteIconSmall}`]: {
|
||||
marginRight: 3
|
||||
}
|
||||
}, ownerState.variant === 'outlined' && ownerState.color !== 'default' && {
|
||||
color: (theme.vars || theme).palette[ownerState.color].main,
|
||||
border: `1px solid ${theme.vars ? `rgba(${theme.vars.palette[ownerState.color].mainChannel} / 0.7)` : alpha(theme.palette[ownerState.color].main, 0.7)}`,
|
||||
[`&.${chipClasses.clickable}:hover`]: {
|
||||
backgroundColor: theme.vars ? `rgba(${theme.vars.palette[ownerState.color].mainChannel} / ${theme.vars.palette.action.hoverOpacity})` : alpha(theme.palette[ownerState.color].main, theme.palette.action.hoverOpacity)
|
||||
},
|
||||
[`&.${chipClasses.focusVisible}`]: {
|
||||
backgroundColor: theme.vars ? `rgba(${theme.vars.palette[ownerState.color].mainChannel} / ${theme.vars.palette.action.focusOpacity})` : alpha(theme.palette[ownerState.color].main, theme.palette.action.focusOpacity)
|
||||
},
|
||||
[`& .${chipClasses.deleteIcon}`]: {
|
||||
color: theme.vars ? `rgba(${theme.vars.palette[ownerState.color].mainChannel} / 0.7)` : alpha(theme.palette[ownerState.color].main, 0.7),
|
||||
'&:hover, &:active': {
|
||||
color: (theme.vars || theme).palette[ownerState.color].main
|
||||
}
|
||||
}
|
||||
}));
|
||||
const ChipLabel = styled('span', {
|
||||
name: 'MuiChip',
|
||||
slot: 'Label',
|
||||
overridesResolver: (props, styles) => {
|
||||
const {
|
||||
ownerState
|
||||
} = props;
|
||||
const {
|
||||
size
|
||||
} = ownerState;
|
||||
return [styles.label, styles[`label${capitalize(size)}`]];
|
||||
}
|
||||
})(({
|
||||
ownerState
|
||||
}) => _extends({
|
||||
overflow: 'hidden',
|
||||
textOverflow: 'ellipsis',
|
||||
paddingLeft: 12,
|
||||
paddingRight: 12,
|
||||
whiteSpace: 'nowrap'
|
||||
}, ownerState.variant === 'outlined' && {
|
||||
paddingLeft: 11,
|
||||
paddingRight: 11
|
||||
}, ownerState.size === 'small' && {
|
||||
paddingLeft: 8,
|
||||
paddingRight: 8
|
||||
}, ownerState.size === 'small' && ownerState.variant === 'outlined' && {
|
||||
paddingLeft: 7,
|
||||
paddingRight: 7
|
||||
}));
|
||||
function isDeleteKeyboardEvent(keyboardEvent) {
|
||||
return keyboardEvent.key === 'Backspace' || keyboardEvent.key === 'Delete';
|
||||
}
|
||||
|
||||
/**
|
||||
* Chips represent complex entities in small blocks, such as a contact.
|
||||
*/
|
||||
const Chip = /*#__PURE__*/React.forwardRef(function Chip(inProps, ref) {
|
||||
const props = useDefaultProps({
|
||||
props: inProps,
|
||||
name: 'MuiChip'
|
||||
});
|
||||
const {
|
||||
avatar: avatarProp,
|
||||
className,
|
||||
clickable: clickableProp,
|
||||
color = 'default',
|
||||
component: ComponentProp,
|
||||
deleteIcon: deleteIconProp,
|
||||
disabled = false,
|
||||
icon: iconProp,
|
||||
label,
|
||||
onClick,
|
||||
onDelete,
|
||||
onKeyDown,
|
||||
onKeyUp,
|
||||
size = 'medium',
|
||||
variant = 'filled',
|
||||
tabIndex,
|
||||
skipFocusWhenDisabled = false // TODO v6: Rename to `focusableWhenDisabled`.
|
||||
} = props,
|
||||
other = _objectWithoutPropertiesLoose(props, _excluded);
|
||||
const chipRef = React.useRef(null);
|
||||
const handleRef = useForkRef(chipRef, ref);
|
||||
const handleDeleteIconClick = event => {
|
||||
// Stop the event from bubbling up to the `Chip`
|
||||
event.stopPropagation();
|
||||
if (onDelete) {
|
||||
onDelete(event);
|
||||
}
|
||||
};
|
||||
const handleKeyDown = event => {
|
||||
// Ignore events from children of `Chip`.
|
||||
if (event.currentTarget === event.target && isDeleteKeyboardEvent(event)) {
|
||||
// Will be handled in keyUp, otherwise some browsers
|
||||
// might init navigation
|
||||
event.preventDefault();
|
||||
}
|
||||
if (onKeyDown) {
|
||||
onKeyDown(event);
|
||||
}
|
||||
};
|
||||
const handleKeyUp = event => {
|
||||
// Ignore events from children of `Chip`.
|
||||
if (event.currentTarget === event.target) {
|
||||
if (onDelete && isDeleteKeyboardEvent(event)) {
|
||||
onDelete(event);
|
||||
} else if (event.key === 'Escape' && chipRef.current) {
|
||||
chipRef.current.blur();
|
||||
}
|
||||
}
|
||||
if (onKeyUp) {
|
||||
onKeyUp(event);
|
||||
}
|
||||
};
|
||||
const clickable = clickableProp !== false && onClick ? true : clickableProp;
|
||||
const component = clickable || onDelete ? ButtonBase : ComponentProp || 'div';
|
||||
const ownerState = _extends({}, props, {
|
||||
component,
|
||||
disabled,
|
||||
size,
|
||||
color,
|
||||
iconColor: /*#__PURE__*/React.isValidElement(iconProp) ? iconProp.props.color || color : color,
|
||||
onDelete: !!onDelete,
|
||||
clickable,
|
||||
variant
|
||||
});
|
||||
const classes = useUtilityClasses(ownerState);
|
||||
const moreProps = component === ButtonBase ? _extends({
|
||||
component: ComponentProp || 'div',
|
||||
focusVisibleClassName: classes.focusVisible
|
||||
}, onDelete && {
|
||||
disableRipple: true
|
||||
}) : {};
|
||||
let deleteIcon = null;
|
||||
if (onDelete) {
|
||||
deleteIcon = deleteIconProp && /*#__PURE__*/React.isValidElement(deleteIconProp) ? ( /*#__PURE__*/React.cloneElement(deleteIconProp, {
|
||||
className: clsx(deleteIconProp.props.className, classes.deleteIcon),
|
||||
onClick: handleDeleteIconClick
|
||||
})) : /*#__PURE__*/_jsx(CancelIcon, {
|
||||
className: clsx(classes.deleteIcon),
|
||||
onClick: handleDeleteIconClick
|
||||
});
|
||||
}
|
||||
let avatar = null;
|
||||
if (avatarProp && /*#__PURE__*/React.isValidElement(avatarProp)) {
|
||||
avatar = /*#__PURE__*/React.cloneElement(avatarProp, {
|
||||
className: clsx(classes.avatar, avatarProp.props.className)
|
||||
});
|
||||
}
|
||||
let icon = null;
|
||||
if (iconProp && /*#__PURE__*/React.isValidElement(iconProp)) {
|
||||
icon = /*#__PURE__*/React.cloneElement(iconProp, {
|
||||
className: clsx(classes.icon, iconProp.props.className)
|
||||
});
|
||||
}
|
||||
if (process.env.NODE_ENV !== 'production') {
|
||||
if (avatar && icon) {
|
||||
console.error('MUI: The Chip component can not handle the avatar ' + 'and the icon prop at the same time. Pick one.');
|
||||
}
|
||||
}
|
||||
return /*#__PURE__*/_jsxs(ChipRoot, _extends({
|
||||
as: component,
|
||||
className: clsx(classes.root, className),
|
||||
disabled: clickable && disabled ? true : undefined,
|
||||
onClick: onClick,
|
||||
onKeyDown: handleKeyDown,
|
||||
onKeyUp: handleKeyUp,
|
||||
ref: handleRef,
|
||||
tabIndex: skipFocusWhenDisabled && disabled ? -1 : tabIndex,
|
||||
ownerState: ownerState
|
||||
}, moreProps, other, {
|
||||
children: [avatar || icon, /*#__PURE__*/_jsx(ChipLabel, {
|
||||
className: clsx(classes.label),
|
||||
ownerState: ownerState,
|
||||
children: label
|
||||
}), deleteIcon]
|
||||
}));
|
||||
});
|
||||
process.env.NODE_ENV !== "production" ? Chip.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 Avatar element to display.
|
||||
*/
|
||||
avatar: PropTypes.element,
|
||||
/**
|
||||
* This prop isn't supported.
|
||||
* Use the `component` prop if you need to change the children structure.
|
||||
*/
|
||||
children: unsupportedProp,
|
||||
/**
|
||||
* Override or extend the styles applied to the component.
|
||||
*/
|
||||
classes: PropTypes.object,
|
||||
/**
|
||||
* @ignore
|
||||
*/
|
||||
className: PropTypes.string,
|
||||
/**
|
||||
* If `true`, the chip will appear clickable, and will raise when pressed,
|
||||
* even if the onClick prop is not defined.
|
||||
* If `false`, the chip will not appear clickable, even if onClick prop is defined.
|
||||
* This can be used, for example,
|
||||
* along with the component prop to indicate an anchor Chip is clickable.
|
||||
* Note: this controls the UI and does not affect the onClick event.
|
||||
*/
|
||||
clickable: PropTypes.bool,
|
||||
/**
|
||||
* 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 'default'
|
||||
*/
|
||||
color: PropTypes /* @typescript-to-proptypes-ignore */.oneOfType([PropTypes.oneOf(['default', 'primary', 'secondary', 'error', 'info', 'success', 'warning']), PropTypes.string]),
|
||||
/**
|
||||
* The component used for the root node.
|
||||
* Either a string to use a HTML element or a component.
|
||||
*/
|
||||
component: PropTypes.elementType,
|
||||
/**
|
||||
* Override the default delete icon element. Shown only if `onDelete` is set.
|
||||
*/
|
||||
deleteIcon: PropTypes.element,
|
||||
/**
|
||||
* If `true`, the component is disabled.
|
||||
* @default false
|
||||
*/
|
||||
disabled: PropTypes.bool,
|
||||
/**
|
||||
* Icon element.
|
||||
*/
|
||||
icon: PropTypes.element,
|
||||
/**
|
||||
* The content of the component.
|
||||
*/
|
||||
label: PropTypes.node,
|
||||
/**
|
||||
* @ignore
|
||||
*/
|
||||
onClick: PropTypes.func,
|
||||
/**
|
||||
* Callback fired when the delete icon is clicked.
|
||||
* If set, the delete icon will be shown.
|
||||
*/
|
||||
onDelete: PropTypes.func,
|
||||
/**
|
||||
* @ignore
|
||||
*/
|
||||
onKeyDown: PropTypes.func,
|
||||
/**
|
||||
* @ignore
|
||||
*/
|
||||
onKeyUp: PropTypes.func,
|
||||
/**
|
||||
* The size of the component.
|
||||
* @default 'medium'
|
||||
*/
|
||||
size: PropTypes /* @typescript-to-proptypes-ignore */.oneOfType([PropTypes.oneOf(['medium', 'small']), PropTypes.string]),
|
||||
/**
|
||||
* If `true`, allows the disabled chip to escape focus.
|
||||
* If `false`, allows the disabled chip to receive focus.
|
||||
* @default false
|
||||
*/
|
||||
skipFocusWhenDisabled: PropTypes.bool,
|
||||
/**
|
||||
* 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]),
|
||||
/**
|
||||
* @ignore
|
||||
*/
|
||||
tabIndex: PropTypes.number,
|
||||
/**
|
||||
* The variant to use.
|
||||
* @default 'filled'
|
||||
*/
|
||||
variant: PropTypes /* @typescript-to-proptypes-ignore */.oneOfType([PropTypes.oneOf(['filled', 'outlined']), PropTypes.string])
|
||||
} : void 0;
|
||||
export default Chip;
|
||||
7
backend/frontend/node_modules/@mui/material/modern/Chip/chipClasses.js
generated
vendored
Normal file
7
backend/frontend/node_modules/@mui/material/modern/Chip/chipClasses.js
generated
vendored
Normal file
@@ -0,0 +1,7 @@
|
||||
import generateUtilityClasses from '@mui/utils/generateUtilityClasses';
|
||||
import generateUtilityClass from '@mui/utils/generateUtilityClass';
|
||||
export function getChipUtilityClass(slot) {
|
||||
return generateUtilityClass('MuiChip', slot);
|
||||
}
|
||||
const chipClasses = generateUtilityClasses('MuiChip', ['root', 'sizeSmall', 'sizeMedium', 'colorError', 'colorInfo', 'colorPrimary', 'colorSecondary', 'colorSuccess', 'colorWarning', 'disabled', 'clickable', 'clickableColorPrimary', 'clickableColorSecondary', 'deletable', 'deletableColorPrimary', 'deletableColorSecondary', 'outlined', 'filled', 'outlinedPrimary', 'outlinedSecondary', 'filledPrimary', 'filledSecondary', 'avatar', 'avatarSmall', 'avatarMedium', 'avatarColorPrimary', 'avatarColorSecondary', 'icon', 'iconSmall', 'iconMedium', 'iconColorPrimary', 'iconColorSecondary', 'label', 'labelSmall', 'labelMedium', 'deleteIcon', 'deleteIconSmall', 'deleteIconMedium', 'deleteIconColorPrimary', 'deleteIconColorSecondary', 'deleteIconOutlinedColorPrimary', 'deleteIconOutlinedColorSecondary', 'deleteIconFilledColorPrimary', 'deleteIconFilledColorSecondary', 'focusVisible']);
|
||||
export default chipClasses;
|
||||
5
backend/frontend/node_modules/@mui/material/modern/Chip/index.js
generated
vendored
Normal file
5
backend/frontend/node_modules/@mui/material/modern/Chip/index.js
generated
vendored
Normal file
@@ -0,0 +1,5 @@
|
||||
'use client';
|
||||
|
||||
export { default } from './Chip';
|
||||
export { default as chipClasses } from './chipClasses';
|
||||
export * from './chipClasses';
|
||||
246
backend/frontend/node_modules/@mui/material/modern/CircularProgress/CircularProgress.js
generated
vendored
Normal file
246
backend/frontend/node_modules/@mui/material/modern/CircularProgress/CircularProgress.js
generated
vendored
Normal file
@@ -0,0 +1,246 @@
|
||||
'use client';
|
||||
|
||||
import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/esm/objectWithoutPropertiesLoose";
|
||||
import _extends from "@babel/runtime/helpers/esm/extends";
|
||||
const _excluded = ["className", "color", "disableShrink", "size", "style", "thickness", "value", "variant"];
|
||||
import * as React from 'react';
|
||||
import PropTypes from 'prop-types';
|
||||
import clsx from 'clsx';
|
||||
import chainPropTypes from '@mui/utils/chainPropTypes';
|
||||
import composeClasses from '@mui/utils/composeClasses';
|
||||
import { keyframes, css } from '@mui/system';
|
||||
import capitalize from '../utils/capitalize';
|
||||
import { useDefaultProps } from '../DefaultPropsProvider';
|
||||
import styled from '../styles/styled';
|
||||
import { getCircularProgressUtilityClass } from './circularProgressClasses';
|
||||
import { jsx as _jsx } from "react/jsx-runtime";
|
||||
const SIZE = 44;
|
||||
const circularRotateKeyframe = keyframes`
|
||||
0% {
|
||||
transform: rotate(0deg);
|
||||
}
|
||||
|
||||
100% {
|
||||
transform: rotate(360deg);
|
||||
}
|
||||
`;
|
||||
const circularDashKeyframe = keyframes`
|
||||
0% {
|
||||
stroke-dasharray: 1px, 200px;
|
||||
stroke-dashoffset: 0;
|
||||
}
|
||||
|
||||
50% {
|
||||
stroke-dasharray: 100px, 200px;
|
||||
stroke-dashoffset: -15px;
|
||||
}
|
||||
|
||||
100% {
|
||||
stroke-dasharray: 100px, 200px;
|
||||
stroke-dashoffset: -125px;
|
||||
}
|
||||
`;
|
||||
const useUtilityClasses = ownerState => {
|
||||
const {
|
||||
classes,
|
||||
variant,
|
||||
color,
|
||||
disableShrink
|
||||
} = ownerState;
|
||||
const slots = {
|
||||
root: ['root', variant, `color${capitalize(color)}`],
|
||||
svg: ['svg'],
|
||||
circle: ['circle', `circle${capitalize(variant)}`, disableShrink && 'circleDisableShrink']
|
||||
};
|
||||
return composeClasses(slots, getCircularProgressUtilityClass, classes);
|
||||
};
|
||||
const CircularProgressRoot = styled('span', {
|
||||
name: 'MuiCircularProgress',
|
||||
slot: 'Root',
|
||||
overridesResolver: (props, styles) => {
|
||||
const {
|
||||
ownerState
|
||||
} = props;
|
||||
return [styles.root, styles[ownerState.variant], styles[`color${capitalize(ownerState.color)}`]];
|
||||
}
|
||||
})(({
|
||||
ownerState,
|
||||
theme
|
||||
}) => _extends({
|
||||
display: 'inline-block'
|
||||
}, ownerState.variant === 'determinate' && {
|
||||
transition: theme.transitions.create('transform')
|
||||
}, ownerState.color !== 'inherit' && {
|
||||
color: (theme.vars || theme).palette[ownerState.color].main
|
||||
}), ({
|
||||
ownerState
|
||||
}) => ownerState.variant === 'indeterminate' && css`
|
||||
animation: ${circularRotateKeyframe} 1.4s linear infinite;
|
||||
`);
|
||||
const CircularProgressSVG = styled('svg', {
|
||||
name: 'MuiCircularProgress',
|
||||
slot: 'Svg',
|
||||
overridesResolver: (props, styles) => styles.svg
|
||||
})({
|
||||
display: 'block' // Keeps the progress centered
|
||||
});
|
||||
const CircularProgressCircle = styled('circle', {
|
||||
name: 'MuiCircularProgress',
|
||||
slot: 'Circle',
|
||||
overridesResolver: (props, styles) => {
|
||||
const {
|
||||
ownerState
|
||||
} = props;
|
||||
return [styles.circle, styles[`circle${capitalize(ownerState.variant)}`], ownerState.disableShrink && styles.circleDisableShrink];
|
||||
}
|
||||
})(({
|
||||
ownerState,
|
||||
theme
|
||||
}) => _extends({
|
||||
stroke: 'currentColor'
|
||||
}, ownerState.variant === 'determinate' && {
|
||||
transition: theme.transitions.create('stroke-dashoffset')
|
||||
}, ownerState.variant === 'indeterminate' && {
|
||||
// Some default value that looks fine waiting for the animation to kicks in.
|
||||
strokeDasharray: '80px, 200px',
|
||||
strokeDashoffset: 0 // Add the unit to fix a Edge 16 and below bug.
|
||||
}), ({
|
||||
ownerState
|
||||
}) => ownerState.variant === 'indeterminate' && !ownerState.disableShrink && css`
|
||||
animation: ${circularDashKeyframe} 1.4s ease-in-out infinite;
|
||||
`);
|
||||
|
||||
/**
|
||||
* ## ARIA
|
||||
*
|
||||
* If the progress bar is describing the loading progress of a particular region of a page,
|
||||
* you should use `aria-describedby` to point to the progress bar, and set the `aria-busy`
|
||||
* attribute to `true` on that region until it has finished loading.
|
||||
*/
|
||||
const CircularProgress = /*#__PURE__*/React.forwardRef(function CircularProgress(inProps, ref) {
|
||||
const props = useDefaultProps({
|
||||
props: inProps,
|
||||
name: 'MuiCircularProgress'
|
||||
});
|
||||
const {
|
||||
className,
|
||||
color = 'primary',
|
||||
disableShrink = false,
|
||||
size = 40,
|
||||
style,
|
||||
thickness = 3.6,
|
||||
value = 0,
|
||||
variant = 'indeterminate'
|
||||
} = props,
|
||||
other = _objectWithoutPropertiesLoose(props, _excluded);
|
||||
const ownerState = _extends({}, props, {
|
||||
color,
|
||||
disableShrink,
|
||||
size,
|
||||
thickness,
|
||||
value,
|
||||
variant
|
||||
});
|
||||
const classes = useUtilityClasses(ownerState);
|
||||
const circleStyle = {};
|
||||
const rootStyle = {};
|
||||
const rootProps = {};
|
||||
if (variant === 'determinate') {
|
||||
const circumference = 2 * Math.PI * ((SIZE - thickness) / 2);
|
||||
circleStyle.strokeDasharray = circumference.toFixed(3);
|
||||
rootProps['aria-valuenow'] = Math.round(value);
|
||||
circleStyle.strokeDashoffset = `${((100 - value) / 100 * circumference).toFixed(3)}px`;
|
||||
rootStyle.transform = 'rotate(-90deg)';
|
||||
}
|
||||
return /*#__PURE__*/_jsx(CircularProgressRoot, _extends({
|
||||
className: clsx(classes.root, className),
|
||||
style: _extends({
|
||||
width: size,
|
||||
height: size
|
||||
}, rootStyle, style),
|
||||
ownerState: ownerState,
|
||||
ref: ref,
|
||||
role: "progressbar"
|
||||
}, rootProps, other, {
|
||||
children: /*#__PURE__*/_jsx(CircularProgressSVG, {
|
||||
className: classes.svg,
|
||||
ownerState: ownerState,
|
||||
viewBox: `${SIZE / 2} ${SIZE / 2} ${SIZE} ${SIZE}`,
|
||||
children: /*#__PURE__*/_jsx(CircularProgressCircle, {
|
||||
className: classes.circle,
|
||||
style: circleStyle,
|
||||
ownerState: ownerState,
|
||||
cx: SIZE,
|
||||
cy: SIZE,
|
||||
r: (SIZE - thickness) / 2,
|
||||
fill: "none",
|
||||
strokeWidth: thickness
|
||||
})
|
||||
})
|
||||
}));
|
||||
});
|
||||
process.env.NODE_ENV !== "production" ? CircularProgress.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`. │
|
||||
// └─────────────────────────────────────────────────────────────────────┘
|
||||
/**
|
||||
* Override or extend the styles applied to the component.
|
||||
*/
|
||||
classes: PropTypes.object,
|
||||
/**
|
||||
* @ignore
|
||||
*/
|
||||
className: PropTypes.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 /* @typescript-to-proptypes-ignore */.oneOfType([PropTypes.oneOf(['inherit', 'primary', 'secondary', 'error', 'info', 'success', 'warning']), PropTypes.string]),
|
||||
/**
|
||||
* If `true`, the shrink animation is disabled.
|
||||
* This only works if variant is `indeterminate`.
|
||||
* @default false
|
||||
*/
|
||||
disableShrink: chainPropTypes(PropTypes.bool, props => {
|
||||
if (props.disableShrink && props.variant && props.variant !== 'indeterminate') {
|
||||
return new Error('MUI: You have provided the `disableShrink` prop ' + 'with a variant other than `indeterminate`. This will have no effect.');
|
||||
}
|
||||
return null;
|
||||
}),
|
||||
/**
|
||||
* The size of the component.
|
||||
* If using a number, the pixel unit is assumed.
|
||||
* If using a string, you need to provide the CSS unit, for example '3rem'.
|
||||
* @default 40
|
||||
*/
|
||||
size: PropTypes.oneOfType([PropTypes.number, PropTypes.string]),
|
||||
/**
|
||||
* @ignore
|
||||
*/
|
||||
style: 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 thickness of the circle.
|
||||
* @default 3.6
|
||||
*/
|
||||
thickness: PropTypes.number,
|
||||
/**
|
||||
* The value of the progress indicator for the determinate variant.
|
||||
* Value between 0 and 100.
|
||||
* @default 0
|
||||
*/
|
||||
value: PropTypes.number,
|
||||
/**
|
||||
* The variant to use.
|
||||
* Use indeterminate when there is no progress value.
|
||||
* @default 'indeterminate'
|
||||
*/
|
||||
variant: PropTypes.oneOf(['determinate', 'indeterminate'])
|
||||
} : void 0;
|
||||
export default CircularProgress;
|
||||
7
backend/frontend/node_modules/@mui/material/modern/CircularProgress/circularProgressClasses.js
generated
vendored
Normal file
7
backend/frontend/node_modules/@mui/material/modern/CircularProgress/circularProgressClasses.js
generated
vendored
Normal file
@@ -0,0 +1,7 @@
|
||||
import generateUtilityClasses from '@mui/utils/generateUtilityClasses';
|
||||
import generateUtilityClass from '@mui/utils/generateUtilityClass';
|
||||
export function getCircularProgressUtilityClass(slot) {
|
||||
return generateUtilityClass('MuiCircularProgress', slot);
|
||||
}
|
||||
const circularProgressClasses = generateUtilityClasses('MuiCircularProgress', ['root', 'determinate', 'indeterminate', 'colorPrimary', 'colorSecondary', 'svg', 'circle', 'circleDeterminate', 'circleIndeterminate', 'circleDisableShrink']);
|
||||
export default circularProgressClasses;
|
||||
5
backend/frontend/node_modules/@mui/material/modern/CircularProgress/index.js
generated
vendored
Normal file
5
backend/frontend/node_modules/@mui/material/modern/CircularProgress/index.js
generated
vendored
Normal file
@@ -0,0 +1,5 @@
|
||||
'use client';
|
||||
|
||||
export { default } from './CircularProgress';
|
||||
export { default as circularProgressClasses } from './circularProgressClasses';
|
||||
export * from './circularProgressClasses';
|
||||
177
backend/frontend/node_modules/@mui/material/modern/ClickAwayListener/ClickAwayListener.js
generated
vendored
Normal file
177
backend/frontend/node_modules/@mui/material/modern/ClickAwayListener/ClickAwayListener.js
generated
vendored
Normal file
@@ -0,0 +1,177 @@
|
||||
'use client';
|
||||
|
||||
import * as React from 'react';
|
||||
import PropTypes from 'prop-types';
|
||||
import { elementAcceptingRef, exactProp, unstable_ownerDocument as ownerDocument, unstable_useForkRef as useForkRef, unstable_useEventCallback as useEventCallback } from '@mui/utils';
|
||||
import getReactElementRef from '@mui/utils/getReactElementRef';
|
||||
|
||||
// TODO: return `EventHandlerName extends `on${infer EventName}` ? Lowercase<EventName> : never` once generatePropTypes runs with TS 4.1
|
||||
import { jsx as _jsx } from "react/jsx-runtime";
|
||||
function mapEventPropToEvent(eventProp) {
|
||||
return eventProp.substring(2).toLowerCase();
|
||||
}
|
||||
function clickedRootScrollbar(event, doc) {
|
||||
return doc.documentElement.clientWidth < event.clientX || doc.documentElement.clientHeight < event.clientY;
|
||||
}
|
||||
/**
|
||||
* Listen for click events that occur somewhere in the document, outside of the element itself.
|
||||
* For instance, if you need to hide a menu when people click anywhere else on your page.
|
||||
*
|
||||
* Demos:
|
||||
*
|
||||
* - [Click-Away Listener](https://mui.com/material-ui/react-click-away-listener/)
|
||||
* - [Menu](https://mui.com/material-ui/react-menu/)
|
||||
*
|
||||
* API:
|
||||
*
|
||||
* - [ClickAwayListener API](https://mui.com/material-ui/api/click-away-listener/)
|
||||
*/
|
||||
function ClickAwayListener(props) {
|
||||
const {
|
||||
children,
|
||||
disableReactTree = false,
|
||||
mouseEvent = 'onClick',
|
||||
onClickAway,
|
||||
touchEvent = 'onTouchEnd'
|
||||
} = props;
|
||||
const movedRef = React.useRef(false);
|
||||
const nodeRef = React.useRef(null);
|
||||
const activatedRef = React.useRef(false);
|
||||
const syntheticEventRef = React.useRef(false);
|
||||
React.useEffect(() => {
|
||||
// Ensure that this component is not "activated" synchronously.
|
||||
// https://github.com/facebook/react/issues/20074
|
||||
setTimeout(() => {
|
||||
activatedRef.current = true;
|
||||
}, 0);
|
||||
return () => {
|
||||
activatedRef.current = false;
|
||||
};
|
||||
}, []);
|
||||
const handleRef = useForkRef(getReactElementRef(children), nodeRef);
|
||||
|
||||
// The handler doesn't take event.defaultPrevented into account:
|
||||
//
|
||||
// event.preventDefault() is meant to stop default behaviors like
|
||||
// clicking a checkbox to check it, hitting a button to submit a form,
|
||||
// and hitting left arrow to move the cursor in a text input etc.
|
||||
// Only special HTML elements have these default behaviors.
|
||||
const handleClickAway = useEventCallback(event => {
|
||||
// Given developers can stop the propagation of the synthetic event,
|
||||
// we can only be confident with a positive value.
|
||||
const insideReactTree = syntheticEventRef.current;
|
||||
syntheticEventRef.current = false;
|
||||
const doc = ownerDocument(nodeRef.current);
|
||||
|
||||
// 1. IE11 support, which trigger the handleClickAway even after the unbind
|
||||
// 2. The child might render null.
|
||||
// 3. Behave like a blur listener.
|
||||
if (!activatedRef.current || !nodeRef.current || 'clientX' in event && clickedRootScrollbar(event, doc)) {
|
||||
return;
|
||||
}
|
||||
|
||||
// Do not act if user performed touchmove
|
||||
if (movedRef.current) {
|
||||
movedRef.current = false;
|
||||
return;
|
||||
}
|
||||
let insideDOM;
|
||||
|
||||
// If not enough, can use https://github.com/DieterHolvoet/event-propagation-path/blob/master/propagationPath.js
|
||||
if (event.composedPath) {
|
||||
insideDOM = event.composedPath().indexOf(nodeRef.current) > -1;
|
||||
} else {
|
||||
insideDOM = !doc.documentElement.contains(
|
||||
// @ts-expect-error returns `false` as intended when not dispatched from a Node
|
||||
event.target) || nodeRef.current.contains(
|
||||
// @ts-expect-error returns `false` as intended when not dispatched from a Node
|
||||
event.target);
|
||||
}
|
||||
if (!insideDOM && (disableReactTree || !insideReactTree)) {
|
||||
onClickAway(event);
|
||||
}
|
||||
});
|
||||
|
||||
// Keep track of mouse/touch events that bubbled up through the portal.
|
||||
const createHandleSynthetic = handlerName => event => {
|
||||
syntheticEventRef.current = true;
|
||||
const childrenPropsHandler = children.props[handlerName];
|
||||
if (childrenPropsHandler) {
|
||||
childrenPropsHandler(event);
|
||||
}
|
||||
};
|
||||
const childrenProps = {
|
||||
ref: handleRef
|
||||
};
|
||||
if (touchEvent !== false) {
|
||||
childrenProps[touchEvent] = createHandleSynthetic(touchEvent);
|
||||
}
|
||||
React.useEffect(() => {
|
||||
if (touchEvent !== false) {
|
||||
const mappedTouchEvent = mapEventPropToEvent(touchEvent);
|
||||
const doc = ownerDocument(nodeRef.current);
|
||||
const handleTouchMove = () => {
|
||||
movedRef.current = true;
|
||||
};
|
||||
doc.addEventListener(mappedTouchEvent, handleClickAway);
|
||||
doc.addEventListener('touchmove', handleTouchMove);
|
||||
return () => {
|
||||
doc.removeEventListener(mappedTouchEvent, handleClickAway);
|
||||
doc.removeEventListener('touchmove', handleTouchMove);
|
||||
};
|
||||
}
|
||||
return undefined;
|
||||
}, [handleClickAway, touchEvent]);
|
||||
if (mouseEvent !== false) {
|
||||
childrenProps[mouseEvent] = createHandleSynthetic(mouseEvent);
|
||||
}
|
||||
React.useEffect(() => {
|
||||
if (mouseEvent !== false) {
|
||||
const mappedMouseEvent = mapEventPropToEvent(mouseEvent);
|
||||
const doc = ownerDocument(nodeRef.current);
|
||||
doc.addEventListener(mappedMouseEvent, handleClickAway);
|
||||
return () => {
|
||||
doc.removeEventListener(mappedMouseEvent, handleClickAway);
|
||||
};
|
||||
}
|
||||
return undefined;
|
||||
}, [handleClickAway, mouseEvent]);
|
||||
return /*#__PURE__*/_jsx(React.Fragment, {
|
||||
children: /*#__PURE__*/React.cloneElement(children, childrenProps)
|
||||
});
|
||||
}
|
||||
process.env.NODE_ENV !== "production" ? ClickAwayListener.propTypes /* remove-proptypes */ = {
|
||||
// ┌────────────────────────────── Warning ──────────────────────────────┐
|
||||
// │ These PropTypes are generated from the TypeScript type definitions. │
|
||||
// │ To update them, edit the TypeScript types and run `pnpm proptypes`. │
|
||||
// └─────────────────────────────────────────────────────────────────────┘
|
||||
/**
|
||||
* The wrapped element.
|
||||
*/
|
||||
children: elementAcceptingRef.isRequired,
|
||||
/**
|
||||
* If `true`, the React tree is ignored and only the DOM tree is considered.
|
||||
* This prop changes how portaled elements are handled.
|
||||
* @default false
|
||||
*/
|
||||
disableReactTree: PropTypes.bool,
|
||||
/**
|
||||
* The mouse event to listen to. You can disable the listener by providing `false`.
|
||||
* @default 'onClick'
|
||||
*/
|
||||
mouseEvent: PropTypes.oneOf(['onClick', 'onMouseDown', 'onMouseUp', 'onPointerDown', 'onPointerUp', false]),
|
||||
/**
|
||||
* Callback fired when a "click away" event is detected.
|
||||
*/
|
||||
onClickAway: PropTypes.func.isRequired,
|
||||
/**
|
||||
* The touch event to listen to. You can disable the listener by providing `false`.
|
||||
* @default 'onTouchEnd'
|
||||
*/
|
||||
touchEvent: PropTypes.oneOf(['onTouchEnd', 'onTouchStart', false])
|
||||
} : void 0;
|
||||
if (process.env.NODE_ENV !== 'production') {
|
||||
// eslint-disable-next-line
|
||||
ClickAwayListener['propTypes' + ''] = exactProp(ClickAwayListener.propTypes);
|
||||
}
|
||||
export { ClickAwayListener };
|
||||
1
backend/frontend/node_modules/@mui/material/modern/ClickAwayListener/index.js
generated
vendored
Normal file
1
backend/frontend/node_modules/@mui/material/modern/ClickAwayListener/index.js
generated
vendored
Normal file
@@ -0,0 +1 @@
|
||||
export { ClickAwayListener as default } from './ClickAwayListener';
|
||||
377
backend/frontend/node_modules/@mui/material/modern/Collapse/Collapse.js
generated
vendored
Normal file
377
backend/frontend/node_modules/@mui/material/modern/Collapse/Collapse.js
generated
vendored
Normal file
@@ -0,0 +1,377 @@
|
||||
'use client';
|
||||
|
||||
import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/esm/objectWithoutPropertiesLoose";
|
||||
import _extends from "@babel/runtime/helpers/esm/extends";
|
||||
const _excluded = ["addEndListener", "children", "className", "collapsedSize", "component", "easing", "in", "onEnter", "onEntered", "onEntering", "onExit", "onExited", "onExiting", "orientation", "style", "timeout", "TransitionComponent"];
|
||||
import * as React from 'react';
|
||||
import clsx from 'clsx';
|
||||
import PropTypes from 'prop-types';
|
||||
import { Transition } from 'react-transition-group';
|
||||
import useTimeout from '@mui/utils/useTimeout';
|
||||
import elementTypeAcceptingRef from '@mui/utils/elementTypeAcceptingRef';
|
||||
import composeClasses from '@mui/utils/composeClasses';
|
||||
import styled from '../styles/styled';
|
||||
import { useDefaultProps } from '../DefaultPropsProvider';
|
||||
import { duration } from '../styles/createTransitions';
|
||||
import { getTransitionProps } from '../transitions/utils';
|
||||
import useTheme from '../styles/useTheme';
|
||||
import { useForkRef } from '../utils';
|
||||
import { getCollapseUtilityClass } from './collapseClasses';
|
||||
import { jsx as _jsx } from "react/jsx-runtime";
|
||||
const useUtilityClasses = ownerState => {
|
||||
const {
|
||||
orientation,
|
||||
classes
|
||||
} = ownerState;
|
||||
const slots = {
|
||||
root: ['root', `${orientation}`],
|
||||
entered: ['entered'],
|
||||
hidden: ['hidden'],
|
||||
wrapper: ['wrapper', `${orientation}`],
|
||||
wrapperInner: ['wrapperInner', `${orientation}`]
|
||||
};
|
||||
return composeClasses(slots, getCollapseUtilityClass, classes);
|
||||
};
|
||||
const CollapseRoot = styled('div', {
|
||||
name: 'MuiCollapse',
|
||||
slot: 'Root',
|
||||
overridesResolver: (props, styles) => {
|
||||
const {
|
||||
ownerState
|
||||
} = props;
|
||||
return [styles.root, styles[ownerState.orientation], ownerState.state === 'entered' && styles.entered, ownerState.state === 'exited' && !ownerState.in && ownerState.collapsedSize === '0px' && styles.hidden];
|
||||
}
|
||||
})(({
|
||||
theme,
|
||||
ownerState
|
||||
}) => _extends({
|
||||
height: 0,
|
||||
overflow: 'hidden',
|
||||
transition: theme.transitions.create('height')
|
||||
}, ownerState.orientation === 'horizontal' && {
|
||||
height: 'auto',
|
||||
width: 0,
|
||||
transition: theme.transitions.create('width')
|
||||
}, ownerState.state === 'entered' && _extends({
|
||||
height: 'auto',
|
||||
overflow: 'visible'
|
||||
}, ownerState.orientation === 'horizontal' && {
|
||||
width: 'auto'
|
||||
}), ownerState.state === 'exited' && !ownerState.in && ownerState.collapsedSize === '0px' && {
|
||||
visibility: 'hidden'
|
||||
}));
|
||||
const CollapseWrapper = styled('div', {
|
||||
name: 'MuiCollapse',
|
||||
slot: 'Wrapper',
|
||||
overridesResolver: (props, styles) => styles.wrapper
|
||||
})(({
|
||||
ownerState
|
||||
}) => _extends({
|
||||
// Hack to get children with a negative margin to not falsify the height computation.
|
||||
display: 'flex',
|
||||
width: '100%'
|
||||
}, ownerState.orientation === 'horizontal' && {
|
||||
width: 'auto',
|
||||
height: '100%'
|
||||
}));
|
||||
const CollapseWrapperInner = styled('div', {
|
||||
name: 'MuiCollapse',
|
||||
slot: 'WrapperInner',
|
||||
overridesResolver: (props, styles) => styles.wrapperInner
|
||||
})(({
|
||||
ownerState
|
||||
}) => _extends({
|
||||
width: '100%'
|
||||
}, ownerState.orientation === 'horizontal' && {
|
||||
width: 'auto',
|
||||
height: '100%'
|
||||
}));
|
||||
|
||||
/**
|
||||
* The Collapse transition is used by the
|
||||
* [Vertical Stepper](/material-ui/react-stepper/#vertical-stepper) StepContent component.
|
||||
* It uses [react-transition-group](https://github.com/reactjs/react-transition-group) internally.
|
||||
*/
|
||||
const Collapse = /*#__PURE__*/React.forwardRef(function Collapse(inProps, ref) {
|
||||
const props = useDefaultProps({
|
||||
props: inProps,
|
||||
name: 'MuiCollapse'
|
||||
});
|
||||
const {
|
||||
addEndListener,
|
||||
children,
|
||||
className,
|
||||
collapsedSize: collapsedSizeProp = '0px',
|
||||
component,
|
||||
easing,
|
||||
in: inProp,
|
||||
onEnter,
|
||||
onEntered,
|
||||
onEntering,
|
||||
onExit,
|
||||
onExited,
|
||||
onExiting,
|
||||
orientation = 'vertical',
|
||||
style,
|
||||
timeout = duration.standard,
|
||||
// eslint-disable-next-line react/prop-types
|
||||
TransitionComponent = Transition
|
||||
} = props,
|
||||
other = _objectWithoutPropertiesLoose(props, _excluded);
|
||||
const ownerState = _extends({}, props, {
|
||||
orientation,
|
||||
collapsedSize: collapsedSizeProp
|
||||
});
|
||||
const classes = useUtilityClasses(ownerState);
|
||||
const theme = useTheme();
|
||||
const timer = useTimeout();
|
||||
const wrapperRef = React.useRef(null);
|
||||
const autoTransitionDuration = React.useRef();
|
||||
const collapsedSize = typeof collapsedSizeProp === 'number' ? `${collapsedSizeProp}px` : collapsedSizeProp;
|
||||
const isHorizontal = orientation === 'horizontal';
|
||||
const size = isHorizontal ? 'width' : 'height';
|
||||
const nodeRef = React.useRef(null);
|
||||
const handleRef = useForkRef(ref, nodeRef);
|
||||
const normalizedTransitionCallback = callback => maybeIsAppearing => {
|
||||
if (callback) {
|
||||
const node = nodeRef.current;
|
||||
|
||||
// onEnterXxx and onExitXxx callbacks have a different arguments.length value.
|
||||
if (maybeIsAppearing === undefined) {
|
||||
callback(node);
|
||||
} else {
|
||||
callback(node, maybeIsAppearing);
|
||||
}
|
||||
}
|
||||
};
|
||||
const getWrapperSize = () => wrapperRef.current ? wrapperRef.current[isHorizontal ? 'clientWidth' : 'clientHeight'] : 0;
|
||||
const handleEnter = normalizedTransitionCallback((node, isAppearing) => {
|
||||
if (wrapperRef.current && isHorizontal) {
|
||||
// Set absolute position to get the size of collapsed content
|
||||
wrapperRef.current.style.position = 'absolute';
|
||||
}
|
||||
node.style[size] = collapsedSize;
|
||||
if (onEnter) {
|
||||
onEnter(node, isAppearing);
|
||||
}
|
||||
});
|
||||
const handleEntering = normalizedTransitionCallback((node, isAppearing) => {
|
||||
const wrapperSize = getWrapperSize();
|
||||
if (wrapperRef.current && isHorizontal) {
|
||||
// After the size is read reset the position back to default
|
||||
wrapperRef.current.style.position = '';
|
||||
}
|
||||
const {
|
||||
duration: transitionDuration,
|
||||
easing: transitionTimingFunction
|
||||
} = getTransitionProps({
|
||||
style,
|
||||
timeout,
|
||||
easing
|
||||
}, {
|
||||
mode: 'enter'
|
||||
});
|
||||
if (timeout === 'auto') {
|
||||
const duration2 = theme.transitions.getAutoHeightDuration(wrapperSize);
|
||||
node.style.transitionDuration = `${duration2}ms`;
|
||||
autoTransitionDuration.current = duration2;
|
||||
} else {
|
||||
node.style.transitionDuration = typeof transitionDuration === 'string' ? transitionDuration : `${transitionDuration}ms`;
|
||||
}
|
||||
node.style[size] = `${wrapperSize}px`;
|
||||
node.style.transitionTimingFunction = transitionTimingFunction;
|
||||
if (onEntering) {
|
||||
onEntering(node, isAppearing);
|
||||
}
|
||||
});
|
||||
const handleEntered = normalizedTransitionCallback((node, isAppearing) => {
|
||||
node.style[size] = 'auto';
|
||||
if (onEntered) {
|
||||
onEntered(node, isAppearing);
|
||||
}
|
||||
});
|
||||
const handleExit = normalizedTransitionCallback(node => {
|
||||
node.style[size] = `${getWrapperSize()}px`;
|
||||
if (onExit) {
|
||||
onExit(node);
|
||||
}
|
||||
});
|
||||
const handleExited = normalizedTransitionCallback(onExited);
|
||||
const handleExiting = normalizedTransitionCallback(node => {
|
||||
const wrapperSize = getWrapperSize();
|
||||
const {
|
||||
duration: transitionDuration,
|
||||
easing: transitionTimingFunction
|
||||
} = getTransitionProps({
|
||||
style,
|
||||
timeout,
|
||||
easing
|
||||
}, {
|
||||
mode: 'exit'
|
||||
});
|
||||
if (timeout === 'auto') {
|
||||
// TODO: rename getAutoHeightDuration to something more generic (width support)
|
||||
// Actually it just calculates animation duration based on size
|
||||
const duration2 = theme.transitions.getAutoHeightDuration(wrapperSize);
|
||||
node.style.transitionDuration = `${duration2}ms`;
|
||||
autoTransitionDuration.current = duration2;
|
||||
} else {
|
||||
node.style.transitionDuration = typeof transitionDuration === 'string' ? transitionDuration : `${transitionDuration}ms`;
|
||||
}
|
||||
node.style[size] = collapsedSize;
|
||||
node.style.transitionTimingFunction = transitionTimingFunction;
|
||||
if (onExiting) {
|
||||
onExiting(node);
|
||||
}
|
||||
});
|
||||
const handleAddEndListener = next => {
|
||||
if (timeout === 'auto') {
|
||||
timer.start(autoTransitionDuration.current || 0, next);
|
||||
}
|
||||
if (addEndListener) {
|
||||
// Old call signature before `react-transition-group` implemented `nodeRef`
|
||||
addEndListener(nodeRef.current, next);
|
||||
}
|
||||
};
|
||||
return /*#__PURE__*/_jsx(TransitionComponent, _extends({
|
||||
in: inProp,
|
||||
onEnter: handleEnter,
|
||||
onEntered: handleEntered,
|
||||
onEntering: handleEntering,
|
||||
onExit: handleExit,
|
||||
onExited: handleExited,
|
||||
onExiting: handleExiting,
|
||||
addEndListener: handleAddEndListener,
|
||||
nodeRef: nodeRef,
|
||||
timeout: timeout === 'auto' ? null : timeout
|
||||
}, other, {
|
||||
children: (state, childProps) => /*#__PURE__*/_jsx(CollapseRoot, _extends({
|
||||
as: component,
|
||||
className: clsx(classes.root, className, {
|
||||
'entered': classes.entered,
|
||||
'exited': !inProp && collapsedSize === '0px' && classes.hidden
|
||||
}[state]),
|
||||
style: _extends({
|
||||
[isHorizontal ? 'minWidth' : 'minHeight']: collapsedSize
|
||||
}, style),
|
||||
ref: handleRef
|
||||
}, childProps, {
|
||||
// `ownerState` is set after `childProps` to override any existing `ownerState` property in `childProps`
|
||||
// that might have been forwarded from the Transition component.
|
||||
ownerState: _extends({}, ownerState, {
|
||||
state
|
||||
}),
|
||||
children: /*#__PURE__*/_jsx(CollapseWrapper, {
|
||||
ownerState: _extends({}, ownerState, {
|
||||
state
|
||||
}),
|
||||
className: classes.wrapper,
|
||||
ref: wrapperRef,
|
||||
children: /*#__PURE__*/_jsx(CollapseWrapperInner, {
|
||||
ownerState: _extends({}, ownerState, {
|
||||
state
|
||||
}),
|
||||
className: classes.wrapperInner,
|
||||
children: children
|
||||
})
|
||||
})
|
||||
}))
|
||||
}));
|
||||
});
|
||||
process.env.NODE_ENV !== "production" ? Collapse.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`. │
|
||||
// └─────────────────────────────────────────────────────────────────────┘
|
||||
/**
|
||||
* Add a custom transition end trigger. Called with the transitioning DOM
|
||||
* node and a done callback. Allows for more fine grained transition end
|
||||
* logic. Note: Timeouts are still used as a fallback if provided.
|
||||
*/
|
||||
addEndListener: PropTypes.func,
|
||||
/**
|
||||
* The content node to be collapsed.
|
||||
*/
|
||||
children: PropTypes.node,
|
||||
/**
|
||||
* Override or extend the styles applied to the component.
|
||||
*/
|
||||
classes: PropTypes.object,
|
||||
/**
|
||||
* @ignore
|
||||
*/
|
||||
className: PropTypes.string,
|
||||
/**
|
||||
* The width (horizontal) or height (vertical) of the container when collapsed.
|
||||
* @default '0px'
|
||||
*/
|
||||
collapsedSize: PropTypes.oneOfType([PropTypes.number, PropTypes.string]),
|
||||
/**
|
||||
* The component used for the root node.
|
||||
* Either a string to use a HTML element or a component.
|
||||
*/
|
||||
component: elementTypeAcceptingRef,
|
||||
/**
|
||||
* The transition timing function.
|
||||
* You may specify a single easing or a object containing enter and exit values.
|
||||
*/
|
||||
easing: PropTypes.oneOfType([PropTypes.shape({
|
||||
enter: PropTypes.string,
|
||||
exit: PropTypes.string
|
||||
}), PropTypes.string]),
|
||||
/**
|
||||
* If `true`, the component will transition in.
|
||||
*/
|
||||
in: PropTypes.bool,
|
||||
/**
|
||||
* @ignore
|
||||
*/
|
||||
onEnter: PropTypes.func,
|
||||
/**
|
||||
* @ignore
|
||||
*/
|
||||
onEntered: PropTypes.func,
|
||||
/**
|
||||
* @ignore
|
||||
*/
|
||||
onEntering: PropTypes.func,
|
||||
/**
|
||||
* @ignore
|
||||
*/
|
||||
onExit: PropTypes.func,
|
||||
/**
|
||||
* @ignore
|
||||
*/
|
||||
onExited: PropTypes.func,
|
||||
/**
|
||||
* @ignore
|
||||
*/
|
||||
onExiting: PropTypes.func,
|
||||
/**
|
||||
* The transition orientation.
|
||||
* @default 'vertical'
|
||||
*/
|
||||
orientation: PropTypes.oneOf(['horizontal', 'vertical']),
|
||||
/**
|
||||
* @ignore
|
||||
*/
|
||||
style: 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.
|
||||
*
|
||||
* Set to 'auto' to automatically calculate transition time based on height.
|
||||
* @default duration.standard
|
||||
*/
|
||||
timeout: PropTypes.oneOfType([PropTypes.oneOf(['auto']), PropTypes.number, PropTypes.shape({
|
||||
appear: PropTypes.number,
|
||||
enter: PropTypes.number,
|
||||
exit: PropTypes.number
|
||||
})])
|
||||
} : void 0;
|
||||
Collapse.muiSupportAuto = true;
|
||||
export default Collapse;
|
||||
7
backend/frontend/node_modules/@mui/material/modern/Collapse/collapseClasses.js
generated
vendored
Normal file
7
backend/frontend/node_modules/@mui/material/modern/Collapse/collapseClasses.js
generated
vendored
Normal file
@@ -0,0 +1,7 @@
|
||||
import generateUtilityClasses from '@mui/utils/generateUtilityClasses';
|
||||
import generateUtilityClass from '@mui/utils/generateUtilityClass';
|
||||
export function getCollapseUtilityClass(slot) {
|
||||
return generateUtilityClass('MuiCollapse', slot);
|
||||
}
|
||||
const collapseClasses = generateUtilityClasses('MuiCollapse', ['root', 'horizontal', 'vertical', 'entered', 'hidden', 'wrapper', 'wrapperInner']);
|
||||
export default collapseClasses;
|
||||
5
backend/frontend/node_modules/@mui/material/modern/Collapse/index.js
generated
vendored
Normal file
5
backend/frontend/node_modules/@mui/material/modern/Collapse/index.js
generated
vendored
Normal file
@@ -0,0 +1,5 @@
|
||||
'use client';
|
||||
|
||||
export { default } from './Collapse';
|
||||
export { default as collapseClasses } from './collapseClasses';
|
||||
export * from './collapseClasses';
|
||||
67
backend/frontend/node_modules/@mui/material/modern/Container/Container.js
generated
vendored
Normal file
67
backend/frontend/node_modules/@mui/material/modern/Container/Container.js
generated
vendored
Normal file
@@ -0,0 +1,67 @@
|
||||
'use client';
|
||||
|
||||
import PropTypes from 'prop-types';
|
||||
import { createContainer } from '@mui/system';
|
||||
import capitalize from '../utils/capitalize';
|
||||
import styled from '../styles/styled';
|
||||
import { useDefaultProps } from '../DefaultPropsProvider';
|
||||
const Container = createContainer({
|
||||
createStyledComponent: styled('div', {
|
||||
name: 'MuiContainer',
|
||||
slot: 'Root',
|
||||
overridesResolver: (props, styles) => {
|
||||
const {
|
||||
ownerState
|
||||
} = props;
|
||||
return [styles.root, styles[`maxWidth${capitalize(String(ownerState.maxWidth))}`], ownerState.fixed && styles.fixed, ownerState.disableGutters && styles.disableGutters];
|
||||
}
|
||||
}),
|
||||
useThemeProps: inProps => useDefaultProps({
|
||||
props: inProps,
|
||||
name: 'MuiContainer'
|
||||
})
|
||||
});
|
||||
process.env.NODE_ENV !== "production" ? Container.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`. │
|
||||
// └─────────────────────────────────────────────────────────────────────┘
|
||||
/**
|
||||
* @ignore
|
||||
*/
|
||||
children: PropTypes.node,
|
||||
/**
|
||||
* Override or extend the styles applied to the component.
|
||||
*/
|
||||
classes: PropTypes.object,
|
||||
/**
|
||||
* The component used for the root node.
|
||||
* Either a string to use a HTML element or a component.
|
||||
*/
|
||||
component: PropTypes.elementType,
|
||||
/**
|
||||
* If `true`, the left and right padding is removed.
|
||||
* @default false
|
||||
*/
|
||||
disableGutters: PropTypes.bool,
|
||||
/**
|
||||
* Set the max-width to match the min-width of the current breakpoint.
|
||||
* This is useful if you'd prefer to design for a fixed set of sizes
|
||||
* instead of trying to accommodate a fully fluid viewport.
|
||||
* It's fluid by default.
|
||||
* @default false
|
||||
*/
|
||||
fixed: PropTypes.bool,
|
||||
/**
|
||||
* Determine the max-width of the container.
|
||||
* The container width grows with the size of the screen.
|
||||
* Set to `false` to disable `maxWidth`.
|
||||
* @default 'lg'
|
||||
*/
|
||||
maxWidth: PropTypes /* @typescript-to-proptypes-ignore */.oneOfType([PropTypes.oneOf(['xs', 'sm', 'md', 'lg', 'xl', false]), PropTypes.string]),
|
||||
/**
|
||||
* 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])
|
||||
} : void 0;
|
||||
export default Container;
|
||||
7
backend/frontend/node_modules/@mui/material/modern/Container/containerClasses.js
generated
vendored
Normal file
7
backend/frontend/node_modules/@mui/material/modern/Container/containerClasses.js
generated
vendored
Normal file
@@ -0,0 +1,7 @@
|
||||
import generateUtilityClasses from '@mui/utils/generateUtilityClasses';
|
||||
import generateUtilityClass from '@mui/utils/generateUtilityClass';
|
||||
export function getContainerUtilityClass(slot) {
|
||||
return generateUtilityClass('MuiContainer', slot);
|
||||
}
|
||||
const containerClasses = generateUtilityClasses('MuiContainer', ['root', 'disableGutters', 'fixed', 'maxWidthXs', 'maxWidthSm', 'maxWidthMd', 'maxWidthLg', 'maxWidthXl']);
|
||||
export default containerClasses;
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user