@superdispatch/ui 0.21.5-alpha.4 → 0.21.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist-node/index.js +1359 -1442
- package/dist-node/index.js.map +1 -1
- package/dist-src/adaptive-toolbar/AdaptiveToolbar.js +12 -14
- package/dist-src/adaptive-vertical-toolbar/AdaptiveVerticalToolbar.js +3 -3
- package/dist-src/app-bar/AppBarOverrides.js +4 -6
- package/dist-src/autocomplete/AutocompleteOverrides.js +18 -14
- package/dist-src/avatar/AvatarOverrides.js +12 -14
- package/dist-src/avatar-button/AvatarButton.js +92 -80
- package/dist-src/button/Button.js +15 -11
- package/dist-src/button/ButtonOverrides.js +149 -147
- package/dist-src/card/CardOverrides.js +6 -10
- package/dist-src/card-button/CardButton.js +75 -78
- package/dist-src/checkbox/CheckboxField.js +1 -1
- package/dist-src/checkbox/CheckboxGroudField.js +1 -1
- package/dist-src/checkbox/CheckboxOverrides.js +50 -60
- package/dist-src/chip/ChipOverrides.js +85 -88
- package/dist-src/description-list/DescriptionList.js +55 -58
- package/dist-src/dialog/DialogOverrides.js +25 -31
- package/dist-src/drawer/DrawerActions.js +34 -32
- package/dist-src/drawer/DrawerContent.js +26 -10
- package/dist-src/drawer/DrawerList.js +27 -8
- package/dist-src/drawer/DrawerOverrides.js +10 -12
- package/dist-src/drawer/DrawerTitle.js +40 -46
- package/dist-src/dropdown-button/DropdownButton.js +1 -1
- package/dist-src/grid/GridStack.js +1 -1
- package/dist-src/grid/InlineGrid.js +2 -2
- package/dist-src/icon-button/IconButtonOverrides.js +32 -48
- package/dist-src/info-card/InfoCard.js +37 -27
- package/dist-src/link/LinkOverrides.js +26 -29
- package/dist-src/list/ListOverrides.js +7 -10
- package/dist-src/menu/MenuOverrides.js +14 -28
- package/dist-src/number-field/NumberField.js +3 -2
- package/dist-src/overflow-text/OverflowText.js +34 -35
- package/dist-src/pagination/PaginationOverrides.js +32 -27
- package/dist-src/paper/PaperOverrides.js +6 -8
- package/dist-src/radio/RadioField.js +1 -1
- package/dist-src/radio/RadioGroupField.js +1 -1
- package/dist-src/radio/RadioOverrides.js +36 -38
- package/dist-src/responsive/ResponsiveContext.js +1 -1
- package/dist-src/snackbar/Snackbar.js +1 -1
- package/dist-src/snackbar/SnackbarContent.js +3 -3
- package/dist-src/snackbar/SnackbarOverrides.js +18 -28
- package/dist-src/svg-icon/SvgIconOverrides.js +18 -28
- package/dist-src/switch/SwitchOverrides.js +71 -72
- package/dist-src/tabs/TabsOverrides.js +30 -34
- package/dist-src/tag/Tag.js +2 -2
- package/dist-src/text-field/TextFieldOverrides.js +137 -158
- package/dist-src/theme/ThemeProvider.js +28 -25
- package/dist-src/tiles/Tiles.js +3 -4
- package/dist-src/toolbar/ToolbarOverrides.js +8 -10
- package/dist-src/tooltip/TooltipOverrides.js +30 -33
- package/dist-src/typography/TypographyOverrides.js +2 -12
- package/dist-types/index.d.ts +381 -385
- package/dist-web/index.js +1291 -1374
- package/dist-web/index.js.map +1 -1
- package/package.json +39 -39
- package/dist-src/theme/CssBaselineOverrides.js +0 -8
|
@@ -1,44 +1,40 @@
|
|
|
1
1
|
import _objectSpread from "@babel/runtime/helpers/objectSpread2";
|
|
2
2
|
import { Color } from "../theme/Color.js";
|
|
3
3
|
export function overrideTabs(theme) {
|
|
4
|
-
theme.
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
4
|
+
theme.props.MuiTabs = {
|
|
5
|
+
variant: 'scrollable',
|
|
6
|
+
textColor: 'primary',
|
|
7
|
+
indicatorColor: 'primary'
|
|
8
|
+
};
|
|
9
|
+
theme.overrides.MuiTabs = {
|
|
10
|
+
root: {
|
|
11
|
+
minHeight: theme.spacing(6)
|
|
9
12
|
},
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
width: theme.spacing(4),
|
|
18
|
-
transition: theme.transitions.create('opacity', {
|
|
19
|
-
duration: theme.transitions.duration.short
|
|
20
|
-
})
|
|
21
|
-
}
|
|
13
|
+
scrollButtons: {
|
|
14
|
+
opacity: 1,
|
|
15
|
+
color: Color.Dark100,
|
|
16
|
+
width: theme.spacing(4),
|
|
17
|
+
transition: theme.transitions.create('opacity', {
|
|
18
|
+
duration: theme.transitions.duration.short
|
|
19
|
+
})
|
|
22
20
|
}
|
|
23
21
|
};
|
|
24
|
-
theme.
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
duration: theme.transitions.duration.short
|
|
30
|
-
}),
|
|
31
|
-
[theme.breakpoints.up('sm')]: {
|
|
32
|
-
minWidth: 'unset',
|
|
33
|
-
fontSize: 'unset',
|
|
34
|
-
padding: theme.spacing(0.75, 3)
|
|
35
|
-
}
|
|
22
|
+
theme.overrides.MuiTab = {
|
|
23
|
+
root: _objectSpread(_objectSpread({}, theme.typography.body2), {}, {
|
|
24
|
+
minHeight: theme.spacing(6),
|
|
25
|
+
transition: theme.transitions.create(['color'], {
|
|
26
|
+
duration: theme.transitions.duration.short
|
|
36
27
|
}),
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
28
|
+
[theme.breakpoints.up('sm')]: {
|
|
29
|
+
minWidth: undefined,
|
|
30
|
+
fontSize: undefined,
|
|
31
|
+
padding: theme.spacing(0.75, 3)
|
|
32
|
+
}
|
|
33
|
+
}),
|
|
34
|
+
textColorPrimary: {
|
|
35
|
+
color: Color.Dark500,
|
|
36
|
+
'&:hover, &:focus': {
|
|
37
|
+
color: Color.Blue300
|
|
42
38
|
}
|
|
43
39
|
}
|
|
44
40
|
};
|
package/dist-src/tag/Tag.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import _objectSpread from "@babel/runtime/helpers/objectSpread2";
|
|
2
2
|
import _objectWithoutProperties from "@babel/runtime/helpers/objectWithoutProperties";
|
|
3
3
|
var _excluded = ["color", "variant", "children", "classes", "className", "noWrap", "fontWeight", "component"];
|
|
4
|
-
import { Typography } from '@
|
|
5
|
-
import { makeStyles } from '@
|
|
4
|
+
import { Typography } from '@material-ui/core';
|
|
5
|
+
import { makeStyles } from '@material-ui/styles';
|
|
6
6
|
import cx from 'clsx';
|
|
7
7
|
import { forwardRef } from 'react';
|
|
8
8
|
import { Color } from "../theme/Color.js";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import _objectSpread from "@babel/runtime/helpers/objectSpread2";
|
|
2
|
-
import {
|
|
2
|
+
import { SvgIcon } from '@material-ui/core';
|
|
3
3
|
import { forwardRef } from 'react';
|
|
4
4
|
import { Color } from "../theme/Color.js";
|
|
5
5
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
@@ -14,192 +14,171 @@ var SelectIcon = /*#__PURE__*/forwardRef((props, ref) => /*#__PURE__*/_jsx(SvgIc
|
|
|
14
14
|
if (process.env.NODE_ENV !== "production") SelectIcon.displayName = "SelectIcon";
|
|
15
15
|
export function overrideTextField(theme) {
|
|
16
16
|
var sm = theme.breakpoints.up('sm');
|
|
17
|
-
theme.
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
variant: 'outlined'
|
|
22
|
-
}
|
|
23
|
-
};
|
|
24
|
-
theme.components.MuiFormLabel = {
|
|
25
|
-
styleOverrides: {
|
|
26
|
-
root: _objectSpread(_objectSpread({}, theme.typography.body2), {}, {
|
|
27
|
-
color: Color.Dark400,
|
|
28
|
-
["&.".concat(formLabelClasses.error)]: {
|
|
29
|
-
color: Color.Dark400
|
|
30
|
-
},
|
|
31
|
-
["&.".concat(formLabelClasses.focused)]: {
|
|
32
|
-
color: Color.Dark400
|
|
33
|
-
},
|
|
34
|
-
["&.".concat(formLabelClasses.disabled)]: {
|
|
35
|
-
color: Color.Dark400
|
|
36
|
-
}
|
|
37
|
-
})
|
|
38
|
-
}
|
|
17
|
+
theme.props.MuiTextField = {
|
|
18
|
+
minRows: 4,
|
|
19
|
+
maxRows: 4,
|
|
20
|
+
variant: 'outlined'
|
|
39
21
|
};
|
|
40
|
-
theme.
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
textOverflow: 'ellipsis',
|
|
49
|
-
height: theme.spacing(3),
|
|
50
|
-
[sm]: {
|
|
51
|
-
height: theme.spacing(2.5)
|
|
52
|
-
}
|
|
22
|
+
theme.overrides.MuiFormLabel = {
|
|
23
|
+
root: _objectSpread(_objectSpread({}, theme.typography.body2), {}, {
|
|
24
|
+
color: Color.Dark400,
|
|
25
|
+
'&$error': {
|
|
26
|
+
color: undefined
|
|
27
|
+
},
|
|
28
|
+
'&$focused': {
|
|
29
|
+
color: undefined
|
|
53
30
|
},
|
|
54
|
-
|
|
55
|
-
|
|
31
|
+
'&$disabled': {
|
|
32
|
+
color: undefined
|
|
56
33
|
}
|
|
34
|
+
})
|
|
35
|
+
};
|
|
36
|
+
theme.overrides.MuiInputBase = {
|
|
37
|
+
root: _objectSpread(_objectSpread({}, theme.typography.body2), {}, {
|
|
38
|
+
'&$disabled': {
|
|
39
|
+
backgroundColor: Color.Silver100
|
|
40
|
+
}
|
|
41
|
+
}),
|
|
42
|
+
input: {
|
|
43
|
+
textOverflow: 'ellipsis',
|
|
44
|
+
height: theme.spacing(3),
|
|
45
|
+
[sm]: {
|
|
46
|
+
height: theme.spacing(2.5)
|
|
47
|
+
}
|
|
48
|
+
},
|
|
49
|
+
inputMultiline: {
|
|
50
|
+
resize: 'vertical'
|
|
57
51
|
}
|
|
58
52
|
};
|
|
59
|
-
theme.
|
|
60
|
-
|
|
61
|
-
|
|
53
|
+
theme.props.MuiInputLabel = {
|
|
54
|
+
shrink: true
|
|
55
|
+
};
|
|
56
|
+
theme.overrides.MuiInputLabel = {
|
|
57
|
+
root: {
|
|
58
|
+
marginBottom: theme.spacing(0.5),
|
|
59
|
+
transformOrigin: undefined
|
|
62
60
|
},
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
zIndex: 'unset',
|
|
80
|
-
transform: 'unset',
|
|
81
|
-
pointerEvents: 'unset'
|
|
61
|
+
formControl: {
|
|
62
|
+
top: undefined,
|
|
63
|
+
left: undefined,
|
|
64
|
+
position: undefined,
|
|
65
|
+
transform: undefined
|
|
66
|
+
},
|
|
67
|
+
shrink: {
|
|
68
|
+
transform: undefined,
|
|
69
|
+
transformOrigin: undefined
|
|
70
|
+
},
|
|
71
|
+
outlined: {
|
|
72
|
+
zIndex: undefined,
|
|
73
|
+
transform: undefined,
|
|
74
|
+
pointerEvents: undefined,
|
|
75
|
+
'&$shrink': {
|
|
76
|
+
transform: undefined
|
|
82
77
|
}
|
|
83
78
|
}
|
|
84
79
|
};
|
|
85
|
-
theme.
|
|
86
|
-
|
|
87
|
-
|
|
80
|
+
theme.props.MuiOutlinedInput = {
|
|
81
|
+
notched: false
|
|
82
|
+
};
|
|
83
|
+
theme.overrides.MuiOutlinedInput = {
|
|
84
|
+
root: {
|
|
85
|
+
'&:hover $notchedOutline': {
|
|
86
|
+
borderColor: undefined
|
|
87
|
+
}
|
|
88
88
|
},
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
borderColor: Color.Silver500
|
|
93
|
-
}
|
|
94
|
-
},
|
|
95
|
-
input: {
|
|
96
|
-
padding: theme.spacing(1.25, 1.5),
|
|
97
|
-
[sm]: {
|
|
98
|
-
padding: theme.spacing(0.75, 1)
|
|
99
|
-
},
|
|
100
|
-
'&.MuiInputBase-inputAdornedStart': {
|
|
101
|
-
paddingLeft: 0
|
|
102
|
-
},
|
|
103
|
-
'&.MuiInputBase-inputAdornedEnd': {
|
|
104
|
-
paddingRight: 0
|
|
105
|
-
}
|
|
106
|
-
},
|
|
107
|
-
inputMultiline: {
|
|
108
|
-
padding: 0,
|
|
109
|
-
[sm]: {
|
|
110
|
-
padding: 0
|
|
111
|
-
}
|
|
112
|
-
},
|
|
113
|
-
multiline: {
|
|
89
|
+
input: {
|
|
90
|
+
padding: theme.spacing(1.25, 1.5),
|
|
91
|
+
[sm]: {
|
|
114
92
|
padding: theme.spacing(0.75, 1)
|
|
115
|
-
}
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
93
|
+
}
|
|
94
|
+
},
|
|
95
|
+
multiline: {
|
|
96
|
+
padding: theme.spacing(0.75, 1)
|
|
97
|
+
},
|
|
98
|
+
adornedStart: {
|
|
99
|
+
paddingLeft: theme.spacing(1)
|
|
100
|
+
},
|
|
101
|
+
adornedEnd: {
|
|
102
|
+
paddingRight: theme.spacing(1)
|
|
103
|
+
},
|
|
104
|
+
notchedOutline: {
|
|
105
|
+
top: 0,
|
|
106
|
+
borderColor: Color.Silver500,
|
|
107
|
+
'& legend': {
|
|
108
|
+
display: 'none'
|
|
128
109
|
}
|
|
129
110
|
}
|
|
130
111
|
};
|
|
131
|
-
theme.
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
color: Color.Dark100
|
|
140
|
-
},
|
|
141
|
-
fontSize: theme.spacing(3),
|
|
142
|
-
[sm]: {
|
|
143
|
-
fontSize: theme.spacing(2)
|
|
144
|
-
}
|
|
145
|
-
},
|
|
146
|
-
iconOutlined: {
|
|
147
|
-
right: theme.spacing(1.5),
|
|
148
|
-
[sm]: {
|
|
149
|
-
right: theme.spacing(1)
|
|
150
|
-
}
|
|
112
|
+
theme.props.MuiSelect = {
|
|
113
|
+
IconComponent: SelectIcon
|
|
114
|
+
};
|
|
115
|
+
theme.overrides.MuiSelect = {
|
|
116
|
+
icon: {
|
|
117
|
+
top: 'calc(50% - 0.5em)',
|
|
118
|
+
'$disabled &': {
|
|
119
|
+
color: Color.Dark100
|
|
151
120
|
},
|
|
152
|
-
|
|
121
|
+
fontSize: theme.spacing(3),
|
|
122
|
+
[sm]: {
|
|
123
|
+
fontSize: theme.spacing(2)
|
|
124
|
+
}
|
|
125
|
+
},
|
|
126
|
+
iconOutlined: {
|
|
127
|
+
right: theme.spacing(1.5),
|
|
128
|
+
[sm]: {
|
|
129
|
+
right: theme.spacing(1)
|
|
130
|
+
}
|
|
131
|
+
},
|
|
132
|
+
select: {
|
|
133
|
+
'&:focus': {
|
|
134
|
+
backgroundColor: undefined
|
|
135
|
+
}
|
|
136
|
+
},
|
|
137
|
+
selectMenu: {
|
|
138
|
+
'&&': {
|
|
153
139
|
paddingRight: theme.spacing(4.5),
|
|
154
140
|
[sm]: {
|
|
155
141
|
right: theme.spacing(4)
|
|
156
|
-
},
|
|
157
|
-
'&:focus': {
|
|
158
|
-
backgroundColor: 'unset'
|
|
159
142
|
}
|
|
160
143
|
}
|
|
161
144
|
}
|
|
162
145
|
};
|
|
163
|
-
theme.
|
|
164
|
-
|
|
165
|
-
root: {
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
fontSize: theme.spacing(2.5)
|
|
170
|
-
}
|
|
171
|
-
},
|
|
172
|
-
'& .MuiIconButton-root': {
|
|
173
|
-
padding: theme.spacing(1)
|
|
146
|
+
theme.overrides.MuiInputAdornment = {
|
|
147
|
+
root: {
|
|
148
|
+
'& .MuiSvgIcon-root:not(.MuiSvgIcon-fontSizeSmall)': {
|
|
149
|
+
fontSize: theme.spacing(3),
|
|
150
|
+
[sm]: {
|
|
151
|
+
fontSize: theme.spacing(2.5)
|
|
174
152
|
}
|
|
175
153
|
},
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
154
|
+
'& .MuiIconButton-root': {
|
|
155
|
+
padding: theme.spacing(1)
|
|
156
|
+
}
|
|
157
|
+
},
|
|
158
|
+
positionStart: {
|
|
159
|
+
'& .MuiIconButton-root': {
|
|
160
|
+
marginLeft: theme.spacing(-0.5),
|
|
161
|
+
[sm]: {
|
|
162
|
+
marginLeft: theme.spacing(-0.75)
|
|
182
163
|
}
|
|
183
|
-
}
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
164
|
+
}
|
|
165
|
+
},
|
|
166
|
+
positionEnd: {
|
|
167
|
+
'& .MuiIconButton-root': {
|
|
168
|
+
marginRight: theme.spacing(-0.5),
|
|
169
|
+
[sm]: {
|
|
170
|
+
marginRight: theme.spacing(-0.75)
|
|
190
171
|
}
|
|
191
172
|
}
|
|
192
173
|
}
|
|
193
174
|
};
|
|
194
|
-
theme.
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
marginRight: 'unset'
|
|
202
|
-
}
|
|
175
|
+
theme.overrides.MuiFormHelperText = {
|
|
176
|
+
root: _objectSpread(_objectSpread({}, theme.typography.body2), {}, {
|
|
177
|
+
marginTop: theme.spacing(0.5)
|
|
178
|
+
}),
|
|
179
|
+
contained: {
|
|
180
|
+
marginLeft: undefined,
|
|
181
|
+
marginRight: undefined
|
|
203
182
|
}
|
|
204
183
|
};
|
|
205
184
|
}
|
|
@@ -1,7 +1,8 @@
|
|
|
1
|
-
import { createTheme, CssBaseline
|
|
2
|
-
import
|
|
3
|
-
import {
|
|
1
|
+
import { createGenerateClassName, createTheme, CssBaseline } from '@material-ui/core';
|
|
2
|
+
import createBreakpoints from '@material-ui/core/styles/createBreakpoints';
|
|
3
|
+
import { StylesProvider, ThemeProvider as MaterialThemeProvider } from '@material-ui/styles';
|
|
4
4
|
import { useConstant } from '@superdispatch/hooks';
|
|
5
|
+
import { ThemeProvider as StyledThemeProvider } from 'styled-components';
|
|
5
6
|
import { overrideAppBar } from "../app-bar/AppBarOverrides.js";
|
|
6
7
|
import { overrideAutocomplete } from "../autocomplete/AutocompleteOverrides.js";
|
|
7
8
|
import { overrideAvatar } from "../avatar/AvatarOverrides.js";
|
|
@@ -29,7 +30,6 @@ import { overrideToolbar } from "../toolbar/ToolbarOverrides.js";
|
|
|
29
30
|
import { overrideTooltip } from "../tooltip/TooltipOverrides.js";
|
|
30
31
|
import { createTypographyOptions, overrideTypography } from "../typography/TypographyOverrides.js";
|
|
31
32
|
import { Color } from "./Color.js";
|
|
32
|
-
import { overrideCssBaseline } from "./CssBaselineOverrides.js";
|
|
33
33
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
34
34
|
import { jsxs as _jsxs } from "react/jsx-runtime";
|
|
35
35
|
|
|
@@ -52,39 +52,39 @@ function createSuperDispatchTheme() {
|
|
|
52
52
|
text: {
|
|
53
53
|
primary: Color.Dark500,
|
|
54
54
|
secondary: Color.Dark200,
|
|
55
|
-
|
|
55
|
+
hint: Color.Dark100,
|
|
56
56
|
disabled: Color.Dark100
|
|
57
57
|
},
|
|
58
58
|
divider: Color.Silver400
|
|
59
59
|
},
|
|
60
60
|
typography: createTypographyOptions(breakpoints),
|
|
61
|
-
|
|
61
|
+
props: {},
|
|
62
|
+
overrides: {}
|
|
62
63
|
});
|
|
63
|
-
overrideCard(theme);
|
|
64
|
-
overrideButton(theme);
|
|
65
64
|
overrideAppBar(theme);
|
|
66
|
-
overridePaper(theme);
|
|
67
|
-
overrideTooltip(theme);
|
|
68
|
-
overrideSvgIcon(theme);
|
|
69
|
-
overrideToolbar(theme);
|
|
70
|
-
overrideIconButton(theme);
|
|
71
|
-
overrideTypography(theme);
|
|
72
|
-
overrideMenu(theme);
|
|
73
|
-
overrideAvatar(theme);
|
|
74
|
-
overrideTextField(theme);
|
|
75
65
|
overrideAutocomplete(theme);
|
|
76
|
-
|
|
66
|
+
overrideAvatar(theme);
|
|
67
|
+
overrideButton(theme);
|
|
68
|
+
overrideCard(theme);
|
|
77
69
|
overrideCheckbox(theme);
|
|
78
|
-
overrideRadio(theme);
|
|
79
|
-
overrideSwitch(theme);
|
|
80
70
|
overrideChip(theme);
|
|
81
71
|
overrideDialog(theme);
|
|
82
72
|
overrideDrawer(theme);
|
|
83
|
-
|
|
84
|
-
overrideList(theme);
|
|
73
|
+
overrideIconButton(theme);
|
|
85
74
|
overrideLink(theme);
|
|
75
|
+
overrideList(theme);
|
|
76
|
+
overrideMenu(theme);
|
|
77
|
+
overridePaper(theme);
|
|
78
|
+
overrideRadio(theme);
|
|
86
79
|
overrideSnackbar(theme);
|
|
80
|
+
overrideSvgIcon(theme);
|
|
81
|
+
overrideSwitch(theme);
|
|
87
82
|
overrideTabs(theme);
|
|
83
|
+
overrideTextField(theme);
|
|
84
|
+
overrideToolbar(theme);
|
|
85
|
+
overrideTooltip(theme);
|
|
86
|
+
overrideTypography(theme);
|
|
87
|
+
overridePagination(theme);
|
|
88
88
|
return theme;
|
|
89
89
|
}
|
|
90
90
|
|
|
@@ -132,9 +132,12 @@ export function ThemeProvider(_ref) {
|
|
|
132
132
|
generateClassName: generateClassName,
|
|
133
133
|
children: /*#__PURE__*/_jsxs(MaterialThemeProvider, {
|
|
134
134
|
theme: theme,
|
|
135
|
-
children: [/*#__PURE__*/_jsx(CssBaseline, {}), /*#__PURE__*/_jsx(
|
|
136
|
-
|
|
137
|
-
|
|
135
|
+
children: [/*#__PURE__*/_jsx(CssBaseline, {}), /*#__PURE__*/_jsx(StyledThemeProvider, {
|
|
136
|
+
theme: theme,
|
|
137
|
+
children: /*#__PURE__*/_jsx(ResponsiveContextProvider, {
|
|
138
|
+
children: /*#__PURE__*/_jsx(SnackbarStackProvider, {
|
|
139
|
+
children: children
|
|
140
|
+
})
|
|
138
141
|
})
|
|
139
142
|
})]
|
|
140
143
|
})
|
package/dist-src/tiles/Tiles.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { makeStyles } from '@
|
|
1
|
+
import { makeStyles } from '@material-ui/styles';
|
|
2
2
|
import clsx from 'clsx';
|
|
3
3
|
import { forwardRef } from 'react';
|
|
4
4
|
import flattenChildren from 'react-keyed-flatten-children';
|
|
@@ -8,13 +8,12 @@ var PREVENT_COLLAPSE = 1;
|
|
|
8
8
|
|
|
9
9
|
function spaceVariant(theme, space) {
|
|
10
10
|
var gap = theme.spacing(space);
|
|
11
|
-
var parsedGap = parseInt(gap);
|
|
12
11
|
return {
|
|
13
12
|
'&:before': {
|
|
14
|
-
marginTop: -
|
|
13
|
+
marginTop: -gap - PREVENT_COLLAPSE
|
|
15
14
|
},
|
|
16
15
|
'& > $container': {
|
|
17
|
-
marginLeft: -
|
|
16
|
+
marginLeft: -gap,
|
|
18
17
|
'& > $child > $childContainer': {
|
|
19
18
|
marginTop: gap,
|
|
20
19
|
marginLeft: gap
|
|
@@ -1,14 +1,12 @@
|
|
|
1
1
|
export function overrideToolbar(theme) {
|
|
2
|
-
theme.
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
paddingRight: theme.spacing(2)
|
|
11
|
-
}
|
|
2
|
+
theme.overrides.MuiToolbar = {
|
|
3
|
+
regular: {
|
|
4
|
+
minHeight: theme.spacing(8)
|
|
5
|
+
},
|
|
6
|
+
gutters: {
|
|
7
|
+
[theme.breakpoints.up('sm')]: {
|
|
8
|
+
paddingLeft: theme.spacing(2),
|
|
9
|
+
paddingRight: theme.spacing(2)
|
|
12
10
|
}
|
|
13
11
|
}
|
|
14
12
|
};
|
|
@@ -1,42 +1,39 @@
|
|
|
1
1
|
import _objectSpread from "@babel/runtime/helpers/objectSpread2";
|
|
2
|
-
import { tooltipClasses } from '@mui/material';
|
|
3
2
|
import { Color } from "../theme/Color.js";
|
|
4
3
|
export function overrideTooltip(theme) {
|
|
5
|
-
theme.
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
borderTopRightRadius: 2
|
|
23
|
-
}
|
|
24
|
-
},
|
|
25
|
-
["&[data-popper-placement*=\"right\"] .".concat(tooltipClasses.arrow)]: {
|
|
26
|
-
'&::before': {
|
|
27
|
-
borderBottomLeftRadius: 2
|
|
28
|
-
}
|
|
29
|
-
},
|
|
30
|
-
["&[data-popper-placement*=\"bottom\"] .".concat(tooltipClasses.arrow)]: {
|
|
31
|
-
'&::before': {
|
|
32
|
-
borderTopLeftRadius: 2
|
|
33
|
-
}
|
|
4
|
+
theme.props.MuiTooltip = {
|
|
5
|
+
arrow: true
|
|
6
|
+
};
|
|
7
|
+
theme.overrides.MuiTooltip = {
|
|
8
|
+
tooltip: _objectSpread(_objectSpread({}, theme.typography.body2), {}, {
|
|
9
|
+
padding: theme.spacing(1, 1.5),
|
|
10
|
+
backgroundColor: Color.Dark400
|
|
11
|
+
}),
|
|
12
|
+
popperArrow: {
|
|
13
|
+
'&[x-placement*="top"] $arrow': {
|
|
14
|
+
'&::before': {
|
|
15
|
+
borderBottomRightRadius: 2
|
|
16
|
+
}
|
|
17
|
+
},
|
|
18
|
+
'&[x-placement*="left"] $arrow': {
|
|
19
|
+
'&::before': {
|
|
20
|
+
borderTopRightRadius: 2
|
|
34
21
|
}
|
|
35
22
|
},
|
|
36
|
-
arrow: {
|
|
37
|
-
|
|
38
|
-
|
|
23
|
+
'&[x-placement*="right"] $arrow': {
|
|
24
|
+
'&::before': {
|
|
25
|
+
borderBottomLeftRadius: 2
|
|
26
|
+
}
|
|
27
|
+
},
|
|
28
|
+
'&[x-placement*="bottom"] $arrow': {
|
|
29
|
+
'&::before': {
|
|
30
|
+
borderTopLeftRadius: 2
|
|
31
|
+
}
|
|
39
32
|
}
|
|
33
|
+
},
|
|
34
|
+
arrow: {
|
|
35
|
+
color: Color.Dark400,
|
|
36
|
+
fontSize: theme.spacing(1)
|
|
40
37
|
}
|
|
41
38
|
};
|
|
42
39
|
}
|
|
@@ -1,11 +1,3 @@
|
|
|
1
|
-
function createCSSVarName(component, property) {
|
|
2
|
-
return "--mui-".concat(component, "-").concat(property);
|
|
3
|
-
}
|
|
4
|
-
|
|
5
|
-
export var typographyVars = {
|
|
6
|
-
color: /*#__PURE__*/createCSSVarName('typography', 'color'),
|
|
7
|
-
backgroundImage: /*#__PURE__*/createCSSVarName('typography', 'backgroundImage')
|
|
8
|
-
};
|
|
9
1
|
export function createTypographyOptions(breakpoints) {
|
|
10
2
|
var xsOnly = breakpoints.only('xs');
|
|
11
3
|
return {
|
|
@@ -111,9 +103,7 @@ export function createTypographyOptions(breakpoints) {
|
|
|
111
103
|
};
|
|
112
104
|
}
|
|
113
105
|
export function overrideTypography(theme) {
|
|
114
|
-
theme.
|
|
115
|
-
|
|
116
|
-
variant: 'body2'
|
|
117
|
-
}
|
|
106
|
+
theme.props.MuiTypography = {
|
|
107
|
+
variant: 'body2'
|
|
118
108
|
};
|
|
119
109
|
}
|