@okta/odyssey-react-mui 1.69.0 → 1.70.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 (780) hide show
  1. package/dist/cjs/Accordion.cjs +1 -1
  2. package/dist/cjs/AnimationContext.cjs +42 -0
  3. package/dist/cjs/AnimationContext.cjs.map +1 -0
  4. package/dist/cjs/Autocomplete.cjs +1 -1
  5. package/dist/cjs/Badge.cjs +1 -1
  6. package/dist/cjs/Banner.cjs +1 -1
  7. package/dist/cjs/Box.cjs +1 -1
  8. package/dist/cjs/Breadcrumbs.cjs +1 -1
  9. package/dist/cjs/Buttons/BaseButton.cjs +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/Card.cjs +1 -1
  16. package/dist/cjs/CircularProgress.cjs +1 -1
  17. package/dist/cjs/ConditionalWrapper.cjs +1 -1
  18. package/dist/cjs/DataTable/DataTable.cjs +1 -1
  19. package/dist/cjs/DataTable/DataTableRowActions.cjs +1 -1
  20. package/dist/cjs/DataTable/DataTableSettings.cjs +1 -1
  21. package/dist/cjs/DatePickers/DateField.cjs +1 -1
  22. package/dist/cjs/DatePickers/DateFieldActionBar.cjs +1 -1
  23. package/dist/cjs/DatePickers/DateFieldLocalizationProvider.cjs +1 -1
  24. package/dist/cjs/DatePickers/DatePicker.cjs +1 -1
  25. package/dist/cjs/DatePickers/TimeZonePicker.cjs +1 -1
  26. package/dist/cjs/Dialog.cjs +1 -1
  27. package/dist/cjs/Drawer.cjs +1 -1
  28. package/dist/cjs/EmptyState.cjs +1 -1
  29. package/dist/cjs/ErrorMessageList.cjs +1 -1
  30. package/dist/cjs/Field.cjs +1 -1
  31. package/dist/cjs/FieldError.cjs +1 -1
  32. package/dist/cjs/FieldHint.cjs +1 -1
  33. package/dist/cjs/FieldLabel.cjs +1 -1
  34. package/dist/cjs/Fields/Checkbox.cjs +1 -1
  35. package/dist/cjs/Fields/CheckboxGroup.cjs +1 -1
  36. package/dist/cjs/Fields/Radio.cjs +1 -1
  37. package/dist/cjs/Fields/RadioGroup.cjs +1 -1
  38. package/dist/cjs/Fieldset.cjs +1 -1
  39. package/dist/cjs/FileUploader/FileUploadIllustration.cjs +1 -1
  40. package/dist/cjs/FileUploader/FileUploadPreview.cjs +1 -1
  41. package/dist/cjs/FileUploader/FileUploader.cjs +1 -1
  42. package/dist/cjs/Form.cjs +1 -1
  43. package/dist/cjs/FullScreenOverlay.cjs +1 -1
  44. package/dist/cjs/FullScreenOverlayContext.cjs +1 -1
  45. package/dist/cjs/HintLink.cjs +1 -1
  46. package/dist/cjs/IconWithTooltip.cjs +1 -1
  47. package/dist/cjs/Link.cjs +1 -1
  48. package/dist/cjs/MuiPropsChild.cjs +1 -1
  49. package/dist/cjs/NativeSelect.cjs +1 -1
  50. package/dist/cjs/OdysseyCacheProvider.cjs +1 -1
  51. package/dist/cjs/OdysseyProvider.cjs +18 -13
  52. package/dist/cjs/OdysseyProvider.cjs.map +1 -1
  53. package/dist/cjs/OdysseyThemeProvider.cjs +1 -1
  54. package/dist/cjs/OdysseyThemeProviderPropsContext.cjs +1 -1
  55. package/dist/cjs/Pagination/Pagination.cjs +1 -1
  56. package/dist/cjs/PasswordField.cjs +1 -1
  57. package/dist/cjs/ScreenReaderText.cjs +1 -1
  58. package/dist/cjs/SearchField.cjs +1 -1
  59. package/dist/cjs/Select.cjs +1 -1
  60. package/dist/cjs/Stack.cjs +1 -1
  61. package/dist/cjs/Status.cjs +1 -1
  62. package/dist/cjs/Surface.cjs +1 -1
  63. package/dist/cjs/Switch.cjs +2 -2
  64. package/dist/cjs/Tabs.cjs +1 -1
  65. package/dist/cjs/Tag.cjs +1 -1
  66. package/dist/cjs/TagList.cjs +1 -1
  67. package/dist/cjs/TextField.cjs +1 -1
  68. package/dist/cjs/Toast.cjs +1 -1
  69. package/dist/cjs/ToastStack.cjs +1 -1
  70. package/dist/cjs/Tooltip.cjs +1 -1
  71. package/dist/cjs/Typography.cjs +12 -12
  72. package/dist/cjs/__internal.cjs +22 -0
  73. package/dist/cjs/__internal.cjs.map +1 -1
  74. package/dist/cjs/charts/BarChart.cjs +223 -0
  75. package/dist/cjs/charts/BarChart.cjs.map +1 -0
  76. package/dist/cjs/charts/LineChart.cjs +242 -0
  77. package/dist/cjs/charts/LineChart.cjs.map +1 -0
  78. package/dist/cjs/charts/components/ChartContainer.cjs +32 -0
  79. package/dist/cjs/charts/components/ChartContainer.cjs.map +1 -0
  80. package/dist/cjs/{Charts → charts/components}/ChartError.cjs +6 -6
  81. package/dist/cjs/charts/components/ChartError.cjs.map +1 -0
  82. package/dist/cjs/{Charts → charts/components}/ChartFrame.cjs +9 -7
  83. package/dist/cjs/charts/components/ChartFrame.cjs.map +1 -0
  84. package/dist/cjs/charts/components/ChartPopoverContent.cjs +123 -0
  85. package/dist/cjs/charts/components/ChartPopoverContent.cjs.map +1 -0
  86. package/dist/cjs/{Charts → charts}/index.cjs +7 -0
  87. package/dist/cjs/charts/index.cjs.map +1 -0
  88. package/dist/cjs/charts/useChartAnimation.cjs +27 -0
  89. package/dist/cjs/charts/useChartAnimation.cjs.map +1 -0
  90. package/dist/cjs/charts/utils/chartTokens.cjs +162 -0
  91. package/dist/cjs/charts/utils/chartTokens.cjs.map +1 -0
  92. package/dist/cjs/charts/utils/chartTypes.cjs.map +1 -0
  93. package/dist/cjs/charts/utils/formatChartValue.cjs.map +1 -0
  94. package/dist/cjs/charts/utils/getChartSeriesPointData.cjs.map +1 -0
  95. package/dist/cjs/charts/utils/hasDuplicateSeries.cjs.map +1 -0
  96. package/dist/cjs/charts/utils/resolveChartLocale.cjs.map +1 -0
  97. package/dist/cjs/{Charts → charts/utils}/useChartValueFormatter.cjs +1 -1
  98. package/dist/cjs/charts/utils/useChartValueFormatter.cjs.map +1 -0
  99. package/dist/cjs/charts/utils/useStableValue.cjs.map +1 -0
  100. package/dist/cjs/createOdysseyStyledComponent.cjs +4 -3
  101. package/dist/cjs/createOdysseyStyledComponent.cjs.map +1 -1
  102. package/dist/cjs/icons.generated/Add.cjs +1 -1
  103. package/dist/cjs/icons.generated/AddCircle.cjs +1 -1
  104. package/dist/cjs/icons.generated/Apps.cjs +1 -1
  105. package/dist/cjs/icons.generated/AppsSelected.cjs +1 -1
  106. package/dist/cjs/icons.generated/ArrowBottom.cjs +1 -1
  107. package/dist/cjs/icons.generated/ArrowDown.cjs +1 -1
  108. package/dist/cjs/icons.generated/ArrowLeft.cjs +1 -1
  109. package/dist/cjs/icons.generated/ArrowLowerLeft.cjs +1 -1
  110. package/dist/cjs/icons.generated/ArrowLowerRight.cjs +1 -1
  111. package/dist/cjs/icons.generated/ArrowRight.cjs +1 -1
  112. package/dist/cjs/icons.generated/ArrowTop.cjs +1 -1
  113. package/dist/cjs/icons.generated/ArrowUnsorted.cjs +1 -1
  114. package/dist/cjs/icons.generated/ArrowUp.cjs +1 -1
  115. package/dist/cjs/icons.generated/ArrowUpperLeft.cjs +1 -1
  116. package/dist/cjs/icons.generated/ArrowUpperRight.cjs +1 -1
  117. package/dist/cjs/icons.generated/Bug.cjs +1 -1
  118. package/dist/cjs/icons.generated/Calendar.cjs +1 -1
  119. package/dist/cjs/icons.generated/Call.cjs +1 -1
  120. package/dist/cjs/icons.generated/Chat.cjs +1 -1
  121. package/dist/cjs/icons.generated/Check.cjs +1 -1
  122. package/dist/cjs/icons.generated/CheckCircleFilled.cjs +1 -1
  123. package/dist/cjs/icons.generated/ChevronDown.cjs +1 -1
  124. package/dist/cjs/icons.generated/ChevronLeft.cjs +1 -1
  125. package/dist/cjs/icons.generated/ChevronRight.cjs +1 -1
  126. package/dist/cjs/icons.generated/ChevronUp.cjs +1 -1
  127. package/dist/cjs/icons.generated/Clock.cjs +1 -1
  128. package/dist/cjs/icons.generated/Close.cjs +1 -1
  129. package/dist/cjs/icons.generated/CloseCircleFilled.cjs +1 -1
  130. package/dist/cjs/icons.generated/CollapseLeft.cjs +1 -1
  131. package/dist/cjs/icons.generated/CollapseRight.cjs +1 -1
  132. package/dist/cjs/icons.generated/Copy.cjs +1 -1
  133. package/dist/cjs/icons.generated/Customizations.cjs +1 -1
  134. package/dist/cjs/icons.generated/CustomizationsSelected.cjs +1 -1
  135. package/dist/cjs/icons.generated/DangerDiamond.cjs +1 -1
  136. package/dist/cjs/icons.generated/DangerDiamondFilled.cjs +1 -1
  137. package/dist/cjs/icons.generated/Delete.cjs +1 -1
  138. package/dist/cjs/icons.generated/Deny.cjs +1 -1
  139. package/dist/cjs/icons.generated/Devices.cjs +1 -1
  140. package/dist/cjs/icons.generated/Directory.cjs +1 -1
  141. package/dist/cjs/icons.generated/DirectorySelected.cjs +1 -1
  142. package/dist/cjs/icons.generated/Documentation.cjs +1 -1
  143. package/dist/cjs/icons.generated/Download.cjs +1 -1
  144. package/dist/cjs/icons.generated/DragIndicator.cjs +1 -1
  145. package/dist/cjs/icons.generated/Edit.cjs +1 -1
  146. package/dist/cjs/icons.generated/ExpandLeft.cjs +1 -1
  147. package/dist/cjs/icons.generated/ExpandRight.cjs +1 -1
  148. package/dist/cjs/icons.generated/ExternalLink.cjs +1 -1
  149. package/dist/cjs/icons.generated/Filter.cjs +1 -1
  150. package/dist/cjs/icons.generated/Folder.cjs +1 -1
  151. package/dist/cjs/icons.generated/Globe.cjs +1 -1
  152. package/dist/cjs/icons.generated/Grid.cjs +1 -1
  153. package/dist/cjs/icons.generated/Group.cjs +1 -1
  154. package/dist/cjs/icons.generated/Happy.cjs +1 -1
  155. package/dist/cjs/icons.generated/Hide.cjs +1 -1
  156. package/dist/cjs/icons.generated/Home.cjs +1 -1
  157. package/dist/cjs/icons.generated/HomeSelected.cjs +1 -1
  158. package/dist/cjs/icons.generated/IdentityGovernance.cjs +1 -1
  159. package/dist/cjs/icons.generated/IdentityGovernanceSelected.cjs +1 -1
  160. package/dist/cjs/icons.generated/InformationCircle.cjs +1 -1
  161. package/dist/cjs/icons.generated/InformationCircleFilled.cjs +1 -1
  162. package/dist/cjs/icons.generated/Link.cjs +1 -1
  163. package/dist/cjs/icons.generated/List.cjs +1 -1
  164. package/dist/cjs/icons.generated/Lock.cjs +1 -1
  165. package/dist/cjs/icons.generated/Menu.cjs +1 -1
  166. package/dist/cjs/icons.generated/More.cjs +1 -1
  167. package/dist/cjs/icons.generated/Neutral.cjs +1 -1
  168. package/dist/cjs/icons.generated/Notification.cjs +1 -1
  169. package/dist/cjs/icons.generated/Pause.cjs +1 -1
  170. package/dist/cjs/icons.generated/QuestionCircle.cjs +1 -1
  171. package/dist/cjs/icons.generated/QuestionCircleFilled.cjs +1 -1
  172. package/dist/cjs/icons.generated/Refresh.cjs +1 -1
  173. package/dist/cjs/icons.generated/Reports.cjs +1 -1
  174. package/dist/cjs/icons.generated/ReportsSelected.cjs +1 -1
  175. package/dist/cjs/icons.generated/Reset.cjs +1 -1
  176. package/dist/cjs/icons.generated/Resume.cjs +1 -1
  177. package/dist/cjs/icons.generated/Sad.cjs +1 -1
  178. package/dist/cjs/icons.generated/Same.cjs +1 -1
  179. package/dist/cjs/icons.generated/Search.cjs +1 -1
  180. package/dist/cjs/icons.generated/Security.cjs +1 -1
  181. package/dist/cjs/icons.generated/SecuritySelected.cjs +1 -1
  182. package/dist/cjs/icons.generated/Send.cjs +1 -1
  183. package/dist/cjs/icons.generated/Server.cjs +1 -1
  184. package/dist/cjs/icons.generated/Settings.cjs +1 -1
  185. package/dist/cjs/icons.generated/SettingsSelected.cjs +1 -1
  186. package/dist/cjs/icons.generated/Show.cjs +1 -1
  187. package/dist/cjs/icons.generated/Sparkle.cjs +1 -1
  188. package/dist/cjs/icons.generated/Subtract.cjs +1 -1
  189. package/dist/cjs/icons.generated/Sync.cjs +1 -1
  190. package/dist/cjs/icons.generated/ThumbsDown.cjs +1 -1
  191. package/dist/cjs/icons.generated/ThumbsUp.cjs +1 -1
  192. package/dist/cjs/icons.generated/Unlock.cjs +1 -1
  193. package/dist/cjs/icons.generated/Upload.cjs +1 -1
  194. package/dist/cjs/icons.generated/User.cjs +1 -1
  195. package/dist/cjs/icons.generated/Video.cjs +1 -1
  196. package/dist/cjs/icons.generated/Warning.cjs +1 -1
  197. package/dist/cjs/icons.generated/WarningFilled.cjs +1 -1
  198. package/dist/cjs/icons.generated/Workflows.cjs +1 -1
  199. package/dist/cjs/icons.generated/WorkflowsSelected.cjs +1 -1
  200. package/dist/cjs/labs/AppTile.cjs +1 -1
  201. package/dist/cjs/labs/DataFilters.cjs +2 -2
  202. package/dist/cjs/labs/DataTable.cjs +1 -1
  203. package/dist/cjs/labs/DataTablePagination.cjs +1 -1
  204. package/dist/cjs/labs/DataView/BulkActionsMenu.cjs +1 -1
  205. package/dist/cjs/labs/DataView/CardLayoutContent.cjs +2 -2
  206. package/dist/cjs/labs/DataView/DataCard.cjs +1 -1
  207. package/dist/cjs/labs/DataView/DataTable.cjs +1 -1
  208. package/dist/cjs/labs/DataView/DataView.cjs +1 -1
  209. package/dist/cjs/labs/DataView/DetailPanel.cjs +1 -1
  210. package/dist/cjs/labs/DataView/LayoutSwitcher.cjs +1 -1
  211. package/dist/cjs/labs/DataView/RowActions.cjs +1 -1
  212. package/dist/cjs/labs/DataView/TableLayoutContent.cjs +1 -1
  213. package/dist/cjs/labs/DataView/TableSettings.cjs +1 -1
  214. package/dist/cjs/labs/DatePickers/DateTimeField.cjs +1 -1
  215. package/dist/cjs/labs/DatePickers/DateTimePicker.cjs +1 -1
  216. package/dist/cjs/labs/OdysseyPickers/ComposablePicker.cjs +1 -1
  217. package/dist/cjs/labs/OdysseyPickers/Picker.cjs +1 -1
  218. package/dist/cjs/labs/OdysseyPickers/PickerVirtualizationListBox.cjs +1 -1
  219. package/dist/cjs/labs/OdysseyPickers/PickerWithOptionAdornment.cjs +1 -1
  220. package/dist/cjs/labs/OdysseyPickers/SearchDropdown.cjs +1 -1
  221. package/dist/cjs/labs/PageTemplate/DocumentationLink.cjs +1 -1
  222. package/dist/cjs/labs/PageTemplate/Layout.cjs +1 -1
  223. package/dist/cjs/labs/PageTemplate/PageTemplate.cjs +1 -1
  224. package/dist/cjs/labs/PaginatedTable.cjs +1 -1
  225. package/dist/cjs/labs/StaticTable.cjs +1 -1
  226. package/dist/cjs/labs/UserProfile.cjs +1 -1
  227. package/dist/cjs/labs/UserProfileMenuButton.cjs +1 -1
  228. package/dist/cjs/logos.generated/Duo.cjs +1 -1
  229. package/dist/cjs/logos.generated/GoogleAuth.cjs +1 -1
  230. package/dist/cjs/logos.generated/OktaVerify.cjs +1 -1
  231. package/dist/cjs/logos.generated/Persona.cjs +1 -1
  232. package/dist/cjs/logos.generated/SymantecVip.cjs +1 -1
  233. package/dist/cjs/logos.generated/Yubikey.cjs +1 -1
  234. package/dist/cjs/properties/ts/odyssey-react-mui_cs.cjs +5 -1
  235. package/dist/cjs/properties/ts/odyssey-react-mui_cs.cjs.map +1 -1
  236. package/dist/cjs/properties/ts/odyssey-react-mui_da.cjs +4 -0
  237. package/dist/cjs/properties/ts/odyssey-react-mui_da.cjs.map +1 -1
  238. package/dist/cjs/properties/ts/odyssey-react-mui_de.cjs +4 -0
  239. package/dist/cjs/properties/ts/odyssey-react-mui_de.cjs.map +1 -1
  240. package/dist/cjs/properties/ts/odyssey-react-mui_el.cjs +5 -1
  241. package/dist/cjs/properties/ts/odyssey-react-mui_el.cjs.map +1 -1
  242. package/dist/cjs/properties/ts/odyssey-react-mui_es.cjs +4 -0
  243. package/dist/cjs/properties/ts/odyssey-react-mui_es.cjs.map +1 -1
  244. package/dist/cjs/properties/ts/odyssey-react-mui_eu.cjs +4 -0
  245. package/dist/cjs/properties/ts/odyssey-react-mui_eu.cjs.map +1 -1
  246. package/dist/cjs/properties/ts/odyssey-react-mui_fi.cjs +4 -0
  247. package/dist/cjs/properties/ts/odyssey-react-mui_fi.cjs.map +1 -1
  248. package/dist/cjs/properties/ts/odyssey-react-mui_fr.cjs +4 -0
  249. package/dist/cjs/properties/ts/odyssey-react-mui_fr.cjs.map +1 -1
  250. package/dist/cjs/properties/ts/odyssey-react-mui_ht.cjs +4 -0
  251. package/dist/cjs/properties/ts/odyssey-react-mui_ht.cjs.map +1 -1
  252. package/dist/cjs/properties/ts/odyssey-react-mui_hu.cjs +4 -0
  253. package/dist/cjs/properties/ts/odyssey-react-mui_hu.cjs.map +1 -1
  254. package/dist/cjs/properties/ts/odyssey-react-mui_id.cjs +4 -0
  255. package/dist/cjs/properties/ts/odyssey-react-mui_id.cjs.map +1 -1
  256. package/dist/cjs/properties/ts/odyssey-react-mui_it.cjs +4 -0
  257. package/dist/cjs/properties/ts/odyssey-react-mui_it.cjs.map +1 -1
  258. package/dist/cjs/properties/ts/odyssey-react-mui_ja.cjs +4 -0
  259. package/dist/cjs/properties/ts/odyssey-react-mui_ja.cjs.map +1 -1
  260. package/dist/cjs/properties/ts/odyssey-react-mui_ko.cjs +4 -0
  261. package/dist/cjs/properties/ts/odyssey-react-mui_ko.cjs.map +1 -1
  262. package/dist/cjs/properties/ts/odyssey-react-mui_ms.cjs +6 -2
  263. package/dist/cjs/properties/ts/odyssey-react-mui_ms.cjs.map +1 -1
  264. package/dist/cjs/properties/ts/odyssey-react-mui_nb.cjs +4 -0
  265. package/dist/cjs/properties/ts/odyssey-react-mui_nb.cjs.map +1 -1
  266. package/dist/cjs/properties/ts/odyssey-react-mui_nl_NL.cjs +4 -0
  267. package/dist/cjs/properties/ts/odyssey-react-mui_nl_NL.cjs.map +1 -1
  268. package/dist/cjs/properties/ts/odyssey-react-mui_pl.cjs +4 -0
  269. package/dist/cjs/properties/ts/odyssey-react-mui_pl.cjs.map +1 -1
  270. package/dist/cjs/properties/ts/odyssey-react-mui_pt_BR.cjs +4 -0
  271. package/dist/cjs/properties/ts/odyssey-react-mui_pt_BR.cjs.map +1 -1
  272. package/dist/cjs/properties/ts/odyssey-react-mui_ro.cjs +4 -0
  273. package/dist/cjs/properties/ts/odyssey-react-mui_ro.cjs.map +1 -1
  274. package/dist/cjs/properties/ts/odyssey-react-mui_ru.cjs +4 -0
  275. package/dist/cjs/properties/ts/odyssey-react-mui_ru.cjs.map +1 -1
  276. package/dist/cjs/properties/ts/odyssey-react-mui_sv.cjs +4 -0
  277. package/dist/cjs/properties/ts/odyssey-react-mui_sv.cjs.map +1 -1
  278. package/dist/cjs/properties/ts/odyssey-react-mui_th.cjs +4 -0
  279. package/dist/cjs/properties/ts/odyssey-react-mui_th.cjs.map +1 -1
  280. package/dist/cjs/properties/ts/odyssey-react-mui_tr.cjs +4 -0
  281. package/dist/cjs/properties/ts/odyssey-react-mui_tr.cjs.map +1 -1
  282. package/dist/cjs/properties/ts/odyssey-react-mui_uk.cjs +4 -0
  283. package/dist/cjs/properties/ts/odyssey-react-mui_uk.cjs.map +1 -1
  284. package/dist/cjs/properties/ts/odyssey-react-mui_vi.cjs +4 -0
  285. package/dist/cjs/properties/ts/odyssey-react-mui_vi.cjs.map +1 -1
  286. package/dist/cjs/properties/ts/odyssey-react-mui_zh_CN.cjs +4 -0
  287. package/dist/cjs/properties/ts/odyssey-react-mui_zh_CN.cjs.map +1 -1
  288. package/dist/cjs/properties/ts/odyssey-react-mui_zh_TW.cjs +4 -0
  289. package/dist/cjs/properties/ts/odyssey-react-mui_zh_TW.cjs.map +1 -1
  290. package/dist/cjs/ui-shell/AppSwitcher/AppSwitcher.cjs +1 -1
  291. package/dist/cjs/ui-shell/InnerAppContainer.cjs +1 -1
  292. package/dist/cjs/ui-shell/NarrowUiShellContent.cjs +1 -1
  293. package/dist/cjs/ui-shell/SideNav/NavAccordion.cjs +1 -1
  294. package/dist/cjs/ui-shell/SideNav/SideNav.cjs +1 -1
  295. package/dist/cjs/ui-shell/SideNav/SideNavFooterContent.cjs +1 -1
  296. package/dist/cjs/ui-shell/SideNav/SideNavHeader.cjs +1 -1
  297. package/dist/cjs/ui-shell/SideNav/SideNavItemContent.cjs +2 -2
  298. package/dist/cjs/ui-shell/SideNav/SideNavItemLinkContent.cjs +1 -1
  299. package/dist/cjs/ui-shell/SideNav/SideNavSortableList.cjs +1 -1
  300. package/dist/cjs/ui-shell/SideNav/SideNavToggleButton.cjs +2 -2
  301. package/dist/cjs/ui-shell/SkipToContent.cjs +1 -1
  302. package/dist/cjs/ui-shell/TopNav/HamburgerMenuIcon.cjs +1 -1
  303. package/dist/cjs/ui-shell/TopNav/TopNav.cjs +1 -1
  304. package/dist/cjs/ui-shell/TopNav/TopNavLinksList.cjs +1 -1
  305. package/dist/cjs/ui-shell/TopNav/TopNavListItem.cjs +1 -1
  306. package/dist/cjs/ui-shell/UiShell.cjs +1 -1
  307. package/dist/cjs/ui-shell/UiShellLogo.cjs +1 -1
  308. package/dist/cjs/ui-shell/WideUiShellContent.cjs +1 -1
  309. package/dist/cjs/web-component/odysseyWebComponentVersion.generated.cjs +1 -1
  310. package/dist/cjs/web-component/odysseyWebComponentVersion.generated.cjs.map +1 -1
  311. package/dist/esm/Accordion.js +1 -1
  312. package/dist/esm/AnimationContext.js +36 -0
  313. package/dist/esm/AnimationContext.js.map +1 -0
  314. package/dist/esm/Autocomplete.js +1 -1
  315. package/dist/esm/Badge.js +1 -1
  316. package/dist/esm/Banner.js +1 -1
  317. package/dist/esm/Box.js +1 -1
  318. package/dist/esm/Breadcrumbs.js +1 -1
  319. package/dist/esm/Buttons/BaseButton.js +1 -1
  320. package/dist/esm/Buttons/BaseMenuButton.js +1 -1
  321. package/dist/esm/Buttons/Button.js +1 -1
  322. package/dist/esm/Buttons/MenuButton.js +1 -1
  323. package/dist/esm/Buttons/MenuItem.js +1 -1
  324. package/dist/esm/Callout.js +1 -1
  325. package/dist/esm/Card.js +1 -1
  326. package/dist/esm/CircularProgress.js +1 -1
  327. package/dist/esm/ConditionalWrapper.js +1 -1
  328. package/dist/esm/DataTable/DataTable.js +1 -1
  329. package/dist/esm/DataTable/DataTableRowActions.js +1 -1
  330. package/dist/esm/DataTable/DataTableSettings.js +1 -1
  331. package/dist/esm/DatePickers/DateField.js +1 -1
  332. package/dist/esm/DatePickers/DateFieldActionBar.js +1 -1
  333. package/dist/esm/DatePickers/DateFieldLocalizationProvider.js +1 -1
  334. package/dist/esm/DatePickers/DatePicker.js +1 -1
  335. package/dist/esm/DatePickers/TimeZonePicker.js +1 -1
  336. package/dist/esm/Dialog.js +1 -1
  337. package/dist/esm/Drawer.js +1 -1
  338. package/dist/esm/EmptyState.js +1 -1
  339. package/dist/esm/ErrorMessageList.js +1 -1
  340. package/dist/esm/Field.js +1 -1
  341. package/dist/esm/FieldError.js +1 -1
  342. package/dist/esm/FieldHint.js +1 -1
  343. package/dist/esm/FieldLabel.js +1 -1
  344. package/dist/esm/Fields/Checkbox.js +1 -1
  345. package/dist/esm/Fields/CheckboxGroup.js +1 -1
  346. package/dist/esm/Fields/Radio.js +1 -1
  347. package/dist/esm/Fields/RadioGroup.js +1 -1
  348. package/dist/esm/Fieldset.js +1 -1
  349. package/dist/esm/FileUploader/FileUploadIllustration.js +1 -1
  350. package/dist/esm/FileUploader/FileUploadPreview.js +1 -1
  351. package/dist/esm/FileUploader/FileUploader.js +1 -1
  352. package/dist/esm/Form.js +1 -1
  353. package/dist/esm/FullScreenOverlay.js +1 -1
  354. package/dist/esm/FullScreenOverlayContext.js +1 -1
  355. package/dist/esm/HintLink.js +1 -1
  356. package/dist/esm/IconWithTooltip.js +1 -1
  357. package/dist/esm/Link.js +1 -1
  358. package/dist/esm/MuiPropsChild.js +1 -1
  359. package/dist/esm/NativeSelect.js +1 -1
  360. package/dist/esm/OdysseyCacheProvider.js +1 -1
  361. package/dist/esm/OdysseyProvider.js +18 -13
  362. package/dist/esm/OdysseyProvider.js.map +1 -1
  363. package/dist/esm/OdysseyThemeProvider.js +1 -1
  364. package/dist/esm/OdysseyThemeProviderPropsContext.js +1 -1
  365. package/dist/esm/Pagination/Pagination.js +1 -1
  366. package/dist/esm/PasswordField.js +1 -1
  367. package/dist/esm/ScreenReaderText.js +1 -1
  368. package/dist/esm/SearchField.js +1 -1
  369. package/dist/esm/Select.js +1 -1
  370. package/dist/esm/Stack.js +1 -1
  371. package/dist/esm/Status.js +1 -1
  372. package/dist/esm/Surface.js +1 -1
  373. package/dist/esm/Switch.js +2 -2
  374. package/dist/esm/Tabs.js +1 -1
  375. package/dist/esm/Tag.js +1 -1
  376. package/dist/esm/TagList.js +1 -1
  377. package/dist/esm/TextField.js +1 -1
  378. package/dist/esm/Toast.js +1 -1
  379. package/dist/esm/ToastStack.js +1 -1
  380. package/dist/esm/Tooltip.js +1 -1
  381. package/dist/esm/Typography.js +12 -12
  382. package/dist/esm/__internal.js +2 -0
  383. package/dist/esm/__internal.js.map +1 -1
  384. package/dist/esm/charts/BarChart.js +220 -0
  385. package/dist/esm/charts/BarChart.js.map +1 -0
  386. package/dist/esm/charts/LineChart.js +239 -0
  387. package/dist/esm/charts/LineChart.js.map +1 -0
  388. package/dist/esm/charts/components/ChartContainer.js +28 -0
  389. package/dist/esm/charts/components/ChartContainer.js.map +1 -0
  390. package/dist/esm/{Charts → charts/components}/ChartError.js +6 -6
  391. package/dist/esm/charts/components/ChartError.js.map +1 -0
  392. package/dist/esm/{Charts → charts/components}/ChartFrame.js +9 -7
  393. package/dist/esm/charts/components/ChartFrame.js.map +1 -0
  394. package/dist/esm/charts/components/ChartPopoverContent.js +118 -0
  395. package/dist/esm/charts/components/ChartPopoverContent.js.map +1 -0
  396. package/dist/esm/{Charts → charts}/index.js +1 -0
  397. package/dist/esm/charts/index.js.map +1 -0
  398. package/dist/esm/charts/useChartAnimation.js +22 -0
  399. package/dist/esm/charts/useChartAnimation.js.map +1 -0
  400. package/dist/esm/charts/utils/chartTokens.js +153 -0
  401. package/dist/esm/charts/utils/chartTokens.js.map +1 -0
  402. package/dist/esm/charts/utils/chartTypes.js.map +1 -0
  403. package/dist/esm/charts/utils/formatChartValue.js.map +1 -0
  404. package/dist/esm/charts/utils/getChartSeriesPointData.js.map +1 -0
  405. package/dist/esm/charts/utils/hasDuplicateSeries.js.map +1 -0
  406. package/dist/esm/charts/utils/resolveChartLocale.js.map +1 -0
  407. package/dist/esm/{Charts → charts/utils}/useChartValueFormatter.js +1 -1
  408. package/dist/esm/charts/utils/useChartValueFormatter.js.map +1 -0
  409. package/dist/esm/charts/utils/useStableValue.js.map +1 -0
  410. package/dist/esm/createOdysseyStyledComponent.js +5 -4
  411. package/dist/esm/createOdysseyStyledComponent.js.map +1 -1
  412. package/dist/esm/icons.generated/Add.js +1 -1
  413. package/dist/esm/icons.generated/AddCircle.js +1 -1
  414. package/dist/esm/icons.generated/Apps.js +1 -1
  415. package/dist/esm/icons.generated/AppsSelected.js +1 -1
  416. package/dist/esm/icons.generated/ArrowBottom.js +1 -1
  417. package/dist/esm/icons.generated/ArrowDown.js +1 -1
  418. package/dist/esm/icons.generated/ArrowLeft.js +1 -1
  419. package/dist/esm/icons.generated/ArrowLowerLeft.js +1 -1
  420. package/dist/esm/icons.generated/ArrowLowerRight.js +1 -1
  421. package/dist/esm/icons.generated/ArrowRight.js +1 -1
  422. package/dist/esm/icons.generated/ArrowTop.js +1 -1
  423. package/dist/esm/icons.generated/ArrowUnsorted.js +1 -1
  424. package/dist/esm/icons.generated/ArrowUp.js +1 -1
  425. package/dist/esm/icons.generated/ArrowUpperLeft.js +1 -1
  426. package/dist/esm/icons.generated/ArrowUpperRight.js +1 -1
  427. package/dist/esm/icons.generated/Bug.js +1 -1
  428. package/dist/esm/icons.generated/Calendar.js +1 -1
  429. package/dist/esm/icons.generated/Call.js +1 -1
  430. package/dist/esm/icons.generated/Chat.js +1 -1
  431. package/dist/esm/icons.generated/Check.js +1 -1
  432. package/dist/esm/icons.generated/CheckCircleFilled.js +1 -1
  433. package/dist/esm/icons.generated/ChevronDown.js +1 -1
  434. package/dist/esm/icons.generated/ChevronLeft.js +1 -1
  435. package/dist/esm/icons.generated/ChevronRight.js +1 -1
  436. package/dist/esm/icons.generated/ChevronUp.js +1 -1
  437. package/dist/esm/icons.generated/Clock.js +1 -1
  438. package/dist/esm/icons.generated/Close.js +1 -1
  439. package/dist/esm/icons.generated/CloseCircleFilled.js +1 -1
  440. package/dist/esm/icons.generated/CollapseLeft.js +1 -1
  441. package/dist/esm/icons.generated/CollapseRight.js +1 -1
  442. package/dist/esm/icons.generated/Copy.js +1 -1
  443. package/dist/esm/icons.generated/Customizations.js +1 -1
  444. package/dist/esm/icons.generated/CustomizationsSelected.js +1 -1
  445. package/dist/esm/icons.generated/DangerDiamond.js +1 -1
  446. package/dist/esm/icons.generated/DangerDiamondFilled.js +1 -1
  447. package/dist/esm/icons.generated/Delete.js +1 -1
  448. package/dist/esm/icons.generated/Deny.js +1 -1
  449. package/dist/esm/icons.generated/Devices.js +1 -1
  450. package/dist/esm/icons.generated/Directory.js +1 -1
  451. package/dist/esm/icons.generated/DirectorySelected.js +1 -1
  452. package/dist/esm/icons.generated/Documentation.js +1 -1
  453. package/dist/esm/icons.generated/Download.js +1 -1
  454. package/dist/esm/icons.generated/DragIndicator.js +1 -1
  455. package/dist/esm/icons.generated/Edit.js +1 -1
  456. package/dist/esm/icons.generated/ExpandLeft.js +1 -1
  457. package/dist/esm/icons.generated/ExpandRight.js +1 -1
  458. package/dist/esm/icons.generated/ExternalLink.js +1 -1
  459. package/dist/esm/icons.generated/Filter.js +1 -1
  460. package/dist/esm/icons.generated/Folder.js +1 -1
  461. package/dist/esm/icons.generated/Globe.js +1 -1
  462. package/dist/esm/icons.generated/Grid.js +1 -1
  463. package/dist/esm/icons.generated/Group.js +1 -1
  464. package/dist/esm/icons.generated/Happy.js +1 -1
  465. package/dist/esm/icons.generated/Hide.js +1 -1
  466. package/dist/esm/icons.generated/Home.js +1 -1
  467. package/dist/esm/icons.generated/HomeSelected.js +1 -1
  468. package/dist/esm/icons.generated/IdentityGovernance.js +1 -1
  469. package/dist/esm/icons.generated/IdentityGovernanceSelected.js +1 -1
  470. package/dist/esm/icons.generated/InformationCircle.js +1 -1
  471. package/dist/esm/icons.generated/InformationCircleFilled.js +1 -1
  472. package/dist/esm/icons.generated/Link.js +1 -1
  473. package/dist/esm/icons.generated/List.js +1 -1
  474. package/dist/esm/icons.generated/Lock.js +1 -1
  475. package/dist/esm/icons.generated/Menu.js +1 -1
  476. package/dist/esm/icons.generated/More.js +1 -1
  477. package/dist/esm/icons.generated/Neutral.js +1 -1
  478. package/dist/esm/icons.generated/Notification.js +1 -1
  479. package/dist/esm/icons.generated/Pause.js +1 -1
  480. package/dist/esm/icons.generated/QuestionCircle.js +1 -1
  481. package/dist/esm/icons.generated/QuestionCircleFilled.js +1 -1
  482. package/dist/esm/icons.generated/Refresh.js +1 -1
  483. package/dist/esm/icons.generated/Reports.js +1 -1
  484. package/dist/esm/icons.generated/ReportsSelected.js +1 -1
  485. package/dist/esm/icons.generated/Reset.js +1 -1
  486. package/dist/esm/icons.generated/Resume.js +1 -1
  487. package/dist/esm/icons.generated/Sad.js +1 -1
  488. package/dist/esm/icons.generated/Same.js +1 -1
  489. package/dist/esm/icons.generated/Search.js +1 -1
  490. package/dist/esm/icons.generated/Security.js +1 -1
  491. package/dist/esm/icons.generated/SecuritySelected.js +1 -1
  492. package/dist/esm/icons.generated/Send.js +1 -1
  493. package/dist/esm/icons.generated/Server.js +1 -1
  494. package/dist/esm/icons.generated/Settings.js +1 -1
  495. package/dist/esm/icons.generated/SettingsSelected.js +1 -1
  496. package/dist/esm/icons.generated/Show.js +1 -1
  497. package/dist/esm/icons.generated/Sparkle.js +1 -1
  498. package/dist/esm/icons.generated/Subtract.js +1 -1
  499. package/dist/esm/icons.generated/Sync.js +1 -1
  500. package/dist/esm/icons.generated/ThumbsDown.js +1 -1
  501. package/dist/esm/icons.generated/ThumbsUp.js +1 -1
  502. package/dist/esm/icons.generated/Unlock.js +1 -1
  503. package/dist/esm/icons.generated/Upload.js +1 -1
  504. package/dist/esm/icons.generated/User.js +1 -1
  505. package/dist/esm/icons.generated/Video.js +1 -1
  506. package/dist/esm/icons.generated/Warning.js +1 -1
  507. package/dist/esm/icons.generated/WarningFilled.js +1 -1
  508. package/dist/esm/icons.generated/Workflows.js +1 -1
  509. package/dist/esm/icons.generated/WorkflowsSelected.js +1 -1
  510. package/dist/esm/labs/AppTile.js +1 -1
  511. package/dist/esm/labs/DataFilters.js +2 -2
  512. package/dist/esm/labs/DataTable.js +1 -1
  513. package/dist/esm/labs/DataTablePagination.js +1 -1
  514. package/dist/esm/labs/DataView/BulkActionsMenu.js +1 -1
  515. package/dist/esm/labs/DataView/CardLayoutContent.js +2 -2
  516. package/dist/esm/labs/DataView/DataCard.js +1 -1
  517. package/dist/esm/labs/DataView/DataTable.js +1 -1
  518. package/dist/esm/labs/DataView/DataView.js +1 -1
  519. package/dist/esm/labs/DataView/DetailPanel.js +1 -1
  520. package/dist/esm/labs/DataView/LayoutSwitcher.js +1 -1
  521. package/dist/esm/labs/DataView/RowActions.js +1 -1
  522. package/dist/esm/labs/DataView/TableLayoutContent.js +1 -1
  523. package/dist/esm/labs/DataView/TableSettings.js +1 -1
  524. package/dist/esm/labs/DatePickers/DateTimeField.js +1 -1
  525. package/dist/esm/labs/DatePickers/DateTimePicker.js +1 -1
  526. package/dist/esm/labs/OdysseyPickers/ComposablePicker.js +1 -1
  527. package/dist/esm/labs/OdysseyPickers/Picker.js +1 -1
  528. package/dist/esm/labs/OdysseyPickers/PickerVirtualizationListBox.js +1 -1
  529. package/dist/esm/labs/OdysseyPickers/PickerWithOptionAdornment.js +1 -1
  530. package/dist/esm/labs/OdysseyPickers/SearchDropdown.js +1 -1
  531. package/dist/esm/labs/PageTemplate/DocumentationLink.js +1 -1
  532. package/dist/esm/labs/PageTemplate/Layout.js +1 -1
  533. package/dist/esm/labs/PageTemplate/PageTemplate.js +1 -1
  534. package/dist/esm/labs/PaginatedTable.js +1 -1
  535. package/dist/esm/labs/StaticTable.js +1 -1
  536. package/dist/esm/labs/UserProfile.js +1 -1
  537. package/dist/esm/labs/UserProfileMenuButton.js +1 -1
  538. package/dist/esm/logos.generated/Duo.js +1 -1
  539. package/dist/esm/logos.generated/GoogleAuth.js +1 -1
  540. package/dist/esm/logos.generated/OktaVerify.js +1 -1
  541. package/dist/esm/logos.generated/Persona.js +1 -1
  542. package/dist/esm/logos.generated/SymantecVip.js +1 -1
  543. package/dist/esm/logos.generated/Yubikey.js +1 -1
  544. package/dist/esm/properties/ts/odyssey-react-mui_cs.js +5 -1
  545. package/dist/esm/properties/ts/odyssey-react-mui_cs.js.map +1 -1
  546. package/dist/esm/properties/ts/odyssey-react-mui_da.js +4 -0
  547. package/dist/esm/properties/ts/odyssey-react-mui_da.js.map +1 -1
  548. package/dist/esm/properties/ts/odyssey-react-mui_de.js +4 -0
  549. package/dist/esm/properties/ts/odyssey-react-mui_de.js.map +1 -1
  550. package/dist/esm/properties/ts/odyssey-react-mui_el.js +5 -1
  551. package/dist/esm/properties/ts/odyssey-react-mui_el.js.map +1 -1
  552. package/dist/esm/properties/ts/odyssey-react-mui_es.js +4 -0
  553. package/dist/esm/properties/ts/odyssey-react-mui_es.js.map +1 -1
  554. package/dist/esm/properties/ts/odyssey-react-mui_eu.js +4 -0
  555. package/dist/esm/properties/ts/odyssey-react-mui_eu.js.map +1 -1
  556. package/dist/esm/properties/ts/odyssey-react-mui_fi.js +4 -0
  557. package/dist/esm/properties/ts/odyssey-react-mui_fi.js.map +1 -1
  558. package/dist/esm/properties/ts/odyssey-react-mui_fr.js +4 -0
  559. package/dist/esm/properties/ts/odyssey-react-mui_fr.js.map +1 -1
  560. package/dist/esm/properties/ts/odyssey-react-mui_ht.js +4 -0
  561. package/dist/esm/properties/ts/odyssey-react-mui_ht.js.map +1 -1
  562. package/dist/esm/properties/ts/odyssey-react-mui_hu.js +4 -0
  563. package/dist/esm/properties/ts/odyssey-react-mui_hu.js.map +1 -1
  564. package/dist/esm/properties/ts/odyssey-react-mui_id.js +4 -0
  565. package/dist/esm/properties/ts/odyssey-react-mui_id.js.map +1 -1
  566. package/dist/esm/properties/ts/odyssey-react-mui_it.js +4 -0
  567. package/dist/esm/properties/ts/odyssey-react-mui_it.js.map +1 -1
  568. package/dist/esm/properties/ts/odyssey-react-mui_ja.js +4 -0
  569. package/dist/esm/properties/ts/odyssey-react-mui_ja.js.map +1 -1
  570. package/dist/esm/properties/ts/odyssey-react-mui_ko.js +4 -0
  571. package/dist/esm/properties/ts/odyssey-react-mui_ko.js.map +1 -1
  572. package/dist/esm/properties/ts/odyssey-react-mui_ms.js +6 -2
  573. package/dist/esm/properties/ts/odyssey-react-mui_ms.js.map +1 -1
  574. package/dist/esm/properties/ts/odyssey-react-mui_nb.js +4 -0
  575. package/dist/esm/properties/ts/odyssey-react-mui_nb.js.map +1 -1
  576. package/dist/esm/properties/ts/odyssey-react-mui_nl_NL.js +4 -0
  577. package/dist/esm/properties/ts/odyssey-react-mui_nl_NL.js.map +1 -1
  578. package/dist/esm/properties/ts/odyssey-react-mui_pl.js +4 -0
  579. package/dist/esm/properties/ts/odyssey-react-mui_pl.js.map +1 -1
  580. package/dist/esm/properties/ts/odyssey-react-mui_pt_BR.js +4 -0
  581. package/dist/esm/properties/ts/odyssey-react-mui_pt_BR.js.map +1 -1
  582. package/dist/esm/properties/ts/odyssey-react-mui_ro.js +4 -0
  583. package/dist/esm/properties/ts/odyssey-react-mui_ro.js.map +1 -1
  584. package/dist/esm/properties/ts/odyssey-react-mui_ru.js +4 -0
  585. package/dist/esm/properties/ts/odyssey-react-mui_ru.js.map +1 -1
  586. package/dist/esm/properties/ts/odyssey-react-mui_sv.js +4 -0
  587. package/dist/esm/properties/ts/odyssey-react-mui_sv.js.map +1 -1
  588. package/dist/esm/properties/ts/odyssey-react-mui_th.js +4 -0
  589. package/dist/esm/properties/ts/odyssey-react-mui_th.js.map +1 -1
  590. package/dist/esm/properties/ts/odyssey-react-mui_tr.js +4 -0
  591. package/dist/esm/properties/ts/odyssey-react-mui_tr.js.map +1 -1
  592. package/dist/esm/properties/ts/odyssey-react-mui_uk.js +4 -0
  593. package/dist/esm/properties/ts/odyssey-react-mui_uk.js.map +1 -1
  594. package/dist/esm/properties/ts/odyssey-react-mui_vi.js +4 -0
  595. package/dist/esm/properties/ts/odyssey-react-mui_vi.js.map +1 -1
  596. package/dist/esm/properties/ts/odyssey-react-mui_zh_CN.js +4 -0
  597. package/dist/esm/properties/ts/odyssey-react-mui_zh_CN.js.map +1 -1
  598. package/dist/esm/properties/ts/odyssey-react-mui_zh_TW.js +4 -0
  599. package/dist/esm/properties/ts/odyssey-react-mui_zh_TW.js.map +1 -1
  600. package/dist/esm/ui-shell/AppSwitcher/AppSwitcher.js +1 -1
  601. package/dist/esm/ui-shell/InnerAppContainer.js +1 -1
  602. package/dist/esm/ui-shell/NarrowUiShellContent.js +1 -1
  603. package/dist/esm/ui-shell/SideNav/NavAccordion.js +1 -1
  604. package/dist/esm/ui-shell/SideNav/SideNav.js +1 -1
  605. package/dist/esm/ui-shell/SideNav/SideNavFooterContent.js +1 -1
  606. package/dist/esm/ui-shell/SideNav/SideNavHeader.js +1 -1
  607. package/dist/esm/ui-shell/SideNav/SideNavItemContent.js +2 -2
  608. package/dist/esm/ui-shell/SideNav/SideNavItemLinkContent.js +1 -1
  609. package/dist/esm/ui-shell/SideNav/SideNavSortableList.js +1 -1
  610. package/dist/esm/ui-shell/SideNav/SideNavToggleButton.js +2 -2
  611. package/dist/esm/ui-shell/SkipToContent.js +1 -1
  612. package/dist/esm/ui-shell/TopNav/HamburgerMenuIcon.js +1 -1
  613. package/dist/esm/ui-shell/TopNav/TopNav.js +1 -1
  614. package/dist/esm/ui-shell/TopNav/TopNavLinksList.js +1 -1
  615. package/dist/esm/ui-shell/TopNav/TopNavListItem.js +1 -1
  616. package/dist/esm/ui-shell/UiShell.js +1 -1
  617. package/dist/esm/ui-shell/UiShellLogo.js +1 -1
  618. package/dist/esm/ui-shell/WideUiShellContent.js +1 -1
  619. package/dist/esm/web-component/odysseyWebComponentVersion.generated.js +1 -1
  620. package/dist/esm/web-component/odysseyWebComponentVersion.generated.js.map +1 -1
  621. package/dist/tsconfig.production.tsbuildinfo +1 -1
  622. package/dist/types/AnimationContext.d.ts +29 -0
  623. package/dist/types/AnimationContext.d.ts.map +1 -0
  624. package/dist/types/OdysseyProvider.d.ts +7 -1
  625. package/dist/types/OdysseyProvider.d.ts.map +1 -1
  626. package/dist/types/__internal.d.ts +2 -0
  627. package/dist/types/__internal.d.ts.map +1 -1
  628. package/dist/types/charts/BarChart.d.ts +26 -0
  629. package/dist/types/charts/BarChart.d.ts.map +1 -0
  630. package/dist/types/{Charts → charts}/LineChart.d.ts +2 -2
  631. package/dist/types/charts/LineChart.d.ts.map +1 -0
  632. package/dist/types/charts/components/ChartContainer.d.ts +18 -0
  633. package/dist/types/charts/components/ChartContainer.d.ts.map +1 -0
  634. package/dist/types/charts/components/ChartError.d.ts.map +1 -0
  635. package/dist/types/charts/components/ChartFrame.d.ts.map +1 -0
  636. package/dist/types/charts/components/ChartPopoverContent.d.ts +97 -0
  637. package/dist/types/charts/components/ChartPopoverContent.d.ts.map +1 -0
  638. package/dist/types/{Charts → charts}/index.d.ts +3 -2
  639. package/dist/types/charts/index.d.ts.map +1 -0
  640. package/dist/types/charts/useChartAnimation.d.ts +16 -0
  641. package/dist/types/charts/useChartAnimation.d.ts.map +1 -0
  642. package/dist/types/charts/utils/chartTokens.d.ts +297 -0
  643. package/dist/types/charts/utils/chartTokens.d.ts.map +1 -0
  644. package/dist/types/charts/utils/chartTypes.d.ts.map +1 -0
  645. package/dist/types/charts/utils/formatChartValue.d.ts.map +1 -0
  646. package/dist/types/charts/utils/getChartSeriesPointData.d.ts.map +1 -0
  647. package/dist/types/charts/utils/hasDuplicateSeries.d.ts.map +1 -0
  648. package/dist/types/charts/utils/resolveChartLocale.d.ts.map +1 -0
  649. package/dist/types/charts/utils/useChartValueFormatter.d.ts.map +1 -0
  650. package/dist/types/charts/utils/useStableValue.d.ts.map +1 -0
  651. package/dist/types/createOdysseyStyledComponent.d.ts +10 -2
  652. package/dist/types/createOdysseyStyledComponent.d.ts.map +1 -1
  653. package/dist/types/i18n.generated/i18n.resources.d.ts +116 -4
  654. package/dist/types/i18n.generated/i18n.resources.d.ts.map +1 -1
  655. package/dist/types/properties/ts/odyssey-react-mui_cs.d.ts +5 -1
  656. package/dist/types/properties/ts/odyssey-react-mui_cs.d.ts.map +1 -1
  657. package/dist/types/properties/ts/odyssey-react-mui_da.d.ts +4 -0
  658. package/dist/types/properties/ts/odyssey-react-mui_da.d.ts.map +1 -1
  659. package/dist/types/properties/ts/odyssey-react-mui_de.d.ts +4 -0
  660. package/dist/types/properties/ts/odyssey-react-mui_de.d.ts.map +1 -1
  661. package/dist/types/properties/ts/odyssey-react-mui_el.d.ts +5 -1
  662. package/dist/types/properties/ts/odyssey-react-mui_el.d.ts.map +1 -1
  663. package/dist/types/properties/ts/odyssey-react-mui_es.d.ts +4 -0
  664. package/dist/types/properties/ts/odyssey-react-mui_es.d.ts.map +1 -1
  665. package/dist/types/properties/ts/odyssey-react-mui_eu.d.ts +4 -0
  666. package/dist/types/properties/ts/odyssey-react-mui_eu.d.ts.map +1 -1
  667. package/dist/types/properties/ts/odyssey-react-mui_fi.d.ts +4 -0
  668. package/dist/types/properties/ts/odyssey-react-mui_fi.d.ts.map +1 -1
  669. package/dist/types/properties/ts/odyssey-react-mui_fr.d.ts +4 -0
  670. package/dist/types/properties/ts/odyssey-react-mui_fr.d.ts.map +1 -1
  671. package/dist/types/properties/ts/odyssey-react-mui_ht.d.ts +4 -0
  672. package/dist/types/properties/ts/odyssey-react-mui_ht.d.ts.map +1 -1
  673. package/dist/types/properties/ts/odyssey-react-mui_hu.d.ts +4 -0
  674. package/dist/types/properties/ts/odyssey-react-mui_hu.d.ts.map +1 -1
  675. package/dist/types/properties/ts/odyssey-react-mui_id.d.ts +4 -0
  676. package/dist/types/properties/ts/odyssey-react-mui_id.d.ts.map +1 -1
  677. package/dist/types/properties/ts/odyssey-react-mui_it.d.ts +4 -0
  678. package/dist/types/properties/ts/odyssey-react-mui_it.d.ts.map +1 -1
  679. package/dist/types/properties/ts/odyssey-react-mui_ja.d.ts +4 -0
  680. package/dist/types/properties/ts/odyssey-react-mui_ja.d.ts.map +1 -1
  681. package/dist/types/properties/ts/odyssey-react-mui_ko.d.ts +4 -0
  682. package/dist/types/properties/ts/odyssey-react-mui_ko.d.ts.map +1 -1
  683. package/dist/types/properties/ts/odyssey-react-mui_ms.d.ts +6 -2
  684. package/dist/types/properties/ts/odyssey-react-mui_ms.d.ts.map +1 -1
  685. package/dist/types/properties/ts/odyssey-react-mui_nb.d.ts +4 -0
  686. package/dist/types/properties/ts/odyssey-react-mui_nb.d.ts.map +1 -1
  687. package/dist/types/properties/ts/odyssey-react-mui_nl_NL.d.ts +4 -0
  688. package/dist/types/properties/ts/odyssey-react-mui_nl_NL.d.ts.map +1 -1
  689. package/dist/types/properties/ts/odyssey-react-mui_pl.d.ts +4 -0
  690. package/dist/types/properties/ts/odyssey-react-mui_pl.d.ts.map +1 -1
  691. package/dist/types/properties/ts/odyssey-react-mui_pt_BR.d.ts +4 -0
  692. package/dist/types/properties/ts/odyssey-react-mui_pt_BR.d.ts.map +1 -1
  693. package/dist/types/properties/ts/odyssey-react-mui_ro.d.ts +4 -0
  694. package/dist/types/properties/ts/odyssey-react-mui_ro.d.ts.map +1 -1
  695. package/dist/types/properties/ts/odyssey-react-mui_ru.d.ts +4 -0
  696. package/dist/types/properties/ts/odyssey-react-mui_ru.d.ts.map +1 -1
  697. package/dist/types/properties/ts/odyssey-react-mui_sv.d.ts +4 -0
  698. package/dist/types/properties/ts/odyssey-react-mui_sv.d.ts.map +1 -1
  699. package/dist/types/properties/ts/odyssey-react-mui_th.d.ts +4 -0
  700. package/dist/types/properties/ts/odyssey-react-mui_th.d.ts.map +1 -1
  701. package/dist/types/properties/ts/odyssey-react-mui_tr.d.ts +4 -0
  702. package/dist/types/properties/ts/odyssey-react-mui_tr.d.ts.map +1 -1
  703. package/dist/types/properties/ts/odyssey-react-mui_uk.d.ts +4 -0
  704. package/dist/types/properties/ts/odyssey-react-mui_uk.d.ts.map +1 -1
  705. package/dist/types/properties/ts/odyssey-react-mui_vi.d.ts +4 -0
  706. package/dist/types/properties/ts/odyssey-react-mui_vi.d.ts.map +1 -1
  707. package/dist/types/properties/ts/odyssey-react-mui_zh_CN.d.ts +4 -0
  708. package/dist/types/properties/ts/odyssey-react-mui_zh_CN.d.ts.map +1 -1
  709. package/dist/types/properties/ts/odyssey-react-mui_zh_TW.d.ts +4 -0
  710. package/dist/types/properties/ts/odyssey-react-mui_zh_TW.d.ts.map +1 -1
  711. package/dist/types/web-component/odysseyWebComponentVersion.generated.d.ts +1 -1
  712. package/package.json +58 -19
  713. package/dist/cjs/Charts/ChartError.cjs.map +0 -1
  714. package/dist/cjs/Charts/ChartFrame.cjs.map +0 -1
  715. package/dist/cjs/Charts/ChartPopoverContent.cjs +0 -56
  716. package/dist/cjs/Charts/ChartPopoverContent.cjs.map +0 -1
  717. package/dist/cjs/Charts/LineChart.cjs +0 -268
  718. package/dist/cjs/Charts/LineChart.cjs.map +0 -1
  719. package/dist/cjs/Charts/chartTokens.cjs +0 -117
  720. package/dist/cjs/Charts/chartTokens.cjs.map +0 -1
  721. package/dist/cjs/Charts/chartTypes.cjs.map +0 -1
  722. package/dist/cjs/Charts/formatChartValue.cjs.map +0 -1
  723. package/dist/cjs/Charts/getChartSeriesPointData.cjs.map +0 -1
  724. package/dist/cjs/Charts/hasDuplicateSeries.cjs.map +0 -1
  725. package/dist/cjs/Charts/index.cjs.map +0 -1
  726. package/dist/cjs/Charts/resolveChartLocale.cjs.map +0 -1
  727. package/dist/cjs/Charts/useChartValueFormatter.cjs.map +0 -1
  728. package/dist/cjs/Charts/useStableValue.cjs.map +0 -1
  729. package/dist/esm/Charts/ChartError.js.map +0 -1
  730. package/dist/esm/Charts/ChartFrame.js.map +0 -1
  731. package/dist/esm/Charts/ChartPopoverContent.js +0 -49
  732. package/dist/esm/Charts/ChartPopoverContent.js.map +0 -1
  733. package/dist/esm/Charts/LineChart.js +0 -263
  734. package/dist/esm/Charts/LineChart.js.map +0 -1
  735. package/dist/esm/Charts/chartTokens.js +0 -109
  736. package/dist/esm/Charts/chartTokens.js.map +0 -1
  737. package/dist/esm/Charts/chartTypes.js.map +0 -1
  738. package/dist/esm/Charts/formatChartValue.js.map +0 -1
  739. package/dist/esm/Charts/getChartSeriesPointData.js.map +0 -1
  740. package/dist/esm/Charts/hasDuplicateSeries.js.map +0 -1
  741. package/dist/esm/Charts/index.js.map +0 -1
  742. package/dist/esm/Charts/resolveChartLocale.js.map +0 -1
  743. package/dist/esm/Charts/useChartValueFormatter.js.map +0 -1
  744. package/dist/esm/Charts/useStableValue.js.map +0 -1
  745. package/dist/types/Charts/ChartError.d.ts.map +0 -1
  746. package/dist/types/Charts/ChartFrame.d.ts.map +0 -1
  747. package/dist/types/Charts/ChartPopoverContent.d.ts +0 -97
  748. package/dist/types/Charts/ChartPopoverContent.d.ts.map +0 -1
  749. package/dist/types/Charts/LineChart.d.ts.map +0 -1
  750. package/dist/types/Charts/chartTokens.d.ts +0 -362
  751. package/dist/types/Charts/chartTokens.d.ts.map +0 -1
  752. package/dist/types/Charts/chartTypes.d.ts.map +0 -1
  753. package/dist/types/Charts/formatChartValue.d.ts.map +0 -1
  754. package/dist/types/Charts/getChartSeriesPointData.d.ts.map +0 -1
  755. package/dist/types/Charts/hasDuplicateSeries.d.ts.map +0 -1
  756. package/dist/types/Charts/index.d.ts.map +0 -1
  757. package/dist/types/Charts/resolveChartLocale.d.ts.map +0 -1
  758. package/dist/types/Charts/useChartValueFormatter.d.ts.map +0 -1
  759. package/dist/types/Charts/useStableValue.d.ts.map +0 -1
  760. /package/dist/cjs/{Charts → charts/utils}/chartTypes.cjs +0 -0
  761. /package/dist/cjs/{Charts → charts/utils}/formatChartValue.cjs +0 -0
  762. /package/dist/cjs/{Charts → charts/utils}/getChartSeriesPointData.cjs +0 -0
  763. /package/dist/cjs/{Charts → charts/utils}/hasDuplicateSeries.cjs +0 -0
  764. /package/dist/cjs/{Charts → charts/utils}/resolveChartLocale.cjs +0 -0
  765. /package/dist/cjs/{Charts → charts/utils}/useStableValue.cjs +0 -0
  766. /package/dist/esm/{Charts → charts/utils}/chartTypes.js +0 -0
  767. /package/dist/esm/{Charts → charts/utils}/formatChartValue.js +0 -0
  768. /package/dist/esm/{Charts → charts/utils}/getChartSeriesPointData.js +0 -0
  769. /package/dist/esm/{Charts → charts/utils}/hasDuplicateSeries.js +0 -0
  770. /package/dist/esm/{Charts → charts/utils}/resolveChartLocale.js +0 -0
  771. /package/dist/esm/{Charts → charts/utils}/useStableValue.js +0 -0
  772. /package/dist/types/{Charts → charts/components}/ChartError.d.ts +0 -0
  773. /package/dist/types/{Charts → charts/components}/ChartFrame.d.ts +0 -0
  774. /package/dist/types/{Charts → charts/utils}/chartTypes.d.ts +0 -0
  775. /package/dist/types/{Charts → charts/utils}/formatChartValue.d.ts +0 -0
  776. /package/dist/types/{Charts → charts/utils}/getChartSeriesPointData.d.ts +0 -0
  777. /package/dist/types/{Charts → charts/utils}/hasDuplicateSeries.d.ts +0 -0
  778. /package/dist/types/{Charts → charts/utils}/resolveChartLocale.d.ts +0 -0
  779. /package/dist/types/{Charts → charts/utils}/useChartValueFormatter.d.ts +0 -0
  780. /package/dist/types/{Charts → charts/utils}/useStableValue.d.ts +0 -0
