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