@okta/odyssey-react-mui 1.71.1 → 1.73.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 (966) hide show
  1. package/README.md +15 -5
  2. package/dist/cjs/Accordion.cjs +1 -1
  3. package/dist/cjs/AnimationContext.cjs +1 -1
  4. package/dist/cjs/Autocomplete.cjs +1 -1
  5. package/dist/cjs/Badge.cjs +1 -1
  6. package/dist/cjs/Banner.cjs +1 -1
  7. package/dist/cjs/Box.cjs +1 -1
  8. package/dist/cjs/Breadcrumbs.cjs +1 -1
  9. package/dist/cjs/Buttons/BaseButton.cjs +4 -2
  10. package/dist/cjs/Buttons/BaseButton.cjs.map +1 -1
  11. package/dist/cjs/Buttons/BaseMenuButton.cjs +1 -1
  12. package/dist/cjs/Buttons/Button.cjs +1 -1
  13. package/dist/cjs/Buttons/MenuButton.cjs +1 -1
  14. package/dist/cjs/Buttons/MenuItem.cjs +1 -1
  15. package/dist/cjs/Callout.cjs +1 -1
  16. package/dist/cjs/Card.cjs +1 -1
  17. package/dist/cjs/CircularProgress.cjs +1 -1
  18. package/dist/cjs/ConditionalWrapper.cjs +1 -1
  19. package/dist/cjs/DataTable/DataTable.cjs +1 -1
  20. package/dist/cjs/DataTable/DataTableRowActions.cjs +1 -1
  21. package/dist/cjs/DataTable/DataTableSettings.cjs +1 -1
  22. package/dist/cjs/DatePickers/DateField.cjs +1 -1
  23. package/dist/cjs/DatePickers/DateFieldActionBar.cjs +1 -1
  24. package/dist/cjs/DatePickers/DateFieldLocalizationProvider.cjs +1 -1
  25. package/dist/cjs/DatePickers/DatePicker.cjs +1 -1
  26. package/dist/cjs/DatePickers/TimeZonePicker.cjs +1 -1
  27. package/dist/cjs/Dialog.cjs +10 -3
  28. package/dist/cjs/Dialog.cjs.map +1 -1
  29. package/dist/cjs/Drawer.cjs +14 -3
  30. package/dist/cjs/Drawer.cjs.map +1 -1
  31. package/dist/cjs/EmptyState.cjs +1 -1
  32. package/dist/cjs/ErrorMessageList.cjs +1 -1
  33. package/dist/cjs/Field.cjs +1 -1
  34. package/dist/cjs/FieldError.cjs +1 -1
  35. package/dist/cjs/FieldHint.cjs +1 -1
  36. package/dist/cjs/FieldLabel.cjs +1 -1
  37. package/dist/cjs/Fields/Checkbox.cjs +1 -1
  38. package/dist/cjs/Fields/CheckboxGroup.cjs +1 -1
  39. package/dist/cjs/Fields/Radio.cjs +1 -1
  40. package/dist/cjs/Fields/RadioGroup.cjs +1 -1
  41. package/dist/cjs/Fieldset.cjs +1 -1
  42. package/dist/cjs/FileUploader/FileUploadIllustration.cjs +1 -1
  43. package/dist/cjs/FileUploader/FileUploadPreview.cjs +1 -1
  44. package/dist/cjs/FileUploader/FileUploader.cjs +1 -1
  45. package/dist/cjs/Form.cjs +1 -1
  46. package/dist/cjs/FullScreenOverlay.cjs +20 -13
  47. package/dist/cjs/FullScreenOverlay.cjs.map +1 -1
  48. package/dist/cjs/FullScreenOverlayContext.cjs +19 -1
  49. package/dist/cjs/FullScreenOverlayContext.cjs.map +1 -1
  50. package/dist/cjs/HintLink.cjs +1 -1
  51. package/dist/cjs/IconWithTooltip.cjs +1 -1
  52. package/dist/cjs/Link.cjs +1 -1
  53. package/dist/cjs/MuiPropsChild.cjs +1 -1
  54. package/dist/cjs/NativeSelect.cjs +1 -1
  55. package/dist/cjs/OdysseyCacheProvider.cjs +11 -2
  56. package/dist/cjs/OdysseyCacheProvider.cjs.map +1 -1
  57. package/dist/cjs/OdysseyProvider.cjs +8 -1
  58. package/dist/cjs/OdysseyProvider.cjs.map +1 -1
  59. package/dist/cjs/OdysseyThemeProvider.cjs +61 -28
  60. package/dist/cjs/OdysseyThemeProvider.cjs.map +1 -1
  61. package/dist/cjs/OdysseyThemeProviderPropsContext.cjs +1 -1
  62. package/dist/cjs/OdysseyThemeProviderPropsContext.cjs.map +1 -1
  63. package/dist/cjs/Pagination/Pagination.cjs +37 -35
  64. package/dist/cjs/Pagination/Pagination.cjs.map +1 -1
  65. package/dist/cjs/PasswordField.cjs +1 -1
  66. package/dist/cjs/ScreenReaderText.cjs +1 -1
  67. package/dist/cjs/SearchField.cjs +1 -1
  68. package/dist/cjs/Select.cjs +1 -1
  69. package/dist/cjs/Stack.cjs +1 -1
  70. package/dist/cjs/Status.cjs +1 -1
  71. package/dist/cjs/Surface.cjs +1 -1
  72. package/dist/cjs/Switch.cjs +3 -3
  73. package/dist/cjs/Switch.cjs.map +1 -1
  74. package/dist/cjs/Tabs.cjs +1 -1
  75. package/dist/cjs/Tag.cjs +31 -23
  76. package/dist/cjs/Tag.cjs.map +1 -1
  77. package/dist/cjs/TagList.cjs +1 -1
  78. package/dist/cjs/TextField.cjs +1 -1
  79. package/dist/cjs/Toast.cjs +1 -1
  80. package/dist/cjs/ToastStack.cjs +1 -2
  81. package/dist/cjs/ToastStack.cjs.map +1 -1
  82. package/dist/cjs/Tooltip.cjs +1 -1
  83. package/dist/cjs/Typography.cjs +12 -12
  84. package/dist/cjs/backdropStack.cjs +75 -0
  85. package/dist/cjs/backdropStack.cjs.map +1 -0
  86. package/dist/cjs/charts/BarChart.cjs +1 -1
  87. package/dist/cjs/charts/LineChart.cjs +1 -1
  88. package/dist/cjs/charts/components/ChartError.cjs +1 -1
  89. package/dist/cjs/charts/components/ChartFrame.cjs +1 -1
  90. package/dist/cjs/charts/components/ChartPopoverContent.cjs +1 -1
  91. package/dist/cjs/charts/utils/useStableValue.cjs +5 -3
  92. package/dist/cjs/charts/utils/useStableValue.cjs.map +1 -1
  93. package/dist/cjs/fullscreen/FullscreenButton.cjs +1 -1
  94. package/dist/cjs/fullscreen/FullscreenRegion.cjs +3 -1
  95. package/dist/cjs/fullscreen/FullscreenRegion.cjs.map +1 -1
  96. package/dist/cjs/{getTypedObjectKeys.cjs → getActionTintChannel.cjs} +7 -6
  97. package/dist/cjs/getActionTintChannel.cjs.map +1 -0
  98. package/dist/cjs/getColorSchemeDesignTokensOverride.cjs +33 -0
  99. package/dist/cjs/getColorSchemeDesignTokensOverride.cjs.map +1 -0
  100. package/dist/cjs/getDropShadowFilter.cjs +22 -0
  101. package/dist/cjs/getDropShadowFilter.cjs.map +1 -0
  102. package/dist/cjs/icons.generated/Add.cjs +1 -1
  103. package/dist/cjs/icons.generated/AddCircle.cjs +1 -1
  104. package/dist/cjs/icons.generated/Apps.cjs +1 -1
  105. package/dist/cjs/icons.generated/AppsSelected.cjs +1 -1
  106. package/dist/cjs/icons.generated/ArrowBottom.cjs +1 -1
  107. package/dist/cjs/icons.generated/ArrowDown.cjs +1 -1
  108. package/dist/cjs/icons.generated/ArrowLeft.cjs +1 -1
  109. package/dist/cjs/icons.generated/ArrowLowerLeft.cjs +1 -1
  110. package/dist/cjs/icons.generated/ArrowLowerRight.cjs +1 -1
  111. package/dist/cjs/icons.generated/ArrowRight.cjs +1 -1
  112. package/dist/cjs/icons.generated/ArrowTop.cjs +1 -1
  113. package/dist/cjs/icons.generated/ArrowUnsorted.cjs +1 -1
  114. package/dist/cjs/icons.generated/ArrowUp.cjs +1 -1
  115. package/dist/cjs/icons.generated/ArrowUpperLeft.cjs +1 -1
  116. package/dist/cjs/icons.generated/ArrowUpperRight.cjs +1 -1
  117. package/dist/cjs/icons.generated/Bug.cjs +1 -1
  118. package/dist/cjs/icons.generated/Calendar.cjs +1 -1
  119. package/dist/cjs/icons.generated/Call.cjs +1 -1
  120. package/dist/cjs/icons.generated/Chat.cjs +1 -1
  121. package/dist/cjs/icons.generated/Check.cjs +1 -1
  122. package/dist/cjs/icons.generated/CheckCircleFilled.cjs +1 -1
  123. package/dist/cjs/icons.generated/ChevronDown.cjs +1 -1
  124. package/dist/cjs/icons.generated/ChevronLeft.cjs +1 -1
  125. package/dist/cjs/icons.generated/ChevronRight.cjs +1 -1
  126. package/dist/cjs/icons.generated/ChevronUp.cjs +1 -1
  127. package/dist/cjs/icons.generated/Clock.cjs +1 -1
  128. package/dist/cjs/icons.generated/Close.cjs +1 -1
  129. package/dist/cjs/icons.generated/CloseCircleFilled.cjs +1 -1
  130. package/dist/cjs/icons.generated/CollapseLeft.cjs +1 -1
  131. package/dist/cjs/icons.generated/CollapseRight.cjs +1 -1
  132. package/dist/cjs/icons.generated/Copy.cjs +1 -1
  133. package/dist/cjs/icons.generated/Customizations.cjs +1 -1
  134. package/dist/cjs/icons.generated/CustomizationsSelected.cjs +1 -1
  135. package/dist/cjs/icons.generated/DangerDiamond.cjs +1 -1
  136. package/dist/cjs/icons.generated/DangerDiamondFilled.cjs +1 -1
  137. package/dist/cjs/icons.generated/Delete.cjs +1 -1
  138. package/dist/cjs/icons.generated/Deny.cjs +1 -1
  139. package/dist/cjs/icons.generated/Devices.cjs +1 -1
  140. package/dist/cjs/icons.generated/Directory.cjs +1 -1
  141. package/dist/cjs/icons.generated/DirectorySelected.cjs +1 -1
  142. package/dist/cjs/icons.generated/Documentation.cjs +1 -1
  143. package/dist/cjs/icons.generated/Download.cjs +1 -1
  144. package/dist/cjs/icons.generated/DragIndicator.cjs +1 -1
  145. package/dist/cjs/icons.generated/Edit.cjs +1 -1
  146. package/dist/cjs/icons.generated/ExpandLeft.cjs +1 -1
  147. package/dist/cjs/icons.generated/ExpandRight.cjs +1 -1
  148. package/dist/cjs/icons.generated/ExternalLink.cjs +1 -1
  149. package/dist/cjs/icons.generated/Filter.cjs +1 -1
  150. package/dist/cjs/icons.generated/Folder.cjs +1 -1
  151. package/dist/cjs/icons.generated/FullscreenEnter.cjs +1 -1
  152. package/dist/cjs/icons.generated/FullscreenExit.cjs +1 -1
  153. package/dist/cjs/icons.generated/Globe.cjs +1 -1
  154. package/dist/cjs/icons.generated/Grid.cjs +1 -1
  155. package/dist/cjs/icons.generated/Group.cjs +1 -1
  156. package/dist/cjs/icons.generated/Happy.cjs +1 -1
  157. package/dist/cjs/icons.generated/Hide.cjs +1 -1
  158. package/dist/cjs/icons.generated/Home.cjs +1 -1
  159. package/dist/cjs/icons.generated/HomeSelected.cjs +1 -1
  160. package/dist/cjs/icons.generated/IdentityGovernance.cjs +1 -1
  161. package/dist/cjs/icons.generated/IdentityGovernanceSelected.cjs +1 -1
  162. package/dist/cjs/icons.generated/InformationCircle.cjs +1 -1
  163. package/dist/cjs/icons.generated/InformationCircleFilled.cjs +1 -1
  164. package/dist/cjs/icons.generated/Link.cjs +1 -1
  165. package/dist/cjs/icons.generated/List.cjs +1 -1
  166. package/dist/cjs/icons.generated/Lock.cjs +1 -1
  167. package/dist/cjs/icons.generated/Menu.cjs +1 -1
  168. package/dist/cjs/icons.generated/More.cjs +1 -1
  169. package/dist/cjs/icons.generated/Neutral.cjs +1 -1
  170. package/dist/cjs/icons.generated/Notification.cjs +1 -1
  171. package/dist/cjs/icons.generated/Pause.cjs +1 -1
  172. package/dist/cjs/icons.generated/QuestionCircle.cjs +1 -1
  173. package/dist/cjs/icons.generated/QuestionCircleFilled.cjs +1 -1
  174. package/dist/cjs/icons.generated/Refresh.cjs +1 -1
  175. package/dist/cjs/icons.generated/Reports.cjs +1 -1
  176. package/dist/cjs/icons.generated/ReportsSelected.cjs +1 -1
  177. package/dist/cjs/icons.generated/Reset.cjs +1 -1
  178. package/dist/cjs/icons.generated/Resume.cjs +1 -1
  179. package/dist/cjs/icons.generated/Sad.cjs +1 -1
  180. package/dist/cjs/icons.generated/Same.cjs +1 -1
  181. package/dist/cjs/icons.generated/Search.cjs +1 -1
  182. package/dist/cjs/icons.generated/Security.cjs +1 -1
  183. package/dist/cjs/icons.generated/SecuritySelected.cjs +1 -1
  184. package/dist/cjs/icons.generated/Send.cjs +1 -1
  185. package/dist/cjs/icons.generated/Server.cjs +1 -1
  186. package/dist/cjs/icons.generated/Settings.cjs +1 -1
  187. package/dist/cjs/icons.generated/SettingsSelected.cjs +1 -1
  188. package/dist/cjs/icons.generated/Show.cjs +1 -1
  189. package/dist/cjs/icons.generated/Sparkle.cjs +1 -1
  190. package/dist/cjs/icons.generated/Subtract.cjs +1 -1
  191. package/dist/cjs/icons.generated/Sync.cjs +1 -1
  192. package/dist/cjs/icons.generated/ThumbsDown.cjs +1 -1
  193. package/dist/cjs/icons.generated/ThumbsUp.cjs +1 -1
  194. package/dist/cjs/icons.generated/Unlock.cjs +1 -1
  195. package/dist/cjs/icons.generated/Upload.cjs +1 -1
  196. package/dist/cjs/icons.generated/User.cjs +1 -1
  197. package/dist/cjs/icons.generated/Video.cjs +1 -1
  198. package/dist/cjs/icons.generated/Warning.cjs +1 -1
  199. package/dist/cjs/icons.generated/WarningFilled.cjs +1 -1
  200. package/dist/cjs/icons.generated/Workflows.cjs +1 -1
  201. package/dist/cjs/icons.generated/WorkflowsSelected.cjs +1 -1
  202. package/dist/cjs/index.cjs +46 -0
  203. package/dist/cjs/index.cjs.map +1 -1
  204. package/dist/cjs/isDeepEqual.cjs +93 -0
  205. package/dist/cjs/isDeepEqual.cjs.map +1 -0
  206. package/dist/cjs/labs/AppTile.cjs +1 -1
  207. package/dist/cjs/labs/DataFilters.cjs +2 -2
  208. package/dist/cjs/labs/DataTablePagination.cjs +1 -1
  209. package/dist/cjs/labs/DataView/BulkActionsMenu.cjs +1 -1
  210. package/dist/cjs/labs/DataView/CardLayoutContent.cjs +2 -2
  211. package/dist/cjs/labs/DataView/DataCard.cjs +1 -1
  212. package/dist/cjs/labs/DataView/DataTable.cjs +1 -1
  213. package/dist/cjs/labs/DataView/DataView.cjs +6 -3
  214. package/dist/cjs/labs/DataView/DataView.cjs.map +1 -1
  215. package/dist/cjs/labs/DataView/DetailPanel.cjs +1 -1
  216. package/dist/cjs/labs/DataView/LayoutSwitcher.cjs +1 -1
  217. package/dist/cjs/labs/DataView/RowActions.cjs +1 -1
  218. package/dist/cjs/labs/DataView/TableLayoutContent.cjs +1 -1
  219. package/dist/cjs/labs/DataView/TableSettings.cjs +1 -1
  220. package/dist/cjs/labs/DatePickers/DateTimeField.cjs +1 -1
  221. package/dist/cjs/labs/DatePickers/DateTimePicker.cjs +1 -1
  222. package/dist/cjs/labs/GroupPicker.cjs +1 -0
  223. package/dist/cjs/labs/GroupPicker.cjs.map +1 -1
  224. package/dist/cjs/labs/OdysseyPickers/ComposablePicker.cjs +1 -1
  225. package/dist/cjs/labs/OdysseyPickers/Picker.cjs +1 -1
  226. package/dist/cjs/labs/OdysseyPickers/PickerVirtualizationListBox.cjs +1 -1
  227. package/dist/cjs/labs/OdysseyPickers/PickerWithOptionAdornment.cjs +1 -1
  228. package/dist/cjs/labs/OdysseyPickers/SearchDropdown.cjs +1 -1
  229. package/dist/cjs/labs/PageTemplate/DocumentationLink.cjs +1 -1
  230. package/dist/cjs/labs/PageTemplate/Layout.cjs +1 -1
  231. package/dist/cjs/labs/PageTemplate/PageTemplate.cjs +1 -1
  232. package/dist/cjs/labs/PaginatedTable.cjs +1 -1
  233. package/dist/cjs/labs/StaticTable.cjs +1 -1
  234. package/dist/cjs/labs/UserProfile.cjs +1 -1
  235. package/dist/cjs/labs/UserProfileMenuButton.cjs +1 -1
  236. package/dist/cjs/logos.generated/Duo.cjs +1 -1
  237. package/dist/cjs/logos.generated/GoogleAuth.cjs +1 -1
  238. package/dist/cjs/logos.generated/OktaVerify.cjs +1 -1
  239. package/dist/cjs/logos.generated/Persona.cjs +1 -1
  240. package/dist/cjs/logos.generated/SymantecVip.cjs +1 -1
  241. package/dist/cjs/logos.generated/Yubikey.cjs +1 -1
  242. package/dist/cjs/message-bus/messageGuards.cjs +1 -5
  243. package/dist/cjs/message-bus/messageGuards.cjs.map +1 -1
  244. package/dist/cjs/properties/ts/odyssey-react-mui.cjs +2 -0
  245. package/dist/cjs/properties/ts/odyssey-react-mui.cjs.map +1 -1
  246. package/dist/cjs/properties/ts/odyssey-react-mui_cs.cjs +4 -0
  247. package/dist/cjs/properties/ts/odyssey-react-mui_cs.cjs.map +1 -1
  248. package/dist/cjs/properties/ts/odyssey-react-mui_da.cjs +5 -1
  249. package/dist/cjs/properties/ts/odyssey-react-mui_da.cjs.map +1 -1
  250. package/dist/cjs/properties/ts/odyssey-react-mui_de.cjs +6 -2
  251. package/dist/cjs/properties/ts/odyssey-react-mui_de.cjs.map +1 -1
  252. package/dist/cjs/properties/ts/odyssey-react-mui_el.cjs +4 -0
  253. package/dist/cjs/properties/ts/odyssey-react-mui_el.cjs.map +1 -1
  254. package/dist/cjs/properties/ts/odyssey-react-mui_es.cjs +5 -1
  255. package/dist/cjs/properties/ts/odyssey-react-mui_es.cjs.map +1 -1
  256. package/dist/cjs/properties/ts/odyssey-react-mui_eu.cjs +4 -0
  257. package/dist/cjs/properties/ts/odyssey-react-mui_eu.cjs.map +1 -1
  258. package/dist/cjs/properties/ts/odyssey-react-mui_fi.cjs +5 -1
  259. package/dist/cjs/properties/ts/odyssey-react-mui_fi.cjs.map +1 -1
  260. package/dist/cjs/properties/ts/odyssey-react-mui_fr.cjs +5 -1
  261. package/dist/cjs/properties/ts/odyssey-react-mui_fr.cjs.map +1 -1
  262. package/dist/cjs/properties/ts/odyssey-react-mui_ht.cjs +6 -2
  263. package/dist/cjs/properties/ts/odyssey-react-mui_ht.cjs.map +1 -1
  264. package/dist/cjs/properties/ts/odyssey-react-mui_hu.cjs +4 -0
  265. package/dist/cjs/properties/ts/odyssey-react-mui_hu.cjs.map +1 -1
  266. package/dist/cjs/properties/ts/odyssey-react-mui_id.cjs +4 -0
  267. package/dist/cjs/properties/ts/odyssey-react-mui_id.cjs.map +1 -1
  268. package/dist/cjs/properties/ts/odyssey-react-mui_it.cjs +4 -0
  269. package/dist/cjs/properties/ts/odyssey-react-mui_it.cjs.map +1 -1
  270. package/dist/cjs/properties/ts/odyssey-react-mui_ja.cjs +7 -3
  271. package/dist/cjs/properties/ts/odyssey-react-mui_ja.cjs.map +1 -1
  272. package/dist/cjs/properties/ts/odyssey-react-mui_ko.cjs +6 -2
  273. package/dist/cjs/properties/ts/odyssey-react-mui_ko.cjs.map +1 -1
  274. package/dist/cjs/properties/ts/odyssey-react-mui_ms.cjs +6 -2
  275. package/dist/cjs/properties/ts/odyssey-react-mui_ms.cjs.map +1 -1
  276. package/dist/cjs/properties/ts/odyssey-react-mui_nb.cjs +9 -5
  277. package/dist/cjs/properties/ts/odyssey-react-mui_nb.cjs.map +1 -1
  278. package/dist/cjs/properties/ts/odyssey-react-mui_nl_NL.cjs +4 -0
  279. package/dist/cjs/properties/ts/odyssey-react-mui_nl_NL.cjs.map +1 -1
  280. package/dist/cjs/properties/ts/odyssey-react-mui_ok_PL.cjs +2 -0
  281. package/dist/cjs/properties/ts/odyssey-react-mui_ok_PL.cjs.map +1 -1
  282. package/dist/cjs/properties/ts/odyssey-react-mui_ok_SK.cjs +2 -0
  283. package/dist/cjs/properties/ts/odyssey-react-mui_ok_SK.cjs.map +1 -1
  284. package/dist/cjs/properties/ts/odyssey-react-mui_pl.cjs +4 -0
  285. package/dist/cjs/properties/ts/odyssey-react-mui_pl.cjs.map +1 -1
  286. package/dist/cjs/properties/ts/odyssey-react-mui_pt_BR.cjs +4 -0
  287. package/dist/cjs/properties/ts/odyssey-react-mui_pt_BR.cjs.map +1 -1
  288. package/dist/cjs/properties/ts/odyssey-react-mui_ro.cjs +4 -0
  289. package/dist/cjs/properties/ts/odyssey-react-mui_ro.cjs.map +1 -1
  290. package/dist/cjs/properties/ts/odyssey-react-mui_ru.cjs +5 -1
  291. package/dist/cjs/properties/ts/odyssey-react-mui_ru.cjs.map +1 -1
  292. package/dist/cjs/properties/ts/odyssey-react-mui_sv.cjs +10 -6
  293. package/dist/cjs/properties/ts/odyssey-react-mui_sv.cjs.map +1 -1
  294. package/dist/cjs/properties/ts/odyssey-react-mui_th.cjs +4 -0
  295. package/dist/cjs/properties/ts/odyssey-react-mui_th.cjs.map +1 -1
  296. package/dist/cjs/properties/ts/odyssey-react-mui_tr.cjs +4 -0
  297. package/dist/cjs/properties/ts/odyssey-react-mui_tr.cjs.map +1 -1
  298. package/dist/cjs/properties/ts/odyssey-react-mui_uk.cjs +5 -1
  299. package/dist/cjs/properties/ts/odyssey-react-mui_uk.cjs.map +1 -1
  300. package/dist/cjs/properties/ts/odyssey-react-mui_vi.cjs +5 -1
  301. package/dist/cjs/properties/ts/odyssey-react-mui_vi.cjs.map +1 -1
  302. package/dist/cjs/properties/ts/odyssey-react-mui_zh_CN.cjs +5 -1
  303. package/dist/cjs/properties/ts/odyssey-react-mui_zh_CN.cjs.map +1 -1
  304. package/dist/cjs/properties/ts/odyssey-react-mui_zh_TW.cjs +4 -0
  305. package/dist/cjs/properties/ts/odyssey-react-mui_zh_TW.cjs.map +1 -1
  306. package/dist/cjs/remUtils.cjs +1 -3
  307. package/dist/cjs/remUtils.cjs.map +1 -1
  308. package/dist/cjs/resolveColorSchemeDesignTokens.cjs +43 -0
  309. package/dist/cjs/resolveColorSchemeDesignTokens.cjs.map +1 -0
  310. package/dist/cjs/test-selectors/index.cjs.map +1 -1
  311. package/dist/cjs/test-selectors/sanityChecks.cjs +1 -19
  312. package/dist/cjs/test-selectors/sanityChecks.cjs.map +1 -1
  313. package/dist/cjs/theme/components/Backdrop.cjs +2 -1
  314. package/dist/cjs/theme/components/Backdrop.cjs.map +1 -1
  315. package/dist/cjs/theme/components/Button.cjs +7 -6
  316. package/dist/cjs/theme/components/Button.cjs.map +1 -1
  317. package/dist/cjs/theme/components/Checkbox.cjs +1 -1
  318. package/dist/cjs/theme/components/Checkbox.cjs.map +1 -1
  319. package/dist/cjs/theme/components/Chip.cjs +3 -1
  320. package/dist/cjs/theme/components/Chip.cjs.map +1 -1
  321. package/dist/cjs/theme/components/Dialog.cjs +6 -2
  322. package/dist/cjs/theme/components/Dialog.cjs.map +1 -1
  323. package/dist/cjs/theme/components/Paper.cjs +3 -0
  324. package/dist/cjs/theme/components/Paper.cjs.map +1 -1
  325. package/dist/cjs/theme/components/Tabs.cjs +7 -11
  326. package/dist/cjs/theme/components/Tabs.cjs.map +1 -1
  327. package/dist/cjs/theme/components/types.cjs.map +1 -1
  328. package/dist/cjs/theme/createOdysseyMuiTheme.cjs +3 -0
  329. package/dist/cjs/theme/createOdysseyMuiTheme.cjs.map +1 -1
  330. package/dist/cjs/theme/palette.cjs +14 -9
  331. package/dist/cjs/theme/palette.cjs.map +1 -1
  332. package/dist/cjs/ui-shell/AppSwitcher/AppSwitcher.cjs +10 -1
  333. package/dist/cjs/ui-shell/AppSwitcher/AppSwitcher.cjs.map +1 -1
  334. package/dist/cjs/ui-shell/InnerAppContainer.cjs +1 -1
  335. package/dist/cjs/ui-shell/NarrowUiShellContent.cjs +1 -1
  336. package/dist/cjs/ui-shell/SideNav/NavAccordion.cjs +1 -1
  337. package/dist/cjs/ui-shell/SideNav/SideNav.cjs +1 -1
  338. package/dist/cjs/ui-shell/SideNav/SideNavFooterContent.cjs +1 -1
  339. package/dist/cjs/ui-shell/SideNav/SideNavHeader.cjs +1 -1
  340. package/dist/cjs/ui-shell/SideNav/SideNavItemContent.cjs +2 -2
  341. package/dist/cjs/ui-shell/SideNav/SideNavItemLinkContent.cjs +1 -1
  342. package/dist/cjs/ui-shell/SideNav/SideNavSortableList.cjs +1 -1
  343. package/dist/cjs/ui-shell/SideNav/SideNavToggleButton.cjs +3 -3
  344. package/dist/cjs/ui-shell/SideNav/SideNavToggleButton.cjs.map +1 -1
  345. package/dist/cjs/ui-shell/SkipToContent.cjs +1 -1
  346. package/dist/cjs/ui-shell/TopNav/HamburgerMenuIcon.cjs +1 -1
  347. package/dist/cjs/ui-shell/TopNav/TopNav.cjs +1 -1
  348. package/dist/cjs/ui-shell/UiShell.cjs +7 -2
  349. package/dist/cjs/ui-shell/UiShell.cjs.map +1 -1
  350. package/dist/cjs/ui-shell/UiShellLogo.cjs +24 -2
  351. package/dist/cjs/ui-shell/UiShellLogo.cjs.map +1 -1
  352. package/dist/cjs/ui-shell/WideUiShellContent.cjs +1 -1
  353. package/dist/cjs/ui-shell/renderUiShell.cjs +15 -0
  354. package/dist/cjs/ui-shell/renderUiShell.cjs.map +1 -1
  355. package/dist/cjs/useColorScheme.cjs +36 -0
  356. package/dist/cjs/useColorScheme.cjs.map +1 -0
  357. package/dist/cjs/useContrastMode.cjs +5 -4
  358. package/dist/cjs/useContrastMode.cjs.map +1 -1
  359. package/dist/cjs/useStackedBackdropProps.cjs +40 -0
  360. package/dist/cjs/useStackedBackdropProps.cjs.map +1 -0
  361. package/dist/cjs/useThemeCache.cjs +22 -14
  362. package/dist/cjs/useThemeCache.cjs.map +1 -1
  363. package/dist/cjs/web-component/odysseyWebComponentVersion.generated.cjs +1 -1
  364. package/dist/cjs/web-component/odysseyWebComponentVersion.generated.cjs.map +1 -1
  365. package/dist/esm/Accordion.js +1 -1
  366. package/dist/esm/AnimationContext.js +1 -1
  367. package/dist/esm/Autocomplete.js +1 -1
  368. package/dist/esm/Badge.js +1 -1
  369. package/dist/esm/Banner.js +1 -1
  370. package/dist/esm/Box.js +1 -1
  371. package/dist/esm/Breadcrumbs.js +1 -1
  372. package/dist/esm/Buttons/BaseButton.js +4 -2
  373. package/dist/esm/Buttons/BaseButton.js.map +1 -1
  374. package/dist/esm/Buttons/BaseMenuButton.js +1 -1
  375. package/dist/esm/Buttons/Button.js +1 -1
  376. package/dist/esm/Buttons/MenuButton.js +1 -1
  377. package/dist/esm/Buttons/MenuItem.js +1 -1
  378. package/dist/esm/Callout.js +1 -1
  379. package/dist/esm/Card.js +1 -1
  380. package/dist/esm/CircularProgress.js +1 -1
  381. package/dist/esm/ConditionalWrapper.js +1 -1
  382. package/dist/esm/DataTable/DataTable.js +1 -1
  383. package/dist/esm/DataTable/DataTableRowActions.js +1 -1
  384. package/dist/esm/DataTable/DataTableSettings.js +1 -1
  385. package/dist/esm/DatePickers/DateField.js +1 -1
  386. package/dist/esm/DatePickers/DateFieldActionBar.js +1 -1
  387. package/dist/esm/DatePickers/DateFieldLocalizationProvider.js +1 -1
  388. package/dist/esm/DatePickers/DatePicker.js +1 -1
  389. package/dist/esm/DatePickers/TimeZonePicker.js +1 -1
  390. package/dist/esm/Dialog.js +10 -3
  391. package/dist/esm/Dialog.js.map +1 -1
  392. package/dist/esm/Drawer.js +14 -3
  393. package/dist/esm/Drawer.js.map +1 -1
  394. package/dist/esm/EmptyState.js +1 -1
  395. package/dist/esm/ErrorMessageList.js +1 -1
  396. package/dist/esm/Field.js +1 -1
  397. package/dist/esm/FieldError.js +1 -1
  398. package/dist/esm/FieldHint.js +1 -1
  399. package/dist/esm/FieldLabel.js +1 -1
  400. package/dist/esm/Fields/Checkbox.js +1 -1
  401. package/dist/esm/Fields/CheckboxGroup.js +1 -1
  402. package/dist/esm/Fields/Radio.js +1 -1
  403. package/dist/esm/Fields/RadioGroup.js +1 -1
  404. package/dist/esm/Fieldset.js +1 -1
  405. package/dist/esm/FileUploader/FileUploadIllustration.js +1 -1
  406. package/dist/esm/FileUploader/FileUploadPreview.js +1 -1
  407. package/dist/esm/FileUploader/FileUploader.js +1 -1
  408. package/dist/esm/Form.js +1 -1
  409. package/dist/esm/FullScreenOverlay.js +21 -12
  410. package/dist/esm/FullScreenOverlay.js.map +1 -1
  411. package/dist/esm/FullScreenOverlayContext.js +19 -1
  412. package/dist/esm/FullScreenOverlayContext.js.map +1 -1
  413. package/dist/esm/HintLink.js +1 -1
  414. package/dist/esm/IconWithTooltip.js +1 -1
  415. package/dist/esm/Link.js +1 -1
  416. package/dist/esm/MuiPropsChild.js +1 -1
  417. package/dist/esm/NativeSelect.js +1 -1
  418. package/dist/esm/OdysseyCacheProvider.js +12 -3
  419. package/dist/esm/OdysseyCacheProvider.js.map +1 -1
  420. package/dist/esm/OdysseyProvider.js +8 -1
  421. package/dist/esm/OdysseyProvider.js.map +1 -1
  422. package/dist/esm/OdysseyThemeProvider.js +61 -26
  423. package/dist/esm/OdysseyThemeProvider.js.map +1 -1
  424. package/dist/esm/OdysseyThemeProviderPropsContext.js +1 -1
  425. package/dist/esm/OdysseyThemeProviderPropsContext.js.map +1 -1
  426. package/dist/esm/Pagination/Pagination.js +37 -35
  427. package/dist/esm/Pagination/Pagination.js.map +1 -1
  428. package/dist/esm/PasswordField.js +1 -1
  429. package/dist/esm/ScreenReaderText.js +1 -1
  430. package/dist/esm/SearchField.js +1 -1
  431. package/dist/esm/Select.js +1 -1
  432. package/dist/esm/Stack.js +1 -1
  433. package/dist/esm/Status.js +1 -1
  434. package/dist/esm/Surface.js +1 -1
  435. package/dist/esm/Switch.js +3 -3
  436. package/dist/esm/Switch.js.map +1 -1
  437. package/dist/esm/Tabs.js +1 -1
  438. package/dist/esm/Tag.js +31 -23
  439. package/dist/esm/Tag.js.map +1 -1
  440. package/dist/esm/TagList.js +1 -1
  441. package/dist/esm/TextField.js +1 -1
  442. package/dist/esm/Toast.js +1 -1
  443. package/dist/esm/ToastStack.js +1 -2
  444. package/dist/esm/ToastStack.js.map +1 -1
  445. package/dist/esm/Tooltip.js +1 -1
  446. package/dist/esm/Typography.js +12 -12
  447. package/dist/esm/backdropStack.js +68 -0
  448. package/dist/esm/backdropStack.js.map +1 -0
  449. package/dist/esm/charts/BarChart.js +1 -1
  450. package/dist/esm/charts/LineChart.js +1 -1
  451. package/dist/esm/charts/components/ChartError.js +1 -1
  452. package/dist/esm/charts/components/ChartFrame.js +1 -1
  453. package/dist/esm/charts/components/ChartPopoverContent.js +1 -1
  454. package/dist/esm/charts/utils/useStableValue.js +5 -2
  455. package/dist/esm/charts/utils/useStableValue.js.map +1 -1
  456. package/dist/esm/fullscreen/FullscreenButton.js +1 -1
  457. package/dist/esm/fullscreen/FullscreenRegion.js +3 -1
  458. package/dist/esm/fullscreen/FullscreenRegion.js.map +1 -1
  459. package/dist/esm/{getTypedObjectKeys.js → getActionTintChannel.js} +5 -5
  460. package/dist/esm/getActionTintChannel.js.map +1 -0
  461. package/dist/esm/getColorSchemeDesignTokensOverride.js +27 -0
  462. package/dist/esm/getColorSchemeDesignTokensOverride.js.map +1 -0
  463. package/dist/{types/getTypedObjectKeys.d.ts → esm/getDropShadowFilter.js} +6 -4
  464. package/dist/esm/getDropShadowFilter.js.map +1 -0
  465. package/dist/esm/icons.generated/Add.js +1 -1
  466. package/dist/esm/icons.generated/AddCircle.js +1 -1
  467. package/dist/esm/icons.generated/Apps.js +1 -1
  468. package/dist/esm/icons.generated/AppsSelected.js +1 -1
  469. package/dist/esm/icons.generated/ArrowBottom.js +1 -1
  470. package/dist/esm/icons.generated/ArrowDown.js +1 -1
  471. package/dist/esm/icons.generated/ArrowLeft.js +1 -1
  472. package/dist/esm/icons.generated/ArrowLowerLeft.js +1 -1
  473. package/dist/esm/icons.generated/ArrowLowerRight.js +1 -1
  474. package/dist/esm/icons.generated/ArrowRight.js +1 -1
  475. package/dist/esm/icons.generated/ArrowTop.js +1 -1
  476. package/dist/esm/icons.generated/ArrowUnsorted.js +1 -1
  477. package/dist/esm/icons.generated/ArrowUp.js +1 -1
  478. package/dist/esm/icons.generated/ArrowUpperLeft.js +1 -1
  479. package/dist/esm/icons.generated/ArrowUpperRight.js +1 -1
  480. package/dist/esm/icons.generated/Bug.js +1 -1
  481. package/dist/esm/icons.generated/Calendar.js +1 -1
  482. package/dist/esm/icons.generated/Call.js +1 -1
  483. package/dist/esm/icons.generated/Chat.js +1 -1
  484. package/dist/esm/icons.generated/Check.js +1 -1
  485. package/dist/esm/icons.generated/CheckCircleFilled.js +1 -1
  486. package/dist/esm/icons.generated/ChevronDown.js +1 -1
  487. package/dist/esm/icons.generated/ChevronLeft.js +1 -1
  488. package/dist/esm/icons.generated/ChevronRight.js +1 -1
  489. package/dist/esm/icons.generated/ChevronUp.js +1 -1
  490. package/dist/esm/icons.generated/Clock.js +1 -1
  491. package/dist/esm/icons.generated/Close.js +1 -1
  492. package/dist/esm/icons.generated/CloseCircleFilled.js +1 -1
  493. package/dist/esm/icons.generated/CollapseLeft.js +1 -1
  494. package/dist/esm/icons.generated/CollapseRight.js +1 -1
  495. package/dist/esm/icons.generated/Copy.js +1 -1
  496. package/dist/esm/icons.generated/Customizations.js +1 -1
  497. package/dist/esm/icons.generated/CustomizationsSelected.js +1 -1
  498. package/dist/esm/icons.generated/DangerDiamond.js +1 -1
  499. package/dist/esm/icons.generated/DangerDiamondFilled.js +1 -1
  500. package/dist/esm/icons.generated/Delete.js +1 -1
  501. package/dist/esm/icons.generated/Deny.js +1 -1
  502. package/dist/esm/icons.generated/Devices.js +1 -1
  503. package/dist/esm/icons.generated/Directory.js +1 -1
  504. package/dist/esm/icons.generated/DirectorySelected.js +1 -1
  505. package/dist/esm/icons.generated/Documentation.js +1 -1
  506. package/dist/esm/icons.generated/Download.js +1 -1
  507. package/dist/esm/icons.generated/DragIndicator.js +1 -1
  508. package/dist/esm/icons.generated/Edit.js +1 -1
  509. package/dist/esm/icons.generated/ExpandLeft.js +1 -1
  510. package/dist/esm/icons.generated/ExpandRight.js +1 -1
  511. package/dist/esm/icons.generated/ExternalLink.js +1 -1
  512. package/dist/esm/icons.generated/Filter.js +1 -1
  513. package/dist/esm/icons.generated/Folder.js +1 -1
  514. package/dist/esm/icons.generated/FullscreenEnter.js +1 -1
  515. package/dist/esm/icons.generated/FullscreenExit.js +1 -1
  516. package/dist/esm/icons.generated/Globe.js +1 -1
  517. package/dist/esm/icons.generated/Grid.js +1 -1
  518. package/dist/esm/icons.generated/Group.js +1 -1
  519. package/dist/esm/icons.generated/Happy.js +1 -1
  520. package/dist/esm/icons.generated/Hide.js +1 -1
  521. package/dist/esm/icons.generated/Home.js +1 -1
  522. package/dist/esm/icons.generated/HomeSelected.js +1 -1
  523. package/dist/esm/icons.generated/IdentityGovernance.js +1 -1
  524. package/dist/esm/icons.generated/IdentityGovernanceSelected.js +1 -1
  525. package/dist/esm/icons.generated/InformationCircle.js +1 -1
  526. package/dist/esm/icons.generated/InformationCircleFilled.js +1 -1
  527. package/dist/esm/icons.generated/Link.js +1 -1
  528. package/dist/esm/icons.generated/List.js +1 -1
  529. package/dist/esm/icons.generated/Lock.js +1 -1
  530. package/dist/esm/icons.generated/Menu.js +1 -1
  531. package/dist/esm/icons.generated/More.js +1 -1
  532. package/dist/esm/icons.generated/Neutral.js +1 -1
  533. package/dist/esm/icons.generated/Notification.js +1 -1
  534. package/dist/esm/icons.generated/Pause.js +1 -1
  535. package/dist/esm/icons.generated/QuestionCircle.js +1 -1
  536. package/dist/esm/icons.generated/QuestionCircleFilled.js +1 -1
  537. package/dist/esm/icons.generated/Refresh.js +1 -1
  538. package/dist/esm/icons.generated/Reports.js +1 -1
  539. package/dist/esm/icons.generated/ReportsSelected.js +1 -1
  540. package/dist/esm/icons.generated/Reset.js +1 -1
  541. package/dist/esm/icons.generated/Resume.js +1 -1
  542. package/dist/esm/icons.generated/Sad.js +1 -1
  543. package/dist/esm/icons.generated/Same.js +1 -1
  544. package/dist/esm/icons.generated/Search.js +1 -1
  545. package/dist/esm/icons.generated/Security.js +1 -1
  546. package/dist/esm/icons.generated/SecuritySelected.js +1 -1
  547. package/dist/esm/icons.generated/Send.js +1 -1
  548. package/dist/esm/icons.generated/Server.js +1 -1
  549. package/dist/esm/icons.generated/Settings.js +1 -1
  550. package/dist/esm/icons.generated/SettingsSelected.js +1 -1
  551. package/dist/esm/icons.generated/Show.js +1 -1
  552. package/dist/esm/icons.generated/Sparkle.js +1 -1
  553. package/dist/esm/icons.generated/Subtract.js +1 -1
  554. package/dist/esm/icons.generated/Sync.js +1 -1
  555. package/dist/esm/icons.generated/ThumbsDown.js +1 -1
  556. package/dist/esm/icons.generated/ThumbsUp.js +1 -1
  557. package/dist/esm/icons.generated/Unlock.js +1 -1
  558. package/dist/esm/icons.generated/Upload.js +1 -1
  559. package/dist/esm/icons.generated/User.js +1 -1
  560. package/dist/esm/icons.generated/Video.js +1 -1
  561. package/dist/esm/icons.generated/Warning.js +1 -1
  562. package/dist/esm/icons.generated/WarningFilled.js +1 -1
  563. package/dist/esm/icons.generated/Workflows.js +1 -1
  564. package/dist/esm/icons.generated/WorkflowsSelected.js +1 -1
  565. package/dist/esm/index.js +4 -0
  566. package/dist/esm/index.js.map +1 -1
  567. package/dist/esm/isDeepEqual.js +86 -0
  568. package/dist/esm/isDeepEqual.js.map +1 -0
  569. package/dist/esm/labs/AppTile.js +1 -1
  570. package/dist/esm/labs/DataFilters.js +2 -2
  571. package/dist/esm/labs/DataTablePagination.js +1 -1
  572. package/dist/esm/labs/DataView/BulkActionsMenu.js +1 -1
  573. package/dist/esm/labs/DataView/CardLayoutContent.js +2 -2
  574. package/dist/esm/labs/DataView/DataCard.js +1 -1
  575. package/dist/esm/labs/DataView/DataTable.js +1 -1
  576. package/dist/esm/labs/DataView/DataView.js +6 -3
  577. package/dist/esm/labs/DataView/DataView.js.map +1 -1
  578. package/dist/esm/labs/DataView/DetailPanel.js +1 -1
  579. package/dist/esm/labs/DataView/LayoutSwitcher.js +1 -1
  580. package/dist/esm/labs/DataView/RowActions.js +1 -1
  581. package/dist/esm/labs/DataView/TableLayoutContent.js +1 -1
  582. package/dist/esm/labs/DataView/TableSettings.js +1 -1
  583. package/dist/esm/labs/DatePickers/DateTimeField.js +1 -1
  584. package/dist/esm/labs/DatePickers/DateTimePicker.js +1 -1
  585. package/dist/esm/labs/GroupPicker.js +1 -0
  586. package/dist/esm/labs/GroupPicker.js.map +1 -1
  587. package/dist/esm/labs/OdysseyPickers/ComposablePicker.js +1 -1
  588. package/dist/esm/labs/OdysseyPickers/Picker.js +1 -1
  589. package/dist/esm/labs/OdysseyPickers/PickerVirtualizationListBox.js +1 -1
  590. package/dist/esm/labs/OdysseyPickers/PickerWithOptionAdornment.js +1 -1
  591. package/dist/esm/labs/OdysseyPickers/SearchDropdown.js +1 -1
  592. package/dist/esm/labs/PageTemplate/DocumentationLink.js +1 -1
  593. package/dist/esm/labs/PageTemplate/Layout.js +1 -1
  594. package/dist/esm/labs/PageTemplate/PageTemplate.js +1 -1
  595. package/dist/esm/labs/PaginatedTable.js +1 -1
  596. package/dist/esm/labs/StaticTable.js +1 -1
  597. package/dist/esm/labs/UserProfile.js +1 -1
  598. package/dist/esm/labs/UserProfileMenuButton.js +1 -1
  599. package/dist/esm/logos.generated/Duo.js +1 -1
  600. package/dist/esm/logos.generated/GoogleAuth.js +1 -1
  601. package/dist/esm/logos.generated/OktaVerify.js +1 -1
  602. package/dist/esm/logos.generated/Persona.js +1 -1
  603. package/dist/esm/logos.generated/SymantecVip.js +1 -1
  604. package/dist/esm/logos.generated/Yubikey.js +1 -1
  605. package/dist/esm/message-bus/messageGuards.js +0 -2
  606. package/dist/esm/message-bus/messageGuards.js.map +1 -1
  607. package/dist/esm/properties/ts/odyssey-react-mui.js +2 -0
  608. package/dist/esm/properties/ts/odyssey-react-mui.js.map +1 -1
  609. package/dist/esm/properties/ts/odyssey-react-mui_cs.js +4 -0
  610. package/dist/esm/properties/ts/odyssey-react-mui_cs.js.map +1 -1
  611. package/dist/esm/properties/ts/odyssey-react-mui_da.js +5 -1
  612. package/dist/esm/properties/ts/odyssey-react-mui_da.js.map +1 -1
  613. package/dist/esm/properties/ts/odyssey-react-mui_de.js +6 -2
  614. package/dist/esm/properties/ts/odyssey-react-mui_de.js.map +1 -1
  615. package/dist/esm/properties/ts/odyssey-react-mui_el.js +4 -0
  616. package/dist/esm/properties/ts/odyssey-react-mui_el.js.map +1 -1
  617. package/dist/esm/properties/ts/odyssey-react-mui_es.js +5 -1
  618. package/dist/esm/properties/ts/odyssey-react-mui_es.js.map +1 -1
  619. package/dist/esm/properties/ts/odyssey-react-mui_eu.js +4 -0
  620. package/dist/esm/properties/ts/odyssey-react-mui_eu.js.map +1 -1
  621. package/dist/esm/properties/ts/odyssey-react-mui_fi.js +5 -1
  622. package/dist/esm/properties/ts/odyssey-react-mui_fi.js.map +1 -1
  623. package/dist/esm/properties/ts/odyssey-react-mui_fr.js +5 -1
  624. package/dist/esm/properties/ts/odyssey-react-mui_fr.js.map +1 -1
  625. package/dist/esm/properties/ts/odyssey-react-mui_ht.js +6 -2
  626. package/dist/esm/properties/ts/odyssey-react-mui_ht.js.map +1 -1
  627. package/dist/esm/properties/ts/odyssey-react-mui_hu.js +4 -0
  628. package/dist/esm/properties/ts/odyssey-react-mui_hu.js.map +1 -1
  629. package/dist/esm/properties/ts/odyssey-react-mui_id.js +4 -0
  630. package/dist/esm/properties/ts/odyssey-react-mui_id.js.map +1 -1
  631. package/dist/esm/properties/ts/odyssey-react-mui_it.js +4 -0
  632. package/dist/esm/properties/ts/odyssey-react-mui_it.js.map +1 -1
  633. package/dist/esm/properties/ts/odyssey-react-mui_ja.js +7 -3
  634. package/dist/esm/properties/ts/odyssey-react-mui_ja.js.map +1 -1
  635. package/dist/esm/properties/ts/odyssey-react-mui_ko.js +6 -2
  636. package/dist/esm/properties/ts/odyssey-react-mui_ko.js.map +1 -1
  637. package/dist/esm/properties/ts/odyssey-react-mui_ms.js +6 -2
  638. package/dist/esm/properties/ts/odyssey-react-mui_ms.js.map +1 -1
  639. package/dist/esm/properties/ts/odyssey-react-mui_nb.js +9 -5
  640. package/dist/esm/properties/ts/odyssey-react-mui_nb.js.map +1 -1
  641. package/dist/esm/properties/ts/odyssey-react-mui_nl_NL.js +4 -0
  642. package/dist/esm/properties/ts/odyssey-react-mui_nl_NL.js.map +1 -1
  643. package/dist/esm/properties/ts/odyssey-react-mui_ok_PL.js +2 -0
  644. package/dist/esm/properties/ts/odyssey-react-mui_ok_PL.js.map +1 -1
  645. package/dist/esm/properties/ts/odyssey-react-mui_ok_SK.js +2 -0
  646. package/dist/esm/properties/ts/odyssey-react-mui_ok_SK.js.map +1 -1
  647. package/dist/esm/properties/ts/odyssey-react-mui_pl.js +4 -0
  648. package/dist/esm/properties/ts/odyssey-react-mui_pl.js.map +1 -1
  649. package/dist/esm/properties/ts/odyssey-react-mui_pt_BR.js +4 -0
  650. package/dist/esm/properties/ts/odyssey-react-mui_pt_BR.js.map +1 -1
  651. package/dist/esm/properties/ts/odyssey-react-mui_ro.js +4 -0
  652. package/dist/esm/properties/ts/odyssey-react-mui_ro.js.map +1 -1
  653. package/dist/esm/properties/ts/odyssey-react-mui_ru.js +5 -1
  654. package/dist/esm/properties/ts/odyssey-react-mui_ru.js.map +1 -1
  655. package/dist/esm/properties/ts/odyssey-react-mui_sv.js +10 -6
  656. package/dist/esm/properties/ts/odyssey-react-mui_sv.js.map +1 -1
  657. package/dist/esm/properties/ts/odyssey-react-mui_th.js +4 -0
  658. package/dist/esm/properties/ts/odyssey-react-mui_th.js.map +1 -1
  659. package/dist/esm/properties/ts/odyssey-react-mui_tr.js +4 -0
  660. package/dist/esm/properties/ts/odyssey-react-mui_tr.js.map +1 -1
  661. package/dist/esm/properties/ts/odyssey-react-mui_uk.js +5 -1
  662. package/dist/esm/properties/ts/odyssey-react-mui_uk.js.map +1 -1
  663. package/dist/esm/properties/ts/odyssey-react-mui_vi.js +5 -1
  664. package/dist/esm/properties/ts/odyssey-react-mui_vi.js.map +1 -1
  665. package/dist/esm/properties/ts/odyssey-react-mui_zh_CN.js +5 -1
  666. package/dist/esm/properties/ts/odyssey-react-mui_zh_CN.js.map +1 -1
  667. package/dist/esm/properties/ts/odyssey-react-mui_zh_TW.js +4 -0
  668. package/dist/esm/properties/ts/odyssey-react-mui_zh_TW.js.map +1 -1
  669. package/dist/esm/remUtils.js +0 -1
  670. package/dist/esm/remUtils.js.map +1 -1
  671. package/dist/esm/resolveColorSchemeDesignTokens.js +37 -0
  672. package/dist/esm/resolveColorSchemeDesignTokens.js.map +1 -0
  673. package/dist/esm/test-selectors/index.js.map +1 -1
  674. package/dist/esm/test-selectors/sanityChecks.js +0 -15
  675. package/dist/esm/test-selectors/sanityChecks.js.map +1 -1
  676. package/dist/esm/theme/components/Backdrop.js +2 -1
  677. package/dist/esm/theme/components/Backdrop.js.map +1 -1
  678. package/dist/esm/theme/components/Button.js +7 -6
  679. package/dist/esm/theme/components/Button.js.map +1 -1
  680. package/dist/esm/theme/components/Checkbox.js +1 -1
  681. package/dist/esm/theme/components/Checkbox.js.map +1 -1
  682. package/dist/esm/theme/components/Chip.js +3 -1
  683. package/dist/esm/theme/components/Chip.js.map +1 -1
  684. package/dist/esm/theme/components/Dialog.js +6 -2
  685. package/dist/esm/theme/components/Dialog.js.map +1 -1
  686. package/dist/esm/theme/components/Paper.js +3 -0
  687. package/dist/esm/theme/components/Paper.js.map +1 -1
  688. package/dist/esm/theme/components/Tabs.js +7 -11
  689. package/dist/esm/theme/components/Tabs.js.map +1 -1
  690. package/dist/esm/theme/components/types.js.map +1 -1
  691. package/dist/esm/theme/createOdysseyMuiTheme.js +3 -0
  692. package/dist/esm/theme/createOdysseyMuiTheme.js.map +1 -1
  693. package/dist/esm/theme/palette.js +14 -9
  694. package/dist/esm/theme/palette.js.map +1 -1
  695. package/dist/esm/ui-shell/AppSwitcher/AppSwitcher.js +10 -1
  696. package/dist/esm/ui-shell/AppSwitcher/AppSwitcher.js.map +1 -1
  697. package/dist/esm/ui-shell/InnerAppContainer.js +1 -1
  698. package/dist/esm/ui-shell/NarrowUiShellContent.js +1 -1
  699. package/dist/esm/ui-shell/SideNav/NavAccordion.js +1 -1
  700. package/dist/esm/ui-shell/SideNav/SideNav.js +1 -1
  701. package/dist/esm/ui-shell/SideNav/SideNavFooterContent.js +1 -1
  702. package/dist/esm/ui-shell/SideNav/SideNavHeader.js +1 -1
  703. package/dist/esm/ui-shell/SideNav/SideNavItemContent.js +2 -2
  704. package/dist/esm/ui-shell/SideNav/SideNavItemLinkContent.js +1 -1
  705. package/dist/esm/ui-shell/SideNav/SideNavSortableList.js +1 -1
  706. package/dist/esm/ui-shell/SideNav/SideNavToggleButton.js +3 -3
  707. package/dist/esm/ui-shell/SideNav/SideNavToggleButton.js.map +1 -1
  708. package/dist/esm/ui-shell/SkipToContent.js +1 -1
  709. package/dist/esm/ui-shell/TopNav/HamburgerMenuIcon.js +1 -1
  710. package/dist/esm/ui-shell/TopNav/TopNav.js +1 -1
  711. package/dist/esm/ui-shell/UiShell.js +7 -2
  712. package/dist/esm/ui-shell/UiShell.js.map +1 -1
  713. package/dist/esm/ui-shell/UiShellLogo.js +23 -2
  714. package/dist/esm/ui-shell/UiShellLogo.js.map +1 -1
  715. package/dist/esm/ui-shell/WideUiShellContent.js +1 -1
  716. package/dist/esm/ui-shell/renderUiShell.js +15 -0
  717. package/dist/esm/ui-shell/renderUiShell.js.map +1 -1
  718. package/dist/esm/useColorScheme.js +30 -0
  719. package/dist/esm/useColorScheme.js.map +1 -0
  720. package/dist/esm/useContrastMode.js +5 -4
  721. package/dist/esm/useContrastMode.js.map +1 -1
  722. package/dist/esm/useStackedBackdropProps.js +35 -0
  723. package/dist/esm/useStackedBackdropProps.js.map +1 -0
  724. package/dist/esm/useThemeCache.js +22 -14
  725. package/dist/esm/useThemeCache.js.map +1 -1
  726. package/dist/esm/web-component/odysseyWebComponentVersion.generated.js +1 -1
  727. package/dist/esm/web-component/odysseyWebComponentVersion.generated.js.map +1 -1
  728. package/dist/tsconfig.production.tsbuildinfo +1 -1
  729. package/dist/types/Buttons/BaseButton.d.ts +5 -1
  730. package/dist/types/Buttons/BaseButton.d.ts.map +1 -1
  731. package/dist/types/Dialog.d.ts.map +1 -1
  732. package/dist/types/Drawer.d.ts.map +1 -1
  733. package/dist/types/FullScreenOverlay.d.ts +4 -1
  734. package/dist/types/FullScreenOverlay.d.ts.map +1 -1
  735. package/dist/types/FullScreenOverlayContext.d.ts +5 -0
  736. package/dist/types/FullScreenOverlayContext.d.ts.map +1 -1
  737. package/dist/types/OdysseyCacheProvider.d.ts +6 -1
  738. package/dist/types/OdysseyCacheProvider.d.ts.map +1 -1
  739. package/dist/types/OdysseyDesignTokensContext.d.ts +3 -0
  740. package/dist/types/OdysseyDesignTokensContext.d.ts.map +1 -1
  741. package/dist/types/OdysseyProvider.d.ts +2 -2
  742. package/dist/types/OdysseyProvider.d.ts.map +1 -1
  743. package/dist/types/OdysseyThemeProvider.d.ts +9 -1
  744. package/dist/types/OdysseyThemeProvider.d.ts.map +1 -1
  745. package/dist/types/OdysseyThemeProviderPropsContext.d.ts +10 -2
  746. package/dist/types/OdysseyThemeProviderPropsContext.d.ts.map +1 -1
  747. package/dist/types/Pagination/Pagination.d.ts.map +1 -1
  748. package/dist/types/Tag.d.ts.map +1 -1
  749. package/dist/types/backdropStack.d.ts +41 -0
  750. package/dist/types/backdropStack.d.ts.map +1 -0
  751. package/dist/types/charts/utils/useStableValue.d.ts.map +1 -1
  752. package/dist/types/fullscreen/FullscreenRegion.d.ts.map +1 -1
  753. package/dist/types/getActionTintChannel.d.ts +18 -0
  754. package/dist/types/getActionTintChannel.d.ts.map +1 -0
  755. package/dist/types/getColorSchemeDesignTokensOverride.d.ts +46 -0
  756. package/dist/types/getColorSchemeDesignTokensOverride.d.ts.map +1 -0
  757. package/dist/types/getDropShadowFilter.d.ts +17 -0
  758. package/dist/types/getDropShadowFilter.d.ts.map +1 -0
  759. package/dist/types/i18n.generated/i18n.d.ts +4 -0
  760. package/dist/types/i18n.generated/i18n.d.ts.map +1 -1
  761. package/dist/types/i18n.generated/i18n.resources.d.ts +148 -30
  762. package/dist/types/i18n.generated/i18n.resources.d.ts.map +1 -1
  763. package/dist/types/index.d.ts +4 -0
  764. package/dist/types/index.d.ts.map +1 -1
  765. package/dist/types/isDeepEqual.d.ts +22 -0
  766. package/dist/types/isDeepEqual.d.ts.map +1 -0
  767. package/dist/types/labs/DataView/DataView.d.ts.map +1 -1
  768. package/dist/types/labs/GroupPicker.d.ts +2 -1
  769. package/dist/types/labs/GroupPicker.d.ts.map +1 -1
  770. package/dist/types/message-bus/messageGuards.d.ts +0 -8
  771. package/dist/types/message-bus/messageGuards.d.ts.map +1 -1
  772. package/dist/types/properties/ts/odyssey-react-mui.d.ts +2 -0
  773. package/dist/types/properties/ts/odyssey-react-mui.d.ts.map +1 -1
  774. package/dist/types/properties/ts/odyssey-react-mui_cs.d.ts +4 -0
  775. package/dist/types/properties/ts/odyssey-react-mui_cs.d.ts.map +1 -1
  776. package/dist/types/properties/ts/odyssey-react-mui_da.d.ts +5 -1
  777. package/dist/types/properties/ts/odyssey-react-mui_da.d.ts.map +1 -1
  778. package/dist/types/properties/ts/odyssey-react-mui_de.d.ts +6 -2
  779. package/dist/types/properties/ts/odyssey-react-mui_de.d.ts.map +1 -1
  780. package/dist/types/properties/ts/odyssey-react-mui_el.d.ts +4 -0
  781. package/dist/types/properties/ts/odyssey-react-mui_el.d.ts.map +1 -1
  782. package/dist/types/properties/ts/odyssey-react-mui_es.d.ts +5 -1
  783. package/dist/types/properties/ts/odyssey-react-mui_es.d.ts.map +1 -1
  784. package/dist/types/properties/ts/odyssey-react-mui_eu.d.ts +4 -0
  785. package/dist/types/properties/ts/odyssey-react-mui_eu.d.ts.map +1 -1
  786. package/dist/types/properties/ts/odyssey-react-mui_fi.d.ts +5 -1
  787. package/dist/types/properties/ts/odyssey-react-mui_fi.d.ts.map +1 -1
  788. package/dist/types/properties/ts/odyssey-react-mui_fr.d.ts +5 -1
  789. package/dist/types/properties/ts/odyssey-react-mui_fr.d.ts.map +1 -1
  790. package/dist/types/properties/ts/odyssey-react-mui_ht.d.ts +6 -2
  791. package/dist/types/properties/ts/odyssey-react-mui_ht.d.ts.map +1 -1
  792. package/dist/types/properties/ts/odyssey-react-mui_hu.d.ts +4 -0
  793. package/dist/types/properties/ts/odyssey-react-mui_hu.d.ts.map +1 -1
  794. package/dist/types/properties/ts/odyssey-react-mui_id.d.ts +4 -0
  795. package/dist/types/properties/ts/odyssey-react-mui_id.d.ts.map +1 -1
  796. package/dist/types/properties/ts/odyssey-react-mui_it.d.ts +4 -0
  797. package/dist/types/properties/ts/odyssey-react-mui_it.d.ts.map +1 -1
  798. package/dist/types/properties/ts/odyssey-react-mui_ja.d.ts +7 -3
  799. package/dist/types/properties/ts/odyssey-react-mui_ja.d.ts.map +1 -1
  800. package/dist/types/properties/ts/odyssey-react-mui_ko.d.ts +6 -2
  801. package/dist/types/properties/ts/odyssey-react-mui_ko.d.ts.map +1 -1
  802. package/dist/types/properties/ts/odyssey-react-mui_ms.d.ts +6 -2
  803. package/dist/types/properties/ts/odyssey-react-mui_ms.d.ts.map +1 -1
  804. package/dist/types/properties/ts/odyssey-react-mui_nb.d.ts +9 -5
  805. package/dist/types/properties/ts/odyssey-react-mui_nb.d.ts.map +1 -1
  806. package/dist/types/properties/ts/odyssey-react-mui_nl_NL.d.ts +4 -0
  807. package/dist/types/properties/ts/odyssey-react-mui_nl_NL.d.ts.map +1 -1
  808. package/dist/types/properties/ts/odyssey-react-mui_ok_PL.d.ts +2 -0
  809. package/dist/types/properties/ts/odyssey-react-mui_ok_PL.d.ts.map +1 -1
  810. package/dist/types/properties/ts/odyssey-react-mui_ok_SK.d.ts +2 -0
  811. package/dist/types/properties/ts/odyssey-react-mui_ok_SK.d.ts.map +1 -1
  812. package/dist/types/properties/ts/odyssey-react-mui_pl.d.ts +4 -0
  813. package/dist/types/properties/ts/odyssey-react-mui_pl.d.ts.map +1 -1
  814. package/dist/types/properties/ts/odyssey-react-mui_pt_BR.d.ts +4 -0
  815. package/dist/types/properties/ts/odyssey-react-mui_pt_BR.d.ts.map +1 -1
  816. package/dist/types/properties/ts/odyssey-react-mui_ro.d.ts +4 -0
  817. package/dist/types/properties/ts/odyssey-react-mui_ro.d.ts.map +1 -1
  818. package/dist/types/properties/ts/odyssey-react-mui_ru.d.ts +5 -1
  819. package/dist/types/properties/ts/odyssey-react-mui_ru.d.ts.map +1 -1
  820. package/dist/types/properties/ts/odyssey-react-mui_sv.d.ts +10 -6
  821. package/dist/types/properties/ts/odyssey-react-mui_sv.d.ts.map +1 -1
  822. package/dist/types/properties/ts/odyssey-react-mui_th.d.ts +4 -0
  823. package/dist/types/properties/ts/odyssey-react-mui_th.d.ts.map +1 -1
  824. package/dist/types/properties/ts/odyssey-react-mui_tr.d.ts +4 -0
  825. package/dist/types/properties/ts/odyssey-react-mui_tr.d.ts.map +1 -1
  826. package/dist/types/properties/ts/odyssey-react-mui_uk.d.ts +5 -1
  827. package/dist/types/properties/ts/odyssey-react-mui_uk.d.ts.map +1 -1
  828. package/dist/types/properties/ts/odyssey-react-mui_vi.d.ts +5 -1
  829. package/dist/types/properties/ts/odyssey-react-mui_vi.d.ts.map +1 -1
  830. package/dist/types/properties/ts/odyssey-react-mui_zh_CN.d.ts +5 -1
  831. package/dist/types/properties/ts/odyssey-react-mui_zh_CN.d.ts.map +1 -1
  832. package/dist/types/properties/ts/odyssey-react-mui_zh_TW.d.ts +4 -0
  833. package/dist/types/properties/ts/odyssey-react-mui_zh_TW.d.ts.map +1 -1
  834. package/dist/types/remUtils.d.ts +0 -4
  835. package/dist/types/remUtils.d.ts.map +1 -1
  836. package/dist/types/resolveColorSchemeDesignTokens.d.ts +25 -0
  837. package/dist/types/resolveColorSchemeDesignTokens.d.ts.map +1 -0
  838. package/dist/types/test-selectors/index.d.ts +1 -1
  839. package/dist/types/test-selectors/sanityChecks.d.ts +0 -3
  840. package/dist/types/test-selectors/sanityChecks.d.ts.map +1 -1
  841. package/dist/types/theme/components/Backdrop.d.ts.map +1 -1
  842. package/dist/types/theme/components/Button.d.ts +1 -1
  843. package/dist/types/theme/components/Button.d.ts.map +1 -1
  844. package/dist/types/theme/components/Chip.d.ts +1 -1
  845. package/dist/types/theme/components/Chip.d.ts.map +1 -1
  846. package/dist/types/theme/components/Dialog.d.ts.map +1 -1
  847. package/dist/types/theme/components/Paper.d.ts.map +1 -1
  848. package/dist/types/theme/components/Tabs.d.ts +1 -1
  849. package/dist/types/theme/components/Tabs.d.ts.map +1 -1
  850. package/dist/types/theme/components/types.d.ts +5 -0
  851. package/dist/types/theme/components/types.d.ts.map +1 -1
  852. package/dist/types/theme/createOdysseyMuiTheme.d.ts +8 -1
  853. package/dist/types/theme/createOdysseyMuiTheme.d.ts.map +1 -1
  854. package/dist/types/theme/palette.d.ts +3 -1
  855. package/dist/types/theme/palette.d.ts.map +1 -1
  856. package/dist/types/ui-shell/AppSwitcher/AppSwitcher.d.ts.map +1 -1
  857. package/dist/types/ui-shell/UiShell.d.ts +8 -1
  858. package/dist/types/ui-shell/UiShell.d.ts.map +1 -1
  859. package/dist/types/ui-shell/UiShellLogo.d.ts.map +1 -1
  860. package/dist/types/ui-shell/renderUiShell.d.ts +12 -1
  861. package/dist/types/ui-shell/renderUiShell.d.ts.map +1 -1
  862. package/dist/types/useColorScheme.d.ts +41 -0
  863. package/dist/types/useColorScheme.d.ts.map +1 -0
  864. package/dist/types/useContrastMode.d.ts +16 -5
  865. package/dist/types/useContrastMode.d.ts.map +1 -1
  866. package/dist/types/useStackedBackdropProps.d.ts +36 -0
  867. package/dist/types/useStackedBackdropProps.d.ts.map +1 -0
  868. package/dist/types/useThemeCache.d.ts +15 -6
  869. package/dist/types/useThemeCache.d.ts.map +1 -1
  870. package/dist/types/web-component/odysseyWebComponentVersion.generated.d.ts +1 -1
  871. package/package.json +19 -38
  872. package/src/properties/odyssey-react-mui.properties +158 -0
  873. package/src/properties/translations/odyssey-react-mui_cs.properties +156 -0
  874. package/src/properties/translations/odyssey-react-mui_da.properties +156 -0
  875. package/src/properties/translations/odyssey-react-mui_de.properties +156 -0
  876. package/src/properties/translations/odyssey-react-mui_el.properties +156 -0
  877. package/src/properties/translations/odyssey-react-mui_es.properties +156 -0
  878. package/src/properties/translations/odyssey-react-mui_eu.properties +156 -0
  879. package/src/properties/translations/odyssey-react-mui_fi.properties +156 -0
  880. package/src/properties/translations/odyssey-react-mui_fr.properties +156 -0
  881. package/src/properties/translations/odyssey-react-mui_ht.properties +156 -0
  882. package/src/properties/translations/odyssey-react-mui_hu.properties +156 -0
  883. package/src/properties/translations/odyssey-react-mui_id.properties +156 -0
  884. package/src/properties/translations/odyssey-react-mui_it.properties +156 -0
  885. package/src/properties/translations/odyssey-react-mui_ja.properties +156 -0
  886. package/src/properties/translations/odyssey-react-mui_ko.properties +156 -0
  887. package/src/properties/translations/odyssey-react-mui_ms.properties +156 -0
  888. package/src/properties/translations/odyssey-react-mui_nb.properties +156 -0
  889. package/src/properties/translations/odyssey-react-mui_nl_NL.properties +156 -0
  890. package/src/properties/translations/odyssey-react-mui_ok_PL.properties +149 -0
  891. package/src/properties/translations/odyssey-react-mui_ok_SK.properties +149 -0
  892. package/src/properties/translations/odyssey-react-mui_pl.properties +156 -0
  893. package/src/properties/translations/odyssey-react-mui_pt_BR.properties +156 -0
  894. package/src/properties/translations/odyssey-react-mui_ro.properties +156 -0
  895. package/src/properties/translations/odyssey-react-mui_ru.properties +156 -0
  896. package/src/properties/translations/odyssey-react-mui_sv.properties +156 -0
  897. package/src/properties/translations/odyssey-react-mui_th.properties +156 -0
  898. package/src/properties/translations/odyssey-react-mui_tr.properties +156 -0
  899. package/src/properties/translations/odyssey-react-mui_uk.properties +156 -0
  900. package/src/properties/translations/odyssey-react-mui_vi.properties +156 -0
  901. package/src/properties/translations/odyssey-react-mui_zh_CN.properties +156 -0
  902. package/src/properties/translations/odyssey-react-mui_zh_TW.properties +156 -0
  903. package/src/properties/ts/odyssey-react-mui.ts +1 -0
  904. package/src/properties/ts/odyssey-react-mui_cs.ts +1 -0
  905. package/src/properties/ts/odyssey-react-mui_da.ts +1 -0
  906. package/src/properties/ts/odyssey-react-mui_de.ts +1 -0
  907. package/src/properties/ts/odyssey-react-mui_el.ts +1 -0
  908. package/src/properties/ts/odyssey-react-mui_es.ts +1 -0
  909. package/src/properties/ts/odyssey-react-mui_eu.ts +1 -0
  910. package/src/properties/ts/odyssey-react-mui_fi.ts +1 -0
  911. package/src/properties/ts/odyssey-react-mui_fr.ts +1 -0
  912. package/src/properties/ts/odyssey-react-mui_ht.ts +1 -0
  913. package/src/properties/ts/odyssey-react-mui_hu.ts +1 -0
  914. package/src/properties/ts/odyssey-react-mui_id.ts +1 -0
  915. package/src/properties/ts/odyssey-react-mui_it.ts +1 -0
  916. package/src/properties/ts/odyssey-react-mui_ja.ts +1 -0
  917. package/src/properties/ts/odyssey-react-mui_ko.ts +1 -0
  918. package/src/properties/ts/odyssey-react-mui_ms.ts +1 -0
  919. package/src/properties/ts/odyssey-react-mui_nb.ts +1 -0
  920. package/src/properties/ts/odyssey-react-mui_nl_NL.ts +1 -0
  921. package/src/properties/ts/odyssey-react-mui_ok_PL.ts +1 -0
  922. package/src/properties/ts/odyssey-react-mui_ok_SK.ts +1 -0
  923. package/src/properties/ts/odyssey-react-mui_pl.ts +1 -0
  924. package/src/properties/ts/odyssey-react-mui_pt_BR.ts +1 -0
  925. package/src/properties/ts/odyssey-react-mui_ro.ts +1 -0
  926. package/src/properties/ts/odyssey-react-mui_ru.ts +1 -0
  927. package/src/properties/ts/odyssey-react-mui_sv.ts +1 -0
  928. package/src/properties/ts/odyssey-react-mui_th.ts +1 -0
  929. package/src/properties/ts/odyssey-react-mui_tr.ts +1 -0
  930. package/src/properties/ts/odyssey-react-mui_uk.ts +1 -0
  931. package/src/properties/ts/odyssey-react-mui_vi.ts +1 -0
  932. package/src/properties/ts/odyssey-react-mui_zh_CN.ts +1 -0
  933. package/src/properties/ts/odyssey-react-mui_zh_TW.ts +1 -0
  934. package/dist/cjs/getTypedObjectKeys.cjs.map +0 -1
  935. package/dist/cjs/labs/DataTable.cjs +0 -485
  936. package/dist/cjs/labs/DataTable.cjs.map +0 -1
  937. package/dist/cjs/test-utils/getControlledElement.cjs +0 -48
  938. package/dist/cjs/test-utils/getControlledElement.cjs.map +0 -1
  939. package/dist/cjs/test-utils/renderWithOdysseyProvider.cjs +0 -47
  940. package/dist/cjs/test-utils/renderWithOdysseyProvider.cjs.map +0 -1
  941. package/dist/cjs/ui-shell/TopNav/TopNavLinksList.cjs +0 -43
  942. package/dist/cjs/ui-shell/TopNav/TopNavLinksList.cjs.map +0 -1
  943. package/dist/cjs/ui-shell/TopNav/TopNavListItem.cjs +0 -137
  944. package/dist/cjs/ui-shell/TopNav/TopNavListItem.cjs.map +0 -1
  945. package/dist/esm/getTypedObjectKeys.js.map +0 -1
  946. package/dist/esm/labs/DataTable.js +0 -478
  947. package/dist/esm/labs/DataTable.js.map +0 -1
  948. package/dist/esm/test-utils/getControlledElement.js +0 -41
  949. package/dist/esm/test-utils/getControlledElement.js.map +0 -1
  950. package/dist/esm/test-utils/renderWithOdysseyProvider.js +0 -42
  951. package/dist/esm/test-utils/renderWithOdysseyProvider.js.map +0 -1
  952. package/dist/esm/ui-shell/TopNav/TopNavLinksList.js +0 -37
  953. package/dist/esm/ui-shell/TopNav/TopNavLinksList.js.map +0 -1
  954. package/dist/esm/ui-shell/TopNav/TopNavListItem.js +0 -131
  955. package/dist/esm/ui-shell/TopNav/TopNavListItem.js.map +0 -1
  956. package/dist/types/getTypedObjectKeys.d.ts.map +0 -1
  957. package/dist/types/labs/DataTable.d.ts +0 -186
  958. package/dist/types/labs/DataTable.d.ts.map +0 -1
  959. package/dist/types/test-utils/getControlledElement.d.ts +0 -26
  960. package/dist/types/test-utils/getControlledElement.d.ts.map +0 -1
  961. package/dist/types/test-utils/renderWithOdysseyProvider.d.ts +0 -37
  962. package/dist/types/test-utils/renderWithOdysseyProvider.d.ts.map +0 -1
  963. package/dist/types/ui-shell/TopNav/TopNavLinksList.d.ts +0 -44
  964. package/dist/types/ui-shell/TopNav/TopNavLinksList.d.ts.map +0 -1
  965. package/dist/types/ui-shell/TopNav/TopNavListItem.d.ts +0 -41
  966. package/dist/types/ui-shell/TopNav/TopNavListItem.d.ts.map +0 -1
