@okta/odyssey-react-mui 1.68.0 → 1.69.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (621) hide show
  1. package/dist/cjs/Accordion.cjs +1 -1
  2. package/dist/cjs/Autocomplete.cjs +1 -1
  3. package/dist/cjs/Badge.cjs +1 -1
  4. package/dist/cjs/Banner.cjs +1 -1
  5. package/dist/cjs/Banner.cjs.map +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/Callout.cjs.map +1 -1
  15. package/dist/cjs/Card.cjs +1 -1
  16. package/dist/cjs/Charts/ChartError.cjs +73 -0
  17. package/dist/cjs/Charts/ChartError.cjs.map +1 -0
  18. package/dist/cjs/Charts/ChartFrame.cjs +112 -0
  19. package/dist/cjs/Charts/ChartFrame.cjs.map +1 -0
  20. package/dist/cjs/Charts/ChartPopoverContent.cjs +56 -0
  21. package/dist/cjs/Charts/ChartPopoverContent.cjs.map +1 -0
  22. package/dist/cjs/Charts/LineChart.cjs +268 -0
  23. package/dist/cjs/Charts/LineChart.cjs.map +1 -0
  24. package/dist/cjs/Charts/chartTokens.cjs +117 -0
  25. package/dist/cjs/Charts/chartTokens.cjs.map +1 -0
  26. package/dist/cjs/Charts/chartTypes.cjs +6 -0
  27. package/dist/cjs/Charts/chartTypes.cjs.map +1 -0
  28. package/dist/cjs/Charts/formatChartValue.cjs +38 -0
  29. package/dist/cjs/Charts/formatChartValue.cjs.map +1 -0
  30. package/dist/cjs/Charts/getChartSeriesPointData.cjs +52 -0
  31. package/dist/cjs/Charts/getChartSeriesPointData.cjs.map +1 -0
  32. package/dist/cjs/Charts/hasDuplicateSeries.cjs +21 -0
  33. package/dist/cjs/Charts/hasDuplicateSeries.cjs.map +1 -0
  34. package/dist/cjs/Charts/index.cjs +13 -0
  35. package/dist/cjs/Charts/index.cjs.map +1 -0
  36. package/dist/cjs/Charts/resolveChartLocale.cjs +28 -0
  37. package/dist/cjs/Charts/resolveChartLocale.cjs.map +1 -0
  38. package/dist/cjs/Charts/useChartValueFormatter.cjs +35 -0
  39. package/dist/cjs/Charts/useChartValueFormatter.cjs.map +1 -0
  40. package/dist/cjs/Charts/useStableValue.cjs +28 -0
  41. package/dist/cjs/Charts/useStableValue.cjs.map +1 -0
  42. package/dist/cjs/CircularProgress.cjs +1 -1
  43. package/dist/cjs/ConditionalWrapper.cjs +1 -1
  44. package/dist/cjs/DataTable/DataTable.cjs +1 -1
  45. package/dist/cjs/DataTable/DataTableRowActions.cjs +1 -1
  46. package/dist/cjs/DataTable/DataTableSettings.cjs +1 -1
  47. package/dist/cjs/DatePickers/DateField.cjs +1 -1
  48. package/dist/cjs/DatePickers/DateFieldActionBar.cjs +1 -1
  49. package/dist/cjs/DatePickers/DateFieldLocalizationProvider.cjs +1 -1
  50. package/dist/cjs/DatePickers/DateFieldLocalizationProvider.cjs.map +1 -1
  51. package/dist/cjs/DatePickers/DatePicker.cjs +3 -4
  52. package/dist/cjs/DatePickers/DatePicker.cjs.map +1 -1
  53. package/dist/cjs/DatePickers/TimeZonePicker.cjs +1 -1
  54. package/dist/cjs/DatePickers/useOdysseyDateFields.cjs +10 -28
  55. package/dist/cjs/DatePickers/useOdysseyDateFields.cjs.map +1 -1
  56. package/dist/cjs/Dialog.cjs +1 -1
  57. package/dist/cjs/Drawer.cjs +19 -6
  58. package/dist/cjs/Drawer.cjs.map +1 -1
  59. package/dist/cjs/EmptyState.cjs +1 -1
  60. package/dist/cjs/ErrorMessageList.cjs +1 -1
  61. package/dist/cjs/Field.cjs +1 -1
  62. package/dist/cjs/FieldError.cjs +1 -1
  63. package/dist/cjs/FieldHint.cjs +1 -1
  64. package/dist/cjs/FieldLabel.cjs +1 -1
  65. package/dist/cjs/Fields/Checkbox.cjs +1 -1
  66. package/dist/cjs/Fields/CheckboxGroup.cjs +1 -1
  67. package/dist/cjs/Fields/Radio.cjs +1 -1
  68. package/dist/cjs/Fields/RadioGroup.cjs +1 -1
  69. package/dist/cjs/Fieldset.cjs +1 -1
  70. package/dist/cjs/FileUploader/FileUploadIllustration.cjs +1 -1
  71. package/dist/cjs/FileUploader/FileUploadPreview.cjs +1 -1
  72. package/dist/cjs/FileUploader/FileUploader.cjs +1 -1
  73. package/dist/cjs/Form.cjs +1 -1
  74. package/dist/cjs/FullScreenOverlay.cjs +1 -1
  75. package/dist/cjs/FullScreenOverlayContext.cjs +1 -1
  76. package/dist/cjs/HintLink.cjs +1 -1
  77. package/dist/cjs/IconWithTooltip.cjs +1 -1
  78. package/dist/cjs/Link.cjs +1 -1
  79. package/dist/cjs/MuiPropsChild.cjs +1 -1
  80. package/dist/cjs/NativeSelect.cjs +1 -1
  81. package/dist/cjs/OdysseyCacheProvider.cjs +1 -1
  82. package/dist/cjs/OdysseyProvider.cjs +1 -1
  83. package/dist/cjs/OdysseyThemeProvider.cjs +1 -1
  84. package/dist/cjs/OdysseyThemeProviderPropsContext.cjs +1 -1
  85. package/dist/cjs/OdysseyThemeProviderPropsContext.cjs.map +1 -1
  86. package/dist/cjs/Pagination/Pagination.cjs +1 -1
  87. package/dist/cjs/PasswordField.cjs +1 -1
  88. package/dist/cjs/ScreenReaderText.cjs +1 -1
  89. package/dist/cjs/SearchField.cjs +1 -1
  90. package/dist/cjs/Select.cjs +1 -1
  91. package/dist/cjs/Stack.cjs +1 -1
  92. package/dist/cjs/Status.cjs +1 -1
  93. package/dist/cjs/Surface.cjs +1 -1
  94. package/dist/cjs/Switch.cjs +2 -2
  95. package/dist/cjs/Tabs.cjs +1 -1
  96. package/dist/cjs/Tag.cjs +1 -1
  97. package/dist/cjs/TagList.cjs +1 -1
  98. package/dist/cjs/TextField.cjs +1 -1
  99. package/dist/cjs/Toast.cjs +1 -1
  100. package/dist/cjs/ToastStack.cjs +1 -1
  101. package/dist/cjs/Tooltip.cjs +1 -1
  102. package/dist/cjs/Typography.cjs +40 -13
  103. package/dist/cjs/Typography.cjs.map +1 -1
  104. package/dist/cjs/icons.generated/Add.cjs +1 -1
  105. package/dist/cjs/icons.generated/AddCircle.cjs +1 -1
  106. package/dist/cjs/icons.generated/Apps.cjs +1 -1
  107. package/dist/cjs/icons.generated/AppsSelected.cjs +1 -1
  108. package/dist/cjs/icons.generated/ArrowBottom.cjs +1 -1
  109. package/dist/cjs/icons.generated/ArrowDown.cjs +1 -1
  110. package/dist/cjs/icons.generated/ArrowLeft.cjs +1 -1
  111. package/dist/cjs/icons.generated/ArrowLowerLeft.cjs +1 -1
  112. package/dist/cjs/icons.generated/ArrowLowerRight.cjs +1 -1
  113. package/dist/cjs/icons.generated/ArrowRight.cjs +1 -1
  114. package/dist/cjs/icons.generated/ArrowTop.cjs +1 -1
  115. package/dist/cjs/icons.generated/ArrowUnsorted.cjs +1 -1
  116. package/dist/cjs/icons.generated/ArrowUp.cjs +1 -1
  117. package/dist/cjs/icons.generated/ArrowUpperLeft.cjs +1 -1
  118. package/dist/cjs/icons.generated/ArrowUpperRight.cjs +1 -1
  119. package/dist/cjs/icons.generated/Bug.cjs +1 -1
  120. package/dist/cjs/icons.generated/Calendar.cjs +1 -1
  121. package/dist/cjs/icons.generated/Call.cjs +1 -1
  122. package/dist/cjs/icons.generated/Chat.cjs +1 -1
  123. package/dist/cjs/icons.generated/Check.cjs +1 -1
  124. package/dist/cjs/icons.generated/CheckCircleFilled.cjs +1 -1
  125. package/dist/cjs/icons.generated/ChevronDown.cjs +1 -1
  126. package/dist/cjs/icons.generated/ChevronLeft.cjs +1 -1
  127. package/dist/cjs/icons.generated/ChevronRight.cjs +1 -1
  128. package/dist/cjs/icons.generated/ChevronUp.cjs +1 -1
  129. package/dist/cjs/icons.generated/Clock.cjs +1 -1
  130. package/dist/cjs/icons.generated/Close.cjs +1 -1
  131. package/dist/cjs/icons.generated/CloseCircleFilled.cjs +1 -1
  132. package/dist/cjs/icons.generated/CollapseLeft.cjs +1 -1
  133. package/dist/cjs/icons.generated/CollapseRight.cjs +1 -1
  134. package/dist/cjs/icons.generated/Copy.cjs +1 -1
  135. package/dist/cjs/icons.generated/Customizations.cjs +1 -1
  136. package/dist/cjs/icons.generated/CustomizationsSelected.cjs +1 -1
  137. package/dist/cjs/icons.generated/DangerDiamond.cjs +1 -1
  138. package/dist/cjs/icons.generated/DangerDiamondFilled.cjs +1 -1
  139. package/dist/cjs/icons.generated/Delete.cjs +1 -1
  140. package/dist/cjs/icons.generated/Deny.cjs +1 -1
  141. package/dist/cjs/icons.generated/Devices.cjs +1 -1
  142. package/dist/cjs/icons.generated/Directory.cjs +1 -1
  143. package/dist/cjs/icons.generated/DirectorySelected.cjs +1 -1
  144. package/dist/cjs/icons.generated/Documentation.cjs +1 -1
  145. package/dist/cjs/icons.generated/Download.cjs +1 -1
  146. package/dist/cjs/icons.generated/DragIndicator.cjs +1 -1
  147. package/dist/cjs/icons.generated/Edit.cjs +1 -1
  148. package/dist/cjs/icons.generated/ExpandLeft.cjs +1 -1
  149. package/dist/cjs/icons.generated/ExpandRight.cjs +1 -1
  150. package/dist/cjs/icons.generated/ExternalLink.cjs +1 -1
  151. package/dist/cjs/icons.generated/Filter.cjs +1 -1
  152. package/dist/cjs/icons.generated/Folder.cjs +1 -1
  153. package/dist/cjs/icons.generated/Globe.cjs +1 -1
  154. package/dist/cjs/icons.generated/Grid.cjs +1 -1
  155. package/dist/cjs/icons.generated/Group.cjs +1 -1
  156. package/dist/cjs/icons.generated/Happy.cjs +1 -1
  157. package/dist/cjs/icons.generated/Hide.cjs +1 -1
  158. package/dist/cjs/icons.generated/Home.cjs +1 -1
  159. package/dist/cjs/icons.generated/HomeSelected.cjs +1 -1
  160. package/dist/cjs/icons.generated/IdentityGovernance.cjs +1 -1
  161. package/dist/cjs/icons.generated/IdentityGovernanceSelected.cjs +1 -1
  162. package/dist/cjs/icons.generated/IdentityGovernanceSelected.cjs.map +1 -1
  163. package/dist/cjs/icons.generated/InformationCircle.cjs +1 -1
  164. package/dist/cjs/icons.generated/InformationCircleFilled.cjs +1 -1
  165. package/dist/cjs/icons.generated/Link.cjs +1 -1
  166. package/dist/cjs/icons.generated/List.cjs +1 -1
  167. package/dist/cjs/icons.generated/Lock.cjs +1 -1
  168. package/dist/cjs/icons.generated/Menu.cjs +1 -1
  169. package/dist/cjs/icons.generated/More.cjs +1 -1
  170. package/dist/cjs/icons.generated/Neutral.cjs +1 -1
  171. package/dist/cjs/icons.generated/Notification.cjs +1 -1
  172. package/dist/cjs/icons.generated/Pause.cjs +1 -1
  173. package/dist/cjs/icons.generated/QuestionCircle.cjs +1 -1
  174. package/dist/cjs/icons.generated/QuestionCircleFilled.cjs +1 -1
  175. package/dist/cjs/icons.generated/Refresh.cjs +1 -1
  176. package/dist/cjs/icons.generated/Reports.cjs +1 -1
  177. package/dist/cjs/icons.generated/ReportsSelected.cjs +1 -1
  178. package/dist/cjs/icons.generated/Reset.cjs +1 -1
  179. package/dist/cjs/icons.generated/Resume.cjs +1 -1
  180. package/dist/cjs/icons.generated/Sad.cjs +1 -1
  181. package/dist/cjs/icons.generated/Same.cjs +1 -1
  182. package/dist/cjs/icons.generated/Search.cjs +1 -1
  183. package/dist/cjs/icons.generated/Security.cjs +1 -1
  184. package/dist/cjs/icons.generated/SecuritySelected.cjs +1 -1
  185. package/dist/cjs/icons.generated/Send.cjs +1 -1
  186. package/dist/cjs/icons.generated/Server.cjs +1 -1
  187. package/dist/cjs/icons.generated/Settings.cjs +1 -1
  188. package/dist/cjs/icons.generated/SettingsSelected.cjs +1 -1
  189. package/dist/cjs/icons.generated/Show.cjs +1 -1
  190. package/dist/cjs/icons.generated/Sparkle.cjs +1 -1
  191. package/dist/cjs/icons.generated/Subtract.cjs +1 -1
  192. package/dist/cjs/icons.generated/Sync.cjs +1 -1
  193. package/dist/cjs/icons.generated/ThumbsDown.cjs +1 -1
  194. package/dist/cjs/icons.generated/ThumbsUp.cjs +1 -1
  195. package/dist/cjs/icons.generated/Unlock.cjs +1 -1
  196. package/dist/cjs/icons.generated/Upload.cjs +1 -1
  197. package/dist/cjs/icons.generated/User.cjs +1 -1
  198. package/dist/cjs/icons.generated/Video.cjs +1 -1
  199. package/dist/cjs/icons.generated/Warning.cjs +1 -1
  200. package/dist/cjs/icons.generated/WarningFilled.cjs +1 -1
  201. package/dist/cjs/icons.generated/Workflows.cjs +1 -1
  202. package/dist/cjs/icons.generated/WorkflowsSelected.cjs +1 -1
  203. package/dist/cjs/index.cjs +13 -18
  204. package/dist/cjs/index.cjs.map +1 -1
  205. package/dist/cjs/labs/AppTile.cjs +1 -1
  206. package/dist/cjs/labs/DataFilters.cjs +2 -2
  207. package/dist/cjs/labs/DataTable.cjs +1 -1
  208. package/dist/cjs/labs/DataTablePagination.cjs +1 -1
  209. package/dist/cjs/labs/DataView/BulkActionsMenu.cjs +1 -1
  210. package/dist/cjs/labs/DataView/CardLayoutContent.cjs +2 -2
  211. package/dist/cjs/labs/DataView/DataCard.cjs +1 -1
  212. package/dist/cjs/labs/DataView/DataTable.cjs +1 -1
  213. package/dist/cjs/labs/DataView/DataView.cjs +1 -1
  214. package/dist/cjs/labs/DataView/DetailPanel.cjs +1 -1
  215. package/dist/cjs/labs/DataView/LayoutSwitcher.cjs +1 -1
  216. package/dist/cjs/labs/DataView/RowActions.cjs +1 -1
  217. package/dist/cjs/labs/DataView/TableLayoutContent.cjs +1 -1
  218. package/dist/cjs/labs/DataView/TableSettings.cjs +1 -1
  219. package/dist/cjs/labs/DatePickers/DateTimeField.cjs +1 -1
  220. package/dist/cjs/labs/DatePickers/DateTimePicker.cjs +3 -4
  221. package/dist/cjs/labs/DatePickers/DateTimePicker.cjs.map +1 -1
  222. package/dist/cjs/labs/OdysseyPickers/ComposablePicker.cjs +1 -1
  223. package/dist/cjs/labs/OdysseyPickers/Picker.cjs +1 -1
  224. package/dist/cjs/labs/OdysseyPickers/PickerVirtualizationListBox.cjs +1 -1
  225. package/dist/cjs/labs/OdysseyPickers/PickerWithOptionAdornment.cjs +1 -1
  226. package/dist/cjs/labs/OdysseyPickers/SearchDropdown.cjs +1 -1
  227. package/dist/cjs/labs/PageTemplate/DocumentationLink.cjs +1 -1
  228. package/dist/cjs/labs/PageTemplate/Layout.cjs +1 -1
  229. package/dist/cjs/labs/PageTemplate/PageTemplate.cjs +1 -1
  230. package/dist/cjs/labs/PaginatedTable.cjs +1 -1
  231. package/dist/cjs/labs/StaticTable.cjs +1 -1
  232. package/dist/cjs/labs/UserProfile.cjs +1 -1
  233. package/dist/cjs/labs/UserProfileMenuButton.cjs +1 -1
  234. package/dist/cjs/logos.generated/Duo.cjs +1 -1
  235. package/dist/cjs/logos.generated/GoogleAuth.cjs +1 -1
  236. package/dist/cjs/logos.generated/OktaVerify.cjs +1 -1
  237. package/dist/cjs/logos.generated/Persona.cjs +1 -1
  238. package/dist/cjs/logos.generated/SymantecVip.cjs +1 -1
  239. package/dist/cjs/logos.generated/Yubikey.cjs +1 -1
  240. package/dist/cjs/properties/ts/odyssey-react-mui.cjs +4 -0
  241. package/dist/cjs/properties/ts/odyssey-react-mui.cjs.map +1 -1
  242. package/dist/cjs/properties/ts/odyssey-react-mui_ht.cjs +1 -1
  243. package/dist/cjs/properties/ts/odyssey-react-mui_ht.cjs.map +1 -1
  244. package/dist/cjs/properties/ts/odyssey-react-mui_ok_PL.cjs +4 -0
  245. package/dist/cjs/properties/ts/odyssey-react-mui_ok_PL.cjs.map +1 -1
  246. package/dist/cjs/properties/ts/odyssey-react-mui_ok_SK.cjs +4 -0
  247. package/dist/cjs/properties/ts/odyssey-react-mui_ok_SK.cjs.map +1 -1
  248. package/dist/cjs/properties/ts/odyssey-react-mui_zh_TW.cjs +1 -1
  249. package/dist/cjs/properties/ts/odyssey-react-mui_zh_TW.cjs.map +1 -1
  250. package/dist/cjs/theme/components/Dialog.cjs +1 -1
  251. package/dist/cjs/theme/components/Dialog.cjs.map +1 -1
  252. package/dist/cjs/theme/components/Drawer.cjs +5 -1
  253. package/dist/cjs/theme/components/Drawer.cjs.map +1 -1
  254. package/dist/cjs/theme/useMediaQuery.cjs +9 -6
  255. package/dist/cjs/theme/useMediaQuery.cjs.map +1 -1
  256. package/dist/cjs/ui-shell/AppSwitcher/AppSwitcher.cjs +1 -1
  257. package/dist/cjs/ui-shell/InnerAppContainer.cjs +1 -1
  258. package/dist/cjs/ui-shell/NarrowUiShellContent.cjs +1 -1
  259. package/dist/cjs/ui-shell/SideNav/NavAccordion.cjs +1 -1
  260. package/dist/cjs/ui-shell/SideNav/SideNav.cjs +1 -1
  261. package/dist/cjs/ui-shell/SideNav/SideNavFooterContent.cjs +1 -1
  262. package/dist/cjs/ui-shell/SideNav/SideNavHeader.cjs +1 -1
  263. package/dist/cjs/ui-shell/SideNav/SideNavItemContent.cjs +2 -2
  264. package/dist/cjs/ui-shell/SideNav/SideNavItemLinkContent.cjs +1 -1
  265. package/dist/cjs/ui-shell/SideNav/SideNavSortableList.cjs +1 -1
  266. package/dist/cjs/ui-shell/SideNav/SideNavToggleButton.cjs +2 -2
  267. package/dist/cjs/ui-shell/SkipToContent.cjs +1 -1
  268. package/dist/cjs/ui-shell/TopNav/HamburgerMenuIcon.cjs +1 -1
  269. package/dist/cjs/ui-shell/TopNav/TopNav.cjs +1 -1
  270. package/dist/cjs/ui-shell/TopNav/TopNavLinksList.cjs +1 -1
  271. package/dist/cjs/ui-shell/TopNav/TopNavListItem.cjs +1 -1
  272. package/dist/cjs/ui-shell/UiShell.cjs +1 -1
  273. package/dist/cjs/ui-shell/UiShellLogo.cjs +1 -1
  274. package/dist/cjs/ui-shell/WideUiShellContent.cjs +1 -1
  275. package/dist/cjs/useStableCallback.cjs +23 -0
  276. package/dist/cjs/useStableCallback.cjs.map +1 -0
  277. package/dist/cjs/web-component/odysseyWebComponentVersion.generated.cjs +1 -1
  278. package/dist/cjs/web-component/odysseyWebComponentVersion.generated.cjs.map +1 -1
  279. package/dist/esm/Accordion.js +1 -1
  280. package/dist/esm/Autocomplete.js +1 -1
  281. package/dist/esm/Badge.js +1 -1
  282. package/dist/esm/Banner.js +1 -1
  283. package/dist/esm/Banner.js.map +1 -1
  284. package/dist/esm/Box.js +1 -1
  285. package/dist/esm/Breadcrumbs.js +1 -1
  286. package/dist/esm/Buttons/BaseButton.js +1 -1
  287. package/dist/esm/Buttons/BaseMenuButton.js +1 -1
  288. package/dist/esm/Buttons/Button.js +1 -1
  289. package/dist/esm/Buttons/MenuButton.js +1 -1
  290. package/dist/esm/Buttons/MenuItem.js +1 -1
  291. package/dist/esm/Callout.js +1 -1
  292. package/dist/esm/Callout.js.map +1 -1
  293. package/dist/esm/Card.js +1 -1
  294. package/dist/esm/Charts/ChartError.js +70 -0
  295. package/dist/esm/Charts/ChartError.js.map +1 -0
  296. package/dist/esm/Charts/ChartFrame.js +108 -0
  297. package/dist/esm/Charts/ChartFrame.js.map +1 -0
  298. package/dist/esm/Charts/ChartPopoverContent.js +49 -0
  299. package/dist/esm/Charts/ChartPopoverContent.js.map +1 -0
  300. package/dist/esm/Charts/LineChart.js +263 -0
  301. package/dist/esm/Charts/LineChart.js.map +1 -0
  302. package/dist/esm/Charts/chartTokens.js +109 -0
  303. package/dist/esm/Charts/chartTokens.js.map +1 -0
  304. package/dist/esm/Charts/chartTypes.js +2 -0
  305. package/dist/esm/Charts/chartTypes.js.map +1 -0
  306. package/dist/esm/Charts/formatChartValue.js +33 -0
  307. package/dist/esm/Charts/formatChartValue.js.map +1 -0
  308. package/dist/esm/Charts/getChartSeriesPointData.js +45 -0
  309. package/dist/esm/Charts/getChartSeriesPointData.js.map +1 -0
  310. package/dist/esm/Charts/hasDuplicateSeries.js +14 -0
  311. package/dist/esm/Charts/hasDuplicateSeries.js.map +1 -0
  312. package/dist/esm/Charts/index.js +14 -0
  313. package/dist/esm/Charts/index.js.map +1 -0
  314. package/dist/esm/Charts/resolveChartLocale.js +21 -0
  315. package/dist/esm/Charts/resolveChartLocale.js.map +1 -0
  316. package/dist/esm/Charts/useChartValueFormatter.js +30 -0
  317. package/dist/esm/Charts/useChartValueFormatter.js.map +1 -0
  318. package/dist/esm/Charts/useStableValue.js +22 -0
  319. package/dist/esm/Charts/useStableValue.js.map +1 -0
  320. package/dist/esm/CircularProgress.js +1 -1
  321. package/dist/esm/ConditionalWrapper.js +1 -1
  322. package/dist/esm/DataTable/DataTable.js +1 -1
  323. package/dist/esm/DataTable/DataTableRowActions.js +1 -1
  324. package/dist/esm/DataTable/DataTableSettings.js +1 -1
  325. package/dist/esm/DatePickers/DateField.js +1 -1
  326. package/dist/esm/DatePickers/DateFieldActionBar.js +1 -1
  327. package/dist/esm/DatePickers/DateFieldLocalizationProvider.js +1 -1
  328. package/dist/esm/DatePickers/DateFieldLocalizationProvider.js.map +1 -1
  329. package/dist/esm/DatePickers/DatePicker.js +3 -4
  330. package/dist/esm/DatePickers/DatePicker.js.map +1 -1
  331. package/dist/esm/DatePickers/TimeZonePicker.js +1 -1
  332. package/dist/esm/DatePickers/useOdysseyDateFields.js +10 -28
  333. package/dist/esm/DatePickers/useOdysseyDateFields.js.map +1 -1
  334. package/dist/esm/Dialog.js +1 -1
  335. package/dist/esm/Drawer.js +15 -2
  336. package/dist/esm/Drawer.js.map +1 -1
  337. package/dist/esm/EmptyState.js +1 -1
  338. package/dist/esm/ErrorMessageList.js +1 -1
  339. package/dist/esm/Field.js +1 -1
  340. package/dist/esm/FieldError.js +1 -1
  341. package/dist/esm/FieldHint.js +1 -1
  342. package/dist/esm/FieldLabel.js +1 -1
  343. package/dist/esm/Fields/Checkbox.js +1 -1
  344. package/dist/esm/Fields/CheckboxGroup.js +1 -1
  345. package/dist/esm/Fields/Radio.js +1 -1
  346. package/dist/esm/Fields/RadioGroup.js +1 -1
  347. package/dist/esm/Fieldset.js +1 -1
  348. package/dist/esm/FileUploader/FileUploadIllustration.js +1 -1
  349. package/dist/esm/FileUploader/FileUploadPreview.js +1 -1
  350. package/dist/esm/FileUploader/FileUploader.js +1 -1
  351. package/dist/esm/Form.js +1 -1
  352. package/dist/esm/FullScreenOverlay.js +1 -1
  353. package/dist/esm/FullScreenOverlayContext.js +1 -1
  354. package/dist/esm/HintLink.js +1 -1
  355. package/dist/esm/IconWithTooltip.js +1 -1
  356. package/dist/esm/Link.js +1 -1
  357. package/dist/esm/MuiPropsChild.js +1 -1
  358. package/dist/esm/NativeSelect.js +1 -1
  359. package/dist/esm/OdysseyCacheProvider.js +1 -1
  360. package/dist/esm/OdysseyProvider.js +1 -1
  361. package/dist/esm/OdysseyThemeProvider.js +1 -1
  362. package/dist/esm/OdysseyThemeProviderPropsContext.js +1 -1
  363. package/dist/esm/OdysseyThemeProviderPropsContext.js.map +1 -1
  364. package/dist/esm/Pagination/Pagination.js +1 -1
  365. package/dist/esm/PasswordField.js +1 -1
  366. package/dist/esm/ScreenReaderText.js +1 -1
  367. package/dist/esm/SearchField.js +1 -1
  368. package/dist/esm/Select.js +1 -1
  369. package/dist/esm/Stack.js +1 -1
  370. package/dist/esm/Status.js +1 -1
  371. package/dist/esm/Surface.js +1 -1
  372. package/dist/esm/Switch.js +2 -2
  373. package/dist/esm/Tabs.js +1 -1
  374. package/dist/esm/Tag.js +1 -1
  375. package/dist/esm/TagList.js +1 -1
  376. package/dist/esm/TextField.js +1 -1
  377. package/dist/esm/Toast.js +1 -1
  378. package/dist/esm/ToastStack.js +1 -1
  379. package/dist/esm/Tooltip.js +1 -1
  380. package/dist/esm/Typography.js +39 -12
  381. package/dist/esm/Typography.js.map +1 -1
  382. package/dist/esm/icons.generated/Add.js +1 -1
  383. package/dist/esm/icons.generated/AddCircle.js +1 -1
  384. package/dist/esm/icons.generated/Apps.js +1 -1
  385. package/dist/esm/icons.generated/AppsSelected.js +1 -1
  386. package/dist/esm/icons.generated/ArrowBottom.js +1 -1
  387. package/dist/esm/icons.generated/ArrowDown.js +1 -1
  388. package/dist/esm/icons.generated/ArrowLeft.js +1 -1
  389. package/dist/esm/icons.generated/ArrowLowerLeft.js +1 -1
  390. package/dist/esm/icons.generated/ArrowLowerRight.js +1 -1
  391. package/dist/esm/icons.generated/ArrowRight.js +1 -1
  392. package/dist/esm/icons.generated/ArrowTop.js +1 -1
  393. package/dist/esm/icons.generated/ArrowUnsorted.js +1 -1
  394. package/dist/esm/icons.generated/ArrowUp.js +1 -1
  395. package/dist/esm/icons.generated/ArrowUpperLeft.js +1 -1
  396. package/dist/esm/icons.generated/ArrowUpperRight.js +1 -1
  397. package/dist/esm/icons.generated/Bug.js +1 -1
  398. package/dist/esm/icons.generated/Calendar.js +1 -1
  399. package/dist/esm/icons.generated/Call.js +1 -1
  400. package/dist/esm/icons.generated/Chat.js +1 -1
  401. package/dist/esm/icons.generated/Check.js +1 -1
  402. package/dist/esm/icons.generated/CheckCircleFilled.js +1 -1
  403. package/dist/esm/icons.generated/ChevronDown.js +1 -1
  404. package/dist/esm/icons.generated/ChevronLeft.js +1 -1
  405. package/dist/esm/icons.generated/ChevronRight.js +1 -1
  406. package/dist/esm/icons.generated/ChevronUp.js +1 -1
  407. package/dist/esm/icons.generated/Clock.js +1 -1
  408. package/dist/esm/icons.generated/Close.js +1 -1
  409. package/dist/esm/icons.generated/CloseCircleFilled.js +1 -1
  410. package/dist/esm/icons.generated/CollapseLeft.js +1 -1
  411. package/dist/esm/icons.generated/CollapseRight.js +1 -1
  412. package/dist/esm/icons.generated/Copy.js +1 -1
  413. package/dist/esm/icons.generated/Customizations.js +1 -1
  414. package/dist/esm/icons.generated/CustomizationsSelected.js +1 -1
  415. package/dist/esm/icons.generated/DangerDiamond.js +1 -1
  416. package/dist/esm/icons.generated/DangerDiamondFilled.js +1 -1
  417. package/dist/esm/icons.generated/Delete.js +1 -1
  418. package/dist/esm/icons.generated/Deny.js +1 -1
  419. package/dist/esm/icons.generated/Devices.js +1 -1
  420. package/dist/esm/icons.generated/Directory.js +1 -1
  421. package/dist/esm/icons.generated/DirectorySelected.js +1 -1
  422. package/dist/esm/icons.generated/Documentation.js +1 -1
  423. package/dist/esm/icons.generated/Download.js +1 -1
  424. package/dist/esm/icons.generated/DragIndicator.js +1 -1
  425. package/dist/esm/icons.generated/Edit.js +1 -1
  426. package/dist/esm/icons.generated/ExpandLeft.js +1 -1
  427. package/dist/esm/icons.generated/ExpandRight.js +1 -1
  428. package/dist/esm/icons.generated/ExternalLink.js +1 -1
  429. package/dist/esm/icons.generated/Filter.js +1 -1
  430. package/dist/esm/icons.generated/Folder.js +1 -1
  431. package/dist/esm/icons.generated/Globe.js +1 -1
  432. package/dist/esm/icons.generated/Grid.js +1 -1
  433. package/dist/esm/icons.generated/Group.js +1 -1
  434. package/dist/esm/icons.generated/Happy.js +1 -1
  435. package/dist/esm/icons.generated/Hide.js +1 -1
  436. package/dist/esm/icons.generated/Home.js +1 -1
  437. package/dist/esm/icons.generated/HomeSelected.js +1 -1
  438. package/dist/esm/icons.generated/IdentityGovernance.js +1 -1
  439. package/dist/esm/icons.generated/IdentityGovernanceSelected.js +1 -1
  440. package/dist/esm/icons.generated/IdentityGovernanceSelected.js.map +1 -1
  441. package/dist/esm/icons.generated/InformationCircle.js +1 -1
  442. package/dist/esm/icons.generated/InformationCircleFilled.js +1 -1
  443. package/dist/esm/icons.generated/Link.js +1 -1
  444. package/dist/esm/icons.generated/List.js +1 -1
  445. package/dist/esm/icons.generated/Lock.js +1 -1
  446. package/dist/esm/icons.generated/Menu.js +1 -1
  447. package/dist/esm/icons.generated/More.js +1 -1
  448. package/dist/esm/icons.generated/Neutral.js +1 -1
  449. package/dist/esm/icons.generated/Notification.js +1 -1
  450. package/dist/esm/icons.generated/Pause.js +1 -1
  451. package/dist/esm/icons.generated/QuestionCircle.js +1 -1
  452. package/dist/esm/icons.generated/QuestionCircleFilled.js +1 -1
  453. package/dist/esm/icons.generated/Refresh.js +1 -1
  454. package/dist/esm/icons.generated/Reports.js +1 -1
  455. package/dist/esm/icons.generated/ReportsSelected.js +1 -1
  456. package/dist/esm/icons.generated/Reset.js +1 -1
  457. package/dist/esm/icons.generated/Resume.js +1 -1
  458. package/dist/esm/icons.generated/Sad.js +1 -1
  459. package/dist/esm/icons.generated/Same.js +1 -1
  460. package/dist/esm/icons.generated/Search.js +1 -1
  461. package/dist/esm/icons.generated/Security.js +1 -1
  462. package/dist/esm/icons.generated/SecuritySelected.js +1 -1
  463. package/dist/esm/icons.generated/Send.js +1 -1
  464. package/dist/esm/icons.generated/Server.js +1 -1
  465. package/dist/esm/icons.generated/Settings.js +1 -1
  466. package/dist/esm/icons.generated/SettingsSelected.js +1 -1
  467. package/dist/esm/icons.generated/Show.js +1 -1
  468. package/dist/esm/icons.generated/Sparkle.js +1 -1
  469. package/dist/esm/icons.generated/Subtract.js +1 -1
  470. package/dist/esm/icons.generated/Sync.js +1 -1
  471. package/dist/esm/icons.generated/ThumbsDown.js +1 -1
  472. package/dist/esm/icons.generated/ThumbsUp.js +1 -1
  473. package/dist/esm/icons.generated/Unlock.js +1 -1
  474. package/dist/esm/icons.generated/Upload.js +1 -1
  475. package/dist/esm/icons.generated/User.js +1 -1
  476. package/dist/esm/icons.generated/Video.js +1 -1
  477. package/dist/esm/icons.generated/Warning.js +1 -1
  478. package/dist/esm/icons.generated/WarningFilled.js +1 -1
  479. package/dist/esm/icons.generated/Workflows.js +1 -1
  480. package/dist/esm/icons.generated/WorkflowsSelected.js +1 -1
  481. package/dist/esm/index.js +3 -2
  482. package/dist/esm/index.js.map +1 -1
  483. package/dist/esm/labs/AppTile.js +1 -1
  484. package/dist/esm/labs/DataFilters.js +2 -2
  485. package/dist/esm/labs/DataTable.js +1 -1
  486. package/dist/esm/labs/DataTablePagination.js +1 -1
  487. package/dist/esm/labs/DataView/BulkActionsMenu.js +1 -1
  488. package/dist/esm/labs/DataView/CardLayoutContent.js +2 -2
  489. package/dist/esm/labs/DataView/DataCard.js +1 -1
  490. package/dist/esm/labs/DataView/DataTable.js +1 -1
  491. package/dist/esm/labs/DataView/DataView.js +1 -1
  492. package/dist/esm/labs/DataView/DetailPanel.js +1 -1
  493. package/dist/esm/labs/DataView/LayoutSwitcher.js +1 -1
  494. package/dist/esm/labs/DataView/RowActions.js +1 -1
  495. package/dist/esm/labs/DataView/TableLayoutContent.js +1 -1
  496. package/dist/esm/labs/DataView/TableSettings.js +1 -1
  497. package/dist/esm/labs/DatePickers/DateTimeField.js +1 -1
  498. package/dist/esm/labs/DatePickers/DateTimePicker.js +3 -4
  499. package/dist/esm/labs/DatePickers/DateTimePicker.js.map +1 -1
  500. package/dist/esm/labs/OdysseyPickers/ComposablePicker.js +1 -1
  501. package/dist/esm/labs/OdysseyPickers/Picker.js +1 -1
  502. package/dist/esm/labs/OdysseyPickers/PickerVirtualizationListBox.js +1 -1
  503. package/dist/esm/labs/OdysseyPickers/PickerWithOptionAdornment.js +1 -1
  504. package/dist/esm/labs/OdysseyPickers/SearchDropdown.js +1 -1
  505. package/dist/esm/labs/PageTemplate/DocumentationLink.js +1 -1
  506. package/dist/esm/labs/PageTemplate/Layout.js +1 -1
  507. package/dist/esm/labs/PageTemplate/PageTemplate.js +1 -1
  508. package/dist/esm/labs/PaginatedTable.js +1 -1
  509. package/dist/esm/labs/StaticTable.js +1 -1
  510. package/dist/esm/labs/UserProfile.js +1 -1
  511. package/dist/esm/labs/UserProfileMenuButton.js +1 -1
  512. package/dist/esm/logos.generated/Duo.js +1 -1
  513. package/dist/esm/logos.generated/GoogleAuth.js +1 -1
  514. package/dist/esm/logos.generated/OktaVerify.js +1 -1
  515. package/dist/esm/logos.generated/Persona.js +1 -1
  516. package/dist/esm/logos.generated/SymantecVip.js +1 -1
  517. package/dist/esm/logos.generated/Yubikey.js +1 -1
  518. package/dist/esm/properties/ts/odyssey-react-mui.js +4 -0
  519. package/dist/esm/properties/ts/odyssey-react-mui.js.map +1 -1
  520. package/dist/esm/properties/ts/odyssey-react-mui_ht.js +1 -1
  521. package/dist/esm/properties/ts/odyssey-react-mui_ht.js.map +1 -1
  522. package/dist/esm/properties/ts/odyssey-react-mui_ok_PL.js +4 -0
  523. package/dist/esm/properties/ts/odyssey-react-mui_ok_PL.js.map +1 -1
  524. package/dist/esm/properties/ts/odyssey-react-mui_ok_SK.js +4 -0
  525. package/dist/esm/properties/ts/odyssey-react-mui_ok_SK.js.map +1 -1
  526. package/dist/esm/properties/ts/odyssey-react-mui_zh_TW.js +1 -1
  527. package/dist/esm/properties/ts/odyssey-react-mui_zh_TW.js.map +1 -1
  528. package/dist/esm/theme/components/Dialog.js +2 -2
  529. package/dist/esm/theme/components/Dialog.js.map +1 -1
  530. package/dist/esm/theme/components/Drawer.js +5 -1
  531. package/dist/esm/theme/components/Drawer.js.map +1 -1
  532. package/dist/esm/theme/useMediaQuery.js +7 -5
  533. package/dist/esm/theme/useMediaQuery.js.map +1 -1
  534. package/dist/esm/ui-shell/AppSwitcher/AppSwitcher.js +1 -1
  535. package/dist/esm/ui-shell/InnerAppContainer.js +1 -1
  536. package/dist/esm/ui-shell/NarrowUiShellContent.js +1 -1
  537. package/dist/esm/ui-shell/SideNav/NavAccordion.js +1 -1
  538. package/dist/esm/ui-shell/SideNav/SideNav.js +1 -1
  539. package/dist/esm/ui-shell/SideNav/SideNavFooterContent.js +1 -1
  540. package/dist/esm/ui-shell/SideNav/SideNavHeader.js +1 -1
  541. package/dist/esm/ui-shell/SideNav/SideNavItemContent.js +2 -2
  542. package/dist/esm/ui-shell/SideNav/SideNavItemLinkContent.js +1 -1
  543. package/dist/esm/ui-shell/SideNav/SideNavSortableList.js +1 -1
  544. package/dist/esm/ui-shell/SideNav/SideNavToggleButton.js +2 -2
  545. package/dist/esm/ui-shell/SkipToContent.js +1 -1
  546. package/dist/esm/ui-shell/TopNav/HamburgerMenuIcon.js +1 -1
  547. package/dist/esm/ui-shell/TopNav/TopNav.js +1 -1
  548. package/dist/esm/ui-shell/TopNav/TopNavLinksList.js +1 -1
  549. package/dist/esm/ui-shell/TopNav/TopNavListItem.js +1 -1
  550. package/dist/esm/ui-shell/UiShell.js +1 -1
  551. package/dist/esm/ui-shell/UiShellLogo.js +1 -1
  552. package/dist/esm/ui-shell/WideUiShellContent.js +1 -1
  553. package/dist/esm/useStableCallback.js +16 -0
  554. package/dist/esm/useStableCallback.js.map +1 -0
  555. package/dist/esm/web-component/odysseyWebComponentVersion.generated.js +1 -1
  556. package/dist/esm/web-component/odysseyWebComponentVersion.generated.js.map +1 -1
  557. package/dist/tsconfig.production.tsbuildinfo +1 -1
  558. package/dist/types/Banner.d.ts.map +1 -1
  559. package/dist/types/Callout.d.ts.map +1 -1
  560. package/dist/types/Charts/ChartError.d.ts +23 -0
  561. package/dist/types/Charts/ChartError.d.ts.map +1 -0
  562. package/dist/types/Charts/ChartFrame.d.ts +54 -0
  563. package/dist/types/Charts/ChartFrame.d.ts.map +1 -0
  564. package/dist/types/Charts/ChartPopoverContent.d.ts +97 -0
  565. package/dist/types/Charts/ChartPopoverContent.d.ts.map +1 -0
  566. package/dist/types/Charts/LineChart.d.ts +26 -0
  567. package/dist/types/Charts/LineChart.d.ts.map +1 -0
  568. package/dist/types/Charts/chartTokens.d.ts +362 -0
  569. package/dist/types/Charts/chartTokens.d.ts.map +1 -0
  570. package/dist/types/Charts/chartTypes.d.ts +142 -0
  571. package/dist/types/Charts/chartTypes.d.ts.map +1 -0
  572. package/dist/types/Charts/formatChartValue.d.ts +93 -0
  573. package/dist/types/Charts/formatChartValue.d.ts.map +1 -0
  574. package/dist/types/Charts/getChartSeriesPointData.d.ts +49 -0
  575. package/dist/types/Charts/getChartSeriesPointData.d.ts.map +1 -0
  576. package/dist/types/Charts/hasDuplicateSeries.d.ts +24 -0
  577. package/dist/types/Charts/hasDuplicateSeries.d.ts.map +1 -0
  578. package/dist/types/Charts/index.d.ts +15 -0
  579. package/dist/types/Charts/index.d.ts.map +1 -0
  580. package/dist/types/Charts/resolveChartLocale.d.ts +28 -0
  581. package/dist/types/Charts/resolveChartLocale.d.ts.map +1 -0
  582. package/dist/types/Charts/useChartValueFormatter.d.ts +34 -0
  583. package/dist/types/Charts/useChartValueFormatter.d.ts.map +1 -0
  584. package/dist/types/Charts/useStableValue.d.ts +29 -0
  585. package/dist/types/Charts/useStableValue.d.ts.map +1 -0
  586. package/dist/types/DatePickers/DateFieldLocalizationProvider.d.ts +1 -1
  587. package/dist/types/DatePickers/DateFieldLocalizationProvider.d.ts.map +1 -1
  588. package/dist/types/DatePickers/DatePicker.d.ts.map +1 -1
  589. package/dist/types/DatePickers/useOdysseyDateFields.d.ts +27 -15
  590. package/dist/types/DatePickers/useOdysseyDateFields.d.ts.map +1 -1
  591. package/dist/types/Drawer.d.ts +4 -0
  592. package/dist/types/Drawer.d.ts.map +1 -1
  593. package/dist/types/OdysseyThemeProviderPropsContext.d.ts +1 -1
  594. package/dist/types/OdysseyThemeProviderPropsContext.d.ts.map +1 -1
  595. package/dist/types/Typography.d.ts +26 -12
  596. package/dist/types/Typography.d.ts.map +1 -1
  597. package/dist/types/i18n.generated/i18n.d.ts +8 -0
  598. package/dist/types/i18n.generated/i18n.d.ts.map +1 -1
  599. package/dist/types/i18n.generated/i18n.resources.d.ts +14 -2
  600. package/dist/types/i18n.generated/i18n.resources.d.ts.map +1 -1
  601. package/dist/types/icons.generated/IdentityGovernanceSelected.d.ts +1 -1
  602. package/dist/types/icons.generated/IdentityGovernanceSelected.d.ts.map +1 -1
  603. package/dist/types/index.d.ts +3 -2
  604. package/dist/types/index.d.ts.map +1 -1
  605. package/dist/types/labs/DatePickers/DateTimePicker.d.ts.map +1 -1
  606. package/dist/types/properties/ts/odyssey-react-mui.d.ts +4 -0
  607. package/dist/types/properties/ts/odyssey-react-mui.d.ts.map +1 -1
  608. package/dist/types/properties/ts/odyssey-react-mui_ht.d.ts +1 -1
  609. package/dist/types/properties/ts/odyssey-react-mui_ok_PL.d.ts +4 -0
  610. package/dist/types/properties/ts/odyssey-react-mui_ok_PL.d.ts.map +1 -1
  611. package/dist/types/properties/ts/odyssey-react-mui_ok_SK.d.ts +4 -0
  612. package/dist/types/properties/ts/odyssey-react-mui_ok_SK.d.ts.map +1 -1
  613. package/dist/types/properties/ts/odyssey-react-mui_zh_TW.d.ts +1 -1
  614. package/dist/types/properties/ts/odyssey-react-mui_zh_TW.d.ts.map +1 -1
  615. package/dist/types/theme/components/Drawer.d.ts.map +1 -1
  616. package/dist/types/theme/useMediaQuery.d.ts +29 -15
  617. package/dist/types/theme/useMediaQuery.d.ts.map +1 -1
  618. package/dist/types/useStableCallback.d.ts +45 -0
  619. package/dist/types/useStableCallback.d.ts.map +1 -0
  620. package/dist/types/web-component/odysseyWebComponentVersion.generated.d.ts +1 -1
  621. package/package.json +19 -7
