@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.
- package/dist-node/index.js +392 -162
- package/dist-node/index.js.map +1 -1
- package/dist-src/adaptive-toolbar/AdaptiveToolbar.js +38 -33
- package/dist-src/adaptive-vertical-toolbar/AdaptiveVerticalToolbar.js +118 -0
- package/dist-src/dropdown-button/DropdownButton.js +114 -0
- package/dist-src/index.js +3 -0
- package/dist-src/info-card/InfoCard.js +1 -11
- package/dist-src/utils/ResizeObserver.js +20 -0
- package/dist-src/utils/mergeRefs.js +10 -7
- package/dist-types/index.d.ts +38 -3
- package/dist-web/index.js +339 -113
- 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
|
-
import {
|
|
4
|
-
import { Button as Button$1, CircularProgress, Toolbar, Grid, Typography, Menu, MenuItem, 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';
|
|
3
|
+
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
4
|
import { MoreHoriz, Close, Warning, CheckCircle } from '@material-ui/icons';
|
|
6
5
|
import { makeStyles, StylesProvider, ThemeProvider as ThemeProvider$1 } from '@material-ui/styles';
|
|
7
|
-
import {
|
|
8
|
-
import { forwardRef, useRef, useState, useLayoutEffect, useMemo, useContext, createContext, Children, useCallback } from 'react';
|
|
6
|
+
import { forwardRef, useState, useRef, useLayoutEffect, cloneElement, useMemo, useContext, createContext, Children, useCallback } from 'react';
|
|
9
7
|
import { jsx, jsxs, Fragment } from 'react/jsx-runtime';
|
|
10
|
-
import clsx from 'clsx';
|
|
11
8
|
import styled, { css, ThemeProvider as ThemeProvider$2 } from 'styled-components';
|
|
9
|
+
import { ResizeObserver } from '@juggle/resize-observer';
|
|
10
|
+
import { useEventHandler, useDeepEqualValue, useValueObserver, useDeepEqualMemo, useConstant } from '@superdispatch/hooks';
|
|
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,108 @@ 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";
|
|
46
147
|
|
|
47
148
|
function useResizeObserver(node, observer) {
|
|
48
149
|
var handler = useEventHandler(observer);
|
|
@@ -62,6 +163,7 @@ function useResizeObserver(node, observer) {
|
|
|
62
163
|
}, [node, handler]);
|
|
63
164
|
}
|
|
64
165
|
|
|
166
|
+
var _excluded$2 = ["items"];
|
|
65
167
|
var useStyles = /*#__PURE__*/makeStyles({
|
|
66
168
|
actions: {
|
|
67
169
|
overflow: 'hidden'
|
|
@@ -73,7 +175,7 @@ var AdaptiveToolbar = /*#__PURE__*/forwardRef((_ref, ref) => {
|
|
|
73
175
|
var {
|
|
74
176
|
items
|
|
75
177
|
} = _ref,
|
|
76
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
178
|
+
props = _objectWithoutProperties(_ref, _excluded$2);
|
|
77
179
|
|
|
78
180
|
var styles = useStyles();
|
|
79
181
|
var itemNodes = useRef([]);
|
|
@@ -116,7 +218,6 @@ var AdaptiveToolbar = /*#__PURE__*/forwardRef((_ref, ref) => {
|
|
|
116
218
|
children: /*#__PURE__*/jsxs(Grid, {
|
|
117
219
|
container: true,
|
|
118
220
|
spacing: 1,
|
|
119
|
-
wrap: "nowrap",
|
|
120
221
|
ref: setRootNode,
|
|
121
222
|
children: [/*#__PURE__*/jsx(Grid, {
|
|
122
223
|
item: true,
|
|
@@ -131,7 +232,16 @@ var AdaptiveToolbar = /*#__PURE__*/forwardRef((_ref, ref) => {
|
|
|
131
232
|
ref: node => {
|
|
132
233
|
itemNodes.current[idx] = node;
|
|
133
234
|
},
|
|
134
|
-
children: /*#__PURE__*/jsx(
|
|
235
|
+
children: item.dropdown ? /*#__PURE__*/jsx(DropdownButton, _objectSpread(_objectSpread({
|
|
236
|
+
type: "button",
|
|
237
|
+
onClick: item.onClick,
|
|
238
|
+
label: item.label
|
|
239
|
+
}, item.ButtonProps), {}, {
|
|
240
|
+
children: item.dropdown.map(dropdownItem => /*#__PURE__*/jsx(MenuItem, {
|
|
241
|
+
onClick: dropdownItem.onClick,
|
|
242
|
+
children: dropdownItem.label
|
|
243
|
+
}, dropdownItem.key))
|
|
244
|
+
})) : /*#__PURE__*/jsx(Button, _objectSpread(_objectSpread({
|
|
135
245
|
type: "button",
|
|
136
246
|
onClick: item.onClick
|
|
137
247
|
}, item.ButtonProps), {}, {
|
|
@@ -162,15 +272,30 @@ var AdaptiveToolbar = /*#__PURE__*/forwardRef((_ref, ref) => {
|
|
|
162
272
|
onClose: () => {
|
|
163
273
|
setMenuButtonRef(undefined);
|
|
164
274
|
},
|
|
165
|
-
children: menuItems.map(item =>
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
275
|
+
children: menuItems.map((item, index, arr) => {
|
|
276
|
+
var _item$dropdown;
|
|
277
|
+
|
|
278
|
+
var next = arr[index + 1];
|
|
279
|
+
return /*#__PURE__*/jsxs(Fragment, {
|
|
280
|
+
children: [/*#__PURE__*/jsx(MenuItem, {
|
|
281
|
+
onClick: event => {
|
|
282
|
+
var _item$onClick;
|
|
283
|
+
|
|
284
|
+
(_item$onClick = item.onClick) === null || _item$onClick === void 0 ? void 0 : _item$onClick.call(item, event);
|
|
285
|
+
setMenuButtonRef(undefined);
|
|
286
|
+
},
|
|
287
|
+
children: item.label
|
|
288
|
+
}, item.key), (_item$dropdown = item.dropdown) === null || _item$dropdown === void 0 ? void 0 : _item$dropdown.map(dropdownItem => /*#__PURE__*/jsx(MenuItem, {
|
|
289
|
+
onClick: event => {
|
|
290
|
+
var _dropdownItem$onClick;
|
|
291
|
+
|
|
292
|
+
(_dropdownItem$onClick = dropdownItem.onClick) === null || _dropdownItem$onClick === void 0 ? void 0 : _dropdownItem$onClick.call(dropdownItem, event);
|
|
293
|
+
setMenuButtonRef(undefined);
|
|
294
|
+
},
|
|
295
|
+
children: dropdownItem.label
|
|
296
|
+
}, dropdownItem.key)), next && item.groupKey !== next.groupKey && /*#__PURE__*/jsx(Divider, {})]
|
|
297
|
+
});
|
|
298
|
+
})
|
|
174
299
|
})]
|
|
175
300
|
})]
|
|
176
301
|
})
|
|
@@ -178,6 +303,136 @@ var AdaptiveToolbar = /*#__PURE__*/forwardRef((_ref, ref) => {
|
|
|
178
303
|
});
|
|
179
304
|
if (process.env.NODE_ENV !== "production") AdaptiveToolbar.displayName = "AdaptiveToolbar";
|
|
180
305
|
|
|
306
|
+
function mergeRefs() {
|
|
307
|
+
for (var _len = arguments.length, refs = new Array(_len), _key = 0; _key < _len; _key++) {
|
|
308
|
+
refs[_key] = arguments[_key];
|
|
309
|
+
}
|
|
310
|
+
|
|
311
|
+
return node => {
|
|
312
|
+
refs.forEach(ref => {
|
|
313
|
+
assignRef(ref, node);
|
|
314
|
+
});
|
|
315
|
+
};
|
|
316
|
+
}
|
|
317
|
+
function assignRef(ref, value) {
|
|
318
|
+
if (ref) {
|
|
319
|
+
if (typeof ref === 'function') {
|
|
320
|
+
ref(value);
|
|
321
|
+
} else {
|
|
322
|
+
ref.current = value;
|
|
323
|
+
}
|
|
324
|
+
}
|
|
325
|
+
}
|
|
326
|
+
|
|
327
|
+
var useStyles$1 = /*#__PURE__*/makeStyles({
|
|
328
|
+
root: {
|
|
329
|
+
overflow: 'hidden',
|
|
330
|
+
height: '100%'
|
|
331
|
+
}
|
|
332
|
+
}, {
|
|
333
|
+
name: 'SD-AdaptiveVerticalToolbar'
|
|
334
|
+
});
|
|
335
|
+
|
|
336
|
+
var defaultMoreElement = /*#__PURE__*/jsx(Button, {
|
|
337
|
+
type: "button",
|
|
338
|
+
children: /*#__PURE__*/jsx(MoreHoriz, {})
|
|
339
|
+
});
|
|
340
|
+
|
|
341
|
+
var AdaptiveVerticalToolbar = /*#__PURE__*/forwardRef((_ref, ref) => {
|
|
342
|
+
var {
|
|
343
|
+
items,
|
|
344
|
+
disableGutters,
|
|
345
|
+
moreElement = defaultMoreElement,
|
|
346
|
+
renderItem = item => item.label,
|
|
347
|
+
renderMenuItem = item => item.label
|
|
348
|
+
} = _ref;
|
|
349
|
+
var styles = useStyles$1();
|
|
350
|
+
var itemNodes = useRef([]);
|
|
351
|
+
var optionsButtonRef = useRef(null);
|
|
352
|
+
var [firstHiddenIdx, setFirstHiddenIdx] = useState(-1);
|
|
353
|
+
var menuItems = firstHiddenIdx === -1 ? [] : items.slice(firstHiddenIdx);
|
|
354
|
+
var [menuButtonNode, setMenuButtonRef] = useState();
|
|
355
|
+
var [rootNode, setRootNode] = useState(null);
|
|
356
|
+
useResizeObserver(rootNode, node => {
|
|
357
|
+
var _optionsButtonRef$cur;
|
|
358
|
+
|
|
359
|
+
var rootRect = node.getBoundingClientRect();
|
|
360
|
+
var rootHeight = rootRect.bottom;
|
|
361
|
+
var optionsButtonRect = (_optionsButtonRef$cur = optionsButtonRef.current) === null || _optionsButtonRef$cur === void 0 ? void 0 : _optionsButtonRef$cur.getBoundingClientRect();
|
|
362
|
+
var optionsButtonWidth = (optionsButtonRect === null || optionsButtonRect === void 0 ? void 0 : optionsButtonRect.height) || 0;
|
|
363
|
+
var maxBottomPosition = rootHeight - optionsButtonWidth;
|
|
364
|
+
var mountedNodes = itemNodes.current.filter(x => x != null);
|
|
365
|
+
var hiddenIdx = mountedNodes.findIndex((itemNode, idx) => {
|
|
366
|
+
itemNode.removeAttribute('hidden');
|
|
367
|
+
var itemRect = itemNode.getBoundingClientRect(); // Ignore options button height when checking last item.
|
|
368
|
+
|
|
369
|
+
if (idx === mountedNodes.length - 1) {
|
|
370
|
+
return itemRect.bottom > rootHeight;
|
|
371
|
+
}
|
|
372
|
+
|
|
373
|
+
return itemRect.bottom > maxBottomPosition;
|
|
374
|
+
});
|
|
375
|
+
|
|
376
|
+
if (hiddenIdx !== -1) {
|
|
377
|
+
mountedNodes.slice(hiddenIdx).forEach(itemNode => {
|
|
378
|
+
itemNode.setAttribute('hidden', 'true');
|
|
379
|
+
});
|
|
380
|
+
}
|
|
381
|
+
|
|
382
|
+
setFirstHiddenIdx(hiddenIdx);
|
|
383
|
+
});
|
|
384
|
+
return /*#__PURE__*/jsxs(Grid, {
|
|
385
|
+
direction: "column",
|
|
386
|
+
container: true,
|
|
387
|
+
wrap: "nowrap",
|
|
388
|
+
className: styles.root,
|
|
389
|
+
spacing: disableGutters ? undefined : 1,
|
|
390
|
+
ref: mergeRefs(ref, node => {
|
|
391
|
+
setRootNode(node);
|
|
392
|
+
}),
|
|
393
|
+
children: [items.map((item, idx) => /*#__PURE__*/jsx(Grid, {
|
|
394
|
+
item: true,
|
|
395
|
+
ref: node => {
|
|
396
|
+
itemNodes.current[idx] = node;
|
|
397
|
+
},
|
|
398
|
+
children: renderItem(item)
|
|
399
|
+
}, item.key)), menuItems.length > 0 && /*#__PURE__*/jsxs(Grid, {
|
|
400
|
+
item: true,
|
|
401
|
+
ref: optionsButtonRef,
|
|
402
|
+
component: "div",
|
|
403
|
+
children: [/*#__PURE__*/cloneElement(moreElement, {
|
|
404
|
+
onClick: _ref2 => {
|
|
405
|
+
var {
|
|
406
|
+
currentTarget
|
|
407
|
+
} = _ref2;
|
|
408
|
+
setMenuButtonRef(currentTarget);
|
|
409
|
+
}
|
|
410
|
+
}), /*#__PURE__*/jsx(Menu, {
|
|
411
|
+
open: !!menuButtonNode,
|
|
412
|
+
anchorEl: menuButtonNode,
|
|
413
|
+
onClose: () => {
|
|
414
|
+
setMenuButtonRef(undefined);
|
|
415
|
+
},
|
|
416
|
+
children: menuItems.map((item, index, arr) => {
|
|
417
|
+
var next = arr[index + 1];
|
|
418
|
+
return /*#__PURE__*/jsxs(Fragment, {
|
|
419
|
+
children: [/*#__PURE__*/jsx(MenuItem, {
|
|
420
|
+
onClick: event => {
|
|
421
|
+
var _item$onClick;
|
|
422
|
+
|
|
423
|
+
(_item$onClick = item.onClick) === null || _item$onClick === void 0 ? void 0 : _item$onClick.call(item, event);
|
|
424
|
+
setMenuButtonRef(undefined);
|
|
425
|
+
},
|
|
426
|
+
children: renderMenuItem(item)
|
|
427
|
+
}, item.key), next && next.menuGroupKey !== item.menuGroupKey && /*#__PURE__*/jsx(Divider, {})]
|
|
428
|
+
});
|
|
429
|
+
})
|
|
430
|
+
})]
|
|
431
|
+
})]
|
|
432
|
+
});
|
|
433
|
+
});
|
|
434
|
+
if (process.env.NODE_ENV !== "production") AdaptiveVerticalToolbar.displayName = "AdaptiveVerticalToolbar";
|
|
435
|
+
|
|
181
436
|
var Color;
|
|
182
437
|
|
|
183
438
|
(function (Color) {
|
|
@@ -256,9 +511,9 @@ function isColorProp(name) {
|
|
|
256
511
|
return typeof name == 'string' && Object.prototype.hasOwnProperty.call(Color, name);
|
|
257
512
|
}
|
|
258
513
|
|
|
259
|
-
var _excluded$
|
|
514
|
+
var _excluded$3 = ["size", "icon", "isLoading", "classes", "disabled", "avatarRef", "className", "alt", "imgProps", "sizes", "src", "srcSet", "variant", "children"],
|
|
260
515
|
_excluded2 = ["button", "overlay", "progress", "withIcon", "sizeLarge"];
|
|
261
|
-
var useStyles$
|
|
516
|
+
var useStyles$2 = /*#__PURE__*/makeStyles(theme => {
|
|
262
517
|
var sm = theme.breakpoints.up('sm');
|
|
263
518
|
return {
|
|
264
519
|
button: {
|
|
@@ -366,9 +621,9 @@ var AvatarButton = /*#__PURE__*/forwardRef((_ref, ref) => {
|
|
|
366
621
|
variant,
|
|
367
622
|
children
|
|
368
623
|
} = _ref,
|
|
369
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
624
|
+
props = _objectWithoutProperties(_ref, _excluded$3);
|
|
370
625
|
|
|
371
|
-
var _useStyles = useStyles$
|
|
626
|
+
var _useStyles = useStyles$2({
|
|
372
627
|
classes
|
|
373
628
|
}),
|
|
374
629
|
{
|
|
@@ -408,8 +663,8 @@ var AvatarButton = /*#__PURE__*/forwardRef((_ref, ref) => {
|
|
|
408
663
|
});
|
|
409
664
|
if (process.env.NODE_ENV !== "production") AvatarButton.displayName = "AvatarButton";
|
|
410
665
|
|
|
411
|
-
var _excluded$
|
|
412
|
-
var useStyles$
|
|
666
|
+
var _excluded$4 = ["hint", "size", "error", "classes", "className", "children", "endIcon", "startIcon", "disabled"];
|
|
667
|
+
var useStyles$3 = /*#__PURE__*/makeStyles(theme => ({
|
|
413
668
|
root: {
|
|
414
669
|
width: '100%',
|
|
415
670
|
display: 'flex',
|
|
@@ -492,9 +747,9 @@ var CardButton = /*#__PURE__*/forwardRef((_ref, ref) => {
|
|
|
492
747
|
startIcon,
|
|
493
748
|
disabled
|
|
494
749
|
} = _ref,
|
|
495
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
750
|
+
props = _objectWithoutProperties(_ref, _excluded$4);
|
|
496
751
|
|
|
497
|
-
var styles = useStyles$
|
|
752
|
+
var styles = useStyles$3({
|
|
498
753
|
classes
|
|
499
754
|
});
|
|
500
755
|
return /*#__PURE__*/jsx(ButtonBase, _objectSpread(_objectSpread({}, props), {}, {
|
|
@@ -531,7 +786,7 @@ var CardButton = /*#__PURE__*/forwardRef((_ref, ref) => {
|
|
|
531
786
|
});
|
|
532
787
|
if (process.env.NODE_ENV !== "production") CardButton.displayName = "CardButton";
|
|
533
788
|
|
|
534
|
-
var _excluded$
|
|
789
|
+
var _excluded$5 = ["label", "error", "checked", "onBlur", "onChange", "helperText", "FormControlLabelProps"];
|
|
535
790
|
var CheckboxField = /*#__PURE__*/forwardRef((_ref, ref) => {
|
|
536
791
|
var {
|
|
537
792
|
label,
|
|
@@ -542,7 +797,7 @@ var CheckboxField = /*#__PURE__*/forwardRef((_ref, ref) => {
|
|
|
542
797
|
helperText,
|
|
543
798
|
FormControlLabelProps: formControlLabelProps
|
|
544
799
|
} = _ref,
|
|
545
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
800
|
+
props = _objectWithoutProperties(_ref, _excluded$5);
|
|
546
801
|
|
|
547
802
|
return /*#__PURE__*/jsxs(FormControl, {
|
|
548
803
|
error: error,
|
|
@@ -563,7 +818,7 @@ var CheckboxField = /*#__PURE__*/forwardRef((_ref, ref) => {
|
|
|
563
818
|
});
|
|
564
819
|
if (process.env.NODE_ENV !== "production") CheckboxField.displayName = "CheckboxField";
|
|
565
820
|
|
|
566
|
-
var _excluded$
|
|
821
|
+
var _excluded$6 = ["FormGroupProps", "label", "FormLabelProps", "helperText", "FormHelperTextProps", "children"];
|
|
567
822
|
var CheckboxGroupField = /*#__PURE__*/forwardRef((_ref, ref) => {
|
|
568
823
|
var {
|
|
569
824
|
FormGroupProps: formGroupProps,
|
|
@@ -573,7 +828,7 @@ var CheckboxGroupField = /*#__PURE__*/forwardRef((_ref, ref) => {
|
|
|
573
828
|
FormHelperTextProps: formHelperTextProps,
|
|
574
829
|
children
|
|
575
830
|
} = _ref,
|
|
576
|
-
formControlProps = _objectWithoutProperties(_ref, _excluded$
|
|
831
|
+
formControlProps = _objectWithoutProperties(_ref, _excluded$6);
|
|
577
832
|
|
|
578
833
|
return /*#__PURE__*/jsxs(FormControl, _objectSpread(_objectSpread({}, formControlProps), {}, {
|
|
579
834
|
hiddenLabel: !label,
|
|
@@ -812,7 +1067,7 @@ function renderChildren(node) {
|
|
|
812
1067
|
return node;
|
|
813
1068
|
}
|
|
814
1069
|
|
|
815
|
-
var _excluded$
|
|
1070
|
+
var _excluded$7 = ["render", "onChange"];
|
|
816
1071
|
function useVisibilityObserver(node) {
|
|
817
1072
|
var {
|
|
818
1073
|
threshold = 0,
|
|
@@ -848,7 +1103,7 @@ function VisibilityObserver(_ref2) {
|
|
|
848
1103
|
render,
|
|
849
1104
|
onChange
|
|
850
1105
|
} = _ref2,
|
|
851
|
-
options = _objectWithoutProperties(_ref2, _excluded$
|
|
1106
|
+
options = _objectWithoutProperties(_ref2, _excluded$7);
|
|
852
1107
|
|
|
853
1108
|
var [node, setNode] = useState(null);
|
|
854
1109
|
var visibility = useVisibilityObserver(node, options);
|
|
@@ -862,9 +1117,9 @@ function VisibilityObserver(_ref2) {
|
|
|
862
1117
|
return renderChildren(children);
|
|
863
1118
|
}
|
|
864
1119
|
|
|
865
|
-
var _excluded$
|
|
1120
|
+
var _excluded$8 = ["title", "enterDelay"],
|
|
866
1121
|
_excluded2$1 = ["onClick", "children", "className", "disableUnderline", "TooltipProps"];
|
|
867
|
-
var useStyles$
|
|
1122
|
+
var useStyles$4 = /*#__PURE__*/makeStyles(theme => ({
|
|
868
1123
|
root: {
|
|
869
1124
|
marginBottom: -1,
|
|
870
1125
|
borderBottom: '1px dashed transparent',
|
|
@@ -894,11 +1149,11 @@ var OverflowText = /*#__PURE__*/forwardRef((_ref, rootRef) => {
|
|
|
894
1149
|
enterDelay = 1000
|
|
895
1150
|
} = {}
|
|
896
1151
|
} = _ref,
|
|
897
|
-
tooltipProps = _objectWithoutProperties(_ref.TooltipProps, _excluded$
|
|
1152
|
+
tooltipProps = _objectWithoutProperties(_ref.TooltipProps, _excluded$8),
|
|
898
1153
|
props = _objectWithoutProperties(_ref, _excluded2$1);
|
|
899
1154
|
|
|
900
1155
|
var [isOpen, setIsOpen] = useState(false);
|
|
901
|
-
var styles = useStyles$
|
|
1156
|
+
var styles = useStyles$4();
|
|
902
1157
|
return /*#__PURE__*/jsx(VisibilityObserver, {
|
|
903
1158
|
render: _ref2 => {
|
|
904
1159
|
var {
|
|
@@ -946,7 +1201,7 @@ function useUID(defaultID) {
|
|
|
946
1201
|
return defaultID || uid;
|
|
947
1202
|
}
|
|
948
1203
|
|
|
949
|
-
var _excluded$
|
|
1204
|
+
var _excluded$9 = ["size"];
|
|
950
1205
|
|
|
951
1206
|
function sizeVariant(theme, mobileSpacing, desktopSpacing) {
|
|
952
1207
|
return {
|
|
@@ -961,7 +1216,7 @@ function sizeVariant(theme, mobileSpacing, desktopSpacing) {
|
|
|
961
1216
|
};
|
|
962
1217
|
}
|
|
963
1218
|
|
|
964
|
-
var useStyles$
|
|
1219
|
+
var useStyles$5 = /*#__PURE__*/makeStyles(theme => ({
|
|
965
1220
|
list: sizeVariant(theme, 2, 1),
|
|
966
1221
|
listSmall: sizeVariant(theme, 1, 0.5),
|
|
967
1222
|
listLarge: sizeVariant(theme, 3, 2),
|
|
@@ -990,9 +1245,9 @@ var DescriptionList = /*#__PURE__*/forwardRef((_ref, ref) => {
|
|
|
990
1245
|
var {
|
|
991
1246
|
size
|
|
992
1247
|
} = _ref,
|
|
993
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
1248
|
+
props = _objectWithoutProperties(_ref, _excluded$9);
|
|
994
1249
|
|
|
995
|
-
var styles = useStyles$
|
|
1250
|
+
var styles = useStyles$5();
|
|
996
1251
|
return /*#__PURE__*/jsx("div", _objectSpread(_objectSpread({}, props), {}, {
|
|
997
1252
|
ref: ref,
|
|
998
1253
|
"data-size": size,
|
|
@@ -1018,7 +1273,7 @@ var DescriptionListItem = /*#__PURE__*/forwardRef((_ref2, ref) => {
|
|
|
1018
1273
|
contentTypographyProps,
|
|
1019
1274
|
fallback
|
|
1020
1275
|
} = _ref2;
|
|
1021
|
-
var styles = useStyles$
|
|
1276
|
+
var styles = useStyles$5();
|
|
1022
1277
|
var labelID = useUID(labelTypographyProps === null || labelTypographyProps === void 0 ? void 0 : labelTypographyProps.id);
|
|
1023
1278
|
var shouldRenderFallback = isEmptyReactNode(content);
|
|
1024
1279
|
return /*#__PURE__*/jsxs("div", {
|
|
@@ -1046,8 +1301,8 @@ var DescriptionListItem = /*#__PURE__*/forwardRef((_ref2, ref) => {
|
|
|
1046
1301
|
});
|
|
1047
1302
|
if (process.env.NODE_ENV !== "production") DescriptionListItem.displayName = "DescriptionListItem";
|
|
1048
1303
|
|
|
1049
|
-
var _excluded$
|
|
1050
|
-
var useStyles$
|
|
1304
|
+
var _excluded$a = ["children", "className"];
|
|
1305
|
+
var useStyles$6 = /*#__PURE__*/makeStyles(theme => ({
|
|
1051
1306
|
appBar: {
|
|
1052
1307
|
'&&': {
|
|
1053
1308
|
bottom: 0,
|
|
@@ -1080,9 +1335,9 @@ var DrawerActions = /*#__PURE__*/forwardRef((_ref, appBarRef) => {
|
|
|
1080
1335
|
children,
|
|
1081
1336
|
className
|
|
1082
1337
|
} = _ref,
|
|
1083
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
1338
|
+
props = _objectWithoutProperties(_ref, _excluded$a);
|
|
1084
1339
|
|
|
1085
|
-
var styles = useStyles$
|
|
1340
|
+
var styles = useStyles$6();
|
|
1086
1341
|
return /*#__PURE__*/jsx(VisibilityObserver, {
|
|
1087
1342
|
render: _ref2 => {
|
|
1088
1343
|
var {
|
|
@@ -1107,8 +1362,8 @@ var DrawerActions = /*#__PURE__*/forwardRef((_ref, appBarRef) => {
|
|
|
1107
1362
|
});
|
|
1108
1363
|
if (process.env.NODE_ENV !== "production") DrawerActions.displayName = "DrawerActions";
|
|
1109
1364
|
|
|
1110
|
-
var _excluded$
|
|
1111
|
-
var useStyles$
|
|
1365
|
+
var _excluded$b = ["className"];
|
|
1366
|
+
var useStyles$7 = /*#__PURE__*/makeStyles(theme => ({
|
|
1112
1367
|
root: {
|
|
1113
1368
|
maxWidth: '100%',
|
|
1114
1369
|
padding: theme.spacing(2, 3),
|
|
@@ -1123,9 +1378,9 @@ var DrawerContent = /*#__PURE__*/forwardRef((_ref, ref) => {
|
|
|
1123
1378
|
var {
|
|
1124
1379
|
className
|
|
1125
1380
|
} = _ref,
|
|
1126
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
1381
|
+
props = _objectWithoutProperties(_ref, _excluded$b);
|
|
1127
1382
|
|
|
1128
|
-
var styles = useStyles$
|
|
1383
|
+
var styles = useStyles$7();
|
|
1129
1384
|
return /*#__PURE__*/jsx("div", _objectSpread(_objectSpread({}, props), {}, {
|
|
1130
1385
|
ref: ref,
|
|
1131
1386
|
className: clsx(styles.root, className)
|
|
@@ -1133,7 +1388,7 @@ var DrawerContent = /*#__PURE__*/forwardRef((_ref, ref) => {
|
|
|
1133
1388
|
});
|
|
1134
1389
|
if (process.env.NODE_ENV !== "production") DrawerContent.displayName = "DrawerContent";
|
|
1135
1390
|
|
|
1136
|
-
var _excluded$
|
|
1391
|
+
var _excluded$c = ["className"];
|
|
1137
1392
|
|
|
1138
1393
|
function listItemMixins(theme, space) {
|
|
1139
1394
|
return {
|
|
@@ -1153,7 +1408,7 @@ function listItemMixins(theme, space) {
|
|
|
1153
1408
|
};
|
|
1154
1409
|
}
|
|
1155
1410
|
|
|
1156
|
-
var useStyles$
|
|
1411
|
+
var useStyles$8 = /*#__PURE__*/makeStyles(theme => ({
|
|
1157
1412
|
root: _objectSpread(_objectSpread({
|
|
1158
1413
|
maxWidth: '100%'
|
|
1159
1414
|
}, listItemMixins(theme, 3)), {}, {
|
|
@@ -1166,9 +1421,9 @@ var DrawerList = /*#__PURE__*/forwardRef((_ref, ref) => {
|
|
|
1166
1421
|
var {
|
|
1167
1422
|
className
|
|
1168
1423
|
} = _ref,
|
|
1169
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
1424
|
+
props = _objectWithoutProperties(_ref, _excluded$c);
|
|
1170
1425
|
|
|
1171
|
-
var styles = useStyles$
|
|
1426
|
+
var styles = useStyles$8();
|
|
1172
1427
|
return /*#__PURE__*/jsx(List, _objectSpread(_objectSpread({}, props), {}, {
|
|
1173
1428
|
ref: ref,
|
|
1174
1429
|
component: "div",
|
|
@@ -1177,8 +1432,8 @@ var DrawerList = /*#__PURE__*/forwardRef((_ref, ref) => {
|
|
|
1177
1432
|
});
|
|
1178
1433
|
if (process.env.NODE_ENV !== "production") DrawerList.displayName = "DrawerList";
|
|
1179
1434
|
|
|
1180
|
-
var _excluded$
|
|
1181
|
-
var useStyles$
|
|
1435
|
+
var _excluded$d = ["title", "titleTypographyProps", "subtitle", "subtitleTypographyProps", "startAction", "endAction", "className"];
|
|
1436
|
+
var useStyles$9 = /*#__PURE__*/makeStyles(theme => ({
|
|
1182
1437
|
appBar: {
|
|
1183
1438
|
'&&': {
|
|
1184
1439
|
borderTop: 'none',
|
|
@@ -1226,9 +1481,9 @@ var DrawerTitle = /*#__PURE__*/forwardRef((_ref, appBarRef) => {
|
|
|
1226
1481
|
endAction,
|
|
1227
1482
|
className
|
|
1228
1483
|
} = _ref,
|
|
1229
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
1484
|
+
props = _objectWithoutProperties(_ref, _excluded$d);
|
|
1230
1485
|
|
|
1231
|
-
var styles = useStyles$
|
|
1486
|
+
var styles = useStyles$9();
|
|
1232
1487
|
return /*#__PURE__*/jsx(VisibilityObserver, {
|
|
1233
1488
|
render: _ref2 => {
|
|
1234
1489
|
var {
|
|
@@ -1280,7 +1535,7 @@ var DrawerTitle = /*#__PURE__*/forwardRef((_ref, appBarRef) => {
|
|
|
1280
1535
|
});
|
|
1281
1536
|
if (process.env.NODE_ENV !== "production") DrawerTitle.displayName = "DrawerTitle";
|
|
1282
1537
|
|
|
1283
|
-
var _excluded$
|
|
1538
|
+
var _excluded$e = ["children", "alignItems"];
|
|
1284
1539
|
|
|
1285
1540
|
/**
|
|
1286
1541
|
* @deprecated in favor of `Stack`.
|
|
@@ -1290,7 +1545,7 @@ var GridStack = /*#__PURE__*/forwardRef((_ref, ref) => {
|
|
|
1290
1545
|
children,
|
|
1291
1546
|
alignItems = 'stretch'
|
|
1292
1547
|
} = _ref,
|
|
1293
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
1548
|
+
props = _objectWithoutProperties(_ref, _excluded$e);
|
|
1294
1549
|
|
|
1295
1550
|
var items = Children.toArray(children);
|
|
1296
1551
|
return /*#__PURE__*/jsx(Grid, _objectSpread(_objectSpread({}, props), {}, {
|
|
@@ -1309,7 +1564,7 @@ var GridStack = /*#__PURE__*/forwardRef((_ref, ref) => {
|
|
|
1309
1564
|
});
|
|
1310
1565
|
if (process.env.NODE_ENV !== "production") GridStack.displayName = "GridStack";
|
|
1311
1566
|
|
|
1312
|
-
var _excluded$
|
|
1567
|
+
var _excluded$f = ["children", "wrap", "justify", "alignItems"];
|
|
1313
1568
|
|
|
1314
1569
|
/**
|
|
1315
1570
|
* @deprecated in favor of `Inline` component.
|
|
@@ -1321,7 +1576,7 @@ var InlineGrid = /*#__PURE__*/forwardRef((_ref, ref) => {
|
|
|
1321
1576
|
justify = 'flex-start',
|
|
1322
1577
|
alignItems = 'flex-start'
|
|
1323
1578
|
} = _ref,
|
|
1324
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
1579
|
+
props = _objectWithoutProperties(_ref, _excluded$f);
|
|
1325
1580
|
|
|
1326
1581
|
var items = Children.toArray(children);
|
|
1327
1582
|
return /*#__PURE__*/jsx(Grid, _objectSpread(_objectSpread({}, props), {}, {
|
|
@@ -1339,20 +1594,9 @@ var InlineGrid = /*#__PURE__*/forwardRef((_ref, ref) => {
|
|
|
1339
1594
|
});
|
|
1340
1595
|
if (process.env.NODE_ENV !== "production") InlineGrid.displayName = "InlineGrid";
|
|
1341
1596
|
|
|
1342
|
-
var _excluded$
|
|
1597
|
+
var _excluded$g = ["size", "square", "classes", "children", "className", "CardContentProps"],
|
|
1343
1598
|
_excluded2$2 = ["content", "sizeLarge", "fullWidth"];
|
|
1344
|
-
|
|
1345
|
-
function assignRef(ref, value) {
|
|
1346
|
-
if (ref) {
|
|
1347
|
-
if (typeof ref === 'object') {
|
|
1348
|
-
ref.current = value;
|
|
1349
|
-
} else {
|
|
1350
|
-
ref(value);
|
|
1351
|
-
}
|
|
1352
|
-
}
|
|
1353
|
-
}
|
|
1354
|
-
|
|
1355
|
-
var useStyles$9 = /*#__PURE__*/makeStyles(theme => ({
|
|
1599
|
+
var useStyles$a = /*#__PURE__*/makeStyles(theme => ({
|
|
1356
1600
|
root: {
|
|
1357
1601
|
'&$fullWidth': {
|
|
1358
1602
|
borderRadius: 0,
|
|
@@ -1382,9 +1626,9 @@ var InfoCard = /*#__PURE__*/forwardRef((_ref, _ref2) => {
|
|
|
1382
1626
|
className,
|
|
1383
1627
|
CardContentProps: cardContentProps = {}
|
|
1384
1628
|
} = _ref,
|
|
1385
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
1629
|
+
props = _objectWithoutProperties(_ref, _excluded$g);
|
|
1386
1630
|
|
|
1387
|
-
var _useStyles = useStyles$
|
|
1631
|
+
var _useStyles = useStyles$a({
|
|
1388
1632
|
classes
|
|
1389
1633
|
}),
|
|
1390
1634
|
{
|
|
@@ -1461,7 +1705,7 @@ var Inline = /*#__PURE__*/forwardRef((_ref2, ref) => {
|
|
|
1461
1705
|
});
|
|
1462
1706
|
if (process.env.NODE_ENV !== "production") Inline.displayName = "Inline";
|
|
1463
1707
|
|
|
1464
|
-
var _excluded$
|
|
1708
|
+
var _excluded$h = ["label", "error", "checked", "onBlur", "onChange", "helperText", "FormControlLabelProps"];
|
|
1465
1709
|
var RadioField = /*#__PURE__*/forwardRef((_ref, ref) => {
|
|
1466
1710
|
var {
|
|
1467
1711
|
label,
|
|
@@ -1472,7 +1716,7 @@ var RadioField = /*#__PURE__*/forwardRef((_ref, ref) => {
|
|
|
1472
1716
|
helperText,
|
|
1473
1717
|
FormControlLabelProps: formControlLabelProps
|
|
1474
1718
|
} = _ref,
|
|
1475
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
1719
|
+
props = _objectWithoutProperties(_ref, _excluded$h);
|
|
1476
1720
|
|
|
1477
1721
|
return /*#__PURE__*/jsxs(FormControl, {
|
|
1478
1722
|
error: error,
|
|
@@ -1492,7 +1736,7 @@ var RadioField = /*#__PURE__*/forwardRef((_ref, ref) => {
|
|
|
1492
1736
|
});
|
|
1493
1737
|
if (process.env.NODE_ENV !== "production") RadioField.displayName = "RadioField";
|
|
1494
1738
|
|
|
1495
|
-
var _excluded$
|
|
1739
|
+
var _excluded$i = ["name", "value", "onChange", "RadioGroupProps", "label", "FormLabelProps", "helperText", "FormHelperTextProps", "children"];
|
|
1496
1740
|
var RadioGroupField = /*#__PURE__*/forwardRef((_ref, ref) => {
|
|
1497
1741
|
var {
|
|
1498
1742
|
name,
|
|
@@ -1505,7 +1749,7 @@ var RadioGroupField = /*#__PURE__*/forwardRef((_ref, ref) => {
|
|
|
1505
1749
|
FormHelperTextProps: formHelperTextProps,
|
|
1506
1750
|
children
|
|
1507
1751
|
} = _ref,
|
|
1508
|
-
formControlProps = _objectWithoutProperties(_ref, _excluded$
|
|
1752
|
+
formControlProps = _objectWithoutProperties(_ref, _excluded$i);
|
|
1509
1753
|
|
|
1510
1754
|
return /*#__PURE__*/jsxs(FormControl, _objectSpread(_objectSpread({}, formControlProps), {}, {
|
|
1511
1755
|
hiddenLabel: !label,
|
|
@@ -1540,9 +1784,9 @@ function useCollapseBreakpoint(collapseBreakpoint) {
|
|
|
1540
1784
|
return breakpointIDX < collapseBreakpointIDX;
|
|
1541
1785
|
}
|
|
1542
1786
|
|
|
1543
|
-
var _excluded$
|
|
1787
|
+
var _excluded$j = ["action", "children", "onClose", "className", "classes", "variant"],
|
|
1544
1788
|
_excluded2$3 = ["icon", "closeButton", "variantError", "variantSuccess"];
|
|
1545
|
-
var useStyles$
|
|
1789
|
+
var useStyles$b = /*#__PURE__*/makeStyles(theme => ({
|
|
1546
1790
|
root: {
|
|
1547
1791
|
color: Color.White,
|
|
1548
1792
|
backgroundColor: Color.Dark500,
|
|
@@ -1585,9 +1829,9 @@ var SnackbarContent = /*#__PURE__*/forwardRef((_ref, ref) => {
|
|
|
1585
1829
|
classes,
|
|
1586
1830
|
variant = 'default'
|
|
1587
1831
|
} = _ref,
|
|
1588
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
1832
|
+
props = _objectWithoutProperties(_ref, _excluded$j);
|
|
1589
1833
|
|
|
1590
|
-
var _useStyles = useStyles$
|
|
1834
|
+
var _useStyles = useStyles$b({
|
|
1591
1835
|
classes
|
|
1592
1836
|
}),
|
|
1593
1837
|
{
|
|
@@ -1635,7 +1879,7 @@ var SnackbarContent = /*#__PURE__*/forwardRef((_ref, ref) => {
|
|
|
1635
1879
|
});
|
|
1636
1880
|
if (process.env.NODE_ENV !== "production") SnackbarContent.displayName = "SnackbarContent";
|
|
1637
1881
|
|
|
1638
|
-
var _excluded$
|
|
1882
|
+
var _excluded$k = ["open", "action", "variant", "onClose", "children", "ContentProps", "hasCloseButton", "TransitionComponent"];
|
|
1639
1883
|
|
|
1640
1884
|
function SlideTransition(props) {
|
|
1641
1885
|
return /*#__PURE__*/jsx(Slide, _objectSpread(_objectSpread({}, props), {}, {
|
|
@@ -1654,7 +1898,7 @@ var Snackbar = /*#__PURE__*/forwardRef((_ref, ref) => {
|
|
|
1654
1898
|
hasCloseButton = onClose != null,
|
|
1655
1899
|
TransitionComponent = SlideTransition
|
|
1656
1900
|
} = _ref,
|
|
1657
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
1901
|
+
props = _objectWithoutProperties(_ref, _excluded$k);
|
|
1658
1902
|
|
|
1659
1903
|
function handleClose(reason) {
|
|
1660
1904
|
if (reason !== 'clickaway') {
|
|
@@ -1683,7 +1927,7 @@ var Snackbar = /*#__PURE__*/forwardRef((_ref, ref) => {
|
|
|
1683
1927
|
});
|
|
1684
1928
|
if (process.env.NODE_ENV !== "production") Snackbar.displayName = "Snackbar";
|
|
1685
1929
|
|
|
1686
|
-
var _excluded$
|
|
1930
|
+
var _excluded$l = ["onClose", "variant", "key", "id", "autoHideDuration"];
|
|
1687
1931
|
|
|
1688
1932
|
function warnContext() {
|
|
1689
1933
|
// eslint-disable-next-line no-console
|
|
@@ -1729,7 +1973,7 @@ function SnackbarStackProvider(_ref2) {
|
|
|
1729
1973
|
id = String(key),
|
|
1730
1974
|
autoHideDuration = 5000
|
|
1731
1975
|
} = _ref3,
|
|
1732
|
-
props = _objectWithoutProperties(_ref3, _excluded$
|
|
1976
|
+
props = _objectWithoutProperties(_ref3, _excluded$l);
|
|
1733
1977
|
|
|
1734
1978
|
function removeSnackbar() {
|
|
1735
1979
|
setStack(prev => {
|
|
@@ -1826,8 +2070,8 @@ var Stack = /*#__PURE__*/forwardRef((_ref2, ref) => {
|
|
|
1826
2070
|
});
|
|
1827
2071
|
if (process.env.NODE_ENV !== "production") Stack.displayName = "Stack";
|
|
1828
2072
|
|
|
1829
|
-
var _excluded$
|
|
1830
|
-
var useStyles$
|
|
2073
|
+
var _excluded$m = ["color", "variant", "children", "classes", "className", "noWrap", "fontWeight", "component"];
|
|
2074
|
+
var useStyles$c = /*#__PURE__*/makeStyles(theme => ({
|
|
1831
2075
|
root: {
|
|
1832
2076
|
maxWidth: '100%',
|
|
1833
2077
|
alignItems: 'center',
|
|
@@ -1910,9 +2154,9 @@ var Tag = /*#__PURE__*/forwardRef((_ref, ref) => {
|
|
|
1910
2154
|
fontWeight = 'bold',
|
|
1911
2155
|
component = 'div'
|
|
1912
2156
|
} = _ref,
|
|
1913
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
2157
|
+
props = _objectWithoutProperties(_ref, _excluded$m);
|
|
1914
2158
|
|
|
1915
|
-
var styles = useStyles$
|
|
2159
|
+
var styles = useStyles$c({
|
|
1916
2160
|
classes
|
|
1917
2161
|
});
|
|
1918
2162
|
return /*#__PURE__*/jsx(Typography, _objectSpread(_objectSpread({}, props), {}, {
|
|
@@ -3359,7 +3603,7 @@ function columnVariant(columns) {
|
|
|
3359
3603
|
};
|
|
3360
3604
|
}
|
|
3361
3605
|
|
|
3362
|
-
var useStyles$
|
|
3606
|
+
var useStyles$d = /*#__PURE__*/makeStyles(theme => ({
|
|
3363
3607
|
root: {
|
|
3364
3608
|
paddingTop: PREVENT_COLLAPSE,
|
|
3365
3609
|
'&:before': {
|
|
@@ -3403,7 +3647,7 @@ var Tiles = /*#__PURE__*/forwardRef((_ref, ref) => {
|
|
|
3403
3647
|
space: spaceProp = 1,
|
|
3404
3648
|
columns: columnsProp = 1
|
|
3405
3649
|
} = _ref;
|
|
3406
|
-
var styles = useStyles$
|
|
3650
|
+
var styles = useStyles$d({});
|
|
3407
3651
|
var space = useResponsivePropRecord(spaceProp);
|
|
3408
3652
|
var columns = useResponsivePropRecord(columnsProp);
|
|
3409
3653
|
return /*#__PURE__*/jsx("div", {
|
|
@@ -3423,23 +3667,5 @@ var Tiles = /*#__PURE__*/forwardRef((_ref, ref) => {
|
|
|
3423
3667
|
});
|
|
3424
3668
|
if (process.env.NODE_ENV !== "production") Tiles.displayName = "Tiles";
|
|
3425
3669
|
|
|
3426
|
-
|
|
3427
|
-
for (var _len = arguments.length, refs = new Array(_len), _key = 0; _key < _len; _key++) {
|
|
3428
|
-
refs[_key] = arguments[_key];
|
|
3429
|
-
}
|
|
3430
|
-
|
|
3431
|
-
return node => {
|
|
3432
|
-
refs.forEach(ref => {
|
|
3433
|
-
if (ref) {
|
|
3434
|
-
if (typeof ref === 'function') {
|
|
3435
|
-
ref(node);
|
|
3436
|
-
} else {
|
|
3437
|
-
ref.current = node;
|
|
3438
|
-
}
|
|
3439
|
-
}
|
|
3440
|
-
});
|
|
3441
|
-
};
|
|
3442
|
-
}
|
|
3443
|
-
|
|
3444
|
-
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, isColorProp, isEmptyReactNode, mergeRefs, parseAlignProp, parseCollapsedBelow, parseResponsiveProp, parseSpaceProp, renderChildren, useCollapseBreakpoint, useResponsiveContext, useResponsiveProp, useResponsivePropRecord, useResponsiveValue, useSnackbarStack, useUID, useVisibilityObserver };
|
|
3670
|
+
export { AdaptiveToolbar, AdaptiveVerticalToolbar, 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, useResizeObserver, useResponsiveContext, useResponsiveProp, useResponsivePropRecord, useResponsiveValue, useSnackbarStack, useUID, useVisibilityObserver };
|
|
3445
3671
|
//# sourceMappingURL=index.js.map
|