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