@okta/odyssey-react-mui 1.68.0 → 1.69.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (621) hide show
  1. package/dist/cjs/Accordion.cjs +1 -1
  2. package/dist/cjs/Autocomplete.cjs +1 -1
  3. package/dist/cjs/Badge.cjs +1 -1
  4. package/dist/cjs/Banner.cjs +1 -1
  5. package/dist/cjs/Banner.cjs.map +1 -1
  6. package/dist/cjs/Box.cjs +1 -1
  7. package/dist/cjs/Breadcrumbs.cjs +1 -1
  8. package/dist/cjs/Buttons/BaseButton.cjs +1 -1
  9. package/dist/cjs/Buttons/BaseMenuButton.cjs +1 -1
  10. package/dist/cjs/Buttons/Button.cjs +1 -1
  11. package/dist/cjs/Buttons/MenuButton.cjs +1 -1
  12. package/dist/cjs/Buttons/MenuItem.cjs +1 -1
  13. package/dist/cjs/Callout.cjs +1 -1
  14. package/dist/cjs/Callout.cjs.map +1 -1
  15. package/dist/cjs/Card.cjs +1 -1
  16. package/dist/cjs/Charts/ChartError.cjs +73 -0
  17. package/dist/cjs/Charts/ChartError.cjs.map +1 -0
  18. package/dist/cjs/Charts/ChartFrame.cjs +112 -0
  19. package/dist/cjs/Charts/ChartFrame.cjs.map +1 -0
  20. package/dist/cjs/Charts/ChartPopoverContent.cjs +56 -0
  21. package/dist/cjs/Charts/ChartPopoverContent.cjs.map +1 -0
  22. package/dist/cjs/Charts/LineChart.cjs +268 -0
  23. package/dist/cjs/Charts/LineChart.cjs.map +1 -0
  24. package/dist/cjs/Charts/chartTokens.cjs +117 -0
  25. package/dist/cjs/Charts/chartTokens.cjs.map +1 -0
  26. package/dist/cjs/Charts/chartTypes.cjs +6 -0
  27. package/dist/cjs/Charts/chartTypes.cjs.map +1 -0
  28. package/dist/cjs/Charts/formatChartValue.cjs +38 -0
  29. package/dist/cjs/Charts/formatChartValue.cjs.map +1 -0
  30. package/dist/cjs/Charts/getChartSeriesPointData.cjs +52 -0
  31. package/dist/cjs/Charts/getChartSeriesPointData.cjs.map +1 -0
  32. package/dist/cjs/Charts/hasDuplicateSeries.cjs +21 -0
  33. package/dist/cjs/Charts/hasDuplicateSeries.cjs.map +1 -0
  34. package/dist/cjs/Charts/index.cjs +13 -0
  35. package/dist/cjs/Charts/index.cjs.map +1 -0
  36. package/dist/cjs/Charts/resolveChartLocale.cjs +28 -0
  37. package/dist/cjs/Charts/resolveChartLocale.cjs.map +1 -0
  38. package/dist/cjs/Charts/useChartValueFormatter.cjs +35 -0
  39. package/dist/cjs/Charts/useChartValueFormatter.cjs.map +1 -0
  40. package/dist/cjs/Charts/useStableValue.cjs +28 -0
  41. package/dist/cjs/Charts/useStableValue.cjs.map +1 -0
  42. package/dist/cjs/CircularProgress.cjs +1 -1
  43. package/dist/cjs/ConditionalWrapper.cjs +1 -1
  44. package/dist/cjs/DataTable/DataTable.cjs +1 -1
  45. package/dist/cjs/DataTable/DataTableRowActions.cjs +1 -1
  46. package/dist/cjs/DataTable/DataTableSettings.cjs +1 -1
  47. package/dist/cjs/DatePickers/DateField.cjs +1 -1
  48. package/dist/cjs/DatePickers/DateFieldActionBar.cjs +1 -1
  49. package/dist/cjs/DatePickers/DateFieldLocalizationProvider.cjs +1 -1
  50. package/dist/cjs/DatePickers/DateFieldLocalizationProvider.cjs.map +1 -1
  51. package/dist/cjs/DatePickers/DatePicker.cjs +3 -4
  52. package/dist/cjs/DatePickers/DatePicker.cjs.map +1 -1
  53. package/dist/cjs/DatePickers/TimeZonePicker.cjs +1 -1
  54. package/dist/cjs/DatePickers/useOdysseyDateFields.cjs +10 -28
  55. package/dist/cjs/DatePickers/useOdysseyDateFields.cjs.map +1 -1
  56. package/dist/cjs/Dialog.cjs +1 -1
  57. package/dist/cjs/Drawer.cjs +19 -6
  58. package/dist/cjs/Drawer.cjs.map +1 -1
  59. package/dist/cjs/EmptyState.cjs +1 -1
  60. package/dist/cjs/ErrorMessageList.cjs +1 -1
  61. package/dist/cjs/Field.cjs +1 -1
  62. package/dist/cjs/FieldError.cjs +1 -1
  63. package/dist/cjs/FieldHint.cjs +1 -1
  64. package/dist/cjs/FieldLabel.cjs +1 -1
  65. package/dist/cjs/Fields/Checkbox.cjs +1 -1
  66. package/dist/cjs/Fields/CheckboxGroup.cjs +1 -1
  67. package/dist/cjs/Fields/Radio.cjs +1 -1
  68. package/dist/cjs/Fields/RadioGroup.cjs +1 -1
  69. package/dist/cjs/Fieldset.cjs +1 -1
  70. package/dist/cjs/FileUploader/FileUploadIllustration.cjs +1 -1
  71. package/dist/cjs/FileUploader/FileUploadPreview.cjs +1 -1
  72. package/dist/cjs/FileUploader/FileUploader.cjs +1 -1
  73. package/dist/cjs/Form.cjs +1 -1
  74. package/dist/cjs/FullScreenOverlay.cjs +1 -1
  75. package/dist/cjs/FullScreenOverlayContext.cjs +1 -1
  76. package/dist/cjs/HintLink.cjs +1 -1
  77. package/dist/cjs/IconWithTooltip.cjs +1 -1
  78. package/dist/cjs/Link.cjs +1 -1
  79. package/dist/cjs/MuiPropsChild.cjs +1 -1
  80. package/dist/cjs/NativeSelect.cjs +1 -1
  81. package/dist/cjs/OdysseyCacheProvider.cjs +1 -1
  82. package/dist/cjs/OdysseyProvider.cjs +1 -1
  83. package/dist/cjs/OdysseyThemeProvider.cjs +1 -1
  84. package/dist/cjs/OdysseyThemeProviderPropsContext.cjs +1 -1
  85. package/dist/cjs/OdysseyThemeProviderPropsContext.cjs.map +1 -1
  86. package/dist/cjs/Pagination/Pagination.cjs +1 -1
  87. package/dist/cjs/PasswordField.cjs +1 -1
  88. package/dist/cjs/ScreenReaderText.cjs +1 -1
  89. package/dist/cjs/SearchField.cjs +1 -1
  90. package/dist/cjs/Select.cjs +1 -1
  91. package/dist/cjs/Stack.cjs +1 -1
  92. package/dist/cjs/Status.cjs +1 -1
  93. package/dist/cjs/Surface.cjs +1 -1
  94. package/dist/cjs/Switch.cjs +2 -2
  95. package/dist/cjs/Tabs.cjs +1 -1
  96. package/dist/cjs/Tag.cjs +1 -1
  97. package/dist/cjs/TagList.cjs +1 -1
  98. package/dist/cjs/TextField.cjs +1 -1
  99. package/dist/cjs/Toast.cjs +1 -1
  100. package/dist/cjs/ToastStack.cjs +1 -1
  101. package/dist/cjs/Tooltip.cjs +1 -1
  102. package/dist/cjs/Typography.cjs +40 -13
  103. package/dist/cjs/Typography.cjs.map +1 -1
  104. package/dist/cjs/icons.generated/Add.cjs +1 -1
  105. package/dist/cjs/icons.generated/AddCircle.cjs +1 -1
  106. package/dist/cjs/icons.generated/Apps.cjs +1 -1
  107. package/dist/cjs/icons.generated/AppsSelected.cjs +1 -1
  108. package/dist/cjs/icons.generated/ArrowBottom.cjs +1 -1
  109. package/dist/cjs/icons.generated/ArrowDown.cjs +1 -1
  110. package/dist/cjs/icons.generated/ArrowLeft.cjs +1 -1
  111. package/dist/cjs/icons.generated/ArrowLowerLeft.cjs +1 -1
  112. package/dist/cjs/icons.generated/ArrowLowerRight.cjs +1 -1
  113. package/dist/cjs/icons.generated/ArrowRight.cjs +1 -1
  114. package/dist/cjs/icons.generated/ArrowTop.cjs +1 -1
  115. package/dist/cjs/icons.generated/ArrowUnsorted.cjs +1 -1
  116. package/dist/cjs/icons.generated/ArrowUp.cjs +1 -1
  117. package/dist/cjs/icons.generated/ArrowUpperLeft.cjs +1 -1
  118. package/dist/cjs/icons.generated/ArrowUpperRight.cjs +1 -1
  119. package/dist/cjs/icons.generated/Bug.cjs +1 -1
  120. package/dist/cjs/icons.generated/Calendar.cjs +1 -1
  121. package/dist/cjs/icons.generated/Call.cjs +1 -1
  122. package/dist/cjs/icons.generated/Chat.cjs +1 -1
  123. package/dist/cjs/icons.generated/Check.cjs +1 -1
  124. package/dist/cjs/icons.generated/CheckCircleFilled.cjs +1 -1
  125. package/dist/cjs/icons.generated/ChevronDown.cjs +1 -1
  126. package/dist/cjs/icons.generated/ChevronLeft.cjs +1 -1
  127. package/dist/cjs/icons.generated/ChevronRight.cjs +1 -1
  128. package/dist/cjs/icons.generated/ChevronUp.cjs +1 -1
  129. package/dist/cjs/icons.generated/Clock.cjs +1 -1
  130. package/dist/cjs/icons.generated/Close.cjs +1 -1
  131. package/dist/cjs/icons.generated/CloseCircleFilled.cjs +1 -1
  132. package/dist/cjs/icons.generated/CollapseLeft.cjs +1 -1
  133. package/dist/cjs/icons.generated/CollapseRight.cjs +1 -1
  134. package/dist/cjs/icons.generated/Copy.cjs +1 -1
  135. package/dist/cjs/icons.generated/Customizations.cjs +1 -1
  136. package/dist/cjs/icons.generated/CustomizationsSelected.cjs +1 -1
  137. package/dist/cjs/icons.generated/DangerDiamond.cjs +1 -1
  138. package/dist/cjs/icons.generated/DangerDiamondFilled.cjs +1 -1
  139. package/dist/cjs/icons.generated/Delete.cjs +1 -1
  140. package/dist/cjs/icons.generated/Deny.cjs +1 -1
  141. package/dist/cjs/icons.generated/Devices.cjs +1 -1
  142. package/dist/cjs/icons.generated/Directory.cjs +1 -1
  143. package/dist/cjs/icons.generated/DirectorySelected.cjs +1 -1
  144. package/dist/cjs/icons.generated/Documentation.cjs +1 -1
  145. package/dist/cjs/icons.generated/Download.cjs +1 -1
  146. package/dist/cjs/icons.generated/DragIndicator.cjs +1 -1
  147. package/dist/cjs/icons.generated/Edit.cjs +1 -1
  148. package/dist/cjs/icons.generated/ExpandLeft.cjs +1 -1
  149. package/dist/cjs/icons.generated/ExpandRight.cjs +1 -1
  150. package/dist/cjs/icons.generated/ExternalLink.cjs +1 -1
  151. package/dist/cjs/icons.generated/Filter.cjs +1 -1
  152. package/dist/cjs/icons.generated/Folder.cjs +1 -1
  153. package/dist/cjs/icons.generated/Globe.cjs +1 -1
  154. package/dist/cjs/icons.generated/Grid.cjs +1 -1
  155. package/dist/cjs/icons.generated/Group.cjs +1 -1
  156. package/dist/cjs/icons.generated/Happy.cjs +1 -1
  157. package/dist/cjs/icons.generated/Hide.cjs +1 -1
  158. package/dist/cjs/icons.generated/Home.cjs +1 -1
  159. package/dist/cjs/icons.generated/HomeSelected.cjs +1 -1
  160. package/dist/cjs/icons.generated/IdentityGovernance.cjs +1 -1
  161. package/dist/cjs/icons.generated/IdentityGovernanceSelected.cjs +1 -1
  162. package/dist/cjs/icons.generated/IdentityGovernanceSelected.cjs.map +1 -1
  163. package/dist/cjs/icons.generated/InformationCircle.cjs +1 -1
  164. package/dist/cjs/icons.generated/InformationCircleFilled.cjs +1 -1
  165. package/dist/cjs/icons.generated/Link.cjs +1 -1
  166. package/dist/cjs/icons.generated/List.cjs +1 -1
  167. package/dist/cjs/icons.generated/Lock.cjs +1 -1
  168. package/dist/cjs/icons.generated/Menu.cjs +1 -1
  169. package/dist/cjs/icons.generated/More.cjs +1 -1
  170. package/dist/cjs/icons.generated/Neutral.cjs +1 -1
  171. package/dist/cjs/icons.generated/Notification.cjs +1 -1
  172. package/dist/cjs/icons.generated/Pause.cjs +1 -1
  173. package/dist/cjs/icons.generated/QuestionCircle.cjs +1 -1
  174. package/dist/cjs/icons.generated/QuestionCircleFilled.cjs +1 -1
  175. package/dist/cjs/icons.generated/Refresh.cjs +1 -1
  176. package/dist/cjs/icons.generated/Reports.cjs +1 -1
  177. package/dist/cjs/icons.generated/ReportsSelected.cjs +1 -1
  178. package/dist/cjs/icons.generated/Reset.cjs +1 -1
  179. package/dist/cjs/icons.generated/Resume.cjs +1 -1
  180. package/dist/cjs/icons.generated/Sad.cjs +1 -1
  181. package/dist/cjs/icons.generated/Same.cjs +1 -1
  182. package/dist/cjs/icons.generated/Search.cjs +1 -1
  183. package/dist/cjs/icons.generated/Security.cjs +1 -1
  184. package/dist/cjs/icons.generated/SecuritySelected.cjs +1 -1
  185. package/dist/cjs/icons.generated/Send.cjs +1 -1
  186. package/dist/cjs/icons.generated/Server.cjs +1 -1
  187. package/dist/cjs/icons.generated/Settings.cjs +1 -1
  188. package/dist/cjs/icons.generated/SettingsSelected.cjs +1 -1
  189. package/dist/cjs/icons.generated/Show.cjs +1 -1
  190. package/dist/cjs/icons.generated/Sparkle.cjs +1 -1
  191. package/dist/cjs/icons.generated/Subtract.cjs +1 -1
  192. package/dist/cjs/icons.generated/Sync.cjs +1 -1
  193. package/dist/cjs/icons.generated/ThumbsDown.cjs +1 -1
  194. package/dist/cjs/icons.generated/ThumbsUp.cjs +1 -1
  195. package/dist/cjs/icons.generated/Unlock.cjs +1 -1
  196. package/dist/cjs/icons.generated/Upload.cjs +1 -1
  197. package/dist/cjs/icons.generated/User.cjs +1 -1
  198. package/dist/cjs/icons.generated/Video.cjs +1 -1
  199. package/dist/cjs/icons.generated/Warning.cjs +1 -1
  200. package/dist/cjs/icons.generated/WarningFilled.cjs +1 -1
  201. package/dist/cjs/icons.generated/Workflows.cjs +1 -1
  202. package/dist/cjs/icons.generated/WorkflowsSelected.cjs +1 -1
  203. package/dist/cjs/index.cjs +13 -18
  204. package/dist/cjs/index.cjs.map +1 -1
  205. package/dist/cjs/labs/AppTile.cjs +1 -1
  206. package/dist/cjs/labs/DataFilters.cjs +2 -2
  207. package/dist/cjs/labs/DataTable.cjs +1 -1
  208. package/dist/cjs/labs/DataTablePagination.cjs +1 -1
  209. package/dist/cjs/labs/DataView/BulkActionsMenu.cjs +1 -1
  210. package/dist/cjs/labs/DataView/CardLayoutContent.cjs +2 -2
  211. package/dist/cjs/labs/DataView/DataCard.cjs +1 -1
  212. package/dist/cjs/labs/DataView/DataTable.cjs +1 -1
  213. package/dist/cjs/labs/DataView/DataView.cjs +1 -1
  214. package/dist/cjs/labs/DataView/DetailPanel.cjs +1 -1
  215. package/dist/cjs/labs/DataView/LayoutSwitcher.cjs +1 -1
  216. package/dist/cjs/labs/DataView/RowActions.cjs +1 -1
  217. package/dist/cjs/labs/DataView/TableLayoutContent.cjs +1 -1
  218. package/dist/cjs/labs/DataView/TableSettings.cjs +1 -1
  219. package/dist/cjs/labs/DatePickers/DateTimeField.cjs +1 -1
  220. package/dist/cjs/labs/DatePickers/DateTimePicker.cjs +3 -4
  221. package/dist/cjs/labs/DatePickers/DateTimePicker.cjs.map +1 -1
  222. package/dist/cjs/labs/OdysseyPickers/ComposablePicker.cjs +1 -1
  223. package/dist/cjs/labs/OdysseyPickers/Picker.cjs +1 -1
  224. package/dist/cjs/labs/OdysseyPickers/PickerVirtualizationListBox.cjs +1 -1
  225. package/dist/cjs/labs/OdysseyPickers/PickerWithOptionAdornment.cjs +1 -1
  226. package/dist/cjs/labs/OdysseyPickers/SearchDropdown.cjs +1 -1
  227. package/dist/cjs/labs/PageTemplate/DocumentationLink.cjs +1 -1
  228. package/dist/cjs/labs/PageTemplate/Layout.cjs +1 -1
  229. package/dist/cjs/labs/PageTemplate/PageTemplate.cjs +1 -1
  230. package/dist/cjs/labs/PaginatedTable.cjs +1 -1
  231. package/dist/cjs/labs/StaticTable.cjs +1 -1
  232. package/dist/cjs/labs/UserProfile.cjs +1 -1
  233. package/dist/cjs/labs/UserProfileMenuButton.cjs +1 -1
  234. package/dist/cjs/logos.generated/Duo.cjs +1 -1
  235. package/dist/cjs/logos.generated/GoogleAuth.cjs +1 -1
  236. package/dist/cjs/logos.generated/OktaVerify.cjs +1 -1
  237. package/dist/cjs/logos.generated/Persona.cjs +1 -1
  238. package/dist/cjs/logos.generated/SymantecVip.cjs +1 -1
  239. package/dist/cjs/logos.generated/Yubikey.cjs +1 -1
  240. package/dist/cjs/properties/ts/odyssey-react-mui.cjs +4 -0
  241. package/dist/cjs/properties/ts/odyssey-react-mui.cjs.map +1 -1
  242. package/dist/cjs/properties/ts/odyssey-react-mui_ht.cjs +1 -1
  243. package/dist/cjs/properties/ts/odyssey-react-mui_ht.cjs.map +1 -1
  244. package/dist/cjs/properties/ts/odyssey-react-mui_ok_PL.cjs +4 -0
  245. package/dist/cjs/properties/ts/odyssey-react-mui_ok_PL.cjs.map +1 -1
  246. package/dist/cjs/properties/ts/odyssey-react-mui_ok_SK.cjs +4 -0
  247. package/dist/cjs/properties/ts/odyssey-react-mui_ok_SK.cjs.map +1 -1
  248. package/dist/cjs/properties/ts/odyssey-react-mui_zh_TW.cjs +1 -1
  249. package/dist/cjs/properties/ts/odyssey-react-mui_zh_TW.cjs.map +1 -1
  250. package/dist/cjs/theme/components/Dialog.cjs +1 -1
  251. package/dist/cjs/theme/components/Dialog.cjs.map +1 -1
  252. package/dist/cjs/theme/components/Drawer.cjs +5 -1
  253. package/dist/cjs/theme/components/Drawer.cjs.map +1 -1
  254. package/dist/cjs/theme/useMediaQuery.cjs +9 -6
  255. package/dist/cjs/theme/useMediaQuery.cjs.map +1 -1
  256. package/dist/cjs/ui-shell/AppSwitcher/AppSwitcher.cjs +1 -1
  257. package/dist/cjs/ui-shell/InnerAppContainer.cjs +1 -1
  258. package/dist/cjs/ui-shell/NarrowUiShellContent.cjs +1 -1
  259. package/dist/cjs/ui-shell/SideNav/NavAccordion.cjs +1 -1
  260. package/dist/cjs/ui-shell/SideNav/SideNav.cjs +1 -1
  261. package/dist/cjs/ui-shell/SideNav/SideNavFooterContent.cjs +1 -1
  262. package/dist/cjs/ui-shell/SideNav/SideNavHeader.cjs +1 -1
  263. package/dist/cjs/ui-shell/SideNav/SideNavItemContent.cjs +2 -2
  264. package/dist/cjs/ui-shell/SideNav/SideNavItemLinkContent.cjs +1 -1
  265. package/dist/cjs/ui-shell/SideNav/SideNavSortableList.cjs +1 -1
  266. package/dist/cjs/ui-shell/SideNav/SideNavToggleButton.cjs +2 -2
  267. package/dist/cjs/ui-shell/SkipToContent.cjs +1 -1
  268. package/dist/cjs/ui-shell/TopNav/HamburgerMenuIcon.cjs +1 -1
  269. package/dist/cjs/ui-shell/TopNav/TopNav.cjs +1 -1
  270. package/dist/cjs/ui-shell/TopNav/TopNavLinksList.cjs +1 -1
  271. package/dist/cjs/ui-shell/TopNav/TopNavListItem.cjs +1 -1
  272. package/dist/cjs/ui-shell/UiShell.cjs +1 -1
  273. package/dist/cjs/ui-shell/UiShellLogo.cjs +1 -1
  274. package/dist/cjs/ui-shell/WideUiShellContent.cjs +1 -1
  275. package/dist/cjs/useStableCallback.cjs +23 -0
  276. package/dist/cjs/useStableCallback.cjs.map +1 -0
  277. package/dist/cjs/web-component/odysseyWebComponentVersion.generated.cjs +1 -1
  278. package/dist/cjs/web-component/odysseyWebComponentVersion.generated.cjs.map +1 -1
  279. package/dist/esm/Accordion.js +1 -1
  280. package/dist/esm/Autocomplete.js +1 -1
  281. package/dist/esm/Badge.js +1 -1
  282. package/dist/esm/Banner.js +1 -1
  283. package/dist/esm/Banner.js.map +1 -1
  284. package/dist/esm/Box.js +1 -1
  285. package/dist/esm/Breadcrumbs.js +1 -1
  286. package/dist/esm/Buttons/BaseButton.js +1 -1
  287. package/dist/esm/Buttons/BaseMenuButton.js +1 -1
  288. package/dist/esm/Buttons/Button.js +1 -1
  289. package/dist/esm/Buttons/MenuButton.js +1 -1
  290. package/dist/esm/Buttons/MenuItem.js +1 -1
  291. package/dist/esm/Callout.js +1 -1
  292. package/dist/esm/Callout.js.map +1 -1
  293. package/dist/esm/Card.js +1 -1
  294. package/dist/esm/Charts/ChartError.js +70 -0
  295. package/dist/esm/Charts/ChartError.js.map +1 -0
  296. package/dist/esm/Charts/ChartFrame.js +108 -0
  297. package/dist/esm/Charts/ChartFrame.js.map +1 -0
  298. package/dist/esm/Charts/ChartPopoverContent.js +49 -0
  299. package/dist/esm/Charts/ChartPopoverContent.js.map +1 -0
  300. package/dist/esm/Charts/LineChart.js +263 -0
  301. package/dist/esm/Charts/LineChart.js.map +1 -0
  302. package/dist/esm/Charts/chartTokens.js +109 -0
  303. package/dist/esm/Charts/chartTokens.js.map +1 -0
  304. package/dist/esm/Charts/chartTypes.js +2 -0
  305. package/dist/esm/Charts/chartTypes.js.map +1 -0
  306. package/dist/esm/Charts/formatChartValue.js +33 -0
  307. package/dist/esm/Charts/formatChartValue.js.map +1 -0
  308. package/dist/esm/Charts/getChartSeriesPointData.js +45 -0
  309. package/dist/esm/Charts/getChartSeriesPointData.js.map +1 -0
  310. package/dist/esm/Charts/hasDuplicateSeries.js +14 -0
  311. package/dist/esm/Charts/hasDuplicateSeries.js.map +1 -0
  312. package/dist/esm/Charts/index.js +14 -0
  313. package/dist/esm/Charts/index.js.map +1 -0
  314. package/dist/esm/Charts/resolveChartLocale.js +21 -0
  315. package/dist/esm/Charts/resolveChartLocale.js.map +1 -0
  316. package/dist/esm/Charts/useChartValueFormatter.js +30 -0
  317. package/dist/esm/Charts/useChartValueFormatter.js.map +1 -0
  318. package/dist/esm/Charts/useStableValue.js +22 -0
  319. package/dist/esm/Charts/useStableValue.js.map +1 -0
  320. package/dist/esm/CircularProgress.js +1 -1
  321. package/dist/esm/ConditionalWrapper.js +1 -1
  322. package/dist/esm/DataTable/DataTable.js +1 -1
  323. package/dist/esm/DataTable/DataTableRowActions.js +1 -1
  324. package/dist/esm/DataTable/DataTableSettings.js +1 -1
  325. package/dist/esm/DatePickers/DateField.js +1 -1
  326. package/dist/esm/DatePickers/DateFieldActionBar.js +1 -1
  327. package/dist/esm/DatePickers/DateFieldLocalizationProvider.js +1 -1
  328. package/dist/esm/DatePickers/DateFieldLocalizationProvider.js.map +1 -1
  329. package/dist/esm/DatePickers/DatePicker.js +3 -4
  330. package/dist/esm/DatePickers/DatePicker.js.map +1 -1
  331. package/dist/esm/DatePickers/TimeZonePicker.js +1 -1
  332. package/dist/esm/DatePickers/useOdysseyDateFields.js +10 -28
  333. package/dist/esm/DatePickers/useOdysseyDateFields.js.map +1 -1
  334. package/dist/esm/Dialog.js +1 -1
  335. package/dist/esm/Drawer.js +15 -2
  336. package/dist/esm/Drawer.js.map +1 -1
  337. package/dist/esm/EmptyState.js +1 -1
  338. package/dist/esm/ErrorMessageList.js +1 -1
  339. package/dist/esm/Field.js +1 -1
  340. package/dist/esm/FieldError.js +1 -1
  341. package/dist/esm/FieldHint.js +1 -1
  342. package/dist/esm/FieldLabel.js +1 -1
  343. package/dist/esm/Fields/Checkbox.js +1 -1
  344. package/dist/esm/Fields/CheckboxGroup.js +1 -1
  345. package/dist/esm/Fields/Radio.js +1 -1
  346. package/dist/esm/Fields/RadioGroup.js +1 -1
  347. package/dist/esm/Fieldset.js +1 -1
  348. package/dist/esm/FileUploader/FileUploadIllustration.js +1 -1
  349. package/dist/esm/FileUploader/FileUploadPreview.js +1 -1
  350. package/dist/esm/FileUploader/FileUploader.js +1 -1
  351. package/dist/esm/Form.js +1 -1
  352. package/dist/esm/FullScreenOverlay.js +1 -1
  353. package/dist/esm/FullScreenOverlayContext.js +1 -1
  354. package/dist/esm/HintLink.js +1 -1
  355. package/dist/esm/IconWithTooltip.js +1 -1
  356. package/dist/esm/Link.js +1 -1
  357. package/dist/esm/MuiPropsChild.js +1 -1
  358. package/dist/esm/NativeSelect.js +1 -1
  359. package/dist/esm/OdysseyCacheProvider.js +1 -1
  360. package/dist/esm/OdysseyProvider.js +1 -1
  361. package/dist/esm/OdysseyThemeProvider.js +1 -1
  362. package/dist/esm/OdysseyThemeProviderPropsContext.js +1 -1
  363. package/dist/esm/OdysseyThemeProviderPropsContext.js.map +1 -1
  364. package/dist/esm/Pagination/Pagination.js +1 -1
  365. package/dist/esm/PasswordField.js +1 -1
  366. package/dist/esm/ScreenReaderText.js +1 -1
  367. package/dist/esm/SearchField.js +1 -1
  368. package/dist/esm/Select.js +1 -1
  369. package/dist/esm/Stack.js +1 -1
  370. package/dist/esm/Status.js +1 -1
  371. package/dist/esm/Surface.js +1 -1
  372. package/dist/esm/Switch.js +2 -2
  373. package/dist/esm/Tabs.js +1 -1
  374. package/dist/esm/Tag.js +1 -1
  375. package/dist/esm/TagList.js +1 -1
  376. package/dist/esm/TextField.js +1 -1
  377. package/dist/esm/Toast.js +1 -1
  378. package/dist/esm/ToastStack.js +1 -1
  379. package/dist/esm/Tooltip.js +1 -1
  380. package/dist/esm/Typography.js +39 -12
  381. package/dist/esm/Typography.js.map +1 -1
  382. package/dist/esm/icons.generated/Add.js +1 -1
  383. package/dist/esm/icons.generated/AddCircle.js +1 -1
  384. package/dist/esm/icons.generated/Apps.js +1 -1
  385. package/dist/esm/icons.generated/AppsSelected.js +1 -1
  386. package/dist/esm/icons.generated/ArrowBottom.js +1 -1
  387. package/dist/esm/icons.generated/ArrowDown.js +1 -1
  388. package/dist/esm/icons.generated/ArrowLeft.js +1 -1
  389. package/dist/esm/icons.generated/ArrowLowerLeft.js +1 -1
  390. package/dist/esm/icons.generated/ArrowLowerRight.js +1 -1
  391. package/dist/esm/icons.generated/ArrowRight.js +1 -1
  392. package/dist/esm/icons.generated/ArrowTop.js +1 -1
  393. package/dist/esm/icons.generated/ArrowUnsorted.js +1 -1
  394. package/dist/esm/icons.generated/ArrowUp.js +1 -1
  395. package/dist/esm/icons.generated/ArrowUpperLeft.js +1 -1
  396. package/dist/esm/icons.generated/ArrowUpperRight.js +1 -1
  397. package/dist/esm/icons.generated/Bug.js +1 -1
  398. package/dist/esm/icons.generated/Calendar.js +1 -1
  399. package/dist/esm/icons.generated/Call.js +1 -1
  400. package/dist/esm/icons.generated/Chat.js +1 -1
  401. package/dist/esm/icons.generated/Check.js +1 -1
  402. package/dist/esm/icons.generated/CheckCircleFilled.js +1 -1
  403. package/dist/esm/icons.generated/ChevronDown.js +1 -1
  404. package/dist/esm/icons.generated/ChevronLeft.js +1 -1
  405. package/dist/esm/icons.generated/ChevronRight.js +1 -1
  406. package/dist/esm/icons.generated/ChevronUp.js +1 -1
  407. package/dist/esm/icons.generated/Clock.js +1 -1
  408. package/dist/esm/icons.generated/Close.js +1 -1
  409. package/dist/esm/icons.generated/CloseCircleFilled.js +1 -1
  410. package/dist/esm/icons.generated/CollapseLeft.js +1 -1
  411. package/dist/esm/icons.generated/CollapseRight.js +1 -1
  412. package/dist/esm/icons.generated/Copy.js +1 -1
  413. package/dist/esm/icons.generated/Customizations.js +1 -1
  414. package/dist/esm/icons.generated/CustomizationsSelected.js +1 -1
  415. package/dist/esm/icons.generated/DangerDiamond.js +1 -1
  416. package/dist/esm/icons.generated/DangerDiamondFilled.js +1 -1
  417. package/dist/esm/icons.generated/Delete.js +1 -1
  418. package/dist/esm/icons.generated/Deny.js +1 -1
  419. package/dist/esm/icons.generated/Devices.js +1 -1
  420. package/dist/esm/icons.generated/Directory.js +1 -1
  421. package/dist/esm/icons.generated/DirectorySelected.js +1 -1
  422. package/dist/esm/icons.generated/Documentation.js +1 -1
  423. package/dist/esm/icons.generated/Download.js +1 -1
  424. package/dist/esm/icons.generated/DragIndicator.js +1 -1
  425. package/dist/esm/icons.generated/Edit.js +1 -1
  426. package/dist/esm/icons.generated/ExpandLeft.js +1 -1
  427. package/dist/esm/icons.generated/ExpandRight.js +1 -1
  428. package/dist/esm/icons.generated/ExternalLink.js +1 -1
  429. package/dist/esm/icons.generated/Filter.js +1 -1
  430. package/dist/esm/icons.generated/Folder.js +1 -1
  431. package/dist/esm/icons.generated/Globe.js +1 -1
  432. package/dist/esm/icons.generated/Grid.js +1 -1
  433. package/dist/esm/icons.generated/Group.js +1 -1
  434. package/dist/esm/icons.generated/Happy.js +1 -1
  435. package/dist/esm/icons.generated/Hide.js +1 -1
  436. package/dist/esm/icons.generated/Home.js +1 -1
  437. package/dist/esm/icons.generated/HomeSelected.js +1 -1
  438. package/dist/esm/icons.generated/IdentityGovernance.js +1 -1
  439. package/dist/esm/icons.generated/IdentityGovernanceSelected.js +1 -1
  440. package/dist/esm/icons.generated/IdentityGovernanceSelected.js.map +1 -1
  441. package/dist/esm/icons.generated/InformationCircle.js +1 -1
  442. package/dist/esm/icons.generated/InformationCircleFilled.js +1 -1
  443. package/dist/esm/icons.generated/Link.js +1 -1
  444. package/dist/esm/icons.generated/List.js +1 -1
  445. package/dist/esm/icons.generated/Lock.js +1 -1
  446. package/dist/esm/icons.generated/Menu.js +1 -1
  447. package/dist/esm/icons.generated/More.js +1 -1
  448. package/dist/esm/icons.generated/Neutral.js +1 -1
  449. package/dist/esm/icons.generated/Notification.js +1 -1
  450. package/dist/esm/icons.generated/Pause.js +1 -1
  451. package/dist/esm/icons.generated/QuestionCircle.js +1 -1
  452. package/dist/esm/icons.generated/QuestionCircleFilled.js +1 -1
  453. package/dist/esm/icons.generated/Refresh.js +1 -1
  454. package/dist/esm/icons.generated/Reports.js +1 -1
  455. package/dist/esm/icons.generated/ReportsSelected.js +1 -1
  456. package/dist/esm/icons.generated/Reset.js +1 -1
  457. package/dist/esm/icons.generated/Resume.js +1 -1
  458. package/dist/esm/icons.generated/Sad.js +1 -1
  459. package/dist/esm/icons.generated/Same.js +1 -1
  460. package/dist/esm/icons.generated/Search.js +1 -1
  461. package/dist/esm/icons.generated/Security.js +1 -1
  462. package/dist/esm/icons.generated/SecuritySelected.js +1 -1
  463. package/dist/esm/icons.generated/Send.js +1 -1
  464. package/dist/esm/icons.generated/Server.js +1 -1
  465. package/dist/esm/icons.generated/Settings.js +1 -1
  466. package/dist/esm/icons.generated/SettingsSelected.js +1 -1
  467. package/dist/esm/icons.generated/Show.js +1 -1
  468. package/dist/esm/icons.generated/Sparkle.js +1 -1
  469. package/dist/esm/icons.generated/Subtract.js +1 -1
  470. package/dist/esm/icons.generated/Sync.js +1 -1
  471. package/dist/esm/icons.generated/ThumbsDown.js +1 -1
  472. package/dist/esm/icons.generated/ThumbsUp.js +1 -1
  473. package/dist/esm/icons.generated/Unlock.js +1 -1
  474. package/dist/esm/icons.generated/Upload.js +1 -1
  475. package/dist/esm/icons.generated/User.js +1 -1
  476. package/dist/esm/icons.generated/Video.js +1 -1
  477. package/dist/esm/icons.generated/Warning.js +1 -1
  478. package/dist/esm/icons.generated/WarningFilled.js +1 -1
  479. package/dist/esm/icons.generated/Workflows.js +1 -1
  480. package/dist/esm/icons.generated/WorkflowsSelected.js +1 -1
  481. package/dist/esm/index.js +3 -2
  482. package/dist/esm/index.js.map +1 -1
  483. package/dist/esm/labs/AppTile.js +1 -1
  484. package/dist/esm/labs/DataFilters.js +2 -2
  485. package/dist/esm/labs/DataTable.js +1 -1
  486. package/dist/esm/labs/DataTablePagination.js +1 -1
  487. package/dist/esm/labs/DataView/BulkActionsMenu.js +1 -1
  488. package/dist/esm/labs/DataView/CardLayoutContent.js +2 -2
  489. package/dist/esm/labs/DataView/DataCard.js +1 -1
  490. package/dist/esm/labs/DataView/DataTable.js +1 -1
  491. package/dist/esm/labs/DataView/DataView.js +1 -1
  492. package/dist/esm/labs/DataView/DetailPanel.js +1 -1
  493. package/dist/esm/labs/DataView/LayoutSwitcher.js +1 -1
  494. package/dist/esm/labs/DataView/RowActions.js +1 -1
  495. package/dist/esm/labs/DataView/TableLayoutContent.js +1 -1
  496. package/dist/esm/labs/DataView/TableSettings.js +1 -1
  497. package/dist/esm/labs/DatePickers/DateTimeField.js +1 -1
  498. package/dist/esm/labs/DatePickers/DateTimePicker.js +3 -4
  499. package/dist/esm/labs/DatePickers/DateTimePicker.js.map +1 -1
  500. package/dist/esm/labs/OdysseyPickers/ComposablePicker.js +1 -1
  501. package/dist/esm/labs/OdysseyPickers/Picker.js +1 -1
  502. package/dist/esm/labs/OdysseyPickers/PickerVirtualizationListBox.js +1 -1
  503. package/dist/esm/labs/OdysseyPickers/PickerWithOptionAdornment.js +1 -1
  504. package/dist/esm/labs/OdysseyPickers/SearchDropdown.js +1 -1
  505. package/dist/esm/labs/PageTemplate/DocumentationLink.js +1 -1
  506. package/dist/esm/labs/PageTemplate/Layout.js +1 -1
  507. package/dist/esm/labs/PageTemplate/PageTemplate.js +1 -1
  508. package/dist/esm/labs/PaginatedTable.js +1 -1
  509. package/dist/esm/labs/StaticTable.js +1 -1
  510. package/dist/esm/labs/UserProfile.js +1 -1
  511. package/dist/esm/labs/UserProfileMenuButton.js +1 -1
  512. package/dist/esm/logos.generated/Duo.js +1 -1
  513. package/dist/esm/logos.generated/GoogleAuth.js +1 -1
  514. package/dist/esm/logos.generated/OktaVerify.js +1 -1
  515. package/dist/esm/logos.generated/Persona.js +1 -1
  516. package/dist/esm/logos.generated/SymantecVip.js +1 -1
  517. package/dist/esm/logos.generated/Yubikey.js +1 -1
  518. package/dist/esm/properties/ts/odyssey-react-mui.js +4 -0
  519. package/dist/esm/properties/ts/odyssey-react-mui.js.map +1 -1
  520. package/dist/esm/properties/ts/odyssey-react-mui_ht.js +1 -1
  521. package/dist/esm/properties/ts/odyssey-react-mui_ht.js.map +1 -1
  522. package/dist/esm/properties/ts/odyssey-react-mui_ok_PL.js +4 -0
  523. package/dist/esm/properties/ts/odyssey-react-mui_ok_PL.js.map +1 -1
  524. package/dist/esm/properties/ts/odyssey-react-mui_ok_SK.js +4 -0
  525. package/dist/esm/properties/ts/odyssey-react-mui_ok_SK.js.map +1 -1
  526. package/dist/esm/properties/ts/odyssey-react-mui_zh_TW.js +1 -1
  527. package/dist/esm/properties/ts/odyssey-react-mui_zh_TW.js.map +1 -1
  528. package/dist/esm/theme/components/Dialog.js +2 -2
  529. package/dist/esm/theme/components/Dialog.js.map +1 -1
  530. package/dist/esm/theme/components/Drawer.js +5 -1
  531. package/dist/esm/theme/components/Drawer.js.map +1 -1
  532. package/dist/esm/theme/useMediaQuery.js +7 -5
  533. package/dist/esm/theme/useMediaQuery.js.map +1 -1
  534. package/dist/esm/ui-shell/AppSwitcher/AppSwitcher.js +1 -1
  535. package/dist/esm/ui-shell/InnerAppContainer.js +1 -1
  536. package/dist/esm/ui-shell/NarrowUiShellContent.js +1 -1
  537. package/dist/esm/ui-shell/SideNav/NavAccordion.js +1 -1
  538. package/dist/esm/ui-shell/SideNav/SideNav.js +1 -1
  539. package/dist/esm/ui-shell/SideNav/SideNavFooterContent.js +1 -1
  540. package/dist/esm/ui-shell/SideNav/SideNavHeader.js +1 -1
  541. package/dist/esm/ui-shell/SideNav/SideNavItemContent.js +2 -2
  542. package/dist/esm/ui-shell/SideNav/SideNavItemLinkContent.js +1 -1
  543. package/dist/esm/ui-shell/SideNav/SideNavSortableList.js +1 -1
  544. package/dist/esm/ui-shell/SideNav/SideNavToggleButton.js +2 -2
  545. package/dist/esm/ui-shell/SkipToContent.js +1 -1
  546. package/dist/esm/ui-shell/TopNav/HamburgerMenuIcon.js +1 -1
  547. package/dist/esm/ui-shell/TopNav/TopNav.js +1 -1
  548. package/dist/esm/ui-shell/TopNav/TopNavLinksList.js +1 -1
  549. package/dist/esm/ui-shell/TopNav/TopNavListItem.js +1 -1
  550. package/dist/esm/ui-shell/UiShell.js +1 -1
  551. package/dist/esm/ui-shell/UiShellLogo.js +1 -1
  552. package/dist/esm/ui-shell/WideUiShellContent.js +1 -1
  553. package/dist/esm/useStableCallback.js +16 -0
  554. package/dist/esm/useStableCallback.js.map +1 -0
  555. package/dist/esm/web-component/odysseyWebComponentVersion.generated.js +1 -1
  556. package/dist/esm/web-component/odysseyWebComponentVersion.generated.js.map +1 -1
  557. package/dist/tsconfig.production.tsbuildinfo +1 -1
  558. package/dist/types/Banner.d.ts.map +1 -1
  559. package/dist/types/Callout.d.ts.map +1 -1
  560. package/dist/types/Charts/ChartError.d.ts +23 -0
  561. package/dist/types/Charts/ChartError.d.ts.map +1 -0
  562. package/dist/types/Charts/ChartFrame.d.ts +54 -0
  563. package/dist/types/Charts/ChartFrame.d.ts.map +1 -0
  564. package/dist/types/Charts/ChartPopoverContent.d.ts +97 -0
  565. package/dist/types/Charts/ChartPopoverContent.d.ts.map +1 -0
  566. package/dist/types/Charts/LineChart.d.ts +26 -0
  567. package/dist/types/Charts/LineChart.d.ts.map +1 -0
  568. package/dist/types/Charts/chartTokens.d.ts +362 -0
  569. package/dist/types/Charts/chartTokens.d.ts.map +1 -0
  570. package/dist/types/Charts/chartTypes.d.ts +142 -0
  571. package/dist/types/Charts/chartTypes.d.ts.map +1 -0
  572. package/dist/types/Charts/formatChartValue.d.ts +93 -0
  573. package/dist/types/Charts/formatChartValue.d.ts.map +1 -0
  574. package/dist/types/Charts/getChartSeriesPointData.d.ts +49 -0
  575. package/dist/types/Charts/getChartSeriesPointData.d.ts.map +1 -0
  576. package/dist/types/Charts/hasDuplicateSeries.d.ts +24 -0
  577. package/dist/types/Charts/hasDuplicateSeries.d.ts.map +1 -0
  578. package/dist/types/Charts/index.d.ts +15 -0
  579. package/dist/types/Charts/index.d.ts.map +1 -0
  580. package/dist/types/Charts/resolveChartLocale.d.ts +28 -0
  581. package/dist/types/Charts/resolveChartLocale.d.ts.map +1 -0
  582. package/dist/types/Charts/useChartValueFormatter.d.ts +34 -0
  583. package/dist/types/Charts/useChartValueFormatter.d.ts.map +1 -0
  584. package/dist/types/Charts/useStableValue.d.ts +29 -0
  585. package/dist/types/Charts/useStableValue.d.ts.map +1 -0
  586. package/dist/types/DatePickers/DateFieldLocalizationProvider.d.ts +1 -1
  587. package/dist/types/DatePickers/DateFieldLocalizationProvider.d.ts.map +1 -1
  588. package/dist/types/DatePickers/DatePicker.d.ts.map +1 -1
  589. package/dist/types/DatePickers/useOdysseyDateFields.d.ts +27 -15
  590. package/dist/types/DatePickers/useOdysseyDateFields.d.ts.map +1 -1
  591. package/dist/types/Drawer.d.ts +4 -0
  592. package/dist/types/Drawer.d.ts.map +1 -1
  593. package/dist/types/OdysseyThemeProviderPropsContext.d.ts +1 -1
  594. package/dist/types/OdysseyThemeProviderPropsContext.d.ts.map +1 -1
  595. package/dist/types/Typography.d.ts +26 -12
  596. package/dist/types/Typography.d.ts.map +1 -1
  597. package/dist/types/i18n.generated/i18n.d.ts +8 -0
  598. package/dist/types/i18n.generated/i18n.d.ts.map +1 -1
  599. package/dist/types/i18n.generated/i18n.resources.d.ts +14 -2
  600. package/dist/types/i18n.generated/i18n.resources.d.ts.map +1 -1
  601. package/dist/types/icons.generated/IdentityGovernanceSelected.d.ts +1 -1
  602. package/dist/types/icons.generated/IdentityGovernanceSelected.d.ts.map +1 -1
  603. package/dist/types/index.d.ts +3 -2
  604. package/dist/types/index.d.ts.map +1 -1
  605. package/dist/types/labs/DatePickers/DateTimePicker.d.ts.map +1 -1
  606. package/dist/types/properties/ts/odyssey-react-mui.d.ts +4 -0
  607. package/dist/types/properties/ts/odyssey-react-mui.d.ts.map +1 -1
  608. package/dist/types/properties/ts/odyssey-react-mui_ht.d.ts +1 -1
  609. package/dist/types/properties/ts/odyssey-react-mui_ok_PL.d.ts +4 -0
  610. package/dist/types/properties/ts/odyssey-react-mui_ok_PL.d.ts.map +1 -1
  611. package/dist/types/properties/ts/odyssey-react-mui_ok_SK.d.ts +4 -0
  612. package/dist/types/properties/ts/odyssey-react-mui_ok_SK.d.ts.map +1 -1
  613. package/dist/types/properties/ts/odyssey-react-mui_zh_TW.d.ts +1 -1
  614. package/dist/types/properties/ts/odyssey-react-mui_zh_TW.d.ts.map +1 -1
  615. package/dist/types/theme/components/Drawer.d.ts.map +1 -1
  616. package/dist/types/theme/useMediaQuery.d.ts +29 -15
  617. package/dist/types/theme/useMediaQuery.d.ts.map +1 -1
  618. package/dist/types/useStableCallback.d.ts +45 -0
  619. package/dist/types/useStableCallback.d.ts.map +1 -0
  620. package/dist/types/web-component/odysseyWebComponentVersion.generated.d.ts +1 -1
  621. package/package.json +19 -7