@@ -1 +1 @@
1
- {"version":3,"file":"Drawer.cjs","names":["_styled","_interopRequireDefault","require","_Button","_Typography","_react","_Button2","_FullScreenOverlay","_i18n","_index","_OdysseyDesignTokensContext","_Typography2","_jsxRuntime","e","__esModule","default","variantValues","exports","DrawerHeader","styled","shouldForwardProp","prop","odysseyDesignTokens","Spacing4","Spacing5","HueNeutral900","HueNeutralWhite","hasDividers","HueNeutral200","typographyClasses","root","buttonClasses","DrawerContentWrapper","display","gridTemplateAreas","gridTemplateRows","overflow","DrawerContent","DrawerFooter","Spacing2","Drawer","ariaLabel","children","hasDividersProp","isOpen","onClose","primaryCallToActionComponent","secondaryCallToActionComponent","showDividers","tertiaryCallToActionComponent","testId","title","translate","variant","isContentScrollable","setIsContentScrollable","useState","drawerContentRef","useRef","useOdysseyDesignTokens","i18n","t","useTranslation","anchorDirection","dir","useEffect","frameId","handleContentScroll","drawerContentElement","current","cancelAnimationFrame","scrollHeight","clientHeight","requestAnimationFrame","dividersVisible","useMemo","hasFooter","handleCloseButtonClick","useCallback","event","muiDrawerComponent","jsx","_Drawer2","anchor","open","sx","transition","jsxs","Heading5","Button","onClick","size","startIcon","CloseIcon","tabIndex","ref","FullScreenOverlay","overlayType","MemoizedDrawer","memo","displayName"],"sources":["../../src/Drawer.tsx"],"sourcesContent":["/*!\n * Copyright (c) 2024-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 styled from \"@emotion/styled\";\nimport {\n Drawer as MuiDrawer,\n DrawerProps as MuiDrawerProps,\n} from \"@mui/material\";\nimport { buttonClasses } from \"@mui/material/Button\";\nimport { typographyClasses } from \"@mui/material/Typography\";\nimport {\n memo,\n ReactElement,\n ReactNode,\n useCallback,\n useEffect,\n useMemo,\n useRef,\n useState,\n} from \"react\";\n\nimport type { HtmlProps } from \"./HtmlProps.js\";\n\nimport { Button, ButtonProps } from \"./Buttons/Button.js\";\nimport { FullScreenOverlay } from \"./FullScreenOverlay.js\";\nimport { useTranslation } from \"./i18n.generated/i18n.js\";\nimport { CloseIcon } from \"./icons.generated/index.js\";\nimport {\n DesignTokens,\n useOdysseyDesignTokens,\n} from \"./OdysseyDesignTokensContext.js\";\nimport { Heading5 } from \"./Typography.js\";\n\ntype MuiOnCloseEvent = Parameters<Required<MuiDrawerProps>[\"onClose\"]>[0];\ntype MuiOnCloseReason = Parameters<Required<MuiDrawerProps>[\"onClose\"]>[1];\nexport type DrawerOnCloseReason = MuiOnCloseReason | \"closeButtonClick\";\n\nexport const variantValues = [\"temporary\", \"persistent\"] as const;\n\nexport type DrawerProps = {\n /**\n * The content of the Drawer. May be a `string` or any other `ReactNode` or array of `ReactNode`s.\n */\n children?: ReactNode;\n /**\n * If `true`, the drawer is visible.\n */\n isOpen?: boolean;\n /**\n * Called when the drawer is dismissed. Receives the event and the reason for closing.\n */\n onClose: (event: MuiOnCloseEvent, reason: DrawerOnCloseReason) => void;\n /**\n * An optional Button object to be situated in the Drawer footer. Should almost always be of variant `primary`.\n */\n primaryCallToActionComponent?: ReactElement<typeof Button>;\n /**\n * An optional Button object to be situated in the Drawer footer, alongside the `callToActionPrimaryComponent`.\n */\n secondaryCallToActionComponent?: ReactElement<typeof Button>;\n /**\n * An optional Button object to be situated in the Drawer footer, alongside the other two `callToAction` components.\n */\n tertiaryCallToActionComponent?: ReactElement<typeof Button>;\n /**\n * Heading text displayed at the top of the drawer.\n */\n title?: string;\n /**\n * Controls how the Drawer positions relative to page content.\n * - If `'temporary'`, overlays content and dismisses when the user clicks the backdrop.\n * - If `'persistent'`, pushes the page layout to the side and stays open until explicitly closed.\n *\n * A `'temporary'` Drawer spans the full viewport width at 400 pixels and below. A `'persistent'` Drawer keeps its width of about 360 pixels at every viewport size.\n * @default \"temporary\"\n */\n variant?: (typeof variantValues)[number];\n} & Pick<HtmlProps, \"ariaLabel\" | \"testId\" | \"translate\"> &\n (\n | {\n /**\n * If `true`, renders divider lines separating the header, content, and footer sections.\n * @default false\n */\n hasDividers?: never;\n /**\n * @deprecated use `hasDividers` instead.\n *\n * If `true`, shows divider lines separating header, content, and footer. Use `hasDividers` instead.\n * @default false\n */\n showDividers: boolean;\n }\n | {\n /**\n * If `true`, renders divider lines separating the header, content, and footer sections.\n * @default false\n */\n hasDividers: boolean;\n /**\n * @deprecated use `hasDividers` instead.\n *\n * If `true`, shows divider lines separating header, content, and footer. Use `hasDividers` instead.\n * @default false\n */\n showDividers?: never;\n }\n );\n\ntype DrawerStyleProps = {\n hasDividers: boolean;\n odysseyDesignTokens: DesignTokens;\n};\n\nconst DrawerHeader = styled(\"div\", {\n shouldForwardProp: (prop) =>\n prop !== \"odysseyDesignTokens\" && prop !== \"hasDividers\",\n})<DrawerStyleProps>`\n grid-area: header;\n position: sticky;\n top: 0;\n display: flex;\n justify-content: space-between;\n align-items: center;\n margin: 0;\n padding: ${({ odysseyDesignTokens }) => odysseyDesignTokens.Spacing4}\n ${({ odysseyDesignTokens }) => odysseyDesignTokens.Spacing5};\n color: ${({ odysseyDesignTokens }) => odysseyDesignTokens.HueNeutral900};\n background-color: ${({ odysseyDesignTokens }) =>\n odysseyDesignTokens.HueNeutralWhite};\n border-bottom: ${({ hasDividers, odysseyDesignTokens }) =>\n hasDividers ? `1px solid ${odysseyDesignTokens.HueNeutral200}` : \"none\"};\n /* Target the MUI classes, not the tag. Odyssey Typography and Button accept\n no className, so these styles cannot move onto the components themselves,\n and a tag selector stops applying after a change of heading level. */\n & > .${typographyClasses.root} {\n margin-bottom: 0;\n min-width: 0;\n }\n & > .${buttonClasses.root} {\n flex-shrink: 0;\n }\n`;\n\nconst DrawerContentWrapper = styled(\"div\", {\n shouldForwardProp: (prop) => prop !== \"odysseyDesignTokens\",\n})<{\n odysseyDesignTokens: DesignTokens;\n}>({\n display: \"grid\",\n gridTemplateAreas: `\n \"header\"\n \"content\"\n \"footer\"\n `,\n gridTemplateRows: \"auto 1fr auto\",\n overflow: \"hidden\",\n});\n\nconst DrawerContent = styled(\"div\", {\n shouldForwardProp: (prop) =>\n prop !== \"odysseyDesignTokens\" && prop !== \"hasDividers\",\n})<DrawerStyleProps>`\n grid-area: content;\n overflow-y: auto;\n padding: ${({ hasDividers, odysseyDesignTokens }) =>\n hasDividers\n ? `${odysseyDesignTokens.Spacing5}`\n : `0 ${odysseyDesignTokens.Spacing5}`};\n`;\n\nconst DrawerFooter = styled(\"div\", {\n shouldForwardProp: (prop) =>\n prop !== \"odysseyDesignTokens\" && prop !== \"hasDividers\",\n})<DrawerStyleProps>`\n grid-area: footer;\n position: sticky;\n bottom: 0;\n display: flex;\n flex-wrap: wrap;\n justify-content: flex-end;\n align-items: center;\n align-content: center;\n row-gap: ${({ odysseyDesignTokens }) => odysseyDesignTokens.Spacing2};\n padding: ${({ odysseyDesignTokens }) => odysseyDesignTokens.Spacing4};\n border-top: ${({ hasDividers, odysseyDesignTokens }) =>\n hasDividers ? `1px solid ${odysseyDesignTokens.HueNeutral200}` : \"none\"};\n background-color: ${({ odysseyDesignTokens }) =>\n odysseyDesignTokens.HueNeutralWhite};\n`;\n\n/**\n * A panel that slides in from the edge of the screen to display supplementary content or actions without navigating away from the current page.\n */\nconst Drawer = ({\n ariaLabel,\n children,\n hasDividers: hasDividersProp = false,\n isOpen,\n onClose,\n primaryCallToActionComponent,\n secondaryCallToActionComponent,\n showDividers = false,\n tertiaryCallToActionComponent,\n testId,\n title,\n translate,\n variant = \"temporary\",\n}: DrawerProps) => {\n const [isContentScrollable, setIsContentScrollable] = useState(false);\n const drawerContentRef = useRef<HTMLDivElement>(null);\n const odysseyDesignTokens = useOdysseyDesignTokens();\n\n const hasDividers = hasDividersProp || showDividers;\n\n //If RTL is set in the theme, align the drawer on the left side of the screen, uses right by default.\n const { i18n, t } = useTranslation();\n const anchorDirection = i18n.dir() === \"rtl\" ? \"left\" : \"right\";\n\n useEffect(() => {\n let frameId: number;\n\n const handleContentScroll = () => {\n const drawerContentElement = drawerContentRef.current;\n if (drawerContentElement) {\n cancelAnimationFrame(frameId);\n setIsContentScrollable(\n drawerContentElement.scrollHeight > drawerContentElement.clientHeight,\n );\n }\n frameId = requestAnimationFrame(handleContentScroll);\n };\n\n if (isOpen) {\n frameId = requestAnimationFrame(handleContentScroll);\n }\n\n return () => {\n cancelAnimationFrame(frameId);\n };\n }, [isOpen]);\n\n const dividersVisible = useMemo(() => {\n return hasDividers || isContentScrollable;\n }, [hasDividers, isContentScrollable]);\n\n const hasFooter = useMemo(\n () =>\n primaryCallToActionComponent ||\n secondaryCallToActionComponent ||\n tertiaryCallToActionComponent,\n [\n primaryCallToActionComponent,\n secondaryCallToActionComponent,\n tertiaryCallToActionComponent,\n ],\n );\n\n const handleCloseButtonClick = useCallback<\n NonNullable<ButtonProps[\"onClick\"]>\n >((event) => onClose(event, \"closeButtonClick\"), [onClose]);\n\n const muiDrawerComponent = useMemo(\n () => (\n <MuiDrawer\n anchor={anchorDirection}\n data-se={testId}\n onClose={onClose}\n open={isOpen}\n sx={{\n //Overrides default MUI inline style\n ...(variant === \"persistent\" && {\n \"& .MuiDrawer-paper\": {\n transition: \"none\",\n },\n }),\n }}\n variant={variant}\n >\n <DrawerContentWrapper odysseyDesignTokens={odysseyDesignTokens}>\n <DrawerHeader\n hasDividers={dividersVisible}\n odysseyDesignTokens={odysseyDesignTokens}\n translate={translate}\n >\n <Heading5>{title}</Heading5>\n <Button\n ariaLabel={ariaLabel || t(\"close.text\")}\n onClick={handleCloseButtonClick}\n size=\"small\"\n startIcon={<CloseIcon />}\n variant=\"floating\"\n />\n </DrawerHeader>\n <DrawerContent\n {...(isContentScrollable && {\n //Sets tabIndex on content element if scrollable so content is easier to navigate with the keyboard\n tabIndex: 0,\n })}\n hasDividers={dividersVisible}\n odysseyDesignTokens={odysseyDesignTokens}\n ref={drawerContentRef}\n >\n {children}\n </DrawerContent>\n {hasFooter && (\n <DrawerFooter\n hasDividers={dividersVisible}\n odysseyDesignTokens={odysseyDesignTokens}\n >\n {tertiaryCallToActionComponent}\n {secondaryCallToActionComponent}\n {primaryCallToActionComponent}\n </DrawerFooter>\n )}\n </DrawerContentWrapper>\n </MuiDrawer>\n ),\n [\n anchorDirection,\n ariaLabel,\n children,\n dividersVisible,\n handleCloseButtonClick,\n hasFooter,\n isContentScrollable,\n isOpen,\n odysseyDesignTokens,\n onClose,\n primaryCallToActionComponent,\n secondaryCallToActionComponent,\n t,\n tertiaryCallToActionComponent,\n testId,\n title,\n translate,\n variant,\n ],\n );\n\n return variant === \"temporary\" ? (\n <FullScreenOverlay overlayType=\"drawer\">\n {muiDrawerComponent}\n </FullScreenOverlay>\n ) : (\n muiDrawerComponent\n );\n};\n\nconst MemoizedDrawer = memo(Drawer);\nMemoizedDrawer.displayName = \"Drawer\";\n\nexport { MemoizedDrawer as Drawer };\n"],"mappings":";;;;;;;AAYA,IAAAA,OAAA,GAAAC,sBAAA,CAAAC,OAAA;AA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WAAW,wCAAW","ignoreList":[]}
1
+ {"version":3,"file":"Drawer.cjs","names":["_styled","_interopRequireDefault","require","_Button","_styles","_Typography","_react","_Button2","_FullScreenOverlay","_i18n","_index","_OdysseyDesignTokensContext","_Typography2","_useStackedBackdropProps","_jsxRuntime","e","__esModule","default","variantValues","exports","DrawerHeader","styled","shouldForwardProp","prop","odysseyDesignTokens","Spacing4","Spacing5","HueNeutral900","HueNeutralWhite","hasDividers","HueNeutral200","typographyClasses","root","buttonClasses","DrawerContentWrapper","display","gridTemplateAreas","gridTemplateRows","overflow","DrawerContent","DrawerFooter","Spacing2","Drawer","ariaLabel","children","hasDividersProp","isOpen","onClose","primaryCallToActionComponent","secondaryCallToActionComponent","showDividers","tertiaryCallToActionComponent","testId","title","translate","variant","isContentScrollable","setIsContentScrollable","useState","drawerContentRef","useRef","useOdysseyDesignTokens","i18n","t","useTranslation","anchorDirection","dir","useEffect","frameId","handleContentScroll","drawerContentElement","current","cancelAnimationFrame","scrollHeight","clientHeight","requestAnimationFrame","dividersVisible","useMemo","hasFooter","handleCloseButtonClick","useCallback","event","muiTheme","useTheme","stackedBackdropProps","useStackedBackdropProps","Boolean","layer","zIndex","drawer","slotProps","backdrop","muiDrawerComponent","jsx","_Drawer2","anchor","open","sx","transition","jsxs","Heading5","overflowWrap","Button","onClick","size","startIcon","CloseIcon","tabIndex","ref","FullScreenOverlay","MemoizedDrawer","memo","displayName"],"sources":["../../src/Drawer.tsx"],"sourcesContent":["/*!\n * Copyright (c) 2024-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 styled from \"@emotion/styled\";\nimport {\n Drawer as MuiDrawer,\n DrawerProps as MuiDrawerProps,\n} from \"@mui/material\";\nimport { buttonClasses } from \"@mui/material/Button\";\nimport { useTheme } from \"@mui/material/styles\";\nimport { typographyClasses } from \"@mui/material/Typography\";\nimport {\n memo,\n ReactElement,\n ReactNode,\n useCallback,\n useEffect,\n useMemo,\n useRef,\n useState,\n} from \"react\";\n\nimport type { HtmlProps } from \"./HtmlProps.js\";\n\nimport { Button, ButtonProps } from \"./Buttons/Button.js\";\nimport { FullScreenOverlay } from \"./FullScreenOverlay.js\";\nimport { useTranslation } from \"./i18n.generated/i18n.js\";\nimport { CloseIcon } from \"./icons.generated/index.js\";\nimport {\n DesignTokens,\n useOdysseyDesignTokens,\n} from \"./OdysseyDesignTokensContext.js\";\nimport { Heading5 } from \"./Typography.js\";\nimport { useStackedBackdropProps } from \"./useStackedBackdropProps.js\";\n\ntype MuiOnCloseEvent = Parameters<Required<MuiDrawerProps>[\"onClose\"]>[0];\ntype MuiOnCloseReason = Parameters<Required<MuiDrawerProps>[\"onClose\"]>[1];\nexport type DrawerOnCloseReason = MuiOnCloseReason | \"closeButtonClick\";\n\nexport const variantValues = [\"temporary\", \"persistent\"] as const;\n\nexport type DrawerProps = {\n /**\n * The content of the Drawer. May be a `string` or any other `ReactNode` or array of `ReactNode`s.\n */\n children?: ReactNode;\n /**\n * If `true`, the drawer is visible.\n */\n isOpen?: boolean;\n /**\n * Called when the drawer is dismissed. Receives the event and the reason for closing.\n */\n onClose: (event: MuiOnCloseEvent, reason: DrawerOnCloseReason) => void;\n /**\n * An optional Button object to be situated in the Drawer footer. Should almost always be of variant `primary`.\n */\n primaryCallToActionComponent?: ReactElement<typeof Button>;\n /**\n * An optional Button object to be situated in the Drawer footer, alongside the `callToActionPrimaryComponent`.\n */\n secondaryCallToActionComponent?: ReactElement<typeof Button>;\n /**\n * An optional Button object to be situated in the Drawer footer, alongside the other two `callToAction` components.\n */\n tertiaryCallToActionComponent?: ReactElement<typeof Button>;\n /**\n * Heading text displayed at the top of the drawer.\n */\n title?: string;\n /**\n * Controls how the Drawer positions relative to page content.\n * - If `'temporary'`, overlays content and dismisses when the user clicks the backdrop.\n * - If `'persistent'`, pushes the page layout to the side and stays open until explicitly closed.\n *\n * A `'temporary'` Drawer spans the full viewport width at 400 pixels and below. A `'persistent'` Drawer keeps its width of about 360 pixels at every viewport size.\n * @default \"temporary\"\n */\n variant?: (typeof variantValues)[number];\n} & Pick<HtmlProps, \"ariaLabel\" | \"testId\" | \"translate\"> &\n (\n | {\n /**\n * If `true`, renders divider lines separating the header, content, and footer sections.\n * @default false\n */\n hasDividers?: never;\n /**\n * @deprecated use `hasDividers` instead.\n *\n * If `true`, shows divider lines separating header, content, and footer. Use `hasDividers` instead.\n * @default false\n */\n showDividers: boolean;\n }\n | {\n /**\n * If `true`, renders divider lines separating the header, content, and footer sections.\n * @default false\n */\n hasDividers: boolean;\n /**\n * @deprecated use `hasDividers` instead.\n *\n * If `true`, shows divider lines separating header, content, and footer. Use `hasDividers` instead.\n * @default false\n */\n showDividers?: never;\n }\n );\n\ntype DrawerStyleProps = {\n hasDividers: boolean;\n odysseyDesignTokens: DesignTokens;\n};\n\nconst DrawerHeader = styled(\"div\", {\n shouldForwardProp: (prop) =>\n prop !== \"odysseyDesignTokens\" && prop !== \"hasDividers\",\n})<DrawerStyleProps>`\n grid-area: header;\n position: sticky;\n top: 0;\n display: flex;\n justify-content: space-between;\n align-items: center;\n margin: 0;\n padding: ${({ odysseyDesignTokens }) => odysseyDesignTokens.Spacing4}\n ${({ odysseyDesignTokens }) => odysseyDesignTokens.Spacing5};\n color: ${({ odysseyDesignTokens }) => odysseyDesignTokens.HueNeutral900};\n background-color: ${({ odysseyDesignTokens }) =>\n odysseyDesignTokens.HueNeutralWhite};\n border-bottom: ${({ hasDividers, odysseyDesignTokens }) =>\n hasDividers ? `1px solid ${odysseyDesignTokens.HueNeutral200}` : \"none\"};\n /* Target the MUI classes, not the tag. Odyssey Typography and Button accept\n no className, so these styles cannot move onto the components themselves,\n and a tag selector stops applying after a change of heading level. */\n & > .${typographyClasses.root} {\n margin-bottom: 0;\n min-width: 0;\n }\n & > .${buttonClasses.root} {\n flex-shrink: 0;\n }\n`;\n\nconst DrawerContentWrapper = styled(\"div\", {\n shouldForwardProp: (prop) => prop !== \"odysseyDesignTokens\",\n})<{\n odysseyDesignTokens: DesignTokens;\n}>({\n display: \"grid\",\n gridTemplateAreas: `\n \"header\"\n \"content\"\n \"footer\"\n `,\n gridTemplateRows: \"auto 1fr auto\",\n overflow: \"hidden\",\n});\n\nconst DrawerContent = styled(\"div\", {\n shouldForwardProp: (prop) =>\n prop !== \"odysseyDesignTokens\" && prop !== \"hasDividers\",\n})<DrawerStyleProps>`\n grid-area: content;\n overflow-y: auto;\n padding: ${({ hasDividers, odysseyDesignTokens }) =>\n hasDividers\n ? `${odysseyDesignTokens.Spacing5}`\n : `0 ${odysseyDesignTokens.Spacing5}`};\n`;\n\nconst DrawerFooter = styled(\"div\", {\n shouldForwardProp: (prop) =>\n prop !== \"odysseyDesignTokens\" && prop !== \"hasDividers\",\n})<DrawerStyleProps>`\n grid-area: footer;\n position: sticky;\n bottom: 0;\n display: flex;\n flex-wrap: wrap;\n justify-content: flex-end;\n align-items: center;\n align-content: center;\n row-gap: ${({ odysseyDesignTokens }) => odysseyDesignTokens.Spacing2};\n padding: ${({ odysseyDesignTokens }) => odysseyDesignTokens.Spacing4};\n border-top: ${({ hasDividers, odysseyDesignTokens }) =>\n hasDividers ? `1px solid ${odysseyDesignTokens.HueNeutral200}` : \"none\"};\n background-color: ${({ odysseyDesignTokens }) =>\n odysseyDesignTokens.HueNeutralWhite};\n`;\n\n/**\n * A panel that slides in from the edge of the screen to display supplementary content or actions without navigating away from the current page.\n */\nconst Drawer = ({\n ariaLabel,\n children,\n hasDividers: hasDividersProp = false,\n isOpen,\n onClose,\n primaryCallToActionComponent,\n secondaryCallToActionComponent,\n showDividers = false,\n tertiaryCallToActionComponent,\n testId,\n title,\n translate,\n variant = \"temporary\",\n}: DrawerProps) => {\n const [isContentScrollable, setIsContentScrollable] = useState(false);\n const drawerContentRef = useRef<HTMLDivElement>(null);\n const odysseyDesignTokens = useOdysseyDesignTokens();\n\n const hasDividers = hasDividersProp || showDividers;\n\n //If RTL is set in the theme, align the drawer on the left side of the screen, uses right by default.\n const { i18n, t } = useTranslation();\n const anchorDirection = i18n.dir() === \"rtl\" ? \"left\" : \"right\";\n\n useEffect(() => {\n let frameId: number;\n\n const handleContentScroll = () => {\n const drawerContentElement = drawerContentRef.current;\n if (drawerContentElement) {\n cancelAnimationFrame(frameId);\n setIsContentScrollable(\n drawerContentElement.scrollHeight > drawerContentElement.clientHeight,\n );\n }\n frameId = requestAnimationFrame(handleContentScroll);\n };\n\n if (isOpen) {\n frameId = requestAnimationFrame(handleContentScroll);\n }\n\n return () => {\n cancelAnimationFrame(frameId);\n };\n }, [isOpen]);\n\n const dividersVisible = useMemo(() => {\n return hasDividers || isContentScrollable;\n }, [hasDividers, isContentScrollable]);\n\n const hasFooter = useMemo(\n () =>\n primaryCallToActionComponent ||\n secondaryCallToActionComponent ||\n tertiaryCallToActionComponent,\n [\n primaryCallToActionComponent,\n secondaryCallToActionComponent,\n tertiaryCallToActionComponent,\n ],\n );\n\n const handleCloseButtonClick = useCallback<\n NonNullable<ButtonProps[\"onClick\"]>\n >((event) => onClose(event, \"closeButtonClick\"), [onClose]);\n\n const muiTheme = useTheme();\n\n const stackedBackdropProps = useStackedBackdropProps({\n isOpen: Boolean(isOpen) && variant === \"temporary\",\n layer: muiTheme.zIndex.drawer,\n });\n\n const slotProps = useMemo<MuiDrawerProps[\"slotProps\"]>(\n () => ({ backdrop: stackedBackdropProps }),\n [stackedBackdropProps],\n );\n\n const muiDrawerComponent = useMemo(\n () => (\n <MuiDrawer\n anchor={anchorDirection}\n data-se={testId}\n onClose={onClose}\n open={isOpen}\n slotProps={slotProps}\n sx={{\n //Overrides default MUI inline style\n ...(variant === \"persistent\" && {\n \"& .MuiDrawer-paper\": {\n transition: \"none\",\n },\n }),\n }}\n variant={variant}\n >\n <DrawerContentWrapper odysseyDesignTokens={odysseyDesignTokens}>\n <DrawerHeader\n hasDividers={dividersVisible}\n odysseyDesignTokens={odysseyDesignTokens}\n translate={translate}\n >\n <Heading5 overflowWrap=\"anywhere\">{title}</Heading5>\n <Button\n ariaLabel={ariaLabel || t(\"close.text\")}\n onClick={handleCloseButtonClick}\n size=\"small\"\n startIcon={<CloseIcon />}\n variant=\"floating\"\n />\n </DrawerHeader>\n <DrawerContent\n {...(isContentScrollable && {\n //Sets tabIndex on content element if scrollable so content is easier to navigate with the keyboard\n tabIndex: 0,\n })}\n hasDividers={dividersVisible}\n odysseyDesignTokens={odysseyDesignTokens}\n ref={drawerContentRef}\n >\n {children}\n </DrawerContent>\n {hasFooter && (\n <DrawerFooter\n hasDividers={dividersVisible}\n odysseyDesignTokens={odysseyDesignTokens}\n >\n {tertiaryCallToActionComponent}\n {secondaryCallToActionComponent}\n {primaryCallToActionComponent}\n </DrawerFooter>\n )}\n </DrawerContentWrapper>\n </MuiDrawer>\n ),\n [\n anchorDirection,\n ariaLabel,\n children,\n dividersVisible,\n handleCloseButtonClick,\n hasFooter,\n isContentScrollable,\n isOpen,\n odysseyDesignTokens,\n onClose,\n primaryCallToActionComponent,\n secondaryCallToActionComponent,\n slotProps,\n t,\n tertiaryCallToActionComponent,\n testId,\n title,\n translate,\n variant,\n ],\n );\n\n return variant === \"temporary\" ? (\n <FullScreenOverlay>{muiDrawerComponent}</FullScreenOverlay>\n ) : (\n muiDrawerComponent\n );\n};\n\nconst MemoizedDrawer = memo(Drawer);\nMemoizedDrawer.displayName = \"Drawer\";\n\nexport { MemoizedDrawer as Drawer };\n"],"mappings":";;;;;;;AAYA,IAAAA,OAAA,GAAAC,sBAAA,CAAAC,OAAA;AAKA,IAAAC,OAAA,GAAAD,OAAA;AACA,IAAAE,OAAA,GAAAF,OAAA;AACA,IAAAG,WAAA,GAAAH,OAAA;AACA,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C,SAAS,EACT3B,CAAC,EACDZ,6BAA6B,EAC7BC,MAAM,EACNC,KAAK,EACLC,SAAS,EACTC,OAAO,CAEX,CAAC;EAED,OAAOA,OAAO,KAAK,WAAW,GAC5B,IAAAzC,WAAA,CAAA+E,GAAA,EAACrF,kBAAA,CAAAqG,iBAAiB;IAAAjE,QAAA,EAAEgD;EAAkB,CAAoB,CAAC,GAE3DA,kBACD;AACH,CAAC;AAED,MAAMkB,cAAc,GAAA3F,OAAA,CAAAuB,MAAA,GAAG,IAAAqE,WAAI,EAACrE,MAAM,CAAC;AACnCoE,cAAc,CAACE,WAAW,wCAAW","ignoreList":[]}
@@ -68,5 +68,5 @@ const EmptyState = ({
68
68
  });
