@okta/odyssey-react-mui 1.67.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 (655) 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 +24 -6
  9. package/dist/cjs/Buttons/BaseButton.cjs.map +1 -1
  10. package/dist/cjs/Buttons/BaseMenuButton.cjs +1 -1
  11. package/dist/cjs/Buttons/Button.cjs +1 -1
  12. package/dist/cjs/Buttons/MenuButton.cjs +1 -1
  13. package/dist/cjs/Buttons/MenuItem.cjs +1 -1
  14. package/dist/cjs/Callout.cjs +1 -1
  15. package/dist/cjs/Callout.cjs.map +1 -1
  16. package/dist/cjs/Card.cjs +1 -1
  17. package/dist/cjs/Charts/ChartError.cjs +73 -0
  18. package/dist/cjs/Charts/ChartError.cjs.map +1 -0
  19. package/dist/cjs/Charts/ChartFrame.cjs +112 -0
  20. package/dist/cjs/Charts/ChartFrame.cjs.map +1 -0
  21. package/dist/cjs/Charts/ChartPopoverContent.cjs +56 -0
  22. package/dist/cjs/Charts/ChartPopoverContent.cjs.map +1 -0
  23. package/dist/cjs/Charts/LineChart.cjs +268 -0
  24. package/dist/cjs/Charts/LineChart.cjs.map +1 -0
  25. package/dist/cjs/Charts/chartTokens.cjs +117 -0
  26. package/dist/cjs/Charts/chartTokens.cjs.map +1 -0
  27. package/dist/cjs/Charts/chartTypes.cjs +6 -0
  28. package/dist/cjs/Charts/chartTypes.cjs.map +1 -0
  29. package/dist/cjs/Charts/formatChartValue.cjs +38 -0
  30. package/dist/cjs/Charts/formatChartValue.cjs.map +1 -0
  31. package/dist/cjs/Charts/getChartSeriesPointData.cjs +52 -0
  32. package/dist/cjs/Charts/getChartSeriesPointData.cjs.map +1 -0
  33. package/dist/cjs/Charts/hasDuplicateSeries.cjs +21 -0
  34. package/dist/cjs/Charts/hasDuplicateSeries.cjs.map +1 -0
  35. package/dist/cjs/Charts/index.cjs +13 -0
  36. package/dist/cjs/Charts/index.cjs.map +1 -0
  37. package/dist/cjs/Charts/resolveChartLocale.cjs +28 -0
  38. package/dist/cjs/Charts/resolveChartLocale.cjs.map +1 -0
  39. package/dist/cjs/Charts/useChartValueFormatter.cjs +35 -0
  40. package/dist/cjs/Charts/useChartValueFormatter.cjs.map +1 -0
  41. package/dist/cjs/Charts/useStableValue.cjs +28 -0
  42. package/dist/cjs/Charts/useStableValue.cjs.map +1 -0
  43. package/dist/cjs/CircularProgress.cjs +1 -1
  44. package/dist/cjs/ConditionalWrapper.cjs +1 -1
  45. package/dist/cjs/DataTable/DataTable.cjs +1 -1
  46. package/dist/cjs/DataTable/DataTableRowActions.cjs +1 -1
  47. package/dist/cjs/DataTable/DataTableSettings.cjs +1 -1
  48. package/dist/cjs/DatePickers/DateField.cjs +1 -1
  49. package/dist/cjs/DatePickers/DateFieldActionBar.cjs +1 -1
  50. package/dist/cjs/DatePickers/DateFieldLocalizationProvider.cjs +1 -1
  51. package/dist/cjs/DatePickers/DateFieldLocalizationProvider.cjs.map +1 -1
  52. package/dist/cjs/DatePickers/DatePicker.cjs +3 -4
  53. package/dist/cjs/DatePickers/DatePicker.cjs.map +1 -1
  54. package/dist/cjs/DatePickers/TimeZonePicker.cjs +1 -1
  55. package/dist/cjs/DatePickers/useOdysseyDateFields.cjs +10 -28
  56. package/dist/cjs/DatePickers/useOdysseyDateFields.cjs.map +1 -1
  57. package/dist/cjs/Dialog.cjs +1 -1
  58. package/dist/cjs/Drawer.cjs +19 -6
  59. package/dist/cjs/Drawer.cjs.map +1 -1
  60. package/dist/cjs/EmptyState.cjs +1 -1
  61. package/dist/cjs/ErrorMessageList.cjs +1 -1
  62. package/dist/cjs/Field.cjs +1 -1
  63. package/dist/cjs/FieldError.cjs +1 -1
  64. package/dist/cjs/FieldHint.cjs +1 -1
  65. package/dist/cjs/FieldLabel.cjs +1 -1
  66. package/dist/cjs/Fields/Checkbox.cjs +1 -1
  67. package/dist/cjs/Fields/CheckboxGroup.cjs +1 -1
  68. package/dist/cjs/Fields/Radio.cjs +1 -1
  69. package/dist/cjs/Fields/RadioGroup.cjs +1 -1
  70. package/dist/cjs/Fieldset.cjs +1 -1
  71. package/dist/cjs/FileUploader/FileUploadIllustration.cjs +1 -1
  72. package/dist/cjs/FileUploader/FileUploadPreview.cjs +1 -1
  73. package/dist/cjs/FileUploader/FileUploader.cjs +1 -1
  74. package/dist/cjs/Form.cjs +1 -1
  75. package/dist/cjs/FullScreenOverlay.cjs +1 -1
  76. package/dist/cjs/FullScreenOverlayContext.cjs +1 -1
  77. package/dist/cjs/HintLink.cjs +1 -1
  78. package/dist/cjs/IconWithTooltip.cjs +1 -1
  79. package/dist/cjs/Link.cjs +1 -1
  80. package/dist/cjs/MuiPropsChild.cjs +1 -1
  81. package/dist/cjs/NativeSelect.cjs +1 -1
  82. package/dist/cjs/OdysseyCacheProvider.cjs +1 -1
  83. package/dist/cjs/OdysseyProvider.cjs +1 -1
  84. package/dist/cjs/OdysseyThemeProvider.cjs +3 -2
  85. package/dist/cjs/OdysseyThemeProvider.cjs.map +1 -1
  86. package/dist/cjs/OdysseyThemeProviderPropsContext.cjs +1 -1
  87. package/dist/cjs/OdysseyThemeProviderPropsContext.cjs.map +1 -1
  88. package/dist/cjs/Pagination/Pagination.cjs +1 -1
  89. package/dist/cjs/PasswordField.cjs +1 -1
  90. package/dist/cjs/ScreenReaderText.cjs +1 -1
  91. package/dist/cjs/SearchField.cjs +1 -1
  92. package/dist/cjs/Select.cjs +1 -1
  93. package/dist/cjs/Stack.cjs +1 -1
  94. package/dist/cjs/Status.cjs +1 -1
  95. package/dist/cjs/Surface.cjs +1 -1
  96. package/dist/cjs/Switch.cjs +2 -2
  97. package/dist/cjs/Tabs.cjs +1 -1
  98. package/dist/cjs/Tag.cjs +1 -1
  99. package/dist/cjs/TagList.cjs +1 -1
  100. package/dist/cjs/TextField.cjs +1 -1
  101. package/dist/cjs/Toast.cjs +1 -1
  102. package/dist/cjs/ToastStack.cjs +1 -1
  103. package/dist/cjs/Tooltip.cjs +1 -1
  104. package/dist/cjs/Typography.cjs +40 -13
  105. package/dist/cjs/Typography.cjs.map +1 -1
  106. package/dist/cjs/icons.generated/Add.cjs +1 -1
  107. package/dist/cjs/icons.generated/AddCircle.cjs +1 -1
  108. package/dist/cjs/icons.generated/Apps.cjs +1 -1
  109. package/dist/cjs/icons.generated/AppsSelected.cjs +1 -1
  110. package/dist/cjs/icons.generated/ArrowBottom.cjs +1 -1
  111. package/dist/cjs/icons.generated/ArrowDown.cjs +1 -1
  112. package/dist/cjs/icons.generated/ArrowLeft.cjs +1 -1
  113. package/dist/cjs/icons.generated/ArrowLowerLeft.cjs +1 -1
  114. package/dist/cjs/icons.generated/ArrowLowerRight.cjs +1 -1
  115. package/dist/cjs/icons.generated/ArrowRight.cjs +1 -1
  116. package/dist/cjs/icons.generated/ArrowTop.cjs +1 -1
  117. package/dist/cjs/icons.generated/ArrowUnsorted.cjs +1 -1
  118. package/dist/cjs/icons.generated/ArrowUp.cjs +1 -1
  119. package/dist/cjs/icons.generated/ArrowUpperLeft.cjs +1 -1
  120. package/dist/cjs/icons.generated/ArrowUpperRight.cjs +1 -1
  121. package/dist/cjs/icons.generated/Bug.cjs +1 -1
  122. package/dist/cjs/icons.generated/Calendar.cjs +1 -1
  123. package/dist/cjs/icons.generated/Call.cjs +1 -1
  124. package/dist/cjs/icons.generated/Chat.cjs +1 -1
  125. package/dist/cjs/icons.generated/Check.cjs +1 -1
  126. package/dist/cjs/icons.generated/CheckCircleFilled.cjs +1 -1
  127. package/dist/cjs/icons.generated/ChevronDown.cjs +1 -1
  128. package/dist/cjs/icons.generated/ChevronLeft.cjs +1 -1
  129. package/dist/cjs/icons.generated/ChevronRight.cjs +1 -1
  130. package/dist/cjs/icons.generated/ChevronUp.cjs +1 -1
  131. package/dist/cjs/icons.generated/Clock.cjs +1 -1
  132. package/dist/cjs/icons.generated/Close.cjs +1 -1
  133. package/dist/cjs/icons.generated/CloseCircleFilled.cjs +1 -1
  134. package/dist/cjs/icons.generated/CollapseLeft.cjs +1 -1
  135. package/dist/cjs/icons.generated/CollapseRight.cjs +1 -1
  136. package/dist/cjs/icons.generated/Copy.cjs +1 -1
  137. package/dist/cjs/icons.generated/Customizations.cjs +1 -1
  138. package/dist/cjs/icons.generated/CustomizationsSelected.cjs +1 -1
  139. package/dist/cjs/icons.generated/DangerDiamond.cjs +1 -1
  140. package/dist/cjs/icons.generated/DangerDiamondFilled.cjs +1 -1
  141. package/dist/cjs/icons.generated/Delete.cjs +1 -1
  142. package/dist/cjs/icons.generated/Deny.cjs +1 -1
  143. package/dist/cjs/icons.generated/Devices.cjs +1 -1
  144. package/dist/cjs/icons.generated/Directory.cjs +1 -1
  145. package/dist/cjs/icons.generated/DirectorySelected.cjs +1 -1
  146. package/dist/cjs/icons.generated/Documentation.cjs +1 -1
  147. package/dist/cjs/icons.generated/Download.cjs +1 -1
  148. package/dist/cjs/icons.generated/DragIndicator.cjs +1 -1
  149. package/dist/cjs/icons.generated/Edit.cjs +1 -1
  150. package/dist/cjs/icons.generated/ExpandLeft.cjs +1 -1
  151. package/dist/cjs/icons.generated/ExpandRight.cjs +1 -1
  152. package/dist/cjs/icons.generated/ExternalLink.cjs +1 -1
  153. package/dist/cjs/icons.generated/Filter.cjs +1 -1
  154. package/dist/cjs/icons.generated/Folder.cjs +1 -1
  155. package/dist/cjs/icons.generated/Globe.cjs +1 -1
  156. package/dist/cjs/icons.generated/Grid.cjs +1 -1
  157. package/dist/cjs/icons.generated/Group.cjs +1 -1
  158. package/dist/cjs/icons.generated/Happy.cjs +1 -1
  159. package/dist/cjs/icons.generated/Hide.cjs +1 -1
  160. package/dist/cjs/icons.generated/Home.cjs +1 -1
  161. package/dist/cjs/icons.generated/HomeSelected.cjs +1 -1
  162. package/dist/cjs/icons.generated/IdentityGovernance.cjs +1 -1
  163. package/dist/cjs/icons.generated/IdentityGovernanceSelected.cjs +1 -1
  164. package/dist/cjs/icons.generated/IdentityGovernanceSelected.cjs.map +1 -1
  165. package/dist/cjs/icons.generated/InformationCircle.cjs +1 -1
  166. package/dist/cjs/icons.generated/InformationCircleFilled.cjs +1 -1
  167. package/dist/cjs/icons.generated/Link.cjs +1 -1
  168. package/dist/cjs/icons.generated/List.cjs +1 -1
  169. package/dist/cjs/icons.generated/Lock.cjs +1 -1
  170. package/dist/cjs/icons.generated/Menu.cjs +1 -1
  171. package/dist/cjs/icons.generated/More.cjs +1 -1
  172. package/dist/cjs/icons.generated/Neutral.cjs +1 -1
  173. package/dist/cjs/icons.generated/Notification.cjs +1 -1
  174. package/dist/cjs/icons.generated/Pause.cjs +1 -1
  175. package/dist/cjs/icons.generated/QuestionCircle.cjs +1 -1
  176. package/dist/cjs/icons.generated/QuestionCircleFilled.cjs +1 -1
  177. package/dist/cjs/icons.generated/Refresh.cjs +1 -1
  178. package/dist/cjs/icons.generated/Reports.cjs +1 -1
  179. package/dist/cjs/icons.generated/ReportsSelected.cjs +1 -1
  180. package/dist/cjs/icons.generated/Reset.cjs +1 -1
  181. package/dist/cjs/icons.generated/Resume.cjs +1 -1
  182. package/dist/cjs/icons.generated/Sad.cjs +1 -1
  183. package/dist/cjs/icons.generated/Same.cjs +1 -1
  184. package/dist/cjs/icons.generated/Search.cjs +1 -1
  185. package/dist/cjs/icons.generated/Security.cjs +1 -1
  186. package/dist/cjs/icons.generated/SecuritySelected.cjs +1 -1
  187. package/dist/cjs/icons.generated/Send.cjs +1 -1
  188. package/dist/cjs/icons.generated/Server.cjs +1 -1
  189. package/dist/cjs/icons.generated/Settings.cjs +1 -1
  190. package/dist/cjs/icons.generated/SettingsSelected.cjs +1 -1
  191. package/dist/cjs/icons.generated/Show.cjs +1 -1
  192. package/dist/cjs/icons.generated/Sparkle.cjs +1 -1
  193. package/dist/cjs/icons.generated/Subtract.cjs +1 -1
  194. package/dist/cjs/icons.generated/Sync.cjs +1 -1
  195. package/dist/cjs/icons.generated/ThumbsDown.cjs +1 -1
  196. package/dist/cjs/icons.generated/ThumbsUp.cjs +1 -1
  197. package/dist/cjs/icons.generated/Unlock.cjs +1 -1
  198. package/dist/cjs/icons.generated/Upload.cjs +1 -1
  199. package/dist/cjs/icons.generated/User.cjs +1 -1
  200. package/dist/cjs/icons.generated/Video.cjs +1 -1
  201. package/dist/cjs/icons.generated/Warning.cjs +1 -1
  202. package/dist/cjs/icons.generated/WarningFilled.cjs +1 -1
  203. package/dist/cjs/icons.generated/Workflows.cjs +1 -1
  204. package/dist/cjs/icons.generated/WorkflowsSelected.cjs +1 -1
  205. package/dist/cjs/index.cjs +25 -18
  206. package/dist/cjs/index.cjs.map +1 -1
  207. package/dist/cjs/labs/AppTile.cjs +1 -1
  208. package/dist/cjs/labs/DataFilters.cjs +2 -2
  209. package/dist/cjs/labs/DataTable.cjs +1 -1
  210. package/dist/cjs/labs/DataTablePagination.cjs +1 -1
  211. package/dist/cjs/labs/DataView/BulkActionsMenu.cjs +1 -1
  212. package/dist/cjs/labs/DataView/CardLayoutContent.cjs +2 -2
  213. package/dist/cjs/labs/DataView/DataCard.cjs +1 -1
  214. package/dist/cjs/labs/DataView/DataTable.cjs +1 -1
  215. package/dist/cjs/labs/DataView/DataView.cjs +1 -1
  216. package/dist/cjs/labs/DataView/DetailPanel.cjs +1 -1
  217. package/dist/cjs/labs/DataView/LayoutSwitcher.cjs +1 -1
  218. package/dist/cjs/labs/DataView/RowActions.cjs +1 -1
  219. package/dist/cjs/labs/DataView/TableLayoutContent.cjs +1 -1
  220. package/dist/cjs/labs/DataView/TableSettings.cjs +1 -1
  221. package/dist/cjs/labs/DatePickers/DateTimeField.cjs +1 -1
  222. package/dist/cjs/labs/DatePickers/DateTimePicker.cjs +3 -4
  223. package/dist/cjs/labs/DatePickers/DateTimePicker.cjs.map +1 -1
  224. package/dist/cjs/labs/OdysseyPickers/ComposablePicker.cjs +1 -1
  225. package/dist/cjs/labs/OdysseyPickers/Picker.cjs +1 -1
  226. package/dist/cjs/labs/OdysseyPickers/PickerVirtualizationListBox.cjs +1 -1
  227. package/dist/cjs/labs/OdysseyPickers/PickerWithOptionAdornment.cjs +1 -1
  228. package/dist/cjs/labs/OdysseyPickers/SearchDropdown.cjs +1 -1
  229. package/dist/cjs/labs/PageTemplate/DocumentationLink.cjs +1 -1
  230. package/dist/cjs/labs/PageTemplate/Layout.cjs +1 -1
  231. package/dist/cjs/labs/PageTemplate/PageTemplate.cjs +1 -1
  232. package/dist/cjs/labs/PaginatedTable.cjs +1 -1
  233. package/dist/cjs/labs/StaticTable.cjs +1 -1
  234. package/dist/cjs/labs/UserProfile.cjs +1 -1
  235. package/dist/cjs/labs/UserProfileMenuButton.cjs +1 -1
  236. package/dist/cjs/logos.generated/Duo.cjs +1 -1
  237. package/dist/cjs/logos.generated/GoogleAuth.cjs +1 -1
  238. package/dist/cjs/logos.generated/OktaVerify.cjs +1 -1
  239. package/dist/cjs/logos.generated/Persona.cjs +1 -1
  240. package/dist/cjs/logos.generated/SymantecVip.cjs +1 -1
  241. package/dist/cjs/logos.generated/Yubikey.cjs +1 -1
  242. package/dist/cjs/properties/ts/odyssey-react-mui.cjs +4 -0
  243. package/dist/cjs/properties/ts/odyssey-react-mui.cjs.map +1 -1
  244. package/dist/cjs/properties/ts/odyssey-react-mui_ht.cjs +1 -1
  245. package/dist/cjs/properties/ts/odyssey-react-mui_ht.cjs.map +1 -1
  246. package/dist/cjs/properties/ts/odyssey-react-mui_ok_PL.cjs +4 -0
  247. package/dist/cjs/properties/ts/odyssey-react-mui_ok_PL.cjs.map +1 -1
  248. package/dist/cjs/properties/ts/odyssey-react-mui_ok_SK.cjs +4 -0
  249. package/dist/cjs/properties/ts/odyssey-react-mui_ok_SK.cjs.map +1 -1
  250. package/dist/cjs/properties/ts/odyssey-react-mui_zh_TW.cjs +1 -1
  251. package/dist/cjs/properties/ts/odyssey-react-mui_zh_TW.cjs.map +1 -1
  252. package/dist/cjs/theme/components/Button.cjs +6 -6
  253. package/dist/cjs/theme/components/Button.cjs.map +1 -1
  254. package/dist/cjs/theme/components/Dialog.cjs +1 -1
  255. package/dist/cjs/theme/components/Dialog.cjs.map +1 -1
  256. package/dist/cjs/theme/components/Drawer.cjs +5 -1
  257. package/dist/cjs/theme/components/Drawer.cjs.map +1 -1
  258. package/dist/cjs/theme/theme.cjs +22 -0
  259. package/dist/cjs/theme/theme.cjs.map +1 -1
  260. package/dist/cjs/theme/useAppElementContainerQuery.cjs +37 -0
  261. package/dist/cjs/theme/useAppElementContainerQuery.cjs.map +1 -0
  262. package/dist/cjs/theme/useContainerQuery.cjs +94 -0
  263. package/dist/cjs/theme/useContainerQuery.cjs.map +1 -0
  264. package/dist/cjs/theme/useMediaQuery.cjs +9 -6
  265. package/dist/cjs/theme/useMediaQuery.cjs.map +1 -1
  266. package/dist/cjs/ui-shell/AppSwitcher/AppSwitcher.cjs +1 -1
  267. package/dist/cjs/ui-shell/InnerAppContainer.cjs +1 -1
  268. package/dist/cjs/ui-shell/NarrowUiShellContent.cjs +1 -1
  269. package/dist/cjs/ui-shell/SideNav/NavAccordion.cjs +1 -1
  270. package/dist/cjs/ui-shell/SideNav/SideNav.cjs +1 -1
  271. package/dist/cjs/ui-shell/SideNav/SideNavFooterContent.cjs +1 -1
  272. package/dist/cjs/ui-shell/SideNav/SideNavHeader.cjs +1 -1
  273. package/dist/cjs/ui-shell/SideNav/SideNavItemContent.cjs +2 -2
  274. package/dist/cjs/ui-shell/SideNav/SideNavItemLinkContent.cjs +1 -1
  275. package/dist/cjs/ui-shell/SideNav/SideNavSortableList.cjs +1 -1
  276. package/dist/cjs/ui-shell/SideNav/SideNavToggleButton.cjs +2 -2
  277. package/dist/cjs/ui-shell/SkipToContent.cjs +1 -1
  278. package/dist/cjs/ui-shell/TopNav/HamburgerMenuIcon.cjs +1 -1
  279. package/dist/cjs/ui-shell/TopNav/TopNav.cjs +1 -1
  280. package/dist/cjs/ui-shell/TopNav/TopNavLinksList.cjs +1 -1
  281. package/dist/cjs/ui-shell/TopNav/TopNavListItem.cjs +1 -1
  282. package/dist/cjs/ui-shell/UiShell.cjs +1 -1
  283. package/dist/cjs/ui-shell/UiShellLogo.cjs +1 -1
  284. package/dist/cjs/ui-shell/WideUiShellContent.cjs +1 -1
  285. package/dist/cjs/useContrastMode.cjs.map +1 -1
  286. package/dist/cjs/useStableCallback.cjs +23 -0
  287. package/dist/cjs/useStableCallback.cjs.map +1 -0
  288. package/dist/cjs/web-component/odysseyWebComponentVersion.generated.cjs +1 -1
  289. package/dist/cjs/web-component/odysseyWebComponentVersion.generated.cjs.map +1 -1
  290. package/dist/esm/Accordion.js +1 -1
  291. package/dist/esm/Autocomplete.js +1 -1
  292. package/dist/esm/Badge.js +1 -1
  293. package/dist/esm/Banner.js +1 -1
  294. package/dist/esm/Banner.js.map +1 -1
  295. package/dist/esm/Box.js +1 -1
  296. package/dist/esm/Breadcrumbs.js +1 -1
  297. package/dist/esm/Buttons/BaseButton.js +24 -6
  298. package/dist/esm/Buttons/BaseButton.js.map +1 -1
  299. package/dist/esm/Buttons/BaseMenuButton.js +1 -1
  300. package/dist/esm/Buttons/Button.js +1 -1
  301. package/dist/esm/Buttons/MenuButton.js +1 -1
  302. package/dist/esm/Buttons/MenuItem.js +1 -1
  303. package/dist/esm/Callout.js +1 -1
  304. package/dist/esm/Callout.js.map +1 -1
  305. package/dist/esm/Card.js +1 -1
  306. package/dist/esm/Charts/ChartError.js +70 -0
  307. package/dist/esm/Charts/ChartError.js.map +1 -0
  308. package/dist/esm/Charts/ChartFrame.js +108 -0
  309. package/dist/esm/Charts/ChartFrame.js.map +1 -0
  310. package/dist/esm/Charts/ChartPopoverContent.js +49 -0
  311. package/dist/esm/Charts/ChartPopoverContent.js.map +1 -0
  312. package/dist/esm/Charts/LineChart.js +263 -0
  313. package/dist/esm/Charts/LineChart.js.map +1 -0
  314. package/dist/esm/Charts/chartTokens.js +109 -0
  315. package/dist/esm/Charts/chartTokens.js.map +1 -0
  316. package/dist/esm/Charts/chartTypes.js +2 -0
  317. package/dist/esm/Charts/chartTypes.js.map +1 -0
  318. package/dist/esm/Charts/formatChartValue.js +33 -0
  319. package/dist/esm/Charts/formatChartValue.js.map +1 -0
  320. package/dist/esm/Charts/getChartSeriesPointData.js +45 -0
  321. package/dist/esm/Charts/getChartSeriesPointData.js.map +1 -0
  322. package/dist/esm/Charts/hasDuplicateSeries.js +14 -0
  323. package/dist/esm/Charts/hasDuplicateSeries.js.map +1 -0
  324. package/dist/esm/Charts/index.js +14 -0
  325. package/dist/esm/Charts/index.js.map +1 -0
  326. package/dist/esm/Charts/resolveChartLocale.js +21 -0
  327. package/dist/esm/Charts/resolveChartLocale.js.map +1 -0
  328. package/dist/esm/Charts/useChartValueFormatter.js +30 -0
  329. package/dist/esm/Charts/useChartValueFormatter.js.map +1 -0
  330. package/dist/esm/Charts/useStableValue.js +22 -0
  331. package/dist/esm/Charts/useStableValue.js.map +1 -0
  332. package/dist/esm/CircularProgress.js +1 -1
  333. package/dist/esm/ConditionalWrapper.js +1 -1
  334. package/dist/esm/DataTable/DataTable.js +1 -1
  335. package/dist/esm/DataTable/DataTableRowActions.js +1 -1
  336. package/dist/esm/DataTable/DataTableSettings.js +1 -1
  337. package/dist/esm/DatePickers/DateField.js +1 -1
  338. package/dist/esm/DatePickers/DateFieldActionBar.js +1 -1
  339. package/dist/esm/DatePickers/DateFieldLocalizationProvider.js +1 -1
  340. package/dist/esm/DatePickers/DateFieldLocalizationProvider.js.map +1 -1
  341. package/dist/esm/DatePickers/DatePicker.js +3 -4
  342. package/dist/esm/DatePickers/DatePicker.js.map +1 -1
  343. package/dist/esm/DatePickers/TimeZonePicker.js +1 -1
  344. package/dist/esm/DatePickers/useOdysseyDateFields.js +10 -28
  345. package/dist/esm/DatePickers/useOdysseyDateFields.js.map +1 -1
  346. package/dist/esm/Dialog.js +1 -1
  347. package/dist/esm/Drawer.js +15 -2
  348. package/dist/esm/Drawer.js.map +1 -1
  349. package/dist/esm/EmptyState.js +1 -1
  350. package/dist/esm/ErrorMessageList.js +1 -1
  351. package/dist/esm/Field.js +1 -1
  352. package/dist/esm/FieldError.js +1 -1
  353. package/dist/esm/FieldHint.js +1 -1
  354. package/dist/esm/FieldLabel.js +1 -1
  355. package/dist/esm/Fields/Checkbox.js +1 -1
  356. package/dist/esm/Fields/CheckboxGroup.js +1 -1
  357. package/dist/esm/Fields/Radio.js +1 -1
  358. package/dist/esm/Fields/RadioGroup.js +1 -1
  359. package/dist/esm/Fieldset.js +1 -1
  360. package/dist/esm/FileUploader/FileUploadIllustration.js +1 -1
  361. package/dist/esm/FileUploader/FileUploadPreview.js +1 -1
  362. package/dist/esm/FileUploader/FileUploader.js +1 -1
  363. package/dist/esm/Form.js +1 -1
  364. package/dist/esm/FullScreenOverlay.js +1 -1
  365. package/dist/esm/FullScreenOverlayContext.js +1 -1
  366. package/dist/esm/HintLink.js +1 -1
  367. package/dist/esm/IconWithTooltip.js +1 -1
  368. package/dist/esm/Link.js +1 -1
  369. package/dist/esm/MuiPropsChild.js +1 -1
  370. package/dist/esm/NativeSelect.js +1 -1
  371. package/dist/esm/OdysseyCacheProvider.js +1 -1
  372. package/dist/esm/OdysseyProvider.js +1 -1
  373. package/dist/esm/OdysseyThemeProvider.js +3 -2
  374. package/dist/esm/OdysseyThemeProvider.js.map +1 -1
  375. package/dist/esm/OdysseyThemeProviderPropsContext.js +1 -1
  376. package/dist/esm/OdysseyThemeProviderPropsContext.js.map +1 -1
  377. package/dist/esm/Pagination/Pagination.js +1 -1
  378. package/dist/esm/PasswordField.js +1 -1
  379. package/dist/esm/ScreenReaderText.js +1 -1
  380. package/dist/esm/SearchField.js +1 -1
  381. package/dist/esm/Select.js +1 -1
  382. package/dist/esm/Stack.js +1 -1
  383. package/dist/esm/Status.js +1 -1
  384. package/dist/esm/Surface.js +1 -1
  385. package/dist/esm/Switch.js +2 -2
  386. package/dist/esm/Tabs.js +1 -1
  387. package/dist/esm/Tag.js +1 -1
  388. package/dist/esm/TagList.js +1 -1
  389. package/dist/esm/TextField.js +1 -1
  390. package/dist/esm/Toast.js +1 -1
  391. package/dist/esm/ToastStack.js +1 -1
  392. package/dist/esm/Tooltip.js +1 -1
  393. package/dist/esm/Typography.js +39 -12
  394. package/dist/esm/Typography.js.map +1 -1
  395. package/dist/esm/icons.generated/Add.js +1 -1
  396. package/dist/esm/icons.generated/AddCircle.js +1 -1
  397. package/dist/esm/icons.generated/Apps.js +1 -1
  398. package/dist/esm/icons.generated/AppsSelected.js +1 -1
  399. package/dist/esm/icons.generated/ArrowBottom.js +1 -1
  400. package/dist/esm/icons.generated/ArrowDown.js +1 -1
  401. package/dist/esm/icons.generated/ArrowLeft.js +1 -1
  402. package/dist/esm/icons.generated/ArrowLowerLeft.js +1 -1
  403. package/dist/esm/icons.generated/ArrowLowerRight.js +1 -1
  404. package/dist/esm/icons.generated/ArrowRight.js +1 -1
  405. package/dist/esm/icons.generated/ArrowTop.js +1 -1
  406. package/dist/esm/icons.generated/ArrowUnsorted.js +1 -1
  407. package/dist/esm/icons.generated/ArrowUp.js +1 -1
  408. package/dist/esm/icons.generated/ArrowUpperLeft.js +1 -1
  409. package/dist/esm/icons.generated/ArrowUpperRight.js +1 -1
  410. package/dist/esm/icons.generated/Bug.js +1 -1
  411. package/dist/esm/icons.generated/Calendar.js +1 -1
  412. package/dist/esm/icons.generated/Call.js +1 -1
  413. package/dist/esm/icons.generated/Chat.js +1 -1
  414. package/dist/esm/icons.generated/Check.js +1 -1
  415. package/dist/esm/icons.generated/CheckCircleFilled.js +1 -1
  416. package/dist/esm/icons.generated/ChevronDown.js +1 -1
  417. package/dist/esm/icons.generated/ChevronLeft.js +1 -1
  418. package/dist/esm/icons.generated/ChevronRight.js +1 -1
  419. package/dist/esm/icons.generated/ChevronUp.js +1 -1
  420. package/dist/esm/icons.generated/Clock.js +1 -1
  421. package/dist/esm/icons.generated/Close.js +1 -1
  422. package/dist/esm/icons.generated/CloseCircleFilled.js +1 -1
  423. package/dist/esm/icons.generated/CollapseLeft.js +1 -1
  424. package/dist/esm/icons.generated/CollapseRight.js +1 -1
  425. package/dist/esm/icons.generated/Copy.js +1 -1
  426. package/dist/esm/icons.generated/Customizations.js +1 -1
  427. package/dist/esm/icons.generated/CustomizationsSelected.js +1 -1
  428. package/dist/esm/icons.generated/DangerDiamond.js +1 -1
  429. package/dist/esm/icons.generated/DangerDiamondFilled.js +1 -1
  430. package/dist/esm/icons.generated/Delete.js +1 -1
  431. package/dist/esm/icons.generated/Deny.js +1 -1
  432. package/dist/esm/icons.generated/Devices.js +1 -1
  433. package/dist/esm/icons.generated/Directory.js +1 -1
  434. package/dist/esm/icons.generated/DirectorySelected.js +1 -1
  435. package/dist/esm/icons.generated/Documentation.js +1 -1
  436. package/dist/esm/icons.generated/Download.js +1 -1
  437. package/dist/esm/icons.generated/DragIndicator.js +1 -1
  438. package/dist/esm/icons.generated/Edit.js +1 -1
  439. package/dist/esm/icons.generated/ExpandLeft.js +1 -1
  440. package/dist/esm/icons.generated/ExpandRight.js +1 -1
  441. package/dist/esm/icons.generated/ExternalLink.js +1 -1
  442. package/dist/esm/icons.generated/Filter.js +1 -1
  443. package/dist/esm/icons.generated/Folder.js +1 -1
  444. package/dist/esm/icons.generated/Globe.js +1 -1
  445. package/dist/esm/icons.generated/Grid.js +1 -1
  446. package/dist/esm/icons.generated/Group.js +1 -1
  447. package/dist/esm/icons.generated/Happy.js +1 -1
  448. package/dist/esm/icons.generated/Hide.js +1 -1
  449. package/dist/esm/icons.generated/Home.js +1 -1
  450. package/dist/esm/icons.generated/HomeSelected.js +1 -1
  451. package/dist/esm/icons.generated/IdentityGovernance.js +1 -1
  452. package/dist/esm/icons.generated/IdentityGovernanceSelected.js +1 -1
  453. package/dist/esm/icons.generated/IdentityGovernanceSelected.js.map +1 -1
  454. package/dist/esm/icons.generated/InformationCircle.js +1 -1
  455. package/dist/esm/icons.generated/InformationCircleFilled.js +1 -1
  456. package/dist/esm/icons.generated/Link.js +1 -1
  457. package/dist/esm/icons.generated/List.js +1 -1
  458. package/dist/esm/icons.generated/Lock.js +1 -1
  459. package/dist/esm/icons.generated/Menu.js +1 -1
  460. package/dist/esm/icons.generated/More.js +1 -1
  461. package/dist/esm/icons.generated/Neutral.js +1 -1
  462. package/dist/esm/icons.generated/Notification.js +1 -1
  463. package/dist/esm/icons.generated/Pause.js +1 -1
  464. package/dist/esm/icons.generated/QuestionCircle.js +1 -1
  465. package/dist/esm/icons.generated/QuestionCircleFilled.js +1 -1
  466. package/dist/esm/icons.generated/Refresh.js +1 -1
  467. package/dist/esm/icons.generated/Reports.js +1 -1
  468. package/dist/esm/icons.generated/ReportsSelected.js +1 -1
  469. package/dist/esm/icons.generated/Reset.js +1 -1
  470. package/dist/esm/icons.generated/Resume.js +1 -1
  471. package/dist/esm/icons.generated/Sad.js +1 -1
  472. package/dist/esm/icons.generated/Same.js +1 -1
  473. package/dist/esm/icons.generated/Search.js +1 -1
  474. package/dist/esm/icons.generated/Security.js +1 -1
  475. package/dist/esm/icons.generated/SecuritySelected.js +1 -1
  476. package/dist/esm/icons.generated/Send.js +1 -1
  477. package/dist/esm/icons.generated/Server.js +1 -1
  478. package/dist/esm/icons.generated/Settings.js +1 -1
  479. package/dist/esm/icons.generated/SettingsSelected.js +1 -1
  480. package/dist/esm/icons.generated/Show.js +1 -1
  481. package/dist/esm/icons.generated/Sparkle.js +1 -1
  482. package/dist/esm/icons.generated/Subtract.js +1 -1
  483. package/dist/esm/icons.generated/Sync.js +1 -1
  484. package/dist/esm/icons.generated/ThumbsDown.js +1 -1
  485. package/dist/esm/icons.generated/ThumbsUp.js +1 -1
  486. package/dist/esm/icons.generated/Unlock.js +1 -1
  487. package/dist/esm/icons.generated/Upload.js +1 -1
  488. package/dist/esm/icons.generated/User.js +1 -1
  489. package/dist/esm/icons.generated/Video.js +1 -1
  490. package/dist/esm/icons.generated/Warning.js +1 -1
  491. package/dist/esm/icons.generated/WarningFilled.js +1 -1
  492. package/dist/esm/icons.generated/Workflows.js +1 -1
  493. package/dist/esm/icons.generated/WorkflowsSelected.js +1 -1
  494. package/dist/esm/index.js +3 -2
  495. package/dist/esm/index.js.map +1 -1
  496. package/dist/esm/labs/AppTile.js +1 -1
  497. package/dist/esm/labs/DataFilters.js +2 -2
  498. package/dist/esm/labs/DataTable.js +1 -1
  499. package/dist/esm/labs/DataTablePagination.js +1 -1
  500. package/dist/esm/labs/DataView/BulkActionsMenu.js +1 -1
  501. package/dist/esm/labs/DataView/CardLayoutContent.js +2 -2
  502. package/dist/esm/labs/DataView/DataCard.js +1 -1
  503. package/dist/esm/labs/DataView/DataTable.js +1 -1
  504. package/dist/esm/labs/DataView/DataView.js +1 -1
  505. package/dist/esm/labs/DataView/DetailPanel.js +1 -1
  506. package/dist/esm/labs/DataView/LayoutSwitcher.js +1 -1
  507. package/dist/esm/labs/DataView/RowActions.js +1 -1
  508. package/dist/esm/labs/DataView/TableLayoutContent.js +1 -1
  509. package/dist/esm/labs/DataView/TableSettings.js +1 -1
  510. package/dist/esm/labs/DatePickers/DateTimeField.js +1 -1
  511. package/dist/esm/labs/DatePickers/DateTimePicker.js +3 -4
  512. package/dist/esm/labs/DatePickers/DateTimePicker.js.map +1 -1
  513. package/dist/esm/labs/OdysseyPickers/ComposablePicker.js +1 -1
  514. package/dist/esm/labs/OdysseyPickers/Picker.js +1 -1
  515. package/dist/esm/labs/OdysseyPickers/PickerVirtualizationListBox.js +1 -1
  516. package/dist/esm/labs/OdysseyPickers/PickerWithOptionAdornment.js +1 -1
  517. package/dist/esm/labs/OdysseyPickers/SearchDropdown.js +1 -1
  518. package/dist/esm/labs/PageTemplate/DocumentationLink.js +1 -1
  519. package/dist/esm/labs/PageTemplate/Layout.js +1 -1
  520. package/dist/esm/labs/PageTemplate/PageTemplate.js +1 -1
  521. package/dist/esm/labs/PaginatedTable.js +1 -1
  522. package/dist/esm/labs/StaticTable.js +1 -1
  523. package/dist/esm/labs/UserProfile.js +1 -1
  524. package/dist/esm/labs/UserProfileMenuButton.js +1 -1
  525. package/dist/esm/logos.generated/Duo.js +1 -1
  526. package/dist/esm/logos.generated/GoogleAuth.js +1 -1
  527. package/dist/esm/logos.generated/OktaVerify.js +1 -1
  528. package/dist/esm/logos.generated/Persona.js +1 -1
  529. package/dist/esm/logos.generated/SymantecVip.js +1 -1
  530. package/dist/esm/logos.generated/Yubikey.js +1 -1
  531. package/dist/esm/properties/ts/odyssey-react-mui.js +4 -0
  532. package/dist/esm/properties/ts/odyssey-react-mui.js.map +1 -1
  533. package/dist/esm/properties/ts/odyssey-react-mui_ht.js +1 -1
  534. package/dist/esm/properties/ts/odyssey-react-mui_ht.js.map +1 -1
  535. package/dist/esm/properties/ts/odyssey-react-mui_ok_PL.js +4 -0
  536. package/dist/esm/properties/ts/odyssey-react-mui_ok_PL.js.map +1 -1
  537. package/dist/esm/properties/ts/odyssey-react-mui_ok_SK.js +4 -0
  538. package/dist/esm/properties/ts/odyssey-react-mui_ok_SK.js.map +1 -1
  539. package/dist/esm/properties/ts/odyssey-react-mui_zh_TW.js +1 -1
  540. package/dist/esm/properties/ts/odyssey-react-mui_zh_TW.js.map +1 -1
  541. package/dist/esm/theme/components/Button.js +6 -6
  542. package/dist/esm/theme/components/Button.js.map +1 -1
  543. package/dist/esm/theme/components/Dialog.js +2 -2
  544. package/dist/esm/theme/components/Dialog.js.map +1 -1
  545. package/dist/esm/theme/components/Drawer.js +5 -1
  546. package/dist/esm/theme/components/Drawer.js.map +1 -1
  547. package/dist/esm/theme/theme.js +2 -0
  548. package/dist/esm/theme/theme.js.map +1 -1
  549. package/dist/esm/theme/useAppElementContainerQuery.js +32 -0
  550. package/dist/esm/theme/useAppElementContainerQuery.js.map +1 -0
  551. package/dist/esm/theme/useContainerQuery.js +87 -0
  552. package/dist/esm/theme/useContainerQuery.js.map +1 -0
  553. package/dist/esm/theme/useMediaQuery.js +7 -5
  554. package/dist/esm/theme/useMediaQuery.js.map +1 -1
  555. package/dist/esm/ui-shell/AppSwitcher/AppSwitcher.js +1 -1
  556. package/dist/esm/ui-shell/InnerAppContainer.js +1 -1
  557. package/dist/esm/ui-shell/NarrowUiShellContent.js +1 -1
  558. package/dist/esm/ui-shell/SideNav/NavAccordion.js +1 -1
  559. package/dist/esm/ui-shell/SideNav/SideNav.js +1 -1
  560. package/dist/esm/ui-shell/SideNav/SideNavFooterContent.js +1 -1
  561. package/dist/esm/ui-shell/SideNav/SideNavHeader.js +1 -1
  562. package/dist/esm/ui-shell/SideNav/SideNavItemContent.js +2 -2
  563. package/dist/esm/ui-shell/SideNav/SideNavItemLinkContent.js +1 -1
  564. package/dist/esm/ui-shell/SideNav/SideNavSortableList.js +1 -1
  565. package/dist/esm/ui-shell/SideNav/SideNavToggleButton.js +2 -2
  566. package/dist/esm/ui-shell/SkipToContent.js +1 -1
  567. package/dist/esm/ui-shell/TopNav/HamburgerMenuIcon.js +1 -1
  568. package/dist/esm/ui-shell/TopNav/TopNav.js +1 -1
  569. package/dist/esm/ui-shell/TopNav/TopNavLinksList.js +1 -1
  570. package/dist/esm/ui-shell/TopNav/TopNavListItem.js +1 -1
  571. package/dist/esm/ui-shell/UiShell.js +1 -1
  572. package/dist/esm/ui-shell/UiShellLogo.js +1 -1
  573. package/dist/esm/ui-shell/WideUiShellContent.js +1 -1
  574. package/dist/esm/useContrastMode.js.map +1 -1
  575. package/dist/esm/useStableCallback.js +16 -0
  576. package/dist/esm/useStableCallback.js.map +1 -0
  577. package/dist/esm/web-component/odysseyWebComponentVersion.generated.js +1 -1
  578. package/dist/esm/web-component/odysseyWebComponentVersion.generated.js.map +1 -1
  579. package/dist/tsconfig.production.tsbuildinfo +1 -1
  580. package/dist/types/Banner.d.ts.map +1 -1
  581. package/dist/types/Buttons/BaseButton.d.ts +8 -1
  582. package/dist/types/Buttons/BaseButton.d.ts.map +1 -1
  583. package/dist/types/Callout.d.ts.map +1 -1
  584. package/dist/types/Charts/ChartError.d.ts +23 -0
  585. package/dist/types/Charts/ChartError.d.ts.map +1 -0
  586. package/dist/types/Charts/ChartFrame.d.ts +54 -0
  587. package/dist/types/Charts/ChartFrame.d.ts.map +1 -0
  588. package/dist/types/Charts/ChartPopoverContent.d.ts +97 -0
  589. package/dist/types/Charts/ChartPopoverContent.d.ts.map +1 -0
  590. package/dist/types/Charts/LineChart.d.ts +26 -0
  591. package/dist/types/Charts/LineChart.d.ts.map +1 -0
  592. package/dist/types/Charts/chartTokens.d.ts +362 -0
  593. package/dist/types/Charts/chartTokens.d.ts.map +1 -0
  594. package/dist/types/Charts/chartTypes.d.ts +142 -0
  595. package/dist/types/Charts/chartTypes.d.ts.map +1 -0
  596. package/dist/types/Charts/formatChartValue.d.ts +93 -0
  597. package/dist/types/Charts/formatChartValue.d.ts.map +1 -0
  598. package/dist/types/Charts/getChartSeriesPointData.d.ts +49 -0
  599. package/dist/types/Charts/getChartSeriesPointData.d.ts.map +1 -0
  600. package/dist/types/Charts/hasDuplicateSeries.d.ts +24 -0
  601. package/dist/types/Charts/hasDuplicateSeries.d.ts.map +1 -0
  602. package/dist/types/Charts/index.d.ts +15 -0
  603. package/dist/types/Charts/index.d.ts.map +1 -0
  604. package/dist/types/Charts/resolveChartLocale.d.ts +28 -0
  605. package/dist/types/Charts/resolveChartLocale.d.ts.map +1 -0
  606. package/dist/types/Charts/useChartValueFormatter.d.ts +34 -0
  607. package/dist/types/Charts/useChartValueFormatter.d.ts.map +1 -0
  608. package/dist/types/Charts/useStableValue.d.ts +29 -0
  609. package/dist/types/Charts/useStableValue.d.ts.map +1 -0
  610. package/dist/types/DatePickers/DateFieldLocalizationProvider.d.ts +1 -1
  611. package/dist/types/DatePickers/DateFieldLocalizationProvider.d.ts.map +1 -1
  612. package/dist/types/DatePickers/DatePicker.d.ts.map +1 -1
  613. package/dist/types/DatePickers/useOdysseyDateFields.d.ts +27 -15
  614. package/dist/types/DatePickers/useOdysseyDateFields.d.ts.map +1 -1
  615. package/dist/types/Drawer.d.ts +4 -0
  616. package/dist/types/Drawer.d.ts.map +1 -1
  617. package/dist/types/OdysseyThemeProvider.d.ts.map +1 -1
  618. package/dist/types/OdysseyThemeProviderPropsContext.d.ts +1 -1
  619. package/dist/types/OdysseyThemeProviderPropsContext.d.ts.map +1 -1
  620. package/dist/types/Typography.d.ts +26 -12
  621. package/dist/types/Typography.d.ts.map +1 -1
  622. package/dist/types/i18n.generated/i18n.d.ts +8 -0
  623. package/dist/types/i18n.generated/i18n.d.ts.map +1 -1
  624. package/dist/types/i18n.generated/i18n.resources.d.ts +14 -2
  625. package/dist/types/i18n.generated/i18n.resources.d.ts.map +1 -1
  626. package/dist/types/icons.generated/IdentityGovernanceSelected.d.ts +1 -1
  627. package/dist/types/icons.generated/IdentityGovernanceSelected.d.ts.map +1 -1
  628. package/dist/types/index.d.ts +3 -2
  629. package/dist/types/index.d.ts.map +1 -1
  630. package/dist/types/labs/DatePickers/DateTimePicker.d.ts.map +1 -1
  631. package/dist/types/properties/ts/odyssey-react-mui.d.ts +4 -0
  632. package/dist/types/properties/ts/odyssey-react-mui.d.ts.map +1 -1
  633. package/dist/types/properties/ts/odyssey-react-mui_ht.d.ts +1 -1
  634. package/dist/types/properties/ts/odyssey-react-mui_ok_PL.d.ts +4 -0
  635. package/dist/types/properties/ts/odyssey-react-mui_ok_PL.d.ts.map +1 -1
  636. package/dist/types/properties/ts/odyssey-react-mui_ok_SK.d.ts +4 -0
  637. package/dist/types/properties/ts/odyssey-react-mui_ok_SK.d.ts.map +1 -1
  638. package/dist/types/properties/ts/odyssey-react-mui_zh_TW.d.ts +1 -1
  639. package/dist/types/properties/ts/odyssey-react-mui_zh_TW.d.ts.map +1 -1
  640. package/dist/types/theme/components/Button.d.ts.map +1 -1
  641. package/dist/types/theme/components/Drawer.d.ts.map +1 -1
  642. package/dist/types/theme/theme.d.ts +2 -0
  643. package/dist/types/theme/theme.d.ts.map +1 -1
  644. package/dist/types/theme/useAppElementContainerQuery.d.ts +24 -0
  645. package/dist/types/theme/useAppElementContainerQuery.d.ts.map +1 -0
  646. package/dist/types/theme/useContainerQuery.d.ts +37 -0
  647. package/dist/types/theme/useContainerQuery.d.ts.map +1 -0
  648. package/dist/types/theme/useMediaQuery.d.ts +29 -15
  649. package/dist/types/theme/useMediaQuery.d.ts.map +1 -1
  650. package/dist/types/useContrastMode.d.ts +10 -1
  651. package/dist/types/useContrastMode.d.ts.map +1 -1
  652. package/dist/types/useStableCallback.d.ts +45 -0
  653. package/dist/types/useStableCallback.d.ts.map +1 -0
  654. package/dist/types/web-component/odysseyWebComponentVersion.generated.d.ts +1 -1
  655. package/package.json +49 -17
