@okta/odyssey-react-mui 1.65.1 → 1.66.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 (499) hide show
  1. package/dist/cjs/Accordion.cjs +1 -1
  2. package/dist/cjs/Autocomplete.cjs +3 -1
  3. package/dist/cjs/Autocomplete.cjs.map +1 -1
  4. package/dist/cjs/Badge.cjs +1 -1
  5. package/dist/cjs/Banner.cjs +1 -1
  6. package/dist/cjs/Box.cjs +1 -1
  7. package/dist/cjs/Breadcrumbs.cjs +1 -1
  8. package/dist/cjs/Buttons/BaseButton.cjs +1 -1
  9. package/dist/cjs/Buttons/BaseMenuButton.cjs +1 -1
  10. package/dist/cjs/Buttons/Button.cjs +1 -1
  11. package/dist/cjs/Buttons/MenuButton.cjs +1 -1
  12. package/dist/cjs/Buttons/MenuItem.cjs +1 -1
  13. package/dist/cjs/Callout.cjs +1 -1
  14. package/dist/cjs/Card.cjs +1 -1
  15. package/dist/cjs/CircularProgress.cjs +1 -1
  16. package/dist/cjs/ConditionalWrapper.cjs +1 -1
  17. package/dist/cjs/DataTable/DataTable.cjs +1 -1
  18. package/dist/cjs/DataTable/DataTableRowActions.cjs +1 -1
  19. package/dist/cjs/DataTable/DataTableSettings.cjs +1 -1
  20. package/dist/cjs/DatePickers/DateField.cjs +1 -1
  21. package/dist/cjs/DatePickers/DateFieldActionBar.cjs +1 -1
  22. package/dist/cjs/DatePickers/DateFieldLocalizationProvider.cjs +1 -1
  23. package/dist/cjs/DatePickers/DatePicker.cjs +1 -1
  24. package/dist/cjs/DatePickers/TimeZonePicker.cjs +1 -1
  25. package/dist/cjs/Dialog.cjs +1 -1
  26. package/dist/cjs/Drawer.cjs +1 -1
  27. package/dist/cjs/EmptyState.cjs +1 -1
  28. package/dist/cjs/ErrorMessageList.cjs +1 -1
  29. package/dist/cjs/Field.cjs +1 -1
  30. package/dist/cjs/FieldError.cjs +1 -1
  31. package/dist/cjs/FieldHint.cjs +1 -1
  32. package/dist/cjs/FieldLabel.cjs +1 -1
  33. package/dist/cjs/Fields/Checkbox.cjs +1 -1
  34. package/dist/cjs/Fields/CheckboxGroup.cjs +1 -1
  35. package/dist/cjs/Fields/Radio.cjs +1 -1
  36. package/dist/cjs/Fields/RadioGroup.cjs +1 -1
  37. package/dist/cjs/Fieldset.cjs +1 -1
  38. package/dist/cjs/FileUploader/FileUploadIllustration.cjs +1 -1
  39. package/dist/cjs/FileUploader/FileUploadPreview.cjs +1 -1
  40. package/dist/cjs/FileUploader/FileUploader.cjs +1 -1
  41. package/dist/cjs/Form.cjs +1 -1
  42. package/dist/cjs/FullScreenOverlay.cjs +1 -1
  43. package/dist/cjs/FullScreenOverlayContext.cjs +1 -1
  44. package/dist/cjs/HintLink.cjs +1 -1
  45. package/dist/cjs/IconWithTooltip.cjs +1 -1
  46. package/dist/cjs/Link.cjs +1 -1
  47. package/dist/cjs/MuiPropsChild.cjs +1 -1
  48. package/dist/cjs/NativeSelect.cjs +1 -1
  49. package/dist/cjs/OdysseyCacheProvider.cjs +1 -1
  50. package/dist/cjs/OdysseyProvider.cjs +1 -1
  51. package/dist/cjs/OdysseyThemeProvider.cjs +1 -1
  52. package/dist/cjs/OdysseyThemeProviderPropsContext.cjs +1 -1
  53. package/dist/cjs/Pagination/Pagination.cjs +1 -1
  54. package/dist/cjs/PasswordField.cjs +1 -1
  55. package/dist/cjs/ScreenReaderText.cjs +1 -1
  56. package/dist/cjs/SearchField.cjs +1 -1
  57. package/dist/cjs/Select.cjs +1 -1
  58. package/dist/cjs/Stack.cjs +1 -1
  59. package/dist/cjs/Status.cjs +1 -1
  60. package/dist/cjs/Surface.cjs +1 -1
  61. package/dist/cjs/Switch.cjs +2 -2
  62. package/dist/cjs/Tabs.cjs +1 -1
  63. package/dist/cjs/Tag.cjs +1 -1
  64. package/dist/cjs/TagList.cjs +1 -1
  65. package/dist/cjs/TextField.cjs +1 -1
  66. package/dist/cjs/Toast.cjs +1 -1
  67. package/dist/cjs/ToastStack.cjs +1 -1
  68. package/dist/cjs/Tooltip.cjs +1 -1
  69. package/dist/cjs/Typography.cjs +12 -12
  70. package/dist/cjs/__internal.cjs +22 -0
  71. package/dist/cjs/__internal.cjs.map +1 -1
  72. package/dist/cjs/icons.generated/Add.cjs +1 -1
  73. package/dist/cjs/icons.generated/AddCircle.cjs +1 -1
  74. package/dist/cjs/icons.generated/Apps.cjs +1 -1
  75. package/dist/cjs/icons.generated/AppsSelected.cjs +1 -1
  76. package/dist/cjs/icons.generated/ArrowBottom.cjs +1 -1
  77. package/dist/cjs/icons.generated/ArrowDown.cjs +1 -1
  78. package/dist/cjs/icons.generated/ArrowLeft.cjs +1 -1
  79. package/dist/cjs/icons.generated/ArrowLowerLeft.cjs +1 -1
  80. package/dist/cjs/icons.generated/ArrowLowerRight.cjs +1 -1
  81. package/dist/cjs/icons.generated/ArrowRight.cjs +1 -1
  82. package/dist/cjs/icons.generated/ArrowTop.cjs +1 -1
  83. package/dist/cjs/icons.generated/ArrowUnsorted.cjs +1 -1
  84. package/dist/cjs/icons.generated/ArrowUp.cjs +1 -1
  85. package/dist/cjs/icons.generated/ArrowUpperLeft.cjs +1 -1
  86. package/dist/cjs/icons.generated/ArrowUpperRight.cjs +1 -1
  87. package/dist/cjs/icons.generated/Bug.cjs +1 -1
  88. package/dist/cjs/icons.generated/Calendar.cjs +1 -1
  89. package/dist/cjs/icons.generated/Call.cjs +1 -1
  90. package/dist/cjs/icons.generated/Chat.cjs +1 -1
  91. package/dist/cjs/icons.generated/Check.cjs +1 -1
  92. package/dist/cjs/icons.generated/CheckCircleFilled.cjs +1 -1
  93. package/dist/cjs/icons.generated/ChevronDown.cjs +1 -1
  94. package/dist/cjs/icons.generated/ChevronLeft.cjs +1 -1
  95. package/dist/cjs/icons.generated/ChevronRight.cjs +1 -1
  96. package/dist/cjs/icons.generated/ChevronUp.cjs +1 -1
  97. package/dist/cjs/icons.generated/Clock.cjs +1 -1
  98. package/dist/cjs/icons.generated/Close.cjs +1 -1
  99. package/dist/cjs/icons.generated/CloseCircleFilled.cjs +1 -1
  100. package/dist/cjs/icons.generated/CollapseLeft.cjs +1 -1
  101. package/dist/cjs/icons.generated/CollapseRight.cjs +1 -1
  102. package/dist/cjs/icons.generated/Copy.cjs +1 -1
  103. package/dist/cjs/icons.generated/Customizations.cjs +1 -1
  104. package/dist/cjs/icons.generated/CustomizationsSelected.cjs +1 -1
  105. package/dist/cjs/icons.generated/DangerDiamond.cjs +1 -1
  106. package/dist/cjs/icons.generated/DangerDiamondFilled.cjs +1 -1
  107. package/dist/cjs/icons.generated/Delete.cjs +1 -1
  108. package/dist/cjs/icons.generated/Deny.cjs +1 -1
  109. package/dist/cjs/icons.generated/Devices.cjs +1 -1
  110. package/dist/cjs/icons.generated/Directory.cjs +1 -1
  111. package/dist/cjs/icons.generated/DirectorySelected.cjs +1 -1
  112. package/dist/cjs/icons.generated/Documentation.cjs +1 -1
  113. package/dist/cjs/icons.generated/Download.cjs +1 -1
  114. package/dist/cjs/icons.generated/DragIndicator.cjs +1 -1
  115. package/dist/cjs/icons.generated/Edit.cjs +1 -1
  116. package/dist/cjs/icons.generated/ExpandLeft.cjs +1 -1
  117. package/dist/cjs/icons.generated/ExpandRight.cjs +1 -1
  118. package/dist/cjs/icons.generated/ExternalLink.cjs +1 -1
  119. package/dist/cjs/icons.generated/Filter.cjs +1 -1
  120. package/dist/cjs/icons.generated/Folder.cjs +1 -1
  121. package/dist/cjs/icons.generated/Globe.cjs +1 -1
  122. package/dist/cjs/icons.generated/Grid.cjs +1 -1
  123. package/dist/cjs/icons.generated/Group.cjs +1 -1
  124. package/dist/cjs/icons.generated/Happy.cjs +1 -1
  125. package/dist/cjs/icons.generated/Hide.cjs +1 -1
  126. package/dist/cjs/icons.generated/Home.cjs +1 -1
  127. package/dist/cjs/icons.generated/HomeSelected.cjs +1 -1
  128. package/dist/cjs/icons.generated/IdentityGovernance.cjs +1 -1
  129. package/dist/cjs/icons.generated/IdentityGovernanceSelected.cjs +1 -1
  130. package/dist/cjs/icons.generated/InformationCircle.cjs +1 -1
  131. package/dist/cjs/icons.generated/InformationCircleFilled.cjs +1 -1
  132. package/dist/cjs/icons.generated/Link.cjs +1 -1
  133. package/dist/cjs/icons.generated/List.cjs +1 -1
  134. package/dist/cjs/icons.generated/Lock.cjs +1 -1
  135. package/dist/cjs/icons.generated/Menu.cjs +1 -1
  136. package/dist/cjs/icons.generated/More.cjs +1 -1
  137. package/dist/cjs/icons.generated/Neutral.cjs +1 -1
  138. package/dist/cjs/icons.generated/Notification.cjs +1 -1
  139. package/dist/cjs/icons.generated/Pause.cjs +1 -1
  140. package/dist/cjs/icons.generated/QuestionCircle.cjs +1 -1
  141. package/dist/cjs/icons.generated/QuestionCircleFilled.cjs +1 -1
  142. package/dist/cjs/icons.generated/Refresh.cjs +1 -1
  143. package/dist/cjs/icons.generated/Reports.cjs +1 -1
  144. package/dist/cjs/icons.generated/ReportsSelected.cjs +1 -1
  145. package/dist/cjs/icons.generated/Reset.cjs +1 -1
  146. package/dist/cjs/icons.generated/Resume.cjs +1 -1
  147. package/dist/cjs/icons.generated/Sad.cjs +1 -1
  148. package/dist/cjs/icons.generated/Same.cjs +1 -1
  149. package/dist/cjs/icons.generated/Search.cjs +1 -1
  150. package/dist/cjs/icons.generated/Security.cjs +1 -1
  151. package/dist/cjs/icons.generated/SecuritySelected.cjs +1 -1
  152. package/dist/cjs/icons.generated/Send.cjs +1 -1
  153. package/dist/cjs/icons.generated/Server.cjs +1 -1
  154. package/dist/cjs/icons.generated/Settings.cjs +1 -1
  155. package/dist/cjs/icons.generated/SettingsSelected.cjs +1 -1
  156. package/dist/cjs/icons.generated/Show.cjs +1 -1
  157. package/dist/cjs/icons.generated/Sparkle.cjs +1 -1
  158. package/dist/cjs/icons.generated/Subtract.cjs +1 -1
  159. package/dist/cjs/icons.generated/Sync.cjs +1 -1
  160. package/dist/cjs/icons.generated/ThumbsDown.cjs +1 -1
  161. package/dist/cjs/icons.generated/ThumbsUp.cjs +1 -1
  162. package/dist/cjs/icons.generated/Unlock.cjs +1 -1
  163. package/dist/cjs/icons.generated/Upload.cjs +1 -1
  164. package/dist/cjs/icons.generated/User.cjs +1 -1
  165. package/dist/cjs/icons.generated/Video.cjs +1 -1
  166. package/dist/cjs/icons.generated/Warning.cjs +1 -1
  167. package/dist/cjs/icons.generated/WarningFilled.cjs +1 -1
  168. package/dist/cjs/icons.generated/Workflows.cjs +1 -1
  169. package/dist/cjs/icons.generated/WorkflowsSelected.cjs +1 -1
  170. package/dist/cjs/labs/AppTile.cjs +1 -1
  171. package/dist/cjs/labs/DataFilters.cjs +2 -2
  172. package/dist/cjs/labs/DataTable.cjs +1 -1
  173. package/dist/cjs/labs/DataTablePagination.cjs +1 -1
  174. package/dist/cjs/labs/DataView/BulkActionsMenu.cjs +6 -4
  175. package/dist/cjs/labs/DataView/BulkActionsMenu.cjs.map +1 -1
  176. package/dist/cjs/labs/DataView/CardLayoutContent.cjs +11 -3
  177. package/dist/cjs/labs/DataView/CardLayoutContent.cjs.map +1 -1
  178. package/dist/cjs/labs/DataView/DataCard.cjs +6 -3
  179. package/dist/cjs/labs/DataView/DataCard.cjs.map +1 -1
  180. package/dist/cjs/labs/DataView/DataTable.cjs +1 -1
  181. package/dist/cjs/labs/DataView/DataView.cjs +5 -1
  182. package/dist/cjs/labs/DataView/DataView.cjs.map +1 -1
  183. package/dist/cjs/labs/DataView/DetailPanel.cjs +1 -1
  184. package/dist/cjs/labs/DataView/LayoutSwitcher.cjs +1 -1
  185. package/dist/cjs/labs/DataView/RowActions.cjs +1 -1
  186. package/dist/cjs/labs/DataView/TableLayoutContent.cjs +3 -2
  187. package/dist/cjs/labs/DataView/TableLayoutContent.cjs.map +1 -1
  188. package/dist/cjs/labs/DataView/TableSettings.cjs +1 -1
  189. package/dist/cjs/labs/DataView/componentTypes.cjs.map +1 -1
  190. package/dist/cjs/labs/DatePickers/DateTimeField.cjs +1 -1
  191. package/dist/cjs/labs/DatePickers/DateTimePicker.cjs +1 -1
  192. package/dist/cjs/labs/OdysseyPickers/ComposablePicker.cjs +3 -1
  193. package/dist/cjs/labs/OdysseyPickers/ComposablePicker.cjs.map +1 -1
  194. package/dist/cjs/labs/OdysseyPickers/Picker.cjs +3 -1
  195. package/dist/cjs/labs/OdysseyPickers/Picker.cjs.map +1 -1
  196. package/dist/cjs/labs/OdysseyPickers/PickerVirtualizationListBox.cjs +1 -1
  197. package/dist/cjs/labs/OdysseyPickers/PickerWithOptionAdornment.cjs +3 -1
  198. package/dist/cjs/labs/OdysseyPickers/PickerWithOptionAdornment.cjs.map +1 -1
  199. package/dist/cjs/labs/OdysseyPickers/SearchDropdown.cjs +1 -1
  200. package/dist/cjs/labs/PageTemplate/DocumentationLink.cjs +1 -1
  201. package/dist/cjs/labs/PageTemplate/Layout.cjs +1 -1
  202. package/dist/cjs/labs/PageTemplate/PageTemplate.cjs +1 -1
  203. package/dist/cjs/labs/PaginatedTable.cjs +1 -1
  204. package/dist/cjs/labs/StaticTable.cjs +1 -1
  205. package/dist/cjs/labs/UserProfile.cjs +1 -1
  206. package/dist/cjs/labs/UserProfileMenuButton.cjs +1 -1
  207. package/dist/cjs/logos.generated/Duo.cjs +1 -1
  208. package/dist/cjs/logos.generated/GoogleAuth.cjs +1 -1
  209. package/dist/cjs/logos.generated/OktaVerify.cjs +1 -1
  210. package/dist/cjs/logos.generated/Persona.cjs +1 -1
  211. package/dist/cjs/logos.generated/SymantecVip.cjs +1 -1
  212. package/dist/cjs/logos.generated/Yubikey.cjs +1 -1
  213. package/dist/cjs/theme/useMediaQuery.cjs +2 -1
  214. package/dist/cjs/theme/useMediaQuery.cjs.map +1 -1
  215. package/dist/cjs/ui-shell/AppSwitcher/AppSwitcher.cjs +1 -1
  216. package/dist/cjs/ui-shell/InnerAppContainer.cjs +1 -1
  217. package/dist/cjs/ui-shell/NarrowUiShellContent.cjs +3 -2
  218. package/dist/cjs/ui-shell/NarrowUiShellContent.cjs.map +1 -1
  219. package/dist/cjs/ui-shell/SideNav/NavAccordion.cjs +1 -1
  220. package/dist/cjs/ui-shell/SideNav/SideNav.cjs +1 -1
  221. package/dist/cjs/ui-shell/SideNav/SideNavFooterContent.cjs +1 -1
  222. package/dist/cjs/ui-shell/SideNav/SideNavHeader.cjs +1 -1
  223. package/dist/cjs/ui-shell/SideNav/SideNavItemContent.cjs +2 -2
  224. package/dist/cjs/ui-shell/SideNav/SideNavItemLinkContent.cjs +1 -1
  225. package/dist/cjs/ui-shell/SideNav/SideNavSortableList.cjs +1 -1
  226. package/dist/cjs/ui-shell/SideNav/SideNavToggleButton.cjs +4 -3
  227. package/dist/cjs/ui-shell/SideNav/SideNavToggleButton.cjs.map +1 -1
  228. package/dist/cjs/ui-shell/SkipToContent.cjs +1 -1
  229. package/dist/cjs/ui-shell/TopNav/HamburgerMenuIcon.cjs +1 -1
  230. package/dist/cjs/ui-shell/TopNav/TopNav.cjs +1 -1
  231. package/dist/cjs/ui-shell/TopNav/TopNavLinksList.cjs +1 -1
  232. package/dist/cjs/ui-shell/TopNav/TopNavListItem.cjs +1 -1
  233. package/dist/cjs/ui-shell/UiShell.cjs +1 -1
  234. package/dist/cjs/ui-shell/UiShellLogo.cjs +1 -1
  235. package/dist/cjs/ui-shell/WideUiShellContent.cjs +1 -1
  236. package/dist/cjs/web-component/odysseyWebComponentVersion.generated.cjs +1 -1
  237. package/dist/cjs/web-component/odysseyWebComponentVersion.generated.cjs.map +1 -1
  238. package/dist/esm/Accordion.js +1 -1
  239. package/dist/esm/Autocomplete.js +3 -1
  240. package/dist/esm/Autocomplete.js.map +1 -1
  241. package/dist/esm/Badge.js +1 -1
  242. package/dist/esm/Banner.js +1 -1
  243. package/dist/esm/Box.js +1 -1
  244. package/dist/esm/Breadcrumbs.js +1 -1
  245. package/dist/esm/Buttons/BaseButton.js +1 -1
  246. package/dist/esm/Buttons/BaseMenuButton.js +1 -1
  247. package/dist/esm/Buttons/Button.js +1 -1
  248. package/dist/esm/Buttons/MenuButton.js +1 -1
  249. package/dist/esm/Buttons/MenuItem.js +1 -1
  250. package/dist/esm/Callout.js +1 -1
  251. package/dist/esm/Card.js +1 -1
  252. package/dist/esm/CircularProgress.js +1 -1
  253. package/dist/esm/ConditionalWrapper.js +1 -1
  254. package/dist/esm/DataTable/DataTable.js +1 -1
  255. package/dist/esm/DataTable/DataTableRowActions.js +1 -1
  256. package/dist/esm/DataTable/DataTableSettings.js +1 -1
  257. package/dist/esm/DatePickers/DateField.js +1 -1
  258. package/dist/esm/DatePickers/DateFieldActionBar.js +1 -1
  259. package/dist/esm/DatePickers/DateFieldLocalizationProvider.js +1 -1
  260. package/dist/esm/DatePickers/DatePicker.js +1 -1
  261. package/dist/esm/DatePickers/TimeZonePicker.js +1 -1
  262. package/dist/esm/Dialog.js +1 -1
  263. package/dist/esm/Drawer.js +1 -1
  264. package/dist/esm/EmptyState.js +1 -1
  265. package/dist/esm/ErrorMessageList.js +1 -1
  266. package/dist/esm/Field.js +1 -1
  267. package/dist/esm/FieldError.js +1 -1
  268. package/dist/esm/FieldHint.js +1 -1
  269. package/dist/esm/FieldLabel.js +1 -1
  270. package/dist/esm/Fields/Checkbox.js +1 -1
  271. package/dist/esm/Fields/CheckboxGroup.js +1 -1
  272. package/dist/esm/Fields/Radio.js +1 -1
  273. package/dist/esm/Fields/RadioGroup.js +1 -1
  274. package/dist/esm/Fieldset.js +1 -1
  275. package/dist/esm/FileUploader/FileUploadIllustration.js +1 -1
  276. package/dist/esm/FileUploader/FileUploadPreview.js +1 -1
  277. package/dist/esm/FileUploader/FileUploader.js +1 -1
  278. package/dist/esm/Form.js +1 -1
  279. package/dist/esm/FullScreenOverlay.js +1 -1
  280. package/dist/esm/FullScreenOverlayContext.js +1 -1
  281. package/dist/esm/HintLink.js +1 -1
  282. package/dist/esm/IconWithTooltip.js +1 -1
  283. package/dist/esm/Link.js +1 -1
  284. package/dist/esm/MuiPropsChild.js +1 -1
  285. package/dist/esm/NativeSelect.js +1 -1
  286. package/dist/esm/OdysseyCacheProvider.js +1 -1
  287. package/dist/esm/OdysseyProvider.js +1 -1
  288. package/dist/esm/OdysseyThemeProvider.js +1 -1
  289. package/dist/esm/OdysseyThemeProviderPropsContext.js +1 -1
  290. package/dist/esm/Pagination/Pagination.js +1 -1
  291. package/dist/esm/PasswordField.js +1 -1
  292. package/dist/esm/ScreenReaderText.js +1 -1
  293. package/dist/esm/SearchField.js +1 -1
  294. package/dist/esm/Select.js +1 -1
  295. package/dist/esm/Stack.js +1 -1
  296. package/dist/esm/Status.js +1 -1
  297. package/dist/esm/Surface.js +1 -1
  298. package/dist/esm/Switch.js +2 -2
  299. package/dist/esm/Tabs.js +1 -1
  300. package/dist/esm/Tag.js +1 -1
  301. package/dist/esm/TagList.js +1 -1
  302. package/dist/esm/TextField.js +1 -1
  303. package/dist/esm/Toast.js +1 -1
  304. package/dist/esm/ToastStack.js +1 -1
  305. package/dist/esm/Tooltip.js +1 -1
  306. package/dist/esm/Typography.js +12 -12
  307. package/dist/esm/__internal.js +2 -0
  308. package/dist/esm/__internal.js.map +1 -1
  309. package/dist/esm/icons.generated/Add.js +1 -1
  310. package/dist/esm/icons.generated/AddCircle.js +1 -1
  311. package/dist/esm/icons.generated/Apps.js +1 -1
  312. package/dist/esm/icons.generated/AppsSelected.js +1 -1
  313. package/dist/esm/icons.generated/ArrowBottom.js +1 -1
  314. package/dist/esm/icons.generated/ArrowDown.js +1 -1
  315. package/dist/esm/icons.generated/ArrowLeft.js +1 -1
  316. package/dist/esm/icons.generated/ArrowLowerLeft.js +1 -1
  317. package/dist/esm/icons.generated/ArrowLowerRight.js +1 -1
  318. package/dist/esm/icons.generated/ArrowRight.js +1 -1
  319. package/dist/esm/icons.generated/ArrowTop.js +1 -1
  320. package/dist/esm/icons.generated/ArrowUnsorted.js +1 -1
  321. package/dist/esm/icons.generated/ArrowUp.js +1 -1
  322. package/dist/esm/icons.generated/ArrowUpperLeft.js +1 -1
  323. package/dist/esm/icons.generated/ArrowUpperRight.js +1 -1
  324. package/dist/esm/icons.generated/Bug.js +1 -1
  325. package/dist/esm/icons.generated/Calendar.js +1 -1
  326. package/dist/esm/icons.generated/Call.js +1 -1
  327. package/dist/esm/icons.generated/Chat.js +1 -1
  328. package/dist/esm/icons.generated/Check.js +1 -1
  329. package/dist/esm/icons.generated/CheckCircleFilled.js +1 -1
  330. package/dist/esm/icons.generated/ChevronDown.js +1 -1
  331. package/dist/esm/icons.generated/ChevronLeft.js +1 -1
  332. package/dist/esm/icons.generated/ChevronRight.js +1 -1
  333. package/dist/esm/icons.generated/ChevronUp.js +1 -1
  334. package/dist/esm/icons.generated/Clock.js +1 -1
  335. package/dist/esm/icons.generated/Close.js +1 -1
  336. package/dist/esm/icons.generated/CloseCircleFilled.js +1 -1
  337. package/dist/esm/icons.generated/CollapseLeft.js +1 -1
  338. package/dist/esm/icons.generated/CollapseRight.js +1 -1
  339. package/dist/esm/icons.generated/Copy.js +1 -1
  340. package/dist/esm/icons.generated/Customizations.js +1 -1
  341. package/dist/esm/icons.generated/CustomizationsSelected.js +1 -1
  342. package/dist/esm/icons.generated/DangerDiamond.js +1 -1
  343. package/dist/esm/icons.generated/DangerDiamondFilled.js +1 -1
  344. package/dist/esm/icons.generated/Delete.js +1 -1
  345. package/dist/esm/icons.generated/Deny.js +1 -1
  346. package/dist/esm/icons.generated/Devices.js +1 -1
  347. package/dist/esm/icons.generated/Directory.js +1 -1
  348. package/dist/esm/icons.generated/DirectorySelected.js +1 -1
  349. package/dist/esm/icons.generated/Documentation.js +1 -1
  350. package/dist/esm/icons.generated/Download.js +1 -1
  351. package/dist/esm/icons.generated/DragIndicator.js +1 -1
  352. package/dist/esm/icons.generated/Edit.js +1 -1
  353. package/dist/esm/icons.generated/ExpandLeft.js +1 -1
  354. package/dist/esm/icons.generated/ExpandRight.js +1 -1
  355. package/dist/esm/icons.generated/ExternalLink.js +1 -1
  356. package/dist/esm/icons.generated/Filter.js +1 -1
  357. package/dist/esm/icons.generated/Folder.js +1 -1
  358. package/dist/esm/icons.generated/Globe.js +1 -1
  359. package/dist/esm/icons.generated/Grid.js +1 -1
  360. package/dist/esm/icons.generated/Group.js +1 -1
  361. package/dist/esm/icons.generated/Happy.js +1 -1
  362. package/dist/esm/icons.generated/Hide.js +1 -1
  363. package/dist/esm/icons.generated/Home.js +1 -1
  364. package/dist/esm/icons.generated/HomeSelected.js +1 -1
  365. package/dist/esm/icons.generated/IdentityGovernance.js +1 -1
  366. package/dist/esm/icons.generated/IdentityGovernanceSelected.js +1 -1
  367. package/dist/esm/icons.generated/InformationCircle.js +1 -1
  368. package/dist/esm/icons.generated/InformationCircleFilled.js +1 -1
  369. package/dist/esm/icons.generated/Link.js +1 -1
  370. package/dist/esm/icons.generated/List.js +1 -1
  371. package/dist/esm/icons.generated/Lock.js +1 -1
  372. package/dist/esm/icons.generated/Menu.js +1 -1
  373. package/dist/esm/icons.generated/More.js +1 -1
  374. package/dist/esm/icons.generated/Neutral.js +1 -1
  375. package/dist/esm/icons.generated/Notification.js +1 -1
  376. package/dist/esm/icons.generated/Pause.js +1 -1
  377. package/dist/esm/icons.generated/QuestionCircle.js +1 -1
  378. package/dist/esm/icons.generated/QuestionCircleFilled.js +1 -1
  379. package/dist/esm/icons.generated/Refresh.js +1 -1
  380. package/dist/esm/icons.generated/Reports.js +1 -1
  381. package/dist/esm/icons.generated/ReportsSelected.js +1 -1
  382. package/dist/esm/icons.generated/Reset.js +1 -1
  383. package/dist/esm/icons.generated/Resume.js +1 -1
  384. package/dist/esm/icons.generated/Sad.js +1 -1
  385. package/dist/esm/icons.generated/Same.js +1 -1
  386. package/dist/esm/icons.generated/Search.js +1 -1
  387. package/dist/esm/icons.generated/Security.js +1 -1
  388. package/dist/esm/icons.generated/SecuritySelected.js +1 -1
  389. package/dist/esm/icons.generated/Send.js +1 -1
  390. package/dist/esm/icons.generated/Server.js +1 -1
  391. package/dist/esm/icons.generated/Settings.js +1 -1
  392. package/dist/esm/icons.generated/SettingsSelected.js +1 -1
  393. package/dist/esm/icons.generated/Show.js +1 -1
  394. package/dist/esm/icons.generated/Sparkle.js +1 -1
  395. package/dist/esm/icons.generated/Subtract.js +1 -1
  396. package/dist/esm/icons.generated/Sync.js +1 -1
  397. package/dist/esm/icons.generated/ThumbsDown.js +1 -1
  398. package/dist/esm/icons.generated/ThumbsUp.js +1 -1
  399. package/dist/esm/icons.generated/Unlock.js +1 -1
  400. package/dist/esm/icons.generated/Upload.js +1 -1
  401. package/dist/esm/icons.generated/User.js +1 -1
  402. package/dist/esm/icons.generated/Video.js +1 -1
  403. package/dist/esm/icons.generated/Warning.js +1 -1
  404. package/dist/esm/icons.generated/WarningFilled.js +1 -1
  405. package/dist/esm/icons.generated/Workflows.js +1 -1
  406. package/dist/esm/icons.generated/WorkflowsSelected.js +1 -1
  407. package/dist/esm/labs/AppTile.js +1 -1
  408. package/dist/esm/labs/DataFilters.js +2 -2
  409. package/dist/esm/labs/DataTable.js +1 -1
  410. package/dist/esm/labs/DataTablePagination.js +1 -1
  411. package/dist/esm/labs/DataView/BulkActionsMenu.js +7 -5
  412. package/dist/esm/labs/DataView/BulkActionsMenu.js.map +1 -1
  413. package/dist/esm/labs/DataView/CardLayoutContent.js +11 -3
  414. package/dist/esm/labs/DataView/CardLayoutContent.js.map +1 -1
  415. package/dist/esm/labs/DataView/DataCard.js +7 -4
  416. package/dist/esm/labs/DataView/DataCard.js.map +1 -1
  417. package/dist/esm/labs/DataView/DataTable.js +1 -1
  418. package/dist/esm/labs/DataView/DataView.js +5 -1
  419. package/dist/esm/labs/DataView/DataView.js.map +1 -1
  420. package/dist/esm/labs/DataView/DetailPanel.js +1 -1
  421. package/dist/esm/labs/DataView/LayoutSwitcher.js +1 -1
  422. package/dist/esm/labs/DataView/RowActions.js +1 -1
  423. package/dist/esm/labs/DataView/TableLayoutContent.js +3 -2
  424. package/dist/esm/labs/DataView/TableLayoutContent.js.map +1 -1
  425. package/dist/esm/labs/DataView/TableSettings.js +1 -1
  426. package/dist/esm/labs/DataView/componentTypes.js.map +1 -1
  427. package/dist/esm/labs/DatePickers/DateTimeField.js +1 -1
  428. package/dist/esm/labs/DatePickers/DateTimePicker.js +1 -1
  429. package/dist/esm/labs/OdysseyPickers/ComposablePicker.js +3 -1
  430. package/dist/esm/labs/OdysseyPickers/ComposablePicker.js.map +1 -1
  431. package/dist/esm/labs/OdysseyPickers/Picker.js +3 -1
  432. package/dist/esm/labs/OdysseyPickers/Picker.js.map +1 -1
  433. package/dist/esm/labs/OdysseyPickers/PickerVirtualizationListBox.js +1 -1
  434. package/dist/esm/labs/OdysseyPickers/PickerWithOptionAdornment.js +3 -1
  435. package/dist/esm/labs/OdysseyPickers/PickerWithOptionAdornment.js.map +1 -1
  436. package/dist/esm/labs/OdysseyPickers/SearchDropdown.js +1 -1
  437. package/dist/esm/labs/PageTemplate/DocumentationLink.js +1 -1
  438. package/dist/esm/labs/PageTemplate/Layout.js +1 -1
  439. package/dist/esm/labs/PageTemplate/PageTemplate.js +1 -1
  440. package/dist/esm/labs/PaginatedTable.js +1 -1
  441. package/dist/esm/labs/StaticTable.js +1 -1
  442. package/dist/esm/labs/UserProfile.js +1 -1
  443. package/dist/esm/labs/UserProfileMenuButton.js +1 -1
  444. package/dist/esm/logos.generated/Duo.js +1 -1
  445. package/dist/esm/logos.generated/GoogleAuth.js +1 -1
  446. package/dist/esm/logos.generated/OktaVerify.js +1 -1
  447. package/dist/esm/logos.generated/Persona.js +1 -1
  448. package/dist/esm/logos.generated/SymantecVip.js +1 -1
  449. package/dist/esm/logos.generated/Yubikey.js +1 -1
  450. package/dist/esm/theme/useMediaQuery.js +2 -1
  451. package/dist/esm/theme/useMediaQuery.js.map +1 -1
  452. package/dist/esm/ui-shell/AppSwitcher/AppSwitcher.js +1 -1
  453. package/dist/esm/ui-shell/InnerAppContainer.js +1 -1
  454. package/dist/esm/ui-shell/NarrowUiShellContent.js +4 -3
  455. package/dist/esm/ui-shell/NarrowUiShellContent.js.map +1 -1
  456. package/dist/esm/ui-shell/SideNav/NavAccordion.js +1 -1
  457. package/dist/esm/ui-shell/SideNav/SideNav.js +1 -1
  458. package/dist/esm/ui-shell/SideNav/SideNavFooterContent.js +1 -1
  459. package/dist/esm/ui-shell/SideNav/SideNavHeader.js +1 -1
  460. package/dist/esm/ui-shell/SideNav/SideNavItemContent.js +2 -2
  461. package/dist/esm/ui-shell/SideNav/SideNavItemLinkContent.js +1 -1
  462. package/dist/esm/ui-shell/SideNav/SideNavSortableList.js +1 -1
  463. package/dist/esm/ui-shell/SideNav/SideNavToggleButton.js +4 -3
  464. package/dist/esm/ui-shell/SideNav/SideNavToggleButton.js.map +1 -1
  465. package/dist/esm/ui-shell/SkipToContent.js +1 -1
  466. package/dist/esm/ui-shell/TopNav/HamburgerMenuIcon.js +1 -1
  467. package/dist/esm/ui-shell/TopNav/TopNav.js +1 -1
  468. package/dist/esm/ui-shell/TopNav/TopNavLinksList.js +1 -1
  469. package/dist/esm/ui-shell/TopNav/TopNavListItem.js +1 -1
  470. package/dist/esm/ui-shell/UiShell.js +1 -1
  471. package/dist/esm/ui-shell/UiShellLogo.js +1 -1
  472. package/dist/esm/ui-shell/WideUiShellContent.js +1 -1
  473. package/dist/esm/web-component/odysseyWebComponentVersion.generated.js +1 -1
  474. package/dist/esm/web-component/odysseyWebComponentVersion.generated.js.map +1 -1
  475. package/dist/tsconfig.production.tsbuildinfo +1 -1
  476. package/dist/types/Autocomplete.d.ts +9 -1
  477. package/dist/types/Autocomplete.d.ts.map +1 -1
  478. package/dist/types/__internal.d.ts +2 -0
  479. package/dist/types/__internal.d.ts.map +1 -1
  480. package/dist/types/labs/DataView/BulkActionsMenu.d.ts +1 -0
  481. package/dist/types/labs/DataView/BulkActionsMenu.d.ts.map +1 -1
  482. package/dist/types/labs/DataView/CardLayoutContent.d.ts +1 -0
  483. package/dist/types/labs/DataView/CardLayoutContent.d.ts.map +1 -1
  484. package/dist/types/labs/DataView/DataCard.d.ts +6 -1
  485. package/dist/types/labs/DataView/DataCard.d.ts.map +1 -1
  486. package/dist/types/labs/DataView/DataView.d.ts.map +1 -1
  487. package/dist/types/labs/DataView/TableLayoutContent.d.ts +1 -0
  488. package/dist/types/labs/DataView/TableLayoutContent.d.ts.map +1 -1
  489. package/dist/types/labs/DataView/componentTypes.d.ts +7 -0
  490. package/dist/types/labs/DataView/componentTypes.d.ts.map +1 -1
  491. package/dist/types/labs/OdysseyPickers/ComposablePicker.d.ts +1 -1
  492. package/dist/types/labs/OdysseyPickers/ComposablePicker.d.ts.map +1 -1
  493. package/dist/types/labs/OdysseyPickers/Picker.d.ts.map +1 -1
  494. package/dist/types/labs/OdysseyPickers/PickerWithOptionAdornment.d.ts.map +1 -1
  495. package/dist/types/theme/useMediaQuery.d.ts.map +1 -1
  496. package/dist/types/ui-shell/NarrowUiShellContent.d.ts.map +1 -1
  497. package/dist/types/ui-shell/SideNav/SideNavToggleButton.d.ts.map +1 -1
  498. package/dist/types/web-component/odysseyWebComponentVersion.generated.d.ts +1 -1
  499. package/package.json +26 -19
