@superdispatch/ui 0.21.5-alpha.4 → 0.21.8
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 +1359 -1442
- package/dist-node/index.js.map +1 -1
- package/dist-src/adaptive-toolbar/AdaptiveToolbar.js +12 -14
- package/dist-src/adaptive-vertical-toolbar/AdaptiveVerticalToolbar.js +3 -3
- package/dist-src/app-bar/AppBarOverrides.js +4 -6
- package/dist-src/autocomplete/AutocompleteOverrides.js +18 -14
- package/dist-src/avatar/AvatarOverrides.js +12 -14
- package/dist-src/avatar-button/AvatarButton.js +92 -80
- package/dist-src/button/Button.js +15 -11
- package/dist-src/button/ButtonOverrides.js +149 -147
- package/dist-src/card/CardOverrides.js +6 -10
- package/dist-src/card-button/CardButton.js +75 -78
- package/dist-src/checkbox/CheckboxField.js +1 -1
- package/dist-src/checkbox/CheckboxGroudField.js +1 -1
- package/dist-src/checkbox/CheckboxOverrides.js +50 -60
- package/dist-src/chip/ChipOverrides.js +85 -88
- package/dist-src/description-list/DescriptionList.js +55 -58
- package/dist-src/dialog/DialogOverrides.js +25 -31
- package/dist-src/drawer/DrawerActions.js +34 -32
- package/dist-src/drawer/DrawerContent.js +26 -10
- package/dist-src/drawer/DrawerList.js +27 -8
- package/dist-src/drawer/DrawerOverrides.js +10 -12
- package/dist-src/drawer/DrawerTitle.js +40 -46
- package/dist-src/dropdown-button/DropdownButton.js +1 -1
- package/dist-src/grid/GridStack.js +1 -1
- package/dist-src/grid/InlineGrid.js +2 -2
- package/dist-src/icon-button/IconButtonOverrides.js +32 -48
- package/dist-src/info-card/InfoCard.js +37 -27
- package/dist-src/link/LinkOverrides.js +26 -29
- package/dist-src/list/ListOverrides.js +7 -10
- package/dist-src/menu/MenuOverrides.js +14 -28
- package/dist-src/number-field/NumberField.js +3 -2
- package/dist-src/overflow-text/OverflowText.js +34 -35
- package/dist-src/pagination/PaginationOverrides.js +32 -27
- package/dist-src/paper/PaperOverrides.js +6 -8
- package/dist-src/radio/RadioField.js +1 -1
- package/dist-src/radio/RadioGroupField.js +1 -1
- package/dist-src/radio/RadioOverrides.js +36 -38
- package/dist-src/responsive/ResponsiveContext.js +1 -1
- package/dist-src/snackbar/Snackbar.js +1 -1
- package/dist-src/snackbar/SnackbarContent.js +3 -3
- package/dist-src/snackbar/SnackbarOverrides.js +18 -28
- package/dist-src/svg-icon/SvgIconOverrides.js +18 -28
- package/dist-src/switch/SwitchOverrides.js +71 -72
- package/dist-src/tabs/TabsOverrides.js +30 -34
- package/dist-src/tag/Tag.js +2 -2
- package/dist-src/text-field/TextFieldOverrides.js +137 -158
- package/dist-src/theme/ThemeProvider.js +28 -25
- package/dist-src/tiles/Tiles.js +3 -4
- package/dist-src/toolbar/ToolbarOverrides.js +8 -10
- package/dist-src/tooltip/TooltipOverrides.js +30 -33
- package/dist-src/typography/TypographyOverrides.js +2 -12
- package/dist-types/index.d.ts +381 -385
- package/dist-web/index.js +1291 -1374
- package/dist-web/index.js.map +1 -1
- package/package.json +39 -39
- package/dist-src/theme/CssBaselineOverrides.js +0 -8
package/dist-node/index.js
CHANGED
|
@@ -6,44 +6,46 @@ function _interopDefault (ex) { return (ex && (typeof ex === 'object') && 'defau
|
|
|
6
6
|
|
|
7
7
|
var _objectSpread = _interopDefault(require('@babel/runtime/helpers/objectSpread2'));
|
|
8
8
|
var _objectWithoutProperties = _interopDefault(require('@babel/runtime/helpers/objectWithoutProperties'));
|
|
9
|
-
var
|
|
10
|
-
var
|
|
9
|
+
var core = require('@material-ui/core');
|
|
10
|
+
var icons = require('@material-ui/icons');
|
|
11
|
+
var styles = require('@material-ui/styles');
|
|
11
12
|
var React = require('react');
|
|
12
|
-
var lab = require('@mui/lab');
|
|
13
13
|
var jsxRuntime = require('react/jsx-runtime');
|
|
14
14
|
var styled = require('styled-components');
|
|
15
15
|
var styled__default = _interopDefault(styled);
|
|
16
16
|
var resizeObserver = require('@juggle/resize-observer');
|
|
17
17
|
var hooks = require('@superdispatch/hooks');
|
|
18
|
-
var
|
|
18
|
+
var clsx = _interopDefault(require('clsx'));
|
|
19
19
|
var flattenChildren = _interopDefault(require('react-keyed-flatten-children'));
|
|
20
20
|
var NumberFormat = _interopDefault(require('react-number-format'));
|
|
21
|
-
var
|
|
22
|
-
var system = require('@mui/system');
|
|
21
|
+
var createBreakpoints = _interopDefault(require('@material-ui/core/styles/createBreakpoints'));
|
|
23
22
|
|
|
24
|
-
var _excluded = ["size", "children", "isActive", "isLoading", "color"];
|
|
23
|
+
var _excluded = ["size", "children", "disabled", "isActive", "isLoading", "color"];
|
|
25
24
|
var Button = /*#__PURE__*/React.forwardRef((_ref, ref) => {
|
|
26
25
|
var {
|
|
27
26
|
size,
|
|
28
27
|
children,
|
|
28
|
+
disabled,
|
|
29
29
|
isActive,
|
|
30
30
|
isLoading,
|
|
31
31
|
color = 'primary'
|
|
32
32
|
} = _ref,
|
|
33
33
|
props = _objectWithoutProperties(_ref, _excluded);
|
|
34
34
|
|
|
35
|
-
return /*#__PURE__*/jsxRuntime.jsx(
|
|
35
|
+
return /*#__PURE__*/jsxRuntime.jsx(core.Button, _objectSpread(_objectSpread({}, props), {}, {
|
|
36
36
|
ref: ref,
|
|
37
37
|
size: size,
|
|
38
38
|
"data-color": color,
|
|
39
|
-
|
|
39
|
+
"aria-busy": isLoading,
|
|
40
40
|
"aria-expanded": isActive,
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
41
|
+
disabled: disabled || isLoading,
|
|
42
|
+
color: color === 'primary' ? color : 'default',
|
|
43
|
+
children: !isLoading ? children : /*#__PURE__*/jsxRuntime.jsxs(jsxRuntime.Fragment, {
|
|
44
|
+
children: [children, /*#__PURE__*/jsxRuntime.jsx(core.CircularProgress, {
|
|
45
|
+
size: "1em",
|
|
46
|
+
color: "inherit"
|
|
47
|
+
})]
|
|
48
|
+
})
|
|
47
49
|
}));
|
|
48
50
|
});
|
|
49
51
|
if (process.env.NODE_ENV !== "production") Button.displayName = "Button";
|
|
@@ -106,7 +108,7 @@ var DropdownButton = /*#__PURE__*/React.forwardRef((_ref2, ref) => {
|
|
|
106
108
|
}
|
|
107
109
|
|
|
108
110
|
return /*#__PURE__*/jsxRuntime.jsxs(jsxRuntime.Fragment, {
|
|
109
|
-
children: [/*#__PURE__*/jsxRuntime.jsxs(
|
|
111
|
+
children: [/*#__PURE__*/jsxRuntime.jsxs(core.ButtonGroup, _objectSpread(_objectSpread({}, ButtonGroupProps), {}, {
|
|
110
112
|
ref: mergeRefs(ButtonGroupProps === null || ButtonGroupProps === void 0 ? void 0 : ButtonGroupProps.ref, anchorRef),
|
|
111
113
|
fullWidth: (ButtonGroupProps === null || ButtonGroupProps === void 0 ? void 0 : ButtonGroupProps.fullWidth) || buttonProps.fullWidth,
|
|
112
114
|
children: [/*#__PURE__*/jsxRuntime.jsx(Button, _objectSpread(_objectSpread({
|
|
@@ -126,7 +128,7 @@ var DropdownButton = /*#__PURE__*/React.forwardRef((_ref2, ref) => {
|
|
|
126
128
|
"aria-expanded": open ? 'true' : undefined,
|
|
127
129
|
children: /*#__PURE__*/jsxRuntime.jsx(CaretDownIcon, {})
|
|
128
130
|
})]
|
|
129
|
-
})), /*#__PURE__*/jsxRuntime.jsx(
|
|
131
|
+
})), /*#__PURE__*/jsxRuntime.jsx(core.Popover, {
|
|
130
132
|
open: open,
|
|
131
133
|
onClose: handleClose,
|
|
132
134
|
anchorEl: anchorRef.current,
|
|
@@ -138,7 +140,7 @@ var DropdownButton = /*#__PURE__*/React.forwardRef((_ref2, ref) => {
|
|
|
138
140
|
style: {
|
|
139
141
|
minWidth: (_anchorRef$current2 = anchorRef.current) === null || _anchorRef$current2 === void 0 ? void 0 : _anchorRef$current2.clientWidth
|
|
140
142
|
},
|
|
141
|
-
children: /*#__PURE__*/jsxRuntime.jsx(
|
|
143
|
+
children: /*#__PURE__*/jsxRuntime.jsx(core.MenuList, _objectSpread(_objectSpread({}, MenuListProps), {}, {
|
|
142
144
|
id: uid,
|
|
143
145
|
onClick: () => {
|
|
144
146
|
setOpen(false);
|
|
@@ -170,12 +172,12 @@ function useResizeObserver(node, observer) {
|
|
|
170
172
|
}
|
|
171
173
|
|
|
172
174
|
var _excluded$2 = ["items"];
|
|
173
|
-
var
|
|
174
|
-
|
|
175
|
-
})(() => {
|
|
176
|
-
return {
|
|
175
|
+
var useStyles = /*#__PURE__*/styles.makeStyles({
|
|
176
|
+
actions: {
|
|
177
177
|
overflow: 'hidden'
|
|
178
|
-
}
|
|
178
|
+
}
|
|
179
|
+
}, {
|
|
180
|
+
name: 'SD-AdaptiveToolbar'
|
|
179
181
|
});
|
|
180
182
|
var AdaptiveToolbar = /*#__PURE__*/React.forwardRef((_ref, ref) => {
|
|
181
183
|
var {
|
|
@@ -183,6 +185,7 @@ var AdaptiveToolbar = /*#__PURE__*/React.forwardRef((_ref, ref) => {
|
|
|
183
185
|
} = _ref,
|
|
184
186
|
props = _objectWithoutProperties(_ref, _excluded$2);
|
|
185
187
|
|
|
188
|
+
var styles = useStyles();
|
|
186
189
|
var itemNodes = React.useRef([]);
|
|
187
190
|
var optionsButtonRef = React.useRef(null);
|
|
188
191
|
var [firstHiddenIdx, setFirstHiddenIdx] = React.useState(-1);
|
|
@@ -218,20 +221,21 @@ var AdaptiveToolbar = /*#__PURE__*/React.forwardRef((_ref, ref) => {
|
|
|
218
221
|
|
|
219
222
|
setFirstHiddenIdx(hiddenIdx);
|
|
220
223
|
});
|
|
221
|
-
return /*#__PURE__*/jsxRuntime.jsx(
|
|
224
|
+
return /*#__PURE__*/jsxRuntime.jsx(core.Toolbar, _objectSpread(_objectSpread({}, props), {}, {
|
|
222
225
|
ref: ref,
|
|
223
|
-
children: /*#__PURE__*/jsxRuntime.jsxs(
|
|
226
|
+
children: /*#__PURE__*/jsxRuntime.jsxs(core.Grid, {
|
|
224
227
|
container: true,
|
|
225
228
|
spacing: 1,
|
|
226
229
|
ref: setRootNode,
|
|
227
|
-
children: [/*#__PURE__*/jsxRuntime.jsx(
|
|
230
|
+
children: [/*#__PURE__*/jsxRuntime.jsx(core.Grid, {
|
|
228
231
|
item: true,
|
|
229
|
-
|
|
232
|
+
className: styles.actions,
|
|
233
|
+
children: /*#__PURE__*/jsxRuntime.jsx(core.Grid, {
|
|
230
234
|
container: true,
|
|
231
235
|
spacing: 1,
|
|
232
236
|
wrap: "nowrap",
|
|
233
237
|
component: "div",
|
|
234
|
-
children: items.map((item, idx) => /*#__PURE__*/jsxRuntime.jsx(
|
|
238
|
+
children: items.map((item, idx) => /*#__PURE__*/jsxRuntime.jsx(core.Grid, {
|
|
235
239
|
item: true,
|
|
236
240
|
ref: node => {
|
|
237
241
|
itemNodes.current[idx] = node;
|
|
@@ -241,17 +245,15 @@ var AdaptiveToolbar = /*#__PURE__*/React.forwardRef((_ref, ref) => {
|
|
|
241
245
|
onClick: item.onClick,
|
|
242
246
|
label: item.label
|
|
243
247
|
}, item.ButtonProps), {}, {
|
|
244
|
-
children: item.dropdown.map(dropdownItem => /*#__PURE__*/jsxRuntime.jsx(
|
|
248
|
+
children: item.dropdown.map(dropdownItem => /*#__PURE__*/jsxRuntime.jsx(core.MenuItem, {
|
|
245
249
|
onClick: dropdownItem.onClick,
|
|
246
250
|
children: dropdownItem.label
|
|
247
251
|
}, dropdownItem.key))
|
|
248
252
|
})) : /*#__PURE__*/jsxRuntime.jsx(Button, _objectSpread(_objectSpread({
|
|
249
253
|
type: "button",
|
|
250
|
-
color: "primary",
|
|
251
|
-
variant: "outlined",
|
|
252
254
|
onClick: item.onClick
|
|
253
255
|
}, item.ButtonProps), {}, {
|
|
254
|
-
children: /*#__PURE__*/jsxRuntime.jsx(
|
|
256
|
+
children: /*#__PURE__*/jsxRuntime.jsx(core.Typography, {
|
|
255
257
|
noWrap: true,
|
|
256
258
|
variant: "inherit",
|
|
257
259
|
children: item.label
|
|
@@ -259,21 +261,20 @@ var AdaptiveToolbar = /*#__PURE__*/React.forwardRef((_ref, ref) => {
|
|
|
259
261
|
}))
|
|
260
262
|
}, item.key))
|
|
261
263
|
})
|
|
262
|
-
}), menuItems.length > 0 && /*#__PURE__*/jsxRuntime.jsxs(
|
|
264
|
+
}), menuItems.length > 0 && /*#__PURE__*/jsxRuntime.jsxs(core.Grid, {
|
|
263
265
|
item: true,
|
|
264
266
|
ref: optionsButtonRef,
|
|
265
267
|
component: "div",
|
|
266
268
|
children: [/*#__PURE__*/jsxRuntime.jsx(Button, {
|
|
267
269
|
type: "button",
|
|
268
|
-
variant: "outlined",
|
|
269
270
|
onClick: _ref2 => {
|
|
270
271
|
var {
|
|
271
272
|
currentTarget
|
|
272
273
|
} = _ref2;
|
|
273
274
|
setMenuButtonRef(currentTarget);
|
|
274
275
|
},
|
|
275
|
-
children: /*#__PURE__*/jsxRuntime.jsx(
|
|
276
|
-
}), /*#__PURE__*/jsxRuntime.jsx(
|
|
276
|
+
children: /*#__PURE__*/jsxRuntime.jsx(icons.MoreHoriz, {})
|
|
277
|
+
}), /*#__PURE__*/jsxRuntime.jsx(core.Menu, {
|
|
277
278
|
open: !!menuButtonNode,
|
|
278
279
|
anchorEl: menuButtonNode,
|
|
279
280
|
onClose: () => {
|
|
@@ -284,7 +285,7 @@ var AdaptiveToolbar = /*#__PURE__*/React.forwardRef((_ref, ref) => {
|
|
|
284
285
|
|
|
285
286
|
var next = arr[index + 1];
|
|
286
287
|
return /*#__PURE__*/jsxRuntime.jsxs(jsxRuntime.Fragment, {
|
|
287
|
-
children: [/*#__PURE__*/jsxRuntime.jsx(
|
|
288
|
+
children: [/*#__PURE__*/jsxRuntime.jsx(core.MenuItem, {
|
|
288
289
|
onClick: event => {
|
|
289
290
|
var _item$onClick;
|
|
290
291
|
|
|
@@ -292,7 +293,7 @@ var AdaptiveToolbar = /*#__PURE__*/React.forwardRef((_ref, ref) => {
|
|
|
292
293
|
setMenuButtonRef(undefined);
|
|
293
294
|
},
|
|
294
295
|
children: item.label
|
|
295
|
-
}, item.key), (_item$dropdown = item.dropdown) === null || _item$dropdown === void 0 ? void 0 : _item$dropdown.map(dropdownItem => /*#__PURE__*/jsxRuntime.jsx(
|
|
296
|
+
}, item.key), (_item$dropdown = item.dropdown) === null || _item$dropdown === void 0 ? void 0 : _item$dropdown.map(dropdownItem => /*#__PURE__*/jsxRuntime.jsx(core.MenuItem, {
|
|
296
297
|
onClick: event => {
|
|
297
298
|
var _dropdownItem$onClick;
|
|
298
299
|
|
|
@@ -300,7 +301,7 @@ var AdaptiveToolbar = /*#__PURE__*/React.forwardRef((_ref, ref) => {
|
|
|
300
301
|
setMenuButtonRef(undefined);
|
|
301
302
|
},
|
|
302
303
|
children: dropdownItem.label
|
|
303
|
-
}, dropdownItem.key)), next && item.groupKey !== next.groupKey && /*#__PURE__*/jsxRuntime.jsx(
|
|
304
|
+
}, dropdownItem.key)), next && item.groupKey !== next.groupKey && /*#__PURE__*/jsxRuntime.jsx(core.Divider, {})]
|
|
304
305
|
});
|
|
305
306
|
})
|
|
306
307
|
})]
|
|
@@ -331,7 +332,7 @@ function assignRef(ref, value) {
|
|
|
331
332
|
}
|
|
332
333
|
}
|
|
333
334
|
|
|
334
|
-
var useStyles = /*#__PURE__*/styles.makeStyles({
|
|
335
|
+
var useStyles$1 = /*#__PURE__*/styles.makeStyles({
|
|
335
336
|
root: {
|
|
336
337
|
overflow: 'hidden',
|
|
337
338
|
height: '100%'
|
|
@@ -342,7 +343,7 @@ var useStyles = /*#__PURE__*/styles.makeStyles({
|
|
|
342
343
|
|
|
343
344
|
var defaultMoreElement = /*#__PURE__*/jsxRuntime.jsx(Button, {
|
|
344
345
|
type: "button",
|
|
345
|
-
children: /*#__PURE__*/jsxRuntime.jsx(
|
|
346
|
+
children: /*#__PURE__*/jsxRuntime.jsx(icons.MoreHoriz, {})
|
|
346
347
|
});
|
|
347
348
|
|
|
348
349
|
var AdaptiveVerticalToolbar = /*#__PURE__*/React.forwardRef((_ref, ref) => {
|
|
@@ -353,7 +354,7 @@ var AdaptiveVerticalToolbar = /*#__PURE__*/React.forwardRef((_ref, ref) => {
|
|
|
353
354
|
renderItem = item => item.label,
|
|
354
355
|
renderMenuItem = item => item.label
|
|
355
356
|
} = _ref;
|
|
356
|
-
var styles = useStyles();
|
|
357
|
+
var styles = useStyles$1();
|
|
357
358
|
var itemNodes = React.useRef([]);
|
|
358
359
|
var optionsButtonRef = React.useRef(null);
|
|
359
360
|
var [firstHiddenIdx, setFirstHiddenIdx] = React.useState(-1);
|
|
@@ -388,7 +389,7 @@ var AdaptiveVerticalToolbar = /*#__PURE__*/React.forwardRef((_ref, ref) => {
|
|
|
388
389
|
|
|
389
390
|
setFirstHiddenIdx(hiddenIdx);
|
|
390
391
|
});
|
|
391
|
-
return /*#__PURE__*/jsxRuntime.jsxs(
|
|
392
|
+
return /*#__PURE__*/jsxRuntime.jsxs(core.Grid, {
|
|
392
393
|
direction: "column",
|
|
393
394
|
container: true,
|
|
394
395
|
wrap: "nowrap",
|
|
@@ -397,13 +398,13 @@ var AdaptiveVerticalToolbar = /*#__PURE__*/React.forwardRef((_ref, ref) => {
|
|
|
397
398
|
ref: mergeRefs(ref, node => {
|
|
398
399
|
setRootNode(node);
|
|
399
400
|
}),
|
|
400
|
-
children: [items.map((item, idx) => /*#__PURE__*/jsxRuntime.jsx(
|
|
401
|
+
children: [items.map((item, idx) => /*#__PURE__*/jsxRuntime.jsx(core.Grid, {
|
|
401
402
|
item: true,
|
|
402
403
|
ref: node => {
|
|
403
404
|
itemNodes.current[idx] = node;
|
|
404
405
|
},
|
|
405
406
|
children: renderItem(item)
|
|
406
|
-
}, item.key)), menuItems.length > 0 && /*#__PURE__*/jsxRuntime.jsxs(
|
|
407
|
+
}, item.key)), menuItems.length > 0 && /*#__PURE__*/jsxRuntime.jsxs(core.Grid, {
|
|
407
408
|
item: true,
|
|
408
409
|
ref: optionsButtonRef,
|
|
409
410
|
component: "div",
|
|
@@ -414,7 +415,7 @@ var AdaptiveVerticalToolbar = /*#__PURE__*/React.forwardRef((_ref, ref) => {
|
|
|
414
415
|
} = _ref2;
|
|
415
416
|
setMenuButtonRef(currentTarget);
|
|
416
417
|
}
|
|
417
|
-
}), /*#__PURE__*/jsxRuntime.jsx(
|
|
418
|
+
}), /*#__PURE__*/jsxRuntime.jsx(core.Menu, {
|
|
418
419
|
open: !!menuButtonNode,
|
|
419
420
|
anchorEl: menuButtonNode,
|
|
420
421
|
onClose: () => {
|
|
@@ -422,7 +423,7 @@ var AdaptiveVerticalToolbar = /*#__PURE__*/React.forwardRef((_ref, ref) => {
|
|
|
422
423
|
},
|
|
423
424
|
children: menuItems.flatMap((item, index, arr) => {
|
|
424
425
|
var next = arr[index + 1];
|
|
425
|
-
return [/*#__PURE__*/jsxRuntime.jsx(
|
|
426
|
+
return [/*#__PURE__*/jsxRuntime.jsx(core.MenuItem, {
|
|
426
427
|
onClick: event => {
|
|
427
428
|
var _item$onClick;
|
|
428
429
|
|
|
@@ -430,7 +431,7 @@ var AdaptiveVerticalToolbar = /*#__PURE__*/React.forwardRef((_ref, ref) => {
|
|
|
430
431
|
setMenuButtonRef(undefined);
|
|
431
432
|
},
|
|
432
433
|
children: renderMenuItem(item)
|
|
433
|
-
}, item.key), next && next.menuGroupKey !== item.menuGroupKey && /*#__PURE__*/jsxRuntime.jsx(
|
|
434
|
+
}, item.key), next && next.menuGroupKey !== item.menuGroupKey && /*#__PURE__*/jsxRuntime.jsx(core.Divider, {}, "".concat(item.key, "-divider"))];
|
|
434
435
|
})
|
|
435
436
|
})]
|
|
436
437
|
})]
|
|
@@ -514,81 +515,66 @@ function isColorProp(name) {
|
|
|
514
515
|
return typeof name == 'string' && Object.prototype.hasOwnProperty.call(exports.Color, name);
|
|
515
516
|
}
|
|
516
517
|
|
|
517
|
-
var _excluded$3 = ["size", "icon", "isLoading", "disabled", "avatarRef", "alt", "imgProps", "sizes", "src", "srcSet", "variant", "children"]
|
|
518
|
-
|
|
519
|
-
|
|
520
|
-
theme
|
|
521
|
-
} = _ref;
|
|
522
|
-
var sm = theme.breakpoints.up('sm');
|
|
523
|
-
return {
|
|
524
|
-
top: 0,
|
|
525
|
-
left: 0,
|
|
526
|
-
right: 0,
|
|
527
|
-
bottom: 0,
|
|
528
|
-
position: 'absolute',
|
|
529
|
-
display: 'flex',
|
|
530
|
-
alignItems: 'center',
|
|
531
|
-
justifyContent: 'center',
|
|
532
|
-
borderRadius: '50%',
|
|
533
|
-
backgroundColor: exports.Color.Transparent,
|
|
534
|
-
transition: theme.transitions.create('background-color'),
|
|
535
|
-
'& > svg': {
|
|
536
|
-
opacity: 0,
|
|
537
|
-
color: exports.Color.White,
|
|
538
|
-
transition: theme.transitions.create('opacity'),
|
|
539
|
-
fontSize: theme.spacing(3),
|
|
540
|
-
[sm]: {
|
|
541
|
-
fontSize: theme.spacing(2)
|
|
542
|
-
}
|
|
543
|
-
}
|
|
544
|
-
};
|
|
545
|
-
});
|
|
546
|
-
var StyledProgress = /*#__PURE__*/material.styled(material.CircularProgress)(props => {
|
|
547
|
-
var {
|
|
548
|
-
theme
|
|
549
|
-
} = props;
|
|
550
|
-
var sm = theme.breakpoints.up('sm');
|
|
551
|
-
return {
|
|
552
|
-
top: 0,
|
|
553
|
-
left: 0,
|
|
554
|
-
position: 'absolute',
|
|
555
|
-
fontSize: theme.spacing(5),
|
|
556
|
-
[sm]: {
|
|
557
|
-
fontSize: theme.spacing(4)
|
|
558
|
-
}
|
|
559
|
-
};
|
|
560
|
-
}); // eslint-disable-next-line @typescript-eslint/ban-ts-comment
|
|
561
|
-
// @ts-ignore
|
|
562
|
-
|
|
563
|
-
var StyledButton = /*#__PURE__*/material.styled(material.ButtonBase, {
|
|
564
|
-
name: 'SD-AvatarButton'
|
|
565
|
-
})(_ref2 => {
|
|
566
|
-
var {
|
|
567
|
-
theme
|
|
568
|
-
} = _ref2;
|
|
518
|
+
var _excluded$3 = ["size", "icon", "isLoading", "classes", "disabled", "avatarRef", "className", "alt", "imgProps", "sizes", "src", "srcSet", "variant", "children"],
|
|
519
|
+
_excluded2 = ["button", "overlay", "progress", "withIcon", "sizeLarge"];
|
|
520
|
+
var useStyles$2 = /*#__PURE__*/styles.makeStyles(theme => {
|
|
569
521
|
var sm = theme.breakpoints.up('sm');
|
|
570
522
|
return {
|
|
571
|
-
|
|
572
|
-
|
|
573
|
-
[
|
|
574
|
-
|
|
523
|
+
button: {
|
|
524
|
+
borderRadius: '50%',
|
|
525
|
+
'&[disabled], &[aria-busy="true"]': {
|
|
526
|
+
'& > $overlay': {
|
|
527
|
+
backgroundColor: exports.Color.White50
|
|
528
|
+
}
|
|
529
|
+
},
|
|
530
|
+
'&:not([disabled])[aria-busy="false"]': {
|
|
531
|
+
'&:hover, &:focus': {
|
|
532
|
+
'&$withIcon > $overlay': {
|
|
533
|
+
backgroundColor: exports.Color.Black50,
|
|
534
|
+
'& > svg': {
|
|
535
|
+
opacity: 1
|
|
536
|
+
}
|
|
537
|
+
},
|
|
538
|
+
'&:not($withIcon) > $overlay': {
|
|
539
|
+
backgroundColor: exports.Color.Black20
|
|
540
|
+
}
|
|
541
|
+
}
|
|
575
542
|
}
|
|
576
543
|
},
|
|
577
|
-
|
|
578
|
-
|
|
579
|
-
|
|
580
|
-
|
|
581
|
-
|
|
582
|
-
|
|
583
|
-
|
|
584
|
-
|
|
585
|
-
|
|
586
|
-
|
|
544
|
+
overlay: {
|
|
545
|
+
top: 0,
|
|
546
|
+
left: 0,
|
|
547
|
+
right: 0,
|
|
548
|
+
bottom: 0,
|
|
549
|
+
position: 'absolute',
|
|
550
|
+
display: 'flex',
|
|
551
|
+
alignItems: 'center',
|
|
552
|
+
justifyContent: 'center',
|
|
553
|
+
borderRadius: '50%',
|
|
554
|
+
backgroundColor: exports.Color.Transparent,
|
|
555
|
+
transition: theme.transitions.create('background-color'),
|
|
556
|
+
'& > svg': {
|
|
557
|
+
opacity: 0,
|
|
558
|
+
color: exports.Color.White,
|
|
559
|
+
transition: theme.transitions.create('opacity'),
|
|
560
|
+
fontSize: theme.spacing(3),
|
|
561
|
+
[sm]: {
|
|
562
|
+
fontSize: theme.spacing(2)
|
|
587
563
|
}
|
|
588
564
|
}
|
|
589
565
|
},
|
|
590
|
-
|
|
591
|
-
|
|
566
|
+
progress: {
|
|
567
|
+
top: 0,
|
|
568
|
+
left: 0,
|
|
569
|
+
position: 'absolute',
|
|
570
|
+
fontSize: theme.spacing(5),
|
|
571
|
+
[sm]: {
|
|
572
|
+
fontSize: theme.spacing(4)
|
|
573
|
+
}
|
|
574
|
+
},
|
|
575
|
+
withIcon: {},
|
|
576
|
+
sizeLarge: {
|
|
577
|
+
'& > $root': _objectSpread(_objectSpread({}, theme.typography.h2), {}, {
|
|
592
578
|
width: theme.spacing(7),
|
|
593
579
|
height: theme.spacing(7),
|
|
594
580
|
[sm]: {
|
|
@@ -596,8 +582,8 @@ var StyledButton = /*#__PURE__*/material.styled(material.ButtonBase, {
|
|
|
596
582
|
height: theme.spacing(8)
|
|
597
583
|
}
|
|
598
584
|
}),
|
|
599
|
-
|
|
600
|
-
|
|
585
|
+
'& > $overlay': {
|
|
586
|
+
'& > $progress': {
|
|
601
587
|
fontSize: theme.spacing(7),
|
|
602
588
|
[sm]: {
|
|
603
589
|
fontSize: theme.spacing(8)
|
|
@@ -610,16 +596,27 @@ var StyledButton = /*#__PURE__*/material.styled(material.ButtonBase, {
|
|
|
610
596
|
}
|
|
611
597
|
}
|
|
612
598
|
}
|
|
613
|
-
}
|
|
599
|
+
},
|
|
600
|
+
root: {},
|
|
601
|
+
colorDefault: {},
|
|
602
|
+
circular: {},
|
|
603
|
+
rounded: {},
|
|
604
|
+
square: {},
|
|
605
|
+
img: {},
|
|
606
|
+
fallback: {}
|
|
614
607
|
};
|
|
608
|
+
}, {
|
|
609
|
+
name: 'SD-AvatarButton'
|
|
615
610
|
});
|
|
616
|
-
var AvatarButton = /*#__PURE__*/React.forwardRef((
|
|
611
|
+
var AvatarButton = /*#__PURE__*/React.forwardRef((_ref, ref) => {
|
|
617
612
|
var {
|
|
618
613
|
size,
|
|
619
614
|
icon,
|
|
620
615
|
isLoading = false,
|
|
616
|
+
classes,
|
|
621
617
|
disabled = false,
|
|
622
618
|
avatarRef,
|
|
619
|
+
className,
|
|
623
620
|
alt,
|
|
624
621
|
imgProps,
|
|
625
622
|
sizes,
|
|
@@ -627,18 +624,30 @@ var AvatarButton = /*#__PURE__*/React.forwardRef((_ref3, ref) => {
|
|
|
627
624
|
srcSet,
|
|
628
625
|
variant,
|
|
629
626
|
children
|
|
630
|
-
} =
|
|
631
|
-
props = _objectWithoutProperties(
|
|
627
|
+
} = _ref,
|
|
628
|
+
props = _objectWithoutProperties(_ref, _excluded$3);
|
|
629
|
+
|
|
630
|
+
var _useStyles = useStyles$2({
|
|
631
|
+
classes
|
|
632
|
+
}),
|
|
633
|
+
{
|
|
634
|
+
button: buttonClassName,
|
|
635
|
+
overlay: overlayClassName,
|
|
636
|
+
progress: progressClassName,
|
|
637
|
+
withIcon: withIconClassName,
|
|
638
|
+
sizeLarge: sizeLargeClassName
|
|
639
|
+
} = _useStyles,
|
|
640
|
+
avatarClasses = _objectWithoutProperties(_useStyles, _excluded2);
|
|
632
641
|
|
|
633
|
-
return /*#__PURE__*/jsxRuntime.jsxs(
|
|
642
|
+
return /*#__PURE__*/jsxRuntime.jsxs(core.ButtonBase, _objectSpread(_objectSpread({}, props), {}, {
|
|
634
643
|
ref: ref,
|
|
635
644
|
"aria-busy": isLoading,
|
|
636
645
|
"aria-disabled": disabled,
|
|
637
646
|
disabled: disabled || isLoading,
|
|
638
|
-
|
|
639
|
-
|
|
640
|
-
children: [/*#__PURE__*/jsxRuntime.jsx(material.Avatar, {
|
|
647
|
+
className: clsx(className, buttonClassName, !!icon && withIconClassName, size === 'large' && sizeLargeClassName),
|
|
648
|
+
children: [/*#__PURE__*/jsxRuntime.jsx(core.Avatar, {
|
|
641
649
|
ref: avatarRef,
|
|
650
|
+
classes: avatarClasses,
|
|
642
651
|
variant: variant,
|
|
643
652
|
alt: alt,
|
|
644
653
|
src: src,
|
|
@@ -646,9 +655,11 @@ var AvatarButton = /*#__PURE__*/React.forwardRef((_ref3, ref) => {
|
|
|
646
655
|
srcSet: srcSet,
|
|
647
656
|
imgProps: imgProps,
|
|
648
657
|
children: children
|
|
649
|
-
}), /*#__PURE__*/jsxRuntime.jsxs(
|
|
650
|
-
|
|
658
|
+
}), /*#__PURE__*/jsxRuntime.jsxs("div", {
|
|
659
|
+
className: overlayClassName,
|
|
660
|
+
children: [icon, isLoading && /*#__PURE__*/jsxRuntime.jsx(core.CircularProgress, {
|
|
651
661
|
size: "1em",
|
|
662
|
+
className: progressClassName,
|
|
652
663
|
thickness: size === 'large' ? 2.5 : 1.5
|
|
653
664
|
})]
|
|
654
665
|
})]
|
|
@@ -657,11 +668,8 @@ var AvatarButton = /*#__PURE__*/React.forwardRef((_ref3, ref) => {
|
|
|
657
668
|
if (process.env.NODE_ENV !== "production") AvatarButton.displayName = "AvatarButton";
|
|
658
669
|
|
|
659
670
|
var _excluded$4 = ["hint", "size", "error", "classes", "className", "children", "endIcon", "startIcon", "disabled"];
|
|
660
|
-
var
|
|
661
|
-
|
|
662
|
-
theme
|
|
663
|
-
} = _ref;
|
|
664
|
-
return {
|
|
671
|
+
var useStyles$3 = /*#__PURE__*/styles.makeStyles(theme => ({
|
|
672
|
+
root: {
|
|
665
673
|
width: '100%',
|
|
666
674
|
display: 'flex',
|
|
667
675
|
alignItems: 'center',
|
|
@@ -672,74 +680,66 @@ var StyledButton$1 = /*#__PURE__*/material.styled(material.ButtonBase)(_ref => {
|
|
|
672
680
|
borderRadius: theme.spacing(0.5),
|
|
673
681
|
padding: theme.spacing(1.5),
|
|
674
682
|
minHeight: theme.spacing(13),
|
|
675
|
-
transition: theme.transitions.create(['color', 'box-shadow', 'border-color', 'background-color'])
|
|
676
|
-
|
|
677
|
-
|
|
678
|
-
|
|
679
|
-
|
|
680
|
-
|
|
681
|
-
|
|
682
|
-
|
|
683
|
-
|
|
684
|
-
|
|
685
|
-
|
|
686
|
-
|
|
687
|
-
|
|
688
|
-
|
|
689
|
-
|
|
690
|
-
|
|
691
|
-
|
|
692
|
-
|
|
693
|
-
|
|
694
|
-
|
|
695
|
-
backgroundColor: exports.Color.Red50,
|
|
696
|
-
'&:focus': {
|
|
697
|
-
backgroundColor: exports.Color.Red75
|
|
698
|
-
}
|
|
699
|
-
},
|
|
700
|
-
'&[data-size="small"]': {
|
|
701
|
-
minHeight: theme.spacing(6)
|
|
683
|
+
transition: theme.transitions.create(['color', 'box-shadow', 'border-color', 'background-color'])
|
|
684
|
+
},
|
|
685
|
+
disabled: {
|
|
686
|
+
color: exports.Color.Dark200,
|
|
687
|
+
borderColor: exports.Color.Silver500,
|
|
688
|
+
backgroundColor: exports.Color.Silver100
|
|
689
|
+
},
|
|
690
|
+
error: {
|
|
691
|
+
color: exports.Color.Red300,
|
|
692
|
+
borderColor: exports.Color.Red300,
|
|
693
|
+
backgroundColor: exports.Color.Red50,
|
|
694
|
+
'&:focus': {
|
|
695
|
+
backgroundColor: exports.Color.Red75
|
|
696
|
+
}
|
|
697
|
+
},
|
|
698
|
+
primary: {
|
|
699
|
+
color: exports.Color.Blue300,
|
|
700
|
+
borderColor: exports.Color.Silver500,
|
|
701
|
+
'&:focus': {
|
|
702
|
+
backgroundColor: exports.Color.Blue50
|
|
702
703
|
},
|
|
703
|
-
'
|
|
704
|
-
|
|
704
|
+
'&:hover, &:active': {
|
|
705
|
+
borderColor: exports.Color.Blue300,
|
|
706
|
+
backgroundColor: exports.Color.Blue50
|
|
705
707
|
}
|
|
706
|
-
}
|
|
707
|
-
|
|
708
|
-
|
|
709
|
-
|
|
710
|
-
|
|
711
|
-
|
|
712
|
-
|
|
713
|
-
|
|
714
|
-
|
|
715
|
-
|
|
716
|
-
|
|
717
|
-
|
|
718
|
-
};
|
|
719
|
-
});
|
|
720
|
-
var Icon = /*#__PURE__*/material.styled('span')(_ref3 => {
|
|
721
|
-
var {
|
|
722
|
-
theme
|
|
723
|
-
} = _ref3;
|
|
724
|
-
return {
|
|
708
|
+
},
|
|
709
|
+
sizeSmall: {
|
|
710
|
+
minHeight: theme.spacing(6)
|
|
711
|
+
},
|
|
712
|
+
sizeLarge: {
|
|
713
|
+
minHeight: theme.spacing(17.5)
|
|
714
|
+
},
|
|
715
|
+
label: {
|
|
716
|
+
display: 'flex',
|
|
717
|
+
alignItems: 'center'
|
|
718
|
+
},
|
|
719
|
+
icon: {
|
|
725
720
|
display: 'flex',
|
|
726
721
|
'& svg': {
|
|
727
722
|
fontSize: theme.spacing(3),
|
|
728
723
|
[theme.breakpoints.up('sm')]: {
|
|
729
724
|
fontSize: theme.spacing(2.5)
|
|
730
725
|
}
|
|
731
|
-
},
|
|
732
|
-
'&[data-placement="start"]': {
|
|
733
|
-
marginRight: theme.spacing(1),
|
|
734
|
-
marginLeft: theme.spacing(-0.5)
|
|
735
|
-
},
|
|
736
|
-
'&[data-placement="end"]': {
|
|
737
|
-
marginLeft: theme.spacing(1),
|
|
738
|
-
marginRight: theme.spacing(-0.5)
|
|
739
726
|
}
|
|
740
|
-
}
|
|
727
|
+
},
|
|
728
|
+
startIcon: {
|
|
729
|
+
marginRight: theme.spacing(1),
|
|
730
|
+
marginLeft: theme.spacing(-0.5)
|
|
731
|
+
},
|
|
732
|
+
endIcon: {
|
|
733
|
+
marginLeft: theme.spacing(1),
|
|
734
|
+
marginRight: theme.spacing(-0.5)
|
|
735
|
+
},
|
|
736
|
+
hint: {
|
|
737
|
+
marginTop: theme.spacing(0.5)
|
|
738
|
+
}
|
|
739
|
+
}), {
|
|
740
|
+
name: 'SD-CardButton'
|
|
741
741
|
});
|
|
742
|
-
var CardButton = /*#__PURE__*/React.forwardRef((
|
|
742
|
+
var CardButton = /*#__PURE__*/React.forwardRef((_ref, ref) => {
|
|
743
743
|
var {
|
|
744
744
|
hint,
|
|
745
745
|
size,
|
|
@@ -750,33 +750,39 @@ var CardButton = /*#__PURE__*/React.forwardRef((_ref4, ref) => {
|
|
|
750
750
|
endIcon,
|
|
751
751
|
startIcon,
|
|
752
752
|
disabled
|
|
753
|
-
} =
|
|
754
|
-
props = _objectWithoutProperties(
|
|
753
|
+
} = _ref,
|
|
754
|
+
props = _objectWithoutProperties(_ref, _excluded$4);
|
|
755
755
|
|
|
756
|
-
|
|
756
|
+
var styles = useStyles$3({
|
|
757
|
+
classes
|
|
758
|
+
});
|
|
759
|
+
return /*#__PURE__*/jsxRuntime.jsx(core.ButtonBase, _objectSpread(_objectSpread({}, props), {}, {
|
|
757
760
|
ref: ref,
|
|
758
761
|
disabled: disabled,
|
|
759
|
-
|
|
760
|
-
|
|
761
|
-
|
|
762
|
-
|
|
763
|
-
children: error ? /*#__PURE__*/jsxRuntime.jsx(
|
|
762
|
+
className: clsx(styles.root, className, disabled ? styles.disabled : error ? styles.error : styles.primary, {
|
|
763
|
+
'small': styles.sizeSmall,
|
|
764
|
+
'large': styles.sizeLarge
|
|
765
|
+
}[size]),
|
|
766
|
+
children: error ? /*#__PURE__*/jsxRuntime.jsx(core.Typography, {
|
|
764
767
|
variant: "h4",
|
|
765
768
|
color: "inherit",
|
|
769
|
+
className: styles.label,
|
|
766
770
|
children: error
|
|
767
771
|
}) : /*#__PURE__*/jsxRuntime.jsxs(jsxRuntime.Fragment, {
|
|
768
|
-
children: [/*#__PURE__*/jsxRuntime.jsxs(
|
|
772
|
+
children: [/*#__PURE__*/jsxRuntime.jsxs(core.Typography, {
|
|
769
773
|
variant: "h4",
|
|
770
774
|
color: "inherit",
|
|
771
|
-
|
|
772
|
-
|
|
775
|
+
className: styles.label,
|
|
776
|
+
children: [!!startIcon && /*#__PURE__*/jsxRuntime.jsx("span", {
|
|
777
|
+
className: clsx(styles.icon, styles.startIcon),
|
|
773
778
|
children: startIcon
|
|
774
|
-
}), children, !!endIcon && /*#__PURE__*/jsxRuntime.jsx(
|
|
775
|
-
|
|
779
|
+
}), children, !!endIcon && /*#__PURE__*/jsxRuntime.jsx("span", {
|
|
780
|
+
className: clsx(styles.icon, styles.endIcon),
|
|
776
781
|
children: endIcon
|
|
777
782
|
})]
|
|
778
|
-
}), !!hint && /*#__PURE__*/jsxRuntime.jsx(
|
|
783
|
+
}), !!hint && /*#__PURE__*/jsxRuntime.jsx(core.Typography, {
|
|
779
784
|
color: "textSecondary",
|
|
785
|
+
className: styles.hint,
|
|
780
786
|
children: hint
|
|
781
787
|
})]
|
|
782
788
|
})
|
|
@@ -797,19 +803,19 @@ var CheckboxField = /*#__PURE__*/React.forwardRef((_ref, ref) => {
|
|
|
797
803
|
} = _ref,
|
|
798
804
|
props = _objectWithoutProperties(_ref, _excluded$5);
|
|
799
805
|
|
|
800
|
-
return /*#__PURE__*/jsxRuntime.jsxs(
|
|
806
|
+
return /*#__PURE__*/jsxRuntime.jsxs(core.FormControl, {
|
|
801
807
|
error: error,
|
|
802
|
-
children: [/*#__PURE__*/jsxRuntime.jsx(
|
|
808
|
+
children: [/*#__PURE__*/jsxRuntime.jsx(core.FormControlLabel, _objectSpread(_objectSpread({}, formControlLabelProps), {}, {
|
|
803
809
|
label: label,
|
|
804
810
|
checked: checked,
|
|
805
811
|
onBlur: onBlur,
|
|
806
812
|
onChange: onChange,
|
|
807
|
-
control: /*#__PURE__*/jsxRuntime.jsx(
|
|
813
|
+
control: /*#__PURE__*/jsxRuntime.jsx(core.Checkbox, _objectSpread({
|
|
808
814
|
ref: ref,
|
|
809
815
|
color: "primary",
|
|
810
816
|
disableRipple: true
|
|
811
817
|
}, props))
|
|
812
|
-
})), helperText && /*#__PURE__*/jsxRuntime.jsx(
|
|
818
|
+
})), helperText && /*#__PURE__*/jsxRuntime.jsx(core.FormHelperText, {
|
|
813
819
|
children: helperText
|
|
814
820
|
})]
|
|
815
821
|
});
|
|
@@ -828,15 +834,15 @@ var CheckboxGroupField = /*#__PURE__*/React.forwardRef((_ref, ref) => {
|
|
|
828
834
|
} = _ref,
|
|
829
835
|
formControlProps = _objectWithoutProperties(_ref, _excluded$6);
|
|
830
836
|
|
|
831
|
-
return /*#__PURE__*/jsxRuntime.jsxs(
|
|
837
|
+
return /*#__PURE__*/jsxRuntime.jsxs(core.FormControl, _objectSpread(_objectSpread({}, formControlProps), {}, {
|
|
832
838
|
hiddenLabel: !label,
|
|
833
|
-
children: [!!label && /*#__PURE__*/jsxRuntime.jsx(
|
|
839
|
+
children: [!!label && /*#__PURE__*/jsxRuntime.jsx(core.FormLabel, _objectSpread(_objectSpread({}, formLabelProps), {}, {
|
|
834
840
|
children: label
|
|
835
|
-
})), /*#__PURE__*/jsxRuntime.jsx(
|
|
841
|
+
})), /*#__PURE__*/jsxRuntime.jsx(core.FormGroup, _objectSpread(_objectSpread({
|
|
836
842
|
ref: ref
|
|
837
843
|
}, formGroupProps), {}, {
|
|
838
844
|
children: children
|
|
839
|
-
})), !!helperText && /*#__PURE__*/jsxRuntime.jsx(
|
|
845
|
+
})), !!helperText && /*#__PURE__*/jsxRuntime.jsx(core.FormHelperText, _objectSpread(_objectSpread({}, formHelperTextProps), {}, {
|
|
840
846
|
children: helperText
|
|
841
847
|
}))]
|
|
842
848
|
}));
|
|
@@ -846,7 +852,7 @@ if (process.env.NODE_ENV !== "production") CheckboxGroupField.displayName = "Che
|
|
|
846
852
|
var Context = /*#__PURE__*/React.createContext({});
|
|
847
853
|
|
|
848
854
|
function useBreakpoint(breakpoint) {
|
|
849
|
-
return
|
|
855
|
+
return core.useMediaQuery(theme => theme.breakpoints.only(breakpoint));
|
|
850
856
|
}
|
|
851
857
|
|
|
852
858
|
function ResponsiveContextProvider(_ref) {
|
|
@@ -1116,54 +1122,50 @@ function VisibilityObserver(_ref2) {
|
|
|
1116
1122
|
}
|
|
1117
1123
|
|
|
1118
1124
|
var _excluded$8 = ["title", "enterDelay"],
|
|
1119
|
-
_excluded2 = ["onClick", "children", "disableUnderline", "TooltipProps"];
|
|
1120
|
-
var
|
|
1121
|
-
|
|
1122
|
-
shouldForwardProp: prop => prop !== 'truncated'
|
|
1123
|
-
})(_ref => {
|
|
1124
|
-
var {
|
|
1125
|
-
truncated,
|
|
1126
|
-
theme
|
|
1127
|
-
} = _ref;
|
|
1128
|
-
return _objectSpread({
|
|
1125
|
+
_excluded2$1 = ["onClick", "children", "className", "disableUnderline", "TooltipProps"];
|
|
1126
|
+
var useStyles$4 = /*#__PURE__*/styles.makeStyles(theme => ({
|
|
1127
|
+
root: {
|
|
1129
1128
|
marginBottom: -1,
|
|
1130
1129
|
borderBottom: '1px dashed transparent',
|
|
1131
|
-
transition: theme.transitions.create('border')
|
|
1132
|
-
|
|
1133
|
-
|
|
1134
|
-
|
|
1135
|
-
|
|
1136
|
-
}
|
|
1137
|
-
|
|
1138
|
-
|
|
1139
|
-
|
|
1140
|
-
|
|
1141
|
-
|
|
1142
|
-
|
|
1143
|
-
|
|
1130
|
+
transition: theme.transitions.create('border'),
|
|
1131
|
+
'&$truncated': {
|
|
1132
|
+
cursor: 'pointer',
|
|
1133
|
+
borderBottomColor: exports.Color.Silver500
|
|
1134
|
+
}
|
|
1135
|
+
},
|
|
1136
|
+
truncated: {},
|
|
1137
|
+
sentinel: {
|
|
1138
|
+
width: 1,
|
|
1139
|
+
height: '100%',
|
|
1140
|
+
display: 'inline-block'
|
|
1141
|
+
}
|
|
1142
|
+
}), {
|
|
1143
|
+
name: 'SD-OverflowText'
|
|
1144
1144
|
});
|
|
1145
|
-
var OverflowText = /*#__PURE__*/React.forwardRef((
|
|
1145
|
+
var OverflowText = /*#__PURE__*/React.forwardRef((_ref, rootRef) => {
|
|
1146
1146
|
var {
|
|
1147
1147
|
onClick: _onClick,
|
|
1148
1148
|
children,
|
|
1149
|
+
className,
|
|
1149
1150
|
disableUnderline,
|
|
1150
1151
|
TooltipProps: {
|
|
1151
1152
|
title = children,
|
|
1152
1153
|
enterDelay = 1000
|
|
1153
1154
|
} = {}
|
|
1154
|
-
} =
|
|
1155
|
-
tooltipProps = _objectWithoutProperties(
|
|
1156
|
-
props = _objectWithoutProperties(
|
|
1155
|
+
} = _ref,
|
|
1156
|
+
tooltipProps = _objectWithoutProperties(_ref.TooltipProps, _excluded$8),
|
|
1157
|
+
props = _objectWithoutProperties(_ref, _excluded2$1);
|
|
1157
1158
|
|
|
1158
1159
|
var [isOpen, setIsOpen] = React.useState(false);
|
|
1160
|
+
var styles = useStyles$4();
|
|
1159
1161
|
return /*#__PURE__*/jsxRuntime.jsx(VisibilityObserver, {
|
|
1160
|
-
render:
|
|
1162
|
+
render: _ref2 => {
|
|
1161
1163
|
var {
|
|
1162
1164
|
ref,
|
|
1163
1165
|
visibility
|
|
1164
|
-
} =
|
|
1166
|
+
} = _ref2;
|
|
1165
1167
|
var isTooltipEnabled = !!children && visibility === 'invisible';
|
|
1166
|
-
return /*#__PURE__*/jsxRuntime.jsx(
|
|
1168
|
+
return /*#__PURE__*/jsxRuntime.jsx(core.Tooltip, _objectSpread(_objectSpread({}, tooltipProps), {}, {
|
|
1167
1169
|
enterDelay: 1000,
|
|
1168
1170
|
title: title || '',
|
|
1169
1171
|
disableFocusListener: true,
|
|
@@ -1174,16 +1176,17 @@ var OverflowText = /*#__PURE__*/React.forwardRef((_ref2, rootRef) => {
|
|
|
1174
1176
|
onClose: () => {
|
|
1175
1177
|
setIsOpen(false);
|
|
1176
1178
|
},
|
|
1177
|
-
children: /*#__PURE__*/jsxRuntime.jsxs(
|
|
1179
|
+
children: /*#__PURE__*/jsxRuntime.jsxs(core.Typography, _objectSpread(_objectSpread({}, props), {}, {
|
|
1178
1180
|
ref: rootRef,
|
|
1179
1181
|
noWrap: true,
|
|
1180
|
-
truncated: !disableUnderline && visibility === 'invisible',
|
|
1181
1182
|
onClick: event => {
|
|
1182
1183
|
setIsOpen(true);
|
|
1183
1184
|
_onClick === null || _onClick === void 0 ? void 0 : _onClick(event);
|
|
1184
1185
|
},
|
|
1185
|
-
|
|
1186
|
-
|
|
1186
|
+
className: clsx(styles.root, className, !disableUnderline && visibility === 'invisible' && styles.truncated),
|
|
1187
|
+
children: [children, !!children && /*#__PURE__*/jsxRuntime.jsx("span", {
|
|
1188
|
+
ref: ref,
|
|
1189
|
+
className: styles.sentinel
|
|
1187
1190
|
})]
|
|
1188
1191
|
}))
|
|
1189
1192
|
}));
|
|
@@ -1203,18 +1206,29 @@ function useUID(defaultID) {
|
|
|
1203
1206
|
}
|
|
1204
1207
|
|
|
1205
1208
|
var _excluded$9 = ["size"];
|
|
1206
|
-
|
|
1207
|
-
|
|
1208
|
-
slot: 'Root'
|
|
1209
|
-
})({
|
|
1210
|
-
display: 'flex',
|
|
1211
|
-
alignItems: 'center'
|
|
1212
|
-
});
|
|
1213
|
-
var DescriptionListItemIcon = /*#__PURE__*/material.styled('div')(_ref => {
|
|
1214
|
-
var {
|
|
1215
|
-
theme
|
|
1216
|
-
} = _ref;
|
|
1209
|
+
|
|
1210
|
+
function sizeVariant(theme, mobileSpacing, desktopSpacing) {
|
|
1217
1211
|
return {
|
|
1212
|
+
'& > $list, & > $item': {
|
|
1213
|
+
'&:not(:last-child)': {
|
|
1214
|
+
paddingBottom: theme.spacing(mobileSpacing),
|
|
1215
|
+
[theme.breakpoints.up('sm')]: {
|
|
1216
|
+
paddingBottom: theme.spacing(desktopSpacing)
|
|
1217
|
+
}
|
|
1218
|
+
}
|
|
1219
|
+
}
|
|
1220
|
+
};
|
|
1221
|
+
}
|
|
1222
|
+
|
|
1223
|
+
var useStyles$5 = /*#__PURE__*/styles.makeStyles(theme => ({
|
|
1224
|
+
list: sizeVariant(theme, 2, 1),
|
|
1225
|
+
listSmall: sizeVariant(theme, 1, 0.5),
|
|
1226
|
+
listLarge: sizeVariant(theme, 3, 2),
|
|
1227
|
+
item: {
|
|
1228
|
+
display: 'flex',
|
|
1229
|
+
alignItems: 'center'
|
|
1230
|
+
},
|
|
1231
|
+
icon: {
|
|
1218
1232
|
display: 'inline-flex',
|
|
1219
1233
|
marginRight: theme.spacing(1),
|
|
1220
1234
|
'& > .MuiSvgIcon-root': {
|
|
@@ -1224,29 +1238,54 @@ var DescriptionListItemIcon = /*#__PURE__*/material.styled('div')(_ref => {
|
|
|
1224
1238
|
fontSize: theme.spacing(2)
|
|
1225
1239
|
}
|
|
1226
1240
|
}
|
|
1227
|
-
}
|
|
1241
|
+
}
|
|
1242
|
+
}), {
|
|
1243
|
+
name: 'SD-DescriptionList'
|
|
1244
|
+
}); //
|
|
1245
|
+
// DescriptionList
|
|
1246
|
+
//
|
|
1247
|
+
|
|
1248
|
+
var DescriptionList = /*#__PURE__*/React.forwardRef((_ref, ref) => {
|
|
1249
|
+
var {
|
|
1250
|
+
size
|
|
1251
|
+
} = _ref,
|
|
1252
|
+
props = _objectWithoutProperties(_ref, _excluded$9);
|
|
1253
|
+
|
|
1254
|
+
var styles = useStyles$5();
|
|
1255
|
+
return /*#__PURE__*/jsxRuntime.jsx("div", _objectSpread(_objectSpread({}, props), {}, {
|
|
1256
|
+
ref: ref,
|
|
1257
|
+
"data-size": size,
|
|
1258
|
+
className: clsx(styles.list, {
|
|
1259
|
+
'small': styles.listSmall,
|
|
1260
|
+
'large': styles.listLarge
|
|
1261
|
+
}[size])
|
|
1262
|
+
}));
|
|
1228
1263
|
}); //
|
|
1229
1264
|
// DescriptionListItem
|
|
1230
1265
|
//
|
|
1231
1266
|
|
|
1267
|
+
if (process.env.NODE_ENV !== "production") DescriptionList.displayName = "DescriptionList";
|
|
1232
1268
|
var DescriptionListItem = /*#__PURE__*/React.forwardRef((_ref2, ref) => {
|
|
1233
1269
|
var _ref3, _contentTypographyPro, _contentTypographyPro2;
|
|
1234
1270
|
|
|
1235
1271
|
var {
|
|
1236
1272
|
inset,
|
|
1237
|
-
icon = inset ? /*#__PURE__*/jsxRuntime.jsx(
|
|
1273
|
+
icon = inset ? /*#__PURE__*/jsxRuntime.jsx(core.SvgIcon, {}) : null,
|
|
1238
1274
|
label,
|
|
1239
1275
|
labelTypographyProps,
|
|
1240
1276
|
content,
|
|
1241
1277
|
contentTypographyProps,
|
|
1242
1278
|
fallback
|
|
1243
1279
|
} = _ref2;
|
|
1280
|
+
var styles = useStyles$5();
|
|
1244
1281
|
var labelID = useUID(labelTypographyProps === null || labelTypographyProps === void 0 ? void 0 : labelTypographyProps.id);
|
|
1245
1282
|
var shouldRenderFallback = isEmptyReactNode(content);
|
|
1246
|
-
return /*#__PURE__*/jsxRuntime.jsxs(
|
|
1283
|
+
return /*#__PURE__*/jsxRuntime.jsxs("div", {
|
|
1247
1284
|
ref: ref,
|
|
1285
|
+
className: styles.item,
|
|
1248
1286
|
"aria-labelledby": label != null ? labelID : undefined,
|
|
1249
|
-
children: [!!icon && /*#__PURE__*/jsxRuntime.jsx(
|
|
1287
|
+
children: [!!icon && /*#__PURE__*/jsxRuntime.jsx("div", {
|
|
1288
|
+
className: styles.icon,
|
|
1250
1289
|
children: icon
|
|
1251
1290
|
}), /*#__PURE__*/jsxRuntime.jsxs(OverflowText, _objectSpread(_objectSpread({}, contentTypographyProps), {}, {
|
|
1252
1291
|
component: "span",
|
|
@@ -1254,7 +1293,7 @@ var DescriptionListItem = /*#__PURE__*/React.forwardRef((_ref2, ref) => {
|
|
|
1254
1293
|
TooltipProps: _objectSpread(_objectSpread({}, contentTypographyProps === null || contentTypographyProps === void 0 ? void 0 : contentTypographyProps.TooltipProps), {}, {
|
|
1255
1294
|
title: (_ref3 = (_contentTypographyPro = contentTypographyProps === null || contentTypographyProps === void 0 ? void 0 : (_contentTypographyPro2 = contentTypographyProps.TooltipProps) === null || _contentTypographyPro2 === void 0 ? void 0 : _contentTypographyPro2.title) !== null && _contentTypographyPro !== void 0 ? _contentTypographyPro : content) !== null && _ref3 !== void 0 ? _ref3 : undefined
|
|
1256
1295
|
}),
|
|
1257
|
-
children: [label != null && /*#__PURE__*/jsxRuntime.jsx(
|
|
1296
|
+
children: [label != null && /*#__PURE__*/jsxRuntime.jsx(core.Typography, _objectSpread(_objectSpread({}, labelTypographyProps), {}, {
|
|
1258
1297
|
id: labelID,
|
|
1259
1298
|
variant: "body2",
|
|
1260
1299
|
component: "span",
|
|
@@ -1263,72 +1302,26 @@ var DescriptionListItem = /*#__PURE__*/React.forwardRef((_ref2, ref) => {
|
|
|
1263
1302
|
})), label != null && ' ', !shouldRenderFallback ? content : fallback]
|
|
1264
1303
|
}))]
|
|
1265
1304
|
});
|
|
1266
|
-
}); //
|
|
1267
|
-
// DescriptionList
|
|
1268
|
-
//
|
|
1269
|
-
|
|
1270
|
-
if (process.env.NODE_ENV !== "production") DescriptionListItem.displayName = "DescriptionListItem";
|
|
1271
|
-
var DescriptionListRoot = /*#__PURE__*/material.styled('div', {
|
|
1272
|
-
name: 'SD-DescriptionList',
|
|
1273
|
-
slot: 'Root'
|
|
1274
|
-
})(_ref4 => {
|
|
1275
|
-
var {
|
|
1276
|
-
theme
|
|
1277
|
-
} = _ref4;
|
|
1278
|
-
return _objectSpread(_objectSpread({}, sizeVariant(theme, 2, 1)), {}, {
|
|
1279
|
-
'&[data-size="small"]': sizeVariant(theme, 1, 0.5),
|
|
1280
|
-
'&[data-size="large"]': sizeVariant(theme, 3, 2)
|
|
1281
|
-
});
|
|
1282
1305
|
});
|
|
1306
|
+
if (process.env.NODE_ENV !== "production") DescriptionListItem.displayName = "DescriptionListItem";
|
|
1283
1307
|
|
|
1284
|
-
|
|
1285
|
-
|
|
1286
|
-
|
|
1287
|
-
|
|
1288
|
-
|
|
1289
|
-
|
|
1290
|
-
|
|
1291
|
-
|
|
1308
|
+
var _excluded$a = ["children", "className"];
|
|
1309
|
+
var useStyles$6 = /*#__PURE__*/styles.makeStyles(theme => ({
|
|
1310
|
+
appBar: {
|
|
1311
|
+
'&&': {
|
|
1312
|
+
bottom: 0,
|
|
1313
|
+
top: 'auto',
|
|
1314
|
+
borderLeft: 'none',
|
|
1315
|
+
borderRight: 'none',
|
|
1316
|
+
borderBottom: 'none',
|
|
1317
|
+
transition: theme.transitions.create(['border-color']),
|
|
1318
|
+
'&:not($appBarSticky)': {
|
|
1319
|
+
borderTopColor: exports.Color.Transparent
|
|
1292
1320
|
}
|
|
1293
1321
|
}
|
|
1294
|
-
}
|
|
1295
|
-
}
|
|
1296
|
-
|
|
1297
|
-
var DescriptionList = /*#__PURE__*/React.forwardRef((_ref5, ref) => {
|
|
1298
|
-
var {
|
|
1299
|
-
size
|
|
1300
|
-
} = _ref5,
|
|
1301
|
-
props = _objectWithoutProperties(_ref5, _excluded$9);
|
|
1302
|
-
|
|
1303
|
-
return /*#__PURE__*/jsxRuntime.jsx(DescriptionListRoot, _objectSpread(_objectSpread({}, props), {}, {
|
|
1304
|
-
ref: ref,
|
|
1305
|
-
"data-size": size
|
|
1306
|
-
}));
|
|
1307
|
-
});
|
|
1308
|
-
if (process.env.NODE_ENV !== "production") DescriptionList.displayName = "DescriptionList";
|
|
1309
|
-
|
|
1310
|
-
var _excluded$a = ["children"];
|
|
1311
|
-
var StyledAppBar = /*#__PURE__*/material.styled(material.AppBar)(_ref => {
|
|
1312
|
-
var {
|
|
1313
|
-
theme
|
|
1314
|
-
} = _ref;
|
|
1315
|
-
return {
|
|
1316
|
-
bottom: 0,
|
|
1317
|
-
top: 'auto',
|
|
1318
|
-
borderLeft: 'none',
|
|
1319
|
-
borderRight: 'none',
|
|
1320
|
-
borderBottom: 'none',
|
|
1321
|
-
transition: theme.transitions.create(['border-color']),
|
|
1322
|
-
'&[data-sticky="false"]': {
|
|
1323
|
-
borderTopColor: exports.Color.Transparent
|
|
1324
|
-
}
|
|
1325
|
-
};
|
|
1326
|
-
});
|
|
1327
|
-
var StyledToolbar = /*#__PURE__*/material.styled(material.Toolbar)(_ref2 => {
|
|
1328
|
-
var {
|
|
1329
|
-
theme
|
|
1330
|
-
} = _ref2;
|
|
1331
|
-
return {
|
|
1322
|
+
},
|
|
1323
|
+
appBarSticky: {},
|
|
1324
|
+
toolbar: {
|
|
1332
1325
|
'&.MuiToolbar-gutters': {
|
|
1333
1326
|
paddingLeft: theme.spacing(3),
|
|
1334
1327
|
paddingRight: theme.spacing(3),
|
|
@@ -1337,26 +1330,31 @@ var StyledToolbar = /*#__PURE__*/material.styled(material.Toolbar)(_ref2 => {
|
|
|
1337
1330
|
paddingRight: theme.spacing(4)
|
|
1338
1331
|
}
|
|
1339
1332
|
}
|
|
1340
|
-
}
|
|
1333
|
+
}
|
|
1334
|
+
}), {
|
|
1335
|
+
name: 'SD-DrawerActions'
|
|
1341
1336
|
});
|
|
1342
|
-
var DrawerActions = /*#__PURE__*/React.forwardRef((
|
|
1337
|
+
var DrawerActions = /*#__PURE__*/React.forwardRef((_ref, appBarRef) => {
|
|
1343
1338
|
var {
|
|
1344
|
-
children
|
|
1345
|
-
|
|
1346
|
-
|
|
1339
|
+
children,
|
|
1340
|
+
className
|
|
1341
|
+
} = _ref,
|
|
1342
|
+
props = _objectWithoutProperties(_ref, _excluded$a);
|
|
1347
1343
|
|
|
1344
|
+
var styles = useStyles$6();
|
|
1348
1345
|
return /*#__PURE__*/jsxRuntime.jsx(VisibilityObserver, {
|
|
1349
|
-
render:
|
|
1346
|
+
render: _ref2 => {
|
|
1350
1347
|
var {
|
|
1351
1348
|
ref,
|
|
1352
1349
|
visibility
|
|
1353
|
-
} =
|
|
1350
|
+
} = _ref2;
|
|
1354
1351
|
return /*#__PURE__*/jsxRuntime.jsxs(jsxRuntime.Fragment, {
|
|
1355
|
-
children: [/*#__PURE__*/jsxRuntime.jsx(
|
|
1352
|
+
children: [/*#__PURE__*/jsxRuntime.jsx(core.AppBar, _objectSpread(_objectSpread({}, props), {}, {
|
|
1356
1353
|
ref: appBarRef,
|
|
1357
1354
|
position: "sticky",
|
|
1358
|
-
|
|
1359
|
-
children: /*#__PURE__*/jsxRuntime.jsx(
|
|
1355
|
+
className: clsx(className, styles.appBar, visibility === 'invisible' && styles.appBarSticky),
|
|
1356
|
+
children: /*#__PURE__*/jsxRuntime.jsx(core.Toolbar, {
|
|
1357
|
+
className: styles.toolbar,
|
|
1360
1358
|
children: children
|
|
1361
1359
|
})
|
|
1362
1360
|
})), /*#__PURE__*/jsxRuntime.jsx("div", {
|
|
@@ -1368,20 +1366,33 @@ var DrawerActions = /*#__PURE__*/React.forwardRef((_ref3, appBarRef) => {
|
|
|
1368
1366
|
});
|
|
1369
1367
|
if (process.env.NODE_ENV !== "production") DrawerActions.displayName = "DrawerActions";
|
|
1370
1368
|
|
|
1371
|
-
var
|
|
1372
|
-
|
|
1373
|
-
|
|
1374
|
-
var {
|
|
1375
|
-
theme
|
|
1376
|
-
} = _ref;
|
|
1377
|
-
return {
|
|
1369
|
+
var _excluded$b = ["className"];
|
|
1370
|
+
var useStyles$7 = /*#__PURE__*/styles.makeStyles(theme => ({
|
|
1371
|
+
root: {
|
|
1378
1372
|
maxWidth: '100%',
|
|
1379
1373
|
padding: theme.spacing(2, 3),
|
|
1380
1374
|
[theme.breakpoints.up('md')]: {
|
|
1381
1375
|
padding: theme.spacing(2, 4)
|
|
1382
1376
|
}
|
|
1383
|
-
}
|
|
1377
|
+
}
|
|
1378
|
+
}), {
|
|
1379
|
+
name: 'SD-DrawerContent'
|
|
1380
|
+
});
|
|
1381
|
+
var DrawerContent = /*#__PURE__*/React.forwardRef((_ref, ref) => {
|
|
1382
|
+
var {
|
|
1383
|
+
className
|
|
1384
|
+
} = _ref,
|
|
1385
|
+
props = _objectWithoutProperties(_ref, _excluded$b);
|
|
1386
|
+
|
|
1387
|
+
var styles = useStyles$7();
|
|
1388
|
+
return /*#__PURE__*/jsxRuntime.jsx("div", _objectSpread(_objectSpread({}, props), {}, {
|
|
1389
|
+
ref: ref,
|
|
1390
|
+
className: clsx(styles.root, className)
|
|
1391
|
+
}));
|
|
1384
1392
|
});
|
|
1393
|
+
if (process.env.NODE_ENV !== "production") DrawerContent.displayName = "DrawerContent";
|
|
1394
|
+
|
|
1395
|
+
var _excluded$c = ["className"];
|
|
1385
1396
|
|
|
1386
1397
|
function listItemMixins(theme, space) {
|
|
1387
1398
|
return {
|
|
@@ -1401,37 +1412,45 @@ function listItemMixins(theme, space) {
|
|
|
1401
1412
|
};
|
|
1402
1413
|
}
|
|
1403
1414
|
|
|
1404
|
-
var
|
|
1405
|
-
|
|
1406
|
-
theme
|
|
1407
|
-
} = _ref;
|
|
1408
|
-
return _objectSpread(_objectSpread({
|
|
1415
|
+
var useStyles$8 = /*#__PURE__*/styles.makeStyles(theme => ({
|
|
1416
|
+
root: _objectSpread(_objectSpread({
|
|
1409
1417
|
maxWidth: '100%'
|
|
1410
1418
|
}, listItemMixins(theme, 3)), {}, {
|
|
1411
1419
|
[theme.breakpoints.up('md')]: _objectSpread({}, listItemMixins(theme, 4))
|
|
1412
|
-
})
|
|
1420
|
+
})
|
|
1421
|
+
}), {
|
|
1422
|
+
name: 'SD-DrawerList'
|
|
1413
1423
|
});
|
|
1414
|
-
|
|
1415
|
-
var _excluded$b = ["title", "titleTypographyProps", "subtitle", "subtitleTypographyProps", "startAction", "endAction"];
|
|
1416
|
-
var StyledAppBar$1 = /*#__PURE__*/material.styled(material.AppBar)(_ref => {
|
|
1424
|
+
var DrawerList = /*#__PURE__*/React.forwardRef((_ref, ref) => {
|
|
1417
1425
|
var {
|
|
1418
|
-
|
|
1419
|
-
} = _ref
|
|
1420
|
-
|
|
1421
|
-
|
|
1422
|
-
|
|
1423
|
-
|
|
1424
|
-
|
|
1425
|
-
|
|
1426
|
-
|
|
1427
|
-
|
|
1428
|
-
};
|
|
1426
|
+
className
|
|
1427
|
+
} = _ref,
|
|
1428
|
+
props = _objectWithoutProperties(_ref, _excluded$c);
|
|
1429
|
+
|
|
1430
|
+
var styles = useStyles$8();
|
|
1431
|
+
return /*#__PURE__*/jsxRuntime.jsx(core.List, _objectSpread(_objectSpread({}, props), {}, {
|
|
1432
|
+
ref: ref,
|
|
1433
|
+
component: "div",
|
|
1434
|
+
className: clsx(className, styles.root)
|
|
1435
|
+
}));
|
|
1429
1436
|
});
|
|
1430
|
-
|
|
1431
|
-
|
|
1432
|
-
|
|
1433
|
-
|
|
1434
|
-
|
|
1437
|
+
if (process.env.NODE_ENV !== "production") DrawerList.displayName = "DrawerList";
|
|
1438
|
+
|
|
1439
|
+
var _excluded$d = ["title", "titleTypographyProps", "subtitle", "subtitleTypographyProps", "startAction", "endAction", "className"];
|
|
1440
|
+
var useStyles$9 = /*#__PURE__*/styles.makeStyles(theme => ({
|
|
1441
|
+
appBar: {
|
|
1442
|
+
'&&': {
|
|
1443
|
+
borderTop: 'none',
|
|
1444
|
+
borderLeft: 'none',
|
|
1445
|
+
borderRight: 'none',
|
|
1446
|
+
transition: theme.transitions.create(['border-color']),
|
|
1447
|
+
'&:not($appBarSticky)': {
|
|
1448
|
+
borderBottomColor: exports.Color.Transparent
|
|
1449
|
+
}
|
|
1450
|
+
}
|
|
1451
|
+
},
|
|
1452
|
+
appBarSticky: {},
|
|
1453
|
+
toolbar: {
|
|
1435
1454
|
'&.MuiToolbar-gutters': {
|
|
1436
1455
|
paddingLeft: theme.spacing(3),
|
|
1437
1456
|
paddingRight: theme.spacing(3),
|
|
@@ -1440,78 +1459,75 @@ var StyledToolbar$1 = /*#__PURE__*/material.styled(material.Toolbar)(_ref2 => {
|
|
|
1440
1459
|
paddingRight: theme.spacing(4)
|
|
1441
1460
|
}
|
|
1442
1461
|
}
|
|
1443
|
-
}
|
|
1444
|
-
|
|
1445
|
-
var StartAction = /*#__PURE__*/material.styled(material.Grid)(_ref3 => {
|
|
1446
|
-
var {
|
|
1447
|
-
theme
|
|
1448
|
-
} = _ref3;
|
|
1449
|
-
return {
|
|
1462
|
+
},
|
|
1463
|
+
startAction: {
|
|
1450
1464
|
marginRight: theme.spacing(0.5),
|
|
1451
1465
|
'& .MuiIconButton-edgeStart': {
|
|
1452
1466
|
marginLeft: theme.spacing(-2)
|
|
1453
1467
|
}
|
|
1454
|
-
}
|
|
1455
|
-
|
|
1456
|
-
var EndAction = /*#__PURE__*/material.styled(material.Grid)(_ref4 => {
|
|
1457
|
-
var {
|
|
1458
|
-
theme
|
|
1459
|
-
} = _ref4;
|
|
1460
|
-
return {
|
|
1468
|
+
},
|
|
1469
|
+
endAction: {
|
|
1461
1470
|
marginLeft: theme.spacing(0.5),
|
|
1462
1471
|
'& .MuiIconButton-edgeEnd': {
|
|
1463
1472
|
marginRight: theme.spacing(-2)
|
|
1464
1473
|
}
|
|
1465
|
-
}
|
|
1474
|
+
}
|
|
1475
|
+
}), {
|
|
1476
|
+
name: 'SD-DrawerTitle'
|
|
1466
1477
|
});
|
|
1467
|
-
var DrawerTitle = /*#__PURE__*/React.forwardRef((
|
|
1478
|
+
var DrawerTitle = /*#__PURE__*/React.forwardRef((_ref, appBarRef) => {
|
|
1468
1479
|
var {
|
|
1469
1480
|
title,
|
|
1470
1481
|
titleTypographyProps,
|
|
1471
1482
|
subtitle,
|
|
1472
1483
|
subtitleTypographyProps,
|
|
1473
1484
|
startAction,
|
|
1474
|
-
endAction
|
|
1475
|
-
|
|
1476
|
-
|
|
1485
|
+
endAction,
|
|
1486
|
+
className
|
|
1487
|
+
} = _ref,
|
|
1488
|
+
props = _objectWithoutProperties(_ref, _excluded$d);
|
|
1477
1489
|
|
|
1490
|
+
var styles = useStyles$9();
|
|
1478
1491
|
return /*#__PURE__*/jsxRuntime.jsx(VisibilityObserver, {
|
|
1479
|
-
render:
|
|
1492
|
+
render: _ref2 => {
|
|
1480
1493
|
var {
|
|
1481
1494
|
ref,
|
|
1482
1495
|
visibility
|
|
1483
|
-
} =
|
|
1496
|
+
} = _ref2;
|
|
1484
1497
|
return /*#__PURE__*/jsxRuntime.jsxs(jsxRuntime.Fragment, {
|
|
1485
1498
|
children: [/*#__PURE__*/jsxRuntime.jsx("div", {
|
|
1486
1499
|
ref: ref
|
|
1487
|
-
}), /*#__PURE__*/jsxRuntime.jsx(
|
|
1500
|
+
}), /*#__PURE__*/jsxRuntime.jsx(core.AppBar, _objectSpread(_objectSpread({}, props), {}, {
|
|
1488
1501
|
ref: appBarRef,
|
|
1489
1502
|
position: "sticky",
|
|
1490
|
-
|
|
1491
|
-
children: /*#__PURE__*/jsxRuntime.jsx(
|
|
1492
|
-
|
|
1503
|
+
className: clsx(styles.appBar, className, visibility === 'invisible' && styles.appBarSticky),
|
|
1504
|
+
children: /*#__PURE__*/jsxRuntime.jsx(core.Toolbar, {
|
|
1505
|
+
className: styles.toolbar,
|
|
1506
|
+
children: /*#__PURE__*/jsxRuntime.jsxs(core.Grid, {
|
|
1493
1507
|
container: true,
|
|
1494
1508
|
alignItems: "center",
|
|
1495
|
-
children: [!!startAction && /*#__PURE__*/jsxRuntime.jsx(
|
|
1509
|
+
children: [!!startAction && /*#__PURE__*/jsxRuntime.jsx(core.Grid, {
|
|
1496
1510
|
item: true,
|
|
1511
|
+
className: styles.startAction,
|
|
1497
1512
|
children: startAction
|
|
1498
|
-
}), /*#__PURE__*/jsxRuntime.jsxs(
|
|
1513
|
+
}), /*#__PURE__*/jsxRuntime.jsxs(core.Grid, {
|
|
1499
1514
|
item: true,
|
|
1500
1515
|
xs: true,
|
|
1501
1516
|
zeroMinWidth: true,
|
|
1502
|
-
children: [/*#__PURE__*/jsxRuntime.jsx(
|
|
1517
|
+
children: [/*#__PURE__*/jsxRuntime.jsx(core.Typography, _objectSpread(_objectSpread({
|
|
1503
1518
|
variant: "h3",
|
|
1504
1519
|
noWrap: true
|
|
1505
1520
|
}, titleTypographyProps), {}, {
|
|
1506
1521
|
children: title
|
|
1507
|
-
})), !!subtitle && /*#__PURE__*/jsxRuntime.jsx(
|
|
1522
|
+
})), !!subtitle && /*#__PURE__*/jsxRuntime.jsx(core.Typography, _objectSpread(_objectSpread({
|
|
1508
1523
|
variant: "body2",
|
|
1509
1524
|
noWrap: true
|
|
1510
1525
|
}, subtitleTypographyProps), {}, {
|
|
1511
1526
|
children: subtitle
|
|
1512
1527
|
}))]
|
|
1513
|
-
}), !!endAction && /*#__PURE__*/jsxRuntime.jsx(
|
|
1528
|
+
}), !!endAction && /*#__PURE__*/jsxRuntime.jsx(core.Grid, {
|
|
1514
1529
|
item: true,
|
|
1530
|
+
className: styles.endAction,
|
|
1515
1531
|
children: endAction
|
|
1516
1532
|
})]
|
|
1517
1533
|
})
|
|
@@ -1523,7 +1539,7 @@ var DrawerTitle = /*#__PURE__*/React.forwardRef((_ref5, appBarRef) => {
|
|
|
1523
1539
|
});
|
|
1524
1540
|
if (process.env.NODE_ENV !== "production") DrawerTitle.displayName = "DrawerTitle";
|
|
1525
1541
|
|
|
1526
|
-
var _excluded$
|
|
1542
|
+
var _excluded$e = ["children", "alignItems"];
|
|
1527
1543
|
/**
|
|
1528
1544
|
* @deprecated in favor of `Stack`.
|
|
1529
1545
|
*/
|
|
@@ -1533,16 +1549,16 @@ var GridStack = /*#__PURE__*/React.forwardRef((_ref, ref) => {
|
|
|
1533
1549
|
children,
|
|
1534
1550
|
alignItems = 'stretch'
|
|
1535
1551
|
} = _ref,
|
|
1536
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
1552
|
+
props = _objectWithoutProperties(_ref, _excluded$e);
|
|
1537
1553
|
|
|
1538
1554
|
var items = React.Children.toArray(children);
|
|
1539
|
-
return /*#__PURE__*/jsxRuntime.jsx(
|
|
1555
|
+
return /*#__PURE__*/jsxRuntime.jsx(core.Grid, _objectSpread(_objectSpread({}, props), {}, {
|
|
1540
1556
|
ref: ref,
|
|
1541
1557
|
container: true,
|
|
1542
1558
|
wrap: "nowrap",
|
|
1543
1559
|
direction: "column",
|
|
1544
1560
|
alignItems: alignItems,
|
|
1545
|
-
children: items.map((item, idx) => /*#__PURE__*/jsxRuntime.jsx(
|
|
1561
|
+
children: items.map((item, idx) => /*#__PURE__*/jsxRuntime.jsx(core.Grid, {
|
|
1546
1562
|
item: true,
|
|
1547
1563
|
zeroMinWidth: true,
|
|
1548
1564
|
xs: alignItems === 'stretch' ? 12 : undefined,
|
|
@@ -1552,7 +1568,7 @@ var GridStack = /*#__PURE__*/React.forwardRef((_ref, ref) => {
|
|
|
1552
1568
|
});
|
|
1553
1569
|
if (process.env.NODE_ENV !== "production") GridStack.displayName = "GridStack";
|
|
1554
1570
|
|
|
1555
|
-
var _excluded$
|
|
1571
|
+
var _excluded$f = ["children", "wrap", "justify", "alignItems"];
|
|
1556
1572
|
/**
|
|
1557
1573
|
* @deprecated in favor of `Inline` component.
|
|
1558
1574
|
*/
|
|
@@ -1564,16 +1580,16 @@ var InlineGrid = /*#__PURE__*/React.forwardRef((_ref, ref) => {
|
|
|
1564
1580
|
justify = 'flex-start',
|
|
1565
1581
|
alignItems = 'flex-start'
|
|
1566
1582
|
} = _ref,
|
|
1567
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
1583
|
+
props = _objectWithoutProperties(_ref, _excluded$f);
|
|
1568
1584
|
|
|
1569
1585
|
var items = React.Children.toArray(children);
|
|
1570
|
-
return /*#__PURE__*/jsxRuntime.jsx(
|
|
1586
|
+
return /*#__PURE__*/jsxRuntime.jsx(core.Grid, _objectSpread(_objectSpread({}, props), {}, {
|
|
1571
1587
|
ref: ref,
|
|
1572
1588
|
wrap: wrap,
|
|
1573
1589
|
container: true,
|
|
1574
|
-
|
|
1590
|
+
justify: justify,
|
|
1575
1591
|
alignItems: alignItems,
|
|
1576
|
-
children: items.map((item, idx) => /*#__PURE__*/jsxRuntime.jsx(
|
|
1592
|
+
children: items.map((item, idx) => /*#__PURE__*/jsxRuntime.jsx(core.Grid, {
|
|
1577
1593
|
item: true,
|
|
1578
1594
|
zeroMinWidth: true,
|
|
1579
1595
|
children: item
|
|
@@ -1582,33 +1598,30 @@ var InlineGrid = /*#__PURE__*/React.forwardRef((_ref, ref) => {
|
|
|
1582
1598
|
});
|
|
1583
1599
|
if (process.env.NODE_ENV !== "production") InlineGrid.displayName = "InlineGrid";
|
|
1584
1600
|
|
|
1585
|
-
var _excluded$
|
|
1586
|
-
|
|
1587
|
-
|
|
1588
|
-
|
|
1589
|
-
|
|
1590
|
-
return {
|
|
1591
|
-
padding: theme.spacing(2)
|
|
1592
|
-
};
|
|
1593
|
-
});
|
|
1594
|
-
var StyledCard = /*#__PURE__*/material.styled(material.Card)(_ref2 => {
|
|
1595
|
-
var {
|
|
1596
|
-
theme
|
|
1597
|
-
} = _ref2;
|
|
1598
|
-
return {
|
|
1599
|
-
'&[data-full-width="true"]': {
|
|
1601
|
+
var _excluded$g = ["size", "square", "classes", "children", "className", "CardContentProps"],
|
|
1602
|
+
_excluded2$2 = ["content", "sizeLarge", "fullWidth"];
|
|
1603
|
+
var useStyles$a = /*#__PURE__*/styles.makeStyles(theme => ({
|
|
1604
|
+
root: {
|
|
1605
|
+
'&$fullWidth': {
|
|
1600
1606
|
borderRadius: 0,
|
|
1601
1607
|
borderLeftWidth: 0,
|
|
1602
1608
|
borderRightWidth: 0
|
|
1603
|
-
}
|
|
1604
|
-
|
|
1609
|
+
}
|
|
1610
|
+
},
|
|
1611
|
+
fullWidth: {},
|
|
1612
|
+
sizeLarge: {},
|
|
1613
|
+
content: {
|
|
1614
|
+
padding: theme.spacing(2),
|
|
1615
|
+
'$sizeLarge > &': {
|
|
1605
1616
|
[theme.breakpoints.up('sm')]: {
|
|
1606
1617
|
padding: theme.spacing(3)
|
|
1607
1618
|
}
|
|
1608
1619
|
}
|
|
1609
|
-
}
|
|
1620
|
+
}
|
|
1621
|
+
}), {
|
|
1622
|
+
name: 'SD-InfoCard'
|
|
1610
1623
|
});
|
|
1611
|
-
var InfoCard = /*#__PURE__*/React.forwardRef((
|
|
1624
|
+
var InfoCard = /*#__PURE__*/React.forwardRef((_ref, _ref2) => {
|
|
1612
1625
|
var {
|
|
1613
1626
|
size,
|
|
1614
1627
|
square,
|
|
@@ -1616,20 +1629,31 @@ var InfoCard = /*#__PURE__*/React.forwardRef((_ref3, _ref4) => {
|
|
|
1616
1629
|
children,
|
|
1617
1630
|
className,
|
|
1618
1631
|
CardContentProps: cardContentProps = {}
|
|
1619
|
-
} =
|
|
1620
|
-
props = _objectWithoutProperties(
|
|
1632
|
+
} = _ref,
|
|
1633
|
+
props = _objectWithoutProperties(_ref, _excluded$g);
|
|
1634
|
+
|
|
1635
|
+
var _useStyles = useStyles$a({
|
|
1636
|
+
classes
|
|
1637
|
+
}),
|
|
1638
|
+
{
|
|
1639
|
+
content: contentClassName,
|
|
1640
|
+
sizeLarge: sizeLargeClassName,
|
|
1641
|
+
fullWidth: fullWidthClassName
|
|
1642
|
+
} = _useStyles,
|
|
1643
|
+
styles = _objectWithoutProperties(_useStyles, _excluded2$2);
|
|
1621
1644
|
|
|
1622
1645
|
var [rootNode, setRootNode] = React.useState(null);
|
|
1623
1646
|
var clientRect = rootNode === null || rootNode === void 0 ? void 0 : rootNode.getBoundingClientRect();
|
|
1624
1647
|
var isFullWidth = (clientRect === null || clientRect === void 0 ? void 0 : clientRect.width) === window.innerWidth;
|
|
1625
|
-
return /*#__PURE__*/jsxRuntime.jsx(
|
|
1648
|
+
return /*#__PURE__*/jsxRuntime.jsx(core.Card, _objectSpread(_objectSpread({}, props), {}, {
|
|
1626
1649
|
ref: node => {
|
|
1627
|
-
assignRef(
|
|
1650
|
+
assignRef(_ref2, node);
|
|
1628
1651
|
setRootNode(node);
|
|
1629
1652
|
},
|
|
1630
|
-
|
|
1631
|
-
|
|
1632
|
-
children: /*#__PURE__*/jsxRuntime.jsx(
|
|
1653
|
+
classes: styles,
|
|
1654
|
+
className: clsx(className, isFullWidth && fullWidthClassName, size === 'large' && sizeLargeClassName),
|
|
1655
|
+
children: /*#__PURE__*/jsxRuntime.jsx(core.CardContent, _objectSpread(_objectSpread({}, cardContentProps), {}, {
|
|
1656
|
+
className: clsx(cardContentProps.className, contentClassName),
|
|
1633
1657
|
children: children
|
|
1634
1658
|
}))
|
|
1635
1659
|
}));
|
|
@@ -1685,8 +1709,8 @@ var Inline = /*#__PURE__*/React.forwardRef((_ref2, ref) => {
|
|
|
1685
1709
|
});
|
|
1686
1710
|
if (process.env.NODE_ENV !== "production") Inline.displayName = "Inline";
|
|
1687
1711
|
|
|
1688
|
-
var _excluded$
|
|
1689
|
-
_excluded2$
|
|
1712
|
+
var _excluded$h = ["value", "inputRef", "onChange", "isNumericString", "thousandSeparator", "disableValueParsing"],
|
|
1713
|
+
_excluded2$3 = ["id", "InputProps"];
|
|
1690
1714
|
|
|
1691
1715
|
function NumberInputComponent(_ref) {
|
|
1692
1716
|
var {
|
|
@@ -1697,7 +1721,7 @@ function NumberInputComponent(_ref) {
|
|
|
1697
1721
|
thousandSeparator = true,
|
|
1698
1722
|
disableValueParsing
|
|
1699
1723
|
} = _ref,
|
|
1700
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
1724
|
+
props = _objectWithoutProperties(_ref, _excluded$h);
|
|
1701
1725
|
|
|
1702
1726
|
return /*#__PURE__*/jsxRuntime.jsx(NumberFormat, _objectSpread(_objectSpread({}, props), {}, {
|
|
1703
1727
|
value: value !== null && value !== void 0 ? value : '',
|
|
@@ -1718,15 +1742,16 @@ function NumberInputComponent(_ref) {
|
|
|
1718
1742
|
}));
|
|
1719
1743
|
}
|
|
1720
1744
|
|
|
1721
|
-
var NumberField = /*#__PURE__*/React.forwardRef(_ref2 => {
|
|
1745
|
+
var NumberField = /*#__PURE__*/React.forwardRef((_ref2, ref) => {
|
|
1722
1746
|
var {
|
|
1723
1747
|
id,
|
|
1724
1748
|
InputProps
|
|
1725
1749
|
} = _ref2,
|
|
1726
|
-
props = _objectWithoutProperties(_ref2, _excluded2$
|
|
1750
|
+
props = _objectWithoutProperties(_ref2, _excluded2$3);
|
|
1727
1751
|
|
|
1728
1752
|
var uid = useUID(id);
|
|
1729
|
-
return /*#__PURE__*/jsxRuntime.jsx(
|
|
1753
|
+
return /*#__PURE__*/jsxRuntime.jsx(core.TextField, _objectSpread(_objectSpread({}, props), {}, {
|
|
1754
|
+
ref: ref,
|
|
1730
1755
|
id: uid,
|
|
1731
1756
|
InputProps: _objectSpread(_objectSpread({}, InputProps), {}, {
|
|
1732
1757
|
inputComponent: NumberInputComponent
|
|
@@ -1736,7 +1761,7 @@ var NumberField = /*#__PURE__*/React.forwardRef(_ref2 => {
|
|
|
1736
1761
|
if (process.env.NODE_ENV !== "production") NumberField.displayName = "NumberField";
|
|
1737
1762
|
NumberField.displayName = 'NumberField';
|
|
1738
1763
|
|
|
1739
|
-
var _excluded$
|
|
1764
|
+
var _excluded$i = ["label", "error", "checked", "onBlur", "onChange", "helperText", "FormControlLabelProps"];
|
|
1740
1765
|
var RadioField = /*#__PURE__*/React.forwardRef((_ref, ref) => {
|
|
1741
1766
|
var {
|
|
1742
1767
|
label,
|
|
@@ -1747,27 +1772,27 @@ var RadioField = /*#__PURE__*/React.forwardRef((_ref, ref) => {
|
|
|
1747
1772
|
helperText,
|
|
1748
1773
|
FormControlLabelProps: formControlLabelProps
|
|
1749
1774
|
} = _ref,
|
|
1750
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
1775
|
+
props = _objectWithoutProperties(_ref, _excluded$i);
|
|
1751
1776
|
|
|
1752
|
-
return /*#__PURE__*/jsxRuntime.jsxs(
|
|
1777
|
+
return /*#__PURE__*/jsxRuntime.jsxs(core.FormControl, {
|
|
1753
1778
|
error: error,
|
|
1754
|
-
children: [/*#__PURE__*/jsxRuntime.jsx(
|
|
1779
|
+
children: [/*#__PURE__*/jsxRuntime.jsx(core.FormControlLabel, _objectSpread(_objectSpread({}, formControlLabelProps), {}, {
|
|
1755
1780
|
label: label,
|
|
1756
1781
|
checked: checked,
|
|
1757
1782
|
onBlur: onBlur,
|
|
1758
1783
|
onChange: onChange,
|
|
1759
|
-
control: /*#__PURE__*/jsxRuntime.jsx(
|
|
1784
|
+
control: /*#__PURE__*/jsxRuntime.jsx(core.Radio, _objectSpread({
|
|
1760
1785
|
ref: ref,
|
|
1761
1786
|
color: "primary"
|
|
1762
1787
|
}, props))
|
|
1763
|
-
})), helperText && /*#__PURE__*/jsxRuntime.jsx(
|
|
1788
|
+
})), helperText && /*#__PURE__*/jsxRuntime.jsx(core.FormHelperText, {
|
|
1764
1789
|
children: helperText
|
|
1765
1790
|
})]
|
|
1766
1791
|
});
|
|
1767
1792
|
});
|
|
1768
1793
|
if (process.env.NODE_ENV !== "production") RadioField.displayName = "RadioField";
|
|
1769
1794
|
|
|
1770
|
-
var _excluded$
|
|
1795
|
+
var _excluded$j = ["name", "value", "onChange", "RadioGroupProps", "label", "FormLabelProps", "helperText", "FormHelperTextProps", "children"];
|
|
1771
1796
|
var RadioGroupField = /*#__PURE__*/React.forwardRef((_ref, ref) => {
|
|
1772
1797
|
var {
|
|
1773
1798
|
name,
|
|
@@ -1780,20 +1805,20 @@ var RadioGroupField = /*#__PURE__*/React.forwardRef((_ref, ref) => {
|
|
|
1780
1805
|
FormHelperTextProps: formHelperTextProps,
|
|
1781
1806
|
children
|
|
1782
1807
|
} = _ref,
|
|
1783
|
-
formControlProps = _objectWithoutProperties(_ref, _excluded$
|
|
1808
|
+
formControlProps = _objectWithoutProperties(_ref, _excluded$j);
|
|
1784
1809
|
|
|
1785
|
-
return /*#__PURE__*/jsxRuntime.jsxs(
|
|
1810
|
+
return /*#__PURE__*/jsxRuntime.jsxs(core.FormControl, _objectSpread(_objectSpread({}, formControlProps), {}, {
|
|
1786
1811
|
hiddenLabel: !label,
|
|
1787
|
-
children: [!!label && /*#__PURE__*/jsxRuntime.jsx(
|
|
1812
|
+
children: [!!label && /*#__PURE__*/jsxRuntime.jsx(core.FormLabel, _objectSpread(_objectSpread({}, formLabelProps), {}, {
|
|
1788
1813
|
children: label
|
|
1789
|
-
})), /*#__PURE__*/jsxRuntime.jsx(
|
|
1814
|
+
})), /*#__PURE__*/jsxRuntime.jsx(core.RadioGroup, _objectSpread(_objectSpread({
|
|
1790
1815
|
ref: ref
|
|
1791
1816
|
}, radioGroupProps), {}, {
|
|
1792
1817
|
name: name,
|
|
1793
1818
|
value: value,
|
|
1794
1819
|
onChange: onChange,
|
|
1795
1820
|
children: children
|
|
1796
|
-
})), !!helperText && /*#__PURE__*/jsxRuntime.jsx(
|
|
1821
|
+
})), !!helperText && /*#__PURE__*/jsxRuntime.jsx(core.FormHelperText, _objectSpread(_objectSpread({}, formHelperTextProps), {}, {
|
|
1797
1822
|
children: helperText
|
|
1798
1823
|
}))]
|
|
1799
1824
|
}));
|
|
@@ -1830,9 +1855,9 @@ function useMinBreakpoint(minBreakpoint) {
|
|
|
1830
1855
|
return minBreakpointIDX < breakpointIDX;
|
|
1831
1856
|
}
|
|
1832
1857
|
|
|
1833
|
-
var _excluded$
|
|
1834
|
-
_excluded2$
|
|
1835
|
-
var useStyles$
|
|
1858
|
+
var _excluded$k = ["action", "children", "onClose", "className", "classes", "variant"],
|
|
1859
|
+
_excluded2$4 = ["icon", "closeButton", "variantError", "variantSuccess"];
|
|
1860
|
+
var useStyles$b = /*#__PURE__*/styles.makeStyles(theme => ({
|
|
1836
1861
|
root: {
|
|
1837
1862
|
color: exports.Color.White,
|
|
1838
1863
|
backgroundColor: exports.Color.Dark500,
|
|
@@ -1875,9 +1900,9 @@ var SnackbarContent = /*#__PURE__*/React.forwardRef((_ref, ref) => {
|
|
|
1875
1900
|
classes,
|
|
1876
1901
|
variant = 'default'
|
|
1877
1902
|
} = _ref,
|
|
1878
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
1903
|
+
props = _objectWithoutProperties(_ref, _excluded$k);
|
|
1879
1904
|
|
|
1880
|
-
var _useStyles = useStyles$
|
|
1905
|
+
var _useStyles = useStyles$b({
|
|
1881
1906
|
classes
|
|
1882
1907
|
}),
|
|
1883
1908
|
{
|
|
@@ -1886,10 +1911,10 @@ var SnackbarContent = /*#__PURE__*/React.forwardRef((_ref, ref) => {
|
|
|
1886
1911
|
variantError,
|
|
1887
1912
|
variantSuccess
|
|
1888
1913
|
} = _useStyles,
|
|
1889
|
-
styles = _objectWithoutProperties(_useStyles, _excluded2$
|
|
1914
|
+
styles = _objectWithoutProperties(_useStyles, _excluded2$4);
|
|
1890
1915
|
|
|
1891
|
-
var Icon = variant === 'error' ?
|
|
1892
|
-
return /*#__PURE__*/jsxRuntime.jsx(
|
|
1916
|
+
var Icon = variant === 'error' ? icons.Warning : variant === 'success' ? icons.CheckCircle : undefined;
|
|
1917
|
+
return /*#__PURE__*/jsxRuntime.jsx(core.SnackbarContent, _objectSpread(_objectSpread({}, props), {}, {
|
|
1893
1918
|
ref: ref,
|
|
1894
1919
|
classes: styles,
|
|
1895
1920
|
className: clsx(className, {
|
|
@@ -1901,21 +1926,21 @@ var SnackbarContent = /*#__PURE__*/React.forwardRef((_ref, ref) => {
|
|
|
1901
1926
|
className: icon
|
|
1902
1927
|
}), children]
|
|
1903
1928
|
}),
|
|
1904
|
-
action: !action && !onClose ? null : /*#__PURE__*/jsxRuntime.jsxs(
|
|
1929
|
+
action: !action && !onClose ? null : /*#__PURE__*/jsxRuntime.jsxs(core.Grid, {
|
|
1905
1930
|
container: true,
|
|
1906
1931
|
spacing: 1,
|
|
1907
1932
|
alignItems: "center",
|
|
1908
1933
|
wrap: "nowrap",
|
|
1909
|
-
children: [!!action && /*#__PURE__*/jsxRuntime.jsx(
|
|
1934
|
+
children: [!!action && /*#__PURE__*/jsxRuntime.jsx(core.Grid, {
|
|
1910
1935
|
item: true,
|
|
1911
1936
|
children: action
|
|
1912
|
-
}), onClose && /*#__PURE__*/jsxRuntime.jsx(
|
|
1937
|
+
}), onClose && /*#__PURE__*/jsxRuntime.jsx(core.Grid, {
|
|
1913
1938
|
item: true,
|
|
1914
|
-
children: /*#__PURE__*/jsxRuntime.jsx(
|
|
1939
|
+
children: /*#__PURE__*/jsxRuntime.jsx(core.IconButton, {
|
|
1915
1940
|
"aria-label": "close",
|
|
1916
1941
|
onClick: onClose,
|
|
1917
1942
|
className: closeButton,
|
|
1918
|
-
children: /*#__PURE__*/jsxRuntime.jsx(
|
|
1943
|
+
children: /*#__PURE__*/jsxRuntime.jsx(icons.Close, {
|
|
1919
1944
|
fontSize: "small"
|
|
1920
1945
|
})
|
|
1921
1946
|
})
|
|
@@ -1925,10 +1950,10 @@ var SnackbarContent = /*#__PURE__*/React.forwardRef((_ref, ref) => {
|
|
|
1925
1950
|
});
|
|
1926
1951
|
if (process.env.NODE_ENV !== "production") SnackbarContent.displayName = "SnackbarContent";
|
|
1927
1952
|
|
|
1928
|
-
var _excluded$
|
|
1953
|
+
var _excluded$l = ["open", "action", "variant", "onClose", "children", "ContentProps", "hasCloseButton", "TransitionComponent"];
|
|
1929
1954
|
|
|
1930
1955
|
function SlideTransition(props) {
|
|
1931
|
-
return /*#__PURE__*/jsxRuntime.jsx(
|
|
1956
|
+
return /*#__PURE__*/jsxRuntime.jsx(core.Slide, _objectSpread(_objectSpread({}, props), {}, {
|
|
1932
1957
|
direction: "up"
|
|
1933
1958
|
}));
|
|
1934
1959
|
}
|
|
@@ -1944,7 +1969,7 @@ var Snackbar = /*#__PURE__*/React.forwardRef((_ref, ref) => {
|
|
|
1944
1969
|
hasCloseButton = onClose != null,
|
|
1945
1970
|
TransitionComponent = SlideTransition
|
|
1946
1971
|
} = _ref,
|
|
1947
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
1972
|
+
props = _objectWithoutProperties(_ref, _excluded$l);
|
|
1948
1973
|
|
|
1949
1974
|
function handleClose(reason) {
|
|
1950
1975
|
if (reason !== 'clickaway') {
|
|
@@ -1952,8 +1977,8 @@ var Snackbar = /*#__PURE__*/React.forwardRef((_ref, ref) => {
|
|
|
1952
1977
|
}
|
|
1953
1978
|
}
|
|
1954
1979
|
|
|
1955
|
-
return /*#__PURE__*/jsxRuntime.jsx(
|
|
1956
|
-
children: /*#__PURE__*/jsxRuntime.jsx(
|
|
1980
|
+
return /*#__PURE__*/jsxRuntime.jsx(core.Portal, {
|
|
1981
|
+
children: /*#__PURE__*/jsxRuntime.jsx(core.Snackbar, _objectSpread(_objectSpread({}, props), {}, {
|
|
1957
1982
|
ref: ref,
|
|
1958
1983
|
open: open,
|
|
1959
1984
|
TransitionComponent: TransitionComponent,
|
|
@@ -1973,7 +1998,7 @@ var Snackbar = /*#__PURE__*/React.forwardRef((_ref, ref) => {
|
|
|
1973
1998
|
});
|
|
1974
1999
|
if (process.env.NODE_ENV !== "production") Snackbar.displayName = "Snackbar";
|
|
1975
2000
|
|
|
1976
|
-
var _excluded$
|
|
2001
|
+
var _excluded$m = ["onClose", "variant", "key", "id", "autoHideDuration"];
|
|
1977
2002
|
|
|
1978
2003
|
function warnContext() {
|
|
1979
2004
|
// eslint-disable-next-line no-console
|
|
@@ -2019,7 +2044,7 @@ function SnackbarStackProvider(_ref2) {
|
|
|
2019
2044
|
id = String(key),
|
|
2020
2045
|
autoHideDuration = 5000
|
|
2021
2046
|
} = _ref3,
|
|
2022
|
-
props = _objectWithoutProperties(_ref3, _excluded$
|
|
2047
|
+
props = _objectWithoutProperties(_ref3, _excluded$m);
|
|
2023
2048
|
|
|
2024
2049
|
function removeSnackbar() {
|
|
2025
2050
|
setStack(prev => {
|
|
@@ -2116,8 +2141,8 @@ var Stack = /*#__PURE__*/React.forwardRef((_ref2, ref) => {
|
|
|
2116
2141
|
});
|
|
2117
2142
|
if (process.env.NODE_ENV !== "production") Stack.displayName = "Stack";
|
|
2118
2143
|
|
|
2119
|
-
var _excluded$
|
|
2120
|
-
var useStyles$
|
|
2144
|
+
var _excluded$n = ["color", "variant", "children", "classes", "className", "noWrap", "fontWeight", "component"];
|
|
2145
|
+
var useStyles$c = /*#__PURE__*/styles.makeStyles(theme => ({
|
|
2121
2146
|
root: {
|
|
2122
2147
|
maxWidth: '100%',
|
|
2123
2148
|
alignItems: 'center',
|
|
@@ -2200,12 +2225,12 @@ var Tag = /*#__PURE__*/React.forwardRef((_ref, ref) => {
|
|
|
2200
2225
|
fontWeight = 'bold',
|
|
2201
2226
|
component = 'div'
|
|
2202
2227
|
} = _ref,
|
|
2203
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
2228
|
+
props = _objectWithoutProperties(_ref, _excluded$n);
|
|
2204
2229
|
|
|
2205
|
-
var styles = useStyles$
|
|
2230
|
+
var styles = useStyles$c({
|
|
2206
2231
|
classes
|
|
2207
2232
|
});
|
|
2208
|
-
return /*#__PURE__*/jsxRuntime.jsx(
|
|
2233
|
+
return /*#__PURE__*/jsxRuntime.jsx(core.Typography, _objectSpread(_objectSpread({}, props), {}, {
|
|
2209
2234
|
ref: ref,
|
|
2210
2235
|
noWrap: noWrap,
|
|
2211
2236
|
component: component,
|
|
@@ -2228,28 +2253,29 @@ var Tag = /*#__PURE__*/React.forwardRef((_ref, ref) => {
|
|
|
2228
2253
|
if (process.env.NODE_ENV !== "production") Tag.displayName = "Tag";
|
|
2229
2254
|
|
|
2230
2255
|
function overrideAppBar(theme) {
|
|
2231
|
-
theme.
|
|
2232
|
-
|
|
2233
|
-
|
|
2234
|
-
|
|
2235
|
-
position: 'static'
|
|
2236
|
-
}
|
|
2256
|
+
theme.props.MuiAppBar = {
|
|
2257
|
+
elevation: 0,
|
|
2258
|
+
color: 'inherit',
|
|
2259
|
+
position: 'static'
|
|
2237
2260
|
};
|
|
2238
2261
|
}
|
|
2239
2262
|
|
|
2240
2263
|
function overrideAutocomplete(theme) {
|
|
2241
|
-
var sm = theme.breakpoints.up('sm');
|
|
2242
|
-
|
|
2243
|
-
|
|
2244
|
-
|
|
2264
|
+
var sm = theme.breakpoints.up('sm'); // Remove `Object.assign` after official release of `Autocomplete`.
|
|
2265
|
+
|
|
2266
|
+
Object.assign(theme.props, {
|
|
2267
|
+
MuiAutocomplete: {
|
|
2268
|
+
popupIcon: /*#__PURE__*/jsxRuntime.jsx(core.SvgIcon, {
|
|
2245
2269
|
children: /*#__PURE__*/jsxRuntime.jsx("path", {
|
|
2246
2270
|
d: "M12 16.5L6 9h12l-6 7.5z",
|
|
2247
2271
|
fill: "currentColor"
|
|
2248
2272
|
})
|
|
2249
2273
|
})
|
|
2250
|
-
}
|
|
2251
|
-
|
|
2252
|
-
|
|
2274
|
+
}
|
|
2275
|
+
});
|
|
2276
|
+
Object.assign(theme.overrides, {
|
|
2277
|
+
MuiAutocomplete: {
|
|
2278
|
+
paper: _objectSpread({}, theme.typography.body2),
|
|
2253
2279
|
tag: {
|
|
2254
2280
|
margin: '4px',
|
|
2255
2281
|
[sm]: {
|
|
@@ -2273,47 +2299,45 @@ function overrideAutocomplete(theme) {
|
|
|
2273
2299
|
inputRoot: {
|
|
2274
2300
|
'&[class*="MuiOutlinedInput-root"]': {
|
|
2275
2301
|
padding: '6px 8px',
|
|
2276
|
-
|
|
2302
|
+
'& $input': {
|
|
2277
2303
|
width: '144px',
|
|
2278
2304
|
padding: '4px'
|
|
2279
2305
|
},
|
|
2280
|
-
|
|
2281
|
-
paddingLeft:
|
|
2306
|
+
'& $input:first-child': {
|
|
2307
|
+
paddingLeft: undefined
|
|
2282
2308
|
},
|
|
2283
|
-
|
|
2309
|
+
'& $endAdornment': {
|
|
2284
2310
|
right: '12px'
|
|
2285
2311
|
},
|
|
2286
2312
|
[sm]: {
|
|
2287
2313
|
padding: theme.spacing(0.5, 0.75),
|
|
2288
|
-
|
|
2314
|
+
'& $input': {
|
|
2289
2315
|
padding: '2px'
|
|
2290
2316
|
},
|
|
2291
|
-
|
|
2317
|
+
'& $endAdornment': {
|
|
2292
2318
|
right: '8px'
|
|
2293
2319
|
}
|
|
2294
2320
|
}
|
|
2295
2321
|
}
|
|
2296
2322
|
}
|
|
2297
2323
|
}
|
|
2298
|
-
};
|
|
2324
|
+
});
|
|
2299
2325
|
}
|
|
2300
2326
|
|
|
2301
2327
|
function overrideAvatar(theme) {
|
|
2302
|
-
theme.
|
|
2303
|
-
|
|
2304
|
-
|
|
2305
|
-
|
|
2306
|
-
|
|
2307
|
-
|
|
2308
|
-
|
|
2309
|
-
|
|
2310
|
-
height: theme.spacing(4)
|
|
2311
|
-
}
|
|
2312
|
-
}),
|
|
2313
|
-
colorDefault: {
|
|
2314
|
-
color: exports.Color.Dark300,
|
|
2315
|
-
backgroundColor: exports.Color.Silver300
|
|
2328
|
+
theme.overrides.MuiAvatar = {
|
|
2329
|
+
root: _objectSpread(_objectSpread({}, theme.typography.h5), {}, {
|
|
2330
|
+
textTransform: 'uppercase',
|
|
2331
|
+
width: theme.spacing(5),
|
|
2332
|
+
height: theme.spacing(5),
|
|
2333
|
+
[theme.breakpoints.up('sm')]: {
|
|
2334
|
+
width: theme.spacing(4),
|
|
2335
|
+
height: theme.spacing(4)
|
|
2316
2336
|
}
|
|
2337
|
+
}),
|
|
2338
|
+
colorDefault: {
|
|
2339
|
+
color: exports.Color.Dark300,
|
|
2340
|
+
backgroundColor: exports.Color.Silver300
|
|
2317
2341
|
}
|
|
2318
2342
|
};
|
|
2319
2343
|
}
|
|
@@ -2326,11 +2350,9 @@ function outlineShadow() {
|
|
|
2326
2350
|
|
|
2327
2351
|
function textVariant(text, outline, background, progress) {
|
|
2328
2352
|
return {
|
|
2329
|
-
|
|
2330
|
-
|
|
2331
|
-
|
|
2332
|
-
backgroundColor: exports.Color.Transparent
|
|
2333
|
-
},
|
|
2353
|
+
color: text,
|
|
2354
|
+
boxShadow: outlineShadow(),
|
|
2355
|
+
backgroundColor: exports.Color.Transparent,
|
|
2334
2356
|
'&:hover': {
|
|
2335
2357
|
backgroundColor: background
|
|
2336
2358
|
},
|
|
@@ -2341,13 +2363,13 @@ function textVariant(text, outline, background, progress) {
|
|
|
2341
2363
|
backgroundColor: background,
|
|
2342
2364
|
boxShadow: outlineShadow(2, outline)
|
|
2343
2365
|
},
|
|
2344
|
-
|
|
2366
|
+
'&$disabled': {
|
|
2345
2367
|
color: outline,
|
|
2346
2368
|
boxShadow: outlineShadow(),
|
|
2347
|
-
backgroundColor: exports.Color.Transparent
|
|
2348
|
-
|
|
2349
|
-
|
|
2350
|
-
|
|
2369
|
+
backgroundColor: exports.Color.Transparent
|
|
2370
|
+
},
|
|
2371
|
+
'&$disabled[aria-busy="true"]': {
|
|
2372
|
+
color: progress
|
|
2351
2373
|
}
|
|
2352
2374
|
};
|
|
2353
2375
|
}
|
|
@@ -2361,11 +2383,11 @@ function outlinedVariant(staleText, staleBorder, disabledText, disabledBorder, a
|
|
|
2361
2383
|
return {
|
|
2362
2384
|
backgroundColor,
|
|
2363
2385
|
color: staleText,
|
|
2364
|
-
border:
|
|
2386
|
+
border: undefined,
|
|
2365
2387
|
boxShadow: outlinedBorder(staleBorder),
|
|
2366
2388
|
'&:hover': {
|
|
2367
2389
|
color: activeText,
|
|
2368
|
-
border:
|
|
2390
|
+
border: undefined,
|
|
2369
2391
|
backgroundColor: activeBackground,
|
|
2370
2392
|
boxShadow: outlinedBorder(activeBorder)
|
|
2371
2393
|
},
|
|
@@ -2377,13 +2399,13 @@ function outlinedVariant(staleText, staleBorder, disabledText, disabledBorder, a
|
|
|
2377
2399
|
'&:focus': {
|
|
2378
2400
|
boxShadow: outlinedBorder(activeBorder, activeOutline)
|
|
2379
2401
|
},
|
|
2380
|
-
|
|
2402
|
+
'&$disabled': {
|
|
2381
2403
|
backgroundColor,
|
|
2382
2404
|
color: disabledText,
|
|
2383
|
-
boxShadow: outlinedBorder(disabledBorder)
|
|
2384
|
-
|
|
2385
|
-
|
|
2386
|
-
|
|
2405
|
+
boxShadow: outlinedBorder(disabledBorder)
|
|
2406
|
+
},
|
|
2407
|
+
'&$disabled[aria-busy="true"]': {
|
|
2408
|
+
color: progress
|
|
2387
2409
|
}
|
|
2388
2410
|
};
|
|
2389
2411
|
}
|
|
@@ -2402,236 +2424,229 @@ function containedVariant(text, backgroundColor, outline, active, disabledText,
|
|
|
2402
2424
|
'&:focus': {
|
|
2403
2425
|
boxShadow: outlineShadow(3, outline)
|
|
2404
2426
|
},
|
|
2405
|
-
|
|
2427
|
+
'&$disabled': {
|
|
2406
2428
|
color: disabledText,
|
|
2407
2429
|
boxShadow: outlineShadow(),
|
|
2408
|
-
backgroundColor: disabledBackground
|
|
2409
|
-
["& .".concat(lab.loadingButtonClasses.loadingIndicator)]: {
|
|
2410
|
-
color: disabledText
|
|
2411
|
-
}
|
|
2430
|
+
backgroundColor: disabledBackground
|
|
2412
2431
|
}
|
|
2413
2432
|
};
|
|
2414
2433
|
}
|
|
2415
2434
|
|
|
2416
|
-
function sizeSmall(theme) {
|
|
2417
|
-
var sm = theme.breakpoints.up('sm');
|
|
2418
|
-
return _objectSpread(_objectSpread({}, theme.typography.button), {}, {
|
|
2419
|
-
padding: theme.spacing(0.5, 3),
|
|
2420
|
-
[sm]: {
|
|
2421
|
-
padding: theme.spacing(0.25, 2)
|
|
2422
|
-
}
|
|
2423
|
-
});
|
|
2424
|
-
}
|
|
2425
|
-
|
|
2426
|
-
function sizeLarge(theme) {
|
|
2427
|
-
var sm = theme.breakpoints.up('sm');
|
|
2428
|
-
return _objectSpread(_objectSpread({}, theme.typography.button), {}, {
|
|
2429
|
-
fontSize: '18px',
|
|
2430
|
-
lineHeight: '28px',
|
|
2431
|
-
padding: theme.spacing(1.75, 8),
|
|
2432
|
-
[sm]: {
|
|
2433
|
-
fontSize: '16px',
|
|
2434
|
-
lineHeight: '24px',
|
|
2435
|
-
padding: theme.spacing(1, 4)
|
|
2436
|
-
}
|
|
2437
|
-
});
|
|
2438
|
-
}
|
|
2439
|
-
|
|
2440
2435
|
function overrideButton(theme) {
|
|
2441
2436
|
var sm = theme.breakpoints.up('sm');
|
|
2442
|
-
theme.
|
|
2443
|
-
|
|
2444
|
-
|
|
2445
|
-
|
|
2446
|
-
|
|
2447
|
-
|
|
2448
|
-
|
|
2449
|
-
|
|
2450
|
-
|
|
2451
|
-
|
|
2437
|
+
theme.props.MuiButton = {
|
|
2438
|
+
color: 'primary',
|
|
2439
|
+
variant: 'outlined',
|
|
2440
|
+
disableFocusRipple: true
|
|
2441
|
+
};
|
|
2442
|
+
theme.overrides.MuiButton = {
|
|
2443
|
+
root: {
|
|
2444
|
+
color: undefined,
|
|
2445
|
+
minWidth: theme.spacing(6),
|
|
2446
|
+
transition: theme.transitions.create(['color', 'border', 'box-shadow', 'background-color']),
|
|
2447
|
+
padding: theme.spacing(1.25, 3),
|
|
2448
|
+
[sm]: {
|
|
2449
|
+
padding: theme.spacing(0.75, 2)
|
|
2450
|
+
},
|
|
2451
|
+
'&:hover': {
|
|
2452
|
+
backgroundColor: undefined,
|
|
2453
|
+
'&$disabled': {
|
|
2454
|
+
backgroundColor: undefined
|
|
2455
|
+
},
|
|
2456
|
+
'@media (hover: none)': {
|
|
2457
|
+
backgroundColor: undefined
|
|
2458
|
+
}
|
|
2459
|
+
},
|
|
2460
|
+
'&$disabled': {
|
|
2461
|
+
color: undefined
|
|
2462
|
+
},
|
|
2463
|
+
'&[aria-busy="true"]': {
|
|
2464
|
+
'& $label': {
|
|
2465
|
+
visibility: 'hidden',
|
|
2466
|
+
'& > [role="progressbar"]': {
|
|
2467
|
+
position: 'absolute',
|
|
2468
|
+
visibility: 'visible',
|
|
2469
|
+
top: 'calc(50% - 0.5em)',
|
|
2470
|
+
left: 'calc(50% - 0.5em)',
|
|
2471
|
+
fontSize: theme.spacing(2),
|
|
2472
|
+
'$sizeLarge &': {
|
|
2473
|
+
fontSize: theme.spacing(3)
|
|
2474
|
+
}
|
|
2475
|
+
}
|
|
2452
2476
|
}
|
|
2453
2477
|
}
|
|
2454
|
-
}
|
|
2455
|
-
|
|
2456
|
-
|
|
2457
|
-
|
|
2458
|
-
color: 'primary',
|
|
2459
|
-
variant: 'outlined',
|
|
2460
|
-
disableFocusRipple: true
|
|
2461
|
-
},
|
|
2462
|
-
styleOverrides: {
|
|
2463
|
-
root: {
|
|
2464
|
-
minWidth: theme.spacing(6),
|
|
2465
|
-
transition: theme.transitions.create(['color', 'border', 'box-shadow', 'background-color']),
|
|
2466
|
-
padding: theme.spacing(1.25, 3),
|
|
2478
|
+
},
|
|
2479
|
+
label: {
|
|
2480
|
+
'& > .MuiSvgIcon-root': {
|
|
2481
|
+
fontSize: '24px',
|
|
2467
2482
|
[sm]: {
|
|
2468
|
-
|
|
2469
|
-
},
|
|
2470
|
-
'&:hover': {
|
|
2471
|
-
backgroundColor: 'initial',
|
|
2472
|
-
["&.".concat(material.buttonClasses.disabled)]: {
|
|
2473
|
-
backgroundColor: 'initial'
|
|
2474
|
-
},
|
|
2475
|
-
'@media (hover: none)': {
|
|
2476
|
-
backgroundColor: 'initial'
|
|
2477
|
-
}
|
|
2478
|
-
},
|
|
2479
|
-
["&.".concat(material.buttonClasses.disabled)]: {
|
|
2480
|
-
color: 'initial'
|
|
2483
|
+
fontSize: '20px'
|
|
2481
2484
|
},
|
|
2482
|
-
'&
|
|
2483
|
-
fontSize: '
|
|
2485
|
+
'$sizeLarge &': {
|
|
2486
|
+
fontSize: '28px',
|
|
2484
2487
|
[sm]: {
|
|
2485
|
-
fontSize: '
|
|
2486
|
-
},
|
|
2487
|
-
[".".concat(material.buttonClasses.sizeLarge, "&")]: {
|
|
2488
|
-
fontSize: '28px',
|
|
2489
|
-
[sm]: {
|
|
2490
|
-
fontSize: '24px'
|
|
2491
|
-
}
|
|
2488
|
+
fontSize: '24px'
|
|
2492
2489
|
}
|
|
2493
2490
|
}
|
|
2491
|
+
}
|
|
2492
|
+
},
|
|
2493
|
+
sizeSmall: {
|
|
2494
|
+
padding: theme.spacing(0.5, 3),
|
|
2495
|
+
[sm]: {
|
|
2496
|
+
padding: theme.spacing(0.25, 2)
|
|
2497
|
+
}
|
|
2498
|
+
},
|
|
2499
|
+
sizeLarge: {
|
|
2500
|
+
fontSize: '18px',
|
|
2501
|
+
lineHeight: '28px',
|
|
2502
|
+
padding: theme.spacing(1.75, 8),
|
|
2503
|
+
[sm]: {
|
|
2504
|
+
fontSize: '16px',
|
|
2505
|
+
lineHeight: '24px',
|
|
2506
|
+
padding: theme.spacing(1, 4)
|
|
2507
|
+
}
|
|
2508
|
+
},
|
|
2509
|
+
text: {
|
|
2510
|
+
padding: undefined,
|
|
2511
|
+
'&[data-color="error"]': textVariant(exports.Color.Red300, exports.Color.Red100, exports.Color.Red50, exports.Color.Red200),
|
|
2512
|
+
'&[data-color="success"]': textVariant(exports.Color.Green300, exports.Color.Green100, exports.Color.Green50, exports.Color.Green200),
|
|
2513
|
+
'&[data-color="white"]': textVariant(exports.Color.White, exports.Color.White50, exports.Color.White10, exports.Color.White50)
|
|
2514
|
+
},
|
|
2515
|
+
textPrimary: textVariant(exports.Color.Blue300, exports.Color.Blue100, exports.Color.Blue50, exports.Color.Blue200),
|
|
2516
|
+
textSizeSmall: {
|
|
2517
|
+
padding: undefined,
|
|
2518
|
+
fontSize: undefined
|
|
2519
|
+
},
|
|
2520
|
+
textSizeLarge: {
|
|
2521
|
+
padding: undefined,
|
|
2522
|
+
fontSize: undefined
|
|
2523
|
+
},
|
|
2524
|
+
outlined: {
|
|
2525
|
+
border: undefined,
|
|
2526
|
+
padding: undefined,
|
|
2527
|
+
'&$disabled': {
|
|
2528
|
+
border: undefined
|
|
2529
|
+
},
|
|
2530
|
+
'&[data-color="error"]': outlinedVariant(exports.Color.Red300, exports.Color.Red300, exports.Color.Red100, exports.Color.Red100, exports.Color.Red300, exports.Color.Red300, exports.Color.Red100, exports.Color.Red50, exports.Color.Red300, exports.Color.White),
|
|
2531
|
+
'&[data-color="success"]': outlinedVariant(exports.Color.Green300, exports.Color.Green300, exports.Color.Green100, exports.Color.Green100, exports.Color.Green300, exports.Color.Green300, exports.Color.Green100, exports.Color.Green50, exports.Color.Green300, exports.Color.White),
|
|
2532
|
+
'&[data-color="white"]': outlinedVariant(exports.Color.White, exports.Color.White50, exports.Color.White50, exports.Color.White40, exports.Color.White, exports.Color.White50, exports.Color.White40, exports.Color.White10, exports.Color.White50, exports.Color.Transparent)
|
|
2533
|
+
},
|
|
2534
|
+
outlinedPrimary: outlinedVariant(exports.Color.Dark500, exports.Color.Silver500, exports.Color.Silver500, exports.Color.Silver400, exports.Color.Blue300, exports.Color.Blue300, exports.Color.Blue100, exports.Color.Blue50, exports.Color.Dark200, exports.Color.White),
|
|
2535
|
+
outlinedSizeSmall: {
|
|
2536
|
+
padding: undefined,
|
|
2537
|
+
fontSize: undefined
|
|
2538
|
+
},
|
|
2539
|
+
outlinedSizeLarge: {
|
|
2540
|
+
padding: undefined,
|
|
2541
|
+
fontSize: undefined
|
|
2542
|
+
},
|
|
2543
|
+
contained: {
|
|
2544
|
+
boxShadow: undefined,
|
|
2545
|
+
backgroundColor: undefined,
|
|
2546
|
+
'&:hover': {
|
|
2547
|
+
boxShadow: undefined,
|
|
2548
|
+
backgroundColor: undefined,
|
|
2549
|
+
'&$disabled': {
|
|
2550
|
+
backgroundColor: undefined
|
|
2551
|
+
},
|
|
2552
|
+
'@media (hover: none)': {
|
|
2553
|
+
boxShadow: undefined,
|
|
2554
|
+
backgroundColor: undefined
|
|
2555
|
+
}
|
|
2494
2556
|
},
|
|
2495
|
-
|
|
2496
|
-
|
|
2497
|
-
text: {
|
|
2498
|
-
padding: 'initial',
|
|
2499
|
-
'&[data-color="error"]': textVariant(exports.Color.Red300, exports.Color.Red100, exports.Color.Red50, exports.Color.Red200),
|
|
2500
|
-
'&[data-color="success"]': textVariant(exports.Color.Green300, exports.Color.Green100, exports.Color.Green50, exports.Color.Green200),
|
|
2501
|
-
'&[data-color="white"]': textVariant(exports.Color.White, exports.Color.White50, exports.Color.White10, exports.Color.White50)
|
|
2557
|
+
'&:active': {
|
|
2558
|
+
boxShadow: undefined
|
|
2502
2559
|
},
|
|
2503
|
-
|
|
2504
|
-
|
|
2505
|
-
textSizeLarge: sizeLarge(theme),
|
|
2506
|
-
outlined: {
|
|
2507
|
-
border: 'none',
|
|
2508
|
-
padding: 'initial',
|
|
2509
|
-
["&.".concat(material.buttonClasses.disabled)]: {
|
|
2510
|
-
border: 'none'
|
|
2511
|
-
},
|
|
2512
|
-
'&[data-color="error"]': outlinedVariant(exports.Color.Red300, exports.Color.Red300, exports.Color.Red100, exports.Color.Red100, exports.Color.Red300, exports.Color.Red300, exports.Color.Red100, exports.Color.Red50, exports.Color.Red300, exports.Color.White),
|
|
2513
|
-
'&[data-color="success"]': outlinedVariant(exports.Color.Green300, exports.Color.Green300, exports.Color.Green100, exports.Color.Green100, exports.Color.Green300, exports.Color.Green300, exports.Color.Green100, exports.Color.Green50, exports.Color.Green300, exports.Color.White),
|
|
2514
|
-
'&[data-color="white"]': outlinedVariant(exports.Color.White, exports.Color.White50, exports.Color.White50, exports.Color.White40, exports.Color.White, exports.Color.White50, exports.Color.White40, exports.Color.White10, exports.Color.White50, exports.Color.Transparent)
|
|
2560
|
+
'&$focusVisible': {
|
|
2561
|
+
boxShadow: undefined
|
|
2515
2562
|
},
|
|
2516
|
-
|
|
2517
|
-
|
|
2518
|
-
|
|
2519
|
-
|
|
2520
|
-
boxShadow: 'none',
|
|
2521
|
-
backgroundColor: 'initial',
|
|
2522
|
-
'&:hover': {
|
|
2523
|
-
boxShadow: 'none',
|
|
2524
|
-
backgroundColor: 'initial',
|
|
2525
|
-
["&.".concat(material.buttonClasses.disabled)]: {
|
|
2526
|
-
backgroundColor: 'none'
|
|
2527
|
-
},
|
|
2528
|
-
'@media (hover: none)': {
|
|
2529
|
-
boxShadow: 'none',
|
|
2530
|
-
backgroundColor: 'none'
|
|
2531
|
-
}
|
|
2532
|
-
},
|
|
2533
|
-
'&:active': {
|
|
2534
|
-
boxShadow: 'none'
|
|
2535
|
-
},
|
|
2536
|
-
["&.".concat(material.buttonClasses.focusVisible)]: {
|
|
2537
|
-
boxShadow: 'none'
|
|
2538
|
-
},
|
|
2539
|
-
["&.".concat(material.buttonClasses.disabled)]: {
|
|
2540
|
-
color: 'initial',
|
|
2541
|
-
boxShadow: 'none',
|
|
2542
|
-
backgroundColor: 'initial'
|
|
2543
|
-
},
|
|
2544
|
-
'&[data-color="error"]': containedVariant(exports.Color.White, exports.Color.Red300, exports.Color.Red100, exports.Color.Red500, exports.Color.White, exports.Color.Red100),
|
|
2545
|
-
'&[data-color="success"]': containedVariant(exports.Color.White, exports.Color.Green300, exports.Color.Green100, exports.Color.Green500, exports.Color.White, exports.Color.Green100),
|
|
2546
|
-
'&[data-color="white"]': containedVariant(exports.Color.White, exports.Color.White20, exports.Color.White40, exports.Color.White40, exports.Color.White50, exports.Color.White08)
|
|
2563
|
+
'&$disabled': {
|
|
2564
|
+
color: undefined,
|
|
2565
|
+
boxShadow: undefined,
|
|
2566
|
+
backgroundColor: undefined
|
|
2547
2567
|
},
|
|
2548
|
-
|
|
2549
|
-
|
|
2550
|
-
|
|
2568
|
+
'&[data-color="error"]': containedVariant(exports.Color.White, exports.Color.Red300, exports.Color.Red100, exports.Color.Red500, exports.Color.White, exports.Color.Red100),
|
|
2569
|
+
'&[data-color="success"]': containedVariant(exports.Color.White, exports.Color.Green300, exports.Color.Green100, exports.Color.Green500, exports.Color.White, exports.Color.Green100),
|
|
2570
|
+
'&[data-color="white"]': containedVariant(exports.Color.White, exports.Color.White20, exports.Color.White40, exports.Color.White40, exports.Color.White50, exports.Color.White08)
|
|
2571
|
+
},
|
|
2572
|
+
containedPrimary: containedVariant(exports.Color.White, exports.Color.Blue300, exports.Color.Blue100, exports.Color.Blue500, exports.Color.White, exports.Color.Blue100),
|
|
2573
|
+
containedSizeSmall: {
|
|
2574
|
+
padding: undefined,
|
|
2575
|
+
fontSize: undefined
|
|
2576
|
+
},
|
|
2577
|
+
containedSizeLarge: {
|
|
2578
|
+
padding: undefined,
|
|
2579
|
+
fontSize: undefined
|
|
2551
2580
|
}
|
|
2552
2581
|
};
|
|
2553
2582
|
}
|
|
2554
2583
|
|
|
2555
2584
|
function overrideCard(theme) {
|
|
2556
|
-
theme.
|
|
2557
|
-
|
|
2558
|
-
variant: 'outlined'
|
|
2559
|
-
}
|
|
2585
|
+
theme.props.MuiCard = {
|
|
2586
|
+
variant: 'outlined'
|
|
2560
2587
|
};
|
|
2561
|
-
theme.
|
|
2562
|
-
|
|
2563
|
-
|
|
2564
|
-
|
|
2565
|
-
paddingBottom: '16px'
|
|
2566
|
-
}
|
|
2588
|
+
theme.overrides.MuiCardContent = {
|
|
2589
|
+
root: {
|
|
2590
|
+
'&:last-child': {
|
|
2591
|
+
paddingBottom: undefined
|
|
2567
2592
|
}
|
|
2568
2593
|
}
|
|
2569
2594
|
};
|
|
2570
2595
|
}
|
|
2571
2596
|
|
|
2572
2597
|
function overrideCheckbox(theme) {
|
|
2573
|
-
theme.
|
|
2574
|
-
|
|
2575
|
-
|
|
2576
|
-
|
|
2577
|
-
|
|
2578
|
-
|
|
2579
|
-
|
|
2580
|
-
|
|
2581
|
-
|
|
2582
|
-
|
|
2583
|
-
|
|
2584
|
-
rx: "1.5"
|
|
2585
|
-
})
|
|
2586
|
-
}),
|
|
2587
|
-
checkedIcon: /*#__PURE__*/jsxRuntime.jsxs(material.SvgIcon, {
|
|
2588
|
-
children: [/*#__PURE__*/jsxRuntime.jsx("rect", {
|
|
2589
|
-
width: "18",
|
|
2590
|
-
height: "18",
|
|
2591
|
-
x: "3",
|
|
2592
|
-
y: "3",
|
|
2593
|
-
fill: "currentColor",
|
|
2594
|
-
rx: "2"
|
|
2595
|
-
}), /*#__PURE__*/jsxRuntime.jsx("path", {
|
|
2596
|
-
fill: exports.Color.White,
|
|
2597
|
-
d: "M15.73 8l-.63.63c-1.43 1.43-2.94 3.05-4.37 4.5l-1.9-1.57-.7-.57L7 12.38l.7.57 2.53 2.09.63.52.58-.58c1.6-1.62 3.35-3.5 4.93-5.08l.63-.63L15.73 8z"
|
|
2598
|
-
})]
|
|
2599
|
-
}),
|
|
2600
|
-
indeterminateIcon: /*#__PURE__*/jsxRuntime.jsxs(material.SvgIcon, {
|
|
2601
|
-
children: [/*#__PURE__*/jsxRuntime.jsx("rect", {
|
|
2602
|
-
width: "18",
|
|
2603
|
-
height: "18",
|
|
2604
|
-
x: "3",
|
|
2605
|
-
y: "3",
|
|
2606
|
-
fill: "currentIcon",
|
|
2607
|
-
rx: "2"
|
|
2608
|
-
}), /*#__PURE__*/jsxRuntime.jsx("path", {
|
|
2609
|
-
fill: exports.Color.White,
|
|
2610
|
-
d: "M7 11h10v2H7v-2z"
|
|
2611
|
-
})]
|
|
2598
|
+
theme.props.MuiCheckbox = {
|
|
2599
|
+
color: 'primary',
|
|
2600
|
+
icon: /*#__PURE__*/jsxRuntime.jsx(core.SvgIcon, {
|
|
2601
|
+
children: /*#__PURE__*/jsxRuntime.jsx("rect", {
|
|
2602
|
+
width: "17",
|
|
2603
|
+
height: "17",
|
|
2604
|
+
x: "3.5",
|
|
2605
|
+
y: "3.5",
|
|
2606
|
+
fill: exports.Color.White,
|
|
2607
|
+
stroke: "currentColor",
|
|
2608
|
+
rx: "1.5"
|
|
2612
2609
|
})
|
|
2610
|
+
}),
|
|
2611
|
+
checkedIcon: /*#__PURE__*/jsxRuntime.jsxs(core.SvgIcon, {
|
|
2612
|
+
children: [/*#__PURE__*/jsxRuntime.jsx("rect", {
|
|
2613
|
+
width: "18",
|
|
2614
|
+
height: "18",
|
|
2615
|
+
x: "3",
|
|
2616
|
+
y: "3",
|
|
2617
|
+
fill: "currentColor",
|
|
2618
|
+
rx: "2"
|
|
2619
|
+
}), /*#__PURE__*/jsxRuntime.jsx("path", {
|
|
2620
|
+
fill: exports.Color.White,
|
|
2621
|
+
d: "M15.73 8l-.63.63c-1.43 1.43-2.94 3.05-4.37 4.5l-1.9-1.57-.7-.57L7 12.38l.7.57 2.53 2.09.63.52.58-.58c1.6-1.62 3.35-3.5 4.93-5.08l.63-.63L15.73 8z"
|
|
2622
|
+
})]
|
|
2623
|
+
}),
|
|
2624
|
+
indeterminateIcon: /*#__PURE__*/jsxRuntime.jsxs(core.SvgIcon, {
|
|
2625
|
+
children: [/*#__PURE__*/jsxRuntime.jsx("rect", {
|
|
2626
|
+
width: "18",
|
|
2627
|
+
height: "18",
|
|
2628
|
+
x: "3",
|
|
2629
|
+
y: "3",
|
|
2630
|
+
fill: "currentIcon",
|
|
2631
|
+
rx: "2"
|
|
2632
|
+
}), /*#__PURE__*/jsxRuntime.jsx("path", {
|
|
2633
|
+
fill: exports.Color.White,
|
|
2634
|
+
d: "M7 11h10v2H7v-2z"
|
|
2635
|
+
})]
|
|
2636
|
+
})
|
|
2637
|
+
};
|
|
2638
|
+
theme.overrides.MuiCheckbox = {
|
|
2639
|
+
root: {
|
|
2640
|
+
color: exports.Color.Dark100,
|
|
2641
|
+
marginTop: theme.spacing(-0.625),
|
|
2642
|
+
marginBottom: theme.spacing(-0.625)
|
|
2613
2643
|
},
|
|
2614
|
-
|
|
2615
|
-
|
|
2616
|
-
color: exports.Color.
|
|
2617
|
-
marginTop: theme.spacing(-0.625),
|
|
2618
|
-
marginBottom: theme.spacing(-0.625)
|
|
2644
|
+
colorPrimary: {
|
|
2645
|
+
'&$checked$disabled': {
|
|
2646
|
+
color: exports.Color.Silver500
|
|
2619
2647
|
},
|
|
2620
|
-
|
|
2621
|
-
|
|
2622
|
-
color: exports.Color.Dark100
|
|
2623
|
-
},
|
|
2624
|
-
["&.".concat(material.checkboxClasses.disabled)]: {
|
|
2625
|
-
color: exports.Color.Silver400
|
|
2626
|
-
}
|
|
2627
|
-
},
|
|
2628
|
-
colorPrimary: {
|
|
2629
|
-
["&.".concat(material.checkboxClasses.checked, ".").concat(material.checkboxClasses.disabled)]: {
|
|
2630
|
-
color: exports.Color.Silver500
|
|
2631
|
-
},
|
|
2632
|
-
["&:hover:not(.".concat(material.checkboxClasses.checked, ")")]: {
|
|
2633
|
-
color: exports.Color.Dark100
|
|
2634
|
-
}
|
|
2648
|
+
'&:hover:not($checked)': {
|
|
2649
|
+
color: exports.Color.Dark100
|
|
2635
2650
|
}
|
|
2636
2651
|
}
|
|
2637
2652
|
};
|
|
@@ -2639,223 +2654,197 @@ function overrideCheckbox(theme) {
|
|
|
2639
2654
|
|
|
2640
2655
|
function overrideChip(theme) {
|
|
2641
2656
|
var sm = theme.breakpoints.up('sm');
|
|
2642
|
-
theme.
|
|
2643
|
-
|
|
2644
|
-
|
|
2645
|
-
|
|
2646
|
-
children: /*#__PURE__*/jsxRuntime.jsx(
|
|
2647
|
-
|
|
2648
|
-
|
|
2649
|
-
|
|
2650
|
-
|
|
2651
|
-
fill: "currentColor"
|
|
2652
|
-
})
|
|
2657
|
+
theme.props.MuiChip = {
|
|
2658
|
+
size: 'small',
|
|
2659
|
+
deleteIcon: /*#__PURE__*/jsxRuntime.jsx("div", {
|
|
2660
|
+
children: /*#__PURE__*/jsxRuntime.jsx(core.SvgIcon, {
|
|
2661
|
+
children: /*#__PURE__*/jsxRuntime.jsx("path", {
|
|
2662
|
+
fillRule: "evenodd",
|
|
2663
|
+
clipRule: "evenodd",
|
|
2664
|
+
d: "M13.239 12L17 8.239 15.761 7 12 10.761 8.239 7 7 8.239 10.761 12 7 15.761 8.239 17 12 13.239 15.761 17 17 15.761 13.239 12z",
|
|
2665
|
+
fill: "currentColor"
|
|
2653
2666
|
})
|
|
2654
2667
|
})
|
|
2668
|
+
})
|
|
2669
|
+
};
|
|
2670
|
+
theme.overrides.MuiChip = {
|
|
2671
|
+
root: _objectSpread(_objectSpread({}, theme.typography.body2), {}, {
|
|
2672
|
+
color: undefined,
|
|
2673
|
+
height: undefined,
|
|
2674
|
+
borderRadius: 4,
|
|
2675
|
+
backgroundColor: exports.Color.Silver200,
|
|
2676
|
+
'&$disabled': {
|
|
2677
|
+
opacity: undefined,
|
|
2678
|
+
color: exports.Color.Dark100
|
|
2679
|
+
}
|
|
2680
|
+
}),
|
|
2681
|
+
sizeSmall: {
|
|
2682
|
+
height: undefined
|
|
2655
2683
|
},
|
|
2656
|
-
|
|
2657
|
-
|
|
2658
|
-
|
|
2659
|
-
|
|
2660
|
-
|
|
2661
|
-
|
|
2662
|
-
|
|
2663
|
-
|
|
2664
|
-
|
|
2665
|
-
|
|
2666
|
-
|
|
2667
|
-
sizeSmall: {
|
|
2668
|
-
height: 'unset'
|
|
2669
|
-
},
|
|
2670
|
-
labelSmall: {
|
|
2671
|
-
paddingLeft: 6,
|
|
2672
|
-
paddingRight: 6,
|
|
2673
|
-
[sm]: {
|
|
2674
|
-
paddingLeft: 4,
|
|
2675
|
-
paddingRight: 4
|
|
2676
|
-
}
|
|
2684
|
+
labelSmall: {
|
|
2685
|
+
paddingLeft: 6,
|
|
2686
|
+
paddingRight: 6,
|
|
2687
|
+
[sm]: {
|
|
2688
|
+
paddingLeft: 4,
|
|
2689
|
+
paddingRight: 4
|
|
2690
|
+
}
|
|
2691
|
+
},
|
|
2692
|
+
clickable: {
|
|
2693
|
+
'&:hover, &:focus': {
|
|
2694
|
+
backgroundColor: undefined
|
|
2677
2695
|
},
|
|
2678
|
-
|
|
2679
|
-
|
|
2680
|
-
backgroundColor: exports.Color.Silver200
|
|
2681
|
-
},
|
|
2682
|
-
'&:active': {
|
|
2683
|
-
boxShadow: 'unset'
|
|
2684
|
-
},
|
|
2685
|
-
'&:focus': {
|
|
2686
|
-
boxShadow: "0 0 0 2px ".concat(exports.Color.Silver300)
|
|
2687
|
-
},
|
|
2688
|
-
'&:active, &:hover': {
|
|
2689
|
-
backgroundColor: exports.Color.Silver300
|
|
2690
|
-
}
|
|
2696
|
+
'&:active': {
|
|
2697
|
+
boxShadow: undefined
|
|
2691
2698
|
},
|
|
2692
|
-
|
|
2693
|
-
|
|
2694
|
-
backgroundColor: exports.Color.Silver200,
|
|
2695
|
-
boxShadow: "0 0 0 2px ".concat(exports.Color.Silver300)
|
|
2696
|
-
}
|
|
2699
|
+
'&:focus': {
|
|
2700
|
+
boxShadow: "0 0 0 2px ".concat(exports.Color.Silver300)
|
|
2697
2701
|
},
|
|
2698
|
-
|
|
2699
|
-
|
|
2700
|
-
|
|
2701
|
-
|
|
2702
|
-
|
|
2703
|
-
|
|
2704
|
-
|
|
2705
|
-
|
|
2706
|
-
|
|
2707
|
-
|
|
2708
|
-
|
|
2702
|
+
'&:active, &:hover': {
|
|
2703
|
+
backgroundColor: exports.Color.Silver300
|
|
2704
|
+
}
|
|
2705
|
+
},
|
|
2706
|
+
deletable: {
|
|
2707
|
+
'&:focus': {
|
|
2708
|
+
backgroundColor: undefined,
|
|
2709
|
+
boxShadow: "0 0 0 2px ".concat(exports.Color.Silver300)
|
|
2710
|
+
}
|
|
2711
|
+
},
|
|
2712
|
+
deleteIcon: {
|
|
2713
|
+
width: undefined,
|
|
2714
|
+
height: undefined,
|
|
2715
|
+
display: 'flex',
|
|
2716
|
+
transition: theme.transitions.create('background-color'),
|
|
2717
|
+
'&:active, &:hover, &:focus': {
|
|
2709
2718
|
'& > svg': {
|
|
2710
|
-
|
|
2711
|
-
color: exports.Color.Dark200,
|
|
2712
|
-
fontSize: '1em'
|
|
2713
|
-
}
|
|
2714
|
-
},
|
|
2715
|
-
deleteIconSmall: {
|
|
2716
|
-
width: 'unset',
|
|
2717
|
-
height: 'unset',
|
|
2718
|
-
padding: theme.spacing(0.5),
|
|
2719
|
-
marginLeft: theme.spacing(-0.5),
|
|
2720
|
-
marginRight: theme.spacing(0.25),
|
|
2721
|
-
[sm]: {
|
|
2722
|
-
marginRight: 0
|
|
2719
|
+
backgroundColor: exports.Color.Silver400
|
|
2723
2720
|
}
|
|
2724
2721
|
},
|
|
2725
|
-
|
|
2726
|
-
|
|
2727
|
-
|
|
2728
|
-
|
|
2729
|
-
}
|
|
2730
|
-
|
|
2731
|
-
|
|
2732
|
-
|
|
2733
|
-
|
|
2734
|
-
|
|
2735
|
-
|
|
2736
|
-
|
|
2737
|
-
|
|
2722
|
+
'& > svg': {
|
|
2723
|
+
borderRadius: '50%',
|
|
2724
|
+
color: exports.Color.Dark200,
|
|
2725
|
+
fontSize: '1em'
|
|
2726
|
+
}
|
|
2727
|
+
},
|
|
2728
|
+
deleteIconSmall: {
|
|
2729
|
+
width: undefined,
|
|
2730
|
+
height: undefined,
|
|
2731
|
+
padding: theme.spacing(0.5),
|
|
2732
|
+
marginLeft: theme.spacing(-0.5),
|
|
2733
|
+
marginRight: theme.spacing(0.25),
|
|
2734
|
+
[sm]: {
|
|
2735
|
+
marginRight: 0
|
|
2736
|
+
}
|
|
2737
|
+
},
|
|
2738
|
+
icon: {
|
|
2739
|
+
color: exports.Color.Dark100,
|
|
2740
|
+
fontSize: '1em',
|
|
2741
|
+
marginRight: undefined
|
|
2742
|
+
},
|
|
2743
|
+
iconSmall: {
|
|
2744
|
+
width: undefined,
|
|
2745
|
+
height: undefined,
|
|
2746
|
+
marginLeft: 8,
|
|
2747
|
+
marginRight: undefined,
|
|
2748
|
+
[sm]: {
|
|
2749
|
+
marginLeft: 4
|
|
2738
2750
|
}
|
|
2739
2751
|
}
|
|
2740
2752
|
};
|
|
2741
2753
|
}
|
|
2742
2754
|
|
|
2743
2755
|
function overrideDialog(theme) {
|
|
2744
|
-
theme.
|
|
2745
|
-
|
|
2746
|
-
|
|
2747
|
-
|
|
2748
|
-
|
|
2749
|
-
|
|
2750
|
-
|
|
2751
|
-
|
|
2752
|
-
|
|
2753
|
-
|
|
2754
|
-
|
|
2756
|
+
theme.props.MuiDialogTitle = {
|
|
2757
|
+
disableTypography: true
|
|
2758
|
+
};
|
|
2759
|
+
theme.overrides.MuiDialog = {
|
|
2760
|
+
paper: {
|
|
2761
|
+
margin: theme.spacing(3)
|
|
2762
|
+
},
|
|
2763
|
+
paperWidthXs: {
|
|
2764
|
+
maxWidth: Math.max(theme.breakpoints.values.xs, 360),
|
|
2765
|
+
'&$paperScrollBody': {
|
|
2766
|
+
[theme.breakpoints.down(Math.max(theme.breakpoints.values.xs, 360) + 32 * 2)]: {
|
|
2767
|
+
maxWidth: 'calc(100% - 64px)'
|
|
2755
2768
|
}
|
|
2756
2769
|
}
|
|
2757
2770
|
}
|
|
2758
2771
|
};
|
|
2759
|
-
theme.
|
|
2760
|
-
|
|
2761
|
-
// @ts-expect-error DialogTitleProps has missing type def
|
|
2762
|
-
variant: 'h3'
|
|
2763
|
-
}
|
|
2772
|
+
theme.overrides.MuiDialogTitle = {
|
|
2773
|
+
root: _objectSpread({}, theme.typography.h3)
|
|
2764
2774
|
};
|
|
2765
|
-
theme.
|
|
2766
|
-
|
|
2767
|
-
|
|
2768
|
-
padding: theme.spacing(0, 3)
|
|
2769
|
-
}
|
|
2775
|
+
theme.overrides.MuiDialogContent = {
|
|
2776
|
+
root: {
|
|
2777
|
+
padding: theme.spacing(0, 3)
|
|
2770
2778
|
}
|
|
2771
2779
|
};
|
|
2772
|
-
theme.
|
|
2773
|
-
|
|
2774
|
-
|
|
2775
|
-
|
|
2776
|
-
|
|
2777
|
-
|
|
2778
|
-
|
|
2779
|
-
marginLeft: theme.spacing(2)
|
|
2780
|
-
}
|
|
2780
|
+
theme.overrides.MuiDialogActions = {
|
|
2781
|
+
root: {
|
|
2782
|
+
padding: theme.spacing(3)
|
|
2783
|
+
},
|
|
2784
|
+
spacing: {
|
|
2785
|
+
'& > :not(:first-child)': {
|
|
2786
|
+
marginLeft: theme.spacing(2)
|
|
2781
2787
|
}
|
|
2782
2788
|
}
|
|
2783
2789
|
};
|
|
2784
2790
|
}
|
|
2785
2791
|
|
|
2786
2792
|
function overrideDrawer(theme) {
|
|
2787
|
-
theme.
|
|
2788
|
-
|
|
2789
|
-
|
|
2790
|
-
|
|
2791
|
-
|
|
2792
|
-
|
|
2793
|
-
|
|
2794
|
-
|
|
2795
|
-
|
|
2796
|
-
|
|
2797
|
-
maxWidth: theme.breakpoints.values.sm
|
|
2798
|
-
}
|
|
2793
|
+
theme.props.MuiDrawer = {
|
|
2794
|
+
anchor: 'right'
|
|
2795
|
+
};
|
|
2796
|
+
theme.overrides.MuiDrawer = {
|
|
2797
|
+
paper: {
|
|
2798
|
+
maxWidth: '100%',
|
|
2799
|
+
minWidth: '100%',
|
|
2800
|
+
[theme.breakpoints.up('sm')]: {
|
|
2801
|
+
minWidth: theme.spacing(54),
|
|
2802
|
+
maxWidth: theme.breakpoints.values.sm
|
|
2799
2803
|
}
|
|
2800
2804
|
}
|
|
2801
2805
|
};
|
|
2802
2806
|
}
|
|
2803
2807
|
|
|
2804
2808
|
function overrideIconButton(theme) {
|
|
2805
|
-
theme.
|
|
2806
|
-
|
|
2807
|
-
|
|
2808
|
-
|
|
2809
|
-
|
|
2810
|
-
|
|
2811
|
-
|
|
2812
|
-
|
|
2813
|
-
|
|
2814
|
-
duration: theme.transitions.duration.short
|
|
2815
|
-
}),
|
|
2816
|
-
'&:hover': {
|
|
2817
|
-
backgroundColor: exports.Color.Transparent
|
|
2818
|
-
},
|
|
2819
|
-
'&:active': {
|
|
2820
|
-
color: exports.Color.Dark500
|
|
2821
|
-
},
|
|
2822
|
-
'&:hover ': {
|
|
2823
|
-
color: exports.Color.Dark300
|
|
2824
|
-
},
|
|
2825
|
-
'&:focus': {
|
|
2826
|
-
backgroundColor: exports.Color.Silver400
|
|
2827
|
-
},
|
|
2828
|
-
["&.".concat(material.iconButtonClasses.disabled)]: {
|
|
2829
|
-
color: exports.Color.Silver500
|
|
2830
|
-
}
|
|
2809
|
+
theme.overrides.MuiIconButton = {
|
|
2810
|
+
root: {
|
|
2811
|
+
color: exports.Color.Dark100,
|
|
2812
|
+
backgroundColor: exports.Color.Transparent,
|
|
2813
|
+
transition: theme.transitions.create(['color', 'background-color'], {
|
|
2814
|
+
duration: theme.transitions.duration.short
|
|
2815
|
+
}),
|
|
2816
|
+
'&:hover': {
|
|
2817
|
+
backgroundColor: exports.Color.Transparent
|
|
2831
2818
|
},
|
|
2832
|
-
|
|
2833
|
-
|
|
2834
|
-
color: exports.Color.Blue500
|
|
2835
|
-
},
|
|
2836
|
-
'&:hover ': {
|
|
2837
|
-
color: exports.Color.Blue300
|
|
2838
|
-
},
|
|
2839
|
-
'&:focus': {
|
|
2840
|
-
backgroundColor: exports.Color.Blue50
|
|
2841
|
-
}
|
|
2819
|
+
'&:active': {
|
|
2820
|
+
color: exports.Color.Dark500
|
|
2842
2821
|
},
|
|
2843
|
-
|
|
2844
|
-
|
|
2822
|
+
'&:hover ': {
|
|
2823
|
+
color: exports.Color.Dark300
|
|
2845
2824
|
},
|
|
2846
|
-
|
|
2847
|
-
|
|
2825
|
+
'&:focus': {
|
|
2826
|
+
backgroundColor: exports.Color.Silver400
|
|
2848
2827
|
},
|
|
2849
|
-
|
|
2850
|
-
|
|
2851
|
-
|
|
2828
|
+
'&$disabled': {
|
|
2829
|
+
color: exports.Color.Silver500
|
|
2830
|
+
}
|
|
2831
|
+
},
|
|
2832
|
+
colorPrimary: {
|
|
2833
|
+
'&:active': {
|
|
2834
|
+
color: exports.Color.Blue500
|
|
2852
2835
|
},
|
|
2853
|
-
|
|
2854
|
-
|
|
2855
|
-
fontSize: theme.typography.pxToRem(24)
|
|
2836
|
+
'&:hover ': {
|
|
2837
|
+
color: exports.Color.Blue300
|
|
2856
2838
|
},
|
|
2857
|
-
|
|
2839
|
+
'&:focus': {
|
|
2840
|
+
backgroundColor: exports.Color.Blue50
|
|
2858
2841
|
}
|
|
2842
|
+
},
|
|
2843
|
+
edgeEnd: {
|
|
2844
|
+
marginRight: theme.spacing(-1)
|
|
2845
|
+
},
|
|
2846
|
+
edgeStart: {
|
|
2847
|
+
marginLeft: theme.spacing(-1)
|
|
2859
2848
|
}
|
|
2860
2849
|
};
|
|
2861
2850
|
}
|
|
@@ -2865,389 +2854,350 @@ function line(color) {
|
|
|
2865
2854
|
}
|
|
2866
2855
|
|
|
2867
2856
|
function overrideLink(theme) {
|
|
2868
|
-
theme.
|
|
2869
|
-
|
|
2870
|
-
|
|
2871
|
-
|
|
2872
|
-
|
|
2873
|
-
|
|
2874
|
-
|
|
2875
|
-
|
|
2876
|
-
|
|
2877
|
-
|
|
2878
|
-
|
|
2879
|
-
'
|
|
2880
|
-
|
|
2881
|
-
|
|
2882
|
-
|
|
2883
|
-
backgroundImage: line('currentColor')
|
|
2884
|
-
}
|
|
2857
|
+
theme.props.MuiLink = {
|
|
2858
|
+
underline: 'none',
|
|
2859
|
+
color: 'textPrimary'
|
|
2860
|
+
};
|
|
2861
|
+
theme.overrides.MuiLink = {
|
|
2862
|
+
root: {
|
|
2863
|
+
backgroundSize: '100% 1px',
|
|
2864
|
+
backgroundRepeat: 'repeat-x',
|
|
2865
|
+
backgroundPosition: '0 100%',
|
|
2866
|
+
backgroundColor: exports.Color.Transparent,
|
|
2867
|
+
'&:focus': {
|
|
2868
|
+
outline: 'none'
|
|
2869
|
+
},
|
|
2870
|
+
'&:hover, &:active': {
|
|
2871
|
+
backgroundImage: line('currentColor')
|
|
2885
2872
|
},
|
|
2886
|
-
|
|
2887
|
-
colorTextPrimary: {
|
|
2873
|
+
'&.MuiTypography-colorTextPrimary': {
|
|
2888
2874
|
backgroundImage: line(exports.Color.Silver500),
|
|
2889
2875
|
'&:focus, &:hover, &:active': {
|
|
2890
2876
|
color: exports.Color.Blue300,
|
|
2891
2877
|
backgroundImage: line(exports.Color.Blue300)
|
|
2892
2878
|
}
|
|
2893
|
-
},
|
|
2894
|
-
button: {
|
|
2895
|
-
// Reset button styles.
|
|
2896
|
-
backgroundColor: 'unset',
|
|
2897
|
-
// Override browser defaults.
|
|
2898
|
-
fontSize: 'inherit',
|
|
2899
|
-
textAlign: 'inherit',
|
|
2900
|
-
lineHeight: 'inherit',
|
|
2901
|
-
userSelect: 'inherit',
|
|
2902
|
-
verticalAlign: 'inherit'
|
|
2903
2879
|
}
|
|
2880
|
+
},
|
|
2881
|
+
button: {
|
|
2882
|
+
// Reset button styles.
|
|
2883
|
+
backgroundColor: undefined,
|
|
2884
|
+
// Override browser defaults.
|
|
2885
|
+
fontSize: 'inherit',
|
|
2886
|
+
textAlign: 'inherit',
|
|
2887
|
+
lineHeight: 'inherit',
|
|
2888
|
+
userSelect: 'inherit',
|
|
2889
|
+
verticalAlign: 'inherit'
|
|
2904
2890
|
}
|
|
2905
2891
|
};
|
|
2906
2892
|
}
|
|
2907
2893
|
|
|
2908
2894
|
function overrideList(theme) {
|
|
2909
|
-
theme.
|
|
2910
|
-
|
|
2911
|
-
|
|
2912
|
-
|
|
2913
|
-
|
|
2914
|
-
|
|
2915
|
-
|
|
2916
|
-
color: exports.Color.Blue100
|
|
2917
|
-
}
|
|
2895
|
+
theme.overrides.MuiListItem = {
|
|
2896
|
+
root: {
|
|
2897
|
+
'&$selected, &$selected:hover': {
|
|
2898
|
+
backgroundColor: exports.Color.Blue50
|
|
2899
|
+
},
|
|
2900
|
+
'& .MuiTouchRipple-root': {
|
|
2901
|
+
color: exports.Color.Blue100
|
|
2918
2902
|
}
|
|
2919
2903
|
}
|
|
2920
2904
|
};
|
|
2921
2905
|
}
|
|
2922
2906
|
|
|
2923
2907
|
function overrideMenu(theme) {
|
|
2924
|
-
theme.
|
|
2925
|
-
|
|
2926
|
-
|
|
2927
|
-
|
|
2928
|
-
|
|
2929
|
-
|
|
2930
|
-
|
|
2931
|
-
|
|
2932
|
-
|
|
2933
|
-
}
|
|
2908
|
+
theme.props.MuiMenu = {
|
|
2909
|
+
getContentAnchorEl: null,
|
|
2910
|
+
anchorOrigin: {
|
|
2911
|
+
vertical: 'bottom',
|
|
2912
|
+
horizontal: 'left'
|
|
2913
|
+
},
|
|
2914
|
+
transformOrigin: {
|
|
2915
|
+
vertical: 'top',
|
|
2916
|
+
horizontal: 'left'
|
|
2934
2917
|
}
|
|
2935
2918
|
};
|
|
2936
|
-
theme.
|
|
2937
|
-
|
|
2938
|
-
|
|
2939
|
-
|
|
2940
|
-
|
|
2941
|
-
'& .MuiTouchRipple-root': {
|
|
2942
|
-
color: exports.Color.Blue100
|
|
2943
|
-
},
|
|
2944
|
-
["&.".concat(material.menuItemClasses.selected, ", &.").concat(material.menuItemClasses.selected, ":hover")]: {
|
|
2945
|
-
backgroundColor: exports.Color.Blue50,
|
|
2946
|
-
["&.".concat(material.menuItemClasses.focusVisible)]: {
|
|
2947
|
-
backgroundColor: exports.Color.Blue50
|
|
2948
|
-
}
|
|
2949
|
-
}
|
|
2950
|
-
})
|
|
2951
|
-
}
|
|
2919
|
+
theme.overrides.MuiMenuItem = {
|
|
2920
|
+
root: _objectSpread(_objectSpread({}, theme.typography.body2), {}, {
|
|
2921
|
+
paddingTop: theme.spacing(1),
|
|
2922
|
+
paddingBottom: theme.spacing(1)
|
|
2923
|
+
})
|
|
2952
2924
|
};
|
|
2953
2925
|
}
|
|
2954
2926
|
|
|
2955
2927
|
function overridePagination(theme) {
|
|
2956
|
-
|
|
2957
|
-
|
|
2958
|
-
|
|
2959
|
-
|
|
2928
|
+
var props = {};
|
|
2929
|
+
var overrides = {
|
|
2930
|
+
root: {
|
|
2931
|
+
color: exports.Color.Dark400
|
|
2932
|
+
},
|
|
2933
|
+
page: {
|
|
2934
|
+
'&:hover': {
|
|
2935
|
+
backgroundColor: exports.Color.Silver200
|
|
2960
2936
|
},
|
|
2961
|
-
|
|
2962
|
-
|
|
2963
|
-
|
|
2964
|
-
|
|
2965
|
-
|
|
2966
|
-
|
|
2967
|
-
|
|
2968
|
-
|
|
2969
|
-
|
|
2970
|
-
["&.".concat(material.paginationItemClasses.selected)]: {
|
|
2971
|
-
backgroundColor: exports.Color.Silver400,
|
|
2972
|
-
["&:hover, &.".concat(material.paginationItemClasses.focusVisible)]: {
|
|
2973
|
-
backgroundColor: exports.Color.Silver400
|
|
2974
|
-
},
|
|
2975
|
-
["&.".concat(material.paginationItemClasses.disabled)]: {
|
|
2976
|
-
color: exports.Color.Dark100,
|
|
2977
|
-
backgroundColor: exports.Color.Silver400
|
|
2978
|
-
}
|
|
2937
|
+
'&$focusVisible': {
|
|
2938
|
+
borderRadius: 4,
|
|
2939
|
+
backgroundColor: exports.Color.White,
|
|
2940
|
+
border: "1px solid ".concat(exports.Color.Blue100)
|
|
2941
|
+
},
|
|
2942
|
+
'&$selected': {
|
|
2943
|
+
backgroundColor: exports.Color.Silver400,
|
|
2944
|
+
'&:hover, &$focusVisible': {
|
|
2945
|
+
backgroundColor: exports.Color.Silver400
|
|
2979
2946
|
},
|
|
2980
|
-
|
|
2981
|
-
|
|
2982
|
-
|
|
2947
|
+
'&$disabled': {
|
|
2948
|
+
color: exports.Color.Dark100,
|
|
2949
|
+
backgroundColor: exports.Color.Silver400
|
|
2983
2950
|
}
|
|
2951
|
+
},
|
|
2952
|
+
'&$disabled': {
|
|
2953
|
+
opacity: undefined,
|
|
2954
|
+
color: exports.Color.Dark100
|
|
2984
2955
|
}
|
|
2985
2956
|
}
|
|
2986
|
-
};
|
|
2957
|
+
}; // Remove `Object.assign` after official release of `PaginationItem`.
|
|
2958
|
+
|
|
2959
|
+
Object.assign(theme.props, {
|
|
2960
|
+
MuiPaginationItem: props
|
|
2961
|
+
});
|
|
2962
|
+
Object.assign(theme.overrides, {
|
|
2963
|
+
MuiPaginationItem: overrides
|
|
2964
|
+
});
|
|
2987
2965
|
}
|
|
2988
2966
|
|
|
2989
2967
|
function overridePaper(theme) {
|
|
2990
|
-
theme.
|
|
2991
|
-
|
|
2992
|
-
|
|
2993
|
-
|
|
2994
|
-
|
|
2995
|
-
|
|
2996
|
-
border: "1px solid ".concat(exports.Color.Silver400)
|
|
2997
|
-
}
|
|
2968
|
+
theme.props.MuiPaper = {
|
|
2969
|
+
elevation: 0
|
|
2970
|
+
};
|
|
2971
|
+
theme.overrides.MuiPaper = {
|
|
2972
|
+
elevation0: {
|
|
2973
|
+
border: "1px solid ".concat(exports.Color.Silver400)
|
|
2998
2974
|
}
|
|
2999
2975
|
};
|
|
3000
2976
|
}
|
|
3001
2977
|
|
|
3002
2978
|
function overrideRadio(theme) {
|
|
3003
|
-
theme.
|
|
3004
|
-
|
|
3005
|
-
|
|
3006
|
-
|
|
3007
|
-
|
|
3008
|
-
|
|
3009
|
-
|
|
3010
|
-
|
|
3011
|
-
|
|
3012
|
-
stroke: "currentColor"
|
|
3013
|
-
})
|
|
3014
|
-
}),
|
|
3015
|
-
checkedIcon: /*#__PURE__*/jsxRuntime.jsxs(material.SvgIcon, {
|
|
3016
|
-
children: [/*#__PURE__*/jsxRuntime.jsx("circle", {
|
|
3017
|
-
cx: "12",
|
|
3018
|
-
cy: "12",
|
|
3019
|
-
r: "8.5",
|
|
3020
|
-
fill: "currentColor",
|
|
3021
|
-
stroke: "currentColor"
|
|
3022
|
-
}), /*#__PURE__*/jsxRuntime.jsx("circle", {
|
|
3023
|
-
cx: "12",
|
|
3024
|
-
cy: "12",
|
|
3025
|
-
r: "4",
|
|
3026
|
-
fill: exports.Color.White
|
|
3027
|
-
})]
|
|
2979
|
+
theme.props.MuiRadio = {
|
|
2980
|
+
color: 'primary',
|
|
2981
|
+
icon: /*#__PURE__*/jsxRuntime.jsx(core.SvgIcon, {
|
|
2982
|
+
children: /*#__PURE__*/jsxRuntime.jsx("circle", {
|
|
2983
|
+
cx: "12",
|
|
2984
|
+
cy: "12",
|
|
2985
|
+
r: "8.5",
|
|
2986
|
+
fill: exports.Color.White,
|
|
2987
|
+
stroke: "currentColor"
|
|
3028
2988
|
})
|
|
2989
|
+
}),
|
|
2990
|
+
checkedIcon: /*#__PURE__*/jsxRuntime.jsxs(core.SvgIcon, {
|
|
2991
|
+
children: [/*#__PURE__*/jsxRuntime.jsx("circle", {
|
|
2992
|
+
cx: "12",
|
|
2993
|
+
cy: "12",
|
|
2994
|
+
r: "8.5",
|
|
2995
|
+
fill: "currentColor",
|
|
2996
|
+
stroke: "currentColor"
|
|
2997
|
+
}), /*#__PURE__*/jsxRuntime.jsx("circle", {
|
|
2998
|
+
cx: "12",
|
|
2999
|
+
cy: "12",
|
|
3000
|
+
r: "4",
|
|
3001
|
+
fill: exports.Color.White
|
|
3002
|
+
})]
|
|
3003
|
+
})
|
|
3004
|
+
};
|
|
3005
|
+
theme.overrides.MuiRadio = {
|
|
3006
|
+
root: {
|
|
3007
|
+
color: exports.Color.Dark100,
|
|
3008
|
+
marginTop: theme.spacing(-0.625),
|
|
3009
|
+
marginBottom: theme.spacing(-0.625)
|
|
3029
3010
|
},
|
|
3030
|
-
|
|
3031
|
-
|
|
3032
|
-
color: exports.Color.
|
|
3033
|
-
marginTop: theme.spacing(-0.625),
|
|
3034
|
-
marginBottom: theme.spacing(-0.625)
|
|
3011
|
+
colorPrimary: {
|
|
3012
|
+
'&$checked$disabled': {
|
|
3013
|
+
color: exports.Color.Silver500
|
|
3035
3014
|
},
|
|
3036
|
-
|
|
3037
|
-
|
|
3038
|
-
color: exports.Color.Silver500
|
|
3039
|
-
},
|
|
3040
|
-
["&:hover:not(.".concat(material.radioClasses.checked, ")")]: {
|
|
3041
|
-
color: exports.Color.Dark100
|
|
3042
|
-
}
|
|
3015
|
+
'&:hover:not($checked)': {
|
|
3016
|
+
color: exports.Color.Dark100
|
|
3043
3017
|
}
|
|
3044
3018
|
}
|
|
3045
3019
|
};
|
|
3046
3020
|
}
|
|
3047
3021
|
|
|
3048
3022
|
function overrideSnackbar(theme) {
|
|
3049
|
-
theme.
|
|
3050
|
-
|
|
3051
|
-
|
|
3052
|
-
|
|
3053
|
-
|
|
3054
|
-
}
|
|
3055
|
-
},
|
|
3056
|
-
styleOverrides: {
|
|
3057
|
-
anchorOriginBottomCenter: {
|
|
3058
|
-
left: 0,
|
|
3059
|
-
right: 0,
|
|
3060
|
-
bottom: 0
|
|
3061
|
-
}
|
|
3023
|
+
theme.overrides.MuiSnackbar = {
|
|
3024
|
+
anchorOriginBottomCenter: {
|
|
3025
|
+
left: 0,
|
|
3026
|
+
right: 0,
|
|
3027
|
+
bottom: 0
|
|
3062
3028
|
}
|
|
3063
3029
|
};
|
|
3064
|
-
theme.
|
|
3065
|
-
|
|
3066
|
-
|
|
3067
|
-
|
|
3068
|
-
|
|
3069
|
-
|
|
3070
|
-
|
|
3071
|
-
|
|
3072
|
-
|
|
3073
|
-
borderRadius: theme.spacing(0.5)
|
|
3074
|
-
}
|
|
3075
|
-
},
|
|
3076
|
-
message: {
|
|
3077
|
-
flex: 1,
|
|
3078
|
-
display: 'flex'
|
|
3030
|
+
theme.overrides.MuiSnackbarContent = {
|
|
3031
|
+
root: {
|
|
3032
|
+
width: '100%',
|
|
3033
|
+
borderRadius: 0,
|
|
3034
|
+
minHeight: theme.spacing(7.5),
|
|
3035
|
+
[theme.breakpoints.up('sm')]: {
|
|
3036
|
+
width: theme.spacing(54),
|
|
3037
|
+
maxWidth: theme.spacing(54),
|
|
3038
|
+
borderRadius: theme.spacing(0.5)
|
|
3079
3039
|
}
|
|
3040
|
+
},
|
|
3041
|
+
message: {
|
|
3042
|
+
flex: 1,
|
|
3043
|
+
display: 'flex'
|
|
3080
3044
|
}
|
|
3081
3045
|
};
|
|
3082
3046
|
}
|
|
3083
3047
|
|
|
3084
3048
|
function overrideSvgIcon(theme) {
|
|
3085
3049
|
var sm = theme.breakpoints.up('sm');
|
|
3086
|
-
theme.
|
|
3087
|
-
|
|
3088
|
-
|
|
3089
|
-
|
|
3090
|
-
|
|
3091
|
-
|
|
3092
|
-
fontSize: 'var(--mui-svg-icon-size, 24px)'
|
|
3093
|
-
}
|
|
3094
|
-
},
|
|
3095
|
-
fontSizeInherit: {
|
|
3096
|
-
fontSize: 'inherit',
|
|
3097
|
-
[sm]: {
|
|
3098
|
-
fontSize: 'inherit'
|
|
3099
|
-
}
|
|
3100
|
-
},
|
|
3101
|
-
fontSizeSmall: {
|
|
3102
|
-
fontSize: 'var(--mui-svg-icon-size, 24px)',
|
|
3103
|
-
[sm]: {
|
|
3104
|
-
fontSize: 'var(--mui-svg-icon-size, 16px)'
|
|
3105
|
-
}
|
|
3106
|
-
},
|
|
3107
|
-
fontSizeLarge: {
|
|
3108
|
-
'&': {
|
|
3109
|
-
fontSize: 'var(--mui-svg-icon-size, 32px)'
|
|
3110
|
-
}
|
|
3111
|
-
},
|
|
3112
|
-
colorAction: {
|
|
3113
|
-
color: exports.Color.Dark100
|
|
3050
|
+
theme.overrides.MuiSvgIcon = {
|
|
3051
|
+
root: {
|
|
3052
|
+
display: 'inherit',
|
|
3053
|
+
fontSize: 'var(--mui-svg-icon-size, 32px)',
|
|
3054
|
+
[sm]: {
|
|
3055
|
+
fontSize: 'var(--mui-svg-icon-size, 24px)'
|
|
3114
3056
|
}
|
|
3057
|
+
},
|
|
3058
|
+
fontSizeSmall: {
|
|
3059
|
+
fontSize: 'var(--mui-svg-icon-size, 24px)',
|
|
3060
|
+
[sm]: {
|
|
3061
|
+
fontSize: 'var(--mui-svg-icon-size, 16px)'
|
|
3062
|
+
}
|
|
3063
|
+
},
|
|
3064
|
+
fontSizeLarge: {
|
|
3065
|
+
fontSize: 'var(--mui-svg-icon-size, 32px)'
|
|
3066
|
+
},
|
|
3067
|
+
colorAction: {
|
|
3068
|
+
color: exports.Color.Dark100
|
|
3115
3069
|
}
|
|
3116
3070
|
};
|
|
3117
3071
|
}
|
|
3118
3072
|
|
|
3119
3073
|
function overrideSwitch(theme) {
|
|
3120
3074
|
var sm = theme.breakpoints.up('sm');
|
|
3121
|
-
theme.
|
|
3122
|
-
|
|
3123
|
-
|
|
3124
|
-
|
|
3125
|
-
|
|
3126
|
-
|
|
3127
|
-
|
|
3128
|
-
|
|
3129
|
-
|
|
3130
|
-
|
|
3131
|
-
|
|
3132
|
-
|
|
3133
|
-
|
|
3134
|
-
|
|
3135
|
-
|
|
3136
|
-
|
|
3075
|
+
theme.props.MuiSwitch = {
|
|
3076
|
+
color: 'primary',
|
|
3077
|
+
disableRipple: true,
|
|
3078
|
+
disableFocusRipple: true
|
|
3079
|
+
};
|
|
3080
|
+
theme.overrides.MuiSwitch = {
|
|
3081
|
+
root: {
|
|
3082
|
+
width: theme.spacing(9.5),
|
|
3083
|
+
height: theme.spacing(5.5),
|
|
3084
|
+
padding: theme.spacing(0.75, 1.5),
|
|
3085
|
+
[sm]: {
|
|
3086
|
+
width: theme.spacing(8),
|
|
3087
|
+
height: theme.spacing(4),
|
|
3088
|
+
padding: theme.spacing(0.5, 1.5)
|
|
3089
|
+
}
|
|
3090
|
+
},
|
|
3091
|
+
track: {
|
|
3092
|
+
opacity: undefined,
|
|
3093
|
+
boxShadow: "0 0 0 0 ".concat(exports.Color.Transparent),
|
|
3094
|
+
transition: theme.transitions.create(['box-shadow', 'background-color'], {
|
|
3095
|
+
duration: theme.transitions.duration.shortest
|
|
3096
|
+
}),
|
|
3097
|
+
borderRadius: theme.spacing(2),
|
|
3098
|
+
[sm]: {
|
|
3099
|
+
borderRadius: theme.spacing(1.625)
|
|
3100
|
+
}
|
|
3101
|
+
},
|
|
3102
|
+
thumb: {
|
|
3103
|
+
color: exports.Color.White,
|
|
3104
|
+
boxShadow: undefined,
|
|
3105
|
+
width: theme.spacing(3),
|
|
3106
|
+
height: theme.spacing(3),
|
|
3107
|
+
[sm]: {
|
|
3108
|
+
width: theme.spacing(2),
|
|
3109
|
+
height: theme.spacing(2)
|
|
3110
|
+
}
|
|
3111
|
+
},
|
|
3112
|
+
switchBase: {
|
|
3113
|
+
left: theme.spacing(1),
|
|
3114
|
+
padding: theme.spacing(1.25, 1),
|
|
3115
|
+
[sm]: {
|
|
3116
|
+
padding: theme.spacing(1)
|
|
3137
3117
|
},
|
|
3138
|
-
|
|
3139
|
-
|
|
3140
|
-
boxShadow: "0 0 0 0 ".concat(exports.Color.Transparent),
|
|
3141
|
-
transition: theme.transitions.create(['box-shadow', 'background-color'], {
|
|
3142
|
-
duration: theme.transitions.duration.shortest
|
|
3143
|
-
}),
|
|
3144
|
-
borderRadius: theme.spacing(2),
|
|
3118
|
+
'&$checked': {
|
|
3119
|
+
transform: "translateX(".concat(theme.spacing(2.5), "px)"),
|
|
3145
3120
|
[sm]: {
|
|
3146
|
-
|
|
3121
|
+
transform: "translateX(".concat(theme.spacing(2), "px)")
|
|
3147
3122
|
}
|
|
3148
3123
|
},
|
|
3149
|
-
|
|
3150
|
-
|
|
3151
|
-
boxShadow: 'none',
|
|
3152
|
-
width: theme.spacing(3),
|
|
3153
|
-
height: theme.spacing(3),
|
|
3154
|
-
[sm]: {
|
|
3155
|
-
width: theme.spacing(2),
|
|
3156
|
-
height: theme.spacing(2)
|
|
3157
|
-
}
|
|
3124
|
+
'&$checked + $track': {
|
|
3125
|
+
opacity: undefined
|
|
3158
3126
|
},
|
|
3159
|
-
|
|
3160
|
-
|
|
3161
|
-
|
|
3162
|
-
|
|
3163
|
-
|
|
3164
|
-
|
|
3165
|
-
|
|
3166
|
-
|
|
3167
|
-
|
|
3168
|
-
|
|
3127
|
+
'&$disabled + $track': {
|
|
3128
|
+
opacity: undefined
|
|
3129
|
+
}
|
|
3130
|
+
},
|
|
3131
|
+
colorPrimary: {
|
|
3132
|
+
'&$checked': {
|
|
3133
|
+
color: undefined,
|
|
3134
|
+
'&:hover': {
|
|
3135
|
+
backgroundColor: undefined,
|
|
3136
|
+
'& + $track': {
|
|
3137
|
+
backgroundColor: exports.Color.Blue400
|
|
3169
3138
|
}
|
|
3170
|
-
},
|
|
3171
|
-
["&.".concat(material.switchClasses.checked, " + .").concat(material.switchClasses.track)]: {
|
|
3172
|
-
opacity: 1
|
|
3173
|
-
},
|
|
3174
|
-
["&.".concat(material.switchClasses.disabled, " + .").concat(material.switchClasses.track)]: {
|
|
3175
|
-
opacity: 1
|
|
3176
3139
|
}
|
|
3177
3140
|
},
|
|
3178
|
-
|
|
3179
|
-
|
|
3180
|
-
|
|
3181
|
-
|
|
3182
|
-
|
|
3183
|
-
|
|
3184
|
-
|
|
3185
|
-
|
|
3186
|
-
|
|
3187
|
-
|
|
3188
|
-
|
|
3189
|
-
|
|
3190
|
-
|
|
3191
|
-
|
|
3192
|
-
["&.".concat(material.switchClasses.checked, ".").concat(material.switchClasses.disabled, " + .").concat(material.switchClasses.track)]: {
|
|
3193
|
-
backgroundColor: exports.Color.Blue100
|
|
3194
|
-
},
|
|
3195
|
-
["&:hover + .".concat(material.switchClasses.track)]: {
|
|
3196
|
-
backgroundColor: exports.Color.Dark100
|
|
3197
|
-
},
|
|
3198
|
-
["&.Mui-focusVisible + .".concat(material.switchClasses.track)]: {
|
|
3199
|
-
boxShadow: "0 0 0 3px ".concat(exports.Color.Blue100)
|
|
3200
|
-
}
|
|
3141
|
+
'& + $track': {
|
|
3142
|
+
backgroundColor: exports.Color.Silver500
|
|
3143
|
+
},
|
|
3144
|
+
'&$disabled + $track': {
|
|
3145
|
+
backgroundColor: exports.Color.Silver300
|
|
3146
|
+
},
|
|
3147
|
+
'&$checked$disabled + $track': {
|
|
3148
|
+
backgroundColor: exports.Color.Blue100
|
|
3149
|
+
},
|
|
3150
|
+
'&:hover + $track': {
|
|
3151
|
+
backgroundColor: exports.Color.Dark100
|
|
3152
|
+
},
|
|
3153
|
+
'&.Mui-focusVisible + $track': {
|
|
3154
|
+
boxShadow: "0 0 0 3px ".concat(exports.Color.Blue100)
|
|
3201
3155
|
}
|
|
3202
3156
|
}
|
|
3203
3157
|
};
|
|
3204
3158
|
}
|
|
3205
3159
|
|
|
3206
3160
|
function overrideTabs(theme) {
|
|
3207
|
-
theme.
|
|
3208
|
-
|
|
3209
|
-
|
|
3210
|
-
|
|
3211
|
-
|
|
3212
|
-
|
|
3213
|
-
|
|
3214
|
-
|
|
3215
|
-
|
|
3216
|
-
|
|
3217
|
-
|
|
3218
|
-
|
|
3219
|
-
|
|
3220
|
-
|
|
3221
|
-
|
|
3222
|
-
|
|
3223
|
-
})
|
|
3224
|
-
}
|
|
3161
|
+
theme.props.MuiTabs = {
|
|
3162
|
+
variant: 'scrollable',
|
|
3163
|
+
textColor: 'primary',
|
|
3164
|
+
indicatorColor: 'primary'
|
|
3165
|
+
};
|
|
3166
|
+
theme.overrides.MuiTabs = {
|
|
3167
|
+
root: {
|
|
3168
|
+
minHeight: theme.spacing(6)
|
|
3169
|
+
},
|
|
3170
|
+
scrollButtons: {
|
|
3171
|
+
opacity: 1,
|
|
3172
|
+
color: exports.Color.Dark100,
|
|
3173
|
+
width: theme.spacing(4),
|
|
3174
|
+
transition: theme.transitions.create('opacity', {
|
|
3175
|
+
duration: theme.transitions.duration.short
|
|
3176
|
+
})
|
|
3225
3177
|
}
|
|
3226
3178
|
};
|
|
3227
|
-
theme.
|
|
3228
|
-
|
|
3229
|
-
|
|
3230
|
-
|
|
3231
|
-
|
|
3232
|
-
duration: theme.transitions.duration.short
|
|
3233
|
-
}),
|
|
3234
|
-
[theme.breakpoints.up('sm')]: {
|
|
3235
|
-
minWidth: 'unset',
|
|
3236
|
-
fontSize: 'unset',
|
|
3237
|
-
padding: theme.spacing(0.75, 3)
|
|
3238
|
-
}
|
|
3179
|
+
theme.overrides.MuiTab = {
|
|
3180
|
+
root: _objectSpread(_objectSpread({}, theme.typography.body2), {}, {
|
|
3181
|
+
minHeight: theme.spacing(6),
|
|
3182
|
+
transition: theme.transitions.create(['color'], {
|
|
3183
|
+
duration: theme.transitions.duration.short
|
|
3239
3184
|
}),
|
|
3240
|
-
|
|
3241
|
-
|
|
3242
|
-
|
|
3243
|
-
|
|
3244
|
-
|
|
3185
|
+
[theme.breakpoints.up('sm')]: {
|
|
3186
|
+
minWidth: undefined,
|
|
3187
|
+
fontSize: undefined,
|
|
3188
|
+
padding: theme.spacing(0.75, 3)
|
|
3189
|
+
}
|
|
3190
|
+
}),
|
|
3191
|
+
textColorPrimary: {
|
|
3192
|
+
color: exports.Color.Dark500,
|
|
3193
|
+
'&:hover, &:focus': {
|
|
3194
|
+
color: exports.Color.Blue300
|
|
3245
3195
|
}
|
|
3246
3196
|
}
|
|
3247
3197
|
};
|
|
3248
3198
|
}
|
|
3249
3199
|
|
|
3250
|
-
var SelectIcon = /*#__PURE__*/React.forwardRef((props, ref) => /*#__PURE__*/jsxRuntime.jsx(
|
|
3200
|
+
var SelectIcon = /*#__PURE__*/React.forwardRef((props, ref) => /*#__PURE__*/jsxRuntime.jsx(core.SvgIcon, _objectSpread(_objectSpread({
|
|
3251
3201
|
ref: ref
|
|
3252
3202
|
}, props), {}, {
|
|
3253
3203
|
children: /*#__PURE__*/jsxRuntime.jsx("path", {
|
|
@@ -3258,248 +3208,223 @@ var SelectIcon = /*#__PURE__*/React.forwardRef((props, ref) => /*#__PURE__*/jsxR
|
|
|
3258
3208
|
if (process.env.NODE_ENV !== "production") SelectIcon.displayName = "SelectIcon";
|
|
3259
3209
|
function overrideTextField(theme) {
|
|
3260
3210
|
var sm = theme.breakpoints.up('sm');
|
|
3261
|
-
theme.
|
|
3262
|
-
|
|
3263
|
-
|
|
3264
|
-
|
|
3265
|
-
variant: 'outlined'
|
|
3266
|
-
}
|
|
3211
|
+
theme.props.MuiTextField = {
|
|
3212
|
+
minRows: 4,
|
|
3213
|
+
maxRows: 4,
|
|
3214
|
+
variant: 'outlined'
|
|
3267
3215
|
};
|
|
3268
|
-
theme.
|
|
3269
|
-
|
|
3270
|
-
|
|
3271
|
-
|
|
3272
|
-
|
|
3273
|
-
color: exports.Color.Dark400
|
|
3274
|
-
},
|
|
3275
|
-
["&.".concat(material.formLabelClasses.focused)]: {
|
|
3276
|
-
color: exports.Color.Dark400
|
|
3277
|
-
},
|
|
3278
|
-
["&.".concat(material.formLabelClasses.disabled)]: {
|
|
3279
|
-
color: exports.Color.Dark400
|
|
3280
|
-
}
|
|
3281
|
-
})
|
|
3282
|
-
}
|
|
3283
|
-
};
|
|
3284
|
-
theme.components.MuiInputBase = {
|
|
3285
|
-
styleOverrides: {
|
|
3286
|
-
root: _objectSpread(_objectSpread({}, theme.typography.body2), {}, {
|
|
3287
|
-
["&.".concat(material.inputBaseClasses.disabled)]: {
|
|
3288
|
-
backgroundColor: exports.Color.Silver100
|
|
3289
|
-
}
|
|
3290
|
-
}),
|
|
3291
|
-
input: {
|
|
3292
|
-
textOverflow: 'ellipsis',
|
|
3293
|
-
height: theme.spacing(3),
|
|
3294
|
-
[sm]: {
|
|
3295
|
-
height: theme.spacing(2.5)
|
|
3296
|
-
}
|
|
3216
|
+
theme.overrides.MuiFormLabel = {
|
|
3217
|
+
root: _objectSpread(_objectSpread({}, theme.typography.body2), {}, {
|
|
3218
|
+
color: exports.Color.Dark400,
|
|
3219
|
+
'&$error': {
|
|
3220
|
+
color: undefined
|
|
3297
3221
|
},
|
|
3298
|
-
|
|
3299
|
-
|
|
3222
|
+
'&$focused': {
|
|
3223
|
+
color: undefined
|
|
3224
|
+
},
|
|
3225
|
+
'&$disabled': {
|
|
3226
|
+
color: undefined
|
|
3300
3227
|
}
|
|
3228
|
+
})
|
|
3229
|
+
};
|
|
3230
|
+
theme.overrides.MuiInputBase = {
|
|
3231
|
+
root: _objectSpread(_objectSpread({}, theme.typography.body2), {}, {
|
|
3232
|
+
'&$disabled': {
|
|
3233
|
+
backgroundColor: exports.Color.Silver100
|
|
3234
|
+
}
|
|
3235
|
+
}),
|
|
3236
|
+
input: {
|
|
3237
|
+
textOverflow: 'ellipsis',
|
|
3238
|
+
height: theme.spacing(3),
|
|
3239
|
+
[sm]: {
|
|
3240
|
+
height: theme.spacing(2.5)
|
|
3241
|
+
}
|
|
3242
|
+
},
|
|
3243
|
+
inputMultiline: {
|
|
3244
|
+
resize: 'vertical'
|
|
3301
3245
|
}
|
|
3302
3246
|
};
|
|
3303
|
-
theme.
|
|
3304
|
-
|
|
3305
|
-
|
|
3306
|
-
|
|
3307
|
-
|
|
3308
|
-
|
|
3309
|
-
|
|
3310
|
-
|
|
3311
|
-
|
|
3312
|
-
|
|
3313
|
-
|
|
3314
|
-
|
|
3315
|
-
|
|
3316
|
-
|
|
3317
|
-
|
|
3318
|
-
|
|
3319
|
-
|
|
3320
|
-
|
|
3321
|
-
|
|
3322
|
-
|
|
3323
|
-
|
|
3324
|
-
|
|
3325
|
-
|
|
3247
|
+
theme.props.MuiInputLabel = {
|
|
3248
|
+
shrink: true
|
|
3249
|
+
};
|
|
3250
|
+
theme.overrides.MuiInputLabel = {
|
|
3251
|
+
root: {
|
|
3252
|
+
marginBottom: theme.spacing(0.5),
|
|
3253
|
+
transformOrigin: undefined
|
|
3254
|
+
},
|
|
3255
|
+
formControl: {
|
|
3256
|
+
top: undefined,
|
|
3257
|
+
left: undefined,
|
|
3258
|
+
position: undefined,
|
|
3259
|
+
transform: undefined
|
|
3260
|
+
},
|
|
3261
|
+
shrink: {
|
|
3262
|
+
transform: undefined,
|
|
3263
|
+
transformOrigin: undefined
|
|
3264
|
+
},
|
|
3265
|
+
outlined: {
|
|
3266
|
+
zIndex: undefined,
|
|
3267
|
+
transform: undefined,
|
|
3268
|
+
pointerEvents: undefined,
|
|
3269
|
+
'&$shrink': {
|
|
3270
|
+
transform: undefined
|
|
3326
3271
|
}
|
|
3327
3272
|
}
|
|
3328
3273
|
};
|
|
3329
|
-
theme.
|
|
3330
|
-
|
|
3331
|
-
|
|
3332
|
-
|
|
3333
|
-
|
|
3334
|
-
|
|
3335
|
-
|
|
3336
|
-
|
|
3337
|
-
|
|
3338
|
-
|
|
3339
|
-
|
|
3340
|
-
|
|
3341
|
-
[sm]: {
|
|
3342
|
-
padding: theme.spacing(0.75, 1)
|
|
3343
|
-
},
|
|
3344
|
-
'&.MuiInputBase-inputAdornedStart': {
|
|
3345
|
-
paddingLeft: 0
|
|
3346
|
-
},
|
|
3347
|
-
'&.MuiInputBase-inputAdornedEnd': {
|
|
3348
|
-
paddingRight: 0
|
|
3349
|
-
}
|
|
3350
|
-
},
|
|
3351
|
-
inputMultiline: {
|
|
3352
|
-
padding: 0,
|
|
3353
|
-
[sm]: {
|
|
3354
|
-
padding: 0
|
|
3355
|
-
}
|
|
3356
|
-
},
|
|
3357
|
-
multiline: {
|
|
3274
|
+
theme.props.MuiOutlinedInput = {
|
|
3275
|
+
notched: false
|
|
3276
|
+
};
|
|
3277
|
+
theme.overrides.MuiOutlinedInput = {
|
|
3278
|
+
root: {
|
|
3279
|
+
'&:hover $notchedOutline': {
|
|
3280
|
+
borderColor: undefined
|
|
3281
|
+
}
|
|
3282
|
+
},
|
|
3283
|
+
input: {
|
|
3284
|
+
padding: theme.spacing(1.25, 1.5),
|
|
3285
|
+
[sm]: {
|
|
3358
3286
|
padding: theme.spacing(0.75, 1)
|
|
3359
|
-
}
|
|
3360
|
-
|
|
3361
|
-
|
|
3362
|
-
|
|
3363
|
-
|
|
3364
|
-
|
|
3365
|
-
|
|
3366
|
-
|
|
3367
|
-
|
|
3368
|
-
|
|
3369
|
-
|
|
3370
|
-
|
|
3371
|
-
|
|
3287
|
+
}
|
|
3288
|
+
},
|
|
3289
|
+
multiline: {
|
|
3290
|
+
padding: theme.spacing(0.75, 1)
|
|
3291
|
+
},
|
|
3292
|
+
adornedStart: {
|
|
3293
|
+
paddingLeft: theme.spacing(1)
|
|
3294
|
+
},
|
|
3295
|
+
adornedEnd: {
|
|
3296
|
+
paddingRight: theme.spacing(1)
|
|
3297
|
+
},
|
|
3298
|
+
notchedOutline: {
|
|
3299
|
+
top: 0,
|
|
3300
|
+
borderColor: exports.Color.Silver500,
|
|
3301
|
+
'& legend': {
|
|
3302
|
+
display: 'none'
|
|
3372
3303
|
}
|
|
3373
3304
|
}
|
|
3374
3305
|
};
|
|
3375
|
-
theme.
|
|
3376
|
-
|
|
3377
|
-
|
|
3378
|
-
|
|
3379
|
-
|
|
3380
|
-
|
|
3381
|
-
|
|
3382
|
-
|
|
3383
|
-
color: exports.Color.Dark100
|
|
3384
|
-
},
|
|
3385
|
-
fontSize: theme.spacing(3),
|
|
3386
|
-
[sm]: {
|
|
3387
|
-
fontSize: theme.spacing(2)
|
|
3388
|
-
}
|
|
3389
|
-
},
|
|
3390
|
-
iconOutlined: {
|
|
3391
|
-
right: theme.spacing(1.5),
|
|
3392
|
-
[sm]: {
|
|
3393
|
-
right: theme.spacing(1)
|
|
3394
|
-
}
|
|
3306
|
+
theme.props.MuiSelect = {
|
|
3307
|
+
IconComponent: SelectIcon
|
|
3308
|
+
};
|
|
3309
|
+
theme.overrides.MuiSelect = {
|
|
3310
|
+
icon: {
|
|
3311
|
+
top: 'calc(50% - 0.5em)',
|
|
3312
|
+
'$disabled &': {
|
|
3313
|
+
color: exports.Color.Dark100
|
|
3395
3314
|
},
|
|
3396
|
-
|
|
3315
|
+
fontSize: theme.spacing(3),
|
|
3316
|
+
[sm]: {
|
|
3317
|
+
fontSize: theme.spacing(2)
|
|
3318
|
+
}
|
|
3319
|
+
},
|
|
3320
|
+
iconOutlined: {
|
|
3321
|
+
right: theme.spacing(1.5),
|
|
3322
|
+
[sm]: {
|
|
3323
|
+
right: theme.spacing(1)
|
|
3324
|
+
}
|
|
3325
|
+
},
|
|
3326
|
+
select: {
|
|
3327
|
+
'&:focus': {
|
|
3328
|
+
backgroundColor: undefined
|
|
3329
|
+
}
|
|
3330
|
+
},
|
|
3331
|
+
selectMenu: {
|
|
3332
|
+
'&&': {
|
|
3397
3333
|
paddingRight: theme.spacing(4.5),
|
|
3398
3334
|
[sm]: {
|
|
3399
3335
|
right: theme.spacing(4)
|
|
3400
|
-
},
|
|
3401
|
-
'&:focus': {
|
|
3402
|
-
backgroundColor: 'unset'
|
|
3403
3336
|
}
|
|
3404
3337
|
}
|
|
3405
3338
|
}
|
|
3406
3339
|
};
|
|
3407
|
-
theme.
|
|
3408
|
-
|
|
3409
|
-
root: {
|
|
3410
|
-
|
|
3411
|
-
|
|
3412
|
-
|
|
3413
|
-
fontSize: theme.spacing(2.5)
|
|
3414
|
-
}
|
|
3415
|
-
},
|
|
3416
|
-
'& .MuiIconButton-root': {
|
|
3417
|
-
padding: theme.spacing(1)
|
|
3340
|
+
theme.overrides.MuiInputAdornment = {
|
|
3341
|
+
root: {
|
|
3342
|
+
'& .MuiSvgIcon-root:not(.MuiSvgIcon-fontSizeSmall)': {
|
|
3343
|
+
fontSize: theme.spacing(3),
|
|
3344
|
+
[sm]: {
|
|
3345
|
+
fontSize: theme.spacing(2.5)
|
|
3418
3346
|
}
|
|
3419
3347
|
},
|
|
3420
|
-
|
|
3421
|
-
|
|
3422
|
-
|
|
3423
|
-
|
|
3424
|
-
|
|
3425
|
-
|
|
3348
|
+
'& .MuiIconButton-root': {
|
|
3349
|
+
padding: theme.spacing(1)
|
|
3350
|
+
}
|
|
3351
|
+
},
|
|
3352
|
+
positionStart: {
|
|
3353
|
+
'& .MuiIconButton-root': {
|
|
3354
|
+
marginLeft: theme.spacing(-0.5),
|
|
3355
|
+
[sm]: {
|
|
3356
|
+
marginLeft: theme.spacing(-0.75)
|
|
3426
3357
|
}
|
|
3427
|
-
}
|
|
3428
|
-
|
|
3429
|
-
|
|
3430
|
-
|
|
3431
|
-
|
|
3432
|
-
|
|
3433
|
-
|
|
3358
|
+
}
|
|
3359
|
+
},
|
|
3360
|
+
positionEnd: {
|
|
3361
|
+
'& .MuiIconButton-root': {
|
|
3362
|
+
marginRight: theme.spacing(-0.5),
|
|
3363
|
+
[sm]: {
|
|
3364
|
+
marginRight: theme.spacing(-0.75)
|
|
3434
3365
|
}
|
|
3435
3366
|
}
|
|
3436
3367
|
}
|
|
3437
3368
|
};
|
|
3438
|
-
theme.
|
|
3439
|
-
|
|
3440
|
-
|
|
3441
|
-
|
|
3442
|
-
|
|
3443
|
-
|
|
3444
|
-
|
|
3445
|
-
marginRight: 'unset'
|
|
3446
|
-
}
|
|
3369
|
+
theme.overrides.MuiFormHelperText = {
|
|
3370
|
+
root: _objectSpread(_objectSpread({}, theme.typography.body2), {}, {
|
|
3371
|
+
marginTop: theme.spacing(0.5)
|
|
3372
|
+
}),
|
|
3373
|
+
contained: {
|
|
3374
|
+
marginLeft: undefined,
|
|
3375
|
+
marginRight: undefined
|
|
3447
3376
|
}
|
|
3448
3377
|
};
|
|
3449
3378
|
}
|
|
3450
3379
|
|
|
3451
3380
|
function overrideToolbar(theme) {
|
|
3452
|
-
theme.
|
|
3453
|
-
|
|
3454
|
-
|
|
3455
|
-
|
|
3456
|
-
|
|
3457
|
-
|
|
3458
|
-
|
|
3459
|
-
|
|
3460
|
-
paddingRight: theme.spacing(2)
|
|
3461
|
-
}
|
|
3381
|
+
theme.overrides.MuiToolbar = {
|
|
3382
|
+
regular: {
|
|
3383
|
+
minHeight: theme.spacing(8)
|
|
3384
|
+
},
|
|
3385
|
+
gutters: {
|
|
3386
|
+
[theme.breakpoints.up('sm')]: {
|
|
3387
|
+
paddingLeft: theme.spacing(2),
|
|
3388
|
+
paddingRight: theme.spacing(2)
|
|
3462
3389
|
}
|
|
3463
3390
|
}
|
|
3464
3391
|
};
|
|
3465
3392
|
}
|
|
3466
3393
|
|
|
3467
3394
|
function overrideTooltip(theme) {
|
|
3468
|
-
theme.
|
|
3469
|
-
|
|
3470
|
-
|
|
3471
|
-
|
|
3472
|
-
|
|
3473
|
-
|
|
3474
|
-
|
|
3475
|
-
|
|
3476
|
-
|
|
3477
|
-
|
|
3478
|
-
|
|
3479
|
-
|
|
3480
|
-
|
|
3481
|
-
|
|
3482
|
-
|
|
3483
|
-
|
|
3484
|
-
|
|
3485
|
-
|
|
3486
|
-
|
|
3487
|
-
|
|
3488
|
-
|
|
3489
|
-
|
|
3490
|
-
borderBottomLeftRadius: 2
|
|
3491
|
-
}
|
|
3492
|
-
},
|
|
3493
|
-
["&[data-popper-placement*=\"bottom\"] .".concat(material.tooltipClasses.arrow)]: {
|
|
3494
|
-
'&::before': {
|
|
3495
|
-
borderTopLeftRadius: 2
|
|
3496
|
-
}
|
|
3395
|
+
theme.props.MuiTooltip = {
|
|
3396
|
+
arrow: true
|
|
3397
|
+
};
|
|
3398
|
+
theme.overrides.MuiTooltip = {
|
|
3399
|
+
tooltip: _objectSpread(_objectSpread({}, theme.typography.body2), {}, {
|
|
3400
|
+
padding: theme.spacing(1, 1.5),
|
|
3401
|
+
backgroundColor: exports.Color.Dark400
|
|
3402
|
+
}),
|
|
3403
|
+
popperArrow: {
|
|
3404
|
+
'&[x-placement*="top"] $arrow': {
|
|
3405
|
+
'&::before': {
|
|
3406
|
+
borderBottomRightRadius: 2
|
|
3407
|
+
}
|
|
3408
|
+
},
|
|
3409
|
+
'&[x-placement*="left"] $arrow': {
|
|
3410
|
+
'&::before': {
|
|
3411
|
+
borderTopRightRadius: 2
|
|
3412
|
+
}
|
|
3413
|
+
},
|
|
3414
|
+
'&[x-placement*="right"] $arrow': {
|
|
3415
|
+
'&::before': {
|
|
3416
|
+
borderBottomLeftRadius: 2
|
|
3497
3417
|
}
|
|
3498
3418
|
},
|
|
3499
|
-
arrow: {
|
|
3500
|
-
|
|
3501
|
-
|
|
3419
|
+
'&[x-placement*="bottom"] $arrow': {
|
|
3420
|
+
'&::before': {
|
|
3421
|
+
borderTopLeftRadius: 2
|
|
3422
|
+
}
|
|
3502
3423
|
}
|
|
3424
|
+
},
|
|
3425
|
+
arrow: {
|
|
3426
|
+
color: exports.Color.Dark400,
|
|
3427
|
+
fontSize: theme.spacing(1)
|
|
3503
3428
|
}
|
|
3504
3429
|
};
|
|
3505
3430
|
}
|
|
@@ -3609,24 +3534,14 @@ function createTypographyOptions(breakpoints) {
|
|
|
3609
3534
|
};
|
|
3610
3535
|
}
|
|
3611
3536
|
function overrideTypography(theme) {
|
|
3612
|
-
theme.
|
|
3613
|
-
|
|
3614
|
-
variant: 'body2'
|
|
3615
|
-
}
|
|
3616
|
-
};
|
|
3617
|
-
}
|
|
3618
|
-
|
|
3619
|
-
function overrideCssBaseline(theme) {
|
|
3620
|
-
theme.components.MuiCssBaseline = {
|
|
3621
|
-
styleOverrides: {
|
|
3622
|
-
body: _objectSpread({}, theme.typography.body2)
|
|
3623
|
-
}
|
|
3537
|
+
theme.props.MuiTypography = {
|
|
3538
|
+
variant: 'body2'
|
|
3624
3539
|
};
|
|
3625
3540
|
}
|
|
3626
3541
|
|
|
3627
3542
|
function createSuperDispatchTheme() {
|
|
3628
|
-
var breakpoints =
|
|
3629
|
-
var theme =
|
|
3543
|
+
var breakpoints = createBreakpoints({});
|
|
3544
|
+
var theme = core.createTheme({
|
|
3630
3545
|
breakpoints,
|
|
3631
3546
|
palette: {
|
|
3632
3547
|
primary: {
|
|
@@ -3643,43 +3558,43 @@ function createSuperDispatchTheme() {
|
|
|
3643
3558
|
text: {
|
|
3644
3559
|
primary: exports.Color.Dark500,
|
|
3645
3560
|
secondary: exports.Color.Dark200,
|
|
3646
|
-
|
|
3561
|
+
hint: exports.Color.Dark100,
|
|
3647
3562
|
disabled: exports.Color.Dark100
|
|
3648
3563
|
},
|
|
3649
3564
|
divider: exports.Color.Silver400
|
|
3650
3565
|
},
|
|
3651
3566
|
typography: createTypographyOptions(breakpoints),
|
|
3652
|
-
|
|
3567
|
+
props: {},
|
|
3568
|
+
overrides: {}
|
|
3653
3569
|
});
|
|
3654
|
-
overrideCard(theme);
|
|
3655
|
-
overrideButton(theme);
|
|
3656
3570
|
overrideAppBar(theme);
|
|
3657
|
-
overridePaper(theme);
|
|
3658
|
-
overrideTooltip(theme);
|
|
3659
|
-
overrideSvgIcon(theme);
|
|
3660
|
-
overrideToolbar(theme);
|
|
3661
|
-
overrideIconButton(theme);
|
|
3662
|
-
overrideTypography(theme);
|
|
3663
|
-
overrideMenu(theme);
|
|
3664
|
-
overrideAvatar(theme);
|
|
3665
|
-
overrideTextField(theme);
|
|
3666
3571
|
overrideAutocomplete(theme);
|
|
3667
|
-
|
|
3572
|
+
overrideAvatar(theme);
|
|
3573
|
+
overrideButton(theme);
|
|
3574
|
+
overrideCard(theme);
|
|
3668
3575
|
overrideCheckbox(theme);
|
|
3669
|
-
overrideRadio(theme);
|
|
3670
|
-
overrideSwitch(theme);
|
|
3671
3576
|
overrideChip(theme);
|
|
3672
3577
|
overrideDialog(theme);
|
|
3673
3578
|
overrideDrawer(theme);
|
|
3674
|
-
|
|
3675
|
-
overrideList(theme);
|
|
3579
|
+
overrideIconButton(theme);
|
|
3676
3580
|
overrideLink(theme);
|
|
3581
|
+
overrideList(theme);
|
|
3582
|
+
overrideMenu(theme);
|
|
3583
|
+
overridePaper(theme);
|
|
3584
|
+
overrideRadio(theme);
|
|
3677
3585
|
overrideSnackbar(theme);
|
|
3586
|
+
overrideSvgIcon(theme);
|
|
3587
|
+
overrideSwitch(theme);
|
|
3678
3588
|
overrideTabs(theme);
|
|
3589
|
+
overrideTextField(theme);
|
|
3590
|
+
overrideToolbar(theme);
|
|
3591
|
+
overrideTooltip(theme);
|
|
3592
|
+
overrideTypography(theme);
|
|
3593
|
+
overridePagination(theme);
|
|
3679
3594
|
return theme;
|
|
3680
3595
|
}
|
|
3681
3596
|
|
|
3682
|
-
var generateMaterialClassName = /*#__PURE__*/
|
|
3597
|
+
var generateMaterialClassName = /*#__PURE__*/core.createGenerateClassName();
|
|
3683
3598
|
|
|
3684
3599
|
function generateClassName(rule, sheet) {
|
|
3685
3600
|
var {
|
|
@@ -3721,11 +3636,14 @@ function ThemeProvider(_ref) {
|
|
|
3721
3636
|
return /*#__PURE__*/jsxRuntime.jsx(styles.StylesProvider, {
|
|
3722
3637
|
injectFirst: injectFirst,
|
|
3723
3638
|
generateClassName: generateClassName,
|
|
3724
|
-
children: /*#__PURE__*/jsxRuntime.jsxs(
|
|
3639
|
+
children: /*#__PURE__*/jsxRuntime.jsxs(styles.ThemeProvider, {
|
|
3725
3640
|
theme: theme,
|
|
3726
|
-
children: [/*#__PURE__*/jsxRuntime.jsx(
|
|
3727
|
-
|
|
3728
|
-
|
|
3641
|
+
children: [/*#__PURE__*/jsxRuntime.jsx(core.CssBaseline, {}), /*#__PURE__*/jsxRuntime.jsx(styled.ThemeProvider, {
|
|
3642
|
+
theme: theme,
|
|
3643
|
+
children: /*#__PURE__*/jsxRuntime.jsx(ResponsiveContextProvider, {
|
|
3644
|
+
children: /*#__PURE__*/jsxRuntime.jsx(SnackbarStackProvider, {
|
|
3645
|
+
children: children
|
|
3646
|
+
})
|
|
3729
3647
|
})
|
|
3730
3648
|
})]
|
|
3731
3649
|
})
|
|
@@ -3736,13 +3654,12 @@ var PREVENT_COLLAPSE = 1;
|
|
|
3736
3654
|
|
|
3737
3655
|
function spaceVariant(theme, space) {
|
|
3738
3656
|
var gap = theme.spacing(space);
|
|
3739
|
-
var parsedGap = parseInt(gap);
|
|
3740
3657
|
return {
|
|
3741
3658
|
'&:before': {
|
|
3742
|
-
marginTop: -
|
|
3659
|
+
marginTop: -gap - PREVENT_COLLAPSE
|
|
3743
3660
|
},
|
|
3744
3661
|
'& > $container': {
|
|
3745
|
-
marginLeft: -
|
|
3662
|
+
marginLeft: -gap,
|
|
3746
3663
|
'& > $child > $childContainer': {
|
|
3747
3664
|
marginTop: gap,
|
|
3748
3665
|
marginLeft: gap
|
|
@@ -3757,7 +3674,7 @@ function columnVariant(columns) {
|
|
|
3757
3674
|
};
|
|
3758
3675
|
}
|
|
3759
3676
|
|
|
3760
|
-
var useStyles$
|
|
3677
|
+
var useStyles$d = /*#__PURE__*/styles.makeStyles(theme => ({
|
|
3761
3678
|
root: {
|
|
3762
3679
|
paddingTop: PREVENT_COLLAPSE,
|
|
3763
3680
|
'&:before': {
|
|
@@ -3801,7 +3718,7 @@ var Tiles = /*#__PURE__*/React.forwardRef((_ref, ref) => {
|
|
|
3801
3718
|
space: spaceProp = 1,
|
|
3802
3719
|
columns: columnsProp = 1
|
|
3803
3720
|
} = _ref;
|
|
3804
|
-
var styles = useStyles$
|
|
3721
|
+
var styles = useStyles$d({});
|
|
3805
3722
|
var space = useResponsivePropRecord(spaceProp);
|
|
3806
3723
|
var columns = useResponsivePropRecord(columnsProp);
|
|
3807
3724
|
return /*#__PURE__*/jsxRuntime.jsx("div", {
|