@okta/odyssey-react-mui 0.14.3 → 0.14.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +38 -0
- package/README.md +29 -0
- package/dist/themes/odyssey/components.d.ts.map +1 -1
- package/dist/themes/odyssey/components.js +331 -112
- package/dist/themes/odyssey/components.js.map +1 -1
- package/dist/themes/odyssey/components.types.d.ts +1 -0
- package/dist/themes/odyssey/components.types.d.ts.map +1 -1
- package/dist/themes/odyssey/components.types.js.map +1 -1
- package/dist/themes/odyssey/mixins.d.ts +14 -0
- package/dist/themes/odyssey/mixins.d.ts.map +1 -0
- package/dist/themes/odyssey/mixins.js +19 -0
- package/dist/themes/odyssey/mixins.js.map +1 -0
- package/dist/themes/odyssey/mixins.types.d.ts +27 -0
- package/dist/themes/odyssey/mixins.types.d.ts.map +1 -0
- package/dist/themes/odyssey/mixins.types.js +13 -0
- package/dist/themes/odyssey/mixins.types.js.map +1 -0
- package/dist/themes/odyssey/palette.js +13 -13
- package/dist/themes/odyssey/palette.js.map +1 -1
- package/dist/themes/odyssey/theme.d.ts +1 -0
- package/dist/themes/odyssey/theme.d.ts.map +1 -1
- package/dist/themes/odyssey/theme.js +3 -0
- package/dist/themes/odyssey/theme.js.map +1 -1
- package/package.json +5 -4
- package/src/themes/odyssey/components.ts +296 -111
- package/src/themes/odyssey/components.types.ts +1 -0
- package/src/themes/odyssey/mixins.ts +21 -0
- package/src/themes/odyssey/mixins.types.ts +29 -0
- package/src/themes/odyssey/palette.ts +13 -13
- package/src/themes/odyssey/theme.ts +3 -0
|
@@ -9,6 +9,7 @@
|
|
|
9
9
|
*
|
|
10
10
|
* See the License for the specific language governing permissions and limitations under the License.
|
|
11
11
|
*/
|
|
12
|
+
import { outlinedInputClasses } from "@mui/material/OutlinedInput";
|
|
12
13
|
export const components = {
|
|
13
14
|
MuiAlert: {
|
|
14
15
|
styleOverrides: {
|
|
@@ -17,11 +18,18 @@ export const components = {
|
|
|
17
18
|
theme
|
|
18
19
|
}) => ({
|
|
19
20
|
padding: theme.spacing(4),
|
|
21
|
+
gap: theme.spacing(4),
|
|
20
22
|
color: theme.palette.text.primary,
|
|
21
23
|
...(ownerState.severity && {
|
|
22
24
|
backgroundColor: theme.palette[ownerState.severity].lighter,
|
|
23
25
|
borderColor: theme.palette[ownerState.severity].light
|
|
24
26
|
}),
|
|
27
|
+
...(ownerState.variant === "banner" && {
|
|
28
|
+
position: "relative",
|
|
29
|
+
justifyContent: "center",
|
|
30
|
+
alignItems: "center",
|
|
31
|
+
borderWidth: 0
|
|
32
|
+
}),
|
|
25
33
|
...(ownerState.variant === "infobox" && {
|
|
26
34
|
borderStyle: "solid",
|
|
27
35
|
borderWidth: 1,
|
|
@@ -29,15 +37,39 @@ export const components = {
|
|
|
29
37
|
marginBottom: theme.spacing(4)
|
|
30
38
|
}
|
|
31
39
|
}),
|
|
32
|
-
...(ownerState.variant === "
|
|
33
|
-
|
|
40
|
+
...(ownerState.variant === "toast" && {
|
|
41
|
+
maxWidth: theme.mixins.maxWidth,
|
|
42
|
+
borderStyle: "solid",
|
|
43
|
+
borderWidth: 1,
|
|
44
|
+
position: "relative",
|
|
45
|
+
alignItems: "start"
|
|
46
|
+
})
|
|
47
|
+
}),
|
|
48
|
+
action: ({
|
|
49
|
+
ownerState,
|
|
50
|
+
theme
|
|
51
|
+
}) => ({ ...(ownerState.variant === "banner" && {
|
|
52
|
+
padding: 0,
|
|
53
|
+
marginRight: 0,
|
|
54
|
+
top: "50%",
|
|
55
|
+
right: theme.spacing(4),
|
|
56
|
+
position: "absolute",
|
|
57
|
+
transform: "translateY(-50%)"
|
|
58
|
+
}),
|
|
59
|
+
...(ownerState.variant === "toast" && {
|
|
60
|
+
position: "absolute",
|
|
61
|
+
top: `calc(${theme.spacing(4)} - ${theme.spacing(1)} + ${theme.mixins.borderWidth})`,
|
|
62
|
+
right: `calc(${theme.spacing(4)} - ${theme.spacing(1)} + ${theme.mixins.borderWidth})`,
|
|
63
|
+
padding: 0,
|
|
64
|
+
marginLeft: 0,
|
|
65
|
+
marginRight: 0
|
|
34
66
|
})
|
|
35
67
|
}),
|
|
36
68
|
icon: ({
|
|
37
69
|
ownerState,
|
|
38
70
|
theme
|
|
39
71
|
}) => ({
|
|
40
|
-
marginRight:
|
|
72
|
+
marginRight: 0,
|
|
41
73
|
padding: 0,
|
|
42
74
|
fontSize: "1.429rem",
|
|
43
75
|
opacity: 1,
|
|
@@ -49,10 +81,20 @@ export const components = {
|
|
|
49
81
|
})
|
|
50
82
|
}),
|
|
51
83
|
message: ({
|
|
84
|
+
ownerState,
|
|
52
85
|
theme
|
|
53
86
|
}) => ({
|
|
54
87
|
padding: 0,
|
|
55
|
-
lineHeight: theme.typography.body.lineHeight
|
|
88
|
+
lineHeight: theme.typography.body.lineHeight,
|
|
89
|
+
...(ownerState.variant === "banner" && {
|
|
90
|
+
display: "flex",
|
|
91
|
+
justifyContent: "space-between",
|
|
92
|
+
gap: theme.spacing(4)
|
|
93
|
+
}),
|
|
94
|
+
...(ownerState.variant === "toast" && {
|
|
95
|
+
flexGrow: 1,
|
|
96
|
+
paddingRight: `calc((${theme.spacing(1)} * 2) + ${theme.typography.body.fontSize} + ${theme.spacing(4)})`
|
|
97
|
+
})
|
|
56
98
|
})
|
|
57
99
|
}
|
|
58
100
|
},
|
|
@@ -77,123 +119,142 @@ export const components = {
|
|
|
77
119
|
props: {
|
|
78
120
|
variant: "primary"
|
|
79
121
|
},
|
|
80
|
-
style: {
|
|
122
|
+
style: ({
|
|
123
|
+
theme
|
|
124
|
+
}) => ({
|
|
81
125
|
fontWeight: 600,
|
|
82
|
-
color:
|
|
126
|
+
color: theme.palette.common.white,
|
|
83
127
|
borderColor: "transparent",
|
|
84
|
-
backgroundColor:
|
|
128
|
+
backgroundColor: theme.palette.primary.main,
|
|
85
129
|
"&:hover, &:focus-visible": {
|
|
86
|
-
backgroundColor:
|
|
130
|
+
backgroundColor: theme.palette.primary.dark
|
|
131
|
+
},
|
|
132
|
+
"&:focus-visible": {
|
|
133
|
+
outlineColor: theme.palette.primary.main
|
|
87
134
|
},
|
|
88
135
|
"&:active": {
|
|
89
|
-
backgroundColor:
|
|
136
|
+
backgroundColor: theme.palette.primary.main
|
|
90
137
|
},
|
|
91
138
|
"&:disabled": {
|
|
92
|
-
color:
|
|
93
|
-
backgroundColor:
|
|
139
|
+
color: theme.palette.common.white,
|
|
140
|
+
backgroundColor: theme.palette.primary.light
|
|
94
141
|
}
|
|
95
|
-
}
|
|
142
|
+
})
|
|
96
143
|
}, {
|
|
97
144
|
props: {
|
|
98
145
|
variant: "secondary"
|
|
99
146
|
},
|
|
100
|
-
style: {
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
147
|
+
style: ({
|
|
148
|
+
theme
|
|
149
|
+
}) => ({
|
|
150
|
+
backgroundColor: theme.palette.grey[50],
|
|
151
|
+
borderColor: theme.palette.grey[200],
|
|
152
|
+
color: theme.palette.text.primary,
|
|
153
|
+
"&:hover, &:focus-visible": {
|
|
154
|
+
backgroundColor: theme.palette.primary.lighter,
|
|
155
|
+
borderColor: theme.palette.primary.light,
|
|
156
|
+
color: theme.palette.primary.main
|
|
108
157
|
},
|
|
109
158
|
"&:focus-visible": {
|
|
110
|
-
|
|
111
|
-
color: "#1662dd"
|
|
159
|
+
outlineColor: theme.palette.primary.main
|
|
112
160
|
},
|
|
113
161
|
"&:active": {
|
|
114
|
-
borderColor:
|
|
162
|
+
borderColor: theme.palette.primary.main
|
|
115
163
|
},
|
|
116
164
|
"&:disabled": {
|
|
117
|
-
borderColor:
|
|
118
|
-
backgroundColor:
|
|
119
|
-
color:
|
|
165
|
+
borderColor: theme.palette.grey[100],
|
|
166
|
+
backgroundColor: theme.palette.grey[100],
|
|
167
|
+
color: theme.palette.grey[500]
|
|
120
168
|
}
|
|
121
|
-
}
|
|
169
|
+
})
|
|
122
170
|
}, {
|
|
123
171
|
props: {
|
|
124
172
|
variant: "danger"
|
|
125
173
|
},
|
|
126
|
-
style: {
|
|
127
|
-
|
|
128
|
-
|
|
174
|
+
style: ({
|
|
175
|
+
theme
|
|
176
|
+
}) => ({
|
|
177
|
+
backgroundColor: theme.palette.error.main,
|
|
178
|
+
color: theme.palette.common.white,
|
|
129
179
|
borderColor: "transparent",
|
|
130
180
|
"&:hover": {
|
|
131
|
-
backgroundColor:
|
|
181
|
+
backgroundColor: theme.palette.error.dark
|
|
132
182
|
},
|
|
133
183
|
"&:focus-visible": {
|
|
134
|
-
outlineColor:
|
|
135
|
-
backgroundColor:
|
|
184
|
+
outlineColor: theme.palette.error.main,
|
|
185
|
+
backgroundColor: theme.palette.error.dark
|
|
136
186
|
},
|
|
137
187
|
"&:active": {
|
|
138
|
-
backgroundColor:
|
|
188
|
+
backgroundColor: theme.palette.error.main
|
|
139
189
|
},
|
|
140
190
|
"&:disabled": {
|
|
141
|
-
color:
|
|
142
|
-
backgroundColor:
|
|
191
|
+
color: theme.palette.common.white,
|
|
192
|
+
backgroundColor: theme.palette.error.light
|
|
143
193
|
}
|
|
144
|
-
}
|
|
194
|
+
})
|
|
145
195
|
}, {
|
|
146
196
|
props: {
|
|
147
197
|
variant: "floating"
|
|
148
198
|
},
|
|
149
|
-
style: {
|
|
150
|
-
|
|
151
|
-
|
|
199
|
+
style: ({
|
|
200
|
+
theme
|
|
201
|
+
}) => ({
|
|
202
|
+
backgroundColor: theme.palette.common.white,
|
|
203
|
+
color: theme.palette.text.primary,
|
|
152
204
|
borderColor: "transparent",
|
|
153
205
|
"&:hover, &:focus-visible": {
|
|
154
206
|
backgroundColor: "rgba(29, 29, 33, 0.1)",
|
|
155
207
|
borderColor: "transparent"
|
|
156
208
|
},
|
|
209
|
+
"&:focus-visible": {
|
|
210
|
+
outlineColor: theme.palette.primary.main
|
|
211
|
+
},
|
|
157
212
|
"&:active": {
|
|
158
213
|
backgroundColor: "rgba(29, 29, 33, 0.2)",
|
|
159
214
|
borderColor: "transparent"
|
|
160
215
|
},
|
|
161
216
|
"&:disabled": {
|
|
162
217
|
backgroundColor: "rgba(235, 235, 237, 0.6)",
|
|
163
|
-
color:
|
|
218
|
+
color: theme.palette.text.secondary,
|
|
164
219
|
borderColor: "transparent"
|
|
165
220
|
}
|
|
166
|
-
}
|
|
221
|
+
})
|
|
167
222
|
}, {
|
|
168
223
|
props: {
|
|
169
224
|
size: "s"
|
|
170
225
|
},
|
|
171
|
-
style: {
|
|
172
|
-
|
|
173
|
-
|
|
226
|
+
style: ({
|
|
227
|
+
theme
|
|
228
|
+
}) => ({
|
|
229
|
+
paddingBlock: `calc(${theme.spacing(2)} - 1px)`,
|
|
230
|
+
paddingInline: `calc(${theme.spacing(3)} - 1px)`,
|
|
174
231
|
fontSize: "1rem"
|
|
175
|
-
}
|
|
232
|
+
})
|
|
176
233
|
}, {
|
|
177
234
|
props: {
|
|
178
235
|
size: "l"
|
|
179
236
|
},
|
|
180
|
-
style: {
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
237
|
+
style: ({
|
|
238
|
+
theme
|
|
239
|
+
}) => ({
|
|
240
|
+
paddingBlock: `calc(${theme.spacing(4)} - 1px)`,
|
|
241
|
+
paddingInline: `calc(${theme.spacing(4)} - 1px)`
|
|
242
|
+
})
|
|
184
243
|
}, {
|
|
185
244
|
props: {
|
|
186
245
|
fullWidth: true
|
|
187
246
|
},
|
|
188
|
-
style: {
|
|
247
|
+
style: ({
|
|
248
|
+
theme
|
|
249
|
+
}) => ({
|
|
189
250
|
display: "block",
|
|
190
251
|
width: "100%",
|
|
191
252
|
marginBlock: "0",
|
|
192
253
|
marginInline: "0",
|
|
193
254
|
"&:not(:last-child)": {
|
|
194
|
-
marginBlockEnd:
|
|
255
|
+
marginBlockEnd: theme.spacing(4)
|
|
195
256
|
}
|
|
196
|
-
}
|
|
257
|
+
})
|
|
197
258
|
}, {
|
|
198
259
|
props: {
|
|
199
260
|
children: ""
|
|
@@ -226,7 +287,7 @@ export const components = {
|
|
|
226
287
|
lineHeight: "1.14285714",
|
|
227
288
|
whiteSpace: "nowrap",
|
|
228
289
|
"& + &": {
|
|
229
|
-
marginInlineStart:
|
|
290
|
+
marginInlineStart: theme.spacing(2)
|
|
230
291
|
},
|
|
231
292
|
"&:focus-visible": {
|
|
232
293
|
outlineOffset: "2px",
|
|
@@ -260,30 +321,32 @@ export const components = {
|
|
|
260
321
|
size: "small"
|
|
261
322
|
},
|
|
262
323
|
styleOverrides: {
|
|
263
|
-
root: {
|
|
324
|
+
root: ({
|
|
325
|
+
theme
|
|
326
|
+
}) => ({
|
|
264
327
|
borderRadius: "4px",
|
|
265
328
|
"&:hover": {
|
|
266
329
|
backgroundColor: "transparent"
|
|
267
330
|
},
|
|
268
331
|
padding: 0,
|
|
269
332
|
".Mui-error > &": {
|
|
270
|
-
color:
|
|
333
|
+
color: theme.palette.error.main,
|
|
271
334
|
"&:hover": {
|
|
272
|
-
color:
|
|
335
|
+
color: theme.palette.error.dark
|
|
273
336
|
}
|
|
274
337
|
},
|
|
275
338
|
".Mui-error > &.Mui-checked": {
|
|
276
339
|
"&:hover": {
|
|
277
|
-
color:
|
|
340
|
+
color: theme.palette.error.dark
|
|
278
341
|
}
|
|
279
342
|
},
|
|
280
343
|
"&.Mui-focusVisible": {
|
|
281
|
-
outlineColor:
|
|
344
|
+
outlineColor: theme.palette.primary.main,
|
|
282
345
|
outlineOffset: 0,
|
|
283
346
|
outlineStyle: "solid",
|
|
284
347
|
outlineWidth: "2px"
|
|
285
348
|
}
|
|
286
|
-
}
|
|
349
|
+
})
|
|
287
350
|
}
|
|
288
351
|
},
|
|
289
352
|
MuiCircularProgress: {
|
|
@@ -296,9 +359,10 @@ export const components = {
|
|
|
296
359
|
},
|
|
297
360
|
styleOverrides: {
|
|
298
361
|
root: ({
|
|
362
|
+
theme,
|
|
299
363
|
ownerState
|
|
300
364
|
}) => ({ ...(ownerState.color !== "inherit" && {
|
|
301
|
-
color:
|
|
365
|
+
color: theme.palette.primary.dark
|
|
302
366
|
})
|
|
303
367
|
}),
|
|
304
368
|
circle: ({
|
|
@@ -334,9 +398,10 @@ export const components = {
|
|
|
334
398
|
MuiFormControlLabel: {
|
|
335
399
|
styleOverrides: {
|
|
336
400
|
root: ({
|
|
401
|
+
theme,
|
|
337
402
|
ownerState
|
|
338
403
|
}) => ({
|
|
339
|
-
gap:
|
|
404
|
+
gap: theme.spacing(2),
|
|
340
405
|
marginLeft: 0,
|
|
341
406
|
marginRight: 0,
|
|
342
407
|
...(ownerState.labelPlacement === "start" && {
|
|
@@ -350,22 +415,22 @@ export const components = {
|
|
|
350
415
|
marginLeft: 0
|
|
351
416
|
}),
|
|
352
417
|
"&:not(:last-child)": {
|
|
353
|
-
marginBottom:
|
|
418
|
+
marginBottom: theme.spacing(2)
|
|
354
419
|
},
|
|
355
420
|
"&.Mui-disabled": {
|
|
356
421
|
pointerEvents: "none"
|
|
357
422
|
},
|
|
358
423
|
"&:hover .MuiRadio-root, &:hover .MuiCheckbox-root": {
|
|
359
|
-
color:
|
|
424
|
+
color: theme.palette.text.primary
|
|
360
425
|
},
|
|
361
426
|
"&:hover .MuiRadio-root.Mui-checked, &:hover .MuiCheckbox-root.Mui-checked": {
|
|
362
|
-
color:
|
|
427
|
+
color: theme.palette.primary.dark
|
|
363
428
|
},
|
|
364
429
|
"&.Mui-error:hover .MuiRadio-root, &.Mui-error:hover .MuiCheckbox-root": {
|
|
365
|
-
color:
|
|
430
|
+
color: theme.palette.error.dark
|
|
366
431
|
},
|
|
367
432
|
"&.Mui-error:hover .MuiRadio-root.Mui-checked, &.Mui-error:hover .MuiCheckbox-root.Mui-checked": {
|
|
368
|
-
color:
|
|
433
|
+
color: theme.palette.error.dark
|
|
369
434
|
}
|
|
370
435
|
})
|
|
371
436
|
}
|
|
@@ -375,32 +440,64 @@ export const components = {
|
|
|
375
440
|
variant: "standard"
|
|
376
441
|
},
|
|
377
442
|
styleOverrides: {
|
|
378
|
-
root: {
|
|
443
|
+
root: ({
|
|
444
|
+
theme
|
|
445
|
+
}) => ({
|
|
379
446
|
lineHeight: "1.33333333",
|
|
380
|
-
marginTop:
|
|
447
|
+
marginTop: theme.spacing(2),
|
|
381
448
|
".MuiFormLabel-root + &": {
|
|
382
|
-
marginTop:
|
|
383
|
-
color:
|
|
449
|
+
marginTop: `-${theme.spacing(1)}`,
|
|
450
|
+
color: theme.palette.text.secondary
|
|
384
451
|
},
|
|
385
|
-
marginBottom:
|
|
452
|
+
marginBottom: theme.spacing(2),
|
|
386
453
|
"&:last-child": {
|
|
387
454
|
marginBottom: 0
|
|
388
455
|
}
|
|
389
|
-
}
|
|
456
|
+
})
|
|
390
457
|
}
|
|
391
458
|
},
|
|
392
459
|
MuiFormLabel: {
|
|
393
460
|
styleOverrides: {
|
|
394
|
-
root: {
|
|
395
|
-
|
|
461
|
+
root: ({
|
|
462
|
+
theme
|
|
463
|
+
}) => ({
|
|
464
|
+
color: theme.palette.text.primary,
|
|
396
465
|
lineHeight: "1.14285714",
|
|
397
466
|
fontSize: "1rem",
|
|
398
467
|
fontWeight: 600,
|
|
399
|
-
marginBottom:
|
|
468
|
+
marginBottom: theme.spacing(2),
|
|
400
469
|
"&.Mui-focused, &.Mui-error, &.Mui-disabled": {
|
|
401
|
-
color:
|
|
470
|
+
color: theme.palette.text.primary
|
|
402
471
|
}
|
|
403
|
-
}
|
|
472
|
+
})
|
|
473
|
+
}
|
|
474
|
+
},
|
|
475
|
+
MuiIconButton: {
|
|
476
|
+
styleOverrides: {
|
|
477
|
+
root: ({
|
|
478
|
+
theme
|
|
479
|
+
}) => ({
|
|
480
|
+
padding: theme.spacing(1),
|
|
481
|
+
fontSize: theme.typography.body.fontSize
|
|
482
|
+
})
|
|
483
|
+
}
|
|
484
|
+
},
|
|
485
|
+
MuiInputAdornment: {
|
|
486
|
+
defaultProps: {
|
|
487
|
+
variant: "outlined"
|
|
488
|
+
},
|
|
489
|
+
styleOverrides: {
|
|
490
|
+
root: ({
|
|
491
|
+
ownerState
|
|
492
|
+
}) => ({
|
|
493
|
+
display: "flex",
|
|
494
|
+
...(ownerState.position === "start" && {
|
|
495
|
+
marginRight: 0
|
|
496
|
+
}),
|
|
497
|
+
...(ownerState.position === "end" && {
|
|
498
|
+
marginLeft: 0
|
|
499
|
+
})
|
|
500
|
+
})
|
|
404
501
|
}
|
|
405
502
|
},
|
|
406
503
|
MuiInputBase: {
|
|
@@ -439,21 +536,23 @@ export const components = {
|
|
|
439
536
|
},
|
|
440
537
|
MuiLink: {
|
|
441
538
|
styleOverrides: {
|
|
442
|
-
root: {
|
|
443
|
-
|
|
539
|
+
root: ({
|
|
540
|
+
theme
|
|
541
|
+
}) => ({
|
|
542
|
+
color: theme.palette.primary.main,
|
|
444
543
|
textDecoration: "none",
|
|
445
544
|
"&:hover": {
|
|
446
|
-
color:
|
|
545
|
+
color: theme.palette.primary.main,
|
|
447
546
|
textDecoration: "underline"
|
|
448
547
|
},
|
|
449
548
|
"&:focus-visible": {
|
|
450
|
-
outlineColor:
|
|
549
|
+
outlineColor: theme.palette.primary.main,
|
|
451
550
|
outlineOffset: "2px",
|
|
452
551
|
outlineStyle: "solid",
|
|
453
552
|
outlineWidth: "1px"
|
|
454
553
|
},
|
|
455
554
|
"&:visited": {
|
|
456
|
-
color:
|
|
555
|
+
color: theme.palette.primary.main
|
|
457
556
|
},
|
|
458
557
|
".Link-indicator, .Link-icon": {
|
|
459
558
|
display: "inline-block",
|
|
@@ -461,10 +560,10 @@ export const components = {
|
|
|
461
560
|
lineHeight: 1
|
|
462
561
|
},
|
|
463
562
|
".Link-indicator": {
|
|
464
|
-
marginInlineStart:
|
|
563
|
+
marginInlineStart: theme.spacing(2)
|
|
465
564
|
},
|
|
466
565
|
".Link-icon": {
|
|
467
|
-
marginInlineEnd:
|
|
566
|
+
marginInlineEnd: theme.spacing(2)
|
|
468
567
|
},
|
|
469
568
|
svg: {
|
|
470
569
|
fontSize: "1rem",
|
|
@@ -474,28 +573,30 @@ export const components = {
|
|
|
474
573
|
verticalAlign: "middle",
|
|
475
574
|
width: "1em"
|
|
476
575
|
}
|
|
477
|
-
}
|
|
576
|
+
})
|
|
478
577
|
},
|
|
479
578
|
variants: [{
|
|
480
579
|
props: {
|
|
481
580
|
variant: "monochrome"
|
|
482
581
|
},
|
|
483
|
-
style: {
|
|
484
|
-
|
|
582
|
+
style: ({
|
|
583
|
+
theme
|
|
584
|
+
}) => ({
|
|
585
|
+
color: theme.palette.text.primary,
|
|
485
586
|
textDecoration: "underline",
|
|
486
587
|
"&:hover": {
|
|
487
|
-
color:
|
|
588
|
+
color: theme.palette.text.secondary
|
|
488
589
|
},
|
|
489
590
|
"&:focus-visible": {
|
|
490
|
-
outlineColor:
|
|
591
|
+
outlineColor: theme.palette.primary.main,
|
|
491
592
|
outlineOffset: "2px",
|
|
492
593
|
outlineStyle: "solid",
|
|
493
594
|
outlineWidth: "1px"
|
|
494
595
|
},
|
|
495
596
|
"&:visited": {
|
|
496
|
-
color:
|
|
597
|
+
color: theme.palette.text.primary
|
|
497
598
|
}
|
|
498
|
-
}
|
|
599
|
+
})
|
|
499
600
|
}]
|
|
500
601
|
},
|
|
501
602
|
MuiNativeSelect: {
|
|
@@ -512,30 +613,62 @@ export const components = {
|
|
|
512
613
|
},
|
|
513
614
|
MuiOutlinedInput: {
|
|
514
615
|
defaultProps: {
|
|
515
|
-
notched: false
|
|
616
|
+
notched: false,
|
|
617
|
+
minRows: 3
|
|
516
618
|
},
|
|
517
619
|
styleOverrides: {
|
|
518
|
-
root: {
|
|
519
|
-
|
|
620
|
+
root: ({
|
|
621
|
+
ownerState,
|
|
622
|
+
theme
|
|
623
|
+
}) => ({
|
|
624
|
+
[`&:hover .${outlinedInputClasses.notchedOutline}`]: {
|
|
625
|
+
borderColor: theme.palette.text.primary
|
|
626
|
+
},
|
|
627
|
+
[`&.${outlinedInputClasses.focused} .${outlinedInputClasses.notchedOutline}`]: {
|
|
628
|
+
borderColor: theme.palette.primary.main,
|
|
629
|
+
borderWidth: 2
|
|
630
|
+
},
|
|
631
|
+
[`&.${outlinedInputClasses.error} .${outlinedInputClasses.notchedOutline}`]: {
|
|
632
|
+
borderColor: theme.palette.error.main
|
|
633
|
+
},
|
|
634
|
+
[`&.${outlinedInputClasses.error}:hover .${outlinedInputClasses.notchedOutline}`]: {
|
|
635
|
+
borderColor: theme.palette.error.dark
|
|
636
|
+
},
|
|
637
|
+
[`&.${outlinedInputClasses.error}.${outlinedInputClasses.focused} .${outlinedInputClasses.notchedOutline}`]: {
|
|
638
|
+
borderColor: theme.palette.error.main
|
|
639
|
+
},
|
|
640
|
+
[`&.${outlinedInputClasses.disabled} .${outlinedInputClasses.notchedOutline}`]: {
|
|
641
|
+
borderColor: theme.palette.action.disabled
|
|
642
|
+
},
|
|
643
|
+
[`&.${outlinedInputClasses.disabled}`]: {
|
|
644
|
+
backgroundColor: theme.palette.grey[50],
|
|
520
645
|
pointerEvents: "none"
|
|
521
|
-
}
|
|
522
|
-
|
|
646
|
+
},
|
|
647
|
+
...(ownerState.startAdornment && {
|
|
648
|
+
paddingLeft: theme.spacing(3)
|
|
649
|
+
}),
|
|
650
|
+
...(ownerState.endAdornment && {
|
|
651
|
+
paddingRight: theme.spacing(3)
|
|
652
|
+
}),
|
|
653
|
+
...(ownerState.multiline && {
|
|
654
|
+
padding: "0",
|
|
655
|
+
...(ownerState.size === "small" && {
|
|
656
|
+
padding: "0"
|
|
657
|
+
})
|
|
658
|
+
})
|
|
659
|
+
}),
|
|
523
660
|
input: ({
|
|
524
661
|
theme
|
|
525
662
|
}) => ({
|
|
526
663
|
padding: `calc(${theme.spacing(3)} - 1px) ${theme.spacing(3)}`,
|
|
527
|
-
|
|
664
|
+
borderWidth: theme.mixins.borderWidth,
|
|
665
|
+
borderStyle: theme.mixins.borderStyle,
|
|
666
|
+
borderColor: "transparent"
|
|
528
667
|
}),
|
|
529
668
|
notchedOutline: ({
|
|
530
669
|
theme
|
|
531
670
|
}) => ({
|
|
532
|
-
borderColor: theme.palette.grey[500]
|
|
533
|
-
".MuiOutlinedInput-root:hover &": {
|
|
534
|
-
borderColor: theme.palette.primary.main
|
|
535
|
-
},
|
|
536
|
-
".MuiOutlinedInput-root.Mui-error:hover &": {
|
|
537
|
-
borderColor: theme.palette.error.dark
|
|
538
|
-
}
|
|
671
|
+
borderColor: theme.palette.grey[500]
|
|
539
672
|
})
|
|
540
673
|
}
|
|
541
674
|
},
|
|
@@ -544,34 +677,120 @@ export const components = {
|
|
|
544
677
|
size: "small"
|
|
545
678
|
},
|
|
546
679
|
styleOverrides: {
|
|
547
|
-
root: {
|
|
680
|
+
root: ({
|
|
681
|
+
theme
|
|
682
|
+
}) => ({
|
|
548
683
|
"&:hover": {
|
|
549
684
|
backgroundColor: "transparent"
|
|
550
685
|
},
|
|
551
686
|
padding: 0,
|
|
552
687
|
".Mui-error > &": {
|
|
553
|
-
color:
|
|
688
|
+
color: theme.palette.error.main,
|
|
554
689
|
"&:hover": {
|
|
555
|
-
color:
|
|
690
|
+
color: theme.palette.error.dark
|
|
556
691
|
}
|
|
557
692
|
},
|
|
558
693
|
"&.Mui-focusVisible": {
|
|
559
|
-
outlineColor:
|
|
694
|
+
outlineColor: theme.palette.primary.main,
|
|
560
695
|
outlineOffset: 0,
|
|
561
696
|
outlineStyle: "solid",
|
|
562
697
|
outlineWidth: "2px"
|
|
563
698
|
}
|
|
699
|
+
})
|
|
700
|
+
}
|
|
701
|
+
},
|
|
702
|
+
MuiSnackbar: {
|
|
703
|
+
defaultProps: {
|
|
704
|
+
anchorOrigin: {
|
|
705
|
+
vertical: "bottom",
|
|
706
|
+
horizontal: "right"
|
|
564
707
|
}
|
|
565
708
|
}
|
|
566
709
|
},
|
|
710
|
+
MuiTab: {
|
|
711
|
+
defaultProps: {
|
|
712
|
+
iconPosition: "start"
|
|
713
|
+
},
|
|
714
|
+
styleOverrides: {
|
|
715
|
+
root: ({
|
|
716
|
+
theme,
|
|
717
|
+
ownerState
|
|
718
|
+
}) => ({
|
|
719
|
+
maxWidth: `calc(${theme.mixins.maxWidth} / 2)`,
|
|
720
|
+
minWidth: "unset",
|
|
721
|
+
minHeight: "unset",
|
|
722
|
+
padding: `${theme.spacing(4)} 0`,
|
|
723
|
+
lineHeight: theme.typography.body.lineHeight,
|
|
724
|
+
overflow: "visible",
|
|
725
|
+
...(ownerState.selected == true && {
|
|
726
|
+
color: theme.palette.text.primary
|
|
727
|
+
}),
|
|
728
|
+
...(ownerState.textColor === "inherit" && {
|
|
729
|
+
color: "inherit",
|
|
730
|
+
opacity: 1
|
|
731
|
+
}),
|
|
732
|
+
...(ownerState.wrapped && {
|
|
733
|
+
fontSize: theme.typography.caption.fontSize,
|
|
734
|
+
lineHeight: theme.typography.caption.lineHeight
|
|
735
|
+
}),
|
|
736
|
+
"&:hover": {
|
|
737
|
+
color: theme.palette.primary.main
|
|
738
|
+
},
|
|
739
|
+
"&:focus-visible::before, &.Mui-focusVisible::before": {
|
|
740
|
+
content: "''",
|
|
741
|
+
position: "absolute",
|
|
742
|
+
top: theme.spacing(4),
|
|
743
|
+
right: `calc(-1 * ${theme.spacing(2)})`,
|
|
744
|
+
bottom: theme.spacing(4),
|
|
745
|
+
left: `calc(-1 * ${theme.spacing(2)})`,
|
|
746
|
+
borderWidth: theme.mixins.borderWidth,
|
|
747
|
+
borderStyle: theme.mixins.borderStyle,
|
|
748
|
+
borderColor: theme.palette.primary.main,
|
|
749
|
+
borderRadius: theme.mixins.borderRadius
|
|
750
|
+
},
|
|
751
|
+
"&.Mui-selected": {
|
|
752
|
+
color: theme.palette.text.primary,
|
|
753
|
+
fontWeight: theme.typography.fontWeightBold,
|
|
754
|
+
"&:hover": {
|
|
755
|
+
color: theme.palette.primary.main
|
|
756
|
+
}
|
|
757
|
+
},
|
|
758
|
+
"&.Mui-disabled": {
|
|
759
|
+
cursor: "not-allowed",
|
|
760
|
+
pointerEvents: "unset",
|
|
761
|
+
"&:hover": {
|
|
762
|
+
color: theme.palette.text.disabled
|
|
763
|
+
}
|
|
764
|
+
}
|
|
765
|
+
})
|
|
766
|
+
}
|
|
767
|
+
},
|
|
768
|
+
MuiTabs: {
|
|
769
|
+
styleOverrides: {
|
|
770
|
+
root: ({
|
|
771
|
+
theme
|
|
772
|
+
}) => ({
|
|
773
|
+
minHeight: "unset",
|
|
774
|
+
marginBottom: theme.spacing(5)
|
|
775
|
+
}),
|
|
776
|
+
flexContainer: ({
|
|
777
|
+
theme
|
|
778
|
+
}) => ({
|
|
779
|
+
gap: theme.spacing(5),
|
|
780
|
+
borderBottom: `${theme.mixins.borderWidth} ${theme.mixins.borderStyle} ${theme.palette.divider}`
|
|
781
|
+
})
|
|
782
|
+
}
|
|
783
|
+
},
|
|
567
784
|
MuiTypography: {
|
|
568
785
|
defaultProps: {
|
|
569
786
|
fontFamily: "'Public Sans', '-apple-system', 'BlinkMacSystemFont', 'Segoe UI', 'Roboto', 'Oxygen-Sans', 'Ubuntu', 'Cantarell', 'Helvetica Neue', 'Noto Sans Arabic', sans-serif"
|
|
570
787
|
},
|
|
571
788
|
styleOverrides: {
|
|
572
|
-
paragraph: {
|
|
573
|
-
|
|
574
|
-
}
|
|
789
|
+
paragraph: ({
|
|
790
|
+
theme
|
|
791
|
+
}) => ({
|
|
792
|
+
marginBottom: theme.spacing(4)
|
|
793
|
+
})
|
|
575
794
|
}
|
|
576
795
|
}
|
|
577
796
|
};
|