69
69
  };
70
70
  const MemoizedEmptyState = exports.DataTableEmptyState = exports.EmptyState = (0, _react.memo)(EmptyState);
71
- MemoizedEmptyState.displayName = "EmptyState::pkg=odyssey&odysseyV=1.71.1";
71
+ MemoizedEmptyState.displayName = "EmptyState::pkg=odyssey&odysseyV=1.73.0";
72
72
  //# sourceMappingURL=EmptyState.cjs.map
@@ -47,5 +47,5 @@ const ErrorMessageList = ({
47
47
  });
48
48
  };
49
49
  const MemoizedErrorMessageList = exports.ErrorMessageList = (0, _react.memo)(ErrorMessageList);
50
- MemoizedErrorMessageList.displayName = "ErrorMessageList::pkg=odyssey&odysseyV=1.71.1";
50
+ MemoizedErrorMessageList.displayName = "ErrorMessageList::pkg=odyssey&odysseyV=1.73.0";
51
51
  //# sourceMappingURL=ErrorMessageList.cjs.map
@@ -94,5 +94,5 @@ const Field = ({
94
94
  });
95
95
  };
96
96
  const MemoizedField = exports.Field = (0, _react.memo)(Field);
97
- MemoizedField.displayName = "Field::pkg=odyssey&odysseyV=1.71.1";
97
+ MemoizedField.displayName = "Field::pkg=odyssey&odysseyV=1.73.0";
98
98
  //# sourceMappingURL=Field.cjs.map
