@okta/odyssey-react-mui 0.14.1 → 0.14.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 +13 -0
- package/babel.config.cjs +2 -2
- package/dist/components/Link/Link.d.ts +2 -2
- package/dist/components/Link/Link.d.ts.map +1 -1
- package/dist/components/Link/Link.js +21 -14
- package/dist/components/Link/Link.js.map +1 -1
- package/dist/components/PasswordInput/PasswordInput.d.ts +1 -2
- package/dist/components/PasswordInput/PasswordInput.d.ts.map +1 -1
- package/dist/components/PasswordInput/PasswordInput.js +29 -23
- package/dist/components/PasswordInput/PasswordInput.js.map +1 -1
- package/dist/themes/odyssey/components.d.ts.map +1 -1
- package/dist/themes/odyssey/components.js +308 -120
- package/dist/themes/odyssey/components.js.map +1 -1
- package/dist/themes/odyssey/components.types.d.ts +37 -28
- 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/palette.d.ts.map +1 -1
- package/dist/themes/odyssey/palette.js +36 -30
- package/dist/themes/odyssey/palette.js.map +1 -1
- package/dist/themes/odyssey/palette.types.d.ts +21 -0
- package/dist/themes/odyssey/palette.types.d.ts.map +1 -0
- package/dist/themes/odyssey/palette.types.js +13 -0
- package/dist/themes/odyssey/palette.types.js.map +1 -0
- 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 +1 -0
- package/dist/themes/odyssey/theme.js.map +1 -1
- package/dist/themes/odyssey/typography.d.ts.map +1 -1
- package/dist/themes/odyssey/typography.js +9 -15
- package/dist/themes/odyssey/typography.js.map +1 -1
- package/package.json +5 -5
- package/src/components/Link/Link.tsx +1 -1
- package/src/components/PasswordInput/PasswordInput.test.tsx +0 -1
- package/src/components/PasswordInput/PasswordInput.tsx +1 -1
- package/src/themes/odyssey/components.ts +315 -128
- package/src/themes/odyssey/components.types.ts +41 -28
- package/src/themes/odyssey/palette.ts +36 -32
- package/src/themes/odyssey/palette.types.ts +22 -0
- package/src/themes/odyssey/theme.ts +1 -0
- package/src/themes/odyssey/typography.ts +8 -14
- package/tsconfig.json +4 -1
- package/tsconfig.production.json +2 -1
|
@@ -11,139 +11,56 @@
|
|
|
11
11
|
*/
|
|
12
12
|
|
|
13
13
|
import type { ThemeOptions } from "@mui/material";
|
|
14
|
+
//import radioClasses from "@mui/material";
|
|
14
15
|
|
|
15
16
|
export const components: ThemeOptions["components"] = {
|
|
16
|
-
|
|
17
|
+
MuiAlert: {
|
|
17
18
|
styleOverrides: {
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
19
|
+
root: ({ ownerState, theme }) => ({
|
|
20
|
+
padding: theme.spacing(4),
|
|
21
|
+
color: theme.palette.text.primary,
|
|
22
|
+
...(ownerState.severity && {
|
|
23
|
+
backgroundColor: theme.palette[ownerState.severity].lighter,
|
|
24
|
+
borderColor: theme.palette[ownerState.severity].light,
|
|
25
|
+
}),
|
|
26
|
+
...(ownerState.variant === "infobox" && {
|
|
27
|
+
borderStyle: "solid",
|
|
28
|
+
borderWidth: 1,
|
|
29
|
+
"&:not(:last-child)": {
|
|
30
|
+
marginBottom: theme.spacing(4),
|
|
31
|
+
},
|
|
32
|
+
}),
|
|
33
|
+
...(ownerState.variant === "banner" && {
|
|
34
|
+
borderWidth: 0,
|
|
33
35
|
}),
|
|
34
36
|
}),
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
37
|
+
icon: ({ ownerState, theme }) => ({
|
|
38
|
+
marginRight: theme.spacing(4),
|
|
39
|
+
padding: 0,
|
|
40
|
+
fontSize: "1.429rem",
|
|
41
|
+
opacity: 1,
|
|
42
|
+
...(ownerState.severity && {
|
|
43
|
+
color: theme.palette[ownerState.severity].main,
|
|
44
|
+
}),
|
|
45
|
+
...(ownerState.severity === "warning" && {
|
|
46
|
+
color: theme.palette[ownerState.severity].dark,
|
|
38
47
|
}),
|
|
39
48
|
}),
|
|
49
|
+
message: ({ theme }) => ({
|
|
50
|
+
padding: 0,
|
|
51
|
+
lineHeight: theme.typography.body.lineHeight,
|
|
52
|
+
}),
|
|
40
53
|
},
|
|
41
54
|
},
|
|
42
|
-
|
|
43
|
-
styleOverrides: {
|
|
44
|
-
root: {
|
|
45
|
-
color: "#1d1d21",
|
|
46
|
-
lineHeight: "1.42857143",
|
|
47
|
-
fontSize: "1rem",
|
|
48
|
-
fontWeight: 600,
|
|
49
|
-
},
|
|
50
|
-
},
|
|
51
|
-
},
|
|
52
|
-
MuiInputBase: {
|
|
53
|
-
styleOverrides: {
|
|
54
|
-
root: {
|
|
55
|
-
lineHeight: "1.14285714",
|
|
56
|
-
},
|
|
57
|
-
input: {
|
|
58
|
-
boxSizing: "border-box",
|
|
59
|
-
height: "auto",
|
|
60
|
-
},
|
|
61
|
-
},
|
|
62
|
-
},
|
|
63
|
-
MuiTypography: {
|
|
64
|
-
defaultProps: {
|
|
65
|
-
fontFamily:
|
|
66
|
-
"'Public Sans', '-apple-system', 'BlinkMacSystemFont', 'Segoe UI', 'Roboto', 'Oxygen-Sans', 'Ubuntu', 'Cantarell', 'Helvetica Neue', 'Noto Sans Arabic', sans-serif",
|
|
67
|
-
},
|
|
68
|
-
styleOverrides: {
|
|
69
|
-
paragraph: {
|
|
70
|
-
marginBottom: "1.14285714rem",
|
|
71
|
-
},
|
|
72
|
-
},
|
|
73
|
-
},
|
|
74
|
-
MuiLink: {
|
|
55
|
+
MuiAlertTitle: {
|
|
75
56
|
styleOverrides: {
|
|
76
|
-
root: {
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
},
|
|
84
|
-
|
|
85
|
-
"&:focus-visible": {
|
|
86
|
-
outlineColor: "#1662dd",
|
|
87
|
-
outlineOffset: "2px",
|
|
88
|
-
outlineStyle: "solid",
|
|
89
|
-
outlineWidth: "1px",
|
|
90
|
-
},
|
|
91
|
-
|
|
92
|
-
"&:visited": {
|
|
93
|
-
color: "#1662dd",
|
|
94
|
-
},
|
|
95
|
-
|
|
96
|
-
".Link-indicator, .Link-icon": {
|
|
97
|
-
display: "inline-block",
|
|
98
|
-
height: "1em",
|
|
99
|
-
lineHeight: 1,
|
|
100
|
-
},
|
|
101
|
-
|
|
102
|
-
".Link-indicator": {
|
|
103
|
-
marginInlineStart: "0.57142857rem",
|
|
104
|
-
},
|
|
105
|
-
|
|
106
|
-
".Link-icon": {
|
|
107
|
-
marginInlineEnd: "0.57142857rem",
|
|
108
|
-
},
|
|
109
|
-
svg: {
|
|
110
|
-
fontSize: "1rem",
|
|
111
|
-
height: "1em",
|
|
112
|
-
position: "relative",
|
|
113
|
-
top: "-0.0625em",
|
|
114
|
-
verticalAlign: "middle",
|
|
115
|
-
width: "1em",
|
|
116
|
-
},
|
|
117
|
-
},
|
|
118
|
-
},
|
|
119
|
-
variants: [
|
|
120
|
-
{
|
|
121
|
-
props: { variant: "monochrome" },
|
|
122
|
-
style: {
|
|
123
|
-
color: "#1d1d21",
|
|
124
|
-
textDecoration: "underline",
|
|
125
|
-
|
|
126
|
-
"&:hover": {
|
|
127
|
-
color: "#6e6e78",
|
|
128
|
-
},
|
|
129
|
-
|
|
130
|
-
"&:focus-visible": {
|
|
131
|
-
outlineColor: "#1662dd",
|
|
132
|
-
outlineOffset: "2px",
|
|
133
|
-
outlineStyle: "solid",
|
|
134
|
-
outlineWidth: "1px",
|
|
135
|
-
},
|
|
136
|
-
|
|
137
|
-
"&:visited": {
|
|
138
|
-
color: "#1d1d21",
|
|
139
|
-
},
|
|
140
|
-
},
|
|
141
|
-
},
|
|
142
|
-
],
|
|
143
|
-
},
|
|
144
|
-
MuiButtonBase: {
|
|
145
|
-
defaultProps: {
|
|
146
|
-
disableRipple: true,
|
|
57
|
+
root: ({ theme }) => ({
|
|
58
|
+
marginTop: 0,
|
|
59
|
+
marginBottom: theme.spacing(1),
|
|
60
|
+
lineHeight: theme.typography.h6.lineHeight,
|
|
61
|
+
fontSize: theme.typography.h6.fontSize,
|
|
62
|
+
fontWeight: theme.typography.fontWeightBold,
|
|
63
|
+
}),
|
|
147
64
|
},
|
|
148
65
|
},
|
|
149
66
|
MuiButton: {
|
|
@@ -206,8 +123,9 @@ export const components: ThemeOptions["components"] = {
|
|
|
206
123
|
style: {
|
|
207
124
|
backgroundColor: "#da372c",
|
|
208
125
|
color: "#ffffff",
|
|
126
|
+
borderColor: "transparent",
|
|
127
|
+
|
|
209
128
|
"&:hover": {
|
|
210
|
-
borderColor: "transparent",
|
|
211
129
|
backgroundColor: "#640019",
|
|
212
130
|
},
|
|
213
131
|
|
|
@@ -217,13 +135,11 @@ export const components: ThemeOptions["components"] = {
|
|
|
217
135
|
},
|
|
218
136
|
|
|
219
137
|
"&:active": {
|
|
220
|
-
borderColor: "transparent",
|
|
221
138
|
backgroundColor: "#da372c",
|
|
222
139
|
},
|
|
223
140
|
|
|
224
141
|
"&:disabled": {
|
|
225
142
|
color: "#ffffff",
|
|
226
|
-
borderColor: "#f88c90",
|
|
227
143
|
backgroundColor: "#f88c90",
|
|
228
144
|
},
|
|
229
145
|
},
|
|
@@ -278,10 +194,20 @@ export const components: ThemeOptions["components"] = {
|
|
|
278
194
|
},
|
|
279
195
|
},
|
|
280
196
|
},
|
|
197
|
+
{
|
|
198
|
+
// icon only
|
|
199
|
+
props: { children: "" },
|
|
200
|
+
style: {
|
|
201
|
+
minWidth: "auto",
|
|
202
|
+
|
|
203
|
+
".MuiButton-startIcon": {
|
|
204
|
+
margin: "0",
|
|
205
|
+
},
|
|
206
|
+
},
|
|
207
|
+
},
|
|
281
208
|
],
|
|
282
209
|
styleOverrides: {
|
|
283
|
-
root: (
|
|
284
|
-
...ownerState,
|
|
210
|
+
root: () => ({
|
|
285
211
|
fontWeight: 600,
|
|
286
212
|
paddingBlock: "0.85714286rem",
|
|
287
213
|
paddingInline: "0.85714286rem",
|
|
@@ -315,7 +241,268 @@ export const components: ThemeOptions["components"] = {
|
|
|
315
241
|
cursor: "not-allowed",
|
|
316
242
|
pointerEvents: "inherit", // in order to have cursor: not-allowed, must change pointer-events from 'none'
|
|
317
243
|
},
|
|
244
|
+
|
|
245
|
+
".MuiButton-startIcon > *:nth-of-type(1)": {
|
|
246
|
+
fontSize: "inherit",
|
|
247
|
+
},
|
|
248
|
+
}),
|
|
249
|
+
},
|
|
250
|
+
},
|
|
251
|
+
MuiButtonBase: {
|
|
252
|
+
defaultProps: {
|
|
253
|
+
disableRipple: true,
|
|
254
|
+
},
|
|
255
|
+
},
|
|
256
|
+
MuiCssBaseline: {
|
|
257
|
+
styleOverrides: {
|
|
258
|
+
boxSizing: "border-box",
|
|
259
|
+
fontFeatureSettings: "'lnum','pnum'",
|
|
260
|
+
fontVariant: "normal",
|
|
261
|
+
},
|
|
262
|
+
},
|
|
263
|
+
MuiCheckbox: {
|
|
264
|
+
defaultProps: {
|
|
265
|
+
size: "small",
|
|
266
|
+
},
|
|
267
|
+
styleOverrides: {
|
|
268
|
+
root: {
|
|
269
|
+
borderRadius: "4px",
|
|
270
|
+
"&:hover": {
|
|
271
|
+
backgroundColor: "transparent",
|
|
272
|
+
},
|
|
273
|
+
padding: 0,
|
|
274
|
+
".Mui-error > &": {
|
|
275
|
+
color: "#da372c",
|
|
276
|
+
"&:hover": {
|
|
277
|
+
color: "#640019",
|
|
278
|
+
},
|
|
279
|
+
},
|
|
280
|
+
".Mui-error > &.Mui-checked": {
|
|
281
|
+
"&:hover": {
|
|
282
|
+
color: "#640019",
|
|
283
|
+
},
|
|
284
|
+
},
|
|
285
|
+
"&.Mui-focusVisible": {
|
|
286
|
+
outlineColor: "#1662dd",
|
|
287
|
+
outlineOffset: 0,
|
|
288
|
+
outlineStyle: "solid",
|
|
289
|
+
outlineWidth: "2px",
|
|
290
|
+
},
|
|
291
|
+
},
|
|
292
|
+
},
|
|
293
|
+
},
|
|
294
|
+
MuiCircularProgress: {
|
|
295
|
+
defaultProps: {
|
|
296
|
+
size: "1.14285714rem",
|
|
297
|
+
thickness: 8,
|
|
298
|
+
color: "primary",
|
|
299
|
+
disableShrink: false,
|
|
300
|
+
variant: "indeterminate",
|
|
301
|
+
},
|
|
302
|
+
styleOverrides: {
|
|
303
|
+
root: ({ ownerState }) => ({
|
|
304
|
+
...(ownerState.color !== "inherit" && {
|
|
305
|
+
color: "#00297a",
|
|
306
|
+
}),
|
|
307
|
+
}),
|
|
308
|
+
circle: ({ ownerState }) => ({
|
|
309
|
+
...(ownerState.variant === "indeterminate" && {
|
|
310
|
+
strokeDasharray: "160%, 360%",
|
|
311
|
+
}),
|
|
312
|
+
}),
|
|
313
|
+
},
|
|
314
|
+
},
|
|
315
|
+
MuiFormControlLabel: {
|
|
316
|
+
styleOverrides: {
|
|
317
|
+
root: ({ ownerState }) => ({
|
|
318
|
+
gap: "0.57142857rem",
|
|
319
|
+
marginLeft: 0,
|
|
320
|
+
marginRight: 0, // used for row presentation of radio/checkbox
|
|
321
|
+
...(ownerState.labelPlacement === "start" && {
|
|
322
|
+
marginLeft: 0, // used for row presentation of radio/checkbox
|
|
323
|
+
marginRight: 0,
|
|
324
|
+
}),
|
|
325
|
+
...(ownerState.labelPlacement === "top" && {
|
|
326
|
+
marginLeft: 0,
|
|
327
|
+
}),
|
|
328
|
+
...(ownerState.labelPlacement === "bottom" && {
|
|
329
|
+
marginLeft: 0,
|
|
330
|
+
}),
|
|
331
|
+
"&:not(:last-child)": {
|
|
332
|
+
marginBottom: "0.57142857rem",
|
|
333
|
+
},
|
|
334
|
+
"&.Mui-disabled": {
|
|
335
|
+
pointerEvents: "none",
|
|
336
|
+
},
|
|
337
|
+
//[`&:hover ${radioClasses.root}:not(${radioClasses.checked})`]: {
|
|
338
|
+
//color: "#1d1d21",
|
|
339
|
+
//},
|
|
340
|
+
"&:hover .MuiRadio-root, &:hover .MuiCheckbox-root": {
|
|
341
|
+
color: "#1d1d21",
|
|
342
|
+
},
|
|
343
|
+
"&:hover .MuiRadio-root.Mui-checked, &:hover .MuiCheckbox-root.Mui-checked":
|
|
344
|
+
{
|
|
345
|
+
color: "#00297a",
|
|
346
|
+
},
|
|
347
|
+
"&.Mui-error:hover .MuiRadio-root, &.Mui-error:hover .MuiCheckbox-root":
|
|
348
|
+
{
|
|
349
|
+
color: "#640019",
|
|
350
|
+
},
|
|
351
|
+
"&.Mui-error:hover .MuiRadio-root.Mui-checked, &.Mui-error:hover .MuiCheckbox-root.Mui-checked":
|
|
352
|
+
{
|
|
353
|
+
color: "#640019",
|
|
354
|
+
},
|
|
318
355
|
}),
|
|
319
356
|
},
|
|
320
357
|
},
|
|
358
|
+
MuiFormHelperText: {
|
|
359
|
+
defaultProps: {
|
|
360
|
+
variant: "standard",
|
|
361
|
+
},
|
|
362
|
+
styleOverrides: {
|
|
363
|
+
root: {
|
|
364
|
+
lineHeight: "1.33333333",
|
|
365
|
+
marginTop: "0.57142857rem",
|
|
366
|
+
".MuiFormLabel-root + &": {
|
|
367
|
+
marginTop: "-0.28571429rem",
|
|
368
|
+
color: "#6e6e78",
|
|
369
|
+
},
|
|
370
|
+
marginBottom: "0.57142857rem",
|
|
371
|
+
"&:last-child": {
|
|
372
|
+
marginBottom: 0,
|
|
373
|
+
},
|
|
374
|
+
},
|
|
375
|
+
},
|
|
376
|
+
},
|
|
377
|
+
MuiFormLabel: {
|
|
378
|
+
styleOverrides: {
|
|
379
|
+
root: {
|
|
380
|
+
color: "#1d1d21",
|
|
381
|
+
lineHeight: "1.14285714",
|
|
382
|
+
fontSize: "1rem",
|
|
383
|
+
fontWeight: 600,
|
|
384
|
+
marginBottom: "0.57142857rem",
|
|
385
|
+
"&.Mui-focused, &.Mui-error, &.Mui-disabled": {
|
|
386
|
+
color: "#1d1d21",
|
|
387
|
+
},
|
|
388
|
+
},
|
|
389
|
+
},
|
|
390
|
+
},
|
|
391
|
+
MuiInputBase: {
|
|
392
|
+
styleOverrides: {
|
|
393
|
+
root: {
|
|
394
|
+
lineHeight: "1.14285714",
|
|
395
|
+
},
|
|
396
|
+
input: {
|
|
397
|
+
boxSizing: "border-box",
|
|
398
|
+
height: "auto",
|
|
399
|
+
},
|
|
400
|
+
},
|
|
401
|
+
},
|
|
402
|
+
MuiLink: {
|
|
403
|
+
styleOverrides: {
|
|
404
|
+
root: {
|
|
405
|
+
color: "#1662dd",
|
|
406
|
+
textDecoration: "none",
|
|
407
|
+
|
|
408
|
+
"&:hover": {
|
|
409
|
+
color: "#1662dd",
|
|
410
|
+
textDecoration: "underline",
|
|
411
|
+
},
|
|
412
|
+
|
|
413
|
+
"&:focus-visible": {
|
|
414
|
+
outlineColor: "#1662dd",
|
|
415
|
+
outlineOffset: "2px",
|
|
416
|
+
outlineStyle: "solid",
|
|
417
|
+
outlineWidth: "1px",
|
|
418
|
+
},
|
|
419
|
+
|
|
420
|
+
"&:visited": {
|
|
421
|
+
color: "#1662dd",
|
|
422
|
+
},
|
|
423
|
+
|
|
424
|
+
".Link-indicator, .Link-icon": {
|
|
425
|
+
display: "inline-block",
|
|
426
|
+
height: "1em",
|
|
427
|
+
lineHeight: 1,
|
|
428
|
+
},
|
|
429
|
+
|
|
430
|
+
".Link-indicator": {
|
|
431
|
+
marginInlineStart: "0.57142857rem",
|
|
432
|
+
},
|
|
433
|
+
|
|
434
|
+
".Link-icon": {
|
|
435
|
+
marginInlineEnd: "0.57142857rem",
|
|
436
|
+
},
|
|
437
|
+
svg: {
|
|
438
|
+
fontSize: "1rem",
|
|
439
|
+
height: "1em",
|
|
440
|
+
position: "relative",
|
|
441
|
+
top: "-0.0625em",
|
|
442
|
+
verticalAlign: "middle",
|
|
443
|
+
width: "1em",
|
|
444
|
+
},
|
|
445
|
+
},
|
|
446
|
+
},
|
|
447
|
+
variants: [
|
|
448
|
+
{
|
|
449
|
+
props: { variant: "monochrome" },
|
|
450
|
+
style: {
|
|
451
|
+
color: "#1d1d21",
|
|
452
|
+
textDecoration: "underline",
|
|
453
|
+
|
|
454
|
+
"&:hover": {
|
|
455
|
+
color: "#6e6e78",
|
|
456
|
+
},
|
|
457
|
+
|
|
458
|
+
"&:focus-visible": {
|
|
459
|
+
outlineColor: "#1662dd",
|
|
460
|
+
outlineOffset: "2px",
|
|
461
|
+
outlineStyle: "solid",
|
|
462
|
+
outlineWidth: "1px",
|
|
463
|
+
},
|
|
464
|
+
|
|
465
|
+
"&:visited": {
|
|
466
|
+
color: "#1d1d21",
|
|
467
|
+
},
|
|
468
|
+
},
|
|
469
|
+
},
|
|
470
|
+
],
|
|
471
|
+
},
|
|
472
|
+
MuiRadio: {
|
|
473
|
+
defaultProps: {
|
|
474
|
+
size: "small",
|
|
475
|
+
},
|
|
476
|
+
styleOverrides: {
|
|
477
|
+
root: {
|
|
478
|
+
"&:hover": {
|
|
479
|
+
backgroundColor: "transparent",
|
|
480
|
+
},
|
|
481
|
+
padding: 0,
|
|
482
|
+
".Mui-error > &": {
|
|
483
|
+
color: "#da372c",
|
|
484
|
+
"&:hover": {
|
|
485
|
+
color: "#640019",
|
|
486
|
+
},
|
|
487
|
+
},
|
|
488
|
+
"&.Mui-focusVisible": {
|
|
489
|
+
outlineColor: "#1662dd",
|
|
490
|
+
outlineOffset: 0,
|
|
491
|
+
outlineStyle: "solid",
|
|
492
|
+
outlineWidth: "2px",
|
|
493
|
+
},
|
|
494
|
+
},
|
|
495
|
+
},
|
|
496
|
+
},
|
|
497
|
+
MuiTypography: {
|
|
498
|
+
defaultProps: {
|
|
499
|
+
fontFamily:
|
|
500
|
+
"'Public Sans', '-apple-system', 'BlinkMacSystemFont', 'Segoe UI', 'Roboto', 'Oxygen-Sans', 'Ubuntu', 'Cantarell', 'Helvetica Neue', 'Noto Sans Arabic', sans-serif",
|
|
501
|
+
},
|
|
502
|
+
styleOverrides: {
|
|
503
|
+
paragraph: {
|
|
504
|
+
marginBottom: "1.14285714rem",
|
|
505
|
+
},
|
|
506
|
+
},
|
|
507
|
+
},
|
|
321
508
|
};
|
|
@@ -10,6 +10,47 @@
|
|
|
10
10
|
* See the License for the specific language governing permissions and limitations under the License.
|
|
11
11
|
*/
|
|
12
12
|
|
|
13
|
+
declare module "@mui/material/Alert" {
|
|
14
|
+
interface AlertPropsVariantOverrides {
|
|
15
|
+
// Disable Mui defaults
|
|
16
|
+
filled: false;
|
|
17
|
+
outlined: false;
|
|
18
|
+
standard: false;
|
|
19
|
+
// Enable Odyssey variants
|
|
20
|
+
banner: true;
|
|
21
|
+
infobox: true;
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
declare module "@mui/material/Button" {
|
|
26
|
+
interface ButtonPropsVariantOverrides {
|
|
27
|
+
floating: true;
|
|
28
|
+
primary: true;
|
|
29
|
+
secondary: true;
|
|
30
|
+
danger: true;
|
|
31
|
+
text: false;
|
|
32
|
+
contained: false;
|
|
33
|
+
outlined: false;
|
|
34
|
+
}
|
|
35
|
+
interface ButtonPropsSizeOverrides {
|
|
36
|
+
s: true;
|
|
37
|
+
m: true;
|
|
38
|
+
l: true;
|
|
39
|
+
small: false;
|
|
40
|
+
medium: false;
|
|
41
|
+
large: false;
|
|
42
|
+
}
|
|
43
|
+
interface ButtonPropsColorOverrides {
|
|
44
|
+
inherit: false;
|
|
45
|
+
primary: false;
|
|
46
|
+
secondary: false;
|
|
47
|
+
error: false;
|
|
48
|
+
info: false;
|
|
49
|
+
warning: false;
|
|
50
|
+
success: false;
|
|
51
|
+
}
|
|
52
|
+
}
|
|
53
|
+
|
|
13
54
|
declare module "@mui/material/Link" {
|
|
14
55
|
interface LinkPropsVariantOverrides {
|
|
15
56
|
default: true;
|
|
@@ -46,33 +87,5 @@ declare module "@mui/material/Link" {
|
|
|
46
87
|
success: false;
|
|
47
88
|
}
|
|
48
89
|
}
|
|
49
|
-
declare module "@mui/material/Button" {
|
|
50
|
-
interface ButtonPropsVariantOverrides {
|
|
51
|
-
floating: true;
|
|
52
|
-
primary: true;
|
|
53
|
-
secondary: true;
|
|
54
|
-
danger: true;
|
|
55
|
-
text: false;
|
|
56
|
-
contained: false;
|
|
57
|
-
outlined: false;
|
|
58
|
-
}
|
|
59
|
-
interface ButtonPropsSizeOverrides {
|
|
60
|
-
s: true;
|
|
61
|
-
m: true;
|
|
62
|
-
l: true;
|
|
63
|
-
small: false;
|
|
64
|
-
medium: false;
|
|
65
|
-
large: false;
|
|
66
|
-
}
|
|
67
|
-
interface ButtonPropsColorOverrides {
|
|
68
|
-
inherit: false;
|
|
69
|
-
primary: false;
|
|
70
|
-
secondary: false;
|
|
71
|
-
error: false;
|
|
72
|
-
info: false;
|
|
73
|
-
warning: false;
|
|
74
|
-
success: false;
|
|
75
|
-
}
|
|
76
|
-
}
|
|
77
90
|
|
|
78
91
|
export {};
|
|
@@ -11,48 +11,54 @@
|
|
|
11
11
|
*/
|
|
12
12
|
|
|
13
13
|
import type { ThemeOptions } from "@mui/material";
|
|
14
|
+
import * as Tokens from "@okta/odyssey-design-tokens";
|
|
14
15
|
|
|
15
16
|
export const palette: ThemeOptions["palette"] = {
|
|
16
17
|
mode: "light",
|
|
17
18
|
common: {
|
|
18
|
-
black:
|
|
19
|
-
white:
|
|
19
|
+
black: Tokens.ColorNeutralDark,
|
|
20
|
+
white: Tokens.ColorPaletteNeutralWhite,
|
|
20
21
|
},
|
|
21
22
|
primary: {
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
23
|
+
lighter: Tokens.ColorPaletteBlue000,
|
|
24
|
+
light: Tokens.ColorPaletteBlue300,
|
|
25
|
+
main: Tokens.ColorPaletteBlue500,
|
|
26
|
+
dark: Tokens.ColorPaletteBlue900,
|
|
27
|
+
contrastText: Tokens.ColorTextBodyInverse,
|
|
26
28
|
},
|
|
27
29
|
secondary: {
|
|
28
30
|
light: "#80C7CA",
|
|
29
|
-
main:
|
|
31
|
+
main: Tokens.ColorPaletteTurquoise500,
|
|
30
32
|
dark: "#004650",
|
|
31
|
-
contrastText:
|
|
33
|
+
contrastText: Tokens.ColorTextBodyInverse,
|
|
32
34
|
},
|
|
33
35
|
error: {
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
36
|
+
lighter: Tokens.ColorPaletteRed000,
|
|
37
|
+
light: Tokens.ColorPaletteRed300,
|
|
38
|
+
main: Tokens.ColorPaletteRed500,
|
|
39
|
+
dark: Tokens.ColorPaletteRed900,
|
|
40
|
+
contrastText: Tokens.ColorTextBodyInverse,
|
|
38
41
|
},
|
|
39
42
|
warning: {
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
43
|
+
lighter: Tokens.ColorPaletteYellow000,
|
|
44
|
+
light: Tokens.ColorPaletteYellow300,
|
|
45
|
+
main: Tokens.ColorPaletteYellow500,
|
|
46
|
+
dark: Tokens.ColorPaletteYellow900,
|
|
47
|
+
contrastText: Tokens.ColorTextBody,
|
|
44
48
|
},
|
|
45
49
|
info: {
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
+
lighter: Tokens.ColorPaletteBlue000,
|
|
51
|
+
light: Tokens.ColorPaletteBlue300,
|
|
52
|
+
main: Tokens.ColorPaletteBlue500,
|
|
53
|
+
dark: Tokens.ColorPaletteBlue900,
|
|
54
|
+
contrastText: Tokens.ColorTextBodyInverse,
|
|
50
55
|
},
|
|
51
56
|
success: {
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
57
|
+
lighter: Tokens.ColorPaletteGreen000,
|
|
58
|
+
light: Tokens.ColorPaletteGreen300,
|
|
59
|
+
main: Tokens.ColorPaletteGreen500,
|
|
60
|
+
dark: Tokens.ColorPaletteGreen900,
|
|
61
|
+
contrastText: Tokens.ColorTextBodyInverse,
|
|
56
62
|
},
|
|
57
63
|
grey: {
|
|
58
64
|
50: "#f5f5f6",
|
|
@@ -72,16 +78,14 @@ export const palette: ThemeOptions["palette"] = {
|
|
|
72
78
|
A700: "#585862",
|
|
73
79
|
},
|
|
74
80
|
text: {
|
|
75
|
-
primary:
|
|
76
|
-
secondary:
|
|
77
|
-
// We do not currently have a unique disabled color.
|
|
78
|
-
disabled: "#6e6e78",
|
|
81
|
+
primary: Tokens.ColorNeutralDark,
|
|
82
|
+
secondary: Tokens.ColorNeutralBase,
|
|
83
|
+
disabled: Tokens.ColorNeutralBase, // We do not currently have a unique disabled color.
|
|
79
84
|
},
|
|
80
|
-
|
|
81
|
-
divider: "#d7d7dc",
|
|
85
|
+
divider: Tokens.ColorBorderDisplay,
|
|
82
86
|
background: {
|
|
83
|
-
paper:
|
|
84
|
-
default:
|
|
87
|
+
paper: Tokens.ColorBackgroundBase,
|
|
88
|
+
default: Tokens.ColorBackgroundBase,
|
|
85
89
|
},
|
|
86
90
|
action: {
|
|
87
91
|
// We have no equivalents here. It's likely we will update these as their uses are discovered.
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
* Copyright (c) 2022-present, Okta, Inc. and/or its affiliates. All rights reserved.
|
|
3
|
+
* The Okta software accompanied by this notice is provided pursuant to the Apache License, Version 2.0 (the "License.")
|
|
4
|
+
*
|
|
5
|
+
* You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0.
|
|
6
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
7
|
+
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
|
|
8
|
+
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
9
|
+
*
|
|
10
|
+
* See the License for the specific language governing permissions and limitations under the License.
|
|
11
|
+
*/
|
|
12
|
+
|
|
13
|
+
declare module "@mui/material/styles" {
|
|
14
|
+
interface PaletteColor {
|
|
15
|
+
lighter?: string;
|
|
16
|
+
}
|
|
17
|
+
interface SimplePaletteColorOptions {
|
|
18
|
+
lighter?: string;
|
|
19
|
+
}
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
export {};
|