@superdispatch/ui 0.21.0 → 0.21.5-alpha.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 (55) hide show
  1. package/dist-node/index.js +1434 -1349
  2. package/dist-node/index.js.map +1 -1
  3. package/dist-src/adaptive-toolbar/AdaptiveToolbar.js +14 -12
  4. package/dist-src/adaptive-vertical-toolbar/AdaptiveVerticalToolbar.js +3 -3
  5. package/dist-src/app-bar/AppBarOverrides.js +6 -4
  6. package/dist-src/autocomplete/AutocompleteOverrides.js +14 -18
  7. package/dist-src/avatar/AvatarOverrides.js +14 -12
  8. package/dist-src/avatar-button/AvatarButton.js +80 -92
  9. package/dist-src/button/Button.js +11 -15
  10. package/dist-src/button/ButtonOverrides.js +147 -149
  11. package/dist-src/card/CardOverrides.js +10 -6
  12. package/dist-src/card-button/CardButton.js +78 -75
  13. package/dist-src/checkbox/CheckboxField.js +1 -1
  14. package/dist-src/checkbox/CheckboxGroudField.js +1 -1
  15. package/dist-src/checkbox/CheckboxOverrides.js +60 -50
  16. package/dist-src/chip/ChipOverrides.js +88 -85
  17. package/dist-src/description-list/DescriptionList.js +58 -55
  18. package/dist-src/dialog/DialogOverrides.js +31 -25
  19. package/dist-src/drawer/DrawerActions.js +32 -34
  20. package/dist-src/drawer/DrawerContent.js +10 -26
  21. package/dist-src/drawer/DrawerList.js +8 -27
  22. package/dist-src/drawer/DrawerOverrides.js +12 -10
  23. package/dist-src/drawer/DrawerTitle.js +46 -40
  24. package/dist-src/grid/GridStack.js +1 -1
  25. package/dist-src/grid/InlineGrid.js +2 -2
  26. package/dist-src/icon-button/IconButtonOverrides.js +48 -32
  27. package/dist-src/info-card/InfoCard.js +27 -37
  28. package/dist-src/link/LinkOverrides.js +29 -26
  29. package/dist-src/list/ListOverrides.js +10 -7
  30. package/dist-src/menu/MenuOverrides.js +28 -14
  31. package/dist-src/overflow-text/OverflowText.js +35 -34
  32. package/dist-src/pagination/PaginationOverrides.js +27 -32
  33. package/dist-src/paper/PaperOverrides.js +8 -6
  34. package/dist-src/radio/RadioField.js +1 -1
  35. package/dist-src/radio/RadioGroupField.js +1 -1
  36. package/dist-src/radio/RadioOverrides.js +38 -36
  37. package/dist-src/responsive/ResponsiveContext.js +1 -1
  38. package/dist-src/snackbar/Snackbar.js +1 -1
  39. package/dist-src/snackbar/SnackbarContent.js +3 -3
  40. package/dist-src/snackbar/SnackbarOverrides.js +28 -18
  41. package/dist-src/svg-icon/SvgIconOverrides.js +28 -18
  42. package/dist-src/switch/SwitchOverrides.js +72 -71
  43. package/dist-src/tabs/TabsOverrides.js +34 -30
  44. package/dist-src/tag/Tag.js +2 -2
  45. package/dist-src/text-field/TextFieldOverrides.js +158 -137
  46. package/dist-src/theme/CssBaselineOverrides.js +8 -0
  47. package/dist-src/theme/ThemeProvider.js +25 -28
  48. package/dist-src/tiles/Tiles.js +4 -3
  49. package/dist-src/toolbar/ToolbarOverrides.js +10 -8
  50. package/dist-src/tooltip/TooltipOverrides.js +33 -30
  51. package/dist-src/typography/TypographyOverrides.js +12 -2
  52. package/dist-types/index.d.ts +31 -26
  53. package/dist-web/index.js +1371 -1286
  54. package/dist-web/index.js.map +1 -1
  55. package/package.json +5 -5
