@superdispatch/ui 0.21.5-alpha.4 → 0.21.6
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 +1357 -1441
- 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 +1 -1
- 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 +1289 -1373
- package/dist-web/index.js.map +1 -1
- package/package.json +39 -39
- package/dist-src/theme/CssBaselineOverrides.js +0 -8
package/dist-web/index.js
CHANGED
|
@@ -1,42 +1,44 @@
|
|
|
1
1
|
import _objectSpread from '@babel/runtime/helpers/objectSpread2';
|
|
2
2
|
import _objectWithoutProperties from '@babel/runtime/helpers/objectWithoutProperties';
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
3
|
+
import { Button as Button$1, CircularProgress, ButtonGroup, Popover, MenuList, Toolbar, Grid, MenuItem, Typography, Menu, Divider, ButtonBase, Avatar, FormControl, FormControlLabel, Checkbox, FormHelperText, FormLabel, FormGroup, useMediaQuery, Tooltip, SvgIcon, AppBar, List, Card, CardContent, TextField, Radio, RadioGroup, SnackbarContent as SnackbarContent$1, IconButton, Portal, Snackbar as Snackbar$1, Slide, CssBaseline, createTheme, createGenerateClassName } from '@material-ui/core';
|
|
4
|
+
import { MoreHoriz, Close, Warning, CheckCircle } from '@material-ui/icons';
|
|
5
|
+
import { makeStyles, StylesProvider, ThemeProvider as ThemeProvider$1 } from '@material-ui/styles';
|
|
5
6
|
import { forwardRef, useState, useRef, useLayoutEffect, cloneElement, useMemo, useContext, createContext, Children, useCallback, useEffect } from 'react';
|
|
6
|
-
import { LoadingButton, loadingButtonClasses } from '@mui/lab';
|
|
7
7
|
import { jsx, jsxs, Fragment } from 'react/jsx-runtime';
|
|
8
|
-
import styled, { css } from 'styled-components';
|
|
8
|
+
import styled, { css, ThemeProvider as ThemeProvider$2 } from 'styled-components';
|
|
9
9
|
import { ResizeObserver } from '@juggle/resize-observer';
|
|
10
10
|
import { useEventHandler, useDeepEqualValue, useValueObserver, useDeepEqualMemo, useConstant } from '@superdispatch/hooks';
|
|
11
|
-
import
|
|
11
|
+
import clsx from 'clsx';
|
|
12
12
|
import flattenChildren from 'react-keyed-flatten-children';
|
|
13
13
|
import NumberFormat from 'react-number-format';
|
|
14
|
-
import
|
|
15
|
-
import { createBreakpoints } from '@mui/system';
|
|
14
|
+
import createBreakpoints from '@material-ui/core/styles/createBreakpoints';
|
|
16
15
|
|
|
17
|
-
var _excluded = ["size", "children", "isActive", "isLoading", "color"];
|
|
16
|
+
var _excluded = ["size", "children", "disabled", "isActive", "isLoading", "color"];
|
|
18
17
|
var Button = /*#__PURE__*/forwardRef((_ref, ref) => {
|
|
19
18
|
var {
|
|
20
19
|
size,
|
|
21
20
|
children,
|
|
21
|
+
disabled,
|
|
22
22
|
isActive,
|
|
23
23
|
isLoading,
|
|
24
24
|
color = 'primary'
|
|
25
25
|
} = _ref,
|
|
26
26
|
props = _objectWithoutProperties(_ref, _excluded);
|
|
27
27
|
|
|
28
|
-
return /*#__PURE__*/jsx(
|
|
28
|
+
return /*#__PURE__*/jsx(Button$1, _objectSpread(_objectSpread({}, props), {}, {
|
|
29
29
|
ref: ref,
|
|
30
30
|
size: size,
|
|
31
31
|
"data-color": color,
|
|
32
|
-
|
|
32
|
+
"aria-busy": isLoading,
|
|
33
33
|
"aria-expanded": isActive,
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
34
|
+
disabled: disabled || isLoading,
|
|
35
|
+
color: color === 'primary' ? color : 'default',
|
|
36
|
+
children: !isLoading ? children : /*#__PURE__*/jsxs(Fragment, {
|
|
37
|
+
children: [children, /*#__PURE__*/jsx(CircularProgress, {
|
|
38
|
+
size: "1em",
|
|
39
|
+
color: "inherit"
|
|
40
|
+
})]
|
|
41
|
+
})
|
|
40
42
|
}));
|
|
41
43
|
});
|
|
42
44
|
if (process.env.NODE_ENV !== "production") Button.displayName = "Button";
|
|
@@ -163,12 +165,12 @@ function useResizeObserver(node, observer) {
|
|
|
163
165
|
}
|
|
164
166
|
|
|
165
167
|
var _excluded$2 = ["items"];
|
|
166
|
-
var
|
|
167
|
-
|
|
168
|
-
})(() => {
|
|
169
|
-
return {
|
|
168
|
+
var useStyles = /*#__PURE__*/makeStyles({
|
|
169
|
+
actions: {
|
|
170
170
|
overflow: 'hidden'
|
|
171
|
-
}
|
|
171
|
+
}
|
|
172
|
+
}, {
|
|
173
|
+
name: 'SD-AdaptiveToolbar'
|
|
172
174
|
});
|
|
173
175
|
var AdaptiveToolbar = /*#__PURE__*/forwardRef((_ref, ref) => {
|
|
174
176
|
var {
|
|
@@ -176,6 +178,7 @@ var AdaptiveToolbar = /*#__PURE__*/forwardRef((_ref, ref) => {
|
|
|
176
178
|
} = _ref,
|
|
177
179
|
props = _objectWithoutProperties(_ref, _excluded$2);
|
|
178
180
|
|
|
181
|
+
var styles = useStyles();
|
|
179
182
|
var itemNodes = useRef([]);
|
|
180
183
|
var optionsButtonRef = useRef(null);
|
|
181
184
|
var [firstHiddenIdx, setFirstHiddenIdx] = useState(-1);
|
|
@@ -217,8 +220,9 @@ var AdaptiveToolbar = /*#__PURE__*/forwardRef((_ref, ref) => {
|
|
|
217
220
|
container: true,
|
|
218
221
|
spacing: 1,
|
|
219
222
|
ref: setRootNode,
|
|
220
|
-
children: [/*#__PURE__*/jsx(
|
|
223
|
+
children: [/*#__PURE__*/jsx(Grid, {
|
|
221
224
|
item: true,
|
|
225
|
+
className: styles.actions,
|
|
222
226
|
children: /*#__PURE__*/jsx(Grid, {
|
|
223
227
|
container: true,
|
|
224
228
|
spacing: 1,
|
|
@@ -240,8 +244,6 @@ var AdaptiveToolbar = /*#__PURE__*/forwardRef((_ref, ref) => {
|
|
|
240
244
|
}, dropdownItem.key))
|
|
241
245
|
})) : /*#__PURE__*/jsx(Button, _objectSpread(_objectSpread({
|
|
242
246
|
type: "button",
|
|
243
|
-
color: "primary",
|
|
244
|
-
variant: "outlined",
|
|
245
247
|
onClick: item.onClick
|
|
246
248
|
}, item.ButtonProps), {}, {
|
|
247
249
|
children: /*#__PURE__*/jsx(Typography, {
|
|
@@ -258,7 +260,6 @@ var AdaptiveToolbar = /*#__PURE__*/forwardRef((_ref, ref) => {
|
|
|
258
260
|
component: "div",
|
|
259
261
|
children: [/*#__PURE__*/jsx(Button, {
|
|
260
262
|
type: "button",
|
|
261
|
-
variant: "outlined",
|
|
262
263
|
onClick: _ref2 => {
|
|
263
264
|
var {
|
|
264
265
|
currentTarget
|
|
@@ -324,7 +325,7 @@ function assignRef(ref, value) {
|
|
|
324
325
|
}
|
|
325
326
|
}
|
|
326
327
|
|
|
327
|
-
var useStyles = /*#__PURE__*/makeStyles({
|
|
328
|
+
var useStyles$1 = /*#__PURE__*/makeStyles({
|
|
328
329
|
root: {
|
|
329
330
|
overflow: 'hidden',
|
|
330
331
|
height: '100%'
|
|
@@ -346,7 +347,7 @@ var AdaptiveVerticalToolbar = /*#__PURE__*/forwardRef((_ref, ref) => {
|
|
|
346
347
|
renderItem = item => item.label,
|
|
347
348
|
renderMenuItem = item => item.label
|
|
348
349
|
} = _ref;
|
|
349
|
-
var styles = useStyles();
|
|
350
|
+
var styles = useStyles$1();
|
|
350
351
|
var itemNodes = useRef([]);
|
|
351
352
|
var optionsButtonRef = useRef(null);
|
|
352
353
|
var [firstHiddenIdx, setFirstHiddenIdx] = useState(-1);
|
|
@@ -509,81 +510,66 @@ function isColorProp(name) {
|
|
|
509
510
|
return typeof name == 'string' && Object.prototype.hasOwnProperty.call(Color, name);
|
|
510
511
|
}
|
|
511
512
|
|
|
512
|
-
var _excluded$3 = ["size", "icon", "isLoading", "disabled", "avatarRef", "alt", "imgProps", "sizes", "src", "srcSet", "variant", "children"]
|
|
513
|
-
|
|
514
|
-
|
|
515
|
-
theme
|
|
516
|
-
} = _ref;
|
|
517
|
-
var sm = theme.breakpoints.up('sm');
|
|
518
|
-
return {
|
|
519
|
-
top: 0,
|
|
520
|
-
left: 0,
|
|
521
|
-
right: 0,
|
|
522
|
-
bottom: 0,
|
|
523
|
-
position: 'absolute',
|
|
524
|
-
display: 'flex',
|
|
525
|
-
alignItems: 'center',
|
|
526
|
-
justifyContent: 'center',
|
|
527
|
-
borderRadius: '50%',
|
|
528
|
-
backgroundColor: Color.Transparent,
|
|
529
|
-
transition: theme.transitions.create('background-color'),
|
|
530
|
-
'& > svg': {
|
|
531
|
-
opacity: 0,
|
|
532
|
-
color: Color.White,
|
|
533
|
-
transition: theme.transitions.create('opacity'),
|
|
534
|
-
fontSize: theme.spacing(3),
|
|
535
|
-
[sm]: {
|
|
536
|
-
fontSize: theme.spacing(2)
|
|
537
|
-
}
|
|
538
|
-
}
|
|
539
|
-
};
|
|
540
|
-
});
|
|
541
|
-
var StyledProgress = /*#__PURE__*/styled$1(CircularProgress)(props => {
|
|
542
|
-
var {
|
|
543
|
-
theme
|
|
544
|
-
} = props;
|
|
545
|
-
var sm = theme.breakpoints.up('sm');
|
|
546
|
-
return {
|
|
547
|
-
top: 0,
|
|
548
|
-
left: 0,
|
|
549
|
-
position: 'absolute',
|
|
550
|
-
fontSize: theme.spacing(5),
|
|
551
|
-
[sm]: {
|
|
552
|
-
fontSize: theme.spacing(4)
|
|
553
|
-
}
|
|
554
|
-
};
|
|
555
|
-
}); // eslint-disable-next-line @typescript-eslint/ban-ts-comment
|
|
556
|
-
// @ts-ignore
|
|
557
|
-
|
|
558
|
-
var StyledButton = /*#__PURE__*/styled$1(ButtonBase, {
|
|
559
|
-
name: 'SD-AvatarButton'
|
|
560
|
-
})(_ref2 => {
|
|
561
|
-
var {
|
|
562
|
-
theme
|
|
563
|
-
} = _ref2;
|
|
513
|
+
var _excluded$3 = ["size", "icon", "isLoading", "classes", "disabled", "avatarRef", "className", "alt", "imgProps", "sizes", "src", "srcSet", "variant", "children"],
|
|
514
|
+
_excluded2 = ["button", "overlay", "progress", "withIcon", "sizeLarge"];
|
|
515
|
+
var useStyles$2 = /*#__PURE__*/makeStyles(theme => {
|
|
564
516
|
var sm = theme.breakpoints.up('sm');
|
|
565
517
|
return {
|
|
566
|
-
|
|
567
|
-
|
|
568
|
-
[
|
|
569
|
-
|
|
518
|
+
button: {
|
|
519
|
+
borderRadius: '50%',
|
|
520
|
+
'&[disabled], &[aria-busy="true"]': {
|
|
521
|
+
'& > $overlay': {
|
|
522
|
+
backgroundColor: Color.White50
|
|
523
|
+
}
|
|
524
|
+
},
|
|
525
|
+
'&:not([disabled])[aria-busy="false"]': {
|
|
526
|
+
'&:hover, &:focus': {
|
|
527
|
+
'&$withIcon > $overlay': {
|
|
528
|
+
backgroundColor: Color.Black50,
|
|
529
|
+
'& > svg': {
|
|
530
|
+
opacity: 1
|
|
531
|
+
}
|
|
532
|
+
},
|
|
533
|
+
'&:not($withIcon) > $overlay': {
|
|
534
|
+
backgroundColor: Color.Black20
|
|
535
|
+
}
|
|
536
|
+
}
|
|
570
537
|
}
|
|
571
538
|
},
|
|
572
|
-
|
|
573
|
-
|
|
574
|
-
|
|
575
|
-
|
|
576
|
-
|
|
577
|
-
|
|
578
|
-
|
|
579
|
-
|
|
580
|
-
|
|
581
|
-
|
|
539
|
+
overlay: {
|
|
540
|
+
top: 0,
|
|
541
|
+
left: 0,
|
|
542
|
+
right: 0,
|
|
543
|
+
bottom: 0,
|
|
544
|
+
position: 'absolute',
|
|
545
|
+
display: 'flex',
|
|
546
|
+
alignItems: 'center',
|
|
547
|
+
justifyContent: 'center',
|
|
548
|
+
borderRadius: '50%',
|
|
549
|
+
backgroundColor: Color.Transparent,
|
|
550
|
+
transition: theme.transitions.create('background-color'),
|
|
551
|
+
'& > svg': {
|
|
552
|
+
opacity: 0,
|
|
553
|
+
color: Color.White,
|
|
554
|
+
transition: theme.transitions.create('opacity'),
|
|
555
|
+
fontSize: theme.spacing(3),
|
|
556
|
+
[sm]: {
|
|
557
|
+
fontSize: theme.spacing(2)
|
|
582
558
|
}
|
|
583
559
|
}
|
|
584
560
|
},
|
|
585
|
-
|
|
586
|
-
|
|
561
|
+
progress: {
|
|
562
|
+
top: 0,
|
|
563
|
+
left: 0,
|
|
564
|
+
position: 'absolute',
|
|
565
|
+
fontSize: theme.spacing(5),
|
|
566
|
+
[sm]: {
|
|
567
|
+
fontSize: theme.spacing(4)
|
|
568
|
+
}
|
|
569
|
+
},
|
|
570
|
+
withIcon: {},
|
|
571
|
+
sizeLarge: {
|
|
572
|
+
'& > $root': _objectSpread(_objectSpread({}, theme.typography.h2), {}, {
|
|
587
573
|
width: theme.spacing(7),
|
|
588
574
|
height: theme.spacing(7),
|
|
589
575
|
[sm]: {
|
|
@@ -591,8 +577,8 @@ var StyledButton = /*#__PURE__*/styled$1(ButtonBase, {
|
|
|
591
577
|
height: theme.spacing(8)
|
|
592
578
|
}
|
|
593
579
|
}),
|
|
594
|
-
|
|
595
|
-
|
|
580
|
+
'& > $overlay': {
|
|
581
|
+
'& > $progress': {
|
|
596
582
|
fontSize: theme.spacing(7),
|
|
597
583
|
[sm]: {
|
|
598
584
|
fontSize: theme.spacing(8)
|
|
@@ -605,16 +591,27 @@ var StyledButton = /*#__PURE__*/styled$1(ButtonBase, {
|
|
|
605
591
|
}
|
|
606
592
|
}
|
|
607
593
|
}
|
|
608
|
-
}
|
|
594
|
+
},
|
|
595
|
+
root: {},
|
|
596
|
+
colorDefault: {},
|
|
597
|
+
circular: {},
|
|
598
|
+
rounded: {},
|
|
599
|
+
square: {},
|
|
600
|
+
img: {},
|
|
601
|
+
fallback: {}
|
|
609
602
|
};
|
|
603
|
+
}, {
|
|
604
|
+
name: 'SD-AvatarButton'
|
|
610
605
|
});
|
|
611
|
-
var AvatarButton = /*#__PURE__*/forwardRef((
|
|
606
|
+
var AvatarButton = /*#__PURE__*/forwardRef((_ref, ref) => {
|
|
612
607
|
var {
|
|
613
608
|
size,
|
|
614
609
|
icon,
|
|
615
610
|
isLoading = false,
|
|
611
|
+
classes,
|
|
616
612
|
disabled = false,
|
|
617
613
|
avatarRef,
|
|
614
|
+
className,
|
|
618
615
|
alt,
|
|
619
616
|
imgProps,
|
|
620
617
|
sizes,
|
|
@@ -622,18 +619,30 @@ var AvatarButton = /*#__PURE__*/forwardRef((_ref3, ref) => {
|
|
|
622
619
|
srcSet,
|
|
623
620
|
variant,
|
|
624
621
|
children
|
|
625
|
-
} =
|
|
626
|
-
props = _objectWithoutProperties(
|
|
622
|
+
} = _ref,
|
|
623
|
+
props = _objectWithoutProperties(_ref, _excluded$3);
|
|
624
|
+
|
|
625
|
+
var _useStyles = useStyles$2({
|
|
626
|
+
classes
|
|
627
|
+
}),
|
|
628
|
+
{
|
|
629
|
+
button: buttonClassName,
|
|
630
|
+
overlay: overlayClassName,
|
|
631
|
+
progress: progressClassName,
|
|
632
|
+
withIcon: withIconClassName,
|
|
633
|
+
sizeLarge: sizeLargeClassName
|
|
634
|
+
} = _useStyles,
|
|
635
|
+
avatarClasses = _objectWithoutProperties(_useStyles, _excluded2);
|
|
627
636
|
|
|
628
|
-
return /*#__PURE__*/jsxs(
|
|
637
|
+
return /*#__PURE__*/jsxs(ButtonBase, _objectSpread(_objectSpread({}, props), {}, {
|
|
629
638
|
ref: ref,
|
|
630
639
|
"aria-busy": isLoading,
|
|
631
640
|
"aria-disabled": disabled,
|
|
632
641
|
disabled: disabled || isLoading,
|
|
633
|
-
|
|
634
|
-
"data-size-large": size === 'large',
|
|
642
|
+
className: clsx(className, buttonClassName, !!icon && withIconClassName, size === 'large' && sizeLargeClassName),
|
|
635
643
|
children: [/*#__PURE__*/jsx(Avatar, {
|
|
636
644
|
ref: avatarRef,
|
|
645
|
+
classes: avatarClasses,
|
|
637
646
|
variant: variant,
|
|
638
647
|
alt: alt,
|
|
639
648
|
src: src,
|
|
@@ -641,9 +650,11 @@ var AvatarButton = /*#__PURE__*/forwardRef((_ref3, ref) => {
|
|
|
641
650
|
srcSet: srcSet,
|
|
642
651
|
imgProps: imgProps,
|
|
643
652
|
children: children
|
|
644
|
-
}), /*#__PURE__*/jsxs(
|
|
645
|
-
|
|
653
|
+
}), /*#__PURE__*/jsxs("div", {
|
|
654
|
+
className: overlayClassName,
|
|
655
|
+
children: [icon, isLoading && /*#__PURE__*/jsx(CircularProgress, {
|
|
646
656
|
size: "1em",
|
|
657
|
+
className: progressClassName,
|
|
647
658
|
thickness: size === 'large' ? 2.5 : 1.5
|
|
648
659
|
})]
|
|
649
660
|
})]
|
|
@@ -652,11 +663,8 @@ var AvatarButton = /*#__PURE__*/forwardRef((_ref3, ref) => {
|
|
|
652
663
|
if (process.env.NODE_ENV !== "production") AvatarButton.displayName = "AvatarButton";
|
|
653
664
|
|
|
654
665
|
var _excluded$4 = ["hint", "size", "error", "classes", "className", "children", "endIcon", "startIcon", "disabled"];
|
|
655
|
-
var
|
|
656
|
-
|
|
657
|
-
theme
|
|
658
|
-
} = _ref;
|
|
659
|
-
return {
|
|
666
|
+
var useStyles$3 = /*#__PURE__*/makeStyles(theme => ({
|
|
667
|
+
root: {
|
|
660
668
|
width: '100%',
|
|
661
669
|
display: 'flex',
|
|
662
670
|
alignItems: 'center',
|
|
@@ -667,74 +675,66 @@ var StyledButton$1 = /*#__PURE__*/styled$1(ButtonBase)(_ref => {
|
|
|
667
675
|
borderRadius: theme.spacing(0.5),
|
|
668
676
|
padding: theme.spacing(1.5),
|
|
669
677
|
minHeight: theme.spacing(13),
|
|
670
|
-
transition: theme.transitions.create(['color', 'box-shadow', 'border-color', 'background-color'])
|
|
671
|
-
|
|
672
|
-
|
|
673
|
-
|
|
674
|
-
|
|
675
|
-
|
|
676
|
-
|
|
677
|
-
|
|
678
|
-
|
|
679
|
-
|
|
680
|
-
|
|
681
|
-
|
|
682
|
-
|
|
683
|
-
|
|
684
|
-
|
|
685
|
-
|
|
686
|
-
|
|
687
|
-
|
|
688
|
-
|
|
689
|
-
|
|
690
|
-
backgroundColor: Color.Red50,
|
|
691
|
-
'&:focus': {
|
|
692
|
-
backgroundColor: Color.Red75
|
|
693
|
-
}
|
|
694
|
-
},
|
|
695
|
-
'&[data-size="small"]': {
|
|
696
|
-
minHeight: theme.spacing(6)
|
|
678
|
+
transition: theme.transitions.create(['color', 'box-shadow', 'border-color', 'background-color'])
|
|
679
|
+
},
|
|
680
|
+
disabled: {
|
|
681
|
+
color: Color.Dark200,
|
|
682
|
+
borderColor: Color.Silver500,
|
|
683
|
+
backgroundColor: Color.Silver100
|
|
684
|
+
},
|
|
685
|
+
error: {
|
|
686
|
+
color: Color.Red300,
|
|
687
|
+
borderColor: Color.Red300,
|
|
688
|
+
backgroundColor: Color.Red50,
|
|
689
|
+
'&:focus': {
|
|
690
|
+
backgroundColor: Color.Red75
|
|
691
|
+
}
|
|
692
|
+
},
|
|
693
|
+
primary: {
|
|
694
|
+
color: Color.Blue300,
|
|
695
|
+
borderColor: Color.Silver500,
|
|
696
|
+
'&:focus': {
|
|
697
|
+
backgroundColor: Color.Blue50
|
|
697
698
|
},
|
|
698
|
-
'
|
|
699
|
-
|
|
699
|
+
'&:hover, &:active': {
|
|
700
|
+
borderColor: Color.Blue300,
|
|
701
|
+
backgroundColor: Color.Blue50
|
|
700
702
|
}
|
|
701
|
-
}
|
|
702
|
-
|
|
703
|
-
|
|
704
|
-
|
|
705
|
-
|
|
706
|
-
|
|
707
|
-
|
|
708
|
-
|
|
709
|
-
|
|
710
|
-
|
|
711
|
-
|
|
712
|
-
|
|
713
|
-
};
|
|
714
|
-
});
|
|
715
|
-
var Icon = /*#__PURE__*/styled$1('span')(_ref3 => {
|
|
716
|
-
var {
|
|
717
|
-
theme
|
|
718
|
-
} = _ref3;
|
|
719
|
-
return {
|
|
703
|
+
},
|
|
704
|
+
sizeSmall: {
|
|
705
|
+
minHeight: theme.spacing(6)
|
|
706
|
+
},
|
|
707
|
+
sizeLarge: {
|
|
708
|
+
minHeight: theme.spacing(17.5)
|
|
709
|
+
},
|
|
710
|
+
label: {
|
|
711
|
+
display: 'flex',
|
|
712
|
+
alignItems: 'center'
|
|
713
|
+
},
|
|
714
|
+
icon: {
|
|
720
715
|
display: 'flex',
|
|
721
716
|
'& svg': {
|
|
722
717
|
fontSize: theme.spacing(3),
|
|
723
718
|
[theme.breakpoints.up('sm')]: {
|
|
724
719
|
fontSize: theme.spacing(2.5)
|
|
725
720
|
}
|
|
726
|
-
},
|
|
727
|
-
'&[data-placement="start"]': {
|
|
728
|
-
marginRight: theme.spacing(1),
|
|
729
|
-
marginLeft: theme.spacing(-0.5)
|
|
730
|
-
},
|
|
731
|
-
'&[data-placement="end"]': {
|
|
732
|
-
marginLeft: theme.spacing(1),
|
|
733
|
-
marginRight: theme.spacing(-0.5)
|
|
734
721
|
}
|
|
735
|
-
}
|
|
722
|
+
},
|
|
723
|
+
startIcon: {
|
|
724
|
+
marginRight: theme.spacing(1),
|
|
725
|
+
marginLeft: theme.spacing(-0.5)
|
|
726
|
+
},
|
|
727
|
+
endIcon: {
|
|
728
|
+
marginLeft: theme.spacing(1),
|
|
729
|
+
marginRight: theme.spacing(-0.5)
|
|
730
|
+
},
|
|
731
|
+
hint: {
|
|
732
|
+
marginTop: theme.spacing(0.5)
|
|
733
|
+
}
|
|
734
|
+
}), {
|
|
735
|
+
name: 'SD-CardButton'
|
|
736
736
|
});
|
|
737
|
-
var CardButton = /*#__PURE__*/forwardRef((
|
|
737
|
+
var CardButton = /*#__PURE__*/forwardRef((_ref, ref) => {
|
|
738
738
|
var {
|
|
739
739
|
hint,
|
|
740
740
|
size,
|
|
@@ -745,33 +745,39 @@ var CardButton = /*#__PURE__*/forwardRef((_ref4, ref) => {
|
|
|
745
745
|
endIcon,
|
|
746
746
|
startIcon,
|
|
747
747
|
disabled
|
|
748
|
-
} =
|
|
749
|
-
props = _objectWithoutProperties(
|
|
748
|
+
} = _ref,
|
|
749
|
+
props = _objectWithoutProperties(_ref, _excluded$4);
|
|
750
750
|
|
|
751
|
-
|
|
751
|
+
var styles = useStyles$3({
|
|
752
|
+
classes
|
|
753
|
+
});
|
|
754
|
+
return /*#__PURE__*/jsx(ButtonBase, _objectSpread(_objectSpread({}, props), {}, {
|
|
752
755
|
ref: ref,
|
|
753
756
|
disabled: disabled,
|
|
754
|
-
|
|
755
|
-
|
|
756
|
-
|
|
757
|
-
|
|
758
|
-
children: error ? /*#__PURE__*/jsx(
|
|
757
|
+
className: clsx(styles.root, className, disabled ? styles.disabled : error ? styles.error : styles.primary, {
|
|
758
|
+
'small': styles.sizeSmall,
|
|
759
|
+
'large': styles.sizeLarge
|
|
760
|
+
}[size]),
|
|
761
|
+
children: error ? /*#__PURE__*/jsx(Typography, {
|
|
759
762
|
variant: "h4",
|
|
760
763
|
color: "inherit",
|
|
764
|
+
className: styles.label,
|
|
761
765
|
children: error
|
|
762
766
|
}) : /*#__PURE__*/jsxs(Fragment, {
|
|
763
|
-
children: [/*#__PURE__*/jsxs(
|
|
767
|
+
children: [/*#__PURE__*/jsxs(Typography, {
|
|
764
768
|
variant: "h4",
|
|
765
769
|
color: "inherit",
|
|
766
|
-
|
|
767
|
-
|
|
770
|
+
className: styles.label,
|
|
771
|
+
children: [!!startIcon && /*#__PURE__*/jsx("span", {
|
|
772
|
+
className: clsx(styles.icon, styles.startIcon),
|
|
768
773
|
children: startIcon
|
|
769
|
-
}), children, !!endIcon && /*#__PURE__*/jsx(
|
|
770
|
-
|
|
774
|
+
}), children, !!endIcon && /*#__PURE__*/jsx("span", {
|
|
775
|
+
className: clsx(styles.icon, styles.endIcon),
|
|
771
776
|
children: endIcon
|
|
772
777
|
})]
|
|
773
|
-
}), !!hint && /*#__PURE__*/jsx(
|
|
778
|
+
}), !!hint && /*#__PURE__*/jsx(Typography, {
|
|
774
779
|
color: "textSecondary",
|
|
780
|
+
className: styles.hint,
|
|
775
781
|
children: hint
|
|
776
782
|
})]
|
|
777
783
|
})
|
|
@@ -1111,52 +1117,48 @@ function VisibilityObserver(_ref2) {
|
|
|
1111
1117
|
}
|
|
1112
1118
|
|
|
1113
1119
|
var _excluded$8 = ["title", "enterDelay"],
|
|
1114
|
-
_excluded2 = ["onClick", "children", "disableUnderline", "TooltipProps"];
|
|
1115
|
-
var
|
|
1116
|
-
|
|
1117
|
-
shouldForwardProp: prop => prop !== 'truncated'
|
|
1118
|
-
})(_ref => {
|
|
1119
|
-
var {
|
|
1120
|
-
truncated,
|
|
1121
|
-
theme
|
|
1122
|
-
} = _ref;
|
|
1123
|
-
return _objectSpread({
|
|
1120
|
+
_excluded2$1 = ["onClick", "children", "className", "disableUnderline", "TooltipProps"];
|
|
1121
|
+
var useStyles$4 = /*#__PURE__*/makeStyles(theme => ({
|
|
1122
|
+
root: {
|
|
1124
1123
|
marginBottom: -1,
|
|
1125
1124
|
borderBottom: '1px dashed transparent',
|
|
1126
|
-
transition: theme.transitions.create('border')
|
|
1127
|
-
|
|
1128
|
-
|
|
1129
|
-
|
|
1130
|
-
|
|
1131
|
-
}
|
|
1132
|
-
|
|
1133
|
-
|
|
1134
|
-
|
|
1135
|
-
|
|
1136
|
-
|
|
1137
|
-
|
|
1138
|
-
|
|
1125
|
+
transition: theme.transitions.create('border'),
|
|
1126
|
+
'&$truncated': {
|
|
1127
|
+
cursor: 'pointer',
|
|
1128
|
+
borderBottomColor: Color.Silver500
|
|
1129
|
+
}
|
|
1130
|
+
},
|
|
1131
|
+
truncated: {},
|
|
1132
|
+
sentinel: {
|
|
1133
|
+
width: 1,
|
|
1134
|
+
height: '100%',
|
|
1135
|
+
display: 'inline-block'
|
|
1136
|
+
}
|
|
1137
|
+
}), {
|
|
1138
|
+
name: 'SD-OverflowText'
|
|
1139
1139
|
});
|
|
1140
|
-
var OverflowText = /*#__PURE__*/forwardRef((
|
|
1140
|
+
var OverflowText = /*#__PURE__*/forwardRef((_ref, rootRef) => {
|
|
1141
1141
|
var {
|
|
1142
1142
|
onClick: _onClick,
|
|
1143
1143
|
children,
|
|
1144
|
+
className,
|
|
1144
1145
|
disableUnderline,
|
|
1145
1146
|
TooltipProps: {
|
|
1146
1147
|
title = children,
|
|
1147
1148
|
enterDelay = 1000
|
|
1148
1149
|
} = {}
|
|
1149
|
-
} =
|
|
1150
|
-
tooltipProps = _objectWithoutProperties(
|
|
1151
|
-
props = _objectWithoutProperties(
|
|
1150
|
+
} = _ref,
|
|
1151
|
+
tooltipProps = _objectWithoutProperties(_ref.TooltipProps, _excluded$8),
|
|
1152
|
+
props = _objectWithoutProperties(_ref, _excluded2$1);
|
|
1152
1153
|
|
|
1153
1154
|
var [isOpen, setIsOpen] = useState(false);
|
|
1155
|
+
var styles = useStyles$4();
|
|
1154
1156
|
return /*#__PURE__*/jsx(VisibilityObserver, {
|
|
1155
|
-
render:
|
|
1157
|
+
render: _ref2 => {
|
|
1156
1158
|
var {
|
|
1157
1159
|
ref,
|
|
1158
1160
|
visibility
|
|
1159
|
-
} =
|
|
1161
|
+
} = _ref2;
|
|
1160
1162
|
var isTooltipEnabled = !!children && visibility === 'invisible';
|
|
1161
1163
|
return /*#__PURE__*/jsx(Tooltip, _objectSpread(_objectSpread({}, tooltipProps), {}, {
|
|
1162
1164
|
enterDelay: 1000,
|
|
@@ -1169,16 +1171,17 @@ var OverflowText = /*#__PURE__*/forwardRef((_ref2, rootRef) => {
|
|
|
1169
1171
|
onClose: () => {
|
|
1170
1172
|
setIsOpen(false);
|
|
1171
1173
|
},
|
|
1172
|
-
children: /*#__PURE__*/jsxs(
|
|
1174
|
+
children: /*#__PURE__*/jsxs(Typography, _objectSpread(_objectSpread({}, props), {}, {
|
|
1173
1175
|
ref: rootRef,
|
|
1174
1176
|
noWrap: true,
|
|
1175
|
-
truncated: !disableUnderline && visibility === 'invisible',
|
|
1176
1177
|
onClick: event => {
|
|
1177
1178
|
setIsOpen(true);
|
|
1178
1179
|
_onClick === null || _onClick === void 0 ? void 0 : _onClick(event);
|
|
1179
1180
|
},
|
|
1180
|
-
|
|
1181
|
-
|
|
1181
|
+
className: clsx(styles.root, className, !disableUnderline && visibility === 'invisible' && styles.truncated),
|
|
1182
|
+
children: [children, !!children && /*#__PURE__*/jsx("span", {
|
|
1183
|
+
ref: ref,
|
|
1184
|
+
className: styles.sentinel
|
|
1182
1185
|
})]
|
|
1183
1186
|
}))
|
|
1184
1187
|
}));
|
|
@@ -1198,18 +1201,29 @@ function useUID(defaultID) {
|
|
|
1198
1201
|
}
|
|
1199
1202
|
|
|
1200
1203
|
var _excluded$9 = ["size"];
|
|
1201
|
-
|
|
1202
|
-
|
|
1203
|
-
slot: 'Root'
|
|
1204
|
-
})({
|
|
1205
|
-
display: 'flex',
|
|
1206
|
-
alignItems: 'center'
|
|
1207
|
-
});
|
|
1208
|
-
var DescriptionListItemIcon = /*#__PURE__*/styled$1('div')(_ref => {
|
|
1209
|
-
var {
|
|
1210
|
-
theme
|
|
1211
|
-
} = _ref;
|
|
1204
|
+
|
|
1205
|
+
function sizeVariant(theme, mobileSpacing, desktopSpacing) {
|
|
1212
1206
|
return {
|
|
1207
|
+
'& > $list, & > $item': {
|
|
1208
|
+
'&:not(:last-child)': {
|
|
1209
|
+
paddingBottom: theme.spacing(mobileSpacing),
|
|
1210
|
+
[theme.breakpoints.up('sm')]: {
|
|
1211
|
+
paddingBottom: theme.spacing(desktopSpacing)
|
|
1212
|
+
}
|
|
1213
|
+
}
|
|
1214
|
+
}
|
|
1215
|
+
};
|
|
1216
|
+
}
|
|
1217
|
+
|
|
1218
|
+
var useStyles$5 = /*#__PURE__*/makeStyles(theme => ({
|
|
1219
|
+
list: sizeVariant(theme, 2, 1),
|
|
1220
|
+
listSmall: sizeVariant(theme, 1, 0.5),
|
|
1221
|
+
listLarge: sizeVariant(theme, 3, 2),
|
|
1222
|
+
item: {
|
|
1223
|
+
display: 'flex',
|
|
1224
|
+
alignItems: 'center'
|
|
1225
|
+
},
|
|
1226
|
+
icon: {
|
|
1213
1227
|
display: 'inline-flex',
|
|
1214
1228
|
marginRight: theme.spacing(1),
|
|
1215
1229
|
'& > .MuiSvgIcon-root': {
|
|
@@ -1219,11 +1233,33 @@ var DescriptionListItemIcon = /*#__PURE__*/styled$1('div')(_ref => {
|
|
|
1219
1233
|
fontSize: theme.spacing(2)
|
|
1220
1234
|
}
|
|
1221
1235
|
}
|
|
1222
|
-
}
|
|
1236
|
+
}
|
|
1237
|
+
}), {
|
|
1238
|
+
name: 'SD-DescriptionList'
|
|
1239
|
+
}); //
|
|
1240
|
+
// DescriptionList
|
|
1241
|
+
//
|
|
1242
|
+
|
|
1243
|
+
var DescriptionList = /*#__PURE__*/forwardRef((_ref, ref) => {
|
|
1244
|
+
var {
|
|
1245
|
+
size
|
|
1246
|
+
} = _ref,
|
|
1247
|
+
props = _objectWithoutProperties(_ref, _excluded$9);
|
|
1248
|
+
|
|
1249
|
+
var styles = useStyles$5();
|
|
1250
|
+
return /*#__PURE__*/jsx("div", _objectSpread(_objectSpread({}, props), {}, {
|
|
1251
|
+
ref: ref,
|
|
1252
|
+
"data-size": size,
|
|
1253
|
+
className: clsx(styles.list, {
|
|
1254
|
+
'small': styles.listSmall,
|
|
1255
|
+
'large': styles.listLarge
|
|
1256
|
+
}[size])
|
|
1257
|
+
}));
|
|
1223
1258
|
}); //
|
|
1224
1259
|
// DescriptionListItem
|
|
1225
1260
|
//
|
|
1226
1261
|
|
|
1262
|
+
if (process.env.NODE_ENV !== "production") DescriptionList.displayName = "DescriptionList";
|
|
1227
1263
|
var DescriptionListItem = /*#__PURE__*/forwardRef((_ref2, ref) => {
|
|
1228
1264
|
var _ref3, _contentTypographyPro, _contentTypographyPro2;
|
|
1229
1265
|
|
|
@@ -1236,12 +1272,15 @@ var DescriptionListItem = /*#__PURE__*/forwardRef((_ref2, ref) => {
|
|
|
1236
1272
|
contentTypographyProps,
|
|
1237
1273
|
fallback
|
|
1238
1274
|
} = _ref2;
|
|
1275
|
+
var styles = useStyles$5();
|
|
1239
1276
|
var labelID = useUID(labelTypographyProps === null || labelTypographyProps === void 0 ? void 0 : labelTypographyProps.id);
|
|
1240
1277
|
var shouldRenderFallback = isEmptyReactNode(content);
|
|
1241
|
-
return /*#__PURE__*/jsxs(
|
|
1278
|
+
return /*#__PURE__*/jsxs("div", {
|
|
1242
1279
|
ref: ref,
|
|
1280
|
+
className: styles.item,
|
|
1243
1281
|
"aria-labelledby": label != null ? labelID : undefined,
|
|
1244
|
-
children: [!!icon && /*#__PURE__*/jsx(
|
|
1282
|
+
children: [!!icon && /*#__PURE__*/jsx("div", {
|
|
1283
|
+
className: styles.icon,
|
|
1245
1284
|
children: icon
|
|
1246
1285
|
}), /*#__PURE__*/jsxs(OverflowText, _objectSpread(_objectSpread({}, contentTypographyProps), {}, {
|
|
1247
1286
|
component: "span",
|
|
@@ -1258,72 +1297,26 @@ var DescriptionListItem = /*#__PURE__*/forwardRef((_ref2, ref) => {
|
|
|
1258
1297
|
})), label != null && ' ', !shouldRenderFallback ? content : fallback]
|
|
1259
1298
|
}))]
|
|
1260
1299
|
});
|
|
1261
|
-
}); //
|
|
1262
|
-
// DescriptionList
|
|
1263
|
-
//
|
|
1264
|
-
|
|
1265
|
-
if (process.env.NODE_ENV !== "production") DescriptionListItem.displayName = "DescriptionListItem";
|
|
1266
|
-
var DescriptionListRoot = /*#__PURE__*/styled$1('div', {
|
|
1267
|
-
name: 'SD-DescriptionList',
|
|
1268
|
-
slot: 'Root'
|
|
1269
|
-
})(_ref4 => {
|
|
1270
|
-
var {
|
|
1271
|
-
theme
|
|
1272
|
-
} = _ref4;
|
|
1273
|
-
return _objectSpread(_objectSpread({}, sizeVariant(theme, 2, 1)), {}, {
|
|
1274
|
-
'&[data-size="small"]': sizeVariant(theme, 1, 0.5),
|
|
1275
|
-
'&[data-size="large"]': sizeVariant(theme, 3, 2)
|
|
1276
|
-
});
|
|
1277
1300
|
});
|
|
1301
|
+
if (process.env.NODE_ENV !== "production") DescriptionListItem.displayName = "DescriptionListItem";
|
|
1278
1302
|
|
|
1279
|
-
|
|
1280
|
-
|
|
1281
|
-
|
|
1282
|
-
|
|
1283
|
-
|
|
1284
|
-
|
|
1285
|
-
|
|
1286
|
-
|
|
1303
|
+
var _excluded$a = ["children", "className"];
|
|
1304
|
+
var useStyles$6 = /*#__PURE__*/makeStyles(theme => ({
|
|
1305
|
+
appBar: {
|
|
1306
|
+
'&&': {
|
|
1307
|
+
bottom: 0,
|
|
1308
|
+
top: 'auto',
|
|
1309
|
+
borderLeft: 'none',
|
|
1310
|
+
borderRight: 'none',
|
|
1311
|
+
borderBottom: 'none',
|
|
1312
|
+
transition: theme.transitions.create(['border-color']),
|
|
1313
|
+
'&:not($appBarSticky)': {
|
|
1314
|
+
borderTopColor: Color.Transparent
|
|
1287
1315
|
}
|
|
1288
1316
|
}
|
|
1289
|
-
}
|
|
1290
|
-
}
|
|
1291
|
-
|
|
1292
|
-
var DescriptionList = /*#__PURE__*/forwardRef((_ref5, ref) => {
|
|
1293
|
-
var {
|
|
1294
|
-
size
|
|
1295
|
-
} = _ref5,
|
|
1296
|
-
props = _objectWithoutProperties(_ref5, _excluded$9);
|
|
1297
|
-
|
|
1298
|
-
return /*#__PURE__*/jsx(DescriptionListRoot, _objectSpread(_objectSpread({}, props), {}, {
|
|
1299
|
-
ref: ref,
|
|
1300
|
-
"data-size": size
|
|
1301
|
-
}));
|
|
1302
|
-
});
|
|
1303
|
-
if (process.env.NODE_ENV !== "production") DescriptionList.displayName = "DescriptionList";
|
|
1304
|
-
|
|
1305
|
-
var _excluded$a = ["children"];
|
|
1306
|
-
var StyledAppBar = /*#__PURE__*/styled$1(AppBar)(_ref => {
|
|
1307
|
-
var {
|
|
1308
|
-
theme
|
|
1309
|
-
} = _ref;
|
|
1310
|
-
return {
|
|
1311
|
-
bottom: 0,
|
|
1312
|
-
top: 'auto',
|
|
1313
|
-
borderLeft: 'none',
|
|
1314
|
-
borderRight: 'none',
|
|
1315
|
-
borderBottom: 'none',
|
|
1316
|
-
transition: theme.transitions.create(['border-color']),
|
|
1317
|
-
'&[data-sticky="false"]': {
|
|
1318
|
-
borderTopColor: Color.Transparent
|
|
1319
|
-
}
|
|
1320
|
-
};
|
|
1321
|
-
});
|
|
1322
|
-
var StyledToolbar = /*#__PURE__*/styled$1(Toolbar)(_ref2 => {
|
|
1323
|
-
var {
|
|
1324
|
-
theme
|
|
1325
|
-
} = _ref2;
|
|
1326
|
-
return {
|
|
1317
|
+
},
|
|
1318
|
+
appBarSticky: {},
|
|
1319
|
+
toolbar: {
|
|
1327
1320
|
'&.MuiToolbar-gutters': {
|
|
1328
1321
|
paddingLeft: theme.spacing(3),
|
|
1329
1322
|
paddingRight: theme.spacing(3),
|
|
@@ -1332,26 +1325,31 @@ var StyledToolbar = /*#__PURE__*/styled$1(Toolbar)(_ref2 => {
|
|
|
1332
1325
|
paddingRight: theme.spacing(4)
|
|
1333
1326
|
}
|
|
1334
1327
|
}
|
|
1335
|
-
}
|
|
1328
|
+
}
|
|
1329
|
+
}), {
|
|
1330
|
+
name: 'SD-DrawerActions'
|
|
1336
1331
|
});
|
|
1337
|
-
var DrawerActions = /*#__PURE__*/forwardRef((
|
|
1332
|
+
var DrawerActions = /*#__PURE__*/forwardRef((_ref, appBarRef) => {
|
|
1338
1333
|
var {
|
|
1339
|
-
children
|
|
1340
|
-
|
|
1341
|
-
|
|
1334
|
+
children,
|
|
1335
|
+
className
|
|
1336
|
+
} = _ref,
|
|
1337
|
+
props = _objectWithoutProperties(_ref, _excluded$a);
|
|
1342
1338
|
|
|
1339
|
+
var styles = useStyles$6();
|
|
1343
1340
|
return /*#__PURE__*/jsx(VisibilityObserver, {
|
|
1344
|
-
render:
|
|
1341
|
+
render: _ref2 => {
|
|
1345
1342
|
var {
|
|
1346
1343
|
ref,
|
|
1347
1344
|
visibility
|
|
1348
|
-
} =
|
|
1345
|
+
} = _ref2;
|
|
1349
1346
|
return /*#__PURE__*/jsxs(Fragment, {
|
|
1350
|
-
children: [/*#__PURE__*/jsx(
|
|
1347
|
+
children: [/*#__PURE__*/jsx(AppBar, _objectSpread(_objectSpread({}, props), {}, {
|
|
1351
1348
|
ref: appBarRef,
|
|
1352
1349
|
position: "sticky",
|
|
1353
|
-
|
|
1354
|
-
children: /*#__PURE__*/jsx(
|
|
1350
|
+
className: clsx(className, styles.appBar, visibility === 'invisible' && styles.appBarSticky),
|
|
1351
|
+
children: /*#__PURE__*/jsx(Toolbar, {
|
|
1352
|
+
className: styles.toolbar,
|
|
1355
1353
|
children: children
|
|
1356
1354
|
})
|
|
1357
1355
|
})), /*#__PURE__*/jsx("div", {
|
|
@@ -1363,20 +1361,33 @@ var DrawerActions = /*#__PURE__*/forwardRef((_ref3, appBarRef) => {
|
|
|
1363
1361
|
});
|
|
1364
1362
|
if (process.env.NODE_ENV !== "production") DrawerActions.displayName = "DrawerActions";
|
|
1365
1363
|
|
|
1366
|
-
var
|
|
1367
|
-
|
|
1368
|
-
|
|
1369
|
-
var {
|
|
1370
|
-
theme
|
|
1371
|
-
} = _ref;
|
|
1372
|
-
return {
|
|
1364
|
+
var _excluded$b = ["className"];
|
|
1365
|
+
var useStyles$7 = /*#__PURE__*/makeStyles(theme => ({
|
|
1366
|
+
root: {
|
|
1373
1367
|
maxWidth: '100%',
|
|
1374
1368
|
padding: theme.spacing(2, 3),
|
|
1375
1369
|
[theme.breakpoints.up('md')]: {
|
|
1376
1370
|
padding: theme.spacing(2, 4)
|
|
1377
1371
|
}
|
|
1378
|
-
}
|
|
1372
|
+
}
|
|
1373
|
+
}), {
|
|
1374
|
+
name: 'SD-DrawerContent'
|
|
1375
|
+
});
|
|
1376
|
+
var DrawerContent = /*#__PURE__*/forwardRef((_ref, ref) => {
|
|
1377
|
+
var {
|
|
1378
|
+
className
|
|
1379
|
+
} = _ref,
|
|
1380
|
+
props = _objectWithoutProperties(_ref, _excluded$b);
|
|
1381
|
+
|
|
1382
|
+
var styles = useStyles$7();
|
|
1383
|
+
return /*#__PURE__*/jsx("div", _objectSpread(_objectSpread({}, props), {}, {
|
|
1384
|
+
ref: ref,
|
|
1385
|
+
className: clsx(styles.root, className)
|
|
1386
|
+
}));
|
|
1379
1387
|
});
|
|
1388
|
+
if (process.env.NODE_ENV !== "production") DrawerContent.displayName = "DrawerContent";
|
|
1389
|
+
|
|
1390
|
+
var _excluded$c = ["className"];
|
|
1380
1391
|
|
|
1381
1392
|
function listItemMixins(theme, space) {
|
|
1382
1393
|
return {
|
|
@@ -1396,37 +1407,45 @@ function listItemMixins(theme, space) {
|
|
|
1396
1407
|
};
|
|
1397
1408
|
}
|
|
1398
1409
|
|
|
1399
|
-
var
|
|
1400
|
-
|
|
1401
|
-
theme
|
|
1402
|
-
} = _ref;
|
|
1403
|
-
return _objectSpread(_objectSpread({
|
|
1410
|
+
var useStyles$8 = /*#__PURE__*/makeStyles(theme => ({
|
|
1411
|
+
root: _objectSpread(_objectSpread({
|
|
1404
1412
|
maxWidth: '100%'
|
|
1405
1413
|
}, listItemMixins(theme, 3)), {}, {
|
|
1406
1414
|
[theme.breakpoints.up('md')]: _objectSpread({}, listItemMixins(theme, 4))
|
|
1407
|
-
})
|
|
1415
|
+
})
|
|
1416
|
+
}), {
|
|
1417
|
+
name: 'SD-DrawerList'
|
|
1408
1418
|
});
|
|
1409
|
-
|
|
1410
|
-
var _excluded$b = ["title", "titleTypographyProps", "subtitle", "subtitleTypographyProps", "startAction", "endAction"];
|
|
1411
|
-
var StyledAppBar$1 = /*#__PURE__*/styled$1(AppBar)(_ref => {
|
|
1419
|
+
var DrawerList = /*#__PURE__*/forwardRef((_ref, ref) => {
|
|
1412
1420
|
var {
|
|
1413
|
-
|
|
1414
|
-
} = _ref
|
|
1415
|
-
|
|
1416
|
-
|
|
1417
|
-
|
|
1418
|
-
|
|
1419
|
-
|
|
1420
|
-
|
|
1421
|
-
|
|
1422
|
-
|
|
1423
|
-
};
|
|
1421
|
+
className
|
|
1422
|
+
} = _ref,
|
|
1423
|
+
props = _objectWithoutProperties(_ref, _excluded$c);
|
|
1424
|
+
|
|
1425
|
+
var styles = useStyles$8();
|
|
1426
|
+
return /*#__PURE__*/jsx(List, _objectSpread(_objectSpread({}, props), {}, {
|
|
1427
|
+
ref: ref,
|
|
1428
|
+
component: "div",
|
|
1429
|
+
className: clsx(className, styles.root)
|
|
1430
|
+
}));
|
|
1424
1431
|
});
|
|
1425
|
-
|
|
1426
|
-
|
|
1427
|
-
|
|
1428
|
-
|
|
1429
|
-
|
|
1432
|
+
if (process.env.NODE_ENV !== "production") DrawerList.displayName = "DrawerList";
|
|
1433
|
+
|
|
1434
|
+
var _excluded$d = ["title", "titleTypographyProps", "subtitle", "subtitleTypographyProps", "startAction", "endAction", "className"];
|
|
1435
|
+
var useStyles$9 = /*#__PURE__*/makeStyles(theme => ({
|
|
1436
|
+
appBar: {
|
|
1437
|
+
'&&': {
|
|
1438
|
+
borderTop: 'none',
|
|
1439
|
+
borderLeft: 'none',
|
|
1440
|
+
borderRight: 'none',
|
|
1441
|
+
transition: theme.transitions.create(['border-color']),
|
|
1442
|
+
'&:not($appBarSticky)': {
|
|
1443
|
+
borderBottomColor: Color.Transparent
|
|
1444
|
+
}
|
|
1445
|
+
}
|
|
1446
|
+
},
|
|
1447
|
+
appBarSticky: {},
|
|
1448
|
+
toolbar: {
|
|
1430
1449
|
'&.MuiToolbar-gutters': {
|
|
1431
1450
|
paddingLeft: theme.spacing(3),
|
|
1432
1451
|
paddingRight: theme.spacing(3),
|
|
@@ -1435,60 +1454,56 @@ var StyledToolbar$1 = /*#__PURE__*/styled$1(Toolbar)(_ref2 => {
|
|
|
1435
1454
|
paddingRight: theme.spacing(4)
|
|
1436
1455
|
}
|
|
1437
1456
|
}
|
|
1438
|
-
}
|
|
1439
|
-
|
|
1440
|
-
var StartAction = /*#__PURE__*/styled$1(Grid)(_ref3 => {
|
|
1441
|
-
var {
|
|
1442
|
-
theme
|
|
1443
|
-
} = _ref3;
|
|
1444
|
-
return {
|
|
1457
|
+
},
|
|
1458
|
+
startAction: {
|
|
1445
1459
|
marginRight: theme.spacing(0.5),
|
|
1446
1460
|
'& .MuiIconButton-edgeStart': {
|
|
1447
1461
|
marginLeft: theme.spacing(-2)
|
|
1448
1462
|
}
|
|
1449
|
-
}
|
|
1450
|
-
|
|
1451
|
-
var EndAction = /*#__PURE__*/styled$1(Grid)(_ref4 => {
|
|
1452
|
-
var {
|
|
1453
|
-
theme
|
|
1454
|
-
} = _ref4;
|
|
1455
|
-
return {
|
|
1463
|
+
},
|
|
1464
|
+
endAction: {
|
|
1456
1465
|
marginLeft: theme.spacing(0.5),
|
|
1457
1466
|
'& .MuiIconButton-edgeEnd': {
|
|
1458
1467
|
marginRight: theme.spacing(-2)
|
|
1459
1468
|
}
|
|
1460
|
-
}
|
|
1469
|
+
}
|
|
1470
|
+
}), {
|
|
1471
|
+
name: 'SD-DrawerTitle'
|
|
1461
1472
|
});
|
|
1462
|
-
var DrawerTitle = /*#__PURE__*/forwardRef((
|
|
1473
|
+
var DrawerTitle = /*#__PURE__*/forwardRef((_ref, appBarRef) => {
|
|
1463
1474
|
var {
|
|
1464
1475
|
title,
|
|
1465
1476
|
titleTypographyProps,
|
|
1466
1477
|
subtitle,
|
|
1467
1478
|
subtitleTypographyProps,
|
|
1468
1479
|
startAction,
|
|
1469
|
-
endAction
|
|
1470
|
-
|
|
1471
|
-
|
|
1480
|
+
endAction,
|
|
1481
|
+
className
|
|
1482
|
+
} = _ref,
|
|
1483
|
+
props = _objectWithoutProperties(_ref, _excluded$d);
|
|
1472
1484
|
|
|
1485
|
+
var styles = useStyles$9();
|
|
1473
1486
|
return /*#__PURE__*/jsx(VisibilityObserver, {
|
|
1474
|
-
render:
|
|
1487
|
+
render: _ref2 => {
|
|
1475
1488
|
var {
|
|
1476
1489
|
ref,
|
|
1477
1490
|
visibility
|
|
1478
|
-
} =
|
|
1491
|
+
} = _ref2;
|
|
1479
1492
|
return /*#__PURE__*/jsxs(Fragment, {
|
|
1480
1493
|
children: [/*#__PURE__*/jsx("div", {
|
|
1481
1494
|
ref: ref
|
|
1482
|
-
}), /*#__PURE__*/jsx(
|
|
1495
|
+
}), /*#__PURE__*/jsx(AppBar, _objectSpread(_objectSpread({}, props), {}, {
|
|
1483
1496
|
ref: appBarRef,
|
|
1484
1497
|
position: "sticky",
|
|
1485
|
-
|
|
1486
|
-
children: /*#__PURE__*/jsx(
|
|
1498
|
+
className: clsx(styles.appBar, className, visibility === 'invisible' && styles.appBarSticky),
|
|
1499
|
+
children: /*#__PURE__*/jsx(Toolbar, {
|
|
1500
|
+
className: styles.toolbar,
|
|
1487
1501
|
children: /*#__PURE__*/jsxs(Grid, {
|
|
1488
1502
|
container: true,
|
|
1489
1503
|
alignItems: "center",
|
|
1490
|
-
children: [!!startAction && /*#__PURE__*/jsx(
|
|
1504
|
+
children: [!!startAction && /*#__PURE__*/jsx(Grid, {
|
|
1491
1505
|
item: true,
|
|
1506
|
+
className: styles.startAction,
|
|
1492
1507
|
children: startAction
|
|
1493
1508
|
}), /*#__PURE__*/jsxs(Grid, {
|
|
1494
1509
|
item: true,
|
|
@@ -1505,8 +1520,9 @@ var DrawerTitle = /*#__PURE__*/forwardRef((_ref5, appBarRef) => {
|
|
|
1505
1520
|
}, subtitleTypographyProps), {}, {
|
|
1506
1521
|
children: subtitle
|
|
1507
1522
|
}))]
|
|
1508
|
-
}), !!endAction && /*#__PURE__*/jsx(
|
|
1523
|
+
}), !!endAction && /*#__PURE__*/jsx(Grid, {
|
|
1509
1524
|
item: true,
|
|
1525
|
+
className: styles.endAction,
|
|
1510
1526
|
children: endAction
|
|
1511
1527
|
})]
|
|
1512
1528
|
})
|
|
@@ -1518,7 +1534,7 @@ var DrawerTitle = /*#__PURE__*/forwardRef((_ref5, appBarRef) => {
|
|
|
1518
1534
|
});
|
|
1519
1535
|
if (process.env.NODE_ENV !== "production") DrawerTitle.displayName = "DrawerTitle";
|
|
1520
1536
|
|
|
1521
|
-
var _excluded$
|
|
1537
|
+
var _excluded$e = ["children", "alignItems"];
|
|
1522
1538
|
|
|
1523
1539
|
/**
|
|
1524
1540
|
* @deprecated in favor of `Stack`.
|
|
@@ -1528,7 +1544,7 @@ var GridStack = /*#__PURE__*/forwardRef((_ref, ref) => {
|
|
|
1528
1544
|
children,
|
|
1529
1545
|
alignItems = 'stretch'
|
|
1530
1546
|
} = _ref,
|
|
1531
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
1547
|
+
props = _objectWithoutProperties(_ref, _excluded$e);
|
|
1532
1548
|
|
|
1533
1549
|
var items = Children.toArray(children);
|
|
1534
1550
|
return /*#__PURE__*/jsx(Grid, _objectSpread(_objectSpread({}, props), {}, {
|
|
@@ -1547,7 +1563,7 @@ var GridStack = /*#__PURE__*/forwardRef((_ref, ref) => {
|
|
|
1547
1563
|
});
|
|
1548
1564
|
if (process.env.NODE_ENV !== "production") GridStack.displayName = "GridStack";
|
|
1549
1565
|
|
|
1550
|
-
var _excluded$
|
|
1566
|
+
var _excluded$f = ["children", "wrap", "justify", "alignItems"];
|
|
1551
1567
|
|
|
1552
1568
|
/**
|
|
1553
1569
|
* @deprecated in favor of `Inline` component.
|
|
@@ -1559,14 +1575,14 @@ var InlineGrid = /*#__PURE__*/forwardRef((_ref, ref) => {
|
|
|
1559
1575
|
justify = 'flex-start',
|
|
1560
1576
|
alignItems = 'flex-start'
|
|
1561
1577
|
} = _ref,
|
|
1562
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
1578
|
+
props = _objectWithoutProperties(_ref, _excluded$f);
|
|
1563
1579
|
|
|
1564
1580
|
var items = Children.toArray(children);
|
|
1565
1581
|
return /*#__PURE__*/jsx(Grid, _objectSpread(_objectSpread({}, props), {}, {
|
|
1566
1582
|
ref: ref,
|
|
1567
1583
|
wrap: wrap,
|
|
1568
1584
|
container: true,
|
|
1569
|
-
|
|
1585
|
+
justify: justify,
|
|
1570
1586
|
alignItems: alignItems,
|
|
1571
1587
|
children: items.map((item, idx) => /*#__PURE__*/jsx(Grid, {
|
|
1572
1588
|
item: true,
|
|
@@ -1577,33 +1593,30 @@ var InlineGrid = /*#__PURE__*/forwardRef((_ref, ref) => {
|
|
|
1577
1593
|
});
|
|
1578
1594
|
if (process.env.NODE_ENV !== "production") InlineGrid.displayName = "InlineGrid";
|
|
1579
1595
|
|
|
1580
|
-
var _excluded$
|
|
1581
|
-
|
|
1582
|
-
|
|
1583
|
-
|
|
1584
|
-
|
|
1585
|
-
return {
|
|
1586
|
-
padding: theme.spacing(2)
|
|
1587
|
-
};
|
|
1588
|
-
});
|
|
1589
|
-
var StyledCard = /*#__PURE__*/styled$1(Card)(_ref2 => {
|
|
1590
|
-
var {
|
|
1591
|
-
theme
|
|
1592
|
-
} = _ref2;
|
|
1593
|
-
return {
|
|
1594
|
-
'&[data-full-width="true"]': {
|
|
1596
|
+
var _excluded$g = ["size", "square", "classes", "children", "className", "CardContentProps"],
|
|
1597
|
+
_excluded2$2 = ["content", "sizeLarge", "fullWidth"];
|
|
1598
|
+
var useStyles$a = /*#__PURE__*/makeStyles(theme => ({
|
|
1599
|
+
root: {
|
|
1600
|
+
'&$fullWidth': {
|
|
1595
1601
|
borderRadius: 0,
|
|
1596
1602
|
borderLeftWidth: 0,
|
|
1597
1603
|
borderRightWidth: 0
|
|
1598
|
-
}
|
|
1599
|
-
|
|
1604
|
+
}
|
|
1605
|
+
},
|
|
1606
|
+
fullWidth: {},
|
|
1607
|
+
sizeLarge: {},
|
|
1608
|
+
content: {
|
|
1609
|
+
padding: theme.spacing(2),
|
|
1610
|
+
'$sizeLarge > &': {
|
|
1600
1611
|
[theme.breakpoints.up('sm')]: {
|
|
1601
1612
|
padding: theme.spacing(3)
|
|
1602
1613
|
}
|
|
1603
1614
|
}
|
|
1604
|
-
}
|
|
1615
|
+
}
|
|
1616
|
+
}), {
|
|
1617
|
+
name: 'SD-InfoCard'
|
|
1605
1618
|
});
|
|
1606
|
-
var InfoCard = /*#__PURE__*/forwardRef((
|
|
1619
|
+
var InfoCard = /*#__PURE__*/forwardRef((_ref, _ref2) => {
|
|
1607
1620
|
var {
|
|
1608
1621
|
size,
|
|
1609
1622
|
square,
|
|
@@ -1611,20 +1624,31 @@ var InfoCard = /*#__PURE__*/forwardRef((_ref3, _ref4) => {
|
|
|
1611
1624
|
children,
|
|
1612
1625
|
className,
|
|
1613
1626
|
CardContentProps: cardContentProps = {}
|
|
1614
|
-
} =
|
|
1615
|
-
props = _objectWithoutProperties(
|
|
1627
|
+
} = _ref,
|
|
1628
|
+
props = _objectWithoutProperties(_ref, _excluded$g);
|
|
1629
|
+
|
|
1630
|
+
var _useStyles = useStyles$a({
|
|
1631
|
+
classes
|
|
1632
|
+
}),
|
|
1633
|
+
{
|
|
1634
|
+
content: contentClassName,
|
|
1635
|
+
sizeLarge: sizeLargeClassName,
|
|
1636
|
+
fullWidth: fullWidthClassName
|
|
1637
|
+
} = _useStyles,
|
|
1638
|
+
styles = _objectWithoutProperties(_useStyles, _excluded2$2);
|
|
1616
1639
|
|
|
1617
1640
|
var [rootNode, setRootNode] = useState(null);
|
|
1618
1641
|
var clientRect = rootNode === null || rootNode === void 0 ? void 0 : rootNode.getBoundingClientRect();
|
|
1619
1642
|
var isFullWidth = (clientRect === null || clientRect === void 0 ? void 0 : clientRect.width) === window.innerWidth;
|
|
1620
|
-
return /*#__PURE__*/jsx(
|
|
1643
|
+
return /*#__PURE__*/jsx(Card, _objectSpread(_objectSpread({}, props), {}, {
|
|
1621
1644
|
ref: node => {
|
|
1622
|
-
assignRef(
|
|
1645
|
+
assignRef(_ref2, node);
|
|
1623
1646
|
setRootNode(node);
|
|
1624
1647
|
},
|
|
1625
|
-
|
|
1626
|
-
|
|
1627
|
-
children: /*#__PURE__*/jsx(
|
|
1648
|
+
classes: styles,
|
|
1649
|
+
className: clsx(className, isFullWidth && fullWidthClassName, size === 'large' && sizeLargeClassName),
|
|
1650
|
+
children: /*#__PURE__*/jsx(CardContent, _objectSpread(_objectSpread({}, cardContentProps), {}, {
|
|
1651
|
+
className: clsx(cardContentProps.className, contentClassName),
|
|
1628
1652
|
children: children
|
|
1629
1653
|
}))
|
|
1630
1654
|
}));
|
|
@@ -1680,8 +1704,8 @@ var Inline = /*#__PURE__*/forwardRef((_ref2, ref) => {
|
|
|
1680
1704
|
});
|
|
1681
1705
|
if (process.env.NODE_ENV !== "production") Inline.displayName = "Inline";
|
|
1682
1706
|
|
|
1683
|
-
var _excluded$
|
|
1684
|
-
_excluded2$
|
|
1707
|
+
var _excluded$h = ["value", "inputRef", "onChange", "isNumericString", "thousandSeparator", "disableValueParsing"],
|
|
1708
|
+
_excluded2$3 = ["id", "InputProps"];
|
|
1685
1709
|
|
|
1686
1710
|
function NumberInputComponent(_ref) {
|
|
1687
1711
|
var {
|
|
@@ -1692,7 +1716,7 @@ function NumberInputComponent(_ref) {
|
|
|
1692
1716
|
thousandSeparator = true,
|
|
1693
1717
|
disableValueParsing
|
|
1694
1718
|
} = _ref,
|
|
1695
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
1719
|
+
props = _objectWithoutProperties(_ref, _excluded$h);
|
|
1696
1720
|
|
|
1697
1721
|
return /*#__PURE__*/jsx(NumberFormat, _objectSpread(_objectSpread({}, props), {}, {
|
|
1698
1722
|
value: value !== null && value !== void 0 ? value : '',
|
|
@@ -1718,7 +1742,7 @@ var NumberField = /*#__PURE__*/forwardRef(_ref2 => {
|
|
|
1718
1742
|
id,
|
|
1719
1743
|
InputProps
|
|
1720
1744
|
} = _ref2,
|
|
1721
|
-
props = _objectWithoutProperties(_ref2, _excluded2$
|
|
1745
|
+
props = _objectWithoutProperties(_ref2, _excluded2$3);
|
|
1722
1746
|
|
|
1723
1747
|
var uid = useUID(id);
|
|
1724
1748
|
return /*#__PURE__*/jsx(TextField, _objectSpread(_objectSpread({}, props), {}, {
|
|
@@ -1731,7 +1755,7 @@ var NumberField = /*#__PURE__*/forwardRef(_ref2 => {
|
|
|
1731
1755
|
if (process.env.NODE_ENV !== "production") NumberField.displayName = "NumberField";
|
|
1732
1756
|
NumberField.displayName = 'NumberField';
|
|
1733
1757
|
|
|
1734
|
-
var _excluded$
|
|
1758
|
+
var _excluded$i = ["label", "error", "checked", "onBlur", "onChange", "helperText", "FormControlLabelProps"];
|
|
1735
1759
|
var RadioField = /*#__PURE__*/forwardRef((_ref, ref) => {
|
|
1736
1760
|
var {
|
|
1737
1761
|
label,
|
|
@@ -1742,7 +1766,7 @@ var RadioField = /*#__PURE__*/forwardRef((_ref, ref) => {
|
|
|
1742
1766
|
helperText,
|
|
1743
1767
|
FormControlLabelProps: formControlLabelProps
|
|
1744
1768
|
} = _ref,
|
|
1745
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
1769
|
+
props = _objectWithoutProperties(_ref, _excluded$i);
|
|
1746
1770
|
|
|
1747
1771
|
return /*#__PURE__*/jsxs(FormControl, {
|
|
1748
1772
|
error: error,
|
|
@@ -1762,7 +1786,7 @@ var RadioField = /*#__PURE__*/forwardRef((_ref, ref) => {
|
|
|
1762
1786
|
});
|
|
1763
1787
|
if (process.env.NODE_ENV !== "production") RadioField.displayName = "RadioField";
|
|
1764
1788
|
|
|
1765
|
-
var _excluded$
|
|
1789
|
+
var _excluded$j = ["name", "value", "onChange", "RadioGroupProps", "label", "FormLabelProps", "helperText", "FormHelperTextProps", "children"];
|
|
1766
1790
|
var RadioGroupField = /*#__PURE__*/forwardRef((_ref, ref) => {
|
|
1767
1791
|
var {
|
|
1768
1792
|
name,
|
|
@@ -1775,7 +1799,7 @@ var RadioGroupField = /*#__PURE__*/forwardRef((_ref, ref) => {
|
|
|
1775
1799
|
FormHelperTextProps: formHelperTextProps,
|
|
1776
1800
|
children
|
|
1777
1801
|
} = _ref,
|
|
1778
|
-
formControlProps = _objectWithoutProperties(_ref, _excluded$
|
|
1802
|
+
formControlProps = _objectWithoutProperties(_ref, _excluded$j);
|
|
1779
1803
|
|
|
1780
1804
|
return /*#__PURE__*/jsxs(FormControl, _objectSpread(_objectSpread({}, formControlProps), {}, {
|
|
1781
1805
|
hiddenLabel: !label,
|
|
@@ -1825,9 +1849,9 @@ function useMinBreakpoint(minBreakpoint) {
|
|
|
1825
1849
|
return minBreakpointIDX < breakpointIDX;
|
|
1826
1850
|
}
|
|
1827
1851
|
|
|
1828
|
-
var _excluded$
|
|
1829
|
-
_excluded2$
|
|
1830
|
-
var useStyles$
|
|
1852
|
+
var _excluded$k = ["action", "children", "onClose", "className", "classes", "variant"],
|
|
1853
|
+
_excluded2$4 = ["icon", "closeButton", "variantError", "variantSuccess"];
|
|
1854
|
+
var useStyles$b = /*#__PURE__*/makeStyles(theme => ({
|
|
1831
1855
|
root: {
|
|
1832
1856
|
color: Color.White,
|
|
1833
1857
|
backgroundColor: Color.Dark500,
|
|
@@ -1870,9 +1894,9 @@ var SnackbarContent = /*#__PURE__*/forwardRef((_ref, ref) => {
|
|
|
1870
1894
|
classes,
|
|
1871
1895
|
variant = 'default'
|
|
1872
1896
|
} = _ref,
|
|
1873
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
1897
|
+
props = _objectWithoutProperties(_ref, _excluded$k);
|
|
1874
1898
|
|
|
1875
|
-
var _useStyles = useStyles$
|
|
1899
|
+
var _useStyles = useStyles$b({
|
|
1876
1900
|
classes
|
|
1877
1901
|
}),
|
|
1878
1902
|
{
|
|
@@ -1881,7 +1905,7 @@ var SnackbarContent = /*#__PURE__*/forwardRef((_ref, ref) => {
|
|
|
1881
1905
|
variantError,
|
|
1882
1906
|
variantSuccess
|
|
1883
1907
|
} = _useStyles,
|
|
1884
|
-
styles = _objectWithoutProperties(_useStyles, _excluded2$
|
|
1908
|
+
styles = _objectWithoutProperties(_useStyles, _excluded2$4);
|
|
1885
1909
|
|
|
1886
1910
|
var Icon = variant === 'error' ? Warning : variant === 'success' ? CheckCircle : undefined;
|
|
1887
1911
|
return /*#__PURE__*/jsx(SnackbarContent$1, _objectSpread(_objectSpread({}, props), {}, {
|
|
@@ -1920,7 +1944,7 @@ var SnackbarContent = /*#__PURE__*/forwardRef((_ref, ref) => {
|
|
|
1920
1944
|
});
|
|
1921
1945
|
if (process.env.NODE_ENV !== "production") SnackbarContent.displayName = "SnackbarContent";
|
|
1922
1946
|
|
|
1923
|
-
var _excluded$
|
|
1947
|
+
var _excluded$l = ["open", "action", "variant", "onClose", "children", "ContentProps", "hasCloseButton", "TransitionComponent"];
|
|
1924
1948
|
|
|
1925
1949
|
function SlideTransition(props) {
|
|
1926
1950
|
return /*#__PURE__*/jsx(Slide, _objectSpread(_objectSpread({}, props), {}, {
|
|
@@ -1939,7 +1963,7 @@ var Snackbar = /*#__PURE__*/forwardRef((_ref, ref) => {
|
|
|
1939
1963
|
hasCloseButton = onClose != null,
|
|
1940
1964
|
TransitionComponent = SlideTransition
|
|
1941
1965
|
} = _ref,
|
|
1942
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
1966
|
+
props = _objectWithoutProperties(_ref, _excluded$l);
|
|
1943
1967
|
|
|
1944
1968
|
function handleClose(reason) {
|
|
1945
1969
|
if (reason !== 'clickaway') {
|
|
@@ -1968,7 +1992,7 @@ var Snackbar = /*#__PURE__*/forwardRef((_ref, ref) => {
|
|
|
1968
1992
|
});
|
|
1969
1993
|
if (process.env.NODE_ENV !== "production") Snackbar.displayName = "Snackbar";
|
|
1970
1994
|
|
|
1971
|
-
var _excluded$
|
|
1995
|
+
var _excluded$m = ["onClose", "variant", "key", "id", "autoHideDuration"];
|
|
1972
1996
|
|
|
1973
1997
|
function warnContext() {
|
|
1974
1998
|
// eslint-disable-next-line no-console
|
|
@@ -2014,7 +2038,7 @@ function SnackbarStackProvider(_ref2) {
|
|
|
2014
2038
|
id = String(key),
|
|
2015
2039
|
autoHideDuration = 5000
|
|
2016
2040
|
} = _ref3,
|
|
2017
|
-
props = _objectWithoutProperties(_ref3, _excluded$
|
|
2041
|
+
props = _objectWithoutProperties(_ref3, _excluded$m);
|
|
2018
2042
|
|
|
2019
2043
|
function removeSnackbar() {
|
|
2020
2044
|
setStack(prev => {
|
|
@@ -2111,8 +2135,8 @@ var Stack = /*#__PURE__*/forwardRef((_ref2, ref) => {
|
|
|
2111
2135
|
});
|
|
2112
2136
|
if (process.env.NODE_ENV !== "production") Stack.displayName = "Stack";
|
|
2113
2137
|
|
|
2114
|
-
var _excluded$
|
|
2115
|
-
var useStyles$
|
|
2138
|
+
var _excluded$n = ["color", "variant", "children", "classes", "className", "noWrap", "fontWeight", "component"];
|
|
2139
|
+
var useStyles$c = /*#__PURE__*/makeStyles(theme => ({
|
|
2116
2140
|
root: {
|
|
2117
2141
|
maxWidth: '100%',
|
|
2118
2142
|
alignItems: 'center',
|
|
@@ -2195,9 +2219,9 @@ var Tag = /*#__PURE__*/forwardRef((_ref, ref) => {
|
|
|
2195
2219
|
fontWeight = 'bold',
|
|
2196
2220
|
component = 'div'
|
|
2197
2221
|
} = _ref,
|
|
2198
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
2222
|
+
props = _objectWithoutProperties(_ref, _excluded$n);
|
|
2199
2223
|
|
|
2200
|
-
var styles = useStyles$
|
|
2224
|
+
var styles = useStyles$c({
|
|
2201
2225
|
classes
|
|
2202
2226
|
});
|
|
2203
2227
|
return /*#__PURE__*/jsx(Typography, _objectSpread(_objectSpread({}, props), {}, {
|
|
@@ -2223,28 +2247,29 @@ var Tag = /*#__PURE__*/forwardRef((_ref, ref) => {
|
|
|
2223
2247
|
if (process.env.NODE_ENV !== "production") Tag.displayName = "Tag";
|
|
2224
2248
|
|
|
2225
2249
|
function overrideAppBar(theme) {
|
|
2226
|
-
theme.
|
|
2227
|
-
|
|
2228
|
-
|
|
2229
|
-
|
|
2230
|
-
position: 'static'
|
|
2231
|
-
}
|
|
2250
|
+
theme.props.MuiAppBar = {
|
|
2251
|
+
elevation: 0,
|
|
2252
|
+
color: 'inherit',
|
|
2253
|
+
position: 'static'
|
|
2232
2254
|
};
|
|
2233
2255
|
}
|
|
2234
2256
|
|
|
2235
2257
|
function overrideAutocomplete(theme) {
|
|
2236
|
-
var sm = theme.breakpoints.up('sm');
|
|
2237
|
-
|
|
2238
|
-
|
|
2258
|
+
var sm = theme.breakpoints.up('sm'); // Remove `Object.assign` after official release of `Autocomplete`.
|
|
2259
|
+
|
|
2260
|
+
Object.assign(theme.props, {
|
|
2261
|
+
MuiAutocomplete: {
|
|
2239
2262
|
popupIcon: /*#__PURE__*/jsx(SvgIcon, {
|
|
2240
2263
|
children: /*#__PURE__*/jsx("path", {
|
|
2241
2264
|
d: "M12 16.5L6 9h12l-6 7.5z",
|
|
2242
2265
|
fill: "currentColor"
|
|
2243
2266
|
})
|
|
2244
2267
|
})
|
|
2245
|
-
}
|
|
2246
|
-
|
|
2247
|
-
|
|
2268
|
+
}
|
|
2269
|
+
});
|
|
2270
|
+
Object.assign(theme.overrides, {
|
|
2271
|
+
MuiAutocomplete: {
|
|
2272
|
+
paper: _objectSpread({}, theme.typography.body2),
|
|
2248
2273
|
tag: {
|
|
2249
2274
|
margin: '4px',
|
|
2250
2275
|
[sm]: {
|
|
@@ -2268,47 +2293,45 @@ function overrideAutocomplete(theme) {
|
|
|
2268
2293
|
inputRoot: {
|
|
2269
2294
|
'&[class*="MuiOutlinedInput-root"]': {
|
|
2270
2295
|
padding: '6px 8px',
|
|
2271
|
-
|
|
2296
|
+
'& $input': {
|
|
2272
2297
|
width: '144px',
|
|
2273
2298
|
padding: '4px'
|
|
2274
2299
|
},
|
|
2275
|
-
|
|
2276
|
-
paddingLeft:
|
|
2300
|
+
'& $input:first-child': {
|
|
2301
|
+
paddingLeft: undefined
|
|
2277
2302
|
},
|
|
2278
|
-
|
|
2303
|
+
'& $endAdornment': {
|
|
2279
2304
|
right: '12px'
|
|
2280
2305
|
},
|
|
2281
2306
|
[sm]: {
|
|
2282
2307
|
padding: theme.spacing(0.5, 0.75),
|
|
2283
|
-
|
|
2308
|
+
'& $input': {
|
|
2284
2309
|
padding: '2px'
|
|
2285
2310
|
},
|
|
2286
|
-
|
|
2311
|
+
'& $endAdornment': {
|
|
2287
2312
|
right: '8px'
|
|
2288
2313
|
}
|
|
2289
2314
|
}
|
|
2290
2315
|
}
|
|
2291
2316
|
}
|
|
2292
2317
|
}
|
|
2293
|
-
};
|
|
2318
|
+
});
|
|
2294
2319
|
}
|
|
2295
2320
|
|
|
2296
2321
|
function overrideAvatar(theme) {
|
|
2297
|
-
theme.
|
|
2298
|
-
|
|
2299
|
-
|
|
2300
|
-
|
|
2301
|
-
|
|
2302
|
-
|
|
2303
|
-
|
|
2304
|
-
|
|
2305
|
-
height: theme.spacing(4)
|
|
2306
|
-
}
|
|
2307
|
-
}),
|
|
2308
|
-
colorDefault: {
|
|
2309
|
-
color: Color.Dark300,
|
|
2310
|
-
backgroundColor: Color.Silver300
|
|
2322
|
+
theme.overrides.MuiAvatar = {
|
|
2323
|
+
root: _objectSpread(_objectSpread({}, theme.typography.h5), {}, {
|
|
2324
|
+
textTransform: 'uppercase',
|
|
2325
|
+
width: theme.spacing(5),
|
|
2326
|
+
height: theme.spacing(5),
|
|
2327
|
+
[theme.breakpoints.up('sm')]: {
|
|
2328
|
+
width: theme.spacing(4),
|
|
2329
|
+
height: theme.spacing(4)
|
|
2311
2330
|
}
|
|
2331
|
+
}),
|
|
2332
|
+
colorDefault: {
|
|
2333
|
+
color: Color.Dark300,
|
|
2334
|
+
backgroundColor: Color.Silver300
|
|
2312
2335
|
}
|
|
2313
2336
|
};
|
|
2314
2337
|
}
|
|
@@ -2321,11 +2344,9 @@ function outlineShadow() {
|
|
|
2321
2344
|
|
|
2322
2345
|
function textVariant(text, outline, background, progress) {
|
|
2323
2346
|
return {
|
|
2324
|
-
|
|
2325
|
-
|
|
2326
|
-
|
|
2327
|
-
backgroundColor: Color.Transparent
|
|
2328
|
-
},
|
|
2347
|
+
color: text,
|
|
2348
|
+
boxShadow: outlineShadow(),
|
|
2349
|
+
backgroundColor: Color.Transparent,
|
|
2329
2350
|
'&:hover': {
|
|
2330
2351
|
backgroundColor: background
|
|
2331
2352
|
},
|
|
@@ -2336,13 +2357,13 @@ function textVariant(text, outline, background, progress) {
|
|
|
2336
2357
|
backgroundColor: background,
|
|
2337
2358
|
boxShadow: outlineShadow(2, outline)
|
|
2338
2359
|
},
|
|
2339
|
-
|
|
2360
|
+
'&$disabled': {
|
|
2340
2361
|
color: outline,
|
|
2341
2362
|
boxShadow: outlineShadow(),
|
|
2342
|
-
backgroundColor: Color.Transparent
|
|
2343
|
-
|
|
2344
|
-
|
|
2345
|
-
|
|
2363
|
+
backgroundColor: Color.Transparent
|
|
2364
|
+
},
|
|
2365
|
+
'&$disabled[aria-busy="true"]': {
|
|
2366
|
+
color: progress
|
|
2346
2367
|
}
|
|
2347
2368
|
};
|
|
2348
2369
|
}
|
|
@@ -2356,11 +2377,11 @@ function outlinedVariant(staleText, staleBorder, disabledText, disabledBorder, a
|
|
|
2356
2377
|
return {
|
|
2357
2378
|
backgroundColor,
|
|
2358
2379
|
color: staleText,
|
|
2359
|
-
border:
|
|
2380
|
+
border: undefined,
|
|
2360
2381
|
boxShadow: outlinedBorder(staleBorder),
|
|
2361
2382
|
'&:hover': {
|
|
2362
2383
|
color: activeText,
|
|
2363
|
-
border:
|
|
2384
|
+
border: undefined,
|
|
2364
2385
|
backgroundColor: activeBackground,
|
|
2365
2386
|
boxShadow: outlinedBorder(activeBorder)
|
|
2366
2387
|
},
|
|
@@ -2372,13 +2393,13 @@ function outlinedVariant(staleText, staleBorder, disabledText, disabledBorder, a
|
|
|
2372
2393
|
'&:focus': {
|
|
2373
2394
|
boxShadow: outlinedBorder(activeBorder, activeOutline)
|
|
2374
2395
|
},
|
|
2375
|
-
|
|
2396
|
+
'&$disabled': {
|
|
2376
2397
|
backgroundColor,
|
|
2377
2398
|
color: disabledText,
|
|
2378
|
-
boxShadow: outlinedBorder(disabledBorder)
|
|
2379
|
-
|
|
2380
|
-
|
|
2381
|
-
|
|
2399
|
+
boxShadow: outlinedBorder(disabledBorder)
|
|
2400
|
+
},
|
|
2401
|
+
'&$disabled[aria-busy="true"]': {
|
|
2402
|
+
color: progress
|
|
2382
2403
|
}
|
|
2383
2404
|
};
|
|
2384
2405
|
}
|
|
@@ -2397,236 +2418,229 @@ function containedVariant(text, backgroundColor, outline, active, disabledText,
|
|
|
2397
2418
|
'&:focus': {
|
|
2398
2419
|
boxShadow: outlineShadow(3, outline)
|
|
2399
2420
|
},
|
|
2400
|
-
|
|
2421
|
+
'&$disabled': {
|
|
2401
2422
|
color: disabledText,
|
|
2402
2423
|
boxShadow: outlineShadow(),
|
|
2403
|
-
backgroundColor: disabledBackground
|
|
2404
|
-
["& .".concat(loadingButtonClasses.loadingIndicator)]: {
|
|
2405
|
-
color: disabledText
|
|
2406
|
-
}
|
|
2424
|
+
backgroundColor: disabledBackground
|
|
2407
2425
|
}
|
|
2408
2426
|
};
|
|
2409
2427
|
}
|
|
2410
2428
|
|
|
2411
|
-
function sizeSmall(theme) {
|
|
2412
|
-
var sm = theme.breakpoints.up('sm');
|
|
2413
|
-
return _objectSpread(_objectSpread({}, theme.typography.button), {}, {
|
|
2414
|
-
padding: theme.spacing(0.5, 3),
|
|
2415
|
-
[sm]: {
|
|
2416
|
-
padding: theme.spacing(0.25, 2)
|
|
2417
|
-
}
|
|
2418
|
-
});
|
|
2419
|
-
}
|
|
2420
|
-
|
|
2421
|
-
function sizeLarge(theme) {
|
|
2422
|
-
var sm = theme.breakpoints.up('sm');
|
|
2423
|
-
return _objectSpread(_objectSpread({}, theme.typography.button), {}, {
|
|
2424
|
-
fontSize: '18px',
|
|
2425
|
-
lineHeight: '28px',
|
|
2426
|
-
padding: theme.spacing(1.75, 8),
|
|
2427
|
-
[sm]: {
|
|
2428
|
-
fontSize: '16px',
|
|
2429
|
-
lineHeight: '24px',
|
|
2430
|
-
padding: theme.spacing(1, 4)
|
|
2431
|
-
}
|
|
2432
|
-
});
|
|
2433
|
-
}
|
|
2434
|
-
|
|
2435
2429
|
function overrideButton(theme) {
|
|
2436
2430
|
var sm = theme.breakpoints.up('sm');
|
|
2437
|
-
theme.
|
|
2438
|
-
|
|
2439
|
-
|
|
2440
|
-
|
|
2441
|
-
|
|
2442
|
-
|
|
2443
|
-
|
|
2444
|
-
|
|
2445
|
-
|
|
2446
|
-
|
|
2431
|
+
theme.props.MuiButton = {
|
|
2432
|
+
color: 'primary',
|
|
2433
|
+
variant: 'outlined',
|
|
2434
|
+
disableFocusRipple: true
|
|
2435
|
+
};
|
|
2436
|
+
theme.overrides.MuiButton = {
|
|
2437
|
+
root: {
|
|
2438
|
+
color: undefined,
|
|
2439
|
+
minWidth: theme.spacing(6),
|
|
2440
|
+
transition: theme.transitions.create(['color', 'border', 'box-shadow', 'background-color']),
|
|
2441
|
+
padding: theme.spacing(1.25, 3),
|
|
2442
|
+
[sm]: {
|
|
2443
|
+
padding: theme.spacing(0.75, 2)
|
|
2444
|
+
},
|
|
2445
|
+
'&:hover': {
|
|
2446
|
+
backgroundColor: undefined,
|
|
2447
|
+
'&$disabled': {
|
|
2448
|
+
backgroundColor: undefined
|
|
2449
|
+
},
|
|
2450
|
+
'@media (hover: none)': {
|
|
2451
|
+
backgroundColor: undefined
|
|
2452
|
+
}
|
|
2453
|
+
},
|
|
2454
|
+
'&$disabled': {
|
|
2455
|
+
color: undefined
|
|
2456
|
+
},
|
|
2457
|
+
'&[aria-busy="true"]': {
|
|
2458
|
+
'& $label': {
|
|
2459
|
+
visibility: 'hidden',
|
|
2460
|
+
'& > [role="progressbar"]': {
|
|
2461
|
+
position: 'absolute',
|
|
2462
|
+
visibility: 'visible',
|
|
2463
|
+
top: 'calc(50% - 0.5em)',
|
|
2464
|
+
left: 'calc(50% - 0.5em)',
|
|
2465
|
+
fontSize: theme.spacing(2),
|
|
2466
|
+
'$sizeLarge &': {
|
|
2467
|
+
fontSize: theme.spacing(3)
|
|
2468
|
+
}
|
|
2469
|
+
}
|
|
2447
2470
|
}
|
|
2448
2471
|
}
|
|
2449
|
-
}
|
|
2450
|
-
|
|
2451
|
-
|
|
2452
|
-
|
|
2453
|
-
color: 'primary',
|
|
2454
|
-
variant: 'outlined',
|
|
2455
|
-
disableFocusRipple: true
|
|
2456
|
-
},
|
|
2457
|
-
styleOverrides: {
|
|
2458
|
-
root: {
|
|
2459
|
-
minWidth: theme.spacing(6),
|
|
2460
|
-
transition: theme.transitions.create(['color', 'border', 'box-shadow', 'background-color']),
|
|
2461
|
-
padding: theme.spacing(1.25, 3),
|
|
2472
|
+
},
|
|
2473
|
+
label: {
|
|
2474
|
+
'& > .MuiSvgIcon-root': {
|
|
2475
|
+
fontSize: '24px',
|
|
2462
2476
|
[sm]: {
|
|
2463
|
-
|
|
2477
|
+
fontSize: '20px'
|
|
2464
2478
|
},
|
|
2465
|
-
'
|
|
2466
|
-
|
|
2467
|
-
["&.".concat(buttonClasses.disabled)]: {
|
|
2468
|
-
backgroundColor: 'initial'
|
|
2469
|
-
},
|
|
2470
|
-
'@media (hover: none)': {
|
|
2471
|
-
backgroundColor: 'initial'
|
|
2472
|
-
}
|
|
2473
|
-
},
|
|
2474
|
-
["&.".concat(buttonClasses.disabled)]: {
|
|
2475
|
-
color: 'initial'
|
|
2476
|
-
},
|
|
2477
|
-
'& > .MuiSvgIcon-root': {
|
|
2478
|
-
fontSize: '24px',
|
|
2479
|
+
'$sizeLarge &': {
|
|
2480
|
+
fontSize: '28px',
|
|
2479
2481
|
[sm]: {
|
|
2480
|
-
fontSize: '
|
|
2481
|
-
},
|
|
2482
|
-
[".".concat(buttonClasses.sizeLarge, "&")]: {
|
|
2483
|
-
fontSize: '28px',
|
|
2484
|
-
[sm]: {
|
|
2485
|
-
fontSize: '24px'
|
|
2486
|
-
}
|
|
2482
|
+
fontSize: '24px'
|
|
2487
2483
|
}
|
|
2488
2484
|
}
|
|
2485
|
+
}
|
|
2486
|
+
},
|
|
2487
|
+
sizeSmall: {
|
|
2488
|
+
padding: theme.spacing(0.5, 3),
|
|
2489
|
+
[sm]: {
|
|
2490
|
+
padding: theme.spacing(0.25, 2)
|
|
2491
|
+
}
|
|
2492
|
+
},
|
|
2493
|
+
sizeLarge: {
|
|
2494
|
+
fontSize: '18px',
|
|
2495
|
+
lineHeight: '28px',
|
|
2496
|
+
padding: theme.spacing(1.75, 8),
|
|
2497
|
+
[sm]: {
|
|
2498
|
+
fontSize: '16px',
|
|
2499
|
+
lineHeight: '24px',
|
|
2500
|
+
padding: theme.spacing(1, 4)
|
|
2501
|
+
}
|
|
2502
|
+
},
|
|
2503
|
+
text: {
|
|
2504
|
+
padding: undefined,
|
|
2505
|
+
'&[data-color="error"]': textVariant(Color.Red300, Color.Red100, Color.Red50, Color.Red200),
|
|
2506
|
+
'&[data-color="success"]': textVariant(Color.Green300, Color.Green100, Color.Green50, Color.Green200),
|
|
2507
|
+
'&[data-color="white"]': textVariant(Color.White, Color.White50, Color.White10, Color.White50)
|
|
2508
|
+
},
|
|
2509
|
+
textPrimary: textVariant(Color.Blue300, Color.Blue100, Color.Blue50, Color.Blue200),
|
|
2510
|
+
textSizeSmall: {
|
|
2511
|
+
padding: undefined,
|
|
2512
|
+
fontSize: undefined
|
|
2513
|
+
},
|
|
2514
|
+
textSizeLarge: {
|
|
2515
|
+
padding: undefined,
|
|
2516
|
+
fontSize: undefined
|
|
2517
|
+
},
|
|
2518
|
+
outlined: {
|
|
2519
|
+
border: undefined,
|
|
2520
|
+
padding: undefined,
|
|
2521
|
+
'&$disabled': {
|
|
2522
|
+
border: undefined
|
|
2523
|
+
},
|
|
2524
|
+
'&[data-color="error"]': outlinedVariant(Color.Red300, Color.Red300, Color.Red100, Color.Red100, Color.Red300, Color.Red300, Color.Red100, Color.Red50, Color.Red300, Color.White),
|
|
2525
|
+
'&[data-color="success"]': outlinedVariant(Color.Green300, Color.Green300, Color.Green100, Color.Green100, Color.Green300, Color.Green300, Color.Green100, Color.Green50, Color.Green300, Color.White),
|
|
2526
|
+
'&[data-color="white"]': outlinedVariant(Color.White, Color.White50, Color.White50, Color.White40, Color.White, Color.White50, Color.White40, Color.White10, Color.White50, Color.Transparent)
|
|
2527
|
+
},
|
|
2528
|
+
outlinedPrimary: outlinedVariant(Color.Dark500, Color.Silver500, Color.Silver500, Color.Silver400, Color.Blue300, Color.Blue300, Color.Blue100, Color.Blue50, Color.Dark200, Color.White),
|
|
2529
|
+
outlinedSizeSmall: {
|
|
2530
|
+
padding: undefined,
|
|
2531
|
+
fontSize: undefined
|
|
2532
|
+
},
|
|
2533
|
+
outlinedSizeLarge: {
|
|
2534
|
+
padding: undefined,
|
|
2535
|
+
fontSize: undefined
|
|
2536
|
+
},
|
|
2537
|
+
contained: {
|
|
2538
|
+
boxShadow: undefined,
|
|
2539
|
+
backgroundColor: undefined,
|
|
2540
|
+
'&:hover': {
|
|
2541
|
+
boxShadow: undefined,
|
|
2542
|
+
backgroundColor: undefined,
|
|
2543
|
+
'&$disabled': {
|
|
2544
|
+
backgroundColor: undefined
|
|
2545
|
+
},
|
|
2546
|
+
'@media (hover: none)': {
|
|
2547
|
+
boxShadow: undefined,
|
|
2548
|
+
backgroundColor: undefined
|
|
2549
|
+
}
|
|
2489
2550
|
},
|
|
2490
|
-
|
|
2491
|
-
|
|
2492
|
-
text: {
|
|
2493
|
-
padding: 'initial',
|
|
2494
|
-
'&[data-color="error"]': textVariant(Color.Red300, Color.Red100, Color.Red50, Color.Red200),
|
|
2495
|
-
'&[data-color="success"]': textVariant(Color.Green300, Color.Green100, Color.Green50, Color.Green200),
|
|
2496
|
-
'&[data-color="white"]': textVariant(Color.White, Color.White50, Color.White10, Color.White50)
|
|
2551
|
+
'&:active': {
|
|
2552
|
+
boxShadow: undefined
|
|
2497
2553
|
},
|
|
2498
|
-
|
|
2499
|
-
|
|
2500
|
-
textSizeLarge: sizeLarge(theme),
|
|
2501
|
-
outlined: {
|
|
2502
|
-
border: 'none',
|
|
2503
|
-
padding: 'initial',
|
|
2504
|
-
["&.".concat(buttonClasses.disabled)]: {
|
|
2505
|
-
border: 'none'
|
|
2506
|
-
},
|
|
2507
|
-
'&[data-color="error"]': outlinedVariant(Color.Red300, Color.Red300, Color.Red100, Color.Red100, Color.Red300, Color.Red300, Color.Red100, Color.Red50, Color.Red300, Color.White),
|
|
2508
|
-
'&[data-color="success"]': outlinedVariant(Color.Green300, Color.Green300, Color.Green100, Color.Green100, Color.Green300, Color.Green300, Color.Green100, Color.Green50, Color.Green300, Color.White),
|
|
2509
|
-
'&[data-color="white"]': outlinedVariant(Color.White, Color.White50, Color.White50, Color.White40, Color.White, Color.White50, Color.White40, Color.White10, Color.White50, Color.Transparent)
|
|
2554
|
+
'&$focusVisible': {
|
|
2555
|
+
boxShadow: undefined
|
|
2510
2556
|
},
|
|
2511
|
-
|
|
2512
|
-
|
|
2513
|
-
|
|
2514
|
-
|
|
2515
|
-
boxShadow: 'none',
|
|
2516
|
-
backgroundColor: 'initial',
|
|
2517
|
-
'&:hover': {
|
|
2518
|
-
boxShadow: 'none',
|
|
2519
|
-
backgroundColor: 'initial',
|
|
2520
|
-
["&.".concat(buttonClasses.disabled)]: {
|
|
2521
|
-
backgroundColor: 'none'
|
|
2522
|
-
},
|
|
2523
|
-
'@media (hover: none)': {
|
|
2524
|
-
boxShadow: 'none',
|
|
2525
|
-
backgroundColor: 'none'
|
|
2526
|
-
}
|
|
2527
|
-
},
|
|
2528
|
-
'&:active': {
|
|
2529
|
-
boxShadow: 'none'
|
|
2530
|
-
},
|
|
2531
|
-
["&.".concat(buttonClasses.focusVisible)]: {
|
|
2532
|
-
boxShadow: 'none'
|
|
2533
|
-
},
|
|
2534
|
-
["&.".concat(buttonClasses.disabled)]: {
|
|
2535
|
-
color: 'initial',
|
|
2536
|
-
boxShadow: 'none',
|
|
2537
|
-
backgroundColor: 'initial'
|
|
2538
|
-
},
|
|
2539
|
-
'&[data-color="error"]': containedVariant(Color.White, Color.Red300, Color.Red100, Color.Red500, Color.White, Color.Red100),
|
|
2540
|
-
'&[data-color="success"]': containedVariant(Color.White, Color.Green300, Color.Green100, Color.Green500, Color.White, Color.Green100),
|
|
2541
|
-
'&[data-color="white"]': containedVariant(Color.White, Color.White20, Color.White40, Color.White40, Color.White50, Color.White08)
|
|
2557
|
+
'&$disabled': {
|
|
2558
|
+
color: undefined,
|
|
2559
|
+
boxShadow: undefined,
|
|
2560
|
+
backgroundColor: undefined
|
|
2542
2561
|
},
|
|
2543
|
-
|
|
2544
|
-
|
|
2545
|
-
|
|
2562
|
+
'&[data-color="error"]': containedVariant(Color.White, Color.Red300, Color.Red100, Color.Red500, Color.White, Color.Red100),
|
|
2563
|
+
'&[data-color="success"]': containedVariant(Color.White, Color.Green300, Color.Green100, Color.Green500, Color.White, Color.Green100),
|
|
2564
|
+
'&[data-color="white"]': containedVariant(Color.White, Color.White20, Color.White40, Color.White40, Color.White50, Color.White08)
|
|
2565
|
+
},
|
|
2566
|
+
containedPrimary: containedVariant(Color.White, Color.Blue300, Color.Blue100, Color.Blue500, Color.White, Color.Blue100),
|
|
2567
|
+
containedSizeSmall: {
|
|
2568
|
+
padding: undefined,
|
|
2569
|
+
fontSize: undefined
|
|
2570
|
+
},
|
|
2571
|
+
containedSizeLarge: {
|
|
2572
|
+
padding: undefined,
|
|
2573
|
+
fontSize: undefined
|
|
2546
2574
|
}
|
|
2547
2575
|
};
|
|
2548
2576
|
}
|
|
2549
2577
|
|
|
2550
2578
|
function overrideCard(theme) {
|
|
2551
|
-
theme.
|
|
2552
|
-
|
|
2553
|
-
variant: 'outlined'
|
|
2554
|
-
}
|
|
2579
|
+
theme.props.MuiCard = {
|
|
2580
|
+
variant: 'outlined'
|
|
2555
2581
|
};
|
|
2556
|
-
theme.
|
|
2557
|
-
|
|
2558
|
-
|
|
2559
|
-
|
|
2560
|
-
paddingBottom: '16px'
|
|
2561
|
-
}
|
|
2582
|
+
theme.overrides.MuiCardContent = {
|
|
2583
|
+
root: {
|
|
2584
|
+
'&:last-child': {
|
|
2585
|
+
paddingBottom: undefined
|
|
2562
2586
|
}
|
|
2563
2587
|
}
|
|
2564
2588
|
};
|
|
2565
2589
|
}
|
|
2566
2590
|
|
|
2567
2591
|
function overrideCheckbox(theme) {
|
|
2568
|
-
theme.
|
|
2569
|
-
|
|
2570
|
-
|
|
2571
|
-
|
|
2572
|
-
|
|
2573
|
-
|
|
2574
|
-
|
|
2575
|
-
|
|
2576
|
-
|
|
2577
|
-
|
|
2578
|
-
|
|
2579
|
-
rx: "1.5"
|
|
2580
|
-
})
|
|
2581
|
-
}),
|
|
2582
|
-
checkedIcon: /*#__PURE__*/jsxs(SvgIcon, {
|
|
2583
|
-
children: [/*#__PURE__*/jsx("rect", {
|
|
2584
|
-
width: "18",
|
|
2585
|
-
height: "18",
|
|
2586
|
-
x: "3",
|
|
2587
|
-
y: "3",
|
|
2588
|
-
fill: "currentColor",
|
|
2589
|
-
rx: "2"
|
|
2590
|
-
}), /*#__PURE__*/jsx("path", {
|
|
2591
|
-
fill: Color.White,
|
|
2592
|
-
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"
|
|
2593
|
-
})]
|
|
2594
|
-
}),
|
|
2595
|
-
indeterminateIcon: /*#__PURE__*/jsxs(SvgIcon, {
|
|
2596
|
-
children: [/*#__PURE__*/jsx("rect", {
|
|
2597
|
-
width: "18",
|
|
2598
|
-
height: "18",
|
|
2599
|
-
x: "3",
|
|
2600
|
-
y: "3",
|
|
2601
|
-
fill: "currentIcon",
|
|
2602
|
-
rx: "2"
|
|
2603
|
-
}), /*#__PURE__*/jsx("path", {
|
|
2604
|
-
fill: Color.White,
|
|
2605
|
-
d: "M7 11h10v2H7v-2z"
|
|
2606
|
-
})]
|
|
2592
|
+
theme.props.MuiCheckbox = {
|
|
2593
|
+
color: 'primary',
|
|
2594
|
+
icon: /*#__PURE__*/jsx(SvgIcon, {
|
|
2595
|
+
children: /*#__PURE__*/jsx("rect", {
|
|
2596
|
+
width: "17",
|
|
2597
|
+
height: "17",
|
|
2598
|
+
x: "3.5",
|
|
2599
|
+
y: "3.5",
|
|
2600
|
+
fill: Color.White,
|
|
2601
|
+
stroke: "currentColor",
|
|
2602
|
+
rx: "1.5"
|
|
2607
2603
|
})
|
|
2604
|
+
}),
|
|
2605
|
+
checkedIcon: /*#__PURE__*/jsxs(SvgIcon, {
|
|
2606
|
+
children: [/*#__PURE__*/jsx("rect", {
|
|
2607
|
+
width: "18",
|
|
2608
|
+
height: "18",
|
|
2609
|
+
x: "3",
|
|
2610
|
+
y: "3",
|
|
2611
|
+
fill: "currentColor",
|
|
2612
|
+
rx: "2"
|
|
2613
|
+
}), /*#__PURE__*/jsx("path", {
|
|
2614
|
+
fill: Color.White,
|
|
2615
|
+
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"
|
|
2616
|
+
})]
|
|
2617
|
+
}),
|
|
2618
|
+
indeterminateIcon: /*#__PURE__*/jsxs(SvgIcon, {
|
|
2619
|
+
children: [/*#__PURE__*/jsx("rect", {
|
|
2620
|
+
width: "18",
|
|
2621
|
+
height: "18",
|
|
2622
|
+
x: "3",
|
|
2623
|
+
y: "3",
|
|
2624
|
+
fill: "currentIcon",
|
|
2625
|
+
rx: "2"
|
|
2626
|
+
}), /*#__PURE__*/jsx("path", {
|
|
2627
|
+
fill: Color.White,
|
|
2628
|
+
d: "M7 11h10v2H7v-2z"
|
|
2629
|
+
})]
|
|
2630
|
+
})
|
|
2631
|
+
};
|
|
2632
|
+
theme.overrides.MuiCheckbox = {
|
|
2633
|
+
root: {
|
|
2634
|
+
color: Color.Dark100,
|
|
2635
|
+
marginTop: theme.spacing(-0.625),
|
|
2636
|
+
marginBottom: theme.spacing(-0.625)
|
|
2608
2637
|
},
|
|
2609
|
-
|
|
2610
|
-
|
|
2611
|
-
color: Color.
|
|
2612
|
-
marginTop: theme.spacing(-0.625),
|
|
2613
|
-
marginBottom: theme.spacing(-0.625)
|
|
2614
|
-
},
|
|
2615
|
-
indeterminate: {
|
|
2616
|
-
["&:not(.".concat(checkboxClasses.checked, ")")]: {
|
|
2617
|
-
color: Color.Dark100
|
|
2618
|
-
},
|
|
2619
|
-
["&.".concat(checkboxClasses.disabled)]: {
|
|
2620
|
-
color: Color.Silver400
|
|
2621
|
-
}
|
|
2638
|
+
colorPrimary: {
|
|
2639
|
+
'&$checked$disabled': {
|
|
2640
|
+
color: Color.Silver500
|
|
2622
2641
|
},
|
|
2623
|
-
|
|
2624
|
-
|
|
2625
|
-
color: Color.Silver500
|
|
2626
|
-
},
|
|
2627
|
-
["&:hover:not(.".concat(checkboxClasses.checked, ")")]: {
|
|
2628
|
-
color: Color.Dark100
|
|
2629
|
-
}
|
|
2642
|
+
'&:hover:not($checked)': {
|
|
2643
|
+
color: Color.Dark100
|
|
2630
2644
|
}
|
|
2631
2645
|
}
|
|
2632
2646
|
};
|
|
@@ -2634,223 +2648,197 @@ function overrideCheckbox(theme) {
|
|
|
2634
2648
|
|
|
2635
2649
|
function overrideChip(theme) {
|
|
2636
2650
|
var sm = theme.breakpoints.up('sm');
|
|
2637
|
-
theme.
|
|
2638
|
-
|
|
2639
|
-
|
|
2640
|
-
|
|
2641
|
-
children: /*#__PURE__*/jsx(
|
|
2642
|
-
|
|
2643
|
-
|
|
2644
|
-
|
|
2645
|
-
|
|
2646
|
-
fill: "currentColor"
|
|
2647
|
-
})
|
|
2651
|
+
theme.props.MuiChip = {
|
|
2652
|
+
size: 'small',
|
|
2653
|
+
deleteIcon: /*#__PURE__*/jsx("div", {
|
|
2654
|
+
children: /*#__PURE__*/jsx(SvgIcon, {
|
|
2655
|
+
children: /*#__PURE__*/jsx("path", {
|
|
2656
|
+
fillRule: "evenodd",
|
|
2657
|
+
clipRule: "evenodd",
|
|
2658
|
+
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",
|
|
2659
|
+
fill: "currentColor"
|
|
2648
2660
|
})
|
|
2649
2661
|
})
|
|
2662
|
+
})
|
|
2663
|
+
};
|
|
2664
|
+
theme.overrides.MuiChip = {
|
|
2665
|
+
root: _objectSpread(_objectSpread({}, theme.typography.body2), {}, {
|
|
2666
|
+
color: undefined,
|
|
2667
|
+
height: undefined,
|
|
2668
|
+
borderRadius: 4,
|
|
2669
|
+
backgroundColor: Color.Silver200,
|
|
2670
|
+
'&$disabled': {
|
|
2671
|
+
opacity: undefined,
|
|
2672
|
+
color: Color.Dark100
|
|
2673
|
+
}
|
|
2674
|
+
}),
|
|
2675
|
+
sizeSmall: {
|
|
2676
|
+
height: undefined
|
|
2650
2677
|
},
|
|
2651
|
-
|
|
2652
|
-
|
|
2653
|
-
|
|
2654
|
-
|
|
2655
|
-
|
|
2656
|
-
|
|
2657
|
-
|
|
2658
|
-
|
|
2659
|
-
|
|
2660
|
-
|
|
2661
|
-
|
|
2662
|
-
sizeSmall: {
|
|
2663
|
-
height: 'unset'
|
|
2664
|
-
},
|
|
2665
|
-
labelSmall: {
|
|
2666
|
-
paddingLeft: 6,
|
|
2667
|
-
paddingRight: 6,
|
|
2668
|
-
[sm]: {
|
|
2669
|
-
paddingLeft: 4,
|
|
2670
|
-
paddingRight: 4
|
|
2671
|
-
}
|
|
2678
|
+
labelSmall: {
|
|
2679
|
+
paddingLeft: 6,
|
|
2680
|
+
paddingRight: 6,
|
|
2681
|
+
[sm]: {
|
|
2682
|
+
paddingLeft: 4,
|
|
2683
|
+
paddingRight: 4
|
|
2684
|
+
}
|
|
2685
|
+
},
|
|
2686
|
+
clickable: {
|
|
2687
|
+
'&:hover, &:focus': {
|
|
2688
|
+
backgroundColor: undefined
|
|
2672
2689
|
},
|
|
2673
|
-
|
|
2674
|
-
|
|
2675
|
-
backgroundColor: Color.Silver200
|
|
2676
|
-
},
|
|
2677
|
-
'&:active': {
|
|
2678
|
-
boxShadow: 'unset'
|
|
2679
|
-
},
|
|
2680
|
-
'&:focus': {
|
|
2681
|
-
boxShadow: "0 0 0 2px ".concat(Color.Silver300)
|
|
2682
|
-
},
|
|
2683
|
-
'&:active, &:hover': {
|
|
2684
|
-
backgroundColor: Color.Silver300
|
|
2685
|
-
}
|
|
2690
|
+
'&:active': {
|
|
2691
|
+
boxShadow: undefined
|
|
2686
2692
|
},
|
|
2687
|
-
|
|
2688
|
-
|
|
2689
|
-
backgroundColor: Color.Silver200,
|
|
2690
|
-
boxShadow: "0 0 0 2px ".concat(Color.Silver300)
|
|
2691
|
-
}
|
|
2693
|
+
'&:focus': {
|
|
2694
|
+
boxShadow: "0 0 0 2px ".concat(Color.Silver300)
|
|
2692
2695
|
},
|
|
2693
|
-
|
|
2694
|
-
|
|
2695
|
-
|
|
2696
|
-
|
|
2697
|
-
|
|
2698
|
-
|
|
2699
|
-
|
|
2700
|
-
|
|
2701
|
-
|
|
2702
|
-
|
|
2703
|
-
|
|
2696
|
+
'&:active, &:hover': {
|
|
2697
|
+
backgroundColor: Color.Silver300
|
|
2698
|
+
}
|
|
2699
|
+
},
|
|
2700
|
+
deletable: {
|
|
2701
|
+
'&:focus': {
|
|
2702
|
+
backgroundColor: undefined,
|
|
2703
|
+
boxShadow: "0 0 0 2px ".concat(Color.Silver300)
|
|
2704
|
+
}
|
|
2705
|
+
},
|
|
2706
|
+
deleteIcon: {
|
|
2707
|
+
width: undefined,
|
|
2708
|
+
height: undefined,
|
|
2709
|
+
display: 'flex',
|
|
2710
|
+
transition: theme.transitions.create('background-color'),
|
|
2711
|
+
'&:active, &:hover, &:focus': {
|
|
2704
2712
|
'& > svg': {
|
|
2705
|
-
|
|
2706
|
-
color: Color.Dark200,
|
|
2707
|
-
fontSize: '1em'
|
|
2708
|
-
}
|
|
2709
|
-
},
|
|
2710
|
-
deleteIconSmall: {
|
|
2711
|
-
width: 'unset',
|
|
2712
|
-
height: 'unset',
|
|
2713
|
-
padding: theme.spacing(0.5),
|
|
2714
|
-
marginLeft: theme.spacing(-0.5),
|
|
2715
|
-
marginRight: theme.spacing(0.25),
|
|
2716
|
-
[sm]: {
|
|
2717
|
-
marginRight: 0
|
|
2713
|
+
backgroundColor: Color.Silver400
|
|
2718
2714
|
}
|
|
2719
2715
|
},
|
|
2720
|
-
|
|
2721
|
-
|
|
2722
|
-
|
|
2723
|
-
|
|
2724
|
-
}
|
|
2725
|
-
|
|
2726
|
-
|
|
2727
|
-
|
|
2728
|
-
|
|
2729
|
-
|
|
2730
|
-
|
|
2731
|
-
|
|
2732
|
-
|
|
2716
|
+
'& > svg': {
|
|
2717
|
+
borderRadius: '50%',
|
|
2718
|
+
color: Color.Dark200,
|
|
2719
|
+
fontSize: '1em'
|
|
2720
|
+
}
|
|
2721
|
+
},
|
|
2722
|
+
deleteIconSmall: {
|
|
2723
|
+
width: undefined,
|
|
2724
|
+
height: undefined,
|
|
2725
|
+
padding: theme.spacing(0.5),
|
|
2726
|
+
marginLeft: theme.spacing(-0.5),
|
|
2727
|
+
marginRight: theme.spacing(0.25),
|
|
2728
|
+
[sm]: {
|
|
2729
|
+
marginRight: 0
|
|
2730
|
+
}
|
|
2731
|
+
},
|
|
2732
|
+
icon: {
|
|
2733
|
+
color: Color.Dark100,
|
|
2734
|
+
fontSize: '1em',
|
|
2735
|
+
marginRight: undefined
|
|
2736
|
+
},
|
|
2737
|
+
iconSmall: {
|
|
2738
|
+
width: undefined,
|
|
2739
|
+
height: undefined,
|
|
2740
|
+
marginLeft: 8,
|
|
2741
|
+
marginRight: undefined,
|
|
2742
|
+
[sm]: {
|
|
2743
|
+
marginLeft: 4
|
|
2733
2744
|
}
|
|
2734
2745
|
}
|
|
2735
2746
|
};
|
|
2736
2747
|
}
|
|
2737
2748
|
|
|
2738
2749
|
function overrideDialog(theme) {
|
|
2739
|
-
theme.
|
|
2740
|
-
|
|
2741
|
-
|
|
2742
|
-
|
|
2743
|
-
|
|
2744
|
-
|
|
2745
|
-
|
|
2746
|
-
|
|
2747
|
-
|
|
2748
|
-
|
|
2749
|
-
|
|
2750
|
+
theme.props.MuiDialogTitle = {
|
|
2751
|
+
disableTypography: true
|
|
2752
|
+
};
|
|
2753
|
+
theme.overrides.MuiDialog = {
|
|
2754
|
+
paper: {
|
|
2755
|
+
margin: theme.spacing(3)
|
|
2756
|
+
},
|
|
2757
|
+
paperWidthXs: {
|
|
2758
|
+
maxWidth: Math.max(theme.breakpoints.values.xs, 360),
|
|
2759
|
+
'&$paperScrollBody': {
|
|
2760
|
+
[theme.breakpoints.down(Math.max(theme.breakpoints.values.xs, 360) + 32 * 2)]: {
|
|
2761
|
+
maxWidth: 'calc(100% - 64px)'
|
|
2750
2762
|
}
|
|
2751
2763
|
}
|
|
2752
2764
|
}
|
|
2753
2765
|
};
|
|
2754
|
-
theme.
|
|
2755
|
-
|
|
2756
|
-
// @ts-expect-error DialogTitleProps has missing type def
|
|
2757
|
-
variant: 'h3'
|
|
2758
|
-
}
|
|
2766
|
+
theme.overrides.MuiDialogTitle = {
|
|
2767
|
+
root: _objectSpread({}, theme.typography.h3)
|
|
2759
2768
|
};
|
|
2760
|
-
theme.
|
|
2761
|
-
|
|
2762
|
-
|
|
2763
|
-
padding: theme.spacing(0, 3)
|
|
2764
|
-
}
|
|
2769
|
+
theme.overrides.MuiDialogContent = {
|
|
2770
|
+
root: {
|
|
2771
|
+
padding: theme.spacing(0, 3)
|
|
2765
2772
|
}
|
|
2766
2773
|
};
|
|
2767
|
-
theme.
|
|
2768
|
-
|
|
2769
|
-
|
|
2770
|
-
|
|
2771
|
-
|
|
2772
|
-
|
|
2773
|
-
|
|
2774
|
-
marginLeft: theme.spacing(2)
|
|
2775
|
-
}
|
|
2774
|
+
theme.overrides.MuiDialogActions = {
|
|
2775
|
+
root: {
|
|
2776
|
+
padding: theme.spacing(3)
|
|
2777
|
+
},
|
|
2778
|
+
spacing: {
|
|
2779
|
+
'& > :not(:first-child)': {
|
|
2780
|
+
marginLeft: theme.spacing(2)
|
|
2776
2781
|
}
|
|
2777
2782
|
}
|
|
2778
2783
|
};
|
|
2779
2784
|
}
|
|
2780
2785
|
|
|
2781
2786
|
function overrideDrawer(theme) {
|
|
2782
|
-
theme.
|
|
2783
|
-
|
|
2784
|
-
|
|
2785
|
-
|
|
2786
|
-
|
|
2787
|
-
|
|
2788
|
-
|
|
2789
|
-
|
|
2790
|
-
|
|
2791
|
-
|
|
2792
|
-
maxWidth: theme.breakpoints.values.sm
|
|
2793
|
-
}
|
|
2787
|
+
theme.props.MuiDrawer = {
|
|
2788
|
+
anchor: 'right'
|
|
2789
|
+
};
|
|
2790
|
+
theme.overrides.MuiDrawer = {
|
|
2791
|
+
paper: {
|
|
2792
|
+
maxWidth: '100%',
|
|
2793
|
+
minWidth: '100%',
|
|
2794
|
+
[theme.breakpoints.up('sm')]: {
|
|
2795
|
+
minWidth: theme.spacing(54),
|
|
2796
|
+
maxWidth: theme.breakpoints.values.sm
|
|
2794
2797
|
}
|
|
2795
2798
|
}
|
|
2796
2799
|
};
|
|
2797
2800
|
}
|
|
2798
2801
|
|
|
2799
2802
|
function overrideIconButton(theme) {
|
|
2800
|
-
theme.
|
|
2801
|
-
|
|
2802
|
-
|
|
2803
|
-
|
|
2804
|
-
|
|
2805
|
-
|
|
2806
|
-
|
|
2807
|
-
|
|
2808
|
-
|
|
2809
|
-
duration: theme.transitions.duration.short
|
|
2810
|
-
}),
|
|
2811
|
-
'&:hover': {
|
|
2812
|
-
backgroundColor: Color.Transparent
|
|
2813
|
-
},
|
|
2814
|
-
'&:active': {
|
|
2815
|
-
color: Color.Dark500
|
|
2816
|
-
},
|
|
2817
|
-
'&:hover ': {
|
|
2818
|
-
color: Color.Dark300
|
|
2819
|
-
},
|
|
2820
|
-
'&:focus': {
|
|
2821
|
-
backgroundColor: Color.Silver400
|
|
2822
|
-
},
|
|
2823
|
-
["&.".concat(iconButtonClasses.disabled)]: {
|
|
2824
|
-
color: Color.Silver500
|
|
2825
|
-
}
|
|
2803
|
+
theme.overrides.MuiIconButton = {
|
|
2804
|
+
root: {
|
|
2805
|
+
color: Color.Dark100,
|
|
2806
|
+
backgroundColor: Color.Transparent,
|
|
2807
|
+
transition: theme.transitions.create(['color', 'background-color'], {
|
|
2808
|
+
duration: theme.transitions.duration.short
|
|
2809
|
+
}),
|
|
2810
|
+
'&:hover': {
|
|
2811
|
+
backgroundColor: Color.Transparent
|
|
2826
2812
|
},
|
|
2827
|
-
|
|
2828
|
-
|
|
2829
|
-
color: Color.Blue500
|
|
2830
|
-
},
|
|
2831
|
-
'&:hover ': {
|
|
2832
|
-
color: Color.Blue300
|
|
2833
|
-
},
|
|
2834
|
-
'&:focus': {
|
|
2835
|
-
backgroundColor: Color.Blue50
|
|
2836
|
-
}
|
|
2813
|
+
'&:active': {
|
|
2814
|
+
color: Color.Dark500
|
|
2837
2815
|
},
|
|
2838
|
-
|
|
2839
|
-
|
|
2816
|
+
'&:hover ': {
|
|
2817
|
+
color: Color.Dark300
|
|
2840
2818
|
},
|
|
2841
|
-
|
|
2842
|
-
|
|
2819
|
+
'&:focus': {
|
|
2820
|
+
backgroundColor: Color.Silver400
|
|
2843
2821
|
},
|
|
2844
|
-
|
|
2845
|
-
|
|
2846
|
-
|
|
2822
|
+
'&$disabled': {
|
|
2823
|
+
color: Color.Silver500
|
|
2824
|
+
}
|
|
2825
|
+
},
|
|
2826
|
+
colorPrimary: {
|
|
2827
|
+
'&:active': {
|
|
2828
|
+
color: Color.Blue500
|
|
2847
2829
|
},
|
|
2848
|
-
|
|
2849
|
-
|
|
2850
|
-
fontSize: theme.typography.pxToRem(24)
|
|
2830
|
+
'&:hover ': {
|
|
2831
|
+
color: Color.Blue300
|
|
2851
2832
|
},
|
|
2852
|
-
|
|
2833
|
+
'&:focus': {
|
|
2834
|
+
backgroundColor: Color.Blue50
|
|
2853
2835
|
}
|
|
2836
|
+
},
|
|
2837
|
+
edgeEnd: {
|
|
2838
|
+
marginRight: theme.spacing(-1)
|
|
2839
|
+
},
|
|
2840
|
+
edgeStart: {
|
|
2841
|
+
marginLeft: theme.spacing(-1)
|
|
2854
2842
|
}
|
|
2855
2843
|
};
|
|
2856
2844
|
}
|
|
@@ -2860,383 +2848,344 @@ function line(color) {
|
|
|
2860
2848
|
}
|
|
2861
2849
|
|
|
2862
2850
|
function overrideLink(theme) {
|
|
2863
|
-
theme.
|
|
2864
|
-
|
|
2865
|
-
|
|
2866
|
-
|
|
2867
|
-
|
|
2868
|
-
|
|
2869
|
-
|
|
2870
|
-
|
|
2871
|
-
|
|
2872
|
-
|
|
2873
|
-
|
|
2874
|
-
'
|
|
2875
|
-
|
|
2876
|
-
|
|
2877
|
-
|
|
2878
|
-
backgroundImage: line('currentColor')
|
|
2879
|
-
}
|
|
2851
|
+
theme.props.MuiLink = {
|
|
2852
|
+
underline: 'none',
|
|
2853
|
+
color: 'textPrimary'
|
|
2854
|
+
};
|
|
2855
|
+
theme.overrides.MuiLink = {
|
|
2856
|
+
root: {
|
|
2857
|
+
backgroundSize: '100% 1px',
|
|
2858
|
+
backgroundRepeat: 'repeat-x',
|
|
2859
|
+
backgroundPosition: '0 100%',
|
|
2860
|
+
backgroundColor: Color.Transparent,
|
|
2861
|
+
'&:focus': {
|
|
2862
|
+
outline: 'none'
|
|
2863
|
+
},
|
|
2864
|
+
'&:hover, &:active': {
|
|
2865
|
+
backgroundImage: line('currentColor')
|
|
2880
2866
|
},
|
|
2881
|
-
|
|
2882
|
-
colorTextPrimary: {
|
|
2867
|
+
'&.MuiTypography-colorTextPrimary': {
|
|
2883
2868
|
backgroundImage: line(Color.Silver500),
|
|
2884
2869
|
'&:focus, &:hover, &:active': {
|
|
2885
2870
|
color: Color.Blue300,
|
|
2886
2871
|
backgroundImage: line(Color.Blue300)
|
|
2887
2872
|
}
|
|
2888
|
-
},
|
|
2889
|
-
button: {
|
|
2890
|
-
// Reset button styles.
|
|
2891
|
-
backgroundColor: 'unset',
|
|
2892
|
-
// Override browser defaults.
|
|
2893
|
-
fontSize: 'inherit',
|
|
2894
|
-
textAlign: 'inherit',
|
|
2895
|
-
lineHeight: 'inherit',
|
|
2896
|
-
userSelect: 'inherit',
|
|
2897
|
-
verticalAlign: 'inherit'
|
|
2898
2873
|
}
|
|
2874
|
+
},
|
|
2875
|
+
button: {
|
|
2876
|
+
// Reset button styles.
|
|
2877
|
+
backgroundColor: undefined,
|
|
2878
|
+
// Override browser defaults.
|
|
2879
|
+
fontSize: 'inherit',
|
|
2880
|
+
textAlign: 'inherit',
|
|
2881
|
+
lineHeight: 'inherit',
|
|
2882
|
+
userSelect: 'inherit',
|
|
2883
|
+
verticalAlign: 'inherit'
|
|
2899
2884
|
}
|
|
2900
2885
|
};
|
|
2901
2886
|
}
|
|
2902
2887
|
|
|
2903
2888
|
function overrideList(theme) {
|
|
2904
|
-
theme.
|
|
2905
|
-
|
|
2906
|
-
|
|
2907
|
-
|
|
2908
|
-
|
|
2909
|
-
|
|
2910
|
-
|
|
2911
|
-
color: Color.Blue100
|
|
2912
|
-
}
|
|
2889
|
+
theme.overrides.MuiListItem = {
|
|
2890
|
+
root: {
|
|
2891
|
+
'&$selected, &$selected:hover': {
|
|
2892
|
+
backgroundColor: Color.Blue50
|
|
2893
|
+
},
|
|
2894
|
+
'& .MuiTouchRipple-root': {
|
|
2895
|
+
color: Color.Blue100
|
|
2913
2896
|
}
|
|
2914
2897
|
}
|
|
2915
2898
|
};
|
|
2916
2899
|
}
|
|
2917
2900
|
|
|
2918
2901
|
function overrideMenu(theme) {
|
|
2919
|
-
theme.
|
|
2920
|
-
|
|
2921
|
-
|
|
2922
|
-
|
|
2923
|
-
|
|
2924
|
-
|
|
2925
|
-
|
|
2926
|
-
|
|
2927
|
-
|
|
2928
|
-
}
|
|
2902
|
+
theme.props.MuiMenu = {
|
|
2903
|
+
getContentAnchorEl: null,
|
|
2904
|
+
anchorOrigin: {
|
|
2905
|
+
vertical: 'bottom',
|
|
2906
|
+
horizontal: 'left'
|
|
2907
|
+
},
|
|
2908
|
+
transformOrigin: {
|
|
2909
|
+
vertical: 'top',
|
|
2910
|
+
horizontal: 'left'
|
|
2929
2911
|
}
|
|
2930
2912
|
};
|
|
2931
|
-
theme.
|
|
2932
|
-
|
|
2933
|
-
|
|
2934
|
-
|
|
2935
|
-
|
|
2936
|
-
'& .MuiTouchRipple-root': {
|
|
2937
|
-
color: Color.Blue100
|
|
2938
|
-
},
|
|
2939
|
-
["&.".concat(menuItemClasses.selected, ", &.").concat(menuItemClasses.selected, ":hover")]: {
|
|
2940
|
-
backgroundColor: Color.Blue50,
|
|
2941
|
-
["&.".concat(menuItemClasses.focusVisible)]: {
|
|
2942
|
-
backgroundColor: Color.Blue50
|
|
2943
|
-
}
|
|
2944
|
-
}
|
|
2945
|
-
})
|
|
2946
|
-
}
|
|
2913
|
+
theme.overrides.MuiMenuItem = {
|
|
2914
|
+
root: _objectSpread(_objectSpread({}, theme.typography.body2), {}, {
|
|
2915
|
+
paddingTop: theme.spacing(1),
|
|
2916
|
+
paddingBottom: theme.spacing(1)
|
|
2917
|
+
})
|
|
2947
2918
|
};
|
|
2948
2919
|
}
|
|
2949
2920
|
|
|
2950
2921
|
function overridePagination(theme) {
|
|
2951
|
-
|
|
2952
|
-
|
|
2953
|
-
|
|
2954
|
-
|
|
2922
|
+
var props = {};
|
|
2923
|
+
var overrides = {
|
|
2924
|
+
root: {
|
|
2925
|
+
color: Color.Dark400
|
|
2926
|
+
},
|
|
2927
|
+
page: {
|
|
2928
|
+
'&:hover': {
|
|
2929
|
+
backgroundColor: Color.Silver200
|
|
2955
2930
|
},
|
|
2956
|
-
|
|
2957
|
-
|
|
2958
|
-
|
|
2959
|
-
|
|
2960
|
-
|
|
2961
|
-
|
|
2962
|
-
|
|
2963
|
-
|
|
2964
|
-
|
|
2965
|
-
["&.".concat(paginationItemClasses.selected)]: {
|
|
2966
|
-
backgroundColor: Color.Silver400,
|
|
2967
|
-
["&:hover, &.".concat(paginationItemClasses.focusVisible)]: {
|
|
2968
|
-
backgroundColor: Color.Silver400
|
|
2969
|
-
},
|
|
2970
|
-
["&.".concat(paginationItemClasses.disabled)]: {
|
|
2971
|
-
color: Color.Dark100,
|
|
2972
|
-
backgroundColor: Color.Silver400
|
|
2973
|
-
}
|
|
2931
|
+
'&$focusVisible': {
|
|
2932
|
+
borderRadius: 4,
|
|
2933
|
+
backgroundColor: Color.White,
|
|
2934
|
+
border: "1px solid ".concat(Color.Blue100)
|
|
2935
|
+
},
|
|
2936
|
+
'&$selected': {
|
|
2937
|
+
backgroundColor: Color.Silver400,
|
|
2938
|
+
'&:hover, &$focusVisible': {
|
|
2939
|
+
backgroundColor: Color.Silver400
|
|
2974
2940
|
},
|
|
2975
|
-
|
|
2976
|
-
|
|
2977
|
-
|
|
2941
|
+
'&$disabled': {
|
|
2942
|
+
color: Color.Dark100,
|
|
2943
|
+
backgroundColor: Color.Silver400
|
|
2978
2944
|
}
|
|
2945
|
+
},
|
|
2946
|
+
'&$disabled': {
|
|
2947
|
+
opacity: undefined,
|
|
2948
|
+
color: Color.Dark100
|
|
2979
2949
|
}
|
|
2980
2950
|
}
|
|
2981
|
-
};
|
|
2951
|
+
}; // Remove `Object.assign` after official release of `PaginationItem`.
|
|
2952
|
+
|
|
2953
|
+
Object.assign(theme.props, {
|
|
2954
|
+
MuiPaginationItem: props
|
|
2955
|
+
});
|
|
2956
|
+
Object.assign(theme.overrides, {
|
|
2957
|
+
MuiPaginationItem: overrides
|
|
2958
|
+
});
|
|
2982
2959
|
}
|
|
2983
2960
|
|
|
2984
2961
|
function overridePaper(theme) {
|
|
2985
|
-
theme.
|
|
2986
|
-
|
|
2987
|
-
|
|
2988
|
-
|
|
2989
|
-
|
|
2990
|
-
|
|
2991
|
-
border: "1px solid ".concat(Color.Silver400)
|
|
2992
|
-
}
|
|
2962
|
+
theme.props.MuiPaper = {
|
|
2963
|
+
elevation: 0
|
|
2964
|
+
};
|
|
2965
|
+
theme.overrides.MuiPaper = {
|
|
2966
|
+
elevation0: {
|
|
2967
|
+
border: "1px solid ".concat(Color.Silver400)
|
|
2993
2968
|
}
|
|
2994
2969
|
};
|
|
2995
2970
|
}
|
|
2996
2971
|
|
|
2997
2972
|
function overrideRadio(theme) {
|
|
2998
|
-
theme.
|
|
2999
|
-
|
|
3000
|
-
|
|
3001
|
-
|
|
3002
|
-
|
|
3003
|
-
|
|
3004
|
-
|
|
3005
|
-
|
|
3006
|
-
|
|
3007
|
-
stroke: "currentColor"
|
|
3008
|
-
})
|
|
3009
|
-
}),
|
|
3010
|
-
checkedIcon: /*#__PURE__*/jsxs(SvgIcon, {
|
|
3011
|
-
children: [/*#__PURE__*/jsx("circle", {
|
|
3012
|
-
cx: "12",
|
|
3013
|
-
cy: "12",
|
|
3014
|
-
r: "8.5",
|
|
3015
|
-
fill: "currentColor",
|
|
3016
|
-
stroke: "currentColor"
|
|
3017
|
-
}), /*#__PURE__*/jsx("circle", {
|
|
3018
|
-
cx: "12",
|
|
3019
|
-
cy: "12",
|
|
3020
|
-
r: "4",
|
|
3021
|
-
fill: Color.White
|
|
3022
|
-
})]
|
|
2973
|
+
theme.props.MuiRadio = {
|
|
2974
|
+
color: 'primary',
|
|
2975
|
+
icon: /*#__PURE__*/jsx(SvgIcon, {
|
|
2976
|
+
children: /*#__PURE__*/jsx("circle", {
|
|
2977
|
+
cx: "12",
|
|
2978
|
+
cy: "12",
|
|
2979
|
+
r: "8.5",
|
|
2980
|
+
fill: Color.White,
|
|
2981
|
+
stroke: "currentColor"
|
|
3023
2982
|
})
|
|
2983
|
+
}),
|
|
2984
|
+
checkedIcon: /*#__PURE__*/jsxs(SvgIcon, {
|
|
2985
|
+
children: [/*#__PURE__*/jsx("circle", {
|
|
2986
|
+
cx: "12",
|
|
2987
|
+
cy: "12",
|
|
2988
|
+
r: "8.5",
|
|
2989
|
+
fill: "currentColor",
|
|
2990
|
+
stroke: "currentColor"
|
|
2991
|
+
}), /*#__PURE__*/jsx("circle", {
|
|
2992
|
+
cx: "12",
|
|
2993
|
+
cy: "12",
|
|
2994
|
+
r: "4",
|
|
2995
|
+
fill: Color.White
|
|
2996
|
+
})]
|
|
2997
|
+
})
|
|
2998
|
+
};
|
|
2999
|
+
theme.overrides.MuiRadio = {
|
|
3000
|
+
root: {
|
|
3001
|
+
color: Color.Dark100,
|
|
3002
|
+
marginTop: theme.spacing(-0.625),
|
|
3003
|
+
marginBottom: theme.spacing(-0.625)
|
|
3024
3004
|
},
|
|
3025
|
-
|
|
3026
|
-
|
|
3027
|
-
color: Color.
|
|
3028
|
-
marginTop: theme.spacing(-0.625),
|
|
3029
|
-
marginBottom: theme.spacing(-0.625)
|
|
3005
|
+
colorPrimary: {
|
|
3006
|
+
'&$checked$disabled': {
|
|
3007
|
+
color: Color.Silver500
|
|
3030
3008
|
},
|
|
3031
|
-
|
|
3032
|
-
|
|
3033
|
-
color: Color.Silver500
|
|
3034
|
-
},
|
|
3035
|
-
["&:hover:not(.".concat(radioClasses.checked, ")")]: {
|
|
3036
|
-
color: Color.Dark100
|
|
3037
|
-
}
|
|
3009
|
+
'&:hover:not($checked)': {
|
|
3010
|
+
color: Color.Dark100
|
|
3038
3011
|
}
|
|
3039
3012
|
}
|
|
3040
3013
|
};
|
|
3041
3014
|
}
|
|
3042
3015
|
|
|
3043
3016
|
function overrideSnackbar(theme) {
|
|
3044
|
-
theme.
|
|
3045
|
-
|
|
3046
|
-
|
|
3047
|
-
|
|
3048
|
-
|
|
3049
|
-
}
|
|
3050
|
-
},
|
|
3051
|
-
styleOverrides: {
|
|
3052
|
-
anchorOriginBottomCenter: {
|
|
3053
|
-
left: 0,
|
|
3054
|
-
right: 0,
|
|
3055
|
-
bottom: 0
|
|
3056
|
-
}
|
|
3017
|
+
theme.overrides.MuiSnackbar = {
|
|
3018
|
+
anchorOriginBottomCenter: {
|
|
3019
|
+
left: 0,
|
|
3020
|
+
right: 0,
|
|
3021
|
+
bottom: 0
|
|
3057
3022
|
}
|
|
3058
3023
|
};
|
|
3059
|
-
theme.
|
|
3060
|
-
|
|
3061
|
-
|
|
3062
|
-
|
|
3063
|
-
|
|
3064
|
-
|
|
3065
|
-
|
|
3066
|
-
|
|
3067
|
-
|
|
3068
|
-
borderRadius: theme.spacing(0.5)
|
|
3069
|
-
}
|
|
3070
|
-
},
|
|
3071
|
-
message: {
|
|
3072
|
-
flex: 1,
|
|
3073
|
-
display: 'flex'
|
|
3024
|
+
theme.overrides.MuiSnackbarContent = {
|
|
3025
|
+
root: {
|
|
3026
|
+
width: '100%',
|
|
3027
|
+
borderRadius: 0,
|
|
3028
|
+
minHeight: theme.spacing(7.5),
|
|
3029
|
+
[theme.breakpoints.up('sm')]: {
|
|
3030
|
+
width: theme.spacing(54),
|
|
3031
|
+
maxWidth: theme.spacing(54),
|
|
3032
|
+
borderRadius: theme.spacing(0.5)
|
|
3074
3033
|
}
|
|
3034
|
+
},
|
|
3035
|
+
message: {
|
|
3036
|
+
flex: 1,
|
|
3037
|
+
display: 'flex'
|
|
3075
3038
|
}
|
|
3076
3039
|
};
|
|
3077
3040
|
}
|
|
3078
3041
|
|
|
3079
3042
|
function overrideSvgIcon(theme) {
|
|
3080
3043
|
var sm = theme.breakpoints.up('sm');
|
|
3081
|
-
theme.
|
|
3082
|
-
|
|
3083
|
-
|
|
3084
|
-
|
|
3085
|
-
|
|
3086
|
-
|
|
3087
|
-
|
|
3088
|
-
|
|
3089
|
-
|
|
3090
|
-
|
|
3091
|
-
|
|
3092
|
-
|
|
3093
|
-
fontSize: 'inherit'
|
|
3094
|
-
}
|
|
3095
|
-
},
|
|
3096
|
-
fontSizeSmall: {
|
|
3097
|
-
fontSize: 'var(--mui-svg-icon-size, 24px)',
|
|
3098
|
-
[sm]: {
|
|
3099
|
-
fontSize: 'var(--mui-svg-icon-size, 16px)'
|
|
3100
|
-
}
|
|
3101
|
-
},
|
|
3102
|
-
fontSizeLarge: {
|
|
3103
|
-
'&': {
|
|
3104
|
-
fontSize: 'var(--mui-svg-icon-size, 32px)'
|
|
3105
|
-
}
|
|
3106
|
-
},
|
|
3107
|
-
colorAction: {
|
|
3108
|
-
color: Color.Dark100
|
|
3044
|
+
theme.overrides.MuiSvgIcon = {
|
|
3045
|
+
root: {
|
|
3046
|
+
display: 'inherit',
|
|
3047
|
+
fontSize: 'var(--mui-svg-icon-size, 32px)',
|
|
3048
|
+
[sm]: {
|
|
3049
|
+
fontSize: 'var(--mui-svg-icon-size, 24px)'
|
|
3050
|
+
}
|
|
3051
|
+
},
|
|
3052
|
+
fontSizeSmall: {
|
|
3053
|
+
fontSize: 'var(--mui-svg-icon-size, 24px)',
|
|
3054
|
+
[sm]: {
|
|
3055
|
+
fontSize: 'var(--mui-svg-icon-size, 16px)'
|
|
3109
3056
|
}
|
|
3057
|
+
},
|
|
3058
|
+
fontSizeLarge: {
|
|
3059
|
+
fontSize: 'var(--mui-svg-icon-size, 32px)'
|
|
3060
|
+
},
|
|
3061
|
+
colorAction: {
|
|
3062
|
+
color: Color.Dark100
|
|
3110
3063
|
}
|
|
3111
3064
|
};
|
|
3112
3065
|
}
|
|
3113
3066
|
|
|
3114
3067
|
function overrideSwitch(theme) {
|
|
3115
3068
|
var sm = theme.breakpoints.up('sm');
|
|
3116
|
-
theme.
|
|
3117
|
-
|
|
3118
|
-
|
|
3119
|
-
|
|
3120
|
-
|
|
3121
|
-
|
|
3122
|
-
|
|
3123
|
-
|
|
3124
|
-
|
|
3125
|
-
|
|
3126
|
-
|
|
3127
|
-
|
|
3128
|
-
|
|
3129
|
-
|
|
3130
|
-
|
|
3131
|
-
|
|
3069
|
+
theme.props.MuiSwitch = {
|
|
3070
|
+
color: 'primary',
|
|
3071
|
+
disableRipple: true,
|
|
3072
|
+
disableFocusRipple: true
|
|
3073
|
+
};
|
|
3074
|
+
theme.overrides.MuiSwitch = {
|
|
3075
|
+
root: {
|
|
3076
|
+
width: theme.spacing(9.5),
|
|
3077
|
+
height: theme.spacing(5.5),
|
|
3078
|
+
padding: theme.spacing(0.75, 1.5),
|
|
3079
|
+
[sm]: {
|
|
3080
|
+
width: theme.spacing(8),
|
|
3081
|
+
height: theme.spacing(4),
|
|
3082
|
+
padding: theme.spacing(0.5, 1.5)
|
|
3083
|
+
}
|
|
3084
|
+
},
|
|
3085
|
+
track: {
|
|
3086
|
+
opacity: undefined,
|
|
3087
|
+
boxShadow: "0 0 0 0 ".concat(Color.Transparent),
|
|
3088
|
+
transition: theme.transitions.create(['box-shadow', 'background-color'], {
|
|
3089
|
+
duration: theme.transitions.duration.shortest
|
|
3090
|
+
}),
|
|
3091
|
+
borderRadius: theme.spacing(2),
|
|
3092
|
+
[sm]: {
|
|
3093
|
+
borderRadius: theme.spacing(1.625)
|
|
3094
|
+
}
|
|
3095
|
+
},
|
|
3096
|
+
thumb: {
|
|
3097
|
+
color: Color.White,
|
|
3098
|
+
boxShadow: undefined,
|
|
3099
|
+
width: theme.spacing(3),
|
|
3100
|
+
height: theme.spacing(3),
|
|
3101
|
+
[sm]: {
|
|
3102
|
+
width: theme.spacing(2),
|
|
3103
|
+
height: theme.spacing(2)
|
|
3104
|
+
}
|
|
3105
|
+
},
|
|
3106
|
+
switchBase: {
|
|
3107
|
+
left: theme.spacing(1),
|
|
3108
|
+
padding: theme.spacing(1.25, 1),
|
|
3109
|
+
[sm]: {
|
|
3110
|
+
padding: theme.spacing(1)
|
|
3132
3111
|
},
|
|
3133
|
-
|
|
3134
|
-
|
|
3135
|
-
boxShadow: "0 0 0 0 ".concat(Color.Transparent),
|
|
3136
|
-
transition: theme.transitions.create(['box-shadow', 'background-color'], {
|
|
3137
|
-
duration: theme.transitions.duration.shortest
|
|
3138
|
-
}),
|
|
3139
|
-
borderRadius: theme.spacing(2),
|
|
3112
|
+
'&$checked': {
|
|
3113
|
+
transform: "translateX(".concat(theme.spacing(2.5), "px)"),
|
|
3140
3114
|
[sm]: {
|
|
3141
|
-
|
|
3115
|
+
transform: "translateX(".concat(theme.spacing(2), "px)")
|
|
3142
3116
|
}
|
|
3143
3117
|
},
|
|
3144
|
-
|
|
3145
|
-
|
|
3146
|
-
boxShadow: 'none',
|
|
3147
|
-
width: theme.spacing(3),
|
|
3148
|
-
height: theme.spacing(3),
|
|
3149
|
-
[sm]: {
|
|
3150
|
-
width: theme.spacing(2),
|
|
3151
|
-
height: theme.spacing(2)
|
|
3152
|
-
}
|
|
3118
|
+
'&$checked + $track': {
|
|
3119
|
+
opacity: undefined
|
|
3153
3120
|
},
|
|
3154
|
-
|
|
3155
|
-
|
|
3156
|
-
|
|
3157
|
-
|
|
3158
|
-
|
|
3159
|
-
|
|
3160
|
-
|
|
3161
|
-
|
|
3162
|
-
|
|
3163
|
-
|
|
3121
|
+
'&$disabled + $track': {
|
|
3122
|
+
opacity: undefined
|
|
3123
|
+
}
|
|
3124
|
+
},
|
|
3125
|
+
colorPrimary: {
|
|
3126
|
+
'&$checked': {
|
|
3127
|
+
color: undefined,
|
|
3128
|
+
'&:hover': {
|
|
3129
|
+
backgroundColor: undefined,
|
|
3130
|
+
'& + $track': {
|
|
3131
|
+
backgroundColor: Color.Blue400
|
|
3164
3132
|
}
|
|
3165
|
-
},
|
|
3166
|
-
["&.".concat(switchClasses.checked, " + .").concat(switchClasses.track)]: {
|
|
3167
|
-
opacity: 1
|
|
3168
|
-
},
|
|
3169
|
-
["&.".concat(switchClasses.disabled, " + .").concat(switchClasses.track)]: {
|
|
3170
|
-
opacity: 1
|
|
3171
3133
|
}
|
|
3172
3134
|
},
|
|
3173
|
-
|
|
3174
|
-
|
|
3175
|
-
|
|
3176
|
-
|
|
3177
|
-
|
|
3178
|
-
|
|
3179
|
-
|
|
3180
|
-
|
|
3181
|
-
|
|
3182
|
-
|
|
3183
|
-
|
|
3184
|
-
|
|
3185
|
-
|
|
3186
|
-
|
|
3187
|
-
["&.".concat(switchClasses.checked, ".").concat(switchClasses.disabled, " + .").concat(switchClasses.track)]: {
|
|
3188
|
-
backgroundColor: Color.Blue100
|
|
3189
|
-
},
|
|
3190
|
-
["&:hover + .".concat(switchClasses.track)]: {
|
|
3191
|
-
backgroundColor: Color.Dark100
|
|
3192
|
-
},
|
|
3193
|
-
["&.Mui-focusVisible + .".concat(switchClasses.track)]: {
|
|
3194
|
-
boxShadow: "0 0 0 3px ".concat(Color.Blue100)
|
|
3195
|
-
}
|
|
3135
|
+
'& + $track': {
|
|
3136
|
+
backgroundColor: Color.Silver500
|
|
3137
|
+
},
|
|
3138
|
+
'&$disabled + $track': {
|
|
3139
|
+
backgroundColor: Color.Silver300
|
|
3140
|
+
},
|
|
3141
|
+
'&$checked$disabled + $track': {
|
|
3142
|
+
backgroundColor: Color.Blue100
|
|
3143
|
+
},
|
|
3144
|
+
'&:hover + $track': {
|
|
3145
|
+
backgroundColor: Color.Dark100
|
|
3146
|
+
},
|
|
3147
|
+
'&.Mui-focusVisible + $track': {
|
|
3148
|
+
boxShadow: "0 0 0 3px ".concat(Color.Blue100)
|
|
3196
3149
|
}
|
|
3197
3150
|
}
|
|
3198
3151
|
};
|
|
3199
3152
|
}
|
|
3200
3153
|
|
|
3201
3154
|
function overrideTabs(theme) {
|
|
3202
|
-
theme.
|
|
3203
|
-
|
|
3204
|
-
|
|
3205
|
-
|
|
3206
|
-
|
|
3207
|
-
|
|
3208
|
-
|
|
3209
|
-
|
|
3210
|
-
|
|
3211
|
-
|
|
3212
|
-
|
|
3213
|
-
|
|
3214
|
-
|
|
3215
|
-
|
|
3216
|
-
|
|
3217
|
-
|
|
3218
|
-
})
|
|
3219
|
-
}
|
|
3155
|
+
theme.props.MuiTabs = {
|
|
3156
|
+
variant: 'scrollable',
|
|
3157
|
+
textColor: 'primary',
|
|
3158
|
+
indicatorColor: 'primary'
|
|
3159
|
+
};
|
|
3160
|
+
theme.overrides.MuiTabs = {
|
|
3161
|
+
root: {
|
|
3162
|
+
minHeight: theme.spacing(6)
|
|
3163
|
+
},
|
|
3164
|
+
scrollButtons: {
|
|
3165
|
+
opacity: 1,
|
|
3166
|
+
color: Color.Dark100,
|
|
3167
|
+
width: theme.spacing(4),
|
|
3168
|
+
transition: theme.transitions.create('opacity', {
|
|
3169
|
+
duration: theme.transitions.duration.short
|
|
3170
|
+
})
|
|
3220
3171
|
}
|
|
3221
3172
|
};
|
|
3222
|
-
theme.
|
|
3223
|
-
|
|
3224
|
-
|
|
3225
|
-
|
|
3226
|
-
|
|
3227
|
-
duration: theme.transitions.duration.short
|
|
3228
|
-
}),
|
|
3229
|
-
[theme.breakpoints.up('sm')]: {
|
|
3230
|
-
minWidth: 'unset',
|
|
3231
|
-
fontSize: 'unset',
|
|
3232
|
-
padding: theme.spacing(0.75, 3)
|
|
3233
|
-
}
|
|
3173
|
+
theme.overrides.MuiTab = {
|
|
3174
|
+
root: _objectSpread(_objectSpread({}, theme.typography.body2), {}, {
|
|
3175
|
+
minHeight: theme.spacing(6),
|
|
3176
|
+
transition: theme.transitions.create(['color'], {
|
|
3177
|
+
duration: theme.transitions.duration.short
|
|
3234
3178
|
}),
|
|
3235
|
-
|
|
3236
|
-
|
|
3237
|
-
|
|
3238
|
-
|
|
3239
|
-
|
|
3179
|
+
[theme.breakpoints.up('sm')]: {
|
|
3180
|
+
minWidth: undefined,
|
|
3181
|
+
fontSize: undefined,
|
|
3182
|
+
padding: theme.spacing(0.75, 3)
|
|
3183
|
+
}
|
|
3184
|
+
}),
|
|
3185
|
+
textColorPrimary: {
|
|
3186
|
+
color: Color.Dark500,
|
|
3187
|
+
'&:hover, &:focus': {
|
|
3188
|
+
color: Color.Blue300
|
|
3240
3189
|
}
|
|
3241
3190
|
}
|
|
3242
3191
|
};
|
|
@@ -3253,248 +3202,223 @@ var SelectIcon = /*#__PURE__*/forwardRef((props, ref) => /*#__PURE__*/jsx(SvgIco
|
|
|
3253
3202
|
if (process.env.NODE_ENV !== "production") SelectIcon.displayName = "SelectIcon";
|
|
3254
3203
|
function overrideTextField(theme) {
|
|
3255
3204
|
var sm = theme.breakpoints.up('sm');
|
|
3256
|
-
theme.
|
|
3257
|
-
|
|
3258
|
-
|
|
3259
|
-
|
|
3260
|
-
variant: 'outlined'
|
|
3261
|
-
}
|
|
3205
|
+
theme.props.MuiTextField = {
|
|
3206
|
+
minRows: 4,
|
|
3207
|
+
maxRows: 4,
|
|
3208
|
+
variant: 'outlined'
|
|
3262
3209
|
};
|
|
3263
|
-
theme.
|
|
3264
|
-
|
|
3265
|
-
|
|
3266
|
-
|
|
3267
|
-
|
|
3268
|
-
color: Color.Dark400
|
|
3269
|
-
},
|
|
3270
|
-
["&.".concat(formLabelClasses.focused)]: {
|
|
3271
|
-
color: Color.Dark400
|
|
3272
|
-
},
|
|
3273
|
-
["&.".concat(formLabelClasses.disabled)]: {
|
|
3274
|
-
color: Color.Dark400
|
|
3275
|
-
}
|
|
3276
|
-
})
|
|
3277
|
-
}
|
|
3278
|
-
};
|
|
3279
|
-
theme.components.MuiInputBase = {
|
|
3280
|
-
styleOverrides: {
|
|
3281
|
-
root: _objectSpread(_objectSpread({}, theme.typography.body2), {}, {
|
|
3282
|
-
["&.".concat(inputBaseClasses.disabled)]: {
|
|
3283
|
-
backgroundColor: Color.Silver100
|
|
3284
|
-
}
|
|
3285
|
-
}),
|
|
3286
|
-
input: {
|
|
3287
|
-
textOverflow: 'ellipsis',
|
|
3288
|
-
height: theme.spacing(3),
|
|
3289
|
-
[sm]: {
|
|
3290
|
-
height: theme.spacing(2.5)
|
|
3291
|
-
}
|
|
3210
|
+
theme.overrides.MuiFormLabel = {
|
|
3211
|
+
root: _objectSpread(_objectSpread({}, theme.typography.body2), {}, {
|
|
3212
|
+
color: Color.Dark400,
|
|
3213
|
+
'&$error': {
|
|
3214
|
+
color: undefined
|
|
3292
3215
|
},
|
|
3293
|
-
|
|
3294
|
-
|
|
3216
|
+
'&$focused': {
|
|
3217
|
+
color: undefined
|
|
3218
|
+
},
|
|
3219
|
+
'&$disabled': {
|
|
3220
|
+
color: undefined
|
|
3295
3221
|
}
|
|
3222
|
+
})
|
|
3223
|
+
};
|
|
3224
|
+
theme.overrides.MuiInputBase = {
|
|
3225
|
+
root: _objectSpread(_objectSpread({}, theme.typography.body2), {}, {
|
|
3226
|
+
'&$disabled': {
|
|
3227
|
+
backgroundColor: Color.Silver100
|
|
3228
|
+
}
|
|
3229
|
+
}),
|
|
3230
|
+
input: {
|
|
3231
|
+
textOverflow: 'ellipsis',
|
|
3232
|
+
height: theme.spacing(3),
|
|
3233
|
+
[sm]: {
|
|
3234
|
+
height: theme.spacing(2.5)
|
|
3235
|
+
}
|
|
3236
|
+
},
|
|
3237
|
+
inputMultiline: {
|
|
3238
|
+
resize: 'vertical'
|
|
3296
3239
|
}
|
|
3297
3240
|
};
|
|
3298
|
-
theme.
|
|
3299
|
-
|
|
3300
|
-
|
|
3301
|
-
|
|
3302
|
-
|
|
3303
|
-
|
|
3304
|
-
|
|
3305
|
-
|
|
3306
|
-
|
|
3307
|
-
|
|
3308
|
-
|
|
3309
|
-
|
|
3310
|
-
|
|
3311
|
-
|
|
3312
|
-
|
|
3313
|
-
|
|
3314
|
-
|
|
3315
|
-
|
|
3316
|
-
|
|
3317
|
-
|
|
3318
|
-
|
|
3319
|
-
|
|
3320
|
-
|
|
3241
|
+
theme.props.MuiInputLabel = {
|
|
3242
|
+
shrink: true
|
|
3243
|
+
};
|
|
3244
|
+
theme.overrides.MuiInputLabel = {
|
|
3245
|
+
root: {
|
|
3246
|
+
marginBottom: theme.spacing(0.5),
|
|
3247
|
+
transformOrigin: undefined
|
|
3248
|
+
},
|
|
3249
|
+
formControl: {
|
|
3250
|
+
top: undefined,
|
|
3251
|
+
left: undefined,
|
|
3252
|
+
position: undefined,
|
|
3253
|
+
transform: undefined
|
|
3254
|
+
},
|
|
3255
|
+
shrink: {
|
|
3256
|
+
transform: undefined,
|
|
3257
|
+
transformOrigin: undefined
|
|
3258
|
+
},
|
|
3259
|
+
outlined: {
|
|
3260
|
+
zIndex: undefined,
|
|
3261
|
+
transform: undefined,
|
|
3262
|
+
pointerEvents: undefined,
|
|
3263
|
+
'&$shrink': {
|
|
3264
|
+
transform: undefined
|
|
3321
3265
|
}
|
|
3322
3266
|
}
|
|
3323
3267
|
};
|
|
3324
|
-
theme.
|
|
3325
|
-
|
|
3326
|
-
|
|
3327
|
-
|
|
3328
|
-
|
|
3329
|
-
|
|
3330
|
-
|
|
3331
|
-
|
|
3332
|
-
|
|
3333
|
-
|
|
3334
|
-
|
|
3335
|
-
|
|
3336
|
-
[sm]: {
|
|
3337
|
-
padding: theme.spacing(0.75, 1)
|
|
3338
|
-
},
|
|
3339
|
-
'&.MuiInputBase-inputAdornedStart': {
|
|
3340
|
-
paddingLeft: 0
|
|
3341
|
-
},
|
|
3342
|
-
'&.MuiInputBase-inputAdornedEnd': {
|
|
3343
|
-
paddingRight: 0
|
|
3344
|
-
}
|
|
3345
|
-
},
|
|
3346
|
-
inputMultiline: {
|
|
3347
|
-
padding: 0,
|
|
3348
|
-
[sm]: {
|
|
3349
|
-
padding: 0
|
|
3350
|
-
}
|
|
3351
|
-
},
|
|
3352
|
-
multiline: {
|
|
3268
|
+
theme.props.MuiOutlinedInput = {
|
|
3269
|
+
notched: false
|
|
3270
|
+
};
|
|
3271
|
+
theme.overrides.MuiOutlinedInput = {
|
|
3272
|
+
root: {
|
|
3273
|
+
'&:hover $notchedOutline': {
|
|
3274
|
+
borderColor: undefined
|
|
3275
|
+
}
|
|
3276
|
+
},
|
|
3277
|
+
input: {
|
|
3278
|
+
padding: theme.spacing(1.25, 1.5),
|
|
3279
|
+
[sm]: {
|
|
3353
3280
|
padding: theme.spacing(0.75, 1)
|
|
3354
|
-
}
|
|
3355
|
-
|
|
3356
|
-
|
|
3357
|
-
|
|
3358
|
-
|
|
3359
|
-
|
|
3360
|
-
|
|
3361
|
-
|
|
3362
|
-
|
|
3363
|
-
|
|
3364
|
-
|
|
3365
|
-
|
|
3366
|
-
|
|
3281
|
+
}
|
|
3282
|
+
},
|
|
3283
|
+
multiline: {
|
|
3284
|
+
padding: theme.spacing(0.75, 1)
|
|
3285
|
+
},
|
|
3286
|
+
adornedStart: {
|
|
3287
|
+
paddingLeft: theme.spacing(1)
|
|
3288
|
+
},
|
|
3289
|
+
adornedEnd: {
|
|
3290
|
+
paddingRight: theme.spacing(1)
|
|
3291
|
+
},
|
|
3292
|
+
notchedOutline: {
|
|
3293
|
+
top: 0,
|
|
3294
|
+
borderColor: Color.Silver500,
|
|
3295
|
+
'& legend': {
|
|
3296
|
+
display: 'none'
|
|
3367
3297
|
}
|
|
3368
3298
|
}
|
|
3369
3299
|
};
|
|
3370
|
-
theme.
|
|
3371
|
-
|
|
3372
|
-
|
|
3373
|
-
|
|
3374
|
-
|
|
3375
|
-
|
|
3376
|
-
|
|
3377
|
-
|
|
3378
|
-
color: Color.Dark100
|
|
3379
|
-
},
|
|
3380
|
-
fontSize: theme.spacing(3),
|
|
3381
|
-
[sm]: {
|
|
3382
|
-
fontSize: theme.spacing(2)
|
|
3383
|
-
}
|
|
3384
|
-
},
|
|
3385
|
-
iconOutlined: {
|
|
3386
|
-
right: theme.spacing(1.5),
|
|
3387
|
-
[sm]: {
|
|
3388
|
-
right: theme.spacing(1)
|
|
3389
|
-
}
|
|
3300
|
+
theme.props.MuiSelect = {
|
|
3301
|
+
IconComponent: SelectIcon
|
|
3302
|
+
};
|
|
3303
|
+
theme.overrides.MuiSelect = {
|
|
3304
|
+
icon: {
|
|
3305
|
+
top: 'calc(50% - 0.5em)',
|
|
3306
|
+
'$disabled &': {
|
|
3307
|
+
color: Color.Dark100
|
|
3390
3308
|
},
|
|
3391
|
-
|
|
3309
|
+
fontSize: theme.spacing(3),
|
|
3310
|
+
[sm]: {
|
|
3311
|
+
fontSize: theme.spacing(2)
|
|
3312
|
+
}
|
|
3313
|
+
},
|
|
3314
|
+
iconOutlined: {
|
|
3315
|
+
right: theme.spacing(1.5),
|
|
3316
|
+
[sm]: {
|
|
3317
|
+
right: theme.spacing(1)
|
|
3318
|
+
}
|
|
3319
|
+
},
|
|
3320
|
+
select: {
|
|
3321
|
+
'&:focus': {
|
|
3322
|
+
backgroundColor: undefined
|
|
3323
|
+
}
|
|
3324
|
+
},
|
|
3325
|
+
selectMenu: {
|
|
3326
|
+
'&&': {
|
|
3392
3327
|
paddingRight: theme.spacing(4.5),
|
|
3393
3328
|
[sm]: {
|
|
3394
3329
|
right: theme.spacing(4)
|
|
3395
|
-
},
|
|
3396
|
-
'&:focus': {
|
|
3397
|
-
backgroundColor: 'unset'
|
|
3398
3330
|
}
|
|
3399
3331
|
}
|
|
3400
3332
|
}
|
|
3401
3333
|
};
|
|
3402
|
-
theme.
|
|
3403
|
-
|
|
3404
|
-
root: {
|
|
3405
|
-
|
|
3406
|
-
|
|
3407
|
-
|
|
3408
|
-
fontSize: theme.spacing(2.5)
|
|
3409
|
-
}
|
|
3410
|
-
},
|
|
3411
|
-
'& .MuiIconButton-root': {
|
|
3412
|
-
padding: theme.spacing(1)
|
|
3334
|
+
theme.overrides.MuiInputAdornment = {
|
|
3335
|
+
root: {
|
|
3336
|
+
'& .MuiSvgIcon-root:not(.MuiSvgIcon-fontSizeSmall)': {
|
|
3337
|
+
fontSize: theme.spacing(3),
|
|
3338
|
+
[sm]: {
|
|
3339
|
+
fontSize: theme.spacing(2.5)
|
|
3413
3340
|
}
|
|
3414
3341
|
},
|
|
3415
|
-
|
|
3416
|
-
|
|
3417
|
-
|
|
3418
|
-
|
|
3419
|
-
|
|
3420
|
-
|
|
3342
|
+
'& .MuiIconButton-root': {
|
|
3343
|
+
padding: theme.spacing(1)
|
|
3344
|
+
}
|
|
3345
|
+
},
|
|
3346
|
+
positionStart: {
|
|
3347
|
+
'& .MuiIconButton-root': {
|
|
3348
|
+
marginLeft: theme.spacing(-0.5),
|
|
3349
|
+
[sm]: {
|
|
3350
|
+
marginLeft: theme.spacing(-0.75)
|
|
3421
3351
|
}
|
|
3422
|
-
}
|
|
3423
|
-
|
|
3424
|
-
|
|
3425
|
-
|
|
3426
|
-
|
|
3427
|
-
|
|
3428
|
-
|
|
3352
|
+
}
|
|
3353
|
+
},
|
|
3354
|
+
positionEnd: {
|
|
3355
|
+
'& .MuiIconButton-root': {
|
|
3356
|
+
marginRight: theme.spacing(-0.5),
|
|
3357
|
+
[sm]: {
|
|
3358
|
+
marginRight: theme.spacing(-0.75)
|
|
3429
3359
|
}
|
|
3430
3360
|
}
|
|
3431
3361
|
}
|
|
3432
3362
|
};
|
|
3433
|
-
theme.
|
|
3434
|
-
|
|
3435
|
-
|
|
3436
|
-
|
|
3437
|
-
|
|
3438
|
-
|
|
3439
|
-
|
|
3440
|
-
marginRight: 'unset'
|
|
3441
|
-
}
|
|
3363
|
+
theme.overrides.MuiFormHelperText = {
|
|
3364
|
+
root: _objectSpread(_objectSpread({}, theme.typography.body2), {}, {
|
|
3365
|
+
marginTop: theme.spacing(0.5)
|
|
3366
|
+
}),
|
|
3367
|
+
contained: {
|
|
3368
|
+
marginLeft: undefined,
|
|
3369
|
+
marginRight: undefined
|
|
3442
3370
|
}
|
|
3443
3371
|
};
|
|
3444
3372
|
}
|
|
3445
3373
|
|
|
3446
3374
|
function overrideToolbar(theme) {
|
|
3447
|
-
theme.
|
|
3448
|
-
|
|
3449
|
-
|
|
3450
|
-
|
|
3451
|
-
|
|
3452
|
-
|
|
3453
|
-
|
|
3454
|
-
|
|
3455
|
-
paddingRight: theme.spacing(2)
|
|
3456
|
-
}
|
|
3375
|
+
theme.overrides.MuiToolbar = {
|
|
3376
|
+
regular: {
|
|
3377
|
+
minHeight: theme.spacing(8)
|
|
3378
|
+
},
|
|
3379
|
+
gutters: {
|
|
3380
|
+
[theme.breakpoints.up('sm')]: {
|
|
3381
|
+
paddingLeft: theme.spacing(2),
|
|
3382
|
+
paddingRight: theme.spacing(2)
|
|
3457
3383
|
}
|
|
3458
3384
|
}
|
|
3459
3385
|
};
|
|
3460
3386
|
}
|
|
3461
3387
|
|
|
3462
3388
|
function overrideTooltip(theme) {
|
|
3463
|
-
theme.
|
|
3464
|
-
|
|
3465
|
-
|
|
3466
|
-
|
|
3467
|
-
|
|
3468
|
-
|
|
3469
|
-
|
|
3470
|
-
|
|
3471
|
-
|
|
3472
|
-
|
|
3473
|
-
|
|
3474
|
-
|
|
3475
|
-
|
|
3476
|
-
|
|
3477
|
-
|
|
3478
|
-
|
|
3479
|
-
|
|
3480
|
-
|
|
3481
|
-
|
|
3482
|
-
|
|
3483
|
-
|
|
3484
|
-
|
|
3485
|
-
borderBottomLeftRadius: 2
|
|
3486
|
-
}
|
|
3487
|
-
},
|
|
3488
|
-
["&[data-popper-placement*=\"bottom\"] .".concat(tooltipClasses.arrow)]: {
|
|
3489
|
-
'&::before': {
|
|
3490
|
-
borderTopLeftRadius: 2
|
|
3491
|
-
}
|
|
3389
|
+
theme.props.MuiTooltip = {
|
|
3390
|
+
arrow: true
|
|
3391
|
+
};
|
|
3392
|
+
theme.overrides.MuiTooltip = {
|
|
3393
|
+
tooltip: _objectSpread(_objectSpread({}, theme.typography.body2), {}, {
|
|
3394
|
+
padding: theme.spacing(1, 1.5),
|
|
3395
|
+
backgroundColor: Color.Dark400
|
|
3396
|
+
}),
|
|
3397
|
+
popperArrow: {
|
|
3398
|
+
'&[x-placement*="top"] $arrow': {
|
|
3399
|
+
'&::before': {
|
|
3400
|
+
borderBottomRightRadius: 2
|
|
3401
|
+
}
|
|
3402
|
+
},
|
|
3403
|
+
'&[x-placement*="left"] $arrow': {
|
|
3404
|
+
'&::before': {
|
|
3405
|
+
borderTopRightRadius: 2
|
|
3406
|
+
}
|
|
3407
|
+
},
|
|
3408
|
+
'&[x-placement*="right"] $arrow': {
|
|
3409
|
+
'&::before': {
|
|
3410
|
+
borderBottomLeftRadius: 2
|
|
3492
3411
|
}
|
|
3493
3412
|
},
|
|
3494
|
-
arrow: {
|
|
3495
|
-
|
|
3496
|
-
|
|
3413
|
+
'&[x-placement*="bottom"] $arrow': {
|
|
3414
|
+
'&::before': {
|
|
3415
|
+
borderTopLeftRadius: 2
|
|
3416
|
+
}
|
|
3497
3417
|
}
|
|
3418
|
+
},
|
|
3419
|
+
arrow: {
|
|
3420
|
+
color: Color.Dark400,
|
|
3421
|
+
fontSize: theme.spacing(1)
|
|
3498
3422
|
}
|
|
3499
3423
|
};
|
|
3500
3424
|
}
|
|
@@ -3604,18 +3528,8 @@ function createTypographyOptions(breakpoints) {
|
|
|
3604
3528
|
};
|
|
3605
3529
|
}
|
|
3606
3530
|
function overrideTypography(theme) {
|
|
3607
|
-
theme.
|
|
3608
|
-
|
|
3609
|
-
variant: 'body2'
|
|
3610
|
-
}
|
|
3611
|
-
};
|
|
3612
|
-
}
|
|
3613
|
-
|
|
3614
|
-
function overrideCssBaseline(theme) {
|
|
3615
|
-
theme.components.MuiCssBaseline = {
|
|
3616
|
-
styleOverrides: {
|
|
3617
|
-
body: _objectSpread({}, theme.typography.body2)
|
|
3618
|
-
}
|
|
3531
|
+
theme.props.MuiTypography = {
|
|
3532
|
+
variant: 'body2'
|
|
3619
3533
|
};
|
|
3620
3534
|
}
|
|
3621
3535
|
|
|
@@ -3638,39 +3552,39 @@ function createSuperDispatchTheme() {
|
|
|
3638
3552
|
text: {
|
|
3639
3553
|
primary: Color.Dark500,
|
|
3640
3554
|
secondary: Color.Dark200,
|
|
3641
|
-
|
|
3555
|
+
hint: Color.Dark100,
|
|
3642
3556
|
disabled: Color.Dark100
|
|
3643
3557
|
},
|
|
3644
3558
|
divider: Color.Silver400
|
|
3645
3559
|
},
|
|
3646
3560
|
typography: createTypographyOptions(breakpoints),
|
|
3647
|
-
|
|
3561
|
+
props: {},
|
|
3562
|
+
overrides: {}
|
|
3648
3563
|
});
|
|
3649
|
-
overrideCard(theme);
|
|
3650
|
-
overrideButton(theme);
|
|
3651
3564
|
overrideAppBar(theme);
|
|
3652
|
-
overridePaper(theme);
|
|
3653
|
-
overrideTooltip(theme);
|
|
3654
|
-
overrideSvgIcon(theme);
|
|
3655
|
-
overrideToolbar(theme);
|
|
3656
|
-
overrideIconButton(theme);
|
|
3657
|
-
overrideTypography(theme);
|
|
3658
|
-
overrideMenu(theme);
|
|
3659
|
-
overrideAvatar(theme);
|
|
3660
|
-
overrideTextField(theme);
|
|
3661
3565
|
overrideAutocomplete(theme);
|
|
3662
|
-
|
|
3566
|
+
overrideAvatar(theme);
|
|
3567
|
+
overrideButton(theme);
|
|
3568
|
+
overrideCard(theme);
|
|
3663
3569
|
overrideCheckbox(theme);
|
|
3664
|
-
overrideRadio(theme);
|
|
3665
|
-
overrideSwitch(theme);
|
|
3666
3570
|
overrideChip(theme);
|
|
3667
3571
|
overrideDialog(theme);
|
|
3668
3572
|
overrideDrawer(theme);
|
|
3669
|
-
|
|
3670
|
-
overrideList(theme);
|
|
3573
|
+
overrideIconButton(theme);
|
|
3671
3574
|
overrideLink(theme);
|
|
3575
|
+
overrideList(theme);
|
|
3576
|
+
overrideMenu(theme);
|
|
3577
|
+
overridePaper(theme);
|
|
3578
|
+
overrideRadio(theme);
|
|
3672
3579
|
overrideSnackbar(theme);
|
|
3580
|
+
overrideSvgIcon(theme);
|
|
3581
|
+
overrideSwitch(theme);
|
|
3673
3582
|
overrideTabs(theme);
|
|
3583
|
+
overrideTextField(theme);
|
|
3584
|
+
overrideToolbar(theme);
|
|
3585
|
+
overrideTooltip(theme);
|
|
3586
|
+
overrideTypography(theme);
|
|
3587
|
+
overridePagination(theme);
|
|
3674
3588
|
return theme;
|
|
3675
3589
|
}
|
|
3676
3590
|
|
|
@@ -3718,9 +3632,12 @@ function ThemeProvider(_ref) {
|
|
|
3718
3632
|
generateClassName: generateClassName,
|
|
3719
3633
|
children: /*#__PURE__*/jsxs(ThemeProvider$1, {
|
|
3720
3634
|
theme: theme,
|
|
3721
|
-
children: [/*#__PURE__*/jsx(CssBaseline, {}), /*#__PURE__*/jsx(
|
|
3722
|
-
|
|
3723
|
-
|
|
3635
|
+
children: [/*#__PURE__*/jsx(CssBaseline, {}), /*#__PURE__*/jsx(ThemeProvider$2, {
|
|
3636
|
+
theme: theme,
|
|
3637
|
+
children: /*#__PURE__*/jsx(ResponsiveContextProvider, {
|
|
3638
|
+
children: /*#__PURE__*/jsx(SnackbarStackProvider, {
|
|
3639
|
+
children: children
|
|
3640
|
+
})
|
|
3724
3641
|
})
|
|
3725
3642
|
})]
|
|
3726
3643
|
})
|
|
@@ -3731,13 +3648,12 @@ var PREVENT_COLLAPSE = 1;
|
|
|
3731
3648
|
|
|
3732
3649
|
function spaceVariant(theme, space) {
|
|
3733
3650
|
var gap = theme.spacing(space);
|
|
3734
|
-
var parsedGap = parseInt(gap);
|
|
3735
3651
|
return {
|
|
3736
3652
|
'&:before': {
|
|
3737
|
-
marginTop: -
|
|
3653
|
+
marginTop: -gap - PREVENT_COLLAPSE
|
|
3738
3654
|
},
|
|
3739
3655
|
'& > $container': {
|
|
3740
|
-
marginLeft: -
|
|
3656
|
+
marginLeft: -gap,
|
|
3741
3657
|
'& > $child > $childContainer': {
|
|
3742
3658
|
marginTop: gap,
|
|
3743
3659
|
marginLeft: gap
|
|
@@ -3752,7 +3668,7 @@ function columnVariant(columns) {
|
|
|
3752
3668
|
};
|
|
3753
3669
|
}
|
|
3754
3670
|
|
|
3755
|
-
var useStyles$
|
|
3671
|
+
var useStyles$d = /*#__PURE__*/makeStyles(theme => ({
|
|
3756
3672
|
root: {
|
|
3757
3673
|
paddingTop: PREVENT_COLLAPSE,
|
|
3758
3674
|
'&:before': {
|
|
@@ -3796,7 +3712,7 @@ var Tiles = /*#__PURE__*/forwardRef((_ref, ref) => {
|
|
|
3796
3712
|
space: spaceProp = 1,
|
|
3797
3713
|
columns: columnsProp = 1
|
|
3798
3714
|
} = _ref;
|
|
3799
|
-
var styles = useStyles$
|
|
3715
|
+
var styles = useStyles$d({});
|
|
3800
3716
|
var space = useResponsivePropRecord(spaceProp);
|
|
3801
3717
|
var columns = useResponsivePropRecord(columnsProp);
|
|
3802
3718
|
return /*#__PURE__*/jsx("div", {
|