@@ -1 +1 @@
1
- {"version":3,"file":"useMediaQuery.cjs","names":["_react","require","_shim","useMediaQuery","mediaQuery","normalizedMediaQuery","replace","supportsMatchMedia","window","matchMedia","mediaQueryList","useMemo","subscribe","useCallback","notifyReactOfChange","addEventListener","removeEventListener","getSnapshot","matches","getServerSnapshot","useSyncExternalStore","exports","ABSOLUTE_MINIMUM_WIDTH","ABSOLUTE_MINIMUM_HEIGHT","COMPACT_WIDTH_ACTIVATION_BUFFER","COMPACT_HEIGHT_ACTIVATION_BUFFER","COMPACT_MAX_WIDTH","COMPACT_MAX_HEIGHT","COMPACT_MAX_WIDTH_CONDITION","COMPACT_MAX_HEIGHT_CONDITION","COMPACT_MEDIA_QUERY","useCompactViewportMatches","isWithinCompactWidth","isWithinCompactHeight","isWithinCompactWidthOrHeight"],"sources":["../../../src/theme/useMediaQuery.ts"],"sourcesContent":["/*!\n * Copyright (c) 2025-present, Okta, Inc. and/or its affiliates. All rights reserved.\n * The Okta software accompanied by this notice is provided pursuant to the Apache License, Version 2.0 (the \"License.\")\n *\n * You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0.\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS, WITHOUT\n * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n *\n * See the License for the specific language governing permissions and limitations under the License.\n */\n\nimport { useCallback, useMemo } from \"react\";\n// React's `useSyncExternalStore` does not exist before React 18. Import it from\n// the official backport shim so the hook resolves on React 16.8+/17 consumers\n// too; the shim delegates to the native hook when running on React 18.\nimport { useSyncExternalStore } from \"use-sync-external-store/shim\";\n\nimport { StringWithValue } from \"../StringWithValue.js\";\n\n/**\n * Subscribes to a CSS media query and returns whether it currently matches,\n * re-rendering when the match state changes. Accepts the query with or without\n * a leading `@media` prefix. Uses `useSyncExternalStore` so the match is read\n * synchronously at render time (no tearing, no stale first frame), and\n * degrades to `false` in environments without `matchMedia` (server render,\n * jsdom).\n */\nexport const useMediaQuery = <MediaQuery extends string>(\n mediaQuery: StringWithValue<MediaQuery>,\n) => {\n // A leading `@media` prefix is valid CSS but is rejected by\n // `window.matchMedia`, so strip it to accept either form of the query.\n const normalizedMediaQuery = mediaQuery.replace(/^@media( ?)/m, \"\");\n\n // jsdom and server environments may not implement `matchMedia`. Guard so the\n // hook degrades to \"no match\" instead of throwing during render.\n const supportsMatchMedia =\n typeof window !== \"undefined\" && typeof window.matchMedia !== \"undefined\";\n\n const mediaQueryList = useMemo(\n () => (supportsMatchMedia ? window.matchMedia(normalizedMediaQuery) : null),\n [supportsMatchMedia, normalizedMediaQuery],\n );\n\n // `useSyncExternalStore` reads the match synchronously at render time, so\n // every component in a concurrent render sees a consistent value (no\n // tearing) and there is no stale first frame before an effect runs.\n const subscribe = useCallback(\n (notifyReactOfChange: () => void) => {\n if (!mediaQueryList) {\n return () => {};\n }\n\n mediaQueryList.addEventListener(\"change\", notifyReactOfChange);\n\n return () => {\n mediaQueryList.removeEventListener(\"change\", notifyReactOfChange);\n };\n },\n [mediaQueryList],\n );\n\n const getSnapshot = useCallback(\n () => mediaQueryList?.matches ?? false,\n [mediaQueryList],\n );\n\n // Server render (and any environment without `matchMedia`) resolves to \"no\n // match\", consistent with the guard above.\n const getServerSnapshot = useCallback(() => false, []);\n\n return useSyncExternalStore(subscribe, getSnapshot, getServerSnapshot);\n};\n\n/**\n * The absolute minimum viewport width, in CSS pixels, that the UI supports.\n * WCAG 1.4.10 (Reflow) requires content to remain usable down to 320px, so\n * this is the hard floor below which layout must not lose information or\n * functionality.\n */\nexport const ABSOLUTE_MINIMUM_WIDTH = 320;\n\n/**\n * The absolute minimum viewport height, in CSS pixels, that the UI supports:\n * the hard floor below which layout must not lose information or functionality.\n */\nexport const ABSOLUTE_MINIMUM_HEIGHT = 256;\n\n// Each axis starts adapting a set distance above its absolute-minimum floor so\n// the UI gets breathing room instead of snapping exactly at the floor. Width\n// uses a small buffer just above the reflow floor. Height uses a much larger\n// one: around 500px the app starts to feel cramped (still usable, but not\n// pleasant), so we adapt the layout there rather than waiting for the 256px\n// floor.\nconst COMPACT_WIDTH_ACTIVATION_BUFFER = 80;\nconst COMPACT_HEIGHT_ACTIVATION_BUFFER = 244;\n\n/**\n * The widest viewport, in CSS pixels, still treated as compact-width. At or\n * below this width the layout adapts toward the absolute-minimum floor.\n */\nexport const COMPACT_MAX_WIDTH =\n ABSOLUTE_MINIMUM_WIDTH + COMPACT_WIDTH_ACTIVATION_BUFFER;\n\n/**\n * The tallest viewport, in CSS pixels, still treated as compact-height. At or\n * below this height the layout adapts toward the absolute-minimum floor.\n */\nexport const COMPACT_MAX_HEIGHT =\n ABSOLUTE_MINIMUM_HEIGHT + COMPACT_HEIGHT_ACTIVATION_BUFFER;\n\n/**\n * The `matchMedia`/CSS condition that matches when the viewport is\n * compact-width. Single source of truth shared by the hook and style\n * overrides so the two cannot drift.\n */\nexport const COMPACT_MAX_WIDTH_CONDITION = `(max-width: ${COMPACT_MAX_WIDTH}px)`;\n\n/**\n * The `matchMedia`/CSS condition that matches when the viewport is\n * compact-height. Single source of truth shared by the hook and style\n * overrides so the two cannot drift.\n */\nexport const COMPACT_MAX_HEIGHT_CONDITION = `(max-height: ${COMPACT_MAX_HEIGHT}px)`;\n\n/**\n * The combined CSS media query for use in style overrides, where a React hook\n * cannot run. The comma matches when either dimension is compact.\n */\nexport const COMPACT_MEDIA_QUERY = `@media ${COMPACT_MAX_WIDTH_CONDITION}, ${COMPACT_MAX_HEIGHT_CONDITION}`;\n\n/**\n * Reports whether the viewport is within the compact range, i.e. approaching\n * the absolute minimum supported size along either axis (each axis activates at\n * its own buffer above the floor). Returns a match per dimension plus a combined\n * flag so callers can adapt layout (e.g. switch a Dialog to full-screen) as the\n * viewport approaches the WCAG 1.4.10 reflow floor rather than snapping exactly\n * at it.\n *\n * `isWithinCompactWidthOrHeight` is `true` when either dimension is compact,\n * matching the OR semantics of `COMPACT_MEDIA_QUERY`.\n */\nexport const useCompactViewportMatches = () => {\n const isWithinCompactWidth = useMediaQuery(COMPACT_MAX_WIDTH_CONDITION);\n const isWithinCompactHeight = useMediaQuery(COMPACT_MAX_HEIGHT_CONDITION);\n\n return useMemo(\n () => ({\n isWithinCompactWidth,\n isWithinCompactHeight,\n isWithinCompactWidthOrHeight:\n isWithinCompactWidth || isWithinCompactHeight,\n }),\n [isWithinCompactWidth, isWithinCompactHeight],\n );\n};\n"],"mappings":";;;;;;AAYA,IAAAA,MAAA,GAAAC,OAAA;AAIA,IAAAC,KAAA,GAAAD,OAAA;AAhBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,GAkBO,MAAME,aAAa,GACxBC,UAAuC,IACpC;EAGH,MAAMC,oBAAoB,GAAGD,UAAU,CAACE,OAAO,CAAC,cAAc,EAAE,EAAE,CAAC;EAInE,MAAMC,kBAAkB,GACtB,OAAOC,MAAM,KAAK,WAAW,IAAI,OAAOA,MAAM,CAACC,UAAU,KAAK,WAAW;EAE3E,MAAMC,cAAc,GAAG,IAAAC,cAAO,EAC5B,MAAOJ,kBAAkB,GAAGC,MAAM,CAACC,UAAU,CAACJ,oBAAoB,CAAC,GAAG,IAAK,EAC3E,CAACE,kBAAkB,EAAEF,oBAAoB,CAC3C,CAAC;EAKD,MAAMO,SAAS,GAAG,IAAAC,kBAAW,EAC1BC,mBAA+B,IAAK;IACnC,IAAI,CAACJ,cAAc,EAAE;MACnB,OAAO,MAAM,CAAC,CAAC;IACjB;IAEAA,cAAc,CAACK,gBAAgB,CAAC,QAAQ,EAAED,mBAAmB,CAAC;IAE9D,OAAO,MAAM;MACXJ,cAAc,CAACM,mBAAmB,CAAC,QAAQ,EAAEF,mBAAmB,CAAC;IACnE,CAAC;EACH,CAAC,EACD,CAACJ,cAAc,CACjB,CAAC;EAED,MAAMO,WAAW,GAAG,IAAAJ,kBAAW,EAC7B,MAAMH,cAAc,EAAEQ,OAAO,IAAI,KAAK,EACtC,CAACR,cAAc,CACjB,CAAC;EAID,MAAMS,iBAAiB,GAAG,IAAAN,kBAAW,EAAC,MAAM,KAAK,EAAE,EAAE,CAAC;EAEtD,OAAO,IAAAO,0BAAoB,EAACR,SAAS,EAAEK,WAAW,EAAEE,iBAAiB,CAAC;AACxE,CAAC;AAACE,OAAA,CAAAlB,aAAA,GAAAA,aAAA;AAQK,MAAMmB,sBAAsB,GAAAD,OAAA,CAAAC,sBAAA,GAAG,GAAG;AAMlC,MAAMC,uBAAuB,GAAAF,OAAA,CAAAE,uBAAA,GAAG,GAAG;AAQ1C,MAAMC,+BAA+B,GAAG,EAAE;AAC1C,MAAMC,gCAAgC,GAAG,GAAG;AAMrC,MAAMC,iBAAiB,GAAAL,OAAA,CAAAK,iBAAA,GAC5BJ,sBAAsB,GAAGE,+BAA+B;AAMnD,MAAMG,kBAAkB,GAAAN,OAAA,CAAAM,kBAAA,GAC7BJ,uBAAuB,GAAGE,gCAAgC;AAOrD,MAAMG,2BAA2B,GAAAP,OAAA,CAAAO,2BAAA,GAAG,eAAeF,iBAAiB,KAAK;AAOzE,MAAMG,4BAA4B,GAAAR,OAAA,CAAAQ,4BAAA,GAAG,gBAAgBF,kBAAkB,KAAK;AAM5E,MAAMG,mBAAmB,GAAAT,OAAA,CAAAS,mBAAA,GAAG,UAAUF,2BAA2B,KAAKC,4BAA4B,EAAE;AAapG,MAAME,yBAAyB,GAAGA,CAAA,KAAM;EAC7C,MAAMC,oBAAoB,GAAG7B,aAAa,CAACyB,2BAA2B,CAAC;EACvE,MAAMK,qBAAqB,GAAG9B,aAAa,CAAC0B,4BAA4B,CAAC;EAEzE,OAAO,IAAAlB,cAAO,EACZ,OAAO;IACLqB,oBAAoB;IACpBC,qBAAqB;IACrBC,4BAA4B,EAC1BF,oBAAoB,IAAIC;EAC5B,CAAC,CAAC,EACF,CAACD,oBAAoB,EAAEC,qBAAqB,CAC9C,CAAC;AACH,CAAC;AAACZ,OAAA,CAAAU,yBAAA,GAAAA,yBAAA","ignoreList":[]}
1
+ {"version":3,"file":"useMediaQuery.cjs","names":["_react","require","_shim","useMediaQuery","mediaQuery","normalizedMediaQuery","replace","supportsMatchMedia","window","matchMedia","mediaQueryList","useMemo","subscribe","useCallback","notifyReactOfChange","addEventListener","removeEventListener","getSnapshot","matches","getServerSnapshot","useSyncExternalStore","exports","ABSOLUTE_MINIMUM_WIDTH","ABSOLUTE_MINIMUM_HEIGHT","COMPACT_WIDTH_ACTIVATION_BUFFER","COMPACT_HEIGHT_ACTIVATION_BUFFER","COMPACT_MAX_WIDTH","COMPACT_MAX_HEIGHT","COMPACT_CONDITION_BY_AXIS","height","width","toCompactMediaQuery","firstAxis","otherAxis","filter","axis","undefined","map","join","useCompactViewportMatches","isWithinCompactWidth","isWithinCompactHeight","isWithinCompactWidthOrHeight"],"sources":["../../../src/theme/useMediaQuery.ts"],"sourcesContent":["/*!\n * Copyright (c) 2025-present, Okta, Inc. and/or its affiliates. All rights reserved.\n * The Okta software accompanied by this notice is provided pursuant to the Apache License, Version 2.0 (the \"License.\")\n *\n * You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0.\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS, WITHOUT\n * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n *\n * See the License for the specific language governing permissions and limitations under the License.\n */\n\nimport { useCallback, useMemo } from \"react\";\n// React's `useSyncExternalStore` does not exist before React 18. Import it from\n// the official backport shim so the hook resolves on React 16.8+/17 consumers\n// too; the shim delegates to the native hook when running on React 18.\nimport { useSyncExternalStore } from \"use-sync-external-store/shim\";\n\nimport { StringWithValue } from \"../StringWithValue.js\";\n\n/**\n * Subscribes to a CSS media query and returns whether it currently matches,\n * re-rendering when the match state changes. Accepts the query with or without\n * a leading `@media` prefix. Uses `useSyncExternalStore` so the match is read\n * synchronously at render time (no tearing, no stale first frame), and\n * degrades to `false` in environments without `matchMedia` (server render,\n * jsdom).\n */\nexport const useMediaQuery = <MediaQuery extends string>(\n mediaQuery: StringWithValue<MediaQuery>,\n) => {\n // A leading `@media` prefix is valid CSS but is rejected by\n // `window.matchMedia`, so strip it to accept either form of the query.\n const normalizedMediaQuery = mediaQuery.replace(/^@media( ?)/m, \"\");\n\n // jsdom and server environments may not implement `matchMedia`. Guard so the\n // hook degrades to \"no match\" instead of throwing during render.\n const supportsMatchMedia =\n typeof window !== \"undefined\" && typeof window.matchMedia !== \"undefined\";\n\n const mediaQueryList = useMemo(\n () => (supportsMatchMedia ? window.matchMedia(normalizedMediaQuery) : null),\n [supportsMatchMedia, normalizedMediaQuery],\n );\n\n // `useSyncExternalStore` reads the match synchronously at render time, so\n // every component in a concurrent render sees a consistent value (no\n // tearing) and there is no stale first frame before an effect runs.\n const subscribe = useCallback(\n (notifyReactOfChange: () => void) => {\n if (!mediaQueryList) {\n return () => {};\n }\n\n mediaQueryList.addEventListener(\"change\", notifyReactOfChange);\n\n return () => {\n mediaQueryList.removeEventListener(\"change\", notifyReactOfChange);\n };\n },\n [mediaQueryList],\n );\n\n const getSnapshot = useCallback(\n () => mediaQueryList?.matches ?? false,\n [mediaQueryList],\n );\n\n // Server render (and any environment without `matchMedia`) resolves to \"no\n // match\", consistent with the guard above.\n const getServerSnapshot = useCallback(() => false, []);\n\n return useSyncExternalStore(subscribe, getSnapshot, getServerSnapshot);\n};\n\n/**\n * The absolute minimum viewport width, in CSS pixels, that the UI supports.\n * WCAG 1.4.10 (Reflow) requires content to remain usable down to 320px, so\n * this is the hard floor below which layout must not lose information or\n * functionality.\n */\nexport const ABSOLUTE_MINIMUM_WIDTH = 320;\n\n/**\n * The absolute minimum viewport height, in CSS pixels, that the UI supports:\n * the hard floor below which layout must not lose information or functionality.\n */\nexport const ABSOLUTE_MINIMUM_HEIGHT = 256;\n\n// Each axis starts adapting a set distance above its absolute-minimum floor so\n// the UI gets breathing room instead of snapping exactly at the floor. Width\n// uses a small buffer just above the reflow floor. Height uses a much larger\n// one: around 500px the app starts to feel cramped (still usable, but not\n// pleasant), so we adapt the layout there rather than waiting for the 256px\n// floor.\nconst COMPACT_WIDTH_ACTIVATION_BUFFER = 80;\nconst COMPACT_HEIGHT_ACTIVATION_BUFFER = 244;\n\n/**\n * The widest viewport, in CSS pixels, still treated as compact-width. At or\n * below this width the layout adapts toward the absolute-minimum floor.\n */\nexport const COMPACT_MAX_WIDTH =\n ABSOLUTE_MINIMUM_WIDTH + COMPACT_WIDTH_ACTIVATION_BUFFER;\n\n/**\n * The tallest viewport, in CSS pixels, still treated as compact-height. At or\n * below this height the layout adapts toward the absolute-minimum floor.\n */\nexport const COMPACT_MAX_HEIGHT =\n ABSOLUTE_MINIMUM_HEIGHT + COMPACT_HEIGHT_ACTIVATION_BUFFER;\n\n/**\n * The `matchMedia` and CSS condition for each axis. This is the only place that\n * turns a threshold into a condition string, so the hook and the style overrides\n * cannot drift.\n */\nconst COMPACT_CONDITION_BY_AXIS = {\n height: `(max-height: ${COMPACT_MAX_HEIGHT}px)`,\n width: `(max-width: ${COMPACT_MAX_WIDTH}px)`,\n} as const;\n\n/** The axis names that `toCompactMediaQuery` accepts. */\nexport type CompactViewportAxis = keyof typeof COMPACT_CONDITION_BY_AXIS;\n\n/**\n * Builds the compact CSS `@media` rule for the given axes. The rule matches when\n * any one of those axes is compact. Use the result as a key in a style override\n * object, where a React hook cannot run.\n *\n * Give the name of an axis, not a condition string. The function holds the\n * threshold, so no caller can pass a wrong pixel value, and the compact\n * conditions need no export at all.\n *\n * A viewport has two axes, so the parameters spell out every legal call: one\n * axis, then at most one axis that the first call did not name. TypeScript\n * rejects a call with no axis, a repeated axis, or a third axis.\n *\n * Call `useCompactViewportMatches` in a component instead.\n *\n * This function stays internal to the package. Add it to the public `index.ts`\n * only when a consumer outside the package needs it.\n */\nexport const toCompactMediaQuery = <FirstAxis extends CompactViewportAxis>(\n firstAxis: FirstAxis,\n otherAxis?: Exclude<CompactViewportAxis, FirstAxis>,\n) =>\n `@media ${[firstAxis, otherAxis]\n .filter((axis) => axis !== undefined)\n .map((axis) => COMPACT_CONDITION_BY_AXIS[axis])\n .join(\",\")}`;\n\n/**\n * Reports whether the viewport is within the compact range, i.e. approaching\n * the absolute minimum supported size along either axis (each axis activates at\n * its own buffer above the floor). Returns a match per dimension plus a combined\n * flag so callers can adapt layout (e.g. switch a Dialog to full-screen) as the\n * viewport approaches the WCAG 1.4.10 reflow floor rather than snapping exactly\n * at it.\n *\n * `isWithinCompactWidthOrHeight` is `true` when either dimension is compact. It\n * matches a style override that gives both axes to `toCompactMediaQuery`.\n */\nexport const useCompactViewportMatches = () => {\n const isWithinCompactWidth = useMediaQuery(COMPACT_CONDITION_BY_AXIS.width);\n const isWithinCompactHeight = useMediaQuery(COMPACT_CONDITION_BY_AXIS.height);\n\n return useMemo(\n () => ({\n isWithinCompactWidth,\n isWithinCompactHeight,\n isWithinCompactWidthOrHeight:\n isWithinCompactWidth || isWithinCompactHeight,\n }),\n [isWithinCompactWidth, isWithinCompactHeight],\n );\n};\n"],"mappings":";;;;;;AAYA,IAAAA,MAAA,GAAAC,OAAA;AAIA,IAAAC,KAAA,GAAAD,OAAA;AAhBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,GAkBO,MAAME,aAAa,GACxBC,UAAuC,IACpC;EAGH,MAAMC,oBAAoB,GAAGD,UAAU,CAACE,OAAO,CAAC,cAAc,EAAE,EAAE,CAAC;EAInE,MAAMC,kBAAkB,GACtB,OAAOC,MAAM,KAAK,WAAW,IAAI,OAAOA,MAAM,CAACC,UAAU,KAAK,WAAW;EAE3E,MAAMC,cAAc,GAAG,IAAAC,cAAO,EAC5B,MAAOJ,kBAAkB,GAAGC,MAAM,CAACC,UAAU,CAACJ,oBAAoB,CAAC,GAAG,IAAK,EAC3E,CAACE,kBAAkB,EAAEF,oBAAoB,CAC3C,CAAC;EAKD,MAAMO,SAAS,GAAG,IAAAC,kBAAW,EAC1BC,mBAA+B,IAAK;IACnC,IAAI,CAACJ,cAAc,EAAE;MACnB,OAAO,MAAM,CAAC,CAAC;IACjB;IAEAA,cAAc,CAACK,gBAAgB,CAAC,QAAQ,EAAED,mBAAmB,CAAC;IAE9D,OAAO,MAAM;MACXJ,cAAc,CAACM,mBAAmB,CAAC,QAAQ,EAAEF,mBAAmB,CAAC;IACnE,CAAC;EACH,CAAC,EACD,CAACJ,cAAc,CACjB,CAAC;EAED,MAAMO,WAAW,GAAG,IAAAJ,kBAAW,EAC7B,MAAMH,cAAc,EAAEQ,OAAO,IAAI,KAAK,EACtC,CAACR,cAAc,CACjB,CAAC;EAID,MAAMS,iBAAiB,GAAG,IAAAN,kBAAW,EAAC,MAAM,KAAK,EAAE,EAAE,CAAC;EAEtD,OAAO,IAAAO,0BAAoB,EAACR,SAAS,EAAEK,WAAW,EAAEE,iBAAiB,CAAC;AACxE,CAAC;AAACE,OAAA,CAAAlB,aAAA,GAAAA,aAAA;AAQK,MAAMmB,sBAAsB,GAAAD,OAAA,CAAAC,sBAAA,GAAG,GAAG;AAMlC,MAAMC,uBAAuB,GAAAF,OAAA,CAAAE,uBAAA,GAAG,GAAG;AAQ1C,MAAMC,+BAA+B,GAAG,EAAE;AAC1C,MAAMC,gCAAgC,GAAG,GAAG;AAMrC,MAAMC,iBAAiB,GAAAL,OAAA,CAAAK,iBAAA,GAC5BJ,sBAAsB,GAAGE,+BAA+B;AAMnD,MAAMG,kBAAkB,GAAAN,OAAA,CAAAM,kBAAA,GAC7BJ,uBAAuB,GAAGE,gCAAgC;AAO5D,MAAMG,yBAAyB,GAAG;EAChCC,MAAM,EAAE,gBAAgBF,kBAAkB,KAAK;EAC/CG,KAAK,EAAE,eAAeJ,iBAAiB;AACzC,CAAU;AAuBH,MAAMK,mBAAmB,GAAGA,CACjCC,SAAoB,EACpBC,SAAmD,KAEnD,UAAU,CAACD,SAAS,EAAEC,SAAS,CAAC,CAC7BC,MAAM,CAAEC,IAAI,IAAKA,IAAI,KAAKC,SAAS,CAAC,CACpCC,GAAG,CAAEF,IAAI,IAAKP,yBAAyB,CAACO,IAAI,CAAC,CAAC,CAC9CG,IAAI,CAAC,GAAG,CAAC,EAAE;AAACjB,OAAA,CAAAU,mBAAA,GAAAA,mBAAA;AAaV,MAAMQ,yBAAyB,GAAGA,CAAA,KAAM;EAC7C,MAAMC,oBAAoB,GAAGrC,aAAa,CAACyB,yBAAyB,CAACE,KAAK,CAAC;EAC3E,MAAMW,qBAAqB,GAAGtC,aAAa,CAACyB,yBAAyB,CAACC,MAAM,CAAC;EAE7E,OAAO,IAAAlB,cAAO,EACZ,OAAO;IACL6B,oBAAoB;IACpBC,qBAAqB;IACrBC,4BAA4B,EAC1BF,oBAAoB,IAAIC;EAC5B,CAAC,CAAC,EACF,CAACD,oBAAoB,EAAEC,qBAAqB,CAC9C,CAAC;AACH,CAAC;AAACpB,OAAA,CAAAkB,yBAAA,GAAAA,yBAAA","ignoreList":[]}
@@ -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.68.0";
80
+ MemoizedAppSwitcher.displayName = "AppSwitcher::pkg=odyssey&odysseyV=1.69.0";
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.68.0";
60
+ MemoizedInnerAppContainer.displayName = "InnerAppContainer::pkg=odyssey&odysseyV=1.69.0";
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.68.0";
382
+ MemoizedNarrowUiShellContent.displayName = "NarrowUiShellContent::pkg=odyssey&odysseyV=1.69.0";
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.68.0";
173
+ MemoizedNavAccordion.displayName = "NavAccordion::pkg=odyssey&odysseyV=1.69.0";
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.68.0";
656
+ MemoizedSideNav.displayName = "SideNav::pkg=odyssey&odysseyV=1.69.0";
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.68.0";
72
+ MemoizedSideNavFooterContent.displayName = "SideNavFooterContent::pkg=odyssey&odysseyV=1.69.0";
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.68.0";
103
+ MemoizedSideNavHeader.displayName = "SideNavHeader::pkg=odyssey&odysseyV=1.69.0";
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.68.0";
64
+ SideNavListItem.displayName = "SideNavListItem::pkg=odyssey&odysseyV=1.69.0";
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.68.0";
349
+ MemoizedSideNavItemContent.displayName = "SideNavItemContent::pkg=odyssey&odysseyV=1.69.0";
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.68.0";
77
+ MemoizedSideNavItemLinkContent.displayName = "SideNavItemLinkContent::pkg=odyssey&odysseyV=1.69.0";
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.68.0";
47
+ MemoizedSideNavSortableList.displayName = "SideNavSortableList::pkg=odyssey&odysseyV=1.69.0";
48
48
  //# sourceMappingURL=SideNavSortableList.cjs.map