@@ -51,5 +51,5 @@ const FieldError = ({
51
51
  });
52
52
  };
53
53
  const MemoizedFieldError = exports.FieldError = (0, _react.memo)(FieldError);
54
- MemoizedFieldError.displayName = "FieldError::pkg=odyssey&odysseyV=1.71.1";
54
+ MemoizedFieldError.displayName = "FieldError::pkg=odyssey&odysseyV=1.73.0";
55
55
  //# sourceMappingURL=FieldError.cjs.map
@@ -55,5 +55,5 @@ const FieldHint = ({
55
55
  });
56
56
  };
57
57
  const MemoizedFieldHint = exports.FieldHint = (0, _react.memo)(FieldHint);
58
- MemoizedFieldHint.displayName = "FieldHint::pkg=odyssey&odysseyV=1.71.1";
58
+ MemoizedFieldHint.displayName = "FieldHint::pkg=odyssey&odysseyV=1.73.0";
59
59
  //# sourceMappingURL=FieldHint.cjs.map
@@ -52,5 +52,5 @@ const FieldLabel = ({
52
52
  });
53
53
  };
54
54
  const MemoizedFieldLabel = exports.FieldLabel = (0, _react.memo)(FieldLabel);
55
- MemoizedFieldLabel.displayName = "FieldLabel::pkg=odyssey&odysseyV=1.71.1";
55
+ MemoizedFieldLabel.displayName = "FieldLabel::pkg=odyssey&odysseyV=1.73.0";
56
56
  //# sourceMappingURL=FieldLabel.cjs.map