@@ -44,6 +44,6 @@ const Layout = ({
44
44
  });
45
45
  };
46
46
  const MemoizedLayout = memo(Layout);
47
- MemoizedLayout.displayName = "Layout::pkg=odyssey&odysseyV=1.65.1";
47
+ MemoizedLayout.displayName = "Layout::pkg=odyssey&odysseyV=1.66.0";
48
48
  export { MemoizedLayout as Layout };
49
49
  //# sourceMappingURL=Layout.js.map
@@ -163,6 +163,6 @@ const PageTemplate = ({
163
163
  });
164
164
  };
165
165
  const MemoizedPageTemplate = memo(PageTemplate);
166
- MemoizedPageTemplate.displayName = "PageTemplate::pkg=odyssey&odysseyV=1.65.1";
166
+ MemoizedPageTemplate.displayName = "PageTemplate::pkg=odyssey&odysseyV=1.66.0";
167
167
  export { MemoizedPageTemplate as PageTemplate };
168
168
  //# sourceMappingURL=PageTemplate.js.map
@@ -166,6 +166,6 @@ const PaginatedTable = ({
166
166
  });
167
167
  };
168
168
  const MemoizedPaginatedTable = memo(PaginatedTable);
169
- MemoizedPaginatedTable.displayName = "PaginatedTable::pkg=odyssey&odysseyV=1.65.1";
169
+ MemoizedPaginatedTable.displayName = "PaginatedTable::pkg=odyssey&odysseyV=1.66.0";
170
170
  export { MemoizedPaginatedTable as PaginatedTable };
