@superdispatch/ui 0.16.0-alpha.0 → 0.16.0-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 (120) hide show
  1. package/dist-node/index.js +205 -3686
  2. package/dist-node/index.js.map +1 -1
  3. package/dist-src/adaptive-toolbar/AdaptiveToolbar.js +12 -12
  4. package/dist-src/app-bar/AppBarOverrides.js +6 -4
  5. package/dist-src/autocomplete/AutocompleteOverrides.js +13 -16
  6. package/dist-src/avatar/AvatarOverrides.js +14 -12
  7. package/dist-src/avatar-button/AvatarButton.js +78 -92
  8. package/dist-src/button/Button.js +11 -15
  9. package/dist-src/button/ButtonOverrides.js +147 -149
  10. package/dist-src/card/CardOverrides.js +10 -6
  11. package/dist-src/card-button/CardButton.js +78 -75
  12. package/dist-src/checkbox/CheckboxField.js +1 -1
  13. package/dist-src/checkbox/CheckboxGroudField.js +1 -1
  14. package/dist-src/checkbox/CheckboxOverrides.js +60 -50
  15. package/dist-src/chip/ChipOverrides.js +88 -85
  16. package/dist-src/description-list/DescriptionList.js +58 -55
  17. package/dist-src/dialog/DialogOverrides.js +31 -25
  18. package/dist-src/drawer/DrawerActions.js +32 -34
  19. package/dist-src/drawer/DrawerContent.js +10 -26
  20. package/dist-src/drawer/DrawerList.js +8 -27
  21. package/dist-src/drawer/DrawerOverrides.js +12 -10
  22. package/dist-src/drawer/DrawerTitle.js +46 -40
  23. package/dist-src/grid/GridStack.js +1 -1
  24. package/dist-src/grid/InlineGrid.js +2 -2
  25. package/dist-src/icon-button/IconButtonOverrides.js +48 -32
  26. package/dist-src/index.js +1 -5
  27. package/dist-src/info-card/InfoCard.js +27 -37
  28. package/dist-src/link/LinkOverrides.js +29 -26
  29. package/dist-src/list/ListOverrides.js +10 -7
  30. package/dist-src/menu/MenuOverrides.js +28 -14
  31. package/dist-src/overflow-text/OverflowText.js +35 -34
  32. package/dist-src/pagination/PaginationOverrides.js +27 -32
  33. package/dist-src/paper/PaperOverrides.js +8 -6
  34. package/dist-src/radio/RadioField.js +1 -1
  35. package/dist-src/radio/RadioGroupField.js +1 -1
  36. package/dist-src/radio/RadioOverrides.js +38 -36
  37. package/dist-src/responsive/ResponsiveContext.js +1 -1
  38. package/dist-src/snackbar/Snackbar.js +1 -1
  39. package/dist-src/snackbar/SnackbarContent.js +3 -3
  40. package/dist-src/snackbar/SnackbarOverrides.js +28 -18
  41. package/dist-src/svg-icon/SvgIconOverrides.js +26 -18
  42. package/dist-src/switch/SwitchOverrides.js +72 -71
  43. package/dist-src/tabs/TabsOverrides.js +34 -30
  44. package/dist-src/tag/Tag.js +2 -2
  45. package/dist-src/text-field/TextFieldOverrides.js +158 -137
  46. package/dist-src/{v5/theme → theme}/CssBaselineOverrides.js +0 -0
  47. package/dist-src/theme/ThemeProvider.js +25 -28
  48. package/dist-src/tiles/Tiles.js +4 -3
  49. package/dist-src/toolbar/ToolbarOverrides.js +10 -8
  50. package/dist-src/tooltip/TooltipOverrides.js +33 -30
  51. package/dist-src/typography/TypographyOverrides.js +14 -2
  52. package/dist-types/index.d.ts +7 -621
  53. package/dist-web/index.js +18 -3495
  54. package/dist-web/index.js.map +1 -1
  55. package/package.json +1 -1
  56. package/dist-src/v5/adaptive-toolbar/AdaptiveToolbar.js +0 -146
  57. package/dist-src/v5/app-bar/AppBarOverrides.js +0 -9
  58. package/dist-src/v5/autocomplete/AutocompleteOverrides.js +0 -63
  59. package/dist-src/v5/avatar/AvatarOverrides.js +0 -21
  60. package/dist-src/v5/avatar-button/AvatarButton.js +0 -146
  61. package/dist-src/v5/button/Button.js +0 -32
  62. package/dist-src/v5/button/ButtonOverrides.js +0 -238
  63. package/dist-src/v5/card/CardOverrides.js +0 -16
  64. package/dist-src/v5/card-button/CardButton.js +0 -135
  65. package/dist-src/v5/checkbox/CheckboxField.js +0 -37
  66. package/dist-src/v5/checkbox/CheckboxGroudField.js +0 -32
  67. package/dist-src/v5/checkbox/CheckboxOverrides.js +0 -71
  68. package/dist-src/v5/chip/ChipOverrides.js +0 -106
  69. package/dist-src/v5/columns/Column.js +0 -75
  70. package/dist-src/v5/columns/Columns.js +0 -28
  71. package/dist-src/v5/description-list/DescriptionList.js +0 -114
  72. package/dist-src/v5/dialog/DialogOverrides.js +0 -43
  73. package/dist-src/v5/drawer/DrawerActions.js +0 -69
  74. package/dist-src/v5/drawer/DrawerContent.js +0 -15
  75. package/dist-src/v5/drawer/DrawerList.js +0 -31
  76. package/dist-src/v5/drawer/DrawerOverrides.js +0 -17
  77. package/dist-src/v5/drawer/DrawerTitle.js +0 -119
  78. package/dist-src/v5/grid/GridStack.js +0 -33
  79. package/dist-src/v5/grid/InlineGrid.js +0 -34
  80. package/dist-src/v5/icon-button/IconButtonOverrides.js +0 -60
  81. package/dist-src/v5/index.js +0 -38
  82. package/dist-src/v5/info-card/InfoCard.js +0 -59
  83. package/dist-src/v5/inline/Inline.js +0 -56
  84. package/dist-src/v5/link/LinkOverrides.js +0 -46
  85. package/dist-src/v5/list/ListOverrides.js +0 -16
  86. package/dist-src/v5/menu/MenuOverrides.js +0 -34
  87. package/dist-src/v5/overflow-text/OverflowText.js +0 -84
  88. package/dist-src/v5/pagination/PaginationOverrides.js +0 -35
  89. package/dist-src/v5/paper/PaperOverrides.js +0 -13
  90. package/dist-src/v5/props/AlignProps.js +0 -15
  91. package/dist-src/v5/props/CollapseProp.js +0 -3
  92. package/dist-src/v5/props/ResponsiveProp.js +0 -42
  93. package/dist-src/v5/props/SpaceProp.js +0 -28
  94. package/dist-src/v5/radio/RadioField.js +0 -36
  95. package/dist-src/v5/radio/RadioGroupField.js +0 -38
  96. package/dist-src/v5/radio/RadioOverrides.js +0 -49
  97. package/dist-src/v5/responsive/CollapseBreakpoint.js +0 -15
  98. package/dist-src/v5/responsive/ResponsiveContext.js +0 -31
  99. package/dist-src/v5/snackbar/Snackbar.js +0 -53
  100. package/dist-src/v5/snackbar/SnackbarContent.js +0 -105
  101. package/dist-src/v5/snackbar/SnackbarOverrides.js +0 -35
  102. package/dist-src/v5/snackbar/SnackbarStack.js +0 -113
  103. package/dist-src/v5/stack/Stack.js +0 -43
  104. package/dist-src/v5/svg-icon/SvgIconOverrides.js +0 -33
  105. package/dist-src/v5/switch/SwitchOverrides.js +0 -88
  106. package/dist-src/v5/tabs/TabsOverrides.js +0 -45
  107. package/dist-src/v5/tag/Tag.js +0 -118
  108. package/dist-src/v5/text-field/TextFieldOverrides.js +0 -205
  109. package/dist-src/v5/theme/Color.js +0 -77
  110. package/dist-src/v5/theme/SuperDispatchTheme.js +0 -2
  111. package/dist-src/v5/theme/ThemeProvider.js +0 -142
  112. package/dist-src/v5/tiles/Tiles.js +0 -94
  113. package/dist-src/v5/toolbar/ToolbarOverrides.js +0 -15
  114. package/dist-src/v5/tooltip/TooltipOverrides.js +0 -42
  115. package/dist-src/v5/typography/TypographyOverrides.js +0 -121
  116. package/dist-src/v5/utils/VisibilityObserver.js +0 -53
  117. package/dist-src/v5/utils/isEmptyReactNode.js +0 -3
  118. package/dist-src/v5/utils/mergeRefs.js +0 -20
  119. package/dist-src/v5/utils/renderChildren.js +0 -8
  120. package/dist-src/v5/utils/useUID.js +0 -6
@@ -16,14 +16,10 @@ var lab = require('@mui/lab');
16
16
  var jsxRuntime = require('react/jsx-runtime');
17
17
  var styled = require('styled-components');
18
18
  var styled__default = _interopDefault(styled);
19
- var core = require('@material-ui/core');
20
19
  var flattenChildren = _interopDefault(require('react-keyed-flatten-children'));
21
20
  var styles = require('@mui/styles');
22
21
  var clsx = _interopDefault(require('clsx'));
23
22
  var system = require('@mui/system');
24
- var icons = require('@material-ui/icons');
25
- var styles$1 = require('@material-ui/styles');
26
- var createBreakpoints = _interopDefault(require('@material-ui/core/styles/createBreakpoints'));
27
23
 
28
24
  var _excluded = ["size", "children", "isActive", "isLoading", "color"];
29
25
  var Button = /*#__PURE__*/react.forwardRef((_ref, ref) => {
@@ -187,8 +183,6 @@ var AdaptiveToolbar = /*#__PURE__*/react.forwardRef((_ref, ref) => {
187
183
  });
188
184
  if (process.env.NODE_ENV !== "production") AdaptiveToolbar.displayName = "AdaptiveToolbar";
189
185
 
190
- var Color;
191
-
192
186
  (function (Color) {
193
187
  Color["White"] = "#fff";
194
188
  Color["White50"] = "rgba(255, 255, 255, 0.5)";
@@ -259,10 +253,10 @@ var Color;
259
253
  Color["Yellow300"] = "#FFCB47";
260
254
  Color["Yellow400"] = "#FFA91F";
261
255
  Color["Yellow500"] = "#DB7500";
262
- })(Color || (Color = {}));
256
+ })(exports.Color || (exports.Color = {}));
263
257
 
264
258
  function isColorProp(name) {
265
- return typeof name == 'string' && Object.prototype.hasOwnProperty.call(Color, name);
259
+ return typeof name == 'string' && Object.prototype.hasOwnProperty.call(exports.Color, name);
266
260
  }
267
261
 
268
262
  var _excluded$2 = ["size", "icon", "isLoading", "disabled", "avatarRef", "alt", "imgProps", "sizes", "src", "srcSet", "variant", "children"];
