@okta/odyssey-react-mui 1.65.2 → 1.66.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (494) 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 +4 -2
  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/ui-shell/AppSwitcher/AppSwitcher.cjs +1 -1
  214. package/dist/cjs/ui-shell/InnerAppContainer.cjs +1 -1
  215. package/dist/cjs/ui-shell/NarrowUiShellContent.cjs +1 -1
  216. package/dist/cjs/ui-shell/SideNav/NavAccordion.cjs +1 -1
  217. package/dist/cjs/ui-shell/SideNav/SideNav.cjs +1 -1
  218. package/dist/cjs/ui-shell/SideNav/SideNavFooterContent.cjs +1 -1
  219. package/dist/cjs/ui-shell/SideNav/SideNavHeader.cjs +1 -1
  220. package/dist/cjs/ui-shell/SideNav/SideNavItemContent.cjs +2 -2
  221. package/dist/cjs/ui-shell/SideNav/SideNavItemLinkContent.cjs +1 -1
  222. package/dist/cjs/ui-shell/SideNav/SideNavSortableList.cjs +1 -1
  223. package/dist/cjs/ui-shell/SideNav/SideNavToggleButton.cjs +4 -3
  224. package/dist/cjs/ui-shell/SideNav/SideNavToggleButton.cjs.map +1 -1
  225. package/dist/cjs/ui-shell/SkipToContent.cjs +2 -1
  226. package/dist/cjs/ui-shell/SkipToContent.cjs.map +1 -1
  227. package/dist/cjs/ui-shell/TopNav/HamburgerMenuIcon.cjs +1 -1
  228. package/dist/cjs/ui-shell/TopNav/TopNav.cjs +1 -1
  229. package/dist/cjs/ui-shell/TopNav/TopNavLinksList.cjs +1 -1
  230. package/dist/cjs/ui-shell/TopNav/TopNavListItem.cjs +1 -1
  231. package/dist/cjs/ui-shell/UiShell.cjs +1 -1
  232. package/dist/cjs/ui-shell/UiShellLogo.cjs +1 -1
  233. package/dist/cjs/ui-shell/WideUiShellContent.cjs +1 -1
  234. package/dist/cjs/web-component/odysseyWebComponentVersion.generated.cjs +1 -1
  235. package/dist/cjs/web-component/odysseyWebComponentVersion.generated.cjs.map +1 -1
  236. package/dist/esm/Accordion.js +1 -1
  237. package/dist/esm/Autocomplete.js +3 -1
  238. package/dist/esm/Autocomplete.js.map +1 -1
  239. package/dist/esm/Badge.js +1 -1
  240. package/dist/esm/Banner.js +1 -1
  241. package/dist/esm/Box.js +1 -1
  242. package/dist/esm/Breadcrumbs.js +1 -1
  243. package/dist/esm/Buttons/BaseButton.js +1 -1
  244. package/dist/esm/Buttons/BaseMenuButton.js +1 -1
  245. package/dist/esm/Buttons/Button.js +1 -1
  246. package/dist/esm/Buttons/MenuButton.js +1 -1
  247. package/dist/esm/Buttons/MenuItem.js +1 -1
  248. package/dist/esm/Callout.js +1 -1
  249. package/dist/esm/Card.js +1 -1
  250. package/dist/esm/CircularProgress.js +1 -1
  251. package/dist/esm/ConditionalWrapper.js +1 -1
  252. package/dist/esm/DataTable/DataTable.js +1 -1
  253. package/dist/esm/DataTable/DataTableRowActions.js +1 -1
  254. package/dist/esm/DataTable/DataTableSettings.js +1 -1
  255. package/dist/esm/DatePickers/DateField.js +1 -1
  256. package/dist/esm/DatePickers/DateFieldActionBar.js +1 -1
  257. package/dist/esm/DatePickers/DateFieldLocalizationProvider.js +1 -1
  258. package/dist/esm/DatePickers/DatePicker.js +1 -1
  259. package/dist/esm/DatePickers/TimeZonePicker.js +1 -1
  260. package/dist/esm/Dialog.js +1 -1
  261. package/dist/esm/Drawer.js +1 -1
  262. package/dist/esm/EmptyState.js +1 -1
  263. package/dist/esm/ErrorMessageList.js +1 -1
  264. package/dist/esm/Field.js +1 -1
  265. package/dist/esm/FieldError.js +1 -1
  266. package/dist/esm/FieldHint.js +1 -1
  267. package/dist/esm/FieldLabel.js +1 -1
  268. package/dist/esm/Fields/Checkbox.js +1 -1
  269. package/dist/esm/Fields/CheckboxGroup.js +1 -1
  270. package/dist/esm/Fields/Radio.js +1 -1
  271. package/dist/esm/Fields/RadioGroup.js +1 -1
  272. package/dist/esm/Fieldset.js +1 -1
  273. package/dist/esm/FileUploader/FileUploadIllustration.js +1 -1
  274. package/dist/esm/FileUploader/FileUploadPreview.js +1 -1
  275. package/dist/esm/FileUploader/FileUploader.js +1 -1
  276. package/dist/esm/Form.js +1 -1
  277. package/dist/esm/FullScreenOverlay.js +1 -1
  278. package/dist/esm/FullScreenOverlayContext.js +1 -1
  279. package/dist/esm/HintLink.js +1 -1
  280. package/dist/esm/IconWithTooltip.js +1 -1
  281. package/dist/esm/Link.js +1 -1
  282. package/dist/esm/MuiPropsChild.js +1 -1
  283. package/dist/esm/NativeSelect.js +1 -1
  284. package/dist/esm/OdysseyCacheProvider.js +1 -1
  285. package/dist/esm/OdysseyProvider.js +1 -1
  286. package/dist/esm/OdysseyThemeProvider.js +1 -1
  287. package/dist/esm/OdysseyThemeProviderPropsContext.js +1 -1
  288. package/dist/esm/Pagination/Pagination.js +1 -1
  289. package/dist/esm/PasswordField.js +1 -1
  290. package/dist/esm/ScreenReaderText.js +1 -1
  291. package/dist/esm/SearchField.js +1 -1
  292. package/dist/esm/Select.js +1 -1
  293. package/dist/esm/Stack.js +1 -1
  294. package/dist/esm/Status.js +1 -1
  295. package/dist/esm/Surface.js +1 -1
  296. package/dist/esm/Switch.js +2 -2
  297. package/dist/esm/Tabs.js +1 -1
  298. package/dist/esm/Tag.js +1 -1
  299. package/dist/esm/TagList.js +1 -1
  300. package/dist/esm/TextField.js +1 -1
  301. package/dist/esm/Toast.js +1 -1
  302. package/dist/esm/ToastStack.js +1 -1
  303. package/dist/esm/Tooltip.js +1 -1
  304. package/dist/esm/Typography.js +12 -12
  305. package/dist/esm/__internal.js +2 -0
  306. package/dist/esm/__internal.js.map +1 -1
  307. package/dist/esm/icons.generated/Add.js +1 -1
  308. package/dist/esm/icons.generated/AddCircle.js +1 -1
  309. package/dist/esm/icons.generated/Apps.js +1 -1
  310. package/dist/esm/icons.generated/AppsSelected.js +1 -1
  311. package/dist/esm/icons.generated/ArrowBottom.js +1 -1
  312. package/dist/esm/icons.generated/ArrowDown.js +1 -1
  313. package/dist/esm/icons.generated/ArrowLeft.js +1 -1
  314. package/dist/esm/icons.generated/ArrowLowerLeft.js +1 -1
  315. package/dist/esm/icons.generated/ArrowLowerRight.js +1 -1
  316. package/dist/esm/icons.generated/ArrowRight.js +1 -1
  317. package/dist/esm/icons.generated/ArrowTop.js +1 -1
  318. package/dist/esm/icons.generated/ArrowUnsorted.js +1 -1
  319. package/dist/esm/icons.generated/ArrowUp.js +1 -1
  320. package/dist/esm/icons.generated/ArrowUpperLeft.js +1 -1
  321. package/dist/esm/icons.generated/ArrowUpperRight.js +1 -1
  322. package/dist/esm/icons.generated/Bug.js +1 -1
  323. package/dist/esm/icons.generated/Calendar.js +1 -1
  324. package/dist/esm/icons.generated/Call.js +1 -1
  325. package/dist/esm/icons.generated/Chat.js +1 -1
  326. package/dist/esm/icons.generated/Check.js +1 -1
  327. package/dist/esm/icons.generated/CheckCircleFilled.js +1 -1
  328. package/dist/esm/icons.generated/ChevronDown.js +1 -1
  329. package/dist/esm/icons.generated/ChevronLeft.js +1 -1
  330. package/dist/esm/icons.generated/ChevronRight.js +1 -1
  331. package/dist/esm/icons.generated/ChevronUp.js +1 -1
  332. package/dist/esm/icons.generated/Clock.js +1 -1
  333. package/dist/esm/icons.generated/Close.js +1 -1
  334. package/dist/esm/icons.generated/CloseCircleFilled.js +1 -1
  335. package/dist/esm/icons.generated/CollapseLeft.js +1 -1
  336. package/dist/esm/icons.generated/CollapseRight.js +1 -1
  337. package/dist/esm/icons.generated/Copy.js +1 -1
  338. package/dist/esm/icons.generated/Customizations.js +1 -1
  339. package/dist/esm/icons.generated/CustomizationsSelected.js +1 -1
  340. package/dist/esm/icons.generated/DangerDiamond.js +1 -1
  341. package/dist/esm/icons.generated/DangerDiamondFilled.js +1 -1
  342. package/dist/esm/icons.generated/Delete.js +1 -1
  343. package/dist/esm/icons.generated/Deny.js +1 -1
  344. package/dist/esm/icons.generated/Devices.js +1 -1
  345. package/dist/esm/icons.generated/Directory.js +1 -1
  346. package/dist/esm/icons.generated/DirectorySelected.js +1 -1
  347. package/dist/esm/icons.generated/Documentation.js +1 -1
  348. package/dist/esm/icons.generated/Download.js +1 -1
  349. package/dist/esm/icons.generated/DragIndicator.js +1 -1
  350. package/dist/esm/icons.generated/Edit.js +1 -1
  351. package/dist/esm/icons.generated/ExpandLeft.js +1 -1
  352. package/dist/esm/icons.generated/ExpandRight.js +1 -1
  353. package/dist/esm/icons.generated/ExternalLink.js +1 -1
  354. package/dist/esm/icons.generated/Filter.js +1 -1
  355. package/dist/esm/icons.generated/Folder.js +1 -1
  356. package/dist/esm/icons.generated/Globe.js +1 -1
  357. package/dist/esm/icons.generated/Grid.js +1 -1
  358. package/dist/esm/icons.generated/Group.js +1 -1
  359. package/dist/esm/icons.generated/Happy.js +1 -1
  360. package/dist/esm/icons.generated/Hide.js +1 -1
  361. package/dist/esm/icons.generated/Home.js +1 -1
  362. package/dist/esm/icons.generated/HomeSelected.js +1 -1
  363. package/dist/esm/icons.generated/IdentityGovernance.js +1 -1
  364. package/dist/esm/icons.generated/IdentityGovernanceSelected.js +1 -1
  365. package/dist/esm/icons.generated/InformationCircle.js +1 -1
  366. package/dist/esm/icons.generated/InformationCircleFilled.js +1 -1
  367. package/dist/esm/icons.generated/Link.js +1 -1
  368. package/dist/esm/icons.generated/List.js +1 -1
  369. package/dist/esm/icons.generated/Lock.js +1 -1
  370. package/dist/esm/icons.generated/Menu.js +1 -1
  371. package/dist/esm/icons.generated/More.js +1 -1
  372. package/dist/esm/icons.generated/Neutral.js +1 -1
  373. package/dist/esm/icons.generated/Notification.js +1 -1
  374. package/dist/esm/icons.generated/Pause.js +1 -1
  375. package/dist/esm/icons.generated/QuestionCircle.js +1 -1
  376. package/dist/esm/icons.generated/QuestionCircleFilled.js +1 -1
  377. package/dist/esm/icons.generated/Refresh.js +1 -1
  378. package/dist/esm/icons.generated/Reports.js +1 -1
  379. package/dist/esm/icons.generated/ReportsSelected.js +1 -1
  380. package/dist/esm/icons.generated/Reset.js +1 -1
  381. package/dist/esm/icons.generated/Resume.js +1 -1
  382. package/dist/esm/icons.generated/Sad.js +1 -1
  383. package/dist/esm/icons.generated/Same.js +1 -1
  384. package/dist/esm/icons.generated/Search.js +1 -1
  385. package/dist/esm/icons.generated/Security.js +1 -1
  386. package/dist/esm/icons.generated/SecuritySelected.js +1 -1
  387. package/dist/esm/icons.generated/Send.js +1 -1
  388. package/dist/esm/icons.generated/Server.js +1 -1
  389. package/dist/esm/icons.generated/Settings.js +1 -1
  390. package/dist/esm/icons.generated/SettingsSelected.js +1 -1
  391. package/dist/esm/icons.generated/Show.js +1 -1
  392. package/dist/esm/icons.generated/Sparkle.js +1 -1
  393. package/dist/esm/icons.generated/Subtract.js +1 -1
  394. package/dist/esm/icons.generated/Sync.js +1 -1
  395. package/dist/esm/icons.generated/ThumbsDown.js +1 -1
  396. package/dist/esm/icons.generated/ThumbsUp.js +1 -1
  397. package/dist/esm/icons.generated/Unlock.js +1 -1
  398. package/dist/esm/icons.generated/Upload.js +1 -1
  399. package/dist/esm/icons.generated/User.js +1 -1
  400. package/dist/esm/icons.generated/Video.js +1 -1
  401. package/dist/esm/icons.generated/Warning.js +1 -1
  402. package/dist/esm/icons.generated/WarningFilled.js +1 -1
  403. package/dist/esm/icons.generated/Workflows.js +1 -1
  404. package/dist/esm/icons.generated/WorkflowsSelected.js +1 -1
  405. package/dist/esm/labs/AppTile.js +1 -1
  406. package/dist/esm/labs/DataFilters.js +2 -2
  407. package/dist/esm/labs/DataTable.js +1 -1
  408. package/dist/esm/labs/DataTablePagination.js +1 -1
  409. package/dist/esm/labs/DataView/BulkActionsMenu.js +7 -5
  410. package/dist/esm/labs/DataView/BulkActionsMenu.js.map +1 -1
  411. package/dist/esm/labs/DataView/CardLayoutContent.js +11 -3
  412. package/dist/esm/labs/DataView/CardLayoutContent.js.map +1 -1
  413. package/dist/esm/labs/DataView/DataCard.js +4 -2
  414. package/dist/esm/labs/DataView/DataCard.js.map +1 -1
  415. package/dist/esm/labs/DataView/DataTable.js +1 -1
  416. package/dist/esm/labs/DataView/DataView.js +5 -1
  417. package/dist/esm/labs/DataView/DataView.js.map +1 -1
  418. package/dist/esm/labs/DataView/DetailPanel.js +1 -1
  419. package/dist/esm/labs/DataView/LayoutSwitcher.js +1 -1
  420. package/dist/esm/labs/DataView/RowActions.js +1 -1
  421. package/dist/esm/labs/DataView/TableLayoutContent.js +3 -2
  422. package/dist/esm/labs/DataView/TableLayoutContent.js.map +1 -1
  423. package/dist/esm/labs/DataView/TableSettings.js +1 -1
  424. package/dist/esm/labs/DataView/componentTypes.js.map +1 -1
  425. package/dist/esm/labs/DatePickers/DateTimeField.js +1 -1
  426. package/dist/esm/labs/DatePickers/DateTimePicker.js +1 -1
  427. package/dist/esm/labs/OdysseyPickers/ComposablePicker.js +3 -1
  428. package/dist/esm/labs/OdysseyPickers/ComposablePicker.js.map +1 -1
  429. package/dist/esm/labs/OdysseyPickers/Picker.js +3 -1
  430. package/dist/esm/labs/OdysseyPickers/Picker.js.map +1 -1
  431. package/dist/esm/labs/OdysseyPickers/PickerVirtualizationListBox.js +1 -1
  432. package/dist/esm/labs/OdysseyPickers/PickerWithOptionAdornment.js +3 -1
  433. package/dist/esm/labs/OdysseyPickers/PickerWithOptionAdornment.js.map +1 -1
  434. package/dist/esm/labs/OdysseyPickers/SearchDropdown.js +1 -1
  435. package/dist/esm/labs/PageTemplate/DocumentationLink.js +1 -1
  436. package/dist/esm/labs/PageTemplate/Layout.js +1 -1
  437. package/dist/esm/labs/PageTemplate/PageTemplate.js +1 -1
  438. package/dist/esm/labs/PaginatedTable.js +1 -1
  439. package/dist/esm/labs/StaticTable.js +1 -1
  440. package/dist/esm/labs/UserProfile.js +1 -1
  441. package/dist/esm/labs/UserProfileMenuButton.js +1 -1
  442. package/dist/esm/logos.generated/Duo.js +1 -1
  443. package/dist/esm/logos.generated/GoogleAuth.js +1 -1
  444. package/dist/esm/logos.generated/OktaVerify.js +1 -1
  445. package/dist/esm/logos.generated/Persona.js +1 -1
  446. package/dist/esm/logos.generated/SymantecVip.js +1 -1
  447. package/dist/esm/logos.generated/Yubikey.js +1 -1
  448. package/dist/esm/ui-shell/AppSwitcher/AppSwitcher.js +1 -1
  449. package/dist/esm/ui-shell/InnerAppContainer.js +1 -1
  450. package/dist/esm/ui-shell/NarrowUiShellContent.js +1 -1
  451. package/dist/esm/ui-shell/SideNav/NavAccordion.js +1 -1
  452. package/dist/esm/ui-shell/SideNav/SideNav.js +1 -1
  453. package/dist/esm/ui-shell/SideNav/SideNavFooterContent.js +1 -1
  454. package/dist/esm/ui-shell/SideNav/SideNavHeader.js +1 -1
  455. package/dist/esm/ui-shell/SideNav/SideNavItemContent.js +2 -2
  456. package/dist/esm/ui-shell/SideNav/SideNavItemLinkContent.js +1 -1
  457. package/dist/esm/ui-shell/SideNav/SideNavSortableList.js +1 -1
  458. package/dist/esm/ui-shell/SideNav/SideNavToggleButton.js +4 -3
  459. package/dist/esm/ui-shell/SideNav/SideNavToggleButton.js.map +1 -1
  460. package/dist/esm/ui-shell/SkipToContent.js +2 -1
  461. package/dist/esm/ui-shell/SkipToContent.js.map +1 -1
  462. package/dist/esm/ui-shell/TopNav/HamburgerMenuIcon.js +1 -1
  463. package/dist/esm/ui-shell/TopNav/TopNav.js +1 -1
  464. package/dist/esm/ui-shell/TopNav/TopNavLinksList.js +1 -1
  465. package/dist/esm/ui-shell/TopNav/TopNavListItem.js +1 -1
  466. package/dist/esm/ui-shell/UiShell.js +1 -1
  467. package/dist/esm/ui-shell/UiShellLogo.js +1 -1
  468. package/dist/esm/ui-shell/WideUiShellContent.js +1 -1
  469. package/dist/esm/web-component/odysseyWebComponentVersion.generated.js +1 -1
  470. package/dist/esm/web-component/odysseyWebComponentVersion.generated.js.map +1 -1
  471. package/dist/tsconfig.production.tsbuildinfo +1 -1
  472. package/dist/types/Autocomplete.d.ts +9 -1
  473. package/dist/types/Autocomplete.d.ts.map +1 -1
  474. package/dist/types/__internal.d.ts +2 -0
  475. package/dist/types/__internal.d.ts.map +1 -1
  476. package/dist/types/labs/DataView/BulkActionsMenu.d.ts +1 -0
  477. package/dist/types/labs/DataView/BulkActionsMenu.d.ts.map +1 -1
  478. package/dist/types/labs/DataView/CardLayoutContent.d.ts +1 -0
  479. package/dist/types/labs/DataView/CardLayoutContent.d.ts.map +1 -1
  480. package/dist/types/labs/DataView/DataCard.d.ts +6 -1
  481. package/dist/types/labs/DataView/DataCard.d.ts.map +1 -1
  482. package/dist/types/labs/DataView/DataView.d.ts.map +1 -1
  483. package/dist/types/labs/DataView/TableLayoutContent.d.ts +1 -0
  484. package/dist/types/labs/DataView/TableLayoutContent.d.ts.map +1 -1
  485. package/dist/types/labs/DataView/componentTypes.d.ts +7 -0
  486. package/dist/types/labs/DataView/componentTypes.d.ts.map +1 -1
  487. package/dist/types/labs/OdysseyPickers/ComposablePicker.d.ts +1 -1
  488. package/dist/types/labs/OdysseyPickers/ComposablePicker.d.ts.map +1 -1
  489. package/dist/types/labs/OdysseyPickers/Picker.d.ts.map +1 -1
  490. package/dist/types/labs/OdysseyPickers/PickerWithOptionAdornment.d.ts.map +1 -1
  491. package/dist/types/ui-shell/SideNav/SideNavToggleButton.d.ts.map +1 -1
  492. package/dist/types/ui-shell/SkipToContent.d.ts.map +1 -1
  493. package/dist/types/web-component/odysseyWebComponentVersion.generated.d.ts +1 -1
  494. package/package.json +24 -19