@@ -88,7 +88,7 @@ const StyledChevronRightIcon = (0, _styled.default)(_ChevronRight.ChevronRightIc
88
88
  transitionProperty: "transform",
89
89
  transitionTimingFunction: "ease-in-out"
90
90
  }));
91
- StyledChevronRightIcon.displayName = "StyledChevronRightIcon::pkg=odyssey&odysseyV=1.68.0";
91
+ StyledChevronRightIcon.displayName = "StyledChevronRightIcon::pkg=odyssey&odysseyV=1.69.0";
92
92
  const defaultLocalButton = typeof window === "undefined" ? null : document.createElement("button");
93
93
  const SideNavToggleButton = ({
94
94
  ariaControls,
@@ -163,5 +163,5 @@ const SideNavToggleButton = ({
163
163
  });
164
164
  };
165
165
  const MemoizedSideNavToggleButton = exports.SideNavToggleButton = (0, _react.memo)(SideNavToggleButton);
166
- MemoizedSideNavToggleButton.displayName = "SideNavToggleButton::pkg=odyssey&odysseyV=1.68.0";
166
+ MemoizedSideNavToggleButton.displayName = "SideNavToggleButton::pkg=odyssey&odysseyV=1.69.0";
167
167
  //# sourceMappingURL=SideNavToggleButton.cjs.map
@@ -121,5 +121,5 @@ const SkipToContent = ({
121
121
  });
122
122
  };
