@superdispatch/ui 0.25.2 → 0.26.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (55) hide show
  1. package/dist-node/index.js +273 -391
  2. package/dist-node/index.js.map +1 -1
  3. package/dist-src/adaptive-toolbar/AdaptiveToolbar.js +6 -15
  4. package/dist-src/adaptive-vertical-toolbar/AdaptiveVerticalToolbar.js +3 -10
  5. package/dist-src/autocomplete/AutocompleteOverrides.js +2 -1
  6. package/dist-src/avatar-button/AvatarButton.js +28 -31
  7. package/dist-src/button/Button.js +9 -12
  8. package/dist-src/button/ButtonOverrides.js +0 -6
  9. package/dist-src/card-button/CardButton.js +12 -15
  10. package/dist-src/checkbox/CheckboxField.js +10 -12
  11. package/dist-src/checkbox/CheckboxGroudField.js +9 -11
  12. package/dist-src/checkbox/CheckboxOverrides.js +1 -2
  13. package/dist-src/columns/Column.js +0 -13
  14. package/dist-src/columns/Columns.js +0 -2
  15. package/dist-src/description-list/DescriptionList.js +10 -12
  16. package/dist-src/drawer/DrawerActions.js +5 -8
  17. package/dist-src/drawer/DrawerContent.js +3 -4
  18. package/dist-src/drawer/DrawerList.js +3 -6
  19. package/dist-src/drawer/DrawerTitle.js +10 -13
  20. package/dist-src/dropdown-button/DropdownButton.js +9 -21
  21. package/dist-src/grid/GridStack.js +4 -6
  22. package/dist-src/grid/InlineGrid.js +6 -8
  23. package/dist-src/info-card/InfoCard.js +17 -19
  24. package/dist-src/info-tooltip/InfoTooltip.js +11 -14
  25. package/dist-src/inline/Inline.js +0 -2
  26. package/dist-src/link/LinkOverrides.js +0 -2
  27. package/dist-src/number-field/NumberField.js +17 -23
  28. package/dist-src/overflow-text/OverflowText.js +13 -15
  29. package/dist-src/pagination/PaginationOverrides.js +2 -1
  30. package/dist-src/pattern-field/PatternField.js +10 -10
  31. package/dist-src/props/AlignProps.js +0 -2
  32. package/dist-src/props/ResponsiveProp.js +0 -1
  33. package/dist-src/props/SpaceProp.js +0 -7
  34. package/dist-src/radio/RadioField.js +10 -12
  35. package/dist-src/radio/RadioFieldCard.js +11 -13
  36. package/dist-src/radio/RadioGroupField.js +12 -14
  37. package/dist-src/radio/RadioOverrides.js +1 -2
  38. package/dist-src/responsive/CollapseBreakpoint.js +0 -2
  39. package/dist-src/responsive/MinBreakpoint.js +0 -2
  40. package/dist-src/responsive/ResponsiveContext.js +0 -2
  41. package/dist-src/snackbar/Snackbar.js +10 -14
  42. package/dist-src/snackbar/SnackbarContent.js +19 -23
  43. package/dist-src/snackbar/SnackbarStack.js +13 -20
  44. package/dist-src/stack/Stack.js +0 -2
  45. package/dist-src/tag/Tag.js +10 -11
  46. package/dist-src/theme/Color.js +0 -2
  47. package/dist-src/theme/ThemeProvider.js +1 -12
  48. package/dist-src/tiles/Tiles.js +0 -3
  49. package/dist-src/utils/ResizeObserver.js +0 -1
  50. package/dist-src/utils/VisibilityObserver.js +4 -6
  51. package/dist-src/utils/mergeRefs.js +0 -1
  52. package/dist-src/utils/renderChildren.js +2 -2
  53. package/dist-web/index.js +272 -392
  54. package/dist-web/index.js.map +1 -1
  55. package/package.json +2 -2
