@groupeactual/ui-kit 0.4.21 → 0.4.23
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/components/Accordion/Accordion.d.ts +5 -4
- package/dist/cjs/components/Chip/Chip.d.ts +4 -0
- package/dist/cjs/components/Chip/index.d.ts +1 -0
- package/dist/cjs/components/Form/Checkbox/Checkbox.d.ts +1 -1
- package/dist/cjs/components/Form/TextField/TextField.d.ts +6 -5
- package/dist/cjs/components/Pagination/Pagination.d.ts +13 -0
- package/dist/cjs/components/Pagination/index.d.ts +1 -0
- package/dist/cjs/components/index.d.ts +2 -0
- package/dist/cjs/index.js +2067 -174
- package/dist/cjs/index.js.map +1 -1
- package/dist/esm/components/Accordion/Accordion.d.ts +5 -4
- package/dist/esm/components/Chip/Chip.d.ts +4 -0
- package/dist/esm/components/Chip/index.d.ts +1 -0
- package/dist/esm/components/Form/Checkbox/Checkbox.d.ts +1 -1
- package/dist/esm/components/Form/TextField/TextField.d.ts +6 -5
- package/dist/esm/components/Pagination/Pagination.d.ts +13 -0
- package/dist/esm/components/Pagination/index.d.ts +1 -0
- package/dist/esm/components/index.d.ts +2 -0
- package/dist/esm/index.js +2067 -176
- package/dist/esm/index.js.map +1 -1
- package/dist/index.d.ts +37 -20
- package/package.json +1 -1
- package/src/components/Accordion/Accordion.tsx +23 -5
- package/src/components/Chip/Chip.tsx +8 -0
- package/src/components/Chip/index.ts +1 -0
- package/src/components/Form/Checkbox/Checkbox.tsx +2 -2
- package/src/components/Form/TextField/TextField.tsx +12 -13
- package/src/components/Pagination/Pagination.tsx +110 -0
- package/src/components/Pagination/index.ts +1 -0
- package/src/components/index.ts +2 -0
package/dist/cjs/index.js
CHANGED
|
@@ -4638,6 +4638,17 @@ function useId(idOverride) {
|
|
|
4638
4638
|
return useGlobalId(idOverride);
|
|
4639
4639
|
}
|
|
4640
4640
|
|
|
4641
|
+
function unsupportedProp(props, propName, componentName, location, propFullName) {
|
|
4642
|
+
if (process.env.NODE_ENV === 'production') {
|
|
4643
|
+
return null;
|
|
4644
|
+
}
|
|
4645
|
+
const propFullNameSafe = propFullName || propName;
|
|
4646
|
+
if (typeof props[propName] !== 'undefined') {
|
|
4647
|
+
return new Error(`The prop \`${propFullNameSafe}\` is not supported. Please remove it.`);
|
|
4648
|
+
}
|
|
4649
|
+
return null;
|
|
4650
|
+
}
|
|
4651
|
+
|
|
4641
4652
|
/* eslint-disable react-hooks/rules-of-hooks, react-hooks/exhaustive-deps */
|
|
4642
4653
|
function useControlled({
|
|
4643
4654
|
controlled,
|
|
@@ -5938,7 +5949,7 @@ const styleFunctionSx = unstable_createStyleFunctionSx();
|
|
|
5938
5949
|
styleFunctionSx.filterProps = ['sx'];
|
|
5939
5950
|
var styleFunctionSx$1 = styleFunctionSx;
|
|
5940
5951
|
|
|
5941
|
-
const _excluded$
|
|
5952
|
+
const _excluded$R = ["sx"];
|
|
5942
5953
|
const splitProps = props => {
|
|
5943
5954
|
var _props$theme$unstable, _props$theme;
|
|
5944
5955
|
const result = {
|
|
@@ -5959,7 +5970,7 @@ function extendSxProp(props) {
|
|
|
5959
5970
|
const {
|
|
5960
5971
|
sx: inSx
|
|
5961
5972
|
} = props,
|
|
5962
|
-
other = _objectWithoutPropertiesLoose(props, _excluded$
|
|
5973
|
+
other = _objectWithoutPropertiesLoose(props, _excluded$R);
|
|
5963
5974
|
const {
|
|
5964
5975
|
systemProps,
|
|
5965
5976
|
otherProps
|
|
@@ -5985,7 +5996,7 @@ function extendSxProp(props) {
|
|
|
5985
5996
|
|
|
5986
5997
|
function r(e){var t,f,n="";if("string"==typeof e||"number"==typeof e)n+=e;else if("object"==typeof e)if(Array.isArray(e))for(t=0;t<e.length;t++)e[t]&&(f=r(e[t]))&&(n&&(n+=" "),n+=f);else for(t in e)e[t]&&(n&&(n+=" "),n+=t);return n}function clsx(){for(var e,t,f=0,n="";f<arguments.length;)(e=arguments[f++])&&(t=r(e))&&(n&&(n+=" "),n+=t);return n}
|
|
5987
5998
|
|
|
5988
|
-
const _excluded$
|
|
5999
|
+
const _excluded$Q = ["values", "unit", "step"];
|
|
5989
6000
|
const sortBreakpointsValues = values => {
|
|
5990
6001
|
const breakpointsAsArray = Object.keys(values).map(key => ({
|
|
5991
6002
|
key,
|
|
@@ -6020,7 +6031,7 @@ function createBreakpoints(breakpoints) {
|
|
|
6020
6031
|
unit = 'px',
|
|
6021
6032
|
step = 5
|
|
6022
6033
|
} = breakpoints,
|
|
6023
|
-
other = _objectWithoutPropertiesLoose(breakpoints, _excluded$
|
|
6034
|
+
other = _objectWithoutPropertiesLoose(breakpoints, _excluded$Q);
|
|
6024
6035
|
const sortedValues = sortBreakpointsValues(values);
|
|
6025
6036
|
const keys = Object.keys(sortedValues);
|
|
6026
6037
|
function up(key) {
|
|
@@ -6099,7 +6110,7 @@ function createSpacing(spacingInput = 8) {
|
|
|
6099
6110
|
return spacing;
|
|
6100
6111
|
}
|
|
6101
6112
|
|
|
6102
|
-
const _excluded$
|
|
6113
|
+
const _excluded$P = ["breakpoints", "palette", "spacing", "shape"];
|
|
6103
6114
|
function createTheme$1(options = {}, ...args) {
|
|
6104
6115
|
const {
|
|
6105
6116
|
breakpoints: breakpointsInput = {},
|
|
@@ -6107,7 +6118,7 @@ function createTheme$1(options = {}, ...args) {
|
|
|
6107
6118
|
spacing: spacingInput,
|
|
6108
6119
|
shape: shapeInput = {}
|
|
6109
6120
|
} = options,
|
|
6110
|
-
other = _objectWithoutPropertiesLoose(options, _excluded$
|
|
6121
|
+
other = _objectWithoutPropertiesLoose(options, _excluded$P);
|
|
6111
6122
|
const breakpoints = createBreakpoints(breakpointsInput);
|
|
6112
6123
|
const spacing = createSpacing(spacingInput);
|
|
6113
6124
|
let muiTheme = deepmerge({
|
|
@@ -6218,7 +6229,7 @@ function useTheme$1(defaultTheme = systemDefaultTheme$1) {
|
|
|
6218
6229
|
return useTheme$2(defaultTheme);
|
|
6219
6230
|
}
|
|
6220
6231
|
|
|
6221
|
-
const _excluded$
|
|
6232
|
+
const _excluded$O = ["className", "component"];
|
|
6222
6233
|
function createBox(options = {}) {
|
|
6223
6234
|
const {
|
|
6224
6235
|
defaultTheme,
|
|
@@ -6235,7 +6246,7 @@ function createBox(options = {}) {
|
|
|
6235
6246
|
className,
|
|
6236
6247
|
component = 'div'
|
|
6237
6248
|
} = _extendSxProp,
|
|
6238
|
-
other = _objectWithoutPropertiesLoose(_extendSxProp, _excluded$
|
|
6249
|
+
other = _objectWithoutPropertiesLoose(_extendSxProp, _excluded$O);
|
|
6239
6250
|
return /*#__PURE__*/jsxRuntime.jsx(BoxRoot, _extends({
|
|
6240
6251
|
as: component,
|
|
6241
6252
|
ref: ref,
|
|
@@ -6268,7 +6279,7 @@ process.env.NODE_ENV !== "production" ? Box$2.propTypes /* remove-proptypes */ =
|
|
|
6268
6279
|
} : void 0;
|
|
6269
6280
|
var Box$3 = Box$2;
|
|
6270
6281
|
|
|
6271
|
-
const _excluded$
|
|
6282
|
+
const _excluded$N = ["variant"];
|
|
6272
6283
|
function isEmpty$3(string) {
|
|
6273
6284
|
return string.length === 0;
|
|
6274
6285
|
}
|
|
@@ -6282,7 +6293,7 @@ function propsToClassKey(props) {
|
|
|
6282
6293
|
const {
|
|
6283
6294
|
variant
|
|
6284
6295
|
} = props,
|
|
6285
|
-
other = _objectWithoutPropertiesLoose(props, _excluded$
|
|
6296
|
+
other = _objectWithoutPropertiesLoose(props, _excluded$N);
|
|
6286
6297
|
let classKey = variant || '';
|
|
6287
6298
|
Object.keys(other).sort().forEach(key => {
|
|
6288
6299
|
if (key === 'color') {
|
|
@@ -6294,7 +6305,7 @@ function propsToClassKey(props) {
|
|
|
6294
6305
|
return classKey;
|
|
6295
6306
|
}
|
|
6296
6307
|
|
|
6297
|
-
const _excluded$
|
|
6308
|
+
const _excluded$M = ["name", "slot", "skipVariantsResolver", "skipSx", "overridesResolver"],
|
|
6298
6309
|
_excluded2$2 = ["theme"],
|
|
6299
6310
|
_excluded3 = ["theme"];
|
|
6300
6311
|
function isEmpty$2(obj) {
|
|
@@ -6381,7 +6392,7 @@ function createStyled(input = {}) {
|
|
|
6381
6392
|
skipSx: inputSkipSx,
|
|
6382
6393
|
overridesResolver
|
|
6383
6394
|
} = inputOptions,
|
|
6384
|
-
options = _objectWithoutPropertiesLoose(inputOptions, _excluded$
|
|
6395
|
+
options = _objectWithoutPropertiesLoose(inputOptions, _excluded$M);
|
|
6385
6396
|
|
|
6386
6397
|
// if skipVariantsResolver option is defined, take the value, otherwise, true for root and false for other slots.
|
|
6387
6398
|
const skipVariantsResolver = inputSkipVariantsResolver !== undefined ? inputSkipVariantsResolver : componentSlot && componentSlot !== 'Root' || false;
|
|
@@ -6813,7 +6824,7 @@ function createMixins(breakpoints, mixins) {
|
|
|
6813
6824
|
}, mixins);
|
|
6814
6825
|
}
|
|
6815
6826
|
|
|
6816
|
-
const _excluded$
|
|
6827
|
+
const _excluded$L = ["mode", "contrastThreshold", "tonalOffset"];
|
|
6817
6828
|
const light = {
|
|
6818
6829
|
// The colors used to style the text.
|
|
6819
6830
|
text: {
|
|
@@ -6982,7 +6993,7 @@ function createPalette(palette) {
|
|
|
6982
6993
|
contrastThreshold = 3,
|
|
6983
6994
|
tonalOffset = 0.2
|
|
6984
6995
|
} = palette,
|
|
6985
|
-
other = _objectWithoutPropertiesLoose(palette, _excluded$
|
|
6996
|
+
other = _objectWithoutPropertiesLoose(palette, _excluded$L);
|
|
6986
6997
|
const primary = palette.primary || getDefaultPrimary(mode);
|
|
6987
6998
|
const secondary = palette.secondary || getDefaultSecondary(mode);
|
|
6988
6999
|
const error = palette.error || getDefaultError(mode);
|
|
@@ -7106,7 +7117,7 @@ const theme2 = createTheme({ palette: {
|
|
|
7106
7117
|
return paletteOutput;
|
|
7107
7118
|
}
|
|
7108
7119
|
|
|
7109
|
-
const _excluded$
|
|
7120
|
+
const _excluded$K = ["fontFamily", "fontSize", "fontWeightLight", "fontWeightRegular", "fontWeightMedium", "fontWeightBold", "htmlFontSize", "allVariants", "pxToRem"];
|
|
7110
7121
|
function round(value) {
|
|
7111
7122
|
return Math.round(value * 1e5) / 1e5;
|
|
7112
7123
|
}
|
|
@@ -7137,7 +7148,7 @@ function createTypography(palette, typography) {
|
|
|
7137
7148
|
allVariants,
|
|
7138
7149
|
pxToRem: pxToRem2
|
|
7139
7150
|
} = _ref,
|
|
7140
|
-
other = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
7151
|
+
other = _objectWithoutPropertiesLoose(_ref, _excluded$K);
|
|
7141
7152
|
if (process.env.NODE_ENV !== 'production') {
|
|
7142
7153
|
if (typeof fontSize !== 'number') {
|
|
7143
7154
|
console.error('MUI: `fontSize` is required to be a number.');
|
|
@@ -7197,7 +7208,7 @@ function createShadow(...px) {
|
|
|
7197
7208
|
const shadows = ['none', createShadow(0, 2, 1, -1, 0, 1, 1, 0, 0, 1, 3, 0), createShadow(0, 3, 1, -2, 0, 2, 2, 0, 0, 1, 5, 0), createShadow(0, 3, 3, -2, 0, 3, 4, 0, 0, 1, 8, 0), createShadow(0, 2, 4, -1, 0, 4, 5, 0, 0, 1, 10, 0), createShadow(0, 3, 5, -1, 0, 5, 8, 0, 0, 1, 14, 0), createShadow(0, 3, 5, -1, 0, 6, 10, 0, 0, 1, 18, 0), createShadow(0, 4, 5, -2, 0, 7, 10, 1, 0, 2, 16, 1), createShadow(0, 5, 5, -3, 0, 8, 10, 1, 0, 3, 14, 2), createShadow(0, 5, 6, -3, 0, 9, 12, 1, 0, 3, 16, 2), createShadow(0, 6, 6, -3, 0, 10, 14, 1, 0, 4, 18, 3), createShadow(0, 6, 7, -4, 0, 11, 15, 1, 0, 4, 20, 3), createShadow(0, 7, 8, -4, 0, 12, 17, 2, 0, 5, 22, 4), createShadow(0, 7, 8, -4, 0, 13, 19, 2, 0, 5, 24, 4), createShadow(0, 7, 9, -4, 0, 14, 21, 2, 0, 5, 26, 4), createShadow(0, 8, 9, -5, 0, 15, 22, 2, 0, 6, 28, 5), createShadow(0, 8, 10, -5, 0, 16, 24, 2, 0, 6, 30, 5), createShadow(0, 8, 11, -5, 0, 17, 26, 2, 0, 6, 32, 5), createShadow(0, 9, 11, -5, 0, 18, 28, 2, 0, 7, 34, 6), createShadow(0, 9, 12, -6, 0, 19, 29, 2, 0, 7, 36, 6), createShadow(0, 10, 13, -6, 0, 20, 31, 3, 0, 8, 38, 7), createShadow(0, 10, 13, -6, 0, 21, 33, 3, 0, 8, 40, 7), createShadow(0, 10, 14, -6, 0, 22, 35, 3, 0, 8, 42, 7), createShadow(0, 11, 14, -7, 0, 23, 36, 3, 0, 9, 44, 8), createShadow(0, 11, 15, -7, 0, 24, 38, 3, 0, 9, 46, 8)];
|
|
7198
7209
|
var shadows$1 = shadows;
|
|
7199
7210
|
|
|
7200
|
-
const _excluded$
|
|
7211
|
+
const _excluded$J = ["duration", "easing", "delay"];
|
|
7201
7212
|
// Follow https://material.google.com/motion/duration-easing.html#duration-easing-natural-easing-curves
|
|
7202
7213
|
// to learn the context in which each easing should be used.
|
|
7203
7214
|
const easing = {
|
|
@@ -7248,7 +7259,7 @@ function createTransitions(inputTransitions) {
|
|
|
7248
7259
|
easing: easingOption = mergedEasing.easeInOut,
|
|
7249
7260
|
delay = 0
|
|
7250
7261
|
} = options,
|
|
7251
|
-
other = _objectWithoutPropertiesLoose(options, _excluded$
|
|
7262
|
+
other = _objectWithoutPropertiesLoose(options, _excluded$J);
|
|
7252
7263
|
if (process.env.NODE_ENV !== 'production') {
|
|
7253
7264
|
const isString = value => typeof value === 'string';
|
|
7254
7265
|
// IE11 support, replace with Number.isNaN
|
|
@@ -7295,7 +7306,7 @@ const zIndex = {
|
|
|
7295
7306
|
};
|
|
7296
7307
|
var zIndex$1 = zIndex;
|
|
7297
7308
|
|
|
7298
|
-
const _excluded$
|
|
7309
|
+
const _excluded$I = ["breakpoints", "mixins", "spacing", "palette", "transitions", "typography", "shape"];
|
|
7299
7310
|
function createTheme(options = {}, ...args) {
|
|
7300
7311
|
const {
|
|
7301
7312
|
mixins: mixinsInput = {},
|
|
@@ -7303,7 +7314,7 @@ function createTheme(options = {}, ...args) {
|
|
|
7303
7314
|
transitions: transitionsInput = {},
|
|
7304
7315
|
typography: typographyInput = {}
|
|
7305
7316
|
} = options,
|
|
7306
|
-
other = _objectWithoutPropertiesLoose(options, _excluded$
|
|
7317
|
+
other = _objectWithoutPropertiesLoose(options, _excluded$I);
|
|
7307
7318
|
if (options.vars) {
|
|
7308
7319
|
throw new Error(process.env.NODE_ENV !== "production" ? `MUI: \`vars\` is a private field used for CSS variables support.
|
|
7309
7320
|
Please use another name.` : formatMuiErrorMessage(18));
|
|
@@ -7545,7 +7556,7 @@ function mergeSlotProps(parameters) {
|
|
|
7545
7556
|
};
|
|
7546
7557
|
}
|
|
7547
7558
|
|
|
7548
|
-
const _excluded$
|
|
7559
|
+
const _excluded$H = ["elementType", "externalSlotProps", "ownerState"];
|
|
7549
7560
|
/**
|
|
7550
7561
|
* Builds the props to be passed into the slot of an unstyled component.
|
|
7551
7562
|
* It merges the internal props of the component with the ones supplied by the user, allowing to customize the behavior.
|
|
@@ -7560,7 +7571,7 @@ function useSlotProps(parameters) {
|
|
|
7560
7571
|
externalSlotProps,
|
|
7561
7572
|
ownerState
|
|
7562
7573
|
} = parameters,
|
|
7563
|
-
rest = _objectWithoutPropertiesLoose(parameters, _excluded$
|
|
7574
|
+
rest = _objectWithoutPropertiesLoose(parameters, _excluded$H);
|
|
7564
7575
|
const resolvedComponentsProps = resolveComponentProps(externalSlotProps, ownerState);
|
|
7565
7576
|
const {
|
|
7566
7577
|
props: mergedProps,
|
|
@@ -39034,8 +39045,8 @@ function getModalUtilityClass(slot) {
|
|
|
39034
39045
|
}
|
|
39035
39046
|
generateUtilityClasses('MuiModal', ['root', 'hidden']);
|
|
39036
39047
|
|
|
39037
|
-
const _excluded$
|
|
39038
|
-
const useUtilityClasses$
|
|
39048
|
+
const _excluded$G = ["children", "classes", "closeAfterTransition", "component", "container", "disableAutoFocus", "disableEnforceFocus", "disableEscapeKeyDown", "disablePortal", "disableRestoreFocus", "disableScrollLock", "hideBackdrop", "keepMounted", "manager", "onBackdropClick", "onClose", "onKeyDown", "open", "onTransitionEnter", "onTransitionExited", "slotProps", "slots"];
|
|
39049
|
+
const useUtilityClasses$y = ownerState => {
|
|
39039
39050
|
const {
|
|
39040
39051
|
open,
|
|
39041
39052
|
exited,
|
|
@@ -39099,7 +39110,7 @@ const ModalUnstyled = /*#__PURE__*/React__namespace.forwardRef(function ModalUns
|
|
|
39099
39110
|
slotProps = {},
|
|
39100
39111
|
slots = {}
|
|
39101
39112
|
} = props,
|
|
39102
|
-
other = _objectWithoutPropertiesLoose(props, _excluded$
|
|
39113
|
+
other = _objectWithoutPropertiesLoose(props, _excluded$G);
|
|
39103
39114
|
const [exited, setExited] = React__namespace.useState(!open);
|
|
39104
39115
|
const modal = React__namespace.useRef({});
|
|
39105
39116
|
const mountNodeRef = React__namespace.useRef(null);
|
|
@@ -39170,7 +39181,7 @@ const ModalUnstyled = /*#__PURE__*/React__namespace.forwardRef(function ModalUns
|
|
|
39170
39181
|
hideBackdrop,
|
|
39171
39182
|
keepMounted
|
|
39172
39183
|
});
|
|
39173
|
-
const classes = useUtilityClasses$
|
|
39184
|
+
const classes = useUtilityClasses$y(ownerState);
|
|
39174
39185
|
const handleEnter = () => {
|
|
39175
39186
|
setExited(false);
|
|
39176
39187
|
if (onTransitionEnter) {
|
|
@@ -39396,7 +39407,7 @@ process.env.NODE_ENV !== "production" ? ModalUnstyled.propTypes /* remove-propty
|
|
|
39396
39407
|
} : void 0;
|
|
39397
39408
|
var ModalUnstyled$1 = ModalUnstyled;
|
|
39398
39409
|
|
|
39399
|
-
const _excluded$
|
|
39410
|
+
const _excluded$F = ["onChange", "maxRows", "minRows", "style", "value"];
|
|
39400
39411
|
function getStyleValue(computedStyle, property) {
|
|
39401
39412
|
return parseInt(computedStyle[property], 10) || 0;
|
|
39402
39413
|
}
|
|
@@ -39426,7 +39437,7 @@ const TextareaAutosize = /*#__PURE__*/React__namespace.forwardRef(function Texta
|
|
|
39426
39437
|
style,
|
|
39427
39438
|
value
|
|
39428
39439
|
} = props,
|
|
39429
|
-
other = _objectWithoutPropertiesLoose(props, _excluded$
|
|
39440
|
+
other = _objectWithoutPropertiesLoose(props, _excluded$F);
|
|
39430
39441
|
const {
|
|
39431
39442
|
current: isControlled
|
|
39432
39443
|
} = React__namespace.useRef(value != null);
|
|
@@ -39637,8 +39648,8 @@ function getSvgIconUtilityClass(slot) {
|
|
|
39637
39648
|
}
|
|
39638
39649
|
generateUtilityClasses('MuiSvgIcon', ['root', 'colorPrimary', 'colorSecondary', 'colorAction', 'colorError', 'colorDisabled', 'fontSizeInherit', 'fontSizeSmall', 'fontSizeMedium', 'fontSizeLarge']);
|
|
39639
39650
|
|
|
39640
|
-
const _excluded$
|
|
39641
|
-
const useUtilityClasses$
|
|
39651
|
+
const _excluded$E = ["children", "className", "color", "component", "fontSize", "htmlColor", "inheritViewBox", "titleAccess", "viewBox"];
|
|
39652
|
+
const useUtilityClasses$x = ownerState => {
|
|
39642
39653
|
const {
|
|
39643
39654
|
color,
|
|
39644
39655
|
fontSize,
|
|
@@ -39703,7 +39714,7 @@ const SvgIcon = /*#__PURE__*/React__namespace.forwardRef(function SvgIcon(inProp
|
|
|
39703
39714
|
titleAccess,
|
|
39704
39715
|
viewBox = '0 0 24 24'
|
|
39705
39716
|
} = props,
|
|
39706
|
-
other = _objectWithoutPropertiesLoose(props, _excluded$
|
|
39717
|
+
other = _objectWithoutPropertiesLoose(props, _excluded$E);
|
|
39707
39718
|
const ownerState = _extends({}, props, {
|
|
39708
39719
|
color,
|
|
39709
39720
|
component,
|
|
@@ -39716,7 +39727,7 @@ const SvgIcon = /*#__PURE__*/React__namespace.forwardRef(function SvgIcon(inProp
|
|
|
39716
39727
|
if (!inheritViewBox) {
|
|
39717
39728
|
more.viewBox = viewBox;
|
|
39718
39729
|
}
|
|
39719
|
-
const classes = useUtilityClasses$
|
|
39730
|
+
const classes = useUtilityClasses$x(ownerState);
|
|
39720
39731
|
return /*#__PURE__*/jsxRuntime.jsxs(SvgIconRoot, _extends({
|
|
39721
39732
|
as: component,
|
|
39722
39733
|
className: clsx(classes.root, className),
|
|
@@ -40832,8 +40843,8 @@ function getCollapseUtilityClass(slot) {
|
|
|
40832
40843
|
}
|
|
40833
40844
|
generateUtilityClasses('MuiCollapse', ['root', 'horizontal', 'vertical', 'entered', 'hidden', 'wrapper', 'wrapperInner']);
|
|
40834
40845
|
|
|
40835
|
-
const _excluded$
|
|
40836
|
-
const useUtilityClasses$
|
|
40846
|
+
const _excluded$D = ["addEndListener", "children", "className", "collapsedSize", "component", "easing", "in", "onEnter", "onEntered", "onEntering", "onExit", "onExited", "onExiting", "orientation", "style", "timeout", "TransitionComponent"];
|
|
40847
|
+
const useUtilityClasses$w = ownerState => {
|
|
40837
40848
|
const {
|
|
40838
40849
|
orientation,
|
|
40839
40850
|
classes
|
|
@@ -40932,12 +40943,12 @@ const Collapse = /*#__PURE__*/React__namespace.forwardRef(function Collapse(inPr
|
|
|
40932
40943
|
// eslint-disable-next-line react/prop-types
|
|
40933
40944
|
TransitionComponent = Transition$1
|
|
40934
40945
|
} = props,
|
|
40935
|
-
other = _objectWithoutPropertiesLoose(props, _excluded$
|
|
40946
|
+
other = _objectWithoutPropertiesLoose(props, _excluded$D);
|
|
40936
40947
|
const ownerState = _extends({}, props, {
|
|
40937
40948
|
orientation,
|
|
40938
40949
|
collapsedSize: collapsedSizeProp
|
|
40939
40950
|
});
|
|
40940
|
-
const classes = useUtilityClasses$
|
|
40951
|
+
const classes = useUtilityClasses$w(ownerState);
|
|
40941
40952
|
const theme = useTheme();
|
|
40942
40953
|
const timer = React__namespace.useRef();
|
|
40943
40954
|
const wrapperRef = React__namespace.useRef(null);
|
|
@@ -41199,8 +41210,8 @@ function getPaperUtilityClass(slot) {
|
|
|
41199
41210
|
}
|
|
41200
41211
|
generateUtilityClasses('MuiPaper', ['root', 'rounded', 'outlined', 'elevation', 'elevation0', 'elevation1', 'elevation2', 'elevation3', 'elevation4', 'elevation5', 'elevation6', 'elevation7', 'elevation8', 'elevation9', 'elevation10', 'elevation11', 'elevation12', 'elevation13', 'elevation14', 'elevation15', 'elevation16', 'elevation17', 'elevation18', 'elevation19', 'elevation20', 'elevation21', 'elevation22', 'elevation23', 'elevation24']);
|
|
41201
41212
|
|
|
41202
|
-
const _excluded$
|
|
41203
|
-
const useUtilityClasses$
|
|
41213
|
+
const _excluded$C = ["className", "component", "elevation", "square", "variant"];
|
|
41214
|
+
const useUtilityClasses$v = ownerState => {
|
|
41204
41215
|
const {
|
|
41205
41216
|
square,
|
|
41206
41217
|
elevation,
|
|
@@ -41254,14 +41265,14 @@ const Paper = /*#__PURE__*/React__namespace.forwardRef(function Paper(inProps, r
|
|
|
41254
41265
|
square = false,
|
|
41255
41266
|
variant = 'elevation'
|
|
41256
41267
|
} = props,
|
|
41257
|
-
other = _objectWithoutPropertiesLoose(props, _excluded$
|
|
41268
|
+
other = _objectWithoutPropertiesLoose(props, _excluded$C);
|
|
41258
41269
|
const ownerState = _extends({}, props, {
|
|
41259
41270
|
component,
|
|
41260
41271
|
elevation,
|
|
41261
41272
|
square,
|
|
41262
41273
|
variant
|
|
41263
41274
|
});
|
|
41264
|
-
const classes = useUtilityClasses$
|
|
41275
|
+
const classes = useUtilityClasses$v(ownerState);
|
|
41265
41276
|
if (process.env.NODE_ENV !== 'production') {
|
|
41266
41277
|
// eslint-disable-next-line react-hooks/rules-of-hooks
|
|
41267
41278
|
const theme = useTheme();
|
|
@@ -41346,8 +41357,8 @@ function getAccordionUtilityClass(slot) {
|
|
|
41346
41357
|
const accordionClasses = generateUtilityClasses('MuiAccordion', ['root', 'rounded', 'expanded', 'disabled', 'gutters', 'region']);
|
|
41347
41358
|
var accordionClasses$1 = accordionClasses;
|
|
41348
41359
|
|
|
41349
|
-
const _excluded$
|
|
41350
|
-
const useUtilityClasses$
|
|
41360
|
+
const _excluded$B = ["children", "className", "defaultExpanded", "disabled", "disableGutters", "expanded", "onChange", "square", "TransitionComponent", "TransitionProps"];
|
|
41361
|
+
const useUtilityClasses$u = ownerState => {
|
|
41351
41362
|
const {
|
|
41352
41363
|
classes,
|
|
41353
41364
|
square,
|
|
@@ -41459,7 +41470,7 @@ const Accordion$1 = /*#__PURE__*/React__namespace.forwardRef(function Accordion(
|
|
|
41459
41470
|
TransitionComponent = Collapse$1,
|
|
41460
41471
|
TransitionProps
|
|
41461
41472
|
} = props,
|
|
41462
|
-
other = _objectWithoutPropertiesLoose(props, _excluded$
|
|
41473
|
+
other = _objectWithoutPropertiesLoose(props, _excluded$B);
|
|
41463
41474
|
const [expanded, setExpandedState] = useControlled({
|
|
41464
41475
|
controlled: expandedProp,
|
|
41465
41476
|
default: defaultExpanded,
|
|
@@ -41485,7 +41496,7 @@ const Accordion$1 = /*#__PURE__*/React__namespace.forwardRef(function Accordion(
|
|
|
41485
41496
|
disableGutters,
|
|
41486
41497
|
expanded
|
|
41487
41498
|
});
|
|
41488
|
-
const classes = useUtilityClasses$
|
|
41499
|
+
const classes = useUtilityClasses$u(ownerState);
|
|
41489
41500
|
return /*#__PURE__*/jsxRuntime.jsxs(AccordionRoot, _extends({
|
|
41490
41501
|
className: clsx(classes.root, className),
|
|
41491
41502
|
ref: ref,
|
|
@@ -41590,8 +41601,8 @@ function getAccordionDetailsUtilityClass(slot) {
|
|
|
41590
41601
|
}
|
|
41591
41602
|
generateUtilityClasses('MuiAccordionDetails', ['root']);
|
|
41592
41603
|
|
|
41593
|
-
const _excluded$
|
|
41594
|
-
const useUtilityClasses$
|
|
41604
|
+
const _excluded$A = ["className"];
|
|
41605
|
+
const useUtilityClasses$t = ownerState => {
|
|
41595
41606
|
const {
|
|
41596
41607
|
classes
|
|
41597
41608
|
} = ownerState;
|
|
@@ -41617,9 +41628,9 @@ const AccordionDetails = /*#__PURE__*/React__namespace.forwardRef(function Accor
|
|
|
41617
41628
|
const {
|
|
41618
41629
|
className
|
|
41619
41630
|
} = props,
|
|
41620
|
-
other = _objectWithoutPropertiesLoose(props, _excluded$
|
|
41631
|
+
other = _objectWithoutPropertiesLoose(props, _excluded$A);
|
|
41621
41632
|
const ownerState = props;
|
|
41622
|
-
const classes = useUtilityClasses$
|
|
41633
|
+
const classes = useUtilityClasses$t(ownerState);
|
|
41623
41634
|
return /*#__PURE__*/jsxRuntime.jsx(AccordionDetailsRoot, _extends({
|
|
41624
41635
|
className: clsx(classes.root, className),
|
|
41625
41636
|
ref: ref,
|
|
@@ -41732,7 +41743,7 @@ process.env.NODE_ENV !== "production" ? Ripple.propTypes = {
|
|
|
41732
41743
|
const touchRippleClasses = generateUtilityClasses('MuiTouchRipple', ['root', 'ripple', 'rippleVisible', 'ripplePulsate', 'child', 'childLeaving', 'childPulsate']);
|
|
41733
41744
|
var touchRippleClasses$1 = touchRippleClasses;
|
|
41734
41745
|
|
|
41735
|
-
const _excluded$
|
|
41746
|
+
const _excluded$z = ["center", "classes", "className"];
|
|
41736
41747
|
let _ = t => t,
|
|
41737
41748
|
_t,
|
|
41738
41749
|
_t2,
|
|
@@ -41861,7 +41872,7 @@ const TouchRipple = /*#__PURE__*/React__namespace.forwardRef(function TouchRippl
|
|
|
41861
41872
|
classes = {},
|
|
41862
41873
|
className
|
|
41863
41874
|
} = props,
|
|
41864
|
-
other = _objectWithoutPropertiesLoose(props, _excluded$
|
|
41875
|
+
other = _objectWithoutPropertiesLoose(props, _excluded$z);
|
|
41865
41876
|
const [ripples, setRipples] = React__namespace.useState([]);
|
|
41866
41877
|
const nextKey = React__namespace.useRef(0);
|
|
41867
41878
|
const rippleCallback = React__namespace.useRef(null);
|
|
@@ -42062,8 +42073,8 @@ function getButtonBaseUtilityClass(slot) {
|
|
|
42062
42073
|
const buttonBaseClasses = generateUtilityClasses('MuiButtonBase', ['root', 'disabled', 'focusVisible']);
|
|
42063
42074
|
var buttonBaseClasses$1 = buttonBaseClasses;
|
|
42064
42075
|
|
|
42065
|
-
const _excluded$
|
|
42066
|
-
const useUtilityClasses$
|
|
42076
|
+
const _excluded$y = ["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"];
|
|
42077
|
+
const useUtilityClasses$s = ownerState => {
|
|
42067
42078
|
const {
|
|
42068
42079
|
disabled,
|
|
42069
42080
|
focusVisible,
|
|
@@ -42164,7 +42175,7 @@ const ButtonBase = /*#__PURE__*/React__namespace.forwardRef(function ButtonBase(
|
|
|
42164
42175
|
touchRippleRef,
|
|
42165
42176
|
type
|
|
42166
42177
|
} = props,
|
|
42167
|
-
other = _objectWithoutPropertiesLoose(props, _excluded$
|
|
42178
|
+
other = _objectWithoutPropertiesLoose(props, _excluded$y);
|
|
42168
42179
|
const buttonRef = React__namespace.useRef(null);
|
|
42169
42180
|
const rippleRef = React__namespace.useRef(null);
|
|
42170
42181
|
const handleRippleRef = useForkRef(rippleRef, touchRippleRef);
|
|
@@ -42331,7 +42342,7 @@ const ButtonBase = /*#__PURE__*/React__namespace.forwardRef(function ButtonBase(
|
|
|
42331
42342
|
tabIndex,
|
|
42332
42343
|
focusVisible
|
|
42333
42344
|
});
|
|
42334
|
-
const classes = useUtilityClasses$
|
|
42345
|
+
const classes = useUtilityClasses$s(ownerState);
|
|
42335
42346
|
return /*#__PURE__*/jsxRuntime.jsxs(ButtonBaseRoot, _extends({
|
|
42336
42347
|
as: ComponentProp,
|
|
42337
42348
|
className: clsx(classes.root, className),
|
|
@@ -42528,8 +42539,8 @@ function getAccordionSummaryUtilityClass(slot) {
|
|
|
42528
42539
|
const accordionSummaryClasses = generateUtilityClasses('MuiAccordionSummary', ['root', 'expanded', 'focusVisible', 'disabled', 'gutters', 'contentGutters', 'content', 'expandIconWrapper']);
|
|
42529
42540
|
var accordionSummaryClasses$1 = accordionSummaryClasses;
|
|
42530
42541
|
|
|
42531
|
-
const _excluded$
|
|
42532
|
-
const useUtilityClasses$
|
|
42542
|
+
const _excluded$x = ["children", "className", "expandIcon", "focusVisibleClassName", "onClick"];
|
|
42543
|
+
const useUtilityClasses$r = ownerState => {
|
|
42533
42544
|
const {
|
|
42534
42545
|
classes,
|
|
42535
42546
|
expanded,
|
|
@@ -42623,7 +42634,7 @@ const AccordionSummary = /*#__PURE__*/React__namespace.forwardRef(function Accor
|
|
|
42623
42634
|
focusVisibleClassName,
|
|
42624
42635
|
onClick
|
|
42625
42636
|
} = props,
|
|
42626
|
-
other = _objectWithoutPropertiesLoose(props, _excluded$
|
|
42637
|
+
other = _objectWithoutPropertiesLoose(props, _excluded$x);
|
|
42627
42638
|
const {
|
|
42628
42639
|
disabled = false,
|
|
42629
42640
|
disableGutters,
|
|
@@ -42643,7 +42654,7 @@ const AccordionSummary = /*#__PURE__*/React__namespace.forwardRef(function Accor
|
|
|
42643
42654
|
disabled,
|
|
42644
42655
|
disableGutters
|
|
42645
42656
|
});
|
|
42646
|
-
const classes = useUtilityClasses$
|
|
42657
|
+
const classes = useUtilityClasses$r(ownerState);
|
|
42647
42658
|
return /*#__PURE__*/jsxRuntime.jsxs(AccordionSummaryRoot, _extends({
|
|
42648
42659
|
focusRipple: false,
|
|
42649
42660
|
disableRipple: true,
|
|
@@ -42713,8 +42724,8 @@ function getTypographyUtilityClass(slot) {
|
|
|
42713
42724
|
}
|
|
42714
42725
|
generateUtilityClasses('MuiTypography', ['root', 'h1', 'h2', 'h3', 'h4', 'h5', 'h6', 'subtitle1', 'subtitle2', 'body1', 'body2', 'inherit', 'button', 'caption', 'overline', 'alignLeft', 'alignRight', 'alignCenter', 'alignJustify', 'noWrap', 'gutterBottom', 'paragraph']);
|
|
42715
42726
|
|
|
42716
|
-
const _excluded$
|
|
42717
|
-
const useUtilityClasses$
|
|
42727
|
+
const _excluded$w = ["align", "className", "component", "gutterBottom", "noWrap", "paragraph", "variant", "variantMapping"];
|
|
42728
|
+
const useUtilityClasses$q = ownerState => {
|
|
42718
42729
|
const {
|
|
42719
42730
|
align,
|
|
42720
42731
|
gutterBottom,
|
|
@@ -42797,7 +42808,7 @@ const Typography = /*#__PURE__*/React__namespace.forwardRef(function Typography(
|
|
|
42797
42808
|
variant = 'body1',
|
|
42798
42809
|
variantMapping = defaultVariantMapping
|
|
42799
42810
|
} = props,
|
|
42800
|
-
other = _objectWithoutPropertiesLoose(props, _excluded$
|
|
42811
|
+
other = _objectWithoutPropertiesLoose(props, _excluded$w);
|
|
42801
42812
|
const ownerState = _extends({}, props, {
|
|
42802
42813
|
align,
|
|
42803
42814
|
color,
|
|
@@ -42810,7 +42821,7 @@ const Typography = /*#__PURE__*/React__namespace.forwardRef(function Typography(
|
|
|
42810
42821
|
variantMapping
|
|
42811
42822
|
});
|
|
42812
42823
|
const Component = component || (paragraph ? 'p' : variantMapping[variant] || defaultVariantMapping[variant]) || 'span';
|
|
42813
|
-
const classes = useUtilityClasses$
|
|
42824
|
+
const classes = useUtilityClasses$q(ownerState);
|
|
42814
42825
|
return /*#__PURE__*/jsxRuntime.jsx(TypographyRoot, _extends({
|
|
42815
42826
|
as: Component,
|
|
42816
42827
|
ref: ref,
|
|
@@ -42895,6 +42906,499 @@ process.env.NODE_ENV !== "production" ? Typography.propTypes /* remove-proptypes
|
|
|
42895
42906
|
} : void 0;
|
|
42896
42907
|
var Typography$1 = Typography;
|
|
42897
42908
|
|
|
42909
|
+
var CancelIcon = createSvgIcon( /*#__PURE__*/jsxRuntime.jsx("path", {
|
|
42910
|
+
d: "M12 2C6.47 2 2 6.47 2 12s4.47 10 10 10 10-4.47 10-10S17.53 2 12 2zm5 13.59L15.59 17 12 13.41 8.41 17 7 15.59 10.59 12 7 8.41 8.41 7 12 10.59 15.59 7 17 8.41 13.41 12 17 15.59z"
|
|
42911
|
+
}), 'Cancel');
|
|
42912
|
+
|
|
42913
|
+
function getChipUtilityClass(slot) {
|
|
42914
|
+
return generateUtilityClass('MuiChip', slot);
|
|
42915
|
+
}
|
|
42916
|
+
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']);
|
|
42917
|
+
var chipClasses$1 = chipClasses;
|
|
42918
|
+
|
|
42919
|
+
const _excluded$v = ["avatar", "className", "clickable", "color", "component", "deleteIcon", "disabled", "icon", "label", "onClick", "onDelete", "onKeyDown", "onKeyUp", "size", "variant", "tabIndex", "skipFocusWhenDisabled"];
|
|
42920
|
+
const useUtilityClasses$p = ownerState => {
|
|
42921
|
+
const {
|
|
42922
|
+
classes,
|
|
42923
|
+
disabled,
|
|
42924
|
+
size,
|
|
42925
|
+
color,
|
|
42926
|
+
iconColor,
|
|
42927
|
+
onDelete,
|
|
42928
|
+
clickable,
|
|
42929
|
+
variant
|
|
42930
|
+
} = ownerState;
|
|
42931
|
+
const slots = {
|
|
42932
|
+
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)}`],
|
|
42933
|
+
label: ['label', `label${capitalize(size)}`],
|
|
42934
|
+
avatar: ['avatar', `avatar${capitalize(size)}`, `avatarColor${capitalize(color)}`],
|
|
42935
|
+
icon: ['icon', `icon${capitalize(size)}`, `iconColor${capitalize(iconColor)}`],
|
|
42936
|
+
deleteIcon: ['deleteIcon', `deleteIcon${capitalize(size)}`, `deleteIconColor${capitalize(color)}`, `deleteIcon${capitalize(variant)}Color${capitalize(color)}`]
|
|
42937
|
+
};
|
|
42938
|
+
return composeClasses(slots, getChipUtilityClass, classes);
|
|
42939
|
+
};
|
|
42940
|
+
const ChipRoot = styled$1('div', {
|
|
42941
|
+
name: 'MuiChip',
|
|
42942
|
+
slot: 'Root',
|
|
42943
|
+
overridesResolver: (props, styles) => {
|
|
42944
|
+
const {
|
|
42945
|
+
ownerState
|
|
42946
|
+
} = props;
|
|
42947
|
+
const {
|
|
42948
|
+
color,
|
|
42949
|
+
iconColor,
|
|
42950
|
+
clickable,
|
|
42951
|
+
onDelete,
|
|
42952
|
+
size,
|
|
42953
|
+
variant
|
|
42954
|
+
} = ownerState;
|
|
42955
|
+
return [{
|
|
42956
|
+
[`& .${chipClasses$1.avatar}`]: styles.avatar
|
|
42957
|
+
}, {
|
|
42958
|
+
[`& .${chipClasses$1.avatar}`]: styles[`avatar${capitalize(size)}`]
|
|
42959
|
+
}, {
|
|
42960
|
+
[`& .${chipClasses$1.avatar}`]: styles[`avatarColor${capitalize(color)}`]
|
|
42961
|
+
}, {
|
|
42962
|
+
[`& .${chipClasses$1.icon}`]: styles.icon
|
|
42963
|
+
}, {
|
|
42964
|
+
[`& .${chipClasses$1.icon}`]: styles[`icon${capitalize(size)}`]
|
|
42965
|
+
}, {
|
|
42966
|
+
[`& .${chipClasses$1.icon}`]: styles[`iconColor${capitalize(iconColor)}`]
|
|
42967
|
+
}, {
|
|
42968
|
+
[`& .${chipClasses$1.deleteIcon}`]: styles.deleteIcon
|
|
42969
|
+
}, {
|
|
42970
|
+
[`& .${chipClasses$1.deleteIcon}`]: styles[`deleteIcon${capitalize(size)}`]
|
|
42971
|
+
}, {
|
|
42972
|
+
[`& .${chipClasses$1.deleteIcon}`]: styles[`deleteIconColor${capitalize(color)}`]
|
|
42973
|
+
}, {
|
|
42974
|
+
[`& .${chipClasses$1.deleteIcon}`]: styles[`deleteIcon${capitalize(variant)}Color${capitalize(color)}`]
|
|
42975
|
+
}, 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)}`]];
|
|
42976
|
+
}
|
|
42977
|
+
})(({
|
|
42978
|
+
theme,
|
|
42979
|
+
ownerState
|
|
42980
|
+
}) => {
|
|
42981
|
+
const deleteIconColor = alpha(theme.palette.text.primary, 0.26);
|
|
42982
|
+
const textColor = theme.palette.mode === 'light' ? theme.palette.grey[700] : theme.palette.grey[300];
|
|
42983
|
+
return _extends({
|
|
42984
|
+
maxWidth: '100%',
|
|
42985
|
+
fontFamily: theme.typography.fontFamily,
|
|
42986
|
+
fontSize: theme.typography.pxToRem(13),
|
|
42987
|
+
display: 'inline-flex',
|
|
42988
|
+
alignItems: 'center',
|
|
42989
|
+
justifyContent: 'center',
|
|
42990
|
+
height: 32,
|
|
42991
|
+
color: (theme.vars || theme).palette.text.primary,
|
|
42992
|
+
backgroundColor: (theme.vars || theme).palette.action.selected,
|
|
42993
|
+
borderRadius: 32 / 2,
|
|
42994
|
+
whiteSpace: 'nowrap',
|
|
42995
|
+
transition: theme.transitions.create(['background-color', 'box-shadow']),
|
|
42996
|
+
// label will inherit this from root, then `clickable` class overrides this for both
|
|
42997
|
+
cursor: 'default',
|
|
42998
|
+
// We disable the focus ring for mouse, touch and keyboard users.
|
|
42999
|
+
outline: 0,
|
|
43000
|
+
textDecoration: 'none',
|
|
43001
|
+
border: 0,
|
|
43002
|
+
// Remove `button` border
|
|
43003
|
+
padding: 0,
|
|
43004
|
+
// Remove `button` padding
|
|
43005
|
+
verticalAlign: 'middle',
|
|
43006
|
+
boxSizing: 'border-box',
|
|
43007
|
+
[`&.${chipClasses$1.disabled}`]: {
|
|
43008
|
+
opacity: (theme.vars || theme).palette.action.disabledOpacity,
|
|
43009
|
+
pointerEvents: 'none'
|
|
43010
|
+
},
|
|
43011
|
+
[`& .${chipClasses$1.avatar}`]: {
|
|
43012
|
+
marginLeft: 5,
|
|
43013
|
+
marginRight: -6,
|
|
43014
|
+
width: 24,
|
|
43015
|
+
height: 24,
|
|
43016
|
+
color: theme.vars ? theme.vars.palette.Chip.defaultAvatarColor : textColor,
|
|
43017
|
+
fontSize: theme.typography.pxToRem(12)
|
|
43018
|
+
},
|
|
43019
|
+
[`& .${chipClasses$1.avatarColorPrimary}`]: {
|
|
43020
|
+
color: (theme.vars || theme).palette.primary.contrastText,
|
|
43021
|
+
backgroundColor: (theme.vars || theme).palette.primary.dark
|
|
43022
|
+
},
|
|
43023
|
+
[`& .${chipClasses$1.avatarColorSecondary}`]: {
|
|
43024
|
+
color: (theme.vars || theme).palette.secondary.contrastText,
|
|
43025
|
+
backgroundColor: (theme.vars || theme).palette.secondary.dark
|
|
43026
|
+
},
|
|
43027
|
+
[`& .${chipClasses$1.avatarSmall}`]: {
|
|
43028
|
+
marginLeft: 4,
|
|
43029
|
+
marginRight: -4,
|
|
43030
|
+
width: 18,
|
|
43031
|
+
height: 18,
|
|
43032
|
+
fontSize: theme.typography.pxToRem(10)
|
|
43033
|
+
},
|
|
43034
|
+
[`& .${chipClasses$1.icon}`]: _extends({
|
|
43035
|
+
marginLeft: 5,
|
|
43036
|
+
marginRight: -6
|
|
43037
|
+
}, ownerState.size === 'small' && {
|
|
43038
|
+
fontSize: 18,
|
|
43039
|
+
marginLeft: 4,
|
|
43040
|
+
marginRight: -4
|
|
43041
|
+
}, ownerState.iconColor === ownerState.color && _extends({
|
|
43042
|
+
color: theme.vars ? theme.vars.palette.Chip.defaultIconColor : textColor
|
|
43043
|
+
}, ownerState.color !== 'default' && {
|
|
43044
|
+
color: 'inherit'
|
|
43045
|
+
})),
|
|
43046
|
+
[`& .${chipClasses$1.deleteIcon}`]: _extends({
|
|
43047
|
+
WebkitTapHighlightColor: 'transparent',
|
|
43048
|
+
color: theme.vars ? `rgba(${theme.vars.palette.text.primaryChannel} / 0.26)` : deleteIconColor,
|
|
43049
|
+
fontSize: 22,
|
|
43050
|
+
cursor: 'pointer',
|
|
43051
|
+
margin: '0 5px 0 -6px',
|
|
43052
|
+
'&:hover': {
|
|
43053
|
+
color: theme.vars ? `rgba(${theme.vars.palette.text.primaryChannel} / 0.4)` : alpha(deleteIconColor, 0.4)
|
|
43054
|
+
}
|
|
43055
|
+
}, ownerState.size === 'small' && {
|
|
43056
|
+
fontSize: 16,
|
|
43057
|
+
marginRight: 4,
|
|
43058
|
+
marginLeft: -4
|
|
43059
|
+
}, ownerState.color !== 'default' && {
|
|
43060
|
+
color: theme.vars ? `rgba(${theme.vars.palette[ownerState.color].contrastTextChannel} / 0.7)` : alpha(theme.palette[ownerState.color].contrastText, 0.7),
|
|
43061
|
+
'&:hover, &:active': {
|
|
43062
|
+
color: (theme.vars || theme).palette[ownerState.color].contrastText
|
|
43063
|
+
}
|
|
43064
|
+
})
|
|
43065
|
+
}, ownerState.size === 'small' && {
|
|
43066
|
+
height: 24
|
|
43067
|
+
}, ownerState.color !== 'default' && {
|
|
43068
|
+
backgroundColor: (theme.vars || theme).palette[ownerState.color].main,
|
|
43069
|
+
color: (theme.vars || theme).palette[ownerState.color].contrastText
|
|
43070
|
+
}, ownerState.onDelete && {
|
|
43071
|
+
[`&.${chipClasses$1.focusVisible}`]: {
|
|
43072
|
+
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)
|
|
43073
|
+
}
|
|
43074
|
+
}, ownerState.onDelete && ownerState.color !== 'default' && {
|
|
43075
|
+
[`&.${chipClasses$1.focusVisible}`]: {
|
|
43076
|
+
backgroundColor: (theme.vars || theme).palette[ownerState.color].dark
|
|
43077
|
+
}
|
|
43078
|
+
});
|
|
43079
|
+
}, ({
|
|
43080
|
+
theme,
|
|
43081
|
+
ownerState
|
|
43082
|
+
}) => _extends({}, ownerState.clickable && {
|
|
43083
|
+
userSelect: 'none',
|
|
43084
|
+
WebkitTapHighlightColor: 'transparent',
|
|
43085
|
+
cursor: 'pointer',
|
|
43086
|
+
'&:hover': {
|
|
43087
|
+
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)
|
|
43088
|
+
},
|
|
43089
|
+
[`&.${chipClasses$1.focusVisible}`]: {
|
|
43090
|
+
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)
|
|
43091
|
+
},
|
|
43092
|
+
'&:active': {
|
|
43093
|
+
boxShadow: (theme.vars || theme).shadows[1]
|
|
43094
|
+
}
|
|
43095
|
+
}, ownerState.clickable && ownerState.color !== 'default' && {
|
|
43096
|
+
[`&:hover, &.${chipClasses$1.focusVisible}`]: {
|
|
43097
|
+
backgroundColor: (theme.vars || theme).palette[ownerState.color].dark
|
|
43098
|
+
}
|
|
43099
|
+
}), ({
|
|
43100
|
+
theme,
|
|
43101
|
+
ownerState
|
|
43102
|
+
}) => _extends({}, ownerState.variant === 'outlined' && {
|
|
43103
|
+
backgroundColor: 'transparent',
|
|
43104
|
+
border: theme.vars ? `1px solid ${theme.vars.palette.Chip.defaultBorder}` : `1px solid ${theme.palette.mode === 'light' ? theme.palette.grey[400] : theme.palette.grey[700]}`,
|
|
43105
|
+
[`&.${chipClasses$1.clickable}:hover`]: {
|
|
43106
|
+
backgroundColor: (theme.vars || theme).palette.action.hover
|
|
43107
|
+
},
|
|
43108
|
+
[`&.${chipClasses$1.focusVisible}`]: {
|
|
43109
|
+
backgroundColor: (theme.vars || theme).palette.action.focus
|
|
43110
|
+
},
|
|
43111
|
+
[`& .${chipClasses$1.avatar}`]: {
|
|
43112
|
+
marginLeft: 4
|
|
43113
|
+
},
|
|
43114
|
+
[`& .${chipClasses$1.avatarSmall}`]: {
|
|
43115
|
+
marginLeft: 2
|
|
43116
|
+
},
|
|
43117
|
+
[`& .${chipClasses$1.icon}`]: {
|
|
43118
|
+
marginLeft: 4
|
|
43119
|
+
},
|
|
43120
|
+
[`& .${chipClasses$1.iconSmall}`]: {
|
|
43121
|
+
marginLeft: 2
|
|
43122
|
+
},
|
|
43123
|
+
[`& .${chipClasses$1.deleteIcon}`]: {
|
|
43124
|
+
marginRight: 5
|
|
43125
|
+
},
|
|
43126
|
+
[`& .${chipClasses$1.deleteIconSmall}`]: {
|
|
43127
|
+
marginRight: 3
|
|
43128
|
+
}
|
|
43129
|
+
}, ownerState.variant === 'outlined' && ownerState.color !== 'default' && {
|
|
43130
|
+
color: (theme.vars || theme).palette[ownerState.color].main,
|
|
43131
|
+
border: `1px solid ${theme.vars ? `rgba(${theme.vars.palette[ownerState.color].mainChannel} / 0.7)` : alpha(theme.palette[ownerState.color].main, 0.7)}`,
|
|
43132
|
+
[`&.${chipClasses$1.clickable}:hover`]: {
|
|
43133
|
+
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)
|
|
43134
|
+
},
|
|
43135
|
+
[`&.${chipClasses$1.focusVisible}`]: {
|
|
43136
|
+
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)
|
|
43137
|
+
},
|
|
43138
|
+
[`& .${chipClasses$1.deleteIcon}`]: {
|
|
43139
|
+
color: theme.vars ? `rgba(${theme.vars.palette[ownerState.color].mainChannel} / 0.7)` : alpha(theme.palette[ownerState.color].main, 0.7),
|
|
43140
|
+
'&:hover, &:active': {
|
|
43141
|
+
color: (theme.vars || theme).palette[ownerState.color].main
|
|
43142
|
+
}
|
|
43143
|
+
}
|
|
43144
|
+
}));
|
|
43145
|
+
const ChipLabel = styled$1('span', {
|
|
43146
|
+
name: 'MuiChip',
|
|
43147
|
+
slot: 'Label',
|
|
43148
|
+
overridesResolver: (props, styles) => {
|
|
43149
|
+
const {
|
|
43150
|
+
ownerState
|
|
43151
|
+
} = props;
|
|
43152
|
+
const {
|
|
43153
|
+
size
|
|
43154
|
+
} = ownerState;
|
|
43155
|
+
return [styles.label, styles[`label${capitalize(size)}`]];
|
|
43156
|
+
}
|
|
43157
|
+
})(({
|
|
43158
|
+
ownerState
|
|
43159
|
+
}) => _extends({
|
|
43160
|
+
overflow: 'hidden',
|
|
43161
|
+
textOverflow: 'ellipsis',
|
|
43162
|
+
paddingLeft: 12,
|
|
43163
|
+
paddingRight: 12,
|
|
43164
|
+
whiteSpace: 'nowrap'
|
|
43165
|
+
}, ownerState.size === 'small' && {
|
|
43166
|
+
paddingLeft: 8,
|
|
43167
|
+
paddingRight: 8
|
|
43168
|
+
}));
|
|
43169
|
+
function isDeleteKeyboardEvent(keyboardEvent) {
|
|
43170
|
+
return keyboardEvent.key === 'Backspace' || keyboardEvent.key === 'Delete';
|
|
43171
|
+
}
|
|
43172
|
+
|
|
43173
|
+
/**
|
|
43174
|
+
* Chips represent complex entities in small blocks, such as a contact.
|
|
43175
|
+
*/
|
|
43176
|
+
const Chip$1 = /*#__PURE__*/React__namespace.forwardRef(function Chip(inProps, ref) {
|
|
43177
|
+
const props = useThemeProps({
|
|
43178
|
+
props: inProps,
|
|
43179
|
+
name: 'MuiChip'
|
|
43180
|
+
});
|
|
43181
|
+
const {
|
|
43182
|
+
avatar: avatarProp,
|
|
43183
|
+
className,
|
|
43184
|
+
clickable: clickableProp,
|
|
43185
|
+
color = 'default',
|
|
43186
|
+
component: ComponentProp,
|
|
43187
|
+
deleteIcon: deleteIconProp,
|
|
43188
|
+
disabled = false,
|
|
43189
|
+
icon: iconProp,
|
|
43190
|
+
label,
|
|
43191
|
+
onClick,
|
|
43192
|
+
onDelete,
|
|
43193
|
+
onKeyDown,
|
|
43194
|
+
onKeyUp,
|
|
43195
|
+
size = 'medium',
|
|
43196
|
+
variant = 'filled',
|
|
43197
|
+
tabIndex,
|
|
43198
|
+
skipFocusWhenDisabled = false
|
|
43199
|
+
} = props,
|
|
43200
|
+
other = _objectWithoutPropertiesLoose(props, _excluded$v);
|
|
43201
|
+
const chipRef = React__namespace.useRef(null);
|
|
43202
|
+
const handleRef = useForkRef(chipRef, ref);
|
|
43203
|
+
const handleDeleteIconClick = event => {
|
|
43204
|
+
// Stop the event from bubbling up to the `Chip`
|
|
43205
|
+
event.stopPropagation();
|
|
43206
|
+
if (onDelete) {
|
|
43207
|
+
onDelete(event);
|
|
43208
|
+
}
|
|
43209
|
+
};
|
|
43210
|
+
const handleKeyDown = event => {
|
|
43211
|
+
// Ignore events from children of `Chip`.
|
|
43212
|
+
if (event.currentTarget === event.target && isDeleteKeyboardEvent(event)) {
|
|
43213
|
+
// Will be handled in keyUp, otherwise some browsers
|
|
43214
|
+
// might init navigation
|
|
43215
|
+
event.preventDefault();
|
|
43216
|
+
}
|
|
43217
|
+
if (onKeyDown) {
|
|
43218
|
+
onKeyDown(event);
|
|
43219
|
+
}
|
|
43220
|
+
};
|
|
43221
|
+
const handleKeyUp = event => {
|
|
43222
|
+
// Ignore events from children of `Chip`.
|
|
43223
|
+
if (event.currentTarget === event.target) {
|
|
43224
|
+
if (onDelete && isDeleteKeyboardEvent(event)) {
|
|
43225
|
+
onDelete(event);
|
|
43226
|
+
} else if (event.key === 'Escape' && chipRef.current) {
|
|
43227
|
+
chipRef.current.blur();
|
|
43228
|
+
}
|
|
43229
|
+
}
|
|
43230
|
+
if (onKeyUp) {
|
|
43231
|
+
onKeyUp(event);
|
|
43232
|
+
}
|
|
43233
|
+
};
|
|
43234
|
+
const clickable = clickableProp !== false && onClick ? true : clickableProp;
|
|
43235
|
+
const component = clickable || onDelete ? ButtonBase$1 : ComponentProp || 'div';
|
|
43236
|
+
const ownerState = _extends({}, props, {
|
|
43237
|
+
component,
|
|
43238
|
+
disabled,
|
|
43239
|
+
size,
|
|
43240
|
+
color,
|
|
43241
|
+
iconColor: /*#__PURE__*/React__namespace.isValidElement(iconProp) ? iconProp.props.color || color : color,
|
|
43242
|
+
onDelete: !!onDelete,
|
|
43243
|
+
clickable,
|
|
43244
|
+
variant
|
|
43245
|
+
});
|
|
43246
|
+
const classes = useUtilityClasses$p(ownerState);
|
|
43247
|
+
const moreProps = component === ButtonBase$1 ? _extends({
|
|
43248
|
+
component: ComponentProp || 'div',
|
|
43249
|
+
focusVisibleClassName: classes.focusVisible
|
|
43250
|
+
}, onDelete && {
|
|
43251
|
+
disableRipple: true
|
|
43252
|
+
}) : {};
|
|
43253
|
+
let deleteIcon = null;
|
|
43254
|
+
if (onDelete) {
|
|
43255
|
+
deleteIcon = deleteIconProp && /*#__PURE__*/React__namespace.isValidElement(deleteIconProp) ? /*#__PURE__*/React__namespace.cloneElement(deleteIconProp, {
|
|
43256
|
+
className: clsx(deleteIconProp.props.className, classes.deleteIcon),
|
|
43257
|
+
onClick: handleDeleteIconClick
|
|
43258
|
+
}) : /*#__PURE__*/jsxRuntime.jsx(CancelIcon, {
|
|
43259
|
+
className: clsx(classes.deleteIcon),
|
|
43260
|
+
onClick: handleDeleteIconClick
|
|
43261
|
+
});
|
|
43262
|
+
}
|
|
43263
|
+
let avatar = null;
|
|
43264
|
+
if (avatarProp && /*#__PURE__*/React__namespace.isValidElement(avatarProp)) {
|
|
43265
|
+
avatar = /*#__PURE__*/React__namespace.cloneElement(avatarProp, {
|
|
43266
|
+
className: clsx(classes.avatar, avatarProp.props.className)
|
|
43267
|
+
});
|
|
43268
|
+
}
|
|
43269
|
+
let icon = null;
|
|
43270
|
+
if (iconProp && /*#__PURE__*/React__namespace.isValidElement(iconProp)) {
|
|
43271
|
+
icon = /*#__PURE__*/React__namespace.cloneElement(iconProp, {
|
|
43272
|
+
className: clsx(classes.icon, iconProp.props.className)
|
|
43273
|
+
});
|
|
43274
|
+
}
|
|
43275
|
+
if (process.env.NODE_ENV !== 'production') {
|
|
43276
|
+
if (avatar && icon) {
|
|
43277
|
+
console.error('MUI: The Chip component can not handle the avatar ' + 'and the icon prop at the same time. Pick one.');
|
|
43278
|
+
}
|
|
43279
|
+
}
|
|
43280
|
+
return /*#__PURE__*/jsxRuntime.jsxs(ChipRoot, _extends({
|
|
43281
|
+
as: component,
|
|
43282
|
+
className: clsx(classes.root, className),
|
|
43283
|
+
disabled: clickable && disabled ? true : undefined,
|
|
43284
|
+
onClick: onClick,
|
|
43285
|
+
onKeyDown: handleKeyDown,
|
|
43286
|
+
onKeyUp: handleKeyUp,
|
|
43287
|
+
ref: handleRef,
|
|
43288
|
+
tabIndex: skipFocusWhenDisabled && disabled ? -1 : tabIndex,
|
|
43289
|
+
ownerState: ownerState
|
|
43290
|
+
}, moreProps, other, {
|
|
43291
|
+
children: [avatar || icon, /*#__PURE__*/jsxRuntime.jsx(ChipLabel, {
|
|
43292
|
+
className: clsx(classes.label),
|
|
43293
|
+
ownerState: ownerState,
|
|
43294
|
+
children: label
|
|
43295
|
+
}), deleteIcon]
|
|
43296
|
+
}));
|
|
43297
|
+
});
|
|
43298
|
+
process.env.NODE_ENV !== "production" ? Chip$1.propTypes /* remove-proptypes */ = {
|
|
43299
|
+
// ----------------------------- Warning --------------------------------
|
|
43300
|
+
// | These PropTypes are generated from the TypeScript type definitions |
|
|
43301
|
+
// | To update them edit the d.ts file and run "yarn proptypes" |
|
|
43302
|
+
// ----------------------------------------------------------------------
|
|
43303
|
+
/**
|
|
43304
|
+
* The Avatar element to display.
|
|
43305
|
+
*/
|
|
43306
|
+
avatar: PropTypes.element,
|
|
43307
|
+
/**
|
|
43308
|
+
* This prop isn't supported.
|
|
43309
|
+
* Use the `component` prop if you need to change the children structure.
|
|
43310
|
+
*/
|
|
43311
|
+
children: unsupportedProp,
|
|
43312
|
+
/**
|
|
43313
|
+
* Override or extend the styles applied to the component.
|
|
43314
|
+
*/
|
|
43315
|
+
classes: PropTypes.object,
|
|
43316
|
+
/**
|
|
43317
|
+
* @ignore
|
|
43318
|
+
*/
|
|
43319
|
+
className: PropTypes.string,
|
|
43320
|
+
/**
|
|
43321
|
+
* If `true`, the chip will appear clickable, and will raise when pressed,
|
|
43322
|
+
* even if the onClick prop is not defined.
|
|
43323
|
+
* If `false`, the chip will not appear clickable, even if onClick prop is defined.
|
|
43324
|
+
* This can be used, for example,
|
|
43325
|
+
* along with the component prop to indicate an anchor Chip is clickable.
|
|
43326
|
+
* Note: this controls the UI and does not affect the onClick event.
|
|
43327
|
+
*/
|
|
43328
|
+
clickable: PropTypes.bool,
|
|
43329
|
+
/**
|
|
43330
|
+
* The color of the component.
|
|
43331
|
+
* It supports both default and custom theme colors, which can be added as shown in the
|
|
43332
|
+
* [palette customization guide](https://mui.com/material-ui/customization/palette/#adding-new-colors).
|
|
43333
|
+
* @default 'default'
|
|
43334
|
+
*/
|
|
43335
|
+
color: PropTypes /* @typescript-to-proptypes-ignore */.oneOfType([PropTypes.oneOf(['default', 'primary', 'secondary', 'error', 'info', 'success', 'warning']), PropTypes.string]),
|
|
43336
|
+
/**
|
|
43337
|
+
* The component used for the root node.
|
|
43338
|
+
* Either a string to use a HTML element or a component.
|
|
43339
|
+
*/
|
|
43340
|
+
component: PropTypes.elementType,
|
|
43341
|
+
/**
|
|
43342
|
+
* Override the default delete icon element. Shown only if `onDelete` is set.
|
|
43343
|
+
*/
|
|
43344
|
+
deleteIcon: PropTypes.element,
|
|
43345
|
+
/**
|
|
43346
|
+
* If `true`, the component is disabled.
|
|
43347
|
+
* @default false
|
|
43348
|
+
*/
|
|
43349
|
+
disabled: PropTypes.bool,
|
|
43350
|
+
/**
|
|
43351
|
+
* Icon element.
|
|
43352
|
+
*/
|
|
43353
|
+
icon: PropTypes.element,
|
|
43354
|
+
/**
|
|
43355
|
+
* The content of the component.
|
|
43356
|
+
*/
|
|
43357
|
+
label: PropTypes.node,
|
|
43358
|
+
/**
|
|
43359
|
+
* @ignore
|
|
43360
|
+
*/
|
|
43361
|
+
onClick: PropTypes.func,
|
|
43362
|
+
/**
|
|
43363
|
+
* Callback fired when the delete icon is clicked.
|
|
43364
|
+
* If set, the delete icon will be shown.
|
|
43365
|
+
*/
|
|
43366
|
+
onDelete: PropTypes.func,
|
|
43367
|
+
/**
|
|
43368
|
+
* @ignore
|
|
43369
|
+
*/
|
|
43370
|
+
onKeyDown: PropTypes.func,
|
|
43371
|
+
/**
|
|
43372
|
+
* @ignore
|
|
43373
|
+
*/
|
|
43374
|
+
onKeyUp: PropTypes.func,
|
|
43375
|
+
/**
|
|
43376
|
+
* The size of the component.
|
|
43377
|
+
* @default 'medium'
|
|
43378
|
+
*/
|
|
43379
|
+
size: PropTypes /* @typescript-to-proptypes-ignore */.oneOfType([PropTypes.oneOf(['medium', 'small']), PropTypes.string]),
|
|
43380
|
+
/**
|
|
43381
|
+
* If `true`, allows the disabled chip to escape focus.
|
|
43382
|
+
* If `false`, allows the disabled chip to receive focus.
|
|
43383
|
+
* @default false
|
|
43384
|
+
*/
|
|
43385
|
+
skipFocusWhenDisabled: PropTypes.bool,
|
|
43386
|
+
/**
|
|
43387
|
+
* The system prop that allows defining system overrides as well as additional CSS styles.
|
|
43388
|
+
*/
|
|
43389
|
+
sx: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.func, PropTypes.object, PropTypes.bool])), PropTypes.func, PropTypes.object]),
|
|
43390
|
+
/**
|
|
43391
|
+
* @ignore
|
|
43392
|
+
*/
|
|
43393
|
+
tabIndex: PropTypes.number,
|
|
43394
|
+
/**
|
|
43395
|
+
* The variant to use.
|
|
43396
|
+
* @default 'filled'
|
|
43397
|
+
*/
|
|
43398
|
+
variant: PropTypes /* @typescript-to-proptypes-ignore */.oneOfType([PropTypes.oneOf(['filled', 'outlined']), PropTypes.string])
|
|
43399
|
+
} : void 0;
|
|
43400
|
+
var ChipMUI = Chip$1;
|
|
43401
|
+
|
|
42898
43402
|
function formControlState({
|
|
42899
43403
|
props,
|
|
42900
43404
|
states,
|
|
@@ -42979,7 +43483,7 @@ function getInputBaseUtilityClass(slot) {
|
|
|
42979
43483
|
const inputBaseClasses = generateUtilityClasses('MuiInputBase', ['root', 'formControl', 'focused', 'disabled', 'adornedStart', 'adornedEnd', 'error', 'sizeSmall', 'multiline', 'colorSecondary', 'fullWidth', 'hiddenLabel', 'readOnly', 'input', 'inputSizeSmall', 'inputMultiline', 'inputTypeSearch', 'inputAdornedStart', 'inputAdornedEnd', 'inputHiddenLabel']);
|
|
42980
43484
|
var inputBaseClasses$1 = inputBaseClasses;
|
|
42981
43485
|
|
|
42982
|
-
const _excluded$
|
|
43486
|
+
const _excluded$u = ["aria-describedby", "autoComplete", "autoFocus", "className", "color", "components", "componentsProps", "defaultValue", "disabled", "disableInjectingGlobalStyles", "endAdornment", "error", "fullWidth", "id", "inputComponent", "inputProps", "inputRef", "margin", "maxRows", "minRows", "multiline", "name", "onBlur", "onChange", "onClick", "onFocus", "onKeyDown", "onKeyUp", "placeholder", "readOnly", "renderSuffix", "rows", "size", "slotProps", "slots", "startAdornment", "type", "value"];
|
|
42983
43487
|
const rootOverridesResolver = (props, styles) => {
|
|
42984
43488
|
const {
|
|
42985
43489
|
ownerState
|
|
@@ -42992,7 +43496,7 @@ const inputOverridesResolver = (props, styles) => {
|
|
|
42992
43496
|
} = props;
|
|
42993
43497
|
return [styles.input, ownerState.size === 'small' && styles.inputSizeSmall, ownerState.multiline && styles.inputMultiline, ownerState.type === 'search' && styles.inputTypeSearch, ownerState.startAdornment && styles.inputAdornedStart, ownerState.endAdornment && styles.inputAdornedEnd, ownerState.hiddenLabel && styles.inputHiddenLabel];
|
|
42994
43498
|
};
|
|
42995
|
-
const useUtilityClasses$
|
|
43499
|
+
const useUtilityClasses$o = ownerState => {
|
|
42996
43500
|
const {
|
|
42997
43501
|
classes,
|
|
42998
43502
|
color,
|
|
@@ -43210,7 +43714,7 @@ const InputBase = /*#__PURE__*/React__namespace.forwardRef(function InputBase(in
|
|
|
43210
43714
|
type = 'text',
|
|
43211
43715
|
value: valueProp
|
|
43212
43716
|
} = props,
|
|
43213
|
-
other = _objectWithoutPropertiesLoose(props, _excluded$
|
|
43717
|
+
other = _objectWithoutPropertiesLoose(props, _excluded$u);
|
|
43214
43718
|
const value = inputPropsProp.value != null ? inputPropsProp.value : valueProp;
|
|
43215
43719
|
const {
|
|
43216
43720
|
current: isControlled
|
|
@@ -43384,7 +43888,7 @@ const InputBase = /*#__PURE__*/React__namespace.forwardRef(function InputBase(in
|
|
|
43384
43888
|
startAdornment,
|
|
43385
43889
|
type
|
|
43386
43890
|
});
|
|
43387
|
-
const classes = useUtilityClasses$
|
|
43891
|
+
const classes = useUtilityClasses$o(ownerState);
|
|
43388
43892
|
const Root = slots.root || components.Root || InputBaseRoot;
|
|
43389
43893
|
const rootProps = slotProps.root || componentsProps.root || {};
|
|
43390
43894
|
const Input = slots.input || components.Input || InputBaseComponent;
|
|
@@ -43688,7 +44192,7 @@ var ArrowDropDownIcon = createSvgIcon( /*#__PURE__*/jsxRuntime.jsx("path", {
|
|
|
43688
44192
|
d: "M7 10l5 5 5-5z"
|
|
43689
44193
|
}), 'ArrowDropDown');
|
|
43690
44194
|
|
|
43691
|
-
const _excluded$
|
|
44195
|
+
const _excluded$t = ["addEndListener", "appear", "children", "easing", "in", "onEnter", "onEntered", "onEntering", "onExit", "onExited", "onExiting", "style", "timeout", "TransitionComponent"];
|
|
43692
44196
|
const styles$1 = {
|
|
43693
44197
|
entering: {
|
|
43694
44198
|
opacity: 1
|
|
@@ -43725,7 +44229,7 @@ const Fade = /*#__PURE__*/React__namespace.forwardRef(function Fade(props, ref)
|
|
|
43725
44229
|
// eslint-disable-next-line react/prop-types
|
|
43726
44230
|
TransitionComponent = Transition$1
|
|
43727
44231
|
} = props,
|
|
43728
|
-
other = _objectWithoutPropertiesLoose(props, _excluded$
|
|
44232
|
+
other = _objectWithoutPropertiesLoose(props, _excluded$t);
|
|
43729
44233
|
const nodeRef = React__namespace.useRef(null);
|
|
43730
44234
|
const handleRef = useForkRef(nodeRef, children.ref, ref);
|
|
43731
44235
|
const normalizedTransitionCallback = callback => maybeIsAppearing => {
|
|
@@ -43886,8 +44390,8 @@ function getBackdropUtilityClass(slot) {
|
|
|
43886
44390
|
}
|
|
43887
44391
|
generateUtilityClasses('MuiBackdrop', ['root', 'invisible']);
|
|
43888
44392
|
|
|
43889
|
-
const _excluded$
|
|
43890
|
-
const useUtilityClasses$
|
|
44393
|
+
const _excluded$s = ["children", "component", "components", "componentsProps", "className", "invisible", "open", "slotProps", "slots", "transitionDuration", "TransitionComponent"];
|
|
44394
|
+
const useUtilityClasses$n = ownerState => {
|
|
43891
44395
|
const {
|
|
43892
44396
|
classes,
|
|
43893
44397
|
invisible
|
|
@@ -43942,12 +44446,12 @@ const Backdrop = /*#__PURE__*/React__namespace.forwardRef(function Backdrop(inPr
|
|
|
43942
44446
|
// eslint-disable-next-line react/prop-types
|
|
43943
44447
|
TransitionComponent = Fade$1
|
|
43944
44448
|
} = props,
|
|
43945
|
-
other = _objectWithoutPropertiesLoose(props, _excluded$
|
|
44449
|
+
other = _objectWithoutPropertiesLoose(props, _excluded$s);
|
|
43946
44450
|
const ownerState = _extends({}, props, {
|
|
43947
44451
|
component,
|
|
43948
44452
|
invisible
|
|
43949
44453
|
});
|
|
43950
|
-
const classes = useUtilityClasses$
|
|
44454
|
+
const classes = useUtilityClasses$n(ownerState);
|
|
43951
44455
|
const rootSlotProps = (_slotProps$root = slotProps.root) != null ? _slotProps$root : componentsProps.root;
|
|
43952
44456
|
return /*#__PURE__*/jsxRuntime.jsx(TransitionComponent, _extends({
|
|
43953
44457
|
in: open,
|
|
@@ -44099,8 +44603,8 @@ if (process.env.NODE_ENV !== 'production') {
|
|
|
44099
44603
|
}
|
|
44100
44604
|
var ButtonGroupContext$1 = ButtonGroupContext;
|
|
44101
44605
|
|
|
44102
|
-
const _excluded$
|
|
44103
|
-
const useUtilityClasses$
|
|
44606
|
+
const _excluded$r = ["children", "color", "component", "className", "disabled", "disableElevation", "disableFocusRipple", "endIcon", "focusVisibleClassName", "fullWidth", "size", "startIcon", "type", "variant"];
|
|
44607
|
+
const useUtilityClasses$m = ownerState => {
|
|
44104
44608
|
const {
|
|
44105
44609
|
color,
|
|
44106
44610
|
disableElevation,
|
|
@@ -44325,7 +44829,7 @@ const Button$1 = /*#__PURE__*/React__namespace.forwardRef(function Button(inProp
|
|
|
44325
44829
|
type,
|
|
44326
44830
|
variant = 'text'
|
|
44327
44831
|
} = props,
|
|
44328
|
-
other = _objectWithoutPropertiesLoose(props, _excluded$
|
|
44832
|
+
other = _objectWithoutPropertiesLoose(props, _excluded$r);
|
|
44329
44833
|
const ownerState = _extends({}, props, {
|
|
44330
44834
|
color,
|
|
44331
44835
|
component,
|
|
@@ -44337,7 +44841,7 @@ const Button$1 = /*#__PURE__*/React__namespace.forwardRef(function Button(inProp
|
|
|
44337
44841
|
type,
|
|
44338
44842
|
variant
|
|
44339
44843
|
});
|
|
44340
|
-
const classes = useUtilityClasses$
|
|
44844
|
+
const classes = useUtilityClasses$m(ownerState);
|
|
44341
44845
|
const startIcon = startIconProp && /*#__PURE__*/jsxRuntime.jsx(ButtonStartIcon, {
|
|
44342
44846
|
className: classes.startIcon,
|
|
44343
44847
|
ownerState: ownerState,
|
|
@@ -44463,8 +44967,8 @@ function getSwitchBaseUtilityClass(slot) {
|
|
|
44463
44967
|
}
|
|
44464
44968
|
generateUtilityClasses('PrivateSwitchBase', ['root', 'checked', 'disabled', 'input', 'edgeStart', 'edgeEnd']);
|
|
44465
44969
|
|
|
44466
|
-
const _excluded$
|
|
44467
|
-
const useUtilityClasses$
|
|
44970
|
+
const _excluded$q = ["autoFocus", "checked", "checkedIcon", "className", "defaultChecked", "disabled", "disableFocusRipple", "edge", "icon", "id", "inputProps", "inputRef", "name", "onBlur", "onChange", "onFocus", "readOnly", "required", "tabIndex", "type", "value"];
|
|
44971
|
+
const useUtilityClasses$l = ownerState => {
|
|
44468
44972
|
const {
|
|
44469
44973
|
classes,
|
|
44470
44974
|
checked,
|
|
@@ -44527,7 +45031,7 @@ const SwitchBase = /*#__PURE__*/React__namespace.forwardRef(function SwitchBase(
|
|
|
44527
45031
|
type,
|
|
44528
45032
|
value
|
|
44529
45033
|
} = props,
|
|
44530
|
-
other = _objectWithoutPropertiesLoose(props, _excluded$
|
|
45034
|
+
other = _objectWithoutPropertiesLoose(props, _excluded$q);
|
|
44531
45035
|
const [checked, setCheckedState] = useControlled({
|
|
44532
45036
|
controlled: checkedProp,
|
|
44533
45037
|
default: Boolean(defaultChecked),
|
|
@@ -44576,7 +45080,7 @@ const SwitchBase = /*#__PURE__*/React__namespace.forwardRef(function SwitchBase(
|
|
|
44576
45080
|
disableFocusRipple,
|
|
44577
45081
|
edge
|
|
44578
45082
|
});
|
|
44579
|
-
const classes = useUtilityClasses$
|
|
45083
|
+
const classes = useUtilityClasses$l(ownerState);
|
|
44580
45084
|
return /*#__PURE__*/jsxRuntime.jsxs(SwitchBaseRoot, _extends({
|
|
44581
45085
|
component: "span",
|
|
44582
45086
|
className: clsx(classes.root, className),
|
|
@@ -44737,8 +45241,8 @@ function getCheckboxUtilityClass(slot) {
|
|
|
44737
45241
|
const checkboxClasses = generateUtilityClasses('MuiCheckbox', ['root', 'checked', 'disabled', 'indeterminate', 'colorPrimary', 'colorSecondary']);
|
|
44738
45242
|
var checkboxClasses$1 = checkboxClasses;
|
|
44739
45243
|
|
|
44740
|
-
const _excluded$
|
|
44741
|
-
const useUtilityClasses$
|
|
45244
|
+
const _excluded$p = ["checkedIcon", "color", "icon", "indeterminate", "indeterminateIcon", "inputProps", "size", "className"];
|
|
45245
|
+
const useUtilityClasses$k = ownerState => {
|
|
44742
45246
|
const {
|
|
44743
45247
|
classes,
|
|
44744
45248
|
indeterminate,
|
|
@@ -44800,7 +45304,7 @@ const Checkbox$1 = /*#__PURE__*/React__namespace.forwardRef(function Checkbox(in
|
|
|
44800
45304
|
size = 'medium',
|
|
44801
45305
|
className
|
|
44802
45306
|
} = props,
|
|
44803
|
-
other = _objectWithoutPropertiesLoose(props, _excluded$
|
|
45307
|
+
other = _objectWithoutPropertiesLoose(props, _excluded$p);
|
|
44804
45308
|
const icon = indeterminate ? indeterminateIconProp : iconProp;
|
|
44805
45309
|
const indeterminateIcon = indeterminate ? indeterminateIconProp : checkedIcon;
|
|
44806
45310
|
const ownerState = _extends({}, props, {
|
|
@@ -44808,7 +45312,7 @@ const Checkbox$1 = /*#__PURE__*/React__namespace.forwardRef(function Checkbox(in
|
|
|
44808
45312
|
indeterminate,
|
|
44809
45313
|
size
|
|
44810
45314
|
});
|
|
44811
|
-
const classes = useUtilityClasses$
|
|
45315
|
+
const classes = useUtilityClasses$k(ownerState);
|
|
44812
45316
|
return /*#__PURE__*/jsxRuntime.jsx(CheckboxRoot, _extends({
|
|
44813
45317
|
type: "checkbox",
|
|
44814
45318
|
inputProps: _extends({
|
|
@@ -44927,7 +45431,7 @@ process.env.NODE_ENV !== "production" ? Checkbox$1.propTypes /* remove-proptypes
|
|
|
44927
45431
|
} : void 0;
|
|
44928
45432
|
var CheckboxMUI = Checkbox$1;
|
|
44929
45433
|
|
|
44930
|
-
const _excluded$
|
|
45434
|
+
const _excluded$o = ["BackdropComponent", "BackdropProps", "closeAfterTransition", "children", "component", "components", "componentsProps", "disableAutoFocus", "disableEnforceFocus", "disableEscapeKeyDown", "disablePortal", "disableRestoreFocus", "disableScrollLock", "hideBackdrop", "keepMounted", "slotProps", "slots", "theme"];
|
|
44931
45435
|
const extendUtilityClasses = ownerState => {
|
|
44932
45436
|
return ownerState.classes;
|
|
44933
45437
|
};
|
|
@@ -45003,7 +45507,7 @@ const Modal = /*#__PURE__*/React__namespace.forwardRef(function Modal(inProps, r
|
|
|
45003
45507
|
// eslint-disable-next-line react/prop-types
|
|
45004
45508
|
theme
|
|
45005
45509
|
} = props,
|
|
45006
|
-
other = _objectWithoutPropertiesLoose(props, _excluded$
|
|
45510
|
+
other = _objectWithoutPropertiesLoose(props, _excluded$o);
|
|
45007
45511
|
const [exited, setExited] = React__namespace.useState(true);
|
|
45008
45512
|
const commonProps = {
|
|
45009
45513
|
closeAfterTransition,
|
|
@@ -45213,8 +45717,247 @@ process.env.NODE_ENV !== "production" ? Modal.propTypes /* remove-proptypes */ =
|
|
|
45213
45717
|
} : void 0;
|
|
45214
45718
|
var Modal$1 = Modal;
|
|
45215
45719
|
|
|
45216
|
-
|
|
45217
|
-
|
|
45720
|
+
function getDividerUtilityClass(slot) {
|
|
45721
|
+
return generateUtilityClass('MuiDivider', slot);
|
|
45722
|
+
}
|
|
45723
|
+
const dividerClasses = generateUtilityClasses('MuiDivider', ['root', 'absolute', 'fullWidth', 'inset', 'middle', 'flexItem', 'light', 'vertical', 'withChildren', 'withChildrenVertical', 'textAlignRight', 'textAlignLeft', 'wrapper', 'wrapperVertical']);
|
|
45724
|
+
var dividerClasses$1 = dividerClasses;
|
|
45725
|
+
|
|
45726
|
+
const _excluded$n = ["absolute", "children", "className", "component", "flexItem", "light", "orientation", "role", "textAlign", "variant"];
|
|
45727
|
+
const useUtilityClasses$j = ownerState => {
|
|
45728
|
+
const {
|
|
45729
|
+
absolute,
|
|
45730
|
+
children,
|
|
45731
|
+
classes,
|
|
45732
|
+
flexItem,
|
|
45733
|
+
light,
|
|
45734
|
+
orientation,
|
|
45735
|
+
textAlign,
|
|
45736
|
+
variant
|
|
45737
|
+
} = ownerState;
|
|
45738
|
+
const slots = {
|
|
45739
|
+
root: ['root', absolute && 'absolute', variant, light && 'light', orientation === 'vertical' && 'vertical', flexItem && 'flexItem', children && 'withChildren', children && orientation === 'vertical' && 'withChildrenVertical', textAlign === 'right' && orientation !== 'vertical' && 'textAlignRight', textAlign === 'left' && orientation !== 'vertical' && 'textAlignLeft'],
|
|
45740
|
+
wrapper: ['wrapper', orientation === 'vertical' && 'wrapperVertical']
|
|
45741
|
+
};
|
|
45742
|
+
return composeClasses(slots, getDividerUtilityClass, classes);
|
|
45743
|
+
};
|
|
45744
|
+
const DividerRoot = styled$1('div', {
|
|
45745
|
+
name: 'MuiDivider',
|
|
45746
|
+
slot: 'Root',
|
|
45747
|
+
overridesResolver: (props, styles) => {
|
|
45748
|
+
const {
|
|
45749
|
+
ownerState
|
|
45750
|
+
} = props;
|
|
45751
|
+
return [styles.root, ownerState.absolute && styles.absolute, styles[ownerState.variant], ownerState.light && styles.light, ownerState.orientation === 'vertical' && styles.vertical, ownerState.flexItem && styles.flexItem, ownerState.children && styles.withChildren, ownerState.children && ownerState.orientation === 'vertical' && styles.withChildrenVertical, ownerState.textAlign === 'right' && ownerState.orientation !== 'vertical' && styles.textAlignRight, ownerState.textAlign === 'left' && ownerState.orientation !== 'vertical' && styles.textAlignLeft];
|
|
45752
|
+
}
|
|
45753
|
+
})(({
|
|
45754
|
+
theme,
|
|
45755
|
+
ownerState
|
|
45756
|
+
}) => _extends({
|
|
45757
|
+
margin: 0,
|
|
45758
|
+
// Reset browser default style.
|
|
45759
|
+
flexShrink: 0,
|
|
45760
|
+
borderWidth: 0,
|
|
45761
|
+
borderStyle: 'solid',
|
|
45762
|
+
borderColor: (theme.vars || theme).palette.divider,
|
|
45763
|
+
borderBottomWidth: 'thin'
|
|
45764
|
+
}, ownerState.absolute && {
|
|
45765
|
+
position: 'absolute',
|
|
45766
|
+
bottom: 0,
|
|
45767
|
+
left: 0,
|
|
45768
|
+
width: '100%'
|
|
45769
|
+
}, ownerState.light && {
|
|
45770
|
+
borderColor: theme.vars ? `rgba(${theme.vars.palette.dividerChannel} / 0.08)` : alpha(theme.palette.divider, 0.08)
|
|
45771
|
+
}, ownerState.variant === 'inset' && {
|
|
45772
|
+
marginLeft: 72
|
|
45773
|
+
}, ownerState.variant === 'middle' && ownerState.orientation === 'horizontal' && {
|
|
45774
|
+
marginLeft: theme.spacing(2),
|
|
45775
|
+
marginRight: theme.spacing(2)
|
|
45776
|
+
}, ownerState.variant === 'middle' && ownerState.orientation === 'vertical' && {
|
|
45777
|
+
marginTop: theme.spacing(1),
|
|
45778
|
+
marginBottom: theme.spacing(1)
|
|
45779
|
+
}, ownerState.orientation === 'vertical' && {
|
|
45780
|
+
height: '100%',
|
|
45781
|
+
borderBottomWidth: 0,
|
|
45782
|
+
borderRightWidth: 'thin'
|
|
45783
|
+
}, ownerState.flexItem && {
|
|
45784
|
+
alignSelf: 'stretch',
|
|
45785
|
+
height: 'auto'
|
|
45786
|
+
}), ({
|
|
45787
|
+
theme,
|
|
45788
|
+
ownerState
|
|
45789
|
+
}) => _extends({}, ownerState.children && {
|
|
45790
|
+
display: 'flex',
|
|
45791
|
+
whiteSpace: 'nowrap',
|
|
45792
|
+
textAlign: 'center',
|
|
45793
|
+
border: 0,
|
|
45794
|
+
'&::before, &::after': {
|
|
45795
|
+
position: 'relative',
|
|
45796
|
+
width: '100%',
|
|
45797
|
+
borderTop: `thin solid ${(theme.vars || theme).palette.divider}`,
|
|
45798
|
+
top: '50%',
|
|
45799
|
+
content: '""',
|
|
45800
|
+
transform: 'translateY(50%)'
|
|
45801
|
+
}
|
|
45802
|
+
}), ({
|
|
45803
|
+
theme,
|
|
45804
|
+
ownerState
|
|
45805
|
+
}) => _extends({}, ownerState.children && ownerState.orientation === 'vertical' && {
|
|
45806
|
+
flexDirection: 'column',
|
|
45807
|
+
'&::before, &::after': {
|
|
45808
|
+
height: '100%',
|
|
45809
|
+
top: '0%',
|
|
45810
|
+
left: '50%',
|
|
45811
|
+
borderTop: 0,
|
|
45812
|
+
borderLeft: `thin solid ${(theme.vars || theme).palette.divider}`,
|
|
45813
|
+
transform: 'translateX(0%)'
|
|
45814
|
+
}
|
|
45815
|
+
}), ({
|
|
45816
|
+
ownerState
|
|
45817
|
+
}) => _extends({}, ownerState.textAlign === 'right' && ownerState.orientation !== 'vertical' && {
|
|
45818
|
+
'&::before': {
|
|
45819
|
+
width: '90%'
|
|
45820
|
+
},
|
|
45821
|
+
'&::after': {
|
|
45822
|
+
width: '10%'
|
|
45823
|
+
}
|
|
45824
|
+
}, ownerState.textAlign === 'left' && ownerState.orientation !== 'vertical' && {
|
|
45825
|
+
'&::before': {
|
|
45826
|
+
width: '10%'
|
|
45827
|
+
},
|
|
45828
|
+
'&::after': {
|
|
45829
|
+
width: '90%'
|
|
45830
|
+
}
|
|
45831
|
+
}));
|
|
45832
|
+
const DividerWrapper = styled$1('span', {
|
|
45833
|
+
name: 'MuiDivider',
|
|
45834
|
+
slot: 'Wrapper',
|
|
45835
|
+
overridesResolver: (props, styles) => {
|
|
45836
|
+
const {
|
|
45837
|
+
ownerState
|
|
45838
|
+
} = props;
|
|
45839
|
+
return [styles.wrapper, ownerState.orientation === 'vertical' && styles.wrapperVertical];
|
|
45840
|
+
}
|
|
45841
|
+
})(({
|
|
45842
|
+
theme,
|
|
45843
|
+
ownerState
|
|
45844
|
+
}) => _extends({
|
|
45845
|
+
display: 'inline-block',
|
|
45846
|
+
paddingLeft: `calc(${theme.spacing(1)} * 1.2)`,
|
|
45847
|
+
paddingRight: `calc(${theme.spacing(1)} * 1.2)`
|
|
45848
|
+
}, ownerState.orientation === 'vertical' && {
|
|
45849
|
+
paddingTop: `calc(${theme.spacing(1)} * 1.2)`,
|
|
45850
|
+
paddingBottom: `calc(${theme.spacing(1)} * 1.2)`
|
|
45851
|
+
}));
|
|
45852
|
+
const Divider = /*#__PURE__*/React__namespace.forwardRef(function Divider(inProps, ref) {
|
|
45853
|
+
const props = useThemeProps({
|
|
45854
|
+
props: inProps,
|
|
45855
|
+
name: 'MuiDivider'
|
|
45856
|
+
});
|
|
45857
|
+
const {
|
|
45858
|
+
absolute = false,
|
|
45859
|
+
children,
|
|
45860
|
+
className,
|
|
45861
|
+
component = children ? 'div' : 'hr',
|
|
45862
|
+
flexItem = false,
|
|
45863
|
+
light = false,
|
|
45864
|
+
orientation = 'horizontal',
|
|
45865
|
+
role = component !== 'hr' ? 'separator' : undefined,
|
|
45866
|
+
textAlign = 'center',
|
|
45867
|
+
variant = 'fullWidth'
|
|
45868
|
+
} = props,
|
|
45869
|
+
other = _objectWithoutPropertiesLoose(props, _excluded$n);
|
|
45870
|
+
const ownerState = _extends({}, props, {
|
|
45871
|
+
absolute,
|
|
45872
|
+
component,
|
|
45873
|
+
flexItem,
|
|
45874
|
+
light,
|
|
45875
|
+
orientation,
|
|
45876
|
+
role,
|
|
45877
|
+
textAlign,
|
|
45878
|
+
variant
|
|
45879
|
+
});
|
|
45880
|
+
const classes = useUtilityClasses$j(ownerState);
|
|
45881
|
+
return /*#__PURE__*/jsxRuntime.jsx(DividerRoot, _extends({
|
|
45882
|
+
as: component,
|
|
45883
|
+
className: clsx(classes.root, className),
|
|
45884
|
+
role: role,
|
|
45885
|
+
ref: ref,
|
|
45886
|
+
ownerState: ownerState
|
|
45887
|
+
}, other, {
|
|
45888
|
+
children: children ? /*#__PURE__*/jsxRuntime.jsx(DividerWrapper, {
|
|
45889
|
+
className: classes.wrapper,
|
|
45890
|
+
ownerState: ownerState,
|
|
45891
|
+
children: children
|
|
45892
|
+
}) : null
|
|
45893
|
+
}));
|
|
45894
|
+
});
|
|
45895
|
+
process.env.NODE_ENV !== "production" ? Divider.propTypes /* remove-proptypes */ = {
|
|
45896
|
+
// ----------------------------- Warning --------------------------------
|
|
45897
|
+
// | These PropTypes are generated from the TypeScript type definitions |
|
|
45898
|
+
// | To update them edit the d.ts file and run "yarn proptypes" |
|
|
45899
|
+
// ----------------------------------------------------------------------
|
|
45900
|
+
/**
|
|
45901
|
+
* Absolutely position the element.
|
|
45902
|
+
* @default false
|
|
45903
|
+
*/
|
|
45904
|
+
absolute: PropTypes.bool,
|
|
45905
|
+
/**
|
|
45906
|
+
* The content of the component.
|
|
45907
|
+
*/
|
|
45908
|
+
children: PropTypes.node,
|
|
45909
|
+
/**
|
|
45910
|
+
* Override or extend the styles applied to the component.
|
|
45911
|
+
*/
|
|
45912
|
+
classes: PropTypes.object,
|
|
45913
|
+
/**
|
|
45914
|
+
* @ignore
|
|
45915
|
+
*/
|
|
45916
|
+
className: PropTypes.string,
|
|
45917
|
+
/**
|
|
45918
|
+
* The component used for the root node.
|
|
45919
|
+
* Either a string to use a HTML element or a component.
|
|
45920
|
+
*/
|
|
45921
|
+
component: PropTypes.elementType,
|
|
45922
|
+
/**
|
|
45923
|
+
* If `true`, a vertical divider will have the correct height when used in flex container.
|
|
45924
|
+
* (By default, a vertical divider will have a calculated height of `0px` if it is the child of a flex container.)
|
|
45925
|
+
* @default false
|
|
45926
|
+
*/
|
|
45927
|
+
flexItem: PropTypes.bool,
|
|
45928
|
+
/**
|
|
45929
|
+
* If `true`, the divider will have a lighter color.
|
|
45930
|
+
* @default false
|
|
45931
|
+
*/
|
|
45932
|
+
light: PropTypes.bool,
|
|
45933
|
+
/**
|
|
45934
|
+
* The component orientation.
|
|
45935
|
+
* @default 'horizontal'
|
|
45936
|
+
*/
|
|
45937
|
+
orientation: PropTypes.oneOf(['horizontal', 'vertical']),
|
|
45938
|
+
/**
|
|
45939
|
+
* @ignore
|
|
45940
|
+
*/
|
|
45941
|
+
role: PropTypes /* @typescript-to-proptypes-ignore */.string,
|
|
45942
|
+
/**
|
|
45943
|
+
* The system prop that allows defining system overrides as well as additional CSS styles.
|
|
45944
|
+
*/
|
|
45945
|
+
sx: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.func, PropTypes.object, PropTypes.bool])), PropTypes.func, PropTypes.object]),
|
|
45946
|
+
/**
|
|
45947
|
+
* The text alignment.
|
|
45948
|
+
* @default 'center'
|
|
45949
|
+
*/
|
|
45950
|
+
textAlign: PropTypes.oneOf(['center', 'left', 'right']),
|
|
45951
|
+
/**
|
|
45952
|
+
* The variant to use.
|
|
45953
|
+
* @default 'fullWidth'
|
|
45954
|
+
*/
|
|
45955
|
+
variant: PropTypes /* @typescript-to-proptypes-ignore */.oneOfType([PropTypes.oneOf(['fullWidth', 'inset', 'middle']), PropTypes.string])
|
|
45956
|
+
} : void 0;
|
|
45957
|
+
var Divider$1 = Divider;
|
|
45958
|
+
|
|
45959
|
+
const _excluded$m = ["disableUnderline", "components", "componentsProps", "fullWidth", "hiddenLabel", "inputComponent", "multiline", "slotProps", "slots", "type"];
|
|
45960
|
+
const useUtilityClasses$i = ownerState => {
|
|
45218
45961
|
const {
|
|
45219
45962
|
classes,
|
|
45220
45963
|
disableUnderline
|
|
@@ -45397,14 +46140,14 @@ const FilledInput = /*#__PURE__*/React__namespace.forwardRef(function FilledInpu
|
|
|
45397
46140
|
slots = {},
|
|
45398
46141
|
type = 'text'
|
|
45399
46142
|
} = props,
|
|
45400
|
-
other = _objectWithoutPropertiesLoose(props, _excluded$
|
|
46143
|
+
other = _objectWithoutPropertiesLoose(props, _excluded$m);
|
|
45401
46144
|
const ownerState = _extends({}, props, {
|
|
45402
46145
|
fullWidth,
|
|
45403
46146
|
inputComponent,
|
|
45404
46147
|
multiline,
|
|
45405
46148
|
type
|
|
45406
46149
|
});
|
|
45407
|
-
const classes = useUtilityClasses$
|
|
46150
|
+
const classes = useUtilityClasses$i(props);
|
|
45408
46151
|
const filledInputComponentsProps = {
|
|
45409
46152
|
root: {
|
|
45410
46153
|
ownerState
|
|
@@ -45632,8 +46375,8 @@ function getFormControlUtilityClasses(slot) {
|
|
|
45632
46375
|
}
|
|
45633
46376
|
generateUtilityClasses('MuiFormControl', ['root', 'marginNone', 'marginNormal', 'marginDense', 'fullWidth', 'disabled']);
|
|
45634
46377
|
|
|
45635
|
-
const _excluded$
|
|
45636
|
-
const useUtilityClasses$
|
|
46378
|
+
const _excluded$l = ["children", "className", "color", "component", "disabled", "error", "focused", "fullWidth", "hiddenLabel", "margin", "required", "size", "variant"];
|
|
46379
|
+
const useUtilityClasses$h = ownerState => {
|
|
45637
46380
|
const {
|
|
45638
46381
|
classes,
|
|
45639
46382
|
margin,
|
|
@@ -45718,7 +46461,7 @@ const FormControl = /*#__PURE__*/React__namespace.forwardRef(function FormContro
|
|
|
45718
46461
|
size = 'medium',
|
|
45719
46462
|
variant = 'outlined'
|
|
45720
46463
|
} = props,
|
|
45721
|
-
other = _objectWithoutPropertiesLoose(props, _excluded$
|
|
46464
|
+
other = _objectWithoutPropertiesLoose(props, _excluded$l);
|
|
45722
46465
|
const ownerState = _extends({}, props, {
|
|
45723
46466
|
color,
|
|
45724
46467
|
component,
|
|
@@ -45731,7 +46474,7 @@ const FormControl = /*#__PURE__*/React__namespace.forwardRef(function FormContro
|
|
|
45731
46474
|
size,
|
|
45732
46475
|
variant
|
|
45733
46476
|
});
|
|
45734
|
-
const classes = useUtilityClasses$
|
|
46477
|
+
const classes = useUtilityClasses$h(ownerState);
|
|
45735
46478
|
const [adornedStart, setAdornedStart] = React__namespace.useState(() => {
|
|
45736
46479
|
// We need to iterate through the children and find the Input in order
|
|
45737
46480
|
// to fully support server-side rendering.
|
|
@@ -45913,8 +46656,8 @@ function getFormControlLabelUtilityClasses(slot) {
|
|
|
45913
46656
|
const formControlLabelClasses = generateUtilityClasses('MuiFormControlLabel', ['root', 'labelPlacementStart', 'labelPlacementTop', 'labelPlacementBottom', 'disabled', 'label', 'error']);
|
|
45914
46657
|
var formControlLabelClasses$1 = formControlLabelClasses;
|
|
45915
46658
|
|
|
45916
|
-
const _excluded$
|
|
45917
|
-
const useUtilityClasses$
|
|
46659
|
+
const _excluded$k = ["checked", "className", "componentsProps", "control", "disabled", "disableTypography", "inputRef", "label", "labelPlacement", "name", "onChange", "slotProps", "value"];
|
|
46660
|
+
const useUtilityClasses$g = ownerState => {
|
|
45918
46661
|
const {
|
|
45919
46662
|
classes,
|
|
45920
46663
|
disabled,
|
|
@@ -45993,7 +46736,7 @@ const FormControlLabel = /*#__PURE__*/React__namespace.forwardRef(function FormC
|
|
|
45993
46736
|
labelPlacement = 'end',
|
|
45994
46737
|
slotProps = {}
|
|
45995
46738
|
} = props,
|
|
45996
|
-
other = _objectWithoutPropertiesLoose(props, _excluded$
|
|
46739
|
+
other = _objectWithoutPropertiesLoose(props, _excluded$k);
|
|
45997
46740
|
const muiFormControl = useFormControl();
|
|
45998
46741
|
let disabled = disabledProp;
|
|
45999
46742
|
if (typeof disabled === 'undefined' && typeof control.props.disabled !== 'undefined') {
|
|
@@ -46020,7 +46763,7 @@ const FormControlLabel = /*#__PURE__*/React__namespace.forwardRef(function FormC
|
|
|
46020
46763
|
labelPlacement,
|
|
46021
46764
|
error: fcs.error
|
|
46022
46765
|
});
|
|
46023
|
-
const classes = useUtilityClasses$
|
|
46766
|
+
const classes = useUtilityClasses$g(ownerState);
|
|
46024
46767
|
const typographySlotProps = (_slotProps$typography = slotProps.typography) != null ? _slotProps$typography : componentsProps.typography;
|
|
46025
46768
|
let label = labelProp;
|
|
46026
46769
|
if (label != null && label.type !== Typography$1 && !disableTypography) {
|
|
@@ -46124,8 +46867,8 @@ const formHelperTextClasses = generateUtilityClasses('MuiFormHelperText', ['root
|
|
|
46124
46867
|
var formHelperTextClasses$1 = formHelperTextClasses;
|
|
46125
46868
|
|
|
46126
46869
|
var _span$2;
|
|
46127
|
-
const _excluded$
|
|
46128
|
-
const useUtilityClasses$
|
|
46870
|
+
const _excluded$j = ["children", "className", "component", "disabled", "error", "filled", "focused", "margin", "required", "variant"];
|
|
46871
|
+
const useUtilityClasses$f = ownerState => {
|
|
46129
46872
|
const {
|
|
46130
46873
|
classes,
|
|
46131
46874
|
contained,
|
|
@@ -46183,7 +46926,7 @@ const FormHelperText = /*#__PURE__*/React__namespace.forwardRef(function FormHel
|
|
|
46183
46926
|
className,
|
|
46184
46927
|
component = 'p'
|
|
46185
46928
|
} = props,
|
|
46186
|
-
other = _objectWithoutPropertiesLoose(props, _excluded$
|
|
46929
|
+
other = _objectWithoutPropertiesLoose(props, _excluded$j);
|
|
46187
46930
|
const muiFormControl = useFormControl();
|
|
46188
46931
|
const fcs = formControlState({
|
|
46189
46932
|
props,
|
|
@@ -46201,7 +46944,7 @@ const FormHelperText = /*#__PURE__*/React__namespace.forwardRef(function FormHel
|
|
|
46201
46944
|
focused: fcs.focused,
|
|
46202
46945
|
required: fcs.required
|
|
46203
46946
|
});
|
|
46204
|
-
const classes = useUtilityClasses$
|
|
46947
|
+
const classes = useUtilityClasses$f(ownerState);
|
|
46205
46948
|
return /*#__PURE__*/jsxRuntime.jsx(FormHelperTextRoot, _extends({
|
|
46206
46949
|
as: component,
|
|
46207
46950
|
ownerState: ownerState,
|
|
@@ -46281,8 +47024,8 @@ function getFormLabelUtilityClasses(slot) {
|
|
|
46281
47024
|
const formLabelClasses = generateUtilityClasses('MuiFormLabel', ['root', 'colorSecondary', 'focused', 'disabled', 'error', 'filled', 'required', 'asterisk']);
|
|
46282
47025
|
var formLabelClasses$1 = formLabelClasses;
|
|
46283
47026
|
|
|
46284
|
-
const _excluded$
|
|
46285
|
-
const useUtilityClasses$
|
|
47027
|
+
const _excluded$i = ["children", "className", "color", "component", "disabled", "error", "filled", "focused", "required"];
|
|
47028
|
+
const useUtilityClasses$e = ownerState => {
|
|
46286
47029
|
const {
|
|
46287
47030
|
classes,
|
|
46288
47031
|
color,
|
|
@@ -46346,7 +47089,7 @@ const FormLabel = /*#__PURE__*/React__namespace.forwardRef(function FormLabel(in
|
|
|
46346
47089
|
className,
|
|
46347
47090
|
component = 'label'
|
|
46348
47091
|
} = props,
|
|
46349
|
-
other = _objectWithoutPropertiesLoose(props, _excluded$
|
|
47092
|
+
other = _objectWithoutPropertiesLoose(props, _excluded$i);
|
|
46350
47093
|
const muiFormControl = useFormControl();
|
|
46351
47094
|
const fcs = formControlState({
|
|
46352
47095
|
props,
|
|
@@ -46362,7 +47105,7 @@ const FormLabel = /*#__PURE__*/React__namespace.forwardRef(function FormLabel(in
|
|
|
46362
47105
|
focused: fcs.focused,
|
|
46363
47106
|
required: fcs.required
|
|
46364
47107
|
});
|
|
46365
|
-
const classes = useUtilityClasses$
|
|
47108
|
+
const classes = useUtilityClasses$e(ownerState);
|
|
46366
47109
|
return /*#__PURE__*/jsxRuntime.jsxs(FormLabelRoot, _extends({
|
|
46367
47110
|
as: component,
|
|
46368
47111
|
ownerState: ownerState,
|
|
@@ -46432,7 +47175,7 @@ process.env.NODE_ENV !== "production" ? FormLabel.propTypes /* remove-proptypes
|
|
|
46432
47175
|
} : void 0;
|
|
46433
47176
|
var FormLabel$1 = FormLabel;
|
|
46434
47177
|
|
|
46435
|
-
const _excluded$
|
|
47178
|
+
const _excluded$h = ["addEndListener", "appear", "children", "easing", "in", "onEnter", "onEntered", "onEntering", "onExit", "onExited", "onExiting", "style", "timeout", "TransitionComponent"];
|
|
46436
47179
|
function getScale(value) {
|
|
46437
47180
|
return `scale(${value}, ${value ** 2})`;
|
|
46438
47181
|
}
|
|
@@ -46476,7 +47219,7 @@ const Grow = /*#__PURE__*/React__namespace.forwardRef(function Grow(props, ref)
|
|
|
46476
47219
|
// eslint-disable-next-line react/prop-types
|
|
46477
47220
|
TransitionComponent = Transition$1
|
|
46478
47221
|
} = props,
|
|
46479
|
-
other = _objectWithoutPropertiesLoose(props, _excluded$
|
|
47222
|
+
other = _objectWithoutPropertiesLoose(props, _excluded$h);
|
|
46480
47223
|
const timer = React__namespace.useRef();
|
|
46481
47224
|
const autoTimeout = React__namespace.useRef();
|
|
46482
47225
|
const theme = useTheme();
|
|
@@ -46680,8 +47423,8 @@ process.env.NODE_ENV !== "production" ? Grow.propTypes /* remove-proptypes */ =
|
|
|
46680
47423
|
Grow.muiSupportAuto = true;
|
|
46681
47424
|
var Grow$1 = Grow;
|
|
46682
47425
|
|
|
46683
|
-
const _excluded$
|
|
46684
|
-
const useUtilityClasses$
|
|
47426
|
+
const _excluded$g = ["disableUnderline", "components", "componentsProps", "fullWidth", "inputComponent", "multiline", "slotProps", "slots", "type"];
|
|
47427
|
+
const useUtilityClasses$d = ownerState => {
|
|
46685
47428
|
const {
|
|
46686
47429
|
classes,
|
|
46687
47430
|
disableUnderline
|
|
@@ -46793,8 +47536,8 @@ const Input = /*#__PURE__*/React__namespace.forwardRef(function Input(inProps, r
|
|
|
46793
47536
|
slots = {},
|
|
46794
47537
|
type = 'text'
|
|
46795
47538
|
} = props,
|
|
46796
|
-
other = _objectWithoutPropertiesLoose(props, _excluded$
|
|
46797
|
-
const classes = useUtilityClasses$
|
|
47539
|
+
other = _objectWithoutPropertiesLoose(props, _excluded$g);
|
|
47540
|
+
const classes = useUtilityClasses$d(props);
|
|
46798
47541
|
const ownerState = {
|
|
46799
47542
|
disableUnderline
|
|
46800
47543
|
};
|
|
@@ -47015,8 +47758,8 @@ function getInputLabelUtilityClasses(slot) {
|
|
|
47015
47758
|
}
|
|
47016
47759
|
generateUtilityClasses('MuiInputLabel', ['root', 'focused', 'disabled', 'error', 'required', 'asterisk', 'formControl', 'sizeSmall', 'shrink', 'animated', 'standard', 'filled', 'outlined']);
|
|
47017
47760
|
|
|
47018
|
-
const _excluded$
|
|
47019
|
-
const useUtilityClasses$
|
|
47761
|
+
const _excluded$f = ["disableAnimation", "margin", "shrink", "variant", "className"];
|
|
47762
|
+
const useUtilityClasses$c = ownerState => {
|
|
47020
47763
|
const {
|
|
47021
47764
|
classes,
|
|
47022
47765
|
formControl,
|
|
@@ -47115,7 +47858,7 @@ const InputLabel = /*#__PURE__*/React__namespace.forwardRef(function InputLabel(
|
|
|
47115
47858
|
shrink: shrinkProp,
|
|
47116
47859
|
className
|
|
47117
47860
|
} = props,
|
|
47118
|
-
other = _objectWithoutPropertiesLoose(props, _excluded$
|
|
47861
|
+
other = _objectWithoutPropertiesLoose(props, _excluded$f);
|
|
47119
47862
|
const muiFormControl = useFormControl();
|
|
47120
47863
|
let shrink = shrinkProp;
|
|
47121
47864
|
if (typeof shrink === 'undefined' && muiFormControl) {
|
|
@@ -47134,7 +47877,7 @@ const InputLabel = /*#__PURE__*/React__namespace.forwardRef(function InputLabel(
|
|
|
47134
47877
|
variant: fcs.variant,
|
|
47135
47878
|
required: fcs.required
|
|
47136
47879
|
});
|
|
47137
|
-
const classes = useUtilityClasses$
|
|
47880
|
+
const classes = useUtilityClasses$c(ownerState);
|
|
47138
47881
|
return /*#__PURE__*/jsxRuntime.jsx(InputLabelRoot, _extends({
|
|
47139
47882
|
"data-shrink": shrink,
|
|
47140
47883
|
ownerState: ownerState,
|
|
@@ -47243,8 +47986,8 @@ const getTextDecoration = ({
|
|
|
47243
47986
|
};
|
|
47244
47987
|
var getTextDecoration$1 = getTextDecoration;
|
|
47245
47988
|
|
|
47246
|
-
const _excluded$
|
|
47247
|
-
const useUtilityClasses$
|
|
47989
|
+
const _excluded$e = ["className", "color", "component", "onBlur", "onFocus", "TypographyClasses", "underline", "variant", "sx"];
|
|
47990
|
+
const useUtilityClasses$b = ownerState => {
|
|
47248
47991
|
const {
|
|
47249
47992
|
classes,
|
|
47250
47993
|
component,
|
|
@@ -47332,7 +48075,7 @@ const Link$1 = /*#__PURE__*/React__namespace.forwardRef(function Link(inProps, r
|
|
|
47332
48075
|
variant = 'inherit',
|
|
47333
48076
|
sx
|
|
47334
48077
|
} = props,
|
|
47335
|
-
other = _objectWithoutPropertiesLoose(props, _excluded$
|
|
48078
|
+
other = _objectWithoutPropertiesLoose(props, _excluded$e);
|
|
47336
48079
|
const {
|
|
47337
48080
|
isFocusVisibleRef,
|
|
47338
48081
|
onBlur: handleBlurVisible,
|
|
@@ -47366,7 +48109,7 @@ const Link$1 = /*#__PURE__*/React__namespace.forwardRef(function Link(inProps, r
|
|
|
47366
48109
|
underline,
|
|
47367
48110
|
variant
|
|
47368
48111
|
});
|
|
47369
|
-
const classes = useUtilityClasses$
|
|
48112
|
+
const classes = useUtilityClasses$b(ownerState);
|
|
47370
48113
|
return /*#__PURE__*/jsxRuntime.jsx(LinkRoot, _extends({
|
|
47371
48114
|
color: color,
|
|
47372
48115
|
className: clsx(classes.root, className),
|
|
@@ -47452,8 +48195,8 @@ function getListUtilityClass(slot) {
|
|
|
47452
48195
|
}
|
|
47453
48196
|
generateUtilityClasses('MuiList', ['root', 'padding', 'dense', 'subheader']);
|
|
47454
48197
|
|
|
47455
|
-
const _excluded$
|
|
47456
|
-
const useUtilityClasses$
|
|
48198
|
+
const _excluded$d = ["children", "className", "component", "dense", "disablePadding", "subheader"];
|
|
48199
|
+
const useUtilityClasses$a = ownerState => {
|
|
47457
48200
|
const {
|
|
47458
48201
|
classes,
|
|
47459
48202
|
disablePadding,
|
|
@@ -47500,7 +48243,7 @@ const List = /*#__PURE__*/React__namespace.forwardRef(function List(inProps, ref
|
|
|
47500
48243
|
disablePadding = false,
|
|
47501
48244
|
subheader
|
|
47502
48245
|
} = props,
|
|
47503
|
-
other = _objectWithoutPropertiesLoose(props, _excluded$
|
|
48246
|
+
other = _objectWithoutPropertiesLoose(props, _excluded$d);
|
|
47504
48247
|
const context = React__namespace.useMemo(() => ({
|
|
47505
48248
|
dense
|
|
47506
48249
|
}), [dense]);
|
|
@@ -47509,7 +48252,7 @@ const List = /*#__PURE__*/React__namespace.forwardRef(function List(inProps, ref
|
|
|
47509
48252
|
dense,
|
|
47510
48253
|
disablePadding
|
|
47511
48254
|
});
|
|
47512
|
-
const classes = useUtilityClasses$
|
|
48255
|
+
const classes = useUtilityClasses$a(ownerState);
|
|
47513
48256
|
return /*#__PURE__*/jsxRuntime.jsx(ListContext$1.Provider, {
|
|
47514
48257
|
value: context,
|
|
47515
48258
|
children: /*#__PURE__*/jsxRuntime.jsxs(ListRoot, _extends({
|
|
@@ -47567,7 +48310,13 @@ process.env.NODE_ENV !== "production" ? List.propTypes /* remove-proptypes */ =
|
|
|
47567
48310
|
} : void 0;
|
|
47568
48311
|
var List$1 = List;
|
|
47569
48312
|
|
|
47570
|
-
const
|
|
48313
|
+
const listItemIconClasses = generateUtilityClasses('MuiListItemIcon', ['root', 'alignItemsFlexStart']);
|
|
48314
|
+
var listItemIconClasses$1 = listItemIconClasses;
|
|
48315
|
+
|
|
48316
|
+
const listItemTextClasses = generateUtilityClasses('MuiListItemText', ['root', 'multiline', 'dense', 'inset', 'primary', 'secondary']);
|
|
48317
|
+
var listItemTextClasses$1 = listItemTextClasses;
|
|
48318
|
+
|
|
48319
|
+
const _excluded$c = ["actions", "autoFocus", "autoFocusItem", "children", "className", "disabledItemsFocusable", "disableListWrap", "onKeyDown", "variant"];
|
|
47571
48320
|
function nextItem(list, item, disableListWrap) {
|
|
47572
48321
|
if (list === item) {
|
|
47573
48322
|
return list.firstChild;
|
|
@@ -47649,7 +48398,7 @@ const MenuList = /*#__PURE__*/React__namespace.forwardRef(function MenuList(prop
|
|
|
47649
48398
|
onKeyDown,
|
|
47650
48399
|
variant = 'selectedMenu'
|
|
47651
48400
|
} = props,
|
|
47652
|
-
other = _objectWithoutPropertiesLoose(props, _excluded$
|
|
48401
|
+
other = _objectWithoutPropertiesLoose(props, _excluded$c);
|
|
47653
48402
|
const listRef = React__namespace.useRef(null);
|
|
47654
48403
|
const textCriteriaRef = React__namespace.useRef({
|
|
47655
48404
|
keys: [],
|
|
@@ -47828,7 +48577,7 @@ function getPopoverUtilityClass(slot) {
|
|
|
47828
48577
|
}
|
|
47829
48578
|
generateUtilityClasses('MuiPopover', ['root', 'paper']);
|
|
47830
48579
|
|
|
47831
|
-
const _excluded$
|
|
48580
|
+
const _excluded$b = ["onEntering"],
|
|
47832
48581
|
_excluded2$1 = ["action", "anchorEl", "anchorOrigin", "anchorPosition", "anchorReference", "children", "className", "container", "elevation", "marginThreshold", "open", "PaperProps", "transformOrigin", "TransitionComponent", "transitionDuration", "TransitionProps"];
|
|
47833
48582
|
function getOffsetTop(rect, vertical) {
|
|
47834
48583
|
let offset = 0;
|
|
@@ -47858,7 +48607,7 @@ function getTransformOriginValue(transformOrigin) {
|
|
|
47858
48607
|
function resolveAnchorEl(anchorEl) {
|
|
47859
48608
|
return typeof anchorEl === 'function' ? anchorEl() : anchorEl;
|
|
47860
48609
|
}
|
|
47861
|
-
const useUtilityClasses$
|
|
48610
|
+
const useUtilityClasses$9 = ownerState => {
|
|
47862
48611
|
const {
|
|
47863
48612
|
classes
|
|
47864
48613
|
} = ownerState;
|
|
@@ -47921,7 +48670,7 @@ const Popover = /*#__PURE__*/React__namespace.forwardRef(function Popover(inProp
|
|
|
47921
48670
|
onEntering
|
|
47922
48671
|
} = {}
|
|
47923
48672
|
} = props,
|
|
47924
|
-
TransitionProps = _objectWithoutPropertiesLoose(props.TransitionProps, _excluded$
|
|
48673
|
+
TransitionProps = _objectWithoutPropertiesLoose(props.TransitionProps, _excluded$b),
|
|
47925
48674
|
other = _objectWithoutPropertiesLoose(props, _excluded2$1);
|
|
47926
48675
|
const paperRef = React__namespace.useRef();
|
|
47927
48676
|
const handlePaperRef = useForkRef(paperRef, PaperProps.ref);
|
|
@@ -47936,7 +48685,7 @@ const Popover = /*#__PURE__*/React__namespace.forwardRef(function Popover(inProp
|
|
|
47936
48685
|
transitionDuration: transitionDurationProp,
|
|
47937
48686
|
TransitionProps
|
|
47938
48687
|
});
|
|
47939
|
-
const classes = useUtilityClasses$
|
|
48688
|
+
const classes = useUtilityClasses$9(ownerState);
|
|
47940
48689
|
|
|
47941
48690
|
// Returns the top/left offset of the position
|
|
47942
48691
|
// to attach to on the anchor element (or body if none is provided)
|
|
@@ -48282,7 +49031,7 @@ function getMenuUtilityClass(slot) {
|
|
|
48282
49031
|
}
|
|
48283
49032
|
generateUtilityClasses('MuiMenu', ['root', 'paper', 'list']);
|
|
48284
49033
|
|
|
48285
|
-
const _excluded$
|
|
49034
|
+
const _excluded$a = ["onEntering"],
|
|
48286
49035
|
_excluded2 = ["autoFocus", "children", "disableAutoFocusItem", "MenuListProps", "onClose", "open", "PaperProps", "PopoverClasses", "transitionDuration", "TransitionProps", "variant"];
|
|
48287
49036
|
const RTL_ORIGIN = {
|
|
48288
49037
|
vertical: 'top',
|
|
@@ -48292,7 +49041,7 @@ const LTR_ORIGIN = {
|
|
|
48292
49041
|
vertical: 'top',
|
|
48293
49042
|
horizontal: 'left'
|
|
48294
49043
|
};
|
|
48295
|
-
const useUtilityClasses$
|
|
49044
|
+
const useUtilityClasses$8 = ownerState => {
|
|
48296
49045
|
const {
|
|
48297
49046
|
classes
|
|
48298
49047
|
} = ownerState;
|
|
@@ -48349,7 +49098,7 @@ const Menu = /*#__PURE__*/React__namespace.forwardRef(function Menu(inProps, ref
|
|
|
48349
49098
|
} = {},
|
|
48350
49099
|
variant = 'selectedMenu'
|
|
48351
49100
|
} = props,
|
|
48352
|
-
TransitionProps = _objectWithoutPropertiesLoose(props.TransitionProps, _excluded$
|
|
49101
|
+
TransitionProps = _objectWithoutPropertiesLoose(props.TransitionProps, _excluded$a),
|
|
48353
49102
|
other = _objectWithoutPropertiesLoose(props, _excluded2);
|
|
48354
49103
|
const theme = useTheme();
|
|
48355
49104
|
const isRtl = theme.direction === 'rtl';
|
|
@@ -48363,7 +49112,7 @@ const Menu = /*#__PURE__*/React__namespace.forwardRef(function Menu(inProps, ref
|
|
|
48363
49112
|
TransitionProps,
|
|
48364
49113
|
variant
|
|
48365
49114
|
});
|
|
48366
|
-
const classes = useUtilityClasses$
|
|
49115
|
+
const classes = useUtilityClasses$8(ownerState);
|
|
48367
49116
|
const autoFocusItem = autoFocus && !disableAutoFocusItem && open;
|
|
48368
49117
|
const menuListActionsRef = React__namespace.useRef(null);
|
|
48369
49118
|
const handleEntering = (element, isAppearing) => {
|
|
@@ -48530,14 +49279,260 @@ process.env.NODE_ENV !== "production" ? Menu.propTypes /* remove-proptypes */ =
|
|
|
48530
49279
|
} : void 0;
|
|
48531
49280
|
var Menu$1 = Menu;
|
|
48532
49281
|
|
|
49282
|
+
function getMenuItemUtilityClass(slot) {
|
|
49283
|
+
return generateUtilityClass('MuiMenuItem', slot);
|
|
49284
|
+
}
|
|
49285
|
+
const menuItemClasses = generateUtilityClasses('MuiMenuItem', ['root', 'focusVisible', 'dense', 'disabled', 'divider', 'gutters', 'selected']);
|
|
49286
|
+
var menuItemClasses$1 = menuItemClasses;
|
|
49287
|
+
|
|
49288
|
+
const _excluded$9 = ["autoFocus", "component", "dense", "divider", "disableGutters", "focusVisibleClassName", "role", "tabIndex", "className"];
|
|
49289
|
+
const overridesResolver$1 = (props, styles) => {
|
|
49290
|
+
const {
|
|
49291
|
+
ownerState
|
|
49292
|
+
} = props;
|
|
49293
|
+
return [styles.root, ownerState.dense && styles.dense, ownerState.divider && styles.divider, !ownerState.disableGutters && styles.gutters];
|
|
49294
|
+
};
|
|
49295
|
+
const useUtilityClasses$7 = ownerState => {
|
|
49296
|
+
const {
|
|
49297
|
+
disabled,
|
|
49298
|
+
dense,
|
|
49299
|
+
divider,
|
|
49300
|
+
disableGutters,
|
|
49301
|
+
selected,
|
|
49302
|
+
classes
|
|
49303
|
+
} = ownerState;
|
|
49304
|
+
const slots = {
|
|
49305
|
+
root: ['root', dense && 'dense', disabled && 'disabled', !disableGutters && 'gutters', divider && 'divider', selected && 'selected']
|
|
49306
|
+
};
|
|
49307
|
+
const composedClasses = composeClasses(slots, getMenuItemUtilityClass, classes);
|
|
49308
|
+
return _extends({}, classes, composedClasses);
|
|
49309
|
+
};
|
|
49310
|
+
const MenuItemRoot = styled$1(ButtonBase$1, {
|
|
49311
|
+
shouldForwardProp: prop => rootShouldForwardProp(prop) || prop === 'classes',
|
|
49312
|
+
name: 'MuiMenuItem',
|
|
49313
|
+
slot: 'Root',
|
|
49314
|
+
overridesResolver: overridesResolver$1
|
|
49315
|
+
})(({
|
|
49316
|
+
theme,
|
|
49317
|
+
ownerState
|
|
49318
|
+
}) => _extends({}, theme.typography.body1, {
|
|
49319
|
+
display: 'flex',
|
|
49320
|
+
justifyContent: 'flex-start',
|
|
49321
|
+
alignItems: 'center',
|
|
49322
|
+
position: 'relative',
|
|
49323
|
+
textDecoration: 'none',
|
|
49324
|
+
minHeight: 48,
|
|
49325
|
+
paddingTop: 6,
|
|
49326
|
+
paddingBottom: 6,
|
|
49327
|
+
boxSizing: 'border-box',
|
|
49328
|
+
whiteSpace: 'nowrap'
|
|
49329
|
+
}, !ownerState.disableGutters && {
|
|
49330
|
+
paddingLeft: 16,
|
|
49331
|
+
paddingRight: 16
|
|
49332
|
+
}, ownerState.divider && {
|
|
49333
|
+
borderBottom: `1px solid ${(theme.vars || theme).palette.divider}`,
|
|
49334
|
+
backgroundClip: 'padding-box'
|
|
49335
|
+
}, {
|
|
49336
|
+
'&:hover': {
|
|
49337
|
+
textDecoration: 'none',
|
|
49338
|
+
backgroundColor: (theme.vars || theme).palette.action.hover,
|
|
49339
|
+
// Reset on touch devices, it doesn't add specificity
|
|
49340
|
+
'@media (hover: none)': {
|
|
49341
|
+
backgroundColor: 'transparent'
|
|
49342
|
+
}
|
|
49343
|
+
},
|
|
49344
|
+
[`&.${menuItemClasses$1.selected}`]: {
|
|
49345
|
+
backgroundColor: theme.vars ? `rgba(${theme.vars.palette.primary.mainChannel} / ${theme.vars.palette.action.selectedOpacity})` : alpha(theme.palette.primary.main, theme.palette.action.selectedOpacity),
|
|
49346
|
+
[`&.${menuItemClasses$1.focusVisible}`]: {
|
|
49347
|
+
backgroundColor: theme.vars ? `rgba(${theme.vars.palette.primary.mainChannel} / calc(${theme.vars.palette.action.selectedOpacity} + ${theme.vars.palette.action.focusOpacity}))` : alpha(theme.palette.primary.main, theme.palette.action.selectedOpacity + theme.palette.action.focusOpacity)
|
|
49348
|
+
}
|
|
49349
|
+
},
|
|
49350
|
+
[`&.${menuItemClasses$1.selected}:hover`]: {
|
|
49351
|
+
backgroundColor: theme.vars ? `rgba(${theme.vars.palette.primary.mainChannel} / calc(${theme.vars.palette.action.selectedOpacity} + ${theme.vars.palette.action.hoverOpacity}))` : alpha(theme.palette.primary.main, theme.palette.action.selectedOpacity + theme.palette.action.hoverOpacity),
|
|
49352
|
+
// Reset on touch devices, it doesn't add specificity
|
|
49353
|
+
'@media (hover: none)': {
|
|
49354
|
+
backgroundColor: theme.vars ? `rgba(${theme.vars.palette.primary.mainChannel} / ${theme.vars.palette.action.selectedOpacity})` : alpha(theme.palette.primary.main, theme.palette.action.selectedOpacity)
|
|
49355
|
+
}
|
|
49356
|
+
},
|
|
49357
|
+
[`&.${menuItemClasses$1.focusVisible}`]: {
|
|
49358
|
+
backgroundColor: (theme.vars || theme).palette.action.focus
|
|
49359
|
+
},
|
|
49360
|
+
[`&.${menuItemClasses$1.disabled}`]: {
|
|
49361
|
+
opacity: (theme.vars || theme).palette.action.disabledOpacity
|
|
49362
|
+
},
|
|
49363
|
+
[`& + .${dividerClasses$1.root}`]: {
|
|
49364
|
+
marginTop: theme.spacing(1),
|
|
49365
|
+
marginBottom: theme.spacing(1)
|
|
49366
|
+
},
|
|
49367
|
+
[`& + .${dividerClasses$1.inset}`]: {
|
|
49368
|
+
marginLeft: 52
|
|
49369
|
+
},
|
|
49370
|
+
[`& .${listItemTextClasses$1.root}`]: {
|
|
49371
|
+
marginTop: 0,
|
|
49372
|
+
marginBottom: 0
|
|
49373
|
+
},
|
|
49374
|
+
[`& .${listItemTextClasses$1.inset}`]: {
|
|
49375
|
+
paddingLeft: 36
|
|
49376
|
+
},
|
|
49377
|
+
[`& .${listItemIconClasses$1.root}`]: {
|
|
49378
|
+
minWidth: 36
|
|
49379
|
+
}
|
|
49380
|
+
}, !ownerState.dense && {
|
|
49381
|
+
[theme.breakpoints.up('sm')]: {
|
|
49382
|
+
minHeight: 'auto'
|
|
49383
|
+
}
|
|
49384
|
+
}, ownerState.dense && _extends({
|
|
49385
|
+
minHeight: 32,
|
|
49386
|
+
// https://m2.material.io/components/menus#specs > Dense
|
|
49387
|
+
paddingTop: 4,
|
|
49388
|
+
paddingBottom: 4
|
|
49389
|
+
}, theme.typography.body2, {
|
|
49390
|
+
[`& .${listItemIconClasses$1.root} svg`]: {
|
|
49391
|
+
fontSize: '1.25rem'
|
|
49392
|
+
}
|
|
49393
|
+
})));
|
|
49394
|
+
const MenuItem = /*#__PURE__*/React__namespace.forwardRef(function MenuItem(inProps, ref) {
|
|
49395
|
+
const props = useThemeProps({
|
|
49396
|
+
props: inProps,
|
|
49397
|
+
name: 'MuiMenuItem'
|
|
49398
|
+
});
|
|
49399
|
+
const {
|
|
49400
|
+
autoFocus = false,
|
|
49401
|
+
component = 'li',
|
|
49402
|
+
dense = false,
|
|
49403
|
+
divider = false,
|
|
49404
|
+
disableGutters = false,
|
|
49405
|
+
focusVisibleClassName,
|
|
49406
|
+
role = 'menuitem',
|
|
49407
|
+
tabIndex: tabIndexProp,
|
|
49408
|
+
className
|
|
49409
|
+
} = props,
|
|
49410
|
+
other = _objectWithoutPropertiesLoose(props, _excluded$9);
|
|
49411
|
+
const context = React__namespace.useContext(ListContext$1);
|
|
49412
|
+
const childContext = React__namespace.useMemo(() => ({
|
|
49413
|
+
dense: dense || context.dense || false,
|
|
49414
|
+
disableGutters
|
|
49415
|
+
}), [context.dense, dense, disableGutters]);
|
|
49416
|
+
const menuItemRef = React__namespace.useRef(null);
|
|
49417
|
+
useEnhancedEffect$1(() => {
|
|
49418
|
+
if (autoFocus) {
|
|
49419
|
+
if (menuItemRef.current) {
|
|
49420
|
+
menuItemRef.current.focus();
|
|
49421
|
+
} else if (process.env.NODE_ENV !== 'production') {
|
|
49422
|
+
console.error('MUI: Unable to set focus to a MenuItem whose component has not been rendered.');
|
|
49423
|
+
}
|
|
49424
|
+
}
|
|
49425
|
+
}, [autoFocus]);
|
|
49426
|
+
const ownerState = _extends({}, props, {
|
|
49427
|
+
dense: childContext.dense,
|
|
49428
|
+
divider,
|
|
49429
|
+
disableGutters
|
|
49430
|
+
});
|
|
49431
|
+
const classes = useUtilityClasses$7(props);
|
|
49432
|
+
const handleRef = useForkRef(menuItemRef, ref);
|
|
49433
|
+
let tabIndex;
|
|
49434
|
+
if (!props.disabled) {
|
|
49435
|
+
tabIndex = tabIndexProp !== undefined ? tabIndexProp : -1;
|
|
49436
|
+
}
|
|
49437
|
+
return /*#__PURE__*/jsxRuntime.jsx(ListContext$1.Provider, {
|
|
49438
|
+
value: childContext,
|
|
49439
|
+
children: /*#__PURE__*/jsxRuntime.jsx(MenuItemRoot, _extends({
|
|
49440
|
+
ref: handleRef,
|
|
49441
|
+
role: role,
|
|
49442
|
+
tabIndex: tabIndex,
|
|
49443
|
+
component: component,
|
|
49444
|
+
focusVisibleClassName: clsx(classes.focusVisible, focusVisibleClassName),
|
|
49445
|
+
className: clsx(classes.root, className)
|
|
49446
|
+
}, other, {
|
|
49447
|
+
ownerState: ownerState,
|
|
49448
|
+
classes: classes
|
|
49449
|
+
}))
|
|
49450
|
+
});
|
|
49451
|
+
});
|
|
49452
|
+
process.env.NODE_ENV !== "production" ? MenuItem.propTypes /* remove-proptypes */ = {
|
|
49453
|
+
// ----------------------------- Warning --------------------------------
|
|
49454
|
+
// | These PropTypes are generated from the TypeScript type definitions |
|
|
49455
|
+
// | To update them edit the d.ts file and run "yarn proptypes" |
|
|
49456
|
+
// ----------------------------------------------------------------------
|
|
49457
|
+
/**
|
|
49458
|
+
* If `true`, the list item is focused during the first mount.
|
|
49459
|
+
* Focus will also be triggered if the value changes from false to true.
|
|
49460
|
+
* @default false
|
|
49461
|
+
*/
|
|
49462
|
+
autoFocus: PropTypes.bool,
|
|
49463
|
+
/**
|
|
49464
|
+
* The content of the component.
|
|
49465
|
+
*/
|
|
49466
|
+
children: PropTypes.node,
|
|
49467
|
+
/**
|
|
49468
|
+
* Override or extend the styles applied to the component.
|
|
49469
|
+
*/
|
|
49470
|
+
classes: PropTypes.object,
|
|
49471
|
+
/**
|
|
49472
|
+
* @ignore
|
|
49473
|
+
*/
|
|
49474
|
+
className: PropTypes.string,
|
|
49475
|
+
/**
|
|
49476
|
+
* The component used for the root node.
|
|
49477
|
+
* Either a string to use a HTML element or a component.
|
|
49478
|
+
*/
|
|
49479
|
+
component: PropTypes.elementType,
|
|
49480
|
+
/**
|
|
49481
|
+
* If `true`, compact vertical padding designed for keyboard and mouse input is used.
|
|
49482
|
+
* The prop defaults to the value inherited from the parent Menu component.
|
|
49483
|
+
* @default false
|
|
49484
|
+
*/
|
|
49485
|
+
dense: PropTypes.bool,
|
|
49486
|
+
/**
|
|
49487
|
+
* @ignore
|
|
49488
|
+
*/
|
|
49489
|
+
disabled: PropTypes.bool,
|
|
49490
|
+
/**
|
|
49491
|
+
* If `true`, the left and right padding is removed.
|
|
49492
|
+
* @default false
|
|
49493
|
+
*/
|
|
49494
|
+
disableGutters: PropTypes.bool,
|
|
49495
|
+
/**
|
|
49496
|
+
* If `true`, a 1px light border is added to the bottom of the menu item.
|
|
49497
|
+
* @default false
|
|
49498
|
+
*/
|
|
49499
|
+
divider: PropTypes.bool,
|
|
49500
|
+
/**
|
|
49501
|
+
* This prop can help identify which element has keyboard focus.
|
|
49502
|
+
* The class name will be applied when the element gains the focus through keyboard interaction.
|
|
49503
|
+
* It's a polyfill for the [CSS :focus-visible selector](https://drafts.csswg.org/selectors-4/#the-focus-visible-pseudo).
|
|
49504
|
+
* The rationale for using this feature [is explained here](https://github.com/WICG/focus-visible/blob/HEAD/explainer.md).
|
|
49505
|
+
* A [polyfill can be used](https://github.com/WICG/focus-visible) to apply a `focus-visible` class to other components
|
|
49506
|
+
* if needed.
|
|
49507
|
+
*/
|
|
49508
|
+
focusVisibleClassName: PropTypes.string,
|
|
49509
|
+
/**
|
|
49510
|
+
* @ignore
|
|
49511
|
+
*/
|
|
49512
|
+
role: PropTypes /* @typescript-to-proptypes-ignore */.string,
|
|
49513
|
+
/**
|
|
49514
|
+
* @ignore
|
|
49515
|
+
*/
|
|
49516
|
+
selected: PropTypes.bool,
|
|
49517
|
+
/**
|
|
49518
|
+
* The system prop that allows defining system overrides as well as additional CSS styles.
|
|
49519
|
+
*/
|
|
49520
|
+
sx: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.func, PropTypes.object, PropTypes.bool])), PropTypes.func, PropTypes.object]),
|
|
49521
|
+
/**
|
|
49522
|
+
* @default 0
|
|
49523
|
+
*/
|
|
49524
|
+
tabIndex: PropTypes.number
|
|
49525
|
+
} : void 0;
|
|
49526
|
+
var MenuItem$1 = MenuItem;
|
|
49527
|
+
|
|
48533
49528
|
function getNativeSelectUtilityClasses(slot) {
|
|
48534
49529
|
return generateUtilityClass('MuiNativeSelect', slot);
|
|
48535
49530
|
}
|
|
48536
49531
|
const nativeSelectClasses = generateUtilityClasses('MuiNativeSelect', ['root', 'select', 'multiple', 'filled', 'outlined', 'standard', 'disabled', 'icon', 'iconOpen', 'iconFilled', 'iconOutlined', 'iconStandard', 'nativeInput']);
|
|
48537
49532
|
var nativeSelectClasses$1 = nativeSelectClasses;
|
|
48538
49533
|
|
|
48539
|
-
const _excluded$
|
|
48540
|
-
const useUtilityClasses$
|
|
49534
|
+
const _excluded$8 = ["className", "disabled", "IconComponent", "inputRef", "variant"];
|
|
49535
|
+
const useUtilityClasses$6 = ownerState => {
|
|
48541
49536
|
const {
|
|
48542
49537
|
classes,
|
|
48543
49538
|
variant,
|
|
@@ -48663,12 +49658,12 @@ const NativeSelectInput = /*#__PURE__*/React__namespace.forwardRef(function Nati
|
|
|
48663
49658
|
inputRef,
|
|
48664
49659
|
variant = 'standard'
|
|
48665
49660
|
} = props,
|
|
48666
|
-
other = _objectWithoutPropertiesLoose(props, _excluded$
|
|
49661
|
+
other = _objectWithoutPropertiesLoose(props, _excluded$8);
|
|
48667
49662
|
const ownerState = _extends({}, props, {
|
|
48668
49663
|
disabled,
|
|
48669
49664
|
variant
|
|
48670
49665
|
});
|
|
48671
|
-
const classes = useUtilityClasses$
|
|
49666
|
+
const classes = useUtilityClasses$6(ownerState);
|
|
48672
49667
|
return /*#__PURE__*/jsxRuntime.jsxs(React__namespace.Fragment, {
|
|
48673
49668
|
children: [/*#__PURE__*/jsxRuntime.jsx(NativeSelectSelect, _extends({
|
|
48674
49669
|
ownerState: ownerState,
|
|
@@ -48737,7 +49732,7 @@ process.env.NODE_ENV !== "production" ? NativeSelectInput.propTypes = {
|
|
|
48737
49732
|
var NativeSelectInput$1 = NativeSelectInput;
|
|
48738
49733
|
|
|
48739
49734
|
var _span$1;
|
|
48740
|
-
const _excluded$
|
|
49735
|
+
const _excluded$7 = ["children", "classes", "className", "label", "notched"];
|
|
48741
49736
|
const NotchedOutlineRoot$1 = styled$1('fieldset')({
|
|
48742
49737
|
textAlign: 'left',
|
|
48743
49738
|
position: 'absolute',
|
|
@@ -48810,7 +49805,7 @@ function NotchedOutline(props) {
|
|
|
48810
49805
|
label,
|
|
48811
49806
|
notched
|
|
48812
49807
|
} = props,
|
|
48813
|
-
other = _objectWithoutPropertiesLoose(props, _excluded$
|
|
49808
|
+
other = _objectWithoutPropertiesLoose(props, _excluded$7);
|
|
48814
49809
|
const withLabel = label != null && label !== '';
|
|
48815
49810
|
const ownerState = _extends({}, props, {
|
|
48816
49811
|
notched,
|
|
@@ -48861,8 +49856,8 @@ process.env.NODE_ENV !== "production" ? NotchedOutline.propTypes = {
|
|
|
48861
49856
|
style: PropTypes.object
|
|
48862
49857
|
} : void 0;
|
|
48863
49858
|
|
|
48864
|
-
const _excluded$
|
|
48865
|
-
const useUtilityClasses$
|
|
49859
|
+
const _excluded$6 = ["components", "fullWidth", "inputComponent", "label", "multiline", "notched", "slots", "type"];
|
|
49860
|
+
const useUtilityClasses$5 = ownerState => {
|
|
48866
49861
|
const {
|
|
48867
49862
|
classes
|
|
48868
49863
|
} = ownerState;
|
|
@@ -48980,8 +49975,8 @@ const OutlinedInput = /*#__PURE__*/React__namespace.forwardRef(function Outlined
|
|
|
48980
49975
|
slots = {},
|
|
48981
49976
|
type = 'text'
|
|
48982
49977
|
} = props,
|
|
48983
|
-
other = _objectWithoutPropertiesLoose(props, _excluded$
|
|
48984
|
-
const classes = useUtilityClasses$
|
|
49978
|
+
other = _objectWithoutPropertiesLoose(props, _excluded$6);
|
|
49979
|
+
const classes = useUtilityClasses$5(props);
|
|
48985
49980
|
const muiFormControl = useFormControl();
|
|
48986
49981
|
const fcs = formControlState({
|
|
48987
49982
|
props,
|
|
@@ -49195,6 +50190,716 @@ process.env.NODE_ENV !== "production" ? OutlinedInput.propTypes /* remove-propty
|
|
|
49195
50190
|
OutlinedInput.muiName = 'Input';
|
|
49196
50191
|
var OutlinedInput$1 = OutlinedInput;
|
|
49197
50192
|
|
|
50193
|
+
function getPaginationUtilityClass(slot) {
|
|
50194
|
+
return generateUtilityClass('MuiPagination', slot);
|
|
50195
|
+
}
|
|
50196
|
+
generateUtilityClasses('MuiPagination', ['root', 'ul', 'outlined', 'text']);
|
|
50197
|
+
|
|
50198
|
+
const _excluded$5 = ["boundaryCount", "componentName", "count", "defaultPage", "disabled", "hideNextButton", "hidePrevButton", "onChange", "page", "showFirstButton", "showLastButton", "siblingCount"];
|
|
50199
|
+
function usePagination(props = {}) {
|
|
50200
|
+
// keep default values in sync with @default tags in Pagination.propTypes
|
|
50201
|
+
const {
|
|
50202
|
+
boundaryCount = 1,
|
|
50203
|
+
componentName = 'usePagination',
|
|
50204
|
+
count = 1,
|
|
50205
|
+
defaultPage = 1,
|
|
50206
|
+
disabled = false,
|
|
50207
|
+
hideNextButton = false,
|
|
50208
|
+
hidePrevButton = false,
|
|
50209
|
+
onChange: handleChange,
|
|
50210
|
+
page: pageProp,
|
|
50211
|
+
showFirstButton = false,
|
|
50212
|
+
showLastButton = false,
|
|
50213
|
+
siblingCount = 1
|
|
50214
|
+
} = props,
|
|
50215
|
+
other = _objectWithoutPropertiesLoose(props, _excluded$5);
|
|
50216
|
+
const [page, setPageState] = useControlled({
|
|
50217
|
+
controlled: pageProp,
|
|
50218
|
+
default: defaultPage,
|
|
50219
|
+
name: componentName,
|
|
50220
|
+
state: 'page'
|
|
50221
|
+
});
|
|
50222
|
+
const handleClick = (event, value) => {
|
|
50223
|
+
if (!pageProp) {
|
|
50224
|
+
setPageState(value);
|
|
50225
|
+
}
|
|
50226
|
+
if (handleChange) {
|
|
50227
|
+
handleChange(event, value);
|
|
50228
|
+
}
|
|
50229
|
+
};
|
|
50230
|
+
|
|
50231
|
+
// https://dev.to/namirsab/comment/2050
|
|
50232
|
+
const range = (start, end) => {
|
|
50233
|
+
const length = end - start + 1;
|
|
50234
|
+
return Array.from({
|
|
50235
|
+
length
|
|
50236
|
+
}, (_, i) => start + i);
|
|
50237
|
+
};
|
|
50238
|
+
const startPages = range(1, Math.min(boundaryCount, count));
|
|
50239
|
+
const endPages = range(Math.max(count - boundaryCount + 1, boundaryCount + 1), count);
|
|
50240
|
+
const siblingsStart = Math.max(Math.min(
|
|
50241
|
+
// Natural start
|
|
50242
|
+
page - siblingCount,
|
|
50243
|
+
// Lower boundary when page is high
|
|
50244
|
+
count - boundaryCount - siblingCount * 2 - 1),
|
|
50245
|
+
// Greater than startPages
|
|
50246
|
+
boundaryCount + 2);
|
|
50247
|
+
const siblingsEnd = Math.min(Math.max(
|
|
50248
|
+
// Natural end
|
|
50249
|
+
page + siblingCount,
|
|
50250
|
+
// Upper boundary when page is low
|
|
50251
|
+
boundaryCount + siblingCount * 2 + 2),
|
|
50252
|
+
// Less than endPages
|
|
50253
|
+
endPages.length > 0 ? endPages[0] - 2 : count - 1);
|
|
50254
|
+
|
|
50255
|
+
// Basic list of items to render
|
|
50256
|
+
// e.g. itemList = ['first', 'previous', 1, 'ellipsis', 4, 5, 6, 'ellipsis', 10, 'next', 'last']
|
|
50257
|
+
const itemList = [...(showFirstButton ? ['first'] : []), ...(hidePrevButton ? [] : ['previous']), ...startPages,
|
|
50258
|
+
// Start ellipsis
|
|
50259
|
+
// eslint-disable-next-line no-nested-ternary
|
|
50260
|
+
...(siblingsStart > boundaryCount + 2 ? ['start-ellipsis'] : boundaryCount + 1 < count - boundaryCount ? [boundaryCount + 1] : []),
|
|
50261
|
+
// Sibling pages
|
|
50262
|
+
...range(siblingsStart, siblingsEnd),
|
|
50263
|
+
// End ellipsis
|
|
50264
|
+
// eslint-disable-next-line no-nested-ternary
|
|
50265
|
+
...(siblingsEnd < count - boundaryCount - 1 ? ['end-ellipsis'] : count - boundaryCount > boundaryCount ? [count - boundaryCount] : []), ...endPages, ...(hideNextButton ? [] : ['next']), ...(showLastButton ? ['last'] : [])];
|
|
50266
|
+
|
|
50267
|
+
// Map the button type to its page number
|
|
50268
|
+
const buttonPage = type => {
|
|
50269
|
+
switch (type) {
|
|
50270
|
+
case 'first':
|
|
50271
|
+
return 1;
|
|
50272
|
+
case 'previous':
|
|
50273
|
+
return page - 1;
|
|
50274
|
+
case 'next':
|
|
50275
|
+
return page + 1;
|
|
50276
|
+
case 'last':
|
|
50277
|
+
return count;
|
|
50278
|
+
default:
|
|
50279
|
+
return null;
|
|
50280
|
+
}
|
|
50281
|
+
};
|
|
50282
|
+
|
|
50283
|
+
// Convert the basic item list to PaginationItem props objects
|
|
50284
|
+
const items = itemList.map(item => {
|
|
50285
|
+
return typeof item === 'number' ? {
|
|
50286
|
+
onClick: event => {
|
|
50287
|
+
handleClick(event, item);
|
|
50288
|
+
},
|
|
50289
|
+
type: 'page',
|
|
50290
|
+
page: item,
|
|
50291
|
+
selected: item === page,
|
|
50292
|
+
disabled,
|
|
50293
|
+
'aria-current': item === page ? 'true' : undefined
|
|
50294
|
+
} : {
|
|
50295
|
+
onClick: event => {
|
|
50296
|
+
handleClick(event, buttonPage(item));
|
|
50297
|
+
},
|
|
50298
|
+
type: item,
|
|
50299
|
+
page: buttonPage(item),
|
|
50300
|
+
selected: false,
|
|
50301
|
+
disabled: disabled || item.indexOf('ellipsis') === -1 && (item === 'next' || item === 'last' ? page >= count : page <= 1)
|
|
50302
|
+
};
|
|
50303
|
+
});
|
|
50304
|
+
return _extends({
|
|
50305
|
+
items
|
|
50306
|
+
}, other);
|
|
50307
|
+
}
|
|
50308
|
+
|
|
50309
|
+
function getPaginationItemUtilityClass(slot) {
|
|
50310
|
+
return generateUtilityClass('MuiPaginationItem', slot);
|
|
50311
|
+
}
|
|
50312
|
+
const paginationItemClasses = generateUtilityClasses('MuiPaginationItem', ['root', 'page', 'sizeSmall', 'sizeLarge', 'text', 'textPrimary', 'textSecondary', 'outlined', 'outlinedPrimary', 'outlinedSecondary', 'rounded', 'ellipsis', 'firstLast', 'previousNext', 'focusVisible', 'disabled', 'selected', 'icon']);
|
|
50313
|
+
var paginationItemClasses$1 = paginationItemClasses;
|
|
50314
|
+
|
|
50315
|
+
var FirstPageIcon = createSvgIcon( /*#__PURE__*/jsxRuntime.jsx("path", {
|
|
50316
|
+
d: "M18.41 16.59L13.82 12l4.59-4.59L17 6l-6 6 6 6zM6 6h2v12H6z"
|
|
50317
|
+
}), 'FirstPage');
|
|
50318
|
+
|
|
50319
|
+
var LastPageIcon = createSvgIcon( /*#__PURE__*/jsxRuntime.jsx("path", {
|
|
50320
|
+
d: "M5.59 7.41L10.18 12l-4.59 4.59L7 18l6-6-6-6zM16 6h2v12h-2z"
|
|
50321
|
+
}), 'LastPage');
|
|
50322
|
+
|
|
50323
|
+
var NavigateBeforeIcon = createSvgIcon( /*#__PURE__*/jsxRuntime.jsx("path", {
|
|
50324
|
+
d: "M15.41 7.41L14 6l-6 6 6 6 1.41-1.41L10.83 12z"
|
|
50325
|
+
}), 'NavigateBefore');
|
|
50326
|
+
|
|
50327
|
+
var NavigateNextIcon = createSvgIcon( /*#__PURE__*/jsxRuntime.jsx("path", {
|
|
50328
|
+
d: "M10 6L8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z"
|
|
50329
|
+
}), 'NavigateNext');
|
|
50330
|
+
|
|
50331
|
+
const _excluded$4 = ["className", "color", "component", "components", "disabled", "page", "selected", "shape", "size", "slots", "type", "variant"];
|
|
50332
|
+
const overridesResolver = (props, styles) => {
|
|
50333
|
+
const {
|
|
50334
|
+
ownerState
|
|
50335
|
+
} = props;
|
|
50336
|
+
return [styles.root, styles[ownerState.variant], styles[`size${capitalize(ownerState.size)}`], ownerState.variant === 'text' && styles[`text${capitalize(ownerState.color)}`], ownerState.variant === 'outlined' && styles[`outlined${capitalize(ownerState.color)}`], ownerState.shape === 'rounded' && styles.rounded, ownerState.type === 'page' && styles.page, (ownerState.type === 'start-ellipsis' || ownerState.type === 'end-ellipsis') && styles.ellipsis, (ownerState.type === 'previous' || ownerState.type === 'next') && styles.previousNext, (ownerState.type === 'first' || ownerState.type === 'last') && styles.firstLast];
|
|
50337
|
+
};
|
|
50338
|
+
const useUtilityClasses$4 = ownerState => {
|
|
50339
|
+
const {
|
|
50340
|
+
classes,
|
|
50341
|
+
color,
|
|
50342
|
+
disabled,
|
|
50343
|
+
selected,
|
|
50344
|
+
size,
|
|
50345
|
+
shape,
|
|
50346
|
+
type,
|
|
50347
|
+
variant
|
|
50348
|
+
} = ownerState;
|
|
50349
|
+
const slots = {
|
|
50350
|
+
root: ['root', `size${capitalize(size)}`, variant, shape, color !== 'standard' && `${variant}${capitalize(color)}`, disabled && 'disabled', selected && 'selected', {
|
|
50351
|
+
page: 'page',
|
|
50352
|
+
first: 'firstLast',
|
|
50353
|
+
last: 'firstLast',
|
|
50354
|
+
'start-ellipsis': 'ellipsis',
|
|
50355
|
+
'end-ellipsis': 'ellipsis',
|
|
50356
|
+
previous: 'previousNext',
|
|
50357
|
+
next: 'previousNext'
|
|
50358
|
+
}[type]],
|
|
50359
|
+
icon: ['icon']
|
|
50360
|
+
};
|
|
50361
|
+
return composeClasses(slots, getPaginationItemUtilityClass, classes);
|
|
50362
|
+
};
|
|
50363
|
+
const PaginationItemEllipsis = styled$1('div', {
|
|
50364
|
+
name: 'MuiPaginationItem',
|
|
50365
|
+
slot: 'Root',
|
|
50366
|
+
overridesResolver
|
|
50367
|
+
})(({
|
|
50368
|
+
theme,
|
|
50369
|
+
ownerState
|
|
50370
|
+
}) => _extends({}, theme.typography.body2, {
|
|
50371
|
+
borderRadius: 32 / 2,
|
|
50372
|
+
textAlign: 'center',
|
|
50373
|
+
boxSizing: 'border-box',
|
|
50374
|
+
minWidth: 32,
|
|
50375
|
+
padding: '0 6px',
|
|
50376
|
+
margin: '0 3px',
|
|
50377
|
+
color: (theme.vars || theme).palette.text.primary,
|
|
50378
|
+
height: 'auto',
|
|
50379
|
+
[`&.${paginationItemClasses$1.disabled}`]: {
|
|
50380
|
+
opacity: (theme.vars || theme).palette.action.disabledOpacity
|
|
50381
|
+
}
|
|
50382
|
+
}, ownerState.size === 'small' && {
|
|
50383
|
+
minWidth: 26,
|
|
50384
|
+
borderRadius: 26 / 2,
|
|
50385
|
+
margin: '0 1px',
|
|
50386
|
+
padding: '0 4px'
|
|
50387
|
+
}, ownerState.size === 'large' && {
|
|
50388
|
+
minWidth: 40,
|
|
50389
|
+
borderRadius: 40 / 2,
|
|
50390
|
+
padding: '0 10px',
|
|
50391
|
+
fontSize: theme.typography.pxToRem(15)
|
|
50392
|
+
}));
|
|
50393
|
+
const PaginationItemPage = styled$1(ButtonBase$1, {
|
|
50394
|
+
name: 'MuiPaginationItem',
|
|
50395
|
+
slot: 'Root',
|
|
50396
|
+
overridesResolver
|
|
50397
|
+
})(({
|
|
50398
|
+
theme,
|
|
50399
|
+
ownerState
|
|
50400
|
+
}) => _extends({}, theme.typography.body2, {
|
|
50401
|
+
borderRadius: 32 / 2,
|
|
50402
|
+
textAlign: 'center',
|
|
50403
|
+
boxSizing: 'border-box',
|
|
50404
|
+
minWidth: 32,
|
|
50405
|
+
height: 32,
|
|
50406
|
+
padding: '0 6px',
|
|
50407
|
+
margin: '0 3px',
|
|
50408
|
+
color: (theme.vars || theme).palette.text.primary,
|
|
50409
|
+
[`&.${paginationItemClasses$1.focusVisible}`]: {
|
|
50410
|
+
backgroundColor: (theme.vars || theme).palette.action.focus
|
|
50411
|
+
},
|
|
50412
|
+
[`&.${paginationItemClasses$1.disabled}`]: {
|
|
50413
|
+
opacity: (theme.vars || theme).palette.action.disabledOpacity
|
|
50414
|
+
},
|
|
50415
|
+
transition: theme.transitions.create(['color', 'background-color'], {
|
|
50416
|
+
duration: theme.transitions.duration.short
|
|
50417
|
+
}),
|
|
50418
|
+
'&:hover': {
|
|
50419
|
+
backgroundColor: (theme.vars || theme).palette.action.hover,
|
|
50420
|
+
// Reset on touch devices, it doesn't add specificity
|
|
50421
|
+
'@media (hover: none)': {
|
|
50422
|
+
backgroundColor: 'transparent'
|
|
50423
|
+
}
|
|
50424
|
+
},
|
|
50425
|
+
[`&.${paginationItemClasses$1.selected}`]: {
|
|
50426
|
+
backgroundColor: (theme.vars || theme).palette.action.selected,
|
|
50427
|
+
'&:hover': {
|
|
50428
|
+
backgroundColor: theme.vars ? `rgba(${theme.vars.palette.action.selected} / calc(${theme.vars.palette.action.selectedOpacity} + ${theme.vars.palette.action.hoverOpacity}))` : alpha(theme.palette.action.selected, theme.palette.action.selectedOpacity + theme.palette.action.hoverOpacity),
|
|
50429
|
+
// Reset on touch devices, it doesn't add specificity
|
|
50430
|
+
'@media (hover: none)': {
|
|
50431
|
+
backgroundColor: (theme.vars || theme).palette.action.selected
|
|
50432
|
+
}
|
|
50433
|
+
},
|
|
50434
|
+
[`&.${paginationItemClasses$1.focusVisible}`]: {
|
|
50435
|
+
backgroundColor: theme.vars ? `rgba(${theme.vars.palette.action.selected} / calc(${theme.vars.palette.action.selectedOpacity} + ${theme.vars.palette.action.focusOpacity}))` : alpha(theme.palette.action.selected, theme.palette.action.selectedOpacity + theme.palette.action.focusOpacity)
|
|
50436
|
+
},
|
|
50437
|
+
[`&.${paginationItemClasses$1.disabled}`]: {
|
|
50438
|
+
opacity: 1,
|
|
50439
|
+
color: (theme.vars || theme).palette.action.disabled,
|
|
50440
|
+
backgroundColor: (theme.vars || theme).palette.action.selected
|
|
50441
|
+
}
|
|
50442
|
+
}
|
|
50443
|
+
}, ownerState.size === 'small' && {
|
|
50444
|
+
minWidth: 26,
|
|
50445
|
+
height: 26,
|
|
50446
|
+
borderRadius: 26 / 2,
|
|
50447
|
+
margin: '0 1px',
|
|
50448
|
+
padding: '0 4px'
|
|
50449
|
+
}, ownerState.size === 'large' && {
|
|
50450
|
+
minWidth: 40,
|
|
50451
|
+
height: 40,
|
|
50452
|
+
borderRadius: 40 / 2,
|
|
50453
|
+
padding: '0 10px',
|
|
50454
|
+
fontSize: theme.typography.pxToRem(15)
|
|
50455
|
+
}, ownerState.shape === 'rounded' && {
|
|
50456
|
+
borderRadius: (theme.vars || theme).shape.borderRadius
|
|
50457
|
+
}), ({
|
|
50458
|
+
theme,
|
|
50459
|
+
ownerState
|
|
50460
|
+
}) => _extends({}, ownerState.variant === 'text' && {
|
|
50461
|
+
[`&.${paginationItemClasses$1.selected}`]: _extends({}, ownerState.color !== 'standard' && {
|
|
50462
|
+
color: (theme.vars || theme).palette[ownerState.color].contrastText,
|
|
50463
|
+
backgroundColor: (theme.vars || theme).palette[ownerState.color].main,
|
|
50464
|
+
'&:hover': {
|
|
50465
|
+
backgroundColor: (theme.vars || theme).palette[ownerState.color].dark,
|
|
50466
|
+
// Reset on touch devices, it doesn't add specificity
|
|
50467
|
+
'@media (hover: none)': {
|
|
50468
|
+
backgroundColor: (theme.vars || theme).palette[ownerState.color].main
|
|
50469
|
+
}
|
|
50470
|
+
},
|
|
50471
|
+
[`&.${paginationItemClasses$1.focusVisible}`]: {
|
|
50472
|
+
backgroundColor: (theme.vars || theme).palette[ownerState.color].dark
|
|
50473
|
+
}
|
|
50474
|
+
}, {
|
|
50475
|
+
[`&.${paginationItemClasses$1.disabled}`]: {
|
|
50476
|
+
color: (theme.vars || theme).palette.action.disabled
|
|
50477
|
+
}
|
|
50478
|
+
})
|
|
50479
|
+
}, ownerState.variant === 'outlined' && {
|
|
50480
|
+
border: 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)'}`,
|
|
50481
|
+
[`&.${paginationItemClasses$1.selected}`]: _extends({}, ownerState.color !== 'standard' && {
|
|
50482
|
+
color: (theme.vars || theme).palette[ownerState.color].main,
|
|
50483
|
+
border: `1px solid ${theme.vars ? `rgba(${theme.vars.palette[ownerState.color].mainChannel} / 0.5)` : alpha(theme.palette[ownerState.color].main, 0.5)}`,
|
|
50484
|
+
backgroundColor: theme.vars ? `rgba(${theme.vars.palette[ownerState.color].mainChannel} / ${theme.vars.palette.action.activatedOpacity})` : alpha(theme.palette[ownerState.color].main, theme.palette.action.activatedOpacity),
|
|
50485
|
+
'&:hover': {
|
|
50486
|
+
backgroundColor: theme.vars ? `rgba(${theme.vars.palette[ownerState.color].mainChannel} / calc(${theme.vars.palette.action.activatedOpacity} + ${theme.vars.palette.action.focusOpacity}))` : alpha(theme.palette[ownerState.color].main, theme.palette.action.activatedOpacity + theme.palette.action.focusOpacity),
|
|
50487
|
+
// Reset on touch devices, it doesn't add specificity
|
|
50488
|
+
'@media (hover: none)': {
|
|
50489
|
+
backgroundColor: 'transparent'
|
|
50490
|
+
}
|
|
50491
|
+
},
|
|
50492
|
+
[`&.${paginationItemClasses$1.focusVisible}`]: {
|
|
50493
|
+
backgroundColor: theme.vars ? `rgba(${theme.vars.palette[ownerState.color].mainChannel} / calc(${theme.vars.palette.action.activatedOpacity} + ${theme.vars.palette.action.focusOpacity}))` : alpha(theme.palette[ownerState.color].main, theme.palette.action.activatedOpacity + theme.palette.action.focusOpacity)
|
|
50494
|
+
}
|
|
50495
|
+
}, {
|
|
50496
|
+
[`&.${paginationItemClasses$1.disabled}`]: {
|
|
50497
|
+
borderColor: (theme.vars || theme).palette.action.disabledBackground,
|
|
50498
|
+
color: (theme.vars || theme).palette.action.disabled
|
|
50499
|
+
}
|
|
50500
|
+
})
|
|
50501
|
+
}));
|
|
50502
|
+
const PaginationItemPageIcon = styled$1('div', {
|
|
50503
|
+
name: 'MuiPaginationItem',
|
|
50504
|
+
slot: 'Icon',
|
|
50505
|
+
overridesResolver: (props, styles) => styles.icon
|
|
50506
|
+
})(({
|
|
50507
|
+
theme,
|
|
50508
|
+
ownerState
|
|
50509
|
+
}) => _extends({
|
|
50510
|
+
fontSize: theme.typography.pxToRem(20),
|
|
50511
|
+
margin: '0 -8px'
|
|
50512
|
+
}, ownerState.size === 'small' && {
|
|
50513
|
+
fontSize: theme.typography.pxToRem(18)
|
|
50514
|
+
}, ownerState.size === 'large' && {
|
|
50515
|
+
fontSize: theme.typography.pxToRem(22)
|
|
50516
|
+
}));
|
|
50517
|
+
const PaginationItem = /*#__PURE__*/React__namespace.forwardRef(function PaginationItem(inProps, ref) {
|
|
50518
|
+
const props = useThemeProps({
|
|
50519
|
+
props: inProps,
|
|
50520
|
+
name: 'MuiPaginationItem'
|
|
50521
|
+
});
|
|
50522
|
+
const {
|
|
50523
|
+
className,
|
|
50524
|
+
color = 'standard',
|
|
50525
|
+
component,
|
|
50526
|
+
components = {},
|
|
50527
|
+
disabled = false,
|
|
50528
|
+
page,
|
|
50529
|
+
selected = false,
|
|
50530
|
+
shape = 'circular',
|
|
50531
|
+
size = 'medium',
|
|
50532
|
+
slots = {},
|
|
50533
|
+
type = 'page',
|
|
50534
|
+
variant = 'text'
|
|
50535
|
+
} = props,
|
|
50536
|
+
other = _objectWithoutPropertiesLoose(props, _excluded$4);
|
|
50537
|
+
const ownerState = _extends({}, props, {
|
|
50538
|
+
color,
|
|
50539
|
+
disabled,
|
|
50540
|
+
selected,
|
|
50541
|
+
shape,
|
|
50542
|
+
size,
|
|
50543
|
+
type,
|
|
50544
|
+
variant
|
|
50545
|
+
});
|
|
50546
|
+
const theme = useTheme();
|
|
50547
|
+
const classes = useUtilityClasses$4(ownerState);
|
|
50548
|
+
const normalizedIcons = theme.direction === 'rtl' ? {
|
|
50549
|
+
previous: slots.next || components.next || NavigateNextIcon,
|
|
50550
|
+
next: slots.previous || components.previous || NavigateBeforeIcon,
|
|
50551
|
+
last: slots.first || components.first || FirstPageIcon,
|
|
50552
|
+
first: slots.last || components.last || LastPageIcon
|
|
50553
|
+
} : {
|
|
50554
|
+
previous: slots.previous || components.previous || NavigateBeforeIcon,
|
|
50555
|
+
next: slots.next || components.next || NavigateNextIcon,
|
|
50556
|
+
first: slots.first || components.first || FirstPageIcon,
|
|
50557
|
+
last: slots.last || components.last || LastPageIcon
|
|
50558
|
+
};
|
|
50559
|
+
const Icon = normalizedIcons[type];
|
|
50560
|
+
return type === 'start-ellipsis' || type === 'end-ellipsis' ? /*#__PURE__*/jsxRuntime.jsx(PaginationItemEllipsis, {
|
|
50561
|
+
ref: ref,
|
|
50562
|
+
ownerState: ownerState,
|
|
50563
|
+
className: clsx(classes.root, className),
|
|
50564
|
+
children: "\u2026"
|
|
50565
|
+
}) : /*#__PURE__*/jsxRuntime.jsxs(PaginationItemPage, _extends({
|
|
50566
|
+
ref: ref,
|
|
50567
|
+
ownerState: ownerState,
|
|
50568
|
+
component: component,
|
|
50569
|
+
disabled: disabled,
|
|
50570
|
+
className: clsx(classes.root, className)
|
|
50571
|
+
}, other, {
|
|
50572
|
+
children: [type === 'page' && page, Icon ? /*#__PURE__*/jsxRuntime.jsx(PaginationItemPageIcon, {
|
|
50573
|
+
as: Icon,
|
|
50574
|
+
ownerState: ownerState,
|
|
50575
|
+
className: classes.icon
|
|
50576
|
+
}) : null]
|
|
50577
|
+
}));
|
|
50578
|
+
});
|
|
50579
|
+
process.env.NODE_ENV !== "production" ? PaginationItem.propTypes /* remove-proptypes */ = {
|
|
50580
|
+
// ----------------------------- Warning --------------------------------
|
|
50581
|
+
// | These PropTypes are generated from the TypeScript type definitions |
|
|
50582
|
+
// | To update them edit the d.ts file and run "yarn proptypes" |
|
|
50583
|
+
// ----------------------------------------------------------------------
|
|
50584
|
+
/**
|
|
50585
|
+
* @ignore
|
|
50586
|
+
*/
|
|
50587
|
+
children: PropTypes.node,
|
|
50588
|
+
/**
|
|
50589
|
+
* Override or extend the styles applied to the component.
|
|
50590
|
+
*/
|
|
50591
|
+
classes: PropTypes.object,
|
|
50592
|
+
/**
|
|
50593
|
+
* @ignore
|
|
50594
|
+
*/
|
|
50595
|
+
className: PropTypes.string,
|
|
50596
|
+
/**
|
|
50597
|
+
* The active color.
|
|
50598
|
+
* It supports both default and custom theme colors, which can be added as shown in the
|
|
50599
|
+
* [palette customization guide](https://mui.com/material-ui/customization/palette/#adding-new-colors).
|
|
50600
|
+
* @default 'standard'
|
|
50601
|
+
*/
|
|
50602
|
+
color: PropTypes /* @typescript-to-proptypes-ignore */.oneOfType([PropTypes.oneOf(['primary', 'secondary', 'standard']), PropTypes.string]),
|
|
50603
|
+
/**
|
|
50604
|
+
* The component used for the root node.
|
|
50605
|
+
* Either a string to use a HTML element or a component.
|
|
50606
|
+
*/
|
|
50607
|
+
component: PropTypes.elementType,
|
|
50608
|
+
/**
|
|
50609
|
+
* The components used for each slot inside.
|
|
50610
|
+
*
|
|
50611
|
+
* This prop is an alias for the `slots` prop.
|
|
50612
|
+
* It's recommended to use the `slots` prop instead.
|
|
50613
|
+
*
|
|
50614
|
+
* @default {}
|
|
50615
|
+
*/
|
|
50616
|
+
components: PropTypes.shape({
|
|
50617
|
+
first: PropTypes.elementType,
|
|
50618
|
+
last: PropTypes.elementType,
|
|
50619
|
+
next: PropTypes.elementType,
|
|
50620
|
+
previous: PropTypes.elementType
|
|
50621
|
+
}),
|
|
50622
|
+
/**
|
|
50623
|
+
* If `true`, the component is disabled.
|
|
50624
|
+
* @default false
|
|
50625
|
+
*/
|
|
50626
|
+
disabled: PropTypes.bool,
|
|
50627
|
+
/**
|
|
50628
|
+
* The current page number.
|
|
50629
|
+
*/
|
|
50630
|
+
page: PropTypes.node,
|
|
50631
|
+
/**
|
|
50632
|
+
* If `true` the pagination item is selected.
|
|
50633
|
+
* @default false
|
|
50634
|
+
*/
|
|
50635
|
+
selected: PropTypes.bool,
|
|
50636
|
+
/**
|
|
50637
|
+
* The shape of the pagination item.
|
|
50638
|
+
* @default 'circular'
|
|
50639
|
+
*/
|
|
50640
|
+
shape: PropTypes.oneOf(['circular', 'rounded']),
|
|
50641
|
+
/**
|
|
50642
|
+
* The size of the component.
|
|
50643
|
+
* @default 'medium'
|
|
50644
|
+
*/
|
|
50645
|
+
size: PropTypes /* @typescript-to-proptypes-ignore */.oneOfType([PropTypes.oneOf(['small', 'medium', 'large']), PropTypes.string]),
|
|
50646
|
+
/**
|
|
50647
|
+
* The components used for each slot inside.
|
|
50648
|
+
*
|
|
50649
|
+
* This prop is an alias for the `components` prop, which will be deprecated in the future.
|
|
50650
|
+
*
|
|
50651
|
+
* @default {}
|
|
50652
|
+
*/
|
|
50653
|
+
slots: PropTypes.shape({
|
|
50654
|
+
first: PropTypes.elementType,
|
|
50655
|
+
last: PropTypes.elementType,
|
|
50656
|
+
next: PropTypes.elementType,
|
|
50657
|
+
previous: PropTypes.elementType
|
|
50658
|
+
}),
|
|
50659
|
+
/**
|
|
50660
|
+
* The system prop that allows defining system overrides as well as additional CSS styles.
|
|
50661
|
+
*/
|
|
50662
|
+
sx: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.func, PropTypes.object, PropTypes.bool])), PropTypes.func, PropTypes.object]),
|
|
50663
|
+
/**
|
|
50664
|
+
* The type of pagination item.
|
|
50665
|
+
* @default 'page'
|
|
50666
|
+
*/
|
|
50667
|
+
type: PropTypes.oneOf(['end-ellipsis', 'first', 'last', 'next', 'page', 'previous', 'start-ellipsis']),
|
|
50668
|
+
/**
|
|
50669
|
+
* The variant to use.
|
|
50670
|
+
* @default 'text'
|
|
50671
|
+
*/
|
|
50672
|
+
variant: PropTypes /* @typescript-to-proptypes-ignore */.oneOfType([PropTypes.oneOf(['outlined', 'text']), PropTypes.string])
|
|
50673
|
+
} : void 0;
|
|
50674
|
+
var PaginationItem$1 = PaginationItem;
|
|
50675
|
+
|
|
50676
|
+
const _excluded$3 = ["boundaryCount", "className", "color", "count", "defaultPage", "disabled", "getItemAriaLabel", "hideNextButton", "hidePrevButton", "onChange", "page", "renderItem", "shape", "showFirstButton", "showLastButton", "siblingCount", "size", "variant"];
|
|
50677
|
+
const useUtilityClasses$3 = ownerState => {
|
|
50678
|
+
const {
|
|
50679
|
+
classes,
|
|
50680
|
+
variant
|
|
50681
|
+
} = ownerState;
|
|
50682
|
+
const slots = {
|
|
50683
|
+
root: ['root', variant],
|
|
50684
|
+
ul: ['ul']
|
|
50685
|
+
};
|
|
50686
|
+
return composeClasses(slots, getPaginationUtilityClass, classes);
|
|
50687
|
+
};
|
|
50688
|
+
const PaginationRoot = styled$1('nav', {
|
|
50689
|
+
name: 'MuiPagination',
|
|
50690
|
+
slot: 'Root',
|
|
50691
|
+
overridesResolver: (props, styles) => {
|
|
50692
|
+
const {
|
|
50693
|
+
ownerState
|
|
50694
|
+
} = props;
|
|
50695
|
+
return [styles.root, styles[ownerState.variant]];
|
|
50696
|
+
}
|
|
50697
|
+
})({});
|
|
50698
|
+
const PaginationUl = styled$1('ul', {
|
|
50699
|
+
name: 'MuiPagination',
|
|
50700
|
+
slot: 'Ul',
|
|
50701
|
+
overridesResolver: (props, styles) => styles.ul
|
|
50702
|
+
})({
|
|
50703
|
+
display: 'flex',
|
|
50704
|
+
flexWrap: 'wrap',
|
|
50705
|
+
alignItems: 'center',
|
|
50706
|
+
padding: 0,
|
|
50707
|
+
margin: 0,
|
|
50708
|
+
listStyle: 'none'
|
|
50709
|
+
});
|
|
50710
|
+
function defaultGetAriaLabel(type, page, selected) {
|
|
50711
|
+
if (type === 'page') {
|
|
50712
|
+
return `${selected ? '' : 'Go to '}page ${page}`;
|
|
50713
|
+
}
|
|
50714
|
+
return `Go to ${type} page`;
|
|
50715
|
+
}
|
|
50716
|
+
const Pagination$1 = /*#__PURE__*/React__namespace.forwardRef(function Pagination(inProps, ref) {
|
|
50717
|
+
const props = useThemeProps({
|
|
50718
|
+
props: inProps,
|
|
50719
|
+
name: 'MuiPagination'
|
|
50720
|
+
});
|
|
50721
|
+
const {
|
|
50722
|
+
boundaryCount = 1,
|
|
50723
|
+
className,
|
|
50724
|
+
color = 'standard',
|
|
50725
|
+
count = 1,
|
|
50726
|
+
defaultPage = 1,
|
|
50727
|
+
disabled = false,
|
|
50728
|
+
getItemAriaLabel = defaultGetAriaLabel,
|
|
50729
|
+
hideNextButton = false,
|
|
50730
|
+
hidePrevButton = false,
|
|
50731
|
+
renderItem = item => /*#__PURE__*/jsxRuntime.jsx(PaginationItem$1, _extends({}, item)),
|
|
50732
|
+
shape = 'circular',
|
|
50733
|
+
showFirstButton = false,
|
|
50734
|
+
showLastButton = false,
|
|
50735
|
+
siblingCount = 1,
|
|
50736
|
+
size = 'medium',
|
|
50737
|
+
variant = 'text'
|
|
50738
|
+
} = props,
|
|
50739
|
+
other = _objectWithoutPropertiesLoose(props, _excluded$3);
|
|
50740
|
+
const {
|
|
50741
|
+
items
|
|
50742
|
+
} = usePagination(_extends({}, props, {
|
|
50743
|
+
componentName: 'Pagination'
|
|
50744
|
+
}));
|
|
50745
|
+
const ownerState = _extends({}, props, {
|
|
50746
|
+
boundaryCount,
|
|
50747
|
+
color,
|
|
50748
|
+
count,
|
|
50749
|
+
defaultPage,
|
|
50750
|
+
disabled,
|
|
50751
|
+
getItemAriaLabel,
|
|
50752
|
+
hideNextButton,
|
|
50753
|
+
hidePrevButton,
|
|
50754
|
+
renderItem,
|
|
50755
|
+
shape,
|
|
50756
|
+
showFirstButton,
|
|
50757
|
+
showLastButton,
|
|
50758
|
+
siblingCount,
|
|
50759
|
+
size,
|
|
50760
|
+
variant
|
|
50761
|
+
});
|
|
50762
|
+
const classes = useUtilityClasses$3(ownerState);
|
|
50763
|
+
return /*#__PURE__*/jsxRuntime.jsx(PaginationRoot, _extends({
|
|
50764
|
+
"aria-label": "pagination navigation",
|
|
50765
|
+
className: clsx(classes.root, className),
|
|
50766
|
+
ownerState: ownerState,
|
|
50767
|
+
ref: ref
|
|
50768
|
+
}, other, {
|
|
50769
|
+
children: /*#__PURE__*/jsxRuntime.jsx(PaginationUl, {
|
|
50770
|
+
className: classes.ul,
|
|
50771
|
+
ownerState: ownerState,
|
|
50772
|
+
children: items.map((item, index) => /*#__PURE__*/jsxRuntime.jsx("li", {
|
|
50773
|
+
children: renderItem(_extends({}, item, {
|
|
50774
|
+
color,
|
|
50775
|
+
'aria-label': getItemAriaLabel(item.type, item.page, item.selected),
|
|
50776
|
+
shape,
|
|
50777
|
+
size,
|
|
50778
|
+
variant
|
|
50779
|
+
}))
|
|
50780
|
+
}, index))
|
|
50781
|
+
})
|
|
50782
|
+
}));
|
|
50783
|
+
});
|
|
50784
|
+
|
|
50785
|
+
// @default tags synced with default values from usePagination
|
|
50786
|
+
|
|
50787
|
+
process.env.NODE_ENV !== "production" ? Pagination$1.propTypes /* remove-proptypes */ = {
|
|
50788
|
+
// ----------------------------- Warning --------------------------------
|
|
50789
|
+
// | These PropTypes are generated from the TypeScript type definitions |
|
|
50790
|
+
// | To update them edit the d.ts file and run "yarn proptypes" |
|
|
50791
|
+
// ----------------------------------------------------------------------
|
|
50792
|
+
/**
|
|
50793
|
+
* Number of always visible pages at the beginning and end.
|
|
50794
|
+
* @default 1
|
|
50795
|
+
*/
|
|
50796
|
+
boundaryCount: integerPropType,
|
|
50797
|
+
/**
|
|
50798
|
+
* Override or extend the styles applied to the component.
|
|
50799
|
+
*/
|
|
50800
|
+
classes: PropTypes.object,
|
|
50801
|
+
/**
|
|
50802
|
+
* @ignore
|
|
50803
|
+
*/
|
|
50804
|
+
className: PropTypes.string,
|
|
50805
|
+
/**
|
|
50806
|
+
* The active color.
|
|
50807
|
+
* It supports both default and custom theme colors, which can be added as shown in the
|
|
50808
|
+
* [palette customization guide](https://mui.com/material-ui/customization/palette/#adding-new-colors).
|
|
50809
|
+
* @default 'standard'
|
|
50810
|
+
*/
|
|
50811
|
+
color: PropTypes /* @typescript-to-proptypes-ignore */.oneOfType([PropTypes.oneOf(['primary', 'secondary', 'standard']), PropTypes.string]),
|
|
50812
|
+
/**
|
|
50813
|
+
* The total number of pages.
|
|
50814
|
+
* @default 1
|
|
50815
|
+
*/
|
|
50816
|
+
count: integerPropType,
|
|
50817
|
+
/**
|
|
50818
|
+
* The page selected by default when the component is uncontrolled.
|
|
50819
|
+
* @default 1
|
|
50820
|
+
*/
|
|
50821
|
+
defaultPage: integerPropType,
|
|
50822
|
+
/**
|
|
50823
|
+
* If `true`, the component is disabled.
|
|
50824
|
+
* @default false
|
|
50825
|
+
*/
|
|
50826
|
+
disabled: PropTypes.bool,
|
|
50827
|
+
/**
|
|
50828
|
+
* Accepts a function which returns a string value that provides a user-friendly name for the current page.
|
|
50829
|
+
* This is important for screen reader users.
|
|
50830
|
+
*
|
|
50831
|
+
* For localization purposes, you can use the provided [translations](/material-ui/guides/localization/).
|
|
50832
|
+
* @param {string} type The link or button type to format ('page' | 'first' | 'last' | 'next' | 'previous'). Defaults to 'page'.
|
|
50833
|
+
* @param {number} page The page number to format.
|
|
50834
|
+
* @param {bool} selected If true, the current page is selected.
|
|
50835
|
+
* @returns {string}
|
|
50836
|
+
*/
|
|
50837
|
+
getItemAriaLabel: PropTypes.func,
|
|
50838
|
+
/**
|
|
50839
|
+
* If `true`, hide the next-page button.
|
|
50840
|
+
* @default false
|
|
50841
|
+
*/
|
|
50842
|
+
hideNextButton: PropTypes.bool,
|
|
50843
|
+
/**
|
|
50844
|
+
* If `true`, hide the previous-page button.
|
|
50845
|
+
* @default false
|
|
50846
|
+
*/
|
|
50847
|
+
hidePrevButton: PropTypes.bool,
|
|
50848
|
+
/**
|
|
50849
|
+
* Callback fired when the page is changed.
|
|
50850
|
+
*
|
|
50851
|
+
* @param {React.ChangeEvent<unknown>} event The event source of the callback.
|
|
50852
|
+
* @param {number} page The page selected.
|
|
50853
|
+
*/
|
|
50854
|
+
onChange: PropTypes.func,
|
|
50855
|
+
/**
|
|
50856
|
+
* The current page.
|
|
50857
|
+
*/
|
|
50858
|
+
page: integerPropType,
|
|
50859
|
+
/**
|
|
50860
|
+
* Render the item.
|
|
50861
|
+
* @param {PaginationRenderItemParams} params The props to spread on a PaginationItem.
|
|
50862
|
+
* @returns {ReactNode}
|
|
50863
|
+
* @default (item) => <PaginationItem {...item} />
|
|
50864
|
+
*/
|
|
50865
|
+
renderItem: PropTypes.func,
|
|
50866
|
+
/**
|
|
50867
|
+
* The shape of the pagination items.
|
|
50868
|
+
* @default 'circular'
|
|
50869
|
+
*/
|
|
50870
|
+
shape: PropTypes.oneOf(['circular', 'rounded']),
|
|
50871
|
+
/**
|
|
50872
|
+
* If `true`, show the first-page button.
|
|
50873
|
+
* @default false
|
|
50874
|
+
*/
|
|
50875
|
+
showFirstButton: PropTypes.bool,
|
|
50876
|
+
/**
|
|
50877
|
+
* If `true`, show the last-page button.
|
|
50878
|
+
* @default false
|
|
50879
|
+
*/
|
|
50880
|
+
showLastButton: PropTypes.bool,
|
|
50881
|
+
/**
|
|
50882
|
+
* Number of always visible pages before and after the current page.
|
|
50883
|
+
* @default 1
|
|
50884
|
+
*/
|
|
50885
|
+
siblingCount: integerPropType,
|
|
50886
|
+
/**
|
|
50887
|
+
* The size of the component.
|
|
50888
|
+
* @default 'medium'
|
|
50889
|
+
*/
|
|
50890
|
+
size: PropTypes /* @typescript-to-proptypes-ignore */.oneOfType([PropTypes.oneOf(['small', 'medium', 'large']), PropTypes.string]),
|
|
50891
|
+
/**
|
|
50892
|
+
* The system prop that allows defining system overrides as well as additional CSS styles.
|
|
50893
|
+
*/
|
|
50894
|
+
sx: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.func, PropTypes.object, PropTypes.bool])), PropTypes.func, PropTypes.object]),
|
|
50895
|
+
/**
|
|
50896
|
+
* The variant to use.
|
|
50897
|
+
* @default 'text'
|
|
50898
|
+
*/
|
|
50899
|
+
variant: PropTypes /* @typescript-to-proptypes-ignore */.oneOfType([PropTypes.oneOf(['outlined', 'text']), PropTypes.string])
|
|
50900
|
+
} : void 0;
|
|
50901
|
+
var MUIPagination = Pagination$1;
|
|
50902
|
+
|
|
49198
50903
|
function getSelectUtilityClasses(slot) {
|
|
49199
50904
|
return generateUtilityClass('MuiSelect', slot);
|
|
49200
50905
|
}
|
|
@@ -50468,9 +52173,13 @@ var TextField = function (_a) {
|
|
|
50468
52173
|
}, [value]);
|
|
50469
52174
|
return (jsxRuntime.jsx(MuiTextField, __assign$1({ id: label === placeholder ? 'text-field-mui' : 'test-field-ds', variant: "outlined", name: name, label: label, value: internalValue, placeholder: label === placeholder ? undefined : placeholder, FormHelperTextProps: { component: 'div' }, InputLabelProps: { shrink: label === placeholder ? undefined : true }, onClick: function (e) { return e.stopPropagation(); }, onChange: function (e) {
|
|
50470
52175
|
setInternalValue(e.currentTarget.value);
|
|
50471
|
-
onChange
|
|
52176
|
+
if (onChange) {
|
|
52177
|
+
onChange(e);
|
|
52178
|
+
}
|
|
50472
52179
|
}, onBlur: function (e) {
|
|
50473
|
-
onBlur
|
|
52180
|
+
if (onBlur) {
|
|
52181
|
+
onBlur(e);
|
|
52182
|
+
}
|
|
50474
52183
|
}, error: !!error, disabled: disabled, InputProps: { endAdornment: endAdornment }, inputProps: { maxLength: maxLength } }, props, { helperText: jsxRuntime.jsxs("div", __assign$1({ style: { display: 'table', width: '100%' } }, { children: [(error || props.helperText) && (jsxRuntime.jsx("div", __assign$1({ style: {
|
|
50475
52184
|
display: maxLength ? 'table-cell' : '',
|
|
50476
52185
|
float: 'left'
|
|
@@ -50487,7 +52196,7 @@ var Checkbox = function (_a) {
|
|
|
50487
52196
|
}, [value]);
|
|
50488
52197
|
return (jsxRuntime.jsxs(FormControl$1, __assign$1({ fullWidth: true }, { children: [jsxRuntime.jsx(FormControlLabel$1, { control: jsxRuntime.jsx(Box$3, { children: jsxRuntime.jsx(CheckboxMUI, __assign$1({ name: name, sx: { marginTop: '-2px' }, checked: internalValue, color: "primary", onChange: function (e) {
|
|
50489
52198
|
setInternalValue(e.target.checked);
|
|
50490
|
-
onChange(name, e.target.checked, true);
|
|
52199
|
+
onChange && onChange(name, e.target.checked, true);
|
|
50491
52200
|
} }, props)) }), label: jsxRuntime.jsx(Typography$1, __assign$1({ component: "span", sx: {
|
|
50492
52201
|
fontSize: '14px',
|
|
50493
52202
|
marginLeft: '-3px',
|
|
@@ -50503,8 +52212,19 @@ var Checkbox = function (_a) {
|
|
|
50503
52212
|
};
|
|
50504
52213
|
|
|
50505
52214
|
var Accordion = function (_a) {
|
|
50506
|
-
var icon = _a.icon, title = _a.title,
|
|
50507
|
-
|
|
52215
|
+
var icon = _a.icon, title = _a.title, summaryHeight = _a.summaryHeight, _b = _a.expanded, expanded = _b === void 0 ? false : _b, onClick = _a.onClick, children = _a.children, props = __rest(_a, ["icon", "title", "summaryHeight", "expanded", "onClick", "children"]);
|
|
52216
|
+
var _c = React.useState(expanded), internalExpanded = _c[0], setInternalExpanded = _c[1];
|
|
52217
|
+
React.useEffect(function () {
|
|
52218
|
+
if (expanded !== internalExpanded) {
|
|
52219
|
+
setInternalExpanded(expanded);
|
|
52220
|
+
}
|
|
52221
|
+
}, [expanded]);
|
|
52222
|
+
return (jsxRuntime.jsxs(AccordionMui, __assign$1({ sx: { border: "1px solid", borderColor: 'greyLightDefaultBorder' }, expanded: internalExpanded, onClick: function (e) {
|
|
52223
|
+
if (!props.disabled) {
|
|
52224
|
+
setInternalExpanded(!internalExpanded);
|
|
52225
|
+
onClick && onClick(e);
|
|
52226
|
+
}
|
|
52227
|
+
} }, props, { children: [jsxRuntime.jsx(AccordionSummary$1, __assign$1({ expandIcon: icon, sx: {
|
|
50508
52228
|
fontWeight: 500,
|
|
50509
52229
|
fontSize: 18,
|
|
50510
52230
|
lineHeight: 21,
|
|
@@ -50513,7 +52233,7 @@ var Accordion = function (_a) {
|
|
|
50513
52233
|
backgroundColor: 'greyXLight',
|
|
50514
52234
|
borderTop: '1px solid',
|
|
50515
52235
|
borderColor: 'greyLightDefaultBorder'
|
|
50516
|
-
} }, { children:
|
|
52236
|
+
} }, { children: children }))] })));
|
|
50517
52237
|
};
|
|
50518
52238
|
|
|
50519
52239
|
var FontSizes = {
|
|
@@ -50587,6 +52307,34 @@ var Icon = function (_a) {
|
|
|
50587
52307
|
return (jsxRuntime.jsx(Box$1, __assign$1({ component: "span", sx: getStyles() }, props, { children: jsxRuntime.jsx(FontAwesomeSvgIcon, { icon: icon, fontSize: usedFontSize }) })));
|
|
50588
52308
|
};
|
|
50589
52309
|
|
|
52310
|
+
var Pagination = function (_a) {
|
|
52311
|
+
var totalString = _a.totalString, totalPerPageString = _a.totalPerPageString, totalPages = _a.totalPages, limitsPerPage = _a.limitsPerPage, setLimit = _a.setLimit, setPage = _a.setPage, _b = _a.page, page = _b === void 0 ? 1 : _b, limit = _a.limit;
|
|
52312
|
+
var _c = React.useState(page), internalPage = _c[0], setInternalPage = _c[1];
|
|
52313
|
+
var _d = React.useState(limit !== null && limit !== void 0 ? limit : limitsPerPage[0]), internalLimit = _d[0], setInternalLimit = _d[1];
|
|
52314
|
+
React.useEffect(function () {
|
|
52315
|
+
if (page !== internalPage) {
|
|
52316
|
+
setInternalPage(page);
|
|
52317
|
+
}
|
|
52318
|
+
}, [page]);
|
|
52319
|
+
React.useEffect(function () {
|
|
52320
|
+
if (limit && limit !== internalLimit) {
|
|
52321
|
+
setInternalLimit(limit);
|
|
52322
|
+
}
|
|
52323
|
+
}, [limit]);
|
|
52324
|
+
return (jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [jsxRuntime.jsxs(Box$1, __assign$1({ display: "flex" }, { children: [jsxRuntime.jsx(Text, __assign$1({ color: "greyXDark", variant: "body1Bold", pt: "10px", pr: "16px" }, { children: totalString })), totalPages > 1 && (jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [jsxRuntime.jsx(Divider$1, { orientation: "vertical", sx: { marginRight: '16px', color: 'greyXLight' } }), jsxRuntime.jsx(Select$1, __assign$1({ sx: { height: '32px', width: '65px' }, labelId: "select-label", id: "dac-select-label", value: internalLimit, onChange: function (event) {
|
|
52325
|
+
var _a, _b;
|
|
52326
|
+
setInternalLimit(Number((_a = event === null || event === void 0 ? void 0 : event.target) === null || _a === void 0 ? void 0 : _a.value));
|
|
52327
|
+
setLimit && setLimit(Number((_b = event === null || event === void 0 ? void 0 : event.target) === null || _b === void 0 ? void 0 : _b.value));
|
|
52328
|
+
} }, { children: limitsPerPage.map(function (limit, id) { return (jsxRuntime.jsx(MenuItem$1, __assign$1({ value: limit }, { children: limit }), id)); }) })), jsxRuntime.jsx(Text, __assign$1({ color: "greyXDark", variant: "body1Regular", pt: "6px", pl: "6px", pr: "16px" }, { children: totalPerPageString })), jsxRuntime.jsx(Divider$1, { orientation: "vertical", sx: { marginRight: '16px', color: 'greyXLight' } })] }))] })), totalPages > 1 && (jsxRuntime.jsx(Box$1, __assign$1({ display: "flex", pr: "4px" }, { children: jsxRuntime.jsx(MUIPagination, { variant: "outlined", shape: "rounded", count: totalPages, page: internalPage, onChange: function (event, value) {
|
|
52329
|
+
setInternalPage(value);
|
|
52330
|
+
setPage && setPage(value);
|
|
52331
|
+
} }) })))] }));
|
|
52332
|
+
};
|
|
52333
|
+
|
|
52334
|
+
var Chip = function (props) {
|
|
52335
|
+
return jsxRuntime.jsx(ChipMUI, __assign$1({}, props));
|
|
52336
|
+
};
|
|
52337
|
+
|
|
50590
52338
|
/******************************************************************************
|
|
50591
52339
|
Copyright (c) Microsoft Corporation.
|
|
50592
52340
|
|
|
@@ -50950,6 +52698,7 @@ var getFontFamilies = function (themeName) {
|
|
|
50950
52698
|
return fontFamilies;
|
|
50951
52699
|
};
|
|
50952
52700
|
|
|
52701
|
+
/* eslint-disable @typescript-eslint/restrict-plus-operands */
|
|
50953
52702
|
var TextFieldCss = function (muiTokens) {
|
|
50954
52703
|
return {
|
|
50955
52704
|
MuiFormHelperText: {
|
|
@@ -51039,6 +52788,7 @@ var TextFieldCss = function (muiTokens) {
|
|
|
51039
52788
|
MuiInputLabel: {
|
|
51040
52789
|
styleOverrides: {
|
|
51041
52790
|
root: {
|
|
52791
|
+
fontWeight: 500,
|
|
51042
52792
|
'&#text-field-mui-label': {
|
|
51043
52793
|
fontSize: '14px',
|
|
51044
52794
|
lineHeight: '18px',
|
|
@@ -51079,6 +52829,9 @@ var ButtonCss = function (muiTokens) {
|
|
|
51079
52829
|
return {
|
|
51080
52830
|
MuiButton: {
|
|
51081
52831
|
styleOverrides: {
|
|
52832
|
+
'@font-face': {
|
|
52833
|
+
fontFamily: 'Roboto'
|
|
52834
|
+
},
|
|
51082
52835
|
root: {
|
|
51083
52836
|
borderRadius: '4px',
|
|
51084
52837
|
padding: '7.5px 16px',
|
|
@@ -51129,9 +52882,6 @@ var AccordionCss = function () {
|
|
|
51129
52882
|
return {
|
|
51130
52883
|
MuiAccordionSummary: {
|
|
51131
52884
|
styleOverrides: {
|
|
51132
|
-
'@font-face': {
|
|
51133
|
-
fontFamily: 'Roboto'
|
|
51134
|
-
},
|
|
51135
52885
|
content: {
|
|
51136
52886
|
paddingLeft: '12px',
|
|
51137
52887
|
fontWeight: 500,
|
|
@@ -51143,29 +52893,172 @@ var AccordionCss = function () {
|
|
|
51143
52893
|
};
|
|
51144
52894
|
};
|
|
51145
52895
|
|
|
51146
|
-
var
|
|
51147
|
-
|
|
51148
|
-
|
|
51149
|
-
|
|
51150
|
-
|
|
51151
|
-
|
|
51152
|
-
|
|
51153
|
-
|
|
51154
|
-
|
|
52896
|
+
var PaginationCss = function (muiTokens) {
|
|
52897
|
+
return {
|
|
52898
|
+
MuiPaginationItem: {
|
|
52899
|
+
styleOverrides: {
|
|
52900
|
+
root: {
|
|
52901
|
+
color: muiTokens.palette.blueClickable + ' !important',
|
|
52902
|
+
backgroundColor: 'white !important',
|
|
52903
|
+
fontWeight: '700 !important',
|
|
52904
|
+
outline: 'none !important',
|
|
52905
|
+
fontSize: '14px !important',
|
|
52906
|
+
borderColor: muiTokens.palette.greyMediumInactive + ' !important',
|
|
52907
|
+
'&:hover': {
|
|
52908
|
+
color: muiTokens.palette.blueClickable + ' !important',
|
|
52909
|
+
backgroundColor: 'white !important',
|
|
52910
|
+
borderColor: muiTokens.palette.greyDark + ' !important',
|
|
52911
|
+
borderRadius: '4px !important',
|
|
52912
|
+
outline: 'none !important'
|
|
52913
|
+
},
|
|
52914
|
+
'&.Mui-selected': {
|
|
52915
|
+
color: 'white !important',
|
|
52916
|
+
backgroundColor: muiTokens.palette.blueClickable + ' !important',
|
|
52917
|
+
borderRadius: '4px !important',
|
|
52918
|
+
outline: 'none !important',
|
|
52919
|
+
'&:hover': {
|
|
52920
|
+
color: 'white !important',
|
|
52921
|
+
backgroundColor: muiTokens.palette.blueClickable + ' !important',
|
|
52922
|
+
borderColor: muiTokens.palette.greyDark + ' !important',
|
|
52923
|
+
borderRadius: '4px !important',
|
|
52924
|
+
outline: 'none !important'
|
|
51155
52925
|
},
|
|
51156
|
-
'
|
|
51157
|
-
|
|
52926
|
+
'&:focus': {
|
|
52927
|
+
color: 'white !important',
|
|
52928
|
+
backgroundColor: muiTokens.palette.blueClickable + ' !important',
|
|
52929
|
+
borderColor: muiTokens.palette.greyDark + ' !important',
|
|
52930
|
+
borderRadius: '4px !important',
|
|
52931
|
+
outline: 'none !important'
|
|
51158
52932
|
}
|
|
52933
|
+
},
|
|
52934
|
+
'&.Mui-disabled': {
|
|
52935
|
+
color: muiTokens.palette.greyMediumInactive + ' !important',
|
|
52936
|
+
backgroundColor: 'white !important',
|
|
52937
|
+
borderRadius: '4px !important',
|
|
52938
|
+
outline: 'none !important'
|
|
51159
52939
|
}
|
|
51160
|
-
}
|
|
51161
|
-
|
|
51162
|
-
|
|
51163
|
-
|
|
52940
|
+
}
|
|
52941
|
+
}
|
|
52942
|
+
}
|
|
52943
|
+
};
|
|
52944
|
+
};
|
|
52945
|
+
|
|
52946
|
+
var SelectCss = function (muiTokens) {
|
|
52947
|
+
return {
|
|
52948
|
+
'MuiSelect-icon': {
|
|
52949
|
+
styleOverrides: {
|
|
52950
|
+
root: {
|
|
52951
|
+
color: muiTokens.palette.blueClickable + ' !important'
|
|
52952
|
+
}
|
|
52953
|
+
}
|
|
52954
|
+
}
|
|
52955
|
+
};
|
|
52956
|
+
};
|
|
52957
|
+
|
|
52958
|
+
var ChipCss = function (muiTokens) {
|
|
52959
|
+
return {
|
|
52960
|
+
MuiChip: {
|
|
52961
|
+
styleOverrides: {
|
|
52962
|
+
root: {
|
|
52963
|
+
'& .MuiChip-deleteIcon': {
|
|
52964
|
+
color: muiTokens.palette.blueClickable
|
|
52965
|
+
},
|
|
52966
|
+
color: muiTokens.palette.greyXDark,
|
|
52967
|
+
backgroundColor: 'transparent',
|
|
52968
|
+
borderRadius: '4px',
|
|
52969
|
+
fontWeight: muiTokens.palette.fontWeightRegular,
|
|
52970
|
+
fontSize: '14px',
|
|
52971
|
+
paddingLeft: '8px',
|
|
52972
|
+
paddingRight: '8px'
|
|
52973
|
+
},
|
|
52974
|
+
filled: {},
|
|
52975
|
+
label: {
|
|
52976
|
+
padding: 0,
|
|
52977
|
+
lineHeight: '18px'
|
|
52978
|
+
},
|
|
52979
|
+
sizeSmall: {
|
|
52980
|
+
height: '24px',
|
|
52981
|
+
paddingY: '3px'
|
|
52982
|
+
},
|
|
52983
|
+
sizeMedium: {
|
|
52984
|
+
height: '33px',
|
|
52985
|
+
paddingY: '8px'
|
|
52986
|
+
},
|
|
52987
|
+
deleteIcon: {
|
|
52988
|
+
width: '12px',
|
|
52989
|
+
height: '12px',
|
|
52990
|
+
margin: 0,
|
|
52991
|
+
marginLeft: '8px'
|
|
52992
|
+
},
|
|
52993
|
+
colorDefault: {
|
|
52994
|
+
backgroundColor: muiTokens.palette.greyXLight,
|
|
52995
|
+
border: 'none'
|
|
52996
|
+
},
|
|
52997
|
+
colorPrimary: {
|
|
52998
|
+
border: '1px solid',
|
|
52999
|
+
borderColor: muiTokens.palette.greyLightDefaultBorder + ' !important'
|
|
53000
|
+
},
|
|
53001
|
+
colorSecondary: {
|
|
53002
|
+
border: 'none',
|
|
53003
|
+
backgroundColor: muiTokens.palette.blueClickable + ' !important',
|
|
53004
|
+
color: muiTokens.palette.white,
|
|
53005
|
+
'& .MuiChip-deleteIcon': {
|
|
53006
|
+
color: muiTokens.palette.greyXLight + ' !important',
|
|
53007
|
+
'&:hover': {
|
|
53008
|
+
color: muiTokens.palette.blueClickableHover
|
|
51164
53009
|
}
|
|
51165
53010
|
}
|
|
51166
|
-
}
|
|
51167
|
-
|
|
51168
|
-
|
|
53011
|
+
},
|
|
53012
|
+
colorSuccess: {
|
|
53013
|
+
border: '1px solid',
|
|
53014
|
+
borderColor: muiTokens.palette.greenSuccess + ' !important',
|
|
53015
|
+
color: muiTokens.palette.greenSuccess + ' !important',
|
|
53016
|
+
fontWeight: muiTokens.typography.fontWeightBold
|
|
53017
|
+
},
|
|
53018
|
+
colorWarning: {
|
|
53019
|
+
border: '1px solid',
|
|
53020
|
+
borderColor: muiTokens.palette.orangeWarning + ' !important',
|
|
53021
|
+
color: muiTokens.palette.orangeWarning + ' !important',
|
|
53022
|
+
fontWeight: muiTokens.typography.fontWeightBold
|
|
53023
|
+
},
|
|
53024
|
+
colorInfo: {
|
|
53025
|
+
border: '1px solid',
|
|
53026
|
+
borderColor: muiTokens.palette.blueInfo + ' !important',
|
|
53027
|
+
color: muiTokens.palette.blueInfo + ' !important',
|
|
53028
|
+
fontWeight: muiTokens.typography.fontWeightBold
|
|
53029
|
+
},
|
|
53030
|
+
colorError: {
|
|
53031
|
+
border: '1px solid',
|
|
53032
|
+
borderColor: muiTokens.palette.redError + ' !important',
|
|
53033
|
+
color: muiTokens.palette.redError + ' !important',
|
|
53034
|
+
fontWeight: muiTokens.typography.fontWeightBold
|
|
53035
|
+
}
|
|
53036
|
+
}
|
|
53037
|
+
}
|
|
53038
|
+
};
|
|
53039
|
+
};
|
|
53040
|
+
|
|
53041
|
+
var useMaterialThemeCss = function (muiTokens) {
|
|
53042
|
+
var muiCss = React.useMemo(function () { return ({
|
|
53043
|
+
components: __assign(__assign(__assign(__assign(__assign(__assign(__assign({}, TextFieldCss(muiTokens)), ButtonCss(muiTokens)), AccordionCss()), PaginationCss(muiTokens)), SelectCss(muiTokens)), ChipCss(muiTokens)), { MuiCssBaseline: {
|
|
53044
|
+
styleOverrides: {
|
|
53045
|
+
body: {
|
|
53046
|
+
backgroundColor: 'inherit',
|
|
53047
|
+
color: 'inherit',
|
|
53048
|
+
fontWeight: 400
|
|
53049
|
+
},
|
|
53050
|
+
'@font-face': {
|
|
53051
|
+
fontFamily: 'Roboto'
|
|
53052
|
+
}
|
|
53053
|
+
}
|
|
53054
|
+
}, MuiSvgIcon: {
|
|
53055
|
+
styleOverrides: {
|
|
53056
|
+
colorSuccess: {
|
|
53057
|
+
color: muiTokens.palette.success.main
|
|
53058
|
+
}
|
|
53059
|
+
}
|
|
53060
|
+
} })
|
|
53061
|
+
}); }, [muiTokens]);
|
|
51169
53062
|
return { muiCss: muiCss };
|
|
51170
53063
|
};
|
|
51171
53064
|
|
|
@@ -51340,9 +53233,7 @@ var useMaterialThemeTokens = function (themeName) {
|
|
|
51340
53233
|
palette: getMuiPalette(themeName)
|
|
51341
53234
|
};
|
|
51342
53235
|
var muiCss = useMaterialThemeCss(muiTokensObject).muiCss;
|
|
51343
|
-
var muiTokens = React.useMemo(function () {
|
|
51344
|
-
return __assign(__assign({}, muiTokensObject), muiCss);
|
|
51345
|
-
}, [muiTokensObject, muiCss]);
|
|
53236
|
+
var muiTokens = React.useMemo(function () { return (__assign(__assign({}, muiTokensObject), muiCss)); }, [muiTokensObject, muiCss]);
|
|
51346
53237
|
return { muiTokens: muiTokens };
|
|
51347
53238
|
};
|
|
51348
53239
|
|
|
@@ -51370,10 +53261,12 @@ var DesignSystemProvider = function (_a) {
|
|
|
51370
53261
|
exports.Accordion = Accordion;
|
|
51371
53262
|
exports.Button = Button;
|
|
51372
53263
|
exports.Checkbox = Checkbox;
|
|
53264
|
+
exports.Chip = Chip;
|
|
51373
53265
|
exports.DesignSystemContext = DesignSystemContext;
|
|
51374
53266
|
exports.DesignSystemProvider = DesignSystemProvider;
|
|
51375
53267
|
exports.IconProvider = Icon;
|
|
51376
53268
|
exports.Link = Link;
|
|
53269
|
+
exports.Pagination = Pagination;
|
|
51377
53270
|
exports.Text = Text;
|
|
51378
53271
|
exports.TextField = TextField;
|
|
51379
53272
|
//# sourceMappingURL=index.js.map
|