@sinco/react 1.0.13-rc.0 → 1.0.13-rc.2

Sign up to get free protection for your applications and to get access to all the features.
package/index.js CHANGED
@@ -6247,7 +6247,7 @@ function _objectWithoutPropertiesLoose$2(source, excluded) {
6247
6247
  return target;
6248
6248
  }
6249
6249
 
6250
- const _excluded$r = ["values", "unit", "step"];
6250
+ const _excluded$u = ["values", "unit", "step"];
6251
6251
  const sortBreakpointsValues = values => {
6252
6252
  const breakpointsAsArray = Object.keys(values).map(key => ({
6253
6253
  key,
@@ -6282,7 +6282,7 @@ function createBreakpoints(breakpoints) {
6282
6282
  unit = 'px',
6283
6283
  step = 5
6284
6284
  } = breakpoints,
6285
- other = _objectWithoutPropertiesLoose$2(breakpoints, _excluded$r);
6285
+ other = _objectWithoutPropertiesLoose$2(breakpoints, _excluded$u);
6286
6286
  const sortedValues = sortBreakpointsValues(values);
6287
6287
  const keys = Object.keys(sortedValues);
6288
6288
  function up(key) {
@@ -7378,7 +7378,7 @@ const styleFunctionSx = unstable_createStyleFunctionSx();
7378
7378
  styleFunctionSx.filterProps = ['sx'];
7379
7379
  var styleFunctionSx$1 = styleFunctionSx;
7380
7380
 
7381
- const _excluded$q = ["breakpoints", "palette", "spacing", "shape"];
7381
+ const _excluded$t = ["breakpoints", "palette", "spacing", "shape"];
7382
7382
  function createTheme$1(options = {}, ...args) {
7383
7383
  const {
7384
7384
  breakpoints: breakpointsInput = {},
@@ -7386,7 +7386,7 @@ function createTheme$1(options = {}, ...args) {
7386
7386
  spacing: spacingInput,
7387
7387
  shape: shapeInput = {}
7388
7388
  } = options,
7389
- other = _objectWithoutPropertiesLoose$2(options, _excluded$q);
7389
+ other = _objectWithoutPropertiesLoose$2(options, _excluded$t);
7390
7390
  const breakpoints = createBreakpoints(breakpointsInput);
7391
7391
  const spacing = createSpacing(spacingInput);
7392
7392
  let muiTheme = deepmerge({
@@ -7424,7 +7424,7 @@ function useTheme$2(defaultTheme = systemDefaultTheme$1) {
7424
7424
  return useTheme$3(defaultTheme);
7425
7425
  }
7426
7426
 
7427
- const _excluded$p = ["sx"];
7427
+ const _excluded$s = ["sx"];
7428
7428
  const splitProps = props => {
7429
7429
  var _props$theme$unstable, _props$theme;
7430
7430
  const result = {
@@ -7445,7 +7445,7 @@ function extendSxProp(props) {
7445
7445
  const {
7446
7446
  sx: inSx
7447
7447
  } = props,
7448
- other = _objectWithoutPropertiesLoose$2(props, _excluded$p);
7448
+ other = _objectWithoutPropertiesLoose$2(props, _excluded$s);
7449
7449
  const {
7450
7450
  systemProps,
7451
7451
  otherProps
@@ -7471,7 +7471,7 @@ function extendSxProp(props) {
7471
7471
 
7472
7472
  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}
7473
7473
 
7474
- const _excluded$o = ["className", "component"];
7474
+ const _excluded$r = ["className", "component"];
7475
7475
  function createBox(options = {}) {
7476
7476
  const {
7477
7477
  themeId,
@@ -7489,7 +7489,7 @@ function createBox(options = {}) {
7489
7489
  className,
7490
7490
  component = 'div'
7491
7491
  } = _extendSxProp,
7492
- other = _objectWithoutPropertiesLoose$2(_extendSxProp, _excluded$o);
7492
+ other = _objectWithoutPropertiesLoose$2(_extendSxProp, _excluded$r);
7493
7493
  return /*#__PURE__*/jsx(BoxRoot, _extends$2({
7494
7494
  as: component,
7495
7495
  ref: ref,
@@ -7500,7 +7500,7 @@ function createBox(options = {}) {
7500
7500
  return Box;
7501
7501
  }
7502
7502
 
7503
- const _excluded$n = ["variant"];
7503
+ const _excluded$q = ["variant"];
7504
7504
  function isEmpty$1(string) {
7505
7505
  return string.length === 0;
7506
7506
  }
@@ -7514,7 +7514,7 @@ function propsToClassKey(props) {
7514
7514
  const {
7515
7515
  variant
7516
7516
  } = props,
7517
- other = _objectWithoutPropertiesLoose$2(props, _excluded$n);
7517
+ other = _objectWithoutPropertiesLoose$2(props, _excluded$q);
7518
7518
  let classKey = variant || '';
7519
7519
  Object.keys(other).sort().forEach(key => {
7520
7520
  if (key === 'color') {
@@ -7526,7 +7526,7 @@ function propsToClassKey(props) {
7526
7526
  return classKey;
7527
7527
  }
7528
7528
 
7529
- const _excluded$m = ["name", "slot", "skipVariantsResolver", "skipSx", "overridesResolver"];
7529
+ const _excluded$p = ["name", "slot", "skipVariantsResolver", "skipSx", "overridesResolver"];
7530
7530
  function isEmpty(obj) {
7531
7531
  return Object.keys(obj).length === 0;
7532
7532
  }
@@ -7632,7 +7632,7 @@ function createStyled(input = {}) {
7632
7632
  // For more details: https://github.com/mui/material-ui/pull/37908
7633
7633
  overridesResolver = defaultOverridesResolver(lowercaseFirstLetter(componentSlot))
7634
7634
  } = inputOptions,
7635
- options = _objectWithoutPropertiesLoose$2(inputOptions, _excluded$m);
7635
+ options = _objectWithoutPropertiesLoose$2(inputOptions, _excluded$p);
7636
7636
 
7637
7637
  // if skipVariantsResolver option is defined, take the value, otherwise, true for root and false for other slots.
7638
7638
  const skipVariantsResolver = inputSkipVariantsResolver !== undefined ? inputSkipVariantsResolver :
@@ -8182,7 +8182,7 @@ if (process.env.NODE_ENV !== 'production') {
8182
8182
  process.env.NODE_ENV !== "production" ? ThemeProvider$1.propTypes = exactProp(ThemeProvider$1.propTypes) : void 0;
8183
8183
  }
8184
8184
 
8185
- const _excluded$l = ["component", "direction", "spacing", "divider", "children", "className", "useFlexGap"];
8185
+ const _excluded$o = ["component", "direction", "spacing", "divider", "children", "className", "useFlexGap"];
8186
8186
  const defaultTheme$3 = createTheme$1();
8187
8187
  // widening Theme to any so that the consumer can own the theme structure.
8188
8188
  const defaultCreateStyledComponent = systemStyled('div', {
@@ -8315,7 +8315,7 @@ function createStack(options = {}) {
8315
8315
  className,
8316
8316
  useFlexGap = false
8317
8317
  } = props,
8318
- other = _objectWithoutPropertiesLoose$2(props, _excluded$l);
8318
+ other = _objectWithoutPropertiesLoose$2(props, _excluded$o);
8319
8319
  const ownerState = {
8320
8320
  direction,
8321
8321
  spacing,
@@ -8489,7 +8489,7 @@ const green = {
8489
8489
  };
8490
8490
  var green$1 = green;
8491
8491
 
8492
- const _excluded$k = ["mode", "contrastThreshold", "tonalOffset"];
8492
+ const _excluded$n = ["mode", "contrastThreshold", "tonalOffset"];
8493
8493
  const light = {
8494
8494
  // The colors used to style the text.
8495
8495
  text: {
@@ -8658,7 +8658,7 @@ function createPalette(palette) {
8658
8658
  contrastThreshold = 3,
8659
8659
  tonalOffset = 0.2
8660
8660
  } = palette,
8661
- other = _objectWithoutPropertiesLoose$3(palette, _excluded$k);
8661
+ other = _objectWithoutPropertiesLoose$3(palette, _excluded$n);
8662
8662
  const primary = palette.primary || getDefaultPrimary(mode);
8663
8663
  const secondary = palette.secondary || getDefaultSecondary(mode);
8664
8664
  const error = palette.error || getDefaultError(mode);
@@ -8782,7 +8782,7 @@ const theme2 = createTheme({ palette: {
8782
8782
  return paletteOutput;
8783
8783
  }
8784
8784
 
8785
- const _excluded$j = ["fontFamily", "fontSize", "fontWeightLight", "fontWeightRegular", "fontWeightMedium", "fontWeightBold", "htmlFontSize", "allVariants", "pxToRem"];
8785
+ const _excluded$m = ["fontFamily", "fontSize", "fontWeightLight", "fontWeightRegular", "fontWeightMedium", "fontWeightBold", "htmlFontSize", "allVariants", "pxToRem"];
8786
8786
  function round(value) {
8787
8787
  return Math.round(value * 1e5) / 1e5;
8788
8788
  }
@@ -8813,7 +8813,7 @@ function createTypography(palette, typography) {
8813
8813
  allVariants,
8814
8814
  pxToRem: pxToRem2
8815
8815
  } = _ref,
8816
- other = _objectWithoutPropertiesLoose$3(_ref, _excluded$j);
8816
+ other = _objectWithoutPropertiesLoose$3(_ref, _excluded$m);
8817
8817
  if (process.env.NODE_ENV !== 'production') {
8818
8818
  if (typeof fontSize !== 'number') {
8819
8819
  console.error('MUI: `fontSize` is required to be a number.');
@@ -8881,7 +8881,7 @@ function createShadow(...px) {
8881
8881
  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)];
8882
8882
  var shadows$1 = shadows;
8883
8883
 
8884
- const _excluded$i = ["duration", "easing", "delay"];
8884
+ const _excluded$l = ["duration", "easing", "delay"];
8885
8885
  // Follow https://material.google.com/motion/duration-easing.html#duration-easing-natural-easing-curves
8886
8886
  // to learn the context in which each easing should be used.
8887
8887
  const easing = {
@@ -8932,7 +8932,7 @@ function createTransitions(inputTransitions) {
8932
8932
  easing: easingOption = mergedEasing.easeInOut,
8933
8933
  delay = 0
8934
8934
  } = options,
8935
- other = _objectWithoutPropertiesLoose$3(options, _excluded$i);
8935
+ other = _objectWithoutPropertiesLoose$3(options, _excluded$l);
8936
8936
  if (process.env.NODE_ENV !== 'production') {
8937
8937
  const isString = value => typeof value === 'string';
8938
8938
  // IE11 support, replace with Number.isNaN
@@ -8982,7 +8982,7 @@ const zIndex = {
8982
8982
  };
8983
8983
  var zIndex$1 = zIndex;
8984
8984
 
8985
- const _excluded$h = ["breakpoints", "mixins", "spacing", "palette", "transitions", "typography", "shape"];
8985
+ const _excluded$k = ["breakpoints", "mixins", "spacing", "palette", "transitions", "typography", "shape"];
8986
8986
  function createTheme(options = {}, ...args) {
8987
8987
  const {
8988
8988
  mixins: mixinsInput = {},
@@ -8990,7 +8990,7 @@ function createTheme(options = {}, ...args) {
8990
8990
  transitions: transitionsInput = {},
8991
8991
  typography: typographyInput = {}
8992
8992
  } = options,
8993
- other = _objectWithoutPropertiesLoose$3(options, _excluded$h);
8993
+ other = _objectWithoutPropertiesLoose$3(options, _excluded$k);
8994
8994
  if (options.vars) {
8995
8995
  throw new Error(process.env.NODE_ENV !== "production" ? `MUI: \`vars\` is a private field used for CSS variables support.
8996
8996
  Please use another name.` : formatMuiErrorMessage(18));
@@ -9080,12 +9080,12 @@ const styled = createStyled({
9080
9080
  });
9081
9081
  var styled$1 = styled;
9082
9082
 
9083
- const _excluded$g = ["theme"];
9083
+ const _excluded$j = ["theme"];
9084
9084
  function ThemeProvider(_ref) {
9085
9085
  let {
9086
9086
  theme: themeInput
9087
9087
  } = _ref,
9088
- props = _objectWithoutPropertiesLoose$3(_ref, _excluded$g);
9088
+ props = _objectWithoutPropertiesLoose$3(_ref, _excluded$j);
9089
9089
  const scopedTheme = themeInput[THEME_ID];
9090
9090
  return /*#__PURE__*/jsx(ThemeProvider$1, _extends$4({}, props, {
9091
9091
  themeId: scopedTheme ? THEME_ID : undefined,
@@ -9120,8 +9120,8 @@ function getSvgIconUtilityClass(slot) {
9120
9120
  }
9121
9121
  generateUtilityClasses('MuiSvgIcon', ['root', 'colorPrimary', 'colorSecondary', 'colorAction', 'colorError', 'colorDisabled', 'fontSizeInherit', 'fontSizeSmall', 'fontSizeMedium', 'fontSizeLarge']);
9122
9122
 
9123
- const _excluded$f = ["children", "className", "color", "component", "fontSize", "htmlColor", "inheritViewBox", "titleAccess", "viewBox"];
9124
- const useUtilityClasses$b = ownerState => {
9123
+ const _excluded$i = ["children", "className", "color", "component", "fontSize", "htmlColor", "inheritViewBox", "titleAccess", "viewBox"];
9124
+ const useUtilityClasses$e = ownerState => {
9125
9125
  const {
9126
9126
  color,
9127
9127
  fontSize,
@@ -9188,7 +9188,7 @@ const SvgIcon = /*#__PURE__*/React.forwardRef(function SvgIcon(inProps, ref) {
9188
9188
  titleAccess,
9189
9189
  viewBox = '0 0 24 24'
9190
9190
  } = props,
9191
- other = _objectWithoutPropertiesLoose$3(props, _excluded$f);
9191
+ other = _objectWithoutPropertiesLoose$3(props, _excluded$i);
9192
9192
  const hasSvgAsChild = /*#__PURE__*/React.isValidElement(children) && children.type === 'svg';
9193
9193
  const ownerState = _extends$4({}, props, {
9194
9194
  color,
@@ -9203,7 +9203,7 @@ const SvgIcon = /*#__PURE__*/React.forwardRef(function SvgIcon(inProps, ref) {
9203
9203
  if (!inheritViewBox) {
9204
9204
  more.viewBox = viewBox;
9205
9205
  }
9206
- const classes = useUtilityClasses$b(ownerState);
9206
+ const classes = useUtilityClasses$e(ownerState);
9207
9207
  return /*#__PURE__*/jsxs(SvgIconRoot, _extends$4({
9208
9208
  as: component,
9209
9209
  className: clsx(classes.root, className),
@@ -9345,10 +9345,22 @@ var utils = /*#__PURE__*/Object.freeze({
9345
9345
  useIsFocusVisible: useIsFocusVisible
9346
9346
  });
9347
9347
 
9348
+ var ArrowDownward = createSvgIcon$1( /*#__PURE__*/jsx("path", {
9349
+ d: "m20 12-1.41-1.41L13 16.17V4h-2v12.17l-5.58-5.59L4 12l8 8 8-8z"
9350
+ }), 'ArrowDownward');
9351
+
9352
+ var ArrowUpward = createSvgIcon$1( /*#__PURE__*/jsx("path", {
9353
+ d: "m4 12 1.41 1.41L11 7.83V20h2V7.83l5.58 5.59L20 12l-8-8-8 8z"
9354
+ }), 'ArrowUpward');
9355
+
9348
9356
  var CheckCircleRounded = createSvgIcon$1( /*#__PURE__*/jsx("path", {
9349
9357
  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"
9350
9358
  }), 'CheckCircleRounded');
9351
9359
 
9360
+ var Close$1 = createSvgIcon$1( /*#__PURE__*/jsx("path", {
9361
+ 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"
9362
+ }), 'Close');
9363
+
9352
9364
  var ErrorRounded = createSvgIcon$1( /*#__PURE__*/jsx("path", {
9353
9365
  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"
9354
9366
  }), 'ErrorRounded');
@@ -9540,19 +9552,157 @@ const components = {
9540
9552
  height: 30
9541
9553
  },
9542
9554
  root: {
9543
- height: "inherit",
9544
9555
  borderRadius: 4,
9556
+ "&.MuiChip-filled.MuiChip-colorPrimary": {
9557
+ color: "#101840de",
9558
+ backgroundColor: "#E4ECF4",
9559
+ "&:hover": {
9560
+ backgroundColor: "#BCD0E3"
9561
+ },
9562
+ ".MuiChip-deleteIcon": {
9563
+ color: "#90B1D0",
9564
+ "&:hover": {
9565
+ color: "#6392BD"
9566
+ }
9567
+ }
9568
+ },
9569
+ "&.MuiChip-filled.MuiChip-colorSecondary": {
9570
+ color: "#101840de",
9571
+ backgroundColor: "#E0F7FA",
9572
+ "&:hover": {
9573
+ backgroundColor: "#B3EBF2"
9574
+ },
9575
+ ".MuiChip-deleteIcon": {
9576
+ color: "#80DEEA",
9577
+ "&:hover": {
9578
+ color: "#4DD0E1"
9579
+ }
9580
+ }
9581
+ },
9582
+ "&.MuiChip-filled.MuiChip-colorError": {
9583
+ color: "#101840de",
9584
+ backgroundColor: "#F9E8E8",
9585
+ "&:hover": {
9586
+ backgroundColor: "#F1C7C7"
9587
+ },
9588
+ ".MuiChip-deleteIcon": {
9589
+ color: "#E8A1A1",
9590
+ "&:hover": {
9591
+ color: "#DF7B7B"
9592
+ }
9593
+ }
9594
+ },
9595
+ "&.MuiChip-filled.MuiChip-colorSuccess": {
9596
+ color: "#101840de",
9597
+ backgroundColor: "#F2F9E7",
9598
+ "&:hover": {
9599
+ backgroundColor: "#DDEFC4"
9600
+ },
9601
+ ".MuiChip-deleteIcon": {
9602
+ color: "#C7E49D",
9603
+ "&:hover": {
9604
+ color: "#A0D158"
9605
+ }
9606
+ }
9607
+ },
9608
+ "&.MuiChip-filled.MuiChip-colorInfo": {
9609
+ color: "#101840de",
9610
+ backgroundColor: "#E6F3F8",
9611
+ "&:hover": {
9612
+ backgroundColor: "#C0E2EE"
9613
+ },
9614
+ ".MuiChip-deleteIcon": {
9615
+ color: "#96CFE2",
9616
+ "&:hover": {
9617
+ color: "#6CBCD6"
9618
+ }
9619
+ }
9620
+ },
9621
+ "&.MuiChip-filled.MuiChip-colorWarning": {
9622
+ color: "#101840de",
9623
+ backgroundColor: "#FFF0E0",
9624
+ "&:hover": {
9625
+ backgroundColor: "#FEDAB3"
9626
+ },
9627
+ ".MuiChip-deleteIcon": {
9628
+ color: "#FDC280",
9629
+ "&:hover": {
9630
+ color: "#FCAA4D"
9631
+ }
9632
+ }
9633
+ },
9634
+ //////
9635
+ "&.MuiChip-outlined.MuiChip-colorPrimary": {
9636
+ color: "#2063A0",
9637
+ border: "solid 1px #90B1D0",
9638
+ ".MuiChip-deleteIcon": {
9639
+ color: "#90B1D0",
9640
+ "&:hover": {
9641
+ color: "#6392BD"
9642
+ }
9643
+ }
9644
+ },
9645
+ "&.MuiChip-outlined.MuiChip-colorSecondary": {
9646
+ color: "#00BCD4",
9647
+ border: "solid 1px #80DEEA",
9648
+ ".MuiChip-deleteIcon": {
9649
+ color: "#80DEEA",
9650
+ "&:hover": {
9651
+ color: "#80DEEA"
9652
+ }
9653
+ }
9654
+ },
9655
+ "&.MuiChip-outlined.MuiChip-colorError": {
9656
+ color: "#D14343",
9657
+ border: "solid 1px #E8A1A1",
9658
+ ".MuiChip-deleteIcon": {
9659
+ color: "#E8A1A1",
9660
+ "&:hover": {
9661
+ color: "#DF7B7B"
9662
+ }
9663
+ }
9664
+ },
9665
+ "&.MuiChip-outlined.MuiChip-colorSuccess": {
9666
+ color: "#8FC93A",
9667
+ border: "solid 1px #C7E49D",
9668
+ ".MuiChip-deleteIcon": {
9669
+ color: "#C7E49D",
9670
+ "&:hover": {
9671
+ color: "#B1D975"
9672
+ }
9673
+ }
9674
+ },
9675
+ "&.MuiChip-outlined.MuiChip-colorInfo": {
9676
+ color: "#2D9FC5",
9677
+ border: "solid 1px #96CFE2",
9678
+ ".MuiChip-deleteIcon": {
9679
+ color: "#96CFE2",
9680
+ "&:hover": {
9681
+ color: "#6CBCD6s"
9682
+ }
9683
+ }
9684
+ },
9685
+ "&.MuiChip-outlined.MuiChip-colorWarning": {
9686
+ color: "#FB8500",
9687
+ border: "solid 1px #FDC280",
9688
+ ".MuiChip-deleteIcon": {
9689
+ color: "#FDC280",
9690
+ "&:hover": {
9691
+ color: "#FCAA4D"
9692
+ }
9693
+ }
9694
+ },
9545
9695
  ".MuiChip-deleteIconXsmall": {
9546
9696
  height: 12,
9547
9697
  width: 12
9548
9698
  },
9549
9699
  ".MuiChip-deleteIconSmall": {
9550
9700
  height: 16,
9551
- widht: 16
9701
+ width: 16
9552
9702
  },
9553
9703
  ".MuiChip-deleteIconMedium": {
9554
9704
  height: 20,
9555
- widht: 20
9705
+ width: 20
9556
9706
  }
9557
9707
  }
9558
9708
  }
@@ -9577,24 +9727,6 @@ const components = {
9577
9727
  },
9578
9728
  MuiButton: {
9579
9729
  styleOverrides: {
9580
- root: {
9581
- alignItems: "center"
9582
- },
9583
- endIcon: {
9584
- marginLeft: 2
9585
- },
9586
- iconSizeSmall: {
9587
- height: 14,
9588
- width: 14
9589
- },
9590
- iconSizeMedium: {
9591
- height: 18,
9592
- width: 18
9593
- },
9594
- iconSizeLarge: {
9595
- height: 18,
9596
- width: 22
9597
- },
9598
9730
  sizeSmall: {
9599
9731
  height: 26,
9600
9732
  ".MuiSvgIcon-fontSizeSmall": {
@@ -11730,8 +11862,8 @@ function getPaperUtilityClass(slot) {
11730
11862
  }
11731
11863
  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']);
11732
11864
 
11733
- const _excluded$e = ["className", "component", "elevation", "square", "variant"];
11734
- const useUtilityClasses$a = ownerState => {
11865
+ const _excluded$h = ["className", "component", "elevation", "square", "variant"];
11866
+ const useUtilityClasses$d = ownerState => {
11735
11867
  const {
11736
11868
  square,
11737
11869
  elevation,
@@ -11785,14 +11917,14 @@ const Paper = /*#__PURE__*/React.forwardRef(function Paper(inProps, ref) {
11785
11917
  square = false,
11786
11918
  variant = 'elevation'
11787
11919
  } = props,
11788
- other = _objectWithoutPropertiesLoose$3(props, _excluded$e);
11920
+ other = _objectWithoutPropertiesLoose$3(props, _excluded$h);
11789
11921
  const ownerState = _extends$4({}, props, {
11790
11922
  component,
11791
11923
  elevation,
11792
11924
  square,
11793
11925
  variant
11794
11926
  });
11795
- const classes = useUtilityClasses$a(ownerState);
11927
+ const classes = useUtilityClasses$d(ownerState);
11796
11928
  if (process.env.NODE_ENV !== 'production') {
11797
11929
  // eslint-disable-next-line react-hooks/rules-of-hooks
11798
11930
  const theme = useTheme();
@@ -11943,15 +12075,15 @@ process.env.NODE_ENV !== "production" ? Ripple.propTypes = {
11943
12075
  const touchRippleClasses = generateUtilityClasses('MuiTouchRipple', ['root', 'ripple', 'rippleVisible', 'ripplePulsate', 'child', 'childLeaving', 'childPulsate']);
11944
12076
  var touchRippleClasses$1 = touchRippleClasses;
11945
12077
 
11946
- const _excluded$d = ["center", "classes", "className"];
11947
- let _ = t => t,
11948
- _t,
11949
- _t2,
11950
- _t3,
11951
- _t4;
12078
+ const _excluded$g = ["center", "classes", "className"];
12079
+ let _$1 = t => t,
12080
+ _t$1,
12081
+ _t2$1,
12082
+ _t3$1,
12083
+ _t4$1;
11952
12084
  const DURATION = 550;
11953
12085
  const DELAY_RIPPLE = 80;
11954
- const enterKeyframe = keyframes(_t || (_t = _`
12086
+ const enterKeyframe = keyframes(_t$1 || (_t$1 = _$1`
11955
12087
  0% {
11956
12088
  transform: scale(0);
11957
12089
  opacity: 0.1;
@@ -11962,7 +12094,7 @@ const enterKeyframe = keyframes(_t || (_t = _`
11962
12094
  opacity: 0.3;
11963
12095
  }
11964
12096
  `));
11965
- const exitKeyframe = keyframes(_t2 || (_t2 = _`
12097
+ const exitKeyframe = keyframes(_t2$1 || (_t2$1 = _$1`
11966
12098
  0% {
11967
12099
  opacity: 1;
11968
12100
  }
@@ -11971,7 +12103,7 @@ const exitKeyframe = keyframes(_t2 || (_t2 = _`
11971
12103
  opacity: 0;
11972
12104
  }
11973
12105
  `));
11974
- const pulsateKeyframe = keyframes(_t3 || (_t3 = _`
12106
+ const pulsateKeyframe = keyframes(_t3$1 || (_t3$1 = _$1`
11975
12107
  0% {
11976
12108
  transform: scale(1);
11977
12109
  }
@@ -12004,7 +12136,7 @@ const TouchRippleRoot = styled$1('span', {
12004
12136
  const TouchRippleRipple = styled$1(Ripple, {
12005
12137
  name: 'MuiTouchRipple',
12006
12138
  slot: 'Ripple'
12007
- })(_t4 || (_t4 = _`
12139
+ })(_t4$1 || (_t4$1 = _$1`
12008
12140
  opacity: 0;
12009
12141
  position: absolute;
12010
12142
 
@@ -12072,7 +12204,7 @@ const TouchRipple = /*#__PURE__*/React.forwardRef(function TouchRipple(inProps,
12072
12204
  classes = {},
12073
12205
  className
12074
12206
  } = props,
12075
- other = _objectWithoutPropertiesLoose$3(props, _excluded$d);
12207
+ other = _objectWithoutPropertiesLoose$3(props, _excluded$g);
12076
12208
  const [ripples, setRipples] = React.useState([]);
12077
12209
  const nextKey = React.useRef(0);
12078
12210
  const rippleCallback = React.useRef(null);
@@ -12275,8 +12407,8 @@ function getButtonBaseUtilityClass(slot) {
12275
12407
  const buttonBaseClasses = generateUtilityClasses('MuiButtonBase', ['root', 'disabled', 'focusVisible']);
12276
12408
  var buttonBaseClasses$1 = buttonBaseClasses;
12277
12409
 
12278
- 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"];
12279
- const useUtilityClasses$9 = ownerState => {
12410
+ const _excluded$f = ["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"];
12411
+ const useUtilityClasses$c = ownerState => {
12280
12412
  const {
12281
12413
  disabled,
12282
12414
  focusVisible,
@@ -12377,7 +12509,7 @@ const ButtonBase = /*#__PURE__*/React.forwardRef(function ButtonBase(inProps, re
12377
12509
  touchRippleRef,
12378
12510
  type
12379
12511
  } = props,
12380
- other = _objectWithoutPropertiesLoose$3(props, _excluded$c);
12512
+ other = _objectWithoutPropertiesLoose$3(props, _excluded$f);
12381
12513
  const buttonRef = React.useRef(null);
12382
12514
  const rippleRef = React.useRef(null);
12383
12515
  const handleRippleRef = useForkRef(rippleRef, touchRippleRef);
@@ -12544,7 +12676,7 @@ const ButtonBase = /*#__PURE__*/React.forwardRef(function ButtonBase(inProps, re
12544
12676
  tabIndex,
12545
12677
  focusVisible
12546
12678
  });
12547
- const classes = useUtilityClasses$9(ownerState);
12679
+ const classes = useUtilityClasses$c(ownerState);
12548
12680
  return /*#__PURE__*/jsxs(ButtonBaseRoot, _extends$4({
12549
12681
  as: ComponentProp,
12550
12682
  className: clsx(classes.root, className),
@@ -12741,8 +12873,8 @@ function getIconButtonUtilityClass(slot) {
12741
12873
  const iconButtonClasses = generateUtilityClasses('MuiIconButton', ['root', 'disabled', 'colorInherit', 'colorPrimary', 'colorSecondary', 'colorError', 'colorInfo', 'colorSuccess', 'colorWarning', 'edgeStart', 'edgeEnd', 'sizeSmall', 'sizeMedium', 'sizeLarge']);
12742
12874
  var iconButtonClasses$1 = iconButtonClasses;
12743
12875
 
12744
- const _excluded$b = ["edge", "children", "className", "color", "disabled", "disableFocusRipple", "size"];
12745
- const useUtilityClasses$8 = ownerState => {
12876
+ const _excluded$e = ["edge", "children", "className", "color", "disabled", "disableFocusRipple", "size"];
12877
+ const useUtilityClasses$b = ownerState => {
12746
12878
  const {
12747
12879
  classes,
12748
12880
  disabled,
@@ -12842,7 +12974,7 @@ const IconButton = /*#__PURE__*/React.forwardRef(function IconButton(inProps, re
12842
12974
  disableFocusRipple = false,
12843
12975
  size = 'medium'
12844
12976
  } = props,
12845
- other = _objectWithoutPropertiesLoose$3(props, _excluded$b);
12977
+ other = _objectWithoutPropertiesLoose$3(props, _excluded$e);
12846
12978
  const ownerState = _extends$4({}, props, {
12847
12979
  edge,
12848
12980
  color,
@@ -12850,7 +12982,7 @@ const IconButton = /*#__PURE__*/React.forwardRef(function IconButton(inProps, re
12850
12982
  disableFocusRipple,
12851
12983
  size
12852
12984
  });
12853
- const classes = useUtilityClasses$8(ownerState);
12985
+ const classes = useUtilityClasses$b(ownerState);
12854
12986
  return /*#__PURE__*/jsx(IconButtonRoot, _extends$4({
12855
12987
  className: clsx(classes.root, className),
12856
12988
  centerRipple: true,
@@ -12936,8 +13068,8 @@ function getTypographyUtilityClass(slot) {
12936
13068
  }
12937
13069
  generateUtilityClasses('MuiTypography', ['root', 'h1', 'h2', 'h3', 'h4', 'h5', 'h6', 'subtitle1', 'subtitle2', 'body1', 'body2', 'inherit', 'button', 'caption', 'overline', 'alignLeft', 'alignRight', 'alignCenter', 'alignJustify', 'noWrap', 'gutterBottom', 'paragraph']);
12938
13070
 
12939
- const _excluded$a = ["align", "className", "component", "gutterBottom", "noWrap", "paragraph", "variant", "variantMapping"];
12940
- const useUtilityClasses$7 = ownerState => {
13071
+ const _excluded$d = ["align", "className", "component", "gutterBottom", "noWrap", "paragraph", "variant", "variantMapping"];
13072
+ const useUtilityClasses$a = ownerState => {
12941
13073
  const {
12942
13074
  align,
12943
13075
  gutterBottom,
@@ -13023,7 +13155,7 @@ const Typography = /*#__PURE__*/React.forwardRef(function Typography(inProps, re
13023
13155
  variant = 'body1',
13024
13156
  variantMapping = defaultVariantMapping
13025
13157
  } = props,
13026
- other = _objectWithoutPropertiesLoose$3(props, _excluded$a);
13158
+ other = _objectWithoutPropertiesLoose$3(props, _excluded$d);
13027
13159
  const ownerState = _extends$4({}, props, {
13028
13160
  align,
13029
13161
  color,
@@ -13036,7 +13168,7 @@ const Typography = /*#__PURE__*/React.forwardRef(function Typography(inProps, re
13036
13168
  variantMapping
13037
13169
  });
13038
13170
  const Component = component || (paragraph ? 'p' : variantMapping[variant] || defaultVariantMapping[variant]) || 'span';
13039
- const classes = useUtilityClasses$7(ownerState);
13171
+ const classes = useUtilityClasses$a(ownerState);
13040
13172
  return /*#__PURE__*/jsx(TypographyRoot, _extends$4({
13041
13173
  as: Component,
13042
13174
  ref: ref,
@@ -13126,8 +13258,8 @@ function getAppBarUtilityClass(slot) {
13126
13258
  }
13127
13259
  generateUtilityClasses('MuiAppBar', ['root', 'positionFixed', 'positionAbsolute', 'positionSticky', 'positionStatic', 'positionRelative', 'colorDefault', 'colorPrimary', 'colorSecondary', 'colorInherit', 'colorTransparent']);
13128
13260
 
13129
- const _excluded$9 = ["className", "color", "enableColorOnDark", "position"];
13130
- const useUtilityClasses$6 = ownerState => {
13261
+ const _excluded$c = ["className", "color", "enableColorOnDark", "position"];
13262
+ const useUtilityClasses$9 = ownerState => {
13131
13263
  const {
13132
13264
  color,
13133
13265
  position,
@@ -13232,13 +13364,13 @@ const AppBar = /*#__PURE__*/React.forwardRef(function AppBar(inProps, ref) {
13232
13364
  enableColorOnDark = false,
13233
13365
  position = 'fixed'
13234
13366
  } = props,
13235
- other = _objectWithoutPropertiesLoose$3(props, _excluded$9);
13367
+ other = _objectWithoutPropertiesLoose$3(props, _excluded$c);
13236
13368
  const ownerState = _extends$4({}, props, {
13237
13369
  color,
13238
13370
  position,
13239
13371
  enableColorOnDark
13240
13372
  });
13241
- const classes = useUtilityClasses$6(ownerState);
13373
+ const classes = useUtilityClasses$9(ownerState);
13242
13374
  return /*#__PURE__*/jsx(AppBarRoot, _extends$4({
13243
13375
  square: true,
13244
13376
  component: "header",
@@ -13461,7 +13593,7 @@ function mergeSlotProps(parameters) {
13461
13593
  };
13462
13594
  }
13463
13595
 
13464
- const _excluded$8 = ["elementType", "externalSlotProps", "ownerState", "skipResolvingSlotProps"];
13596
+ const _excluded$b = ["elementType", "externalSlotProps", "ownerState", "skipResolvingSlotProps"];
13465
13597
  /**
13466
13598
  * @ignore - do not document.
13467
13599
  * Builds the props to be passed into the slot of an unstyled component.
@@ -13478,7 +13610,7 @@ function useSlotProps(parameters) {
13478
13610
  ownerState,
13479
13611
  skipResolvingSlotProps = false
13480
13612
  } = parameters,
13481
- rest = _objectWithoutPropertiesLoose(parameters, _excluded$8);
13613
+ rest = _objectWithoutPropertiesLoose(parameters, _excluded$b);
13482
13614
  const resolvedComponentsProps = skipResolvingSlotProps ? {} : resolveComponentProps(externalSlotProps, ownerState);
13483
13615
  const {
13484
13616
  props: mergedProps,
@@ -14306,7 +14438,7 @@ function useModal(parameters) {
14306
14438
  };
14307
14439
  }
14308
14440
 
14309
- const _excluded$7 = ["addEndListener", "appear", "children", "easing", "in", "onEnter", "onEntered", "onEntering", "onExit", "onExited", "onExiting", "style", "timeout", "TransitionComponent"];
14441
+ const _excluded$a = ["addEndListener", "appear", "children", "easing", "in", "onEnter", "onEntered", "onEntering", "onExit", "onExited", "onExiting", "style", "timeout", "TransitionComponent"];
14310
14442
  const styles = {
14311
14443
  entering: {
14312
14444
  opacity: 1
@@ -14343,7 +14475,7 @@ const Fade = /*#__PURE__*/React.forwardRef(function Fade(props, ref) {
14343
14475
  // eslint-disable-next-line react/prop-types
14344
14476
  TransitionComponent = Transition$1
14345
14477
  } = props,
14346
- other = _objectWithoutPropertiesLoose$3(props, _excluded$7);
14478
+ other = _objectWithoutPropertiesLoose$3(props, _excluded$a);
14347
14479
  const nodeRef = React.useRef(null);
14348
14480
  const handleRef = useForkRef(nodeRef, children.ref, ref);
14349
14481
  const normalizedTransitionCallback = callback => maybeIsAppearing => {
@@ -14504,8 +14636,8 @@ function getBackdropUtilityClass(slot) {
14504
14636
  }
14505
14637
  generateUtilityClasses('MuiBackdrop', ['root', 'invisible']);
14506
14638
 
14507
- const _excluded$6 = ["children", "className", "component", "components", "componentsProps", "invisible", "open", "slotProps", "slots", "TransitionComponent", "transitionDuration"];
14508
- const useUtilityClasses$5 = ownerState => {
14639
+ const _excluded$9 = ["children", "className", "component", "components", "componentsProps", "invisible", "open", "slotProps", "slots", "TransitionComponent", "transitionDuration"];
14640
+ const useUtilityClasses$8 = ownerState => {
14509
14641
  const {
14510
14642
  classes,
14511
14643
  invisible
@@ -14559,12 +14691,12 @@ const Backdrop = /*#__PURE__*/React.forwardRef(function Backdrop(inProps, ref) {
14559
14691
  TransitionComponent = Fade$1,
14560
14692
  transitionDuration
14561
14693
  } = props,
14562
- other = _objectWithoutPropertiesLoose$3(props, _excluded$6);
14694
+ other = _objectWithoutPropertiesLoose$3(props, _excluded$9);
14563
14695
  const ownerState = _extends$4({}, props, {
14564
14696
  component,
14565
14697
  invisible
14566
14698
  });
14567
- const classes = useUtilityClasses$5(ownerState);
14699
+ const classes = useUtilityClasses$8(ownerState);
14568
14700
  const rootSlotProps = (_slotProps$root = slotProps.root) != null ? _slotProps$root : componentsProps.root;
14569
14701
  return /*#__PURE__*/jsx(TransitionComponent, _extends$4({
14570
14702
  in: open,
@@ -14708,52 +14840,296 @@ process.env.NODE_ENV !== "production" ? Box$1.propTypes /* remove-proptypes */ =
14708
14840
  } : void 0;
14709
14841
  var Box$2 = Box$1;
14710
14842
 
14711
- function getCardUtilityClass(slot) {
14712
- return generateUtilityClass('MuiCard', slot);
14843
+ function getButtonUtilityClass(slot) {
14844
+ return generateUtilityClass('MuiButton', slot);
14713
14845
  }
14714
- generateUtilityClasses('MuiCard', ['root']);
14846
+ 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']);
14847
+ var buttonClasses$1 = buttonClasses;
14715
14848
 
14716
- const _excluded$5 = ["className", "raised"];
14717
- const useUtilityClasses$4 = ownerState => {
14849
+ /**
14850
+ * @ignore - internal component.
14851
+ */
14852
+ const ButtonGroupContext = /*#__PURE__*/React.createContext({});
14853
+ if (process.env.NODE_ENV !== 'production') {
14854
+ ButtonGroupContext.displayName = 'ButtonGroupContext';
14855
+ }
14856
+ var ButtonGroupContext$1 = ButtonGroupContext;
14857
+
14858
+ /**
14859
+ * @ignore - internal component.
14860
+ */
14861
+ const ButtonGroupButtonContext = /*#__PURE__*/React.createContext(undefined);
14862
+ if (process.env.NODE_ENV !== 'production') {
14863
+ ButtonGroupButtonContext.displayName = 'ButtonGroupButtonContext';
14864
+ }
14865
+ var ButtonGroupButtonContext$1 = ButtonGroupButtonContext;
14866
+
14867
+ const _excluded$8 = ["children", "color", "component", "className", "disabled", "disableElevation", "disableFocusRipple", "endIcon", "focusVisibleClassName", "fullWidth", "size", "startIcon", "type", "variant"];
14868
+ const useUtilityClasses$7 = ownerState => {
14718
14869
  const {
14870
+ color,
14871
+ disableElevation,
14872
+ fullWidth,
14873
+ size,
14874
+ variant,
14719
14875
  classes
14720
14876
  } = ownerState;
14721
14877
  const slots = {
14722
- root: ['root']
14878
+ root: ['root', variant, `${variant}${capitalize(color)}`, `size${capitalize(size)}`, `${variant}Size${capitalize(size)}`, color === 'inherit' && 'colorInherit', disableElevation && 'disableElevation', fullWidth && 'fullWidth'],
14879
+ label: ['label'],
14880
+ startIcon: ['startIcon', `iconSize${capitalize(size)}`],
14881
+ endIcon: ['endIcon', `iconSize${capitalize(size)}`]
14723
14882
  };
14724
- return composeClasses(slots, getCardUtilityClass, classes);
14883
+ const composedClasses = composeClasses(slots, getButtonUtilityClass, classes);
14884
+ return _extends$4({}, classes, composedClasses);
14725
14885
  };
14726
- const CardRoot = styled$1(Paper$1, {
14727
- name: 'MuiCard',
14886
+ const commonIconStyles = ownerState => _extends$4({}, ownerState.size === 'small' && {
14887
+ '& > *:nth-of-type(1)': {
14888
+ fontSize: 18
14889
+ }
14890
+ }, ownerState.size === 'medium' && {
14891
+ '& > *:nth-of-type(1)': {
14892
+ fontSize: 20
14893
+ }
14894
+ }, ownerState.size === 'large' && {
14895
+ '& > *:nth-of-type(1)': {
14896
+ fontSize: 22
14897
+ }
14898
+ });
14899
+ const ButtonRoot = styled$1(ButtonBase$1, {
14900
+ shouldForwardProp: prop => rootShouldForwardProp(prop) || prop === 'classes',
14901
+ name: 'MuiButton',
14728
14902
  slot: 'Root',
14729
- overridesResolver: (props, styles) => styles.root
14730
- })(() => {
14731
- return {
14732
- overflow: 'hidden'
14733
- };
14903
+ overridesResolver: (props, styles) => {
14904
+ const {
14905
+ ownerState
14906
+ } = props;
14907
+ 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];
14908
+ }
14909
+ })(({
14910
+ theme,
14911
+ ownerState
14912
+ }) => {
14913
+ var _theme$palette$getCon, _theme$palette;
14914
+ const inheritContainedBackgroundColor = theme.palette.mode === 'light' ? theme.palette.grey[300] : theme.palette.grey[800];
14915
+ const inheritContainedHoverBackgroundColor = theme.palette.mode === 'light' ? theme.palette.grey.A100 : theme.palette.grey[700];
14916
+ return _extends$4({}, theme.typography.button, {
14917
+ minWidth: 64,
14918
+ padding: '6px 16px',
14919
+ borderRadius: (theme.vars || theme).shape.borderRadius,
14920
+ transition: theme.transitions.create(['background-color', 'box-shadow', 'border-color', 'color'], {
14921
+ duration: theme.transitions.duration.short
14922
+ }),
14923
+ '&:hover': _extends$4({
14924
+ textDecoration: 'none',
14925
+ backgroundColor: theme.vars ? `rgba(${theme.vars.palette.text.primaryChannel} / ${theme.vars.palette.action.hoverOpacity})` : alpha(theme.palette.text.primary, theme.palette.action.hoverOpacity),
14926
+ // Reset on touch devices, it doesn't add specificity
14927
+ '@media (hover: none)': {
14928
+ backgroundColor: 'transparent'
14929
+ }
14930
+ }, ownerState.variant === 'text' && ownerState.color !== 'inherit' && {
14931
+ 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),
14932
+ // Reset on touch devices, it doesn't add specificity
14933
+ '@media (hover: none)': {
14934
+ backgroundColor: 'transparent'
14935
+ }
14936
+ }, ownerState.variant === 'outlined' && ownerState.color !== 'inherit' && {
14937
+ border: `1px solid ${(theme.vars || theme).palette[ownerState.color].main}`,
14938
+ 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),
14939
+ // Reset on touch devices, it doesn't add specificity
14940
+ '@media (hover: none)': {
14941
+ backgroundColor: 'transparent'
14942
+ }
14943
+ }, ownerState.variant === 'contained' && {
14944
+ backgroundColor: theme.vars ? theme.vars.palette.Button.inheritContainedHoverBg : inheritContainedHoverBackgroundColor,
14945
+ boxShadow: (theme.vars || theme).shadows[4],
14946
+ // Reset on touch devices, it doesn't add specificity
14947
+ '@media (hover: none)': {
14948
+ boxShadow: (theme.vars || theme).shadows[2],
14949
+ backgroundColor: (theme.vars || theme).palette.grey[300]
14950
+ }
14951
+ }, ownerState.variant === 'contained' && ownerState.color !== 'inherit' && {
14952
+ backgroundColor: (theme.vars || theme).palette[ownerState.color].dark,
14953
+ // Reset on touch devices, it doesn't add specificity
14954
+ '@media (hover: none)': {
14955
+ backgroundColor: (theme.vars || theme).palette[ownerState.color].main
14956
+ }
14957
+ }),
14958
+ '&:active': _extends$4({}, ownerState.variant === 'contained' && {
14959
+ boxShadow: (theme.vars || theme).shadows[8]
14960
+ }),
14961
+ [`&.${buttonClasses$1.focusVisible}`]: _extends$4({}, ownerState.variant === 'contained' && {
14962
+ boxShadow: (theme.vars || theme).shadows[6]
14963
+ }),
14964
+ [`&.${buttonClasses$1.disabled}`]: _extends$4({
14965
+ color: (theme.vars || theme).palette.action.disabled
14966
+ }, ownerState.variant === 'outlined' && {
14967
+ border: `1px solid ${(theme.vars || theme).palette.action.disabledBackground}`
14968
+ }, ownerState.variant === 'contained' && {
14969
+ color: (theme.vars || theme).palette.action.disabled,
14970
+ boxShadow: (theme.vars || theme).shadows[0],
14971
+ backgroundColor: (theme.vars || theme).palette.action.disabledBackground
14972
+ })
14973
+ }, ownerState.variant === 'text' && {
14974
+ padding: '6px 8px'
14975
+ }, ownerState.variant === 'text' && ownerState.color !== 'inherit' && {
14976
+ color: (theme.vars || theme).palette[ownerState.color].main
14977
+ }, ownerState.variant === 'outlined' && {
14978
+ padding: '5px 15px',
14979
+ border: '1px solid currentColor'
14980
+ }, ownerState.variant === 'outlined' && ownerState.color !== 'inherit' && {
14981
+ color: (theme.vars || theme).palette[ownerState.color].main,
14982
+ border: theme.vars ? `1px solid rgba(${theme.vars.palette[ownerState.color].mainChannel} / 0.5)` : `1px solid ${alpha(theme.palette[ownerState.color].main, 0.5)}`
14983
+ }, ownerState.variant === 'contained' && {
14984
+ color: theme.vars ?
14985
+ // this is safe because grey does not change between default light/dark mode
14986
+ 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]),
14987
+ backgroundColor: theme.vars ? theme.vars.palette.Button.inheritContainedBg : inheritContainedBackgroundColor,
14988
+ boxShadow: (theme.vars || theme).shadows[2]
14989
+ }, ownerState.variant === 'contained' && ownerState.color !== 'inherit' && {
14990
+ color: (theme.vars || theme).palette[ownerState.color].contrastText,
14991
+ backgroundColor: (theme.vars || theme).palette[ownerState.color].main
14992
+ }, ownerState.color === 'inherit' && {
14993
+ color: 'inherit',
14994
+ borderColor: 'currentColor'
14995
+ }, ownerState.size === 'small' && ownerState.variant === 'text' && {
14996
+ padding: '4px 5px',
14997
+ fontSize: theme.typography.pxToRem(13)
14998
+ }, ownerState.size === 'large' && ownerState.variant === 'text' && {
14999
+ padding: '8px 11px',
15000
+ fontSize: theme.typography.pxToRem(15)
15001
+ }, ownerState.size === 'small' && ownerState.variant === 'outlined' && {
15002
+ padding: '3px 9px',
15003
+ fontSize: theme.typography.pxToRem(13)
15004
+ }, ownerState.size === 'large' && ownerState.variant === 'outlined' && {
15005
+ padding: '7px 21px',
15006
+ fontSize: theme.typography.pxToRem(15)
15007
+ }, ownerState.size === 'small' && ownerState.variant === 'contained' && {
15008
+ padding: '4px 10px',
15009
+ fontSize: theme.typography.pxToRem(13)
15010
+ }, ownerState.size === 'large' && ownerState.variant === 'contained' && {
15011
+ padding: '8px 22px',
15012
+ fontSize: theme.typography.pxToRem(15)
15013
+ }, ownerState.fullWidth && {
15014
+ width: '100%'
15015
+ });
15016
+ }, ({
15017
+ ownerState
15018
+ }) => ownerState.disableElevation && {
15019
+ boxShadow: 'none',
15020
+ '&:hover': {
15021
+ boxShadow: 'none'
15022
+ },
15023
+ [`&.${buttonClasses$1.focusVisible}`]: {
15024
+ boxShadow: 'none'
15025
+ },
15026
+ '&:active': {
15027
+ boxShadow: 'none'
15028
+ },
15029
+ [`&.${buttonClasses$1.disabled}`]: {
15030
+ boxShadow: 'none'
15031
+ }
14734
15032
  });
14735
- const Card = /*#__PURE__*/React.forwardRef(function Card(inProps, ref) {
15033
+ const ButtonStartIcon = styled$1('span', {
15034
+ name: 'MuiButton',
15035
+ slot: 'StartIcon',
15036
+ overridesResolver: (props, styles) => {
15037
+ const {
15038
+ ownerState
15039
+ } = props;
15040
+ return [styles.startIcon, styles[`iconSize${capitalize(ownerState.size)}`]];
15041
+ }
15042
+ })(({
15043
+ ownerState
15044
+ }) => _extends$4({
15045
+ display: 'inherit',
15046
+ marginRight: 8,
15047
+ marginLeft: -4
15048
+ }, ownerState.size === 'small' && {
15049
+ marginLeft: -2
15050
+ }, commonIconStyles(ownerState)));
15051
+ const ButtonEndIcon = styled$1('span', {
15052
+ name: 'MuiButton',
15053
+ slot: 'EndIcon',
15054
+ overridesResolver: (props, styles) => {
15055
+ const {
15056
+ ownerState
15057
+ } = props;
15058
+ return [styles.endIcon, styles[`iconSize${capitalize(ownerState.size)}`]];
15059
+ }
15060
+ })(({
15061
+ ownerState
15062
+ }) => _extends$4({
15063
+ display: 'inherit',
15064
+ marginRight: -4,
15065
+ marginLeft: 8
15066
+ }, ownerState.size === 'small' && {
15067
+ marginRight: -2
15068
+ }, commonIconStyles(ownerState)));
15069
+ const Button = /*#__PURE__*/React.forwardRef(function Button(inProps, ref) {
15070
+ // props priority: `inProps` > `contextProps` > `themeDefaultProps`
15071
+ const contextProps = React.useContext(ButtonGroupContext$1);
15072
+ const buttonGroupButtonContextPositionClassName = React.useContext(ButtonGroupButtonContext$1);
15073
+ const resolvedProps = resolveProps(contextProps, inProps);
14736
15074
  const props = useThemeProps({
14737
- props: inProps,
14738
- name: 'MuiCard'
15075
+ props: resolvedProps,
15076
+ name: 'MuiButton'
14739
15077
  });
14740
15078
  const {
15079
+ children,
15080
+ color = 'primary',
15081
+ component = 'button',
14741
15082
  className,
14742
- raised = false
15083
+ disabled = false,
15084
+ disableElevation = false,
15085
+ disableFocusRipple = false,
15086
+ endIcon: endIconProp,
15087
+ focusVisibleClassName,
15088
+ fullWidth = false,
15089
+ size = 'medium',
15090
+ startIcon: startIconProp,
15091
+ type,
15092
+ variant = 'text'
14743
15093
  } = props,
14744
- other = _objectWithoutPropertiesLoose$3(props, _excluded$5);
15094
+ other = _objectWithoutPropertiesLoose$3(props, _excluded$8);
14745
15095
  const ownerState = _extends$4({}, props, {
14746
- raised
15096
+ color,
15097
+ component,
15098
+ disabled,
15099
+ disableElevation,
15100
+ disableFocusRipple,
15101
+ fullWidth,
15102
+ size,
15103
+ type,
15104
+ variant
14747
15105
  });
14748
- const classes = useUtilityClasses$4(ownerState);
14749
- return /*#__PURE__*/jsx(CardRoot, _extends$4({
14750
- className: clsx(classes.root, className),
14751
- elevation: raised ? 8 : undefined,
15106
+ const classes = useUtilityClasses$7(ownerState);
15107
+ const startIcon = startIconProp && /*#__PURE__*/jsx(ButtonStartIcon, {
15108
+ className: classes.startIcon,
15109
+ ownerState: ownerState,
15110
+ children: startIconProp
15111
+ });
15112
+ const endIcon = endIconProp && /*#__PURE__*/jsx(ButtonEndIcon, {
15113
+ className: classes.endIcon,
15114
+ ownerState: ownerState,
15115
+ children: endIconProp
15116
+ });
15117
+ const positionClassName = buttonGroupButtonContextPositionClassName || '';
15118
+ return /*#__PURE__*/jsxs(ButtonRoot, _extends$4({
15119
+ ownerState: ownerState,
15120
+ className: clsx(contextProps.className, classes.root, className, positionClassName),
15121
+ component: component,
15122
+ disabled: disabled,
15123
+ focusRipple: !disableFocusRipple,
15124
+ focusVisibleClassName: clsx(classes.focusVisible, focusVisibleClassName),
14752
15125
  ref: ref,
14753
- ownerState: ownerState
14754
- }, other));
15126
+ type: type
15127
+ }, other, {
15128
+ classes: classes,
15129
+ children: [startIcon, children, endIcon]
15130
+ }));
14755
15131
  });
14756
- process.env.NODE_ENV !== "production" ? Card.propTypes /* remove-proptypes */ = {
15132
+ process.env.NODE_ENV !== "production" ? Button.propTypes /* remove-proptypes */ = {
14757
15133
  // ----------------------------- Warning --------------------------------
14758
15134
  // | These PropTypes are generated from the TypeScript type definitions |
14759
15135
  // | To update them edit the d.ts file and run "yarn proptypes" |
@@ -14771,33 +15147,174 @@ process.env.NODE_ENV !== "production" ? Card.propTypes /* remove-proptypes */ =
14771
15147
  */
14772
15148
  className: PropTypes.string,
14773
15149
  /**
14774
- * If `true`, the card will use raised styling.
15150
+ * The color of the component.
15151
+ * It supports both default and custom theme colors, which can be added as shown in the
15152
+ * [palette customization guide](https://mui.com/material-ui/customization/palette/#adding-new-colors).
15153
+ * @default 'primary'
15154
+ */
15155
+ color: PropTypes /* @typescript-to-proptypes-ignore */.oneOfType([PropTypes.oneOf(['inherit', 'primary', 'secondary', 'success', 'error', 'info', 'warning']), PropTypes.string]),
15156
+ /**
15157
+ * The component used for the root node.
15158
+ * Either a string to use a HTML element or a component.
15159
+ */
15160
+ component: PropTypes.elementType,
15161
+ /**
15162
+ * If `true`, the component is disabled.
14775
15163
  * @default false
14776
15164
  */
14777
- raised: chainPropTypes(PropTypes.bool, props => {
14778
- if (props.raised && props.variant === 'outlined') {
14779
- return new Error('MUI: Combining `raised={true}` with `variant="outlined"` has no effect.');
14780
- }
14781
- return null;
14782
- }),
15165
+ disabled: PropTypes.bool,
14783
15166
  /**
14784
- * The system prop that allows defining system overrides as well as additional CSS styles.
15167
+ * If `true`, no elevation is used.
15168
+ * @default false
14785
15169
  */
14786
- sx: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.func, PropTypes.object, PropTypes.bool])), PropTypes.func, PropTypes.object])
14787
- } : void 0;
14788
- var Card$1 = Card;
14789
-
14790
- function getCardContentUtilityClass(slot) {
14791
- return generateUtilityClass('MuiCardContent', slot);
14792
- }
14793
- generateUtilityClasses('MuiCardContent', ['root']);
14794
-
14795
- const _excluded$4 = ["className", "component"];
14796
- const useUtilityClasses$3 = ownerState => {
14797
- const {
14798
- classes
14799
- } = ownerState;
14800
- const slots = {
15170
+ disableElevation: PropTypes.bool,
15171
+ /**
15172
+ * If `true`, the keyboard focus ripple is disabled.
15173
+ * @default false
15174
+ */
15175
+ disableFocusRipple: PropTypes.bool,
15176
+ /**
15177
+ * If `true`, the ripple effect is disabled.
15178
+ *
15179
+ * ⚠️ Without a ripple there is no styling for :focus-visible by default. Be sure
15180
+ * to highlight the element by applying separate styles with the `.Mui-focusVisible` class.
15181
+ * @default false
15182
+ */
15183
+ disableRipple: PropTypes.bool,
15184
+ /**
15185
+ * Element placed after the children.
15186
+ */
15187
+ endIcon: PropTypes.node,
15188
+ /**
15189
+ * @ignore
15190
+ */
15191
+ focusVisibleClassName: PropTypes.string,
15192
+ /**
15193
+ * If `true`, the button will take up the full width of its container.
15194
+ * @default false
15195
+ */
15196
+ fullWidth: PropTypes.bool,
15197
+ /**
15198
+ * The URL to link to when the button is clicked.
15199
+ * If defined, an `a` element will be used as the root node.
15200
+ */
15201
+ href: PropTypes.string,
15202
+ /**
15203
+ * The size of the component.
15204
+ * `small` is equivalent to the dense button styling.
15205
+ * @default 'medium'
15206
+ */
15207
+ size: PropTypes /* @typescript-to-proptypes-ignore */.oneOfType([PropTypes.oneOf(['small', 'medium', 'large']), PropTypes.string]),
15208
+ /**
15209
+ * Element placed before the children.
15210
+ */
15211
+ startIcon: PropTypes.node,
15212
+ /**
15213
+ * The system prop that allows defining system overrides as well as additional CSS styles.
15214
+ */
15215
+ sx: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.func, PropTypes.object, PropTypes.bool])), PropTypes.func, PropTypes.object]),
15216
+ /**
15217
+ * @ignore
15218
+ */
15219
+ type: PropTypes.oneOfType([PropTypes.oneOf(['button', 'reset', 'submit']), PropTypes.string]),
15220
+ /**
15221
+ * The variant to use.
15222
+ * @default 'text'
15223
+ */
15224
+ variant: PropTypes /* @typescript-to-proptypes-ignore */.oneOfType([PropTypes.oneOf(['contained', 'outlined', 'text']), PropTypes.string])
15225
+ } : void 0;
15226
+ var Button$1 = Button;
15227
+
15228
+ function getCardUtilityClass(slot) {
15229
+ return generateUtilityClass('MuiCard', slot);
15230
+ }
15231
+ generateUtilityClasses('MuiCard', ['root']);
15232
+
15233
+ const _excluded$7 = ["className", "raised"];
15234
+ const useUtilityClasses$6 = ownerState => {
15235
+ const {
15236
+ classes
15237
+ } = ownerState;
15238
+ const slots = {
15239
+ root: ['root']
15240
+ };
15241
+ return composeClasses(slots, getCardUtilityClass, classes);
15242
+ };
15243
+ const CardRoot = styled$1(Paper$1, {
15244
+ name: 'MuiCard',
15245
+ slot: 'Root',
15246
+ overridesResolver: (props, styles) => styles.root
15247
+ })(() => {
15248
+ return {
15249
+ overflow: 'hidden'
15250
+ };
15251
+ });
15252
+ const Card = /*#__PURE__*/React.forwardRef(function Card(inProps, ref) {
15253
+ const props = useThemeProps({
15254
+ props: inProps,
15255
+ name: 'MuiCard'
15256
+ });
15257
+ const {
15258
+ className,
15259
+ raised = false
15260
+ } = props,
15261
+ other = _objectWithoutPropertiesLoose$3(props, _excluded$7);
15262
+ const ownerState = _extends$4({}, props, {
15263
+ raised
15264
+ });
15265
+ const classes = useUtilityClasses$6(ownerState);
15266
+ return /*#__PURE__*/jsx(CardRoot, _extends$4({
15267
+ className: clsx(classes.root, className),
15268
+ elevation: raised ? 8 : undefined,
15269
+ ref: ref,
15270
+ ownerState: ownerState
15271
+ }, other));
15272
+ });
15273
+ process.env.NODE_ENV !== "production" ? Card.propTypes /* remove-proptypes */ = {
15274
+ // ----------------------------- Warning --------------------------------
15275
+ // | These PropTypes are generated from the TypeScript type definitions |
15276
+ // | To update them edit the d.ts file and run "yarn proptypes" |
15277
+ // ----------------------------------------------------------------------
15278
+ /**
15279
+ * The content of the component.
15280
+ */
15281
+ children: PropTypes.node,
15282
+ /**
15283
+ * Override or extend the styles applied to the component.
15284
+ */
15285
+ classes: PropTypes.object,
15286
+ /**
15287
+ * @ignore
15288
+ */
15289
+ className: PropTypes.string,
15290
+ /**
15291
+ * If `true`, the card will use raised styling.
15292
+ * @default false
15293
+ */
15294
+ raised: chainPropTypes(PropTypes.bool, props => {
15295
+ if (props.raised && props.variant === 'outlined') {
15296
+ return new Error('MUI: Combining `raised={true}` with `variant="outlined"` has no effect.');
15297
+ }
15298
+ return null;
15299
+ }),
15300
+ /**
15301
+ * The system prop that allows defining system overrides as well as additional CSS styles.
15302
+ */
15303
+ sx: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.func, PropTypes.object, PropTypes.bool])), PropTypes.func, PropTypes.object])
15304
+ } : void 0;
15305
+ var Card$1 = Card;
15306
+
15307
+ function getCardContentUtilityClass(slot) {
15308
+ return generateUtilityClass('MuiCardContent', slot);
15309
+ }
15310
+ generateUtilityClasses('MuiCardContent', ['root']);
15311
+
15312
+ const _excluded$6 = ["className", "component"];
15313
+ const useUtilityClasses$5 = ownerState => {
15314
+ const {
15315
+ classes
15316
+ } = ownerState;
15317
+ const slots = {
14801
15318
  root: ['root']
14802
15319
  };
14803
15320
  return composeClasses(slots, getCardContentUtilityClass, classes);
@@ -14823,11 +15340,11 @@ const CardContent = /*#__PURE__*/React.forwardRef(function CardContent(inProps,
14823
15340
  className,
14824
15341
  component = 'div'
14825
15342
  } = props,
14826
- other = _objectWithoutPropertiesLoose$3(props, _excluded$4);
15343
+ other = _objectWithoutPropertiesLoose$3(props, _excluded$6);
14827
15344
  const ownerState = _extends$4({}, props, {
14828
15345
  component
14829
15346
  });
14830
- const classes = useUtilityClasses$3(ownerState);
15347
+ const classes = useUtilityClasses$5(ownerState);
14831
15348
  return /*#__PURE__*/jsx(CardContentRoot, _extends$4({
14832
15349
  as: component,
14833
15350
  className: clsx(classes.root, className),
@@ -14869,8 +15386,8 @@ function getModalUtilityClass(slot) {
14869
15386
  }
14870
15387
  generateUtilityClasses('MuiModal', ['root', 'hidden', 'backdrop']);
14871
15388
 
14872
- const _excluded$3 = ["BackdropComponent", "BackdropProps", "classes", "className", "closeAfterTransition", "children", "container", "component", "components", "componentsProps", "disableAutoFocus", "disableEnforceFocus", "disableEscapeKeyDown", "disablePortal", "disableRestoreFocus", "disableScrollLock", "hideBackdrop", "keepMounted", "onBackdropClick", "onClose", "onTransitionEnter", "onTransitionExited", "open", "slotProps", "slots", "theme"];
14873
- const useUtilityClasses$2 = ownerState => {
15389
+ const _excluded$5 = ["BackdropComponent", "BackdropProps", "classes", "className", "closeAfterTransition", "children", "container", "component", "components", "componentsProps", "disableAutoFocus", "disableEnforceFocus", "disableEscapeKeyDown", "disablePortal", "disableRestoreFocus", "disableScrollLock", "hideBackdrop", "keepMounted", "onBackdropClick", "onClose", "onTransitionEnter", "onTransitionExited", "open", "slotProps", "slots", "theme"];
15390
+ const useUtilityClasses$4 = ownerState => {
14874
15391
  const {
14875
15392
  open,
14876
15393
  exited,
@@ -14957,7 +15474,7 @@ const Modal = /*#__PURE__*/React.forwardRef(function Modal(inProps, ref) {
14957
15474
  slots
14958
15475
  // eslint-disable-next-line react/prop-types
14959
15476
  } = props,
14960
- other = _objectWithoutPropertiesLoose$3(props, _excluded$3);
15477
+ other = _objectWithoutPropertiesLoose$3(props, _excluded$5);
14961
15478
  const propsWithDefaults = _extends$4({}, props, {
14962
15479
  closeAfterTransition,
14963
15480
  disableAutoFocus,
@@ -14983,7 +15500,7 @@ const Modal = /*#__PURE__*/React.forwardRef(function Modal(inProps, ref) {
14983
15500
  const ownerState = _extends$4({}, propsWithDefaults, {
14984
15501
  exited
14985
15502
  });
14986
- const classes = useUtilityClasses$2(ownerState);
15503
+ const classes = useUtilityClasses$4(ownerState);
14987
15504
  const childProps = {};
14988
15505
  if (children.props.tabIndex === undefined) {
14989
15506
  childProps.tabIndex = '-1';
@@ -15221,18 +15738,261 @@ process.env.NODE_ENV !== "production" ? Modal.propTypes /* remove-proptypes */ =
15221
15738
  * Either a string to use a HTML element or a component.
15222
15739
  * @default {}
15223
15740
  */
15224
- slots: PropTypes.shape({
15225
- backdrop: PropTypes.elementType,
15226
- root: PropTypes.elementType
15227
- }),
15741
+ slots: PropTypes.shape({
15742
+ backdrop: PropTypes.elementType,
15743
+ root: PropTypes.elementType
15744
+ }),
15745
+ /**
15746
+ * The system prop that allows defining system overrides as well as additional CSS styles.
15747
+ */
15748
+ sx: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.func, PropTypes.object, PropTypes.bool])), PropTypes.func, PropTypes.object])
15749
+ } : void 0;
15750
+ var Modal$1 = Modal;
15751
+
15752
+ function getDividerUtilityClass(slot) {
15753
+ return generateUtilityClass('MuiDivider', slot);
15754
+ }
15755
+ generateUtilityClasses('MuiDivider', ['root', 'absolute', 'fullWidth', 'inset', 'middle', 'flexItem', 'light', 'vertical', 'withChildren', 'withChildrenVertical', 'textAlignRight', 'textAlignLeft', 'wrapper', 'wrapperVertical']);
15756
+
15757
+ const _excluded$4 = ["absolute", "children", "className", "component", "flexItem", "light", "orientation", "role", "textAlign", "variant"];
15758
+ const useUtilityClasses$3 = ownerState => {
15759
+ const {
15760
+ absolute,
15761
+ children,
15762
+ classes,
15763
+ flexItem,
15764
+ light,
15765
+ orientation,
15766
+ textAlign,
15767
+ variant
15768
+ } = ownerState;
15769
+ const slots = {
15770
+ 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'],
15771
+ wrapper: ['wrapper', orientation === 'vertical' && 'wrapperVertical']
15772
+ };
15773
+ return composeClasses(slots, getDividerUtilityClass, classes);
15774
+ };
15775
+ const DividerRoot = styled$1('div', {
15776
+ name: 'MuiDivider',
15777
+ slot: 'Root',
15778
+ overridesResolver: (props, styles) => {
15779
+ const {
15780
+ ownerState
15781
+ } = props;
15782
+ 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];
15783
+ }
15784
+ })(({
15785
+ theme,
15786
+ ownerState
15787
+ }) => _extends$4({
15788
+ margin: 0,
15789
+ // Reset browser default style.
15790
+ flexShrink: 0,
15791
+ borderWidth: 0,
15792
+ borderStyle: 'solid',
15793
+ borderColor: (theme.vars || theme).palette.divider,
15794
+ borderBottomWidth: 'thin'
15795
+ }, ownerState.absolute && {
15796
+ position: 'absolute',
15797
+ bottom: 0,
15798
+ left: 0,
15799
+ width: '100%'
15800
+ }, ownerState.light && {
15801
+ borderColor: theme.vars ? `rgba(${theme.vars.palette.dividerChannel} / 0.08)` : alpha(theme.palette.divider, 0.08)
15802
+ }, ownerState.variant === 'inset' && {
15803
+ marginLeft: 72
15804
+ }, ownerState.variant === 'middle' && ownerState.orientation === 'horizontal' && {
15805
+ marginLeft: theme.spacing(2),
15806
+ marginRight: theme.spacing(2)
15807
+ }, ownerState.variant === 'middle' && ownerState.orientation === 'vertical' && {
15808
+ marginTop: theme.spacing(1),
15809
+ marginBottom: theme.spacing(1)
15810
+ }, ownerState.orientation === 'vertical' && {
15811
+ height: '100%',
15812
+ borderBottomWidth: 0,
15813
+ borderRightWidth: 'thin'
15814
+ }, ownerState.flexItem && {
15815
+ alignSelf: 'stretch',
15816
+ height: 'auto'
15817
+ }), ({
15818
+ ownerState
15819
+ }) => _extends$4({}, ownerState.children && {
15820
+ display: 'flex',
15821
+ whiteSpace: 'nowrap',
15822
+ textAlign: 'center',
15823
+ border: 0,
15824
+ '&::before, &::after': {
15825
+ content: '""',
15826
+ alignSelf: 'center'
15827
+ }
15828
+ }), ({
15829
+ theme,
15830
+ ownerState
15831
+ }) => _extends$4({}, ownerState.children && ownerState.orientation !== 'vertical' && {
15832
+ '&::before, &::after': {
15833
+ width: '100%',
15834
+ borderTop: `thin solid ${(theme.vars || theme).palette.divider}`
15835
+ }
15836
+ }), ({
15837
+ theme,
15838
+ ownerState
15839
+ }) => _extends$4({}, ownerState.children && ownerState.orientation === 'vertical' && {
15840
+ flexDirection: 'column',
15841
+ '&::before, &::after': {
15842
+ height: '100%',
15843
+ borderLeft: `thin solid ${(theme.vars || theme).palette.divider}`
15844
+ }
15845
+ }), ({
15846
+ ownerState
15847
+ }) => _extends$4({}, ownerState.textAlign === 'right' && ownerState.orientation !== 'vertical' && {
15848
+ '&::before': {
15849
+ width: '90%'
15850
+ },
15851
+ '&::after': {
15852
+ width: '10%'
15853
+ }
15854
+ }, ownerState.textAlign === 'left' && ownerState.orientation !== 'vertical' && {
15855
+ '&::before': {
15856
+ width: '10%'
15857
+ },
15858
+ '&::after': {
15859
+ width: '90%'
15860
+ }
15861
+ }));
15862
+ const DividerWrapper = styled$1('span', {
15863
+ name: 'MuiDivider',
15864
+ slot: 'Wrapper',
15865
+ overridesResolver: (props, styles) => {
15866
+ const {
15867
+ ownerState
15868
+ } = props;
15869
+ return [styles.wrapper, ownerState.orientation === 'vertical' && styles.wrapperVertical];
15870
+ }
15871
+ })(({
15872
+ theme,
15873
+ ownerState
15874
+ }) => _extends$4({
15875
+ display: 'inline-block',
15876
+ paddingLeft: `calc(${theme.spacing(1)} * 1.2)`,
15877
+ paddingRight: `calc(${theme.spacing(1)} * 1.2)`
15878
+ }, ownerState.orientation === 'vertical' && {
15879
+ paddingTop: `calc(${theme.spacing(1)} * 1.2)`,
15880
+ paddingBottom: `calc(${theme.spacing(1)} * 1.2)`
15881
+ }));
15882
+ const Divider = /*#__PURE__*/React.forwardRef(function Divider(inProps, ref) {
15883
+ const props = useThemeProps({
15884
+ props: inProps,
15885
+ name: 'MuiDivider'
15886
+ });
15887
+ const {
15888
+ absolute = false,
15889
+ children,
15890
+ className,
15891
+ component = children ? 'div' : 'hr',
15892
+ flexItem = false,
15893
+ light = false,
15894
+ orientation = 'horizontal',
15895
+ role = component !== 'hr' ? 'separator' : undefined,
15896
+ textAlign = 'center',
15897
+ variant = 'fullWidth'
15898
+ } = props,
15899
+ other = _objectWithoutPropertiesLoose$3(props, _excluded$4);
15900
+ const ownerState = _extends$4({}, props, {
15901
+ absolute,
15902
+ component,
15903
+ flexItem,
15904
+ light,
15905
+ orientation,
15906
+ role,
15907
+ textAlign,
15908
+ variant
15909
+ });
15910
+ const classes = useUtilityClasses$3(ownerState);
15911
+ return /*#__PURE__*/jsx(DividerRoot, _extends$4({
15912
+ as: component,
15913
+ className: clsx(classes.root, className),
15914
+ role: role,
15915
+ ref: ref,
15916
+ ownerState: ownerState
15917
+ }, other, {
15918
+ children: children ? /*#__PURE__*/jsx(DividerWrapper, {
15919
+ className: classes.wrapper,
15920
+ ownerState: ownerState,
15921
+ children: children
15922
+ }) : null
15923
+ }));
15924
+ });
15925
+
15926
+ /**
15927
+ * The following flag is used to ensure that this component isn't tabbable i.e.
15928
+ * does not get highlight/focus inside of MUI List.
15929
+ */
15930
+ Divider.muiSkipListHighlight = true;
15931
+ process.env.NODE_ENV !== "production" ? Divider.propTypes /* remove-proptypes */ = {
15932
+ // ----------------------------- Warning --------------------------------
15933
+ // | These PropTypes are generated from the TypeScript type definitions |
15934
+ // | To update them edit the d.ts file and run "yarn proptypes" |
15935
+ // ----------------------------------------------------------------------
15936
+ /**
15937
+ * Absolutely position the element.
15938
+ * @default false
15939
+ */
15940
+ absolute: PropTypes.bool,
15941
+ /**
15942
+ * The content of the component.
15943
+ */
15944
+ children: PropTypes.node,
15945
+ /**
15946
+ * Override or extend the styles applied to the component.
15947
+ */
15948
+ classes: PropTypes.object,
15949
+ /**
15950
+ * @ignore
15951
+ */
15952
+ className: PropTypes.string,
15953
+ /**
15954
+ * The component used for the root node.
15955
+ * Either a string to use a HTML element or a component.
15956
+ */
15957
+ component: PropTypes.elementType,
15958
+ /**
15959
+ * If `true`, a vertical divider will have the correct height when used in flex container.
15960
+ * (By default, a vertical divider will have a calculated height of `0px` if it is the child of a flex container.)
15961
+ * @default false
15962
+ */
15963
+ flexItem: PropTypes.bool,
15964
+ /**
15965
+ * If `true`, the divider will have a lighter color.
15966
+ * @default false
15967
+ */
15968
+ light: PropTypes.bool,
15969
+ /**
15970
+ * The component orientation.
15971
+ * @default 'horizontal'
15972
+ */
15973
+ orientation: PropTypes.oneOf(['horizontal', 'vertical']),
15974
+ /**
15975
+ * @ignore
15976
+ */
15977
+ role: PropTypes /* @typescript-to-proptypes-ignore */.string,
15228
15978
  /**
15229
15979
  * The system prop that allows defining system overrides as well as additional CSS styles.
15230
15980
  */
15231
- sx: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.func, PropTypes.object, PropTypes.bool])), PropTypes.func, PropTypes.object])
15981
+ sx: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.func, PropTypes.object, PropTypes.bool])), PropTypes.func, PropTypes.object]),
15982
+ /**
15983
+ * The text alignment.
15984
+ * @default 'center'
15985
+ */
15986
+ textAlign: PropTypes.oneOf(['center', 'left', 'right']),
15987
+ /**
15988
+ * The variant to use.
15989
+ * @default 'fullWidth'
15990
+ */
15991
+ variant: PropTypes /* @typescript-to-proptypes-ignore */.oneOfType([PropTypes.oneOf(['fullWidth', 'inset', 'middle']), PropTypes.string])
15232
15992
  } : void 0;
15233
- var Modal$1 = Modal;
15993
+ var Divider$1 = Divider;
15234
15994
 
15235
- const _excluded$2 = ["addEndListener", "appear", "children", "container", "direction", "easing", "in", "onEnter", "onEntered", "onEntering", "onExit", "onExited", "onExiting", "style", "timeout", "TransitionComponent"];
15995
+ const _excluded$3 = ["addEndListener", "appear", "children", "container", "direction", "easing", "in", "onEnter", "onEntered", "onEntering", "onExit", "onExited", "onExiting", "style", "timeout", "TransitionComponent"];
15236
15996
  function getTranslateValue(direction, node, resolvedContainer) {
15237
15997
  const rect = node.getBoundingClientRect();
15238
15998
  const containerRect = resolvedContainer && resolvedContainer.getBoundingClientRect();
@@ -15321,7 +16081,7 @@ const Slide = /*#__PURE__*/React.forwardRef(function Slide(props, ref) {
15321
16081
  // eslint-disable-next-line react/prop-types
15322
16082
  TransitionComponent = Transition$1
15323
16083
  } = props,
15324
- other = _objectWithoutPropertiesLoose$3(props, _excluded$2);
16084
+ other = _objectWithoutPropertiesLoose$3(props, _excluded$3);
15325
16085
  const childrenRef = React.useRef(null);
15326
16086
  const handleRef = useForkRef(children.ref, childrenRef, ref);
15327
16087
  const normalizedTransitionCallback = callback => isAppearing => {
@@ -15549,7 +16309,7 @@ function getDrawerUtilityClass(slot) {
15549
16309
  }
15550
16310
  generateUtilityClasses('MuiDrawer', ['root', 'docked', 'paper', 'paperAnchorLeft', 'paperAnchorRight', 'paperAnchorTop', 'paperAnchorBottom', 'paperAnchorDockedLeft', 'paperAnchorDockedRight', 'paperAnchorDockedTop', 'paperAnchorDockedBottom', 'modal']);
15551
16311
 
15552
- const _excluded$1 = ["BackdropProps"],
16312
+ const _excluded$2 = ["BackdropProps"],
15553
16313
  _excluded2 = ["anchor", "BackdropProps", "children", "className", "elevation", "hideBackdrop", "ModalProps", "onClose", "open", "PaperProps", "SlideProps", "TransitionComponent", "transitionDuration", "variant"];
15554
16314
  const overridesResolver = (props, styles) => {
15555
16315
  const {
@@ -15557,7 +16317,7 @@ const overridesResolver = (props, styles) => {
15557
16317
  } = props;
15558
16318
  return [styles.root, (ownerState.variant === 'permanent' || ownerState.variant === 'persistent') && styles.docked, styles.modal];
15559
16319
  };
15560
- const useUtilityClasses$1 = ownerState => {
16320
+ const useUtilityClasses$2 = ownerState => {
15561
16321
  const {
15562
16322
  classes,
15563
16323
  anchor,
@@ -15689,7 +16449,7 @@ const Drawer = /*#__PURE__*/React.forwardRef(function Drawer(inProps, ref) {
15689
16449
  transitionDuration = defaultTransitionDuration,
15690
16450
  variant = 'temporary'
15691
16451
  } = props,
15692
- ModalProps = _objectWithoutPropertiesLoose$3(props.ModalProps, _excluded$1),
16452
+ ModalProps = _objectWithoutPropertiesLoose$3(props.ModalProps, _excluded$2),
15693
16453
  other = _objectWithoutPropertiesLoose$3(props, _excluded2);
15694
16454
 
15695
16455
  // Let's assume that the Drawer will always be rendered on user space.
@@ -15707,7 +16467,7 @@ const Drawer = /*#__PURE__*/React.forwardRef(function Drawer(inProps, ref) {
15707
16467
  open,
15708
16468
  variant
15709
16469
  }, other);
15710
- const classes = useUtilityClasses$1(ownerState);
16470
+ const classes = useUtilityClasses$2(ownerState);
15711
16471
  const drawer = /*#__PURE__*/jsx(DrawerPaper, _extends$4({
15712
16472
  elevation: variant === 'temporary' ? elevation : 0,
15713
16473
  square: true
@@ -15903,6 +16663,346 @@ process.env.NODE_ENV !== "production" ? Stack.propTypes /* remove-proptypes */ =
15903
16663
  } : void 0;
15904
16664
  var Stack$1 = Stack;
15905
16665
 
16666
+ function getLinearProgressUtilityClass(slot) {
16667
+ return generateUtilityClass('MuiLinearProgress', slot);
16668
+ }
16669
+ generateUtilityClasses('MuiLinearProgress', ['root', 'colorPrimary', 'colorSecondary', 'determinate', 'indeterminate', 'buffer', 'query', 'dashed', 'dashedColorPrimary', 'dashedColorSecondary', 'bar', 'barColorPrimary', 'barColorSecondary', 'bar1Indeterminate', 'bar1Determinate', 'bar1Buffer', 'bar2Indeterminate', 'bar2Buffer']);
16670
+
16671
+ const _excluded$1 = ["className", "color", "value", "valueBuffer", "variant"];
16672
+ let _ = t => t,
16673
+ _t,
16674
+ _t2,
16675
+ _t3,
16676
+ _t4,
16677
+ _t5,
16678
+ _t6;
16679
+ const TRANSITION_DURATION = 4; // seconds
16680
+ const indeterminate1Keyframe = keyframes(_t || (_t = _`
16681
+ 0% {
16682
+ left: -35%;
16683
+ right: 100%;
16684
+ }
16685
+
16686
+ 60% {
16687
+ left: 100%;
16688
+ right: -90%;
16689
+ }
16690
+
16691
+ 100% {
16692
+ left: 100%;
16693
+ right: -90%;
16694
+ }
16695
+ `));
16696
+ const indeterminate2Keyframe = keyframes(_t2 || (_t2 = _`
16697
+ 0% {
16698
+ left: -200%;
16699
+ right: 100%;
16700
+ }
16701
+
16702
+ 60% {
16703
+ left: 107%;
16704
+ right: -8%;
16705
+ }
16706
+
16707
+ 100% {
16708
+ left: 107%;
16709
+ right: -8%;
16710
+ }
16711
+ `));
16712
+ const bufferKeyframe = keyframes(_t3 || (_t3 = _`
16713
+ 0% {
16714
+ opacity: 1;
16715
+ background-position: 0 -23px;
16716
+ }
16717
+
16718
+ 60% {
16719
+ opacity: 0;
16720
+ background-position: 0 -23px;
16721
+ }
16722
+
16723
+ 100% {
16724
+ opacity: 1;
16725
+ background-position: -200px -23px;
16726
+ }
16727
+ `));
16728
+ const useUtilityClasses$1 = ownerState => {
16729
+ const {
16730
+ classes,
16731
+ variant,
16732
+ color
16733
+ } = ownerState;
16734
+ const slots = {
16735
+ root: ['root', `color${capitalize(color)}`, variant],
16736
+ dashed: ['dashed', `dashedColor${capitalize(color)}`],
16737
+ bar1: ['bar', `barColor${capitalize(color)}`, (variant === 'indeterminate' || variant === 'query') && 'bar1Indeterminate', variant === 'determinate' && 'bar1Determinate', variant === 'buffer' && 'bar1Buffer'],
16738
+ bar2: ['bar', variant !== 'buffer' && `barColor${capitalize(color)}`, variant === 'buffer' && `color${capitalize(color)}`, (variant === 'indeterminate' || variant === 'query') && 'bar2Indeterminate', variant === 'buffer' && 'bar2Buffer']
16739
+ };
16740
+ return composeClasses(slots, getLinearProgressUtilityClass, classes);
16741
+ };
16742
+ const getColorShade = (theme, color) => {
16743
+ if (color === 'inherit') {
16744
+ return 'currentColor';
16745
+ }
16746
+ if (theme.vars) {
16747
+ return theme.vars.palette.LinearProgress[`${color}Bg`];
16748
+ }
16749
+ return theme.palette.mode === 'light' ? lighten(theme.palette[color].main, 0.62) : darken(theme.palette[color].main, 0.5);
16750
+ };
16751
+ const LinearProgressRoot = styled$1('span', {
16752
+ name: 'MuiLinearProgress',
16753
+ slot: 'Root',
16754
+ overridesResolver: (props, styles) => {
16755
+ const {
16756
+ ownerState
16757
+ } = props;
16758
+ return [styles.root, styles[`color${capitalize(ownerState.color)}`], styles[ownerState.variant]];
16759
+ }
16760
+ })(({
16761
+ ownerState,
16762
+ theme
16763
+ }) => _extends$4({
16764
+ position: 'relative',
16765
+ overflow: 'hidden',
16766
+ display: 'block',
16767
+ height: 4,
16768
+ zIndex: 0,
16769
+ // Fix Safari's bug during composition of different paint.
16770
+ '@media print': {
16771
+ colorAdjust: 'exact'
16772
+ },
16773
+ backgroundColor: getColorShade(theme, ownerState.color)
16774
+ }, ownerState.color === 'inherit' && ownerState.variant !== 'buffer' && {
16775
+ backgroundColor: 'none',
16776
+ '&::before': {
16777
+ content: '""',
16778
+ position: 'absolute',
16779
+ left: 0,
16780
+ top: 0,
16781
+ right: 0,
16782
+ bottom: 0,
16783
+ backgroundColor: 'currentColor',
16784
+ opacity: 0.3
16785
+ }
16786
+ }, ownerState.variant === 'buffer' && {
16787
+ backgroundColor: 'transparent'
16788
+ }, ownerState.variant === 'query' && {
16789
+ transform: 'rotate(180deg)'
16790
+ }));
16791
+ const LinearProgressDashed = styled$1('span', {
16792
+ name: 'MuiLinearProgress',
16793
+ slot: 'Dashed',
16794
+ overridesResolver: (props, styles) => {
16795
+ const {
16796
+ ownerState
16797
+ } = props;
16798
+ return [styles.dashed, styles[`dashedColor${capitalize(ownerState.color)}`]];
16799
+ }
16800
+ })(({
16801
+ ownerState,
16802
+ theme
16803
+ }) => {
16804
+ const backgroundColor = getColorShade(theme, ownerState.color);
16805
+ return _extends$4({
16806
+ position: 'absolute',
16807
+ marginTop: 0,
16808
+ height: '100%',
16809
+ width: '100%'
16810
+ }, ownerState.color === 'inherit' && {
16811
+ opacity: 0.3
16812
+ }, {
16813
+ backgroundImage: `radial-gradient(${backgroundColor} 0%, ${backgroundColor} 16%, transparent 42%)`,
16814
+ backgroundSize: '10px 10px',
16815
+ backgroundPosition: '0 -23px'
16816
+ });
16817
+ }, css(_t4 || (_t4 = _`
16818
+ animation: ${0} 3s infinite linear;
16819
+ `), bufferKeyframe));
16820
+ const LinearProgressBar1 = styled$1('span', {
16821
+ name: 'MuiLinearProgress',
16822
+ slot: 'Bar1',
16823
+ overridesResolver: (props, styles) => {
16824
+ const {
16825
+ ownerState
16826
+ } = props;
16827
+ 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];
16828
+ }
16829
+ })(({
16830
+ ownerState,
16831
+ theme
16832
+ }) => _extends$4({
16833
+ width: '100%',
16834
+ position: 'absolute',
16835
+ left: 0,
16836
+ bottom: 0,
16837
+ top: 0,
16838
+ transition: 'transform 0.2s linear',
16839
+ transformOrigin: 'left',
16840
+ backgroundColor: ownerState.color === 'inherit' ? 'currentColor' : (theme.vars || theme).palette[ownerState.color].main
16841
+ }, ownerState.variant === 'determinate' && {
16842
+ transition: `transform .${TRANSITION_DURATION}s linear`
16843
+ }, ownerState.variant === 'buffer' && {
16844
+ zIndex: 1,
16845
+ transition: `transform .${TRANSITION_DURATION}s linear`
16846
+ }), ({
16847
+ ownerState
16848
+ }) => (ownerState.variant === 'indeterminate' || ownerState.variant === 'query') && css(_t5 || (_t5 = _`
16849
+ width: auto;
16850
+ animation: ${0} 2.1s cubic-bezier(0.65, 0.815, 0.735, 0.395) infinite;
16851
+ `), indeterminate1Keyframe));
16852
+ const LinearProgressBar2 = styled$1('span', {
16853
+ name: 'MuiLinearProgress',
16854
+ slot: 'Bar2',
16855
+ overridesResolver: (props, styles) => {
16856
+ const {
16857
+ ownerState
16858
+ } = props;
16859
+ return [styles.bar, styles[`barColor${capitalize(ownerState.color)}`], (ownerState.variant === 'indeterminate' || ownerState.variant === 'query') && styles.bar2Indeterminate, ownerState.variant === 'buffer' && styles.bar2Buffer];
16860
+ }
16861
+ })(({
16862
+ ownerState,
16863
+ theme
16864
+ }) => _extends$4({
16865
+ width: '100%',
16866
+ position: 'absolute',
16867
+ left: 0,
16868
+ bottom: 0,
16869
+ top: 0,
16870
+ transition: 'transform 0.2s linear',
16871
+ transformOrigin: 'left'
16872
+ }, ownerState.variant !== 'buffer' && {
16873
+ backgroundColor: ownerState.color === 'inherit' ? 'currentColor' : (theme.vars || theme).palette[ownerState.color].main
16874
+ }, ownerState.color === 'inherit' && {
16875
+ opacity: 0.3
16876
+ }, ownerState.variant === 'buffer' && {
16877
+ backgroundColor: getColorShade(theme, ownerState.color),
16878
+ transition: `transform .${TRANSITION_DURATION}s linear`
16879
+ }), ({
16880
+ ownerState
16881
+ }) => (ownerState.variant === 'indeterminate' || ownerState.variant === 'query') && css(_t6 || (_t6 = _`
16882
+ width: auto;
16883
+ animation: ${0} 2.1s cubic-bezier(0.165, 0.84, 0.44, 1) 1.15s infinite;
16884
+ `), indeterminate2Keyframe));
16885
+
16886
+ /**
16887
+ * ## ARIA
16888
+ *
16889
+ * If the progress bar is describing the loading progress of a particular region of a page,
16890
+ * you should use `aria-describedby` to point to the progress bar, and set the `aria-busy`
16891
+ * attribute to `true` on that region until it has finished loading.
16892
+ */
16893
+ const LinearProgress = /*#__PURE__*/React.forwardRef(function LinearProgress(inProps, ref) {
16894
+ const props = useThemeProps({
16895
+ props: inProps,
16896
+ name: 'MuiLinearProgress'
16897
+ });
16898
+ const {
16899
+ className,
16900
+ color = 'primary',
16901
+ value,
16902
+ valueBuffer,
16903
+ variant = 'indeterminate'
16904
+ } = props,
16905
+ other = _objectWithoutPropertiesLoose$3(props, _excluded$1);
16906
+ const ownerState = _extends$4({}, props, {
16907
+ color,
16908
+ variant
16909
+ });
16910
+ const classes = useUtilityClasses$1(ownerState);
16911
+ const theme = useTheme();
16912
+ const rootProps = {};
16913
+ const inlineStyles = {
16914
+ bar1: {},
16915
+ bar2: {}
16916
+ };
16917
+ if (variant === 'determinate' || variant === 'buffer') {
16918
+ if (value !== undefined) {
16919
+ rootProps['aria-valuenow'] = Math.round(value);
16920
+ rootProps['aria-valuemin'] = 0;
16921
+ rootProps['aria-valuemax'] = 100;
16922
+ let transform = value - 100;
16923
+ if (theme.direction === 'rtl') {
16924
+ transform = -transform;
16925
+ }
16926
+ inlineStyles.bar1.transform = `translateX(${transform}%)`;
16927
+ } else if (process.env.NODE_ENV !== 'production') {
16928
+ console.error('MUI: You need to provide a value prop ' + 'when using the determinate or buffer variant of LinearProgress .');
16929
+ }
16930
+ }
16931
+ if (variant === 'buffer') {
16932
+ if (valueBuffer !== undefined) {
16933
+ let transform = (valueBuffer || 0) - 100;
16934
+ if (theme.direction === 'rtl') {
16935
+ transform = -transform;
16936
+ }
16937
+ inlineStyles.bar2.transform = `translateX(${transform}%)`;
16938
+ } else if (process.env.NODE_ENV !== 'production') {
16939
+ console.error('MUI: You need to provide a valueBuffer prop ' + 'when using the buffer variant of LinearProgress.');
16940
+ }
16941
+ }
16942
+ return /*#__PURE__*/jsxs(LinearProgressRoot, _extends$4({
16943
+ className: clsx(classes.root, className),
16944
+ ownerState: ownerState,
16945
+ role: "progressbar"
16946
+ }, rootProps, {
16947
+ ref: ref
16948
+ }, other, {
16949
+ children: [variant === 'buffer' ? /*#__PURE__*/jsx(LinearProgressDashed, {
16950
+ className: classes.dashed,
16951
+ ownerState: ownerState
16952
+ }) : null, /*#__PURE__*/jsx(LinearProgressBar1, {
16953
+ className: classes.bar1,
16954
+ ownerState: ownerState,
16955
+ style: inlineStyles.bar1
16956
+ }), variant === 'determinate' ? null : /*#__PURE__*/jsx(LinearProgressBar2, {
16957
+ className: classes.bar2,
16958
+ ownerState: ownerState,
16959
+ style: inlineStyles.bar2
16960
+ })]
16961
+ }));
16962
+ });
16963
+ process.env.NODE_ENV !== "production" ? LinearProgress.propTypes /* remove-proptypes */ = {
16964
+ // ----------------------------- Warning --------------------------------
16965
+ // | These PropTypes are generated from the TypeScript type definitions |
16966
+ // | To update them edit the d.ts file and run "yarn proptypes" |
16967
+ // ----------------------------------------------------------------------
16968
+ /**
16969
+ * Override or extend the styles applied to the component.
16970
+ */
16971
+ classes: PropTypes.object,
16972
+ /**
16973
+ * @ignore
16974
+ */
16975
+ className: PropTypes.string,
16976
+ /**
16977
+ * The color of the component.
16978
+ * It supports both default and custom theme colors, which can be added as shown in the
16979
+ * [palette customization guide](https://mui.com/material-ui/customization/palette/#adding-new-colors).
16980
+ * @default 'primary'
16981
+ */
16982
+ color: PropTypes /* @typescript-to-proptypes-ignore */.oneOfType([PropTypes.oneOf(['inherit', 'primary', 'secondary']), PropTypes.string]),
16983
+ /**
16984
+ * The system prop that allows defining system overrides as well as additional CSS styles.
16985
+ */
16986
+ sx: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.func, PropTypes.object, PropTypes.bool])), PropTypes.func, PropTypes.object]),
16987
+ /**
16988
+ * The value of the progress indicator for the determinate and buffer variants.
16989
+ * Value between 0 and 100.
16990
+ */
16991
+ value: PropTypes.number,
16992
+ /**
16993
+ * The value for the buffer variant.
16994
+ * Value between 0 and 100.
16995
+ */
16996
+ valueBuffer: PropTypes.number,
16997
+ /**
16998
+ * The variant to use.
16999
+ * Use indeterminate or query when there is no progress value.
17000
+ * @default 'indeterminate'
17001
+ */
17002
+ variant: PropTypes.oneOf(['buffer', 'determinate', 'indeterminate', 'query'])
17003
+ } : void 0;
17004
+ var LinearProgress$1 = LinearProgress;
17005
+
15906
17006
  function getToolbarUtilityClass(slot) {
15907
17007
  return generateUtilityClass('MuiToolbar', slot);
15908
17008
  }
@@ -16634,6 +17734,239 @@ const FooterActionComponent = ({
16634
17734
  }), /*#__PURE__*/React__default.createElement(Box$2, null, labelChangeCounter), renderRightContent));
16635
17735
  };
16636
17736
 
17737
+ const PageHeaderContent = styled$1(Stack$1)(({
17738
+ theme
17739
+ }) => ({
17740
+ backgroundColor: '#fff',
17741
+ 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)',
17742
+ zIndex: 100,
17743
+ padding: '8px 24px',
17744
+ justifyContent: 'space-between',
17745
+ minHeight: 39,
17746
+ position: 'fixed',
17747
+ width: '100%'
17748
+ }));
17749
+ const PageHeaderComponent = ({
17750
+ title,
17751
+ subtitle,
17752
+ actions,
17753
+ buttonBack
17754
+ }) => {
17755
+ return /*#__PURE__*/React__default.createElement(ThemeProvider, {
17756
+ theme: SincoTheme
17757
+ }, /*#__PURE__*/React__default.createElement("div", {
17758
+ style: {
17759
+ minHeight: 56
17760
+ }
17761
+ }, /*#__PURE__*/React__default.createElement(PageHeaderContent, null, /*#__PURE__*/React__default.createElement(Stack$1, {
17762
+ width: "90%",
17763
+ justifyContent: "space-between",
17764
+ flexDirection: "row",
17765
+ alignItems: "center"
17766
+ }, /*#__PURE__*/React__default.createElement(Stack$1, {
17767
+ gap: 1.5,
17768
+ flexDirection: "row",
17769
+ alignItems: "center"
17770
+ }, buttonBack, /*#__PURE__*/React__default.createElement(Stack$1, null, /*#__PURE__*/React__default.createElement(Typography$1, {
17771
+ variant: "h6",
17772
+ color: "text.primary"
17773
+ }, title), /*#__PURE__*/React__default.createElement(Typography$1, {
17774
+ variant: "caption",
17775
+ color: "text.secondary"
17776
+ }, subtitle))), /*#__PURE__*/React__default.createElement(Stack$1, {
17777
+ gap: 1,
17778
+ alignItems: "center",
17779
+ flexDirection: "row"
17780
+ }, actions)))));
17781
+ };
17782
+
17783
+ const ToastContainer = styled$1(Stack$1)(() => ({
17784
+ position: 'fixed',
17785
+ zIndex: 1400,
17786
+ 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)',
17787
+ right: 16,
17788
+ marginTop: 16
17789
+ }));
17790
+ const ToastContent = styled$1(Box$2)(({
17791
+ theme
17792
+ }) => ({
17793
+ padding: theme.spacing(1.5),
17794
+ gap: theme.spacing(1.5),
17795
+ display: 'flex',
17796
+ alignItems: 'center',
17797
+ '&.color-error': {
17798
+ backgroundColor: '#FEEBEE'
17799
+ },
17800
+ '&.color-info': {
17801
+ backgroundColor: '#E1F5FE'
17802
+ },
17803
+ '&.color-warning': {
17804
+ backgroundColor: '#FFF3E0'
17805
+ },
17806
+ '&.color-success': {
17807
+ backgroundColor: '#E8F5E9'
17808
+ }
17809
+ }));
17810
+ const RippleIcon = styled$1(Stack$1)(({
17811
+ theme
17812
+ }) => ({
17813
+ padding: theme.spacing(1),
17814
+ gap: theme.spacing(1),
17815
+ height: 20,
17816
+ borderRadius: 50,
17817
+ '&.ripple-error': {
17818
+ backgroundColor: '#D143431F'
17819
+ },
17820
+ '&.ripple-info': {
17821
+ backgroundColor: '#2D9FC51F'
17822
+ },
17823
+ '&.ripple-warning': {
17824
+ backgroundColor: '#FB85001F'
17825
+ },
17826
+ '&.ripple-success': {
17827
+ backgroundColor: '#8FC93A1F'
17828
+ }
17829
+ }));
17830
+ const ToastIconContainer = styled$1(Stack$1)(({
17831
+ theme
17832
+ }) => ({
17833
+ '&.icon-color.color-info': {
17834
+ color: theme.palette.info.main
17835
+ },
17836
+ '&.icon-color.color-error': {
17837
+ color: theme.palette.error.main
17838
+ },
17839
+ '&.icon-color.color-warning': {
17840
+ color: theme.palette.warning.main
17841
+ },
17842
+ '&.icon-color.color-success': {
17843
+ color: theme.palette.success.main
17844
+ }
17845
+ }));
17846
+ const ToastNotificationComponent = toast => {
17847
+ const [stateToast, setStateToast] = useState(true);
17848
+ const [stateOptions, setStateOptions] = useState(true);
17849
+ const [progress, setProgress] = useState(100);
17850
+ const timeProgress = toast.time || 8000;
17851
+ const toastIconOption = {
17852
+ success: /*#__PURE__*/React__default.createElement(CheckCircleRounded, null),
17853
+ error: /*#__PURE__*/React__default.createElement(ErrorRounded, null),
17854
+ warning: /*#__PURE__*/React__default.createElement(WarningRounded, null),
17855
+ info: /*#__PURE__*/React__default.createElement(InfoRounded, null)
17856
+ };
17857
+ const ToastIconConfig = toastIconOption[toast.type || 'info'];
17858
+ const toastColorOption = {
17859
+ success: 'success',
17860
+ error: 'error',
17861
+ warning: 'warning',
17862
+ info: 'info'
17863
+ };
17864
+ const toastColorConfig = toastColorOption[toast.type || 'info'];
17865
+ const closeToast = () => {
17866
+ setStateToast(false);
17867
+ };
17868
+ const toggleToastOptions = () => {
17869
+ setStateOptions(prevShowOptions => !prevShowOptions);
17870
+ };
17871
+ useEffect(() => {
17872
+ let seconds = 0;
17873
+ const interval = setInterval(() => {
17874
+ seconds += 100;
17875
+ const progress = 100 - seconds / timeProgress * 100;
17876
+ setProgress(progress <= 0 ? 0 : progress);
17877
+ }, 100);
17878
+ const closeTimeout = setTimeout(() => {
17879
+ clearInterval(interval);
17880
+ setStateToast(false);
17881
+ }, timeProgress);
17882
+ return () => {
17883
+ clearInterval(interval);
17884
+ clearTimeout(closeTimeout);
17885
+ };
17886
+ }, [timeProgress]);
17887
+ return /*#__PURE__*/React__default.createElement(React__default.Fragment, null, stateToast && /*#__PURE__*/React__default.createElement(ThemeProvider, {
17888
+ theme: SincoTheme
17889
+ }, /*#__PURE__*/React__default.createElement(Stack$1, {
17890
+ height: 105,
17891
+ top: 16,
17892
+ right: 16,
17893
+ position: "absolute",
17894
+ zIndex: 1400
17895
+ }, /*#__PURE__*/React__default.createElement(ToastContainer, {
17896
+ position: 'fixed'
17897
+ }, /*#__PURE__*/React__default.createElement(ToastContent, {
17898
+ className: `color-${toast.type || 'info'}`
17899
+ }, toast && /*#__PURE__*/React__default.createElement(RippleIcon, {
17900
+ className: `ripple-${toast.type || 'info'}`
17901
+ }, /*#__PURE__*/React__default.createElement(ToastIconContainer, {
17902
+ className: `icon-color color-${toast.type || 'info'}`
17903
+ }, ToastIconConfig)), /*#__PURE__*/React__default.createElement(Divider$1, {
17904
+ orientation: "vertical",
17905
+ flexItem: true
17906
+ }), /*#__PURE__*/React__default.createElement(Stack$1, {
17907
+ gap: 0.5,
17908
+ width: 285
17909
+ }, /*#__PURE__*/React__default.createElement(Stack$1, {
17910
+ justifyContent: "space-between",
17911
+ flexDirection: "row",
17912
+ alignItems: "center"
17913
+ }, /*#__PURE__*/React__default.createElement(Typography$1, {
17914
+ variant: "subtitle2",
17915
+ color: "text.primary"
17916
+ }, toast.title), /*#__PURE__*/React__default.createElement(IconButton$1, {
17917
+ size: "small",
17918
+ "aria-label": "delete",
17919
+ onClick: closeToast
17920
+ }, /*#__PURE__*/React__default.createElement(Close$1, null))), /*#__PURE__*/React__default.createElement(Stack$1, {
17921
+ gap: "4px"
17922
+ }, /*#__PURE__*/React__default.createElement(Typography$1, {
17923
+ color: "text.primary",
17924
+ variant: "body2"
17925
+ }, toast.subtitle), !stateOptions && toast.dataOpt && toast.dataOpt.length > 0 && /*#__PURE__*/React__default.createElement("ul", {
17926
+ style: {
17927
+ paddingLeft: 15,
17928
+ marginBlock: 0,
17929
+ fontSize: 11,
17930
+ color: '#101840de'
17931
+ }
17932
+ }, toast.dataOpt.map((element, i) => {
17933
+ const keyElement = Object.keys(element);
17934
+ let options = '';
17935
+ for (let _i = 0; _i < keyElement.length; _i++) {
17936
+ options += element[keyElement[_i]];
17937
+ }
17938
+ return /*#__PURE__*/React__default.createElement("li", {
17939
+ style: {
17940
+ width: 'fit-content'
17941
+ },
17942
+ key: i
17943
+ }, /*#__PURE__*/React__default.createElement(Typography$1, {
17944
+ variant: "caption"
17945
+ }, options));
17946
+ }))), /*#__PURE__*/React__default.createElement(Stack$1, {
17947
+ justifyContent: "flex-end",
17948
+ flexDirection: "row",
17949
+ alignItems: "flex-end"
17950
+ }, toast.actions && /*#__PURE__*/React__default.createElement(Stack$1, {
17951
+ flexDirection: "row",
17952
+ gap: 1
17953
+ }, toast.actions), toast.seeMore && /*#__PURE__*/React__default.createElement(Button$1, {
17954
+ onClick: toggleToastOptions,
17955
+ size: "small",
17956
+ variant: "text",
17957
+ color: toastColorConfig,
17958
+ endIcon: stateOptions ? /*#__PURE__*/React__default.createElement(ArrowDownward, {
17959
+ fontSize: "small"
17960
+ }) : /*#__PURE__*/React__default.createElement(ArrowUpward, {
17961
+ fontSize: "small"
17962
+ })
17963
+ }, stateOptions ? 'Ver más' : 'Ver menos')))), /*#__PURE__*/React__default.createElement(LinearProgress$1, {
17964
+ color: toastColorConfig,
17965
+ variant: "determinate",
17966
+ value: progress
17967
+ })))));
17968
+ };
17969
+
16637
17970
  var global$6 = global$l;
16638
17971
  var classof$2 = classofRaw$2;
16639
17972
 
@@ -22091,4 +23424,4 @@ const useDynamicColor = url => {
22091
23424
  };
22092
23425
  };
22093
23426
 
22094
- export { DrawerComponent, DynamicColor, EmptyStateComponent, EmptyStateImageUrls, FooterActionComponent, SincoTheme, useDynamicColor };
23427
+ export { DrawerComponent, DynamicColor, EmptyStateComponent, EmptyStateImageUrls, FooterActionComponent, PageHeaderComponent, PageHeaderContent, SincoTheme, ToastNotificationComponent, useDynamicColor };