@superdispatch/ui 0.25.1 → 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 (56) hide show
  1. package/dist-node/index.js +280 -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/SnackbarOverrides.js +7 -0
  44. package/dist-src/snackbar/SnackbarStack.js +13 -20
  45. package/dist-src/stack/Stack.js +0 -2
  46. package/dist-src/tag/Tag.js +10 -11
  47. package/dist-src/theme/Color.js +0 -2
  48. package/dist-src/theme/ThemeProvider.js +1 -12
  49. package/dist-src/tiles/Tiles.js +0 -3
  50. package/dist-src/utils/ResizeObserver.js +0 -1
  51. package/dist-src/utils/VisibilityObserver.js +4 -6
  52. package/dist-src/utils/mergeRefs.js +0 -1
  53. package/dist-src/utils/renderChildren.js +2 -2
  54. package/dist-web/index.js +279 -392
  55. package/dist-web/index.js.map +1 -1
  56. package/package.json +2 -2
package/dist-web/index.js CHANGED
@@ -16,15 +16,14 @@ import createBreakpoints from '@material-ui/core/styles/createBreakpoints';
16
16
  var _excluded = ["size", "children", "disabled", "isActive", "isLoading", "color"];
17
17
  var Button = /*#__PURE__*/forwardRef((_ref, ref) => {
18
18
  var {
19
- size,
20
- children,
21
- disabled,
22
- isActive,
23
- isLoading,
24
- color = 'primary'
25
- } = _ref,
26
- props = _objectWithoutProperties(_ref, _excluded);
27
-
19
+ size,
20
+ children,
21
+ disabled,
22
+ isActive,
23
+ isLoading,
24
+ color = 'primary'
25
+ } = _ref,
26
+ props = _objectWithoutProperties(_ref, _excluded);
28
27
  return /*#__PURE__*/jsx(Button$1, _objectSpread(_objectSpread({}, props), {}, {
29
28
  ref: ref,
30
29
  size: size,
@@ -44,7 +43,6 @@ var Button = /*#__PURE__*/forwardRef((_ref, ref) => {
44
43
  if (process.env.NODE_ENV !== "production") Button.displayName = "Button";
45
44
 
46
45
  var _excluded$1 = ["MenuListProps", "ButtonGroupProps", "children", "isLoading", "onClick", "label"];
47
-
48
46
  function CaretDownIcon() {
49
47
  return /*#__PURE__*/jsx("svg", {
50
48
  viewBox: "0 0 8 4",
@@ -54,7 +52,6 @@ function CaretDownIcon() {
54
52
  })
55
53
  });
56
54
  }
57
-
58
55
  var CaretButton = /*#__PURE__*/styled(Button).withConfig({
59
56
  displayName: "DropdownButton__CaretButton",
60
57
  componentId: "SD__sc-8l84jm-0"
@@ -66,40 +63,32 @@ var CaretButton = /*#__PURE__*/styled(Button).withConfig({
66
63
  });
67
64
  var DropdownButton = /*#__PURE__*/forwardRef((_ref2, ref) => {
68
65
  var _anchorRef$current2;
69
-
70
66
  var {
71
- MenuListProps,
72
- ButtonGroupProps,
73
- children,
74
- isLoading,
75
- onClick,
76
- label
77
- } = _ref2,
78
- buttonProps = _objectWithoutProperties(_ref2, _excluded$1);
79
-
67
+ MenuListProps,
68
+ ButtonGroupProps,
69
+ children,
70
+ isLoading,
71
+ onClick,
72
+ label
73
+ } = _ref2,
74
+ buttonProps = _objectWithoutProperties(_ref2, _excluded$1);
80
75
  var uid = useUID();
81
76
  var [open, setOpen] = useState(false);
82
77
  var anchorRef = useRef(null);
83
-
84
78
  function handleClick(event) {
85
79
  setOpen(false);
86
80
  onClick === null || onClick === void 0 ? void 0 : onClick(event);
87
81
  }
88
-
89
82
  function handleToggle() {
90
83
  setOpen(prevOpen => !prevOpen);
91
84
  }
92
-
93
85
  function handleClose(event) {
94
86
  var _anchorRef$current;
95
-
96
87
  if ((_anchorRef$current = anchorRef.current) !== null && _anchorRef$current !== void 0 && _anchorRef$current.contains(event.currentTarget)) {
97
88
  return;
98
89
  }
99
-
100
90
  setOpen(false);
101
91
  }
102
-
103
92
  return /*#__PURE__*/jsxs(Fragment, {
104
93
  children: [/*#__PURE__*/jsxs(ButtonGroup, _objectSpread(_objectSpread({}, ButtonGroupProps), {}, {
105
94
  ref: mergeRefs(ButtonGroupProps === null || ButtonGroupProps === void 0 ? void 0 : ButtonGroupProps.ref, anchorRef),
@@ -152,7 +141,6 @@ function useResizeObserver(node, observer) {
152
141
  if (!node) {
153
142
  return;
154
143
  }
155
-
156
144
  var resizeObserver = new ResizeObserver(() => {
157
145
  handler(node);
158
146
  });
@@ -174,10 +162,9 @@ var useStyles = /*#__PURE__*/makeStyles({
174
162
  });
175
163
  var AdaptiveToolbar = /*#__PURE__*/forwardRef((_ref, ref) => {
176
164
  var {
177
- items
178
- } = _ref,
179
- props = _objectWithoutProperties(_ref, _excluded$2);
180
-
165
+ items
166
+ } = _ref,
167
+ props = _objectWithoutProperties(_ref, _excluded$2);
181
168
  var styles = useStyles();
182
169
  var itemNodes = useRef([]);
183
170
  var optionsButtonRef = useRef(null);
@@ -187,7 +174,6 @@ var AdaptiveToolbar = /*#__PURE__*/forwardRef((_ref, ref) => {
187
174
  var [rootNode, setRootNode] = useState(null);
188
175
  useResizeObserver(rootNode, node => {
189
176
  var _optionsButtonRef$cur;
190
-
191
177
  var rootRect = node.getBoundingClientRect();
192
178
  var rootWidth = rootRect.left + rootRect.width;
193
179
  var optionsButtonRect = (_optionsButtonRef$cur = optionsButtonRef.current) === null || _optionsButtonRef$cur === void 0 ? void 0 : _optionsButtonRef$cur.getBoundingClientRect();
@@ -197,21 +183,19 @@ var AdaptiveToolbar = /*#__PURE__*/forwardRef((_ref, ref) => {
197
183
  var hiddenIdx = mountedNodes.findIndex((itemNode, idx) => {
198
184
  itemNode.removeAttribute('hidden');
199
185
  var itemRect = itemNode.getBoundingClientRect();
200
- var itemRightPosition = itemRect.left + itemRect.width; // Ignore options button width when checking last item.
186
+ var itemRightPosition = itemRect.left + itemRect.width;
201
187
 
188
+ // Ignore options button width when checking last item.
202
189
  if (idx === mountedNodes.length - 1) {
203
190
  return itemRightPosition > rootWidth;
204
191
  }
205
-
206
192
  return itemRightPosition > maxRightPosition;
207
193
  });
208
-
209
194
  if (hiddenIdx !== -1) {
210
195
  mountedNodes.slice(hiddenIdx).forEach(itemNode => {
211
196
  itemNode.setAttribute('hidden', 'true');
212
197
  });
213
198
  }
214
-
215
199
  setFirstHiddenIdx(hiddenIdx);
216
200
  });
217
201
  return /*#__PURE__*/jsx(Toolbar, _objectSpread(_objectSpread({}, props), {}, {
@@ -275,13 +259,11 @@ var AdaptiveToolbar = /*#__PURE__*/forwardRef((_ref, ref) => {
275
259
  },
276
260
  children: menuItems.map((item, index, arr) => {
277
261
  var _item$dropdown;
278
-
279
262
  var next = arr[index + 1];
280
263
  return /*#__PURE__*/jsxs(Fragment, {
281
264
  children: [/*#__PURE__*/jsx(MenuItem, {
282
265
  onClick: event => {
283
266
  var _item$onClick;
284
-
285
267
  (_item$onClick = item.onClick) === null || _item$onClick === void 0 ? void 0 : _item$onClick.call(item, event);
286
268
  setMenuButtonRef(undefined);
287
269
  },
@@ -289,7 +271,6 @@ var AdaptiveToolbar = /*#__PURE__*/forwardRef((_ref, ref) => {
289
271
  }, item.key), (_item$dropdown = item.dropdown) === null || _item$dropdown === void 0 ? void 0 : _item$dropdown.map(dropdownItem => /*#__PURE__*/jsx(MenuItem, {
290
272
  onClick: event => {
291
273
  var _dropdownItem$onClick;
292
-
293
274
  (_dropdownItem$onClick = dropdownItem.onClick) === null || _dropdownItem$onClick === void 0 ? void 0 : _dropdownItem$onClick.call(dropdownItem, event);
294
275
  setMenuButtonRef(undefined);
295
276
  },
@@ -308,7 +289,6 @@ function mergeRefs() {
308
289
  for (var _len = arguments.length, refs = new Array(_len), _key = 0; _key < _len; _key++) {
309
290
  refs[_key] = arguments[_key];
310
291
  }
311
-
312
292
  return node => {
313
293
  refs.forEach(ref => {
314
294
  assignRef(ref, node);
@@ -333,12 +313,10 @@ var useStyles$1 = /*#__PURE__*/makeStyles({
333
313
  }, {
334
314
  name: 'SD-AdaptiveVerticalToolbar'
335
315
  });
336
-
337
316
  var defaultMoreElement = /*#__PURE__*/jsx(Button, {
338
317
  type: "button",
339
318
  children: /*#__PURE__*/jsx(MoreHoriz, {})
340
319
  });
341
-
342
320
  var AdaptiveVerticalToolbar = /*#__PURE__*/forwardRef((_ref, ref) => {
343
321
  var {
344
322
  items,
@@ -356,7 +334,6 @@ var AdaptiveVerticalToolbar = /*#__PURE__*/forwardRef((_ref, ref) => {
356
334
  var [rootNode, setRootNode] = useState(null);
357
335
  useResizeObserver(rootNode, node => {
358
336
  var _optionsButtonRef$cur;
359
-
360
337
  var rootRect = node.getBoundingClientRect();
361
338
  var rootHeight = rootRect.bottom;
362
339
  var optionsButtonRect = (_optionsButtonRef$cur = optionsButtonRef.current) === null || _optionsButtonRef$cur === void 0 ? void 0 : _optionsButtonRef$cur.getBoundingClientRect();
@@ -365,21 +342,19 @@ var AdaptiveVerticalToolbar = /*#__PURE__*/forwardRef((_ref, ref) => {
365
342
  var mountedNodes = itemNodes.current.filter(x => x != null);
366
343
  var hiddenIdx = mountedNodes.findIndex((itemNode, idx) => {
367
344
  itemNode.removeAttribute('hidden');
368
- var itemRect = itemNode.getBoundingClientRect(); // Ignore options button height when checking last item.
345
+ var itemRect = itemNode.getBoundingClientRect();
369
346
 
347
+ // Ignore options button height when checking last item.
370
348
  if (idx === mountedNodes.length - 1) {
371
349
  return itemRect.bottom > rootHeight;
372
350
  }
373
-
374
351
  return itemRect.bottom > maxBottomPosition;
375
352
  });
376
-
377
353
  if (hiddenIdx !== -1) {
378
354
  mountedNodes.slice(hiddenIdx).forEach(itemNode => {
379
355
  itemNode.setAttribute('hidden', 'true');
380
356
  });
381
357
  }
382
-
383
358
  setFirstHiddenIdx(hiddenIdx);
384
359
  });
385
360
  return /*#__PURE__*/jsxs(Grid, {
@@ -419,7 +394,6 @@ var AdaptiveVerticalToolbar = /*#__PURE__*/forwardRef((_ref, ref) => {
419
394
  return [/*#__PURE__*/jsx(MenuItem, {
420
395
  onClick: event => {
421
396
  var _item$onClick;
422
-
423
397
  (_item$onClick = item.onClick) === null || _item$onClick === void 0 ? void 0 : _item$onClick.call(item, event);
424
398
  setMenuButtonRef(undefined);
425
399
  },
@@ -433,7 +407,6 @@ var AdaptiveVerticalToolbar = /*#__PURE__*/forwardRef((_ref, ref) => {
433
407
  if (process.env.NODE_ENV !== "production") AdaptiveVerticalToolbar.displayName = "AdaptiveVerticalToolbar";
434
408
 
435
409
  var Color;
436
-
437
410
  (function (Color) {
438
411
  Color["White"] = "#fff";
439
412
  Color["White50"] = "rgba(255, 255, 255, 0.5)";
@@ -513,13 +486,12 @@ var Color;
513
486
  Color["Yellow300"] = "#E8671C";
514
487
  Color["Yellow500"] = "#B84807";
515
488
  })(Color || (Color = {}));
516
-
517
489
  function isColorProp(name) {
518
490
  return typeof name == 'string' && Object.prototype.hasOwnProperty.call(Color, name);
519
491
  }
520
492
 
521
493
  var _excluded$3 = ["size", "icon", "isLoading", "classes", "disabled", "avatarRef", "className", "alt", "imgProps", "sizes", "src", "srcSet", "variant", "children"],
522
- _excluded2 = ["button", "overlay", "progress", "withIcon", "sizeLarge"];
494
+ _excluded2 = ["button", "overlay", "progress", "withIcon", "sizeLarge"];
523
495
  var useStyles$2 = /*#__PURE__*/makeStyles(theme => {
524
496
  var sm = theme.breakpoints.up('sm');
525
497
  return {
@@ -614,35 +586,33 @@ var useStyles$2 = /*#__PURE__*/makeStyles(theme => {
614
586
  });
615
587
  var AvatarButton = /*#__PURE__*/forwardRef((_ref, ref) => {
616
588
  var {
617
- size,
618
- icon,
619
- isLoading = false,
620
- classes,
621
- disabled = false,
622
- avatarRef,
623
- className,
624
- alt,
625
- imgProps,
626
- sizes,
627
- src,
628
- srcSet,
629
- variant,
630
- children
631
- } = _ref,
632
- props = _objectWithoutProperties(_ref, _excluded$3);
633
-
589
+ size,
590
+ icon,
591
+ isLoading = false,
592
+ classes,
593
+ disabled = false,
594
+ avatarRef,
595
+ className,
596
+ alt,
597
+ imgProps,
598
+ sizes,
599
+ src,
600
+ srcSet,
601
+ variant,
602
+ children
603
+ } = _ref,
604
+ props = _objectWithoutProperties(_ref, _excluded$3);
634
605
  var _useStyles = useStyles$2({
635
- classes
636
- }),
637
- {
638
- button: buttonClassName,
639
- overlay: overlayClassName,
640
- progress: progressClassName,
641
- withIcon: withIconClassName,
642
- sizeLarge: sizeLargeClassName
643
- } = _useStyles,
644
- avatarClasses = _objectWithoutProperties(_useStyles, _excluded2);
645
-
606
+ classes
607
+ }),
608
+ {
609
+ button: buttonClassName,
610
+ overlay: overlayClassName,
611
+ progress: progressClassName,
612
+ withIcon: withIconClassName,
613
+ sizeLarge: sizeLargeClassName
614
+ } = _useStyles,
615
+ avatarClasses = _objectWithoutProperties(_useStyles, _excluded2);
646
616
  return /*#__PURE__*/jsxs(ButtonBase, _objectSpread(_objectSpread({}, props), {}, {
647
617
  ref: ref,
648
618
  "aria-busy": isLoading,
@@ -745,18 +715,17 @@ var useStyles$3 = /*#__PURE__*/makeStyles(theme => ({
745
715
  });
746
716
  var CardButton = /*#__PURE__*/forwardRef((_ref, ref) => {
747
717
  var {
748
- hint,
749
- size,
750
- error,
751
- classes,
752
- className,
753
- children,
754
- endIcon,
755
- startIcon,
756
- disabled
757
- } = _ref,
758
- props = _objectWithoutProperties(_ref, _excluded$4);
759
-
718
+ hint,
719
+ size,
720
+ error,
721
+ classes,
722
+ className,
723
+ children,
724
+ endIcon,
725
+ startIcon,
726
+ disabled
727
+ } = _ref,
728
+ props = _objectWithoutProperties(_ref, _excluded$4);
760
729
  var styles = useStyles$3({
761
730
  classes
762
731
  });
@@ -809,16 +778,15 @@ var FormHelperText = /*#__PURE__*/styled(FormHelperText$4).withConfig({
809
778
  })(["color:", ";margin-left:30px;margin-top:0;margin-bottom:4px;&.Mui-error{color:", ";}"], Color.Dark300, Color.Red500);
810
779
  var CheckboxField = /*#__PURE__*/forwardRef((_ref, ref) => {
811
780
  var {
812
- label,
813
- error,
814
- checked,
815
- onBlur,
816
- onChange,
817
- helperText,
818
- FormControlLabelProps: formControlLabelProps
819
- } = _ref,
820
- props = _objectWithoutProperties(_ref, _excluded$5);
821
-
781
+ label,
782
+ error,
783
+ checked,
784
+ onBlur,
785
+ onChange,
786
+ helperText,
787
+ FormControlLabelProps: formControlLabelProps
788
+ } = _ref,
789
+ props = _objectWithoutProperties(_ref, _excluded$5);
822
790
  return /*#__PURE__*/jsxs(FormControl, {
823
791
  error: error,
824
792
  children: [/*#__PURE__*/jsx(FormControlLabel$1, _objectSpread(_objectSpread({}, formControlLabelProps), {}, {
@@ -849,15 +817,14 @@ var FormHelperText$1 = /*#__PURE__*/styled(FormHelperText$4).withConfig({
849
817
  })(["margin-top:8px;color:", ";&.Mui-error{color:", ";}"], Color.Dark300, Color.Red500);
850
818
  var CheckboxGroupField = /*#__PURE__*/forwardRef((_ref, ref) => {
851
819
  var {
852
- FormGroupProps: formGroupProps,
853
- label,
854
- FormLabelProps: formLabelProps,
855
- helperText,
856
- FormHelperTextProps: formHelperTextProps,
857
- children
858
- } = _ref,
859
- formControlProps = _objectWithoutProperties(_ref, _excluded$6);
860
-
820
+ FormGroupProps: formGroupProps,
821
+ label,
822
+ FormLabelProps: formLabelProps,
823
+ helperText,
824
+ FormHelperTextProps: formHelperTextProps,
825
+ children
826
+ } = _ref,
827
+ formControlProps = _objectWithoutProperties(_ref, _excluded$6);
861
828
  return /*#__PURE__*/jsxs(FormControl$2, _objectSpread(_objectSpread({}, formControlProps), {}, {
862
829
  hiddenLabel: !label,
863
830
  children: [!!label && /*#__PURE__*/jsx(FormLabel, _objectSpread(_objectSpread({}, formLabelProps), {}, {
@@ -874,11 +841,9 @@ var CheckboxGroupField = /*#__PURE__*/forwardRef((_ref, ref) => {
874
841
  if (process.env.NODE_ENV !== "production") CheckboxGroupField.displayName = "CheckboxGroupField";
875
842
 
876
843
  var Context = /*#__PURE__*/createContext({});
877
-
878
844
  function useBreakpoint(breakpoint) {
879
845
  return useMediaQuery(theme => theme.breakpoints.only(breakpoint));
880
846
  }
881
-
882
847
  function ResponsiveContextProvider(_ref) {
883
848
  var {
884
849
  children,
@@ -904,7 +869,6 @@ function useResponsiveContext() {
904
869
 
905
870
  function parseResponsiveProp(prop) {
906
871
  var _tablet, _desktop;
907
-
908
872
  if (typeof prop != 'object') return [prop, prop, prop];
909
873
  var [mobile, tablet, desktop] = prop;
910
874
  (_tablet = tablet) !== null && _tablet !== void 0 ? _tablet : tablet = mobile;
@@ -946,44 +910,32 @@ function useResponsivePropRecord(prop) {
946
910
  function computeFlexBasis(scale) {
947
911
  return "".concat(scale * 100, "%");
948
912
  }
949
-
950
913
  function flexBasisMixin(width) {
951
914
  switch (width) {
952
915
  case '1/2':
953
916
  return computeFlexBasis(1 / 2);
954
-
955
917
  case '1/3':
956
918
  return computeFlexBasis(1 / 3);
957
-
958
919
  case '2/3':
959
920
  return computeFlexBasis(2 / 3);
960
-
961
921
  case '1/4':
962
922
  return computeFlexBasis(1 / 4);
963
-
964
923
  case '3/4':
965
924
  return computeFlexBasis(3 / 4);
966
-
967
925
  case '1/5':
968
926
  return computeFlexBasis(1 / 5);
969
-
970
927
  case '2/5':
971
928
  return computeFlexBasis(2 / 5);
972
-
973
929
  case '3/5':
974
930
  return computeFlexBasis(3 / 5);
975
-
976
931
  case '4/5':
977
932
  return computeFlexBasis(4 / 5);
978
933
  }
979
-
980
934
  return 'auto';
981
935
  }
982
-
983
936
  function columnRootMixin(width) {
984
937
  return css(["flex-grow:0;flex-basis:", ";width:", ";flex-shrink:", ";"], flexBasisMixin(width), width === 'fluid' ? '100%' : 'auto', width === 'fluid' || width === 'adaptive' ? 1 : 0);
985
938
  }
986
-
987
939
  var ColumnRoot = /*#__PURE__*/styled.div.withConfig({
988
940
  displayName: "Column__ColumnRoot",
989
941
  componentId: "SD__sc-m9n6o6-0"
@@ -1020,10 +972,8 @@ function parseAlignProp(align) {
1020
972
  case 'left':
1021
973
  default:
1022
974
  return 'initial';
1023
-
1024
975
  case 'center':
1025
976
  return 'center';
1026
-
1027
977
  case 'right':
1028
978
  case 'bottom':
1029
979
  return 'flex-end';
@@ -1039,25 +989,18 @@ function parseSpaceProp(prop) {
1039
989
  case 'none':
1040
990
  default:
1041
991
  return 0;
1042
-
1043
992
  case 'xxsmall':
1044
993
  return 4;
1045
-
1046
994
  case 'xsmall':
1047
995
  return 8;
1048
-
1049
996
  case 'small':
1050
997
  return 16;
1051
-
1052
998
  case 'medium':
1053
999
  return 24;
1054
-
1055
1000
  case 'large':
1056
1001
  return 32;
1057
-
1058
1002
  case 'xlarge':
1059
1003
  return 40;
1060
-
1061
1004
  case 'xxlarge':
1062
1005
  return 48;
1063
1006
  }
@@ -1067,7 +1010,6 @@ function columnsRootMixin(align, spaceProp, isReversed, isCollapsed) {
1067
1010
  var space = parseSpaceProp(spaceProp);
1068
1011
  return 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');
1069
1012
  }
1070
-
1071
1013
  var Columns = /*#__PURE__*/styled.div.withConfig({
1072
1014
  displayName: "Columns",
1073
1015
  componentId: "SD__sc-1a73118-0"
@@ -1089,9 +1031,9 @@ var Columns = /*#__PURE__*/styled.div.withConfig({
1089
1031
  function renderChildren(node) {
1090
1032
  if (node == null || typeof node == 'boolean') {
1091
1033
  return null;
1092
- } // Workaround for https://github.com/DefinitelyTyped/DefinitelyTyped/issues/18051
1093
-
1034
+ }
1094
1035
 
1036
+ // Workaround for https://github.com/DefinitelyTyped/DefinitelyTyped/issues/18051
1095
1037
  return node;
1096
1038
  }
1097
1039
 
@@ -1111,7 +1053,6 @@ function useVisibilityObserver(node) {
1111
1053
  setState('undetermined');
1112
1054
  return;
1113
1055
  }
1114
-
1115
1056
  var observer = new IntersectionObserver(_ref => {
1116
1057
  var [entry] = _ref;
1117
1058
  setState(entry !== null && entry !== void 0 && entry.isIntersecting && document.visibilityState === 'visible' ? 'visible' : 'invisible');
@@ -1128,11 +1069,10 @@ function useVisibilityObserver(node) {
1128
1069
  }
1129
1070
  function VisibilityObserver(_ref2) {
1130
1071
  var {
1131
- render,
1132
- onChange
1133
- } = _ref2,
1134
- options = _objectWithoutProperties(_ref2, _excluded$7);
1135
-
1072
+ render,
1073
+ onChange
1074
+ } = _ref2,
1075
+ options = _objectWithoutProperties(_ref2, _excluded$7);
1136
1076
  var [node, setNode] = useState(null);
1137
1077
  var visibility = useVisibilityObserver(node, options);
1138
1078
  var children = render({
@@ -1146,7 +1086,7 @@ function VisibilityObserver(_ref2) {
1146
1086
  }
1147
1087
 
1148
1088
  var _excluded$8 = ["title", "enterDelay"],
1149
- _excluded2$1 = ["onClick", "children", "className", "disableUnderline", "TooltipProps"];
1089
+ _excluded2$1 = ["onClick", "children", "className", "disableUnderline", "TooltipProps"];
1150
1090
  var useStyles$4 = /*#__PURE__*/makeStyles(theme => ({
1151
1091
  root: {
1152
1092
  marginBottom: -1,
@@ -1168,18 +1108,17 @@ var useStyles$4 = /*#__PURE__*/makeStyles(theme => ({
1168
1108
  });
1169
1109
  var OverflowText = /*#__PURE__*/forwardRef((_ref, rootRef) => {
1170
1110
  var {
1171
- onClick: _onClick,
1172
- children,
1173
- className,
1174
- disableUnderline,
1175
- TooltipProps: {
1176
- title = children,
1177
- enterDelay = 1000
1178
- } = {}
1179
- } = _ref,
1180
- tooltipProps = _objectWithoutProperties(_ref.TooltipProps, _excluded$8),
1181
- props = _objectWithoutProperties(_ref, _excluded2$1);
1182
-
1111
+ onClick: _onClick,
1112
+ children,
1113
+ className,
1114
+ disableUnderline,
1115
+ TooltipProps: {
1116
+ title = children,
1117
+ enterDelay = 1000
1118
+ } = {}
1119
+ } = _ref,
1120
+ tooltipProps = _objectWithoutProperties(_ref.TooltipProps, _excluded$8),
1121
+ props = _objectWithoutProperties(_ref, _excluded2$1);
1183
1122
  var [isOpen, setIsOpen] = useState(false);
1184
1123
  var styles = useStyles$4();
1185
1124
  return /*#__PURE__*/jsx(VisibilityObserver, {
@@ -1230,7 +1169,6 @@ function useUID(defaultID) {
1230
1169
  }
1231
1170
 
1232
1171
  var _excluded$9 = ["size"];
1233
-
1234
1172
  function sizeVariant(theme, mobileSpacing, desktopSpacing) {
1235
1173
  return {
1236
1174
  '& > $list, & > $item': {
@@ -1243,7 +1181,6 @@ function sizeVariant(theme, mobileSpacing, desktopSpacing) {
1243
1181
  }
1244
1182
  };
1245
1183
  }
1246
-
1247
1184
  var useStyles$5 = /*#__PURE__*/makeStyles(theme => ({
1248
1185
  list: sizeVariant(theme, 2, 1),
1249
1186
  listSmall: sizeVariant(theme, 1, 0.5),
@@ -1265,16 +1202,17 @@ var useStyles$5 = /*#__PURE__*/makeStyles(theme => ({
1265
1202
  }
1266
1203
  }), {
1267
1204
  name: 'SD-DescriptionList'
1268
- }); //
1205
+ });
1206
+
1207
+ //
1269
1208
  // DescriptionList
1270
1209
  //
1271
1210
 
1272
1211
  var DescriptionList = /*#__PURE__*/forwardRef((_ref, ref) => {
1273
1212
  var {
1274
- size
1275
- } = _ref,
1276
- props = _objectWithoutProperties(_ref, _excluded$9);
1277
-
1213
+ size
1214
+ } = _ref,
1215
+ props = _objectWithoutProperties(_ref, _excluded$9);
1278
1216
  var styles = useStyles$5();
1279
1217
  return /*#__PURE__*/jsx("div", _objectSpread(_objectSpread({}, props), {}, {
1280
1218
  ref: ref,
@@ -1284,14 +1222,14 @@ var DescriptionList = /*#__PURE__*/forwardRef((_ref, ref) => {
1284
1222
  'large': styles.listLarge
1285
1223
  }[size])
1286
1224
  }));
1287
- }); //
1225
+ });
1226
+
1227
+ //
1288
1228
  // DescriptionListItem
1289
1229
  //
1290
-
1291
1230
  if (process.env.NODE_ENV !== "production") DescriptionList.displayName = "DescriptionList";
1292
1231
  var DescriptionListItem = /*#__PURE__*/forwardRef((_ref2, ref) => {
1293
1232
  var _ref3, _contentTypographyPro, _contentTypographyPro2;
1294
-
1295
1233
  var {
1296
1234
  inset,
1297
1235
  icon = inset ? /*#__PURE__*/jsx(SvgIcon, {}) : null,
@@ -1360,11 +1298,10 @@ var useStyles$6 = /*#__PURE__*/makeStyles(theme => ({
1360
1298
  });
1361
1299
  var DrawerActions = /*#__PURE__*/forwardRef((_ref, appBarRef) => {
1362
1300
  var {
1363
- children,
1364
- className
1365
- } = _ref,
1366
- props = _objectWithoutProperties(_ref, _excluded$a);
1367
-
1301
+ children,
1302
+ className
1303
+ } = _ref,
1304
+ props = _objectWithoutProperties(_ref, _excluded$a);
1368
1305
  var styles = useStyles$6();
1369
1306
  return /*#__PURE__*/jsx(VisibilityObserver, {
1370
1307
  render: _ref2 => {
@@ -1404,10 +1341,9 @@ var useStyles$7 = /*#__PURE__*/makeStyles(theme => ({
1404
1341
  });
1405
1342
  var DrawerContent = /*#__PURE__*/forwardRef((_ref, ref) => {
1406
1343
  var {
1407
- className
1408
- } = _ref,
1409
- props = _objectWithoutProperties(_ref, _excluded$b);
1410
-
1344
+ className
1345
+ } = _ref,
1346
+ props = _objectWithoutProperties(_ref, _excluded$b);
1411
1347
  var styles = useStyles$7();
1412
1348
  return /*#__PURE__*/jsx("div", _objectSpread(_objectSpread({}, props), {}, {
1413
1349
  ref: ref,
@@ -1417,7 +1353,6 @@ var DrawerContent = /*#__PURE__*/forwardRef((_ref, ref) => {
1417
1353
  if (process.env.NODE_ENV !== "production") DrawerContent.displayName = "DrawerContent";
1418
1354
 
1419
1355
  var _excluded$c = ["className"];
1420
-
1421
1356
  function listItemMixins(theme, space) {
1422
1357
  return {
1423
1358
  '& .MuiListItem-gutters': {
@@ -1435,7 +1370,6 @@ function listItemMixins(theme, space) {
1435
1370
  }
1436
1371
  };
1437
1372
  }
1438
-
1439
1373
  var useStyles$8 = /*#__PURE__*/makeStyles(theme => ({
1440
1374
  root: _objectSpread(_objectSpread({
1441
1375
  maxWidth: '100%'
@@ -1447,10 +1381,9 @@ var useStyles$8 = /*#__PURE__*/makeStyles(theme => ({
1447
1381
  });
1448
1382
  var DrawerList = /*#__PURE__*/forwardRef((_ref, ref) => {
1449
1383
  var {
1450
- className
1451
- } = _ref,
1452
- props = _objectWithoutProperties(_ref, _excluded$c);
1453
-
1384
+ className
1385
+ } = _ref,
1386
+ props = _objectWithoutProperties(_ref, _excluded$c);
1454
1387
  var styles = useStyles$8();
1455
1388
  return /*#__PURE__*/jsx(List, _objectSpread(_objectSpread({}, props), {}, {
1456
1389
  ref: ref,
@@ -1501,16 +1434,15 @@ var useStyles$9 = /*#__PURE__*/makeStyles(theme => ({
1501
1434
  });
1502
1435
  var DrawerTitle = /*#__PURE__*/forwardRef((_ref, appBarRef) => {
1503
1436
  var {
1504
- title,
1505
- titleTypographyProps,
1506
- subtitle,
1507
- subtitleTypographyProps,
1508
- startAction,
1509
- endAction,
1510
- className
1511
- } = _ref,
1512
- props = _objectWithoutProperties(_ref, _excluded$d);
1513
-
1437
+ title,
1438
+ titleTypographyProps,
1439
+ subtitle,
1440
+ subtitleTypographyProps,
1441
+ startAction,
1442
+ endAction,
1443
+ className
1444
+ } = _ref,
1445
+ props = _objectWithoutProperties(_ref, _excluded$d);
1514
1446
  var styles = useStyles$9();
1515
1447
  return /*#__PURE__*/jsx(VisibilityObserver, {
1516
1448
  render: _ref2 => {
@@ -1564,17 +1496,15 @@ var DrawerTitle = /*#__PURE__*/forwardRef((_ref, appBarRef) => {
1564
1496
  if (process.env.NODE_ENV !== "production") DrawerTitle.displayName = "DrawerTitle";
1565
1497
 
1566
1498
  var _excluded$e = ["children", "alignItems"];
1567
-
1568
1499
  /**
1569
1500
  * @deprecated in favor of `Stack`.
1570
1501
  */
1571
1502
  var GridStack = /*#__PURE__*/forwardRef((_ref, ref) => {
1572
1503
  var {
1573
- children,
1574
- alignItems = 'stretch'
1575
- } = _ref,
1576
- props = _objectWithoutProperties(_ref, _excluded$e);
1577
-
1504
+ children,
1505
+ alignItems = 'stretch'
1506
+ } = _ref,
1507
+ props = _objectWithoutProperties(_ref, _excluded$e);
1578
1508
  var items = Children.toArray(children);
1579
1509
  return /*#__PURE__*/jsx(Grid, _objectSpread(_objectSpread({}, props), {}, {
1580
1510
  ref: ref,
@@ -1593,19 +1523,17 @@ var GridStack = /*#__PURE__*/forwardRef((_ref, ref) => {
1593
1523
  if (process.env.NODE_ENV !== "production") GridStack.displayName = "GridStack";
1594
1524
 
1595
1525
  var _excluded$f = ["children", "wrap", "justify", "alignItems"];
1596
-
1597
1526
  /**
1598
1527
  * @deprecated in favor of `Inline` component.
1599
1528
  */
1600
1529
  var InlineGrid = /*#__PURE__*/forwardRef((_ref, ref) => {
1601
1530
  var {
1602
- children,
1603
- wrap = 'wrap',
1604
- justify = 'flex-start',
1605
- alignItems = 'flex-start'
1606
- } = _ref,
1607
- props = _objectWithoutProperties(_ref, _excluded$f);
1608
-
1531
+ children,
1532
+ wrap = 'wrap',
1533
+ justify = 'flex-start',
1534
+ alignItems = 'flex-start'
1535
+ } = _ref,
1536
+ props = _objectWithoutProperties(_ref, _excluded$f);
1609
1537
  var items = Children.toArray(children);
1610
1538
  return /*#__PURE__*/jsx(Grid, _objectSpread(_objectSpread({}, props), {}, {
1611
1539
  ref: ref,
@@ -1623,7 +1551,7 @@ var InlineGrid = /*#__PURE__*/forwardRef((_ref, ref) => {
1623
1551
  if (process.env.NODE_ENV !== "production") InlineGrid.displayName = "InlineGrid";
1624
1552
 
1625
1553
  var _excluded$g = ["size", "square", "classes", "children", "className", "CardContentProps"],
1626
- _excluded2$2 = ["content", "sizeLarge", "fullWidth"];
1554
+ _excluded2$2 = ["content", "sizeLarge", "fullWidth"];
1627
1555
  var useStyles$a = /*#__PURE__*/makeStyles(theme => ({
1628
1556
  root: {
1629
1557
  '&$fullWidth': {
@@ -1647,25 +1575,23 @@ var useStyles$a = /*#__PURE__*/makeStyles(theme => ({
1647
1575
  });
1648
1576
  var InfoCard = /*#__PURE__*/forwardRef((_ref, _ref2) => {
1649
1577
  var {
1650
- size,
1651
- square,
1652
- classes,
1653
- children,
1654
- className,
1655
- CardContentProps: cardContentProps = {}
1656
- } = _ref,
1657
- props = _objectWithoutProperties(_ref, _excluded$g);
1658
-
1578
+ size,
1579
+ square,
1580
+ classes,
1581
+ children,
1582
+ className,
1583
+ CardContentProps: cardContentProps = {}
1584
+ } = _ref,
1585
+ props = _objectWithoutProperties(_ref, _excluded$g);
1659
1586
  var _useStyles = useStyles$a({
1660
- classes
1661
- }),
1662
- {
1663
- content: contentClassName,
1664
- sizeLarge: sizeLargeClassName,
1665
- fullWidth: fullWidthClassName
1666
- } = _useStyles,
1667
- styles = _objectWithoutProperties(_useStyles, _excluded2$2);
1668
-
1587
+ classes
1588
+ }),
1589
+ {
1590
+ content: contentClassName,
1591
+ sizeLarge: sizeLargeClassName,
1592
+ fullWidth: fullWidthClassName
1593
+ } = _useStyles,
1594
+ styles = _objectWithoutProperties(_useStyles, _excluded2$2);
1669
1595
  var [rootNode, setRootNode] = useState(null);
1670
1596
  var clientRect = rootNode === null || rootNode === void 0 ? void 0 : rootNode.getBoundingClientRect();
1671
1597
  var isFullWidth = (clientRect === null || clientRect === void 0 ? void 0 : clientRect.width) === window.innerWidth;
@@ -1691,17 +1617,16 @@ var Root = /*#__PURE__*/styled.div.withConfig({
1691
1617
  })(["display:flex;align-items:center;"]);
1692
1618
  var InfoTooltip = /*#__PURE__*/forwardRef((_ref, ref) => {
1693
1619
  var {
1694
- children,
1695
- iconButtonProps,
1696
- fontSize = 'small',
1697
- TextProps,
1698
- title,
1699
- isOpen,
1700
- onClick,
1701
- onClose
1702
- } = _ref,
1703
- props = _objectWithoutProperties(_ref, _excluded$h);
1704
-
1620
+ children,
1621
+ iconButtonProps,
1622
+ fontSize = 'small',
1623
+ TextProps,
1624
+ title,
1625
+ isOpen,
1626
+ onClick,
1627
+ onClose
1628
+ } = _ref,
1629
+ props = _objectWithoutProperties(_ref, _excluded$h);
1705
1630
  var tooltip = /*#__PURE__*/jsx(Tooltip, _objectSpread(_objectSpread({
1706
1631
  open: isOpen,
1707
1632
  title: title,
@@ -1721,7 +1646,6 @@ var InfoTooltip = /*#__PURE__*/forwardRef((_ref, ref) => {
1721
1646
  })
1722
1647
  }))
1723
1648
  }));
1724
-
1725
1649
  if (!children) return tooltip;
1726
1650
  return /*#__PURE__*/jsxs(Root, {
1727
1651
  children: [/*#__PURE__*/jsx(Typography, _objectSpread(_objectSpread({}, TextProps), {}, {
@@ -1735,7 +1659,6 @@ function inlineRootMixin(spaceProp, noWrap, verticalAlign, horizontalAlign) {
1735
1659
  var space = parseSpaceProp(spaceProp);
1736
1660
  return 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);
1737
1661
  }
1738
-
1739
1662
  var InlineRoot = /*#__PURE__*/styled.div.withConfig({
1740
1663
  displayName: "Inline__InlineRoot",
1741
1664
  componentId: "SD__sc-13du4wm-0"
@@ -1781,19 +1704,17 @@ var Inline = /*#__PURE__*/forwardRef((_ref2, ref) => {
1781
1704
  if (process.env.NODE_ENV !== "production") Inline.displayName = "Inline";
1782
1705
 
1783
1706
  var _excluded$i = ["value", "inputRef", "onChange", "valueIsNumericString", "thousandSeparator", "disableValueParsing"],
1784
- _excluded2$3 = ["id", "InputProps"];
1785
-
1707
+ _excluded2$3 = ["id", "InputProps"];
1786
1708
  function NumberInputComponent(_ref) {
1787
1709
  var {
1788
- value,
1789
- inputRef,
1790
- onChange,
1791
- valueIsNumericString = true,
1792
- thousandSeparator = true,
1793
- disableValueParsing
1794
- } = _ref,
1795
- props = _objectWithoutProperties(_ref, _excluded$i);
1796
-
1710
+ value,
1711
+ inputRef,
1712
+ onChange,
1713
+ valueIsNumericString = true,
1714
+ thousandSeparator = true,
1715
+ disableValueParsing
1716
+ } = _ref,
1717
+ props = _objectWithoutProperties(_ref, _excluded$i);
1797
1718
  return /*#__PURE__*/jsx(NumericFormat, _objectSpread(_objectSpread({}, props), {}, {
1798
1719
  value: value !== null && value !== void 0 ? value : '',
1799
1720
  inputMode: "decimal",
@@ -1802,29 +1723,25 @@ function NumberInputComponent(_ref) {
1802
1723
  thousandSeparator: thousandSeparator,
1803
1724
  allowedDecimalSeparators: ['.', ','],
1804
1725
  onValueChange: (values, sourceInfo) => {
1805
- var _values$floatValue;
1806
-
1807
- var floatValue = (_values$floatValue = values.floatValue) !== null && _values$floatValue !== void 0 ? _values$floatValue : null;
1726
+ var inputValue = values.value;
1808
1727
  var {
1809
1728
  event
1810
- } = sourceInfo; // eslint-disable-next-line @typescript-eslint/no-unsafe-call
1811
-
1729
+ } = sourceInfo;
1730
+ // eslint-disable-next-line @typescript-eslint/no-unsafe-call
1812
1731
  onChange === null || onChange === void 0 ? void 0 : onChange(_objectSpread(_objectSpread({}, event), {}, {
1813
1732
  target: _objectSpread(_objectSpread({}, event === null || event === void 0 ? void 0 : event.target), {}, {
1814
- value: disableValueParsing ? values.value : floatValue
1733
+ value: inputValue
1815
1734
  })
1816
1735
  }));
1817
1736
  }
1818
1737
  }));
1819
1738
  }
1820
-
1821
1739
  var NumberField = /*#__PURE__*/forwardRef((_ref2, ref) => {
1822
1740
  var {
1823
- id,
1824
- InputProps
1825
- } = _ref2,
1826
- props = _objectWithoutProperties(_ref2, _excluded2$3);
1827
-
1741
+ id,
1742
+ InputProps
1743
+ } = _ref2,
1744
+ props = _objectWithoutProperties(_ref2, _excluded2$3);
1828
1745
  var uid = useUID(id);
1829
1746
  return /*#__PURE__*/jsx(TextField, _objectSpread(_objectSpread({}, props), {}, {
1830
1747
  ref: ref,
@@ -1840,19 +1757,19 @@ NumberField.displayName = 'NumberField';
1840
1757
  var _excluded$j = ["id", "value", "onChange", "inputMode", "valueIsNumericString", "onValueChange"];
1841
1758
  var PatternField = /*#__PURE__*/forwardRef((_ref, ref) => {
1842
1759
  var {
1843
- id,
1844
- value,
1845
- onChange,
1846
- inputMode = 'decimal',
1847
- valueIsNumericString = true,
1848
- onValueChange: _onValueChange
1849
- } = _ref,
1850
- props = _objectWithoutProperties(_ref, _excluded$j);
1851
-
1760
+ id,
1761
+ value,
1762
+ onChange,
1763
+ inputMode = 'decimal',
1764
+ valueIsNumericString = true,
1765
+ onValueChange: _onValueChange
1766
+ } = _ref,
1767
+ props = _objectWithoutProperties(_ref, _excluded$j);
1852
1768
  var uid = useUID(id);
1853
1769
  return /*#__PURE__*/jsx(PatternFormat, _objectSpread(_objectSpread({}, props), {}, {
1854
1770
  id: uid,
1855
- value: value !== null && value !== void 0 ? value : '' // eslint-disable-next-line @typescript-eslint/no-unsafe-assignment
1771
+ value: value !== null && value !== void 0 ? value : ''
1772
+ // eslint-disable-next-line @typescript-eslint/no-unsafe-assignment
1856
1773
  ,
1857
1774
  inputMode: inputMode,
1858
1775
  getInputRef: ref,
@@ -1885,16 +1802,15 @@ var FormHelperText$2 = /*#__PURE__*/styled(FormHelperText$4).withConfig({
1885
1802
  })(["color:", ";margin-left:30px;margin-top:0;margin-bottom:4px;&.Mui-error{color:", ";}"], Color.Dark300, Color.Red500);
1886
1803
  var RadioField = /*#__PURE__*/forwardRef((_ref, ref) => {
1887
1804
  var {
1888
- label,
1889
- error,
1890
- checked,
1891
- onBlur,
1892
- onChange,
1893
- helperText,
1894
- FormControlLabelProps: formControlLabelProps
1895
- } = _ref,
1896
- props = _objectWithoutProperties(_ref, _excluded$k);
1897
-
1805
+ label,
1806
+ error,
1807
+ checked,
1808
+ onBlur,
1809
+ onChange,
1810
+ helperText,
1811
+ FormControlLabelProps: formControlLabelProps
1812
+ } = _ref,
1813
+ props = _objectWithoutProperties(_ref, _excluded$k);
1898
1814
  return /*#__PURE__*/jsxs(FormControl$1, {
1899
1815
  error: error,
1900
1816
  children: [/*#__PURE__*/jsx(FormControlLabel$1, _objectSpread(_objectSpread({}, formControlLabelProps), {}, {
@@ -1941,17 +1857,16 @@ var Caption = /*#__PURE__*/styled.div.withConfig({
1941
1857
  })(["padding-left:30px;"]);
1942
1858
  var RadioFieldCard = /*#__PURE__*/forwardRef((_ref2, ref) => {
1943
1859
  var {
1944
- name,
1945
- value,
1946
- label,
1947
- caption,
1948
- disabled,
1949
- icon,
1950
- checked,
1951
- onChange
1952
- } = _ref2,
1953
- props = _objectWithoutProperties(_ref2, _excluded$l);
1954
-
1860
+ name,
1861
+ value,
1862
+ label,
1863
+ caption,
1864
+ disabled,
1865
+ icon,
1866
+ checked,
1867
+ onChange
1868
+ } = _ref2,
1869
+ props = _objectWithoutProperties(_ref2, _excluded$l);
1955
1870
  return /*#__PURE__*/jsx(Card, {
1956
1871
  disabled: disabled,
1957
1872
  children: /*#__PURE__*/jsx(ClickableCard, _objectSpread(_objectSpread({
@@ -2003,18 +1918,17 @@ var FormHelperText$3 = /*#__PURE__*/styled(FormHelperText$4).withConfig({
2003
1918
  })(["margin-top:8px;color:", ";&.Mui-error{color:", ";}"], Color.Dark300, Color.Red500);
2004
1919
  var RadioGroupField = /*#__PURE__*/forwardRef((_ref, ref) => {
2005
1920
  var {
2006
- name,
2007
- value = '',
2008
- onChange,
2009
- RadioGroupProps: radioGroupProps,
2010
- label,
2011
- FormLabelProps: formLabelProps,
2012
- helperText,
2013
- FormHelperTextProps: formHelperTextProps,
2014
- children
2015
- } = _ref,
2016
- formControlProps = _objectWithoutProperties(_ref, _excluded$m);
2017
-
1921
+ name,
1922
+ value = '',
1923
+ onChange,
1924
+ RadioGroupProps: radioGroupProps,
1925
+ label,
1926
+ FormLabelProps: formLabelProps,
1927
+ helperText,
1928
+ FormHelperTextProps: formHelperTextProps,
1929
+ children
1930
+ } = _ref,
1931
+ formControlProps = _objectWithoutProperties(_ref, _excluded$m);
2018
1932
  return /*#__PURE__*/jsxs(FormControl$2, _objectSpread(_objectSpread({}, formControlProps), {}, {
2019
1933
  hiddenLabel: !label,
2020
1934
  children: [!!label && /*#__PURE__*/jsx(FormLabel$1, _objectSpread(_objectSpread({}, formLabelProps), {}, {
@@ -2038,11 +1952,9 @@ function useCollapseBreakpoint(collapseBreakpoint) {
2038
1952
  var {
2039
1953
  breakpoint = 'xs'
2040
1954
  } = useResponsiveContext();
2041
-
2042
1955
  if (collapseBreakpoint == null) {
2043
1956
  return false;
2044
1957
  }
2045
-
2046
1958
  var breakpointIDX = BREAKPOINTS.indexOf(breakpoint);
2047
1959
  var collapseBreakpointIDX = BREAKPOINTS.indexOf(collapseBreakpoint);
2048
1960
  return breakpointIDX < collapseBreakpointIDX;
@@ -2053,18 +1965,16 @@ function useMinBreakpoint(minBreakpoint) {
2053
1965
  var {
2054
1966
  breakpoint = 'xs'
2055
1967
  } = useResponsiveContext();
2056
-
2057
1968
  if (minBreakpoint == null) {
2058
1969
  return false;
2059
1970
  }
2060
-
2061
1971
  var breakpointIDX = BREAKPOINTS$1.indexOf(breakpoint);
2062
1972
  var minBreakpointIDX = BREAKPOINTS$1.indexOf(minBreakpoint);
2063
1973
  return minBreakpointIDX < breakpointIDX;
2064
1974
  }
2065
1975
 
2066
1976
  var _excluded$n = ["action", "children", "onClose", "className", "classes", "variant"],
2067
- _excluded2$4 = ["icon", "closeButton", "variantError", "variantSuccess"];
1977
+ _excluded2$4 = ["icon", "closeButton", "variantError", "variantSuccess"];
2068
1978
  var PaddedContent = /*#__PURE__*/styled.span.withConfig({
2069
1979
  displayName: "SnackbarContent__PaddedContent",
2070
1980
  componentId: "SD__sc-1jca4d5-0"
@@ -2114,26 +2024,24 @@ var useStyles$b = /*#__PURE__*/makeStyles(theme => ({
2114
2024
  });
2115
2025
  var SnackbarContent = /*#__PURE__*/forwardRef((_ref, ref) => {
2116
2026
  var {
2117
- action,
2118
- children,
2119
- onClose,
2120
- className,
2121
- classes,
2122
- variant = 'default'
2123
- } = _ref,
2124
- props = _objectWithoutProperties(_ref, _excluded$n);
2125
-
2027
+ action,
2028
+ children,
2029
+ onClose,
2030
+ className,
2031
+ classes,
2032
+ variant = 'default'
2033
+ } = _ref,
2034
+ props = _objectWithoutProperties(_ref, _excluded$n);
2126
2035
  var _useStyles = useStyles$b({
2127
- classes
2128
- }),
2129
- {
2130
- icon,
2131
- closeButton,
2132
- variantError,
2133
- variantSuccess
2134
- } = _useStyles,
2135
- styles = _objectWithoutProperties(_useStyles, _excluded2$4);
2136
-
2036
+ classes
2037
+ }),
2038
+ {
2039
+ icon,
2040
+ closeButton,
2041
+ variantError,
2042
+ variantSuccess
2043
+ } = _useStyles,
2044
+ styles = _objectWithoutProperties(_useStyles, _excluded2$4);
2137
2045
  var Icon = variant === 'error' ? Error : variant === 'success' ? CheckCircle : undefined;
2138
2046
  return /*#__PURE__*/jsx(SnackbarContent$1, _objectSpread(_objectSpread({}, props), {}, {
2139
2047
  ref: ref,
@@ -2174,32 +2082,28 @@ var SnackbarContent = /*#__PURE__*/forwardRef((_ref, ref) => {
2174
2082
  if (process.env.NODE_ENV !== "production") SnackbarContent.displayName = "SnackbarContent";
2175
2083
 
2176
2084
  var _excluded$o = ["open", "action", "variant", "onClose", "children", "ContentProps", "hasCloseButton", "TransitionComponent"];
2177
-
2178
2085
  function SlideTransition(props) {
2179
2086
  return /*#__PURE__*/jsx(Slide, _objectSpread(_objectSpread({}, props), {}, {
2180
2087
  direction: "up"
2181
2088
  }));
2182
2089
  }
2183
-
2184
2090
  var Snackbar = /*#__PURE__*/forwardRef((_ref, ref) => {
2185
2091
  var {
2186
- open,
2187
- action,
2188
- variant,
2189
- onClose,
2190
- children,
2191
- ContentProps,
2192
- hasCloseButton = onClose != null,
2193
- TransitionComponent = SlideTransition
2194
- } = _ref,
2195
- props = _objectWithoutProperties(_ref, _excluded$o);
2196
-
2092
+ open,
2093
+ action,
2094
+ variant,
2095
+ onClose,
2096
+ children,
2097
+ ContentProps,
2098
+ hasCloseButton = onClose != null,
2099
+ TransitionComponent = SlideTransition
2100
+ } = _ref,
2101
+ props = _objectWithoutProperties(_ref, _excluded$o);
2197
2102
  function handleClose(reason) {
2198
2103
  if (reason !== 'clickaway') {
2199
2104
  onClose === null || onClose === void 0 ? void 0 : onClose(reason === 'timeout' ? 'timeout' : 'explicit');
2200
2105
  }
2201
2106
  }
2202
-
2203
2107
  return /*#__PURE__*/jsx(Portal, {
2204
2108
  children: /*#__PURE__*/jsx(Snackbar$1, _objectSpread(_objectSpread({}, props), {}, {
2205
2109
  ref: ref,
@@ -2222,12 +2126,10 @@ var Snackbar = /*#__PURE__*/forwardRef((_ref, ref) => {
2222
2126
  if (process.env.NODE_ENV !== "production") Snackbar.displayName = "Snackbar";
2223
2127
 
2224
2128
  var _excluded$p = ["onClose", "variant", "key", "id", "autoHideDuration"];
2225
-
2226
2129
  function warnContext() {
2227
2130
  // eslint-disable-next-line no-console
2228
2131
  console.log('`useSnackbarStack` is used outside of `SnackbarStackProvider`.');
2229
2132
  }
2230
-
2231
2133
  var Context$1 = /*#__PURE__*/createContext({
2232
2134
  clearStack: warnContext,
2233
2135
  addSnackbar: () => {
@@ -2259,16 +2161,16 @@ function SnackbarStackProvider(_ref2) {
2259
2161
  }, []);
2260
2162
  var addSnackbar = useCallback(function (message) {
2261
2163
  var _ref3 = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {},
2262
- {
2263
- onClose: _onClose,
2264
- variant,
2265
- key = variant !== 'error' ? // We don't want non error snackbars without key to pop back.
2266
- getNextTransientKey() : typeof message === 'string' ? message : Math.random(),
2267
- id = String(key),
2268
- autoHideDuration = 5000
2269
- } = _ref3,
2270
- props = _objectWithoutProperties(_ref3, _excluded$p);
2271
-
2164
+ {
2165
+ onClose: _onClose,
2166
+ variant,
2167
+ key = variant !== 'error' ?
2168
+ // We don't want non error snackbars without key to pop back.
2169
+ getNextTransientKey() : typeof message === 'string' ? message : Math.random(),
2170
+ id = String(key),
2171
+ autoHideDuration = 5000
2172
+ } = _ref3,
2173
+ props = _objectWithoutProperties(_ref3, _excluded$p);
2272
2174
  function removeSnackbar() {
2273
2175
  setStack(prev => {
2274
2176
  if (prev.has(key)) {
@@ -2276,26 +2178,22 @@ function SnackbarStackProvider(_ref2) {
2276
2178
  next.delete(key);
2277
2179
  return next;
2278
2180
  }
2279
-
2280
2181
  return prev;
2281
2182
  });
2282
2183
  }
2283
-
2284
2184
  setStack(prev => {
2285
2185
  var next = new Map(prev);
2286
-
2287
2186
  for (var prevKey of prev.keys()) {
2288
2187
  // Ensure that we insert value to the end of the map.
2289
2188
  if (Object.is(key, prevKey)) {
2290
2189
  next.delete(key);
2291
- } // Ensure that transient snackbar will not pop back.
2292
-
2190
+ }
2293
2191
 
2192
+ // Ensure that transient snackbar will not pop back.
2294
2193
  if (typeof prevKey == 'string' && prevKey.startsWith(TRANSIENT_KEY)) {
2295
2194
  next.delete(prevKey);
2296
2195
  }
2297
2196
  }
2298
-
2299
2197
  return next.set(key, _objectSpread(_objectSpread({}, props), {}, {
2300
2198
  id,
2301
2199
  key,
@@ -2331,7 +2229,6 @@ function SnackbarStackProvider(_ref2) {
2331
2229
  function stackItemMixin(space, align) {
2332
2230
  return css(["flex-direction:column;align-items:", ";display:", ";&:empty{display:none;}&:not(:empty) ~ div{padding-top:", "px;}"], parseAlignProp(align), align === 'left' ? 'block' : 'flex', parseSpaceProp(space));
2333
2231
  }
2334
-
2335
2232
  var StackRoot = /*#__PURE__*/styled.div.withConfig({
2336
2233
  displayName: "Stack__StackRoot",
2337
2234
  componentId: "SD__sc-qkml7c-0"
@@ -2439,17 +2336,16 @@ var useStyles$c = /*#__PURE__*/makeStyles(theme => ({
2439
2336
  });
2440
2337
  var Tag = /*#__PURE__*/forwardRef((_ref, ref) => {
2441
2338
  var {
2442
- color,
2443
- variant,
2444
- children,
2445
- classes,
2446
- className,
2447
- noWrap = true,
2448
- fontWeight = 'bold',
2449
- component = 'div'
2450
- } = _ref,
2451
- props = _objectWithoutProperties(_ref, _excluded$q);
2452
-
2339
+ color,
2340
+ variant,
2341
+ children,
2342
+ classes,
2343
+ className,
2344
+ noWrap = true,
2345
+ fontWeight = 'bold',
2346
+ component = 'div'
2347
+ } = _ref,
2348
+ props = _objectWithoutProperties(_ref, _excluded$q);
2453
2349
  var styles = useStyles$c({
2454
2350
  classes
2455
2351
  });
@@ -2484,8 +2380,9 @@ function overrideAppBar(theme) {
2484
2380
  }
2485
2381
 
2486
2382
  function overrideAutocomplete(theme) {
2487
- var sm = theme.breakpoints.up('sm'); // Remove `Object.assign` after official release of `Autocomplete`.
2383
+ var sm = theme.breakpoints.up('sm');
2488
2384
 
2385
+ // Remove `Object.assign` after official release of `Autocomplete`.
2489
2386
  Object.assign(theme.props, {
2490
2387
  MuiAutocomplete: {
2491
2388
  popupIcon: /*#__PURE__*/jsx(SvgIcon, {
@@ -2570,7 +2467,6 @@ function outlineShadow() {
2570
2467
  var color = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : Color.Transparent;
2571
2468
  return "0 0 0 ".concat(size, "px ").concat(color);
2572
2469
  }
2573
-
2574
2470
  function textVariant(text, outline, background, progress) {
2575
2471
  return {
2576
2472
  color: text,
@@ -2596,12 +2492,10 @@ function textVariant(text, outline, background, progress) {
2596
2492
  }
2597
2493
  };
2598
2494
  }
2599
-
2600
2495
  function outlinedBorder(borderColor) {
2601
2496
  var outlineColor = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : Color.Transparent;
2602
2497
  return "inset 0 0 0 1px ".concat(borderColor, ", 0 0 0 2px ").concat(outlineColor);
2603
2498
  }
2604
-
2605
2499
  function outlinedVariant(staleText, staleBorder, disabledText, disabledBorder, activeText, activeBorder, activeOutline, activeBackground, progress, backgroundColor) {
2606
2500
  return {
2607
2501
  backgroundColor,
@@ -2632,7 +2526,6 @@ function outlinedVariant(staleText, staleBorder, disabledText, disabledBorder, a
2632
2526
  }
2633
2527
  };
2634
2528
  }
2635
-
2636
2529
  function containedVariant(text, backgroundColor, outline, active, disabledText, disabledBackground) {
2637
2530
  return {
2638
2531
  color: text,
@@ -2654,7 +2547,6 @@ function containedVariant(text, backgroundColor, outline, active, disabledText,
2654
2547
  }
2655
2548
  };
2656
2549
  }
2657
-
2658
2550
  function overrideButton(theme) {
2659
2551
  var sm = theme.breakpoints.up('sm');
2660
2552
  theme.props.MuiButton = {
@@ -3087,7 +2979,6 @@ function overrideIconButton(theme) {
3087
2979
  function line(color) {
3088
2980
  return "linear-gradient(to right, ".concat(color, " 0%, ").concat(color, " 100%)");
3089
2981
  }
3090
-
3091
2982
  function overrideLink(theme) {
3092
2983
  theme.props.MuiLink = {
3093
2984
  underline: 'always',
@@ -3228,8 +3119,9 @@ function overridePagination(theme) {
3228
3119
  color: Color.Dark100
3229
3120
  }
3230
3121
  }
3231
- }; // Remove `Object.assign` after official release of `PaginationItem`.
3122
+ };
3232
3123
 
3124
+ // Remove `Object.assign` after official release of `PaginationItem`.
3233
3125
  Object.assign(theme.props, {
3234
3126
  MuiPaginationItem: props
3235
3127
  });
@@ -3308,6 +3200,13 @@ function overrideRadio(theme) {
3308
3200
 
3309
3201
  function overrideSnackbar(theme) {
3310
3202
  theme.overrides.MuiSnackbar = {
3203
+ root: {
3204
+ left: 0,
3205
+ right: 0,
3206
+ bottom: 0,
3207
+ padding: theme.spacing(0),
3208
+ background: 'transparent'
3209
+ },
3311
3210
  anchorOriginBottomCenter: {
3312
3211
  left: 0,
3313
3212
  right: 0,
@@ -3944,40 +3843,31 @@ function createSuperDispatchTheme() {
3944
3843
  overridePreloader(theme);
3945
3844
  return theme;
3946
3845
  }
3947
-
3948
3846
  var generateMaterialClassName = /*#__PURE__*/createGenerateClassName();
3949
-
3950
3847
  function generateClassName(rule, sheet) {
3951
3848
  var {
3952
3849
  meta,
3953
3850
  link
3954
3851
  } = (sheet === null || sheet === void 0 ? void 0 : sheet.options) || {};
3955
-
3956
3852
  if (meta && rule.type === 'style') {
3957
3853
  if (meta.startsWith('MuiSnackbar') && sheet) {
3958
3854
  return "SDSnackbar-".concat(rule.key);
3959
3855
  }
3960
-
3961
3856
  if (meta.startsWith('SD-')) {
3962
3857
  return "".concat(meta, "-").concat(rule.key);
3963
3858
  }
3964
-
3965
3859
  if (meta.startsWith('Mui')) {
3966
3860
  var isPseudoClass = ['checked', 'disabled', 'error', 'focused', 'focusVisible', 'required', 'expanded', 'selected'].includes(rule.key);
3967
-
3968
3861
  if (isPseudoClass) {
3969
3862
  return "Mui-".concat(rule.key);
3970
3863
  }
3971
-
3972
3864
  if (!link) {
3973
3865
  return "".concat(meta, "-").concat(rule.key);
3974
3866
  }
3975
3867
  }
3976
3868
  }
3977
-
3978
3869
  return generateMaterialClassName(rule, sheet);
3979
3870
  }
3980
-
3981
3871
  function ThemeProvider(_ref) {
3982
3872
  var {
3983
3873
  modifier,
@@ -4006,7 +3896,6 @@ function ThemeProvider(_ref) {
4006
3896
  }
4007
3897
 
4008
3898
  var PREVENT_COLLAPSE = 1;
4009
-
4010
3899
  function spaceVariant(theme, space) {
4011
3900
  var gap = theme.spacing(space);
4012
3901
  return {
@@ -4022,13 +3911,11 @@ function spaceVariant(theme, space) {
4022
3911
  }
4023
3912
  };
4024
3913
  }
4025
-
4026
3914
  function columnVariant(columns) {
4027
3915
  return {
4028
3916
  flex: "0 0 ".concat(100 / columns, "%")
4029
3917
  };
4030
3918
  }
4031
-
4032
3919
  var useStyles$d = /*#__PURE__*/makeStyles(theme => ({
4033
3920
  root: {
4034
3921
  paddingTop: PREVENT_COLLAPSE,