@okta/odyssey-react-mui 0.14.4 → 0.15.0

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.
Files changed (48) hide show
  1. package/CHANGELOG.md +41 -0
  2. package/README.md +29 -0
  3. package/dist/components/Icon/UserGroup.d.ts +16 -0
  4. package/dist/components/Icon/UserGroup.d.ts.map +1 -0
  5. package/dist/components/Icon/UserGroup.js +34 -0
  6. package/dist/components/Icon/UserGroup.js.map +1 -0
  7. package/dist/components/Icon/index.d.ts +2 -0
  8. package/dist/components/Icon/index.d.ts.map +1 -1
  9. package/dist/components/Icon/index.js +3 -0
  10. package/dist/components/Icon/index.js.map +1 -1
  11. package/dist/themes/odyssey/components.d.ts.map +1 -1
  12. package/dist/themes/odyssey/components.js +240 -23
  13. package/dist/themes/odyssey/components.js.map +1 -1
  14. package/dist/themes/odyssey/components.types.d.ts +1 -0
  15. package/dist/themes/odyssey/components.types.d.ts.map +1 -1
  16. package/dist/themes/odyssey/components.types.js.map +1 -1
  17. package/dist/themes/odyssey/mixins.d.ts +14 -0
  18. package/dist/themes/odyssey/mixins.d.ts.map +1 -0
  19. package/dist/themes/odyssey/mixins.js +19 -0
  20. package/dist/themes/odyssey/mixins.js.map +1 -0
  21. package/dist/themes/odyssey/mixins.types.d.ts +27 -0
  22. package/dist/themes/odyssey/mixins.types.d.ts.map +1 -0
  23. package/dist/themes/odyssey/mixins.types.js +13 -0
  24. package/dist/themes/odyssey/mixins.types.js.map +1 -0
  25. package/dist/themes/odyssey/palette.js +4 -4
  26. package/dist/themes/odyssey/palette.js.map +1 -1
  27. package/dist/themes/odyssey/theme.d.ts +1 -0
  28. package/dist/themes/odyssey/theme.d.ts.map +1 -1
  29. package/dist/themes/odyssey/theme.js +3 -0
  30. package/dist/themes/odyssey/theme.js.map +1 -1
  31. package/dist/themes/odyssey/typography.d.ts.map +1 -1
  32. package/dist/themes/odyssey/typography.js +14 -9
  33. package/dist/themes/odyssey/typography.js.map +1 -1
  34. package/dist/themes/odyssey/typography.types.d.ts +9 -4
  35. package/dist/themes/odyssey/typography.types.d.ts.map +1 -1
  36. package/dist/themes/odyssey/typography.types.js +11 -0
  37. package/dist/themes/odyssey/typography.types.js.map +1 -1
  38. package/package.json +4 -4
  39. package/src/components/Icon/UserGroup.tsx +44 -0
  40. package/src/components/Icon/index.tsx +4 -0
  41. package/src/themes/odyssey/{components.ts → components.tsx} +236 -20
  42. package/src/themes/odyssey/components.types.ts +1 -0
  43. package/src/themes/odyssey/mixins.ts +21 -0
  44. package/src/themes/odyssey/mixins.types.ts +29 -0
  45. package/src/themes/odyssey/palette.ts +4 -4
  46. package/src/themes/odyssey/theme.ts +3 -0
  47. package/src/themes/odyssey/typography.ts +13 -8
  48. package/src/themes/odyssey/typography.types.ts +10 -4
@@ -12,17 +12,38 @@
12
12
 
13
13
  import type { ThemeOptions } from "@mui/material";
14
14
  //import radioClasses from "@mui/material";
15
+ import { outlinedInputClasses } from "@mui/material/OutlinedInput";
16
+ import {
17
+ AlertTriangleFilledIcon,
18
+ CheckCircleFilledIcon,
19
+ InformationCircleFilledIcon,
20
+ } from "../../components/Icon";
15
21
 
