@superdispatch/ui 0.25.2 → 0.26.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (55) hide show
  1. package/dist-node/index.js +272 -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 +16 -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 +271 -392
  54. package/dist-web/index.js.map +1 -1
  55. 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,24 @@ 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;
1808
1726
  var {
1809
1727
  event
1810
- } = sourceInfo; // eslint-disable-next-line @typescript-eslint/no-unsafe-call
1811
-
1728
+ } = sourceInfo;
1729
+ // eslint-disable-next-line @typescript-eslint/no-unsafe-call
1812
1730
  onChange === null || onChange === void 0 ? void 0 : onChange(_objectSpread(_objectSpread({}, event), {}, {
1813
1731
  target: _objectSpread(_objectSpread({}, event === null || event === void 0 ? void 0 : event.target), {}, {
1814
- value: disableValueParsing ? values.value : floatValue
1732
+ value: disableValueParsing ? values.value : values.floatValue
1815
1733
  })
1816
1734
  }));
1817
1735
  }
1818
1736
  }));
1819
1737
  }
1820
-
1821
1738
  var NumberField = /*#__PURE__*/forwardRef((_ref2, ref) => {
1822
1739
  var {
1823
- id,
1824
- InputProps
1825
- } = _ref2,
1826
- props = _objectWithoutProperties(_ref2, _excluded2$3);
1827
-
1740
+ id,
1741
+ InputProps
1742
+ } = _ref2,
1743
+ props = _objectWithoutProperties(_ref2, _excluded2$3);
1828
1744
  var uid = useUID(id);
1829
1745
  return /*#__PURE__*/jsx(TextField, _objectSpread(_objectSpread({}, props), {}, {
1830
1746
  ref: ref,
@@ -1840,19 +1756,19 @@ NumberField.displayName = 'NumberField';
1840
1756
  var _excluded$j = ["id", "value", "onChange", "inputMode", "valueIsNumericString", "onValueChange"];
1841
1757
  var PatternField = /*#__PURE__*/forwardRef((_ref, ref) => {
1842
1758
  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
-
1759
+ id,
1760
+ value,
1761
+ onChange,
1762
+ inputMode = 'decimal',
1763
+ valueIsNumericString = true,
1764
+ onValueChange: _onValueChange
1765
+ } = _ref,
1766
+ props = _objectWithoutProperties(_ref, _excluded$j);
1852
1767
  var uid = useUID(id);
1853
1768
  return /*#__PURE__*/jsx(PatternFormat, _objectSpread(_objectSpread({}, props), {}, {
1854
1769
  id: uid,
1855
- value: value !== null && value !== void 0 ? value : '' // eslint-disable-next-line @typescript-eslint/no-unsafe-assignment
1770
+ value: value !== null && value !== void 0 ? value : ''
1771
+ // eslint-disable-next-line @typescript-eslint/no-unsafe-assignment
1856
1772
  ,
1857
1773
  inputMode: inputMode,
1858
1774
  getInputRef: ref,
@@ -1885,16 +1801,15 @@ var FormHelperText$2 = /*#__PURE__*/styled(FormHelperText$4).withConfig({
1885
1801
  })(["color:", ";margin-left:30px;margin-top:0;margin-bottom:4px;&.Mui-error{color:", ";}"], Color.Dark300, Color.Red500);
1886
1802
  var RadioField = /*#__PURE__*/forwardRef((_ref, ref) => {
1887
1803
  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
-
1804
+ label,
1805
+ error,
1806
+ checked,
1807
+ onBlur,
1808
+ onChange,
1809
+ helperText,
1810
+ FormControlLabelProps: formControlLabelProps
1811
+ } = _ref,
1812
+ props = _objectWithoutProperties(_ref, _excluded$k);
1898
1813
  return /*#__PURE__*/jsxs(FormControl$1, {
1899
1814
  error: error,
1900
1815
  children: [/*#__PURE__*/jsx(FormControlLabel$1, _objectSpread(_objectSpread({}, formControlLabelProps), {}, {
@@ -1941,17 +1856,16 @@ var Caption = /*#__PURE__*/styled.div.withConfig({
1941
1856
  })(["padding-left:30px;"]);
1942
1857
  var RadioFieldCard = /*#__PURE__*/forwardRef((_ref2, ref) => {
1943
1858
  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
-
1859
+ name,
1860
+ value,
1861
+ label,
1862
+ caption,
1863
+ disabled,
1864
+ icon,
1865
+ checked,
1866
+ onChange
1867
+ } = _ref2,
1868
+ props = _objectWithoutProperties(_ref2, _excluded$l);
1955
1869
  return /*#__PURE__*/jsx(Card, {
1956
1870
  disabled: disabled,
1957
1871
  children: /*#__PURE__*/jsx(ClickableCard, _objectSpread(_objectSpread({
@@ -2003,18 +1917,17 @@ var FormHelperText$3 = /*#__PURE__*/styled(FormHelperText$4).withConfig({
2003
1917
  })(["margin-top:8px;color:", ";&.Mui-error{color:", ";}"], Color.Dark300, Color.Red500);
2004
1918
  var RadioGroupField = /*#__PURE__*/forwardRef((_ref, ref) => {
2005
1919
  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
-
1920
+ name,
1921
+ value = '',
1922
+ onChange,
1923
+ RadioGroupProps: radioGroupProps,
1924
+ label,
1925
+ FormLabelProps: formLabelProps,
1926
+ helperText,
1927
+ FormHelperTextProps: formHelperTextProps,
1928
+ children
1929
+ } = _ref,
1930
+ formControlProps = _objectWithoutProperties(_ref, _excluded$m);
2018
1931
  return /*#__PURE__*/jsxs(FormControl$2, _objectSpread(_objectSpread({}, formControlProps), {}, {
2019
1932
  hiddenLabel: !label,
2020
1933
  children: [!!label && /*#__PURE__*/jsx(FormLabel$1, _objectSpread(_objectSpread({}, formLabelProps), {}, {
@@ -2038,11 +1951,9 @@ function useCollapseBreakpoint(collapseBreakpoint) {
2038
1951
  var {
2039
1952
  breakpoint = 'xs'
2040
1953
  } = useResponsiveContext();
2041
-
2042
1954
  if (collapseBreakpoint == null) {
2043
1955
  return false;
2044
1956
  }
2045
-
2046
1957
  var breakpointIDX = BREAKPOINTS.indexOf(breakpoint);
2047
1958
  var collapseBreakpointIDX = BREAKPOINTS.indexOf(collapseBreakpoint);
2048
1959
  return breakpointIDX < collapseBreakpointIDX;
@@ -2053,18 +1964,16 @@ function useMinBreakpoint(minBreakpoint) {
2053
1964
  var {
2054
1965
  breakpoint = 'xs'
2055
1966
  } = useResponsiveContext();
2056
-
2057
1967
  if (minBreakpoint == null) {
2058
1968
  return false;
2059
1969
  }
2060
-
2061
1970
  var breakpointIDX = BREAKPOINTS$1.indexOf(breakpoint);
2062
1971
  var minBreakpointIDX = BREAKPOINTS$1.indexOf(minBreakpoint);
2063
1972
  return minBreakpointIDX < breakpointIDX;
2064
1973
  }
2065
1974
 
2066
1975
  var _excluded$n = ["action", "children", "onClose", "className", "classes", "variant"],
2067
- _excluded2$4 = ["icon", "closeButton", "variantError", "variantSuccess"];
1976
+ _excluded2$4 = ["icon", "closeButton", "variantError", "variantSuccess"];
2068
1977
  var PaddedContent = /*#__PURE__*/styled.span.withConfig({
2069
1978
  displayName: "SnackbarContent__PaddedContent",
2070
1979
  componentId: "SD__sc-1jca4d5-0"
@@ -2114,26 +2023,24 @@ var useStyles$b = /*#__PURE__*/makeStyles(theme => ({
2114
2023
  });
2115
2024
  var SnackbarContent = /*#__PURE__*/forwardRef((_ref, ref) => {
2116
2025
  var {
2117
- action,
2118
- children,
2119
- onClose,
2120
- className,
2121
- classes,
2122
- variant = 'default'
2123
- } = _ref,
2124
- props = _objectWithoutProperties(_ref, _excluded$n);
2125
-
2026
+ action,
2027
+ children,
2028
+ onClose,
2029
+ className,
2030
+ classes,
2031
+ variant = 'default'
2032
+ } = _ref,
2033
+ props = _objectWithoutProperties(_ref, _excluded$n);
2126
2034
  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
-
2035
+ classes
2036
+ }),
2037
+ {
2038
+ icon,
2039
+ closeButton,
2040
+ variantError,
2041
+ variantSuccess
2042
+ } = _useStyles,
2043
+ styles = _objectWithoutProperties(_useStyles, _excluded2$4);
2137
2044
  var Icon = variant === 'error' ? Error : variant === 'success' ? CheckCircle : undefined;
2138
2045
  return /*#__PURE__*/jsx(SnackbarContent$1, _objectSpread(_objectSpread({}, props), {}, {
2139
2046
  ref: ref,
@@ -2174,32 +2081,28 @@ var SnackbarContent = /*#__PURE__*/forwardRef((_ref, ref) => {
2174
2081
  if (process.env.NODE_ENV !== "production") SnackbarContent.displayName = "SnackbarContent";
2175
2082
 
2176
2083
  var _excluded$o = ["open", "action", "variant", "onClose", "children", "ContentProps", "hasCloseButton", "TransitionComponent"];
2177
-
2178
2084
  function SlideTransition(props) {
2179
2085
  return /*#__PURE__*/jsx(Slide, _objectSpread(_objectSpread({}, props), {}, {
2180
2086
  direction: "up"
2181
2087
  }));
2182
2088
  }
2183
-
2184
2089
  var Snackbar = /*#__PURE__*/forwardRef((_ref, ref) => {
2185
2090
  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
-
2091
+ open,
2092
+ action,
2093
+ variant,
2094
+ onClose,
2095
+ children,
2096
+ ContentProps,
2097
+ hasCloseButton = onClose != null,
2098
+ TransitionComponent = SlideTransition
2099
+ } = _ref,
2100
+ props = _objectWithoutProperties(_ref, _excluded$o);
2197
2101
  function handleClose(reason) {
2198
2102
  if (reason !== 'clickaway') {
2199
2103
  onClose === null || onClose === void 0 ? void 0 : onClose(reason === 'timeout' ? 'timeout' : 'explicit');
2200
2104
  }
2201
2105
  }
2202
-
2203
2106
  return /*#__PURE__*/jsx(Portal, {
2204
2107
  children: /*#__PURE__*/jsx(Snackbar$1, _objectSpread(_objectSpread({}, props), {}, {
2205
2108
  ref: ref,
@@ -2222,12 +2125,10 @@ var Snackbar = /*#__PURE__*/forwardRef((_ref, ref) => {
2222
2125
  if (process.env.NODE_ENV !== "production") Snackbar.displayName = "Snackbar";
2223
2126
 
2224
2127
  var _excluded$p = ["onClose", "variant", "key", "id", "autoHideDuration"];
2225
-
2226
2128
  function warnContext() {
2227
2129
  // eslint-disable-next-line no-console
2228
2130
  console.log('`useSnackbarStack` is used outside of `SnackbarStackProvider`.');
2229
2131
  }
2230
-
2231
2132
  var Context$1 = /*#__PURE__*/createContext({
2232
2133
  clearStack: warnContext,
2233
2134
  addSnackbar: () => {
@@ -2259,16 +2160,16 @@ function SnackbarStackProvider(_ref2) {
2259
2160
  }, []);
2260
2161
  var addSnackbar = useCallback(function (message) {
2261
2162
  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
-
2163
+ {
2164
+ onClose: _onClose,
2165
+ variant,
2166
+ key = variant !== 'error' ?
2167
+ // We don't want non error snackbars without key to pop back.
2168
+ getNextTransientKey() : typeof message === 'string' ? message : Math.random(),
2169
+ id = String(key),
2170
+ autoHideDuration = 5000
2171
+ } = _ref3,
2172
+ props = _objectWithoutProperties(_ref3, _excluded$p);
2272
2173
  function removeSnackbar() {
2273
2174
  setStack(prev => {
2274
2175
  if (prev.has(key)) {
@@ -2276,26 +2177,22 @@ function SnackbarStackProvider(_ref2) {
2276
2177
  next.delete(key);
2277
2178
  return next;
2278
2179
  }
2279
-
2280
2180
  return prev;
2281
2181
  });
2282
2182
  }
2283
-
2284
2183
  setStack(prev => {
2285
2184
  var next = new Map(prev);
2286
-
2287
2185
  for (var prevKey of prev.keys()) {
2288
2186
  // Ensure that we insert value to the end of the map.
2289
2187
  if (Object.is(key, prevKey)) {
2290
2188
  next.delete(key);
2291
- } // Ensure that transient snackbar will not pop back.
2292
-
2189
+ }
2293
2190
 
2191
+ // Ensure that transient snackbar will not pop back.
2294
2192
  if (typeof prevKey == 'string' && prevKey.startsWith(TRANSIENT_KEY)) {
2295
2193
  next.delete(prevKey);
2296
2194
  }
2297
2195
  }
2298
-
2299
2196
  return next.set(key, _objectSpread(_objectSpread({}, props), {}, {
2300
2197
  id,
2301
2198
  key,
@@ -2331,7 +2228,6 @@ function SnackbarStackProvider(_ref2) {
2331
2228
  function stackItemMixin(space, align) {
2332
2229
  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
2230
  }
2334
-
2335
2231
  var StackRoot = /*#__PURE__*/styled.div.withConfig({
2336
2232
  displayName: "Stack__StackRoot",
2337
2233
  componentId: "SD__sc-qkml7c-0"
@@ -2439,17 +2335,16 @@ var useStyles$c = /*#__PURE__*/makeStyles(theme => ({
2439
2335
  });
2440
2336
  var Tag = /*#__PURE__*/forwardRef((_ref, ref) => {
2441
2337
  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
-
2338
+ color,
2339
+ variant,
2340
+ children,
2341
+ classes,
2342
+ className,
2343
+ noWrap = true,
2344
+ fontWeight = 'bold',
2345
+ component = 'div'
2346
+ } = _ref,
2347
+ props = _objectWithoutProperties(_ref, _excluded$q);
2453
2348
  var styles = useStyles$c({
2454
2349
  classes
2455
2350
  });
@@ -2484,8 +2379,9 @@ function overrideAppBar(theme) {
2484
2379
  }
2485
2380
 
2486
2381
  function overrideAutocomplete(theme) {
2487
- var sm = theme.breakpoints.up('sm'); // Remove `Object.assign` after official release of `Autocomplete`.
2382
+ var sm = theme.breakpoints.up('sm');
2488
2383
 
2384
+ // Remove `Object.assign` after official release of `Autocomplete`.
2489
2385
  Object.assign(theme.props, {
2490
2386
  MuiAutocomplete: {
2491
2387
  popupIcon: /*#__PURE__*/jsx(SvgIcon, {
@@ -2570,7 +2466,6 @@ function outlineShadow() {
2570
2466
  var color = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : Color.Transparent;
2571
2467
  return "0 0 0 ".concat(size, "px ").concat(color);
2572
2468
  }
2573
-
2574
2469
  function textVariant(text, outline, background, progress) {
2575
2470
  return {
2576
2471
  color: text,
@@ -2596,12 +2491,10 @@ function textVariant(text, outline, background, progress) {
2596
2491
  }
2597
2492
  };
2598
2493
  }
2599
-
2600
2494
  function outlinedBorder(borderColor) {
2601
2495
  var outlineColor = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : Color.Transparent;
2602
2496
  return "inset 0 0 0 1px ".concat(borderColor, ", 0 0 0 2px ").concat(outlineColor);
2603
2497
  }
2604
-
2605
2498
  function outlinedVariant(staleText, staleBorder, disabledText, disabledBorder, activeText, activeBorder, activeOutline, activeBackground, progress, backgroundColor) {
2606
2499
  return {
2607
2500
  backgroundColor,
@@ -2632,7 +2525,6 @@ function outlinedVariant(staleText, staleBorder, disabledText, disabledBorder, a
2632
2525
  }
2633
2526
  };
2634
2527
  }
2635
-
2636
2528
  function containedVariant(text, backgroundColor, outline, active, disabledText, disabledBackground) {
2637
2529
  return {
2638
2530
  color: text,
@@ -2654,7 +2546,6 @@ function containedVariant(text, backgroundColor, outline, active, disabledText,
2654
2546
  }
2655
2547
  };
2656
2548
  }
2657
-
2658
2549
  function overrideButton(theme) {
2659
2550
  var sm = theme.breakpoints.up('sm');
2660
2551
  theme.props.MuiButton = {
@@ -3087,7 +2978,6 @@ function overrideIconButton(theme) {
3087
2978
  function line(color) {
3088
2979
  return "linear-gradient(to right, ".concat(color, " 0%, ").concat(color, " 100%)");
3089
2980
  }
3090
-
3091
2981
  function overrideLink(theme) {
3092
2982
  theme.props.MuiLink = {
3093
2983
  underline: 'always',
@@ -3228,8 +3118,9 @@ function overridePagination(theme) {
3228
3118
  color: Color.Dark100
3229
3119
  }
3230
3120
  }
3231
- }; // Remove `Object.assign` after official release of `PaginationItem`.
3121
+ };
3232
3122
 
3123
+ // Remove `Object.assign` after official release of `PaginationItem`.
3233
3124
  Object.assign(theme.props, {
3234
3125
  MuiPaginationItem: props
3235
3126
  });
@@ -3951,40 +3842,31 @@ function createSuperDispatchTheme() {
3951
3842
  overridePreloader(theme);
3952
3843
  return theme;
3953
3844
  }
3954
-
3955
3845
  var generateMaterialClassName = /*#__PURE__*/createGenerateClassName();
3956
-
3957
3846
  function generateClassName(rule, sheet) {
3958
3847
  var {
3959
3848
  meta,
3960
3849
  link
3961
3850
  } = (sheet === null || sheet === void 0 ? void 0 : sheet.options) || {};
3962
-
3963
3851
  if (meta && rule.type === 'style') {
3964
3852
  if (meta.startsWith('MuiSnackbar') && sheet) {
3965
3853
  return "SDSnackbar-".concat(rule.key);
3966
3854
  }
3967
-
3968
3855
  if (meta.startsWith('SD-')) {
3969
3856
  return "".concat(meta, "-").concat(rule.key);
3970
3857
  }
3971
-
3972
3858
  if (meta.startsWith('Mui')) {
3973
3859
  var isPseudoClass = ['checked', 'disabled', 'error', 'focused', 'focusVisible', 'required', 'expanded', 'selected'].includes(rule.key);
3974
-
3975
3860
  if (isPseudoClass) {
3976
3861
  return "Mui-".concat(rule.key);
3977
3862
  }
3978
-
3979
3863
  if (!link) {
3980
3864
  return "".concat(meta, "-").concat(rule.key);
3981
3865
  }
3982
3866
  }
3983
3867
  }
3984
-
3985
3868
  return generateMaterialClassName(rule, sheet);
3986
3869
  }
3987
-
3988
3870
  function ThemeProvider(_ref) {
3989
3871
  var {
3990
3872
  modifier,
@@ -4013,7 +3895,6 @@ function ThemeProvider(_ref) {
4013
3895
  }
4014
3896
 
4015
3897
  var PREVENT_COLLAPSE = 1;
4016
-
4017
3898
  function spaceVariant(theme, space) {
4018
3899
  var gap = theme.spacing(space);
4019
3900
  return {
@@ -4029,13 +3910,11 @@ function spaceVariant(theme, space) {
4029
3910
  }
4030
3911
  };
4031
3912
  }
4032
-
4033
3913
  function columnVariant(columns) {
4034
3914
  return {
4035
3915
  flex: "0 0 ".concat(100 / columns, "%")
4036
3916
  };
4037
3917
  }
4038
-
4039
3918
  var useStyles$d = /*#__PURE__*/makeStyles(theme => ({
4040
3919
  root: {
4041
3920
  paddingTop: PREVENT_COLLAPSE,