@@ -172,5 +172,5 @@ const PaginatedTable = ({
172
172
  });
173
173
  };
174
174
  const MemoizedPaginatedTable = exports.PaginatedTable = (0, _react.memo)(PaginatedTable);
175
- MemoizedPaginatedTable.displayName = "PaginatedTable::pkg=odyssey&odysseyV=1.65.2";
175
+ MemoizedPaginatedTable.displayName = "PaginatedTable::pkg=odyssey&odysseyV=1.66.1";
176
176
  //# sourceMappingURL=PaginatedTable.cjs.map
@@ -87,5 +87,5 @@ const StaticTable = ({
87
87
  });
88
88
  };
89
89
  const MemoizedStaticTable = exports.StaticTable = (0, _react.memo)(StaticTable);
90
- MemoizedStaticTable.displayName = "StaticTable::pkg=odyssey&odysseyV=1.65.2";
90
+ MemoizedStaticTable.displayName = "StaticTable::pkg=odyssey&odysseyV=1.66.1";
91
91
  //# sourceMappingURL=StaticTable.cjs.map
@@ -75,5 +75,5 @@ const UserProfile = ({
75
75
  });
76
76
  };
77
77
  const MemoizedUserProfile = exports.UserProfile = (0, _react.memo)(UserProfile);
78
- MemoizedUserProfile.displayName = "UserProfile::pkg=odyssey&odysseyV=1.65.2";
78
+ MemoizedUserProfile.displayName = "UserProfile::pkg=odyssey&odysseyV=1.66.1";
79
79
  //# sourceMappingURL=UserProfile.cjs.map
@@ -61,5 +61,5 @@ const UserProfileMenuButton = ({
61
61
  });
62
62
  };
63
63
  const MemoizedUserProfileMenuButton = exports.UserProfileMenuButton = (0, _react.memo)(UserProfileMenuButton);
64
- MemoizedUserProfileMenuButton.displayName = "UserProfileMenuButton::pkg=odyssey&odysseyV=1.65.2";
64
+ MemoizedUserProfileMenuButton.displayName = "UserProfileMenuButton::pkg=odyssey&odysseyV=1.66.1";
65
65
  //# sourceMappingURL=UserProfileMenuButton.cjs.map
@@ -48,5 +48,5 @@ var _jsxRuntime = require("react/jsx-runtime");
48
48
  });
49
49
  });
50
50
  const MemoizedDuoIcon = exports.DuoIcon = (0, _react.memo)(DuoIcon);
51
- MemoizedDuoIcon.displayName = "DuoIcon::pkg=odyssey&odysseyV=1.65.2";
51
+ MemoizedDuoIcon.displayName = "DuoIcon::pkg=odyssey&odysseyV=1.66.1";
52
52
  //# sourceMappingURL=Duo.cjs.map