@@ -161,5 +161,5 @@ const Checkbox = ({
161
161
  });
162
162
  };
163
163
  const MemoizedCheckbox = exports.Checkbox = (0, _react.memo)(Checkbox);
164
- MemoizedCheckbox.displayName = "Checkbox::pkg=odyssey&odysseyV=1.71.1";
164
+ MemoizedCheckbox.displayName = "Checkbox::pkg=odyssey&odysseyV=1.73.0";
165
165
  //# sourceMappingURL=Checkbox.cjs.map
@@ -74,5 +74,5 @@ function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e
74
74
  });
75
75
  };
76
76
  const MemoizedCheckboxGroup = exports.CheckboxGroup = (0, _react.memo)(CheckboxGroup);
77
- MemoizedCheckboxGroup.displayName = "CheckboxGroup::pkg=odyssey&odysseyV=1.71.1";
77
+ MemoizedCheckboxGroup.displayName = "CheckboxGroup::pkg=odyssey&odysseyV=1.73.0";
78
78
  //# sourceMappingURL=CheckboxGroup.cjs.map
@@ -121,5 +121,5 @@ function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e
121
121
  });
122
122
  };
123
123
  const MemoizedRadio = exports.Radio = (0, _react.memo)(Radio);
124
- MemoizedRadio.displayName = "Radio::pkg=odyssey&odysseyV=1.71.1";
124
+ MemoizedRadio.displayName = "Radio::pkg=odyssey&odysseyV=1.73.0";
125
125
  //# sourceMappingURL=Radio.cjs.map
@@ -95,5 +95,5 @@ function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e
95
95
  });
96
96
  };
97
97
  const MemoizedRadioGroup = exports.RadioGroup = (0, _react.memo)(RadioGroup);
98
- MemoizedRadioGroup.displayName = "RadioGroup::pkg=odyssey&odysseyV=1.71.1";
98
+ MemoizedRadioGroup.displayName = "RadioGroup::pkg=odyssey&odysseyV=1.73.0";
99
99
  //# sourceMappingURL=RadioGroup.cjs.map
@@ -71,5 +71,5 @@ const Fieldset = ({
71
71
  });
72
72
  };
73
73
  const MemoizedFieldset = exports.Fieldset = (0, _react.memo)(Fieldset);