123
123
  const MemoizedSkipToContent = exports.SkipToContent = (0, _react.memo)(SkipToContent);
124
- MemoizedSkipToContent.displayName = "SkipToContent::pkg=odyssey&odysseyV=1.68.0";
124
+ MemoizedSkipToContent.displayName = "SkipToContent::pkg=odyssey&odysseyV=1.69.0";
125
125
  //# sourceMappingURL=SkipToContent.cjs.map
@@ -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.68.0";
36
+ MemoizedHamburgerMenuIcon.displayName = "HamburgerMenuIcon::pkg=odyssey&odysseyV=1.69.0";
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.68.0";
72
+ MemoizedTopNav.displayName = "TopNav::pkg=odyssey&odysseyV=1.69.0";
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.68.0";
42
+ MemoizedTopNavLinksList.displayName = "TopNavLinksList::pkg=odyssey&odysseyV=1.69.0";
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.68.0";
136
+ MemoizedTopNavListItem.displayName = "TopNavListItem::pkg=odyssey&odysseyV=1.69.0";
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.68.0";
132
+ MemoizedUiShell.displayName = "UiShell::pkg=odyssey&odysseyV=1.69.0";
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.68.0";
75
+ MemoizedUiShellLogo.displayName = "UiShellLogo::pkg=odyssey&odysseyV=1.69.0";
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.68.0";
180
+ MemoizedWideUiShellContent.displayName = "WideUiShellContent::pkg=odyssey&odysseyV=1.69.0";
181
181
  //# sourceMappingURL=WideUiShellContent.cjs.map
