@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.
Files changed (42) hide show
  1. package/CHANGELOG.md +13 -0
  2. package/babel.config.cjs +2 -2
  3. package/dist/components/Link/Link.d.ts +2 -2
  4. package/dist/components/Link/Link.d.ts.map +1 -1
  5. package/dist/components/Link/Link.js +21 -14
  6. package/dist/components/Link/Link.js.map +1 -1
  7. package/dist/components/PasswordInput/PasswordInput.d.ts +1 -2
  8. package/dist/components/PasswordInput/PasswordInput.d.ts.map +1 -1
  9. package/dist/components/PasswordInput/PasswordInput.js +29 -23
  10. package/dist/components/PasswordInput/PasswordInput.js.map +1 -1
  11. package/dist/themes/odyssey/components.d.ts.map +1 -1
  12. package/dist/themes/odyssey/components.js +308 -120
  13. package/dist/themes/odyssey/components.js.map +1 -1
  14. package/dist/themes/odyssey/components.types.d.ts +37 -28
  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/palette.d.ts.map +1 -1
  18. package/dist/themes/odyssey/palette.js +36 -30
  19. package/dist/themes/odyssey/palette.js.map +1 -1
  20. package/dist/themes/odyssey/palette.types.d.ts +21 -0
  21. package/dist/themes/odyssey/palette.types.d.ts.map +1 -0
  22. package/dist/themes/odyssey/palette.types.js +13 -0
  23. package/dist/themes/odyssey/palette.types.js.map +1 -0
  24. package/dist/themes/odyssey/theme.d.ts +1 -0
  25. package/dist/themes/odyssey/theme.d.ts.map +1 -1
  26. package/dist/themes/odyssey/theme.js +1 -0
  27. package/dist/themes/odyssey/theme.js.map +1 -1
  28. package/dist/themes/odyssey/typography.d.ts.map +1 -1
  29. package/dist/themes/odyssey/typography.js +9 -15
  30. package/dist/themes/odyssey/typography.js.map +1 -1
  31. package/package.json +5 -5
  32. package/src/components/Link/Link.tsx +1 -1
  33. package/src/components/PasswordInput/PasswordInput.test.tsx +0 -1
  34. package/src/components/PasswordInput/PasswordInput.tsx +1 -1
  35. package/src/themes/odyssey/components.ts +315 -128
  36. package/src/themes/odyssey/components.types.ts +41 -28
  37. package/src/themes/odyssey/palette.ts +36 -32
  38. package/src/themes/odyssey/palette.types.ts +22 -0
  39. package/src/themes/odyssey/theme.ts +1 -0
  40. package/src/themes/odyssey/typography.ts +8 -14
  41. package/tsconfig.json +4 -1
  42. package/tsconfig.production.json +2 -1
@@ -13,6 +13,7 @@
13
13
  import { createTheme } from "@mui/material/styles";
14
14
 
15
15
  import { palette } from "./palette";
16
+ import "./palette.types";
16
17
  import { shape } from "./shape";
17
18
  import { spacing } from "./spacing";
18
19
  import { typography } from "./typography";