@@ -55,5 +55,5 @@ var _jsxRuntime = require("react/jsx-runtime");
55
55
  });
56
56
  });
57
57
  const MemoizedGoogleAuthIcon = exports.GoogleAuthIcon = (0, _react.memo)(GoogleAuthIcon);
58
- MemoizedGoogleAuthIcon.displayName = "GoogleAuthIcon::pkg=odyssey&odysseyV=1.65.2";
58
+ MemoizedGoogleAuthIcon.displayName = "GoogleAuthIcon::pkg=odyssey&odysseyV=1.66.1";
59
59
  //# sourceMappingURL=GoogleAuth.cjs.map
@@ -35,5 +35,5 @@ var _jsxRuntime = require("react/jsx-runtime");
35
35
  });
36
36
  });
37
37
  const MemoizedOktaVerifyIcon = exports.OktaVerifyIcon = (0, _react.memo)(OktaVerifyIcon);
38
- MemoizedOktaVerifyIcon.displayName = "OktaVerifyIcon::pkg=odyssey&odysseyV=1.65.2";
38
+ MemoizedOktaVerifyIcon.displayName = "OktaVerifyIcon::pkg=odyssey&odysseyV=1.66.1";
39
39
  //# sourceMappingURL=OktaVerify.cjs.map
@@ -35,5 +35,5 @@ var _jsxRuntime = require("react/jsx-runtime");
35
35
  });
36
36
  });
37
37
  const MemoizedPersonaIcon = exports.PersonaIcon = (0, _react.memo)(PersonaIcon);
38
- MemoizedPersonaIcon.displayName = "PersonaIcon::pkg=odyssey&odysseyV=1.65.2";
38
+ MemoizedPersonaIcon.displayName = "PersonaIcon::pkg=odyssey&odysseyV=1.66.1";
39
39
  //# sourceMappingURL=Persona.cjs.map
@@ -39,5 +39,5 @@ var _jsxRuntime = require("react/jsx-runtime");
39
39
  });
40
40
  });
41
41
  const MemoizedSymantecVipIcon = exports.SymantecVipIcon = (0, _react.memo)(SymantecVipIcon);
42
- MemoizedSymantecVipIcon.displayName = "SymantecVipIcon::pkg=odyssey&odysseyV=1.65.2";
42
+ MemoizedSymantecVipIcon.displayName = "SymantecVipIcon::pkg=odyssey&odysseyV=1.66.1";
43
43
  //# sourceMappingURL=SymantecVip.cjs.map
@@ -33,5 +33,5 @@ var _jsxRuntime = require("react/jsx-runtime");
33
33
  });
34
34
  });
35
35
  const MemoizedYubikeyIcon = exports.YubikeyIcon = (0, _react.memo)(YubikeyIcon);
36
- MemoizedYubikeyIcon.displayName = "YubikeyIcon::pkg=odyssey&odysseyV=1.65.2";
36
+ MemoizedYubikeyIcon.displayName = "YubikeyIcon::pkg=odyssey&odysseyV=1.66.1";
37
37
  //# sourceMappingURL=Yubikey.cjs.map
@@ -77,5 +77,5 @@ const AppSwitcher = ({
77
77
  });
78
78
  };
79
79
  const MemoizedAppSwitcher = exports.AppSwitcher = (0, _react.memo)(AppSwitcher);
80
- MemoizedAppSwitcher.displayName = "AppSwitcher::pkg=odyssey&odysseyV=1.65.2";
80
+ MemoizedAppSwitcher.displayName = "AppSwitcher::pkg=odyssey&odysseyV=1.66.1";
81
81
  //# sourceMappingURL=AppSwitcher.cjs.map
@@ -57,5 +57,5 @@ const InnerAppContainer = ({
57
57
  children: [(0, _jsxRuntime.jsx)(StyledAppContainerShadow1, {}), (0, _jsxRuntime.jsx)(StyledAppContainerShadow2, {}), (0, _jsxRuntime.jsx)(StyledAppContainerShadow3, {})]
58
58
  }) : null;
59
59
  const MemoizedInnerAppContainer = exports.InnerAppContainer = (0, _react.memo)(InnerAppContainer);
60
- MemoizedInnerAppContainer.displayName = "InnerAppContainer::pkg=odyssey&odysseyV=1.65.2";
60
+ MemoizedInnerAppContainer.displayName = "InnerAppContainer::pkg=odyssey&odysseyV=1.66.1";
61
61
  //# sourceMappingURL=InnerAppContainer.cjs.map
@@ -379,5 +379,5 @@ const NarrowUiShellContent = ({
379
379
  });
380
380
  };
381
381
  const MemoizedNarrowUiShellContent = exports.NarrowUiShellContent = (0, _react.memo)(NarrowUiShellContent);
382
- MemoizedNarrowUiShellContent.displayName = "NarrowUiShellContent::pkg=odyssey&odysseyV=1.65.2";
382
+ MemoizedNarrowUiShellContent.displayName = "NarrowUiShellContent::pkg=odyssey&odysseyV=1.66.1";
383
383
  //# sourceMappingURL=NarrowUiShellContent.cjs.map
@@ -170,5 +170,5 @@ const NavAccordion = ({
170
170
  });
171
171
  };
172
172
  const MemoizedNavAccordion = exports.NavAccordion = (0, _react.memo)(NavAccordion);
173
- MemoizedNavAccordion.displayName = "NavAccordion::pkg=odyssey&odysseyV=1.65.2";
173
+ MemoizedNavAccordion.displayName = "NavAccordion::pkg=odyssey&odysseyV=1.66.1";
174
174
  //# sourceMappingURL=NavAccordion.cjs.map
@@ -653,5 +653,5 @@ const SideNav = ({
653
653
  });
654
654
  };
655
655
  const MemoizedSideNav = exports.SideNav = (0, _react.memo)(SideNav);
656
- MemoizedSideNav.displayName = "SideNav::pkg=odyssey&odysseyV=1.65.2";
656
+ MemoizedSideNav.displayName = "SideNav::pkg=odyssey&odysseyV=1.66.1";
657
657
  //# sourceMappingURL=SideNav.cjs.map
@@ -69,5 +69,5 @@ const SideNavFooterContent = ({
69
69
  });
70
70
  };
71
71
  const MemoizedSideNavFooterContent = exports.SideNavFooterContent = (0, _react.memo)(SideNavFooterContent);
72
- MemoizedSideNavFooterContent.displayName = "SideNavFooterContent::pkg=odyssey&odysseyV=1.65.2";
72
+ MemoizedSideNavFooterContent.displayName = "SideNavFooterContent::pkg=odyssey&odysseyV=1.66.1";
73
73
  //# sourceMappingURL=SideNavFooterContent.cjs.map
@@ -100,5 +100,5 @@ const SideNavHeader = ({
100
100
  });
101
101
  };
102
102
  const MemoizedSideNavHeader = exports.SideNavHeader = (0, _react.memo)(SideNavHeader);
103
- MemoizedSideNavHeader.displayName = "SideNavHeader::pkg=odyssey&odysseyV=1.65.2";
103
+ MemoizedSideNavHeader.displayName = "SideNavHeader::pkg=odyssey&odysseyV=1.66.1";
104
104
  //# sourceMappingURL=SideNavHeader.cjs.map
@@ -61,7 +61,7 @@ const SideNavListItem = (0, _react.forwardRef)(({
61
61
  ...sideNavListItemProps,
62
62
  ref: sideNavListItemRef
63
63
  }));