74
- MemoizedFieldset.displayName = "Fieldset::pkg=odyssey&odysseyV=1.71.1";
74
+ MemoizedFieldset.displayName = "Fieldset::pkg=odyssey&odysseyV=1.73.0";
75
75
  //# sourceMappingURL=Fieldset.cjs.map
@@ -55,5 +55,5 @@ const FileUploadIllustration = () => {
55
55
  });
56
56
  };
57
57
  const MemoizedFileUploadIllustration = exports.FileUploadIllustration = (0, _react.memo)(FileUploadIllustration);
58
- MemoizedFileUploadIllustration.displayName = "FileUploadIllustration::pkg=odyssey&odysseyV=1.71.1";
58
+ MemoizedFileUploadIllustration.displayName = "FileUploadIllustration::pkg=odyssey&odysseyV=1.73.0";
59
59
  //# sourceMappingURL=FileUploadIllustration.cjs.map
@@ -111,5 +111,5 @@ const FileUploadPreview = ({
111
111
  });
112
112
  };
113
113
  const MemoizedFileUploadPreview = exports.FileUploadPreview = (0, _react.memo)(FileUploadPreview);
114
- MemoizedFileUploadPreview.displayName = "FileUploadPreview::pkg=odyssey&odysseyV=1.71.1";
114
+ MemoizedFileUploadPreview.displayName = "FileUploadPreview::pkg=odyssey&odysseyV=1.73.0";
115
115
  //# sourceMappingURL=FileUploadPreview.cjs.map
@@ -200,5 +200,5 @@ const FileUploader = ({
200
200
  });
201
201
  };
202
202
  const MemoizedFileUploader = exports.FileUploader = exports.FileUpload = (0, _react.memo)(FileUploader);
203
- MemoizedFileUploader.displayName = "FileUploader::pkg=odyssey&odysseyV=1.71.1";
203
+ MemoizedFileUploader.displayName = "FileUploader::pkg=odyssey&odysseyV=1.73.0";
204
204
  //# sourceMappingURL=FileUploader.cjs.map
package/dist/cjs/Form.cjs CHANGED
@@ -99,5 +99,5 @@ const Form = ({
99
99
  });
100
100
  };
101
101
  const MemoizedForm = exports.Form = (0, _react.memo)(Form);
102
- MemoizedForm.displayName = "Form::pkg=odyssey&odysseyV=1.71.1";
102
+ MemoizedForm.displayName = "Form::pkg=odyssey&odysseyV=1.73.0";
103
103
  //# sourceMappingURL=Form.cjs.map
@@ -6,7 +6,9 @@ Object.defineProperty(exports, "__esModule", {
6
6
  exports.FullScreenOverlay = void 0;
7
7
  var _react = require("react");
8
8
  var _FullScreenOverlayContext = require("./FullScreenOverlayContext.cjs");
9
- var _OdysseyProvider = require("./OdysseyProvider.cjs");
9
+ var _OdysseyCacheProvider = require("./OdysseyCacheProvider.cjs");
10
+ var _OdysseyThemeProvider = require("./OdysseyThemeProvider.cjs");
11
+ var _useColorScheme = require("./useColorScheme.cjs");
10
12
  var _jsxRuntime = require("react/jsx-runtime");
11
13
  /*!
12
14
  * Copyright (c) 2025-present, Okta, Inc. and/or its affiliates. All rights reserved.
@@ -18,28 +20,33 @@ var _jsxRuntime = require("react/jsx-runtime");
18
20
  * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
19
21
  *
20
22
  * See the License for the specific language governing permissions and limitations under the License.
21
- */
22
-
23
+ */const withinOverlayContextValue = {
24
+ isWithinOverlay: true
25
+ };
23
26
  const FullScreenOverlay = ({
24
- children,
25
- overlayType
27
+ children
26
28
  }) => {
27
29
  const {
30
+ isWithinOverlay,
28
31
  overlayEmotionRootElement,
29
32
  overlayShadowRootElement
30
33
  } = (0, _FullScreenOverlayContext.useFullScreenOverlayContext)();
31
- return overlayShadowRootElement ? (0, _jsxRuntime.jsx)(_OdysseyProvider.OdysseyProvider, {
34
+ const colorScheme = (0, _useColorScheme.useColorScheme)();
35
+ return overlayShadowRootElement && !isWithinOverlay ? (0, _jsxRuntime.jsx)(_OdysseyCacheProvider.OdysseyCacheProvider, {
36
+ colorScheme: colorScheme,
32
37
  emotionRootElement: overlayEmotionRootElement,
33
- hasScopedCssBaseline: false,
34
- hasTranslationProvider: false,
35
- hasWrapperElement: false,
36
- overlayType: overlayType,
37
- shadowRootElement: overlayShadowRootElement,
38
- children: children
38
+ children: (0, _jsxRuntime.jsx)(_OdysseyThemeProvider.OdysseyThemeProvider, {
39
+ hasWrapperElement: false,
40
+ shadowRootElement: overlayShadowRootElement,
41
+ children: (0, _jsxRuntime.jsx)(_FullScreenOverlayContext.FullScreenOverlayContext.Provider, {
42
+ value: withinOverlayContextValue,
43
+ children: children
44
+ })
45
+ })
39
46
  }) : (0, _jsxRuntime.jsx)(_jsxRuntime.Fragment, {
40
47
  children: children
41
48
  });
42
49
  };
43
50
  const MemoizedFullScreenOverlay = exports.FullScreenOverlay = (0, _react.memo)(FullScreenOverlay);
44
- MemoizedFullScreenOverlay.displayName = "FullScreenOverlay::pkg=odyssey&odysseyV=1.71.1";
51
+ MemoizedFullScreenOverlay.displayName = "FullScreenOverlay::pkg=odyssey&odysseyV=1.73.0";
45
52
  //# sourceMappingURL=FullScreenOverlay.cjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"FullScreenOverlay.cjs","names":["_react","require","_FullScreenOverlayContext","_OdysseyProvider","_jsxRuntime","FullScreenOverlay","children","overlayType","overlayEmotionRootElement","overlayShadowRootElement","useFullScreenOverlayContext","jsx","OdysseyProvider","emotionRootElement","hasScopedCssBaseline","hasTranslationProvider","hasWrapperElement","shadowRootElement","Fragment","MemoizedFullScreenOverlay","exports","memo","displayName"],"sources":["../../src/FullScreenOverlay.tsx"],"sourcesContent":["/*!\n * Copyright (c) 2025-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 { memo, type ReactNode } from \"react\";\n\nimport {\n type OverlayType,\n useFullScreenOverlayContext,\n} from \"./FullScreenOverlayContext.js\";\nimport { OdysseyProvider } from \"./OdysseyProvider.js\";\n\nexport type FullScreenOverlayProps = {\n children: ReactNode;\n overlayType?: OverlayType;\n};\n\nconst FullScreenOverlay = ({\n children,\n overlayType,\n}: FullScreenOverlayProps) => {\n const { overlayEmotionRootElement, overlayShadowRootElement } =\n useFullScreenOverlayContext();\n\n return overlayShadowRootElement ? (\n <OdysseyProvider\n emotionRootElement={overlayEmotionRootElement}\n hasScopedCssBaseline={false}\n hasTranslationProvider={false}\n hasWrapperElement={false}\n overlayType={overlayType}\n shadowRootElement={overlayShadowRootElement}\n >\n {children}\n </OdysseyProvider>\n ) : (\n <>{children}</>\n );\n};\n\nconst MemoizedFullScreenOverlay = memo(FullScreenOverlay);\nMemoizedFullScreenOverlay.displayName = \"FullScreenOverlay\";\n\nexport { MemoizedFullScreenOverlay as FullScreenOverlay };\n"],"mappings":";;;;;;AAYA,IAAAA,MAAA,GAAAC,OAAA;AAEA,IAAAC,yBAAA,GAAAD,OAAA;AAIA,IAAAE,gBAAA,GAAAF,OAAA;AAAuD,IAAAG,WAAA,GAAAH,OAAA;AAlBvD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAeA,MAAMI,iBAAiB,GAAGA,CAAC;EACzBC,QAAQ;EACRC;AACsB,CAAC,KAAK;EAC5B,MAAM;IAAEC,yBAAyB;IAAEC;EAAyB,CAAC,GAC3D,IAAAC,qDAA2B,EAAC,CAAC;EAE/B,OAAOD,wBAAwB,GAC7B,IAAAL,WAAA,CAAAO,GAAA,EAACR,gBAAA,CAAAS,eAAe;IACdC,kBAAkB,EAAEL,yBAA0B;IAC9CM,oBAAoB,EAAE,KAAM;IAC5BC,sBAAsB,EAAE,KAAM;IAC9BC,iBAAiB,EAAE,KAAM;IACzBT,WAAW,EAAEA,WAAY;IACzBU,iBAAiB,EAAER,wBAAyB;IAAAH,QAAA,EAE3CA;EAAQ,CACM,CAAC,GAElB,IAAAF,WAAA,CAAAO,GAAA,EAAAP,WAAA,CAAAc,QAAA;IAAAZ,QAAA,EAAGA;EAAQ,CAAG,CACf;AACH,CAAC;AAED,MAAMa,yBAAyB,GAAAC,OAAA,CAAAf,iBAAA,GAAG,IAAAgB,WAAI,EAAChB,iBAAiB,CAAC;AACzDc,yBAAyB,CAACG,WAAW,mDAAsB","ignoreList":[]}
1
+ {"version":3,"file":"FullScreenOverlay.cjs","names":["_react","require","_FullScreenOverlayContext","_OdysseyCacheProvider","_OdysseyThemeProvider","_useColorScheme","_jsxRuntime","withinOverlayContextValue","isWithinOverlay","FullScreenOverlay","children","overlayEmotionRootElement","overlayShadowRootElement","useFullScreenOverlayContext","colorScheme","useColorScheme","jsx","OdysseyCacheProvider","emotionRootElement","OdysseyThemeProvider","hasWrapperElement","shadowRootElement","FullScreenOverlayContext","Provider","value","Fragment","MemoizedFullScreenOverlay","exports","memo","displayName"],"sources":["../../src/FullScreenOverlay.tsx"],"sourcesContent":["/*!\n * Copyright (c) 2025-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 { memo, type ReactNode } from \"react\";\n\nimport {\n FullScreenOverlayContext,\n type FullScreenOverlayContextType,\n type OverlayType,\n useFullScreenOverlayContext,\n} from \"./FullScreenOverlayContext.js\";\nimport { OdysseyCacheProvider } from \"./OdysseyCacheProvider.js\";\nimport { OdysseyThemeProvider } from \"./OdysseyThemeProvider.js\";\nimport { useColorScheme } from \"./useColorScheme.js\";\n\nexport type FullScreenOverlayProps = {\n children: ReactNode;\n /**\n * @deprecated Every overlay renders into the app's one overlay container, which is always labeled `data-odyssey-react-overlay-component`, so this no longer has any effect.\n */\n overlayType?: OverlayType;\n};\n\n// Marks everything inside an overlay, so a dialog opened from a drawer renders into the app's overlay container next to the drawer, not into a container of the drawer's own. One container per app is what Selenium selectors and `fullScreenOverlayId` expect.\nconst withinOverlayContextValue: FullScreenOverlayContextType = {\n isWithinOverlay: true,\n};\n\nconst FullScreenOverlay = ({ children }: FullScreenOverlayProps) => {\n const {\n isWithinOverlay,\n overlayEmotionRootElement,\n overlayShadowRootElement,\n } = useFullScreenOverlayContext();\n const colorScheme = useColorScheme();\n\n // Only the style cache and theme move into the overlay container. A whole `OdysseyProvider` here would append another container to `<body>` for every overlay on the page, open or closed, and reset the app's animation setting.\n return overlayShadowRootElement && !isWithinOverlay ? (\n <OdysseyCacheProvider\n colorScheme={colorScheme}\n emotionRootElement={overlayEmotionRootElement}\n >\n <OdysseyThemeProvider\n hasWrapperElement={false}\n shadowRootElement={overlayShadowRootElement}\n >\n <FullScreenOverlayContext.Provider value={withinOverlayContextValue}>\n {children}\n </FullScreenOverlayContext.Provider>\n </OdysseyThemeProvider>\n </OdysseyCacheProvider>\n ) : (\n <>{children}</>\n );\n};\n\nconst MemoizedFullScreenOverlay = memo(FullScreenOverlay);\nMemoizedFullScreenOverlay.displ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AAA,GAAG,IAAAmB,WAAI,EAACnB,iBAAiB,CAAC;AACzDiB,yBAAyB,CAACG,WAAW,mDAAsB","ignoreList":[]}
@@ -5,6 +5,7 @@ Object.defineProperty(exports, "__esModule", {
5
5
  });
6
6
  exports.useFullScreenOverlayContext = exports.OVERLAY_DATA_ATTRIBUTES = exports.FullScreenOverlayProvider = exports.FullScreenOverlayContext = void 0;
7
7
  var _react = require("react");
8
+ var _useFullscreen = require("./fullscreen/useFullscreen.cjs");
8
9
  var _createShadowDomElements = require("./web-component/createShadowDomElements.cjs");
9
10
  var _jsxRuntime = require("react/jsx-runtime");
10
11
  /*!
@@ -72,6 +73,23 @@ const FullScreenOverlayProvider = ({
72
73
  overlayParentElement.remove();
73
74
  };
74
75
  }, [fullScreenOverlayId, overlayParentElement, overlayType]);
76
+ const hasActiveFullscreen = (0, _useFullscreen.useHasActiveFullscreen)();
77
+ (0, _react.useEffect)(() => {
78
+ if (!hasActiveFullscreen) {
79
+ return;
80
+ }
81
+ const removeInert = () => {
82
+ if (overlayParentElement.hasAttribute("inert")) {
83
+ overlayParentElement.removeAttribute("inert");
84
+ }
85
+ };
86
+ removeInert();
87
+ const mutationObserver = new MutationObserver(removeInert);
88
+ mutationObserver.observe(overlayParentElement, {
89
+ attributeFilter: ["inert"]
90
+ });
91
+ return () => mutationObserver.disconnect();
92
+ }, [hasActiveFullscreen, overlayParentElement]);
75
93
  const providerValue = (0, _react.useMemo)(() => ({
76
94
  overlayEmotionRootElement,
77
95
  overlayShadowRootElement
@@ -82,5 +100,5 @@ const FullScreenOverlayProvider = ({
82
100
  });
83
101
  };
84
102
  const MemoizedFullScreenOverlayProvider = exports.FullScreenOverlayProvider = (0, _react.memo)(FullScreenOverlayProvider);
85
- MemoizedFullScreenOverlayProvider.displayName = "FullScreenOverlayProvider::pkg=odyssey&odysseyV=1.71.1";
103
+ MemoizedFullScreenOverlayProvider.displayName = "FullScreenOverlayProvider::pkg=odyssey&odysseyV=1.73.0";
86
104
  //# sourceMappingURL=FullScreenOverlayContext.cjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"FullScreenOverlayContext.cjs","names":["_react","require","_createShadowDomElements","_jsxRuntime","FullScreenOverlayContext","exports","createContext","useFullScreenOverlayContext","useContext","OVERLAY_DATA_ATTRIBUTES","dialog","drawer","toastStack","default","FullScreenOverlayProvider","children","hasShadowDom","overlayParentElement","overlayParentElementProp","overlayType","fullScreenOverlayId","overlayEmotionRootElement","overlayShadowRootElement","useMemo","document","createElement","emotionRootElement","shadowRootElement","createShadowDomElements","undefined","useEffect","id","removeAttribute","setAttribute","body","append","remove","providerValue","jsx","Provider","value","MemoizedFullScreenOverlayProvider","memo","displayName"],"sources":["../../src/FullScreenOverlayContext.tsx"],"sourcesContent":["/*!\n * Copyright (c) 2025-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 createContext,\n memo,\n type ReactNode,\n useContext,\n useEffect,\n useMemo,\n} from \"react\";\n\nimport { createShadowDomElements } from \"./web-component/createShadowDomElements.js\";\n\nexport type FullScreenOverlayContextType = {\n overlayEmotionRootElement?: HTMLDivElement | HTMLElement;\n overlayShadowRootElement?: HTMLDivElement | HTMLElement;\n};\n\nexport const FullScreenOverlayContext =\n createContext<FullScreenOverlayContextType>({});\n\nexport const useFullScreenOverlayContext = () =>\n useContext(FullScreenOverlayContext);\n\nexport const OVERLAY_DATA_ATTRIBUTES = {\n dialog: \"data-odyssey-react-dialog-overlay-component\",\n drawer: \"data-odyssey-react-drawer-overlay-component\",\n toastStack: \"data-odyssey-react-toast-stack-overlay-component\",\n default: \"data-odyssey-react-overlay-component\",\n} as const;\n\nexport type OverlayType = keyof typeof OVERLAY_DATA_ATTRIBUTES;\n\nexport type FullScreenOverlayProviderProps = {\n children: ReactNode;\n /**\n * An optional HTML `id` attribute to be applied to the overlay's container element.\n */\n fullScreenOverlayId?: string;\n hasShadowDom?: boolean;\n /**\n * @experimental This is the element overlays will render into. By default, it's set to `document.body`.\n *\n * If you specify this value , it will render overlays into this container, such as the `shadowRootElement` over the document body. Most likely, you don't need to change this value, but you might run into strange issues related iframes and other shadow roots. This is here as a safeguard; not meant to be used.\n */\n overlayParentElement?: HTMLDivElement | HTMLElement;\n /**\n * Type of overlay being rendered. This controls the data attribute set on the overlay parent element.\n * @default \"default\"\n */\n overlayType?: OverlayType;\n};\n\nconst FullScreenOverlayProvider = ({\n children,\n hasShadowDom,\n overlayParentElement: overlayParentElementProp,\n overlayType = \"default\",\n fullScreenOverlayId,\n}: FullScreenOverlayProviderProps) => {\n const {\n overlayEmotionRootElement,\n overlayParentElement,\n overlayShadowRootElement,\n } = useMemo(() => {\n const overlayParentElement =\n overlayParentElementProp || document.createElement(\"div\");\n\n if (hasShadowDom) {\n const { emotionRootElement, shadowRootElement } =\n createShadowDomElements(overlayParentElement);\n\n return {\n overlayEmotionRootElement: emotionRootElement,\n overlayParentElement,\n overlayShadowRootElement: shadowRootElement,\n };\n }\n\n return {\n overlayEmotionRootElement: undefined,\n overlayParentElement,\n overlayShadowRootElement: undefined,\n };\n }, [hasShadowDom, overlayParentElementProp]);\n\n useEffect(() => {\n if (overlayParentElement) {\n if (fullScreenOverlayId) {\n overlayParentElement.id = fullScreenOverlayId;\n } else {\n overlayParentElement.removeAttribute(\"id\");\n }\n overlayParentElement.setAttribute(\n OVERLAY_DATA_ATTRIBUTES[overlayType],\n \"\",\n );\n document.body.append(overlayParentElement);\n }\n\n return () => {\n overlayParentElement.remove();\n };\n }, [fullScreenOverlayId, overlayParentElement, overlayType]);\n\n const providerValue = useMemo(\n () => ({\n overlayEmotionRootElement,\n overlayShadowRootElement,\n }),\n [overlayEmotionRootElement, overlayShadowRootElement],\n );\n\n return (\n <FullScreenOverlayContext.Provider value={providerValue}>\n {children}\n </FullScreenOverlayContext.Provider>\n );\n};\n\nconst MemoizedFullScreenOverlayProvider = memo(FullScreenOverlayProvider);\nMemoizedFullScreenOverlayProvider.displayName = \"FullScreenOverlayProvider\";\n\nexport { MemoizedFullScreenOverlayProvider as FullScreenOverlayProvider };\n"],"mappings":";;;;;;AAYA,IAAAA,MAAA,GAAAC,OAAA;AASA,IAAAC,wBAAA,GAAAD,OAAA;AAAqF,IAAAE,WAAA,GAAAF,OAAA;AArBrF;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAkBO,MAAMG,wBAAwB,GAAAC,OAAA,CAAAD,wBAAA,GACnC,IAAAE,oBAAa,EAA+B,CAAC,CAAC,CAAC;AAE1C,MAAMC,2BAA2B,GAAGA,CAAA,KACzC,IAAAC,iBAAU,EAACJ,wBAAwB,CAAC;AAACC,OAAA,CAAAE,2BAAA,GAAAA,2BAAA;AAEhC,MAAME,uBAAuB,GAAAJ,OAAA,CAAAI,uBAAA,GAAG;EACrCC,MAAM,EAAE,6CAA6C;EACrDC,MAAM,EAAE,6CAA6C;EACrDC,UAAU,EAAE,kDAAkD;EAC9DC,OAAO,EAAE;AACX,CAAU;AAwBV,MAAMC,yBAAyB,GAAGA,CAAC;EACjCC,QAAQ;EACRC,YAAY;EACZC,oBAAoB,EAAEC,wBAAwB;EAC9CC,WAAW,GAAG,SAAS;EACvBC;AAC8B,CAAC,KAAK;EACpC,MAAM;IACJC,yBAAyB;IACzBJ,oBAAoB;IACpBK;EACF,CAAC,GAAG,IAAAC,cAAO,EAAC,MAAM;IAChB,MAAMN,oBAAoB,GACxBC,wBAAwB,IAAIM,QAAQ,CAACC,aAAa,CAAC,KAAK,CAAC;IAE3D,IAAIT,YAAY,EAAE;MAChB,MAAM;QAAEU,kBAAkB;QAAEC;MAAkB,CAAC,GAC7C,IAAAC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ext.cjs","names":["_react","require","_useFullscreen","_createShadowDomElements","_jsxRuntime","FullScreenOverlayContext","exports","createContext","useFullScreenOverlayContext","useContext","OVERLAY_DATA_ATTRIBUTES","dialog","drawer","toastStack","default","FullScreenOverlayProvider","children","hasShadowDom","overlayParentElement","overlayParentElementProp","overlayType","fullScreenOverlayId","overlayEmotionRootElement","overlayShadowRootElement","useMemo","document","createElement","emotionRootElement","shadowRootElement","createShadowDomElements","undefined","useEffect","id","removeAttribute","setAttribute","body","append","remove","hasActiveFullscreen","useHasActiveFullscreen","removeInert","hasAttribute","mutationObserver","MutationObserver","observe","attributeFilter","disconnect","providerValue","jsx","Provider","value","MemoizedFullScreenOverlayProvider","memo","displayName"],"sources":["../../src/FullScreenOverlayContext.tsx"],"sourcesContent":["/*!\n * Copyright (c) 2025-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 createContext,\n memo,\n type ReactNode,\n useContext,\n useEffect,\n useMemo,\n} from \"react\";\n\nimport { useHasActiveFullscreen } from \"./fullscreen/useFullscreen.js\";\nimport { createShadowDomElements } from \"./web-component/createShadowDomElements.js\";\n\nexport type FullScreenOverlayContextType = {\n /**\n * If `true`, the component is already rendering inside an overlay's container, so an overlay opened from it renders into that same container.\n */\n isWithinOverlay?: boolean;\n overlayEmotionRootElement?: HTMLDivElement | HTMLElement;\n overlayShadowRootElement?: HTMLDivElement | HTMLElement;\n};\n\nexport const FullScreenOverlayContext =\n createContext<FullScreenOverlayContextType>({});\n\nexport const useFullScreenOverlayContext = () =>\n useContext(FullScreenOverlayContext);\n\nexport const OVERLAY_DATA_ATTRIBUTES = {\n dialog: \"data-odyssey-react-dialog-overlay-component\",\n drawer: \"data-odyssey-react-drawer-overlay-component\",\n toastStack: \"data-odyssey-react-toast-stack-overlay-component\",\n default: \"data-odyssey-react-overlay-component\",\n} as const;\n\nexport type OverlayType = keyof typeof OVERLAY_DATA_ATTRIBUTES;\n\nexport type FullScreenOverlayProviderProps = {\n children: ReactNode;\n /**\n * An optional HTML `id` attribute to be applied to the overlay's container element.\n */\n fullScreenOverlayId?: string;\n hasShadowDom?: boolean;\n /**\n * @experimental This is the element overlays will render into. By default, it's set to `document.body`.\n *\n * If you specify this value , it will render overlays into this container, such as the `shadowRootElement` over the document body. Most likely, you don't need to change this value, but you might run into strange issues related iframes and other shadow roots. This is here as a safeguard; not meant to be used.\n */\n overlayParentElement?: HTMLDivElement | HTMLElement;\n /**\n * Type of overlay being rendered. This controls the data attribute set on the overlay parent element.\n * @default \"default\"\n * @deprecated Overlays no longer create containers of their own, so the app's one container only needs `data-odyssey-react-overlay-component`. Select overlays by that attribute and the app's `fullScreenOverlayId`.\n */\n overlayType?: OverlayType;\n};\n\nconst FullScreenOverlayProvider = ({\n children,\n hasShadowDom,\n overlayParentElement: overlayParentElementProp,\n overlayType = \"default\",\n fullScreenOverlayId,\n}: FullScreenOverlayProviderProps) => {\n const {\n overlayEmotionRootElement,\n overlayParentElement,\n overlayShadowRootElement,\n } = useMemo(() => {\n const overlayParentElement =\n overlayParentElementProp || document.createElement(\"div\");\n\n if (hasShadowDom) {\n const { emotionRootElement, shadowRootElement } =\n createShadowDomElements(overlayParentElement);\n\n return {\n overlayEmotionRootElement: emotionRootElement,\n overlayParentElement,\n overlayShadowRootElement: shadowRootElement,\n };\n }\n\n return {\n overlayEmotionRootElement: undefined,\n overlayParentElement,\n overlayShadowRootElement: undefined,\n };\n }, [hasShadowDom, overlayParentElementProp]);\n\n useEffect(() => {\n if (overlayParentElement) {\n if (fullScreenOverlayId) {\n overlayParentElement.id = fullScreenOverlayId;\n } else {\n overlayParentElement.removeAttribute(\"id\");\n }\n overlayParentElement.setAttribute(\n OVERLAY_DATA_ATTRIBUTES[overlayType],\n \"\",\n );\n document.body.append(overlayParentElement);\n }\n\n return () => {\n overlayParentElement.remove();\n };\n }, [fullScreenOverlayId, overlayParentElement, overlayType]);\n\n const hasActiveFullscreen = useHasActiveFullscreen();\n\n // The container sits on `<body>` from the moment the app mounts, so a fullscreen region, possibly from another bundle or an older Odyssey, makes it inert along with the rest of the page. An overlay in an inert container is visible but ignores every click and keypress, so the container refuses `inert` while anything is in fullscreen. Outside fullscreen it leaves `inert` alone, because then a host page's own modal may be isolating it on purpose.\n useEffect(() => {\n if (!hasActiveFullscreen) {\n return;\n }\n\n const removeInert = () => {\n if (overlayParentElement.hasAttribute(\"inert\")) {\n overlayParentElement.removeAttribute(\"inert\");\n }\n };\n\n removeInert();\n\n const mutationObserver = new MutationObserver(removeInert);\n mutationObserver.observe(overlayParentElement, {\n attributeFilter: [\"inert\"],\n });\n\n return () => mutationObserver.disconnect();\n }, [hasActiveFullscreen, overlayParentElement]);\n\n const providerValue = useMemo(\n () => ({\n overlayEmotionRootElement,\n overlayShadowRootElement,\n }),\n [overlayEmotionRootElement, overlayShadowRootElement],\n );\n\n return (\n <FullScreenOverlayContext.Provider value={providerValue}>\n {children}\n </FullScreenOverlayContext.Provider>\n );\n};\n\nconst MemoizedFullScreenOverlayProvider = memo(FullScreenOverlayProvider);\nMemoizedFullScreenOverlayProvider.displayName = \"FullScreenOverlayProvider\";\n\nexport { MemoizedFullScreenOverlayProvider as FullScreenOverlayProvider };\n"],"mappings":";;;;;;AAYA,IAAAA,MAAA,GAAAC,OAAA;AASA,IAAAC,cAAA,GAAAD,OAAA;AACA,IAAAE,wBAAA,GAAAF,OAAA;AAAqF,IAAAG,WAAA,GAAAH,OAAA;AAtBrF;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAuBO,MAAMI,wBAAwB,GAAAC,OAAA,CAAAD,wBAAA,GACnC,I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C,WAAI,EAACrC,yBAAyB,CAAC;AACzEoC,iCAAiC,CAACE,WAAW,2DAA8B","ignoreList":[]}
@@ -22,5 +22,5 @@ var _jsxRuntime = require("react/jsx-runtime");
22
22
  variant: "monochrome"
23
23
  });
24
24
  const MemoizedHintLink = exports.HintLink = (0, _react.memo)(HintLink);
25
- MemoizedHintLink.displayName = "HintLink::pkg=odyssey&odysseyV=1.71.1";
25
+ MemoizedHintLink.displayName = "HintLink::pkg=odyssey&odysseyV=1.73.0";
26
26
  //# sourceMappingURL=HintLink.cjs.map
@@ -67,5 +67,5 @@ const IconWithTooltip = ({
67
67
  });
68
68
  };
69
69
  const MemoizedIconWithTooltip = exports.IconWithTooltip = (0, _react.memo)(IconWithTooltip);
70
- MemoizedIconWithTooltip.displayName = "IconWithTooltip::pkg=odyssey&odysseyV=1.71.1";
70
+ MemoizedIconWithTooltip.displayName = "IconWithTooltip::pkg=odyssey&odysseyV=1.73.0";
71
71
  //# sourceMappingURL=IconWithTooltip.cjs.map
package/dist/cjs/Link.cjs CHANGED
@@ -82,5 +82,5 @@ const Link = ({
82
82
  });
83
83
  };