@@ -0,0 +1,23 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.useStableCallback = void 0;
7
+ var _utils = require("@mui/utils");
8
+ /*!
9
+ * Copyright (c) 2025-present, Okta, Inc. and/or its affiliates. All rights reserved.
10
+ * The Okta software accompanied by this notice is provided pursuant to the Apache License, Version 2.0 (the "License.")
11
+ *
12
+ * You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0.
13
+ * Unless required by applicable law or agreed to in writing, software
14
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
15
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16
+ *
17
+ * See the License for the specific language governing permissions and limitations under the License.
18
+ */
19
+
20
+ const noop = () => undefined;
21
+ const useStableCallback = callback => (0, _utils.unstable_useEventCallback)(callback ?? noop);
22
+ exports.useStableCallback = useStableCallback;
23
+ //# sourceMappingURL=useStableCallback.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useStableCallback.cjs","names":["_utils","require","noop","undefined","useStableCallback","callback","unstable_useEventCallback","exports"],"sources":["../../src/useStableCallback.ts"],"sourcesContent":["/*!\n * Copyright (c) 2025-present, Okta, Inc. and/or its affiliates. All rights reserved.\n * The Okta software accompanied by this notice is provided pursuant to the Apache License, Version 2.0 (the \"License.\")\n *\n * You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0.\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS, WITHOUT\n * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n *\n * See the License for the specific language governing permissions and limitations under the License.\n */\n\nimport { unstable_useEventCallback } from \"@mui/utils\";\n\nconst noop = () => undefined;\n\n/**\n * Returns a callback with a permanent identity that always invokes the most\n * recent version of `callback`.\n *\n * Use this for any consumer-supplied callback a component notifies from a\n * `useEffect`. Consumers routinely pass an inline arrow function, which has a\n * new identity on every render. Listing that identity in an effect's dependency\n * array makes the effect run on renders where nothing it reports actually\n * changed, and it then reports values captured before the latest commit. When\n * the consumer feeds a reported value back in as a prop, the prop and the\n * component's internal state can swap values on every commit and never settle.\n *\n * The returned callback is safe to omit from dependency arrays, so the effect\n * can depend only on the state it reports:\n *\n * ```tsx\n * const stableOnPaginationChange = useStableCallback(onPaginationChange);\n *\n * useEffect(() => {\n * stableOnPaginationChange(pagination);\n * }, [pagination, stableOnPaginationChange]);\n * ```\n *\n * The latest `callback` is captured in a layout effect, so the returned\n * callback must not be invoked during render. Invoke it from an effect or an\n * event handler.\n *\n * Passing `undefined` is supported and yields a callback that does nothing,\n * which removes the need for optional-call syntax at every call site.\n *\n * @param callback The callback to stabilize, typically a component prop.\n */\nexport const useStableCallback = <\n CallbackArguments extends unknown[],\n CallbackReturn,\n>(\n callback?: (...callbackArguments: CallbackArguments) => CallbackReturn,\n) =>\n unstable_useEventCallback<CallbackArguments, CallbackReturn | undefined>(\n callback ?? noop,\n );\n"],"mappings":";;;;;;AAYA,IAAAA,MAAA,GAAAC,OAAA;AAZA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAIA,MAAMC,IAAI,GAAGA,CAAA,KAAMC,SAAS;AAkCrB,MAAMC,iBAAiB,GAI5BC,QAAsE,IAEtE,IAAAC,gCAAyB,EACvBD,QAAQ,IAAIH,IACd,CAAC;AAACK,OAAA,CAAAH,iBAAA,GAAAA,iBAAA","ignoreList":[]}
@@ -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-68-0";
18
+ var _default = exports.default = "1-69-0";
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-68-0\";\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-69-0\";\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.68.0";
60
+ MemoizedAccordion.displayName = "Accordion::pkg=odyssey&odysseyV=1.69.0";
61
61
  export { MemoizedAccordion as Accordion };