64
- SideNavListItem.displayName = "SideNavListItem::pkg=odyssey&odysseyV=1.65.2";
64
+ SideNavListItem.displayName = "SideNavListItem::pkg=odyssey&odysseyV=1.66.1";
65
65
  const scrollToNode = node => {
66
66
  if (node) {
67
67
  node?.scrollIntoView({
@@ -346,5 +346,5 @@ const SideNavItemContent = ({
346
346
  }, id);
347
347
  };
348
348
  const MemoizedSideNavItemContent = exports.SideNavItemContent = (0, _react.memo)(SideNavItemContent);
349
- MemoizedSideNavItemContent.displayName = "SideNavItemContent::pkg=odyssey&odysseyV=1.65.2";
349
+ MemoizedSideNavItemContent.displayName = "SideNavItemContent::pkg=odyssey&odysseyV=1.66.1";
350
350
  //# sourceMappingURL=SideNavItemContent.cjs.map
@@ -74,5 +74,5 @@ const SideNavItemLinkContent = ({
74
74
  });
75
75
  };
76
76
  const MemoizedSideNavItemLinkContent = exports.SideNavItemLinkContent = (0, _react.memo)(SideNavItemLinkContent);
77
- MemoizedSideNavItemLinkContent.displayName = "SideNavItemLinkContent::pkg=odyssey&odysseyV=1.65.2";
77
+ MemoizedSideNavItemLinkContent.displayName = "SideNavItemLinkContent::pkg=odyssey&odysseyV=1.66.1";
78
78
  //# sourceMappingURL=SideNavItemLinkContent.cjs.map
@@ -44,5 +44,5 @@ const SideNavSortableList = ({
44
44
  });
45
45
  };
46
46
  const MemoizedSideNavSortableList = exports.SideNavSortableList = (0, _react.memo)(SideNavSortableList);
47
- MemoizedSideNavSortableList.displayName = "SideNavSortableList::pkg=odyssey&odysseyV=1.65.2";
47
+ MemoizedSideNavSortableList.displayName = "SideNavSortableList::pkg=odyssey&odysseyV=1.66.1";
48
48
  //# sourceMappingURL=SideNavSortableList.cjs.map
@@ -51,7 +51,8 @@ const StyledToggleButton = (0, _styled.default)(_Button2.default, {
51
51
  "&:focus-visible": {
52
52
  outline: "none"
53
53
  },
54
- "&:hover, &:focus-visible": {
54
+ "&&:hover, &&:focus-visible": {
55
+ backgroundColor: "transparent",
55
56
  color: odysseyDesignTokens.HueNeutralWhite
56
57
  },
57
58
  "&::before": {
@@ -87,7 +88,7 @@ const StyledChevronRightIcon = (0, _styled.default)(_ChevronRight.ChevronRightIc
87
88
  transitionProperty: "transform",
88
89
  transitionTimingFunction: "ease-in-out"
89
90
  }));
90
- StyledChevronRightIcon.displayName = "StyledChevronRightIcon::pkg=odyssey&odysseyV=1.65.2";
91
+ StyledChevronRightIcon.displayName = "StyledChevronRightIcon::pkg=odyssey&odysseyV=1.66.1";
91
92
  const defaultLocalButton = typeof window === "undefined" ? null : document.createElement("button");
92
93
  const SideNavToggleButton = ({
93
94
  ariaControls,
@@ -162,5 +163,5 @@ const SideNavToggleButton = ({
162
163
  });
163
164
  };
164
165
  const MemoizedSideNavToggleButton = exports.SideNavToggleButton = (0, _react.memo)(SideNavToggleButton);
165
- MemoizedSideNavToggleButton.displayName = "SideNavToggleButton::pkg=odyssey&odysseyV=1.65.2";
166
+ MemoizedSideNavToggleButton.displayName = "SideNavToggleButton::pkg=odyssey&odysseyV=1.66.1";
166
167
  //# sourceMappingURL=SideNavToggleButton.cjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"SideNavToggleButton.cjs","names":["_styled","_interopRequireDefault","require","_react","_i18n","_ChevronRight","_MuiPropsContext","_OdysseyDesignTokensContext","_Tooltip","_uiShellSharedConstants","_jsxRuntime","e","__esModule","default","SIDE_NAV_TOGGLE_ICON_SIZE","exports","SIDE_NAV_TOGGLE_ICON_HALF_SIZE","StyledToggleButton","styled","_Button2","shouldForwardProp","prop","clickAreaPadding","odysseyDesignTokens","border","height","left","padding","position","width","zIndex","UI_SHELL_OVERLAY_Z_INDEX","backgroundColor","borderColor","boxShadow","color","PalettePrimaryText","outline","HueNeutralWhite","borderRadius","ShadowScale1","content","top","StyledChevronRightIcon","ChevronRightIcon","isSideNavCollapsed","fontSize","undefined","right","transform","transitionDuration","TransitionDurationMain","transitionProperty","transitionTimingFunction","displayName","defaultLocalButton","window","document","createElement","SideNavToggleButton","ariaControls","id","onClick","onHighlight","tabIndex","useOdysseyDesignTokens","t","useTranslation","buttonRef","useRef","useEffect","setHighlighted","setUnhighlighted","setFocusHighlighted","Boolean","current","matches","addEventListener","removeEventListener","toggleLabel","useMemo","renderButton","useCallback","muiProps","jsx","ref","element","variant","children","Tooltip","ariaType","placement","text","MuiPropsContext","Consumer","MemoizedSideNavToggleButton","memo"],"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":";;;;;;;AAcA,IAAAA,OAAA,GAAAC,sBAAA,CAAAC,OAAA;AAEA,IAAAC,MAAA,GAAAD,OAAA;AASA,IAAAE,KAAA,GAAAF,OAAA;AACA,IAAAG,aAAA,GAAAH,OAAA;AACA,IAAAI,gBAAA,GAAAJ,OAAA;AACA,IAAAK,2BAAA,GAAAL,OAAA;AAIA,IAAAM,QAAA,GAAAN,OAAA;AACA,IAAAO,uBAAA,GAAAP,OAAA;AAAwE,IAAAQ,WAAA,GAAAR,OAAA;AAAA,SAAAD,uBAAAU,CAAA,WAAAA,CAAA,IAAAA,CAAA,CAAAC,UAAA,GAAAD,CAAA,KAAAE,OAAA,EAAAF,CAAA;AAjCxE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAyBO,MAAMG,yBAAyB,GAAAC,OAAA,CAAAD,yBAAA,GAAG,EAAE;AACpC,MAAME,8BAA8B,GAAAD,OAAA,CAAAC,8BAAA,GAAGF,yBAAyB,GAAG,CAAC;AAE3E,MAAMG,kBAAkB,GAAG,IAAAC,eAAM,EAAAC,QAAA,CAAAN,OAAA,EAAY;EAC3CO,iBAAiB,EAAGC,IAAI,IACtBA,IAAI,KAAK,kBAAkB,IAAIA,IAAI,KAAK;AAC5C,CAAC,CAAC,CAGC,CAAC;EAAEC,gBAAgB;EAAEC;AAAoB,CAAC,MAAM;EACjDC,MAAM,EAAE,CAAC;EACTC,MAAM,EAAE,G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;MACjBuB,GAAG,EAAGC,OAA0B,IAAK;QACnC,IAAIA,OAAO,EAAE;UACXlB,SAAS,CAACO,OAAO,GAAGW,OAAO;UAE3BH,QAAQ,CAACE,GAAG,GAAGC,OAAO,CAAC;QACzB;MACF,CAAE;MACFtB,QAAQ,EAAEA,QAAS;MACnBuB,OAAO,EAAC,UAAU;MAAAC,QAAA,EAElB,IAAA9E,WAAA,CAAA0E,GAAA,EAACzC,sBAAsB;QACrBE,kBAAkB,EAAEA,kBAAmB;QACvCtB,mBAAmB,EAAEA;MAAoB,CAC1C;IAAC,CACgB,CAAC;EAEzB,CAAC,EACD,CACEqC,YAAY,EACZtC,gBAAgB,EAChBuC,EAAE,EACFhB,kBAAkB,EAClBtB,mBAAmB,EACnBuC,OAAO,EACPE,QAAQ,EACRe,WAAW,CAEf,CAAC;EAED,OACE,IAAArE,WAAA,CAAA0E,GAAA,EAAC5E,QAAA,CAAAiF,OAAO;IAACC,QAAQ,EAAC,aAAa;IAACC,SAAS,EAAC,OAAO;IAACC,IAAI,EAAEb,WAAY;IAAAS,QAAA,EAClE,IAAA9E,WAAA,CAAA0E,GAAA,EAAC9E,gBAAA,CAAAuF,eAAe,CAACC,QAAQ;MAAAN,QAAA,EAAEP;IAAY,CAA2B;EAAC,CAC5D,CAAC;AAEd,CAAC;AAED,MAAMc,2BAA2B,GAAAhF,OAAA,CAAA4C,mBAAA,GAAG,IAAAqC,WAAI,EAACrC,mBAAmB,CAAC;AAC7DoC,2BAA2B,CAACzC,WAAW,qDAAwB","ignoreList":[]}
1
+ {"version":3,"file":"SideNavToggleButton.cjs","names":["_styled","_interopRequireDefault","require","_react","_i18n","_ChevronRight","_MuiPropsContext","_OdysseyDesignTokensContext","_Tooltip","_uiShellSharedConstants","_jsxRuntime","e","__esModule","default","SIDE_NAV_TOGGLE_ICON_SIZE","exports","SIDE_NAV_TOGGLE_ICON_HALF_SIZE","StyledToggleButton","styled","_Button2","shouldForwardProp","prop","clickAreaPadding","odysseyDesignTokens","border","height","left","padding","position","width","zIndex","UI_SHELL_OVERLAY_Z_INDEX","backgroundColor","borderColor","boxShadow","color","PalettePrimaryText","outline","HueNeutralWhite","borderRadius","ShadowScale1","content","top","StyledChevronRightIcon","ChevronRightIcon","isSideNavCollapsed","fontSize","undefined","right","transform","transitionDuration","TransitionDurationMain","transitionProperty","transitionTimingFunction","displayName","defaultLocalButton","window","document","createElement","SideNavToggleButton","ariaControls","id","onClick","onHighlight","tabIndex","useOdysseyDesignTokens","t","useTranslation","buttonRef","useRef","useEffect","setHighlighted","setUnhighlighted","setFocusHighlighted","Boolean","current","matches","addEventListener","removeEventListener","toggleLabel","useMemo","renderButton","useCallback","muiProps","jsx","ref","element","variant","children","Tooltip","ariaType","placement","text","MuiPropsContext","Consumer","MemoizedSideNavToggleButton","memo"],"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":";;;;;;;AAcA,IAAAA,OAAA,GAAAC,sBAAA,CAAAC,OAAA;AAEA,IAAAC,MAAA,GAAAD,OAAA;AASA,IAAAE,KAAA,GAAAF,OAAA;AACA,IAAAG,aAAA,GAAAH,OAAA;AACA,IAAAI,gBAAA,GAAAJ,OAAA;AACA,IAAAK,2BAAA,GAAAL,OAAA;AAIA,IAAAM,QAAA,GAAAN,OAAA;AACA,IAAAO,uBAAA,GAAAP,OAAA;AAAwE,IAAAQ,WAAA,GAAAR,OAAA;AAAA,SAAAD,uBAAAU,CAAA,WAAAA,CAAA,IAAAA,CAAA,CAAAC,UAAA,GAAAD,CAAA,KAAAE,OAAA,EAAAF,CAAA;AAjCxE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAyBO,MAAMG,yBAAyB,GAAAC,OAAA,CAAAD,yBAAA,GAAG,EAAE;AACpC,MAAME,8BAA8B,GAAAD,OAAA,CAAAC,8BAAA,GAAGF,yBAAyB,GAAG,CAAC;AAE3E,MAAMG,kBAAkB,GAAG,IAAAC,eAAM,EAAAC,QAAA,CAAAN,OAAA,EAAY;EAC3CO,iBAAiB,EAAGC,IAAI,IACtBA,IAAI,KAAK,kBAAkB,IAAIA,IAAI,KAAK;AAC5C,CAAC,CAAC,CAGC,CAAC;EAAEC,gBAAgB;EAAEC;AAAoB,CAAC,MAAM;EACjD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EA,EAAG;MACPtC,mBAAmB,EAAEA,mBAAoB;MACzCuC,OAAO,EAAEA,OAAQ;MACjBuB,GAAG,EAAGC,OAA0B,IAAK;QACnC,IAAIA,OAAO,EAAE;UACXlB,SAAS,CAACO,OAAO,GAAGW,OAAO;UAE3BH,QAAQ,CAACE,GAAG,GAAGC,OAAO,CAAC;QACzB;MACF,CAAE;MACFtB,QAAQ,EAAEA,QAAS;MACnBuB,OAAO,EAAC,UAAU;MAAAC,QAAA,EAElB,IAAA9E,WAAA,CAAA0E,GAAA,EAACzC,sBAAsB;QACrBE,kBAAkB,EAAEA,kBAAmB;QACvCtB,mBAAmB,EAAEA;MAAoB,CAC1C;IAAC,CACgB,CAAC;EAEzB,CAAC,EACD,CACEqC,YAAY,EACZtC,gBAAgB,EAChBuC,EAAE,EACFhB,kBAAkB,EAClBtB,mBAAmB,EACnBuC,OAAO,EACPE,QAAQ,EACRe,WAAW,CAEf,CAAC;EAED,OACE,IAAArE,WAAA,CAAA0E,GAAA,EAAC5E,QAAA,CAAAiF,OAAO;IAACC,QAAQ,EAAC,aAAa;IAACC,SAAS,EAAC,OAAO;IAACC,IAAI,EAAEb,WAAY;IAAAS,QAAA,EAClE,IAAA9E,WAAA,CAAA0E,GAAA,EAAC9E,gBAAA,CAAAuF,eAAe,CAACC,QAAQ;MAAAN,QAAA,EAAEP;IAAY,CAA2B;EAAC,CAC5D,CAAC;AAEd,CAAC;AAED,MAAMc,2BAA2B,GAAAhF,OAAA,CAAA4C,mBAAA,GAAG,IAAAqC,WAAI,EAACrC,mBAAmB,CAAC;AAC7DoC,2BAA2B,CAACzC,WAAW,qDAAwB","ignoreList":[]}
@@ -113,6 +113,7 @@ const SkipToContent = ({
113
113
  ref: containerRef,
114
114
  children: (0, _jsxRuntime.jsx)(_BaseButton.BaseButton, {
115
115
  buttonRef: buttonRef,
116
+ id: "skip-to-main-content",
116
117
  label: t("skiplinks.main"),
117
118
  onClick: focusMainContent,
118
119
  variant: "primary"
@@ -120,5 +121,5 @@ const SkipToContent = ({
120
121
  });
121
122
  };
122
123
  const MemoizedSkipToContent = exports.SkipToContent = (0, _react.memo)(SkipToContent);
123
- MemoizedSkipToContent.displayName = "SkipToContent::pkg=odyssey&odysseyV=1.65.2";
124
+ MemoizedSkipToContent.displayName = "SkipToContent::pkg=odyssey&odysseyV=1.66.1";
124
125
  //# sourceMappingURL=SkipToContent.cjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"SkipToContent.cjs","names":["_styled","_interopRequireDefault","require","_react","_BaseButton","_i18n","_OdysseyDesignTokensContext","_uiShellSharedConstants","_jsxRuntime","e","__esModule","default","StyledContainer","styled","shouldForwardProp","prop","odysseyDesignTokens","left","Spacing4","position","top","Spacing3","zIndex","SKIP_LINKS_Z_INDEX","clip","clipPath","height","overflow","pointerEvents","whiteSpace","width","SkipToContent","appElement","useOdysseyDesignTokens","t","useTranslation","containerRef","useRef","buttonRef","interceptedFromRef","useEffect","hasTabIndex","hasAttribute","hasOutlineStyle","style","getPropertyValue","setAttribute","setProperty","removeAttribute","removeProperty","stopInterceptor","document","removeEventListener","handleKeyDown","keyboardEvent","key","shiftKey","current","contains","activeElement","preventDefault","requestAnimationFrame","focus","addEventListener","resumeFromInterceptedPosition","focusMainContent","useCallback","jsx","ref","children","BaseButton","label","onClick","variant","MemoizedSkipToContent","exports","memo","displayName"],"sources":["../../../src/ui-shell/SkipToContent.tsx"],"sourcesContent":["/*!\n * Copyright (c) 2026-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 { memo, useCallback, useEffect, useRef } from \"react\";\n\nimport { BaseButton } from \"../Buttons/BaseButton.js\";\nimport { useTranslation } from \"../i18n.generated/i18n.js\";\nimport { FocusHandle } from \"../inputUtils.js\";\nimport {\n type DesignTokens,\n useOdysseyDesignTokens,\n} from \"../OdysseyDesignTokensContext.js\";\nimport { SKIP_LINKS_Z_INDEX } from \"./uiShellSharedConstants.js\";\n\nconst StyledContainer = styled(\"div\", {\n shouldForwardProp: (prop) => prop !== \"odysseyDesignTokens\",\n})<{ odysseyDesignTokens: DesignTokens }>(({ odysseyDesignTokens }) => ({\n left: odysseyDesignTokens.Spacing4,\n position: \"fixed\",\n top: odysseyDesignTokens.Spacing3,\n zIndex: SKIP_LINKS_Z_INDEX,\n // Visually hidden when not focused — the \"sr-only\" pattern.\n // https://www.a11yproject.com/posts/how-to-hide-content/\n //\n // We found this method via the A11y Project. It fixes axe color-contrast\n // violations that `opacity: 0` triggers (axe still evaluates contrast on\n // opacity-0 elements because they occupy space in the layout). The sr-only\n // pattern collapses the element to 1×1 px and clips it, which axe — and\n // every modern screen reader — treats as fully hidden. Unlike a large\n // negative `left` offset, it also avoids any risk of a phantom scrollbar.\n \"&:not(:focus-within)\": {\n clip: \"rect(0 0 0 0)\",\n clipPath: \"inset(50%)\",\n height: \"1px\",\n overflow: \"hidden\",\n pointerEvents: \"none\",\n whiteSpace: \"nowrap\",\n width: \"1px\",\n },\n}));\n\ntype SkipToContentProps = {\n appElement: HTMLDivElement | null;\n};\n\nconst SkipToContent = ({ appElement }: SkipToContentProps) => {\n const odysseyDesignTokens = useOdysseyDesignTokens();\n const { t } = useTranslation();\n\n const containerRef = useRef<HTMLDivElement>(null);\n const buttonRef = useRef<FocusHandle>(null);\n const interceptedFromRef = useRef<HTMLElement | null>(null);\n\n useEffect(() => {\n if (appElement) {\n const hasTabIndex = appElement.hasAttribute(\"tabindex\");\n const hasOutlineStyle =\n appElement.style.getPropertyValue(\"outline\") !== \"\";\n\n if (!hasTabIndex) {\n appElement.setAttribute(\"tabindex\", \"-1\");\n }\n if (!hasOutlineStyle) {\n appElement.style.setProperty(\"outline\", \"none\");\n }\n\n return () => {\n if (!hasTabIndex) {\n appElement.removeAttribute(\"tabindex\");\n }\n if (!hasOutlineStyle) {\n appElement.style.removeProperty(\"outline\");\n }\n };\n }\n\n return;\n }, [appElement]);\n\n useEffect(() => {\n const stopInterceptor = () => {\n document.removeEventListener(\"keydown\", handleKeyDown);\n document.removeEventListener(\"pointerdown\", stopInterceptor);\n };\n\n const handleKeyDown = (keyboardEvent: globalThis.KeyboardEvent) => {\n if (\n keyboardEvent.key === \"Tab\" &&\n !keyboardEvent.shiftKey &&\n !containerRef.current?.contains(document.activeElement)\n ) {\n interceptedFromRef.current = document.activeElement as HTMLElement;\n keyboardEvent.preventDefault();\n stopInterceptor();\n\n requestAnimationFrame(() => {\n buttonRef.current?.focus();\n });\n }\n };\n\n document.addEventListener(\"keydown\", handleKeyDown);\n document.addEventListener(\"pointerdown\", stopInterceptor);\n\n return stopInterceptor;\n }, []);\n\n useEffect(() => {\n const resumeFromInterceptedPosition = (\n keyboardEvent: globalThis.KeyboardEvent,\n ) => {\n if (\n interceptedFromRef.current &&\n keyboardEvent.key === \"Tab\" &&\n !keyboardEvent.shiftKey &&\n containerRef.current?.contains(document.activeElement)\n ) {\n interceptedFromRef.current.focus();\n interceptedFromRef.current = null;\n }\n };\n\n document.addEventListener(\"keydown\", resumeFromInterceptedPosition);\n\n return () => {\n document.removeEventListener(\"keydown\", resumeFromInterceptedPosition);\n };\n }, []);\n\n const focusMainContent = useCallback(() => {\n appElement?.focus();\n }, [appElement]);\n\n return (\n <StyledContainer\n odysseyDesignTokens={odysseyDesignTokens}\n ref={containerRef}\n >\n <BaseButton\n buttonRef={buttonRef}\n label={t(\"skiplinks.main\")}\n onClick={focusMainContent}\n variant=\"primary\"\n />\n </StyledContainer>\n );\n};\n\nconst MemoizedSkipToContent = memo(SkipToContent);\nMemoizedSkipToContent.displayName = \"SkipToContent\";\n\nexport { MemoizedSkipToContent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SAAU;MACrBiC,KAAK,EAAErC,CAAC,CAAC,gBAAgB,CAAE;MAC3BsC,OAAO,EAAEP,gBAAiB;MAC1BQ,OAAO,EAAC;IAAS,CAClB;EAAC,CACa,CAAC;AAEtB,CAAC;AAED,MAAMC,qBAAqB,GAAAC,OAAA,CAAA5C,aAAA,GAAG,IAAA6C,WAAI,EAAC7C,aAAa,CAAC;AACjD2C,qBAAqB,CAACG,WAAW,+CAAkB","ignoreList":[]}
1
+ {"version":3,"file":"SkipToContent.cjs","names":["_styled","_interopRequireDefault","require","_react","_BaseButton","_i18n","_OdysseyDesignTokensContext","_uiShellSharedConstants","_jsxRuntime","e","__esModule","default","StyledContainer","styled","shouldForwardProp","prop","odysseyDesignTokens","left","Spacing4","position","top","Spacing3","zIndex","SKIP_LINKS_Z_INDEX","clip","clipPath","height","overflow","pointerEvents","whiteSpace","width","SkipToContent","appElement","useOdysseyDesignTokens","t","useTranslation","containerRef","useRef","buttonRef","interceptedFromRef","useEffect","hasTabIndex","hasAttribute","hasOutlineStyle","style","getPropertyValue","setAttribute","setProperty","removeAttribute","removeProperty","stopInterceptor","document","removeEventListener","handleKeyDown","keyboardEvent","key","shiftKey","current","contains","activeElement","preventDefault","requestAnimationFrame","focus","addEventListener","resumeFromInterceptedPosition","focusMainContent","useCallback","jsx","ref","children","BaseButton","id","label","onClick","variant","MemoizedSkipToContent","exports","memo","displayName"],"sources":["../../../src/ui-shell/SkipToContent.tsx"],"sourcesContent":["/*!\n * Copyright (c) 2026-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 { memo, useCallback, useEffect, useRef } from \"react\";\n\nimport { BaseButton } from \"../Buttons/BaseButton.js\";\nimport { useTranslation } from \"../i18n.generated/i18n.js\";\nimport { FocusHandle } from \"../inputUtils.js\";\nimport {\n type DesignTokens,\n useOdysseyDesignTokens,\n} from \"../OdysseyDesignTokensContext.js\";\nimport { SKIP_LINKS_Z_INDEX } from \"./uiShellSharedConstants.js\";\n\nconst StyledContainer = styled(\"div\", {\n shouldForwardProp: (prop) => prop !== \"odysseyDesignTokens\",\n})<{ odysseyDesignTokens: DesignTokens }>(({ odysseyDesignTokens }) => ({\n left: odysseyDesignTokens.Spacing4,\n position: \"fixed\",\n top: odysseyDesignTokens.Spacing3,\n zIndex: SKIP_LINKS_Z_INDEX,\n // Visually hidden when not focused — the \"sr-only\" pattern.\n // https://www.a11yproject.com/posts/how-to-hide-content/\n //\n // We found this method via the A11y Project. It fixes axe color-contrast\n // violations that `opacity: 0` triggers (axe still evaluates contrast on\n // opacity-0 elements because they occupy space in the layout). The sr-only\n // pattern collapses the element to 1×1 px and clips it, which axe — and\n // every modern screen reader — treats as fully hidden. Unlike a large\n // negative `left` offset, it also avoids any risk of a phantom scrollbar.\n \"&:not(:focus-within)\": {\n clip: \"rect(0 0 0 0)\",\n clipPath: \"inset(50%)\",\n height: \"1px\",\n overflow: \"hidden\",\n pointerEvents: \"none\",\n whiteSpace: \"nowrap\",\n width: \"1px\",\n },\n}));\n\ntype SkipToContentProps = {\n appElement: HTMLDivElement | null;\n};\n\nconst SkipToContent = ({ appElement }: SkipToContentProps) => {\n const odysseyDesignTokens = useOdysseyDesignTokens();\n const { t } = useTranslation();\n\n const containerRef = useRef<HTMLDivElement>(null);\n const buttonRef = useRef<FocusHandle>(null);\n const interceptedFromRef = useRef<HTMLElement | null>(null);\n\n useEffect(() => {\n if (appElement) {\n const hasTabIndex = appElement.hasAttribute(\"tabindex\");\n const hasOutlineStyle =\n appElement.style.getPropertyValue(\"outline\") !== \"\";\n\n if (!hasTabIndex) {\n appElement.setAttribute(\"tabindex\", \"-1\");\n }\n if (!hasOutlineStyle) {\n appElement.style.setProperty(\"outline\", \"none\");\n }\n\n return () => {\n if (!hasTabIndex) {\n appElement.removeAttribute(\"tabindex\");\n }\n if (!hasOutlineStyle) {\n appElement.style.removeProperty(\"outline\");\n }\n };\n }\n\n return;\n }, [appElement]);\n\n useEffect(() => {\n const stopInterceptor = () => {\n document.removeEventListener(\"keydown\", handleKeyDown);\n document.removeEventListener(\"pointerdown\", stopInterceptor);\n };\n\n const handleKeyDown = (keyboardEvent: globalThis.KeyboardEvent) => {\n if (\n keyboardEvent.key === \"Tab\" &&\n !keyboardEvent.shiftKey &&\n !containerRef.current?.contains(document.activeElement)\n ) {\n interceptedFromRef.current = document.activeElement as HTMLElement;\n keyboardEvent.preventDefault();\n stopInterceptor();\n\n requestAnimationFrame(() => {\n buttonRef.current?.focus();\n });\n }\n };\n\n document.addEventListener(\"keydown\", handleKeyDown);\n document.addEventListener(\"pointerdown\", stopInterceptor);\n\n return stopInterceptor;\n }, []);\n\n useEffect(() => {\n const resumeFromInterceptedPosition = (\n keyboardEvent: globalThis.KeyboardEvent,\n ) => {\n if (\n interceptedFromRef.current &&\n keyboardEvent.key === \"Tab\" &&\n !keyboardEvent.shiftKey &&\n containerRef.current?.contains(document.activeElement)\n ) {\n interceptedFromRef.current.focus();\n interceptedFromRef.current = null;\n }\n };\n\n document.addEventListener(\"keydown\", resumeFromInterceptedPosition);\n\n return () => {\n document.removeEventListener(\"keydown\", resumeFromInterceptedPosition);\n };\n }, []);\n\n const focusMainContent = useCallback(() => {\n appElement?.focus();\n }, [appElement]);\n\n return (\n <StyledContainer\n odysseyDesignTokens={odysseyDesignTokens}\n ref={containerRef}\n >\n <BaseButton\n buttonRef={buttonRef}\n id=\"skip-to-main-content\"\n label={t(\"skiplinks.main\")}\n onClick={focusMainContent}\n variant=\"primary\"\n />\n </StyledContainer>\n );\n};\n\nconst MemoizedSkipToContent = memo(SkipToContent);\nMemoized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AAC/D,WAAA,CAAAkE,UAAU;MACThC,SAAS,EAAEA,SAAU;MACrBiC,EAAE,EAAC,sBAAsB;MACzBC,KAAK,EAAEtC,CAAC,CAAC,gBAAgB,CAAE;MAC3BuC,OAAO,EAAER,gBAAiB;MAC1BS,OAAO,EAAC;IAAS,CAClB;EAAC,CACa,CAAC;AAEtB,CAAC;AAED,MAAMC,qBAAqB,GAAAC,OAAA,CAAA7C,aAAA,GAAG,IAAA8C,WAAI,EAAC9C,aAAa,CAAC;AACjD4C,qBAAqB,CAACG,WAAW,+CAAkB","ignoreList":[]}
@@ -33,5 +33,5 @@ var _jsxRuntime = require("react/jsx-runtime");
33
33
  });
34
34
  });
35
35
  const MemoizedHamburgerMenuIcon = exports.HamburgerMenuIcon = (0, _react.memo)(HamburgerMenuIcon);
36
- MemoizedHamburgerMenuIcon.displayName = "HamburgerMenuIcon::pkg=odyssey&odysseyV=1.65.2";
36
+ MemoizedHamburgerMenuIcon.displayName = "HamburgerMenuIcon::pkg=odyssey&odysseyV=1.66.1";
37
37
  //# sourceMappingURL=HamburgerMenuIcon.cjs.map
@@ -69,5 +69,5 @@ const TopNav = ({
69
69
  });
70
70
  };
71
71
  const MemoizedTopNav = exports.TopNav = (0, _react.memo)(TopNav);
72
- MemoizedTopNav.displayName = "TopNav::pkg=odyssey&odysseyV=1.65.2";
72
+ MemoizedTopNav.displayName = "TopNav::pkg=odyssey&odysseyV=1.66.1";
73
73
  //# sourceMappingURL=TopNav.cjs.map
@@ -39,5 +39,5 @@ const TopNavLinksList = ({
39
39
  })
40
40
  });
41
41
  const MemoizedTopNavLinksList = exports.TopNavLinksList = (0, _react.memo)(TopNavLinksList);
42
- MemoizedTopNavLinksList.displayName = "TopNavLinksList::pkg=odyssey&odysseyV=1.65.2";
42
+ MemoizedTopNavLinksList.displayName = "TopNavLinksList::pkg=odyssey&odysseyV=1.66.1";
43
43
  //# sourceMappingURL=TopNavLinksList.cjs.map
@@ -133,5 +133,5 @@ const TopNavListItem = ({
133
133
  });
134
134
  };