84
84
  const MemoizedLink = exports.Link = (0, _react.memo)(Link);
85
- MemoizedLink.displayName = "Link::pkg=odyssey&odysseyV=1.71.1";
85
+ MemoizedLink.displayName = "Link::pkg=odyssey&odysseyV=1.73.0";
86
86
  //# sourceMappingURL=Link.cjs.map
@@ -33,5 +33,5 @@ const MuiPropsChild = (0, _react.forwardRef)(({
33
33
  });
34
34
  });
35
35
  const MemoizedMuiPropsChild = exports.MuiPropsChild = (0, _react.memo)(MuiPropsChild);
36
- MemoizedMuiPropsChild.displayName = "MuiPropsChild::pkg=odyssey&odysseyV=1.71.1";
36
+ MemoizedMuiPropsChild.displayName = "MuiPropsChild::pkg=odyssey&odysseyV=1.73.0";
37
37
  //# sourceMappingURL=MuiPropsChild.cjs.map
@@ -108,5 +108,5 @@ function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e
108
108
  });
109
109
  });
110
110
  const MemoizedNativeSelect = exports.NativeSelect = (0, _react.memo)(NativeSelect);
111
- MemoizedNativeSelect.displayName = "NativeSelect::pkg=odyssey&odysseyV=1.71.1";
111
+ MemoizedNativeSelect.displayName = "NativeSelect::pkg=odyssey&odysseyV=1.73.0";
112
112
  //# sourceMappingURL=NativeSelect.cjs.map
@@ -22,6 +22,7 @@ function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e
22
22
  * See the License for the specific language governing permissions and limitations under the License.
23
23
  */const OdysseyCacheProvider = ({
24
24
  children,
25
+ colorScheme,
25
26
  emotionRoot,
26
27
  emotionRootElement,
27
28
  nonce,
@@ -39,12 +40,20 @@ function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e
39
40
  ...(stylisPlugins && {
40
41
  stylisPlugins
41
42
  })
42
- }), [emotionRoot, emotionRootElement, nonce, stylisPlugins, uniqueAlphabeticalId]);
43
+ }), [colorScheme, emotionRoot, emotionRootElement, nonce, stylisPlugins, uniqueAlphabeticalId]);
44
+ const previousEmotionCacheRef = (0, _react2.useRef)(undefined);
45
+ (0, _react2.useLayoutEffect)(() => {
46
+ const previousEmotionCache = previousEmotionCacheRef.current;
47
+ previousEmotionCacheRef.current = emotionCache;
48
+ if (previousEmotionCache && previousEmotionCache !== emotionCache) {
49
+ previousEmotionCache.sheet.flush();
50
+ }
51
+ }, [emotionCache]);
43
52
  return (0, _jsxRuntime.jsx)(_react.CacheProvider, {
44
53
  value: emotionCache,
45
54
  children: children
46
55
  });
47
56
  };
48
57
  const MemoizedOdysseyCacheProvider = exports.OdysseyCacheProvider = (0, _react2.memo)(OdysseyCacheProvider);
49
- MemoizedOdysseyCacheProvider.displayName = "OdysseyCacheProvider::pkg=odyssey&odysseyV=1.71.1";
58
+ MemoizedOdysseyCacheProvider.displayName = "OdysseyCacheProvider::pkg=odyssey&odysseyV=1.73.0";
50
59
  //# sourceMappingURL=OdysseyCacheProvider.cjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"OdysseyCacheProvider.cjs","names":["_cache","_interopRequireDefault","require","_react","_react2","_useUniqueAlphabeticalId","_jsxRuntime","e","__esModule","default","OdysseyCacheProvider","children","emotionRoot","emotionRootElement","nonce","stylisPlugins","uniqueAlphabeticalId","useUniqueAlphabeticalId","emotionCache","useMemo","createCache","container","key","globalThis","cspNonce","prepend","speedy","jsx","CacheProvider","value","MemoizedOdysseyCacheProvider","exports","memo","displayName"],"sources":["../../src/OdysseyCacheProvider.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\ndeclare global {\n var cspNonce: string; // Adding types to `globalThis` requires we use `var`.\n}\n\nimport createCache, { StylisPlugin } from \"@emotion/cache\";\nimport { CacheProvider } from \"@emotion/react\";\nimport { memo, ReactNode, useMemo } from \"react\";\n\nimport { useUniqueAlphabeticalId } from \"./useUniqueAlphabeticalId.js\";\n\nexport type OdysseyCacheProviderProps = {\n children: ReactNode;\n /**\n * @deprecated Use `EmotionRootElement` instead. This was incorrectly configured as an `HTMLStyleElement`, but then we're rendering `<style>` inside `<style>`. We need this to be a `<div>` instead.\n *\n * Emotion caches styles into the style element.\n * When enabling this prop, Emotion caches the styles at this element, rather than in <head>.\n */\n emotionRoot?: HTMLStyleElement;\n /**\n * Emotion adds `<style>` elements into this DOM node. Normally, Emotion puts these in `document.head`. This is useful if you want to render into a Shadow DOM or iframe.\n */\n emotionRootElement?: HTMLElement;\n /**\n * @deprecated No longer necessary.\n *\n * Required to know if a Shadow DOM is in use. This tells Emotion to change its cache configuration.\n */\n hasShadowDom?: boolean;\n /**\n * A cryptographic nonce (\"number used once\") that allows `<style>` tags injected by Emotion to pass a Content Security Policy that restricts inline styles.\n */\n nonce?: string;\n /**\n * @deprecated No longer necessary.\n *\n * Emotion renders into this HTML element.\n * When enabling this prop, Emotion renders at the top of this component rather than the bottom like it does in the HTML `<head>`.\n */\n shadowDomElement?: HTMLDivElement | HTMLElement;\n /** Custom Stylis plugins applied to Emotion's CSS processing pipeline. */\n stylisPlugins?: StylisPlugin[];\n};\n\n/**\n * Configures Emotion's style cache for Odyssey components. Wrap your application in this provider when you need to render into a Shadow DOM, iframe, or non-`<head>` target element, or when your CSP requires a nonce on injected `<style>` tags.\n */\nconst OdysseyCacheProvider = ({\n children,\n emotionRoot,\n emotionRootElement,\n nonce,\n stylisPlugins,\n}: OdysseyCacheProviderProps) => {\n const uniqueAlphabeticalId = useUniqueAlphabeticalId();\n\n const emotionCache = useMemo(\n () =>\n createCache({\n ...((emotionRootElement || emotionRoot) && {\n container: emotionRootElement || emotionRoot,\n }),\n key: uniqueAlphabeticalId,\n nonce: nonce ?? globalThis.cspNonce,\n prepend: true,\n speedy: true,\n ...(stylisPlugins && { stylisPlugins }),\n }),\n [\n emotionRoot,\n emotionRootElement,\n nonce,\n stylisPlugins,\n uniqueAlphabeticalId,\n ],\n );\n\n return <CacheProvider value={emotionCache}>{children}</CacheProvider>;\n};\n\nconst MemoizedOdysseyCacheProvider = memo(OdysseyCacheProvider);\nMemoizedOdysseyCacheProvider.displayName = \"OdysseyCacheProvider\";\n\nexport { MemoizedOdysseyCacheProvider as OdysseyCacheProvider };\n"],"mappings":";;;;;;AAgBA,IAAAA,MAAA,GAAAC,sBAAA,CAAAC,OAAA;AACA,IAAAC,MAAA,GAAAD,OAAA;AACA,IAAAE,OAAA,GAAAF,OAAA;AAEA,IAAAG,wBAAA,GAAAH,OAAA;AAAuE,IAAAI,WAAA,GAAAJ,OAAA;AAAA,SAAAD,uBAAAM,CAAA,WAAAA,CAAA,IAAAA,CAAA,CAAAC,UAAA,GAAAD,CAAA,KAAAE,OAAA,EAAAF,CAAA;AApBvE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,GAiDA,MAAMG,oBAAoB,GAAGA,CAAC;EAC5BC,QAAQ;EACRC,WAAW;EACXC,kBAAkB;EAClBC,KAAK;EACLC;AACyB,CAAC,KAAK;EAC/B,MAAMC,oBAAoB,GAAG,IAAAC,gDAAuB,EAAC,CAAC;EAEtD,MAAMC,YAAY,GAAG,IAAAC,eAAO,EAC1B,MACE,IAAAC,cAAW,EAAC;IACV,IAAI,CAACP,kBAAkB,IAAID,WAAW,KAAK;MACzCS,SAAS,EAAER,kBAAkB,IAAID;IACnC,CAAC,CAAC;IACFU,GAAG,EAAEN,oBAAoB;IACzBF,KAAK,EAAEA,KAAK,IAAIS,UAAU,CAACC,QAAQ;IACnCC,OAAO,EAAE,IAAI;IACbC,MAAM,EAAE,IAAI;IACZ,IAAIX,aAAa,IAAI;MAAEA;IAAc,CAAC;EACxC,CAAC,CAAC,EACJ,CACEH,WAAW,EACXC,kBAAkB,EAClBC,KAAK,EACLC,aAAa,EACbC,oBAAoB,CAExB,CAAC;EAED,OAAO,IAAAV,WAAA,CAAAqB,GAAA,EAACxB,MAAA,CAAAyB,aAAa;IAACC,KAAK,EAAEX,YAAa;IAAAP,QAAA,EAAEA;EAAQ,CAAgB,CAAC;AACvE,CAAC;AAED,MAAMmB,4BAA4B,GAAAC,OAAA,CAAArB,oBAAA,GAAG,IAAAsB,YAAI,EAACtB,oBAAoB,CAAC;AAC/DoB,4BAA4B,CAACG,WAAW,sDAAyB","ignoreList":[]}
1
+ {"version":3,"file":"OdysseyCacheProvider.cjs","names":["_cache","_interopRequireDefault","require","_react","_react2","_useUniqueAlphabeticalId","_jsxRuntime","e","__esModule","default","OdysseyCacheProvider","children","colorScheme","emotionRoot","emotionRootElement","nonce","stylisPlugins","uniqueAlphabeticalId","useUniqueAlphabeticalId","emotionCache","useMemo","createCache","container","key","globalThis","cspNonce","prepend","speedy","previousEmotionCacheRef","useRef","undefined","useLayoutEffect","previousEmotionCache","current","sheet","flush","jsx","CacheProvider","value","MemoizedOdysseyCacheProvider","exports","memo","displayName"],"sources":["../../src/OdysseyCacheProvider.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\ndeclare global {\n var cspNonce: string; // Adding types to `globalThis` requires we use `var`.\n}\n\nimport createCache, { type EmotionCache, StylisPlugin } from \"@emotion/cache\";\nimport { CacheProvider } from \"@emotion/react\";\nimport { memo, ReactNode, useLayoutEffect, useMemo, useRef } from \"react\";\n\nimport { type ResolvedColorScheme } from \"./useColorScheme.js\";\nimport { useUniqueAlphabeticalId } from \"./useUniqueAlphabeticalId.js\";\n\nexport type OdysseyCacheProviderProps = {\n children: ReactNode;\n /**\n * The color scheme rendered inside this cache. Changing it replaces the cache, so the new scheme's styles are inserted in the same order as a first render.\n */\n colorScheme?: ResolvedColorScheme;\n /**\n * @deprecated Use `EmotionRootElement` instead. This was incorrectly configured as an `HTMLStyleElement`, but then we're rendering `<style>` inside `<style>`. We need this to be a `<div>` instead.\n *\n * Emotion caches styles into the style element.\n * When enabling this prop, Emotion caches the styles at this element, rather than in <head>.\n */\n emotionRoot?: HTMLStyleElement;\n /**\n * Emotion adds `<style>` elements into this DOM node. Normally, Emotion puts these in `document.head`. This is useful if you want to render into a Shadow DOM or iframe.\n */\n emotionRootElement?: HTMLElement;\n /**\n * @deprecated No longer necessary.\n *\n * Required to know if a Shadow DOM is in use. This tells Emotion to change its cache configuration.\n */\n hasShadowDom?: boolean;\n /**\n * A cryptographic nonce (\"number used once\") that allows `<style>` tags injected by Emotion to pass a Content Security Policy that restricts inline styles.\n */\n nonce?: string;\n /**\n * @deprecated No longer necessary.\n *\n * Emotion renders into this HTML element.\n * When enabling this prop, Emotion renders at the top of this component rather than the bottom like it does in the HTML `<head>`.\n */\n shadowDomElement?: HTMLDivElement | HTMLElement;\n /** Custom Stylis plugins applied to Emotion's CSS processing pipeline. */\n stylisPlugins?: StylisPlugin[];\n};\n\n/**\n * Configures Emotion's style cache for Odyssey components. Wrap your application in this provider when you need to render into a Shadow DOM, iframe, or non-`<head>` target element, or when your CSP requires a nonce on injected `<style>` tags.\n */\nconst OdysseyCacheProvider = ({\n children,\n colorScheme,\n emotionRoot,\n emotionRootElement,\n nonce,\n stylisPlugins,\n}: OdysseyCacheProviderProps) => {\n const uniqueAlphabeticalId = useUniqueAlphabeticalId();\n\n // Emotion resolves equal-specificity rules by insertion order. Switching the color scheme regenerates every class built from color tokens and appends it after the classes that did not change, so an ancestor's rule can start beating a descendant's override that won on the first render. A fresh cache per scheme keeps first-render order.\n const emotionCache = useMemo(\n () =>\n createCache({\n ...((emotionRootElement || emotionRoot) && {\n container: emotionRootElement || emotionRoot,\n }),\n key: uniqueAlphabeticalId,\n nonce: nonce ?? globalThis.cspNonce,\n prepend: true,\n speedy: true,\n ...(stylisPlugins && { stylisPlugins }),\n }),\n // `colorScheme` is not read in the factory. It is a dependency so a scheme change builds a new cache.\n // eslint-disable-next-line react-hooks/exhaustive-deps\n [\n colorScheme,\n emotionRoot,\n emotionRootElement,\n nonce,\n stylisPlugins,\n uniqueAlphabeticalId,\n ],\n );\n\n const previousEmotionCacheRef = useRef<EmotionCache>(undefined);\n\n // The replaced cache's `<style>` tags stay in the DOM until flushed. This runs before paint so the old rules never apply alongside the new ones, and it compares against the previous cache rather than flushing on cleanup, because Strict Mode's simulated unmount would otherwise flush the cache still in use.\n useLayoutEffect(() => {\n const previousEmotionCache = previousEmotionCacheRef.current;\n\n previousEmotionCacheRef.current = emotionCache;\n\n if (previousEmotionCache && previousEmotionCache !== emotionCache) {\n previousEmotionCache.sheet.flush();\n }\n }, [emotionCache]);\n\n return <CacheProvider value={emotionCache}>{children}</CacheProvider>;\n};\n\nconst MemoizedOdysseyCacheProvider = memo(OdysseyCacheProvider);\nMemoizedOdysseyCacheProvider.displayName = \"OdysseyCacheProvider\";\n\nexport { MemoizedOdysseyCacheProvider as OdysseyCacheProvider };\n"],"mappings":";;;;;;AAgBA,IAAAA,MAAA,GAAAC,sBAAA,CAAAC,OAAA;AACA,IAAAC,MAAA,GAAAD,OAAA;AACA,IAAAE,OAAA,GAAAF,OAAA;AAGA,IAAAG,wBAAA,GAAAH,OAAA;AAAuE,IAAAI,WAAA,GAAAJ,OAAA;AAAA,SAAAD,uBAAAM,CAAA,WAAAA,CAAA,IAAAA,CAAA,CAAAC,UAAA,GAAAD,CAAA,KAAAE,OAAA,EAAAF,CAAA;AArBvE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,GAsDA,MAAMG,oBAAoB,GAAGA,CAAC;EAC5BC,QAAQ;EACRC,WAAW;EACXC,WAAW;EACXC,kBAAkB;EAClBC,KAAK;EACLC;AACyB,CAAC,KAAK;EAC/B,MAAMC,oBAAoB,GAAG,IAAAC,gDAAuB,EAAC,CAAC;EAGtD,MAAMC,YAAY,GAAG,IAAAC,eAAO,EAC1B,MACE,IAAAC,cAAW,EAAC;IACV,IAAI,CAACP,kBAAkB,IAAID,WAAW,KAAK;MACzCS,SAAS,EAAER,kBAAkB,IAAID;IACnC,CAAC,CAAC;IACFU,GAAG,EAAEN,oBAAoB;IACzBF,KAAK,EAAEA,KAAK,IAAIS,UAAU,CAACC,QAAQ;IACnCC,OAAO,EAAE,IAAI;IACbC,MAAM,EAAE,IAAI;IACZ,IAAIX,aAAa,IAAI;MAAEA;IAAc,CAAC;EACxC,CAAC,CAAC,EAGJ,CACEJ,WAAW,EACXC,WAAW,EACXC,kBAAkB,EAClBC,KAAK,EACLC,aAAa,EACbC,oBAAoB,CAExB,CAAC;EAED,MAAMW,uBAAuB,GAAG,IAAAC,cAAM,EAAeC,SAAS,CAAC;EAG/D,IAAAC,uBAAe,EAAC,MAAM;IACpB,MAAMC,oBAAoB,GAAGJ,uBAAuB,CAACK,OAAO;IAE5DL,uBAAuB,CAACK,OAAO,GAAGd,YAAY;IAE9C,IAAIa,oBAAoB,IAAIA,oBAAoB,KAAKb,YAAY,EAAE;MACjEa,oBAAoB,CAACE,KAAK,CAACC,KAAK,CAAC,CAAC;IACpC;EACF,CAAC,EAAE,CAAChB,YAAY,CAAC,CAAC;EAElB,OAAO,IAAAb,WAAA,CAAA8B,GAAA,EAACjC,MAAA,CAAAkC,aAAa;IAACC,KAAK,EAAEnB,YAAa;IAAAR,QAAA,EAAEA;EAAQ,CAAgB,CAAC;AACvE,CAAC;AAED,MAAM4B,4BAA4B,GAAAC,OAAA,CAAA9B,oBAAA,GAAG,IAAA+B,YAAI,EAAC/B,oBAAoB,CAAC;AAC/D6B,4BAA4B,CAACG,WAAW,sDAAyB","ignoreList":[]}
@@ -13,6 +13,7 @@ var _FullScreenOverlayContext = require("./FullScreenOverlayContext.cjs");
13
13
  var _i18n = require("./i18n.generated/i18n.cjs");
