@groupeactual/ui-kit 0.1.8 → 0.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (43) hide show
  1. package/dist/cjs/DesignSystemProvider.d.ts +1 -1
  2. package/dist/cjs/from-scratch-components/Tag/Tag.d.ts +1 -1
  3. package/dist/cjs/from-scratch-components/Tag/index.d.ts +1 -1
  4. package/dist/cjs/from-scratch-components/index.d.ts +1 -1
  5. package/dist/cjs/index.js +1175 -63
  6. package/dist/cjs/index.js.map +1 -1
  7. package/dist/cjs/material-ui-components/Accordion/Accordion.d.ts +9 -0
  8. package/dist/cjs/material-ui-components/Accordion/index.d.ts +1 -0
  9. package/dist/cjs/material-ui-components/Button/Button.d.ts +1 -1
  10. package/dist/cjs/material-ui-components/Form/Checkbox/Checkbox.d.ts +2 -1
  11. package/dist/cjs/material-ui-components/Heading/Heading.d.ts +1 -1
  12. package/dist/cjs/material-ui-components/Icon/IconProvider.d.ts +10 -0
  13. package/dist/cjs/material-ui-components/Icon/index.d.ts +1 -0
  14. package/dist/cjs/material-ui-components/index.d.ts +2 -0
  15. package/dist/esm/DesignSystemProvider.d.ts +1 -1
  16. package/dist/esm/from-scratch-components/Tag/Tag.d.ts +1 -1
  17. package/dist/esm/from-scratch-components/Tag/index.d.ts +1 -1
  18. package/dist/esm/from-scratch-components/index.d.ts +1 -1
  19. package/dist/esm/index.js +1174 -64
  20. package/dist/esm/index.js.map +1 -1
  21. package/dist/esm/material-ui-components/Accordion/Accordion.d.ts +9 -0
  22. package/dist/esm/material-ui-components/Accordion/index.d.ts +1 -0
  23. package/dist/esm/material-ui-components/Button/Button.d.ts +1 -1
  24. package/dist/esm/material-ui-components/Form/Checkbox/Checkbox.d.ts +2 -1
  25. package/dist/esm/material-ui-components/Heading/Heading.d.ts +1 -1
  26. package/dist/esm/material-ui-components/Icon/IconProvider.d.ts +10 -0
  27. package/dist/esm/material-ui-components/Icon/index.d.ts +1 -0
  28. package/dist/esm/material-ui-components/index.d.ts +2 -0
  29. package/dist/index.d.ts +31 -11
  30. package/package.json +5 -1
  31. package/src/DesignSystemProvider.tsx +1 -1
  32. package/src/from-scratch-components/Tag/Tag.tsx +15 -10
  33. package/src/from-scratch-components/Tag/index.ts +1 -1
  34. package/src/from-scratch-components/index.ts +1 -1
  35. package/src/material-ui-components/Accordion/Accordion.tsx +40 -0
  36. package/src/material-ui-components/Accordion/index.ts +1 -0
  37. package/src/material-ui-components/Button/Button.tsx +2 -1
  38. package/src/material-ui-components/Form/Checkbox/Checkbox.tsx +33 -8
  39. package/src/material-ui-components/Form/TextInput/TextInput.tsx +5 -3
  40. package/src/material-ui-components/Heading/Heading.tsx +2 -1
  41. package/src/material-ui-components/Icon/IconProvider.tsx +123 -0
  42. package/src/material-ui-components/Icon/index.ts +1 -0
  43. package/src/material-ui-components/index.ts +2 -0
package/dist/cjs/index.js CHANGED
@@ -99,12 +99,12 @@ var css_248z = ".tag {\n padding: 4px 8px;\n border-radius: 4px;\n background
99
99
  styleInject(css_248z);
100
100
 
101
101
  var ActTag = function (props) {
102
- return jsxRuntime.jsx("span", __assign$1({ className: clsx({
102
+ return (jsxRuntime.jsx("span", __assign$1({ className: clsx({
103
103
  tag: true,
104
104
  red: props.color === 'red',
105
105
  green: props.color === 'green',
106
106
  blue: props.color === 'blue'
107
- }) }, { children: props.label }));
107
+ }) }, { children: props.label })));
108
108
  };
109
109
 
