@superdispatch/ui 0.21.5-alpha.4 → 0.21.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist-node/index.js +1357 -1441
- package/dist-node/index.js.map +1 -1
- package/dist-src/adaptive-toolbar/AdaptiveToolbar.js +12 -14
- package/dist-src/adaptive-vertical-toolbar/AdaptiveVerticalToolbar.js +3 -3
- package/dist-src/app-bar/AppBarOverrides.js +4 -6
- package/dist-src/autocomplete/AutocompleteOverrides.js +18 -14
- package/dist-src/avatar/AvatarOverrides.js +12 -14
- package/dist-src/avatar-button/AvatarButton.js +92 -80
- package/dist-src/button/Button.js +15 -11
- package/dist-src/button/ButtonOverrides.js +149 -147
- package/dist-src/card/CardOverrides.js +6 -10
- package/dist-src/card-button/CardButton.js +75 -78
- package/dist-src/checkbox/CheckboxField.js +1 -1
- package/dist-src/checkbox/CheckboxGroudField.js +1 -1
- package/dist-src/checkbox/CheckboxOverrides.js +50 -60
- package/dist-src/chip/ChipOverrides.js +85 -88
- package/dist-src/description-list/DescriptionList.js +55 -58
- package/dist-src/dialog/DialogOverrides.js +25 -31
- package/dist-src/drawer/DrawerActions.js +34 -32
- package/dist-src/drawer/DrawerContent.js +26 -10
- package/dist-src/drawer/DrawerList.js +27 -8
- package/dist-src/drawer/DrawerOverrides.js +10 -12
- package/dist-src/drawer/DrawerTitle.js +40 -46
- package/dist-src/dropdown-button/DropdownButton.js +1 -1
- package/dist-src/grid/GridStack.js +1 -1
- package/dist-src/grid/InlineGrid.js +2 -2
- package/dist-src/icon-button/IconButtonOverrides.js +32 -48
- package/dist-src/info-card/InfoCard.js +37 -27
- package/dist-src/link/LinkOverrides.js +26 -29
- package/dist-src/list/ListOverrides.js +7 -10
- package/dist-src/menu/MenuOverrides.js +14 -28
- package/dist-src/number-field/NumberField.js +1 -1
- package/dist-src/overflow-text/OverflowText.js +34 -35
- package/dist-src/pagination/PaginationOverrides.js +32 -27
- package/dist-src/paper/PaperOverrides.js +6 -8
- package/dist-src/radio/RadioField.js +1 -1
- package/dist-src/radio/RadioGroupField.js +1 -1
- package/dist-src/radio/RadioOverrides.js +36 -38
- package/dist-src/responsive/ResponsiveContext.js +1 -1
- package/dist-src/snackbar/Snackbar.js +1 -1
- package/dist-src/snackbar/SnackbarContent.js +3 -3
- package/dist-src/snackbar/SnackbarOverrides.js +18 -28
- package/dist-src/svg-icon/SvgIconOverrides.js +18 -28
- package/dist-src/switch/SwitchOverrides.js +71 -72
- package/dist-src/tabs/TabsOverrides.js +30 -34
- package/dist-src/tag/Tag.js +2 -2
- package/dist-src/text-field/TextFieldOverrides.js +137 -158
- package/dist-src/theme/ThemeProvider.js +28 -25
- package/dist-src/tiles/Tiles.js +3 -4
- package/dist-src/toolbar/ToolbarOverrides.js +8 -10
- package/dist-src/tooltip/TooltipOverrides.js +30 -33
- package/dist-src/typography/TypographyOverrides.js +2 -12
- package/dist-types/index.d.ts +381 -385
- package/dist-web/index.js +1289 -1373
- package/dist-web/index.js.map +1 -1
- package/package.json +39 -39
- package/dist-src/theme/CssBaselineOverrides.js +0 -8
|
@@ -1,5 +1,11 @@
|
|
|
1
|
+
import _objectWithoutProperties from "@babel/runtime/helpers/objectWithoutProperties";
|
|
1
2
|
import _objectSpread from "@babel/runtime/helpers/objectSpread2";
|
|
2
|
-
|
|
3
|
+
var _excluded = ["className"];
|
|
4
|
+
import { List } from '@material-ui/core';
|
|
5
|
+
import { makeStyles } from '@material-ui/styles';
|
|
6
|
+
import clsx from 'clsx';
|
|
7
|
+
import { forwardRef } from 'react';
|
|
8
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
3
9
|
|
|
4
10
|
function listItemMixins(theme, space) {
|
|
5
11
|
return {
|
|
@@ -19,13 +25,26 @@ function listItemMixins(theme, space) {
|
|
|
19
25
|
};
|
|
20
26
|
}
|
|
21
27
|
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
theme
|
|
25
|
-
} = _ref;
|
|
26
|
-
return _objectSpread(_objectSpread({
|
|
28
|
+
var useStyles = /*#__PURE__*/makeStyles(theme => ({
|
|
29
|
+
root: _objectSpread(_objectSpread({
|
|
27
30
|
maxWidth: '100%'
|
|
28
31
|
}, listItemMixins(theme, 3)), {}, {
|
|
29
32
|
[theme.breakpoints.up('md')]: _objectSpread({}, listItemMixins(theme, 4))
|
|
30
|
-
})
|
|
31
|
-
})
|
|
33
|
+
})
|
|
34
|
+
}), {
|
|
35
|
+
name: 'SD-DrawerList'
|
|
36
|
+
});
|
|
37
|
+
export var DrawerList = /*#__PURE__*/forwardRef((_ref, ref) => {
|
|
38
|
+
var {
|
|
39
|
+
className
|
|
40
|
+
} = _ref,
|
|
41
|
+
props = _objectWithoutProperties(_ref, _excluded);
|
|
42
|
+
|
|
43
|
+
var styles = useStyles();
|
|
44
|
+
return /*#__PURE__*/_jsx(List, _objectSpread(_objectSpread({}, props), {}, {
|
|
45
|
+
ref: ref,
|
|
46
|
+
component: "div",
|
|
47
|
+
className: clsx(className, styles.root)
|
|
48
|
+
}));
|
|
49
|
+
});
|
|
50
|
+
if (process.env.NODE_ENV !== "production") DrawerList.displayName = "DrawerList";
|
|
@@ -1,16 +1,14 @@
|
|
|
1
1
|
export function overrideDrawer(theme) {
|
|
2
|
-
theme.
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
maxWidth: theme.breakpoints.values.sm
|
|
13
|
-
}
|
|
2
|
+
theme.props.MuiDrawer = {
|
|
3
|
+
anchor: 'right'
|
|
4
|
+
};
|
|
5
|
+
theme.overrides.MuiDrawer = {
|
|
6
|
+
paper: {
|
|
7
|
+
maxWidth: '100%',
|
|
8
|
+
minWidth: '100%',
|
|
9
|
+
[theme.breakpoints.up('sm')]: {
|
|
10
|
+
minWidth: theme.spacing(54),
|
|
11
|
+
maxWidth: theme.breakpoints.values.sm
|
|
14
12
|
}
|
|
15
13
|
}
|
|
16
14
|
};
|
|
@@ -1,32 +1,29 @@
|
|
|
1
1
|
import _objectSpread from "@babel/runtime/helpers/objectSpread2";
|
|
2
2
|
import _objectWithoutProperties from "@babel/runtime/helpers/objectWithoutProperties";
|
|
3
|
-
var _excluded = ["title", "titleTypographyProps", "subtitle", "subtitleTypographyProps", "startAction", "endAction"];
|
|
4
|
-
import { AppBar, Grid,
|
|
3
|
+
var _excluded = ["title", "titleTypographyProps", "subtitle", "subtitleTypographyProps", "startAction", "endAction", "className"];
|
|
4
|
+
import { AppBar, Grid, Toolbar, Typography } from '@material-ui/core';
|
|
5
|
+
import { makeStyles } from '@material-ui/styles';
|
|
6
|
+
import clsx from 'clsx';
|
|
5
7
|
import { forwardRef } from 'react';
|
|
6
8
|
import { Color } from "../theme/Color.js";
|
|
7
9
|
import { VisibilityObserver } from "../utils/VisibilityObserver.js";
|
|
8
10
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
9
11
|
import { jsxs as _jsxs } from "react/jsx-runtime";
|
|
10
12
|
import { Fragment as _Fragment } from "react/jsx-runtime";
|
|
11
|
-
var
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
borderBottomColor: Color.Transparent
|
|
13
|
+
var useStyles = /*#__PURE__*/makeStyles(theme => ({
|
|
14
|
+
appBar: {
|
|
15
|
+
'&&': {
|
|
16
|
+
borderTop: 'none',
|
|
17
|
+
borderLeft: 'none',
|
|
18
|
+
borderRight: 'none',
|
|
19
|
+
transition: theme.transitions.create(['border-color']),
|
|
20
|
+
'&:not($appBarSticky)': {
|
|
21
|
+
borderBottomColor: Color.Transparent
|
|
22
|
+
}
|
|
22
23
|
}
|
|
23
|
-
}
|
|
24
|
-
}
|
|
25
|
-
|
|
26
|
-
var {
|
|
27
|
-
theme
|
|
28
|
-
} = _ref2;
|
|
29
|
-
return {
|
|
24
|
+
},
|
|
25
|
+
appBarSticky: {},
|
|
26
|
+
toolbar: {
|
|
30
27
|
'&.MuiToolbar-gutters': {
|
|
31
28
|
paddingLeft: theme.spacing(3),
|
|
32
29
|
paddingRight: theme.spacing(3),
|
|
@@ -35,60 +32,56 @@ var StyledToolbar = /*#__PURE__*/styled(Toolbar)(_ref2 => {
|
|
|
35
32
|
paddingRight: theme.spacing(4)
|
|
36
33
|
}
|
|
37
34
|
}
|
|
38
|
-
}
|
|
39
|
-
|
|
40
|
-
var StartAction = /*#__PURE__*/styled(Grid)(_ref3 => {
|
|
41
|
-
var {
|
|
42
|
-
theme
|
|
43
|
-
} = _ref3;
|
|
44
|
-
return {
|
|
35
|
+
},
|
|
36
|
+
startAction: {
|
|
45
37
|
marginRight: theme.spacing(0.5),
|
|
46
38
|
'& .MuiIconButton-edgeStart': {
|
|
47
39
|
marginLeft: theme.spacing(-2)
|
|
48
40
|
}
|
|
49
|
-
}
|
|
50
|
-
|
|
51
|
-
var EndAction = /*#__PURE__*/styled(Grid)(_ref4 => {
|
|
52
|
-
var {
|
|
53
|
-
theme
|
|
54
|
-
} = _ref4;
|
|
55
|
-
return {
|
|
41
|
+
},
|
|
42
|
+
endAction: {
|
|
56
43
|
marginLeft: theme.spacing(0.5),
|
|
57
44
|
'& .MuiIconButton-edgeEnd': {
|
|
58
45
|
marginRight: theme.spacing(-2)
|
|
59
46
|
}
|
|
60
|
-
}
|
|
47
|
+
}
|
|
48
|
+
}), {
|
|
49
|
+
name: 'SD-DrawerTitle'
|
|
61
50
|
});
|
|
62
|
-
export var DrawerTitle = /*#__PURE__*/forwardRef((
|
|
51
|
+
export var DrawerTitle = /*#__PURE__*/forwardRef((_ref, appBarRef) => {
|
|
63
52
|
var {
|
|
64
53
|
title,
|
|
65
54
|
titleTypographyProps,
|
|
66
55
|
subtitle,
|
|
67
56
|
subtitleTypographyProps,
|
|
68
57
|
startAction,
|
|
69
|
-
endAction
|
|
70
|
-
|
|
71
|
-
|
|
58
|
+
endAction,
|
|
59
|
+
className
|
|
60
|
+
} = _ref,
|
|
61
|
+
props = _objectWithoutProperties(_ref, _excluded);
|
|
72
62
|
|
|
63
|
+
var styles = useStyles();
|
|
73
64
|
return /*#__PURE__*/_jsx(VisibilityObserver, {
|
|
74
|
-
render:
|
|
65
|
+
render: _ref2 => {
|
|
75
66
|
var {
|
|
76
67
|
ref,
|
|
77
68
|
visibility
|
|
78
|
-
} =
|
|
69
|
+
} = _ref2;
|
|
79
70
|
return /*#__PURE__*/_jsxs(_Fragment, {
|
|
80
71
|
children: [/*#__PURE__*/_jsx("div", {
|
|
81
72
|
ref: ref
|
|
82
|
-
}), /*#__PURE__*/_jsx(
|
|
73
|
+
}), /*#__PURE__*/_jsx(AppBar, _objectSpread(_objectSpread({}, props), {}, {
|
|
83
74
|
ref: appBarRef,
|
|
84
75
|
position: "sticky",
|
|
85
|
-
|
|
86
|
-
children: /*#__PURE__*/_jsx(
|
|
76
|
+
className: clsx(styles.appBar, className, visibility === 'invisible' && styles.appBarSticky),
|
|
77
|
+
children: /*#__PURE__*/_jsx(Toolbar, {
|
|
78
|
+
className: styles.toolbar,
|
|
87
79
|
children: /*#__PURE__*/_jsxs(Grid, {
|
|
88
80
|
container: true,
|
|
89
81
|
alignItems: "center",
|
|
90
|
-
children: [!!startAction && /*#__PURE__*/_jsx(
|
|
82
|
+
children: [!!startAction && /*#__PURE__*/_jsx(Grid, {
|
|
91
83
|
item: true,
|
|
84
|
+
className: styles.startAction,
|
|
92
85
|
children: startAction
|
|
93
86
|
}), /*#__PURE__*/_jsxs(Grid, {
|
|
94
87
|
item: true,
|
|
@@ -105,8 +98,9 @@ export var DrawerTitle = /*#__PURE__*/forwardRef((_ref5, appBarRef) => {
|
|
|
105
98
|
}, subtitleTypographyProps), {}, {
|
|
106
99
|
children: subtitle
|
|
107
100
|
}))]
|
|
108
|
-
}), !!endAction && /*#__PURE__*/_jsx(
|
|
101
|
+
}), !!endAction && /*#__PURE__*/_jsx(Grid, {
|
|
109
102
|
item: true,
|
|
103
|
+
className: styles.endAction,
|
|
110
104
|
children: endAction
|
|
111
105
|
})]
|
|
112
106
|
})
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import _objectSpread from "@babel/runtime/helpers/objectSpread2";
|
|
2
2
|
import _objectWithoutProperties from "@babel/runtime/helpers/objectWithoutProperties";
|
|
3
3
|
var _excluded = ["MenuListProps", "ButtonGroupProps", "children", "isLoading", "onClick", "label"];
|
|
4
|
-
import { ButtonGroup, MenuList, Popover } from '@
|
|
4
|
+
import { ButtonGroup, MenuList, Popover } from '@material-ui/core';
|
|
5
5
|
import * as React from 'react';
|
|
6
6
|
import { forwardRef } from 'react';
|
|
7
7
|
import styled from 'styled-components';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import _objectSpread from "@babel/runtime/helpers/objectSpread2";
|
|
2
2
|
import _objectWithoutProperties from "@babel/runtime/helpers/objectWithoutProperties";
|
|
3
3
|
var _excluded = ["children", "alignItems"];
|
|
4
|
-
import { Grid } from '@
|
|
4
|
+
import { Grid } from '@material-ui/core';
|
|
5
5
|
import { Children, forwardRef } from 'react';
|
|
6
6
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
7
7
|
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import _objectSpread from "@babel/runtime/helpers/objectSpread2";
|
|
2
2
|
import _objectWithoutProperties from "@babel/runtime/helpers/objectWithoutProperties";
|
|
3
3
|
var _excluded = ["children", "wrap", "justify", "alignItems"];
|
|
4
|
-
import { Grid } from '@
|
|
4
|
+
import { Grid } from '@material-ui/core';
|
|
5
5
|
import { Children, forwardRef } from 'react';
|
|
6
6
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
7
7
|
|
|
@@ -22,7 +22,7 @@ export var InlineGrid = /*#__PURE__*/forwardRef((_ref, ref) => {
|
|
|
22
22
|
ref: ref,
|
|
23
23
|
wrap: wrap,
|
|
24
24
|
container: true,
|
|
25
|
-
|
|
25
|
+
justify: justify,
|
|
26
26
|
alignItems: alignItems,
|
|
27
27
|
children: items.map((item, idx) => /*#__PURE__*/_jsx(Grid, {
|
|
28
28
|
item: true,
|
|
@@ -1,60 +1,44 @@
|
|
|
1
|
-
import { iconButtonClasses } from '@mui/material';
|
|
2
1
|
import { Color } from "../theme/Color.js";
|
|
3
2
|
export function overrideIconButton(theme) {
|
|
4
|
-
theme.
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
duration: theme.transitions.duration.short
|
|
14
|
-
}),
|
|
15
|
-
'&:hover': {
|
|
16
|
-
backgroundColor: Color.Transparent
|
|
17
|
-
},
|
|
18
|
-
'&:active': {
|
|
19
|
-
color: Color.Dark500
|
|
20
|
-
},
|
|
21
|
-
'&:hover ': {
|
|
22
|
-
color: Color.Dark300
|
|
23
|
-
},
|
|
24
|
-
'&:focus': {
|
|
25
|
-
backgroundColor: Color.Silver400
|
|
26
|
-
},
|
|
27
|
-
["&.".concat(iconButtonClasses.disabled)]: {
|
|
28
|
-
color: Color.Silver500
|
|
29
|
-
}
|
|
3
|
+
theme.overrides.MuiIconButton = {
|
|
4
|
+
root: {
|
|
5
|
+
color: Color.Dark100,
|
|
6
|
+
backgroundColor: Color.Transparent,
|
|
7
|
+
transition: theme.transitions.create(['color', 'background-color'], {
|
|
8
|
+
duration: theme.transitions.duration.short
|
|
9
|
+
}),
|
|
10
|
+
'&:hover': {
|
|
11
|
+
backgroundColor: Color.Transparent
|
|
30
12
|
},
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
color: Color.Blue500
|
|
34
|
-
},
|
|
35
|
-
'&:hover ': {
|
|
36
|
-
color: Color.Blue300
|
|
37
|
-
},
|
|
38
|
-
'&:focus': {
|
|
39
|
-
backgroundColor: Color.Blue50
|
|
40
|
-
}
|
|
13
|
+
'&:active': {
|
|
14
|
+
color: Color.Dark500
|
|
41
15
|
},
|
|
42
|
-
|
|
43
|
-
|
|
16
|
+
'&:hover ': {
|
|
17
|
+
color: Color.Dark300
|
|
44
18
|
},
|
|
45
|
-
|
|
46
|
-
|
|
19
|
+
'&:focus': {
|
|
20
|
+
backgroundColor: Color.Silver400
|
|
47
21
|
},
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
22
|
+
'&$disabled': {
|
|
23
|
+
color: Color.Silver500
|
|
24
|
+
}
|
|
25
|
+
},
|
|
26
|
+
colorPrimary: {
|
|
27
|
+
'&:active': {
|
|
28
|
+
color: Color.Blue500
|
|
51
29
|
},
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
fontSize: theme.typography.pxToRem(24)
|
|
30
|
+
'&:hover ': {
|
|
31
|
+
color: Color.Blue300
|
|
55
32
|
},
|
|
56
|
-
|
|
33
|
+
'&:focus': {
|
|
34
|
+
backgroundColor: Color.Blue50
|
|
57
35
|
}
|
|
36
|
+
},
|
|
37
|
+
edgeEnd: {
|
|
38
|
+
marginRight: theme.spacing(-1)
|
|
39
|
+
},
|
|
40
|
+
edgeStart: {
|
|
41
|
+
marginLeft: theme.spacing(-1)
|
|
58
42
|
}
|
|
59
43
|
};
|
|
60
44
|
}
|
|
@@ -1,36 +1,35 @@
|
|
|
1
1
|
import _objectSpread from "@babel/runtime/helpers/objectSpread2";
|
|
2
2
|
import _objectWithoutProperties from "@babel/runtime/helpers/objectWithoutProperties";
|
|
3
|
-
var _excluded = ["size", "square", "classes", "children", "className", "CardContentProps"]
|
|
4
|
-
|
|
3
|
+
var _excluded = ["size", "square", "classes", "children", "className", "CardContentProps"],
|
|
4
|
+
_excluded2 = ["content", "sizeLarge", "fullWidth"];
|
|
5
|
+
import { Card, CardContent } from '@material-ui/core';
|
|
6
|
+
import { makeStyles } from '@material-ui/styles';
|
|
7
|
+
import clsx from 'clsx';
|
|
5
8
|
import { forwardRef, useState } from 'react';
|
|
6
9
|
import { assignRef } from "../utils/mergeRefs.js";
|
|
7
10
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
8
|
-
var
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
} = _ref;
|
|
12
|
-
return {
|
|
13
|
-
padding: theme.spacing(2)
|
|
14
|
-
};
|
|
15
|
-
});
|
|
16
|
-
var StyledCard = /*#__PURE__*/styled(Card)(_ref2 => {
|
|
17
|
-
var {
|
|
18
|
-
theme
|
|
19
|
-
} = _ref2;
|
|
20
|
-
return {
|
|
21
|
-
'&[data-full-width="true"]': {
|
|
11
|
+
var useStyles = /*#__PURE__*/makeStyles(theme => ({
|
|
12
|
+
root: {
|
|
13
|
+
'&$fullWidth': {
|
|
22
14
|
borderRadius: 0,
|
|
23
15
|
borderLeftWidth: 0,
|
|
24
16
|
borderRightWidth: 0
|
|
25
|
-
}
|
|
26
|
-
|
|
17
|
+
}
|
|
18
|
+
},
|
|
19
|
+
fullWidth: {},
|
|
20
|
+
sizeLarge: {},
|
|
21
|
+
content: {
|
|
22
|
+
padding: theme.spacing(2),
|
|
23
|
+
'$sizeLarge > &': {
|
|
27
24
|
[theme.breakpoints.up('sm')]: {
|
|
28
25
|
padding: theme.spacing(3)
|
|
29
26
|
}
|
|
30
27
|
}
|
|
31
|
-
}
|
|
28
|
+
}
|
|
29
|
+
}), {
|
|
30
|
+
name: 'SD-InfoCard'
|
|
32
31
|
});
|
|
33
|
-
export var InfoCard = /*#__PURE__*/forwardRef((
|
|
32
|
+
export var InfoCard = /*#__PURE__*/forwardRef((_ref, _ref2) => {
|
|
34
33
|
var {
|
|
35
34
|
size,
|
|
36
35
|
square,
|
|
@@ -38,20 +37,31 @@ export var InfoCard = /*#__PURE__*/forwardRef((_ref3, _ref4) => {
|
|
|
38
37
|
children,
|
|
39
38
|
className,
|
|
40
39
|
CardContentProps: cardContentProps = {}
|
|
41
|
-
} =
|
|
42
|
-
props = _objectWithoutProperties(
|
|
40
|
+
} = _ref,
|
|
41
|
+
props = _objectWithoutProperties(_ref, _excluded);
|
|
42
|
+
|
|
43
|
+
var _useStyles = useStyles({
|
|
44
|
+
classes
|
|
45
|
+
}),
|
|
46
|
+
{
|
|
47
|
+
content: contentClassName,
|
|
48
|
+
sizeLarge: sizeLargeClassName,
|
|
49
|
+
fullWidth: fullWidthClassName
|
|
50
|
+
} = _useStyles,
|
|
51
|
+
styles = _objectWithoutProperties(_useStyles, _excluded2);
|
|
43
52
|
|
|
44
53
|
var [rootNode, setRootNode] = useState(null);
|
|
45
54
|
var clientRect = rootNode === null || rootNode === void 0 ? void 0 : rootNode.getBoundingClientRect();
|
|
46
55
|
var isFullWidth = (clientRect === null || clientRect === void 0 ? void 0 : clientRect.width) === window.innerWidth;
|
|
47
|
-
return /*#__PURE__*/_jsx(
|
|
56
|
+
return /*#__PURE__*/_jsx(Card, _objectSpread(_objectSpread({}, props), {}, {
|
|
48
57
|
ref: node => {
|
|
49
|
-
assignRef(
|
|
58
|
+
assignRef(_ref2, node);
|
|
50
59
|
setRootNode(node);
|
|
51
60
|
},
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
children: /*#__PURE__*/_jsx(
|
|
61
|
+
classes: styles,
|
|
62
|
+
className: clsx(className, isFullWidth && fullWidthClassName, size === 'large' && sizeLargeClassName),
|
|
63
|
+
children: /*#__PURE__*/_jsx(CardContent, _objectSpread(_objectSpread({}, cardContentProps), {}, {
|
|
64
|
+
className: clsx(cardContentProps.className, contentClassName),
|
|
55
65
|
children: children
|
|
56
66
|
}))
|
|
57
67
|
}));
|
|
@@ -5,42 +5,39 @@ function line(color) {
|
|
|
5
5
|
}
|
|
6
6
|
|
|
7
7
|
export function overrideLink(theme) {
|
|
8
|
-
theme.
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
'
|
|
20
|
-
outline: 'none'
|
|
21
|
-
},
|
|
22
|
-
'&:hover, &:active': {
|
|
23
|
-
backgroundImage: line('currentColor')
|
|
24
|
-
}
|
|
8
|
+
theme.props.MuiLink = {
|
|
9
|
+
underline: 'none',
|
|
10
|
+
color: 'textPrimary'
|
|
11
|
+
};
|
|
12
|
+
theme.overrides.MuiLink = {
|
|
13
|
+
root: {
|
|
14
|
+
backgroundSize: '100% 1px',
|
|
15
|
+
backgroundRepeat: 'repeat-x',
|
|
16
|
+
backgroundPosition: '0 100%',
|
|
17
|
+
backgroundColor: Color.Transparent,
|
|
18
|
+
'&:focus': {
|
|
19
|
+
outline: 'none'
|
|
25
20
|
},
|
|
26
|
-
|
|
27
|
-
|
|
21
|
+
'&:hover, &:active': {
|
|
22
|
+
backgroundImage: line('currentColor')
|
|
23
|
+
},
|
|
24
|
+
'&.MuiTypography-colorTextPrimary': {
|
|
28
25
|
backgroundImage: line(Color.Silver500),
|
|
29
26
|
'&:focus, &:hover, &:active': {
|
|
30
27
|
color: Color.Blue300,
|
|
31
28
|
backgroundImage: line(Color.Blue300)
|
|
32
29
|
}
|
|
33
|
-
},
|
|
34
|
-
button: {
|
|
35
|
-
// Reset button styles.
|
|
36
|
-
backgroundColor: 'unset',
|
|
37
|
-
// Override browser defaults.
|
|
38
|
-
fontSize: 'inherit',
|
|
39
|
-
textAlign: 'inherit',
|
|
40
|
-
lineHeight: 'inherit',
|
|
41
|
-
userSelect: 'inherit',
|
|
42
|
-
verticalAlign: 'inherit'
|
|
43
30
|
}
|
|
31
|
+
},
|
|
32
|
+
button: {
|
|
33
|
+
// Reset button styles.
|
|
34
|
+
backgroundColor: undefined,
|
|
35
|
+
// Override browser defaults.
|
|
36
|
+
fontSize: 'inherit',
|
|
37
|
+
textAlign: 'inherit',
|
|
38
|
+
lineHeight: 'inherit',
|
|
39
|
+
userSelect: 'inherit',
|
|
40
|
+
verticalAlign: 'inherit'
|
|
44
41
|
}
|
|
45
42
|
};
|
|
46
43
|
}
|
|
@@ -1,15 +1,12 @@
|
|
|
1
|
-
import { listItemClasses } from '@mui/material';
|
|
2
1
|
import { Color } from "../theme/Color.js";
|
|
3
2
|
export function overrideList(theme) {
|
|
4
|
-
theme.
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
color: Color.Blue100
|
|
12
|
-
}
|
|
3
|
+
theme.overrides.MuiListItem = {
|
|
4
|
+
root: {
|
|
5
|
+
'&$selected, &$selected:hover': {
|
|
6
|
+
backgroundColor: Color.Blue50
|
|
7
|
+
},
|
|
8
|
+
'& .MuiTouchRipple-root': {
|
|
9
|
+
color: Color.Blue100
|
|
13
10
|
}
|
|
14
11
|
}
|
|
15
12
|
};
|
|
@@ -1,34 +1,20 @@
|
|
|
1
1
|
import _objectSpread from "@babel/runtime/helpers/objectSpread2";
|
|
2
|
-
import { menuItemClasses } from '@mui/material';
|
|
3
|
-
import { Color } from "../theme/Color.js";
|
|
4
2
|
export function overrideMenu(theme) {
|
|
5
|
-
theme.
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
}
|
|
3
|
+
theme.props.MuiMenu = {
|
|
4
|
+
getContentAnchorEl: null,
|
|
5
|
+
anchorOrigin: {
|
|
6
|
+
vertical: 'bottom',
|
|
7
|
+
horizontal: 'left'
|
|
8
|
+
},
|
|
9
|
+
transformOrigin: {
|
|
10
|
+
vertical: 'top',
|
|
11
|
+
horizontal: 'left'
|
|
15
12
|
}
|
|
16
13
|
};
|
|
17
|
-
theme.
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
'& .MuiTouchRipple-root': {
|
|
23
|
-
color: Color.Blue100
|
|
24
|
-
},
|
|
25
|
-
["&.".concat(menuItemClasses.selected, ", &.").concat(menuItemClasses.selected, ":hover")]: {
|
|
26
|
-
backgroundColor: Color.Blue50,
|
|
27
|
-
["&.".concat(menuItemClasses.focusVisible)]: {
|
|
28
|
-
backgroundColor: Color.Blue50
|
|
29
|
-
}
|
|
30
|
-
}
|
|
31
|
-
})
|
|
32
|
-
}
|
|
14
|
+
theme.overrides.MuiMenuItem = {
|
|
15
|
+
root: _objectSpread(_objectSpread({}, theme.typography.body2), {}, {
|
|
16
|
+
paddingTop: theme.spacing(1),
|
|
17
|
+
paddingBottom: theme.spacing(1)
|
|
18
|
+
})
|
|
33
19
|
};
|
|
34
20
|
}
|
|
@@ -2,7 +2,7 @@ import _objectSpread from "@babel/runtime/helpers/objectSpread2";
|
|
|
2
2
|
import _objectWithoutProperties from "@babel/runtime/helpers/objectWithoutProperties";
|
|
3
3
|
var _excluded = ["value", "inputRef", "onChange", "isNumericString", "thousandSeparator", "disableValueParsing"],
|
|
4
4
|
_excluded2 = ["id", "InputProps"];
|
|
5
|
-
import { TextField } from '@
|
|
5
|
+
import { TextField } from '@material-ui/core';
|
|
6
6
|
import { forwardRef } from 'react';
|
|
7
7
|
import NumberFormat from 'react-number-format';
|
|
8
8
|
import { useUID } from "../utils/useUID.js";
|