@@ -281,11 +275,11 @@ var Overlay = /*#__PURE__*/material.styled('div')(_ref => {
281
275
  alignItems: 'center',
282
276
  justifyContent: 'center',
283
277
  borderRadius: '50%',
284
- backgroundColor: Color.Transparent,
278
+ backgroundColor: exports.Color.Transparent,
285
279
  transition: theme.transitions.create('background-color'),
286
280
  '& > svg': {
287
281
  opacity: 0,
288
- color: Color.White,
282
+ color: exports.Color.White,
289
283
  transition: theme.transitions.create('opacity'),
290
284
  fontSize: theme.spacing(3),
291
285
  [sm]: {
@@ -320,19 +314,19 @@ var StyledButton = /*#__PURE__*/material.styled(material.ButtonBase, {
320
314
  borderRadius: '50%',
321
315
  '&[disabled], &[aria-busy="true"]': {
322
316
  ["& > ".concat(Overlay)]: {
323
- backgroundColor: Color.White50
317
+ backgroundColor: exports.Color.White50
324
318
  }
325
319
  },
326
320
  '&:not([disabled])[aria-busy="false"]': {
327
321
  '&:hover, &:focus': {
328
322
  ["&[data-with-icon=\"true\"] > ".concat(Overlay)]: {
329
- backgroundColor: Color.Black50,
323
+ backgroundColor: exports.Color.Black50,
330
324
  '& > svg': {
331
325
  opacity: 1
332
326
  }
333
327
  },
334
328
  ["&:not([data-with-icon=\"true\"]) > ".concat(Overlay)]: {
335
- backgroundColor: Color.Black20
329
+ backgroundColor: exports.Color.Black20
336
330
  }
337
331
  }
338
332
  },
@@ -416,34 +410,34 @@ var StyledButton$1 = /*#__PURE__*/material.styled(material.ButtonBase)(_ref => {
416
410
  alignItems: 'center',
417
411
  flexDirection: 'column',
418
412
  justifyContent: 'center',
419
- backgroundColor: Color.White,
413
+ backgroundColor: exports.Color.White,
420
414
  border: '1px dashed',
421
415
  borderRadius: theme.spacing(0.5),
422
416
  padding: theme.spacing(1.5),
423
417
  minHeight: theme.spacing(13),
424
418
  transition: theme.transitions.create(['color', 'box-shadow', 'border-color', 'background-color']),
425
419
  '&[data-disabled="true"]': {
426
- color: Color.Dark200,
427
- borderColor: Color.Silver500,
428
- backgroundColor: Color.Silver100
420
+ color: exports.Color.Dark200,
421
+ borderColor: exports.Color.Silver500,
422
+ backgroundColor: exports.Color.Silver100
429
423
  },
430
424
  '&[data-primary="true"]': {
431
- color: Color.Blue300,
432
- borderColor: Color.Silver500,
425
+ color: exports.Color.Blue300,
426
+ borderColor: exports.Color.Silver500,
433
427
  '&:focus': {
434
- backgroundColor: Color.Blue50
428
+ backgroundColor: exports.Color.Blue50
435
429
  },
436
430
  '&:hover, &:active': {
437
- borderColor: Color.Blue300,
438
- backgroundColor: Color.Blue50
431
+ borderColor: exports.Color.Blue300,
432
+ backgroundColor: exports.Color.Blue50
439
433
  }
440
434
  },
441
435
  '&[data-error="true"]': {
442
- color: Color.Red300,
443
- borderColor: Color.Red300,
444
- backgroundColor: Color.Red50,
436
+ color: exports.Color.Red300,
437
+ borderColor: exports.Color.Red300,
438
+ backgroundColor: exports.Color.Red50,
445
439
  '&:focus': {
446
- backgroundColor: Color.Red75
440
+ backgroundColor: exports.Color.Red75
447
441
  }
448
442
  },
449
443
  '&[data-size="small"]': {
@@ -705,7 +699,7 @@ function columnRootMixin(width) {
705
699
 
706
700
  var ColumnRoot = /*#__PURE__*/styled__default.div.withConfig({
707
701
  displayName: "Column__ColumnRoot",
708
- componentId: "SD__sc-nqzztj-0"
702
+ componentId: "SD__sc-m9n6o6-0"
709
703
  })(_ref => {
710
704
  var {
711
705
  theme,
@@ -789,7 +783,7 @@ function columnsRootMixin(align, spaceProp, isReversed, isCollapsed) {
789
783
 
790
784
  var Columns = /*#__PURE__*/styled__default.div.withConfig({
791
785
  displayName: "Columns",
792
- componentId: "SD__sc-1uebhbi-0"
786
+ componentId: "SD__sc-1a73118-0"
793
787
  })(_ref => {
794
788
  var {
795
789
  theme,
@@ -880,7 +874,7 @@ var Root = /*#__PURE__*/material.styled(material.Typography, {
880
874
  transition: theme.transitions.create('border')
881
875
  }, truncated && {
882
876
  cursor: 'pointer',
883
- borderBottomColor: Color.Silver500
877
+ borderBottomColor: exports.Color.Silver500
884
878
  });
885
879
  });
886
880
  var Sential = /*#__PURE__*/material.styled('span', {
@@ -967,7 +961,7 @@ var DescriptionListItemIcon = /*#__PURE__*/material.styled('div')(_ref => {
967
961
  display: 'inline-flex',
968
962
  marginRight: theme.spacing(1),
969
963
  '& > .MuiSvgIcon-root': {
970
- color: Color.Dark100,
964
+ color: exports.Color.Dark100,
971
965
  fontSize: theme.spacing(3),
972
966
  [theme.breakpoints.up('sm')]: {
973
967
  fontSize: theme.spacing(2)
@@ -1069,7 +1063,7 @@ var StyledAppBar = /*#__PURE__*/material.styled(material.AppBar)(_ref => {
1069
1063
  borderBottom: 'none',
1070
1064
  transition: theme.transitions.create(['border-color']),
1071
1065
  '&[data-sticky="false"]': {
1072
- borderTopColor: Color.Transparent
1066
+ borderTopColor: exports.Color.Transparent
1073
1067
  }
1074
1068
  };
1075
1069
  });
@@ -1172,7 +1166,7 @@ var StyledAppBar$1 = /*#__PURE__*/material.styled(material.AppBar)(_ref => {
1172
1166
  borderRight: 'none',
1173
1167
  transition: theme.transitions.create(['border-color']),
1174
1168
  '&[data-sticky="false"]': {
1175
- borderBottomColor: Color.Transparent
1169
+ borderBottomColor: exports.Color.Transparent
1176
1170
  }
1177
1171
  };
1178
1172
  });
@@ -1285,13 +1279,13 @@ var GridStack = /*#__PURE__*/react.forwardRef((_ref, ref) => {
1285
1279
  props = _objectWithoutProperties(_ref, _excluded$b);
1286
1280
 
1287
1281
  var items = react.Children.toArray(children);
1288
- return /*#__PURE__*/jsxRuntime.jsx(core.Grid, _objectSpread(_objectSpread({}, props), {}, {
1282
+ return /*#__PURE__*/jsxRuntime.jsx(material.Grid, _objectSpread(_objectSpread({}, props), {}, {
1289
1283
  ref: ref,
1290
1284
  container: true,
1291
1285
  wrap: "nowrap",
1292
1286
  direction: "column",
1293
1287
  alignItems: alignItems,
1294
- children: items.map((item, idx) => /*#__PURE__*/jsxRuntime.jsx(core.Grid, {
1288
+ children: items.map((item, idx) => /*#__PURE__*/jsxRuntime.jsx(material.Grid, {
1295
1289
  item: true,
1296
1290
  zeroMinWidth: true,
1297
1291
  xs: alignItems === 'stretch' ? 12 : undefined,
@@ -1316,13 +1310,13 @@ var InlineGrid = /*#__PURE__*/react.forwardRef((_ref, ref) => {
1316
1310
  props = _objectWithoutProperties(_ref, _excluded$c);
1317
1311
 
1318
1312
  var items = react.Children.toArray(children);
1319
- return /*#__PURE__*/jsxRuntime.jsx(core.Grid, _objectSpread(_objectSpread({}, props), {}, {
1313
+ return /*#__PURE__*/jsxRuntime.jsx(material.Grid, _objectSpread(_objectSpread({}, props), {}, {
1320
1314
  ref: ref,
1321
1315
  wrap: wrap,
1322
1316
  container: true,
1323
- justify: justify,
1317
+ justifyContent: justify,
1324
1318
  alignItems: alignItems,
1325
- children: items.map((item, idx) => /*#__PURE__*/jsxRuntime.jsx(core.Grid, {
1319
+ children: items.map((item, idx) => /*#__PURE__*/jsxRuntime.jsx(material.Grid, {
1326
1320
  item: true,
1327
1321
  zeroMinWidth: true,
1328
1322
  children: item
@@ -1413,7 +1407,7 @@ function inlineRootMixin(spaceProp, noWrap, verticalAlign, horizontalAlign) {
1413
1407
 
1414
1408
  var InlineRoot = /*#__PURE__*/styled__default.div.withConfig({
1415
1409
  displayName: "Inline__InlineRoot",
1416
- componentId: "SD__sc-1tgkwtt-0"
1410
+ componentId: "SD__sc-13du4wm-0"
1417
1411
  })(_ref => {
1418
1412
  var {
1419
1413
  theme,
@@ -1523,11 +1517,11 @@ var _excluded$g = ["action", "children", "onClose", "className", "classes", "var
1523
1517
  _excluded2$1 = ["icon", "closeButton", "variantError", "variantSuccess"];
1524
1518
  var useStyles = /*#__PURE__*/styles.makeStyles(theme => ({
1525
1519
  root: {
1526
- color: Color.White,
1527
- backgroundColor: Color.Dark500,
1520
+ color: exports.Color.White,
1521
+ backgroundColor: exports.Color.Dark500,
1528
1522
  '&$variantError': {
1529
- color: Color.White,
1530
- backgroundColor: Color.Red500
1523
+ color: exports.Color.White,
1524
+ backgroundColor: exports.Color.Red500
1531
1525
  }
1532
1526
  },
1533
1527
  action: {
@@ -1544,10 +1538,10 @@ var useStyles = /*#__PURE__*/styles.makeStyles(theme => ({
1544
1538
  fontSize: theme.spacing(3)
1545
1539
  },
1546
1540
  closeButton: {
1547
- color: Color.White40,
1541
+ color: exports.Color.White40,
1548
1542
  '&:hover, &:focus': {
1549
- backgroundColor: Color.White08,
1550
- color: Color.White40
1543
+ backgroundColor: exports.Color.White08,
1544
+ color: exports.Color.White40
1551
1545
  }
1552
1546
  },
1553
1547
  variantError: {},
@@ -1775,7 +1769,7 @@ function stackItemMixin(space, align) {
1775
1769
 
1776
1770
  var StackRoot = /*#__PURE__*/styled__default.div.withConfig({
1777
1771
  displayName: "Stack__StackRoot",
1778
- componentId: "SD__sc-dmzxni-0"
1772
+ componentId: "SD__sc-qkml7c-0"
1779
1773
  })(_ref => {
1780
1774
  var {
1781
1775
  theme,
@@ -1816,56 +1810,56 @@ var useStyles$1 = /*#__PURE__*/styles.makeStyles(theme => ({
1816
1810
  },
1817
1811
  variantSubtle: {
1818
1812
  '&$colorGrey': {
1819
- color: Color.Dark300,
1820
- backgroundColor: Color.Silver200
1813
+ color: exports.Color.Dark300,
1814
+ backgroundColor: exports.Color.Silver200
1821
1815
  },
1822
1816
  '&$colorBlue': {
1823
- color: Color.Blue500,
1824
- backgroundColor: Color.Blue50
1817
+ color: exports.Color.Blue500,
1818
+ backgroundColor: exports.Color.Blue50
1825
1819
  },
1826
1820
  '&$colorGreen': {
1827
- color: Color.Green500,
1828
- backgroundColor: Color.Green50
1821
+ color: exports.Color.Green500,
1822
+ backgroundColor: exports.Color.Green50
1829
1823
  },
1830
1824
  '&$colorPurple': {
1831
- color: Color.Purple500,
1832
- backgroundColor: Color.Purple50
1825
+ color: exports.Color.Purple500,
1826
+ backgroundColor: exports.Color.Purple50
1833
1827
  },
1834
1828
  '&$colorRed': {
1835
- color: Color.Red500,
1836
- backgroundColor: Color.Red50
1829
+ color: exports.Color.Red500,
1830
+ backgroundColor: exports.Color.Red50
1837
1831
  },
1838
1832
  '&$colorTeal': {
1839
- color: Color.Teal500,
1840
- backgroundColor: Color.Teal50
1833
+ color: exports.Color.Teal500,
1834
+ backgroundColor: exports.Color.Teal50
1841
1835
  },
1842
1836
  '&$colorYellow': {
1843
- color: Color.Yellow500,
1844
- backgroundColor: Color.Yellow50
1837
+ color: exports.Color.Yellow500,
1838
+ backgroundColor: exports.Color.Yellow50
1845
1839
  }
1846
1840
  },
1847
1841
  variantBold: {
1848
- color: Color.White,
1842
+ color: exports.Color.White,
1849
1843
  '&$colorGrey': {
1850
- backgroundColor: Color.Dark300
1844
+ backgroundColor: exports.Color.Dark300
1851
1845
  },
1852
1846
  '&$colorBlue': {
1853
- backgroundColor: Color.Blue500
1847
+ backgroundColor: exports.Color.Blue500
1854
1848
  },
1855
1849
  '&$colorGreen': {
1856
- backgroundColor: Color.Green500
1850
+ backgroundColor: exports.Color.Green500
1857
1851
  },
1858
1852
  '&$colorPurple': {
1859
- backgroundColor: Color.Purple500
1853
+ backgroundColor: exports.Color.Purple500
1860
1854
  },
1861
1855
  '&$colorRed': {
1862
- backgroundColor: Color.Red500
1856
+ backgroundColor: exports.Color.Red500
1863
1857
  },
1864
1858
  '&$colorTeal': {
1865
- backgroundColor: Color.Teal500
1859
+ backgroundColor: exports.Color.Teal500
1866
1860
  },
1867
1861
  '&$colorYellow': {
1868
- backgroundColor: Color.Yellow500
1862
+ backgroundColor: exports.Color.Yellow500
1869
1863
  }
1870
1864
  },
1871
1865
  colorGrey: {},
@@ -2000,8 +1994,8 @@ function overrideAvatar(theme) {
2000
1994
  }
2001
1995
  }),
2002
1996
  colorDefault: {
2003
- color: Color.Dark300,
2004
- backgroundColor: Color.Silver300
1997
+ color: exports.Color.Dark300,
1998
+ backgroundColor: exports.Color.Silver300
2005
1999
  }
2006
2000
  }
2007
2001
  };
@@ -2009,7 +2003,7 @@ function overrideAvatar(theme) {
2009
2003
 
2010
2004
  function outlineShadow() {
2011
2005
  var size = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 0;
2012
- var color = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : Color.Transparent;
2006
+ var color = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : exports.Color.Transparent;
2013
2007
  return "0 0 0 ".concat(size, "px ").concat(color);
2014
2008
  }
2015
2009
 
@@ -2018,7 +2012,7 @@ function textVariant(text, outline, background, progress) {
2018
2012
  '&': {
2019
2013
  color: text,
2020
2014
  boxShadow: outlineShadow(),
2021
- backgroundColor: Color.Transparent
2015
+ backgroundColor: exports.Color.Transparent
2022
2016
  },
2023
2017
  '&:hover': {
2024
2018
  backgroundColor: background
@@ -2033,7 +2027,7 @@ function textVariant(text, outline, background, progress) {
2033
2027
  ["&.".concat(material.buttonClasses.disabled)]: {
2034
2028
  color: outline,
2035
2029
  boxShadow: outlineShadow(),
2036
- backgroundColor: Color.Transparent,
2030
+ backgroundColor: exports.Color.Transparent,
2037
2031
  ["& .".concat(lab.loadingButtonClasses.loadingIndicator)]: {
2038
2032
  color: progress
2039
2033
  }
@@ -2042,7 +2036,7 @@ function textVariant(text, outline, background, progress) {
2042
2036
  }
2043
2037
 
2044
2038
  function outlinedBorder(borderColor) {
2045
- var outlineColor = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : Color.Transparent;
2039
+ var outlineColor = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : exports.Color.Transparent;
2046
2040
  return "inset 0 0 0 1px ".concat(borderColor, ", 0 0 0 2px ").concat(outlineColor);
2047
2041
  }
2048
2042
 
@@ -2185,11 +2179,11 @@ function overrideButton(theme) {
2185
2179
  sizeLarge: sizeLarge(theme),
2186
2180
  text: {
2187
2181
  padding: 'initial',
2188
- '&[data-color="error"]': textVariant(Color.Red300, Color.Red100, Color.Red50, Color.Red200),
2189
- '&[data-color="success"]': textVariant(Color.Green300, Color.Green100, Color.Green50, Color.Green200),
2190
- '&[data-color="white"]': textVariant(Color.White, Color.White50, Color.White10, Color.White50)
2182
+ '&[data-color="error"]': textVariant(exports.Color.Red300, exports.Color.Red100, exports.Color.Red50, exports.Color.Red200),
2183
+ '&[data-color="success"]': textVariant(exports.Color.Green300, exports.Color.Green100, exports.Color.Green50, exports.Color.Green200),
2184
+ '&[data-color="white"]': textVariant(exports.Color.White, exports.Color.White50, exports.Color.White10, exports.Color.White50)
2191
2185
  },
2192
- textPrimary: textVariant(Color.Blue300, Color.Blue100, Color.Blue50, Color.Blue200),
2186
+ textPrimary: textVariant(exports.Color.Blue300, exports.Color.Blue100, exports.Color.Blue50, exports.Color.Blue200),
2193
2187
  textSizeSmall: sizeSmall(theme),
2194
2188
  textSizeLarge: sizeLarge(theme),
2195
2189
  outlined: {
@@ -2198,11 +2192,11 @@ function overrideButton(theme) {
2198
2192
  ["&.".concat(material.buttonClasses.disabled)]: {
2199
2193
  border: 'none'
2200
2194
  },
2201
- '&[data-color="error"]': outlinedVariant(Color.Red300, Color.Red300, Color.Red100, Color.Red100, Color.Red300, Color.Red300, Color.Red100, Color.Red50, Color.Red300, Color.White),
2202
- '&[data-color="success"]': outlinedVariant(Color.Green300, Color.Green300, Color.Green100, Color.Green100, Color.Green300, Color.Green300, Color.Green100, Color.Green50, Color.Green300, Color.White),
2203
- '&[data-color="white"]': outlinedVariant(Color.White, Color.White50, Color.White50, Color.White40, Color.White, Color.White50, Color.White40, Color.White10, Color.White50, Color.Transparent)
2195
+ '&[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),
2196
+ '&[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),
2197
+ '&[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)
2204
2198
  },
2205
- outlinedPrimary: outlinedVariant(Color.Dark500, Color.Silver500, Color.Silver500, Color.Silver400, Color.Blue300, Color.Blue300, Color.Blue100, Color.Blue50, Color.Dark200, Color.White),
2199
+ 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),
2206
2200
  outlinedSizeSmall: sizeSmall(theme),
2207
2201
  outlinedSizeLarge: sizeLarge(theme),
2208
2202
  contained: {
@@ -2230,11 +2224,11 @@ function overrideButton(theme) {
2230
2224
  boxShadow: 'none',
2231
2225
  backgroundColor: 'initial'
2232
2226
  },
2233
- '&[data-color="error"]': containedVariant(Color.White, Color.Red300, Color.Red100, Color.Red500, Color.White, Color.Red100),
2234
- '&[data-color="success"]': containedVariant(Color.White, Color.Green300, Color.Green100, Color.Green500, Color.White, Color.Green100),
2235
- '&[data-color="white"]': containedVariant(Color.White, Color.White20, Color.White40, Color.White40, Color.White50, Color.White08)
2227
+ '&[data-color="error"]': containedVariant(exports.Color.White, exports.Color.Red300, exports.Color.Red100, exports.Color.Red500, exports.Color.White, exports.Color.Red100),
2228
+ '&[data-color="success"]': containedVariant(exports.Color.White, exports.Color.Green300, exports.Color.Green100, exports.Color.Green500, exports.Color.White, exports.Color.Green100),
2229
+ '&[data-color="white"]': containedVariant(exports.Color.White, exports.Color.White20, exports.Color.White40, exports.Color.White40, exports.Color.White50, exports.Color.White08)
2236
2230
  },
2237
- containedPrimary: containedVariant(Color.White, Color.Blue300, Color.Blue100, Color.Blue500, Color.White, Color.Blue100),
2231
+ containedPrimary: containedVariant(exports.Color.White, exports.Color.Blue300, exports.Color.Blue100, exports.Color.Blue500, exports.Color.White, exports.Color.Blue100),
2238
2232
  containedSizeSmall: sizeSmall(theme),
2239
2233
  containedSizeLarge: sizeLarge(theme)
2240
2234
  }
@@ -2268,7 +2262,7 @@ function overrideCheckbox(theme) {
2268
2262
  height: "17",
2269
2263
  x: "3.5",
2270
2264
  y: "3.5",
2271
- fill: Color.White,
2265
+ fill: exports.Color.White,
2272
2266
  stroke: "currentColor",
2273
2267
  rx: "1.5"
2274
2268
  })
@@ -2282,7 +2276,7 @@ function overrideCheckbox(theme) {
2282
2276
  fill: "currentColor",
2283
2277
  rx: "2"
2284
2278
  }), /*#__PURE__*/jsxRuntime.jsx("path", {
2285
- fill: Color.White,
2279
+ fill: exports.Color.White,
2286
2280
  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"
2287
2281
  })]
2288
2282
  }),
@@ -2295,31 +2289,31 @@ function overrideCheckbox(theme) {
2295
2289
  fill: "currentIcon",
2296
2290
  rx: "2"
2297
2291
  }), /*#__PURE__*/jsxRuntime.jsx("path", {
2298
- fill: Color.White,
2292
+ fill: exports.Color.White,
2299
2293
  d: "M7 11h10v2H7v-2z"
2300
2294
  })]
2301
2295
  })
2302
2296
  },
2303
2297
  styleOverrides: {
2304
2298
  root: {
2305
- color: Color.Dark100,
2299
+ color: exports.Color.Dark100,
2306
2300
  marginTop: theme.spacing(-0.625),
2307
2301
  marginBottom: theme.spacing(-0.625)
2308
2302
  },
2309
2303
  indeterminate: {
2310
2304
  ["&:not(.".concat(material.checkboxClasses.checked, ")")]: {
2311
- color: Color.Dark100
2305
+ color: exports.Color.Dark100
2312
2306
  },
2313
2307
  ["&.".concat(material.checkboxClasses.disabled)]: {
2314
- color: Color.Silver400
2308
+ color: exports.Color.Silver400
2315
2309
  }
2316
2310
  },
2317
2311
  colorPrimary: {
2318
2312
  ["&.".concat(material.checkboxClasses.checked, ".").concat(material.checkboxClasses.disabled)]: {
2319
- color: Color.Silver500
2313
+ color: exports.Color.Silver500
2320
2314
  },
2321
2315
  ["&:hover:not(.".concat(material.checkboxClasses.checked, ")")]: {
2322
- color: Color.Dark100
2316
+ color: exports.Color.Dark100
2323
2317
  }
2324
2318
  }
2325
2319
  }
@@ -2347,10 +2341,10 @@ function overrideChip(theme) {
2347
2341
  color: 'unset',
2348
2342
  height: 'unset',
2349
2343
  borderRadius: 4,
2350
- backgroundColor: Color.Silver200,
2344
+ backgroundColor: exports.Color.Silver200,
2351
2345
  ["&.".concat(material.chipClasses.disabled)]: {
2352
2346
  opacity: 1,
2353
- color: Color.Dark100
2347
+ color: exports.Color.Dark100
2354
2348
  }
2355
2349
  }),
2356
2350
  sizeSmall: {
@@ -2366,22 +2360,22 @@ function overrideChip(theme) {
2366
2360
  },
2367
2361
  clickable: {
2368
2362
  '&:hover, &:focus': {
2369
- backgroundColor: Color.Silver200
2363
+ backgroundColor: exports.Color.Silver200
2370
2364
  },
2371
2365
  '&:active': {
2372
2366
  boxShadow: 'unset'
2373
2367
  },
2374
2368
  '&:focus': {
2375
- boxShadow: "0 0 0 2px ".concat(Color.Silver300)
2369
+ boxShadow: "0 0 0 2px ".concat(exports.Color.Silver300)
2376
2370
  },
2377
2371
  '&:active, &:hover': {
2378
- backgroundColor: Color.Silver300
2372
+ backgroundColor: exports.Color.Silver300
2379
2373
  }
2380
2374
  },
2381
2375
  deletable: {
2382
2376
  '&:focus': {
2383
- backgroundColor: Color.Silver200,
2384
- boxShadow: "0 0 0 2px ".concat(Color.Silver300)
2377
+ backgroundColor: exports.Color.Silver200,
2378
+ boxShadow: "0 0 0 2px ".concat(exports.Color.Silver300)
2385
2379
  }
2386
2380
  },
2387
2381
  deleteIcon: {
@@ -2392,12 +2386,12 @@ function overrideChip(theme) {
2392
2386
  transition: theme.transitions.create('background-color'),
2393
2387
  '&:active, &:hover, &:focus': {
2394
2388
  '& > svg': {
2395
- backgroundColor: Color.Silver400
2389
+ backgroundColor: exports.Color.Silver400
2396
2390
  }
2397
2391
  },
2398
2392
  '& > svg': {
2399
2393
  borderRadius: '50%',
2400
- color: Color.Dark200,
2394
+ color: exports.Color.Dark200,
2401
2395
  fontSize: '1em'
2402
2396
  }
2403
2397
  },
@@ -2412,7 +2406,7 @@ function overrideChip(theme) {
2412
2406
  }
2413
2407
  },
2414
2408
  icon: {
2415
- color: Color.Dark100,
2409
+ color: exports.Color.Dark100,
2416
2410
  fontSize: '1em',
2417
2411
  marginRight: 'unset'
2418
2412
  },
@@ -2496,37 +2490,37 @@ function overrideIconButton(theme) {
2496
2490
  root: {
2497
2491
  // no selector for default color
2498
2492
  ["&:not(.".concat(material.iconButtonClasses.colorInherit, "):not(.").concat(material.iconButtonClasses.colorPrimary, "):not(.").concat(material.iconButtonClasses.colorSecondary, "):not(.").concat(material.iconButtonClasses.disabled, ")")]: {
2499
- color: Color.Dark100
2493
+ color: exports.Color.Dark100
2500
2494
  },
2501
- backgroundColor: Color.Transparent,
2495
+ backgroundColor: exports.Color.Transparent,
2502
2496
  transition: theme.transitions.create(['color', 'background-color'], {
2503
2497
  duration: theme.transitions.duration.short
2504
2498
  }),
2505
2499
  '&:hover': {
2506
- backgroundColor: Color.Transparent
2500
+ backgroundColor: exports.Color.Transparent
2507
2501
  },
2508
2502
  '&:active': {
2509
- color: Color.Dark500
2503
+ color: exports.Color.Dark500
2510
2504
  },
2511
2505
  '&:hover ': {
2512
- color: Color.Dark300
2506
+ color: exports.Color.Dark300
2513
2507
  },
2514
2508
  '&:focus': {
2515
- backgroundColor: Color.Silver400
2509
+ backgroundColor: exports.Color.Silver400
2516
2510
  },
2517
2511
  ["&.".concat(material.iconButtonClasses.disabled)]: {
2518
- color: Color.Silver500
2512
+ color: exports.Color.Silver500
2519
2513
  }
2520
2514
  },
2521
2515
  colorPrimary: {
2522
2516
  '&:active': {
2523
- color: Color.Blue500
2517
+ color: exports.Color.Blue500
2524
2518
  },
2525
2519
  '&:hover ': {
2526
- color: Color.Blue300
2520
+ color: exports.Color.Blue300
2527
2521
  },
2528
2522
  '&:focus': {
2529
- backgroundColor: Color.Blue50
2523
+ backgroundColor: exports.Color.Blue50
2530
2524
  }
2531
2525
  },
2532
2526
  edgeEnd: {
@@ -2564,7 +2558,7 @@ function overrideLink(theme) {
2564
2558
  backgroundSize: '100% 1px',
2565
2559
  backgroundRepeat: 'repeat-x',
2566
2560
  backgroundPosition: '0 100%',
2567
- backgroundColor: Color.Transparent,
2561
+ backgroundColor: exports.Color.Transparent,
2568
2562
  '&:focus': {
2569
2563
  outline: 'none'
2570
2564
  },
@@ -2574,10 +2568,10 @@ function overrideLink(theme) {
2574
2568
  },
2575
2569
  // @ts-expect-error type def need in patch-package
2576
2570
  colorTextPrimary: {
2577
- backgroundImage: line(Color.Silver500),
2571
+ backgroundImage: line(exports.Color.Silver500),
2578
2572
  '&:focus, &:hover, &:active': {
2579
- color: Color.Blue300,
2580
- backgroundImage: line(Color.Blue300)
2573
+ color: exports.Color.Blue300,
2574
+ backgroundImage: line(exports.Color.Blue300)
2581
2575
  }
2582
2576
  },
2583
2577
  button: {
@@ -2599,92 +2593,16 @@ function overrideList(theme) {
2599
2593
  styleOverrides: {
2600
2594
  root: {
2601
2595
  ["&.".concat(material.listItemClasses.selected, ", &.").concat(material.listItemClasses.selected, ":hover")]: {
2602
- backgroundColor: Color.Blue50
2596
+ backgroundColor: exports.Color.Blue50
2603
2597
  },
2604
2598
  '& .MuiTouchRipple-root': {
2605
- color: Color.Blue100
2599
+ color: exports.Color.Blue100
2606
2600
  }
2607
2601
  }
2608
2602
  }
2609
2603
  };
2610
2604
  }
2611
2605
 
2612
- (function (Color) {
2613
- Color["White"] = "#fff";
2614
- Color["White50"] = "rgba(255, 255, 255, 0.5)";
2615
- Color["White40"] = "rgba(255, 255, 255, 0.4)";
2616
- Color["White20"] = "rgba(255, 255, 255, 0.2)";
2617
- Color["White10"] = "rgba(255, 255, 255, 0.1)";
2618
- Color["White08"] = "rgba(255, 255, 255, 0.08)";
2619
- Color["Transparent"] = "rgba(0, 0, 0, 0)";
2620
- Color["Black"] = "#000";
2621
- Color["Black50"] = "rgba(0, 0, 0, 0.5)";
2622
- Color["Black20"] = "rgba(0, 0, 0, 0.2)";
2623
- Color["Grey100"] = "#8F949E";
2624
- Color["Grey200"] = "#6A707C";
2625
- Color["Grey300"] = "#5B6371";
2626
- Color["Grey400"] = "#323C4E";
2627
- Color["Grey450"] = "#222F44";
2628
- Color["Grey500"] = "#192334";
2629
- Color["Dark100"] = "#8F949E";
2630
- Color["Dark200"] = "#6A707C";
2631
- Color["Dark300"] = "#5B6371";
2632
- Color["Dark400"] = "#323C4E";
2633
- Color["Dark450"] = "#222F44";
2634
- Color["Dark500"] = "#192334";
2635
- Color["Silver100"] = "#F6F7F8";
2636
- Color["Silver200"] = "#F3F5F8";
2637
- Color["Silver300"] = "#E8ECF0";
2638
- Color["Silver400"] = "#E1E5EA";
2639
- Color["Silver500"] = "#C4CDD5";
2640
- Color["Blue50"] = "#EBF4FF";
2641
- Color["Blue75"] = "#CCE5FF";
2642
- Color["Blue100"] = "#A8D1FF";
2643
- Color["Blue200"] = "#66ADFF";
2644
- Color["Blue300"] = "#0075FF";
2645
- Color["Blue400"] = "#0063DB";
2646
- Color["Blue500"] = "#0050B2";
2647
- Color["Green50"] = "#ECF9EF";
2648
- Color["Green75"] = "#C8F4D1";
2649
- Color["Green100"] = "#90EAAE";
2650
- Color["Green200"] = "#5DDA87";
2651
- Color["Green300"] = "#1FA84D";
2652
- Color["Green400"] = "#1E8F46";
2653
- Color["Green500"] = "#19803D";
2654
- Color["Purple50"] = "#EFEEFC";
2655
- Color["Purple75"] = "#DCDBF5";
2656
- Color["Purple100"] = "#CBC8EE";
2657
- Color["Purple200"] = "#A7A1E8";
2658
- Color["Purple300"] = "#6559CF";
2659
- Color["Purple400"] = "#473ABB";
2660
- Color["Purple500"] = "#3A2F9D";
2661
- Color["Red50"] = "#FFEDEB";
2662
- Color["Red75"] = "#FDD9D3";
2663
- Color["Red100"] = "#FDC2BA";
2664
- Color["Red200"] = "#FE988B";
2665
- Color["Red300"] = "#EE3017";
2666
- Color["Red400"] = "#D9210D";
2667
- Color["Red500"] = "#C31909";
2668
- Color["Teal50"] = "#E3F6FC";
2669
- Color["Teal75"] = "#BEEDF9";
2670
- Color["Teal100"] = "#91E3F8";
2671
- Color["Teal200"] = "#61D3EF";
2672
- Color["Teal300"] = "#00A0CC";
2673
- Color["Teal400"] = "#008DB8";
2674
- Color["Teal500"] = "#007DA3";
2675
- Color["Yellow50"] = "#FFF9E5";
2676
- Color["Yellow75"] = "#FFF1C2";
2677
- Color["Yellow100"] = "#FFE494";
2678
- Color["Yellow200"] = "#FFDC6B";
2679
- Color["Yellow300"] = "#FFCB47";
2680
- Color["Yellow400"] = "#FFA91F";
2681
- Color["Yellow500"] = "#DB7500";
2682
- })(exports.Color || (exports.Color = {}));
2683
-
2684
- function isColorProp$1(name) {
2685
- return typeof name == 'string' && Object.prototype.hasOwnProperty.call(exports.Color, name);
2686
- }
2687
-
2688
2606
  function overrideMenu(theme) {
2689
2607
  theme.components.MuiMenu = {
2690
2608
  defaultProps: {
@@ -2721,30 +2639,30 @@ function overridePagination(theme) {
2721
2639
  theme.components.MuiPaginationItem = {
2722
2640
  styleOverrides: {
2723
2641
  root: {
2724
- color: Color.Dark400
2642
+ color: exports.Color.Dark400
2725
2643
  },
2726
2644
  page: {
2727
2645
  '&:hover': {
2728
- backgroundColor: Color.Silver200
2646
+ backgroundColor: exports.Color.Silver200
2729
2647
  },
2730
2648
  ["&.".concat(material.paginationItemClasses.focusVisible)]: {
2731
2649
  borderRadius: 4,
2732
- backgroundColor: Color.White,
2733
- border: "1px solid ".concat(Color.Blue100)
2650
+ backgroundColor: exports.Color.White,
2651
+ border: "1px solid ".concat(exports.Color.Blue100)
2734
2652
  },
2735
2653
  ["&.".concat(material.paginationItemClasses.selected)]: {
2736
- backgroundColor: Color.Silver400,
2654
+ backgroundColor: exports.Color.Silver400,
2737
2655
  ["&:hover, &.".concat(material.paginationItemClasses.focusVisible)]: {
2738
- backgroundColor: Color.Silver400
2656
+ backgroundColor: exports.Color.Silver400
2739
2657
  },
2740
2658
  ["&.".concat(material.paginationItemClasses.disabled)]: {
2741
- color: Color.Dark100,
2742
- backgroundColor: Color.Silver400
2659
+ color: exports.Color.Dark100,
2660
+ backgroundColor: exports.Color.Silver400
2743
2661
  }
2744
2662
  },
2745
2663
  ["&.".concat(material.paginationItemClasses.disabled)]: {
2746
2664
  opacity: 1,
2747
- color: Color.Dark100
2665
+ color: exports.Color.Dark100
2748
2666
  }
2749
2667
  }
2750
2668
  }
@@ -2758,7 +2676,7 @@ function overridePaper(theme) {
2758
2676
  },
2759
2677
  styleOverrides: {
2760
2678
  elevation0: {
2761
- border: "1px solid ".concat(Color.Silver400)
2679
+ border: "1px solid ".concat(exports.Color.Silver400)
2762
2680
  }
2763
2681
  }
2764
2682
  };
@@ -2773,7 +2691,7 @@ function overrideRadio(theme) {
2773
2691
  cx: "12",
2774
2692
  cy: "12",
2775
2693
  r: "8.5",
2776
- fill: Color.White,
2694
+ fill: exports.Color.White,
2777
2695
  stroke: "currentColor"
2778
2696
  })
2779
2697
  }),
@@ -2788,22 +2706,22 @@ function overrideRadio(theme) {
2788
2706
  cx: "12",
2789
2707
  cy: "12",
2790
2708
  r: "4",
2791
- fill: Color.White
2709
+ fill: exports.Color.White
2792
2710
  })]
2793
2711
  })
2794
2712
  },
2795
2713
  styleOverrides: {
2796
2714
  root: {
2797
- color: Color.Dark100,
2715
+ color: exports.Color.Dark100,
2798
2716
  marginTop: theme.spacing(-0.625),
2799
2717
  marginBottom: theme.spacing(-0.625)
2800
2718
  },
2801
2719
  colorPrimary: {
2802
2720
  ["&.".concat(material.radioClasses.disabled, ".").concat(material.radioClasses.checked)]: {
2803
- color: Color.Silver500
2721
+ color: exports.Color.Silver500
2804
2722
  },
2805
2723
  ["&:hover:not(.".concat(material.radioClasses.checked, ")")]: {
2806
- color: Color.Dark100
2724
+ color: exports.Color.Dark100
2807
2725
  }
2808
2726
  }
2809
2727
  }
@@ -2873,7 +2791,7 @@ function overrideSvgIcon(theme) {
2873
2791
  fontSize: 'var(--mui-svg-icon-size, 32px)'
2874
2792
  },
2875
2793
  colorAction: {
2876
- color: Color.Dark100
2794
+ color: exports.Color.Dark100
2877
2795
  }
2878
2796
  }
2879
2797
  };
@@ -2900,7 +2818,7 @@ function overrideSwitch(theme) {
2900
2818
  },
2901
2819
  track: {
2902
2820
  opacity: 1,
2903
- boxShadow: "0 0 0 0 ".concat(Color.Transparent),
2821
+ boxShadow: "0 0 0 0 ".concat(exports.Color.Transparent),
2904
2822
  transition: theme.transitions.create(['box-shadow', 'background-color'], {
2905
2823
  duration: theme.transitions.duration.shortest
2906
2824
  }),
@@ -2910,7 +2828,7 @@ function overrideSwitch(theme) {
2910
2828
  }
2911
2829
  },
2912
2830
  thumb: {
2913
- color: Color.White,
2831
+ color: exports.Color.White,
2914
2832
  boxShadow: 'none',
2915
2833
  width: theme.spacing(3),
2916
2834
  height: theme.spacing(3),
@@ -2942,24 +2860,24 @@ function overrideSwitch(theme) {
2942
2860
  ["&.".concat(material.switchClasses.checked)]: {
2943
2861
  '&:hover': {
2944
2862
  ["& + .".concat(material.switchClasses.track)]: {
2945
- backgroundColor: Color.Blue400
2863
+ backgroundColor: exports.Color.Blue400
2946
2864
  }
2947
2865
  }
2948
2866
  },
2949
2867
  ["& + .".concat(material.switchClasses.track)]: {
2950
- backgroundColor: Color.Silver500
2868
+ backgroundColor: exports.Color.Silver500
2951
2869
  },
2952
2870
  ["&.".concat(material.switchClasses.disabled, " + .").concat(material.switchClasses.track)]: {
2953
- backgroundColor: Color.Silver300
2871
+ backgroundColor: exports.Color.Silver300
2954
2872
  },
2955
2873
  ["&.".concat(material.switchClasses.checked, ".").concat(material.switchClasses.disabled, " + .").concat(material.switchClasses.track)]: {
2956
- backgroundColor: Color.Blue100
2874
+ backgroundColor: exports.Color.Blue100
2957
2875
  },
2958
2876
  ["&:hover + .".concat(material.switchClasses.track)]: {
2959
- backgroundColor: Color.Dark100
2877
+ backgroundColor: exports.Color.Dark100
2960
2878
  },
2961
2879
  ["&.Mui-focusVisible + .".concat(material.switchClasses.track)]: {
2962
- boxShadow: "0 0 0 3px ".concat(Color.Blue100)
2880
+ boxShadow: "0 0 0 3px ".concat(exports.Color.Blue100)
2963
2881
  }
2964
2882
  }
2965
2883
  }
@@ -2979,7 +2897,7 @@ function overrideTabs(theme) {
2979
2897
  },
2980
2898
  scrollButtons: {
2981
2899
  opacity: 1,
2982
- color: Color.Dark100,
2900
+ color: exports.Color.Dark100,
2983
2901
  width: theme.spacing(4),
2984
2902
  transition: theme.transitions.create('opacity', {
2985
2903
  duration: theme.transitions.duration.short
@@ -3001,9 +2919,9 @@ function overrideTabs(theme) {
3001
2919
  }
3002
2920
  }),
3003
2921
  textColorPrimary: {
3004
- color: Color.Dark500,
2922
+ color: exports.Color.Dark500,
3005
2923
  '&:hover, &:focus': {
3006
- color: Color.Blue300
2924
+ color: exports.Color.Blue300
3007
2925
  }
3008
2926
  }
3009
2927
  }
@@ -3031,15 +2949,15 @@ function overrideTextField(theme) {
3031
2949
  theme.components.MuiFormLabel = {
3032
2950
  styleOverrides: {
3033
2951
  root: _objectSpread(_objectSpread({}, theme.typography.body2), {}, {
3034
- color: Color.Dark400,
2952
+ color: exports.Color.Dark400,
3035
2953
  ["&.".concat(material.formLabelClasses.error)]: {
3036
- color: Color.Dark400
2954
+ color: exports.Color.Dark400
3037
2955
  },
3038
2956
  ["&.".concat(material.formLabelClasses.focused)]: {
3039
- color: Color.Dark400
2957
+ color: exports.Color.Dark400
3040
2958
  },
3041
2959
  ["&.".concat(material.formLabelClasses.disabled)]: {
3042
- color: Color.Dark400
2960
+ color: exports.Color.Dark400
3043
2961
  }
3044
2962
  })
3045
2963
  }
@@ -3048,7 +2966,7 @@ function overrideTextField(theme) {
3048
2966
  styleOverrides: {
3049
2967
  root: _objectSpread(_objectSpread({}, theme.typography.body2), {}, {
3050
2968
  ["&.".concat(material.inputBaseClasses.disabled)]: {
3051
- backgroundColor: Color.Silver100
2969
+ backgroundColor: exports.Color.Silver100
3052
2970
  }
3053
2971
  }),
3054
2972
  input: {
@@ -3096,7 +3014,7 @@ function overrideTextField(theme) {
3096
3014
  styleOverrides: {
3097
3015
  root: {
3098
3016
  ["&:hover .".concat(material.outlinedInputClasses.notchedOutline)]: {
3099
- borderColor: Color.Silver500
3017
+ borderColor: exports.Color.Silver500
3100
3018
  }
3101
3019
  },
3102
3020
  input: {
@@ -3128,7 +3046,7 @@ function overrideTextField(theme) {
3128
3046
  },
3129
3047
  notchedOutline: {
3130
3048
  top: 0,
3131
- borderColor: Color.Silver500,
3049
+ borderColor: exports.Color.Silver500,
3132
3050
  '& legend': {
3133
3051
  display: 'none'
3134
3052
  }
@@ -3143,7 +3061,7 @@ function overrideTextField(theme) {
3143
3061
  icon: {
3144
3062
  top: 'calc(50% - 0.5em)',
3145
3063
  '$disabled &': {
3146
- color: Color.Dark100
3064
+ color: exports.Color.Dark100
3147
3065
  },
3148
3066
  fontSize: theme.spacing(3),
3149
3067
  [sm]: {
@@ -3235,7 +3153,7 @@ function overrideTooltip(theme) {
3235
3153
  styleOverrides: {
3236
3154
  tooltip: _objectSpread(_objectSpread({}, theme.typography.body2), {}, {
3237
3155
  padding: theme.spacing(1, 1.5),
3238
- backgroundColor: Color.Dark400
3156
+ backgroundColor: exports.Color.Dark400
3239
3157
  }),
3240
3158
  popperArrow: {
3241
3159
  ["&[data-popper-placement*=\"top\"] .".concat(material.tooltipClasses.arrow)]: {
@@ -3260,7 +3178,7 @@ function overrideTooltip(theme) {
3260
3178
  }
3261
3179
  },
3262
3180
  arrow: {
3263
- color: Color.Dark400,
3181
+ color: exports.Color.Dark400,
3264
3182
  fontSize: theme.spacing(1)
3265
3183
  }
3266
3184
  }
@@ -3393,23 +3311,23 @@ function createSuperDispatchTheme() {
3393
3311
  breakpoints,
3394
3312
  palette: {
3395
3313
  primary: {
3396
- main: Color.Blue300
3314
+ main: exports.Color.Blue300
3397
3315
  },
3398
3316
  error: {
3399
- main: Color.Red300
3317
+ main: exports.Color.Red300
3400
3318
  },
3401
3319
  action: {
3402
- hover: Color.Silver100,
3403
- selected: Color.Silver300,
3404
- disabled: Color.Silver400
3320
+ hover: exports.Color.Silver100,
3321
+ selected: exports.Color.Silver300,
3322
+ disabled: exports.Color.Silver400
3405
3323
  },
3406
3324
  text: {
3407
- primary: Color.Dark500,
3408
- secondary: Color.Dark200,
3325
+ primary: exports.Color.Dark500,
3326
+ secondary: exports.Color.Dark200,
3409
3327
  // hint: Color.Dark100, todo
3410
- disabled: Color.Dark100
3328
+ disabled: exports.Color.Dark100
3411
3329
  },
3412
- divider: Color.Silver400
3330
+ divider: exports.Color.Silver400
3413
3331
  },
3414
3332
  typography: createTypographyOptions(breakpoints),
3415
3333
  components: {}
@@ -3584,3448 +3502,49 @@ var Tiles = /*#__PURE__*/react.forwardRef((_ref, ref) => {
3584
3502
  });
3585
3503
  if (process.env.NODE_ENV !== "production") Tiles.displayName = "Tiles";
3586
3504
 
3587
-
3588
-
3589
- var index = /*#__PURE__*/Object.freeze({
3590
- __proto__: null,
3591
- AdaptiveToolbar: AdaptiveToolbar,
3592
- AvatarButton: AvatarButton,
3593
- Button: Button,
3594
- CardButton: CardButton,
3595
- CheckboxField: CheckboxField,
3596
- CheckboxGroupField: CheckboxGroupField,
3597
- Column: Column,
3598
- Columns: Columns,
3599
- DescriptionListItem: DescriptionListItem,
3600
- DescriptionList: DescriptionList,
3601
- DrawerActions: DrawerActions,
3602
- DrawerContent: DrawerContent,
3603
- DrawerList: DrawerList,
3604
- DrawerTitle: DrawerTitle,
3605
- GridStack: GridStack,
3606
- InlineGrid: InlineGrid,
3607
- InfoCard: InfoCard,
3608
- Inline: Inline,
3609
- OverflowText: OverflowText,
3610
- parseAlignProp: parseAlignProp,
3611
- parseCollapsedBelow: parseCollapsedBelow,
3612
- parseResponsiveProp: parseResponsiveProp,
3613
- useResponsiveProp: useResponsiveProp,
3614
- useResponsiveValue: useResponsiveValue,
3615
- useResponsivePropRecord: useResponsivePropRecord,
3616
- parseSpaceProp: parseSpaceProp,
3617
- RadioField: RadioField,
3618
- RadioGroupField: RadioGroupField,
3619
- Snackbar: Snackbar,
3620
- SnackbarContent: SnackbarContent,
3621
- useSnackbarStack: useSnackbarStack,
3622
- SnackbarStackConsumer: SnackbarStackConsumer,
3623
- SnackbarStackProvider: SnackbarStackProvider,
3624
- Stack: Stack,
3625
- Tag: Tag,
3626
- get Color () { return Color; },
3627
- isColorProp: isColorProp,
3628
- ThemeProvider: ThemeProvider,
3629
- Tiles: Tiles,
3630
- isEmptyReactNode: isEmptyReactNode,
3631
- mergeRefs: mergeRefs,
3632
- assignRef: assignRef,
3633
- renderChildren: renderChildren,
3634
- useUID: useUID,
3635
- useVisibilityObserver: useVisibilityObserver,
3636
- VisibilityObserver: VisibilityObserver
3637
- });
3638
-
3639
- var _excluded$k = ["size", "children", "disabled", "isActive", "isLoading", "color"];
3640
- var Button$1 = /*#__PURE__*/react.forwardRef((_ref, ref) => {
3641
- var {
3642
- size,
3643
- children,
3644
- disabled,
3645
- isActive,
3646
- isLoading,
3647
- color = 'primary'
3648
- } = _ref,
3649
- props = _objectWithoutProperties(_ref, _excluded$k);
3650
-
3651
- return /*#__PURE__*/jsxRuntime.jsx(core.Button, _objectSpread(_objectSpread({}, props), {}, {
3652
- ref: ref,
3653
- size: size,
3654
- "data-color": color,
3655
- "aria-busy": isLoading,
3656
- "aria-expanded": isActive,
3657
- disabled: disabled || isLoading,
3658
- color: color === 'primary' ? color : 'default',
3659
- children: !isLoading ? children : /*#__PURE__*/jsxRuntime.jsxs(jsxRuntime.Fragment, {
3660
- children: [children, /*#__PURE__*/jsxRuntime.jsx(core.CircularProgress, {
3661
- size: "1em",
3662
- color: "inherit"
3663
- })]
3664
- })
3665
- }));
3666
- });
3667
- if (process.env.NODE_ENV !== "production") Button$1.displayName = "Button";
3668
-
3669
- var _excluded$l = ["items"];
3670
-
3671
- function useResizeObserver$1(node, observer) {
3672
- var handler = hooks.useEventHandler(observer);
3673
- react.useLayoutEffect(() => {
3674
- if (!node) {
3675
- return;
3676
- }
3677
-
3678
- var resizeObserver$1 = new resizeObserver.ResizeObserver(() => {
3679
- handler(node);
3680
- });
3681
- resizeObserver$1.observe(node);
3682
- handler(node);
3683
- return () => {
3684
- resizeObserver$1.disconnect();
3685
- };
3686
- }, [node, handler]);
3687
- }
3688
-
3689
- var useStyles$3 = /*#__PURE__*/styles$1.makeStyles({
3690
- actions: {
3691
- overflow: 'hidden'
3692
- }
3693
- }, {
3694
- name: 'SD-AdaptiveToolbar'
3695
- });
3696
- var AdaptiveToolbar$1 = /*#__PURE__*/react.forwardRef((_ref, ref) => {
3697
- var {
3698
- items
3699
- } = _ref,
3700
- props = _objectWithoutProperties(_ref, _excluded$l);
3701
-
3702
- var styles = useStyles$3();
3703
- var itemNodes = react.useRef([]);
3704
- var optionsButtonRef = react.useRef(null);
3705
- var [firstHiddenIdx, setFirstHiddenIdx] = react.useState(-1);
3706
- var menuItems = firstHiddenIdx === -1 ? [] : items.slice(firstHiddenIdx);
3707
- var [menuButtonNode, setMenuButtonRef] = react.useState();
3708
- var [rootNode, setRootNode] = react.useState(null);
3709
- useResizeObserver$1(rootNode, node => {
3710
- var _optionsButtonRef$cur;
3711
-
3712
- var rootRect = node.getBoundingClientRect();
3713
- var rootWidth = rootRect.left + rootRect.width;
3714
- var optionsButtonRect = (_optionsButtonRef$cur = optionsButtonRef.current) === null || _optionsButtonRef$cur === void 0 ? void 0 : _optionsButtonRef$cur.getBoundingClientRect();
3715
- var optionsButtonWidth = (optionsButtonRect === null || optionsButtonRect === void 0 ? void 0 : optionsButtonRect.width) || 0;
3716
- var maxRightPosition = rootWidth - optionsButtonWidth;
3717
- var mountedNodes = itemNodes.current.filter(x => x != null);
3718
- var hiddenIdx = mountedNodes.findIndex((itemNode, idx) => {
3719
- itemNode.removeAttribute('hidden');
3720
- var itemRect = itemNode.getBoundingClientRect();
3721
- var itemRightPosition = itemRect.left + itemRect.width; // Ignore options button width when checking last item.
3722
-
3723
- if (idx === mountedNodes.length - 1) {
3724
- return itemRightPosition > rootWidth;
3725
- }
3726
-
3727
- return itemRightPosition > maxRightPosition;
3728
- });
3729
-
3730
- if (hiddenIdx !== -1) {
3731
- mountedNodes.slice(hiddenIdx).forEach(itemNode => {
3732
- itemNode.setAttribute('hidden', 'true');
3733
- });
3734
- }
3735
-
3736
- setFirstHiddenIdx(hiddenIdx);
3737
- });
3738
- return /*#__PURE__*/jsxRuntime.jsx(core.Toolbar, _objectSpread(_objectSpread({}, props), {}, {
3739
- ref: ref,
3740
- children: /*#__PURE__*/jsxRuntime.jsxs(core.Grid, {
3741
- container: true,
3742
- spacing: 1,
3743
- wrap: "nowrap",
3744
- ref: setRootNode,
3745
- children: [/*#__PURE__*/jsxRuntime.jsx(core.Grid, {
3746
- item: true,
3747
- className: styles.actions,
3748
- children: /*#__PURE__*/jsxRuntime.jsx(core.Grid, {
3749
- container: true,
3750
- spacing: 1,
3751
- wrap: "nowrap",
3752
- component: "div",
3753
- children: items.map((item, idx) => /*#__PURE__*/jsxRuntime.jsx(core.Grid, {
3754
- item: true,
3755
- ref: node => {
3756
- itemNodes.current[idx] = node;
3757
- },
3758
- children: /*#__PURE__*/jsxRuntime.jsx(Button$1, _objectSpread(_objectSpread({
3759
- type: "button",
3760
- onClick: item.onClick
3761
- }, item.ButtonProps), {}, {
3762
- children: /*#__PURE__*/jsxRuntime.jsx(core.Typography, {
3763
- noWrap: true,
3764
- variant: "inherit",
3765
- children: item.label
3766
- })
3767
- }))
3768
- }, item.key))
3769
- })
3770
- }), menuItems.length > 0 && /*#__PURE__*/jsxRuntime.jsxs(core.Grid, {
3771
- item: true,
3772
- ref: optionsButtonRef,
3773
- component: "div",
3774
- children: [/*#__PURE__*/jsxRuntime.jsx(Button$1, {
3775
- type: "button",
3776
- onClick: _ref2 => {
3777
- var {
3778
- currentTarget
3779
- } = _ref2;
3780
- setMenuButtonRef(currentTarget);
3781
- },
3782
- children: /*#__PURE__*/jsxRuntime.jsx(icons.MoreHoriz, {})
3783
- }), /*#__PURE__*/jsxRuntime.jsx(core.Menu, {
3784
- open: !!menuButtonNode,
3785
- anchorEl: menuButtonNode,
3786
- onClose: () => {
3787
- setMenuButtonRef(undefined);
3788
- },
3789
- children: menuItems.map(item => /*#__PURE__*/jsxRuntime.jsx(core.MenuItem, {
3790
- onClick: event => {
3791
- var _item$onClick;
3792
-
3793
- (_item$onClick = item.onClick) === null || _item$onClick === void 0 ? void 0 : _item$onClick.call(item, event);
3794
- setMenuButtonRef(undefined);
3795
- },
3796
- children: item.label
3797
- }, item.key))
3798
- })]
3799
- })]
3800
- })
3801
- }));
3802
- });
3803
- if (process.env.NODE_ENV !== "production") AdaptiveToolbar$1.displayName = "AdaptiveToolbar";
3804
-
3805
- var _excluded$m = ["size", "icon", "isLoading", "classes", "disabled", "avatarRef", "className", "alt", "imgProps", "sizes", "src", "srcSet", "variant", "children"],
3806
- _excluded2$2 = ["button", "overlay", "progress", "withIcon", "sizeLarge"];
3807
- var useStyles$4 = /*#__PURE__*/styles$1.makeStyles(theme => {
3808
- var sm = theme.breakpoints.up('sm');
3809
- return {
3810
- button: {
3811
- borderRadius: '50%',
3812
- '&[disabled], &[aria-busy="true"]': {
3813
- '& > $overlay': {
3814
- backgroundColor: exports.Color.White50
3815
- }
3816
- },
3817
- '&:not([disabled])[aria-busy="false"]': {
3818
- '&:hover, &:focus': {
3819
- '&$withIcon > $overlay': {
3820
- backgroundColor: exports.Color.Black50,
3821
- '& > svg': {
3822
- opacity: 1
3823
- }
3824
- },
3825
- '&:not($withIcon) > $overlay': {
3826
- backgroundColor: exports.Color.Black20
3827
- }
3828
- }
3829
- }
3830
- },
3831
- overlay: {
3832
- top: 0,
3833
- left: 0,
3834
- right: 0,
3835
- bottom: 0,
3836
- position: 'absolute',
3837
- display: 'flex',
3838
- alignItems: 'center',
3839
- justifyContent: 'center',
3840
- borderRadius: '50%',
3841
- backgroundColor: exports.Color.Transparent,
3842
- transition: theme.transitions.create('background-color'),
3843
- '& > svg': {
3844
- opacity: 0,
3845
- color: exports.Color.White,
3846
- transition: theme.transitions.create('opacity'),
3847
- fontSize: theme.spacing(3),
3848
- [sm]: {
3849
- fontSize: theme.spacing(2)
3850
- }
3851
- }
3852
- },
3853
- progress: {
3854
- top: 0,
3855
- left: 0,
3856
- position: 'absolute',
3857
- fontSize: theme.spacing(5),
3858
- [sm]: {
3859
- fontSize: theme.spacing(4)
3860
- }
3861
- },
3862
- withIcon: {},
3863
- sizeLarge: {
3864
- '& > $root': _objectSpread(_objectSpread({}, theme.typography.h2), {}, {
3865
- width: theme.spacing(7),
3866
- height: theme.spacing(7),
3867
- [sm]: {
3868
- width: theme.spacing(8),
3869
- height: theme.spacing(8)
3870
- }
3871
- }),
3872
- '& > $overlay': {
3873
- '& > $progress': {
3874
- fontSize: theme.spacing(7),
3875
- [sm]: {
3876
- fontSize: theme.spacing(8)
3877
- }
3878
- },
3879
- '& > svg': {
3880
- fontSize: theme.spacing(4),
3881
- [sm]: {
3882
- fontSize: theme.spacing(3)
3883
- }
3884
- }
3885
- }
3886
- },
3887
- root: {},
3888
- colorDefault: {},
3889
- circular: {},
3890
- rounded: {},
3891
- square: {},
3892
- img: {},
3893
- fallback: {}
3894
- };
3895
- }, {
3896
- name: 'SD-AvatarButton'
3897
- });
3898
- var AvatarButton$1 = /*#__PURE__*/react.forwardRef((_ref, ref) => {
3899
- var {
3900
- size,
3901
- icon,
3902
- isLoading = false,
3903
- classes,
3904
- disabled = false,
3905
- avatarRef,
3906
- className,
3907
- alt,
3908
- imgProps,
3909
- sizes,
3910
- src,
3911
- srcSet,
3912
- variant,
3913
- children
3914
- } = _ref,
3915
- props = _objectWithoutProperties(_ref, _excluded$m);
3916
-
3917
- var _useStyles = useStyles$4({
3918
- classes
3919
- }),
3920
- {
3921
- button: buttonClassName,
3922
- overlay: overlayClassName,
3923
- progress: progressClassName,
3924
- withIcon: withIconClassName,
3925
- sizeLarge: sizeLargeClassName
3926
- } = _useStyles,
3927
- avatarClasses = _objectWithoutProperties(_useStyles, _excluded2$2);
3928
-
3929
- return /*#__PURE__*/jsxRuntime.jsxs(core.ButtonBase, _objectSpread(_objectSpread({}, props), {}, {
3930
- ref: ref,
3931
- "aria-busy": isLoading,
3932
- "aria-disabled": disabled,
3933
- disabled: disabled || isLoading,
3934
- className: clsx(className, buttonClassName, !!icon && withIconClassName, size === 'large' && sizeLargeClassName),
3935
- children: [/*#__PURE__*/jsxRuntime.jsx(core.Avatar, {
3936
- ref: avatarRef,
3937
- classes: avatarClasses,
3938
- variant: variant,
3939
- alt: alt,
3940
- src: src,
3941
- sizes: sizes,
3942
- srcSet: srcSet,
3943
- imgProps: imgProps,
3944
- children: children
3945
- }), /*#__PURE__*/jsxRuntime.jsxs("div", {
3946
- className: overlayClassName,
3947
- children: [icon, isLoading && /*#__PURE__*/jsxRuntime.jsx(core.CircularProgress, {
3948
- size: "1em",
3949
- className: progressClassName,
3950
- thickness: size === 'large' ? 2.5 : 1.5
3951
- })]
3952
- })]
3953
- }));
3954
- });
3955
- if (process.env.NODE_ENV !== "production") AvatarButton$1.displayName = "AvatarButton";
3956
-
3957
- var _excluded$n = ["hint", "size", "error", "classes", "className", "children", "endIcon", "startIcon", "disabled"];
3958
- var useStyles$5 = /*#__PURE__*/styles$1.makeStyles(theme => ({
3959
- root: {
3960
- width: '100%',
3961
- display: 'flex',
3962
- alignItems: 'center',
3963
- flexDirection: 'column',
3964
- justifyContent: 'center',
3965
- backgroundColor: exports.Color.White,
3966
- border: '1px dashed',
3967
- borderRadius: theme.spacing(0.5),
3968
- padding: theme.spacing(1.5),
3969
- minHeight: theme.spacing(13),
3970
- transition: theme.transitions.create(['color', 'box-shadow', 'border-color', 'background-color'])
3971
- },
3972
- disabled: {
3973
- color: exports.Color.Dark200,
3974
- borderColor: exports.Color.Silver500,
3975
- backgroundColor: exports.Color.Silver100
3976
- },
3977
- error: {
3978
- color: exports.Color.Red300,
3979
- borderColor: exports.Color.Red300,
3980
- backgroundColor: exports.Color.Red50,
3981
- '&:focus': {
3982
- backgroundColor: exports.Color.Red75
3983
- }
3984
- },
3985
- primary: {
3986
- color: exports.Color.Blue300,
3987
- borderColor: exports.Color.Silver500,
3988
- '&:focus': {
3989
- backgroundColor: exports.Color.Blue50
3990
- },
3991
- '&:hover, &:active': {
3992
- borderColor: exports.Color.Blue300,
3993
- backgroundColor: exports.Color.Blue50
3994
- }
3995
- },
3996
- sizeSmall: {
3997
- minHeight: theme.spacing(6)
3998
- },
3999
- sizeLarge: {
4000
- minHeight: theme.spacing(17.5)
4001
- },
4002
- label: {
4003
- display: 'flex',
4004
- alignItems: 'center'
4005
- },
4006
- icon: {
4007
- display: 'flex',
4008
- '& svg': {
4009
- fontSize: theme.spacing(3),
4010
- [theme.breakpoints.up('sm')]: {
4011
- fontSize: theme.spacing(2.5)
4012
- }
4013
- }
4014
- },
4015
- startIcon: {
4016
- marginRight: theme.spacing(1),
4017
- marginLeft: theme.spacing(-0.5)
4018
- },
4019
- endIcon: {
4020
- marginLeft: theme.spacing(1),
4021
- marginRight: theme.spacing(-0.5)
4022
- },
4023
- hint: {
4024
- marginTop: theme.spacing(0.5)
4025
- }
4026
- }), {
4027
- name: 'SD-CardButton'
4028
- });
4029
- var CardButton$1 = /*#__PURE__*/react.forwardRef((_ref, ref) => {
4030
- var {
4031
- hint,
4032
- size,
4033
- error,
4034
- classes,
4035
- className,
4036
- children,
4037
- endIcon,
4038
- startIcon,
4039
- disabled
4040
- } = _ref,
4041
- props = _objectWithoutProperties(_ref, _excluded$n);
4042
-
4043
- var styles = useStyles$5({
4044
- classes
4045
- });
4046
- return /*#__PURE__*/jsxRuntime.jsx(core.ButtonBase, _objectSpread(_objectSpread({}, props), {}, {
4047
- ref: ref,
4048
- disabled: disabled,
4049
- className: clsx(styles.root, className, disabled ? styles.disabled : error ? styles.error : styles.primary, {
4050
- 'small': styles.sizeSmall,
4051
- 'large': styles.sizeLarge
4052
- }[size]),
4053
- children: error ? /*#__PURE__*/jsxRuntime.jsx(core.Typography, {
4054
- variant: "h4",
4055
- color: "inherit",
4056
- className: styles.label,
4057
- children: error
4058
- }) : /*#__PURE__*/jsxRuntime.jsxs(jsxRuntime.Fragment, {
4059
- children: [/*#__PURE__*/jsxRuntime.jsxs(core.Typography, {
4060
- variant: "h4",
4061
- color: "inherit",
4062
- className: styles.label,
4063
- children: [!!startIcon && /*#__PURE__*/jsxRuntime.jsx("span", {
4064
- className: clsx(styles.icon, styles.startIcon),
4065
- children: startIcon
4066
- }), children, !!endIcon && /*#__PURE__*/jsxRuntime.jsx("span", {
4067
- className: clsx(styles.icon, styles.endIcon),
4068
- children: endIcon
4069
- })]
4070
- }), !!hint && /*#__PURE__*/jsxRuntime.jsx(core.Typography, {
4071
- color: "textSecondary",
4072
- className: styles.hint,
4073
- children: hint
4074
- })]
4075
- })
4076
- }));
4077
- });
4078
- if (process.env.NODE_ENV !== "production") CardButton$1.displayName = "CardButton";
4079
-
4080
- var _excluded$o = ["label", "error", "checked", "onBlur", "onChange", "helperText", "FormControlLabelProps"];
4081
- var CheckboxField$1 = /*#__PURE__*/react.forwardRef((_ref, ref) => {
4082
- var {
4083
- label,
4084
- error,
4085
- checked,
4086
- onBlur,
4087
- onChange,
4088
- helperText,
4089
- FormControlLabelProps: formControlLabelProps
4090
- } = _ref,
4091
- props = _objectWithoutProperties(_ref, _excluded$o);
4092
-
4093
- return /*#__PURE__*/jsxRuntime.jsxs(core.FormControl, {
4094
- error: error,
4095
- children: [/*#__PURE__*/jsxRuntime.jsx(core.FormControlLabel, _objectSpread(_objectSpread({}, formControlLabelProps), {}, {
4096
- label: label,
4097
- checked: checked,
4098
- onBlur: onBlur,
4099
- onChange: onChange,
4100
- control: /*#__PURE__*/jsxRuntime.jsx(core.Checkbox, _objectSpread({
4101
- ref: ref,
4102
- color: "primary",
4103
- disableRipple: true
4104
- }, props))
4105
- })), helperText && /*#__PURE__*/jsxRuntime.jsx(core.FormHelperText, {
4106
- children: helperText
4107
- })]
4108
- });
4109
- });
4110
- if (process.env.NODE_ENV !== "production") CheckboxField$1.displayName = "CheckboxField";
4111
-
4112
- var _excluded$p = ["FormGroupProps", "label", "FormLabelProps", "helperText", "FormHelperTextProps", "children"];
4113
- var CheckboxGroupField$1 = /*#__PURE__*/react.forwardRef((_ref, ref) => {
4114
- var {
4115
- FormGroupProps: formGroupProps,
4116
- label,
4117
- FormLabelProps: formLabelProps,
4118
- helperText,
4119
- FormHelperTextProps: formHelperTextProps,
4120
- children
4121
- } = _ref,
4122
- formControlProps = _objectWithoutProperties(_ref, _excluded$p);
4123
-
4124
- return /*#__PURE__*/jsxRuntime.jsxs(core.FormControl, _objectSpread(_objectSpread({}, formControlProps), {}, {
4125
- hiddenLabel: !label,
4126
- children: [!!label && /*#__PURE__*/jsxRuntime.jsx(core.FormLabel, _objectSpread(_objectSpread({}, formLabelProps), {}, {
4127
- children: label
4128
- })), /*#__PURE__*/jsxRuntime.jsx(core.FormGroup, _objectSpread(_objectSpread({
4129
- ref: ref
4130
- }, formGroupProps), {}, {
4131
- children: children
4132
- })), !!helperText && /*#__PURE__*/jsxRuntime.jsx(core.FormHelperText, _objectSpread(_objectSpread({}, formHelperTextProps), {}, {
4133
- children: helperText
4134
- }))]
4135
- }));
4136
- });
4137
- if (process.env.NODE_ENV !== "production") CheckboxGroupField$1.displayName = "CheckboxGroupField";
4138
-
4139
- var Context$2 = /*#__PURE__*/react.createContext({});
4140
-
4141
- function useBreakpoint$1(breakpoint) {
4142
- return core.useMediaQuery(theme => theme.breakpoints.only(breakpoint));
4143
- }
4144
-
4145
- function ResponsiveContextProvider$1(_ref) {
4146
- var {
4147
- children,
4148
- defaultBreakpoint
4149
- } = _ref;
4150
- var isXS = useBreakpoint$1('xs');
4151
- var isSM = useBreakpoint$1('sm');
4152
- var isMD = useBreakpoint$1('md');
4153
- var isLG = useBreakpoint$1('lg');
4154
- var isXL = useBreakpoint$1('xl');
4155
- var breakpoint = isXS ? 'xs' : isSM ? 'sm' : isMD ? 'md' : isLG ? 'lg' : isXL ? 'xl' : defaultBreakpoint;
4156
- var ctx = react.useMemo(() => ({
4157
- breakpoint
4158
- }), [breakpoint]);
4159
- return /*#__PURE__*/jsxRuntime.jsx(Context$2.Provider, {
4160
- value: ctx,
4161
- children: children
4162
- });
4163
- }
4164
- function useResponsiveContext$1() {
4165
- return react.useContext(Context$2);
4166
- }
4167
-
4168
- function parseResponsiveProp$1(prop) {
4169
- var _tablet, _desktop;
4170
-
4171
- if (typeof prop != 'object') return [prop, prop, prop];
4172
- var [mobile, tablet, desktop] = prop;
4173
- (_tablet = tablet) !== null && _tablet !== void 0 ? _tablet : tablet = mobile;
4174
- (_desktop = desktop) !== null && _desktop !== void 0 ? _desktop : desktop = tablet;
4175
- return [mobile, tablet, desktop];
4176
- }
4177
- function useResponsiveProp$1(prop) {
4178
- return hooks.useDeepEqualValue(parseResponsiveProp$1(prop));
4179
- }
4180
- function useResponsiveValue$1(xs, sm) {
4181
- var md = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : sm;
4182
- var lg = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : md;
4183
- var xl = arguments.length > 4 && arguments[4] !== undefined ? arguments[4] : lg;
4184
- var {
4185
- breakpoint = 'xs'
4186
- } = useResponsiveContext$1();
4187
- return {
4188
- xs,
4189
- sm,
4190
- md,
4191
- lg,
4192
- xl
4193
- }[breakpoint];
4194
- }
4195
- function useResponsivePropRecord$1(prop) {
4196
- if (typeof prop != 'object') prop = {
4197
- xs: prop
4198
- };
4199
- var {
4200
- xs,
4201
- sm,
4202
- md,
4203
- lg,
4204
- xl
4205
- } = prop;
4206
- return useResponsiveValue$1(xs, sm !== null && sm !== void 0 ? sm : xs, md, lg, xl);
4207
- }
4208
-
4209
- function computeFlexBasis$1(scale) {
4210
- return "".concat(scale * 100, "%");
4211
- }
4212
-
4213
- function flexBasisMixin$1(width) {
4214
- switch (width) {
4215
- case '1/2':
4216
- return computeFlexBasis$1(1 / 2);
4217
-
4218
- case '1/3':
4219
- return computeFlexBasis$1(1 / 3);
4220
-
4221
- case '2/3':
4222
- return computeFlexBasis$1(2 / 3);
4223
-
4224
- case '1/4':
4225
- return computeFlexBasis$1(1 / 4);
4226
-
4227
- case '3/4':
4228
- return computeFlexBasis$1(3 / 4);
4229
-
4230
- case '1/5':
4231
- return computeFlexBasis$1(1 / 5);
4232
-
4233
- case '2/5':
4234
- return computeFlexBasis$1(2 / 5);
4235
-
4236
- case '3/5':
4237
- return computeFlexBasis$1(3 / 5);
4238
-
4239
- case '4/5':
4240
- return computeFlexBasis$1(4 / 5);
4241
- }
4242
-
4243
- return 'auto';
4244
- }
4245
-
4246
- function columnRootMixin$1(width) {
4247
- return styled.css(["flex-grow:0;flex-basis:", ";width:", ";flex-shrink:", ";"], flexBasisMixin$1(width), width === 'fluid' ? '100%' : 'auto', width === 'fluid' || width === 'adaptive' ? 1 : 0);
4248
- }
4249
-
4250
- var ColumnRoot$1 = /*#__PURE__*/styled__default.div.withConfig({
4251
- displayName: "Column__ColumnRoot",
4252
- componentId: "SD__sc-m9n6o6-0"
4253
- })(_ref => {
4254
- var {
4255
- theme,
4256
- columnWidth
4257
- } = _ref;
4258
- return styled.css(["min-width:0;", ";", "{", ";}", "{", ";}& > div{padding-top:var(--column-space-top);padding-left:var(--column-space-left);padding-bottom:var(--column-space-bottom);}&:last-child > div{padding-top:0;padding-bottom:0;}"], columnRootMixin$1(columnWidth[0]), theme.breakpoints.up('sm'), columnRootMixin$1(columnWidth[1]), theme.breakpoints.up('md'), columnRootMixin$1(columnWidth[2]));
4259
- });
4260
- var Column$1 = /*#__PURE__*/react.forwardRef((_ref2, ref) => {
4261
- var {
4262
- children,
4263
- 'aria-label': ariaLabel,
4264
- 'aria-labelledby': ariaLabelledBy,
4265
- width = 'fluid'
4266
- } = _ref2;
4267
- var columnWidth = useResponsiveProp$1(width);
4268
- return /*#__PURE__*/jsxRuntime.jsx(ColumnRoot$1, {
4269
- ref: ref,
4270
- columnWidth: columnWidth,
4271
- "aria-label": ariaLabel,
4272
- "aria-labelledby": ariaLabelledBy,
4273
- children: /*#__PURE__*/jsxRuntime.jsx("div", {
4274
- children: children
4275
- })
4276
- });
4277
- });
4278
- if (process.env.NODE_ENV !== "production") Column$1.displayName = "Column";
4279
-
4280
- function parseAlignProp$1(align) {
4281
- switch (align) {
4282
- case 'top':
4283
- case 'left':
4284
- default:
4285
- return 'initial';
4286
-
4287
- case 'center':
4288
- return 'center';
4289
-
4290
- case 'right':
4291
- case 'bottom':
4292
- return 'flex-end';
4293
- }
4294
- }
4295
-
4296
- function parseCollapsedBelow$1(collapsedBelow) {
4297
- return [collapsedBelow === 'tablet' || collapsedBelow === 'desktop', collapsedBelow === 'desktop', false];
4298
- }
4299
-
4300
- function parseSpaceProp$1(prop) {
4301
- switch (prop) {
4302
- case 'none':
4303
- default:
4304
- return 0;
4305
-
4306
- case 'xxsmall':
4307
- return 4;
4308
-
4309
- case 'xsmall':
4310
- return 8;
4311
-
4312
- case 'small':
4313
- return 16;
4314
-
4315
- case 'medium':
4316
- return 24;
4317
-
4318
- case 'large':
4319
- return 32;
4320
-
4321
- case 'xlarge':
4322
- return 40;
4323
-
4324
- case 'xxlarge':
4325
- return 48;
4326
- }
4327
- }
4328
-
4329
- function columnsRootMixin$1(align, spaceProp, isReversed, isCollapsed) {
4330
- var space = parseSpaceProp$1(spaceProp);
4331
- return styled.css(["--column-space-left:", "px;--column-space-top:", "px;--column-space-bottom:", "px;align-items:", ";margin-left:", "px;width:", ";flex-direction:", ";"], isCollapsed ? 0 : space, isCollapsed && isReversed ? space : 0, isCollapsed && !isReversed ? space : 0, parseAlignProp$1(align), isCollapsed ? 0 : "-".concat(space), isCollapsed ? '100%' : "calc(100% + ".concat(space, "px)"), isCollapsed ? !isReversed ? 'column' : 'column-reverse' : !isReversed ? 'row' : 'row-reverse');
4332
- }
4333
-
4334
- var Columns$1 = /*#__PURE__*/styled__default.div.withConfig({
4335
- displayName: "Columns",
4336
- componentId: "SD__sc-1a73118-0"
4337
- })(_ref => {
4338
- var {
4339
- theme,
4340
- collapseBelow,
4341
- align: alignProp = 'top',
4342
- space: spaceProp = 'none',
4343
- reverse: reverseProp = false
4344
- } = _ref;
4345
- var align = parseResponsiveProp$1(alignProp);
4346
- var space = parseResponsiveProp$1(spaceProp);
4347
- var reverse = parseResponsiveProp$1(reverseProp);
4348
- var collapsed = parseCollapsedBelow$1(collapseBelow);
4349
- return styled.css(["width:100%;display:flex;", ";", "{", ";}", "{", ";}"], columnsRootMixin$1(align[0], space[0], reverse[0], collapsed[0]), theme.breakpoints.up('sm'), columnsRootMixin$1(align[1], space[1], reverse[1], collapsed[1]), theme.breakpoints.up('md'), columnsRootMixin$1(align[2], space[2], reverse[2], collapsed[2]));
4350
- });
4351
-
4352
- function renderChildren$1(node) {
4353
- if (node == null || typeof node == 'boolean') {
4354
- return null;
4355
- } // Workaround for https://github.com/DefinitelyTyped/DefinitelyTyped/issues/18051
4356
-
4357
-
4358
- return node;
4359
- }
4360
-
4361
- var _excluded$q = ["render", "onChange"];
4362
- function useVisibilityObserver$1(node) {
4363
- var {
4364
- threshold = 0,
4365
- marginTop = '0px',
4366
- marginLeft = '0px',
4367
- marginRight = '0px',
4368
- marginBottom = '0px'
4369
- } = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
4370
- var [state, setState] = react.useState('undetermined');
4371
- var rootMargin = "".concat(marginTop, " ").concat(marginRight, " ").concat(marginBottom, " ").concat(marginLeft);
4372
- react.useLayoutEffect(() => {
4373
- if (!node || !('IntersectionObserver' in window)) {
4374
- setState('undetermined');
4375
- return;
4376
- }
4377
-
4378
- var observer = new IntersectionObserver(_ref => {
4379
- var [entry] = _ref;
4380
- setState(entry !== null && entry !== void 0 && entry.isIntersecting ? 'visible' : 'invisible');
4381
- }, {
4382
- rootMargin,
4383
- threshold
4384
- });
4385
- observer.observe(node);
4386
- return () => {
4387
- observer.disconnect();
4388
- };
4389
- }, [node, threshold, rootMargin]);
4390
- return state;
4391
- }
4392
- function VisibilityObserver$1(_ref2) {
4393
- var {
4394
- render,
4395
- onChange
4396
- } = _ref2,
4397
- options = _objectWithoutProperties(_ref2, _excluded$q);
4398
-
4399
- var [node, setNode] = react.useState(null);
4400
- var visibility = useVisibilityObserver$1(node, options);
4401
- var children = render({
4402
- ref: setNode,
4403
- visibility
4404
- });
4405
- hooks.useValueObserver(visibility, () => {
4406
- onChange === null || onChange === void 0 ? void 0 : onChange(visibility);
4407
- });
4408
- return renderChildren$1(children);
4409
- }
4410
-
4411
- var _excluded$r = ["title", "enterDelay"],
4412
- _excluded2$3 = ["onClick", "children", "className", "disableUnderline", "TooltipProps"];
4413
- var useStyles$6 = /*#__PURE__*/styles$1.makeStyles(theme => ({
4414
- root: {
4415
- marginBottom: -1,
4416
- borderBottom: '1px dashed transparent',
4417
- transition: theme.transitions.create('border'),
4418
- '&$truncated': {
4419
- cursor: 'pointer',
4420
- borderBottomColor: exports.Color.Silver500
4421
- }
4422
- },
4423
- truncated: {},
4424
- sentinel: {
4425
- width: 1,
4426
- height: '100%',
4427
- display: 'inline-block'
4428
- }
4429
- }), {
4430
- name: 'SD-OverflowText'
4431
- });
4432
- var OverflowText$1 = /*#__PURE__*/react.forwardRef((_ref, rootRef) => {
4433
- var {
4434
- onClick: _onClick,
4435
- children,
4436
- className,
4437
- disableUnderline,
4438
- TooltipProps: {
4439
- title = children,
4440
- enterDelay = 1000
4441
- } = {}
4442
- } = _ref,
4443
- tooltipProps = _objectWithoutProperties(_ref.TooltipProps, _excluded$r),
4444
- props = _objectWithoutProperties(_ref, _excluded2$3);
4445
-
4446
- var [isOpen, setIsOpen] = react.useState(false);
4447
- var styles = useStyles$6();
4448
- return /*#__PURE__*/jsxRuntime.jsx(VisibilityObserver$1, {
4449
- render: _ref2 => {
4450
- var {
4451
- ref,
4452
- visibility
4453
- } = _ref2;
4454
- var isTooltipEnabled = !!children && visibility === 'invisible';
4455
- return /*#__PURE__*/jsxRuntime.jsx(core.Tooltip, _objectSpread(_objectSpread({}, tooltipProps), {}, {
4456
- enterDelay: 1000,
4457
- title: title || '',
4458
- disableFocusListener: true,
4459
- open: isOpen && isTooltipEnabled,
4460
- onOpen: () => {
4461
- setIsOpen(true);
4462
- },
4463
- onClose: () => {
4464
- setIsOpen(false);
4465
- },
4466
- children: /*#__PURE__*/jsxRuntime.jsxs(core.Typography, _objectSpread(_objectSpread({}, props), {}, {
4467
- ref: rootRef,
4468
- noWrap: true,
4469
- onClick: event => {
4470
- setIsOpen(true);
4471
- _onClick === null || _onClick === void 0 ? void 0 : _onClick(event);
4472
- },
4473
- className: clsx(styles.root, className, !disableUnderline && visibility === 'invisible' && styles.truncated),
4474
- children: [children, !!children && /*#__PURE__*/jsxRuntime.jsx("span", {
4475
- ref: ref,
4476
- className: styles.sentinel
4477
- })]
4478
- }))
4479
- }));
4480
- }
4481
- });
4482
- });
4483
- if (process.env.NODE_ENV !== "production") OverflowText$1.displayName = "OverflowText";
4484
-
4485
- function isEmptyReactNode$1(node) {
4486
- return node == null || typeof node == 'boolean' || typeof node == 'string' && node.length === 0;
4487
- }
4488
-
4489
- var current$1 = 0;
4490
- function useUID$1(defaultID) {
4491
- var uid = react.useMemo(() => "uid_".concat(current$1 += 1), []);
4492
- return defaultID || uid;
4493
- }
4494
-
4495
- var _excluded$s = ["size"];
4496
-
4497
- function sizeVariant$1(theme, mobileSpacing, desktopSpacing) {
4498
- return {
4499
- '& > $list, & > $item': {
4500
- '&:not(:last-child)': {
4501
- paddingBottom: theme.spacing(mobileSpacing),
4502
- [theme.breakpoints.up('sm')]: {
4503
- paddingBottom: theme.spacing(desktopSpacing)
4504
- }
4505
- }
4506
- }
4507
- };
4508
- }
4509
-
4510
- var useStyles$7 = /*#__PURE__*/styles$1.makeStyles(theme => ({
4511
- list: sizeVariant$1(theme, 2, 1),
4512
- listSmall: sizeVariant$1(theme, 1, 0.5),
4513
- listLarge: sizeVariant$1(theme, 3, 2),
4514
- item: {
4515
- display: 'flex',
4516
- alignItems: 'center'
4517
- },
4518
- icon: {
4519
- display: 'inline-flex',
4520
- marginRight: theme.spacing(1),
4521
- '& > .MuiSvgIcon-root': {
4522
- color: exports.Color.Dark100,
4523
- fontSize: theme.spacing(3),
4524
- [theme.breakpoints.up('sm')]: {
4525
- fontSize: theme.spacing(2)
4526
- }
4527
- }
4528
- }
4529
- }), {
4530
- name: 'SD-DescriptionList'
4531
- }); //
4532
- // DescriptionList
4533
- //
4534
-
4535
- var DescriptionList$1 = /*#__PURE__*/react.forwardRef((_ref, ref) => {
4536
- var {
4537
- size
4538
- } = _ref,
4539
- props = _objectWithoutProperties(_ref, _excluded$s);
4540
-
4541
- var styles = useStyles$7();
4542
- return /*#__PURE__*/jsxRuntime.jsx("div", _objectSpread(_objectSpread({}, props), {}, {
4543
- ref: ref,
4544
- "data-size": size,
4545
- className: clsx(styles.list, {
4546
- 'small': styles.listSmall,
4547
- 'large': styles.listLarge
4548
- }[size])
4549
- }));
4550
- }); //
4551
- // DescriptionListItem
4552
- //
4553
-
4554
- if (process.env.NODE_ENV !== "production") DescriptionList$1.displayName = "DescriptionList";
4555
- var DescriptionListItem$1 = /*#__PURE__*/react.forwardRef((_ref2, ref) => {
4556
- var _ref3, _contentTypographyPro, _contentTypographyPro2;
4557
-
4558
- var {
4559
- inset,
4560
- icon = inset ? /*#__PURE__*/jsxRuntime.jsx(core.SvgIcon, {}) : null,
4561
- label,
4562
- labelTypographyProps,
4563
- content,
4564
- contentTypographyProps,
4565
- fallback
4566
- } = _ref2;
4567
- var styles = useStyles$7();
4568
- var labelID = useUID$1(labelTypographyProps === null || labelTypographyProps === void 0 ? void 0 : labelTypographyProps.id);
4569
- var shouldRenderFallback = isEmptyReactNode$1(content);
4570
- return /*#__PURE__*/jsxRuntime.jsxs("div", {
4571
- ref: ref,
4572
- className: styles.item,
4573
- "aria-labelledby": label != null ? labelID : undefined,
4574
- children: [!!icon && /*#__PURE__*/jsxRuntime.jsx("div", {
4575
- className: styles.icon,
4576
- children: icon
4577
- }), /*#__PURE__*/jsxRuntime.jsxs(OverflowText$1, _objectSpread(_objectSpread({}, contentTypographyProps), {}, {
4578
- component: "span",
4579
- color: shouldRenderFallback && label == null ? 'textSecondary' : 'textPrimary',
4580
- TooltipProps: _objectSpread(_objectSpread({}, contentTypographyProps === null || contentTypographyProps === void 0 ? void 0 : contentTypographyProps.TooltipProps), {}, {
4581
- 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
4582
- }),
4583
- children: [label != null && /*#__PURE__*/jsxRuntime.jsx(core.Typography, _objectSpread(_objectSpread({}, labelTypographyProps), {}, {
4584
- id: labelID,
4585
- variant: "body2",
4586
- component: "span",
4587
- color: "textSecondary",
4588
- children: label
4589
- })), label != null && ' ', !shouldRenderFallback ? content : fallback]
4590
- }))]
4591
- });
4592
- });
4593
- if (process.env.NODE_ENV !== "production") DescriptionListItem$1.displayName = "DescriptionListItem";
4594
-
4595
- var _excluded$t = ["children", "className"];
4596
- var useStyles$8 = /*#__PURE__*/styles$1.makeStyles(theme => ({
4597
- appBar: {
4598
- '&&': {
4599
- bottom: 0,
4600
- top: 'auto',
4601
- borderLeft: 'none',
4602
- borderRight: 'none',
4603
- borderBottom: 'none',
4604
- transition: theme.transitions.create(['border-color']),
4605
- '&:not($appBarSticky)': {
4606
- borderTopColor: exports.Color.Transparent
4607
- }
4608
- }
4609
- },
4610
- appBarSticky: {},
4611
- toolbar: {
4612
- '&.MuiToolbar-gutters': {
4613
- paddingLeft: theme.spacing(3),
4614
- paddingRight: theme.spacing(3),
4615
- [theme.breakpoints.up('md')]: {
4616
- paddingLeft: theme.spacing(4),
4617
- paddingRight: theme.spacing(4)
4618
- }
4619
- }
4620
- }
4621
- }), {
4622
- name: 'SD-DrawerActions'
4623
- });
4624
- var DrawerActions$1 = /*#__PURE__*/react.forwardRef((_ref, appBarRef) => {
4625
- var {
4626
- children,
4627
- className
4628
- } = _ref,
4629
- props = _objectWithoutProperties(_ref, _excluded$t);
4630
-
4631
- var styles = useStyles$8();
4632
- return /*#__PURE__*/jsxRuntime.jsx(VisibilityObserver$1, {
4633
- render: _ref2 => {
4634
- var {
4635
- ref,
4636
- visibility
4637
- } = _ref2;
4638
- return /*#__PURE__*/jsxRuntime.jsxs(jsxRuntime.Fragment, {
4639
- children: [/*#__PURE__*/jsxRuntime.jsx(core.AppBar, _objectSpread(_objectSpread({}, props), {}, {
4640
- ref: appBarRef,
4641
- position: "sticky",
4642
- className: clsx(className, styles.appBar, visibility === 'invisible' && styles.appBarSticky),
4643
- children: /*#__PURE__*/jsxRuntime.jsx(core.Toolbar, {
4644
- className: styles.toolbar,
4645
- children: children
4646
- })
4647
- })), /*#__PURE__*/jsxRuntime.jsx("div", {
4648
- ref: ref
4649
- })]
4650
- });
4651
- }
4652
- });
4653
- });
4654
- if (process.env.NODE_ENV !== "production") DrawerActions$1.displayName = "DrawerActions";
4655
-
4656
- var _excluded$u = ["className"];
4657
- var useStyles$9 = /*#__PURE__*/styles$1.makeStyles(theme => ({
4658
- root: {
4659
- maxWidth: '100%',
4660
- padding: theme.spacing(2, 3),
4661
- [theme.breakpoints.up('md')]: {
4662
- padding: theme.spacing(2, 4)
4663
- }
4664
- }
4665
- }), {
4666
- name: 'SD-DrawerContent'
4667
- });
4668
- var DrawerContent$1 = /*#__PURE__*/react.forwardRef((_ref, ref) => {
4669
- var {
4670
- className
4671
- } = _ref,
4672
- props = _objectWithoutProperties(_ref, _excluded$u);
4673
-
4674
- var styles = useStyles$9();
4675
- return /*#__PURE__*/jsxRuntime.jsx("div", _objectSpread(_objectSpread({}, props), {}, {
4676
- ref: ref,
4677
- className: clsx(styles.root, className)
4678
- }));
4679
- });
4680
- if (process.env.NODE_ENV !== "production") DrawerContent$1.displayName = "DrawerContent";
4681
-
4682
- var _excluded$v = ["className"];
4683
-
4684
- function listItemMixins$1(theme, space) {
4685
- return {
4686
- '& .MuiListItem-gutters': {
4687
- paddingLeft: theme.spacing(space),
4688
- paddingRight: theme.spacing(space),
4689
- '&.MuiListItem-secondaryAction': {
4690
- paddingRight: theme.spacing(space * 2)
4691
- },
4692
- '& .MuiListItemSecondaryAction-root': {
4693
- right: theme.spacing(space),
4694
- '& .MuiIconButton-edgeEnd': {
4695
- marginRight: theme.spacing(-(space / 2))
4696
- }
4697
- }
4698
- }
4699
- };
4700
- }
4701
-
4702
- var useStyles$a = /*#__PURE__*/styles$1.makeStyles(theme => ({
4703
- root: _objectSpread(_objectSpread({
4704
- maxWidth: '100%'
4705
- }, listItemMixins$1(theme, 3)), {}, {
4706
- [theme.breakpoints.up('md')]: _objectSpread({}, listItemMixins$1(theme, 4))
4707
- })
4708
- }), {
4709
- name: 'SD-DrawerList'
4710
- });
4711
- var DrawerList$1 = /*#__PURE__*/react.forwardRef((_ref, ref) => {
4712
- var {
4713
- className
4714
- } = _ref,
4715
- props = _objectWithoutProperties(_ref, _excluded$v);
4716
-
4717
- var styles = useStyles$a();
4718
- return /*#__PURE__*/jsxRuntime.jsx(core.List, _objectSpread(_objectSpread({}, props), {}, {
4719
- ref: ref,
4720
- component: "div",
4721
- className: clsx(className, styles.root)
4722
- }));
4723
- });
4724
- if (process.env.NODE_ENV !== "production") DrawerList$1.displayName = "DrawerList";
4725
-
4726
- var _excluded$w = ["title", "titleTypographyProps", "subtitle", "subtitleTypographyProps", "startAction", "endAction", "className"];
4727
- var useStyles$b = /*#__PURE__*/styles$1.makeStyles(theme => ({
4728
- appBar: {
4729
- '&&': {
4730
- borderTop: 'none',
4731
- borderLeft: 'none',
4732
- borderRight: 'none',
4733
- transition: theme.transitions.create(['border-color']),
4734
- '&:not($appBarSticky)': {
4735
- borderBottomColor: exports.Color.Transparent
4736
- }
4737
- }
4738
- },
4739
- appBarSticky: {},
4740
- toolbar: {
4741
- '&.MuiToolbar-gutters': {
4742
- paddingLeft: theme.spacing(3),
4743
- paddingRight: theme.spacing(3),
4744
- [theme.breakpoints.up('md')]: {
4745
- paddingLeft: theme.spacing(4),
4746
- paddingRight: theme.spacing(4)
4747
- }
4748
- }
4749
- },
4750
- startAction: {
4751
- marginRight: theme.spacing(0.5),
4752
- '& .MuiIconButton-edgeStart': {
4753
- marginLeft: theme.spacing(-2)
4754
- }
4755
- },
4756
- endAction: {
4757
- marginLeft: theme.spacing(0.5),
4758
- '& .MuiIconButton-edgeEnd': {
4759
- marginRight: theme.spacing(-2)
4760
- }
4761
- }
4762
- }), {
4763
- name: 'SD-DrawerTitle'
4764
- });
4765
- var DrawerTitle$1 = /*#__PURE__*/react.forwardRef((_ref, appBarRef) => {
4766
- var {
4767
- title,
4768
- titleTypographyProps,
4769
- subtitle,
4770
- subtitleTypographyProps,
4771
- startAction,
4772
- endAction,
4773
- className
4774
- } = _ref,
4775
- props = _objectWithoutProperties(_ref, _excluded$w);
4776
-
4777
- var styles = useStyles$b();
4778
- return /*#__PURE__*/jsxRuntime.jsx(VisibilityObserver$1, {
4779
- render: _ref2 => {
4780
- var {
4781
- ref,
4782
- visibility
4783
- } = _ref2;
4784
- return /*#__PURE__*/jsxRuntime.jsxs(jsxRuntime.Fragment, {
4785
- children: [/*#__PURE__*/jsxRuntime.jsx("div", {
4786
- ref: ref
4787
- }), /*#__PURE__*/jsxRuntime.jsx(core.AppBar, _objectSpread(_objectSpread({}, props), {}, {
4788
- ref: appBarRef,
4789
- position: "sticky",
4790
- className: clsx(styles.appBar, className, visibility === 'invisible' && styles.appBarSticky),
4791
- children: /*#__PURE__*/jsxRuntime.jsx(core.Toolbar, {
4792
- className: styles.toolbar,
4793
- children: /*#__PURE__*/jsxRuntime.jsxs(core.Grid, {
4794
- container: true,
4795
- alignItems: "center",
4796
- children: [!!startAction && /*#__PURE__*/jsxRuntime.jsx(core.Grid, {
4797
- item: true,
4798
- className: styles.startAction,
4799
- children: startAction
4800
- }), /*#__PURE__*/jsxRuntime.jsxs(core.Grid, {
4801
- item: true,
4802
- xs: true,
4803
- zeroMinWidth: true,
4804
- children: [/*#__PURE__*/jsxRuntime.jsx(core.Typography, _objectSpread(_objectSpread({
4805
- variant: "h3",
4806
- noWrap: true
4807
- }, titleTypographyProps), {}, {
4808
- children: title
4809
- })), !!subtitle && /*#__PURE__*/jsxRuntime.jsx(core.Typography, _objectSpread(_objectSpread({
4810
- variant: "body2",
4811
- noWrap: true
4812
- }, subtitleTypographyProps), {}, {
4813
- children: subtitle
4814
- }))]
4815
- }), !!endAction && /*#__PURE__*/jsxRuntime.jsx(core.Grid, {
4816
- item: true,
4817
- className: styles.endAction,
4818
- children: endAction
4819
- })]
4820
- })
4821
- })
4822
- }))]
4823
- });
4824
- }
4825
- });
4826
- });
4827
- if (process.env.NODE_ENV !== "production") DrawerTitle$1.displayName = "DrawerTitle";
4828
-
4829
- var _excluded$x = ["children", "alignItems"];
4830
- /**
4831
- * @deprecated in favor of `Stack`.
4832
- */
4833
-
4834
- var GridStack$1 = /*#__PURE__*/react.forwardRef((_ref, ref) => {
4835
- var {
4836
- children,
4837
- alignItems = 'stretch'
4838
- } = _ref,
4839
- props = _objectWithoutProperties(_ref, _excluded$x);
4840
-
4841
- var items = react.Children.toArray(children);
4842
- return /*#__PURE__*/jsxRuntime.jsx(core.Grid, _objectSpread(_objectSpread({}, props), {}, {
4843
- ref: ref,
4844
- container: true,
4845
- wrap: "nowrap",
4846
- direction: "column",
4847
- alignItems: alignItems,
4848
- children: items.map((item, idx) => /*#__PURE__*/jsxRuntime.jsx(core.Grid, {
4849
- item: true,
4850
- zeroMinWidth: true,
4851
- xs: alignItems === 'stretch' ? 12 : undefined,
4852
- children: item
4853
- }, idx))
4854
- }));
4855
- });
4856
- if (process.env.NODE_ENV !== "production") GridStack$1.displayName = "GridStack";
4857
-
4858
- var _excluded$y = ["children", "wrap", "justify", "alignItems"];
4859
- /**
4860
- * @deprecated in favor of `Inline` component.
4861
- */
4862
-
4863
- var InlineGrid$1 = /*#__PURE__*/react.forwardRef((_ref, ref) => {
4864
- var {
4865
- children,
4866
- wrap = 'wrap',
4867
- justify = 'flex-start',
4868
- alignItems = 'flex-start'
4869
- } = _ref,
4870
- props = _objectWithoutProperties(_ref, _excluded$y);
4871
-
4872
- var items = react.Children.toArray(children);
4873
- return /*#__PURE__*/jsxRuntime.jsx(core.Grid, _objectSpread(_objectSpread({}, props), {}, {
4874
- ref: ref,
4875
- wrap: wrap,
4876
- container: true,
4877
- justify: justify,
4878
- alignItems: alignItems,
4879
- children: items.map((item, idx) => /*#__PURE__*/jsxRuntime.jsx(core.Grid, {
4880
- item: true,
4881
- zeroMinWidth: true,
4882
- children: item
4883
- }, idx))
4884
- }));
4885
- });
4886
- if (process.env.NODE_ENV !== "production") InlineGrid$1.displayName = "InlineGrid";
4887
-
4888
- function mergeRefs$1() {
4889
- for (var _len = arguments.length, refs = new Array(_len), _key = 0; _key < _len; _key++) {
4890
- refs[_key] = arguments[_key];
4891
- }
4892
-
4893
- return node => {
4894
- refs.forEach(ref => {
4895
- assignRef$1(ref, node);
4896
- });
4897
- };
4898
- }
4899
- function assignRef$1(ref, value) {
4900
- if (ref) {
4901
- if (typeof ref === 'function') {
4902
- ref(value);
4903
- } else {
4904
- ref.current = value;
4905
- }
4906
- }
4907
- }
4908
-
4909
- var _excluded$z = ["size", "square", "classes", "children", "className", "CardContentProps"],
4910
- _excluded2$4 = ["content", "sizeLarge", "fullWidth"];
4911
- var useStyles$c = /*#__PURE__*/styles$1.makeStyles(theme => ({
4912
- root: {
4913
- '&$fullWidth': {
4914
- borderRadius: 0,
4915
- borderLeftWidth: 0,
4916
- borderRightWidth: 0
4917
- }
4918
- },
4919
- fullWidth: {},
4920
- sizeLarge: {},
4921
- content: {
4922
- padding: theme.spacing(2),
4923
- '$sizeLarge > &': {
4924
- [theme.breakpoints.up('sm')]: {
4925
- padding: theme.spacing(3)
4926
- }
4927
- }
4928
- }
4929
- }), {
4930
- name: 'SD-InfoCard'
4931
- });
4932
- var InfoCard$1 = /*#__PURE__*/react.forwardRef((_ref, _ref2) => {
4933
- var {
4934
- size,
4935
- square,
4936
- classes,
4937
- children,
4938
- className,
4939
- CardContentProps: cardContentProps = {}
4940
- } = _ref,
4941
- props = _objectWithoutProperties(_ref, _excluded$z);
4942
-
4943
- var _useStyles = useStyles$c({
4944
- classes
4945
- }),
4946
- {
4947
- content: contentClassName,
4948
- sizeLarge: sizeLargeClassName,
4949
- fullWidth: fullWidthClassName
4950
- } = _useStyles,
4951
- styles = _objectWithoutProperties(_useStyles, _excluded2$4);
4952
-
4953
- var [rootNode, setRootNode] = react.useState(null);
4954
- var clientRect = rootNode === null || rootNode === void 0 ? void 0 : rootNode.getBoundingClientRect();
4955
- var isFullWidth = (clientRect === null || clientRect === void 0 ? void 0 : clientRect.width) === window.innerWidth;
4956
- return /*#__PURE__*/jsxRuntime.jsx(core.Card, _objectSpread(_objectSpread({}, props), {}, {
4957
- ref: node => {
4958
- assignRef$1(_ref2, node);
4959
- setRootNode(node);
4960
- },
4961
- classes: styles,
4962
- className: clsx(className, isFullWidth && fullWidthClassName, size === 'large' && sizeLargeClassName),
4963
- children: /*#__PURE__*/jsxRuntime.jsx(core.CardContent, _objectSpread(_objectSpread({}, cardContentProps), {}, {
4964
- className: clsx(cardContentProps.className, contentClassName),
4965
- children: children
4966
- }))
4967
- }));
4968
- });
4969
- if (process.env.NODE_ENV !== "production") InfoCard$1.displayName = "InfoCard";
4970
-
4971
- function inlineRootMixin$1(spaceProp, noWrap, verticalAlign, horizontalAlign) {
4972
- var space = parseSpaceProp$1(spaceProp);
4973
- return styled.css(["&:before{margin-top:", "px;}& > div{display:flex;margin-left:-", "px;flex-wrap:", ";align-items:", ";justify-content:", ";& > div{&:empty{display:none;}min-width:0;flex-shrink:0;max-width:100%;margin-top:", "px;margin-left:", "px;}}"], -space - 1, space, noWrap ? 'nowrap' : 'wrap', parseAlignProp$1(verticalAlign), parseAlignProp$1(horizontalAlign), space, space);
4974
- }
4975
-
4976
- var InlineRoot$1 = /*#__PURE__*/styled__default.div.withConfig({
4977
- displayName: "Inline__InlineRoot",
4978
- componentId: "SD__sc-13du4wm-0"
4979
- })(_ref => {
4980
- var {
4981
- theme,
4982
- space,
4983
- noWrap,
4984
- verticalAlign,
4985
- horizontalAlign
4986
- } = _ref;
4987
- return styled.css(["padding-top:1px;&:before{content:'';display:block;}", " ", "{", "}", "{", "}"], inlineRootMixin$1(space[0], noWrap[0], verticalAlign[0], horizontalAlign[0]), theme.breakpoints.up('sm'), inlineRootMixin$1(space[1], noWrap[1], verticalAlign[1], horizontalAlign[1]), theme.breakpoints.up('md'), inlineRootMixin$1(space[2], noWrap[2], verticalAlign[2], horizontalAlign[2]));
4988
- });
4989
- var Inline$1 = /*#__PURE__*/react.forwardRef((_ref2, ref) => {
4990
- var {
4991
- children,
4992
- 'aria-label': ariaLabel,
4993
- 'aria-labelledby': ariaLabelledBy,
4994
- noWrap: noWrapProp = false,
4995
- space: spaceProp = 'xsmall',
4996
- verticalAlign: verticalAlignProp = 'top',
4997
- horizontalAlign: horizontalAlignProp = 'left'
4998
- } = _ref2;
4999
- var space = useResponsiveProp$1(spaceProp);
5000
- var noWrap = useResponsiveProp$1(noWrapProp);
5001
- var verticalAlign = useResponsiveProp$1(verticalAlignProp);
5002
- var horizontalAlign = useResponsiveProp$1(horizontalAlignProp);
5003
- return /*#__PURE__*/jsxRuntime.jsx(InlineRoot$1, {
5004
- ref: ref,
5005
- space: space,
5006
- noWrap: noWrap,
5007
- verticalAlign: verticalAlign,
5008
- horizontalAlign: horizontalAlign,
5009
- "aria-label": ariaLabel,
5010
- "aria-labelledby": ariaLabelledBy,
5011
- children: /*#__PURE__*/jsxRuntime.jsx("div", {
5012
- children: flattenChildren(children).map((child, idx) => /*#__PURE__*/jsxRuntime.jsx("div", {
5013
- children: child
5014
- }, idx))
5015
- })
5016
- });
5017
- });
5018
- if (process.env.NODE_ENV !== "production") Inline$1.displayName = "Inline";
5019
-
5020
- var _excluded$A = ["label", "error", "checked", "onBlur", "onChange", "helperText", "FormControlLabelProps"];
5021
- var RadioField$1 = /*#__PURE__*/react.forwardRef((_ref, ref) => {
5022
- var {
5023
- label,
5024
- error,
5025
- checked,
5026
- onBlur,
5027
- onChange,
5028
- helperText,
5029
- FormControlLabelProps: formControlLabelProps
5030
- } = _ref,
5031
- props = _objectWithoutProperties(_ref, _excluded$A);
5032
-
5033
- return /*#__PURE__*/jsxRuntime.jsxs(core.FormControl, {
5034
- error: error,
5035
- children: [/*#__PURE__*/jsxRuntime.jsx(core.FormControlLabel, _objectSpread(_objectSpread({}, formControlLabelProps), {}, {
5036
- label: label,
5037
- checked: checked,
5038
- onBlur: onBlur,
5039
- onChange: onChange,
5040
- control: /*#__PURE__*/jsxRuntime.jsx(core.Radio, _objectSpread({
5041
- ref: ref,
5042
- color: "primary"
5043
- }, props))
5044
- })), helperText && /*#__PURE__*/jsxRuntime.jsx(core.FormHelperText, {
5045
- children: helperText
5046
- })]
5047
- });
5048
- });
5049
- if (process.env.NODE_ENV !== "production") RadioField$1.displayName = "RadioField";
5050
-
5051
- var _excluded$B = ["name", "value", "onChange", "RadioGroupProps", "label", "FormLabelProps", "helperText", "FormHelperTextProps", "children"];
5052
- var RadioGroupField$1 = /*#__PURE__*/react.forwardRef((_ref, ref) => {
5053
- var {
5054
- name,
5055
- value = '',
5056
- onChange,
5057
- RadioGroupProps: radioGroupProps,
5058
- label,
5059
- FormLabelProps: formLabelProps,
5060
- helperText,
5061
- FormHelperTextProps: formHelperTextProps,
5062
- children
5063
- } = _ref,
5064
- formControlProps = _objectWithoutProperties(_ref, _excluded$B);
5065
-
5066
- return /*#__PURE__*/jsxRuntime.jsxs(core.FormControl, _objectSpread(_objectSpread({}, formControlProps), {}, {
5067
- hiddenLabel: !label,
5068
- children: [!!label && /*#__PURE__*/jsxRuntime.jsx(core.FormLabel, _objectSpread(_objectSpread({}, formLabelProps), {}, {
5069
- children: label
5070
- })), /*#__PURE__*/jsxRuntime.jsx(core.RadioGroup, _objectSpread(_objectSpread({
5071
- ref: ref
5072
- }, radioGroupProps), {}, {
5073
- name: name,
5074
- value: value,
5075
- onChange: onChange,
5076
- children: children
5077
- })), !!helperText && /*#__PURE__*/jsxRuntime.jsx(core.FormHelperText, _objectSpread(_objectSpread({}, formHelperTextProps), {}, {
5078
- children: helperText
5079
- }))]
5080
- }));
5081
- });
5082
- if (process.env.NODE_ENV !== "production") RadioGroupField$1.displayName = "RadioGroupField";
5083
-
5084
- var BREAKPOINTS = ['xs', 'sm', 'md', 'lg', 'xl'];
5085
- function useCollapseBreakpoint(collapseBreakpoint) {
5086
- var {
5087
- breakpoint = 'xs'
5088
- } = useResponsiveContext$1();
5089
-
5090
- if (collapseBreakpoint == null) {
5091
- return false;
5092
- }
5093
-
5094
- var breakpointIDX = BREAKPOINTS.indexOf(breakpoint);
5095
- var collapseBreakpointIDX = BREAKPOINTS.indexOf(collapseBreakpoint);
5096
- return breakpointIDX < collapseBreakpointIDX;
5097
- }
5098
-
5099
- var _excluded$C = ["action", "children", "onClose", "className", "classes", "variant"],
5100
- _excluded2$5 = ["icon", "closeButton", "variantError", "variantSuccess"];
5101
- var useStyles$d = /*#__PURE__*/styles$1.makeStyles(theme => ({
5102
- root: {
5103
- color: exports.Color.White,
5104
- backgroundColor: exports.Color.Dark500,
5105
- '&$variantError': {
5106
- color: exports.Color.White,
5107
- backgroundColor: exports.Color.Red500
5108
- }
5109
- },
5110
- action: {
5111
- paddingLeft: theme.spacing(1)
5112
- },
5113
- message: {
5114
- alignItems: 'center',
5115
- [theme.breakpoints.down('xs')]: {
5116
- fontSize: theme.spacing(2)
5117
- }
5118
- },
5119
- icon: {
5120
- marginRight: theme.spacing(1),
5121
- fontSize: theme.spacing(3)
5122
- },
5123
- closeButton: {
5124
- color: exports.Color.White40,
5125
- '&:hover, &:focus': {
5126
- backgroundColor: exports.Color.White08,
5127
- color: exports.Color.White40
5128
- }
5129
- },
5130
- variantError: {},
5131
- variantSuccess: {}
5132
- }), {
5133
- name: 'SD-SnackbarContent'
5134
- });
5135
- var SnackbarContent$1 = /*#__PURE__*/react.forwardRef((_ref, ref) => {
5136
- var {
5137
- action,
5138
- children,
5139
- onClose,
5140
- className,
5141
- classes,
5142
- variant = 'default'
5143
- } = _ref,
5144
- props = _objectWithoutProperties(_ref, _excluded$C);
5145
-
5146
- var _useStyles = useStyles$d({
5147
- classes
5148
- }),
5149
- {
5150
- icon,
5151
- closeButton,
5152
- variantError,
5153
- variantSuccess
5154
- } = _useStyles,
5155
- styles = _objectWithoutProperties(_useStyles, _excluded2$5);
5156
-
5157
- var Icon = variant === 'error' ? icons.Warning : variant === 'success' ? icons.CheckCircle : undefined;
5158
- return /*#__PURE__*/jsxRuntime.jsx(core.SnackbarContent, _objectSpread(_objectSpread({}, props), {}, {
5159
- ref: ref,
5160
- classes: styles,
5161
- className: clsx(className, {
5162
- 'error': variantError,
5163
- 'success': variantSuccess
5164
- }[variant]),
5165
- message: /*#__PURE__*/jsxRuntime.jsxs(jsxRuntime.Fragment, {
5166
- children: [Icon && /*#__PURE__*/jsxRuntime.jsx(Icon, {
5167
- className: icon
5168
- }), children]
5169
- }),
5170
- action: !action && !onClose ? null : /*#__PURE__*/jsxRuntime.jsxs(core.Grid, {
5171
- container: true,
5172
- spacing: 1,
5173
- alignItems: "center",
5174
- wrap: "nowrap",
5175
- children: [!!action && /*#__PURE__*/jsxRuntime.jsx(core.Grid, {
5176
- item: true,
5177
- children: action
5178
- }), onClose && /*#__PURE__*/jsxRuntime.jsx(core.Grid, {
5179
- item: true,
5180
- children: /*#__PURE__*/jsxRuntime.jsx(core.IconButton, {
5181
- "aria-label": "close",
5182
- onClick: onClose,
5183
- className: closeButton,
5184
- children: /*#__PURE__*/jsxRuntime.jsx(icons.Close, {
5185
- fontSize: "small"
5186
- })
5187
- })
5188
- })]
5189
- })
5190
- }));
5191
- });
5192
- if (process.env.NODE_ENV !== "production") SnackbarContent$1.displayName = "SnackbarContent";
5193
-
5194
- var _excluded$D = ["open", "action", "variant", "onClose", "children", "ContentProps", "hasCloseButton", "TransitionComponent"];
5195
-
5196
- function SlideTransition$1(props) {
5197
- return /*#__PURE__*/jsxRuntime.jsx(core.Slide, _objectSpread(_objectSpread({}, props), {}, {
5198
- direction: "up"
5199
- }));
5200
- }
5201
-
5202
- var Snackbar$1 = /*#__PURE__*/react.forwardRef((_ref, ref) => {
5203
- var {
5204
- open,
5205
- action,
5206
- variant,
5207
- onClose,
5208
- children,
5209
- ContentProps,
5210
- hasCloseButton = onClose != null,
5211
- TransitionComponent = SlideTransition$1
5212
- } = _ref,
5213
- props = _objectWithoutProperties(_ref, _excluded$D);
5214
-
5215
- function handleClose(reason) {
5216
- if (reason !== 'clickaway') {
5217
- onClose === null || onClose === void 0 ? void 0 : onClose(reason === 'timeout' ? 'timeout' : 'explicit');
5218
- }
5219
- }
5220
-
5221
- return /*#__PURE__*/jsxRuntime.jsx(core.Portal, {
5222
- children: /*#__PURE__*/jsxRuntime.jsx(core.Snackbar, _objectSpread(_objectSpread({}, props), {}, {
5223
- ref: ref,
5224
- open: open,
5225
- TransitionComponent: TransitionComponent,
5226
- onClose: (_, reason) => {
5227
- handleClose(reason);
5228
- },
5229
- children: /*#__PURE__*/jsxRuntime.jsx(SnackbarContent$1, _objectSpread(_objectSpread({}, ContentProps), {}, {
5230
- action: action,
5231
- variant: variant,
5232
- onClose: !hasCloseButton ? undefined : () => {
5233
- handleClose('explicit');
5234
- },
5235
- children: children
5236
- }))
5237
- }))
5238
- });
5239
- });
5240
- if (process.env.NODE_ENV !== "production") Snackbar$1.displayName = "Snackbar";
5241
-
5242
- var _excluded$E = ["onClose", "variant", "key", "id", "autoHideDuration"];
5243
-
5244
- function warnContext$1() {
5245
- // eslint-disable-next-line no-console
5246
- console.log('`useSnackbarStack` is used outside of `SnackbarStackProvider`.');
5247
- }
5248
-
5249
- var Context$3 = /*#__PURE__*/react.createContext({
5250
- clearStack: warnContext$1,
5251
- addSnackbar: () => {
5252
- warnContext$1();
5253
- return warnContext$1;
5254
- }
5255
- });
5256
- function useSnackbarStack$1() {
5257
- return react.useContext(Context$3);
5258
- }
5259
- function SnackbarStackConsumer$1(_ref) {
5260
- var {
5261
- children
5262
- } = _ref;
5263
- return /*#__PURE__*/jsxRuntime.jsx(Context$3.Consumer, {
5264
- children: children
5265
- });
5266
- }
5267
- var TRANSIENT_KEY$1 = '@@transient@@';
5268
- function SnackbarStackProvider$1(_ref2) {
5269
- var {
5270
- children
5271
- } = _ref2;
5272
- var [stack, setStack] = react.useState(new Map());
5273
- var transientKeyRef = react.useRef(0);
5274
- var getNextTransientKey = react.useCallback(() => TRANSIENT_KEY$1 + String(transientKeyRef.current += 1), []);
5275
- var clearStack = react.useCallback(() => {
5276
- setStack(x => x.size === 0 ? x : new Map());
5277
- }, []);
5278
- var addSnackbar = react.useCallback(function (message) {
5279
- var _ref3 = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {},
5280
- {
5281
- onClose: _onClose,
5282
- variant,
5283
- key = variant !== 'error' ? // We don't want non error snackbars without key to pop back.
5284
- getNextTransientKey() : typeof message === 'string' ? message : Math.random(),
5285
- id = String(key),
5286
- autoHideDuration = 5000
5287
- } = _ref3,
5288
- props = _objectWithoutProperties(_ref3, _excluded$E);
5289
-
5290
- function removeSnackbar() {
5291
- setStack(prev => {
5292
- if (prev.has(key)) {
5293
- var next = new Map(prev);
5294
- next.delete(key);
5295
- return next;
5296
- }
5297
-
5298
- return prev;
5299
- });
5300
- }
5301
-
5302
- setStack(prev => {
5303
- var next = new Map(prev);
5304
-
5305
- for (var prevKey of prev.keys()) {
5306
- // Ensure that we insert value to the end of the map.
5307
- if (Object.is(key, prevKey)) {
5308
- next.delete(key);
5309
- } // Ensure that transient snackbar will not pop back.
5310
-
5311
-
5312
- if (typeof prevKey == 'string' && prevKey.startsWith(TRANSIENT_KEY$1)) {
5313
- next.delete(prevKey);
5314
- }
5315
- }
5316
-
5317
- return next.set(key, _objectSpread(_objectSpread({}, props), {}, {
5318
- id,
5319
- key,
5320
- variant,
5321
- autoHideDuration,
5322
- children: message,
5323
- onClose: reason => {
5324
- removeSnackbar();
5325
- _onClose === null || _onClose === void 0 ? void 0 : _onClose(reason);
5326
- }
5327
- }));
5328
- });
5329
- return removeSnackbar;
5330
- }, [getNextTransientKey]);
5331
- var snackbarProps = hooks.useDeepEqualMemo(prev => {
5332
- var next = Array.from(stack.values()).pop();
5333
- return next ? _objectSpread(_objectSpread({}, next), {}, {
5334
- open: true
5335
- }) : _objectSpread(_objectSpread({}, prev), {}, {
5336
- open: false
5337
- });
5338
- }, [stack]);
5339
- var api = react.useMemo(() => ({
5340
- clearStack,
5341
- addSnackbar
5342
- }), [clearStack, addSnackbar]);
5343
- return /*#__PURE__*/jsxRuntime.jsxs(Context$3.Provider, {
5344
- value: api,
5345
- children: [children, /*#__PURE__*/jsxRuntime.jsx(Snackbar$1, _objectSpread({}, snackbarProps))]
5346
- });
5347
- }
5348
-
5349
- function stackItemMixin$1(space, align) {
5350
- return styled.css(["flex-direction:column;align-items:", ";display:", ";&:empty{display:none;}&:not(:empty) ~ div{padding-top:", "px;}"], parseAlignProp$1(align), align === 'left' ? 'block' : 'flex', parseSpaceProp$1(space));
5351
- }
5352
-
5353
- var StackRoot$1 = /*#__PURE__*/styled__default.div.withConfig({
5354
- displayName: "Stack__StackRoot",
5355
- componentId: "SD__sc-qkml7c-0"
5356
- })(_ref => {
5357
- var {
5358
- theme,
5359
- space,
5360
- align
5361
- } = _ref;
5362
- return styled.css(["width:100%;& > div{", ";", "{", ";}", "{", ";}}"], stackItemMixin$1(space[0], align[0]), theme.breakpoints.up('sm'), stackItemMixin$1(space[1], align[1]), theme.breakpoints.up('md'), stackItemMixin$1(space[2], align[2]));
5363
- });
5364
- var Stack$1 = /*#__PURE__*/react.forwardRef((_ref2, ref) => {
5365
- var {
5366
- children,
5367
- 'aria-label': ariaLabel,
5368
- 'aria-labelledby': ariaLabelledBy,
5369
- space = 'xsmall',
5370
- align = 'left'
5371
- } = _ref2;
5372
- return /*#__PURE__*/jsxRuntime.jsx(StackRoot$1, {
5373
- ref: ref,
5374
- align: parseResponsiveProp$1(align),
5375
- space: parseResponsiveProp$1(space),
5376
- "aria-label": ariaLabel,
5377
- "aria-labelledby": ariaLabelledBy,
5378
- children: flattenChildren(children).map((child, idx) => /*#__PURE__*/jsxRuntime.jsx("div", {
5379
- children: child
5380
- }, idx))
5381
- });
5382
- });
5383
- if (process.env.NODE_ENV !== "production") Stack$1.displayName = "Stack";
5384
-
5385
- var _excluded$F = ["color", "variant", "children", "classes", "className", "noWrap", "fontWeight", "component"];
5386
- var useStyles$e = /*#__PURE__*/styles$1.makeStyles(theme => ({
5387
- root: {
5388
- maxWidth: '100%',
5389
- alignItems: 'center',
5390
- display: 'inline-flex',
5391
- borderRadius: theme.spacing(0.5),
5392
- padding: theme.spacing(0, 0.5)
5393
- },
5394
- variantSubtle: {
5395
- '&$colorGrey': {
5396
- color: exports.Color.Dark300,
5397
- backgroundColor: exports.Color.Silver200
5398
- },
5399
- '&$colorBlue': {
5400
- color: exports.Color.Blue500,
5401
- backgroundColor: exports.Color.Blue50
5402
- },
5403
- '&$colorGreen': {
5404
- color: exports.Color.Green500,
5405
- backgroundColor: exports.Color.Green50
5406
- },
5407
- '&$colorPurple': {
5408
- color: exports.Color.Purple500,
5409
- backgroundColor: exports.Color.Purple50
5410
- },
5411
- '&$colorRed': {
5412
- color: exports.Color.Red500,
5413
- backgroundColor: exports.Color.Red50
5414
- },
5415
- '&$colorTeal': {
5416
- color: exports.Color.Teal500,
5417
- backgroundColor: exports.Color.Teal50
5418
- },
5419
- '&$colorYellow': {
5420
- color: exports.Color.Yellow500,
5421
- backgroundColor: exports.Color.Yellow50
5422
- }
5423
- },
5424
- variantBold: {
5425
- color: exports.Color.White,
5426
- '&$colorGrey': {
5427
- backgroundColor: exports.Color.Dark300
5428
- },
5429
- '&$colorBlue': {
5430
- backgroundColor: exports.Color.Blue500
5431
- },
5432
- '&$colorGreen': {
5433
- backgroundColor: exports.Color.Green500
5434
- },
5435
- '&$colorPurple': {
5436
- backgroundColor: exports.Color.Purple500
5437
- },
5438
- '&$colorRed': {
5439
- backgroundColor: exports.Color.Red500
5440
- },
5441
- '&$colorTeal': {
5442
- backgroundColor: exports.Color.Teal500
5443
- },
5444
- '&$colorYellow': {
5445
- backgroundColor: exports.Color.Yellow500
5446
- }
5447
- },
5448
- colorGrey: {},
5449
- colorBlue: {},
5450
- colorGreen: {},
5451
- colorPurple: {},
5452
- colorRed: {},
5453
- colorTeal: {},
5454
- colorYellow: {}
5455
- }), {
5456
- name: 'SD-Tag'
5457
- });
5458
- var Tag$1 = /*#__PURE__*/react.forwardRef((_ref, ref) => {
5459
- var {
5460
- color,
5461
- variant,
5462
- children,
5463
- classes,
5464
- className,
5465
- noWrap = true,
5466
- fontWeight = 'bold',
5467
- component = 'div'
5468
- } = _ref,
5469
- props = _objectWithoutProperties(_ref, _excluded$F);
5470
-
5471
- var styles = useStyles$e({
5472
- classes
5473
- });
5474
- return /*#__PURE__*/jsxRuntime.jsx(core.Typography, _objectSpread(_objectSpread({}, props), {}, {
5475
- ref: ref,
5476
- noWrap: noWrap,
5477
- component: component,
5478
- variant: fontWeight === 'bold' ? 'body1' : 'body2',
5479
- className: clsx(styles.root, className, {
5480
- 'grey': styles.colorGrey,
5481
- 'blue': styles.colorBlue,
5482
- 'green': styles.colorGreen,
5483
- 'purple': styles.colorPurple,
5484
- 'red': styles.colorRed,
5485
- 'teal': styles.colorTeal,
5486
- 'yellow': styles.colorYellow
5487
- }[color], {
5488
- 'subtle': styles.variantSubtle,
5489
- 'bold': styles.variantBold
5490
- }[variant]),
5491
- children: children
5492
- }));
5493
- });
5494
- if (process.env.NODE_ENV !== "production") Tag$1.displayName = "Tag";
5495
-
5496
- function overrideAppBar$1(theme) {
5497
- theme.props.MuiAppBar = {
5498
- elevation: 0,
5499
- color: 'inherit',
5500
- position: 'static'
5501
- };
5502
- }
5503
-
5504
- function overrideAutocomplete$1(theme) {
5505
- var sm = theme.breakpoints.up('sm'); // Remove `Object.assign` after official release of `Autocomplete`.
5506
-
5507
- Object.assign(theme.props, {
5508
- MuiAutocomplete: {
5509
- popupIcon: /*#__PURE__*/jsxRuntime.jsx(core.SvgIcon, {
5510
- children: /*#__PURE__*/jsxRuntime.jsx("path", {
5511
- d: "M12 16.5L6 9h12l-6 7.5z",
5512
- fill: "currentColor"
5513
- })
5514
- })
5515
- }
5516
- });
5517
- Object.assign(theme.overrides, {
5518
- MuiAutocomplete: {
5519
- paper: _objectSpread({}, theme.typography.body2),
5520
- tag: {
5521
- margin: '4px',
5522
- [sm]: {
5523
- margin: '2px'
5524
- }
5525
- },
5526
- endAdornment: {
5527
- top: 0,
5528
- bottom: 0,
5529
- display: 'flex',
5530
- alignItems: 'center'
5531
- },
5532
- popupIndicator: {
5533
- '& .MuiSvgIcon-root': {
5534
- fontSize: '24px',
5535
- [sm]: {
5536
- fontSize: '16px'
5537
- }
5538
- }
5539
- },
5540
- inputRoot: {
5541
- '&[class*="MuiOutlinedInput-root"]': {
5542
- padding: '6px 8px',
5543
- '& $input': {
5544
- width: '144px',
5545
- padding: '4px'
5546
- },
5547
- '& $input:first-child': {
5548
- paddingLeft: undefined
5549
- },
5550
- '& $endAdornment': {
5551
- right: '12px'
5552
- },
5553
- [sm]: {
5554
- padding: theme.spacing(0.5, 0.75),
5555
- '& $input': {
5556
- padding: '2px'
5557
- },
5558
- '& $endAdornment': {
5559
- right: '8px'
5560
- }
5561
- }
5562
- }
5563
- }
5564
- }
5565
- });
5566
- }
5567
-
5568
- function overrideAvatar$1(theme) {
5569
- theme.overrides.MuiAvatar = {
5570
- root: _objectSpread(_objectSpread({}, theme.typography.h5), {}, {
5571
- textTransform: 'uppercase',
5572
- width: theme.spacing(5),
5573
- height: theme.spacing(5),
5574
- [theme.breakpoints.up('sm')]: {
5575
- width: theme.spacing(4),
5576
- height: theme.spacing(4)
5577
- }
5578
- }),
5579
- colorDefault: {
5580
- color: exports.Color.Dark300,
5581
- backgroundColor: exports.Color.Silver300
5582
- }
5583
- };
5584
- }
5585
-
5586
- function outlineShadow$1() {
5587
- var size = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 0;
5588
- var color = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : exports.Color.Transparent;
5589
- return "0 0 0 ".concat(size, "px ").concat(color);
5590
- }
5591
-
5592
- function textVariant$1(text, outline, background, progress) {
5593
- return {
5594
- color: text,
5595
- boxShadow: outlineShadow$1(),
5596
- backgroundColor: exports.Color.Transparent,
5597
- '&:hover': {
5598
- backgroundColor: background
5599
- },
5600
- '&[aria-expanded="true"]': {
5601
- backgroundColor: background
5602
- },
5603
- '&:focus': {
5604
- backgroundColor: background,
5605
- boxShadow: outlineShadow$1(2, outline)
5606
- },
5607
- '&$disabled': {
5608
- color: outline,
5609
- boxShadow: outlineShadow$1(),
5610
- backgroundColor: exports.Color.Transparent
5611
- },
5612
- '&$disabled[aria-busy="true"]': {
5613
- color: progress
5614
- }
5615
- };
5616
- }
5617
-
5618
- function outlinedBorder$1(borderColor) {
5619
- var outlineColor = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : exports.Color.Transparent;
5620
- return "inset 0 0 0 1px ".concat(borderColor, ", 0 0 0 2px ").concat(outlineColor);
5621
- }
5622
-
5623
- function outlinedVariant$1(staleText, staleBorder, disabledText, disabledBorder, activeText, activeBorder, activeOutline, activeBackground, progress, backgroundColor) {
5624
- return {
5625
- backgroundColor,
5626
- color: staleText,
5627
- border: undefined,
5628
- boxShadow: outlinedBorder$1(staleBorder),
5629
- '&:hover': {
5630
- color: activeText,
5631
- border: undefined,
5632
- backgroundColor: activeBackground,
5633
- boxShadow: outlinedBorder$1(activeBorder)
5634
- },
5635
- '&[aria-expanded="true"]': {
5636
- color: activeText,
5637
- backgroundColor: activeBackground,
5638
- boxShadow: outlinedBorder$1(activeBorder)
5639
- },
5640
- '&:focus': {
5641
- boxShadow: outlinedBorder$1(activeBorder, activeOutline)
5642
- },
5643
- '&$disabled': {
5644
- backgroundColor,
5645
- color: disabledText,
5646
- boxShadow: outlinedBorder$1(disabledBorder)
5647
- },
5648
- '&$disabled[aria-busy="true"]': {
5649
- color: progress
5650
- }
5651
- };
5652
- }
5653
-
5654
- function containedVariant$1(text, backgroundColor, outline, active, disabledText, disabledBackground) {
5655
- return {
5656
- color: text,
5657
- backgroundColor,
5658
- boxShadow: outlineShadow$1(),
5659
- '&:hover': {
5660
- backgroundColor: active
5661
- },
5662
- '&[aria-expanded="true"]': {
5663
- backgroundColor: active
5664
- },
5665
- '&:focus': {
5666
- boxShadow: outlineShadow$1(3, outline)
5667
- },
5668
- '&$disabled': {
5669
- color: disabledText,
5670
- boxShadow: outlineShadow$1(),
5671
- backgroundColor: disabledBackground
5672
- }
5673
- };
5674
- }
5675
-
5676
- function overrideButton$1(theme) {
5677
- var sm = theme.breakpoints.up('sm');
5678
- theme.props.MuiButton = {
5679
- color: 'primary',
5680
- variant: 'outlined',
5681
- disableFocusRipple: true
5682
- };
5683
- theme.overrides.MuiButton = {
5684
- root: {
5685
- color: undefined,
5686
- minWidth: theme.spacing(6),
5687
- transition: theme.transitions.create(['color', 'border', 'box-shadow', 'background-color']),
5688
- padding: theme.spacing(1.25, 3),
5689
- [sm]: {
5690
- padding: theme.spacing(0.75, 2)
5691
- },
5692
- '&:hover': {
5693
- backgroundColor: undefined,
5694
- '&$disabled': {
5695
- backgroundColor: undefined
5696
- },
5697
- '@media (hover: none)': {
5698
- backgroundColor: undefined
5699
- }
5700
- },
5701
- '&$disabled': {
5702
- color: undefined
5703
- },
5704
- '&[aria-busy="true"]': {
5705
- '& $label': {
5706
- visibility: 'hidden',
5707
- '& > [role="progressbar"]': {
5708
- position: 'absolute',
5709
- visibility: 'visible',
5710
- top: 'calc(50% - 0.5em)',
5711
- left: 'calc(50% - 0.5em)',
5712
- fontSize: theme.spacing(2),
5713
- '$sizeLarge &': {
5714
- fontSize: theme.spacing(3)
5715
- }
5716
- }
5717
- }
5718
- }
5719
- },
5720
- label: {
5721
- '& > .MuiSvgIcon-root': {
5722
- fontSize: '24px',
5723
- [sm]: {
5724
- fontSize: '20px'
5725
- },
5726
- '$sizeLarge &': {
5727
- fontSize: '28px',
5728
- [sm]: {
5729
- fontSize: '24px'
5730
- }
5731
- }
5732
- }
5733
- },
5734
- sizeSmall: {
5735
- padding: theme.spacing(0.5, 3),
5736
- [sm]: {
5737
- padding: theme.spacing(0.25, 2)
5738
- }
5739
- },
5740
- sizeLarge: {
5741
- fontSize: '18px',
5742
- lineHeight: '28px',
5743
- padding: theme.spacing(1.75, 8),
5744
- [sm]: {
5745
- fontSize: '16px',
5746
- lineHeight: '24px',
5747
- padding: theme.spacing(1, 4)
5748
- }
5749
- },
5750
- text: {
5751
- padding: undefined,
5752
- '&[data-color="error"]': textVariant$1(exports.Color.Red300, exports.Color.Red100, exports.Color.Red50, exports.Color.Red200),
5753
- '&[data-color="success"]': textVariant$1(exports.Color.Green300, exports.Color.Green100, exports.Color.Green50, exports.Color.Green200),
5754
- '&[data-color="white"]': textVariant$1(exports.Color.White, exports.Color.White50, exports.Color.White10, exports.Color.White50)
5755
- },
5756
- textPrimary: textVariant$1(exports.Color.Blue300, exports.Color.Blue100, exports.Color.Blue50, exports.Color.Blue200),
5757
- textSizeSmall: {
5758
- padding: undefined,
5759
- fontSize: undefined
5760
- },
5761
- textSizeLarge: {
5762
- padding: undefined,
5763
- fontSize: undefined
5764
- },
5765
- outlined: {
5766
- border: undefined,
5767
- padding: undefined,
5768
- '&$disabled': {
5769
- border: undefined
5770
- },
5771
- '&[data-color="error"]': outlinedVariant$1(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),
5772
- '&[data-color="success"]': outlinedVariant$1(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),
5773
- '&[data-color="white"]': outlinedVariant$1(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)
5774
- },
5775
- outlinedPrimary: outlinedVariant$1(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),
5776
- outlinedSizeSmall: {
5777
- padding: undefined,
5778
- fontSize: undefined
5779
- },
5780
- outlinedSizeLarge: {
5781
- padding: undefined,
5782
- fontSize: undefined
5783
- },
5784
- contained: {
5785
- boxShadow: undefined,
5786
- backgroundColor: undefined,
5787
- '&:hover': {
5788
- boxShadow: undefined,
5789
- backgroundColor: undefined,
5790
- '&$disabled': {
5791
- backgroundColor: undefined
5792
- },
5793
- '@media (hover: none)': {
5794
- boxShadow: undefined,
5795
- backgroundColor: undefined
5796
- }
5797
- },
5798
- '&:active': {
5799
- boxShadow: undefined
5800
- },
5801
- '&$focusVisible': {
5802
- boxShadow: undefined
5803
- },
5804
- '&$disabled': {
5805
- color: undefined,
5806
- boxShadow: undefined,
5807
- backgroundColor: undefined
5808
- },
5809
- '&[data-color="error"]': containedVariant$1(exports.Color.White, exports.Color.Red300, exports.Color.Red100, exports.Color.Red500, exports.Color.White, exports.Color.Red100),
5810
- '&[data-color="success"]': containedVariant$1(exports.Color.White, exports.Color.Green300, exports.Color.Green100, exports.Color.Green500, exports.Color.White, exports.Color.Green100),
5811
- '&[data-color="white"]': containedVariant$1(exports.Color.White, exports.Color.White20, exports.Color.White40, exports.Color.White40, exports.Color.White50, exports.Color.White08)
5812
- },
5813
- containedPrimary: containedVariant$1(exports.Color.White, exports.Color.Blue300, exports.Color.Blue100, exports.Color.Blue500, exports.Color.White, exports.Color.Blue100),
5814
- containedSizeSmall: {
5815
- padding: undefined,
5816
- fontSize: undefined
5817
- },
5818
- containedSizeLarge: {
5819
- padding: undefined,
5820
- fontSize: undefined
5821
- }
5822
- };
5823
- }
5824
-
5825
- function overrideCard$1(theme) {
5826
- theme.props.MuiCard = {
5827
- variant: 'outlined'
5828
- };
5829
- theme.overrides.MuiCardContent = {
5830
- root: {
5831
- '&:last-child': {
5832
- paddingBottom: undefined
5833
- }
5834
- }
5835
- };
5836
- }
5837
-
5838
- function overrideCheckbox$1(theme) {
5839
- theme.props.MuiCheckbox = {
5840
- color: 'primary',
5841
- icon: /*#__PURE__*/jsxRuntime.jsx(core.SvgIcon, {
5842
- children: /*#__PURE__*/jsxRuntime.jsx("rect", {
5843
- width: "17",
5844
- height: "17",
5845
- x: "3.5",
5846
- y: "3.5",
5847
- fill: exports.Color.White,
5848
- stroke: "currentColor",
5849
- rx: "1.5"
5850
- })
5851
- }),
5852
- checkedIcon: /*#__PURE__*/jsxRuntime.jsxs(core.SvgIcon, {
5853
- children: [/*#__PURE__*/jsxRuntime.jsx("rect", {
5854
- width: "18",
5855
- height: "18",
5856
- x: "3",
5857
- y: "3",
5858
- fill: "currentColor",
5859
- rx: "2"
5860
- }), /*#__PURE__*/jsxRuntime.jsx("path", {
5861
- fill: exports.Color.White,
5862
- 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"
5863
- })]
5864
- }),
5865
- indeterminateIcon: /*#__PURE__*/jsxRuntime.jsxs(core.SvgIcon, {
5866
- children: [/*#__PURE__*/jsxRuntime.jsx("rect", {
5867
- width: "18",
5868
- height: "18",
5869
- x: "3",
5870
- y: "3",
5871
- fill: "currentIcon",
5872
- rx: "2"
5873
- }), /*#__PURE__*/jsxRuntime.jsx("path", {
5874
- fill: exports.Color.White,
5875
- d: "M7 11h10v2H7v-2z"
5876
- })]
5877
- })
5878
- };
5879
- theme.overrides.MuiCheckbox = {
5880
- root: {
5881
- color: exports.Color.Dark100,
5882
- marginTop: theme.spacing(-0.625),
5883
- marginBottom: theme.spacing(-0.625)
5884
- },
5885
- colorPrimary: {
5886
- '&$checked$disabled': {
5887
- color: exports.Color.Silver500
5888
- },
5889
- '&:hover:not($checked)': {
5890
- color: exports.Color.Dark100
5891
- }
5892
- }
5893
- };
5894
- }
5895
-
5896
- function overrideChip$1(theme) {
5897
- var sm = theme.breakpoints.up('sm');
5898
- theme.props.MuiChip = {
5899
- size: 'small',
5900
- deleteIcon: /*#__PURE__*/jsxRuntime.jsx("div", {
5901
- children: /*#__PURE__*/jsxRuntime.jsx(core.SvgIcon, {
5902
- children: /*#__PURE__*/jsxRuntime.jsx("path", {
5903
- fillRule: "evenodd",
5904
- clipRule: "evenodd",
5905
- 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",
5906
- fill: "currentColor"
5907
- })
5908
- })
5909
- })
5910
- };
5911
- theme.overrides.MuiChip = {
5912
- root: _objectSpread(_objectSpread({}, theme.typography.body2), {}, {
5913
- color: undefined,
5914
- height: undefined,
5915
- borderRadius: 4,
5916
- backgroundColor: exports.Color.Silver200,
5917
- '&$disabled': {
5918
- opacity: undefined,
5919
- color: exports.Color.Dark100
5920
- }
5921
- }),
5922
- sizeSmall: {
5923
- height: undefined
5924
- },
5925
- labelSmall: {
5926
- paddingLeft: 6,
5927
- paddingRight: 6,
5928
- [sm]: {
5929
- paddingLeft: 4,
5930
- paddingRight: 4
5931
- }
5932
- },
5933
- clickable: {
5934
- '&:hover, &:focus': {
5935
- backgroundColor: undefined
5936
- },
5937
- '&:active': {
5938
- boxShadow: undefined
5939
- },
5940
- '&:focus': {
5941
- boxShadow: "0 0 0 2px ".concat(exports.Color.Silver300)
5942
- },
5943
- '&:active, &:hover': {
5944
- backgroundColor: exports.Color.Silver300
5945
- }
5946
- },
5947
- deletable: {
5948
- '&:focus': {
5949
- backgroundColor: undefined,
5950
- boxShadow: "0 0 0 2px ".concat(exports.Color.Silver300)
5951
- }
5952
- },
5953
- deleteIcon: {
5954
- width: undefined,
5955
- height: undefined,
5956
- display: 'flex',
5957
- transition: theme.transitions.create('background-color'),
5958
- '&:active, &:hover, &:focus': {
5959
- '& > svg': {
5960
- backgroundColor: exports.Color.Silver400
5961
- }
5962
- },
5963
- '& > svg': {
5964
- borderRadius: '50%',
5965
- color: exports.Color.Dark200,
5966
- fontSize: '1em'
5967
- }
5968
- },
5969
- deleteIconSmall: {
5970
- width: undefined,
5971
- height: undefined,
5972
- padding: theme.spacing(0.5),
5973
- marginLeft: theme.spacing(-0.5),
5974
- marginRight: theme.spacing(0.25),
5975
- [sm]: {
5976
- marginRight: 0
5977
- }
5978
- },
5979
- icon: {
5980
- color: exports.Color.Dark100,
5981
- fontSize: '1em',
5982
- marginRight: undefined
5983
- },
5984
- iconSmall: {
5985
- width: undefined,
5986
- height: undefined,
5987
- marginLeft: 8,
5988
- marginRight: undefined,
5989
- [sm]: {
5990
- marginLeft: 4
5991
- }
5992
- }
5993
- };
5994
- }
5995
-
5996
- function overrideDialog$1(theme) {
5997
- theme.props.MuiDialogTitle = {
5998
- disableTypography: true
5999
- };
6000
- theme.overrides.MuiDialog = {
6001
- paper: {
6002
- margin: theme.spacing(3)
6003
- },
6004
- paperWidthXs: {
6005
- maxWidth: Math.max(theme.breakpoints.values.xs, 360),
6006
- '&$paperScrollBody': {
6007
- [theme.breakpoints.down(Math.max(theme.breakpoints.values.xs, 360) + 32 * 2)]: {
6008
- maxWidth: 'calc(100% - 64px)'
6009
- }
6010
- }
6011
- }
6012
- };
6013
- theme.overrides.MuiDialogTitle = {
6014
- root: _objectSpread({}, theme.typography.h3)
6015
- };
6016
- theme.overrides.MuiDialogContent = {
6017
- root: {
6018
- padding: theme.spacing(0, 3)
6019
- }
6020
- };
6021
- theme.overrides.MuiDialogActions = {
6022
- root: {
6023
- padding: theme.spacing(3)
6024
- },
6025
- spacing: {
6026
- '& > :not(:first-child)': {
6027
- marginLeft: theme.spacing(2)
6028
- }
6029
- }
6030
- };
6031
- }
6032
-
6033
- function overrideDrawer$1(theme) {
6034
- theme.props.MuiDrawer = {
6035
- anchor: 'right'
6036
- };
6037
- theme.overrides.MuiDrawer = {
6038
- paper: {
6039
- maxWidth: '100%',
6040
- minWidth: '100%',
6041
- [theme.breakpoints.up('sm')]: {
6042
- minWidth: theme.spacing(54),
6043
- maxWidth: theme.breakpoints.values.sm
6044
- }
6045
- }
6046
- };
6047
- }
6048
-
6049
- function overrideIconButton$1(theme) {
6050
- theme.overrides.MuiIconButton = {
6051
- root: {
6052
- color: exports.Color.Dark100,
6053
- backgroundColor: exports.Color.Transparent,
6054
- transition: theme.transitions.create(['color', 'background-color'], {
6055
- duration: theme.transitions.duration.short
6056
- }),
6057
- '&:hover': {
6058
- backgroundColor: exports.Color.Transparent
6059
- },
6060
- '&:active': {
6061
- color: exports.Color.Dark500
6062
- },
6063
- '&:hover ': {
6064
- color: exports.Color.Dark300
6065
- },
6066
- '&:focus': {
6067
- backgroundColor: exports.Color.Silver400
6068
- },
6069
- '&$disabled': {
6070
- color: exports.Color.Silver500
6071
- }
6072
- },
6073
- colorPrimary: {
6074
- '&:active': {
6075
- color: exports.Color.Blue500
6076
- },
6077
- '&:hover ': {
6078
- color: exports.Color.Blue300
6079
- },
6080
- '&:focus': {
6081
- backgroundColor: exports.Color.Blue50
6082
- }
6083
- },
6084
- edgeEnd: {
6085
- marginRight: theme.spacing(-1)
6086
- },
6087
- edgeStart: {
6088
- marginLeft: theme.spacing(-1)
6089
- }
6090
- };
6091
- }
6092
-
6093
- function line$1(color) {
6094
- return "linear-gradient(to right, ".concat(color, " 0%, ").concat(color, " 100%)");
6095
- }
6096
-
6097
- function overrideLink$1(theme) {
6098
- theme.props.MuiLink = {
6099
- underline: 'none',
6100
- color: 'textPrimary'
6101
- };
6102
- theme.overrides.MuiLink = {
6103
- root: {
6104
- backgroundSize: '100% 1px',
6105
- backgroundRepeat: 'repeat-x',
6106
- backgroundPosition: '0 100%',
6107
- backgroundColor: exports.Color.Transparent,
6108
- '&:focus': {
6109
- outline: 'none'
6110
- },
6111
- '&:hover, &:active': {
6112
- backgroundImage: line$1('currentColor')
6113
- },
6114
- '&.MuiTypography-colorTextPrimary': {
6115
- backgroundImage: line$1(exports.Color.Silver500),
6116
- '&:focus, &:hover, &:active': {
6117
- color: exports.Color.Blue300,
6118
- backgroundImage: line$1(exports.Color.Blue300)
6119
- }
6120
- }
6121
- },
6122
- button: {
6123
- // Reset button styles.
6124
- backgroundColor: undefined,
6125
- // Override browser defaults.
6126
- fontSize: 'inherit',
6127
- textAlign: 'inherit',
6128
- lineHeight: 'inherit',
6129
- userSelect: 'inherit',
6130
- verticalAlign: 'inherit'
6131
- }
6132
- };
6133
- }
6134
-
6135
- function overrideList$1(theme) {
6136
- theme.overrides.MuiListItem = {
6137
- root: {
6138
- '&$selected, &$selected:hover': {
6139
- backgroundColor: exports.Color.Blue50
6140
- },
6141
- '& .MuiTouchRipple-root': {
6142
- color: exports.Color.Blue100
6143
- }
6144
- }
6145
- };
6146
- }
6147
-
6148
- function overrideMenu$1(theme) {
6149
- theme.props.MuiMenu = {
6150
- getContentAnchorEl: null,
6151
- anchorOrigin: {
6152
- vertical: 'bottom',
6153
- horizontal: 'left'
6154
- },
6155
- transformOrigin: {
6156
- vertical: 'top',
6157
- horizontal: 'left'
6158
- }
6159
- };
6160
- theme.overrides.MuiMenuItem = {
6161
- root: _objectSpread(_objectSpread({}, theme.typography.body2), {}, {
6162
- paddingTop: theme.spacing(1),
6163
- paddingBottom: theme.spacing(1)
6164
- })
6165
- };
6166
- }
6167
-
6168
- function overridePagination$1(theme) {
6169
- var props = {};
6170
- var overrides = {
6171
- root: {
6172
- color: exports.Color.Dark400
6173
- },
6174
- page: {
6175
- '&:hover': {
6176
- backgroundColor: exports.Color.Silver200
6177
- },
6178
- '&$focusVisible': {
6179
- borderRadius: 4,
6180
- backgroundColor: exports.Color.White,
6181
- border: "1px solid ".concat(exports.Color.Blue100)
6182
- },
6183
- '&$selected': {
6184
- backgroundColor: exports.Color.Silver400,
6185
- '&:hover, &$focusVisible': {
6186
- backgroundColor: exports.Color.Silver400
6187
- },
6188
- '&$disabled': {
6189
- color: exports.Color.Dark100,
6190
- backgroundColor: exports.Color.Silver400
6191
- }
6192
- },
6193
- '&$disabled': {
6194
- opacity: undefined,
6195
- color: exports.Color.Dark100
6196
- }
6197
- }
6198
- }; // Remove `Object.assign` after official release of `PaginationItem`.
6199
-
6200
- Object.assign(theme.props, {
6201
- MuiPaginationItem: props
6202
- });
6203
- Object.assign(theme.overrides, {
6204
- MuiPaginationItem: overrides
6205
- });
6206
- }
6207
-
6208
- function overridePaper$1(theme) {
6209
- theme.props.MuiPaper = {
6210
- elevation: 0
6211
- };
6212
- theme.overrides.MuiPaper = {
6213
- elevation0: {
6214
- border: "1px solid ".concat(exports.Color.Silver400)
6215
- }
6216
- };
6217
- }
6218
-
6219
- function overrideRadio$1(theme) {
6220
- theme.props.MuiRadio = {
6221
- color: 'primary',
6222
- icon: /*#__PURE__*/jsxRuntime.jsx(core.SvgIcon, {
6223
- children: /*#__PURE__*/jsxRuntime.jsx("circle", {
6224
- cx: "12",
6225
- cy: "12",
6226
- r: "8.5",
6227
- fill: exports.Color.White,
6228
- stroke: "currentColor"
6229
- })
6230
- }),
6231
- checkedIcon: /*#__PURE__*/jsxRuntime.jsxs(core.SvgIcon, {
6232
- children: [/*#__PURE__*/jsxRuntime.jsx("circle", {
6233
- cx: "12",
6234
- cy: "12",
6235
- r: "8.5",
6236
- fill: "currentColor",
6237
- stroke: "currentColor"
6238
- }), /*#__PURE__*/jsxRuntime.jsx("circle", {
6239
- cx: "12",
6240
- cy: "12",
6241
- r: "4",
6242
- fill: exports.Color.White
6243
- })]
6244
- })
6245
- };
6246
- theme.overrides.MuiRadio = {
6247
- root: {
6248
- color: exports.Color.Dark100,
6249
- marginTop: theme.spacing(-0.625),
6250
- marginBottom: theme.spacing(-0.625)
6251
- },
6252
- colorPrimary: {
6253
- '&$checked$disabled': {
6254
- color: exports.Color.Silver500
6255
- },
6256
- '&:hover:not($checked)': {
6257
- color: exports.Color.Dark100
6258
- }
6259
- }
6260
- };
6261
- }
6262
-
6263
- function overrideSnackbar$1(theme) {
6264
- theme.overrides.MuiSnackbar = {
6265
- anchorOriginBottomCenter: {
6266
- left: 0,
6267
- right: 0,
6268
- bottom: 0
6269
- }
6270
- };
6271
- theme.overrides.MuiSnackbarContent = {
6272
- root: {
6273
- width: '100%',
6274
- borderRadius: 0,
6275
- minHeight: theme.spacing(7.5),
6276
- [theme.breakpoints.up('sm')]: {
6277
- width: theme.spacing(54),
6278
- maxWidth: theme.spacing(54),
6279
- borderRadius: theme.spacing(0.5)
6280
- }
6281
- },
6282
- message: {
6283
- flex: 1,
6284
- display: 'flex'
6285
- }
6286
- };
6287
- }
6288
-
6289
- function overrideSvgIcon$1(theme) {
6290
- var sm = theme.breakpoints.up('sm');
6291
- theme.overrides.MuiSvgIcon = {
6292
- root: {
6293
- display: 'inherit',
6294
- fontSize: 'var(--mui-svg-icon-size, 32px)',
6295
- [sm]: {
6296
- fontSize: 'var(--mui-svg-icon-size, 24px)'
6297
- }
6298
- },
6299
- fontSizeSmall: {
6300
- fontSize: 'var(--mui-svg-icon-size, 24px)',
6301
- [sm]: {
6302
- fontSize: 'var(--mui-svg-icon-size, 16px)'
6303
- }
6304
- },
6305
- fontSizeLarge: {
6306
- fontSize: 'var(--mui-svg-icon-size, 32px)'
6307
- },
6308
- colorAction: {
6309
- color: exports.Color.Dark100
6310
- }
6311
- };
6312
- }
6313
-
6314
- function overrideSwitch$1(theme) {
6315
- var sm = theme.breakpoints.up('sm');
6316
- theme.props.MuiSwitch = {
6317
- color: 'primary',
6318
- disableRipple: true,
6319
- disableFocusRipple: true
6320
- };
6321
- theme.overrides.MuiSwitch = {
6322
- root: {
6323
- width: theme.spacing(9.5),
6324
- height: theme.spacing(5.5),
6325
- padding: theme.spacing(0.75, 1.5),
6326
- [sm]: {
6327
- width: theme.spacing(8),
6328
- height: theme.spacing(4),
6329
- padding: theme.spacing(0.5, 1.5)
6330
- }
6331
- },
6332
- track: {
6333
- opacity: undefined,
6334
- boxShadow: "0 0 0 0 ".concat(exports.Color.Transparent),
6335
- transition: theme.transitions.create(['box-shadow', 'background-color'], {
6336
- duration: theme.transitions.duration.shortest
6337
- }),
6338
- borderRadius: theme.spacing(2),
6339
- [sm]: {
6340
- borderRadius: theme.spacing(1.625)
6341
- }
6342
- },
6343
- thumb: {
6344
- color: exports.Color.White,
6345
- boxShadow: undefined,
6346
- width: theme.spacing(3),
6347
- height: theme.spacing(3),
6348
- [sm]: {
6349
- width: theme.spacing(2),
6350
- height: theme.spacing(2)
6351
- }
6352
- },
6353
- switchBase: {
6354
- left: theme.spacing(1),
6355
- padding: theme.spacing(1.25, 1),
6356
- [sm]: {
6357
- padding: theme.spacing(1)
6358
- },
6359
- '&$checked': {
6360
- transform: "translateX(".concat(theme.spacing(2.5), "px)"),
6361
- [sm]: {
6362
- transform: "translateX(".concat(theme.spacing(2), "px)")
6363
- }
6364
- },
6365
- '&$checked + $track': {
6366
- opacity: undefined
6367
- },
6368
- '&$disabled + $track': {
6369
- opacity: undefined
6370
- }
6371
- },
6372
- colorPrimary: {
6373
- '&$checked': {
6374
- color: undefined,
6375
- '&:hover': {
6376
- backgroundColor: undefined,
6377
- '& + $track': {
6378
- backgroundColor: exports.Color.Blue400
6379
- }
6380
- }
6381
- },
6382
- '& + $track': {
6383
- backgroundColor: exports.Color.Silver500
6384
- },
6385
- '&$disabled + $track': {
6386
- backgroundColor: exports.Color.Silver300
6387
- },
6388
- '&$checked$disabled + $track': {
6389
- backgroundColor: exports.Color.Blue100
6390
- },
6391
- '&:hover + $track': {
6392
- backgroundColor: exports.Color.Dark100
6393
- },
6394
- '&.Mui-focusVisible + $track': {
6395
- boxShadow: "0 0 0 3px ".concat(exports.Color.Blue100)
6396
- }
6397
- }
6398
- };
6399
- }
6400
-
6401
- function overrideTabs$1(theme) {
6402
- theme.props.MuiTabs = {
6403
- variant: 'scrollable',
6404
- textColor: 'primary',
6405
- indicatorColor: 'primary'
6406
- };
6407
- theme.overrides.MuiTabs = {
6408
- root: {
6409
- minHeight: theme.spacing(6)
6410
- },
6411
- scrollButtons: {
6412
- opacity: 1,
6413
- color: exports.Color.Dark100,
6414
- width: theme.spacing(4),
6415
- transition: theme.transitions.create('opacity', {
6416
- duration: theme.transitions.duration.short
6417
- })
6418
- }
6419
- };
6420
- theme.overrides.MuiTab = {
6421
- root: _objectSpread(_objectSpread({}, theme.typography.body2), {}, {
6422
- minHeight: theme.spacing(6),
6423
- transition: theme.transitions.create(['color'], {
6424
- duration: theme.transitions.duration.short
6425
- }),
6426
- [theme.breakpoints.up('sm')]: {
6427
- minWidth: undefined,
6428
- fontSize: undefined,
6429
- padding: theme.spacing(0.75, 3)
6430
- }
6431
- }),
6432
- textColorPrimary: {
6433
- color: exports.Color.Dark500,
6434
- '&:hover, &:focus': {
6435
- color: exports.Color.Blue300
6436
- }
6437
- }
6438
- };
6439
- }
6440
-
6441
- var SelectIcon$1 = /*#__PURE__*/react.forwardRef((props, ref) => /*#__PURE__*/jsxRuntime.jsx(core.SvgIcon, _objectSpread(_objectSpread({
6442
- ref: ref
6443
- }, props), {}, {
6444
- children: /*#__PURE__*/jsxRuntime.jsx("path", {
6445
- d: "M12 16.5L6 9h12l-6 7.5z",
6446
- fill: "currentColor"
6447
- })
6448
- })));
6449
- if (process.env.NODE_ENV !== "production") SelectIcon$1.displayName = "SelectIcon";
6450
- function overrideTextField$1(theme) {
6451
- var sm = theme.breakpoints.up('sm');
6452
- theme.props.MuiTextField = {
6453
- minRows: 4,
6454
- maxRows: 4,
6455
- variant: 'outlined'
6456
- };
6457
- theme.overrides.MuiFormLabel = {
6458
- root: _objectSpread(_objectSpread({}, theme.typography.body2), {}, {
6459
- color: exports.Color.Dark400,
6460
- '&$error': {
6461
- color: undefined
6462
- },
6463
- '&$focused': {
6464
- color: undefined
6465
- },
6466
- '&$disabled': {
6467
- color: undefined
6468
- }
6469
- })
6470
- };
6471
- theme.overrides.MuiInputBase = {
6472
- root: _objectSpread(_objectSpread({}, theme.typography.body2), {}, {
6473
- '&$disabled': {
6474
- backgroundColor: exports.Color.Silver100
6475
- }
6476
- }),
6477
- input: {
6478
- textOverflow: 'ellipsis',
6479
- height: theme.spacing(3),
6480
- [sm]: {
6481
- height: theme.spacing(2.5)
6482
- }
6483
- },
6484
- inputMultiline: {
6485
- resize: 'vertical'
6486
- }
6487
- };
6488
- theme.props.MuiInputLabel = {
6489
- shrink: true
6490
- };
6491
- theme.overrides.MuiInputLabel = {
6492
- root: {
6493
- marginBottom: theme.spacing(0.5),
6494
- transformOrigin: undefined
6495
- },
6496
- formControl: {
6497
- top: undefined,
6498
- left: undefined,
6499
- position: undefined,
6500
- transform: undefined
6501
- },
6502
- shrink: {
6503
- transform: undefined,
6504
- transformOrigin: undefined
6505
- },
6506
- outlined: {
6507
- zIndex: undefined,
6508
- transform: undefined,
6509
- pointerEvents: undefined,
6510
- '&$shrink': {
6511
- transform: undefined
6512
- }
6513
- }
6514
- };
6515
- theme.props.MuiOutlinedInput = {
6516
- notched: false
6517
- };
6518
- theme.overrides.MuiOutlinedInput = {
6519
- root: {
6520
- '&:hover $notchedOutline': {
6521
- borderColor: undefined
6522
- }
6523
- },
6524
- input: {
6525
- padding: theme.spacing(1.25, 1.5),
6526
- [sm]: {
6527
- padding: theme.spacing(0.75, 1)
6528
- }
6529
- },
6530
- multiline: {
6531
- padding: theme.spacing(0.75, 1)
6532
- },
6533
- adornedStart: {
6534
- paddingLeft: theme.spacing(1)
6535
- },
6536
- adornedEnd: {
6537
- paddingRight: theme.spacing(1)
6538
- },
6539
- notchedOutline: {
6540
- top: 0,
6541
- borderColor: exports.Color.Silver500,
6542
- '& legend': {
6543
- display: 'none'
6544
- }
6545
- }
6546
- };
6547
- theme.props.MuiSelect = {
6548
- IconComponent: SelectIcon$1
6549
- };
6550
- theme.overrides.MuiSelect = {
6551
- icon: {
6552
- top: 'calc(50% - 0.5em)',
6553
- '$disabled &': {
6554
- color: exports.Color.Dark100
6555
- },
6556
- fontSize: theme.spacing(3),
6557
- [sm]: {
6558
- fontSize: theme.spacing(2)
6559
- }
6560
- },
6561
- iconOutlined: {
6562
- right: theme.spacing(1.5),
6563
- [sm]: {
6564
- right: theme.spacing(1)
6565
- }
6566
- },
6567
- select: {
6568
- '&:focus': {
6569
- backgroundColor: undefined
6570
- }
6571
- },
6572
- selectMenu: {
6573
- '&&': {
6574
- paddingRight: theme.spacing(4.5),
6575
- [sm]: {
6576
- right: theme.spacing(4)
6577
- }
6578
- }
6579
- }
6580
- };
6581
- theme.overrides.MuiInputAdornment = {
6582
- root: {
6583
- '& .MuiSvgIcon-root:not(.MuiSvgIcon-fontSizeSmall)': {
6584
- fontSize: theme.spacing(3),
6585
- [sm]: {
6586
- fontSize: theme.spacing(2.5)
6587
- }
6588
- },
6589
- '& .MuiIconButton-root': {
6590
- padding: theme.spacing(1)
6591
- }
6592
- },
6593
- positionStart: {
6594
- '& .MuiIconButton-root': {
6595
- marginLeft: theme.spacing(-0.5),
6596
- [sm]: {
6597
- marginLeft: theme.spacing(-0.75)
6598
- }
6599
- }
6600
- },
6601
- positionEnd: {
6602
- '& .MuiIconButton-root': {
6603
- marginRight: theme.spacing(-0.5),
6604
- [sm]: {
6605
- marginRight: theme.spacing(-0.75)
6606
- }
6607
- }
6608
- }
6609
- };
6610
- theme.overrides.MuiFormHelperText = {
6611
- root: _objectSpread(_objectSpread({}, theme.typography.body2), {}, {
6612
- marginTop: theme.spacing(0.5)
6613
- }),
6614
- contained: {
6615
- marginLeft: undefined,
6616
- marginRight: undefined
6617
- }
6618
- };
6619
- }
6620
-
6621
- function overrideToolbar$1(theme) {
6622
- theme.overrides.MuiToolbar = {
6623
- regular: {
6624
- minHeight: theme.spacing(8)
6625
- },
6626
- gutters: {
6627
- [theme.breakpoints.up('sm')]: {
6628
- paddingLeft: theme.spacing(2),
6629
- paddingRight: theme.spacing(2)
6630
- }
6631
- }
6632
- };
6633
- }
6634
-
6635
- function overrideTooltip$1(theme) {
6636
- theme.props.MuiTooltip = {
6637
- arrow: true
6638
- };
6639
- theme.overrides.MuiTooltip = {
6640
- tooltip: _objectSpread(_objectSpread({}, theme.typography.body2), {}, {
6641
- padding: theme.spacing(1, 1.5),
6642
- backgroundColor: exports.Color.Dark400
6643
- }),
6644
- popperArrow: {
6645
- '&[x-placement*="top"] $arrow': {
6646
- '&::before': {
6647
- borderBottomRightRadius: 2
6648
- }
6649
- },
6650
- '&[x-placement*="left"] $arrow': {
6651
- '&::before': {
6652
- borderTopRightRadius: 2
6653
- }
6654
- },
6655
- '&[x-placement*="right"] $arrow': {
6656
- '&::before': {
6657
- borderBottomLeftRadius: 2
6658
- }
6659
- },
6660
- '&[x-placement*="bottom"] $arrow': {
6661
- '&::before': {
6662
- borderTopLeftRadius: 2
6663
- }
6664
- }
6665
- },
6666
- arrow: {
6667
- color: exports.Color.Dark400,
6668
- fontSize: theme.spacing(1)
6669
- }
6670
- };
6671
- }
6672
-
6673
- function createTypographyOptions$1(breakpoints) {
6674
- var xsOnly = breakpoints.only('xs');
6675
- return {
6676
- fontSize: 14,
6677
- fontWeightLight: 300,
6678
- fontWeightRegular: 400,
6679
- fontWeightMedium: 500,
6680
- fontWeightBold: 600,
6681
- fontFamily: '"Inter", sans-serif',
6682
- h1: {
6683
- fontSize: '32px',
6684
- lineHeight: '40px',
6685
- fontWeight: 700,
6686
- [xsOnly]: {
6687
- fontSize: '28px',
6688
- lineHeight: '36px'
6689
- }
6690
- },
6691
- h2: {
6692
- fontSize: '24px',
6693
- lineHeight: '28px',
6694
- fontWeight: 500,
6695
- [xsOnly]: {
6696
- fontSize: '22px',
6697
- lineHeight: '26px'
6698
- }
6699
- },
6700
- h3: {
6701
- fontSize: '20px',
6702
- lineHeight: '28px',
6703
- fontWeight: 500,
6704
- [xsOnly]: {
6705
- fontSize: '20px',
6706
- lineHeight: '26px'
6707
- }
6708
- },
6709
- h4: {
6710
- fontSize: '16px',
6711
- lineHeight: '24px',
6712
- fontWeight: 500,
6713
- [xsOnly]: {
6714
- fontSize: '17px',
6715
- lineHeight: '26px'
6716
- }
6717
- },
6718
- h5: {
6719
- fontSize: '14px',
6720
- lineHeight: '20px',
6721
- fontWeight: 600,
6722
- [xsOnly]: {
6723
- fontSize: '16px',
6724
- lineHeight: '24px'
6725
- }
6726
- },
6727
- h6: {
6728
- fontSize: '12px',
6729
- lineHeight: '16px',
6730
- fontWeight: 700,
6731
- letterSpacing: '0.1em',
6732
- textTransform: 'uppercase',
6733
- [xsOnly]: {
6734
- fontSize: '14px',
6735
- lineHeight: '20px'
6736
- }
6737
- },
6738
- body1: {
6739
- fontSize: '14px',
6740
- lineHeight: '20px',
6741
- fontWeight: 600,
6742
- [xsOnly]: {
6743
- fontSize: '16px',
6744
- lineHeight: '24px'
6745
- }
6746
- },
6747
- body2: {
6748
- fontSize: '14px',
6749
- lineHeight: '20px',
6750
- fontWeight: 400,
6751
- [xsOnly]: {
6752
- fontSize: '16px',
6753
- lineHeight: '24px'
6754
- }
6755
- },
6756
- caption: {
6757
- fontSize: '12px',
6758
- lineHeight: '16px',
6759
- fontWeight: 400,
6760
- [xsOnly]: {
6761
- fontSize: '14px',
6762
- lineHeight: '20px'
6763
- }
6764
- },
6765
- button: {
6766
- fontSize: '14px',
6767
- lineHeight: '20px',
6768
- fontWeight: 600,
6769
- textTransform: undefined,
6770
- [xsOnly]: {
6771
- fontSize: '16px',
6772
- lineHeight: '24px'
6773
- }
6774
- }
6775
- };
6776
- }
6777
- function overrideTypography$1(theme) {
6778
- theme.props.MuiTypography = {
6779
- variant: 'body2'
6780
- };
6781
- }
6782
-
6783
- function createSuperDispatchTheme$1() {
6784
- var breakpoints = createBreakpoints({});
6785
- var theme = core.createTheme({
6786
- breakpoints,
6787
- palette: {
6788
- primary: {
6789
- main: exports.Color.Blue300
6790
- },
6791
- error: {
6792
- main: exports.Color.Red300
6793
- },
6794
- action: {
6795
- hover: exports.Color.Silver100,
6796
- selected: exports.Color.Silver300,
6797
- disabled: exports.Color.Silver400
6798
- },
6799
- text: {
6800
- primary: exports.Color.Dark500,
6801
- secondary: exports.Color.Dark200,
6802
- hint: exports.Color.Dark100,
6803
- disabled: exports.Color.Dark100
6804
- },
6805
- divider: exports.Color.Silver400
6806
- },
6807
- typography: createTypographyOptions$1(breakpoints),
6808
- props: {},
6809
- overrides: {}
6810
- });
6811
- overrideAppBar$1(theme);
6812
- overrideAutocomplete$1(theme);
6813
- overrideAvatar$1(theme);
6814
- overrideButton$1(theme);
6815
- overrideCard$1(theme);
6816
- overrideCheckbox$1(theme);
6817
- overrideChip$1(theme);
6818
- overrideDialog$1(theme);
6819
- overrideDrawer$1(theme);
6820
- overrideIconButton$1(theme);
6821
- overrideLink$1(theme);
6822
- overrideList$1(theme);
6823
- overrideMenu$1(theme);
6824
- overridePaper$1(theme);
6825
- overrideRadio$1(theme);
6826
- overrideSnackbar$1(theme);
6827
- overrideSvgIcon$1(theme);
6828
- overrideSwitch$1(theme);
6829
- overrideTabs$1(theme);
6830
- overrideTextField$1(theme);
6831
- overrideToolbar$1(theme);
6832
- overrideTooltip$1(theme);
6833
- overrideTypography$1(theme);
6834
- overridePagination$1(theme);
6835
- return theme;
6836
- }
6837
-
6838
- var generateMaterialClassName$1 = /*#__PURE__*/core.createGenerateClassName();
6839
-
6840
- function generateClassName$1(rule, sheet) {
6841
- var {
6842
- meta,
6843
- link
6844
- } = (sheet === null || sheet === void 0 ? void 0 : sheet.options) || {};
6845
-
6846
- if (meta && rule.type === 'style') {
6847
- if (meta.startsWith('SD-')) {
6848
- return "".concat(meta, "-").concat(rule.key);
6849
- }
6850
-
6851
- if (meta.startsWith('Mui')) {
6852
- var isPseudoClass = ['checked', 'disabled', 'error', 'focused', 'focusVisible', 'required', 'expanded', 'selected'].includes(rule.key);
6853
-
6854
- if (isPseudoClass) {
6855
- return "Mui-".concat(rule.key);
6856
- }
6857
-
6858
- if (!link) {
6859
- return "".concat(meta, "-").concat(rule.key);
6860
- }
6861
- }
6862
- }
6863
-
6864
- return generateMaterialClassName$1(rule, sheet);
6865
- }
6866
-
6867
- function ThemeProvider$1(_ref) {
6868
- var {
6869
- modifier,
6870
- children,
6871
- injectFirst = true
6872
- } = _ref;
6873
- var theme = hooks.useConstant(() => {
6874
- var nextTheme = createSuperDispatchTheme$1();
6875
- return !modifier ? nextTheme : modifier(nextTheme);
6876
- });
6877
- return /*#__PURE__*/jsxRuntime.jsx(styles$1.StylesProvider, {
6878
- injectFirst: injectFirst,
6879
- generateClassName: generateClassName$1,
6880
- children: /*#__PURE__*/jsxRuntime.jsxs(styles$1.ThemeProvider, {
6881
- theme: theme,
6882
- children: [/*#__PURE__*/jsxRuntime.jsx(core.CssBaseline, {}), /*#__PURE__*/jsxRuntime.jsx(styled.ThemeProvider, {
6883
- theme: theme,
6884
- children: /*#__PURE__*/jsxRuntime.jsx(ResponsiveContextProvider$1, {
6885
- children: /*#__PURE__*/jsxRuntime.jsx(SnackbarStackProvider$1, {
6886
- children: children
6887
- })
6888
- })
6889
- })]
6890
- })
6891
- });
6892
- }
6893
-
6894
- var PREVENT_COLLAPSE$1 = 1;
6895
-
6896
- function spaceVariant$1(theme, space) {
6897
- var gap = theme.spacing(space);
6898
- return {
6899
- '&:before': {
6900
- marginTop: -gap - PREVENT_COLLAPSE$1
6901
- },
6902
- '& > $container': {
6903
- marginLeft: -gap,
6904
- '& > $child > $childContainer': {
6905
- marginTop: gap,
6906
- marginLeft: gap
6907
- }
6908
- }
6909
- };
6910
- }
6911
-
6912
- function columnVariant$1(columns) {
6913
- return {
6914
- flex: "0 0 ".concat(100 / columns, "%")
6915
- };
6916
- }
6917
-
6918
- var useStyles$f = /*#__PURE__*/styles$1.makeStyles(theme => ({
6919
- root: {
6920
- paddingTop: PREVENT_COLLAPSE$1,
6921
- '&:before': {
6922
- content: '""',
6923
- display: 'block',
6924
- marginTop: -PREVENT_COLLAPSE$1
6925
- }
6926
- },
6927
- container: {
6928
- display: 'flex',
6929
- flexWrap: 'wrap'
6930
- },
6931
- child: {
6932
- minWidth: 0
6933
- },
6934
- childContainer: {
6935
- height: '100%'
6936
- },
6937
- space1: spaceVariant$1(theme, 1),
6938
- space2: spaceVariant$1(theme, 2),
6939
- space3: spaceVariant$1(theme, 3),
6940
- space4: spaceVariant$1(theme, 4),
6941
- space5: spaceVariant$1(theme, 5),
6942
- space6: spaceVariant$1(theme, 6),
6943
- space7: spaceVariant$1(theme, 7),
6944
- space8: spaceVariant$1(theme, 8),
6945
- space9: spaceVariant$1(theme, 9),
6946
- space10: spaceVariant$1(theme, 10),
6947
- columns1: columnVariant$1(1),
6948
- columns2: columnVariant$1(2),
6949
- columns3: columnVariant$1(3),
6950
- columns4: columnVariant$1(4),
6951
- columns5: columnVariant$1(5),
6952
- columns6: columnVariant$1(6)
6953
- }), {
6954
- name: 'SD-Tiles'
6955
- });
6956
- var Tiles$1 = /*#__PURE__*/react.forwardRef((_ref, ref) => {
6957
- var {
6958
- children,
6959
- space: spaceProp = 1,
6960
- columns: columnsProp = 1
6961
- } = _ref;
6962
- var styles = useStyles$f({});
6963
- var space = useResponsivePropRecord$1(spaceProp);
6964
- var columns = useResponsivePropRecord$1(columnsProp);
6965
- return /*#__PURE__*/jsxRuntime.jsx("div", {
6966
- ref: ref,
6967
- className: clsx(styles.root, space === 1 && styles.space1, space === 2 && styles.space2, space === 3 && styles.space3, space === 4 && styles.space4, space === 5 && styles.space5, space === 6 && styles.space6, space === 7 && styles.space7, space === 8 && styles.space8, space === 9 && styles.space9, space === 10 && styles.space10),
6968
- children: /*#__PURE__*/jsxRuntime.jsx("div", {
6969
- className: styles.container,
6970
- children: flattenChildren(children).map((child, idx) => /*#__PURE__*/jsxRuntime.jsx("div", {
6971
- className: clsx(styles.child, columns === 1 && styles.columns1, columns === 2 && styles.columns2, columns === 3 && styles.columns3, columns === 4 && styles.columns4, columns === 5 && styles.columns5, columns === 6 && styles.columns6),
6972
- children: /*#__PURE__*/jsxRuntime.jsx("div", {
6973
- className: styles.childContainer,
6974
- children: child
6975
- })
6976
- }, idx))
6977
- })
6978
- });
6979
- });
6980
- if (process.env.NODE_ENV !== "production") Tiles$1.displayName = "Tiles";
6981
-
6982
- exports.AdaptiveToolbar = AdaptiveToolbar$1;
6983
- exports.AvatarButton = AvatarButton$1;
6984
- exports.Button = Button$1;
6985
- exports.CardButton = CardButton$1;
6986
- exports.CheckboxField = CheckboxField$1;
6987
- exports.CheckboxGroupField = CheckboxGroupField$1;
6988
- exports.Column = Column$1;
6989
- exports.Columns = Columns$1;
6990
- exports.DescriptionList = DescriptionList$1;
6991
- exports.DescriptionListItem = DescriptionListItem$1;
6992
- exports.DrawerActions = DrawerActions$1;
6993
- exports.DrawerContent = DrawerContent$1;
6994
- exports.DrawerList = DrawerList$1;
6995
- exports.DrawerTitle = DrawerTitle$1;
6996
- exports.GridStack = GridStack$1;
6997
- exports.InfoCard = InfoCard$1;
6998
- exports.Inline = Inline$1;
6999
- exports.InlineGrid = InlineGrid$1;
7000
- exports.OverflowText = OverflowText$1;
7001
- exports.RadioField = RadioField$1;
7002
- exports.RadioGroupField = RadioGroupField$1;
7003
- exports.ResponsiveContextProvider = ResponsiveContextProvider$1;
7004
- exports.Snackbar = Snackbar$1;
7005
- exports.SnackbarContent = SnackbarContent$1;
7006
- exports.SnackbarStackConsumer = SnackbarStackConsumer$1;
7007
- exports.SnackbarStackProvider = SnackbarStackProvider$1;
7008
- exports.Stack = Stack$1;
7009
- exports.Tag = Tag$1;
7010
- exports.ThemeProvider = ThemeProvider$1;
7011
- exports.Tiles = Tiles$1;
7012
- exports.VisibilityObserver = VisibilityObserver$1;
7013
- exports.assignRef = assignRef$1;
7014
- exports.isColorProp = isColorProp$1;
7015
- exports.isEmptyReactNode = isEmptyReactNode$1;
7016
- exports.mergeRefs = mergeRefs$1;
7017
- exports.parseAlignProp = parseAlignProp$1;
7018
- exports.parseCollapsedBelow = parseCollapsedBelow$1;
7019
- exports.parseResponsiveProp = parseResponsiveProp$1;
7020
- exports.parseSpaceProp = parseSpaceProp$1;
7021
- exports.renderChildren = renderChildren$1;
7022
- exports.useCollapseBreakpoint = useCollapseBreakpoint;
7023
- exports.useResponsiveContext = useResponsiveContext$1;
7024
- exports.useResponsiveProp = useResponsiveProp$1;
7025
- exports.useResponsivePropRecord = useResponsivePropRecord$1;
7026
- exports.useResponsiveValue = useResponsiveValue$1;
7027
- exports.useSnackbarStack = useSnackbarStack$1;
7028
- exports.useUID = useUID$1;
7029
- exports.useVisibilityObserver = useVisibilityObserver$1;
7030
- exports.v5 = index;
3505
+ exports.AdaptiveToolbar = AdaptiveToolbar;
3506
+ exports.AvatarButton = AvatarButton;
3507
+ exports.Button = Button;
3508
+ exports.CardButton = CardButton;
3509
+ exports.CheckboxField = CheckboxField;
3510
+ exports.CheckboxGroupField = CheckboxGroupField;
3511
+ exports.Column = Column;
3512
+ exports.Columns = Columns;
3513
+ exports.DescriptionList = DescriptionList;
3514
+ exports.DescriptionListItem = DescriptionListItem;
3515
+ exports.DrawerActions = DrawerActions;
3516
+ exports.DrawerContent = DrawerContent;
3517
+ exports.DrawerList = DrawerList;
3518
+ exports.DrawerTitle = DrawerTitle;
3519
+ exports.GridStack = GridStack;
3520
+ exports.InfoCard = InfoCard;
3521
+ exports.Inline = Inline;
3522
+ exports.InlineGrid = InlineGrid;
3523
+ exports.OverflowText = OverflowText;
3524
+ exports.RadioField = RadioField;
3525
+ exports.RadioGroupField = RadioGroupField;
3526
+ exports.Snackbar = Snackbar;
3527
+ exports.SnackbarContent = SnackbarContent;
3528
+ exports.SnackbarStackConsumer = SnackbarStackConsumer;
3529
+ exports.SnackbarStackProvider = SnackbarStackProvider;
3530
+ exports.Stack = Stack;
3531
+ exports.Tag = Tag;
3532
+ exports.ThemeProvider = ThemeProvider;
3533
+ exports.Tiles = Tiles;
3534
+ exports.VisibilityObserver = VisibilityObserver;
3535
+ exports.assignRef = assignRef;
3536
+ exports.isColorProp = isColorProp;
3537
+ exports.isEmptyReactNode = isEmptyReactNode;
3538
+ exports.mergeRefs = mergeRefs;
3539
+ exports.parseAlignProp = parseAlignProp;
3540
+ exports.parseCollapsedBelow = parseCollapsedBelow;
3541
+ exports.parseResponsiveProp = parseResponsiveProp;
3542
+ exports.parseSpaceProp = parseSpaceProp;
3543
+ exports.renderChildren = renderChildren;
3544
+ exports.useResponsiveProp = useResponsiveProp;
3545
+ exports.useResponsivePropRecord = useResponsivePropRecord;
3546
+ exports.useResponsiveValue = useResponsiveValue;
3547
+ exports.useSnackbarStack = useSnackbarStack;
3548
+ exports.useUID = useUID;
3549
+ exports.useVisibilityObserver = useVisibilityObserver;
7031
3550
  //# sourceMappingURL=index.js.map