@okta/odyssey-react-mui 0.14.1

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 (105) hide show
  1. package/.browserslistrc +1 -0
  2. package/.eslintrc.cjs +18 -0
  3. package/CHANGELOG.md +10 -0
  4. package/LICENSE +187 -0
  5. package/README.md +64 -0
  6. package/babel.config.cjs +91 -0
  7. package/dist/components/Link/Link.d.ts +18 -0
  8. package/dist/components/Link/Link.d.ts.map +1 -0
  9. package/dist/components/Link/Link.js +36 -0
  10. package/dist/components/Link/Link.js.map +1 -0
  11. package/dist/components/Link/index.d.ts +13 -0
  12. package/dist/components/Link/index.d.ts.map +1 -0
  13. package/dist/components/Link/index.js +13 -0
  14. package/dist/components/Link/index.js.map +1 -0
  15. package/dist/components/PasswordInput/PasswordInput.d.ts +22 -0
  16. package/dist/components/PasswordInput/PasswordInput.d.ts.map +1 -0
  17. package/dist/components/PasswordInput/PasswordInput.js +83 -0
  18. package/dist/components/PasswordInput/PasswordInput.js.map +1 -0
  19. package/dist/components/PasswordInput/index.d.ts +13 -0
  20. package/dist/components/PasswordInput/index.d.ts.map +1 -0
  21. package/dist/components/PasswordInput/index.js +13 -0
  22. package/dist/components/PasswordInput/index.js.map +1 -0
  23. package/dist/components/index.d.ts +14 -0
  24. package/dist/components/index.d.ts.map +1 -0
  25. package/dist/components/index.js +14 -0
  26. package/dist/components/index.js.map +1 -0
  27. package/dist/index.d.ts +14 -0
  28. package/dist/index.d.ts.map +1 -0
  29. package/dist/index.js +14 -0
  30. package/dist/index.js.map +1 -0
  31. package/dist/themes/index.d.ts +13 -0
  32. package/dist/themes/index.d.ts.map +1 -0
  33. package/dist/themes/index.js +13 -0
  34. package/dist/themes/index.js.map +1 -0
  35. package/dist/themes/odyssey/components.d.ts +14 -0
  36. package/dist/themes/odyssey/components.d.ts.map +1 -0
  37. package/dist/themes/odyssey/components.js +303 -0
  38. package/dist/themes/odyssey/components.js.map +1 -0
  39. package/dist/themes/odyssey/components.types.d.ts +75 -0
  40. package/dist/themes/odyssey/components.types.d.ts.map +1 -0
  41. package/dist/themes/odyssey/components.types.js +13 -0
  42. package/dist/themes/odyssey/components.types.js.map +1 -0
  43. package/dist/themes/odyssey/index.d.ts +13 -0
  44. package/dist/themes/odyssey/index.d.ts.map +1 -0
  45. package/dist/themes/odyssey/index.js +13 -0
  46. package/dist/themes/odyssey/index.js.map +1 -0
  47. package/dist/themes/odyssey/palette.d.ts +14 -0
  48. package/dist/themes/odyssey/palette.d.ts.map +1 -0
  49. package/dist/themes/odyssey/palette.js +94 -0
  50. package/dist/themes/odyssey/palette.js.map +1 -0
  51. package/dist/themes/odyssey/shape.d.ts +14 -0
  52. package/dist/themes/odyssey/shape.d.ts.map +1 -0
  53. package/dist/themes/odyssey/shape.js +16 -0
  54. package/dist/themes/odyssey/shape.js.map +1 -0
  55. package/dist/themes/odyssey/spacing.d.ts +14 -0
  56. package/dist/themes/odyssey/spacing.d.ts.map +1 -0
  57. package/dist/themes/odyssey/spacing.js +14 -0
  58. package/dist/themes/odyssey/spacing.js.map +1 -0
  59. package/dist/themes/odyssey/theme.d.ts +15 -0
  60. package/dist/themes/odyssey/theme.d.ts.map +1 -0
  61. package/dist/themes/odyssey/theme.js +27 -0
  62. package/dist/themes/odyssey/theme.js.map +1 -0
  63. package/dist/themes/odyssey/typography.d.ts +14 -0
  64. package/dist/themes/odyssey/typography.d.ts.map +1 -0
  65. package/dist/themes/odyssey/typography.js +90 -0
  66. package/dist/themes/odyssey/typography.js.map +1 -0
  67. package/dist/themes/odyssey/typography.types.d.ts +34 -0
  68. package/dist/themes/odyssey/typography.types.d.ts.map +1 -0
  69. package/dist/themes/odyssey/typography.types.js +2 -0
  70. package/dist/themes/odyssey/typography.types.js.map +1 -0
  71. package/dist/utils/index.d.ts +13 -0
  72. package/dist/utils/index.d.ts.map +1 -0
  73. package/dist/utils/index.js +13 -0
  74. package/dist/utils/index.js.map +1 -0
  75. package/dist/utils/oid.d.ts +15 -0
  76. package/dist/utils/oid.d.ts.map +1 -0
  77. package/dist/utils/oid.js +20 -0
  78. package/dist/utils/oid.js.map +1 -0
  79. package/jest.config.cjs +15 -0
  80. package/jest.setup.js +15 -0
  81. package/package.json +32 -0
  82. package/src/components/Link/Link.tsx +44 -0
  83. package/src/components/Link/index.tsx +13 -0
  84. package/src/components/PasswordInput/PasswordInput.test.tsx +51 -0
  85. package/src/components/PasswordInput/PasswordInput.tsx +111 -0
  86. package/src/components/PasswordInput/index.ts +13 -0
  87. package/src/components/index.ts +14 -0
  88. package/src/index.ts +14 -0
  89. package/src/themes/index.ts +13 -0
  90. package/src/themes/odyssey/components.ts +321 -0
  91. package/src/themes/odyssey/components.types.ts +78 -0
  92. package/src/themes/odyssey/index.ts +13 -0
  93. package/src/themes/odyssey/palette.ts +100 -0
  94. package/src/themes/odyssey/shape.ts +18 -0
  95. package/src/themes/odyssey/spacing.ts +27 -0
  96. package/src/themes/odyssey/theme.ts +29 -0
  97. package/src/themes/odyssey/typography.ts +92 -0
  98. package/src/themes/odyssey/typography.types.ts +36 -0
  99. package/src/utils/index.ts +13 -0
  100. package/src/utils/oid.test.ts +21 -0
  101. package/src/utils/oid.ts +22 -0
  102. package/test/a11yCheck.ts +28 -0
  103. package/test/index.ts +13 -0
  104. package/tsconfig.json +3 -0
  105. package/tsconfig.production.json +7 -0
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../../src/themes/odyssey/index.ts"],"names":["theme","odysseyTheme"],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;SAESA,KAAK,IAAIC,Y","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\nexport { theme as odysseyTheme } from \"./theme\";\n"],"file":"index.js"}
@@ -0,0 +1,14 @@
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
+ import type { ThemeOptions } from "@mui/material";
13
+ export declare const palette: ThemeOptions["palette"];
14
+ //# sourceMappingURL=palette.d.ts.map
@@ -0,0 +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;AAElD,eAAO,MAAM,OAAO,EAAE,YAAY,CAAC,SAAS,CAqF3C,CAAC"}
@@ -0,0 +1,94 @@
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 const palette = {
13
+ mode: "light",
14
+ common: {
15
+ black: "#1d1d21",
16
+ white: "#ffffff"
17
+ },
18
+ primary: {
19
+ light: "#a7b5ec",
20
+ main: "#1662dd",
21
+ dark: "#00297a",
22
+ contrastText: "#ffffff"
23
+ },
24
+ secondary: {
25
+ light: "#80C7CA",
26
+ main: "#2D8C9E",
27
+ dark: "#004650",
28
+ contrastText: "#ffffff"
29
+ },
30
+ error: {
31
+ light: "#f88c90",
32
+ main: "#da372c",
33
+ dark: "#640019",
34
+ contrastText: "#ffffff"
35
+ },
36
+ warning: {
37
+ light: "#f9dc77",
38
+ main: "#ffc61c",
39
+ dark: "#663800",
40
+ contrastText: "#1d1d21"
41
+ },
42
+ info: {
43
+ light: "#a7b5ec",
44
+ main: "#1662dd",
45
+ dark: "#00297a",
46
+ contrastText: "#ffffff"
47
+ },
48
+ success: {
49
+ light: "#84d2b1",
50
+ main: "#00b478",
51
+ dark: "#00503c",
52
+ contrastText: "#ffffff"
53
+ },
54
+ grey: {
55
+ 50: "#f5f5f6",
56
+ 100: "#ebebed",
57
+ 200: "#d7d7dc",
58
+ 300: "#c1c1c8",
59
+ 400: "#aaaab4",
60
+ 500: "#8c8c96",
61
+ 600: "#6e6e78",
62
+ 700: "#585862",
63
+ 800: "#41414b",
64
+ 900: "#1d1d21",
65
+ A100: "#ebebed",
66
+ A200: "#d7d7dc",
67
+ A400: "#aaaab4",
68
+ A700: "#585862"
69
+ },
70
+ text: {
71
+ primary: "#1d1d21",
72
+ secondary: "#6e6e78",
73
+ disabled: "#6e6e78"
74
+ },
75
+ divider: "#d7d7dc",
76
+ background: {
77
+ paper: "#ffffff",
78
+ default: "#ffffff"
79
+ },
80
+ action: {
81
+ active: "rgba(0, 0, 0, 0.54)",
82
+ hover: "rgba(0, 0, 0, 0.04)",
83
+ hoverOpacity: 0.04,
84
+ selected: "rgba(0, 0, 0, 0.08)",
85
+ selectedOpacity: 0.08,
86
+ disabled: "rgba(0, 0, 0, 0.26)",
87
+ disabledBackground: "rgba(0, 0, 0, 0.12)",
88
+ disabledOpacity: 0.38,
89
+ focus: "rgba(0, 0, 0, 0.12)",
90
+ focusOpacity: 0.12,
91
+ activatedOpacity: 0.12
92
+ }
93
+ };
94
+ //# sourceMappingURL=palette.js.map
@@ -0,0 +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;AAIA,OAAO,MAAMA,OAAgC,GAAG;AAC9CC,EAAAA,IAAI,EAAE,OADwC;AAE9CC,EAAAA,MAAM,EAAE;AACNC,IAAAA,KAAK,EAAE,SADD;AAENC,IAAAA,KAAK,EAAE;AAFD,GAFsC;AAM9CC,EAAAA,OAAO,EAAE;AACPC,IAAAA,KAAK,EAAE,SADA;AAEPC,IAAAA,IAAI,EAAE,SAFC;AAGPC,IAAAA,IAAI,EAAE,SAHC;AAIPC,IAAAA,YAAY,EAAE;AAJP,GANqC;AAY9CC,EAAAA,SAAS,EAAE;AACTJ,IAAAA,KAAK,EAAE,SADE;AAETC,IAAAA,IAAI,EAAE,SAFG;AAGTC,IAAAA,IAAI,EAAE,SAHG;AAITC,IAAAA,YAAY,EAAE;AAJL,GAZmC;AAkB9CE,EAAAA,KAAK,EAAE;AACLL,IAAAA,KAAK,EAAE,SADF;AAELC,IAAAA,IAAI,EAAE,SAFD;AAGLC,IAAAA,IAAI,EAAE,SAHD;AAILC,IAAAA,YAAY,EAAE;AAJT,GAlBuC;AAwB9CG,EAAAA,OAAO,EAAE;AACPN,IAAAA,KAAK,EAAE,SADA;AAEPC,IAAAA,IAAI,EAAE,SAFC;AAGPC,IAAAA,IAAI,EAAE,SAHC;AAIPC,IAAAA,YAAY,EAAE;AAJP,GAxBqC;AA8B9CI,EAAAA,IAAI,EAAE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AK,EAAE,qBAVD;AAWNC,IAAAA,YAAY,EAAE,IAXR;AAYNC,IAAAA,gBAAgB,EAAE;AAZZ;AAvEsC,CAAzC","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\";\n\nexport const palette: ThemeOptions[\"palette\"] = {\n mode: \"light\",\n common: {\n black: \"#1d1d21\",\n white: \"#ffffff\",\n },\n primary: {\n light: \"#a7b5ec\",\n main: \"#1662dd\",\n dark: \"#00297a\",\n contrastText: \"#ffffff\",\n },\n secondary: {\n light: \"#80C7CA\",\n main: \"#2D8C9E\",\n dark: \"#004650\",\n contrastText: \"#ffffff\",\n },\n error: {\n light: \"#f88c90\",\n main: \"#da372c\",\n dark: \"#640019\",\n contrastText: \"#ffffff\",\n },\n warning: {\n light: \"#f9dc77\",\n main: \"#ffc61c\",\n dark: \"#663800\",\n contrastText: \"#1d1d21\",\n },\n info: {\n light: \"#a7b5ec\",\n main: \"#1662dd\",\n dark: \"#00297a\",\n contrastText: \"#ffffff\",\n },\n success: {\n light: \"#84d2b1\",\n main: \"#00b478\",\n dark: \"#00503c\",\n contrastText: \"#ffffff\",\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: \"#1d1d21\",\n secondary: \"#6e6e78\",\n // We do not currently have a unique disabled color.\n disabled: \"#6e6e78\",\n },\n // Currently mapping this to ColorBorderDisplay.\n divider: \"#d7d7dc\",\n background: {\n paper: \"#ffffff\",\n default: \"#ffffff\",\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,14 @@
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
+ import type { ThemeOptions } from "@mui/material";
13
+ export declare const shape: ThemeOptions["shape"];
14
+ //# sourceMappingURL=shape.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"shape.d.ts","sourceRoot":"","sources":["../../../src/themes/odyssey/shape.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG;AAEH,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,eAAe,CAAC;AAGlD,eAAO,MAAM,KAAK,EAAE,YAAY,CAAC,OAAO,CAEvC,CAAC"}
@@ -0,0 +1,16 @@
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
+ import * as Tokens from "@okta/odyssey-design-tokens";
13
+ export const shape = {
14
+ borderRadius: Tokens.BorderRadiusBase
15
+ };
16
+ //# sourceMappingURL=shape.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../../src/themes/odyssey/shape.ts"],"names":["Tokens","shape","borderRadius","BorderRadiusBase"],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAGA,OAAO,KAAKA,MAAZ,MAAwB,6BAAxB;AAEA,OAAO,MAAMC,KAA4B,GAAG;AAC1CC,EAAAA,YAAY,EAAEF,MAAM,CAACG;AADqB,CAArC","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 shape: ThemeOptions[\"shape\"] = {\n borderRadius: Tokens.BorderRadiusBase,\n};\n"],"file":"shape.js"}
@@ -0,0 +1,14 @@
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
+ import type { ThemeOptions } from "@mui/material";
13
+ export declare const spacing: ThemeOptions["spacing"];
14
+ //# sourceMappingURL=spacing.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"spacing.d.ts","sourceRoot":"","sources":["../../../src/themes/odyssey/spacing.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG;AAEH,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,eAAe,CAAC;AAGlD,eAAO,MAAM,OAAO,EAAE,YAAY,CAAC,SAAS,CAW3C,CAAC"}
@@ -0,0 +1,14 @@
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
+ import * as Tokens from "@okta/odyssey-design-tokens";
13
+ export const spacing = [0, Tokens.SpaceScale0, Tokens.SpaceScale1, Tokens.SpaceScale2, Tokens.SpaceScale3, Tokens.SpaceScale4, Tokens.SpaceScale5, Tokens.SpaceScale6, Tokens.SpaceScale7, Tokens.SpaceScale8];
14
+ //# sourceMappingURL=spacing.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../../src/themes/odyssey/spacing.ts"],"names":["Tokens","spacing","SpaceScale0","SpaceScale1","SpaceScale2","SpaceScale3","SpaceScale4","SpaceScale5","SpaceScale6","SpaceScale7","SpaceScale8"],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAGA,OAAO,KAAKA,MAAZ,MAAwB,6BAAxB;AAEA,OAAO,MAAMC,OAAgC,GAAG,CAC9C,CAD8C,EAE9CD,MAAM,CAACE,WAFuC,EAG9CF,MAAM,CAACG,WAHuC,EAI9CH,MAAM,CAACI,WAJuC,EAK9CJ,MAAM,CAACK,WALuC,EAM9CL,MAAM,CAACM,WANuC,EAO9CN,MAAM,CAACO,WAPuC,EAQ9CP,MAAM,CAACQ,WARuC,EAS9CR,MAAM,CAACS,WATuC,EAU9CT,MAAM,CAACU,WAVuC,CAAzC","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 spacing: ThemeOptions[\"spacing\"] = [\n 0,\n Tokens.SpaceScale0,\n Tokens.SpaceScale1,\n Tokens.SpaceScale2,\n Tokens.SpaceScale3,\n Tokens.SpaceScale4,\n Tokens.SpaceScale5,\n Tokens.SpaceScale6,\n Tokens.SpaceScale7,\n Tokens.SpaceScale8,\n];\n"],"file":"spacing.js"}
@@ -0,0 +1,15 @@
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
+ import "./typography.types";
13
+ import "./components.types";
14
+ export declare const theme: import("@mui/material/styles").Theme;
15
+ //# sourceMappingURL=theme.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"theme.d.ts","sourceRoot":"","sources":["../../../src/themes/odyssey/theme.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG;AAQH,OAAO,oBAAoB,CAAC;AAE5B,OAAO,oBAAoB,CAAC;AAE5B,eAAO,MAAM,KAAK,sCAMhB,CAAC"}
@@ -0,0 +1,27 @@
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
+ import { createTheme } from "@mui/material/styles";
13
+ import { palette } from "./palette.js";
14
+ import { shape } from "./shape.js";
15
+ import { spacing } from "./spacing.js";
16
+ import { typography } from "./typography.js";
17
+ import "./typography.types.js";
18
+ import { components } from "./components.js";
19
+ import "./components.types.js";
20
+ export const theme = createTheme({
21
+ palette,
22
+ shape,
23
+ spacing,
24
+ typography,
25
+ components
26
+ });
27
+ //# sourceMappingURL=theme.js.map
@@ -0,0 +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;SACAC,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 { 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"}
@@ -0,0 +1,14 @@
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
+ import type { ThemeOptions } from "@mui/material";
13
+ export declare const typography: ThemeOptions["typography"];
14
+ //# sourceMappingURL=typography.d.ts.map
@@ -0,0 +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,CA4EjD,CAAC"}
@@ -0,0 +1,90 @@
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
+ import * as Tokens from "@okta/odyssey-design-tokens";
13
+ export const typography = {
14
+ htmlFontSize: 16,
15
+ fontFamily: Tokens.FontFamilyBase,
16
+ fontSize: 14,
17
+ fontWeightLight: 300,
18
+ fontWeightRegular: Number(Tokens.FontWeightNormal),
19
+ fontWeightMedium: 500,
20
+ fontWeightBold: Number(Tokens.FontWeightBold),
21
+ h1: {
22
+ fontFamily: Tokens.FontFamilyBase,
23
+ fontWeight: Tokens.FontWeightBold,
24
+ fontSize: Tokens.FontSizeHeading1,
25
+ lineHeight: Tokens.FontLineHeightHeading1,
26
+ letterSpacing: "initial",
27
+ marginBottom: Tokens.SpaceScale1
28
+ },
29
+ h2: {
30
+ fontFamily: Tokens.FontFamilyBase,
31
+ fontWeight: Tokens.FontWeightBold,
32
+ fontSize: Tokens.FontSizeHeading2,
33
+ lineHeight: Tokens.FontLineHeightHeading2,
34
+ letterSpacing: "initial",
35
+ marginBottom: Tokens.SpaceScale1
36
+ },
37
+ h3: {
38
+ fontFamily: Tokens.FontFamilyBase,
39
+ fontWeight: Tokens.FontWeightBold,
40
+ fontSize: Tokens.FontSizeHeading3,
41
+ lineHeight: Tokens.FontLineHeightHeading3,
42
+ letterSpacing: "initial",
43
+ marginBottom: Tokens.SpaceScale1
44
+ },
45
+ h4: {
46
+ fontFamily: Tokens.FontFamilyBase,
47
+ fontWeight: Tokens.FontWeightBold,
48
+ fontSize: Tokens.FontSizeHeading4,
49
+ lineHeight: Tokens.FontLineHeightHeading4,
50
+ letterSpacing: "initial",
51
+ marginBottom: Tokens.SpaceScale1
52
+ },
53
+ h5: {
54
+ fontFamily: Tokens.FontFamilyBase,
55
+ fontWeight: Tokens.FontWeightBold,
56
+ fontSize: Tokens.FontSizeHeading5,
57
+ lineHeight: Tokens.FontLineHeightHeading5,
58
+ letterSpacing: "initial",
59
+ marginBottom: Tokens.SpaceScale1
60
+ },
61
+ h6: {
62
+ fontFamily: Tokens.FontFamilyBase,
63
+ fontWeight: Tokens.FontWeightBold,
64
+ fontSize: Tokens.FontScale2,
65
+ lineHeight: Tokens.FontLineHeightHeading6,
66
+ letterSpacing: "initial",
67
+ marginBottom: Tokens.SpaceScale1
68
+ },
69
+ subtitle1: undefined,
70
+ subtitle2: undefined,
71
+ body: {
72
+ fontFamily: Tokens.FontFamilyBase,
73
+ fontWeight: Number(Tokens.FontWeightNormal),
74
+ fontSize: Tokens.FontScale1,
75
+ lineHeight: Tokens.FontLineHeightBody,
76
+ letterSpacing: "initial"
77
+ },
78
+ body1: undefined,
79
+ body2: undefined,
80
+ button: undefined,
81
+ caption: {
82
+ fontFamily: Tokens.FontFamilyBase,
83
+ fontWeight: Tokens.FontWeightNormal,
84
+ fontSize: Tokens.FontScale0,
85
+ lineHeight: Tokens.FontLineHeightBody,
86
+ letterSpacing: "initial"
87
+ },
88
+ overline: undefined
89
+ };
90
+ //# sourceMappingURL=typography.js.map
@@ -0,0 +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","letterSpacing","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":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAGA,OAAO,KAAKA,MAAZ,MAAwB,6BAAxB;AAEA,OAAO,MAAMC,UAAsC,GAAG;AACpDC,EAAAA,YAAY,EAAE,EADsC;AAEpDC,EAAAA,UAAU,EAAEH,MAAM,CAACI,cAFiC;AAGpDC,EAAAA,QAAQ,EAAE,EAH0C;AAIpDC,EAAAA,eAAe,EAAE,GAJmC;AAKpDC,EAAAA,iBAAiB,EAAEC,MAAM,CAACR,MAAM,CAACS,gBAAR,CAL2B;AAMpDC,EAAAA,gBAAgB,EAAE,GANkC;AAOpDC,EAAAA,cAAc,EAAEH,MAAM,CAACR,MAAM,CAACY,cAAR,CAP8B;AAQpDC,EAAAA,EAAE,EAAE;AACFV,IAAAA,UAAU,EAAEH,MAAM,CAACI,cADjB;AAEFU,IAAAA,UAAU,EAAEd,MAAM,CAACY,cAFjB;AAGFP,IAAAA,QAAQ,EAAEL,MAAM,CAACe,gBAHf;AAIFC,IAAAA,UAAU,EAAEhB,MAAM,CAACiB,sBAJj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, 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 h1: {\n fontFamily: Tokens.FontFamilyBase,\n fontWeight: Tokens.FontWeightBold,\n fontSize: Tokens.FontSizeHeading1,\n lineHeight: Tokens.FontLineHeightHeading1,\n letterSpacing: \"initial\",\n marginBottom: Tokens.SpaceScale1,\n },\n h2: {\n fontFamily: Tokens.FontFamilyBase,\n fontWeight: Tokens.FontWeightBold,\n fontSize: Tokens.FontSizeHeading2,\n lineHeight: Tokens.FontLineHeightHeading2,\n letterSpacing: \"initial\",\n marginBottom: Tokens.SpaceScale1,\n },\n h3: {\n fontFamily: Tokens.FontFamilyBase,\n fontWeight: Tokens.FontWeightBold,\n fontSize: Tokens.FontSizeHeading3,\n lineHeight: Tokens.FontLineHeightHeading3,\n letterSpacing: \"initial\",\n marginBottom: Tokens.SpaceScale1,\n },\n h4: {\n fontFamily: Tokens.FontFamilyBase,\n fontWeight: Tokens.FontWeightBold,\n fontSize: Tokens.FontSizeHeading4,\n lineHeight: Tokens.FontLineHeightHeading4,\n letterSpacing: \"initial\",\n marginBottom: Tokens.SpaceScale1,\n },\n h5: {\n fontFamily: Tokens.FontFamilyBase,\n fontWeight: Tokens.FontWeightBold,\n fontSize: Tokens.FontSizeHeading5,\n lineHeight: Tokens.FontLineHeightHeading5,\n letterSpacing: \"initial\",\n marginBottom: Tokens.SpaceScale1,\n },\n h6: {\n fontFamily: Tokens.FontFamilyBase,\n fontWeight: Tokens.FontWeightBold,\n fontSize: Tokens.FontScale2,\n lineHeight: Tokens.FontLineHeightHeading6,\n letterSpacing: \"initial\",\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 lineHeight: Tokens.FontLineHeightBody,\n letterSpacing: \"initial\",\n },\n body1: undefined,\n body2: undefined,\n button: undefined,\n caption: {\n fontFamily: Tokens.FontFamilyBase,\n fontWeight: Tokens.FontWeightNormal,\n fontSize: Tokens.FontScale0,\n lineHeight: Tokens.FontLineHeightBody,\n letterSpacing: \"initial\",\n },\n overline: undefined,\n};\n"],"file":"typography.js"}
@@ -0,0 +1,34 @@
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
+ import { CSSProperties } from "react";
13
+ declare module "@mui/material/styles" {
14
+ interface TypographyVariants {
15
+ body: CSSProperties;
16
+ }
17
+ interface TypographyVariantsOptions {
18
+ body?: CSSProperties;
19
+ }
20
+ }
21
+ declare module "@mui/material/Typography" {
22
+ interface TypographyPropsVariantOverrides {
23
+ body1: false;
24
+ body2: false;
25
+ body: true;
26
+ button: false;
27
+ overline: false;
28
+ subtitle1: false;
29
+ subtitle2: false;
30
+ default: true;
31
+ monochrome: true;
32
+ }
33
+ }
34
+ //# sourceMappingURL=typography.types.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"typography.types.d.ts","sourceRoot":"","sources":["../../../src/themes/odyssey/typography.types.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG;AAEH,OAAO,EAAE,aAAa,EAAE,MAAM,OAAO,CAAC;AAEtC,OAAO,QAAQ,sBAAsB,CAAC;IACpC,UAAU,kBAAkB;QAC1B,IAAI,EAAE,aAAa,CAAC;KACrB;IACD,UAAU,yBAAyB;QACjC,IAAI,CAAC,EAAE,aAAa,CAAC;KACtB;CACF;AAED,OAAO,QAAQ,0BAA0B,CAAC;IACxC,UAAU,+BAA+B;QACvC,KAAK,EAAE,KAAK,CAAC;QACb,KAAK,EAAE,KAAK,CAAC;QACb,IAAI,EAAE,IAAI,CAAC;QACX,MAAM,EAAE,KAAK,CAAC;QACd,QAAQ,EAAE,KAAK,CAAC;QAChB,SAAS,EAAE,KAAK,CAAC;QACjB,SAAS,EAAE,KAAK,CAAC;QACjB,OAAO,EAAE,IAAI,CAAC;QACd,UAAU,EAAE,IAAI,CAAC;KAClB;CACF"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=typography.types.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":[],"names":[],"mappings":"","sourcesContent":[],"file":"typography.types.js"}
@@ -0,0 +1,13 @@
1
+ /*!
2
+ * Copyright (c) 2021-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 { oid, useOid } from "./oid";
13
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/utils/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG;AAEH,OAAO,EAAE,GAAG,EAAE,MAAM,EAAE,MAAM,OAAO,CAAC"}
@@ -0,0 +1,13 @@
1
+ /*!
2
+ * Copyright (c) 2021-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 { oid, useOid } from "./oid.js";
13
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../src/utils/index.ts"],"names":["oid","useOid"],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;SAESA,G,EAAKC,M","sourcesContent":["/*!\n * Copyright (c) 2021-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\nexport { oid, useOid } from \"./oid\";\n"],"file":"index.js"}
@@ -0,0 +1,15 @@
1
+ /*!
2
+ * Copyright (c) 2021-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 declare const length = 6;
13
+ export declare const oid: () => string;
14
+ export declare const useOid: (id?: string | undefined) => string;
15
+ //# sourceMappingURL=oid.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"oid.d.ts","sourceRoot":"","sources":["../../src/utils/oid.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG;AAIH,eAAO,MAAM,MAAM,IAAI,CAAC;AAExB,eAAO,MAAM,GAAG,QAAO,MAAmD,CAAC;AAE3E,eAAO,MAAM,MAAM,+BAAkB,MAGpC,CAAC"}
@@ -0,0 +1,20 @@
1
+ /*!
2
+ * Copyright (c) 2021-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
+ import { useMemo } from "react";
13
+ export const length = 6;
14
+ export const oid = () => Math.random().toString(36).slice(-length);
15
+ export const useOid = id => {
16
+ const _oid = useMemo(oid, [oid]);
17
+
18
+ return id || _oid;
19
+ };
20
+ //# sourceMappingURL=oid.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../src/utils/oid.ts"],"names":["useMemo","length","oid","Math","random","toString","slice","useOid","id","_oid"],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAEA,SAASA,OAAT,QAAwB,OAAxB;AAEA,OAAO,MAAMC,MAAM,GAAG,CAAf;AAEP,OAAO,MAAMC,GAAG,GAAG,MAAcC,IAAI,CAACC,MAAL,GAAcC,QAAd,CAAuB,EAAvB,EAA2BC,KAA3B,CAAiC,CAACL,MAAlC,CAA1B;AAEP,OAAO,MAAMM,MAAM,GAAIC,EAAD,IAAyB;AAC7C,QAAMC,IAAI,GAAGT,OAAO,CAACE,GAAD,EAAM,CAACA,GAAD,CAAN,CAApB;;AACA,SAAOM,EAAE,IAAIC,IAAb;AACD,CAHM","sourcesContent":["/*!\n * Copyright (c) 2021-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 { useMemo } from \"react\";\n\nexport const length = 6;\n\nexport const oid = (): string => Math.random().toString(36).slice(-length);\n\nexport const useOid = (id?: string): string => {\n const _oid = useMemo(oid, [oid]);\n return id || _oid;\n};\n"],"file":"oid.js"}
@@ -0,0 +1,15 @@
1
+ /*!
2
+ * Copyright (c) 2021-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
+ module.exports = {
14
+ setupFilesAfterEnv: ["./jest.setup.js"],
15
+ };
package/jest.setup.js ADDED
@@ -0,0 +1,15 @@
1
+ /*!
2
+ * Copyright (c) 2021-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 "regenerator-runtime/runtime";
14
+ import "@testing-library/jest-dom";
15
+ import "jest-axe/extend-expect";
package/package.json ADDED
@@ -0,0 +1,32 @@
1
+ {
2
+ "name": "@okta/odyssey-react-mui",
3
+ "version": "0.14.1",
4
+ "description": "React MUI components for Odyssey, Okta's design system",
5
+ "author": "Okta, Inc.",
6
+ "license": "Apache-2.0",
7
+ "main": "dist/index.js",
8
+ "module": "dist/index.js",
9
+ "types": "dist/index.d.ts",
10
+ "type": "module",
11
+ "exports": {
12
+ ".": {
13
+ "default": "./dist/index.js"
14
+ }
15
+ },
16
+ "repository": {
17
+ "type": "git",
18
+ "url": "https://github.com/okta/odyssey",
19
+ "directory": "packages/odyssey-react-mui"
20
+ },
21
+ "dependencies": {
22
+ "@okta/odyssey-design-tokens": "^0.14.1"
23
+ },
24
+ "peerDependencies": {
25
+ "@emotion/react": "^11",
26
+ "@mui/icons-material": "^5",
27
+ "@mui/material": "^5",
28
+ "react": "^17",
29
+ "react-dom": "^17"
30
+ },
31
+ "gitHead": "05033ff283aebc013fdaa866933508063750bf9b"
32
+ }