62
62
  //# sourceMappingURL=Accordion.js.map
@@ -106,6 +106,6 @@ const Autocomplete = ({
106
106
  });
107
107
  };
108
108
  const MemoizedAutocomplete = memo(Autocomplete);
109
- MemoizedAutocomplete.displayName = "Autocomplete::pkg=odyssey&odysseyV=1.68.0";
109
+ MemoizedAutocomplete.displayName = "Autocomplete::pkg=odyssey&odysseyV=1.69.0";
110
110
  export { MemoizedAutocomplete as Autocomplete };
111
111
  //# sourceMappingURL=Autocomplete.js.map
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.68.0";
76
+ MemoizedBadge.displayName = "Badge::pkg=odyssey&odysseyV=1.69.0";
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.68.0";
61
+ MemoizedBanner.displayName = "Banner::pkg=odyssey&odysseyV=1.69.0";
62
62
  export { MemoizedBanner as Banner };
63
63
  //# sourceMappingURL=Banner.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"Banner.js","names":["memo","useTranslation","Link","ScreenReaderText","jsx","_jsx","jsxs","_jsxs","bannerRoleValues","bannerSeverityValues","Banner","linkRel","linkTarget","linkText","linkUrl","onClose","onLinkClick","role","severity","testId","text","translate","t","_Alert","variant","children","_AlertTitle","href","onClick","rel","target","MemoizedBanner","displayName"],"sources":["../../src/Banner.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 { Alert, AlertColor, AlertProps, AlertTitle } from \"@mui/material\";\nimport { memo } from \"react\";\n\nimport type { HtmlProps } from \"./HtmlProps.js\";\n\nimport { useTranslation } from \"./i18n.generated/i18n.js\";\nimport { Link, LinkProps } from \"./Link.js\";\nimport { ScreenReaderText } from \"./ScreenReaderText.js\";\n\nexport const bannerRoleValues = [\"status\", \"alert\"] as const;\nexport const bannerSeverityValues: AlertColor[] = [\n \"success\",\n \"info\",\n \"warning\",\n \"error\",\n];\n\nexport type BannerProps = {\n /**\n * Called when the user clicks the close button. When undefined, the close button is not shown.\n */\n onClose?: AlertProps[\"onClose\"];\n /**\n * Sets the ARIA live-region role.\n * - If `'status'`, announces updates politely; use for non-critical dynamic messages.\n * - If `'alert'`, announces updates assertively; use for errors or urgent information.\n */\n role?: (typeof bannerRoleValues)[number];\n /**\n * Visual severity level that controls the banner's color and icon.\n */\n severity: (typeof bannerSeverityValues)[number];\n /**\n * Primary message text displayed inside the banner.\n */\n text: string;\n} & Pick<HtmlProps, \"testId\" | \"translate\"> &\n // if linkText is provided, either linkUrl or onLinkClick must be provided\n (| {\n /** The `rel` attribute of the action link. */\n linkRel?: LinkProps[\"rel\"];\n /** The `target` attribute of the action link (e.g., `\"_blank\"`). */\n linkTarget?: LinkProps[\"target\"];\n /** Visible label for the action link rendered after the banner text. */\n linkText: string;\n /** The URL the action link navigates to. Required when `onLinkClick` is not provided. */\n linkUrl: LinkProps[\"href\"];\n onLinkClick?: never;\n }\n | {\n linkRel?: never;\n linkTarget?: never;\n /** Visible label for the action link rendered after the banner text. */\n linkText: string;\n linkUrl?: never;\n /** Click handler for the action link. Required when `linkUrl` is not provided. */\n onLinkClick: LinkProps[\"onClick\"];\n }\n | {\n linkRel?: never;\n linkTarget?: never;\n linkText?: never;\n linkUrl?: never;\n onLinkClick?: never;\n }\n );\n\n/**\n * A full-width alert strip displayed at the top of a page or section to communicate\n * high-priority information such as errors, warnings, or status updates.\n */\nconst Banner = ({\n linkRel,\n linkTarget,\n linkText,\n linkUrl,\n onClose,\n onLinkClick,\n role,\n severity,\n testId,\n text,\n translate,\n}: BannerProps) => {\n const { t } = useTranslation();\n\n return (\n <Alert\n data-se={testId}\n onClose={onClose}\n role={role}\n severity={severity}\n variant=\"banner\"\n >\n <ScreenReaderText translate={translate}>\n {t(`severity.${severity}`)}\n </ScreenReaderText>\n <AlertTitle translate={translate}>{text}</AlertTitle>\n {linkText && (\n <Link\n href={linkUrl ?? \"#\"}\n onClick={onLinkClick}\n rel={linkRel}\n target={linkTarget}\n translate={translate}\n variant=\"monochrome\"\n >\n {linkText}\n </Link>\n )}\n </Alert>\n );\n};\n\nconst MemoizedBanner = memo(Banner);\nMemoizedBanner.displayName = \"Banner\";\n\nexport { MemoizedBanner as Banner };\n"],"mappings":";;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAGA,SAASA,IAAI,QAAQ,OAAO;AAI5B,SAASC,cAAc,QAAQ,0BAA0B;AACzD,SAASC,IAAI,QAAmB,WAAW;AAC3C,SAASC,gBAAgB,QAAQ,uBAAuB;AAAC,SAAAC,GAAA,IAAAC,IAAA,EAAAC,IAAA,IAAAC,KAAA;AAEzD,OAAO,MAAMC,gBAAgB,GAAG,CAAC,QAAQ,EAAE,OAAO,CAAU;AAC5D,OAAO,MAAMC,oBAAkC,GAAG,CAChD,SAAS,EACT,MAAM,EACN,SAAS,EACT,OAAO,CACR;AAwDD,MAAMC,MAAM,GAAGA,CAAC;EACdC,OAAO;EACPC,UAAU;EACVC,QAAQ;EACRC,OAAO;EACPC,OAAO;EACPC,WAAW;EACXC,IAAI;EACJC,QAAQ;EACRC,MAAM;EACNC,IAAI;EACJC;AACW,CAAC,KAAK;EACjB,MAAM;IAAEC;EAAE,CAAC,GAAGrB,cAAc,CAAC,CAAC;EAE9B,OACEM,KAAA,CAAAgB,MAAA;IACE,WAASJ,MAAO;IAChBJ,OAAO,EAAEA,OAAQ;IACjBE,IAAI,EAAEA,IAAK;IACXC,QAAQ,EAAEA,QAAS;IACnBM,OAAO,EAAC,QAAQ;IAAAC,QAAA,GAEhBpB,IAAA,CAACF,gBAAgB;MAACkB,SAAS,EAAEA,SAAU;MAAAI,QAAA,EACpCH,CAAC,CAAC,YAAYJ,QAAQ,EAAE;IAAC,CACV,CAAC,EACnBb,IAAA,CAAAqB,WAAA;MAAYL,SAAS,EAAEA,SAAU;MAAAI,QAAA,EAAEL;IAAI,CAAa,CAAC,EACpDP,QAAQ,IACPR,IAAA,CAACH,IAAI;MACHyB,IAAI,EAAEb,OAAO,IAAI,GAAI;MACrBc,OAAO,EAAEZ,WAAY;MACrBa,GAAG,EAAElB,OAAQ;MACbmB,MAAM,EAAElB,UAAW;MACnBS,SAAS,EAAEA,SAAU;MACrBG,OAAO,EAAC,YAAY;MAAAC,QAAA,EAEnBZ;IAAQ,CACL,CACP;EAAA,CACI,CAAC;AAEZ,CAAC;AAED,MAAMkB,cAAc,GAAG/B,IAAI,CAACU,MAAM,CAAC;AACnCqB,cAAc,CAACC,WAAW,wCAAW;AAErC,SAASD,cAAc,IAAIrB,MAAM","ignoreList":[]}
1
+ {"version":3,"file":"Banner.js","names":["memo","useTranslation","Link","ScreenReaderText","jsx","_jsx","jsxs","_jsxs","bannerRoleValues","bannerSeverityValues","Banner","linkRel","linkTarget","linkText","linkUrl","onClose","onLinkClick","role","severity","testId","text","translate","t","_Alert","variant","children","_AlertTitle","href","onClick","rel","target","MemoizedBanner","displayName"],"sources":["../../src/Banner.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 { Alert, AlertColor, AlertProps, AlertTitle } from \"@mui/material\";\nimport { memo } from \"react\";\n\nimport type { HtmlProps } from \"./HtmlProps.js\";\n\nimport { useTranslation } from \"./i18n.generated/i18n.js\";\nimport { Link, LinkProps } from \"./Link.js\";\nimport { ScreenReaderText } from \"./ScreenReaderText.js\";\n\nexport const bannerRoleValues = [\"status\", \"alert\"] as const;\nexport const bannerSeverityValues: AlertColor[] = [\n \"success\",\n \"info\",\n \"warning\",\n \"error\",\n];\n\nexport type BannerProps = {\n /**\n * Called when the user clicks the close button. When undefined, the close button is not shown.\n */\n onClose?: AlertProps[\"onClose\"];\n /**\n * Sets the ARIA live-region role.\n * - If `'status'`, announces updates politely; use for non-critical dynamic messages.\n * - If `'alert'`, announces updates assertively; use for errors or urgent information.\n */\n role?: (typeof bannerRoleValues)[number];\n /**\n * Visual severity level that controls the banner's color and icon.\n */\n severity: (typeof bannerSeverityValues)[number];\n /**\n * Primary message text displayed inside the banner.\n */\n text: string;\n} & Pick<HtmlProps, \"testId\" | \"translate\"> &\n // if linkText is provided, either linkUrl or onLinkClick must be provided\n (\n | {\n /** The `rel` attribute of the action link. */\n linkRel?: LinkProps[\"rel\"];\n /** The `target` attribute of the action link (e.g., `\"_blank\"`). */\n linkTarget?: LinkProps[\"target\"];\n /** Visible label for the action link rendered after the banner text. */\n linkText: string;\n /** The URL the action link navigates to. Required when `onLinkClick` is not provided. */\n linkUrl: LinkProps[\"href\"];\n onLinkClick?: never;\n }\n | {\n linkRel?: never;\n linkTarget?: never;\n /** Visible label for the action link rendered after the banner text. */\n linkText: string;\n linkUrl?: never;\n /** Click handler for the action link. Required when `linkUrl` is not provided. */\n onLinkClick: LinkProps[\"onClick\"];\n }\n | {\n linkRel?: never;\n linkTarget?: never;\n linkText?: never;\n linkUrl?: never;\n onLinkClick?: never;\n }\n );\n\n/**\n * A full-width alert strip displayed at the top of a page or section to communicate\n * high-priority information such as errors, warnings, or status updates.\n */\nconst Banner = ({\n linkRel,\n linkTarget,\n linkText,\n linkUrl,\n onClose,\n onLinkClick,\n role,\n severity,\n testId,\n text,\n translate,\n}: BannerProps) => {\n const { t } = useTranslation();\n\n return (\n <Alert\n data-se={testId}\n onClose={onClose}\n role={role}\n severity={severity}\n variant=\"banner\"\n >\n <ScreenReaderText translate={translate}>\n {t(`severity.${severity}`)}\n </ScreenReaderText>\n <AlertTitle translate={translate}>{text}</AlertTitle>\n {linkText && (\n <Link\n href={linkUrl ?? \"#\"}\n onClick={onLinkClick}\n rel={linkRel}\n target={linkTarget}\n translate={translate}\n variant=\"monochrome\"\n >\n {linkText}\n </Link>\n )}\n </Alert>\n );\n};\n\nconst MemoizedBanner = memo(Banner);\nMemoizedBanner.displayName = \"Banner\";\n\nexport { MemoizedBanner as Banner };\n"],"mappings":";;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAGA,SAASA,IAAI,QAAQ,OAAO;AAI5B,SAASC,cAAc,QAAQ,0BAA0B;AACzD,SAASC,IAAI,QAAmB,WAAW;AAC3C,SAASC,gBAAgB,QAAQ,uBAAuB;AAAC,SAAAC,GAAA,IAAAC,IAAA,EAAAC,IAAA,IAAAC,KAAA;AAEzD,OAAO,MAAMC,gBAAgB,GAAG,CAAC,QAAQ,EAAE,OAAO,CAAU;AAC5D,OAAO,MAAMC,oBAAkC,GAAG,CAChD,SAAS,EACT,MAAM,EACN,SAAS,EACT,OAAO,CACR;AAyDD,MAAMC,MAAM,GAAGA,CAAC;EACdC,OAAO;EACPC,UAAU;EACVC,QAAQ;EACRC,OAAO;EACPC,OAAO;EACPC,WAAW;EACXC,IAAI;EACJC,QAAQ;EACRC,MAAM;EACNC,IAAI;EACJC;AACW,CAAC,KAAK;EACjB,MAAM;IAAEC;EAAE,CAAC,GAAGrB,cAAc,CAAC,CAAC;EAE9B,OACEM,KAAA,CAAAgB,MAAA;IACE,WAASJ,MAAO;IAChBJ,OAAO,EAAEA,OAAQ;IACjBE,IAAI,EAAEA,IAAK;IACXC,QAAQ,EAAEA,QAAS;IACnBM,OAAO,EAAC,QAAQ;IAAAC,QAAA,GAEhBpB,IAAA,CAACF,gBAAgB;MAACkB,SAAS,EAAEA,SAAU;MAAAI,QAAA,EACpCH,CAAC,CAAC,YAAYJ,QAAQ,EAAE;IAAC,CACV,CAAC,EACnBb,IAAA,CAAAqB,WAAA;MAAYL,SAAS,EAAEA,SAAU;MAAAI,QAAA,EAAEL;IAAI,CAAa,CAAC,EACpDP,QAAQ,IACPR,IAAA,CAACH,IAAI;MACHyB,IAAI,EAAEb,OAAO,IAAI,GAAI;MACrBc,OAAO,EAAEZ,WAAY;MACrBa,GAAG,EAAElB,OAAQ;MACbmB,MAAM,EAAElB,UAAW;MACnBS,SAAS,EAAEA,SAAU;MACrBG,OAAO,EAAC,YAAY;MAAAC,QAAA,EAEnBZ;IAAQ,CACL,CACP;EAAA,CACI,CAAC;AAEZ,CAAC;AAED,MAAMkB,cAAc,GAAG/B,IAAI,CAACU,MAAM,CAAC;AACnCqB,cAAc,CAACC,WAAW,wCAAW;AAErC,SAASD,cAAc,IAAIrB,MAAM","ignoreList":[]}
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.68.0";
34
+ MemoizedBox.displayName = "Box::pkg=odyssey&odysseyV=1.69.0";
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.68.0";
178
+ MemoizedBreadcrumbList.displayName = "BreadcrumbList::pkg=odyssey&odysseyV=1.69.0";
179
179
  export { MemoizedBreadcrumbList as BreadcrumbList };