@@ -0,0 +1,239 @@
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 { Chart, Credits, Legend, PlotOptions, Tooltip as Popover, XAxis, YAxis } from "@highcharts/react";
14
+ import { Accessibility } from "@highcharts/react/modules/Accessibility.js";
15
+ import { LineSeries } from "@highcharts/react/series/Line.js";
16
+ import { memo, useMemo } from "react";
17
+ import { useStableCallback } from "../useStableCallback.js";
18
+ import { ChartContainer } from "./components/ChartContainer.js";
19
+ import { ChartFrame } from "./components/ChartFrame.js";
20
+ import { ChartPopoverContent } from "./components/ChartPopoverContent.js";
21
+ import { useChartAnimation } from "./useChartAnimation.js";
22
+ import { useChartTokens } from "./utils/chartTokens.js";
23
+ import { getChartSeriesPointData } from "./utils/getChartSeriesPointData.js";
24
+ import { hasDuplicateSeries } from "./utils/hasDuplicateSeries.js";
25
+ import { useChartValueFormatter } from "./utils/useChartValueFormatter.js";
26
+ import { useStableValue } from "./utils/useStableValue.js";
27
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
28
+ const LINE_SERIES_MARKER_SYMBOLS = ["circle", "diamond", "square", "triangle", "triangleDown"];
29
+ const LineChartContent = ({
30
+ ariaDescription,
31
+ categories,
32
+ onPointClick,
33
+ pointPopoverValueFormat,
34
+ series,
35
+ xAxisLabel,
36
+ yAxisFormat = "compact",
37
+ yAxisLabel
38
+ }) => {
39
+ const chartTokens = useChartTokens();
40
+ const formatValue = useChartValueFormatter();
41
+ if (hasDuplicateSeries({
42
+ series
43
+ })) {
44
+ throw new Error("This chart has two or more series with the same name.");
45
+ }
46
+ const animation = useChartAnimation();
47
+ const seriesList = useMemo(() => series.map(chartSeries => ({
48
+ chartSeries,
49
+ pointData: getChartSeriesPointData({
50
+ categories,
51
+ chartSeries,
52
+ formatValue,
53
+ onPointClick,
54
+ pointPopoverValueFormat
55
+ })
56
+ })), [categories, formatValue, onPointClick, pointPopoverValueFormat, series]);
57
+ const hasLegend = useMemo(() => series.length > 1, [series.length]);
58
+ const options = useMemo(() => ({
59
+ chart: {
60
+ animation,
61
+ backgroundColor: chartTokens.chart.backgroundColor,
62
+ spacingBottom: chartTokens.chart.edgeSpacing,
63
+ spacingLeft: chartTokens.chart.edgeSpacing,
64
+ spacingRight: chartTokens.chart.edgeSpacing,
65
+ spacingTop: chartTokens.chart.topEdgeSpacing,
66
+ style: {
67
+ fontFamily: chartTokens.chart.fontFamily
68
+ }
69
+ },
70
+ colors: chartTokens.seriesColors,
71
+ subtitle: {
72
+ text: undefined
73
+ },
74
+ title: {
75
+ text: undefined
76
+ }
77
+ }), [animation, chartTokens]);
78
+ const keyboardNavigation = useMemo(() => ({
79
+ focusBorder: {
80
+ margin: chartTokens.focusRing.offset,
81
+ style: {
82
+ borderRadius: chartTokens.focusRing.radius,
83
+ color: chartTokens.focusRing.color,
84
+ lineWidth: chartTokens.focusRing.width
85
+ }
86
+ }
87
+ }), [chartTokens]);
88
+ const xAxisCrosshair = useMemo(() => ({
89
+ color: chartTokens.axis.crosshairColor,
90
+ width: chartTokens.axis.crosshairWidth
91
+ }), [chartTokens]);
92
+ const xAxisLabels = useMemo(() => ({
93
+ style: chartTokens.axis.valueStyle
94
+ }), [chartTokens]);
95
+ const xAxisTitle = useMemo(() => ({
96
+ align: "middle",
97
+ margin: chartTokens.axis.uprightLabelSpacing,
98
+ style: chartTokens.axis.labelStyle,
99
+ text: xAxisLabel
100
+ }), [chartTokens, xAxisLabel]);
101
+ const yAxisLabels = useMemo(() => ({
102
+ formatter: context => formatValue({
103
+ format: yAxisFormat,
104
+ value: Number(context.value)
105
+ }),
106
+ style: chartTokens.axis.valueStyle
107
+ }), [chartTokens, formatValue, yAxisFormat]);
108
+ const yAxisTitle = useMemo(() => ({
109
+ align: "middle",
110
+ margin: chartTokens.axis.rotatedLabelSpacing,
111
+ style: chartTokens.axis.labelStyle,
112
+ text: yAxisLabel
113
+ }), [chartTokens, yAxisLabel]);
114
+ const seriesIndicator = useMemo(() => ({
115
+ symbols: LINE_SERIES_MARKER_SYMBOLS,
116
+ type: "lineMarker"
117
+ }), []);
118
+ const linePlotOptions = useMemo(() => ({
119
+ dataLabels: {
120
+ enabled: false
121
+ },
122
+ lineWidth: chartTokens.line.strokeWidth,
123
+ marker: {
124
+ lineWidth: 0,
125
+ radius: chartTokens.line.markerRadius,
126
+ states: {
127
+ hover: {
128
+ lineWidthPlus: 0,
129
+ radius: chartTokens.line.markerHoverRadius
130
+ }
131
+ }
132
+ },
133
+ states: {
134
+ hover: {
135
+ halo: {
136
+ opacity: chartTokens.line.markerHoverHaloOpacity,
137
+ size: chartTokens.line.markerHoverHaloRadius
138
+ },
139
+ lineWidthPlus: chartTokens.line.hoverStrokeWidthPlus
140
+ }
141
+ }
142
+ }), [chartTokens]);
143
+ const seriesPlotOptions = useMemo(() => ({
144
+ animation
145
+ }), [animation]);
146
+ return _jsx(ChartContainer, {
147
+ children: _jsxs(Chart, {
148
+ options: options,
149
+ type: "line",
150
+ children: [_jsx(Accessibility, {
151
+ description: ariaDescription,
152
+ enabled: true,
153
+ keyboardNavigation: keyboardNavigation,
154
+ landmarkVerbosity: "disabled"
155
+ }), _jsx(XAxis, {
156
+ categories: categories,
157
+ crosshair: xAxisCrosshair,
158
+ gridLineColor: chartTokens.axis.lineColor,
159
+ gridLineWidth: 0,
160
+ labels: xAxisLabels,
161
+ lineColor: chartTokens.axis.lineColor,
162
+ lineWidth: 0,
163
+ tickColor: chartTokens.axis.lineColor,
164
+ tickLength: 0,
165
+ title: xAxisTitle
166
+ }), _jsx(YAxis, {
167
+ gridLineColor: chartTokens.axis.lineColor,
168
+ gridLineWidth: chartTokens.axis.gridLineWidth,
169
+ labels: yAxisLabels,
170
+ lineColor: "transparent",
171
+ tickColor: "transparent",
172
+ title: yAxisTitle
173
+ }), _jsx(Legend, {
174
+ enabled: hasLegend,
175
+ ...chartTokens.legend.shared,
176
+ ...chartTokens.legend.line
177
+ }), _jsx(Popover, {
178
+ backgroundColor: chartTokens.popover.backgroundColor,
179
+ borderColor: chartTokens.popover.borderColor,
180
+ borderRadius: chartTokens.popover.borderRadius,
181
+ borderWidth: chartTokens.popover.borderWidth,
182
+ padding: chartTokens.popover.padding,
183
+ shadow: false,
184
+ shared: true,
185
+ style: chartTokens.popover.containerStyle,
186
+ children: _jsx(ChartPopoverContent, {
187
+ categoryPlaceholder: "{point.key}",
188
+ chartTokens: chartTokens,
189
+ isShared: true,
190
+ seriesIndicator: seriesIndicator,
191
+ seriesLabelPlaceholder: "{series.name}",
192
+ valuePlaceholder: "{point.custom.formattedValue}"
193
+ })
194
+ }), _jsx(PlotOptions, {
195
+ line: linePlotOptions,
196
+ series: seriesPlotOptions
197
+ }), _jsx(Credits, {
198
+ enabled: false
199
+ }), seriesList.map(({
200
+ chartSeries,
201
+ pointData
202
+ }) => _jsx(LineSeries, {
203
+ data: pointData,
204
+ name: chartSeries.name
205
+ }, chartSeries.name))]
206
+ })
207
+ });
208
+ };
209
+ const MemoizedLineChartContent = memo(LineChartContent);
210
+ const LineChart = props => {
211
+ const stableOnPointClick = useStableCallback(props.onPointClick);
212
+ const stableOnRetry = useStableCallback(props.onRetry);
213
+ const {
214
+ hasError,
215
+ isLoading,
216
+ onRetry,
217
+ subtitle,
218
+ title,
219
+ ...chartProps
220
+ } = props;
221
+ const stableChartProps = useStableValue({
222
+ ...chartProps,
223
+ onPointClick: props.onPointClick ? stableOnPointClick : undefined
224
+ });
225
+ return _jsx(ChartFrame, {
226
+ hasError: hasError,
227
+ isLoading: isLoading,
228
+ onRetry: onRetry ? stableOnRetry : undefined,
229
+ subtitle: subtitle,
230
+ title: title,
231
+ children: _jsx(MemoizedLineChartContent, {
232
+ ...stableChartProps
233
+ })
234
+ });
235
+ };
236
+ const MemoizedLineChart = memo(LineChart);
237
+ MemoizedLineChart.displayName = "LineChart::pkg=odyssey&odysseyV=1.70.0";
238
+ export { MemoizedLineChart as LineChart };
239
+ //# sourceMappingURL=LineChart.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"LineChart.js","names":["Chart","Credits","Legend","PlotOptions","Tooltip","Popover","XAxis","YAxis","Accessibility","LineSeries","memo","useMemo","useStableCallback","ChartContainer","ChartFrame","ChartPopoverContent","useChartAnimation","useChartTokens","getChartSeriesPointData","hasDuplicateSeries","useChartValueFormatter","useStableValue","jsx","_jsx","jsxs","_jsxs","LINE_SERIES_MARKER_SYMBOLS","LineChartContent","ariaDescription","categories","onPointClick","pointPopoverValueFormat","series","xAxisLabel","yAxisFormat","yAxisLabel","chartTokens","formatValue","Error","animation","seriesList","map","chartSeries","pointData","hasLegend","length","options","chart","backgroundColor","spacingBottom","edgeSpacing","spacingLeft","spacingRight","spacingTop","topEdgeSpacing","style","fontFamily","colors","seriesColors","subtitle","text","undefined","title","keyboardNavigation","focusBorder","margin","focusRing","offset","borderRadius","radius","color","lineWidth","width","xAxisCrosshair","axis","crosshairColor","crosshairWidth","xAxisLabels","valueStyle","xAxisTitle","align","uprightLabelSpacing","labelStyle","yAxisLabels","formatter","context","format","value","Number","yAxisTitle","rotatedLabelSpacing","seriesIndicator","symbols","type","linePlotOptions","dataLabels","enabled","line","strokeWidth","marker","markerRadius","states","hover","lineWidthPlus","markerHoverRadius","halo","opacity","markerHoverHaloOpacity","size","markerHoverHaloRadius","hoverStrokeWidthPlus","seriesPlotOptions","children","description","landmarkVerbosity","crosshair","gridLineColor","lineColor","gridLineWidth","labels","tickColor","tickLength","legend","shared","popover","borderColor","borderWidth","padding","shadow","containerStyle","categoryPlaceholder","isShared","seriesLabelPlaceholder","valuePlaceholder","data","name","MemoizedLineChartContent","LineChart","props","stableOnPointClick","stableOnRetry","onRetry","hasError","isLoading","chartProps","stableChartProps","MemoizedLineChart","displayName"],"sources":["../../../src/charts/LineChart.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 {\n Chart,\n Credits,\n Legend,\n PlotOptions,\n Tooltip as Popover,\n XAxis,\n YAxis,\n} from \"@highcharts/react\";\nimport { Accessibility } from \"@highcharts/react/modules/Accessibility.js\";\nimport { LineSeries } from \"@highcharts/react/series/Line.js\";\nimport { memo, useMemo } from \"react\";\n\nimport type { CartesianChartProps } from \"./utils/chartTypes.js\";\nimport type { ChartValueFormat } from \"./utils/formatChartValue.js\";\n\nimport { useStableCallback } from \"../useStableCallback.js\";\nimport { ChartContainer } from \"./components/ChartContainer.js\";\nimport { ChartFrame } from \"./components/ChartFrame.js\";\nimport {\n type ChartMarkerSymbol,\n ChartPopoverContent,\n} from \"./components/ChartPopoverContent.js\";\nimport { useChartAnimation } from \"./useChartAnimation.js\";\nimport { useChartTokens } from \"./utils/chartTokens.js\";\nimport { getChartSeriesPointData } from \"./utils/getChartSeriesPointData.js\";\nimport { hasDuplicateSeries } from \"./utils/hasDuplicateSeries.js\";\nimport { useChartValueFormatter } from \"./utils/useChartValueFormatter.js\";\nimport { useStableValue } from \"./utils/useStableValue.js\";\n\n// The Highcharts default marker symbols, in the order that Highcharts gives\n// them to the series of a chart. The chart draws these markers itself. This\n// list exists so that the popover can draw the same marker next to the name of\n// a series, and the popover selects one entry by `series.symbolIndex`.\n//\n// A change to this order, a Highcharts release that changes its own default\n// list, or a `marker.symbol` set on a series all make the popover show the\n// wrong shape.\nconst LINE_SERIES_MARKER_SYMBOLS = [\n \"circle\",\n \"diamond\",\n \"square\",\n \"triangle\",\n \"triangleDown\",\n] as const satisfies readonly ChartMarkerSymbol[];\n\n/** The props for a line chart. */\nexport type LineChartProps = CartesianChartProps & {\n /**\n * The format for the values on the vertical axis. A line chart shows its\n * numeric values on that axis. If no preset gives the format that you need,\n * supply a function.\n * @default \"compact\"\n */\n yAxisFormat?: ChartValueFormat;\n};\n\nconst LineChartContent = ({\n ariaDescription,\n categories,\n onPointClick,\n pointPopoverValueFormat,\n series,\n xAxisLabel,\n yAxisFormat = \"compact\",\n yAxisLabel,\n}: LineChartProps) => {\n const chartTokens = useChartTokens();\n const formatValue = useChartValueFormatter();\n\n if (hasDuplicateSeries({ series })) {\n throw new Error(\"This chart has two or more series with the same name.\");\n }\n\n const animation = useChartAnimation();\n\n // This memo builds a click handler and formats the value for each point.\n // Highcharts registers a new click handler for a point whenever the\n // identity of that point's data changes. Without this memo, every render\n // would build new data, so Highcharts would tear down and re-register its\n // handlers even when nothing changed.\n //\n // This memo works because LineChart passes its props through\n // useStableValue. That hook keeps `series` at the same identity across a\n // render that does not change the data, so this memo does not rerun.\n // LineChart also passes `onPointClick` through useStableCallback, so an\n // inline handler from the caller keeps the same identity here.\n //\n // useStableValue compares a function by identity, not by what the function\n // does. `pointPopoverValueFormat` accepts a function, and this memo formats\n // each value at build time. So a caller that supplies a new function on\n // every render for that property still defeats this memo. Such a caller\n // needs its own useCallback.\n const seriesList = useMemo(\n () =>\n series.map((chartSeries) => ({\n chartSeries,\n pointData: getChartSeriesPointData({\n categories,\n chartSeries,\n formatValue,\n onPointClick,\n pointPopoverValueFormat,\n }),\n })),\n [categories, formatValue, onPointClick, pointPopoverValueFormat, series],\n );\n const hasLegend = useMemo(() => series.length > 1, [series.length]);\n\n const options = useMemo(\n () => ({\n chart: {\n animation,\n backgroundColor: chartTokens.chart.backgroundColor,\n spacingBottom: chartTokens.chart.edgeSpacing,\n spacingLeft: chartTokens.chart.edgeSpacing,\n spacingRight: chartTokens.chart.edgeSpacing,\n spacingTop: chartTokens.chart.topEdgeSpacing,\n style: { fontFamily: chartTokens.chart.fontFamily },\n },\n // Each series takes the next color from this list. So a change to the\n // order of `seriesColors`, in `chartTokens.ts`, changes the color of every\n // series.\n colors: chartTokens.seriesColors,\n // The chart library ships a default title text of \"Chart title\". Its\n // documented way to disable a title is a `text` of undefined, which draws\n // an empty text element that measures zero and so reserves no height. A\n // whole `title` of undefined does not work, because the React wrapper\n // always merges a `title` object over the `options` prop.\n subtitle: { text: undefined },\n title: { text: undefined },\n }),\n [animation, chartTokens],\n );\n\n const keyboardNavigation = useMemo(\n () => ({\n focusBorder: {\n margin: chartTokens.focusRing.offset,\n style: {\n borderRadius: chartTokens.focusRing.radius,\n color: chartTokens.focusRing.color,\n lineWidth: chartTokens.focusRing.width,\n },\n },\n }),\n [chartTokens],\n );\n const xAxisCrosshair = useMemo(\n () => ({\n color: chartTokens.axis.crosshairColor,\n width: chartTokens.axis.crosshairWidth,\n }),\n [chartTokens],\n );\n const xAxisLabels = useMemo(\n () => ({ style: chartTokens.axis.valueStyle }),\n [chartTokens],\n );\n const xAxisTitle = useMemo(\n () => ({\n align: \"middle\" as const,\n margin: chartTokens.axis.uprightLabelSpacing,\n style: chartTokens.axis.labelStyle,\n text: xAxisLabel,\n }),\n [chartTokens, xAxisLabel],\n );\n const yAxisLabels = useMemo(\n () => ({\n formatter: (context: { value: unknown }) =>\n formatValue({\n format: yAxisFormat,\n value: Number(context.value),\n }),\n style: chartTokens.axis.valueStyle,\n }),\n [chartTokens, formatValue, yAxisFormat],\n );\n const yAxisTitle = useMemo(\n () => ({\n align: \"middle\" as const,\n // This axis draws up the left side, so its label is the rotated one.\n margin: chartTokens.axis.rotatedLabelSpacing,\n style: chartTokens.axis.labelStyle,\n text: yAxisLabel,\n }),\n [chartTokens, yAxisLabel],\n );\n const seriesIndicator = useMemo(\n () => ({\n symbols: LINE_SERIES_MARKER_SYMBOLS,\n type: \"lineMarker\" as const,\n }),\n [],\n );\n const linePlotOptions = useMemo(\n () => ({\n dataLabels: { enabled: false },\n lineWidth: chartTokens.line.strokeWidth,\n marker: {\n lineWidth: 0,\n radius: chartTokens.line.markerRadius,\n states: {\n hover: {\n lineWidthPlus: 0,\n radius: chartTokens.line.markerHoverRadius,\n },\n },\n },\n states: {\n hover: {\n halo: {\n opacity: chartTokens.line.markerHoverHaloOpacity,\n size: chartTokens.line.markerHoverHaloRadius,\n },\n lineWidthPlus: chartTokens.line.hoverStrokeWidthPlus,\n },\n },\n }),\n [chartTokens],\n );\n const seriesPlotOptions = useMemo(() => ({ animation }), [animation]);\n\n return (\n <ChartContainer>\n <Chart options={options} type=\"line\">\n <Accessibility\n description={ariaDescription}\n enabled\n keyboardNavigation={keyboardNavigation}\n landmarkVerbosity=\"disabled\"\n />\n <XAxis\n categories={categories}\n crosshair={xAxisCrosshair}\n gridLineColor={chartTokens.axis.lineColor}\n gridLineWidth={0}\n labels={xAxisLabels}\n lineColor={chartTokens.axis.lineColor}\n lineWidth={0}\n tickColor={chartTokens.axis.lineColor}\n tickLength={0}\n title={xAxisTitle}\n />\n <YAxis\n gridLineColor={chartTokens.axis.lineColor}\n gridLineWidth={chartTokens.axis.gridLineWidth}\n labels={yAxisLabels}\n lineColor=\"transparent\"\n tickColor=\"transparent\"\n title={yAxisTitle}\n />\n <Legend\n enabled={hasLegend}\n {...chartTokens.legend.shared}\n {...chartTokens.legend.line}\n />\n <Popover\n backgroundColor={chartTokens.popover.backgroundColor}\n borderColor={chartTokens.popover.borderColor}\n borderRadius={chartTokens.popover.borderRadius}\n borderWidth={chartTokens.popover.borderWidth}\n padding={chartTokens.popover.padding}\n shadow={false}\n shared\n style={chartTokens.popover.containerStyle}\n >\n <ChartPopoverContent\n categoryPlaceholder=\"{point.key}\"\n chartTokens={chartTokens}\n isShared\n seriesIndicator={seriesIndicator}\n seriesLabelPlaceholder=\"{series.name}\"\n valuePlaceholder=\"{point.custom.formattedValue}\"\n />\n </Popover>\n <PlotOptions line={linePlotOptions} series={seriesPlotOptions} />\n <Credits enabled={false} />\n {seriesList.map(({ chartSeries, pointData }) => (\n <LineSeries\n data={pointData}\n key={chartSeries.name}\n name={chartSeries.name}\n />\n ))}\n </Chart>\n </ChartContainer>\n );\n};\n\n// `LineChart` passes props that keep the same identity across a render. This\n// memo then stops a render of the caller from reaching the children of\n// `Chart`. A new child identity forces Highcharts to rebuild and redraw the\n// whole chart.\nconst MemoizedLineChartContent = memo(LineChartContent);\n\n/**\n * Renders a line chart that gets its theme from Odyssey design tokens. The\n * chart plots each series against the shared `categories` of the chart. Each\n * value in a series lines up by index with a category, so a series and\n * `categories` must have the same length. If a value is `null`, the chart\n * draws a gap at that category, and not a point with a value of zero.\n *\n * The chart also gives a different marker shape to each series. The shape lets\n * a user identify a series without color. The chart library applies its five\n * built-in shapes in series order. A sixth series repeats the first shape.\n */\nconst LineChart = (props: LineChartProps) => {\n // Highcharts rebuilds and redraws the whole chart when the identity of any\n // React child changes. A caller that builds the `series` array inside its\n // own render creates a new array on every render. That new array would\n // reach every child below this point.\n //\n // useStableValue holds one chart props object while its contents stay the same,\n // so `MemoizedLineChartContent` keeps the same children across those\n // renders.\n //\n // useStableValue cannot hold `onPointClick`, because it compares a function\n // by identity. An inline handler therefore arrives with a new identity on\n // each render of the caller, and every memo below misses. useStableCallback\n // wraps that handler in one callback of its own that keeps the same\n // identity, and calls the latest handler when a user clicks a point.\n //\n // useStableCallback also turns an absent handler into a callback that does\n // nothing. The chart attaches a click listener to a point as soon as it\n // finds one, so a chart with no `onPointClick` must pass nothing at all.\n // The condition below keeps that behavior, and returns the one stable\n // callback in every other case.\n const stableOnPointClick = useStableCallback(props.onPointClick);\n const stableOnRetry = useStableCallback(props.onRetry);\n const { hasError, isLoading, onRetry, subtitle, title, ...chartProps } =\n props;\n const stableChartProps = useStableValue({\n ...chartProps,\n onPointClick: props.onPointClick ? stableOnPointClick : undefined,\n });\n\n return (\n <ChartFrame\n hasError={hasError}\n isLoading={isLoading}\n onRetry={onRetry ? stableOnRetry : undefined}\n subtitle={subtitle}\n title={title}\n >\n <MemoizedLineChartContent {...stableChartProps} />\n </ChartFrame>\n );\n};\n\nconst MemoizedLineChart = memo(LineChart);\nMemoizedLineChart.displayName = \"LineChart\";\n\nexport { MemoizedLineChart as LineChart };\n"],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,SACEA,KAAK,EACLC,OAAO,EACPC,MAAM,EACNC,WAAW,EACXC,OAAO,IAAIC,OAAO,EAClBC,KAAK,EACL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,QAAA,EAEbzF,IAAA,CAACiH,wBAAwB;MAAA,GAAKS;IAAgB,CAAG;EAAC,CACxC,CAAC;AAEjB,CAAC;AAED,MAAMC,iBAAiB,GAAGxI,IAAI,CAAC+H,SAAS,CAAC;AACzCS,iBAAiB,CAACC,WAAW,2CAAc;AAE3C,SAASD,iBAAiB,IAAIT,SAAS","ignoreList":[]}
@@ -0,0 +1,28 @@
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 { createOdysseyStyledComponent } from "../../createOdysseyStyledComponent.js";
14
+ import { chartTokens } from "../utils/chartTokens.js";
15
+ export const ChartContainer = createOdysseyStyledComponent({
16
+ tag: "div"
17
+ })({
18
+ height: "100%",
19
+ minHeight: 0,
20
+ minWidth: 0,
21
+ "& > div": {
22
+ height: "100%"
23
+ },
24
+ "& .highcharts-legend-item rect.highcharts-point": {
25
+ transform: `translateY(${chartTokens.ChartLegendRectangleVerticalOffset}px)`
26
+ }
27
+ });
28
+ //# sourceMappingURL=ChartContainer.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ChartContainer.js","names":["createOdysseyStyledComponent","chartTokens","ChartContainer","tag","height","minHeight","minWidth","transform","ChartLegendRectangleVerticalOffset"],"sources":["../../../../src/charts/components/ChartContainer.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 { createOdysseyStyledComponent } from \"../../createOdysseyStyledComponent.js\";\nimport { chartTokens } from \"../utils/chartTokens.js\";\n\n/**\n * A full-height container for a Highcharts React chart. The container also\n * corrects the optical alignment of rectangular legend symbols. Highcharts\n * positions line and marker symbols with a separate rule.\n */\nexport const ChartContainer = createOdysseyStyledComponent({ tag: \"div\" })({\n height: \"100%\",\n minHeight: 0,\n minWidth: 0,\n \"& > div\": { height: \"100%\" },\n \"& .highcharts-legend-item rect.highcharts-point\": {\n transform: `translateY(${chartTokens.ChartLegendRectangleVerticalOffset}px)`,\n },\n});\n"],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,SAASA,4BAA4B,QAAQ,uCAAuC;AACpF,SAASC,WAAW,QAAQ,yBAAyB;AAOrD,OAAO,MAAMC,cAAc,GAAGF,4BAA4B,CAAC;EAAEG,GAAG,EAAE;AAAM,CAAC,CAAC,CAAC;EACzEC,MAAM,EAAE,MAAM;EACdC,SAAS,EAAE,CAAC;EACZC,QAAQ,EAAE,CAAC;EACX,SAAS,EAAE;IAAEF,MAAM,EAAE;EAAO,CAAC;EAC7B,iDAAiD,EAAE;IACjDG,SAAS,EAAE,cAAcN,WAAW,CAACO,kCAAkC;EACzE;AACF,CAAC,CAAC","ignoreList":[]}
@@ -11,11 +11,11 @@
11
11
  */
