@superdispatch/ui 0.15.0 → 0.16.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist-node/index.js +233 -106
- package/dist-node/index.js.map +1 -1
- package/dist-src/adaptive-toolbar/AdaptiveToolbar.js +36 -11
- package/dist-src/dropdown-button/DropdownButton.js +114 -0
- package/dist-src/index.js +1 -0
- package/dist-types/index.d.ts +17 -2
- package/dist-web/index.js +183 -57
- package/dist-web/index.js.map +1 -1
- package/package.json +3 -3
package/dist-web/index.js
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import _objectSpread from '@babel/runtime/helpers/objectSpread2';
|
|
2
2
|
import _objectWithoutProperties from '@babel/runtime/helpers/objectWithoutProperties';
|
|
3
3
|
import { ResizeObserver } from '@juggle/resize-observer';
|
|
4
|
-
import { Button as Button$1, CircularProgress, Toolbar, Grid, Typography, Menu,
|
|
4
|
+
import { Button as Button$1, CircularProgress, ButtonGroup, Popover, MenuList, Toolbar, Grid, MenuItem, Typography, Menu, Divider, ButtonBase, Avatar, FormControl, FormControlLabel, Checkbox, FormHelperText, FormLabel, FormGroup, useMediaQuery, Tooltip, SvgIcon, AppBar, List, Card, CardContent, Radio, RadioGroup, SnackbarContent as SnackbarContent$1, IconButton, Portal, Snackbar as Snackbar$1, Slide, CssBaseline, createTheme, createGenerateClassName } from '@material-ui/core';
|
|
5
5
|
import { MoreHoriz, Close, Warning, CheckCircle } from '@material-ui/icons';
|
|
6
6
|
import { makeStyles, StylesProvider, ThemeProvider as ThemeProvider$1 } from '@material-ui/styles';
|
|
7
7
|
import { useEventHandler, useDeepEqualValue, useValueObserver, useDeepEqualMemo, useConstant } from '@superdispatch/hooks';
|
|
8
|
-
import { forwardRef,
|
|
8
|
+
import { forwardRef, useState, useRef, useLayoutEffect, useMemo, useContext, createContext, Children, useCallback } from 'react';
|
|
9
9
|
import { jsx, jsxs, Fragment } from 'react/jsx-runtime';
|
|
10
|
-
import clsx from 'clsx';
|
|
11
10
|
import styled, { css, ThemeProvider as ThemeProvider$2 } from 'styled-components';
|
|
11
|
+
import clsx from 'clsx';
|
|
12
12
|
import flattenChildren from 'react-keyed-flatten-children';
|
|
13
13
|
import createBreakpoints from '@material-ui/core/styles/createBreakpoints';
|
|
14
14
|
|
|
@@ -42,7 +42,110 @@ var Button = /*#__PURE__*/forwardRef((_ref, ref) => {
|
|
|
42
42
|
});
|
|
43
43
|
if (process.env.NODE_ENV !== "production") Button.displayName = "Button";
|
|
44
44
|
|
|
45
|
-
var _excluded$1 = ["
|
|
45
|
+
var _excluded$1 = ["MenuListProps", "ButtonGroupProps", "children", "isLoading", "onClick", "label"];
|
|
46
|
+
|
|
47
|
+
function CaretDownIcon() {
|
|
48
|
+
return /*#__PURE__*/jsx("svg", {
|
|
49
|
+
viewBox: "0 0 8 4",
|
|
50
|
+
children: /*#__PURE__*/jsx("path", {
|
|
51
|
+
fill: "currentColor",
|
|
52
|
+
d: "M0.666687 0.666656L4.00002 3.99999L7.33335 0.666656H0.666687Z"
|
|
53
|
+
})
|
|
54
|
+
});
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
var CaretButton = /*#__PURE__*/styled(Button).withConfig({
|
|
58
|
+
displayName: "DropdownButton__CaretButton",
|
|
59
|
+
componentId: "SD__sc-8l84jm-0"
|
|
60
|
+
})(["width:auto;", ";"], _ref => {
|
|
61
|
+
var {
|
|
62
|
+
variant
|
|
63
|
+
} = _ref;
|
|
64
|
+
return variant === 'contained' && "border-left: 1px solid ".concat(Color.Blue500);
|
|
65
|
+
});
|
|
66
|
+
var DropdownButton = /*#__PURE__*/forwardRef((_ref2, ref) => {
|
|
67
|
+
var _anchorRef$current2;
|
|
68
|
+
|
|
69
|
+
var {
|
|
70
|
+
MenuListProps,
|
|
71
|
+
ButtonGroupProps,
|
|
72
|
+
children,
|
|
73
|
+
isLoading,
|
|
74
|
+
onClick,
|
|
75
|
+
label
|
|
76
|
+
} = _ref2,
|
|
77
|
+
buttonProps = _objectWithoutProperties(_ref2, _excluded$1);
|
|
78
|
+
|
|
79
|
+
var uid = useUID();
|
|
80
|
+
var [open, setOpen] = useState(false);
|
|
81
|
+
var anchorRef = useRef(null);
|
|
82
|
+
|
|
83
|
+
function handleClick(event) {
|
|
84
|
+
setOpen(false);
|
|
85
|
+
onClick === null || onClick === void 0 ? void 0 : onClick(event);
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
function handleToggle() {
|
|
89
|
+
setOpen(prevOpen => !prevOpen);
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
function handleClose(event) {
|
|
93
|
+
var _anchorRef$current;
|
|
94
|
+
|
|
95
|
+
if ((_anchorRef$current = anchorRef.current) !== null && _anchorRef$current !== void 0 && _anchorRef$current.contains(event.currentTarget)) {
|
|
96
|
+
return;
|
|
97
|
+
}
|
|
98
|
+
|
|
99
|
+
setOpen(false);
|
|
100
|
+
}
|
|
101
|
+
|
|
102
|
+
return /*#__PURE__*/jsxs(Fragment, {
|
|
103
|
+
children: [/*#__PURE__*/jsxs(ButtonGroup, _objectSpread(_objectSpread({}, ButtonGroupProps), {}, {
|
|
104
|
+
ref: mergeRefs(ButtonGroupProps === null || ButtonGroupProps === void 0 ? void 0 : ButtonGroupProps.ref, anchorRef),
|
|
105
|
+
fullWidth: (ButtonGroupProps === null || ButtonGroupProps === void 0 ? void 0 : ButtonGroupProps.fullWidth) || buttonProps.fullWidth,
|
|
106
|
+
children: [/*#__PURE__*/jsx(Button, _objectSpread(_objectSpread({
|
|
107
|
+
ref: ref,
|
|
108
|
+
onClick: handleClick,
|
|
109
|
+
disabled: isLoading,
|
|
110
|
+
isLoading: isLoading
|
|
111
|
+
}, buttonProps), {}, {
|
|
112
|
+
children: label
|
|
113
|
+
})), /*#__PURE__*/jsx(CaretButton, {
|
|
114
|
+
onClick: handleToggle,
|
|
115
|
+
disabled: isLoading,
|
|
116
|
+
color: buttonProps.color,
|
|
117
|
+
variant: buttonProps.variant,
|
|
118
|
+
"aria-haspopup": "menu",
|
|
119
|
+
"aria-controls": open ? uid : undefined,
|
|
120
|
+
"aria-expanded": open ? 'true' : undefined,
|
|
121
|
+
children: /*#__PURE__*/jsx(CaretDownIcon, {})
|
|
122
|
+
})]
|
|
123
|
+
})), /*#__PURE__*/jsx(Popover, {
|
|
124
|
+
open: open,
|
|
125
|
+
onClose: handleClose,
|
|
126
|
+
anchorEl: anchorRef.current,
|
|
127
|
+
anchorOrigin: {
|
|
128
|
+
vertical: 'bottom',
|
|
129
|
+
horizontal: 'left'
|
|
130
|
+
},
|
|
131
|
+
children: /*#__PURE__*/jsx("div", {
|
|
132
|
+
style: {
|
|
133
|
+
minWidth: (_anchorRef$current2 = anchorRef.current) === null || _anchorRef$current2 === void 0 ? void 0 : _anchorRef$current2.clientWidth
|
|
134
|
+
},
|
|
135
|
+
children: /*#__PURE__*/jsx(MenuList, _objectSpread(_objectSpread({}, MenuListProps), {}, {
|
|
136
|
+
id: uid,
|
|
137
|
+
onClick: () => {
|
|
138
|
+
setOpen(false);
|
|
139
|
+
},
|
|
140
|
+
children: children
|
|
141
|
+
}))
|
|
142
|
+
})
|
|
143
|
+
})]
|
|
144
|
+
});
|
|
145
|
+
});
|
|
146
|
+
if (process.env.NODE_ENV !== "production") DropdownButton.displayName = "DropdownButton";
|
|
147
|
+
|
|
148
|
+
var _excluded$2 = ["items"];
|
|
46
149
|
|
|
47
150
|
function useResizeObserver(node, observer) {
|
|
48
151
|
var handler = useEventHandler(observer);
|
|
@@ -73,7 +176,7 @@ var AdaptiveToolbar = /*#__PURE__*/forwardRef((_ref, ref) => {
|
|
|
73
176
|
var {
|
|
74
177
|
items
|
|
75
178
|
} = _ref,
|
|
76
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
179
|
+
props = _objectWithoutProperties(_ref, _excluded$2);
|
|
77
180
|
|
|
78
181
|
var styles = useStyles();
|
|
79
182
|
var itemNodes = useRef([]);
|
|
@@ -116,7 +219,6 @@ var AdaptiveToolbar = /*#__PURE__*/forwardRef((_ref, ref) => {
|
|
|
116
219
|
children: /*#__PURE__*/jsxs(Grid, {
|
|
117
220
|
container: true,
|
|
118
221
|
spacing: 1,
|
|
119
|
-
wrap: "nowrap",
|
|
120
222
|
ref: setRootNode,
|
|
121
223
|
children: [/*#__PURE__*/jsx(Grid, {
|
|
122
224
|
item: true,
|
|
@@ -131,7 +233,16 @@ var AdaptiveToolbar = /*#__PURE__*/forwardRef((_ref, ref) => {
|
|
|
131
233
|
ref: node => {
|
|
132
234
|
itemNodes.current[idx] = node;
|
|
133
235
|
},
|
|
134
|
-
children: /*#__PURE__*/jsx(
|
|
236
|
+
children: item.dropdown ? /*#__PURE__*/jsx(DropdownButton, _objectSpread(_objectSpread({
|
|
237
|
+
type: "button",
|
|
238
|
+
onClick: item.onClick,
|
|
239
|
+
label: item.label
|
|
240
|
+
}, item.ButtonProps), {}, {
|
|
241
|
+
children: item.dropdown.map(dropdownItem => /*#__PURE__*/jsx(MenuItem, {
|
|
242
|
+
onClick: dropdownItem.onClick,
|
|
243
|
+
children: dropdownItem.label
|
|
244
|
+
}, dropdownItem.key))
|
|
245
|
+
})) : /*#__PURE__*/jsx(Button, _objectSpread(_objectSpread({
|
|
135
246
|
type: "button",
|
|
136
247
|
onClick: item.onClick
|
|
137
248
|
}, item.ButtonProps), {}, {
|
|
@@ -162,15 +273,30 @@ var AdaptiveToolbar = /*#__PURE__*/forwardRef((_ref, ref) => {
|
|
|
162
273
|
onClose: () => {
|
|
163
274
|
setMenuButtonRef(undefined);
|
|
164
275
|
},
|
|
165
|
-
children: menuItems.map(item =>
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
276
|
+
children: menuItems.map((item, index, arr) => {
|
|
277
|
+
var _item$dropdown;
|
|
278
|
+
|
|
279
|
+
var next = arr[index + 1];
|
|
280
|
+
return /*#__PURE__*/jsxs(Fragment, {
|
|
281
|
+
children: [/*#__PURE__*/jsx(MenuItem, {
|
|
282
|
+
onClick: event => {
|
|
283
|
+
var _item$onClick;
|
|
284
|
+
|
|
285
|
+
(_item$onClick = item.onClick) === null || _item$onClick === void 0 ? void 0 : _item$onClick.call(item, event);
|
|
286
|
+
setMenuButtonRef(undefined);
|
|
287
|
+
},
|
|
288
|
+
children: item.label
|
|
289
|
+
}, item.key), (_item$dropdown = item.dropdown) === null || _item$dropdown === void 0 ? void 0 : _item$dropdown.map(dropdownItem => /*#__PURE__*/jsx(MenuItem, {
|
|
290
|
+
onClick: event => {
|
|
291
|
+
var _dropdownItem$onClick;
|
|
292
|
+
|
|
293
|
+
(_dropdownItem$onClick = dropdownItem.onClick) === null || _dropdownItem$onClick === void 0 ? void 0 : _dropdownItem$onClick.call(dropdownItem, event);
|
|
294
|
+
setMenuButtonRef(undefined);
|
|
295
|
+
},
|
|
296
|
+
children: dropdownItem.label
|
|
297
|
+
}, dropdownItem.key)), next && item.groupKey !== next.groupKey && /*#__PURE__*/jsx(Divider, {})]
|
|
298
|
+
});
|
|
299
|
+
})
|
|
174
300
|
})]
|
|
175
301
|
})]
|
|
176
302
|
})
|
|
@@ -256,7 +382,7 @@ function isColorProp(name) {
|
|
|
256
382
|
return typeof name == 'string' && Object.prototype.hasOwnProperty.call(Color, name);
|
|
257
383
|
}
|
|
258
384
|
|
|
259
|
-
var _excluded$
|
|
385
|
+
var _excluded$3 = ["size", "icon", "isLoading", "classes", "disabled", "avatarRef", "className", "alt", "imgProps", "sizes", "src", "srcSet", "variant", "children"],
|
|
260
386
|
_excluded2 = ["button", "overlay", "progress", "withIcon", "sizeLarge"];
|
|
261
387
|
var useStyles$1 = /*#__PURE__*/makeStyles(theme => {
|
|
262
388
|
var sm = theme.breakpoints.up('sm');
|
|
@@ -366,7 +492,7 @@ var AvatarButton = /*#__PURE__*/forwardRef((_ref, ref) => {
|
|
|
366
492
|
variant,
|
|
367
493
|
children
|
|
368
494
|
} = _ref,
|
|
369
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
495
|
+
props = _objectWithoutProperties(_ref, _excluded$3);
|
|
370
496
|
|
|
371
497
|
var _useStyles = useStyles$1({
|
|
372
498
|
classes
|
|
@@ -408,7 +534,7 @@ var AvatarButton = /*#__PURE__*/forwardRef((_ref, ref) => {
|
|
|
408
534
|
});
|
|
409
535
|
if (process.env.NODE_ENV !== "production") AvatarButton.displayName = "AvatarButton";
|
|
410
536
|
|
|
411
|
-
var _excluded$
|
|
537
|
+
var _excluded$4 = ["hint", "size", "error", "classes", "className", "children", "endIcon", "startIcon", "disabled"];
|
|
412
538
|
var useStyles$2 = /*#__PURE__*/makeStyles(theme => ({
|
|
413
539
|
root: {
|
|
414
540
|
width: '100%',
|
|
@@ -492,7 +618,7 @@ var CardButton = /*#__PURE__*/forwardRef((_ref, ref) => {
|
|
|
492
618
|
startIcon,
|
|
493
619
|
disabled
|
|
494
620
|
} = _ref,
|
|
495
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
621
|
+
props = _objectWithoutProperties(_ref, _excluded$4);
|
|
496
622
|
|
|
497
623
|
var styles = useStyles$2({
|
|
498
624
|
classes
|
|
@@ -531,7 +657,7 @@ var CardButton = /*#__PURE__*/forwardRef((_ref, ref) => {
|
|
|
531
657
|
});
|
|
532
658
|
if (process.env.NODE_ENV !== "production") CardButton.displayName = "CardButton";
|
|
533
659
|
|
|
534
|
-
var _excluded$
|
|
660
|
+
var _excluded$5 = ["label", "error", "checked", "onBlur", "onChange", "helperText", "FormControlLabelProps"];
|
|
535
661
|
var CheckboxField = /*#__PURE__*/forwardRef((_ref, ref) => {
|
|
536
662
|
var {
|
|
537
663
|
label,
|
|
@@ -542,7 +668,7 @@ var CheckboxField = /*#__PURE__*/forwardRef((_ref, ref) => {
|
|
|
542
668
|
helperText,
|
|
543
669
|
FormControlLabelProps: formControlLabelProps
|
|
544
670
|
} = _ref,
|
|
545
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
671
|
+
props = _objectWithoutProperties(_ref, _excluded$5);
|
|
546
672
|
|
|
547
673
|
return /*#__PURE__*/jsxs(FormControl, {
|
|
548
674
|
error: error,
|
|
@@ -563,7 +689,7 @@ var CheckboxField = /*#__PURE__*/forwardRef((_ref, ref) => {
|
|
|
563
689
|
});
|
|
564
690
|
if (process.env.NODE_ENV !== "production") CheckboxField.displayName = "CheckboxField";
|
|
565
691
|
|
|
566
|
-
var _excluded$
|
|
692
|
+
var _excluded$6 = ["FormGroupProps", "label", "FormLabelProps", "helperText", "FormHelperTextProps", "children"];
|
|
567
693
|
var CheckboxGroupField = /*#__PURE__*/forwardRef((_ref, ref) => {
|
|
568
694
|
var {
|
|
569
695
|
FormGroupProps: formGroupProps,
|
|
@@ -573,7 +699,7 @@ var CheckboxGroupField = /*#__PURE__*/forwardRef((_ref, ref) => {
|
|
|
573
699
|
FormHelperTextProps: formHelperTextProps,
|
|
574
700
|
children
|
|
575
701
|
} = _ref,
|
|
576
|
-
formControlProps = _objectWithoutProperties(_ref, _excluded$
|
|
702
|
+
formControlProps = _objectWithoutProperties(_ref, _excluded$6);
|
|
577
703
|
|
|
578
704
|
return /*#__PURE__*/jsxs(FormControl, _objectSpread(_objectSpread({}, formControlProps), {}, {
|
|
579
705
|
hiddenLabel: !label,
|
|
@@ -812,7 +938,7 @@ function renderChildren(node) {
|
|
|
812
938
|
return node;
|
|
813
939
|
}
|
|
814
940
|
|
|
815
|
-
var _excluded$
|
|
941
|
+
var _excluded$7 = ["render", "onChange"];
|
|
816
942
|
function useVisibilityObserver(node) {
|
|
817
943
|
var {
|
|
818
944
|
threshold = 0,
|
|
@@ -848,7 +974,7 @@ function VisibilityObserver(_ref2) {
|
|
|
848
974
|
render,
|
|
849
975
|
onChange
|
|
850
976
|
} = _ref2,
|
|
851
|
-
options = _objectWithoutProperties(_ref2, _excluded$
|
|
977
|
+
options = _objectWithoutProperties(_ref2, _excluded$7);
|
|
852
978
|
|
|
853
979
|
var [node, setNode] = useState(null);
|
|
854
980
|
var visibility = useVisibilityObserver(node, options);
|
|
@@ -862,7 +988,7 @@ function VisibilityObserver(_ref2) {
|
|
|
862
988
|
return renderChildren(children);
|
|
863
989
|
}
|
|
864
990
|
|
|
865
|
-
var _excluded$
|
|
991
|
+
var _excluded$8 = ["title", "enterDelay"],
|
|
866
992
|
_excluded2$1 = ["onClick", "children", "className", "disableUnderline", "TooltipProps"];
|
|
867
993
|
var useStyles$3 = /*#__PURE__*/makeStyles(theme => ({
|
|
868
994
|
root: {
|
|
@@ -894,7 +1020,7 @@ var OverflowText = /*#__PURE__*/forwardRef((_ref, rootRef) => {
|
|
|
894
1020
|
enterDelay = 1000
|
|
895
1021
|
} = {}
|
|
896
1022
|
} = _ref,
|
|
897
|
-
tooltipProps = _objectWithoutProperties(_ref.TooltipProps, _excluded$
|
|
1023
|
+
tooltipProps = _objectWithoutProperties(_ref.TooltipProps, _excluded$8),
|
|
898
1024
|
props = _objectWithoutProperties(_ref, _excluded2$1);
|
|
899
1025
|
|
|
900
1026
|
var [isOpen, setIsOpen] = useState(false);
|
|
@@ -946,7 +1072,7 @@ function useUID(defaultID) {
|
|
|
946
1072
|
return defaultID || uid;
|
|
947
1073
|
}
|
|
948
1074
|
|
|
949
|
-
var _excluded$
|
|
1075
|
+
var _excluded$9 = ["size"];
|
|
950
1076
|
|
|
951
1077
|
function sizeVariant(theme, mobileSpacing, desktopSpacing) {
|
|
952
1078
|
return {
|
|
@@ -990,7 +1116,7 @@ var DescriptionList = /*#__PURE__*/forwardRef((_ref, ref) => {
|
|
|
990
1116
|
var {
|
|
991
1117
|
size
|
|
992
1118
|
} = _ref,
|
|
993
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
1119
|
+
props = _objectWithoutProperties(_ref, _excluded$9);
|
|
994
1120
|
|
|
995
1121
|
var styles = useStyles$4();
|
|
996
1122
|
return /*#__PURE__*/jsx("div", _objectSpread(_objectSpread({}, props), {}, {
|
|
@@ -1046,7 +1172,7 @@ var DescriptionListItem = /*#__PURE__*/forwardRef((_ref2, ref) => {
|
|
|
1046
1172
|
});
|
|
1047
1173
|
if (process.env.NODE_ENV !== "production") DescriptionListItem.displayName = "DescriptionListItem";
|
|
1048
1174
|
|
|
1049
|
-
var _excluded$
|
|
1175
|
+
var _excluded$a = ["children", "className"];
|
|
1050
1176
|
var useStyles$5 = /*#__PURE__*/makeStyles(theme => ({
|
|
1051
1177
|
appBar: {
|
|
1052
1178
|
'&&': {
|
|
@@ -1080,7 +1206,7 @@ var DrawerActions = /*#__PURE__*/forwardRef((_ref, appBarRef) => {
|
|
|
1080
1206
|
children,
|
|
1081
1207
|
className
|
|
1082
1208
|
} = _ref,
|
|
1083
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
1209
|
+
props = _objectWithoutProperties(_ref, _excluded$a);
|
|
1084
1210
|
|
|
1085
1211
|
var styles = useStyles$5();
|
|
1086
1212
|
return /*#__PURE__*/jsx(VisibilityObserver, {
|
|
@@ -1107,7 +1233,7 @@ var DrawerActions = /*#__PURE__*/forwardRef((_ref, appBarRef) => {
|
|
|
1107
1233
|
});
|
|
1108
1234
|
if (process.env.NODE_ENV !== "production") DrawerActions.displayName = "DrawerActions";
|
|
1109
1235
|
|
|
1110
|
-
var _excluded$
|
|
1236
|
+
var _excluded$b = ["className"];
|
|
1111
1237
|
var useStyles$6 = /*#__PURE__*/makeStyles(theme => ({
|
|
1112
1238
|
root: {
|
|
1113
1239
|
maxWidth: '100%',
|
|
@@ -1123,7 +1249,7 @@ var DrawerContent = /*#__PURE__*/forwardRef((_ref, ref) => {
|
|
|
1123
1249
|
var {
|
|
1124
1250
|
className
|
|
1125
1251
|
} = _ref,
|
|
1126
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
1252
|
+
props = _objectWithoutProperties(_ref, _excluded$b);
|
|
1127
1253
|
|
|
1128
1254
|
var styles = useStyles$6();
|
|
1129
1255
|
return /*#__PURE__*/jsx("div", _objectSpread(_objectSpread({}, props), {}, {
|
|
@@ -1133,7 +1259,7 @@ var DrawerContent = /*#__PURE__*/forwardRef((_ref, ref) => {
|
|
|
1133
1259
|
});
|
|
1134
1260
|
if (process.env.NODE_ENV !== "production") DrawerContent.displayName = "DrawerContent";
|
|
1135
1261
|
|
|
1136
|
-
var _excluded$
|
|
1262
|
+
var _excluded$c = ["className"];
|
|
1137
1263
|
|
|
1138
1264
|
function listItemMixins(theme, space) {
|
|
1139
1265
|
return {
|
|
@@ -1166,7 +1292,7 @@ var DrawerList = /*#__PURE__*/forwardRef((_ref, ref) => {
|
|
|
1166
1292
|
var {
|
|
1167
1293
|
className
|
|
1168
1294
|
} = _ref,
|
|
1169
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
1295
|
+
props = _objectWithoutProperties(_ref, _excluded$c);
|
|
1170
1296
|
|
|
1171
1297
|
var styles = useStyles$7();
|
|
1172
1298
|
return /*#__PURE__*/jsx(List, _objectSpread(_objectSpread({}, props), {}, {
|
|
@@ -1177,7 +1303,7 @@ var DrawerList = /*#__PURE__*/forwardRef((_ref, ref) => {
|
|
|
1177
1303
|
});
|
|
1178
1304
|
if (process.env.NODE_ENV !== "production") DrawerList.displayName = "DrawerList";
|
|
1179
1305
|
|
|
1180
|
-
var _excluded$
|
|
1306
|
+
var _excluded$d = ["title", "titleTypographyProps", "subtitle", "subtitleTypographyProps", "startAction", "endAction", "className"];
|
|
1181
1307
|
var useStyles$8 = /*#__PURE__*/makeStyles(theme => ({
|
|
1182
1308
|
appBar: {
|
|
1183
1309
|
'&&': {
|
|
@@ -1226,7 +1352,7 @@ var DrawerTitle = /*#__PURE__*/forwardRef((_ref, appBarRef) => {
|
|
|
1226
1352
|
endAction,
|
|
1227
1353
|
className
|
|
1228
1354
|
} = _ref,
|
|
1229
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
1355
|
+
props = _objectWithoutProperties(_ref, _excluded$d);
|
|
1230
1356
|
|
|
1231
1357
|
var styles = useStyles$8();
|
|
1232
1358
|
return /*#__PURE__*/jsx(VisibilityObserver, {
|
|
@@ -1280,7 +1406,7 @@ var DrawerTitle = /*#__PURE__*/forwardRef((_ref, appBarRef) => {
|
|
|
1280
1406
|
});
|
|
1281
1407
|
if (process.env.NODE_ENV !== "production") DrawerTitle.displayName = "DrawerTitle";
|
|
1282
1408
|
|
|
1283
|
-
var _excluded$
|
|
1409
|
+
var _excluded$e = ["children", "alignItems"];
|
|
1284
1410
|
|
|
1285
1411
|
/**
|
|
1286
1412
|
* @deprecated in favor of `Stack`.
|
|
@@ -1290,7 +1416,7 @@ var GridStack = /*#__PURE__*/forwardRef((_ref, ref) => {
|
|
|
1290
1416
|
children,
|
|
1291
1417
|
alignItems = 'stretch'
|
|
1292
1418
|
} = _ref,
|
|
1293
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
1419
|
+
props = _objectWithoutProperties(_ref, _excluded$e);
|
|
1294
1420
|
|
|
1295
1421
|
var items = Children.toArray(children);
|
|
1296
1422
|
return /*#__PURE__*/jsx(Grid, _objectSpread(_objectSpread({}, props), {}, {
|
|
@@ -1309,7 +1435,7 @@ var GridStack = /*#__PURE__*/forwardRef((_ref, ref) => {
|
|
|
1309
1435
|
});
|
|
1310
1436
|
if (process.env.NODE_ENV !== "production") GridStack.displayName = "GridStack";
|
|
1311
1437
|
|
|
1312
|
-
var _excluded$
|
|
1438
|
+
var _excluded$f = ["children", "wrap", "justify", "alignItems"];
|
|
1313
1439
|
|
|
1314
1440
|
/**
|
|
1315
1441
|
* @deprecated in favor of `Inline` component.
|
|
@@ -1321,7 +1447,7 @@ var InlineGrid = /*#__PURE__*/forwardRef((_ref, ref) => {
|
|
|
1321
1447
|
justify = 'flex-start',
|
|
1322
1448
|
alignItems = 'flex-start'
|
|
1323
1449
|
} = _ref,
|
|
1324
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
1450
|
+
props = _objectWithoutProperties(_ref, _excluded$f);
|
|
1325
1451
|
|
|
1326
1452
|
var items = Children.toArray(children);
|
|
1327
1453
|
return /*#__PURE__*/jsx(Grid, _objectSpread(_objectSpread({}, props), {}, {
|
|
@@ -1360,7 +1486,7 @@ function assignRef(ref, value) {
|
|
|
1360
1486
|
}
|
|
1361
1487
|
}
|
|
1362
1488
|
|
|
1363
|
-
var _excluded$
|
|
1489
|
+
var _excluded$g = ["size", "square", "classes", "children", "className", "CardContentProps"],
|
|
1364
1490
|
_excluded2$2 = ["content", "sizeLarge", "fullWidth"];
|
|
1365
1491
|
var useStyles$9 = /*#__PURE__*/makeStyles(theme => ({
|
|
1366
1492
|
root: {
|
|
@@ -1392,7 +1518,7 @@ var InfoCard = /*#__PURE__*/forwardRef((_ref, _ref2) => {
|
|
|
1392
1518
|
className,
|
|
1393
1519
|
CardContentProps: cardContentProps = {}
|
|
1394
1520
|
} = _ref,
|
|
1395
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
1521
|
+
props = _objectWithoutProperties(_ref, _excluded$g);
|
|
1396
1522
|
|
|
1397
1523
|
var _useStyles = useStyles$9({
|
|
1398
1524
|
classes
|
|
@@ -1471,7 +1597,7 @@ var Inline = /*#__PURE__*/forwardRef((_ref2, ref) => {
|
|
|
1471
1597
|
});
|
|
1472
1598
|
if (process.env.NODE_ENV !== "production") Inline.displayName = "Inline";
|
|
1473
1599
|
|
|
1474
|
-
var _excluded$
|
|
1600
|
+
var _excluded$h = ["label", "error", "checked", "onBlur", "onChange", "helperText", "FormControlLabelProps"];
|
|
1475
1601
|
var RadioField = /*#__PURE__*/forwardRef((_ref, ref) => {
|
|
1476
1602
|
var {
|
|
1477
1603
|
label,
|
|
@@ -1482,7 +1608,7 @@ var RadioField = /*#__PURE__*/forwardRef((_ref, ref) => {
|
|
|
1482
1608
|
helperText,
|
|
1483
1609
|
FormControlLabelProps: formControlLabelProps
|
|
1484
1610
|
} = _ref,
|
|
1485
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
1611
|
+
props = _objectWithoutProperties(_ref, _excluded$h);
|
|
1486
1612
|
|
|
1487
1613
|
return /*#__PURE__*/jsxs(FormControl, {
|
|
1488
1614
|
error: error,
|
|
@@ -1502,7 +1628,7 @@ var RadioField = /*#__PURE__*/forwardRef((_ref, ref) => {
|
|
|
1502
1628
|
});
|
|
1503
1629
|
if (process.env.NODE_ENV !== "production") RadioField.displayName = "RadioField";
|
|
1504
1630
|
|
|
1505
|
-
var _excluded$
|
|
1631
|
+
var _excluded$i = ["name", "value", "onChange", "RadioGroupProps", "label", "FormLabelProps", "helperText", "FormHelperTextProps", "children"];
|
|
1506
1632
|
var RadioGroupField = /*#__PURE__*/forwardRef((_ref, ref) => {
|
|
1507
1633
|
var {
|
|
1508
1634
|
name,
|
|
@@ -1515,7 +1641,7 @@ var RadioGroupField = /*#__PURE__*/forwardRef((_ref, ref) => {
|
|
|
1515
1641
|
FormHelperTextProps: formHelperTextProps,
|
|
1516
1642
|
children
|
|
1517
1643
|
} = _ref,
|
|
1518
|
-
formControlProps = _objectWithoutProperties(_ref, _excluded$
|
|
1644
|
+
formControlProps = _objectWithoutProperties(_ref, _excluded$i);
|
|
1519
1645
|
|
|
1520
1646
|
return /*#__PURE__*/jsxs(FormControl, _objectSpread(_objectSpread({}, formControlProps), {}, {
|
|
1521
1647
|
hiddenLabel: !label,
|
|
@@ -1550,7 +1676,7 @@ function useCollapseBreakpoint(collapseBreakpoint) {
|
|
|
1550
1676
|
return breakpointIDX < collapseBreakpointIDX;
|
|
1551
1677
|
}
|
|
1552
1678
|
|
|
1553
|
-
var _excluded$
|
|
1679
|
+
var _excluded$j = ["action", "children", "onClose", "className", "classes", "variant"],
|
|
1554
1680
|
_excluded2$3 = ["icon", "closeButton", "variantError", "variantSuccess"];
|
|
1555
1681
|
var useStyles$a = /*#__PURE__*/makeStyles(theme => ({
|
|
1556
1682
|
root: {
|
|
@@ -1595,7 +1721,7 @@ var SnackbarContent = /*#__PURE__*/forwardRef((_ref, ref) => {
|
|
|
1595
1721
|
classes,
|
|
1596
1722
|
variant = 'default'
|
|
1597
1723
|
} = _ref,
|
|
1598
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
1724
|
+
props = _objectWithoutProperties(_ref, _excluded$j);
|
|
1599
1725
|
|
|
1600
1726
|
var _useStyles = useStyles$a({
|
|
1601
1727
|
classes
|
|
@@ -1645,7 +1771,7 @@ var SnackbarContent = /*#__PURE__*/forwardRef((_ref, ref) => {
|
|
|
1645
1771
|
});
|
|
1646
1772
|
if (process.env.NODE_ENV !== "production") SnackbarContent.displayName = "SnackbarContent";
|
|
1647
1773
|
|
|
1648
|
-
var _excluded$
|
|
1774
|
+
var _excluded$k = ["open", "action", "variant", "onClose", "children", "ContentProps", "hasCloseButton", "TransitionComponent"];
|
|
1649
1775
|
|
|
1650
1776
|
function SlideTransition(props) {
|
|
1651
1777
|
return /*#__PURE__*/jsx(Slide, _objectSpread(_objectSpread({}, props), {}, {
|
|
@@ -1664,7 +1790,7 @@ var Snackbar = /*#__PURE__*/forwardRef((_ref, ref) => {
|
|
|
1664
1790
|
hasCloseButton = onClose != null,
|
|
1665
1791
|
TransitionComponent = SlideTransition
|
|
1666
1792
|
} = _ref,
|
|
1667
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
1793
|
+
props = _objectWithoutProperties(_ref, _excluded$k);
|
|
1668
1794
|
|
|
1669
1795
|
function handleClose(reason) {
|
|
1670
1796
|
if (reason !== 'clickaway') {
|
|
@@ -1693,7 +1819,7 @@ var Snackbar = /*#__PURE__*/forwardRef((_ref, ref) => {
|
|
|
1693
1819
|
});
|
|
1694
1820
|
if (process.env.NODE_ENV !== "production") Snackbar.displayName = "Snackbar";
|
|
1695
1821
|
|
|
1696
|
-
var _excluded$
|
|
1822
|
+
var _excluded$l = ["onClose", "variant", "key", "id", "autoHideDuration"];
|
|
1697
1823
|
|
|
1698
1824
|
function warnContext() {
|
|
1699
1825
|
// eslint-disable-next-line no-console
|
|
@@ -1739,7 +1865,7 @@ function SnackbarStackProvider(_ref2) {
|
|
|
1739
1865
|
id = String(key),
|
|
1740
1866
|
autoHideDuration = 5000
|
|
1741
1867
|
} = _ref3,
|
|
1742
|
-
props = _objectWithoutProperties(_ref3, _excluded$
|
|
1868
|
+
props = _objectWithoutProperties(_ref3, _excluded$l);
|
|
1743
1869
|
|
|
1744
1870
|
function removeSnackbar() {
|
|
1745
1871
|
setStack(prev => {
|
|
@@ -1836,7 +1962,7 @@ var Stack = /*#__PURE__*/forwardRef((_ref2, ref) => {
|
|
|
1836
1962
|
});
|
|
1837
1963
|
if (process.env.NODE_ENV !== "production") Stack.displayName = "Stack";
|
|
1838
1964
|
|
|
1839
|
-
var _excluded$
|
|
1965
|
+
var _excluded$m = ["color", "variant", "children", "classes", "className", "noWrap", "fontWeight", "component"];
|
|
1840
1966
|
var useStyles$b = /*#__PURE__*/makeStyles(theme => ({
|
|
1841
1967
|
root: {
|
|
1842
1968
|
maxWidth: '100%',
|
|
@@ -1920,7 +2046,7 @@ var Tag = /*#__PURE__*/forwardRef((_ref, ref) => {
|
|
|
1920
2046
|
fontWeight = 'bold',
|
|
1921
2047
|
component = 'div'
|
|
1922
2048
|
} = _ref,
|
|
1923
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
2049
|
+
props = _objectWithoutProperties(_ref, _excluded$m);
|
|
1924
2050
|
|
|
1925
2051
|
var styles = useStyles$b({
|
|
1926
2052
|
classes
|
|
@@ -3433,5 +3559,5 @@ var Tiles = /*#__PURE__*/forwardRef((_ref, ref) => {
|
|
|
3433
3559
|
});
|
|
3434
3560
|
if (process.env.NODE_ENV !== "production") Tiles.displayName = "Tiles";
|
|
3435
3561
|
|
|
3436
|
-
export { AdaptiveToolbar, AvatarButton, Button, CardButton, CheckboxField, CheckboxGroupField, Color, Column, Columns, DescriptionList, DescriptionListItem, DrawerActions, DrawerContent, DrawerList, DrawerTitle, GridStack, InfoCard, Inline, InlineGrid, OverflowText, RadioField, RadioGroupField, ResponsiveContextProvider, Snackbar, SnackbarContent, SnackbarStackConsumer, SnackbarStackProvider, Stack, Tag, ThemeProvider, Tiles, VisibilityObserver, assignRef, isColorProp, isEmptyReactNode, mergeRefs, parseAlignProp, parseCollapsedBelow, parseResponsiveProp, parseSpaceProp, renderChildren, useCollapseBreakpoint, useResponsiveContext, useResponsiveProp, useResponsivePropRecord, useResponsiveValue, useSnackbarStack, useUID, useVisibilityObserver };
|
|
3562
|
+
export { AdaptiveToolbar, AvatarButton, Button, CardButton, CheckboxField, CheckboxGroupField, Color, Column, Columns, DescriptionList, DescriptionListItem, DrawerActions, DrawerContent, DrawerList, DrawerTitle, DropdownButton, GridStack, InfoCard, Inline, InlineGrid, OverflowText, RadioField, RadioGroupField, ResponsiveContextProvider, Snackbar, SnackbarContent, SnackbarStackConsumer, SnackbarStackProvider, Stack, Tag, ThemeProvider, Tiles, VisibilityObserver, assignRef, isColorProp, isEmptyReactNode, mergeRefs, parseAlignProp, parseCollapsedBelow, parseResponsiveProp, parseSpaceProp, renderChildren, useCollapseBreakpoint, useResponsiveContext, useResponsiveProp, useResponsivePropRecord, useResponsiveValue, useSnackbarStack, useUID, useVisibilityObserver };
|
|
3437
3563
|
//# sourceMappingURL=index.js.map
|