180
180
  //# sourceMappingURL=Breadcrumbs.js.map
@@ -115,6 +115,6 @@ const BaseButton = ({
115
115
  return renderButton(muiProps);
116
116
  };
117
117
  const MemoizedBaseButton = memo(BaseButton);
118
- MemoizedBaseButton.displayName = "BaseButton::pkg=odyssey&odysseyV=1.68.0";
118
+ MemoizedBaseButton.displayName = "BaseButton::pkg=odyssey&odysseyV=1.69.0";
119
119
  export { MemoizedBaseButton as BaseButton };
120
120
  //# 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.68.0";
168
+ MemoizedBaseMenuButton.displayName = "BaseMenuButton::pkg=odyssey&odysseyV=1.69.0";
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.68.0";
22
+ MemoizedButton.displayName = "Button::pkg=odyssey&odysseyV=1.69.0";
23
23
  export { MemoizedButton as Button };
24
24
  //# sourceMappingURL=Button.js.map
@@ -19,6 +19,6 @@ const MenuButton = props => {
19
19
  });
20
20
  };
21
21
  const MemoizedMenuButton = memo(MenuButton);
22
- MemoizedMenuButton.displayName = "MenuButton::pkg=odyssey&odysseyV=1.68.0";
22
+ MemoizedMenuButton.displayName = "MenuButton::pkg=odyssey&odysseyV=1.69.0";
23
23
  export { MemoizedMenuButton as MenuButton };
24
24
  //# sourceMappingURL=MenuButton.js.map
@@ -50,6 +50,6 @@ const MenuItem = ({
50
50
  });
51
51
  };
52
52
  const MemoizedMenuItem = memo(MenuItem);
53
- MemoizedMenuItem.displayName = "MenuItem::pkg=odyssey&odysseyV=1.68.0";
53
+ MemoizedMenuItem.displayName = "MenuItem::pkg=odyssey&odysseyV=1.69.0";
54
54
  export { MemoizedMenuItem as MenuItem };
55
55
  //# sourceMappingURL=MenuItem.js.map
@@ -79,6 +79,6 @@ const Callout = ({
79
79
  });
80
80
  };
81
81
  const MemoizedCallout = memo(Callout);
82
- MemoizedCallout.displayName = "Callout::pkg=odyssey&odysseyV=1.68.0";
82
+ MemoizedCallout.displayName = "Callout::pkg=odyssey&odysseyV=1.69.0";
83
83
  export { MemoizedCallout as Callout };
84
84
  //# sourceMappingURL=Callout.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"Callout.js","names":["styled","memo","useTranslation","Link","useOdysseyDesignTokens","Paragraph","jsx","_jsx","jsxs","_jsxs","calloutRoleValues","calloutSeverityValues","ContentContainer","shouldForwardProp","prop","odysseyDesignTokens","marginBlockStart","Spacing4","Callout","children","linkRel","linkTarget","linkText","linkUrl","onLinkClick","role","severity","testId","text","title","translate","t","_Alert","variant","_AlertTitle","_Box","component","href","onClick","rel","target","MemoizedCallout","displayName"],"sources":["../../src/Callout.tsx"],"sourcesContent":["/*!\n * Copyright (c) 2022-present, Okta, Inc. and/or its affiliates. All rights reserved.\n * The Okta software accompanied by this notice is provided pursuant to the Apache License, Version 2.0 (the \"License.\")\n *\n * You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0.\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS, WITHOUT\n * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n *\n * See the License for the specific language governing permissions and limitations under the License.\n */\n\nimport styled from \"@emotion/styled\";\nimport { Alert, AlertTitle, Box } from \"@mui/material\";\nimport { memo, ReactNode } from \"react\";\n\nimport type { HtmlProps } from \"./HtmlProps.js\";\n\nimport { useTranslation } from \"./i18n.generated/i18n.js\";\nimport { Link, LinkProps } from \"./Link.js\";\nimport {\n DesignTokens,\n useOdysseyDesignTokens,\n} from \"./OdysseyDesignTokensContext.js\";\nimport { Paragraph } from \"./Typography.js\";\n\nexport const calloutRoleValues = [\"status\", \"alert\"] as const;\nexport const calloutSeverityValues = [\n \"success\",\n \"info\",\n \"warning\",\n \"error\",\n] as const;\n\nexport type CalloutProps = {\n /**\n * Supplementary content rendered inside the callout body, typically a list or structured markup.\n */\n children?: ReactNode;\n /**\n * Sets the ARIA live-region role.\n * - If `'status'`, announces updates politely; use for non-critical dynamic messages.\n * - If `'alert'`, announces updates assertively; use for errors or urgent information.\n */\n role?: (typeof calloutRoleValues)[number];\n /**\n * Visual severity level that controls the callout's color and icon.\n */\n severity: (typeof calloutSeverityValues)[number];\n /**\n * Primary message text displayed inside the callout body.\n */\n text?: string;\n /**\n * Heading text displayed at the top of the callout, above the body content.\n */\n title?: string;\n} & (\n | {\n children?: never;\n text: string;\n }\n | {\n children: ReactNode;\n text?: never;\n }\n) &\n // if linkText is provided, either linkUrl or onLinkClick must be provided\n (| {\n /** The `rel` attribute forwarded to the action link. */\n linkRel?: LinkProps[\"rel\"];\n /** The `target` attribute forwarded to the action link. */\n linkTarget?: LinkProps[\"target\"];\n /** Visible label for the action link rendered below the Callout content. */\n linkText: string;\n /** URL the action link navigates to. Required when `onLinkClick` is not provided. */\n linkUrl: LinkProps[\"href\"];\n onLinkClick?: never;\n }\n | {\n linkRel?: never;\n linkTarget?: never;\n /** Visible label for the action link rendered below the Callout content. */\n linkText: string;\n linkUrl?: never;\n /** Click handler for the action link. Required when `linkUrl` is not provided. */\n onLinkClick: LinkProps[\"onClick\"];\n }\n | {\n linkRel?: never;\n linkTarget?: never;\n linkText?: never;\n linkUrl?: never;\n onLinkClick?: never;\n }\n ) &\n Pick<HtmlProps, \"testId\" | \"translate\">;\n\nconst ContentContainer = styled(\"div\", {\n shouldForwardProp: (prop) => prop !== \"odysseyDesignTokens\",\n})<{ odysseyDesignTokens: DesignTokens }>(({ odysseyDesignTokens }) => ({\n \"& > * + *\": {\n marginBlockStart: odysseyDesignTokens.Spacing4,\n },\n}));\n\n/**\n * A non-dismissible inline message that draws attention to important contextual information. Use\n * Callout to surface status, warnings, errors, or supplementary guidance within a page or form.\n */\nconst Callout = ({\n children,\n linkRel,\n linkTarget,\n linkText,\n linkUrl,\n onLinkClick,\n role,\n severity,\n testId,\n text,\n title,\n translate,\n}: CalloutProps) => {\n const { t } = useTranslation();\n const odysseyDesignTokens = useOdysseyDesignTokens();\n\n return (\n <Alert\n aria-label={t(`severity.${severity}`)}\n data-se={testId}\n role={role}\n severity={severity}\n variant=\"callout\"\n >\n {title && <AlertTitle translate={translate}>{title}</AlertTitle>}\n\n <ContentContainer odysseyDesignTokens={odysseyDesignTokens}>\n {children && <Box component=\"div\">{children}</Box>}\n {text && <Paragraph>{text}</Paragraph>}\n {linkText && (\n <Box>\n <Link\n href={linkUrl ?? \"#\"}\n onClick={onLinkClick}\n rel={linkRel}\n target={linkTarget}\n variant=\"monochrome\"\n >\n {linkText}\n </Link>\n </Box>\n )}\n </ContentContainer>\n </Alert>\n );\n};\n\nconst MemoizedCallout = memo(Callout);\nMemoizedCallout.displayName = \"Callout\";\n\nexport { MemoizedCallout as Callout };\n"],"mappings":";;;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,OAAOA,MAAM,MAAM,iBAAiB;AAEpC,SAASC,IAAI,QAAmB,OAAO;AAIvC,SAASC,cAAc,QAAQ,0BAA0B;AACzD,SAASC,IAAI,QAAmB,WAAW;AAC3C,SAEEC,sBAAsB,QACjB,iCAAiC;AACxC,SAASC,SAAS,QAAQ,iBAAiB;AAAC,SAAAC,GAAA,IAAAC,IAAA,EAAAC,IAAA,IAAAC,KAAA;AAE5C,OAAO,MAAMC,iBAAiB,GAAG,CAAC,QAAQ,EAAE,OAAO,CAAU;AAC7D,OAAO,MAAMC,qBAAqB,GAAG,CACnC,SAAS,EACT,MAAM,EACN,SAAS,EACT,OAAO,CACC;AAkEV,MAAMC,gBAAgB,GAAGZ,MAAM,CAAC,KAAK,EAAE;EACrCa,iBAAiB,EAAGC,IAAI,IAAKA,IAAI,KAAK;AACxC,CAAC,CAAC,CAAwC,CAAC;EAAEC;AAAoB,CAAC,MAAM;EACtE,WAAW,EAAE;IACXC,gBAAgB,EAAED,mBAAmB,CAACE;EACxC;AACF,CAAC,CAAC,CAAC;AAMH,MAAMC,OAAO,GAAGA,CAAC;EACfC,QAAQ;EACRC,OAAO;EACPC,UAAU;EACVC,QAAQ;EACRC,OAAO;EACPC,WAAW;EACXC,IAAI;EACJC,QAAQ;EACRC,MAAM;EACNC,IAAI;EACJC,KAAK;EACLC;AACY,CAAC,KAAK;EAClB,MAAM;IAAEC;EAAE,CAAC,GAAG7B,cAAc,CAAC,CAAC;EAC9B,MAAMa,mBAAmB,GAAGX,sBAAsB,CAAC,CAAC;EAEpD,OACEK,KAAA,CAAAuB,MAAA;IACE,cAAYD,CAAC,CAAC,YAAYL,QAAQ,EAAE,CAAE;IACtC,WAASC,MAAO;IAChBF,IAAI,EAAEA,IAAK;IACXC,QAAQ,EAAEA,QAAS;IACnBO,OAAO,EAAC,SAAS;IAAAd,QAAA,GAEhBU,KAAK,IAAItB,IAAA,CAAA2B,WAAA;MAAYJ,SAAS,EAAEA,SAAU;MAAAX,QAAA,EAAEU;IAAK,CAAa,CAAC,EAEhEpB,KAAA,CAACG,gBAAgB;MAACG,mBAAmB,EAAEA,mBAAoB;MAAAI,QAAA,GACxDA,QAAQ,IAAIZ,IAAA,CAAA4B,IAAA;QAAKC,SAAS,EAAC,KAAK;QAAAjB,QAAA,EAAEA;MAAQ,CAAM,CAAC,EACjDS,IAAI,IAAIrB,IAAA,CAACF,SAAS;QAAAc,QAAA,EAAES;MAAI,CAAY,CAAC,EACrCN,QAAQ,IACPf,IAAA,CAAA4B,IAAA;QAAAhB,QAAA,EACEZ,IAAA,CAACJ,IAAI;UACHkC,IAAI,EAAEd,OAAO,IAAI,GAAI;UACrBe,OAAO,EAAEd,WAAY;UACrBe,GAAG,EAAEnB,OAAQ;UACboB,MAAM,EAAEnB,UAAW;UACnBY,OAAO,EAAC,YAAY;UAAAd,QAAA,EAEnBG;QAAQ,CACL;MAAC,CACJ,CACN;IAAA,CACe,CAAC;EAAA,CACd,CAAC;AAEZ,CAAC;AAED,MAAMmB,eAAe,GAAGxC,IAAI,CAACiB,OAAO,CAAC;AACrCuB,eAAe,CAACC,WAAW,yCAAY;AAEvC,SAASD,eAAe,IAAIvB,OAAO","ignoreList":[]}
