@superdispatch/ui 0.14.0 → 0.17.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.
@@ -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,136 @@ 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
+ disableGutters,
352
+ moreElement = defaultMoreElement,
353
+ renderItem = item => item.label,
354
+ renderMenuItem = item => item.label
355
+ } = _ref;
356
+ var styles = useStyles$1();
357
+ var itemNodes = React.useRef([]);
358
+ var optionsButtonRef = React.useRef(null);
359
+ var [firstHiddenIdx, setFirstHiddenIdx] = React.useState(-1);
360
+ var menuItems = firstHiddenIdx === -1 ? [] : items.slice(firstHiddenIdx);
361
+ var [menuButtonNode, setMenuButtonRef] = React.useState();
362
+ var [rootNode, setRootNode] = React.useState(null);
363
+ useResizeObserver(rootNode, node => {
364
+ var _optionsButtonRef$cur;
365
+
366
+ var rootRect = node.getBoundingClientRect();
367
+ var rootHeight = rootRect.bottom;
368
+ var optionsButtonRect = (_optionsButtonRef$cur = optionsButtonRef.current) === null || _optionsButtonRef$cur === void 0 ? void 0 : _optionsButtonRef$cur.getBoundingClientRect();
369
+ var optionsButtonWidth = (optionsButtonRect === null || optionsButtonRect === void 0 ? void 0 : optionsButtonRect.height) || 0;
370
+ var maxBottomPosition = rootHeight - optionsButtonWidth;
371
+ var mountedNodes = itemNodes.current.filter(x => x != null);
372
+ var hiddenIdx = mountedNodes.findIndex((itemNode, idx) => {
373
+ itemNode.removeAttribute('hidden');
374
+ var itemRect = itemNode.getBoundingClientRect(); // Ignore options button height when checking last item.
375
+
376
+ if (idx === mountedNodes.length - 1) {
377
+ return itemRect.bottom > rootHeight;
378
+ }
379
+
380
+ return itemRect.bottom > maxBottomPosition;
381
+ });
382
+
383
+ if (hiddenIdx !== -1) {
384
+ mountedNodes.slice(hiddenIdx).forEach(itemNode => {
385
+ itemNode.setAttribute('hidden', 'true');
386
+ });
387
+ }
388
+
389
+ setFirstHiddenIdx(hiddenIdx);
390
+ });
391
+ return /*#__PURE__*/jsxRuntime.jsxs(core.Grid, {
392
+ direction: "column",
393
+ container: true,
394
+ wrap: "nowrap",
395
+ className: styles.root,
396
+ spacing: disableGutters ? undefined : 1,
397
+ ref: mergeRefs(ref, node => {
398
+ setRootNode(node);
399
+ }),
400
+ children: [items.map((item, idx) => /*#__PURE__*/jsxRuntime.jsx(core.Grid, {
401
+ item: true,
402
+ ref: node => {
403
+ itemNodes.current[idx] = node;
404
+ },
405
+ children: renderItem(item)
406
+ }, item.key)), menuItems.length > 0 && /*#__PURE__*/jsxRuntime.jsxs(core.Grid, {
407
+ item: true,
408
+ ref: optionsButtonRef,
409
+ component: "div",
410
+ children: [/*#__PURE__*/React.cloneElement(moreElement, {
411
+ onClick: _ref2 => {
412
+ var {
413
+ currentTarget
414
+ } = _ref2;
415
+ setMenuButtonRef(currentTarget);
416
+ }
417
+ }), /*#__PURE__*/jsxRuntime.jsx(core.Menu, {
418
+ open: !!menuButtonNode,
419
+ anchorEl: menuButtonNode,
420
+ onClose: () => {
421
+ setMenuButtonRef(undefined);
422
+ },
423
+ children: menuItems.map((item, index, arr) => {
424
+ var next = arr[index + 1];
425
+ return /*#__PURE__*/jsxRuntime.jsxs(jsxRuntime.Fragment, {
426
+ children: [/*#__PURE__*/jsxRuntime.jsx(core.MenuItem, {
427
+ onClick: event => {
428
+ var _item$onClick;
429
+
430
+ (_item$onClick = item.onClick) === null || _item$onClick === void 0 ? void 0 : _item$onClick.call(item, event);
431
+ setMenuButtonRef(undefined);
432
+ },
433
+ children: renderMenuItem(item)
434
+ }, item.key), next && next.menuGroupKey !== item.menuGroupKey && /*#__PURE__*/jsxRuntime.jsx(core.Divider, {})]
435
+ });
436
+ })
437
+ })]
438
+ })]
439
+ });
440
+ });
441
+ if (process.env.NODE_ENV !== "production") AdaptiveVerticalToolbar.displayName = "AdaptiveVerticalToolbar";
442
+
188
443
  (function (Color) {
189
444
  Color["White"] = "#fff";
190
445
  Color["White50"] = "rgba(255, 255, 255, 0.5)";
@@ -261,9 +516,9 @@ function isColorProp(name) {
261
516
  return typeof name == 'string' && Object.prototype.hasOwnProperty.call(exports.Color, name);
262
517
  }
263
518
 
264
- var _excluded$2 = ["size", "icon", "isLoading", "classes", "disabled", "avatarRef", "className", "alt", "imgProps", "sizes", "src", "srcSet", "variant", "children"],
519
+ var _excluded$3 = ["size", "icon", "isLoading", "classes", "disabled", "avatarRef", "className", "alt", "imgProps", "sizes", "src", "srcSet", "variant", "children"],
265
520
  _excluded2 = ["button", "overlay", "progress", "withIcon", "sizeLarge"];
266
- var useStyles$1 = /*#__PURE__*/styles.makeStyles(theme => {
521
+ var useStyles$2 = /*#__PURE__*/styles.makeStyles(theme => {
267
522
  var sm = theme.breakpoints.up('sm');
268
523
  return {
269
524
  button: {
@@ -354,7 +609,7 @@ var useStyles$1 = /*#__PURE__*/styles.makeStyles(theme => {
354
609
  }, {
355
610
  name: 'SD-AvatarButton'
356
611
  });
357
- var AvatarButton = /*#__PURE__*/react.forwardRef((_ref, ref) => {
612
+ var AvatarButton = /*#__PURE__*/React.forwardRef((_ref, ref) => {
358
613
  var {
359
614
  size,
360
615
  icon,
@@ -371,9 +626,9 @@ var AvatarButton = /*#__PURE__*/react.forwardRef((_ref, ref) => {
371
626
  variant,
372
627
  children
373
628
  } = _ref,
374
- props = _objectWithoutProperties(_ref, _excluded$2);
629
+ props = _objectWithoutProperties(_ref, _excluded$3);
375
630
 
376
- var _useStyles = useStyles$1({
631
+ var _useStyles = useStyles$2({
377
632
  classes
378
633
  }),
379
634
  {
@@ -413,8 +668,8 @@ var AvatarButton = /*#__PURE__*/react.forwardRef((_ref, ref) => {
413
668
  });
414
669
  if (process.env.NODE_ENV !== "production") AvatarButton.displayName = "AvatarButton";
415
670
 
416
- var _excluded$3 = ["hint", "size", "error", "classes", "className", "children", "endIcon", "startIcon", "disabled"];
417
- var useStyles$2 = /*#__PURE__*/styles.makeStyles(theme => ({
671
+ var _excluded$4 = ["hint", "size", "error", "classes", "className", "children", "endIcon", "startIcon", "disabled"];
672
+ var useStyles$3 = /*#__PURE__*/styles.makeStyles(theme => ({
418
673
  root: {
419
674
  width: '100%',
420
675
  display: 'flex',
@@ -485,7 +740,7 @@ var useStyles$2 = /*#__PURE__*/styles.makeStyles(theme => ({
485
740
  }), {
486
741
  name: 'SD-CardButton'
487
742
  });
488
- var CardButton = /*#__PURE__*/react.forwardRef((_ref, ref) => {
743
+ var CardButton = /*#__PURE__*/React.forwardRef((_ref, ref) => {
489
744
  var {
490
745
  hint,
491
746
  size,
@@ -497,9 +752,9 @@ var CardButton = /*#__PURE__*/react.forwardRef((_ref, ref) => {
497
752
  startIcon,
498
753
  disabled
499
754
  } = _ref,
500
- props = _objectWithoutProperties(_ref, _excluded$3);
755
+ props = _objectWithoutProperties(_ref, _excluded$4);
501
756
 
502
- var styles = useStyles$2({
757
+ var styles = useStyles$3({
503
758
  classes
504
759
  });
505
760
  return /*#__PURE__*/jsxRuntime.jsx(core.ButtonBase, _objectSpread(_objectSpread({}, props), {}, {
@@ -536,8 +791,8 @@ var CardButton = /*#__PURE__*/react.forwardRef((_ref, ref) => {
536
791
  });
537
792
  if (process.env.NODE_ENV !== "production") CardButton.displayName = "CardButton";
538
793
 
539
- var _excluded$4 = ["label", "error", "checked", "onBlur", "onChange", "helperText", "FormControlLabelProps"];
540
- var CheckboxField = /*#__PURE__*/react.forwardRef((_ref, ref) => {
794
+ var _excluded$5 = ["label", "error", "checked", "onBlur", "onChange", "helperText", "FormControlLabelProps"];
795
+ var CheckboxField = /*#__PURE__*/React.forwardRef((_ref, ref) => {
541
796
  var {
542
797
  label,
543
798
  error,
@@ -547,7 +802,7 @@ var CheckboxField = /*#__PURE__*/react.forwardRef((_ref, ref) => {
547
802
  helperText,
548
803
  FormControlLabelProps: formControlLabelProps
549
804
  } = _ref,
550
- props = _objectWithoutProperties(_ref, _excluded$4);
805
+ props = _objectWithoutProperties(_ref, _excluded$5);
551
806
 
552
807
  return /*#__PURE__*/jsxRuntime.jsxs(core.FormControl, {
553
808
  error: error,
@@ -568,8 +823,8 @@ var CheckboxField = /*#__PURE__*/react.forwardRef((_ref, ref) => {
568
823
  });
569
824
  if (process.env.NODE_ENV !== "production") CheckboxField.displayName = "CheckboxField";
570
825
 
571
- var _excluded$5 = ["FormGroupProps", "label", "FormLabelProps", "helperText", "FormHelperTextProps", "children"];
572
- var CheckboxGroupField = /*#__PURE__*/react.forwardRef((_ref, ref) => {
826
+ var _excluded$6 = ["FormGroupProps", "label", "FormLabelProps", "helperText", "FormHelperTextProps", "children"];
827
+ var CheckboxGroupField = /*#__PURE__*/React.forwardRef((_ref, ref) => {
573
828
  var {
574
829
  FormGroupProps: formGroupProps,
575
830
  label,
@@ -578,7 +833,7 @@ var CheckboxGroupField = /*#__PURE__*/react.forwardRef((_ref, ref) => {
578
833
  FormHelperTextProps: formHelperTextProps,
579
834
  children
580
835
  } = _ref,
581
- formControlProps = _objectWithoutProperties(_ref, _excluded$5);
836
+ formControlProps = _objectWithoutProperties(_ref, _excluded$6);
582
837
 
583
838
  return /*#__PURE__*/jsxRuntime.jsxs(core.FormControl, _objectSpread(_objectSpread({}, formControlProps), {}, {
584
839
  hiddenLabel: !label,
@@ -595,7 +850,7 @@ var CheckboxGroupField = /*#__PURE__*/react.forwardRef((_ref, ref) => {
595
850
  });
596
851
  if (process.env.NODE_ENV !== "production") CheckboxGroupField.displayName = "CheckboxGroupField";
597
852
 
598
- var Context = /*#__PURE__*/react.createContext({});
853
+ var Context = /*#__PURE__*/React.createContext({});
599
854
 
600
855
  function useBreakpoint(breakpoint) {
601
856
  return core.useMediaQuery(theme => theme.breakpoints.only(breakpoint));
@@ -612,7 +867,7 @@ function ResponsiveContextProvider(_ref) {
612
867
  var isLG = useBreakpoint('lg');
613
868
  var isXL = useBreakpoint('xl');
614
869
  var breakpoint = isXS ? 'xs' : isSM ? 'sm' : isMD ? 'md' : isLG ? 'lg' : isXL ? 'xl' : defaultBreakpoint;
615
- var ctx = react.useMemo(() => ({
870
+ var ctx = React.useMemo(() => ({
616
871
  breakpoint
617
872
  }), [breakpoint]);
618
873
  return /*#__PURE__*/jsxRuntime.jsx(Context.Provider, {
@@ -621,7 +876,7 @@ function ResponsiveContextProvider(_ref) {
621
876
  });
622
877
  }
623
878
  function useResponsiveContext() {
624
- return react.useContext(Context);
879
+ return React.useContext(Context);
625
880
  }
626
881
 
627
882
  function parseResponsiveProp(prop) {
@@ -716,7 +971,7 @@ var ColumnRoot = /*#__PURE__*/styled__default.div.withConfig({
716
971
  } = _ref;
717
972
  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
973
  });
719
- var Column = /*#__PURE__*/react.forwardRef((_ref2, ref) => {
974
+ var Column = /*#__PURE__*/React.forwardRef((_ref2, ref) => {
720
975
  var {
721
976
  children,
722
977
  'aria-label': ariaLabel,
@@ -817,7 +1072,7 @@ function renderChildren(node) {
817
1072
  return node;
818
1073
  }
819
1074
 
820
- var _excluded$6 = ["render", "onChange"];
1075
+ var _excluded$7 = ["render", "onChange"];
821
1076
  function useVisibilityObserver(node) {
822
1077
  var {
823
1078
  threshold = 0,
@@ -826,9 +1081,9 @@ function useVisibilityObserver(node) {
826
1081
  marginRight = '0px',
827
1082
  marginBottom = '0px'
828
1083
  } = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
829
- var [state, setState] = react.useState('undetermined');
1084
+ var [state, setState] = React.useState('undetermined');
830
1085
  var rootMargin = "".concat(marginTop, " ").concat(marginRight, " ").concat(marginBottom, " ").concat(marginLeft);
831
- react.useLayoutEffect(() => {
1086
+ React.useLayoutEffect(() => {
832
1087
  if (!node || !('IntersectionObserver' in window)) {
833
1088
  setState('undetermined');
834
1089
  return;
@@ -853,9 +1108,9 @@ function VisibilityObserver(_ref2) {
853
1108
  render,
854
1109
  onChange
855
1110
  } = _ref2,
856
- options = _objectWithoutProperties(_ref2, _excluded$6);
1111
+ options = _objectWithoutProperties(_ref2, _excluded$7);
857
1112
 
858
- var [node, setNode] = react.useState(null);
1113
+ var [node, setNode] = React.useState(null);
859
1114
  var visibility = useVisibilityObserver(node, options);
860
1115
  var children = render({
861
1116
  ref: setNode,
@@ -867,9 +1122,9 @@ function VisibilityObserver(_ref2) {
867
1122
  return renderChildren(children);
868
1123
  }
869
1124
 
870
- var _excluded$7 = ["title", "enterDelay"],
1125
+ var _excluded$8 = ["title", "enterDelay"],
871
1126
  _excluded2$1 = ["onClick", "children", "className", "disableUnderline", "TooltipProps"];
872
- var useStyles$3 = /*#__PURE__*/styles.makeStyles(theme => ({
1127
+ var useStyles$4 = /*#__PURE__*/styles.makeStyles(theme => ({
873
1128
  root: {
874
1129
  marginBottom: -1,
875
1130
  borderBottom: '1px dashed transparent',
@@ -888,7 +1143,7 @@ var useStyles$3 = /*#__PURE__*/styles.makeStyles(theme => ({
888
1143
  }), {
889
1144
  name: 'SD-OverflowText'
890
1145
  });
891
- var OverflowText = /*#__PURE__*/react.forwardRef((_ref, rootRef) => {
1146
+ var OverflowText = /*#__PURE__*/React.forwardRef((_ref, rootRef) => {
892
1147
  var {
893
1148
  onClick: _onClick,
894
1149
  children,
@@ -899,11 +1154,11 @@ var OverflowText = /*#__PURE__*/react.forwardRef((_ref, rootRef) => {
899
1154
  enterDelay = 1000
900
1155
  } = {}
901
1156
  } = _ref,
902
- tooltipProps = _objectWithoutProperties(_ref.TooltipProps, _excluded$7),
1157
+ tooltipProps = _objectWithoutProperties(_ref.TooltipProps, _excluded$8),
903
1158
  props = _objectWithoutProperties(_ref, _excluded2$1);
904
1159
 
905
- var [isOpen, setIsOpen] = react.useState(false);
906
- var styles = useStyles$3();
1160
+ var [isOpen, setIsOpen] = React.useState(false);
1161
+ var styles = useStyles$4();
907
1162
  return /*#__PURE__*/jsxRuntime.jsx(VisibilityObserver, {
908
1163
  render: _ref2 => {
909
1164
  var {
@@ -947,11 +1202,11 @@ function isEmptyReactNode(node) {
947
1202
 
948
1203
  var current = 0;
949
1204
  function useUID(defaultID) {
950
- var uid = react.useMemo(() => "uid_".concat(current += 1), []);
1205
+ var uid = React.useMemo(() => "uid_".concat(current += 1), []);
951
1206
  return defaultID || uid;
952
1207
  }
953
1208
 
954
- var _excluded$8 = ["size"];
1209
+ var _excluded$9 = ["size"];
955
1210
 
956
1211
  function sizeVariant(theme, mobileSpacing, desktopSpacing) {
957
1212
  return {
@@ -966,7 +1221,7 @@ function sizeVariant(theme, mobileSpacing, desktopSpacing) {
966
1221
  };
967
1222
  }
968
1223
 
969
- var useStyles$4 = /*#__PURE__*/styles.makeStyles(theme => ({
1224
+ var useStyles$5 = /*#__PURE__*/styles.makeStyles(theme => ({
970
1225
  list: sizeVariant(theme, 2, 1),
971
1226
  listSmall: sizeVariant(theme, 1, 0.5),
972
1227
  listLarge: sizeVariant(theme, 3, 2),
@@ -991,13 +1246,13 @@ var useStyles$4 = /*#__PURE__*/styles.makeStyles(theme => ({
991
1246
  // DescriptionList
992
1247
  //
993
1248
 
994
- var DescriptionList = /*#__PURE__*/react.forwardRef((_ref, ref) => {
1249
+ var DescriptionList = /*#__PURE__*/React.forwardRef((_ref, ref) => {
995
1250
  var {
996
1251
  size
997
1252
  } = _ref,
998
- props = _objectWithoutProperties(_ref, _excluded$8);
1253
+ props = _objectWithoutProperties(_ref, _excluded$9);
999
1254
 
1000
- var styles = useStyles$4();
1255
+ var styles = useStyles$5();
1001
1256
  return /*#__PURE__*/jsxRuntime.jsx("div", _objectSpread(_objectSpread({}, props), {}, {
1002
1257
  ref: ref,
1003
1258
  "data-size": size,
@@ -1011,7 +1266,7 @@ var DescriptionList = /*#__PURE__*/react.forwardRef((_ref, ref) => {
1011
1266
  //
1012
1267
 
1013
1268
  if (process.env.NODE_ENV !== "production") DescriptionList.displayName = "DescriptionList";
1014
- var DescriptionListItem = /*#__PURE__*/react.forwardRef((_ref2, ref) => {
1269
+ var DescriptionListItem = /*#__PURE__*/React.forwardRef((_ref2, ref) => {
1015
1270
  var _ref3, _contentTypographyPro, _contentTypographyPro2;
1016
1271
 
1017
1272
  var {
@@ -1023,7 +1278,7 @@ var DescriptionListItem = /*#__PURE__*/react.forwardRef((_ref2, ref) => {
1023
1278
  contentTypographyProps,
1024
1279
  fallback
1025
1280
  } = _ref2;
1026
- var styles = useStyles$4();
1281
+ var styles = useStyles$5();
1027
1282
  var labelID = useUID(labelTypographyProps === null || labelTypographyProps === void 0 ? void 0 : labelTypographyProps.id);
1028
1283
  var shouldRenderFallback = isEmptyReactNode(content);
1029
1284
  return /*#__PURE__*/jsxRuntime.jsxs("div", {
@@ -1051,8 +1306,8 @@ var DescriptionListItem = /*#__PURE__*/react.forwardRef((_ref2, ref) => {
1051
1306
  });
1052
1307
  if (process.env.NODE_ENV !== "production") DescriptionListItem.displayName = "DescriptionListItem";
1053
1308
 
1054
- var _excluded$9 = ["children", "className"];
1055
- var useStyles$5 = /*#__PURE__*/styles.makeStyles(theme => ({
1309
+ var _excluded$a = ["children", "className"];
1310
+ var useStyles$6 = /*#__PURE__*/styles.makeStyles(theme => ({
1056
1311
  appBar: {
1057
1312
  '&&': {
1058
1313
  bottom: 0,
@@ -1080,14 +1335,14 @@ var useStyles$5 = /*#__PURE__*/styles.makeStyles(theme => ({
1080
1335
  }), {
1081
1336
  name: 'SD-DrawerActions'
1082
1337
  });
1083
- var DrawerActions = /*#__PURE__*/react.forwardRef((_ref, appBarRef) => {
1338
+ var DrawerActions = /*#__PURE__*/React.forwardRef((_ref, appBarRef) => {
1084
1339
  var {
1085
1340
  children,
1086
1341
  className
1087
1342
  } = _ref,
1088
- props = _objectWithoutProperties(_ref, _excluded$9);
1343
+ props = _objectWithoutProperties(_ref, _excluded$a);
1089
1344
 
1090
- var styles = useStyles$5();
1345
+ var styles = useStyles$6();
1091
1346
  return /*#__PURE__*/jsxRuntime.jsx(VisibilityObserver, {
1092
1347
  render: _ref2 => {
1093
1348
  var {
@@ -1112,8 +1367,8 @@ var DrawerActions = /*#__PURE__*/react.forwardRef((_ref, appBarRef) => {
1112
1367
  });
1113
1368
  if (process.env.NODE_ENV !== "production") DrawerActions.displayName = "DrawerActions";
1114
1369
 
1115
- var _excluded$a = ["className"];
1116
- var useStyles$6 = /*#__PURE__*/styles.makeStyles(theme => ({
1370
+ var _excluded$b = ["className"];
1371
+ var useStyles$7 = /*#__PURE__*/styles.makeStyles(theme => ({
1117
1372
  root: {
1118
1373
  maxWidth: '100%',
1119
1374
  padding: theme.spacing(2, 3),
@@ -1124,13 +1379,13 @@ var useStyles$6 = /*#__PURE__*/styles.makeStyles(theme => ({
1124
1379
  }), {
1125
1380
  name: 'SD-DrawerContent'
1126
1381
  });
1127
- var DrawerContent = /*#__PURE__*/react.forwardRef((_ref, ref) => {
1382
+ var DrawerContent = /*#__PURE__*/React.forwardRef((_ref, ref) => {
1128
1383
  var {
1129
1384
  className
1130
1385
  } = _ref,
1131
- props = _objectWithoutProperties(_ref, _excluded$a);
1386
+ props = _objectWithoutProperties(_ref, _excluded$b);
1132
1387
 
1133
- var styles = useStyles$6();
1388
+ var styles = useStyles$7();
1134
1389
  return /*#__PURE__*/jsxRuntime.jsx("div", _objectSpread(_objectSpread({}, props), {}, {
1135
1390
  ref: ref,
1136
1391
  className: clsx(styles.root, className)
@@ -1138,7 +1393,7 @@ var DrawerContent = /*#__PURE__*/react.forwardRef((_ref, ref) => {
1138
1393
  });
1139
1394
  if (process.env.NODE_ENV !== "production") DrawerContent.displayName = "DrawerContent";
1140
1395
 
1141
- var _excluded$b = ["className"];
1396
+ var _excluded$c = ["className"];
1142
1397
 
1143
1398
  function listItemMixins(theme, space) {
1144
1399
  return {
@@ -1158,7 +1413,7 @@ function listItemMixins(theme, space) {
1158
1413
  };
1159
1414
  }
1160
1415
 
1161
- var useStyles$7 = /*#__PURE__*/styles.makeStyles(theme => ({
1416
+ var useStyles$8 = /*#__PURE__*/styles.makeStyles(theme => ({
1162
1417
  root: _objectSpread(_objectSpread({
1163
1418
  maxWidth: '100%'
1164
1419
  }, listItemMixins(theme, 3)), {}, {
@@ -1167,13 +1422,13 @@ var useStyles$7 = /*#__PURE__*/styles.makeStyles(theme => ({
1167
1422
  }), {
1168
1423
  name: 'SD-DrawerList'
1169
1424
  });
1170
- var DrawerList = /*#__PURE__*/react.forwardRef((_ref, ref) => {
1425
+ var DrawerList = /*#__PURE__*/React.forwardRef((_ref, ref) => {
1171
1426
  var {
1172
1427
  className
1173
1428
  } = _ref,
1174
- props = _objectWithoutProperties(_ref, _excluded$b);
1429
+ props = _objectWithoutProperties(_ref, _excluded$c);
1175
1430
 
1176
- var styles = useStyles$7();
1431
+ var styles = useStyles$8();
1177
1432
  return /*#__PURE__*/jsxRuntime.jsx(core.List, _objectSpread(_objectSpread({}, props), {}, {
1178
1433
  ref: ref,
1179
1434
  component: "div",
@@ -1182,8 +1437,8 @@ var DrawerList = /*#__PURE__*/react.forwardRef((_ref, ref) => {
1182
1437
  });
1183
1438
  if (process.env.NODE_ENV !== "production") DrawerList.displayName = "DrawerList";
1184
1439
 
1185
- var _excluded$c = ["title", "titleTypographyProps", "subtitle", "subtitleTypographyProps", "startAction", "endAction", "className"];
1186
- var useStyles$8 = /*#__PURE__*/styles.makeStyles(theme => ({
1440
+ var _excluded$d = ["title", "titleTypographyProps", "subtitle", "subtitleTypographyProps", "startAction", "endAction", "className"];
1441
+ var useStyles$9 = /*#__PURE__*/styles.makeStyles(theme => ({
1187
1442
  appBar: {
1188
1443
  '&&': {
1189
1444
  borderTop: 'none',
@@ -1221,7 +1476,7 @@ var useStyles$8 = /*#__PURE__*/styles.makeStyles(theme => ({
1221
1476
  }), {
1222
1477
  name: 'SD-DrawerTitle'
1223
1478
  });
1224
- var DrawerTitle = /*#__PURE__*/react.forwardRef((_ref, appBarRef) => {
1479
+ var DrawerTitle = /*#__PURE__*/React.forwardRef((_ref, appBarRef) => {
1225
1480
  var {
1226
1481
  title,
1227
1482
  titleTypographyProps,
@@ -1231,9 +1486,9 @@ var DrawerTitle = /*#__PURE__*/react.forwardRef((_ref, appBarRef) => {
1231
1486
  endAction,
1232
1487
  className
1233
1488
  } = _ref,
1234
- props = _objectWithoutProperties(_ref, _excluded$c);
1489
+ props = _objectWithoutProperties(_ref, _excluded$d);
1235
1490
 
1236
- var styles = useStyles$8();
1491
+ var styles = useStyles$9();
1237
1492
  return /*#__PURE__*/jsxRuntime.jsx(VisibilityObserver, {
1238
1493
  render: _ref2 => {
1239
1494
  var {
@@ -1285,19 +1540,19 @@ var DrawerTitle = /*#__PURE__*/react.forwardRef((_ref, appBarRef) => {
1285
1540
  });
1286
1541
  if (process.env.NODE_ENV !== "production") DrawerTitle.displayName = "DrawerTitle";
1287
1542
 
1288
- var _excluded$d = ["children", "alignItems"];
1543
+ var _excluded$e = ["children", "alignItems"];
1289
1544
  /**
1290
1545
  * @deprecated in favor of `Stack`.
1291
1546
  */
1292
1547
 
1293
- var GridStack = /*#__PURE__*/react.forwardRef((_ref, ref) => {
1548
+ var GridStack = /*#__PURE__*/React.forwardRef((_ref, ref) => {
1294
1549
  var {
1295
1550
  children,
1296
1551
  alignItems = 'stretch'
1297
1552
  } = _ref,
1298
- props = _objectWithoutProperties(_ref, _excluded$d);
1553
+ props = _objectWithoutProperties(_ref, _excluded$e);
1299
1554
 
1300
- var items = react.Children.toArray(children);
1555
+ var items = React.Children.toArray(children);
1301
1556
  return /*#__PURE__*/jsxRuntime.jsx(core.Grid, _objectSpread(_objectSpread({}, props), {}, {
1302
1557
  ref: ref,
1303
1558
  container: true,
@@ -1314,21 +1569,21 @@ var GridStack = /*#__PURE__*/react.forwardRef((_ref, ref) => {
1314
1569
  });
1315
1570
  if (process.env.NODE_ENV !== "production") GridStack.displayName = "GridStack";
1316
1571
 
1317
- var _excluded$e = ["children", "wrap", "justify", "alignItems"];
1572
+ var _excluded$f = ["children", "wrap", "justify", "alignItems"];
1318
1573
  /**
1319
1574
  * @deprecated in favor of `Inline` component.
1320
1575
  */
1321
1576
 
1322
- var InlineGrid = /*#__PURE__*/react.forwardRef((_ref, ref) => {
1577
+ var InlineGrid = /*#__PURE__*/React.forwardRef((_ref, ref) => {
1323
1578
  var {
1324
1579
  children,
1325
1580
  wrap = 'wrap',
1326
1581
  justify = 'flex-start',
1327
1582
  alignItems = 'flex-start'
1328
1583
  } = _ref,
1329
- props = _objectWithoutProperties(_ref, _excluded$e);
1584
+ props = _objectWithoutProperties(_ref, _excluded$f);
1330
1585
 
1331
- var items = react.Children.toArray(children);
1586
+ var items = React.Children.toArray(children);
1332
1587
  return /*#__PURE__*/jsxRuntime.jsx(core.Grid, _objectSpread(_objectSpread({}, props), {}, {
1333
1588
  ref: ref,
1334
1589
  wrap: wrap,
@@ -1344,20 +1599,9 @@ var InlineGrid = /*#__PURE__*/react.forwardRef((_ref, ref) => {
1344
1599
  });
1345
1600
  if (process.env.NODE_ENV !== "production") InlineGrid.displayName = "InlineGrid";
1346
1601
 
1347
- var _excluded$f = ["size", "square", "classes", "children", "className", "CardContentProps"],
1602
+ var _excluded$g = ["size", "square", "classes", "children", "className", "CardContentProps"],
1348
1603
  _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 => ({
1604
+ var useStyles$a = /*#__PURE__*/styles.makeStyles(theme => ({
1361
1605
  root: {
1362
1606
  '&$fullWidth': {
1363
1607
  borderRadius: 0,
@@ -1378,7 +1622,7 @@ var useStyles$9 = /*#__PURE__*/styles.makeStyles(theme => ({
1378
1622
  }), {
1379
1623
  name: 'SD-InfoCard'
1380
1624
  });
1381
- var InfoCard = /*#__PURE__*/react.forwardRef((_ref, _ref2) => {
1625
+ var InfoCard = /*#__PURE__*/React.forwardRef((_ref, _ref2) => {
1382
1626
  var {
1383
1627
  size,
1384
1628
  square,
@@ -1387,9 +1631,9 @@ var InfoCard = /*#__PURE__*/react.forwardRef((_ref, _ref2) => {
1387
1631
  className,
1388
1632
  CardContentProps: cardContentProps = {}
1389
1633
  } = _ref,
1390
- props = _objectWithoutProperties(_ref, _excluded$f);
1634
+ props = _objectWithoutProperties(_ref, _excluded$g);
1391
1635
 
1392
- var _useStyles = useStyles$9({
1636
+ var _useStyles = useStyles$a({
1393
1637
  classes
1394
1638
  }),
1395
1639
  {
@@ -1399,7 +1643,7 @@ var InfoCard = /*#__PURE__*/react.forwardRef((_ref, _ref2) => {
1399
1643
  } = _useStyles,
1400
1644
  styles = _objectWithoutProperties(_useStyles, _excluded2$2);
1401
1645
 
1402
- var [rootNode, setRootNode] = react.useState(null);
1646
+ var [rootNode, setRootNode] = React.useState(null);
1403
1647
  var clientRect = rootNode === null || rootNode === void 0 ? void 0 : rootNode.getBoundingClientRect();
1404
1648
  var isFullWidth = (clientRect === null || clientRect === void 0 ? void 0 : clientRect.width) === window.innerWidth;
1405
1649
  return /*#__PURE__*/jsxRuntime.jsx(core.Card, _objectSpread(_objectSpread({}, props), {}, {
@@ -1435,7 +1679,7 @@ var InlineRoot = /*#__PURE__*/styled__default.div.withConfig({
1435
1679
  } = _ref;
1436
1680
  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
1681
  });
1438
- var Inline = /*#__PURE__*/react.forwardRef((_ref2, ref) => {
1682
+ var Inline = /*#__PURE__*/React.forwardRef((_ref2, ref) => {
1439
1683
  var {
1440
1684
  children,
1441
1685
  'aria-label': ariaLabel,
@@ -1466,8 +1710,8 @@ var Inline = /*#__PURE__*/react.forwardRef((_ref2, ref) => {
1466
1710
  });
1467
1711
  if (process.env.NODE_ENV !== "production") Inline.displayName = "Inline";
1468
1712
 
1469
- var _excluded$g = ["label", "error", "checked", "onBlur", "onChange", "helperText", "FormControlLabelProps"];
1470
- var RadioField = /*#__PURE__*/react.forwardRef((_ref, ref) => {
1713
+ var _excluded$h = ["label", "error", "checked", "onBlur", "onChange", "helperText", "FormControlLabelProps"];
1714
+ var RadioField = /*#__PURE__*/React.forwardRef((_ref, ref) => {
1471
1715
  var {
1472
1716
  label,
1473
1717
  error,
@@ -1477,7 +1721,7 @@ var RadioField = /*#__PURE__*/react.forwardRef((_ref, ref) => {
1477
1721
  helperText,
1478
1722
  FormControlLabelProps: formControlLabelProps
1479
1723
  } = _ref,
1480
- props = _objectWithoutProperties(_ref, _excluded$g);
1724
+ props = _objectWithoutProperties(_ref, _excluded$h);
1481
1725
 
1482
1726
  return /*#__PURE__*/jsxRuntime.jsxs(core.FormControl, {
1483
1727
  error: error,
@@ -1497,8 +1741,8 @@ var RadioField = /*#__PURE__*/react.forwardRef((_ref, ref) => {
1497
1741
  });
1498
1742
  if (process.env.NODE_ENV !== "production") RadioField.displayName = "RadioField";
1499
1743
 
1500
- var _excluded$h = ["name", "value", "onChange", "RadioGroupProps", "label", "FormLabelProps", "helperText", "FormHelperTextProps", "children"];
1501
- var RadioGroupField = /*#__PURE__*/react.forwardRef((_ref, ref) => {
1744
+ var _excluded$i = ["name", "value", "onChange", "RadioGroupProps", "label", "FormLabelProps", "helperText", "FormHelperTextProps", "children"];
1745
+ var RadioGroupField = /*#__PURE__*/React.forwardRef((_ref, ref) => {
1502
1746
  var {
1503
1747
  name,
1504
1748
  value = '',
@@ -1510,7 +1754,7 @@ var RadioGroupField = /*#__PURE__*/react.forwardRef((_ref, ref) => {
1510
1754
  FormHelperTextProps: formHelperTextProps,
1511
1755
  children
1512
1756
  } = _ref,
1513
- formControlProps = _objectWithoutProperties(_ref, _excluded$h);
1757
+ formControlProps = _objectWithoutProperties(_ref, _excluded$i);
1514
1758
 
1515
1759
  return /*#__PURE__*/jsxRuntime.jsxs(core.FormControl, _objectSpread(_objectSpread({}, formControlProps), {}, {
1516
1760
  hiddenLabel: !label,
@@ -1545,9 +1789,9 @@ function useCollapseBreakpoint(collapseBreakpoint) {
1545
1789
  return breakpointIDX < collapseBreakpointIDX;
1546
1790
  }
1547
1791
 
1548
- var _excluded$i = ["action", "children", "onClose", "className", "classes", "variant"],
1792
+ var _excluded$j = ["action", "children", "onClose", "className", "classes", "variant"],
1549
1793
  _excluded2$3 = ["icon", "closeButton", "variantError", "variantSuccess"];
1550
- var useStyles$a = /*#__PURE__*/styles.makeStyles(theme => ({
1794
+ var useStyles$b = /*#__PURE__*/styles.makeStyles(theme => ({
1551
1795
  root: {
1552
1796
  color: exports.Color.White,
1553
1797
  backgroundColor: exports.Color.Dark500,
@@ -1581,7 +1825,7 @@ var useStyles$a = /*#__PURE__*/styles.makeStyles(theme => ({
1581
1825
  }), {
1582
1826
  name: 'SD-SnackbarContent'
1583
1827
  });
1584
- var SnackbarContent = /*#__PURE__*/react.forwardRef((_ref, ref) => {
1828
+ var SnackbarContent = /*#__PURE__*/React.forwardRef((_ref, ref) => {
1585
1829
  var {
1586
1830
  action,
1587
1831
  children,
@@ -1590,9 +1834,9 @@ var SnackbarContent = /*#__PURE__*/react.forwardRef((_ref, ref) => {
1590
1834
  classes,
1591
1835
  variant = 'default'
1592
1836
  } = _ref,
1593
- props = _objectWithoutProperties(_ref, _excluded$i);
1837
+ props = _objectWithoutProperties(_ref, _excluded$j);
1594
1838
 
1595
- var _useStyles = useStyles$a({
1839
+ var _useStyles = useStyles$b({
1596
1840
  classes
1597
1841
  }),
1598
1842
  {
@@ -1640,7 +1884,7 @@ var SnackbarContent = /*#__PURE__*/react.forwardRef((_ref, ref) => {
1640
1884
  });
1641
1885
  if (process.env.NODE_ENV !== "production") SnackbarContent.displayName = "SnackbarContent";
1642
1886
 
1643
- var _excluded$j = ["open", "action", "variant", "onClose", "children", "ContentProps", "hasCloseButton", "TransitionComponent"];
1887
+ var _excluded$k = ["open", "action", "variant", "onClose", "children", "ContentProps", "hasCloseButton", "TransitionComponent"];
1644
1888
 
1645
1889
  function SlideTransition(props) {
1646
1890
  return /*#__PURE__*/jsxRuntime.jsx(core.Slide, _objectSpread(_objectSpread({}, props), {}, {
@@ -1648,7 +1892,7 @@ function SlideTransition(props) {
1648
1892
  }));
1649
1893
  }
1650
1894
 
1651
- var Snackbar = /*#__PURE__*/react.forwardRef((_ref, ref) => {
1895
+ var Snackbar = /*#__PURE__*/React.forwardRef((_ref, ref) => {
1652
1896
  var {
1653
1897
  open,
1654
1898
  action,
@@ -1659,7 +1903,7 @@ var Snackbar = /*#__PURE__*/react.forwardRef((_ref, ref) => {
1659
1903
  hasCloseButton = onClose != null,
1660
1904
  TransitionComponent = SlideTransition
1661
1905
  } = _ref,
1662
- props = _objectWithoutProperties(_ref, _excluded$j);
1906
+ props = _objectWithoutProperties(_ref, _excluded$k);
1663
1907
 
1664
1908
  function handleClose(reason) {
1665
1909
  if (reason !== 'clickaway') {
@@ -1688,14 +1932,14 @@ var Snackbar = /*#__PURE__*/react.forwardRef((_ref, ref) => {
1688
1932
  });
1689
1933
  if (process.env.NODE_ENV !== "production") Snackbar.displayName = "Snackbar";
1690
1934
 
1691
- var _excluded$k = ["onClose", "variant", "key", "id", "autoHideDuration"];
1935
+ var _excluded$l = ["onClose", "variant", "key", "id", "autoHideDuration"];
1692
1936
 
1693
1937
  function warnContext() {
1694
1938
  // eslint-disable-next-line no-console
1695
1939
  console.log('`useSnackbarStack` is used outside of `SnackbarStackProvider`.');
1696
1940
  }
1697
1941
 
1698
- var Context$1 = /*#__PURE__*/react.createContext({
1942
+ var Context$1 = /*#__PURE__*/React.createContext({
1699
1943
  clearStack: warnContext,
1700
1944
  addSnackbar: () => {
1701
1945
  warnContext();
@@ -1703,7 +1947,7 @@ var Context$1 = /*#__PURE__*/react.createContext({
1703
1947
  }
1704
1948
  });
1705
1949
  function useSnackbarStack() {
1706
- return react.useContext(Context$1);
1950
+ return React.useContext(Context$1);
1707
1951
  }
1708
1952
  function SnackbarStackConsumer(_ref) {
1709
1953
  var {
@@ -1718,13 +1962,13 @@ function SnackbarStackProvider(_ref2) {
1718
1962
  var {
1719
1963
  children
1720
1964
  } = _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(() => {
1965
+ var [stack, setStack] = React.useState(new Map());
1966
+ var transientKeyRef = React.useRef(0);
1967
+ var getNextTransientKey = React.useCallback(() => TRANSIENT_KEY + String(transientKeyRef.current += 1), []);
1968
+ var clearStack = React.useCallback(() => {
1725
1969
  setStack(x => x.size === 0 ? x : new Map());
1726
1970
  }, []);
1727
- var addSnackbar = react.useCallback(function (message) {
1971
+ var addSnackbar = React.useCallback(function (message) {
1728
1972
  var _ref3 = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {},
1729
1973
  {
1730
1974
  onClose: _onClose,
@@ -1734,7 +1978,7 @@ function SnackbarStackProvider(_ref2) {
1734
1978
  id = String(key),
1735
1979
  autoHideDuration = 5000
1736
1980
  } = _ref3,
1737
- props = _objectWithoutProperties(_ref3, _excluded$k);
1981
+ props = _objectWithoutProperties(_ref3, _excluded$l);
1738
1982
 
1739
1983
  function removeSnackbar() {
1740
1984
  setStack(prev => {
@@ -1785,7 +2029,7 @@ function SnackbarStackProvider(_ref2) {
1785
2029
  open: false
1786
2030
  });
1787
2031
  }, [stack]);
1788
- var api = react.useMemo(() => ({
2032
+ var api = React.useMemo(() => ({
1789
2033
  clearStack,
1790
2034
  addSnackbar
1791
2035
  }), [clearStack, addSnackbar]);
@@ -1810,7 +2054,7 @@ var StackRoot = /*#__PURE__*/styled__default.div.withConfig({
1810
2054
  } = _ref;
1811
2055
  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
2056
  });
1813
- var Stack = /*#__PURE__*/react.forwardRef((_ref2, ref) => {
2057
+ var Stack = /*#__PURE__*/React.forwardRef((_ref2, ref) => {
1814
2058
  var {
1815
2059
  children,
1816
2060
  'aria-label': ariaLabel,
@@ -1831,8 +2075,8 @@ var Stack = /*#__PURE__*/react.forwardRef((_ref2, ref) => {
1831
2075
  });
1832
2076
  if (process.env.NODE_ENV !== "production") Stack.displayName = "Stack";
1833
2077
 
1834
- var _excluded$l = ["color", "variant", "children", "classes", "className", "noWrap", "fontWeight", "component"];
1835
- var useStyles$b = /*#__PURE__*/styles.makeStyles(theme => ({
2078
+ var _excluded$m = ["color", "variant", "children", "classes", "className", "noWrap", "fontWeight", "component"];
2079
+ var useStyles$c = /*#__PURE__*/styles.makeStyles(theme => ({
1836
2080
  root: {
1837
2081
  maxWidth: '100%',
1838
2082
  alignItems: 'center',
@@ -1904,7 +2148,7 @@ var useStyles$b = /*#__PURE__*/styles.makeStyles(theme => ({
1904
2148
  }), {
1905
2149
  name: 'SD-Tag'
1906
2150
  });
1907
- var Tag = /*#__PURE__*/react.forwardRef((_ref, ref) => {
2151
+ var Tag = /*#__PURE__*/React.forwardRef((_ref, ref) => {
1908
2152
  var {
1909
2153
  color,
1910
2154
  variant,
@@ -1915,9 +2159,9 @@ var Tag = /*#__PURE__*/react.forwardRef((_ref, ref) => {
1915
2159
  fontWeight = 'bold',
1916
2160
  component = 'div'
1917
2161
  } = _ref,
1918
- props = _objectWithoutProperties(_ref, _excluded$l);
2162
+ props = _objectWithoutProperties(_ref, _excluded$m);
1919
2163
 
1920
- var styles = useStyles$b({
2164
+ var styles = useStyles$c({
1921
2165
  classes
1922
2166
  });
1923
2167
  return /*#__PURE__*/jsxRuntime.jsx(core.Typography, _objectSpread(_objectSpread({}, props), {}, {
@@ -2887,7 +3131,7 @@ function overrideTabs(theme) {
2887
3131
  };
2888
3132
  }
2889
3133
 
2890
- var SelectIcon = /*#__PURE__*/react.forwardRef((props, ref) => /*#__PURE__*/jsxRuntime.jsx(core.SvgIcon, _objectSpread(_objectSpread({
3134
+ var SelectIcon = /*#__PURE__*/React.forwardRef((props, ref) => /*#__PURE__*/jsxRuntime.jsx(core.SvgIcon, _objectSpread(_objectSpread({
2891
3135
  ref: ref
2892
3136
  }, props), {}, {
2893
3137
  children: /*#__PURE__*/jsxRuntime.jsx("path", {
@@ -3364,7 +3608,7 @@ function columnVariant(columns) {
3364
3608
  };
3365
3609
  }
3366
3610
 
3367
- var useStyles$c = /*#__PURE__*/styles.makeStyles(theme => ({
3611
+ var useStyles$d = /*#__PURE__*/styles.makeStyles(theme => ({
3368
3612
  root: {
3369
3613
  paddingTop: PREVENT_COLLAPSE,
3370
3614
  '&:before': {
@@ -3402,13 +3646,13 @@ var useStyles$c = /*#__PURE__*/styles.makeStyles(theme => ({
3402
3646
  }), {
3403
3647
  name: 'SD-Tiles'
3404
3648
  });
3405
- var Tiles = /*#__PURE__*/react.forwardRef((_ref, ref) => {
3649
+ var Tiles = /*#__PURE__*/React.forwardRef((_ref, ref) => {
3406
3650
  var {
3407
3651
  children,
3408
3652
  space: spaceProp = 1,
3409
3653
  columns: columnsProp = 1
3410
3654
  } = _ref;
3411
- var styles = useStyles$c({});
3655
+ var styles = useStyles$d({});
3412
3656
  var space = useResponsivePropRecord(spaceProp);
3413
3657
  var columns = useResponsivePropRecord(columnsProp);
3414
3658
  return /*#__PURE__*/jsxRuntime.jsx("div", {
@@ -3428,25 +3672,8 @@ var Tiles = /*#__PURE__*/react.forwardRef((_ref, ref) => {
3428
3672
  });
3429
3673
  if (process.env.NODE_ENV !== "production") Tiles.displayName = "Tiles";
3430
3674
 
3431
- function mergeRefs() {
3432
- for (var _len = arguments.length, refs = new Array(_len), _key = 0; _key < _len; _key++) {
3433
- refs[_key] = arguments[_key];
3434
- }
3435
-
3436
- return node => {
3437
- refs.forEach(ref => {
3438
- if (ref) {
3439
- if (typeof ref === 'function') {
3440
- ref(node);
3441
- } else {
3442
- ref.current = node;
3443
- }
3444
- }
3445
- });
3446
- };
3447
- }
3448
-
3449
3675
  exports.AdaptiveToolbar = AdaptiveToolbar;
3676
+ exports.AdaptiveVerticalToolbar = AdaptiveVerticalToolbar;
3450
3677
  exports.AvatarButton = AvatarButton;
3451
3678
  exports.Button = Button;
3452
3679
  exports.CardButton = CardButton;
@@ -3460,6 +3687,7 @@ exports.DrawerActions = DrawerActions;
3460
3687
  exports.DrawerContent = DrawerContent;
3461
3688
  exports.DrawerList = DrawerList;
3462
3689
  exports.DrawerTitle = DrawerTitle;
3690
+ exports.DropdownButton = DropdownButton;
3463
3691
  exports.GridStack = GridStack;
3464
3692
  exports.InfoCard = InfoCard;
3465
3693
  exports.Inline = Inline;
@@ -3477,6 +3705,7 @@ exports.Tag = Tag;
3477
3705
  exports.ThemeProvider = ThemeProvider;
3478
3706
  exports.Tiles = Tiles;
3479
3707
  exports.VisibilityObserver = VisibilityObserver;
3708
+ exports.assignRef = assignRef;
3480
3709
  exports.isColorProp = isColorProp;
3481
3710
  exports.isEmptyReactNode = isEmptyReactNode;
3482
3711
  exports.mergeRefs = mergeRefs;
@@ -3486,6 +3715,7 @@ exports.parseResponsiveProp = parseResponsiveProp;
3486
3715
  exports.parseSpaceProp = parseSpaceProp;
3487
3716
  exports.renderChildren = renderChildren;
3488
3717
  exports.useCollapseBreakpoint = useCollapseBreakpoint;
3718
+ exports.useResizeObserver = useResizeObserver;
3489
3719
  exports.useResponsiveContext = useResponsiveContext;
3490
3720
  exports.useResponsiveProp = useResponsiveProp;
3491
3721
  exports.useResponsivePropRecord = useResponsivePropRecord;