@okta/odyssey-react-mui 1.1.1 → 1.2.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 (110) hide show
  1. package/CHANGELOG.md +22 -0
  2. package/dist/Autocomplete.js +12 -1
  3. package/dist/Autocomplete.js.map +1 -1
  4. package/dist/OdysseyCacheProvider.js +4 -1
  5. package/dist/OdysseyCacheProvider.js.map +1 -1
  6. package/dist/OdysseyProvider.js +5 -1
  7. package/dist/OdysseyProvider.js.map +1 -1
  8. package/dist/OdysseyThemeProvider.js +5 -1
  9. package/dist/OdysseyThemeProvider.js.map +1 -1
  10. package/dist/OdysseyTranslationProvider.js +1 -1
  11. package/dist/OdysseyTranslationProvider.js.map +1 -1
  12. package/dist/PasswordField.js +11 -3
  13. package/dist/PasswordField.js.map +1 -1
  14. package/dist/Select.js +34 -33
  15. package/dist/Select.js.map +1 -1
  16. package/dist/Typography.js +0 -22
  17. package/dist/Typography.js.map +1 -1
  18. package/dist/createShadowDom.js +26 -0
  19. package/dist/createShadowDom.js.map +1 -0
  20. package/dist/{OdysseyI18n.js → i18n.js} +3 -2
  21. package/dist/i18n.js.map +1 -0
  22. package/dist/index.js +1 -0
  23. package/dist/index.js.map +1 -1
  24. package/dist/labs/datePickerTheme.js +4 -2
  25. package/dist/labs/datePickerTheme.js.map +1 -1
  26. package/dist/properties/ts/odyssey-react-mui.js +2 -0
  27. package/dist/properties/ts/odyssey-react-mui.js.map +1 -1
  28. package/dist/src/Autocomplete.d.ts +23 -3
  29. package/dist/src/Autocomplete.d.ts.map +1 -1
  30. package/dist/src/OdysseyCacheProvider.d.ts +6 -1
  31. package/dist/src/OdysseyCacheProvider.d.ts.map +1 -1
  32. package/dist/src/OdysseyProvider.d.ts +1 -1
  33. package/dist/src/OdysseyProvider.d.ts.map +1 -1
  34. package/dist/src/OdysseyThemeProvider.d.ts +2 -1
  35. package/dist/src/OdysseyThemeProvider.d.ts.map +1 -1
  36. package/dist/src/OdysseyTranslationProvider.d.ts +1 -1
  37. package/dist/src/OdysseyTranslationProvider.d.ts.map +1 -1
  38. package/dist/src/PasswordField.d.ts +8 -0
  39. package/dist/src/PasswordField.d.ts.map +1 -1
  40. package/dist/src/Select.d.ts +1 -54
  41. package/dist/src/Select.d.ts.map +1 -1
  42. package/dist/src/Typography.d.ts +11 -15
  43. package/dist/src/Typography.d.ts.map +1 -1
  44. package/dist/src/createShadowDom.d.ts +16 -0
  45. package/dist/src/createShadowDom.d.ts.map +1 -0
  46. package/dist/src/{OdysseyI18n.d.ts → i18n.d.ts} +5 -2
  47. package/dist/src/i18n.d.ts.map +1 -0
  48. package/dist/src/index.d.ts +1 -0
  49. package/dist/src/index.d.ts.map +1 -1
  50. package/dist/src/properties/ts/odyssey-react-mui.d.ts +2 -0
  51. package/dist/src/properties/ts/odyssey-react-mui.d.ts.map +1 -1
  52. package/dist/src/theme/components.d.ts +4 -1
  53. package/dist/src/theme/components.d.ts.map +1 -1
  54. package/dist/src/theme/createOdysseyMuiTheme.d.ts +23 -0
  55. package/dist/src/theme/createOdysseyMuiTheme.d.ts.map +1 -0
  56. package/dist/src/theme/mixins.d.ts +3 -1
  57. package/dist/src/theme/mixins.d.ts.map +1 -1
  58. package/dist/src/theme/palette.d.ts +3 -1
  59. package/dist/src/theme/palette.d.ts.map +1 -1
  60. package/dist/src/theme/shape.d.ts +3 -1
  61. package/dist/src/theme/shape.d.ts.map +1 -1
  62. package/dist/src/theme/spacing.d.ts +3 -1
  63. package/dist/src/theme/spacing.d.ts.map +1 -1
  64. package/dist/src/theme/theme.d.ts +1 -8
  65. package/dist/src/theme/theme.d.ts.map +1 -1
  66. package/dist/src/theme/typography.d.ts +3 -1
  67. package/dist/src/theme/typography.d.ts.map +1 -1
  68. package/dist/theme/components.js +80 -63
  69. package/dist/theme/components.js.map +1 -1
  70. package/dist/theme/createOdysseyMuiTheme.js +51 -0
  71. package/dist/theme/createOdysseyMuiTheme.js.map +1 -0
  72. package/dist/theme/mixins.js +4 -1
  73. package/dist/theme/mixins.js.map +1 -1
  74. package/dist/theme/palette.js +4 -1
  75. package/dist/theme/palette.js.map +1 -1
  76. package/dist/theme/shape.js +4 -1
  77. package/dist/theme/shape.js.map +1 -1
  78. package/dist/theme/spacing.js +4 -1
  79. package/dist/theme/spacing.js.map +1 -1
  80. package/dist/theme/theme.js +1 -20
  81. package/dist/theme/theme.js.map +1 -1
  82. package/dist/theme/typography.js +4 -1
  83. package/dist/theme/typography.js.map +1 -1
  84. package/dist/tsconfig.production.tsbuildinfo +1 -1
  85. package/package.json +4 -4
  86. package/src/Autocomplete.tsx +44 -3
  87. package/src/OdysseyCacheProvider.tsx +9 -1
  88. package/src/OdysseyProvider.tsx +9 -2
  89. package/src/OdysseyThemeProvider.tsx +8 -2
  90. package/src/OdysseyTranslationProvider.test.tsx +2 -2
  91. package/src/OdysseyTranslationProvider.tsx +1 -1
  92. package/src/PasswordField.tsx +24 -8
  93. package/src/Select.tsx +147 -152
  94. package/src/Typography.tsx +0 -26
  95. package/src/createShadowDom.ts +46 -0
  96. package/src/{OdysseyI18n.ts → i18n.ts} +2 -2
  97. package/src/index.ts +1 -0
  98. package/src/labs/datePickerTheme.tsx +2 -2
  99. package/src/properties/odyssey-react-mui.properties +2 -0
  100. package/src/properties/ts/odyssey-react-mui.ts +1 -1
  101. package/src/theme/components.tsx +26 -9
  102. package/src/theme/createOdysseyMuiTheme.ts +47 -0
  103. package/src/theme/mixins.ts +5 -1
  104. package/src/theme/palette.ts +5 -3
  105. package/src/theme/shape.ts +5 -1
  106. package/src/theme/spacing.ts +5 -3
  107. package/src/theme/theme.ts +1 -26
  108. package/src/theme/typography.ts +5 -3
  109. package/dist/OdysseyI18n.js.map +0 -1
  110. package/dist/src/OdysseyI18n.d.ts.map +0 -1