110
110
  const common = {
@@ -5950,7 +5950,7 @@ const styleFunctionSx = unstable_createStyleFunctionSx();
5950
5950
  styleFunctionSx.filterProps = ['sx'];
5951
5951
  var defaultStyleFunctionSx = styleFunctionSx;
5952
5952
 
5953
- const _excluded$G = ["sx"];
5953
+ const _excluded$K = ["sx"];
5954
5954
 
5955
5955
  const splitProps = props => {
5956
5956
  const result = {
@@ -5971,7 +5971,7 @@ function extendSxProp(props) {
5971
5971
  const {
5972
5972
  sx: inSx
5973
5973
  } = props,
5974
- other = _objectWithoutPropertiesLoose(props, _excluded$G);
5974
+ other = _objectWithoutPropertiesLoose(props, _excluded$K);
5975
5975
 
5976
5976
  const {
5977
5977
  systemProps,
@@ -6000,7 +6000,7 @@ function extendSxProp(props) {
6000
6000
  });
6001
6001
  }
6002
6002
 
6003
- const _excluded$F = ["values", "unit", "step"];
6003
+ const _excluded$J = ["values", "unit", "step"];
6004
6004
 
6005
6005
  const sortBreakpointsValues = values => {
6006
6006
  const breakpointsAsArray = Object.keys(values).map(key => ({
@@ -6036,7 +6036,7 @@ function createBreakpoints(breakpoints) {
6036
6036
  unit = 'px',
6037
6037
  step = 5
6038
6038
  } = breakpoints,
6039
- other = _objectWithoutPropertiesLoose(breakpoints, _excluded$F);
6039
+ other = _objectWithoutPropertiesLoose(breakpoints, _excluded$J);
6040
6040
 
6041
6041
  const sortedValues = sortBreakpointsValues(values);
6042
6042
  const keys = Object.keys(sortedValues);
@@ -6128,7 +6128,7 @@ function createSpacing(spacingInput = 8) {
6128
6128
  return spacing;
6129
6129
  }
6130
6130
 
6131
- const _excluded$E = ["breakpoints", "palette", "spacing", "shape"];
6131
+ const _excluded$I = ["breakpoints", "palette", "spacing", "shape"];
6132
6132
 
6133
6133
  function createTheme$1(options = {}, ...args) {
6134
6134
  const {
@@ -6137,7 +6137,7 @@ function createTheme$1(options = {}, ...args) {
6137
6137
  spacing: spacingInput,
6138
6138
  shape: shapeInput = {}
6139
6139
  } = options,
6140
- other = _objectWithoutPropertiesLoose(options, _excluded$E);
6140
+ other = _objectWithoutPropertiesLoose(options, _excluded$I);
6141
6141
 
6142
6142
  const breakpoints = createBreakpoints(breakpointsInput);
6143
6143
  const spacing = createSpacing(spacingInput);
@@ -6190,7 +6190,7 @@ function useTheme$1(defaultTheme = systemDefaultTheme$1) {
6190
6190
  return useTheme$2(defaultTheme);
6191
6191
  }
6192
6192
 
6193
- const _excluded$D = ["className", "component"];
6193
+ const _excluded$H = ["className", "component"];
6194
6194
  function createBox(options = {}) {
6195
6195
  const {
6196
6196
  defaultTheme,
@@ -6209,7 +6209,7 @@ function createBox(options = {}) {
6209
6209
  className,
6210
6210
  component = 'div'
6211
6211
  } = _extendSxProp,
6212
- other = _objectWithoutPropertiesLoose(_extendSxProp, _excluded$D);
6212
+ other = _objectWithoutPropertiesLoose(_extendSxProp, _excluded$H);
6213
6213
 
6214
6214
  return /*#__PURE__*/jsxRuntime.jsx(BoxRoot, _extends({
6215
6215
  as: component,
@@ -6221,8 +6221,8 @@ function createBox(options = {}) {
6221
6221
  return Box;
6222
6222
  }
6223
6223
 
6224
- const Box = createBox();
6225
- process.env.NODE_ENV !== "production" ? Box.propTypes
6224
+ const Box$2 = createBox();
6225
+ process.env.NODE_ENV !== "production" ? Box$2.propTypes
6226
6226
  /* remove-proptypes */
6227
6227
  = {
6228
6228
  // ----------------------------- Warning --------------------------------
@@ -6246,9 +6246,9 @@ process.env.NODE_ENV !== "production" ? Box.propTypes
6246
6246
  */
6247
6247
  sx: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.func, PropTypes.object, PropTypes.bool])), PropTypes.func, PropTypes.object])
6248
6248
  } : void 0;
6249
- var Box$1 = Box;
6249
+ var Box$3 = Box$2;
6250
6250
 
6251
- const _excluded$C = ["variant"];
6251
+ const _excluded$G = ["variant"];
6252
6252
 
6253
6253
  function isEmpty$3(string) {
6254
6254
  return string.length === 0;
@@ -6264,7 +6264,7 @@ function propsToClassKey(props) {
6264
6264
  const {
6265
6265
  variant
6266
6266
  } = props,
6267
- other = _objectWithoutPropertiesLoose(props, _excluded$C);
6267
+ other = _objectWithoutPropertiesLoose(props, _excluded$G);
6268
6268
 
6269
6269
  let classKey = variant || '';
6270
6270
  Object.keys(other).sort().forEach(key => {
@@ -6277,7 +6277,7 @@ function propsToClassKey(props) {
6277
6277
  return classKey;
6278
6278
  }
6279
6279
 
6280
- const _excluded$B = ["name", "slot", "skipVariantsResolver", "skipSx", "overridesResolver"],
6280
+ const _excluded$F = ["name", "slot", "skipVariantsResolver", "skipSx", "overridesResolver"],
6281
6281
  _excluded2$3 = ["theme"],
6282
6282
  _excluded3 = ["theme"];
6283
6283
 
@@ -6380,7 +6380,7 @@ function createStyled(input = {}) {
6380
6380
  skipSx: inputSkipSx,
6381
6381
  overridesResolver
6382
6382
  } = inputOptions,
6383
- options = _objectWithoutPropertiesLoose(inputOptions, _excluded$B); // if skipVariantsResolver option is defined, take the value, otherwise, true for root and false for other slots.
6383
+ options = _objectWithoutPropertiesLoose(inputOptions, _excluded$F); // if skipVariantsResolver option is defined, take the value, otherwise, true for root and false for other slots.
6384
6384
 
6385
6385
 
6386
6386
  const skipVariantsResolver = inputSkipVariantsResolver !== undefined ? inputSkipVariantsResolver : componentSlot && componentSlot !== 'Root' || false;
@@ -6952,7 +6952,7 @@ function mergeSlotProps(parameters) {
6952
6952
  };
6953
6953
  }
6954
6954
 
6955
- const _excluded$A = ["elementType", "externalSlotProps", "ownerState"];
6955
+ const _excluded$E = ["elementType", "externalSlotProps", "ownerState"];
6956
6956
 
6957
6957
  /**
6958
6958
  * Builds the props to be passed into the slot of an unstyled component.
@@ -6969,7 +6969,7 @@ function useSlotProps(parameters) {
6969
6969
  externalSlotProps,
6970
6970
  ownerState
6971
6971
  } = parameters,
6972
- rest = _objectWithoutPropertiesLoose(parameters, _excluded$A);
6972
+ rest = _objectWithoutPropertiesLoose(parameters, _excluded$E);
6973
6973
 
6974
6974
  const resolvedComponentsProps = resolveComponentProps(externalSlotProps, ownerState);
6975
6975
  const {
@@ -38539,9 +38539,9 @@ function getModalUtilityClass(slot) {
38539
38539
  }
38540
38540
  generateUtilityClasses('MuiModal', ['root', 'hidden']);
38541
38541
 
38542
- const _excluded$z = ["children", "classes", "closeAfterTransition", "component", "components", "componentsProps", "container", "disableAutoFocus", "disableEnforceFocus", "disableEscapeKeyDown", "disablePortal", "disableRestoreFocus", "disableScrollLock", "hideBackdrop", "keepMounted", "manager", "onBackdropClick", "onClose", "onKeyDown", "open", "onTransitionEnter", "onTransitionExited"];
38542
+ const _excluded$D = ["children", "classes", "closeAfterTransition", "component", "components", "componentsProps", "container", "disableAutoFocus", "disableEnforceFocus", "disableEscapeKeyDown", "disablePortal", "disableRestoreFocus", "disableScrollLock", "hideBackdrop", "keepMounted", "manager", "onBackdropClick", "onClose", "onKeyDown", "open", "onTransitionEnter", "onTransitionExited"];
38543
38543
 
38544
- const useUtilityClasses$o = ownerState => {
38544
+ const useUtilityClasses$s = ownerState => {
38545
38545
  const {
38546
38546
  open,
38547
38547
  exited,
@@ -38609,7 +38609,7 @@ const ModalUnstyled = /*#__PURE__*/React__namespace.forwardRef(function ModalUns
38609
38609
  onTransitionEnter,
38610
38610
  onTransitionExited
38611
38611
  } = props,
38612
- other = _objectWithoutPropertiesLoose(props, _excluded$z);
38612
+ other = _objectWithoutPropertiesLoose(props, _excluded$D);
38613
38613
 
38614
38614
  const [exited, setExited] = React__namespace.useState(true);
38615
38615
  const modal = React__namespace.useRef({});
@@ -38687,7 +38687,7 @@ const ModalUnstyled = /*#__PURE__*/React__namespace.forwardRef(function ModalUns
38687
38687
  keepMounted
38688
38688
  });
38689
38689
 
38690
- const classes = useUtilityClasses$o(ownerState);
38690
+ const classes = useUtilityClasses$s(ownerState);
38691
38691
 
38692
38692
  const handleEnter = () => {
38693
38693
  setExited(false);
@@ -38951,7 +38951,7 @@ process.env.NODE_ENV !== "production" ? ModalUnstyled.propTypes
38951
38951
  } : void 0;
38952
38952
  var ModalUnstyled$1 = ModalUnstyled;
38953
38953
 
38954
- const _excluded$y = ["onChange", "maxRows", "minRows", "style", "value"];
38954
+ const _excluded$C = ["onChange", "maxRows", "minRows", "style", "value"];
38955
38955
 
38956
38956
  function getStyleValue(computedStyle, property) {
38957
38957
  return parseInt(computedStyle[property], 10) || 0;
@@ -38985,7 +38985,7 @@ const TextareaAutosize = /*#__PURE__*/React__namespace.forwardRef(function Texta
38985
38985
  style,
38986
38986
  value
38987
38987
  } = props,
38988
- other = _objectWithoutPropertiesLoose(props, _excluded$y);
38988
+ other = _objectWithoutPropertiesLoose(props, _excluded$C);
38989
38989
 
38990
38990
  const {
38991
38991
  current: isControlled
@@ -39234,7 +39234,7 @@ function createMixins(breakpoints, mixins) {
39234
39234
  }, mixins);
39235
39235
  }
39236
39236
 
39237
- const _excluded$x = ["mode", "contrastThreshold", "tonalOffset"];
39237
+ const _excluded$B = ["mode", "contrastThreshold", "tonalOffset"];
39238
39238
  const light = {
39239
39239
  // The colors used to style the text.
39240
39240
  text: {
@@ -39418,7 +39418,7 @@ function createPalette(palette) {
39418
39418
  contrastThreshold = 3,
39419
39419
  tonalOffset = 0.2
39420
39420
  } = palette,
39421
- other = _objectWithoutPropertiesLoose(palette, _excluded$x);
39421
+ other = _objectWithoutPropertiesLoose(palette, _excluded$B);
39422
39422
 
39423
39423
  const primary = palette.primary || getDefaultPrimary(mode);
39424
39424
  const secondary = palette.secondary || getDefaultSecondary(mode);
@@ -39555,7 +39555,7 @@ const theme2 = createTheme({ palette: {
39555
39555
  return paletteOutput;
39556
39556
  }
39557
39557
 
39558
- const _excluded$w = ["fontFamily", "fontSize", "fontWeightLight", "fontWeightRegular", "fontWeightMedium", "fontWeightBold", "htmlFontSize", "allVariants", "pxToRem"];
39558
+ const _excluded$A = ["fontFamily", "fontSize", "fontWeightLight", "fontWeightRegular", "fontWeightMedium", "fontWeightBold", "htmlFontSize", "allVariants", "pxToRem"];
39559
39559
 
39560
39560
  function round(value) {
39561
39561
  return Math.round(value * 1e5) / 1e5;
@@ -39588,7 +39588,7 @@ function createTypography(palette, typography) {
39588
39588
  allVariants,
39589
39589
  pxToRem: pxToRem2
39590
39590
  } = _ref,
39591
- other = _objectWithoutPropertiesLoose(_ref, _excluded$w);
39591
+ other = _objectWithoutPropertiesLoose(_ref, _excluded$A);
39592
39592
 
39593
39593
  if (process.env.NODE_ENV !== 'production') {
39594
39594
  if (typeof fontSize !== 'number') {
@@ -39656,7 +39656,7 @@ function createShadow(...px) {
39656
39656
  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)];
39657
39657
  var shadows$1 = shadows;
39658
39658
 
39659
- const _excluded$v = ["duration", "easing", "delay"];
39659
+ const _excluded$z = ["duration", "easing", "delay"];
39660
39660
  // Follow https://material.google.com/motion/duration-easing.html#duration-easing-natural-easing-curves
39661
39661
  // to learn the context in which each easing should be used.
39662
39662
  const easing = {
@@ -39711,7 +39711,7 @@ function createTransitions(inputTransitions) {
39711
39711
  easing: easingOption = mergedEasing.easeInOut,
39712
39712
  delay = 0
39713
39713
  } = options,
39714
- other = _objectWithoutPropertiesLoose(options, _excluded$v);
39714
+ other = _objectWithoutPropertiesLoose(options, _excluded$z);
39715
39715
 
39716
39716
  if (process.env.NODE_ENV !== 'production') {
39717
39717
  const isString = value => typeof value === 'string'; // IE11 support, replace with Number.isNaN
@@ -39767,7 +39767,7 @@ const zIndex = {
39767
39767
  };
39768
39768
  var zIndex$1 = zIndex;
39769
39769
 
39770
- const _excluded$u = ["breakpoints", "mixins", "spacing", "palette", "transitions", "typography", "shape"];
39770
+ const _excluded$y = ["breakpoints", "mixins", "spacing", "palette", "transitions", "typography", "shape"];
39771
39771
 
39772
39772
  function createTheme(options = {}, ...args) {
39773
39773
  const {
@@ -39776,7 +39776,7 @@ function createTheme(options = {}, ...args) {
39776
39776
  transitions: transitionsInput = {},
39777
39777
  typography: typographyInput = {}
39778
39778
  } = options,
39779
- other = _objectWithoutPropertiesLoose(options, _excluded$u);
39779
+ other = _objectWithoutPropertiesLoose(options, _excluded$y);
39780
39780
 
39781
39781
  if (options.vars) {
39782
39782
  throw new Error(process.env.NODE_ENV !== "production" ? `MUI: \`vars\` is a private field used for CSS variables support.
@@ -39834,11 +39834,11 @@ Please use another name.` : formatMuiErrorMessage(18));
39834
39834
  return muiTheme;
39835
39835
  }
39836
39836
 
39837
- const defaultTheme = createTheme();
39838
- var defaultTheme$1 = defaultTheme;
39837
+ const defaultTheme$1 = createTheme();
39838
+ var defaultTheme$2 = defaultTheme$1;
39839
39839
 
39840
39840
  function useTheme() {
39841
- const theme = useTheme$1(defaultTheme$1);
39841
+ const theme = useTheme$1(defaultTheme$2);
39842
39842
 
39843
39843
  if (process.env.NODE_ENV !== 'production') {
39844
39844
  // eslint-disable-next-line react-hooks/rules-of-hooks
@@ -39855,14 +39855,14 @@ function useThemeProps({
39855
39855
  return useThemeProps$1({
39856
39856
  props,
39857
39857
  name,
39858
- defaultTheme: defaultTheme$1
39858
+ defaultTheme: defaultTheme$2
39859
39859
  });
39860
39860
  }
39861
39861
 
39862
39862
  const rootShouldForwardProp = prop => shouldForwardProp(prop) && prop !== 'classes';
39863
39863
  const slotShouldForwardProp = shouldForwardProp;
39864
39864
  const styled = createStyled({
39865
- defaultTheme: defaultTheme$1,
39865
+ defaultTheme: defaultTheme$2,
39866
39866
  rootShouldForwardProp
39867
39867
  });
39868
39868
  var styled$1 = styled;
@@ -39872,7 +39872,7 @@ function getPaperUtilityClass(slot) {
39872
39872
  }
39873
39873
  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']);
39874
39874
 
39875
- const _excluded$t = ["className", "component", "elevation", "square", "variant"];
39875
+ const _excluded$x = ["className", "component", "elevation", "square", "variant"];
39876
39876
  const getOverlayAlpha = elevation => {
39877
39877
  let alphaValue;
39878
39878
 
@@ -39885,7 +39885,7 @@ const getOverlayAlpha = elevation => {
39885
39885
  return (alphaValue / 100).toFixed(2);
39886
39886
  };
39887
39887
 
39888
- const useUtilityClasses$n = ownerState => {
39888
+ const useUtilityClasses$r = ownerState => {
39889
39889
  const {
39890
39890
  square,
39891
39891
  elevation,
@@ -39942,7 +39942,7 @@ const Paper = /*#__PURE__*/React__namespace.forwardRef(function Paper(inProps, r
39942
39942
  square = false,
39943
39943
  variant = 'elevation'
39944
39944
  } = props,
39945
- other = _objectWithoutPropertiesLoose(props, _excluded$t);
39945
+ other = _objectWithoutPropertiesLoose(props, _excluded$x);
39946
39946
 
39947
39947
  const ownerState = _extends({}, props, {
39948
39948
  component,
@@ -39951,7 +39951,7 @@ const Paper = /*#__PURE__*/React__namespace.forwardRef(function Paper(inProps, r
39951
39951
  variant
39952
39952
  });
39953
39953
 
39954
- const classes = useUtilityClasses$n(ownerState);
39954
+ const classes = useUtilityClasses$r(ownerState);
39955
39955
 
39956
39956
  if (process.env.NODE_ENV !== 'production') {
39957
39957
  // eslint-disable-next-line react-hooks/rules-of-hooks
@@ -40042,9 +40042,9 @@ function getSvgIconUtilityClass(slot) {
40042
40042
  }
40043
40043
  generateUtilityClasses('MuiSvgIcon', ['root', 'colorPrimary', 'colorSecondary', 'colorAction', 'colorError', 'colorDisabled', 'fontSizeInherit', 'fontSizeSmall', 'fontSizeMedium', 'fontSizeLarge']);
40044
40044
 
40045
- const _excluded$s = ["children", "className", "color", "component", "fontSize", "htmlColor", "inheritViewBox", "titleAccess", "viewBox"];
40045
+ const _excluded$w = ["children", "className", "color", "component", "fontSize", "htmlColor", "inheritViewBox", "titleAccess", "viewBox"];
40046
40046
 
40047
- const useUtilityClasses$m = ownerState => {
40047
+ const useUtilityClasses$q = ownerState => {
40048
40048
  const {
40049
40049
  color,
40050
40050
  fontSize,
@@ -40112,7 +40112,7 @@ const SvgIcon = /*#__PURE__*/React__namespace.forwardRef(function SvgIcon(inProp
40112
40112
  titleAccess,
40113
40113
  viewBox = '0 0 24 24'
40114
40114
  } = props,
40115
- other = _objectWithoutPropertiesLoose(props, _excluded$s);
40115
+ other = _objectWithoutPropertiesLoose(props, _excluded$w);
40116
40116
 
40117
40117
  const ownerState = _extends({}, props, {
40118
40118
  color,
@@ -40129,7 +40129,7 @@ const SvgIcon = /*#__PURE__*/React__namespace.forwardRef(function SvgIcon(inProp
40129
40129
  more.viewBox = viewBox;
40130
40130
  }
40131
40131
 
40132
- const classes = useUtilityClasses$m(ownerState);
40132
+ const classes = useUtilityClasses$q(ownerState);
40133
40133
  return /*#__PURE__*/jsxRuntime.jsxs(SvgIconRoot, _extends({
40134
40134
  as: component,
40135
40135
  className: clsx(classes.root, className),
@@ -41260,6 +41260,772 @@ function getTransitionProps(props, options) {
41260
41260
  };
41261
41261
  }
41262
41262
 
41263
+ function getCollapseUtilityClass(slot) {
41264
+ return generateUtilityClass('MuiCollapse', slot);
41265
+ }
41266
+ generateUtilityClasses('MuiCollapse', ['root', 'horizontal', 'vertical', 'entered', 'hidden', 'wrapper', 'wrapperInner']);
41267
+
41268
+ const _excluded$v = ["addEndListener", "children", "className", "collapsedSize", "component", "easing", "in", "onEnter", "onEntered", "onEntering", "onExit", "onExited", "onExiting", "orientation", "style", "timeout", "TransitionComponent"];
41269
+
41270
+ const useUtilityClasses$p = ownerState => {
41271
+ const {
41272
+ orientation,
41273
+ classes
41274
+ } = ownerState;
41275
+ const slots = {
41276
+ root: ['root', `${orientation}`],
41277
+ entered: ['entered'],
41278
+ hidden: ['hidden'],
41279
+ wrapper: ['wrapper', `${orientation}`],
41280
+ wrapperInner: ['wrapperInner', `${orientation}`]
41281
+ };
41282
+ return composeClasses(slots, getCollapseUtilityClass, classes);
41283
+ };
41284
+
41285
+ const CollapseRoot = styled$1('div', {
41286
+ name: 'MuiCollapse',
41287
+ slot: 'Root',
41288
+ overridesResolver: (props, styles) => {
41289
+ const {
41290
+ ownerState
41291
+ } = props;
41292
+ return [styles.root, styles[ownerState.orientation], ownerState.state === 'entered' && styles.entered, ownerState.state === 'exited' && !ownerState.in && ownerState.collapsedSize === '0px' && styles.hidden];
41293
+ }
41294
+ })(({
41295
+ theme,
41296
+ ownerState
41297
+ }) => _extends({
41298
+ height: 0,
41299
+ overflow: 'hidden',
41300
+ transition: theme.transitions.create('height')
41301
+ }, ownerState.orientation === 'horizontal' && {
41302
+ height: 'auto',
41303
+ width: 0,
41304
+ transition: theme.transitions.create('width')
41305
+ }, ownerState.state === 'entered' && _extends({
41306
+ height: 'auto',
41307
+ overflow: 'visible'
41308
+ }, ownerState.orientation === 'horizontal' && {
41309
+ width: 'auto'
41310
+ }), ownerState.state === 'exited' && !ownerState.in && ownerState.collapsedSize === '0px' && {
41311
+ visibility: 'hidden'
41312
+ }));
41313
+ const CollapseWrapper = styled$1('div', {
41314
+ name: 'MuiCollapse',
41315
+ slot: 'Wrapper',
41316
+ overridesResolver: (props, styles) => styles.wrapper
41317
+ })(({
41318
+ ownerState
41319
+ }) => _extends({
41320
+ // Hack to get children with a negative margin to not falsify the height computation.
41321
+ display: 'flex',
41322
+ width: '100%'
41323
+ }, ownerState.orientation === 'horizontal' && {
41324
+ width: 'auto',
41325
+ height: '100%'
41326
+ }));
41327
+ const CollapseWrapperInner = styled$1('div', {
41328
+ name: 'MuiCollapse',
41329
+ slot: 'WrapperInner',
41330
+ overridesResolver: (props, styles) => styles.wrapperInner
41331
+ })(({
41332
+ ownerState
41333
+ }) => _extends({
41334
+ width: '100%'
41335
+ }, ownerState.orientation === 'horizontal' && {
41336
+ width: 'auto',
41337
+ height: '100%'
41338
+ }));
41339
+ /**
41340
+ * The Collapse transition is used by the
41341
+ * [Vertical Stepper](/material-ui/react-stepper/#vertical-stepper) StepContent component.
41342
+ * It uses [react-transition-group](https://github.com/reactjs/react-transition-group) internally.
41343
+ */
41344
+
41345
+ const Collapse = /*#__PURE__*/React__namespace.forwardRef(function Collapse(inProps, ref) {
41346
+ const props = useThemeProps({
41347
+ props: inProps,
41348
+ name: 'MuiCollapse'
41349
+ });
41350
+
41351
+ const {
41352
+ addEndListener,
41353
+ children,
41354
+ className,
41355
+ collapsedSize: collapsedSizeProp = '0px',
41356
+ component,
41357
+ easing,
41358
+ in: inProp,
41359
+ onEnter,
41360
+ onEntered,
41361
+ onEntering,
41362
+ onExit,
41363
+ onExited,
41364
+ onExiting,
41365
+ orientation = 'vertical',
41366
+ style,
41367
+ timeout = duration.standard,
41368
+ // eslint-disable-next-line react/prop-types
41369
+ TransitionComponent = Transition$1
41370
+ } = props,
41371
+ other = _objectWithoutPropertiesLoose(props, _excluded$v);
41372
+
41373
+ const ownerState = _extends({}, props, {
41374
+ orientation,
41375
+ collapsedSize: collapsedSizeProp
41376
+ });
41377
+
41378
+ const classes = useUtilityClasses$p(ownerState);
41379
+ const theme = useTheme();
41380
+ const timer = React__namespace.useRef();
41381
+ const wrapperRef = React__namespace.useRef(null);
41382
+ const autoTransitionDuration = React__namespace.useRef();
41383
+ const collapsedSize = typeof collapsedSizeProp === 'number' ? `${collapsedSizeProp}px` : collapsedSizeProp;
41384
+ const isHorizontal = orientation === 'horizontal';
41385
+ const size = isHorizontal ? 'width' : 'height';
41386
+ React__namespace.useEffect(() => {
41387
+ return () => {
41388
+ clearTimeout(timer.current);
41389
+ };
41390
+ }, []);
41391
+ const nodeRef = React__namespace.useRef(null);
41392
+ const handleRef = useForkRef(ref, nodeRef);
41393
+
41394
+ const normalizedTransitionCallback = callback => maybeIsAppearing => {
41395
+ if (callback) {
41396
+ const node = nodeRef.current; // onEnterXxx and onExitXxx callbacks have a different arguments.length value.
41397
+
41398
+ if (maybeIsAppearing === undefined) {
41399
+ callback(node);
41400
+ } else {
41401
+ callback(node, maybeIsAppearing);
41402
+ }
41403
+ }
41404
+ };
41405
+
41406
+ const getWrapperSize = () => wrapperRef.current ? wrapperRef.current[isHorizontal ? 'clientWidth' : 'clientHeight'] : 0;
41407
+
41408
+ const handleEnter = normalizedTransitionCallback((node, isAppearing) => {
41409
+ if (wrapperRef.current && isHorizontal) {
41410
+ // Set absolute position to get the size of collapsed content
41411
+ wrapperRef.current.style.position = 'absolute';
41412
+ }
41413
+
41414
+ node.style[size] = collapsedSize;
41415
+
41416
+ if (onEnter) {
41417
+ onEnter(node, isAppearing);
41418
+ }
41419
+ });
41420
+ const handleEntering = normalizedTransitionCallback((node, isAppearing) => {
41421
+ const wrapperSize = getWrapperSize();
41422
+
41423
+ if (wrapperRef.current && isHorizontal) {
41424
+ // After the size is read reset the position back to default
41425
+ wrapperRef.current.style.position = '';
41426
+ }
41427
+
41428
+ const {
41429
+ duration: transitionDuration,
41430
+ easing: transitionTimingFunction
41431
+ } = getTransitionProps({
41432
+ style,
41433
+ timeout,
41434
+ easing
41435
+ }, {
41436
+ mode: 'enter'
41437
+ });
41438
+
41439
+ if (timeout === 'auto') {
41440
+ const duration2 = theme.transitions.getAutoHeightDuration(wrapperSize);
41441
+ node.style.transitionDuration = `${duration2}ms`;
41442
+ autoTransitionDuration.current = duration2;
41443
+ } else {
41444
+ node.style.transitionDuration = typeof transitionDuration === 'string' ? transitionDuration : `${transitionDuration}ms`;
41445
+ }
41446
+
41447
+ node.style[size] = `${wrapperSize}px`;
41448
+ node.style.transitionTimingFunction = transitionTimingFunction;
41449
+
41450
+ if (onEntering) {
41451
+ onEntering(node, isAppearing);
41452
+ }
41453
+ });
41454
+ const handleEntered = normalizedTransitionCallback((node, isAppearing) => {
41455
+ node.style[size] = 'auto';
41456
+
41457
+ if (onEntered) {
41458
+ onEntered(node, isAppearing);
41459
+ }
41460
+ });
41461
+ const handleExit = normalizedTransitionCallback(node => {
41462
+ node.style[size] = `${getWrapperSize()}px`;
41463
+
41464
+ if (onExit) {
41465
+ onExit(node);
41466
+ }
41467
+ });
41468
+ const handleExited = normalizedTransitionCallback(onExited);
41469
+ const handleExiting = normalizedTransitionCallback(node => {
41470
+ const wrapperSize = getWrapperSize();
41471
+ const {
41472
+ duration: transitionDuration,
41473
+ easing: transitionTimingFunction
41474
+ } = getTransitionProps({
41475
+ style,
41476
+ timeout,
41477
+ easing
41478
+ }, {
41479
+ mode: 'exit'
41480
+ });
41481
+
41482
+ if (timeout === 'auto') {
41483
+ // TODO: rename getAutoHeightDuration to something more generic (width support)
41484
+ // Actually it just calculates animation duration based on size
41485
+ const duration2 = theme.transitions.getAutoHeightDuration(wrapperSize);
41486
+ node.style.transitionDuration = `${duration2}ms`;
41487
+ autoTransitionDuration.current = duration2;
41488
+ } else {
41489
+ node.style.transitionDuration = typeof transitionDuration === 'string' ? transitionDuration : `${transitionDuration}ms`;
41490
+ }
41491
+
41492
+ node.style[size] = collapsedSize;
41493
+ node.style.transitionTimingFunction = transitionTimingFunction;
41494
+
41495
+ if (onExiting) {
41496
+ onExiting(node);
41497
+ }
41498
+ });
41499
+
41500
+ const handleAddEndListener = next => {
41501
+ if (timeout === 'auto') {
41502
+ timer.current = setTimeout(next, autoTransitionDuration.current || 0);
41503
+ }
41504
+
41505
+ if (addEndListener) {
41506
+ // Old call signature before `react-transition-group` implemented `nodeRef`
41507
+ addEndListener(nodeRef.current, next);
41508
+ }
41509
+ };
41510
+
41511
+ return /*#__PURE__*/jsxRuntime.jsx(TransitionComponent, _extends({
41512
+ in: inProp,
41513
+ onEnter: handleEnter,
41514
+ onEntered: handleEntered,
41515
+ onEntering: handleEntering,
41516
+ onExit: handleExit,
41517
+ onExited: handleExited,
41518
+ onExiting: handleExiting,
41519
+ addEndListener: handleAddEndListener,
41520
+ nodeRef: nodeRef,
41521
+ timeout: timeout === 'auto' ? null : timeout
41522
+ }, other, {
41523
+ children: (state, childProps) => /*#__PURE__*/jsxRuntime.jsx(CollapseRoot, _extends({
41524
+ as: component,
41525
+ className: clsx(classes.root, className, {
41526
+ 'entered': classes.entered,
41527
+ 'exited': !inProp && collapsedSize === '0px' && classes.hidden
41528
+ }[state]),
41529
+ style: _extends({
41530
+ [isHorizontal ? 'minWidth' : 'minHeight']: collapsedSize
41531
+ }, style),
41532
+ ownerState: _extends({}, ownerState, {
41533
+ state
41534
+ }),
41535
+ ref: handleRef
41536
+ }, childProps, {
41537
+ children: /*#__PURE__*/jsxRuntime.jsx(CollapseWrapper, {
41538
+ ownerState: _extends({}, ownerState, {
41539
+ state
41540
+ }),
41541
+ className: classes.wrapper,
41542
+ ref: wrapperRef,
41543
+ children: /*#__PURE__*/jsxRuntime.jsx(CollapseWrapperInner, {
41544
+ ownerState: _extends({}, ownerState, {
41545
+ state
41546
+ }),
41547
+ className: classes.wrapperInner,
41548
+ children: children
41549
+ })
41550
+ })
41551
+ }))
41552
+ }));
41553
+ });
41554
+ process.env.NODE_ENV !== "production" ? Collapse.propTypes
41555
+ /* remove-proptypes */
41556
+ = {
41557
+ // ----------------------------- Warning --------------------------------
41558
+ // | These PropTypes are generated from the TypeScript type definitions |
41559
+ // | To update them edit the d.ts file and run "yarn proptypes" |
41560
+ // ----------------------------------------------------------------------
41561
+
41562
+ /**
41563
+ * Add a custom transition end trigger. Called with the transitioning DOM
41564
+ * node and a done callback. Allows for more fine grained transition end
41565
+ * logic. Note: Timeouts are still used as a fallback if provided.
41566
+ */
41567
+ addEndListener: PropTypes.func,
41568
+
41569
+ /**
41570
+ * The content node to be collapsed.
41571
+ */
41572
+ children: PropTypes.node,
41573
+
41574
+ /**
41575
+ * Override or extend the styles applied to the component.
41576
+ */
41577
+ classes: PropTypes.object,
41578
+
41579
+ /**
41580
+ * @ignore
41581
+ */
41582
+ className: PropTypes.string,
41583
+
41584
+ /**
41585
+ * The width (horizontal) or height (vertical) of the container when collapsed.
41586
+ * @default '0px'
41587
+ */
41588
+ collapsedSize: PropTypes.oneOfType([PropTypes.number, PropTypes.string]),
41589
+
41590
+ /**
41591
+ * The component used for the root node.
41592
+ * Either a string to use a HTML element or a component.
41593
+ */
41594
+ component: elementTypeAcceptingRef$1,
41595
+
41596
+ /**
41597
+ * The transition timing function.
41598
+ * You may specify a single easing or a object containing enter and exit values.
41599
+ */
41600
+ easing: PropTypes.oneOfType([PropTypes.shape({
41601
+ enter: PropTypes.string,
41602
+ exit: PropTypes.string
41603
+ }), PropTypes.string]),
41604
+
41605
+ /**
41606
+ * If `true`, the component will transition in.
41607
+ */
41608
+ in: PropTypes.bool,
41609
+
41610
+ /**
41611
+ * @ignore
41612
+ */
41613
+ onEnter: PropTypes.func,
41614
+
41615
+ /**
41616
+ * @ignore
41617
+ */
41618
+ onEntered: PropTypes.func,
41619
+
41620
+ /**
41621
+ * @ignore
41622
+ */
41623
+ onEntering: PropTypes.func,
41624
+
41625
+ /**
41626
+ * @ignore
41627
+ */
41628
+ onExit: PropTypes.func,
41629
+
41630
+ /**
41631
+ * @ignore
41632
+ */
41633
+ onExited: PropTypes.func,
41634
+
41635
+ /**
41636
+ * @ignore
41637
+ */
41638
+ onExiting: PropTypes.func,
41639
+
41640
+ /**
41641
+ * The transition orientation.
41642
+ * @default 'vertical'
41643
+ */
41644
+ orientation: PropTypes.oneOf(['horizontal', 'vertical']),
41645
+
41646
+ /**
41647
+ * @ignore
41648
+ */
41649
+ style: PropTypes.object,
41650
+
41651
+ /**
41652
+ * The system prop that allows defining system overrides as well as additional CSS styles.
41653
+ */
41654
+ sx: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.func, PropTypes.object, PropTypes.bool])), PropTypes.func, PropTypes.object]),
41655
+
41656
+ /**
41657
+ * The duration for the transition, in milliseconds.
41658
+ * You may specify a single timeout for all transitions, or individually with an object.
41659
+ *
41660
+ * Set to 'auto' to automatically calculate transition time based on height.
41661
+ * @default duration.standard
41662
+ */
41663
+ timeout: PropTypes.oneOfType([PropTypes.oneOf(['auto']), PropTypes.number, PropTypes.shape({
41664
+ appear: PropTypes.number,
41665
+ enter: PropTypes.number,
41666
+ exit: PropTypes.number
41667
+ })])
41668
+ } : void 0;
41669
+ Collapse.muiSupportAuto = true;
41670
+ var Collapse$1 = Collapse;
41671
+
41672
+ /**
41673
+ * @ignore - internal component.
41674
+ * @type {React.Context<{} | {expanded: boolean, disabled: boolean, toggle: () => void}>}
41675
+ */
41676
+
41677
+ const AccordionContext = /*#__PURE__*/React__namespace.createContext({});
41678
+
41679
+ if (process.env.NODE_ENV !== 'production') {
41680
+ AccordionContext.displayName = 'AccordionContext';
41681
+ }
41682
+
41683
+ var AccordionContext$1 = AccordionContext;
41684
+
41685
+ function getAccordionUtilityClass(slot) {
41686
+ return generateUtilityClass('MuiAccordion', slot);
41687
+ }
41688
+ const accordionClasses = generateUtilityClasses('MuiAccordion', ['root', 'rounded', 'expanded', 'disabled', 'gutters', 'region']);
41689
+ var accordionClasses$1 = accordionClasses;
41690
+
41691
+ const _excluded$u = ["children", "className", "defaultExpanded", "disabled", "disableGutters", "expanded", "onChange", "square", "TransitionComponent", "TransitionProps"];
41692
+
41693
+ const useUtilityClasses$o = ownerState => {
41694
+ const {
41695
+ classes,
41696
+ square,
41697
+ expanded,
41698
+ disabled,
41699
+ disableGutters
41700
+ } = ownerState;
41701
+ const slots = {
41702
+ root: ['root', !square && 'rounded', expanded && 'expanded', disabled && 'disabled', !disableGutters && 'gutters'],
41703
+ region: ['region']
41704
+ };
41705
+ return composeClasses(slots, getAccordionUtilityClass, classes);
41706
+ };
41707
+
41708
+ const AccordionRoot = styled$1(Paper$1, {
41709
+ name: 'MuiAccordion',
41710
+ slot: 'Root',
41711
+ overridesResolver: (props, styles) => {
41712
+ const {
41713
+ ownerState
41714
+ } = props;
41715
+ return [{
41716
+ [`& .${accordionClasses$1.region}`]: styles.region
41717
+ }, styles.root, !ownerState.square && styles.rounded, !ownerState.disableGutters && styles.gutters];
41718
+ }
41719
+ })(({
41720
+ theme
41721
+ }) => {
41722
+ const transition = {
41723
+ duration: theme.transitions.duration.shortest
41724
+ };
41725
+ return {
41726
+ position: 'relative',
41727
+ transition: theme.transitions.create(['margin'], transition),
41728
+ overflowAnchor: 'none',
41729
+ // Keep the same scrolling position
41730
+ '&:before': {
41731
+ position: 'absolute',
41732
+ left: 0,
41733
+ top: -1,
41734
+ right: 0,
41735
+ height: 1,
41736
+ content: '""',
41737
+ opacity: 1,
41738
+ backgroundColor: (theme.vars || theme).palette.divider,
41739
+ transition: theme.transitions.create(['opacity', 'background-color'], transition)
41740
+ },
41741
+ '&:first-of-type': {
41742
+ '&:before': {
41743
+ display: 'none'
41744
+ }
41745
+ },
41746
+ [`&.${accordionClasses$1.expanded}`]: {
41747
+ '&:before': {
41748
+ opacity: 0
41749
+ },
41750
+ '&:first-of-type': {
41751
+ marginTop: 0
41752
+ },
41753
+ '&:last-of-type': {
41754
+ marginBottom: 0
41755
+ },
41756
+ '& + &': {
41757
+ '&:before': {
41758
+ display: 'none'
41759
+ }
41760
+ }
41761
+ },
41762
+ [`&.${accordionClasses$1.disabled}`]: {
41763
+ backgroundColor: (theme.vars || theme).palette.action.disabledBackground
41764
+ }
41765
+ };
41766
+ }, ({
41767
+ theme,
41768
+ ownerState
41769
+ }) => _extends({}, !ownerState.square && {
41770
+ borderRadius: 0,
41771
+ '&:first-of-type': {
41772
+ borderTopLeftRadius: (theme.vars || theme).shape.borderRadius,
41773
+ borderTopRightRadius: (theme.vars || theme).shape.borderRadius
41774
+ },
41775
+ '&:last-of-type': {
41776
+ borderBottomLeftRadius: (theme.vars || theme).shape.borderRadius,
41777
+ borderBottomRightRadius: (theme.vars || theme).shape.borderRadius,
41778
+ // Fix a rendering issue on Edge
41779
+ '@supports (-ms-ime-align: auto)': {
41780
+ borderBottomLeftRadius: 0,
41781
+ borderBottomRightRadius: 0
41782
+ }
41783
+ }
41784
+ }, !ownerState.disableGutters && {
41785
+ [`&.${accordionClasses$1.expanded}`]: {
41786
+ margin: '16px 0'
41787
+ }
41788
+ }));
41789
+ const Accordion = /*#__PURE__*/React__namespace.forwardRef(function Accordion(inProps, ref) {
41790
+ const props = useThemeProps({
41791
+ props: inProps,
41792
+ name: 'MuiAccordion'
41793
+ });
41794
+
41795
+ const {
41796
+ children: childrenProp,
41797
+ className,
41798
+ defaultExpanded = false,
41799
+ disabled = false,
41800
+ disableGutters = false,
41801
+ expanded: expandedProp,
41802
+ onChange,
41803
+ square = false,
41804
+ TransitionComponent = Collapse$1,
41805
+ TransitionProps
41806
+ } = props,
41807
+ other = _objectWithoutPropertiesLoose(props, _excluded$u);
41808
+
41809
+ const [expanded, setExpandedState] = useControlled({
41810
+ controlled: expandedProp,
41811
+ default: defaultExpanded,
41812
+ name: 'Accordion',
41813
+ state: 'expanded'
41814
+ });
41815
+ const handleChange = React__namespace.useCallback(event => {
41816
+ setExpandedState(!expanded);
41817
+
41818
+ if (onChange) {
41819
+ onChange(event, !expanded);
41820
+ }
41821
+ }, [expanded, onChange, setExpandedState]);
41822
+ const [summary, ...children] = React__namespace.Children.toArray(childrenProp);
41823
+ const contextValue = React__namespace.useMemo(() => ({
41824
+ expanded,
41825
+ disabled,
41826
+ disableGutters,
41827
+ toggle: handleChange
41828
+ }), [expanded, disabled, disableGutters, handleChange]);
41829
+
41830
+ const ownerState = _extends({}, props, {
41831
+ square,
41832
+ disabled,
41833
+ disableGutters,
41834
+ expanded
41835
+ });
41836
+
41837
+ const classes = useUtilityClasses$o(ownerState);
41838
+ return /*#__PURE__*/jsxRuntime.jsxs(AccordionRoot, _extends({
41839
+ className: clsx(classes.root, className),
41840
+ ref: ref,
41841
+ ownerState: ownerState,
41842
+ square: square
41843
+ }, other, {
41844
+ children: [/*#__PURE__*/jsxRuntime.jsx(AccordionContext$1.Provider, {
41845
+ value: contextValue,
41846
+ children: summary
41847
+ }), /*#__PURE__*/jsxRuntime.jsx(TransitionComponent, _extends({
41848
+ in: expanded,
41849
+ timeout: "auto"
41850
+ }, TransitionProps, {
41851
+ children: /*#__PURE__*/jsxRuntime.jsx("div", {
41852
+ "aria-labelledby": summary.props.id,
41853
+ id: summary.props['aria-controls'],
41854
+ role: "region",
41855
+ className: classes.region,
41856
+ children: children
41857
+ })
41858
+ }))]
41859
+ }));
41860
+ });
41861
+ process.env.NODE_ENV !== "production" ? Accordion.propTypes
41862
+ /* remove-proptypes */
41863
+ = {
41864
+ // ----------------------------- Warning --------------------------------
41865
+ // | These PropTypes are generated from the TypeScript type definitions |
41866
+ // | To update them edit the d.ts file and run "yarn proptypes" |
41867
+ // ----------------------------------------------------------------------
41868
+
41869
+ /**
41870
+ * The content of the component.
41871
+ */
41872
+ children: chainPropTypes(PropTypes.node.isRequired, props => {
41873
+ const summary = React__namespace.Children.toArray(props.children)[0];
41874
+
41875
+ if (reactIs.exports.isFragment(summary)) {
41876
+ return new Error("MUI: The Accordion doesn't accept a Fragment as a child. " + 'Consider providing an array instead.');
41877
+ }
41878
+
41879
+ if (! /*#__PURE__*/React__namespace.isValidElement(summary)) {
41880
+ return new Error('MUI: Expected the first child of Accordion to be a valid element.');
41881
+ }
41882
+
41883
+ return null;
41884
+ }),
41885
+
41886
+ /**
41887
+ * Override or extend the styles applied to the component.
41888
+ */
41889
+ classes: PropTypes.object,
41890
+
41891
+ /**
41892
+ * @ignore
41893
+ */
41894
+ className: PropTypes.string,
41895
+
41896
+ /**
41897
+ * If `true`, expands the accordion by default.
41898
+ * @default false
41899
+ */
41900
+ defaultExpanded: PropTypes.bool,
41901
+
41902
+ /**
41903
+ * If `true`, the component is disabled.
41904
+ * @default false
41905
+ */
41906
+ disabled: PropTypes.bool,
41907
+
41908
+ /**
41909
+ * If `true`, it removes the margin between two expanded accordion items and the increase of height.
41910
+ * @default false
41911
+ */
41912
+ disableGutters: PropTypes.bool,
41913
+
41914
+ /**
41915
+ * If `true`, expands the accordion, otherwise collapse it.
41916
+ * Setting this prop enables control over the accordion.
41917
+ */
41918
+ expanded: PropTypes.bool,
41919
+
41920
+ /**
41921
+ * Callback fired when the expand/collapse state is changed.
41922
+ *
41923
+ * @param {React.SyntheticEvent} event The event source of the callback. **Warning**: This is a generic event not a change event.
41924
+ * @param {boolean} expanded The `expanded` state of the accordion.
41925
+ */
41926
+ onChange: PropTypes.func,
41927
+
41928
+ /**
41929
+ * If `true`, rounded corners are disabled.
41930
+ * @default false
41931
+ */
41932
+ square: PropTypes.bool,
41933
+
41934
+ /**
41935
+ * The system prop that allows defining system overrides as well as additional CSS styles.
41936
+ */
41937
+ sx: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.func, PropTypes.object, PropTypes.bool])), PropTypes.func, PropTypes.object]),
41938
+
41939
+ /**
41940
+ * The component used for the transition.
41941
+ * [Follow this guide](/material-ui/transitions/#transitioncomponent-prop) to learn more about the requirements for this component.
41942
+ * @default Collapse
41943
+ */
41944
+ TransitionComponent: PropTypes.elementType,
41945
+
41946
+ /**
41947
+ * Props applied to the transition element.
41948
+ * By default, the element is based on this [`Transition`](http://reactcommunity.org/react-transition-group/transition/) component.
41949
+ */
41950
+ TransitionProps: PropTypes.object
41951
+ } : void 0;
41952
+ var Accordion$1 = Accordion;
41953
+
41954
+ function getAccordionDetailsUtilityClass(slot) {
41955
+ return generateUtilityClass('MuiAccordionDetails', slot);
41956
+ }
41957
+ generateUtilityClasses('MuiAccordionDetails', ['root']);
41958
+
41959
+ const _excluded$t = ["className"];
41960
+
41961
+ const useUtilityClasses$n = ownerState => {
41962
+ const {
41963
+ classes
41964
+ } = ownerState;
41965
+ const slots = {
41966
+ root: ['root']
41967
+ };
41968
+ return composeClasses(slots, getAccordionDetailsUtilityClass, classes);
41969
+ };
41970
+
41971
+ const AccordionDetailsRoot = styled$1('div', {
41972
+ name: 'MuiAccordionDetails',
41973
+ slot: 'Root',
41974
+ overridesResolver: (props, styles) => styles.root
41975
+ })(({
41976
+ theme
41977
+ }) => ({
41978
+ padding: theme.spacing(1, 2, 2)
41979
+ }));
41980
+ const AccordionDetails = /*#__PURE__*/React__namespace.forwardRef(function AccordionDetails(inProps, ref) {
41981
+ const props = useThemeProps({
41982
+ props: inProps,
41983
+ name: 'MuiAccordionDetails'
41984
+ });
41985
+
41986
+ const {
41987
+ className
41988
+ } = props,
41989
+ other = _objectWithoutPropertiesLoose(props, _excluded$t);
41990
+
41991
+ const ownerState = props;
41992
+ const classes = useUtilityClasses$n(ownerState);
41993
+ return /*#__PURE__*/jsxRuntime.jsx(AccordionDetailsRoot, _extends({
41994
+ className: clsx(classes.root, className),
41995
+ ref: ref,
41996
+ ownerState: ownerState
41997
+ }, other));
41998
+ });
41999
+ process.env.NODE_ENV !== "production" ? AccordionDetails.propTypes
42000
+ /* remove-proptypes */
42001
+ = {
42002
+ // ----------------------------- Warning --------------------------------
42003
+ // | These PropTypes are generated from the TypeScript type definitions |
42004
+ // | To update them edit the d.ts file and run "yarn proptypes" |
42005
+ // ----------------------------------------------------------------------
42006
+
42007
+ /**
42008
+ * The content of the component.
42009
+ */
42010
+ children: PropTypes.node,
42011
+
42012
+ /**
42013
+ * Override or extend the styles applied to the component.
42014
+ */
42015
+ classes: PropTypes.object,
42016
+
42017
+ /**
42018
+ * @ignore
42019
+ */
42020
+ className: PropTypes.string,
42021
+
42022
+ /**
42023
+ * The system prop that allows defining system overrides as well as additional CSS styles.
42024
+ */
42025
+ sx: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.func, PropTypes.object, PropTypes.bool])), PropTypes.func, PropTypes.object])
42026
+ } : void 0;
42027
+ var AccordionDetails$1 = AccordionDetails;
42028
+
41263
42029
  function Ripple(props) {
41264
42030
  const {
41265
42031
  className,
@@ -41353,7 +42119,7 @@ process.env.NODE_ENV !== "production" ? Ripple.propTypes = {
41353
42119
  const touchRippleClasses = generateUtilityClasses('MuiTouchRipple', ['root', 'ripple', 'rippleVisible', 'ripplePulsate', 'child', 'childLeaving', 'childPulsate']);
41354
42120
  var touchRippleClasses$1 = touchRippleClasses;
41355
42121
 
41356
- const _excluded$r = ["center", "classes", "className"];
42122
+ const _excluded$s = ["center", "classes", "className"];
41357
42123
 
41358
42124
  let _ = t => t,
41359
42125
  _t,
@@ -41483,7 +42249,7 @@ const TouchRipple = /*#__PURE__*/React__namespace.forwardRef(function TouchRippl
41483
42249
  classes = {},
41484
42250
  className
41485
42251
  } = props,
41486
- other = _objectWithoutPropertiesLoose(props, _excluded$r);
42252
+ other = _objectWithoutPropertiesLoose(props, _excluded$s);
41487
42253
 
41488
42254
  const [ripples, setRipples] = React__namespace.useState([]);
41489
42255
  const nextKey = React__namespace.useRef(0);
@@ -41691,9 +42457,9 @@ function getButtonBaseUtilityClass(slot) {
41691
42457
  const buttonBaseClasses = generateUtilityClasses('MuiButtonBase', ['root', 'disabled', 'focusVisible']);
41692
42458
  var buttonBaseClasses$1 = buttonBaseClasses;
41693
42459
 
41694
- const _excluded$q = ["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"];
42460
+ const _excluded$r = ["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"];
41695
42461
 
41696
- const useUtilityClasses$l = ownerState => {
42462
+ const useUtilityClasses$m = ownerState => {
41697
42463
  const {
41698
42464
  disabled,
41699
42465
  focusVisible,
@@ -41798,7 +42564,7 @@ const ButtonBase = /*#__PURE__*/React__namespace.forwardRef(function ButtonBase(
41798
42564
  touchRippleRef,
41799
42565
  type
41800
42566
  } = props,
41801
- other = _objectWithoutPropertiesLoose(props, _excluded$q);
42567
+ other = _objectWithoutPropertiesLoose(props, _excluded$r);
41802
42568
 
41803
42569
  const buttonRef = React__namespace.useRef(null);
41804
42570
  const rippleRef = React__namespace.useRef(null);
@@ -41995,7 +42761,7 @@ const ButtonBase = /*#__PURE__*/React__namespace.forwardRef(function ButtonBase(
41995
42761
  focusVisible
41996
42762
  });
41997
42763
 
41998
- const classes = useUtilityClasses$l(ownerState);
42764
+ const classes = useUtilityClasses$m(ownerState);
41999
42765
  return /*#__PURE__*/jsxRuntime.jsxs(ButtonBaseRoot, _extends({
42000
42766
  as: ComponentProp,
42001
42767
  className: clsx(classes.root, className),
@@ -42223,6 +42989,209 @@ process.env.NODE_ENV !== "production" ? ButtonBase.propTypes
42223
42989
  } : void 0;
42224
42990
  var ButtonBase$1 = ButtonBase;
42225
42991
 
42992
+ function getAccordionSummaryUtilityClass(slot) {
42993
+ return generateUtilityClass('MuiAccordionSummary', slot);
42994
+ }
42995
+ const accordionSummaryClasses = generateUtilityClasses('MuiAccordionSummary', ['root', 'expanded', 'focusVisible', 'disabled', 'gutters', 'contentGutters', 'content', 'expandIconWrapper']);
42996
+ var accordionSummaryClasses$1 = accordionSummaryClasses;
42997
+
42998
+ const _excluded$q = ["children", "className", "expandIcon", "focusVisibleClassName", "onClick"];
42999
+
43000
+ const useUtilityClasses$l = ownerState => {
43001
+ const {
43002
+ classes,
43003
+ expanded,
43004
+ disabled,
43005
+ disableGutters
43006
+ } = ownerState;
43007
+ const slots = {
43008
+ root: ['root', expanded && 'expanded', disabled && 'disabled', !disableGutters && 'gutters'],
43009
+ focusVisible: ['focusVisible'],
43010
+ content: ['content', expanded && 'expanded', !disableGutters && 'contentGutters'],
43011
+ expandIconWrapper: ['expandIconWrapper', expanded && 'expanded']
43012
+ };
43013
+ return composeClasses(slots, getAccordionSummaryUtilityClass, classes);
43014
+ };
43015
+
43016
+ const AccordionSummaryRoot = styled$1(ButtonBase$1, {
43017
+ name: 'MuiAccordionSummary',
43018
+ slot: 'Root',
43019
+ overridesResolver: (props, styles) => styles.root
43020
+ })(({
43021
+ theme,
43022
+ ownerState
43023
+ }) => {
43024
+ const transition = {
43025
+ duration: theme.transitions.duration.shortest
43026
+ };
43027
+ return _extends({
43028
+ display: 'flex',
43029
+ minHeight: 48,
43030
+ padding: theme.spacing(0, 2),
43031
+ transition: theme.transitions.create(['min-height', 'background-color'], transition),
43032
+ [`&.${accordionSummaryClasses$1.focusVisible}`]: {
43033
+ backgroundColor: (theme.vars || theme).palette.action.focus
43034
+ },
43035
+ [`&.${accordionSummaryClasses$1.disabled}`]: {
43036
+ opacity: (theme.vars || theme).palette.action.disabledOpacity
43037
+ },
43038
+ [`&:hover:not(.${accordionSummaryClasses$1.disabled})`]: {
43039
+ cursor: 'pointer'
43040
+ }
43041
+ }, !ownerState.disableGutters && {
43042
+ [`&.${accordionSummaryClasses$1.expanded}`]: {
43043
+ minHeight: 64
43044
+ }
43045
+ });
43046
+ });
43047
+ const AccordionSummaryContent = styled$1('div', {
43048
+ name: 'MuiAccordionSummary',
43049
+ slot: 'Content',
43050
+ overridesResolver: (props, styles) => styles.content
43051
+ })(({
43052
+ theme,
43053
+ ownerState
43054
+ }) => _extends({
43055
+ display: 'flex',
43056
+ flexGrow: 1,
43057
+ margin: '12px 0'
43058
+ }, !ownerState.disableGutters && {
43059
+ transition: theme.transitions.create(['margin'], {
43060
+ duration: theme.transitions.duration.shortest
43061
+ }),
43062
+ [`&.${accordionSummaryClasses$1.expanded}`]: {
43063
+ margin: '20px 0'
43064
+ }
43065
+ }));
43066
+ const AccordionSummaryExpandIconWrapper = styled$1('div', {
43067
+ name: 'MuiAccordionSummary',
43068
+ slot: 'ExpandIconWrapper',
43069
+ overridesResolver: (props, styles) => styles.expandIconWrapper
43070
+ })(({
43071
+ theme
43072
+ }) => ({
43073
+ display: 'flex',
43074
+ color: (theme.vars || theme).palette.action.active,
43075
+ transform: 'rotate(0deg)',
43076
+ transition: theme.transitions.create('transform', {
43077
+ duration: theme.transitions.duration.shortest
43078
+ }),
43079
+ [`&.${accordionSummaryClasses$1.expanded}`]: {
43080
+ transform: 'rotate(180deg)'
43081
+ }
43082
+ }));
43083
+ const AccordionSummary = /*#__PURE__*/React__namespace.forwardRef(function AccordionSummary(inProps, ref) {
43084
+ const props = useThemeProps({
43085
+ props: inProps,
43086
+ name: 'MuiAccordionSummary'
43087
+ });
43088
+
43089
+ const {
43090
+ children,
43091
+ className,
43092
+ expandIcon,
43093
+ focusVisibleClassName,
43094
+ onClick
43095
+ } = props,
43096
+ other = _objectWithoutPropertiesLoose(props, _excluded$q);
43097
+
43098
+ const {
43099
+ disabled = false,
43100
+ disableGutters,
43101
+ expanded,
43102
+ toggle
43103
+ } = React__namespace.useContext(AccordionContext$1);
43104
+
43105
+ const handleChange = event => {
43106
+ if (toggle) {
43107
+ toggle(event);
43108
+ }
43109
+
43110
+ if (onClick) {
43111
+ onClick(event);
43112
+ }
43113
+ };
43114
+
43115
+ const ownerState = _extends({}, props, {
43116
+ expanded,
43117
+ disabled,
43118
+ disableGutters
43119
+ });
43120
+
43121
+ const classes = useUtilityClasses$l(ownerState);
43122
+ return /*#__PURE__*/jsxRuntime.jsxs(AccordionSummaryRoot, _extends({
43123
+ focusRipple: false,
43124
+ disableRipple: true,
43125
+ disabled: disabled,
43126
+ component: "div",
43127
+ "aria-expanded": expanded,
43128
+ className: clsx(classes.root, className),
43129
+ focusVisibleClassName: clsx(classes.focusVisible, focusVisibleClassName),
43130
+ onClick: handleChange,
43131
+ ref: ref,
43132
+ ownerState: ownerState
43133
+ }, other, {
43134
+ children: [/*#__PURE__*/jsxRuntime.jsx(AccordionSummaryContent, {
43135
+ className: classes.content,
43136
+ ownerState: ownerState,
43137
+ children: children
43138
+ }), expandIcon && /*#__PURE__*/jsxRuntime.jsx(AccordionSummaryExpandIconWrapper, {
43139
+ className: classes.expandIconWrapper,
43140
+ ownerState: ownerState,
43141
+ children: expandIcon
43142
+ })]
43143
+ }));
43144
+ });
43145
+ process.env.NODE_ENV !== "production" ? AccordionSummary.propTypes
43146
+ /* remove-proptypes */
43147
+ = {
43148
+ // ----------------------------- Warning --------------------------------
43149
+ // | These PropTypes are generated from the TypeScript type definitions |
43150
+ // | To update them edit the d.ts file and run "yarn proptypes" |
43151
+ // ----------------------------------------------------------------------
43152
+
43153
+ /**
43154
+ * The content of the component.
43155
+ */
43156
+ children: PropTypes.node,
43157
+
43158
+ /**
43159
+ * Override or extend the styles applied to the component.
43160
+ */
43161
+ classes: PropTypes.object,
43162
+
43163
+ /**
43164
+ * @ignore
43165
+ */
43166
+ className: PropTypes.string,
43167
+
43168
+ /**
43169
+ * The icon to display as the expand indicator.
43170
+ */
43171
+ expandIcon: PropTypes.node,
43172
+
43173
+ /**
43174
+ * This prop can help identify which element has keyboard focus.
43175
+ * The class name will be applied when the element gains the focus through keyboard interaction.
43176
+ * It's a polyfill for the [CSS :focus-visible selector](https://drafts.csswg.org/selectors-4/#the-focus-visible-pseudo).
43177
+ * The rationale for using this feature [is explained here](https://github.com/WICG/focus-visible/blob/HEAD/explainer.md).
43178
+ * A [polyfill can be used](https://github.com/WICG/focus-visible) to apply a `focus-visible` class to other components
43179
+ * if needed.
43180
+ */
43181
+ focusVisibleClassName: PropTypes.string,
43182
+
43183
+ /**
43184
+ * @ignore
43185
+ */
43186
+ onClick: PropTypes.func,
43187
+
43188
+ /**
43189
+ * The system prop that allows defining system overrides as well as additional CSS styles.
43190
+ */
43191
+ sx: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.func, PropTypes.object, PropTypes.bool])), PropTypes.func, PropTypes.object])
43192
+ } : void 0;
43193
+ var AccordionSummary$1 = AccordionSummary;
43194
+
42226
43195
  function getTypographyUtilityClass(slot) {
42227
43196
  return generateUtilityClass('MuiTypography', slot);
42228
43197
  }
@@ -42469,7 +43438,7 @@ function useFormControl() {
42469
43438
 
42470
43439
  function GlobalStyles(props) {
42471
43440
  return /*#__PURE__*/jsxRuntime.jsx(GlobalStyles$1, _extends({}, props, {
42472
- defaultTheme: defaultTheme$1
43441
+ defaultTheme: defaultTheme$2
42473
43442
  }));
42474
43443
  }
42475
43444
 
@@ -43655,6 +44624,38 @@ process.env.NODE_ENV !== "production" ? Backdrop.propTypes
43655
44624
  } : void 0;
43656
44625
  var Backdrop$1 = Backdrop;
43657
44626
 
44627
+ const defaultTheme = createTheme();
44628
+ const Box = createBox({
44629
+ defaultTheme,
44630
+ defaultClassName: 'MuiBox-root',
44631
+ generateClassName: ClassNameGenerator$1.generate
44632
+ });
44633
+ process.env.NODE_ENV !== "production" ? Box.propTypes
44634
+ /* remove-proptypes */
44635
+ = {
44636
+ // ----------------------------- Warning --------------------------------
44637
+ // | These PropTypes are generated from the TypeScript type definitions |
44638
+ // | To update them edit the d.ts file and run "yarn proptypes" |
44639
+ // ----------------------------------------------------------------------
44640
+
44641
+ /**
44642
+ * @ignore
44643
+ */
44644
+ children: PropTypes.node,
44645
+
44646
+ /**
44647
+ * The component used for the root node.
44648
+ * Either a string to use a HTML element or a component.
44649
+ */
44650
+ component: PropTypes.elementType,
44651
+
44652
+ /**
44653
+ * The system prop that allows defining system overrides as well as additional CSS styles.
44654
+ */
44655
+ sx: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.func, PropTypes.object, PropTypes.bool])), PropTypes.func, PropTypes.object])
44656
+ } : void 0;
44657
+ var Box$1 = Box;
44658
+
43658
44659
  function getButtonUtilityClass(slot) {
43659
44660
  return generateUtilityClass('MuiButton', slot);
43660
44661
  }
@@ -50421,6 +51422,7 @@ var ActButton = styled$1(Button$1)(function (_a) {
50421
51422
  var theme = _a.theme;
50422
51423
  return ({
50423
51424
  color: theme.palette.blueClickable,
51425
+ // eslint-disable-next-line @typescript-eslint/restrict-template-expressions
50424
51426
  border: "1px solid ".concat(theme.palette.greyLightBorder),
50425
51427
  borderRadius: 4,
50426
51428
  fontWeight: theme.typography.fontWeightBold,
@@ -50440,23 +51442,31 @@ var TextInput = function (_a) {
50440
51442
  }, [value]);
50441
51443
  return (jsxRuntime.jsx(TextField$1, __assign$1({ variant: "standard", name: name, label: label, value: internalValue, onClick: function (e) { return e.stopPropagation(); }, InputProps: {
50442
51444
  endAdornment: endAdornment
50443
- }, onChange: function (e) { return setInternalValue(e.currentTarget.value); }, onBlur: function (e) {
50444
- onBlur(e);
51445
+ }, onChange: function (e) {
51446
+ setInternalValue(e.currentTarget.value);
50445
51447
  onChange(e);
51448
+ }, onBlur: function (e) {
51449
+ onBlur(e);
50446
51450
  }, error: !!error, helperText: error !== null && error !== void 0 ? error : '', disabled: disabled }, props)));
50447
51451
  };
50448
51452
 
50449
51453
  var Checkbox = function (_a) {
50450
- var name = _a.name, value = _a.value, label = _a.label, sx = _a.sx;
51454
+ var name = _a.name, value = _a.value, error = _a.error, label = _a.label, onChange = _a.onChange, sx = _a.sx;
50451
51455
  var _b = React.useState(value), internalValue = _b[0], setInternalValue = _b[1];
50452
51456
  React.useEffect(function () {
50453
51457
  if (value !== internalValue) {
50454
51458
  setInternalValue(value);
50455
51459
  }
50456
51460
  }, [value]);
50457
- return (jsxRuntime.jsx(FormControl$1, __assign$1({ fullWidth: true }, { children: jsxRuntime.jsx(FormControlLabel$1, { sx: { display: 'table' }, control: jsxRuntime.jsx(Box$1, __assign$1({ sx: { display: 'table-cell' } }, { children: jsxRuntime.jsx(CheckboxMUI, { name: name, sx: { marginTop: -0.5 }, checked: internalValue, color: "primary", onChange: function (e) {
50458
- setInternalValue(e.target.checked);
50459
- } }) })), label: jsxRuntime.jsx(Typography$1, __assign$1({ sx: sx }, { children: label })) }) })));
51461
+ return (jsxRuntime.jsxs(FormControl$1, __assign$1({ fullWidth: true }, { children: [jsxRuntime.jsx(FormControlLabel$1, { sx: { display: 'table' }, control: jsxRuntime.jsx(Box$3, __assign$1({ sx: { display: 'table-cell' } }, { children: jsxRuntime.jsx(CheckboxMUI, { name: name, sx: { marginTop: -0.5 }, checked: internalValue, color: "primary", onChange: function (e) {
51462
+ setInternalValue(e.target.checked);
51463
+ onChange(name, e.target.checked, true);
51464
+ } }) })), label: jsxRuntime.jsx(Typography$1, __assign$1({ sx: sx }, { children: label })) }), error && (jsxRuntime.jsx(Typography$1, __assign$1({ sx: {
51465
+ marginTop: -1,
51466
+ color: '#B80025',
51467
+ fontWeight: 400,
51468
+ fontSize: '10px'
51469
+ } }, { children: error })))] })));
50460
51470
  };
50461
51471
 
50462
51472
  /******************************************************************************
@@ -50486,13 +51496,15 @@ var __assign = function() {
50486
51496
  };
50487
51497
 
50488
51498
  var fontSizes$1 = {
50489
- caption: "10px",
50490
- body2: "12px",
51499
+ caption: "11px",
51500
+ body2: "13px",
50491
51501
  body1: "14px",
50492
51502
  subtitle2: "18px",
50493
51503
  subtitle1: "24px",
50494
51504
  h2: "29px",
50495
- h1: "35px"
51505
+ h1: "35px",
51506
+ bigNumber: "42px",
51507
+ title2: "55px"
50496
51508
  };
50497
51509
  var fontWeights = {
50498
51510
  light: "300",
@@ -50521,12 +51533,16 @@ var colors$1 = {
50521
51533
  primary: "#272727",
50522
51534
  secondary: "#545352"
50523
51535
  },
51536
+ black: "#000000",
51537
+ white: "#FFFFFF",
50524
51538
  red: "red",
50525
51539
  green: "green",
50526
51540
  blueClickable: "#136CAC",
50527
51541
  greyDark: "#545352",
50528
51542
  greyXDark: "#272727",
50529
- greyLightBorder: "#CBCBCB"
51543
+ defaultBorder: "#CBCBCB",
51544
+ greyLightBorder: "#F0F0F0",
51545
+ redLight: "rgba(255, 0, 0, 0.04)"
50530
51546
  };
50531
51547
  var defaultTokens = {
50532
51548
  fontSizes: fontSizes$1,
@@ -50599,6 +51615,100 @@ var useThemeTokens = function (themeName) {
50599
51615
  return { themeName: themeName, tokens: tokens, materialUIThemeTokens: materialUIThemeTokens };
50600
51616
  };
50601
51617
 
51618
+ var ActAccordion = function (_a) {
51619
+ var icon = _a.icon, title = _a.title, content = _a.content, summaryHeight = _a.summaryHeight;
51620
+ var tokens = useThemeTokens('lucie').tokens;
51621
+ return (jsxRuntime.jsxs(Accordion$1, __assign$1({ sx: { border: "1px solid ".concat(tokens.colors.defaultBorder) } }, { children: [jsxRuntime.jsx(AccordionSummary$1, __assign$1({ expandIcon: icon, sx: {
51622
+ height: summaryHeight || 60
51623
+ } }, { children: title })), jsxRuntime.jsx(AccordionDetails$1, __assign$1({ sx: {
51624
+ bgcolor: tokens.colors.greyLightBorder,
51625
+ borderTop: '1px solid #CBCBCB'
51626
+ } }, { children: content }))] })));
51627
+ };
51628
+
51629
+ // eslint-disable-next-line react/display-name
51630
+ var FontAwesomeSvgIcon = React.forwardRef(function (_a, ref) {
51631
+ var icon = _a.icon, fontSize = _a.fontSize;
51632
+ var _b = icon.icon, width = _b[0], height = _b[1], svgPathData = _b[4];
51633
+ return (jsxRuntime.jsx(SvgIcon$1, __assign$1({ ref: ref, viewBox: "0 0 ".concat(width, " ").concat(height), sx: {
51634
+ fontSize: fontSize
51635
+ } }, { children: typeof svgPathData === 'string' ? (jsxRuntime.jsx("path", { d: svgPathData })) : (
51636
+ /**
51637
+ * A multi-path Font Awesome icon seems to imply a duotune icon. The 0th path seems to
51638
+ * be the faded element (referred to as the "secondary" path in the Font Awesome docs)
51639
+ * of a duotone icon. 40% is the default opacity.
51640
+ *
51641
+ * @see https://fontawesome.com/how-to-use/on-the-web/styling/duotone-icons#changing-opacity
51642
+ */
51643
+ svgPathData.map(function (d, i) { return (jsxRuntime.jsx("path", { style: { opacity: i === 0 ? 0.4 : 1 }, d: d }, i)); })) })));
51644
+ });
51645
+ var IconProvider = function (_a) {
51646
+ var variant = _a.variant, icon = _a.icon, color = _a.color, size = _a.size;
51647
+ var getFontSize = function () {
51648
+ if (variant === 'roundedIcon') {
51649
+ return '1.5rem';
51650
+ }
51651
+ if (variant === 'smallRoundedIcon') {
51652
+ return '0.9rem';
51653
+ }
51654
+ switch (size) {
51655
+ case 'xxs':
51656
+ return '.8rem';
51657
+ case 'xs':
51658
+ return '1rem';
51659
+ case 'm':
51660
+ return '1.5rem';
51661
+ case 'lg':
51662
+ return '1.8rem';
51663
+ case 'xl':
51664
+ return '2.2rem';
51665
+ case 'xxl':
51666
+ return '4rem';
51667
+ default:
51668
+ return '1.2rem';
51669
+ }
51670
+ };
51671
+ var getStyles = function () {
51672
+ switch (variant) {
51673
+ case 'roundedIcon':
51674
+ return {
51675
+ color: 'actual.main',
51676
+ backgroundColor: 'actual.light',
51677
+ borderRadius: '100px',
51678
+ overflow: 'visible',
51679
+ height: 50,
51680
+ width: 50,
51681
+ display: 'flex',
51682
+ fontSize: '1.5rem',
51683
+ justifyContent: 'center',
51684
+ alignItems: 'center'
51685
+ };
51686
+ case 'smallRoundedIcon':
51687
+ return {
51688
+ color: 'actual.main',
51689
+ backgroundColor: 'actual.light',
51690
+ borderRadius: '100px',
51691
+ overflow: 'visible',
51692
+ height: 30,
51693
+ width: 30,
51694
+ display: 'flex',
51695
+ justifyContent: 'center',
51696
+ alignItems: 'center'
51697
+ };
51698
+ default:
51699
+ return {
51700
+ color: color !== null && color !== void 0 ? color : 'primary.main',
51701
+ width: getFontSize(),
51702
+ height: getFontSize(),
51703
+ display: 'inline-flex',
51704
+ alignItems: 'center',
51705
+ justifyContent: 'center'
51706
+ };
51707
+ }
51708
+ };
51709
+ return (jsxRuntime.jsx(Box$1, __assign$1({ component: "span", sx: getStyles() }, { children: jsxRuntime.jsx(FontAwesomeSvgIcon, { icon: icon, fontSize: getFontSize() }) })));
51710
+ };
51711
+
50602
51712
  var DesignSystemContext = React.createContext({
50603
51713
  isDarkTheme: false,
50604
51714
  themeName: 'default',
@@ -50620,6 +51730,7 @@ var DesignSystemProvider = function (_a) {
50620
51730
  return (jsxRuntime.jsx(DesignSystemContext.Provider, __assign$1({ value: { isDarkTheme: isDarkTheme, themeName: themeName, toggleDarkTheme: toggleDarkTheme } }, { children: jsxRuntime.jsx(MaterialThemeProvider, { children: children }) })));
50621
51731
  };
50622
51732
 
51733
+ exports.ActAccordion = ActAccordion;
50623
51734
  exports.ActButton = ActButton;
50624
51735
  exports.ActCheckbox = Checkbox;
50625
51736
  exports.ActHeading = ActHeading;
@@ -50628,4 +51739,5 @@ exports.ActText = ActText;
50628
51739
  exports.ActTextInput = TextInput;
50629
51740
  exports.DesignSystemContext = DesignSystemContext;
50630
51741
  exports.DesignSystemProvider = DesignSystemProvider;
51742
+ exports.IconProvider = IconProvider;
50631
51743
  //# sourceMappingURL=index.js.map