135
135
  const MemoizedTopNavListItem = exports.TopNavListItem = (0, _react.memo)(TopNavListItem);
136
- MemoizedTopNavListItem.displayName = "TopNavListItem::pkg=odyssey&odysseyV=1.65.2";
136
+ MemoizedTopNavListItem.displayName = "TopNavListItem::pkg=odyssey&odysseyV=1.66.1";
137
137
  //# sourceMappingURL=TopNavListItem.cjs.map
@@ -129,5 +129,5 @@ const UiShell = ({
129
129
  });
130
130
  };
131
131
  const MemoizedUiShell = exports.UiShell = (0, _react.memo)(UiShell);
132
- MemoizedUiShell.displayName = "UiShell::pkg=odyssey&odysseyV=1.65.2";
132
+ MemoizedUiShell.displayName = "UiShell::pkg=odyssey&odysseyV=1.66.1";
133
133
  //# sourceMappingURL=UiShell.cjs.map
@@ -72,5 +72,5 @@ const UiShellLogo = ({
72
72
  });
73
73
  };
74
74
  const MemoizedUiShellLogo = exports.UiShellLogo = (0, _react.memo)(UiShellLogo);
75
- MemoizedUiShellLogo.displayName = "UiShellLogo::pkg=odyssey&odysseyV=1.65.2";
75
+ MemoizedUiShellLogo.displayName = "UiShellLogo::pkg=odyssey&odysseyV=1.66.1";
76
76
  //# sourceMappingURL=UiShellLogo.cjs.map
