@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
@@ -31,7 +31,6 @@ const Typography = _ref => {
31
31
  ariaLabel,
32
32
  ariaLabelledBy,
33
33
  children,
34
- classes,
35
34
  color,
36
35
  component: componentProp,
37
36
  testId,
@@ -54,7 +53,6 @@ const Typography = _ref => {
54
53
  "aria-label": ariaLabel,
55
54
  "aria-labelledby": ariaLabelledBy,
56
55
  children: children,
57
- classes: classes,
58
56
  color: color,
59
57
  component: component,
60
58
  "data-se": testId,
@@ -69,7 +67,6 @@ const Heading1 = _ref2 => {
69
67
  ariaLabel,
70
68
  ariaLabelledBy,
71
69
  children,
72
- classes,
73
70
  color,
74
71
  component,
75
72
  testId
@@ -79,7 +76,6 @@ const Heading1 = _ref2 => {
79
76
  ariaLabel: ariaLabel,
80
77
  ariaLabelledBy: ariaLabelledBy,
81
78
  children: children,
82
- classes: classes,
83
79
  color: color,
84
80
  component: component,
85
81
  "data-se": testId,
@@ -94,7 +90,6 @@ const Heading2 = _ref3 => {
94
90
  ariaLabel,
95
91
  ariaLabelledBy,
96
92
  children,
97
- classes,
98
93
  color,
99
94
  component,
100
95
  testId
@@ -104,7 +99,6 @@ const Heading2 = _ref3 => {
104
99
  ariaLabel: ariaLabel,
105
100
  ariaLabelledBy: ariaLabelledBy,
106
101
  children: children,
107
- classes: classes,
108
102
  color: color,
109
103
  component: component,
110
104
  "data-se": testId,
@@ -119,7 +113,6 @@ const Heading3 = _ref4 => {
119
113
  ariaLabel,
120
114
  ariaLabelledBy,
121
115
  children,
122
- classes,
123
116
  color,
124
117
  component,
125
118
  testId
@@ -129,7 +122,6 @@ const Heading3 = _ref4 => {
129
122
  ariaLabel: ariaLabel,
130
123
  ariaLabelledBy: ariaLabelledBy,
131
124
  children: children,
132
- classes: classes,
133
125
  color: color,
134
126
  component: component,
135
127
  "data-se": testId,
@@ -144,7 +136,6 @@ const Heading4 = _ref5 => {
144
136
  ariaLabel,
145
137
  ariaLabelledBy,
146
138
  children,
147
- classes,
148
139
  color,
149
140
  component,
150
141
  testId
@@ -154,7 +145,6 @@ const Heading4 = _ref5 => {
154
145
  ariaLabel: ariaLabel,
155
146
  ariaLabelledBy: ariaLabelledBy,
156
147
  children: children,
157
- classes: classes,
158
148
  color: color,
159
149
  component: component,
160
150
  "data-se": testId,
@@ -169,7 +159,6 @@ const Heading5 = _ref6 => {
169
159
  ariaLabel,
170
160
  ariaLabelledBy,
171
161
  children,
172
- classes,
173
162
  color,
174
163
  component,
175
164
  testId
@@ -179,7 +168,6 @@ const Heading5 = _ref6 => {
179
168
  ariaLabel: ariaLabel,
180
169
  ariaLabelledBy: ariaLabelledBy,
181
170
  children: children,
182
- classes: classes,
183
171
  color: color,
184
172
  component: component,
185
173
  "data-se": testId,
@@ -194,7 +182,6 @@ const Heading6 = _ref7 => {
194
182
  ariaLabel,
195
183
  ariaLabelledBy,
196
184
  children,
197
- classes,
198
185
  color,
199
186
  component,
200
187
  testId
@@ -204,7 +191,6 @@ const Heading6 = _ref7 => {
204
191
  ariaLabel: ariaLabel,
205
192
  ariaLabelledBy: ariaLabelledBy,
206
193
  children: children,
207
- classes: classes,
208
194
  color: color,
209
195
  component: component,
210
196
  "data-se": testId,
@@ -219,7 +205,6 @@ const Paragraph = _ref8 => {
219
205
  ariaLabel,
220
206
  ariaLabelledBy,
221
207
  children,
222
- classes,
223
208
  color,
224
209
  component,
225
210
  testId
@@ -229,7 +214,6 @@ const Paragraph = _ref8 => {
229
214
  ariaLabel: ariaLabel,
230
215
  ariaLabelledBy: ariaLabelledBy,
231
216
  children: children,
232
- classes: classes,
233
217
  color: color,
234
218
  component: component,
235
219
  "data-se": testId,
@@ -244,7 +228,6 @@ const Subordinate = _ref9 => {
244
228
  ariaLabel,
245
229
  ariaLabelledBy,
246
230
  children,
247
- classes,
248
231
  color,
249
232
  component,
250
233
  testId
@@ -254,7 +237,6 @@ const Subordinate = _ref9 => {
254
237
  ariaLabel: ariaLabel,
255
238
  ariaLabelledBy: ariaLabelledBy,
256
239
  children: children,
257
- classes: classes,
258
240
  color: color,
259
241
  component: component,
260
242
  "data-se": testId,
@@ -269,7 +251,6 @@ const Support = _ref10 => {
269
251
  ariaLabel,
270
252
  ariaLabelledBy,
271
253
  children,
272
- classes,
273
254
  color,
274
255
  component,
275
256
  testId
@@ -279,7 +260,6 @@ const Support = _ref10 => {
279
260
  ariaLabel: ariaLabel,
280
261
  ariaLabelledBy: ariaLabelledBy,
281
262
  children: children,
282
- classes: classes,
283
263
  color: color,
284
264
  component: component,
285
265
  "data-se": testId,
@@ -294,7 +274,6 @@ const Legend = _ref11 => {
294
274
  ariaLabel,
295
275
  ariaLabelledBy,
296
276
  children,
297
- classes,
298
277
  color,
299
278
  component,
300
279
  testId
@@ -304,7 +283,6 @@ const Legend = _ref11 => {
304
283
  ariaLabel: ariaLabel,
305
284
  ariaLabelledBy: ariaLabelledBy,
306
285
  children: children,
307
- classes: classes,
308
286
  color: color,
309
287
  component: component,
310
288
  "data-se": testId,
@@ -1 +1 @@
1
- {"version":3,"file":"Typography.js","names":["memo","useMemo","jsx","_jsx","typographyVariantMapping","h1","h2","h3","h4","h5","h6","body","subordinate","support","legend","typographyColorValues","Typography","_ref","ariaDescribedBy","ariaLabel","ariaLabelledBy","children","classes","color","component","componentProp","testId","variant","_Typography","MemoizedTypography","displayName","Heading1","_ref2","MemoizedHeading1","Heading2","_ref3","MemoizedHeading2","Heading3","_ref4","MemoizedHeading3","Heading4","_ref5","MemoizedHeading4","Heading5","_ref6","MemoizedHeading5","Heading6","_ref7","MemoizedHeading6","Paragraph","_ref8","MemoizedParagraph","Subordinate","_ref9","MemoizedSubordinate","Support","_ref10","MemoizedSupport","Legend","_ref11","MemoizedLegend"],"sources":["../src/Typography.tsx"],"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 {\n Typography as MuiTypography,\n TypographyProps as MuiTypographyProps,\n} from \"@mui/material\";\nimport { ElementType, ReactNode, memo, useMemo } from \"react\";\nimport { SeleniumProps } from \"./SeleniumProps\";\n\nexport type TypographyVariantValue =\n | \"h1\"\n | \"h2\"\n | \"h3\"\n | \"h4\"\n | \"h5\"\n | \"h6\"\n | \"body\"\n | \"subordinate\"\n | \"support\"\n | \"legend\";\n\nexport const typographyVariantMapping: Record<\n TypographyVariantValue,\n MuiTypographyProps[\"variant\"]\n> = {\n h1: \"h1\",\n h2: \"h2\",\n h3: \"h3\",\n h4: \"h4\",\n h5: \"h5\",\n h6: \"h6\",\n body: \"body1\",\n subordinate: \"subtitle1\",\n support: \"subtitle2\",\n legend: \"legend\",\n} as const;\n\nexport const typographyColorValues = [\n \"primary\",\n \"textPrimary\",\n \"secondary\",\n \"textSecondary\",\n \"error\",\n] as const;\n\nexport type TypographyProps = {\n /**\n * The ID of the element that describes the component.\n */\n ariaDescribedBy?: string;\n /**\n * The ARIA label for the component.\n */\n ariaLabel?: string;\n /**\n * The ID of the element that labels the component.\n */\n ariaLabelledBy?: string;\n /**\n * The text content of the component.\n */\n children: ReactNode;\n /**\n * Additional classes to add to the component.\n */\n classes?: object;\n /**\n * The color of the text.\n */\n color?: (typeof typographyColorValues)[number];\n /**\n * The HTML element the component should render, if different from the default.\n */\n component?: ElementType;\n /**\n * The variant of Typography to render.\n */\n variant?: keyof typeof typographyVariantMapping;\n} & SeleniumProps;\n\nconst Typography = ({\n ariaDescribedBy,\n ariaLabel,\n ariaLabelledBy,\n children,\n classes,\n color,\n component: componentProp,\n testId,\n variant = \"body\",\n}: TypographyProps) => {\n const component = useMemo(() => {\n if (!componentProp) {\n if (variant === \"body\") {\n return \"p\";\n } else if (variant === \"subordinate\" || variant === \"support\") {\n return \"p\";\n } else {\n return variant;\n }\n }\n return componentProp;\n }, [componentProp, variant]);\n\n return (\n <MuiTypography\n aria-describedby={ariaDescribedBy}\n aria-label={ariaLabel}\n aria-labelledby={ariaLabelledBy}\n children={children}\n classes={classes}\n color={color}\n component={component}\n data-se={testId}\n variant={typographyVariantMapping[variant]}\n />\n );\n};\n\nconst MemoizedTypography = memo(Typography);\nMemoizedTypography.displayName = \"Typography\";\n\nconst Heading1 = ({\n ariaDescribedBy,\n ariaLabel,\n ariaLabelledBy,\n children,\n classes,\n color,\n component,\n testId,\n}: TypographyProps) => (\n <Typography\n ariaDescribedBy={ariaDescribedBy}\n ariaLabel={ariaLabel}\n ariaLabelledBy={ariaLabelledBy}\n children={children}\n classes={classes}\n color={color}\n component={component}\n data-se={testId}\n variant=\"h1\"\n />\n);\n\nconst MemoizedHeading1 = memo(Heading1);\nMemoizedHeading1.displayName = \"Heading1\";\n\nconst Heading2 = ({\n ariaDescribedBy,\n ariaLabel,\n ariaLabelledBy,\n children,\n classes,\n color,\n component,\n testId,\n}: TypographyProps) => (\n <Typography\n ariaDescribedBy={ariaDescribedBy}\n ariaLabel={ariaLabel}\n ariaLabelledBy={ariaLabelledBy}\n children={children}\n classes={classes}\n color={color}\n component={component}\n data-se={testId}\n variant=\"h2\"\n />\n);\n\nconst MemoizedHeading2 = memo(Heading2);\nMemoizedHeading2.displayName = \"Heading2\";\n\nconst Heading3 = ({\n ariaDescribedBy,\n ariaLabel,\n ariaLabelledBy,\n children,\n classes,\n color,\n component,\n testId,\n}: TypographyProps) => (\n <Typography\n ariaDescribedBy={ariaDescribedBy}\n ariaLabel={ariaLabel}\n ariaLabelledBy={ariaLabelledBy}\n children={children}\n classes={classes}\n color={color}\n component={component}\n data-se={testId}\n variant=\"h3\"\n />\n);\n\nconst MemoizedHeading3 = memo(Heading3);\nMemoizedHeading3.displayName = \"Heading3\";\n\nconst Heading4 = ({\n ariaDescribedBy,\n ariaLabel,\n ariaLabelledBy,\n children,\n classes,\n color,\n component,\n testId,\n}: TypographyProps) => (\n <Typography\n ariaDescribedBy={ariaDescribedBy}\n ariaLabel={ariaLabel}\n ariaLabelledBy={ariaLabelledBy}\n children={children}\n classes={classes}\n color={color}\n component={component}\n data-se={testId}\n variant=\"h4\"\n />\n);\n\nconst MemoizedHeading4 = memo(Heading4);\nMemoizedHeading4.displayName = \"Heading4\";\n\nconst Heading5 = ({\n ariaDescribedBy,\n ariaLabel,\n ariaLabelledBy,\n children,\n classes,\n color,\n component,\n testId,\n}: TypographyProps) => (\n <Typography\n ariaDescribedBy={ariaDescribedBy}\n ariaLabel={ariaLabel}\n ariaLabelledBy={ariaLabelledBy}\n children={children}\n classes={classes}\n color={color}\n component={component}\n data-se={testId}\n variant=\"h5\"\n />\n);\n\nconst MemoizedHeading5 = memo(Heading5);\nMemoizedHeading5.displayName = \"Heading5\";\n\nconst Heading6 = ({\n ariaDescribedBy,\n ariaLabel,\n ariaLabelledBy,\n children,\n classes,\n color,\n component,\n testId,\n}: TypographyProps) => (\n <Typography\n ariaDescribedBy={ariaDescribedBy}\n ariaLabel={ariaLabel}\n ariaLabelledBy={ariaLabelledBy}\n children={children}\n classes={classes}\n color={color}\n component={component}\n data-se={testId}\n variant=\"h6\"\n />\n);\n\nconst MemoizedHeading6 = memo(Heading6);\nMemoizedHeading6.displayName = \"Heading6\";\n\nconst Paragraph = ({\n ariaDescribedBy,\n ariaLabel,\n ariaLabelledBy,\n children,\n classes,\n color,\n component,\n testId,\n}: TypographyProps) => (\n <Typography\n ariaDescribedBy={ariaDescribedBy}\n ariaLabel={ariaLabel}\n ariaLabelledBy={ariaLabelledBy}\n children={children}\n classes={classes}\n color={color}\n component={component}\n data-se={testId}\n variant=\"body\"\n />\n);\n\nconst MemoizedParagraph = memo(Paragraph);\nMemoizedParagraph.displayName = \"Paragraph\";\n\nconst Subordinate = ({\n ariaDescribedBy,\n ariaLabel,\n ariaLabelledBy,\n children,\n classes,\n color,\n component,\n testId,\n}: TypographyProps) => (\n <Typography\n ariaDescribedBy={ariaDescribedBy}\n ariaLabel={ariaLabel}\n ariaLabelledBy={ariaLabelledBy}\n children={children}\n classes={classes}\n color={color}\n component={component}\n data-se={testId}\n variant=\"subordinate\"\n />\n);\n\nconst MemoizedSubordinate = memo(Subordinate);\nMemoizedSubordinate.displayName = \"Subordinate\";\n\nconst Support = ({\n ariaDescribedBy,\n ariaLabel,\n ariaLabelledBy,\n children,\n classes,\n color,\n component,\n testId,\n}: TypographyProps) => (\n <Typography\n ariaDescribedBy={ariaDescribedBy}\n ariaLabel={ariaLabel}\n ariaLabelledBy={ariaLabelledBy}\n children={children}\n classes={classes}\n color={color}\n component={component}\n data-se={testId}\n variant=\"support\"\n />\n);\n\nconst MemoizedSupport = memo(Support);\nMemoizedSupport.displayName = \"Support\";\n\nconst Legend = ({\n ariaDescribedBy,\n ariaLabel,\n ariaLabelledBy,\n children,\n classes,\n color,\n component,\n testId,\n}: TypographyProps) => (\n <Typography\n ariaDescribedBy={ariaDescribedBy}\n ariaLabel={ariaLabel}\n ariaLabelledBy={ariaLabelledBy}\n children={children}\n classes={classes}\n color={color}\n component={component}\n data-se={testId}\n variant=\"legend\"\n />\n);\n\nconst MemoizedLegend = memo(Legend);\nMemoizedLegend.displayName = \"Legend\";\n\nexport {\n MemoizedTypography as Typography,\n MemoizedHeading1 as Heading1,\n MemoizedHeading2 as Heading2,\n MemoizedHeading3 as Heading3,\n MemoizedHeading4 as Heading4,\n MemoizedHeading5 as Heading5,\n MemoizedHeading6 as Heading6,\n MemoizedLegend as Legend,\n MemoizedParagraph as Paragraph,\n MemoizedSubordinate as Subordinate,\n MemoizedSupport as Support,\n};\n"],"mappings":";AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAMA,SAAiCA,IAAI,EAAEC,OAAO,QAAQ,OAAO;AAAC,SAAAC,GAAA,IAAAC,IAAA;AAe9D,OAAO,MAAMC,wBAGZ,GAAG;EACFC,EAAE,EAAE,IAAI;EACRC,EAAE,EAAE,IAAI;EACRC,EAAE,EAAE,IAAI;EACRC,EAAE,EAAE,IAAI;EACRC,EAAE,EAAE,IAAI;EACRC,EAAE,EAAE,IAAI;EACRC,IAA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AO;IACPC,KAAK;IACLC,SAAS;IACTE;EACe,CAAC,GAAAiC,MAAA;EAAA,OAChBxD,IAAA,CAACa,UAAU;IACTE,eAAe,EAAEA,eAAgB;IACjCC,SAAS,EAAEA,SAAU;IACrBC,cAAc,EAAEA,cAAe;IAC/BC,QAAQ,EAAEA,QAAS;IACnBC,OAAO,EAAEA,OAAQ;IACjBC,KAAK,EAAEA,KAAM;IACbC,SAAS,EAAEA,SAAU;IACrB,WAASE,MAAO;IAChBC,OAAO,EAAC;EAAQ,CACjB,CAAC;AAAA,CACH;AAED,MAAMiC,cAAc,GAAG5D,IAAI,CAAC0D,MAAM,CAAC;AACnCE,cAAc,CAAC9B,WAAW,GAAG,QAAQ;AAErC,SACED,kBAAkB,IAAIb,UAAU,EAChCiB,gBAAgB,IAAIF,QAAQ,EAC5BK,gBAAgB,IAAIF,QAAQ,EAC5BK,gBAAgB,IAAIF,QAAQ,EAC5BK,gBAAgB,IAAIF,QAAQ,EAC5BK,gBAAgB,IAAIF,QAAQ,EAC5BK,gBAAgB,IAAIF,QAAQ,EAC5Bc,cAAc,IAAIF,MAAM,EACxBP,iBAAiB,IAAIF,SAAS,EAC9BK,mBAAmB,IAAIF,WAAW,EAClCK,eAAe,IAAIF,OAAO"}
1
+ {"version":3,"file":"Typography.js","names":["memo","useMemo","jsx","_jsx","typographyVariantMapping","h1","h2","h3","h4","h5","h6","body","subordinate","support","legend","typographyColorValues","Typography","_ref","ariaDescribedBy","ariaLabel","ariaLabelledBy","children","color","component","componentProp","testId","variant","_Typography","MemoizedTypography","displayName","Heading1","_ref2","MemoizedHeading1","Heading2","_ref3","MemoizedHeading2","Heading3","_ref4","MemoizedHeading3","Heading4","_ref5","MemoizedHeading4","Heading5","_ref6","MemoizedHeading5","Heading6","_ref7","MemoizedHeading6","Paragraph","_ref8","MemoizedParagraph","Subordinate","_ref9","MemoizedSubordinate","Support","_ref10","MemoizedSupport","Legend","_ref11","MemoizedLegend"],"sources":["../src/Typography.tsx"],"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 {\n Typography as MuiTypography,\n TypographyProps as MuiTypographyProps,\n} from \"@mui/material\";\nimport { ElementType, ReactNode, memo, useMemo } from \"react\";\nimport { SeleniumProps } from \"./SeleniumProps\";\n\nexport type TypographyVariantValue =\n | \"h1\"\n | \"h2\"\n | \"h3\"\n | \"h4\"\n | \"h5\"\n | \"h6\"\n | \"body\"\n | \"subordinate\"\n | \"support\"\n | \"legend\";\n\nexport const typographyVariantMapping: Record<\n TypographyVariantValue,\n MuiTypographyProps[\"variant\"]\n> = {\n h1: \"h1\",\n h2: \"h2\",\n h3: \"h3\",\n h4: \"h4\",\n h5: \"h5\",\n h6: \"h6\",\n body: \"body1\",\n subordinate: \"subtitle1\",\n support: \"subtitle2\",\n legend: \"legend\",\n} as const;\n\nexport const typographyColorValues = [\n \"primary\",\n \"textPrimary\",\n \"secondary\",\n \"textSecondary\",\n \"error\",\n] as const;\n\nexport type TypographyProps = {\n /**\n * The ID of the element that describes the component.\n */\n ariaDescribedBy?: string;\n /**\n * The ARIA label for the component.\n */\n ariaLabel?: string;\n /**\n * The ID of the element that labels the component.\n */\n ariaLabelledBy?: string;\n /**\n * The text content of the component.\n */\n children: ReactNode;\n /**\n * The color of the text.\n */\n color?: (typeof typographyColorValues)[number];\n /**\n * The HTML element the component should render, if different from the default.\n */\n component?: ElementType;\n /**\n * The variant of Typography to render.\n */\n variant?: keyof typeof typographyVariantMapping;\n} & SeleniumProps;\n\nconst Typography = ({\n ariaDescribedBy,\n ariaLabel,\n ariaLabelledBy,\n children,\n color,\n component: componentProp,\n testId,\n variant = \"body\",\n}: TypographyProps) => {\n const component = useMemo(() => {\n if (!componentProp) {\n if (variant === \"body\") {\n return \"p\";\n } else if (variant === \"subordinate\" || variant === \"support\") {\n return \"p\";\n } else {\n return variant;\n }\n }\n return componentProp;\n }, [componentProp, variant]);\n\n return (\n <MuiTypography\n aria-describedby={ariaDescribedBy}\n aria-label={ariaLabel}\n aria-labelledby={ariaLabelledBy}\n children={children}\n color={color}\n component={component}\n data-se={testId}\n variant={typographyVariantMapping[variant]}\n />\n );\n};\n\nconst MemoizedTypography = memo(Typography);\nMemoizedTypography.displayName = \"Typography\";\n\nconst Heading1 = ({\n ariaDescribedBy,\n ariaLabel,\n ariaLabelledBy,\n children,\n color,\n component,\n testId,\n}: TypographyProps) => (\n <Typography\n ariaDescribedBy={ariaDescribedBy}\n ariaLabel={ariaLabel}\n ariaLabelledBy={ariaLabelledBy}\n children={children}\n color={color}\n component={component}\n data-se={testId}\n variant=\"h1\"\n />\n);\n\nconst MemoizedHeading1 = memo(Heading1);\nMemoizedHeading1.displayName = \"Heading1\";\n\nconst Heading2 = ({\n ariaDescribedBy,\n ariaLabel,\n ariaLabelledBy,\n children,\n color,\n component,\n testId,\n}: TypographyProps) => (\n <Typography\n ariaDescribedBy={ariaDescribedBy}\n ariaLabel={ariaLabel}\n ariaLabelledBy={ariaLabelledBy}\n children={children}\n color={color}\n component={component}\n data-se={testId}\n variant=\"h2\"\n />\n);\n\nconst MemoizedHeading2 = memo(Heading2);\nMemoizedHeading2.displayName = \"Heading2\";\n\nconst Heading3 = ({\n ariaDescribedBy,\n ariaLabel,\n ariaLabelledBy,\n children,\n color,\n component,\n testId,\n}: TypographyProps) => (\n <Typography\n ariaDescribedBy={ariaDescribedBy}\n ariaLabel={ariaLabel}\n ariaLabelledBy={ariaLabelledBy}\n children={children}\n color={color}\n component={component}\n data-se={testId}\n variant=\"h3\"\n />\n);\n\nconst MemoizedHeading3 = memo(Heading3);\nMemoizedHeading3.displayName = \"Heading3\";\n\nconst Heading4 = ({\n ariaDescribedBy,\n ariaLabel,\n ariaLabelledBy,\n children,\n color,\n component,\n testId,\n}: TypographyProps) => (\n <Typography\n ariaDescribedBy={ariaDescribedBy}\n ariaLabel={ariaLabel}\n ariaLabelledBy={ariaLabelledBy}\n children={children}\n color={color}\n component={component}\n data-se={testId}\n variant=\"h4\"\n />\n);\n\nconst MemoizedHeading4 = memo(Heading4);\nMemoizedHeading4.displayName = \"Heading4\";\n\nconst Heading5 = ({\n ariaDescribedBy,\n ariaLabel,\n ariaLabelledBy,\n children,\n color,\n component,\n testId,\n}: TypographyProps) => (\n <Typography\n ariaDescribedBy={ariaDescribedBy}\n ariaLabel={ariaLabel}\n ariaLabelledBy={ariaLabelledBy}\n children={children}\n color={color}\n component={component}\n data-se={testId}\n variant=\"h5\"\n />\n);\n\nconst MemoizedHeading5 = memo(Heading5);\nMemoizedHeading5.displayName = \"Heading5\";\n\nconst Heading6 = ({\n ariaDescribedBy,\n ariaLabel,\n ariaLabelledBy,\n children,\n color,\n component,\n testId,\n}: TypographyProps) => (\n <Typography\n ariaDescribedBy={ariaDescribedBy}\n ariaLabel={ariaLabel}\n ariaLabelledBy={ariaLabelledBy}\n children={children}\n color={color}\n component={component}\n data-se={testId}\n variant=\"h6\"\n />\n);\n\nconst MemoizedHeading6 = memo(Heading6);\nMemoizedHeading6.displayName = \"Heading6\";\n\nconst Paragraph = ({\n ariaDescribedBy,\n ariaLabel,\n ariaLabelledBy,\n children,\n color,\n component,\n testId,\n}: TypographyProps) => (\n <Typography\n ariaDescribedBy={ariaDescribedBy}\n ariaLabel={ariaLabel}\n ariaLabelledBy={ariaLabelledBy}\n children={children}\n color={color}\n component={component}\n data-se={testId}\n variant=\"body\"\n />\n);\n\nconst MemoizedParagraph = memo(Paragraph);\nMemoizedParagraph.displayName = \"Paragraph\";\n\nconst Subordinate = ({\n ariaDescribedBy,\n ariaLabel,\n ariaLabelledBy,\n children,\n color,\n component,\n testId,\n}: TypographyProps) => (\n <Typography\n ariaDescribedBy={ariaDescribedBy}\n ariaLabel={ariaLabel}\n ariaLabelledBy={ariaLabelledBy}\n children={children}\n color={color}\n component={component}\n data-se={testId}\n variant=\"subordinate\"\n />\n);\n\nconst MemoizedSubordinate = memo(Subordinate);\nMemoizedSubordinate.displayName = \"Subordinate\";\n\nconst Support = ({\n ariaDescribedBy,\n ariaLabel,\n ariaLabelledBy,\n children,\n color,\n component,\n testId,\n}: TypographyProps) => (\n <Typography\n ariaDescribedBy={ariaDescribedBy}\n ariaLabel={ariaLabel}\n ariaLabelledBy={ariaLabelledBy}\n children={children}\n color={color}\n component={component}\n data-se={testId}\n variant=\"support\"\n />\n);\n\nconst MemoizedSupport = memo(Support);\nMemoizedSupport.displayName = \"Support\";\n\nconst Legend = ({\n ariaDescribedBy,\n ariaLabel,\n ariaLabelledBy,\n children,\n color,\n component,\n testId,\n}: TypographyProps) => (\n <Typography\n ariaDescribedBy={ariaDescribedBy}\n ariaLabel={ariaLabel}\n ariaLabelledBy={ariaLabelledBy}\n children={children}\n color={color}\n component={component}\n data-se={testId}\n variant=\"legend\"\n />\n);\n\nconst MemoizedLegend = memo(Legend);\nMemoizedLegend.displayName = \"Legend\";\n\nexport {\n MemoizedTypography as Typography,\n MemoizedHeading1 as Heading1,\n MemoizedHeading2 as Heading2,\n MemoizedHeading3 as Heading3,\n MemoizedHeading4 as Heading4,\n MemoizedHeading5 as Heading5,\n MemoizedHeading6 as Heading6,\n MemoizedLegend as Legend,\n MemoizedParagraph as Paragraph,\n MemoizedSubordinate as Subordinate,\n MemoizedSupport as Support,\n};\n"],"mappings":";AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAMA,SAAiCA,IAAI,EAAEC,OAAO,QAAQ,OAAO;AAAC,SAAAC,GAAA,IAAAC,IAAA;AAe9D,OAAO,MAAMC,wBAGZ,GAAG;EACFC,EAAE,EAAE,IAAI;EACRC,EAAE,EAAE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ACjB,CAAC;AAAA,CACH;AAED,MAAMiC,cAAc,GAAG3D,IAAI,CAACyD,MAAM,CAAC;AACnCE,cAAc,CAAC9B,WAAW,GAAG,QAAQ;AAErC,SACED,kBAAkB,IAAIZ,UAAU,EAChCgB,gBAAgB,IAAIF,QAAQ,EAC5BK,gBAAgB,IAAIF,QAAQ,EAC5BK,gBAAgB,IAAIF,QAAQ,EAC5BK,gBAAgB,IAAIF,QAAQ,EAC5BK,gBAAgB,IAAIF,QAAQ,EAC5BK,gBAAgB,IAAIF,QAAQ,EAC5Bc,cAAc,IAAIF,MAAM,EACxBP,iBAAiB,IAAIF,SAAS,EAC9BK,mBAAmB,IAAIF,WAAW,EAClCK,eAAe,IAAIF,OAAO"}
@@ -0,0 +1,26 @@
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
+ export const createShadowDom = containerElement => {
14
+ const shadowContainer = containerElement.attachShadow({
15
+ mode: "open"
16
+ });
17
+ const emotionRootElement = document.createElement("style");
18
+ const shadowRootElement = document.createElement("div");
19
+ shadowContainer.appendChild(emotionRootElement);
20
+ shadowContainer.appendChild(shadowRootElement);
21
+ return {
22
+ emotionRootElement,
23
+ shadowRootElement
24
+ };
25
+ };
26
+ //# sourceMappingURL=createShadowDom.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"createShadowDom.js","names":["createShadowDom","containerElement","shadowContainer","attachShadow","mode","emotionRootElement","document","createElement","shadowRootElement","appendChild"],"sources":["../src/createShadowDom.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\nexport const createShadowDom = (containerElement: HTMLElement) => {\n const shadowContainer = containerElement.attachShadow({ mode: \"open\" });\n const emotionRootElement = document.createElement(\"style\");\n const shadowRootElement = document.createElement(\"div\");\n\n shadowContainer.appendChild(emotionRootElement);\n shadowContainer.appendChild(shadowRootElement);\n\n return {\n emotionRootElement,\n shadowRootElement,\n };\n};\n\n// --DOCS--\n\n// const {\n// emotionRootElement,\n// shadowRootElement,\n// } = (\n// createShadowDom(\n// document.querySelector('#root') as HTMLElement\n// )\n// )\n\n// ReactDOM\n// .createRoot(\n// shadowRootElement\n// )\n// .render(\n// <OdysseyProvider emotionRootElement={emotionRootElement} shadowRootElement={shadowRootElement}>\n// <App />\n// </OdysseyProvider>\n// )\n"],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,OAAO,MAAMA,eAAe,GAAIC,gBAA6B,IAAK;EAChE,MAAMC,eAAe,GAAGD,gBAAgB,CAACE,YAAY,CAAC;IAAEC,IAAI,EAAE;EAAO,CAAC,CAAC;EACvE,MAAMC,kBAAkB,GAAGC,QAAQ,CAACC,aAAa,CAAC,OAAO,CAAC;EAC1D,MAAMC,iBAAiB,GAAGF,QAAQ,CAACC,aAAa,CAAC,KAAK,CAAC;EAEvDL,eAAe,CAACO,WAAW,CAACJ,kBAAkB,CAAC;EAC/CH,eAAe,CAACO,WAAW,CAACD,iBAAiB,CAAC;EAE9C,OAAO;IACLH,kBAAkB;IAClBG;EACF,CAAC;AACH,CAAC"}
@@ -95,5 +95,6 @@ Object.entries(resources).forEach(_ref => {
95
95
  let [locale, property] = _ref;
96
96
  i18n.addResourceBundle(locale, defaultNS, property);
97
97
  });
98
- export default i18n;
99
- //# sourceMappingURL=OdysseyI18n.js.map
98
+ export const odysseyTranslate = i18n.t.bind(i18n);
99
+ export { i18n };
100
+ //# sourceMappingURL=i18n.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"i18n.js","names":["i18n","initReactI18next","translation","cs","da","de","el","en","es","fi","fr","hu","id","it","ja","ko","ms","nb","nlNL","okPL","okSK","pl","ptBR","ro","ru","sv","th","tr","uk","vi","zhCN","znTW","supportedLanguages","defaultLNG","defaultNS","resources","nl_NL","ok_PL","ok_SK","pt_BR","zh_CN","zh_TW","use","init","ns","fallbackLng","supportedLngs","load","keySeparator","interpolation","escapeValue","skipOnVariables","react","useSuspense","bindI18nStore","Object","entries","forEach","_ref","locale","property","addResourceBundle","odysseyTranslate","t","bind"],"sources":["../src/i18n.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 i18n from \"i18next\";\nimport { initReactI18next } from \"react-i18next\";\n\nimport { translation as cs } from \"./properties/ts/odyssey-react-mui_cs\";\nimport { translation as da } from \"./properties/ts/odyssey-react-mui_da\";\nimport { translation as de } from \"./properties/ts/odyssey-react-mui_de\";\nimport { translation as el } from \"./properties/ts/odyssey-react-mui_el\";\nimport { translation as en } from \"./properties/ts/odyssey-react-mui\";\nimport { translation as es } from \"./properties/ts/odyssey-react-mui_es\";\nimport { translation as fi } from \"./properties/ts/odyssey-react-mui_fi\";\nimport { translation as fr } from \"./properties/ts/odyssey-react-mui_fr\";\nimport { translation as hu } from \"./properties/ts/odyssey-react-mui_hu\";\nimport { translation as id } from \"./properties/ts/odyssey-react-mui_id\";\nimport { translation as it } from \"./properties/ts/odyssey-react-mui_it\";\nimport { translation as ja } from \"./properties/ts/odyssey-react-mui_ja\";\nimport { translation as ko } from \"./properties/ts/odyssey-react-mui_ko\";\nimport { translation as ms } from \"./properties/ts/odyssey-react-mui_ms\";\nimport { translation as nb } from \"./properties/ts/odyssey-react-mui_nb\";\nimport { translation as nlNL } from \"./properties/ts/odyssey-react-mui_nl_NL\";\nimport { translation as okPL } from \"./properties/ts/odyssey-react-mui_ok_PL\";\nimport { translation as okSK } from \"./properties/ts/odyssey-react-mui_ok_SK\";\nimport { translation as pl } from \"./properties/ts/odyssey-react-mui_pl\";\nimport { translation as ptBR } from \"./properties/ts/odyssey-react-mui_pt_BR\";\nimport { translation as ro } from \"./properties/ts/odyssey-react-mui_ro\";\nimport { translation as ru } from \"./properties/ts/odyssey-react-mui_ru\";\nimport { translation as sv } from \"./properties/ts/odyssey-react-mui_sv\";\nimport { translation as th } from \"./properties/ts/odyssey-react-mui_th\";\nimport { translation as tr } from \"./properties/ts/odyssey-react-mui_tr\";\nimport { translation as uk } from \"./properties/ts/odyssey-react-mui_uk\";\nimport { translation as vi } from \"./properties/ts/odyssey-react-mui_vi\";\nimport { translation as zhCN } from \"./properties/ts/odyssey-react-mui_zh_CN\";\nimport { translation as znTW } from \"./properties/ts/odyssey-react-mui_zh_TW\";\n\nimport {\n SupportedLanguages,\n supportedLanguages,\n} from \"./OdysseyTranslationProvider.types\";\n\nexport const defaultLNG: SupportedLanguages = \"en\";\nexport const defaultNS = \"translations\";\nexport const resources = {\n cs,\n da,\n de,\n el,\n en,\n es,\n fi,\n fr,\n hu,\n id,\n it,\n ja,\n ko,\n ms,\n nb,\n nl_NL: nlNL,\n ok_PL: okPL,\n ok_SK: okSK,\n pl,\n pt_BR: ptBR,\n ro,\n ru,\n sv,\n th,\n tr,\n uk,\n vi,\n zh_CN: zhCN,\n zh_TW: znTW,\n};\n\ni18n.use(initReactI18next).init({\n defaultNS,\n ns: [defaultNS],\n fallbackLng: defaultLNG,\n supportedLngs: supportedLanguages,\n load: \"currentOnly\",\n keySeparator: false,\n interpolation: {\n escapeValue: false, // react already safe from xss\n skipOnVariables: false, // to handle translations that use nesting\n },\n react: {\n useSuspense: false,\n bindI18nStore: \"added\",\n },\n});\n\nObject.entries(resources).forEach(([locale, property]) => {\n i18n.addResourceBundle(locale, defaultNS, property);\n});\n\nexport const odysseyTranslate = i18n.t.bind(i18n);\nexport { i18n };\n"],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,OAAOA,IAAI,MAAM,SAAS;AAC1B,SAASC,gBAAgB,QAAQ,eAAe;AAAC,SAExCC,WAAW,IAAIC,EAAE;AAAA,SACjBD,WAAW,IAAIE,EAAE;AAAA,SACjBF,WAAW,IAAIG,EAAE;AAAA,SACjBH,WAAW,IAAII,EAAE;AAAA,SACjBJ,WAAW,IAAIK,EAAE;AAAA,SACjBL,WAAW,IAAIM,EAAE;AAAA,SACjBN,WAAW,IAAIO,EAAE;AAAA,SACjBP,WAAW,IAAIQ,EAAE;AAAA,SACjBR,WAAW,IAAIS,EAAE;AAAA,SACjBT,WAAW,IAAIU,EAAE;AAAA,SACjBV,WAAW,IAAIW,EAAE;AAAA,SACjBX,WAAW,IAAIY,EAAE;AAAA,SACjBZ,WAAW,IAAIa,EAAE;AAAA,SACjBb,WAAW,IAAIc,EAAE;AAAA,SACjBd,WAAW,IAAIe,EAAE;AAAA,SACjBf,WAAW,IAAIgB,IAAI;AAAA,SACnBhB,WAAW,IAAIiB,IAAI;AAAA,SACnBjB,WAAW,IAAIkB,IAAI;AAAA,SACnBlB,WAAW,IAAImB,EAAE;AAAA,SACjBnB,WAAW,IAAIoB,IAAI;AAA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,aAAa,EAAE;EACjB;AACF,CAAC,CAAC;AAEFC,MAAM,CAACC,OAAO,CAACrB,SAAS,CAAC,CAACsB,OAAO,CAACC,IAAA,IAAwB;EAAA,IAAvB,CAACC,MAAM,EAAEC,QAAQ,CAAC,GAAAF,IAAA;EACnD1D,IAAI,CAAC6D,iBAAiB,CAACF,MAAM,EAAEzB,SAAS,EAAE0B,QAAQ,CAAC;AACrD,CAAC,CAAC;AAEF,OAAO,MAAME,gBAAgB,GAAG9D,IAAI,CAAC+D,CAAC,CAACC,IAAI,CAAChE,IAAI,CAAC;AACjD,SAASA,IAAI"}
package/dist/index.js CHANGED
@@ -31,6 +31,7 @@ export * from "./MenuItem.js";
31
31
  export * from "./NativeSelect.js";
32
32
  export * from "./NullElement.js";
33
33
  export * from "./OdysseyCacheProvider.js";
34
+ export { odysseyTranslate } from "./i18n.js";
34
35
  export * from "./OdysseyProvider.js";
35
36
  export * from "./OdysseyThemeProvider.js";
36
37
  export * from "./OdysseyTranslationProvider.js";
package/dist/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","names":["deepmerge","visuallyHidden","createTheme","CssBaseline","DialogContentText","Divider","InputAdornment","InputBase","ListItemIcon","ListItemText","ListSubheader","MenuList","Paper","ScopedCssBaseline","ThemeProvider","useOdysseyDesignTokens"],"sources":["../src/index.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 { deepmerge, visuallyHidden } from \"@mui/utils\";\n\nexport {\n createTheme,\n /** @deprecated Will be removed in a future Odyssey version in lieu of a wrapped version. */\n CssBaseline,\n /** @deprecated Will be removed in a future Odyssey version in lieu of a wrapped version. */\n DialogContentText,\n /** @deprecated Will be removed in a future Odyssey version in lieu of a wrapped version. */\n Divider,\n /** @deprecated Will be removed in a future Odyssey version in lieu of a wrapped version. */\n InputAdornment,\n /** @deprecated Will be removed in a future Odyssey version in lieu of a wrapped version. */\n InputBase,\n /** @deprecated Will be removed in a future Odyssey version in lieu of a wrapped version. */\n ListItemIcon,\n /** @deprecated Will be removed in a future Odyssey version in lieu of a wrapped version. */\n ListItemText,\n /** @deprecated Will be removed in a future Odyssey version in lieu of a wrapped version. */\n ListSubheader,\n /** @deprecated Will be removed in a future Odyssey version in lieu of a wrapped version. */\n MenuList,\n /** @deprecated Will be removed in a future Odyssey version in lieu of a wrapped version. */\n Paper,\n /** @deprecated Will be removed in a future Odyssey version in lieu of a wrapped version. */\n ScopedCssBaseline,\n ThemeProvider,\n} from \"@mui/material\";\n\nexport type {\n CssBaselineProps,\n DialogContentTextProps,\n DividerProps,\n InputAdornmentProps,\n InputBaseProps,\n ListItemIconProps,\n ListItemTextProps,\n ListSubheaderProps,\n MenuListProps,\n PaperProps,\n ScopedCssBaselineProps,\n ThemeOptions,\n} from \"@mui/material\";\n\nexport { useOdysseyDesignTokens } from \"./OdysseyDesignTokensContext\";\n\nexport * from \"./Autocomplete\";\nexport * from \"./Banner\";\nexport * from \"./Box\";\nexport * from \"./Button\";\nexport * from \"./Callout\";\nexport * from \"./Checkbox\";\nexport * from \"./CheckboxGroup\";\nexport * from \"./CircularProgress\";\nexport * from \"./createUniqueId\";\nexport * from \"./Dialog\";\nexport * from \"./Fieldset\";\nexport * from \"./Form\";\nexport * from \"./Link\";\nexport * from \"./MenuButton\";\nexport * from \"./MenuItem\";\nexport * from \"./NativeSelect\";\nexport * from \"./NullElement\";\nexport * from \"./OdysseyCacheProvider\";\nexport * from \"./OdysseyProvider\";\nexport * from \"./OdysseyThemeProvider\";\nexport * from \"./OdysseyTranslationProvider\";\nexport * from \"./PasswordField\";\nexport * from \"./Radio\";\nexport * from \"./RadioGroup\";\nexport * from \"./ScreenReaderText\";\nexport * from \"./SearchField\";\nexport * from \"./Select\";\nexport * from \"./Status\";\nexport * from \"./Tabs\";\nexport * from \"./Tag\";\nexport * from \"./TagList\";\nexport * from \"./TextField\";\nexport * from \"./theme\";\nexport * from \"./Toast\";\nexport * from \"./ToastStack\";\nexport * from \"./Tooltip\";\nexport * from \"./Typography\";\nexport * from \"./useUniqueId\";\n"],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,SAASA,SAAS,EAAEC,cAAc,QAAQ,YAAY;AAEtD,SACEC,WAAW,EAEXC,WAAW,EAEXC,iBAAiB,EAEjBC,OAAO,EAEPC,cAAc,EAEdC,SAAS,EAETC,YAAY,EAEZC,YAAY,EAEZC,aAAa,EAEbC,QAAQ,EAERC,KAAK,EAELC,iBAAiB,EACjBC,aAAa,QACR,eAAe;AAAC,SAiBdC,sBAAsB;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA"}
1
+ {"version":3,"file":"index.js","names":["deepmerge","visuallyHidden","createTheme","CssBaseline","DialogContentText","Divider","InputAdornment","InputBase","ListItemIcon","ListItemText","ListSubheader","MenuList","Paper","ScopedCssBaseline","ThemeProvider","useOdysseyDesignTokens","odysseyTranslate"],"sources":["../src/index.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 { deepmerge, visuallyHidden } from \"@mui/utils\";\n\nexport {\n createTheme,\n /** @deprecated Will be removed in a future Odyssey version in lieu of a wrapped version. */\n CssBaseline,\n /** @deprecated Will be removed in a future Odyssey version in lieu of a wrapped version. */\n DialogContentText,\n /** @deprecated Will be removed in a future Odyssey version in lieu of a wrapped version. */\n Divider,\n /** @deprecated Will be removed in a future Odyssey version in lieu of a wrapped version. */\n InputAdornment,\n /** @deprecated Will be removed in a future Odyssey version in lieu of a wrapped version. */\n InputBase,\n /** @deprecated Will be removed in a future Odyssey version in lieu of a wrapped version. */\n ListItemIcon,\n /** @deprecated Will be removed in a future Odyssey version in lieu of a wrapped version. */\n ListItemText,\n /** @deprecated Will be removed in a future Odyssey version in lieu of a wrapped version. */\n ListSubheader,\n /** @deprecated Will be removed in a future Odyssey version in lieu of a wrapped version. */\n MenuList,\n /** @deprecated Will be removed in a future Odyssey version in lieu of a wrapped version. */\n Paper,\n /** @deprecated Will be removed in a future Odyssey version in lieu of a wrapped version. */\n ScopedCssBaseline,\n ThemeProvider,\n} from \"@mui/material\";\n\nexport type {\n CssBaselineProps,\n DialogContentTextProps,\n DividerProps,\n InputAdornmentProps,\n InputBaseProps,\n ListItemIconProps,\n ListItemTextProps,\n ListSubheaderProps,\n MenuListProps,\n PaperProps,\n ScopedCssBaselineProps,\n ThemeOptions,\n} from \"@mui/material\";\n\nexport { useOdysseyDesignTokens } from \"./OdysseyDesignTokensContext\";\n\nexport * from \"./Autocomplete\";\nexport * from \"./Banner\";\nexport * from \"./Box\";\nexport * from \"./Button\";\nexport * from \"./Callout\";\nexport * from \"./Checkbox\";\nexport * from \"./CheckboxGroup\";\nexport * from \"./CircularProgress\";\nexport * from \"./createUniqueId\";\nexport * from \"./Dialog\";\nexport * from \"./Fieldset\";\nexport * from \"./Form\";\nexport * from \"./Link\";\nexport * from \"./MenuButton\";\nexport * from \"./MenuItem\";\nexport * from \"./NativeSelect\";\nexport * from \"./NullElement\";\nexport * from \"./OdysseyCacheProvider\";\nexport { odysseyTranslate } from \"./i18n\";\nexport * from \"./OdysseyProvider\";\nexport * from \"./OdysseyThemeProvider\";\nexport * from \"./OdysseyTranslationProvider\";\nexport * from \"./PasswordField\";\nexport * from \"./Radio\";\nexport * from \"./RadioGroup\";\nexport * from \"./ScreenReaderText\";\nexport * from \"./SearchField\";\nexport * from \"./Select\";\nexport * from \"./Status\";\nexport * from \"./Tabs\";\nexport * from \"./Tag\";\nexport * from \"./TagList\";\nexport * from \"./TextField\";\nexport * from \"./theme\";\nexport * from \"./Toast\";\nexport * from \"./ToastStack\";\nexport * from \"./Tooltip\";\nexport * from \"./Typography\";\nexport * from \"./useUniqueId\";\n"],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,SAASA,SAAS,EAAEC,cAAc,QAAQ,YAAY;AAEtD,SACEC,WAAW,EAEXC,WAAW,EAEXC,iBAAiB,EAEjBC,OAAO,EAEPC,cAAc,EAEdC,SAAS,EAETC,YAAY,EAEZC,YAAY,EAEZC,aAAa,EAEbC,QAAQ,EAERC,KAAK,EAELC,iBAAiB,EACjBC,aAAa,QACR,eAAe;AAAC,SAiBdC,sBAAsB;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,SAoBtBC,gBAAgB;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA"}
@@ -11,9 +11,11 @@
11
11
  */
12
12
  import { ArrowLeftIcon, ArrowRightIcon, CalendarIcon, ChevronDownIcon } from "../icons.generated/index.js";
13
13
  import { createOdysseyMuiTheme } from "../theme/index.js";
14
- import * as Tokens from "@okta/odyssey-design-tokens";
14
+ import * as odysseyTokens from "@okta/odyssey-design-tokens";
15
15
  const popupSpacingValue = 5;
16
- const odysseyTheme = createOdysseyMuiTheme(Tokens);
16
+ const odysseyTheme = createOdysseyMuiTheme({
17
+ odysseyTokens
18
+ });
17
19
  const dateStyles = {
18
20
  default: _ref => {
19
21
  let {
@@ -1 +1 @@
1
- {"version":3,"file":"datePickerTheme.js","names":["ArrowLeftIcon","ArrowRightIcon","CalendarIcon","ChevronDownIcon","createOdysseyMuiTheme","Tokens","popupSpacingValue","odysseyTheme","dateStyles","default","_ref","theme","color","palette","text","primary","disabled","_ref2","backgroundColor","hover","_ref3","grey","hoverSelected","_ref4","dark","contrastText","outsideOfMonth","_ref5","secondary","selected","_ref6","main","today","_ref7","todayDotStyles","_ref8","borderRadius","bottom","spacing","content","height","typography","fontSize","position","transform","width","_ref9","_ref10","yearStyles","_ref11","_ref12","_ref13","_ref14","lighter","_ref15","_ref16","fontWeight","fontWeightBold","yearCheckStyles","_ref17","h6","maskImage","maskPosition","maskRepeat","right","datePickerTheme","components","MuiCalendarPicker","styleOverrides","root","_ref18","borderColor","divider","borderStyle","mixins","borderWidth","paddingBottom","paddingTop","MuiCalendarOrClockPicker","defaultProps","LeftArrowIcon","RightArrowIcon","SwitchViewIcon","MuiDesktopDatePicker","OpenPickerIcon","MuiDayPicker","header","_ref19","gap","justifyContent","paddingLeft","paddingRight","slideTransition","minHeight","weekContainer","_ref20","marginBottom","marginLeft","marginRight","weekDayLabel","_ref21","flexBasis","flexShrink","subtitle1","MuiDatePicker","PopperProps","popperOptions","placement","showDaysOutsideCurrentMonth","views","MuiPickersCalendarHeader","label","_ref22","_ref23","marginTop","MuiPickersDay","dayWithMargin","_ref24","border","body1","MuiPickersPopper","paper","_ref25","boxShadow","MuiYearPicker","_ref26","alignItems","flexDirection","flexWrap","marginInlineEnd","maxHeight","PrivatePickersYear","button","_ref27","display","_ref28"],"sources":["../../src/labs/datePickerTheme.tsx"],"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 { CSSInterpolation } from \"@mui/material/styles\";\nimport {\n ArrowLeftIcon,\n ArrowRightIcon,\n CalendarIcon,\n ChevronDownIcon,\n} from \"../icons.generated\";\nimport { createOdysseyMuiTheme } from \"../theme\";\nimport { ThemeOptions } from \"@mui/material\";\nimport * as Tokens from \"@okta/odyssey-design-tokens\";\n\nconst popupSpacingValue = 5;\n\nconst odysseyTheme = createOdysseyMuiTheme(Tokens);\n\ntype ThemeStyles = ({\n theme,\n}: {\n theme: typeof odysseyTheme;\n}) => CSSInterpolation;\n\ntype StateStyles = Record<string, ThemeStyles>;\n\nconst dateStyles: StateStyles = {\n default: ({ theme }) => ({\n color: theme.palette.text.primary,\n }),\n disabled: ({ theme }) => ({\n backgroundColor: \"transparent\",\n color: theme.palette.text.disabled,\n }),\n hover: ({ theme }) => ({\n backgroundColor: theme.palette.grey[100],\n }),\n hoverSelected: ({ theme }) => ({\n backgroundColor: theme.palette.primary.dark,\n color: theme.palette.primary.contrastText,\n }),\n outsideOfMonth: ({ theme }) => ({\n backgroundColor: \"transparent\",\n color: theme.palette.text.secondary,\n }),\n selected: ({ theme }) => ({\n backgroundColor: theme.palette.primary.main,\n color: theme.palette.primary.contrastText,\n }),\n today: ({ theme }) => ({\n backgroundColor: \"transparent\",\n color: theme.palette.primary.main,\n }),\n};\n\nconst todayDotStyles: StateStyles = {\n default: ({ theme }) => ({\n backgroundColor: theme.palette.primary.main,\n borderRadius: \"50%\",\n bottom: theme.spacing(1),\n content: '\" \"',\n height: `${2 / theme.typography.fontSize}em`,\n position: \"absolute\",\n transform: \"translateY(-50%)\",\n width: `${2 / theme.typography.fontSize}em`,\n }),\n hover: ({ theme }) => ({\n backgroundColor: theme.palette.primary.main,\n }),\n selected: ({ theme }) => ({\n backgroundColor: theme.palette.primary.contrastText,\n }),\n};\n\nconst yearStyles: StateStyles = {\n default: ({ theme }) => ({\n backgroundColor: \"transparent\",\n color: theme.palette.text.primary,\n }),\n disabled: ({ theme }) => ({\n backgroundColor: \"transparent\",\n color: theme.palette.text.disabled,\n }),\n hover: ({ theme }) => ({\n backgroundColor: theme.palette.grey[100],\n }),\n hoverSelected: ({ theme }) => ({\n backgroundColor: theme.palette.primary.lighter,\n color: theme.palette.primary.main,\n }),\n outsideOfMonth: ({ theme }) => ({\n backgroundColor: \"transparent\",\n color: theme.palette.text.secondary,\n }),\n selected: ({ theme }) => ({\n backgroundColor: \"transparent\",\n color: theme.palette.primary.main,\n fontWeight: theme.typography.fontWeightBold,\n }),\n};\n\nconst yearCheckStyles: StateStyles = {\n default: ({ theme }) => ({\n backgroundColor: theme.palette.primary.main,\n content: '\"\"',\n height: theme.typography.h6.fontSize,\n maskImage:\n \"url(\\\"data:image/svg+xml,%3Csvg viewBox='0 0 16 16' fill='none' xmlns='http://www.w3.org/2000/svg'%0A%3E%3Cpath fillRule='evenodd' clipRule='evenodd' d='M14.3536 4.35355L6.35355 12.3536C6.15829 12.5488 5.84171 12.5488 5.64645 12.3536L1.64645 8.35355L2.35355 7.64645L6 11.2929L13.6464 3.64645L14.3536 4.35355Z' fill='currentColor' /%3E%3C/svg%3E%0A\\\")\",\n maskPosition: \"50% 50%\",\n maskRepeat: \"no-repeat\",\n position: \"absolute\",\n right: theme.spacing(4),\n width: theme.typography.h6.fontSize,\n }),\n};\n\nexport const datePickerTheme: ThemeOptions = {\n components: {\n MuiCalendarPicker: {\n styleOverrides: {\n root: ({ theme }) => ({\n borderColor: theme.palette.divider,\n borderStyle: theme.mixins.borderStyle,\n borderWidth: theme.mixins.borderWidth,\n borderRadius: theme.mixins.borderRadius,\n paddingBottom: theme.spacing(popupSpacingValue),\n paddingTop: theme.spacing(4),\n width: \"100%\",\n }),\n },\n },\n MuiCalendarOrClockPicker: {\n styleOverrides: {\n root: () => ({\n \"& > div\": {\n width: `${(296 / 16) * (16 / 14)}rem`,\n },\n }),\n },\n defaultProps: {\n components: {\n LeftArrowIcon: ArrowLeftIcon,\n RightArrowIcon: ArrowRightIcon,\n SwitchViewIcon: ChevronDownIcon,\n },\n },\n },\n MuiDesktopDatePicker: {\n defaultProps: {\n components: {\n OpenPickerIcon: CalendarIcon,\n },\n },\n },\n MuiDayPicker: {\n styleOverrides: {\n header: ({ theme }) => ({\n gap: theme.spacing(1),\n justifyContent: \"space-between\",\n paddingLeft: theme.spacing(popupSpacingValue),\n paddingRight: theme.spacing(popupSpacingValue),\n }),\n slideTransition: () => ({\n minHeight: `${(214 / 16) * (16 / 14)}rem`,\n }),\n weekContainer: ({ theme }) => ({\n gap: theme.spacing(1),\n justifyContent: \"space-between\",\n marginBottom: theme.spacing(1),\n marginLeft: 0,\n marginRight: 0,\n paddingLeft: theme.spacing(popupSpacingValue),\n paddingRight: theme.spacing(popupSpacingValue),\n\n \"&:last-child\": {\n marginBottom: 0,\n },\n }),\n weekDayLabel: ({ theme }) => ({\n color: theme.palette.grey[900],\n flexBasis: theme.spacing(6),\n flexShrink: 0,\n fontSize: theme.typography.subtitle1.fontSize,\n fontWeight: theme.typography.fontWeightBold,\n height: theme.spacing(6),\n marginBottom: theme.spacing(2),\n marginLeft: 0,\n marginRight: 0,\n width: theme.spacing(6),\n }),\n },\n },\n MuiDatePicker: {\n defaultProps: {\n PopperProps: {\n popperOptions: {\n placement: \"auto-start\",\n },\n },\n showDaysOutsideCurrentMonth: true,\n views: [\"year\", \"day\"],\n },\n },\n MuiPickersCalendarHeader: {\n styleOverrides: {\n label: ({ theme }) => ({\n fontSize: theme.typography.h6.fontSize,\n fontWeight: theme.typography.fontWeightBold,\n }),\n root: ({ theme }) => ({\n marginBottom: theme.spacing(1),\n marginTop: 0,\n paddingLeft: `calc(${theme.spacing(\n popupSpacingValue\n )} + ${theme.spacing(2)})`,\n paddingRight: theme.spacing(popupSpacingValue),\n width: \"auto\",\n }),\n },\n },\n MuiPickersDay: {\n styleOverrides: {\n dayWithMargin: () => ({\n marginLeft: 0,\n marginRight: 0,\n }),\n root: ({ theme }) => [\n dateStyles.default({ theme }),\n {\n border: \"none\",\n borderRadius: theme.mixins.borderRadius,\n flexBasis: theme.spacing(6),\n flexShrink: 0,\n fontSize: theme.typography.body1.fontSize,\n height: theme.spacing(6),\n width: theme.spacing(6),\n\n \"&.MuiPickersDay-today\": [\n dateStyles.today({ theme }),\n {\n fontWeight: theme.typography.fontWeightBold,\n },\n ],\n\n \"&.MuiPickersDay-today::after\": todayDotStyles.default({ theme }),\n \"&.MuiPickersDay-today.Mui-selected::after\":\n todayDotStyles.selected({ theme }),\n \"&.MuiPickersDay-dayOutsideMonth\": dateStyles.outsideOfMonth({\n theme,\n }),\n \"&:hover\": dateStyles.hover({ theme }),\n\n \"&:not(.Mui-selected)\": {\n border: \"none\",\n },\n\n \"&.Mui-selected, &.Mui-selected:focus\": dateStyles.selected({\n theme,\n }),\n \"&.Mui-selected:hover\": dateStyles.hoverSelected({ theme }),\n \"&.Mui-disabled\": dateStyles.disabled({ theme }),\n },\n ],\n },\n },\n MuiPickersPopper: {\n styleOverrides: {\n paper: ({ theme }) => ({\n boxShadow: `0 ${(1 / 16) * (16 / 14)}rem ${\n (4 / 16) * (16 / 14)\n }rem rgba(29, 29, 33, 0.08), 0 ${(4 / 16) * (16 / 14)}rem ${\n (10 / 16) * (16 / 14)\n }rem rgba(29, 29, 33, 0.08), 0 ${(8 / 16) * (16 / 14)}rem ${\n (30 / 16) * (16 / 14)\n }rem rgba(29, 29, 33, 0.1)`,\n marginTop: theme.spacing(1),\n }),\n },\n },\n MuiYearPicker: {\n styleOverrides: {\n root: ({ theme }) => ({\n alignItems: \"flex-start\",\n flexDirection: \"column\",\n flexWrap: \"nowrap\",\n marginBottom: `-${theme.spacing(popupSpacingValue)}`,\n marginInlineEnd: 0,\n maxHeight: `${(284 / 16) * (16 / 14)}rem`,\n paddingLeft: 0,\n paddingRight: 0,\n }),\n },\n },\n PrivatePickersYear: {\n styleOverrides: {\n // eslint-disable-next-line @typescript-eslint/ban-ts-comment\n // @ts-expect-error TEMP. Arrays are valid styles return values for Emotion.\n button: ({ theme }) => [\n yearStyles.default({ theme }),\n {\n alignItems: \"center\",\n borderRadius: 0,\n display: \"flex\",\n fontSize: theme.typography.body1.fontSize,\n justifyContent: \"flex-start\",\n marginBottom: 0,\n marginTop: 0,\n paddingLeft: theme.spacing(7),\n position: \"relative\",\n width: \"100%\",\n\n \"&:hover\": yearStyles.hover({ theme }),\n\n \"&:not(.Mui-selected)\": {\n border: \"none\",\n },\n\n \"&.Mui-disabled\": yearStyles.disabled({ theme }),\n },\n ],\n root: () => ({\n width: \"100%\",\n }),\n selected: ({ theme }) => ({\n \"&, &:focus\": yearStyles.selected({ theme }),\n \"&:hover\": yearStyles.hoverSelected({ theme }),\n \"&::after\": yearCheckStyles.default({ theme }),\n }),\n },\n },\n },\n};\n"],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAVA,SAcEA,aAAa,EACbC,cAAc,EACdC,YAAY,EACZC,eAAe;AAAA,SAERC,qBAAqB;AAE9B,OAAO,KAAKC,MAAM,MAAM,6BAA6B;AAErD,MAAMC,iBAAiB,GAAG,CAAC;AAE3B,MAAMC,YAAY,GAAGH,qBAAqB,CAACC,MAAM,CAAC;AAUlD,MAAMG,UAAuB,GAAG;EAC9BC,OAAO,EAAEC,IAAA;IAAA,IAAC;MAAEC;IAAM,CAAC,GAAAD,IAAA;IAAA,OAAM;MACvBE,KAAK,EAAED,KAAK,CAACE,OAAO,CAACC,IAAI,CAAC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iTheme","odysseyTokens","popupSpacingValue","odysseyTheme","dateStyles","default","_ref","theme","color","palette","text","primary","disabled","_ref2","backgroundColor","hover","_ref3","grey","hoverSelected","_ref4","dark","contrastText","outsideOfMonth","_ref5","secondary","selected","_ref6","main","today","_ref7","todayDotStyles","_ref8","borderRadius","bottom","spacing","content","height","typography","fontSize","position","transform","width","_ref9","_ref10","yearStyles","_ref11","_ref12","_ref13","_ref14","lighter","_ref15","_ref16","fontWeight","fontWeightBold","yearCheckStyles","_ref17","h6","maskImage","maskPosition","maskRepeat","right","datePickerTheme","components","MuiCalendarPicker","styleOverrides","root","_ref18","borderColor","divider","borderStyle","mixins","borderWidth","paddingBottom","paddingTop","MuiCalendarOrClockPicker","defaultProps","LeftArrowIcon","RightArrowIcon","SwitchViewIcon","MuiDesktopDatePicker","OpenPickerIcon","MuiDayPicker","header","_ref19","gap","justifyContent","paddingLeft","paddingRight","slideTransition","minHeight","weekContainer","_ref20","marginBottom","marginLeft","marginRight","weekDayLabel","_ref21","flexBasis","flexShrink","subtitle1","MuiDatePicker","PopperProps","popperOptions","placement","showDaysOutsideCurrentMonth","views","MuiPickersCalendarHeader","label","_ref22","_ref23","marginTop","MuiPickersDay","dayWithMargin","_ref24","border","body1","MuiPickersPopper","paper","_ref25","boxShadow","MuiYearPicker","_ref26","alignItems","flexDirection","flexWrap","marginInlineEnd","maxHeight","PrivatePickersYear","button","_ref27","display","_ref28"],"sources":["../../src/labs/datePickerTheme.tsx"],"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 { CSSInterpolation } from \"@mui/material/styles\";\nimport {\n ArrowLeftIcon,\n ArrowRightIcon,\n CalendarIcon,\n ChevronDownIcon,\n} from \"../icons.generated\";\nimport { createOdysseyMuiTheme } from \"../theme\";\nimport { ThemeOptions } from \"@mui/material\";\nimport * as odysseyTokens from \"@okta/odyssey-design-tokens\";\n\nconst popupSpacingValue = 5;\n\nconst odysseyTheme = createOdysseyMuiTheme({ odysseyTokens });\n\ntype ThemeStyles = ({\n theme,\n}: {\n theme: typeof odysseyTheme;\n}) => CSSInterpolation;\n\ntype StateStyles = Record<string, ThemeStyles>;\n\nconst dateStyles: StateStyles = {\n default: ({ theme }) => ({\n color: theme.palette.text.primary,\n }),\n disabled: ({ theme }) => ({\n backgroundColor: \"transparent\",\n color: theme.palette.text.disabled,\n }),\n hover: ({ theme }) => ({\n backgroundColor: theme.palette.grey[100],\n }),\n hoverSelected: ({ theme }) => ({\n backgroundColor: theme.palette.primary.dark,\n color: theme.palette.primary.contrastText,\n }),\n outsideOfMonth: ({ theme }) => ({\n backgroundColor: \"transparent\",\n color: theme.palette.text.secondary,\n }),\n selected: ({ theme }) => ({\n backgroundColor: theme.palette.primary.main,\n color: theme.palette.primary.contrastText,\n }),\n today: ({ theme }) => ({\n backgroundColor: \"transparent\",\n color: theme.palette.primary.main,\n }),\n};\n\nconst todayDotStyles: StateStyles = {\n default: ({ theme }) => ({\n backgroundColor: theme.palette.primary.main,\n borderRadius: \"50%\",\n bottom: theme.spacing(1),\n content: '\" \"',\n height: `${2 / theme.typography.fontSize}em`,\n position: \"absolute\",\n transform: \"translateY(-50%)\",\n width: `${2 / theme.typography.fontSize}em`,\n }),\n hover: ({ theme }) => ({\n backgroundColor: theme.palette.primary.main,\n }),\n selected: ({ theme }) => ({\n backgroundColor: theme.palette.primary.contrastText,\n }),\n};\n\nconst yearStyles: StateStyles = {\n default: ({ theme }) => ({\n backgroundColor: \"transparent\",\n color: theme.palette.text.primary,\n }),\n disabled: ({ theme }) => ({\n backgroundColor: \"transparent\",\n color: theme.palette.text.disabled,\n }),\n hover: ({ theme }) => ({\n backgroundColor: theme.palette.grey[100],\n }),\n hoverSelected: ({ theme }) => ({\n backgroundColor: theme.palette.primary.lighter,\n color: theme.palette.primary.main,\n }),\n outsideOfMonth: ({ theme }) => ({\n backgroundColor: \"transparent\",\n color: theme.palette.text.secondary,\n }),\n selected: ({ theme }) => ({\n backgroundColor: \"transparent\",\n color: theme.palette.primary.main,\n fontWeight: theme.typography.fontWeightBold,\n }),\n};\n\nconst yearCheckStyles: StateStyles = {\n default: ({ theme }) => ({\n backgroundColor: theme.palette.primary.main,\n content: '\"\"',\n height: theme.typography.h6.fontSize,\n maskImage:\n \"url(\\\"data:image/svg+xml,%3Csvg viewBox='0 0 16 16' fill='none' xmlns='http://www.w3.org/2000/svg'%0A%3E%3Cpath fillRule='evenodd' clipRule='evenodd' d='M14.3536 4.35355L6.35355 12.3536C6.15829 12.5488 5.84171 12.5488 5.64645 12.3536L1.64645 8.35355L2.35355 7.64645L6 11.2929L13.6464 3.64645L14.3536 4.35355Z' fill='currentColor' /%3E%3C/svg%3E%0A\\\")\",\n maskPosition: \"50% 50%\",\n maskRepeat: \"no-repeat\",\n position: \"absolute\",\n right: theme.spacing(4),\n width: theme.typography.h6.fontSize,\n }),\n};\n\nexport const datePickerTheme: ThemeOptions = {\n components: {\n MuiCalendarPicker: {\n styleOverrides: {\n root: ({ theme }) => ({\n borderColor: theme.palette.divider,\n borderStyle: theme.mixins.borderStyle,\n borderWidth: theme.mixins.borderWidth,\n borderRadius: theme.mixins.borderRadius,\n paddingBottom: theme.spacing(popupSpacingValue),\n paddingTop: theme.spacing(4),\n width: \"100%\",\n }),\n },\n },\n MuiCalendarOrClockPicker: {\n styleOverrides: {\n root: () => ({\n \"& > div\": {\n width: `${(296 / 16) * (16 / 14)}rem`,\n },\n }),\n },\n defaultProps: {\n components: {\n LeftArrowIcon: ArrowLeftIcon,\n RightArrowIcon: ArrowRightIcon,\n SwitchViewIcon: ChevronDownIcon,\n },\n },\n },\n MuiDesktopDatePicker: {\n defaultProps: {\n components: {\n OpenPickerIcon: CalendarIcon,\n },\n },\n },\n MuiDayPicker: {\n styleOverrides: {\n header: ({ theme }) => ({\n gap: theme.spacing(1),\n justifyContent: \"space-between\",\n paddingLeft: theme.spacing(popupSpacingValue),\n paddingRight: theme.spacing(popupSpacingValue),\n }),\n slideTransition: () => ({\n minHeight: `${(214 / 16) * (16 / 14)}rem`,\n }),\n weekContainer: ({ theme }) => ({\n gap: theme.spacing(1),\n justifyContent: \"space-between\",\n marginBottom: theme.spacing(1),\n marginLeft: 0,\n marginRight: 0,\n paddingLeft: theme.spacing(popupSpacingValue),\n paddingRight: theme.spacing(popupSpacingValue),\n\n \"&:last-child\": {\n marginBottom: 0,\n },\n }),\n weekDayLabel: ({ theme }) => ({\n color: theme.palette.grey[900],\n flexBasis: theme.spacing(6),\n flexShrink: 0,\n fontSize: theme.typography.subtitle1.fontSize,\n fontWeight: theme.typography.fontWeightBold,\n height: theme.spacing(6),\n marginBottom: theme.spacing(2),\n marginLeft: 0,\n marginRight: 0,\n width: theme.spacing(6),\n }),\n },\n },\n MuiDatePicker: {\n defaultProps: {\n PopperProps: {\n popperOptions: {\n placement: \"auto-start\",\n },\n },\n showDaysOutsideCurrentMonth: true,\n views: [\"year\", \"day\"],\n },\n },\n MuiPickersCalendarHeader: {\n styleOverrides: {\n label: ({ theme }) => ({\n fontSize: theme.typography.h6.fontSize,\n fontWeight: theme.typography.fontWeightBold,\n }),\n root: ({ theme }) => ({\n marginBottom: theme.spacing(1),\n marginTop: 0,\n paddingLeft: `calc(${theme.spacing(\n popupSpacingValue\n )} + ${theme.spacing(2)})`,\n paddingRight: theme.spacing(popupSpacingValue),\n width: \"auto\",\n }),\n },\n },\n MuiPickersDay: {\n styleOverrides: {\n dayWithMargin: () => ({\n marginLeft: 0,\n marginRight: 0,\n }),\n root: ({ theme }) => [\n dateStyles.default({ theme }),\n {\n border: \"none\",\n borderRadius: theme.mixins.borderRadius,\n flexBasis: theme.spacing(6),\n flexShrink: 0,\n fontSize: theme.typography.body1.fontSize,\n height: theme.spacing(6),\n width: theme.spacing(6),\n\n \"&.MuiPickersDay-today\": [\n dateStyles.today({ theme }),\n {\n fontWeight: theme.typography.fontWeightBold,\n },\n ],\n\n \"&.MuiPickersDay-today::after\": todayDotStyles.default({ theme }),\n \"&.MuiPickersDay-today.Mui-selected::after\":\n todayDotStyles.selected({ theme }),\n \"&.MuiPickersDay-dayOutsideMonth\": dateStyles.outsideOfMonth({\n theme,\n }),\n \"&:hover\": dateStyles.hover({ theme }),\n\n \"&:not(.Mui-selected)\": {\n border: \"none\",\n },\n\n \"&.Mui-selected, &.Mui-selected:focus\": dateStyles.selected({\n theme,\n }),\n \"&.Mui-selected:hover\": dateStyles.hoverSelected({ theme }),\n \"&.Mui-disabled\": dateStyles.disabled({ theme }),\n },\n ],\n },\n },\n MuiPickersPopper: {\n styleOverrides: {\n paper: ({ theme }) => ({\n boxShadow: `0 ${(1 / 16) * (16 / 14)}rem ${\n (4 / 16) * (16 / 14)\n }rem rgba(29, 29, 33, 0.08), 0 ${(4 / 16) * (16 / 14)}rem ${\n (10 / 16) * (16 / 14)\n }rem rgba(29, 29, 33, 0.08), 0 ${(8 / 16) * (16 / 14)}rem ${\n (30 / 16) * (16 / 14)\n }rem rgba(29, 29, 33, 0.1)`,\n marginTop: theme.spacing(1),\n }),\n },\n },\n MuiYearPicker: {\n styleOverrides: {\n root: ({ theme }) => ({\n alignItems: \"flex-start\",\n flexDirection: \"column\",\n flexWrap: \"nowrap\",\n marginBottom: `-${theme.spacing(popupSpacingValue)}`,\n marginInlineEnd: 0,\n maxHeight: `${(284 / 16) * (16 / 14)}rem`,\n paddingLeft: 0,\n paddingRight: 0,\n }),\n },\n },\n PrivatePickersYear: {\n styleOverrides: {\n // eslint-disable-next-line @typescript-eslint/ban-ts-comment\n // @ts-expect-error TEMP. Arrays are valid styles return values for Emotion.\n button: ({ theme }) => [\n yearStyles.default({ theme }),\n {\n alignItems: \"center\",\n borderRadius: 0,\n display: \"flex\",\n fontSize: theme.typography.body1.fontSize,\n justifyContent: \"flex-start\",\n marginBottom: 0,\n marginTop: 0,\n paddingLeft: theme.spacing(7),\n position: \"relative\",\n width: \"100%\",\n\n \"&:hover\": yearStyles.hover({ theme }),\n\n \"&:not(.Mui-selected)\": {\n border: \"none\",\n },\n\n \"&.Mui-disabled\": yearStyles.disabled({ theme }),\n },\n ],\n root: () => ({\n width: \"100%\",\n }),\n selected: ({ theme }) => ({\n \"&, &:focus\": yearStyles.selected({ theme }),\n \"&:hover\": yearStyles.hoverSelected({ theme }),\n \"&::after\": yearCheckStyles.default({ theme }),\n }),\n },\n },\n },\n};\n"],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAVA,SAcEA,aAAa,EACbC,cAAc,EACdC,YAAY,EACZC,eAAe;AAAA,SAERC,qBAAqB;AAE9B,OAAO,KAAKC,aAAa,MAAM,6BAA6B;AAE5D,MAAMC,iBAAiB,GAAG,CAAC;AAE3B,MAAMC,YAAY,GAAGH,qBAAqB,CAAC;EAAEC;AAAc,CAAC,CAAC;AAU7D,MAAMG,UAAuB,GAAG;EAC9BC,OAAO,EAAEC,IAAA;IAAA,IAAC;MAAEC;IAAM,CAAC,GAAAD,IAAA;IAAA,OAAM;MACvBE,KAAK,EAAED,KAAK,CAACE,OAAO,CAACC,IAAI,CAACC;IAC5B,CAAC;EAAA,CAAC;EACFC,QAAQ,EAAEC,KAAA;IAAA,IAAC;MAAEN;IAAM,CAAC,GAAAM,KAAA;IAAA,OAAM;MACxBC,eAAe,EAAE,aAAa;MAC9BN,KAAK,EAAED,KAAK,CAACE,OAAO,CAACC,IAAI,CAACE;IAC5B,CAAC;EAAA,CAAC;EACFG,KAAK,EAAEC,KAAA;IAAA,IAAC;MAAET;IAAM,CAAC,GAAAS,KAAA;IAAA,OAAM;MACrBF,eAAe,EAAEP,KAAK,CAACE,OAAO,CA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AAE,YAAY;YAC5BO,YAAY,EAAE,CAAC;YACfkB,SAAS,EAAE,CAAC;YACZxB,WAAW,EAAE/E,KAAK,CAAC2B,OAAO,CAAC,CAAC,CAAC;YAC7BK,QAAQ,EAAE,UAAU;YACpBE,KAAK,EAAE,MAAM;YAEb,SAAS,EAAEG,UAAU,CAAC7B,KAAK,CAAC;cAAER;YAAM,CAAC,CAAC;YAEtC,sBAAsB,EAAE;cACtB2G,MAAM,EAAE;YACV,CAAC;YAED,gBAAgB,EAAEtE,UAAU,CAAChC,QAAQ,CAAC;cAAEL;YAAM,CAAC;UACjD,CAAC,CACF;QAAA;QACD0D,IAAI,EAAEA,CAAA,MAAO;UACXxB,KAAK,EAAE;QACT,CAAC,CAAC;QACFhB,QAAQ,EAAE0G,MAAA;UAAA,IAAC;YAAE5H;UAAM,CAAC,GAAA4H,MAAA;UAAA,OAAM;YACxB,YAAY,EAAEvF,UAAU,CAACnB,QAAQ,CAAC;cAAElB;YAAM,CAAC,CAAC;YAC5C,SAAS,EAAEqC,UAAU,CAAC1B,aAAa,CAAC;cAAEX;YAAM,CAAC,CAAC;YAC9C,UAAU,EAAE+C,eAAe,CAACjD,OAAO,CAAC;cAAEE;YAAM,CAAC;UAC/C,CAAC;QAAA;MACH;IACF;EACF;AACF,CAAC"}
@@ -2,6 +2,8 @@ export const translation = {
2
2
  "fielderror.screenreader.text": "Error",
3
3
  "fieldlabel.optional.text": "Optional",
4
4
  "fieldlabel.required.text": "Required",
5
+ "passwordfield.icon.label.show": "Show password",
6
+ "passwordfield.icon.label.hide": "Hide password",
5
7
  "severity.error": "error",
6
8
  "severity.info": "info",
7
9
  "severity.success": "success",
@@ -1 +1 @@
1
- {"version":3,"file":"odyssey-react-mui.js","names":["translation"],"sources":["../../../src/properties/ts/odyssey-react-mui.ts"],"sourcesContent":["export const translation = {\"fielderror.screenreader.text\":\"Error\",\"fieldlabel.optional.text\":\"Optional\",\"fieldlabel.required.text\":\"Required\",\"severity.error\":\"error\",\"severity.info\":\"info\",\"severity.success\":\"success\",\"severity.warning\":\"warning\",\"table.error\":\"Error loading data.\",\"table.fetchedrows.text\":\"Fetched {{totalRows}} row\",\"table.fetchedrows.text_plural\":\"Fetched {{totalRows}} total rows\",\"table.rows.text\":\"{{totalRows}} row\",\"table.rows.text_plural\":\"{{totalRows}} rows\",\"toast.close.text\":\"close\"};"],"mappings":"AAAA,OAAO,MAAMA,WAAW,GAAG;EAAC,8BAA8B,EAAC,OAAO;EAAC,0BAA0B,EAAC,UAAU;EAAC,0BAA0B,EAAC,UAAU;EAAC,gBAAgB,EAAC,OAAO;EAAC,eAAe,EAAC,MAAM;EAAC,kBAAkB,EAAC,SAAS;EAAC,kBAAkB,EAAC,SAAS;EAAC,aAAa,EAAC,qBAAqB;EAAC,wBAAwB,EAAC,2BAA2B;EAAC,+BAA+B,EAAC,kCAAkC;EAAC,iBAAiB,EAAC,mBAAmB;EAAC,wBAAwB,EAAC,oBAAoB;EAAC,kBAAkB,EAAC;AAAO,CAAC"}
1
+ {"version":3,"file":"odyssey-react-mui.js","names":["translation"],"sources":["../../../src/properties/ts/odyssey-react-mui.ts"],"sourcesContent":["export const translation = {\"fielderror.screenreader.text\":\"Error\",\"fieldlabel.optional.text\":\"Optional\",\"fieldlabel.required.text\":\"Required\",\"passwordfield.icon.label.show\":\"Show password\",\"passwordfield.icon.label.hide\":\"Hide password\",\"severity.error\":\"error\",\"severity.info\":\"info\",\"severity.success\":\"success\",\"severity.warning\":\"warning\",\"table.error\":\"Error loading data.\",\"table.fetchedrows.text\":\"Fetched {{totalRows}} row\",\"table.fetchedrows.text_plural\":\"Fetched {{totalRows}} total rows\",\"table.rows.text\":\"{{totalRows}} row\",\"table.rows.text_plural\":\"{{totalRows}} rows\",\"toast.close.text\":\"close\"};"],"mappings":"AAAA,OAAO,MAAMA,WAAW,GAAG;EAAC,8BAA8B,EAAC,OAAO;EAAC,0BAA0B,EAAC,UAAU;EAAC,0BAA0B,EAAC,UAAU;EAAC,+BAA+B,EAAC,eAAe;EAAC,+BAA+B,EAAC,eAAe;EAAC,gBAAgB,EAAC,OAAO;EAAC,eAAe,EAAC,MAAM;EAAC,kBAAkB,EAAC,SAAS;EAAC,kBAAkB,EAAC,SAAS;EAAC,aAAa,EAAC,qBAAqB;EAAC,wBAAwB,EAAC,2BAA2B;EAAC,+BAA+B,EAAC,kCAAkC;EAAC,iBAAiB,EAAC,mBAAmB;EAAC,wBAAwB,EAAC,oBAAoB;EAAC,kBAAkB,EAAC;AAAO,CAAC"}
@@ -12,6 +12,10 @@
12
12
  import { AutocompleteProps as MuiAutocompleteProps } from "@mui/material";
13
13
  import type { SeleniumProps } from "./SeleniumProps";
14
14
  export type AutocompleteProps<OptionType, HasMultipleChoices extends boolean | undefined, IsCustomValueAllowed extends boolean | undefined> = {
15
+ /**
16
+ * The error message for the Select
17
+ */
18
+ errorMessage?: string;
15
19
  /**
16
20
  * Enables multiple choice selection
17
21
  */
@@ -20,6 +24,10 @@ export type AutocompleteProps<OptionType, HasMultipleChoices extends boolean | u
20
24
  * The hint text for the Autocomplete input
21
25
  */
22
26
  hint?: string;
27
+ /**
28
+ * The id attribute of the Select
29
+ */
30
+ id?: string;
23
31
  /**
24
32
  * Allows the input of custom values
25
33
  */
@@ -45,13 +53,25 @@ export type AutocompleteProps<OptionType, HasMultipleChoices extends boolean | u
45
53
  */
46
54
  label: string;
47
55
  /**
48
- * Callback fired when the value of the autocomplete input changes
56
+ * The name of the `input` element. Defaults to the `id` if not set.
57
+ */
58
+ name?: string;
59
+ /**
60
+ * Callback fired when the autocomplete loses focus.
61
+ */
62
+ onBlur?: MuiAutocompleteProps<OptionType, HasMultipleChoices, undefined, IsCustomValueAllowed>["onBlur"];
63
+ /**
64
+ * Callback fired when a selection is made.
49
65
  */
50
66
  onChange?: MuiAutocompleteProps<OptionType, HasMultipleChoices, undefined, IsCustomValueAllowed>["onChange"];
51
67
  /**
52
- * Callback fired when the input value of the autocomplete input changes
68
+ * Callback fired when the textbox receives typed characters.
53
69
  */
54
70
  onInputChange?: MuiAutocompleteProps<OptionType, HasMultipleChoices, undefined, IsCustomValueAllowed>["onInputChange"];
71
+ /**
72
+ * Callback fired when the autocomplete gains focus.
73
+ */
74
+ onFocus?: MuiAutocompleteProps<OptionType, HasMultipleChoices, undefined, IsCustomValueAllowed>["onFocus"];
55
75
  /**
56
76
  * The options for the Autocomplete input
57
77
  */
@@ -61,6 +81,6 @@ export type AutocompleteProps<OptionType, HasMultipleChoices extends boolean | u
61
81
  */
62
82
  value?: MuiAutocompleteProps<OptionType, HasMultipleChoices, undefined, IsCustomValueAllowed>["value"];
63
83
  } & SeleniumProps;
64
- declare const MemoizedAutocomplete: <OptionType, HasMultipleChoices extends boolean | undefined, IsCustomValueAllowed extends boolean | undefined>({ hasMultipleChoices, isCustomValueAllowed, isDisabled, isLoading, isOptional, isReadOnly, hint, label, onChange, onInputChange, options, value, testId, }: AutocompleteProps<OptionType, HasMultipleChoices, IsCustomValueAllowed>) => JSX.Element;
84
+ declare const MemoizedAutocomplete: <OptionType, HasMultipleChoices extends boolean | undefined, IsCustomValueAllowed extends boolean | undefined>({ errorMessage, hasMultipleChoices, id: idOverride, isCustomValueAllowed, isDisabled, isLoading, isOptional, isReadOnly, hint, label, name: nameOverride, onBlur, onChange, onInputChange, onFocus, options, value, testId, }: AutocompleteProps<OptionType, HasMultipleChoices, IsCustomValueAllowed>) => JSX.Element;
65
85
  export { MemoizedAutocomplete as Autocomplete };
66
86
  //# sourceMappingURL=Autocomplete.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"Autocomplete.d.ts","sourceRoot":"","sources":["../../src/Autocomplete.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG;AAEH,OAAO,EAEL,iBAAiB,IAAI,oBAAoB,EAE1C,MAAM,eAAe,CAAC;AAIvB,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAErD,MAAM,MAAM,iBAAiB,CAC3B,UAAU,EACV,kBAAkB,SA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AU,CAAC,EAAE,OAAO,CAAC;IACrB;;OAEG;IACH,UAAU,CAAC,EAAE,oBAAoB,CAC/B,UAAU,EACV,kBAAkB,EAClB,SAAS,EACT,oBAAoB,CACrB,CAAC,UAAU,CAAC,CAAC;IACd;;OAEG;IACH,KAAK,EAAE,MAAM,CAAC;IACd;;OAEG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC;IACd;;OAEG;IACH,MAAM,CAAC,EAAE,oBAAoB,CAC3B,UAAU,EACV,kBAAkB,EAClB,SAAS,EACT,oBAAoB,CACrB,CAAC,QAAQ,CAAC,CAAC;IACZ;;OAEG;IACH,QAAQ,CAAC,EAAE,oBAAoB,CAC7B,UAAU,EACV,kBAAkB,EAClB,SAAS,EACT,oBAAoB,CACrB,CAAC,UAAU,CAAC,CAAC;IACd;;OAEG;IACH,aAAa,CAAC,EAAE,oBAAoB,CAClC,UAAU,EACV,kBAAkB,EAClB,SAAS,EACT,oBAAoB,CACrB,CAAC,eAAe,CAAC,CAAC;IACnB;;OAEG;IACH,OAAO,CAAC,EAAE,oBAAoB,CAC5B,UAAU,EACV,kBAAkB,EAClB,SAAS,EACT,oBAAoB,CACrB,CAAC,SAAS,CAAC,CAAC;IACb;;OAEG;IACH,OAAO,EAAE,oBAAoB,CAC3B,UAAU,EACV,kBAAkB,EAClB,SAAS,EACT,oBAAoB,CACrB,CAAC,SAAS,CAAC,CAAC;IACb;;OAEG;IACH,KAAK,CAAC,EAAE,oBAAoB,CAC1B,UAAU,EACV,kBAAkB,EAClB,SAAS,EACT,oBAAoB,CACrB,CAAC,OAAO,CAAC,CAAC;CACZ,GAAG,aAAa,CAAC;AA2ElB,QAAA,MAAM,oBAAoB,uaAA4C,CAAC;AAEvE,OAAO,EAAE,oBAAoB,IAAI,YAAY,EAAE,CAAC"}
@@ -18,9 +18,14 @@ import { StylisPlugin } from "@emotion/cache";
18
18
  import { ReactNode } from "react";
19
19
  export type OdysseyCacheProviderProps = {
20
20
  children: ReactNode;
21
+ /**
22
+ * Emotion renders into this HTML element.
23
+ * When enabling this prop, Emotion renders at the top of this component rather than the bottom like it does in the HTML `<head>`.
24
+ */
25
+ emotionRootElement?: HTMLStyleElement;
21
26
  nonce?: string;
22
27
  stylisPlugins?: StylisPlugin[];
23
28
  };
24
- declare const MemoizedOdysseyCacheProvider: import("react").MemoExoticComponent<({ children, nonce, stylisPlugins, }: OdysseyCacheProviderProps) => JSX.Element>;
29
+ declare const MemoizedOdysseyCacheProvider: import("react").MemoExoticComponent<({ children, emotionRootElement, nonce, stylisPlugins, }: OdysseyCacheProviderProps) => JSX.Element>;
25
30
  export { MemoizedOdysseyCacheProvider as OdysseyCacheProvider };
26
31
  //# sourceMappingURL=OdysseyCacheProvider.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"OdysseyCacheProvider.d.ts","sourceRoot":"","sources":["../../src/OdysseyCacheProvider.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG;AAEH,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,MAAM;QACd,QAAQ,EAAE,MAAM,CAAC;KAClB;CACF;AAED,OAAoB,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AAE3D,OAAO,EAAQ,SAAS,EAAW,MAAM,OAAO,CAAC;AAIjD,MAAM,MAAM,yBAAyB,GAAG;IACtC,QAAQ,EAAE,SAAS,CAAC;IACpB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,aAAa,CAAC,EAAE,YAAY,EAAE,CAAC;CAChC,CAAC;AAsBF,QAAA,MAAM,4BAA4B,4EAhB/B,yBAAyB,iBAgBmC,CAAC;AAGhE,OAAO,EAAE,4BAA4B,IAAI,oBAAoB,EAAE,CAAC"}
1
+ {"version":3,"file":"OdysseyCacheProvider.d.ts","sourceRoot":"","sources":["../../src/OdysseyCacheProvider.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG;AAEH,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,MAAM;QACd,QAAQ,EAAE,MAAM,CAAC;KAClB;CACF;AAED,OAAoB,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AAE3D,OAAO,EAAQ,SAAS,EAAW,MAAM,OAAO,CAAC;AAIjD,MAAM,MAAM,yBAAyB,GAAG;IACtC,QAAQ,EAAE,SAAS,CAAC;IACpB;;;OAGG;IACH,kBAAkB,CAAC,EAAE,gBAAgB,CAAC;IACtC,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,aAAa,CAAC,EAAE,YAAY,EAAE,CAAC;CAChC,CAAC;AAyBF,QAAA,MAAM,4BAA4B,gGAlB/B,yBAAyB,iBAkBmC,CAAC;AAGhE,OAAO,EAAE,4BAA4B,IAAI,oBAAoB,EAAE,CAAC"}
@@ -16,6 +16,6 @@ import { OdysseyTranslationProviderProps } from "./OdysseyTranslationProvider";
16
16
  export type OdysseyProviderProps = OdysseyCacheProviderProps & OdysseyThemeProviderProps & OdysseyTranslationProviderProps & {
17
17
  children: ReactNode;
18
18
  };
19
- declare const MemoizedThemeProvider: import("react").MemoExoticComponent<({ children, designTokensOverride, languageCode, nonce, stylisPlugins, themeOverride, translationOverrides, }: OdysseyProviderProps) => JSX.Element>;
19
+ declare const MemoizedThemeProvider: import("react").MemoExoticComponent<({ children, designTokensOverride, emotionRootElement, shadowRootElement, languageCode, nonce, stylisPlugins, themeOverride, translationOverrides, }: OdysseyProviderProps) => JSX.Element>;
20
20
  export { MemoizedThemeProvider as OdysseyProvider };
21
21
  //# sourceMappingURL=OdysseyProvider.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"OdysseyProvider.d.ts","sourceRoot":"","sources":["../../src/OdysseyProvider.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG;AAEH,OAAO,EAAQ,SAAS,EAAE,MAAM,OAAO,CAAC;AAGxC,OAAO,EAEL,yBAAyB,EAC1B,MAAM,wBAAwB,CAAC;AAChC,OAAO,EAEL,yBAAyB,EAC1B,MAAM,wBAAwB,CAAC;AAChC,OAAO,EAEL,+BAA+B,EAChC,MAAM,8BAA8B,CAAC;AAEtC,MAAM,MAAM,oBAAoB,GAAG,yBAAyB,GAC1D,yBAAyB,GACzB,+BAA+B,GAAG;IAChC,QAAQ,EAAE,SAAS,CAAC;CACrB,CAAC;AA4BJ,QAAA,MAAM,qBAAqB,qJAlBxB,oBAAoB,iBAkB4B,CAAC;AAEpD,OAAO,EAAE,qBAAqB,IAAI,eAAe,EAAE,CAAC"}
1
+ {"version":3,"file":"OdysseyProvider.d.ts","sourceRoot":"","sources":["../../src/OdysseyProvider.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG;AAEH,OAAO,EAAQ,SAAS,EAAE,MAAM,OAAO,CAAC;AAGxC,OAAO,EAEL,yBAAyB,EAC1B,MAAM,wBAAwB,CAAC;AAChC,OAAO,EAEL,yBAAyB,EAC1B,MAAM,wBAAwB,CAAC;AAChC,OAAO,EAEL,+BAA+B,EAChC,MAAM,8BAA8B,CAAC;AAEtC,MAAM,MAAM,oBAAoB,GAAG,yBAAyB,GAC1D,yBAAyB,GACzB,+BAA+B,GAAG;IAChC,QAAQ,EAAE,SAAS,CAAC;CACrB,CAAC;AAmCJ,QAAA,MAAM,qBAAqB,4LAvBxB,oBAAoB,iBAuB4B,CAAC;AAEpD,OAAO,EAAE,qBAAqB,IAAI,eAAe,EAAE,CAAC"}