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