@@ -177,5 +177,5 @@ const WideUiShellContent = ({
177
177
  });
178
178
  };
179
179
  const MemoizedWideUiShellContent = exports.WideUiShellContent = (0, _react.memo)(WideUiShellContent);
180
- MemoizedWideUiShellContent.displayName = "WideUiShellContent::pkg=odyssey&odysseyV=1.65.2";
180
+ MemoizedWideUiShellContent.displayName = "WideUiShellContent::pkg=odyssey&odysseyV=1.66.1";
181
181
  //# sourceMappingURL=WideUiShellContent.cjs.map
@@ -15,5 +15,5 @@ exports.default = void 0;
15
15
  *
16
16
  * See the License for the specific language governing permissions and limitations under the License.
17
17
  */
18
- var _default = exports.default = "1-65-2";
18
+ var _default = exports.default = "1-66-1";
19
19
  //# sourceMappingURL=odysseyWebComponentVersion.generated.cjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"odysseyWebComponentVersion.generated.cjs","names":["_default","exports","default"],"sources":["../../../src/web-component/odysseyWebComponentVersion.generated.ts"],"sourcesContent":["/*!\n * Copyright (c) 2024-present, Okta, Inc. and/or its affiliates. All rights reserved.\n * The Okta software accompanied by this notice is provided pursuant to the Apache License, Version 2.0 (the \"License.\")\n *\n * You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0.\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS, WITHOUT\n * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n *\n * See the License for the specific language governing permissions and limitations under the License.\n */\n\n/**\n * DO NOT UPDATE THIS FILE MANUALLY\n * This file is managed by scripts/updateWebComponentVersion.ts and any changes made will be overwritten\n * This script only needs to be run during release, and shouldn't be used during local development.\n */\n\nexport default \"1-65-2\";\n"],"mappings":";;;;;;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAVA,IAAAA,QAAA,GAAAC,OAAA,CAAAC,OAAA,GAkBe,QAAQ","ignoreList":[]}
1
+ {"version":3,"file":"odysseyWebComponentVersion.generated.cjs","names":["_default","exports","default"],"sources":["../../../src/web-component/odysseyWebComponentVersion.generated.ts"],"sourcesContent":["/*!\n * Copyright (c) 2024-present, Okta, Inc. and/or its affiliates. All rights reserved.\n * The Okta software accompanied by this notice is provided pursuant to the Apache License, Version 2.0 (the \"License.\")\n *\n * You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0.\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS, WITHOUT\n * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n *\n * See the License for the specific language governing permissions and limitations under the License.\n */\n\n/**\n * DO NOT UPDATE THIS FILE MANUALLY\n * This file is managed by scripts/updateWebComponentVersion.ts and any changes made will be overwritten\n * This script only needs to be run during release, and shouldn't be used during local development.\n */\n\nexport default \"1-66-1\";\n"],"mappings":";;;;;;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAVA,IAAAA,QAAA,GAAAC,OAAA,CAAAC,OAAA,GAkBe,QAAQ","ignoreList":[]}
@@ -57,6 +57,6 @@ const Accordion = ({
57
57
  });
58
58
  };
59
59
  const MemoizedAccordion = memo(Accordion);
60
- MemoizedAccordion.displayName = "Accordion::pkg=odyssey&odysseyV=1.65.2";
60
+ MemoizedAccordion.displayName = "Accordion::pkg=odyssey&odysseyV=1.66.1";
61
61
  export { MemoizedAccordion as Accordion };
62
62
  //# sourceMappingURL=Accordion.js.map