12
12
 
13
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";
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
19
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
20
20
  const OuterContainer = createOdysseyStyledComponent({
21
21
  tag: "div"
@@ -65,6 +65,6 @@ const ChartError = ({
65
65
  });
66
66
  };
67
67
  const MemoizedChartError = memo(ChartError);
68
- MemoizedChartError.displayName = "ChartError::pkg=odyssey&odysseyV=1.69.0";
68
+ MemoizedChartError.displayName = "ChartError::pkg=odyssey&odysseyV=1.70.0";
69
69
  export { MemoizedChartError as ChartError };
70
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/components/ChartError.tsx"],"sourcesContent":["/*!\n * Copyright (c) 2026-present, Okta, Inc. and/or its affiliates. All rights reserved.\n * The Okta software accompanied by this notice is provided pursuant to the Apache License, Version 2.0 (the \"License.\")\n *\n * You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0.\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS, WITHOUT\n * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n *\n * See the License for the specific language governing permissions and limitations under the License.\n */\n\nimport { memo } from \"react\";\n\nimport { Button } from \"../../Buttons/Button.js\";\nimport { createOdysseyStyledComponent } from \"../../createOdysseyStyledComponent.js\";\nimport { useTranslation } from \"../../i18n.generated/i18n.js\";\nimport { WarningIcon } from \"../../icons.generated/Warning.js\";\nimport { Heading5, Paragraph } from \"../../Typography.js\";\n\n/** The props for a chart error state. */\nexport type ChartErrorProps = {\n /**\n * The chart calls this function when a user clicks the retry button in the\n * error state. The error state shows no retry button when the caller\n * omits this property.\n */\n onRetry?: () => void;\n};\n\n// The parent is a single-row grid that stretches this component to the\n// chart's full height. Centering here, rather than in the parent, keeps the\n// centering rule next to the content it centers.\nconst OuterContainer = createOdysseyStyledComponent({ tag: \"div\" })(\n ({ odysseyDesignTokens }) => ({\n alignItems: \"center\",\n display: \"flex\",\n flexDirection: \"column\",\n gap: odysseyDesignTokens.Spacing5,\n height: \"100%\",\n justifyContent: \"center\",\n textAlign: \"center\",\n }),\n);\n\n// `Heading4` renders an `h4` and `Paragraph` renders a `p`, and each carries\n// its own block margins. Those margins would add to the gap below and throw\n// off the measured spacing, so this resets them. The selector names both\n// elements rather than every child, so a later child keeps its own margins.\nconst TextGroup = createOdysseyStyledComponent({ tag: \"div\" })(\n ({ odysseyDesignTokens }) => ({\n display: \"flex\",\n flexDirection: \"column\",\n gap: odysseyDesignTokens.Spacing2,\n maxWidth: odysseyDesignTokens.TypographyLineLengthMax,\n\n \"& > h4, & > p\": {\n marginBlock: 0,\n },\n }),\n);\n\n/**\n * Renders the error state for a chart. A chart shows this component in\n * place of its plot when the chart fails to load its data.\n */\nconst ChartError = ({ onRetry }: ChartErrorProps) => {\n const { t } = useTranslation();\n\n return (\n <OuterContainer>\n <WarningIcon />\n <TextGroup role=\"alert\">\n <Heading5>{t(\"chart.error.heading\")}</Heading5>\n <Paragraph>{t(\"chart.error.text\")}</Paragraph>\n </TextGroup>\n {onRetry && (\n <Button\n label={t(\"chart.error.retry\")}\n onClick={onRetry}\n variant=\"secondary\"\n />\n )}\n </OuterContainer>\n );\n};\n\nconst MemoizedChartError = memo(ChartError);\nMemoizedChartError.displayName = \"ChartError\";\n\nexport { MemoizedChartError as ChartError };\n"],"mappings":"A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O;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":[]}
@@ -12,11 +12,11 @@ import _Skeleton from "@mui/material/Skeleton";
12
12
  */