@@ -0,0 +1,108 @@
1
+ import _Skeleton from "@mui/material/Skeleton";
2
+ /*!
3
+ * Copyright (c) 2026-present, Okta, Inc. and/or its affiliates. All rights reserved.
4
+ * The Okta software accompanied by this notice is provided pursuant to the Apache License, Version 2.0 (the "License.")
5
+ *
6
+ * You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0.
7
+ * Unless required by applicable law or agreed to in writing, software
8
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
9
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
10
+ *
11
+ * See the License for the specific language governing permissions and limitations under the License.
12
+ */
13
+ import { skeletonClasses } from "@mui/material/Skeleton";
14
+ import { memo, useId } from "react";
15
+ import { createOdysseyStyledComponent } from "../createOdysseyStyledComponent.js";
16
+ import { useTranslation } from "../i18n.generated/i18n.js";
17
+ import { Heading4, Paragraph } from "../Typography.js";
18
+ import { ChartError } from "./ChartError.js";
19
+ import { useChartTokens } from "./chartTokens.js";
20
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
21
+ const Frame = createOdysseyStyledComponent({
22
+ tag: "section",
23
+ shouldForwardProp: prop => prop !== "minHeight"
24
+ })(({
25
+ odysseyDesignTokens,
26
+ minHeight
27
+ }) => ({
28
+ display: "flex",
29
+ flexDirection: "column",
30
+ gap: odysseyDesignTokens.Spacing4,
31
+ height: "100%",
32
+ minHeight
33
+ }));
34
+ const Header = createOdysseyStyledComponent({
35
+ tag: "header"
36
+ })(({
37
+ odysseyDesignTokens
38
+ }) => ({
39
+ display: "flex",
40
+ flexDirection: "column",
41
+ flexShrink: 0,
42
+ gap: odysseyDesignTokens.Spacing2,
43
+ "& > h4, & > p": {
44
+ marginBlock: 0
45
+ }
46
+ }));
47
+ const Body = createOdysseyStyledComponent({
48
+ tag: "div"
49
+ })({
50
+ display: "grid",
51
+ flex: 1,
52
+ gridTemplateRows: "1fr",
53
+ minHeight: 0
54
+ });
55
+ const LoadingSkeleton = createOdysseyStyledComponent({
56
+ tag: "div"
57
+ })({
58
+ height: "100%",
59
+ width: "100%",
60
+ [`& .${skeletonClasses.root}`]: {
61
+ height: "100%",
62
+ width: "100%"
63
+ }
64
+ });
65
+ const ChartFrame = ({
66
+ children,
67
+ hasError,
68
+ isLoading,
69
+ onRetry,
70
+ subtitle,
71
+ title
72
+ }) => {
73
+ const {
74
+ minHeight
75
+ } = useChartTokens();
76
+ const {
77
+ t
78
+ } = useTranslation();
79
+ const headingId = useId();
80
+ const hasHeader = Boolean(title);
81
+ const subtitleText = hasHeader ? subtitle : undefined;
82
+ return _jsxs(Frame, {
83
+ "aria-labelledby": hasHeader ? headingId : undefined,
84
+ minHeight: minHeight,
85
+ children: [hasHeader && _jsxs(Header, {
86
+ children: [_jsx(Heading4, {
87
+ id: headingId,
88
+ children: title
89
+ }), subtitleText && _jsx(Paragraph, {
90
+ children: subtitleText
91
+ })]
92
+ }), _jsx(Body, {
93
+ children: isLoading ? _jsx(LoadingSkeleton, {
94
+ "aria-label": t("chart.loading.arialabel"),
95
+ role: "status",
96
+ children: _jsx(_Skeleton, {
97
+ variant: "rounded"
98
+ })
99
+ }) : hasError ? _jsx(ChartError, {
100
+ onRetry: onRetry
101
+ }) : children
102
+ })]
103
+ });
104
+ };
105
+ const MemoizedChartFrame = memo(ChartFrame);
106
+ MemoizedChartFrame.displayName = "ChartFrame::pkg=odyssey&odysseyV=1.69.0";
107
+ export { MemoizedChartFrame as ChartFrame };
108
+ //# sourceMappingURL=ChartFrame.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ChartFrame.js","names":["skeletonClasses","memo","useId","createOdysseyStyledComponent","useTranslation","Heading4","Paragraph","ChartError","useChartTokens","jsx","_jsx","jsxs","_jsxs","Frame","tag","shouldForwardProp","prop","odysseyDesignTokens","minHeight","display","flexDirection","gap","Spacing4","height","Header","flexShrink","Spacing2","marginBlock","Body","flex","gridTemplateRows","LoadingSkeleton","width","root","ChartFrame","children","hasError","isLoading","onRetry","subtitle","title","t","headingId","hasHeader","Boolean","subtitleText","undefined","id","role","_Skeleton","variant","MemoizedChartFrame","displayName"],"sources":["../../../src/Charts/ChartFrame.tsx"],"sourcesContent":["/*!\n * Copyright (c) 2026-present, Okta, Inc. and/or its affiliates. All rights reserved.\n * The Okta software accompanied by this notice is provided pursuant to the Apache License, Version 2.0 (the \"License.\")\n *\n * You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0.\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS, WITHOUT\n * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n *\n * See the License for the specific language governing permissions and limitations under the License.\n */\n\nimport { Skeleton as MuiSkeleton } from \"@mui/material\";\nimport { skeletonClasses } from \"@mui/material/Skeleton\";\nimport { memo, type ReactElement, useId } from \"react\";\n\nimport { createOdysseyStyledComponent } from \"../createOdysseyStyledComponent.js\";\nimport { useTranslation } from \"../i18n.generated/i18n.js\";\nimport { Heading4, Paragraph } from \"../Typography.js\";\nimport { ChartError } from \"./ChartError.js\";\nimport { useChartTokens } from \"./chartTokens.js\";\n\n/** The props for a chart frame. */\nexport type ChartFrameProps = {\n /**\n * The chart. The frame shows this element when there is no error state and\n * no loading state.\n */\n children: ReactElement;\n /**\n * If `true`, the frame shows an error state in place of the chart body.\n * `isLoading` takes precedence over this property.\n */\n hasError?: boolean;\n /**\n * If `true`, the frame shows a loading skeleton in place of the chart\n * body. `isLoading` takes precedence over `hasError`.\n */\n isLoading?: boolean;\n /**\n * The frame calls this function when a user clicks the retry button in\n * the error state. The error state shows no retry button when the caller\n * omits this property.\n *\n * @see {@link CartesianChartProps.onRetry} for the retry flow that a\n * consumer follows. That property is the public one, so it owns the\n * description.\n */\n onRetry?: () => void;\n /**\n * The subtitle text, shown below the title. The frame ignores this text\n * when `title` has no value, because a subtitle explains a title and means\n * nothing alone.\n */\n subtitle?: string;\n /**\n * The title text, shown as a real heading above the chart body. The heading\n * survives every state: loaded, loading, and error.\n */\n title?: string;\n};\n\n// This frame supplies only a height floor. A consumer that sets a real height\n// on the parent element still controls the final height, because this value\n// is a minimum and not a fixed size.\nconst Frame = createOdysseyStyledComponent({\n tag: \"section\",\n shouldForwardProp: (prop) => prop !== \"minHeight\",\n})<{ minHeight: string }>(({ odysseyDesignTokens, minHeight }) => ({\n display: \"flex\",\n flexDirection: \"column\",\n gap: odysseyDesignTokens.Spacing4,\n height: \"100%\",\n minHeight,\n}));\n\n// The header must not shrink, so the body takes every pixel of height that\n// the header does not need.\n//\n// `gap` needs a flex or grid container to have any effect, and a `header` is\n// a block element by default. `Heading4` renders an `h4` and `Paragraph`\n// renders a `p`, and each carries its own block margins, which would add to\n// the gap, so the margin reset names both elements.\nconst Header = createOdysseyStyledComponent({ tag: \"header\" })(\n ({ odysseyDesignTokens }) => ({\n display: \"flex\",\n flexDirection: \"column\",\n flexShrink: 0,\n gap: odysseyDesignTokens.Spacing2,\n\n \"& > h4, & > p\": {\n marginBlock: 0,\n },\n }),\n);\n\n// A flex item defaults to a minimum height equal to its content, so this item\n// would otherwise refuse to shrink below the height of the chart it holds.\n// The zero minimum height lets the body take the flex space that `flex: 1`\n// assigns to it.\n//\n// The body is also a single-row grid. The charting library draws a bare div\n// with no class name and no height of its own. A block-level child of a flex\n// column collapses to the height of its own content, which is zero before\n// the chart draws, and the library then picks a fixed height of its own. A\n// grid child stretches to fill its row by default, so the bare div fills the\n// body without this file naming a class or reaching into a child with a\n// selector.\nconst Body = createOdysseyStyledComponent({ tag: \"div\" })({\n display: \"grid\",\n flex: 1,\n gridTemplateRows: \"1fr\",\n minHeight: 0,\n});\n\n// The real chart also fills the height of its parent rather than setting a\n// height of its own, so this fills the same `Body` grid cell the same way.\nconst LoadingSkeleton = createOdysseyStyledComponent({ tag: \"div\" })({\n height: \"100%\",\n width: \"100%\",\n [`& .${skeletonClasses.root}`]: {\n height: \"100%\",\n width: \"100%\",\n },\n});\n\n/**\n * A layout wrapper for a chart. The frame holds two parts: a header that\n * shows the title and the subtitle as real HTML, and a body below it. The\n * body shows exactly one of three states: a loading skeleton, an error\n * state, or the chart itself. The header stays on screen in all three\n * states.\n */\nconst ChartFrame = ({\n children,\n hasError,\n isLoading,\n onRetry,\n subtitle,\n title,\n}: ChartFrameProps) => {\n const { minHeight } = useChartTokens();\n const { t } = useTranslation();\n const headingId = useId();\n\n const hasHeader = Boolean(title);\n const subtitleText = hasHeader ? subtitle : undefined;\n\n return (\n <Frame\n aria-labelledby={hasHeader ? headingId : undefined}\n minHeight={minHeight}\n >\n {hasHeader && (\n <Header>\n <Heading4 id={headingId}>{title}</Heading4>\n {subtitleText && <Paragraph>{subtitleText}</Paragraph>}\n </Header>\n )}\n <Body>\n {/*\n * A retry sets isLoading while the failed data is still on record.\n * Loading must win here, or the user who just clicked retry would\n * still see the error they were trying to clear, instead of seeing\n * that their request is in flight.\n */}\n {isLoading ? (\n <LoadingSkeleton\n aria-label={t(\"chart.loading.arialabel\")}\n role=\"status\"\n >\n <MuiSkeleton variant=\"rounded\" />\n </LoadingSkeleton>\n ) : hasError ? (\n <ChartError onRetry={onRetry} />\n ) : (\n children\n )}\n </Body>\n </Frame>\n );\n};\n\nconst MemoizedChartFrame = memo(ChartFrame);\nMemoizedChartFrame.displayName = \"ChartFrame\";\n\nexport { Memoiz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C;QAAS,CAAE;MAAC,CAClB,CAAC,GAChBd,QAAQ,GACV1B,IAAA,CAACH,UAAU;QAAC+B,OAAO,EAAEA;MAAQ,CAAE,CAAC,GAEhCH;IACD,CACG,CAAC;EAAA,CACF,CAAC;AAEZ,CAAC;AAED,MAAMgB,kBAAkB,GAAGlD,IAAI,CAACiC,UAAU,CAAC;AAC3CiB,kBAAkB,CAACC,WAAW,4CAAe;AAE7C,SAASD,kBAAkB,IAAIjB,UAAU","ignoreList":[]}
@@ -0,0 +1,49 @@
1
+ import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
2
+ /*!
3
+ * Copyright (c) 2026-present, Okta, Inc. and/or its affiliates. All rights reserved.
4
+ * The Okta software accompanied by this notice is provided pursuant to the Apache License, Version 2.0 (the "License.")
5
+ *
6
+ * You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0.
7
+ * Unless required by applicable law or agreed to in writing, software
8
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
9
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
10
+ *
11
+ * See the License for the specific language governing permissions and limitations under the License.
12
+ */export const ChartPopoverContent = ({
13
+ categoryPlaceholder,
14
+ isShared,
15
+ odysseyDesignTokens,
16
+ seriesLabelPlaceholder,
17
+ valuePlaceholder
18
+ }) => {
19
+ const row = _jsxs("div", {
20
+ style: {
21
+ color: odysseyDesignTokens.TypographyColorBody,
22
+ fontSize: odysseyDesignTokens.TypographySizeBody,
23
+ marginBlockStart: odysseyDesignTokens.Spacing1
24
+ },
25
+ children: [seriesLabelPlaceholder, _jsx("span", {
26
+ className: "notranslate",
27
+ children: ": "
28
+ }), _jsx("span", {
29
+ style: {
30
+ fontWeight: odysseyDesignTokens.TypographyWeightBodyBold
31
+ },
32
+ children: valuePlaceholder
33
+ })]
34
+ });
35
+ return _jsxs("div", {
36
+ children: [_jsx("div", {
37
+ style: {
38
+ color: odysseyDesignTokens.TypographyColorBody,
39
+ fontSize: odysseyDesignTokens.TypographySizeBody,
40
+ fontWeight: odysseyDesignTokens.TypographyWeightBodyBold
41
+ },
42
+ children: categoryPlaceholder
43
+ }), isShared ? _jsxs(_Fragment, {
44
+ children: ["{#each points}", row, "{/each}"]
45
+ }) : row]
46
+ });
47
+ };
48
+ ChartPopoverContent.displayName = "ChartPopoverContent::pkg=odyssey&odysseyV=1.69.0";
49
+ //# sourceMappingURL=ChartPopoverContent.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ChartPopoverContent.js","names":["ChartPopoverContent","categoryPlaceholder","isShared","odysseyDesignTokens","seriesLabelPlaceholder","valuePlaceholder","row","_jsxs","style","color","TypographyColorBody","fontSize","TypographySizeBody","marginBlockStart","Spacing1","children","_jsx","className","fontWeight","TypographyWeightBodyBold","_Fragment","displayName"],"sources":["../../../src/Charts/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 { DesignTokens } from \"../OdysseyDesignTokensContext.js\";\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 * 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 Odyssey design tokens. The caller passes the tokens as a prop because\n * this component cannot read them from the context. See the note on\n * {@link ChartPopoverContent}.\n */\n odysseyDesignTokens: DesignTokens;\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 the contents of a chart popover, styled with the Odyssey design\n * tokens. The component renders a category header, then one series row. If\n * `isShared` is `true`, that row repeats once for each point under the\n * pointer. If `isShared` is `false`, the component shows exactly one row.\n * This lets one component serve both a per-point popover and a shared\n * popover.\n *\n * The caller passes this component as the JSX children of the `<Tooltip>`\n * component from `@highcharts/react`. `<Tooltip>` turns those children into\n * an HTML string. It never mounts them through React.\n *\n * That conversion to HTML is why the restrictions below apply. Testing found\n * each restriction. No restriction was guessed from how Highcharts should\n * work.\n * - Do not call hooks in this component.\n * - Do not wrap this component in `styled()`. Do not wrap it in\n * `createOdysseyStyledComponent` either. This is why the tokens arrive as\n * a prop, and the styles stay inline.\n * - Do not wrap this component in `React.memo`.\n * - Write the `isShared` each-block without parentheses. Write\n * `{#each points}`, not `{#each(points)}`. The parenthesized form turns\n * `points` into the text `[object Object]` for each point, with no error\n * message. It also leaves the `#each` and `/each` markers as plain text\n * instead of running the loop.\n * - Keep the each-block markers and the row as separate JSX elements, not as\n * text inside one string. The serializer escapes HTML tag characters found\n * inside a plain string child, before Highcharts reads the format string.\n * So the row itself must stay real JSX elements, such as `<div>`, and not\n * a string that contains tag text. The `{#each points}` and `{/each}`\n * markers are separate string expressions, placed next to the row element\n * as siblings, not combined into the same string as the row's markup.\n *\n * If the code breaks any of these rules, Highcharts renders an empty box\n * instead of the popover. Do not use this pattern outside this file.\n *\n * Write every inline style value as a string that includes its unit. The\n * serializer does not add units to a plain number. Instead, it drops the\n * style rule, with no error message.\n *\n * Highcharts escapes the values it inserts into the placeholders. This\n * 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 isShared,\n odysseyDesignTokens,\n seriesLabelPlaceholder,\n valuePlaceholder,\n}: ChartPopoverContentProps) => {\n const row = (\n <div\n style={{\n color: odysseyDesignTokens.TypographyColorBody,\n fontSize: odysseyDesignTokens.TypographySizeBody,\n marginBlockStart: odysseyDesignTokens.Spacing1,\n }}\n >\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: odysseyDesignTokens.TypographyWeightBodyBold }}\n >\n {valuePlaceholder}\n </span>\n </div>\n );\n\n return (\n <div>\n <div\n style={{\n color: odysseyDesignTokens.TypographyColorBody,\n fontSize: odysseyDesignTokens.TypographySizeBody,\n fontWeight: odysseyDesignTokens.TypographyWeightBodyBold,\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,GAqFA,OAAO,MAAMA,mBAAmB,GAAGA,CAAC;EAClCC,mBAAmB;EACnBC,QAAQ;EACRC,mBAAmB;EACnBC,sBAAsB;EACtBC;AACwB,CAAC,KAAK;EAC9B,MAAMC,GAAG,GACPC,KAAA;IACEC,KAAK,EAAE;MACLC,KAAK,EAAEN,mBAAmB,CAACO,mBAAmB;MAC9CC,QAAQ,EAAER,mBAAmB,CAACS,kBAAkB;MAChDC,gBAAgB,EAAEV,mBAAmB,CAACW;IACxC,CAAE;IAAAC,QAAA,GAEDX,sBAAsB,EAMvBY,IAAA;MAAMC,SAAS,EAAC,aAAa;MAAAF,QAAA,EAAE;IAAI,CAAO,CAAC,EAC3CC,IAAA;MACER,KAAK,EAAE;QAAEU,UAAU,EAAEf,mBAAmB,CAACgB;MAAyB,CAAE;MAAAJ,QAAA,EAEnEV;IAAgB,CACb,CAAC;EAAA,CACJ,CACN;EAED,OACEE,KAAA;IAAAQ,QAAA,GACEC,IAAA;MACER,KAAK,EAAE;QACLC,KAAK,EAAEN,mBAAmB,CAACO,mBAAmB;QAC9CC,QAAQ,EAAER,mBAAmB,CAACS,kBAAkB;QAChDM,UAAU,EAAEf,mBAAmB,CAACgB;MAClC,CAAE;MAAAJ,QAAA,EAEDd;IAAmB,CACjB,CAAC,EACLC,QAAQ,GACPK,KAAA,CAAAa,SAAA;MAAAL,QAAA,GACG,gBAAgB,EAChBT,GAAG,EACH,SAAS;IAAA,CACV,CAAC,GAEHA,GACD;EAAA,CACE,CAAC;AAEV,CAAC;AAEDN,mBAAmB,CAACqB,WAAW,qDAAwB","ignoreList":[]}
@@ -0,0 +1,263 @@
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 { useMediaQuery } from "../theme/useMediaQuery.js";
18
+ import { useStableCallback } from "../useStableCallback.js";
19
+ import { ChartFrame } from "./ChartFrame.js";
20
+ import { ChartPopoverContent } from "./ChartPopoverContent.js";
21
+ import { useChartTokens } from "./chartTokens.js";
22
+ import { getChartSeriesPointData } from "./getChartSeriesPointData.js";
23
+ import { hasDuplicateSeries } from "./hasDuplicateSeries.js";
24
+ import { useChartValueFormatter } from "./useChartValueFormatter.js";
25
+ import { useStableValue } from "./useStableValue.js";
26
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
27
+ const REDUCED_MOTION_CONDITION = "(prefers-reduced-motion: reduce)";
28
+ const LineChartContent = ({
29
+ ariaDescription,
30
+ categories,
31
+ onPointClick,
32
+ pointPopoverValueFormat,
33
+ series,
34
+ xAxisLabel,
35
+ yAxisFormat = "compact",
36
+ yAxisLabel
37
+ }) => {
38
+ const {
39
+ animationDuration,
40
+ axisLabelStyle,
41
+ axisValueStyle,
42
+ bodyFontFamily,
43
+ borderColor,
44
+ borderWidth,
45
+ chartBackgroundColor,
46
+ crosshairColor,
47
+ crosshairWidth,
48
+ edgeSpacing,
49
+ focusRingColor,
50
+ focusRingOffset,
51
+ focusRingRadius,
52
+ focusRingWidth,
53
+ legendItemHiddenStyle,
54
+ legendItemHoverStyle,
55
+ legendItemSpacing,
56
+ legendItemStyle,
57
+ legendLineSymbolHeight,
58
+ legendLineSymbolWidth,
59
+ legendSpacing,
60
+ legendSymbolSpacing,
61
+ lineHoverStrokeWidthPlus,
62
+ lineMarkerHoverHaloOpacity,
63
+ lineMarkerHoverHaloRadius,
64
+ lineMarkerHoverRadius,
65
+ lineMarkerRadius,
66
+ lineStrokeWidth,
67
+ odysseyDesignTokens,
68
+ popoverBackgroundColor,
69
+ popoverRadius,
70
+ popoverSpacing,
71
+ popoverStyle,
72
+ seriesColors,
73
+ topEdgeSpacing,
74
+ xAxisLabelSpacing,
75
+ yAxisLabelSpacing
76
+ } = useChartTokens();
77
+ const prefersReducedMotion = useMediaQuery(REDUCED_MOTION_CONDITION);
78
+ const formatValue = useChartValueFormatter();
79
+ if (hasDuplicateSeries({
80
+ series
81
+ })) {
82
+ throw new Error("This chart has two or more series with the same name.");
83
+ }
84
+ const animation = prefersReducedMotion ? false : {
85
+ duration: animationDuration
86
+ };
87
+ const seriesList = useMemo(() => series.map(chartSeries => ({
88
+ chartSeries,
89
+ pointData: getChartSeriesPointData({
90
+ categories,
91
+ chartSeries,
92
+ formatValue,
93
+ onPointClick,
94
+ pointPopoverValueFormat
95
+ })
96
+ })), [categories, formatValue, onPointClick, pointPopoverValueFormat, series]);
97
+ const hasLegend = useMemo(() => series.length > 1, [series.length]);
98
+ const options = {
99
+ chart: {
100
+ animation,
101
+ backgroundColor: chartBackgroundColor,
102
+ spacingBottom: edgeSpacing,
103
+ spacingLeft: edgeSpacing,
104
+ spacingRight: edgeSpacing,
105
+ spacingTop: topEdgeSpacing,
106
+ style: {
107
+ fontFamily: bodyFontFamily
108
+ }
109
+ },
110
+ colors: seriesColors,
111
+ subtitle: {
112
+ text: undefined
113
+ },
114
+ title: {
115
+ text: undefined
116
+ }
117
+ };
118
+ return _jsxs(Chart, {
119
+ options: options,
120
+ type: "line",
121
+ children: [_jsx(Accessibility, {
122
+ description: ariaDescription,
123
+ enabled: true,
124
+ keyboardNavigation: {
125
+ focusBorder: {
126
+ margin: focusRingOffset,
127
+ style: {
128
+ borderRadius: focusRingRadius,
129
+ color: focusRingColor,
130
+ lineWidth: focusRingWidth
131
+ }
132
+ }
133
+ },
134
+ landmarkVerbosity: "disabled"
135
+ }), _jsx(XAxis, {
136
+ categories: categories,
137
+ crosshair: {
138
+ color: crosshairColor,
139
+ width: crosshairWidth
140
+ },
141
+ gridLineColor: borderColor,
142
+ gridLineWidth: 0,
143
+ labels: {
144
+ style: axisValueStyle
145
+ },
146
+ lineColor: borderColor,
147
+ lineWidth: 0,
148
+ tickColor: borderColor,
149
+ tickLength: 0,
150
+ title: {
151
+ align: "middle",
152
+ margin: xAxisLabelSpacing,
153
+ style: axisLabelStyle,
154
+ text: xAxisLabel
155
+ }
156
+ }), _jsx(YAxis, {
157
+ gridLineColor: borderColor,
158
+ gridLineWidth: borderWidth,
159
+ labels: {
160
+ formatter: context => formatValue({
161
+ format: yAxisFormat,
162
+ value: Number(context.value)
163
+ }),
164
+ style: axisValueStyle
165
+ },
166
+ lineColor: "transparent",
167
+ tickColor: "transparent",
168
+ title: {
169
+ align: "middle",
170
+ margin: yAxisLabelSpacing,
171
+ style: axisLabelStyle,
172
+ text: yAxisLabel
173
+ }
174
+ }), _jsx(Legend, {
175
+ borderWidth: 0,
176
+ enabled: hasLegend,
177
+ itemDistance: legendItemSpacing,
178
+ itemHiddenStyle: legendItemHiddenStyle,
179
+ itemHoverStyle: legendItemHoverStyle,
180
+ itemStyle: legendItemStyle,
181
+ margin: legendSpacing,
182
+ padding: 0,
183
+ symbolHeight: legendLineSymbolHeight,
184
+ symbolPadding: legendSymbolSpacing,
185
+ symbolWidth: legendLineSymbolWidth
186
+ }), _jsx(Popover, {
187
+ backgroundColor: popoverBackgroundColor,
188
+ borderColor: borderColor,
189
+ borderRadius: popoverRadius,
190
+ borderWidth: borderWidth,
191
+ padding: popoverSpacing,
192
+ shadow: false,
193
+ shared: true,
194
+ style: popoverStyle,
195
+ children: _jsx(ChartPopoverContent, {
196
+ categoryPlaceholder: "{point.key}",
197
+ isShared: true,
198
+ odysseyDesignTokens: odysseyDesignTokens,
199
+ seriesLabelPlaceholder: "{series.name}",
200
+ valuePlaceholder: "{point.custom.formattedValue}"
201
+ })
202
+ }), _jsx(PlotOptions, {
203
+ line: {
204
+ dataLabels: {
205
+ enabled: false
206
+ },
207
+ lineWidth: lineStrokeWidth,
208
+ marker: {
209
+ lineWidth: 0,
210
+ radius: lineMarkerRadius,
211
+ states: {
212
+ hover: {
213
+ lineWidthPlus: 0,
214
+ radius: lineMarkerHoverRadius
215
+ }
216
+ }
217
+ },
218
+ states: {
219
+ hover: {
220
+ halo: {
221
+ opacity: lineMarkerHoverHaloOpacity,
222
+ size: lineMarkerHoverHaloRadius
223
+ },
224
+ lineWidthPlus: lineHoverStrokeWidthPlus
225
+ }
226
+ }
227
+ },
228
+ series: {
229
+ animation
230
+ }
231
+ }), _jsx(Credits, {
232
+ enabled: false
233
+ }), seriesList.map(({
234
+ chartSeries,
235
+ pointData
236
+ }) => _jsx(LineSeries, {
237
+ data: pointData,
238
+ name: chartSeries.name
239
+ }, chartSeries.name))]
240
+ });
241
+ };
242
+ const MemoizedLineChartContent = memo(LineChartContent);
243
+ const LineChart = props => {
244
+ const stableOnPointClick = useStableCallback(props.onPointClick);
245
+ const stableProps = useStableValue({
246
+ ...props,
247
+ onPointClick: props.onPointClick ? stableOnPointClick : undefined
248
+ });
249
+ return _jsx(ChartFrame, {
250
+ hasError: stableProps.hasError,
251
+ isLoading: stableProps.isLoading,
252
+ onRetry: stableProps.onRetry,
253
+ subtitle: stableProps.subtitle,
254
+ title: stableProps.title,
255
+ children: _jsx(MemoizedLineChartContent, {
256
+ ...stableProps
257
+ })
258
+ });
259
+ };
260
+ const MemoizedLineChart = memo(LineChart);
261
+ MemoizedLineChart.displayName = "LineChart::pkg=odyssey&odysseyV=1.69.0";
262
+ export { MemoizedLineChart as LineChart };
263
+ //# 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","useMediaQuery","useStableCallback","ChartFrame","ChartPopoverContent","useChartTokens","getChartSeriesPointData","hasDuplicateSeries","useChartValueFormatter","useStableValue","jsx","_jsx","jsxs","_jsxs","REDUCED_MOTION_CONDITION","LineChartContent","ariaDescription","categories","onPointClick","pointPopoverValueFormat","series","xAxisLabel","yAxisFormat","yAxisLabel","animationDuration","axisLabelStyle","axisValueStyle","bodyFontFamily","borderColor","borderWidth","chartBackgroundColor","crosshairColor","crosshairWidth","edgeSpacing","focusRingColor","focusRingOffset","focusRingRadius","focusRingWidth","legendItemHiddenStyle","legendItemHoverStyle","legendItemSpacing","legendItemStyle","legendLineSymbolHeight","legendLineSymbolWidth","legendSpacing","legendSymbolSpacing","lineHoverStrokeWidthPlus","lineMarkerHoverHaloOpacity","lineMarkerHoverHaloRadius","lineMarkerHoverRadius","lineMarkerRadius","lineStrokeWidth","odysseyDesignTokens","popoverBackgroundColor","popoverRadius","popoverSpacing","popoverStyle","seriesColors","topEdgeSpacing","xAxisLabelSpacing","yAxisLabelSpacing","prefersReducedMotion","formatValue","Error","animation","duration","seriesList","map","chartSeries","pointData","hasLegend","length","options","chart","backgroundColor","spacingBottom","spacingLeft","spacingRight","spacingTop","style","fontFamily","colors","subtitle","text","undefined","title","type","children","description","enabled","keyboardNavigation","focusBorder","margin","borderRadius","color","lineWidth","landmarkVerbosity","crosshair","width","gridLineColor","gridLineWidth","labels","lineColor","tickColor","tickLength","align","formatter","context","format","value","Number","itemDistance","itemHiddenStyle","itemHoverStyle","itemStyle","padding","symbolHeight","symbolPadding","symbolWidth","shadow","shared","categoryPlaceholder","isShared","seriesLabelPlaceholder","valuePlaceholder","line","dataLabels","marker","radius","states","hover","lineWidthPlus","halo","opacity","size","data","name","MemoizedLineChartContent","LineChart","props","stableOnPointClick","stableProps","hasError","isLoading","onRetry","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 \"./chartTypes.js\";\nimport type { ChartValueFormat } from \"./formatChartValue.js\";\n\nimport { useMediaQuery } from \"../theme/useMediaQuery.js\";\nimport { useStableCallback } from \"../useStableCallback.js\";\nimport { ChartFrame } from \"./ChartFrame.js\";\nimport { ChartPopoverContent } from \"./ChartPopoverContent.js\";\nimport { useChartTokens } from \"./chartTokens.js\";\nimport { getChartSeriesPointData } from \"./getChartSeriesPointData.js\";\nimport { hasDuplicateSeries } from \"./hasDuplicateSeries.js\";\nimport { useChartValueFormatter } from \"./useChartValueFormatter.js\";\nimport { useStableValue } from \"./useStableValue.js\";\n\nconst REDUCED_MOTION_CONDITION = \"(prefers-reduced-motion: reduce)\";\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 {\n animationDuration,\n axisLabelStyle,\n axisValueStyle,\n bodyFontFamily,\n borderColor,\n borderWidth,\n chartBackgroundColor,\n crosshairColor,\n crosshairWidth,\n edgeSpacing,\n focusRingColor,\n focusRingOffset,\n focusRingRadius,\n focusRingWidth,\n legendItemHiddenStyle,\n legendItemHoverStyle,\n legendItemSpacing,\n legendItemStyle,\n legendLineSymbolHeight,\n legendLineSymbolWidth,\n legendSpacing,\n legendSymbolSpacing,\n lineHoverStrokeWidthPlus,\n lineMarkerHoverHaloOpacity,\n lineMarkerHoverHaloRadius,\n lineMarkerHoverRadius,\n lineMarkerRadius,\n lineStrokeWidth,\n odysseyDesignTokens,\n popoverBackgroundColor,\n popoverRadius,\n popoverSpacing,\n popoverStyle,\n seriesColors,\n topEdgeSpacing,\n xAxisLabelSpacing,\n yAxisLabelSpacing,\n } = useChartTokens();\n const prefersReducedMotion = useMediaQuery(REDUCED_MOTION_CONDITION);\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 = prefersReducedMotion\n ? (false as const)\n : { duration: animationDuration };\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 = {\n chart: {\n animation,\n backgroundColor: chartBackgroundColor,\n spacingBottom: edgeSpacing,\n spacingLeft: edgeSpacing,\n spacingRight: edgeSpacing,\n spacingTop: topEdgeSpacing,\n style: { fontFamily: bodyFontFamily },\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: 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\n return (\n <Chart options={options} type=\"line\">\n <Accessibility\n description={ariaDescription}\n enabled\n keyboardNavigation={{\n focusBorder: {\n margin: focusRingOffset,\n style: {\n borderRadius: focusRingRadius,\n color: focusRingColor,\n lineWidth: focusRingWidth,\n },\n },\n }}\n landmarkVerbosity=\"disabled\"\n />\n <XAxis\n categories={categories}\n crosshair={{ color: crosshairColor, width: crosshairWidth }}\n gridLineColor={borderColor}\n gridLineWidth={0}\n labels={{ style: axisValueStyle }}\n lineColor={borderColor}\n lineWidth={0}\n tickColor={borderColor}\n tickLength={0}\n title={{\n align: \"middle\",\n margin: xAxisLabelSpacing,\n style: axisLabelStyle,\n text: xAxisLabel,\n }}\n />\n <YAxis\n gridLineColor={borderColor}\n gridLineWidth={borderWidth}\n labels={{\n formatter: (context) =>\n formatValue({\n format: yAxisFormat,\n value: Number(context.value),\n }),\n style: axisValueStyle,\n }}\n lineColor=\"transparent\"\n tickColor=\"transparent\"\n title={{\n align: \"middle\",\n margin: yAxisLabelSpacing,\n style: axisLabelStyle,\n text: yAxisLabel,\n }}\n />\n <Legend\n borderWidth={0}\n enabled={hasLegend}\n itemDistance={legendItemSpacing}\n itemHiddenStyle={legendItemHiddenStyle}\n itemHoverStyle={legendItemHoverStyle}\n itemStyle={legendItemStyle}\n margin={legendSpacing}\n padding={0}\n symbolHeight={legendLineSymbolHeight}\n symbolPadding={legendSymbolSpacing}\n symbolWidth={legendLineSymbolWidth}\n />\n <Popover\n backgroundColor={popoverBackgroundColor}\n borderColor={borderColor}\n borderRadius={popoverRadius}\n borderWidth={borderWidth}\n padding={popoverSpacing}\n shadow={false}\n shared\n style={popoverStyle}\n >\n <ChartPopoverContent\n categoryPlaceholder=\"{point.key}\"\n isShared\n odysseyDesignTokens={odysseyDesignTokens}\n seriesLabelPlaceholder=\"{series.name}\"\n valuePlaceholder=\"{point.custom.formattedValue}\"\n />\n </Popover>\n <PlotOptions\n line={{\n dataLabels: { enabled: false },\n lineWidth: lineStrokeWidth,\n marker: {\n lineWidth: 0,\n radius: lineMarkerRadius,\n states: {\n hover: {\n lineWidthPlus: 0,\n radius: lineMarkerHoverRadius,\n },\n },\n },\n states: {\n hover: {\n halo: {\n opacity: lineMarkerHoverHaloOpacity,\n size: lineMarkerHoverHaloRadius,\n },\n lineWidthPlus: lineHoverStrokeWidthPlus,\n },\n },\n }}\n series={{ animation }}\n />\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 );\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 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 stableProps = useStableValue({\n ...props,\n onPointClick: props.onPointClick ? stableOnPointClick : undefined,\n });\n\n return (\n <ChartFrame\n hasError={stableProps.hasError}\n isLoading={stableProps.isLoading}\n onRetry={stableProps.onRetry}\n subtitle={stableProps.subtitle}\n title={stableProps.title}\n >\n <MemoizedLineChartContent {...stableProps} />\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,EACLC,KAAK,QACA,mBAAmB;AAC1B,SAASC,aAAa,QAAQ,4CAA4C;AAC1E,SAASC,UAAU,QAAQ,kCAAkC;AAC7D,SAASC,IAAI,EAAEC,OAAO,QAAQ,OAAO;AAKrC,SAASC,aAAa,QAAQ,2BAA2B;AACzD,SAASC,iBAAiB,QAAQ,yBAAyB;AAC3D,SAASC,UAAU,QAAQ,iBAAiB;AAC5C,SAASC,mBAAmB,QAAQ,0BAA0B;AAC9D,SAASC,cAAc,QAAQ,kBAAkB;AACjD,SAASC,uBAAuB,QAAQ,8BAA8B;AACtE,SAASC,kBAAkB,QAAQ,yBAAyB;AAC5D,SAASC,sBAAsB,QAAQ,6BAA6B;AACpE,SAASC,cAAc,QAAQ,qBAAqB;AAAC,SAAAC,GAAA,IAAAC,IAAA,EAAAC,IAAA,IAAAC,KAAA;AAErD,MAAMC,wBAAwB,GAAG,kCAAkC;AAanE,MAAMC,gBAAgB,GAAGA,CAAC;EACxBC,eAAe;EACfC,UAAU;EACVC,YAAY;EACZC,uBAAuB;EACvBC,MAAM;EACNC,UAAU;EACVC,WAAW,GAAG,SAAS;EACvBC;AACc,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kI,KAAK;IACRzH,YAAY,EAAEyH,KAAK,CAACzH,YAAY,GAAG0H,kBAAkB,GAAGxD;EAC1D,CAAC,CAAC;EAEF,OACEzE,IAAA,CAACR,UAAU;IACT2I,QAAQ,EAAED,WAAW,CAACC,QAAS;IAC/BC,SAAS,EAAEF,WAAW,CAACE,SAAU;IACjCC,OAAO,EAAEH,WAAW,CAACG,OAAQ;IAC7B9D,QAAQ,EAAE2D,WAAW,CAAC3D,QAAS;IAC/BG,KAAK,EAAEwD,WAAW,CAACxD,KAAM;IAAAE,QAAA,EAEzB5E,IAAA,CAAC8H,wBAAwB;MAAA,GAAKI;IAAW,CAAG;EAAC,CACnC,CAAC;AAEjB,CAAC;AAED,MAAMI,iBAAiB,GAAGlJ,IAAI,CAAC2I,SAAS,CAAC;AACzCO,iBAAiB,CAACC,WAAW,2CAAc;AAE3C,SAASD,iBAAiB,IAAIP,SAAS","ignoreList":[]}
@@ -0,0 +1,109 @@
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 { useOdysseyDesignTokens } from "../OdysseyDesignTokensContext.js";
15
+ const CSS_ROOT_FONT_SIZE_PIXELS = 16;
16
+ export const chartTokens = {
17
+ ChartAnimationDuration: 250,
18
+ ChartBarRadius: 3,
19
+ ChartLegendLineSymbolWidth: 22,
20
+ ChartLineHoverStrokeWidthPlus: 1,
21
+ ChartLineMarkerHoverHaloOpacity: 0.25,
22
+ ChartLineMarkerHoverHaloSize: 20,
23
+ ChartLineMarkerHoverSize: 12,
24
+ ChartLineMarkerSize: 8,
25
+ ChartLineStrokeWidth: 2,
26
+ ChartMinHeight: 400,
27
+ ChartYAxisLabelBaselineCompensation: 8
28
+ };
29
+ export const getTokenValueAsPixels = ({
30
+ tokenValue,
31
+ typographySizeBase
32
+ }) => tokenValue.trimEnd().endsWith("rem") ? parseFloat(tokenValue) * (parseFloat(typographySizeBase) / 100 * CSS_ROOT_FONT_SIZE_PIXELS) : parseFloat(tokenValue);
33
+ export const useChartTokens = () => {
34
+ const odysseyDesignTokens = useOdysseyDesignTokens();
35
+ return useMemo(() => {
36
+ const toPixels = tokenValue => getTokenValueAsPixels({
37
+ tokenValue,
38
+ typographySizeBase: odysseyDesignTokens.TypographySizeBase
39
+ });
40
+ const lineHeight = `${toPixels(odysseyDesignTokens.TypographySizeBody) * odysseyDesignTokens.TypographyLineHeightBody}px`;
41
+ const axisValueStyle = {
42
+ color: odysseyDesignTokens.TypographyColorSubordinate,
43
+ fontFamily: odysseyDesignTokens.TypographyFamilyBody,
44
+ fontSize: odysseyDesignTokens.TypographySizeBody,
45
+ fontWeight: odysseyDesignTokens.TypographyWeightBody,
46
+ lineHeight
47
+ };
48
+ const seriesColors = [odysseyDesignTokens.HueBlue600, odysseyDesignTokens.HueAccentThree400, odysseyDesignTokens.HueAccentTwo400, odysseyDesignTokens.HueAccentOne600, odysseyDesignTokens.HueYellow400, odysseyDesignTokens.HueGreen600];
49
+ return {
50
+ animationDuration: chartTokens.ChartAnimationDuration,
51
+ barRadius: chartTokens.ChartBarRadius,
52
+ legendLineSymbolHeight: chartTokens.ChartLineMarkerSize,
53
+ legendLineSymbolWidth: chartTokens.ChartLegendLineSymbolWidth,
54
+ lineHoverStrokeWidthPlus: chartTokens.ChartLineHoverStrokeWidthPlus,
55
+ lineMarkerHoverHaloOpacity: chartTokens.ChartLineMarkerHoverHaloOpacity,
56
+ lineMarkerHoverHaloRadius: chartTokens.ChartLineMarkerHoverHaloSize / 2,
57
+ lineMarkerHoverRadius: chartTokens.ChartLineMarkerHoverSize / 2,
58
+ lineMarkerRadius: chartTokens.ChartLineMarkerSize / 2,
59
+ lineStrokeWidth: chartTokens.ChartLineStrokeWidth,
60
+ minHeight: `${chartTokens.ChartMinHeight}px`,
61
+ odysseyDesignTokens,
62
+ bodyFontFamily: odysseyDesignTokens.TypographyFamilyBody,
63
+ borderColor: odysseyDesignTokens.BorderColorDisplay,
64
+ borderWidth: toPixels(odysseyDesignTokens.BorderWidthMain),
65
+ chartBackgroundColor: "transparent",
66
+ crosshairColor: odysseyDesignTokens.BorderColorDisplay,
67
+ crosshairWidth: toPixels(odysseyDesignTokens.BorderWidthMain),
68
+ edgeSpacing: toPixels(odysseyDesignTokens.Spacing2),
69
+ focusRingColor: odysseyDesignTokens.BorderColorPrimaryControl,
70
+ focusRingOffset: toPixels(odysseyDesignTokens.FocusOutlineOffsetMain),
71
+ focusRingRadius: `${toPixels(odysseyDesignTokens.BorderRadiusTight)}px`,
72
+ focusRingWidth: toPixels(odysseyDesignTokens.FocusOutlineWidthMain),
73
+ legendItemSpacing: toPixels(odysseyDesignTokens.Spacing4),
74
+ legendSpacing: toPixels(odysseyDesignTokens.Spacing4),
75
+ legendSymbolSpacing: toPixels(odysseyDesignTokens.Spacing2),
76
+ popoverBackgroundColor: odysseyDesignTokens.HueNeutralWhite,
77
+ popoverRadius: toPixels(odysseyDesignTokens.BorderRadiusMain),
78
+ popoverSpacing: toPixels(odysseyDesignTokens.Spacing4),
79
+ topEdgeSpacing: toPixels(odysseyDesignTokens.Spacing3),
80
+ xAxisLabelSpacing: toPixels(odysseyDesignTokens.Spacing2),
81
+ yAxisLabelSpacing: toPixels(odysseyDesignTokens.Spacing2) + chartTokens.ChartYAxisLabelBaselineCompensation,
82
+ seriesColors,
83
+ axisLabelStyle: axisValueStyle,
84
+ axisValueStyle,
85
+ legendItemHiddenStyle: {
86
+ color: odysseyDesignTokens.TypographyColorDisabled
87
+ },
88
+ legendItemHoverStyle: {
89
+ color: odysseyDesignTokens.TypographyColorBody
90
+ },
91
+ legendItemStyle: {
92
+ color: odysseyDesignTokens.TypographyColorSubordinate,
93
+ fontFamily: odysseyDesignTokens.TypographyFamilyBody,
94
+ fontSize: odysseyDesignTokens.TypographySizeBody,
95
+ fontWeight: odysseyDesignTokens.TypographyWeightBody,
96
+ lineHeight
97
+ },
98
+ popoverStyle: {
99
+ boxShadow: odysseyDesignTokens.DepthMedium,
100
+ color: odysseyDesignTokens.TypographyColorBody,
101
+ fontFamily: odysseyDesignTokens.TypographyFamilyBody,
102
+ fontSize: odysseyDesignTokens.TypographySizeBody,
103
+ fontWeight: odysseyDesignTokens.TypographyWeightBody,
104
+ lineHeight
105
+ }
106
+ };
107
+ }, [odysseyDesignTokens]);
108
+ };
109
+ //# sourceMappingURL=chartTokens.js.map