@sinco/react 1.0.10-rc.2 → 1.0.10-rc.20

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 CHANGED
@@ -5458,10 +5458,10 @@ if (!isBrowser$2) {
5458
5458
  };
5459
5459
  }
5460
5460
 
5461
- var ThemeContext = /* #__PURE__ */React.createContext({});
5461
+ var ThemeContext$2 = /* #__PURE__ */React.createContext({});
5462
5462
 
5463
5463
  if (process.env.NODE_ENV !== 'production') {
5464
- ThemeContext.displayName = 'EmotionThemeContext';
5464
+ ThemeContext$2.displayName = 'EmotionThemeContext';
5465
5465
  }
5466
5466
 
5467
5467
  var typePropName = '__EMOTION_TYPE_PLEASE_DO_NOT_USE__';
@@ -5514,7 +5514,7 @@ var Emotion = /* #__PURE__ */withEmotionCache(function (props, cache, ref) {
5514
5514
  className = props.className + " ";
5515
5515
  }
5516
5516
 
5517
- var serialized = serializeStyles(registeredStyles, undefined, React.useContext(ThemeContext));
5517
+ var serialized = serializeStyles(registeredStyles, undefined, React.useContext(ThemeContext$2));
5518
5518
 
5519
5519
  if (process.env.NODE_ENV !== 'production' && serialized.name.indexOf('-') === -1) {
5520
5520
  var labelFromStack = props[labelPropName];
@@ -5693,7 +5693,7 @@ var Global = /* #__PURE__ */withEmotionCache(function (props, cache) {
5693
5693
  }
5694
5694
 
5695
5695
  var styles = props.styles;
5696
- var serialized = serializeStyles([styles], undefined, React.useContext(ThemeContext));
5696
+ var serialized = serializeStyles([styles], undefined, React.useContext(ThemeContext$2));
5697
5697
 
5698
5698
  if (!isBrowser$2) {
5699
5699
  var _ref;
@@ -5939,7 +5939,7 @@ var ClassNames = /* #__PURE__ */withEmotionCache(function (props, cache) {
5939
5939
  var content = {
5940
5940
  css: css,
5941
5941
  cx: cx,
5942
- theme: React.useContext(ThemeContext)
5942
+ theme: React.useContext(ThemeContext$2)
5943
5943
  };
5944
5944
  var ele = props.children(content);
5945
5945
  hasRendered = true;
@@ -6095,7 +6095,7 @@ var createStyled$1 = function createStyled(tag, options) {
6095
6095
  mergedProps[key] = props[key];
6096
6096
  }
6097
6097
 
6098
- mergedProps.theme = React.useContext(ThemeContext);
6098
+ mergedProps.theme = React.useContext(ThemeContext$2);
6099
6099
  }
6100
6100
 
6101
6101
  if (typeof props.className === 'string') {
@@ -6199,7 +6199,7 @@ const internal_processStyles = (tag, processor) => {
6199
6199
  }
6200
6200
  };
6201
6201
 
6202
- const _excluded$p = ["values", "unit", "step"];
6202
+ const _excluded$t = ["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$p);
6237
+ other = _objectWithoutPropertiesLoose(breakpoints, _excluded$t);
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$o = ["breakpoints", "palette", "spacing", "shape"];
7321
+ const _excluded$s = ["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$o);
7329
+ other = _objectWithoutPropertiesLoose(options, _excluded$s);
7330
7330
  const breakpoints = createBreakpoints(breakpointsInput);
7331
7331
  const spacing = createSpacing(spacingInput);
7332
7332
  let muiTheme = deepmerge({
@@ -7354,17 +7354,17 @@ function createTheme$1(options = {}, ...args) {
7354
7354
  function isObjectEmpty(obj) {
7355
7355
  return Object.keys(obj).length === 0;
7356
7356
  }
7357
- function useTheme$2(defaultTheme = null) {
7358
- const contextTheme = React.useContext(ThemeContext);
7357
+ function useTheme$3(defaultTheme = null) {
7358
+ const contextTheme = React.useContext(ThemeContext$2);
7359
7359
  return !contextTheme || isObjectEmpty(contextTheme) ? defaultTheme : contextTheme;
7360
7360
  }
7361
7361
 
7362
7362
  const systemDefaultTheme$1 = createTheme$1();
7363
- function useTheme$1(defaultTheme = systemDefaultTheme$1) {
7364
- return useTheme$2(defaultTheme);
7363
+ function useTheme$2(defaultTheme = systemDefaultTheme$1) {
7364
+ return useTheme$3(defaultTheme);
7365
7365
  }
7366
7366
 
7367
- const _excluded$n = ["sx"];
7367
+ const _excluded$r = ["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$n);
7388
+ other = _objectWithoutPropertiesLoose(props, _excluded$r);
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$m = ["className", "component"];
7414
+ const _excluded$q = ["className", "component"];
7415
7415
  function createBox(options = {}) {
7416
7416
  const {
7417
7417
  themeId,
@@ -7423,13 +7423,13 @@ function createBox(options = {}) {
7423
7423
  shouldForwardProp: prop => prop !== 'theme' && prop !== 'sx' && prop !== 'as'
7424
7424
  })(styleFunctionSx$1);
7425
7425
  const Box = /*#__PURE__*/React.forwardRef(function Box(inProps, ref) {
7426
- const theme = useTheme$1(defaultTheme);
7426
+ const theme = useTheme$2(defaultTheme);
7427
7427
  const _extendSxProp = extendSxProp(inProps),
7428
7428
  {
7429
7429
  className,
7430
7430
  component = 'div'
7431
7431
  } = _extendSxProp,
7432
- other = _objectWithoutPropertiesLoose(_extendSxProp, _excluded$m);
7432
+ other = _objectWithoutPropertiesLoose(_extendSxProp, _excluded$q);
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$l = ["variant"];
7443
+ const _excluded$p = ["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$l);
7457
+ other = _objectWithoutPropertiesLoose(props, _excluded$p);
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$k = ["name", "slot", "skipVariantsResolver", "skipSx", "overridesResolver"];
7469
+ const _excluded$o = ["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$k);
7564
+ options = _objectWithoutPropertiesLoose(inputOptions, _excluded$o);
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;
@@ -7695,7 +7695,7 @@ function useThemeProps$1({
7695
7695
  defaultTheme,
7696
7696
  themeId
7697
7697
  }) {
7698
- let theme = useTheme$1(defaultTheme);
7698
+ let theme = useTheme$2(defaultTheme);
7699
7699
  if (themeId) {
7700
7700
  theme = theme[themeId] || theme;
7701
7701
  }
@@ -7941,7 +7941,157 @@ function lighten(color, coefficient) {
7941
7941
  return recomposeColor(color);
7942
7942
  }
7943
7943
 
7944
- const _excluded$j = ["component", "direction", "spacing", "divider", "children", "className", "useFlexGap"];
7944
+ const ThemeContext = /*#__PURE__*/React.createContext(null);
7945
+ if (process.env.NODE_ENV !== 'production') {
7946
+ ThemeContext.displayName = 'ThemeContext';
7947
+ }
7948
+ var ThemeContext$1 = ThemeContext;
7949
+
7950
+ function useTheme$1() {
7951
+ const theme = React.useContext(ThemeContext$1);
7952
+ if (process.env.NODE_ENV !== 'production') {
7953
+ // eslint-disable-next-line react-hooks/rules-of-hooks
7954
+ React.useDebugValue(theme);
7955
+ }
7956
+ return theme;
7957
+ }
7958
+
7959
+ const hasSymbol = typeof Symbol === 'function' && Symbol.for;
7960
+ var nested = hasSymbol ? Symbol.for('mui.nested') : '__THEME_NESTED__';
7961
+
7962
+ function mergeOuterLocalTheme(outerTheme, localTheme) {
7963
+ if (typeof localTheme === 'function') {
7964
+ const mergedTheme = localTheme(outerTheme);
7965
+ if (process.env.NODE_ENV !== 'production') {
7966
+ if (!mergedTheme) {
7967
+ console.error(['MUI: You should return an object from your theme function, i.e.', '<ThemeProvider theme={() => ({})} />'].join('\n'));
7968
+ }
7969
+ }
7970
+ return mergedTheme;
7971
+ }
7972
+ return {
7973
+ ...outerTheme,
7974
+ ...localTheme
7975
+ };
7976
+ }
7977
+
7978
+ /**
7979
+ * This component takes a `theme` prop.
7980
+ * It makes the `theme` available down the React tree thanks to React context.
7981
+ * This component should preferably be used at **the root of your component tree**.
7982
+ */
7983
+ function ThemeProvider$2(props) {
7984
+ const {
7985
+ children,
7986
+ theme: localTheme
7987
+ } = props;
7988
+ const outerTheme = useTheme$1();
7989
+ if (process.env.NODE_ENV !== 'production') {
7990
+ if (outerTheme === null && typeof localTheme === 'function') {
7991
+ console.error(['MUI: You are providing a theme function prop to the ThemeProvider component:', '<ThemeProvider theme={outerTheme => outerTheme} />', '', 'However, no outer theme is present.', 'Make sure a theme is already injected higher in the React tree ' + 'or provide a theme object.'].join('\n'));
7992
+ }
7993
+ }
7994
+ const theme = React.useMemo(() => {
7995
+ const output = outerTheme === null ? localTheme : mergeOuterLocalTheme(outerTheme, localTheme);
7996
+ if (output != null) {
7997
+ output[nested] = outerTheme !== null;
7998
+ }
7999
+ return output;
8000
+ }, [localTheme, outerTheme]);
8001
+ return /*#__PURE__*/jsx(ThemeContext$1.Provider, {
8002
+ value: theme,
8003
+ children: children
8004
+ });
8005
+ }
8006
+ process.env.NODE_ENV !== "production" ? ThemeProvider$2.propTypes = {
8007
+ /**
8008
+ * Your component tree.
8009
+ */
8010
+ children: PropTypes.node,
8011
+ /**
8012
+ * A theme object. You can provide a function to extend the outer theme.
8013
+ */
8014
+ theme: PropTypes.oneOfType([PropTypes.object, PropTypes.func]).isRequired
8015
+ } : void 0;
8016
+ if (process.env.NODE_ENV !== 'production') {
8017
+ process.env.NODE_ENV !== "production" ? ThemeProvider$2.propTypes = exactProp(ThemeProvider$2.propTypes) : void 0;
8018
+ }
8019
+
8020
+ const EMPTY_THEME = {};
8021
+ function useThemeScoping(themeId, upperTheme, localTheme, isPrivate = false) {
8022
+ return React.useMemo(() => {
8023
+ const resolvedTheme = themeId ? upperTheme[themeId] || upperTheme : upperTheme;
8024
+ if (typeof localTheme === 'function') {
8025
+ const mergedTheme = localTheme(resolvedTheme);
8026
+ const result = themeId ? _extends({}, upperTheme, {
8027
+ [themeId]: mergedTheme
8028
+ }) : mergedTheme;
8029
+ // must return a function for the private theme to NOT merge with the upper theme.
8030
+ // see the test case "use provided theme from a callback" in ThemeProvider.test.js
8031
+ if (isPrivate) {
8032
+ return () => result;
8033
+ }
8034
+ return result;
8035
+ }
8036
+ return themeId ? _extends({}, upperTheme, {
8037
+ [themeId]: localTheme
8038
+ }) : _extends({}, upperTheme, localTheme);
8039
+ }, [themeId, upperTheme, localTheme, isPrivate]);
8040
+ }
8041
+
8042
+ /**
8043
+ * This component makes the `theme` available down the React tree.
8044
+ * It should preferably be used at **the root of your component tree**.
8045
+ *
8046
+ * <ThemeProvider theme={theme}> // existing use case
8047
+ * <ThemeProvider theme={{ id: theme }}> // theme scoping
8048
+ */
8049
+ function ThemeProvider$1(props) {
8050
+ const {
8051
+ children,
8052
+ theme: localTheme,
8053
+ themeId
8054
+ } = props;
8055
+ const upperTheme = useTheme$3(EMPTY_THEME);
8056
+ const upperPrivateTheme = useTheme$1() || EMPTY_THEME;
8057
+ if (process.env.NODE_ENV !== 'production') {
8058
+ if (upperTheme === null && typeof localTheme === 'function' || themeId && upperTheme && !upperTheme[themeId] && typeof localTheme === 'function') {
8059
+ console.error(['MUI: You are providing a theme function prop to the ThemeProvider component:', '<ThemeProvider theme={outerTheme => outerTheme} />', '', 'However, no outer theme is present.', 'Make sure a theme is already injected higher in the React tree ' + 'or provide a theme object.'].join('\n'));
8060
+ }
8061
+ }
8062
+ const engineTheme = useThemeScoping(themeId, upperTheme, localTheme);
8063
+ const privateTheme = useThemeScoping(themeId, upperPrivateTheme, localTheme, true);
8064
+ return /*#__PURE__*/jsx(ThemeProvider$2, {
8065
+ theme: privateTheme,
8066
+ children: /*#__PURE__*/jsx(ThemeContext$2.Provider, {
8067
+ value: engineTheme,
8068
+ children: children
8069
+ })
8070
+ });
8071
+ }
8072
+ process.env.NODE_ENV !== "production" ? ThemeProvider$1.propTypes /* remove-proptypes */ = {
8073
+ // ----------------------------- Warning --------------------------------
8074
+ // | These PropTypes are generated from the TypeScript type definitions |
8075
+ // | To update them edit the d.ts file and run "yarn proptypes" |
8076
+ // ----------------------------------------------------------------------
8077
+ /**
8078
+ * Your component tree.
8079
+ */
8080
+ children: PropTypes.node,
8081
+ /**
8082
+ * A theme object. You can provide a function to extend the outer theme.
8083
+ */
8084
+ theme: PropTypes.oneOfType([PropTypes.func, PropTypes.object]).isRequired,
8085
+ /**
8086
+ * The design system's unique id for getting the corresponded theme when there are multiple design systems.
8087
+ */
8088
+ themeId: PropTypes.string
8089
+ } : void 0;
8090
+ if (process.env.NODE_ENV !== 'production') {
8091
+ process.env.NODE_ENV !== "production" ? ThemeProvider$1.propTypes = exactProp(ThemeProvider$1.propTypes) : void 0;
8092
+ }
8093
+
8094
+ const _excluded$n = ["component", "direction", "spacing", "divider", "children", "className", "useFlexGap"];
7945
8095
  const defaultTheme$3 = createTheme$1();
7946
8096
  // widening Theme to any so that the consumer can own the theme structure.
7947
8097
  const defaultCreateStyledComponent = systemStyled('div', {
@@ -8070,7 +8220,7 @@ function createStack(options = {}) {
8070
8220
  className,
8071
8221
  useFlexGap = false
8072
8222
  } = props,
8073
- other = _objectWithoutPropertiesLoose(props, _excluded$j);
8223
+ other = _objectWithoutPropertiesLoose(props, _excluded$n);
8074
8224
  const ownerState = {
8075
8225
  direction,
8076
8226
  spacing,
@@ -8244,7 +8394,7 @@ const green = {
8244
8394
  };
8245
8395
  var green$1 = green;
8246
8396
 
8247
- const _excluded$i = ["mode", "contrastThreshold", "tonalOffset"];
8397
+ const _excluded$m = ["mode", "contrastThreshold", "tonalOffset"];
8248
8398
  const light = {
8249
8399
  // The colors used to style the text.
8250
8400
  text: {
@@ -8413,7 +8563,7 @@ function createPalette(palette) {
8413
8563
  contrastThreshold = 3,
8414
8564
  tonalOffset = 0.2
8415
8565
  } = palette,
8416
- other = _objectWithoutPropertiesLoose(palette, _excluded$i);
8566
+ other = _objectWithoutPropertiesLoose(palette, _excluded$m);
8417
8567
  const primary = palette.primary || getDefaultPrimary(mode);
8418
8568
  const secondary = palette.secondary || getDefaultSecondary(mode);
8419
8569
  const error = palette.error || getDefaultError(mode);
@@ -8537,7 +8687,7 @@ const theme2 = createTheme({ palette: {
8537
8687
  return paletteOutput;
8538
8688
  }
8539
8689
 
8540
- const _excluded$h = ["fontFamily", "fontSize", "fontWeightLight", "fontWeightRegular", "fontWeightMedium", "fontWeightBold", "htmlFontSize", "allVariants", "pxToRem"];
8690
+ const _excluded$l = ["fontFamily", "fontSize", "fontWeightLight", "fontWeightRegular", "fontWeightMedium", "fontWeightBold", "htmlFontSize", "allVariants", "pxToRem"];
8541
8691
  function round(value) {
8542
8692
  return Math.round(value * 1e5) / 1e5;
8543
8693
  }
@@ -8568,7 +8718,7 @@ function createTypography(palette, typography) {
8568
8718
  allVariants,
8569
8719
  pxToRem: pxToRem2
8570
8720
  } = _ref,
8571
- other = _objectWithoutPropertiesLoose(_ref, _excluded$h);
8721
+ other = _objectWithoutPropertiesLoose(_ref, _excluded$l);
8572
8722
  if (process.env.NODE_ENV !== 'production') {
8573
8723
  if (typeof fontSize !== 'number') {
8574
8724
  console.error('MUI: `fontSize` is required to be a number.');
@@ -8635,7 +8785,7 @@ function createShadow(...px) {
8635
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)];
8636
8786
  var shadows$1 = shadows;
8637
8787
 
8638
- const _excluded$g = ["duration", "easing", "delay"];
8788
+ const _excluded$k = ["duration", "easing", "delay"];
8639
8789
  // Follow https://material.google.com/motion/duration-easing.html#duration-easing-natural-easing-curves
8640
8790
  // to learn the context in which each easing should be used.
8641
8791
  const easing = {
@@ -8686,7 +8836,7 @@ function createTransitions(inputTransitions) {
8686
8836
  easing: easingOption = mergedEasing.easeInOut,
8687
8837
  delay = 0
8688
8838
  } = options,
8689
- other = _objectWithoutPropertiesLoose(options, _excluded$g);
8839
+ other = _objectWithoutPropertiesLoose(options, _excluded$k);
8690
8840
  if (process.env.NODE_ENV !== 'production') {
8691
8841
  const isString = value => typeof value === 'string';
8692
8842
  // IE11 support, replace with Number.isNaN
@@ -8733,7 +8883,7 @@ const zIndex = {
8733
8883
  };
8734
8884
  var zIndex$1 = zIndex;
8735
8885
 
8736
- const _excluded$f = ["breakpoints", "mixins", "spacing", "palette", "transitions", "typography", "shape"];
8886
+ const _excluded$j = ["breakpoints", "mixins", "spacing", "palette", "transitions", "typography", "shape"];
8737
8887
  function createTheme(options = {}, ...args) {
8738
8888
  const {
8739
8889
  mixins: mixinsInput = {},
@@ -8741,7 +8891,7 @@ function createTheme(options = {}, ...args) {
8741
8891
  transitions: transitionsInput = {},
8742
8892
  typography: typographyInput = {}
8743
8893
  } = options,
8744
- other = _objectWithoutPropertiesLoose(options, _excluded$f);
8894
+ other = _objectWithoutPropertiesLoose(options, _excluded$j);
8745
8895
  if (options.vars) {
8746
8896
  throw new Error(process.env.NODE_ENV !== "production" ? `MUI: \`vars\` is a private field used for CSS variables support.
8747
8897
  Please use another name.` : formatMuiErrorMessage(18));
@@ -8803,7 +8953,7 @@ const defaultTheme$1 = createTheme();
8803
8953
  var defaultTheme$2 = defaultTheme$1;
8804
8954
 
8805
8955
  function useTheme() {
8806
- const theme = useTheme$1(defaultTheme$2);
8956
+ const theme = useTheme$2(defaultTheme$2);
8807
8957
  if (process.env.NODE_ENV !== 'production') {
8808
8958
  // eslint-disable-next-line react-hooks/rules-of-hooks
8809
8959
  React.useDebugValue(theme);
@@ -8831,6 +8981,29 @@ const styled = createStyled({
8831
8981
  });
8832
8982
  var styled$1 = styled;
8833
8983
 
8984
+ const _excluded$i = ["theme"];
8985
+ function ThemeProvider(_ref) {
8986
+ let {
8987
+ theme: themeInput
8988
+ } = _ref,
8989
+ props = _objectWithoutPropertiesLoose(_ref, _excluded$i);
8990
+ const scopedTheme = themeInput[THEME_ID];
8991
+ return /*#__PURE__*/jsx(ThemeProvider$1, _extends({}, props, {
8992
+ themeId: scopedTheme ? THEME_ID : undefined,
8993
+ theme: scopedTheme || themeInput
8994
+ }));
8995
+ }
8996
+ process.env.NODE_ENV !== "production" ? ThemeProvider.propTypes = {
8997
+ /**
8998
+ * Your component tree.
8999
+ */
9000
+ children: PropTypes.node,
9001
+ /**
9002
+ * A theme object. You can provide a function to extend the outer theme.
9003
+ */
9004
+ theme: PropTypes.oneOfType([PropTypes.object, PropTypes.func]).isRequired
9005
+ } : void 0;
9006
+
8834
9007
  // Inspired by https://github.com/material-components/material-components-ios/blob/bca36107405594d5b7b16265a5b0ed698f85a5ee/components/Elevation/src/UIColor%2BMaterialElevation.m#L61
8835
9008
  const getOverlayAlpha = elevation => {
8836
9009
  let alphaValue;
@@ -9009,7 +9182,7 @@ function mergeSlotProps(parameters) {
9009
9182
  };
9010
9183
  }
9011
9184
 
9012
- const _excluded$e = ["elementType", "externalSlotProps", "ownerState"];
9185
+ const _excluded$h = ["elementType", "externalSlotProps", "ownerState"];
9013
9186
  /**
9014
9187
  * @ignore - do not document.
9015
9188
  * Builds the props to be passed into the slot of an unstyled component.
@@ -9025,7 +9198,7 @@ function useSlotProps(parameters) {
9025
9198
  externalSlotProps,
9026
9199
  ownerState
9027
9200
  } = parameters,
9028
- rest = _objectWithoutPropertiesLoose(parameters, _excluded$e);
9201
+ rest = _objectWithoutPropertiesLoose(parameters, _excluded$h);
9029
9202
  const resolvedComponentsProps = resolveComponentProps(externalSlotProps, ownerState);
9030
9203
  const {
9031
9204
  props: mergedProps,
@@ -9663,8 +9836,8 @@ function getModalUtilityClass(slot) {
9663
9836
  }
9664
9837
  generateUtilityClasses('MuiModal', ['root', 'hidden', 'backdrop']);
9665
9838
 
9666
- const _excluded$d = ["children", "closeAfterTransition", "container", "disableAutoFocus", "disableEnforceFocus", "disableEscapeKeyDown", "disablePortal", "disableRestoreFocus", "disableScrollLock", "hideBackdrop", "keepMounted", "manager", "onBackdropClick", "onClose", "onKeyDown", "open", "onTransitionEnter", "onTransitionExited", "slotProps", "slots"];
9667
- const useUtilityClasses$9 = ownerState => {
9839
+ const _excluded$g = ["children", "closeAfterTransition", "container", "disableAutoFocus", "disableEnforceFocus", "disableEscapeKeyDown", "disablePortal", "disableRestoreFocus", "disableScrollLock", "hideBackdrop", "keepMounted", "manager", "onBackdropClick", "onClose", "onKeyDown", "open", "onTransitionEnter", "onTransitionExited", "slotProps", "slots"];
9840
+ const useUtilityClasses$c = ownerState => {
9668
9841
  const {
9669
9842
  open,
9670
9843
  exited
@@ -9732,7 +9905,7 @@ const Modal$2 = /*#__PURE__*/React.forwardRef(function Modal(props, forwardedRef
9732
9905
  slotProps = {},
9733
9906
  slots = {}
9734
9907
  } = props,
9735
- other = _objectWithoutPropertiesLoose(props, _excluded$d);
9908
+ other = _objectWithoutPropertiesLoose(props, _excluded$g);
9736
9909
  // TODO: `modal`` must change its type in this file to match the type of methods
9737
9910
  // provided by `ModalManager`
9738
9911
  const manager = managerProp;
@@ -9807,7 +9980,7 @@ const Modal$2 = /*#__PURE__*/React.forwardRef(function Modal(props, forwardedRef
9807
9980
  hideBackdrop,
9808
9981
  keepMounted
9809
9982
  });
9810
- const classes = useUtilityClasses$9(ownerState);
9983
+ const classes = useUtilityClasses$c(ownerState);
9811
9984
  const handleEnter = () => {
9812
9985
  setExited(false);
9813
9986
  if (onTransitionEnter) {
@@ -10027,8 +10200,8 @@ function getSvgIconUtilityClass(slot) {
10027
10200
  }
10028
10201
  generateUtilityClasses('MuiSvgIcon', ['root', 'colorPrimary', 'colorSecondary', 'colorAction', 'colorError', 'colorDisabled', 'fontSizeInherit', 'fontSizeSmall', 'fontSizeMedium', 'fontSizeLarge']);
10029
10202
 
10030
- const _excluded$c = ["children", "className", "color", "component", "fontSize", "htmlColor", "inheritViewBox", "titleAccess", "viewBox"];
10031
- const useUtilityClasses$8 = ownerState => {
10203
+ const _excluded$f = ["children", "className", "color", "component", "fontSize", "htmlColor", "inheritViewBox", "titleAccess", "viewBox"];
10204
+ const useUtilityClasses$b = ownerState => {
10032
10205
  const {
10033
10206
  color,
10034
10207
  fontSize,
@@ -10093,7 +10266,7 @@ const SvgIcon = /*#__PURE__*/React.forwardRef(function SvgIcon(inProps, ref) {
10093
10266
  titleAccess,
10094
10267
  viewBox = '0 0 24 24'
10095
10268
  } = props,
10096
- other = _objectWithoutPropertiesLoose(props, _excluded$c);
10269
+ other = _objectWithoutPropertiesLoose(props, _excluded$f);
10097
10270
  const ownerState = _extends({}, props, {
10098
10271
  color,
10099
10272
  component,
@@ -10106,7 +10279,7 @@ const SvgIcon = /*#__PURE__*/React.forwardRef(function SvgIcon(inProps, ref) {
10106
10279
  if (!inheritViewBox) {
10107
10280
  more.viewBox = viewBox;
10108
10281
  }
10109
- const classes = useUtilityClasses$8(ownerState);
10282
+ const classes = useUtilityClasses$b(ownerState);
10110
10283
  return /*#__PURE__*/jsxs(SvgIconRoot, _extends({
10111
10284
  as: component,
10112
10285
  className: clsx(classes.root, className),
@@ -10248,10 +10421,22 @@ var utils = /*#__PURE__*/Object.freeze({
10248
10421
  useIsFocusVisible: useIsFocusVisible
10249
10422
  });
10250
10423
 
10424
+ var ArrowDownward = createSvgIcon$1( /*#__PURE__*/jsx("path", {
10425
+ d: "m20 12-1.41-1.41L13 16.17V4h-2v12.17l-5.58-5.59L4 12l8 8 8-8z"
10426
+ }), 'ArrowDownward');
10427
+
10428
+ var ArrowUpward = createSvgIcon$1( /*#__PURE__*/jsx("path", {
10429
+ d: "m4 12 1.41 1.41L11 7.83V20h2V7.83l5.58 5.59L20 12l-8-8-8 8z"
10430
+ }), 'ArrowUpward');
10431
+
10251
10432
  var CheckCircleRounded = createSvgIcon$1( /*#__PURE__*/jsx("path", {
10252
10433
  d: "M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zM9.29 16.29 5.7 12.7a.9959.9959 0 0 1 0-1.41c.39-.39 1.02-.39 1.41 0L10 14.17l6.88-6.88c.39-.39 1.02-.39 1.41 0 .39.39.39 1.02 0 1.41l-7.59 7.59c-.38.39-1.02.39-1.41 0z"
10253
10434
  }), 'CheckCircleRounded');
10254
10435
 
10436
+ var Close$1 = createSvgIcon$1( /*#__PURE__*/jsx("path", {
10437
+ d: "M19 6.41 17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"
10438
+ }), 'Close');
10439
+
10255
10440
  var ErrorRounded = createSvgIcon$1( /*#__PURE__*/jsx("path", {
10256
10441
  d: "M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 11c-.55 0-1-.45-1-1V8c0-.55.45-1 1-1s1 .45 1 1v4c0 .55-.45 1-1 1zm1 4h-2v-2h2v2z"
10257
10442
  }), 'ErrorRounded');
@@ -10399,13 +10584,64 @@ const components = {
10399
10584
  }
10400
10585
  }
10401
10586
  },
10402
- MuiChip: {
10587
+ MuiCheckbox: {
10588
+ variants: [{
10589
+ props: {
10590
+ size: "xsmall"
10591
+ },
10592
+ style: {
10593
+ padding: 2
10594
+ }
10595
+ }, {
10596
+ props: {
10597
+ size: "small"
10598
+ },
10599
+ style: {
10600
+ padding: 4
10601
+ }
10602
+ }, {
10603
+ props: {
10604
+ size: "medium"
10605
+ },
10606
+ style: {
10607
+ padding: 11
10608
+ }
10609
+ }],
10403
10610
  defaultProps: {
10404
- size: 'small'
10405
- },
10611
+ size: "small"
10612
+ }
10613
+ },
10614
+ MuiChip: {
10615
+ variants: [{
10616
+ props: {
10617
+ size: "xsmall"
10618
+ },
10619
+ style: {
10620
+ height: 16
10621
+ }
10622
+ }],
10406
10623
  styleOverrides: {
10624
+ sizeSmall: {
10625
+ height: 24
10626
+ },
10627
+ sizeMedium: {
10628
+ height: 30
10629
+ },
10407
10630
  root: {
10408
- borderRadius: 4
10631
+ height: "inherit",
10632
+ borderRadius: 4,
10633
+ ".MuiChip-deleteIconXsmall": {
10634
+ height: 12,
10635
+ width: 12
10636
+ },
10637
+ ".MuiChip-deleteIconSmall": {
10638
+ height: 16,
10639
+ widht: 16
10640
+ },
10641
+ ".MuiChip-deleteIconMedium": {
10642
+ height: 20,
10643
+ widht: 20
10644
+ }
10409
10645
  }
10410
10646
  }
10411
10647
  },
@@ -10428,25 +10664,39 @@ const components = {
10428
10664
  }
10429
10665
  },
10430
10666
  MuiButton: {
10431
- defaultProps: {
10432
- size: 'medium'
10433
- },
10434
10667
  styleOverrides: {
10435
- fullWidth: {
10436
- width: '100%'
10668
+ endIcon: {
10669
+ marginLeft: 2
10670
+ },
10671
+ iconSizeSmall: {
10672
+ height: 14,
10673
+ width: 14
10674
+ },
10675
+ iconSizeMedium: {
10676
+ height: 18,
10677
+ width: 18
10678
+ },
10679
+ iconSizeLarge: {
10680
+ height: 18,
10681
+ width: 22
10437
10682
  },
10438
10683
  sizeSmall: {
10439
- padding: '4px 10px'
10684
+ height: 26
10440
10685
  },
10441
10686
  sizeMedium: {
10442
- padding: '7.5px 15px'
10687
+ height: 32,
10688
+ ".MuiSvgIcon-fontSizeMedium": {
10689
+ height: 18,
10690
+ width: 18
10691
+ }
10443
10692
  },
10444
10693
  sizeLarge: {
10445
- padding: '10.5px 22px',
10446
- fontSize: 14
10447
- },
10448
- root: {
10449
- width: "fit-content"
10694
+ height: 38,
10695
+ fontSize: 14,
10696
+ ".MuiSvgIcon-fontSizeLarge": {
10697
+ height: 20,
10698
+ width: 20
10699
+ }
10450
10700
  }
10451
10701
  }
10452
10702
  },
@@ -10455,11 +10705,6 @@ const components = {
10455
10705
  size: "small"
10456
10706
  }
10457
10707
  },
10458
- MuiCheckbox: {
10459
- defaultProps: {
10460
- size: "small"
10461
- }
10462
- },
10463
10708
  MuiFab: {
10464
10709
  defaultProps: {
10465
10710
  size: "small"
@@ -10667,6 +10912,21 @@ const components = {
10667
10912
  }
10668
10913
  },
10669
10914
  MuiRadio: {
10915
+ variants: [{
10916
+ props: {
10917
+ size: "small"
10918
+ },
10919
+ style: {
10920
+ padding: 2
10921
+ }
10922
+ }, {
10923
+ props: {
10924
+ size: "medium"
10925
+ },
10926
+ style: {
10927
+ padding: 9
10928
+ }
10929
+ }],
10670
10930
  defaultProps: {
10671
10931
  size: "small"
10672
10932
  }
@@ -10701,44 +10961,105 @@ const components = {
10701
10961
 
10702
10962
  const palette = {
10703
10963
  primary: {
10704
- main: "#1e62a1",
10705
- light: "#5a8fd3",
10706
- dark: "#003972",
10964
+ 50: "#E4ECF4",
10965
+ 100: "#BCD0E3",
10966
+ 200: "#8FB1D0",
10967
+ 300: "#6392BD",
10968
+ light: "417AAE",
10969
+ main: "#2063A0",
10970
+ 600: "#1C5B98",
10971
+ 700: "#18518E",
10972
+ 800: "#134784",
10973
+ dark: "#0B3573",
10974
+ A100: "#A5C5FF",
10975
+ A200: "#72A4FF",
10976
+ A400: "#3F83FF",
10977
+ A700: "#2572FF",
10707
10978
  contrastText: "#ffffff"
10708
10979
  },
10709
10980
  secondary: {
10710
- main: "#0CBBE2",
10711
- light: "#67eeff",
10712
- dark: "#008bb0",
10981
+ 50: "#E0F7FA",
10982
+ 100: "#B3EBF2",
10983
+ 200: "#80DEEA",
10984
+ 300: "#4DD0E1",
10985
+ light: "#26C6DA",
10986
+ main: "#00BCD4",
10987
+ 600: "#00B6CF",
10988
+ 700: "#00ADC9",
10989
+ 800: "#00A5C3",
10990
+ dark: "#0097B9",
10991
+ A100: "#E2F9FF",
10992
+ A200: "#AFEEFF",
10993
+ A400: "#7CE3FF",
10994
+ A700: "#63DDFF",
10713
10995
  contrastText: "#ffffff"
10714
10996
  },
10715
- text: {
10716
- primary: "#101840de",
10717
- secondary: "#10184099",
10718
- disabled: "#10184061"
10719
- },
10720
10997
  error: {
10998
+ 50: "#F9E8E8",
10999
+ 100: "#F1C7C7",
11000
+ 200: "#E8A1A1",
11001
+ 300: "#DF7B7B",
11002
+ light: "#D85F5F",
10721
11003
  main: "#D14343",
10722
- light: "#d85f5f",
10723
- dark: "#b51e1e",
11004
+ 600: "#CC3D3D",
11005
+ 700: "#C63434",
11006
+ 800: "#C02C2C",
11007
+ dark: "#B51E1E",
11008
+ A100: "#FFECEC",
11009
+ A200: "#FFB9B9",
11010
+ A400: "#FF8686",
11011
+ A700: "#FF6D6D",
10724
11012
  contrastText: "#ffffff"
10725
11013
  },
10726
11014
  warning: {
10727
- main: "#fb8500",
10728
- light: "#fc9726",
10729
- dark: "#f85500",
11015
+ 50: "#FFF0E0",
11016
+ 100: "#FEDAB3",
11017
+ 200: "#FDC280",
11018
+ 300: "#FCAA4D",
11019
+ light: "#FC9726",
11020
+ main: "#FB8500",
11021
+ 600: "#FA7D00",
11022
+ 700: "#FA7200",
11023
+ 800: "#F96800",
11024
+ dark: "#F85500",
11025
+ A100: "#FFFFFF",
11026
+ A200: "#FFF1EB",
11027
+ A400: "#FFCCB8",
11028
+ A700: "#FFBA9F",
10730
11029
  contrastText: "#ffffff"
10731
11030
  },
10732
11031
  info: {
10733
- main: "#2d9fc5",
10734
- light: "#4dadce",
10735
- dark: "#1172a3",
11032
+ 50: "#E6F3F8",
11033
+ 100: "#C0E2EE",
11034
+ 200: "#96CFE2",
11035
+ 300: "#6CBCD6",
11036
+ light: "#4DADCE",
11037
+ main: "#2D9FC5",
11038
+ 600: "#2897BF",
11039
+ 700: "#228DB8",
11040
+ 800: "#1C83B0",
11041
+ dark: "#1172A3",
11042
+ A100: "#D4EFFF",
11043
+ A200: "#A1DCFF",
11044
+ A400: "#6ECAFF",
11045
+ A700: "#54C1FF",
10736
11046
  contrastText: "#ffffff"
10737
11047
  },
10738
11048
  success: {
10739
- main: "#8fc93a",
10740
- dark: "#60a918",
10741
- light: "#a0d158",
11049
+ 50: "#F2F9E7",
11050
+ 100: "#DDEFC4",
11051
+ 200: "#C7E49D",
11052
+ 300: "#B1D975",
11053
+ light: "#A0D158",
11054
+ main: "#8FC93A",
11055
+ 600: "#87C334",
11056
+ 700: "#7CBC2C",
11057
+ 800: "#72B525",
11058
+ dark: "#60A918",
11059
+ A100: "#EDFFDE",
11060
+ A200: "#D2FFAB",
11061
+ A400: "#B6FF78",
11062
+ A700: "#A9FF5E",
10742
11063
  contrastText: "#ffffff"
10743
11064
  },
10744
11065
  grey: {
@@ -10757,6 +11078,11 @@ const palette = {
10757
11078
  A400: "#696F8C",
10758
11079
  A700: "#101840"
10759
11080
  },
11081
+ text: {
11082
+ primary: "#101840de",
11083
+ secondary: "#10184099",
11084
+ disabled: "#10184061"
11085
+ },
10760
11086
  action: {
10761
11087
  active: "rgba(16, 24, 64, 0.54)",
10762
11088
  hover: "rgba(16, 24, 64, 0.04)",
@@ -10797,8 +11123,18 @@ const mixins = {
10797
11123
 
10798
11124
  const typography = {
10799
11125
  fontSize: 13,
11126
+ body3: {
11127
+ fontFamily: 'Roboto',
11128
+ fontWeight: 310,
11129
+ fontSize: 12,
11130
+ letterSpacing: 0.17,
11131
+ lineHeight: 1.2,
11132
+ [breakpoints.down('md')]: {
11133
+ fontSize: 11
11134
+ }
11135
+ },
10800
11136
  body1: {
10801
- fontFamily: "Roboto",
11137
+ fontFamily: 'Roboto',
10802
11138
  fontSize: 14,
10803
11139
  fontWeight: 400,
10804
11140
  letterSpacing: 0.15,
@@ -10808,7 +11144,7 @@ const typography = {
10808
11144
  }
10809
11145
  },
10810
11146
  body2: {
10811
- fontFamily: "Roboto",
11147
+ fontFamily: 'Roboto',
10812
11148
  fontSize: 13,
10813
11149
  fontWeight: 400,
10814
11150
  letterSpacing: 0.17,
@@ -10818,7 +11154,7 @@ const typography = {
10818
11154
  }
10819
11155
  },
10820
11156
  subtitle1: {
10821
- fontFamily: "Roboto",
11157
+ fontFamily: 'Roboto',
10822
11158
  fontSize: 14,
10823
11159
  fontWeight: 500,
10824
11160
  letterSpacing: 0.15,
@@ -10828,7 +11164,7 @@ const typography = {
10828
11164
  }
10829
11165
  },
10830
11166
  subtitle2: {
10831
- fontFamily: "Roboto",
11167
+ fontFamily: 'Roboto',
10832
11168
  fontSize: 13,
10833
11169
  fontWeight: 500,
10834
11170
  letterSpacing: 0.1,
@@ -10838,7 +11174,7 @@ const typography = {
10838
11174
  }
10839
11175
  },
10840
11176
  caption: {
10841
- fontFamily: "Roboto",
11177
+ fontFamily: 'Roboto',
10842
11178
  fontSize: 11,
10843
11179
  fontWeight: 400,
10844
11180
  letterSpacing: 0.4,
@@ -10848,7 +11184,7 @@ const typography = {
10848
11184
  }
10849
11185
  },
10850
11186
  overline: {
10851
- fontFamily: "Roboto",
11187
+ fontFamily: 'Roboto',
10852
11188
  fontSize: 11,
10853
11189
  fontWeight: 400,
10854
11190
  letterSpacing: 1,
@@ -10858,7 +11194,7 @@ const typography = {
10858
11194
  }
10859
11195
  },
10860
11196
  h6: {
10861
- fontFamily: "Nunito",
11197
+ fontFamily: 'Nunito',
10862
11198
  fontSize: 16,
10863
11199
  fontWeight: 600,
10864
11200
  lineHeight: 1.6,
@@ -10867,44 +11203,44 @@ const typography = {
10867
11203
  }
10868
11204
  },
10869
11205
  h5: {
10870
- fontFamily: "Nunito",
11206
+ fontFamily: 'Nunito',
10871
11207
  fontSize: 18,
10872
11208
  fontWeight: 600,
10873
11209
  lineHeight: 1.8
10874
11210
  },
10875
11211
  h4: {
10876
- fontFamily: "Nunito",
11212
+ fontFamily: 'Nunito',
10877
11213
  fontSize: 20,
10878
11214
  fontWeight: 600,
10879
11215
  letterSpacing: 0.25,
10880
11216
  lineHeight: 1
10881
11217
  },
10882
11218
  h3: {
10883
- fontFamily: "Nunito",
11219
+ fontFamily: 'Nunito',
10884
11220
  fontSize: 28,
10885
11221
  fontWeight: 500,
10886
11222
  lineHeight: 1.2
10887
11223
  },
10888
11224
  h2: {
10889
- fontFamily: "Nunito",
11225
+ fontFamily: 'Nunito',
10890
11226
  fontSize: 32,
10891
11227
  fontWeight: 400,
10892
11228
  letterSpacing: -0.5,
10893
11229
  lineHeight: 1.2
10894
11230
  },
10895
11231
  h1: {
10896
- fontFamily: "Nunito",
11232
+ fontFamily: 'Nunito',
10897
11233
  fontSize: 40,
10898
11234
  fontWeight: 300,
10899
11235
  letterSpacing: -1.5,
10900
11236
  lineHeight: 1.4
10901
11237
  },
10902
11238
  button: {
10903
- fontFamily: "Roboto",
10904
- textTransform: "unset",
11239
+ fontFamily: 'Roboto',
11240
+ textTransform: 'unset',
10905
11241
  fontWeightLight: 300,
10906
11242
  fontSize: 13,
10907
- lineHeight: "normal",
11243
+ lineHeight: 'normal',
10908
11244
  '@media(max-width: 885px)': {
10909
11245
  fontSize: 14
10910
11246
  }
@@ -10920,20 +11256,7 @@ const themeOptions = {
10920
11256
  breakpoints
10921
11257
  };
10922
11258
 
10923
- const SincoTheme = createTheme(Object.assign({}, themeOptions, {
10924
- typography: {
10925
- body3: {
10926
- fontFamily: "Roboto",
10927
- fontWeight: 310,
10928
- fontSize: 12,
10929
- letterSpacing: 0.17,
10930
- lineHeight: 1.2,
10931
- [breakpoints.down("md")]: {
10932
- fontSize: 11
10933
- }
10934
- }
10935
- }
10936
- }));
11259
+ const SincoTheme = createTheme(Object.assign({}, themeOptions));
10937
11260
 
10938
11261
  var wellKnownSymbol$d = wellKnownSymbol$f;
10939
11262
 
@@ -12451,8 +12774,8 @@ function getPaperUtilityClass(slot) {
12451
12774
  }
12452
12775
  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']);
12453
12776
 
12454
- const _excluded$b = ["className", "component", "elevation", "square", "variant"];
12455
- const useUtilityClasses$7 = ownerState => {
12777
+ const _excluded$e = ["className", "component", "elevation", "square", "variant"];
12778
+ const useUtilityClasses$a = ownerState => {
12456
12779
  const {
12457
12780
  square,
12458
12781
  elevation,
@@ -12506,14 +12829,14 @@ const Paper = /*#__PURE__*/React.forwardRef(function Paper(inProps, ref) {
12506
12829
  square = false,
12507
12830
  variant = 'elevation'
12508
12831
  } = props,
12509
- other = _objectWithoutPropertiesLoose(props, _excluded$b);
12832
+ other = _objectWithoutPropertiesLoose(props, _excluded$e);
12510
12833
  const ownerState = _extends({}, props, {
12511
12834
  component,
12512
12835
  elevation,
12513
12836
  square,
12514
12837
  variant
12515
12838
  });
12516
- const classes = useUtilityClasses$7(ownerState);
12839
+ const classes = useUtilityClasses$a(ownerState);
12517
12840
  if (process.env.NODE_ENV !== 'production') {
12518
12841
  // eslint-disable-next-line react-hooks/rules-of-hooks
12519
12842
  const theme = useTheme();
@@ -12664,15 +12987,15 @@ process.env.NODE_ENV !== "production" ? Ripple.propTypes = {
12664
12987
  const touchRippleClasses = generateUtilityClasses('MuiTouchRipple', ['root', 'ripple', 'rippleVisible', 'ripplePulsate', 'child', 'childLeaving', 'childPulsate']);
12665
12988
  var touchRippleClasses$1 = touchRippleClasses;
12666
12989
 
12667
- const _excluded$a = ["center", "classes", "className"];
12668
- let _ = t => t,
12669
- _t,
12670
- _t2,
12671
- _t3,
12672
- _t4;
12990
+ const _excluded$d = ["center", "classes", "className"];
12991
+ let _$1 = t => t,
12992
+ _t$1,
12993
+ _t2$1,
12994
+ _t3$1,
12995
+ _t4$1;
12673
12996
  const DURATION = 550;
12674
12997
  const DELAY_RIPPLE = 80;
12675
- const enterKeyframe = keyframes(_t || (_t = _`
12998
+ const enterKeyframe = keyframes(_t$1 || (_t$1 = _$1`
12676
12999
  0% {
12677
13000
  transform: scale(0);
12678
13001
  opacity: 0.1;
@@ -12683,7 +13006,7 @@ const enterKeyframe = keyframes(_t || (_t = _`
12683
13006
  opacity: 0.3;
12684
13007
  }
12685
13008
  `));
12686
- const exitKeyframe = keyframes(_t2 || (_t2 = _`
13009
+ const exitKeyframe = keyframes(_t2$1 || (_t2$1 = _$1`
12687
13010
  0% {
12688
13011
  opacity: 1;
12689
13012
  }
@@ -12692,7 +13015,7 @@ const exitKeyframe = keyframes(_t2 || (_t2 = _`
12692
13015
  opacity: 0;
12693
13016
  }
12694
13017
  `));
12695
- const pulsateKeyframe = keyframes(_t3 || (_t3 = _`
13018
+ const pulsateKeyframe = keyframes(_t3$1 || (_t3$1 = _$1`
12696
13019
  0% {
12697
13020
  transform: scale(1);
12698
13021
  }
@@ -12725,7 +13048,7 @@ const TouchRippleRoot = styled$1('span', {
12725
13048
  const TouchRippleRipple = styled$1(Ripple, {
12726
13049
  name: 'MuiTouchRipple',
12727
13050
  slot: 'Ripple'
12728
- })(_t4 || (_t4 = _`
13051
+ })(_t4$1 || (_t4$1 = _$1`
12729
13052
  opacity: 0;
12730
13053
  position: absolute;
12731
13054
 
@@ -12793,7 +13116,7 @@ const TouchRipple = /*#__PURE__*/React.forwardRef(function TouchRipple(inProps,
12793
13116
  classes = {},
12794
13117
  className
12795
13118
  } = props,
12796
- other = _objectWithoutPropertiesLoose(props, _excluded$a);
13119
+ other = _objectWithoutPropertiesLoose(props, _excluded$d);
12797
13120
  const [ripples, setRipples] = React.useState([]);
12798
13121
  const nextKey = React.useRef(0);
12799
13122
  const rippleCallback = React.useRef(null);
@@ -12994,8 +13317,8 @@ function getButtonBaseUtilityClass(slot) {
12994
13317
  const buttonBaseClasses = generateUtilityClasses('MuiButtonBase', ['root', 'disabled', 'focusVisible']);
12995
13318
  var buttonBaseClasses$1 = buttonBaseClasses;
12996
13319
 
12997
- const _excluded$9 = ["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"];
12998
- const useUtilityClasses$6 = ownerState => {
13320
+ const _excluded$c = ["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"];
13321
+ const useUtilityClasses$9 = ownerState => {
12999
13322
  const {
13000
13323
  disabled,
13001
13324
  focusVisible,
@@ -13096,7 +13419,7 @@ const ButtonBase = /*#__PURE__*/React.forwardRef(function ButtonBase(inProps, re
13096
13419
  touchRippleRef,
13097
13420
  type
13098
13421
  } = props,
13099
- other = _objectWithoutPropertiesLoose(props, _excluded$9);
13422
+ other = _objectWithoutPropertiesLoose(props, _excluded$c);
13100
13423
  const buttonRef = React.useRef(null);
13101
13424
  const rippleRef = React.useRef(null);
13102
13425
  const handleRippleRef = useForkRef(rippleRef, touchRippleRef);
@@ -13263,7 +13586,7 @@ const ButtonBase = /*#__PURE__*/React.forwardRef(function ButtonBase(inProps, re
13263
13586
  tabIndex,
13264
13587
  focusVisible
13265
13588
  });
13266
- const classes = useUtilityClasses$6(ownerState);
13589
+ const classes = useUtilityClasses$9(ownerState);
13267
13590
  return /*#__PURE__*/jsxs(ButtonBaseRoot, _extends({
13268
13591
  as: ComponentProp,
13269
13592
  className: clsx(classes.root, className),
@@ -13460,8 +13783,8 @@ function getIconButtonUtilityClass(slot) {
13460
13783
  const iconButtonClasses = generateUtilityClasses('MuiIconButton', ['root', 'disabled', 'colorInherit', 'colorPrimary', 'colorSecondary', 'colorError', 'colorInfo', 'colorSuccess', 'colorWarning', 'edgeStart', 'edgeEnd', 'sizeSmall', 'sizeMedium', 'sizeLarge']);
13461
13784
  var iconButtonClasses$1 = iconButtonClasses;
13462
13785
 
13463
- const _excluded$8 = ["edge", "children", "className", "color", "disabled", "disableFocusRipple", "size"];
13464
- const useUtilityClasses$5 = ownerState => {
13786
+ const _excluded$b = ["edge", "children", "className", "color", "disabled", "disableFocusRipple", "size"];
13787
+ const useUtilityClasses$8 = ownerState => {
13465
13788
  const {
13466
13789
  classes,
13467
13790
  disabled,
@@ -13561,7 +13884,7 @@ const IconButton = /*#__PURE__*/React.forwardRef(function IconButton(inProps, re
13561
13884
  disableFocusRipple = false,
13562
13885
  size = 'medium'
13563
13886
  } = props,
13564
- other = _objectWithoutPropertiesLoose(props, _excluded$8);
13887
+ other = _objectWithoutPropertiesLoose(props, _excluded$b);
13565
13888
  const ownerState = _extends({}, props, {
13566
13889
  edge,
13567
13890
  color,
@@ -13569,7 +13892,7 @@ const IconButton = /*#__PURE__*/React.forwardRef(function IconButton(inProps, re
13569
13892
  disableFocusRipple,
13570
13893
  size
13571
13894
  });
13572
- const classes = useUtilityClasses$5(ownerState);
13895
+ const classes = useUtilityClasses$8(ownerState);
13573
13896
  return /*#__PURE__*/jsx(IconButtonRoot, _extends({
13574
13897
  className: clsx(classes.root, className),
13575
13898
  centerRipple: true,
@@ -13655,8 +13978,8 @@ function getTypographyUtilityClass(slot) {
13655
13978
  }
13656
13979
  generateUtilityClasses('MuiTypography', ['root', 'h1', 'h2', 'h3', 'h4', 'h5', 'h6', 'subtitle1', 'subtitle2', 'body1', 'body2', 'inherit', 'button', 'caption', 'overline', 'alignLeft', 'alignRight', 'alignCenter', 'alignJustify', 'noWrap', 'gutterBottom', 'paragraph']);
13657
13980
 
13658
- const _excluded$7 = ["align", "className", "component", "gutterBottom", "noWrap", "paragraph", "variant", "variantMapping"];
13659
- const useUtilityClasses$4 = ownerState => {
13981
+ const _excluded$a = ["align", "className", "component", "gutterBottom", "noWrap", "paragraph", "variant", "variantMapping"];
13982
+ const useUtilityClasses$7 = ownerState => {
13660
13983
  const {
13661
13984
  align,
13662
13985
  gutterBottom,
@@ -13739,7 +14062,7 @@ const Typography = /*#__PURE__*/React.forwardRef(function Typography(inProps, re
13739
14062
  variant = 'body1',
13740
14063
  variantMapping = defaultVariantMapping
13741
14064
  } = props,
13742
- other = _objectWithoutPropertiesLoose(props, _excluded$7);
14065
+ other = _objectWithoutPropertiesLoose(props, _excluded$a);
13743
14066
  const ownerState = _extends({}, props, {
13744
14067
  align,
13745
14068
  color,
@@ -13752,7 +14075,7 @@ const Typography = /*#__PURE__*/React.forwardRef(function Typography(inProps, re
13752
14075
  variantMapping
13753
14076
  });
13754
14077
  const Component = component || (paragraph ? 'p' : variantMapping[variant] || defaultVariantMapping[variant]) || 'span';
13755
- const classes = useUtilityClasses$4(ownerState);
14078
+ const classes = useUtilityClasses$7(ownerState);
13756
14079
  return /*#__PURE__*/jsx(TypographyRoot, _extends({
13757
14080
  as: Component,
13758
14081
  ref: ref,
@@ -13837,7 +14160,7 @@ process.env.NODE_ENV !== "production" ? Typography.propTypes /* remove-proptypes
13837
14160
  } : void 0;
13838
14161
  var Typography$1 = Typography;
13839
14162
 
13840
- const _excluded$6 = ["addEndListener", "appear", "children", "easing", "in", "onEnter", "onEntered", "onEntering", "onExit", "onExited", "onExiting", "style", "timeout", "TransitionComponent"];
14163
+ const _excluded$9 = ["addEndListener", "appear", "children", "easing", "in", "onEnter", "onEntered", "onEntering", "onExit", "onExited", "onExiting", "style", "timeout", "TransitionComponent"];
13841
14164
  const styles = {
13842
14165
  entering: {
13843
14166
  opacity: 1
@@ -13874,7 +14197,7 @@ const Fade = /*#__PURE__*/React.forwardRef(function Fade(props, ref) {
13874
14197
  // eslint-disable-next-line react/prop-types
13875
14198
  TransitionComponent = Transition$1
13876
14199
  } = props,
13877
- other = _objectWithoutPropertiesLoose(props, _excluded$6);
14200
+ other = _objectWithoutPropertiesLoose(props, _excluded$9);
13878
14201
  const nodeRef = React.useRef(null);
13879
14202
  const handleRef = useForkRef(nodeRef, children.ref, ref);
13880
14203
  const normalizedTransitionCallback = callback => maybeIsAppearing => {
@@ -14035,8 +14358,8 @@ function getBackdropUtilityClass(slot) {
14035
14358
  }
14036
14359
  generateUtilityClasses('MuiBackdrop', ['root', 'invisible']);
14037
14360
 
14038
- const _excluded$5 = ["children", "className", "component", "components", "componentsProps", "invisible", "open", "slotProps", "slots", "TransitionComponent", "transitionDuration"];
14039
- const useUtilityClasses$3 = ownerState => {
14361
+ const _excluded$8 = ["children", "className", "component", "components", "componentsProps", "invisible", "open", "slotProps", "slots", "TransitionComponent", "transitionDuration"];
14362
+ const useUtilityClasses$6 = ownerState => {
14040
14363
  const {
14041
14364
  classes,
14042
14365
  invisible
@@ -14090,12 +14413,12 @@ const Backdrop = /*#__PURE__*/React.forwardRef(function Backdrop(inProps, ref) {
14090
14413
  TransitionComponent = Fade$1,
14091
14414
  transitionDuration
14092
14415
  } = props,
14093
- other = _objectWithoutPropertiesLoose(props, _excluded$5);
14416
+ other = _objectWithoutPropertiesLoose(props, _excluded$8);
14094
14417
  const ownerState = _extends({}, props, {
14095
14418
  component,
14096
14419
  invisible
14097
14420
  });
14098
- const classes = useUtilityClasses$3(ownerState);
14421
+ const classes = useUtilityClasses$6(ownerState);
14099
14422
  const rootSlotProps = (_slotProps$root = slotProps.root) != null ? _slotProps$root : componentsProps.root;
14100
14423
  return /*#__PURE__*/jsx(TransitionComponent, _extends({
14101
14424
  in: open,
@@ -14239,56 +14562,430 @@ process.env.NODE_ENV !== "production" ? Box$1.propTypes /* remove-proptypes */ =
14239
14562
  } : void 0;
14240
14563
  var Box$2 = Box$1;
14241
14564
 
14242
- function getCardUtilityClass(slot) {
14243
- return generateUtilityClass('MuiCard', slot);
14565
+ function getButtonUtilityClass(slot) {
14566
+ return generateUtilityClass('MuiButton', slot);
14244
14567
  }
14245
- generateUtilityClasses('MuiCard', ['root']);
14568
+ const buttonClasses = generateUtilityClasses('MuiButton', ['root', 'text', 'textInherit', 'textPrimary', 'textSecondary', 'textSuccess', 'textError', 'textInfo', 'textWarning', 'outlined', 'outlinedInherit', 'outlinedPrimary', 'outlinedSecondary', 'outlinedSuccess', 'outlinedError', 'outlinedInfo', 'outlinedWarning', 'contained', 'containedInherit', 'containedPrimary', 'containedSecondary', 'containedSuccess', 'containedError', 'containedInfo', 'containedWarning', 'disableElevation', 'focusVisible', 'disabled', 'colorInherit', 'textSizeSmall', 'textSizeMedium', 'textSizeLarge', 'outlinedSizeSmall', 'outlinedSizeMedium', 'outlinedSizeLarge', 'containedSizeSmall', 'containedSizeMedium', 'containedSizeLarge', 'sizeMedium', 'sizeSmall', 'sizeLarge', 'fullWidth', 'startIcon', 'endIcon', 'iconSizeSmall', 'iconSizeMedium', 'iconSizeLarge']);
14569
+ var buttonClasses$1 = buttonClasses;
14246
14570
 
14247
- const _excluded$4 = ["className", "raised"];
14248
- const useUtilityClasses$2 = ownerState => {
14571
+ /**
14572
+ * @ignore - internal component.
14573
+ */
14574
+ const ButtonGroupContext = /*#__PURE__*/React.createContext({});
14575
+ if (process.env.NODE_ENV !== 'production') {
14576
+ ButtonGroupContext.displayName = 'ButtonGroupContext';
14577
+ }
14578
+ var ButtonGroupContext$1 = ButtonGroupContext;
14579
+
14580
+ const _excluded$7 = ["children", "color", "component", "className", "disabled", "disableElevation", "disableFocusRipple", "endIcon", "focusVisibleClassName", "fullWidth", "size", "startIcon", "type", "variant"];
14581
+ const useUtilityClasses$5 = ownerState => {
14249
14582
  const {
14583
+ color,
14584
+ disableElevation,
14585
+ fullWidth,
14586
+ size,
14587
+ variant,
14250
14588
  classes
14251
14589
  } = ownerState;
14252
14590
  const slots = {
14253
- root: ['root']
14591
+ root: ['root', variant, `${variant}${capitalize(color)}`, `size${capitalize(size)}`, `${variant}Size${capitalize(size)}`, color === 'inherit' && 'colorInherit', disableElevation && 'disableElevation', fullWidth && 'fullWidth'],
14592
+ label: ['label'],
14593
+ startIcon: ['startIcon', `iconSize${capitalize(size)}`],
14594
+ endIcon: ['endIcon', `iconSize${capitalize(size)}`]
14254
14595
  };
14255
- return composeClasses(slots, getCardUtilityClass, classes);
14596
+ const composedClasses = composeClasses(slots, getButtonUtilityClass, classes);
14597
+ return _extends({}, classes, composedClasses);
14256
14598
  };
14257
- const CardRoot = styled$1(Paper$1, {
14258
- name: 'MuiCard',
14259
- slot: 'Root',
14260
- overridesResolver: (props, styles) => styles.root
14261
- })(() => {
14262
- return {
14263
- overflow: 'hidden'
14264
- };
14265
- });
14266
- const Card = /*#__PURE__*/React.forwardRef(function Card(inProps, ref) {
14267
- const props = useThemeProps({
14268
- props: inProps,
14269
- name: 'MuiCard'
14270
- });
14271
- const {
14272
- className,
14273
- raised = false
14274
- } = props,
14275
- other = _objectWithoutPropertiesLoose(props, _excluded$4);
14276
- const ownerState = _extends({}, props, {
14277
- raised
14278
- });
14279
- const classes = useUtilityClasses$2(ownerState);
14280
- return /*#__PURE__*/jsx(CardRoot, _extends({
14281
- className: clsx(classes.root, className),
14282
- elevation: raised ? 8 : undefined,
14283
- ref: ref,
14284
- ownerState: ownerState
14285
- }, other));
14599
+ const commonIconStyles = ownerState => _extends({}, ownerState.size === 'small' && {
14600
+ '& > *:nth-of-type(1)': {
14601
+ fontSize: 18
14602
+ }
14603
+ }, ownerState.size === 'medium' && {
14604
+ '& > *:nth-of-type(1)': {
14605
+ fontSize: 20
14606
+ }
14607
+ }, ownerState.size === 'large' && {
14608
+ '& > *:nth-of-type(1)': {
14609
+ fontSize: 22
14610
+ }
14286
14611
  });
14287
- process.env.NODE_ENV !== "production" ? Card.propTypes /* remove-proptypes */ = {
14288
- // ----------------------------- Warning --------------------------------
14289
- // | These PropTypes are generated from the TypeScript type definitions |
14290
- // | To update them edit the d.ts file and run "yarn proptypes" |
14291
- // ----------------------------------------------------------------------
14612
+ const ButtonRoot = styled$1(ButtonBase$1, {
14613
+ shouldForwardProp: prop => rootShouldForwardProp(prop) || prop === 'classes',
14614
+ name: 'MuiButton',
14615
+ slot: 'Root',
14616
+ overridesResolver: (props, styles) => {
14617
+ const {
14618
+ ownerState
14619
+ } = props;
14620
+ return [styles.root, styles[ownerState.variant], styles[`${ownerState.variant}${capitalize(ownerState.color)}`], styles[`size${capitalize(ownerState.size)}`], styles[`${ownerState.variant}Size${capitalize(ownerState.size)}`], ownerState.color === 'inherit' && styles.colorInherit, ownerState.disableElevation && styles.disableElevation, ownerState.fullWidth && styles.fullWidth];
14621
+ }
14622
+ })(({
14623
+ theme,
14624
+ ownerState
14625
+ }) => {
14626
+ var _theme$palette$getCon, _theme$palette;
14627
+ const inheritContainedBackgroundColor = theme.palette.mode === 'light' ? theme.palette.grey[300] : theme.palette.grey[800];
14628
+ const inheritContainedHoverBackgroundColor = theme.palette.mode === 'light' ? theme.palette.grey.A100 : theme.palette.grey[700];
14629
+ return _extends({}, theme.typography.button, {
14630
+ minWidth: 64,
14631
+ padding: '6px 16px',
14632
+ borderRadius: (theme.vars || theme).shape.borderRadius,
14633
+ transition: theme.transitions.create(['background-color', 'box-shadow', 'border-color', 'color'], {
14634
+ duration: theme.transitions.duration.short
14635
+ }),
14636
+ '&:hover': _extends({
14637
+ textDecoration: 'none',
14638
+ backgroundColor: theme.vars ? `rgba(${theme.vars.palette.text.primaryChannel} / ${theme.vars.palette.action.hoverOpacity})` : alpha(theme.palette.text.primary, theme.palette.action.hoverOpacity),
14639
+ // Reset on touch devices, it doesn't add specificity
14640
+ '@media (hover: none)': {
14641
+ backgroundColor: 'transparent'
14642
+ }
14643
+ }, ownerState.variant === 'text' && ownerState.color !== 'inherit' && {
14644
+ 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),
14645
+ // Reset on touch devices, it doesn't add specificity
14646
+ '@media (hover: none)': {
14647
+ backgroundColor: 'transparent'
14648
+ }
14649
+ }, ownerState.variant === 'outlined' && ownerState.color !== 'inherit' && {
14650
+ border: `1px solid ${(theme.vars || theme).palette[ownerState.color].main}`,
14651
+ 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),
14652
+ // Reset on touch devices, it doesn't add specificity
14653
+ '@media (hover: none)': {
14654
+ backgroundColor: 'transparent'
14655
+ }
14656
+ }, ownerState.variant === 'contained' && {
14657
+ backgroundColor: theme.vars ? theme.vars.palette.Button.inheritContainedHoverBg : inheritContainedHoverBackgroundColor,
14658
+ boxShadow: (theme.vars || theme).shadows[4],
14659
+ // Reset on touch devices, it doesn't add specificity
14660
+ '@media (hover: none)': {
14661
+ boxShadow: (theme.vars || theme).shadows[2],
14662
+ backgroundColor: (theme.vars || theme).palette.grey[300]
14663
+ }
14664
+ }, ownerState.variant === 'contained' && ownerState.color !== 'inherit' && {
14665
+ backgroundColor: (theme.vars || theme).palette[ownerState.color].dark,
14666
+ // Reset on touch devices, it doesn't add specificity
14667
+ '@media (hover: none)': {
14668
+ backgroundColor: (theme.vars || theme).palette[ownerState.color].main
14669
+ }
14670
+ }),
14671
+ '&:active': _extends({}, ownerState.variant === 'contained' && {
14672
+ boxShadow: (theme.vars || theme).shadows[8]
14673
+ }),
14674
+ [`&.${buttonClasses$1.focusVisible}`]: _extends({}, ownerState.variant === 'contained' && {
14675
+ boxShadow: (theme.vars || theme).shadows[6]
14676
+ }),
14677
+ [`&.${buttonClasses$1.disabled}`]: _extends({
14678
+ color: (theme.vars || theme).palette.action.disabled
14679
+ }, ownerState.variant === 'outlined' && {
14680
+ border: `1px solid ${(theme.vars || theme).palette.action.disabledBackground}`
14681
+ }, ownerState.variant === 'contained' && {
14682
+ color: (theme.vars || theme).palette.action.disabled,
14683
+ boxShadow: (theme.vars || theme).shadows[0],
14684
+ backgroundColor: (theme.vars || theme).palette.action.disabledBackground
14685
+ })
14686
+ }, ownerState.variant === 'text' && {
14687
+ padding: '6px 8px'
14688
+ }, ownerState.variant === 'text' && ownerState.color !== 'inherit' && {
14689
+ color: (theme.vars || theme).palette[ownerState.color].main
14690
+ }, ownerState.variant === 'outlined' && {
14691
+ padding: '5px 15px',
14692
+ border: '1px solid currentColor'
14693
+ }, ownerState.variant === 'outlined' && ownerState.color !== 'inherit' && {
14694
+ color: (theme.vars || theme).palette[ownerState.color].main,
14695
+ border: theme.vars ? `1px solid rgba(${theme.vars.palette[ownerState.color].mainChannel} / 0.5)` : `1px solid ${alpha(theme.palette[ownerState.color].main, 0.5)}`
14696
+ }, ownerState.variant === 'contained' && {
14697
+ color: theme.vars ?
14698
+ // this is safe because grey does not change between default light/dark mode
14699
+ theme.vars.palette.text.primary : (_theme$palette$getCon = (_theme$palette = theme.palette).getContrastText) == null ? void 0 : _theme$palette$getCon.call(_theme$palette, theme.palette.grey[300]),
14700
+ backgroundColor: theme.vars ? theme.vars.palette.Button.inheritContainedBg : inheritContainedBackgroundColor,
14701
+ boxShadow: (theme.vars || theme).shadows[2]
14702
+ }, ownerState.variant === 'contained' && ownerState.color !== 'inherit' && {
14703
+ color: (theme.vars || theme).palette[ownerState.color].contrastText,
14704
+ backgroundColor: (theme.vars || theme).palette[ownerState.color].main
14705
+ }, ownerState.color === 'inherit' && {
14706
+ color: 'inherit',
14707
+ borderColor: 'currentColor'
14708
+ }, ownerState.size === 'small' && ownerState.variant === 'text' && {
14709
+ padding: '4px 5px',
14710
+ fontSize: theme.typography.pxToRem(13)
14711
+ }, ownerState.size === 'large' && ownerState.variant === 'text' && {
14712
+ padding: '8px 11px',
14713
+ fontSize: theme.typography.pxToRem(15)
14714
+ }, ownerState.size === 'small' && ownerState.variant === 'outlined' && {
14715
+ padding: '3px 9px',
14716
+ fontSize: theme.typography.pxToRem(13)
14717
+ }, ownerState.size === 'large' && ownerState.variant === 'outlined' && {
14718
+ padding: '7px 21px',
14719
+ fontSize: theme.typography.pxToRem(15)
14720
+ }, ownerState.size === 'small' && ownerState.variant === 'contained' && {
14721
+ padding: '4px 10px',
14722
+ fontSize: theme.typography.pxToRem(13)
14723
+ }, ownerState.size === 'large' && ownerState.variant === 'contained' && {
14724
+ padding: '8px 22px',
14725
+ fontSize: theme.typography.pxToRem(15)
14726
+ }, ownerState.fullWidth && {
14727
+ width: '100%'
14728
+ });
14729
+ }, ({
14730
+ ownerState
14731
+ }) => ownerState.disableElevation && {
14732
+ boxShadow: 'none',
14733
+ '&:hover': {
14734
+ boxShadow: 'none'
14735
+ },
14736
+ [`&.${buttonClasses$1.focusVisible}`]: {
14737
+ boxShadow: 'none'
14738
+ },
14739
+ '&:active': {
14740
+ boxShadow: 'none'
14741
+ },
14742
+ [`&.${buttonClasses$1.disabled}`]: {
14743
+ boxShadow: 'none'
14744
+ }
14745
+ });
14746
+ const ButtonStartIcon = styled$1('span', {
14747
+ name: 'MuiButton',
14748
+ slot: 'StartIcon',
14749
+ overridesResolver: (props, styles) => {
14750
+ const {
14751
+ ownerState
14752
+ } = props;
14753
+ return [styles.startIcon, styles[`iconSize${capitalize(ownerState.size)}`]];
14754
+ }
14755
+ })(({
14756
+ ownerState
14757
+ }) => _extends({
14758
+ display: 'inherit',
14759
+ marginRight: 8,
14760
+ marginLeft: -4
14761
+ }, ownerState.size === 'small' && {
14762
+ marginLeft: -2
14763
+ }, commonIconStyles(ownerState)));
14764
+ const ButtonEndIcon = styled$1('span', {
14765
+ name: 'MuiButton',
14766
+ slot: 'EndIcon',
14767
+ overridesResolver: (props, styles) => {
14768
+ const {
14769
+ ownerState
14770
+ } = props;
14771
+ return [styles.endIcon, styles[`iconSize${capitalize(ownerState.size)}`]];
14772
+ }
14773
+ })(({
14774
+ ownerState
14775
+ }) => _extends({
14776
+ display: 'inherit',
14777
+ marginRight: -4,
14778
+ marginLeft: 8
14779
+ }, ownerState.size === 'small' && {
14780
+ marginRight: -2
14781
+ }, commonIconStyles(ownerState)));
14782
+ const Button = /*#__PURE__*/React.forwardRef(function Button(inProps, ref) {
14783
+ // props priority: `inProps` > `contextProps` > `themeDefaultProps`
14784
+ const contextProps = React.useContext(ButtonGroupContext$1);
14785
+ const resolvedProps = resolveProps(contextProps, inProps);
14786
+ const props = useThemeProps({
14787
+ props: resolvedProps,
14788
+ name: 'MuiButton'
14789
+ });
14790
+ const {
14791
+ children,
14792
+ color = 'primary',
14793
+ component = 'button',
14794
+ className,
14795
+ disabled = false,
14796
+ disableElevation = false,
14797
+ disableFocusRipple = false,
14798
+ endIcon: endIconProp,
14799
+ focusVisibleClassName,
14800
+ fullWidth = false,
14801
+ size = 'medium',
14802
+ startIcon: startIconProp,
14803
+ type,
14804
+ variant = 'text'
14805
+ } = props,
14806
+ other = _objectWithoutPropertiesLoose(props, _excluded$7);
14807
+ const ownerState = _extends({}, props, {
14808
+ color,
14809
+ component,
14810
+ disabled,
14811
+ disableElevation,
14812
+ disableFocusRipple,
14813
+ fullWidth,
14814
+ size,
14815
+ type,
14816
+ variant
14817
+ });
14818
+ const classes = useUtilityClasses$5(ownerState);
14819
+ const startIcon = startIconProp && /*#__PURE__*/jsx(ButtonStartIcon, {
14820
+ className: classes.startIcon,
14821
+ ownerState: ownerState,
14822
+ children: startIconProp
14823
+ });
14824
+ const endIcon = endIconProp && /*#__PURE__*/jsx(ButtonEndIcon, {
14825
+ className: classes.endIcon,
14826
+ ownerState: ownerState,
14827
+ children: endIconProp
14828
+ });
14829
+ return /*#__PURE__*/jsxs(ButtonRoot, _extends({
14830
+ ownerState: ownerState,
14831
+ className: clsx(contextProps.className, classes.root, className),
14832
+ component: component,
14833
+ disabled: disabled,
14834
+ focusRipple: !disableFocusRipple,
14835
+ focusVisibleClassName: clsx(classes.focusVisible, focusVisibleClassName),
14836
+ ref: ref,
14837
+ type: type
14838
+ }, other, {
14839
+ classes: classes,
14840
+ children: [startIcon, children, endIcon]
14841
+ }));
14842
+ });
14843
+ process.env.NODE_ENV !== "production" ? Button.propTypes /* remove-proptypes */ = {
14844
+ // ----------------------------- Warning --------------------------------
14845
+ // | These PropTypes are generated from the TypeScript type definitions |
14846
+ // | To update them edit the d.ts file and run "yarn proptypes" |
14847
+ // ----------------------------------------------------------------------
14848
+ /**
14849
+ * The content of the component.
14850
+ */
14851
+ children: PropTypes.node,
14852
+ /**
14853
+ * Override or extend the styles applied to the component.
14854
+ */
14855
+ classes: PropTypes.object,
14856
+ /**
14857
+ * @ignore
14858
+ */
14859
+ className: PropTypes.string,
14860
+ /**
14861
+ * The color of the component.
14862
+ * It supports both default and custom theme colors, which can be added as shown in the
14863
+ * [palette customization guide](https://mui.com/material-ui/customization/palette/#adding-new-colors).
14864
+ * @default 'primary'
14865
+ */
14866
+ color: PropTypes /* @typescript-to-proptypes-ignore */.oneOfType([PropTypes.oneOf(['inherit', 'primary', 'secondary', 'success', 'error', 'info', 'warning']), PropTypes.string]),
14867
+ /**
14868
+ * The component used for the root node.
14869
+ * Either a string to use a HTML element or a component.
14870
+ */
14871
+ component: PropTypes.elementType,
14872
+ /**
14873
+ * If `true`, the component is disabled.
14874
+ * @default false
14875
+ */
14876
+ disabled: PropTypes.bool,
14877
+ /**
14878
+ * If `true`, no elevation is used.
14879
+ * @default false
14880
+ */
14881
+ disableElevation: PropTypes.bool,
14882
+ /**
14883
+ * If `true`, the keyboard focus ripple is disabled.
14884
+ * @default false
14885
+ */
14886
+ disableFocusRipple: PropTypes.bool,
14887
+ /**
14888
+ * If `true`, the ripple effect is disabled.
14889
+ *
14890
+ * ⚠️ Without a ripple there is no styling for :focus-visible by default. Be sure
14891
+ * to highlight the element by applying separate styles with the `.Mui-focusVisible` class.
14892
+ * @default false
14893
+ */
14894
+ disableRipple: PropTypes.bool,
14895
+ /**
14896
+ * Element placed after the children.
14897
+ */
14898
+ endIcon: PropTypes.node,
14899
+ /**
14900
+ * @ignore
14901
+ */
14902
+ focusVisibleClassName: PropTypes.string,
14903
+ /**
14904
+ * If `true`, the button will take up the full width of its container.
14905
+ * @default false
14906
+ */
14907
+ fullWidth: PropTypes.bool,
14908
+ /**
14909
+ * The URL to link to when the button is clicked.
14910
+ * If defined, an `a` element will be used as the root node.
14911
+ */
14912
+ href: PropTypes.string,
14913
+ /**
14914
+ * The size of the component.
14915
+ * `small` is equivalent to the dense button styling.
14916
+ * @default 'medium'
14917
+ */
14918
+ size: PropTypes /* @typescript-to-proptypes-ignore */.oneOfType([PropTypes.oneOf(['small', 'medium', 'large']), PropTypes.string]),
14919
+ /**
14920
+ * Element placed before the children.
14921
+ */
14922
+ startIcon: PropTypes.node,
14923
+ /**
14924
+ * The system prop that allows defining system overrides as well as additional CSS styles.
14925
+ */
14926
+ sx: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.func, PropTypes.object, PropTypes.bool])), PropTypes.func, PropTypes.object]),
14927
+ /**
14928
+ * @ignore
14929
+ */
14930
+ type: PropTypes.oneOfType([PropTypes.oneOf(['button', 'reset', 'submit']), PropTypes.string]),
14931
+ /**
14932
+ * The variant to use.
14933
+ * @default 'text'
14934
+ */
14935
+ variant: PropTypes /* @typescript-to-proptypes-ignore */.oneOfType([PropTypes.oneOf(['contained', 'outlined', 'text']), PropTypes.string])
14936
+ } : void 0;
14937
+ var Button$1 = Button;
14938
+
14939
+ function getCardUtilityClass(slot) {
14940
+ return generateUtilityClass('MuiCard', slot);
14941
+ }
14942
+ generateUtilityClasses('MuiCard', ['root']);
14943
+
14944
+ const _excluded$6 = ["className", "raised"];
14945
+ const useUtilityClasses$4 = ownerState => {
14946
+ const {
14947
+ classes
14948
+ } = ownerState;
14949
+ const slots = {
14950
+ root: ['root']
14951
+ };
14952
+ return composeClasses(slots, getCardUtilityClass, classes);
14953
+ };
14954
+ const CardRoot = styled$1(Paper$1, {
14955
+ name: 'MuiCard',
14956
+ slot: 'Root',
14957
+ overridesResolver: (props, styles) => styles.root
14958
+ })(() => {
14959
+ return {
14960
+ overflow: 'hidden'
14961
+ };
14962
+ });
14963
+ const Card = /*#__PURE__*/React.forwardRef(function Card(inProps, ref) {
14964
+ const props = useThemeProps({
14965
+ props: inProps,
14966
+ name: 'MuiCard'
14967
+ });
14968
+ const {
14969
+ className,
14970
+ raised = false
14971
+ } = props,
14972
+ other = _objectWithoutPropertiesLoose(props, _excluded$6);
14973
+ const ownerState = _extends({}, props, {
14974
+ raised
14975
+ });
14976
+ const classes = useUtilityClasses$4(ownerState);
14977
+ return /*#__PURE__*/jsx(CardRoot, _extends({
14978
+ className: clsx(classes.root, className),
14979
+ elevation: raised ? 8 : undefined,
14980
+ ref: ref,
14981
+ ownerState: ownerState
14982
+ }, other));
14983
+ });
14984
+ process.env.NODE_ENV !== "production" ? Card.propTypes /* remove-proptypes */ = {
14985
+ // ----------------------------- Warning --------------------------------
14986
+ // | These PropTypes are generated from the TypeScript type definitions |
14987
+ // | To update them edit the d.ts file and run "yarn proptypes" |
14988
+ // ----------------------------------------------------------------------
14292
14989
  /**
14293
14990
  * The content of the component.
14294
14991
  */
@@ -14323,8 +15020,8 @@ function getCardContentUtilityClass(slot) {
14323
15020
  }
14324
15021
  generateUtilityClasses('MuiCardContent', ['root']);
14325
15022
 
14326
- const _excluded$3 = ["className", "component"];
14327
- const useUtilityClasses$1 = ownerState => {
15023
+ const _excluded$5 = ["className", "component"];
15024
+ const useUtilityClasses$3 = ownerState => {
14328
15025
  const {
14329
15026
  classes
14330
15027
  } = ownerState;
@@ -14354,11 +15051,11 @@ const CardContent = /*#__PURE__*/React.forwardRef(function CardContent(inProps,
14354
15051
  className,
14355
15052
  component = 'div'
14356
15053
  } = props,
14357
- other = _objectWithoutPropertiesLoose(props, _excluded$3);
15054
+ other = _objectWithoutPropertiesLoose(props, _excluded$5);
14358
15055
  const ownerState = _extends({}, props, {
14359
15056
  component
14360
15057
  });
14361
- const classes = useUtilityClasses$1(ownerState);
15058
+ const classes = useUtilityClasses$3(ownerState);
14362
15059
  return /*#__PURE__*/jsx(CardContentRoot, _extends({
14363
15060
  as: component,
14364
15061
  className: clsx(classes.root, className),
@@ -14395,7 +15092,7 @@ process.env.NODE_ENV !== "production" ? CardContent.propTypes /* remove-proptype
14395
15092
  } : void 0;
14396
15093
  var CardContent$1 = CardContent;
14397
15094
 
14398
- const _excluded$2 = ["BackdropComponent", "BackdropProps", "classes", "className", "closeAfterTransition", "children", "container", "component", "components", "componentsProps", "disableAutoFocus", "disableEnforceFocus", "disableEscapeKeyDown", "disablePortal", "disableRestoreFocus", "disableScrollLock", "hideBackdrop", "keepMounted", "onBackdropClick", "onClose", "open", "slotProps", "slots", "theme"];
15095
+ 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"];
14399
15096
  const ModalRoot = styled$1('div', {
14400
15097
  name: 'MuiModal',
14401
15098
  slot: 'Root',
@@ -14474,7 +15171,7 @@ const Modal = /*#__PURE__*/React.forwardRef(function Modal(inProps, ref) {
14474
15171
  // eslint-disable-next-line react/prop-types
14475
15172
  theme
14476
15173
  } = props,
14477
- other = _objectWithoutPropertiesLoose(props, _excluded$2);
15174
+ other = _objectWithoutPropertiesLoose(props, _excluded$4);
14478
15175
  const [exited, setExited] = React.useState(true);
14479
15176
  const commonProps = {
14480
15177
  container,
@@ -14664,36 +15361,273 @@ process.env.NODE_ENV !== "production" ? Modal.propTypes /* remove-proptypes */ =
14664
15361
  * @param {object} event The event source of the callback.
14665
15362
  * @param {string} reason Can be: `"escapeKeyDown"`, `"backdropClick"`.
14666
15363
  */
14667
- onClose: PropTypes.func,
15364
+ onClose: PropTypes.func,
15365
+ /**
15366
+ * If `true`, the component is shown.
15367
+ */
15368
+ open: PropTypes.bool.isRequired,
15369
+ /**
15370
+ * The props used for each slot inside the Modal.
15371
+ * @default {}
15372
+ */
15373
+ slotProps: PropTypes.shape({
15374
+ backdrop: PropTypes.oneOfType([PropTypes.func, PropTypes.object]),
15375
+ root: PropTypes.oneOfType([PropTypes.func, PropTypes.object])
15376
+ }),
15377
+ /**
15378
+ * The components used for each slot inside the Modal.
15379
+ * Either a string to use a HTML element or a component.
15380
+ * @default {}
15381
+ */
15382
+ slots: PropTypes.shape({
15383
+ backdrop: PropTypes.elementType,
15384
+ root: PropTypes.elementType
15385
+ }),
15386
+ /**
15387
+ * The system prop that allows defining system overrides as well as additional CSS styles.
15388
+ */
15389
+ sx: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.func, PropTypes.object, PropTypes.bool])), PropTypes.func, PropTypes.object])
15390
+ } : void 0;
15391
+ var Modal$1 = Modal;
15392
+
15393
+ function getDividerUtilityClass(slot) {
15394
+ return generateUtilityClass('MuiDivider', slot);
15395
+ }
15396
+ generateUtilityClasses('MuiDivider', ['root', 'absolute', 'fullWidth', 'inset', 'middle', 'flexItem', 'light', 'vertical', 'withChildren', 'withChildrenVertical', 'textAlignRight', 'textAlignLeft', 'wrapper', 'wrapperVertical']);
15397
+
15398
+ const _excluded$3 = ["absolute", "children", "className", "component", "flexItem", "light", "orientation", "role", "textAlign", "variant"];
15399
+ const useUtilityClasses$2 = ownerState => {
15400
+ const {
15401
+ absolute,
15402
+ children,
15403
+ classes,
15404
+ flexItem,
15405
+ light,
15406
+ orientation,
15407
+ textAlign,
15408
+ variant
15409
+ } = ownerState;
15410
+ const slots = {
15411
+ 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'],
15412
+ wrapper: ['wrapper', orientation === 'vertical' && 'wrapperVertical']
15413
+ };
15414
+ return composeClasses(slots, getDividerUtilityClass, classes);
15415
+ };
15416
+ const DividerRoot = styled$1('div', {
15417
+ name: 'MuiDivider',
15418
+ slot: 'Root',
15419
+ overridesResolver: (props, styles) => {
15420
+ const {
15421
+ ownerState
15422
+ } = props;
15423
+ 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];
15424
+ }
15425
+ })(({
15426
+ theme,
15427
+ ownerState
15428
+ }) => _extends({
15429
+ margin: 0,
15430
+ // Reset browser default style.
15431
+ flexShrink: 0,
15432
+ borderWidth: 0,
15433
+ borderStyle: 'solid',
15434
+ borderColor: (theme.vars || theme).palette.divider,
15435
+ borderBottomWidth: 'thin'
15436
+ }, ownerState.absolute && {
15437
+ position: 'absolute',
15438
+ bottom: 0,
15439
+ left: 0,
15440
+ width: '100%'
15441
+ }, ownerState.light && {
15442
+ borderColor: theme.vars ? `rgba(${theme.vars.palette.dividerChannel} / 0.08)` : alpha(theme.palette.divider, 0.08)
15443
+ }, ownerState.variant === 'inset' && {
15444
+ marginLeft: 72
15445
+ }, ownerState.variant === 'middle' && ownerState.orientation === 'horizontal' && {
15446
+ marginLeft: theme.spacing(2),
15447
+ marginRight: theme.spacing(2)
15448
+ }, ownerState.variant === 'middle' && ownerState.orientation === 'vertical' && {
15449
+ marginTop: theme.spacing(1),
15450
+ marginBottom: theme.spacing(1)
15451
+ }, ownerState.orientation === 'vertical' && {
15452
+ height: '100%',
15453
+ borderBottomWidth: 0,
15454
+ borderRightWidth: 'thin'
15455
+ }, ownerState.flexItem && {
15456
+ alignSelf: 'stretch',
15457
+ height: 'auto'
15458
+ }), ({
15459
+ ownerState
15460
+ }) => _extends({}, ownerState.children && {
15461
+ display: 'flex',
15462
+ whiteSpace: 'nowrap',
15463
+ textAlign: 'center',
15464
+ border: 0,
15465
+ '&::before, &::after': {
15466
+ content: '""',
15467
+ alignSelf: 'center'
15468
+ }
15469
+ }), ({
15470
+ theme,
15471
+ ownerState
15472
+ }) => _extends({}, ownerState.children && ownerState.orientation !== 'vertical' && {
15473
+ '&::before, &::after': {
15474
+ width: '100%',
15475
+ borderTop: `thin solid ${(theme.vars || theme).palette.divider}`
15476
+ }
15477
+ }), ({
15478
+ theme,
15479
+ ownerState
15480
+ }) => _extends({}, ownerState.children && ownerState.orientation === 'vertical' && {
15481
+ flexDirection: 'column',
15482
+ '&::before, &::after': {
15483
+ height: '100%',
15484
+ borderLeft: `thin solid ${(theme.vars || theme).palette.divider}`
15485
+ }
15486
+ }), ({
15487
+ ownerState
15488
+ }) => _extends({}, ownerState.textAlign === 'right' && ownerState.orientation !== 'vertical' && {
15489
+ '&::before': {
15490
+ width: '90%'
15491
+ },
15492
+ '&::after': {
15493
+ width: '10%'
15494
+ }
15495
+ }, ownerState.textAlign === 'left' && ownerState.orientation !== 'vertical' && {
15496
+ '&::before': {
15497
+ width: '10%'
15498
+ },
15499
+ '&::after': {
15500
+ width: '90%'
15501
+ }
15502
+ }));
15503
+ const DividerWrapper = styled$1('span', {
15504
+ name: 'MuiDivider',
15505
+ slot: 'Wrapper',
15506
+ overridesResolver: (props, styles) => {
15507
+ const {
15508
+ ownerState
15509
+ } = props;
15510
+ return [styles.wrapper, ownerState.orientation === 'vertical' && styles.wrapperVertical];
15511
+ }
15512
+ })(({
15513
+ theme,
15514
+ ownerState
15515
+ }) => _extends({
15516
+ display: 'inline-block',
15517
+ paddingLeft: `calc(${theme.spacing(1)} * 1.2)`,
15518
+ paddingRight: `calc(${theme.spacing(1)} * 1.2)`
15519
+ }, ownerState.orientation === 'vertical' && {
15520
+ paddingTop: `calc(${theme.spacing(1)} * 1.2)`,
15521
+ paddingBottom: `calc(${theme.spacing(1)} * 1.2)`
15522
+ }));
15523
+ const Divider = /*#__PURE__*/React.forwardRef(function Divider(inProps, ref) {
15524
+ const props = useThemeProps({
15525
+ props: inProps,
15526
+ name: 'MuiDivider'
15527
+ });
15528
+ const {
15529
+ absolute = false,
15530
+ children,
15531
+ className,
15532
+ component = children ? 'div' : 'hr',
15533
+ flexItem = false,
15534
+ light = false,
15535
+ orientation = 'horizontal',
15536
+ role = component !== 'hr' ? 'separator' : undefined,
15537
+ textAlign = 'center',
15538
+ variant = 'fullWidth'
15539
+ } = props,
15540
+ other = _objectWithoutPropertiesLoose(props, _excluded$3);
15541
+ const ownerState = _extends({}, props, {
15542
+ absolute,
15543
+ component,
15544
+ flexItem,
15545
+ light,
15546
+ orientation,
15547
+ role,
15548
+ textAlign,
15549
+ variant
15550
+ });
15551
+ const classes = useUtilityClasses$2(ownerState);
15552
+ return /*#__PURE__*/jsx(DividerRoot, _extends({
15553
+ as: component,
15554
+ className: clsx(classes.root, className),
15555
+ role: role,
15556
+ ref: ref,
15557
+ ownerState: ownerState
15558
+ }, other, {
15559
+ children: children ? /*#__PURE__*/jsx(DividerWrapper, {
15560
+ className: classes.wrapper,
15561
+ ownerState: ownerState,
15562
+ children: children
15563
+ }) : null
15564
+ }));
15565
+ });
15566
+ process.env.NODE_ENV !== "production" ? Divider.propTypes /* remove-proptypes */ = {
15567
+ // ----------------------------- Warning --------------------------------
15568
+ // | These PropTypes are generated from the TypeScript type definitions |
15569
+ // | To update them edit the d.ts file and run "yarn proptypes" |
15570
+ // ----------------------------------------------------------------------
15571
+ /**
15572
+ * Absolutely position the element.
15573
+ * @default false
15574
+ */
15575
+ absolute: PropTypes.bool,
15576
+ /**
15577
+ * The content of the component.
15578
+ */
15579
+ children: PropTypes.node,
15580
+ /**
15581
+ * Override or extend the styles applied to the component.
15582
+ */
15583
+ classes: PropTypes.object,
15584
+ /**
15585
+ * @ignore
15586
+ */
15587
+ className: PropTypes.string,
15588
+ /**
15589
+ * The component used for the root node.
15590
+ * Either a string to use a HTML element or a component.
15591
+ */
15592
+ component: PropTypes.elementType,
15593
+ /**
15594
+ * If `true`, a vertical divider will have the correct height when used in flex container.
15595
+ * (By default, a vertical divider will have a calculated height of `0px` if it is the child of a flex container.)
15596
+ * @default false
15597
+ */
15598
+ flexItem: PropTypes.bool,
14668
15599
  /**
14669
- * If `true`, the component is shown.
15600
+ * If `true`, the divider will have a lighter color.
15601
+ * @default false
14670
15602
  */
14671
- open: PropTypes.bool.isRequired,
15603
+ light: PropTypes.bool,
14672
15604
  /**
14673
- * The props used for each slot inside the Modal.
14674
- * @default {}
15605
+ * The component orientation.
15606
+ * @default 'horizontal'
14675
15607
  */
14676
- slotProps: PropTypes.shape({
14677
- backdrop: PropTypes.oneOfType([PropTypes.func, PropTypes.object]),
14678
- root: PropTypes.oneOfType([PropTypes.func, PropTypes.object])
14679
- }),
15608
+ orientation: PropTypes.oneOf(['horizontal', 'vertical']),
14680
15609
  /**
14681
- * The components used for each slot inside the Modal.
14682
- * Either a string to use a HTML element or a component.
14683
- * @default {}
15610
+ * @ignore
14684
15611
  */
14685
- slots: PropTypes.shape({
14686
- backdrop: PropTypes.elementType,
14687
- root: PropTypes.elementType
14688
- }),
15612
+ role: PropTypes /* @typescript-to-proptypes-ignore */.string,
14689
15613
  /**
14690
15614
  * The system prop that allows defining system overrides as well as additional CSS styles.
14691
15615
  */
14692
- sx: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.func, PropTypes.object, PropTypes.bool])), PropTypes.func, PropTypes.object])
15616
+ sx: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.func, PropTypes.object, PropTypes.bool])), PropTypes.func, PropTypes.object]),
15617
+ /**
15618
+ * The text alignment.
15619
+ * @default 'center'
15620
+ */
15621
+ textAlign: PropTypes.oneOf(['center', 'left', 'right']),
15622
+ /**
15623
+ * The variant to use.
15624
+ * @default 'fullWidth'
15625
+ */
15626
+ variant: PropTypes /* @typescript-to-proptypes-ignore */.oneOfType([PropTypes.oneOf(['fullWidth', 'inset', 'middle']), PropTypes.string])
14693
15627
  } : void 0;
14694
- var Modal$1 = Modal;
15628
+ var Divider$1 = Divider;
14695
15629
 
14696
- const _excluded$1 = ["addEndListener", "appear", "children", "container", "direction", "easing", "in", "onEnter", "onEntered", "onEntering", "onExit", "onExited", "onExiting", "style", "timeout", "TransitionComponent"];
15630
+ const _excluded$2 = ["addEndListener", "appear", "children", "container", "direction", "easing", "in", "onEnter", "onEntered", "onEntering", "onExit", "onExited", "onExiting", "style", "timeout", "TransitionComponent"];
14697
15631
  function getTranslateValue(direction, node, resolvedContainer) {
14698
15632
  const rect = node.getBoundingClientRect();
14699
15633
  const containerRect = resolvedContainer && resolvedContainer.getBoundingClientRect();
@@ -14782,7 +15716,7 @@ const Slide = /*#__PURE__*/React.forwardRef(function Slide(props, ref) {
14782
15716
  // eslint-disable-next-line react/prop-types
14783
15717
  TransitionComponent = Transition$1
14784
15718
  } = props,
14785
- other = _objectWithoutPropertiesLoose(props, _excluded$1);
15719
+ other = _objectWithoutPropertiesLoose(props, _excluded$2);
14786
15720
  const childrenRef = React.useRef(null);
14787
15721
  const handleRef = useForkRef(children.ref, childrenRef, ref);
14788
15722
  const normalizedTransitionCallback = callback => isAppearing => {
@@ -15010,7 +15944,7 @@ function getDrawerUtilityClass(slot) {
15010
15944
  }
15011
15945
  generateUtilityClasses('MuiDrawer', ['root', 'docked', 'paper', 'paperAnchorLeft', 'paperAnchorRight', 'paperAnchorTop', 'paperAnchorBottom', 'paperAnchorDockedLeft', 'paperAnchorDockedRight', 'paperAnchorDockedTop', 'paperAnchorDockedBottom', 'modal']);
15012
15946
 
15013
- const _excluded = ["BackdropProps"],
15947
+ const _excluded$1 = ["BackdropProps"],
15014
15948
  _excluded2 = ["anchor", "BackdropProps", "children", "className", "elevation", "hideBackdrop", "ModalProps", "onClose", "open", "PaperProps", "SlideProps", "TransitionComponent", "transitionDuration", "variant"];
15015
15949
  const overridesResolver = (props, styles) => {
15016
15950
  const {
@@ -15018,7 +15952,7 @@ const overridesResolver = (props, styles) => {
15018
15952
  } = props;
15019
15953
  return [styles.root, (ownerState.variant === 'permanent' || ownerState.variant === 'persistent') && styles.docked, styles.modal];
15020
15954
  };
15021
- const useUtilityClasses = ownerState => {
15955
+ const useUtilityClasses$1 = ownerState => {
15022
15956
  const {
15023
15957
  classes,
15024
15958
  anchor,
@@ -15150,7 +16084,7 @@ const Drawer = /*#__PURE__*/React.forwardRef(function Drawer(inProps, ref) {
15150
16084
  transitionDuration = defaultTransitionDuration,
15151
16085
  variant = 'temporary'
15152
16086
  } = props,
15153
- ModalProps = _objectWithoutPropertiesLoose(props.ModalProps, _excluded),
16087
+ ModalProps = _objectWithoutPropertiesLoose(props.ModalProps, _excluded$1),
15154
16088
  other = _objectWithoutPropertiesLoose(props, _excluded2);
15155
16089
 
15156
16090
  // Let's assume that the Drawer will always be rendered on user space.
@@ -15168,7 +16102,7 @@ const Drawer = /*#__PURE__*/React.forwardRef(function Drawer(inProps, ref) {
15168
16102
  open,
15169
16103
  variant
15170
16104
  }, other);
15171
- const classes = useUtilityClasses(ownerState);
16105
+ const classes = useUtilityClasses$1(ownerState);
15172
16106
  const drawer = /*#__PURE__*/jsx(DrawerPaper, _extends({
15173
16107
  elevation: variant === 'temporary' ? elevation : 0,
15174
16108
  square: true
@@ -15305,6 +16239,346 @@ process.env.NODE_ENV !== "production" ? Drawer.propTypes /* remove-proptypes */
15305
16239
  } : void 0;
15306
16240
  var Drawer$1 = Drawer;
15307
16241
 
16242
+ function getLinearProgressUtilityClass(slot) {
16243
+ return generateUtilityClass('MuiLinearProgress', slot);
16244
+ }
16245
+ generateUtilityClasses('MuiLinearProgress', ['root', 'colorPrimary', 'colorSecondary', 'determinate', 'indeterminate', 'buffer', 'query', 'dashed', 'dashedColorPrimary', 'dashedColorSecondary', 'bar', 'barColorPrimary', 'barColorSecondary', 'bar1Indeterminate', 'bar1Determinate', 'bar1Buffer', 'bar2Indeterminate', 'bar2Buffer']);
16246
+
16247
+ const _excluded = ["className", "color", "value", "valueBuffer", "variant"];
16248
+ let _ = t => t,
16249
+ _t,
16250
+ _t2,
16251
+ _t3,
16252
+ _t4,
16253
+ _t5,
16254
+ _t6;
16255
+ const TRANSITION_DURATION = 4; // seconds
16256
+ const indeterminate1Keyframe = keyframes(_t || (_t = _`
16257
+ 0% {
16258
+ left: -35%;
16259
+ right: 100%;
16260
+ }
16261
+
16262
+ 60% {
16263
+ left: 100%;
16264
+ right: -90%;
16265
+ }
16266
+
16267
+ 100% {
16268
+ left: 100%;
16269
+ right: -90%;
16270
+ }
16271
+ `));
16272
+ const indeterminate2Keyframe = keyframes(_t2 || (_t2 = _`
16273
+ 0% {
16274
+ left: -200%;
16275
+ right: 100%;
16276
+ }
16277
+
16278
+ 60% {
16279
+ left: 107%;
16280
+ right: -8%;
16281
+ }
16282
+
16283
+ 100% {
16284
+ left: 107%;
16285
+ right: -8%;
16286
+ }
16287
+ `));
16288
+ const bufferKeyframe = keyframes(_t3 || (_t3 = _`
16289
+ 0% {
16290
+ opacity: 1;
16291
+ background-position: 0 -23px;
16292
+ }
16293
+
16294
+ 60% {
16295
+ opacity: 0;
16296
+ background-position: 0 -23px;
16297
+ }
16298
+
16299
+ 100% {
16300
+ opacity: 1;
16301
+ background-position: -200px -23px;
16302
+ }
16303
+ `));
16304
+ const useUtilityClasses = ownerState => {
16305
+ const {
16306
+ classes,
16307
+ variant,
16308
+ color
16309
+ } = ownerState;
16310
+ const slots = {
16311
+ root: ['root', `color${capitalize(color)}`, variant],
16312
+ dashed: ['dashed', `dashedColor${capitalize(color)}`],
16313
+ bar1: ['bar', `barColor${capitalize(color)}`, (variant === 'indeterminate' || variant === 'query') && 'bar1Indeterminate', variant === 'determinate' && 'bar1Determinate', variant === 'buffer' && 'bar1Buffer'],
16314
+ bar2: ['bar', variant !== 'buffer' && `barColor${capitalize(color)}`, variant === 'buffer' && `color${capitalize(color)}`, (variant === 'indeterminate' || variant === 'query') && 'bar2Indeterminate', variant === 'buffer' && 'bar2Buffer']
16315
+ };
16316
+ return composeClasses(slots, getLinearProgressUtilityClass, classes);
16317
+ };
16318
+ const getColorShade = (theme, color) => {
16319
+ if (color === 'inherit') {
16320
+ return 'currentColor';
16321
+ }
16322
+ if (theme.vars) {
16323
+ return theme.vars.palette.LinearProgress[`${color}Bg`];
16324
+ }
16325
+ return theme.palette.mode === 'light' ? lighten(theme.palette[color].main, 0.62) : darken(theme.palette[color].main, 0.5);
16326
+ };
16327
+ const LinearProgressRoot = styled$1('span', {
16328
+ name: 'MuiLinearProgress',
16329
+ slot: 'Root',
16330
+ overridesResolver: (props, styles) => {
16331
+ const {
16332
+ ownerState
16333
+ } = props;
16334
+ return [styles.root, styles[`color${capitalize(ownerState.color)}`], styles[ownerState.variant]];
16335
+ }
16336
+ })(({
16337
+ ownerState,
16338
+ theme
16339
+ }) => _extends({
16340
+ position: 'relative',
16341
+ overflow: 'hidden',
16342
+ display: 'block',
16343
+ height: 4,
16344
+ zIndex: 0,
16345
+ // Fix Safari's bug during composition of different paint.
16346
+ '@media print': {
16347
+ colorAdjust: 'exact'
16348
+ },
16349
+ backgroundColor: getColorShade(theme, ownerState.color)
16350
+ }, ownerState.color === 'inherit' && ownerState.variant !== 'buffer' && {
16351
+ backgroundColor: 'none',
16352
+ '&::before': {
16353
+ content: '""',
16354
+ position: 'absolute',
16355
+ left: 0,
16356
+ top: 0,
16357
+ right: 0,
16358
+ bottom: 0,
16359
+ backgroundColor: 'currentColor',
16360
+ opacity: 0.3
16361
+ }
16362
+ }, ownerState.variant === 'buffer' && {
16363
+ backgroundColor: 'transparent'
16364
+ }, ownerState.variant === 'query' && {
16365
+ transform: 'rotate(180deg)'
16366
+ }));
16367
+ const LinearProgressDashed = styled$1('span', {
16368
+ name: 'MuiLinearProgress',
16369
+ slot: 'Dashed',
16370
+ overridesResolver: (props, styles) => {
16371
+ const {
16372
+ ownerState
16373
+ } = props;
16374
+ return [styles.dashed, styles[`dashedColor${capitalize(ownerState.color)}`]];
16375
+ }
16376
+ })(({
16377
+ ownerState,
16378
+ theme
16379
+ }) => {
16380
+ const backgroundColor = getColorShade(theme, ownerState.color);
16381
+ return _extends({
16382
+ position: 'absolute',
16383
+ marginTop: 0,
16384
+ height: '100%',
16385
+ width: '100%'
16386
+ }, ownerState.color === 'inherit' && {
16387
+ opacity: 0.3
16388
+ }, {
16389
+ backgroundImage: `radial-gradient(${backgroundColor} 0%, ${backgroundColor} 16%, transparent 42%)`,
16390
+ backgroundSize: '10px 10px',
16391
+ backgroundPosition: '0 -23px'
16392
+ });
16393
+ }, css(_t4 || (_t4 = _`
16394
+ animation: ${0} 3s infinite linear;
16395
+ `), bufferKeyframe));
16396
+ const LinearProgressBar1 = styled$1('span', {
16397
+ name: 'MuiLinearProgress',
16398
+ slot: 'Bar1',
16399
+ overridesResolver: (props, styles) => {
16400
+ const {
16401
+ ownerState
16402
+ } = props;
16403
+ return [styles.bar, styles[`barColor${capitalize(ownerState.color)}`], (ownerState.variant === 'indeterminate' || ownerState.variant === 'query') && styles.bar1Indeterminate, ownerState.variant === 'determinate' && styles.bar1Determinate, ownerState.variant === 'buffer' && styles.bar1Buffer];
16404
+ }
16405
+ })(({
16406
+ ownerState,
16407
+ theme
16408
+ }) => _extends({
16409
+ width: '100%',
16410
+ position: 'absolute',
16411
+ left: 0,
16412
+ bottom: 0,
16413
+ top: 0,
16414
+ transition: 'transform 0.2s linear',
16415
+ transformOrigin: 'left',
16416
+ backgroundColor: ownerState.color === 'inherit' ? 'currentColor' : (theme.vars || theme).palette[ownerState.color].main
16417
+ }, ownerState.variant === 'determinate' && {
16418
+ transition: `transform .${TRANSITION_DURATION}s linear`
16419
+ }, ownerState.variant === 'buffer' && {
16420
+ zIndex: 1,
16421
+ transition: `transform .${TRANSITION_DURATION}s linear`
16422
+ }), ({
16423
+ ownerState
16424
+ }) => (ownerState.variant === 'indeterminate' || ownerState.variant === 'query') && css(_t5 || (_t5 = _`
16425
+ width: auto;
16426
+ animation: ${0} 2.1s cubic-bezier(0.65, 0.815, 0.735, 0.395) infinite;
16427
+ `), indeterminate1Keyframe));
16428
+ const LinearProgressBar2 = styled$1('span', {
16429
+ name: 'MuiLinearProgress',
16430
+ slot: 'Bar2',
16431
+ overridesResolver: (props, styles) => {
16432
+ const {
16433
+ ownerState
16434
+ } = props;
16435
+ return [styles.bar, styles[`barColor${capitalize(ownerState.color)}`], (ownerState.variant === 'indeterminate' || ownerState.variant === 'query') && styles.bar2Indeterminate, ownerState.variant === 'buffer' && styles.bar2Buffer];
16436
+ }
16437
+ })(({
16438
+ ownerState,
16439
+ theme
16440
+ }) => _extends({
16441
+ width: '100%',
16442
+ position: 'absolute',
16443
+ left: 0,
16444
+ bottom: 0,
16445
+ top: 0,
16446
+ transition: 'transform 0.2s linear',
16447
+ transformOrigin: 'left'
16448
+ }, ownerState.variant !== 'buffer' && {
16449
+ backgroundColor: ownerState.color === 'inherit' ? 'currentColor' : (theme.vars || theme).palette[ownerState.color].main
16450
+ }, ownerState.color === 'inherit' && {
16451
+ opacity: 0.3
16452
+ }, ownerState.variant === 'buffer' && {
16453
+ backgroundColor: getColorShade(theme, ownerState.color),
16454
+ transition: `transform .${TRANSITION_DURATION}s linear`
16455
+ }), ({
16456
+ ownerState
16457
+ }) => (ownerState.variant === 'indeterminate' || ownerState.variant === 'query') && css(_t6 || (_t6 = _`
16458
+ width: auto;
16459
+ animation: ${0} 2.1s cubic-bezier(0.165, 0.84, 0.44, 1) 1.15s infinite;
16460
+ `), indeterminate2Keyframe));
16461
+
16462
+ /**
16463
+ * ## ARIA
16464
+ *
16465
+ * If the progress bar is describing the loading progress of a particular region of a page,
16466
+ * you should use `aria-describedby` to point to the progress bar, and set the `aria-busy`
16467
+ * attribute to `true` on that region until it has finished loading.
16468
+ */
16469
+ const LinearProgress = /*#__PURE__*/React.forwardRef(function LinearProgress(inProps, ref) {
16470
+ const props = useThemeProps({
16471
+ props: inProps,
16472
+ name: 'MuiLinearProgress'
16473
+ });
16474
+ const {
16475
+ className,
16476
+ color = 'primary',
16477
+ value,
16478
+ valueBuffer,
16479
+ variant = 'indeterminate'
16480
+ } = props,
16481
+ other = _objectWithoutPropertiesLoose(props, _excluded);
16482
+ const ownerState = _extends({}, props, {
16483
+ color,
16484
+ variant
16485
+ });
16486
+ const classes = useUtilityClasses(ownerState);
16487
+ const theme = useTheme();
16488
+ const rootProps = {};
16489
+ const inlineStyles = {
16490
+ bar1: {},
16491
+ bar2: {}
16492
+ };
16493
+ if (variant === 'determinate' || variant === 'buffer') {
16494
+ if (value !== undefined) {
16495
+ rootProps['aria-valuenow'] = Math.round(value);
16496
+ rootProps['aria-valuemin'] = 0;
16497
+ rootProps['aria-valuemax'] = 100;
16498
+ let transform = value - 100;
16499
+ if (theme.direction === 'rtl') {
16500
+ transform = -transform;
16501
+ }
16502
+ inlineStyles.bar1.transform = `translateX(${transform}%)`;
16503
+ } else if (process.env.NODE_ENV !== 'production') {
16504
+ console.error('MUI: You need to provide a value prop ' + 'when using the determinate or buffer variant of LinearProgress .');
16505
+ }
16506
+ }
16507
+ if (variant === 'buffer') {
16508
+ if (valueBuffer !== undefined) {
16509
+ let transform = (valueBuffer || 0) - 100;
16510
+ if (theme.direction === 'rtl') {
16511
+ transform = -transform;
16512
+ }
16513
+ inlineStyles.bar2.transform = `translateX(${transform}%)`;
16514
+ } else if (process.env.NODE_ENV !== 'production') {
16515
+ console.error('MUI: You need to provide a valueBuffer prop ' + 'when using the buffer variant of LinearProgress.');
16516
+ }
16517
+ }
16518
+ return /*#__PURE__*/jsxs(LinearProgressRoot, _extends({
16519
+ className: clsx(classes.root, className),
16520
+ ownerState: ownerState,
16521
+ role: "progressbar"
16522
+ }, rootProps, {
16523
+ ref: ref
16524
+ }, other, {
16525
+ children: [variant === 'buffer' ? /*#__PURE__*/jsx(LinearProgressDashed, {
16526
+ className: classes.dashed,
16527
+ ownerState: ownerState
16528
+ }) : null, /*#__PURE__*/jsx(LinearProgressBar1, {
16529
+ className: classes.bar1,
16530
+ ownerState: ownerState,
16531
+ style: inlineStyles.bar1
16532
+ }), variant === 'determinate' ? null : /*#__PURE__*/jsx(LinearProgressBar2, {
16533
+ className: classes.bar2,
16534
+ ownerState: ownerState,
16535
+ style: inlineStyles.bar2
16536
+ })]
16537
+ }));
16538
+ });
16539
+ process.env.NODE_ENV !== "production" ? LinearProgress.propTypes /* remove-proptypes */ = {
16540
+ // ----------------------------- Warning --------------------------------
16541
+ // | These PropTypes are generated from the TypeScript type definitions |
16542
+ // | To update them edit the d.ts file and run "yarn proptypes" |
16543
+ // ----------------------------------------------------------------------
16544
+ /**
16545
+ * Override or extend the styles applied to the component.
16546
+ */
16547
+ classes: PropTypes.object,
16548
+ /**
16549
+ * @ignore
16550
+ */
16551
+ className: PropTypes.string,
16552
+ /**
16553
+ * The color of the component.
16554
+ * It supports both default and custom theme colors, which can be added as shown in the
16555
+ * [palette customization guide](https://mui.com/material-ui/customization/palette/#adding-new-colors).
16556
+ * @default 'primary'
16557
+ */
16558
+ color: PropTypes /* @typescript-to-proptypes-ignore */.oneOfType([PropTypes.oneOf(['inherit', 'primary', 'secondary']), PropTypes.string]),
16559
+ /**
16560
+ * The system prop that allows defining system overrides as well as additional CSS styles.
16561
+ */
16562
+ sx: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.func, PropTypes.object, PropTypes.bool])), PropTypes.func, PropTypes.object]),
16563
+ /**
16564
+ * The value of the progress indicator for the determinate and buffer variants.
16565
+ * Value between 0 and 100.
16566
+ */
16567
+ value: PropTypes.number,
16568
+ /**
16569
+ * The value for the buffer variant.
16570
+ * Value between 0 and 100.
16571
+ */
16572
+ valueBuffer: PropTypes.number,
16573
+ /**
16574
+ * The variant to use.
16575
+ * Use indeterminate or query when there is no progress value.
16576
+ * @default 'indeterminate'
16577
+ */
16578
+ variant: PropTypes.oneOf(['buffer', 'determinate', 'indeterminate', 'query'])
16579
+ } : void 0;
16580
+ var LinearProgress$1 = LinearProgress;
16581
+
15308
16582
  const Stack = createStack({
15309
16583
  createStyledComponent: styled$1('div', {
15310
16584
  name: 'MuiStack',
@@ -15378,45 +16652,38 @@ const EmptyState = ({
15378
16652
  content,
15379
16653
  actions
15380
16654
  }) => {
15381
- return jsx(Card$1, {
15382
- elevation: 1,
15383
- children: jsxs(CardContent$1, {
15384
- sx: {
15385
- display: 'flex',
15386
- alignItems: 'center',
15387
- justifyContent: 'center',
15388
- flexDirection: 'column',
15389
- gap: 4
15390
- },
15391
- children: [jsx("svg", {
15392
- style: {
15393
- width: 206,
15394
- height: 187
15395
- },
15396
- children: jsx("use", {
15397
- xlinkHref: `${sincoIconos}#${UrlImage[_state]}`
15398
- })
15399
- }), jsxs(Stack$1, {
15400
- direction: "column",
15401
- spacing: 2,
15402
- children: [title && jsx(Typography$1, {
15403
- variant: "h6",
15404
- textAlign: "center",
15405
- children: title
15406
- }), content && jsx(Typography$1, {
15407
- variant: "body1",
15408
- textAlign: "center",
15409
- color: "text.secondary",
15410
- children: content
15411
- }), _state === 'create' && actions && jsx(Stack$1, {
15412
- direction: "row",
15413
- spacing: 2,
15414
- justifyContent: "center",
15415
- children: actions
15416
- })]
15417
- })]
15418
- })
15419
- });
16655
+ return /*#__PURE__*/React__default.createElement(Card$1, {
16656
+ elevation: 1
16657
+ }, /*#__PURE__*/React__default.createElement(CardContent$1, {
16658
+ sx: {
16659
+ display: 'flex',
16660
+ alignItems: 'center',
16661
+ justifyContent: 'center',
16662
+ flexDirection: 'column',
16663
+ gap: 4
16664
+ }
16665
+ }, /*#__PURE__*/React__default.createElement("svg", {
16666
+ style: {
16667
+ width: 206,
16668
+ height: 187
16669
+ }
16670
+ }, /*#__PURE__*/React__default.createElement("use", {
16671
+ xlinkHref: `${sincoIconos}#${UrlImage[_state]}`
16672
+ })), /*#__PURE__*/React__default.createElement(Stack$1, {
16673
+ direction: "column",
16674
+ spacing: 2
16675
+ }, title && /*#__PURE__*/React__default.createElement(Typography$1, {
16676
+ variant: "h6",
16677
+ textAlign: "center"
16678
+ }, title), content && /*#__PURE__*/React__default.createElement(Typography$1, {
16679
+ variant: "body1",
16680
+ textAlign: "center",
16681
+ color: "text.secondary"
16682
+ }, content), _state === 'create' && actions && /*#__PURE__*/React__default.createElement(Stack$1, {
16683
+ direction: "row",
16684
+ spacing: 2,
16685
+ justifyContent: "center"
16686
+ }, actions))));
15420
16687
  };
15421
16688
 
15422
16689
  var wellKnownSymbol$a = wellKnownSymbol$f;
@@ -15936,7 +17203,7 @@ const DrawerComponent = ({
15936
17203
  const mostrarAcciones = () => {
15937
17204
  setShowActions(true);
15938
17205
  };
15939
- return jsx(Drawer$1, {
17206
+ return /*#__PURE__*/React__default.createElement(Drawer$1, {
15940
17207
  anchor: anchor,
15941
17208
  open: open,
15942
17209
  onClose: onClose,
@@ -15944,35 +17211,233 @@ const DrawerComponent = ({
15944
17211
  style: {
15945
17212
  borderRadius: "8px 0px 0px 0px"
15946
17213
  }
15947
- },
15948
- children: jsxs(Box$2, {
15949
- sx: stylesDrawerContainer,
15950
- children: [jsxs(Box$2, {
15951
- sx: stylesEncabezado,
15952
- children: [jsx(Typography$1, {
15953
- variant: "h6",
15954
- children: titulo
15955
- }), jsx(Box$2, {
15956
- children: jsx(IconButton$1, {
15957
- onClick: onClose,
15958
- size: "small",
15959
- children: jsx(default_1, {
15960
- fontSize: "small"
15961
- })
15962
- })
15963
- })]
15964
- }), jsx(Box$2, {
15965
- onClick: mostrarAcciones,
15966
- sx: stylesContenido,
15967
- children: children
15968
- }), showActions && jsx(Box$2, {
15969
- sx: stylesAcciones,
15970
- children: acciones
15971
- })]
17214
+ }
17215
+ }, /*#__PURE__*/React__default.createElement(Box$2, {
17216
+ sx: stylesDrawerContainer
17217
+ }, /*#__PURE__*/React__default.createElement(Box$2, {
17218
+ sx: stylesEncabezado
17219
+ }, /*#__PURE__*/React__default.createElement(Typography$1, {
17220
+ variant: "h6"
17221
+ }, titulo), /*#__PURE__*/React__default.createElement(Box$2, null, /*#__PURE__*/React__default.createElement(IconButton$1, {
17222
+ onClick: onClose,
17223
+ size: "small"
17224
+ }, /*#__PURE__*/React__default.createElement(default_1, {
17225
+ fontSize: "small"
17226
+ })))), /*#__PURE__*/React__default.createElement(Box$2, {
17227
+ onClick: mostrarAcciones,
17228
+ sx: stylesContenido
17229
+ }, children), showActions && /*#__PURE__*/React__default.createElement(Box$2, {
17230
+ sx: stylesAcciones
17231
+ }, acciones)));
17232
+ };
17233
+
17234
+ const ToastContent = styled$1(Stack$1)(() => ({
17235
+ position: "fixed",
17236
+ zIndex: 1400,
17237
+ boxShadow: "0px 5px 5px -3px rgba(24, 39, 75, 0.2), 0px 8px 10px 1px rgba(24, 39, 75, 0.14), 0px 3px 14px 2px rgba(24, 39, 75, 0.12)",
17238
+ right: 16,
17239
+ marginTop: 16
17240
+ }));
17241
+ const ContentBox = styled$1(Box$2)(({
17242
+ theme
17243
+ }) => ({
17244
+ padding: theme.spacing(1.5),
17245
+ gap: theme.spacing(1.5),
17246
+ display: "flex",
17247
+ alignItems: "center",
17248
+ "&.color-error": {
17249
+ backgroundColor: "#FEEBEE"
17250
+ },
17251
+ "&.color-info": {
17252
+ backgroundColor: "#E1F5FE"
17253
+ },
17254
+ "&.color-warning": {
17255
+ backgroundColor: "#FFF3E0"
17256
+ },
17257
+ "&.color-success": {
17258
+ backgroundColor: "#E8F5E9"
17259
+ }
17260
+ }));
17261
+ const RippleIcon = styled$1(Stack$1)(({
17262
+ theme
17263
+ }) => ({
17264
+ padding: theme.spacing(1),
17265
+ gap: theme.spacing(1),
17266
+ height: 20,
17267
+ borderRadius: 50,
17268
+ "&.ripple-error": {
17269
+ backgroundColor: "#D143431F"
17270
+ },
17271
+ "&.ripple-info": {
17272
+ backgroundColor: "#2D9FC51F"
17273
+ },
17274
+ "&.ripple-warning": {
17275
+ backgroundColor: "#FB85001F"
17276
+ },
17277
+ "&.ripple-success": {
17278
+ backgroundColor: "#8FC93A1F"
17279
+ }
17280
+ }));
17281
+ const ContentIcon = styled$1(Stack$1)(({
17282
+ theme
17283
+ }) => ({
17284
+ "&.icon-color.color-info": {
17285
+ color: theme.palette.info.main
17286
+ },
17287
+ "&.icon-color.color-error": {
17288
+ color: theme.palette.error.main
17289
+ },
17290
+ "&.icon-color.color-warning": {
17291
+ color: theme.palette.warning.main
17292
+ },
17293
+ "&.icon-color.color-success": {
17294
+ color: theme.palette.success.main
17295
+ }
17296
+ }));
17297
+ const ToastNotification = toast => {
17298
+ const [openToast, setOpenToast] = useState(true);
17299
+ const [showOptions, setShowOptions] = useState(true);
17300
+ const [progress, setProgress] = useState(100);
17301
+ const timeProgress = toast.time || 8000;
17302
+ const IconMap = {
17303
+ success: /*#__PURE__*/React__default.createElement(CheckCircleRounded, null),
17304
+ error: /*#__PURE__*/React__default.createElement(ErrorRounded, null),
17305
+ warning: /*#__PURE__*/React__default.createElement(WarningRounded, null),
17306
+ info: /*#__PURE__*/React__default.createElement(InfoRounded, null)
17307
+ };
17308
+ const ToastIcon = IconMap[toast.type || "info"];
17309
+ const colorMap = {
17310
+ success: "success",
17311
+ error: "error",
17312
+ warning: "warning",
17313
+ info: "info"
17314
+ };
17315
+ const colors = colorMap[toast.type || "info"];
17316
+ const toastPosition = {
17317
+ center: "center",
17318
+ end: "end",
17319
+ start: "start"
17320
+ };
17321
+ toastPosition[toast.position || "end"];
17322
+ const close = () => {
17323
+ setOpenToast(false);
17324
+ };
17325
+ const toggleOptions = () => {
17326
+ setShowOptions(prevShowOptions => !prevShowOptions);
17327
+ };
17328
+ const seeOptions = toast.seeMore;
17329
+ useEffect(() => {
17330
+ let seconds = 0;
17331
+ const interval = setInterval(() => {
17332
+ seconds += 100;
17333
+ const progress = 100 - seconds / timeProgress * 100;
17334
+ setProgress(progress <= 0 ? 0 : progress);
17335
+ }, 100);
17336
+ const closeTimeout = setTimeout(() => {
17337
+ clearInterval(interval);
17338
+ setOpenToast(false);
17339
+ }, timeProgress);
17340
+ return () => {
17341
+ clearInterval(interval);
17342
+ clearTimeout(closeTimeout);
17343
+ };
17344
+ }, [timeProgress]);
17345
+ return /*#__PURE__*/React__default.createElement(React__default.Fragment, null, openToast && /*#__PURE__*/React__default.createElement(ThemeProvider, {
17346
+ theme: SincoTheme
17347
+ }, /*#__PURE__*/React__default.createElement(Stack$1, {
17348
+ height: 105,
17349
+ top: 16,
17350
+ right: 16,
17351
+ position: "absolute",
17352
+ zIndex: 1400
17353
+ }, /*#__PURE__*/React__default.createElement(ToastContent, {
17354
+ position: "fixed"
17355
+ }, /*#__PURE__*/React__default.createElement(ContentBox, {
17356
+ className: `color-${toast.type || "info"}`
17357
+ }, toast && /*#__PURE__*/React__default.createElement(RippleIcon, {
17358
+ className: `ripple-${toast.type || "info"}`
17359
+ }, /*#__PURE__*/React__default.createElement(ContentIcon, {
17360
+ className: `icon-color color-${toast.type || "info"}`
17361
+ }, ToastIcon)), /*#__PURE__*/React__default.createElement(Divider$1, {
17362
+ orientation: "vertical",
17363
+ flexItem: true
17364
+ }), /*#__PURE__*/React__default.createElement(Stack$1, {
17365
+ gap: 0.5,
17366
+ width: 285
17367
+ }, /*#__PURE__*/React__default.createElement(Stack$1, {
17368
+ justifyContent: "space-between",
17369
+ flexDirection: "row",
17370
+ alignItems: "center"
17371
+ }, /*#__PURE__*/React__default.createElement(Typography$1, {
17372
+ variant: "subtitle2",
17373
+ color: "text.primary"
17374
+ }, toast.title), /*#__PURE__*/React__default.createElement(IconButton$1, {
17375
+ size: "small",
17376
+ "aria-label": "delete",
17377
+ onClick: close
17378
+ }, /*#__PURE__*/React__default.createElement(Close$1, null))), /*#__PURE__*/React__default.createElement(Stack$1, {
17379
+ gap: "4px"
17380
+ }, /*#__PURE__*/React__default.createElement(Typography$1, {
17381
+ color: "text.primary",
17382
+ variant: "body2"
17383
+ }, toast.subtitle), !showOptions && toast.dataOpt && toast.dataOpt.length > 0 && /*#__PURE__*/React__default.createElement("ul", {
17384
+ style: {
17385
+ paddingLeft: 15,
17386
+ marginBlock: 0,
17387
+ fontSize: 11,
17388
+ color: "#101840de"
17389
+ }
17390
+ }, toast.dataOpt.map((element, i) => {
17391
+ const keyElement = Object.keys(element);
17392
+ let options = "";
17393
+ for (let _i = 0; _i < keyElement.length; _i++) {
17394
+ options += element[keyElement[_i]];
17395
+ }
17396
+ return /*#__PURE__*/React__default.createElement("li", {
17397
+ style: {
17398
+ width: "fit-content"
17399
+ },
17400
+ key: i
17401
+ }, /*#__PURE__*/React__default.createElement(Typography$1, {
17402
+ variant: "caption"
17403
+ }, options));
17404
+ }))), /*#__PURE__*/React__default.createElement(Stack$1, {
17405
+ justifyContent: "flex-end",
17406
+ flexDirection: "row",
17407
+ alignItems: "flex-end"
17408
+ }, toast.actions && /*#__PURE__*/React__default.createElement(Stack$1, {
17409
+ flexDirection: "row",
17410
+ gap: 1
17411
+ }, toast.actions), seeOptions && /*#__PURE__*/React__default.createElement(Button$1, {
17412
+ onClick: toggleOptions,
17413
+ size: "small",
17414
+ variant: "text",
17415
+ color: colors,
17416
+ endIcon: showOptions ? /*#__PURE__*/React__default.createElement(ArrowDownward, {
17417
+ fontSize: "small"
17418
+ }) : /*#__PURE__*/React__default.createElement(ArrowUpward, {
17419
+ fontSize: "small"
15972
17420
  })
15973
- });
17421
+ }, showOptions ? "Ver más" : "Ver menos")))), /*#__PURE__*/React__default.createElement(LinearProgress$1, {
17422
+ color: colors,
17423
+ variant: "determinate",
17424
+ value: progress
17425
+ })))));
15974
17426
  };
15975
17427
 
17428
+ const PageContent = styled$1(Stack$1)(({
17429
+ theme
17430
+ }) => ({
17431
+ backgroundColor: "#fff",
17432
+ 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)",
17433
+ zIndex: 100,
17434
+ padding: "8px 24px",
17435
+ justifyContent: "space-between",
17436
+ minHeight: 39,
17437
+ position: "fixed",
17438
+ width: "100%"
17439
+ }));
17440
+
15976
17441
  var classof$2 = classofRaw$2;
15977
17442
 
15978
17443
  var engineIsNode = typeof process != 'undefined' && classof$2(process) == 'process';
@@ -21428,4 +22893,4 @@ const useDynamicColor = url => {
21428
22893
  };
21429
22894
  };
21430
22895
 
21431
- export { DrawerComponent, EmptyState, SincoTheme, UrlImage, useDynamicColor };
22896
+ export { DrawerComponent, EmptyState, PageContent, SincoTheme, ToastNotification, UrlImage, dynamicColor, useDynamicColor };