14
14
  var _OdysseyCacheProvider = require("./OdysseyCacheProvider.cjs");
15
15
  var _OdysseyThemeProvider = require("./OdysseyThemeProvider.cjs");
16
+ var _useColorScheme = require("./useColorScheme.cjs");
16
17
  var _jsxRuntime = require("react/jsx-runtime");
17
18
  function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
18
19
  /*!
@@ -32,6 +33,7 @@ const scopedCssBaselineStyles = {
32
33
  };
33
34
  const OdysseyProvider = ({
34
35
  children,
36
+ colorScheme,
35
37
  contrastMode,
36
38
  designTokensOverride,
37
39
  emotionRoot,
@@ -57,11 +59,16 @@ const OdysseyProvider = ({
57
59
  translationOverrides: translationOverrides,
58
60
  children: children
59
61
  }), [languageCode, translationOverrides]);
62
+ const resolvedColorScheme = (0, _useColorScheme.useResolvedColorScheme)({
63
+ colorScheme
64
+ });
60
65
  return (0, _jsxRuntime.jsx)(_OdysseyCacheProvider.OdysseyCacheProvider, {
66
+ colorScheme: resolvedColorScheme,
61
67
  emotionRootElement: emotionRootElement || emotionRoot,
62
68
  nonce: nonce,
63
69
  stylisPlugins: stylisPlugins,
64
70
  children: (0, _jsxRuntime.jsx)(_OdysseyThemeProvider.OdysseyThemeProvider, {
71
+ colorScheme: colorScheme,
65
72
  contrastMode: contrastMode,
66
73
  designTokensOverride: designTokensOverride,
67
74
  hasWrapperElement: hasWrapperElement,
@@ -88,5 +95,5 @@ const OdysseyProvider = ({
88
95
  });
89
96
  };
90
97
  const MemoizedOdysseyProvider = exports.OdysseyProvider = (0, _react.memo)(OdysseyProvider);
91
- MemoizedOdysseyProvider.displayName = "OdysseyProvider::pkg=odyssey&odysseyV=1.71.1";
98
+ MemoizedOdysseyProvider.displayName = "OdysseyProvider::pkg=odyssey&odysseyV=1.73.0";
92
99
  //# sourceMappingURL=OdysseyProvider.cjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"OdysseyProvider.cjs","names":["_react","require","_AnimationContext","_ConditionalWrapper","_CssBaseline","_FullScreenOverlayContext","_i18n","_OdysseyCacheProvider","_OdysseyThemeProvider","_jsxRuntime","_interopRequireDefault","e","__esModule","default","scopedCssBaselineStyles","height","OdysseyProvider","children","contrastMode","designTokensOverride","emotionRoot","emotionRootElement","fullScreenOverlayId","hasAnimations","hasCssBaseline","hasGlobalCss","hasScopedCssBaseline","hasTranslationProvider","hasWrapperElement","languageCode","nonce","overlayParentElement","overlayType","shadowDomElement","shadowRootElement","stylisPlugins","themeOverride","translationOverrides","TranslationWrapper","useMemo","jsx","TranslationProvider","OdysseyCacheProvider","OdysseyThemeProvider","AnimationProvider","ConditionalWrapper","isWrapped","Wrapper","jsxs","FullScreenOverlayProvider","hasShadowDom","Boolean","CssBaseline","_ScopedCssBaseline2","sx","MemoizedOdysseyProvider","exports","memo","displayName"],"sources":["../../src/OdysseyProvider.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 { ScopedCssBaseline } from \"@mui/material\";\nimport { memo, ReactNode, useMemo } from \"react\";\n\nimport { AnimationProvider } from \"./AnimationContext.js\";\nimport {\n ConditionalWrapper,\n ConditionalWrapperProps,\n} from \"./ConditionalWrapper.js\";\nimport { CssBaseline } from \"./CssBaseline.js\";\nimport {\n FullScreenOverlayProvider,\n FullScreenOverlayProviderProps,\n} from \"./FullScreenOverlayContext.js\";\nimport {\n type DefaultSupportedLanguages,\n TranslationProvider as OdysseyTranslationProvider,\n type TranslationProviderProps as OdysseyTranslationProviderProps,\n} from \"./i18n.generated/i18n.js\";\nimport {\n OdysseyCacheProvider,\n OdysseyCacheProviderProps,\n} from \"./OdysseyCacheProvider.js\";\nimport {\n OdysseyThemeProvider,\n OdysseyThemeProviderProps,\n} from \"./OdysseyThemeProvider.js\";\n\nconst scopedCssBaselineStyles = {\n height: \"inherit\",\n};\n\nexport type OdysseyProviderProps<\n SupportedLanguages extends string = DefaultSupportedLanguages,\n> = Omit<OdysseyCacheProviderProps, \"hasShadowDom\"> &\n FullScreenOverlayProviderProps &\n OdysseyThemeProviderProps &\n OdysseyTranslationProviderProps<SupportedLanguages> & {\n /** The content to render within the Odyssey context providers. */\n children: ReactNode;\n /**\n * If `true`, Odyssey components may animate unless the user prefers reduced motion.\n * @default true\n */\n hasAnimations?: boolean;\n /**\n * If `true`, emits global CssBaseline reset styles.\n * @default true\n */\n hasCssBaseline?: boolean;\n /**\n * If `true`, wraps children in a ScopedCssBaseline element. Note that this adds an extra `div` to the DOM.\n * @default true\n */\n hasScopedCssBaseline?: boolean;\n /**\n * If `true`, wraps children with OdysseyTranslationProvider. Set to `false` only when a translation provider already exists higher in the tree.\n * @default true\n */\n hasTranslationProvider?: boolean;\n };\n\n/**\n * Root provider for Odyssey. Composes theme, cache, translation, and full-screen overlay contexts in a single wrapper. Every application using Odyssey must render this provider at or near the tree root.\n */\nconst OdysseyProvider = <SupportedLanguages extends string>({\n children,\n contrastMode,\n designTokensOverride,\n emotionRoot,\n emotionRootElement,\n fullScreenOverlayId,\n hasAnimations = true,\n hasCssBaseline: hasGlobalCss,\n hasScopedCssBaseline = true,\n hasTranslationProvider = true,\n hasWrapperElement,\n languageCode,\n nonce,\n overlayParentElement,\n overlayType,\n shadowDomElement,\n shadowRootElement,\n stylisPlugins,\n themeOverride,\n translationOverrides,\n}: OdysseyProviderProps<SupportedLanguages>) => {\n const TranslationWrapper = useMemo<ConditionalWrapperProps[\"Wrapper\"]>(\n () => (children) => (\n <OdysseyTranslationProvider<SupportedLanguages>\n languageCode={languageCode}\n translationOverrides={translationOverrides}\n >\n {children}\n </OdysseyTranslationProvider>\n ),\n [languageCode, translationOverrides],\n );\n\n return (\n <OdysseyCacheProvider\n emotionRootElement={emotionRootElement || emotionRoot}\n nonce={nonce}\n stylisPlugins={stylisPlugins}\n >\n <OdysseyThemeProvider\n contrastMode={contrastMode}\n designTokensOverride={designTokensOverride}\n hasWrapperElement={hasWrapperElement}\n shadowRootElement={shadowRootElement ?? shadowDomElement}\n themeOverride={themeOverride}\n >\n <AnimationProvider hasAnimations={hasAnimations}>\n <ConditionalWrapper\n isWrapped={hasTranslationProvider}\n Wrapper={TranslationWrapper}\n >\n <FullScreenOverlayProvider\n fullScreenOverlayId={fullScreenOverlayId}\n hasShadowDom={Boolean(shadowRootElement || shadowDomElement)}\n overlayParentElement={overlayParentElement}\n overlayType={overlayType}\n >\n {hasGlobalCss && <CssBaseline />}\n\n {hasScopedCssBaseline ? (\n <ScopedCssBaseline sx={scopedCssBaselineStyles}>\n {children}\n </ScopedCssBaseline>\n ) : (\n children\n )}\n </FullScreenOverlayProvider>\n </ConditionalWrapper>\n </AnimationProvider>\n </OdysseyThemeProvider>\n </OdysseyCacheProvider>\n );\n};\n\nconst MemoizedOdysseyProvider = memo(OdysseyProvider);\nMemoizedOdysseyProvider.displayName = \"OdysseyProvider\";\n\nexport { MemoizedOdysseyProvider as OdysseyProvider };\n"],"mappings":";;;;;;;AAaA,IAAAA,MAAA,GAAAC,OAAA;AAEA,IAAAC,iBAAA,GAAAD,OAAA;AACA,IAAAE,mBAAA,GAAAF,OAAA;AAIA,IAAAG,YAAA,GAAAH,OAAA;AACA,IAAAI,yBAAA,GAAAJ,OAAA;AAIA,IAAAK,KAAA,GAAAL,OAAA;AAKA,IAAAM,qBAAA,GAAAN,OAAA;AAIA,IAAAO,qBAAA,GAAAP,OAAA;AAGmC,IAAAQ,WAAA,GAAAR,OAAA;AAAA,SAAAS,uBAAAC,CAAA,WAAAA,CAAA,IAAAA,CAAA,CAAAC,UAAA,GAAAD,CAAA,KAAAE,OAAA,EAAAF,CAAA;AArCnC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AA6BA,MAAMG,uBAAuB,GAAG;EAC9BC,MAAM,EAAE;AACV,CAAC;AAmCD,MAAMC,eAAe,GAAGA,CAAoC;EAC1DC,QAAQ;EACRC,YAAY;EACZC,oBAAoB;EACpBC,WAAW;EACXC,kBAAkB;EAClBC,mBAAmB;EACnBC,aAAa,GAAG,IAAI;EACpBC,cAAc,EAAEC,YAAY;EAC5BC,oBAAoB,GAAG,IAAI;EAC3BC,sBAAsB,GAAG,IAAI;EAC7BC,iBAAiB;EACjBC,YAAY;EACZC,KAAK;EACLC,oBAAoB;EACpBC,WAAW;EACXC,gBAAgB;EAChBC,iBAAiB;EACjBC,aAAa;EACbC,aAAa;EACbC;AACwC,CAAC,KA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AA,EAACpC,YAAA,CAAAgD,WAAW,IAAE,CAAC,EAE/B1B,oBAAoB,GACnB,IAAAjB,WAAA,CAAA+B,GAAA,EAAAa,mBAAA,CAAAxC,OAAA;cAAmByC,EAAE,EAAExC,uBAAwB;cAAAG,QAAA,EAC5CA;YAAQ,CACQ,CAAC,GAEpBA,QACD;UAAA,CACwB;QAAC,CACV;MAAC,CACJ;IAAC,CACA;EAAC,CACH,CAAC;AAE3B,CAAC;AAED,MAAMsC,uBAAuB,GAAAC,OAAA,CAAAxC,eAAA,GAAG,IAAAyC,WAAI,EAACzC,eAAe,CAAC;AACrDuC,uBAAuB,CAACG,WAAW,iDAAoB","ignoreList":[]}
1
+ {"version":3,"file":"OdysseyProvider.cjs","names":["_react","require","_AnimationContext","_ConditionalWrapper","_CssBaseline","_FullScreenOverlayContext","_i18n","_OdysseyCacheProvider","_OdysseyThemeProvider","_useColorScheme","_jsxRuntime","_interopRequireDefault","e","__esModule","default","scopedCssBaselineStyles","height","OdysseyProvider","children","colorScheme","contrastMode","designTokensOverride","emotionRoot","emotionRootElement","fullScreenOverlayId","hasAnimations","hasCssBaseline","hasGlobalCss","hasScopedCssBaseline","hasTranslationProvider","hasWrapperElement","languageCode","nonce","overlayParentElement","overlayType","shadowDomElement","shadowRootElement","stylisPlugins","themeOverride","translationOverrides","TranslationWrapper","useMemo","jsx","TranslationProvider","resolvedColorScheme","useResolvedColorScheme","OdysseyCacheProvider","OdysseyThemeProvider","AnimationProvider","ConditionalWrapper","isWrapped","Wrapper","jsxs","FullScreenOverlayProvider","hasShadowDom","Boolean","CssBaseline","_ScopedCssBaseline2","sx","MemoizedOdysseyProvider","exports","memo","displayName"],"sources":["../../src/OdysseyProvider.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 { ScopedCssBaseline } from \"@mui/material\";\nimport { memo, ReactNode, useMemo } from \"react\";\n\nimport { AnimationProvider } from \"./AnimationContext.js\";\nimport {\n ConditionalWrapper,\n ConditionalWrapperProps,\n} from \"./ConditionalWrapper.js\";\nimport { CssBaseline } from \"./CssBaseline.js\";\nimport {\n FullScreenOverlayProvider,\n FullScreenOverlayProviderProps,\n} from \"./FullScreenOverlayContext.js\";\nimport {\n type DefaultSupportedLanguages,\n TranslationProvider as OdysseyTranslationProvider,\n type TranslationProviderProps as OdysseyTranslationProviderProps,\n} from \"./i18n.generated/i18n.js\";\nimport {\n OdysseyCacheProvider,\n OdysseyCacheProviderProps,\n} from \"./OdysseyCacheProvider.js\";\nimport {\n OdysseyThemeProvider,\n OdysseyThemeProviderProps,\n} from \"./OdysseyThemeProvider.js\";\nimport { useResolvedColorScheme } from \"./useColorScheme.js\";\n\nconst scopedCssBaselineStyles = {\n height: \"inherit\",\n};\n\nexport type OdysseyProviderProps<\n SupportedLanguages extends string = DefaultSupportedLanguages,\n> = Omit<OdysseyCacheProviderProps, \"colorScheme\" | \"hasShadowDom\"> &\n FullScreenOverlayProviderProps &\n OdysseyThemeProviderProps &\n OdysseyTranslationProviderProps<SupportedLanguages> & {\n /** The content to render within the Odyssey context providers. */\n children: ReactNode;\n /**\n * If `true`, Odyssey components may animate unless the user prefers reduced motion.\n * @default true\n */\n hasAnimations?: boolean;\n /**\n * If `true`, emits global CssBaseline reset styles.\n * @default true\n */\n hasCssBaseline?: boolean;\n /**\n * If `true`, wraps children in a ScopedCssBaseline element. Note that this adds an extra `div` to the DOM.\n * @default true\n */\n hasScopedCssBaseline?: boolean;\n /**\n * If `true`, wraps children with OdysseyTranslationProvider. Set to `false` only when a translation provider already exists higher in the tree.\n * @default true\n */\n hasTranslationProvider?: boolean;\n };\n\n/**\n * Root provider for Odyssey. Composes theme, cache, translation, and full-screen overlay contexts in a single wrapper. Every application using Odyssey must render this provider at or near the tree root.\n */\nconst OdysseyProvider = <SupportedLanguages extends string>({\n children,\n colorScheme,\n contrastMode,\n designTokensOverride,\n emotionRoot,\n emotionRootElement,\n fullScreenOverlayId,\n hasAnimations = true,\n hasCssBaseline: hasGlobalCss,\n hasScopedCssBaseline = true,\n hasTranslationProvider = true,\n hasWrapperElement,\n languageCode,\n nonce,\n overlayParentElement,\n overlayType,\n shadowDomElement,\n shadowRootElement,\n stylisPlugins,\n themeOverride,\n translationOverrides,\n}: OdysseyProviderProps<SupportedLanguages>) => {\n const TranslationWrapper = useMemo<ConditionalWrapperProps[\"Wrapper\"]>(\n () => (children) => (\n <OdysseyTranslationProvider<SupportedLanguages>\n languageCode={languageCode}\n translationOverrides={translationOverrides}\n >\n {children}\n </OdysseyTranslationProvider>\n ),\n [languageCode, translationOverrides],\n );\n\n const resolvedColorScheme = useResolvedColorScheme({ colorScheme });\n\n return (\n <OdysseyCacheProvider\n colorScheme={resolvedColorScheme}\n emotionRootElement={emotionRootElement || emotionRoot}\n nonce={nonce}\n stylisPlugins={stylisPlugins}\n >\n <OdysseyThemeProvider\n colorScheme={colorScheme}\n contrastMode={contrastMode}\n designTokensOverride={designTokensOverride}\n hasWrapperElement={hasWrapperElement}\n shadowRootElement={shadowRootElement ?? shadowDomElement}\n themeOverride={themeOverride}\n >\n <AnimationProvider hasAnimations={hasAnimations}>\n <ConditionalWrapper\n isWrapped={hasTranslationProvider}\n Wrapper={TranslationWrapper}\n >\n <FullScreenOverlayProvider\n fullScreenOverlayId={fullScreenOverlayId}\n hasShadowDom={Boolean(shadowRootElement || shadowDomElement)}\n overlayParentElement={overlayParentElement}\n overlayType={overlayType}\n >\n {hasGlobalCss && <CssBaseline />}\n\n {hasScopedCssBaseline ? (\n <ScopedCssBaseline sx={scopedCssBaselineStyles}>\n {children}\n </ScopedCssBaseline>\n ) : (\n children\n )}\n </FullScreenOverlayProvider>\n </ConditionalWrapper>\n </AnimationProvider>\n </OdysseyThemeProvider>\n </OdysseyCacheProvider>\n );\n};\n\nconst MemoizedOdysseyProvider = memo(OdysseyProvider);\nMemoizedOdysseyProvider.displayName = \"OdysseyProvider\";\n\nexport { MemoizedOdysseyProvider as OdysseyProvider };\n"],"mappings":";;;;;;;AAaA,IAAAA,MAAA,GAAAC,OAAA;AAEA,IAAAC,iBAAA,GAAAD,OAAA;AACA,IAAAE,mBAAA,GAAAF,OAAA;AAIA,IAAAG,YAAA,GAAAH,OAAA;AACA,IAAAI,yBAAA,GAAAJ,OAAA;AAIA,IAAAK,KAAA,GAAAL,OAAA;AAKA,IAAAM,qBAAA,GAAAN,OAAA;AAIA,IAAAO,qBAAA,GAAAP,OAAA;AAIA,IAAAQ,eAAA,GAAAR,OAAA;AAA6D,IAAAS,WAAA,GAAAT,OAAA;AAAA,SAAAU,uBAAAC,CAAA,WAAAA,CAAA,IAAAA,CAAA,CAAAC,UAAA,GAAAD,CAAA,KAAAE,OAAA,EAAAF,CAAA;AAtC7D;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AA8BA,MAAMG,uBAAuB,GAAG;EAC9BC,MAAM,EAAE;AACV,CAAC;AAmCD,MAAMC,eAAe,GAAGA,CAAoC;EAC1DC,QAAQ;EACRC,WAAW;EACXC,YAAY;EACZC,oBAAoB;EACpBC,WAAW;EACXC,kBAAkB;EAClBC,mBAAmB;EACnBC,aAAa,GAAG,IAAI;EACpBC,cAAc,EAAEC,YAAY;EAC5BC,oBAAoB,GAAG,IAAI;EAC3BC,sBAAsB,GAAG,IAAI;EAC7BC,iBAAiB;EACjBC,YAAY;EACZC,KAAK;EACLC,oBAAoB;EACpBC,WAAW;EACXC,gBAAgB;EAChBC,iBAAiB;EACjBC,aAAa;EACbC,aAAa;EACbC;AACwC,CAAC,KAAK;EAC9C,MAAMC,kBAAkB,GA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