@@ -0,0 +1,51 @@
1
+ /*!
2
+ * Copyright (c) 2023-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 { createTheme } from "@mui/material/styles";
14
+ import { components } from "./components.js";
15
+ import { mixins } from "./mixins.js";
16
+ import { palette } from "./palette.js";
17
+ import { shape } from "./shape.js";
18
+ import { spacing } from "./spacing.js";
19
+ import { typography } from "./typography.js";
20
+ import "./components.types.js";
21
+ import "./mixins.types.js";
22
+ import "./palette.types.js";
23
+ import "./typography.types.js";
24
+ export const createOdysseyMuiTheme = _ref => {
25
+ let {
26
+ odysseyTokens,
27
+ shadowRootElement
28
+ } = _ref;
29
+ return createTheme({
30
+ components: components({
31
+ odysseyTokens,
32
+ shadowRootElement
33
+ }),
34
+ mixins: mixins({
35
+ odysseyTokens
36
+ }),
37
+ palette: palette({
38
+ odysseyTokens
39
+ }),
40
+ shape: shape({
41
+ odysseyTokens
42
+ }),
43
+ spacing: spacing({
44
+ odysseyTokens
45
+ }),
46
+ typography: typography({
47
+ odysseyTokens
48
+ })
49
+ });
50
+ };
51
+ //# sourceMappingURL=createOdysseyMuiTheme.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"createOdysseyMuiTheme.js","names":["createTheme","components","mixins","palette","shape","spacing","typography","createOdysseyMuiTheme","_ref","odysseyTokens","shadowRootElement"],"sources":["../../src/theme/createOdysseyMuiTheme.ts"],"sourcesContent":["/*!\n * Copyright (c) 2023-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\";\nimport * as Tokens from \"@okta/odyssey-design-tokens\";\n\nimport { components } from \"./components\";\nimport { mixins } from \"./mixins\";\nimport { palette } from \"./palette\";\nimport { shape } from \"./shape\";\nimport { spacing } from \"./spacing\";\nimport { typography } from \"./typography\";\nimport \"./components.types\";\nimport \"./mixins.types\";\nimport \"./palette.types\";\nimport \"./typography.types\";\n\nexport type DesignTokens = typeof Tokens;\nexport type DesignTokensOverride = Partial<typeof Tokens>;\n\nexport const createOdysseyMuiTheme = ({\n odysseyTokens,\n shadowRootElement,\n}: {\n odysseyTokens: DesignTokens;\n shadowRootElement?: HTMLDivElement;\n}) =>\n createTheme({\n components: components({\n odysseyTokens,\n shadowRootElement,\n }),\n mixins: mixins({ odysseyTokens }),\n palette: palette({ odysseyTokens }),\n shape: shape({ odysseyTokens }),\n spacing: spacing({ odysseyTokens }),\n typography: typography({ odysseyTokens }),\n });\n"],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,SAASA,WAAW,QAAQ,sBAAsB;AAAC,SAG1CC,UAAU;AAAA,SACVC,MAAM;AAAA,SACNC,OAAO;AAAA,SACPC,KAAK;AAAA,SACLC,OAAO;AAAA,SACPC,UAAU;AAAA;AAAA;AAAA;AAAA;AASnB,OAAO,MAAMC,qBAAqB,GAAGC,IAAA;EAAA,IAAC;IACpCC,aAAa;IACbC;EAIF,CAAC,GAAAF,IAAA;EAAA,OACCR,WAAW,CAAC;IACVC,UAAU,EAAEA,UAAU,CAAC;MACrBQ,aAAa;MACbC;IACF,CAAC,CAAC;IACFR,MAAM,EAAEA,MAAM,CAAC;MAAEO;IAAc,CAAC,CAAC;IACjCN,OAAO,EAAEA,OAAO,CAAC;MAAEM;IAAc,CAAC,CAAC;IACnCL,KAAK,EAAEA,KAAK,CAAC;MAAEK;IAAc,CAAC,CAAC;IAC/BJ,OAAO,EAAEA,OAAO,CAAC;MAAEI;IAAc,CAAC,CAAC;IACnCH,UAAU,EAAEA,UAAU,CAAC;MAAEG;IAAc,CAAC;EAC1C,CAAC,CAAC;AAAA"}
@@ -10,7 +10,10 @@
10
10
  * See the License for the specific language governing permissions and limitations under the License.
11
11
  */
12
12
 