@@ -6,45 +6,44 @@ function _interopDefault (ex) { return (ex && (typeof ex === 'object') && 'defau
6
6
 
7
7
  var _objectSpread = _interopDefault(require('@babel/runtime/helpers/objectSpread2'));
8
8
  var _objectWithoutProperties = _interopDefault(require('@babel/runtime/helpers/objectWithoutProperties'));
9
- var core = require('@material-ui/core');
10
- var icons = require('@material-ui/icons');
11
- var styles = require('@material-ui/styles');
9
+ var iconsMaterial = require('@mui/icons-material');
10
+ var material = require('@mui/material');
12
11
  var React = require('react');
12
+ var lab = require('@mui/lab');
13
13
  var jsxRuntime = require('react/jsx-runtime');
14
+ var core = require('@material-ui/core');
14
15
  var styled = require('styled-components');
15
16
  var styled__default = _interopDefault(styled);
16
17
  var resizeObserver = require('@juggle/resize-observer');
17
18
  var hooks = require('@superdispatch/hooks');
18
- var clsx = _interopDefault(require('clsx'));
19
+ var styles = require('@mui/styles');
19
20
  var flattenChildren = _interopDefault(require('react-keyed-flatten-children'));
20
- var createBreakpoints = _interopDefault(require('@material-ui/core/styles/createBreakpoints'));
21
+ var clsx = _interopDefault(require('clsx'));
22
+ var system = require('@mui/system');
21
23
 
22
- var _excluded = ["size", "children", "disabled", "isActive", "isLoading", "color"];
24
+ var _excluded = ["size", "children", "isActive", "isLoading", "color"];
23
25
  var Button = /*#__PURE__*/React.forwardRef((_ref, ref) => {
24
26
  var {
25
27
  size,
26
28
  children,
27
- disabled,
28
29
  isActive,
29
30
  isLoading,
30
31
  color = 'primary'
31
32
  } = _ref,
32
33
  props = _objectWithoutProperties(_ref, _excluded);
33
34
 
34
- return /*#__PURE__*/jsxRuntime.jsx(core.Button, _objectSpread(_objectSpread({}, props), {}, {
35
+ return /*#__PURE__*/jsxRuntime.jsx(lab.LoadingButton, _objectSpread(_objectSpread({}, props), {}, {
35
36
  ref: ref,
36
37
  size: size,
37
38
  "data-color": color,
38
- "aria-busy": isLoading,
39
+ loading: isLoading,
39
40
  "aria-expanded": isActive,
40
- disabled: disabled || isLoading,
41
- color: color === 'primary' ? color : 'default',
42
- children: !isLoading ? children : /*#__PURE__*/jsxRuntime.jsxs(jsxRuntime.Fragment, {
43
- children: [children, /*#__PURE__*/jsxRuntime.jsx(core.CircularProgress, {
44
- size: "1em",
45
- color: "inherit"
46
- })]
47
- })
41
+ color: color === 'primary' ? color : 'inherit',
42
+ loadingIndicator: /*#__PURE__*/jsxRuntime.jsx(material.CircularProgress, {
43
+ size: "1em",
44
+ color: "inherit"
45
+ }),
46
+ children: children
48
47
  }));
49
48
  });
50
49
  if (process.env.NODE_ENV !== "production") Button.displayName = "Button";
@@ -171,12 +170,12 @@ function useResizeObserver(node, observer) {
171
170
  }
172
171
 
173
172
  var _excluded$2 = ["items"];
174
- var useStyles = /*#__PURE__*/styles.makeStyles({
175
- actions: {
176
- overflow: 'hidden'
177
- }
178
- }, {
173
+ var GridActionsItem = /*#__PURE__*/material.styled(material.Grid, {
179
174
  name: 'SD-AdaptiveToolbar'
175
+ })(() => {
176
+ return {
177
+ overflow: 'hidden'
178
+ };
180
179
  });
181
180
  var AdaptiveToolbar = /*#__PURE__*/React.forwardRef((_ref, ref) => {
182
181
  var {
@@ -184,7 +183,6 @@ var AdaptiveToolbar = /*#__PURE__*/React.forwardRef((_ref, ref) => {
184
183
  } = _ref,
185
184
  props = _objectWithoutProperties(_ref, _excluded$2);
186
185
 
187
- var styles = useStyles();
188
186
  var itemNodes = React.useRef([]);
189
187
  var optionsButtonRef = React.useRef(null);
190
188
  var [firstHiddenIdx, setFirstHiddenIdx] = React.useState(-1);
@@ -220,21 +218,20 @@ var AdaptiveToolbar = /*#__PURE__*/React.forwardRef((_ref, ref) => {
220
218
 
221
219
  setFirstHiddenIdx(hiddenIdx);
222
220
  });
223
- return /*#__PURE__*/jsxRuntime.jsx(core.Toolbar, _objectSpread(_objectSpread({}, props), {}, {
221
+ return /*#__PURE__*/jsxRuntime.jsx(material.Toolbar, _objectSpread(_objectSpread({}, props), {}, {
224
222
  ref: ref,
225
- children: /*#__PURE__*/jsxRuntime.jsxs(core.Grid, {
223
+ children: /*#__PURE__*/jsxRuntime.jsxs(material.Grid, {
226
224
  container: true,
227
225
  spacing: 1,
228
226
  ref: setRootNode,
229
- children: [/*#__PURE__*/jsxRuntime.jsx(core.Grid, {
227
+ children: [/*#__PURE__*/jsxRuntime.jsx(GridActionsItem, {
230
228
  item: true,
231
- className: styles.actions,
232
- children: /*#__PURE__*/jsxRuntime.jsx(core.Grid, {
229
+ children: /*#__PURE__*/jsxRuntime.jsx(material.Grid, {
233
230
  container: true,
234
231
  spacing: 1,
235
232
  wrap: "nowrap",
236
233
  component: "div",
237
- children: items.map((item, idx) => /*#__PURE__*/jsxRuntime.jsx(core.Grid, {
234
+ children: items.map((item, idx) => /*#__PURE__*/jsxRuntime.jsx(material.Grid, {
238
235
  item: true,
239
236
  ref: node => {
240
237
  itemNodes.current[idx] = node;
@@ -244,15 +241,17 @@ var AdaptiveToolbar = /*#__PURE__*/React.forwardRef((_ref, ref) => {
244
241
  onClick: item.onClick,
245
242
  label: item.label
246
243
  }, item.ButtonProps), {}, {
247
- children: item.dropdown.map(dropdownItem => /*#__PURE__*/jsxRuntime.jsx(core.MenuItem, {
244
+ children: item.dropdown.map(dropdownItem => /*#__PURE__*/jsxRuntime.jsx(material.MenuItem, {
248
245
  onClick: dropdownItem.onClick,
249
246
  children: dropdownItem.label
250
247
  }, dropdownItem.key))
251
248
  })) : /*#__PURE__*/jsxRuntime.jsx(Button, _objectSpread(_objectSpread({
252
249
  type: "button",
250
+ color: "primary",
251
+ variant: "outlined",
253
252
  onClick: item.onClick
254
253
  }, item.ButtonProps), {}, {
255
- children: /*#__PURE__*/jsxRuntime.jsx(core.Typography, {
254
+ children: /*#__PURE__*/jsxRuntime.jsx(material.Typography, {
256
255
  noWrap: true,
257
256
  variant: "inherit",
258
257
  children: item.label
@@ -260,20 +259,21 @@ var AdaptiveToolbar = /*#__PURE__*/React.forwardRef((_ref, ref) => {
260
259
  }))
261
260
  }, item.key))
262
261
  })
263
- }), menuItems.length > 0 && /*#__PURE__*/jsxRuntime.jsxs(core.Grid, {
262
+ }), menuItems.length > 0 && /*#__PURE__*/jsxRuntime.jsxs(material.Grid, {
264
263
  item: true,
265
264
  ref: optionsButtonRef,
266
265
  component: "div",
267
266
  children: [/*#__PURE__*/jsxRuntime.jsx(Button, {
268
267
  type: "button",
268
+ variant: "outlined",
269
269
  onClick: _ref2 => {
270
270
  var {
271
271
  currentTarget
272
272
  } = _ref2;
273
273
  setMenuButtonRef(currentTarget);
274
274
  },
275
- children: /*#__PURE__*/jsxRuntime.jsx(icons.MoreHoriz, {})
276
- }), /*#__PURE__*/jsxRuntime.jsx(core.Menu, {
275
+ children: /*#__PURE__*/jsxRuntime.jsx(iconsMaterial.MoreHoriz, {})
276
+ }), /*#__PURE__*/jsxRuntime.jsx(material.Menu, {
277
277
  open: !!menuButtonNode,
278
278
  anchorEl: menuButtonNode,
279
279
  onClose: () => {
@@ -284,7 +284,7 @@ var AdaptiveToolbar = /*#__PURE__*/React.forwardRef((_ref, ref) => {
284
284
 
285
285
  var next = arr[index + 1];
286
286
  return /*#__PURE__*/jsxRuntime.jsxs(jsxRuntime.Fragment, {
287
- children: [/*#__PURE__*/jsxRuntime.jsx(core.MenuItem, {
287
+ children: [/*#__PURE__*/jsxRuntime.jsx(material.MenuItem, {
288
288
  onClick: event => {
289
289
  var _item$onClick;
290
290
 
@@ -292,7 +292,7 @@ var AdaptiveToolbar = /*#__PURE__*/React.forwardRef((_ref, ref) => {
292
292
  setMenuButtonRef(undefined);
293
293
  },
294
294
  children: item.label
295
- }, item.key), (_item$dropdown = item.dropdown) === null || _item$dropdown === void 0 ? void 0 : _item$dropdown.map(dropdownItem => /*#__PURE__*/jsxRuntime.jsx(core.MenuItem, {
295
+ }, item.key), (_item$dropdown = item.dropdown) === null || _item$dropdown === void 0 ? void 0 : _item$dropdown.map(dropdownItem => /*#__PURE__*/jsxRuntime.jsx(material.MenuItem, {
296
296
  onClick: event => {
297
297
  var _dropdownItem$onClick;
298
298
 
@@ -300,7 +300,7 @@ var AdaptiveToolbar = /*#__PURE__*/React.forwardRef((_ref, ref) => {
300
300
  setMenuButtonRef(undefined);
301
301
  },
302
302
  children: dropdownItem.label
303
- }, dropdownItem.key)), next && item.groupKey !== next.groupKey && /*#__PURE__*/jsxRuntime.jsx(core.Divider, {})]
303
+ }, dropdownItem.key)), next && item.groupKey !== next.groupKey && /*#__PURE__*/jsxRuntime.jsx(material.Divider, {})]
304
304
  });
305
305
  })
306
306
  })]
@@ -331,7 +331,7 @@ function assignRef(ref, value) {
331
331
  }
332
332
  }
333
333
 
334
- var useStyles$1 = /*#__PURE__*/styles.makeStyles({
334
+ var useStyles = /*#__PURE__*/styles.makeStyles({
335
335
  root: {
336
336
  overflow: 'hidden',
337
337
  height: '100%'
@@ -342,7 +342,7 @@ var useStyles$1 = /*#__PURE__*/styles.makeStyles({
342
342
 
343
343
  var defaultMoreElement = /*#__PURE__*/jsxRuntime.jsx(Button, {
344
344
  type: "button",
345
- children: /*#__PURE__*/jsxRuntime.jsx(icons.MoreHoriz, {})
345
+ children: /*#__PURE__*/jsxRuntime.jsx(iconsMaterial.MoreHoriz, {})
346
346
  });
347
347
 
348
348
  var AdaptiveVerticalToolbar = /*#__PURE__*/React.forwardRef((_ref, ref) => {
@@ -353,7 +353,7 @@ var AdaptiveVerticalToolbar = /*#__PURE__*/React.forwardRef((_ref, ref) => {
353
353
  renderItem = item => item.label,
354
354
  renderMenuItem = item => item.label
355
355
  } = _ref;
356
- var styles = useStyles$1();
356
+ var styles = useStyles();
357
357
  var itemNodes = React.useRef([]);
358
358
  var optionsButtonRef = React.useRef(null);
359
359
  var [firstHiddenIdx, setFirstHiddenIdx] = React.useState(-1);
@@ -388,7 +388,7 @@ var AdaptiveVerticalToolbar = /*#__PURE__*/React.forwardRef((_ref, ref) => {
388
388
 
389
389
  setFirstHiddenIdx(hiddenIdx);
390
390
  });
391
- return /*#__PURE__*/jsxRuntime.jsxs(core.Grid, {
391
+ return /*#__PURE__*/jsxRuntime.jsxs(material.Grid, {
392
392
  direction: "column",
393
393
  container: true,
394
394
  wrap: "nowrap",
@@ -397,13 +397,13 @@ var AdaptiveVerticalToolbar = /*#__PURE__*/React.forwardRef((_ref, ref) => {
397
397
  ref: mergeRefs(ref, node => {
398
398
  setRootNode(node);
399
399
  }),
400
- children: [items.map((item, idx) => /*#__PURE__*/jsxRuntime.jsx(core.Grid, {
400
+ children: [items.map((item, idx) => /*#__PURE__*/jsxRuntime.jsx(material.Grid, {
401
401
  item: true,
402
402
  ref: node => {
403
403
  itemNodes.current[idx] = node;
404
404
  },
405
405
  children: renderItem(item)
406
- }, item.key)), menuItems.length > 0 && /*#__PURE__*/jsxRuntime.jsxs(core.Grid, {
406
+ }, item.key)), menuItems.length > 0 && /*#__PURE__*/jsxRuntime.jsxs(material.Grid, {
407
407
  item: true,
408
408
  ref: optionsButtonRef,
409
409
  component: "div",
@@ -414,7 +414,7 @@ var AdaptiveVerticalToolbar = /*#__PURE__*/React.forwardRef((_ref, ref) => {
414
414
  } = _ref2;
415
415
  setMenuButtonRef(currentTarget);
416
416
  }
417
- }), /*#__PURE__*/jsxRuntime.jsx(core.Menu, {
417
+ }), /*#__PURE__*/jsxRuntime.jsx(material.Menu, {
418
418
  open: !!menuButtonNode,
419
419
  anchorEl: menuButtonNode,
420
420
  onClose: () => {
@@ -422,7 +422,7 @@ var AdaptiveVerticalToolbar = /*#__PURE__*/React.forwardRef((_ref, ref) => {
422
422
  },
423
423
  children: menuItems.flatMap((item, index, arr) => {
424
424
  var next = arr[index + 1];
425
- return [/*#__PURE__*/jsxRuntime.jsx(core.MenuItem, {
425
+ return [/*#__PURE__*/jsxRuntime.jsx(material.MenuItem, {
426
426
  onClick: event => {
427
427
  var _item$onClick;
428
428
 
@@ -430,7 +430,7 @@ var AdaptiveVerticalToolbar = /*#__PURE__*/React.forwardRef((_ref, ref) => {
430
430
  setMenuButtonRef(undefined);
431
431
  },
432
432
  children: renderMenuItem(item)
433
- }, item.key), next && next.menuGroupKey !== item.menuGroupKey && /*#__PURE__*/jsxRuntime.jsx(core.Divider, {}, "".concat(item.key, "-divider"))];
433
+ }, item.key), next && next.menuGroupKey !== item.menuGroupKey && /*#__PURE__*/jsxRuntime.jsx(material.Divider, {}, "".concat(item.key, "-divider"))];
434
434
  })
435
435
  })]
436
436
  })]
@@ -514,66 +514,81 @@ function isColorProp(name) {
514
514
  return typeof name == 'string' && Object.prototype.hasOwnProperty.call(exports.Color, name);
515
515
  }
516
516
 
517
- var _excluded$3 = ["size", "icon", "isLoading", "classes", "disabled", "avatarRef", "className", "alt", "imgProps", "sizes", "src", "srcSet", "variant", "children"],
518
- _excluded2 = ["button", "overlay", "progress", "withIcon", "sizeLarge"];
519
- var useStyles$2 = /*#__PURE__*/styles.makeStyles(theme => {
517
+ var _excluded$3 = ["size", "icon", "isLoading", "disabled", "avatarRef", "alt", "imgProps", "sizes", "src", "srcSet", "variant", "children"];
518
+ var Overlay = /*#__PURE__*/material.styled('div')(_ref => {
519
+ var {
520
+ theme
521
+ } = _ref;
520
522
  var sm = theme.breakpoints.up('sm');
521
523
  return {
522
- button: {
523
- borderRadius: '50%',
524
- '&[disabled], &[aria-busy="true"]': {
525
- '& > $overlay': {
526
- backgroundColor: exports.Color.White50
527
- }
528
- },
529
- '&:not([disabled])[aria-busy="false"]': {
530
- '&:hover, &:focus': {
531
- '&$withIcon > $overlay': {
532
- backgroundColor: exports.Color.Black50,
533
- '& > svg': {
534
- opacity: 1
535
- }
536
- },
537
- '&:not($withIcon) > $overlay': {
538
- backgroundColor: exports.Color.Black20
539
- }
540
- }
524
+ top: 0,
525
+ left: 0,
526
+ right: 0,
527
+ bottom: 0,
528
+ position: 'absolute',
529
+ display: 'flex',
530
+ alignItems: 'center',
531
+ justifyContent: 'center',
532
+ borderRadius: '50%',
533
+ backgroundColor: exports.Color.Transparent,
534
+ transition: theme.transitions.create('background-color'),
535
+ '& > svg': {
536
+ opacity: 0,
537
+ color: exports.Color.White,
538
+ transition: theme.transitions.create('opacity'),
539
+ fontSize: theme.spacing(3),
540
+ [sm]: {
541
+ fontSize: theme.spacing(2)
541
542
  }
542
- },
543
- overlay: {
544
- top: 0,
545
- left: 0,
546
- right: 0,
547
- bottom: 0,
548
- position: 'absolute',
549
- display: 'flex',
550
- alignItems: 'center',
551
- justifyContent: 'center',
552
- borderRadius: '50%',
553
- backgroundColor: exports.Color.Transparent,
554
- transition: theme.transitions.create('background-color'),
555
- '& > svg': {
556
- opacity: 0,
557
- color: exports.Color.White,
558
- transition: theme.transitions.create('opacity'),
559
- fontSize: theme.spacing(3),
560
- [sm]: {
561
- fontSize: theme.spacing(2)
562
- }
543
+ }
544
+ };
545
+ });
546
+ var StyledProgress = /*#__PURE__*/material.styled(material.CircularProgress)(props => {
547
+ var {
548
+ theme
549
+ } = props;
550
+ var sm = theme.breakpoints.up('sm');
551
+ return {
552
+ top: 0,
553
+ left: 0,
554
+ position: 'absolute',
555
+ fontSize: theme.spacing(5),
556
+ [sm]: {
557
+ fontSize: theme.spacing(4)
558
+ }
559
+ };
560
+ }); // eslint-disable-next-line @typescript-eslint/ban-ts-comment
561
+ // @ts-ignore
562
+
563
+ var StyledButton = /*#__PURE__*/material.styled(material.ButtonBase, {
564
+ name: 'SD-AvatarButton'
565
+ })(_ref2 => {
566
+ var {
567
+ theme
568
+ } = _ref2;
569
+ var sm = theme.breakpoints.up('sm');
570
+ return {
571
+ borderRadius: '50%',
572
+ '&[disabled], &[aria-busy="true"]': {
573
+ ["& > ".concat(Overlay.toString())]: {
574
+ backgroundColor: exports.Color.White50
563
575
  }
564
576
  },
565
- progress: {
566
- top: 0,
567
- left: 0,
568
- position: 'absolute',
569
- fontSize: theme.spacing(5),
570
- [sm]: {
571
- fontSize: theme.spacing(4)
577
+ '&:not([disabled])[aria-busy="false"]': {
578
+ '&:hover, &:focus': {
579
+ ["&[data-with-icon=\"true\"] > ".concat(Overlay.toString())]: {
580
+ backgroundColor: exports.Color.Black50,
581
+ '& > svg': {
582
+ opacity: 1
583
+ }
584
+ },
585
+ ["&:not([data-with-icon=\"true\"]) > ".concat(Overlay.toString())]: {
586
+ backgroundColor: exports.Color.Black20
587
+ }
572
588
  }
573
589
  },
574
- withIcon: {},
575
- sizeLarge: {
576
- '& > $root': _objectSpread(_objectSpread({}, theme.typography.h2), {}, {
590
+ '&[data-size-large="true"]': {
591
+ '& > .MuiAvatar-root': _objectSpread(_objectSpread({}, theme.typography.h2), {}, {
577
592
  width: theme.spacing(7),
578
593
  height: theme.spacing(7),
579
594
  [sm]: {
@@ -581,8 +596,8 @@ var useStyles$2 = /*#__PURE__*/styles.makeStyles(theme => {
581
596
  height: theme.spacing(8)
582
597
  }
583
598
  }),
584
- '& > $overlay': {
585
- '& > $progress': {
599
+ ["& > ".concat(Overlay.toString())]: {
600
+ ["& > ".concat(StyledProgress.toString())]: {
586
601
  fontSize: theme.spacing(7),
587
602
  [sm]: {
588
603
  fontSize: theme.spacing(8)
@@ -595,27 +610,16 @@ var useStyles$2 = /*#__PURE__*/styles.makeStyles(theme => {
595
610
  }
596
611
  }
597
612
  }
598
- },
599
- root: {},
600
- colorDefault: {},
601
- circular: {},
602
- rounded: {},
603
- square: {},
604
- img: {},
605
- fallback: {}
613
+ }
606
614
  };
607
- }, {
608
- name: 'SD-AvatarButton'
609
615
  });
610
- var AvatarButton = /*#__PURE__*/React.forwardRef((_ref, ref) => {
616
+ var AvatarButton = /*#__PURE__*/React.forwardRef((_ref3, ref) => {
611
617
  var {
612
618
  size,
613
619
  icon,
614
620
  isLoading = false,
615
- classes,
616
621
  disabled = false,
617
622
  avatarRef,
618
- className,
619
623
  alt,
620
624
  imgProps,
621
625
  sizes,
@@ -623,30 +627,18 @@ var AvatarButton = /*#__PURE__*/React.forwardRef((_ref, ref) => {
623
627
  srcSet,
624
628
  variant,
625
629
  children
626
- } = _ref,
627
- props = _objectWithoutProperties(_ref, _excluded$3);
630
+ } = _ref3,
631
+ props = _objectWithoutProperties(_ref3, _excluded$3);
628
632
 
629
- var _useStyles = useStyles$2({
630
- classes
631
- }),
632
- {
633
- button: buttonClassName,
634
- overlay: overlayClassName,
635
- progress: progressClassName,
636
- withIcon: withIconClassName,
637
- sizeLarge: sizeLargeClassName
638
- } = _useStyles,
639
- avatarClasses = _objectWithoutProperties(_useStyles, _excluded2);
640
-
641
- return /*#__PURE__*/jsxRuntime.jsxs(core.ButtonBase, _objectSpread(_objectSpread({}, props), {}, {
633
+ return /*#__PURE__*/jsxRuntime.jsxs(StyledButton, _objectSpread(_objectSpread({}, props), {}, {
642
634
  ref: ref,
643
635
  "aria-busy": isLoading,
644
636
  "aria-disabled": disabled,
645
637
  disabled: disabled || isLoading,
646
- className: clsx(className, buttonClassName, !!icon && withIconClassName, size === 'large' && sizeLargeClassName),
647
- children: [/*#__PURE__*/jsxRuntime.jsx(core.Avatar, {
638
+ "data-with-icon": !!icon,
639
+ "data-size-large": size === 'large',
640
+ children: [/*#__PURE__*/jsxRuntime.jsx(material.Avatar, {
648
641
  ref: avatarRef,
649
- classes: avatarClasses,
650
642
  variant: variant,
651
643
  alt: alt,
652
644
  src: src,
@@ -654,11 +646,9 @@ var AvatarButton = /*#__PURE__*/React.forwardRef((_ref, ref) => {
654
646
  srcSet: srcSet,
655
647
  imgProps: imgProps,
656
648
  children: children
657
- }), /*#__PURE__*/jsxRuntime.jsxs("div", {
658
- className: overlayClassName,
659
- children: [icon, isLoading && /*#__PURE__*/jsxRuntime.jsx(core.CircularProgress, {
649
+ }), /*#__PURE__*/jsxRuntime.jsxs(Overlay, {
650
+ children: [icon, isLoading && /*#__PURE__*/jsxRuntime.jsx(StyledProgress, {
660
651
  size: "1em",
661
- className: progressClassName,
662
652
  thickness: size === 'large' ? 2.5 : 1.5
663
653
  })]
664
654
  })]
@@ -667,8 +657,11 @@ var AvatarButton = /*#__PURE__*/React.forwardRef((_ref, ref) => {
667
657
  if (process.env.NODE_ENV !== "production") AvatarButton.displayName = "AvatarButton";
668
658
 
669
659
  var _excluded$4 = ["hint", "size", "error", "classes", "className", "children", "endIcon", "startIcon", "disabled"];
670
- var useStyles$3 = /*#__PURE__*/styles.makeStyles(theme => ({
671
- root: {
660
+ var StyledButton$1 = /*#__PURE__*/material.styled(material.ButtonBase)(_ref => {
661
+ var {
662
+ theme
663
+ } = _ref;
664
+ return {
672
665
  width: '100%',
673
666
  display: 'flex',
674
667
  alignItems: 'center',
@@ -679,66 +672,74 @@ var useStyles$3 = /*#__PURE__*/styles.makeStyles(theme => ({
679
672
  borderRadius: theme.spacing(0.5),
680
673
  padding: theme.spacing(1.5),
681
674
  minHeight: theme.spacing(13),
682
- transition: theme.transitions.create(['color', 'box-shadow', 'border-color', 'background-color'])
683
- },
684
- disabled: {
685
- color: exports.Color.Dark200,
686
- borderColor: exports.Color.Silver500,
687
- backgroundColor: exports.Color.Silver100
688
- },
689
- error: {
690
- color: exports.Color.Red300,
691
- borderColor: exports.Color.Red300,
692
- backgroundColor: exports.Color.Red50,
693
- '&:focus': {
694
- backgroundColor: exports.Color.Red75
695
- }
696
- },
697
- primary: {
698
- color: exports.Color.Blue300,
699
- borderColor: exports.Color.Silver500,
700
- '&:focus': {
701
- backgroundColor: exports.Color.Blue50
675
+ transition: theme.transitions.create(['color', 'box-shadow', 'border-color', 'background-color']),
676
+ '&[data-disabled="true"]': {
677
+ color: exports.Color.Dark200,
678
+ borderColor: exports.Color.Silver500,
679
+ backgroundColor: exports.Color.Silver100
702
680
  },
703
- '&:hover, &:active': {
704
- borderColor: exports.Color.Blue300,
705
- backgroundColor: exports.Color.Blue50
681
+ '&[data-primary="true"]': {
682
+ color: exports.Color.Blue300,
683
+ borderColor: exports.Color.Silver500,
684
+ '&:focus': {
685
+ backgroundColor: exports.Color.Blue50
686
+ },
687
+ '&:hover, &:active': {
688
+ borderColor: exports.Color.Blue300,
689
+ backgroundColor: exports.Color.Blue50
690
+ }
691
+ },
692
+ '&[data-error="true"]': {
693
+ color: exports.Color.Red300,
694
+ borderColor: exports.Color.Red300,
695
+ backgroundColor: exports.Color.Red50,
696
+ '&:focus': {
697
+ backgroundColor: exports.Color.Red75
698
+ }
699
+ },
700
+ '&[data-size="small"]': {
701
+ minHeight: theme.spacing(6)
702
+ },
703
+ '&[data-size="large"]': {
704
+ minHeight: theme.spacing(17.5)
706
705
  }
707
- },
708
- sizeSmall: {
709
- minHeight: theme.spacing(6)
710
- },
711
- sizeLarge: {
712
- minHeight: theme.spacing(17.5)
713
- },
714
- label: {
715
- display: 'flex',
716
- alignItems: 'center'
717
- },
718
- icon: {
706
+ };
707
+ });
708
+ var Label = /*#__PURE__*/material.styled(material.Typography)({
709
+ display: 'flex',
710
+ alignItems: 'center'
711
+ });
712
+ var Hint = /*#__PURE__*/material.styled(material.Typography)(_ref2 => {
713
+ var {
714
+ theme
715
+ } = _ref2;
716
+ return {
717
+ marginTop: theme.spacing(0.5)
718
+ };
719
+ });
720
+ var Icon = /*#__PURE__*/material.styled('span')(_ref3 => {
721
+ var {
722
+ theme
723
+ } = _ref3;
724
+ return {
719
725
  display: 'flex',
720
726
  '& svg': {
721
727
  fontSize: theme.spacing(3),
722
728
  [theme.breakpoints.up('sm')]: {
723
729
  fontSize: theme.spacing(2.5)
724
730
  }
731
+ },
732
+ '&[data-placement="start"]': {
733
+ marginRight: theme.spacing(1),
734
+ marginLeft: theme.spacing(-0.5)
735
+ },
736
+ '&[data-placement="end"]': {
737
+ marginLeft: theme.spacing(1),
738
+ marginRight: theme.spacing(-0.5)
725
739
  }
726
- },
727
- startIcon: {
728
- marginRight: theme.spacing(1),
729
- marginLeft: theme.spacing(-0.5)
730
- },
731
- endIcon: {
732
- marginLeft: theme.spacing(1),
733
- marginRight: theme.spacing(-0.5)
734
- },
735
- hint: {
736
- marginTop: theme.spacing(0.5)
737
- }
738
- }), {
739
- name: 'SD-CardButton'
740
+ };
740
741
  });
741
- var CardButton = /*#__PURE__*/React.forwardRef((_ref, ref) => {
742
+ var CardButton = /*#__PURE__*/React.forwardRef((_ref4, ref) => {
742
743
  var {
743
744
  hint,
744
745
  size,
@@ -749,39 +750,33 @@ var CardButton = /*#__PURE__*/React.forwardRef((_ref, ref) => {
749
750
  endIcon,
750
751
  startIcon,
751
752
  disabled
752
- } = _ref,
753
- props = _objectWithoutProperties(_ref, _excluded$4);
753
+ } = _ref4,
754
+ props = _objectWithoutProperties(_ref4, _excluded$4);
754
755
 
755
- var styles = useStyles$3({
756
- classes
757
- });
758
- return /*#__PURE__*/jsxRuntime.jsx(core.ButtonBase, _objectSpread(_objectSpread({}, props), {}, {
756
+ return /*#__PURE__*/jsxRuntime.jsx(StyledButton$1, _objectSpread(_objectSpread({}, props), {}, {
759
757
  ref: ref,
760
758
  disabled: disabled,
761
- className: clsx(styles.root, className, disabled ? styles.disabled : error ? styles.error : styles.primary, {
762
- 'small': styles.sizeSmall,
763
- 'large': styles.sizeLarge
764
- }[size]),
765
- children: error ? /*#__PURE__*/jsxRuntime.jsx(core.Typography, {
759
+ "data-size": size,
760
+ "data-disabled": !!disabled,
761
+ "data-error": !disabled && !!error,
762
+ "data-primary": !disabled && !error,
763
+ children: error ? /*#__PURE__*/jsxRuntime.jsx(Label, {
766
764
  variant: "h4",
767
765
  color: "inherit",
768
- className: styles.label,
769
766
  children: error
770
767
  }) : /*#__PURE__*/jsxRuntime.jsxs(jsxRuntime.Fragment, {
771
- children: [/*#__PURE__*/jsxRuntime.jsxs(core.Typography, {
768
+ children: [/*#__PURE__*/jsxRuntime.jsxs(Label, {
772
769
  variant: "h4",
773
770
  color: "inherit",
774
- className: styles.label,
775
- children: [!!startIcon && /*#__PURE__*/jsxRuntime.jsx("span", {
776
- className: clsx(styles.icon, styles.startIcon),
771
+ children: [!!startIcon && /*#__PURE__*/jsxRuntime.jsx(Icon, {
772
+ "data-placement": "start",
777
773
  children: startIcon
778
- }), children, !!endIcon && /*#__PURE__*/jsxRuntime.jsx("span", {
779
- className: clsx(styles.icon, styles.endIcon),
774
+ }), children, !!endIcon && /*#__PURE__*/jsxRuntime.jsx(Icon, {
775
+ "data-placement": "end",
780
776
  children: endIcon
781
777
  })]
782
- }), !!hint && /*#__PURE__*/jsxRuntime.jsx(core.Typography, {
778
+ }), !!hint && /*#__PURE__*/jsxRuntime.jsx(Hint, {
783
779
  color: "textSecondary",
784
- className: styles.hint,
785
780
  children: hint
786
781
  })]
787
782
  })
@@ -802,19 +797,19 @@ var CheckboxField = /*#__PURE__*/React.forwardRef((_ref, ref) => {
802
797
  } = _ref,
803
798
  props = _objectWithoutProperties(_ref, _excluded$5);
804
799
 
805
- return /*#__PURE__*/jsxRuntime.jsxs(core.FormControl, {
800
+ return /*#__PURE__*/jsxRuntime.jsxs(material.FormControl, {
806
801
  error: error,
807
- children: [/*#__PURE__*/jsxRuntime.jsx(core.FormControlLabel, _objectSpread(_objectSpread({}, formControlLabelProps), {}, {
802
+ children: [/*#__PURE__*/jsxRuntime.jsx(material.FormControlLabel, _objectSpread(_objectSpread({}, formControlLabelProps), {}, {
808
803
  label: label,
809
804
  checked: checked,
810
805
  onBlur: onBlur,
811
806
  onChange: onChange,
812
- control: /*#__PURE__*/jsxRuntime.jsx(core.Checkbox, _objectSpread({
807
+ control: /*#__PURE__*/jsxRuntime.jsx(material.Checkbox, _objectSpread({
813
808
  ref: ref,
814
809
  color: "primary",
815
810
  disableRipple: true
816
811
  }, props))
817
- })), helperText && /*#__PURE__*/jsxRuntime.jsx(core.FormHelperText, {
812
+ })), helperText && /*#__PURE__*/jsxRuntime.jsx(material.FormHelperText, {
818
813
  children: helperText
819
814
  })]
820
815
  });
@@ -833,15 +828,15 @@ var CheckboxGroupField = /*#__PURE__*/React.forwardRef((_ref, ref) => {
833
828
  } = _ref,
834
829
  formControlProps = _objectWithoutProperties(_ref, _excluded$6);
835
830
 
836
- return /*#__PURE__*/jsxRuntime.jsxs(core.FormControl, _objectSpread(_objectSpread({}, formControlProps), {}, {
831
+ return /*#__PURE__*/jsxRuntime.jsxs(material.FormControl, _objectSpread(_objectSpread({}, formControlProps), {}, {
837
832
  hiddenLabel: !label,
838
- children: [!!label && /*#__PURE__*/jsxRuntime.jsx(core.FormLabel, _objectSpread(_objectSpread({}, formLabelProps), {}, {
833
+ children: [!!label && /*#__PURE__*/jsxRuntime.jsx(material.FormLabel, _objectSpread(_objectSpread({}, formLabelProps), {}, {
839
834
  children: label
840
- })), /*#__PURE__*/jsxRuntime.jsx(core.FormGroup, _objectSpread(_objectSpread({
835
+ })), /*#__PURE__*/jsxRuntime.jsx(material.FormGroup, _objectSpread(_objectSpread({
841
836
  ref: ref
842
837
  }, formGroupProps), {}, {
843
838
  children: children
844
- })), !!helperText && /*#__PURE__*/jsxRuntime.jsx(core.FormHelperText, _objectSpread(_objectSpread({}, formHelperTextProps), {}, {
839
+ })), !!helperText && /*#__PURE__*/jsxRuntime.jsx(material.FormHelperText, _objectSpread(_objectSpread({}, formHelperTextProps), {}, {
845
840
  children: helperText
846
841
  }))]
847
842
  }));
@@ -851,7 +846,7 @@ if (process.env.NODE_ENV !== "production") CheckboxGroupField.displayName = "Che
851
846
  var Context = /*#__PURE__*/React.createContext({});
852
847
 
853
848
  function useBreakpoint(breakpoint) {
854
- return core.useMediaQuery(theme => theme.breakpoints.only(breakpoint));
849
+ return material.useMediaQuery(theme => theme.breakpoints.only(breakpoint));
855
850
  }
856
851
 
857
852
  function ResponsiveContextProvider(_ref) {
@@ -1121,50 +1116,54 @@ function VisibilityObserver(_ref2) {
1121
1116
  }
1122
1117
 
1123
1118
  var _excluded$8 = ["title", "enterDelay"],
1124
- _excluded2$1 = ["onClick", "children", "className", "disableUnderline", "TooltipProps"];
1125
- var useStyles$4 = /*#__PURE__*/styles.makeStyles(theme => ({
1126
- root: {
1119
+ _excluded2 = ["onClick", "children", "disableUnderline", "TooltipProps"];
1120
+ var Root = /*#__PURE__*/material.styled(material.Typography, {
1121
+ name: 'SD-OverflowText',
1122
+ shouldForwardProp: prop => prop !== 'truncated'
1123
+ })(_ref => {
1124
+ var {
1125
+ truncated,
1126
+ theme
1127
+ } = _ref;
1128
+ return _objectSpread({
1127
1129
  marginBottom: -1,
1128
1130
  borderBottom: '1px dashed transparent',
1129
- transition: theme.transitions.create('border'),
1130
- '&$truncated': {
1131
- cursor: 'pointer',
1132
- borderBottomColor: exports.Color.Silver500
1133
- }
1134
- },
1135
- truncated: {},
1136
- sentinel: {
1137
- width: 1,
1138
- height: '100%',
1139
- display: 'inline-block'
1140
- }
1141
- }), {
1142
- name: 'SD-OverflowText'
1131
+ transition: theme.transitions.create('border')
1132
+ }, truncated && {
1133
+ cursor: 'pointer',
1134
+ borderBottomColor: exports.Color.Silver500
1135
+ });
1143
1136
  });
1144
- var OverflowText = /*#__PURE__*/React.forwardRef((_ref, rootRef) => {
1137
+ var Sential = /*#__PURE__*/material.styled('span', {
1138
+ name: 'SD-OverflowText',
1139
+ slot: 'Sential'
1140
+ })({
1141
+ width: 1,
1142
+ height: '100%',
1143
+ display: 'inline-block'
1144
+ });
1145
+ var OverflowText = /*#__PURE__*/React.forwardRef((_ref2, rootRef) => {
1145
1146
  var {
1146
1147
  onClick: _onClick,
1147
1148
  children,
1148
- className,
1149
1149
  disableUnderline,
1150
1150
  TooltipProps: {
1151
1151
  title = children,
1152
1152
  enterDelay = 1000
1153
1153
  } = {}
1154
- } = _ref,
1155
- tooltipProps = _objectWithoutProperties(_ref.TooltipProps, _excluded$8),
1156
- props = _objectWithoutProperties(_ref, _excluded2$1);
1154
+ } = _ref2,
1155
+ tooltipProps = _objectWithoutProperties(_ref2.TooltipProps, _excluded$8),
1156
+ props = _objectWithoutProperties(_ref2, _excluded2);
1157
1157
 
1158
1158
  var [isOpen, setIsOpen] = React.useState(false);
1159
- var styles = useStyles$4();
1160
1159
  return /*#__PURE__*/jsxRuntime.jsx(VisibilityObserver, {
1161
- render: _ref2 => {
1160
+ render: _ref3 => {
1162
1161
  var {
1163
1162
  ref,
1164
1163
  visibility
1165
- } = _ref2;
1164
+ } = _ref3;
1166
1165
  var isTooltipEnabled = !!children && visibility === 'invisible';
1167
- return /*#__PURE__*/jsxRuntime.jsx(core.Tooltip, _objectSpread(_objectSpread({}, tooltipProps), {}, {
1166
+ return /*#__PURE__*/jsxRuntime.jsx(material.Tooltip, _objectSpread(_objectSpread({}, tooltipProps), {}, {
1168
1167
  enterDelay: 1000,
1169
1168
  title: title || '',
1170
1169
  disableFocusListener: true,
@@ -1175,17 +1174,16 @@ var OverflowText = /*#__PURE__*/React.forwardRef((_ref, rootRef) => {
1175
1174
  onClose: () => {
1176
1175
  setIsOpen(false);
1177
1176
  },
1178
- children: /*#__PURE__*/jsxRuntime.jsxs(core.Typography, _objectSpread(_objectSpread({}, props), {}, {
1177
+ children: /*#__PURE__*/jsxRuntime.jsxs(Root, _objectSpread(_objectSpread({}, props), {}, {
1179
1178
  ref: rootRef,
1180
1179
  noWrap: true,
1180
+ truncated: !disableUnderline && visibility === 'invisible',
1181
1181
  onClick: event => {
1182
1182
  setIsOpen(true);
1183
1183
  _onClick === null || _onClick === void 0 ? void 0 : _onClick(event);
1184
1184
  },
1185
- className: clsx(styles.root, className, !disableUnderline && visibility === 'invisible' && styles.truncated),
1186
- children: [children, !!children && /*#__PURE__*/jsxRuntime.jsx("span", {
1187
- ref: ref,
1188
- className: styles.sentinel
1185
+ children: [children, !!children && /*#__PURE__*/jsxRuntime.jsx(Sential, {
1186
+ ref: ref
1189
1187
  })]
1190
1188
  }))
1191
1189
  }));
@@ -1205,29 +1203,18 @@ function useUID(defaultID) {
1205
1203
  }
1206
1204
 
1207
1205
  var _excluded$9 = ["size"];
1208
-
1209
- function sizeVariant(theme, mobileSpacing, desktopSpacing) {
1206
+ var DescriptionListItemRoot = /*#__PURE__*/material.styled('div', {
1207
+ name: 'SD-DescriptionListItem',
1208
+ slot: 'Root'
1209
+ })({
1210
+ display: 'flex',
1211
+ alignItems: 'center'
1212
+ });
1213
+ var DescriptionListItemIcon = /*#__PURE__*/material.styled('div')(_ref => {
1214
+ var {
1215
+ theme
1216
+ } = _ref;
1210
1217
  return {
1211
- '& > $list, & > $item': {
1212
- '&:not(:last-child)': {
1213
- paddingBottom: theme.spacing(mobileSpacing),
1214
- [theme.breakpoints.up('sm')]: {
1215
- paddingBottom: theme.spacing(desktopSpacing)
1216
- }
1217
- }
1218
- }
1219
- };
1220
- }
1221
-
1222
- var useStyles$5 = /*#__PURE__*/styles.makeStyles(theme => ({
1223
- list: sizeVariant(theme, 2, 1),
1224
- listSmall: sizeVariant(theme, 1, 0.5),
1225
- listLarge: sizeVariant(theme, 3, 2),
1226
- item: {
1227
- display: 'flex',
1228
- alignItems: 'center'
1229
- },
1230
- icon: {
1231
1218
  display: 'inline-flex',
1232
1219
  marginRight: theme.spacing(1),
1233
1220
  '& > .MuiSvgIcon-root': {
@@ -1237,54 +1224,29 @@ var useStyles$5 = /*#__PURE__*/styles.makeStyles(theme => ({
1237
1224
  fontSize: theme.spacing(2)
1238
1225
  }
1239
1226
  }
1240
- }
1241
- }), {
1242
- name: 'SD-DescriptionList'
1243
- }); //
1244
- // DescriptionList
1245
- //
1246
-
1247
- var DescriptionList = /*#__PURE__*/React.forwardRef((_ref, ref) => {
1248
- var {
1249
- size
1250
- } = _ref,
1251
- props = _objectWithoutProperties(_ref, _excluded$9);
1252
-
1253
- var styles = useStyles$5();
1254
- return /*#__PURE__*/jsxRuntime.jsx("div", _objectSpread(_objectSpread({}, props), {}, {
1255
- ref: ref,
1256
- "data-size": size,
1257
- className: clsx(styles.list, {
1258
- 'small': styles.listSmall,
1259
- 'large': styles.listLarge
1260
- }[size])
1261
- }));
1227
+ };
1262
1228
  }); //
1263
1229
  // DescriptionListItem
1264
1230
  //
1265
1231
 
1266
- if (process.env.NODE_ENV !== "production") DescriptionList.displayName = "DescriptionList";
1267
1232
  var DescriptionListItem = /*#__PURE__*/React.forwardRef((_ref2, ref) => {
1268
1233
  var _ref3, _contentTypographyPro, _contentTypographyPro2;
1269
1234
 
1270
1235
  var {
1271
1236
  inset,
1272
- icon = inset ? /*#__PURE__*/jsxRuntime.jsx(core.SvgIcon, {}) : null,
1237
+ icon = inset ? /*#__PURE__*/jsxRuntime.jsx(material.SvgIcon, {}) : null,
1273
1238
  label,
1274
1239
  labelTypographyProps,
1275
1240
  content,
1276
1241
  contentTypographyProps,
1277
1242
  fallback
1278
1243
  } = _ref2;
1279
- var styles = useStyles$5();
1280
1244
  var labelID = useUID(labelTypographyProps === null || labelTypographyProps === void 0 ? void 0 : labelTypographyProps.id);
1281
1245
  var shouldRenderFallback = isEmptyReactNode(content);
1282
- return /*#__PURE__*/jsxRuntime.jsxs("div", {
1246
+ return /*#__PURE__*/jsxRuntime.jsxs(DescriptionListItemRoot, {
1283
1247
  ref: ref,
1284
- className: styles.item,
1285
1248
  "aria-labelledby": label != null ? labelID : undefined,
1286
- children: [!!icon && /*#__PURE__*/jsxRuntime.jsx("div", {
1287
- className: styles.icon,
1249
+ children: [!!icon && /*#__PURE__*/jsxRuntime.jsx(DescriptionListItemIcon, {
1288
1250
  children: icon
1289
1251
  }), /*#__PURE__*/jsxRuntime.jsxs(OverflowText, _objectSpread(_objectSpread({}, contentTypographyProps), {}, {
1290
1252
  component: "span",
@@ -1292,7 +1254,7 @@ var DescriptionListItem = /*#__PURE__*/React.forwardRef((_ref2, ref) => {
1292
1254
  TooltipProps: _objectSpread(_objectSpread({}, contentTypographyProps === null || contentTypographyProps === void 0 ? void 0 : contentTypographyProps.TooltipProps), {}, {
1293
1255
  title: (_ref3 = (_contentTypographyPro = contentTypographyProps === null || contentTypographyProps === void 0 ? void 0 : (_contentTypographyPro2 = contentTypographyProps.TooltipProps) === null || _contentTypographyPro2 === void 0 ? void 0 : _contentTypographyPro2.title) !== null && _contentTypographyPro !== void 0 ? _contentTypographyPro : content) !== null && _ref3 !== void 0 ? _ref3 : undefined
1294
1256
  }),
1295
- children: [label != null && /*#__PURE__*/jsxRuntime.jsx(core.Typography, _objectSpread(_objectSpread({}, labelTypographyProps), {}, {
1257
+ children: [label != null && /*#__PURE__*/jsxRuntime.jsx(material.Typography, _objectSpread(_objectSpread({}, labelTypographyProps), {}, {
1296
1258
  id: labelID,
1297
1259
  variant: "body2",
1298
1260
  component: "span",
@@ -1301,26 +1263,72 @@ var DescriptionListItem = /*#__PURE__*/React.forwardRef((_ref2, ref) => {
1301
1263
  })), label != null && ' ', !shouldRenderFallback ? content : fallback]
1302
1264
  }))]
1303
1265
  });
1304
- });
1266
+ }); //
1267
+ // DescriptionList
1268
+ //
1269
+
1305
1270
  if (process.env.NODE_ENV !== "production") DescriptionListItem.displayName = "DescriptionListItem";
1271
+ var DescriptionListRoot = /*#__PURE__*/material.styled('div', {
1272
+ name: 'SD-DescriptionList',
1273
+ slot: 'Root'
1274
+ })(_ref4 => {
1275
+ var {
1276
+ theme
1277
+ } = _ref4;
1278
+ return _objectSpread(_objectSpread({}, sizeVariant(theme, 2, 1)), {}, {
1279
+ '&[data-size="small"]': sizeVariant(theme, 1, 0.5),
1280
+ '&[data-size="large"]': sizeVariant(theme, 3, 2)
1281
+ });
1282
+ });
1306
1283
 
1307
- var _excluded$a = ["children", "className"];
1308
- var useStyles$6 = /*#__PURE__*/styles.makeStyles(theme => ({
1309
- appBar: {
1310
- '&&': {
1311
- bottom: 0,
1312
- top: 'auto',
1313
- borderLeft: 'none',
1314
- borderRight: 'none',
1315
- borderBottom: 'none',
1316
- transition: theme.transitions.create(['border-color']),
1317
- '&:not($appBarSticky)': {
1318
- borderTopColor: exports.Color.Transparent
1284
+ function sizeVariant(theme, mobileSpacing, desktopSpacing) {
1285
+ return {
1286
+ ["& > ".concat(DescriptionListRoot.toString(), ", & > ").concat(DescriptionListItemRoot.toString())]: {
1287
+ '&:not(:last-child)': {
1288
+ paddingBottom: theme.spacing(mobileSpacing),
1289
+ [theme.breakpoints.up('sm')]: {
1290
+ paddingBottom: theme.spacing(desktopSpacing)
1291
+ }
1319
1292
  }
1320
1293
  }
1321
- },
1322
- appBarSticky: {},
1323
- toolbar: {
1294
+ };
1295
+ }
1296
+
1297
+ var DescriptionList = /*#__PURE__*/React.forwardRef((_ref5, ref) => {
1298
+ var {
1299
+ size
1300
+ } = _ref5,
1301
+ props = _objectWithoutProperties(_ref5, _excluded$9);
1302
+
1303
+ return /*#__PURE__*/jsxRuntime.jsx(DescriptionListRoot, _objectSpread(_objectSpread({}, props), {}, {
1304
+ ref: ref,
1305
+ "data-size": size
1306
+ }));
1307
+ });
1308
+ if (process.env.NODE_ENV !== "production") DescriptionList.displayName = "DescriptionList";
1309
+
1310
+ var _excluded$a = ["children"];
1311
+ var StyledAppBar = /*#__PURE__*/material.styled(material.AppBar)(_ref => {
1312
+ var {
1313
+ theme
1314
+ } = _ref;
1315
+ return {
1316
+ bottom: 0,
1317
+ top: 'auto',
1318
+ borderLeft: 'none',
1319
+ borderRight: 'none',
1320
+ borderBottom: 'none',
1321
+ transition: theme.transitions.create(['border-color']),
1322
+ '&[data-sticky="false"]': {
1323
+ borderTopColor: exports.Color.Transparent
1324
+ }
1325
+ };
1326
+ });
1327
+ var StyledToolbar = /*#__PURE__*/material.styled(material.Toolbar)(_ref2 => {
1328
+ var {
1329
+ theme
1330
+ } = _ref2;
1331
+ return {
1324
1332
  '&.MuiToolbar-gutters': {
1325
1333
  paddingLeft: theme.spacing(3),
1326
1334
  paddingRight: theme.spacing(3),
@@ -1329,31 +1337,26 @@ var useStyles$6 = /*#__PURE__*/styles.makeStyles(theme => ({
1329
1337
  paddingRight: theme.spacing(4)
1330
1338
  }
1331
1339
  }
1332
- }
1333
- }), {
1334
- name: 'SD-DrawerActions'
1340
+ };
1335
1341
  });
1336
- var DrawerActions = /*#__PURE__*/React.forwardRef((_ref, appBarRef) => {
1342
+ var DrawerActions = /*#__PURE__*/React.forwardRef((_ref3, appBarRef) => {
1337
1343
  var {
1338
- children,
1339
- className
1340
- } = _ref,
1341
- props = _objectWithoutProperties(_ref, _excluded$a);
1344
+ children
1345
+ } = _ref3,
1346
+ props = _objectWithoutProperties(_ref3, _excluded$a);
1342
1347
 
1343
- var styles = useStyles$6();
1344
1348
  return /*#__PURE__*/jsxRuntime.jsx(VisibilityObserver, {
1345
- render: _ref2 => {
1349
+ render: _ref4 => {
1346
1350
  var {
1347
1351
  ref,
1348
1352
  visibility
1349
- } = _ref2;
1353
+ } = _ref4;
1350
1354
  return /*#__PURE__*/jsxRuntime.jsxs(jsxRuntime.Fragment, {
1351
- children: [/*#__PURE__*/jsxRuntime.jsx(core.AppBar, _objectSpread(_objectSpread({}, props), {}, {
1355
+ children: [/*#__PURE__*/jsxRuntime.jsx(StyledAppBar, _objectSpread(_objectSpread({}, props), {}, {
1352
1356
  ref: appBarRef,
1353
1357
  position: "sticky",
1354
- className: clsx(className, styles.appBar, visibility === 'invisible' && styles.appBarSticky),
1355
- children: /*#__PURE__*/jsxRuntime.jsx(core.Toolbar, {
1356
- className: styles.toolbar,
1358
+ "data-sticky": visibility === 'invisible',
1359
+ children: /*#__PURE__*/jsxRuntime.jsx(StyledToolbar, {
1357
1360
  children: children
1358
1361
  })
1359
1362
  })), /*#__PURE__*/jsxRuntime.jsx("div", {
@@ -1365,33 +1368,20 @@ var DrawerActions = /*#__PURE__*/React.forwardRef((_ref, appBarRef) => {
1365
1368
  });
1366
1369
  if (process.env.NODE_ENV !== "production") DrawerActions.displayName = "DrawerActions";
1367
1370
 
1368
- var _excluded$b = ["className"];
1369
- var useStyles$7 = /*#__PURE__*/styles.makeStyles(theme => ({
1370
- root: {
1371
+ var DrawerContent = /*#__PURE__*/material.styled('div', {
1372
+ name: 'SD-DrawerContent'
1373
+ })(_ref => {
1374
+ var {
1375
+ theme
1376
+ } = _ref;
1377
+ return {
1371
1378
  maxWidth: '100%',
1372
1379
  padding: theme.spacing(2, 3),
1373
1380
  [theme.breakpoints.up('md')]: {
1374
1381
  padding: theme.spacing(2, 4)
1375
1382
  }
1376
- }
1377
- }), {
1378
- name: 'SD-DrawerContent'
1379
- });
1380
- var DrawerContent = /*#__PURE__*/React.forwardRef((_ref, ref) => {
1381
- var {
1382
- className
1383
- } = _ref,
1384
- props = _objectWithoutProperties(_ref, _excluded$b);
1385
-
1386
- var styles = useStyles$7();
1387
- return /*#__PURE__*/jsxRuntime.jsx("div", _objectSpread(_objectSpread({}, props), {}, {
1388
- ref: ref,
1389
- className: clsx(styles.root, className)
1390
- }));
1383
+ };
1391
1384
  });
1392
- if (process.env.NODE_ENV !== "production") DrawerContent.displayName = "DrawerContent";
1393
-
1394
- var _excluded$c = ["className"];
1395
1385
 
1396
1386
  function listItemMixins(theme, space) {
1397
1387
  return {
@@ -1411,45 +1401,37 @@ function listItemMixins(theme, space) {
1411
1401
  };
1412
1402
  }
1413
1403
 
1414
- var useStyles$8 = /*#__PURE__*/styles.makeStyles(theme => ({
1415
- root: _objectSpread(_objectSpread({
1404
+ var DrawerList = /*#__PURE__*/material.styled(material.List)(_ref => {
1405
+ var {
1406
+ theme
1407
+ } = _ref;
1408
+ return _objectSpread(_objectSpread({
1416
1409
  maxWidth: '100%'
1417
1410
  }, listItemMixins(theme, 3)), {}, {
1418
1411
  [theme.breakpoints.up('md')]: _objectSpread({}, listItemMixins(theme, 4))
1419
- })
1420
- }), {
1421
- name: 'SD-DrawerList'
1422
- });
1423
- var DrawerList = /*#__PURE__*/React.forwardRef((_ref, ref) => {
1424
- var {
1425
- className
1426
- } = _ref,
1427
- props = _objectWithoutProperties(_ref, _excluded$c);
1428
-
1429
- var styles = useStyles$8();
1430
- return /*#__PURE__*/jsxRuntime.jsx(core.List, _objectSpread(_objectSpread({}, props), {}, {
1431
- ref: ref,
1432
- component: "div",
1433
- className: clsx(className, styles.root)
1434
- }));
1412
+ });
1435
1413
  });
1436
- if (process.env.NODE_ENV !== "production") DrawerList.displayName = "DrawerList";
1437
1414
 
1438
- var _excluded$d = ["title", "titleTypographyProps", "subtitle", "subtitleTypographyProps", "startAction", "endAction", "className"];
1439
- var useStyles$9 = /*#__PURE__*/styles.makeStyles(theme => ({
1440
- appBar: {
1441
- '&&': {
1442
- borderTop: 'none',
1443
- borderLeft: 'none',
1444
- borderRight: 'none',
1445
- transition: theme.transitions.create(['border-color']),
1446
- '&:not($appBarSticky)': {
1447
- borderBottomColor: exports.Color.Transparent
1448
- }
1415
+ var _excluded$b = ["title", "titleTypographyProps", "subtitle", "subtitleTypographyProps", "startAction", "endAction"];
1416
+ var StyledAppBar$1 = /*#__PURE__*/material.styled(material.AppBar)(_ref => {
1417
+ var {
1418
+ theme
1419
+ } = _ref;
1420
+ return {
1421
+ borderTop: 'none',
1422
+ borderLeft: 'none',
1423
+ borderRight: 'none',
1424
+ transition: theme.transitions.create(['border-color']),
1425
+ '&[data-sticky="false"]': {
1426
+ borderBottomColor: exports.Color.Transparent
1449
1427
  }
1450
- },
1451
- appBarSticky: {},
1452
- toolbar: {
1428
+ };
1429
+ });
1430
+ var StyledToolbar$1 = /*#__PURE__*/material.styled(material.Toolbar)(_ref2 => {
1431
+ var {
1432
+ theme
1433
+ } = _ref2;
1434
+ return {
1453
1435
  '&.MuiToolbar-gutters': {
1454
1436
  paddingLeft: theme.spacing(3),
1455
1437
  paddingRight: theme.spacing(3),
@@ -1458,75 +1440,78 @@ var useStyles$9 = /*#__PURE__*/styles.makeStyles(theme => ({
1458
1440
  paddingRight: theme.spacing(4)
1459
1441
  }
1460
1442
  }
1461
- },
1462
- startAction: {
1443
+ };
1444
+ });
1445
+ var StartAction = /*#__PURE__*/material.styled(material.Grid)(_ref3 => {
1446
+ var {
1447
+ theme
1448
+ } = _ref3;
1449
+ return {
1463
1450
  marginRight: theme.spacing(0.5),
1464
1451
  '& .MuiIconButton-edgeStart': {
1465
1452
  marginLeft: theme.spacing(-2)
1466
1453
  }
1467
- },
1468
- endAction: {
1454
+ };
1455
+ });
1456
+ var EndAction = /*#__PURE__*/material.styled(material.Grid)(_ref4 => {
1457
+ var {
1458
+ theme
1459
+ } = _ref4;
1460
+ return {
1469
1461
  marginLeft: theme.spacing(0.5),
1470
1462
  '& .MuiIconButton-edgeEnd': {
1471
1463
  marginRight: theme.spacing(-2)
1472
1464
  }
1473
- }
1474
- }), {
1475
- name: 'SD-DrawerTitle'
1465
+ };
1476
1466
  });
1477
- var DrawerTitle = /*#__PURE__*/React.forwardRef((_ref, appBarRef) => {
1467
+ var DrawerTitle = /*#__PURE__*/React.forwardRef((_ref5, appBarRef) => {
1478
1468
  var {
1479
1469
  title,
1480
1470
  titleTypographyProps,
1481
1471
  subtitle,
1482
1472
  subtitleTypographyProps,
1483
1473
  startAction,
1484
- endAction,
1485
- className
1486
- } = _ref,
1487
- props = _objectWithoutProperties(_ref, _excluded$d);
1474
+ endAction
1475
+ } = _ref5,
1476
+ props = _objectWithoutProperties(_ref5, _excluded$b);
1488
1477
 
1489
- var styles = useStyles$9();
1490
1478
  return /*#__PURE__*/jsxRuntime.jsx(VisibilityObserver, {
1491
- render: _ref2 => {
1479
+ render: _ref6 => {
1492
1480
  var {
1493
1481
  ref,
1494
1482
  visibility
1495
- } = _ref2;
1483
+ } = _ref6;
1496
1484
  return /*#__PURE__*/jsxRuntime.jsxs(jsxRuntime.Fragment, {
1497
1485
  children: [/*#__PURE__*/jsxRuntime.jsx("div", {
1498
1486
  ref: ref
1499
- }), /*#__PURE__*/jsxRuntime.jsx(core.AppBar, _objectSpread(_objectSpread({}, props), {}, {
1487
+ }), /*#__PURE__*/jsxRuntime.jsx(StyledAppBar$1, _objectSpread(_objectSpread({}, props), {}, {
1500
1488
  ref: appBarRef,
1501
1489
  position: "sticky",
1502
- className: clsx(styles.appBar, className, visibility === 'invisible' && styles.appBarSticky),
1503
- children: /*#__PURE__*/jsxRuntime.jsx(core.Toolbar, {
1504
- className: styles.toolbar,
1505
- children: /*#__PURE__*/jsxRuntime.jsxs(core.Grid, {
1490
+ "data-sticky": visibility === 'invisible',
1491
+ children: /*#__PURE__*/jsxRuntime.jsx(StyledToolbar$1, {
1492
+ children: /*#__PURE__*/jsxRuntime.jsxs(material.Grid, {
1506
1493
  container: true,
1507
1494
  alignItems: "center",
1508
- children: [!!startAction && /*#__PURE__*/jsxRuntime.jsx(core.Grid, {
1495
+ children: [!!startAction && /*#__PURE__*/jsxRuntime.jsx(StartAction, {
1509
1496
  item: true,
1510
- className: styles.startAction,
1511
1497
  children: startAction
1512
- }), /*#__PURE__*/jsxRuntime.jsxs(core.Grid, {
1498
+ }), /*#__PURE__*/jsxRuntime.jsxs(material.Grid, {
1513
1499
  item: true,
1514
1500
  xs: true,
1515
1501
  zeroMinWidth: true,
1516
- children: [/*#__PURE__*/jsxRuntime.jsx(core.Typography, _objectSpread(_objectSpread({
1502
+ children: [/*#__PURE__*/jsxRuntime.jsx(material.Typography, _objectSpread(_objectSpread({
1517
1503
  variant: "h3",
1518
1504
  noWrap: true
1519
1505
  }, titleTypographyProps), {}, {
1520
1506
  children: title
1521
- })), !!subtitle && /*#__PURE__*/jsxRuntime.jsx(core.Typography, _objectSpread(_objectSpread({
1507
+ })), !!subtitle && /*#__PURE__*/jsxRuntime.jsx(material.Typography, _objectSpread(_objectSpread({
1522
1508
  variant: "body2",
1523
1509
  noWrap: true
1524
1510
  }, subtitleTypographyProps), {}, {
1525
1511
  children: subtitle
1526
1512
  }))]
1527
- }), !!endAction && /*#__PURE__*/jsxRuntime.jsx(core.Grid, {
1513
+ }), !!endAction && /*#__PURE__*/jsxRuntime.jsx(EndAction, {
1528
1514
  item: true,
1529
- className: styles.endAction,
1530
1515
  children: endAction
1531
1516
  })]
1532
1517
  })
@@ -1538,7 +1523,7 @@ var DrawerTitle = /*#__PURE__*/React.forwardRef((_ref, appBarRef) => {
1538
1523
  });
1539
1524
  if (process.env.NODE_ENV !== "production") DrawerTitle.displayName = "DrawerTitle";
1540
1525
 
1541
- var _excluded$e = ["children", "alignItems"];
1526
+ var _excluded$c = ["children", "alignItems"];
1542
1527
  /**
1543
1528
  * @deprecated in favor of `Stack`.
1544
1529
  */
@@ -1548,16 +1533,16 @@ var GridStack = /*#__PURE__*/React.forwardRef((_ref, ref) => {
1548
1533
  children,
1549
1534
  alignItems = 'stretch'
1550
1535
  } = _ref,
1551
- props = _objectWithoutProperties(_ref, _excluded$e);
1536
+ props = _objectWithoutProperties(_ref, _excluded$c);
1552
1537
 
1553
1538
  var items = React.Children.toArray(children);
1554
- return /*#__PURE__*/jsxRuntime.jsx(core.Grid, _objectSpread(_objectSpread({}, props), {}, {
1539
+ return /*#__PURE__*/jsxRuntime.jsx(material.Grid, _objectSpread(_objectSpread({}, props), {}, {
1555
1540
  ref: ref,
1556
1541
  container: true,
1557
1542
  wrap: "nowrap",
1558
1543
  direction: "column",
1559
1544
  alignItems: alignItems,
1560
- children: items.map((item, idx) => /*#__PURE__*/jsxRuntime.jsx(core.Grid, {
1545
+ children: items.map((item, idx) => /*#__PURE__*/jsxRuntime.jsx(material.Grid, {
1561
1546
  item: true,
1562
1547
  zeroMinWidth: true,
1563
1548
  xs: alignItems === 'stretch' ? 12 : undefined,
@@ -1567,7 +1552,7 @@ var GridStack = /*#__PURE__*/React.forwardRef((_ref, ref) => {
1567
1552
  });
1568
1553
  if (process.env.NODE_ENV !== "production") GridStack.displayName = "GridStack";
1569
1554
 
1570
- var _excluded$f = ["children", "wrap", "justify", "alignItems"];
1555
+ var _excluded$d = ["children", "wrap", "justify", "alignItems"];
1571
1556
  /**
1572
1557
  * @deprecated in favor of `Inline` component.
1573
1558
  */
@@ -1579,16 +1564,16 @@ var InlineGrid = /*#__PURE__*/React.forwardRef((_ref, ref) => {
1579
1564
  justify = 'flex-start',
1580
1565
  alignItems = 'flex-start'
1581
1566
  } = _ref,
1582
- props = _objectWithoutProperties(_ref, _excluded$f);
1567
+ props = _objectWithoutProperties(_ref, _excluded$d);
1583
1568
 
1584
1569
  var items = React.Children.toArray(children);
1585
- return /*#__PURE__*/jsxRuntime.jsx(core.Grid, _objectSpread(_objectSpread({}, props), {}, {
1570
+ return /*#__PURE__*/jsxRuntime.jsx(material.Grid, _objectSpread(_objectSpread({}, props), {}, {
1586
1571
  ref: ref,
1587
1572
  wrap: wrap,
1588
1573
  container: true,
1589
- justify: justify,
1574
+ justifyContent: justify,
1590
1575
  alignItems: alignItems,
1591
- children: items.map((item, idx) => /*#__PURE__*/jsxRuntime.jsx(core.Grid, {
1576
+ children: items.map((item, idx) => /*#__PURE__*/jsxRuntime.jsx(material.Grid, {
1592
1577
  item: true,
1593
1578
  zeroMinWidth: true,
1594
1579
  children: item
@@ -1597,30 +1582,33 @@ var InlineGrid = /*#__PURE__*/React.forwardRef((_ref, ref) => {
1597
1582
  });
1598
1583
  if (process.env.NODE_ENV !== "production") InlineGrid.displayName = "InlineGrid";
1599
1584
 
1600
- var _excluded$g = ["size", "square", "classes", "children", "className", "CardContentProps"],
1601
- _excluded2$2 = ["content", "sizeLarge", "fullWidth"];
1602
- var useStyles$a = /*#__PURE__*/styles.makeStyles(theme => ({
1603
- root: {
1604
- '&$fullWidth': {
1585
+ var _excluded$e = ["size", "square", "classes", "children", "className", "CardContentProps"];
1586
+ var StyledCardContent = /*#__PURE__*/material.styled(material.CardContent)(_ref => {
1587
+ var {
1588
+ theme
1589
+ } = _ref;
1590
+ return {
1591
+ padding: theme.spacing(2)
1592
+ };
1593
+ });
1594
+ var StyledCard = /*#__PURE__*/material.styled(material.Card)(_ref2 => {
1595
+ var {
1596
+ theme
1597
+ } = _ref2;
1598
+ return {
1599
+ '&[data-full-width="true"]': {
1605
1600
  borderRadius: 0,
1606
1601
  borderLeftWidth: 0,
1607
1602
  borderRightWidth: 0
1608
- }
1609
- },
1610
- fullWidth: {},
1611
- sizeLarge: {},
1612
- content: {
1613
- padding: theme.spacing(2),
1614
- '$sizeLarge > &': {
1603
+ },
1604
+ ["&[data-size=\"large\"] > ".concat(StyledCardContent.toString())]: {
1615
1605
  [theme.breakpoints.up('sm')]: {
1616
1606
  padding: theme.spacing(3)
1617
1607
  }
1618
1608
  }
1619
- }
1620
- }), {
1621
- name: 'SD-InfoCard'
1609
+ };
1622
1610
  });
1623
- var InfoCard = /*#__PURE__*/React.forwardRef((_ref, _ref2) => {
1611
+ var InfoCard = /*#__PURE__*/React.forwardRef((_ref3, _ref4) => {
1624
1612
  var {
1625
1613
  size,
1626
1614
  square,
@@ -1628,31 +1616,20 @@ var InfoCard = /*#__PURE__*/React.forwardRef((_ref, _ref2) => {
1628
1616
  children,
1629
1617
  className,
1630
1618
  CardContentProps: cardContentProps = {}
1631
- } = _ref,
1632
- props = _objectWithoutProperties(_ref, _excluded$g);
1633
-
1634
- var _useStyles = useStyles$a({
1635
- classes
1636
- }),
1637
- {
1638
- content: contentClassName,
1639
- sizeLarge: sizeLargeClassName,
1640
- fullWidth: fullWidthClassName
1641
- } = _useStyles,
1642
- styles = _objectWithoutProperties(_useStyles, _excluded2$2);
1619
+ } = _ref3,
1620
+ props = _objectWithoutProperties(_ref3, _excluded$e);
1643
1621
 
1644
1622
  var [rootNode, setRootNode] = React.useState(null);
1645
1623
  var clientRect = rootNode === null || rootNode === void 0 ? void 0 : rootNode.getBoundingClientRect();
1646
1624
  var isFullWidth = (clientRect === null || clientRect === void 0 ? void 0 : clientRect.width) === window.innerWidth;
1647
- return /*#__PURE__*/jsxRuntime.jsx(core.Card, _objectSpread(_objectSpread({}, props), {}, {
1625
+ return /*#__PURE__*/jsxRuntime.jsx(StyledCard, _objectSpread(_objectSpread({}, props), {}, {
1648
1626
  ref: node => {
1649
- assignRef(_ref2, node);
1627
+ assignRef(_ref4, node);
1650
1628
  setRootNode(node);
1651
1629
  },
1652
- classes: styles,
1653
- className: clsx(className, isFullWidth && fullWidthClassName, size === 'large' && sizeLargeClassName),
1654
- children: /*#__PURE__*/jsxRuntime.jsx(core.CardContent, _objectSpread(_objectSpread({}, cardContentProps), {}, {
1655
- className: clsx(cardContentProps.className, contentClassName),
1630
+ "data-size": size,
1631
+ "data-full-width": isFullWidth,
1632
+ children: /*#__PURE__*/jsxRuntime.jsx(StyledCardContent, _objectSpread(_objectSpread({}, cardContentProps), {}, {
1656
1633
  children: children
1657
1634
  }))
1658
1635
  }));
@@ -1708,7 +1685,7 @@ var Inline = /*#__PURE__*/React.forwardRef((_ref2, ref) => {
1708
1685
  });
1709
1686
  if (process.env.NODE_ENV !== "production") Inline.displayName = "Inline";
1710
1687
 
1711
- var _excluded$h = ["label", "error", "checked", "onBlur", "onChange", "helperText", "FormControlLabelProps"];
1688
+ var _excluded$f = ["label", "error", "checked", "onBlur", "onChange", "helperText", "FormControlLabelProps"];
1712
1689
  var RadioField = /*#__PURE__*/React.forwardRef((_ref, ref) => {
1713
1690
  var {
1714
1691
  label,
@@ -1719,27 +1696,27 @@ var RadioField = /*#__PURE__*/React.forwardRef((_ref, ref) => {
1719
1696
  helperText,
1720
1697
  FormControlLabelProps: formControlLabelProps
1721
1698
  } = _ref,
1722
- props = _objectWithoutProperties(_ref, _excluded$h);
1699
+ props = _objectWithoutProperties(_ref, _excluded$f);
1723
1700
 
1724
- return /*#__PURE__*/jsxRuntime.jsxs(core.FormControl, {
1701
+ return /*#__PURE__*/jsxRuntime.jsxs(material.FormControl, {
1725
1702
  error: error,
1726
- children: [/*#__PURE__*/jsxRuntime.jsx(core.FormControlLabel, _objectSpread(_objectSpread({}, formControlLabelProps), {}, {
1703
+ children: [/*#__PURE__*/jsxRuntime.jsx(material.FormControlLabel, _objectSpread(_objectSpread({}, formControlLabelProps), {}, {
1727
1704
  label: label,
1728
1705
  checked: checked,
1729
1706
  onBlur: onBlur,
1730
1707
  onChange: onChange,
1731
- control: /*#__PURE__*/jsxRuntime.jsx(core.Radio, _objectSpread({
1708
+ control: /*#__PURE__*/jsxRuntime.jsx(material.Radio, _objectSpread({
1732
1709
  ref: ref,
1733
1710
  color: "primary"
1734
1711
  }, props))
1735
- })), helperText && /*#__PURE__*/jsxRuntime.jsx(core.FormHelperText, {
1712
+ })), helperText && /*#__PURE__*/jsxRuntime.jsx(material.FormHelperText, {
1736
1713
  children: helperText
1737
1714
  })]
1738
1715
  });
1739
1716
  });
1740
1717
  if (process.env.NODE_ENV !== "production") RadioField.displayName = "RadioField";
1741
1718
 
1742
- var _excluded$i = ["name", "value", "onChange", "RadioGroupProps", "label", "FormLabelProps", "helperText", "FormHelperTextProps", "children"];
1719
+ var _excluded$g = ["name", "value", "onChange", "RadioGroupProps", "label", "FormLabelProps", "helperText", "FormHelperTextProps", "children"];
1743
1720
  var RadioGroupField = /*#__PURE__*/React.forwardRef((_ref, ref) => {
1744
1721
  var {
1745
1722
  name,
@@ -1752,20 +1729,20 @@ var RadioGroupField = /*#__PURE__*/React.forwardRef((_ref, ref) => {
1752
1729
  FormHelperTextProps: formHelperTextProps,
1753
1730
  children
1754
1731
  } = _ref,
1755
- formControlProps = _objectWithoutProperties(_ref, _excluded$i);
1732
+ formControlProps = _objectWithoutProperties(_ref, _excluded$g);
1756
1733
 
1757
- return /*#__PURE__*/jsxRuntime.jsxs(core.FormControl, _objectSpread(_objectSpread({}, formControlProps), {}, {
1734
+ return /*#__PURE__*/jsxRuntime.jsxs(material.FormControl, _objectSpread(_objectSpread({}, formControlProps), {}, {
1758
1735
  hiddenLabel: !label,
1759
- children: [!!label && /*#__PURE__*/jsxRuntime.jsx(core.FormLabel, _objectSpread(_objectSpread({}, formLabelProps), {}, {
1736
+ children: [!!label && /*#__PURE__*/jsxRuntime.jsx(material.FormLabel, _objectSpread(_objectSpread({}, formLabelProps), {}, {
1760
1737
  children: label
1761
- })), /*#__PURE__*/jsxRuntime.jsx(core.RadioGroup, _objectSpread(_objectSpread({
1738
+ })), /*#__PURE__*/jsxRuntime.jsx(material.RadioGroup, _objectSpread(_objectSpread({
1762
1739
  ref: ref
1763
1740
  }, radioGroupProps), {}, {
1764
1741
  name: name,
1765
1742
  value: value,
1766
1743
  onChange: onChange,
1767
1744
  children: children
1768
- })), !!helperText && /*#__PURE__*/jsxRuntime.jsx(core.FormHelperText, _objectSpread(_objectSpread({}, formHelperTextProps), {}, {
1745
+ })), !!helperText && /*#__PURE__*/jsxRuntime.jsx(material.FormHelperText, _objectSpread(_objectSpread({}, formHelperTextProps), {}, {
1769
1746
  children: helperText
1770
1747
  }))]
1771
1748
  }));
@@ -1802,9 +1779,9 @@ function useMinBreakpoint(minBreakpoint) {
1802
1779
  return minBreakpointIDX < breakpointIDX;
1803
1780
  }
1804
1781
 
1805
- var _excluded$j = ["action", "children", "onClose", "className", "classes", "variant"],
1806
- _excluded2$3 = ["icon", "closeButton", "variantError", "variantSuccess"];
1807
- var useStyles$b = /*#__PURE__*/styles.makeStyles(theme => ({
1782
+ var _excluded$h = ["action", "children", "onClose", "className", "classes", "variant"],
1783
+ _excluded2$1 = ["icon", "closeButton", "variantError", "variantSuccess"];
1784
+ var useStyles$1 = /*#__PURE__*/styles.makeStyles(theme => ({
1808
1785
  root: {
1809
1786
  color: exports.Color.White,
1810
1787
  backgroundColor: exports.Color.Dark500,
@@ -1847,9 +1824,9 @@ var SnackbarContent = /*#__PURE__*/React.forwardRef((_ref, ref) => {
1847
1824
  classes,
1848
1825
  variant = 'default'
1849
1826
  } = _ref,
1850
- props = _objectWithoutProperties(_ref, _excluded$j);
1827
+ props = _objectWithoutProperties(_ref, _excluded$h);
1851
1828
 
1852
- var _useStyles = useStyles$b({
1829
+ var _useStyles = useStyles$1({
1853
1830
  classes
1854
1831
  }),
1855
1832
  {
@@ -1858,10 +1835,10 @@ var SnackbarContent = /*#__PURE__*/React.forwardRef((_ref, ref) => {
1858
1835
  variantError,
1859
1836
  variantSuccess
1860
1837
  } = _useStyles,
1861
- styles = _objectWithoutProperties(_useStyles, _excluded2$3);
1838
+ styles = _objectWithoutProperties(_useStyles, _excluded2$1);
1862
1839
 
1863
- var Icon = variant === 'error' ? icons.Warning : variant === 'success' ? icons.CheckCircle : undefined;
1864
- return /*#__PURE__*/jsxRuntime.jsx(core.SnackbarContent, _objectSpread(_objectSpread({}, props), {}, {
1840
+ var Icon = variant === 'error' ? iconsMaterial.Warning : variant === 'success' ? iconsMaterial.CheckCircle : undefined;
1841
+ return /*#__PURE__*/jsxRuntime.jsx(material.SnackbarContent, _objectSpread(_objectSpread({}, props), {}, {
1865
1842
  ref: ref,
1866
1843
  classes: styles,
1867
1844
  className: clsx(className, {
@@ -1873,21 +1850,21 @@ var SnackbarContent = /*#__PURE__*/React.forwardRef((_ref, ref) => {
1873
1850
  className: icon
1874
1851
  }), children]
1875
1852
  }),
1876
- action: !action && !onClose ? null : /*#__PURE__*/jsxRuntime.jsxs(core.Grid, {
1853
+ action: !action && !onClose ? null : /*#__PURE__*/jsxRuntime.jsxs(material.Grid, {
1877
1854
  container: true,
1878
1855
  spacing: 1,
1879
1856
  alignItems: "center",
1880
1857
  wrap: "nowrap",
1881
- children: [!!action && /*#__PURE__*/jsxRuntime.jsx(core.Grid, {
1858
+ children: [!!action && /*#__PURE__*/jsxRuntime.jsx(material.Grid, {
1882
1859
  item: true,
1883
1860
  children: action
1884
- }), onClose && /*#__PURE__*/jsxRuntime.jsx(core.Grid, {
1861
+ }), onClose && /*#__PURE__*/jsxRuntime.jsx(material.Grid, {
1885
1862
  item: true,
1886
- children: /*#__PURE__*/jsxRuntime.jsx(core.IconButton, {
1863
+ children: /*#__PURE__*/jsxRuntime.jsx(material.IconButton, {
1887
1864
  "aria-label": "close",
1888
1865
  onClick: onClose,
1889
1866
  className: closeButton,
1890
- children: /*#__PURE__*/jsxRuntime.jsx(icons.Close, {
1867
+ children: /*#__PURE__*/jsxRuntime.jsx(iconsMaterial.Close, {
1891
1868
  fontSize: "small"
1892
1869
  })
1893
1870
  })
@@ -1897,10 +1874,10 @@ var SnackbarContent = /*#__PURE__*/React.forwardRef((_ref, ref) => {
1897
1874
  });
1898
1875
  if (process.env.NODE_ENV !== "production") SnackbarContent.displayName = "SnackbarContent";
1899
1876
 
1900
- var _excluded$k = ["open", "action", "variant", "onClose", "children", "ContentProps", "hasCloseButton", "TransitionComponent"];
1877
+ var _excluded$i = ["open", "action", "variant", "onClose", "children", "ContentProps", "hasCloseButton", "TransitionComponent"];
1901
1878
 
1902
1879
  function SlideTransition(props) {
1903
- return /*#__PURE__*/jsxRuntime.jsx(core.Slide, _objectSpread(_objectSpread({}, props), {}, {
1880
+ return /*#__PURE__*/jsxRuntime.jsx(material.Slide, _objectSpread(_objectSpread({}, props), {}, {
1904
1881
  direction: "up"
1905
1882
  }));
1906
1883
  }
@@ -1916,7 +1893,7 @@ var Snackbar = /*#__PURE__*/React.forwardRef((_ref, ref) => {
1916
1893
  hasCloseButton = onClose != null,
1917
1894
  TransitionComponent = SlideTransition
1918
1895
  } = _ref,
1919
- props = _objectWithoutProperties(_ref, _excluded$k);
1896
+ props = _objectWithoutProperties(_ref, _excluded$i);
1920
1897
 
1921
1898
  function handleClose(reason) {
1922
1899
  if (reason !== 'clickaway') {
@@ -1924,8 +1901,8 @@ var Snackbar = /*#__PURE__*/React.forwardRef((_ref, ref) => {
1924
1901
  }
1925
1902
  }
1926
1903
 
1927
- return /*#__PURE__*/jsxRuntime.jsx(core.Portal, {
1928
- children: /*#__PURE__*/jsxRuntime.jsx(core.Snackbar, _objectSpread(_objectSpread({}, props), {}, {
1904
+ return /*#__PURE__*/jsxRuntime.jsx(material.Portal, {
1905
+ children: /*#__PURE__*/jsxRuntime.jsx(material.Snackbar, _objectSpread(_objectSpread({}, props), {}, {
1929
1906
  ref: ref,
1930
1907
  open: open,
1931
1908
  TransitionComponent: TransitionComponent,
@@ -1945,7 +1922,7 @@ var Snackbar = /*#__PURE__*/React.forwardRef((_ref, ref) => {
1945
1922
  });
1946
1923
  if (process.env.NODE_ENV !== "production") Snackbar.displayName = "Snackbar";
1947
1924
 
1948
- var _excluded$l = ["onClose", "variant", "key", "id", "autoHideDuration"];
1925
+ var _excluded$j = ["onClose", "variant", "key", "id", "autoHideDuration"];
1949
1926
 
1950
1927
  function warnContext() {
1951
1928
  // eslint-disable-next-line no-console
@@ -1991,7 +1968,7 @@ function SnackbarStackProvider(_ref2) {
1991
1968
  id = String(key),
1992
1969
  autoHideDuration = 5000
1993
1970
  } = _ref3,
1994
- props = _objectWithoutProperties(_ref3, _excluded$l);
1971
+ props = _objectWithoutProperties(_ref3, _excluded$j);
1995
1972
 
1996
1973
  function removeSnackbar() {
1997
1974
  setStack(prev => {
@@ -2088,8 +2065,8 @@ var Stack = /*#__PURE__*/React.forwardRef((_ref2, ref) => {
2088
2065
  });
2089
2066
  if (process.env.NODE_ENV !== "production") Stack.displayName = "Stack";
2090
2067
 
2091
- var _excluded$m = ["color", "variant", "children", "classes", "className", "noWrap", "fontWeight", "component"];
2092
- var useStyles$c = /*#__PURE__*/styles.makeStyles(theme => ({
2068
+ var _excluded$k = ["color", "variant", "children", "classes", "className", "noWrap", "fontWeight", "component"];
2069
+ var useStyles$2 = /*#__PURE__*/styles.makeStyles(theme => ({
2093
2070
  root: {
2094
2071
  maxWidth: '100%',
2095
2072
  alignItems: 'center',
@@ -2172,12 +2149,12 @@ var Tag = /*#__PURE__*/React.forwardRef((_ref, ref) => {
2172
2149
  fontWeight = 'bold',
2173
2150
  component = 'div'
2174
2151
  } = _ref,
2175
- props = _objectWithoutProperties(_ref, _excluded$m);
2152
+ props = _objectWithoutProperties(_ref, _excluded$k);
2176
2153
 
2177
- var styles = useStyles$c({
2154
+ var styles = useStyles$2({
2178
2155
  classes
2179
2156
  });
2180
- return /*#__PURE__*/jsxRuntime.jsx(core.Typography, _objectSpread(_objectSpread({}, props), {}, {
2157
+ return /*#__PURE__*/jsxRuntime.jsx(material.Typography, _objectSpread(_objectSpread({}, props), {}, {
2181
2158
  ref: ref,
2182
2159
  noWrap: noWrap,
2183
2160
  component: component,
@@ -2200,29 +2177,28 @@ var Tag = /*#__PURE__*/React.forwardRef((_ref, ref) => {
2200
2177
  if (process.env.NODE_ENV !== "production") Tag.displayName = "Tag";
2201
2178
 
2202
2179
  function overrideAppBar(theme) {
2203
- theme.props.MuiAppBar = {
2204
- elevation: 0,
2205
- color: 'inherit',
2206
- position: 'static'
2180
+ theme.components.MuiAppBar = {
2181
+ defaultProps: {
2182
+ elevation: 0,
2183
+ color: 'inherit',
2184
+ position: 'static'
2185
+ }
2207
2186
  };
2208
2187
  }
2209
2188
 
2210
2189
  function overrideAutocomplete(theme) {
2211
- var sm = theme.breakpoints.up('sm'); // Remove `Object.assign` after official release of `Autocomplete`.
2212
-
2213
- Object.assign(theme.props, {
2214
- MuiAutocomplete: {
2215
- popupIcon: /*#__PURE__*/jsxRuntime.jsx(core.SvgIcon, {
2190
+ var sm = theme.breakpoints.up('sm');
2191
+ theme.components.MuiAutocomplete = {
2192
+ defaultProps: {
2193
+ popupIcon: /*#__PURE__*/jsxRuntime.jsx(material.SvgIcon, {
2216
2194
  children: /*#__PURE__*/jsxRuntime.jsx("path", {
2217
2195
  d: "M12 16.5L6 9h12l-6 7.5z",
2218
2196
  fill: "currentColor"
2219
2197
  })
2220
2198
  })
2221
- }
2222
- });
2223
- Object.assign(theme.overrides, {
2224
- MuiAutocomplete: {
2225
- paper: _objectSpread({}, theme.typography.body2),
2199
+ },
2200
+ styleOverrides: {
2201
+ // paper: { ...theme.typography.body2 },
2226
2202
  tag: {
2227
2203
  margin: '4px',
2228
2204
  [sm]: {
@@ -2246,45 +2222,47 @@ function overrideAutocomplete(theme) {
2246
2222
  inputRoot: {
2247
2223
  '&[class*="MuiOutlinedInput-root"]': {
2248
2224
  padding: '6px 8px',
2249
- '& $input': {
2225
+ ["& .".concat(material.autocompleteClasses.input)]: {
2250
2226
  width: '144px',
2251
2227
  padding: '4px'
2252
2228
  },
2253
- '& $input:first-child': {
2254
- paddingLeft: undefined
2229
+ ["& .".concat(material.autocompleteClasses.input, ":first-child")]: {
2230
+ paddingLeft: 'unset'
2255
2231
  },
2256
- '& $endAdornment': {
2232
+ ["& .".concat(material.autocompleteClasses.endAdornment)]: {
2257
2233
  right: '12px'
2258
2234
  },
2259
2235
  [sm]: {
2260
2236
  padding: theme.spacing(0.5, 0.75),
2261
- '& $input': {
2237
+ ["& .".concat(material.autocompleteClasses.input)]: {
2262
2238
  padding: '2px'
2263
2239
  },
2264
- '& $endAdornment': {
2240
+ ["& .".concat(material.autocompleteClasses.endAdornment)]: {
2265
2241
  right: '8px'
2266
2242
  }
2267
2243
  }
2268
2244
  }
2269
2245
  }
2270
2246
  }
2271
- });
2247
+ };
2272
2248
  }
2273
2249
 
2274
2250
  function overrideAvatar(theme) {
2275
- theme.overrides.MuiAvatar = {
2276
- root: _objectSpread(_objectSpread({}, theme.typography.h5), {}, {
2277
- textTransform: 'uppercase',
2278
- width: theme.spacing(5),
2279
- height: theme.spacing(5),
2280
- [theme.breakpoints.up('sm')]: {
2281
- width: theme.spacing(4),
2282
- height: theme.spacing(4)
2251
+ theme.components.MuiAvatar = {
2252
+ styleOverrides: {
2253
+ root: _objectSpread(_objectSpread({}, theme.typography.h5), {}, {
2254
+ textTransform: 'uppercase',
2255
+ width: theme.spacing(5),
2256
+ height: theme.spacing(5),
2257
+ [theme.breakpoints.up('sm')]: {
2258
+ width: theme.spacing(4),
2259
+ height: theme.spacing(4)
2260
+ }
2261
+ }),
2262
+ colorDefault: {
2263
+ color: exports.Color.Dark300,
2264
+ backgroundColor: exports.Color.Silver300
2283
2265
  }
2284
- }),
2285
- colorDefault: {
2286
- color: exports.Color.Dark300,
2287
- backgroundColor: exports.Color.Silver300
2288
2266
  }
2289
2267
  };
2290
2268
  }
@@ -2297,9 +2275,11 @@ function outlineShadow() {
2297
2275
 
2298
2276
  function textVariant(text, outline, background, progress) {
2299
2277
  return {
2300
- color: text,
2301
- boxShadow: outlineShadow(),
2302
- backgroundColor: exports.Color.Transparent,
2278
+ '&': {
2279
+ color: text,
2280
+ boxShadow: outlineShadow(),
2281
+ backgroundColor: exports.Color.Transparent
2282
+ },
2303
2283
  '&:hover': {
2304
2284
  backgroundColor: background
2305
2285
  },
@@ -2310,13 +2290,13 @@ function textVariant(text, outline, background, progress) {
2310
2290
  backgroundColor: background,
2311
2291
  boxShadow: outlineShadow(2, outline)
2312
2292
  },
2313
- '&$disabled': {
2293
+ ["&.".concat(material.buttonClasses.disabled)]: {
2314
2294
  color: outline,
2315
2295
  boxShadow: outlineShadow(),
2316
- backgroundColor: exports.Color.Transparent
2317
- },
2318
- '&$disabled[aria-busy="true"]': {
2319
- color: progress
2296
+ backgroundColor: exports.Color.Transparent,
2297
+ ["& .".concat(lab.loadingButtonClasses.loadingIndicator)]: {
2298
+ color: progress
2299
+ }
2320
2300
  }
2321
2301
  };
2322
2302
  }
@@ -2330,11 +2310,11 @@ function outlinedVariant(staleText, staleBorder, disabledText, disabledBorder, a
2330
2310
  return {
2331
2311
  backgroundColor,
2332
2312
  color: staleText,
2333
- border: undefined,
2313
+ border: 0,
2334
2314
  boxShadow: outlinedBorder(staleBorder),
2335
2315
  '&:hover': {
2336
2316
  color: activeText,
2337
- border: undefined,
2317
+ border: 0,
2338
2318
  backgroundColor: activeBackground,
2339
2319
  boxShadow: outlinedBorder(activeBorder)
2340
2320
  },
@@ -2346,13 +2326,13 @@ function outlinedVariant(staleText, staleBorder, disabledText, disabledBorder, a
2346
2326
  '&:focus': {
2347
2327
  boxShadow: outlinedBorder(activeBorder, activeOutline)
2348
2328
  },
2349
- '&$disabled': {
2329
+ ["&.".concat(material.buttonClasses.disabled)]: {
2350
2330
  backgroundColor,
2351
2331
  color: disabledText,
2352
- boxShadow: outlinedBorder(disabledBorder)
2353
- },
2354
- '&$disabled[aria-busy="true"]': {
2355
- color: progress
2332
+ boxShadow: outlinedBorder(disabledBorder),
2333
+ ["& .".concat(lab.loadingButtonClasses.loadingIndicator)]: {
2334
+ color: progress
2335
+ }
2356
2336
  }
2357
2337
  };
2358
2338
  }
@@ -2371,229 +2351,236 @@ function containedVariant(text, backgroundColor, outline, active, disabledText,
2371
2351
  '&:focus': {
2372
2352
  boxShadow: outlineShadow(3, outline)
2373
2353
  },
2374
- '&$disabled': {
2354
+ ["&.".concat(material.buttonClasses.disabled)]: {
2375
2355
  color: disabledText,
2376
2356
  boxShadow: outlineShadow(),
2377
- backgroundColor: disabledBackground
2357
+ backgroundColor: disabledBackground,
2358
+ ["& .".concat(lab.loadingButtonClasses.loadingIndicator)]: {
2359
+ color: disabledText
2360
+ }
2378
2361
  }
2379
2362
  };
2380
2363
  }
2381
2364
 
2365
+ function sizeSmall(theme) {
2366
+ var sm = theme.breakpoints.up('sm');
2367
+ return _objectSpread(_objectSpread({}, theme.typography.button), {}, {
2368
+ padding: theme.spacing(0.5, 3),
2369
+ [sm]: {
2370
+ padding: theme.spacing(0.25, 2)
2371
+ }
2372
+ });
2373
+ }
2374
+
2375
+ function sizeLarge(theme) {
2376
+ var sm = theme.breakpoints.up('sm');
2377
+ return _objectSpread(_objectSpread({}, theme.typography.button), {}, {
2378
+ fontSize: '18px',
2379
+ lineHeight: '28px',
2380
+ padding: theme.spacing(1.75, 8),
2381
+ [sm]: {
2382
+ fontSize: '16px',
2383
+ lineHeight: '24px',
2384
+ padding: theme.spacing(1, 4)
2385
+ }
2386
+ });
2387
+ }
2388
+
2382
2389
  function overrideButton(theme) {
2383
2390
  var sm = theme.breakpoints.up('sm');
2384
- theme.props.MuiButton = {
2385
- color: 'primary',
2386
- variant: 'outlined',
2387
- disableFocusRipple: true
2388
- };
2389
- theme.overrides.MuiButton = {
2390
- root: {
2391
- color: undefined,
2392
- minWidth: theme.spacing(6),
2393
- transition: theme.transitions.create(['color', 'border', 'box-shadow', 'background-color']),
2394
- padding: theme.spacing(1.25, 3),
2395
- [sm]: {
2396
- padding: theme.spacing(0.75, 2)
2397
- },
2398
- '&:hover': {
2399
- backgroundColor: undefined,
2400
- '&$disabled': {
2401
- backgroundColor: undefined
2402
- },
2403
- '@media (hover: none)': {
2404
- backgroundColor: undefined
2405
- }
2406
- },
2407
- '&$disabled': {
2408
- color: undefined
2409
- },
2410
- '&[aria-busy="true"]': {
2411
- '& $label': {
2412
- visibility: 'hidden',
2413
- '& > [role="progressbar"]': {
2414
- position: 'absolute',
2415
- visibility: 'visible',
2416
- top: 'calc(50% - 0.5em)',
2417
- left: 'calc(50% - 0.5em)',
2418
- fontSize: theme.spacing(2),
2419
- '$sizeLarge &': {
2420
- fontSize: theme.spacing(3)
2421
- }
2422
- }
2391
+ theme.components.MuiLoadingButton = {
2392
+ defaultProps: {
2393
+ variant: 'outlined'
2394
+ },
2395
+ styleOverrides: {
2396
+ loadingIndicator: {
2397
+ color: 'inherit',
2398
+ fontSize: theme.spacing(2),
2399
+ [".".concat(material.buttonClasses.sizeLarge, " &")]: {
2400
+ fontSize: theme.spacing(3)
2423
2401
  }
2424
2402
  }
2425
- },
2426
- label: {
2427
- '& > .MuiSvgIcon-root': {
2428
- fontSize: '24px',
2403
+ }
2404
+ };
2405
+ theme.components.MuiButton = {
2406
+ defaultProps: {
2407
+ color: 'primary',
2408
+ variant: 'outlined',
2409
+ disableFocusRipple: true
2410
+ },
2411
+ styleOverrides: {
2412
+ root: {
2413
+ minWidth: theme.spacing(6),
2414
+ transition: theme.transitions.create(['color', 'border', 'box-shadow', 'background-color']),
2415
+ padding: theme.spacing(1.25, 3),
2429
2416
  [sm]: {
2430
- fontSize: '20px'
2417
+ padding: theme.spacing(0.75, 2)
2431
2418
  },
2432
- '$sizeLarge &': {
2433
- fontSize: '28px',
2434
- [sm]: {
2435
- fontSize: '24px'
2419
+ '&:hover': {
2420
+ backgroundColor: 'initial',
2421
+ ["&.".concat(material.buttonClasses.disabled)]: {
2422
+ backgroundColor: 'initial'
2423
+ },
2424
+ '@media (hover: none)': {
2425
+ backgroundColor: 'initial'
2436
2426
  }
2437
- }
2438
- }
2439
- },
2440
- sizeSmall: {
2441
- padding: theme.spacing(0.5, 3),
2442
- [sm]: {
2443
- padding: theme.spacing(0.25, 2)
2444
- }
2445
- },
2446
- sizeLarge: {
2447
- fontSize: '18px',
2448
- lineHeight: '28px',
2449
- padding: theme.spacing(1.75, 8),
2450
- [sm]: {
2451
- fontSize: '16px',
2452
- lineHeight: '24px',
2453
- padding: theme.spacing(1, 4)
2454
- }
2455
- },
2456
- text: {
2457
- padding: undefined,
2458
- '&[data-color="error"]': textVariant(exports.Color.Red300, exports.Color.Red100, exports.Color.Red50, exports.Color.Red200),
2459
- '&[data-color="success"]': textVariant(exports.Color.Green300, exports.Color.Green100, exports.Color.Green50, exports.Color.Green200),
2460
- '&[data-color="white"]': textVariant(exports.Color.White, exports.Color.White50, exports.Color.White10, exports.Color.White50)
2461
- },
2462
- textPrimary: textVariant(exports.Color.Blue300, exports.Color.Blue100, exports.Color.Blue50, exports.Color.Blue200),
2463
- textSizeSmall: {
2464
- padding: undefined,
2465
- fontSize: undefined
2466
- },
2467
- textSizeLarge: {
2468
- padding: undefined,
2469
- fontSize: undefined
2470
- },
2471
- outlined: {
2472
- border: undefined,
2473
- padding: undefined,
2474
- '&$disabled': {
2475
- border: undefined
2476
- },
2477
- '&[data-color="error"]': outlinedVariant(exports.Color.Red300, exports.Color.Red300, exports.Color.Red100, exports.Color.Red100, exports.Color.Red300, exports.Color.Red300, exports.Color.Red100, exports.Color.Red50, exports.Color.Red300, exports.Color.White),
2478
- '&[data-color="success"]': outlinedVariant(exports.Color.Green300, exports.Color.Green300, exports.Color.Green100, exports.Color.Green100, exports.Color.Green300, exports.Color.Green300, exports.Color.Green100, exports.Color.Green50, exports.Color.Green300, exports.Color.White),
2479
- '&[data-color="white"]': outlinedVariant(exports.Color.White, exports.Color.White50, exports.Color.White50, exports.Color.White40, exports.Color.White, exports.Color.White50, exports.Color.White40, exports.Color.White10, exports.Color.White50, exports.Color.Transparent)
2480
- },
2481
- outlinedPrimary: outlinedVariant(exports.Color.Dark500, exports.Color.Silver500, exports.Color.Silver500, exports.Color.Silver400, exports.Color.Blue300, exports.Color.Blue300, exports.Color.Blue100, exports.Color.Blue50, exports.Color.Dark200, exports.Color.White),
2482
- outlinedSizeSmall: {
2483
- padding: undefined,
2484
- fontSize: undefined
2485
- },
2486
- outlinedSizeLarge: {
2487
- padding: undefined,
2488
- fontSize: undefined
2489
- },
2490
- contained: {
2491
- boxShadow: undefined,
2492
- backgroundColor: undefined,
2493
- '&:hover': {
2494
- boxShadow: undefined,
2495
- backgroundColor: undefined,
2496
- '&$disabled': {
2497
- backgroundColor: undefined
2498
2427
  },
2499
- '@media (hover: none)': {
2500
- boxShadow: undefined,
2501
- backgroundColor: undefined
2428
+ ["&.".concat(material.buttonClasses.disabled)]: {
2429
+ color: 'initial'
2430
+ },
2431
+ '& > .MuiSvgIcon-root': {
2432
+ fontSize: '24px',
2433
+ [sm]: {
2434
+ fontSize: '20px'
2435
+ },
2436
+ [".".concat(material.buttonClasses.sizeLarge, "&")]: {
2437
+ fontSize: '28px',
2438
+ [sm]: {
2439
+ fontSize: '24px'
2440
+ }
2441
+ }
2502
2442
  }
2503
2443
  },
2504
- '&:active': {
2505
- boxShadow: undefined
2444
+ sizeSmall: sizeSmall(theme),
2445
+ sizeLarge: sizeLarge(theme),
2446
+ text: {
2447
+ padding: 'initial',
2448
+ '&[data-color="error"]': textVariant(exports.Color.Red300, exports.Color.Red100, exports.Color.Red50, exports.Color.Red200),
2449
+ '&[data-color="success"]': textVariant(exports.Color.Green300, exports.Color.Green100, exports.Color.Green50, exports.Color.Green200),
2450
+ '&[data-color="white"]': textVariant(exports.Color.White, exports.Color.White50, exports.Color.White10, exports.Color.White50)
2506
2451
  },
2507
- '&$focusVisible': {
2508
- boxShadow: undefined
2452
+ textPrimary: textVariant(exports.Color.Blue300, exports.Color.Blue100, exports.Color.Blue50, exports.Color.Blue200),
2453
+ textSizeSmall: sizeSmall(theme),
2454
+ textSizeLarge: sizeLarge(theme),
2455
+ outlined: {
2456
+ border: 'none',
2457
+ padding: 'initial',
2458
+ ["&.".concat(material.buttonClasses.disabled)]: {
2459
+ border: 'none'
2460
+ },
2461
+ '&[data-color="error"]': outlinedVariant(exports.Color.Red300, exports.Color.Red300, exports.Color.Red100, exports.Color.Red100, exports.Color.Red300, exports.Color.Red300, exports.Color.Red100, exports.Color.Red50, exports.Color.Red300, exports.Color.White),
2462
+ '&[data-color="success"]': outlinedVariant(exports.Color.Green300, exports.Color.Green300, exports.Color.Green100, exports.Color.Green100, exports.Color.Green300, exports.Color.Green300, exports.Color.Green100, exports.Color.Green50, exports.Color.Green300, exports.Color.White),
2463
+ '&[data-color="white"]': outlinedVariant(exports.Color.White, exports.Color.White50, exports.Color.White50, exports.Color.White40, exports.Color.White, exports.Color.White50, exports.Color.White40, exports.Color.White10, exports.Color.White50, exports.Color.Transparent)
2509
2464
  },
2510
- '&$disabled': {
2511
- color: undefined,
2512
- boxShadow: undefined,
2513
- backgroundColor: undefined
2465
+ outlinedPrimary: outlinedVariant(exports.Color.Dark500, exports.Color.Silver500, exports.Color.Silver500, exports.Color.Silver400, exports.Color.Blue300, exports.Color.Blue300, exports.Color.Blue100, exports.Color.Blue50, exports.Color.Dark200, exports.Color.White),
2466
+ outlinedSizeSmall: sizeSmall(theme),
2467
+ outlinedSizeLarge: sizeLarge(theme),
2468
+ contained: {
2469
+ boxShadow: 'none',
2470
+ backgroundColor: 'initial',
2471
+ '&:hover': {
2472
+ boxShadow: 'none',
2473
+ backgroundColor: 'initial',
2474
+ ["&.".concat(material.buttonClasses.disabled)]: {
2475
+ backgroundColor: 'none'
2476
+ },
2477
+ '@media (hover: none)': {
2478
+ boxShadow: 'none',
2479
+ backgroundColor: 'none'
2480
+ }
2481
+ },
2482
+ '&:active': {
2483
+ boxShadow: 'none'
2484
+ },
2485
+ ["&.".concat(material.buttonClasses.focusVisible)]: {
2486
+ boxShadow: 'none'
2487
+ },
2488
+ ["&.".concat(material.buttonClasses.disabled)]: {
2489
+ color: 'initial',
2490
+ boxShadow: 'none',
2491
+ backgroundColor: 'initial'
2492
+ },
2493
+ '&[data-color="error"]': containedVariant(exports.Color.White, exports.Color.Red300, exports.Color.Red100, exports.Color.Red500, exports.Color.White, exports.Color.Red100),
2494
+ '&[data-color="success"]': containedVariant(exports.Color.White, exports.Color.Green300, exports.Color.Green100, exports.Color.Green500, exports.Color.White, exports.Color.Green100),
2495
+ '&[data-color="white"]': containedVariant(exports.Color.White, exports.Color.White20, exports.Color.White40, exports.Color.White40, exports.Color.White50, exports.Color.White08)
2514
2496
  },
2515
- '&[data-color="error"]': containedVariant(exports.Color.White, exports.Color.Red300, exports.Color.Red100, exports.Color.Red500, exports.Color.White, exports.Color.Red100),
2516
- '&[data-color="success"]': containedVariant(exports.Color.White, exports.Color.Green300, exports.Color.Green100, exports.Color.Green500, exports.Color.White, exports.Color.Green100),
2517
- '&[data-color="white"]': containedVariant(exports.Color.White, exports.Color.White20, exports.Color.White40, exports.Color.White40, exports.Color.White50, exports.Color.White08)
2518
- },
2519
- containedPrimary: containedVariant(exports.Color.White, exports.Color.Blue300, exports.Color.Blue100, exports.Color.Blue500, exports.Color.White, exports.Color.Blue100),
2520
- containedSizeSmall: {
2521
- padding: undefined,
2522
- fontSize: undefined
2523
- },
2524
- containedSizeLarge: {
2525
- padding: undefined,
2526
- fontSize: undefined
2497
+ containedPrimary: containedVariant(exports.Color.White, exports.Color.Blue300, exports.Color.Blue100, exports.Color.Blue500, exports.Color.White, exports.Color.Blue100),
2498
+ containedSizeSmall: sizeSmall(theme),
2499
+ containedSizeLarge: sizeLarge(theme)
2527
2500
  }
2528
2501
  };
2529
2502
  }
2530
2503
 
2531
2504
  function overrideCard(theme) {
2532
- theme.props.MuiCard = {
2533
- variant: 'outlined'
2505
+ theme.components.MuiCard = {
2506
+ defaultProps: {
2507
+ variant: 'outlined'
2508
+ }
2534
2509
  };
2535
- theme.overrides.MuiCardContent = {
2536
- root: {
2537
- '&:last-child': {
2538
- paddingBottom: undefined
2510
+ theme.components.MuiCardContent = {
2511
+ styleOverrides: {
2512
+ root: {
2513
+ '&:last-child': {
2514
+ paddingBottom: '16px'
2515
+ }
2539
2516
  }
2540
2517
  }
2541
2518
  };
2542
2519
  }
2543
2520
 
2544
2521
  function overrideCheckbox(theme) {
2545
- theme.props.MuiCheckbox = {
2546
- color: 'primary',
2547
- icon: /*#__PURE__*/jsxRuntime.jsx(core.SvgIcon, {
2548
- children: /*#__PURE__*/jsxRuntime.jsx("rect", {
2549
- width: "17",
2550
- height: "17",
2551
- x: "3.5",
2552
- y: "3.5",
2553
- fill: exports.Color.White,
2554
- stroke: "currentColor",
2555
- rx: "1.5"
2522
+ theme.components.MuiCheckbox = {
2523
+ defaultProps: {
2524
+ color: 'primary',
2525
+ icon: /*#__PURE__*/jsxRuntime.jsx(material.SvgIcon, {
2526
+ children: /*#__PURE__*/jsxRuntime.jsx("rect", {
2527
+ width: "17",
2528
+ height: "17",
2529
+ x: "3.5",
2530
+ y: "3.5",
2531
+ fill: exports.Color.White,
2532
+ stroke: "currentColor",
2533
+ rx: "1.5"
2534
+ })
2535
+ }),
2536
+ checkedIcon: /*#__PURE__*/jsxRuntime.jsxs(material.SvgIcon, {
2537
+ children: [/*#__PURE__*/jsxRuntime.jsx("rect", {
2538
+ width: "18",
2539
+ height: "18",
2540
+ x: "3",
2541
+ y: "3",
2542
+ fill: "currentColor",
2543
+ rx: "2"
2544
+ }), /*#__PURE__*/jsxRuntime.jsx("path", {
2545
+ fill: exports.Color.White,
2546
+ d: "M15.73 8l-.63.63c-1.43 1.43-2.94 3.05-4.37 4.5l-1.9-1.57-.7-.57L7 12.38l.7.57 2.53 2.09.63.52.58-.58c1.6-1.62 3.35-3.5 4.93-5.08l.63-.63L15.73 8z"
2547
+ })]
2548
+ }),
2549
+ indeterminateIcon: /*#__PURE__*/jsxRuntime.jsxs(material.SvgIcon, {
2550
+ children: [/*#__PURE__*/jsxRuntime.jsx("rect", {
2551
+ width: "18",
2552
+ height: "18",
2553
+ x: "3",
2554
+ y: "3",
2555
+ fill: "currentIcon",
2556
+ rx: "2"
2557
+ }), /*#__PURE__*/jsxRuntime.jsx("path", {
2558
+ fill: exports.Color.White,
2559
+ d: "M7 11h10v2H7v-2z"
2560
+ })]
2556
2561
  })
2557
- }),
2558
- checkedIcon: /*#__PURE__*/jsxRuntime.jsxs(core.SvgIcon, {
2559
- children: [/*#__PURE__*/jsxRuntime.jsx("rect", {
2560
- width: "18",
2561
- height: "18",
2562
- x: "3",
2563
- y: "3",
2564
- fill: "currentColor",
2565
- rx: "2"
2566
- }), /*#__PURE__*/jsxRuntime.jsx("path", {
2567
- fill: exports.Color.White,
2568
- d: "M15.73 8l-.63.63c-1.43 1.43-2.94 3.05-4.37 4.5l-1.9-1.57-.7-.57L7 12.38l.7.57 2.53 2.09.63.52.58-.58c1.6-1.62 3.35-3.5 4.93-5.08l.63-.63L15.73 8z"
2569
- })]
2570
- }),
2571
- indeterminateIcon: /*#__PURE__*/jsxRuntime.jsxs(core.SvgIcon, {
2572
- children: [/*#__PURE__*/jsxRuntime.jsx("rect", {
2573
- width: "18",
2574
- height: "18",
2575
- x: "3",
2576
- y: "3",
2577
- fill: "currentIcon",
2578
- rx: "2"
2579
- }), /*#__PURE__*/jsxRuntime.jsx("path", {
2580
- fill: exports.Color.White,
2581
- d: "M7 11h10v2H7v-2z"
2582
- })]
2583
- })
2584
- };
2585
- theme.overrides.MuiCheckbox = {
2586
- root: {
2587
- color: exports.Color.Dark100,
2588
- marginTop: theme.spacing(-0.625),
2589
- marginBottom: theme.spacing(-0.625)
2590
2562
  },
2591
- colorPrimary: {
2592
- '&$checked$disabled': {
2593
- color: exports.Color.Silver500
2563
+ styleOverrides: {
2564
+ root: {
2565
+ color: exports.Color.Dark100,
2566
+ marginTop: theme.spacing(-0.625),
2567
+ marginBottom: theme.spacing(-0.625)
2594
2568
  },
2595
- '&:hover:not($checked)': {
2596
- color: exports.Color.Dark100
2569
+ indeterminate: {
2570
+ ["&:not(.".concat(material.checkboxClasses.checked, ")")]: {
2571
+ color: exports.Color.Dark100
2572
+ },
2573
+ ["&.".concat(material.checkboxClasses.disabled)]: {
2574
+ color: exports.Color.Silver400
2575
+ }
2576
+ },
2577
+ colorPrimary: {
2578
+ ["&.".concat(material.checkboxClasses.checked, ".").concat(material.checkboxClasses.disabled)]: {
2579
+ color: exports.Color.Silver500
2580
+ },
2581
+ ["&:hover:not(.".concat(material.checkboxClasses.checked, ")")]: {
2582
+ color: exports.Color.Dark100
2583
+ }
2597
2584
  }
2598
2585
  }
2599
2586
  };
@@ -2601,197 +2588,223 @@ function overrideCheckbox(theme) {
2601
2588
 
2602
2589
  function overrideChip(theme) {
2603
2590
  var sm = theme.breakpoints.up('sm');
2604
- theme.props.MuiChip = {
2605
- size: 'small',
2606
- deleteIcon: /*#__PURE__*/jsxRuntime.jsx("div", {
2607
- children: /*#__PURE__*/jsxRuntime.jsx(core.SvgIcon, {
2608
- children: /*#__PURE__*/jsxRuntime.jsx("path", {
2609
- fillRule: "evenodd",
2610
- clipRule: "evenodd",
2611
- d: "M13.239 12L17 8.239 15.761 7 12 10.761 8.239 7 7 8.239 10.761 12 7 15.761 8.239 17 12 13.239 15.761 17 17 15.761 13.239 12z",
2612
- fill: "currentColor"
2591
+ theme.components.MuiChip = {
2592
+ defaultProps: {
2593
+ size: 'small',
2594
+ deleteIcon: /*#__PURE__*/jsxRuntime.jsx("div", {
2595
+ children: /*#__PURE__*/jsxRuntime.jsx(material.SvgIcon, {
2596
+ children: /*#__PURE__*/jsxRuntime.jsx("path", {
2597
+ fillRule: "evenodd",
2598
+ clipRule: "evenodd",
2599
+ d: "M13.239 12L17 8.239 15.761 7 12 10.761 8.239 7 7 8.239 10.761 12 7 15.761 8.239 17 12 13.239 15.761 17 17 15.761 13.239 12z",
2600
+ fill: "currentColor"
2601
+ })
2613
2602
  })
2614
2603
  })
2615
- })
2616
- };
2617
- theme.overrides.MuiChip = {
2618
- root: _objectSpread(_objectSpread({}, theme.typography.body2), {}, {
2619
- color: undefined,
2620
- height: undefined,
2621
- borderRadius: 4,
2622
- backgroundColor: exports.Color.Silver200,
2623
- '&$disabled': {
2624
- opacity: undefined,
2625
- color: exports.Color.Dark100
2626
- }
2627
- }),
2628
- sizeSmall: {
2629
- height: undefined
2630
- },
2631
- labelSmall: {
2632
- paddingLeft: 6,
2633
- paddingRight: 6,
2634
- [sm]: {
2635
- paddingLeft: 4,
2636
- paddingRight: 4
2637
- }
2638
2604
  },
2639
- clickable: {
2640
- '&:hover, &:focus': {
2641
- backgroundColor: undefined
2605
+ styleOverrides: {
2606
+ root: _objectSpread(_objectSpread({}, theme.typography.body2), {}, {
2607
+ color: 'unset',
2608
+ height: 'unset',
2609
+ borderRadius: 4,
2610
+ backgroundColor: exports.Color.Silver200,
2611
+ ["&.".concat(material.chipClasses.disabled)]: {
2612
+ opacity: 1,
2613
+ color: exports.Color.Dark100
2614
+ }
2615
+ }),
2616
+ sizeSmall: {
2617
+ height: 'unset'
2642
2618
  },
2643
- '&:active': {
2644
- boxShadow: undefined
2619
+ labelSmall: {
2620
+ paddingLeft: 6,
2621
+ paddingRight: 6,
2622
+ [sm]: {
2623
+ paddingLeft: 4,
2624
+ paddingRight: 4
2625
+ }
2645
2626
  },
2646
- '&:focus': {
2647
- boxShadow: "0 0 0 2px ".concat(exports.Color.Silver300)
2627
+ clickable: {
2628
+ '&:hover, &:focus': {
2629
+ backgroundColor: exports.Color.Silver200
2630
+ },
2631
+ '&:active': {
2632
+ boxShadow: 'unset'
2633
+ },
2634
+ '&:focus': {
2635
+ boxShadow: "0 0 0 2px ".concat(exports.Color.Silver300)
2636
+ },
2637
+ '&:active, &:hover': {
2638
+ backgroundColor: exports.Color.Silver300
2639
+ }
2648
2640
  },
2649
- '&:active, &:hover': {
2650
- backgroundColor: exports.Color.Silver300
2651
- }
2652
- },
2653
- deletable: {
2654
- '&:focus': {
2655
- backgroundColor: undefined,
2656
- boxShadow: "0 0 0 2px ".concat(exports.Color.Silver300)
2657
- }
2658
- },
2659
- deleteIcon: {
2660
- width: undefined,
2661
- height: undefined,
2662
- display: 'flex',
2663
- transition: theme.transitions.create('background-color'),
2664
- '&:active, &:hover, &:focus': {
2641
+ deletable: {
2642
+ '&:focus': {
2643
+ backgroundColor: exports.Color.Silver200,
2644
+ boxShadow: "0 0 0 2px ".concat(exports.Color.Silver300)
2645
+ }
2646
+ },
2647
+ deleteIcon: {
2648
+ width: 'unset',
2649
+ height: 'unset',
2650
+ display: 'flex',
2651
+ fontSize: 14,
2652
+ transition: theme.transitions.create('background-color'),
2653
+ '&:active, &:hover, &:focus': {
2654
+ '& > svg': {
2655
+ backgroundColor: exports.Color.Silver400
2656
+ }
2657
+ },
2665
2658
  '& > svg': {
2666
- backgroundColor: exports.Color.Silver400
2659
+ borderRadius: '50%',
2660
+ color: exports.Color.Dark200,
2661
+ fontSize: '1em'
2667
2662
  }
2668
2663
  },
2669
- '& > svg': {
2670
- borderRadius: '50%',
2671
- color: exports.Color.Dark200,
2672
- fontSize: '1em'
2673
- }
2674
- },
2675
- deleteIconSmall: {
2676
- width: undefined,
2677
- height: undefined,
2678
- padding: theme.spacing(0.5),
2679
- marginLeft: theme.spacing(-0.5),
2680
- marginRight: theme.spacing(0.25),
2681
- [sm]: {
2682
- marginRight: 0
2683
- }
2684
- },
2685
- icon: {
2686
- color: exports.Color.Dark100,
2687
- fontSize: '1em',
2688
- marginRight: undefined
2689
- },
2690
- iconSmall: {
2691
- width: undefined,
2692
- height: undefined,
2693
- marginLeft: 8,
2694
- marginRight: undefined,
2695
- [sm]: {
2696
- marginLeft: 4
2664
+ deleteIconSmall: {
2665
+ width: 'unset',
2666
+ height: 'unset',
2667
+ padding: theme.spacing(0.5),
2668
+ marginLeft: theme.spacing(-0.5),
2669
+ marginRight: theme.spacing(0.25),
2670
+ [sm]: {
2671
+ marginRight: 0
2672
+ }
2673
+ },
2674
+ icon: {
2675
+ color: exports.Color.Dark100,
2676
+ fontSize: '1em',
2677
+ marginRight: 'unset'
2678
+ },
2679
+ iconSmall: {
2680
+ width: 'unset',
2681
+ height: 'unset',
2682
+ marginLeft: 8,
2683
+ marginRight: 'unset',
2684
+ [sm]: {
2685
+ marginLeft: 4
2686
+ }
2697
2687
  }
2698
2688
  }
2699
2689
  };
2700
2690
  }
2701
2691
 
2702
2692
  function overrideDialog(theme) {
2703
- theme.props.MuiDialogTitle = {
2704
- disableTypography: true
2705
- };
2706
- theme.overrides.MuiDialog = {
2707
- paper: {
2708
- margin: theme.spacing(3)
2709
- },
2710
- paperWidthXs: {
2711
- maxWidth: Math.max(theme.breakpoints.values.xs, 360),
2712
- '&$paperScrollBody': {
2713
- [theme.breakpoints.down(Math.max(theme.breakpoints.values.xs, 360) + 32 * 2)]: {
2714
- maxWidth: 'calc(100% - 64px)'
2693
+ theme.components.MuiDialog = {
2694
+ styleOverrides: {
2695
+ paper: {
2696
+ margin: theme.spacing(3)
2697
+ },
2698
+ paperWidthXs: {
2699
+ maxWidth: Math.max(theme.breakpoints.values.xs, 360),
2700
+ ["&.".concat(material.dialogClasses.paperScrollBody)]: {
2701
+ [theme.breakpoints.down(Math.max(theme.breakpoints.values.xs, 360) + 32 * 2)]: {
2702
+ maxWidth: 'calc(100% - 64px)'
2703
+ }
2715
2704
  }
2716
2705
  }
2717
2706
  }
2718
2707
  };
2719
- theme.overrides.MuiDialogTitle = {
2720
- root: _objectSpread({}, theme.typography.h3)
2708
+ theme.components.MuiDialogTitle = {
2709
+ defaultProps: {
2710
+ // @ts-expect-error DialogTitleProps has missing type def
2711
+ variant: 'h3'
2712
+ }
2721
2713
  };
2722
- theme.overrides.MuiDialogContent = {
2723
- root: {
2724
- padding: theme.spacing(0, 3)
2714
+ theme.components.MuiDialogContent = {
2715
+ styleOverrides: {
2716
+ root: {
2717
+ padding: theme.spacing(0, 3)
2718
+ }
2725
2719
  }
2726
2720
  };
2727
- theme.overrides.MuiDialogActions = {
2728
- root: {
2729
- padding: theme.spacing(3)
2730
- },
2731
- spacing: {
2732
- '& > :not(:first-child)': {
2733
- marginLeft: theme.spacing(2)
2721
+ theme.components.MuiDialogActions = {
2722
+ styleOverrides: {
2723
+ root: {
2724
+ padding: theme.spacing(3)
2725
+ },
2726
+ spacing: {
2727
+ '& > :not(:first-child)': {
2728
+ marginLeft: theme.spacing(2)
2729
+ }
2734
2730
  }
2735
2731
  }
2736
2732
  };
2737
2733
  }
2738
2734
 
2739
2735
  function overrideDrawer(theme) {
2740
- theme.props.MuiDrawer = {
2741
- anchor: 'right'
2742
- };
2743
- theme.overrides.MuiDrawer = {
2744
- paper: {
2745
- maxWidth: '100%',
2746
- minWidth: '100%',
2747
- [theme.breakpoints.up('sm')]: {
2748
- minWidth: theme.spacing(54),
2749
- maxWidth: theme.breakpoints.values.sm
2736
+ theme.components.MuiDrawer = {
2737
+ defaultProps: {
2738
+ anchor: 'right'
2739
+ },
2740
+ styleOverrides: {
2741
+ paper: {
2742
+ maxWidth: '100%',
2743
+ minWidth: '100%',
2744
+ [theme.breakpoints.up('sm')]: {
2745
+ minWidth: theme.spacing(54),
2746
+ maxWidth: theme.breakpoints.values.sm
2747
+ }
2750
2748
  }
2751
2749
  }
2752
2750
  };
2753
2751
  }
2754
2752
 
2755
2753
  function overrideIconButton(theme) {
2756
- theme.overrides.MuiIconButton = {
2757
- root: {
2758
- color: exports.Color.Dark100,
2759
- backgroundColor: exports.Color.Transparent,
2760
- transition: theme.transitions.create(['color', 'background-color'], {
2761
- duration: theme.transitions.duration.short
2762
- }),
2763
- '&:hover': {
2764
- backgroundColor: exports.Color.Transparent
2754
+ theme.components.MuiIconButton = {
2755
+ styleOverrides: {
2756
+ root: {
2757
+ // no selector for default color
2758
+ ["&:not(.".concat(material.iconButtonClasses.colorInherit, "):not(.").concat(material.iconButtonClasses.colorPrimary, "):not(.").concat(material.iconButtonClasses.colorSecondary, "):not(.").concat(material.iconButtonClasses.disabled, ")")]: {
2759
+ color: exports.Color.Dark100
2760
+ },
2761
+ backgroundColor: exports.Color.Transparent,
2762
+ transition: theme.transitions.create(['color', 'background-color'], {
2763
+ duration: theme.transitions.duration.short
2764
+ }),
2765
+ '&:hover': {
2766
+ backgroundColor: exports.Color.Transparent
2767
+ },
2768
+ '&:active': {
2769
+ color: exports.Color.Dark500
2770
+ },
2771
+ '&:hover ': {
2772
+ color: exports.Color.Dark300
2773
+ },
2774
+ '&:focus': {
2775
+ backgroundColor: exports.Color.Silver400
2776
+ },
2777
+ ["&.".concat(material.iconButtonClasses.disabled)]: {
2778
+ color: exports.Color.Silver500
2779
+ }
2765
2780
  },
2766
- '&:active': {
2767
- color: exports.Color.Dark500
2781
+ colorPrimary: {
2782
+ '&:active': {
2783
+ color: exports.Color.Blue500
2784
+ },
2785
+ '&:hover ': {
2786
+ color: exports.Color.Blue300
2787
+ },
2788
+ '&:focus': {
2789
+ backgroundColor: exports.Color.Blue50
2790
+ }
2768
2791
  },
2769
- '&:hover ': {
2770
- color: exports.Color.Dark300
2792
+ edgeEnd: {
2793
+ marginRight: theme.spacing(-1)
2771
2794
  },
2772
- '&:focus': {
2773
- backgroundColor: exports.Color.Silver400
2795
+ edgeStart: {
2796
+ marginLeft: theme.spacing(-1)
2774
2797
  },
2775
- '&$disabled': {
2776
- color: exports.Color.Silver500
2777
- }
2778
- },
2779
- colorPrimary: {
2780
- '&:active': {
2781
- color: exports.Color.Blue500
2798
+ sizeSmall: {
2799
+ padding: 3,
2800
+ fontSize: theme.typography.pxToRem(18)
2782
2801
  },
2783
- '&:hover ': {
2784
- color: exports.Color.Blue300
2802
+ sizeMedium: {
2803
+ padding: 12,
2804
+ fontSize: theme.typography.pxToRem(24)
2785
2805
  },
2786
- '&:focus': {
2787
- backgroundColor: exports.Color.Blue50
2806
+ sizeLarge: {// todo declare large size
2788
2807
  }
2789
- },
2790
- edgeEnd: {
2791
- marginRight: theme.spacing(-1)
2792
- },
2793
- edgeStart: {
2794
- marginLeft: theme.spacing(-1)
2795
2808
  }
2796
2809
  };
2797
2810
  }
@@ -2801,350 +2814,389 @@ function line(color) {
2801
2814
  }
2802
2815
 
2803
2816
  function overrideLink(theme) {
2804
- theme.props.MuiLink = {
2805
- underline: 'none',
2806
- color: 'textPrimary'
2807
- };
2808
- theme.overrides.MuiLink = {
2809
- root: {
2810
- backgroundSize: '100% 1px',
2811
- backgroundRepeat: 'repeat-x',
2812
- backgroundPosition: '0 100%',
2813
- backgroundColor: exports.Color.Transparent,
2814
- '&:focus': {
2815
- outline: 'none'
2816
- },
2817
- '&:hover, &:active': {
2818
- backgroundImage: line('currentColor')
2817
+ theme.components.MuiLink = {
2818
+ defaultProps: {
2819
+ underline: 'none',
2820
+ color: 'textPrimary'
2821
+ },
2822
+ styleOverrides: {
2823
+ root: {
2824
+ backgroundSize: '100% 1px',
2825
+ backgroundRepeat: 'repeat-x',
2826
+ backgroundPosition: '0 100%',
2827
+ backgroundColor: exports.Color.Transparent,
2828
+ '&:focus': {
2829
+ outline: 'none'
2830
+ },
2831
+ '&:hover, &:active': {
2832
+ backgroundImage: line('currentColor')
2833
+ }
2819
2834
  },
2820
- '&.MuiTypography-colorTextPrimary': {
2835
+ // @ts-expect-error type def need in patch-package
2836
+ colorTextPrimary: {
2821
2837
  backgroundImage: line(exports.Color.Silver500),
2822
2838
  '&:focus, &:hover, &:active': {
2823
2839
  color: exports.Color.Blue300,
2824
2840
  backgroundImage: line(exports.Color.Blue300)
2825
2841
  }
2842
+ },
2843
+ button: {
2844
+ // Reset button styles.
2845
+ backgroundColor: 'unset',
2846
+ // Override browser defaults.
2847
+ fontSize: 'inherit',
2848
+ textAlign: 'inherit',
2849
+ lineHeight: 'inherit',
2850
+ userSelect: 'inherit',
2851
+ verticalAlign: 'inherit'
2826
2852
  }
2827
- },
2828
- button: {
2829
- // Reset button styles.
2830
- backgroundColor: undefined,
2831
- // Override browser defaults.
2832
- fontSize: 'inherit',
2833
- textAlign: 'inherit',
2834
- lineHeight: 'inherit',
2835
- userSelect: 'inherit',
2836
- verticalAlign: 'inherit'
2837
2853
  }
2838
2854
  };
2839
2855
  }
2840
2856
 
2841
2857
  function overrideList(theme) {
2842
- theme.overrides.MuiListItem = {
2843
- root: {
2844
- '&$selected, &$selected:hover': {
2845
- backgroundColor: exports.Color.Blue50
2846
- },
2847
- '& .MuiTouchRipple-root': {
2848
- color: exports.Color.Blue100
2858
+ theme.components.MuiListItem = {
2859
+ styleOverrides: {
2860
+ root: {
2861
+ ["&.".concat(material.listItemClasses.selected, ", &.").concat(material.listItemClasses.selected, ":hover")]: {
2862
+ backgroundColor: exports.Color.Blue50
2863
+ },
2864
+ '& .MuiTouchRipple-root': {
2865
+ color: exports.Color.Blue100
2866
+ }
2849
2867
  }
2850
2868
  }
2851
2869
  };
2852
2870
  }
2853
2871
 
2854
2872
  function overrideMenu(theme) {
2855
- theme.props.MuiMenu = {
2856
- getContentAnchorEl: null,
2857
- anchorOrigin: {
2858
- vertical: 'bottom',
2859
- horizontal: 'left'
2860
- },
2861
- transformOrigin: {
2862
- vertical: 'top',
2863
- horizontal: 'left'
2873
+ theme.components.MuiMenu = {
2874
+ defaultProps: {
2875
+ anchorOrigin: {
2876
+ vertical: 'bottom',
2877
+ horizontal: 'left'
2878
+ },
2879
+ transformOrigin: {
2880
+ vertical: 'top',
2881
+ horizontal: 'left'
2882
+ }
2864
2883
  }
2865
2884
  };
2866
- theme.overrides.MuiMenuItem = {
2867
- root: _objectSpread(_objectSpread({}, theme.typography.body2), {}, {
2868
- paddingTop: theme.spacing(1),
2869
- paddingBottom: theme.spacing(1)
2870
- })
2885
+ theme.components.MuiMenuItem = {
2886
+ styleOverrides: {
2887
+ root: _objectSpread(_objectSpread({}, theme.typography.body2), {}, {
2888
+ paddingTop: theme.spacing(1),
2889
+ paddingBottom: theme.spacing(1),
2890
+ '& .MuiTouchRipple-root': {
2891
+ color: exports.Color.Blue100
2892
+ },
2893
+ ["&.".concat(material.menuItemClasses.selected, ", &.").concat(material.menuItemClasses.selected, ":hover")]: {
2894
+ backgroundColor: exports.Color.Blue50,
2895
+ ["&.".concat(material.menuItemClasses.focusVisible)]: {
2896
+ backgroundColor: exports.Color.Blue50
2897
+ }
2898
+ }
2899
+ })
2900
+ }
2871
2901
  };
2872
2902
  }
2873
2903
 
2874
2904
  function overridePagination(theme) {
2875
- var props = {};
2876
- var overrides = {
2877
- root: {
2878
- color: exports.Color.Dark400
2879
- },
2880
- page: {
2881
- '&:hover': {
2882
- backgroundColor: exports.Color.Silver200
2883
- },
2884
- '&$focusVisible': {
2885
- borderRadius: 4,
2886
- backgroundColor: exports.Color.White,
2887
- border: "1px solid ".concat(exports.Color.Blue100)
2905
+ theme.components.MuiPaginationItem = {
2906
+ styleOverrides: {
2907
+ root: {
2908
+ color: exports.Color.Dark400
2888
2909
  },
2889
- '&$selected': {
2890
- backgroundColor: exports.Color.Silver400,
2891
- '&:hover, &$focusVisible': {
2892
- backgroundColor: exports.Color.Silver400
2910
+ page: {
2911
+ '&:hover': {
2912
+ backgroundColor: exports.Color.Silver200
2893
2913
  },
2894
- '&$disabled': {
2895
- color: exports.Color.Dark100,
2896
- backgroundColor: exports.Color.Silver400
2914
+ ["&.".concat(material.paginationItemClasses.focusVisible)]: {
2915
+ borderRadius: 4,
2916
+ backgroundColor: exports.Color.White,
2917
+ border: "1px solid ".concat(exports.Color.Blue100)
2918
+ },
2919
+ ["&.".concat(material.paginationItemClasses.selected)]: {
2920
+ backgroundColor: exports.Color.Silver400,
2921
+ ["&:hover, &.".concat(material.paginationItemClasses.focusVisible)]: {
2922
+ backgroundColor: exports.Color.Silver400
2923
+ },
2924
+ ["&.".concat(material.paginationItemClasses.disabled)]: {
2925
+ color: exports.Color.Dark100,
2926
+ backgroundColor: exports.Color.Silver400
2927
+ }
2928
+ },
2929
+ ["&.".concat(material.paginationItemClasses.disabled)]: {
2930
+ opacity: 1,
2931
+ color: exports.Color.Dark100
2897
2932
  }
2898
- },
2899
- '&$disabled': {
2900
- opacity: undefined,
2901
- color: exports.Color.Dark100
2902
2933
  }
2903
2934
  }
2904
- }; // Remove `Object.assign` after official release of `PaginationItem`.
2905
-
2906
- Object.assign(theme.props, {
2907
- MuiPaginationItem: props
2908
- });
2909
- Object.assign(theme.overrides, {
2910
- MuiPaginationItem: overrides
2911
- });
2935
+ };
2912
2936
  }
2913
2937
 
2914
2938
  function overridePaper(theme) {
2915
- theme.props.MuiPaper = {
2916
- elevation: 0
2917
- };
2918
- theme.overrides.MuiPaper = {
2919
- elevation0: {
2920
- border: "1px solid ".concat(exports.Color.Silver400)
2939
+ theme.components.MuiPaper = {
2940
+ defaultProps: {
2941
+ elevation: 0
2942
+ },
2943
+ styleOverrides: {
2944
+ elevation0: {
2945
+ border: "1px solid ".concat(exports.Color.Silver400)
2946
+ }
2921
2947
  }
2922
2948
  };
2923
2949
  }
2924
2950
 
2925
2951
  function overrideRadio(theme) {
2926
- theme.props.MuiRadio = {
2927
- color: 'primary',
2928
- icon: /*#__PURE__*/jsxRuntime.jsx(core.SvgIcon, {
2929
- children: /*#__PURE__*/jsxRuntime.jsx("circle", {
2930
- cx: "12",
2931
- cy: "12",
2932
- r: "8.5",
2933
- fill: exports.Color.White,
2934
- stroke: "currentColor"
2952
+ theme.components.MuiRadio = {
2953
+ defaultProps: {
2954
+ color: 'primary',
2955
+ icon: /*#__PURE__*/jsxRuntime.jsx(material.SvgIcon, {
2956
+ children: /*#__PURE__*/jsxRuntime.jsx("circle", {
2957
+ cx: "12",
2958
+ cy: "12",
2959
+ r: "8.5",
2960
+ fill: exports.Color.White,
2961
+ stroke: "currentColor"
2962
+ })
2963
+ }),
2964
+ checkedIcon: /*#__PURE__*/jsxRuntime.jsxs(material.SvgIcon, {
2965
+ children: [/*#__PURE__*/jsxRuntime.jsx("circle", {
2966
+ cx: "12",
2967
+ cy: "12",
2968
+ r: "8.5",
2969
+ fill: "currentColor",
2970
+ stroke: "currentColor"
2971
+ }), /*#__PURE__*/jsxRuntime.jsx("circle", {
2972
+ cx: "12",
2973
+ cy: "12",
2974
+ r: "4",
2975
+ fill: exports.Color.White
2976
+ })]
2935
2977
  })
2936
- }),
2937
- checkedIcon: /*#__PURE__*/jsxRuntime.jsxs(core.SvgIcon, {
2938
- children: [/*#__PURE__*/jsxRuntime.jsx("circle", {
2939
- cx: "12",
2940
- cy: "12",
2941
- r: "8.5",
2942
- fill: "currentColor",
2943
- stroke: "currentColor"
2944
- }), /*#__PURE__*/jsxRuntime.jsx("circle", {
2945
- cx: "12",
2946
- cy: "12",
2947
- r: "4",
2948
- fill: exports.Color.White
2949
- })]
2950
- })
2951
- };
2952
- theme.overrides.MuiRadio = {
2953
- root: {
2954
- color: exports.Color.Dark100,
2955
- marginTop: theme.spacing(-0.625),
2956
- marginBottom: theme.spacing(-0.625)
2957
2978
  },
2958
- colorPrimary: {
2959
- '&$checked$disabled': {
2960
- color: exports.Color.Silver500
2979
+ styleOverrides: {
2980
+ root: {
2981
+ color: exports.Color.Dark100,
2982
+ marginTop: theme.spacing(-0.625),
2983
+ marginBottom: theme.spacing(-0.625)
2961
2984
  },
2962
- '&:hover:not($checked)': {
2963
- color: exports.Color.Dark100
2985
+ colorPrimary: {
2986
+ ["&.".concat(material.radioClasses.disabled, ".").concat(material.radioClasses.checked)]: {
2987
+ color: exports.Color.Silver500
2988
+ },
2989
+ ["&:hover:not(.".concat(material.radioClasses.checked, ")")]: {
2990
+ color: exports.Color.Dark100
2991
+ }
2964
2992
  }
2965
2993
  }
2966
2994
  };
2967
2995
  }
2968
2996
 
2969
2997
  function overrideSnackbar(theme) {
2970
- theme.overrides.MuiSnackbar = {
2971
- anchorOriginBottomCenter: {
2972
- left: 0,
2973
- right: 0,
2974
- bottom: 0
2998
+ theme.components.MuiSnackbar = {
2999
+ defaultProps: {
3000
+ anchorOrigin: {
3001
+ vertical: 'bottom',
3002
+ horizontal: 'center'
3003
+ }
3004
+ },
3005
+ styleOverrides: {
3006
+ anchorOriginBottomCenter: {
3007
+ left: 0,
3008
+ right: 0,
3009
+ bottom: 0
3010
+ }
2975
3011
  }
2976
3012
  };
2977
- theme.overrides.MuiSnackbarContent = {
2978
- root: {
2979
- width: '100%',
2980
- borderRadius: 0,
2981
- minHeight: theme.spacing(7.5),
2982
- [theme.breakpoints.up('sm')]: {
2983
- width: theme.spacing(54),
2984
- maxWidth: theme.spacing(54),
2985
- borderRadius: theme.spacing(0.5)
3013
+ theme.components.MuiSnackbarContent = {
3014
+ styleOverrides: {
3015
+ root: {
3016
+ width: '100%',
3017
+ borderRadius: 0,
3018
+ minHeight: theme.spacing(7.5),
3019
+ [theme.breakpoints.up('sm')]: {
3020
+ width: theme.spacing(54),
3021
+ maxWidth: theme.spacing(54),
3022
+ borderRadius: theme.spacing(0.5)
3023
+ }
3024
+ },
3025
+ message: {
3026
+ flex: 1,
3027
+ display: 'flex'
2986
3028
  }
2987
- },
2988
- message: {
2989
- flex: 1,
2990
- display: 'flex'
2991
3029
  }
2992
3030
  };
2993
3031
  }
2994
3032
 
2995
3033
  function overrideSvgIcon(theme) {
2996
3034
  var sm = theme.breakpoints.up('sm');
2997
- theme.overrides.MuiSvgIcon = {
2998
- root: {
2999
- display: 'inherit',
3000
- fontSize: 'var(--mui-svg-icon-size, 32px)',
3001
- [sm]: {
3002
- fontSize: 'var(--mui-svg-icon-size, 24px)'
3003
- }
3004
- },
3005
- fontSizeSmall: {
3006
- fontSize: 'var(--mui-svg-icon-size, 24px)',
3007
- [sm]: {
3008
- fontSize: 'var(--mui-svg-icon-size, 16px)'
3035
+ theme.components.MuiSvgIcon = {
3036
+ styleOverrides: {
3037
+ root: {
3038
+ display: 'inherit',
3039
+ fontSize: 'var(--mui-svg-icon-size, 32px)',
3040
+ [sm]: {
3041
+ fontSize: 'var(--mui-svg-icon-size, 24px)'
3042
+ }
3043
+ },
3044
+ fontSizeInherit: {
3045
+ fontSize: 'inherit',
3046
+ [sm]: {
3047
+ fontSize: 'inherit'
3048
+ }
3049
+ },
3050
+ fontSizeSmall: {
3051
+ fontSize: 'var(--mui-svg-icon-size, 24px)',
3052
+ [sm]: {
3053
+ fontSize: 'var(--mui-svg-icon-size, 16px)'
3054
+ }
3055
+ },
3056
+ fontSizeLarge: {
3057
+ '&': {
3058
+ fontSize: 'var(--mui-svg-icon-size, 32px)'
3059
+ }
3060
+ },
3061
+ colorAction: {
3062
+ color: exports.Color.Dark100
3009
3063
  }
3010
- },
3011
- fontSizeLarge: {
3012
- fontSize: 'var(--mui-svg-icon-size, 32px)'
3013
- },
3014
- colorAction: {
3015
- color: exports.Color.Dark100
3016
3064
  }
3017
3065
  };
3018
3066
  }
3019
3067
 
3020
3068
  function overrideSwitch(theme) {
3021
3069
  var sm = theme.breakpoints.up('sm');
3022
- theme.props.MuiSwitch = {
3023
- color: 'primary',
3024
- disableRipple: true,
3025
- disableFocusRipple: true
3026
- };
3027
- theme.overrides.MuiSwitch = {
3028
- root: {
3029
- width: theme.spacing(9.5),
3030
- height: theme.spacing(5.5),
3031
- padding: theme.spacing(0.75, 1.5),
3032
- [sm]: {
3033
- width: theme.spacing(8),
3034
- height: theme.spacing(4),
3035
- padding: theme.spacing(0.5, 1.5)
3036
- }
3037
- },
3038
- track: {
3039
- opacity: undefined,
3040
- boxShadow: "0 0 0 0 ".concat(exports.Color.Transparent),
3041
- transition: theme.transitions.create(['box-shadow', 'background-color'], {
3042
- duration: theme.transitions.duration.shortest
3043
- }),
3044
- borderRadius: theme.spacing(2),
3045
- [sm]: {
3046
- borderRadius: theme.spacing(1.625)
3047
- }
3048
- },
3049
- thumb: {
3050
- color: exports.Color.White,
3051
- boxShadow: undefined,
3052
- width: theme.spacing(3),
3053
- height: theme.spacing(3),
3054
- [sm]: {
3055
- width: theme.spacing(2),
3056
- height: theme.spacing(2)
3057
- }
3058
- },
3059
- switchBase: {
3060
- left: theme.spacing(1),
3061
- padding: theme.spacing(1.25, 1),
3062
- [sm]: {
3063
- padding: theme.spacing(1)
3070
+ theme.components.MuiSwitch = {
3071
+ defaultProps: {
3072
+ color: 'primary',
3073
+ disableRipple: true,
3074
+ disableFocusRipple: true
3075
+ },
3076
+ styleOverrides: {
3077
+ root: {
3078
+ width: theme.spacing(9.5),
3079
+ height: theme.spacing(5.5),
3080
+ padding: theme.spacing(0.75, 1.5),
3081
+ [sm]: {
3082
+ width: theme.spacing(8),
3083
+ height: theme.spacing(4),
3084
+ padding: theme.spacing(0.5, 1.5)
3085
+ }
3064
3086
  },
3065
- '&$checked': {
3066
- transform: "translateX(".concat(theme.spacing(2.5), "px)"),
3087
+ track: {
3088
+ opacity: 1,
3089
+ boxShadow: "0 0 0 0 ".concat(exports.Color.Transparent),
3090
+ transition: theme.transitions.create(['box-shadow', 'background-color'], {
3091
+ duration: theme.transitions.duration.shortest
3092
+ }),
3093
+ borderRadius: theme.spacing(2),
3067
3094
  [sm]: {
3068
- transform: "translateX(".concat(theme.spacing(2), "px)")
3095
+ borderRadius: theme.spacing(1.625)
3069
3096
  }
3070
3097
  },
3071
- '&$checked + $track': {
3072
- opacity: undefined
3098
+ thumb: {
3099
+ color: exports.Color.White,
3100
+ boxShadow: 'none',
3101
+ width: theme.spacing(3),
3102
+ height: theme.spacing(3),
3103
+ [sm]: {
3104
+ width: theme.spacing(2),
3105
+ height: theme.spacing(2)
3106
+ }
3073
3107
  },
3074
- '&$disabled + $track': {
3075
- opacity: undefined
3076
- }
3077
- },
3078
- colorPrimary: {
3079
- '&$checked': {
3080
- color: undefined,
3081
- '&:hover': {
3082
- backgroundColor: undefined,
3083
- '& + $track': {
3084
- backgroundColor: exports.Color.Blue400
3108
+ switchBase: {
3109
+ left: theme.spacing(1),
3110
+ padding: theme.spacing(1.25, 1),
3111
+ [sm]: {
3112
+ padding: theme.spacing(1)
3113
+ },
3114
+ ["&.".concat(material.switchClasses.checked)]: {
3115
+ transform: "translateX(".concat(theme.spacing(2.5), ")"),
3116
+ [sm]: {
3117
+ transform: "translateX(".concat(theme.spacing(2), ")")
3085
3118
  }
3119
+ },
3120
+ ["&.".concat(material.switchClasses.checked, " + .").concat(material.switchClasses.track)]: {
3121
+ opacity: 1
3122
+ },
3123
+ ["&.".concat(material.switchClasses.disabled, " + .").concat(material.switchClasses.track)]: {
3124
+ opacity: 1
3086
3125
  }
3087
3126
  },
3088
- '& + $track': {
3089
- backgroundColor: exports.Color.Silver500
3090
- },
3091
- '&$disabled + $track': {
3092
- backgroundColor: exports.Color.Silver300
3093
- },
3094
- '&$checked$disabled + $track': {
3095
- backgroundColor: exports.Color.Blue100
3096
- },
3097
- '&:hover + $track': {
3098
- backgroundColor: exports.Color.Dark100
3099
- },
3100
- '&.Mui-focusVisible + $track': {
3101
- boxShadow: "0 0 0 3px ".concat(exports.Color.Blue100)
3127
+ colorPrimary: {
3128
+ ["&.".concat(material.switchClasses.checked)]: {
3129
+ '&:hover': {
3130
+ ["& + .".concat(material.switchClasses.track)]: {
3131
+ backgroundColor: exports.Color.Blue400
3132
+ }
3133
+ }
3134
+ },
3135
+ ["& + .".concat(material.switchClasses.track)]: {
3136
+ backgroundColor: exports.Color.Silver500
3137
+ },
3138
+ ["&.".concat(material.switchClasses.disabled, " + .").concat(material.switchClasses.track)]: {
3139
+ backgroundColor: exports.Color.Silver300
3140
+ },
3141
+ ["&.".concat(material.switchClasses.checked, ".").concat(material.switchClasses.disabled, " + .").concat(material.switchClasses.track)]: {
3142
+ backgroundColor: exports.Color.Blue100
3143
+ },
3144
+ ["&:hover + .".concat(material.switchClasses.track)]: {
3145
+ backgroundColor: exports.Color.Dark100
3146
+ },
3147
+ ["&.Mui-focusVisible + .".concat(material.switchClasses.track)]: {
3148
+ boxShadow: "0 0 0 3px ".concat(exports.Color.Blue100)
3149
+ }
3102
3150
  }
3103
3151
  }
3104
3152
  };
3105
3153
  }
3106
3154
 
3107
3155
  function overrideTabs(theme) {
3108
- theme.props.MuiTabs = {
3109
- variant: 'scrollable',
3110
- textColor: 'primary',
3111
- indicatorColor: 'primary'
3112
- };
3113
- theme.overrides.MuiTabs = {
3114
- root: {
3115
- minHeight: theme.spacing(6)
3116
- },
3117
- scrollButtons: {
3118
- opacity: 1,
3119
- color: exports.Color.Dark100,
3120
- width: theme.spacing(4),
3121
- transition: theme.transitions.create('opacity', {
3122
- duration: theme.transitions.duration.short
3123
- })
3156
+ theme.components.MuiTabs = {
3157
+ defaultProps: {
3158
+ variant: 'scrollable',
3159
+ textColor: 'primary',
3160
+ indicatorColor: 'primary'
3161
+ },
3162
+ styleOverrides: {
3163
+ root: {
3164
+ minHeight: theme.spacing(6)
3165
+ },
3166
+ scrollButtons: {
3167
+ opacity: 1,
3168
+ color: exports.Color.Dark100,
3169
+ width: theme.spacing(4),
3170
+ transition: theme.transitions.create('opacity', {
3171
+ duration: theme.transitions.duration.short
3172
+ })
3173
+ }
3124
3174
  }
3125
3175
  };
3126
- theme.overrides.MuiTab = {
3127
- root: _objectSpread(_objectSpread({}, theme.typography.body2), {}, {
3128
- minHeight: theme.spacing(6),
3129
- transition: theme.transitions.create(['color'], {
3130
- duration: theme.transitions.duration.short
3176
+ theme.components.MuiTab = {
3177
+ styleOverrides: {
3178
+ root: _objectSpread(_objectSpread({}, theme.typography.body2), {}, {
3179
+ minHeight: theme.spacing(6),
3180
+ transition: theme.transitions.create(['color'], {
3181
+ duration: theme.transitions.duration.short
3182
+ }),
3183
+ [theme.breakpoints.up('sm')]: {
3184
+ minWidth: 'unset',
3185
+ fontSize: 'unset',
3186
+ padding: theme.spacing(0.75, 3)
3187
+ }
3131
3188
  }),
3132
- [theme.breakpoints.up('sm')]: {
3133
- minWidth: undefined,
3134
- fontSize: undefined,
3135
- padding: theme.spacing(0.75, 3)
3136
- }
3137
- }),
3138
- textColorPrimary: {
3139
- color: exports.Color.Dark500,
3140
- '&:hover, &:focus': {
3141
- color: exports.Color.Blue300
3189
+ textColorPrimary: {
3190
+ color: exports.Color.Dark500,
3191
+ '&:hover, &:focus': {
3192
+ color: exports.Color.Blue300
3193
+ }
3142
3194
  }
3143
3195
  }
3144
3196
  };
3145
3197
  }
3146
3198
 
3147
- var SelectIcon = /*#__PURE__*/React.forwardRef((props, ref) => /*#__PURE__*/jsxRuntime.jsx(core.SvgIcon, _objectSpread(_objectSpread({
3199
+ var SelectIcon = /*#__PURE__*/React.forwardRef((props, ref) => /*#__PURE__*/jsxRuntime.jsx(material.SvgIcon, _objectSpread(_objectSpread({
3148
3200
  ref: ref
3149
3201
  }, props), {}, {
3150
3202
  children: /*#__PURE__*/jsxRuntime.jsx("path", {
@@ -3155,223 +3207,248 @@ var SelectIcon = /*#__PURE__*/React.forwardRef((props, ref) => /*#__PURE__*/jsxR
3155
3207
  if (process.env.NODE_ENV !== "production") SelectIcon.displayName = "SelectIcon";
3156
3208
  function overrideTextField(theme) {
3157
3209
  var sm = theme.breakpoints.up('sm');
3158
- theme.props.MuiTextField = {
3159
- minRows: 4,
3160
- maxRows: 4,
3161
- variant: 'outlined'
3210
+ theme.components.MuiTextField = {
3211
+ defaultProps: {
3212
+ minRows: 4,
3213
+ maxRows: 4,
3214
+ variant: 'outlined'
3215
+ }
3162
3216
  };
3163
- theme.overrides.MuiFormLabel = {
3164
- root: _objectSpread(_objectSpread({}, theme.typography.body2), {}, {
3165
- color: exports.Color.Dark400,
3166
- '&$error': {
3167
- color: undefined
3168
- },
3169
- '&$focused': {
3170
- color: undefined
3171
- },
3172
- '&$disabled': {
3173
- color: undefined
3174
- }
3175
- })
3217
+ theme.components.MuiFormLabel = {
3218
+ styleOverrides: {
3219
+ root: _objectSpread(_objectSpread({}, theme.typography.body2), {}, {
3220
+ color: exports.Color.Dark400,
3221
+ ["&.".concat(material.formLabelClasses.error)]: {
3222
+ color: exports.Color.Dark400
3223
+ },
3224
+ ["&.".concat(material.formLabelClasses.focused)]: {
3225
+ color: exports.Color.Dark400
3226
+ },
3227
+ ["&.".concat(material.formLabelClasses.disabled)]: {
3228
+ color: exports.Color.Dark400
3229
+ }
3230
+ })
3231
+ }
3176
3232
  };
3177
- theme.overrides.MuiInputBase = {
3178
- root: _objectSpread(_objectSpread({}, theme.typography.body2), {}, {
3179
- '&$disabled': {
3180
- backgroundColor: exports.Color.Silver100
3181
- }
3182
- }),
3183
- input: {
3184
- textOverflow: 'ellipsis',
3185
- height: theme.spacing(3),
3186
- [sm]: {
3187
- height: theme.spacing(2.5)
3233
+ theme.components.MuiInputBase = {
3234
+ styleOverrides: {
3235
+ root: _objectSpread(_objectSpread({}, theme.typography.body2), {}, {
3236
+ ["&.".concat(material.inputBaseClasses.disabled)]: {
3237
+ backgroundColor: exports.Color.Silver100
3238
+ }
3239
+ }),
3240
+ input: {
3241
+ textOverflow: 'ellipsis',
3242
+ height: theme.spacing(3),
3243
+ [sm]: {
3244
+ height: theme.spacing(2.5)
3245
+ }
3246
+ },
3247
+ inputMultiline: {
3248
+ resize: 'vertical'
3188
3249
  }
3189
- },
3190
- inputMultiline: {
3191
- resize: 'vertical'
3192
3250
  }
3193
3251
  };
3194
- theme.props.MuiInputLabel = {
3195
- shrink: true
3196
- };
3197
- theme.overrides.MuiInputLabel = {
3198
- root: {
3199
- marginBottom: theme.spacing(0.5),
3200
- transformOrigin: undefined
3201
- },
3202
- formControl: {
3203
- top: undefined,
3204
- left: undefined,
3205
- position: undefined,
3206
- transform: undefined
3207
- },
3208
- shrink: {
3209
- transform: undefined,
3210
- transformOrigin: undefined
3211
- },
3212
- outlined: {
3213
- zIndex: undefined,
3214
- transform: undefined,
3215
- pointerEvents: undefined,
3216
- '&$shrink': {
3217
- transform: undefined
3252
+ theme.components.MuiInputLabel = {
3253
+ defaultProps: {
3254
+ shrink: true
3255
+ },
3256
+ styleOverrides: {
3257
+ root: {
3258
+ marginBottom: theme.spacing(0.5),
3259
+ transformOrigin: 'unset'
3260
+ },
3261
+ formControl: {
3262
+ top: 'unset',
3263
+ left: 'unset',
3264
+ position: 'unset',
3265
+ transform: 'unset'
3266
+ },
3267
+ shrink: {
3268
+ transform: 'unset',
3269
+ transformOrigin: 'unset'
3270
+ },
3271
+ outlined: {
3272
+ zIndex: 'unset',
3273
+ transform: 'unset',
3274
+ pointerEvents: 'unset'
3218
3275
  }
3219
3276
  }
3220
3277
  };
3221
- theme.props.MuiOutlinedInput = {
3222
- notched: false
3223
- };
3224
- theme.overrides.MuiOutlinedInput = {
3225
- root: {
3226
- '&:hover $notchedOutline': {
3227
- borderColor: undefined
3228
- }
3229
- },
3230
- input: {
3231
- padding: theme.spacing(1.25, 1.5),
3232
- [sm]: {
3278
+ theme.components.MuiOutlinedInput = {
3279
+ defaultProps: {
3280
+ notched: false
3281
+ },
3282
+ styleOverrides: {
3283
+ root: {
3284
+ ["&:hover .".concat(material.outlinedInputClasses.notchedOutline)]: {
3285
+ borderColor: exports.Color.Silver500
3286
+ }
3287
+ },
3288
+ input: {
3289
+ padding: theme.spacing(1.25, 1.5),
3290
+ [sm]: {
3291
+ padding: theme.spacing(0.75, 1)
3292
+ },
3293
+ '&.MuiInputBase-inputAdornedStart': {
3294
+ paddingLeft: 0
3295
+ },
3296
+ '&.MuiInputBase-inputAdornedEnd': {
3297
+ paddingRight: 0
3298
+ }
3299
+ },
3300
+ inputMultiline: {
3301
+ padding: 0,
3302
+ [sm]: {
3303
+ padding: 0
3304
+ }
3305
+ },
3306
+ multiline: {
3233
3307
  padding: theme.spacing(0.75, 1)
3234
- }
3235
- },
3236
- multiline: {
3237
- padding: theme.spacing(0.75, 1)
3238
- },
3239
- adornedStart: {
3240
- paddingLeft: theme.spacing(1)
3241
- },
3242
- adornedEnd: {
3243
- paddingRight: theme.spacing(1)
3244
- },
3245
- notchedOutline: {
3246
- top: 0,
3247
- borderColor: exports.Color.Silver500,
3248
- '& legend': {
3249
- display: 'none'
3308
+ },
3309
+ adornedStart: {
3310
+ paddingLeft: theme.spacing(1)
3311
+ },
3312
+ adornedEnd: {
3313
+ paddingRight: theme.spacing(1)
3314
+ },
3315
+ notchedOutline: {
3316
+ top: 0,
3317
+ borderColor: exports.Color.Silver500,
3318
+ '& legend': {
3319
+ display: 'none'
3320
+ }
3250
3321
  }
3251
3322
  }
3252
3323
  };
3253
- theme.props.MuiSelect = {
3254
- IconComponent: SelectIcon
3255
- };
3256
- theme.overrides.MuiSelect = {
3257
- icon: {
3258
- top: 'calc(50% - 0.5em)',
3259
- '$disabled &': {
3260
- color: exports.Color.Dark100
3324
+ theme.components.MuiSelect = {
3325
+ defaultProps: {
3326
+ IconComponent: SelectIcon
3327
+ },
3328
+ styleOverrides: {
3329
+ icon: {
3330
+ top: 'calc(50% - 0.5em)',
3331
+ '$disabled &': {
3332
+ color: exports.Color.Dark100
3333
+ },
3334
+ fontSize: theme.spacing(3),
3335
+ [sm]: {
3336
+ fontSize: theme.spacing(2)
3337
+ }
3261
3338
  },
3262
- fontSize: theme.spacing(3),
3263
- [sm]: {
3264
- fontSize: theme.spacing(2)
3265
- }
3266
- },
3267
- iconOutlined: {
3268
- right: theme.spacing(1.5),
3269
- [sm]: {
3270
- right: theme.spacing(1)
3271
- }
3272
- },
3273
- select: {
3274
- '&:focus': {
3275
- backgroundColor: undefined
3276
- }
3277
- },
3278
- selectMenu: {
3279
- '&&': {
3339
+ iconOutlined: {
3340
+ right: theme.spacing(1.5),
3341
+ [sm]: {
3342
+ right: theme.spacing(1)
3343
+ }
3344
+ },
3345
+ select: {
3280
3346
  paddingRight: theme.spacing(4.5),
3281
3347
  [sm]: {
3282
3348
  right: theme.spacing(4)
3349
+ },
3350
+ '&:focus': {
3351
+ backgroundColor: 'unset'
3283
3352
  }
3284
3353
  }
3285
3354
  }
3286
3355
  };
3287
- theme.overrides.MuiInputAdornment = {
3288
- root: {
3289
- '& .MuiSvgIcon-root:not(.MuiSvgIcon-fontSizeSmall)': {
3290
- fontSize: theme.spacing(3),
3291
- [sm]: {
3292
- fontSize: theme.spacing(2.5)
3356
+ theme.components.MuiInputAdornment = {
3357
+ styleOverrides: {
3358
+ root: {
3359
+ '& .MuiSvgIcon-root:not(.MuiSvgIcon-fontSizeSmall)': {
3360
+ fontSize: theme.spacing(3),
3361
+ [sm]: {
3362
+ fontSize: theme.spacing(2.5)
3363
+ }
3364
+ },
3365
+ '& .MuiIconButton-root': {
3366
+ padding: theme.spacing(1)
3293
3367
  }
3294
3368
  },
3295
- '& .MuiIconButton-root': {
3296
- padding: theme.spacing(1)
3297
- }
3298
- },
3299
- positionStart: {
3300
- '& .MuiIconButton-root': {
3301
- marginLeft: theme.spacing(-0.5),
3302
- [sm]: {
3303
- marginLeft: theme.spacing(-0.75)
3369
+ positionStart: {
3370
+ '& .MuiIconButton-root': {
3371
+ marginLeft: theme.spacing(-0.5),
3372
+ [sm]: {
3373
+ marginLeft: theme.spacing(-0.75)
3374
+ }
3304
3375
  }
3305
- }
3306
- },
3307
- positionEnd: {
3308
- '& .MuiIconButton-root': {
3309
- marginRight: theme.spacing(-0.5),
3310
- [sm]: {
3311
- marginRight: theme.spacing(-0.75)
3376
+ },
3377
+ positionEnd: {
3378
+ '& .MuiIconButton-root': {
3379
+ marginRight: theme.spacing(-0.5),
3380
+ [sm]: {
3381
+ marginRight: theme.spacing(-0.75)
3382
+ }
3312
3383
  }
3313
3384
  }
3314
3385
  }
3315
3386
  };
3316
- theme.overrides.MuiFormHelperText = {
3317
- root: _objectSpread(_objectSpread({}, theme.typography.body2), {}, {
3318
- marginTop: theme.spacing(0.5)
3319
- }),
3320
- contained: {
3321
- marginLeft: undefined,
3322
- marginRight: undefined
3387
+ theme.components.MuiFormHelperText = {
3388
+ styleOverrides: {
3389
+ root: _objectSpread(_objectSpread({}, theme.typography.body2), {}, {
3390
+ marginTop: theme.spacing(0.5)
3391
+ }),
3392
+ contained: {
3393
+ marginLeft: 'unset',
3394
+ marginRight: 'unset'
3395
+ }
3323
3396
  }
3324
3397
  };
3325
3398
  }
3326
3399
 
3327
3400
  function overrideToolbar(theme) {
3328
- theme.overrides.MuiToolbar = {
3329
- regular: {
3330
- minHeight: theme.spacing(8)
3331
- },
3332
- gutters: {
3333
- [theme.breakpoints.up('sm')]: {
3334
- paddingLeft: theme.spacing(2),
3335
- paddingRight: theme.spacing(2)
3401
+ theme.components.MuiToolbar = {
3402
+ styleOverrides: {
3403
+ regular: {
3404
+ minHeight: theme.spacing(8)
3405
+ },
3406
+ gutters: {
3407
+ [theme.breakpoints.up('sm')]: {
3408
+ paddingLeft: theme.spacing(2),
3409
+ paddingRight: theme.spacing(2)
3410
+ }
3336
3411
  }
3337
3412
  }
3338
3413
  };
3339
3414
  }
3340
3415
 
3341
3416
  function overrideTooltip(theme) {
3342
- theme.props.MuiTooltip = {
3343
- arrow: true
3344
- };
3345
- theme.overrides.MuiTooltip = {
3346
- tooltip: _objectSpread(_objectSpread({}, theme.typography.body2), {}, {
3347
- padding: theme.spacing(1, 1.5),
3348
- backgroundColor: exports.Color.Dark400
3349
- }),
3350
- popperArrow: {
3351
- '&[x-placement*="top"] $arrow': {
3352
- '&::before': {
3353
- borderBottomRightRadius: 2
3354
- }
3355
- },
3356
- '&[x-placement*="left"] $arrow': {
3357
- '&::before': {
3358
- borderTopRightRadius: 2
3359
- }
3360
- },
3361
- '&[x-placement*="right"] $arrow': {
3362
- '&::before': {
3363
- borderBottomLeftRadius: 2
3417
+ theme.components.MuiTooltip = {
3418
+ defaultProps: {
3419
+ arrow: true
3420
+ },
3421
+ styleOverrides: {
3422
+ tooltip: _objectSpread(_objectSpread({}, theme.typography.body2), {}, {
3423
+ padding: theme.spacing(1, 1.5),
3424
+ backgroundColor: exports.Color.Dark400
3425
+ }),
3426
+ popperArrow: {
3427
+ ["&[data-popper-placement*=\"top\"] .".concat(material.tooltipClasses.arrow)]: {
3428
+ '&::before': {
3429
+ borderBottomRightRadius: 2
3430
+ }
3431
+ },
3432
+ ["&[data-popper-placement*=\"left\"] .".concat(material.tooltipClasses.arrow)]: {
3433
+ '&::before': {
3434
+ borderTopRightRadius: 2
3435
+ }
3436
+ },
3437
+ ["&[data-popper-placement*=\"right\"] .".concat(material.tooltipClasses.arrow)]: {
3438
+ '&::before': {
3439
+ borderBottomLeftRadius: 2
3440
+ }
3441
+ },
3442
+ ["&[data-popper-placement*=\"bottom\"] .".concat(material.tooltipClasses.arrow)]: {
3443
+ '&::before': {
3444
+ borderTopLeftRadius: 2
3445
+ }
3364
3446
  }
3365
3447
  },
3366
- '&[x-placement*="bottom"] $arrow': {
3367
- '&::before': {
3368
- borderTopLeftRadius: 2
3369
- }
3448
+ arrow: {
3449
+ color: exports.Color.Dark400,
3450
+ fontSize: theme.spacing(1)
3370
3451
  }
3371
- },
3372
- arrow: {
3373
- color: exports.Color.Dark400,
3374
- fontSize: theme.spacing(1)
3375
3452
  }
3376
3453
  };
3377
3454
  }
@@ -3481,14 +3558,24 @@ function createTypographyOptions(breakpoints) {
3481
3558
  };
3482
3559
  }
3483
3560
  function overrideTypography(theme) {
3484
- theme.props.MuiTypography = {
3485
- variant: 'body2'
3561
+ theme.components.MuiTypography = {
3562
+ defaultProps: {
3563
+ variant: 'body2'
3564
+ }
3565
+ };
3566
+ }
3567
+
3568
+ function overrideCssBaseline(theme) {
3569
+ theme.components.MuiCssBaseline = {
3570
+ styleOverrides: {
3571
+ body: _objectSpread({}, theme.typography.body2)
3572
+ }
3486
3573
  };
3487
3574
  }
3488
3575
 
3489
3576
  function createSuperDispatchTheme() {
3490
- var breakpoints = createBreakpoints({});
3491
- var theme = core.createTheme({
3577
+ var breakpoints = system.createBreakpoints({});
3578
+ var theme = material.createTheme({
3492
3579
  breakpoints,
3493
3580
  palette: {
3494
3581
  primary: {
@@ -3505,43 +3592,43 @@ function createSuperDispatchTheme() {
3505
3592
  text: {
3506
3593
  primary: exports.Color.Dark500,
3507
3594
  secondary: exports.Color.Dark200,
3508
- hint: exports.Color.Dark100,
3595
+ // hint: Color.Dark100, todo
3509
3596
  disabled: exports.Color.Dark100
3510
3597
  },
3511
3598
  divider: exports.Color.Silver400
3512
3599
  },
3513
3600
  typography: createTypographyOptions(breakpoints),
3514
- props: {},
3515
- overrides: {}
3601
+ components: {}
3516
3602
  });
3603
+ overrideCard(theme);
3604
+ overrideButton(theme);
3517
3605
  overrideAppBar(theme);
3518
- overrideAutocomplete(theme);
3606
+ overridePaper(theme);
3607
+ overrideTooltip(theme);
3608
+ overrideSvgIcon(theme);
3609
+ overrideToolbar(theme);
3610
+ overrideIconButton(theme);
3611
+ overrideTypography(theme);
3612
+ overrideMenu(theme);
3519
3613
  overrideAvatar(theme);
3520
- overrideButton(theme);
3521
- overrideCard(theme);
3614
+ overrideTextField(theme);
3615
+ overrideAutocomplete(theme);
3616
+ overrideCssBaseline(theme);
3522
3617
  overrideCheckbox(theme);
3618
+ overrideRadio(theme);
3619
+ overrideSwitch(theme);
3523
3620
  overrideChip(theme);
3524
3621
  overrideDialog(theme);
3525
3622
  overrideDrawer(theme);
3526
- overrideIconButton(theme);
3527
- overrideLink(theme);
3623
+ overridePagination(theme);
3528
3624
  overrideList(theme);
3529
- overrideMenu(theme);
3530
- overridePaper(theme);
3531
- overrideRadio(theme);
3625
+ overrideLink(theme);
3532
3626
  overrideSnackbar(theme);
3533
- overrideSvgIcon(theme);
3534
- overrideSwitch(theme);
3535
3627
  overrideTabs(theme);
3536
- overrideTextField(theme);
3537
- overrideToolbar(theme);
3538
- overrideTooltip(theme);
3539
- overrideTypography(theme);
3540
- overridePagination(theme);
3541
3628
  return theme;
3542
3629
  }
3543
3630
 
3544
- var generateMaterialClassName = /*#__PURE__*/core.createGenerateClassName();
3631
+ var generateMaterialClassName = /*#__PURE__*/styles.createGenerateClassName();
3545
3632
 
3546
3633
  function generateClassName(rule, sheet) {
3547
3634
  var {
@@ -3583,14 +3670,11 @@ function ThemeProvider(_ref) {
3583
3670
  return /*#__PURE__*/jsxRuntime.jsx(styles.StylesProvider, {
3584
3671
  injectFirst: injectFirst,
3585
3672
  generateClassName: generateClassName,
3586
- children: /*#__PURE__*/jsxRuntime.jsxs(styles.ThemeProvider, {
3673
+ children: /*#__PURE__*/jsxRuntime.jsxs(material.ThemeProvider, {
3587
3674
  theme: theme,
3588
- children: [/*#__PURE__*/jsxRuntime.jsx(core.CssBaseline, {}), /*#__PURE__*/jsxRuntime.jsx(styled.ThemeProvider, {
3589
- theme: theme,
3590
- children: /*#__PURE__*/jsxRuntime.jsx(ResponsiveContextProvider, {
3591
- children: /*#__PURE__*/jsxRuntime.jsx(SnackbarStackProvider, {
3592
- children: children
3593
- })
3675
+ children: [/*#__PURE__*/jsxRuntime.jsx(material.CssBaseline, {}), /*#__PURE__*/jsxRuntime.jsx(ResponsiveContextProvider, {
3676
+ children: /*#__PURE__*/jsxRuntime.jsx(SnackbarStackProvider, {
3677
+ children: children
3594
3678
  })
3595
3679
  })]
3596
3680
  })
@@ -3601,12 +3685,13 @@ var PREVENT_COLLAPSE = 1;
3601
3685
 
3602
3686
  function spaceVariant(theme, space) {
3603
3687
  var gap = theme.spacing(space);
3688
+ var parsedGap = parseInt(gap);
3604
3689
  return {
3605
3690
  '&:before': {
3606
- marginTop: -gap - PREVENT_COLLAPSE
3691
+ marginTop: -parsedGap - PREVENT_COLLAPSE
3607
3692
  },
3608
3693
  '& > $container': {
3609
- marginLeft: -gap,
3694
+ marginLeft: -parsedGap,
3610
3695
  '& > $child > $childContainer': {
3611
3696
  marginTop: gap,
3612
3697
  marginLeft: gap
@@ -3621,7 +3706,7 @@ function columnVariant(columns) {
3621
3706
  };
3622
3707
  }
3623
3708
 
3624
- var useStyles$d = /*#__PURE__*/styles.makeStyles(theme => ({
3709
+ var useStyles$3 = /*#__PURE__*/styles.makeStyles(theme => ({
3625
3710
  root: {
3626
3711
  paddingTop: PREVENT_COLLAPSE,
3627
3712
  '&:before': {
@@ -3665,7 +3750,7 @@ var Tiles = /*#__PURE__*/React.forwardRef((_ref, ref) => {
3665
3750
  space: spaceProp = 1,
3666
3751
  columns: columnsProp = 1
3667
3752
  } = _ref;
3668
- var styles = useStyles$d({});
3753
+ var styles = useStyles$3({});
3669
3754
  var space = useResponsivePropRecord(spaceProp);
3670
3755
  var columns = useResponsivePropRecord(columnsProp);
3671
3756
  return /*#__PURE__*/jsxRuntime.jsx("div", {