13
13
  import { skeletonClasses } from "@mui/material/Skeleton";
14
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";
15
+ import { createOdysseyStyledComponent } from "../../createOdysseyStyledComponent.js";
16
+ import { useTranslation } from "../../i18n.generated/i18n.js";
17
+ import { Heading4, Paragraph } from "../../Typography.js";
18
+ import { useChartTokens } from "../utils/chartTokens.js";
18
19
  import { ChartError } from "./ChartError.js";
19
- import { useChartTokens } from "./chartTokens.js";
20
20
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
21
21
  const Frame = createOdysseyStyledComponent({
22
22
  tag: "section",
@@ -29,7 +29,8 @@ const Frame = createOdysseyStyledComponent({
29
29
  flexDirection: "column",
30
30
  gap: odysseyDesignTokens.Spacing4,
31
31
  height: "100%",
32
- minHeight
32
+ minHeight,
33
+ minWidth: 0
33
34
  }));
34
35
  const Header = createOdysseyStyledComponent({
35
36
  tag: "header"
@@ -50,7 +51,8 @@ const Body = createOdysseyStyledComponent({
50
51
  display: "grid",
51
52
  flex: 1,
52
53
  gridTemplateRows: "1fr",
53
- minHeight: 0
54
+ minHeight: 0,
55
+ minWidth: 0
54
56
  });
55
57
  const LoadingSkeleton = createOdysseyStyledComponent({
56
58
  tag: "div"
@@ -103,6 +105,6 @@ const ChartFrame = ({
103
105
  });
104
106
  };
105
107
  const MemoizedChartFrame = memo(ChartFrame);
106
- MemoizedChartFrame.displayName = "ChartFrame::pkg=odyssey&odysseyV=1.69.0";
108
+ MemoizedChartFrame.displayName = "ChartFrame::pkg=odyssey&odysseyV=1.70.0";
107
109
  export { MemoizedChartFrame as ChartFrame };
108
110
  //# sourceMappingURL=ChartFrame.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ChartFrame.js","names":["skeletonClasses","memo","useId","createOdysseyStyledComponent","useTranslation","Heading4","Paragraph","useChartTokens","ChartError","jsx","_jsx","jsxs","_jsxs","Frame","tag","shouldForwardProp","prop","odysseyDesignTokens","minHeight","display","flexDirection","gap","Spacing4","height","minWidth","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/components/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 { useChartTokens } from \"../utils/chartTokens.js\";\nimport { ChartError } from \"./ChartError.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 minWidth: 0,\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 minWidth: 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,uCAAuC;AACpF,SAASC,cAAc,QAAQ,8BAA8B;AAC7D,SAASC,QAAQ,EAAEC,SAAS,QAAQ,qBAAqB;AACzD,SAASC,cAAc,QAAQ,yBAAyB;AACxD,SAASC,UAAU,QAAQ,iBAAiB;AAAC,SAAAC,GAAA,IAAAC,IAAA,EAAAC,IAAA,IAAAC,KAAA;AA6C7C,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,SAAS;EACTM,QAAQ,EAAE;AACZ,CAAC,CAAC,CAAC;AASH,MAAMC,MAAM,GAAGtB,4BAA4B,CAAC;EAAEW,GAAG,EAAE;AAAS,CAAC,CAAC,CAC5D,CAAC;E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,CAACa,MAAM;MAAAW,QAAA,GACL1B,IAAA,CAACL,QAAQ;QAAC2C,EAAE,EAAEL,SAAU;QAAAP,QAAA,EAAEK;MAAK,CAAW,CAAC,EAC1CK,YAAY,IAAIpC,IAAA,CAACJ,SAAS;QAAA8B,QAAA,EAAEU;MAAY,CAAY,CAAC;IAAA,CAChD,CACT,EACDpC,IAAA,CAACmB,IAAI;MAAAO,QAAA,EAOFE,SAAS,GACR5B,IAAA,CAACsB,eAAe;QACd,cAAYU,CAAC,CAAC,yBAAyB,CAAE;QACzCO,IAAI,EAAC,QAAQ;QAAAb,QAAA,EAEb1B,IAAA,CAAAwC,SAAA;UAAaC,OAAO,EAAC;QAAS,CAAE;MAAC,CAClB,CAAC,GAChBd,QAAQ,GACV3B,IAAA,CAACF,UAAU;QAAC+B,OAAO,EAAEA;MAAQ,CAAE,CAAC,GAEhCH;IACD,CACG,CAAC;EAAA,CACF,CAAC;AAEZ,CAAC;AAED,MAAMgB,kBAAkB,GAAGnD,IAAI,CAACkC,UAAU,CAAC;AAC3CiB,kBAAkB,CAACC,WAAW,4CAAe;AAE7C,SAASD,kBAAkB,IAAIjB,UAAU","ignoreList":[]}
@@ -0,0 +1,118 @@
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 { Fragment } from "react";
14
+ import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
15
+ const MARKER_SYMBOL_STYLES = {
16
+ circle: {
17
+ borderRadius: "50%"
18
+ },
19
+ diamond: {
20
+ clipPath: "polygon(50% 0%, 100% 50%, 50% 100%, 0% 50%)"
21
+ },
22
+ square: {},
23
+ triangle: {
24
+ clipPath: "polygon(50% 0%, 100% 100%, 0% 100%)"
25
+ },
26
+ triangleDown: {
27
+ clipPath: "polygon(0% 0%, 100% 0%, 50% 100%)"
28
+ }
29
+ };
30
+ export const ChartPopoverContent = ({
31
+ categoryPlaceholder,
32
+ chartTokens,
33
+ isShared,
34
+ seriesIndicator = {
35
+ type: "swatch"
36
+ },
37
+ seriesLabelPlaceholder,
38
+ valuePlaceholder
39
+ }) => {
40
+ const indicator = seriesIndicator.type === "lineMarker" ? _jsxs("span", {
41
+ "aria-hidden": "true",
42
+ style: {
43
+ display: "inline-block",
44
+ height: chartTokens.popover.content.lineIndicatorSize,
45
+ position: "relative",
46
+ width: chartTokens.popover.content.lineIndicatorSize
47
+ },
48
+ children: [_jsx("span", {
49
+ style: {
50
+ backgroundColor: "{point.color}",
51
+ height: chartTokens.popover.content.lineIndicatorThickness,
52
+ insetBlockStart: "50%",
53
+ insetInlineStart: "0px",
54
+ position: "absolute",
55
+ transform: "translateY(-50%)",
56
+ width: "100%"
57
+ }
58
+ }), seriesIndicator.symbols.map((symbol, symbolIndex) => _jsxs(Fragment, {
59
+ children: [`{#if (eq series.symbolIndex ${symbolIndex})}`, _jsx("span", {
60
+ style: {
61
+ backgroundColor: "{point.color}",
62
+ display: "block",
63
+ height: chartTokens.popover.content.lineMarkerSize,
64
+ insetBlockStart: "50%",
65
+ insetInlineStart: "50%",
66
+ position: "absolute",
67
+ transform: "translate(-50%, -50%)",
68
+ width: chartTokens.popover.content.lineMarkerSize,
69
+ ...MARKER_SYMBOL_STYLES[symbol]
70
+ }
71
+ }), "{/if}"]
72
+ }, symbol))]
73
+ }) : _jsx("span", {
74
+ "aria-hidden": "true",
75
+ style: {
76
+ backgroundColor: "{point.color}",
77
+ borderRadius: chartTokens.popover.content.swatchRadius,
78
+ display: "inline-block",
79
+ height: chartTokens.popover.content.swatchSize,
80
+ width: chartTokens.popover.content.swatchSize
81
+ }
82
+ });
83
+ const row = _jsxs("div", {
84
+ style: {
85
+ alignItems: "center",
86
+ color: chartTokens.popover.content.textColor,
87
+ display: "flex",
88
+ fontSize: chartTokens.popover.content.fontSize,
89
+ gap: chartTokens.popover.content.rowGap,
90
+ marginBlockStart: chartTokens.popover.content.rowSpacing
91
+ },
92
+ children: [indicator, _jsxs("span", {
93
+ children: [seriesLabelPlaceholder, _jsx("span", {
94
+ className: "notranslate",
95
+ children: ": "
96
+ }), _jsx("span", {
97
+ style: {
98
+ fontWeight: chartTokens.popover.content.boldFontWeight
99
+ },
100
+ children: valuePlaceholder
101
+ })]
102
+ })]
103
+ });
104
+ return _jsxs("div", {
105
+ children: [_jsx("div", {
106
+ style: {
107
+ color: chartTokens.popover.content.textColor,
108
+ fontSize: chartTokens.popover.content.fontSize,
109
+ fontWeight: chartTokens.popover.content.boldFontWeight
110
+ },
111
+ children: categoryPlaceholder
112
+ }), isShared ? _jsxs(_Fragment, {
113
+ children: ["{#each points}", row, "{/each}"]
114
+ }) : row]
115
+ });
116
+ };
117
+ ChartPopoverContent.displayName = "ChartPopoverContent::pkg=odyssey&odysseyV=1.70.0";
118
+ //# sourceMappingURL=ChartPopoverContent.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ChartPopoverContent.js","names":["Fragment","jsx","_jsx","jsxs","_jsxs","_Fragment","MARKER_SYMBOL_STYLES","circle","borderRadius","diamond","clipPath","square","triangle","triangleDown","ChartPopoverContent","categoryPlaceholder","chartTokens","isShared","seriesIndicator","type","seriesLabelPlaceholder","valuePlaceholder","indicator","style","display","height","popover","content","lineIndicatorSize","position","width","children","backgroundColor","lineIndicatorThickness","insetBlockStart","insetInlineStart","transform","symbols","map","symbol","symbolIndex","lineMarkerSize","swatchRadius","swatchSize","row","alignItems","color","textColor","fontSize","gap","rowGap","marginBlockStart","rowSpacing","className","fontWeight","boldFontWeight","displayName"],"sources":["../../../../src/charts/components/ChartPopoverContent.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 { type CSSProperties, Fragment } from \"react\";\n\nimport type { ChartTokens } from \"../utils/chartTokens.js\";\n\n/**\n * The marker shapes that a chart popover can draw. The names match the\n * Highcharts marker symbols of the same shape.\n */\nexport type ChartMarkerSymbol =\n | \"circle\"\n | \"diamond\"\n | \"square\"\n | \"triangle\"\n | \"triangleDown\";\n\n/**\n * The visual mark that sits before a series label in a chart popover. It\n * carries the color of the series.\n * - If `'swatch'`, the popover draws the color in a rounded square. A chart\n * whose series fill a shape, such as a bar chart, asks for this.\n * - If `'lineMarker'`, the popover draws the color as a line with the marker\n * of the series at its center. A line chart asks for this, and it passes the\n * marker symbols of its series in plotted order.\n */\nexport type ChartPopoverIndicator =\n | { type: \"swatch\" }\n | { symbols: readonly ChartMarkerSymbol[]; type: \"lineMarker\" };\n\n// The CSS that draws each marker shape inside a popover. The chart itself\n// draws its markers as SVG through Highcharts, which the popover cannot reuse,\n// because Highcharts serializes the popover to HTML. The square needs no rule,\n// because a plain box is already a square.\nconst MARKER_SYMBOL_STYLES = {\n circle: { borderRadius: \"50%\" },\n diamond: { clipPath: \"polygon(50% 0%, 100% 50%, 50% 100%, 0% 50%)\" },\n square: {},\n triangle: { clipPath: \"polygon(50% 0%, 100% 100%, 0% 100%)\" },\n triangleDown: { clipPath: \"polygon(0% 0%, 100% 0%, 50% 100%)\" },\n} as const satisfies Record<ChartMarkerSymbol, CSSProperties>;\n\nexport type ChartPopoverContentProps = {\n /**\n * The Highcharts format-string placeholder for the popover header.\n * Highcharts substitutes the value when it renders the popover. For example\n * `\"{point.key}\"`.\n */\n categoryPlaceholder: string;\n /**\n * The chart tokens from `useChartTokens`. The caller passes them as a prop\n * because this component cannot read the token context. See the note on\n * {@link ChartPopoverContent}.\n */\n chartTokens: ChartTokens;\n /**\n * If `true`, the series row repeats once for each point in the category\n * under the pointer. The component puts that row inside the Highcharts\n * `{#each points}` block, which repeats it. If `false`, the component\n * renders the one row that a per-point popover needs.\n * @default false\n */\n isShared?: boolean;\n /**\n * The visual mark that sits before the series label. The chart that owns the\n * popover chooses the mark, and it passes the marker symbols that its own\n * series use. See {@link ChartPopoverIndicator}.\n * @default { type: \"swatch\" }\n */\n seriesIndicator?: ChartPopoverIndicator;\n /**\n * The Highcharts format-string placeholder for the series label line. For\n * example `\"{series.name}\"`.\n */\n seriesLabelPlaceholder: string;\n /**\n * The Highcharts format-string placeholder for the value that the popover\n * shows. For example `\"{point.custom.formattedValue}\"`, which holds the\n * value already formatted for the user's locale. The placeholder\n * `\"{point.y}\"` renders the raw number and ignores the locale format.\n */\n valuePlaceholder: string;\n};\n\n/**\n * Renders chart popover contents as JSX that `@highcharts/react` serializes\n * into a Highcharts format string. It is not mounted as a React component.\n *\n * Keep this component plain and serializable:\n * - Pass tokens as props. Do not add hooks, styled wrappers, or memoization.\n * - Keep `{#each points}` and `{/each}` as separate string expressions around\n * the row. Do not parenthesize `points` or put the row markup in a string;\n * Highcharts otherwise treats the loop as text or escapes the markup.\n * - Include units in inline style values. Highcharts drops numeric values\n * instead of adding units to them.\n *\n * The component owns the markup and indicator choice so callers do not have to\n * reproduce these serialization rules. Highcharts escapes values substituted\n * into placeholders, so this component does not escape them again.\n *\n * @see docs/decisions/2026-08-18-chart-tooltip-plain-serializable-component.md\n * @see docs/decisions/2026-08-21-shared-chart-tooltip-each-block.md\n */\nexport const ChartPopoverContent = ({\n categoryPlaceholder,\n chartTokens,\n isShared,\n seriesIndicator = { type: \"swatch\" },\n seriesLabelPlaceholder,\n valuePlaceholder,\n}: ChartPopoverContentProps) => {\n const indicator =\n seriesIndicator.type === \"lineMarker\" ? (\n <span\n aria-hidden=\"true\"\n style={{\n display: \"inline-block\",\n height: chartTokens.popover.content.lineIndicatorSize,\n position: \"relative\",\n width: chartTokens.popover.content.lineIndicatorSize,\n }}\n >\n <span\n style={{\n backgroundColor: \"{point.color}\",\n height: chartTokens.popover.content.lineIndicatorThickness,\n insetBlockStart: \"50%\",\n insetInlineStart: \"0px\",\n position: \"absolute\",\n transform: \"translateY(-50%)\",\n width: \"100%\",\n }}\n />\n\n {seriesIndicator.symbols.map((symbol, symbolIndex) => (\n <Fragment key={symbol}>\n {`{#if (eq series.symbolIndex ${symbolIndex})}`}\n <span\n style={{\n backgroundColor: \"{point.color}\",\n display: \"block\",\n height: chartTokens.popover.content.lineMarkerSize,\n insetBlockStart: \"50%\",\n insetInlineStart: \"50%\",\n position: \"absolute\",\n transform: \"translate(-50%, -50%)\",\n width: chartTokens.popover.content.lineMarkerSize,\n ...MARKER_SYMBOL_STYLES[symbol],\n }}\n />\n {\"{/if}\"}\n </Fragment>\n ))}\n </span>\n ) : (\n <span\n aria-hidden=\"true\"\n style={{\n backgroundColor: \"{point.color}\",\n borderRadius: chartTokens.popover.content.swatchRadius,\n display: \"inline-block\",\n height: chartTokens.popover.content.swatchSize,\n width: chartTokens.popover.content.swatchSize,\n }}\n />\n );\n\n const row = (\n <div\n style={{\n alignItems: \"center\",\n color: chartTokens.popover.content.textColor,\n display: \"flex\",\n fontSize: chartTokens.popover.content.fontSize,\n gap: chartTokens.popover.content.rowGap,\n marginBlockStart: chartTokens.popover.content.rowSpacing,\n }}\n >\n {indicator}\n <span>\n {seriesLabelPlaceholder}\n {/*\n * Highcharts removes the `translate=\"no\"` attribute when it\n * serializes this markup. It keeps the `notranslate` class name,\n * which browsers' translation tools also respect.\n */}\n <span className=\"notranslate\">{\": \"}</span>\n <span\n style={{ fontWeight: chartTokens.popover.content.boldFontWeight }}\n >\n {valuePlaceholder}\n </span>\n </span>\n </div>\n );\n\n return (\n <div>\n <div\n style={{\n color: chartTokens.popover.content.textColor,\n fontSize: chartTokens.popover.content.fontSize,\n fontWeight: chartTokens.popover.content.boldFontWeight,\n }}\n >\n {categoryPlaceholder}\n </div>\n {isShared ? (\n <>\n {\"{#each points}\"}\n {row}\n {\"{/each}\"}\n </>\n ) : (\n row\n )}\n </div>\n );\n};\n\nChartPopoverContent.displayName = \"ChartPopoverContent\";\n"],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,SAA6BA,QAAQ,QAAQ,OAAO;AAAC,SAAAC,GAAA,IAAAC,IAAA,EAAAC,IAAA,IAAAC,KAAA,EAAAJ,QAAA,IAAAK,SAAA;AAgCrD,MAAMC,oBAAoB,GAAG;EAC3BC,MAAM,EAAE;IAAEC,YAAY,EAAE;EAAM,CAAC;EAC/BC,OAAO,EAAE;IAAEC,QAAQ,EAAE;EAA8C,CAAC;EACpEC,MAAM,EAAE,CAAC,CAAC;EACVC,QAAQ,EAAE;IAAEF,QAAQ,EAAE;EAAsC,CAAC;EAC7DG,YAAY,EAAE;IAAEH,QAAQ,EAAE;EAAoC;AAChE,CAA6D;AA+D7D,OAAO,MAAMI,mBAAmB,GAAGA,CAAC;EAClCC,mBAAmB;EACnBC,WAAW;EACXC,QAAQ;EACRC,eAAe,GAAG;IAAEC,IAAI,EAAE;EAAS,CAAC;EACpCC,sBAAsB;EACtBC;AACwB,CAAC,KAAK;EAC9B,MAAMC,SAAS,GACbJ,eAAe,CAACC,IAAI,KAAK,YAAY,GACnCf,KAAA;IACE,eAAY,MAAM;IAClBmB,KAAK,EAAE;MACLC,OAAO,EAAE,cAAc;MACvBC,MAAM,EAAET,WAAW,CAACU,OAAO,CAACC,OAAO,CAACC,iBAAiB;MACrDC,QAAQ,EAAE,UAAU;MACpBC,KAAK,EAAEd,WAAW,CAACU,OAAO,CAACC,OAAO,CAACC;IACrC,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LsB,UAAU,EAAE,QAAQ;MACpBC,KAAK,EAAE9B,WAAW,CAACU,OAAO,CAACC,OAAO,CAACoB,SAAS;MAC5CvB,OAAO,EAAE,MAAM;MACfwB,QAAQ,EAAEhC,WAAW,CAACU,OAAO,CAACC,OAAO,CAACqB,QAAQ;MAC9CC,GAAG,EAAEjC,WAAW,CAACU,OAAO,CAACC,OAAO,CAACuB,MAAM;MACvCC,gBAAgB,EAAEnC,WAAW,CAACU,OAAO,CAACC,OAAO,CAACyB;IAChD,CAAE;IAAArB,QAAA,GAEDT,SAAS,EACVlB,KAAA;MAAA2B,QAAA,GACGX,sBAAsB,EAMvBlB,IAAA;QAAMmD,SAAS,EAAC,aAAa;QAAAtB,QAAA,EAAE;MAAI,CAAO,CAAC,EAC3C7B,IAAA;QACEqB,KAAK,EAAE;UAAE+B,UAAU,EAAEtC,WAAW,CAACU,OAAO,CAACC,OAAO,CAAC4B;QAAe,CAAE;QAAAxB,QAAA,EAEjEV;MAAgB,CACb,CAAC;IAAA,CACH,CAAC;EAAA,CACJ,CACN;EAED,OACEjB,KAAA;IAAA2B,QAAA,GACE7B,IAAA;MACEqB,KAAK,EAAE;QACLuB,KAAK,EAAE9B,WAAW,CAACU,OAAO,CAACC,OAAO,CAACoB,SAAS;QAC5CC,QAAQ,EAAEhC,WAAW,CAACU,OAAO,CAACC,OAAO,CAACqB,QAAQ;QAC9CM,UAAU,EAAEtC,WAAW,CAACU,OAAO,CAACC,OAAO,CAAC4B;MAC1C,CAAE;MAAAxB,QAAA,EAEDhB;IAAmB,CACjB,CAAC,EACLE,QAAQ,GACPb,KAAA,CAAAC,SAAA;MAAA0B,QAAA,GACG,gBAAgB,EAChBa,GAAG,EACH,SAAS;IAAA,CACV,CAAC,GAEHA,GACD;EAAA,CACE,CAAC;AAEV,CAAC;AAED9B,mBAAmB,CAAC0C,WAAW,qDAAwB","ignoreList":[]}
@@ -10,5 +10,6 @@
10
10
  * See the License for the specific language governing permissions and limitations under the License.
11
11
  */
12
12
 
13
+ export { BarChart } from "./BarChart.js";
13
14
  export { LineChart } from "./LineChart.js";
14
15
  //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","names":["BarChart","LineChart"],"sources":["../../../src/charts/index.ts"],"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\nexport { BarChart, type BarChartProps } from \"./BarChart.js\";\nexport { LineChart, type LineChartProps } from \"./LineChart.js\";\nexport type { ChartPoint, ChartSeries } from \"./utils/chartTypes.js\";\nexport { type ChartValueFormat } from \"./utils/formatChartValue.js\";\n"],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,SAASA,QAAQ,QAA4B,eAAe;AAC5D,SAASC,SAAS,QAA6B,gBAAgB","ignoreList":[]}
@@ -0,0 +1,22 @@
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 { useMemo } from "react";
14
+ import { useAnimation } from "../AnimationContext.js";
15
+ import { chartTokens } from "./utils/chartTokens.js";
16
+ export const useChartAnimation = () => {
17
+ const hasAnimations = useAnimation();
18
+ return useMemo(() => hasAnimations ? {
19
+ duration: chartTokens.ChartAnimationDuration
20
+ } : false, [hasAnimations]);
21
+ };
22
+ //# sourceMappingURL=useChartAnimation.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useChartAnimation.js","names":["useMemo","useAnimation","chartTokens","useChartAnimation","hasAnimations","duration","ChartAnimationDuration"],"sources":["../../../src/charts/useChartAnimation.ts"],"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 { useMemo } from \"react\";\n\nimport { useAnimation } from \"../AnimationContext.js\";\nimport { chartTokens } from \"./utils/chartTokens.js\";\n\n/** Returns the stable Highcharts animation setting. */\nexport const useChartAnimation = () => {\n const hasAnimations = useAnimation();\n\n return useMemo(\n () =>\n hasAnimations\n ? { duration: chartTokens.ChartAnimationDuration }\n : (false as const),\n [hasAnimations],\n );\n};\n"],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,SAASA,OAAO,QAAQ,OAAO;AAE/B,SAASC,YAAY,QAAQ,wBAAwB;AACrD,SAASC,WAAW,QAAQ,wBAAwB;AAGpD,OAAO,MAAMC,iBAAiB,GAAGA,CAAA,KAAM;EACrC,MAAMC,aAAa,GAAGH,YAAY,CAAC,CAAC;EAEpC,OAAOD,OAAO,CACZ,MACEI,aAAa,GACT;IAAEC,QAAQ,EAAEH,WAAW,CAACI;EAAuB,CAAC,GAC/C,KAAe,EACtB,CAACF,aAAa,CAChB,CAAC;AACH,CAAC","ignoreList":[]}