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