@@ -19,6 +19,7 @@ const Autocomplete = ({
19
19
  defaultValue,
20
20
  errorMessage,
21
21
  errorMessageList,
22
+ filterOptions,
22
23
  getIsOptionEqualToValue,
23
24
  getOptionLabel,
24
25
  hasMultipleChoices,
@@ -83,6 +84,7 @@ const Autocomplete = ({
83
84
  closeText: t("close.text"),
84
85
  disableCloseOnSelect: hasMultipleChoices,
85
86
  disabled: isDisabled,
87
+ filterOptions: filterOptions,
86
88
  filterSelectedOptions: true,
87
89
  freeSolo: isCustomValueAllowed,
88
90
  fullWidth: isFullWidth,
@@ -104,6 +106,6 @@ const Autocomplete = ({
104
106
  });
105
107
  };
106
108
  const MemoizedAutocomplete = memo(Autocomplete);
107
- MemoizedAutocomplete.displayName = "Autocomplete::pkg=odyssey&odysseyV=1.65.2";
109
+ MemoizedAutocomplete.displayName = "Autocomplete::pkg=odyssey&odysseyV=1.66.1";
108
110
  export { MemoizedAutocomplete as Autocomplete };
109
111
  //# sourceMappingURL=Autocomplete.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"Autocomplete.js","names":["memo","createElement","_createElement","useTranslation","PickerVirtualizationListBox","useAutocomplete","Autocomplete","ariaDescribedBy","defaultValue","errorMessage","errorMessageList","getIsOptionEqualToValue","getOptionLabel","hasMultipleChoices","hint","HintLinkComponent","id","idOverride","inputValue","isCustomValueAllowed","isDisabled","isFullWidth","isLoading","isOptional","isReadOnly","isVirtualized","label","name","nameOverride","noOptionsText","onBlur","onChange","onFocus","onInputChange","options","testId","translate","value","t","inputValueProp","isVirtualizedRef","renderInput","valueProps","_Autocomplete","key","current","ListboxComponent","clearText","closeText","disableCloseOnSelect","disabled","filterSelectedOptions","freeSolo","fullWidth","isOptionEqualToValue","loading","multiple","openText","readOnly","MemoizedAutocomplete","displayName"],"sources":["../../src/Autocomplete.tsx"],"sourcesContent":["/*!\n * Copyright (c) 2023-present, Okta, Inc. and/or its affiliates. All rights reserved.\n * The Okta software accompanied by this notice is provided pursuant to the Apache License, Version 2.0 (the \"License.\")\n *\n * You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0.\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS, WITHOUT\n * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n *\n * See the License for the specific language governing permissions and limitations under the License.\n */\n\nimport {\n Autocomplete as MuiAutocomplete,\n AutocompleteProps as MuiAutocompleteProps,\n UseAutocompleteProps as MuiUseAutocompleteProps,\n} from \"@mui/material\";\nimport { memo } from \"react\";\n\nimport type { HtmlProps } from \"./HtmlProps.js\";\n\nimport { FieldComponentProps } from \"./FieldComponentProps.js\";\nimport { useTranslation } from \"./i18n.generated/i18n.js\";\nimport { PickerVirtualizationListBox } from \"./labs/OdysseyPickers/PickerVirtualizationListBox.js\";\nimport { useAutocomplete } from \"./useAutocomplete.js\";\n\nexport type AutocompleteProps<\n OptionType,\n HasMultipleChoices extends boolean | undefined,\n IsCustomValueAllowed extends boolean | undefined,\n> = {\n /**\n * The default value. Use when the component is not controlled.\n */\n defaultValue?: MuiUseAutocompleteProps<\n OptionType,\n HasMultipleChoices,\n undefined,\n IsCustomValueAllowed\n >[\"defaultValue\"];\n /**\n * Used to determine if the option represents the given value. Uses strict equality by default if\n * none provided. Both arguments need to be handled, an option can only match with one value.\n * option: the option to test\n * value: the value to test against\n *\n * You will need to implement this function if your `option` items are objects.\n */\n getIsOptionEqualToValue?: (option: OptionType, value: OptionType) => boolean;\n\n /**\n * Used to determine the string value for a given option. It's used to fill the input (and the\n * list box options if renderOption is not provided). If used in free solo mode, it must accept\n * both the type of the options and a string.\n *\n * `function(option: Value) => string`\n */\n getOptionLabel?: MuiUseAutocompleteProps<\n OptionType,\n HasMultipleChoices,\n undefined,\n IsCustomValueAllowed\n >[\"getOptionLabel\"];\n /**\n * Whether multiple options can be selected simultaneously.\n */\n hasMultipleChoices?: MuiAutocompleteProps<\n OptionType,\n HasMultipleChoices,\n undefined,\n IsCustomValueAllowed\n >[\"multiple\"];\n /**\n * The value for the input\n */\n inputValue?: MuiUseAutocompleteProps<\n OptionType,\n HasMultipleChoices,\n undefined,\n IsCustomValueAllowed\n >[\"inputValue\"];\n /**\n * If `true`, the user can type a custom value not present in the options list.\n */\n isCustomValueAllowed?: MuiAutocompleteProps<\n OptionType,\n HasMultipleChoices,\n undefined,\n IsCustomValueAllowed\n >[\"freeSolo\"];\n /**\n * If `true`, the Autocomplete input is disabled.\n */\n isDisabled?: MuiAutocompleteProps<\n OptionType,\n HasMultipleChoices,\n undefined,\n IsCustomValueAllowed\n >[\"disabled\"];\n /**\n * If `true`, a loading indicator is shown in place of the options list.\n */\n isLoading?: MuiAutocompleteProps<\n OptionType,\n HasMultipleChoices,\n undefined,\n IsCustomValueAllowed\n >[\"loading\"];\n /**\n * If `true`, the Autocomplete input is read-only.\n */\n isReadOnly?: MuiAutocompleteProps<\n OptionType,\n HasMultipleChoices,\n undefined,\n IsCustomValueAllowed\n >[\"readOnly\"];\n /**\n * If `true`, renders the options list using virtualization.\n * Recommended when the list contains hundreds of items or more.\n */\n isVirtualized?: boolean;\n /**\n * The label text for the autocomplete input\n */\n label: string;\n /**\n * The text to display when no options are available.\n * @default \"No options\"\n */\n noOptionsText?: string;\n /**\n * Called when the Autocomplete loses focus.\n */\n onBlur?: MuiAutocompleteProps<\n OptionType,\n HasMultipleChoices,\n undefined,\n IsCustomValueAllowed\n >[\"onBlur\"];\n /**\n * Called when the selected value changes.\n */\n onChange?: MuiUseAutocompleteProps<\n OptionType,\n HasMultipleChoices,\n undefined,\n IsCustomValueAllowed\n >[\"onChange\"];\n /**\n * Called when the Autocomplete gains focus.\n */\n onFocus?: MuiAutocompleteProps<\n OptionType,\n HasMultipleChoices,\n undefined,\n IsCustomValueAllowed\n >[\"onFocus\"];\n /**\n * Called when the text input value changes. Receives the new input string.\n */\n onInputChange?: MuiAutocompleteProps<\n OptionType,\n HasMultipleChoices,\n undefined,\n IsCustomValueAllowed\n >[\"onInputChange\"];\n /**\n * The options for the Autocomplete input\n */\n options: ReadonlyArray<OptionType>;\n /**\n * The value of the Autocomplete input\n */\n value?: MuiUseAutocompleteProps<\n OptionType,\n HasMultipleChoices,\n undefined,\n IsCustomValueAllowed\n >[\"value\"];\n} & Pick<\n FieldComponentProps,\n | \"errorMessage\"\n | \"errorMessageList\"\n | \"hint\"\n | \"HintLinkComponent\"\n | \"id\"\n | \"isFullWidth\"\n | \"isOptional\"\n | \"name\"\n> &\n Pick<HtmlProps, \"ariaDescribedBy\" | \"testId\" | \"translate\">;\n\n/**\n * An input field with a dropdown list of selectable options that supports filtering, multi-select,\n * and free-text entry. Use when users need to search or choose from a potentially large set of\n * values.\n */\nconst Autocomplete = <\n OptionType,\n HasMultipleChoices extends boolean | undefined,\n IsCustomValueAllowed extends boolean | undefined,\n>({\n ariaDescribedBy,\n defaultValue,\n errorMessage,\n errorMessageList,\n getIsOptionEqualToValue,\n getOptionLabel,\n hasMultipleChoices,\n hint,\n HintLinkComponent,\n id: idOverride,\n inputValue,\n isCustomValueAllowed,\n isDisabled,\n isFullWidth = false,\n isLoading,\n isOptional = false,\n isReadOnly,\n isVirtualized = false,\n label,\n name: nameOverride,\n noOptionsText,\n onBlur,\n onChange,\n onFocus,\n onInputChange,\n options,\n testId,\n translate,\n value,\n}: AutocompleteProps<OptionType, HasMultipleChoices, IsCustomValueAllowed>) => {\n const { t } = useTranslation();\n const { inputValueProp, isVirtualizedRef, renderInput, valueProps } =\n useAutocomplete<OptionType, HasMultipleChoices, IsCustomValueAllowed>({\n ariaDescribedBy,\n defaultValue,\n errorMessage,\n errorMessageList,\n hasMultipleChoices,\n hint,\n HintLinkComponent,\n inputValue,\n isFullWidth,\n isOptional,\n isReadOnly,\n isVirtualized,\n label,\n name: nameOverride,\n testId,\n value,\n });\n\n return (\n <MuiAutocomplete\n {...valueProps}\n {...inputValueProp}\n // MUI's value type is incompatible between single (null) and multiple (array)\n // modes. Changing `multiple` on a live instance causes a null.length crash,\n // so we force a remount when the mode changes. This resets internal UI state.\n key={hasMultipleChoices ? \"multiple\" : \"single\"}\n // conditionally provide the ListboxComponent if this needs to be virtualized\n {...(isVirtualizedRef.current && {\n ListboxComponent: PickerVirtualizationListBox,\n })}\n // AutoComplete is wrapped in a div within MUI which does not get the disabled attr. So this aria-disabled gets set in the div\n aria-disabled={isDisabled}\n clearText={t(\"clear.text\")}\n closeText={t(\"close.text\")}\n disableCloseOnSelect={hasMultipleChoices}\n disabled={isDisabled}\n filterSelectedOptions={true}\n freeSolo={isCustomValueAllowed}\n fullWidth={isFullWidth}\n getOptionLabel={getOptionLabel}\n id={idOverride}\n isOptionEqualToValue={getIsOptionEqualToValue}\n loading={isLoading}\n multiple={hasMultipleChoices}\n noOptionsText={noOptionsText || t(\"autocomplete.nooptions\")}\n onBlur={onBlur}\n onChange={onChange}\n onFocus={onFocus}\n onInputChange={onInputChange}\n openText={t(\"open.text\")}\n options={options}\n readOnly={isReadOnly}\n renderInput={renderInput}\n translate={translate}\n />\n );\n};\n\nconst MemoizedAutocomplete = memo(Autocomplete) as typeof Autocomplete & {\n displayName?: string;\n};\nMemoizedAutocomplete.displayName = \"Autocomplete\";\n\nexport { MemoizedAutocomplete as Autocomplete };\n"],"mappings":";AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAOA,SAASA,IAAI,EAAAC,aAAA,IAAAC,cAAA,QAAQ,OAAO;AAK5B,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AE;IAC3BU,SAAS,EAAEV,CAAC,CAAC,YAAY,CAAE;IAC3BW,oBAAoB,EAAEpC,kBAAmB;IACzCqC,QAAQ,EAAE9B,UAAW;IACrB+B,qBAAqB,EAAE,IAAK;IAC5BC,QAAQ,EAAEjC,oBAAqB;IAC/BkC,SAAS,EAAEhC,WAAY;IACvBT,cAAc,EAAEA,cAAe;IAC/BI,EAAE,EAAEC,UAAW;IACfqC,oBAAoB,EAAE3C,uBAAwB;IAC9C4C,OAAO,EAAEjC,SAAU;IACnBkC,QAAQ,EAAE3C,kBAAmB;IAC7BgB,aAAa,EAAEA,aAAa,IAAIS,CAAC,CAAC,wBAAwB,CAAE;IAC5DR,MAAM,EAAEA,MAAO;IACfC,QAAQ,EAAEA,QAAS;IACnBC,OAAO,EAAEA,OAAQ;IACjBC,aAAa,EAAEA,aAAc;IAC7BwB,QAAQ,EAAEnB,CAAC,CAAC,WAAW,CAAE;IACzBJ,OAAO,EAAEA,OAAQ;IACjBwB,QAAQ,EAAElC,UAAW;IACrBiB,WAAW,EAAEA,WAAY;IACzBL,SAAS,EAAEA;EAAU,CACtB,CAAC;AAEN,CAAC;AAED,MAAMuB,oBAAoB,GAAG3D,IAAI,CAACM,YAAY,CAE7C;AACDqD,oBAAoB,CAACC,WAAW,8CAAiB;AAEjD,SAASD,oBAAoB,IAAIrD,YAAY","ignoreList":[]}
1
+ {"version":3,"file":"Autocomplete.js","names":["memo","createElement","_createElement","useTranslation","PickerVirtualizationListBox","useAutocomplete","Autocomplete","ariaDescribedBy","defaultValue","errorMessage","errorMessageList","filterOptions","getIsOptionEqualToValue","getOptionLabel","hasMultipleChoices","hint","HintLinkComponent","id","idOverride","inputValue","isCustomValueAllowed","isDisabled","isFullWidth","isLoading","isOptional","isReadOnly","isVirtualized","label","name","nameOverride","noOptionsText","onBlur","onChange","onFocus","onInputChange","options","testId","translate","value","t","inputValueProp","isVirtualizedRef","renderInput","valueProps","_Autocomplete","key","current","ListboxComponent","clearText","closeText","disableCloseOnSelect","disabled","filterSelectedOptions","freeSolo","fullWidth","isOptionEqualToValue","loading","multiple","openText","readOnly","MemoizedAutocomplete","displayName"],"sources":["../../src/Autocomplete.tsx"],"sourcesContent":["/*!\n * Copyright (c) 2023-present, Okta, Inc. and/or its affiliates. All rights reserved.\n * The Okta software accompanied by this notice is provided pursuant to the Apache License, Version 2.0 (the \"License.\")\n *\n * You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0.\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS, WITHOUT\n * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n *\n * See the License for the specific language governing permissions and limitations under the License.\n */\n\nimport {\n Autocomplete as MuiAutocomplete,\n AutocompleteProps as MuiAutocompleteProps,\n UseAutocompleteProps as MuiUseAutocompleteProps,\n} from \"@mui/material\";\nimport { memo } from \"react\";\n\nimport type { HtmlProps } from \"./HtmlProps.js\";\n\nimport { FieldComponentProps } from \"./FieldComponentProps.js\";\nimport { useTranslation } from \"./i18n.generated/i18n.js\";\nimport { PickerVirtualizationListBox } from \"./labs/OdysseyPickers/PickerVirtualizationListBox.js\";\nimport { useAutocomplete } from \"./useAutocomplete.js\";\n\nexport type AutocompleteProps<\n OptionType,\n HasMultipleChoices extends boolean | undefined,\n IsCustomValueAllowed extends boolean | undefined,\n> = {\n /**\n * The default value. Use when the component is not controlled.\n */\n defaultValue?: MuiUseAutocompleteProps<\n OptionType,\n HasMultipleChoices,\n undefined,\n IsCustomValueAllowed\n >[\"defaultValue\"];\n /**\n * Determines the filtered options to display when typing in the input.\n * Defaults to MUI's client-side substring match against `getOptionLabel`.\n * Override this (e.g. `(options) => options`) when `options` is already\n * filtered server-side, to avoid MUI re-filtering already-matching results\n * away.\n */\n filterOptions?: MuiAutocompleteProps<\n OptionType,\n HasMultipleChoices,\n undefined,\n IsCustomValueAllowed\n >[\"filterOptions\"];\n /**\n * Used to determine if the option represents the given value. Uses strict equality by default if\n * none provided. Both arguments need to be handled, an option can only match with one value.\n * option: the option to test\n * value: the value to test against\n *\n * You will need to implement this function if your `option` items are objects.\n */\n getIsOptionEqualToValue?: (option: OptionType, value: OptionType) => boolean;\n\n /**\n * Used to determine the string value for a given option. It's used to fill the input (and the\n * list box options if renderOption is not provided). If used in free solo mode, it must accept\n * both the type of the options and a string.\n *\n * `function(option: Value) => string`\n */\n getOptionLabel?: MuiUseAutocompleteProps<\n OptionType,\n HasMultipleChoices,\n undefined,\n IsCustomValueAllowed\n >[\"getOptionLabel\"];\n /**\n * Whether multiple options can be selected simultaneously.\n */\n hasMultipleChoices?: MuiAutocompleteProps<\n OptionType,\n HasMultipleChoices,\n undefined,\n IsCustomValueAllowed\n >[\"multiple\"];\n /**\n * The value for the input\n */\n inputValue?: MuiUseAutocompleteProps<\n OptionType,\n HasMultipleChoices,\n undefined,\n IsCustomValueAllowed\n >[\"inputValue\"];\n /**\n * If `true`, the user can type a custom value not present in the options list.\n */\n isCustomValueAllowed?: MuiAutocompleteProps<\n OptionType,\n HasMultipleChoices,\n undefined,\n IsCustomValueAllowed\n >[\"freeSolo\"];\n /**\n * If `true`, the Autocomplete input is disabled.\n */\n isDisabled?: MuiAutocompleteProps<\n OptionType,\n HasMultipleChoices,\n undefined,\n IsCustomValueAllowed\n >[\"disabled\"];\n /**\n * If `true`, a loading indicator is shown in place of the options list.\n */\n isLoading?: MuiAutocompleteProps<\n OptionType,\n HasMultipleChoices,\n undefined,\n IsCustomValueAllowed\n >[\"loading\"];\n /**\n * If `true`, the Autocomplete input is read-only.\n */\n isReadOnly?: MuiAutocompleteProps<\n OptionType,\n HasMultipleChoices,\n undefined,\n IsCustomValueAllowed\n >[\"readOnly\"];\n /**\n * If `true`, renders the options list using virtualization.\n * Recommended when the list contains hundreds of items or more.\n */\n isVirtualized?: boolean;\n /**\n * The label text for the autocomplete input\n */\n label: string;\n /**\n * The text to display when no options are available.\n * @default \"No options\"\n */\n noOptionsText?: string;\n /**\n * Called when the Autocomplete loses focus.\n */\n onBlur?: MuiAutocompleteProps<\n OptionType,\n HasMultipleChoices,\n undefined,\n IsCustomValueAllowed\n >[\"onBlur\"];\n /**\n * Called when the selected value changes.\n */\n onChange?: MuiUseAutocompleteProps<\n OptionType,\n HasMultipleChoices,\n undefined,\n IsCustomValueAllowed\n >[\"onChange\"];\n /**\n * Called when the Autocomplete gains focus.\n */\n onFocus?: MuiAutocompleteProps<\n OptionType,\n HasMultipleChoices,\n undefined,\n IsCustomValueAllowed\n >[\"onFocus\"];\n /**\n * Called when the text input value changes. Receives the new input string.\n */\n onInputChange?: MuiAutocompleteProps<\n OptionType,\n HasMultipleChoices,\n undefined,\n IsCustomValueAllowed\n >[\"onInputChange\"];\n /**\n * The options for the Autocomplete input\n */\n options: ReadonlyArray<OptionType>;\n /**\n * The value of the Autocomplete input\n */\n value?: MuiUseAutocompleteProps<\n OptionType,\n HasMultipleChoices,\n undefined,\n IsCustomValueAllowed\n >[\"value\"];\n} & Pick<\n FieldComponentProps,\n | \"errorMessage\"\n | \"errorMessageList\"\n | \"hint\"\n | \"HintLinkComponent\"\n | \"id\"\n | \"isFullWidth\"\n | \"isOptional\"\n | \"name\"\n> &\n Pick<HtmlProps, \"ariaDescribedBy\" | \"testId\" | \"translate\">;\n\n/**\n * An input field with a dropdown list of selectable options that supports filtering, multi-select,\n * and free-text entry. Use when users need to search or choose from a potentially large set of\n * values.\n */\nconst Autocomplete = <\n OptionType,\n HasMultipleChoices extends boolean | undefined,\n IsCustomValueAllowed extends boolean | undefined,\n>({\n ariaDescribedBy,\n defaultValue,\n errorMessage,\n errorMessageList,\n filterOptions,\n getIsOptionEqualToValue,\n getOptionLabel,\n hasMultipleChoices,\n hint,\n HintLinkComponent,\n id: idOverride,\n inputValue,\n isCustomValueAllowed,\n isDisabled,\n isFullWidth = false,\n isLoading,\n isOptional = false,\n isReadOnly,\n isVirtualized = false,\n label,\n name: nameOverride,\n noOptionsText,\n onBlur,\n onChange,\n onFocus,\n onInputChange,\n options,\n testId,\n translate,\n value,\n}: AutocompleteProps<OptionType, HasMultipleChoices, IsCustomValueAllowed>) => {\n const { t } = useTranslation();\n const { inputValueProp, isVirtualizedRef, renderInput, valueProps } =\n useAutocomplete<OptionType, HasMultipleChoices, IsCustomValueAllowed>({\n ariaDescribedBy,\n defaultValue,\n errorMessage,\n errorMessageList,\n hasMultipleChoices,\n hint,\n HintLinkComponent,\n inputValue,\n isFullWidth,\n isOptional,\n isReadOnly,\n isVirtualized,\n label,\n name: nameOverride,\n testId,\n value,\n });\n\n return (\n <MuiAutocomplete\n {...valueProps}\n {...inputValueProp}\n // MUI's value type is incompatible between single (null) and multiple (array)\n // modes. Changing `multiple` on a live instance causes a null.length crash,\n // so we force a remount when the mode changes. This resets internal UI state.\n key={hasMultipleChoices ? \"multiple\" : \"single\"}\n // conditionally provide the ListboxComponent if this needs to be virtualized\n {...(isVirtualizedRef.current && {\n ListboxComponent: PickerVirtualizationListBox,\n })}\n // AutoComplete is wrapped in a div within MUI which does not get the disabled attr. So this aria-disabled gets set in the div\n aria-disabled={isDisabled}\n clearText={t(\"clear.text\")}\n closeText={t(\"close.text\")}\n disableCloseOnSelect={hasMultipleChoices}\n disabled={isDisabled}\n filterOptions={filterOptions}\n filterSelectedOptions={true}\n freeSolo={isCustomValueAllowed}\n fullWidth={isFullWidth}\n getOptionLabel={getOptionLabel}\n id={idOverride}\n isOptionEqualToValue={getIsOptionEqualToValue}\n loading={isLoading}\n multiple={hasMultipleChoices}\n noOptionsText={noOptionsText || t(\"autocomplete.nooptions\")}\n onBlur={onBlur}\n onChange={onChange}\n onFocus={onFocus}\n onInputChange={onInputChange}\n openText={t(\"open.text\")}\n options={options}\n readOnly={isReadOnly}\n renderInput={renderInput}\n translate={translate}\n />\n );\n};\n\nconst MemoizedAutocomplete = memo(Autocomplete) as typeof Autocomplete & {\n displayName?: string;\n};\nMemoizedAutocomplete.displayName = \"Autocomplete\";\n\nexport { MemoizedAutocomplete as Autocomplete };\n"],"mappings":";AAAA;AAC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BAAgB,CAACK,OAAO,IAAI;MAC/BC,gBAAgB,EAAE3C;IACpB,CAAC;IAED,iBAAeiB,UAAW;IAC1B2B,SAAS,EAAET,CAAC,CAAC,YAAY,CAAE;IAC3BU,SAAS,EAAEV,CAAC,CAAC,YAAY,CAAE;IAC3BW,oBAAoB,EAAEpC,kBAAmB;IACzCqC,QAAQ,EAAE9B,UAAW;IACrBV,aAAa,EAAEA,aAAc;IAC7ByC,qBAAqB,EAAE,IAAK;IAC5BC,QAAQ,EAAEjC,oBAAqB;IAC/BkC,SAAS,EAAEhC,WAAY;IACvBT,cAAc,EAAEA,cAAe;IAC/BI,EAAE,EAAEC,UAAW;IACfqC,oBAAoB,EAAE3C,uBAAwB;IAC9C4C,OAAO,EAAEjC,SAAU;IACnBkC,QAAQ,EAAE3C,kBAAmB;IAC7BgB,aAAa,EAAEA,aAAa,IAAIS,CAAC,CAAC,wBAAwB,CAAE;IAC5DR,MAAM,EAAEA,MAAO;IACfC,QAAQ,EAAEA,QAAS;IACnBC,OAAO,EAAEA,OAAQ;IACjBC,aAAa,EAAEA,aAAc;IAC7BwB,QAAQ,EAAEnB,CAAC,CAAC,WAAW,CAAE;IACzBJ,OAAO,EAAEA,OAAQ;IACjBwB,QAAQ,EAAElC,UAAW;IACrBiB,WAAW,EAAEA,WAAY;IACzBL,SAAS,EAAEA;EAAU,CACtB,CAAC;AAEN,CAAC;AAED,MAAMuB,oBAAoB,GAAG5D,IAAI,CAACM,YAAY,CAE7C;AACDsD,oBAAoB,CAACC,WAAW,8CAAiB;AAEjD,SAASD,oBAAoB,IAAItD,YAAY","ignoreList":[]}
package/dist/esm/Badge.js CHANGED
@@ -73,6 +73,6 @@ const Badge = ({
73
73
  return renderBadge;
74
74
  };
75
75
  const MemoizedBadge = memo(Badge);
76
- MemoizedBadge.displayName = "Badge::pkg=odyssey&odysseyV=1.65.2";
76
+ MemoizedBadge.displayName = "Badge::pkg=odyssey&odysseyV=1.66.1";
77
77
  export { MemoizedBadge as Badge };
78
78
  //# sourceMappingURL=Badge.js.map
@@ -58,6 +58,6 @@ const Banner = ({
58
58
  });
59
59
  };
60
60
  const MemoizedBanner = memo(Banner);
61
- MemoizedBanner.displayName = "Banner::pkg=odyssey&odysseyV=1.65.2";
61
+ MemoizedBanner.displayName = "Banner::pkg=odyssey&odysseyV=1.66.1";
62
62
  export { MemoizedBanner as Banner };
63
63
  //# sourceMappingURL=Banner.js.map
package/dist/esm/Box.js CHANGED
@@ -31,6 +31,6 @@ const Box = forwardRef(({
31
31
  translate: translate
32
32
  }));
33
33
  const MemoizedBox = memo(Box);
34
- MemoizedBox.displayName = "Box::pkg=odyssey&odysseyV=1.65.2";
34
+ MemoizedBox.displayName = "Box::pkg=odyssey&odysseyV=1.66.1";
35
35
  export { MemoizedBox as Box };
36
36
  //# sourceMappingURL=Box.js.map
@@ -175,6 +175,6 @@ const BreadcrumbList = ({
175
175
  });
176
176
  };
177
177
  const MemoizedBreadcrumbList = memo(BreadcrumbList);
178
- MemoizedBreadcrumbList.displayName = "BreadcrumbList::pkg=odyssey&odysseyV=1.65.2";
178
+ MemoizedBreadcrumbList.displayName = "BreadcrumbList::pkg=odyssey&odysseyV=1.66.1";
179
179
  export { MemoizedBreadcrumbList as BreadcrumbList };
180
180
  //# sourceMappingURL=Breadcrumbs.js.map
@@ -97,6 +97,6 @@ const BaseButton = ({
97
97
  return renderButton(muiProps);
98
98
  };
99
99
  const MemoizedBaseButton = memo(BaseButton);
100
- MemoizedBaseButton.displayName = "BaseButton::pkg=odyssey&odysseyV=1.65.2";
100
+ MemoizedBaseButton.displayName = "BaseButton::pkg=odyssey&odysseyV=1.66.1";
101
101
  export { MemoizedBaseButton as BaseButton };
102
102
  //# sourceMappingURL=BaseButton.js.map
@@ -165,6 +165,6 @@ const BaseMenuButton = ({
165
165
  });
166
166
  };
167
167
  const MemoizedBaseMenuButton = memo(BaseMenuButton);
168
- MemoizedBaseMenuButton.displayName = "BaseMenuButton::pkg=odyssey&odysseyV=1.65.2";
168
+ MemoizedBaseMenuButton.displayName = "BaseMenuButton::pkg=odyssey&odysseyV=1.66.1";
169
169
  export { MemoizedBaseMenuButton as BaseMenuButton };
170
170
  //# sourceMappingURL=BaseMenuButton.js.map
@@ -19,6 +19,6 @@ const Button = props => {
19
19
  });
20
20
  };
21
21
  const MemoizedButton = memo(Button);
22
- MemoizedButton.displayName = "Button::pkg=odyssey&odysseyV=1.65.2";
22
+ MemoizedButton.displayName = "Button::pkg=odyssey&odysseyV=1.66.1";
23
23
  export { MemoizedButton as Button };
24
24
  //# sourceMappingURL=Button.js.map