@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
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../src/themes/odyssey/components.types.ts"],"names":[],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;
|
|
1
|
+
{"version":3,"sources":["../../../src/themes/odyssey/components.types.ts"],"names":[],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAgFA","sourcesContent":["/*!\n * Copyright (c) 2022-present, Okta, Inc. and/or its affiliates. All rights reserved.\n * The Okta software accompanied by this notice is provided pursuant to the Apache License, Version 2.0 (the \"License.\")\n *\n * You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0.\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS, WITHOUT\n * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n *\n * See the License for the specific language governing permissions and limitations under the License.\n */\n\ndeclare module \"@mui/material/Alert\" {\n interface AlertPropsVariantOverrides {\n // Disable Mui defaults\n filled: false;\n outlined: false;\n standard: false;\n // Enable Odyssey variants\n banner: true;\n infobox: true;\n }\n}\n\ndeclare module \"@mui/material/Button\" {\n interface ButtonPropsVariantOverrides {\n floating: true;\n primary: true;\n secondary: true;\n danger: true;\n text: false;\n contained: false;\n outlined: false;\n }\n interface ButtonPropsSizeOverrides {\n s: true;\n m: true;\n l: true;\n small: false;\n medium: false;\n large: false;\n }\n interface ButtonPropsColorOverrides {\n inherit: false;\n primary: false;\n secondary: false;\n error: false;\n info: false;\n warning: false;\n success: false;\n }\n}\n\ndeclare module \"@mui/material/Link\" {\n interface LinkPropsVariantOverrides {\n default: true;\n monochrome: true;\n body1: false;\n body2: false;\n button: false;\n caption: false;\n h1: false;\n h2: false;\n h3: false;\n h4: false;\n h5: false;\n h6: false;\n inherit: false;\n overline: false;\n subtitle1: false;\n subtitle2: false;\n }\n\n interface LinkPropsUnderlineOverrides {\n none: false;\n hover: false;\n always: false;\n }\n\n interface LinkPropsColorOverrides {\n inherit: false;\n primary: false;\n secondary: false;\n error: false;\n info: false;\n warning: false;\n success: false;\n }\n}\n\nexport {};\n"],"file":"components.types.js"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"palette.d.ts","sourceRoot":"","sources":["../../../src/themes/odyssey/palette.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG;AAEH,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,eAAe,CAAC;
|
|
1
|
+
{"version":3,"file":"palette.d.ts","sourceRoot":"","sources":["../../../src/themes/odyssey/palette.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG;AAEH,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,eAAe,CAAC;AAGlD,eAAO,MAAM,OAAO,EAAE,YAAY,CAAC,SAAS,CAwF3C,CAAC"}
|
|
@@ -9,47 +9,53 @@
|
|
|
9
9
|
*
|
|
10
10
|
* See the License for the specific language governing permissions and limitations under the License.
|
|
11
11
|
*/
|
|
12
|
+
import * as Tokens from "@okta/odyssey-design-tokens";
|
|
12
13
|
export const palette = {
|
|
13
14
|
mode: "light",
|
|
14
15
|
common: {
|
|
15
|
-
black:
|
|
16
|
-
white:
|
|
16
|
+
black: Tokens.ColorNeutralDark,
|
|
17
|
+
white: Tokens.ColorPaletteNeutralWhite
|
|
17
18
|
},
|
|
18
19
|
primary: {
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
20
|
+
lighter: Tokens.ColorPaletteBlue000,
|
|
21
|
+
light: Tokens.ColorPaletteBlue300,
|
|
22
|
+
main: Tokens.ColorPaletteBlue500,
|
|
23
|
+
dark: Tokens.ColorPaletteBlue900,
|
|
24
|
+
contrastText: Tokens.ColorTextBodyInverse
|
|
23
25
|
},
|
|
24
26
|
secondary: {
|
|
25
27
|
light: "#80C7CA",
|
|
26
|
-
main:
|
|
28
|
+
main: Tokens.ColorPaletteTurquoise500,
|
|
27
29
|
dark: "#004650",
|
|
28
|
-
contrastText:
|
|
30
|
+
contrastText: Tokens.ColorTextBodyInverse
|
|
29
31
|
},
|
|
30
32
|
error: {
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
33
|
+
lighter: Tokens.ColorPaletteRed000,
|
|
34
|
+
light: Tokens.ColorPaletteRed300,
|
|
35
|
+
main: Tokens.ColorPaletteRed500,
|
|
36
|
+
dark: Tokens.ColorPaletteRed900,
|
|
37
|
+
contrastText: Tokens.ColorTextBodyInverse
|
|
35
38
|
},
|
|
36
39
|
warning: {
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
40
|
+
lighter: Tokens.ColorPaletteYellow000,
|
|
41
|
+
light: Tokens.ColorPaletteYellow300,
|
|
42
|
+
main: Tokens.ColorPaletteYellow500,
|
|
43
|
+
dark: Tokens.ColorPaletteYellow900,
|
|
44
|
+
contrastText: Tokens.ColorTextBody
|
|
41
45
|
},
|
|
42
46
|
info: {
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
+
lighter: Tokens.ColorPaletteBlue000,
|
|
48
|
+
light: Tokens.ColorPaletteBlue300,
|
|
49
|
+
main: Tokens.ColorPaletteBlue500,
|
|
50
|
+
dark: Tokens.ColorPaletteBlue900,
|
|
51
|
+
contrastText: Tokens.ColorTextBodyInverse
|
|
47
52
|
},
|
|
48
53
|
success: {
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
54
|
+
lighter: Tokens.ColorPaletteGreen000,
|
|
55
|
+
light: Tokens.ColorPaletteGreen300,
|
|
56
|
+
main: Tokens.ColorPaletteGreen500,
|
|
57
|
+
dark: Tokens.ColorPaletteGreen900,
|
|
58
|
+
contrastText: Tokens.ColorTextBodyInverse
|
|
53
59
|
},
|
|
54
60
|
grey: {
|
|
55
61
|
50: "#f5f5f6",
|
|
@@ -68,14 +74,14 @@ export const palette = {
|
|
|
68
74
|
A700: "#585862"
|
|
69
75
|
},
|
|
70
76
|
text: {
|
|
71
|
-
primary:
|
|
72
|
-
secondary:
|
|
73
|
-
disabled:
|
|
77
|
+
primary: Tokens.ColorNeutralDark,
|
|
78
|
+
secondary: Tokens.ColorNeutralBase,
|
|
79
|
+
disabled: Tokens.ColorNeutralBase
|
|
74
80
|
},
|
|
75
|
-
divider:
|
|
81
|
+
divider: Tokens.ColorBorderDisplay,
|
|
76
82
|
background: {
|
|
77
|
-
paper:
|
|
78
|
-
default:
|
|
83
|
+
paper: Tokens.ColorBackgroundBase,
|
|
84
|
+
default: Tokens.ColorBackgroundBase
|
|
79
85
|
},
|
|
80
86
|
action: {
|
|
81
87
|
active: "rgba(0, 0, 0, 0.54)",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../src/themes/odyssey/palette.ts"],"names":["palette","mode","common","black","white","primary","light","main","dark","contrastText","secondary","error","warning","info","success","grey","A100","A200","A400","A700","text","disabled","divider","background","paper","default","action","active","hover","hoverOpacity","selected","selectedOpacity","disabledBackground","disabledOpacity","focus","focusOpacity","activatedOpacity"],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;
|
|
1
|
+
{"version":3,"sources":["../../../src/themes/odyssey/palette.ts"],"names":["Tokens","palette","mode","common","black","ColorNeutralDark","white","ColorPaletteNeutralWhite","primary","lighter","ColorPaletteBlue000","light","ColorPaletteBlue300","main","ColorPaletteBlue500","dark","ColorPaletteBlue900","contrastText","ColorTextBodyInverse","secondary","ColorPaletteTurquoise500","error","ColorPaletteRed000","ColorPaletteRed300","ColorPaletteRed500","ColorPaletteRed900","warning","ColorPaletteYellow000","ColorPaletteYellow300","ColorPaletteYellow500","ColorPaletteYellow900","ColorTextBody","info","success","ColorPaletteGreen000","ColorPaletteGreen300","ColorPaletteGreen500","ColorPaletteGreen900","grey","A100","A200","A400","A700","text","ColorNeutralBase","disabled","divider","ColorBorderDisplay","background","paper","ColorBackgroundBase","default","action","active","hover","hoverOpacity","selected","selectedOpacity","disabledBackground","disabledOpacity","focus","focusOpacity","activatedOpacity"],"mappings":"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","sourcesContent":["/*!\n * Copyright (c) 2022-present, Okta, Inc. and/or its affiliates. All rights reserved.\n * The Okta software accompanied by this notice is provided pursuant to the Apache License, Version 2.0 (the \"License.\")\n *\n * You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0.\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS, WITHOUT\n * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n *\n * See the License for the specific language governing permissions and limitations under the License.\n */\n\nimport type { ThemeOptions } from \"@mui/material\";\nimport * as Tokens from \"@okta/odyssey-design-tokens\";\n\nexport const palette: ThemeOptions[\"palette\"] = {\n mode: \"light\",\n common: {\n black: Tokens.ColorNeutralDark,\n white: Tokens.ColorPaletteNeutralWhite,\n },\n primary: {\n lighter: Tokens.ColorPaletteBlue000,\n light: Tokens.ColorPaletteBlue300,\n main: Tokens.ColorPaletteBlue500,\n dark: Tokens.ColorPaletteBlue900,\n contrastText: Tokens.ColorTextBodyInverse,\n },\n secondary: {\n light: \"#80C7CA\",\n main: Tokens.ColorPaletteTurquoise500,\n dark: \"#004650\",\n contrastText: Tokens.ColorTextBodyInverse,\n },\n error: {\n lighter: Tokens.ColorPaletteRed000,\n light: Tokens.ColorPaletteRed300,\n main: Tokens.ColorPaletteRed500,\n dark: Tokens.ColorPaletteRed900,\n contrastText: Tokens.ColorTextBodyInverse,\n },\n warning: {\n lighter: Tokens.ColorPaletteYellow000,\n light: Tokens.ColorPaletteYellow300,\n main: Tokens.ColorPaletteYellow500,\n dark: Tokens.ColorPaletteYellow900,\n contrastText: Tokens.ColorTextBody,\n },\n info: {\n lighter: Tokens.ColorPaletteBlue000,\n light: Tokens.ColorPaletteBlue300,\n main: Tokens.ColorPaletteBlue500,\n dark: Tokens.ColorPaletteBlue900,\n contrastText: Tokens.ColorTextBodyInverse,\n },\n success: {\n lighter: Tokens.ColorPaletteGreen000,\n light: Tokens.ColorPaletteGreen300,\n main: Tokens.ColorPaletteGreen500,\n dark: Tokens.ColorPaletteGreen900,\n contrastText: Tokens.ColorTextBodyInverse,\n },\n grey: {\n 50: \"#f5f5f6\",\n 100: \"#ebebed\",\n 200: \"#d7d7dc\",\n 300: \"#c1c1c8\",\n 400: \"#aaaab4\",\n 500: \"#8c8c96\",\n 600: \"#6e6e78\",\n 700: \"#585862\",\n 800: \"#41414b\",\n 900: \"#1d1d21\",\n // These are \"Accent\" colors. MUI's palette matches them to the standard greys.\n A100: \"#ebebed\",\n A200: \"#d7d7dc\",\n A400: \"#aaaab4\",\n A700: \"#585862\",\n },\n text: {\n primary: Tokens.ColorNeutralDark,\n secondary: Tokens.ColorNeutralBase,\n disabled: Tokens.ColorNeutralBase, // We do not currently have a unique disabled color.\n },\n divider: Tokens.ColorBorderDisplay,\n background: {\n paper: Tokens.ColorBackgroundBase,\n default: Tokens.ColorBackgroundBase,\n },\n action: {\n // We have no equivalents here. It's likely we will update these as their uses are discovered.\n active: \"rgba(0, 0, 0, 0.54)\",\n hover: \"rgba(0, 0, 0, 0.04)\",\n hoverOpacity: 0.04,\n selected: \"rgba(0, 0, 0, 0.08)\",\n selectedOpacity: 0.08,\n disabled: \"rgba(0, 0, 0, 0.26)\",\n disabledBackground: \"rgba(0, 0, 0, 0.12)\",\n disabledOpacity: 0.38,\n focus: \"rgba(0, 0, 0, 0.12)\",\n focusOpacity: 0.12,\n activatedOpacity: 0.12,\n },\n};\n"],"file":"palette.js"}
|
|
@@ -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
|
+
declare module "@mui/material/styles" {
|
|
13
|
+
interface PaletteColor {
|
|
14
|
+
lighter?: string;
|
|
15
|
+
}
|
|
16
|
+
interface SimplePaletteColorOptions {
|
|
17
|
+
lighter?: string;
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
export {};
|
|
21
|
+
//# sourceMappingURL=palette.types.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"palette.types.d.ts","sourceRoot":"","sources":["../../../src/themes/odyssey/palette.types.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG;AAEH,OAAO,QAAQ,sBAAsB,CAAC;IACpC,UAAU,YAAY;QACpB,OAAO,CAAC,EAAE,MAAM,CAAC;KAClB;IACD,UAAU,yBAAyB;QACjC,OAAO,CAAC,EAAE,MAAM,CAAC;KAClB;CACF;AAED,OAAO,EAAE,CAAC"}
|
|
@@ -0,0 +1,13 @@
|
|
|
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
|
+
export {};
|
|
13
|
+
//# sourceMappingURL=palette.types.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../../src/themes/odyssey/palette.types.ts"],"names":[],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAWA","sourcesContent":["/*!\n * Copyright (c) 2022-present, Okta, Inc. and/or its affiliates. All rights reserved.\n * The Okta software accompanied by this notice is provided pursuant to the Apache License, Version 2.0 (the \"License.\")\n *\n * You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0.\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS, WITHOUT\n * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n *\n * See the License for the specific language governing permissions and limitations under the License.\n */\n\ndeclare module \"@mui/material/styles\" {\n interface PaletteColor {\n lighter?: string;\n }\n interface SimplePaletteColorOptions {\n lighter?: string;\n }\n}\n\nexport {};\n"],"file":"palette.types.js"}
|
|
@@ -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 "./palette.types";
|
|
12
13
|
import "./typography.types";
|
|
13
14
|
import "./components.types";
|
|
14
15
|
export declare const theme: import("@mui/material/styles").Theme;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"theme.d.ts","sourceRoot":"","sources":["../../../src/themes/odyssey/theme.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG;
|
|
1
|
+
{"version":3,"file":"theme.d.ts","sourceRoot":"","sources":["../../../src/themes/odyssey/theme.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG;AAKH,OAAO,iBAAiB,CAAC;AAIzB,OAAO,oBAAoB,CAAC;AAE5B,OAAO,oBAAoB,CAAC;AAE5B,eAAO,MAAM,KAAK,sCAMhB,CAAC"}
|
|
@@ -11,6 +11,7 @@
|
|
|
11
11
|
*/
|
|
12
12
|
import { createTheme } from "@mui/material/styles";
|
|
13
13
|
import { palette } from "./palette.js";
|
|
14
|
+
import "./palette.types.js";
|
|
14
15
|
import { shape } from "./shape.js";
|
|
15
16
|
import { spacing } from "./spacing.js";
|
|
16
17
|
import { typography } from "./typography.js";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../src/themes/odyssey/theme.ts"],"names":["createTheme","palette","shape","spacing","typography","components","theme"],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAEA,SAASA,WAAT,QAA4B,sBAA5B;SAESC,O
|
|
1
|
+
{"version":3,"sources":["../../../src/themes/odyssey/theme.ts"],"names":["createTheme","palette","shape","spacing","typography","components","theme"],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAEA,SAASA,WAAT,QAA4B,sBAA5B;SAESC,O;;SAEAC,K;SACAC,O;SACAC,U;;SAEAC,U;;AAGT,OAAO,MAAMC,KAAK,GAAGN,WAAW,CAAC;AAC/BC,EAAAA,OAD+B;AAE/BC,EAAAA,KAF+B;AAG/BC,EAAAA,OAH+B;AAI/BC,EAAAA,UAJ+B;AAK/BC,EAAAA;AAL+B,CAAD,CAAzB","sourcesContent":["/*!\n * Copyright (c) 2022-present, Okta, Inc. and/or its affiliates. All rights reserved.\n * The Okta software accompanied by this notice is provided pursuant to the Apache License, Version 2.0 (the \"License.\")\n *\n * You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0.\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS, WITHOUT\n * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n *\n * See the License for the specific language governing permissions and limitations under the License.\n */\n\nimport { createTheme } from \"@mui/material/styles\";\n\nimport { palette } from \"./palette\";\nimport \"./palette.types\";\nimport { shape } from \"./shape\";\nimport { spacing } from \"./spacing\";\nimport { typography } from \"./typography\";\nimport \"./typography.types\";\nimport { components } from \"./components\";\nimport \"./components.types\";\n\nexport const theme = createTheme({\n palette,\n shape,\n spacing,\n typography,\n components,\n});\n"],"file":"theme.js"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"typography.d.ts","sourceRoot":"","sources":["../../../src/themes/odyssey/typography.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG;AAEH,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,eAAe,CAAC;AAGlD,eAAO,MAAM,UAAU,EAAE,YAAY,CAAC,YAAY,
|
|
1
|
+
{"version":3,"file":"typography.d.ts","sourceRoot":"","sources":["../../../src/themes/odyssey/typography.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG;AAEH,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,eAAe,CAAC;AAGlD,eAAO,MAAM,UAAU,EAAE,YAAY,CAAC,YAAY,CAsEjD,CAAC"}
|
|
@@ -18,52 +18,46 @@ export const typography = {
|
|
|
18
18
|
fontWeightRegular: Number(Tokens.FontWeightNormal),
|
|
19
19
|
fontWeightMedium: 500,
|
|
20
20
|
fontWeightBold: Number(Tokens.FontWeightBold),
|
|
21
|
-
|
|
21
|
+
allVariants: {
|
|
22
22
|
fontFamily: Tokens.FontFamilyBase,
|
|
23
|
+
fontFeatureSettings: "'lnum', 'pnum'",
|
|
24
|
+
fontVariant: "normal",
|
|
25
|
+
letterSpacing: 0
|
|
26
|
+
},
|
|
27
|
+
h1: {
|
|
23
28
|
fontWeight: Tokens.FontWeightBold,
|
|
24
29
|
fontSize: Tokens.FontSizeHeading1,
|
|
25
30
|
lineHeight: Tokens.FontLineHeightHeading1,
|
|
26
|
-
letterSpacing: "initial",
|
|
27
31
|
marginBottom: Tokens.SpaceScale1
|
|
28
32
|
},
|
|
29
33
|
h2: {
|
|
30
|
-
fontFamily: Tokens.FontFamilyBase,
|
|
31
34
|
fontWeight: Tokens.FontWeightBold,
|
|
32
35
|
fontSize: Tokens.FontSizeHeading2,
|
|
33
36
|
lineHeight: Tokens.FontLineHeightHeading2,
|
|
34
|
-
letterSpacing: "initial",
|
|
35
37
|
marginBottom: Tokens.SpaceScale1
|
|
36
38
|
},
|
|
37
39
|
h3: {
|
|
38
|
-
fontFamily: Tokens.FontFamilyBase,
|
|
39
40
|
fontWeight: Tokens.FontWeightBold,
|
|
40
41
|
fontSize: Tokens.FontSizeHeading3,
|
|
41
42
|
lineHeight: Tokens.FontLineHeightHeading3,
|
|
42
|
-
letterSpacing: "initial",
|
|
43
43
|
marginBottom: Tokens.SpaceScale1
|
|
44
44
|
},
|
|
45
45
|
h4: {
|
|
46
|
-
fontFamily: Tokens.FontFamilyBase,
|
|
47
46
|
fontWeight: Tokens.FontWeightBold,
|
|
48
47
|
fontSize: Tokens.FontSizeHeading4,
|
|
49
48
|
lineHeight: Tokens.FontLineHeightHeading4,
|
|
50
|
-
letterSpacing: "initial",
|
|
51
49
|
marginBottom: Tokens.SpaceScale1
|
|
52
50
|
},
|
|
53
51
|
h5: {
|
|
54
|
-
fontFamily: Tokens.FontFamilyBase,
|
|
55
52
|
fontWeight: Tokens.FontWeightBold,
|
|
56
53
|
fontSize: Tokens.FontSizeHeading5,
|
|
57
54
|
lineHeight: Tokens.FontLineHeightHeading5,
|
|
58
|
-
letterSpacing: "initial",
|
|
59
55
|
marginBottom: Tokens.SpaceScale1
|
|
60
56
|
},
|
|
61
57
|
h6: {
|
|
62
|
-
fontFamily: Tokens.FontFamilyBase,
|
|
63
58
|
fontWeight: Tokens.FontWeightBold,
|
|
64
59
|
fontSize: Tokens.FontScale2,
|
|
65
60
|
lineHeight: Tokens.FontLineHeightHeading6,
|
|
66
|
-
letterSpacing: "initial",
|
|
67
61
|
marginBottom: Tokens.SpaceScale1
|
|
68
62
|
},
|
|
69
63
|
subtitle1: undefined,
|
|
@@ -72,6 +66,8 @@ export const typography = {
|
|
|
72
66
|
fontFamily: Tokens.FontFamilyBase,
|
|
73
67
|
fontWeight: Number(Tokens.FontWeightNormal),
|
|
74
68
|
fontSize: Tokens.FontScale1,
|
|
69
|
+
fontFeatureSettings: "'lnum', 'pnum'",
|
|
70
|
+
fontVariant: "normal",
|
|
75
71
|
lineHeight: Tokens.FontLineHeightBody,
|
|
76
72
|
letterSpacing: "initial"
|
|
77
73
|
},
|
|
@@ -79,11 +75,9 @@ export const typography = {
|
|
|
79
75
|
body2: undefined,
|
|
80
76
|
button: undefined,
|
|
81
77
|
caption: {
|
|
82
|
-
fontFamily: Tokens.FontFamilyBase,
|
|
83
78
|
fontWeight: Tokens.FontWeightNormal,
|
|
84
79
|
fontSize: Tokens.FontScale0,
|
|
85
|
-
lineHeight: Tokens.FontLineHeightBody
|
|
86
|
-
letterSpacing: "initial"
|
|
80
|
+
lineHeight: Tokens.FontLineHeightBody
|
|
87
81
|
},
|
|
88
82
|
overline: undefined
|
|
89
83
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../src/themes/odyssey/typography.ts"],"names":["Tokens","typography","htmlFontSize","fontFamily","FontFamilyBase","fontSize","fontWeightLight","fontWeightRegular","Number","FontWeightNormal","fontWeightMedium","fontWeightBold","FontWeightBold","h1","fontWeight","FontSizeHeading1","lineHeight","FontLineHeightHeading1","
|
|
1
|
+
{"version":3,"sources":["../../../src/themes/odyssey/typography.ts"],"names":["Tokens","typography","htmlFontSize","fontFamily","FontFamilyBase","fontSize","fontWeightLight","fontWeightRegular","Number","FontWeightNormal","fontWeightMedium","fontWeightBold","FontWeightBold","allVariants","fontFeatureSettings","fontVariant","letterSpacing","h1","fontWeight","FontSizeHeading1","lineHeight","FontLineHeightHeading1","marginBottom","SpaceScale1","h2","FontSizeHeading2","FontLineHeightHeading2","h3","FontSizeHeading3","FontLineHeightHeading3","h4","FontSizeHeading4","FontLineHeightHeading4","h5","FontSizeHeading5","FontLineHeightHeading5","h6","FontScale2","FontLineHeightHeading6","subtitle1","undefined","subtitle2","body","FontScale1","FontLineHeightBody","body1","body2","button","caption","FontScale0","overline"],"mappings":"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","sourcesContent":["/*!\n * Copyright (c) 2022-present, Okta, Inc. and/or its affiliates. All rights reserved.\n * The Okta software accompanied by this notice is provided pursuant to the Apache License, Version 2.0 (the \"License.\")\n *\n * You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0.\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS, WITHOUT\n * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n *\n * See the License for the specific language governing permissions and limitations under the License.\n */\n\nimport type { ThemeOptions } from \"@mui/material\";\nimport * as Tokens from \"@okta/odyssey-design-tokens\";\n\nexport const typography: ThemeOptions[\"typography\"] = {\n htmlFontSize: 16,\n fontFamily: Tokens.FontFamilyBase,\n fontSize: 14,\n fontWeightLight: 300,\n fontWeightRegular: Number(Tokens.FontWeightNormal),\n fontWeightMedium: 500,\n fontWeightBold: Number(Tokens.FontWeightBold),\n allVariants: {\n fontFamily: Tokens.FontFamilyBase,\n fontFeatureSettings: \"'lnum', 'pnum'\",\n fontVariant: \"normal\",\n letterSpacing: 0,\n },\n h1: {\n fontWeight: Tokens.FontWeightBold,\n fontSize: Tokens.FontSizeHeading1,\n lineHeight: Tokens.FontLineHeightHeading1,\n marginBottom: Tokens.SpaceScale1,\n },\n h2: {\n fontWeight: Tokens.FontWeightBold,\n fontSize: Tokens.FontSizeHeading2,\n lineHeight: Tokens.FontLineHeightHeading2,\n marginBottom: Tokens.SpaceScale1,\n },\n h3: {\n fontWeight: Tokens.FontWeightBold,\n fontSize: Tokens.FontSizeHeading3,\n lineHeight: Tokens.FontLineHeightHeading3,\n marginBottom: Tokens.SpaceScale1,\n },\n h4: {\n fontWeight: Tokens.FontWeightBold,\n fontSize: Tokens.FontSizeHeading4,\n lineHeight: Tokens.FontLineHeightHeading4,\n marginBottom: Tokens.SpaceScale1,\n },\n h5: {\n fontWeight: Tokens.FontWeightBold,\n fontSize: Tokens.FontSizeHeading5,\n lineHeight: Tokens.FontLineHeightHeading5,\n marginBottom: Tokens.SpaceScale1,\n },\n h6: {\n fontWeight: Tokens.FontWeightBold,\n fontSize: Tokens.FontScale2,\n lineHeight: Tokens.FontLineHeightHeading6,\n marginBottom: Tokens.SpaceScale1,\n },\n subtitle1: undefined,\n subtitle2: undefined,\n body: {\n fontFamily: Tokens.FontFamilyBase,\n fontWeight: Number(Tokens.FontWeightNormal),\n fontSize: Tokens.FontScale1,\n fontFeatureSettings: \"'lnum', 'pnum'\",\n fontVariant: \"normal\",\n lineHeight: Tokens.FontLineHeightBody,\n letterSpacing: \"initial\",\n },\n body1: undefined,\n body2: undefined,\n button: undefined,\n caption: {\n fontWeight: Tokens.FontWeightNormal,\n fontSize: Tokens.FontScale0,\n lineHeight: Tokens.FontLineHeightBody,\n },\n overline: undefined,\n};\n"],"file":"typography.js"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@okta/odyssey-react-mui",
|
|
3
|
-
"version": "0.14.
|
|
3
|
+
"version": "0.14.2",
|
|
4
4
|
"description": "React MUI components for Odyssey, Okta's design system",
|
|
5
5
|
"author": "Okta, Inc.",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -19,14 +19,14 @@
|
|
|
19
19
|
"directory": "packages/odyssey-react-mui"
|
|
20
20
|
},
|
|
21
21
|
"dependencies": {
|
|
22
|
-
"@okta/odyssey-design-tokens": "^0.14.
|
|
22
|
+
"@okta/odyssey-design-tokens": "^0.14.2"
|
|
23
23
|
},
|
|
24
24
|
"peerDependencies": {
|
|
25
25
|
"@emotion/react": "^11",
|
|
26
26
|
"@mui/icons-material": "^5",
|
|
27
27
|
"@mui/material": "^5",
|
|
28
|
-
"react": "
|
|
29
|
-
"react-dom": "
|
|
28
|
+
"react": ">=17 <19",
|
|
29
|
+
"react-dom": ">=17 <19"
|
|
30
30
|
},
|
|
31
|
-
"gitHead": "
|
|
31
|
+
"gitHead": "f90b1bf2b4feb2941e072bb82634f96d29e1321a"
|
|
32
32
|
}
|
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
* See the License for the specific language governing permissions and limitations under the License.
|
|
11
11
|
*/
|
|
12
12
|
|
|
13
|
-
import
|
|
13
|
+
import { forwardRef, ReactElement } from "react";
|
|
14
14
|
|
|
15
15
|
import { Link as MuiLink, SvgIcon } from "@mui/material";
|
|
16
16
|
import type { LinkProps as MuiLinkProps } from "@mui/material";
|
|
@@ -10,7 +10,6 @@
|
|
|
10
10
|
* See the License for the specific language governing permissions and limitations under the License.
|
|
11
11
|
*/
|
|
12
12
|
|
|
13
|
-
import React from "react";
|
|
14
13
|
import { render, screen } from "@testing-library/react";
|
|
15
14
|
import { a11yCheck } from "../../../test";
|
|
16
15
|
import { PasswordInput } from ".";
|
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
* See the License for the specific language governing permissions and limitations under the License.
|
|
11
11
|
*/
|
|
12
12
|
|
|
13
|
-
import
|
|
13
|
+
import { forwardRef, useState, useMemo } from "react";
|
|
14
14
|
import type { Ref, ChangeEvent, MouseEvent } from "react";
|
|
15
15
|
import type { OutlinedInputProps, TooltipProps } from "@mui/material";
|
|
16
16
|
import {
|