1
+ {"version":3,"file":"Callout.js","names":["styled","memo","useTranslation","Link","useOdysseyDesignTokens","Paragraph","jsx","_jsx","jsxs","_jsxs","calloutRoleValues","calloutSeverityValues","ContentContainer","shouldForwardProp","prop","odysseyDesignTokens","marginBlockStart","Spacing4","Callout","children","linkRel","linkTarget","linkText","linkUrl","onLinkClick","role","severity","testId","text","title","translate","t","_Alert","variant","_AlertTitle","_Box","component","href","onClick","rel","target","MemoizedCallout","displayName"],"sources":["../../src/Callout.tsx"],"sourcesContent":["/*!\n * Copyright (c) 2022-present, Okta, Inc. and/or its affiliates. All rights reserved.\n * The Okta software accompanied by this notice is provided pursuant to the Apache License, Version 2.0 (the \"License.\")\n *\n * You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0.\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS, WITHOUT\n * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n *\n * See the License for the specific language governing permissions and limitations under the License.\n */\n\nimport styled from \"@emotion/styled\";\nimport { Alert, AlertTitle, Box } from \"@mui/material\";\nimport { memo, ReactNode } from \"react\";\n\nimport type { HtmlProps } from \"./HtmlProps.js\";\n\nimport { useTranslation } from \"./i18n.generated/i18n.js\";\nimport { Link, LinkProps } from \"./Link.js\";\nimport {\n DesignTokens,\n useOdysseyDesignTokens,\n} from \"./OdysseyDesignTokensContext.js\";\nimport { Paragraph } from \"./Typography.js\";\n\nexport const calloutRoleValues = [\"status\", \"alert\"] as const;\nexport const calloutSeverityValues = [\n \"success\",\n \"info\",\n \"warning\",\n \"error\",\n] as const;\n\nexport type CalloutProps = {\n /**\n * Supplementary content rendered inside the callout body, typically a list or structured markup.\n */\n children?: ReactNode;\n /**\n * Sets the ARIA live-region role.\n * - If `'status'`, announces updates politely; use for non-critical dynamic messages.\n * - If `'alert'`, announces updates assertively; use for errors or urgent information.\n */\n role?: (typeof calloutRoleValues)[number];\n /**\n * Visual severity level that controls the callout's color and icon.\n */\n severity: (typeof calloutSeverityValues)[number];\n /**\n * Primary message text displayed inside the callout body.\n */\n text?: string;\n /**\n * Heading text displayed at the top of the callout, above the body content.\n */\n title?: string;\n} & (\n | {\n children?: never;\n text: string;\n }\n | {\n children: ReactNode;\n text?: never;\n }\n) &\n // if linkText is provided, either linkUrl or onLinkClick must be provided\n (\n | {\n /** The `rel` attribute forwarded to the action link. */\n linkRel?: LinkProps[\"rel\"];\n /** The `target` attribute forwarded to the action link. */\n linkTarget?: LinkProps[\"target\"];\n /** Visible label for the action link rendered below the Callout content. */\n linkText: string;\n /** URL the action link navigates to. Required when `onLinkClick` is not provided. */\n linkUrl: LinkProps[\"href\"];\n onLinkClick?: never;\n }\n | {\n linkRel?: never;\n linkTarget?: never;\n /** Visible label for the action link rendered below the Callout content. */\n linkText: string;\n linkUrl?: never;\n /** Click handler for the action link. Required when `linkUrl` is not provided. */\n onLinkClick: LinkProps[\"onClick\"];\n }\n | {\n linkRel?: never;\n linkTarget?: never;\n linkText?: never;\n linkUrl?: never;\n onLinkClick?: never;\n }\n ) &\n Pick<HtmlProps, \"testId\" | \"translate\">;\n\nconst ContentContainer = styled(\"div\", {\n shouldForwardProp: (prop) => prop !== \"odysseyDesignTokens\",\n})<{ odysseyDesignTokens: DesignTokens }>(({ odysseyDesignTokens }) => ({\n \"& > * + *\": {\n marginBlockStart: odysseyDesignTokens.Spacing4,\n },\n}));\n\n/**\n * A non-dismissible inline message that draws attention to important contextual information. Use\n * Callout to surface status, warnings, errors, or supplementary guidance within a page or form.\n */\nconst Callout = ({\n children,\n linkRel,\n linkTarget,\n linkText,\n linkUrl,\n onLinkClick,\n role,\n severity,\n testId,\n text,\n title,\n translate,\n}: CalloutProps) => {\n const { t } = useTranslation();\n const odysseyDesignTokens = useOdysseyDesignTokens();\n\n return (\n <Alert\n aria-label={t(`severity.${severity}`)}\n data-se={testId}\n role={role}\n severity={severity}\n variant=\"callout\"\n >\n {title && <AlertTitle translate={translate}>{title}</AlertTitle>}\n\n <ContentContainer odysseyDesignTokens={odysseyDesignTokens}>\n {children && <Box component=\"div\">{children}</Box>}\n {text && <Paragraph>{text}</Paragraph>}\n {linkText && (\n <Box>\n <Link\n href={linkUrl ?? \"#\"}\n onClick={onLinkClick}\n rel={linkRel}\n target={linkTarget}\n variant=\"monochrome\"\n >\n {linkText}\n </Link>\n </Box>\n )}\n </ContentContainer>\n </Alert>\n );\n};\n\nconst MemoizedCallout = memo(Callout);\nMemoizedCallout.displayName = \"Callout\";\n\nexport { MemoizedCallout as Callout };\n"],"mappings":";;;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,OAAOA,MAAM,MAAM,iBAAiB;AAEpC,SAASC,IAAI,QAAmB,OAAO;AAIvC,SAASC,cAAc,QAAQ,0BAA0B;AACzD,SAASC,IAAI,QAAmB,WAAW;AAC3C,SAEEC,sBAAsB,QACjB,iCAAiC;AACxC,SAASC,SAAS,QAAQ,iBAAiB;AAAC,SAAAC,GAAA,IAAAC,IAAA,EAAAC,IAAA,IAAAC,KAAA;AAE5C,OAAO,MAAMC,iBAAiB,GAAG,CAAC,QAAQ,EAAE,OAAO,CAAU;AAC7D,OAAO,MAAMC,qBAAqB,GAAG,CACnC,SAAS,EACT,MAAM,EACN,SAAS,EACT,OAAO,CACC;AAmEV,MAAMC,gBAAgB,GAAGZ,MAAM,CAAC,KAAK,EAAE;EACrCa,iBAAiB,EAAGC,IAAI,IAAKA,IAAI,KAAK;AACxC,CAAC,CAAC,CAAwC,CAAC;EAAEC;AAAoB,CAAC,MAAM;EACtE,WAAW,EAAE;IACXC,gBAAgB,EAAED,mBAAmB,CAACE;EACxC;AACF,CAAC,CAAC,CAAC;AAMH,MAAMC,OAAO,GAAGA,CAAC;EACfC,QAAQ;EACRC,OAAO;EACPC,UAAU;EACVC,QAAQ;EACRC,OAAO;EACPC,WAAW;EACXC,IAAI;EACJC,QAAQ;EACRC,MAAM;EACNC,IAAI;EACJC,KAAK;EACLC;AACY,CAAC,KAAK;EAClB,MAAM;IAAEC;EAAE,CAAC,GAAG7B,cAAc,CAAC,CAAC;EAC9B,MAAMa,mBAAmB,GAAGX,sBAAsB,CAAC,CAAC;EAEpD,OACEK,KAAA,CAAAuB,MAAA;IACE,cAAYD,CAAC,CAAC,YAAYL,QAAQ,EAAE,CAAE;IACtC,WAASC,MAAO;IAChBF,IAAI,EAAEA,IAAK;IACXC,QAAQ,EAAEA,QAAS;IACnBO,OAAO,EAAC,SAAS;IAAAd,QAAA,GAEhBU,KAAK,IAAItB,IAAA,CAAA2B,WAAA;MAAYJ,SAAS,EAAEA,SAAU;MAAAX,QAAA,EAAEU;IAAK,CAAa,CAAC,EAEhEpB,KAAA,CAACG,gBAAgB;MAACG,mBAAmB,EAAEA,mBAAoB;MAAAI,QAAA,GACxDA,QAAQ,IAAIZ,IAAA,CAAA4B,IAAA;QAAKC,SAAS,EAAC,KAAK;QAAAjB,QAAA,EAAEA;MAAQ,CAAM,CAAC,EACjDS,IAAI,IAAIrB,IAAA,CAACF,SAAS;QAAAc,QAAA,EAAES;MAAI,CAAY,CAAC,EACrCN,QAAQ,IACPf,IAAA,CAAA4B,IAAA;QAAAhB,QAAA,EACEZ,IAAA,CAACJ,IAAI;UACHkC,IAAI,EAAEd,OAAO,IAAI,GAAI;UACrBe,OAAO,EAAEd,WAAY;UACrBe,GAAG,EAAEnB,OAAQ;UACboB,MAAM,EAAEnB,UAAW;UACnBY,OAAO,EAAC,YAAY;UAAAd,QAAA,EAEnBG;QAAQ,CACL;MAAC,CACJ,CACN;IAAA,CACe,CAAC;EAAA,CACd,CAAC;AAEZ,CAAC;AAED,MAAMmB,eAAe,GAAGxC,IAAI,CAACiB,OAAO,CAAC;AACrCuB,eAAe,CAACC,WAAW,yCAAY;AAEvC,SAASD,eAAe,IAAIvB,OAAO","ignoreList":[]}
package/dist/esm/Card.js CHANGED
@@ -331,6 +331,6 @@ const Card = ({
331
331
  });
332
332
  };
333
333
  const MemoizedCard = memo(Card);
334
- MemoizedCard.displayName = "Card::pkg=odyssey&odysseyV=1.68.0";
334
+ MemoizedCard.displayName = "Card::pkg=odyssey&odysseyV=1.69.0";
335
335
  export { MemoizedCard as Card };
336
336
  //# sourceMappingURL=Card.js.map
@@ -0,0 +1,70 @@
1
+ /*!
2
+ * Copyright (c) 2026-present, Okta, Inc. and/or its affiliates. All rights reserved.
3
+ * The Okta software accompanied by this notice is provided pursuant to the Apache License, Version 2.0 (the "License.")
4
+ *
5
+ * You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0.
6
+ * Unless required by applicable law or agreed to in writing, software
7
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
8
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
9
+ *
10
+ * See the License for the specific language governing permissions and limitations under the License.
11
+ */
12
+
13
+ import { memo } from "react";
14
+ import { Button } from "../Buttons/Button.js";
15
+ import { createOdysseyStyledComponent } from "../createOdysseyStyledComponent.js";
16
+ import { useTranslation } from "../i18n.generated/i18n.js";
17
+ import { WarningIcon } from "../icons.generated/Warning.js";
18
+ import { Heading5, Paragraph } from "../Typography.js";
19
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
20
+ const OuterContainer = createOdysseyStyledComponent({
21
+ tag: "div"
22
+ })(({
23
+ odysseyDesignTokens
24
+ }) => ({
25
+ alignItems: "center",
26
+ display: "flex",
27
+ flexDirection: "column",
28
+ gap: odysseyDesignTokens.Spacing5,
29
+ height: "100%",
30
+ justifyContent: "center",
31
+ textAlign: "center"
32
+ }));
33
+ const TextGroup = createOdysseyStyledComponent({
34
+ tag: "div"
35
+ })(({
36
+ odysseyDesignTokens
37
+ }) => ({
38
+ display: "flex",
39
+ flexDirection: "column",
40
+ gap: odysseyDesignTokens.Spacing2,
41
+ maxWidth: odysseyDesignTokens.TypographyLineLengthMax,
42
+ "& > h4, & > p": {
43
+ marginBlock: 0
44
+ }
45
+ }));
46
+ const ChartError = ({
47
+ onRetry
48
+ }) => {
49
+ const {
50
+ t
51
+ } = useTranslation();
52
+ return _jsxs(OuterContainer, {
53
+ children: [_jsx(WarningIcon, {}), _jsxs(TextGroup, {
54
+ role: "alert",
55
+ children: [_jsx(Heading5, {
56
+ children: t("chart.error.heading")
57
+ }), _jsx(Paragraph, {
58
+ children: t("chart.error.text")
59
+ })]
60
+ }), onRetry && _jsx(Button, {
61
+ label: t("chart.error.retry"),
62
+ onClick: onRetry,
63
+ variant: "secondary"
64
+ })]
65
+ });
66
+ };
67
+ const MemoizedChartError = memo(ChartError);
68
+ MemoizedChartError.displayName = "ChartError::pkg=odyssey&odysseyV=1.69.0";
69
+ export { MemoizedChartError as ChartError };
70
+ //# sourceMappingURL=ChartError.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ChartError.js","names":["memo","Button","createOdysseyStyledComponent","useTranslation","WarningIcon","Heading5","Paragraph","jsx","_jsx","jsxs","_jsxs","OuterContainer","tag","odysseyDesignTokens","alignItems","display","flexDirection","gap","Spacing5","height","justifyContent","textAlign","TextGroup","Spacing2","maxWidth","TypographyLineLengthMax","marginBlock","ChartError","onRetry","t","children","role","label","onClick","variant","MemoizedChartError","displayName"],"sources":["../../../src/Charts/ChartError.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 { memo } from \"react\";\n\nimport { Button } from \"../Buttons/Button.js\";\nimport { createOdysseyStyledComponent } from \"../createOdysseyStyledComponent.js\";\nimport { useTranslation } from \"../i18n.generated/i18n.js\";\nimport { WarningIcon } from \"../icons.generated/Warning.js\";\nimport { Heading5, Paragraph } from \"../Typography.js\";\n\n/** The props for a chart error state. */\nexport type ChartErrorProps = {\n /**\n * The chart calls this function when a user clicks the retry button in the\n * error state. The error state shows no retry button when the caller\n * omits this property.\n */\n onRetry?: () => void;\n};\n\n// The parent is a single-row grid that stretches this component to the\n// chart's full height. Centering here, rather than in the parent, keeps the\n// centering rule next to the content it centers.\nconst OuterContainer = createOdysseyStyledComponent({ tag: \"div\" })(\n ({ odysseyDesignTokens }) => ({\n alignItems: \"center\",\n display: \"flex\",\n flexDirection: \"column\",\n gap: odysseyDesignTokens.Spacing5,\n height: \"100%\",\n justifyContent: \"center\",\n textAlign: \"center\",\n }),\n);\n\n// `Heading4` renders an `h4` and `Paragraph` renders a `p`, and each carries\n// its own block margins. Those margins would add to the gap below and throw\n// off the measured spacing, so this resets them. The selector names both\n// elements rather than every child, so a later child keeps its own margins.\nconst TextGroup = createOdysseyStyledComponent({ tag: \"div\" })(\n ({ odysseyDesignTokens }) => ({\n display: \"flex\",\n flexDirection: \"column\",\n gap: odysseyDesignTokens.Spacing2,\n maxWidth: odysseyDesignTokens.TypographyLineLengthMax,\n\n \"& > h4, & > p\": {\n marginBlock: 0,\n },\n }),\n);\n\n/**\n * Renders the error state for a chart. A chart shows this component in\n * place of its plot when the chart fails to load its data.\n */\nconst ChartError = ({ onRetry }: ChartErrorProps) => {\n const { t } = useTranslation();\n\n return (\n <OuterContainer>\n <WarningIcon />\n <TextGroup role=\"alert\">\n <Heading5>{t(\"chart.error.heading\")}</Heading5>\n <Paragraph>{t(\"chart.error.text\")}</Paragraph>\n </TextGroup>\n {onRetry && (\n <Button\n label={t(\"chart.error.retry\")}\n onClick={onRetry}\n variant=\"secondary\"\n />\n )}\n </OuterContainer>\n );\n};\n\nconst MemoizedChartError = memo(ChartError);\nMemoizedChartError.displayName = \"ChartError\";\n\nexport { MemoizedChartError as ChartError };\n"],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,SAASA,IAAI,QAAQ,OAAO;AAE5B,SAASC,MAAM,QAAQ,sBAAsB;AAC7C,SAASC,4BAA4B,QAAQ,oCAAoC;AACjF,SAASC,cAAc,QAAQ,2BAA2B;AAC1D,SAASC,WAAW,QAAQ,+BAA+B;AAC3D,SAASC,QAAQ,EAAEC,SAAS,QAAQ,kBAAkB;AAAC,SAAAC,GAAA,IAAAC,IAAA,EAAAC,IAAA,IAAAC,KAAA;AAevD,MAAMC,cAAc,GAAGT,4BAA4B,CAAC;EAAEU,GAAG,EAAE;AAAM,CAAC,CAAC,CACjE,CAAC;EAAEC;AAAoB,CAAC,MAAM;EAC5BC,UAAU,EAAE,QAAQ;EACpBC,OAAO,EAAE,MAAM;EACfC,aAAa,EAAE,QAAQ;EACvBC,GAAG,EAAEJ,mBAAmB,CAACK,QAAQ;EACjCC,MAAM,EAAE,MAAM;EACdC,cAAc,EAAE,QAAQ;EACxBC,SAAS,EAAE;AACb,CAAC,CACH,CAAC;AAMD,MAAMC,SAAS,GAAGpB,4BAA4B,CAAC;EAAEU,GAAG,EAAE;AAAM,CAAC,CAAC,CAC5D,CAAC;EAAEC;AAAoB,CAAC,MAAM;EAC5BE,OAAO,EAAE,MAAM;EACfC,aAAa,EAAE,QAAQ;EACvBC,GAAG,EAAEJ,mBAAmB,CAACU,QAAQ;EACjCC,QAAQ,EAAEX,mBAAmB,CAACY,uBAAuB;EAErD,eAAe,EAAE;IACfC,WAAW,EAAE;EACf;AACF,CAAC,CACH,CAAC;AAMD,MAAMC,UAAU,GAAGA,CAAC;EAAEC;AAAyB,CAAC,KAAK;EACnD,MAAM;IAAEC;EAAE,CAAC,GAAG1B,cAAc,CAAC,CAAC;EAE9B,OACEO,KAAA,CAACC,cAAc;IAAAmB,QAAA,GACbtB,IAAA,CAACJ,WAAW,IAAE,CAAC,EACfM,KAAA,CAACY,SAAS;MAACS,IAAI,EAAC,OAAO;MAAAD,QAAA,GACrBtB,IAAA,CAACH,QAAQ;QAAAyB,QAAA,EAAED,CAAC,CAAC,qBAAqB;MAAC,CAAW,CAAC,EAC/CrB,IAAA,CAACF,SAAS;QAAAwB,QAAA,EAAED,CAAC,CAAC,kBAAkB;MAAC,CAAY,CAAC;IAAA,CACrC,CAAC,EACXD,OAAO,IACNpB,IAAA,CAACP,MAAM;MACL+B,KAAK,EAAEH,CAAC,CAAC,mBAAmB,CAAE;MAC9BI,OAAO,EAAEL,OAAQ;MACjBM,OAAO,EAAC;IAAW,CACpB,CACF;EAAA,CACa,CAAC;AAErB,CAAC;AAED,MAAMC,kBAAkB,GAAGnC,IAAI,CAAC2B,UAAU,CAAC;AAC3CQ,kBAAkB,CAACC,WAAW,4CAAe;AAE7C,SAASD,kBAAkB,IAAIR,UAAU","ignoreList":[]}