16
22
  export const components: ThemeOptions["components"] = {
17
23
  MuiAlert: {
24
+ defaultProps: {
25
+ iconMapping: {
26
+ error: <AlertTriangleFilledIcon />,
27
+ info: <InformationCircleFilledIcon />,
28
+ success: <CheckCircleFilledIcon />,
29
+ warning: <AlertTriangleFilledIcon />,
30
+ },
31
+ },
18
32
  styleOverrides: {
19
33
  root: ({ ownerState, theme }) => ({
20
34
  padding: theme.spacing(4),
35
+ gap: theme.spacing(4),
21
36
  color: theme.palette.text.primary,
22
37
  ...(ownerState.severity && {
23
38
  backgroundColor: theme.palette[ownerState.severity].lighter,
24
39
  borderColor: theme.palette[ownerState.severity].light,
25
40
  }),
41
+ ...(ownerState.variant === "banner" && {
42
+ position: "relative",
43
+ justifyContent: "center",
44
+ alignItems: "center",
45
+ borderWidth: 0,
46
+ }),
26
47
  ...(ownerState.variant === "infobox" && {
27
48
  borderStyle: "solid",
28
49
  borderWidth: 1,
@@ -30,12 +51,38 @@ export const components: ThemeOptions["components"] = {
30
51
  marginBottom: theme.spacing(4),
31
52
  },
32
53
  }),
54
+ ...(ownerState.variant === "toast" && {
55
+ maxWidth: theme.mixins.maxWidth,
56
+ borderStyle: "solid",
57
+ borderWidth: 1,
58
+ position: "relative",
59
+ alignItems: "start",
60
+ }),
61
+ }),
62
+ action: ({ ownerState, theme }) => ({
33
63
  ...(ownerState.variant === "banner" && {
34
- borderWidth: 0,
64
+ padding: 0,
65
+ marginRight: 0,
66
+ top: "50%",
67
+ right: theme.spacing(4),
68
+ position: "absolute",
69
+ transform: "translateY(-50%)",
70
+ }),
71
+ ...(ownerState.variant === "toast" && {
72
+ position: "absolute",
73
+ top: `calc(${theme.spacing(4)} - ${theme.spacing(1)} + ${
74
+ theme.mixins.borderWidth
75
+ })`,
76
+ right: `calc(${theme.spacing(4)} - ${theme.spacing(1)} + ${
77
+ theme.mixins.borderWidth
78
+ })`,
79
+ padding: 0,
80
+ marginLeft: 0,
81
+ marginRight: 0,
35
82
  }),
36
83
  }),
37
84
  icon: ({ ownerState, theme }) => ({
38
- marginRight: theme.spacing(4),
85
+ marginRight: 0,
39
86
  padding: 0,
40
87
  fontSize: "1.429rem",
41
88
  opacity: 1,
@@ -46,9 +93,17 @@ export const components: ThemeOptions["components"] = {
46
93
  color: theme.palette[ownerState.severity].dark,
47
94
  }),
48
95
  }),
49
- message: ({ theme }) => ({
96
+ message: ({ ownerState, theme }) => ({
50
97
  padding: 0,
51
- lineHeight: theme.typography.body.lineHeight,
98
+ lineHeight: theme.typography.body1.lineHeight,
99
+ ...(ownerState.variant === "banner" && {
100
+ display: "flex",
101
+ justifyContent: "space-between",
102
+ gap: theme.spacing(4),
103
+ }),
104
+ ...(ownerState.variant === "toast" && {
105
+ flexGrow: 1,
106
+ }),
52
107
  }),
53
108
  },
54
109
  },
@@ -80,6 +135,10 @@ export const components: ThemeOptions["components"] = {
80
135
  backgroundColor: theme.palette.primary.dark,
81
136
  },
82
137
 
138
+ "&:focus-visible": {
139
+ outlineColor: theme.palette.primary.main,
140
+ },
141
+
83
142
  "&:active": {
84
143
  backgroundColor: theme.palette.primary.main,
85
144
  },
@@ -96,15 +155,14 @@ export const components: ThemeOptions["components"] = {
96
155
  backgroundColor: theme.palette.grey[50],
97
156
  borderColor: theme.palette.grey[200],
98
157
  color: theme.palette.text.primary,
99
- "&:hover": {
100
- background: theme.palette.primary.lighter,
158
+ "&:hover, &:focus-visible": {
159
+ backgroundColor: theme.palette.primary.lighter,
101
160
  borderColor: theme.palette.primary.light,
102
161
  color: theme.palette.primary.main,
103
162
  },
104
163
 
105
164
  "&:focus-visible": {
106
- backgroundColor: theme.palette.primary.main,
107
- color: theme.palette.primary.main,
165
+ outlineColor: theme.palette.primary.main,
108
166
  },
109
167
 
110
168
  "&:active": {
@@ -130,7 +188,7 @@ export const components: ThemeOptions["components"] = {
130
188
  },
131
189
 
132
190
  "&:focus-visible": {
133
- outlineColor: theme.palette.error.light,
191
+ outlineColor: theme.palette.error.main,
134
192
  backgroundColor: theme.palette.error.dark,
135
193
  },
136
194
 
@@ -155,6 +213,9 @@ export const components: ThemeOptions["components"] = {
155
213
  backgroundColor: "rgba(29, 29, 33, 0.1)",
156
214
  borderColor: "transparent",
157
215
  },
216
+ "&:focus-visible": {
217
+ outlineColor: theme.palette.primary.main,
218
+ },
158
219
  "&:active": {
159
220
  backgroundColor: "rgba(29, 29, 33, 0.2)",
160
221
  borderColor: "transparent",
@@ -226,7 +287,7 @@ export const components: ThemeOptions["components"] = {
226
287
  lineHeight: "1.14285714",
227
288
  whiteSpace: "nowrap",
228
289
 
229
- "& + &": {
290
+ ".MuiButton-root + &": {
230
291
  marginInlineStart: theme.spacing(2),
231
292
  },
232
293
 
@@ -313,17 +374,26 @@ export const components: ThemeOptions["components"] = {
313
374
  },
314
375
  },
315
376
  MuiFormControl: {
377
+ defaultProps: {
378
+ margin: "normal",
379
+ },
316
380
  styleOverrides: {
317
381
  root: ({ ownerState, theme }) => ({
318
382
  width: "100%",
319
383
  maxWidth: "32rem",
320
384
  ...(ownerState.margin === "normal" && {
321
385
  marginTop: 0,
322
- marginBottom: theme.spacing(4),
386
+ marginBottom: theme.spacing(5),
387
+ "&:last-child": {
388
+ marginBottom: 0,
389
+ },
323
390
  }),
324
391
  ...(ownerState.margin === "dense" && {
325
392
  marginTop: 0,
326
- marginBottom: theme.spacing(4),
393
+ marginBottom: theme.spacing(5),
394
+ "&:last-child": {
395
+ marginBottom: 0,
396
+ },
327
397
  }),
328
398
  ...(ownerState.fullWidth && {
329
399
  maxWidth: "100%",
@@ -407,6 +477,14 @@ export const components: ThemeOptions["components"] = {
407
477
  }),
408
478
  },
409
479
  },
480
+ MuiIconButton: {
481
+ styleOverrides: {
482
+ root: ({ theme }) => ({
483
+ padding: theme.spacing(1),
484
+ fontSize: theme.typography.body1.fontSize,
485
+ }),
486
+ },
487
+ },
410
488
  MuiInputAdornment: {
411
489
  defaultProps: {
412
490
  variant: "outlined",
@@ -540,10 +618,36 @@ export const components: ThemeOptions["components"] = {
540
618
  MuiOutlinedInput: {
541
619
  defaultProps: {
542
620
  notched: false,
621
+ minRows: 3,
543
622
  },
544
623
  styleOverrides: {
545
624
  root: ({ ownerState, theme }) => ({
546
- "&.Mui-disabled": {
625
+ [`&:hover .${outlinedInputClasses.notchedOutline}`]: {
626
+ borderColor: theme.palette.text.primary,
627
+ },
628
+ [`&.${outlinedInputClasses.focused} .${outlinedInputClasses.notchedOutline}`]:
629
+ {
630
+ borderColor: theme.palette.primary.main,
631
+ borderWidth: 2,
632
+ },
633
+ [`&.${outlinedInputClasses.error} .${outlinedInputClasses.notchedOutline}`]:
634
+ {
635
+ borderColor: theme.palette.error.main,
636
+ },
637
+ [`&.${outlinedInputClasses.error}:hover .${outlinedInputClasses.notchedOutline}`]:
638
+ {
639
+ borderColor: theme.palette.error.dark,
640
+ },
641
+ [`&.${outlinedInputClasses.error}.${outlinedInputClasses.focused} .${outlinedInputClasses.notchedOutline}`]:
642
+ {
643
+ borderColor: theme.palette.error.main,
644
+ },
645
+ [`&.${outlinedInputClasses.disabled} .${outlinedInputClasses.notchedOutline}`]:
646
+ {
647
+ borderColor: theme.palette.action.disabled,
648
+ },
649
+ [`&.${outlinedInputClasses.disabled}`]: {
650
+ backgroundColor: theme.palette.grey[50],
547
651
  pointerEvents: "none",
548
652
  },
549
653
  ...(ownerState.startAdornment && {
@@ -552,19 +656,21 @@ export const components: ThemeOptions["components"] = {
552
656
  ...(ownerState.endAdornment && {
553
657
  paddingRight: theme.spacing(3),
554
658
  }),
659
+ ...(ownerState.multiline && {
660
+ padding: "0",
661
+ ...(ownerState.size === "small" && {
662
+ padding: "0",
663
+ }),
664
+ }),
555
665
  }),
556
666
  input: ({ theme }) => ({
557
667
  padding: `calc(${theme.spacing(3)} - 1px) ${theme.spacing(3)}`,
558
- border: "1px solid transparent",
668
+ borderWidth: theme.mixins.borderWidth,
669
+ borderStyle: theme.mixins.borderStyle,
670
+ borderColor: "transparent",
559
671
  }),
560
672
  notchedOutline: ({ theme }) => ({
561
673
  borderColor: theme.palette.grey[500],
562
- ".MuiOutlinedInput-root:hover &": {
563
- borderColor: theme.palette.primary.main,
564
- },
565
- ".MuiOutlinedInput-root.Mui-error:hover &": {
566
- borderColor: theme.palette.error.dark,
567
- },
568
674
  }),
569
675
  },
570
676
  },
@@ -593,15 +699,125 @@ export const components: ThemeOptions["components"] = {
593
699
  }),
594
700
  },
595
701
  },
702
+ MuiSnackbar: {
703
+ defaultProps: {
704
+ anchorOrigin: {
705
+ vertical: "bottom",
706
+ horizontal: "right",
707
+ },
708
+ },
709
+ },
710
+ MuiSvgIcon: {
711
+ defaultProps: {
712
+ fontSize: "inherit",
713
+ color: "inherit",
714
+ },
715
+ },
716
+ MuiTab: {
717
+ defaultProps: {
718
+ iconPosition: "start",
719
+ },
720
+ styleOverrides: {
721
+ root: ({ theme, ownerState }) => ({
722
+ maxWidth: `calc(${theme.mixins.maxWidth} / 2)`,
723
+ minWidth: "unset",
724
+ minHeight: "unset",
725
+ padding: `${theme.spacing(4)} 0`,
726
+ lineHeight: theme.typography.body1.lineHeight,
727
+ overflow: "visible",
728
+ ...(ownerState.selected == true && {
729
+ color: theme.palette.text.primary,
730
+ }),
731
+ ...(ownerState.textColor === "inherit" && {
732
+ color: "inherit",
733
+ opacity: 1,
734
+ }),
735
+ ...(ownerState.wrapped && {
736
+ fontSize: theme.typography.subtitle1.fontSize,
737
+ lineHeight: theme.typography.subtitle1.lineHeight,
738
+ }),
739
+ "&:hover": {
740
+ color: theme.palette.primary.main,
741
+ },
742
+ "&:focus-visible::before, &.Mui-focusVisible::before": {
743
+ content: "''",
744
+ position: "absolute",
745
+ top: theme.spacing(4),
746
+ right: `calc(-1 * ${theme.spacing(2)})`,
747
+ bottom: theme.spacing(4),
748
+ left: `calc(-1 * ${theme.spacing(2)})`,
749
+ borderWidth: theme.mixins.borderWidth,
750
+ borderStyle: theme.mixins.borderStyle,
751
+ borderColor: theme.palette.primary.main,
752
+ borderRadius: theme.mixins.borderRadius,
753
+ },
754
+ "&.Mui-selected": {
755
+ color: theme.palette.text.primary,
756
+ fontWeight: theme.typography.fontWeightBold,
757
+ "&:hover": {
758
+ color: theme.palette.primary.main,
759
+ },
760
+ },
761
+ "&.Mui-disabled": {
762
+ cursor: "not-allowed",
763
+ pointerEvents: "unset",
764
+ "&:hover": {
765
+ color: theme.palette.text.disabled,
766
+ },
767
+ },
768
+ }),
769
+ },
770
+ },
771
+ MuiTabs: {
772
+ styleOverrides: {
773
+ root: ({ theme }) => ({
774
+ minHeight: "unset",
775
+ marginBottom: theme.spacing(5),
776
+ }),
777
+ flexContainer: ({ theme }) => ({
778
+ gap: theme.spacing(5),
779
+ borderBottom: `${theme.mixins.borderWidth} ${theme.mixins.borderStyle} ${theme.palette.divider}`,
780
+ }),
781
+ },
782
+ },
596
783
  MuiTypography: {
597
784
  defaultProps: {
598
785
  fontFamily:
599
786
  "'Public Sans', '-apple-system', 'BlinkMacSystemFont', 'Segoe UI', 'Roboto', 'Oxygen-Sans', 'Ubuntu', 'Cantarell', 'Helvetica Neue', 'Noto Sans Arabic', sans-serif",
787
+ variantMapping: {
788
+ h1: "h1",
789
+ h2: "h2",
790
+ h3: "h3",
791
+ h4: "h4",
792
+ h5: "h5",
793
+ h6: "h6",
794
+ subtitle1: "p",
795
+ body1: "p",
796
+ inherit: "p",
797
+ kbd: "kbd",
798
+ legend: "legend",
799
+ },
600
800
  },
601
801
  styleOverrides: {
602
802
  paragraph: ({ theme }) => ({
603
803
  marginBottom: theme.spacing(4),
604
804
  }),
805
+ root: ({ theme, ownerState }) => ({
806
+ ...(ownerState.variant === "kbd" && {
807
+ display: "inline-block",
808
+ minWidth: `calc(${theme.typography.subtitle1.fontSize} * ${theme.typography.h5.lineHeight})`,
809
+ borderStyle: theme.mixins.borderStyle,
810
+ borderWidth: theme.mixins.borderWidth,
811
+ borderRadius: theme.mixins.borderRadius,
812
+ borderColor: theme.palette.grey[200],
813
+ backgroundColor: theme.palette.grey[50],
814
+ padding: `calc(${theme.spacing(1)} / 2) ${theme.spacing(1)}`,
815
+ fontSize: theme.typography.subtitle1.fontSize,
816
+ fontWeight: theme.typography.fontWeightRegular,
817
+ lineHeight: theme.typography.h5.lineHeight,
818
+ boxShadow: `0 1px 1px 0 hsla(240, 6%, 12%, 0.05)`,
819
+ }),
820
+ }),
605
821
  },
606
822
  },
607
823
  };
@@ -19,6 +19,7 @@ declare module "@mui/material/Alert" {
19
19
  // Enable Odyssey variants
20
20
  banner: true;
21
21
  infobox: true;
22
+ toast: true;
22
23
  }
23
24
  }
24
25
 
@@ -0,0 +1,21 @@
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
+ import type { ThemeOptions } from "@mui/material";
14
+ import * as Tokens from "@okta/odyssey-design-tokens";
15
+
16
+ export const mixins: ThemeOptions["mixins"] = {
17
+ maxWidth: Tokens.FontLineLengthMax,
18
+ borderRadius: Tokens.BorderRadiusBase,
19
+ borderStyle: Tokens.BorderStyleBase,
20
+ borderWidth: Tokens.BorderWidthBase,
21
+ };
@@ -0,0 +1,29 @@
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 Mixins {
15
+ borderRadius?: string;
16
+ borderStyle?: string;
17
+ borderWidth?: string;
18
+ maxWidth?: string;
19
+ }
20
+
21
+ interface MixinsOptions {
22
+ borderRadius?: string;
23
+ borderStyle?: string;
24
+ borderWidth?: string;
25
+ maxWidth?: string;
26
+ }
27
+ }
28
+
29
+ export {};
@@ -78,9 +78,9 @@ export const palette: ThemeOptions["palette"] = {
78
78
  A700: "#585862",
79
79
  },
80
80
  text: {
81
- primary: Tokens.ColorNeutralDark,
82
- secondary: Tokens.ColorNeutralBase,
83
- disabled: Tokens.ColorNeutralBase, // We do not currently have a unique disabled color.
81
+ primary: Tokens.ColorPaletteNeutral900,
82
+ secondary: Tokens.ColorPaletteNeutral600,
83
+ disabled: Tokens.ColorPaletteNeutral500,
84
84
  },
85
85
  divider: Tokens.ColorBorderDisplay,
86
86
  background: {
@@ -94,7 +94,7 @@ export const palette: ThemeOptions["palette"] = {
94
94
  hoverOpacity: 0.04,
95
95
  selected: "rgba(0, 0, 0, 0.08)",
96
96
  selectedOpacity: 0.08,
97
- disabled: "rgba(0, 0, 0, 0.26)",
97
+ disabled: Tokens.ColorPaletteNeutral200,
98
98
  disabledBackground: "rgba(0, 0, 0, 0.12)",
99
99
  disabledOpacity: 0.38,
100
100
  focus: "rgba(0, 0, 0, 0.12)",
@@ -15,6 +15,8 @@ import { createTheme } from "@mui/material/styles";
15
15
  import { palette } from "./palette";
16
16
  import "./palette.types";
17
17
  import { shape } from "./shape";
18
+ import { mixins } from "./mixins";
19
+ import "./mixins.types";
18
20
  import { spacing } from "./spacing";
19
21
  import { typography } from "./typography";
20
22
  import "./typography.types";
@@ -24,6 +26,7 @@ import "./components.types";
24
26
  export const theme = createTheme({
25
27
  palette,
26
28
  shape,
29
+ mixins,
27
30
  spacing,
28
31
  typography,
29
32
  components,
@@ -63,9 +63,13 @@ export const typography: ThemeOptions["typography"] = {
63
63
  lineHeight: Tokens.FontLineHeightHeading6,
64
64
  marginBottom: Tokens.SpaceScale1,
65
65
  },
66
- subtitle1: undefined,
66
+ subtitle1: {
67
+ fontWeight: Tokens.FontWeightNormal,
68
+ fontSize: Tokens.FontScale0,
69
+ lineHeight: Tokens.FontLineHeightBody,
70
+ },
67
71
  subtitle2: undefined,
68
- body: {
72
+ body1: {
69
73
  fontFamily: Tokens.FontFamilyBase,
70
74
  fontWeight: Number(Tokens.FontWeightNormal),
71
75
  fontSize: Tokens.FontScale1,
@@ -74,13 +78,14 @@ export const typography: ThemeOptions["typography"] = {
74
78
  lineHeight: Tokens.FontLineHeightBody,
75
79
  letterSpacing: "initial",
76
80
  },
77
- body1: undefined,
78
81
  body2: undefined,
79
82
  button: undefined,
80
- caption: {
81
- fontWeight: Tokens.FontWeightNormal,
82
- fontSize: Tokens.FontScale0,
83
- lineHeight: Tokens.FontLineHeightBody,
84
- },
85
83
  overline: undefined,
84
+ legend: {
85
+ padding: 0,
86
+ fontWeight: Number(Tokens.FontWeightBold),
87
+ fontSize: Tokens.FontScale2,
88
+ lineHeight: Tokens.FontLineHeightHeading6,
89
+ marginBottom: Tokens.SpaceScale1,
90
+ },
86
91
  };
@@ -14,23 +14,29 @@ import { CSSProperties } from "react";
14
14
 
15
15
  declare module "@mui/material/styles" {
16
16
  interface TypographyVariants {
17
- body: CSSProperties;
17
+ kbd: CSSProperties;
18
+ legend: CSSProperties;
18
19
  }
19
20
  interface TypographyVariantsOptions {
20
- body?: CSSProperties;
21
+ kbd?: CSSProperties;
22
+ legend?: CSSProperties;
21
23
  }
22
24
  }
23
25
 
24
26
  declare module "@mui/material/Typography" {
25
27
  interface TypographyPropsVariantOverrides {
26
- body1: false;
28
+ body1: true;
27
29
  body2: false;
28
30
  body: true;
29
31
  button: false;
32
+ kbd: true;
33
+ legend: true;
30
34
  overline: false;
31
- subtitle1: false;
35
+ subtitle1: true;
32
36
  subtitle2: false;
33
37
  default: true; // used by Link
34
38
  monochrome: true; // used by Link
35
39
  }
36
40
  }
41
+
42
+ export {};