@@ -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-67-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-67-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.67.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.67.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.67.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.67.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);\nMemo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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(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bmB,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.67.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.67.0";
178
+ MemoizedBreadcrumbList.displayName = "BreadcrumbList::pkg=odyssey&odysseyV=1.69.0";
179
179
  export { MemoizedBreadcrumbList as BreadcrumbList };
180
180
  //# sourceMappingURL=Breadcrumbs.js.map
@@ -1,4 +1,5 @@
1
1
  import _Button from "@mui/material/Button";
2
+ import _CircularProgress from "@mui/material/CircularProgress";
2
3
  /*!
3
4
  * Copyright (c) 2022-present, Okta, Inc. and/or its affiliates. All rights reserved.
4
5
  * The Okta software accompanied by this notice is provided pursuant to the Apache License, Version 2.0 (the "License.")
@@ -12,6 +13,7 @@ import _Button from "@mui/material/Button";
12
13
  */
13
14
  import { memo, useCallback, useImperativeHandle, useMemo, useRef } from "react";
14
15
  import { MuiPropsContext, useMuiProps } from "../MuiPropsContext.js";
16
+ import { useOdysseyDesignTokens } from "../OdysseyDesignTokensContext.js";
15
17
  import { Tooltip } from "../Tooltip.js";
16
18
  import { useButton } from "./ButtonContext.js";
17
19
  import { jsx as _jsx } from "react/jsx-runtime";
@@ -32,6 +34,7 @@ const BaseButton = ({
32
34
  id,
33
35
  isDisabled,
34
36
  isFullWidth: isFullWidthProp,
37
+ isLoading,
35
38
  label = "",
36
39
  onClick,
37
40
  size = "medium",
@@ -47,7 +50,21 @@ const BaseButton = ({
47
50
  const variant = variantProp === "tertiary" ? "secondary" : variantProp;
48
51
  const localButtonRef = useRef(null);
49
52
  const buttonContext = useButton();
53
+ const odysseyDesignTokens = useOdysseyDesignTokens();
50
54
  const isFullWidth = useMemo(() => buttonContext.isFullWidth ? buttonContext.isFullWidth : isFullWidthProp, [buttonContext, isFullWidthProp]);
55
+ const buttonContent = children ?? label;
56
+ const loadingIndicator = useMemo(() => _jsx(_CircularProgress, {
57
+ "aria-hidden": true,
58
+ color: "inherit",
59
+ size: odysseyDesignTokens.Spacing4
60
+ }), [odysseyDesignTokens]);
61
+ const handleClick = useCallback(event => {
62
+ if (isLoading || isDisabled) {
63
+ event.preventDefault();
64
+ return;
65
+ }
66
+ onClick?.(event);
67
+ }, [isDisabled, isLoading, onClick]);
51
68
  useImperativeHandle(buttonRef, () => ({
52
69
  focus: () => {
53
70
  localButtonRef.current?.focus();
@@ -56,9 +73,10 @@ const BaseButton = ({
56
73
  const renderButton = useCallback(muiProps => {
57
74
  return _jsx(_Button, {
58
75
  ...muiProps,
76
+ "aria-busy": isLoading,
59
77
  "aria-controls": ariaControls,
60
78
  "aria-describedby": ariaDescribedBy,
61
- "aria-disabled": isDisabled,
79
+ "aria-disabled": isLoading || isDisabled,
62
80
  "aria-expanded": ariaExpanded,
63
81
  "aria-haspopup": ariaHasPopup,
64
82
  "aria-label": ariaLabel,
@@ -68,7 +86,7 @@ const BaseButton = ({
68
86
  fullWidth: isFullWidth,
69
87
  href: href,
70
88
  id: id,
71
- onClick: !isDisabled ? onClick : undefined,
89
+ onClick: handleClick,
72
90
  ref: element => {
73
91
  if (element) {
74
92
  localButtonRef.current = element;
@@ -76,14 +94,14 @@ const BaseButton = ({
76
94
  }
77
95
  },
78
96
  size: size,
79
- startIcon: startIcon,
97
+ startIcon: isLoading ? loadingIndicator : startIcon,
80
98
  tabIndex: tabIndex,
81
99
  translate: translate,
82
100
  type: type,
83
101
  variant: variant,
84
- children: children ?? label
102
+ children: buttonContent
85
103
  });
86
- }, [ariaControls, ariaDescribedBy, ariaExpanded, ariaHasPopup, ariaLabel, ariaLabelledBy, endIcon, href, id, isDisabled, isFullWidth, label, children, onClick, size, startIcon, tabIndex, testId, translate, type, variant]);
104
+ }, [ariaControls, ariaDescribedBy, ariaExpanded, ariaHasPopup, ariaLabel, ariaLabelledBy, buttonContent, endIcon, handleClick, href, id, isDisabled, isFullWidth, isLoading, loadingIndicator, size, startIcon, tabIndex, testId, translate, type, variant]);
87
105
  if (tooltipText) {
88
106
  return _jsx(Tooltip, {
89
107
  ariaType: "description",
@@ -97,6 +115,6 @@ const BaseButton = ({
97
115
  return renderButton(muiProps);
98
116
  };
99
117
  const MemoizedBaseButton = memo(BaseButton);
100
- MemoizedBaseButton.displayName = "BaseButton::pkg=odyssey&odysseyV=1.67.0";
118
+ MemoizedBaseButton.displayName = "BaseButton::pkg=odyssey&odysseyV=1.69.0";
101
119
  export { MemoizedBaseButton as BaseButton };
102
120
  //# sourceMappingURL=BaseButton.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"BaseButton.js","names":["memo","useCallback","useImperativeHandle","useMemo","useRef","MuiPropsContext","useMuiProps","Tooltip","useButton","jsx","_jsx","buttonSizeValues","buttonTypeValues","buttonVariantValues","BaseButton","ariaControls","ariaDescribedBy","ariaExpanded","ariaHasPopup","ariaLabel","ariaLabelledBy","buttonRef","children","endIcon","href","id","isDisabled","isFullWidth","isFullWidthProp","label","onClick","size","startIcon","tabIndex","testId","tooltipText","translate","type","variant","variantProp","muiProps","localButtonRef","buttonContext","focus","current","renderButton","_Button","fullWidth","undefined","ref","element","ariaType","placement","text","Consumer","MemoizedBaseButton","displayName"],"sources":["../../../src/Buttons/BaseButton.tsx"],"sourcesContent":["/*!\n * Copyright (c) 2022-present, Okta, Inc. and/or its affiliates. All rights reserved.\n * The Okta software accompanied by this notice is provided pursuant to the Apache License, Version 2.0 (the \"License.\")\n *\n * You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0.\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS, WITHOUT\n * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n *\n * See the License for the specific language governing permissions and limitations under the License.\n */\n\nimport type { ButtonProps as MuiButtonProps } from \"@mui/material\";\n\nimport { Button as MuiButton } from \"@mui/material\";\nimport {\n HTMLAttributes,\n memo,\n ReactElement,\n ReactNode,\n RefObject,\n useCallback,\n useImperativeHandle,\n useMemo,\n useRef,\n} from \"react\";\n\nimport type { HtmlProps } from \"../HtmlProps.js\";\n\nimport { FocusHandle } from \"../inputUtils.js\";\nimport {\n MuiPropsContext,\n MuiPropsContextType,\n useMuiProps,\n} from \"../MuiPropsContext.js\";\nimport { Tooltip } from \"../Tooltip.js\";\nimport { useButton } from \"./ButtonContext.js\";\n\nexport const buttonSizeValues = [\"small\", \"medium\", \"large\"] as const;\nexport const buttonTypeValues = [\"button\", \"submit\", \"reset\"] as const;\nexport const buttonVariantValues = [\n \"primary\",\n \"secondary\",\n \"danger\",\n \"dangerSecondary\",\n \"floating\",\n \"floatingAction\",\n] as const;\n\nexport type BaseButtonProps = {\n /**\n * Ref attached to the underlying button element, exposing a `focus()` handle.\n */\n buttonRef?: RefObject<FocusHandle>;\n /**\n * The contents of the button. Only available internal to Odyssey here in BaseButton. If set,\n * label is ignored.\n */\n children?: ReactNode;\n /**\n * The icon element to display at the end of the Button\n */\n endIcon?: ReactElement;\n /**\n * Optional href to render the button as a link\n */\n href?: string;\n /**\n * The ID of the Button\n */\n id?: string;\n /**\n * If `true`, the button is disabled and cannot be activated.\n */\n isDisabled?: boolean;\n /**\n * If `true`, the button expands to fill its container's full width.\n */\n isFullWidth?: boolean;\n /**\n * The text content of the Button.\n * @default \"\"\n */\n label?: string;\n /**\n * Called when the button is clicked.\n */\n onClick?: MuiButtonProps[\"onClick\"];\n /**\n * The size of the button.\n * @default \"medium\"\n */\n size?: (typeof buttonSizeValues)[number];\n /**\n * The icon element to display at the start of the Button\n */\n startIcon?: ReactElement;\n /** The tab order of the Button relative to other focusable elements. */\n tabIndex?: HTMLAttributes<HTMLElement>[\"tabIndex\"];\n /**\n * The tooltip text for the Button if it's icon-only\n */\n tooltipText?: string;\n /**\n * The HTML button type attribute.\n * - If `'button'`, no default form behavior.\n * - If `'submit'`, submits the nearest form.\n * - If `'reset'`, resets the nearest form to its initial values.\n * @default \"button\"\n */\n type?: (typeof buttonTypeValues)[number];\n /**\n * Controls the visual hierarchy and intent of the button.\n * - If `'primary'`, high-emphasis action; use for the single most important action on a page.\n * - If `'secondary'`, medium-emphasis action; use for secondary actions alongside a primary.\n * - If `'danger'`, high-emphasis destructive action.\n * - If `'dangerSecondary'`, medium-emphasis destructive action.\n * - If `'floating'`, low-emphasis action without a border or background.\n * - If `'floatingAction'`, icon-only floating action, typically fixed-positioned.\n * - If `'tertiary'`, deprecated low-emphasis style; use `'floating'` instead.\n */\n variant: (typeof buttonVariantValues)[number] | \"tertiary\";\n};\n\n// These are split and exported separately from the above because wrappers of this (e.g. Button) will\n// want to omit children, which they cannot do from the combined union type. Instead, they should\n// omit from BaseButtonProps, then union with the AdditionalBaseButtonProps (as seen in Button)\nexport type AdditionalBaseButtonProps = Pick<\n HtmlProps,\n | \"ariaControls\"\n | \"ariaDescribedBy\"\n | \"ariaExpanded\"\n | \"ariaHasPopup\"\n | \"ariaLabel\"\n | \"ariaLabelledBy\"\n | \"tabIndex\"\n | \"testId\"\n | \"translate\"\n>;\n\n/**\n * The internal base button primitive used by all Odyssey button variants. Handles icon placement,\n * full-width layout, tooltip wrapping, focus handle forwarding, and MUI prop context integration.\n */\nconst BaseButton = ({\n ariaControls,\n ariaDescribedBy,\n ariaExpanded,\n ariaHasPopup,\n ariaLabel,\n ariaLabelledBy,\n buttonRef,\n children,\n endIcon,\n href,\n id,\n isDisabled,\n isFullWidth: isFullWidthProp,\n label = \"\",\n onClick,\n size = \"medium\",\n startIcon,\n tabIndex,\n testId,\n tooltipText,\n translate,\n type = \"button\",\n variant: variantProp,\n}: BaseButtonProps & AdditionalBaseButtonProps) => {\n const muiProps = useMuiProps();\n\n // We're deprecating the \"tertiary\" variant, so map it to\n // \"secondary\" in lieu of making a breaking change\n const variant = variantProp === \"tertiary\" ? \"secondary\" : variantProp;\n const localButtonRef = useRef<HTMLButtonElement | HTMLAnchorElement>(null);\n const buttonContext = useButton();\n const isFullWidth = useMemo(\n () =>\n buttonContext.isFullWidth ? buttonContext.isFullWidth : isFullWidthProp,\n [buttonContext, isFullWidthProp],\n );\n\n useImperativeHandle(\n buttonRef,\n () => ({\n focus: () => {\n localButtonRef.current?.focus();\n },\n }),\n [],\n );\n\n const renderButton = useCallback(\n (muiProps: MuiPropsContextType) => {\n return (\n <MuiButton\n {...muiProps}\n aria-controls={ariaControls}\n aria-describedby={ariaDescribedBy}\n aria-disabled={isDisabled}\n aria-expanded={ariaExpanded}\n aria-haspopup={ariaHasPopup}\n aria-label={ariaLabel}\n aria-labelledby={ariaLabelledBy}\n data-se={testId}\n endIcon={endIcon}\n fullWidth={isFullWidth}\n href={href}\n id={id}\n onClick={!isDisabled ? onClick : undefined}\n ref={(element) => {\n if (element) {\n (\n localButtonRef as React.MutableRefObject<\n HTMLButtonElement | HTMLAnchorElement\n >\n ).current = element;\n //@ts-expect-error ref is not an optional prop on the props context type\n muiProps?.ref?.(element);\n }\n }}\n size={size}\n startIcon={startIcon}\n tabIndex={tabIndex}\n translate={translate}\n type={type}\n variant={variant}\n >\n {children ?? label}\n </MuiButton>\n );\n },\n [\n ariaControls,\n ariaDescribedBy,\n ariaExpanded,\n ariaHasPopup,\n ariaLabel,\n ariaLabelledBy,\n endIcon,\n href,\n id,\n isDisabled,\n isFullWidth,\n label,\n children,\n onClick,\n size,\n startIcon,\n tabIndex,\n testId,\n translate,\n type,\n variant,\n ],\n );\n\n if (tooltipText) {\n return (\n <Tooltip ariaType=\"description\" placement=\"top\" text={tooltipText}>\n <MuiPropsContext.Consumer>{renderButton}</MuiPropsContext.Consumer>\n </Tooltip>\n );\n }\n\n return renderButton(muiProps);\n};\n\nconst MemoizedBaseButton = memo(BaseButton);\nMemoizedBaseButton.displayName = \"BaseButton\";\n\nexport { MemoizedBaseButton as BaseButton };\n"],"mappings":";AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAKA,SAEEA,IAAI,EAIJC,WAAW,EACXC,mBAAmB,EACnBC,OAAO,EACPC,MAAM,QACD,OAAO;AAKd,SACEC,eAAe,EAEfC,WAAW,QACN,uBAAuB;AAC9B,SAASC,OAAO,QAAQ,eAAe;AACvC,SAASC,SAAS,QAAQ,oBAAoB;AAAC,SAAAC,GAAA,IAAAC,IAAA;AAE/C,OAAO,MAAMC,gBAAgB,GAAG,CAAC,OAAO,EAAE,QAAQ,EAAE,OAAO,CAAU;AACrE,OAAO,MAAMC,gBAAgB,GAAG,CAAC,QAAQ,EAAE,QAAQ,EAAE,OAAO,CAAU;AACtE,OAAO,MAAMC,mBAAmB,GAAG,CACjC,SAAS,EACT,WAAW,EACX,QAAQ,EACR,iBAAiB,EACjB,UAAU,EACV,gBAAgB,CACR;AAiGV,MAAMC,UAAU,GAAGA,CAAC;EAClBC,YAAY;EACZC,eAAe;EACfC,YAAY;EACZC,YAAY;EACZC,SAAS;EACTC,cAAc;EACdC,SAAS;EACTC,QAAQ;EACRC,OAAO;EACPC,IAAI;EACJC,EAAE;EACFC,UAAU;EACVC,WAAW,EAAEC,eAAe;EAC5BC,KAAK,GAAG,EAAE;EACVC,OAAO;EACPC,IAAI,GAAG,QAAQ;EACfC,SAAS;EACTC,QAAQ;EACRC,MAAM;EACNC,WAAW;EACXC,SAAS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S,EAAEA,SAAU;MACrBC,QAAQ,EAAEA,QAAS;MACnBG,SAAS,EAAEA,SAAU;MACrBC,IAAI,EAAEA,IAAK;MACXC,OAAO,EAAEA,OAAQ;MAAAhB,QAAA,EAEhBA,QAAQ,IAAIO;IAAK,CACT,CAAC;EAEhB,CAAC,EACD,CACEd,YAAY,EACZC,eAAe,EACfC,YAAY,EACZC,YAAY,EACZC,SAAS,EACTC,cAAc,EACdG,OAAO,EACPC,IAAI,EACJC,EAAE,EACFC,UAAU,EACVC,WAAW,EACXE,KAAK,EACLP,QAAQ,EACRQ,OAAO,EACPC,IAAI,EACJC,SAAS,EACTC,QAAQ,EACRC,MAAM,EACNE,SAAS,EACTC,IAAI,EACJC,OAAO,CAEX,CAAC;EAED,IAAIH,WAAW,EAAE;IACf,OACEzB,IAAA,CAACH,OAAO;MAAC4C,QAAQ,EAAC,aAAa;MAACC,SAAS,EAAC,KAAK;MAACC,IAAI,EAAElB,WAAY;MAAAb,QAAA,EAChEZ,IAAA,CAACL,eAAe,CAACiD,QAAQ;QAAAhC,QAAA,EAAEuB;MAAY,CAA2B;IAAC,CAC5D,CAAC;EAEd;EAEA,OAAOA,YAAY,CAACL,QAAQ,CAAC;AAC/B,CAAC;AAED,MAAMe,kBAAkB,GAAGvD,IAAI,CAACc,UAAU,CAAC;AAC3CyC,kBAAkB,CAACC,WAAW,4CAAe;AAE7C,SAASD,kBAAkB,IAAIzC,UAAU","ignoreList":[]}
1
+ {"version":3,"file":"BaseButton.js","names":["memo","useCallback","useImperativeHandle","useMemo","useRef","MuiPropsContext","useMuiProps","useOdysseyDesignTokens","Tooltip","useButton","jsx","_jsx","buttonSizeValues","buttonTypeValues","buttonVariantValues","BaseButton","ariaControls","ariaDescribedBy","ariaExpanded","ariaHasPopup","ariaLabel","ariaLabelledBy","buttonRef","children","endIcon","href","id","isDisabled","isFullWidth","isFullWidthProp","isLoading","label","onClick","size","startIcon","tabIndex","testId","tooltipText","translate","type","variant","variantProp","muiProps","localButtonRef","buttonContext","odysseyDesignTokens","buttonContent","loadingIndicator","_CircularProgress","color","Spacing4","handleClick","event","preventDefault","focus","current","renderButton","_Button","fullWidth","ref","element","ariaType","placement","text","Consumer","MemoizedBaseButton","displayName"],"sources":["../../../src/Buttons/BaseButton.tsx"],"sourcesContent":["/*!\n * Copyright (c) 2022-present, Okta, Inc. and/or its affiliates. All rights reserved.\n * The Okta software accompanied by this notice is provided pursuant to the Apache License, Version 2.0 (the \"License.\")\n *\n * You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0.\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS, WITHOUT\n * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n *\n * See the License for the specific language governing permissions and limitations under the License.\n */\n\nimport type { ButtonProps as MuiButtonProps } from \"@mui/material\";\n\nimport {\n Button as MuiButton,\n CircularProgress as MuiCircularProgress,\n} from \"@mui/material\";\nimport {\n HTMLAttributes,\n memo,\n ReactElement,\n ReactNode,\n RefObject,\n useCallback,\n useImperativeHandle,\n useMemo,\n useRef,\n} from \"react\";\n\nimport type { HtmlProps } from \"../HtmlProps.js\";\n\nimport { FocusHandle } from \"../inputUtils.js\";\nimport {\n MuiPropsContext,\n MuiPropsContextType,\n useMuiProps,\n} from \"../MuiPropsContext.js\";\nimport { useOdysseyDesignTokens } from \"../OdysseyDesignTokensContext.js\";\nimport { Tooltip } from \"../Tooltip.js\";\nimport { useButton } from \"./ButtonContext.js\";\n\nexport const buttonSizeValues = [\"small\", \"medium\", \"large\"] as const;\nexport const buttonTypeValues = [\"button\", \"submit\", \"reset\"] as const;\nexport const buttonVariantValues = [\n \"primary\",\n \"secondary\",\n \"danger\",\n \"dangerSecondary\",\n \"floating\",\n \"floatingAction\",\n] as const;\n\nexport type BaseButtonProps = {\n /**\n * Ref attached to the underlying button element, exposing a `focus()` handle.\n */\n buttonRef?: RefObject<FocusHandle>;\n /**\n * The contents of the button. Only available internal to Odyssey here in BaseButton. If set,\n * label is ignored.\n */\n children?: ReactNode;\n /**\n * The icon element to display at the end of the Button\n */\n endIcon?: ReactElement;\n /**\n * Optional href to render the button as a link\n */\n href?: string;\n /**\n * The ID of the Button\n */\n id?: string;\n /**\n * If `true`, the button is disabled and cannot be activated.\n */\n isDisabled?: boolean;\n /**\n * If `true`, the button expands to fill its container's full width.\n */\n isFullWidth?: boolean;\n /**\n * If `true`, the button shows a progress spinner in place of its start icon\n * and stops responding to clicks, while keeping the background and border of\n * its default state. To reword the button while it works (for example\n * `\"Saving…\"`), swap `label` alongside this.\n */\n isLoading?: boolean;\n /**\n * The text content of the Button.\n * @default \"\"\n */\n label?: string;\n /**\n * Called when the button is clicked.\n */\n onClick?: MuiButtonProps[\"onClick\"];\n /**\n * The size of the button.\n * @default \"medium\"\n */\n size?: (typeof buttonSizeValues)[number];\n /**\n * The icon element to display at the start of the Button\n */\n startIcon?: ReactElement;\n /** The tab order of the Button relative to other focusable elements. */\n tabIndex?: HTMLAttributes<HTMLElement>[\"tabIndex\"];\n /**\n * The tooltip text for the Button if it's icon-only\n */\n tooltipText?: string;\n /**\n * The HTML button type attribute.\n * - If `'button'`, no default form behavior.\n * - If `'submit'`, submits the nearest form.\n * - If `'reset'`, resets the nearest form to its initial values.\n * @default \"button\"\n */\n type?: (typeof buttonTypeValues)[number];\n /**\n * Controls the visual hierarchy and intent of the button.\n * - If `'primary'`, high-emphasis action; use for the single most important action on a page.\n * - If `'secondary'`, medium-emphasis action; use for secondary actions alongside a primary.\n * - If `'danger'`, high-emphasis destructive action.\n * - If `'dangerSecondary'`, medium-emphasis destructive action.\n * - If `'floating'`, low-emphasis action without a border or background.\n * - If `'floatingAction'`, icon-only floating action, typically fixed-positioned.\n * - If `'tertiary'`, deprecated low-emphasis style; use `'floating'` instead.\n */\n variant: (typeof buttonVariantValues)[number] | \"tertiary\";\n};\n\n// These are split and exported separately from the above because wrappers of this (e.g. Button) will\n// want to omit children, which they cannot do from the combined union type. Instead, they should\n// omit from BaseButtonProps, then union with the AdditionalBaseButtonProps (as seen in Button)\nexport type AdditionalBaseButtonProps = Pick<\n HtmlProps,\n | \"ariaControls\"\n | \"ariaDescribedBy\"\n | \"ariaExpanded\"\n | \"ariaHasPopup\"\n | \"ariaLabel\"\n | \"ariaLabelledBy\"\n | \"tabIndex\"\n | \"testId\"\n | \"translate\"\n>;\n\n/**\n * The internal base button primitive used by all Odyssey button variants. Handles icon placement,\n * full-width layout, tooltip wrapping, focus handle forwarding, and MUI prop context integration.\n */\nconst BaseButton = ({\n ariaControls,\n ariaDescribedBy,\n ariaExpanded,\n ariaHasPopup,\n ariaLabel,\n ariaLabelledBy,\n buttonRef,\n children,\n endIcon,\n href,\n id,\n isDisabled,\n isFullWidth: isFullWidthProp,\n isLoading,\n label = \"\",\n onClick,\n size = \"medium\",\n startIcon,\n tabIndex,\n testId,\n tooltipText,\n translate,\n type = \"button\",\n variant: variantProp,\n}: BaseButtonProps & AdditionalBaseButtonProps) => {\n const muiProps = useMuiProps();\n\n // We're deprecating the \"tertiary\" variant, so map it to\n // \"secondary\" in lieu of making a breaking change\n const variant = variantProp === \"tertiary\" ? \"secondary\" : variantProp;\n const localButtonRef = useRef<HTMLButtonElement | HTMLAnchorElement>(null);\n const buttonContext = useButton();\n const odysseyDesignTokens = useOdysseyDesignTokens();\n const isFullWidth = useMemo(\n () =>\n buttonContext.isFullWidth ? buttonContext.isFullWidth : isFullWidthProp,\n [buttonContext, isFullWidthProp],\n );\n\n const buttonContent = children ?? label;\n\n const loadingIndicator = useMemo(\n () => (\n // Design specifies each variant's spinner color as that variant's own\n // label color, so `color=\"inherit\"` keeps the two in step instead of\n // restating the palette per variant. MUI's CircularProgress is used\n // directly because Odyssey's wrapper deliberately exposes neither a size\n // nor a color prop, and design asked for the 16px sizing to stay internal\n // to Button. Stroke weight comes from the shared theme default, which\n // holds a 1:12 stroke-to-diameter ratio at any size.\n <MuiCircularProgress\n aria-hidden\n color=\"inherit\"\n size={odysseyDesignTokens.Spacing4}\n />\n ),\n [odysseyDesignTokens],\n );\n\n // An inert button keeps its `href` so it stays focusable and keeps its link\n // role, which leaves the browser's own activation as the thing to stop:\n // `pointer-events: none` from the theme only blocks the mouse, and because\n // `aria-disabled` is advisory, Enter still dispatches a click that would\n // follow the link or submit the form. Preventing the default on that click\n // covers every input method without swapping the element out.\n const handleClick = useCallback<NonNullable<MuiButtonProps[\"onClick\"]>>(\n (event) => {\n if (isLoading || isDisabled) {\n event.preventDefault();\n return;\n }\n\n onClick?.(event);\n },\n [isDisabled, isLoading, onClick],\n );\n\n useImperativeHandle(\n buttonRef,\n () => ({\n focus: () => {\n localButtonRef.current?.focus();\n },\n }),\n [],\n );\n\n const renderButton = useCallback(\n (muiProps: MuiPropsContextType) => {\n return (\n <MuiButton\n {...muiProps}\n aria-busy={isLoading}\n aria-controls={ariaControls}\n aria-describedby={ariaDescribedBy}\n aria-disabled={isLoading || isDisabled}\n aria-expanded={ariaExpanded}\n aria-haspopup={ariaHasPopup}\n aria-label={ariaLabel}\n aria-labelledby={ariaLabelledBy}\n data-se={testId}\n endIcon={endIcon}\n fullWidth={isFullWidth}\n href={href}\n id={id}\n onClick={handleClick}\n ref={(element) => {\n if (element) {\n (\n localButtonRef as React.MutableRefObject<\n HTMLButtonElement | HTMLAnchorElement\n >\n ).current = element;\n //@ts-expect-error ref is not an optional prop on the props context type\n muiProps?.ref?.(element);\n }\n }}\n size={size}\n startIcon={isLoading ? loadingIndicator : startIcon}\n tabIndex={tabIndex}\n translate={translate}\n type={type}\n variant={variant}\n >\n {buttonContent}\n </MuiButton>\n );\n },\n [\n ariaControls,\n ariaDescribedBy,\n ariaExpanded,\n ariaHasPopup,\n ariaLabel,\n ariaLabelledBy,\n buttonContent,\n endIcon,\n handleClick,\n href,\n id,\n isDisabled,\n isFullWidth,\n isLoading,\n loadingIndicator,\n size,\n startIcon,\n tabIndex,\n testId,\n translate,\n type,\n variant,\n ],\n );\n\n if (tooltipText) {\n return (\n <Tooltip ariaType=\"description\" placement=\"top\" text={tooltipText}>\n <MuiPropsContext.Consumer>{renderButton}</MuiPropsContext.Consumer>\n </Tooltip>\n );\n }\n\n return renderButton(muiProps);\n};\n\nconst MemoizedBaseButton = memo(BaseButton);\nMemoizedBaseButton.displayName = \"BaseButton\";\n\nexport { MemoizedBaseButton as BaseButton };\n"],"mappings":";;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAQA,SAEEA,IAAI,EAIJC,WAAW,EACXC,mBAAmB,EACnBC,OAAO,EACPC,MAAM,QACD,OAAO;AAKd,SACEC,eAAe,EAEfC,WAAW,QACN,uBAAuB;AAC9B,SAASC,sBAAsB,QAAQ,kCAAkC;AACzE,SAASC,OAAO,QAAQ,eAAe;AACvC,SAASC,SAAS,QAAQ,oBAAoB;AAAC,SAAAC,GAAA,IAAAC,IAAA;AAE/C,OAAO,MAAMC,gBAAgB,GAAG,CAAC,OAAO,EAAE,QAAQ,EAAE,OAAO,CAAU;AACrE,OAAO,MAAMC,gBAAgB,GAAG,CAAC,QAAQ,EAAE,QAAQ,EAAE,OAAO,CAAU;AACtE,OAAO,MAAMC,mBAAmB,GAAG,CACjC,SAAS,EACT,WAAW,EACX,QAAQ,EACR,iBAAiB,EACjB,UAAU,EACV,gBAAgB,CACR;AAwGV,MAAMC,UAAU,GAAGA,CAAC;EAClBC,YAAY;EACZC,eAAe;EACfC,YAAY;EACZC,YAAY;EACZC,SAAS;EACTC,cAAc;EACdC,SAAS;EACTC,QAAQ;EACRC,OAAO;EACPC,IAAI;EACJC,EAAE;EACFC,UAAU;EACVC,WAAW,EAAEC,eAAe;EAC5BC,SAAS;EACTC,KAAK,GAAG,EAAE;EACVC,OAAO;EACPC,IAAI,GAAG,QAAQ;EACfC,SAAS;EACTC,QAAQ;EACRC,MAAM;EACNC,WAAW;EACXC,SAAS;EACTC,IAAI,GAAG,QAAQ;EACfC,OAAO,EAAEC;AACkC,CAAC,KAAK;EACjD,MAAMC,QAAQ,GAAGpC,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AAQ,CAAC;AAC/B,CAAC;AAED,MAAMuB,kBAAkB,GAAGjE,IAAI,CAACe,UAAU,CAAC;AAC3CkD,kBAAkB,CAACC,WAAW,4CAAe;AAE7C,SAASD,kBAAkB,IAAIlD,UAAU","ignoreList":[]}
@@ -165,6 +165,6 @@ const BaseMenuButton = ({
165
165
  });
166
166
  };
167
167
  const MemoizedBaseMenuButton = memo(BaseMenuButton);
168
- MemoizedBaseMenuButton.displayName = "BaseMenuButton::pkg=odyssey&odysseyV=1.67.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.67.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.67.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.67.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.67.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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,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,QA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reList":[]}
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.67.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 = \"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ACfM,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":[]}
@@ -0,0 +1,108 @@
1
+ import _Skeleton from "@mui/material/Skeleton";
2
+ /*!
3
+ * Copyright (c) 2026-present, Okta, Inc. and/or its affiliates. All rights reserved.
4
+ * The Okta software accompanied by this notice is provided pursuant to the Apache License, Version 2.0 (the "License.")
5
+ *
6
+ * You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0.
7
+ * Unless required by applicable law or agreed to in writing, software
8
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
9
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
10
+ *
11
+ * See the License for the specific language governing permissions and limitations under the License.
12
+ */
13
+ import { skeletonClasses } from "@mui/material/Skeleton";
14
+ import { memo, useId } from "react";
15
+ import { createOdysseyStyledComponent } from "../createOdysseyStyledComponent.js";
16
+ import { useTranslation } from "../i18n.generated/i18n.js";
17
+ import { Heading4, Paragraph } from "../Typography.js";
18
+ import { ChartError } from "./ChartError.js";
19
+ import { useChartTokens } from "./chartTokens.js";
20
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
21
+ const Frame = createOdysseyStyledComponent({
22
+ tag: "section",
23
+ shouldForwardProp: prop => prop !== "minHeight"
24
+ })(({
25
+ odysseyDesignTokens,
26
+ minHeight
27
+ }) => ({
28
+ display: "flex",
29
+ flexDirection: "column",
30
+ gap: odysseyDesignTokens.Spacing4,
31
+ height: "100%",
32
+ minHeight
33
+ }));
34
+ const Header = createOdysseyStyledComponent({
35
+ tag: "header"
36
+ })(({
37
+ odysseyDesignTokens
38
+ }) => ({
39
+ display: "flex",
40
+ flexDirection: "column",
41
+ flexShrink: 0,
42
+ gap: odysseyDesignTokens.Spacing2,
43
+ "& > h4, & > p": {
44
+ marginBlock: 0
45
+ }
46
+ }));
47
+ const Body = createOdysseyStyledComponent({
48
+ tag: "div"
49
+ })({
50
+ display: "grid",
51
+ flex: 1,
52
+ gridTemplateRows: "1fr",
53
+ minHeight: 0
54
+ });
55
+ const LoadingSkeleton = createOdysseyStyledComponent({
56
+ tag: "div"
57
+ })({
58
+ height: "100%",
59
+ width: "100%",
60
+ [`& .${skeletonClasses.root}`]: {
61
+ height: "100%",
62
+ width: "100%"
63
+ }
64
+ });
65
+ const ChartFrame = ({
66
+ children,
67
+ hasError,
68
+ isLoading,
69
+ onRetry,
70
+ subtitle,
71
+ title
72
+ }) => {
73
+ const {
74
+ minHeight
75
+ } = useChartTokens();
76
+ const {
77
+ t
78
+ } = useTranslation();
79
+ const headingId = useId();
80
+ const hasHeader = Boolean(title);
81
+ const subtitleText = hasHeader ? subtitle : undefined;
82
+ return _jsxs(Frame, {
83
+ "aria-labelledby": hasHeader ? headingId : undefined,
84
+ minHeight: minHeight,
85
+ children: [hasHeader && _jsxs(Header, {
86
+ children: [_jsx(Heading4, {
87
+ id: headingId,
88
+ children: title
89
+ }), subtitleText && _jsx(Paragraph, {
90
+ children: subtitleText
91
+ })]
92
+ }), _jsx(Body, {
93
+ children: isLoading ? _jsx(LoadingSkeleton, {
94
+ "aria-label": t("chart.loading.arialabel"),
95
+ role: "status",
96
+ children: _jsx(_Skeleton, {
97
+ variant: "rounded"
98
+ })
99
+ }) : hasError ? _jsx(ChartError, {
100
+ onRetry: onRetry
101
+ }) : children
102
+ })]
103
+ });
104
+ };
105
+ const MemoizedChartFrame = memo(ChartFrame);
106
+ MemoizedChartFrame.displayName = "ChartFrame::pkg=odyssey&odysseyV=1.69.0";
107
+ export { MemoizedChartFrame as ChartFrame };
108
+ //# sourceMappingURL=ChartFrame.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ChartFrame.js","names":["skeletonClasses","memo","useId","createOdysseyStyledComponent","useTranslation","Heading4","Paragraph","ChartError","useChartTokens","jsx","_jsx","jsxs","_jsxs","Frame","tag","shouldForwardProp","prop","odysseyDesignTokens","minHeight","display","flexDirection","gap","Spacing4","height","Header","flexShrink","Spacing2","marginBlock","Body","flex","gridTemplateRows","LoadingSkeleton","width","root","ChartFrame","children","hasError","isLoading","onRetry","subtitle","title","t","headingId","hasHeader","Boolean","subtitleText","undefined","id","role","_Skeleton","variant","MemoizedChartFrame","displayName"],"sources":["../../../src/Charts/ChartFrame.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 { Skeleton as MuiSkeleton } from \"@mui/material\";\nimport { skeletonClasses } from \"@mui/material/Skeleton\";\nimport { memo, type ReactElement, useId } from \"react\";\n\nimport { createOdysseyStyledComponent } from \"../createOdysseyStyledComponent.js\";\nimport { useTranslation } from \"../i18n.generated/i18n.js\";\nimport { Heading4, Paragraph } from \"../Typography.js\";\nimport { ChartError } from \"./ChartError.js\";\nimport { useChartTokens } from \"./chartTokens.js\";\n\n/** The props for a chart frame. */\nexport type ChartFrameProps = {\n /**\n * The chart. The frame shows this element when there is no error state and\n * no loading state.\n */\n children: ReactElement;\n /**\n * If `true`, the frame shows an error state in place of the chart body.\n * `isLoading` takes precedence over this property.\n */\n hasError?: boolean;\n /**\n * If `true`, the frame shows a loading skeleton in place of the chart\n * body. `isLoading` takes precedence over `hasError`.\n */\n isLoading?: boolean;\n /**\n * The frame calls this function when a user clicks the retry button in\n * the error state. The error state shows no retry button when the caller\n * omits this property.\n *\n * @see {@link CartesianChartProps.onRetry} for the retry flow that a\n * consumer follows. That property is the public one, so it owns the\n * description.\n */\n onRetry?: () => void;\n /**\n * The subtitle text, shown below the title. The frame ignores this text\n * when `title` has no value, because a subtitle explains a title and means\n * nothing alone.\n */\n subtitle?: string;\n /**\n * The title text, shown as a real heading above the chart body. The heading\n * survives every state: loaded, loading, and error.\n */\n title?: string;\n};\n\n// This frame supplies only a height floor. A consumer that sets a real height\n// on the parent element still controls the final height, because this value\n// is a minimum and not a fixed size.\nconst Frame = createOdysseyStyledComponent({\n tag: \"section\",\n shouldForwardProp: (prop) => prop !== \"minHeight\",\n})<{ minHeight: string }>(({ odysseyDesignTokens, minHeight }) => ({\n display: \"flex\",\n flexDirection: \"column\",\n gap: odysseyDesignTokens.Spacing4,\n height: \"100%\",\n minHeight,\n}));\n\n// The header must not shrink, so the body takes every pixel of height that\n// the header does not need.\n//\n// `gap` needs a flex or grid container to have any effect, and a `header` is\n// a block element by default. `Heading4` renders an `h4` and `Paragraph`\n// renders a `p`, and each carries its own block margins, which would add to\n// the gap, so the margin reset names both elements.\nconst Header = createOdysseyStyledComponent({ tag: \"header\" })(\n ({ odysseyDesignTokens }) => ({\n display: \"flex\",\n flexDirection: \"column\",\n flexShrink: 0,\n gap: odysseyDesignTokens.Spacing2,\n\n \"& > h4, & > p\": {\n marginBlock: 0,\n },\n }),\n);\n\n// A flex item defaults to a minimum height equal to its content, so this item\n// would otherwise refuse to shrink below the height of the chart it holds.\n// The zero minimum height lets the body take the flex space that `flex: 1`\n// assigns to it.\n//\n// The body is also a single-row grid. The charting library draws a bare div\n// with no class name and no height of its own. A block-level child of a flex\n// column collapses to the height of its own content, which is zero before\n// the chart draws, and the library then picks a fixed height of its own. A\n// grid child stretches to fill its row by default, so the bare div fills the\n// body without this file naming a class or reaching into a child with a\n// selector.\nconst Body = createOdysseyStyledComponent({ tag: \"div\" })({\n display: \"grid\",\n flex: 1,\n gridTemplateRows: \"1fr\",\n minHeight: 0,\n});\n\n// The real chart also fills the height of its parent rather than setting a\n// height of its own, so this fills the same `Body` grid cell the same way.\nconst LoadingSkeleton = createOdysseyStyledComponent({ tag: \"div\" })({\n height: \"100%\",\n width: \"100%\",\n [`& .${skeletonClasses.root}`]: {\n height: \"100%\",\n width: \"100%\",\n },\n});\n\n/**\n * A layout wrapper for a chart. The frame holds two parts: a header that\n * shows the title and the subtitle as real HTML, and a body below it. The\n * body shows exactly one of three states: a loading skeleton, an error\n * state, or the chart itself. The header stays on screen in all three\n * states.\n */\nconst ChartFrame = ({\n children,\n hasError,\n isLoading,\n onRetry,\n subtitle,\n title,\n}: ChartFrameProps) => {\n const { minHeight } = useChartTokens();\n const { t } = useTranslation();\n const headingId = useId();\n\n const hasHeader = Boolean(title);\n const subtitleText = hasHeader ? subtitle : undefined;\n\n return (\n <Frame\n aria-labelledby={hasHeader ? headingId : undefined}\n minHeight={minHeight}\n >\n {hasHeader && (\n <Header>\n <Heading4 id={headingId}>{title}</Heading4>\n {subtitleText && <Paragraph>{subtitleText}</Paragraph>}\n </Header>\n )}\n <Body>\n {/*\n * A retry sets isLoading while the failed data is still on record.\n * Loading must win here, or the user who just clicked retry would\n * still see the error they were trying to clear, instead of seeing\n * that their request is in flight.\n */}\n {isLoading ? (\n <LoadingSkeleton\n aria-label={t(\"chart.loading.arialabel\")}\n role=\"status\"\n >\n <MuiSkeleton variant=\"rounded\" />\n </LoadingSkeleton>\n ) : hasError ? (\n <ChartError onRetry={onRetry} />\n ) : (\n children\n )}\n </Body>\n </Frame>\n );\n};\n\nconst MemoizedChartFrame = memo(ChartFrame);\nMemoizedChartFrame.displayName = \"ChartFrame\";\n\nexport { MemoizedChartFrame as ChartFrame };\n"],"mappings":";AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAGA,SAASA,eAAe,QAAQ,wBAAwB;AACxD,SAASC,IAAI,EAAqBC,KAAK,QAAQ,OAAO;AAEtD,SAASC,4BAA4B,QAAQ,oCAAoC;AACjF,SAASC,cAAc,QAAQ,2BAA2B;AAC1D,SAASC,QAAQ,EAAEC,SAAS,QAAQ,kBAAkB;AACtD,SAASC,UAAU,QAAQ,iBAAiB;AAC5C,SAASC,cAAc,QAAQ,kBAAkB;AAAC,SAAAC,GAAA,IAAAC,IAAA,EAAAC,IAAA,IAAAC,KAAA;AA6ClD,MAAMC,KAAK,GAAGV,4BAA4B,CAAC;EACzCW,GAAG,EAAE,SAAS;EACdC,iBAAiB,EAAGC,IAAI,IAAKA,IAAI,KAAK;AACxC,CAAC,CAAC,CAAwB,CAAC;EAAEC,mBAAmB;EAAEC;AAAU,CAAC,MAAM;EACjEC,OAAO,EAAE,MAAM;EACfC,aAAa,EAAE,QAAQ;EACvBC,GAAG,EAAEJ,mBAAmB,CAACK,QAAQ;EACjCC,MAAM,EAAE,MAAM;EACdL;AACF,CAAC,CAAC,CAAC;AASH,MAAMM,MAAM,GAAGrB,4BAA4B,CAAC;EAAEW,GAAG,EAAE;AAAS,CAAC,CAAC,CAC5D,CAAC;EAAEG;AAAoB,CAAC,MAAM;EAC5BE,OAAO,EAAE,MAAM;EACfC,aAAa,EAAE,QAAQ;EACvBK,UAAU,EAAE,CAAC;EACbJ,GAAG,EAAEJ,mBAAmB,CAACS,QAAQ;EAEjC,eAAe,EAAE;IACfC,WAAW,EAAE;EACf;AACF,CAAC,CACH,CAAC;AAcD,MAAMC,IAAI,GAAGzB,4BAA4B,CAAC;EAAEW,GAA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