@@ -23,15 +23,14 @@ var createBreakpoints = _interopDefault(require('@material-ui/core/styles/create
23
23
  var _excluded = ["size", "children", "disabled", "isActive", "isLoading", "color"];
24
24
  var Button = /*#__PURE__*/React.forwardRef((_ref, ref) => {
25
25
  var {
26
- size,
27
- children,
28
- disabled,
29
- isActive,
30
- isLoading,
31
- color = 'primary'
32
- } = _ref,
33
- props = _objectWithoutProperties(_ref, _excluded);
34
-
26
+ size,
27
+ children,
28
+ disabled,
29
+ isActive,
30
+ isLoading,
31
+ color = 'primary'
32
+ } = _ref,
33
+ props = _objectWithoutProperties(_ref, _excluded);
35
34
  return /*#__PURE__*/jsxRuntime.jsx(core.Button, _objectSpread(_objectSpread({}, props), {}, {
36
35
  ref: ref,
37
36
  size: size,
@@ -51,7 +50,6 @@ var Button = /*#__PURE__*/React.forwardRef((_ref, ref) => {
51
50
  if (process.env.NODE_ENV !== "production") Button.displayName = "Button";
52
51
 
53
52
  var _excluded$1 = ["MenuListProps", "ButtonGroupProps", "children", "isLoading", "onClick", "label"];
54
-
55
53
  function CaretDownIcon() {
56
54
  return /*#__PURE__*/jsxRuntime.jsx("svg", {
57
55
  viewBox: "0 0 8 4",
@@ -61,7 +59,6 @@ function CaretDownIcon() {
61
59
  })
62
60
  });
63
61
  }
64
-
65
62
  var CaretButton = /*#__PURE__*/styled__default(Button).withConfig({
66
63
  displayName: "DropdownButton__CaretButton",
67
64
  componentId: "SD__sc-8l84jm-0"
@@ -73,40 +70,32 @@ var CaretButton = /*#__PURE__*/styled__default(Button).withConfig({
73
70
  });
74
71
  var DropdownButton = /*#__PURE__*/React.forwardRef((_ref2, ref) => {
75
72
  var _anchorRef$current2;
76
-
77
73
  var {
78
- MenuListProps,
79
- ButtonGroupProps,
80
- children,
81
- isLoading,
82
- onClick,
83
- label
84
- } = _ref2,
85
- buttonProps = _objectWithoutProperties(_ref2, _excluded$1);
86
-
74
+ MenuListProps,
75
+ ButtonGroupProps,
76
+ children,
77
+ isLoading,
78
+ onClick,
79
+ label
80
+ } = _ref2,
81
+ buttonProps = _objectWithoutProperties(_ref2, _excluded$1);
87
82
  var uid = useUID();
88
83
  var [open, setOpen] = React.useState(false);
89
84
  var anchorRef = React.useRef(null);
90
-
91
85
  function handleClick(event) {
92
86
  setOpen(false);
93
87
  onClick === null || onClick === void 0 ? void 0 : onClick(event);
94
88
  }
95
-
96
89
  function handleToggle() {
97
90
  setOpen(prevOpen => !prevOpen);
98
91
  }
99
-
100
92
  function handleClose(event) {
101
93
  var _anchorRef$current;
102
-
103
94
  if ((_anchorRef$current = anchorRef.current) !== null && _anchorRef$current !== void 0 && _anchorRef$current.contains(event.currentTarget)) {
104
95
  return;
105
96
  }
106
-
107
97
  setOpen(false);
108
98
  }
109
-
110
99
  return /*#__PURE__*/jsxRuntime.jsxs(jsxRuntime.Fragment, {
111
100
  children: [/*#__PURE__*/jsxRuntime.jsxs(core.ButtonGroup, _objectSpread(_objectSpread({}, ButtonGroupProps), {}, {
112
101
  ref: mergeRefs(ButtonGroupProps === null || ButtonGroupProps === void 0 ? void 0 : ButtonGroupProps.ref, anchorRef),
@@ -159,7 +148,6 @@ function useResizeObserver(node, observer) {
159
148
  if (!node) {
160
149
  return;
161
150
  }
162
-
163
151
  var resizeObserver$1 = new resizeObserver.ResizeObserver(() => {
164
152
  handler(node);
165
153
  });
@@ -181,10 +169,9 @@ var useStyles = /*#__PURE__*/styles.makeStyles({
181
169
  });
182
170
  var AdaptiveToolbar = /*#__PURE__*/React.forwardRef((_ref, ref) => {
183
171
  var {
184
- items
185
- } = _ref,
186
- props = _objectWithoutProperties(_ref, _excluded$2);
187
-
172
+ items
173
+ } = _ref,
174
+ props = _objectWithoutProperties(_ref, _excluded$2);
188
175
  var styles = useStyles();
189
176
  var itemNodes = React.useRef([]);
190
177
  var optionsButtonRef = React.useRef(null);
@@ -194,7 +181,6 @@ var AdaptiveToolbar = /*#__PURE__*/React.forwardRef((_ref, ref) => {
194
181
  var [rootNode, setRootNode] = React.useState(null);
195
182
  useResizeObserver(rootNode, node => {
196
183
  var _optionsButtonRef$cur;
197
-
198
184
  var rootRect = node.getBoundingClientRect();
199
185
  var rootWidth = rootRect.left + rootRect.width;
200
186
  var optionsButtonRect = (_optionsButtonRef$cur = optionsButtonRef.current) === null || _optionsButtonRef$cur === void 0 ? void 0 : _optionsButtonRef$cur.getBoundingClientRect();
@@ -204,21 +190,19 @@ var AdaptiveToolbar = /*#__PURE__*/React.forwardRef((_ref, ref) => {
204
190
  var hiddenIdx = mountedNodes.findIndex((itemNode, idx) => {
205
191
  itemNode.removeAttribute('hidden');
206
192
  var itemRect = itemNode.getBoundingClientRect();
207
- var itemRightPosition = itemRect.left + itemRect.width; // Ignore options button width when checking last item.
193
+ var itemRightPosition = itemRect.left + itemRect.width;
208
194
 
195
+ // Ignore options button width when checking last item.
209
196
  if (idx === mountedNodes.length - 1) {
210
197
  return itemRightPosition > rootWidth;
211
198
  }
212
-
213
199
  return itemRightPosition > maxRightPosition;
214
200
  });
215
-
216
201
  if (hiddenIdx !== -1) {
217
202
  mountedNodes.slice(hiddenIdx).forEach(itemNode => {
218
203
  itemNode.setAttribute('hidden', 'true');
219
204
  });
220
205
  }
221
-
222
206
  setFirstHiddenIdx(hiddenIdx);
223
207
  });
224
208
  return /*#__PURE__*/jsxRuntime.jsx(core.Toolbar, _objectSpread(_objectSpread({}, props), {}, {
@@ -282,13 +266,11 @@ var AdaptiveToolbar = /*#__PURE__*/React.forwardRef((_ref, ref) => {
282
266
  },
283
267
  children: menuItems.map((item, index, arr) => {
284
268
  var _item$dropdown;
285
-
286
269
  var next = arr[index + 1];
287
270
  return /*#__PURE__*/jsxRuntime.jsxs(jsxRuntime.Fragment, {
288
271
  children: [/*#__PURE__*/jsxRuntime.jsx(core.MenuItem, {
289
272
  onClick: event => {
290
273
  var _item$onClick;
291
-
292
274
  (_item$onClick = item.onClick) === null || _item$onClick === void 0 ? void 0 : _item$onClick.call(item, event);
293
275
  setMenuButtonRef(undefined);
294
276
  },
@@ -296,7 +278,6 @@ var AdaptiveToolbar = /*#__PURE__*/React.forwardRef((_ref, ref) => {
296
278
  }, item.key), (_item$dropdown = item.dropdown) === null || _item$dropdown === void 0 ? void 0 : _item$dropdown.map(dropdownItem => /*#__PURE__*/jsxRuntime.jsx(core.MenuItem, {
297
279
  onClick: event => {
298
280
  var _dropdownItem$onClick;
299
-
300
281
  (_dropdownItem$onClick = dropdownItem.onClick) === null || _dropdownItem$onClick === void 0 ? void 0 : _dropdownItem$onClick.call(dropdownItem, event);
301
282
  setMenuButtonRef(undefined);
302
283
  },
@@ -315,7 +296,6 @@ function mergeRefs() {
315
296
  for (var _len = arguments.length, refs = new Array(_len), _key = 0; _key < _len; _key++) {
316
297
  refs[_key] = arguments[_key];
317
298
  }
318
-
319
299
  return node => {
320
300
  refs.forEach(ref => {
321
301
  assignRef(ref, node);
@@ -340,12 +320,10 @@ var useStyles$1 = /*#__PURE__*/styles.makeStyles({
340
320
  }, {
341
321
  name: 'SD-AdaptiveVerticalToolbar'
342
322
  });
343
-
344
323
  var defaultMoreElement = /*#__PURE__*/jsxRuntime.jsx(Button, {
345
324
  type: "button",
346
325
  children: /*#__PURE__*/jsxRuntime.jsx(icons.MoreHoriz, {})
347
326
  });
348
-
349
327
  var AdaptiveVerticalToolbar = /*#__PURE__*/React.forwardRef((_ref, ref) => {
350
328
  var {
351
329
  items,
@@ -363,7 +341,6 @@ var AdaptiveVerticalToolbar = /*#__PURE__*/React.forwardRef((_ref, ref) => {
363
341
  var [rootNode, setRootNode] = React.useState(null);
364
342
  useResizeObserver(rootNode, node => {
365
343
  var _optionsButtonRef$cur;
366
-
367
344
  var rootRect = node.getBoundingClientRect();
368
345
  var rootHeight = rootRect.bottom;
369
346
  var optionsButtonRect = (_optionsButtonRef$cur = optionsButtonRef.current) === null || _optionsButtonRef$cur === void 0 ? void 0 : _optionsButtonRef$cur.getBoundingClientRect();
@@ -372,21 +349,19 @@ var AdaptiveVerticalToolbar = /*#__PURE__*/React.forwardRef((_ref, ref) => {
372
349
  var mountedNodes = itemNodes.current.filter(x => x != null);
373
350
  var hiddenIdx = mountedNodes.findIndex((itemNode, idx) => {
374
351
  itemNode.removeAttribute('hidden');
375
- var itemRect = itemNode.getBoundingClientRect(); // Ignore options button height when checking last item.
352
+ var itemRect = itemNode.getBoundingClientRect();
376
353
 
354
+ // Ignore options button height when checking last item.
377
355
  if (idx === mountedNodes.length - 1) {
378
356
  return itemRect.bottom > rootHeight;
379
357
  }
380
-
381
358
  return itemRect.bottom > maxBottomPosition;
382
359
  });
383
-
384
360
  if (hiddenIdx !== -1) {
385
361
  mountedNodes.slice(hiddenIdx).forEach(itemNode => {
386
362
  itemNode.setAttribute('hidden', 'true');
387
363
  });
388
364
  }
389
-
390
365
  setFirstHiddenIdx(hiddenIdx);
391
366
  });
392
367
  return /*#__PURE__*/jsxRuntime.jsxs(core.Grid, {
@@ -426,7 +401,6 @@ var AdaptiveVerticalToolbar = /*#__PURE__*/React.forwardRef((_ref, ref) => {
426
401
  return [/*#__PURE__*/jsxRuntime.jsx(core.MenuItem, {
427
402
  onClick: event => {
428
403
  var _item$onClick;
429
-
430
404
  (_item$onClick = item.onClick) === null || _item$onClick === void 0 ? void 0 : _item$onClick.call(item, event);
431
405
  setMenuButtonRef(undefined);
432
406
  },
@@ -518,13 +492,12 @@ if (process.env.NODE_ENV !== "production") AdaptiveVerticalToolbar.displayName =
518
492
  Color["Yellow300"] = "#E8671C";
519
493
  Color["Yellow500"] = "#B84807";
520
494
  })(exports.Color || (exports.Color = {}));
521
-
522
495
  function isColorProp(name) {
523
496
  return typeof name == 'string' && Object.prototype.hasOwnProperty.call(exports.Color, name);
524
497
  }
525
498
 
526
499
  var _excluded$3 = ["size", "icon", "isLoading", "classes", "disabled", "avatarRef", "className", "alt", "imgProps", "sizes", "src", "srcSet", "variant", "children"],
527
- _excluded2 = ["button", "overlay", "progress", "withIcon", "sizeLarge"];
500
+ _excluded2 = ["button", "overlay", "progress", "withIcon", "sizeLarge"];
528
501
  var useStyles$2 = /*#__PURE__*/styles.makeStyles(theme => {
529
502
  var sm = theme.breakpoints.up('sm');
530
503
  return {
@@ -619,35 +592,33 @@ var useStyles$2 = /*#__PURE__*/styles.makeStyles(theme => {
619
592
  });
620
593
  var AvatarButton = /*#__PURE__*/React.forwardRef((_ref, ref) => {
621
594
  var {
622
- size,
623
- icon,
624
- isLoading = false,
625
- classes,
626
- disabled = false,
627
- avatarRef,
628
- className,
629
- alt,
630
- imgProps,
631
- sizes,
632
- src,
633
- srcSet,
634
- variant,
635
- children
636
- } = _ref,
637
- props = _objectWithoutProperties(_ref, _excluded$3);
638
-
595
+ size,
596
+ icon,
597
+ isLoading = false,
598
+ classes,
599
+ disabled = false,
600
+ avatarRef,
601
+ className,
602
+ alt,
603
+ imgProps,
604
+ sizes,
605
+ src,
606
+ srcSet,
607
+ variant,
608
+ children
609
+ } = _ref,
610
+ props = _objectWithoutProperties(_ref, _excluded$3);
639
611
  var _useStyles = useStyles$2({
640
- classes
641
- }),
642
- {
643
- button: buttonClassName,
644
- overlay: overlayClassName,
645
- progress: progressClassName,
646
- withIcon: withIconClassName,
647
- sizeLarge: sizeLargeClassName
648
- } = _useStyles,
649
- avatarClasses = _objectWithoutProperties(_useStyles, _excluded2);
650
-
612
+ classes
613
+ }),
614
+ {
615
+ button: buttonClassName,
616
+ overlay: overlayClassName,
617
+ progress: progressClassName,
618
+ withIcon: withIconClassName,
619
+ sizeLarge: sizeLargeClassName
620
+ } = _useStyles,
621
+ avatarClasses = _objectWithoutProperties(_useStyles, _excluded2);
651
622
  return /*#__PURE__*/jsxRuntime.jsxs(core.ButtonBase, _objectSpread(_objectSpread({}, props), {}, {
652
623
  ref: ref,
653
624
  "aria-busy": isLoading,
@@ -750,18 +721,17 @@ var useStyles$3 = /*#__PURE__*/styles.makeStyles(theme => ({
750
721
  });
751
722
  var CardButton = /*#__PURE__*/React.forwardRef((_ref, ref) => {
752
723
  var {
753
- hint,
754
- size,
755
- error,
756
- classes,
757
- className,
758
- children,
759
- endIcon,
760
- startIcon,
761
- disabled
762
- } = _ref,
763
- props = _objectWithoutProperties(_ref, _excluded$4);
764
-
724
+ hint,
725
+ size,
726
+ error,
727
+ classes,
728
+ className,
729
+ children,
730
+ endIcon,
731
+ startIcon,
732
+ disabled
733
+ } = _ref,
734
+ props = _objectWithoutProperties(_ref, _excluded$4);
765
735
  var styles = useStyles$3({
766
736
  classes
767
737
  });
@@ -814,16 +784,15 @@ var FormHelperText = /*#__PURE__*/styled__default(core.FormHelperText).withConfi
814
784
  })(["color:", ";margin-left:30px;margin-top:0;margin-bottom:4px;&.Mui-error{color:", ";}"], exports.Color.Dark300, exports.Color.Red500);
815
785
  var CheckboxField = /*#__PURE__*/React.forwardRef((_ref, ref) => {
816
786
  var {
817
- label,
818
- error,
819
- checked,
820
- onBlur,
821
- onChange,
822
- helperText,
823
- FormControlLabelProps: formControlLabelProps
824
- } = _ref,
825
- props = _objectWithoutProperties(_ref, _excluded$5);
826
-
787
+ label,
788
+ error,
789
+ checked,
790
+ onBlur,
791
+ onChange,
792
+ helperText,
793
+ FormControlLabelProps: formControlLabelProps
794
+ } = _ref,
795
+ props = _objectWithoutProperties(_ref, _excluded$5);
827
796
  return /*#__PURE__*/jsxRuntime.jsxs(FormControl, {
828
797
  error: error,
829
798
  children: [/*#__PURE__*/jsxRuntime.jsx(core.FormControlLabel, _objectSpread(_objectSpread({}, formControlLabelProps), {}, {
@@ -854,15 +823,14 @@ var FormHelperText$1 = /*#__PURE__*/styled__default(core.FormHelperText).withCon
854
823
  })(["margin-top:8px;color:", ";&.Mui-error{color:", ";}"], exports.Color.Dark300, exports.Color.Red500);
855
824
  var CheckboxGroupField = /*#__PURE__*/React.forwardRef((_ref, ref) => {
856
825
  var {
857
- FormGroupProps: formGroupProps,
858
- label,
859
- FormLabelProps: formLabelProps,
860
- helperText,
861
- FormHelperTextProps: formHelperTextProps,
862
- children
863
- } = _ref,
864
- formControlProps = _objectWithoutProperties(_ref, _excluded$6);
865
-
826
+ FormGroupProps: formGroupProps,
827
+ label,
828
+ FormLabelProps: formLabelProps,
829
+ helperText,
830
+ FormHelperTextProps: formHelperTextProps,
831
+ children
832
+ } = _ref,
833
+ formControlProps = _objectWithoutProperties(_ref, _excluded$6);
866
834
  return /*#__PURE__*/jsxRuntime.jsxs(core.FormControl, _objectSpread(_objectSpread({}, formControlProps), {}, {
867
835
  hiddenLabel: !label,
868
836
  children: [!!label && /*#__PURE__*/jsxRuntime.jsx(FormLabel, _objectSpread(_objectSpread({}, formLabelProps), {}, {
@@ -879,11 +847,9 @@ var CheckboxGroupField = /*#__PURE__*/React.forwardRef((_ref, ref) => {
879
847
  if (process.env.NODE_ENV !== "production") CheckboxGroupField.displayName = "CheckboxGroupField";
880
848
 
881
849
  var Context = /*#__PURE__*/React.createContext({});
882
-
883
850
  function useBreakpoint(breakpoint) {
884
851
  return core.useMediaQuery(theme => theme.breakpoints.only(breakpoint));
885
852
  }
886
-
887
853
  function ResponsiveContextProvider(_ref) {
888
854
  var {
889
855
  children,
@@ -909,7 +875,6 @@ function useResponsiveContext() {
909
875
 
910
876
  function parseResponsiveProp(prop) {
911
877
  var _tablet, _desktop;
912
-
913
878
  if (typeof prop != 'object') return [prop, prop, prop];
914
879
  var [mobile, tablet, desktop] = prop;
915
880
  (_tablet = tablet) !== null && _tablet !== void 0 ? _tablet : tablet = mobile;
@@ -951,44 +916,32 @@ function useResponsivePropRecord(prop) {
951
916
  function computeFlexBasis(scale) {
952
917
  return "".concat(scale * 100, "%");
953
918
  }
954
-
955
919
  function flexBasisMixin(width) {
956
920
  switch (width) {
957
921
  case '1/2':
958
922
  return computeFlexBasis(1 / 2);
959
-
960
923
  case '1/3':
961
924
  return computeFlexBasis(1 / 3);
962
-
963
925
  case '2/3':
964
926
  return computeFlexBasis(2 / 3);
965
-
966
927
  case '1/4':
967
928
  return computeFlexBasis(1 / 4);
968
-
969
929
  case '3/4':
970
930
  return computeFlexBasis(3 / 4);
971
-
972
931
  case '1/5':
973
932
  return computeFlexBasis(1 / 5);
974
-
975
933
  case '2/5':
976
934
  return computeFlexBasis(2 / 5);
977
-
978
935
  case '3/5':
979
936
  return computeFlexBasis(3 / 5);
980
-
981
937
  case '4/5':
982
938
  return computeFlexBasis(4 / 5);
983
939
  }
984
-
985
940
  return 'auto';
986
941
  }
987
-
988
942
  function columnRootMixin(width) {
989
943
  return styled.css(["flex-grow:0;flex-basis:", ";width:", ";flex-shrink:", ";"], flexBasisMixin(width), width === 'fluid' ? '100%' : 'auto', width === 'fluid' || width === 'adaptive' ? 1 : 0);
990
944
  }
991
-
992
945
  var ColumnRoot = /*#__PURE__*/styled__default.div.withConfig({
993
946
  displayName: "Column__ColumnRoot",
994
947
  componentId: "SD__sc-m9n6o6-0"
@@ -1025,10 +978,8 @@ function parseAlignProp(align) {
1025
978
  case 'left':
1026
979
  default:
1027
980
  return 'initial';
1028
-
1029
981
  case 'center':
1030
982
  return 'center';
1031
-
1032
983
  case 'right':
1033
984
  case 'bottom':
1034
985
  return 'flex-end';
@@ -1044,25 +995,18 @@ function parseSpaceProp(prop) {
1044
995
  case 'none':
1045
996
  default:
1046
997
  return 0;
1047
-
1048
998
  case 'xxsmall':
1049
999
  return 4;
1050
-
1051
1000
  case 'xsmall':
1052
1001
  return 8;
1053
-
1054
1002
  case 'small':
1055
1003
  return 16;
1056
-
1057
1004
  case 'medium':
1058
1005
  return 24;
1059
-
1060
1006
  case 'large':
1061
1007
  return 32;
1062
-
1063
1008
  case 'xlarge':
1064
1009
  return 40;
1065
-
1066
1010
  case 'xxlarge':
1067
1011
  return 48;
1068
1012
  }
@@ -1072,7 +1016,6 @@ function columnsRootMixin(align, spaceProp, isReversed, isCollapsed) {
1072
1016
  var space = parseSpaceProp(spaceProp);
1073
1017
  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(align), isCollapsed ? 0 : "-".concat(space), isCollapsed ? '100%' : "calc(100% + ".concat(space, "px)"), isCollapsed ? !isReversed ? 'column' : 'column-reverse' : !isReversed ? 'row' : 'row-reverse');
1074
1018
  }
1075
-
1076
1019
  var Columns = /*#__PURE__*/styled__default.div.withConfig({
1077
1020
  displayName: "Columns",
1078
1021
  componentId: "SD__sc-1a73118-0"
@@ -1094,9 +1037,9 @@ var Columns = /*#__PURE__*/styled__default.div.withConfig({
1094
1037
  function renderChildren(node) {
1095
1038
  if (node == null || typeof node == 'boolean') {
1096
1039
  return null;
1097
- } // Workaround for https://github.com/DefinitelyTyped/DefinitelyTyped/issues/18051
1098
-
1040
+ }
1099
1041
 
1042
+ // Workaround for https://github.com/DefinitelyTyped/DefinitelyTyped/issues/18051
1100
1043
  return node;
1101
1044
  }
1102
1045
 
@@ -1116,7 +1059,6 @@ function useVisibilityObserver(node) {
1116
1059
  setState('undetermined');
1117
1060
  return;
1118
1061
  }
1119
-
1120
1062
  var observer = new IntersectionObserver(_ref => {
1121
1063
  var [entry] = _ref;
1122
1064
  setState(entry !== null && entry !== void 0 && entry.isIntersecting && document.visibilityState === 'visible' ? 'visible' : 'invisible');
@@ -1133,11 +1075,10 @@ function useVisibilityObserver(node) {
1133
1075
  }
1134
1076
  function VisibilityObserver(_ref2) {
1135
1077
  var {
1136
- render,
1137
- onChange
1138
- } = _ref2,
1139
- options = _objectWithoutProperties(_ref2, _excluded$7);
1140
-
1078
+ render,
1079
+ onChange
1080
+ } = _ref2,
1081
+ options = _objectWithoutProperties(_ref2, _excluded$7);
1141
1082
  var [node, setNode] = React.useState(null);
1142
1083
  var visibility = useVisibilityObserver(node, options);
1143
1084
  var children = render({
@@ -1151,7 +1092,7 @@ function VisibilityObserver(_ref2) {
1151
1092
  }
1152
1093
 
1153
1094
  var _excluded$8 = ["title", "enterDelay"],
1154
- _excluded2$1 = ["onClick", "children", "className", "disableUnderline", "TooltipProps"];
1095
+ _excluded2$1 = ["onClick", "children", "className", "disableUnderline", "TooltipProps"];
1155
1096
  var useStyles$4 = /*#__PURE__*/styles.makeStyles(theme => ({
1156
1097
  root: {
1157
1098
  marginBottom: -1,
@@ -1173,18 +1114,17 @@ var useStyles$4 = /*#__PURE__*/styles.makeStyles(theme => ({
1173
1114
  });
1174
1115
  var OverflowText = /*#__PURE__*/React.forwardRef((_ref, rootRef) => {
1175
1116
  var {
1176
- onClick: _onClick,
1177
- children,
1178
- className,
1179
- disableUnderline,
1180
- TooltipProps: {
1181
- title = children,
1182
- enterDelay = 1000
1183
- } = {}
1184
- } = _ref,
1185
- tooltipProps = _objectWithoutProperties(_ref.TooltipProps, _excluded$8),
1186
- props = _objectWithoutProperties(_ref, _excluded2$1);
1187
-
1117
+ onClick: _onClick,
1118
+ children,
1119
+ className,
1120
+ disableUnderline,
1121
+ TooltipProps: {
1122
+ title = children,
1123
+ enterDelay = 1000
1124
+ } = {}
1125
+ } = _ref,
1126
+ tooltipProps = _objectWithoutProperties(_ref.TooltipProps, _excluded$8),
1127
+ props = _objectWithoutProperties(_ref, _excluded2$1);
1188
1128
  var [isOpen, setIsOpen] = React.useState(false);
1189
1129
  var styles = useStyles$4();
1190
1130
  return /*#__PURE__*/jsxRuntime.jsx(VisibilityObserver, {
@@ -1235,7 +1175,6 @@ function useUID(defaultID) {
1235
1175
  }
1236
1176
 
1237
1177
  var _excluded$9 = ["size"];
1238
-
1239
1178
  function sizeVariant(theme, mobileSpacing, desktopSpacing) {
1240
1179
  return {
1241
1180
  '& > $list, & > $item': {
@@ -1248,7 +1187,6 @@ function sizeVariant(theme, mobileSpacing, desktopSpacing) {
1248
1187
  }
1249
1188
  };
1250
1189
  }
1251
-
1252
1190
  var useStyles$5 = /*#__PURE__*/styles.makeStyles(theme => ({
1253
1191
  list: sizeVariant(theme, 2, 1),
1254
1192
  listSmall: sizeVariant(theme, 1, 0.5),
@@ -1270,16 +1208,17 @@ var useStyles$5 = /*#__PURE__*/styles.makeStyles(theme => ({
1270
1208
  }
1271
1209
  }), {
1272
1210
  name: 'SD-DescriptionList'
1273
- }); //
1211
+ });
1212
+
1213
+ //
1274
1214
  // DescriptionList
1275
1215
  //
1276
1216
 
1277
1217
  var DescriptionList = /*#__PURE__*/React.forwardRef((_ref, ref) => {
1278
1218
  var {
1279
- size
1280
- } = _ref,
1281
- props = _objectWithoutProperties(_ref, _excluded$9);
1282
-
1219
+ size
1220
+ } = _ref,
1221
+ props = _objectWithoutProperties(_ref, _excluded$9);
1283
1222
  var styles = useStyles$5();
1284
1223
  return /*#__PURE__*/jsxRuntime.jsx("div", _objectSpread(_objectSpread({}, props), {}, {
1285
1224
  ref: ref,
@@ -1289,14 +1228,14 @@ var DescriptionList = /*#__PURE__*/React.forwardRef((_ref, ref) => {
1289
1228
  'large': styles.listLarge
1290
1229
  }[size])
1291
1230
  }));
1292
- }); //
1231
+ });
1232
+
1233
+ //
1293
1234
  // DescriptionListItem
1294
1235
  //
1295
-
1296
1236
  if (process.env.NODE_ENV !== "production") DescriptionList.displayName = "DescriptionList";
1297
1237
  var DescriptionListItem = /*#__PURE__*/React.forwardRef((_ref2, ref) => {
1298
1238
  var _ref3, _contentTypographyPro, _contentTypographyPro2;
1299
-
1300
1239
  var {
1301
1240
  inset,
1302
1241
  icon = inset ? /*#__PURE__*/jsxRuntime.jsx(core.SvgIcon, {}) : null,
@@ -1365,11 +1304,10 @@ var useStyles$6 = /*#__PURE__*/styles.makeStyles(theme => ({
1365
1304
  });
1366
1305
  var DrawerActions = /*#__PURE__*/React.forwardRef((_ref, appBarRef) => {
1367
1306
  var {
1368
- children,
1369
- className
1370
- } = _ref,
1371
- props = _objectWithoutProperties(_ref, _excluded$a);
1372
-
1307
+ children,
1308
+ className
1309
+ } = _ref,
1310
+ props = _objectWithoutProperties(_ref, _excluded$a);
1373
1311
  var styles = useStyles$6();
1374
1312
  return /*#__PURE__*/jsxRuntime.jsx(VisibilityObserver, {
1375
1313
  render: _ref2 => {
@@ -1409,10 +1347,9 @@ var useStyles$7 = /*#__PURE__*/styles.makeStyles(theme => ({
1409
1347
  });
1410
1348
  var DrawerContent = /*#__PURE__*/React.forwardRef((_ref, ref) => {
1411
1349
  var {
1412
- className
1413
- } = _ref,
1414
- props = _objectWithoutProperties(_ref, _excluded$b);
1415
-
1350
+ className
1351
+ } = _ref,
1352
+ props = _objectWithoutProperties(_ref, _excluded$b);
1416
1353
  var styles = useStyles$7();
1417
1354
  return /*#__PURE__*/jsxRuntime.jsx("div", _objectSpread(_objectSpread({}, props), {}, {
1418
1355
  ref: ref,
@@ -1422,7 +1359,6 @@ var DrawerContent = /*#__PURE__*/React.forwardRef((_ref, ref) => {
1422
1359
  if (process.env.NODE_ENV !== "production") DrawerContent.displayName = "DrawerContent";
1423
1360
 
1424
1361
  var _excluded$c = ["className"];
1425
-
1426
1362
  function listItemMixins(theme, space) {
1427
1363
  return {
1428
1364
  '& .MuiListItem-gutters': {
@@ -1440,7 +1376,6 @@ function listItemMixins(theme, space) {
1440
1376
  }
1441
1377
  };
1442
1378
  }
1443
-
1444
1379
  var useStyles$8 = /*#__PURE__*/styles.makeStyles(theme => ({
1445
1380
  root: _objectSpread(_objectSpread({
1446
1381
  maxWidth: '100%'
@@ -1452,10 +1387,9 @@ var useStyles$8 = /*#__PURE__*/styles.makeStyles(theme => ({
1452
1387
  });
1453
1388
  var DrawerList = /*#__PURE__*/React.forwardRef((_ref, ref) => {
1454
1389
  var {
1455
- className
1456
- } = _ref,
1457
- props = _objectWithoutProperties(_ref, _excluded$c);
1458
-
1390
+ className
1391
+ } = _ref,
1392
+ props = _objectWithoutProperties(_ref, _excluded$c);
1459
1393
  var styles = useStyles$8();
1460
1394
  return /*#__PURE__*/jsxRuntime.jsx(core.List, _objectSpread(_objectSpread({}, props), {}, {
1461
1395
  ref: ref,
@@ -1506,16 +1440,15 @@ var useStyles$9 = /*#__PURE__*/styles.makeStyles(theme => ({
1506
1440
  });
1507
1441
  var DrawerTitle = /*#__PURE__*/React.forwardRef((_ref, appBarRef) => {
1508
1442
  var {
1509
- title,
1510
- titleTypographyProps,
1511
- subtitle,
1512
- subtitleTypographyProps,
1513
- startAction,
1514
- endAction,
1515
- className
1516
- } = _ref,
1517
- props = _objectWithoutProperties(_ref, _excluded$d);
1518
-
1443
+ title,
1444
+ titleTypographyProps,
1445
+ subtitle,
1446
+ subtitleTypographyProps,
1447
+ startAction,
1448
+ endAction,
1449
+ className
1450
+ } = _ref,
1451
+ props = _objectWithoutProperties(_ref, _excluded$d);
1519
1452
  var styles = useStyles$9();
1520
1453
  return /*#__PURE__*/jsxRuntime.jsx(VisibilityObserver, {
1521
1454
  render: _ref2 => {
@@ -1572,14 +1505,12 @@ var _excluded$e = ["children", "alignItems"];
1572
1505
  /**
1573
1506
  * @deprecated in favor of `Stack`.
1574
1507
  */
1575
-
1576
1508
  var GridStack = /*#__PURE__*/React.forwardRef((_ref, ref) => {
1577
1509
  var {
1578
- children,
1579
- alignItems = 'stretch'
1580
- } = _ref,
1581
- props = _objectWithoutProperties(_ref, _excluded$e);
1582
-
1510
+ children,
1511
+ alignItems = 'stretch'
1512
+ } = _ref,
1513
+ props = _objectWithoutProperties(_ref, _excluded$e);
1583
1514
  var items = React.Children.toArray(children);
1584
1515
  return /*#__PURE__*/jsxRuntime.jsx(core.Grid, _objectSpread(_objectSpread({}, props), {}, {
1585
1516
  ref: ref,
@@ -1601,16 +1532,14 @@ var _excluded$f = ["children", "wrap", "justify", "alignItems"];
1601
1532
  /**
1602
1533
  * @deprecated in favor of `Inline` component.
1603
1534
  */
1604
-
1605
1535
  var InlineGrid = /*#__PURE__*/React.forwardRef((_ref, ref) => {
1606
1536
  var {
1607
- children,
1608
- wrap = 'wrap',
1609
- justify = 'flex-start',
1610
- alignItems = 'flex-start'
1611
- } = _ref,
1612
- props = _objectWithoutProperties(_ref, _excluded$f);
1613
-
1537
+ children,
1538
+ wrap = 'wrap',
1539
+ justify = 'flex-start',
1540
+ alignItems = 'flex-start'
1541
+ } = _ref,
1542
+ props = _objectWithoutProperties(_ref, _excluded$f);
1614
1543
  var items = React.Children.toArray(children);
1615
1544
  return /*#__PURE__*/jsxRuntime.jsx(core.Grid, _objectSpread(_objectSpread({}, props), {}, {
1616
1545
  ref: ref,
@@ -1628,7 +1557,7 @@ var InlineGrid = /*#__PURE__*/React.forwardRef((_ref, ref) => {
1628
1557
  if (process.env.NODE_ENV !== "production") InlineGrid.displayName = "InlineGrid";
1629
1558
 
1630
1559
  var _excluded$g = ["size", "square", "classes", "children", "className", "CardContentProps"],
1631
- _excluded2$2 = ["content", "sizeLarge", "fullWidth"];
1560
+ _excluded2$2 = ["content", "sizeLarge", "fullWidth"];
1632
1561
  var useStyles$a = /*#__PURE__*/styles.makeStyles(theme => ({
1633
1562
  root: {
1634
1563
  '&$fullWidth': {
@@ -1652,25 +1581,23 @@ var useStyles$a = /*#__PURE__*/styles.makeStyles(theme => ({
1652
1581
  });
1653
1582
  var InfoCard = /*#__PURE__*/React.forwardRef((_ref, _ref2) => {
1654
1583
  var {
1655
- size,
1656
- square,
1657
- classes,
1658
- children,
1659
- className,
1660
- CardContentProps: cardContentProps = {}
1661
- } = _ref,
1662
- props = _objectWithoutProperties(_ref, _excluded$g);
1663
-
1584
+ size,
1585
+ square,
1586
+ classes,
1587
+ children,
1588
+ className,
1589
+ CardContentProps: cardContentProps = {}
1590
+ } = _ref,
1591
+ props = _objectWithoutProperties(_ref, _excluded$g);
1664
1592
  var _useStyles = useStyles$a({
1665
- classes
1666
- }),
1667
- {
1668
- content: contentClassName,
1669
- sizeLarge: sizeLargeClassName,
1670
- fullWidth: fullWidthClassName
1671
- } = _useStyles,
1672
- styles = _objectWithoutProperties(_useStyles, _excluded2$2);
1673
-
1593
+ classes
1594
+ }),
1595
+ {
1596
+ content: contentClassName,
1597
+ sizeLarge: sizeLargeClassName,
1598
+ fullWidth: fullWidthClassName
1599
+ } = _useStyles,
1600
+ styles = _objectWithoutProperties(_useStyles, _excluded2$2);
1674
1601
  var [rootNode, setRootNode] = React.useState(null);
1675
1602
  var clientRect = rootNode === null || rootNode === void 0 ? void 0 : rootNode.getBoundingClientRect();
1676
1603
  var isFullWidth = (clientRect === null || clientRect === void 0 ? void 0 : clientRect.width) === window.innerWidth;
@@ -1696,17 +1623,16 @@ var Root = /*#__PURE__*/styled__default.div.withConfig({
1696
1623
  })(["display:flex;align-items:center;"]);
1697
1624
  var InfoTooltip = /*#__PURE__*/React.forwardRef((_ref, ref) => {
1698
1625
  var {
1699
- children,
1700
- iconButtonProps,
1701
- fontSize = 'small',
1702
- TextProps,
1703
- title,
1704
- isOpen,
1705
- onClick,
1706
- onClose
1707
- } = _ref,
1708
- props = _objectWithoutProperties(_ref, _excluded$h);
1709
-
1626
+ children,
1627
+ iconButtonProps,
1628
+ fontSize = 'small',
1629
+ TextProps,
1630
+ title,
1631
+ isOpen,
1632
+ onClick,
1633
+ onClose
1634
+ } = _ref,
1635
+ props = _objectWithoutProperties(_ref, _excluded$h);
1710
1636
  var tooltip = /*#__PURE__*/jsxRuntime.jsx(core.Tooltip, _objectSpread(_objectSpread({
1711
1637
  open: isOpen,
1712
1638
  title: title,
@@ -1726,7 +1652,6 @@ var InfoTooltip = /*#__PURE__*/React.forwardRef((_ref, ref) => {
1726
1652
  })
1727
1653
  }))
1728
1654
  }));
1729
-
1730
1655
  if (!children) return tooltip;
1731
1656
  return /*#__PURE__*/jsxRuntime.jsxs(Root, {
1732
1657
  children: [/*#__PURE__*/jsxRuntime.jsx(core.Typography, _objectSpread(_objectSpread({}, TextProps), {}, {
@@ -1740,7 +1665,6 @@ function inlineRootMixin(spaceProp, noWrap, verticalAlign, horizontalAlign) {
1740
1665
  var space = parseSpaceProp(spaceProp);
1741
1666
  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(verticalAlign), parseAlignProp(horizontalAlign), space, space);
1742
1667
  }
1743
-
1744
1668
  var InlineRoot = /*#__PURE__*/styled__default.div.withConfig({
1745
1669
  displayName: "Inline__InlineRoot",
1746
1670
  componentId: "SD__sc-13du4wm-0"
@@ -1786,19 +1710,17 @@ var Inline = /*#__PURE__*/React.forwardRef((_ref2, ref) => {
1786
1710
  if (process.env.NODE_ENV !== "production") Inline.displayName = "Inline";
1787
1711
 
1788
1712
  var _excluded$i = ["value", "inputRef", "onChange", "valueIsNumericString", "thousandSeparator", "disableValueParsing"],
1789
- _excluded2$3 = ["id", "InputProps"];
1790
-
1713
+ _excluded2$3 = ["id", "InputProps"];
1791
1714
  function NumberInputComponent(_ref) {
1792
1715
  var {
1793
- value,
1794
- inputRef,
1795
- onChange,
1796
- valueIsNumericString = true,
1797
- thousandSeparator = true,
1798
- disableValueParsing
1799
- } = _ref,
1800
- props = _objectWithoutProperties(_ref, _excluded$i);
1801
-
1716
+ value,
1717
+ inputRef,
1718
+ onChange,
1719
+ valueIsNumericString = true,
1720
+ thousandSeparator = true,
1721
+ disableValueParsing
1722
+ } = _ref,
1723
+ props = _objectWithoutProperties(_ref, _excluded$i);
1802
1724
  return /*#__PURE__*/jsxRuntime.jsx(reactNumberFormat.NumericFormat, _objectSpread(_objectSpread({}, props), {}, {
1803
1725
  value: value !== null && value !== void 0 ? value : '',
1804
1726
  inputMode: "decimal",
@@ -1807,29 +1729,25 @@ function NumberInputComponent(_ref) {
1807
1729
  thousandSeparator: thousandSeparator,
1808
1730
  allowedDecimalSeparators: ['.', ','],
1809
1731
  onValueChange: (values, sourceInfo) => {
1810
- var _values$floatValue;
1811
-
1812
- var floatValue = (_values$floatValue = values.floatValue) !== null && _values$floatValue !== void 0 ? _values$floatValue : null;
1732
+ var inputValue = values.value;
1813
1733
  var {
1814
1734
  event
1815
- } = sourceInfo; // eslint-disable-next-line @typescript-eslint/no-unsafe-call
1816
-
1735
+ } = sourceInfo;
1736
+ // eslint-disable-next-line @typescript-eslint/no-unsafe-call
1817
1737
  onChange === null || onChange === void 0 ? void 0 : onChange(_objectSpread(_objectSpread({}, event), {}, {
1818
1738
  target: _objectSpread(_objectSpread({}, event === null || event === void 0 ? void 0 : event.target), {}, {
1819
- value: disableValueParsing ? values.value : floatValue
1739
+ value: inputValue
1820
1740
  })
1821
1741
  }));
1822
1742
  }
1823
1743
  }));
1824
1744
  }
1825
-
1826
1745
  var NumberField = /*#__PURE__*/React.forwardRef((_ref2, ref) => {
1827
1746
  var {
1828
- id,
1829
- InputProps
1830
- } = _ref2,
1831
- props = _objectWithoutProperties(_ref2, _excluded2$3);
1832
-
1747
+ id,
1748
+ InputProps
1749
+ } = _ref2,
1750
+ props = _objectWithoutProperties(_ref2, _excluded2$3);
1833
1751
  var uid = useUID(id);
1834
1752
  return /*#__PURE__*/jsxRuntime.jsx(core.TextField, _objectSpread(_objectSpread({}, props), {}, {
1835
1753
  ref: ref,
@@ -1845,20 +1763,21 @@ NumberField.displayName = 'NumberField';
1845
1763
  var _excluded$j = ["id", "value", "onChange", "inputMode", "valueIsNumericString", "onValueChange"];
1846
1764
  var PatternField = /*#__PURE__*/React.forwardRef((_ref, ref) => {
1847
1765
  var {
1848
- id,
1849
- value,
1850
- onChange,
1851
- inputMode = 'decimal',
1852
- valueIsNumericString = true,
1853
- onValueChange: _onValueChange
1854
- } = _ref,
1855
- props = _objectWithoutProperties(_ref, _excluded$j);
1856
-
1766
+ id,
1767
+ value,
1768
+ onChange,
1769
+ inputMode = 'decimal',
1770
+ valueIsNumericString = true,
1771
+ onValueChange: _onValueChange
1772
+ } = _ref,
1773
+ props = _objectWithoutProperties(_ref, _excluded$j);
1857
1774
  var uid = useUID(id);
1858
1775
  return /*#__PURE__*/jsxRuntime.jsx(reactNumberFormat.PatternFormat, _objectSpread(_objectSpread({}, props), {}, {
1859
1776
  id: uid,
1860
- value: value !== null && value !== void 0 ? value : '' // eslint-disable-next-line @typescript-eslint/no-unsafe-assignment
1777
+ value: value !== null && value !== void 0 ? value : ''
1778
+ // eslint-disable-next-line @typescript-eslint/no-unsafe-assignment
1861
1779
  ,
1780
+
1862
1781
  inputMode: inputMode,
1863
1782
  getInputRef: ref,
1864
1783
  valueIsNumericString: valueIsNumericString,
@@ -1890,16 +1809,15 @@ var FormHelperText$2 = /*#__PURE__*/styled__default(core.FormHelperText).withCon
1890
1809
  })(["color:", ";margin-left:30px;margin-top:0;margin-bottom:4px;&.Mui-error{color:", ";}"], exports.Color.Dark300, exports.Color.Red500);
1891
1810
  var RadioField = /*#__PURE__*/React.forwardRef((_ref, ref) => {
1892
1811
  var {
1893
- label,
1894
- error,
1895
- checked,
1896
- onBlur,
1897
- onChange,
1898
- helperText,
1899
- FormControlLabelProps: formControlLabelProps
1900
- } = _ref,
1901
- props = _objectWithoutProperties(_ref, _excluded$k);
1902
-
1812
+ label,
1813
+ error,
1814
+ checked,
1815
+ onBlur,
1816
+ onChange,
1817
+ helperText,
1818
+ FormControlLabelProps: formControlLabelProps
1819
+ } = _ref,
1820
+ props = _objectWithoutProperties(_ref, _excluded$k);
1903
1821
  return /*#__PURE__*/jsxRuntime.jsxs(FormControl$1, {
1904
1822
  error: error,
1905
1823
  children: [/*#__PURE__*/jsxRuntime.jsx(core.FormControlLabel, _objectSpread(_objectSpread({}, formControlLabelProps), {}, {
@@ -1946,17 +1864,16 @@ var Caption = /*#__PURE__*/styled__default.div.withConfig({
1946
1864
  })(["padding-left:30px;"]);
1947
1865
  var RadioFieldCard = /*#__PURE__*/React.forwardRef((_ref2, ref) => {
1948
1866
  var {
1949
- name,
1950
- value,
1951
- label,
1952
- caption,
1953
- disabled,
1954
- icon,
1955
- checked,
1956
- onChange
1957
- } = _ref2,
1958
- props = _objectWithoutProperties(_ref2, _excluded$l);
1959
-
1867
+ name,
1868
+ value,
1869
+ label,
1870
+ caption,
1871
+ disabled,
1872
+ icon,
1873
+ checked,
1874
+ onChange
1875
+ } = _ref2,
1876
+ props = _objectWithoutProperties(_ref2, _excluded$l);
1960
1877
  return /*#__PURE__*/jsxRuntime.jsx(Card, {
1961
1878
  disabled: disabled,
1962
1879
  children: /*#__PURE__*/jsxRuntime.jsx(ClickableCard, _objectSpread(_objectSpread({
@@ -2008,18 +1925,17 @@ var FormHelperText$3 = /*#__PURE__*/styled__default(core.FormHelperText).withCon
2008
1925
  })(["margin-top:8px;color:", ";&.Mui-error{color:", ";}"], exports.Color.Dark300, exports.Color.Red500);
2009
1926
  var RadioGroupField = /*#__PURE__*/React.forwardRef((_ref, ref) => {
2010
1927
  var {
2011
- name,
2012
- value = '',
2013
- onChange,
2014
- RadioGroupProps: radioGroupProps,
2015
- label,
2016
- FormLabelProps: formLabelProps,
2017
- helperText,
2018
- FormHelperTextProps: formHelperTextProps,
2019
- children
2020
- } = _ref,
2021
- formControlProps = _objectWithoutProperties(_ref, _excluded$m);
2022
-
1928
+ name,
1929
+ value = '',
1930
+ onChange,
1931
+ RadioGroupProps: radioGroupProps,
1932
+ label,
1933
+ FormLabelProps: formLabelProps,
1934
+ helperText,
1935
+ FormHelperTextProps: formHelperTextProps,
1936
+ children
1937
+ } = _ref,
1938
+ formControlProps = _objectWithoutProperties(_ref, _excluded$m);
2023
1939
  return /*#__PURE__*/jsxRuntime.jsxs(core.FormControl, _objectSpread(_objectSpread({}, formControlProps), {}, {
2024
1940
  hiddenLabel: !label,
2025
1941
  children: [!!label && /*#__PURE__*/jsxRuntime.jsx(FormLabel$1, _objectSpread(_objectSpread({}, formLabelProps), {}, {
@@ -2043,11 +1959,9 @@ function useCollapseBreakpoint(collapseBreakpoint) {
2043
1959
  var {
2044
1960
  breakpoint = 'xs'
2045
1961
  } = useResponsiveContext();
2046
-
2047
1962
  if (collapseBreakpoint == null) {
2048
1963
  return false;
2049
1964
  }
2050
-
2051
1965
  var breakpointIDX = BREAKPOINTS.indexOf(breakpoint);
2052
1966
  var collapseBreakpointIDX = BREAKPOINTS.indexOf(collapseBreakpoint);
2053
1967
  return breakpointIDX < collapseBreakpointIDX;
@@ -2058,18 +1972,16 @@ function useMinBreakpoint(minBreakpoint) {
2058
1972
  var {
2059
1973
  breakpoint = 'xs'
2060
1974
  } = useResponsiveContext();
2061
-
2062
1975
  if (minBreakpoint == null) {
2063
1976
  return false;
2064
1977
  }
2065
-
2066
1978
  var breakpointIDX = BREAKPOINTS$1.indexOf(breakpoint);
2067
1979
  var minBreakpointIDX = BREAKPOINTS$1.indexOf(minBreakpoint);
2068
1980
  return minBreakpointIDX < breakpointIDX;
2069
1981
  }
2070
1982
 
2071
1983
  var _excluded$n = ["action", "children", "onClose", "className", "classes", "variant"],
2072
- _excluded2$4 = ["icon", "closeButton", "variantError", "variantSuccess"];
1984
+ _excluded2$4 = ["icon", "closeButton", "variantError", "variantSuccess"];
2073
1985
  var PaddedContent = /*#__PURE__*/styled__default.span.withConfig({
2074
1986
  displayName: "SnackbarContent__PaddedContent",
2075
1987
  componentId: "SD__sc-1jca4d5-0"
@@ -2119,26 +2031,24 @@ var useStyles$b = /*#__PURE__*/styles.makeStyles(theme => ({
2119
2031
  });
2120
2032
  var SnackbarContent = /*#__PURE__*/React.forwardRef((_ref, ref) => {
2121
2033
  var {
2122
- action,
2123
- children,
2124
- onClose,
2125
- className,
2126
- classes,
2127
- variant = 'default'
2128
- } = _ref,
2129
- props = _objectWithoutProperties(_ref, _excluded$n);
2130
-
2034
+ action,
2035
+ children,
2036
+ onClose,
2037
+ className,
2038
+ classes,
2039
+ variant = 'default'
2040
+ } = _ref,
2041
+ props = _objectWithoutProperties(_ref, _excluded$n);
2131
2042
  var _useStyles = useStyles$b({
2132
- classes
2133
- }),
2134
- {
2135
- icon,
2136
- closeButton,
2137
- variantError,
2138
- variantSuccess
2139
- } = _useStyles,
2140
- styles = _objectWithoutProperties(_useStyles, _excluded2$4);
2141
-
2043
+ classes
2044
+ }),
2045
+ {
2046
+ icon,
2047
+ closeButton,
2048
+ variantError,
2049
+ variantSuccess
2050
+ } = _useStyles,
2051
+ styles = _objectWithoutProperties(_useStyles, _excluded2$4);
2142
2052
  var Icon = variant === 'error' ? icons.Error : variant === 'success' ? icons.CheckCircle : undefined;
2143
2053
  return /*#__PURE__*/jsxRuntime.jsx(core.SnackbarContent, _objectSpread(_objectSpread({}, props), {}, {
2144
2054
  ref: ref,
@@ -2179,32 +2089,28 @@ var SnackbarContent = /*#__PURE__*/React.forwardRef((_ref, ref) => {
2179
2089
  if (process.env.NODE_ENV !== "production") SnackbarContent.displayName = "SnackbarContent";
2180
2090
 
2181
2091
  var _excluded$o = ["open", "action", "variant", "onClose", "children", "ContentProps", "hasCloseButton", "TransitionComponent"];
2182
-
2183
2092
  function SlideTransition(props) {
2184
2093
  return /*#__PURE__*/jsxRuntime.jsx(core.Slide, _objectSpread(_objectSpread({}, props), {}, {
2185
2094
  direction: "up"
2186
2095
  }));
2187
2096
  }
2188
-
2189
2097
  var Snackbar = /*#__PURE__*/React.forwardRef((_ref, ref) => {
2190
2098
  var {
2191
- open,
2192
- action,
2193
- variant,
2194
- onClose,
2195
- children,
2196
- ContentProps,
2197
- hasCloseButton = onClose != null,
2198
- TransitionComponent = SlideTransition
2199
- } = _ref,
2200
- props = _objectWithoutProperties(_ref, _excluded$o);
2201
-
2099
+ open,
2100
+ action,
2101
+ variant,
2102
+ onClose,
2103
+ children,
2104
+ ContentProps,
2105
+ hasCloseButton = onClose != null,
2106
+ TransitionComponent = SlideTransition
2107
+ } = _ref,
2108
+ props = _objectWithoutProperties(_ref, _excluded$o);
2202
2109
  function handleClose(reason) {
2203
2110
  if (reason !== 'clickaway') {
2204
2111
  onClose === null || onClose === void 0 ? void 0 : onClose(reason === 'timeout' ? 'timeout' : 'explicit');
2205
2112
  }
2206
2113
  }
2207
-
2208
2114
  return /*#__PURE__*/jsxRuntime.jsx(core.Portal, {
2209
2115
  children: /*#__PURE__*/jsxRuntime.jsx(core.Snackbar, _objectSpread(_objectSpread({}, props), {}, {
2210
2116
  ref: ref,
@@ -2227,12 +2133,10 @@ var Snackbar = /*#__PURE__*/React.forwardRef((_ref, ref) => {
2227
2133
  if (process.env.NODE_ENV !== "production") Snackbar.displayName = "Snackbar";
2228
2134
 
2229
2135
  var _excluded$p = ["onClose", "variant", "key", "id", "autoHideDuration"];
2230
-
2231
2136
  function warnContext() {
2232
2137
  // eslint-disable-next-line no-console
2233
2138
  console.log('`useSnackbarStack` is used outside of `SnackbarStackProvider`.');
2234
2139
  }
2235
-
2236
2140
  var Context$1 = /*#__PURE__*/React.createContext({
2237
2141
  clearStack: warnContext,
2238
2142
  addSnackbar: () => {
@@ -2264,16 +2168,16 @@ function SnackbarStackProvider(_ref2) {
2264
2168
  }, []);
2265
2169
  var addSnackbar = React.useCallback(function (message) {
2266
2170
  var _ref3 = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {},
2267
- {
2268
- onClose: _onClose,
2269
- variant,
2270
- key = variant !== 'error' ? // We don't want non error snackbars without key to pop back.
2271
- getNextTransientKey() : typeof message === 'string' ? message : Math.random(),
2272
- id = String(key),
2273
- autoHideDuration = 5000
2274
- } = _ref3,
2275
- props = _objectWithoutProperties(_ref3, _excluded$p);
2276
-
2171
+ {
2172
+ onClose: _onClose,
2173
+ variant,
2174
+ key = variant !== 'error' ?
2175
+ // We don't want non error snackbars without key to pop back.
2176
+ getNextTransientKey() : typeof message === 'string' ? message : Math.random(),
2177
+ id = String(key),
2178
+ autoHideDuration = 5000
2179
+ } = _ref3,
2180
+ props = _objectWithoutProperties(_ref3, _excluded$p);
2277
2181
  function removeSnackbar() {
2278
2182
  setStack(prev => {
2279
2183
  if (prev.has(key)) {
@@ -2281,26 +2185,22 @@ function SnackbarStackProvider(_ref2) {
2281
2185
  next.delete(key);
2282
2186
  return next;
2283
2187
  }
2284
-
2285
2188
  return prev;
2286
2189
  });
2287
2190
  }
2288
-
2289
2191
  setStack(prev => {
2290
2192
  var next = new Map(prev);
2291
-
2292
2193
  for (var prevKey of prev.keys()) {
2293
2194
  // Ensure that we insert value to the end of the map.
2294
2195
  if (Object.is(key, prevKey)) {
2295
2196
  next.delete(key);
2296
- } // Ensure that transient snackbar will not pop back.
2297
-
2197
+ }
2298
2198
 
2199
+ // Ensure that transient snackbar will not pop back.
2299
2200
  if (typeof prevKey == 'string' && prevKey.startsWith(TRANSIENT_KEY)) {
2300
2201
  next.delete(prevKey);
2301
2202
  }
2302
2203
  }
2303
-
2304
2204
  return next.set(key, _objectSpread(_objectSpread({}, props), {}, {
2305
2205
  id,
2306
2206
  key,
@@ -2336,7 +2236,6 @@ function SnackbarStackProvider(_ref2) {
2336
2236
  function stackItemMixin(space, align) {
2337
2237
  return styled.css(["flex-direction:column;align-items:", ";display:", ";&:empty{display:none;}&:not(:empty) ~ div{padding-top:", "px;}"], parseAlignProp(align), align === 'left' ? 'block' : 'flex', parseSpaceProp(space));
2338
2238
  }
2339
-
2340
2239
  var StackRoot = /*#__PURE__*/styled__default.div.withConfig({
2341
2240
  displayName: "Stack__StackRoot",
2342
2241
  componentId: "SD__sc-qkml7c-0"
@@ -2444,17 +2343,16 @@ var useStyles$c = /*#__PURE__*/styles.makeStyles(theme => ({
2444
2343
  });
2445
2344
  var Tag = /*#__PURE__*/React.forwardRef((_ref, ref) => {
2446
2345
  var {
2447
- color,
2448
- variant,
2449
- children,
2450
- classes,
2451
- className,
2452
- noWrap = true,
2453
- fontWeight = 'bold',
2454
- component = 'div'
2455
- } = _ref,
2456
- props = _objectWithoutProperties(_ref, _excluded$q);
2457
-
2346
+ color,
2347
+ variant,
2348
+ children,
2349
+ classes,
2350
+ className,
2351
+ noWrap = true,
2352
+ fontWeight = 'bold',
2353
+ component = 'div'
2354
+ } = _ref,
2355
+ props = _objectWithoutProperties(_ref, _excluded$q);
2458
2356
  var styles = useStyles$c({
2459
2357
  classes
2460
2358
  });
@@ -2489,8 +2387,9 @@ function overrideAppBar(theme) {
2489
2387
  }
2490
2388
 
2491
2389
  function overrideAutocomplete(theme) {
2492
- var sm = theme.breakpoints.up('sm'); // Remove `Object.assign` after official release of `Autocomplete`.
2390
+ var sm = theme.breakpoints.up('sm');
2493
2391
 
2392
+ // Remove `Object.assign` after official release of `Autocomplete`.
2494
2393
  Object.assign(theme.props, {
2495
2394
  MuiAutocomplete: {
2496
2395
  popupIcon: /*#__PURE__*/jsxRuntime.jsx(core.SvgIcon, {
@@ -2575,7 +2474,6 @@ function outlineShadow() {
2575
2474
  var color = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : exports.Color.Transparent;
2576
2475
  return "0 0 0 ".concat(size, "px ").concat(color);
2577
2476
  }
2578
-
2579
2477
  function textVariant(text, outline, background, progress) {
2580
2478
  return {
2581
2479
  color: text,
@@ -2601,12 +2499,10 @@ function textVariant(text, outline, background, progress) {
2601
2499
  }
2602
2500
  };
2603
2501
  }
2604
-
2605
2502
  function outlinedBorder(borderColor) {
2606
2503
  var outlineColor = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : exports.Color.Transparent;
2607
2504
  return "inset 0 0 0 1px ".concat(borderColor, ", 0 0 0 2px ").concat(outlineColor);
2608
2505
  }
2609
-
2610
2506
  function outlinedVariant(staleText, staleBorder, disabledText, disabledBorder, activeText, activeBorder, activeOutline, activeBackground, progress, backgroundColor) {
2611
2507
  return {
2612
2508
  backgroundColor,
@@ -2637,7 +2533,6 @@ function outlinedVariant(staleText, staleBorder, disabledText, disabledBorder, a
2637
2533
  }
2638
2534
  };
2639
2535
  }
2640
-
2641
2536
  function containedVariant(text, backgroundColor, outline, active, disabledText, disabledBackground) {
2642
2537
  return {
2643
2538
  color: text,
@@ -2659,7 +2554,6 @@ function containedVariant(text, backgroundColor, outline, active, disabledText,
2659
2554
  }
2660
2555
  };
2661
2556
  }
2662
-
2663
2557
  function overrideButton(theme) {
2664
2558
  var sm = theme.breakpoints.up('sm');
2665
2559
  theme.props.MuiButton = {
@@ -3092,7 +2986,6 @@ function overrideIconButton(theme) {
3092
2986
  function line(color) {
3093
2987
  return "linear-gradient(to right, ".concat(color, " 0%, ").concat(color, " 100%)");
3094
2988
  }
3095
-
3096
2989
  function overrideLink(theme) {
3097
2990
  theme.props.MuiLink = {
3098
2991
  underline: 'always',
@@ -3233,8 +3126,9 @@ function overridePagination(theme) {
3233
3126
  color: exports.Color.Dark100
3234
3127
  }
3235
3128
  }
3236
- }; // Remove `Object.assign` after official release of `PaginationItem`.
3129
+ };
3237
3130
 
3131
+ // Remove `Object.assign` after official release of `PaginationItem`.
3238
3132
  Object.assign(theme.props, {
3239
3133
  MuiPaginationItem: props
3240
3134
  });
@@ -3956,40 +3850,31 @@ function createSuperDispatchTheme() {
3956
3850
  overridePreloader(theme);
3957
3851
  return theme;
3958
3852
  }
3959
-
3960
3853
  var generateMaterialClassName = /*#__PURE__*/core.createGenerateClassName();
3961
-
3962
3854
  function generateClassName(rule, sheet) {
3963
3855
  var {
3964
3856
  meta,
3965
3857
  link
3966
3858
  } = (sheet === null || sheet === void 0 ? void 0 : sheet.options) || {};
3967
-
3968
3859
  if (meta && rule.type === 'style') {
3969
3860
  if (meta.startsWith('MuiSnackbar') && sheet) {
3970
3861
  return "SDSnackbar-".concat(rule.key);
3971
3862
  }
3972
-
3973
3863
  if (meta.startsWith('SD-')) {
3974
3864
  return "".concat(meta, "-").concat(rule.key);
3975
3865
  }
3976
-
3977
3866
  if (meta.startsWith('Mui')) {
3978
3867
  var isPseudoClass = ['checked', 'disabled', 'error', 'focused', 'focusVisible', 'required', 'expanded', 'selected'].includes(rule.key);
3979
-
3980
3868
  if (isPseudoClass) {
3981
3869
  return "Mui-".concat(rule.key);
3982
3870
  }
3983
-
3984
3871
  if (!link) {
3985
3872
  return "".concat(meta, "-").concat(rule.key);
3986
3873
  }
3987
3874
  }
3988
3875
  }
3989
-
3990
3876
  return generateMaterialClassName(rule, sheet);
3991
3877
  }
3992
-
3993
3878
  function ThemeProvider(_ref) {
3994
3879
  var {
3995
3880
  modifier,
@@ -4018,7 +3903,6 @@ function ThemeProvider(_ref) {
4018
3903
  }
4019
3904
 
4020
3905
  var PREVENT_COLLAPSE = 1;
4021
-
4022
3906
  function spaceVariant(theme, space) {
4023
3907
  var gap = theme.spacing(space);
4024
3908
  return {
@@ -4034,13 +3918,11 @@ function spaceVariant(theme, space) {
4034
3918
  }
4035
3919
  };
4036
3920
  }
4037
-
4038
3921
  function columnVariant(columns) {
4039
3922
  return {
4040
3923
  flex: "0 0 ".concat(100 / columns, "%")
4041
3924
  };
4042
3925
  }
4043
-
4044
3926
  var useStyles$d = /*#__PURE__*/styles.makeStyles(theme => ({
4045
3927
  root: {
4046
3928
  paddingTop: PREVENT_COLLAPSE,