@@ -21,52 +21,46 @@ export const typography: ThemeOptions["typography"] = {
21
21
  fontWeightRegular: Number(Tokens.FontWeightNormal),
22
22
  fontWeightMedium: 500,
23
23
  fontWeightBold: Number(Tokens.FontWeightBold),
24
- h1: {
24
+ allVariants: {
25
25
  fontFamily: Tokens.FontFamilyBase,
26
+ fontFeatureSettings: "'lnum', 'pnum'",
27
+ fontVariant: "normal",
28
+ letterSpacing: 0,
29
+ },
30
+ h1: {
26
31
  fontWeight: Tokens.FontWeightBold,
27
32
  fontSize: Tokens.FontSizeHeading1,
28
33
  lineHeight: Tokens.FontLineHeightHeading1,
29
- letterSpacing: "initial",
30
34
  marginBottom: Tokens.SpaceScale1,
31
35
  },
32
36
  h2: {
33
- fontFamily: Tokens.FontFamilyBase,
34
37
  fontWeight: Tokens.FontWeightBold,
35
38
  fontSize: Tokens.FontSizeHeading2,
36
39
  lineHeight: Tokens.FontLineHeightHeading2,
37
- letterSpacing: "initial",
38
40
  marginBottom: Tokens.SpaceScale1,
39
41
  },
40
42
  h3: {
41
- fontFamily: Tokens.FontFamilyBase,
42
43
  fontWeight: Tokens.FontWeightBold,
43
44
  fontSize: Tokens.FontSizeHeading3,
44
45
  lineHeight: Tokens.FontLineHeightHeading3,
45
- letterSpacing: "initial",
46
46
  marginBottom: Tokens.SpaceScale1,
47
47
  },
48
48
  h4: {
49
- fontFamily: Tokens.FontFamilyBase,
50
49
  fontWeight: Tokens.FontWeightBold,
51
50
  fontSize: Tokens.FontSizeHeading4,
52
51
  lineHeight: Tokens.FontLineHeightHeading4,
53
- letterSpacing: "initial",
54
52
  marginBottom: Tokens.SpaceScale1,
55
53
  },
56
54
  h5: {
57
- fontFamily: Tokens.FontFamilyBase,
58
55
  fontWeight: Tokens.FontWeightBold,
59
56
  fontSize: Tokens.FontSizeHeading5,
60
57
  lineHeight: Tokens.FontLineHeightHeading5,
61
- letterSpacing: "initial",
62
58
  marginBottom: Tokens.SpaceScale1,
63
59
  },
64
60
  h6: {
65
- fontFamily: Tokens.FontFamilyBase,
66
61
  fontWeight: Tokens.FontWeightBold,
67
62
  fontSize: Tokens.FontScale2,
68
63
  lineHeight: Tokens.FontLineHeightHeading6,
69
- letterSpacing: "initial",
70
64
  marginBottom: Tokens.SpaceScale1,
71
65
  },
72
66
  subtitle1: undefined,
@@ -75,6 +69,8 @@ export const typography: ThemeOptions["typography"] = {
75
69
  fontFamily: Tokens.FontFamilyBase,
76
70
  fontWeight: Number(Tokens.FontWeightNormal),
77
71
  fontSize: Tokens.FontScale1,
72
+ fontFeatureSettings: "'lnum', 'pnum'",
73
+ fontVariant: "normal",
78
74
  lineHeight: Tokens.FontLineHeightBody,
79
75
  letterSpacing: "initial",
80
76
  },
@@ -82,11 +78,9 @@ export const typography: ThemeOptions["typography"] = {
82
78
  body2: undefined,
83
79
  button: undefined,
84
80
  caption: {
85
- fontFamily: Tokens.FontFamilyBase,
86
81
  fontWeight: Tokens.FontWeightNormal,
87
82
  fontSize: Tokens.FontScale0,
88
83
  lineHeight: Tokens.FontLineHeightBody,
89
- letterSpacing: "initial",
90
84
  },
91
85
  overline: undefined,
92
86
  };
package/tsconfig.json CHANGED
@@ -1,3 +1,6 @@
1
1
  {
2
- "extends": "@okta/odyssey-typescript/tsconfig.react.json"
2
+ "extends": "@okta/odyssey-typescript/tsconfig.react.json",
3
+ "compilerOptions": {
4
+ "jsx": "react-jsx"
5
+ }
3
6
  }
@@ -1,7 +1,8 @@
1
1
  {
2
2
  "extends": "@okta/odyssey-typescript/tsconfig.react.types.json",
3
3
  "compilerOptions": {
4
- "outDir": "dist"
4
+ "outDir": "dist",
5
+ "jsx": "react-jsx"
5
6
  },
6
7
  "exclude": ["./test", "**/*.test.**", "**/dist/**/*"]
7
8
  }