@superdispatch/ui 0.21.5-alpha.4 → 0.21.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist-node/index.js +1359 -1442
- package/dist-node/index.js.map +1 -1
- package/dist-src/adaptive-toolbar/AdaptiveToolbar.js +12 -14
- package/dist-src/adaptive-vertical-toolbar/AdaptiveVerticalToolbar.js +3 -3
- package/dist-src/app-bar/AppBarOverrides.js +4 -6
- package/dist-src/autocomplete/AutocompleteOverrides.js +18 -14
- package/dist-src/avatar/AvatarOverrides.js +12 -14
- package/dist-src/avatar-button/AvatarButton.js +92 -80
- package/dist-src/button/Button.js +15 -11
- package/dist-src/button/ButtonOverrides.js +149 -147
- package/dist-src/card/CardOverrides.js +6 -10
- package/dist-src/card-button/CardButton.js +75 -78
- package/dist-src/checkbox/CheckboxField.js +1 -1
- package/dist-src/checkbox/CheckboxGroudField.js +1 -1
- package/dist-src/checkbox/CheckboxOverrides.js +50 -60
- package/dist-src/chip/ChipOverrides.js +85 -88
- package/dist-src/description-list/DescriptionList.js +55 -58
- package/dist-src/dialog/DialogOverrides.js +25 -31
- package/dist-src/drawer/DrawerActions.js +34 -32
- package/dist-src/drawer/DrawerContent.js +26 -10
- package/dist-src/drawer/DrawerList.js +27 -8
- package/dist-src/drawer/DrawerOverrides.js +10 -12
- package/dist-src/drawer/DrawerTitle.js +40 -46
- package/dist-src/dropdown-button/DropdownButton.js +1 -1
- package/dist-src/grid/GridStack.js +1 -1
- package/dist-src/grid/InlineGrid.js +2 -2
- package/dist-src/icon-button/IconButtonOverrides.js +32 -48
- package/dist-src/info-card/InfoCard.js +37 -27
- package/dist-src/link/LinkOverrides.js +26 -29
- package/dist-src/list/ListOverrides.js +7 -10
- package/dist-src/menu/MenuOverrides.js +14 -28
- package/dist-src/number-field/NumberField.js +3 -2
- package/dist-src/overflow-text/OverflowText.js +34 -35
- package/dist-src/pagination/PaginationOverrides.js +32 -27
- package/dist-src/paper/PaperOverrides.js +6 -8
- package/dist-src/radio/RadioField.js +1 -1
- package/dist-src/radio/RadioGroupField.js +1 -1
- package/dist-src/radio/RadioOverrides.js +36 -38
- package/dist-src/responsive/ResponsiveContext.js +1 -1
- package/dist-src/snackbar/Snackbar.js +1 -1
- package/dist-src/snackbar/SnackbarContent.js +3 -3
- package/dist-src/snackbar/SnackbarOverrides.js +18 -28
- package/dist-src/svg-icon/SvgIconOverrides.js +18 -28
- package/dist-src/switch/SwitchOverrides.js +71 -72
- package/dist-src/tabs/TabsOverrides.js +30 -34
- package/dist-src/tag/Tag.js +2 -2
- package/dist-src/text-field/TextFieldOverrides.js +137 -158
- package/dist-src/theme/ThemeProvider.js +28 -25
- package/dist-src/tiles/Tiles.js +3 -4
- package/dist-src/toolbar/ToolbarOverrides.js +8 -10
- package/dist-src/tooltip/TooltipOverrides.js +30 -33
- package/dist-src/typography/TypographyOverrides.js +2 -12
- package/dist-types/index.d.ts +381 -385
- package/dist-web/index.js +1291 -1374
- package/dist-web/index.js.map +1 -1
- package/package.json +39 -39
- package/dist-src/theme/CssBaselineOverrides.js +0 -8
package/dist-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 : '',
|
|
@@ -1713,15 +1737,16 @@ function NumberInputComponent(_ref) {
|
|
|
1713
1737
|
}));
|
|
1714
1738
|
}
|
|
1715
1739
|
|
|
1716
|
-
var NumberField = /*#__PURE__*/forwardRef(_ref2 => {
|
|
1740
|
+
var NumberField = /*#__PURE__*/forwardRef((_ref2, ref) => {
|
|
1717
1741
|
var {
|
|
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), {}, {
|
|
1749
|
+
ref: ref,
|
|
1725
1750
|
id: uid,
|
|
1726
1751
|
InputProps: _objectSpread(_objectSpread({}, InputProps), {}, {
|
|
1727
1752
|
inputComponent: NumberInputComponent
|
|
@@ -1731,7 +1756,7 @@ var NumberField = /*#__PURE__*/forwardRef(_ref2 => {
|
|
|
1731
1756
|
if (process.env.NODE_ENV !== "production") NumberField.displayName = "NumberField";
|
|
1732
1757
|
NumberField.displayName = 'NumberField';
|
|
1733
1758
|
|
|
1734
|
-
var _excluded$
|
|
1759
|
+
var _excluded$i = ["label", "error", "checked", "onBlur", "onChange", "helperText", "FormControlLabelProps"];
|
|
1735
1760
|
var RadioField = /*#__PURE__*/forwardRef((_ref, ref) => {
|
|
1736
1761
|
var {
|
|
1737
1762
|
label,
|
|
@@ -1742,7 +1767,7 @@ var RadioField = /*#__PURE__*/forwardRef((_ref, ref) => {
|
|
|
1742
1767
|
helperText,
|
|
1743
1768
|
FormControlLabelProps: formControlLabelProps
|
|
1744
1769
|
} = _ref,
|
|
1745
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
1770
|
+
props = _objectWithoutProperties(_ref, _excluded$i);
|
|
1746
1771
|
|
|
1747
1772
|
return /*#__PURE__*/jsxs(FormControl, {
|
|
1748
1773
|
error: error,
|
|
@@ -1762,7 +1787,7 @@ var RadioField = /*#__PURE__*/forwardRef((_ref, ref) => {
|
|
|
1762
1787
|
});
|
|
1763
1788
|
if (process.env.NODE_ENV !== "production") RadioField.displayName = "RadioField";
|
|
1764
1789
|
|
|
1765
|
-
var _excluded$
|
|
1790
|
+
var _excluded$j = ["name", "value", "onChange", "RadioGroupProps", "label", "FormLabelProps", "helperText", "FormHelperTextProps", "children"];
|
|
1766
1791
|
var RadioGroupField = /*#__PURE__*/forwardRef((_ref, ref) => {
|
|
1767
1792
|
var {
|
|
1768
1793
|
name,
|
|
@@ -1775,7 +1800,7 @@ var RadioGroupField = /*#__PURE__*/forwardRef((_ref, ref) => {
|
|
|
1775
1800
|
FormHelperTextProps: formHelperTextProps,
|
|
1776
1801
|
children
|
|
1777
1802
|
} = _ref,
|
|
1778
|
-
formControlProps = _objectWithoutProperties(_ref, _excluded$
|
|
1803
|
+
formControlProps = _objectWithoutProperties(_ref, _excluded$j);
|
|
1779
1804
|
|
|
1780
1805
|
return /*#__PURE__*/jsxs(FormControl, _objectSpread(_objectSpread({}, formControlProps), {}, {
|
|
1781
1806
|
hiddenLabel: !label,
|
|
@@ -1825,9 +1850,9 @@ function useMinBreakpoint(minBreakpoint) {
|
|
|
1825
1850
|
return minBreakpointIDX < breakpointIDX;
|
|
1826
1851
|
}
|
|
1827
1852
|
|
|
1828
|
-
var _excluded$
|
|
1829
|
-
_excluded2$
|
|
1830
|
-
var useStyles$
|
|
1853
|
+
var _excluded$k = ["action", "children", "onClose", "className", "classes", "variant"],
|
|
1854
|
+
_excluded2$4 = ["icon", "closeButton", "variantError", "variantSuccess"];
|
|
1855
|
+
var useStyles$b = /*#__PURE__*/makeStyles(theme => ({
|
|
1831
1856
|
root: {
|
|
1832
1857
|
color: Color.White,
|
|
1833
1858
|
backgroundColor: Color.Dark500,
|
|
@@ -1870,9 +1895,9 @@ var SnackbarContent = /*#__PURE__*/forwardRef((_ref, ref) => {
|
|
|
1870
1895
|
classes,
|
|
1871
1896
|
variant = 'default'
|
|
1872
1897
|
} = _ref,
|
|
1873
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
1898
|
+
props = _objectWithoutProperties(_ref, _excluded$k);
|
|
1874
1899
|
|
|
1875
|
-
var _useStyles = useStyles$
|
|
1900
|
+
var _useStyles = useStyles$b({
|
|
1876
1901
|
classes
|
|
1877
1902
|
}),
|
|
1878
1903
|
{
|
|
@@ -1881,7 +1906,7 @@ var SnackbarContent = /*#__PURE__*/forwardRef((_ref, ref) => {
|
|
|
1881
1906
|
variantError,
|
|
1882
1907
|
variantSuccess
|
|
1883
1908
|
} = _useStyles,
|
|
1884
|
-
styles = _objectWithoutProperties(_useStyles, _excluded2$
|
|
1909
|
+
styles = _objectWithoutProperties(_useStyles, _excluded2$4);
|
|
1885
1910
|
|
|
1886
1911
|
var Icon = variant === 'error' ? Warning : variant === 'success' ? CheckCircle : undefined;
|
|
1887
1912
|
return /*#__PURE__*/jsx(SnackbarContent$1, _objectSpread(_objectSpread({}, props), {}, {
|
|
@@ -1920,7 +1945,7 @@ var SnackbarContent = /*#__PURE__*/forwardRef((_ref, ref) => {
|
|
|
1920
1945
|
});
|
|
1921
1946
|
if (process.env.NODE_ENV !== "production") SnackbarContent.displayName = "SnackbarContent";
|
|
1922
1947
|
|
|
1923
|
-
var _excluded$
|
|
1948
|
+
var _excluded$l = ["open", "action", "variant", "onClose", "children", "ContentProps", "hasCloseButton", "TransitionComponent"];
|
|
1924
1949
|
|
|
1925
1950
|
function SlideTransition(props) {
|
|
1926
1951
|
return /*#__PURE__*/jsx(Slide, _objectSpread(_objectSpread({}, props), {}, {
|
|
@@ -1939,7 +1964,7 @@ var Snackbar = /*#__PURE__*/forwardRef((_ref, ref) => {
|
|
|
1939
1964
|
hasCloseButton = onClose != null,
|
|
1940
1965
|
TransitionComponent = SlideTransition
|
|
1941
1966
|
} = _ref,
|
|
1942
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
1967
|
+
props = _objectWithoutProperties(_ref, _excluded$l);
|
|
1943
1968
|
|
|
1944
1969
|
function handleClose(reason) {
|
|
1945
1970
|
if (reason !== 'clickaway') {
|
|
@@ -1968,7 +1993,7 @@ var Snackbar = /*#__PURE__*/forwardRef((_ref, ref) => {
|
|
|
1968
1993
|
});
|
|
1969
1994
|
if (process.env.NODE_ENV !== "production") Snackbar.displayName = "Snackbar";
|
|
1970
1995
|
|
|
1971
|
-
var _excluded$
|
|
1996
|
+
var _excluded$m = ["onClose", "variant", "key", "id", "autoHideDuration"];
|
|
1972
1997
|
|
|
1973
1998
|
function warnContext() {
|
|
1974
1999
|
// eslint-disable-next-line no-console
|
|
@@ -2014,7 +2039,7 @@ function SnackbarStackProvider(_ref2) {
|
|
|
2014
2039
|
id = String(key),
|
|
2015
2040
|
autoHideDuration = 5000
|
|
2016
2041
|
} = _ref3,
|
|
2017
|
-
props = _objectWithoutProperties(_ref3, _excluded$
|
|
2042
|
+
props = _objectWithoutProperties(_ref3, _excluded$m);
|
|
2018
2043
|
|
|
2019
2044
|
function removeSnackbar() {
|
|
2020
2045
|
setStack(prev => {
|
|
@@ -2111,8 +2136,8 @@ var Stack = /*#__PURE__*/forwardRef((_ref2, ref) => {
|
|
|
2111
2136
|
});
|
|
2112
2137
|
if (process.env.NODE_ENV !== "production") Stack.displayName = "Stack";
|
|
2113
2138
|
|
|
2114
|
-
var _excluded$
|
|
2115
|
-
var useStyles$
|
|
2139
|
+
var _excluded$n = ["color", "variant", "children", "classes", "className", "noWrap", "fontWeight", "component"];
|
|
2140
|
+
var useStyles$c = /*#__PURE__*/makeStyles(theme => ({
|
|
2116
2141
|
root: {
|
|
2117
2142
|
maxWidth: '100%',
|
|
2118
2143
|
alignItems: 'center',
|
|
@@ -2195,9 +2220,9 @@ var Tag = /*#__PURE__*/forwardRef((_ref, ref) => {
|
|
|
2195
2220
|
fontWeight = 'bold',
|
|
2196
2221
|
component = 'div'
|
|
2197
2222
|
} = _ref,
|
|
2198
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
2223
|
+
props = _objectWithoutProperties(_ref, _excluded$n);
|
|
2199
2224
|
|
|
2200
|
-
var styles = useStyles$
|
|
2225
|
+
var styles = useStyles$c({
|
|
2201
2226
|
classes
|
|
2202
2227
|
});
|
|
2203
2228
|
return /*#__PURE__*/jsx(Typography, _objectSpread(_objectSpread({}, props), {}, {
|
|
@@ -2223,28 +2248,29 @@ var Tag = /*#__PURE__*/forwardRef((_ref, ref) => {
|
|
|
2223
2248
|
if (process.env.NODE_ENV !== "production") Tag.displayName = "Tag";
|
|
2224
2249
|
|
|
2225
2250
|
function overrideAppBar(theme) {
|
|
2226
|
-
theme.
|
|
2227
|
-
|
|
2228
|
-
|
|
2229
|
-
|
|
2230
|
-
position: 'static'
|
|
2231
|
-
}
|
|
2251
|
+
theme.props.MuiAppBar = {
|
|
2252
|
+
elevation: 0,
|
|
2253
|
+
color: 'inherit',
|
|
2254
|
+
position: 'static'
|
|
2232
2255
|
};
|
|
2233
2256
|
}
|
|
2234
2257
|
|
|
2235
2258
|
function overrideAutocomplete(theme) {
|
|
2236
|
-
var sm = theme.breakpoints.up('sm');
|
|
2237
|
-
|
|
2238
|
-
|
|
2259
|
+
var sm = theme.breakpoints.up('sm'); // Remove `Object.assign` after official release of `Autocomplete`.
|
|
2260
|
+
|
|
2261
|
+
Object.assign(theme.props, {
|
|
2262
|
+
MuiAutocomplete: {
|
|
2239
2263
|
popupIcon: /*#__PURE__*/jsx(SvgIcon, {
|
|
2240
2264
|
children: /*#__PURE__*/jsx("path", {
|
|
2241
2265
|
d: "M12 16.5L6 9h12l-6 7.5z",
|
|
2242
2266
|
fill: "currentColor"
|
|
2243
2267
|
})
|
|
2244
2268
|
})
|
|
2245
|
-
}
|
|
2246
|
-
|
|
2247
|
-
|
|
2269
|
+
}
|
|
2270
|
+
});
|
|
2271
|
+
Object.assign(theme.overrides, {
|
|
2272
|
+
MuiAutocomplete: {
|
|
2273
|
+
paper: _objectSpread({}, theme.typography.body2),
|
|
2248
2274
|
tag: {
|
|
2249
2275
|
margin: '4px',
|
|
2250
2276
|
[sm]: {
|
|
@@ -2268,47 +2294,45 @@ function overrideAutocomplete(theme) {
|
|
|
2268
2294
|
inputRoot: {
|
|
2269
2295
|
'&[class*="MuiOutlinedInput-root"]': {
|
|
2270
2296
|
padding: '6px 8px',
|
|
2271
|
-
|
|
2297
|
+
'& $input': {
|
|
2272
2298
|
width: '144px',
|
|
2273
2299
|
padding: '4px'
|
|
2274
2300
|
},
|
|
2275
|
-
|
|
2276
|
-
paddingLeft:
|
|
2301
|
+
'& $input:first-child': {
|
|
2302
|
+
paddingLeft: undefined
|
|
2277
2303
|
},
|
|
2278
|
-
|
|
2304
|
+
'& $endAdornment': {
|
|
2279
2305
|
right: '12px'
|
|
2280
2306
|
},
|
|
2281
2307
|
[sm]: {
|
|
2282
2308
|
padding: theme.spacing(0.5, 0.75),
|
|
2283
|
-
|
|
2309
|
+
'& $input': {
|
|
2284
2310
|
padding: '2px'
|
|
2285
2311
|
},
|
|
2286
|
-
|
|
2312
|
+
'& $endAdornment': {
|
|
2287
2313
|
right: '8px'
|
|
2288
2314
|
}
|
|
2289
2315
|
}
|
|
2290
2316
|
}
|
|
2291
2317
|
}
|
|
2292
2318
|
}
|
|
2293
|
-
};
|
|
2319
|
+
});
|
|
2294
2320
|
}
|
|
2295
2321
|
|
|
2296
2322
|
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
|
|
2323
|
+
theme.overrides.MuiAvatar = {
|
|
2324
|
+
root: _objectSpread(_objectSpread({}, theme.typography.h5), {}, {
|
|
2325
|
+
textTransform: 'uppercase',
|
|
2326
|
+
width: theme.spacing(5),
|
|
2327
|
+
height: theme.spacing(5),
|
|
2328
|
+
[theme.breakpoints.up('sm')]: {
|
|
2329
|
+
width: theme.spacing(4),
|
|
2330
|
+
height: theme.spacing(4)
|
|
2311
2331
|
}
|
|
2332
|
+
}),
|
|
2333
|
+
colorDefault: {
|
|
2334
|
+
color: Color.Dark300,
|
|
2335
|
+
backgroundColor: Color.Silver300
|
|
2312
2336
|
}
|
|
2313
2337
|
};
|
|
2314
2338
|
}
|
|
@@ -2321,11 +2345,9 @@ function outlineShadow() {
|
|
|
2321
2345
|
|
|
2322
2346
|
function textVariant(text, outline, background, progress) {
|
|
2323
2347
|
return {
|
|
2324
|
-
|
|
2325
|
-
|
|
2326
|
-
|
|
2327
|
-
backgroundColor: Color.Transparent
|
|
2328
|
-
},
|
|
2348
|
+
color: text,
|
|
2349
|
+
boxShadow: outlineShadow(),
|
|
2350
|
+
backgroundColor: Color.Transparent,
|
|
2329
2351
|
'&:hover': {
|
|
2330
2352
|
backgroundColor: background
|
|
2331
2353
|
},
|
|
@@ -2336,13 +2358,13 @@ function textVariant(text, outline, background, progress) {
|
|
|
2336
2358
|
backgroundColor: background,
|
|
2337
2359
|
boxShadow: outlineShadow(2, outline)
|
|
2338
2360
|
},
|
|
2339
|
-
|
|
2361
|
+
'&$disabled': {
|
|
2340
2362
|
color: outline,
|
|
2341
2363
|
boxShadow: outlineShadow(),
|
|
2342
|
-
backgroundColor: Color.Transparent
|
|
2343
|
-
|
|
2344
|
-
|
|
2345
|
-
|
|
2364
|
+
backgroundColor: Color.Transparent
|
|
2365
|
+
},
|
|
2366
|
+
'&$disabled[aria-busy="true"]': {
|
|
2367
|
+
color: progress
|
|
2346
2368
|
}
|
|
2347
2369
|
};
|
|
2348
2370
|
}
|
|
@@ -2356,11 +2378,11 @@ function outlinedVariant(staleText, staleBorder, disabledText, disabledBorder, a
|
|
|
2356
2378
|
return {
|
|
2357
2379
|
backgroundColor,
|
|
2358
2380
|
color: staleText,
|
|
2359
|
-
border:
|
|
2381
|
+
border: undefined,
|
|
2360
2382
|
boxShadow: outlinedBorder(staleBorder),
|
|
2361
2383
|
'&:hover': {
|
|
2362
2384
|
color: activeText,
|
|
2363
|
-
border:
|
|
2385
|
+
border: undefined,
|
|
2364
2386
|
backgroundColor: activeBackground,
|
|
2365
2387
|
boxShadow: outlinedBorder(activeBorder)
|
|
2366
2388
|
},
|
|
@@ -2372,13 +2394,13 @@ function outlinedVariant(staleText, staleBorder, disabledText, disabledBorder, a
|
|
|
2372
2394
|
'&:focus': {
|
|
2373
2395
|
boxShadow: outlinedBorder(activeBorder, activeOutline)
|
|
2374
2396
|
},
|
|
2375
|
-
|
|
2397
|
+
'&$disabled': {
|
|
2376
2398
|
backgroundColor,
|
|
2377
2399
|
color: disabledText,
|
|
2378
|
-
boxShadow: outlinedBorder(disabledBorder)
|
|
2379
|
-
|
|
2380
|
-
|
|
2381
|
-
|
|
2400
|
+
boxShadow: outlinedBorder(disabledBorder)
|
|
2401
|
+
},
|
|
2402
|
+
'&$disabled[aria-busy="true"]': {
|
|
2403
|
+
color: progress
|
|
2382
2404
|
}
|
|
2383
2405
|
};
|
|
2384
2406
|
}
|
|
@@ -2397,236 +2419,229 @@ function containedVariant(text, backgroundColor, outline, active, disabledText,
|
|
|
2397
2419
|
'&:focus': {
|
|
2398
2420
|
boxShadow: outlineShadow(3, outline)
|
|
2399
2421
|
},
|
|
2400
|
-
|
|
2422
|
+
'&$disabled': {
|
|
2401
2423
|
color: disabledText,
|
|
2402
2424
|
boxShadow: outlineShadow(),
|
|
2403
|
-
backgroundColor: disabledBackground
|
|
2404
|
-
["& .".concat(loadingButtonClasses.loadingIndicator)]: {
|
|
2405
|
-
color: disabledText
|
|
2406
|
-
}
|
|
2425
|
+
backgroundColor: disabledBackground
|
|
2407
2426
|
}
|
|
2408
2427
|
};
|
|
2409
2428
|
}
|
|
2410
2429
|
|
|
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
2430
|
function overrideButton(theme) {
|
|
2436
2431
|
var sm = theme.breakpoints.up('sm');
|
|
2437
|
-
theme.
|
|
2438
|
-
|
|
2439
|
-
|
|
2440
|
-
|
|
2441
|
-
|
|
2442
|
-
|
|
2443
|
-
|
|
2444
|
-
|
|
2445
|
-
|
|
2446
|
-
|
|
2432
|
+
theme.props.MuiButton = {
|
|
2433
|
+
color: 'primary',
|
|
2434
|
+
variant: 'outlined',
|
|
2435
|
+
disableFocusRipple: true
|
|
2436
|
+
};
|
|
2437
|
+
theme.overrides.MuiButton = {
|
|
2438
|
+
root: {
|
|
2439
|
+
color: undefined,
|
|
2440
|
+
minWidth: theme.spacing(6),
|
|
2441
|
+
transition: theme.transitions.create(['color', 'border', 'box-shadow', 'background-color']),
|
|
2442
|
+
padding: theme.spacing(1.25, 3),
|
|
2443
|
+
[sm]: {
|
|
2444
|
+
padding: theme.spacing(0.75, 2)
|
|
2445
|
+
},
|
|
2446
|
+
'&:hover': {
|
|
2447
|
+
backgroundColor: undefined,
|
|
2448
|
+
'&$disabled': {
|
|
2449
|
+
backgroundColor: undefined
|
|
2450
|
+
},
|
|
2451
|
+
'@media (hover: none)': {
|
|
2452
|
+
backgroundColor: undefined
|
|
2453
|
+
}
|
|
2454
|
+
},
|
|
2455
|
+
'&$disabled': {
|
|
2456
|
+
color: undefined
|
|
2457
|
+
},
|
|
2458
|
+
'&[aria-busy="true"]': {
|
|
2459
|
+
'& $label': {
|
|
2460
|
+
visibility: 'hidden',
|
|
2461
|
+
'& > [role="progressbar"]': {
|
|
2462
|
+
position: 'absolute',
|
|
2463
|
+
visibility: 'visible',
|
|
2464
|
+
top: 'calc(50% - 0.5em)',
|
|
2465
|
+
left: 'calc(50% - 0.5em)',
|
|
2466
|
+
fontSize: theme.spacing(2),
|
|
2467
|
+
'$sizeLarge &': {
|
|
2468
|
+
fontSize: theme.spacing(3)
|
|
2469
|
+
}
|
|
2470
|
+
}
|
|
2447
2471
|
}
|
|
2448
2472
|
}
|
|
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),
|
|
2473
|
+
},
|
|
2474
|
+
label: {
|
|
2475
|
+
'& > .MuiSvgIcon-root': {
|
|
2476
|
+
fontSize: '24px',
|
|
2462
2477
|
[sm]: {
|
|
2463
|
-
|
|
2464
|
-
},
|
|
2465
|
-
'&:hover': {
|
|
2466
|
-
backgroundColor: 'initial',
|
|
2467
|
-
["&.".concat(buttonClasses.disabled)]: {
|
|
2468
|
-
backgroundColor: 'initial'
|
|
2469
|
-
},
|
|
2470
|
-
'@media (hover: none)': {
|
|
2471
|
-
backgroundColor: 'initial'
|
|
2472
|
-
}
|
|
2473
|
-
},
|
|
2474
|
-
["&.".concat(buttonClasses.disabled)]: {
|
|
2475
|
-
color: 'initial'
|
|
2478
|
+
fontSize: '20px'
|
|
2476
2479
|
},
|
|
2477
|
-
'&
|
|
2478
|
-
fontSize: '
|
|
2480
|
+
'$sizeLarge &': {
|
|
2481
|
+
fontSize: '28px',
|
|
2479
2482
|
[sm]: {
|
|
2480
|
-
fontSize: '
|
|
2481
|
-
},
|
|
2482
|
-
[".".concat(buttonClasses.sizeLarge, "&")]: {
|
|
2483
|
-
fontSize: '28px',
|
|
2484
|
-
[sm]: {
|
|
2485
|
-
fontSize: '24px'
|
|
2486
|
-
}
|
|
2483
|
+
fontSize: '24px'
|
|
2487
2484
|
}
|
|
2488
2485
|
}
|
|
2486
|
+
}
|
|
2487
|
+
},
|
|
2488
|
+
sizeSmall: {
|
|
2489
|
+
padding: theme.spacing(0.5, 3),
|
|
2490
|
+
[sm]: {
|
|
2491
|
+
padding: theme.spacing(0.25, 2)
|
|
2492
|
+
}
|
|
2493
|
+
},
|
|
2494
|
+
sizeLarge: {
|
|
2495
|
+
fontSize: '18px',
|
|
2496
|
+
lineHeight: '28px',
|
|
2497
|
+
padding: theme.spacing(1.75, 8),
|
|
2498
|
+
[sm]: {
|
|
2499
|
+
fontSize: '16px',
|
|
2500
|
+
lineHeight: '24px',
|
|
2501
|
+
padding: theme.spacing(1, 4)
|
|
2502
|
+
}
|
|
2503
|
+
},
|
|
2504
|
+
text: {
|
|
2505
|
+
padding: undefined,
|
|
2506
|
+
'&[data-color="error"]': textVariant(Color.Red300, Color.Red100, Color.Red50, Color.Red200),
|
|
2507
|
+
'&[data-color="success"]': textVariant(Color.Green300, Color.Green100, Color.Green50, Color.Green200),
|
|
2508
|
+
'&[data-color="white"]': textVariant(Color.White, Color.White50, Color.White10, Color.White50)
|
|
2509
|
+
},
|
|
2510
|
+
textPrimary: textVariant(Color.Blue300, Color.Blue100, Color.Blue50, Color.Blue200),
|
|
2511
|
+
textSizeSmall: {
|
|
2512
|
+
padding: undefined,
|
|
2513
|
+
fontSize: undefined
|
|
2514
|
+
},
|
|
2515
|
+
textSizeLarge: {
|
|
2516
|
+
padding: undefined,
|
|
2517
|
+
fontSize: undefined
|
|
2518
|
+
},
|
|
2519
|
+
outlined: {
|
|
2520
|
+
border: undefined,
|
|
2521
|
+
padding: undefined,
|
|
2522
|
+
'&$disabled': {
|
|
2523
|
+
border: undefined
|
|
2524
|
+
},
|
|
2525
|
+
'&[data-color="error"]': outlinedVariant(Color.Red300, Color.Red300, Color.Red100, Color.Red100, Color.Red300, Color.Red300, Color.Red100, Color.Red50, Color.Red300, Color.White),
|
|
2526
|
+
'&[data-color="success"]': outlinedVariant(Color.Green300, Color.Green300, Color.Green100, Color.Green100, Color.Green300, Color.Green300, Color.Green100, Color.Green50, Color.Green300, Color.White),
|
|
2527
|
+
'&[data-color="white"]': outlinedVariant(Color.White, Color.White50, Color.White50, Color.White40, Color.White, Color.White50, Color.White40, Color.White10, Color.White50, Color.Transparent)
|
|
2528
|
+
},
|
|
2529
|
+
outlinedPrimary: outlinedVariant(Color.Dark500, Color.Silver500, Color.Silver500, Color.Silver400, Color.Blue300, Color.Blue300, Color.Blue100, Color.Blue50, Color.Dark200, Color.White),
|
|
2530
|
+
outlinedSizeSmall: {
|
|
2531
|
+
padding: undefined,
|
|
2532
|
+
fontSize: undefined
|
|
2533
|
+
},
|
|
2534
|
+
outlinedSizeLarge: {
|
|
2535
|
+
padding: undefined,
|
|
2536
|
+
fontSize: undefined
|
|
2537
|
+
},
|
|
2538
|
+
contained: {
|
|
2539
|
+
boxShadow: undefined,
|
|
2540
|
+
backgroundColor: undefined,
|
|
2541
|
+
'&:hover': {
|
|
2542
|
+
boxShadow: undefined,
|
|
2543
|
+
backgroundColor: undefined,
|
|
2544
|
+
'&$disabled': {
|
|
2545
|
+
backgroundColor: undefined
|
|
2546
|
+
},
|
|
2547
|
+
'@media (hover: none)': {
|
|
2548
|
+
boxShadow: undefined,
|
|
2549
|
+
backgroundColor: undefined
|
|
2550
|
+
}
|
|
2489
2551
|
},
|
|
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)
|
|
2552
|
+
'&:active': {
|
|
2553
|
+
boxShadow: undefined
|
|
2497
2554
|
},
|
|
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)
|
|
2555
|
+
'&$focusVisible': {
|
|
2556
|
+
boxShadow: undefined
|
|
2510
2557
|
},
|
|
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)
|
|
2558
|
+
'&$disabled': {
|
|
2559
|
+
color: undefined,
|
|
2560
|
+
boxShadow: undefined,
|
|
2561
|
+
backgroundColor: undefined
|
|
2542
2562
|
},
|
|
2543
|
-
|
|
2544
|
-
|
|
2545
|
-
|
|
2563
|
+
'&[data-color="error"]': containedVariant(Color.White, Color.Red300, Color.Red100, Color.Red500, Color.White, Color.Red100),
|
|
2564
|
+
'&[data-color="success"]': containedVariant(Color.White, Color.Green300, Color.Green100, Color.Green500, Color.White, Color.Green100),
|
|
2565
|
+
'&[data-color="white"]': containedVariant(Color.White, Color.White20, Color.White40, Color.White40, Color.White50, Color.White08)
|
|
2566
|
+
},
|
|
2567
|
+
containedPrimary: containedVariant(Color.White, Color.Blue300, Color.Blue100, Color.Blue500, Color.White, Color.Blue100),
|
|
2568
|
+
containedSizeSmall: {
|
|
2569
|
+
padding: undefined,
|
|
2570
|
+
fontSize: undefined
|
|
2571
|
+
},
|
|
2572
|
+
containedSizeLarge: {
|
|
2573
|
+
padding: undefined,
|
|
2574
|
+
fontSize: undefined
|
|
2546
2575
|
}
|
|
2547
2576
|
};
|
|
2548
2577
|
}
|
|
2549
2578
|
|
|
2550
2579
|
function overrideCard(theme) {
|
|
2551
|
-
theme.
|
|
2552
|
-
|
|
2553
|
-
variant: 'outlined'
|
|
2554
|
-
}
|
|
2580
|
+
theme.props.MuiCard = {
|
|
2581
|
+
variant: 'outlined'
|
|
2555
2582
|
};
|
|
2556
|
-
theme.
|
|
2557
|
-
|
|
2558
|
-
|
|
2559
|
-
|
|
2560
|
-
paddingBottom: '16px'
|
|
2561
|
-
}
|
|
2583
|
+
theme.overrides.MuiCardContent = {
|
|
2584
|
+
root: {
|
|
2585
|
+
'&:last-child': {
|
|
2586
|
+
paddingBottom: undefined
|
|
2562
2587
|
}
|
|
2563
2588
|
}
|
|
2564
2589
|
};
|
|
2565
2590
|
}
|
|
2566
2591
|
|
|
2567
2592
|
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
|
-
})]
|
|
2593
|
+
theme.props.MuiCheckbox = {
|
|
2594
|
+
color: 'primary',
|
|
2595
|
+
icon: /*#__PURE__*/jsx(SvgIcon, {
|
|
2596
|
+
children: /*#__PURE__*/jsx("rect", {
|
|
2597
|
+
width: "17",
|
|
2598
|
+
height: "17",
|
|
2599
|
+
x: "3.5",
|
|
2600
|
+
y: "3.5",
|
|
2601
|
+
fill: Color.White,
|
|
2602
|
+
stroke: "currentColor",
|
|
2603
|
+
rx: "1.5"
|
|
2607
2604
|
})
|
|
2605
|
+
}),
|
|
2606
|
+
checkedIcon: /*#__PURE__*/jsxs(SvgIcon, {
|
|
2607
|
+
children: [/*#__PURE__*/jsx("rect", {
|
|
2608
|
+
width: "18",
|
|
2609
|
+
height: "18",
|
|
2610
|
+
x: "3",
|
|
2611
|
+
y: "3",
|
|
2612
|
+
fill: "currentColor",
|
|
2613
|
+
rx: "2"
|
|
2614
|
+
}), /*#__PURE__*/jsx("path", {
|
|
2615
|
+
fill: Color.White,
|
|
2616
|
+
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"
|
|
2617
|
+
})]
|
|
2618
|
+
}),
|
|
2619
|
+
indeterminateIcon: /*#__PURE__*/jsxs(SvgIcon, {
|
|
2620
|
+
children: [/*#__PURE__*/jsx("rect", {
|
|
2621
|
+
width: "18",
|
|
2622
|
+
height: "18",
|
|
2623
|
+
x: "3",
|
|
2624
|
+
y: "3",
|
|
2625
|
+
fill: "currentIcon",
|
|
2626
|
+
rx: "2"
|
|
2627
|
+
}), /*#__PURE__*/jsx("path", {
|
|
2628
|
+
fill: Color.White,
|
|
2629
|
+
d: "M7 11h10v2H7v-2z"
|
|
2630
|
+
})]
|
|
2631
|
+
})
|
|
2632
|
+
};
|
|
2633
|
+
theme.overrides.MuiCheckbox = {
|
|
2634
|
+
root: {
|
|
2635
|
+
color: Color.Dark100,
|
|
2636
|
+
marginTop: theme.spacing(-0.625),
|
|
2637
|
+
marginBottom: theme.spacing(-0.625)
|
|
2608
2638
|
},
|
|
2609
|
-
|
|
2610
|
-
|
|
2611
|
-
color: Color.
|
|
2612
|
-
marginTop: theme.spacing(-0.625),
|
|
2613
|
-
marginBottom: theme.spacing(-0.625)
|
|
2639
|
+
colorPrimary: {
|
|
2640
|
+
'&$checked$disabled': {
|
|
2641
|
+
color: Color.Silver500
|
|
2614
2642
|
},
|
|
2615
|
-
|
|
2616
|
-
|
|
2617
|
-
color: Color.Dark100
|
|
2618
|
-
},
|
|
2619
|
-
["&.".concat(checkboxClasses.disabled)]: {
|
|
2620
|
-
color: Color.Silver400
|
|
2621
|
-
}
|
|
2622
|
-
},
|
|
2623
|
-
colorPrimary: {
|
|
2624
|
-
["&.".concat(checkboxClasses.checked, ".").concat(checkboxClasses.disabled)]: {
|
|
2625
|
-
color: Color.Silver500
|
|
2626
|
-
},
|
|
2627
|
-
["&:hover:not(.".concat(checkboxClasses.checked, ")")]: {
|
|
2628
|
-
color: Color.Dark100
|
|
2629
|
-
}
|
|
2643
|
+
'&:hover:not($checked)': {
|
|
2644
|
+
color: Color.Dark100
|
|
2630
2645
|
}
|
|
2631
2646
|
}
|
|
2632
2647
|
};
|
|
@@ -2634,223 +2649,197 @@ function overrideCheckbox(theme) {
|
|
|
2634
2649
|
|
|
2635
2650
|
function overrideChip(theme) {
|
|
2636
2651
|
var sm = theme.breakpoints.up('sm');
|
|
2637
|
-
theme.
|
|
2638
|
-
|
|
2639
|
-
|
|
2640
|
-
|
|
2641
|
-
children: /*#__PURE__*/jsx(
|
|
2642
|
-
|
|
2643
|
-
|
|
2644
|
-
|
|
2645
|
-
|
|
2646
|
-
fill: "currentColor"
|
|
2647
|
-
})
|
|
2652
|
+
theme.props.MuiChip = {
|
|
2653
|
+
size: 'small',
|
|
2654
|
+
deleteIcon: /*#__PURE__*/jsx("div", {
|
|
2655
|
+
children: /*#__PURE__*/jsx(SvgIcon, {
|
|
2656
|
+
children: /*#__PURE__*/jsx("path", {
|
|
2657
|
+
fillRule: "evenodd",
|
|
2658
|
+
clipRule: "evenodd",
|
|
2659
|
+
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",
|
|
2660
|
+
fill: "currentColor"
|
|
2648
2661
|
})
|
|
2649
2662
|
})
|
|
2663
|
+
})
|
|
2664
|
+
};
|
|
2665
|
+
theme.overrides.MuiChip = {
|
|
2666
|
+
root: _objectSpread(_objectSpread({}, theme.typography.body2), {}, {
|
|
2667
|
+
color: undefined,
|
|
2668
|
+
height: undefined,
|
|
2669
|
+
borderRadius: 4,
|
|
2670
|
+
backgroundColor: Color.Silver200,
|
|
2671
|
+
'&$disabled': {
|
|
2672
|
+
opacity: undefined,
|
|
2673
|
+
color: Color.Dark100
|
|
2674
|
+
}
|
|
2675
|
+
}),
|
|
2676
|
+
sizeSmall: {
|
|
2677
|
+
height: undefined
|
|
2650
2678
|
},
|
|
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
|
-
}
|
|
2679
|
+
labelSmall: {
|
|
2680
|
+
paddingLeft: 6,
|
|
2681
|
+
paddingRight: 6,
|
|
2682
|
+
[sm]: {
|
|
2683
|
+
paddingLeft: 4,
|
|
2684
|
+
paddingRight: 4
|
|
2685
|
+
}
|
|
2686
|
+
},
|
|
2687
|
+
clickable: {
|
|
2688
|
+
'&:hover, &:focus': {
|
|
2689
|
+
backgroundColor: undefined
|
|
2672
2690
|
},
|
|
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
|
-
}
|
|
2691
|
+
'&:active': {
|
|
2692
|
+
boxShadow: undefined
|
|
2686
2693
|
},
|
|
2687
|
-
|
|
2688
|
-
|
|
2689
|
-
backgroundColor: Color.Silver200,
|
|
2690
|
-
boxShadow: "0 0 0 2px ".concat(Color.Silver300)
|
|
2691
|
-
}
|
|
2694
|
+
'&:focus': {
|
|
2695
|
+
boxShadow: "0 0 0 2px ".concat(Color.Silver300)
|
|
2692
2696
|
},
|
|
2693
|
-
|
|
2694
|
-
|
|
2695
|
-
|
|
2696
|
-
|
|
2697
|
-
|
|
2698
|
-
|
|
2699
|
-
|
|
2700
|
-
|
|
2701
|
-
|
|
2702
|
-
|
|
2703
|
-
|
|
2697
|
+
'&:active, &:hover': {
|
|
2698
|
+
backgroundColor: Color.Silver300
|
|
2699
|
+
}
|
|
2700
|
+
},
|
|
2701
|
+
deletable: {
|
|
2702
|
+
'&:focus': {
|
|
2703
|
+
backgroundColor: undefined,
|
|
2704
|
+
boxShadow: "0 0 0 2px ".concat(Color.Silver300)
|
|
2705
|
+
}
|
|
2706
|
+
},
|
|
2707
|
+
deleteIcon: {
|
|
2708
|
+
width: undefined,
|
|
2709
|
+
height: undefined,
|
|
2710
|
+
display: 'flex',
|
|
2711
|
+
transition: theme.transitions.create('background-color'),
|
|
2712
|
+
'&:active, &:hover, &:focus': {
|
|
2704
2713
|
'& > 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
|
|
2714
|
+
backgroundColor: Color.Silver400
|
|
2718
2715
|
}
|
|
2719
2716
|
},
|
|
2720
|
-
|
|
2721
|
-
|
|
2722
|
-
|
|
2723
|
-
|
|
2724
|
-
}
|
|
2725
|
-
|
|
2726
|
-
|
|
2727
|
-
|
|
2728
|
-
|
|
2729
|
-
|
|
2730
|
-
|
|
2731
|
-
|
|
2732
|
-
|
|
2717
|
+
'& > svg': {
|
|
2718
|
+
borderRadius: '50%',
|
|
2719
|
+
color: Color.Dark200,
|
|
2720
|
+
fontSize: '1em'
|
|
2721
|
+
}
|
|
2722
|
+
},
|
|
2723
|
+
deleteIconSmall: {
|
|
2724
|
+
width: undefined,
|
|
2725
|
+
height: undefined,
|
|
2726
|
+
padding: theme.spacing(0.5),
|
|
2727
|
+
marginLeft: theme.spacing(-0.5),
|
|
2728
|
+
marginRight: theme.spacing(0.25),
|
|
2729
|
+
[sm]: {
|
|
2730
|
+
marginRight: 0
|
|
2731
|
+
}
|
|
2732
|
+
},
|
|
2733
|
+
icon: {
|
|
2734
|
+
color: Color.Dark100,
|
|
2735
|
+
fontSize: '1em',
|
|
2736
|
+
marginRight: undefined
|
|
2737
|
+
},
|
|
2738
|
+
iconSmall: {
|
|
2739
|
+
width: undefined,
|
|
2740
|
+
height: undefined,
|
|
2741
|
+
marginLeft: 8,
|
|
2742
|
+
marginRight: undefined,
|
|
2743
|
+
[sm]: {
|
|
2744
|
+
marginLeft: 4
|
|
2733
2745
|
}
|
|
2734
2746
|
}
|
|
2735
2747
|
};
|
|
2736
2748
|
}
|
|
2737
2749
|
|
|
2738
2750
|
function overrideDialog(theme) {
|
|
2739
|
-
theme.
|
|
2740
|
-
|
|
2741
|
-
|
|
2742
|
-
|
|
2743
|
-
|
|
2744
|
-
|
|
2745
|
-
|
|
2746
|
-
|
|
2747
|
-
|
|
2748
|
-
|
|
2749
|
-
|
|
2751
|
+
theme.props.MuiDialogTitle = {
|
|
2752
|
+
disableTypography: true
|
|
2753
|
+
};
|
|
2754
|
+
theme.overrides.MuiDialog = {
|
|
2755
|
+
paper: {
|
|
2756
|
+
margin: theme.spacing(3)
|
|
2757
|
+
},
|
|
2758
|
+
paperWidthXs: {
|
|
2759
|
+
maxWidth: Math.max(theme.breakpoints.values.xs, 360),
|
|
2760
|
+
'&$paperScrollBody': {
|
|
2761
|
+
[theme.breakpoints.down(Math.max(theme.breakpoints.values.xs, 360) + 32 * 2)]: {
|
|
2762
|
+
maxWidth: 'calc(100% - 64px)'
|
|
2750
2763
|
}
|
|
2751
2764
|
}
|
|
2752
2765
|
}
|
|
2753
2766
|
};
|
|
2754
|
-
theme.
|
|
2755
|
-
|
|
2756
|
-
// @ts-expect-error DialogTitleProps has missing type def
|
|
2757
|
-
variant: 'h3'
|
|
2758
|
-
}
|
|
2767
|
+
theme.overrides.MuiDialogTitle = {
|
|
2768
|
+
root: _objectSpread({}, theme.typography.h3)
|
|
2759
2769
|
};
|
|
2760
|
-
theme.
|
|
2761
|
-
|
|
2762
|
-
|
|
2763
|
-
padding: theme.spacing(0, 3)
|
|
2764
|
-
}
|
|
2770
|
+
theme.overrides.MuiDialogContent = {
|
|
2771
|
+
root: {
|
|
2772
|
+
padding: theme.spacing(0, 3)
|
|
2765
2773
|
}
|
|
2766
2774
|
};
|
|
2767
|
-
theme.
|
|
2768
|
-
|
|
2769
|
-
|
|
2770
|
-
|
|
2771
|
-
|
|
2772
|
-
|
|
2773
|
-
|
|
2774
|
-
marginLeft: theme.spacing(2)
|
|
2775
|
-
}
|
|
2775
|
+
theme.overrides.MuiDialogActions = {
|
|
2776
|
+
root: {
|
|
2777
|
+
padding: theme.spacing(3)
|
|
2778
|
+
},
|
|
2779
|
+
spacing: {
|
|
2780
|
+
'& > :not(:first-child)': {
|
|
2781
|
+
marginLeft: theme.spacing(2)
|
|
2776
2782
|
}
|
|
2777
2783
|
}
|
|
2778
2784
|
};
|
|
2779
2785
|
}
|
|
2780
2786
|
|
|
2781
2787
|
function overrideDrawer(theme) {
|
|
2782
|
-
theme.
|
|
2783
|
-
|
|
2784
|
-
|
|
2785
|
-
|
|
2786
|
-
|
|
2787
|
-
|
|
2788
|
-
|
|
2789
|
-
|
|
2790
|
-
|
|
2791
|
-
|
|
2792
|
-
maxWidth: theme.breakpoints.values.sm
|
|
2793
|
-
}
|
|
2788
|
+
theme.props.MuiDrawer = {
|
|
2789
|
+
anchor: 'right'
|
|
2790
|
+
};
|
|
2791
|
+
theme.overrides.MuiDrawer = {
|
|
2792
|
+
paper: {
|
|
2793
|
+
maxWidth: '100%',
|
|
2794
|
+
minWidth: '100%',
|
|
2795
|
+
[theme.breakpoints.up('sm')]: {
|
|
2796
|
+
minWidth: theme.spacing(54),
|
|
2797
|
+
maxWidth: theme.breakpoints.values.sm
|
|
2794
2798
|
}
|
|
2795
2799
|
}
|
|
2796
2800
|
};
|
|
2797
2801
|
}
|
|
2798
2802
|
|
|
2799
2803
|
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
|
-
}
|
|
2804
|
+
theme.overrides.MuiIconButton = {
|
|
2805
|
+
root: {
|
|
2806
|
+
color: Color.Dark100,
|
|
2807
|
+
backgroundColor: Color.Transparent,
|
|
2808
|
+
transition: theme.transitions.create(['color', 'background-color'], {
|
|
2809
|
+
duration: theme.transitions.duration.short
|
|
2810
|
+
}),
|
|
2811
|
+
'&:hover': {
|
|
2812
|
+
backgroundColor: Color.Transparent
|
|
2826
2813
|
},
|
|
2827
|
-
|
|
2828
|
-
|
|
2829
|
-
color: Color.Blue500
|
|
2830
|
-
},
|
|
2831
|
-
'&:hover ': {
|
|
2832
|
-
color: Color.Blue300
|
|
2833
|
-
},
|
|
2834
|
-
'&:focus': {
|
|
2835
|
-
backgroundColor: Color.Blue50
|
|
2836
|
-
}
|
|
2814
|
+
'&:active': {
|
|
2815
|
+
color: Color.Dark500
|
|
2837
2816
|
},
|
|
2838
|
-
|
|
2839
|
-
|
|
2817
|
+
'&:hover ': {
|
|
2818
|
+
color: Color.Dark300
|
|
2840
2819
|
},
|
|
2841
|
-
|
|
2842
|
-
|
|
2820
|
+
'&:focus': {
|
|
2821
|
+
backgroundColor: Color.Silver400
|
|
2843
2822
|
},
|
|
2844
|
-
|
|
2845
|
-
|
|
2846
|
-
|
|
2823
|
+
'&$disabled': {
|
|
2824
|
+
color: Color.Silver500
|
|
2825
|
+
}
|
|
2826
|
+
},
|
|
2827
|
+
colorPrimary: {
|
|
2828
|
+
'&:active': {
|
|
2829
|
+
color: Color.Blue500
|
|
2847
2830
|
},
|
|
2848
|
-
|
|
2849
|
-
|
|
2850
|
-
fontSize: theme.typography.pxToRem(24)
|
|
2831
|
+
'&:hover ': {
|
|
2832
|
+
color: Color.Blue300
|
|
2851
2833
|
},
|
|
2852
|
-
|
|
2834
|
+
'&:focus': {
|
|
2835
|
+
backgroundColor: Color.Blue50
|
|
2853
2836
|
}
|
|
2837
|
+
},
|
|
2838
|
+
edgeEnd: {
|
|
2839
|
+
marginRight: theme.spacing(-1)
|
|
2840
|
+
},
|
|
2841
|
+
edgeStart: {
|
|
2842
|
+
marginLeft: theme.spacing(-1)
|
|
2854
2843
|
}
|
|
2855
2844
|
};
|
|
2856
2845
|
}
|
|
@@ -2860,383 +2849,344 @@ function line(color) {
|
|
|
2860
2849
|
}
|
|
2861
2850
|
|
|
2862
2851
|
function overrideLink(theme) {
|
|
2863
|
-
theme.
|
|
2864
|
-
|
|
2865
|
-
|
|
2866
|
-
|
|
2867
|
-
|
|
2868
|
-
|
|
2869
|
-
|
|
2870
|
-
|
|
2871
|
-
|
|
2872
|
-
|
|
2873
|
-
|
|
2874
|
-
'
|
|
2875
|
-
|
|
2876
|
-
|
|
2877
|
-
|
|
2878
|
-
backgroundImage: line('currentColor')
|
|
2879
|
-
}
|
|
2852
|
+
theme.props.MuiLink = {
|
|
2853
|
+
underline: 'none',
|
|
2854
|
+
color: 'textPrimary'
|
|
2855
|
+
};
|
|
2856
|
+
theme.overrides.MuiLink = {
|
|
2857
|
+
root: {
|
|
2858
|
+
backgroundSize: '100% 1px',
|
|
2859
|
+
backgroundRepeat: 'repeat-x',
|
|
2860
|
+
backgroundPosition: '0 100%',
|
|
2861
|
+
backgroundColor: Color.Transparent,
|
|
2862
|
+
'&:focus': {
|
|
2863
|
+
outline: 'none'
|
|
2864
|
+
},
|
|
2865
|
+
'&:hover, &:active': {
|
|
2866
|
+
backgroundImage: line('currentColor')
|
|
2880
2867
|
},
|
|
2881
|
-
|
|
2882
|
-
colorTextPrimary: {
|
|
2868
|
+
'&.MuiTypography-colorTextPrimary': {
|
|
2883
2869
|
backgroundImage: line(Color.Silver500),
|
|
2884
2870
|
'&:focus, &:hover, &:active': {
|
|
2885
2871
|
color: Color.Blue300,
|
|
2886
2872
|
backgroundImage: line(Color.Blue300)
|
|
2887
2873
|
}
|
|
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
2874
|
}
|
|
2875
|
+
},
|
|
2876
|
+
button: {
|
|
2877
|
+
// Reset button styles.
|
|
2878
|
+
backgroundColor: undefined,
|
|
2879
|
+
// Override browser defaults.
|
|
2880
|
+
fontSize: 'inherit',
|
|
2881
|
+
textAlign: 'inherit',
|
|
2882
|
+
lineHeight: 'inherit',
|
|
2883
|
+
userSelect: 'inherit',
|
|
2884
|
+
verticalAlign: 'inherit'
|
|
2899
2885
|
}
|
|
2900
2886
|
};
|
|
2901
2887
|
}
|
|
2902
2888
|
|
|
2903
2889
|
function overrideList(theme) {
|
|
2904
|
-
theme.
|
|
2905
|
-
|
|
2906
|
-
|
|
2907
|
-
|
|
2908
|
-
|
|
2909
|
-
|
|
2910
|
-
|
|
2911
|
-
color: Color.Blue100
|
|
2912
|
-
}
|
|
2890
|
+
theme.overrides.MuiListItem = {
|
|
2891
|
+
root: {
|
|
2892
|
+
'&$selected, &$selected:hover': {
|
|
2893
|
+
backgroundColor: Color.Blue50
|
|
2894
|
+
},
|
|
2895
|
+
'& .MuiTouchRipple-root': {
|
|
2896
|
+
color: Color.Blue100
|
|
2913
2897
|
}
|
|
2914
2898
|
}
|
|
2915
2899
|
};
|
|
2916
2900
|
}
|
|
2917
2901
|
|
|
2918
2902
|
function overrideMenu(theme) {
|
|
2919
|
-
theme.
|
|
2920
|
-
|
|
2921
|
-
|
|
2922
|
-
|
|
2923
|
-
|
|
2924
|
-
|
|
2925
|
-
|
|
2926
|
-
|
|
2927
|
-
|
|
2928
|
-
}
|
|
2903
|
+
theme.props.MuiMenu = {
|
|
2904
|
+
getContentAnchorEl: null,
|
|
2905
|
+
anchorOrigin: {
|
|
2906
|
+
vertical: 'bottom',
|
|
2907
|
+
horizontal: 'left'
|
|
2908
|
+
},
|
|
2909
|
+
transformOrigin: {
|
|
2910
|
+
vertical: 'top',
|
|
2911
|
+
horizontal: 'left'
|
|
2929
2912
|
}
|
|
2930
2913
|
};
|
|
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
|
-
}
|
|
2914
|
+
theme.overrides.MuiMenuItem = {
|
|
2915
|
+
root: _objectSpread(_objectSpread({}, theme.typography.body2), {}, {
|
|
2916
|
+
paddingTop: theme.spacing(1),
|
|
2917
|
+
paddingBottom: theme.spacing(1)
|
|
2918
|
+
})
|
|
2947
2919
|
};
|
|
2948
2920
|
}
|
|
2949
2921
|
|
|
2950
2922
|
function overridePagination(theme) {
|
|
2951
|
-
|
|
2952
|
-
|
|
2953
|
-
|
|
2954
|
-
|
|
2923
|
+
var props = {};
|
|
2924
|
+
var overrides = {
|
|
2925
|
+
root: {
|
|
2926
|
+
color: Color.Dark400
|
|
2927
|
+
},
|
|
2928
|
+
page: {
|
|
2929
|
+
'&:hover': {
|
|
2930
|
+
backgroundColor: Color.Silver200
|
|
2955
2931
|
},
|
|
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
|
-
}
|
|
2932
|
+
'&$focusVisible': {
|
|
2933
|
+
borderRadius: 4,
|
|
2934
|
+
backgroundColor: Color.White,
|
|
2935
|
+
border: "1px solid ".concat(Color.Blue100)
|
|
2936
|
+
},
|
|
2937
|
+
'&$selected': {
|
|
2938
|
+
backgroundColor: Color.Silver400,
|
|
2939
|
+
'&:hover, &$focusVisible': {
|
|
2940
|
+
backgroundColor: Color.Silver400
|
|
2974
2941
|
},
|
|
2975
|
-
|
|
2976
|
-
|
|
2977
|
-
|
|
2942
|
+
'&$disabled': {
|
|
2943
|
+
color: Color.Dark100,
|
|
2944
|
+
backgroundColor: Color.Silver400
|
|
2978
2945
|
}
|
|
2946
|
+
},
|
|
2947
|
+
'&$disabled': {
|
|
2948
|
+
opacity: undefined,
|
|
2949
|
+
color: Color.Dark100
|
|
2979
2950
|
}
|
|
2980
2951
|
}
|
|
2981
|
-
};
|
|
2952
|
+
}; // Remove `Object.assign` after official release of `PaginationItem`.
|
|
2953
|
+
|
|
2954
|
+
Object.assign(theme.props, {
|
|
2955
|
+
MuiPaginationItem: props
|
|
2956
|
+
});
|
|
2957
|
+
Object.assign(theme.overrides, {
|
|
2958
|
+
MuiPaginationItem: overrides
|
|
2959
|
+
});
|
|
2982
2960
|
}
|
|
2983
2961
|
|
|
2984
2962
|
function overridePaper(theme) {
|
|
2985
|
-
theme.
|
|
2986
|
-
|
|
2987
|
-
|
|
2988
|
-
|
|
2989
|
-
|
|
2990
|
-
|
|
2991
|
-
border: "1px solid ".concat(Color.Silver400)
|
|
2992
|
-
}
|
|
2963
|
+
theme.props.MuiPaper = {
|
|
2964
|
+
elevation: 0
|
|
2965
|
+
};
|
|
2966
|
+
theme.overrides.MuiPaper = {
|
|
2967
|
+
elevation0: {
|
|
2968
|
+
border: "1px solid ".concat(Color.Silver400)
|
|
2993
2969
|
}
|
|
2994
2970
|
};
|
|
2995
2971
|
}
|
|
2996
2972
|
|
|
2997
2973
|
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
|
-
})]
|
|
2974
|
+
theme.props.MuiRadio = {
|
|
2975
|
+
color: 'primary',
|
|
2976
|
+
icon: /*#__PURE__*/jsx(SvgIcon, {
|
|
2977
|
+
children: /*#__PURE__*/jsx("circle", {
|
|
2978
|
+
cx: "12",
|
|
2979
|
+
cy: "12",
|
|
2980
|
+
r: "8.5",
|
|
2981
|
+
fill: Color.White,
|
|
2982
|
+
stroke: "currentColor"
|
|
3023
2983
|
})
|
|
2984
|
+
}),
|
|
2985
|
+
checkedIcon: /*#__PURE__*/jsxs(SvgIcon, {
|
|
2986
|
+
children: [/*#__PURE__*/jsx("circle", {
|
|
2987
|
+
cx: "12",
|
|
2988
|
+
cy: "12",
|
|
2989
|
+
r: "8.5",
|
|
2990
|
+
fill: "currentColor",
|
|
2991
|
+
stroke: "currentColor"
|
|
2992
|
+
}), /*#__PURE__*/jsx("circle", {
|
|
2993
|
+
cx: "12",
|
|
2994
|
+
cy: "12",
|
|
2995
|
+
r: "4",
|
|
2996
|
+
fill: Color.White
|
|
2997
|
+
})]
|
|
2998
|
+
})
|
|
2999
|
+
};
|
|
3000
|
+
theme.overrides.MuiRadio = {
|
|
3001
|
+
root: {
|
|
3002
|
+
color: Color.Dark100,
|
|
3003
|
+
marginTop: theme.spacing(-0.625),
|
|
3004
|
+
marginBottom: theme.spacing(-0.625)
|
|
3024
3005
|
},
|
|
3025
|
-
|
|
3026
|
-
|
|
3027
|
-
color: Color.
|
|
3028
|
-
marginTop: theme.spacing(-0.625),
|
|
3029
|
-
marginBottom: theme.spacing(-0.625)
|
|
3006
|
+
colorPrimary: {
|
|
3007
|
+
'&$checked$disabled': {
|
|
3008
|
+
color: Color.Silver500
|
|
3030
3009
|
},
|
|
3031
|
-
|
|
3032
|
-
|
|
3033
|
-
color: Color.Silver500
|
|
3034
|
-
},
|
|
3035
|
-
["&:hover:not(.".concat(radioClasses.checked, ")")]: {
|
|
3036
|
-
color: Color.Dark100
|
|
3037
|
-
}
|
|
3010
|
+
'&:hover:not($checked)': {
|
|
3011
|
+
color: Color.Dark100
|
|
3038
3012
|
}
|
|
3039
3013
|
}
|
|
3040
3014
|
};
|
|
3041
3015
|
}
|
|
3042
3016
|
|
|
3043
3017
|
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
|
-
}
|
|
3018
|
+
theme.overrides.MuiSnackbar = {
|
|
3019
|
+
anchorOriginBottomCenter: {
|
|
3020
|
+
left: 0,
|
|
3021
|
+
right: 0,
|
|
3022
|
+
bottom: 0
|
|
3057
3023
|
}
|
|
3058
3024
|
};
|
|
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'
|
|
3025
|
+
theme.overrides.MuiSnackbarContent = {
|
|
3026
|
+
root: {
|
|
3027
|
+
width: '100%',
|
|
3028
|
+
borderRadius: 0,
|
|
3029
|
+
minHeight: theme.spacing(7.5),
|
|
3030
|
+
[theme.breakpoints.up('sm')]: {
|
|
3031
|
+
width: theme.spacing(54),
|
|
3032
|
+
maxWidth: theme.spacing(54),
|
|
3033
|
+
borderRadius: theme.spacing(0.5)
|
|
3074
3034
|
}
|
|
3035
|
+
},
|
|
3036
|
+
message: {
|
|
3037
|
+
flex: 1,
|
|
3038
|
+
display: 'flex'
|
|
3075
3039
|
}
|
|
3076
3040
|
};
|
|
3077
3041
|
}
|
|
3078
3042
|
|
|
3079
3043
|
function overrideSvgIcon(theme) {
|
|
3080
3044
|
var sm = theme.breakpoints.up('sm');
|
|
3081
|
-
theme.
|
|
3082
|
-
|
|
3083
|
-
|
|
3084
|
-
|
|
3085
|
-
|
|
3086
|
-
|
|
3087
|
-
fontSize: 'var(--mui-svg-icon-size, 24px)'
|
|
3088
|
-
}
|
|
3089
|
-
},
|
|
3090
|
-
fontSizeInherit: {
|
|
3091
|
-
fontSize: 'inherit',
|
|
3092
|
-
[sm]: {
|
|
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
|
|
3045
|
+
theme.overrides.MuiSvgIcon = {
|
|
3046
|
+
root: {
|
|
3047
|
+
display: 'inherit',
|
|
3048
|
+
fontSize: 'var(--mui-svg-icon-size, 32px)',
|
|
3049
|
+
[sm]: {
|
|
3050
|
+
fontSize: 'var(--mui-svg-icon-size, 24px)'
|
|
3109
3051
|
}
|
|
3052
|
+
},
|
|
3053
|
+
fontSizeSmall: {
|
|
3054
|
+
fontSize: 'var(--mui-svg-icon-size, 24px)',
|
|
3055
|
+
[sm]: {
|
|
3056
|
+
fontSize: 'var(--mui-svg-icon-size, 16px)'
|
|
3057
|
+
}
|
|
3058
|
+
},
|
|
3059
|
+
fontSizeLarge: {
|
|
3060
|
+
fontSize: 'var(--mui-svg-icon-size, 32px)'
|
|
3061
|
+
},
|
|
3062
|
+
colorAction: {
|
|
3063
|
+
color: Color.Dark100
|
|
3110
3064
|
}
|
|
3111
3065
|
};
|
|
3112
3066
|
}
|
|
3113
3067
|
|
|
3114
3068
|
function overrideSwitch(theme) {
|
|
3115
3069
|
var sm = theme.breakpoints.up('sm');
|
|
3116
|
-
theme.
|
|
3117
|
-
|
|
3118
|
-
|
|
3119
|
-
|
|
3120
|
-
|
|
3121
|
-
|
|
3122
|
-
|
|
3123
|
-
|
|
3124
|
-
|
|
3125
|
-
|
|
3126
|
-
|
|
3127
|
-
|
|
3128
|
-
|
|
3129
|
-
|
|
3130
|
-
|
|
3131
|
-
|
|
3070
|
+
theme.props.MuiSwitch = {
|
|
3071
|
+
color: 'primary',
|
|
3072
|
+
disableRipple: true,
|
|
3073
|
+
disableFocusRipple: true
|
|
3074
|
+
};
|
|
3075
|
+
theme.overrides.MuiSwitch = {
|
|
3076
|
+
root: {
|
|
3077
|
+
width: theme.spacing(9.5),
|
|
3078
|
+
height: theme.spacing(5.5),
|
|
3079
|
+
padding: theme.spacing(0.75, 1.5),
|
|
3080
|
+
[sm]: {
|
|
3081
|
+
width: theme.spacing(8),
|
|
3082
|
+
height: theme.spacing(4),
|
|
3083
|
+
padding: theme.spacing(0.5, 1.5)
|
|
3084
|
+
}
|
|
3085
|
+
},
|
|
3086
|
+
track: {
|
|
3087
|
+
opacity: undefined,
|
|
3088
|
+
boxShadow: "0 0 0 0 ".concat(Color.Transparent),
|
|
3089
|
+
transition: theme.transitions.create(['box-shadow', 'background-color'], {
|
|
3090
|
+
duration: theme.transitions.duration.shortest
|
|
3091
|
+
}),
|
|
3092
|
+
borderRadius: theme.spacing(2),
|
|
3093
|
+
[sm]: {
|
|
3094
|
+
borderRadius: theme.spacing(1.625)
|
|
3095
|
+
}
|
|
3096
|
+
},
|
|
3097
|
+
thumb: {
|
|
3098
|
+
color: Color.White,
|
|
3099
|
+
boxShadow: undefined,
|
|
3100
|
+
width: theme.spacing(3),
|
|
3101
|
+
height: theme.spacing(3),
|
|
3102
|
+
[sm]: {
|
|
3103
|
+
width: theme.spacing(2),
|
|
3104
|
+
height: theme.spacing(2)
|
|
3105
|
+
}
|
|
3106
|
+
},
|
|
3107
|
+
switchBase: {
|
|
3108
|
+
left: theme.spacing(1),
|
|
3109
|
+
padding: theme.spacing(1.25, 1),
|
|
3110
|
+
[sm]: {
|
|
3111
|
+
padding: theme.spacing(1)
|
|
3132
3112
|
},
|
|
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),
|
|
3113
|
+
'&$checked': {
|
|
3114
|
+
transform: "translateX(".concat(theme.spacing(2.5), "px)"),
|
|
3140
3115
|
[sm]: {
|
|
3141
|
-
|
|
3116
|
+
transform: "translateX(".concat(theme.spacing(2), "px)")
|
|
3142
3117
|
}
|
|
3143
3118
|
},
|
|
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
|
-
}
|
|
3119
|
+
'&$checked + $track': {
|
|
3120
|
+
opacity: undefined
|
|
3153
3121
|
},
|
|
3154
|
-
|
|
3155
|
-
|
|
3156
|
-
|
|
3157
|
-
|
|
3158
|
-
|
|
3159
|
-
|
|
3160
|
-
|
|
3161
|
-
|
|
3162
|
-
|
|
3163
|
-
|
|
3122
|
+
'&$disabled + $track': {
|
|
3123
|
+
opacity: undefined
|
|
3124
|
+
}
|
|
3125
|
+
},
|
|
3126
|
+
colorPrimary: {
|
|
3127
|
+
'&$checked': {
|
|
3128
|
+
color: undefined,
|
|
3129
|
+
'&:hover': {
|
|
3130
|
+
backgroundColor: undefined,
|
|
3131
|
+
'& + $track': {
|
|
3132
|
+
backgroundColor: Color.Blue400
|
|
3164
3133
|
}
|
|
3165
|
-
},
|
|
3166
|
-
["&.".concat(switchClasses.checked, " + .").concat(switchClasses.track)]: {
|
|
3167
|
-
opacity: 1
|
|
3168
|
-
},
|
|
3169
|
-
["&.".concat(switchClasses.disabled, " + .").concat(switchClasses.track)]: {
|
|
3170
|
-
opacity: 1
|
|
3171
3134
|
}
|
|
3172
3135
|
},
|
|
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
|
-
}
|
|
3136
|
+
'& + $track': {
|
|
3137
|
+
backgroundColor: Color.Silver500
|
|
3138
|
+
},
|
|
3139
|
+
'&$disabled + $track': {
|
|
3140
|
+
backgroundColor: Color.Silver300
|
|
3141
|
+
},
|
|
3142
|
+
'&$checked$disabled + $track': {
|
|
3143
|
+
backgroundColor: Color.Blue100
|
|
3144
|
+
},
|
|
3145
|
+
'&:hover + $track': {
|
|
3146
|
+
backgroundColor: Color.Dark100
|
|
3147
|
+
},
|
|
3148
|
+
'&.Mui-focusVisible + $track': {
|
|
3149
|
+
boxShadow: "0 0 0 3px ".concat(Color.Blue100)
|
|
3196
3150
|
}
|
|
3197
3151
|
}
|
|
3198
3152
|
};
|
|
3199
3153
|
}
|
|
3200
3154
|
|
|
3201
3155
|
function overrideTabs(theme) {
|
|
3202
|
-
theme.
|
|
3203
|
-
|
|
3204
|
-
|
|
3205
|
-
|
|
3206
|
-
|
|
3207
|
-
|
|
3208
|
-
|
|
3209
|
-
|
|
3210
|
-
|
|
3211
|
-
|
|
3212
|
-
|
|
3213
|
-
|
|
3214
|
-
|
|
3215
|
-
|
|
3216
|
-
|
|
3217
|
-
|
|
3218
|
-
})
|
|
3219
|
-
}
|
|
3156
|
+
theme.props.MuiTabs = {
|
|
3157
|
+
variant: 'scrollable',
|
|
3158
|
+
textColor: 'primary',
|
|
3159
|
+
indicatorColor: 'primary'
|
|
3160
|
+
};
|
|
3161
|
+
theme.overrides.MuiTabs = {
|
|
3162
|
+
root: {
|
|
3163
|
+
minHeight: theme.spacing(6)
|
|
3164
|
+
},
|
|
3165
|
+
scrollButtons: {
|
|
3166
|
+
opacity: 1,
|
|
3167
|
+
color: Color.Dark100,
|
|
3168
|
+
width: theme.spacing(4),
|
|
3169
|
+
transition: theme.transitions.create('opacity', {
|
|
3170
|
+
duration: theme.transitions.duration.short
|
|
3171
|
+
})
|
|
3220
3172
|
}
|
|
3221
3173
|
};
|
|
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
|
-
}
|
|
3174
|
+
theme.overrides.MuiTab = {
|
|
3175
|
+
root: _objectSpread(_objectSpread({}, theme.typography.body2), {}, {
|
|
3176
|
+
minHeight: theme.spacing(6),
|
|
3177
|
+
transition: theme.transitions.create(['color'], {
|
|
3178
|
+
duration: theme.transitions.duration.short
|
|
3234
3179
|
}),
|
|
3235
|
-
|
|
3236
|
-
|
|
3237
|
-
|
|
3238
|
-
|
|
3239
|
-
|
|
3180
|
+
[theme.breakpoints.up('sm')]: {
|
|
3181
|
+
minWidth: undefined,
|
|
3182
|
+
fontSize: undefined,
|
|
3183
|
+
padding: theme.spacing(0.75, 3)
|
|
3184
|
+
}
|
|
3185
|
+
}),
|
|
3186
|
+
textColorPrimary: {
|
|
3187
|
+
color: Color.Dark500,
|
|
3188
|
+
'&:hover, &:focus': {
|
|
3189
|
+
color: Color.Blue300
|
|
3240
3190
|
}
|
|
3241
3191
|
}
|
|
3242
3192
|
};
|
|
@@ -3253,248 +3203,223 @@ var SelectIcon = /*#__PURE__*/forwardRef((props, ref) => /*#__PURE__*/jsx(SvgIco
|
|
|
3253
3203
|
if (process.env.NODE_ENV !== "production") SelectIcon.displayName = "SelectIcon";
|
|
3254
3204
|
function overrideTextField(theme) {
|
|
3255
3205
|
var sm = theme.breakpoints.up('sm');
|
|
3256
|
-
theme.
|
|
3257
|
-
|
|
3258
|
-
|
|
3259
|
-
|
|
3260
|
-
variant: 'outlined'
|
|
3261
|
-
}
|
|
3206
|
+
theme.props.MuiTextField = {
|
|
3207
|
+
minRows: 4,
|
|
3208
|
+
maxRows: 4,
|
|
3209
|
+
variant: 'outlined'
|
|
3262
3210
|
};
|
|
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
|
-
}
|
|
3211
|
+
theme.overrides.MuiFormLabel = {
|
|
3212
|
+
root: _objectSpread(_objectSpread({}, theme.typography.body2), {}, {
|
|
3213
|
+
color: Color.Dark400,
|
|
3214
|
+
'&$error': {
|
|
3215
|
+
color: undefined
|
|
3292
3216
|
},
|
|
3293
|
-
|
|
3294
|
-
|
|
3217
|
+
'&$focused': {
|
|
3218
|
+
color: undefined
|
|
3219
|
+
},
|
|
3220
|
+
'&$disabled': {
|
|
3221
|
+
color: undefined
|
|
3295
3222
|
}
|
|
3223
|
+
})
|
|
3224
|
+
};
|
|
3225
|
+
theme.overrides.MuiInputBase = {
|
|
3226
|
+
root: _objectSpread(_objectSpread({}, theme.typography.body2), {}, {
|
|
3227
|
+
'&$disabled': {
|
|
3228
|
+
backgroundColor: Color.Silver100
|
|
3229
|
+
}
|
|
3230
|
+
}),
|
|
3231
|
+
input: {
|
|
3232
|
+
textOverflow: 'ellipsis',
|
|
3233
|
+
height: theme.spacing(3),
|
|
3234
|
+
[sm]: {
|
|
3235
|
+
height: theme.spacing(2.5)
|
|
3236
|
+
}
|
|
3237
|
+
},
|
|
3238
|
+
inputMultiline: {
|
|
3239
|
+
resize: 'vertical'
|
|
3296
3240
|
}
|
|
3297
3241
|
};
|
|
3298
|
-
theme.
|
|
3299
|
-
|
|
3300
|
-
|
|
3301
|
-
|
|
3302
|
-
|
|
3303
|
-
|
|
3304
|
-
|
|
3305
|
-
|
|
3306
|
-
|
|
3307
|
-
|
|
3308
|
-
|
|
3309
|
-
|
|
3310
|
-
|
|
3311
|
-
|
|
3312
|
-
|
|
3313
|
-
|
|
3314
|
-
|
|
3315
|
-
|
|
3316
|
-
|
|
3317
|
-
|
|
3318
|
-
|
|
3319
|
-
|
|
3320
|
-
|
|
3242
|
+
theme.props.MuiInputLabel = {
|
|
3243
|
+
shrink: true
|
|
3244
|
+
};
|
|
3245
|
+
theme.overrides.MuiInputLabel = {
|
|
3246
|
+
root: {
|
|
3247
|
+
marginBottom: theme.spacing(0.5),
|
|
3248
|
+
transformOrigin: undefined
|
|
3249
|
+
},
|
|
3250
|
+
formControl: {
|
|
3251
|
+
top: undefined,
|
|
3252
|
+
left: undefined,
|
|
3253
|
+
position: undefined,
|
|
3254
|
+
transform: undefined
|
|
3255
|
+
},
|
|
3256
|
+
shrink: {
|
|
3257
|
+
transform: undefined,
|
|
3258
|
+
transformOrigin: undefined
|
|
3259
|
+
},
|
|
3260
|
+
outlined: {
|
|
3261
|
+
zIndex: undefined,
|
|
3262
|
+
transform: undefined,
|
|
3263
|
+
pointerEvents: undefined,
|
|
3264
|
+
'&$shrink': {
|
|
3265
|
+
transform: undefined
|
|
3321
3266
|
}
|
|
3322
3267
|
}
|
|
3323
3268
|
};
|
|
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: {
|
|
3269
|
+
theme.props.MuiOutlinedInput = {
|
|
3270
|
+
notched: false
|
|
3271
|
+
};
|
|
3272
|
+
theme.overrides.MuiOutlinedInput = {
|
|
3273
|
+
root: {
|
|
3274
|
+
'&:hover $notchedOutline': {
|
|
3275
|
+
borderColor: undefined
|
|
3276
|
+
}
|
|
3277
|
+
},
|
|
3278
|
+
input: {
|
|
3279
|
+
padding: theme.spacing(1.25, 1.5),
|
|
3280
|
+
[sm]: {
|
|
3353
3281
|
padding: theme.spacing(0.75, 1)
|
|
3354
|
-
}
|
|
3355
|
-
|
|
3356
|
-
|
|
3357
|
-
|
|
3358
|
-
|
|
3359
|
-
|
|
3360
|
-
|
|
3361
|
-
|
|
3362
|
-
|
|
3363
|
-
|
|
3364
|
-
|
|
3365
|
-
|
|
3366
|
-
|
|
3282
|
+
}
|
|
3283
|
+
},
|
|
3284
|
+
multiline: {
|
|
3285
|
+
padding: theme.spacing(0.75, 1)
|
|
3286
|
+
},
|
|
3287
|
+
adornedStart: {
|
|
3288
|
+
paddingLeft: theme.spacing(1)
|
|
3289
|
+
},
|
|
3290
|
+
adornedEnd: {
|
|
3291
|
+
paddingRight: theme.spacing(1)
|
|
3292
|
+
},
|
|
3293
|
+
notchedOutline: {
|
|
3294
|
+
top: 0,
|
|
3295
|
+
borderColor: Color.Silver500,
|
|
3296
|
+
'& legend': {
|
|
3297
|
+
display: 'none'
|
|
3367
3298
|
}
|
|
3368
3299
|
}
|
|
3369
3300
|
};
|
|
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
|
-
}
|
|
3301
|
+
theme.props.MuiSelect = {
|
|
3302
|
+
IconComponent: SelectIcon
|
|
3303
|
+
};
|
|
3304
|
+
theme.overrides.MuiSelect = {
|
|
3305
|
+
icon: {
|
|
3306
|
+
top: 'calc(50% - 0.5em)',
|
|
3307
|
+
'$disabled &': {
|
|
3308
|
+
color: Color.Dark100
|
|
3390
3309
|
},
|
|
3391
|
-
|
|
3310
|
+
fontSize: theme.spacing(3),
|
|
3311
|
+
[sm]: {
|
|
3312
|
+
fontSize: theme.spacing(2)
|
|
3313
|
+
}
|
|
3314
|
+
},
|
|
3315
|
+
iconOutlined: {
|
|
3316
|
+
right: theme.spacing(1.5),
|
|
3317
|
+
[sm]: {
|
|
3318
|
+
right: theme.spacing(1)
|
|
3319
|
+
}
|
|
3320
|
+
},
|
|
3321
|
+
select: {
|
|
3322
|
+
'&:focus': {
|
|
3323
|
+
backgroundColor: undefined
|
|
3324
|
+
}
|
|
3325
|
+
},
|
|
3326
|
+
selectMenu: {
|
|
3327
|
+
'&&': {
|
|
3392
3328
|
paddingRight: theme.spacing(4.5),
|
|
3393
3329
|
[sm]: {
|
|
3394
3330
|
right: theme.spacing(4)
|
|
3395
|
-
},
|
|
3396
|
-
'&:focus': {
|
|
3397
|
-
backgroundColor: 'unset'
|
|
3398
3331
|
}
|
|
3399
3332
|
}
|
|
3400
3333
|
}
|
|
3401
3334
|
};
|
|
3402
|
-
theme.
|
|
3403
|
-
|
|
3404
|
-
root: {
|
|
3405
|
-
|
|
3406
|
-
|
|
3407
|
-
|
|
3408
|
-
fontSize: theme.spacing(2.5)
|
|
3409
|
-
}
|
|
3410
|
-
},
|
|
3411
|
-
'& .MuiIconButton-root': {
|
|
3412
|
-
padding: theme.spacing(1)
|
|
3335
|
+
theme.overrides.MuiInputAdornment = {
|
|
3336
|
+
root: {
|
|
3337
|
+
'& .MuiSvgIcon-root:not(.MuiSvgIcon-fontSizeSmall)': {
|
|
3338
|
+
fontSize: theme.spacing(3),
|
|
3339
|
+
[sm]: {
|
|
3340
|
+
fontSize: theme.spacing(2.5)
|
|
3413
3341
|
}
|
|
3414
3342
|
},
|
|
3415
|
-
|
|
3416
|
-
|
|
3417
|
-
|
|
3418
|
-
|
|
3419
|
-
|
|
3420
|
-
|
|
3343
|
+
'& .MuiIconButton-root': {
|
|
3344
|
+
padding: theme.spacing(1)
|
|
3345
|
+
}
|
|
3346
|
+
},
|
|
3347
|
+
positionStart: {
|
|
3348
|
+
'& .MuiIconButton-root': {
|
|
3349
|
+
marginLeft: theme.spacing(-0.5),
|
|
3350
|
+
[sm]: {
|
|
3351
|
+
marginLeft: theme.spacing(-0.75)
|
|
3421
3352
|
}
|
|
3422
|
-
}
|
|
3423
|
-
|
|
3424
|
-
|
|
3425
|
-
|
|
3426
|
-
|
|
3427
|
-
|
|
3428
|
-
|
|
3353
|
+
}
|
|
3354
|
+
},
|
|
3355
|
+
positionEnd: {
|
|
3356
|
+
'& .MuiIconButton-root': {
|
|
3357
|
+
marginRight: theme.spacing(-0.5),
|
|
3358
|
+
[sm]: {
|
|
3359
|
+
marginRight: theme.spacing(-0.75)
|
|
3429
3360
|
}
|
|
3430
3361
|
}
|
|
3431
3362
|
}
|
|
3432
3363
|
};
|
|
3433
|
-
theme.
|
|
3434
|
-
|
|
3435
|
-
|
|
3436
|
-
|
|
3437
|
-
|
|
3438
|
-
|
|
3439
|
-
|
|
3440
|
-
marginRight: 'unset'
|
|
3441
|
-
}
|
|
3364
|
+
theme.overrides.MuiFormHelperText = {
|
|
3365
|
+
root: _objectSpread(_objectSpread({}, theme.typography.body2), {}, {
|
|
3366
|
+
marginTop: theme.spacing(0.5)
|
|
3367
|
+
}),
|
|
3368
|
+
contained: {
|
|
3369
|
+
marginLeft: undefined,
|
|
3370
|
+
marginRight: undefined
|
|
3442
3371
|
}
|
|
3443
3372
|
};
|
|
3444
3373
|
}
|
|
3445
3374
|
|
|
3446
3375
|
function overrideToolbar(theme) {
|
|
3447
|
-
theme.
|
|
3448
|
-
|
|
3449
|
-
|
|
3450
|
-
|
|
3451
|
-
|
|
3452
|
-
|
|
3453
|
-
|
|
3454
|
-
|
|
3455
|
-
paddingRight: theme.spacing(2)
|
|
3456
|
-
}
|
|
3376
|
+
theme.overrides.MuiToolbar = {
|
|
3377
|
+
regular: {
|
|
3378
|
+
minHeight: theme.spacing(8)
|
|
3379
|
+
},
|
|
3380
|
+
gutters: {
|
|
3381
|
+
[theme.breakpoints.up('sm')]: {
|
|
3382
|
+
paddingLeft: theme.spacing(2),
|
|
3383
|
+
paddingRight: theme.spacing(2)
|
|
3457
3384
|
}
|
|
3458
3385
|
}
|
|
3459
3386
|
};
|
|
3460
3387
|
}
|
|
3461
3388
|
|
|
3462
3389
|
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
|
-
}
|
|
3390
|
+
theme.props.MuiTooltip = {
|
|
3391
|
+
arrow: true
|
|
3392
|
+
};
|
|
3393
|
+
theme.overrides.MuiTooltip = {
|
|
3394
|
+
tooltip: _objectSpread(_objectSpread({}, theme.typography.body2), {}, {
|
|
3395
|
+
padding: theme.spacing(1, 1.5),
|
|
3396
|
+
backgroundColor: Color.Dark400
|
|
3397
|
+
}),
|
|
3398
|
+
popperArrow: {
|
|
3399
|
+
'&[x-placement*="top"] $arrow': {
|
|
3400
|
+
'&::before': {
|
|
3401
|
+
borderBottomRightRadius: 2
|
|
3402
|
+
}
|
|
3403
|
+
},
|
|
3404
|
+
'&[x-placement*="left"] $arrow': {
|
|
3405
|
+
'&::before': {
|
|
3406
|
+
borderTopRightRadius: 2
|
|
3407
|
+
}
|
|
3408
|
+
},
|
|
3409
|
+
'&[x-placement*="right"] $arrow': {
|
|
3410
|
+
'&::before': {
|
|
3411
|
+
borderBottomLeftRadius: 2
|
|
3492
3412
|
}
|
|
3493
3413
|
},
|
|
3494
|
-
arrow: {
|
|
3495
|
-
|
|
3496
|
-
|
|
3414
|
+
'&[x-placement*="bottom"] $arrow': {
|
|
3415
|
+
'&::before': {
|
|
3416
|
+
borderTopLeftRadius: 2
|
|
3417
|
+
}
|
|
3497
3418
|
}
|
|
3419
|
+
},
|
|
3420
|
+
arrow: {
|
|
3421
|
+
color: Color.Dark400,
|
|
3422
|
+
fontSize: theme.spacing(1)
|
|
3498
3423
|
}
|
|
3499
3424
|
};
|
|
3500
3425
|
}
|
|
@@ -3604,18 +3529,8 @@ function createTypographyOptions(breakpoints) {
|
|
|
3604
3529
|
};
|
|
3605
3530
|
}
|
|
3606
3531
|
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
|
-
}
|
|
3532
|
+
theme.props.MuiTypography = {
|
|
3533
|
+
variant: 'body2'
|
|
3619
3534
|
};
|
|
3620
3535
|
}
|
|
3621
3536
|
|
|
@@ -3638,39 +3553,39 @@ function createSuperDispatchTheme() {
|
|
|
3638
3553
|
text: {
|
|
3639
3554
|
primary: Color.Dark500,
|
|
3640
3555
|
secondary: Color.Dark200,
|
|
3641
|
-
|
|
3556
|
+
hint: Color.Dark100,
|
|
3642
3557
|
disabled: Color.Dark100
|
|
3643
3558
|
},
|
|
3644
3559
|
divider: Color.Silver400
|
|
3645
3560
|
},
|
|
3646
3561
|
typography: createTypographyOptions(breakpoints),
|
|
3647
|
-
|
|
3562
|
+
props: {},
|
|
3563
|
+
overrides: {}
|
|
3648
3564
|
});
|
|
3649
|
-
overrideCard(theme);
|
|
3650
|
-
overrideButton(theme);
|
|
3651
3565
|
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
3566
|
overrideAutocomplete(theme);
|
|
3662
|
-
|
|
3567
|
+
overrideAvatar(theme);
|
|
3568
|
+
overrideButton(theme);
|
|
3569
|
+
overrideCard(theme);
|
|
3663
3570
|
overrideCheckbox(theme);
|
|
3664
|
-
overrideRadio(theme);
|
|
3665
|
-
overrideSwitch(theme);
|
|
3666
3571
|
overrideChip(theme);
|
|
3667
3572
|
overrideDialog(theme);
|
|
3668
3573
|
overrideDrawer(theme);
|
|
3669
|
-
|
|
3670
|
-
overrideList(theme);
|
|
3574
|
+
overrideIconButton(theme);
|
|
3671
3575
|
overrideLink(theme);
|
|
3576
|
+
overrideList(theme);
|
|
3577
|
+
overrideMenu(theme);
|
|
3578
|
+
overridePaper(theme);
|
|
3579
|
+
overrideRadio(theme);
|
|
3672
3580
|
overrideSnackbar(theme);
|
|
3581
|
+
overrideSvgIcon(theme);
|
|
3582
|
+
overrideSwitch(theme);
|
|
3673
3583
|
overrideTabs(theme);
|
|
3584
|
+
overrideTextField(theme);
|
|
3585
|
+
overrideToolbar(theme);
|
|
3586
|
+
overrideTooltip(theme);
|
|
3587
|
+
overrideTypography(theme);
|
|
3588
|
+
overridePagination(theme);
|
|
3674
3589
|
return theme;
|
|
3675
3590
|
}
|
|
3676
3591
|
|
|
@@ -3718,9 +3633,12 @@ function ThemeProvider(_ref) {
|
|
|
3718
3633
|
generateClassName: generateClassName,
|
|
3719
3634
|
children: /*#__PURE__*/jsxs(ThemeProvider$1, {
|
|
3720
3635
|
theme: theme,
|
|
3721
|
-
children: [/*#__PURE__*/jsx(CssBaseline, {}), /*#__PURE__*/jsx(
|
|
3722
|
-
|
|
3723
|
-
|
|
3636
|
+
children: [/*#__PURE__*/jsx(CssBaseline, {}), /*#__PURE__*/jsx(ThemeProvider$2, {
|
|
3637
|
+
theme: theme,
|
|
3638
|
+
children: /*#__PURE__*/jsx(ResponsiveContextProvider, {
|
|
3639
|
+
children: /*#__PURE__*/jsx(SnackbarStackProvider, {
|
|
3640
|
+
children: children
|
|
3641
|
+
})
|
|
3724
3642
|
})
|
|
3725
3643
|
})]
|
|
3726
3644
|
})
|
|
@@ -3731,13 +3649,12 @@ var PREVENT_COLLAPSE = 1;
|
|
|
3731
3649
|
|
|
3732
3650
|
function spaceVariant(theme, space) {
|
|
3733
3651
|
var gap = theme.spacing(space);
|
|
3734
|
-
var parsedGap = parseInt(gap);
|
|
3735
3652
|
return {
|
|
3736
3653
|
'&:before': {
|
|
3737
|
-
marginTop: -
|
|
3654
|
+
marginTop: -gap - PREVENT_COLLAPSE
|
|
3738
3655
|
},
|
|
3739
3656
|
'& > $container': {
|
|
3740
|
-
marginLeft: -
|
|
3657
|
+
marginLeft: -gap,
|
|
3741
3658
|
'& > $child > $childContainer': {
|
|
3742
3659
|
marginTop: gap,
|
|
3743
3660
|
marginLeft: gap
|
|
@@ -3752,7 +3669,7 @@ function columnVariant(columns) {
|
|
|
3752
3669
|
};
|
|
3753
3670
|
}
|
|
3754
3671
|
|
|
3755
|
-
var useStyles$
|
|
3672
|
+
var useStyles$d = /*#__PURE__*/makeStyles(theme => ({
|
|
3756
3673
|
root: {
|
|
3757
3674
|
paddingTop: PREVENT_COLLAPSE,
|
|
3758
3675
|
'&:before': {
|
|
@@ -3796,7 +3713,7 @@ var Tiles = /*#__PURE__*/forwardRef((_ref, ref) => {
|
|
|
3796
3713
|
space: spaceProp = 1,
|
|
3797
3714
|
columns: columnsProp = 1
|
|
3798
3715
|
} = _ref;
|
|
3799
|
-
var styles = useStyles$
|
|
3716
|
+
var styles = useStyles$d({});
|
|
3800
3717
|
var space = useResponsivePropRecord(spaceProp);
|
|
3801
3718
|
var columns = useResponsivePropRecord(columnsProp);
|
|
3802
3719
|
return /*#__PURE__*/jsx("div", {
|