171
171
  //# sourceMappingURL=PaginatedTable.js.map
@@ -81,6 +81,6 @@ const StaticTable = ({
81
81
  });
82
82
  };
83
83
  const MemoizedStaticTable = memo(StaticTable);
84
- MemoizedStaticTable.displayName = "StaticTable::pkg=odyssey&odysseyV=1.65.1";
84
+ MemoizedStaticTable.displayName = "StaticTable::pkg=odyssey&odysseyV=1.66.0";
85
85
  export { MemoizedStaticTable as StaticTable };
86
86
  //# sourceMappingURL=StaticTable.js.map
@@ -68,6 +68,6 @@ const UserProfile = ({
68
68
  });
69
69
  };
70
70
  const MemoizedUserProfile = memo(UserProfile);
71
- MemoizedUserProfile.displayName = "UserProfile::pkg=odyssey&odysseyV=1.65.1";
71
+ MemoizedUserProfile.displayName = "UserProfile::pkg=odyssey&odysseyV=1.66.0";
72
72
  export { MemoizedUserProfile as UserProfile };
73
73
  //# sourceMappingURL=UserProfile.js.map
@@ -54,6 +54,6 @@ const UserProfileMenuButton = ({
54
54
  });
55
55
  };
56
56
  const MemoizedUserProfileMenuButton = memo(UserProfileMenuButton);
57
- MemoizedUserProfileMenuButton.displayName = "UserProfileMenuButton::pkg=odyssey&odysseyV=1.65.1";
57
+ MemoizedUserProfileMenuButton.displayName = "UserProfileMenuButton::pkg=odyssey&odysseyV=1.66.0";
58
58
  export { MemoizedUserProfileMenuButton as UserProfileMenuButton };
59
59
  //# sourceMappingURL=UserProfileMenuButton.js.map
@@ -42,6 +42,6 @@ const DuoIcon = forwardRef((props, ref) => {
42
42
  });
43
43
  });
44
44
  const MemoizedDuoIcon = memo(DuoIcon);
45
- MemoizedDuoIcon.displayName = "DuoIcon::pkg=odyssey&odysseyV=1.65.1";
45
+ MemoizedDuoIcon.displayName = "DuoIcon::pkg=odyssey&odysseyV=1.66.0";
46
46
  export { MemoizedDuoIcon as DuoIcon };
47
47
  //# sourceMappingURL=Duo.js.map
@@ -49,6 +49,6 @@ const GoogleAuthIcon = forwardRef((props, ref) => {
49
49
  });
50
50
  });
51
51
  const MemoizedGoogleAuthIcon = memo(GoogleAuthIcon);
52
- MemoizedGoogleAuthIcon.displayName = "GoogleAuthIcon::pkg=odyssey&odysseyV=1.65.1";
52
+ MemoizedGoogleAuthIcon.displayName = "GoogleAuthIcon::pkg=odyssey&odysseyV=1.66.0";
53
53
  export { MemoizedGoogleAuthIcon as GoogleAuthIcon };
54
54
  //# sourceMappingURL=GoogleAuth.js.map
@@ -29,6 +29,6 @@ const OktaVerifyIcon = forwardRef((props, ref) => {
29
29
  });
30
30
  });
31
31
  const MemoizedOktaVerifyIcon = memo(OktaVerifyIcon);
32
- MemoizedOktaVerifyIcon.displayName = "OktaVerifyIcon::pkg=odyssey&odysseyV=1.65.1";
32
+ MemoizedOktaVerifyIcon.displayName = "OktaVerifyIcon::pkg=odyssey&odysseyV=1.66.0";
33
33
  export { MemoizedOktaVerifyIcon as OktaVerifyIcon };
34
34
  //# sourceMappingURL=OktaVerify.js.map
@@ -29,6 +29,6 @@ const PersonaIcon = forwardRef((props, ref) => {
29
29
  });
30
30
  });
31
31
  const MemoizedPersonaIcon = memo(PersonaIcon);
32
- MemoizedPersonaIcon.displayName = "PersonaIcon::pkg=odyssey&odysseyV=1.65.1";
32
+ MemoizedPersonaIcon.displayName = "PersonaIcon::pkg=odyssey&odysseyV=1.66.0";
33
33
  export { MemoizedPersonaIcon as PersonaIcon };
34
34
  //# sourceMappingURL=Persona.js.map
@@ -33,6 +33,6 @@ const SymantecVipIcon = forwardRef((props, ref) => {
33
33
  });
34
34
  });
35
35
  const MemoizedSymantecVipIcon = memo(SymantecVipIcon);
36
- MemoizedSymantecVipIcon.displayName = "SymantecVipIcon::pkg=odyssey&odysseyV=1.65.1";
36
+ MemoizedSymantecVipIcon.displayName = "SymantecVipIcon::pkg=odyssey&odysseyV=1.66.0";
37
37
  export { MemoizedSymantecVipIcon as SymantecVipIcon };
38
38
  //# sourceMappingURL=SymantecVip.js.map
@@ -27,6 +27,6 @@ const YubikeyIcon = forwardRef((props, ref) => {
27
27
  });
28
28
  });
29
29
  const MemoizedYubikeyIcon = memo(YubikeyIcon);
30
- MemoizedYubikeyIcon.displayName = "YubikeyIcon::pkg=odyssey&odysseyV=1.65.1";
30
+ MemoizedYubikeyIcon.displayName = "YubikeyIcon::pkg=odyssey&odysseyV=1.66.0";
31
31
  export { MemoizedYubikeyIcon as YubikeyIcon };
32
32
  //# sourceMappingURL=Yubikey.js.map
@@ -10,7 +10,8 @@
10
10
  * See the License for the specific language governing permissions and limitations under the License.
11
11
  */
12
12
 