13
- export const mixins = odysseyTokens => {
13
+ export const mixins = _ref => {
14
+ let {
15
+ odysseyTokens
16
+ } = _ref;
14
17
  return {
15
18
  maxWidth: odysseyTokens.TypographyLineLengthMax,
16
19
  borderRadius: odysseyTokens.BorderRadiusMain,
@@ -1 +1 @@
1
- {"version":3,"file":"mixins.js","names":["mixins","odysseyTokens","maxWidth","TypographyLineLengthMax","borderRadius","BorderRadiusMain","borderStyle","BorderStyleMain","borderWidth","BorderWidthMain"],"sources":["../../src/theme/mixins.ts"],"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\nimport { DesignTokens } from \"./theme\";\n\nexport const mixins = (odysseyTokens: DesignTokens): ThemeOptions[\"mixins\"] => {\n return {\n maxWidth: odysseyTokens.TypographyLineLengthMax,\n borderRadius: odysseyTokens.BorderRadiusMain,\n borderStyle: odysseyTokens.BorderStyleMain,\n borderWidth: odysseyTokens.BorderWidthMain,\n };\n};\n"],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAMA,OAAO,MAAMA,MAAM,GAAIC,aAA2B,IAA6B;EAC7E,OAAO;IACLC,QAAQ,EAAED,aAAa,CAACE,uBAAuB;IAC/CC,YAAY,EAAEH,aAAa,CAACI,gBAAgB;IAC5CC,WAAW,EAAEL,aAAa,CAACM,eAAe;IAC1CC,WAAW,EAAEP,aAAa,CAACQ;EAC7B,CAAC;AACH,CAAC"}
1
+ {"version":3,"file":"mixins.js","names":["mixins","_ref","odysseyTokens","maxWidth","TypographyLineLengthMax","borderRadius","BorderRadiusMain","borderStyle","BorderStyleMain","borderWidth","BorderWidthMain"],"sources":["../../src/theme/mixins.ts"],"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\nimport { DesignTokens } from \"./theme\";\n\nexport const mixins = ({\n odysseyTokens,\n}: {\n odysseyTokens: DesignTokens;\n}): ThemeOptions[\"mixins\"] => {\n return {\n maxWidth: odysseyTokens.TypographyLineLengthMax,\n borderRadius: odysseyTokens.BorderRadiusMain,\n borderStyle: odysseyTokens.BorderStyleMain,\n borderWidth: odysseyTokens.BorderWidthMain,\n };\n};\n"],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAMA,OAAO,MAAMA,MAAM,GAAGC,IAAA,IAIQ;EAAA,IAJP;IACrBC;EAGF,CAAC,GAAAD,IAAA;EACC,OAAO;IACLE,QAAQ,EAAED,aAAa,CAACE,uBAAuB;IAC/CC,YAAY,EAAEH,aAAa,CAACI,gBAAgB;IAC5CC,WAAW,EAAEL,aAAa,CAACM,eAAe;IAC1CC,WAAW,EAAEP,aAAa,CAACQ;EAC7B,CAAC;AACH,CAAC"}
@@ -10,7 +10,10 @@
10
10
  * See the License for the specific language governing permissions and limitations under the License.
11
11
  */
12
12
 
13
- export const palette = odysseyTokens => {
13
+ export const palette = _ref => {
14
+ let {
15
+ odysseyTokens
16
+ } = _ref;
14
17
  return {
15
18
  mode: "light",
16
19
  common: {
@@ -1 +1 @@
1
- {"version":3,"file":"palette.js","names":["palette","odysseyTokens","mode","common","black","HueNeutral900","white","HueNeutralWhite","primary","lighter","HueBlue50","light","HueBlue300","main","HueBlue500","dark","HueBlue900","contrastText","TypographyColorInverse","secondary","error","HueRed50","HueRed300","HueRed500","HueRed900","warning","HueYellow50","HueYellow300","HueYellow500","HueYellow900","TypographyColorBody","info","success","HueGreen50","HueGreen300","HueGreen500","HueGreen900","grey","HueNeutral50","HueNeutral100","HueNeutral200","HueNeutral300","HueNeutral400","HueNeutral500","HueNeutral600","HueNeutral700","HueNeutral800","A100","A200","A400","A700","text","disabled","divider","BorderColorDisplay","background","paper","default","action","active","hover","hoverOpacity","selected","selectedOpacity","disabledBackground","disabledOpacity","focus","focusOpacity","activatedOpacity"],"sources":["../../src/theme/palette.ts"],"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\nimport { DesignTokens } from \"./theme\";\n\nexport const palette = (\n odysseyTokens: DesignTokens\n): ThemeOptions[\"palette\"] => {\n return {\n mode: \"light\",\n common: {\n black: odysseyTokens.HueNeutral900,\n white: odysseyTokens.HueNeutralWhite,\n },\n primary: {\n lighter: odysseyTokens.HueBlue50,\n light: odysseyTokens.HueBlue300,\n main: odysseyTokens.HueBlue500,\n dark: odysseyTokens.HueBlue900,\n contrastText: odysseyTokens.TypographyColorInverse,\n },\n secondary: {\n light: \"#80c7ca\",\n main: \"#096256\",\n dark: \"#004650\",\n contrastText: odysseyTokens.TypographyColorInverse,\n },\n error: {\n lighter: odysseyTokens.HueRed50,\n light: odysseyTokens.HueRed300,\n main: odysseyTokens.HueRed500,\n dark: odysseyTokens.HueRed900,\n contrastText: odysseyTokens.TypographyColorInverse,\n },\n warning: {\n lighter: odysseyTokens.HueYellow50,\n light: odysseyTokens.HueYellow300,\n main: odysseyTokens.HueYellow500,\n dark: odysseyTokens.HueYellow900,\n contrastText: odysseyTokens.TypographyColorBody,\n },\n info: {\n lighter: odysseyTokens.HueBlue50,\n light: odysseyTokens.HueBlue300,\n main: odysseyTokens.HueBlue500,\n dark: odysseyTokens.HueBlue900,\n contrastText: odysseyTokens.TypographyColorInverse,\n },\n success: {\n lighter: odysseyTokens.HueGreen50,\n light: odysseyTokens.HueGreen300,\n main: odysseyTokens.HueGreen500,\n dark: odysseyTokens.HueGreen900,\n contrastText: odysseyTokens.TypographyColorInverse,\n },\n grey: {\n 50: odysseyTokens.HueNeutral50,\n 100: odysseyTokens.HueNeutral100,\n 200: odysseyTokens.HueNeutral200,\n 300: odysseyTokens.HueNeutral300,\n 400: odysseyTokens.HueNeutral400,\n 500: odysseyTokens.HueNeutral500,\n 600: odysseyTokens.HueNeutral600,\n 700: odysseyTokens.HueNeutral700,\n 800: odysseyTokens.HueNeutral800,\n 900: odysseyTokens.HueNeutral900,\n // These are \"Accent\" colors. MUI's palette matches them to the standard greys.\n A100: odysseyTokens.HueNeutral100,\n A200: odysseyTokens.HueNeutral200,\n A400: odysseyTokens.HueNeutral400,\n A700: odysseyTokens.HueNeutral700,\n },\n text: {\n primary: odysseyTokens.HueNeutral900,\n secondary: odysseyTokens.HueNeutral600,\n disabled: odysseyTokens.HueNeutral300,\n },\n divider: odysseyTokens.BorderColorDisplay,\n background: {\n paper: odysseyTokens.HueNeutralWhite,\n default: odysseyTokens.HueNeutralWhite,\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: odysseyTokens.HueNeutral200,\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};\n"],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAMA,OAAO,MAAMA,OAAO,GAClBC,aAA2B,IACC;EAC5B,OAAO;IACLC,IAAI,EAAE,OAAO;IACbC,MAAM,EAAE;MACNC,KAAK,EAAEH,aAAa,CAACI,aAAa;MAClCC,KAAK,EAAEL,aAAa,CAACM;IACvB,CAAC;IACDC,OAAO,EAAE;MACPC,OAAO,EAAER,aAAa,CAACS,SAAS;MAChCC,KAAK,EAAEV,aAAa,CAACW,UAAU;MAC/BC,IAAI,EAAEZ,aAAa,CAACa,UAAU;MAC9BC,IAAI,EAAEd,aAAa,CAACe,UAAU;MAC9BC,YAAY,EAAEhB,aAAa,CAACiB;IAC9B,CAAC;IACDC,SAAS,EAAE;MACTR,KAAK,EAAE,SAAS;MAChBE,IAAI,EAAE,SAAS;MACfE,IAAI,EAAE,SAAS;MACfE,YAAY,EAAEhB,aAAa,CAACiB;IAC9B,CAAC;IACDE,KAAK,EAAE;MACLX,OAAO,EAAER,aAAa,CAACoB,QAAQ;MAC/BV,KAAK,EAAEV,aAAa,CAACqB,SAAS;MAC9BT,IAAI,EAAEZ,aAAa,CAACsB,SAAS;MAC7BR,IAAI,EAAEd,aAAa,CAACuB,SA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ACuC,aAAa;MACjCS,IAAI,EAAEhD,aAAa,CAACyC,aAAa;MACjCQ,IAAI,EAAEjD,aAAa,CAAC4C;IACtB,CAAC;IACDM,IAAI,EAAE;MACJ3C,OAAO,EAAEP,aAAa,CAACI,aAAa;MACpCc,SAAS,EAAElB,aAAa,CAAC2C,aAAa;MACtCQ,QAAQ,EAAEnD,aAAa,CAACwC;IAC1B,CAAC;IACDY,OAAO,EAAEpD,aAAa,CAACqD,kBAAkB;IACzCC,UAAU,EAAE;MACVC,KAAK,EAAEvD,aAAa,CAACM,eAAe;MACpCkD,OAAO,EAAExD,aAAa,CAACM;IACzB,CAAC;IACDmD,MAAM,EAAE;MAENC,MAAM,EAAE,qBAAqB;MAC7BC,KAAK,EAAE,qBAAqB;MAC5BC,YAAY,EAAE,IAAI;MAClBC,QAAQ,EAAE,qBAAqB;MAC/BC,eAAe,EAAE,IAAI;MACrBX,QAAQ,EAAEnD,aAAa,CAACuC,aAAa;MACrCwB,kBAAkB,EAAE,qBAAqB;MACzCC,eAAe,EAAE,IAAI;MACrBC,KAAK,EAAE,qBAAqB;MAC5BC,YAAY,EAAE,IAAI;MAClBC,gBAAgB,EAAE;IACpB;EACF,CAAC;AACH,CAAC"}
1
+ {"version":3,"file":"palette.js","names":["palette","_ref","odysseyTokens","mode","common","black","HueNeutral900","white","HueNeutralWhite","primary","lighter","HueBlue50","light","HueBlue300","main","HueBlue500","dark","HueBlue900","contrastText","TypographyColorInverse","secondary","error","HueRed50","HueRed300","HueRed500","HueRed900","warning","HueYellow50","HueYellow300","HueYellow500","HueYellow900","TypographyColorBody","info","success","HueGreen50","HueGreen300","HueGreen500","HueGreen900","grey","HueNeutral50","HueNeutral100","HueNeutral200","HueNeutral300","HueNeutral400","HueNeutral500","HueNeutral600","HueNeutral700","HueNeutral800","A100","A200","A400","A700","text","disabled","divider","BorderColorDisplay","background","paper","default","action","active","hover","hoverOpacity","selected","selectedOpacity","disabledBackground","disabledOpacity","focus","focusOpacity","activatedOpacity"],"sources":["../../src/theme/palette.ts"],"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\nimport { DesignTokens } from \"./theme\";\n\nexport const palette = ({\n odysseyTokens,\n}: {\n odysseyTokens: DesignTokens;\n}): ThemeOptions[\"palette\"] => {\n return {\n mode: \"light\",\n common: {\n black: odysseyTokens.HueNeutral900,\n white: odysseyTokens.HueNeutralWhite,\n },\n primary: {\n lighter: odysseyTokens.HueBlue50,\n light: odysseyTokens.HueBlue300,\n main: odysseyTokens.HueBlue500,\n dark: odysseyTokens.HueBlue900,\n contrastText: odysseyTokens.TypographyColorInverse,\n },\n secondary: {\n light: \"#80c7ca\",\n main: \"#096256\",\n dark: \"#004650\",\n contrastText: odysseyTokens.TypographyColorInverse,\n },\n error: {\n lighter: odysseyTokens.HueRed50,\n light: odysseyTokens.HueRed300,\n main: odysseyTokens.HueRed500,\n dark: odysseyTokens.HueRed900,\n contrastText: odysseyTokens.TypographyColorInverse,\n },\n warning: {\n lighter: odysseyTokens.HueYellow50,\n light: odysseyTokens.HueYellow300,\n main: odysseyTokens.HueYellow500,\n dark: odysseyTokens.HueYellow900,\n contrastText: odysseyTokens.TypographyColorBody,\n },\n info: {\n lighter: odysseyTokens.HueBlue50,\n light: odysseyTokens.HueBlue300,\n main: odysseyTokens.HueBlue500,\n dark: odysseyTokens.HueBlue900,\n contrastText: odysseyTokens.TypographyColorInverse,\n },\n success: {\n lighter: odysseyTokens.HueGreen50,\n light: odysseyTokens.HueGreen300,\n main: odysseyTokens.HueGreen500,\n dark: odysseyTokens.HueGreen900,\n contrastText: odysseyTokens.TypographyColorInverse,\n },\n grey: {\n 50: odysseyTokens.HueNeutral50,\n 100: odysseyTokens.HueNeutral100,\n 200: odysseyTokens.HueNeutral200,\n 300: odysseyTokens.HueNeutral300,\n 400: odysseyTokens.HueNeutral400,\n 500: odysseyTokens.HueNeutral500,\n 600: odysseyTokens.HueNeutral600,\n 700: odysseyTokens.HueNeutral700,\n 800: odysseyTokens.HueNeutral800,\n 900: odysseyTokens.HueNeutral900,\n // These are \"Accent\" colors. MUI's palette matches them to the standard greys.\n A100: odysseyTokens.HueNeutral100,\n A200: odysseyTokens.HueNeutral200,\n A400: odysseyTokens.HueNeutral400,\n A700: odysseyTokens.HueNeutral700,\n },\n text: {\n primary: odysseyTokens.HueNeutral900,\n secondary: odysseyTokens.HueNeutral600,\n disabled: odysseyTokens.HueNeutral300,\n },\n divider: odysseyTokens.BorderColorDisplay,\n background: {\n paper: odysseyTokens.HueNeutralWhite,\n default: odysseyTokens.HueNeutralWhite,\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: odysseyTokens.HueNeutral200,\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};\n"],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAMA,OAAO,MAAMA,OAAO,GAAGC,IAAA,IAIQ;EAAA,IAJP;IACtBC;EAGF,CAAC,GAAAD,IAAA;EACC,OAAO;IACLE,IAAI,EAAE,OAAO;IACbC,MAAM,EAAE;MACNC,KAAK,EAAEH,aAAa,CAACI,aAAa;MACl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rBC,KAAK,EAAE,qBAAqB;MAC5BC,YAAY,EAAE,IAAI;MAClBC,gBAAgB,EAAE;IACpB;EACF,CAAC;AACH,CAAC"}
@@ -10,7 +10,10 @@
10
10
  * See the License for the specific language governing permissions and limitations under the License.
11
11
  */
12
12
 
13
- export const shape = odysseyTokens => {
13
+ export const shape = _ref => {
14
+ let {
15
+ odysseyTokens
16
+ } = _ref;
14
17
  const NumericalBorderRadiusBase = typeof odysseyTokens.BorderRadiusMain === "string" ? Number(odysseyTokens.BorderRadiusMain.replace(/(\d+).*/, "$1")) : odysseyTokens.BorderRadiusMain;
15
18
  return {
16
19
  borderRadius: NumericalBorderRadiusBase
@@ -1 +1 @@
1
- {"version":3,"file":"shape.js","names":["shape","odysseyTokens","NumericalBorderRadiusBase","BorderRadiusMain","Number","replace","borderRadius"],"sources":["../../src/theme/shape.ts"],"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\nimport { DesignTokens } from \"./theme\";\n\nexport const shape = (odysseyTokens: DesignTokens): ThemeOptions[\"shape\"] => {\n // Strip units from BorderRadiusBase to accommodate MUI's typing\n const NumericalBorderRadiusBase =\n typeof odysseyTokens.BorderRadiusMain === \"string\"\n ? Number(odysseyTokens.BorderRadiusMain.replace(/(\\d+).*/, \"$1\"))\n : odysseyTokens.BorderRadiusMain;\n\n return {\n borderRadius: NumericalBorderRadiusBase,\n };\n};\n"],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAMA,OAAO,MAAMA,KAAK,GAAIC,aAA2B,IAA4B;EAE3E,MAAMC,yBAAyB,GAC7B,OAAOD,aAAa,CAACE,gBAAgB,KAAK,QAAQ,GAC9CC,MAAM,CAACH,aAAa,CAACE,gBAAgB,CAACE,OAAO,CAAC,SAAS,EAAE,IAAI,CAAC,CAAC,GAC/DJ,aAAa,CAACE,gBAAgB;EAEpC,OAAO;IACLG,YAAY,EAAEJ;EAChB,CAAC;AACH,CAAC"}
1
+ {"version":3,"file":"shape.js","names":["shape","_ref","odysseyTokens","NumericalBorderRadiusBase","BorderRadiusMain","Number","replace","borderRadius"],"sources":["../../src/theme/shape.ts"],"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\nimport { DesignTokens } from \"./theme\";\n\nexport const shape = ({\n odysseyTokens,\n}: {\n odysseyTokens: DesignTokens;\n}): ThemeOptions[\"shape\"] => {\n // Strip units from BorderRadiusBase to accommodate MUI's typing\n const NumericalBorderRadiusBase =\n typeof odysseyTokens.BorderRadiusMain === \"string\"\n ? Number(odysseyTokens.BorderRadiusMain.replace(/(\\d+).*/, \"$1\"))\n : odysseyTokens.BorderRadiusMain;\n\n return {\n borderRadius: NumericalBorderRadiusBase,\n };\n};\n"],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAMA,OAAO,MAAMA,KAAK,GAAGC,IAAA,IAIQ;EAAA,IAJP;IACpBC;EAGF,CAAC,GAAAD,IAAA;EAEC,MAAME,yBAAyB,GAC7B,OAAOD,aAAa,CAACE,gBAAgB,KAAK,QAAQ,GAC9CC,MAAM,CAACH,aAAa,CAACE,gBAAgB,CAACE,OAAO,CAAC,SAAS,EAAE,IAAI,CAAC,CAAC,GAC/DJ,aAAa,CAACE,gBAAgB;EAEpC,OAAO;IACLG,YAAY,EAAEJ;EAChB,CAAC;AACH,CAAC"}
@@ -10,7 +10,10 @@
10
10
  * See the License for the specific language governing permissions and limitations under the License.
11
11
  */
12
12
 
13
- export const spacing = odysseyTokens => {
13
+ export const spacing = _ref => {
14
+ let {
15
+ odysseyTokens
16
+ } = _ref;
14
17
  return [odysseyTokens.Spacing0, odysseyTokens.Spacing1, odysseyTokens.Spacing2, odysseyTokens.Spacing3, odysseyTokens.Spacing4, odysseyTokens.Spacing5, odysseyTokens.Spacing6, odysseyTokens.Spacing7, odysseyTokens.Spacing8, odysseyTokens.Spacing9];
15
18
  };
16
19
  //# sourceMappingURL=spacing.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"spacing.js","names":["spacing","odysseyTokens","Spacing0","Spacing1","Spacing2","Spacing3","Spacing4","Spacing5","Spacing6","Spacing7","Spacing8","Spacing9"],"sources":["../../src/theme/spacing.ts"],"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\nimport type { DesignTokens } from \"./theme\";\n\nexport const spacing = (\n odysseyTokens: DesignTokens\n): ThemeOptions[\"spacing\"] => {\n return [\n odysseyTokens.Spacing0,\n odysseyTokens.Spacing1,\n odysseyTokens.Spacing2,\n odysseyTokens.Spacing3,\n odysseyTokens.Spacing4,\n odysseyTokens.Spacing5,\n odysseyTokens.Spacing6,\n odysseyTokens.Spacing7,\n odysseyTokens.Spacing8,\n odysseyTokens.Spacing9,\n ];\n};\n"],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAMA,OAAO,MAAMA,OAAO,GAClBC,aAA2B,IACC;EAC5B,OAAO,CACLA,aAAa,CAACC,QAAQ,EACtBD,aAAa,CAACE,QAAQ,EACtBF,aAAa,CAACG,QAAQ,EACtBH,aAAa,CAACI,QAAQ,EACtBJ,aAAa,CAACK,QAAQ,EACtBL,aAAa,CAACM,QAAQ,EACtBN,aAAa,CAACO,QAAQ,EACtBP,aAAa,CAACQ,QAAQ,EACtBR,aAAa,CAACS,QAAQ,EACtBT,aAAa,CAACU,QAAQ,CACvB;AACH,CAAC"}
1
+ {"version":3,"file":"spacing.js","names":["spacing","_ref","odysseyTokens","Spacing0","Spacing1","Spacing2","Spacing3","Spacing4","Spacing5","Spacing6","Spacing7","Spacing8","Spacing9"],"sources":["../../src/theme/spacing.ts"],"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\nimport type { DesignTokens } from \"./theme\";\n\nexport const spacing = ({\n odysseyTokens,\n}: {\n odysseyTokens: DesignTokens;\n}): ThemeOptions[\"spacing\"] => {\n return [\n odysseyTokens.Spacing0,\n odysseyTokens.Spacing1,\n odysseyTokens.Spacing2,\n odysseyTokens.Spacing3,\n odysseyTokens.Spacing4,\n odysseyTokens.Spacing5,\n odysseyTokens.Spacing6,\n odysseyTokens.Spacing7,\n odysseyTokens.Spacing8,\n odysseyTokens.Spacing9,\n ];\n};\n"],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAMA,OAAO,MAAMA,OAAO,GAAGC,IAAA,IAIQ;EAAA,IAJP;IACtBC;EAGF,CAAC,GAAAD,IAAA;EACC,OAAO,CACLC,aAAa,CAACC,QAAQ,EACtBD,aAAa,CAACE,QAAQ,EACtBF,aAAa,CAACG,QAAQ,EACtBH,aAAa,CAACI,QAAQ,EACtBJ,aAAa,CAACK,QAAQ,EACtBL,aAAa,CAACM,QAAQ,EACtBN,aAAa,CAACO,QAAQ,EACtBP,aAAa,CAACQ,QAAQ,EACtBR,aAAa,CAACS,QAAQ,EACtBT,aAAa,CAACU,QAAQ,CACvB;AACH,CAAC"}
@@ -9,24 +9,5 @@
9
9
  *
10
10
  * See the License for the specific language governing permissions and limitations under the License.
11
11
  */
12
-
13
- import { createTheme } from "@mui/material/styles";
14
- import { components } from "./components.js";
15
- import { mixins } from "./mixins.js";
16
- import { palette } from "./palette.js";
17
- import { shape } from "./shape.js";
18
- import { spacing } from "./spacing.js";
19
- import { typography } from "./typography.js";
20
- import "./components.types.js";
21
- import "./mixins.types.js";
22
- import "./palette.types.js";
23
- import "./typography.types.js";
24
- export const createOdysseyMuiTheme = odysseyTokens => createTheme({
25
- components: components(odysseyTokens),
26
- mixins: mixins(odysseyTokens),
27
- palette: palette(odysseyTokens),
28
- shape: shape(odysseyTokens),
29
- spacing: spacing(odysseyTokens),
30
- typography: typography(odysseyTokens)
31
- });
12
+ export * from "./createOdysseyMuiTheme.js";
32
13
  //# sourceMappingURL=theme.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"theme.js","names":["createTheme","components","mixins","palette","shape","spacing","typography","createOdysseyMuiTheme","odysseyTokens"],"sources":["../../src/theme/theme.ts"],"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\";\nimport * as Tokens from \"@okta/odyssey-design-tokens\";\n\nimport { components } from \"./components\";\nimport { mixins } from \"./mixins\";\nimport { palette } from \"./palette\";\nimport { shape } from \"./shape\";\nimport { spacing } from \"./spacing\";\nimport { typography } from \"./typography\";\nimport \"./components.types\";\nimport \"./mixins.types\";\nimport \"./palette.types\";\nimport \"./typography.types\";\n\nexport type DesignTokens = typeof Tokens;\nexport type DesignTokensOverride = Partial<typeof Tokens>;\n\nexport const createOdysseyMuiTheme = (odysseyTokens: DesignTokens) =>\n createTheme({\n components: components(odysseyTokens),\n mixins: mixins(odysseyTokens),\n palette: palette(odysseyTokens),\n shape: shape(odysseyTokens),\n spacing: spacing(odysseyTokens),\n typography: typography(odysseyTokens),\n });\n"],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,SAASA,WAAW,QAAQ,sBAAsB;AAAC,SAG1CC,UAAU;AAAA,SACVC,MAAM;AAAA,SACNC,OAAO;AAAA,SACPC,KAAK;AAAA,SACLC,OAAO;AAAA,SACPC,UAAU;AAAA;AAAA;AAAA;AAAA;AASnB,OAAO,MAAMC,qBAAqB,GAAIC,aAA2B,IAC/DR,WAAW,CAAC;EACVC,UAAU,EAAEA,UAAU,CAACO,aAAa,CAAC;EACrCN,MAAM,EAAEA,MAAM,CAACM,aAAa,CAAC;EAC7BL,OAAO,EAAEA,OAAO,CAACK,aAAa,CAAC;EAC/BJ,KAAK,EAAEA,KAAK,CAACI,aAAa,CAAC;EAC3BH,OAAO,EAAEA,OAAO,CAACG,aAAa,CAAC;EAC/BF,UAAU,EAAEA,UAAU,CAACE,aAAa;AACtC,CAAC,CAAC"}
1
+ {"version":3,"file":"theme.js","names":[],"sources":["../../src/theme/theme.ts"],"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 * from \"./createOdysseyMuiTheme\";\n"],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAVA"}
@@ -10,7 +10,10 @@
10
10
  * See the License for the specific language governing permissions and limitations under the License.
11
11
  */
12
12
 
13
- export const typography = odysseyTokens => {
13
+ export const typography = _ref => {
14
+ let {
15
+ odysseyTokens
16
+ } = _ref;
14
17
  return {
15
18
  htmlFontSize: 16,
16
19
  fontFamily: odysseyTokens.TypographyFamilyBody,
@@ -1 +1 @@
1
- {"version":3,"file":"typography.js","names":["typography","odysseyTokens","htmlFontSize","fontFamily","TypographyFamilyBody","fontSize","fontWeightLight","fontWeightRegular","Number","TypographyWeightBody","fontWeightMedium","TypographyWeightHeading","fontWeightBold","TypographyWeightHeadingBold","allVariants","fontFeatureSettings","fontVariant","letterSpacing","h1","TypographyFamilyHeading","color","TypographyColorHeading","fontWeight","TypographySizeHeading1","lineHeight","TypographyLineHeightHeading1","marginBottom","Spacing2","h2","TypographySizeHeading2","TypographyLineHeightHeading2","h3","TypographySizeHeading3","TypographyLineHeightHeading3","h4","TypographySizeHeading4","TypographyLineHeightHeading4","h5","TypographySizeHeading5","TypographyLineHeightHeading5","h6","TypographySizeHeading6","TypographyLineHeightHeading6","subtitle1","TypographyColorSubordinate","TypographySizeSubordinate","TypographyLineHeightBody","subtitle2","TypographyColorSupport","TypographySizeBody","marginBlockEnd","Spacing4","body1","TypographyColorBody","body2","undefined","button","overline","TypographyLineHeightOverline","textTransform","legend","padding","ui","TypographyLineHeightUi"],"sources":["../../src/theme/typography.ts"],"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\nimport { DesignTokens } from \"./theme\";\n\nexport const typography = (\n odysseyTokens: DesignTokens\n): ThemeOptions[\"typography\"] => {\n return {\n htmlFontSize: 16,\n fontFamily: odysseyTokens.TypographyFamilyBody,\n fontSize: 14,\n fontWeightLight: 300,\n fontWeightRegular: Number(odysseyTokens.TypographyWeightBody),\n fontWeightMedium: Number(odysseyTokens.TypographyWeightHeading),\n fontWeightBold: Number(odysseyTokens.TypographyWeightHeadingBold),\n allVariants: {\n fontFeatureSettings: \"'lnum', 'pnum'\",\n fontVariant: \"normal\",\n letterSpacing: 0,\n },\n h1: {\n fontFamily: odysseyTokens.TypographyFamilyHeading,\n color: odysseyTokens.TypographyColorHeading,\n fontWeight: Number(odysseyTokens.TypographyWeightHeading),\n fontSize: odysseyTokens.TypographySizeHeading1,\n lineHeight: odysseyTokens.TypographyLineHeightHeading1,\n marginBottom: odysseyTokens.Spacing2,\n },\n h2: {\n fontFamily: odysseyTokens.TypographyFamilyHeading,\n color: odysseyTokens.TypographyColorHeading,\n fontWeight: Number(odysseyTokens.TypographyWeightHeading),\n fontSize: odysseyTokens.TypographySizeHeading2,\n lineHeight: odysseyTokens.TypographyLineHeightHeading2,\n marginBottom: odysseyTokens.Spacing2,\n },\n h3: {\n fontFamily: odysseyTokens.TypographyFamilyHeading,\n color: odysseyTokens.TypographyColorHeading,\n fontWeight: Number(odysseyTokens.TypographyWeightHeading),\n fontSize: odysseyTokens.TypographySizeHeading3,\n lineHeight: odysseyTokens.TypographyLineHeightHeading3,\n marginBottom: odysseyTokens.Spacing2,\n },\n h4: {\n fontFamily: odysseyTokens.TypographyFamilyHeading,\n color: odysseyTokens.TypographyColorHeading,\n fontWeight: Number(odysseyTokens.TypographyWeightHeading),\n fontSize: odysseyTokens.TypographySizeHeading4,\n lineHeight: odysseyTokens.TypographyLineHeightHeading4,\n marginBottom: odysseyTokens.Spacing2,\n },\n h5: {\n fontFamily: odysseyTokens.TypographyFamilyHeading,\n color: odysseyTokens.TypographyColorHeading,\n fontWeight: Number(odysseyTokens.TypographyWeightHeading),\n fontSize: odysseyTokens.TypographySizeHeading5,\n lineHeight: odysseyTokens.TypographyLineHeightHeading5,\n marginBottom: odysseyTokens.Spacing2,\n },\n h6: {\n fontFamily: odysseyTokens.TypographyFamilyHeading,\n color: odysseyTokens.TypographyColorHeading,\n fontWeight: Number(odysseyTokens.TypographyWeightHeading),\n fontSize: odysseyTokens.TypographySizeHeading6,\n lineHeight: odysseyTokens.TypographyLineHeightHeading6,\n marginBottom: odysseyTokens.Spacing2,\n },\n subtitle1: {\n // \"caption\"\n color: odysseyTokens.TypographyColorSubordinate,\n fontWeight: Number(odysseyTokens.TypographyWeightBody),\n fontSize: odysseyTokens.TypographySizeSubordinate,\n lineHeight: odysseyTokens.TypographyLineHeightBody,\n },\n subtitle2: {\n // \"body.light\"\n color: odysseyTokens.TypographyColorSupport,\n fontFamily: odysseyTokens.TypographyFamilyBody,\n fontWeight: Number(odysseyTokens.TypographyWeightBody),\n fontSize: odysseyTokens.TypographySizeBody,\n fontFeatureSettings: \"'lnum', 'pnum'\",\n fontVariant: \"normal\",\n lineHeight: odysseyTokens.TypographyLineHeightBody,\n letterSpacing: \"initial\",\n marginBlockEnd: odysseyTokens.Spacing4,\n },\n body1: {\n color: odysseyTokens.TypographyColorBody,\n fontFamily: odysseyTokens.TypographyFamilyBody,\n fontWeight: Number(odysseyTokens.TypographyWeightBody),\n fontSize: odysseyTokens.TypographySizeBody,\n fontFeatureSettings: \"'lnum', 'pnum'\",\n fontVariant: \"normal\",\n lineHeight: odysseyTokens.TypographyLineHeightBody,\n letterSpacing: \"initial\",\n },\n body2: undefined,\n button: undefined,\n overline: {\n fontWeight: Number(odysseyTokens.TypographyWeightHeadingBold),\n fontFamily: odysseyTokens.TypographyFamilyBody,\n lineHeight: odysseyTokens.TypographyLineHeightOverline,\n letterSpacing: \"5%\",\n textTransform: \"uppercase\",\n fontSize: \"0.71428571rem\",\n },\n legend: {\n padding: 0,\n fontFamily: odysseyTokens.TypographyFamilyHeading,\n fontWeight: Number(odysseyTokens.TypographyWeightHeading),\n fontSize: odysseyTokens.TypographySizeHeading5,\n lineHeight: odysseyTokens.TypographyLineHeightHeading5,\n marginBottom: odysseyTokens.Spacing2,\n },\n ui: {\n fontWeight: Number(odysseyTokens.TypographyWeightBody),\n fontSize: odysseyTokens.TypographySizeBody,\n lineHeight: odysseyTokens.TypographyLineHeightUi,\n letterSpacing: \"initial\",\n },\n };\n};\n"],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAMA,OAAO,MAAMA,UAAU,GACrBC,aAA2B,IACI;EAC/B,OAAO;IACLC,YAAY,EAAE,EAAE;IAChBC,UAAU,EAAEF,aAAa,CAACG,oBAAoB;IAC9CC,QAAQ,EAAE,EAAE;IACZC,eAAe,EAAE,GAAG;IACpBC,iBAAiB,EAAEC,MAAM,CAACP,aAAa,CAACQ,oBAAoB,CAAC;IAC7DC,gBAAgB,EAAEF,MAAM,CAACP,aAAa,CAACU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U,EAAEvB,aAAa,CAAC8D,sBAAsB;MAChD9C,aAAa,EAAE;IACjB;EACF,CAAC;AACH,CAAC"}
1
+ {"version":3,"file":"typography.js","names":["typography","_ref","odysseyTokens","htmlFontSize","fontFamily","TypographyFamilyBody","fontSize","fontWeightLight","fontWeightRegular","Number","TypographyWeightBody","fontWeightMedium","TypographyWeightHeading","fontWeightBold","TypographyWeightHeadingBold","allVariants","fontFeatureSettings","fontVariant","letterSpacing","h1","TypographyFamilyHeading","color","TypographyColorHeading","fontWeight","TypographySizeHeading1","lineHeight","TypographyLineHeightHeading1","marginBottom","Spacing2","h2","TypographySizeHeading2","TypographyLineHeightHeading2","h3","TypographySizeHeading3","TypographyLineHeightHeading3","h4","TypographySizeHeading4","TypographyLineHeightHeading4","h5","TypographySizeHeading5","TypographyLineHeightHeading5","h6","TypographySizeHeading6","TypographyLineHeightHeading6","subtitle1","TypographyColorSubordinate","TypographySizeSubordinate","TypographyLineHeightBody","subtitle2","TypographyColorSupport","TypographySizeBody","marginBlockEnd","Spacing4","body1","TypographyColorBody","body2","undefined","button","overline","TypographyLineHeightOverline","textTransform","legend","padding","ui","TypographyLineHeightUi"],"sources":["../../src/theme/typography.ts"],"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\nimport { DesignTokens } from \"./theme\";\n\nexport const typography = ({\n odysseyTokens,\n}: {\n odysseyTokens: DesignTokens;\n}): ThemeOptions[\"typography\"] => {\n return {\n htmlFontSize: 16,\n fontFamily: odysseyTokens.TypographyFamilyBody,\n fontSize: 14,\n fontWeightLight: 300,\n fontWeightRegular: Number(odysseyTokens.TypographyWeightBody),\n fontWeightMedium: Number(odysseyTokens.TypographyWeightHeading),\n fontWeightBold: Number(odysseyTokens.TypographyWeightHeadingBold),\n allVariants: {\n fontFeatureSettings: \"'lnum', 'pnum'\",\n fontVariant: \"normal\",\n letterSpacing: 0,\n },\n h1: {\n fontFamily: odysseyTokens.TypographyFamilyHeading,\n color: odysseyTokens.TypographyColorHeading,\n fontWeight: Number(odysseyTokens.TypographyWeightHeading),\n fontSize: odysseyTokens.TypographySizeHeading1,\n lineHeight: odysseyTokens.TypographyLineHeightHeading1,\n marginBottom: odysseyTokens.Spacing2,\n },\n h2: {\n fontFamily: odysseyTokens.TypographyFamilyHeading,\n color: odysseyTokens.TypographyColorHeading,\n fontWeight: Number(odysseyTokens.TypographyWeightHeading),\n fontSize: odysseyTokens.TypographySizeHeading2,\n lineHeight: odysseyTokens.TypographyLineHeightHeading2,\n marginBottom: odysseyTokens.Spacing2,\n },\n h3: {\n fontFamily: odysseyTokens.TypographyFamilyHeading,\n color: odysseyTokens.TypographyColorHeading,\n fontWeight: Number(odysseyTokens.TypographyWeightHeading),\n fontSize: odysseyTokens.TypographySizeHeading3,\n lineHeight: odysseyTokens.TypographyLineHeightHeading3,\n marginBottom: odysseyTokens.Spacing2,\n },\n h4: {\n fontFamily: odysseyTokens.TypographyFamilyHeading,\n color: odysseyTokens.TypographyColorHeading,\n fontWeight: Number(odysseyTokens.TypographyWeightHeading),\n fontSize: odysseyTokens.TypographySizeHeading4,\n lineHeight: odysseyTokens.TypographyLineHeightHeading4,\n marginBottom: odysseyTokens.Spacing2,\n },\n h5: {\n fontFamily: odysseyTokens.TypographyFamilyHeading,\n color: odysseyTokens.TypographyColorHeading,\n fontWeight: Number(odysseyTokens.TypographyWeightHeading),\n fontSize: odysseyTokens.TypographySizeHeading5,\n lineHeight: odysseyTokens.TypographyLineHeightHeading5,\n marginBottom: odysseyTokens.Spacing2,\n },\n h6: {\n fontFamily: odysseyTokens.TypographyFamilyHeading,\n color: odysseyTokens.TypographyColorHeading,\n fontWeight: Number(odysseyTokens.TypographyWeightHeading),\n fontSize: odysseyTokens.TypographySizeHeading6,\n lineHeight: odysseyTokens.TypographyLineHeightHeading6,\n marginBottom: odysseyTokens.Spacing2,\n },\n subtitle1: {\n // \"caption\"\n color: odysseyTokens.TypographyColorSubordinate,\n fontWeight: Number(odysseyTokens.TypographyWeightBody),\n fontSize: odysseyTokens.TypographySizeSubordinate,\n lineHeight: odysseyTokens.TypographyLineHeightBody,\n },\n subtitle2: {\n // \"body.light\"\n color: odysseyTokens.TypographyColorSupport,\n fontFamily: odysseyTokens.TypographyFamilyBody,\n fontWeight: Number(odysseyTokens.TypographyWeightBody),\n fontSize: odysseyTokens.TypographySizeBody,\n fontFeatureSettings: \"'lnum', 'pnum'\",\n fontVariant: \"normal\",\n lineHeight: odysseyTokens.TypographyLineHeightBody,\n letterSpacing: \"initial\",\n marginBlockEnd: odysseyTokens.Spacing4,\n },\n body1: {\n color: odysseyTokens.TypographyColorBody,\n fontFamily: odysseyTokens.TypographyFamilyBody,\n fontWeight: Number(odysseyTokens.TypographyWeightBody),\n fontSize: odysseyTokens.TypographySizeBody,\n fontFeatureSettings: \"'lnum', 'pnum'\",\n fontVariant: \"normal\",\n lineHeight: odysseyTokens.TypographyLineHeightBody,\n letterSpacing: \"initial\",\n },\n body2: undefined,\n button: undefined,\n overline: {\n fontWeight: Number(odysseyTokens.TypographyWeightHeadingBold),\n fontFamily: odysseyTokens.TypographyFamilyBody,\n lineHeight: odysseyTokens.TypographyLineHeightOverline,\n letterSpacing: \"5%\",\n textTransform: \"uppercase\",\n fontSize: \"0.71428571rem\",\n },\n legend: {\n padding: 0,\n fontFamily: odysseyTokens.TypographyFamilyHeading,\n fontWeight: Number(odysseyTokens.TypographyWeightHeading),\n fontSize: odysseyTokens.TypographySizeHeading5,\n lineHeight: odysseyTokens.TypographyLineHeightHeading5,\n marginBottom: odysseyTokens.Spacing2,\n },\n ui: {\n fontWeight: Number(odysseyTokens.TypographyWeightBody),\n fontSize: odysseyTokens.TypographySizeBody,\n lineHeight: odysseyTokens.TypographyLineHeightUi,\n letterSpacing: \"initial\",\n },\n };\n};\n"],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAMA,OAAO,MAAMA,UAAU,GAAGC,IAAA,IAIQ;EAAA,IAJP;IACzBC;EAGF,CAAC,GAAAD,IAAA;EACC,OAAO;IACLE,YAAY,EAAE,EAAE;IAChBC,UAAU,EAAEF,aAAa,CAACG,oBAAoB;IAC9CC,QAAQ,EAAE,EAAE;IACZC,eAAe,EAAE,GAAG;IACpBC,iBAAiB,EAAEC,MAAM,CAACP,aAAa,CAACQ,oBAAoB,CAAC;IAC7DC,gBAAgB,EAAEF,MAAM,CAACP,aAAa,CAACU,uBAAuB,CAAC;IAC/DC,cAAc,EAAEJ,MAAM,CAACP,aAAa,CAACY,2BAA2B,CAAC;IACjEC,WAAW,EAAE;MACXC,mBAAmB,EAAE,gBAAgB;MACrCC,WAAW,EAAE,QAAQ;MACrBC,aAAa,EAAE;IACjB,CAAC;IACDC,EAAE,EAAE;MACFf,UAAU,EAAEF,aAAa,CAACkB,uBAAuB;MACjDC,KAAK,EAAEnB,aAAa,CAACoB,sBAAsB;MAC3CC,UAAU,EAAEd,MAAM,CAACP,aAAa,CAACU,uBAAuB,CAAC;MACzDN,QAAQ,EAAEJ,aAAa,CAACsB,sBAAsB;MAC9CC,UAAU,EAAEvB,aAAa,CAACwB,4BAA4B;MACtDC,YAAY,EAAEzB,aAAa,CAAC0B;IAC9B,CAAC;IACDC,EAAE,EAAE;MACFzB,UAAU,EAAEF,aAAa,CAACkB,uBAAuB;MACjDC,KAAK,EAAEnB,aAAa,CAACoB,sBAAsB;MAC3CC,UAAU,EAAEd,MAAM,CAACP,aAAa,CAACU,uBAAuB,CAAC;MACzDN,QAAQ,EAAEJ,aAAa,C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