@sinco/react 1.0.6 → 1.0.7-rc.1
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/index.js +92 -669
- package/package.json +1 -1
- package/src/lib/Components/pageHeader/PageHeader.d.ts +3 -3
package/index.js
CHANGED
|
@@ -6199,7 +6199,7 @@ const internal_processStyles = (tag, processor) => {
|
|
|
6199
6199
|
}
|
|
6200
6200
|
};
|
|
6201
6201
|
|
|
6202
|
-
const _excluded$
|
|
6202
|
+
const _excluded$r = ["values", "unit", "step"];
|
|
6203
6203
|
const sortBreakpointsValues = values => {
|
|
6204
6204
|
const breakpointsAsArray = Object.keys(values).map(key => ({
|
|
6205
6205
|
key,
|
|
@@ -6234,7 +6234,7 @@ function createBreakpoints(breakpoints) {
|
|
|
6234
6234
|
unit = 'px',
|
|
6235
6235
|
step = 5
|
|
6236
6236
|
} = breakpoints,
|
|
6237
|
-
other = _objectWithoutPropertiesLoose(breakpoints, _excluded$
|
|
6237
|
+
other = _objectWithoutPropertiesLoose(breakpoints, _excluded$r);
|
|
6238
6238
|
const sortedValues = sortBreakpointsValues(values);
|
|
6239
6239
|
const keys = Object.keys(sortedValues);
|
|
6240
6240
|
function up(key) {
|
|
@@ -7318,7 +7318,7 @@ const styleFunctionSx = unstable_createStyleFunctionSx();
|
|
|
7318
7318
|
styleFunctionSx.filterProps = ['sx'];
|
|
7319
7319
|
var styleFunctionSx$1 = styleFunctionSx;
|
|
7320
7320
|
|
|
7321
|
-
const _excluded$
|
|
7321
|
+
const _excluded$q = ["breakpoints", "palette", "spacing", "shape"];
|
|
7322
7322
|
function createTheme$1(options = {}, ...args) {
|
|
7323
7323
|
const {
|
|
7324
7324
|
breakpoints: breakpointsInput = {},
|
|
@@ -7326,7 +7326,7 @@ function createTheme$1(options = {}, ...args) {
|
|
|
7326
7326
|
spacing: spacingInput,
|
|
7327
7327
|
shape: shapeInput = {}
|
|
7328
7328
|
} = options,
|
|
7329
|
-
other = _objectWithoutPropertiesLoose(options, _excluded$
|
|
7329
|
+
other = _objectWithoutPropertiesLoose(options, _excluded$q);
|
|
7330
7330
|
const breakpoints = createBreakpoints(breakpointsInput);
|
|
7331
7331
|
const spacing = createSpacing(spacingInput);
|
|
7332
7332
|
let muiTheme = deepmerge({
|
|
@@ -7364,7 +7364,7 @@ function useTheme$2(defaultTheme = systemDefaultTheme$1) {
|
|
|
7364
7364
|
return useTheme$3(defaultTheme);
|
|
7365
7365
|
}
|
|
7366
7366
|
|
|
7367
|
-
const _excluded$
|
|
7367
|
+
const _excluded$p = ["sx"];
|
|
7368
7368
|
const splitProps = props => {
|
|
7369
7369
|
var _props$theme$unstable, _props$theme;
|
|
7370
7370
|
const result = {
|
|
@@ -7385,7 +7385,7 @@ function extendSxProp(props) {
|
|
|
7385
7385
|
const {
|
|
7386
7386
|
sx: inSx
|
|
7387
7387
|
} = props,
|
|
7388
|
-
other = _objectWithoutPropertiesLoose(props, _excluded$
|
|
7388
|
+
other = _objectWithoutPropertiesLoose(props, _excluded$p);
|
|
7389
7389
|
const {
|
|
7390
7390
|
systemProps,
|
|
7391
7391
|
otherProps
|
|
@@ -7411,7 +7411,7 @@ function extendSxProp(props) {
|
|
|
7411
7411
|
|
|
7412
7412
|
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}
|
|
7413
7413
|
|
|
7414
|
-
const _excluded$
|
|
7414
|
+
const _excluded$o = ["className", "component"];
|
|
7415
7415
|
function createBox(options = {}) {
|
|
7416
7416
|
const {
|
|
7417
7417
|
themeId,
|
|
@@ -7429,7 +7429,7 @@ function createBox(options = {}) {
|
|
|
7429
7429
|
className,
|
|
7430
7430
|
component = 'div'
|
|
7431
7431
|
} = _extendSxProp,
|
|
7432
|
-
other = _objectWithoutPropertiesLoose(_extendSxProp, _excluded$
|
|
7432
|
+
other = _objectWithoutPropertiesLoose(_extendSxProp, _excluded$o);
|
|
7433
7433
|
return /*#__PURE__*/jsx(BoxRoot, _extends({
|
|
7434
7434
|
as: component,
|
|
7435
7435
|
ref: ref,
|
|
@@ -7440,7 +7440,7 @@ function createBox(options = {}) {
|
|
|
7440
7440
|
return Box;
|
|
7441
7441
|
}
|
|
7442
7442
|
|
|
7443
|
-
const _excluded$
|
|
7443
|
+
const _excluded$n = ["variant"];
|
|
7444
7444
|
function isEmpty$1(string) {
|
|
7445
7445
|
return string.length === 0;
|
|
7446
7446
|
}
|
|
@@ -7454,7 +7454,7 @@ function propsToClassKey(props) {
|
|
|
7454
7454
|
const {
|
|
7455
7455
|
variant
|
|
7456
7456
|
} = props,
|
|
7457
|
-
other = _objectWithoutPropertiesLoose(props, _excluded$
|
|
7457
|
+
other = _objectWithoutPropertiesLoose(props, _excluded$n);
|
|
7458
7458
|
let classKey = variant || '';
|
|
7459
7459
|
Object.keys(other).sort().forEach(key => {
|
|
7460
7460
|
if (key === 'color') {
|
|
@@ -7466,7 +7466,7 @@ function propsToClassKey(props) {
|
|
|
7466
7466
|
return classKey;
|
|
7467
7467
|
}
|
|
7468
7468
|
|
|
7469
|
-
const _excluded$
|
|
7469
|
+
const _excluded$m = ["name", "slot", "skipVariantsResolver", "skipSx", "overridesResolver"];
|
|
7470
7470
|
function isEmpty(obj) {
|
|
7471
7471
|
return Object.keys(obj).length === 0;
|
|
7472
7472
|
}
|
|
@@ -7561,7 +7561,7 @@ function createStyled(input = {}) {
|
|
|
7561
7561
|
skipSx: inputSkipSx,
|
|
7562
7562
|
overridesResolver
|
|
7563
7563
|
} = inputOptions,
|
|
7564
|
-
options = _objectWithoutPropertiesLoose(inputOptions, _excluded$
|
|
7564
|
+
options = _objectWithoutPropertiesLoose(inputOptions, _excluded$m);
|
|
7565
7565
|
|
|
7566
7566
|
// if skipVariantsResolver option is defined, take the value, otherwise, true for root and false for other slots.
|
|
7567
7567
|
const skipVariantsResolver = inputSkipVariantsResolver !== undefined ? inputSkipVariantsResolver : componentSlot && componentSlot !== 'Root' || false;
|
|
@@ -7941,17 +7941,6 @@ function lighten(color, coefficient) {
|
|
|
7941
7941
|
return recomposeColor(color);
|
|
7942
7942
|
}
|
|
7943
7943
|
|
|
7944
|
-
/**
|
|
7945
|
-
* Darken or lighten a color, depending on its luminance.
|
|
7946
|
-
* Light colors are darkened, dark colors are lightened.
|
|
7947
|
-
* @param {string} color - CSS color, i.e. one of: #nnn, #nnnnnn, rgb(), rgba(), hsl(), hsla(), color()
|
|
7948
|
-
* @param {number} coefficient=0.15 - multiplier in the range 0 - 1
|
|
7949
|
-
* @returns {string} A CSS color string. Hex input values are returned as rgb
|
|
7950
|
-
*/
|
|
7951
|
-
function emphasize(color, coefficient = 0.15) {
|
|
7952
|
-
return getLuminance(color) > 0.5 ? darken(color, coefficient) : lighten(color, coefficient);
|
|
7953
|
-
}
|
|
7954
|
-
|
|
7955
7944
|
const ThemeContext = /*#__PURE__*/React.createContext(null);
|
|
7956
7945
|
if (process.env.NODE_ENV !== 'production') {
|
|
7957
7946
|
ThemeContext.displayName = 'ThemeContext';
|
|
@@ -8102,7 +8091,7 @@ if (process.env.NODE_ENV !== 'production') {
|
|
|
8102
8091
|
process.env.NODE_ENV !== "production" ? ThemeProvider$1.propTypes = exactProp(ThemeProvider$1.propTypes) : void 0;
|
|
8103
8092
|
}
|
|
8104
8093
|
|
|
8105
|
-
const _excluded$
|
|
8094
|
+
const _excluded$l = ["component", "direction", "spacing", "divider", "children", "className", "useFlexGap"];
|
|
8106
8095
|
const defaultTheme$3 = createTheme$1();
|
|
8107
8096
|
// widening Theme to any so that the consumer can own the theme structure.
|
|
8108
8097
|
const defaultCreateStyledComponent = systemStyled('div', {
|
|
@@ -8231,7 +8220,7 @@ function createStack(options = {}) {
|
|
|
8231
8220
|
className,
|
|
8232
8221
|
useFlexGap = false
|
|
8233
8222
|
} = props,
|
|
8234
|
-
other = _objectWithoutPropertiesLoose(props, _excluded$
|
|
8223
|
+
other = _objectWithoutPropertiesLoose(props, _excluded$l);
|
|
8235
8224
|
const ownerState = {
|
|
8236
8225
|
direction,
|
|
8237
8226
|
spacing,
|
|
@@ -8405,7 +8394,7 @@ const green = {
|
|
|
8405
8394
|
};
|
|
8406
8395
|
var green$1 = green;
|
|
8407
8396
|
|
|
8408
|
-
const _excluded$
|
|
8397
|
+
const _excluded$k = ["mode", "contrastThreshold", "tonalOffset"];
|
|
8409
8398
|
const light = {
|
|
8410
8399
|
// The colors used to style the text.
|
|
8411
8400
|
text: {
|
|
@@ -8574,7 +8563,7 @@ function createPalette(palette) {
|
|
|
8574
8563
|
contrastThreshold = 3,
|
|
8575
8564
|
tonalOffset = 0.2
|
|
8576
8565
|
} = palette,
|
|
8577
|
-
other = _objectWithoutPropertiesLoose(palette, _excluded$
|
|
8566
|
+
other = _objectWithoutPropertiesLoose(palette, _excluded$k);
|
|
8578
8567
|
const primary = palette.primary || getDefaultPrimary(mode);
|
|
8579
8568
|
const secondary = palette.secondary || getDefaultSecondary(mode);
|
|
8580
8569
|
const error = palette.error || getDefaultError(mode);
|
|
@@ -8698,7 +8687,7 @@ const theme2 = createTheme({ palette: {
|
|
|
8698
8687
|
return paletteOutput;
|
|
8699
8688
|
}
|
|
8700
8689
|
|
|
8701
|
-
const _excluded$
|
|
8690
|
+
const _excluded$j = ["fontFamily", "fontSize", "fontWeightLight", "fontWeightRegular", "fontWeightMedium", "fontWeightBold", "htmlFontSize", "allVariants", "pxToRem"];
|
|
8702
8691
|
function round(value) {
|
|
8703
8692
|
return Math.round(value * 1e5) / 1e5;
|
|
8704
8693
|
}
|
|
@@ -8729,7 +8718,7 @@ function createTypography(palette, typography) {
|
|
|
8729
8718
|
allVariants,
|
|
8730
8719
|
pxToRem: pxToRem2
|
|
8731
8720
|
} = _ref,
|
|
8732
|
-
other = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
8721
|
+
other = _objectWithoutPropertiesLoose(_ref, _excluded$j);
|
|
8733
8722
|
if (process.env.NODE_ENV !== 'production') {
|
|
8734
8723
|
if (typeof fontSize !== 'number') {
|
|
8735
8724
|
console.error('MUI: `fontSize` is required to be a number.');
|
|
@@ -8796,7 +8785,7 @@ function createShadow(...px) {
|
|
|
8796
8785
|
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)];
|
|
8797
8786
|
var shadows$1 = shadows;
|
|
8798
8787
|
|
|
8799
|
-
const _excluded$
|
|
8788
|
+
const _excluded$i = ["duration", "easing", "delay"];
|
|
8800
8789
|
// Follow https://material.google.com/motion/duration-easing.html#duration-easing-natural-easing-curves
|
|
8801
8790
|
// to learn the context in which each easing should be used.
|
|
8802
8791
|
const easing = {
|
|
@@ -8847,7 +8836,7 @@ function createTransitions(inputTransitions) {
|
|
|
8847
8836
|
easing: easingOption = mergedEasing.easeInOut,
|
|
8848
8837
|
delay = 0
|
|
8849
8838
|
} = options,
|
|
8850
|
-
other = _objectWithoutPropertiesLoose(options, _excluded$
|
|
8839
|
+
other = _objectWithoutPropertiesLoose(options, _excluded$i);
|
|
8851
8840
|
if (process.env.NODE_ENV !== 'production') {
|
|
8852
8841
|
const isString = value => typeof value === 'string';
|
|
8853
8842
|
// IE11 support, replace with Number.isNaN
|
|
@@ -8894,7 +8883,7 @@ const zIndex = {
|
|
|
8894
8883
|
};
|
|
8895
8884
|
var zIndex$1 = zIndex;
|
|
8896
8885
|
|
|
8897
|
-
const _excluded$
|
|
8886
|
+
const _excluded$h = ["breakpoints", "mixins", "spacing", "palette", "transitions", "typography", "shape"];
|
|
8898
8887
|
function createTheme(options = {}, ...args) {
|
|
8899
8888
|
const {
|
|
8900
8889
|
mixins: mixinsInput = {},
|
|
@@ -8902,7 +8891,7 @@ function createTheme(options = {}, ...args) {
|
|
|
8902
8891
|
transitions: transitionsInput = {},
|
|
8903
8892
|
typography: typographyInput = {}
|
|
8904
8893
|
} = options,
|
|
8905
|
-
other = _objectWithoutPropertiesLoose(options, _excluded$
|
|
8894
|
+
other = _objectWithoutPropertiesLoose(options, _excluded$h);
|
|
8906
8895
|
if (options.vars) {
|
|
8907
8896
|
throw new Error(process.env.NODE_ENV !== "production" ? `MUI: \`vars\` is a private field used for CSS variables support.
|
|
8908
8897
|
Please use another name.` : formatMuiErrorMessage(18));
|
|
@@ -8992,12 +8981,12 @@ const styled = createStyled({
|
|
|
8992
8981
|
});
|
|
8993
8982
|
var styled$1 = styled;
|
|
8994
8983
|
|
|
8995
|
-
const _excluded$
|
|
8984
|
+
const _excluded$g = ["theme"];
|
|
8996
8985
|
function ThemeProvider(_ref) {
|
|
8997
8986
|
let {
|
|
8998
8987
|
theme: themeInput
|
|
8999
8988
|
} = _ref,
|
|
9000
|
-
props = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
8989
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$g);
|
|
9001
8990
|
const scopedTheme = themeInput[THEME_ID];
|
|
9002
8991
|
return /*#__PURE__*/jsx(ThemeProvider$1, _extends({}, props, {
|
|
9003
8992
|
themeId: scopedTheme ? THEME_ID : undefined,
|
|
@@ -9193,7 +9182,7 @@ function mergeSlotProps(parameters) {
|
|
|
9193
9182
|
};
|
|
9194
9183
|
}
|
|
9195
9184
|
|
|
9196
|
-
const _excluded$
|
|
9185
|
+
const _excluded$f = ["elementType", "externalSlotProps", "ownerState"];
|
|
9197
9186
|
/**
|
|
9198
9187
|
* @ignore - do not document.
|
|
9199
9188
|
* Builds the props to be passed into the slot of an unstyled component.
|
|
@@ -9209,7 +9198,7 @@ function useSlotProps(parameters) {
|
|
|
9209
9198
|
externalSlotProps,
|
|
9210
9199
|
ownerState
|
|
9211
9200
|
} = parameters,
|
|
9212
|
-
rest = _objectWithoutPropertiesLoose(parameters, _excluded$
|
|
9201
|
+
rest = _objectWithoutPropertiesLoose(parameters, _excluded$f);
|
|
9213
9202
|
const resolvedComponentsProps = resolveComponentProps(externalSlotProps, ownerState);
|
|
9214
9203
|
const {
|
|
9215
9204
|
props: mergedProps,
|
|
@@ -9847,8 +9836,8 @@ function getModalUtilityClass(slot) {
|
|
|
9847
9836
|
}
|
|
9848
9837
|
generateUtilityClasses('MuiModal', ['root', 'hidden', 'backdrop']);
|
|
9849
9838
|
|
|
9850
|
-
const _excluded$
|
|
9851
|
-
const useUtilityClasses$
|
|
9839
|
+
const _excluded$e = ["children", "closeAfterTransition", "container", "disableAutoFocus", "disableEnforceFocus", "disableEscapeKeyDown", "disablePortal", "disableRestoreFocus", "disableScrollLock", "hideBackdrop", "keepMounted", "manager", "onBackdropClick", "onClose", "onKeyDown", "open", "onTransitionEnter", "onTransitionExited", "slotProps", "slots"];
|
|
9840
|
+
const useUtilityClasses$a = ownerState => {
|
|
9852
9841
|
const {
|
|
9853
9842
|
open,
|
|
9854
9843
|
exited
|
|
@@ -9916,7 +9905,7 @@ const Modal$2 = /*#__PURE__*/React.forwardRef(function Modal(props, forwardedRef
|
|
|
9916
9905
|
slotProps = {},
|
|
9917
9906
|
slots = {}
|
|
9918
9907
|
} = props,
|
|
9919
|
-
other = _objectWithoutPropertiesLoose(props, _excluded$
|
|
9908
|
+
other = _objectWithoutPropertiesLoose(props, _excluded$e);
|
|
9920
9909
|
// TODO: `modal`` must change its type in this file to match the type of methods
|
|
9921
9910
|
// provided by `ModalManager`
|
|
9922
9911
|
const manager = managerProp;
|
|
@@ -9991,7 +9980,7 @@ const Modal$2 = /*#__PURE__*/React.forwardRef(function Modal(props, forwardedRef
|
|
|
9991
9980
|
hideBackdrop,
|
|
9992
9981
|
keepMounted
|
|
9993
9982
|
});
|
|
9994
|
-
const classes = useUtilityClasses$
|
|
9983
|
+
const classes = useUtilityClasses$a(ownerState);
|
|
9995
9984
|
const handleEnter = () => {
|
|
9996
9985
|
setExited(false);
|
|
9997
9986
|
if (onTransitionEnter) {
|
|
@@ -10211,8 +10200,8 @@ function getSvgIconUtilityClass(slot) {
|
|
|
10211
10200
|
}
|
|
10212
10201
|
generateUtilityClasses('MuiSvgIcon', ['root', 'colorPrimary', 'colorSecondary', 'colorAction', 'colorError', 'colorDisabled', 'fontSizeInherit', 'fontSizeSmall', 'fontSizeMedium', 'fontSizeLarge']);
|
|
10213
10202
|
|
|
10214
|
-
const _excluded$
|
|
10215
|
-
const useUtilityClasses$
|
|
10203
|
+
const _excluded$d = ["children", "className", "color", "component", "fontSize", "htmlColor", "inheritViewBox", "titleAccess", "viewBox"];
|
|
10204
|
+
const useUtilityClasses$9 = ownerState => {
|
|
10216
10205
|
const {
|
|
10217
10206
|
color,
|
|
10218
10207
|
fontSize,
|
|
@@ -10277,7 +10266,7 @@ const SvgIcon = /*#__PURE__*/React.forwardRef(function SvgIcon(inProps, ref) {
|
|
|
10277
10266
|
titleAccess,
|
|
10278
10267
|
viewBox = '0 0 24 24'
|
|
10279
10268
|
} = props,
|
|
10280
|
-
other = _objectWithoutPropertiesLoose(props, _excluded$
|
|
10269
|
+
other = _objectWithoutPropertiesLoose(props, _excluded$d);
|
|
10281
10270
|
const ownerState = _extends({}, props, {
|
|
10282
10271
|
color,
|
|
10283
10272
|
component,
|
|
@@ -10290,7 +10279,7 @@ const SvgIcon = /*#__PURE__*/React.forwardRef(function SvgIcon(inProps, ref) {
|
|
|
10290
10279
|
if (!inheritViewBox) {
|
|
10291
10280
|
more.viewBox = viewBox;
|
|
10292
10281
|
}
|
|
10293
|
-
const classes = useUtilityClasses$
|
|
10282
|
+
const classes = useUtilityClasses$9(ownerState);
|
|
10294
10283
|
return /*#__PURE__*/jsxs(SvgIconRoot, _extends({
|
|
10295
10284
|
as: component,
|
|
10296
10285
|
className: clsx(classes.root, className),
|
|
@@ -12780,8 +12769,8 @@ function getPaperUtilityClass(slot) {
|
|
|
12780
12769
|
}
|
|
12781
12770
|
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']);
|
|
12782
12771
|
|
|
12783
|
-
const _excluded$
|
|
12784
|
-
const useUtilityClasses$
|
|
12772
|
+
const _excluded$c = ["className", "component", "elevation", "square", "variant"];
|
|
12773
|
+
const useUtilityClasses$8 = ownerState => {
|
|
12785
12774
|
const {
|
|
12786
12775
|
square,
|
|
12787
12776
|
elevation,
|
|
@@ -12835,14 +12824,14 @@ const Paper = /*#__PURE__*/React.forwardRef(function Paper(inProps, ref) {
|
|
|
12835
12824
|
square = false,
|
|
12836
12825
|
variant = 'elevation'
|
|
12837
12826
|
} = props,
|
|
12838
|
-
other = _objectWithoutPropertiesLoose(props, _excluded$
|
|
12827
|
+
other = _objectWithoutPropertiesLoose(props, _excluded$c);
|
|
12839
12828
|
const ownerState = _extends({}, props, {
|
|
12840
12829
|
component,
|
|
12841
12830
|
elevation,
|
|
12842
12831
|
square,
|
|
12843
12832
|
variant
|
|
12844
12833
|
});
|
|
12845
|
-
const classes = useUtilityClasses$
|
|
12834
|
+
const classes = useUtilityClasses$8(ownerState);
|
|
12846
12835
|
if (process.env.NODE_ENV !== 'production') {
|
|
12847
12836
|
// eslint-disable-next-line react-hooks/rules-of-hooks
|
|
12848
12837
|
const theme = useTheme();
|
|
@@ -12993,7 +12982,7 @@ process.env.NODE_ENV !== "production" ? Ripple.propTypes = {
|
|
|
12993
12982
|
const touchRippleClasses = generateUtilityClasses('MuiTouchRipple', ['root', 'ripple', 'rippleVisible', 'ripplePulsate', 'child', 'childLeaving', 'childPulsate']);
|
|
12994
12983
|
var touchRippleClasses$1 = touchRippleClasses;
|
|
12995
12984
|
|
|
12996
|
-
const _excluded$
|
|
12985
|
+
const _excluded$b = ["center", "classes", "className"];
|
|
12997
12986
|
let _$1 = t => t,
|
|
12998
12987
|
_t$1,
|
|
12999
12988
|
_t2$1,
|
|
@@ -13122,7 +13111,7 @@ const TouchRipple = /*#__PURE__*/React.forwardRef(function TouchRipple(inProps,
|
|
|
13122
13111
|
classes = {},
|
|
13123
13112
|
className
|
|
13124
13113
|
} = props,
|
|
13125
|
-
other = _objectWithoutPropertiesLoose(props, _excluded$
|
|
13114
|
+
other = _objectWithoutPropertiesLoose(props, _excluded$b);
|
|
13126
13115
|
const [ripples, setRipples] = React.useState([]);
|
|
13127
13116
|
const nextKey = React.useRef(0);
|
|
13128
13117
|
const rippleCallback = React.useRef(null);
|
|
@@ -13323,8 +13312,8 @@ function getButtonBaseUtilityClass(slot) {
|
|
|
13323
13312
|
const buttonBaseClasses = generateUtilityClasses('MuiButtonBase', ['root', 'disabled', 'focusVisible']);
|
|
13324
13313
|
var buttonBaseClasses$1 = buttonBaseClasses;
|
|
13325
13314
|
|
|
13326
|
-
const _excluded$
|
|
13327
|
-
const useUtilityClasses$
|
|
13315
|
+
const _excluded$a = ["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"];
|
|
13316
|
+
const useUtilityClasses$7 = ownerState => {
|
|
13328
13317
|
const {
|
|
13329
13318
|
disabled,
|
|
13330
13319
|
focusVisible,
|
|
@@ -13425,7 +13414,7 @@ const ButtonBase = /*#__PURE__*/React.forwardRef(function ButtonBase(inProps, re
|
|
|
13425
13414
|
touchRippleRef,
|
|
13426
13415
|
type
|
|
13427
13416
|
} = props,
|
|
13428
|
-
other = _objectWithoutPropertiesLoose(props, _excluded$
|
|
13417
|
+
other = _objectWithoutPropertiesLoose(props, _excluded$a);
|
|
13429
13418
|
const buttonRef = React.useRef(null);
|
|
13430
13419
|
const rippleRef = React.useRef(null);
|
|
13431
13420
|
const handleRippleRef = useForkRef(rippleRef, touchRippleRef);
|
|
@@ -13592,7 +13581,7 @@ const ButtonBase = /*#__PURE__*/React.forwardRef(function ButtonBase(inProps, re
|
|
|
13592
13581
|
tabIndex,
|
|
13593
13582
|
focusVisible
|
|
13594
13583
|
});
|
|
13595
|
-
const classes = useUtilityClasses$
|
|
13584
|
+
const classes = useUtilityClasses$7(ownerState);
|
|
13596
13585
|
return /*#__PURE__*/jsxs(ButtonBaseRoot, _extends({
|
|
13597
13586
|
as: ComponentProp,
|
|
13598
13587
|
className: clsx(classes.root, className),
|
|
@@ -13789,8 +13778,8 @@ function getIconButtonUtilityClass(slot) {
|
|
|
13789
13778
|
const iconButtonClasses = generateUtilityClasses('MuiIconButton', ['root', 'disabled', 'colorInherit', 'colorPrimary', 'colorSecondary', 'colorError', 'colorInfo', 'colorSuccess', 'colorWarning', 'edgeStart', 'edgeEnd', 'sizeSmall', 'sizeMedium', 'sizeLarge']);
|
|
13790
13779
|
var iconButtonClasses$1 = iconButtonClasses;
|
|
13791
13780
|
|
|
13792
|
-
const _excluded$
|
|
13793
|
-
const useUtilityClasses$
|
|
13781
|
+
const _excluded$9 = ["edge", "children", "className", "color", "disabled", "disableFocusRipple", "size"];
|
|
13782
|
+
const useUtilityClasses$6 = ownerState => {
|
|
13794
13783
|
const {
|
|
13795
13784
|
classes,
|
|
13796
13785
|
disabled,
|
|
@@ -13890,7 +13879,7 @@ const IconButton = /*#__PURE__*/React.forwardRef(function IconButton(inProps, re
|
|
|
13890
13879
|
disableFocusRipple = false,
|
|
13891
13880
|
size = 'medium'
|
|
13892
13881
|
} = props,
|
|
13893
|
-
other = _objectWithoutPropertiesLoose(props, _excluded$
|
|
13882
|
+
other = _objectWithoutPropertiesLoose(props, _excluded$9);
|
|
13894
13883
|
const ownerState = _extends({}, props, {
|
|
13895
13884
|
edge,
|
|
13896
13885
|
color,
|
|
@@ -13898,7 +13887,7 @@ const IconButton = /*#__PURE__*/React.forwardRef(function IconButton(inProps, re
|
|
|
13898
13887
|
disableFocusRipple,
|
|
13899
13888
|
size
|
|
13900
13889
|
});
|
|
13901
|
-
const classes = useUtilityClasses$
|
|
13890
|
+
const classes = useUtilityClasses$6(ownerState);
|
|
13902
13891
|
return /*#__PURE__*/jsx(IconButtonRoot, _extends({
|
|
13903
13892
|
className: clsx(classes.root, className),
|
|
13904
13893
|
centerRipple: true,
|
|
@@ -13984,8 +13973,8 @@ function getTypographyUtilityClass(slot) {
|
|
|
13984
13973
|
}
|
|
13985
13974
|
generateUtilityClasses('MuiTypography', ['root', 'h1', 'h2', 'h3', 'h4', 'h5', 'h6', 'subtitle1', 'subtitle2', 'body1', 'body2', 'inherit', 'button', 'caption', 'overline', 'alignLeft', 'alignRight', 'alignCenter', 'alignJustify', 'noWrap', 'gutterBottom', 'paragraph']);
|
|
13986
13975
|
|
|
13987
|
-
const _excluded$
|
|
13988
|
-
const useUtilityClasses$
|
|
13976
|
+
const _excluded$8 = ["align", "className", "component", "gutterBottom", "noWrap", "paragraph", "variant", "variantMapping"];
|
|
13977
|
+
const useUtilityClasses$5 = ownerState => {
|
|
13989
13978
|
const {
|
|
13990
13979
|
align,
|
|
13991
13980
|
gutterBottom,
|
|
@@ -14039,22 +14028,22 @@ const defaultVariantMapping = {
|
|
|
14039
14028
|
};
|
|
14040
14029
|
|
|
14041
14030
|
// TODO v6: deprecate these color values in v5.x and remove the transformation in v6
|
|
14042
|
-
const colorTransformations
|
|
14031
|
+
const colorTransformations = {
|
|
14043
14032
|
primary: 'primary.main',
|
|
14044
14033
|
textPrimary: 'text.primary',
|
|
14045
14034
|
secondary: 'secondary.main',
|
|
14046
14035
|
textSecondary: 'text.secondary',
|
|
14047
14036
|
error: 'error.main'
|
|
14048
14037
|
};
|
|
14049
|
-
const transformDeprecatedColors
|
|
14050
|
-
return colorTransformations
|
|
14038
|
+
const transformDeprecatedColors = color => {
|
|
14039
|
+
return colorTransformations[color] || color;
|
|
14051
14040
|
};
|
|
14052
14041
|
const Typography = /*#__PURE__*/React.forwardRef(function Typography(inProps, ref) {
|
|
14053
14042
|
const themeProps = useThemeProps({
|
|
14054
14043
|
props: inProps,
|
|
14055
14044
|
name: 'MuiTypography'
|
|
14056
14045
|
});
|
|
14057
|
-
const color = transformDeprecatedColors
|
|
14046
|
+
const color = transformDeprecatedColors(themeProps.color);
|
|
14058
14047
|
const props = extendSxProp(_extends({}, themeProps, {
|
|
14059
14048
|
color
|
|
14060
14049
|
}));
|
|
@@ -14068,7 +14057,7 @@ const Typography = /*#__PURE__*/React.forwardRef(function Typography(inProps, re
|
|
|
14068
14057
|
variant = 'body1',
|
|
14069
14058
|
variantMapping = defaultVariantMapping
|
|
14070
14059
|
} = props,
|
|
14071
|
-
other = _objectWithoutPropertiesLoose(props, _excluded$
|
|
14060
|
+
other = _objectWithoutPropertiesLoose(props, _excluded$8);
|
|
14072
14061
|
const ownerState = _extends({}, props, {
|
|
14073
14062
|
align,
|
|
14074
14063
|
color,
|
|
@@ -14081,7 +14070,7 @@ const Typography = /*#__PURE__*/React.forwardRef(function Typography(inProps, re
|
|
|
14081
14070
|
variantMapping
|
|
14082
14071
|
});
|
|
14083
14072
|
const Component = component || (paragraph ? 'p' : variantMapping[variant] || defaultVariantMapping[variant]) || 'span';
|
|
14084
|
-
const classes = useUtilityClasses$
|
|
14073
|
+
const classes = useUtilityClasses$5(ownerState);
|
|
14085
14074
|
return /*#__PURE__*/jsx(TypographyRoot, _extends({
|
|
14086
14075
|
as: Component,
|
|
14087
14076
|
ref: ref,
|
|
@@ -14166,7 +14155,7 @@ process.env.NODE_ENV !== "production" ? Typography.propTypes /* remove-proptypes
|
|
|
14166
14155
|
} : void 0;
|
|
14167
14156
|
var Typography$1 = Typography;
|
|
14168
14157
|
|
|
14169
|
-
const _excluded$
|
|
14158
|
+
const _excluded$7 = ["addEndListener", "appear", "children", "easing", "in", "onEnter", "onEntered", "onEntering", "onExit", "onExited", "onExiting", "style", "timeout", "TransitionComponent"];
|
|
14170
14159
|
const styles = {
|
|
14171
14160
|
entering: {
|
|
14172
14161
|
opacity: 1
|
|
@@ -14203,7 +14192,7 @@ const Fade = /*#__PURE__*/React.forwardRef(function Fade(props, ref) {
|
|
|
14203
14192
|
// eslint-disable-next-line react/prop-types
|
|
14204
14193
|
TransitionComponent = Transition$1
|
|
14205
14194
|
} = props,
|
|
14206
|
-
other = _objectWithoutPropertiesLoose(props, _excluded$
|
|
14195
|
+
other = _objectWithoutPropertiesLoose(props, _excluded$7);
|
|
14207
14196
|
const nodeRef = React.useRef(null);
|
|
14208
14197
|
const handleRef = useForkRef(nodeRef, children.ref, ref);
|
|
14209
14198
|
const normalizedTransitionCallback = callback => maybeIsAppearing => {
|
|
@@ -14364,8 +14353,8 @@ function getBackdropUtilityClass(slot) {
|
|
|
14364
14353
|
}
|
|
14365
14354
|
generateUtilityClasses('MuiBackdrop', ['root', 'invisible']);
|
|
14366
14355
|
|
|
14367
|
-
const _excluded$
|
|
14368
|
-
const useUtilityClasses$
|
|
14356
|
+
const _excluded$6 = ["children", "className", "component", "components", "componentsProps", "invisible", "open", "slotProps", "slots", "TransitionComponent", "transitionDuration"];
|
|
14357
|
+
const useUtilityClasses$4 = ownerState => {
|
|
14369
14358
|
const {
|
|
14370
14359
|
classes,
|
|
14371
14360
|
invisible
|
|
@@ -14419,12 +14408,12 @@ const Backdrop = /*#__PURE__*/React.forwardRef(function Backdrop(inProps, ref) {
|
|
|
14419
14408
|
TransitionComponent = Fade$1,
|
|
14420
14409
|
transitionDuration
|
|
14421
14410
|
} = props,
|
|
14422
|
-
other = _objectWithoutPropertiesLoose(props, _excluded$
|
|
14411
|
+
other = _objectWithoutPropertiesLoose(props, _excluded$6);
|
|
14423
14412
|
const ownerState = _extends({}, props, {
|
|
14424
14413
|
component,
|
|
14425
14414
|
invisible
|
|
14426
14415
|
});
|
|
14427
|
-
const classes = useUtilityClasses$
|
|
14416
|
+
const classes = useUtilityClasses$4(ownerState);
|
|
14428
14417
|
const rootSlotProps = (_slotProps$root = slotProps.root) != null ? _slotProps$root : componentsProps.root;
|
|
14429
14418
|
return /*#__PURE__*/jsx(TransitionComponent, _extends({
|
|
14430
14419
|
in: open,
|
|
@@ -14568,319 +14557,6 @@ process.env.NODE_ENV !== "production" ? Box.propTypes /* remove-proptypes */ = {
|
|
|
14568
14557
|
} : void 0;
|
|
14569
14558
|
var Box$1 = Box;
|
|
14570
14559
|
|
|
14571
|
-
var MoreHorizIcon = createSvgIcon$1( /*#__PURE__*/jsx("path", {
|
|
14572
|
-
d: "M6 10c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm12 0c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm-6 0c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2z"
|
|
14573
|
-
}), 'MoreHoriz');
|
|
14574
|
-
|
|
14575
|
-
const _excluded$8 = ["slots", "slotProps"];
|
|
14576
|
-
const BreadcrumbCollapsedButton = styled$1(ButtonBase$1)(({
|
|
14577
|
-
theme
|
|
14578
|
-
}) => _extends({
|
|
14579
|
-
display: 'flex',
|
|
14580
|
-
marginLeft: `calc(${theme.spacing(1)} * 0.5)`,
|
|
14581
|
-
marginRight: `calc(${theme.spacing(1)} * 0.5)`
|
|
14582
|
-
}, theme.palette.mode === 'light' ? {
|
|
14583
|
-
backgroundColor: theme.palette.grey[100],
|
|
14584
|
-
color: theme.palette.grey[700]
|
|
14585
|
-
} : {
|
|
14586
|
-
backgroundColor: theme.palette.grey[700],
|
|
14587
|
-
color: theme.palette.grey[100]
|
|
14588
|
-
}, {
|
|
14589
|
-
borderRadius: 2,
|
|
14590
|
-
'&:hover, &:focus': _extends({}, theme.palette.mode === 'light' ? {
|
|
14591
|
-
backgroundColor: theme.palette.grey[200]
|
|
14592
|
-
} : {
|
|
14593
|
-
backgroundColor: theme.palette.grey[600]
|
|
14594
|
-
}),
|
|
14595
|
-
'&:active': _extends({
|
|
14596
|
-
boxShadow: theme.shadows[0]
|
|
14597
|
-
}, theme.palette.mode === 'light' ? {
|
|
14598
|
-
backgroundColor: emphasize(theme.palette.grey[200], 0.12)
|
|
14599
|
-
} : {
|
|
14600
|
-
backgroundColor: emphasize(theme.palette.grey[600], 0.12)
|
|
14601
|
-
})
|
|
14602
|
-
}));
|
|
14603
|
-
const BreadcrumbCollapsedIcon = styled$1(MoreHorizIcon)({
|
|
14604
|
-
width: 24,
|
|
14605
|
-
height: 16
|
|
14606
|
-
});
|
|
14607
|
-
|
|
14608
|
-
/**
|
|
14609
|
-
* @ignore - internal component.
|
|
14610
|
-
*/
|
|
14611
|
-
function BreadcrumbCollapsed(props) {
|
|
14612
|
-
const {
|
|
14613
|
-
slots = {},
|
|
14614
|
-
slotProps = {}
|
|
14615
|
-
} = props,
|
|
14616
|
-
otherProps = _objectWithoutPropertiesLoose(props, _excluded$8);
|
|
14617
|
-
const ownerState = props;
|
|
14618
|
-
return /*#__PURE__*/jsx("li", {
|
|
14619
|
-
children: /*#__PURE__*/jsx(BreadcrumbCollapsedButton, _extends({
|
|
14620
|
-
focusRipple: true
|
|
14621
|
-
}, otherProps, {
|
|
14622
|
-
ownerState: ownerState,
|
|
14623
|
-
children: /*#__PURE__*/jsx(BreadcrumbCollapsedIcon, _extends({
|
|
14624
|
-
as: slots.CollapsedIcon,
|
|
14625
|
-
ownerState: ownerState
|
|
14626
|
-
}, slotProps.collapsedIcon))
|
|
14627
|
-
}))
|
|
14628
|
-
});
|
|
14629
|
-
}
|
|
14630
|
-
process.env.NODE_ENV !== "production" ? BreadcrumbCollapsed.propTypes = {
|
|
14631
|
-
/**
|
|
14632
|
-
* The props used for the CollapsedIcon slot.
|
|
14633
|
-
* @default {}
|
|
14634
|
-
*/
|
|
14635
|
-
slotProps: PropTypes.shape({
|
|
14636
|
-
collapsedIcon: PropTypes.oneOfType([PropTypes.func, PropTypes.object])
|
|
14637
|
-
}),
|
|
14638
|
-
/**
|
|
14639
|
-
* The components used for each slot inside the BreadcumbCollapsed.
|
|
14640
|
-
* Either a string to use a HTML element or a component.
|
|
14641
|
-
* @default {}
|
|
14642
|
-
*/
|
|
14643
|
-
slots: PropTypes.shape({
|
|
14644
|
-
CollapsedIcon: PropTypes.elementType
|
|
14645
|
-
}),
|
|
14646
|
-
/**
|
|
14647
|
-
* The system prop that allows defining system overrides as well as additional CSS styles.
|
|
14648
|
-
*/
|
|
14649
|
-
sx: PropTypes.object
|
|
14650
|
-
} : void 0;
|
|
14651
|
-
|
|
14652
|
-
function getBreadcrumbsUtilityClass(slot) {
|
|
14653
|
-
return generateUtilityClass('MuiBreadcrumbs', slot);
|
|
14654
|
-
}
|
|
14655
|
-
const breadcrumbsClasses = generateUtilityClasses('MuiBreadcrumbs', ['root', 'ol', 'li', 'separator']);
|
|
14656
|
-
var breadcrumbsClasses$1 = breadcrumbsClasses;
|
|
14657
|
-
|
|
14658
|
-
const _excluded$7 = ["children", "className", "component", "slots", "slotProps", "expandText", "itemsAfterCollapse", "itemsBeforeCollapse", "maxItems", "separator"];
|
|
14659
|
-
const useUtilityClasses$5 = ownerState => {
|
|
14660
|
-
const {
|
|
14661
|
-
classes
|
|
14662
|
-
} = ownerState;
|
|
14663
|
-
const slots = {
|
|
14664
|
-
root: ['root'],
|
|
14665
|
-
li: ['li'],
|
|
14666
|
-
ol: ['ol'],
|
|
14667
|
-
separator: ['separator']
|
|
14668
|
-
};
|
|
14669
|
-
return composeClasses(slots, getBreadcrumbsUtilityClass, classes);
|
|
14670
|
-
};
|
|
14671
|
-
const BreadcrumbsRoot = styled$1(Typography$1, {
|
|
14672
|
-
name: 'MuiBreadcrumbs',
|
|
14673
|
-
slot: 'Root',
|
|
14674
|
-
overridesResolver: (props, styles) => {
|
|
14675
|
-
return [{
|
|
14676
|
-
[`& .${breadcrumbsClasses$1.li}`]: styles.li
|
|
14677
|
-
}, styles.root];
|
|
14678
|
-
}
|
|
14679
|
-
})({});
|
|
14680
|
-
const BreadcrumbsOl = styled$1('ol', {
|
|
14681
|
-
name: 'MuiBreadcrumbs',
|
|
14682
|
-
slot: 'Ol',
|
|
14683
|
-
overridesResolver: (props, styles) => styles.ol
|
|
14684
|
-
})({
|
|
14685
|
-
display: 'flex',
|
|
14686
|
-
flexWrap: 'wrap',
|
|
14687
|
-
alignItems: 'center',
|
|
14688
|
-
padding: 0,
|
|
14689
|
-
margin: 0,
|
|
14690
|
-
listStyle: 'none'
|
|
14691
|
-
});
|
|
14692
|
-
const BreadcrumbsSeparator = styled$1('li', {
|
|
14693
|
-
name: 'MuiBreadcrumbs',
|
|
14694
|
-
slot: 'Separator',
|
|
14695
|
-
overridesResolver: (props, styles) => styles.separator
|
|
14696
|
-
})({
|
|
14697
|
-
display: 'flex',
|
|
14698
|
-
userSelect: 'none',
|
|
14699
|
-
marginLeft: 8,
|
|
14700
|
-
marginRight: 8
|
|
14701
|
-
});
|
|
14702
|
-
function insertSeparators(items, className, separator, ownerState) {
|
|
14703
|
-
return items.reduce((acc, current, index) => {
|
|
14704
|
-
if (index < items.length - 1) {
|
|
14705
|
-
acc = acc.concat(current, /*#__PURE__*/jsx(BreadcrumbsSeparator, {
|
|
14706
|
-
"aria-hidden": true,
|
|
14707
|
-
className: className,
|
|
14708
|
-
ownerState: ownerState,
|
|
14709
|
-
children: separator
|
|
14710
|
-
}, `separator-${index}`));
|
|
14711
|
-
} else {
|
|
14712
|
-
acc.push(current);
|
|
14713
|
-
}
|
|
14714
|
-
return acc;
|
|
14715
|
-
}, []);
|
|
14716
|
-
}
|
|
14717
|
-
const Breadcrumbs = /*#__PURE__*/React.forwardRef(function Breadcrumbs(inProps, ref) {
|
|
14718
|
-
const props = useThemeProps({
|
|
14719
|
-
props: inProps,
|
|
14720
|
-
name: 'MuiBreadcrumbs'
|
|
14721
|
-
});
|
|
14722
|
-
const {
|
|
14723
|
-
children,
|
|
14724
|
-
className,
|
|
14725
|
-
component = 'nav',
|
|
14726
|
-
slots = {},
|
|
14727
|
-
slotProps = {},
|
|
14728
|
-
expandText = 'Show path',
|
|
14729
|
-
itemsAfterCollapse = 1,
|
|
14730
|
-
itemsBeforeCollapse = 1,
|
|
14731
|
-
maxItems = 8,
|
|
14732
|
-
separator = '/'
|
|
14733
|
-
} = props,
|
|
14734
|
-
other = _objectWithoutPropertiesLoose(props, _excluded$7);
|
|
14735
|
-
const [expanded, setExpanded] = React.useState(false);
|
|
14736
|
-
const ownerState = _extends({}, props, {
|
|
14737
|
-
component,
|
|
14738
|
-
expanded,
|
|
14739
|
-
expandText,
|
|
14740
|
-
itemsAfterCollapse,
|
|
14741
|
-
itemsBeforeCollapse,
|
|
14742
|
-
maxItems,
|
|
14743
|
-
separator
|
|
14744
|
-
});
|
|
14745
|
-
const classes = useUtilityClasses$5(ownerState);
|
|
14746
|
-
const collapsedIconSlotProps = useSlotProps({
|
|
14747
|
-
elementType: slots.CollapsedIcon,
|
|
14748
|
-
externalSlotProps: slotProps.collapsedIcon,
|
|
14749
|
-
ownerState
|
|
14750
|
-
});
|
|
14751
|
-
const listRef = React.useRef(null);
|
|
14752
|
-
const renderItemsBeforeAndAfter = allItems => {
|
|
14753
|
-
const handleClickExpand = () => {
|
|
14754
|
-
setExpanded(true);
|
|
14755
|
-
|
|
14756
|
-
// The clicked element received the focus but gets removed from the DOM.
|
|
14757
|
-
// Let's keep the focus in the component after expanding.
|
|
14758
|
-
// Moving it to the <ol> or <nav> does not cause any announcement in NVDA.
|
|
14759
|
-
// By moving it to some link/button at least we have some announcement.
|
|
14760
|
-
const focusable = listRef.current.querySelector('a[href],button,[tabindex]');
|
|
14761
|
-
if (focusable) {
|
|
14762
|
-
focusable.focus();
|
|
14763
|
-
}
|
|
14764
|
-
};
|
|
14765
|
-
|
|
14766
|
-
// This defends against someone passing weird input, to ensure that if all
|
|
14767
|
-
// items would be shown anyway, we just show all items without the EllipsisItem
|
|
14768
|
-
if (itemsBeforeCollapse + itemsAfterCollapse >= allItems.length) {
|
|
14769
|
-
if (process.env.NODE_ENV !== 'production') {
|
|
14770
|
-
console.error(['MUI: You have provided an invalid combination of props to the Breadcrumbs.', `itemsAfterCollapse={${itemsAfterCollapse}} + itemsBeforeCollapse={${itemsBeforeCollapse}} >= maxItems={${maxItems}}`].join('\n'));
|
|
14771
|
-
}
|
|
14772
|
-
return allItems;
|
|
14773
|
-
}
|
|
14774
|
-
return [...allItems.slice(0, itemsBeforeCollapse), /*#__PURE__*/jsx(BreadcrumbCollapsed, {
|
|
14775
|
-
"aria-label": expandText,
|
|
14776
|
-
slots: {
|
|
14777
|
-
CollapsedIcon: slots.CollapsedIcon
|
|
14778
|
-
},
|
|
14779
|
-
slotProps: {
|
|
14780
|
-
collapsedIcon: collapsedIconSlotProps
|
|
14781
|
-
},
|
|
14782
|
-
onClick: handleClickExpand
|
|
14783
|
-
}, "ellipsis"), ...allItems.slice(allItems.length - itemsAfterCollapse, allItems.length)];
|
|
14784
|
-
};
|
|
14785
|
-
const allItems = React.Children.toArray(children).filter(child => {
|
|
14786
|
-
if (process.env.NODE_ENV !== 'production') {
|
|
14787
|
-
if (reactIs$2.exports.isFragment(child)) {
|
|
14788
|
-
console.error(["MUI: The Breadcrumbs component doesn't accept a Fragment as a child.", 'Consider providing an array instead.'].join('\n'));
|
|
14789
|
-
}
|
|
14790
|
-
}
|
|
14791
|
-
return /*#__PURE__*/React.isValidElement(child);
|
|
14792
|
-
}).map((child, index) => /*#__PURE__*/jsx("li", {
|
|
14793
|
-
className: classes.li,
|
|
14794
|
-
children: child
|
|
14795
|
-
}, `child-${index}`));
|
|
14796
|
-
return /*#__PURE__*/jsx(BreadcrumbsRoot, _extends({
|
|
14797
|
-
ref: ref,
|
|
14798
|
-
component: component,
|
|
14799
|
-
color: "text.secondary",
|
|
14800
|
-
className: clsx(classes.root, className),
|
|
14801
|
-
ownerState: ownerState
|
|
14802
|
-
}, other, {
|
|
14803
|
-
children: /*#__PURE__*/jsx(BreadcrumbsOl, {
|
|
14804
|
-
className: classes.ol,
|
|
14805
|
-
ref: listRef,
|
|
14806
|
-
ownerState: ownerState,
|
|
14807
|
-
children: insertSeparators(expanded || maxItems && allItems.length <= maxItems ? allItems : renderItemsBeforeAndAfter(allItems), classes.separator, separator, ownerState)
|
|
14808
|
-
})
|
|
14809
|
-
}));
|
|
14810
|
-
});
|
|
14811
|
-
process.env.NODE_ENV !== "production" ? Breadcrumbs.propTypes /* remove-proptypes */ = {
|
|
14812
|
-
// ----------------------------- Warning --------------------------------
|
|
14813
|
-
// | These PropTypes are generated from the TypeScript type definitions |
|
|
14814
|
-
// | To update them edit the d.ts file and run "yarn proptypes" |
|
|
14815
|
-
// ----------------------------------------------------------------------
|
|
14816
|
-
/**
|
|
14817
|
-
* The content of the component.
|
|
14818
|
-
*/
|
|
14819
|
-
children: PropTypes.node,
|
|
14820
|
-
/**
|
|
14821
|
-
* Override or extend the styles applied to the component.
|
|
14822
|
-
*/
|
|
14823
|
-
classes: PropTypes.object,
|
|
14824
|
-
/**
|
|
14825
|
-
* @ignore
|
|
14826
|
-
*/
|
|
14827
|
-
className: PropTypes.string,
|
|
14828
|
-
/**
|
|
14829
|
-
* The component used for the root node.
|
|
14830
|
-
* Either a string to use a HTML element or a component.
|
|
14831
|
-
*/
|
|
14832
|
-
component: PropTypes.elementType,
|
|
14833
|
-
/**
|
|
14834
|
-
* Override the default label for the expand button.
|
|
14835
|
-
*
|
|
14836
|
-
* For localization purposes, you can use the provided [translations](/material-ui/guides/localization/).
|
|
14837
|
-
* @default 'Show path'
|
|
14838
|
-
*/
|
|
14839
|
-
expandText: PropTypes.string,
|
|
14840
|
-
/**
|
|
14841
|
-
* If max items is exceeded, the number of items to show after the ellipsis.
|
|
14842
|
-
* @default 1
|
|
14843
|
-
*/
|
|
14844
|
-
itemsAfterCollapse: integerPropType,
|
|
14845
|
-
/**
|
|
14846
|
-
* If max items is exceeded, the number of items to show before the ellipsis.
|
|
14847
|
-
* @default 1
|
|
14848
|
-
*/
|
|
14849
|
-
itemsBeforeCollapse: integerPropType,
|
|
14850
|
-
/**
|
|
14851
|
-
* Specifies the maximum number of breadcrumbs to display. When there are more
|
|
14852
|
-
* than the maximum number, only the first `itemsBeforeCollapse` and last `itemsAfterCollapse`
|
|
14853
|
-
* will be shown, with an ellipsis in between.
|
|
14854
|
-
* @default 8
|
|
14855
|
-
*/
|
|
14856
|
-
maxItems: integerPropType,
|
|
14857
|
-
/**
|
|
14858
|
-
* Custom separator node.
|
|
14859
|
-
* @default '/'
|
|
14860
|
-
*/
|
|
14861
|
-
separator: PropTypes.node,
|
|
14862
|
-
/**
|
|
14863
|
-
* The props used for each slot inside the Breadcumb.
|
|
14864
|
-
* @default {}
|
|
14865
|
-
*/
|
|
14866
|
-
slotProps: PropTypes.shape({
|
|
14867
|
-
collapsedIcon: PropTypes.oneOfType([PropTypes.func, PropTypes.object])
|
|
14868
|
-
}),
|
|
14869
|
-
/**
|
|
14870
|
-
* The components used for each slot inside the Breadcumb.
|
|
14871
|
-
* Either a string to use a HTML element or a component.
|
|
14872
|
-
* @default {}
|
|
14873
|
-
*/
|
|
14874
|
-
slots: PropTypes.shape({
|
|
14875
|
-
CollapsedIcon: PropTypes.elementType
|
|
14876
|
-
}),
|
|
14877
|
-
/**
|
|
14878
|
-
* The system prop that allows defining system overrides as well as additional CSS styles.
|
|
14879
|
-
*/
|
|
14880
|
-
sx: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.func, PropTypes.object, PropTypes.bool])), PropTypes.func, PropTypes.object])
|
|
14881
|
-
} : void 0;
|
|
14882
|
-
var Breadcrumbs$1 = Breadcrumbs;
|
|
14883
|
-
|
|
14884
14560
|
function getButtonUtilityClass(slot) {
|
|
14885
14561
|
return generateUtilityClass('MuiButton', slot);
|
|
14886
14562
|
}
|
|
@@ -14896,8 +14572,8 @@ if (process.env.NODE_ENV !== 'production') {
|
|
|
14896
14572
|
}
|
|
14897
14573
|
var ButtonGroupContext$1 = ButtonGroupContext;
|
|
14898
14574
|
|
|
14899
|
-
const _excluded$
|
|
14900
|
-
const useUtilityClasses$
|
|
14575
|
+
const _excluded$5 = ["children", "color", "component", "className", "disabled", "disableElevation", "disableFocusRipple", "endIcon", "focusVisibleClassName", "fullWidth", "size", "startIcon", "type", "variant"];
|
|
14576
|
+
const useUtilityClasses$3 = ownerState => {
|
|
14901
14577
|
const {
|
|
14902
14578
|
color,
|
|
14903
14579
|
disableElevation,
|
|
@@ -15122,7 +14798,7 @@ const Button = /*#__PURE__*/React.forwardRef(function Button(inProps, ref) {
|
|
|
15122
14798
|
type,
|
|
15123
14799
|
variant = 'text'
|
|
15124
14800
|
} = props,
|
|
15125
|
-
other = _objectWithoutPropertiesLoose(props, _excluded$
|
|
14801
|
+
other = _objectWithoutPropertiesLoose(props, _excluded$5);
|
|
15126
14802
|
const ownerState = _extends({}, props, {
|
|
15127
14803
|
color,
|
|
15128
14804
|
component,
|
|
@@ -15134,7 +14810,7 @@ const Button = /*#__PURE__*/React.forwardRef(function Button(inProps, ref) {
|
|
|
15134
14810
|
type,
|
|
15135
14811
|
variant
|
|
15136
14812
|
});
|
|
15137
|
-
const classes = useUtilityClasses$
|
|
14813
|
+
const classes = useUtilityClasses$3(ownerState);
|
|
15138
14814
|
const startIcon = startIconProp && /*#__PURE__*/jsx(ButtonStartIcon, {
|
|
15139
14815
|
className: classes.startIcon,
|
|
15140
14816
|
ownerState: ownerState,
|
|
@@ -15255,7 +14931,7 @@ process.env.NODE_ENV !== "production" ? Button.propTypes /* remove-proptypes */
|
|
|
15255
14931
|
} : void 0;
|
|
15256
14932
|
var Button$1 = Button;
|
|
15257
14933
|
|
|
15258
|
-
const _excluded$
|
|
14934
|
+
const _excluded$4 = ["BackdropComponent", "BackdropProps", "classes", "className", "closeAfterTransition", "children", "container", "component", "components", "componentsProps", "disableAutoFocus", "disableEnforceFocus", "disableEscapeKeyDown", "disablePortal", "disableRestoreFocus", "disableScrollLock", "hideBackdrop", "keepMounted", "onBackdropClick", "onClose", "open", "slotProps", "slots", "theme"];
|
|
15259
14935
|
const ModalRoot = styled$1('div', {
|
|
15260
14936
|
name: 'MuiModal',
|
|
15261
14937
|
slot: 'Root',
|
|
@@ -15334,7 +15010,7 @@ const Modal = /*#__PURE__*/React.forwardRef(function Modal(inProps, ref) {
|
|
|
15334
15010
|
// eslint-disable-next-line react/prop-types
|
|
15335
15011
|
theme
|
|
15336
15012
|
} = props,
|
|
15337
|
-
other = _objectWithoutPropertiesLoose(props, _excluded$
|
|
15013
|
+
other = _objectWithoutPropertiesLoose(props, _excluded$4);
|
|
15338
15014
|
const [exited, setExited] = React.useState(true);
|
|
15339
15015
|
const commonProps = {
|
|
15340
15016
|
container,
|
|
@@ -15558,8 +15234,8 @@ function getDividerUtilityClass(slot) {
|
|
|
15558
15234
|
}
|
|
15559
15235
|
generateUtilityClasses('MuiDivider', ['root', 'absolute', 'fullWidth', 'inset', 'middle', 'flexItem', 'light', 'vertical', 'withChildren', 'withChildrenVertical', 'textAlignRight', 'textAlignLeft', 'wrapper', 'wrapperVertical']);
|
|
15560
15236
|
|
|
15561
|
-
const _excluded$
|
|
15562
|
-
const useUtilityClasses$
|
|
15237
|
+
const _excluded$3 = ["absolute", "children", "className", "component", "flexItem", "light", "orientation", "role", "textAlign", "variant"];
|
|
15238
|
+
const useUtilityClasses$2 = ownerState => {
|
|
15563
15239
|
const {
|
|
15564
15240
|
absolute,
|
|
15565
15241
|
children,
|
|
@@ -15700,7 +15376,7 @@ const Divider = /*#__PURE__*/React.forwardRef(function Divider(inProps, ref) {
|
|
|
15700
15376
|
textAlign = 'center',
|
|
15701
15377
|
variant = 'fullWidth'
|
|
15702
15378
|
} = props,
|
|
15703
|
-
other = _objectWithoutPropertiesLoose(props, _excluded$
|
|
15379
|
+
other = _objectWithoutPropertiesLoose(props, _excluded$3);
|
|
15704
15380
|
const ownerState = _extends({}, props, {
|
|
15705
15381
|
absolute,
|
|
15706
15382
|
component,
|
|
@@ -15711,7 +15387,7 @@ const Divider = /*#__PURE__*/React.forwardRef(function Divider(inProps, ref) {
|
|
|
15711
15387
|
textAlign,
|
|
15712
15388
|
variant
|
|
15713
15389
|
});
|
|
15714
|
-
const classes = useUtilityClasses$
|
|
15390
|
+
const classes = useUtilityClasses$2(ownerState);
|
|
15715
15391
|
return /*#__PURE__*/jsx(DividerRoot, _extends({
|
|
15716
15392
|
as: component,
|
|
15717
15393
|
className: clsx(classes.root, className),
|
|
@@ -15790,7 +15466,7 @@ process.env.NODE_ENV !== "production" ? Divider.propTypes /* remove-proptypes */
|
|
|
15790
15466
|
} : void 0;
|
|
15791
15467
|
var Divider$1 = Divider;
|
|
15792
15468
|
|
|
15793
|
-
const _excluded$
|
|
15469
|
+
const _excluded$2 = ["addEndListener", "appear", "children", "container", "direction", "easing", "in", "onEnter", "onEntered", "onEntering", "onExit", "onExited", "onExiting", "style", "timeout", "TransitionComponent"];
|
|
15794
15470
|
function getTranslateValue(direction, node, resolvedContainer) {
|
|
15795
15471
|
const rect = node.getBoundingClientRect();
|
|
15796
15472
|
const containerRect = resolvedContainer && resolvedContainer.getBoundingClientRect();
|
|
@@ -15879,7 +15555,7 @@ const Slide = /*#__PURE__*/React.forwardRef(function Slide(props, ref) {
|
|
|
15879
15555
|
// eslint-disable-next-line react/prop-types
|
|
15880
15556
|
TransitionComponent = Transition$1
|
|
15881
15557
|
} = props,
|
|
15882
|
-
other = _objectWithoutPropertiesLoose(props, _excluded$
|
|
15558
|
+
other = _objectWithoutPropertiesLoose(props, _excluded$2);
|
|
15883
15559
|
const childrenRef = React.useRef(null);
|
|
15884
15560
|
const handleRef = useForkRef(children.ref, childrenRef, ref);
|
|
15885
15561
|
const normalizedTransitionCallback = callback => isAppearing => {
|
|
@@ -16107,7 +15783,7 @@ function getDrawerUtilityClass(slot) {
|
|
|
16107
15783
|
}
|
|
16108
15784
|
generateUtilityClasses('MuiDrawer', ['root', 'docked', 'paper', 'paperAnchorLeft', 'paperAnchorRight', 'paperAnchorTop', 'paperAnchorBottom', 'paperAnchorDockedLeft', 'paperAnchorDockedRight', 'paperAnchorDockedTop', 'paperAnchorDockedBottom', 'modal']);
|
|
16109
15785
|
|
|
16110
|
-
const _excluded$
|
|
15786
|
+
const _excluded$1 = ["BackdropProps"],
|
|
16111
15787
|
_excluded2 = ["anchor", "BackdropProps", "children", "className", "elevation", "hideBackdrop", "ModalProps", "onClose", "open", "PaperProps", "SlideProps", "TransitionComponent", "transitionDuration", "variant"];
|
|
16112
15788
|
const overridesResolver = (props, styles) => {
|
|
16113
15789
|
const {
|
|
@@ -16115,7 +15791,7 @@ const overridesResolver = (props, styles) => {
|
|
|
16115
15791
|
} = props;
|
|
16116
15792
|
return [styles.root, (ownerState.variant === 'permanent' || ownerState.variant === 'persistent') && styles.docked, styles.modal];
|
|
16117
15793
|
};
|
|
16118
|
-
const useUtilityClasses$
|
|
15794
|
+
const useUtilityClasses$1 = ownerState => {
|
|
16119
15795
|
const {
|
|
16120
15796
|
classes,
|
|
16121
15797
|
anchor,
|
|
@@ -16247,7 +15923,7 @@ const Drawer = /*#__PURE__*/React.forwardRef(function Drawer(inProps, ref) {
|
|
|
16247
15923
|
transitionDuration = defaultTransitionDuration,
|
|
16248
15924
|
variant = 'temporary'
|
|
16249
15925
|
} = props,
|
|
16250
|
-
ModalProps = _objectWithoutPropertiesLoose(props.ModalProps, _excluded$
|
|
15926
|
+
ModalProps = _objectWithoutPropertiesLoose(props.ModalProps, _excluded$1),
|
|
16251
15927
|
other = _objectWithoutPropertiesLoose(props, _excluded2);
|
|
16252
15928
|
|
|
16253
15929
|
// Let's assume that the Drawer will always be rendered on user space.
|
|
@@ -16265,7 +15941,7 @@ const Drawer = /*#__PURE__*/React.forwardRef(function Drawer(inProps, ref) {
|
|
|
16265
15941
|
open,
|
|
16266
15942
|
variant
|
|
16267
15943
|
}, other);
|
|
16268
|
-
const classes = useUtilityClasses$
|
|
15944
|
+
const classes = useUtilityClasses$1(ownerState);
|
|
16269
15945
|
const drawer = /*#__PURE__*/jsx(DrawerPaper, _extends({
|
|
16270
15946
|
elevation: variant === 'temporary' ? elevation : 0,
|
|
16271
15947
|
square: true
|
|
@@ -16407,7 +16083,7 @@ function getLinearProgressUtilityClass(slot) {
|
|
|
16407
16083
|
}
|
|
16408
16084
|
generateUtilityClasses('MuiLinearProgress', ['root', 'colorPrimary', 'colorSecondary', 'determinate', 'indeterminate', 'buffer', 'query', 'dashed', 'dashedColorPrimary', 'dashedColorSecondary', 'bar', 'barColorPrimary', 'barColorSecondary', 'bar1Indeterminate', 'bar1Determinate', 'bar1Buffer', 'bar2Indeterminate', 'bar2Buffer']);
|
|
16409
16085
|
|
|
16410
|
-
const _excluded
|
|
16086
|
+
const _excluded = ["className", "color", "value", "valueBuffer", "variant"];
|
|
16411
16087
|
let _ = t => t,
|
|
16412
16088
|
_t,
|
|
16413
16089
|
_t2,
|
|
@@ -16464,7 +16140,7 @@ const bufferKeyframe = keyframes(_t3 || (_t3 = _`
|
|
|
16464
16140
|
background-position: -200px -23px;
|
|
16465
16141
|
}
|
|
16466
16142
|
`));
|
|
16467
|
-
const useUtilityClasses
|
|
16143
|
+
const useUtilityClasses = ownerState => {
|
|
16468
16144
|
const {
|
|
16469
16145
|
classes,
|
|
16470
16146
|
variant,
|
|
@@ -16641,12 +16317,12 @@ const LinearProgress = /*#__PURE__*/React.forwardRef(function LinearProgress(inP
|
|
|
16641
16317
|
valueBuffer,
|
|
16642
16318
|
variant = 'indeterminate'
|
|
16643
16319
|
} = props,
|
|
16644
|
-
other = _objectWithoutPropertiesLoose(props, _excluded
|
|
16320
|
+
other = _objectWithoutPropertiesLoose(props, _excluded);
|
|
16645
16321
|
const ownerState = _extends({}, props, {
|
|
16646
16322
|
color,
|
|
16647
16323
|
variant
|
|
16648
16324
|
});
|
|
16649
|
-
const classes = useUtilityClasses
|
|
16325
|
+
const classes = useUtilityClasses(ownerState);
|
|
16650
16326
|
const theme = useTheme();
|
|
16651
16327
|
const rootProps = {};
|
|
16652
16328
|
const inlineStyles = {
|
|
@@ -16742,231 +16418,6 @@ process.env.NODE_ENV !== "production" ? LinearProgress.propTypes /* remove-propt
|
|
|
16742
16418
|
} : void 0;
|
|
16743
16419
|
var LinearProgress$1 = LinearProgress;
|
|
16744
16420
|
|
|
16745
|
-
function getLinkUtilityClass(slot) {
|
|
16746
|
-
return generateUtilityClass('MuiLink', slot);
|
|
16747
|
-
}
|
|
16748
|
-
const linkClasses = generateUtilityClasses('MuiLink', ['root', 'underlineNone', 'underlineHover', 'underlineAlways', 'button', 'focusVisible']);
|
|
16749
|
-
var linkClasses$1 = linkClasses;
|
|
16750
|
-
|
|
16751
|
-
const colorTransformations = {
|
|
16752
|
-
primary: 'primary.main',
|
|
16753
|
-
textPrimary: 'text.primary',
|
|
16754
|
-
secondary: 'secondary.main',
|
|
16755
|
-
textSecondary: 'text.secondary',
|
|
16756
|
-
error: 'error.main'
|
|
16757
|
-
};
|
|
16758
|
-
const transformDeprecatedColors = color => {
|
|
16759
|
-
return colorTransformations[color] || color;
|
|
16760
|
-
};
|
|
16761
|
-
const getTextDecoration = ({
|
|
16762
|
-
theme,
|
|
16763
|
-
ownerState
|
|
16764
|
-
}) => {
|
|
16765
|
-
const transformedColor = transformDeprecatedColors(ownerState.color);
|
|
16766
|
-
const color = getPath(theme, `palette.${transformedColor}`, false) || ownerState.color;
|
|
16767
|
-
const channelColor = getPath(theme, `palette.${transformedColor}Channel`);
|
|
16768
|
-
if ('vars' in theme && channelColor) {
|
|
16769
|
-
return `rgba(${channelColor} / 0.4)`;
|
|
16770
|
-
}
|
|
16771
|
-
return alpha(color, 0.4);
|
|
16772
|
-
};
|
|
16773
|
-
var getTextDecoration$1 = getTextDecoration;
|
|
16774
|
-
|
|
16775
|
-
const _excluded = ["className", "color", "component", "onBlur", "onFocus", "TypographyClasses", "underline", "variant", "sx"];
|
|
16776
|
-
const useUtilityClasses = ownerState => {
|
|
16777
|
-
const {
|
|
16778
|
-
classes,
|
|
16779
|
-
component,
|
|
16780
|
-
focusVisible,
|
|
16781
|
-
underline
|
|
16782
|
-
} = ownerState;
|
|
16783
|
-
const slots = {
|
|
16784
|
-
root: ['root', `underline${capitalize(underline)}`, component === 'button' && 'button', focusVisible && 'focusVisible']
|
|
16785
|
-
};
|
|
16786
|
-
return composeClasses(slots, getLinkUtilityClass, classes);
|
|
16787
|
-
};
|
|
16788
|
-
const LinkRoot = styled$1(Typography$1, {
|
|
16789
|
-
name: 'MuiLink',
|
|
16790
|
-
slot: 'Root',
|
|
16791
|
-
overridesResolver: (props, styles) => {
|
|
16792
|
-
const {
|
|
16793
|
-
ownerState
|
|
16794
|
-
} = props;
|
|
16795
|
-
return [styles.root, styles[`underline${capitalize(ownerState.underline)}`], ownerState.component === 'button' && styles.button];
|
|
16796
|
-
}
|
|
16797
|
-
})(({
|
|
16798
|
-
theme,
|
|
16799
|
-
ownerState
|
|
16800
|
-
}) => {
|
|
16801
|
-
return _extends({}, ownerState.underline === 'none' && {
|
|
16802
|
-
textDecoration: 'none'
|
|
16803
|
-
}, ownerState.underline === 'hover' && {
|
|
16804
|
-
textDecoration: 'none',
|
|
16805
|
-
'&:hover': {
|
|
16806
|
-
textDecoration: 'underline'
|
|
16807
|
-
}
|
|
16808
|
-
}, ownerState.underline === 'always' && _extends({
|
|
16809
|
-
textDecoration: 'underline'
|
|
16810
|
-
}, ownerState.color !== 'inherit' && {
|
|
16811
|
-
textDecorationColor: getTextDecoration$1({
|
|
16812
|
-
theme,
|
|
16813
|
-
ownerState
|
|
16814
|
-
})
|
|
16815
|
-
}, {
|
|
16816
|
-
'&:hover': {
|
|
16817
|
-
textDecorationColor: 'inherit'
|
|
16818
|
-
}
|
|
16819
|
-
}), ownerState.component === 'button' && {
|
|
16820
|
-
position: 'relative',
|
|
16821
|
-
WebkitTapHighlightColor: 'transparent',
|
|
16822
|
-
backgroundColor: 'transparent',
|
|
16823
|
-
// Reset default value
|
|
16824
|
-
// We disable the focus ring for mouse, touch and keyboard users.
|
|
16825
|
-
outline: 0,
|
|
16826
|
-
border: 0,
|
|
16827
|
-
margin: 0,
|
|
16828
|
-
// Remove the margin in Safari
|
|
16829
|
-
borderRadius: 0,
|
|
16830
|
-
padding: 0,
|
|
16831
|
-
// Remove the padding in Firefox
|
|
16832
|
-
cursor: 'pointer',
|
|
16833
|
-
userSelect: 'none',
|
|
16834
|
-
verticalAlign: 'middle',
|
|
16835
|
-
MozAppearance: 'none',
|
|
16836
|
-
// Reset
|
|
16837
|
-
WebkitAppearance: 'none',
|
|
16838
|
-
// Reset
|
|
16839
|
-
'&::-moz-focus-inner': {
|
|
16840
|
-
borderStyle: 'none' // Remove Firefox dotted outline.
|
|
16841
|
-
},
|
|
16842
|
-
|
|
16843
|
-
[`&.${linkClasses$1.focusVisible}`]: {
|
|
16844
|
-
outline: 'auto'
|
|
16845
|
-
}
|
|
16846
|
-
});
|
|
16847
|
-
});
|
|
16848
|
-
const Link = /*#__PURE__*/React.forwardRef(function Link(inProps, ref) {
|
|
16849
|
-
const props = useThemeProps({
|
|
16850
|
-
props: inProps,
|
|
16851
|
-
name: 'MuiLink'
|
|
16852
|
-
});
|
|
16853
|
-
const {
|
|
16854
|
-
className,
|
|
16855
|
-
color = 'primary',
|
|
16856
|
-
component = 'a',
|
|
16857
|
-
onBlur,
|
|
16858
|
-
onFocus,
|
|
16859
|
-
TypographyClasses,
|
|
16860
|
-
underline = 'always',
|
|
16861
|
-
variant = 'inherit',
|
|
16862
|
-
sx
|
|
16863
|
-
} = props,
|
|
16864
|
-
other = _objectWithoutPropertiesLoose(props, _excluded);
|
|
16865
|
-
const {
|
|
16866
|
-
isFocusVisibleRef,
|
|
16867
|
-
onBlur: handleBlurVisible,
|
|
16868
|
-
onFocus: handleFocusVisible,
|
|
16869
|
-
ref: focusVisibleRef
|
|
16870
|
-
} = useIsFocusVisible();
|
|
16871
|
-
const [focusVisible, setFocusVisible] = React.useState(false);
|
|
16872
|
-
const handlerRef = useForkRef(ref, focusVisibleRef);
|
|
16873
|
-
const handleBlur = event => {
|
|
16874
|
-
handleBlurVisible(event);
|
|
16875
|
-
if (isFocusVisibleRef.current === false) {
|
|
16876
|
-
setFocusVisible(false);
|
|
16877
|
-
}
|
|
16878
|
-
if (onBlur) {
|
|
16879
|
-
onBlur(event);
|
|
16880
|
-
}
|
|
16881
|
-
};
|
|
16882
|
-
const handleFocus = event => {
|
|
16883
|
-
handleFocusVisible(event);
|
|
16884
|
-
if (isFocusVisibleRef.current === true) {
|
|
16885
|
-
setFocusVisible(true);
|
|
16886
|
-
}
|
|
16887
|
-
if (onFocus) {
|
|
16888
|
-
onFocus(event);
|
|
16889
|
-
}
|
|
16890
|
-
};
|
|
16891
|
-
const ownerState = _extends({}, props, {
|
|
16892
|
-
color,
|
|
16893
|
-
component,
|
|
16894
|
-
focusVisible,
|
|
16895
|
-
underline,
|
|
16896
|
-
variant
|
|
16897
|
-
});
|
|
16898
|
-
const classes = useUtilityClasses(ownerState);
|
|
16899
|
-
return /*#__PURE__*/jsx(LinkRoot, _extends({
|
|
16900
|
-
color: color,
|
|
16901
|
-
className: clsx(classes.root, className),
|
|
16902
|
-
classes: TypographyClasses,
|
|
16903
|
-
component: component,
|
|
16904
|
-
onBlur: handleBlur,
|
|
16905
|
-
onFocus: handleFocus,
|
|
16906
|
-
ref: handlerRef,
|
|
16907
|
-
ownerState: ownerState,
|
|
16908
|
-
variant: variant,
|
|
16909
|
-
sx: [...(!Object.keys(colorTransformations).includes(color) ? [{
|
|
16910
|
-
color
|
|
16911
|
-
}] : []), ...(Array.isArray(sx) ? sx : [sx])]
|
|
16912
|
-
}, other));
|
|
16913
|
-
});
|
|
16914
|
-
process.env.NODE_ENV !== "production" ? Link.propTypes /* remove-proptypes */ = {
|
|
16915
|
-
// ----------------------------- Warning --------------------------------
|
|
16916
|
-
// | These PropTypes are generated from the TypeScript type definitions |
|
|
16917
|
-
// | To update them edit the d.ts file and run "yarn proptypes" |
|
|
16918
|
-
// ----------------------------------------------------------------------
|
|
16919
|
-
/**
|
|
16920
|
-
* The content of the component.
|
|
16921
|
-
*/
|
|
16922
|
-
children: PropTypes.node,
|
|
16923
|
-
/**
|
|
16924
|
-
* Override or extend the styles applied to the component.
|
|
16925
|
-
*/
|
|
16926
|
-
classes: PropTypes.object,
|
|
16927
|
-
/**
|
|
16928
|
-
* @ignore
|
|
16929
|
-
*/
|
|
16930
|
-
className: PropTypes.string,
|
|
16931
|
-
/**
|
|
16932
|
-
* The color of the link.
|
|
16933
|
-
* @default 'primary'
|
|
16934
|
-
*/
|
|
16935
|
-
color: PropTypes /* @typescript-to-proptypes-ignore */.any,
|
|
16936
|
-
/**
|
|
16937
|
-
* The component used for the root node.
|
|
16938
|
-
* Either a string to use a HTML element or a component.
|
|
16939
|
-
*/
|
|
16940
|
-
component: elementTypeAcceptingRef$1,
|
|
16941
|
-
/**
|
|
16942
|
-
* @ignore
|
|
16943
|
-
*/
|
|
16944
|
-
onBlur: PropTypes.func,
|
|
16945
|
-
/**
|
|
16946
|
-
* @ignore
|
|
16947
|
-
*/
|
|
16948
|
-
onFocus: PropTypes.func,
|
|
16949
|
-
/**
|
|
16950
|
-
* The system prop that allows defining system overrides as well as additional CSS styles.
|
|
16951
|
-
*/
|
|
16952
|
-
sx: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.func, PropTypes.object, PropTypes.bool])), PropTypes.func, PropTypes.object]),
|
|
16953
|
-
/**
|
|
16954
|
-
* `classes` prop applied to the [`Typography`](/material-ui/api/typography/) element.
|
|
16955
|
-
*/
|
|
16956
|
-
TypographyClasses: PropTypes.object,
|
|
16957
|
-
/**
|
|
16958
|
-
* Controls when the link should have an underline.
|
|
16959
|
-
* @default 'always'
|
|
16960
|
-
*/
|
|
16961
|
-
underline: PropTypes.oneOf(['always', 'hover', 'none']),
|
|
16962
|
-
/**
|
|
16963
|
-
* Applies the theme typography styles.
|
|
16964
|
-
* @default 'inherit'
|
|
16965
|
-
*/
|
|
16966
|
-
variant: PropTypes /* @typescript-to-proptypes-ignore */.oneOfType([PropTypes.oneOf(['body1', 'body2', 'button', 'caption', 'h1', 'h2', 'h3', 'h4', 'h5', 'h6', 'inherit', 'overline', 'subtitle1', 'subtitle2']), PropTypes.string])
|
|
16967
|
-
} : void 0;
|
|
16968
|
-
var Link$1 = Link;
|
|
16969
|
-
|
|
16970
16421
|
const Stack = createStack({
|
|
16971
16422
|
createStyledComponent: styled$1('div', {
|
|
16972
16423
|
name: 'MuiStack',
|
|
@@ -17126,13 +16577,15 @@ const ToastNotification = toast => {
|
|
|
17126
16577
|
const progress = 100 - seconds / timeProgress * 100;
|
|
17127
16578
|
setProgress(progress <= 0 ? 0 : progress);
|
|
17128
16579
|
}, 100);
|
|
17129
|
-
setTimeout(() => {
|
|
16580
|
+
const closeTimeout = setTimeout(() => {
|
|
16581
|
+
clearInterval(interval);
|
|
17130
16582
|
setOpenToast(false);
|
|
17131
16583
|
}, timeProgress);
|
|
17132
16584
|
return () => {
|
|
17133
|
-
clearInterval(interval
|
|
16585
|
+
clearInterval(interval);
|
|
16586
|
+
clearTimeout(closeTimeout);
|
|
17134
16587
|
};
|
|
17135
|
-
}, [timeProgress
|
|
16588
|
+
}, [timeProgress]);
|
|
17136
16589
|
return /*#__PURE__*/React__default.createElement(React__default.Fragment, null, openToast && /*#__PURE__*/React__default.createElement(ThemeProvider, {
|
|
17137
16590
|
theme: SincoTheme
|
|
17138
16591
|
}, /*#__PURE__*/React__default.createElement(Stack$1, {
|
|
@@ -17216,48 +16669,18 @@ const ToastNotification = toast => {
|
|
|
17216
16669
|
})))));
|
|
17217
16670
|
};
|
|
17218
16671
|
|
|
17219
|
-
|
|
16672
|
+
styled$1(Stack$1)(({
|
|
16673
|
+
theme
|
|
16674
|
+
}) => ({
|
|
17220
16675
|
backgroundColor: "#fff",
|
|
17221
16676
|
boxShadow: "0px 1px 3px rgba(24, 39, 75, 0.12), 0px 1px 1px -1px rgba(24, 39, 75, 0.14), 0px 2px 1px -2px rgba(24, 39, 75, 0.2)",
|
|
17222
16677
|
zIndex: 100,
|
|
17223
16678
|
padding: "8px 24px",
|
|
17224
16679
|
justifyContent: "space-between",
|
|
17225
16680
|
minHeight: 39,
|
|
16681
|
+
position: "fixed",
|
|
17226
16682
|
width: "100%"
|
|
17227
16683
|
}));
|
|
17228
|
-
const PageHeader = page => {
|
|
17229
|
-
return /*#__PURE__*/React__default.createElement("div", {
|
|
17230
|
-
style: {
|
|
17231
|
-
minHeight: 56
|
|
17232
|
-
}
|
|
17233
|
-
}, /*#__PURE__*/React__default.createElement(PageContent, null, Array.isArray(page.breadcrumbs) && page.breadcrumbs.length > 0 && /*#__PURE__*/React__default.createElement(Breadcrumbs$1, null, page.breadcrumbs.map((element, i) => {
|
|
17234
|
-
return /*#__PURE__*/React__default.createElement(Link$1, {
|
|
17235
|
-
underline: "hover",
|
|
17236
|
-
color: "inherit",
|
|
17237
|
-
href: element.link,
|
|
17238
|
-
key: i
|
|
17239
|
-
}, element.name);
|
|
17240
|
-
})), /*#__PURE__*/React__default.createElement(Stack$1, {
|
|
17241
|
-
width: "90%",
|
|
17242
|
-
justifyContent: "space-between",
|
|
17243
|
-
flexDirection: "row",
|
|
17244
|
-
alignItems: "center"
|
|
17245
|
-
}, /*#__PURE__*/React__default.createElement(Stack$1, {
|
|
17246
|
-
gap: 1.5,
|
|
17247
|
-
flexDirection: "row",
|
|
17248
|
-
alignItems: "center"
|
|
17249
|
-
}, page.back, /*#__PURE__*/React__default.createElement(Stack$1, null, /*#__PURE__*/React__default.createElement(Typography$1, {
|
|
17250
|
-
variant: "h6",
|
|
17251
|
-
color: "text.primary"
|
|
17252
|
-
}, page.title), /*#__PURE__*/React__default.createElement(Typography$1, {
|
|
17253
|
-
variant: "caption",
|
|
17254
|
-
color: "text.secondary"
|
|
17255
|
-
}, page.subtitle))), /*#__PURE__*/React__default.createElement(Stack$1, {
|
|
17256
|
-
gap: 1,
|
|
17257
|
-
alignItems: "center",
|
|
17258
|
-
flexDirection: "row"
|
|
17259
|
-
}, page.actions)), page.tabs));
|
|
17260
|
-
};
|
|
17261
16684
|
|
|
17262
16685
|
var Close = {};
|
|
17263
16686
|
|
|
@@ -17380,4 +16803,4 @@ const DrawerComponent = ({
|
|
|
17380
16803
|
}, acciones)));
|
|
17381
16804
|
};
|
|
17382
16805
|
|
|
17383
|
-
export { DrawerComponent,
|
|
16806
|
+
export { DrawerComponent, SincoTheme, ToastNotification };
|
package/package.json
CHANGED
|
@@ -3,7 +3,7 @@ interface BreadcrumbCode {
|
|
|
3
3
|
link: string;
|
|
4
4
|
name: string;
|
|
5
5
|
}
|
|
6
|
-
|
|
6
|
+
interface Pageheader {
|
|
7
7
|
back?: React.ReactNode;
|
|
8
8
|
title?: string;
|
|
9
9
|
subtitle?: string;
|
|
@@ -11,5 +11,5 @@ export interface Pageheader {
|
|
|
11
11
|
actions?: React.ReactNode;
|
|
12
12
|
tabs?: React.ReactNode;
|
|
13
13
|
}
|
|
14
|
-
|
|
15
|
-
export
|
|
14
|
+
declare const PageHeader: (page: Pageheader) => JSX.Element;
|
|
15
|
+
export default PageHeader;
|