13
- import { useCallback, useMemo, useSyncExternalStore } from "react";
13
+ import { useCallback, useMemo } from "react";
14
+ import { useSyncExternalStore } from "use-sync-external-store/shim";
14
15
  export const useMediaQuery = mediaQuery => {
15
16
  const normalizedMediaQuery = mediaQuery.replace(/^@media( ?)/m, "");
16
17
  const supportsMatchMedia = typeof window !== "undefined" && typeof window.matchMedia !== "undefined";
@@ -1 +1 @@
1
- {"version":3,"file":"useMediaQuery.js","names":["useCallback","useMemo","useSyncExternalStore","useMediaQuery","mediaQuery","normalizedMediaQuery","replace","supportsMatchMedia","window","matchMedia","mediaQueryList","subscribe","notifyReactOfChange","addEventListener","removeEventListener","getSnapshot","matches","getServerSnapshot","ABSOLUTE_MINIMUM_WIDTH","ABSOLUTE_MINIMUM_HEIGHT","COMPACT_WIDTH_ACTIVATION_BUFFER","COMPACT_HEIGHT_ACTIVATION_BUFFER","COMPACT_MAX_WIDTH","COMPACT_MAX_HEIGHT","COMPACT_MAX_WIDTH_CONDITION","COMPACT_MAX_HEIGHT_CONDITION","COMPACT_MEDIA_QUERY","useCompactViewportMatches","isWithinCompactWidth","isWithinCompactHeight","isWithinCompactWidthOrHeight"],"sources":["../../../src/theme/useMediaQuery.ts"],"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 { useCallback, useMemo, useSyncExternalStore } from \"react\";\n\nimport { StringWithValue } from \"../StringWithValue.js\";\n\n/**\n * Subscribes to a CSS media query and returns whether it currently matches,\n * re-rendering when the match state changes. Accepts the query with or without\n * a leading `@media` prefix. Uses `useSyncExternalStore` so the match is read\n * synchronously at render time (no tearing, no stale first frame), and\n * degrades to `false` in environments without `matchMedia` (server render,\n * jsdom).\n */\nexport const useMediaQuery = <MediaQuery extends string>(\n mediaQuery: StringWithValue<MediaQuery>,\n) => {\n // A leading `@media` prefix is valid CSS but is rejected by\n // `window.matchMedia`, so strip it to accept either form of the query.\n const normalizedMediaQuery = mediaQuery.replace(/^@media( ?)/m, \"\");\n\n // jsdom and server environments may not implement `matchMedia`. Guard so the\n // hook degrades to \"no match\" instead of throwing during render.\n const supportsMatchMedia =\n typeof window !== \"undefined\" && typeof window.matchMedia !== \"undefined\";\n\n const mediaQueryList = useMemo(\n () => (supportsMatchMedia ? window.matchMedia(normalizedMediaQuery) : null),\n [supportsMatchMedia, normalizedMediaQuery],\n );\n\n // `useSyncExternalStore` reads the match synchronously at render time, so\n // every component in a concurrent render sees a consistent value (no\n // tearing) and there is no stale first frame before an effect runs.\n const subscribe = useCallback(\n (notifyReactOfChange: () => void) => {\n if (!mediaQueryList) {\n return () => {};\n }\n\n mediaQueryList.addEventListener(\"change\", notifyReactOfChange);\n\n return () => {\n mediaQueryList.removeEventListener(\"change\", notifyReactOfChange);\n };\n },\n [mediaQueryList],\n );\n\n const getSnapshot = useCallback(\n () => mediaQueryList?.matches ?? false,\n [mediaQueryList],\n );\n\n // Server render (and any environment without `matchMedia`) resolves to \"no\n // match\", consistent with the guard above.\n const getServerSnapshot = useCallback(() => false, []);\n\n return useSyncExternalStore(subscribe, getSnapshot, getServerSnapshot);\n};\n\n/**\n * The absolute minimum viewport width, in CSS pixels, that the UI supports.\n * WCAG 1.4.10 (Reflow) requires content to remain usable down to 320px, so\n * this is the hard floor below which layout must not lose information or\n * functionality.\n */\nexport const ABSOLUTE_MINIMUM_WIDTH = 320;\n\n/**\n * The absolute minimum viewport height, in CSS pixels, that the UI supports:\n * the hard floor below which layout must not lose information or functionality.\n */\nexport const ABSOLUTE_MINIMUM_HEIGHT = 256;\n\n// Each axis starts adapting a set distance above its absolute-minimum floor so\n// the UI gets breathing room instead of snapping exactly at the floor. Width\n// uses a small buffer just above the reflow floor. Height uses a much larger\n// one: around 500px the app starts to feel cramped (still usable, but not\n// pleasant), so we adapt the layout there rather than waiting for the 256px\n// floor.\nconst COMPACT_WIDTH_ACTIVATION_BUFFER = 80;\nconst COMPACT_HEIGHT_ACTIVATION_BUFFER = 244;\n\n/**\n * The widest viewport, in CSS pixels, still treated as compact-width. At or\n * below this width the layout adapts toward the absolute-minimum floor.\n */\nexport const COMPACT_MAX_WIDTH =\n ABSOLUTE_MINIMUM_WIDTH + COMPACT_WIDTH_ACTIVATION_BUFFER;\n\n/**\n * The tallest viewport, in CSS pixels, still treated as compact-height. At or\n * below this height the layout adapts toward the absolute-minimum floor.\n */\nexport const COMPACT_MAX_HEIGHT =\n ABSOLUTE_MINIMUM_HEIGHT + COMPACT_HEIGHT_ACTIVATION_BUFFER;\n\n/**\n * The `matchMedia`/CSS condition that matches when the viewport is\n * compact-width. Single source of truth shared by the hook and style\n * overrides so the two cannot drift.\n */\nexport const COMPACT_MAX_WIDTH_CONDITION = `(max-width: ${COMPACT_MAX_WIDTH}px)`;\n\n/**\n * The `matchMedia`/CSS condition that matches when the viewport is\n * compact-height. Single source of truth shared by the hook and style\n * overrides so the two cannot drift.\n */\nexport const COMPACT_MAX_HEIGHT_CONDITION = `(max-height: ${COMPACT_MAX_HEIGHT}px)`;\n\n/**\n * The combined CSS media query for use in style overrides, where a React hook\n * cannot run. The comma matches when either dimension is compact.\n */\nexport const COMPACT_MEDIA_QUERY = `@media ${COMPACT_MAX_WIDTH_CONDITION}, ${COMPACT_MAX_HEIGHT_CONDITION}`;\n\n/**\n * Reports whether the viewport is within the compact range, i.e. approaching\n * the absolute minimum supported size along either axis (each axis activates at\n * its own buffer above the floor). Returns a match per dimension plus a combined\n * flag so callers can adapt layout (e.g. switch a Dialog to full-screen) as the\n * viewport approaches the WCAG 1.4.10 reflow floor rather than snapping exactly\n * at it.\n *\n * `isWithinCompactWidthOrHeight` is `true` when either dimension is compact,\n * matching the OR semantics of `COMPACT_MEDIA_QUERY`.\n */\nexport const useCompactViewportMatches = () => {\n const isWithinCompactWidth = useMediaQuery(COMPACT_MAX_WIDTH_CONDITION);\n const isWithinCompactHeight = useMediaQuery(COMPACT_MAX_HEIGHT_CONDITION);\n\n return useMemo(\n () => ({\n isWithinCompactWidth,\n isWithinCompactHeight,\n isWithinCompactWidthOrHeight:\n isWithinCompactWidth || isWithinCompactHeight,\n }),\n [isWithinCompactWidth, isWithinCompactHeight],\n );\n};\n"],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,SAASA,WAAW,EAAEC,OAAO,EAAEC,oBAAoB,QAAQ,OAAO;AAYlE,OAAO,MAAMC,aAAa,GACxBC,UAAuC,IACpC;EAGH,MAAMC,oBAAoB,GAAGD,UAAU,CAACE,OAAO,CAAC,cAAc,EAAE,EAAE,CAAC;EAInE,MAAMC,kBAAkB,GACtB,OAAOC,MAAM,KAAK,WAAW,IAAI,OAAOA,MAAM,CAACC,UAAU,KAAK,WAAW;EAE3E,MAAMC,cAAc,GAAGT,OAAO,CAC5B,MAAOM,kBAAkB,GAAGC,MAAM,CAACC,UAAU,CAACJ,oBAAoB,CAAC,GAAG,IAAK,EAC3E,CAACE,kBAAkB,E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AEzE,OAAOxB,OAAO,CACZ,OAAO;IACL2B,oBAAoB;IACpBC,qBAAqB;IACrBC,4BAA4B,EAC1BF,oBAAoB,IAAIC;EAC5B,CAAC,CAAC,EACF,CAACD,oBAAoB,EAAEC,qBAAqB,CAC9C,CAAC;AACH,CAAC","ignoreList":[]}
1
+ {"version":3,"file":"useMediaQuery.js","names":["useCallback","useMemo","useSyncExternalStore","useMediaQuery","mediaQuery","normalizedMediaQuery","replace","supportsMatchMedia","window","matchMedia","mediaQueryList","subscribe","notifyReactOfChange","addEventListener","removeEventListener","getSnapshot","matches","getServerSnapshot","ABSOLUTE_MINIMUM_WIDTH","ABSOLUTE_MINIMUM_HEIGHT","COMPACT_WIDTH_ACTIVATION_BUFFER","COMPACT_HEIGHT_ACTIVATION_BUFFER","COMPACT_MAX_WIDTH","COMPACT_MAX_HEIGHT","COMPACT_MAX_WIDTH_CONDITION","COMPACT_MAX_HEIGHT_CONDITION","COMPACT_MEDIA_QUERY","useCompactViewportMatches","isWithinCompactWidth","isWithinCompactHeight","isWithinCompactWidthOrHeight"],"sources":["../../../src/theme/useMediaQuery.ts"],"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 { useCallback, useMemo } from \"react\";\n// React's `useSyncExternalStore` does not exist before React 18. Import it from\n// the official backport shim so the hook resolves on React 16.8+/17 consumers\n// too; the shim delegates to the native hook when running on React 18.\nimport { useSyncExternalStore } from \"use-sync-external-store/shim\";\n\nimport { StringWithValue } from \"../StringWithValue.js\";\n\n/**\n * Subscribes to a CSS media query and returns whether it currently matches,\n * re-rendering when the match state changes. Accepts the query with or without\n * a leading `@media` prefix. Uses `useSyncExternalStore` so the match is read\n * synchronously at render time (no tearing, no stale first frame), and\n * degrades to `false` in environments without `matchMedia` (server render,\n * jsdom).\n */\nexport const useMediaQuery = <MediaQuery extends string>(\n mediaQuery: StringWithValue<MediaQuery>,\n) => {\n // A leading `@media` prefix is valid CSS but is rejected by\n // `window.matchMedia`, so strip it to accept either form of the query.\n const normalizedMediaQuery = mediaQuery.replace(/^@media( ?)/m, \"\");\n\n // jsdom and server environments may not implement `matchMedia`. Guard so the\n // hook degrades to \"no match\" instead of throwing during render.\n const supportsMatchMedia =\n typeof window !== \"undefined\" && typeof window.matchMedia !== \"undefined\";\n\n const mediaQueryList = useMemo(\n () => (supportsMatchMedia ? window.matchMedia(normalizedMediaQuery) : null),\n [supportsMatchMedia, normalizedMediaQuery],\n );\n\n // `useSyncExternalStore` reads the match synchronously at render time, so\n // every component in a concurrent render sees a consistent value (no\n // tearing) and there is no stale first frame before an effect runs.\n const subscribe = useCallback(\n (notifyReactOfChange: () => void) => {\n if (!mediaQueryList) {\n return () => {};\n }\n\n mediaQueryList.addEventListener(\"change\", notifyReactOfChange);\n\n return () => {\n mediaQueryList.removeEventListener(\"change\", notifyReactOfChange);\n };\n },\n [mediaQueryList],\n );\n\n const getSnapshot = useCallback(\n () => mediaQueryList?.matches ?? false,\n [mediaQueryList],\n );\n\n // Server render (and any environment without `matchMedia`) resolves to \"no\n // match\", consistent with the guard above.\n const getServerSnapshot = useCallback(() => false, []);\n\n return useSyncExternalStore(subscribe, getSnapshot, getServerSnapshot);\n};\n\n/**\n * The absolute minimum viewport width, in CSS pixels, that the UI supports.\n * WCAG 1.4.10 (Reflow) requires content to remain usable down to 320px, so\n * this is the hard floor below which layout must not lose information or\n * functionality.\n */\nexport const ABSOLUTE_MINIMUM_WIDTH = 320;\n\n/**\n * The absolute minimum viewport height, in CSS pixels, that the UI supports:\n * the hard floor below which layout must not lose information or functionality.\n */\nexport const ABSOLUTE_MINIMUM_HEIGHT = 256;\n\n// Each axis starts adapting a set distance above its absolute-minimum floor so\n// the UI gets breathing room instead of snapping exactly at the floor. Width\n// uses a small buffer just above the reflow floor. Height uses a much larger\n// one: around 500px the app starts to feel cramped (still usable, but not\n// pleasant), so we adapt the layout there rather than waiting for the 256px\n// floor.\nconst COMPACT_WIDTH_ACTIVATION_BUFFER = 80;\nconst COMPACT_HEIGHT_ACTIVATION_BUFFER = 244;\n\n/**\n * The widest viewport, in CSS pixels, still treated as compact-width. At or\n * below this width the layout adapts toward the absolute-minimum floor.\n */\nexport const COMPACT_MAX_WIDTH =\n ABSOLUTE_MINIMUM_WIDTH + COMPACT_WIDTH_ACTIVATION_BUFFER;\n\n/**\n * The tallest viewport, in CSS pixels, still treated as compact-height. At or\n * below this height the layout adapts toward the absolute-minimum floor.\n */\nexport const COMPACT_MAX_HEIGHT =\n ABSOLUTE_MINIMUM_HEIGHT + COMPACT_HEIGHT_ACTIVATION_BUFFER;\n\n/**\n * The `matchMedia`/CSS condition that matches when the viewport is\n * compact-width. Single source of truth shared by the hook and style\n * overrides so the two cannot drift.\n */\nexport const COMPACT_MAX_WIDTH_CONDITION = `(max-width: ${COMPACT_MAX_WIDTH}px)`;\n\n/**\n * The `matchMedia`/CSS condition that matches when the viewport is\n * compact-height. Single source of truth shared by the hook and style\n * overrides so the two cannot drift.\n */\nexport const COMPACT_MAX_HEIGHT_CONDITION = `(max-height: ${COMPACT_MAX_HEIGHT}px)`;\n\n/**\n * The combined CSS media query for use in style overrides, where a React hook\n * cannot run. The comma matches when either dimension is compact.\n */\nexport const COMPACT_MEDIA_QUERY = `@media ${COMPACT_MAX_WIDTH_CONDITION}, ${COMPACT_MAX_HEIGHT_CONDITION}`;\n\n/**\n * Reports whether the viewport is within the compact range, i.e. approaching\n * the absolute minimum supported size along either axis (each axis activates at\n * its own buffer above the floor). Returns a match per dimension plus a combined\n * flag so callers can adapt layout (e.g. switch a Dialog to full-screen) as the\n * viewport approaches the WCAG 1.4.10 reflow floor rather than snapping exactly\n * at it.\n *\n * `isWithinCompactWidthOrHeight` is `true` when either dimension is compact,\n * matching the OR semantics of `COMPACT_MEDIA_QUERY`.\n */\nexport const useCompactViewportMatches = () => {\n const isWithinCompactWidth = useMediaQuery(COMPACT_MAX_WIDTH_CONDITION);\n const isWithinCompactHeight = useMediaQuery(COMPACT_MAX_HEIGHT_CONDITION);\n\n return useMemo(\n () => ({\n isWithinCompactWidth,\n isWithinCompactHeight,\n isWithinCompactWidthOrHeight:\n isWithinCompactWidth || isWithinCompactHeight,\n }),\n [isWithinCompactWidth, isWithinCompactHeight],\n );\n};\n"],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,SAASA,WAAW,EAAEC,OAAO,QAAQ,OAAO;AAI5C,SAASC,oBAAoB,QAAQ,8BAA8B;AAYnE,OAAO,MAAMC,aAAa,GACxBC,UAAuC,IACpC;EAGH,MAAMC,oBAAoB,GAAGD,UAAU,CAACE,OAAO,CAAC,cAAc,EAAE,EAAE,CAAC;EAInE,MAAMC,kBAAkB,GACtB,OAAOC,MAAM,KAAK,WAAW,IAAI,OAAOA,MAAM,CAACC,UAAU,KAAK,WAAW;EAE3E,MAAMC,cAAc,GAAGT,OAAO,CAC5B,MAAOM,kBAAkB,GAAGC,MAAM,CAACC,UAAU,CAACJ,oBAAoB,CAAC,GAAG,IAAK,EAC3E,CAACE,kBAAkB,EAAEF,oBAAoB,CAC3C,CAAC;EAKD,MAAMM,SAAS,GAAGX,WAAW,CAC1BY,mBAA+B,IAAK;IACnC,IAAI,CAACF,cAAc,EAAE;MACnB,OAAO,MAAM,CAAC,CAAC;IACjB;IAEAA,cAAc,CAACG,gBAAgB,CAAC,QAAQ,EAAED,mBAAmB,CAAC;IAE9D,OAAO,MAAM;MACXF,cAAc,CAACI,mBAAmB,CAAC,QAAQ,EAAEF,mBAAmB,CAAC;IACnE,CAAC;EACH,CAAC,EACD,CAAC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yssey&odysseyV=1.65.1";
73
+ MemoizedAppSwitcher.displayName = "AppSwitcher::pkg=odyssey&odysseyV=1.66.0";
74
74
  export { MemoizedAppSwitcher as AppSwitcher };
75
75
  //# sourceMappingURL=AppSwitcher.js.map
@@ -52,6 +52,6 @@ const InnerAppContainer = ({
52
52
  children: [_jsx(StyledAppContainerShadow1, {}), _jsx(StyledAppContainerShadow2, {}), _jsx(StyledAppContainerShadow3, {})]
53
53
  }) : null;
54
54
  const MemoizedInnerAppContainer = memo(InnerAppContainer);
55
- MemoizedInnerAppContainer.displayName = "InnerAppContainer::pkg=odyssey&odysseyV=1.65.1";
55
+ MemoizedInnerAppContainer.displayName = "InnerAppContainer::pkg=odyssey&odysseyV=1.66.0";
56
56
  export { MemoizedInnerAppContainer as InnerAppContainer };
57
57
  //# sourceMappingURL=InnerAppContainer.js.map
@@ -11,7 +11,7 @@
11
11
  */
12
12
 
13
13
  import styled from "@emotion/styled";
14
- import { memo, useCallback, useEffect, useId, useRef, useState } from "react";
14
+ import { memo, useCallback, useEffect, useRef, useState } from "react";
15
15
  import { ErrorBoundary } from "react-error-boundary";
16
16
  import { Button } from "../Buttons/Button.js";
17
17
  import { hexToRgb } from "../hexToRgb.js";
@@ -19,6 +19,7 @@ import { useTranslation } from "../i18n.generated/i18n.js";
19
19
  import { CloseIcon } from "../icons.generated/Close.js";
20
20
  import { MoreIcon } from "../icons.generated/More.js";
21
21
  import { useOdysseyDesignTokens } from "../OdysseyDesignTokensContext.js";
22
+ import { useUniqueId } from "../useUniqueId.js";
22
23
  import { InnerAppContainer } from "./InnerAppContainer.js";
23
24
  import { SideNav } from "./SideNav/SideNav.js";
24
25
  import { SkipToContent } from "./SkipToContent.js";
@@ -208,7 +209,7 @@ const NarrowUiShellContent = ({
208
209
  const uiShellAppAreaRef = useRef(null);
209
210
  const leftSideContainerRef = useRef(null);
210
211
  const leftSideMenuToggleRef = useRef(null);
211
- const leftSideContainerId = useId();
212
+ const leftSideContainerId = useUniqueId();
212
213
  const [isLeftSideMenuOpen, setIsLeftSideMenuOpen] = useState(false);
213
214
  const [isRightSideMenuOpen, setIsRightSideMenuOpen] = useState(false);
214
215
  const closeSideMenus = useCallback(() => {
@@ -371,6 +372,6 @@ const NarrowUiShellContent = ({
371
372
  });
372
373
  };
373
374
  const MemoizedNarrowUiShellContent = memo(NarrowUiShellContent);
374
- MemoizedNarrowUiShellContent.displayName = "NarrowUiShellContent::pkg=odyssey&odysseyV=1.65.1";
375
+ MemoizedNarrowUiShellContent.displayName = "NarrowUiShellContent::pkg=odyssey&odysseyV=1.66.0";
375
376
  export { MemoizedNarrowUiShellContent as NarrowUiShellContent };
376
377
  //# sourceMappingURL=NarrowUiShellContent.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"NarrowUiShellContent.js","names":["styled","memo","useCallback","useEffect","useId","useRef","useState","ErrorBoundary","Button","hexToRgb","useTranslation","CloseIcon","MoreIcon","useOdysseyDesignTokens","InnerAppContainer","SideNav","SkipToContent","HamburgerMenuIcon","UiShellLogo","useUiShellContext","emptySideNavItems","SIDE_NAV_WIDTH","TOP_NAV_HEIGHT","UI_SHELL_BASE_Z_INDEX","UI_SHELL_OVERLAY_Z_INDEX","useMatchAppElementToUiShellAppArea","useScrollState","jsx","_jsx","jsxs","_jsxs","Fragment","_Fragment","StyledAppContentArea","gridArea","position","height","width","StyledAppContainer","shouldForwardProp","prop","appBackgroundColor","backgroundColor","overflow","StyledBannersContainer","zIndex","StyledLeftSideContainer","isOpen","display","StyledRightSideContainer","odysseyDesignTokens","HueNeutralWhite","maxWidth","overflowY","right","StyledMenuLogo","alignItems","gap","Spacing3","StyledLogoContainer","paddingBlock","Spacing4","maxHeight","StyledPageOverlay","HueNeutral900","asFormattedString","replace","left","top","StyledSideNavContainer","StyledUiShellContainer","HueNeutral50","gridGap","gridTemplateAreas","gridTemplateColumns","gridTemplateRows","StyledTopNav","isContentScrolled","topNavBackgroundColor","boxShadow","DepthMedium","undefined","clipPath","flexDirection","justifyContent","transition","TransitionDurationMain","TransitionTimingMain","StyledTopNavMenu","minHeight","Spacing2","paddingInline","borderBottomColor","HueNeutral100","borderBottomStyle","BorderStyleMain","borderBottomWidth","BorderWidthMain","StyledTopNavSearch","NarrowUiShellContent","appElement","appElementScrollingMode","hasSideNavProps","hasStandardAppContentPadding","initialVisibleSections","logoProps","onError","console","error","optionalComponents","sideNavProps","topNavProps","t","uiShellContext","sideNavContainerRef","topNavContainerRef","uiShellAppAreaRef","leftSideContainerRef","leftSideMenuToggleRef","leftSideContainerId","isLeftSideMenuOpen","setIsLeftSideMenuOpen","isRightSideMenuOpen","setIsRightSideMenuOpen","closeSideMenus","unsubscribeFromCloseRightSideMenu","subscribeToCloseRightSideMenu","unsubscribeFromSideNavItemClicked","subscribeToCloseSideNavMenu","toggleLeftSideMenu","toggleRightSideMenu","isLeftSideMenuOpenRef","current","focus","handleKeyDown","event","key","document","addEventListener","removeEventListener","parentContainerRef","paddingMode","uiShellResizableRefs","children","onClick","ref","banners","includes","fallback","sideNavBackgroundColor","isCollapsible","isCollapsed","ariaControls","ariaExpanded","ariaLabel","buttonRef","startIcon","testId","variant","rightSideMenu","topNavLeftSide","id","tabIndex","isLoading","sideNavItems","appName","hasCustomFooter","sideNavFooter","footerComponent","footerItems","isObtrusive","onCollapse","MemoizedNarrowUiShellContent","displayName"],"sources":["../../../src/ui-shell/NarrowUiShellContent.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 styled from \"@emotion/styled\";\nimport {\n CSSProperties,\n memo,\n useCallback,\n useEffect,\n useId,\n useRef,\n useState,\n} from \"react\";\nimport { ErrorBoundary } from \"react-error-boundary\";\n\nimport type { HtmlProps } from \"../HtmlProps.js\";\nimport type { FocusHandle } from \"../inputUtils.js\";\n\nimport { Button } from \"../Buttons/Button.js\";\nimport { hexToRgb } from \"../hexToRgb.js\";\nimport { useTranslation } from \"../i18n.generated/i18n.js\";\nimport { CloseIcon } from \"../icons.generated/Close.js\";\nimport { MoreIcon } from \"../icons.generated/More.js\";\nimport {\n DesignTokens,\n useOdysseyDesignTokens,\n} from \"../OdysseyDesignTokensContext.js\";\nimport { InnerAppContainer } from \"./InnerAppContainer.js\";\nimport { SideNav } from \"./SideNav/SideNav.js\";\nimport { SkipToContent } from \"./SkipToContent.js\";\nimport { HamburgerMenuIcon } from \"./TopNav/HamburgerMenuIcon.js\";\nimport {\n UiShellContentProps,\n UiShellNavComponentProps,\n} from \"./uiShellContentTypes.js\";\nimport { UiShellLogo } from \"./UiShellLogo.js\";\nimport { UiShellColors, useUiShellContext } from \"./UiShellProvider.js\";\nimport {\n emptySideNavItems,\n SIDE_NAV_WIDTH,\n TOP_NAV_HEIGHT,\n UI_SHELL_BASE_Z_INDEX,\n UI_SHELL_OVERLAY_Z_INDEX,\n} from \"./uiShellSharedConstants.js\";\nimport { useMatchAppElementToUiShellAppArea } from \"./useMatchAppElementToUiShellAppArea.js\";\nimport { useScrollState } from \"./useScrollState.js\";\n\nconst StyledAppContentArea = styled(\"div\")({\n gridArea: \"app-content\",\n position: \"relative\",\n height: \"100%\",\n width: \"100%\",\n});\n\nconst StyledAppContainer = styled(\"div\", {\n shouldForwardProp: (prop) =>\n prop !== \"appBackgroundColor\" && prop !== \"odysseyDesignTokens\",\n})<{\n appBackgroundColor?: UiShellColors[\"appBackgroundColor\"];\n}>(({ appBackgroundColor }) => ({\n backgroundColor: appBackgroundColor,\n height: \"100%\",\n overflow: \"hidden\",\n width: \"100%\",\n}));\n\nconst StyledBannersContainer = styled(\"div\")({\n gridArea: \"banners\",\n zIndex: UI_SHELL_BASE_Z_INDEX,\n});\n\nconst StyledLeftSideContainer = styled(\"div\", {\n shouldForwardProp: (prop) => prop !== \"isOpen\",\n})<{\n isOpen: boolean;\n}>(({ isOpen }) => ({\n display: isOpen ? \"block\" : \"none\",\n height: \"100%\",\n position: \"absolute\",\n zIndex: UI_SHELL_OVERLAY_Z_INDEX,\n}));\n\nconst StyledRightSideContainer = styled(\"div\", {\n shouldForwardProp: (prop) =>\n prop !== \"isOpen\" && prop !== \"odysseyDesignTokens\",\n})<{\n isOpen: boolean;\n odysseyDesignTokens: DesignTokens;\n}>(({ isOpen, odysseyDesignTokens }) => ({\n backgroundColor: odysseyDesignTokens.HueNeutralWhite,\n display: isOpen ? \"block\" : \"none\",\n height: \"100%\",\n maxWidth: SIDE_NAV_WIDTH,\n overflowY: \"auto\",\n position: \"absolute\",\n right: 0,\n width: SIDE_NAV_WIDTH,\n zIndex: UI_SHELL_OVERLAY_Z_INDEX,\n}));\n\nconst StyledMenuLogo = styled(\"div\", {\n shouldForwardProp: (prop) => prop !== \"odysseyDesignTokens\",\n})<{\n odysseyDesignTokens: DesignTokens;\n}>(({ odysseyDesignTokens }) => ({\n alignItems: \"center\",\n display: \"inline-flex\",\n gap: odysseyDesignTokens.Spacing3,\n}));\n\nconst StyledLogoContainer = styled(\"div\", {\n shouldForwardProp: (prop) => prop !== \"odysseyDesignTokens\",\n})<{\n odysseyDesignTokens: DesignTokens;\n}>(({ odysseyDesignTokens }) => ({\n height: TOP_NAV_HEIGHT,\n paddingBlock: odysseyDesignTokens.Spacing4,\n\n \"svg, img\": {\n maxHeight: \"100%\",\n width: \"auto\",\n maxWidth: \"100%\",\n },\n}));\n\nconst StyledPageOverlay = styled(\"div\", {\n shouldForwardProp: (prop) => prop !== \"odysseyDesignTokens\",\n})<{\n odysseyDesignTokens: DesignTokens;\n}>(({ odysseyDesignTokens }) => ({\n backgroundColor: hexToRgb(\n odysseyDesignTokens.HueNeutral900,\n ).asFormattedString.replace(/rgb\\((.+)\\)$/, \"rgba($1, 0.26)\"),\n gridArea: \"app-content\",\n height: \"100vh\",\n left: 0,\n position: \"absolute\",\n top: 0,\n width: \"100vw\",\n zIndex: UI_SHELL_BASE_Z_INDEX,\n}));\n\nconst StyledSideNavContainer = styled(\"div\")({\n height: \"100%\", // Without this value, side nav won't fill up the height if the content is too short.\n});\n\nconst StyledUiShellContainer = styled(\"div\", {\n shouldForwardProp: (prop) => prop !== \"odysseyDesignTokens\",\n})<{\n odysseyDesignTokens: DesignTokens;\n}>(({ odysseyDesignTokens }) => ({\n backgroundColor: odysseyDesignTokens.HueNeutral50,\n display: \"grid\",\n gridGap: 0,\n gridTemplateAreas: `\n \"banners\"\n \"top-nav\"\n \"app-content\"\n `,\n gridTemplateColumns: \"1fr\",\n gridTemplateRows: \"auto auto 1fr\",\n height: \"100vh\",\n overflow: \"hidden\",\n width: \"100vw\",\n}));\n\nconst StyledTopNav = styled(\"div\", {\n shouldForwardProp: (prop) =>\n prop !== \"odysseyDesignTokens\" &&\n prop !== \"isContentScrolled\" &&\n prop !== \"topNavBackgroundColor\",\n})<{\n isContentScrolled?: boolean;\n odysseyDesignTokens: DesignTokens;\n topNavBackgroundColor?: UiShellColors[\"topNavBackgroundColor\"];\n}>(({ odysseyDesignTokens, isContentScrolled, topNavBackgroundColor }) => ({\n alignItems: \"stretch\",\n backgroundColor: odysseyDesignTokens.HueNeutralWhite || topNavBackgroundColor, // This logic doesn't make sense, but I wanted to leave it here for when we eventually make a decision on `topNavBackgroundColor`. --Kevin Ghadyani\n boxShadow: isContentScrolled ? odysseyDesignTokens.DepthMedium : undefined,\n clipPath: \"inset(0 0 -100vh 0)\",\n display: \"flex\",\n flexDirection: \"column\",\n gridArea: \"top-nav\",\n height: \"100%\",\n justifyContent: \"center\",\n position: \"relative\",\n transition: `box-shadow ${odysseyDesignTokens.TransitionDurationMain} ${odysseyDesignTokens.TransitionTimingMain}`,\n zIndex: UI_SHELL_BASE_Z_INDEX,\n}));\n\nconst StyledTopNavMenu = styled(\"div\", {\n shouldForwardProp: (prop) =>\n prop !== \"odysseyDesignTokens\" && prop !== \"topNavBackgroundColor\",\n})<{\n odysseyDesignTokens: DesignTokens;\n topNavBackgroundColor?: UiShellColors[\"topNavBackgroundColor\"];\n}>(({ odysseyDesignTokens, topNavBackgroundColor }) => ({\n alignItems: \"center\",\n display: \"flex\",\n gap: odysseyDesignTokens.Spacing3,\n height: \"100%\",\n justifyContent: \"space-between\",\n maxHeight: TOP_NAV_HEIGHT,\n minHeight: TOP_NAV_HEIGHT,\n paddingBlock: odysseyDesignTokens.Spacing2,\n paddingInline: odysseyDesignTokens.Spacing3,\n transition: `box-shadow ${odysseyDesignTokens.TransitionDurationMain} ${odysseyDesignTokens.TransitionTimingMain}`,\n\n ...(topNavBackgroundColor === odysseyDesignTokens.HueNeutralWhite &&\n ({\n borderBottomColor: odysseyDesignTokens.HueNeutral100,\n borderBottomStyle: odysseyDesignTokens.BorderStyleMain,\n borderBottomWidth: odysseyDesignTokens.BorderWidthMain,\n } as CSSProperties)),\n}));\n\nconst StyledTopNavSearch = styled(\"div\", {\n shouldForwardProp: (prop) => prop !== \"odysseyDesignTokens\",\n})<{\n odysseyDesignTokens: DesignTokens;\n}>(({ odysseyDesignTokens }) => ({\n paddingBlock: odysseyDesignTokens.Spacing2,\n paddingInline: odysseyDesignTokens.Spacing3,\n}));\n\nexport type NarrowUiShellContentProps = Pick<HtmlProps, \"testId\"> &\n Pick<UiShellNavComponentProps, \"logoProps\" | \"sideNavProps\" | \"topNavProps\"> &\n UiShellContentProps;\n\nconst NarrowUiShellContent = ({\n appElement,\n appElementScrollingMode,\n hasSideNavProps,\n hasStandardAppContentPadding = true,\n initialVisibleSections = [\"TopNav\", \"SideNav\", \"AppSwitcher\"],\n logoProps,\n onError = console.error,\n optionalComponents,\n sideNavProps,\n topNavProps,\n}: NarrowUiShellContentProps) => {\n const { t } = useTranslation();\n\n const odysseyDesignTokens = useOdysseyDesignTokens();\n const uiShellContext = useUiShellContext();\n\n const { isContentScrolled } = useScrollState(appElement);\n\n const sideNavContainerRef = useRef<HTMLDivElement>(null);\n const topNavContainerRef = useRef<HTMLDivElement>(null);\n const uiShellAppAreaRef = useRef<HTMLDivElement>(null);\n\n const leftSideContainerRef = useRef<HTMLDivElement>(null);\n const leftSideMenuToggleRef = useRef<FocusHandle>(null);\n const leftSideContainerId = useId();\n\n const [isLeftSideMenuOpen, setIsLeftSideMenuOpen] = useState(false);\n const [isRightSideMenuOpen, setIsRightSideMenuOpen] = useState(false);\n\n const closeSideMenus = useCallback(() => {\n setIsLeftSideMenuOpen(false);\n setIsRightSideMenuOpen(false);\n }, []);\n\n useEffect(() => {\n const unsubscribeFromCloseRightSideMenu =\n uiShellContext?.subscribeToCloseRightSideMenu(() => {\n closeSideMenus();\n });\n\n const unsubscribeFromSideNavItemClicked =\n uiShellContext?.subscribeToCloseSideNavMenu(() => {\n closeSideMenus();\n });\n\n return () => {\n unsubscribeFromCloseRightSideMenu?.();\n unsubscribeFromSideNavItemClicked?.();\n };\n }, [closeSideMenus, uiShellContext]);\n\n const toggleLeftSideMenu = useCallback(() => {\n setIsRightSideMenuOpen(false);\n setIsLeftSideMenuOpen((isLeftSideMenuOpen) => !isLeftSideMenuOpen);\n }, []);\n\n const toggleRightSideMenu = useCallback(() => {\n setIsLeftSideMenuOpen(false);\n setIsRightSideMenuOpen((isRightSideMenuOpen) => !isRightSideMenuOpen);\n }, []);\n\n // WCAG 1.3.2: when the left nav opens, focus must move into it so screen\n // reader and keyboard users land on the newly revealed content instead of\n // being stranded on the header. On close we return focus to the toggle\n // (disclosure pattern) — the container is `display: none` by the time this\n // effect runs, so its children can no longer hold focus and we cannot rely\n // on an activeElement containment check.\n const isLeftSideMenuOpenRef = useRef(false);\n\n useEffect(() => {\n if (isLeftSideMenuOpen) {\n leftSideContainerRef.current?.focus();\n } else if (isLeftSideMenuOpenRef.current) {\n leftSideMenuToggleRef.current?.focus();\n }\n\n isLeftSideMenuOpenRef.current = isLeftSideMenuOpen;\n }, [isLeftSideMenuOpen]);\n\n useEffect(() => {\n const handleKeyDown = (event: KeyboardEvent) => {\n if (event.key === \"Escape\") {\n closeSideMenus();\n }\n };\n\n document.addEventListener(\"keydown\", handleKeyDown);\n\n return () => {\n document.removeEventListener(\"keydown\", handleKeyDown);\n };\n }, [closeSideMenus]);\n\n const { parentContainerRef } = useMatchAppElementToUiShellAppArea({\n appElement,\n appElementScrollingMode,\n paddingMode: hasStandardAppContentPadding ? \"compact\" : \"none\",\n uiShellAppAreaRef,\n uiShellResizableRefs: [\n sideNavContainerRef,\n topNavContainerRef,\n uiShellAppAreaRef,\n ],\n });\n\n return (\n <>\n {(isLeftSideMenuOpen || isRightSideMenuOpen) && (\n <StyledPageOverlay\n odysseyDesignTokens={odysseyDesignTokens}\n onClick={closeSideMenus}\n />\n )}\n\n <StyledUiShellContainer\n odysseyDesignTokens={odysseyDesignTokens}\n ref={parentContainerRef}\n >\n <SkipToContent appElement={appElement} />\n\n <StyledBannersContainer>\n {optionalComponents?.banners}\n </StyledBannersContainer>\n\n {(initialVisibleSections?.includes(\"TopNav\") || topNavProps) && (\n <ErrorBoundary fallback={null} onError={onError}>\n <StyledTopNav\n isContentScrolled={isContentScrolled}\n odysseyDesignTokens={odysseyDesignTokens}\n topNavBackgroundColor={uiShellContext?.topNavBackgroundColor}\n >\n <StyledTopNavMenu\n odysseyDesignTokens={odysseyDesignTokens}\n topNavBackgroundColor={uiShellContext?.sideNavBackgroundColor}\n >\n <StyledMenuLogo odysseyDesignTokens={odysseyDesignTokens}>\n {hasSideNavProps &&\n (sideNavProps?.isCollapsible ||\n !sideNavProps?.isCollapsed) && (\n <Button\n ariaControls={leftSideContainerId}\n ariaExpanded={isLeftSideMenuOpen}\n ariaLabel={t(\"topnav.sidenavmenu.toggle\")}\n buttonRef={leftSideMenuToggleRef}\n onClick={toggleLeftSideMenu}\n startIcon={<HamburgerMenuIcon />}\n testId=\"sidenav-menu--icon\"\n variant=\"floating\"\n />\n )}\n\n <StyledLogoContainer\n odysseyDesignTokens={odysseyDesignTokens}\n >\n <UiShellLogo {...(sideNavProps?.logoProps || logoProps)} />\n </StyledLogoContainer>\n </StyledMenuLogo>\n\n {optionalComponents?.rightSideMenu && (\n <Button\n ariaLabel={t(\"topnav.usermenu.toggle\")}\n onClick={toggleRightSideMenu}\n startIcon={\n isRightSideMenuOpen ? <CloseIcon /> : <MoreIcon />\n }\n testId=\"userprofile-menu--icon\"\n variant=\"floating\"\n />\n )}\n </StyledTopNavMenu>\n\n {optionalComponents?.topNavLeftSide && (\n <StyledTopNavSearch odysseyDesignTokens={odysseyDesignTokens}>\n {optionalComponents?.topNavLeftSide}\n </StyledTopNavSearch>\n )}\n </StyledTopNav>\n </ErrorBoundary>\n )}\n\n <StyledAppContentArea>\n <StyledLeftSideContainer\n id={leftSideContainerId}\n isOpen={isLeftSideMenuOpen}\n ref={leftSideContainerRef}\n tabIndex={-1}\n >\n {\n /* If SideNav should be initially visible and we have not yet received props, render SideNav with minimal inputs */\n initialVisibleSections?.includes(\"SideNav\") &&\n !hasSideNavProps && (\n <ErrorBoundary fallback={null} onError={onError}>\n <SideNav isLoading sideNavItems={emptySideNavItems} />\n </ErrorBoundary>\n )\n }\n\n {hasSideNavProps && sideNavProps && (\n <ErrorBoundary fallback={null} onError={onError}>\n <StyledSideNavContainer>\n <SideNav\n {...{\n ...{\n ...sideNavProps,\n // This hides the side nav logo or app name from showing up as we already have one in the narrow top nav.\n appName: undefined,\n logoProps: undefined,\n },\n ...(sideNavProps.hasCustomFooter &&\n optionalComponents?.sideNavFooter\n ? {\n footerComponent: optionalComponents.sideNavFooter,\n footerItems: undefined,\n hasCustomFooter: sideNavProps.hasCustomFooter,\n }\n : {\n footerItems: sideNavProps.footerItems,\n hasCustomFooter: false,\n }),\n }}\n isCollapsed={false}\n isCollapsible={false}\n isObtrusive\n onCollapse={closeSideMenus}\n />\n </StyledSideNavContainer>\n </ErrorBoundary>\n )}\n </StyledLeftSideContainer>\n\n <StyledRightSideContainer\n isOpen={isRightSideMenuOpen}\n odysseyDesignTokens={odysseyDesignTokens}\n >\n <StyledSideNavContainer>\n {optionalComponents?.rightSideMenu}\n </StyledSideNavContainer>\n </StyledRightSideContainer>\n\n <StyledAppContainer\n appBackgroundColor={uiShellContext?.appBackgroundColor}\n ref={uiShellAppAreaRef}\n tabIndex={0}\n >\n <InnerAppContainer isContentScrolled={isContentScrolled} />\n </StyledAppContainer>\n </StyledAppContentArea>\n </StyledUiShellContainer>\n </>\n );\n};\n\nconst MemoizedNarrowUiShellContent = memo(NarrowUiShellContent);\nMemoizedNarrowUiShellContent.displayName = \"NarrowUiShellContent\";\n\nexport { MemoizedNarrowUiShellContent as NarrowUiShellContent };\n"],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,OAAOA,MAAM,MAAM,iBAAiB;AACpC,SAEEC,IAAI,EACJC,WAAW,EACXC,SAAS,EACTC,KAAK,EACLC,MAAM,EACNC,QAAQ,QACH,OAAO;AACd,SAASC,aAAa,QAAQ,sBAAsB;AAKpD,SAASC,MAAM,QAAQ,sBAAsB;AAC7C,SAASC,QAAQ,QAAQ,gBAAgB;AACzC,SAASC,cAAc,QAAQ,2BAA2B;AAC1D,SAASC,SAAS,QAAQ,6BAA6B;AACvD,SAASC,QAAQ,QAAQ,4BAA4B;AACrD,SAEEC,sBAAsB,QACjB,kCAAkC;AACzC,SAASC,iBAAiB,QAAQ,wBAAwB;AAC1D,SAASC,OAAO,QAAQ,sBAAsB;AAC9C,SAASC,aAAa,QAAQ,oBAAoB;AAClD,SAASC,iBAAiB,QAAQ,+BAA+B;AAKjE,SAASC,WAAW,QAAQ,kBAAkB;AAC9C,SAAwBC,iBAAiB,QAAQ,sBAAsB;AACvE,SACEC,iBAAiB,EACjBC,cAAc,EACdC,cAAc,EACdC,qBAAqB,EACrBC,wBAAwB,QACnB,6BAA6B;AACpC,SAASC,kCAAkC,QAAQ,yCAAyC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BACrBoB,WAAW;gBACXC,UAAU,EAAE/C;cAAe,CAC5B;YAAC,CACoB;UAAC,CACZ,CAChB;QAAA,CACsB,CAAC,EAE1BhG,IAAA,CAACqB,wBAAwB;UACvBF,MAAM,EAAE2E,mBAAoB;UAC5BxE,mBAAmB,EAAEA,mBAAoB;UAAA6F,QAAA,EAEzCnH,IAAA,CAACyC,sBAAsB;YAAA0E,QAAA,EACpBlC,kBAAkB,EAAEkD;UAAa,CACZ;QAAC,CACD,CAAC,EAE3BnI,IAAA,CAACU,kBAAkB;UACjBG,kBAAkB,EAAEwE,cAAc,EAAExE,kBAAmB;UACvDwG,GAAG,EAAE7B,iBAAkB;UACvB8C,QAAQ,EAAE,CAAE;UAAAnB,QAAA,EAEZnH,IAAA,CAACd,iBAAiB;YAAC+D,iBAAiB,EAAEA;UAAkB,CAAE;QAAC,CACzC,CAAC;MAAA,CACD,CAAC;IAAA,CACD,CAAC;EAAA,CACzB,CAAC;AAEP,CAAC;AAED,MAAM+F,4BAA4B,GAAG3K,IAAI,CAACkG,oBAAoB,CAAC;AAC/DyE,4BAA4B,CAACC,WAAW,sDAAyB;AAEjE,SAASD,4BAA4B,IAAIzE,oBAAoB","ignoreList":[]}
1
+ {"version":3,"file":"NarrowUiShellContent.js","names":["styled","memo","useCallback","useEffect","useRef","useState","ErrorBoundary","Button","hexToRgb","useTranslation","CloseIcon","MoreIcon","useOdysseyDesignTokens","useUniqueId","InnerAppContainer","SideNav","SkipToContent","HamburgerMenuIcon","UiShellLogo","useUiShellContext","emptySideNavItems","SIDE_NAV_WIDTH","TOP_NAV_HEIGHT","UI_SHELL_BASE_Z_INDEX","UI_SHELL_OVERLAY_Z_INDEX","useMatchAppElementToUiShellAppArea","useScrollState","jsx","_jsx","jsxs","_jsxs","Fragment","_Fragment","StyledAppContentArea","gridArea","position","height","width","StyledAppContainer","shouldForwardProp","prop","appBackgroundColor","backgroundColor","overflow","StyledBannersContainer","zIndex","StyledLeftSideContainer","isOpen","display","StyledRightSideContainer","odysseyDesignTokens","HueNeutralWhite","maxWidth","overflowY","right","StyledMenuLogo","alignItems","gap","Spacing3","StyledLogoContainer","paddingBlock","Spacing4","maxHeight","StyledPageOverlay","HueNeutral900","asFormattedString","replace","left","top","StyledSideNavContainer","StyledUiShellContainer","HueNeutral50","gridGap","gridTemplateAreas","gridTemplateColumns","gridTemplateRows","StyledTopNav","isContentScrolled","topNavBackgroundColor","boxShadow","DepthMedium","undefined","clipPath","flexDirection","justifyContent","transition","TransitionDurationMain","TransitionTimingMain","StyledTopNavMenu","minHeight","Spacing2","paddingInline","borderBottomColor","HueNeutral100","borderBottomStyle","BorderStyleMain","borderBottomWidth","BorderWidthMain","StyledTopNavSearch","NarrowUiShellContent","appElement","appElementScrollingMode","hasSideNavProps","hasStandardAppContentPadding","initialVisibleSections","logoProps","onError","console","error","optionalComponents","sideNavProps","topNavProps","t","uiShellContext","sideNavContainerRef","topNavContainerRef","uiShellAppAreaRef","leftSideContainerRef","leftSideMenuToggleRef","leftSideContainerId","isLeftSideMenuOpen","setIsLeftSideMenuOpen","isRightSideMenuOpen","setIsRightSideMenuOpen","closeSideMenus","unsubscribeFromCloseRightSideMenu","subscribeToCloseRightSideMenu","unsubscribeFromSideNavItemClicked","subscribeToCloseSideNavMenu","toggleLeftSideMenu","toggleRightSideMenu","isLeftSideMenuOpenRef","current","focus","handleKeyDown","event","key","document","addEventListener","removeEventListener","parentContainerRef","paddingMode","uiShellResizableRefs","children","onClick","ref","banners","includes","fallback","sideNavBackgroundColor","isCollapsible","isCollapsed","ariaControls","ariaExpanded","ariaLabel","buttonRef","startIcon","testId","variant","rightSideMenu","topNavLeftSide","id","tabIndex","isLoading","sideNavItems","appName","hasCustomFooter","sideNavFooter","footerComponent","footerItems","isObtrusive","onCollapse","MemoizedNarrowUiShellContent","displayName"],"sources":["../../../src/ui-shell/NarrowUiShellContent.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 styled from \"@emotion/styled\";\nimport {\n CSSProperties,\n memo,\n useCallback,\n useEffect,\n useRef,\n useState,\n} from \"react\";\nimport { ErrorBoundary } from \"react-error-boundary\";\n\nimport type { HtmlProps } from \"../HtmlProps.js\";\nimport type { FocusHandle } from \"../inputUtils.js\";\n\nimport { Button } from \"../Buttons/Button.js\";\nimport { hexToRgb } from \"../hexToRgb.js\";\nimport { useTranslation } from \"../i18n.generated/i18n.js\";\nimport { CloseIcon } from \"../icons.generated/Close.js\";\nimport { MoreIcon } from \"../icons.generated/More.js\";\nimport {\n DesignTokens,\n useOdysseyDesignTokens,\n} from \"../OdysseyDesignTokensContext.js\";\nimport { useUniqueId } from \"../useUniqueId.js\";\nimport { InnerAppContainer } from \"./InnerAppContainer.js\";\nimport { SideNav } from \"./SideNav/SideNav.js\";\nimport { SkipToContent } from \"./SkipToContent.js\";\nimport { HamburgerMenuIcon } from \"./TopNav/HamburgerMenuIcon.js\";\nimport {\n UiShellContentProps,\n UiShellNavComponentProps,\n} from \"./uiShellContentTypes.js\";\nimport { UiShellLogo } from \"./UiShellLogo.js\";\nimport { UiShellColors, useUiShellContext } from \"./UiShellProvider.js\";\nimport {\n emptySideNavItems,\n SIDE_NAV_WIDTH,\n TOP_NAV_HEIGHT,\n UI_SHELL_BASE_Z_INDEX,\n UI_SHELL_OVERLAY_Z_INDEX,\n} from \"./uiShellSharedConstants.js\";\nimport { useMatchAppElementToUiShellAppArea } from \"./useMatchAppElementToUiShellAppArea.js\";\nimport { useScrollState } from \"./useScrollState.js\";\n\nconst StyledAppContentArea = styled(\"div\")({\n gridArea: \"app-content\",\n position: \"relative\",\n height: \"100%\",\n width: \"100%\",\n});\n\nconst StyledAppContainer = styled(\"div\", {\n shouldForwardProp: (prop) =>\n prop !== \"appBackgroundColor\" && prop !== \"odysseyDesignTokens\",\n})<{\n appBackgroundColor?: UiShellColors[\"appBackgroundColor\"];\n}>(({ appBackgroundColor }) => ({\n backgroundColor: appBackgroundColor,\n height: \"100%\",\n overflow: \"hidden\",\n width: \"100%\",\n}));\n\nconst StyledBannersContainer = styled(\"div\")({\n gridArea: \"banners\",\n zIndex: UI_SHELL_BASE_Z_INDEX,\n});\n\nconst StyledLeftSideContainer = styled(\"div\", {\n shouldForwardProp: (prop) => prop !== \"isOpen\",\n})<{\n isOpen: boolean;\n}>(({ isOpen }) => ({\n display: isOpen ? \"block\" : \"none\",\n height: \"100%\",\n position: \"absolute\",\n zIndex: UI_SHELL_OVERLAY_Z_INDEX,\n}));\n\nconst StyledRightSideContainer = styled(\"div\", {\n shouldForwardProp: (prop) =>\n prop !== \"isOpen\" && prop !== \"odysseyDesignTokens\",\n})<{\n isOpen: boolean;\n odysseyDesignTokens: DesignTokens;\n}>(({ isOpen, odysseyDesignTokens }) => ({\n backgroundColor: odysseyDesignTokens.HueNeutralWhite,\n display: isOpen ? \"block\" : \"none\",\n height: \"100%\",\n maxWidth: SIDE_NAV_WIDTH,\n overflowY: \"auto\",\n position: \"absolute\",\n right: 0,\n width: SIDE_NAV_WIDTH,\n zIndex: UI_SHELL_OVERLAY_Z_INDEX,\n}));\n\nconst StyledMenuLogo = styled(\"div\", {\n shouldForwardProp: (prop) => prop !== \"odysseyDesignTokens\",\n})<{\n odysseyDesignTokens: DesignTokens;\n}>(({ odysseyDesignTokens }) => ({\n alignItems: \"center\",\n display: \"inline-flex\",\n gap: odysseyDesignTokens.Spacing3,\n}));\n\nconst StyledLogoContainer = styled(\"div\", {\n shouldForwardProp: (prop) => prop !== \"odysseyDesignTokens\",\n})<{\n odysseyDesignTokens: DesignTokens;\n}>(({ odysseyDesignTokens }) => ({\n height: TOP_NAV_HEIGHT,\n paddingBlock: odysseyDesignTokens.Spacing4,\n\n \"svg, img\": {\n maxHeight: \"100%\",\n width: \"auto\",\n maxWidth: \"100%\",\n },\n}));\n\nconst StyledPageOverlay = styled(\"div\", {\n shouldForwardProp: (prop) => prop !== \"odysseyDesignTokens\",\n})<{\n odysseyDesignTokens: DesignTokens;\n}>(({ odysseyDesignTokens }) => ({\n backgroundColor: hexToRgb(\n odysseyDesignTokens.HueNeutral900,\n ).asFormattedString.replace(/rgb\\((.+)\\)$/, \"rgba($1, 0.26)\"),\n gridArea: \"app-content\",\n height: \"100vh\",\n left: 0,\n position: \"absolute\",\n top: 0,\n width: \"100vw\",\n zIndex: UI_SHELL_BASE_Z_INDEX,\n}));\n\nconst StyledSideNavContainer = styled(\"div\")({\n height: \"100%\", // Without this value, side nav won't fill up the height if the content is too short.\n});\n\nconst StyledUiShellContainer = styled(\"div\", {\n shouldForwardProp: (prop) => prop !== \"odysseyDesignTokens\",\n})<{\n odysseyDesignTokens: DesignTokens;\n}>(({ odysseyDesignTokens }) => ({\n backgroundColor: odysseyDesignTokens.HueNeutral50,\n display: \"grid\",\n gridGap: 0,\n gridTemplateAreas: `\n \"banners\"\n \"top-nav\"\n \"app-content\"\n `,\n gridTemplateColumns: \"1fr\",\n gridTemplateRows: \"auto auto 1fr\",\n height: \"100vh\",\n overflow: \"hidden\",\n width: \"100vw\",\n}));\n\nconst StyledTopNav = styled(\"div\", {\n shouldForwardProp: (prop) =>\n prop !== \"odysseyDesignTokens\" &&\n prop !== \"isContentScrolled\" &&\n prop !== \"topNavBackgroundColor\",\n})<{\n isContentScrolled?: boolean;\n odysseyDesignTokens: DesignTokens;\n topNavBackgroundColor?: UiShellColors[\"topNavBackgroundColor\"];\n}>(({ odysseyDesignTokens, isContentScrolled, topNavBackgroundColor }) => ({\n alignItems: \"stretch\",\n backgroundColor: odysseyDesignTokens.HueNeutralWhite || topNavBackgroundColor, // This logic doesn't make sense, but I wanted to leave it here for when we eventually make a decision on `topNavBackgroundColor`. --Kevin Ghadyani\n boxShadow: isContentScrolled ? odysseyDesignTokens.DepthMedium : undefined,\n clipPath: \"inset(0 0 -100vh 0)\",\n display: \"flex\",\n flexDirection: \"column\",\n gridArea: \"top-nav\",\n height: \"100%\",\n justifyContent: \"center\",\n position: \"relative\",\n transition: `box-shadow ${odysseyDesignTokens.TransitionDurationMain} ${odysseyDesignTokens.TransitionTimingMain}`,\n zIndex: UI_SHELL_BASE_Z_INDEX,\n}));\n\nconst StyledTopNavMenu = styled(\"div\", {\n shouldForwardProp: (prop) =>\n prop !== \"odysseyDesignTokens\" && prop !== \"topNavBackgroundColor\",\n})<{\n odysseyDesignTokens: DesignTokens;\n topNavBackgroundColor?: UiShellColors[\"topNavBackgroundColor\"];\n}>(({ odysseyDesignTokens, topNavBackgroundColor }) => ({\n alignItems: \"center\",\n display: \"flex\",\n gap: odysseyDesignTokens.Spacing3,\n height: \"100%\",\n justifyContent: \"space-between\",\n maxHeight: TOP_NAV_HEIGHT,\n minHeight: TOP_NAV_HEIGHT,\n paddingBlock: odysseyDesignTokens.Spacing2,\n paddingInline: odysseyDesignTokens.Spacing3,\n transition: `box-shadow ${odysseyDesignTokens.TransitionDurationMain} ${odysseyDesignTokens.TransitionTimingMain}`,\n\n ...(topNavBackgroundColor === odysseyDesignTokens.HueNeutralWhite &&\n ({\n borderBottomColor: odysseyDesignTokens.HueNeutral100,\n borderBottomStyle: odysseyDesignTokens.BorderStyleMain,\n borderBottomWidth: odysseyDesignTokens.BorderWidthMain,\n } as CSSProperties)),\n}));\n\nconst StyledTopNavSearch = styled(\"div\", {\n shouldForwardProp: (prop) => prop !== \"odysseyDesignTokens\",\n})<{\n odysseyDesignTokens: DesignTokens;\n}>(({ odysseyDesignTokens }) => ({\n paddingBlock: odysseyDesignTokens.Spacing2,\n paddingInline: odysseyDesignTokens.Spacing3,\n}));\n\nexport type NarrowUiShellContentProps = Pick<HtmlProps, \"testId\"> &\n Pick<UiShellNavComponentProps, \"logoProps\" | \"sideNavProps\" | \"topNavProps\"> &\n UiShellContentProps;\n\nconst NarrowUiShellContent = ({\n appElement,\n appElementScrollingMode,\n hasSideNavProps,\n hasStandardAppContentPadding = true,\n initialVisibleSections = [\"TopNav\", \"SideNav\", \"AppSwitcher\"],\n logoProps,\n onError = console.error,\n optionalComponents,\n sideNavProps,\n topNavProps,\n}: NarrowUiShellContentProps) => {\n const { t } = useTranslation();\n\n const odysseyDesignTokens = useOdysseyDesignTokens();\n const uiShellContext = useUiShellContext();\n\n const { isContentScrolled } = useScrollState(appElement);\n\n const sideNavContainerRef = useRef<HTMLDivElement>(null);\n const topNavContainerRef = useRef<HTMLDivElement>(null);\n const uiShellAppAreaRef = useRef<HTMLDivElement>(null);\n\n const leftSideContainerRef = useRef<HTMLDivElement>(null);\n const leftSideMenuToggleRef = useRef<FocusHandle>(null);\n const leftSideContainerId = useUniqueId();\n\n const [isLeftSideMenuOpen, setIsLeftSideMenuOpen] = useState(false);\n const [isRightSideMenuOpen, setIsRightSideMenuOpen] = useState(false);\n\n const closeSideMenus = useCallback(() => {\n setIsLeftSideMenuOpen(false);\n setIsRightSideMenuOpen(false);\n }, []);\n\n useEffect(() => {\n const unsubscribeFromCloseRightSideMenu =\n uiShellContext?.subscribeToCloseRightSideMenu(() => {\n closeSideMenus();\n });\n\n const unsubscribeFromSideNavItemClicked =\n uiShellContext?.subscribeToCloseSideNavMenu(() => {\n closeSideMenus();\n });\n\n return () => {\n unsubscribeFromCloseRightSideMenu?.();\n unsubscribeFromSideNavItemClicked?.();\n };\n }, [closeSideMenus, uiShellContext]);\n\n const toggleLeftSideMenu = useCallback(() => {\n setIsRightSideMenuOpen(false);\n setIsLeftSideMenuOpen((isLeftSideMenuOpen) => !isLeftSideMenuOpen);\n }, []);\n\n const toggleRightSideMenu = useCallback(() => {\n setIsLeftSideMenuOpen(false);\n setIsRightSideMenuOpen((isRightSideMenuOpen) => !isRightSideMenuOpen);\n }, []);\n\n // WCAG 1.3.2: when the left nav opens, focus must move into it so screen\n // reader and keyboard users land on the newly revealed content instead of\n // being stranded on the header. On close we return focus to the toggle\n // (disclosure pattern) — the container is `display: none` by the time this\n // effect runs, so its children can no longer hold focus and we cannot rely\n // on an activeElement containment check.\n const isLeftSideMenuOpenRef = useRef(false);\n\n useEffect(() => {\n if (isLeftSideMenuOpen) {\n leftSideContainerRef.current?.focus();\n } else if (isLeftSideMenuOpenRef.current) {\n leftSideMenuToggleRef.current?.focus();\n }\n\n isLeftSideMenuOpenRef.current = isLeftSideMenuOpen;\n }, [isLeftSideMenuOpen]);\n\n useEffect(() => {\n const handleKeyDown = (event: KeyboardEvent) => {\n if (event.key === \"Escape\") {\n closeSideMenus();\n }\n };\n\n document.addEventListener(\"keydown\", handleKeyDown);\n\n return () => {\n document.removeEventListener(\"keydown\", handleKeyDown);\n };\n }, [closeSideMenus]);\n\n const { parentContainerRef } = useMatchAppElementToUiShellAppArea({\n appElement,\n appElementScrollingMode,\n paddingMode: hasStandardAppContentPadding ? \"compact\" : \"none\",\n uiShellAppAreaRef,\n uiShellResizableRefs: [\n sideNavContainerRef,\n topNavContainerRef,\n uiShellAppAreaRef,\n ],\n });\n\n return (\n <>\n {(isLeftSideMenuOpen || isRightSideMenuOpen) && (\n <StyledPageOverlay\n odysseyDesignTokens={odysseyDesignTokens}\n onClick={closeSideMenus}\n />\n )}\n\n <StyledUiShellContainer\n odysseyDesignTokens={odysseyDesignTokens}\n ref={parentContainerRef}\n >\n <SkipToContent appElement={appElement} />\n\n <StyledBannersContainer>\n {optionalComponents?.banners}\n </StyledBannersContainer>\n\n {(initialVisibleSections?.includes(\"TopNav\") || topNavProps) && (\n <ErrorBoundary fallback={null} onError={onError}>\n <StyledTopNav\n isContentScrolled={isContentScrolled}\n odysseyDesignTokens={odysseyDesignTokens}\n topNavBackgroundColor={uiShellContext?.topNavBackgroundColor}\n >\n <StyledTopNavMenu\n odysseyDesignTokens={odysseyDesignTokens}\n topNavBackgroundColor={uiShellContext?.sideNavBackgroundColor}\n >\n <StyledMenuLogo odysseyDesignTokens={odysseyDesignTokens}>\n {hasSideNavProps &&\n (sideNavProps?.isCollapsible ||\n !sideNavProps?.isCollapsed) && (\n <Button\n ariaControls={leftSideContainerId}\n ariaExpanded={isLeftSideMenuOpen}\n ariaLabel={t(\"topnav.sidenavmenu.toggle\")}\n buttonRef={leftSideMenuToggleRef}\n onClick={toggleLeftSideMenu}\n startIcon={<HamburgerMenuIcon />}\n testId=\"sidenav-menu--icon\"\n variant=\"floating\"\n />\n )}\n\n <StyledLogoContainer\n odysseyDesignTokens={odysseyDesignTokens}\n >\n <UiShellLogo {...(sideNavProps?.logoProps || logoProps)} />\n </StyledLogoContainer>\n </StyledMenuLogo>\n\n {optionalComponents?.rightSideMenu && (\n <Button\n ariaLabel={t(\"topnav.usermenu.toggle\")}\n onClick={toggleRightSideMenu}\n startIcon={\n isRightSideMenuOpen ? <CloseIcon /> : <MoreIcon />\n }\n testId=\"userprofile-menu--icon\"\n variant=\"floating\"\n />\n )}\n </StyledTopNavMenu>\n\n {optionalComponents?.topNavLeftSide && (\n <StyledTopNavSearch odysseyDesignTokens={odysseyDesignTokens}>\n {optionalComponents?.topNavLeftSide}\n </StyledTopNavSearch>\n )}\n </StyledTopNav>\n </ErrorBoundary>\n )}\n\n <StyledAppContentArea>\n <StyledLeftSideContainer\n id={leftSideContainerId}\n isOpen={isLeftSideMenuOpen}\n ref={leftSideContainerRef}\n tabIndex={-1}\n >\n {\n /* If SideNav should be initially visible and we have not yet received props, render SideNav with minimal inputs */\n initialVisibleSections?.includes(\"SideNav\") &&\n !hasSideNavProps && (\n <ErrorBoundary fallback={null} onError={onError}>\n <SideNav isLoading sideNavItems={emptySideNavItems} />\n </ErrorBoundary>\n )\n }\n\n {hasSideNavProps && sideNavProps && (\n <ErrorBoundary fallback={null} onError={onError}>\n <StyledSideNavContainer>\n <SideNav\n {...{\n ...{\n ...sideNavProps,\n // This hides the side nav logo or app name from showing up as we already have one in the narrow top nav.\n appName: undefined,\n logoProps: undefined,\n },\n ...(sideNavProps.hasCustomFooter &&\n optionalComponents?.sideNavFooter\n ? {\n footerComponent: optionalComponents.sideNavFooter,\n footerItems: undefined,\n hasCustomFooter: sideNavProps.hasCustomFooter,\n }\n : {\n footerItems: sideNavProps.footerItems,\n hasCustomFooter: false,\n }),\n }}\n isCollapsed={false}\n isCollapsible={false}\n isObtrusive\n onCollapse={closeSideMenus}\n />\n </StyledSideNavContainer>\n </ErrorBoundary>\n )}\n </StyledLeftSideContainer>\n\n <StyledRightSideContainer\n isOpen={isRightSideMenuOpen}\n odysseyDesignTokens={odysseyDesignTokens}\n >\n <StyledSideNavContainer>\n {optionalComponents?.rightSideMenu}\n </StyledSideNavContainer>\n </StyledRightSideContainer>\n\n <StyledAppContainer\n appBackgroundColor={uiShellContext?.appBackgroundColor}\n ref={uiShellAppAreaRef}\n tabIndex={0}\n >\n <InnerAppContainer isContentScrolled={isContentScrolled} />\n </StyledAppContainer>\n </StyledAppContentArea>\n </StyledUiShellContainer>\n </>\n );\n};\n\nconst MemoizedNarrowUiShellContent = memo(NarrowUiShellContent);\nMemoizedNarrowUiShellContent.displayName = \"NarrowUiShellContent\";\n\nexport { MemoizedNarrowUiShellContent as NarrowUiShellContent };\n"],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,OAAOA,MAAM,MAAM,iBAAiB;AACpC,SAEEC,IAAI,EACJC,WAAW,EACXC,SAAS,EACTC,MAAM,EACNC,QAAQ,QACH,OAAO;AACd,SAASC,aAAa,QAAQ,sBAAsB;AAKpD,SAASC,MAAM,QAAQ,sBAAsB;AAC7C,SAASC,QAAQ,QAAQ,gBAAgB;AACzC,SAASC,cAAc,QAAQ,2BAA2B;AAC1D,SAASC,SAAS,QAAQ,6BAA6B;AACvD,SAASC,QAAQ,QAAQ,4BAA4B;AACrD,SAEEC,sBAAsB,QACjB,kCAAkC;AACzC,SAASC,WAAW,QAA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AS,EAAExB;gBACb,CAAC;gBACD,IAAI6B,YAAY,CAACwD,eAAe,IAChCzD,kBAAkB,EAAE0D,aAAa,GAC7B;kBACEC,eAAe,EAAE3D,kBAAkB,CAAC0D,aAAa;kBACjDE,WAAW,EAAExF,SAAS;kBACtBqF,eAAe,EAAExD,YAAY,CAACwD;gBAChC,CAAC,GACD;kBACEG,WAAW,EAAE3D,YAAY,CAAC2D,WAAW;kBACrCH,eAAe,EAAE;gBACnB,CAAC,CAAC;gBAERf,WAAW,EAAE,KAAM;gBACnBD,aAAa,EAAE,KAAM;gBACrBoB,WAAW;gBACXC,UAAU,EAAE/C;cAAe,CAC5B;YAAC,CACoB;UAAC,CACZ,CAChB;QAAA,CACsB,CAAC,EAE1BhG,IAAA,CAACqB,wBAAwB;UACvBF,MAAM,EAAE2E,mBAAoB;UAC5BxE,mBAAmB,EAAEA,mBAAoB;UAAA6F,QAAA,EAEzCnH,IAAA,CAACyC,sBAAsB;YAAA0E,QAAA,EACpBlC,kBAAkB,EAAEkD;UAAa,CACZ;QAAC,CACD,CAAC,EAE3BnI,IAAA,CAACU,kBAAkB;UACjBG,kBAAkB,EAAEwE,cAAc,EAAExE,kBAAmB;UACvDwG,GAAG,EAAE7B,iBAAkB;UACvB8C,QAAQ,EAAE,CAAE;UAAAnB,QAAA,EAEZnH,IAAA,CAACd,iBAAiB;YAAC+D,iBAAiB,EAAEA;UAAkB,CAAE;QAAC,CACzC,CAAC;MAAA,CACD,CAAC;IAAA,CACD,CAAC;EAAA,CACzB,CAAC;AAEP,CAAC;AAED,MAAM+F,4BAA4B,GAAG3K,IAAI,CAACkG,oBAAoB,CAAC;AAC/DyE,4BAA4B,CAACC,WAAW,sDAAyB;AAEjE,SAASD,4BAA4B,IAAIzE,oBAAoB","ignoreList":[]}
@@ -163,6 +163,6 @@ const NavAccordion = ({
163
163
  });
164
164
  };
165
165
  const MemoizedNavAccordion = memo(NavAccordion);
166
- MemoizedNavAccordion.displayName = "NavAccordion::pkg=odyssey&odysseyV=1.65.1";
166
+ MemoizedNavAccordion.displayName = "NavAccordion::pkg=odyssey&odysseyV=1.66.0";
167
167
  export { MemoizedNavAccordion as NavAccordion };
168
168
  //# sourceMappingURL=NavAccordion.js.map
@@ -646,6 +646,6 @@ const SideNav = ({
646
646
  });
647
647
  };
648
648
  const MemoizedSideNav = memo(SideNav);
649
- MemoizedSideNav.displayName = "SideNav::pkg=odyssey&odysseyV=1.65.1";
649
+ MemoizedSideNav.displayName = "SideNav::pkg=odyssey&odysseyV=1.66.0";
650
650
  export { MemoizedSideNav as SideNav };
651
651
  //# sourceMappingURL=SideNav.js.map
@@ -62,6 +62,6 @@ const SideNavFooterContent = ({
62
62
  });
63
63
  };
64
64
  const MemoizedSideNavFooterContent = memo(SideNavFooterContent);
65
- MemoizedSideNavFooterContent.displayName = "SideNavFooterContent::pkg=odyssey&odysseyV=1.65.1";
65
+ MemoizedSideNavFooterContent.displayName = "SideNavFooterContent::pkg=odyssey&odysseyV=1.66.0";
66
66
  export { MemoizedSideNavFooterContent as SideNavFooterContent };
67
67
  //# sourceMappingURL=SideNavFooterContent.js.map
@@ -93,6 +93,6 @@ const SideNavHeader = ({
93
93
  });
94
94
  };
95
95
  const MemoizedSideNavHeader = memo(SideNavHeader);
96
- MemoizedSideNavHeader.displayName = "SideNavHeader::pkg=odyssey&odysseyV=1.65.1";
96
+ MemoizedSideNavHeader.displayName = "SideNavHeader::pkg=odyssey&odysseyV=1.66.0";
97
97
  export { MemoizedSideNavHeader as SideNavHeader };
98
98
  //# sourceMappingURL=SideNavHeader.js.map
@@ -54,7 +54,7 @@ const SideNavListItem = forwardRef(({
54
54
  ...sideNavListItemProps,
55
55
  ref: sideNavListItemRef
56
56
  }));
57
- SideNavListItem.displayName = "SideNavListItem::pkg=odyssey&odysseyV=1.65.1";
57
+ SideNavListItem.displayName = "SideNavListItem::pkg=odyssey&odysseyV=1.66.0";
58
58
  const scrollToNode = node => {
59
59
  if (node) {
60
60
  node?.scrollIntoView({
@@ -337,6 +337,6 @@ const SideNavItemContent = ({
337
337
  }, id);
338
338
  };
339
339
  const MemoizedSideNavItemContent = memo(SideNavItemContent);
340
- MemoizedSideNavItemContent.displayName = "SideNavItemContent::pkg=odyssey&odysseyV=1.65.1";
340
+ MemoizedSideNavItemContent.displayName = "SideNavItemContent::pkg=odyssey&odysseyV=1.66.0";
341
341
  export { MemoizedSideNavItemContent as SideNavItemContent };
342
342
  //# sourceMappingURL=SideNavItemContent.js.map
@@ -67,6 +67,6 @@ const SideNavItemLinkContent = ({
67
67
  });
68
68
  };
69
69
  const MemoizedSideNavItemLinkContent = memo(SideNavItemLinkContent);
70
- MemoizedSideNavItemLinkContent.displayName = "SideNavItemLinkContent::pkg=odyssey&odysseyV=1.65.1";
70
+ MemoizedSideNavItemLinkContent.displayName = "SideNavItemLinkContent::pkg=odyssey&odysseyV=1.66.0";
71
71
  export { MemoizedSideNavItemLinkContent as SideNavItemLinkContent };
72
72
  //# sourceMappingURL=SideNavItemLinkContent.js.map
@@ -38,6 +38,6 @@ const SideNavSortableList = ({
38
38
  });
39
39
  };
40
40
  const MemoizedSideNavSortableList = memo(SideNavSortableList);
41
- MemoizedSideNavSortableList.displayName = "SideNavSortableList::pkg=odyssey&odysseyV=1.65.1";
41
+ MemoizedSideNavSortableList.displayName = "SideNavSortableList::pkg=odyssey&odysseyV=1.66.0";
42
42
  export { MemoizedSideNavSortableList as SideNavSortableList };
43
43
  //# sourceMappingURL=SideNavSortableList.js.map
@@ -44,7 +44,8 @@ const StyledToggleButton = styled(_Button, {
44
44
  "&:focus-visible": {
45
45
  outline: "none"
46
46
  },
47
- "&:hover, &:focus-visible": {
47
+ "&&:hover, &&:focus-visible": {
48
+ backgroundColor: "transparent",
48
49
  color: odysseyDesignTokens.HueNeutralWhite
49
50
  },
50
51
  "&::before": {
@@ -80,7 +81,7 @@ const StyledChevronRightIcon = styled(ChevronRightIcon, {
80
81
  transitionProperty: "transform",
81
82
  transitionTimingFunction: "ease-in-out"
82
83
  }));
83
- StyledChevronRightIcon.displayName = "StyledChevronRightIcon::pkg=odyssey&odysseyV=1.65.1";
84
+ StyledChevronRightIcon.displayName = "StyledChevronRightIcon::pkg=odyssey&odysseyV=1.66.0";
84
85
  const defaultLocalButton = typeof window === "undefined" ? null : document.createElement("button");
85
86
  const SideNavToggleButton = ({
86
87
  ariaControls,
@@ -155,6 +156,6 @@ const SideNavToggleButton = ({
155
156
  });
156
157
  };
157
158
  const MemoizedSideNavToggleButton = memo(SideNavToggleButton);
158
- MemoizedSideNavToggleButton.displayName = "SideNavToggleButton::pkg=odyssey&odysseyV=1.65.1";
159
+ MemoizedSideNavToggleButton.displayName = "SideNavToggleButton::pkg=odyssey&odysseyV=1.66.0";
159
160
  export { MemoizedSideNavToggleButton as SideNavToggleButton };
160
161
  //# sourceMappingURL=SideNavToggleButton.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"SideNavToggleButton.js","names":["styled","memo","useCallback","useEffect","useMemo","useRef","useTranslation","ChevronRightIcon","MuiPropsContext","useOdysseyDesignTokens","Tooltip","UI_SHELL_OVERLAY_Z_INDEX","jsx","_jsx","SIDE_NAV_TOGGLE_ICON_SIZE","SIDE_NAV_TOGGLE_ICON_HALF_SIZE","StyledToggleButton","_Button","shouldForwardProp","prop","clickAreaPadding","odysseyDesignTokens","border","height","left","padding","position","width","zIndex","backgroundColor","borderColor","boxShadow","color","PalettePrimaryText","outline","HueNeutralWhite","borderRadius","ShadowScale1","content","top","StyledChevronRightIcon","isSideNavCollapsed","fontSize","undefined","right","transform","transitionDuration","TransitionDurationMain","transitionProperty","transitionTimingFunction","displayName","defaultLocalButton","window","document","createElement","SideNavToggleButton","ariaControls","id","onClick","onHighlight","tabIndex","t","buttonRef","setHighlighted","setUnhighlighted","setFocusHighlighted","Boolean","current","matches","addEventListener","removeEventListener","toggleLabel","renderButton","muiProps","ref","element","variant","children","ariaType","placement","text","Consumer","MemoizedSideNavToggleButton"],"sources":["../../../../src/ui-shell/SideNav/SideNavToggleButton.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 type { ButtonProps as MuiButtonProps } from \"@mui/material\";\n\nimport styled from \"@emotion/styled\";\nimport { Button as MuiButton } from \"@mui/material\";\nimport {\n HTMLAttributes,\n memo,\n useCallback,\n useEffect,\n useMemo,\n useRef,\n} from \"react\";\n\nimport { useTranslation } from \"../../i18n.generated/i18n.js\";\nimport { ChevronRightIcon } from \"../../icons.generated/ChevronRight.js\";\nimport { MuiPropsContext, MuiPropsContextType } from \"../../MuiPropsContext.js\";\nimport {\n DesignTokens,\n useOdysseyDesignTokens,\n} from \"../../OdysseyDesignTokensContext.js\";\nimport { Tooltip } from \"../../Tooltip.js\";\nimport { UI_SHELL_OVERLAY_Z_INDEX } from \"../uiShellSharedConstants.js\";\n\nexport const SIDE_NAV_TOGGLE_ICON_SIZE = 24;\nexport const SIDE_NAV_TOGGLE_ICON_HALF_SIZE = SIDE_NAV_TOGGLE_ICON_SIZE / 2;\n\nconst StyledToggleButton = styled(MuiButton, {\n shouldForwardProp: (prop) =>\n prop !== \"clickAreaPadding\" && prop !== \"odysseyDesignTokens\",\n})<{\n clickAreaPadding: number;\n odysseyDesignTokens: DesignTokens;\n}>(({ clickAreaPadding, odysseyDesignTokens }) => ({\n border: 0,\n height: `${SIDE_NAV_TOGGLE_ICON_SIZE}px`,\n left: `-${clickAreaPadding * 2}px`,\n padding: 0,\n position: \"relative\",\n width: `calc(${SIDE_NAV_TOGGLE_ICON_SIZE}px + (${clickAreaPadding}px * 2))`,\n zIndex: UI_SHELL_OVERLAY_Z_INDEX,\n\n // `&&` is a CSS specificity override. Used here to counteract MUI Button styles.\n \"&&\": {\n backgroundColor: \"transparent\",\n borderColor: \"transparent\",\n boxShadow: \"none\",\n color: odysseyDesignTokens.PalettePrimaryText,\n },\n\n \"&:focus-visible\": {\n outline: \"none\",\n },\n\n \"&:hover, &:focus-visible\": {\n color: odysseyDesignTokens.HueNeutralWhite,\n },\n\n \"&::before\": {\n backgroundColor: odysseyDesignTokens.HueNeutralWhite,\n borderColor: \"transparent\",\n borderRadius: \"50%\",\n boxShadow: odysseyDesignTokens.ShadowScale1,\n color: odysseyDesignTokens.PalettePrimaryText,\n content: \"''\",\n height: `${SIDE_NAV_TOGGLE_ICON_SIZE}px`,\n left: `${clickAreaPadding * 2}px`,\n position: \"absolute\",\n top: 0,\n width: `${SIDE_NAV_TOGGLE_ICON_SIZE}px`,\n },\n\n \"&:hover::before, &:focus-visible::before\": {\n backgroundColor: odysseyDesignTokens.PalettePrimaryText,\n },\n}));\n\nconst StyledChevronRightIcon = styled(ChevronRightIcon, {\n shouldForwardProp: (prop) =>\n prop !== \"odysseyDesignTokens\" && prop !== \"isSideNavCollapsed\",\n})<{\n isSideNavCollapsed: boolean;\n odysseyDesignTokens: DesignTokens;\n}>(({ isSideNavCollapsed, odysseyDesignTokens }) => ({\n fontSize: \"125%\",\n left: isSideNavCollapsed ? undefined : \"4px\",\n position: \"absolute\",\n right: isSideNavCollapsed ? \"4px\" : undefined,\n top: \"3px\",\n transform: isSideNavCollapsed ? \"rotate(0deg)\" : \"rotate(-180deg)\", // Leave this as `-180deg` so it rotates over the top, not the bottom.\n transitionDuration: odysseyDesignTokens.TransitionDurationMain,\n transitionProperty: \"transform\",\n transitionTimingFunction: \"ease-in-out\",\n}));\nStyledChevronRightIcon.displayName = \"StyledChevronRightIcon\";\n\nexport type SideNavToggleButtonProps = {\n /**\n * The `id` of the item this button controls\n */\n ariaControls: string;\n /**\n * Left padding in pixels for the click area of the button.\n *\n * Useful when moving the button around when trying to click it. This ensures the click area doesn't move to the right along with the button.\n */\n clickAreaPadding?: number;\n /**\n * HTML `id` attribute for the `<button>` element.\n */\n id?: string;\n isSideNavCollapsed: boolean;\n /**\n * Click event handler for the `<button>` element.\n */\n onClick?: MuiButtonProps[\"onClick\"];\n /**\n * Provides the hovered or focused state of the `<button>` element.\n */\n onHighlight?: (isHighlighted: boolean) => void;\n onKeyDown?: MuiButtonProps[\"onKeyDown\"];\n tabIndex?: HTMLAttributes<HTMLElement>[\"tabIndex\"];\n};\n\n// This allows us to mutate the value with TypeScript. A singleton is fine because it gets overridden on render.\nconst defaultLocalButton =\n typeof window === \"undefined\" ? null : document.createElement(\"button\");\n\nconst SideNavToggleButton = ({\n ariaControls,\n clickAreaPadding = 0,\n id,\n isSideNavCollapsed,\n onClick,\n onHighlight,\n tabIndex,\n}: SideNavToggleButtonProps) => {\n const odysseyDesignTokens = useOdysseyDesignTokens();\n const { t } = useTranslation();\n\n const buttonRef = useRef(defaultLocalButton);\n\n useEffect(() => {\n const setHighlighted = () => {\n onHighlight?.(true);\n };\n\n const setUnhighlighted = () => {\n onHighlight?.(false);\n };\n\n const setFocusHighlighted = () => {\n onHighlight?.(Boolean(buttonRef.current?.matches(\":focus-visible\")));\n };\n\n buttonRef.current?.addEventListener(\"mouseenter\", setHighlighted);\n\n buttonRef.current?.addEventListener(\"mouseleave\", setUnhighlighted);\n\n buttonRef.current?.addEventListener(\"focus\", setFocusHighlighted, true);\n\n buttonRef.current?.addEventListener(\"blur\", setFocusHighlighted, true);\n\n setUnhighlighted();\n\n return () => {\n buttonRef.current?.removeEventListener(\"mouseenter\", setHighlighted);\n\n buttonRef.current?.removeEventListener(\"mouseleave\", setUnhighlighted);\n\n buttonRef.current?.removeEventListener(\n \"focus\",\n setFocusHighlighted,\n true,\n );\n\n buttonRef.current?.removeEventListener(\"blur\", setFocusHighlighted, true);\n };\n }, [onHighlight]);\n\n const toggleLabel = useMemo(\n () =>\n isSideNavCollapsed\n ? t(\"sidenav.toggle.expand\")\n : t(\"sidenav.toggle.collapse\"),\n [isSideNavCollapsed, t],\n );\n\n const renderButton = useCallback(\n (muiProps: MuiPropsContextType) => {\n return (\n <StyledToggleButton\n {...muiProps}\n aria-controls={ariaControls}\n aria-expanded={!isSideNavCollapsed}\n aria-label={toggleLabel}\n clickAreaPadding={clickAreaPadding}\n data-se=\"sidenav-toggle-button\"\n data-sidenav-toggle\n id={id}\n odysseyDesignTokens={odysseyDesignTokens}\n onClick={onClick}\n ref={(element: HTMLButtonElement) => {\n if (element) {\n buttonRef.current = element;\n //@ts-expect-error `ref` is an optional prop, but TypeScript doesn't know this.\n muiProps.ref?.(element);\n }\n }}\n tabIndex={tabIndex}\n variant=\"floating\"\n >\n <StyledChevronRightIcon\n isSideNavCollapsed={isSideNavCollapsed}\n odysseyDesignTokens={odysseyDesignTokens}\n />\n </StyledToggleButton>\n );\n },\n [\n ariaControls,\n clickAreaPadding,\n id,\n isSideNavCollapsed,\n odysseyDesignTokens,\n onClick,\n tabIndex,\n toggleLabel,\n ],\n );\n\n return (\n <Tooltip ariaType=\"description\" placement=\"right\" text={toggleLabel}>\n <MuiPropsContext.Consumer>{renderButton}</MuiPropsContext.Consumer>\n </Tooltip>\n );\n};\n\nconst MemoizedSideNavToggleButton = memo(SideNavToggleButton);\nMemoizedSideNavToggleButton.displayName = \"SideNavToggleButton\";\n\nexport { MemoizedSideNavToggleButton as SideNavToggleButton };\n"],"mappings":";AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAIA,OAAOA,MAAM,MAAM,iBAAiB;AAEpC,SAEEC,IAAI,EACJC,WAAW,EACXC,SAAS,EACTC,OAAO,EACPC,MAAM,QACD,OAAO;AAEd,SAASC,cAAc,QAAQ,8BAA8B;AAC7D,SAASC,gBAAgB,QAAQ,uCAAuC;AACxE,SAASC,eAAe,QAA6B,0BAA0B;AAC/E,SAEEC,sBAAsB,QACjB,qCAAqC;AAC5C,SAASC,OAAO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List":[]}
1
+ {"version":3,"file":"SideNavToggleButton.js","names":["styled","memo","useCallback","useEffect","useMemo","useRef","useTranslation","ChevronRightIcon","MuiPropsContext","useOdysseyDesignTokens","Tooltip","UI_SHELL_OVERLAY_Z_INDEX","jsx","_jsx","SIDE_NAV_TOGGLE_ICON_SIZE","SIDE_NAV_TOGGLE_ICON_HALF_SIZE","StyledToggleButton","_Button","shouldForwardProp","prop","clickAreaPadding","odysseyDesignTokens","border","height","left","padding","position","width","zIndex","backgroundColor","borderColor","boxShadow","color","PalettePrimaryText","outline","HueNeutralWhite","borderRadius","ShadowScale1","content","top","StyledChevronRightIcon","isSideNavCollapsed","fontSize","undefined","right","transform","transitionDuration","TransitionDurationMain","transitionProperty","transitionTimingFunction","displayName","defaultLocalButton","window","document","createElement","SideNavToggleButton","ariaControls","id","onClick","onHighlight","tabIndex","t","buttonRef","setHighlighted","setUnhighlighted","setFocusHighlighted","Boolean","current","matches","addEventListener","removeEventListener","toggleLabel","renderButton","muiProps","ref","element","variant","children","ariaType","placement","text","Consumer","MemoizedSideNavToggleButton"],"sources":["../../../../src/ui-shell/SideNav/SideNavToggleButton.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 type { ButtonProps as MuiButtonProps } from \"@mui/material\";\n\nimport styled from \"@emotion/styled\";\nimport { Button as MuiButton } from \"@mui/material\";\nimport {\n HTMLAttributes,\n memo,\n useCallback,\n useEffect,\n useMemo,\n useRef,\n} from \"react\";\n\nimport { useTranslation } from \"../../i18n.generated/i18n.js\";\nimport { ChevronRightIcon } from \"../../icons.generated/ChevronRight.js\";\nimport { MuiPropsContext, MuiPropsContextType } from \"../../MuiPropsContext.js\";\nimport {\n DesignTokens,\n useOdysseyDesignTokens,\n} from \"../../OdysseyDesignTokensContext.js\";\nimport { Tooltip } from \"../../Tooltip.js\";\nimport { UI_SHELL_OVERLAY_Z_INDEX } from \"../uiShellSharedConstants.js\";\n\nexport const SIDE_NAV_TOGGLE_ICON_SIZE = 24;\nexport const SIDE_NAV_TOGGLE_ICON_HALF_SIZE = SIDE_NAV_TOGGLE_ICON_SIZE / 2;\n\nconst StyledToggleButton = styled(MuiButton, {\n shouldForwardProp: (prop) =>\n prop !== \"clickAreaPadding\" && prop !== \"odysseyDesignTokens\",\n})<{\n clickAreaPadding: number;\n odysseyDesignTokens: DesignTokens;\n}>(({ clickAreaPadding, odysseyDesignTokens }) => ({\n border: 0,\n height: `${SIDE_NAV_TOGGLE_ICON_SIZE}px`,\n left: `-${clickAreaPadding * 2}px`,\n padding: 0,\n position: \"relative\",\n width: `calc(${SIDE_NAV_TOGGLE_ICON_SIZE}px + (${clickAreaPadding}px * 2))`,\n zIndex: UI_SHELL_OVERLAY_Z_INDEX,\n\n // `&&` is a CSS specificity override. Used here to counteract MUI Button styles.\n \"&&\": {\n backgroundColor: \"transparent\",\n borderColor: \"transparent\",\n boxShadow: \"none\",\n color: odysseyDesignTokens.PalettePrimaryText,\n },\n\n \"&:focus-visible\": {\n outline: \"none\",\n },\n\n // `&&` raises specificity to counteract the \"floating\" Button variant's\n // `&[aria-expanded='true']:not([aria-disabled='true'])` rule. Since this\n // button is always `aria-expanded` while open, that theme rule would\n // otherwise set the chevron to `HueBlue600` on hover, matching the hover\n // background and making the arrow invisible.\n \"&&:hover, &&:focus-visible\": {\n backgroundColor: \"transparent\",\n color: odysseyDesignTokens.HueNeutralWhite,\n },\n\n \"&::before\": {\n backgroundColor: odysseyDesignTokens.HueNeutralWhite,\n borderColor: \"transparent\",\n borderRadius: \"50%\",\n boxShadow: odysseyDesignTokens.ShadowScale1,\n color: odysseyDesignTokens.PalettePrimaryText,\n content: \"''\",\n height: `${SIDE_NAV_TOGGLE_ICON_SIZE}px`,\n left: `${clickAreaPadding * 2}px`,\n position: \"absolute\",\n top: 0,\n width: `${SIDE_NAV_TOGGLE_ICON_SIZE}px`,\n },\n\n \"&:hover::before, &:focus-visible::before\": {\n backgroundColor: odysseyDesignTokens.PalettePrimaryText,\n },\n}));\n\nconst StyledChevronRightIcon = styled(ChevronRightIcon, {\n shouldForwardProp: (prop) =>\n prop !== \"odysseyDesignTokens\" && prop !== \"isSideNavCollapsed\",\n})<{\n isSideNavCollapsed: boolean;\n odysseyDesignTokens: DesignTokens;\n}>(({ isSideNavCollapsed, odysseyDesignTokens }) => ({\n fontSize: \"125%\",\n left: isSideNavCollapsed ? undefined : \"4px\",\n position: \"absolute\",\n right: isSideNavCollapsed ? \"4px\" : undefined,\n top: \"3px\",\n transform: isSideNavCollapsed ? \"rotate(0deg)\" : \"rotate(-180deg)\", // Leave this as `-180deg` so it rotates over the top, not the bottom.\n transitionDuration: odysseyDesignTokens.TransitionDurationMain,\n transitionProperty: \"transform\",\n transitionTimingFunction: \"ease-in-out\",\n}));\nStyledChevronRightIcon.displayName = \"StyledChevronRightIcon\";\n\nexport type SideNavToggleButtonProps = {\n /**\n * The `id` of the item this button controls\n */\n ariaControls: string;\n /**\n * Left padding in pixels for the click area of the button.\n *\n * Useful when moving the button around when trying to click it. This ensures the click area doesn't move to the right along with the button.\n */\n clickAreaPadding?: number;\n /**\n * HTML `id` attribute for the `<button>` element.\n */\n id?: string;\n isSideNavCollapsed: boolean;\n /**\n * Click event handler for the `<button>` element.\n */\n onClick?: MuiButtonProps[\"onClick\"];\n /**\n * Provides the hovered or focused state of the `<button>` element.\n */\n onHighlight?: (isHighlighted: boolean) => void;\n onKeyDown?: MuiButtonProps[\"onKeyDown\"];\n tabIndex?: HTMLAttributes<HTMLElement>[\"tabIndex\"];\n};\n\n// This allows us to mutate the value with TypeScript. A singleton is fine because it gets overridden on render.\nconst defaultLocalButton =\n typeof window === \"undefined\" ? null : document.createElement(\"button\");\n\nconst SideNavToggleButton = ({\n ariaControls,\n clickAreaPadding = 0,\n id,\n isSideNavCollapsed,\n onClick,\n onHighlight,\n tabIndex,\n}: SideNavToggleButtonProps) => {\n const odysseyDesignTokens = useOdysseyDesignTokens();\n const { t } = useTranslation();\n\n const buttonRef = useRef(defaultLocalButton);\n\n useEffect(() => {\n const setHighlighted = () => {\n onHighlight?.(true);\n };\n\n const setUnhighlighted = () => {\n onHighlight?.(false);\n };\n\n const setFocusHighlighted = () => {\n onHighlight?.(Boolean(buttonRef.current?.matches(\":focus-visible\")));\n };\n\n buttonRef.current?.addEventListener(\"mouseenter\", setHighlighted);\n\n buttonRef.current?.addEventListener(\"mouseleave\", setUnhighlighted);\n\n buttonRef.current?.addEventListener(\"focus\", setFocusHighlighted, true);\n\n buttonRef.current?.addEventListener(\"blur\", setFocusHighlighted, true);\n\n setUnhighlighted();\n\n return () => {\n buttonRef.current?.removeEventListener(\"mouseenter\", setHighlighted);\n\n buttonRef.current?.removeEventListener(\"mouseleave\", setUnhighlighted);\n\n buttonRef.current?.removeEventListener(\n \"focus\",\n setFocusHighlighted,\n true,\n );\n\n buttonRef.current?.removeEventListener(\"blur\", setFocusHighlighted, true);\n };\n }, [onHighlight]);\n\n const toggleLabel = useMemo(\n () =>\n isSideNavCollapsed\n ? t(\"sidenav.toggle.expand\")\n : t(\"sidenav.toggle.collapse\"),\n [isSideNavCollapsed, t],\n );\n\n const renderButton = useCallback(\n (muiProps: MuiPropsContextType) => {\n return (\n <StyledToggleButton\n {...muiProps}\n aria-controls={ariaControls}\n aria-expanded={!isSideNavCollapsed}\n aria-label={toggleLabel}\n clickAreaPadding={clickAreaPadding}\n data-se=\"sidenav-toggle-button\"\n data-sidenav-toggle\n id={id}\n odysseyDesignTokens={odysseyDesignTokens}\n onClick={onClick}\n ref={(element: HTMLButtonElement) => {\n if (element) {\n buttonRef.current = element;\n //@ts-expect-error `ref` is an optional prop, but TypeScript doesn't know this.\n muiProps.ref?.(element);\n }\n }}\n tabIndex={tabIndex}\n variant=\"floating\"\n >\n <StyledChevronRightIcon\n isSideNavCollapsed={isSideNavCollapsed}\n odysseyDesignTokens={odysseyDesignTokens}\n />\n </StyledToggleButton>\n );\n },\n [\n ariaControls,\n clickAreaPadding,\n id,\n isSideNavCollapsed,\n odysseyDesignTokens,\n onClick,\n tabIndex,\n toggleLabel,\n ],\n );\n\n return (\n <Tooltip ariaType=\"description\" placement=\"right\" text={toggleLabel}>\n <MuiPropsContext.Consumer>{renderButton}</MuiPropsContext.Consumer>\n </Tooltip>\n );\n};\n\nconst MemoizedSideNavToggleButton = memo(SideNavToggleButton);\nMemoizedSideNavToggleButton.displayName = \"SideNavToggleButton\";\n\nexport { MemoizedSideNavToggleButton as SideNavToggleButton };\n"],"mappings":";AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAIA,OAAOA,MAAM,MAAM,iBAAiB;AAEpC,SAEEC,IAAI,EACJC,WAAW,EACXC,SAAS,EACTC,OAAO,EACPC,MAAM,QACD,OAAO;AAEd,SAASC,cAAc,QAAQ,8BAA8B;AAC7D,SAASC,gBAAgB,QAAQ,uCAAuC;AACxE,SAASC,eAAe,QAA6B,0BAA0B;AAC/E,SAEEC,sBAAsB,QACjB,qCAAqC;AAC5C,SAASC,OAAO,QAAQ,kBAAkB;AAC1C,SAASC,wBAAwB,QAAQ,8BAA8B;AAAC,SAAAC,GAAA,IAAAC,IAAA;AAExE,OAAO,MAAMC,yBAAyB,GAAG,EAAE;AAC3C,OAAO,MAAMC,8BAA8B,GAAGD,yBAAyB,GAAG,CAAC;AAE3E,MAAME,kBAAkB,GAAGhB,MAAM,CAAAiB,OAAA,EAAY;EAC3CC,iBAAiB,EAAGC,IAAI,IACtBA,IAAI,KAAK,kBAAkB,IAAIA,IAAI,KAAK;AAC5C,CAAC,CAAC,CAGC,CAAC;EAAE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mB,EAAEA,mBAAoB;MACzCqC,OAAO,EAAEA,OAAQ;MACjBgB,GAAG,EAAGC,OAA0B,IAAK;QACnC,IAAIA,OAAO,EAAE;UACXb,SAAS,CAACK,OAAO,GAAGQ,OAAO;UAE3BF,QAAQ,CAACC,GAAG,GAAGC,OAAO,CAAC;QACzB;MACF,CAAE;MACFf,QAAQ,EAAEA,QAAS;MACnBgB,OAAO,EAAC,UAAU;MAAAC,QAAA,EAElBhE,IAAA,CAAC2B,sBAAsB;QACrBC,kBAAkB,EAAEA,kBAAmB;QACvCpB,mBAAmB,EAAEA;MAAoB,CAC1C;IAAC,CACgB,CAAC;EAEzB,CAAC,EACD,CACEmC,YAAY,EACZpC,gBAAgB,EAChBqC,EAAE,EACFhB,kBAAkB,EAClBpB,mBAAmB,EACnBqC,OAAO,EACPE,QAAQ,EACRW,WAAW,CAEf,CAAC;EAED,OACE1D,IAAA,CAACH,OAAO;IAACoE,QAAQ,EAAC,aAAa;IAACC,SAAS,EAAC,OAAO;IAACC,IAAI,EAAET,WAAY;IAAAM,QAAA,EAClEhE,IAAA,CAACL,eAAe,CAACyE,QAAQ;MAAAJ,QAAA,EAAEL;IAAY,CAA2B;EAAC,CAC5D,CAAC;AAEd,CAAC;AAED,MAAMU,2BAA2B,GAAGjF,IAAI,CAACsD,mBAAmB,CAAC;AAC7D2B,2BAA2B,CAAChC,WAAW,qDAAwB;AAE/D,SAASgC,2BAA2B,IAAI3B,mBAAmB","ignoreList":[]}
@@ -113,6 +113,6 @@ const SkipToContent = ({
113
113
  });
114
114
  };
115
115
  const MemoizedSkipToContent = memo(SkipToContent);
116
- MemoizedSkipToContent.displayName = "SkipToContent::pkg=odyssey&odysseyV=1.65.1";
116
+ MemoizedSkipToContent.displayName = "SkipToContent::pkg=odyssey&odysseyV=1.66.0";
117
117
  export { MemoizedSkipToContent as SkipToContent };
118
118
  //# sourceMappingURL=SkipToContent.js.map
@@ -27,6 +27,6 @@ const HamburgerMenuIcon = forwardRef((props, ref) => {
27
27
  });
28
28
  });
29
29
  const MemoizedHamburgerMenuIcon = memo(HamburgerMenuIcon);
30
- MemoizedHamburgerMenuIcon.displayName = "HamburgerMenuIcon::pkg=odyssey&odysseyV=1.65.1";
30
+ MemoizedHamburgerMenuIcon.displayName = "HamburgerMenuIcon::pkg=odyssey&odysseyV=1.66.0";
31
31
  export { MemoizedHamburgerMenuIcon as HamburgerMenuIcon };
32
32
  //# sourceMappingURL=HamburgerMenuIcon.js.map
@@ -62,6 +62,6 @@ const TopNav = ({
62
62
  });
63
63
  };
64
64
  const MemoizedTopNav = memo(TopNav);
65
- MemoizedTopNav.displayName = "TopNav::pkg=odyssey&odysseyV=1.65.1";
65
+ MemoizedTopNav.displayName = "TopNav::pkg=odyssey&odysseyV=1.66.0";
66
66
  export { MemoizedTopNav as TopNav };
67
67
  //# sourceMappingURL=TopNav.js.map
@@ -32,6 +32,6 @@ const TopNavLinksList = ({
32
32
  })
33
33
  });
34
34
  const MemoizedTopNavLinksList = memo(TopNavLinksList);
35
- MemoizedTopNavLinksList.displayName = "TopNavLinksList::pkg=odyssey&odysseyV=1.65.1";
35
+ MemoizedTopNavLinksList.displayName = "TopNavLinksList::pkg=odyssey&odysseyV=1.66.0";
36
36
  export { MemoizedTopNavLinksList as TopNavLinksList };
37
37
  //# sourceMappingURL=TopNavLinksList.js.map