@superdispatch/ui 0.13.0 → 0.17.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.
@@ -6,21 +6,21 @@ function _interopDefault (ex) { return (ex && (typeof ex === 'object') && 'defau
6
6
 
7
7
  var _objectSpread = _interopDefault(require('@babel/runtime/helpers/objectSpread2'));
8
8
  var _objectWithoutProperties = _interopDefault(require('@babel/runtime/helpers/objectWithoutProperties'));
9
- var resizeObserver = require('@juggle/resize-observer');
10
9
  var core = require('@material-ui/core');
11
10
  var icons = require('@material-ui/icons');
12
11
  var styles = require('@material-ui/styles');
13
- var hooks = require('@superdispatch/hooks');
14
- var react = require('react');
12
+ var React = require('react');
15
13
  var jsxRuntime = require('react/jsx-runtime');
16
- var clsx = _interopDefault(require('clsx'));
17
14
  var styled = require('styled-components');
18
15
  var styled__default = _interopDefault(styled);
16
+ var resizeObserver = require('@juggle/resize-observer');
17
+ var hooks = require('@superdispatch/hooks');
18
+ var clsx = _interopDefault(require('clsx'));
19
19
  var flattenChildren = _interopDefault(require('react-keyed-flatten-children'));
20
20
  var createBreakpoints = _interopDefault(require('@material-ui/core/styles/createBreakpoints'));
21
21
 
22
22
  var _excluded = ["size", "children", "disabled", "isActive", "isLoading", "color"];
23
- var Button = /*#__PURE__*/react.forwardRef((_ref, ref) => {
23
+ var Button = /*#__PURE__*/React.forwardRef((_ref, ref) => {
24
24
  var {
25
25
  size,
26
26
  children,
@@ -49,11 +49,112 @@ var Button = /*#__PURE__*/react.forwardRef((_ref, ref) => {
49
49
  });
50
50
  if (process.env.NODE_ENV !== "production") Button.displayName = "Button";
51
51
 
52
- var _excluded$1 = ["items"];
52
+ var _excluded$1 = ["MenuListProps", "ButtonGroupProps", "children", "isLoading", "onClick", "label"];
53
+
54
+ function CaretDownIcon() {
55
+ return /*#__PURE__*/jsxRuntime.jsx("svg", {
56
+ viewBox: "0 0 8 4",
57
+ children: /*#__PURE__*/jsxRuntime.jsx("path", {
58
+ fill: "currentColor",
59
+ d: "M0.666687 0.666656L4.00002 3.99999L7.33335 0.666656H0.666687Z"
60
+ })
61
+ });
62
+ }
63
+
64
+ var CaretButton = /*#__PURE__*/styled__default(Button).withConfig({
65
+ displayName: "DropdownButton__CaretButton",
66
+ componentId: "SD__sc-8l84jm-0"
67
+ })(["width:auto;", ";"], _ref => {
68
+ var {
69
+ variant
70
+ } = _ref;
71
+ return variant === 'contained' && "border-left: 1px solid ".concat(exports.Color.Blue500);
72
+ });
73
+ var DropdownButton = /*#__PURE__*/React.forwardRef((_ref2, ref) => {
74
+ var _anchorRef$current2;
75
+
76
+ var {
77
+ MenuListProps,
78
+ ButtonGroupProps,
79
+ children,
80
+ isLoading,
81
+ onClick,
82
+ label
83
+ } = _ref2,
84
+ buttonProps = _objectWithoutProperties(_ref2, _excluded$1);
85
+
86
+ var uid = useUID();
87
+ var [open, setOpen] = React.useState(false);
88
+ var anchorRef = React.useRef(null);
89
+
90
+ function handleClick(event) {
91
+ setOpen(false);
92
+ onClick === null || onClick === void 0 ? void 0 : onClick(event);
93
+ }
94
+
95
+ function handleToggle() {
96
+ setOpen(prevOpen => !prevOpen);
97
+ }
98
+
99
+ function handleClose(event) {
100
+ var _anchorRef$current;
101
+
102
+ if ((_anchorRef$current = anchorRef.current) !== null && _anchorRef$current !== void 0 && _anchorRef$current.contains(event.currentTarget)) {
103
+ return;
104
+ }
105
+
106
+ setOpen(false);
107
+ }
108
+
109
+ return /*#__PURE__*/jsxRuntime.jsxs(jsxRuntime.Fragment, {
110
+ children: [/*#__PURE__*/jsxRuntime.jsxs(core.ButtonGroup, _objectSpread(_objectSpread({}, ButtonGroupProps), {}, {
111
+ ref: mergeRefs(ButtonGroupProps === null || ButtonGroupProps === void 0 ? void 0 : ButtonGroupProps.ref, anchorRef),
112
+ fullWidth: (ButtonGroupProps === null || ButtonGroupProps === void 0 ? void 0 : ButtonGroupProps.fullWidth) || buttonProps.fullWidth,
113
+ children: [/*#__PURE__*/jsxRuntime.jsx(Button, _objectSpread(_objectSpread({
114
+ ref: ref,
115
+ onClick: handleClick,
116
+ disabled: isLoading,
117
+ isLoading: isLoading
118
+ }, buttonProps), {}, {
119
+ children: label
120
+ })), /*#__PURE__*/jsxRuntime.jsx(CaretButton, {
121
+ onClick: handleToggle,
122
+ disabled: isLoading,
123
+ color: buttonProps.color,
124
+ variant: buttonProps.variant,
125
+ "aria-haspopup": "menu",
126
+ "aria-controls": open ? uid : undefined,
127
+ "aria-expanded": open ? 'true' : undefined,
128
+ children: /*#__PURE__*/jsxRuntime.jsx(CaretDownIcon, {})
129
+ })]
130
+ })), /*#__PURE__*/jsxRuntime.jsx(core.Popover, {
131
+ open: open,
132
+ onClose: handleClose,
133
+ anchorEl: anchorRef.current,
134
+ anchorOrigin: {
135
+ vertical: 'bottom',
136
+ horizontal: 'left'
137
+ },
138
+ children: /*#__PURE__*/jsxRuntime.jsx("div", {
139
+ style: {
140
+ minWidth: (_anchorRef$current2 = anchorRef.current) === null || _anchorRef$current2 === void 0 ? void 0 : _anchorRef$current2.clientWidth
141
+ },
142
+ children: /*#__PURE__*/jsxRuntime.jsx(core.MenuList, _objectSpread(_objectSpread({}, MenuListProps), {}, {
143
+ id: uid,
144
+ onClick: () => {
145
+ setOpen(false);
146
+ },
147
+ children: children
148
+ }))
149
+ })
150
+ })]
151
+ });
152
+ });
153
+ if (process.env.NODE_ENV !== "production") DropdownButton.displayName = "DropdownButton";
53
154
 
54
155
  function useResizeObserver(node, observer) {
55
156
  var handler = hooks.useEventHandler(observer);
56
- react.useLayoutEffect(() => {
157
+ React.useLayoutEffect(() => {
57
158
  if (!node) {
58
159
  return;
59
160
  }
@@ -69,6 +170,7 @@ function useResizeObserver(node, observer) {
69
170
  }, [node, handler]);
70
171
  }
71
172
 
173
+ var _excluded$2 = ["items"];
72
174
  var useStyles = /*#__PURE__*/styles.makeStyles({
73
175
  actions: {
74
176
  overflow: 'hidden'
@@ -76,19 +178,19 @@ var useStyles = /*#__PURE__*/styles.makeStyles({
76
178
  }, {
77
179
  name: 'SD-AdaptiveToolbar'
78
180
  });
79
- var AdaptiveToolbar = /*#__PURE__*/react.forwardRef((_ref, ref) => {
181
+ var AdaptiveToolbar = /*#__PURE__*/React.forwardRef((_ref, ref) => {
80
182
  var {
81
183
  items
82
184
  } = _ref,
83
- props = _objectWithoutProperties(_ref, _excluded$1);
185
+ props = _objectWithoutProperties(_ref, _excluded$2);
84
186
 
85
187
  var styles = useStyles();
86
- var itemNodes = react.useRef([]);
87
- var optionsButtonRef = react.useRef(null);
88
- var [firstHiddenIdx, setFirstHiddenIdx] = react.useState(-1);
188
+ var itemNodes = React.useRef([]);
189
+ var optionsButtonRef = React.useRef(null);
190
+ var [firstHiddenIdx, setFirstHiddenIdx] = React.useState(-1);
89
191
  var menuItems = firstHiddenIdx === -1 ? [] : items.slice(firstHiddenIdx);
90
- var [menuButtonNode, setMenuButtonRef] = react.useState();
91
- var [rootNode, setRootNode] = react.useState(null);
192
+ var [menuButtonNode, setMenuButtonRef] = React.useState();
193
+ var [rootNode, setRootNode] = React.useState(null);
92
194
  useResizeObserver(rootNode, node => {
93
195
  var _optionsButtonRef$cur;
94
196
 
@@ -123,7 +225,6 @@ var AdaptiveToolbar = /*#__PURE__*/react.forwardRef((_ref, ref) => {
123
225
  children: /*#__PURE__*/jsxRuntime.jsxs(core.Grid, {
124
226
  container: true,
125
227
  spacing: 1,
126
- wrap: "nowrap",
127
228
  ref: setRootNode,
128
229
  children: [/*#__PURE__*/jsxRuntime.jsx(core.Grid, {
129
230
  item: true,
@@ -138,7 +239,16 @@ var AdaptiveToolbar = /*#__PURE__*/react.forwardRef((_ref, ref) => {
138
239
  ref: node => {
139
240
  itemNodes.current[idx] = node;
140
241
  },
141
- children: /*#__PURE__*/jsxRuntime.jsx(Button, _objectSpread(_objectSpread({
242
+ children: item.dropdown ? /*#__PURE__*/jsxRuntime.jsx(DropdownButton, _objectSpread(_objectSpread({
243
+ type: "button",
244
+ onClick: item.onClick,
245
+ label: item.label
246
+ }, item.ButtonProps), {}, {
247
+ children: item.dropdown.map(dropdownItem => /*#__PURE__*/jsxRuntime.jsx(core.MenuItem, {
248
+ onClick: dropdownItem.onClick,
249
+ children: dropdownItem.label
250
+ }, dropdownItem.key))
251
+ })) : /*#__PURE__*/jsxRuntime.jsx(Button, _objectSpread(_objectSpread({
142
252
  type: "button",
143
253
  onClick: item.onClick
144
254
  }, item.ButtonProps), {}, {
@@ -169,15 +279,30 @@ var AdaptiveToolbar = /*#__PURE__*/react.forwardRef((_ref, ref) => {
169
279
  onClose: () => {
170
280
  setMenuButtonRef(undefined);
171
281
  },
172
- children: menuItems.map(item => /*#__PURE__*/jsxRuntime.jsx(core.MenuItem, {
173
- onClick: event => {
174
- var _item$onClick;
175
-
176
- (_item$onClick = item.onClick) === null || _item$onClick === void 0 ? void 0 : _item$onClick.call(item, event);
177
- setMenuButtonRef(undefined);
178
- },
179
- children: item.label
180
- }, item.key))
282
+ children: menuItems.map((item, index, arr) => {
283
+ var _item$dropdown;
284
+
285
+ var next = arr[index + 1];
286
+ return /*#__PURE__*/jsxRuntime.jsxs(jsxRuntime.Fragment, {
287
+ children: [/*#__PURE__*/jsxRuntime.jsx(core.MenuItem, {
288
+ onClick: event => {
289
+ var _item$onClick;
290
+
291
+ (_item$onClick = item.onClick) === null || _item$onClick === void 0 ? void 0 : _item$onClick.call(item, event);
292
+ setMenuButtonRef(undefined);
293
+ },
294
+ children: item.label
295
+ }, item.key), (_item$dropdown = item.dropdown) === null || _item$dropdown === void 0 ? void 0 : _item$dropdown.map(dropdownItem => /*#__PURE__*/jsxRuntime.jsx(core.MenuItem, {
296
+ onClick: event => {
297
+ var _dropdownItem$onClick;
298
+
299
+ (_dropdownItem$onClick = dropdownItem.onClick) === null || _dropdownItem$onClick === void 0 ? void 0 : _dropdownItem$onClick.call(dropdownItem, event);
300
+ setMenuButtonRef(undefined);
301
+ },
302
+ children: dropdownItem.label
303
+ }, dropdownItem.key)), next && item.groupKey !== next.groupKey && /*#__PURE__*/jsxRuntime.jsx(core.Divider, {})]
304
+ });
305
+ })
181
306
  })]
182
307
  })]
183
308
  })
@@ -185,6 +310,134 @@ var AdaptiveToolbar = /*#__PURE__*/react.forwardRef((_ref, ref) => {
185
310
  });
186
311
  if (process.env.NODE_ENV !== "production") AdaptiveToolbar.displayName = "AdaptiveToolbar";
187
312
 
313
+ function mergeRefs() {
314
+ for (var _len = arguments.length, refs = new Array(_len), _key = 0; _key < _len; _key++) {
315
+ refs[_key] = arguments[_key];
316
+ }
317
+
318
+ return node => {
319
+ refs.forEach(ref => {
320
+ assignRef(ref, node);
321
+ });
322
+ };
323
+ }
324
+ function assignRef(ref, value) {
325
+ if (ref) {
326
+ if (typeof ref === 'function') {
327
+ ref(value);
328
+ } else {
329
+ ref.current = value;
330
+ }
331
+ }
332
+ }
333
+
334
+ var useStyles$1 = /*#__PURE__*/styles.makeStyles({
335
+ root: {
336
+ overflow: 'hidden',
337
+ height: '100%'
338
+ }
339
+ }, {
340
+ name: 'SD-AdaptiveVerticalToolbar'
341
+ });
342
+
343
+ var defaultMoreElement = /*#__PURE__*/jsxRuntime.jsx(Button, {
344
+ type: "button",
345
+ children: /*#__PURE__*/jsxRuntime.jsx(icons.MoreHoriz, {})
346
+ });
347
+
348
+ var AdaptiveVerticalToolbar = /*#__PURE__*/React.forwardRef((_ref, ref) => {
349
+ var {
350
+ items,
351
+ moreElement = defaultMoreElement,
352
+ renderItem = item => item.label
353
+ } = _ref;
354
+ var styles = useStyles$1();
355
+ var itemNodes = React.useRef([]);
356
+ var optionsButtonRef = React.useRef(null);
357
+ var [firstHiddenIdx, setFirstHiddenIdx] = React.useState(-1);
358
+ var menuItems = firstHiddenIdx === -1 ? [] : items.slice(firstHiddenIdx);
359
+ var [menuButtonNode, setMenuButtonRef] = React.useState();
360
+ var [rootNode, setRootNode] = React.useState(null);
361
+ useResizeObserver(rootNode, node => {
362
+ var _optionsButtonRef$cur;
363
+
364
+ var rootRect = node.getBoundingClientRect();
365
+ var rootHeight = rootRect.bottom;
366
+ var optionsButtonRect = (_optionsButtonRef$cur = optionsButtonRef.current) === null || _optionsButtonRef$cur === void 0 ? void 0 : _optionsButtonRef$cur.getBoundingClientRect();
367
+ var optionsButtonWidth = (optionsButtonRect === null || optionsButtonRect === void 0 ? void 0 : optionsButtonRect.height) || 0;
368
+ var maxBottomPosition = rootHeight - optionsButtonWidth;
369
+ var mountedNodes = itemNodes.current.filter(x => x != null);
370
+ var hiddenIdx = mountedNodes.findIndex((itemNode, idx) => {
371
+ itemNode.removeAttribute('hidden');
372
+ var itemRect = itemNode.getBoundingClientRect(); // Ignore options button height when checking last item.
373
+
374
+ if (idx === mountedNodes.length - 1) {
375
+ return itemRect.bottom > rootHeight;
376
+ }
377
+
378
+ return itemRect.bottom > maxBottomPosition;
379
+ });
380
+
381
+ if (hiddenIdx !== -1) {
382
+ mountedNodes.slice(hiddenIdx).forEach(itemNode => {
383
+ itemNode.setAttribute('hidden', 'true');
384
+ });
385
+ }
386
+
387
+ setFirstHiddenIdx(hiddenIdx);
388
+ });
389
+ return /*#__PURE__*/jsxRuntime.jsxs(core.Grid, {
390
+ spacing: 1,
391
+ direction: "column",
392
+ container: true,
393
+ wrap: "nowrap",
394
+ className: styles.root,
395
+ ref: mergeRefs(ref, node => {
396
+ setRootNode(node);
397
+ }),
398
+ children: [items.map((item, idx) => /*#__PURE__*/jsxRuntime.jsx(core.Grid, {
399
+ item: true,
400
+ ref: node => {
401
+ itemNodes.current[idx] = node;
402
+ },
403
+ children: renderItem(item)
404
+ }, item.key)), menuItems.length > 0 && /*#__PURE__*/jsxRuntime.jsxs(core.Grid, {
405
+ item: true,
406
+ ref: optionsButtonRef,
407
+ component: "div",
408
+ children: [/*#__PURE__*/React.cloneElement(moreElement, {
409
+ onClick: _ref2 => {
410
+ var {
411
+ currentTarget
412
+ } = _ref2;
413
+ setMenuButtonRef(currentTarget);
414
+ }
415
+ }), /*#__PURE__*/jsxRuntime.jsx(core.Menu, {
416
+ open: !!menuButtonNode,
417
+ anchorEl: menuButtonNode,
418
+ onClose: () => {
419
+ setMenuButtonRef(undefined);
420
+ },
421
+ children: menuItems.map((item, index, arr) => {
422
+ var next = arr[index + 1];
423
+ return /*#__PURE__*/jsxRuntime.jsxs(jsxRuntime.Fragment, {
424
+ children: [/*#__PURE__*/jsxRuntime.jsx(core.MenuItem, {
425
+ onClick: event => {
426
+ var _item$onClick;
427
+
428
+ (_item$onClick = item.onClick) === null || _item$onClick === void 0 ? void 0 : _item$onClick.call(item, event);
429
+ setMenuButtonRef(undefined);
430
+ },
431
+ children: item.label
432
+ }, item.key), next && next.menuGroupKey !== item.menuGroupKey && /*#__PURE__*/jsxRuntime.jsx(core.Divider, {})]
433
+ });
434
+ })
435
+ })]
436
+ })]
437
+ });
438
+ });
439
+ if (process.env.NODE_ENV !== "production") AdaptiveVerticalToolbar.displayName = "AdaptiveVerticalToolbar";
440
+
188
441
  (function (Color) {
189
442
  Color["White"] = "#fff";
190
443
  Color["White50"] = "rgba(255, 255, 255, 0.5)";
@@ -261,9 +514,9 @@ function isColorProp(name) {
261
514
  return typeof name == 'string' && Object.prototype.hasOwnProperty.call(exports.Color, name);
262
515
  }
263
516
 
264
- var _excluded$2 = ["size", "icon", "isLoading", "classes", "disabled", "avatarRef", "className", "alt", "imgProps", "sizes", "src", "srcSet", "variant", "children"],
517
+ var _excluded$3 = ["size", "icon", "isLoading", "classes", "disabled", "avatarRef", "className", "alt", "imgProps", "sizes", "src", "srcSet", "variant", "children"],
265
518
  _excluded2 = ["button", "overlay", "progress", "withIcon", "sizeLarge"];
266
- var useStyles$1 = /*#__PURE__*/styles.makeStyles(theme => {
519
+ var useStyles$2 = /*#__PURE__*/styles.makeStyles(theme => {
267
520
  var sm = theme.breakpoints.up('sm');
268
521
  return {
269
522
  button: {
@@ -354,7 +607,7 @@ var useStyles$1 = /*#__PURE__*/styles.makeStyles(theme => {
354
607
  }, {
355
608
  name: 'SD-AvatarButton'
356
609
  });
357
- var AvatarButton = /*#__PURE__*/react.forwardRef((_ref, ref) => {
610
+ var AvatarButton = /*#__PURE__*/React.forwardRef((_ref, ref) => {
358
611
  var {
359
612
  size,
360
613
  icon,
@@ -371,9 +624,9 @@ var AvatarButton = /*#__PURE__*/react.forwardRef((_ref, ref) => {
371
624
  variant,
372
625
  children
373
626
  } = _ref,
374
- props = _objectWithoutProperties(_ref, _excluded$2);
627
+ props = _objectWithoutProperties(_ref, _excluded$3);
375
628
 
376
- var _useStyles = useStyles$1({
629
+ var _useStyles = useStyles$2({
377
630
  classes
378
631
  }),
379
632
  {
@@ -413,8 +666,8 @@ var AvatarButton = /*#__PURE__*/react.forwardRef((_ref, ref) => {
413
666
  });
414
667
  if (process.env.NODE_ENV !== "production") AvatarButton.displayName = "AvatarButton";
415
668
 
416
- var _excluded$3 = ["hint", "size", "error", "classes", "className", "children", "endIcon", "startIcon", "disabled"];
417
- var useStyles$2 = /*#__PURE__*/styles.makeStyles(theme => ({
669
+ var _excluded$4 = ["hint", "size", "error", "classes", "className", "children", "endIcon", "startIcon", "disabled"];
670
+ var useStyles$3 = /*#__PURE__*/styles.makeStyles(theme => ({
418
671
  root: {
419
672
  width: '100%',
420
673
  display: 'flex',
@@ -485,7 +738,7 @@ var useStyles$2 = /*#__PURE__*/styles.makeStyles(theme => ({
485
738
  }), {
486
739
  name: 'SD-CardButton'
487
740
  });
488
- var CardButton = /*#__PURE__*/react.forwardRef((_ref, ref) => {
741
+ var CardButton = /*#__PURE__*/React.forwardRef((_ref, ref) => {
489
742
  var {
490
743
  hint,
491
744
  size,
@@ -497,9 +750,9 @@ var CardButton = /*#__PURE__*/react.forwardRef((_ref, ref) => {
497
750
  startIcon,
498
751
  disabled
499
752
  } = _ref,
500
- props = _objectWithoutProperties(_ref, _excluded$3);
753
+ props = _objectWithoutProperties(_ref, _excluded$4);
501
754
 
502
- var styles = useStyles$2({
755
+ var styles = useStyles$3({
503
756
  classes
504
757
  });
505
758
  return /*#__PURE__*/jsxRuntime.jsx(core.ButtonBase, _objectSpread(_objectSpread({}, props), {}, {
@@ -536,8 +789,8 @@ var CardButton = /*#__PURE__*/react.forwardRef((_ref, ref) => {
536
789
  });
537
790
  if (process.env.NODE_ENV !== "production") CardButton.displayName = "CardButton";
538
791
 
539
- var _excluded$4 = ["label", "error", "checked", "onBlur", "onChange", "helperText", "FormControlLabelProps"];
540
- var CheckboxField = /*#__PURE__*/react.forwardRef((_ref, ref) => {
792
+ var _excluded$5 = ["label", "error", "checked", "onBlur", "onChange", "helperText", "FormControlLabelProps"];
793
+ var CheckboxField = /*#__PURE__*/React.forwardRef((_ref, ref) => {
541
794
  var {
542
795
  label,
543
796
  error,
@@ -547,7 +800,7 @@ var CheckboxField = /*#__PURE__*/react.forwardRef((_ref, ref) => {
547
800
  helperText,
548
801
  FormControlLabelProps: formControlLabelProps
549
802
  } = _ref,
550
- props = _objectWithoutProperties(_ref, _excluded$4);
803
+ props = _objectWithoutProperties(_ref, _excluded$5);
551
804
 
552
805
  return /*#__PURE__*/jsxRuntime.jsxs(core.FormControl, {
553
806
  error: error,
@@ -568,8 +821,8 @@ var CheckboxField = /*#__PURE__*/react.forwardRef((_ref, ref) => {
568
821
  });
569
822
  if (process.env.NODE_ENV !== "production") CheckboxField.displayName = "CheckboxField";
570
823
 
571
- var _excluded$5 = ["FormGroupProps", "label", "FormLabelProps", "helperText", "FormHelperTextProps", "children"];
572
- var CheckboxGroupField = /*#__PURE__*/react.forwardRef((_ref, ref) => {
824
+ var _excluded$6 = ["FormGroupProps", "label", "FormLabelProps", "helperText", "FormHelperTextProps", "children"];
825
+ var CheckboxGroupField = /*#__PURE__*/React.forwardRef((_ref, ref) => {
573
826
  var {
574
827
  FormGroupProps: formGroupProps,
575
828
  label,
@@ -578,7 +831,7 @@ var CheckboxGroupField = /*#__PURE__*/react.forwardRef((_ref, ref) => {
578
831
  FormHelperTextProps: formHelperTextProps,
579
832
  children
580
833
  } = _ref,
581
- formControlProps = _objectWithoutProperties(_ref, _excluded$5);
834
+ formControlProps = _objectWithoutProperties(_ref, _excluded$6);
582
835
 
583
836
  return /*#__PURE__*/jsxRuntime.jsxs(core.FormControl, _objectSpread(_objectSpread({}, formControlProps), {}, {
584
837
  hiddenLabel: !label,
@@ -595,7 +848,7 @@ var CheckboxGroupField = /*#__PURE__*/react.forwardRef((_ref, ref) => {
595
848
  });
596
849
  if (process.env.NODE_ENV !== "production") CheckboxGroupField.displayName = "CheckboxGroupField";
597
850
 
598
- var Context = /*#__PURE__*/react.createContext({});
851
+ var Context = /*#__PURE__*/React.createContext({});
599
852
 
600
853
  function useBreakpoint(breakpoint) {
601
854
  return core.useMediaQuery(theme => theme.breakpoints.only(breakpoint));
@@ -612,7 +865,7 @@ function ResponsiveContextProvider(_ref) {
612
865
  var isLG = useBreakpoint('lg');
613
866
  var isXL = useBreakpoint('xl');
614
867
  var breakpoint = isXS ? 'xs' : isSM ? 'sm' : isMD ? 'md' : isLG ? 'lg' : isXL ? 'xl' : defaultBreakpoint;
615
- var ctx = react.useMemo(() => ({
868
+ var ctx = React.useMemo(() => ({
616
869
  breakpoint
617
870
  }), [breakpoint]);
618
871
  return /*#__PURE__*/jsxRuntime.jsx(Context.Provider, {
@@ -621,7 +874,7 @@ function ResponsiveContextProvider(_ref) {
621
874
  });
622
875
  }
623
876
  function useResponsiveContext() {
624
- return react.useContext(Context);
877
+ return React.useContext(Context);
625
878
  }
626
879
 
627
880
  function parseResponsiveProp(prop) {
@@ -716,7 +969,7 @@ var ColumnRoot = /*#__PURE__*/styled__default.div.withConfig({
716
969
  } = _ref;
717
970
  return styled.css(["min-width:0;", ";", "{", ";}", "{", ";}& > div{padding-top:var(--column-space-top);padding-left:var(--column-space-left);padding-bottom:var(--column-space-bottom);}&:last-child > div{padding-top:0;padding-bottom:0;}"], columnRootMixin(columnWidth[0]), theme.breakpoints.up('sm'), columnRootMixin(columnWidth[1]), theme.breakpoints.up('md'), columnRootMixin(columnWidth[2]));
718
971
  });
719
- var Column = /*#__PURE__*/react.forwardRef((_ref2, ref) => {
972
+ var Column = /*#__PURE__*/React.forwardRef((_ref2, ref) => {
720
973
  var {
721
974
  children,
722
975
  'aria-label': ariaLabel,
@@ -817,7 +1070,7 @@ function renderChildren(node) {
817
1070
  return node;
818
1071
  }
819
1072
 
820
- var _excluded$6 = ["render", "onChange"];
1073
+ var _excluded$7 = ["render", "onChange"];
821
1074
  function useVisibilityObserver(node) {
822
1075
  var {
823
1076
  threshold = 0,
@@ -826,9 +1079,9 @@ function useVisibilityObserver(node) {
826
1079
  marginRight = '0px',
827
1080
  marginBottom = '0px'
828
1081
  } = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
829
- var [state, setState] = react.useState('undetermined');
1082
+ var [state, setState] = React.useState('undetermined');
830
1083
  var rootMargin = "".concat(marginTop, " ").concat(marginRight, " ").concat(marginBottom, " ").concat(marginLeft);
831
- react.useLayoutEffect(() => {
1084
+ React.useLayoutEffect(() => {
832
1085
  if (!node || !('IntersectionObserver' in window)) {
833
1086
  setState('undetermined');
834
1087
  return;
@@ -853,9 +1106,9 @@ function VisibilityObserver(_ref2) {
853
1106
  render,
854
1107
  onChange
855
1108
  } = _ref2,
856
- options = _objectWithoutProperties(_ref2, _excluded$6);
1109
+ options = _objectWithoutProperties(_ref2, _excluded$7);
857
1110
 
858
- var [node, setNode] = react.useState(null);
1111
+ var [node, setNode] = React.useState(null);
859
1112
  var visibility = useVisibilityObserver(node, options);
860
1113
  var children = render({
861
1114
  ref: setNode,
@@ -867,9 +1120,9 @@ function VisibilityObserver(_ref2) {
867
1120
  return renderChildren(children);
868
1121
  }
869
1122
 
870
- var _excluded$7 = ["title", "enterDelay"],
1123
+ var _excluded$8 = ["title", "enterDelay"],
871
1124
  _excluded2$1 = ["onClick", "children", "className", "disableUnderline", "TooltipProps"];
872
- var useStyles$3 = /*#__PURE__*/styles.makeStyles(theme => ({
1125
+ var useStyles$4 = /*#__PURE__*/styles.makeStyles(theme => ({
873
1126
  root: {
874
1127
  marginBottom: -1,
875
1128
  borderBottom: '1px dashed transparent',
@@ -888,7 +1141,7 @@ var useStyles$3 = /*#__PURE__*/styles.makeStyles(theme => ({
888
1141
  }), {
889
1142
  name: 'SD-OverflowText'
890
1143
  });
891
- var OverflowText = /*#__PURE__*/react.forwardRef((_ref, rootRef) => {
1144
+ var OverflowText = /*#__PURE__*/React.forwardRef((_ref, rootRef) => {
892
1145
  var {
893
1146
  onClick: _onClick,
894
1147
  children,
@@ -899,11 +1152,11 @@ var OverflowText = /*#__PURE__*/react.forwardRef((_ref, rootRef) => {
899
1152
  enterDelay = 1000
900
1153
  } = {}
901
1154
  } = _ref,
902
- tooltipProps = _objectWithoutProperties(_ref.TooltipProps, _excluded$7),
1155
+ tooltipProps = _objectWithoutProperties(_ref.TooltipProps, _excluded$8),
903
1156
  props = _objectWithoutProperties(_ref, _excluded2$1);
904
1157
 
905
- var [isOpen, setIsOpen] = react.useState(false);
906
- var styles = useStyles$3();
1158
+ var [isOpen, setIsOpen] = React.useState(false);
1159
+ var styles = useStyles$4();
907
1160
  return /*#__PURE__*/jsxRuntime.jsx(VisibilityObserver, {
908
1161
  render: _ref2 => {
909
1162
  var {
@@ -947,11 +1200,11 @@ function isEmptyReactNode(node) {
947
1200
 
948
1201
  var current = 0;
949
1202
  function useUID(defaultID) {
950
- var uid = react.useMemo(() => "uid_".concat(current += 1), []);
1203
+ var uid = React.useMemo(() => "uid_".concat(current += 1), []);
951
1204
  return defaultID || uid;
952
1205
  }
953
1206
 
954
- var _excluded$8 = ["size"];
1207
+ var _excluded$9 = ["size"];
955
1208
 
956
1209
  function sizeVariant(theme, mobileSpacing, desktopSpacing) {
957
1210
  return {
@@ -966,7 +1219,7 @@ function sizeVariant(theme, mobileSpacing, desktopSpacing) {
966
1219
  };
967
1220
  }
968
1221
 
969
- var useStyles$4 = /*#__PURE__*/styles.makeStyles(theme => ({
1222
+ var useStyles$5 = /*#__PURE__*/styles.makeStyles(theme => ({
970
1223
  list: sizeVariant(theme, 2, 1),
971
1224
  listSmall: sizeVariant(theme, 1, 0.5),
972
1225
  listLarge: sizeVariant(theme, 3, 2),
@@ -991,13 +1244,13 @@ var useStyles$4 = /*#__PURE__*/styles.makeStyles(theme => ({
991
1244
  // DescriptionList
992
1245
  //
993
1246
 
994
- var DescriptionList = /*#__PURE__*/react.forwardRef((_ref, ref) => {
1247
+ var DescriptionList = /*#__PURE__*/React.forwardRef((_ref, ref) => {
995
1248
  var {
996
1249
  size
997
1250
  } = _ref,
998
- props = _objectWithoutProperties(_ref, _excluded$8);
1251
+ props = _objectWithoutProperties(_ref, _excluded$9);
999
1252
 
1000
- var styles = useStyles$4();
1253
+ var styles = useStyles$5();
1001
1254
  return /*#__PURE__*/jsxRuntime.jsx("div", _objectSpread(_objectSpread({}, props), {}, {
1002
1255
  ref: ref,
1003
1256
  "data-size": size,
@@ -1011,7 +1264,7 @@ var DescriptionList = /*#__PURE__*/react.forwardRef((_ref, ref) => {
1011
1264
  //
1012
1265
 
1013
1266
  if (process.env.NODE_ENV !== "production") DescriptionList.displayName = "DescriptionList";
1014
- var DescriptionListItem = /*#__PURE__*/react.forwardRef((_ref2, ref) => {
1267
+ var DescriptionListItem = /*#__PURE__*/React.forwardRef((_ref2, ref) => {
1015
1268
  var _ref3, _contentTypographyPro, _contentTypographyPro2;
1016
1269
 
1017
1270
  var {
@@ -1023,7 +1276,7 @@ var DescriptionListItem = /*#__PURE__*/react.forwardRef((_ref2, ref) => {
1023
1276
  contentTypographyProps,
1024
1277
  fallback
1025
1278
  } = _ref2;
1026
- var styles = useStyles$4();
1279
+ var styles = useStyles$5();
1027
1280
  var labelID = useUID(labelTypographyProps === null || labelTypographyProps === void 0 ? void 0 : labelTypographyProps.id);
1028
1281
  var shouldRenderFallback = isEmptyReactNode(content);
1029
1282
  return /*#__PURE__*/jsxRuntime.jsxs("div", {
@@ -1051,8 +1304,8 @@ var DescriptionListItem = /*#__PURE__*/react.forwardRef((_ref2, ref) => {
1051
1304
  });
1052
1305
  if (process.env.NODE_ENV !== "production") DescriptionListItem.displayName = "DescriptionListItem";
1053
1306
 
1054
- var _excluded$9 = ["children", "className"];
1055
- var useStyles$5 = /*#__PURE__*/styles.makeStyles(theme => ({
1307
+ var _excluded$a = ["children", "className"];
1308
+ var useStyles$6 = /*#__PURE__*/styles.makeStyles(theme => ({
1056
1309
  appBar: {
1057
1310
  '&&': {
1058
1311
  bottom: 0,
@@ -1080,14 +1333,14 @@ var useStyles$5 = /*#__PURE__*/styles.makeStyles(theme => ({
1080
1333
  }), {
1081
1334
  name: 'SD-DrawerActions'
1082
1335
  });
1083
- var DrawerActions = /*#__PURE__*/react.forwardRef((_ref, appBarRef) => {
1336
+ var DrawerActions = /*#__PURE__*/React.forwardRef((_ref, appBarRef) => {
1084
1337
  var {
1085
1338
  children,
1086
1339
  className
1087
1340
  } = _ref,
1088
- props = _objectWithoutProperties(_ref, _excluded$9);
1341
+ props = _objectWithoutProperties(_ref, _excluded$a);
1089
1342
 
1090
- var styles = useStyles$5();
1343
+ var styles = useStyles$6();
1091
1344
  return /*#__PURE__*/jsxRuntime.jsx(VisibilityObserver, {
1092
1345
  render: _ref2 => {
1093
1346
  var {
@@ -1112,8 +1365,8 @@ var DrawerActions = /*#__PURE__*/react.forwardRef((_ref, appBarRef) => {
1112
1365
  });
1113
1366
  if (process.env.NODE_ENV !== "production") DrawerActions.displayName = "DrawerActions";
1114
1367
 
1115
- var _excluded$a = ["className"];
1116
- var useStyles$6 = /*#__PURE__*/styles.makeStyles(theme => ({
1368
+ var _excluded$b = ["className"];
1369
+ var useStyles$7 = /*#__PURE__*/styles.makeStyles(theme => ({
1117
1370
  root: {
1118
1371
  maxWidth: '100%',
1119
1372
  padding: theme.spacing(2, 3),
@@ -1124,13 +1377,13 @@ var useStyles$6 = /*#__PURE__*/styles.makeStyles(theme => ({
1124
1377
  }), {
1125
1378
  name: 'SD-DrawerContent'
1126
1379
  });
1127
- var DrawerContent = /*#__PURE__*/react.forwardRef((_ref, ref) => {
1380
+ var DrawerContent = /*#__PURE__*/React.forwardRef((_ref, ref) => {
1128
1381
  var {
1129
1382
  className
1130
1383
  } = _ref,
1131
- props = _objectWithoutProperties(_ref, _excluded$a);
1384
+ props = _objectWithoutProperties(_ref, _excluded$b);
1132
1385
 
1133
- var styles = useStyles$6();
1386
+ var styles = useStyles$7();
1134
1387
  return /*#__PURE__*/jsxRuntime.jsx("div", _objectSpread(_objectSpread({}, props), {}, {
1135
1388
  ref: ref,
1136
1389
  className: clsx(styles.root, className)
@@ -1138,7 +1391,7 @@ var DrawerContent = /*#__PURE__*/react.forwardRef((_ref, ref) => {
1138
1391
  });
1139
1392
  if (process.env.NODE_ENV !== "production") DrawerContent.displayName = "DrawerContent";
1140
1393
 
1141
- var _excluded$b = ["className"];
1394
+ var _excluded$c = ["className"];
1142
1395
 
1143
1396
  function listItemMixins(theme, space) {
1144
1397
  return {
@@ -1158,7 +1411,7 @@ function listItemMixins(theme, space) {
1158
1411
  };
1159
1412
  }
1160
1413
 
1161
- var useStyles$7 = /*#__PURE__*/styles.makeStyles(theme => ({
1414
+ var useStyles$8 = /*#__PURE__*/styles.makeStyles(theme => ({
1162
1415
  root: _objectSpread(_objectSpread({
1163
1416
  maxWidth: '100%'
1164
1417
  }, listItemMixins(theme, 3)), {}, {
@@ -1167,13 +1420,13 @@ var useStyles$7 = /*#__PURE__*/styles.makeStyles(theme => ({
1167
1420
  }), {
1168
1421
  name: 'SD-DrawerList'
1169
1422
  });
1170
- var DrawerList = /*#__PURE__*/react.forwardRef((_ref, ref) => {
1423
+ var DrawerList = /*#__PURE__*/React.forwardRef((_ref, ref) => {
1171
1424
  var {
1172
1425
  className
1173
1426
  } = _ref,
1174
- props = _objectWithoutProperties(_ref, _excluded$b);
1427
+ props = _objectWithoutProperties(_ref, _excluded$c);
1175
1428
 
1176
- var styles = useStyles$7();
1429
+ var styles = useStyles$8();
1177
1430
  return /*#__PURE__*/jsxRuntime.jsx(core.List, _objectSpread(_objectSpread({}, props), {}, {
1178
1431
  ref: ref,
1179
1432
  component: "div",
@@ -1182,8 +1435,8 @@ var DrawerList = /*#__PURE__*/react.forwardRef((_ref, ref) => {
1182
1435
  });
1183
1436
  if (process.env.NODE_ENV !== "production") DrawerList.displayName = "DrawerList";
1184
1437
 
1185
- var _excluded$c = ["title", "titleTypographyProps", "subtitle", "subtitleTypographyProps", "startAction", "endAction", "className"];
1186
- var useStyles$8 = /*#__PURE__*/styles.makeStyles(theme => ({
1438
+ var _excluded$d = ["title", "titleTypographyProps", "subtitle", "subtitleTypographyProps", "startAction", "endAction", "className"];
1439
+ var useStyles$9 = /*#__PURE__*/styles.makeStyles(theme => ({
1187
1440
  appBar: {
1188
1441
  '&&': {
1189
1442
  borderTop: 'none',
@@ -1221,7 +1474,7 @@ var useStyles$8 = /*#__PURE__*/styles.makeStyles(theme => ({
1221
1474
  }), {
1222
1475
  name: 'SD-DrawerTitle'
1223
1476
  });
1224
- var DrawerTitle = /*#__PURE__*/react.forwardRef((_ref, appBarRef) => {
1477
+ var DrawerTitle = /*#__PURE__*/React.forwardRef((_ref, appBarRef) => {
1225
1478
  var {
1226
1479
  title,
1227
1480
  titleTypographyProps,
@@ -1231,9 +1484,9 @@ var DrawerTitle = /*#__PURE__*/react.forwardRef((_ref, appBarRef) => {
1231
1484
  endAction,
1232
1485
  className
1233
1486
  } = _ref,
1234
- props = _objectWithoutProperties(_ref, _excluded$c);
1487
+ props = _objectWithoutProperties(_ref, _excluded$d);
1235
1488
 
1236
- var styles = useStyles$8();
1489
+ var styles = useStyles$9();
1237
1490
  return /*#__PURE__*/jsxRuntime.jsx(VisibilityObserver, {
1238
1491
  render: _ref2 => {
1239
1492
  var {
@@ -1285,19 +1538,19 @@ var DrawerTitle = /*#__PURE__*/react.forwardRef((_ref, appBarRef) => {
1285
1538
  });
1286
1539
  if (process.env.NODE_ENV !== "production") DrawerTitle.displayName = "DrawerTitle";
1287
1540
 
1288
- var _excluded$d = ["children", "alignItems"];
1541
+ var _excluded$e = ["children", "alignItems"];
1289
1542
  /**
1290
1543
  * @deprecated in favor of `Stack`.
1291
1544
  */
1292
1545
 
1293
- var GridStack = /*#__PURE__*/react.forwardRef((_ref, ref) => {
1546
+ var GridStack = /*#__PURE__*/React.forwardRef((_ref, ref) => {
1294
1547
  var {
1295
1548
  children,
1296
1549
  alignItems = 'stretch'
1297
1550
  } = _ref,
1298
- props = _objectWithoutProperties(_ref, _excluded$d);
1551
+ props = _objectWithoutProperties(_ref, _excluded$e);
1299
1552
 
1300
- var items = react.Children.toArray(children);
1553
+ var items = React.Children.toArray(children);
1301
1554
  return /*#__PURE__*/jsxRuntime.jsx(core.Grid, _objectSpread(_objectSpread({}, props), {}, {
1302
1555
  ref: ref,
1303
1556
  container: true,
@@ -1314,21 +1567,21 @@ var GridStack = /*#__PURE__*/react.forwardRef((_ref, ref) => {
1314
1567
  });
1315
1568
  if (process.env.NODE_ENV !== "production") GridStack.displayName = "GridStack";
1316
1569
 
1317
- var _excluded$e = ["children", "wrap", "justify", "alignItems"];
1570
+ var _excluded$f = ["children", "wrap", "justify", "alignItems"];
1318
1571
  /**
1319
1572
  * @deprecated in favor of `Inline` component.
1320
1573
  */
1321
1574
 
1322
- var InlineGrid = /*#__PURE__*/react.forwardRef((_ref, ref) => {
1575
+ var InlineGrid = /*#__PURE__*/React.forwardRef((_ref, ref) => {
1323
1576
  var {
1324
1577
  children,
1325
1578
  wrap = 'wrap',
1326
1579
  justify = 'flex-start',
1327
1580
  alignItems = 'flex-start'
1328
1581
  } = _ref,
1329
- props = _objectWithoutProperties(_ref, _excluded$e);
1582
+ props = _objectWithoutProperties(_ref, _excluded$f);
1330
1583
 
1331
- var items = react.Children.toArray(children);
1584
+ var items = React.Children.toArray(children);
1332
1585
  return /*#__PURE__*/jsxRuntime.jsx(core.Grid, _objectSpread(_objectSpread({}, props), {}, {
1333
1586
  ref: ref,
1334
1587
  wrap: wrap,
@@ -1344,20 +1597,9 @@ var InlineGrid = /*#__PURE__*/react.forwardRef((_ref, ref) => {
1344
1597
  });
1345
1598
  if (process.env.NODE_ENV !== "production") InlineGrid.displayName = "InlineGrid";
1346
1599
 
1347
- var _excluded$f = ["size", "square", "classes", "children", "className", "CardContentProps"],
1600
+ var _excluded$g = ["size", "square", "classes", "children", "className", "CardContentProps"],
1348
1601
  _excluded2$2 = ["content", "sizeLarge", "fullWidth"];
1349
-
1350
- function assignRef(ref, value) {
1351
- if (ref) {
1352
- if (typeof ref === 'object') {
1353
- ref.current = value;
1354
- } else {
1355
- ref(value);
1356
- }
1357
- }
1358
- }
1359
-
1360
- var useStyles$9 = /*#__PURE__*/styles.makeStyles(theme => ({
1602
+ var useStyles$a = /*#__PURE__*/styles.makeStyles(theme => ({
1361
1603
  root: {
1362
1604
  '&$fullWidth': {
1363
1605
  borderRadius: 0,
@@ -1378,7 +1620,7 @@ var useStyles$9 = /*#__PURE__*/styles.makeStyles(theme => ({
1378
1620
  }), {
1379
1621
  name: 'SD-InfoCard'
1380
1622
  });
1381
- var InfoCard = /*#__PURE__*/react.forwardRef((_ref, _ref2) => {
1623
+ var InfoCard = /*#__PURE__*/React.forwardRef((_ref, _ref2) => {
1382
1624
  var {
1383
1625
  size,
1384
1626
  square,
@@ -1387,9 +1629,9 @@ var InfoCard = /*#__PURE__*/react.forwardRef((_ref, _ref2) => {
1387
1629
  className,
1388
1630
  CardContentProps: cardContentProps = {}
1389
1631
  } = _ref,
1390
- props = _objectWithoutProperties(_ref, _excluded$f);
1632
+ props = _objectWithoutProperties(_ref, _excluded$g);
1391
1633
 
1392
- var _useStyles = useStyles$9({
1634
+ var _useStyles = useStyles$a({
1393
1635
  classes
1394
1636
  }),
1395
1637
  {
@@ -1399,7 +1641,7 @@ var InfoCard = /*#__PURE__*/react.forwardRef((_ref, _ref2) => {
1399
1641
  } = _useStyles,
1400
1642
  styles = _objectWithoutProperties(_useStyles, _excluded2$2);
1401
1643
 
1402
- var [rootNode, setRootNode] = react.useState(null);
1644
+ var [rootNode, setRootNode] = React.useState(null);
1403
1645
  var clientRect = rootNode === null || rootNode === void 0 ? void 0 : rootNode.getBoundingClientRect();
1404
1646
  var isFullWidth = (clientRect === null || clientRect === void 0 ? void 0 : clientRect.width) === window.innerWidth;
1405
1647
  return /*#__PURE__*/jsxRuntime.jsx(core.Card, _objectSpread(_objectSpread({}, props), {}, {
@@ -1435,7 +1677,7 @@ var InlineRoot = /*#__PURE__*/styled__default.div.withConfig({
1435
1677
  } = _ref;
1436
1678
  return styled.css(["padding-top:1px;&:before{content:'';display:block;}", " ", "{", "}", "{", "}"], inlineRootMixin(space[0], noWrap[0], verticalAlign[0], horizontalAlign[0]), theme.breakpoints.up('sm'), inlineRootMixin(space[1], noWrap[1], verticalAlign[1], horizontalAlign[1]), theme.breakpoints.up('md'), inlineRootMixin(space[2], noWrap[2], verticalAlign[2], horizontalAlign[2]));
1437
1679
  });
1438
- var Inline = /*#__PURE__*/react.forwardRef((_ref2, ref) => {
1680
+ var Inline = /*#__PURE__*/React.forwardRef((_ref2, ref) => {
1439
1681
  var {
1440
1682
  children,
1441
1683
  'aria-label': ariaLabel,
@@ -1466,8 +1708,8 @@ var Inline = /*#__PURE__*/react.forwardRef((_ref2, ref) => {
1466
1708
  });
1467
1709
  if (process.env.NODE_ENV !== "production") Inline.displayName = "Inline";
1468
1710
 
1469
- var _excluded$g = ["label", "error", "checked", "onBlur", "onChange", "helperText", "FormControlLabelProps"];
1470
- var RadioField = /*#__PURE__*/react.forwardRef((_ref, ref) => {
1711
+ var _excluded$h = ["label", "error", "checked", "onBlur", "onChange", "helperText", "FormControlLabelProps"];
1712
+ var RadioField = /*#__PURE__*/React.forwardRef((_ref, ref) => {
1471
1713
  var {
1472
1714
  label,
1473
1715
  error,
@@ -1477,7 +1719,7 @@ var RadioField = /*#__PURE__*/react.forwardRef((_ref, ref) => {
1477
1719
  helperText,
1478
1720
  FormControlLabelProps: formControlLabelProps
1479
1721
  } = _ref,
1480
- props = _objectWithoutProperties(_ref, _excluded$g);
1722
+ props = _objectWithoutProperties(_ref, _excluded$h);
1481
1723
 
1482
1724
  return /*#__PURE__*/jsxRuntime.jsxs(core.FormControl, {
1483
1725
  error: error,
@@ -1497,8 +1739,8 @@ var RadioField = /*#__PURE__*/react.forwardRef((_ref, ref) => {
1497
1739
  });
1498
1740
  if (process.env.NODE_ENV !== "production") RadioField.displayName = "RadioField";
1499
1741
 
1500
- var _excluded$h = ["name", "value", "onChange", "RadioGroupProps", "label", "FormLabelProps", "helperText", "FormHelperTextProps", "children"];
1501
- var RadioGroupField = /*#__PURE__*/react.forwardRef((_ref, ref) => {
1742
+ var _excluded$i = ["name", "value", "onChange", "RadioGroupProps", "label", "FormLabelProps", "helperText", "FormHelperTextProps", "children"];
1743
+ var RadioGroupField = /*#__PURE__*/React.forwardRef((_ref, ref) => {
1502
1744
  var {
1503
1745
  name,
1504
1746
  value = '',
@@ -1510,7 +1752,7 @@ var RadioGroupField = /*#__PURE__*/react.forwardRef((_ref, ref) => {
1510
1752
  FormHelperTextProps: formHelperTextProps,
1511
1753
  children
1512
1754
  } = _ref,
1513
- formControlProps = _objectWithoutProperties(_ref, _excluded$h);
1755
+ formControlProps = _objectWithoutProperties(_ref, _excluded$i);
1514
1756
 
1515
1757
  return /*#__PURE__*/jsxRuntime.jsxs(core.FormControl, _objectSpread(_objectSpread({}, formControlProps), {}, {
1516
1758
  hiddenLabel: !label,
@@ -1545,9 +1787,9 @@ function useCollapseBreakpoint(collapseBreakpoint) {
1545
1787
  return breakpointIDX < collapseBreakpointIDX;
1546
1788
  }
1547
1789
 
1548
- var _excluded$i = ["action", "children", "onClose", "className", "classes", "variant"],
1790
+ var _excluded$j = ["action", "children", "onClose", "className", "classes", "variant"],
1549
1791
  _excluded2$3 = ["icon", "closeButton", "variantError", "variantSuccess"];
1550
- var useStyles$a = /*#__PURE__*/styles.makeStyles(theme => ({
1792
+ var useStyles$b = /*#__PURE__*/styles.makeStyles(theme => ({
1551
1793
  root: {
1552
1794
  color: exports.Color.White,
1553
1795
  backgroundColor: exports.Color.Dark500,
@@ -1581,7 +1823,7 @@ var useStyles$a = /*#__PURE__*/styles.makeStyles(theme => ({
1581
1823
  }), {
1582
1824
  name: 'SD-SnackbarContent'
1583
1825
  });
1584
- var SnackbarContent = /*#__PURE__*/react.forwardRef((_ref, ref) => {
1826
+ var SnackbarContent = /*#__PURE__*/React.forwardRef((_ref, ref) => {
1585
1827
  var {
1586
1828
  action,
1587
1829
  children,
@@ -1590,9 +1832,9 @@ var SnackbarContent = /*#__PURE__*/react.forwardRef((_ref, ref) => {
1590
1832
  classes,
1591
1833
  variant = 'default'
1592
1834
  } = _ref,
1593
- props = _objectWithoutProperties(_ref, _excluded$i);
1835
+ props = _objectWithoutProperties(_ref, _excluded$j);
1594
1836
 
1595
- var _useStyles = useStyles$a({
1837
+ var _useStyles = useStyles$b({
1596
1838
  classes
1597
1839
  }),
1598
1840
  {
@@ -1640,7 +1882,7 @@ var SnackbarContent = /*#__PURE__*/react.forwardRef((_ref, ref) => {
1640
1882
  });
1641
1883
  if (process.env.NODE_ENV !== "production") SnackbarContent.displayName = "SnackbarContent";
1642
1884
 
1643
- var _excluded$j = ["open", "action", "variant", "onClose", "children", "ContentProps", "hasCloseButton", "TransitionComponent"];
1885
+ var _excluded$k = ["open", "action", "variant", "onClose", "children", "ContentProps", "hasCloseButton", "TransitionComponent"];
1644
1886
 
1645
1887
  function SlideTransition(props) {
1646
1888
  return /*#__PURE__*/jsxRuntime.jsx(core.Slide, _objectSpread(_objectSpread({}, props), {}, {
@@ -1648,7 +1890,7 @@ function SlideTransition(props) {
1648
1890
  }));
1649
1891
  }
1650
1892
 
1651
- var Snackbar = /*#__PURE__*/react.forwardRef((_ref, ref) => {
1893
+ var Snackbar = /*#__PURE__*/React.forwardRef((_ref, ref) => {
1652
1894
  var {
1653
1895
  open,
1654
1896
  action,
@@ -1659,7 +1901,7 @@ var Snackbar = /*#__PURE__*/react.forwardRef((_ref, ref) => {
1659
1901
  hasCloseButton = onClose != null,
1660
1902
  TransitionComponent = SlideTransition
1661
1903
  } = _ref,
1662
- props = _objectWithoutProperties(_ref, _excluded$j);
1904
+ props = _objectWithoutProperties(_ref, _excluded$k);
1663
1905
 
1664
1906
  function handleClose(reason) {
1665
1907
  if (reason !== 'clickaway') {
@@ -1688,14 +1930,14 @@ var Snackbar = /*#__PURE__*/react.forwardRef((_ref, ref) => {
1688
1930
  });
1689
1931
  if (process.env.NODE_ENV !== "production") Snackbar.displayName = "Snackbar";
1690
1932
 
1691
- var _excluded$k = ["onClose", "variant", "key", "id", "autoHideDuration"];
1933
+ var _excluded$l = ["onClose", "variant", "key", "id", "autoHideDuration"];
1692
1934
 
1693
1935
  function warnContext() {
1694
1936
  // eslint-disable-next-line no-console
1695
1937
  console.log('`useSnackbarStack` is used outside of `SnackbarStackProvider`.');
1696
1938
  }
1697
1939
 
1698
- var Context$1 = /*#__PURE__*/react.createContext({
1940
+ var Context$1 = /*#__PURE__*/React.createContext({
1699
1941
  clearStack: warnContext,
1700
1942
  addSnackbar: () => {
1701
1943
  warnContext();
@@ -1703,7 +1945,7 @@ var Context$1 = /*#__PURE__*/react.createContext({
1703
1945
  }
1704
1946
  });
1705
1947
  function useSnackbarStack() {
1706
- return react.useContext(Context$1);
1948
+ return React.useContext(Context$1);
1707
1949
  }
1708
1950
  function SnackbarStackConsumer(_ref) {
1709
1951
  var {
@@ -1718,13 +1960,13 @@ function SnackbarStackProvider(_ref2) {
1718
1960
  var {
1719
1961
  children
1720
1962
  } = _ref2;
1721
- var [stack, setStack] = react.useState(new Map());
1722
- var transientKeyRef = react.useRef(0);
1723
- var getNextTransientKey = react.useCallback(() => TRANSIENT_KEY + String(transientKeyRef.current += 1), []);
1724
- var clearStack = react.useCallback(() => {
1963
+ var [stack, setStack] = React.useState(new Map());
1964
+ var transientKeyRef = React.useRef(0);
1965
+ var getNextTransientKey = React.useCallback(() => TRANSIENT_KEY + String(transientKeyRef.current += 1), []);
1966
+ var clearStack = React.useCallback(() => {
1725
1967
  setStack(x => x.size === 0 ? x : new Map());
1726
1968
  }, []);
1727
- var addSnackbar = react.useCallback(function (message) {
1969
+ var addSnackbar = React.useCallback(function (message) {
1728
1970
  var _ref3 = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {},
1729
1971
  {
1730
1972
  onClose: _onClose,
@@ -1734,7 +1976,7 @@ function SnackbarStackProvider(_ref2) {
1734
1976
  id = String(key),
1735
1977
  autoHideDuration = 5000
1736
1978
  } = _ref3,
1737
- props = _objectWithoutProperties(_ref3, _excluded$k);
1979
+ props = _objectWithoutProperties(_ref3, _excluded$l);
1738
1980
 
1739
1981
  function removeSnackbar() {
1740
1982
  setStack(prev => {
@@ -1785,7 +2027,7 @@ function SnackbarStackProvider(_ref2) {
1785
2027
  open: false
1786
2028
  });
1787
2029
  }, [stack]);
1788
- var api = react.useMemo(() => ({
2030
+ var api = React.useMemo(() => ({
1789
2031
  clearStack,
1790
2032
  addSnackbar
1791
2033
  }), [clearStack, addSnackbar]);
@@ -1810,7 +2052,7 @@ var StackRoot = /*#__PURE__*/styled__default.div.withConfig({
1810
2052
  } = _ref;
1811
2053
  return styled.css(["width:100%;& > div{", ";", "{", ";}", "{", ";}}"], stackItemMixin(space[0], align[0]), theme.breakpoints.up('sm'), stackItemMixin(space[1], align[1]), theme.breakpoints.up('md'), stackItemMixin(space[2], align[2]));
1812
2054
  });
1813
- var Stack = /*#__PURE__*/react.forwardRef((_ref2, ref) => {
2055
+ var Stack = /*#__PURE__*/React.forwardRef((_ref2, ref) => {
1814
2056
  var {
1815
2057
  children,
1816
2058
  'aria-label': ariaLabel,
@@ -1831,8 +2073,8 @@ var Stack = /*#__PURE__*/react.forwardRef((_ref2, ref) => {
1831
2073
  });
1832
2074
  if (process.env.NODE_ENV !== "production") Stack.displayName = "Stack";
1833
2075
 
1834
- var _excluded$l = ["color", "variant", "children", "classes", "className", "noWrap", "fontWeight", "component"];
1835
- var useStyles$b = /*#__PURE__*/styles.makeStyles(theme => ({
2076
+ var _excluded$m = ["color", "variant", "children", "classes", "className", "noWrap", "fontWeight", "component"];
2077
+ var useStyles$c = /*#__PURE__*/styles.makeStyles(theme => ({
1836
2078
  root: {
1837
2079
  maxWidth: '100%',
1838
2080
  alignItems: 'center',
@@ -1904,7 +2146,7 @@ var useStyles$b = /*#__PURE__*/styles.makeStyles(theme => ({
1904
2146
  }), {
1905
2147
  name: 'SD-Tag'
1906
2148
  });
1907
- var Tag = /*#__PURE__*/react.forwardRef((_ref, ref) => {
2149
+ var Tag = /*#__PURE__*/React.forwardRef((_ref, ref) => {
1908
2150
  var {
1909
2151
  color,
1910
2152
  variant,
@@ -1915,9 +2157,9 @@ var Tag = /*#__PURE__*/react.forwardRef((_ref, ref) => {
1915
2157
  fontWeight = 'bold',
1916
2158
  component = 'div'
1917
2159
  } = _ref,
1918
- props = _objectWithoutProperties(_ref, _excluded$l);
2160
+ props = _objectWithoutProperties(_ref, _excluded$m);
1919
2161
 
1920
- var styles = useStyles$b({
2162
+ var styles = useStyles$c({
1921
2163
  classes
1922
2164
  });
1923
2165
  return /*#__PURE__*/jsxRuntime.jsx(core.Typography, _objectSpread(_objectSpread({}, props), {}, {
@@ -2449,6 +2691,14 @@ function overrideDialog(theme) {
2449
2691
  theme.overrides.MuiDialog = {
2450
2692
  paper: {
2451
2693
  margin: theme.spacing(3)
2694
+ },
2695
+ paperWidthXs: {
2696
+ maxWidth: Math.max(theme.breakpoints.values.xs, 360),
2697
+ '&$paperScrollBody': {
2698
+ [theme.breakpoints.down(Math.max(theme.breakpoints.values.xs, 360) + 32 * 2)]: {
2699
+ maxWidth: 'calc(100% - 64px)'
2700
+ }
2701
+ }
2452
2702
  }
2453
2703
  };
2454
2704
  theme.overrides.MuiDialogTitle = {
@@ -2879,7 +3129,7 @@ function overrideTabs(theme) {
2879
3129
  };
2880
3130
  }
2881
3131
 
2882
- var SelectIcon = /*#__PURE__*/react.forwardRef((props, ref) => /*#__PURE__*/jsxRuntime.jsx(core.SvgIcon, _objectSpread(_objectSpread({
3132
+ var SelectIcon = /*#__PURE__*/React.forwardRef((props, ref) => /*#__PURE__*/jsxRuntime.jsx(core.SvgIcon, _objectSpread(_objectSpread({
2883
3133
  ref: ref
2884
3134
  }, props), {}, {
2885
3135
  children: /*#__PURE__*/jsxRuntime.jsx("path", {
@@ -3356,7 +3606,7 @@ function columnVariant(columns) {
3356
3606
  };
3357
3607
  }
3358
3608
 
3359
- var useStyles$c = /*#__PURE__*/styles.makeStyles(theme => ({
3609
+ var useStyles$d = /*#__PURE__*/styles.makeStyles(theme => ({
3360
3610
  root: {
3361
3611
  paddingTop: PREVENT_COLLAPSE,
3362
3612
  '&:before': {
@@ -3394,13 +3644,13 @@ var useStyles$c = /*#__PURE__*/styles.makeStyles(theme => ({
3394
3644
  }), {
3395
3645
  name: 'SD-Tiles'
3396
3646
  });
3397
- var Tiles = /*#__PURE__*/react.forwardRef((_ref, ref) => {
3647
+ var Tiles = /*#__PURE__*/React.forwardRef((_ref, ref) => {
3398
3648
  var {
3399
3649
  children,
3400
3650
  space: spaceProp = 1,
3401
3651
  columns: columnsProp = 1
3402
3652
  } = _ref;
3403
- var styles = useStyles$c({});
3653
+ var styles = useStyles$d({});
3404
3654
  var space = useResponsivePropRecord(spaceProp);
3405
3655
  var columns = useResponsivePropRecord(columnsProp);
3406
3656
  return /*#__PURE__*/jsxRuntime.jsx("div", {
@@ -3420,25 +3670,8 @@ var Tiles = /*#__PURE__*/react.forwardRef((_ref, ref) => {
3420
3670
  });
3421
3671
  if (process.env.NODE_ENV !== "production") Tiles.displayName = "Tiles";
3422
3672
 
3423
- function mergeRefs() {
3424
- for (var _len = arguments.length, refs = new Array(_len), _key = 0; _key < _len; _key++) {
3425
- refs[_key] = arguments[_key];
3426
- }
3427
-
3428
- return node => {
3429
- refs.forEach(ref => {
3430
- if (ref) {
3431
- if (typeof ref === 'function') {
3432
- ref(node);
3433
- } else {
3434
- ref.current = node;
3435
- }
3436
- }
3437
- });
3438
- };
3439
- }
3440
-
3441
3673
  exports.AdaptiveToolbar = AdaptiveToolbar;
3674
+ exports.AdaptiveVerticalToolbar = AdaptiveVerticalToolbar;
3442
3675
  exports.AvatarButton = AvatarButton;
3443
3676
  exports.Button = Button;
3444
3677
  exports.CardButton = CardButton;
@@ -3452,6 +3685,7 @@ exports.DrawerActions = DrawerActions;
3452
3685
  exports.DrawerContent = DrawerContent;
3453
3686
  exports.DrawerList = DrawerList;
3454
3687
  exports.DrawerTitle = DrawerTitle;
3688
+ exports.DropdownButton = DropdownButton;
3455
3689
  exports.GridStack = GridStack;
3456
3690
  exports.InfoCard = InfoCard;
3457
3691
  exports.Inline = Inline;
@@ -3469,6 +3703,7 @@ exports.Tag = Tag;
3469
3703
  exports.ThemeProvider = ThemeProvider;
3470
3704
  exports.Tiles = Tiles;
3471
3705
  exports.VisibilityObserver = VisibilityObserver;
3706
+ exports.assignRef = assignRef;
3472
3707
  exports.isColorProp = isColorProp;
3473
3708
  exports.isEmptyReactNode = isEmptyReactNode;
3474
3709
  exports.mergeRefs = mergeRefs;
@@ -3478,6 +3713,7 @@ exports.parseResponsiveProp = parseResponsiveProp;
3478
3713
  exports.parseSpaceProp = parseSpaceProp;
3479
3714
  exports.renderChildren = renderChildren;
3480
3715
  exports.useCollapseBreakpoint = useCollapseBreakpoint;
3716
+ exports.useResizeObserver = useResizeObserver;
3481
3717
  exports.useResponsiveContext = useResponsiveContext;
3482
3718
  exports.useResponsiveProp = useResponsiveProp;
3483
3719
  exports.useResponsivePropRecord = useResponsivePropRecord;