@superdispatch/ui 0.21.0 → 0.21.5-alpha.1

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