@carto/meridian-ds 1.4.4-alpha-others.1 → 1.4.4-alpha-others.2
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/CHANGELOG.md +6 -0
- package/dist/Alert-D8jI1sG4.js +134 -0
- package/dist/Alert-zqtoWsBL.cjs +133 -0
- package/dist/ArrowDown-8fLj23Ge.cjs +31 -0
- package/dist/ArrowDown-CY_wMVJT.js +32 -0
- package/dist/MenuItem-Br2jY2lt.cjs +164 -0
- package/dist/MenuItem-CXnnE5lK.js +165 -0
- package/dist/OpenDiagonallyRight-5HZXh46V.js +59 -0
- package/dist/OpenDiagonallyRight-BrRyCV4Q.cjs +58 -0
- package/dist/SwatchSquare-DDi0beUM.js +51 -0
- package/dist/SwatchSquare-w-U8-O-P.cjs +50 -0
- package/dist/TablePaginationActions-CFGXm44W.cjs +5661 -0
- package/dist/{TablePaginationActions-WZ3P4O35.js → TablePaginationActions-KpTvhN4Y.js} +1086 -656
- package/dist/components/index.cjs +4403 -1
- package/dist/components/index.js +3235 -1857
- package/dist/custom-icons/index.cjs +5857 -1
- package/dist/custom-icons/index.js +2658 -2326
- package/dist/paletteUtils-B9ybmwiI.cjs +304 -0
- package/dist/paletteUtils-BHqJlHm9.js +288 -0
- package/dist/theme/index.cjs +3135 -1
- package/dist/theme/index.js +1050 -1011
- package/dist/types/components/organisms/CodeArea/CodeAreaDialog/CodeAreaDialog.d.ts +16 -0
- package/dist/types/components/organisms/CodeArea/CodeAreaDialog/CodeAreaDialog.d.ts.map +1 -0
- package/dist/types/components/organisms/CodeArea/CodeAreaDialog/CodeAreaDialogConfirmation.d.ts +16 -0
- package/dist/types/components/organisms/CodeArea/CodeAreaDialog/CodeAreaDialogConfirmation.d.ts.map +1 -0
- package/dist/types/components/organisms/CodeArea/CodeAreaDialog/CodeAreaDialogContent.d.ts +10 -0
- package/dist/types/components/organisms/CodeArea/CodeAreaDialog/CodeAreaDialogContent.d.ts.map +1 -0
- package/dist/types/components/organisms/CodeArea/CodeAreaDialog/CodeAreaDialogError.d.ts +8 -0
- package/dist/types/components/organisms/CodeArea/CodeAreaDialog/CodeAreaDialogError.d.ts.map +1 -0
- package/dist/types/components/organisms/CodeArea/CodeAreaField.d.ts +4 -0
- package/dist/types/components/organisms/CodeArea/CodeAreaField.d.ts.map +1 -0
- package/dist/types/components/organisms/CodeArea/CodeAreaFooter.d.ts +12 -0
- package/dist/types/components/organisms/CodeArea/CodeAreaFooter.d.ts.map +1 -0
- package/dist/types/components/organisms/CodeArea/CodeAreaHeader.d.ts +9 -0
- package/dist/types/components/organisms/CodeArea/CodeAreaHeader.d.ts.map +1 -0
- package/dist/types/components/organisms/CodeArea/CodeAreaInput.d.ts +28 -0
- package/dist/types/components/organisms/CodeArea/CodeAreaInput.d.ts.map +1 -0
- package/dist/types/components/organisms/CodeArea/CodeAreaTheme.d.ts +7 -0
- package/dist/types/components/organisms/CodeArea/CodeAreaTheme.d.ts.map +1 -0
- package/dist/types/components/organisms/CodeArea/index.d.ts +9 -0
- package/dist/types/components/organisms/CodeArea/index.d.ts.map +1 -0
- package/dist/types/components/organisms/CodeArea/types.d.ts +38 -0
- package/dist/types/components/organisms/CodeArea/types.d.ts.map +1 -0
- package/dist/types/components/organisms/CodeArea/utils.d.ts +5 -0
- package/dist/types/components/organisms/CodeArea/utils.d.ts.map +1 -0
- package/dist/types/components/organisms/index.d.ts +2 -0
- package/dist/types/components/organisms/index.d.ts.map +1 -1
- package/dist/types/localization/en.d.ts +6 -0
- package/dist/types/localization/en.d.ts.map +1 -1
- package/dist/types/localization/es.d.ts +6 -0
- package/dist/types/localization/es.d.ts.map +1 -1
- package/dist/types/localization/id.d.ts +6 -0
- package/dist/types/localization/id.d.ts.map +1 -1
- package/dist/types/localization/index.d.ts +18 -0
- package/dist/types/localization/index.d.ts.map +1 -1
- package/dist/types/utils/chartConstants.d.ts +3 -3
- package/dist/types/utils/chartConstants.d.ts.map +1 -1
- package/dist/types/widgets/CategoryWidgetUI/CategoryWidgetUI.d.ts +2 -2
- package/dist/types/widgets/CategoryWidgetUI/CategoryWidgetUI.d.ts.map +1 -1
- package/dist/types/widgets/PieWidgetUI/PieWidgetUI.d.ts +2 -2
- package/dist/types/widgets/PieWidgetUI/PieWidgetUI.d.ts.map +1 -1
- package/dist/types/widgets/PieWidgetUI/usePieCategories.d.ts +2 -2
- package/dist/types/widgets/PieWidgetUI/usePieCategories.d.ts.map +1 -1
- package/dist/types/widgets/TimeSeriesWidgetUI/TimeSeriesWidgetUI.d.ts.map +1 -1
- package/dist/types/widgets/TimeSeriesWidgetUI/components/TimeSeriesChart.d.ts +2 -5
- package/dist/types/widgets/TimeSeriesWidgetUI/components/TimeSeriesChart.d.ts.map +1 -1
- package/dist/types/widgets/TimeSeriesWidgetUI/timeSeriesUtils.d.ts +7 -0
- package/dist/types/widgets/TimeSeriesWidgetUI/timeSeriesUtils.d.ts.map +1 -1
- package/dist/types/widgets/TimeSeriesWidgetUI/types.d.ts +6 -0
- package/dist/types/widgets/TimeSeriesWidgetUI/types.d.ts.map +1 -0
- package/dist/types/widgets/comparative/ComparativeCategoryWidgetUI/ComparativeCategoryWidgetUI.d.ts +2 -2
- package/dist/types/widgets/comparative/ComparativeCategoryWidgetUI/ComparativeCategoryWidgetUI.d.ts.map +1 -1
- package/dist/types/widgets/comparative/ComparativeCategoryWidgetUI/transposeCategoryData.d.ts +2 -2
- package/dist/types/widgets/comparative/ComparativeCategoryWidgetUI/transposeCategoryData.d.ts.map +1 -1
- package/dist/types/widgets/index.d.ts +1 -0
- package/dist/types/widgets/index.d.ts.map +1 -1
- package/dist/widgets/index.cjs +7192 -21
- package/dist/widgets/index.js +5182 -3806
- package/package.json +6 -1
- package/dist/Alert-BAvr1f31.js +0 -130
- package/dist/Alert-DPGMxifE.cjs +0 -4
- package/dist/ArrowDown-BD0WmQR3.cjs +0 -1
- package/dist/ArrowDown-CMhYkZ2p.js +0 -31
- package/dist/MenuItem-Cd34y6F3.js +0 -165
- package/dist/MenuItem-Dbss-WG1.cjs +0 -1
- package/dist/SwatchSquare-C34ayL4L.cjs +0 -1
- package/dist/SwatchSquare-CVpwEFFV.js +0 -48
- package/dist/TablePaginationActions-Bp1DCaIE.cjs +0 -9
- package/dist/paletteUtils-BEwZhrLg.js +0 -262
- package/dist/paletteUtils-DLQVT9qo.cjs +0 -1
package/dist/theme/index.js
CHANGED
|
@@ -1,80 +1,87 @@
|
|
|
1
|
-
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
10
|
-
import {
|
|
11
|
-
|
|
1
|
+
var _a, _b, _c, _d, _e, _f, _g, _h;
|
|
2
|
+
import { alpha, Tooltip, responsiveFontSizes, createTheme } from "@mui/material";
|
|
3
|
+
import { jsxs, Fragment, jsx } from "react/jsx-runtime";
|
|
4
|
+
import { T as Typography, a as TablePaginationActions, I as ICON_SIZE_LARGE, b as ICON_SIZE_MEDIUM, c as ICON_SIZE_SMALL, g as getSpacing, A as APPBAR_SIZE, B as BREAKPOINTS, S as SPACING } from "../TablePaginationActions-KpTvhN4Y.js";
|
|
5
|
+
import { N } from "../TablePaginationActions-KpTvhN4Y.js";
|
|
6
|
+
import { Cancel, EventOutlined, ChevronRightOutlined, ChevronLeftOutlined, ExpandMoreOutlined, CheckCircleOutlined } from "@mui/icons-material";
|
|
7
|
+
import { A as ArrowDown } from "../ArrowDown-CY_wMVJT.js";
|
|
8
|
+
import { renderDigitalClockTimeView } from "@mui/x-date-pickers";
|
|
9
|
+
import { M as MenuItem } from "../MenuItem-CXnnE5lK.js";
|
|
10
|
+
import { c as commonPalette } from "../paletteUtils-BHqJlHm9.js";
|
|
11
|
+
import { g } from "../paletteUtils-BHqJlHm9.js";
|
|
12
|
+
const tooltipArrowSize = 1;
|
|
13
|
+
const tooltipSeparation = 0.5;
|
|
14
|
+
const tooltipMargin = tooltipArrowSize + tooltipSeparation;
|
|
15
|
+
const avatarFallbackImage = "M12 5.9c1.16 0 2.1.94 2.1 2.1s-.94 2.1-2.1 2.1S9.9 9.16 9.9 8s.94-2.1 2.1-2.1m0 9c2.97 0 6.1 1.46 6.1 2.1v1.1H5.9V17c0-.64 3.13-2.1 6.1-2.1M12 4C9.79 4 8 5.79 8 8s1.79 4 4 4 4-1.79 4-4-1.79-4-4-4zm0 9c-2.67 0-8 1.34-8 4v3h16v-3c0-2.66-5.33-4-8-4z";
|
|
16
|
+
const avatarCircularRadius = "50%";
|
|
17
|
+
const avatarRoundedRadius = 0.5;
|
|
18
|
+
const dataDisplayOverrides = {
|
|
12
19
|
// Divider
|
|
13
20
|
MuiDivider: {
|
|
14
21
|
defaultProps: {
|
|
15
22
|
role: "separator"
|
|
16
23
|
},
|
|
17
24
|
styleOverrides: {
|
|
18
|
-
root: ({ theme:
|
|
25
|
+
root: ({ theme: theme2 }) => ({
|
|
19
26
|
backgroundColor: "transparent",
|
|
20
|
-
borderColor:
|
|
27
|
+
borderColor: theme2.palette.divider
|
|
21
28
|
}),
|
|
22
|
-
light: ({ theme:
|
|
23
|
-
borderColor:
|
|
29
|
+
light: ({ theme: theme2 }) => ({
|
|
30
|
+
borderColor: theme2.palette.white[12]
|
|
24
31
|
})
|
|
25
32
|
}
|
|
26
33
|
},
|
|
27
34
|
// Tooltip
|
|
28
35
|
MuiTooltip: {
|
|
29
36
|
defaultProps: {
|
|
30
|
-
arrow:
|
|
37
|
+
arrow: true,
|
|
31
38
|
placement: "top",
|
|
32
39
|
enterDelay: 1e3,
|
|
33
40
|
leaveDelay: 200
|
|
34
41
|
},
|
|
35
42
|
styleOverrides: {
|
|
36
|
-
tooltip: ({ theme:
|
|
37
|
-
...
|
|
43
|
+
tooltip: ({ theme: theme2 }) => ({
|
|
44
|
+
...theme2.typography.caption,
|
|
38
45
|
fontWeight: 500,
|
|
39
46
|
maxWidth: "240px",
|
|
40
|
-
backgroundColor:
|
|
47
|
+
backgroundColor: theme2.palette.black[90],
|
|
41
48
|
'.MuiTooltip-popper[data-popper-placement*="top"] &': {
|
|
42
|
-
marginBottom:
|
|
49
|
+
marginBottom: theme2.spacing(tooltipSeparation),
|
|
43
50
|
"&.MuiTooltip-tooltipArrow": {
|
|
44
|
-
marginBottom:
|
|
51
|
+
marginBottom: theme2.spacing(tooltipMargin)
|
|
45
52
|
}
|
|
46
53
|
},
|
|
47
54
|
'.MuiTooltip-popper[data-popper-placement*="right"] &': {
|
|
48
|
-
marginLeft:
|
|
55
|
+
marginLeft: theme2.spacing(tooltipSeparation),
|
|
49
56
|
"&.MuiTooltip-tooltipArrow": {
|
|
50
|
-
marginLeft:
|
|
57
|
+
marginLeft: theme2.spacing(tooltipMargin)
|
|
51
58
|
}
|
|
52
59
|
},
|
|
53
60
|
'.MuiTooltip-popper[data-popper-placement*="bottom"] &': {
|
|
54
|
-
marginTop:
|
|
61
|
+
marginTop: theme2.spacing(tooltipSeparation),
|
|
55
62
|
"&.MuiTooltip-tooltipArrow": {
|
|
56
|
-
marginTop:
|
|
63
|
+
marginTop: theme2.spacing(tooltipMargin)
|
|
57
64
|
}
|
|
58
65
|
},
|
|
59
66
|
'.MuiTooltip-popper[data-popper-placement*="left"] &': {
|
|
60
|
-
marginRight:
|
|
67
|
+
marginRight: theme2.spacing(tooltipSeparation),
|
|
61
68
|
"&.MuiTooltip-tooltipArrow": {
|
|
62
|
-
marginRight:
|
|
69
|
+
marginRight: theme2.spacing(tooltipMargin)
|
|
63
70
|
}
|
|
64
71
|
}
|
|
65
72
|
}),
|
|
66
|
-
arrow: ({ theme:
|
|
67
|
-
height:
|
|
68
|
-
color:
|
|
73
|
+
arrow: ({ theme: theme2 }) => ({
|
|
74
|
+
height: theme2.spacing(tooltipArrowSize),
|
|
75
|
+
color: theme2.palette.black[90]
|
|
69
76
|
})
|
|
70
77
|
}
|
|
71
78
|
},
|
|
72
79
|
// Popper
|
|
73
80
|
MuiPopper: {
|
|
74
81
|
styleOverrides: {
|
|
75
|
-
root: ({ theme:
|
|
82
|
+
root: ({ theme: theme2 }) => ({
|
|
76
83
|
"& .MuiPaper-root": {
|
|
77
|
-
marginTop:
|
|
84
|
+
marginTop: theme2.spacing(0.5)
|
|
78
85
|
}
|
|
79
86
|
})
|
|
80
87
|
}
|
|
@@ -82,9 +89,9 @@ const io = 1, b = 0.5, y = io + b, bo = "M12 5.9c1.16 0 2.1.94 2.1 2.1s-.94 2.1-
|
|
|
82
89
|
// Popover
|
|
83
90
|
MuiPopover: {
|
|
84
91
|
styleOverrides: {
|
|
85
|
-
root: ({ theme:
|
|
92
|
+
root: ({ theme: theme2 }) => ({
|
|
86
93
|
"& .MuiPaper-root": {
|
|
87
|
-
marginTop:
|
|
94
|
+
marginTop: theme2.spacing(0.5)
|
|
88
95
|
}
|
|
89
96
|
})
|
|
90
97
|
}
|
|
@@ -100,16 +107,16 @@ const io = 1, b = 0.5, y = io + b, bo = "M12 5.9c1.16 0 2.1.94 2.1 2.1s-.94 2.1-
|
|
|
100
107
|
variant: "subtitle1"
|
|
101
108
|
},
|
|
102
109
|
styleOverrides: {
|
|
103
|
-
root: ({ theme:
|
|
104
|
-
padding:
|
|
110
|
+
root: ({ theme: theme2 }) => ({
|
|
111
|
+
padding: theme2.spacing(3, 3, 2)
|
|
105
112
|
})
|
|
106
113
|
}
|
|
107
114
|
},
|
|
108
115
|
MuiDialogContent: {
|
|
109
116
|
styleOverrides: {
|
|
110
|
-
root: ({ theme:
|
|
117
|
+
root: ({ theme: theme2 }) => ({
|
|
111
118
|
"& .MuiFormGroup-root": {
|
|
112
|
-
padding:
|
|
119
|
+
padding: theme2.spacing(1, 0)
|
|
113
120
|
}
|
|
114
121
|
})
|
|
115
122
|
}
|
|
@@ -119,8 +126,8 @@ const io = 1, b = 0.5, y = io + b, bo = "M12 5.9c1.16 0 2.1.94 2.1 2.1s-.94 2.1-
|
|
|
119
126
|
variant: "body2"
|
|
120
127
|
},
|
|
121
128
|
styleOverrides: {
|
|
122
|
-
root: ({ theme:
|
|
123
|
-
color:
|
|
129
|
+
root: ({ theme: theme2 }) => ({
|
|
130
|
+
color: theme2.palette.text.primary
|
|
124
131
|
})
|
|
125
132
|
}
|
|
126
133
|
},
|
|
@@ -131,61 +138,63 @@ const io = 1, b = 0.5, y = io + b, bo = "M12 5.9c1.16 0 2.1.94 2.1 2.1s-.94 2.1-
|
|
|
131
138
|
variant: "outlined",
|
|
132
139
|
size: "small"
|
|
133
140
|
},
|
|
134
|
-
labelDisplayedRows: ({ from
|
|
135
|
-
/* @__PURE__ */
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
141
|
+
labelDisplayedRows: ({ from, to, count }) => {
|
|
142
|
+
return /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
143
|
+
/* @__PURE__ */ jsx(
|
|
144
|
+
Typography,
|
|
145
|
+
{
|
|
146
|
+
component: "span",
|
|
147
|
+
variant: "inherit",
|
|
148
|
+
weight: "strong",
|
|
149
|
+
color: "textPrimary",
|
|
150
|
+
children: `${from}-${to}`
|
|
151
|
+
}
|
|
152
|
+
),
|
|
153
|
+
` of ${count}`
|
|
154
|
+
] });
|
|
155
|
+
},
|
|
156
|
+
ActionsComponent: TablePaginationActions
|
|
148
157
|
},
|
|
149
158
|
styleOverrides: {
|
|
150
159
|
root: () => ({
|
|
151
160
|
borderBottom: 0
|
|
152
161
|
}),
|
|
153
|
-
toolbar: ({ theme:
|
|
162
|
+
toolbar: ({ theme: theme2 }) => ({
|
|
154
163
|
minHeight: "0 !important",
|
|
155
164
|
padding: "0 !important",
|
|
156
|
-
height:
|
|
165
|
+
height: theme2.spacing(6)
|
|
157
166
|
}),
|
|
158
|
-
selectLabel: ({ theme:
|
|
167
|
+
selectLabel: ({ theme: theme2 }) => ({
|
|
159
168
|
margin: 0,
|
|
160
|
-
...
|
|
161
|
-
fontWeight:
|
|
169
|
+
...theme2.typography.caption,
|
|
170
|
+
fontWeight: theme2.typography.fontWeightMedium
|
|
162
171
|
}),
|
|
163
|
-
selectIcon: ({ theme:
|
|
172
|
+
selectIcon: ({ theme: theme2 }) => ({
|
|
164
173
|
"&.MuiSvgIcon-root": {
|
|
165
|
-
right:
|
|
174
|
+
right: theme2.spacing(1)
|
|
166
175
|
}
|
|
167
176
|
}),
|
|
168
|
-
input: ({ theme:
|
|
169
|
-
marginRight:
|
|
170
|
-
marginLeft:
|
|
177
|
+
input: ({ theme: theme2 }) => ({
|
|
178
|
+
marginRight: theme2.spacing(2),
|
|
179
|
+
marginLeft: theme2.spacing(1),
|
|
171
180
|
width: "auto",
|
|
172
|
-
paddingRight:
|
|
181
|
+
paddingRight: theme2.spacing(3)
|
|
173
182
|
}),
|
|
174
|
-
displayedRows: ({ theme:
|
|
175
|
-
color:
|
|
183
|
+
displayedRows: ({ theme: theme2 }) => ({
|
|
184
|
+
color: theme2.palette.text.secondary
|
|
176
185
|
})
|
|
177
186
|
}
|
|
178
187
|
},
|
|
179
188
|
MuiTable: {
|
|
180
189
|
defaultProps: {
|
|
181
|
-
stickyHeader:
|
|
190
|
+
stickyHeader: true
|
|
182
191
|
}
|
|
183
192
|
},
|
|
184
193
|
MuiTableRow: {
|
|
185
194
|
styleOverrides: {
|
|
186
|
-
root: ({ theme:
|
|
195
|
+
root: ({ theme: theme2 }) => ({
|
|
187
196
|
transition: "background-color 0.25s ease",
|
|
188
|
-
borderColor:
|
|
197
|
+
borderColor: theme2.palette.divider,
|
|
189
198
|
"&.MuiTableRow-hover:hover": {
|
|
190
199
|
cursor: "pointer"
|
|
191
200
|
}
|
|
@@ -194,26 +203,26 @@ const io = 1, b = 0.5, y = io + b, bo = "M12 5.9c1.16 0 2.1.94 2.1 2.1s-.94 2.1-
|
|
|
194
203
|
},
|
|
195
204
|
MuiTableCell: {
|
|
196
205
|
styleOverrides: {
|
|
197
|
-
root: ({ theme:
|
|
198
|
-
padding:
|
|
199
|
-
height:
|
|
206
|
+
root: ({ theme: theme2 }) => ({
|
|
207
|
+
padding: theme2.spacing(0.5, 2),
|
|
208
|
+
height: theme2.spacing(6),
|
|
200
209
|
"&.MuiTableCell-sizeSmall": {
|
|
201
|
-
height:
|
|
210
|
+
height: theme2.spacing(4)
|
|
202
211
|
},
|
|
203
212
|
"&.MuiTableCell-footer": {
|
|
204
213
|
padding: 0
|
|
205
214
|
}
|
|
206
215
|
}),
|
|
207
|
-
head: ({ theme:
|
|
208
|
-
...
|
|
209
|
-
fontWeight:
|
|
210
|
-
color:
|
|
216
|
+
head: ({ theme: theme2 }) => ({
|
|
217
|
+
...theme2.typography.caption,
|
|
218
|
+
fontWeight: theme2.typography.fontWeightMedium,
|
|
219
|
+
color: theme2.palette.text.primary
|
|
211
220
|
}),
|
|
212
|
-
stickyHeader: ({ theme:
|
|
213
|
-
backgroundColor:
|
|
221
|
+
stickyHeader: ({ theme: theme2 }) => ({
|
|
222
|
+
backgroundColor: theme2.palette.common.white
|
|
214
223
|
}),
|
|
215
|
-
paddingCheckbox: ({ theme:
|
|
216
|
-
padding:
|
|
224
|
+
paddingCheckbox: ({ theme: theme2 }) => ({
|
|
225
|
+
padding: theme2.spacing(0.5, 1)
|
|
217
226
|
}),
|
|
218
227
|
paddingNone: () => ({
|
|
219
228
|
padding: 0
|
|
@@ -226,163 +235,163 @@ const io = 1, b = 0.5, y = io + b, bo = "M12 5.9c1.16 0 2.1.94 2.1 2.1s-.94 2.1-
|
|
|
226
235
|
color: "primary"
|
|
227
236
|
},
|
|
228
237
|
styleOverrides: {
|
|
229
|
-
root: ({ theme:
|
|
238
|
+
root: ({ theme: theme2 }) => ({
|
|
230
239
|
maxWidth: "192px",
|
|
231
|
-
padding:
|
|
240
|
+
padding: theme2.spacing(0, 0.5),
|
|
232
241
|
"& .MuiAvatar-root": {
|
|
233
|
-
width:
|
|
234
|
-
minWidth:
|
|
235
|
-
height:
|
|
242
|
+
width: ICON_SIZE_LARGE,
|
|
243
|
+
minWidth: ICON_SIZE_LARGE,
|
|
244
|
+
height: ICON_SIZE_LARGE,
|
|
236
245
|
margin: 0,
|
|
237
|
-
color:
|
|
238
|
-
backgroundColor:
|
|
239
|
-
border: `1px solid ${
|
|
246
|
+
color: theme2.palette.secondary.contrastText,
|
|
247
|
+
backgroundColor: theme2.palette.background.paper,
|
|
248
|
+
border: `1px solid ${theme2.palette.action.hover}`
|
|
240
249
|
},
|
|
241
250
|
"& .MuiChip-icon": {
|
|
242
251
|
margin: 0,
|
|
243
|
-
marginLeft:
|
|
252
|
+
marginLeft: theme2.spacing(0.5)
|
|
244
253
|
},
|
|
245
254
|
"& img": {
|
|
246
|
-
width:
|
|
247
|
-
minWidth:
|
|
248
|
-
height:
|
|
255
|
+
width: ICON_SIZE_LARGE,
|
|
256
|
+
minWidth: ICON_SIZE_LARGE,
|
|
257
|
+
height: ICON_SIZE_LARGE
|
|
249
258
|
},
|
|
250
259
|
"&.MuiChip-root.Mui-disabled": {
|
|
251
|
-
color:
|
|
252
|
-
backgroundColor:
|
|
260
|
+
color: theme2.palette.text.disabled,
|
|
261
|
+
backgroundColor: theme2.palette.action.disabledBackground,
|
|
253
262
|
opacity: 1,
|
|
254
263
|
"& .MuiChip-deleteIcon, & .MuiChip-icon": {
|
|
255
|
-
color:
|
|
264
|
+
color: theme2.palette.action.disabled
|
|
256
265
|
},
|
|
257
266
|
"& .MuiAvatar-root": {
|
|
258
267
|
opacity: 0.6
|
|
259
268
|
}
|
|
260
269
|
},
|
|
261
270
|
"& .MuiChip-deleteIcon": {
|
|
262
|
-
color:
|
|
271
|
+
color: theme2.palette.text.hint
|
|
263
272
|
}
|
|
264
273
|
}),
|
|
265
274
|
// Variants
|
|
266
|
-
filled: ({ theme:
|
|
275
|
+
filled: ({ theme: theme2 }) => ({
|
|
267
276
|
border: 0,
|
|
268
|
-
backgroundColor:
|
|
277
|
+
backgroundColor: theme2.palette.default.main,
|
|
269
278
|
"& .MuiChip-iconColorPrimary": {
|
|
270
|
-
color:
|
|
279
|
+
color: theme2.palette.primary.contrastText
|
|
271
280
|
},
|
|
272
281
|
"& .MuiChip-deleteIcon:hover": {
|
|
273
|
-
color:
|
|
282
|
+
color: theme2.palette.text.primary
|
|
274
283
|
}
|
|
275
284
|
}),
|
|
276
|
-
filledPrimary: ({ theme:
|
|
277
|
-
backgroundColor:
|
|
285
|
+
filledPrimary: ({ theme: theme2 }) => ({
|
|
286
|
+
backgroundColor: theme2.palette.primary.main,
|
|
278
287
|
"& .MuiChip-deleteIcon": {
|
|
279
|
-
color:
|
|
288
|
+
color: theme2.palette.white[60],
|
|
280
289
|
"&:hover": {
|
|
281
|
-
color:
|
|
290
|
+
color: theme2.palette.common.white
|
|
282
291
|
}
|
|
283
292
|
}
|
|
284
293
|
}),
|
|
285
|
-
filledSecondary: ({ theme:
|
|
286
|
-
backgroundColor:
|
|
294
|
+
filledSecondary: ({ theme: theme2 }) => ({
|
|
295
|
+
backgroundColor: theme2.palette.secondary.main
|
|
287
296
|
}),
|
|
288
|
-
outlined: ({ theme:
|
|
289
|
-
borderColor:
|
|
297
|
+
outlined: ({ theme: theme2 }) => ({
|
|
298
|
+
borderColor: theme2.palette.default.outlinedBorder,
|
|
290
299
|
"&.MuiChip-root.Mui-disabled": {
|
|
291
|
-
borderColor:
|
|
300
|
+
borderColor: theme2.palette.default.outlinedBorder,
|
|
292
301
|
backgroundColor: "transparent"
|
|
293
302
|
},
|
|
294
303
|
"& .MuiChip-deleteIcon:hover": {
|
|
295
|
-
color:
|
|
304
|
+
color: theme2.palette.text.primary
|
|
296
305
|
}
|
|
297
306
|
}),
|
|
298
|
-
outlinedPrimary: ({ theme:
|
|
299
|
-
borderColor:
|
|
307
|
+
outlinedPrimary: ({ theme: theme2 }) => ({
|
|
308
|
+
borderColor: theme2.palette.primary.main
|
|
300
309
|
}),
|
|
301
|
-
outlinedSecondary: ({ theme:
|
|
302
|
-
borderColor:
|
|
310
|
+
outlinedSecondary: ({ theme: theme2 }) => ({
|
|
311
|
+
borderColor: theme2.palette.secondary.main
|
|
303
312
|
}),
|
|
304
313
|
// Status colors
|
|
305
|
-
colorSuccess: ({ theme:
|
|
314
|
+
colorSuccess: ({ theme: theme2 }) => ({
|
|
306
315
|
"&.MuiChip-outlined": {
|
|
307
|
-
color:
|
|
308
|
-
borderColor:
|
|
316
|
+
color: theme2.palette.success.dark,
|
|
317
|
+
borderColor: theme2.palette.success.main
|
|
309
318
|
},
|
|
310
319
|
"&.MuiChip-filled": {
|
|
311
|
-
color:
|
|
312
|
-
backgroundColor:
|
|
320
|
+
color: theme2.palette.success.dark,
|
|
321
|
+
backgroundColor: theme2.palette.success.relatedLight
|
|
313
322
|
},
|
|
314
323
|
"& .MuiChip-icon": {
|
|
315
|
-
color:
|
|
324
|
+
color: theme2.palette.success.main
|
|
316
325
|
}
|
|
317
326
|
}),
|
|
318
|
-
colorInfo: ({ theme:
|
|
327
|
+
colorInfo: ({ theme: theme2 }) => ({
|
|
319
328
|
"&.MuiChip-outlined": {
|
|
320
|
-
color:
|
|
321
|
-
borderColor:
|
|
329
|
+
color: theme2.palette.primary.dark,
|
|
330
|
+
borderColor: theme2.palette.primary.main
|
|
322
331
|
},
|
|
323
332
|
"&.MuiChip-filled": {
|
|
324
|
-
color:
|
|
325
|
-
backgroundColor:
|
|
333
|
+
color: theme2.palette.primary.dark,
|
|
334
|
+
backgroundColor: theme2.palette.primary.relatedLight
|
|
326
335
|
},
|
|
327
336
|
"& .MuiChip-icon": {
|
|
328
|
-
color:
|
|
337
|
+
color: theme2.palette.info.main
|
|
329
338
|
}
|
|
330
339
|
}),
|
|
331
|
-
colorError: ({ theme:
|
|
340
|
+
colorError: ({ theme: theme2 }) => ({
|
|
332
341
|
"&.MuiChip-outlined": {
|
|
333
|
-
color:
|
|
334
|
-
borderColor:
|
|
342
|
+
color: theme2.palette.error.dark,
|
|
343
|
+
borderColor: theme2.palette.error.main
|
|
335
344
|
},
|
|
336
345
|
"&.MuiChip-filled": {
|
|
337
|
-
color:
|
|
338
|
-
backgroundColor:
|
|
346
|
+
color: theme2.palette.error.dark,
|
|
347
|
+
backgroundColor: theme2.palette.error.relatedLight
|
|
339
348
|
},
|
|
340
349
|
"& .MuiChip-icon": {
|
|
341
|
-
color:
|
|
350
|
+
color: theme2.palette.error.main
|
|
342
351
|
}
|
|
343
352
|
}),
|
|
344
|
-
colorWarning: ({ theme:
|
|
353
|
+
colorWarning: ({ theme: theme2 }) => ({
|
|
345
354
|
"&.MuiChip-outlined": {
|
|
346
|
-
color:
|
|
347
|
-
borderColor:
|
|
355
|
+
color: theme2.palette.warning.relatedDark,
|
|
356
|
+
borderColor: theme2.palette.warning.main
|
|
348
357
|
},
|
|
349
358
|
"&.MuiChip-filled": {
|
|
350
|
-
color:
|
|
351
|
-
backgroundColor:
|
|
359
|
+
color: theme2.palette.warning.relatedDark,
|
|
360
|
+
backgroundColor: theme2.palette.warning.relatedLight
|
|
352
361
|
},
|
|
353
362
|
"& .MuiChip-icon": {
|
|
354
|
-
color:
|
|
363
|
+
color: theme2.palette.warning.main
|
|
355
364
|
}
|
|
356
365
|
}),
|
|
357
366
|
// Sizes
|
|
358
|
-
sizeSmall: ({ theme:
|
|
367
|
+
sizeSmall: ({ theme: theme2 }) => ({
|
|
359
368
|
"& img": {
|
|
360
|
-
width:
|
|
361
|
-
minWidth:
|
|
362
|
-
height:
|
|
369
|
+
width: ICON_SIZE_MEDIUM,
|
|
370
|
+
minWidth: ICON_SIZE_MEDIUM,
|
|
371
|
+
height: ICON_SIZE_MEDIUM
|
|
363
372
|
},
|
|
364
373
|
"& .MuiAvatar-root": {
|
|
365
|
-
width:
|
|
366
|
-
minWidth:
|
|
367
|
-
height:
|
|
374
|
+
width: ICON_SIZE_MEDIUM,
|
|
375
|
+
minWidth: ICON_SIZE_MEDIUM,
|
|
376
|
+
height: ICON_SIZE_MEDIUM
|
|
368
377
|
},
|
|
369
378
|
"& .MuiChip-icon": {
|
|
370
|
-
marginLeft:
|
|
379
|
+
marginLeft: theme2.spacing(0.25)
|
|
371
380
|
}
|
|
372
381
|
}),
|
|
373
382
|
// Inner elements
|
|
374
|
-
label: ({ theme:
|
|
375
|
-
...
|
|
376
|
-
padding:
|
|
383
|
+
label: ({ theme: theme2 }) => ({
|
|
384
|
+
...theme2.typography.button,
|
|
385
|
+
padding: theme2.spacing(0, 0.75)
|
|
377
386
|
}),
|
|
378
|
-
labelSmall: ({ theme:
|
|
379
|
-
...
|
|
387
|
+
labelSmall: ({ theme: theme2 }) => ({
|
|
388
|
+
...theme2.typography.caption,
|
|
380
389
|
fontWeight: 500,
|
|
381
|
-
padding:
|
|
390
|
+
padding: theme2.spacing(0, 0.5)
|
|
382
391
|
}),
|
|
383
392
|
deleteIcon: () => ({
|
|
384
|
-
width:
|
|
385
|
-
height:
|
|
393
|
+
width: ICON_SIZE_MEDIUM,
|
|
394
|
+
height: ICON_SIZE_MEDIUM,
|
|
386
395
|
margin: 0,
|
|
387
396
|
marginLeft: "2px",
|
|
388
397
|
// Forced to a non-standard value to meet with design
|
|
@@ -390,12 +399,12 @@ const io = 1, b = 0.5, y = io + b, bo = "M12 5.9c1.16 0 2.1.94 2.1 2.1s-.94 2.1-
|
|
|
390
399
|
// Forced to a non-standard value to meet with design
|
|
391
400
|
transition: "color 300ms cubic-bezier(0.4, 0, 0.2, 1) 0ms"
|
|
392
401
|
}),
|
|
393
|
-
deleteIconSmall: ({ theme:
|
|
394
|
-
width:
|
|
395
|
-
height:
|
|
402
|
+
deleteIconSmall: ({ theme: theme2 }) => ({
|
|
403
|
+
width: theme2.spacing(2),
|
|
404
|
+
height: theme2.spacing(2),
|
|
396
405
|
marginRight: 0
|
|
397
406
|
}),
|
|
398
|
-
clickable: ({ theme:
|
|
407
|
+
clickable: ({ theme: theme2 }) => ({
|
|
399
408
|
"&:active": {
|
|
400
409
|
boxShadow: "none"
|
|
401
410
|
},
|
|
@@ -406,53 +415,53 @@ const io = 1, b = 0.5, y = io + b, bo = "M12 5.9c1.16 0 2.1.94 2.1 2.1s-.94 2.1-
|
|
|
406
415
|
"&:hover": {
|
|
407
416
|
backgroundColor: "transparent",
|
|
408
417
|
"&.MuiChip-colorPrimary": {
|
|
409
|
-
color:
|
|
410
|
-
borderColor:
|
|
418
|
+
color: theme2.palette.primary.dark,
|
|
419
|
+
borderColor: theme2.palette.primary.dark
|
|
411
420
|
},
|
|
412
421
|
"&.MuiChip-colorSecondary": {
|
|
413
|
-
color:
|
|
414
|
-
borderColor:
|
|
422
|
+
color: theme2.palette.secondary.dark,
|
|
423
|
+
borderColor: theme2.palette.secondary.dark
|
|
415
424
|
},
|
|
416
425
|
"&.MuiChip-colorDefault": {
|
|
417
|
-
borderColor:
|
|
426
|
+
borderColor: theme2.palette.default.dark
|
|
418
427
|
},
|
|
419
428
|
"&.MuiChip-colorSuccess": {
|
|
420
|
-
color:
|
|
421
|
-
borderColor:
|
|
429
|
+
color: theme2.palette.success.dark,
|
|
430
|
+
borderColor: theme2.palette.success.dark
|
|
422
431
|
},
|
|
423
432
|
"&.MuiChip-colorInfo": {
|
|
424
|
-
color:
|
|
425
|
-
borderColor:
|
|
433
|
+
color: theme2.palette.info.dark,
|
|
434
|
+
borderColor: theme2.palette.info.dark
|
|
426
435
|
},
|
|
427
436
|
"&.MuiChip-colorError": {
|
|
428
|
-
color:
|
|
429
|
-
borderColor:
|
|
437
|
+
color: theme2.palette.error.dark,
|
|
438
|
+
borderColor: theme2.palette.error.dark
|
|
430
439
|
},
|
|
431
440
|
"&.MuiChip-colorWarning": {
|
|
432
|
-
color:
|
|
433
|
-
borderColor:
|
|
441
|
+
color: theme2.palette.warning.dark,
|
|
442
|
+
borderColor: theme2.palette.warning.dark
|
|
434
443
|
}
|
|
435
444
|
}
|
|
436
445
|
},
|
|
437
446
|
"&.MuiChip-filled": {
|
|
438
447
|
"&:hover": {
|
|
439
448
|
"&.MuiChip-colorSecondary": {
|
|
440
|
-
backgroundColor:
|
|
449
|
+
backgroundColor: theme2.palette.secondary.light
|
|
441
450
|
},
|
|
442
451
|
"&.MuiChip-colorDefault": {
|
|
443
|
-
backgroundColor:
|
|
452
|
+
backgroundColor: theme2.palette.default.dark
|
|
444
453
|
},
|
|
445
454
|
"&.MuiChip-colorSuccess": {
|
|
446
|
-
backgroundColor:
|
|
455
|
+
backgroundColor: alpha(theme2.palette.success.main, 0.25)
|
|
447
456
|
},
|
|
448
457
|
"&.MuiChip-colorInfo": {
|
|
449
|
-
backgroundColor:
|
|
458
|
+
backgroundColor: alpha(theme2.palette.info.main, 0.12)
|
|
450
459
|
},
|
|
451
460
|
"&.MuiChip-colorError": {
|
|
452
|
-
backgroundColor:
|
|
461
|
+
backgroundColor: alpha(theme2.palette.error.main, 0.12)
|
|
453
462
|
},
|
|
454
463
|
"&.MuiChip-colorWarning": {
|
|
455
|
-
backgroundColor:
|
|
464
|
+
backgroundColor: alpha(theme2.palette.warning.main, 0.25)
|
|
456
465
|
}
|
|
457
466
|
}
|
|
458
467
|
}
|
|
@@ -462,31 +471,31 @@ const io = 1, b = 0.5, y = io + b, bo = "M12 5.9c1.16 0 2.1.94 2.1 2.1s-.94 2.1-
|
|
|
462
471
|
// Avatar
|
|
463
472
|
MuiAvatar: {
|
|
464
473
|
styleOverrides: {
|
|
465
|
-
root: ({ theme:
|
|
474
|
+
root: ({ theme: theme2 }) => ({
|
|
466
475
|
overflow: "initial",
|
|
467
|
-
color:
|
|
468
|
-
backgroundColor:
|
|
476
|
+
color: theme2.palette.secondary.contrastText,
|
|
477
|
+
backgroundColor: theme2.palette.secondary.main,
|
|
469
478
|
// Default fallback image override
|
|
470
479
|
// https://github.com/mui/material-ui/issues/33229
|
|
471
480
|
"& .MuiAvatar-fallback": {
|
|
472
481
|
path: {
|
|
473
|
-
d: `path('${
|
|
482
|
+
d: `path('${avatarFallbackImage}') !important`
|
|
474
483
|
}
|
|
475
484
|
}
|
|
476
485
|
}),
|
|
477
|
-
img: ({ theme:
|
|
478
|
-
boxShadow: `0 0 0 1px ${
|
|
486
|
+
img: ({ theme: theme2 }) => ({
|
|
487
|
+
boxShadow: `0 0 0 1px ${theme2.palette.default.outlinedBorder}`
|
|
479
488
|
}),
|
|
480
489
|
circular: () => ({
|
|
481
|
-
borderRadius:
|
|
490
|
+
borderRadius: avatarCircularRadius,
|
|
482
491
|
"& img": {
|
|
483
|
-
borderRadius:
|
|
492
|
+
borderRadius: avatarCircularRadius
|
|
484
493
|
}
|
|
485
494
|
}),
|
|
486
|
-
rounded: ({ theme:
|
|
487
|
-
borderRadius:
|
|
495
|
+
rounded: ({ theme: theme2 }) => ({
|
|
496
|
+
borderRadius: theme2.spacing(avatarRoundedRadius),
|
|
488
497
|
"& img": {
|
|
489
|
-
borderRadius:
|
|
498
|
+
borderRadius: theme2.spacing(avatarRoundedRadius)
|
|
490
499
|
}
|
|
491
500
|
})
|
|
492
501
|
}
|
|
@@ -512,30 +521,36 @@ const io = 1, b = 0.5, y = io + b, bo = "M12 5.9c1.16 0 2.1.94 2.1 2.1s-.94 2.1-
|
|
|
512
521
|
MuiSvgIcon: {
|
|
513
522
|
styleOverrides: {
|
|
514
523
|
root: () => ({
|
|
515
|
-
fontSize:
|
|
524
|
+
fontSize: ICON_SIZE_MEDIUM
|
|
516
525
|
}),
|
|
517
526
|
fontSizeSmall: () => ({
|
|
518
|
-
fontSize:
|
|
527
|
+
fontSize: ICON_SIZE_SMALL
|
|
519
528
|
}),
|
|
520
529
|
fontSizeLarge: () => ({
|
|
521
|
-
fontSize:
|
|
530
|
+
fontSize: ICON_SIZE_LARGE
|
|
522
531
|
})
|
|
523
532
|
}
|
|
524
533
|
}
|
|
525
|
-
}
|
|
534
|
+
};
|
|
535
|
+
const sizeXsmall = getSpacing(2);
|
|
536
|
+
const sizeSmall = getSpacing(3);
|
|
537
|
+
const sizeMedium = getSpacing(4);
|
|
538
|
+
const sizeLarge = getSpacing(6);
|
|
539
|
+
const radius = getSpacing(0.5);
|
|
540
|
+
const buttonsOverrides = {
|
|
526
541
|
// Button Base
|
|
527
542
|
MuiButtonBase: {
|
|
528
543
|
defaultProps: {
|
|
529
|
-
disableRipple:
|
|
544
|
+
disableRipple: true
|
|
530
545
|
},
|
|
531
546
|
styleOverrides: {
|
|
532
547
|
root: () => ({
|
|
533
548
|
"& .MuiSvgIcon-root, & svg": {
|
|
534
549
|
display: "flex",
|
|
535
|
-
fontSize:
|
|
536
|
-
width:
|
|
537
|
-
minWidth:
|
|
538
|
-
height:
|
|
550
|
+
fontSize: ICON_SIZE_MEDIUM,
|
|
551
|
+
width: ICON_SIZE_MEDIUM,
|
|
552
|
+
minWidth: ICON_SIZE_MEDIUM,
|
|
553
|
+
height: ICON_SIZE_MEDIUM
|
|
539
554
|
}
|
|
540
555
|
})
|
|
541
556
|
}
|
|
@@ -543,26 +558,26 @@ const io = 1, b = 0.5, y = io + b, bo = "M12 5.9c1.16 0 2.1.94 2.1 2.1s-.94 2.1-
|
|
|
543
558
|
// Button
|
|
544
559
|
MuiButton: {
|
|
545
560
|
defaultProps: {
|
|
546
|
-
disableElevation:
|
|
561
|
+
disableElevation: true
|
|
547
562
|
},
|
|
548
563
|
styleOverrides: {
|
|
549
|
-
root: ({ ownerState
|
|
564
|
+
root: ({ ownerState, theme: theme2 }) => ({
|
|
550
565
|
// maxWidth: '192px', TODO temporary disabled waiting for a design definition
|
|
551
566
|
"&:hover, &:focus-visible": {
|
|
552
|
-
boxShadow:
|
|
553
|
-
...
|
|
554
|
-
...
|
|
555
|
-
backgroundColor:
|
|
567
|
+
boxShadow: theme2.shadows[0],
|
|
568
|
+
...ownerState.variant !== "contained" && {
|
|
569
|
+
...ownerState.color === "primary" && {
|
|
570
|
+
backgroundColor: theme2.palette.primary.background
|
|
556
571
|
},
|
|
557
|
-
...
|
|
558
|
-
backgroundColor:
|
|
572
|
+
...ownerState.color === "secondary" && {
|
|
573
|
+
backgroundColor: theme2.palette.secondary.background
|
|
559
574
|
},
|
|
560
|
-
...
|
|
561
|
-
background:
|
|
575
|
+
...ownerState.color === "error" && {
|
|
576
|
+
background: theme2.palette.error.relatedLight
|
|
562
577
|
}
|
|
563
578
|
},
|
|
564
|
-
...
|
|
565
|
-
backgroundColor:
|
|
579
|
+
...ownerState.variant === "contained" && ownerState.color === "secondary" && {
|
|
580
|
+
backgroundColor: theme2.palette.secondary.light
|
|
566
581
|
}
|
|
567
582
|
},
|
|
568
583
|
"& svg:not(.doNotFillIcon) path": {
|
|
@@ -570,98 +585,98 @@ const io = 1, b = 0.5, y = io + b, bo = "M12 5.9c1.16 0 2.1.94 2.1 2.1s-.94 2.1-
|
|
|
570
585
|
},
|
|
571
586
|
// Pairing buttons separation
|
|
572
587
|
"& + .MuiButtonBase-root": {
|
|
573
|
-
marginLeft:
|
|
588
|
+
marginLeft: theme2.spacing(1)
|
|
574
589
|
}
|
|
575
590
|
}),
|
|
576
|
-
contained: ({ theme:
|
|
591
|
+
contained: ({ theme: theme2 }) => ({
|
|
577
592
|
boxShadow: "none",
|
|
578
593
|
"&.Mui-disabled": {
|
|
579
|
-
color:
|
|
580
|
-
backgroundColor:
|
|
594
|
+
color: theme2.palette.text.disabled,
|
|
595
|
+
backgroundColor: theme2.palette.action.disabledBackground
|
|
581
596
|
}
|
|
582
597
|
}),
|
|
583
|
-
text: ({ theme:
|
|
584
|
-
minWidth:
|
|
598
|
+
text: ({ theme: theme2 }) => ({
|
|
599
|
+
minWidth: theme2.spacing(7)
|
|
585
600
|
}),
|
|
586
|
-
outlined: ({ theme:
|
|
601
|
+
outlined: ({ theme: theme2 }) => ({
|
|
587
602
|
"&.Mui-disabled": {
|
|
588
|
-
color:
|
|
589
|
-
borderColor:
|
|
603
|
+
color: theme2.palette.text.disabled,
|
|
604
|
+
borderColor: theme2.palette.default.outlinedBorder
|
|
590
605
|
}
|
|
591
606
|
}),
|
|
592
|
-
outlinedPrimary: ({ theme:
|
|
593
|
-
borderColor:
|
|
607
|
+
outlinedPrimary: ({ theme: theme2 }) => ({
|
|
608
|
+
borderColor: theme2.palette.primary.main
|
|
594
609
|
}),
|
|
595
|
-
outlinedSecondary: ({ theme:
|
|
596
|
-
borderColor:
|
|
610
|
+
outlinedSecondary: ({ theme: theme2 }) => ({
|
|
611
|
+
borderColor: theme2.palette.secondary.main
|
|
597
612
|
}),
|
|
598
|
-
outlinedError: ({ theme:
|
|
599
|
-
borderColor:
|
|
613
|
+
outlinedError: ({ theme: theme2 }) => ({
|
|
614
|
+
borderColor: theme2.palette.error.main
|
|
600
615
|
}),
|
|
601
|
-
containedPrimary: ({ theme:
|
|
616
|
+
containedPrimary: ({ theme: theme2 }) => ({
|
|
602
617
|
"&:hover, &:focus-visible": {
|
|
603
|
-
backgroundColor:
|
|
618
|
+
backgroundColor: theme2.palette.primary.dark
|
|
604
619
|
}
|
|
605
620
|
}),
|
|
606
|
-
containedError: ({ theme:
|
|
621
|
+
containedError: ({ theme: theme2 }) => ({
|
|
607
622
|
"&:hover, &:focus-visible": {
|
|
608
|
-
backgroundColor:
|
|
623
|
+
backgroundColor: theme2.palette.error.dark
|
|
609
624
|
}
|
|
610
625
|
}),
|
|
611
|
-
startIcon: ({ theme:
|
|
612
|
-
marginRight:
|
|
626
|
+
startIcon: ({ theme: theme2 }) => ({
|
|
627
|
+
marginRight: theme2.spacing(0.75),
|
|
613
628
|
"& .MuiSvgIcon-root, & svg": {
|
|
614
|
-
fontSize:
|
|
615
|
-
width:
|
|
616
|
-
minWidth:
|
|
617
|
-
height:
|
|
629
|
+
fontSize: ICON_SIZE_MEDIUM,
|
|
630
|
+
width: ICON_SIZE_MEDIUM,
|
|
631
|
+
minWidth: ICON_SIZE_MEDIUM,
|
|
632
|
+
height: ICON_SIZE_MEDIUM
|
|
618
633
|
},
|
|
619
634
|
"&.MuiButton-iconSizeSmall": {
|
|
620
|
-
marginRight:
|
|
621
|
-
marginLeft:
|
|
635
|
+
marginRight: theme2.spacing(0.5),
|
|
636
|
+
marginLeft: theme2.spacing(-0.5)
|
|
622
637
|
}
|
|
623
638
|
}),
|
|
624
|
-
endIcon: ({ theme:
|
|
625
|
-
marginLeft:
|
|
639
|
+
endIcon: ({ theme: theme2 }) => ({
|
|
640
|
+
marginLeft: theme2.spacing(0.75),
|
|
626
641
|
"& .MuiSvgIcon-root, & svg": {
|
|
627
|
-
fontSize:
|
|
628
|
-
width:
|
|
629
|
-
minWidth:
|
|
630
|
-
height:
|
|
642
|
+
fontSize: ICON_SIZE_MEDIUM,
|
|
643
|
+
width: ICON_SIZE_MEDIUM,
|
|
644
|
+
minWidth: ICON_SIZE_MEDIUM,
|
|
645
|
+
height: ICON_SIZE_MEDIUM
|
|
631
646
|
},
|
|
632
647
|
"&.MuiButton-iconSizeSmall": {
|
|
633
|
-
marginLeft:
|
|
634
|
-
marginRight:
|
|
648
|
+
marginLeft: theme2.spacing(0.5),
|
|
649
|
+
marginRight: theme2.spacing(-0.5)
|
|
635
650
|
}
|
|
636
651
|
}),
|
|
637
|
-
sizeSmall: ({ theme:
|
|
638
|
-
height:
|
|
639
|
-
padding:
|
|
640
|
-
...
|
|
641
|
-
lineHeight:
|
|
652
|
+
sizeSmall: ({ theme: theme2, ownerState }) => ({
|
|
653
|
+
height: sizeSmall,
|
|
654
|
+
padding: theme2.spacing(0, 1.5),
|
|
655
|
+
...theme2.typography.caption,
|
|
656
|
+
lineHeight: sizeSmall,
|
|
642
657
|
fontWeight: 500,
|
|
643
658
|
letterSpacing: "0.4px",
|
|
644
|
-
...
|
|
645
|
-
padding:
|
|
659
|
+
...ownerState.variant === "text" && {
|
|
660
|
+
padding: theme2.spacing(0, 1)
|
|
646
661
|
}
|
|
647
662
|
}),
|
|
648
|
-
sizeMedium: ({ theme:
|
|
649
|
-
height:
|
|
650
|
-
padding:
|
|
651
|
-
lineHeight:
|
|
652
|
-
...
|
|
653
|
-
padding:
|
|
663
|
+
sizeMedium: ({ theme: theme2, ownerState }) => ({
|
|
664
|
+
height: sizeMedium,
|
|
665
|
+
padding: theme2.spacing(0, 2),
|
|
666
|
+
lineHeight: sizeMedium,
|
|
667
|
+
...ownerState.variant === "text" && {
|
|
668
|
+
padding: theme2.spacing(0, 1)
|
|
654
669
|
}
|
|
655
670
|
}),
|
|
656
|
-
sizeLarge: ({ theme:
|
|
657
|
-
height:
|
|
658
|
-
padding:
|
|
659
|
-
...
|
|
660
|
-
lineHeight:
|
|
671
|
+
sizeLarge: ({ theme: theme2, ownerState }) => ({
|
|
672
|
+
height: sizeLarge,
|
|
673
|
+
padding: theme2.spacing(0, 2.5),
|
|
674
|
+
...theme2.typography.body1,
|
|
675
|
+
lineHeight: sizeLarge,
|
|
661
676
|
fontWeight: 500,
|
|
662
677
|
letterSpacing: "0.25px",
|
|
663
|
-
...
|
|
664
|
-
padding:
|
|
678
|
+
...ownerState.variant === "text" && {
|
|
679
|
+
padding: theme2.spacing(0, 2)
|
|
665
680
|
}
|
|
666
681
|
})
|
|
667
682
|
},
|
|
@@ -669,43 +684,43 @@ const io = 1, b = 0.5, y = io + b, bo = "M12 5.9c1.16 0 2.1.94 2.1 2.1s-.94 2.1-
|
|
|
669
684
|
// Custom color and its variants
|
|
670
685
|
{
|
|
671
686
|
props: { variant: "contained", color: "default" },
|
|
672
|
-
style: ({ theme:
|
|
673
|
-
color:
|
|
674
|
-
backgroundColor:
|
|
675
|
-
borderColor:
|
|
687
|
+
style: ({ theme: theme2 }) => ({
|
|
688
|
+
color: theme2.palette.text.primary,
|
|
689
|
+
backgroundColor: theme2.palette.default.main,
|
|
690
|
+
borderColor: theme2.palette.text.primary,
|
|
676
691
|
"&.Mui-disabled": {
|
|
677
|
-
color:
|
|
678
|
-
backgroundColor:
|
|
692
|
+
color: theme2.palette.text.disabled,
|
|
693
|
+
backgroundColor: theme2.palette.action.disabledBackground
|
|
679
694
|
},
|
|
680
695
|
"&:hover, &:focus-visible": {
|
|
681
|
-
backgroundColor:
|
|
696
|
+
backgroundColor: theme2.palette.default.dark
|
|
682
697
|
}
|
|
683
698
|
})
|
|
684
699
|
},
|
|
685
700
|
{
|
|
686
701
|
props: { variant: "outlined", color: "default" },
|
|
687
|
-
style: ({ theme:
|
|
688
|
-
color:
|
|
689
|
-
borderColor:
|
|
702
|
+
style: ({ theme: theme2 }) => ({
|
|
703
|
+
color: theme2.palette.text.primary,
|
|
704
|
+
borderColor: theme2.palette.text.primary,
|
|
690
705
|
"&.Mui-disabled": {
|
|
691
|
-
color:
|
|
692
|
-
borderColor:
|
|
706
|
+
color: theme2.palette.text.disabled,
|
|
707
|
+
borderColor: theme2.palette.default.outlinedBorder
|
|
693
708
|
},
|
|
694
709
|
"&:hover, &:focus-visible": {
|
|
695
|
-
backgroundColor:
|
|
696
|
-
borderColor:
|
|
710
|
+
backgroundColor: theme2.palette.action.hover,
|
|
711
|
+
borderColor: theme2.palette.text.primary
|
|
697
712
|
}
|
|
698
713
|
})
|
|
699
714
|
},
|
|
700
715
|
{
|
|
701
716
|
props: { variant: "text", color: "default" },
|
|
702
|
-
style: ({ theme:
|
|
703
|
-
color:
|
|
717
|
+
style: ({ theme: theme2 }) => ({
|
|
718
|
+
color: theme2.palette.text.primary,
|
|
704
719
|
"&.Mui-disabled": {
|
|
705
|
-
color:
|
|
720
|
+
color: theme2.palette.text.disabled
|
|
706
721
|
},
|
|
707
722
|
"&:hover, &:focus-visible": {
|
|
708
|
-
backgroundColor:
|
|
723
|
+
backgroundColor: theme2.palette.action.hover
|
|
709
724
|
}
|
|
710
725
|
})
|
|
711
726
|
}
|
|
@@ -714,50 +729,50 @@ const io = 1, b = 0.5, y = io + b, bo = "M12 5.9c1.16 0 2.1.94 2.1 2.1s-.94 2.1-
|
|
|
714
729
|
// Mui Button Group
|
|
715
730
|
MuiButtonGroup: {
|
|
716
731
|
defaultProps: {
|
|
717
|
-
disableRipple:
|
|
718
|
-
disableElevation:
|
|
732
|
+
disableRipple: true,
|
|
733
|
+
disableElevation: true
|
|
719
734
|
},
|
|
720
735
|
styleOverrides: {
|
|
721
|
-
root: ({ ownerState
|
|
736
|
+
root: ({ ownerState, theme: theme2 }) => ({
|
|
722
737
|
"& .MuiButton-root + .MuiButton-root": {
|
|
723
738
|
marginLeft: 0
|
|
724
739
|
},
|
|
725
|
-
...
|
|
726
|
-
boxShadow:
|
|
727
|
-
borderColor:
|
|
740
|
+
...ownerState.variant === "text" && {
|
|
741
|
+
boxShadow: theme2.shadows[1],
|
|
742
|
+
borderColor: theme2.palette.default.dark,
|
|
728
743
|
"& .MuiButtonGroup-grouped:not(:last-of-type)": {
|
|
729
|
-
borderColor:
|
|
744
|
+
borderColor: theme2.palette.default.dark
|
|
730
745
|
}
|
|
731
746
|
},
|
|
732
|
-
...
|
|
733
|
-
...
|
|
747
|
+
...ownerState.variant === "outlined" && {
|
|
748
|
+
...ownerState.color === "default" && {
|
|
734
749
|
"& .MuiButtonBase-root.Mui-disabled": {
|
|
735
|
-
borderColor:
|
|
750
|
+
borderColor: theme2.palette.text.primary
|
|
736
751
|
}
|
|
737
752
|
},
|
|
738
|
-
...
|
|
753
|
+
...ownerState.color === "primary" && {
|
|
739
754
|
"& .MuiButtonBase-root.Mui-disabled": {
|
|
740
|
-
borderColor:
|
|
755
|
+
borderColor: theme2.palette.primary.main
|
|
741
756
|
}
|
|
742
757
|
},
|
|
743
|
-
...
|
|
758
|
+
...ownerState.color === "secondary" && {
|
|
744
759
|
"& .MuiButtonBase-root.Mui-disabled": {
|
|
745
|
-
borderColor:
|
|
760
|
+
borderColor: theme2.palette.secondary.main
|
|
746
761
|
}
|
|
747
762
|
},
|
|
748
|
-
...
|
|
763
|
+
...ownerState.orientation !== "vertical" && {
|
|
749
764
|
"& .MuiButtonGroup-grouped:not(:last-of-type):hover, & .Mui-disabled:not(:last-of-type)": {
|
|
750
765
|
borderRightColor: "transparent"
|
|
751
766
|
}
|
|
752
767
|
}
|
|
753
768
|
},
|
|
754
|
-
...
|
|
755
|
-
...
|
|
769
|
+
...ownerState.variant === "contained" && {
|
|
770
|
+
...ownerState.color === "default" && {
|
|
756
771
|
"& .MuiButtonGroup-grouped:not(:last-of-type)": {
|
|
757
|
-
borderRightColor:
|
|
772
|
+
borderRightColor: theme2.palette.default.dark,
|
|
758
773
|
"&.Mui-disabled": {
|
|
759
|
-
...
|
|
760
|
-
borderColor:
|
|
774
|
+
...ownerState.color === "default" && {
|
|
775
|
+
borderColor: theme2.palette.default.dark
|
|
761
776
|
}
|
|
762
777
|
}
|
|
763
778
|
}
|
|
@@ -769,18 +784,18 @@ const io = 1, b = 0.5, y = io + b, bo = "M12 5.9c1.16 0 2.1.94 2.1 2.1s-.94 2.1-
|
|
|
769
784
|
// Icon Button
|
|
770
785
|
MuiIconButton: {
|
|
771
786
|
styleOverrides: {
|
|
772
|
-
root: ({ ownerState
|
|
787
|
+
root: ({ ownerState, theme: theme2 }) => ({
|
|
773
788
|
position: "relative",
|
|
774
789
|
overflow: "hidden",
|
|
775
|
-
borderRadius:
|
|
776
|
-
...
|
|
777
|
-
color:
|
|
790
|
+
borderRadius: theme2.spacing(0.5),
|
|
791
|
+
...ownerState.color === "default" && {
|
|
792
|
+
color: theme2.palette.text.secondary
|
|
778
793
|
},
|
|
779
794
|
"& .MuiSvgIcon-root, & svg": {
|
|
780
|
-
fontSize:
|
|
781
|
-
width:
|
|
782
|
-
minWidth:
|
|
783
|
-
height:
|
|
795
|
+
fontSize: ICON_SIZE_MEDIUM,
|
|
796
|
+
width: ICON_SIZE_MEDIUM,
|
|
797
|
+
minWidth: ICON_SIZE_MEDIUM,
|
|
798
|
+
height: ICON_SIZE_MEDIUM
|
|
784
799
|
},
|
|
785
800
|
"& svg": {
|
|
786
801
|
fill: "currentColor",
|
|
@@ -792,37 +807,37 @@ const io = 1, b = 0.5, y = io + b, bo = "M12 5.9c1.16 0 2.1.94 2.1 2.1s-.94 2.1-
|
|
|
792
807
|
fill: "currentColor"
|
|
793
808
|
},
|
|
794
809
|
"&.Mui-disabled svg:not(.doNotFillIcon) path": {
|
|
795
|
-
fill:
|
|
810
|
+
fill: theme2.palette.text.disabled
|
|
796
811
|
},
|
|
797
812
|
"&:hover, &:focus-visible": {
|
|
798
|
-
...
|
|
799
|
-
backgroundColor:
|
|
813
|
+
...ownerState.color === "default" && {
|
|
814
|
+
backgroundColor: theme2.palette.action.hover
|
|
800
815
|
},
|
|
801
|
-
...
|
|
802
|
-
backgroundColor:
|
|
816
|
+
...ownerState.color === "primary" && {
|
|
817
|
+
backgroundColor: theme2.palette.primary.background
|
|
803
818
|
},
|
|
804
|
-
...
|
|
805
|
-
backgroundColor:
|
|
819
|
+
...ownerState.color === "secondary" && {
|
|
820
|
+
backgroundColor: theme2.palette.secondary.background
|
|
806
821
|
},
|
|
807
|
-
...
|
|
808
|
-
backgroundColor:
|
|
822
|
+
...ownerState.color === "error" && {
|
|
823
|
+
backgroundColor: theme2.palette.error.relatedLight
|
|
809
824
|
},
|
|
810
|
-
...
|
|
811
|
-
backgroundColor:
|
|
825
|
+
...ownerState.color === "warning" && {
|
|
826
|
+
backgroundColor: theme2.palette.warning.relatedLight
|
|
812
827
|
}
|
|
813
828
|
}
|
|
814
829
|
}),
|
|
815
830
|
sizeSmall: () => ({
|
|
816
|
-
width:
|
|
817
|
-
height:
|
|
831
|
+
width: sizeSmall,
|
|
832
|
+
height: sizeSmall
|
|
818
833
|
}),
|
|
819
834
|
sizeMedium: () => ({
|
|
820
|
-
width:
|
|
821
|
-
height:
|
|
835
|
+
width: sizeMedium,
|
|
836
|
+
height: sizeMedium
|
|
822
837
|
}),
|
|
823
838
|
sizeLarge: () => ({
|
|
824
|
-
width:
|
|
825
|
-
height:
|
|
839
|
+
width: sizeLarge,
|
|
840
|
+
height: sizeLarge
|
|
826
841
|
})
|
|
827
842
|
},
|
|
828
843
|
variants: [
|
|
@@ -830,99 +845,99 @@ const io = 1, b = 0.5, y = io + b, bo = "M12 5.9c1.16 0 2.1.94 2.1 2.1s-.94 2.1-
|
|
|
830
845
|
{
|
|
831
846
|
props: { size: "xsmall" },
|
|
832
847
|
style: () => ({
|
|
833
|
-
width:
|
|
834
|
-
height:
|
|
848
|
+
width: sizeXsmall,
|
|
849
|
+
height: sizeXsmall,
|
|
835
850
|
"& .MuiSvgIcon-root, & svg": {
|
|
836
|
-
fontSize:
|
|
837
|
-
width:
|
|
838
|
-
minWidth:
|
|
839
|
-
height:
|
|
851
|
+
fontSize: ICON_SIZE_SMALL,
|
|
852
|
+
width: ICON_SIZE_SMALL,
|
|
853
|
+
minWidth: ICON_SIZE_SMALL,
|
|
854
|
+
height: ICON_SIZE_SMALL
|
|
840
855
|
}
|
|
841
856
|
})
|
|
842
857
|
},
|
|
843
858
|
{
|
|
844
859
|
props: { variant: "contained" },
|
|
845
|
-
style: ({ theme:
|
|
860
|
+
style: ({ theme: theme2 }) => ({
|
|
846
861
|
// Default
|
|
847
|
-
color:
|
|
848
|
-
backgroundColor:
|
|
862
|
+
color: theme2.palette.text.primary,
|
|
863
|
+
backgroundColor: theme2.palette.default.main,
|
|
849
864
|
"&:hover": {
|
|
850
|
-
backgroundColor:
|
|
865
|
+
backgroundColor: theme2.palette.default.dark
|
|
851
866
|
},
|
|
852
867
|
"&.MuiIconButton-colorSecondary": {
|
|
853
|
-
color:
|
|
854
|
-
backgroundColor:
|
|
868
|
+
color: theme2.palette.secondary.contrastText,
|
|
869
|
+
backgroundColor: theme2.palette.secondary.main,
|
|
855
870
|
"&:hover": {
|
|
856
|
-
backgroundColor:
|
|
871
|
+
backgroundColor: theme2.palette.secondary.light
|
|
857
872
|
}
|
|
858
873
|
},
|
|
859
874
|
"&.MuiIconButton-colorPrimary": {
|
|
860
|
-
color:
|
|
861
|
-
backgroundColor:
|
|
875
|
+
color: theme2.palette.primary.contrastText,
|
|
876
|
+
backgroundColor: theme2.palette.primary.main,
|
|
862
877
|
"&:hover": {
|
|
863
|
-
backgroundColor:
|
|
878
|
+
backgroundColor: theme2.palette.primary.dark
|
|
864
879
|
}
|
|
865
880
|
},
|
|
866
881
|
"&.MuiIconButton-colorError": {
|
|
867
|
-
color:
|
|
868
|
-
backgroundColor:
|
|
882
|
+
color: theme2.palette.error.contrastText,
|
|
883
|
+
backgroundColor: theme2.palette.error.main,
|
|
869
884
|
"&:hover": {
|
|
870
|
-
backgroundColor:
|
|
885
|
+
backgroundColor: theme2.palette.error.dark
|
|
871
886
|
}
|
|
872
887
|
},
|
|
873
888
|
"&.MuiIconButton-colorWarning": {
|
|
874
|
-
color:
|
|
875
|
-
backgroundColor:
|
|
889
|
+
color: theme2.palette.warning.contrastText,
|
|
890
|
+
backgroundColor: theme2.palette.warning.main,
|
|
876
891
|
"&:hover": {
|
|
877
|
-
backgroundColor:
|
|
892
|
+
backgroundColor: theme2.palette.warning.light
|
|
878
893
|
}
|
|
879
894
|
},
|
|
880
895
|
"&[disabled]": {
|
|
881
|
-
color:
|
|
882
|
-
backgroundColor:
|
|
896
|
+
color: theme2.palette.text.disabled,
|
|
897
|
+
backgroundColor: theme2.palette.action.disabledBackground
|
|
883
898
|
}
|
|
884
899
|
})
|
|
885
900
|
},
|
|
886
901
|
{
|
|
887
902
|
props: { variant: "outlined" },
|
|
888
|
-
style: ({ theme:
|
|
903
|
+
style: ({ theme: theme2 }) => ({
|
|
889
904
|
// Default
|
|
890
|
-
color:
|
|
891
|
-
border: `1px solid ${
|
|
905
|
+
color: theme2.palette.text.primary,
|
|
906
|
+
border: `1px solid ${theme2.palette.text.primary}`,
|
|
892
907
|
"&:hover": {
|
|
893
|
-
backgroundColor:
|
|
908
|
+
backgroundColor: theme2.palette.action.hover
|
|
894
909
|
},
|
|
895
910
|
"&.MuiIconButton-colorSecondary": {
|
|
896
|
-
color:
|
|
897
|
-
borderColor:
|
|
911
|
+
color: theme2.palette.secondary.main,
|
|
912
|
+
borderColor: theme2.palette.secondary.main,
|
|
898
913
|
"&:hover": {
|
|
899
|
-
backgroundColor:
|
|
914
|
+
backgroundColor: theme2.palette.secondary.background
|
|
900
915
|
}
|
|
901
916
|
},
|
|
902
917
|
"&.MuiIconButton-colorPrimary": {
|
|
903
|
-
color:
|
|
904
|
-
borderColor:
|
|
918
|
+
color: theme2.palette.primary.main,
|
|
919
|
+
borderColor: theme2.palette.primary.main,
|
|
905
920
|
"&:hover": {
|
|
906
|
-
backgroundColor:
|
|
921
|
+
backgroundColor: theme2.palette.primary.background
|
|
907
922
|
}
|
|
908
923
|
},
|
|
909
924
|
"&.MuiIconButton-colorError": {
|
|
910
|
-
color:
|
|
911
|
-
borderColor:
|
|
925
|
+
color: theme2.palette.error.main,
|
|
926
|
+
borderColor: theme2.palette.error.main,
|
|
912
927
|
"&:hover": {
|
|
913
|
-
backgroundColor:
|
|
928
|
+
backgroundColor: theme2.palette.error.relatedLight
|
|
914
929
|
}
|
|
915
930
|
},
|
|
916
931
|
"&.MuiIconButton-colorWarning": {
|
|
917
|
-
color:
|
|
918
|
-
borderColor:
|
|
932
|
+
color: theme2.palette.warning.main,
|
|
933
|
+
borderColor: theme2.palette.warning.main,
|
|
919
934
|
"&:hover": {
|
|
920
|
-
backgroundColor:
|
|
935
|
+
backgroundColor: theme2.palette.warning.relatedLight
|
|
921
936
|
}
|
|
922
937
|
},
|
|
923
938
|
"&[disabled]": {
|
|
924
|
-
color:
|
|
925
|
-
borderColor:
|
|
939
|
+
color: theme2.palette.text.disabled,
|
|
940
|
+
borderColor: theme2.palette.default.outlinedBorder
|
|
926
941
|
}
|
|
927
942
|
})
|
|
928
943
|
}
|
|
@@ -931,44 +946,44 @@ const io = 1, b = 0.5, y = io + b, bo = "M12 5.9c1.16 0 2.1.94 2.1 2.1s-.94 2.1-
|
|
|
931
946
|
// MuiToggleButton
|
|
932
947
|
MuiToggleButton: {
|
|
933
948
|
styleOverrides: {
|
|
934
|
-
root: ({ theme:
|
|
935
|
-
minWidth:
|
|
936
|
-
height:
|
|
937
|
-
padding:
|
|
938
|
-
color:
|
|
949
|
+
root: ({ theme: theme2 }) => ({
|
|
950
|
+
minWidth: sizeMedium,
|
|
951
|
+
height: sizeMedium,
|
|
952
|
+
padding: theme2.spacing(0, 1),
|
|
953
|
+
color: theme2.palette.text.secondary,
|
|
939
954
|
border: "none",
|
|
940
|
-
borderRadius:
|
|
955
|
+
borderRadius: radius,
|
|
941
956
|
transition: "background-color 300ms cubic-bezier(0.4, 0, 0.2, 1) 0ms",
|
|
942
957
|
"&:hover": {
|
|
943
|
-
backgroundColor:
|
|
958
|
+
backgroundColor: theme2.palette.action.hover
|
|
944
959
|
},
|
|
945
960
|
// Pairing buttons separation
|
|
946
961
|
"& + &": {
|
|
947
|
-
marginLeft:
|
|
962
|
+
marginLeft: theme2.spacing(0.5)
|
|
948
963
|
},
|
|
949
964
|
".MuiSvgIcon-root, & svg": {
|
|
950
|
-
margin:
|
|
965
|
+
margin: theme2.spacing(0, -0.75)
|
|
951
966
|
},
|
|
952
967
|
"&.Mui-selected": {
|
|
953
|
-
color:
|
|
954
|
-
backgroundColor:
|
|
968
|
+
color: theme2.palette.primary.main,
|
|
969
|
+
backgroundColor: theme2.palette.primary.background,
|
|
955
970
|
"&:hover": {
|
|
956
|
-
backgroundColor:
|
|
971
|
+
backgroundColor: theme2.palette.action.hover
|
|
957
972
|
}
|
|
958
973
|
},
|
|
959
974
|
"&.Mui-disabled": {
|
|
960
975
|
border: "none"
|
|
961
976
|
}
|
|
962
977
|
}),
|
|
963
|
-
sizeLarge: ({ theme:
|
|
964
|
-
minWidth:
|
|
965
|
-
height:
|
|
966
|
-
...
|
|
978
|
+
sizeLarge: ({ theme: theme2 }) => ({
|
|
979
|
+
minWidth: sizeLarge,
|
|
980
|
+
height: sizeLarge,
|
|
981
|
+
...theme2.typography.body1
|
|
967
982
|
}),
|
|
968
|
-
sizeSmall: ({ theme:
|
|
969
|
-
minWidth:
|
|
970
|
-
height:
|
|
971
|
-
...
|
|
983
|
+
sizeSmall: ({ theme: theme2 }) => ({
|
|
984
|
+
minWidth: sizeSmall,
|
|
985
|
+
height: sizeSmall,
|
|
986
|
+
...theme2.typography.caption,
|
|
972
987
|
fontWeight: 500
|
|
973
988
|
})
|
|
974
989
|
}
|
|
@@ -977,81 +992,81 @@ const io = 1, b = 0.5, y = io + b, bo = "M12 5.9c1.16 0 2.1.94 2.1 2.1s-.94 2.1-
|
|
|
977
992
|
MuiToggleButtonGroup: {
|
|
978
993
|
defaultProps: {
|
|
979
994
|
orientation: "horizontal",
|
|
980
|
-
exclusive:
|
|
995
|
+
exclusive: true
|
|
981
996
|
},
|
|
982
997
|
styleOverrides: {
|
|
983
|
-
root: ({ theme:
|
|
998
|
+
root: ({ theme: theme2 }) => ({
|
|
984
999
|
alignItems: "center",
|
|
985
1000
|
justifyContent: "center",
|
|
986
|
-
borderRadius:
|
|
987
|
-
boxShadow:
|
|
988
|
-
backgroundColor:
|
|
1001
|
+
borderRadius: theme2.spacing(1),
|
|
1002
|
+
boxShadow: theme2.shadows[1],
|
|
1003
|
+
backgroundColor: theme2.palette.background.paper,
|
|
989
1004
|
"& .MuiToggleButtonGroup-grouped:not(:first-of-type), &.Mui-Selected, & .MuiToggleButtonGroup-grouped:not(:last-of-type)": {
|
|
990
|
-
borderRadius:
|
|
1005
|
+
borderRadius: radius
|
|
991
1006
|
},
|
|
992
1007
|
".MuiDivider-root": {
|
|
993
1008
|
"&.MuiDivider-vertical": {
|
|
994
|
-
height:
|
|
995
|
-
margin:
|
|
996
|
-
marginLeft:
|
|
1009
|
+
height: sizeLarge,
|
|
1010
|
+
margin: theme2.spacing(0, 1),
|
|
1011
|
+
marginLeft: theme2.spacing(0.5)
|
|
997
1012
|
},
|
|
998
1013
|
"&.MuiDivider-horizontal": {
|
|
999
|
-
width:
|
|
1000
|
-
margin:
|
|
1001
|
-
marginTop:
|
|
1014
|
+
width: sizeLarge,
|
|
1015
|
+
margin: theme2.spacing(1, 0),
|
|
1016
|
+
marginTop: theme2.spacing(0.5)
|
|
1002
1017
|
}
|
|
1003
1018
|
},
|
|
1004
1019
|
".MuiToggleButton-sizeSmall": {
|
|
1005
1020
|
"& + .MuiDivider-root.MuiDivider-vertical": {
|
|
1006
|
-
height:
|
|
1021
|
+
height: sizeMedium
|
|
1007
1022
|
},
|
|
1008
1023
|
"& + .MuiDivider-root.MuiDivider-horizontal": {
|
|
1009
|
-
width:
|
|
1024
|
+
width: sizeMedium
|
|
1010
1025
|
}
|
|
1011
1026
|
}
|
|
1012
1027
|
}),
|
|
1013
1028
|
// Styles applied to the children if orientation="horizontal"
|
|
1014
|
-
groupedHorizontal: ({ theme:
|
|
1015
|
-
height:
|
|
1016
|
-
margin:
|
|
1029
|
+
groupedHorizontal: ({ theme: theme2 }) => ({
|
|
1030
|
+
height: sizeMedium,
|
|
1031
|
+
margin: theme2.spacing(1),
|
|
1017
1032
|
"&:not(:last-of-type)": {
|
|
1018
|
-
marginRight:
|
|
1033
|
+
marginRight: theme2.spacing(0.5),
|
|
1019
1034
|
marginLeft: 0,
|
|
1020
1035
|
borderLeft: "none"
|
|
1021
1036
|
},
|
|
1022
1037
|
"&:first-of-type:not(.MuiDivider-root)": {
|
|
1023
|
-
marginLeft:
|
|
1038
|
+
marginLeft: theme2.spacing(1)
|
|
1024
1039
|
},
|
|
1025
1040
|
"&:last-of-type:not(.MuiDivider-root)": {
|
|
1026
1041
|
marginLeft: 0
|
|
1027
1042
|
},
|
|
1028
1043
|
"&.MuiToggleButton-sizeSmall:not(.MuiDivider-root)": {
|
|
1029
|
-
height:
|
|
1030
|
-
margin:
|
|
1044
|
+
height: sizeSmall,
|
|
1045
|
+
margin: theme2.spacing(0.5),
|
|
1031
1046
|
"&:not(:first-of-type)": {
|
|
1032
1047
|
marginLeft: 0
|
|
1033
1048
|
}
|
|
1034
1049
|
}
|
|
1035
1050
|
}),
|
|
1036
1051
|
// Styles applied to the children if orientation="vertical"
|
|
1037
|
-
groupedVertical: ({ theme:
|
|
1038
|
-
width:
|
|
1039
|
-
margin:
|
|
1052
|
+
groupedVertical: ({ theme: theme2 }) => ({
|
|
1053
|
+
width: sizeMedium,
|
|
1054
|
+
margin: theme2.spacing(1),
|
|
1040
1055
|
"&.MuiToggleButton-root": {
|
|
1041
|
-
marginLeft:
|
|
1042
|
-
marginBottom:
|
|
1056
|
+
marginLeft: theme2.spacing(1),
|
|
1057
|
+
marginBottom: theme2.spacing(0.5),
|
|
1043
1058
|
"&:last-of-type": {
|
|
1044
|
-
marginBottom:
|
|
1059
|
+
marginBottom: theme2.spacing(1)
|
|
1045
1060
|
},
|
|
1046
1061
|
"&:not(:first-of-type)": {
|
|
1047
1062
|
marginTop: 0
|
|
1048
1063
|
}
|
|
1049
1064
|
},
|
|
1050
1065
|
"&.MuiToggleButton-sizeSmall": {
|
|
1051
|
-
width:
|
|
1052
|
-
margin:
|
|
1066
|
+
width: sizeSmall,
|
|
1067
|
+
margin: theme2.spacing(0.5),
|
|
1053
1068
|
"&:last-of-type": {
|
|
1054
|
-
marginBottom:
|
|
1069
|
+
marginBottom: theme2.spacing(0.5)
|
|
1055
1070
|
}
|
|
1056
1071
|
}
|
|
1057
1072
|
})
|
|
@@ -1063,116 +1078,123 @@ const io = 1, b = 0.5, y = io + b, bo = "M12 5.9c1.16 0 2.1.94 2.1 2.1s-.94 2.1-
|
|
|
1063
1078
|
color: "primary"
|
|
1064
1079
|
},
|
|
1065
1080
|
styleOverrides: {
|
|
1066
|
-
root: ({ ownerState
|
|
1081
|
+
root: ({ ownerState, theme: theme2 }) => ({
|
|
1067
1082
|
"&:focus": {
|
|
1068
|
-
boxShadow:
|
|
1083
|
+
boxShadow: theme2.shadows[6]
|
|
1069
1084
|
},
|
|
1070
1085
|
"& .MuiSvgIcon-root, & svg": {
|
|
1071
|
-
fontSize:
|
|
1072
|
-
width:
|
|
1073
|
-
minWidth:
|
|
1074
|
-
height:
|
|
1086
|
+
fontSize: ICON_SIZE_LARGE,
|
|
1087
|
+
width: ICON_SIZE_LARGE,
|
|
1088
|
+
minWidth: ICON_SIZE_LARGE,
|
|
1089
|
+
height: ICON_SIZE_LARGE
|
|
1075
1090
|
},
|
|
1076
1091
|
"&.MuiFab-extended": {
|
|
1077
|
-
...
|
|
1092
|
+
...theme2.typography.body1,
|
|
1078
1093
|
fontWeight: 500,
|
|
1079
1094
|
width: "auto",
|
|
1080
|
-
height:
|
|
1081
|
-
paddingRight:
|
|
1082
|
-
borderRadius:
|
|
1095
|
+
height: theme2.spacing(7),
|
|
1096
|
+
paddingRight: theme2.spacing(3),
|
|
1097
|
+
borderRadius: theme2.spacing(8),
|
|
1083
1098
|
"& .MuiSvgIcon-root": {
|
|
1084
|
-
marginRight:
|
|
1099
|
+
marginRight: theme2.spacing(1.5)
|
|
1085
1100
|
}
|
|
1086
1101
|
},
|
|
1087
|
-
...
|
|
1088
|
-
color:
|
|
1089
|
-
backgroundColor:
|
|
1102
|
+
...ownerState.color === "default" && {
|
|
1103
|
+
color: theme2.palette.text.primary,
|
|
1104
|
+
backgroundColor: theme2.palette.background.paper,
|
|
1090
1105
|
"&:hover, &:focus-visible": {
|
|
1091
|
-
backgroundColor:
|
|
1106
|
+
backgroundColor: theme2.palette.default.light
|
|
1092
1107
|
}
|
|
1093
1108
|
}
|
|
1094
1109
|
}),
|
|
1095
|
-
sizeSmall: ({ theme:
|
|
1096
|
-
width:
|
|
1097
|
-
height:
|
|
1098
|
-
minHeight:
|
|
1110
|
+
sizeSmall: ({ theme: theme2 }) => ({
|
|
1111
|
+
width: theme2.spacing(4),
|
|
1112
|
+
height: theme2.spacing(4),
|
|
1113
|
+
minHeight: theme2.spacing(4),
|
|
1099
1114
|
"& .MuiSvgIcon-root, & svg": {
|
|
1100
|
-
fontSize:
|
|
1101
|
-
width:
|
|
1102
|
-
minWidth:
|
|
1103
|
-
height:
|
|
1115
|
+
fontSize: ICON_SIZE_MEDIUM,
|
|
1116
|
+
width: ICON_SIZE_MEDIUM,
|
|
1117
|
+
minWidth: ICON_SIZE_MEDIUM,
|
|
1118
|
+
height: ICON_SIZE_MEDIUM
|
|
1104
1119
|
},
|
|
1105
1120
|
"&.MuiFab-extended": {
|
|
1106
|
-
...
|
|
1121
|
+
...theme2.typography.caption,
|
|
1107
1122
|
width: "auto",
|
|
1108
|
-
height:
|
|
1109
|
-
paddingRight:
|
|
1123
|
+
height: theme2.spacing(4),
|
|
1124
|
+
paddingRight: theme2.spacing(2),
|
|
1110
1125
|
"& .MuiSvgIcon-root": {
|
|
1111
|
-
marginRight:
|
|
1126
|
+
marginRight: theme2.spacing(1)
|
|
1112
1127
|
}
|
|
1113
1128
|
}
|
|
1114
1129
|
}),
|
|
1115
|
-
sizeMedium: ({ theme:
|
|
1130
|
+
sizeMedium: ({ theme: theme2 }) => ({
|
|
1116
1131
|
"&.MuiFab-extended": {
|
|
1117
|
-
...
|
|
1118
|
-
height:
|
|
1132
|
+
...theme2.typography.button,
|
|
1133
|
+
height: theme2.spacing(6)
|
|
1119
1134
|
}
|
|
1120
1135
|
}),
|
|
1121
|
-
secondary: ({ theme:
|
|
1136
|
+
secondary: ({ theme: theme2 }) => ({
|
|
1122
1137
|
"&:hover": {
|
|
1123
|
-
backgroundColor:
|
|
1138
|
+
backgroundColor: theme2.palette.secondary.light
|
|
1124
1139
|
}
|
|
1125
1140
|
})
|
|
1126
1141
|
}
|
|
1127
1142
|
}
|
|
1128
|
-
}
|
|
1129
|
-
|
|
1130
|
-
|
|
1131
|
-
|
|
1143
|
+
};
|
|
1144
|
+
const controlSizeS = 2.25;
|
|
1145
|
+
const controlSizeM = 3;
|
|
1146
|
+
const switchSizeS = 2;
|
|
1147
|
+
const switchSizeM = 3;
|
|
1148
|
+
const switchSizeL = 4;
|
|
1149
|
+
const checkboxRadioOverrides = {
|
|
1150
|
+
root: ({ ownerState, theme: theme2 }) => ({
|
|
1151
|
+
padding: theme2.spacing(0.5),
|
|
1152
|
+
...ownerState.size === "small" && {
|
|
1132
1153
|
padding: "3px"
|
|
1133
1154
|
// Forced to a non-standard value to meet with design
|
|
1134
1155
|
},
|
|
1135
|
-
...
|
|
1156
|
+
...ownerState.readOnly === true && {
|
|
1136
1157
|
pointerEvents: "none",
|
|
1137
|
-
color:
|
|
1158
|
+
color: theme2.palette.text.disabled,
|
|
1138
1159
|
"&.Mui-checked": {
|
|
1139
|
-
color:
|
|
1160
|
+
color: theme2.palette.text.disabled
|
|
1140
1161
|
}
|
|
1141
1162
|
},
|
|
1142
1163
|
"&:hover, &:focus-visible": {
|
|
1143
|
-
backgroundColor:
|
|
1164
|
+
backgroundColor: theme2.palette.primary.background
|
|
1144
1165
|
},
|
|
1145
1166
|
"& + .MuiFormControlLabel-label": {
|
|
1146
|
-
...
|
|
1147
|
-
marginLeft:
|
|
1148
|
-
...
|
|
1149
|
-
marginLeft:
|
|
1167
|
+
...theme2.typography.body2,
|
|
1168
|
+
marginLeft: theme2.spacing(0.25),
|
|
1169
|
+
...ownerState.size === "small" && {
|
|
1170
|
+
marginLeft: theme2.spacing(0.5)
|
|
1150
1171
|
}
|
|
1151
1172
|
},
|
|
1152
1173
|
"& .MuiSvgIcon-root": {
|
|
1153
|
-
fontSize:
|
|
1154
|
-
width:
|
|
1155
|
-
minWidth:
|
|
1156
|
-
height:
|
|
1157
|
-
...
|
|
1158
|
-
fontSize:
|
|
1159
|
-
width:
|
|
1160
|
-
minWidth:
|
|
1161
|
-
height:
|
|
1174
|
+
fontSize: theme2.spacing(controlSizeM),
|
|
1175
|
+
width: theme2.spacing(controlSizeM),
|
|
1176
|
+
minWidth: theme2.spacing(controlSizeM),
|
|
1177
|
+
height: theme2.spacing(controlSizeM),
|
|
1178
|
+
...ownerState.size === "small" && {
|
|
1179
|
+
fontSize: theme2.spacing(controlSizeS),
|
|
1180
|
+
width: theme2.spacing(controlSizeS),
|
|
1181
|
+
minWidth: theme2.spacing(controlSizeS),
|
|
1182
|
+
height: theme2.spacing(controlSizeS)
|
|
1162
1183
|
}
|
|
1163
1184
|
}
|
|
1164
1185
|
})
|
|
1165
|
-
}
|
|
1166
|
-
|
|
1186
|
+
};
|
|
1187
|
+
const LabelOverrides = {
|
|
1188
|
+
root: ({ theme: theme2 }) => ({
|
|
1167
1189
|
position: "static",
|
|
1168
1190
|
transform: "none",
|
|
1169
|
-
marginBottom:
|
|
1170
|
-
...
|
|
1191
|
+
marginBottom: theme2.spacing(1),
|
|
1192
|
+
...theme2.typography.caption,
|
|
1171
1193
|
fontWeight: 500,
|
|
1172
|
-
color:
|
|
1194
|
+
color: theme2.palette.text.primary
|
|
1173
1195
|
}),
|
|
1174
|
-
sizeSmall: ({ theme:
|
|
1175
|
-
marginBottom:
|
|
1196
|
+
sizeSmall: ({ theme: theme2 }) => ({
|
|
1197
|
+
marginBottom: theme2.spacing(0.5)
|
|
1176
1198
|
}),
|
|
1177
1199
|
standard: () => ({
|
|
1178
1200
|
marginBottom: 0
|
|
@@ -1180,28 +1202,29 @@ const io = 1, b = 0.5, y = io + b, bo = "M12 5.9c1.16 0 2.1.94 2.1 2.1s-.94 2.1-
|
|
|
1180
1202
|
// Temporal workaroud to give a faster solution for a Workflows demand: https://app.shortcut.com/cartoteam/story/294539/distinction-among-parameters-optional-inputs-units-in-the-ui
|
|
1181
1203
|
// These styles avoid (by now) the need to review current forms and change those with a required mark.
|
|
1182
1204
|
// TODO: remored asterisk completely and use instead LabelWithIndicator component to mark also required ones.
|
|
1183
|
-
asterisk: ({ theme:
|
|
1205
|
+
asterisk: ({ theme: theme2 }) => ({
|
|
1184
1206
|
"&, &.Mui-error": {
|
|
1185
1207
|
color: "transparent"
|
|
1186
1208
|
},
|
|
1187
1209
|
"&::after": {
|
|
1188
1210
|
content: '"(required)"',
|
|
1189
|
-
marginLeft:
|
|
1190
|
-
color:
|
|
1211
|
+
marginLeft: theme2.spacing(-0.5),
|
|
1212
|
+
color: theme2.palette.text.secondary,
|
|
1191
1213
|
fontWeight: 400,
|
|
1192
1214
|
".Mui-disabled &": {
|
|
1193
|
-
color:
|
|
1215
|
+
color: theme2.palette.text.disabled
|
|
1194
1216
|
}
|
|
1195
1217
|
}
|
|
1196
1218
|
})
|
|
1197
|
-
}
|
|
1219
|
+
};
|
|
1220
|
+
const formsOverrides = {
|
|
1198
1221
|
// Checkbox
|
|
1199
1222
|
MuiCheckbox: {
|
|
1200
1223
|
defaultProps: {
|
|
1201
1224
|
size: "small"
|
|
1202
1225
|
},
|
|
1203
1226
|
styleOverrides: {
|
|
1204
|
-
...
|
|
1227
|
+
...checkboxRadioOverrides
|
|
1205
1228
|
}
|
|
1206
1229
|
},
|
|
1207
1230
|
// Radio Button
|
|
@@ -1210,42 +1233,42 @@ const io = 1, b = 0.5, y = io + b, bo = "M12 5.9c1.16 0 2.1.94 2.1 2.1s-.94 2.1-
|
|
|
1210
1233
|
size: "small"
|
|
1211
1234
|
},
|
|
1212
1235
|
styleOverrides: {
|
|
1213
|
-
...
|
|
1236
|
+
...checkboxRadioOverrides
|
|
1214
1237
|
}
|
|
1215
1238
|
},
|
|
1216
1239
|
// Text Field
|
|
1217
1240
|
MuiTextField: {
|
|
1218
1241
|
defaultProps: {
|
|
1219
|
-
fullWidth:
|
|
1242
|
+
fullWidth: true,
|
|
1220
1243
|
size: "small",
|
|
1221
1244
|
InputLabelProps: {
|
|
1222
|
-
shrink:
|
|
1245
|
+
shrink: true
|
|
1223
1246
|
},
|
|
1224
1247
|
SelectProps: {
|
|
1225
|
-
IconComponent:
|
|
1248
|
+
IconComponent: ArrowDown,
|
|
1226
1249
|
size: "small"
|
|
1227
1250
|
}
|
|
1228
1251
|
},
|
|
1229
1252
|
styleOverrides: {
|
|
1230
|
-
root: ({ ownerState
|
|
1253
|
+
root: ({ ownerState, theme: theme2 }) => ({
|
|
1231
1254
|
"& legend": {
|
|
1232
1255
|
display: "none"
|
|
1233
1256
|
},
|
|
1234
1257
|
// Select bool
|
|
1235
|
-
...
|
|
1258
|
+
...ownerState.select === true && {
|
|
1236
1259
|
"& .MuiInputBase-root": {
|
|
1237
1260
|
padding: 0,
|
|
1238
1261
|
"&.MuiOutlinedInput-root, &.MuiFilledInput-root": {
|
|
1239
1262
|
padding: 0
|
|
1240
1263
|
},
|
|
1241
1264
|
"& .MuiInputAdornment-positionEnd": {
|
|
1242
|
-
marginRight:
|
|
1265
|
+
marginRight: theme2.spacing(3)
|
|
1243
1266
|
},
|
|
1244
1267
|
"& .MuiSelect-select": {
|
|
1245
|
-
padding:
|
|
1268
|
+
padding: theme2.spacing(1.5),
|
|
1246
1269
|
"&.MuiInputBase-input": {
|
|
1247
|
-
paddingLeft:
|
|
1248
|
-
paddingRight:
|
|
1270
|
+
paddingLeft: theme2.spacing(2),
|
|
1271
|
+
paddingRight: theme2.spacing(5),
|
|
1249
1272
|
"&.MuiSelect-standard": {
|
|
1250
1273
|
paddingLeft: 0
|
|
1251
1274
|
}
|
|
@@ -1260,8 +1283,8 @@ const io = 1, b = 0.5, y = io + b, bo = "M12 5.9c1.16 0 2.1.94 2.1 2.1s-.94 2.1-
|
|
|
1260
1283
|
}
|
|
1261
1284
|
},
|
|
1262
1285
|
"& .MuiSelect-icon": {
|
|
1263
|
-
right:
|
|
1264
|
-
color:
|
|
1286
|
+
right: theme2.spacing(2),
|
|
1287
|
+
color: theme2.palette.text.secondary
|
|
1265
1288
|
},
|
|
1266
1289
|
"& .MuiSelect-iconStandard": {
|
|
1267
1290
|
right: 0
|
|
@@ -1272,18 +1295,18 @@ const io = 1, b = 0.5, y = io + b, bo = "M12 5.9c1.16 0 2.1.94 2.1 2.1s-.94 2.1-
|
|
|
1272
1295
|
padding: 0
|
|
1273
1296
|
},
|
|
1274
1297
|
"& .MuiSelect-select": {
|
|
1275
|
-
...
|
|
1276
|
-
padding:
|
|
1298
|
+
...theme2.typography.body2,
|
|
1299
|
+
padding: theme2.spacing(0.75),
|
|
1277
1300
|
"&.MuiInputBase-input": {
|
|
1278
|
-
paddingLeft:
|
|
1279
|
-
paddingRight:
|
|
1301
|
+
paddingLeft: theme2.spacing(1.5),
|
|
1302
|
+
paddingRight: theme2.spacing(4)
|
|
1280
1303
|
}
|
|
1281
1304
|
},
|
|
1282
1305
|
"&.MuiOutlinedInput-root.MuiInputBase-sizeSmall": {
|
|
1283
1306
|
padding: 0
|
|
1284
1307
|
},
|
|
1285
1308
|
"& .MuiSelect-icon": {
|
|
1286
|
-
right:
|
|
1309
|
+
right: theme2.spacing(1.5)
|
|
1287
1310
|
}
|
|
1288
1311
|
}
|
|
1289
1312
|
}
|
|
@@ -1293,9 +1316,9 @@ const io = 1, b = 0.5, y = io + b, bo = "M12 5.9c1.16 0 2.1.94 2.1 2.1s-.94 2.1-
|
|
|
1293
1316
|
// Input Base
|
|
1294
1317
|
MuiInputBase: {
|
|
1295
1318
|
styleOverrides: {
|
|
1296
|
-
root: ({ theme:
|
|
1297
|
-
height:
|
|
1298
|
-
...
|
|
1319
|
+
root: ({ theme: theme2 }) => ({
|
|
1320
|
+
height: theme2.spacing(6),
|
|
1321
|
+
...theme2.typography.body1,
|
|
1299
1322
|
"& input": {
|
|
1300
1323
|
padding: 0,
|
|
1301
1324
|
whiteSpace: "nowrap",
|
|
@@ -1303,13 +1326,13 @@ const io = 1, b = 0.5, y = io + b, bo = "M12 5.9c1.16 0 2.1.94 2.1 2.1s-.94 2.1-
|
|
|
1303
1326
|
textOverflow: "ellipsis",
|
|
1304
1327
|
"&::placeholder": {
|
|
1305
1328
|
opacity: 1,
|
|
1306
|
-
color:
|
|
1329
|
+
color: theme2.palette.text.hint
|
|
1307
1330
|
},
|
|
1308
1331
|
"&:read-only::placeholder": {
|
|
1309
|
-
color:
|
|
1332
|
+
color: theme2.palette.text.disabled
|
|
1310
1333
|
},
|
|
1311
1334
|
"&.Mui-disabled::placeholder": {
|
|
1312
|
-
color:
|
|
1335
|
+
color: theme2.palette.text.disabled
|
|
1313
1336
|
},
|
|
1314
1337
|
// Remove focus on keyboard navigation as the parent element has focus
|
|
1315
1338
|
"&:focus-visible": {
|
|
@@ -1338,103 +1361,103 @@ const io = 1, b = 0.5, y = io + b, bo = "M12 5.9c1.16 0 2.1.94 2.1 2.1s-.94 2.1-
|
|
|
1338
1361
|
"&:hover": {
|
|
1339
1362
|
backgroundColor: "transparent"
|
|
1340
1363
|
},
|
|
1341
|
-
[
|
|
1364
|
+
[theme2.breakpoints.up("sm")]: {
|
|
1342
1365
|
minHeight: "initial"
|
|
1343
1366
|
}
|
|
1344
1367
|
},
|
|
1345
1368
|
// Variants
|
|
1346
1369
|
"&.MuiFilledInput-root": {
|
|
1347
|
-
padding:
|
|
1348
|
-
borderRadius:
|
|
1349
|
-
backgroundColor:
|
|
1370
|
+
padding: theme2.spacing(1, 2),
|
|
1371
|
+
borderRadius: theme2.spacing(0.5),
|
|
1372
|
+
backgroundColor: theme2.palette.default.background,
|
|
1350
1373
|
"&:hover": {
|
|
1351
|
-
backgroundColor:
|
|
1374
|
+
backgroundColor: theme2.palette.default.background
|
|
1352
1375
|
},
|
|
1353
1376
|
"&::before": {
|
|
1354
1377
|
top: 0,
|
|
1355
|
-
borderRadius:
|
|
1378
|
+
borderRadius: theme2.spacing(0.5),
|
|
1356
1379
|
border: "1px solid transparent",
|
|
1357
1380
|
transition: "border 200ms cubic-bezier(0.4, 0, 0.2, 1) 0ms"
|
|
1358
1381
|
},
|
|
1359
1382
|
"&:hover:not(.Mui-disabled)::before": {
|
|
1360
|
-
borderColor:
|
|
1383
|
+
borderColor: theme2.palette.text.primary
|
|
1361
1384
|
},
|
|
1362
1385
|
"&::after": {
|
|
1363
|
-
borderRadius:
|
|
1386
|
+
borderRadius: theme2.spacing(0.5),
|
|
1364
1387
|
border: "1px solid transparent"
|
|
1365
1388
|
},
|
|
1366
1389
|
"&.MuiInputBase-sizeSmall": {
|
|
1367
|
-
padding:
|
|
1390
|
+
padding: theme2.spacing(0.5, 1.5)
|
|
1368
1391
|
},
|
|
1369
1392
|
"&.Mui-focused": {
|
|
1370
|
-
backgroundColor:
|
|
1393
|
+
backgroundColor: theme2.palette.background.paper,
|
|
1371
1394
|
"&::after": {
|
|
1372
|
-
border: `2px solid ${
|
|
1395
|
+
border: `2px solid ${theme2.palette.primary.main}`
|
|
1373
1396
|
}
|
|
1374
1397
|
},
|
|
1375
1398
|
"&.Mui-disabled": {
|
|
1376
|
-
backgroundColor:
|
|
1399
|
+
backgroundColor: theme2.palette.default.background,
|
|
1377
1400
|
"&::before": {
|
|
1378
1401
|
borderBottomStyle: "solid"
|
|
1379
1402
|
}
|
|
1380
1403
|
},
|
|
1381
1404
|
"&.Mui-error::after": {
|
|
1382
1405
|
opacity: 1,
|
|
1383
|
-
border: `2px solid ${
|
|
1406
|
+
border: `2px solid ${theme2.palette.error.light}`
|
|
1384
1407
|
},
|
|
1385
1408
|
"&.Mui-readOnly": {
|
|
1386
1409
|
"&.Mui-focused": {
|
|
1387
|
-
backgroundColor:
|
|
1410
|
+
backgroundColor: theme2.palette.default.background
|
|
1388
1411
|
}
|
|
1389
1412
|
}
|
|
1390
1413
|
},
|
|
1391
1414
|
"&.MuiOutlinedInput-root": {
|
|
1392
|
-
padding:
|
|
1415
|
+
padding: theme2.spacing(1, 2),
|
|
1393
1416
|
"&.MuiInputBase-sizeSmall": {
|
|
1394
|
-
padding:
|
|
1417
|
+
padding: theme2.spacing(0.5, 1.5)
|
|
1395
1418
|
},
|
|
1396
1419
|
"&.Mui-focused": {
|
|
1397
|
-
backgroundColor:
|
|
1420
|
+
backgroundColor: theme2.palette.background.paper
|
|
1398
1421
|
},
|
|
1399
1422
|
"&.Mui-disabled": {
|
|
1400
|
-
backgroundColor:
|
|
1423
|
+
backgroundColor: theme2.palette.default.background
|
|
1401
1424
|
},
|
|
1402
1425
|
"&.Mui-readOnly": {
|
|
1403
|
-
backgroundColor:
|
|
1426
|
+
backgroundColor: theme2.palette.default.background,
|
|
1404
1427
|
"&.Mui-focused": {
|
|
1405
|
-
backgroundColor:
|
|
1428
|
+
backgroundColor: theme2.palette.default.background
|
|
1406
1429
|
}
|
|
1407
1430
|
},
|
|
1408
1431
|
"& .MuiOutlinedInput-notchedOutline": {
|
|
1409
1432
|
top: 0,
|
|
1410
|
-
borderColor:
|
|
1433
|
+
borderColor: theme2.palette.default.outlinedBorder,
|
|
1411
1434
|
transition: "border 200ms cubic-bezier(0.4, 0, 0.2, 1) 0ms"
|
|
1412
1435
|
},
|
|
1413
1436
|
"&.Mui-focused .MuiOutlinedInput-notchedOutline": {
|
|
1414
1437
|
transition: "none"
|
|
1415
1438
|
},
|
|
1416
1439
|
"&.Mui-error .MuiOutlinedInput-notchedOutline": {
|
|
1417
|
-
border: `2px solid ${
|
|
1440
|
+
border: `2px solid ${theme2.palette.error.light}`
|
|
1418
1441
|
}
|
|
1419
1442
|
},
|
|
1420
1443
|
"&.MuiInput-underline": {
|
|
1421
1444
|
marginTop: 0,
|
|
1422
1445
|
padding: 0,
|
|
1423
1446
|
"&::before": {
|
|
1424
|
-
borderColor:
|
|
1447
|
+
borderColor: theme2.palette.default.outlinedBorder
|
|
1425
1448
|
},
|
|
1426
1449
|
"&:hover:not(.Mui-disabled)::before": {
|
|
1427
|
-
borderBottom: `1px solid ${
|
|
1450
|
+
borderBottom: `1px solid ${theme2.palette.text.primary}`
|
|
1428
1451
|
},
|
|
1429
1452
|
"&:not(.Mui-disabled)::after": {
|
|
1430
1453
|
borderBottom: "1px solid transparent"
|
|
1431
1454
|
},
|
|
1432
1455
|
"&.Mui-focused::after": {
|
|
1433
|
-
borderBottom: `2px solid ${
|
|
1456
|
+
borderBottom: `2px solid ${theme2.palette.primary.main}`
|
|
1434
1457
|
},
|
|
1435
1458
|
"&.Mui-error::after": {
|
|
1436
1459
|
opacity: 1,
|
|
1437
|
-
borderBottom: `2px solid ${
|
|
1460
|
+
borderBottom: `2px solid ${theme2.palette.error.light}`
|
|
1438
1461
|
},
|
|
1439
1462
|
"&.Mui-disabled::before": {
|
|
1440
1463
|
borderBottomStyle: "solid"
|
|
@@ -1443,18 +1466,18 @@ const io = 1, b = 0.5, y = io + b, bo = "M12 5.9c1.16 0 2.1.94 2.1 2.1s-.94 2.1-
|
|
|
1443
1466
|
// TextArea (multiline)
|
|
1444
1467
|
"&.MuiInputBase-multiline": {
|
|
1445
1468
|
height: "auto",
|
|
1446
|
-
minHeight:
|
|
1469
|
+
minHeight: theme2.spacing(12),
|
|
1447
1470
|
alignItems: "flex-start",
|
|
1448
|
-
padding:
|
|
1471
|
+
padding: theme2.spacing(0, 0.25),
|
|
1449
1472
|
"& textarea": {
|
|
1450
|
-
padding:
|
|
1451
|
-
...
|
|
1473
|
+
padding: theme2.spacing(1.5, 1.75),
|
|
1474
|
+
...theme2.typography.body1,
|
|
1452
1475
|
"&::placeholder": {
|
|
1453
1476
|
opacity: 1,
|
|
1454
|
-
color:
|
|
1477
|
+
color: theme2.palette.text.hint
|
|
1455
1478
|
},
|
|
1456
1479
|
"&.Mui-disabled::placeholder": {
|
|
1457
|
-
color:
|
|
1480
|
+
color: theme2.palette.text.disabled
|
|
1458
1481
|
},
|
|
1459
1482
|
// Remove focus on keyboard navigation as the parent element has focus
|
|
1460
1483
|
"&:focus-visible": {
|
|
@@ -1463,26 +1486,26 @@ const io = 1, b = 0.5, y = io + b, bo = "M12 5.9c1.16 0 2.1.94 2.1 2.1s-.94 2.1-
|
|
|
1463
1486
|
}
|
|
1464
1487
|
},
|
|
1465
1488
|
"&.MuiInputBase-sizeSmall": {
|
|
1466
|
-
minHeight:
|
|
1467
|
-
padding:
|
|
1489
|
+
minHeight: theme2.spacing(9),
|
|
1490
|
+
padding: theme2.spacing(0, 0.25),
|
|
1468
1491
|
"& textarea": {
|
|
1469
|
-
padding:
|
|
1470
|
-
...
|
|
1492
|
+
padding: theme2.spacing(1, 1.25),
|
|
1493
|
+
...theme2.typography.body2
|
|
1471
1494
|
}
|
|
1472
1495
|
}
|
|
1473
1496
|
},
|
|
1474
1497
|
// Select Multiple selection
|
|
1475
1498
|
"&.MuiInputBase-root .MuiSelect-multiple.MuiInputBase-input": {
|
|
1476
1499
|
paddingLeft: 0,
|
|
1477
|
-
paddingRight:
|
|
1500
|
+
paddingRight: theme2.spacing(3)
|
|
1478
1501
|
}
|
|
1479
1502
|
}),
|
|
1480
1503
|
// size
|
|
1481
|
-
sizeSmall: ({ theme:
|
|
1482
|
-
height:
|
|
1483
|
-
padding:
|
|
1504
|
+
sizeSmall: ({ theme: theme2 }) => ({
|
|
1505
|
+
height: theme2.spacing(4),
|
|
1506
|
+
padding: theme2.spacing(0, 1.5),
|
|
1484
1507
|
"& input": {
|
|
1485
|
-
...
|
|
1508
|
+
...theme2.typography.body2
|
|
1486
1509
|
}
|
|
1487
1510
|
})
|
|
1488
1511
|
}
|
|
@@ -1490,29 +1513,29 @@ const io = 1, b = 0.5, y = io + b, bo = "M12 5.9c1.16 0 2.1.94 2.1 2.1s-.94 2.1-
|
|
|
1490
1513
|
// Input Adornment
|
|
1491
1514
|
MuiInputAdornment: {
|
|
1492
1515
|
styleOverrides: {
|
|
1493
|
-
root: ({ theme:
|
|
1516
|
+
root: ({ theme: theme2 }) => ({
|
|
1494
1517
|
"& .MuiTypography-root": {
|
|
1495
|
-
...
|
|
1496
|
-
color:
|
|
1518
|
+
...theme2.typography.body1,
|
|
1519
|
+
color: theme2.palette.text.secondary
|
|
1497
1520
|
},
|
|
1498
1521
|
"&.MuiInputAdornment-sizeSmall": {
|
|
1499
1522
|
"& .MuiTypography-root": {
|
|
1500
|
-
...
|
|
1523
|
+
...theme2.typography.body2
|
|
1501
1524
|
}
|
|
1502
1525
|
},
|
|
1503
1526
|
"&.MuiInputAdornment-positionStart.MuiInputAdornment-root:not(.MuiInputAdornment-hiddenLabel)": {
|
|
1504
1527
|
marginTop: 0
|
|
1505
1528
|
},
|
|
1506
1529
|
"& .MuiSvgIcon-root, & svg": {
|
|
1507
|
-
fontSize:
|
|
1508
|
-
width:
|
|
1509
|
-
minWidth:
|
|
1510
|
-
height:
|
|
1511
|
-
color:
|
|
1530
|
+
fontSize: ICON_SIZE_MEDIUM,
|
|
1531
|
+
width: ICON_SIZE_MEDIUM,
|
|
1532
|
+
minWidth: ICON_SIZE_MEDIUM,
|
|
1533
|
+
height: ICON_SIZE_MEDIUM,
|
|
1534
|
+
color: theme2.palette.text.secondary
|
|
1512
1535
|
},
|
|
1513
1536
|
".Mui-disabled &": {
|
|
1514
1537
|
"& .MuiTypography-root, & .MuiSvgIcon-root": {
|
|
1515
|
-
color:
|
|
1538
|
+
color: theme2.palette.text.disabled
|
|
1516
1539
|
}
|
|
1517
1540
|
}
|
|
1518
1541
|
})
|
|
@@ -1521,18 +1544,18 @@ const io = 1, b = 0.5, y = io + b, bo = "M12 5.9c1.16 0 2.1.94 2.1 2.1s-.94 2.1-
|
|
|
1521
1544
|
// Form Control
|
|
1522
1545
|
MuiFormControl: {
|
|
1523
1546
|
defaultProps: {
|
|
1524
|
-
fullWidth:
|
|
1547
|
+
fullWidth: true
|
|
1525
1548
|
}
|
|
1526
1549
|
},
|
|
1527
1550
|
// Form Control Label (radio, checkbox and switch wrapper)
|
|
1528
1551
|
MuiFormControlLabel: {
|
|
1529
1552
|
styleOverrides: {
|
|
1530
|
-
root: ({ ownerState
|
|
1531
|
-
marginLeft:
|
|
1553
|
+
root: ({ ownerState, theme: theme2 }) => ({
|
|
1554
|
+
marginLeft: theme2.spacing(-0.5),
|
|
1532
1555
|
"& .MuiSwitch-root": {
|
|
1533
|
-
marginLeft:
|
|
1556
|
+
marginLeft: theme2.spacing(0.5)
|
|
1534
1557
|
},
|
|
1535
|
-
...
|
|
1558
|
+
...ownerState.readOnly === true && {
|
|
1536
1559
|
pointerEvents: "none"
|
|
1537
1560
|
}
|
|
1538
1561
|
})
|
|
@@ -1541,39 +1564,39 @@ const io = 1, b = 0.5, y = io + b, bo = "M12 5.9c1.16 0 2.1.94 2.1 2.1s-.94 2.1-
|
|
|
1541
1564
|
// Form Helper Text
|
|
1542
1565
|
MuiFormHelperText: {
|
|
1543
1566
|
styleOverrides: {
|
|
1544
|
-
root: ({ theme:
|
|
1567
|
+
root: ({ theme: theme2 }) => ({
|
|
1545
1568
|
margin: 0,
|
|
1546
|
-
marginTop:
|
|
1569
|
+
marginTop: theme2.spacing(1)
|
|
1547
1570
|
})
|
|
1548
1571
|
}
|
|
1549
1572
|
},
|
|
1550
1573
|
// Label
|
|
1551
1574
|
MuiInputLabel: {
|
|
1552
1575
|
styleOverrides: {
|
|
1553
|
-
...
|
|
1576
|
+
...LabelOverrides
|
|
1554
1577
|
}
|
|
1555
1578
|
},
|
|
1556
1579
|
MuiFormLabel: {
|
|
1557
1580
|
styleOverrides: {
|
|
1558
|
-
...
|
|
1581
|
+
...LabelOverrides
|
|
1559
1582
|
}
|
|
1560
1583
|
},
|
|
1561
1584
|
// Select
|
|
1562
1585
|
MuiSelect: {
|
|
1563
1586
|
defaultProps: {
|
|
1564
|
-
IconComponent:
|
|
1565
|
-
fullWidth:
|
|
1587
|
+
IconComponent: ArrowDown,
|
|
1588
|
+
fullWidth: true,
|
|
1566
1589
|
size: "small"
|
|
1567
1590
|
},
|
|
1568
1591
|
styleOverrides: {
|
|
1569
|
-
root: ({ theme:
|
|
1592
|
+
root: ({ theme: theme2 }) => ({
|
|
1570
1593
|
padding: 0,
|
|
1571
1594
|
"& .MuiSelect-icon": {
|
|
1572
|
-
right:
|
|
1573
|
-
color:
|
|
1595
|
+
right: theme2.spacing(2),
|
|
1596
|
+
color: theme2.palette.text.secondary
|
|
1574
1597
|
},
|
|
1575
1598
|
"&.Mui-disabled .MuiSelect-icon, &.Mui-readOnly .MuiSelect-icon": {
|
|
1576
|
-
color:
|
|
1599
|
+
color: theme2.palette.text.disabled
|
|
1577
1600
|
},
|
|
1578
1601
|
"& .MuiSelect-iconStandard": {
|
|
1579
1602
|
right: 0
|
|
@@ -1593,11 +1616,11 @@ const io = 1, b = 0.5, y = io + b, bo = "M12 5.9c1.16 0 2.1.94 2.1 2.1s-.94 2.1-
|
|
|
1593
1616
|
},
|
|
1594
1617
|
// Size Small
|
|
1595
1618
|
"&.MuiInputBase-sizeSmall": {
|
|
1596
|
-
...
|
|
1619
|
+
...theme2.typography.body2,
|
|
1597
1620
|
"& .MuiSelect-select": {
|
|
1598
1621
|
"&.MuiInputBase-input": {
|
|
1599
|
-
paddingLeft:
|
|
1600
|
-
paddingRight:
|
|
1622
|
+
paddingLeft: theme2.spacing(1.5),
|
|
1623
|
+
paddingRight: theme2.spacing(4)
|
|
1601
1624
|
},
|
|
1602
1625
|
"&.MuiSelect-standard": {
|
|
1603
1626
|
paddingLeft: 0
|
|
@@ -1607,15 +1630,15 @@ const io = 1, b = 0.5, y = io + b, bo = "M12 5.9c1.16 0 2.1.94 2.1 2.1s-.94 2.1-
|
|
|
1607
1630
|
padding: 0
|
|
1608
1631
|
},
|
|
1609
1632
|
"& .MuiSelect-icon": {
|
|
1610
|
-
right:
|
|
1633
|
+
right: theme2.spacing(1.5)
|
|
1611
1634
|
}
|
|
1612
1635
|
}
|
|
1613
1636
|
}),
|
|
1614
|
-
select: ({ theme:
|
|
1615
|
-
padding:
|
|
1637
|
+
select: ({ theme: theme2 }) => ({
|
|
1638
|
+
padding: theme2.spacing(1.5),
|
|
1616
1639
|
"&.MuiInputBase-input": {
|
|
1617
|
-
paddingLeft:
|
|
1618
|
-
paddingRight:
|
|
1640
|
+
paddingLeft: theme2.spacing(2),
|
|
1641
|
+
paddingRight: theme2.spacing(5),
|
|
1619
1642
|
"&.MuiSelect-standard": {
|
|
1620
1643
|
paddingLeft: 0
|
|
1621
1644
|
}
|
|
@@ -1634,7 +1657,7 @@ const io = 1, b = 0.5, y = io + b, bo = "M12 5.9c1.16 0 2.1.94 2.1 2.1s-.94 2.1-
|
|
|
1634
1657
|
textOverflow: "ellipsis"
|
|
1635
1658
|
},
|
|
1636
1659
|
"&.MuiInputBase-inputSizeSmall": {
|
|
1637
|
-
padding:
|
|
1660
|
+
padding: theme2.spacing(0.75)
|
|
1638
1661
|
}
|
|
1639
1662
|
})
|
|
1640
1663
|
}
|
|
@@ -1643,9 +1666,9 @@ const io = 1, b = 0.5, y = io + b, bo = "M12 5.9c1.16 0 2.1.94 2.1 2.1s-.94 2.1-
|
|
|
1643
1666
|
MuiAutocomplete: {
|
|
1644
1667
|
defaultProps: {
|
|
1645
1668
|
size: "small",
|
|
1646
|
-
fullWidth:
|
|
1647
|
-
popupIcon: /* @__PURE__ */
|
|
1648
|
-
clearIcon: /* @__PURE__ */
|
|
1669
|
+
fullWidth: true,
|
|
1670
|
+
popupIcon: /* @__PURE__ */ jsx(ArrowDown, {}),
|
|
1671
|
+
clearIcon: /* @__PURE__ */ jsx(Tooltip, { title: "Clear", children: /* @__PURE__ */ jsx(Cancel, { "data-testid": "cancel-icon-autocomplete" }) }),
|
|
1649
1672
|
clearText: "",
|
|
1650
1673
|
ChipProps: { color: "default" },
|
|
1651
1674
|
limitTags: 1,
|
|
@@ -1656,36 +1679,36 @@ const io = 1, b = 0.5, y = io + b, bo = "M12 5.9c1.16 0 2.1.94 2.1 2.1s-.94 2.1-
|
|
|
1656
1679
|
}
|
|
1657
1680
|
},
|
|
1658
1681
|
styleOverrides: {
|
|
1659
|
-
root: ({ ownerState
|
|
1682
|
+
root: ({ ownerState, theme: theme2 }) => ({
|
|
1660
1683
|
"&.MuiAutocomplete-root .MuiFormControl-root": {
|
|
1661
1684
|
//Needed to overide Mui default styles
|
|
1662
1685
|
".MuiInputBase-root": {
|
|
1663
|
-
gap:
|
|
1686
|
+
gap: theme2.spacing(0.5),
|
|
1664
1687
|
height: "auto",
|
|
1665
|
-
minHeight:
|
|
1666
|
-
padding:
|
|
1667
|
-
paddingRight:
|
|
1688
|
+
minHeight: theme2.spacing(6),
|
|
1689
|
+
padding: theme2.spacing(1, 2),
|
|
1690
|
+
paddingRight: theme2.spacing(5),
|
|
1668
1691
|
".MuiInputBase-input": {
|
|
1669
1692
|
padding: 0
|
|
1670
1693
|
},
|
|
1671
1694
|
// Multiple
|
|
1672
|
-
...
|
|
1673
|
-
paddingLeft:
|
|
1695
|
+
...ownerState.multiple === true && {
|
|
1696
|
+
paddingLeft: theme2.spacing(1),
|
|
1674
1697
|
".MuiInputBase-input": {
|
|
1675
1698
|
padding: 0,
|
|
1676
|
-
marginLeft:
|
|
1699
|
+
marginLeft: theme2.spacing(1)
|
|
1677
1700
|
}
|
|
1678
1701
|
},
|
|
1679
|
-
...
|
|
1680
|
-
minHeight:
|
|
1681
|
-
padding:
|
|
1682
|
-
paddingRight:
|
|
1683
|
-
...
|
|
1684
|
-
paddingLeft:
|
|
1702
|
+
...ownerState.size === "small" && {
|
|
1703
|
+
minHeight: theme2.spacing(4),
|
|
1704
|
+
padding: theme2.spacing(0.5, 1.5),
|
|
1705
|
+
paddingRight: theme2.spacing(4),
|
|
1706
|
+
...ownerState.multiple === true && {
|
|
1707
|
+
paddingLeft: theme2.spacing(0.5)
|
|
1685
1708
|
}
|
|
1686
1709
|
},
|
|
1687
|
-
...
|
|
1688
|
-
backgroundColor:
|
|
1710
|
+
...ownerState.readOnly === true && {
|
|
1711
|
+
backgroundColor: theme2.palette.default.background
|
|
1689
1712
|
},
|
|
1690
1713
|
"&.Mui-disabled": {
|
|
1691
1714
|
pointerEvents: "none"
|
|
@@ -1694,23 +1717,23 @@ const io = 1, b = 0.5, y = io + b, bo = "M12 5.9c1.16 0 2.1.94 2.1 2.1s-.94 2.1-
|
|
|
1694
1717
|
// Variants
|
|
1695
1718
|
".MuiFilledInput-root .MuiAutocomplete-tag": {
|
|
1696
1719
|
backgroundColor: "transparent",
|
|
1697
|
-
border: `1px solid ${
|
|
1720
|
+
border: `1px solid ${theme2.palette.default.main}`
|
|
1698
1721
|
}
|
|
1699
1722
|
},
|
|
1700
1723
|
"&.MuiAutocomplete-hasClearIcon .MuiFormControl-root .MuiInputBase-root": {
|
|
1701
|
-
paddingRight:
|
|
1702
|
-
...
|
|
1703
|
-
paddingRight:
|
|
1724
|
+
paddingRight: theme2.spacing(8.5),
|
|
1725
|
+
...ownerState.size === "small" && {
|
|
1726
|
+
paddingRight: theme2.spacing(7)
|
|
1704
1727
|
}
|
|
1705
1728
|
}
|
|
1706
1729
|
}),
|
|
1707
|
-
inputRoot: ({ theme:
|
|
1708
|
-
maxHeight:
|
|
1730
|
+
inputRoot: ({ theme: theme2 }) => ({
|
|
1731
|
+
maxHeight: theme2.spacing(20),
|
|
1709
1732
|
// 160px
|
|
1710
1733
|
overflow: "auto",
|
|
1711
1734
|
transition: "box-shadow 300ms cubic-bezier(0.4, 0, 0.2, 1) 0ms",
|
|
1712
1735
|
"& .MuiAutocomplete-input": {
|
|
1713
|
-
minWidth: `${
|
|
1736
|
+
minWidth: `${theme2.spacing(10)} !important`,
|
|
1714
1737
|
"&[readOnly]": {
|
|
1715
1738
|
display: "none"
|
|
1716
1739
|
}
|
|
@@ -1723,157 +1746,157 @@ const io = 1, b = 0.5, y = io + b, bo = "M12 5.9c1.16 0 2.1.94 2.1 2.1s-.94 2.1-
|
|
|
1723
1746
|
border: "0 !important"
|
|
1724
1747
|
},
|
|
1725
1748
|
"&.MuiOutlinedInput-root": {
|
|
1726
|
-
boxShadow: `inset 0 0 0 1px ${
|
|
1749
|
+
boxShadow: `inset 0 0 0 1px ${theme2.palette.default.outlinedBorder}`
|
|
1727
1750
|
},
|
|
1728
1751
|
"&:hover": {
|
|
1729
|
-
boxShadow: `inset 0 0 0 1px ${
|
|
1752
|
+
boxShadow: `inset 0 0 0 1px ${theme2.palette.text.primary}`
|
|
1730
1753
|
},
|
|
1731
1754
|
"&.Mui-focused": {
|
|
1732
1755
|
transition: "none",
|
|
1733
|
-
boxShadow: `inset 0 0 0 2px ${
|
|
1756
|
+
boxShadow: `inset 0 0 0 2px ${theme2.palette.primary.main}`
|
|
1734
1757
|
},
|
|
1735
1758
|
"&.Mui-error": {
|
|
1736
|
-
boxShadow: `inset 0 0 0 2px ${
|
|
1759
|
+
boxShadow: `inset 0 0 0 2px ${theme2.palette.error.light}`
|
|
1737
1760
|
},
|
|
1738
1761
|
"&.Mui-disabled.MuiOutlinedInput-root": {
|
|
1739
|
-
boxShadow: `inset 0 0 0 1px ${
|
|
1762
|
+
boxShadow: `inset 0 0 0 1px ${theme2.palette.default.outlinedBorder}`,
|
|
1740
1763
|
"&.Mui-error": {
|
|
1741
|
-
boxShadow: `inset 0 0 0 2px ${
|
|
1764
|
+
boxShadow: `inset 0 0 0 2px ${theme2.palette.error.light}`
|
|
1742
1765
|
}
|
|
1743
1766
|
},
|
|
1744
1767
|
"&.Mui-disabled.MuiFilledInput-root": {
|
|
1745
1768
|
"& .MuiAutocomplete-tag": {
|
|
1746
|
-
borderColor: `${
|
|
1769
|
+
borderColor: `${theme2.palette.default.outlinedBorder} !important`
|
|
1747
1770
|
}
|
|
1748
1771
|
}
|
|
1749
1772
|
}),
|
|
1750
|
-
endAdornment: ({ theme:
|
|
1773
|
+
endAdornment: ({ theme: theme2 }) => ({
|
|
1751
1774
|
transform: "none",
|
|
1752
|
-
top:
|
|
1775
|
+
top: theme2.spacing(2),
|
|
1753
1776
|
display: "flex",
|
|
1754
1777
|
alignItems: "center",
|
|
1755
1778
|
justifyContent: "flex-end",
|
|
1756
|
-
marginRight:
|
|
1779
|
+
marginRight: theme2.spacing(1),
|
|
1757
1780
|
".MuiAutocomplete-hasClearIcon &": {
|
|
1758
|
-
top:
|
|
1781
|
+
top: theme2.spacing(1)
|
|
1759
1782
|
},
|
|
1760
1783
|
".MuiInputBase-sizeSmall &": {
|
|
1761
|
-
top:
|
|
1762
|
-
width:
|
|
1763
|
-
height:
|
|
1764
|
-
marginRight:
|
|
1784
|
+
top: theme2.spacing(0.5),
|
|
1785
|
+
width: theme2.spacing(3),
|
|
1786
|
+
height: theme2.spacing(3),
|
|
1787
|
+
marginRight: theme2.spacing(0.5)
|
|
1765
1788
|
}
|
|
1766
1789
|
}),
|
|
1767
|
-
clearIndicator: ({ ownerState
|
|
1790
|
+
clearIndicator: ({ ownerState, theme: theme2 }) => ({
|
|
1768
1791
|
marginRight: 0,
|
|
1769
|
-
color:
|
|
1770
|
-
...
|
|
1771
|
-
width:
|
|
1772
|
-
height:
|
|
1792
|
+
color: theme2.palette.text.hint,
|
|
1793
|
+
...ownerState.size === "small" && {
|
|
1794
|
+
width: theme2.spacing(3),
|
|
1795
|
+
height: theme2.spacing(3)
|
|
1773
1796
|
}
|
|
1774
1797
|
}),
|
|
1775
|
-
popupIndicator: ({ theme:
|
|
1776
|
-
width:
|
|
1777
|
-
height:
|
|
1798
|
+
popupIndicator: ({ theme: theme2 }) => ({
|
|
1799
|
+
width: ICON_SIZE_MEDIUM,
|
|
1800
|
+
height: ICON_SIZE_MEDIUM,
|
|
1778
1801
|
cursor: "pointer",
|
|
1779
1802
|
"&:hover": {
|
|
1780
1803
|
backgroundColor: "transparent"
|
|
1781
1804
|
},
|
|
1782
1805
|
"&.MuiButtonBase-root": {
|
|
1783
|
-
color:
|
|
1806
|
+
color: theme2.palette.text.secondary
|
|
1784
1807
|
},
|
|
1785
1808
|
".Mui-disabled &": {
|
|
1786
|
-
color:
|
|
1809
|
+
color: theme2.palette.text.disabled
|
|
1787
1810
|
},
|
|
1788
1811
|
"input:read-only + .MuiAutocomplete-endAdornment &": {
|
|
1789
|
-
color:
|
|
1812
|
+
color: theme2.palette.text.disabled
|
|
1790
1813
|
}
|
|
1791
1814
|
}),
|
|
1792
|
-
tag: ({ ownerState
|
|
1815
|
+
tag: ({ ownerState, theme: theme2 }) => ({
|
|
1793
1816
|
margin: 0,
|
|
1794
1817
|
"&:not(.MuiButtonBase-root)": {
|
|
1795
1818
|
display: "flex",
|
|
1796
1819
|
alignItems: "center",
|
|
1797
|
-
height:
|
|
1798
|
-
padding:
|
|
1799
|
-
backgroundColor:
|
|
1800
|
-
borderRadius:
|
|
1801
|
-
...
|
|
1802
|
-
fontWeight:
|
|
1803
|
-
...
|
|
1804
|
-
height:
|
|
1805
|
-
padding:
|
|
1806
|
-
borderRadius:
|
|
1807
|
-
...
|
|
1808
|
-
fontWeight:
|
|
1809
|
-
}
|
|
1810
|
-
}
|
|
1811
|
-
}),
|
|
1812
|
-
option: ({ ownerState
|
|
1820
|
+
height: theme2.spacing(4),
|
|
1821
|
+
padding: theme2.spacing(0, 1.5),
|
|
1822
|
+
backgroundColor: theme2.palette.default.main,
|
|
1823
|
+
borderRadius: theme2.spacing(2),
|
|
1824
|
+
...theme2.typography.button,
|
|
1825
|
+
fontWeight: theme2.typography.fontWeightMedium,
|
|
1826
|
+
...ownerState.size === "small" && {
|
|
1827
|
+
height: theme2.spacing(3),
|
|
1828
|
+
padding: theme2.spacing(0, 1),
|
|
1829
|
+
borderRadius: theme2.spacing(1.5),
|
|
1830
|
+
...theme2.typography.caption,
|
|
1831
|
+
fontWeight: theme2.typography.fontWeightMedium
|
|
1832
|
+
}
|
|
1833
|
+
}
|
|
1834
|
+
}),
|
|
1835
|
+
option: ({ ownerState, theme: theme2 }) => ({
|
|
1813
1836
|
"&.MuiAutocomplete-option": {
|
|
1814
|
-
minHeight:
|
|
1815
|
-
padding:
|
|
1816
|
-
...
|
|
1837
|
+
minHeight: theme2.spacing(4),
|
|
1838
|
+
padding: theme2.spacing(0.5, 2),
|
|
1839
|
+
...theme2.typography.body2,
|
|
1817
1840
|
transition: "background-color 300ms cubic-bezier(0.4, 0, 0.2, 1) 0ms",
|
|
1818
1841
|
"& .MuiCheckbox-root svg path": {
|
|
1819
|
-
fill:
|
|
1842
|
+
fill: theme2.palette.text.secondary
|
|
1820
1843
|
},
|
|
1821
1844
|
"&:hover": {
|
|
1822
|
-
backgroundColor:
|
|
1845
|
+
backgroundColor: theme2.palette.action.hover
|
|
1823
1846
|
},
|
|
1824
1847
|
"&.Mui-disabled": {
|
|
1825
1848
|
"& .MuiCheckbox-root svg path": {
|
|
1826
|
-
fill:
|
|
1849
|
+
fill: theme2.palette.text.disabled
|
|
1827
1850
|
}
|
|
1828
1851
|
},
|
|
1829
1852
|
'&[aria-disabled="true"]': {
|
|
1830
1853
|
opacity: 1
|
|
1831
1854
|
},
|
|
1832
1855
|
'&[aria-selected="true"]': {
|
|
1833
|
-
color:
|
|
1834
|
-
backgroundColor:
|
|
1856
|
+
color: theme2.palette.primary.main,
|
|
1857
|
+
backgroundColor: theme2.palette.primary.background,
|
|
1835
1858
|
".MuiTypography-root": {
|
|
1836
|
-
color:
|
|
1859
|
+
color: theme2.palette.primary.main
|
|
1837
1860
|
},
|
|
1838
1861
|
".MuiTypography-caption": {
|
|
1839
|
-
color:
|
|
1862
|
+
color: theme2.palette.text.secondary
|
|
1840
1863
|
},
|
|
1841
1864
|
"& .MuiCheckbox-root svg path": {
|
|
1842
|
-
fill:
|
|
1865
|
+
fill: theme2.palette.primary.main
|
|
1843
1866
|
},
|
|
1844
1867
|
"&.Mui-focused:hover": {
|
|
1845
|
-
backgroundColor:
|
|
1868
|
+
backgroundColor: theme2.palette.action.hover
|
|
1846
1869
|
},
|
|
1847
1870
|
"&.Mui-disabled": {
|
|
1848
1871
|
backgroundColor: "transparent",
|
|
1849
1872
|
"& svg path": {
|
|
1850
|
-
fill:
|
|
1873
|
+
fill: theme2.palette.text.disabled
|
|
1851
1874
|
},
|
|
1852
1875
|
"& .MuiCheckbox-root svg path": {
|
|
1853
|
-
fill:
|
|
1876
|
+
fill: theme2.palette.text.disabled
|
|
1854
1877
|
},
|
|
1855
1878
|
"& .MuiTypography-root": {
|
|
1856
|
-
color:
|
|
1879
|
+
color: theme2.palette.text.disabled
|
|
1857
1880
|
}
|
|
1858
1881
|
}
|
|
1859
1882
|
},
|
|
1860
1883
|
"&:first-of-type": {
|
|
1861
|
-
marginTop:
|
|
1884
|
+
marginTop: theme2.spacing(1)
|
|
1862
1885
|
},
|
|
1863
|
-
...
|
|
1864
|
-
padding:
|
|
1886
|
+
...ownerState.size === "small" && {
|
|
1887
|
+
padding: theme2.spacing(0.5, 1.5)
|
|
1865
1888
|
}
|
|
1866
1889
|
}
|
|
1867
1890
|
}),
|
|
1868
|
-
noOptions: ({ ownerState
|
|
1869
|
-
padding:
|
|
1870
|
-
...
|
|
1871
|
-
color:
|
|
1872
|
-
...
|
|
1873
|
-
padding:
|
|
1891
|
+
noOptions: ({ ownerState, theme: theme2 }) => ({
|
|
1892
|
+
padding: theme2.spacing(2.5, 2),
|
|
1893
|
+
...theme2.typography.body2,
|
|
1894
|
+
color: theme2.palette.text.secondary,
|
|
1895
|
+
...ownerState.size === "small" && {
|
|
1896
|
+
padding: theme2.spacing(2, 1.5)
|
|
1874
1897
|
}
|
|
1875
1898
|
}),
|
|
1876
|
-
listbox: ({ theme:
|
|
1899
|
+
listbox: ({ theme: theme2 }) => ({
|
|
1877
1900
|
paddingTop: 0,
|
|
1878
1901
|
".MuiDivider-root": {
|
|
1879
1902
|
display: "none"
|
|
@@ -1882,7 +1905,7 @@ const io = 1, b = 0.5, y = io + b, bo = "M12 5.9c1.16 0 2.1.94 2.1 2.1s-.94 2.1-
|
|
|
1882
1905
|
display: "block"
|
|
1883
1906
|
},
|
|
1884
1907
|
".MuiMenuItem-root:first-of-type": {
|
|
1885
|
-
marginTop:
|
|
1908
|
+
marginTop: theme2.spacing(1)
|
|
1886
1909
|
}
|
|
1887
1910
|
})
|
|
1888
1911
|
}
|
|
@@ -1890,39 +1913,39 @@ const io = 1, b = 0.5, y = io + b, bo = "M12 5.9c1.16 0 2.1.94 2.1 2.1s-.94 2.1-
|
|
|
1890
1913
|
// Switch
|
|
1891
1914
|
MuiSwitch: {
|
|
1892
1915
|
defaultProps: {
|
|
1893
|
-
disableRipple:
|
|
1916
|
+
disableRipple: true
|
|
1894
1917
|
},
|
|
1895
1918
|
styleOverrides: {
|
|
1896
|
-
root: ({ theme:
|
|
1897
|
-
width:
|
|
1898
|
-
height:
|
|
1919
|
+
root: ({ theme: theme2 }) => ({
|
|
1920
|
+
width: theme2.spacing(switchSizeM),
|
|
1921
|
+
height: theme2.spacing(switchSizeS),
|
|
1899
1922
|
padding: 0,
|
|
1900
1923
|
overflow: "visible",
|
|
1901
1924
|
"& + .MuiTypography-root": {
|
|
1902
|
-
marginLeft:
|
|
1903
|
-
color:
|
|
1925
|
+
marginLeft: theme2.spacing(1),
|
|
1926
|
+
color: theme2.palette.text.primary
|
|
1904
1927
|
},
|
|
1905
1928
|
"& + .MuiFormControlLabel-label": {
|
|
1906
|
-
...
|
|
1929
|
+
...theme2.typography.body2
|
|
1907
1930
|
}
|
|
1908
1931
|
}),
|
|
1909
|
-
switchBase: ({ ownerState
|
|
1910
|
-
width:
|
|
1911
|
-
height:
|
|
1912
|
-
padding:
|
|
1932
|
+
switchBase: ({ ownerState, theme: theme2 }) => ({
|
|
1933
|
+
width: theme2.spacing(switchSizeL),
|
|
1934
|
+
height: theme2.spacing(switchSizeL),
|
|
1935
|
+
padding: theme2.spacing(0.5),
|
|
1913
1936
|
borderRadius: "50%",
|
|
1914
|
-
color:
|
|
1937
|
+
color: theme2.palette.text.secondary,
|
|
1915
1938
|
transform: "translate(-8px, -8px)",
|
|
1916
1939
|
"&:hover": {
|
|
1917
|
-
backgroundColor:
|
|
1940
|
+
backgroundColor: theme2.palette.action.hover
|
|
1918
1941
|
},
|
|
1919
1942
|
"&.MuiSwitch-switchBase input": {
|
|
1920
|
-
top:
|
|
1921
|
-
left:
|
|
1943
|
+
top: theme2.spacing(1),
|
|
1944
|
+
left: theme2.spacing(1)
|
|
1922
1945
|
},
|
|
1923
1946
|
"&.Mui-checked": {
|
|
1924
1947
|
transform: "translate(0, -8px)",
|
|
1925
|
-
color:
|
|
1948
|
+
color: theme2.palette.common.white,
|
|
1926
1949
|
"&.MuiSwitch-switchBase input": {
|
|
1927
1950
|
left: 0
|
|
1928
1951
|
},
|
|
@@ -1931,61 +1954,61 @@ const io = 1, b = 0.5, y = io + b, bo = "M12 5.9c1.16 0 2.1.94 2.1 2.1s-.94 2.1-
|
|
|
1931
1954
|
border: 0
|
|
1932
1955
|
}
|
|
1933
1956
|
},
|
|
1934
|
-
...
|
|
1935
|
-
color:
|
|
1957
|
+
...ownerState.readOnly === true && {
|
|
1958
|
+
color: theme2.palette.text.disabled
|
|
1936
1959
|
}
|
|
1937
1960
|
}),
|
|
1938
|
-
thumb: ({ theme:
|
|
1939
|
-
width:
|
|
1940
|
-
height:
|
|
1941
|
-
boxShadow:
|
|
1961
|
+
thumb: ({ theme: theme2 }) => ({
|
|
1962
|
+
width: theme2.spacing(1),
|
|
1963
|
+
height: theme2.spacing(1),
|
|
1964
|
+
boxShadow: theme2.shadows[0],
|
|
1942
1965
|
".Mui-checked &": {
|
|
1943
|
-
boxShadow:
|
|
1966
|
+
boxShadow: theme2.shadows[1]
|
|
1944
1967
|
},
|
|
1945
1968
|
".Mui-disabled &": {
|
|
1946
|
-
backgroundColor:
|
|
1969
|
+
backgroundColor: theme2.palette.text.disabled
|
|
1947
1970
|
},
|
|
1948
1971
|
".Mui-disabled.Mui-checked &": {
|
|
1949
|
-
backgroundColor:
|
|
1972
|
+
backgroundColor: theme2.palette.common.white
|
|
1950
1973
|
}
|
|
1951
1974
|
}),
|
|
1952
|
-
input: ({ theme:
|
|
1953
|
-
width:
|
|
1954
|
-
height:
|
|
1975
|
+
input: ({ theme: theme2 }) => ({
|
|
1976
|
+
width: theme2.spacing(switchSizeM),
|
|
1977
|
+
height: theme2.spacing(switchSizeS),
|
|
1955
1978
|
left: 0
|
|
1956
1979
|
}),
|
|
1957
|
-
track: ({ ownerState
|
|
1980
|
+
track: ({ ownerState, theme: theme2 }) => ({
|
|
1958
1981
|
height: "auto",
|
|
1959
|
-
border: `1px solid ${
|
|
1960
|
-
borderRadius:
|
|
1982
|
+
border: `1px solid ${theme2.palette.text.secondary}`,
|
|
1983
|
+
borderRadius: theme2.spacing(2),
|
|
1961
1984
|
opacity: 1,
|
|
1962
|
-
backgroundColor:
|
|
1985
|
+
backgroundColor: theme2.palette.common.white,
|
|
1963
1986
|
transitionDuration: "300ms",
|
|
1964
1987
|
".MuiButtonBase-root.MuiSwitch-switchBase.Mui-disabled + &": {
|
|
1965
1988
|
opacity: 1,
|
|
1966
|
-
borderColor:
|
|
1989
|
+
borderColor: theme2.palette.text.disabled
|
|
1967
1990
|
},
|
|
1968
1991
|
".MuiButtonBase-root.Mui-checked.Mui-disabled + &": {
|
|
1969
|
-
backgroundColor:
|
|
1992
|
+
backgroundColor: theme2.palette.text.disabled
|
|
1970
1993
|
},
|
|
1971
1994
|
".MuiButtonBase-root.MuiSwitch-switchBase[readOnly] + &": {
|
|
1972
|
-
borderColor:
|
|
1995
|
+
borderColor: theme2.palette.text.disabled
|
|
1973
1996
|
},
|
|
1974
1997
|
"[readOnly] .MuiButtonBase-root.Mui-checked + &": {
|
|
1975
|
-
backgroundColor:
|
|
1998
|
+
backgroundColor: theme2.palette.text.disabled
|
|
1976
1999
|
},
|
|
1977
|
-
...
|
|
1978
|
-
borderColor:
|
|
2000
|
+
...ownerState.readOnly === true && {
|
|
2001
|
+
borderColor: theme2.palette.text.disabled
|
|
1979
2002
|
}
|
|
1980
2003
|
}),
|
|
1981
|
-
colorPrimary: ({ theme:
|
|
2004
|
+
colorPrimary: ({ theme: theme2 }) => ({
|
|
1982
2005
|
"&.Mui-checked:hover": {
|
|
1983
|
-
backgroundColor:
|
|
2006
|
+
backgroundColor: theme2.palette.primary.background
|
|
1984
2007
|
}
|
|
1985
2008
|
}),
|
|
1986
|
-
colorSecondary: ({ theme:
|
|
2009
|
+
colorSecondary: ({ theme: theme2 }) => ({
|
|
1987
2010
|
"&.Mui-checked:hover": {
|
|
1988
|
-
backgroundColor:
|
|
2011
|
+
backgroundColor: theme2.palette.secondary.background
|
|
1989
2012
|
}
|
|
1990
2013
|
})
|
|
1991
2014
|
}
|
|
@@ -2001,26 +2024,27 @@ const io = 1, b = 0.5, y = io + b, bo = "M12 5.9c1.16 0 2.1.94 2.1 2.1s-.94 2.1-
|
|
|
2001
2024
|
MuiSlider: {
|
|
2002
2025
|
defaultProps: {
|
|
2003
2026
|
color: "primary",
|
|
2004
|
-
marks:
|
|
2027
|
+
marks: false,
|
|
2005
2028
|
size: "small"
|
|
2006
2029
|
},
|
|
2007
2030
|
styleOverrides: {
|
|
2008
|
-
thumb: ({ theme:
|
|
2031
|
+
thumb: ({ theme: theme2 }) => ({
|
|
2009
2032
|
"&:hover, &.Mui-focusVisible": {
|
|
2010
|
-
boxShadow: `0 0 0 ${
|
|
2033
|
+
boxShadow: `0 0 0 ${theme2.spacing(1)} ${theme2.palette.primary.background}`
|
|
2011
2034
|
}
|
|
2012
2035
|
})
|
|
2013
2036
|
}
|
|
2014
2037
|
}
|
|
2015
|
-
}
|
|
2038
|
+
};
|
|
2039
|
+
const navigationOverrides = {
|
|
2016
2040
|
// Menu
|
|
2017
2041
|
MuiMenu: {
|
|
2018
2042
|
styleOverrides: {
|
|
2019
|
-
paper: ({ theme:
|
|
2043
|
+
paper: ({ theme: theme2 }) => ({
|
|
2020
2044
|
"&.MuiMenu-paper": {
|
|
2021
|
-
minWidth:
|
|
2045
|
+
minWidth: theme2.spacing(8),
|
|
2022
2046
|
// 64px, defined by design
|
|
2023
|
-
maxHeight:
|
|
2047
|
+
maxHeight: theme2.spacing(39),
|
|
2024
2048
|
// 312px, defined by design
|
|
2025
2049
|
"&:focus-visible": {
|
|
2026
2050
|
outline: "none !important",
|
|
@@ -2033,17 +2057,17 @@ const io = 1, b = 0.5, y = io + b, bo = "M12 5.9c1.16 0 2.1.94 2.1 2.1s-.94 2.1-
|
|
|
2033
2057
|
// Menu Item
|
|
2034
2058
|
MuiMenuItem: {
|
|
2035
2059
|
styleOverrides: {
|
|
2036
|
-
root: ({ theme:
|
|
2037
|
-
...
|
|
2038
|
-
columnGap:
|
|
2039
|
-
minHeight:
|
|
2040
|
-
padding:
|
|
2060
|
+
root: ({ theme: theme2 }) => ({
|
|
2061
|
+
...theme2.typography.body2,
|
|
2062
|
+
columnGap: theme2.spacing(1),
|
|
2063
|
+
minHeight: theme2.spacing(4),
|
|
2064
|
+
padding: theme2.spacing(0.75, 1, 0.75, 1.5),
|
|
2041
2065
|
whiteSpace: "normal",
|
|
2042
2066
|
transition: "background-color 300ms cubic-bezier(0.4, 0, 0.2, 1) 0ms",
|
|
2043
|
-
[
|
|
2067
|
+
[theme2.breakpoints.up("sm")]: {
|
|
2044
2068
|
// Overrides an unwanted Mui default style
|
|
2045
2069
|
"&.MuiButtonBase-root": {
|
|
2046
|
-
minHeight:
|
|
2070
|
+
minHeight: theme2.spacing(4)
|
|
2047
2071
|
}
|
|
2048
2072
|
},
|
|
2049
2073
|
"&:hover": {
|
|
@@ -2054,73 +2078,73 @@ const io = 1, b = 0.5, y = io + b, bo = "M12 5.9c1.16 0 2.1.94 2.1 2.1s-.94 2.1-
|
|
|
2054
2078
|
"&:focus-visible": {
|
|
2055
2079
|
// Solves a known Mui issue: https://github.com/mui/material-ui/issues/23747
|
|
2056
2080
|
backgroundColor: "transparent",
|
|
2057
|
-
outline:
|
|
2058
|
-
boxShadow: `inset 0 0 0 2px ${
|
|
2059
|
-
borderRadius:
|
|
2081
|
+
outline: `none !important`,
|
|
2082
|
+
boxShadow: `inset 0 0 0 2px ${theme2.palette.primary.main} !important`,
|
|
2083
|
+
borderRadius: theme2.shape.borderRadius,
|
|
2060
2084
|
"&:hover": {
|
|
2061
|
-
backgroundColor:
|
|
2085
|
+
backgroundColor: theme2.palette.action.hover
|
|
2062
2086
|
}
|
|
2063
2087
|
},
|
|
2064
2088
|
"&.Mui-selected": {
|
|
2065
|
-
color:
|
|
2089
|
+
color: theme2.palette.primary.main,
|
|
2066
2090
|
"&:focus-visible": {
|
|
2067
2091
|
// Solves a known Mui issue: https://github.com/mui/material-ui/issues/23747
|
|
2068
|
-
backgroundColor:
|
|
2092
|
+
backgroundColor: theme2.palette.primary.background
|
|
2069
2093
|
},
|
|
2070
2094
|
"&:hover": {
|
|
2071
|
-
backgroundColor:
|
|
2095
|
+
backgroundColor: theme2.palette.action.hover
|
|
2072
2096
|
},
|
|
2073
2097
|
"& .MuiTypography-root, & .MuiSvgIcon-root": {
|
|
2074
|
-
color:
|
|
2098
|
+
color: theme2.palette.primary.main
|
|
2075
2099
|
},
|
|
2076
2100
|
".MuiTypography-caption": {
|
|
2077
2101
|
// secondary text
|
|
2078
|
-
color:
|
|
2102
|
+
color: theme2.palette.text.secondary
|
|
2079
2103
|
}
|
|
2080
2104
|
},
|
|
2081
2105
|
"&.Mui-disabled": {
|
|
2082
2106
|
opacity: 1,
|
|
2083
|
-
color:
|
|
2084
|
-
backgroundColor:
|
|
2107
|
+
color: theme2.palette.text.disabled,
|
|
2108
|
+
backgroundColor: theme2.palette.background.paper,
|
|
2085
2109
|
"&:empty": {
|
|
2086
2110
|
height: 0,
|
|
2087
2111
|
minHeight: 0,
|
|
2088
2112
|
padding: 0
|
|
2089
2113
|
},
|
|
2090
2114
|
".MuiTypography-root": {
|
|
2091
|
-
color:
|
|
2115
|
+
color: theme2.palette.text.disabled
|
|
2092
2116
|
},
|
|
2093
2117
|
svg: {
|
|
2094
|
-
color:
|
|
2118
|
+
color: theme2.palette.text.disabled
|
|
2095
2119
|
},
|
|
2096
2120
|
".MuiListItemIcon-root svg path": {
|
|
2097
|
-
fill:
|
|
2121
|
+
fill: theme2.palette.text.disabled
|
|
2098
2122
|
},
|
|
2099
2123
|
".MuiAvatar-root": {
|
|
2100
|
-
color:
|
|
2101
|
-
backgroundColor:
|
|
2124
|
+
color: theme2.palette.text.disabled,
|
|
2125
|
+
backgroundColor: theme2.palette.action.disabledBackground
|
|
2102
2126
|
}
|
|
2103
2127
|
},
|
|
2104
2128
|
"& > .MuiSvgIcon-root": {
|
|
2105
|
-
marginRight:
|
|
2129
|
+
marginRight: theme2.spacing(1)
|
|
2106
2130
|
},
|
|
2107
2131
|
".MuiMenu-paper-sizeSmall &": {
|
|
2108
|
-
paddingLeft:
|
|
2109
|
-
paddingRight:
|
|
2132
|
+
paddingLeft: theme2.spacing(1.5),
|
|
2133
|
+
paddingRight: theme2.spacing(1.5)
|
|
2110
2134
|
}
|
|
2111
2135
|
}),
|
|
2112
|
-
dense: ({ theme:
|
|
2113
|
-
minHeight:
|
|
2136
|
+
dense: ({ theme: theme2 }) => ({
|
|
2137
|
+
minHeight: theme2.spacing(3),
|
|
2114
2138
|
paddingTop: 0,
|
|
2115
2139
|
paddingBottom: 0,
|
|
2116
2140
|
".MuiTypography-root": {
|
|
2117
|
-
...
|
|
2141
|
+
...theme2.typography.caption,
|
|
2118
2142
|
fontWeight: 500
|
|
2119
2143
|
},
|
|
2120
|
-
[
|
|
2144
|
+
[theme2.breakpoints.up("sm")]: {
|
|
2121
2145
|
// Overrides an unwanted Mui default style
|
|
2122
2146
|
"&.MuiButtonBase-root": {
|
|
2123
|
-
minHeight:
|
|
2147
|
+
minHeight: theme2.spacing(3)
|
|
2124
2148
|
}
|
|
2125
2149
|
}
|
|
2126
2150
|
})
|
|
@@ -2129,12 +2153,12 @@ const io = 1, b = 0.5, y = io + b, bo = "M12 5.9c1.16 0 2.1.94 2.1 2.1s-.94 2.1-
|
|
|
2129
2153
|
// List
|
|
2130
2154
|
MuiList: {
|
|
2131
2155
|
styleOverrides: {
|
|
2132
|
-
root: ({ theme:
|
|
2156
|
+
root: ({ theme: theme2 }) => ({
|
|
2133
2157
|
paddingTop: 0,
|
|
2134
2158
|
".MuiPopover-root &, .MuiPopper-root &, .base-Popper-root &": {
|
|
2135
|
-
minWidth:
|
|
2159
|
+
minWidth: theme2.spacing(8),
|
|
2136
2160
|
// 64px, defined by design
|
|
2137
|
-
maxHeight:
|
|
2161
|
+
maxHeight: theme2.spacing(39),
|
|
2138
2162
|
// 312px, defined by design
|
|
2139
2163
|
overflowY: "auto",
|
|
2140
2164
|
"&:focus-visible": {
|
|
@@ -2143,26 +2167,26 @@ const io = 1, b = 0.5, y = io + b, bo = "M12 5.9c1.16 0 2.1.94 2.1 2.1s-.94 2.1-
|
|
|
2143
2167
|
}
|
|
2144
2168
|
},
|
|
2145
2169
|
".MuiDivider-root": {
|
|
2146
|
-
margin:
|
|
2170
|
+
margin: theme2.spacing(1, 0)
|
|
2147
2171
|
},
|
|
2148
2172
|
// Indent sublevels, ugly but needed to avoid issues with hover
|
|
2149
2173
|
"& .MuiList-root": {
|
|
2150
2174
|
paddingTop: 0,
|
|
2151
2175
|
paddingBottom: 0,
|
|
2152
2176
|
"& .MuiListItem-root": {
|
|
2153
|
-
paddingLeft:
|
|
2177
|
+
paddingLeft: theme2.spacing(4)
|
|
2154
2178
|
},
|
|
2155
2179
|
"& .MuiList-root": {
|
|
2156
2180
|
"& .MuiListItem-root": {
|
|
2157
|
-
paddingLeft:
|
|
2181
|
+
paddingLeft: theme2.spacing(6)
|
|
2158
2182
|
},
|
|
2159
2183
|
"& .MuiList-root": {
|
|
2160
2184
|
"& .MuiListItem-root": {
|
|
2161
|
-
paddingLeft:
|
|
2185
|
+
paddingLeft: theme2.spacing(8)
|
|
2162
2186
|
},
|
|
2163
2187
|
"& .MuiList-root": {
|
|
2164
2188
|
"& .MuiListItem-root": {
|
|
2165
|
-
paddingLeft:
|
|
2189
|
+
paddingLeft: theme2.spacing(10)
|
|
2166
2190
|
}
|
|
2167
2191
|
}
|
|
2168
2192
|
}
|
|
@@ -2181,44 +2205,44 @@ const io = 1, b = 0.5, y = io + b, bo = "M12 5.9c1.16 0 2.1.94 2.1 2.1s-.94 2.1-
|
|
|
2181
2205
|
defaultProps: {
|
|
2182
2206
|
primaryTypographyProps: {
|
|
2183
2207
|
variant: "body2",
|
|
2184
|
-
noWrap:
|
|
2208
|
+
noWrap: true,
|
|
2185
2209
|
component: "span"
|
|
2186
2210
|
},
|
|
2187
2211
|
secondaryTypographyProps: { variant: "caption" }
|
|
2188
2212
|
},
|
|
2189
2213
|
styleOverrides: {
|
|
2190
|
-
root: ({ theme:
|
|
2191
|
-
paddingRight:
|
|
2214
|
+
root: ({ theme: theme2 }) => ({
|
|
2215
|
+
paddingRight: theme2.spacing(2),
|
|
2192
2216
|
"& + .MuiBox-root": {
|
|
2193
|
-
marginRight:
|
|
2217
|
+
marginRight: theme2.spacing(1)
|
|
2194
2218
|
}
|
|
2195
2219
|
})
|
|
2196
2220
|
}
|
|
2197
2221
|
},
|
|
2198
2222
|
MuiListItemIcon: {
|
|
2199
2223
|
styleOverrides: {
|
|
2200
|
-
root: ({ theme:
|
|
2224
|
+
root: ({ theme: theme2 }) => ({
|
|
2201
2225
|
display: "flex",
|
|
2202
2226
|
alignItems: "center",
|
|
2203
|
-
gap:
|
|
2227
|
+
gap: theme2.spacing(2),
|
|
2204
2228
|
"& .MuiSvgIcon-root": {
|
|
2205
|
-
fontSize:
|
|
2229
|
+
fontSize: ICON_SIZE_LARGE
|
|
2206
2230
|
},
|
|
2207
2231
|
".MuiMenuItem-root.MuiButtonBase-root &": {
|
|
2208
|
-
minWidth:
|
|
2232
|
+
minWidth: ICON_SIZE_MEDIUM
|
|
2209
2233
|
}
|
|
2210
2234
|
})
|
|
2211
2235
|
}
|
|
2212
2236
|
},
|
|
2213
2237
|
MuiListItemAvatar: {
|
|
2214
2238
|
styleOverrides: {
|
|
2215
|
-
root: ({ theme:
|
|
2239
|
+
root: ({ theme: theme2 }) => ({
|
|
2216
2240
|
"& .MuiAvatar-root": {
|
|
2217
|
-
height:
|
|
2218
|
-
width:
|
|
2241
|
+
height: theme2.spacing(4),
|
|
2242
|
+
width: theme2.spacing(4)
|
|
2219
2243
|
},
|
|
2220
2244
|
"& .MuiSvgIcon-root": {
|
|
2221
|
-
fontSize:
|
|
2245
|
+
fontSize: ICON_SIZE_MEDIUM
|
|
2222
2246
|
}
|
|
2223
2247
|
})
|
|
2224
2248
|
}
|
|
@@ -2226,9 +2250,9 @@ const io = 1, b = 0.5, y = io + b, bo = "M12 5.9c1.16 0 2.1.94 2.1 2.1s-.94 2.1-
|
|
|
2226
2250
|
// Tabs
|
|
2227
2251
|
MuiTabs: {
|
|
2228
2252
|
styleOverrides: {
|
|
2229
|
-
root: ({ theme:
|
|
2253
|
+
root: ({ theme: theme2 }) => ({
|
|
2230
2254
|
boxSizing: "content-box",
|
|
2231
|
-
boxShadow: `0 1px 0 0 ${
|
|
2255
|
+
boxShadow: `0 1px 0 0 ${theme2.palette.black[12]}`
|
|
2232
2256
|
}),
|
|
2233
2257
|
vertical: () => ({
|
|
2234
2258
|
borderBottom: 0
|
|
@@ -2241,27 +2265,27 @@ const io = 1, b = 0.5, y = io + b, bo = "M12 5.9c1.16 0 2.1.94 2.1 2.1s-.94 2.1-
|
|
|
2241
2265
|
iconPosition: "start"
|
|
2242
2266
|
},
|
|
2243
2267
|
styleOverrides: {
|
|
2244
|
-
root: ({ theme:
|
|
2245
|
-
minHeight:
|
|
2246
|
-
minWidth:
|
|
2247
|
-
padding:
|
|
2268
|
+
root: ({ theme: theme2 }) => ({
|
|
2269
|
+
minHeight: theme2.spacing(6),
|
|
2270
|
+
minWidth: theme2.spacing(6),
|
|
2271
|
+
padding: theme2.spacing(0, 2),
|
|
2248
2272
|
paddingTop: "2px",
|
|
2249
2273
|
borderBottom: "2px solid transparent",
|
|
2250
|
-
...
|
|
2251
|
-
color:
|
|
2274
|
+
...theme2.typography.subtitle2,
|
|
2275
|
+
color: theme2.palette.text.primary,
|
|
2252
2276
|
transition: "border 300ms cubic-bezier(0.4, 0, 0.2, 1)",
|
|
2253
2277
|
"&:hover": {
|
|
2254
|
-
borderBottomColor:
|
|
2278
|
+
borderBottomColor: theme2.palette.text.primary
|
|
2255
2279
|
},
|
|
2256
2280
|
"&:focus-visible": {
|
|
2257
|
-
outline:
|
|
2258
|
-
boxShadow: `inset 0 0 0 2px ${
|
|
2259
|
-
borderRadius: `${
|
|
2281
|
+
outline: `none !important`,
|
|
2282
|
+
boxShadow: `inset 0 0 0 2px ${theme2.palette.primary.main} !important`,
|
|
2283
|
+
borderRadius: `${theme2.shape.borderRadius}px ${theme2.shape.borderRadius}px 0 0`
|
|
2260
2284
|
},
|
|
2261
2285
|
"&.Mui-selected": {
|
|
2262
2286
|
pointerEvents: "none",
|
|
2263
2287
|
"& svg:not(.doNotFillIcon) path": {
|
|
2264
|
-
fill:
|
|
2288
|
+
fill: theme2.palette.primary.main
|
|
2265
2289
|
}
|
|
2266
2290
|
},
|
|
2267
2291
|
".MuiTabs-vertical &": {
|
|
@@ -2270,7 +2294,7 @@ const io = 1, b = 0.5, y = io + b, bo = "M12 5.9c1.16 0 2.1.94 2.1 2.1s-.94 2.1-
|
|
|
2270
2294
|
paddingLeft: "2px",
|
|
2271
2295
|
borderRight: "2px solid transparent",
|
|
2272
2296
|
"&:hover": {
|
|
2273
|
-
borderRightColor:
|
|
2297
|
+
borderRightColor: theme2.palette.text.primary
|
|
2274
2298
|
}
|
|
2275
2299
|
}
|
|
2276
2300
|
}),
|
|
@@ -2282,21 +2306,21 @@ const io = 1, b = 0.5, y = io + b, bo = "M12 5.9c1.16 0 2.1.94 2.1 2.1s-.94 2.1-
|
|
|
2282
2306
|
// Breadcrumbs
|
|
2283
2307
|
MuiBreadcrumbs: {
|
|
2284
2308
|
styleOverrides: {
|
|
2285
|
-
li: ({ theme:
|
|
2309
|
+
li: ({ theme: theme2 }) => ({
|
|
2286
2310
|
"& .MuiTypography-root": {
|
|
2287
|
-
...
|
|
2311
|
+
...theme2.typography.body2,
|
|
2288
2312
|
display: "flex",
|
|
2289
2313
|
flexDirection: "row",
|
|
2290
2314
|
alignItems: "center"
|
|
2291
2315
|
},
|
|
2292
2316
|
"& .MuiSvgIcon-root": {
|
|
2293
|
-
fontSize:
|
|
2294
|
-
marginRight:
|
|
2317
|
+
fontSize: ICON_SIZE_MEDIUM,
|
|
2318
|
+
marginRight: theme2.spacing(1)
|
|
2295
2319
|
}
|
|
2296
2320
|
}),
|
|
2297
|
-
separator: ({ theme:
|
|
2298
|
-
marginLeft:
|
|
2299
|
-
marginRight:
|
|
2321
|
+
separator: ({ theme: theme2 }) => ({
|
|
2322
|
+
marginLeft: theme2.spacing(0.5),
|
|
2323
|
+
marginRight: theme2.spacing(0.5)
|
|
2300
2324
|
})
|
|
2301
2325
|
}
|
|
2302
2326
|
},
|
|
@@ -2311,7 +2335,10 @@ const io = 1, b = 0.5, y = io + b, bo = "M12 5.9c1.16 0 2.1.94 2.1 2.1s-.94 2.1-
|
|
|
2311
2335
|
})
|
|
2312
2336
|
}
|
|
2313
2337
|
}
|
|
2314
|
-
}
|
|
2338
|
+
};
|
|
2339
|
+
const calendarSize = 35;
|
|
2340
|
+
const dropdownHeight = 39.5;
|
|
2341
|
+
const datePickersOverrides = {
|
|
2315
2342
|
// https://mui.com/x/react-date-pickers/date-picker/#customization
|
|
2316
2343
|
MuiDatePicker: {
|
|
2317
2344
|
defaultProps: {
|
|
@@ -2319,57 +2346,57 @@ const io = 1, b = 0.5, y = io + b, bo = "M12 5.9c1.16 0 2.1.94 2.1 2.1s-.94 2.1-
|
|
|
2319
2346
|
popper: { placement: "bottom-end" },
|
|
2320
2347
|
textField: {
|
|
2321
2348
|
InputLabelProps: {
|
|
2322
|
-
shrink:
|
|
2349
|
+
shrink: true
|
|
2323
2350
|
}
|
|
2324
2351
|
}
|
|
2325
2352
|
},
|
|
2326
2353
|
slots: {
|
|
2327
|
-
openPickerIcon:
|
|
2328
|
-
clearIcon:
|
|
2354
|
+
openPickerIcon: EventOutlined,
|
|
2355
|
+
clearIcon: Cancel
|
|
2329
2356
|
}
|
|
2330
2357
|
}
|
|
2331
2358
|
},
|
|
2332
2359
|
MuiDateCalendar: {
|
|
2333
2360
|
defaultProps: {
|
|
2334
|
-
dayOfWeekFormatter: (
|
|
2361
|
+
dayOfWeekFormatter: (weekday) => `${weekday.toLocaleDateString("en-US", { weekday: "short" })}`,
|
|
2335
2362
|
slots: {
|
|
2336
|
-
rightArrowIcon:
|
|
2337
|
-
leftArrowIcon:
|
|
2338
|
-
switchViewIcon:
|
|
2363
|
+
rightArrowIcon: ChevronRightOutlined,
|
|
2364
|
+
leftArrowIcon: ChevronLeftOutlined,
|
|
2365
|
+
switchViewIcon: ExpandMoreOutlined
|
|
2339
2366
|
}
|
|
2340
2367
|
},
|
|
2341
2368
|
styleOverrides: {
|
|
2342
|
-
root: ({ ownerState
|
|
2343
|
-
var
|
|
2369
|
+
root: ({ ownerState, theme: theme2 }) => {
|
|
2370
|
+
var _a2, _b2, _c2, _d2, _e2, _f2, _g2, _h2, _i;
|
|
2344
2371
|
return {
|
|
2345
|
-
width:
|
|
2346
|
-
height:
|
|
2347
|
-
maxHeight:
|
|
2372
|
+
width: theme2.spacing(calendarSize),
|
|
2373
|
+
height: theme2.spacing(dropdownHeight),
|
|
2374
|
+
maxHeight: theme2.spacing(dropdownHeight),
|
|
2348
2375
|
// Year only view
|
|
2349
|
-
...((
|
|
2350
|
-
height:
|
|
2376
|
+
...((_a2 = ownerState.views) == null ? void 0 : _a2.includes("year")) && !((_b2 = ownerState.views) == null ? void 0 : _b2.includes("month")) && !((_c2 = ownerState.views) == null ? void 0 : _c2.includes("day")) && {
|
|
2377
|
+
height: theme2.spacing(33.5),
|
|
2351
2378
|
// 268px
|
|
2352
|
-
maxHeight:
|
|
2379
|
+
maxHeight: theme2.spacing(33.5)
|
|
2353
2380
|
},
|
|
2354
2381
|
// Month only view
|
|
2355
|
-
...((
|
|
2356
|
-
height:
|
|
2382
|
+
...((_d2 = ownerState.views) == null ? void 0 : _d2.includes("month")) && !((_e2 = ownerState.views) == null ? void 0 : _e2.includes("year")) && !((_f2 = ownerState.views) == null ? void 0 : _f2.includes("day")) && {
|
|
2383
|
+
height: theme2.spacing(29),
|
|
2357
2384
|
// 232px
|
|
2358
|
-
maxHeight:
|
|
2385
|
+
maxHeight: theme2.spacing(29),
|
|
2359
2386
|
"& .MuiPickersCalendarHeader-labelContainer": {
|
|
2360
2387
|
cursor: "default"
|
|
2361
2388
|
}
|
|
2362
2389
|
},
|
|
2363
2390
|
// Day only view
|
|
2364
|
-
...((
|
|
2391
|
+
...((_g2 = ownerState.views) == null ? void 0 : _g2.includes("day")) && !((_h2 = ownerState.views) == null ? void 0 : _h2.includes("year")) && !((_i = ownerState.views) == null ? void 0 : _i.includes("month")) && {
|
|
2365
2392
|
"& .MuiPickersCalendarHeader-labelContainer": {
|
|
2366
2393
|
cursor: "default"
|
|
2367
2394
|
}
|
|
2368
2395
|
},
|
|
2369
2396
|
"& .MuiYearCalendar-root, & .MuiMonthCalendar-root": {
|
|
2370
|
-
gap:
|
|
2371
|
-
width:
|
|
2372
|
-
padding:
|
|
2397
|
+
gap: theme2.spacing(0.5),
|
|
2398
|
+
width: theme2.spacing(calendarSize),
|
|
2399
|
+
padding: theme2.spacing(1, 2)
|
|
2373
2400
|
},
|
|
2374
2401
|
"& .MuiPickersYear-root": {
|
|
2375
2402
|
flexBasis: "22.5%"
|
|
@@ -2379,30 +2406,30 @@ const io = 1, b = 0.5, y = io + b, bo = "M12 5.9c1.16 0 2.1.94 2.1 2.1s-.94 2.1-
|
|
|
2379
2406
|
},
|
|
2380
2407
|
"& .MuiPickersYear-yearButton, & .MuiPickersMonth-monthButton, & .MuiPickersDay-root": {
|
|
2381
2408
|
width: "100%",
|
|
2382
|
-
height:
|
|
2409
|
+
height: theme2.spacing(4),
|
|
2383
2410
|
margin: 0,
|
|
2384
2411
|
padding: 0,
|
|
2385
|
-
...
|
|
2386
|
-
borderRadius:
|
|
2412
|
+
...theme2.typography.button,
|
|
2413
|
+
borderRadius: theme2.shape.borderRadius,
|
|
2387
2414
|
"&:hover": {
|
|
2388
|
-
backgroundColor:
|
|
2415
|
+
backgroundColor: theme2.palette.action.hover
|
|
2389
2416
|
},
|
|
2390
2417
|
"&.Mui-selected": {
|
|
2391
|
-
backgroundColor:
|
|
2392
|
-
color:
|
|
2418
|
+
backgroundColor: theme2.palette.primary.background,
|
|
2419
|
+
color: theme2.palette.primary.main,
|
|
2393
2420
|
"&:focus": {
|
|
2394
|
-
backgroundColor:
|
|
2421
|
+
backgroundColor: theme2.palette.primary.background
|
|
2395
2422
|
},
|
|
2396
2423
|
"&:hover": {
|
|
2397
|
-
backgroundColor:
|
|
2424
|
+
backgroundColor: theme2.palette.action.hover
|
|
2398
2425
|
}
|
|
2399
2426
|
},
|
|
2400
2427
|
"&.Mui-disabled": {
|
|
2401
|
-
color:
|
|
2428
|
+
color: theme2.palette.text.disabled
|
|
2402
2429
|
}
|
|
2403
2430
|
},
|
|
2404
2431
|
"& .MuiPickersDay-root": {
|
|
2405
|
-
margin:
|
|
2432
|
+
margin: theme2.spacing(0.25)
|
|
2406
2433
|
}
|
|
2407
2434
|
};
|
|
2408
2435
|
}
|
|
@@ -2410,91 +2437,91 @@ const io = 1, b = 0.5, y = io + b, bo = "M12 5.9c1.16 0 2.1.94 2.1 2.1s-.94 2.1-
|
|
|
2410
2437
|
},
|
|
2411
2438
|
MuiPickersPopper: {
|
|
2412
2439
|
styleOverrides: {
|
|
2413
|
-
paper: ({ theme:
|
|
2414
|
-
marginBottom:
|
|
2440
|
+
paper: ({ theme: theme2 }) => ({
|
|
2441
|
+
marginBottom: theme2.spacing(0.5)
|
|
2415
2442
|
})
|
|
2416
2443
|
}
|
|
2417
2444
|
},
|
|
2418
2445
|
MuiYearCalendar: {
|
|
2419
2446
|
styleOverrides: {
|
|
2420
|
-
root: ({ theme:
|
|
2421
|
-
maxHeight:
|
|
2447
|
+
root: ({ theme: theme2 }) => ({
|
|
2448
|
+
maxHeight: theme2.spacing(33.5)
|
|
2422
2449
|
// 268px
|
|
2423
2450
|
})
|
|
2424
2451
|
}
|
|
2425
2452
|
},
|
|
2426
2453
|
MuiPickersCalendarHeader: {
|
|
2427
2454
|
styleOverrides: {
|
|
2428
|
-
root: ({ theme:
|
|
2429
|
-
maxHeight:
|
|
2430
|
-
minHeight:
|
|
2455
|
+
root: ({ theme: theme2 }) => ({
|
|
2456
|
+
maxHeight: theme2.spacing(4),
|
|
2457
|
+
minHeight: theme2.spacing(4),
|
|
2431
2458
|
margin: 0,
|
|
2432
|
-
padding:
|
|
2459
|
+
padding: theme2.spacing(1, 1, 1, 2),
|
|
2433
2460
|
boxSizing: "content-box",
|
|
2434
2461
|
"& .MuiIconButton-root": {
|
|
2435
|
-
borderRadius:
|
|
2462
|
+
borderRadius: theme2.shape.borderRadius
|
|
2436
2463
|
},
|
|
2437
2464
|
"& .MuiPickersArrowSwitcher-spacer": {
|
|
2438
|
-
width:
|
|
2465
|
+
width: theme2.spacing(4)
|
|
2439
2466
|
}
|
|
2440
2467
|
}),
|
|
2441
|
-
label: ({ theme:
|
|
2442
|
-
...
|
|
2468
|
+
label: ({ theme: theme2 }) => ({
|
|
2469
|
+
...theme2.typography.subtitle2
|
|
2443
2470
|
}),
|
|
2444
|
-
switchViewButton: ({ theme:
|
|
2445
|
-
width:
|
|
2446
|
-
height:
|
|
2471
|
+
switchViewButton: ({ theme: theme2 }) => ({
|
|
2472
|
+
width: theme2.spacing(4),
|
|
2473
|
+
height: theme2.spacing(4)
|
|
2447
2474
|
})
|
|
2448
2475
|
}
|
|
2449
2476
|
},
|
|
2450
2477
|
MuiDayCalendar: {
|
|
2451
2478
|
styleOverrides: {
|
|
2452
|
-
header: ({ theme:
|
|
2453
|
-
margin:
|
|
2479
|
+
header: ({ theme: theme2 }) => ({
|
|
2480
|
+
margin: theme2.spacing(0, 2)
|
|
2454
2481
|
}),
|
|
2455
2482
|
weekContainer: () => ({
|
|
2456
2483
|
margin: 0
|
|
2457
2484
|
}),
|
|
2458
|
-
weekDayLabel: ({ theme:
|
|
2485
|
+
weekDayLabel: ({ theme: theme2 }) => ({
|
|
2459
2486
|
flex: 1,
|
|
2460
|
-
...
|
|
2461
|
-
fontWeight:
|
|
2462
|
-
color:
|
|
2487
|
+
...theme2.typography.caption,
|
|
2488
|
+
fontWeight: theme2.typography.fontWeightRegular,
|
|
2489
|
+
color: theme2.palette.text.secondary
|
|
2463
2490
|
})
|
|
2464
2491
|
}
|
|
2465
2492
|
},
|
|
2466
2493
|
MuiPickersDay: {
|
|
2467
2494
|
styleOverrides: {
|
|
2468
|
-
root: ({ theme:
|
|
2469
|
-
width: `${
|
|
2470
|
-
height:
|
|
2495
|
+
root: ({ theme: theme2 }) => ({
|
|
2496
|
+
width: `${theme2.spacing(4)} !important`,
|
|
2497
|
+
height: theme2.spacing(4),
|
|
2471
2498
|
"&:focus": {
|
|
2472
2499
|
backgroundColor: "transparent"
|
|
2473
2500
|
}
|
|
2474
2501
|
}),
|
|
2475
|
-
today: ({ theme:
|
|
2476
|
-
border: `1px solid ${
|
|
2502
|
+
today: ({ theme: theme2 }) => ({
|
|
2503
|
+
border: `1px solid ${theme2.palette.default.outlinedBorder}`,
|
|
2477
2504
|
"&:hover, &:selected": {
|
|
2478
|
-
borderColor:
|
|
2505
|
+
borderColor: theme2.palette.primary.light
|
|
2479
2506
|
},
|
|
2480
2507
|
"&:not(.Mui-selected)": {
|
|
2481
|
-
borderColor:
|
|
2508
|
+
borderColor: theme2.palette.default.outlinedBorder
|
|
2482
2509
|
},
|
|
2483
2510
|
"&.Mui-selected": {
|
|
2484
|
-
borderColor:
|
|
2511
|
+
borderColor: theme2.palette.primary.light,
|
|
2485
2512
|
"&:focus": {
|
|
2486
|
-
borderColor:
|
|
2513
|
+
borderColor: theme2.palette.primary.light
|
|
2487
2514
|
}
|
|
2488
2515
|
},
|
|
2489
2516
|
"&.Mui-disabled": {
|
|
2490
|
-
color:
|
|
2491
|
-
borderColor:
|
|
2517
|
+
color: theme2.palette.text.disabled,
|
|
2518
|
+
borderColor: theme2.palette.default.outlinedBorder,
|
|
2492
2519
|
backgroundColor: "transparent",
|
|
2493
2520
|
"&.Mui-selected": {
|
|
2494
2521
|
opacity: "1 !important",
|
|
2495
|
-
color:
|
|
2522
|
+
color: theme2.palette.text.disabled,
|
|
2496
2523
|
backgroundColor: "transparent",
|
|
2497
|
-
borderColor:
|
|
2524
|
+
borderColor: theme2.palette.default.outlinedBorder
|
|
2498
2525
|
}
|
|
2499
2526
|
}
|
|
2500
2527
|
})
|
|
@@ -2504,9 +2531,9 @@ const io = 1, b = 0.5, y = io + b, bo = "M12 5.9c1.16 0 2.1.94 2.1 2.1s-.94 2.1-
|
|
|
2504
2531
|
defaultProps: {
|
|
2505
2532
|
views: ["hours"],
|
|
2506
2533
|
format: "hh:mm a",
|
|
2507
|
-
ampm:
|
|
2534
|
+
ampm: true,
|
|
2508
2535
|
viewRenderers: {
|
|
2509
|
-
hours:
|
|
2536
|
+
hours: renderDigitalClockTimeView
|
|
2510
2537
|
},
|
|
2511
2538
|
timeSteps: { minutes: 30 },
|
|
2512
2539
|
slotProps: {
|
|
@@ -2514,8 +2541,10 @@ const io = 1, b = 0.5, y = io + b, bo = "M12 5.9c1.16 0 2.1.94 2.1 2.1s-.94 2.1-
|
|
|
2514
2541
|
// Remove ok button at bottom
|
|
2515
2542
|
},
|
|
2516
2543
|
slots: {
|
|
2517
|
-
clearIcon:
|
|
2518
|
-
digitalClockItem: (
|
|
2544
|
+
clearIcon: Cancel,
|
|
2545
|
+
digitalClockItem: (props) => {
|
|
2546
|
+
return /* @__PURE__ */ jsx(MenuItem, { ...props, disableRipple: true });
|
|
2547
|
+
}
|
|
2519
2548
|
}
|
|
2520
2549
|
}
|
|
2521
2550
|
},
|
|
@@ -2523,9 +2552,9 @@ const io = 1, b = 0.5, y = io + b, bo = "M12 5.9c1.16 0 2.1.94 2.1 2.1s-.94 2.1-
|
|
|
2523
2552
|
defaultProps: {
|
|
2524
2553
|
views: ["year", "month", "day", "hours"],
|
|
2525
2554
|
format: "MM/dd/yyyy hh:mm a",
|
|
2526
|
-
ampm:
|
|
2555
|
+
ampm: true,
|
|
2527
2556
|
viewRenderers: {
|
|
2528
|
-
hours:
|
|
2557
|
+
hours: renderDigitalClockTimeView
|
|
2529
2558
|
},
|
|
2530
2559
|
timeSteps: { minutes: 30 },
|
|
2531
2560
|
slotProps: {
|
|
@@ -2536,35 +2565,39 @@ const io = 1, b = 0.5, y = io + b, bo = "M12 5.9c1.16 0 2.1.94 2.1 2.1s-.94 2.1-
|
|
|
2536
2565
|
// Remove ok button at bottom
|
|
2537
2566
|
},
|
|
2538
2567
|
slots: {
|
|
2539
|
-
openPickerIcon:
|
|
2540
|
-
clearIcon:
|
|
2541
|
-
digitalClockItem: (
|
|
2568
|
+
openPickerIcon: EventOutlined,
|
|
2569
|
+
clearIcon: Cancel,
|
|
2570
|
+
digitalClockItem: (props) => {
|
|
2571
|
+
return /* @__PURE__ */ jsx(MenuItem, { ...props, disableRipple: true });
|
|
2572
|
+
}
|
|
2542
2573
|
}
|
|
2543
2574
|
}
|
|
2544
2575
|
},
|
|
2545
2576
|
MuiDigitalClock: {
|
|
2546
2577
|
defaultProps: {
|
|
2547
2578
|
timeStep: 30,
|
|
2548
|
-
ampm:
|
|
2579
|
+
ampm: true
|
|
2549
2580
|
},
|
|
2550
2581
|
styleOverrides: {
|
|
2551
|
-
root: ({ theme:
|
|
2552
|
-
minWidth:
|
|
2582
|
+
root: ({ theme: theme2 }) => ({
|
|
2583
|
+
minWidth: theme2.spacing(15)
|
|
2553
2584
|
// 120px defined in design specs
|
|
2554
2585
|
}),
|
|
2555
|
-
list: ({ theme:
|
|
2586
|
+
list: ({ theme: theme2 }) => ({
|
|
2556
2587
|
".MuiPopper-root &": {
|
|
2557
|
-
maxHeight:
|
|
2558
|
-
paddingBottom:
|
|
2588
|
+
maxHeight: theme2.spacing(dropdownHeight),
|
|
2589
|
+
paddingBottom: theme2.spacing(1)
|
|
2559
2590
|
}
|
|
2560
2591
|
})
|
|
2561
2592
|
}
|
|
2562
2593
|
}
|
|
2563
2594
|
};
|
|
2564
|
-
function
|
|
2565
|
-
|
|
2595
|
+
function getPixelToRem(px) {
|
|
2596
|
+
const fontBase = 16;
|
|
2597
|
+
const rem = 1 / fontBase * px + "rem";
|
|
2598
|
+
return rem;
|
|
2566
2599
|
}
|
|
2567
|
-
const
|
|
2600
|
+
const baseTypography = {
|
|
2568
2601
|
htmlFontSize: 16,
|
|
2569
2602
|
fontFamily: "Inter, sans-serif",
|
|
2570
2603
|
fontSize: 16,
|
|
@@ -2577,77 +2610,77 @@ const k = {
|
|
|
2577
2610
|
h1: {
|
|
2578
2611
|
fontFamily: "Inter, sans-serif",
|
|
2579
2612
|
fontWeight: 600,
|
|
2580
|
-
fontSize:
|
|
2613
|
+
fontSize: getPixelToRem(96),
|
|
2581
2614
|
lineHeight: 1.167,
|
|
2582
2615
|
letterSpacing: "-1.5px"
|
|
2583
2616
|
},
|
|
2584
2617
|
h2: {
|
|
2585
2618
|
fontFamily: "Inter, sans-serif",
|
|
2586
2619
|
fontWeight: 600,
|
|
2587
|
-
fontSize:
|
|
2620
|
+
fontSize: getPixelToRem(60),
|
|
2588
2621
|
lineHeight: 1.2,
|
|
2589
2622
|
letterSpacing: "-0.5px"
|
|
2590
2623
|
},
|
|
2591
2624
|
h3: {
|
|
2592
2625
|
fontFamily: "Inter, sans-serif",
|
|
2593
2626
|
fontWeight: 600,
|
|
2594
|
-
fontSize:
|
|
2627
|
+
fontSize: getPixelToRem(48),
|
|
2595
2628
|
lineHeight: 1.167,
|
|
2596
2629
|
letterSpacing: 0
|
|
2597
2630
|
},
|
|
2598
2631
|
h4: {
|
|
2599
2632
|
fontFamily: "Inter, sans-serif",
|
|
2600
2633
|
fontWeight: 600,
|
|
2601
|
-
fontSize:
|
|
2634
|
+
fontSize: getPixelToRem(32),
|
|
2602
2635
|
lineHeight: 1.25,
|
|
2603
2636
|
letterSpacing: 0
|
|
2604
2637
|
},
|
|
2605
2638
|
h5: {
|
|
2606
2639
|
fontFamily: "Inter, sans-serif",
|
|
2607
2640
|
fontWeight: 600,
|
|
2608
|
-
fontSize:
|
|
2641
|
+
fontSize: getPixelToRem(24),
|
|
2609
2642
|
lineHeight: 1.167,
|
|
2610
2643
|
letterSpacing: 0
|
|
2611
2644
|
},
|
|
2612
2645
|
h6: {
|
|
2613
2646
|
fontFamily: "Inter, sans-serif",
|
|
2614
2647
|
fontWeight: 500,
|
|
2615
|
-
fontSize:
|
|
2648
|
+
fontSize: getPixelToRem(18),
|
|
2616
2649
|
lineHeight: 1.333,
|
|
2617
2650
|
letterSpacing: 0
|
|
2618
2651
|
},
|
|
2619
2652
|
subtitle1: {
|
|
2620
2653
|
fontFamily: "Inter, sans-serif",
|
|
2621
2654
|
fontWeight: 500,
|
|
2622
|
-
fontSize:
|
|
2655
|
+
fontSize: getPixelToRem(16),
|
|
2623
2656
|
lineHeight: 1.5,
|
|
2624
2657
|
letterSpacing: 0
|
|
2625
2658
|
},
|
|
2626
2659
|
subtitle2: {
|
|
2627
2660
|
fontFamily: "Inter, sans-serif",
|
|
2628
2661
|
fontWeight: 600,
|
|
2629
|
-
fontSize:
|
|
2662
|
+
fontSize: getPixelToRem(13),
|
|
2630
2663
|
lineHeight: 1.538,
|
|
2631
2664
|
letterSpacing: 0
|
|
2632
2665
|
},
|
|
2633
2666
|
body1: {
|
|
2634
2667
|
fontFamily: "Inter, sans-serif",
|
|
2635
2668
|
fontWeight: 400,
|
|
2636
|
-
fontSize:
|
|
2669
|
+
fontSize: getPixelToRem(16),
|
|
2637
2670
|
lineHeight: 1.5,
|
|
2638
2671
|
letterSpacing: 0
|
|
2639
2672
|
},
|
|
2640
2673
|
body2: {
|
|
2641
2674
|
fontFamily: "Inter, sans-serif",
|
|
2642
2675
|
fontWeight: 400,
|
|
2643
|
-
fontSize:
|
|
2676
|
+
fontSize: getPixelToRem(13),
|
|
2644
2677
|
lineHeight: 1.538,
|
|
2645
2678
|
letterSpacing: 0
|
|
2646
2679
|
},
|
|
2647
2680
|
button: {
|
|
2648
2681
|
fontFamily: "Inter, sans-serif",
|
|
2649
2682
|
fontWeight: 500,
|
|
2650
|
-
fontSize:
|
|
2683
|
+
fontSize: getPixelToRem(13),
|
|
2651
2684
|
lineHeight: 1.538,
|
|
2652
2685
|
letterSpacing: 0,
|
|
2653
2686
|
textTransform: "inherit"
|
|
@@ -2655,33 +2688,34 @@ const k = {
|
|
|
2655
2688
|
caption: {
|
|
2656
2689
|
fontFamily: "Inter, sans-serif",
|
|
2657
2690
|
fontWeight: 400,
|
|
2658
|
-
fontSize:
|
|
2691
|
+
fontSize: getPixelToRem(11),
|
|
2659
2692
|
lineHeight: 1.454,
|
|
2660
2693
|
letterSpacing: 0
|
|
2661
2694
|
},
|
|
2662
2695
|
overline: {
|
|
2663
2696
|
fontFamily: "Inter, sans-serif",
|
|
2664
2697
|
fontWeight: 500,
|
|
2665
|
-
fontSize:
|
|
2698
|
+
fontSize: getPixelToRem(10),
|
|
2666
2699
|
lineHeight: 1.2,
|
|
2667
2700
|
letterSpacing: "1.2px",
|
|
2668
2701
|
textTransform: "uppercase"
|
|
2669
2702
|
}
|
|
2670
|
-
}
|
|
2703
|
+
};
|
|
2704
|
+
const customTypography = {
|
|
2671
2705
|
captionMedium: {
|
|
2672
|
-
...
|
|
2706
|
+
...baseTypography.caption,
|
|
2673
2707
|
fontWeight: 500,
|
|
2674
2708
|
letterSpacing: 0
|
|
2675
2709
|
},
|
|
2676
2710
|
overlineDelicate: {
|
|
2677
|
-
...
|
|
2711
|
+
...baseTypography.overline,
|
|
2678
2712
|
fontWeight: 400,
|
|
2679
2713
|
letterSpacing: "1.2px"
|
|
2680
2714
|
},
|
|
2681
2715
|
code1: {
|
|
2682
2716
|
fontFamily: '"Overpass Mono", monospace',
|
|
2683
2717
|
fontWeight: 400,
|
|
2684
|
-
fontSize:
|
|
2718
|
+
fontSize: getPixelToRem(16),
|
|
2685
2719
|
lineHeight: 1.5,
|
|
2686
2720
|
letterSpacing: 0,
|
|
2687
2721
|
fontVariantLigatures: "no-common-ligatures"
|
|
@@ -2689,7 +2723,7 @@ const k = {
|
|
|
2689
2723
|
code2: {
|
|
2690
2724
|
fontFamily: '"Overpass Mono", monospace',
|
|
2691
2725
|
fontWeight: 400,
|
|
2692
|
-
fontSize:
|
|
2726
|
+
fontSize: getPixelToRem(14),
|
|
2693
2727
|
lineHeight: 1.428,
|
|
2694
2728
|
letterSpacing: 0,
|
|
2695
2729
|
fontVariantLigatures: "no-common-ligatures"
|
|
@@ -2697,21 +2731,21 @@ const k = {
|
|
|
2697
2731
|
code3: {
|
|
2698
2732
|
fontFamily: '"Overpass Mono", monospace',
|
|
2699
2733
|
fontWeight: 400,
|
|
2700
|
-
fontSize:
|
|
2734
|
+
fontSize: getPixelToRem(12),
|
|
2701
2735
|
lineHeight: 1.333,
|
|
2702
2736
|
letterSpacing: 0,
|
|
2703
2737
|
fontVariantLigatures: "no-common-ligatures"
|
|
2704
2738
|
}
|
|
2705
|
-
}, ro = {
|
|
2706
|
-
...k,
|
|
2707
|
-
...ho
|
|
2708
2739
|
};
|
|
2709
|
-
|
|
2710
|
-
|
|
2740
|
+
const themeTypography = {
|
|
2741
|
+
...baseTypography,
|
|
2742
|
+
...customTypography
|
|
2743
|
+
};
|
|
2744
|
+
const CssBaseline = {
|
|
2711
2745
|
// Accessibility focus (keyboard only)
|
|
2712
2746
|
"*:focus-visible": {
|
|
2713
|
-
outline: `2px solid ${(
|
|
2714
|
-
boxShadow: `0 0 0 4px ${(
|
|
2747
|
+
outline: `2px solid ${(_a = commonPalette.primary) == null ? void 0 : _a.main} !important`,
|
|
2748
|
+
boxShadow: `0 0 0 4px ${(_b = commonPalette.primary) == null ? void 0 : _b.background} !important`,
|
|
2715
2749
|
borderRadius: "4px"
|
|
2716
2750
|
},
|
|
2717
2751
|
// Custom scrollbars
|
|
@@ -2730,42 +2764,42 @@ const Co = {
|
|
|
2730
2764
|
},
|
|
2731
2765
|
"*::-webkit-scrollbar-thumb": {
|
|
2732
2766
|
borderRadius: "3px",
|
|
2733
|
-
background: (
|
|
2767
|
+
background: (_c = commonPalette.action) == null ? void 0 : _c.focus,
|
|
2734
2768
|
outline: "none"
|
|
2735
2769
|
},
|
|
2736
2770
|
// iOS Search clear button
|
|
2737
2771
|
'input[type="search"]::-webkit-search-cancel-button': {
|
|
2738
2772
|
WebkitAppearance: "none",
|
|
2739
2773
|
appearance: "none",
|
|
2740
|
-
height:
|
|
2741
|
-
width:
|
|
2774
|
+
height: getSpacing(2),
|
|
2775
|
+
width: getSpacing(2),
|
|
2742
2776
|
display: "block",
|
|
2743
|
-
backgroundImage:
|
|
2777
|
+
backgroundImage: `url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAB4AAAAeCAYAAAA7MK6iAAAAn0lEQVR42u3UMQrDMBBEUZ9WfQqDmm22EaTyjRMHAlM5K+Y7lb0wnUZPIKHlnutOa+25Z4D++MRBX98MD1V/trSppLKHqj9TTBWKcoUqffbUcbBBEhTjBOV4ja4l4OIAZThEOV6jHO8ARXD+gPPvKMABinGOrnu6gTNUawrcQKNCAQ7QeTxORzle3+sDfjJpPCqhJh7GixZq4rHcc9l5A9qZ+WeBhgEuAAAAAElFTkSuQmCC)`,
|
|
2744
2778
|
backgroundRepeat: "no-repeat",
|
|
2745
|
-
backgroundSize:
|
|
2779
|
+
backgroundSize: getSpacing(2)
|
|
2746
2780
|
},
|
|
2747
2781
|
// Mapbox controls
|
|
2748
2782
|
".mapboxgl-ctrl.mapboxgl-ctrl-attrib": {
|
|
2749
|
-
padding:
|
|
2750
|
-
borderRadius:
|
|
2783
|
+
padding: getSpacing(0, 1),
|
|
2784
|
+
borderRadius: getSpacing(0.5, 0, 0, 0),
|
|
2751
2785
|
"& .mapboxgl-ctrl-attrib-inner": {
|
|
2752
|
-
...
|
|
2786
|
+
...themeTypography.overline,
|
|
2753
2787
|
textTransform: "none",
|
|
2754
2788
|
letterSpacing: "0.75px",
|
|
2755
2789
|
"& a": {
|
|
2756
|
-
color: (
|
|
2790
|
+
color: (_d = commonPalette.primary) == null ? void 0 : _d.main
|
|
2757
2791
|
}
|
|
2758
2792
|
},
|
|
2759
2793
|
"&.mapboxgl-compact": {
|
|
2760
2794
|
backgroundColor: "transparent",
|
|
2761
|
-
right:
|
|
2762
|
-
bottom:
|
|
2795
|
+
right: getSpacing(0.5),
|
|
2796
|
+
bottom: getSpacing(2.5),
|
|
2763
2797
|
// Mobile
|
|
2764
2798
|
"@media (max-width: 600px)": {
|
|
2765
|
-
bottom:
|
|
2799
|
+
bottom: getSpacing(0.5)
|
|
2766
2800
|
},
|
|
2767
2801
|
"& .mapboxgl-ctrl-attrib-button": {
|
|
2768
|
-
backgroundImage: `url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20height='24'%20viewBox='0%200%2024%2024'%20width='24'%3E%3Cg%3E%3Crect%20fill='none'%20height='24'%20width='24'%20x='0'/%3E%3C/g%3E%3Cg%3E%3Cg%3E%3Cg%3E%3Cpath%20d='M11.88,9.14c1.28,0.06,1.61,1.15,1.63,1.66h1.79c-0.08-1.98-1.49-3.19-3.45-3.19C9.64,7.61,8,9,8,12.14%20c0,1.94,0.93,4.24,3.84,4.24c2.22,0,3.41-1.65,3.44-2.95h-1.79c-0.03,0.59-0.45,1.38-1.63,1.44C10.55,14.83,10,13.81,10,12.14%20C10,9.25,11.28,9.16,11.88,9.14z%20M12,2C6.48,2,2,6.48,2,12s4.48,10,10,10s10-4.48,10-10S17.52,2,12,2z%20M12,20c-4.41,0-8-3.59-8-8%20s3.59-8,8-8s8,3.59,8,8S16.41,20,12,20z'%20fill='${(
|
|
2802
|
+
backgroundImage: `url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20height='24'%20viewBox='0%200%2024%2024'%20width='24'%3E%3Cg%3E%3Crect%20fill='none'%20height='24'%20width='24'%20x='0'/%3E%3C/g%3E%3Cg%3E%3Cg%3E%3Cg%3E%3Cpath%20d='M11.88,9.14c1.28,0.06,1.61,1.15,1.63,1.66h1.79c-0.08-1.98-1.49-3.19-3.45-3.19C9.64,7.61,8,9,8,12.14%20c0,1.94,0.93,4.24,3.84,4.24c2.22,0,3.41-1.65,3.44-2.95h-1.79c-0.03,0.59-0.45,1.38-1.63,1.44C10.55,14.83,10,13.81,10,12.14%20C10,9.25,11.28,9.16,11.88,9.14z%20M12,2C6.48,2,2,6.48,2,12s4.48,10,10,10s10-4.48,10-10S17.52,2,12,2z%20M12,20c-4.41,0-8-3.59-8-8%20s3.59-8,8-8s8,3.59,8,8S16.41,20,12,20z'%20fill='${(_e = commonPalette.text) == null ? void 0 : _e.secondary}'/%3E%3C/g%3E%3C/g%3E%3C/g%3E%3C/svg%3E")`,
|
|
2769
2803
|
backgroundColor: "rgba(255,255,255,.8)",
|
|
2770
2804
|
top: "auto",
|
|
2771
2805
|
bottom: 0,
|
|
@@ -2776,23 +2810,24 @@ const Co = {
|
|
|
2776
2810
|
},
|
|
2777
2811
|
"& .mapboxgl-ctrl-attrib-inner": {
|
|
2778
2812
|
backgroundColor: "rgba(255,255,255,.8)",
|
|
2779
|
-
padding:
|
|
2780
|
-
borderRadius:
|
|
2781
|
-
marginRight:
|
|
2782
|
-
color: (
|
|
2813
|
+
padding: getSpacing(0.5, 1),
|
|
2814
|
+
borderRadius: getSpacing(1.5),
|
|
2815
|
+
marginRight: getSpacing(2.5),
|
|
2816
|
+
color: (_f = commonPalette.text) == null ? void 0 : _f.secondary
|
|
2783
2817
|
},
|
|
2784
2818
|
"&.mapboxgl-compact-show": {
|
|
2785
2819
|
"& .mapboxgl-ctrl-attrib-button": {
|
|
2786
2820
|
backgroundImage: `url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20height='24'%20viewBox='0%200%2024%2024'%20width='24'%3E%3Cpath%20d='M0%200h24v24H0z'%20fill='none'/%3E%3Cpath%20d='M19%206.41L17.59%205%2012%2010.59%206.41%205%205%206.41%2010.59%2012%205%2017.59%206.41%2019%2012%2013.41%2017.59%2019%2019%2017.59%2013.41%2012z'%20fill='white'/%3E%3C/svg%3E")`,
|
|
2787
|
-
backgroundColor: (
|
|
2821
|
+
backgroundColor: (_g = commonPalette.common) == null ? void 0 : _g.black,
|
|
2788
2822
|
"&:not(:disabled):hover": {
|
|
2789
|
-
backgroundColor: (
|
|
2823
|
+
backgroundColor: (_h = commonPalette.common) == null ? void 0 : _h.black
|
|
2790
2824
|
}
|
|
2791
2825
|
}
|
|
2792
2826
|
}
|
|
2793
2827
|
}
|
|
2794
2828
|
}
|
|
2795
|
-
}
|
|
2829
|
+
};
|
|
2830
|
+
const feedbackOverrides = {
|
|
2796
2831
|
// SnackBar
|
|
2797
2832
|
MuiSnackbar: {
|
|
2798
2833
|
defaultProps: {
|
|
@@ -2809,18 +2844,18 @@ const Co = {
|
|
|
2809
2844
|
variant: "rounded"
|
|
2810
2845
|
},
|
|
2811
2846
|
styleOverrides: {
|
|
2812
|
-
root: ({ theme:
|
|
2813
|
-
backgroundColor:
|
|
2847
|
+
root: ({ theme: theme2 }) => ({
|
|
2848
|
+
backgroundColor: theme2.palette.black[8]
|
|
2814
2849
|
}),
|
|
2815
|
-
rounded: ({ theme:
|
|
2816
|
-
borderRadius:
|
|
2850
|
+
rounded: ({ theme: theme2 }) => ({
|
|
2851
|
+
borderRadius: theme2.spacing(0.5)
|
|
2817
2852
|
}),
|
|
2818
|
-
text: ({ theme:
|
|
2819
|
-
borderRadius:
|
|
2853
|
+
text: ({ theme: theme2 }) => ({
|
|
2854
|
+
borderRadius: theme2.spacing(0.5)
|
|
2820
2855
|
}),
|
|
2821
|
-
wave: ({ theme:
|
|
2856
|
+
wave: ({ theme: theme2 }) => ({
|
|
2822
2857
|
"&::after": {
|
|
2823
|
-
background: `linear-gradient( 90deg, transparent, ${
|
|
2858
|
+
background: `linear-gradient( 90deg, transparent, ${theme2.palette.black[4]}, transparent )`
|
|
2824
2859
|
}
|
|
2825
2860
|
})
|
|
2826
2861
|
}
|
|
@@ -2829,35 +2864,35 @@ const Co = {
|
|
|
2829
2864
|
MuiAlert: {
|
|
2830
2865
|
defaultProps: {
|
|
2831
2866
|
iconMapping: {
|
|
2832
|
-
success: /* @__PURE__ */
|
|
2867
|
+
success: /* @__PURE__ */ jsx(CheckCircleOutlined, {})
|
|
2833
2868
|
}
|
|
2834
2869
|
},
|
|
2835
2870
|
styleOverrides: {
|
|
2836
|
-
root: ({ theme:
|
|
2837
|
-
borderRadius:
|
|
2871
|
+
root: ({ theme: theme2 }) => ({
|
|
2872
|
+
borderRadius: theme2.spacing(1),
|
|
2838
2873
|
alignSelf: "start",
|
|
2839
2874
|
width: "100%",
|
|
2840
|
-
padding:
|
|
2875
|
+
padding: theme2.spacing(1.5)
|
|
2841
2876
|
}),
|
|
2842
|
-
icon: ({ theme:
|
|
2843
|
-
height:
|
|
2877
|
+
icon: ({ theme: theme2 }) => ({
|
|
2878
|
+
height: theme2.spacing(3),
|
|
2844
2879
|
display: "flex",
|
|
2845
2880
|
alignItems: "center",
|
|
2846
2881
|
padding: 0,
|
|
2847
|
-
marginRight:
|
|
2882
|
+
marginRight: theme2.spacing(1),
|
|
2848
2883
|
svg: {
|
|
2849
|
-
width:
|
|
2850
|
-
height:
|
|
2884
|
+
width: ICON_SIZE_MEDIUM,
|
|
2885
|
+
height: ICON_SIZE_MEDIUM
|
|
2851
2886
|
}
|
|
2852
2887
|
}),
|
|
2853
2888
|
action: () => ({
|
|
2854
2889
|
paddingTop: 0,
|
|
2855
2890
|
marginRight: 0
|
|
2856
2891
|
}),
|
|
2857
|
-
message: ({ theme:
|
|
2858
|
-
paddingTop:
|
|
2892
|
+
message: ({ theme: theme2 }) => ({
|
|
2893
|
+
paddingTop: theme2.spacing(0.5),
|
|
2859
2894
|
paddingBottom: 0,
|
|
2860
|
-
...
|
|
2895
|
+
...theme2.typography.caption
|
|
2861
2896
|
})
|
|
2862
2897
|
}
|
|
2863
2898
|
},
|
|
@@ -2867,34 +2902,35 @@ const Co = {
|
|
|
2867
2902
|
variant: "body2"
|
|
2868
2903
|
},
|
|
2869
2904
|
styleOverrides: {
|
|
2870
|
-
root: ({ theme:
|
|
2871
|
-
marginBottom:
|
|
2872
|
-
fontWeight:
|
|
2905
|
+
root: ({ theme: theme2 }) => ({
|
|
2906
|
+
marginBottom: theme2.spacing(0.5),
|
|
2907
|
+
fontWeight: theme2.typography.fontWeightBold,
|
|
2873
2908
|
color: "inherit"
|
|
2874
2909
|
})
|
|
2875
2910
|
}
|
|
2876
2911
|
}
|
|
2877
|
-
}
|
|
2912
|
+
};
|
|
2913
|
+
const surfacesOverrides = {
|
|
2878
2914
|
// AppBar
|
|
2879
2915
|
MuiAppBar: {
|
|
2880
2916
|
styleOverrides: {
|
|
2881
|
-
root: ({ theme:
|
|
2917
|
+
root: ({ theme: theme2 }) => ({
|
|
2882
2918
|
flexDirection: "row",
|
|
2883
2919
|
alignItems: "center",
|
|
2884
2920
|
justifyContent: "space-between",
|
|
2885
|
-
height:
|
|
2886
|
-
backgroundColor:
|
|
2887
|
-
color:
|
|
2888
|
-
boxShadow:
|
|
2921
|
+
height: APPBAR_SIZE,
|
|
2922
|
+
backgroundColor: theme2.palette.brand.navyBlue,
|
|
2923
|
+
color: theme2.palette.common.white,
|
|
2924
|
+
boxShadow: theme2.shadows[0],
|
|
2889
2925
|
"& .MuiToolbar-root": {
|
|
2890
2926
|
justifyContent: "space-between",
|
|
2891
2927
|
width: "100%",
|
|
2892
|
-
padding:
|
|
2893
|
-
minHeight:
|
|
2928
|
+
padding: theme2.spacing(0, 1),
|
|
2929
|
+
minHeight: APPBAR_SIZE
|
|
2894
2930
|
},
|
|
2895
2931
|
"& .MuiAvatar-root": {
|
|
2896
|
-
width:
|
|
2897
|
-
height:
|
|
2932
|
+
width: theme2.spacing(4),
|
|
2933
|
+
height: theme2.spacing(4)
|
|
2898
2934
|
}
|
|
2899
2935
|
})
|
|
2900
2936
|
}
|
|
@@ -2902,14 +2938,14 @@ const Co = {
|
|
|
2902
2938
|
// MuiAccordion
|
|
2903
2939
|
MuiAccordion: {
|
|
2904
2940
|
defaultProps: {
|
|
2905
|
-
disableGutters:
|
|
2941
|
+
disableGutters: true,
|
|
2906
2942
|
elevation: 0
|
|
2907
2943
|
},
|
|
2908
2944
|
styleOverrides: {
|
|
2909
|
-
root: ({ theme:
|
|
2910
|
-
...
|
|
2945
|
+
root: ({ theme: theme2 }) => ({
|
|
2946
|
+
...theme2.typography.body2,
|
|
2911
2947
|
backgroundColor: "transparent",
|
|
2912
|
-
boxShadow: `inset 0 -1px 0 0 ${
|
|
2948
|
+
boxShadow: `inset 0 -1px 0 0 ${theme2.palette.divider}`,
|
|
2913
2949
|
"&:last-of-type": {
|
|
2914
2950
|
boxShadow: "none"
|
|
2915
2951
|
},
|
|
@@ -2925,25 +2961,25 @@ const Co = {
|
|
|
2925
2961
|
// MuiAccordionSummary
|
|
2926
2962
|
MuiAccordionSummary: {
|
|
2927
2963
|
defaultProps: {
|
|
2928
|
-
expandIcon: /* @__PURE__ */
|
|
2964
|
+
expandIcon: /* @__PURE__ */ jsx(ExpandMoreOutlined, {})
|
|
2929
2965
|
},
|
|
2930
2966
|
styleOverrides: {
|
|
2931
|
-
root: ({ theme:
|
|
2932
|
-
...
|
|
2967
|
+
root: ({ theme: theme2 }) => ({
|
|
2968
|
+
...theme2.typography.button,
|
|
2933
2969
|
"&.Mui-disabled": {
|
|
2934
2970
|
opacity: 1,
|
|
2935
|
-
color:
|
|
2971
|
+
color: theme2.palette.text.disabled
|
|
2936
2972
|
},
|
|
2937
2973
|
"&.Mui-focusVisible": {
|
|
2938
2974
|
backgroundColor: "transparent",
|
|
2939
|
-
borderRadius:
|
|
2975
|
+
borderRadius: theme2.shape.borderRadius
|
|
2940
2976
|
}
|
|
2941
2977
|
}),
|
|
2942
|
-
expandIconWrapper: ({ theme:
|
|
2978
|
+
expandIconWrapper: ({ theme: theme2 }) => ({
|
|
2943
2979
|
"& svg": {
|
|
2944
|
-
color:
|
|
2980
|
+
color: theme2.palette.text.secondary,
|
|
2945
2981
|
".Mui-disabled &": {
|
|
2946
|
-
color:
|
|
2982
|
+
color: theme2.palette.text.disabled
|
|
2947
2983
|
}
|
|
2948
2984
|
}
|
|
2949
2985
|
})
|
|
@@ -2952,12 +2988,13 @@ const Co = {
|
|
|
2952
2988
|
// MuiAccordionDetails
|
|
2953
2989
|
MuiAccordionDetails: {
|
|
2954
2990
|
styleOverrides: {
|
|
2955
|
-
root: ({ theme:
|
|
2956
|
-
paddingBottom:
|
|
2991
|
+
root: ({ theme: theme2 }) => ({
|
|
2992
|
+
paddingBottom: theme2.spacing(3)
|
|
2957
2993
|
})
|
|
2958
2994
|
}
|
|
2959
2995
|
}
|
|
2960
|
-
}
|
|
2996
|
+
};
|
|
2997
|
+
const themeShadows = [
|
|
2961
2998
|
"none",
|
|
2962
2999
|
// 0
|
|
2963
3000
|
"0px 2px 1px -1px rgba(44, 48, 50, 0.12), 0px 1px 1px rgba(44, 48, 50, 0.08), 0px 1px 3px rgba(44, 48, 50, 0.04)",
|
|
@@ -2991,20 +3028,21 @@ const Co = {
|
|
|
2991
3028
|
"0px 11px 14px -7px rgba(0,0,0,0.16),0px 23px 36px 3px rgba(0,0,0,0.08),0px 9px 44px 8px rgba(0,0,0,0.04)",
|
|
2992
3029
|
"0px 11px 15px -7px rgba(44, 48, 50, 0.12), 0px 24px 38px 3px rgba(44, 48, 50, 0.08), 0px 9px 46px 8px rgba(44, 48, 50, 0.04)"
|
|
2993
3030
|
// 24
|
|
2994
|
-
]
|
|
3031
|
+
];
|
|
3032
|
+
const cartoThemeOptions = {
|
|
2995
3033
|
themeName: "CARTO",
|
|
2996
3034
|
breakpoints: {
|
|
2997
3035
|
keys: ["xs", "sm", "md", "lg", "xl"],
|
|
2998
3036
|
values: {
|
|
2999
|
-
xs:
|
|
3037
|
+
xs: BREAKPOINTS.XS,
|
|
3000
3038
|
// 320 - 599
|
|
3001
|
-
sm:
|
|
3039
|
+
sm: BREAKPOINTS.SM,
|
|
3002
3040
|
// 600 - 959
|
|
3003
|
-
md:
|
|
3041
|
+
md: BREAKPOINTS.MD,
|
|
3004
3042
|
// 960 - 1279
|
|
3005
|
-
lg:
|
|
3043
|
+
lg: BREAKPOINTS.LG,
|
|
3006
3044
|
// 1280 - 1599
|
|
3007
|
-
xl:
|
|
3045
|
+
xl: BREAKPOINTS.XL
|
|
3008
3046
|
// 1600+
|
|
3009
3047
|
},
|
|
3010
3048
|
unit: "px",
|
|
@@ -3029,12 +3067,12 @@ const Co = {
|
|
|
3029
3067
|
}
|
|
3030
3068
|
}
|
|
3031
3069
|
},
|
|
3032
|
-
palette:
|
|
3033
|
-
shadows:
|
|
3034
|
-
typography:
|
|
3035
|
-
spacingValue:
|
|
3070
|
+
palette: commonPalette,
|
|
3071
|
+
shadows: themeShadows,
|
|
3072
|
+
typography: themeTypography,
|
|
3073
|
+
spacingValue: SPACING,
|
|
3036
3074
|
// For situations where we can't use theme.spacing(), mainly math calculations.er
|
|
3037
|
-
spacing:
|
|
3075
|
+
spacing: SPACING,
|
|
3038
3076
|
// For custom spacing: https://material-ui.com/customization/spacing/#custom-spacing
|
|
3039
3077
|
shape: {
|
|
3040
3078
|
borderRadius: 4
|
|
@@ -3071,28 +3109,29 @@ const Co = {
|
|
|
3071
3109
|
components: {
|
|
3072
3110
|
MuiCssBaseline: {
|
|
3073
3111
|
styleOverrides: {
|
|
3074
|
-
...
|
|
3112
|
+
...CssBaseline
|
|
3075
3113
|
}
|
|
3076
3114
|
},
|
|
3077
|
-
...
|
|
3078
|
-
...
|
|
3079
|
-
...
|
|
3080
|
-
...
|
|
3081
|
-
...
|
|
3082
|
-
...
|
|
3083
|
-
...
|
|
3115
|
+
...buttonsOverrides,
|
|
3116
|
+
...formsOverrides,
|
|
3117
|
+
...navigationOverrides,
|
|
3118
|
+
...dataDisplayOverrides,
|
|
3119
|
+
...feedbackOverrides,
|
|
3120
|
+
...surfacesOverrides,
|
|
3121
|
+
...datePickersOverrides
|
|
3084
3122
|
}
|
|
3085
|
-
}
|
|
3123
|
+
};
|
|
3124
|
+
const theme = responsiveFontSizes(createTheme(cartoThemeOptions));
|
|
3086
3125
|
export {
|
|
3087
|
-
|
|
3088
|
-
|
|
3089
|
-
|
|
3090
|
-
|
|
3091
|
-
|
|
3092
|
-
|
|
3093
|
-
|
|
3094
|
-
|
|
3095
|
-
|
|
3096
|
-
|
|
3097
|
-
|
|
3126
|
+
APPBAR_SIZE,
|
|
3127
|
+
BREAKPOINTS,
|
|
3128
|
+
ICON_SIZE_LARGE,
|
|
3129
|
+
ICON_SIZE_MEDIUM,
|
|
3130
|
+
ICON_SIZE_SMALL,
|
|
3131
|
+
N as NOTIFICATION_DURATION_IN_MS,
|
|
3132
|
+
SPACING,
|
|
3133
|
+
cartoThemeOptions,
|
|
3134
|
+
g as getCartoColorStylePropsForItem,
|
|
3135
|
+
getSpacing,
|
|
3136
|
+
theme
|
|
3098
3137
|
};
|