@okta/odyssey-react-mui 1.70.1 → 1.71.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (1100) hide show
  1. package/README.md +134 -20
  2. package/dist/cjs/@types/react-augment.d.cjs.map +1 -1
  3. package/dist/cjs/Accordion.cjs +1 -1
  4. package/dist/cjs/Accordion.cjs.map +1 -1
  5. package/dist/cjs/AnimationContext.cjs +1 -1
  6. package/dist/cjs/Autocomplete.cjs +1 -1
  7. package/dist/cjs/Autocomplete.cjs.map +1 -1
  8. package/dist/cjs/Badge.cjs +1 -1
  9. package/dist/cjs/Badge.cjs.map +1 -1
  10. package/dist/cjs/Banner.cjs +1 -1
  11. package/dist/cjs/Banner.cjs.map +1 -1
  12. package/dist/cjs/Box.cjs +1 -1
  13. package/dist/cjs/Box.cjs.map +1 -1
  14. package/dist/cjs/Breadcrumbs.cjs +1 -1
  15. package/dist/cjs/Breadcrumbs.cjs.map +1 -1
  16. package/dist/cjs/Buttons/BaseButton.cjs +4 -2
  17. package/dist/cjs/Buttons/BaseButton.cjs.map +1 -1
  18. package/dist/cjs/Buttons/BaseMenuButton.cjs +1 -1
  19. package/dist/cjs/Buttons/BaseMenuButton.cjs.map +1 -1
  20. package/dist/cjs/Buttons/Button.cjs +1 -1
  21. package/dist/cjs/Buttons/Button.cjs.map +1 -1
  22. package/dist/cjs/Buttons/MenuButton.cjs +1 -1
  23. package/dist/cjs/Buttons/MenuButton.cjs.map +1 -1
  24. package/dist/cjs/Buttons/MenuItem.cjs +1 -1
  25. package/dist/cjs/Buttons/MenuItem.cjs.map +1 -1
  26. package/dist/cjs/Callout.cjs +1 -1
  27. package/dist/cjs/Callout.cjs.map +1 -1
  28. package/dist/cjs/Card.cjs +1 -1
  29. package/dist/cjs/Card.cjs.map +1 -1
  30. package/dist/cjs/CircularProgress.cjs +1 -1
  31. package/dist/cjs/CircularProgress.cjs.map +1 -1
  32. package/dist/cjs/ConditionalWrapper.cjs +1 -1
  33. package/dist/cjs/ConditionalWrapper.cjs.map +1 -1
  34. package/dist/cjs/CssBaseline.cjs.map +1 -1
  35. package/dist/cjs/DataTable/DataTable.cjs +1 -1
  36. package/dist/cjs/DataTable/DataTable.cjs.map +1 -1
  37. package/dist/cjs/DataTable/DataTableRowActions.cjs +1 -1
  38. package/dist/cjs/DataTable/DataTableSettings.cjs +1 -1
  39. package/dist/cjs/DataTable/useRowReordering.cjs.map +1 -1
  40. package/dist/cjs/DatePickers/DateField.cjs +1 -1
  41. package/dist/cjs/DatePickers/DateFieldActionBar.cjs +1 -1
  42. package/dist/cjs/DatePickers/DateFieldLocalizationProvider.cjs +1 -1
  43. package/dist/cjs/DatePickers/DatePicker.cjs +1 -1
  44. package/dist/cjs/DatePickers/DatePicker.cjs.map +1 -1
  45. package/dist/cjs/DatePickers/TimeZonePicker.cjs +1 -1
  46. package/dist/cjs/DatePickers/TimeZonePicker.cjs.map +1 -1
  47. package/dist/cjs/DatePickers/datePickerTheme.cjs +57 -27
  48. package/dist/cjs/DatePickers/datePickerTheme.cjs.map +1 -1
  49. package/dist/cjs/DatePickers/useOdysseyDateFields.cjs.map +1 -1
  50. package/dist/cjs/Dialog.cjs +1 -1
  51. package/dist/cjs/Dialog.cjs.map +1 -1
  52. package/dist/cjs/Drawer.cjs +1 -1
  53. package/dist/cjs/Drawer.cjs.map +1 -1
  54. package/dist/cjs/EmptyState.cjs +1 -1
  55. package/dist/cjs/EmptyState.cjs.map +1 -1
  56. package/dist/cjs/ErrorMessageList.cjs +1 -1
  57. package/dist/cjs/Field.cjs +1 -1
  58. package/dist/cjs/FieldError.cjs +1 -1
  59. package/dist/cjs/FieldHint.cjs +1 -1
  60. package/dist/cjs/FieldLabel.cjs +1 -1
  61. package/dist/cjs/Fields/Checkbox.cjs +1 -1
  62. package/dist/cjs/Fields/Checkbox.cjs.map +1 -1
  63. package/dist/cjs/Fields/CheckboxGroup.cjs +1 -1
  64. package/dist/cjs/Fields/CheckboxGroup.cjs.map +1 -1
  65. package/dist/cjs/Fields/Hint.cjs.map +1 -1
  66. package/dist/cjs/Fields/Radio.cjs +1 -1
  67. package/dist/cjs/Fields/RadioGroup.cjs +1 -1
  68. package/dist/cjs/Fields/RadioGroup.cjs.map +1 -1
  69. package/dist/cjs/Fieldset.cjs +1 -1
  70. package/dist/cjs/Fieldset.cjs.map +1 -1
  71. package/dist/cjs/FileUploader/FileUploadIllustration.cjs +1 -1
  72. package/dist/cjs/FileUploader/FileUploadPreview.cjs +1 -1
  73. package/dist/cjs/FileUploader/FileUploader.cjs +1 -1
  74. package/dist/cjs/FileUploader/FileUploader.cjs.map +1 -1
  75. package/dist/cjs/Form.cjs +1 -1
  76. package/dist/cjs/Form.cjs.map +1 -1
  77. package/dist/cjs/FormCheckedProps.cjs.map +1 -1
  78. package/dist/cjs/FullScreenOverlay.cjs +1 -1
  79. package/dist/cjs/FullScreenOverlayContext.cjs +1 -1
  80. package/dist/cjs/HintLink.cjs +1 -1
  81. package/dist/cjs/IconWithTooltip.cjs +1 -1
  82. package/dist/cjs/IconWithTooltip.cjs.map +1 -1
  83. package/dist/cjs/Link.cjs +1 -1
  84. package/dist/cjs/Link.cjs.map +1 -1
  85. package/dist/cjs/MuiPropsChild.cjs +1 -1
  86. package/dist/cjs/NativeSelect.cjs +1 -1
  87. package/dist/cjs/NativeSelect.cjs.map +1 -1
  88. package/dist/cjs/OdysseyCacheProvider.cjs +1 -1
  89. package/dist/cjs/OdysseyCacheProvider.cjs.map +1 -1
  90. package/dist/cjs/OdysseyDesignTokensContext.cjs.map +1 -1
  91. package/dist/cjs/OdysseyProvider.cjs +1 -1
  92. package/dist/cjs/OdysseyProvider.cjs.map +1 -1
  93. package/dist/cjs/OdysseyThemeProvider.cjs +1 -1
  94. package/dist/cjs/OdysseyThemeProvider.cjs.map +1 -1
  95. package/dist/cjs/OdysseyThemeProviderPropsContext.cjs +1 -1
  96. package/dist/cjs/Pagination/Pagination.cjs +1 -1
  97. package/dist/cjs/Pagination/Pagination.cjs.map +1 -1
  98. package/dist/cjs/PasswordField.cjs +1 -1
  99. package/dist/cjs/PasswordField.cjs.map +1 -1
  100. package/dist/cjs/ScreenReaderText.cjs +1 -1
  101. package/dist/cjs/ScreenReaderText.cjs.map +1 -1
  102. package/dist/cjs/SearchField.cjs +1 -1
  103. package/dist/cjs/SearchField.cjs.map +1 -1
  104. package/dist/cjs/Select.cjs +1 -1
  105. package/dist/cjs/Select.cjs.map +1 -1
  106. package/dist/cjs/Stack.cjs +1 -1
  107. package/dist/cjs/Stack.cjs.map +1 -1
  108. package/dist/cjs/Status.cjs +1 -1
  109. package/dist/cjs/Status.cjs.map +1 -1
  110. package/dist/cjs/Surface.cjs +1 -1
  111. package/dist/cjs/Surface.cjs.map +1 -1
  112. package/dist/cjs/Switch.cjs +2 -2
  113. package/dist/cjs/Switch.cjs.map +1 -1
  114. package/dist/cjs/Tabs.cjs +1 -1
  115. package/dist/cjs/Tabs.cjs.map +1 -1
  116. package/dist/cjs/Tag.cjs +1 -1
  117. package/dist/cjs/Tag.cjs.map +1 -1
  118. package/dist/cjs/TagList.cjs +1 -1
  119. package/dist/cjs/TagList.cjs.map +1 -1
  120. package/dist/cjs/TextField.cjs +1 -1
  121. package/dist/cjs/TextField.cjs.map +1 -1
  122. package/dist/cjs/Toast.cjs +1 -1
  123. package/dist/cjs/Toast.cjs.map +1 -1
  124. package/dist/cjs/ToastStack.cjs +1 -1
  125. package/dist/cjs/ToastStack.cjs.map +1 -1
  126. package/dist/cjs/Tooltip.cjs +1 -1
  127. package/dist/cjs/Tooltip.cjs.map +1 -1
  128. package/dist/cjs/Typography.cjs +12 -12
  129. package/dist/cjs/Typography.cjs.map +1 -1
  130. package/dist/cjs/__internal.cjs.map +1 -1
  131. package/dist/cjs/charts/BarChart.cjs +1 -1
  132. package/dist/cjs/charts/BarChart.cjs.map +1 -1
  133. package/dist/cjs/charts/LineChart.cjs +1 -1
  134. package/dist/cjs/charts/LineChart.cjs.map +1 -1
  135. package/dist/cjs/charts/components/ChartContainer.cjs.map +1 -1
  136. package/dist/cjs/charts/components/ChartError.cjs +1 -1
  137. package/dist/cjs/charts/components/ChartError.cjs.map +1 -1
  138. package/dist/cjs/charts/components/ChartFrame.cjs +1 -1
  139. package/dist/cjs/charts/components/ChartFrame.cjs.map +1 -1
  140. package/dist/cjs/charts/components/ChartPopoverContent.cjs +1 -1
  141. package/dist/cjs/charts/components/ChartPopoverContent.cjs.map +1 -1
  142. package/dist/cjs/charts/utils/chartTokens.cjs.map +1 -1
  143. package/dist/cjs/charts/utils/chartTypes.cjs.map +1 -1
  144. package/dist/cjs/charts/utils/formatChartValue.cjs.map +1 -1
  145. package/dist/cjs/charts/utils/getChartSeriesPointData.cjs.map +1 -1
  146. package/dist/cjs/charts/utils/hasDuplicateSeries.cjs.map +1 -1
  147. package/dist/cjs/charts/utils/resolveChartLocale.cjs.map +1 -1
  148. package/dist/cjs/charts/utils/useChartValueFormatter.cjs.map +1 -1
  149. package/dist/cjs/charts/utils/useStableValue.cjs.map +1 -1
  150. package/dist/cjs/createContrastColors.cjs.map +1 -1
  151. package/dist/cjs/createOdysseyStyledComponent.cjs.map +1 -1
  152. package/dist/cjs/fullscreen/FullscreenButton.cjs +55 -0
  153. package/dist/cjs/fullscreen/FullscreenButton.cjs.map +1 -0
  154. package/dist/cjs/fullscreen/FullscreenRegion.cjs +405 -0
  155. package/dist/cjs/fullscreen/FullscreenRegion.cjs.map +1 -0
  156. package/dist/cjs/fullscreen/easeFullscreenTransition.cjs +19 -0
  157. package/dist/cjs/fullscreen/easeFullscreenTransition.cjs.map +1 -0
  158. package/dist/cjs/fullscreen/getBackgroundColorBehindElement.cjs +60 -0
  159. package/dist/cjs/fullscreen/getBackgroundColorBehindElement.cjs.map +1 -0
  160. package/dist/cjs/fullscreen/useFullscreen.cjs +116 -0
  161. package/dist/cjs/fullscreen/useFullscreen.cjs.map +1 -0
  162. package/dist/cjs/fullscreen/useFullscreenId.cjs +21 -0
  163. package/dist/cjs/fullscreen/useFullscreenId.cjs.map +1 -0
  164. package/dist/cjs/getLogicalBoundaries.cjs.map +1 -1
  165. package/dist/cjs/icons.generated/Add.cjs +1 -1
  166. package/dist/cjs/icons.generated/AddCircle.cjs +1 -1
  167. package/dist/cjs/icons.generated/Apps.cjs +1 -1
  168. package/dist/cjs/icons.generated/AppsSelected.cjs +1 -1
  169. package/dist/cjs/icons.generated/ArrowBottom.cjs +1 -1
  170. package/dist/cjs/icons.generated/ArrowDown.cjs +1 -1
  171. package/dist/cjs/icons.generated/ArrowLeft.cjs +1 -1
  172. package/dist/cjs/icons.generated/ArrowLowerLeft.cjs +1 -1
  173. package/dist/cjs/icons.generated/ArrowLowerRight.cjs +1 -1
  174. package/dist/cjs/icons.generated/ArrowRight.cjs +1 -1
  175. package/dist/cjs/icons.generated/ArrowTop.cjs +1 -1
  176. package/dist/cjs/icons.generated/ArrowUnsorted.cjs +1 -1
  177. package/dist/cjs/icons.generated/ArrowUp.cjs +1 -1
  178. package/dist/cjs/icons.generated/ArrowUpperLeft.cjs +1 -1
  179. package/dist/cjs/icons.generated/ArrowUpperRight.cjs +1 -1
  180. package/dist/cjs/icons.generated/Bug.cjs +1 -1
  181. package/dist/cjs/icons.generated/Calendar.cjs +1 -1
  182. package/dist/cjs/icons.generated/Call.cjs +1 -1
  183. package/dist/cjs/icons.generated/Chat.cjs +1 -1
  184. package/dist/cjs/icons.generated/Check.cjs +1 -1
  185. package/dist/cjs/icons.generated/CheckCircleFilled.cjs +1 -1
  186. package/dist/cjs/icons.generated/ChevronDown.cjs +1 -1
  187. package/dist/cjs/icons.generated/ChevronLeft.cjs +1 -1
  188. package/dist/cjs/icons.generated/ChevronRight.cjs +1 -1
  189. package/dist/cjs/icons.generated/ChevronUp.cjs +1 -1
  190. package/dist/cjs/icons.generated/Clock.cjs +1 -1
  191. package/dist/cjs/icons.generated/Close.cjs +1 -1
  192. package/dist/cjs/icons.generated/CloseCircleFilled.cjs +1 -1
  193. package/dist/cjs/icons.generated/CollapseLeft.cjs +1 -1
  194. package/dist/cjs/icons.generated/CollapseRight.cjs +1 -1
  195. package/dist/cjs/icons.generated/Copy.cjs +1 -1
  196. package/dist/cjs/icons.generated/Customizations.cjs +1 -1
  197. package/dist/cjs/icons.generated/CustomizationsSelected.cjs +1 -1
  198. package/dist/cjs/icons.generated/DangerDiamond.cjs +1 -1
  199. package/dist/cjs/icons.generated/DangerDiamondFilled.cjs +1 -1
  200. package/dist/cjs/icons.generated/Delete.cjs +1 -1
  201. package/dist/cjs/icons.generated/Deny.cjs +1 -1
  202. package/dist/cjs/icons.generated/Devices.cjs +1 -1
  203. package/dist/cjs/icons.generated/Directory.cjs +1 -1
  204. package/dist/cjs/icons.generated/DirectorySelected.cjs +1 -1
  205. package/dist/cjs/icons.generated/Documentation.cjs +1 -1
  206. package/dist/cjs/icons.generated/Download.cjs +1 -1
  207. package/dist/cjs/icons.generated/DragIndicator.cjs +1 -1
  208. package/dist/cjs/icons.generated/Edit.cjs +1 -1
  209. package/dist/cjs/icons.generated/ExpandLeft.cjs +1 -1
  210. package/dist/cjs/icons.generated/ExpandRight.cjs +1 -1
  211. package/dist/cjs/icons.generated/ExternalLink.cjs +1 -1
  212. package/dist/cjs/icons.generated/Filter.cjs +1 -1
  213. package/dist/cjs/icons.generated/Folder.cjs +1 -1
  214. package/dist/cjs/icons.generated/FullscreenEnter.cjs +39 -0
  215. package/dist/cjs/icons.generated/FullscreenEnter.cjs.map +1 -0
  216. package/dist/cjs/icons.generated/FullscreenExit.cjs +39 -0
  217. package/dist/cjs/icons.generated/FullscreenExit.cjs.map +1 -0
  218. package/dist/cjs/icons.generated/Globe.cjs +1 -1
  219. package/dist/cjs/icons.generated/Grid.cjs +1 -1
  220. package/dist/cjs/icons.generated/Group.cjs +1 -1
  221. package/dist/cjs/icons.generated/Happy.cjs +1 -1
  222. package/dist/cjs/icons.generated/Hide.cjs +1 -1
  223. package/dist/cjs/icons.generated/Home.cjs +1 -1
  224. package/dist/cjs/icons.generated/HomeSelected.cjs +1 -1
  225. package/dist/cjs/icons.generated/IdentityGovernance.cjs +1 -1
  226. package/dist/cjs/icons.generated/IdentityGovernanceSelected.cjs +1 -1
  227. package/dist/cjs/icons.generated/InformationCircle.cjs +1 -1
  228. package/dist/cjs/icons.generated/InformationCircleFilled.cjs +1 -1
  229. package/dist/cjs/icons.generated/Link.cjs +1 -1
  230. package/dist/cjs/icons.generated/List.cjs +1 -1
  231. package/dist/cjs/icons.generated/Lock.cjs +1 -1
  232. package/dist/cjs/icons.generated/Menu.cjs +1 -1
  233. package/dist/cjs/icons.generated/More.cjs +1 -1
  234. package/dist/cjs/icons.generated/Neutral.cjs +1 -1
  235. package/dist/cjs/icons.generated/Notification.cjs +1 -1
  236. package/dist/cjs/icons.generated/Pause.cjs +1 -1
  237. package/dist/cjs/icons.generated/QuestionCircle.cjs +1 -1
  238. package/dist/cjs/icons.generated/QuestionCircleFilled.cjs +1 -1
  239. package/dist/cjs/icons.generated/Refresh.cjs +1 -1
  240. package/dist/cjs/icons.generated/Reports.cjs +1 -1
  241. package/dist/cjs/icons.generated/ReportsSelected.cjs +1 -1
  242. package/dist/cjs/icons.generated/Reset.cjs +1 -1
  243. package/dist/cjs/icons.generated/Resume.cjs +1 -1
  244. package/dist/cjs/icons.generated/Sad.cjs +1 -1
  245. package/dist/cjs/icons.generated/Same.cjs +1 -1
  246. package/dist/cjs/icons.generated/Search.cjs +1 -1
  247. package/dist/cjs/icons.generated/Security.cjs +1 -1
  248. package/dist/cjs/icons.generated/SecuritySelected.cjs +1 -1
  249. package/dist/cjs/icons.generated/Send.cjs +1 -1
  250. package/dist/cjs/icons.generated/Server.cjs +1 -1
  251. package/dist/cjs/icons.generated/Settings.cjs +1 -1
  252. package/dist/cjs/icons.generated/SettingsSelected.cjs +1 -1
  253. package/dist/cjs/icons.generated/Show.cjs +1 -1
  254. package/dist/cjs/icons.generated/Sparkle.cjs +1 -1
  255. package/dist/cjs/icons.generated/Subtract.cjs +1 -1
  256. package/dist/cjs/icons.generated/Sync.cjs +1 -1
  257. package/dist/cjs/icons.generated/ThumbsDown.cjs +1 -1
  258. package/dist/cjs/icons.generated/ThumbsUp.cjs +1 -1
  259. package/dist/cjs/icons.generated/Unlock.cjs +1 -1
  260. package/dist/cjs/icons.generated/Upload.cjs +1 -1
  261. package/dist/cjs/icons.generated/User.cjs +1 -1
  262. package/dist/cjs/icons.generated/Video.cjs +1 -1
  263. package/dist/cjs/icons.generated/Warning.cjs +1 -1
  264. package/dist/cjs/icons.generated/WarningFilled.cjs +1 -1
  265. package/dist/cjs/icons.generated/Workflows.cjs +1 -1
  266. package/dist/cjs/icons.generated/WorkflowsSelected.cjs +1 -1
  267. package/dist/cjs/icons.generated/index.cjs +22 -0
  268. package/dist/cjs/icons.generated/index.cjs.map +1 -1
  269. package/dist/cjs/icons.generated/lazyIconDictionary.cjs +6 -0
  270. package/dist/cjs/icons.generated/lazyIconDictionary.cjs.map +1 -1
  271. package/dist/cjs/icons.generated/names.cjs +1 -1
  272. package/dist/cjs/icons.generated/names.cjs.map +1 -1
  273. package/dist/cjs/index.cjs +47 -0
  274. package/dist/cjs/index.cjs.map +1 -1
  275. package/dist/cjs/inputUtils.cjs.map +1 -1
  276. package/dist/cjs/labs/AppTile.cjs +1 -1
  277. package/dist/cjs/labs/AppTile.cjs.map +1 -1
  278. package/dist/cjs/labs/DataFilters.cjs +2 -2
  279. package/dist/cjs/labs/DataFilters.cjs.map +1 -1
  280. package/dist/cjs/labs/DataTable.cjs +1 -1
  281. package/dist/cjs/labs/DataTable.cjs.map +1 -1
  282. package/dist/cjs/labs/DataTablePagination.cjs +1 -1
  283. package/dist/cjs/labs/DataView/BulkActionsMenu.cjs +1 -1
  284. package/dist/cjs/labs/DataView/BulkActionsMenu.cjs.map +1 -1
  285. package/dist/cjs/labs/DataView/CardLayoutContent.cjs +2 -2
  286. package/dist/cjs/labs/DataView/CardLayoutContent.cjs.map +1 -1
  287. package/dist/cjs/labs/DataView/DataCard.cjs +1 -1
  288. package/dist/cjs/labs/DataView/DataCard.cjs.map +1 -1
  289. package/dist/cjs/labs/DataView/DataTable.cjs +1 -1
  290. package/dist/cjs/labs/DataView/DataTable.cjs.map +1 -1
  291. package/dist/cjs/labs/DataView/DataView.cjs +1 -1
  292. package/dist/cjs/labs/DataView/DataView.cjs.map +1 -1
  293. package/dist/cjs/labs/DataView/DetailPanel.cjs +1 -1
  294. package/dist/cjs/labs/DataView/LayoutSwitcher.cjs +1 -1
  295. package/dist/cjs/labs/DataView/RowActions.cjs +1 -1
  296. package/dist/cjs/labs/DataView/RowActions.cjs.map +1 -1
  297. package/dist/cjs/labs/DataView/TableLayoutContent.cjs +1 -1
  298. package/dist/cjs/labs/DataView/TableLayoutContent.cjs.map +1 -1
  299. package/dist/cjs/labs/DataView/TableSettings.cjs +1 -1
  300. package/dist/cjs/labs/DataView/TableSettings.cjs.map +1 -1
  301. package/dist/cjs/labs/DataView/componentTypes.cjs.map +1 -1
  302. package/dist/cjs/labs/DataView/tableConstants.cjs.map +1 -1
  303. package/dist/cjs/labs/DataView/testSupportData.cjs.map +1 -1
  304. package/dist/cjs/labs/DataView/useFilterConversion.cjs.map +1 -1
  305. package/dist/cjs/labs/DatePickers/DateTimeField.cjs +1 -1
  306. package/dist/cjs/labs/DatePickers/DateTimePicker.cjs +2 -2
  307. package/dist/cjs/labs/DatePickers/DateTimePicker.cjs.map +1 -1
  308. package/dist/cjs/labs/DatePickers/dateTimePickerTheme.cjs +4 -4
  309. package/dist/cjs/labs/DatePickers/dateTimePickerTheme.cjs.map +1 -1
  310. package/dist/cjs/labs/OdysseyPickers/ComposablePicker.cjs +1 -1
  311. package/dist/cjs/labs/OdysseyPickers/Picker.cjs +1 -1
  312. package/dist/cjs/labs/OdysseyPickers/PickerVirtualizationListBox.cjs +1 -1
  313. package/dist/cjs/labs/OdysseyPickers/PickerVirtualizationListBox.cjs.map +1 -1
  314. package/dist/cjs/labs/OdysseyPickers/PickerWithOptionAdornment.cjs +1 -1
  315. package/dist/cjs/labs/OdysseyPickers/SearchDropdown.cjs +1 -1
  316. package/dist/cjs/labs/PageTemplate/DocumentationLink.cjs +1 -1
  317. package/dist/cjs/labs/PageTemplate/Layout.cjs +1 -1
  318. package/dist/cjs/labs/PageTemplate/Layout.cjs.map +1 -1
  319. package/dist/cjs/labs/PageTemplate/PageTemplate.cjs +1 -1
  320. package/dist/cjs/labs/PaginatedTable.cjs +1 -1
  321. package/dist/cjs/labs/StaticTable.cjs +1 -1
  322. package/dist/cjs/labs/UserProfile.cjs +1 -1
  323. package/dist/cjs/labs/UserProfileMenuButton.cjs +1 -1
  324. package/dist/cjs/logos.generated/Duo.cjs +1 -1
  325. package/dist/cjs/logos.generated/GoogleAuth.cjs +1 -1
  326. package/dist/cjs/logos.generated/OktaVerify.cjs +1 -1
  327. package/dist/cjs/logos.generated/Persona.cjs +1 -1
  328. package/dist/cjs/logos.generated/SymantecVip.cjs +1 -1
  329. package/dist/cjs/logos.generated/Yubikey.cjs +1 -1
  330. package/dist/cjs/message-bus/createBrowserMessageBus.cjs +78 -0
  331. package/dist/cjs/message-bus/createBrowserMessageBus.cjs.map +1 -0
  332. package/dist/cjs/message-bus/createMessageChannel.cjs +38 -0
  333. package/dist/cjs/message-bus/createMessageChannel.cjs.map +1 -0
  334. package/dist/cjs/message-bus/fullscreen/createFullscreenId.cjs +24 -0
  335. package/dist/cjs/message-bus/fullscreen/createFullscreenId.cjs.map +1 -0
  336. package/dist/cjs/message-bus/fullscreen/createFullscreenModeHost.cjs +99 -0
  337. package/dist/cjs/message-bus/fullscreen/createFullscreenModeHost.cjs.map +1 -0
  338. package/dist/cjs/message-bus/fullscreen/createFullscreenModeMessageBus.cjs +76 -0
  339. package/dist/cjs/message-bus/fullscreen/createFullscreenModeMessageBus.cjs.map +1 -0
  340. package/dist/cjs/message-bus/fullscreen/fullscreenMessageChannel.cjs +35 -0
  341. package/dist/cjs/message-bus/fullscreen/fullscreenMessageChannel.cjs.map +1 -0
  342. package/dist/cjs/message-bus/fullscreen/fullscreenState.cjs +60 -0
  343. package/dist/cjs/message-bus/fullscreen/fullscreenState.cjs.map +1 -0
  344. package/dist/cjs/message-bus/fullscreen/watchElementDisconnection.cjs +51 -0
  345. package/dist/cjs/message-bus/fullscreen/watchElementDisconnection.cjs.map +1 -0
  346. package/dist/cjs/message-bus/index.cjs +111 -0
  347. package/dist/cjs/message-bus/index.cjs.map +1 -0
  348. package/dist/cjs/message-bus/messageGuards.cjs +23 -0
  349. package/dist/cjs/message-bus/messageGuards.cjs.map +1 -0
  350. package/dist/cjs/pendingDesignTokens/fullscreenTransitionTokens.cjs +21 -0
  351. package/dist/cjs/pendingDesignTokens/fullscreenTransitionTokens.cjs.map +1 -0
  352. package/dist/cjs/properties/ts/odyssey-react-mui.cjs +4 -0
  353. package/dist/cjs/properties/ts/odyssey-react-mui.cjs.map +1 -1
  354. package/dist/cjs/properties/ts/odyssey-react-mui_ok_PL.cjs +4 -0
  355. package/dist/cjs/properties/ts/odyssey-react-mui_ok_PL.cjs.map +1 -1
  356. package/dist/cjs/properties/ts/odyssey-react-mui_ok_SK.cjs +4 -0
  357. package/dist/cjs/properties/ts/odyssey-react-mui_ok_SK.cjs.map +1 -1
  358. package/dist/cjs/test-utils/appendToSandbox.cjs.map +1 -1
  359. package/dist/cjs/test-utils/getControlledElement.cjs.map +1 -1
  360. package/dist/cjs/test-utils/renderWithOdysseyProvider.cjs.map +1 -1
  361. package/dist/cjs/test-utils/viewportTestSizes.cjs.map +1 -1
  362. package/dist/cjs/theme/components/Autocomplete.cjs.map +1 -1
  363. package/dist/cjs/theme/components/Button.cjs.map +1 -1
  364. package/dist/cjs/theme/components/CircularProgress.cjs.map +1 -1
  365. package/dist/cjs/theme/components/Drawer.cjs.map +1 -1
  366. package/dist/cjs/theme/components/Form.cjs.map +1 -1
  367. package/dist/cjs/theme/components/Input.cjs.map +1 -1
  368. package/dist/cjs/theme/components/Table.cjs.map +1 -1
  369. package/dist/cjs/theme/useAppElementContainerQuery.cjs.map +1 -1
  370. package/dist/cjs/theme/useContainerQuery.cjs.map +1 -1
  371. package/dist/cjs/theme/useMediaQuery.cjs.map +1 -1
  372. package/dist/cjs/tools/addSpecificity.cjs.map +1 -1
  373. package/dist/cjs/ui-shell/AppSwitcher/AppSwitcher.cjs +1 -1
  374. package/dist/cjs/ui-shell/InnerAppContainer.cjs +1 -1
  375. package/dist/cjs/ui-shell/NarrowUiShellContent.cjs +32 -2
  376. package/dist/cjs/ui-shell/NarrowUiShellContent.cjs.map +1 -1
  377. package/dist/cjs/ui-shell/SideNav/NavAccordion.cjs +1 -1
  378. package/dist/cjs/ui-shell/SideNav/SideNav.cjs +1 -1
  379. package/dist/cjs/ui-shell/SideNav/SideNav.cjs.map +1 -1
  380. package/dist/cjs/ui-shell/SideNav/SideNavFooterContent.cjs +1 -1
  381. package/dist/cjs/ui-shell/SideNav/SideNavHeader.cjs +1 -1
  382. package/dist/cjs/ui-shell/SideNav/SideNavItemContent.cjs +2 -2
  383. package/dist/cjs/ui-shell/SideNav/SideNavItemContent.cjs.map +1 -1
  384. package/dist/cjs/ui-shell/SideNav/SideNavItemContentContext.cjs.map +1 -1
  385. package/dist/cjs/ui-shell/SideNav/SideNavItemLinkContent.cjs +1 -1
  386. package/dist/cjs/ui-shell/SideNav/SideNavSortableList.cjs +1 -1
  387. package/dist/cjs/ui-shell/SideNav/SideNavToggleButton.cjs +2 -2
  388. package/dist/cjs/ui-shell/SideNav/SideNavToggleButton.cjs.map +1 -1
  389. package/dist/cjs/ui-shell/SideNav/SortableList/SortableItem.cjs.map +1 -1
  390. package/dist/cjs/ui-shell/SideNav/SortableList/SortableList.cjs.map +1 -1
  391. package/dist/cjs/ui-shell/SideNav/SortableList/SortableOverlay.cjs.map +1 -1
  392. package/dist/cjs/ui-shell/SideNav/types.cjs.map +1 -1
  393. package/dist/cjs/ui-shell/SkipToContent.cjs +1 -1
  394. package/dist/cjs/ui-shell/SkipToContent.cjs.map +1 -1
  395. package/dist/cjs/ui-shell/TopNav/HamburgerMenuIcon.cjs +1 -1
  396. package/dist/cjs/ui-shell/TopNav/TopNav.cjs +1 -1
  397. package/dist/cjs/ui-shell/TopNav/TopNavLinksList.cjs +1 -1
  398. package/dist/cjs/ui-shell/TopNav/TopNavListItem.cjs +1 -1
  399. package/dist/cjs/ui-shell/TopNav/TopNavListItem.cjs.map +1 -1
  400. package/dist/cjs/ui-shell/UiShell.cjs +11 -1
  401. package/dist/cjs/ui-shell/UiShell.cjs.map +1 -1
  402. package/dist/cjs/ui-shell/UiShellLogo.cjs +1 -1
  403. package/dist/cjs/ui-shell/UiShellProvider.cjs.map +1 -1
  404. package/dist/cjs/ui-shell/WideUiShellContent.cjs +40 -1
  405. package/dist/cjs/ui-shell/WideUiShellContent.cjs.map +1 -1
  406. package/dist/cjs/ui-shell/createUiShellFullscreenState.cjs +66 -0
  407. package/dist/cjs/ui-shell/createUiShellFullscreenState.cjs.map +1 -0
  408. package/dist/cjs/ui-shell/renderUiShell.cjs +23 -0
  409. package/dist/cjs/ui-shell/renderUiShell.cjs.map +1 -1
  410. package/dist/cjs/ui-shell/uiShellContentTypes.cjs.map +1 -1
  411. package/dist/cjs/ui-shell/uiShellSharedConstants.cjs.map +1 -1
  412. package/dist/cjs/ui-shell/useFullscreenChromeCollapse.cjs +74 -0
  413. package/dist/cjs/ui-shell/useFullscreenChromeCollapse.cjs.map +1 -0
  414. package/dist/cjs/useContrastMode.cjs.map +1 -1
  415. package/dist/cjs/useStableCallback.cjs.map +1 -1
  416. package/dist/cjs/useThemeCache.cjs.map +1 -1
  417. package/dist/cjs/web-component/odysseyWebComponentVersion.generated.cjs +1 -1
  418. package/dist/cjs/web-component/odysseyWebComponentVersion.generated.cjs.map +1 -1
  419. package/dist/cjs/web-component/renderReactInWebComponent.cjs.map +1 -1
  420. package/dist/esm/@types/react-augment.d.js.map +1 -1
  421. package/dist/esm/Accordion.js +1 -1
  422. package/dist/esm/Accordion.js.map +1 -1
  423. package/dist/esm/AnimationContext.js +1 -1
  424. package/dist/esm/Autocomplete.js +1 -1
  425. package/dist/esm/Autocomplete.js.map +1 -1
  426. package/dist/esm/Badge.js +1 -1
  427. package/dist/esm/Badge.js.map +1 -1
  428. package/dist/esm/Banner.js +1 -1
  429. package/dist/esm/Banner.js.map +1 -1
  430. package/dist/esm/Box.js +1 -1
  431. package/dist/esm/Box.js.map +1 -1
  432. package/dist/esm/Breadcrumbs.js +1 -1
  433. package/dist/esm/Breadcrumbs.js.map +1 -1
  434. package/dist/esm/Buttons/BaseButton.js +4 -2
  435. package/dist/esm/Buttons/BaseButton.js.map +1 -1
  436. package/dist/esm/Buttons/BaseMenuButton.js +1 -1
  437. package/dist/esm/Buttons/BaseMenuButton.js.map +1 -1
  438. package/dist/esm/Buttons/Button.js +1 -1
  439. package/dist/esm/Buttons/Button.js.map +1 -1
  440. package/dist/esm/Buttons/MenuButton.js +1 -1
  441. package/dist/esm/Buttons/MenuButton.js.map +1 -1
  442. package/dist/esm/Buttons/MenuItem.js +1 -1
  443. package/dist/esm/Buttons/MenuItem.js.map +1 -1
  444. package/dist/esm/Callout.js +1 -1
  445. package/dist/esm/Callout.js.map +1 -1
  446. package/dist/esm/Card.js +1 -1
  447. package/dist/esm/Card.js.map +1 -1
  448. package/dist/esm/CircularProgress.js +1 -1
  449. package/dist/esm/CircularProgress.js.map +1 -1
  450. package/dist/esm/ConditionalWrapper.js +1 -1
  451. package/dist/esm/ConditionalWrapper.js.map +1 -1
  452. package/dist/esm/CssBaseline.js.map +1 -1
  453. package/dist/esm/DataTable/DataTable.js +1 -1
  454. package/dist/esm/DataTable/DataTable.js.map +1 -1
  455. package/dist/esm/DataTable/DataTableRowActions.js +1 -1
  456. package/dist/esm/DataTable/DataTableSettings.js +1 -1
  457. package/dist/esm/DataTable/useRowReordering.js.map +1 -1
  458. package/dist/esm/DatePickers/DateField.js +1 -1
  459. package/dist/esm/DatePickers/DateFieldActionBar.js +1 -1
  460. package/dist/esm/DatePickers/DateFieldLocalizationProvider.js +1 -1
  461. package/dist/esm/DatePickers/DatePicker.js +1 -1
  462. package/dist/esm/DatePickers/DatePicker.js.map +1 -1
  463. package/dist/esm/DatePickers/TimeZonePicker.js +1 -1
  464. package/dist/esm/DatePickers/TimeZonePicker.js.map +1 -1
  465. package/dist/esm/DatePickers/datePickerTheme.js +57 -27
  466. package/dist/esm/DatePickers/datePickerTheme.js.map +1 -1
  467. package/dist/esm/DatePickers/useOdysseyDateFields.js.map +1 -1
  468. package/dist/esm/Dialog.js +1 -1
  469. package/dist/esm/Dialog.js.map +1 -1
  470. package/dist/esm/Drawer.js +1 -1
  471. package/dist/esm/Drawer.js.map +1 -1
  472. package/dist/esm/EmptyState.js +1 -1
  473. package/dist/esm/EmptyState.js.map +1 -1
  474. package/dist/esm/ErrorMessageList.js +1 -1
  475. package/dist/esm/Field.js +1 -1
  476. package/dist/esm/FieldError.js +1 -1
  477. package/dist/esm/FieldHint.js +1 -1
  478. package/dist/esm/FieldLabel.js +1 -1
  479. package/dist/esm/Fields/Checkbox.js +1 -1
  480. package/dist/esm/Fields/Checkbox.js.map +1 -1
  481. package/dist/esm/Fields/CheckboxGroup.js +1 -1
  482. package/dist/esm/Fields/CheckboxGroup.js.map +1 -1
  483. package/dist/esm/Fields/Hint.js.map +1 -1
  484. package/dist/esm/Fields/Radio.js +1 -1
  485. package/dist/esm/Fields/RadioGroup.js +1 -1
  486. package/dist/esm/Fields/RadioGroup.js.map +1 -1
  487. package/dist/esm/Fieldset.js +1 -1
  488. package/dist/esm/Fieldset.js.map +1 -1
  489. package/dist/esm/FileUploader/FileUploadIllustration.js +1 -1
  490. package/dist/esm/FileUploader/FileUploadPreview.js +1 -1
  491. package/dist/esm/FileUploader/FileUploader.js +1 -1
  492. package/dist/esm/FileUploader/FileUploader.js.map +1 -1
  493. package/dist/esm/Form.js +1 -1
  494. package/dist/esm/Form.js.map +1 -1
  495. package/dist/esm/FormCheckedProps.js.map +1 -1
  496. package/dist/esm/FullScreenOverlay.js +1 -1
  497. package/dist/esm/FullScreenOverlayContext.js +1 -1
  498. package/dist/esm/HintLink.js +1 -1
  499. package/dist/esm/IconWithTooltip.js +1 -1
  500. package/dist/esm/IconWithTooltip.js.map +1 -1
  501. package/dist/esm/Link.js +1 -1
  502. package/dist/esm/Link.js.map +1 -1
  503. package/dist/esm/MuiPropsChild.js +1 -1
  504. package/dist/esm/NativeSelect.js +1 -1
  505. package/dist/esm/NativeSelect.js.map +1 -1
  506. package/dist/esm/OdysseyCacheProvider.js +1 -1
  507. package/dist/esm/OdysseyCacheProvider.js.map +1 -1
  508. package/dist/esm/OdysseyDesignTokensContext.js.map +1 -1
  509. package/dist/esm/OdysseyProvider.js +1 -1
  510. package/dist/esm/OdysseyProvider.js.map +1 -1
  511. package/dist/esm/OdysseyThemeProvider.js +1 -1
  512. package/dist/esm/OdysseyThemeProvider.js.map +1 -1
  513. package/dist/esm/OdysseyThemeProviderPropsContext.js +1 -1
  514. package/dist/esm/Pagination/Pagination.js +1 -1
  515. package/dist/esm/Pagination/Pagination.js.map +1 -1
  516. package/dist/esm/PasswordField.js +1 -1
  517. package/dist/esm/PasswordField.js.map +1 -1
  518. package/dist/esm/ScreenReaderText.js +1 -1
  519. package/dist/esm/ScreenReaderText.js.map +1 -1
  520. package/dist/esm/SearchField.js +1 -1
  521. package/dist/esm/SearchField.js.map +1 -1
  522. package/dist/esm/Select.js +1 -1
  523. package/dist/esm/Select.js.map +1 -1
  524. package/dist/esm/Stack.js +1 -1
  525. package/dist/esm/Stack.js.map +1 -1
  526. package/dist/esm/Status.js +1 -1
  527. package/dist/esm/Status.js.map +1 -1
  528. package/dist/esm/Surface.js +1 -1
  529. package/dist/esm/Surface.js.map +1 -1
  530. package/dist/esm/Switch.js +2 -2
  531. package/dist/esm/Switch.js.map +1 -1
  532. package/dist/esm/Tabs.js +1 -1
  533. package/dist/esm/Tabs.js.map +1 -1
  534. package/dist/esm/Tag.js +1 -1
  535. package/dist/esm/Tag.js.map +1 -1
  536. package/dist/esm/TagList.js +1 -1
  537. package/dist/esm/TagList.js.map +1 -1
  538. package/dist/esm/TextField.js +1 -1
  539. package/dist/esm/TextField.js.map +1 -1
  540. package/dist/esm/Toast.js +1 -1
  541. package/dist/esm/Toast.js.map +1 -1
  542. package/dist/esm/ToastStack.js +1 -1
  543. package/dist/esm/ToastStack.js.map +1 -1
  544. package/dist/esm/Tooltip.js +1 -1
  545. package/dist/esm/Tooltip.js.map +1 -1
  546. package/dist/esm/Typography.js +12 -12
  547. package/dist/esm/Typography.js.map +1 -1
  548. package/dist/esm/__internal.js.map +1 -1
  549. package/dist/esm/charts/BarChart.js +1 -1
  550. package/dist/esm/charts/BarChart.js.map +1 -1
  551. package/dist/esm/charts/LineChart.js +1 -1
  552. package/dist/esm/charts/LineChart.js.map +1 -1
  553. package/dist/esm/charts/components/ChartContainer.js.map +1 -1
  554. package/dist/esm/charts/components/ChartError.js +1 -1
  555. package/dist/esm/charts/components/ChartError.js.map +1 -1
  556. package/dist/esm/charts/components/ChartFrame.js +1 -1
  557. package/dist/esm/charts/components/ChartFrame.js.map +1 -1
  558. package/dist/esm/charts/components/ChartPopoverContent.js +1 -1
  559. package/dist/esm/charts/components/ChartPopoverContent.js.map +1 -1
  560. package/dist/esm/charts/utils/chartTokens.js.map +1 -1
  561. package/dist/esm/charts/utils/chartTypes.js.map +1 -1
  562. package/dist/esm/charts/utils/formatChartValue.js.map +1 -1
  563. package/dist/esm/charts/utils/getChartSeriesPointData.js.map +1 -1
  564. package/dist/esm/charts/utils/hasDuplicateSeries.js.map +1 -1
  565. package/dist/esm/charts/utils/resolveChartLocale.js.map +1 -1
  566. package/dist/esm/charts/utils/useChartValueFormatter.js.map +1 -1
  567. package/dist/esm/charts/utils/useStableValue.js.map +1 -1
  568. package/dist/esm/createContrastColors.js.map +1 -1
  569. package/dist/esm/createOdysseyStyledComponent.js.map +1 -1
  570. package/dist/esm/fullscreen/FullscreenButton.js +52 -0
  571. package/dist/esm/fullscreen/FullscreenButton.js.map +1 -0
  572. package/dist/esm/fullscreen/FullscreenRegion.js +402 -0
  573. package/dist/esm/fullscreen/FullscreenRegion.js.map +1 -0
  574. package/dist/esm/fullscreen/easeFullscreenTransition.js +12 -0
  575. package/dist/esm/fullscreen/easeFullscreenTransition.js.map +1 -0
  576. package/dist/esm/fullscreen/getBackgroundColorBehindElement.js +53 -0
  577. package/dist/esm/fullscreen/getBackgroundColorBehindElement.js.map +1 -0
  578. package/dist/esm/fullscreen/useFullscreen.js +110 -0
  579. package/dist/esm/fullscreen/useFullscreen.js.map +1 -0
  580. package/dist/esm/fullscreen/useFullscreenId.js +16 -0
  581. package/dist/esm/fullscreen/useFullscreenId.js.map +1 -0
  582. package/dist/esm/getLogicalBoundaries.js.map +1 -1
  583. package/dist/esm/icons.generated/Add.js +1 -1
  584. package/dist/esm/icons.generated/AddCircle.js +1 -1
  585. package/dist/esm/icons.generated/Apps.js +1 -1
  586. package/dist/esm/icons.generated/AppsSelected.js +1 -1
  587. package/dist/esm/icons.generated/ArrowBottom.js +1 -1
  588. package/dist/esm/icons.generated/ArrowDown.js +1 -1
  589. package/dist/esm/icons.generated/ArrowLeft.js +1 -1
  590. package/dist/esm/icons.generated/ArrowLowerLeft.js +1 -1
  591. package/dist/esm/icons.generated/ArrowLowerRight.js +1 -1
  592. package/dist/esm/icons.generated/ArrowRight.js +1 -1
  593. package/dist/esm/icons.generated/ArrowTop.js +1 -1
  594. package/dist/esm/icons.generated/ArrowUnsorted.js +1 -1
  595. package/dist/esm/icons.generated/ArrowUp.js +1 -1
  596. package/dist/esm/icons.generated/ArrowUpperLeft.js +1 -1
  597. package/dist/esm/icons.generated/ArrowUpperRight.js +1 -1
  598. package/dist/esm/icons.generated/Bug.js +1 -1
  599. package/dist/esm/icons.generated/Calendar.js +1 -1
  600. package/dist/esm/icons.generated/Call.js +1 -1
  601. package/dist/esm/icons.generated/Chat.js +1 -1
  602. package/dist/esm/icons.generated/Check.js +1 -1
  603. package/dist/esm/icons.generated/CheckCircleFilled.js +1 -1
  604. package/dist/esm/icons.generated/ChevronDown.js +1 -1
  605. package/dist/esm/icons.generated/ChevronLeft.js +1 -1
  606. package/dist/esm/icons.generated/ChevronRight.js +1 -1
  607. package/dist/esm/icons.generated/ChevronUp.js +1 -1
  608. package/dist/esm/icons.generated/Clock.js +1 -1
  609. package/dist/esm/icons.generated/Close.js +1 -1
  610. package/dist/esm/icons.generated/CloseCircleFilled.js +1 -1
  611. package/dist/esm/icons.generated/CollapseLeft.js +1 -1
  612. package/dist/esm/icons.generated/CollapseRight.js +1 -1
  613. package/dist/esm/icons.generated/Copy.js +1 -1
  614. package/dist/esm/icons.generated/Customizations.js +1 -1
  615. package/dist/esm/icons.generated/CustomizationsSelected.js +1 -1
  616. package/dist/esm/icons.generated/DangerDiamond.js +1 -1
  617. package/dist/esm/icons.generated/DangerDiamondFilled.js +1 -1
  618. package/dist/esm/icons.generated/Delete.js +1 -1
  619. package/dist/esm/icons.generated/Deny.js +1 -1
  620. package/dist/esm/icons.generated/Devices.js +1 -1
  621. package/dist/esm/icons.generated/Directory.js +1 -1
  622. package/dist/esm/icons.generated/DirectorySelected.js +1 -1
  623. package/dist/esm/icons.generated/Documentation.js +1 -1
  624. package/dist/esm/icons.generated/Download.js +1 -1
  625. package/dist/esm/icons.generated/DragIndicator.js +1 -1
  626. package/dist/esm/icons.generated/Edit.js +1 -1
  627. package/dist/esm/icons.generated/ExpandLeft.js +1 -1
  628. package/dist/esm/icons.generated/ExpandRight.js +1 -1
  629. package/dist/esm/icons.generated/ExternalLink.js +1 -1
  630. package/dist/esm/icons.generated/Filter.js +1 -1
  631. package/dist/esm/icons.generated/Folder.js +1 -1
  632. package/dist/esm/icons.generated/FullscreenEnter.js +34 -0
  633. package/dist/esm/icons.generated/FullscreenEnter.js.map +1 -0
  634. package/dist/esm/icons.generated/FullscreenExit.js +34 -0
  635. package/dist/esm/icons.generated/FullscreenExit.js.map +1 -0
  636. package/dist/esm/icons.generated/Globe.js +1 -1
  637. package/dist/esm/icons.generated/Grid.js +1 -1
  638. package/dist/esm/icons.generated/Group.js +1 -1
  639. package/dist/esm/icons.generated/Happy.js +1 -1
  640. package/dist/esm/icons.generated/Hide.js +1 -1
  641. package/dist/esm/icons.generated/Home.js +1 -1
  642. package/dist/esm/icons.generated/HomeSelected.js +1 -1
  643. package/dist/esm/icons.generated/IdentityGovernance.js +1 -1
  644. package/dist/esm/icons.generated/IdentityGovernanceSelected.js +1 -1
  645. package/dist/esm/icons.generated/InformationCircle.js +1 -1
  646. package/dist/esm/icons.generated/InformationCircleFilled.js +1 -1
  647. package/dist/esm/icons.generated/Link.js +1 -1
  648. package/dist/esm/icons.generated/List.js +1 -1
  649. package/dist/esm/icons.generated/Lock.js +1 -1
  650. package/dist/esm/icons.generated/Menu.js +1 -1
  651. package/dist/esm/icons.generated/More.js +1 -1
  652. package/dist/esm/icons.generated/Neutral.js +1 -1
  653. package/dist/esm/icons.generated/Notification.js +1 -1
  654. package/dist/esm/icons.generated/Pause.js +1 -1
  655. package/dist/esm/icons.generated/QuestionCircle.js +1 -1
  656. package/dist/esm/icons.generated/QuestionCircleFilled.js +1 -1
  657. package/dist/esm/icons.generated/Refresh.js +1 -1
  658. package/dist/esm/icons.generated/Reports.js +1 -1
  659. package/dist/esm/icons.generated/ReportsSelected.js +1 -1
  660. package/dist/esm/icons.generated/Reset.js +1 -1
  661. package/dist/esm/icons.generated/Resume.js +1 -1
  662. package/dist/esm/icons.generated/Sad.js +1 -1
  663. package/dist/esm/icons.generated/Same.js +1 -1
  664. package/dist/esm/icons.generated/Search.js +1 -1
  665. package/dist/esm/icons.generated/Security.js +1 -1
  666. package/dist/esm/icons.generated/SecuritySelected.js +1 -1
  667. package/dist/esm/icons.generated/Send.js +1 -1
  668. package/dist/esm/icons.generated/Server.js +1 -1
  669. package/dist/esm/icons.generated/Settings.js +1 -1
  670. package/dist/esm/icons.generated/SettingsSelected.js +1 -1
  671. package/dist/esm/icons.generated/Show.js +1 -1
  672. package/dist/esm/icons.generated/Sparkle.js +1 -1
  673. package/dist/esm/icons.generated/Subtract.js +1 -1
  674. package/dist/esm/icons.generated/Sync.js +1 -1
  675. package/dist/esm/icons.generated/ThumbsDown.js +1 -1
  676. package/dist/esm/icons.generated/ThumbsUp.js +1 -1
  677. package/dist/esm/icons.generated/Unlock.js +1 -1
  678. package/dist/esm/icons.generated/Upload.js +1 -1
  679. package/dist/esm/icons.generated/User.js +1 -1
  680. package/dist/esm/icons.generated/Video.js +1 -1
  681. package/dist/esm/icons.generated/Warning.js +1 -1
  682. package/dist/esm/icons.generated/WarningFilled.js +1 -1
  683. package/dist/esm/icons.generated/Workflows.js +1 -1
  684. package/dist/esm/icons.generated/WorkflowsSelected.js +1 -1
  685. package/dist/esm/icons.generated/index.js +2 -0
  686. package/dist/esm/icons.generated/index.js.map +1 -1
  687. package/dist/esm/icons.generated/lazyIconDictionary.js +6 -0
  688. package/dist/esm/icons.generated/lazyIconDictionary.js.map +1 -1
  689. package/dist/esm/icons.generated/names.js +1 -1
  690. package/dist/esm/icons.generated/names.js.map +1 -1
  691. package/dist/esm/index.js +5 -0
  692. package/dist/esm/index.js.map +1 -1
  693. package/dist/esm/inputUtils.js.map +1 -1
  694. package/dist/esm/labs/AppTile.js +1 -1
  695. package/dist/esm/labs/AppTile.js.map +1 -1
  696. package/dist/esm/labs/DataFilters.js +2 -2
  697. package/dist/esm/labs/DataFilters.js.map +1 -1
  698. package/dist/esm/labs/DataTable.js +1 -1
  699. package/dist/esm/labs/DataTable.js.map +1 -1
  700. package/dist/esm/labs/DataTablePagination.js +1 -1
  701. package/dist/esm/labs/DataView/BulkActionsMenu.js +1 -1
  702. package/dist/esm/labs/DataView/BulkActionsMenu.js.map +1 -1
  703. package/dist/esm/labs/DataView/CardLayoutContent.js +2 -2
  704. package/dist/esm/labs/DataView/CardLayoutContent.js.map +1 -1
  705. package/dist/esm/labs/DataView/DataCard.js +1 -1
  706. package/dist/esm/labs/DataView/DataCard.js.map +1 -1
  707. package/dist/esm/labs/DataView/DataTable.js +1 -1
  708. package/dist/esm/labs/DataView/DataTable.js.map +1 -1
  709. package/dist/esm/labs/DataView/DataView.js +1 -1
  710. package/dist/esm/labs/DataView/DataView.js.map +1 -1
  711. package/dist/esm/labs/DataView/DetailPanel.js +1 -1
  712. package/dist/esm/labs/DataView/LayoutSwitcher.js +1 -1
  713. package/dist/esm/labs/DataView/RowActions.js +1 -1
  714. package/dist/esm/labs/DataView/RowActions.js.map +1 -1
  715. package/dist/esm/labs/DataView/TableLayoutContent.js +1 -1
  716. package/dist/esm/labs/DataView/TableLayoutContent.js.map +1 -1
  717. package/dist/esm/labs/DataView/TableSettings.js +1 -1
  718. package/dist/esm/labs/DataView/TableSettings.js.map +1 -1
  719. package/dist/esm/labs/DataView/componentTypes.js.map +1 -1
  720. package/dist/esm/labs/DataView/tableConstants.js.map +1 -1
  721. package/dist/esm/labs/DataView/testSupportData.js.map +1 -1
  722. package/dist/esm/labs/DataView/useFilterConversion.js.map +1 -1
  723. package/dist/esm/labs/DatePickers/DateTimeField.js +1 -1
  724. package/dist/esm/labs/DatePickers/DateTimePicker.js +2 -2
  725. package/dist/esm/labs/DatePickers/DateTimePicker.js.map +1 -1
  726. package/dist/esm/labs/DatePickers/dateTimePickerTheme.js +4 -4
  727. package/dist/esm/labs/DatePickers/dateTimePickerTheme.js.map +1 -1
  728. package/dist/esm/labs/OdysseyPickers/ComposablePicker.js +1 -1
  729. package/dist/esm/labs/OdysseyPickers/Picker.js +1 -1
  730. package/dist/esm/labs/OdysseyPickers/PickerVirtualizationListBox.js +1 -1
  731. package/dist/esm/labs/OdysseyPickers/PickerVirtualizationListBox.js.map +1 -1
  732. package/dist/esm/labs/OdysseyPickers/PickerWithOptionAdornment.js +1 -1
  733. package/dist/esm/labs/OdysseyPickers/SearchDropdown.js +1 -1
  734. package/dist/esm/labs/PageTemplate/DocumentationLink.js +1 -1
  735. package/dist/esm/labs/PageTemplate/Layout.js +1 -1
  736. package/dist/esm/labs/PageTemplate/Layout.js.map +1 -1
  737. package/dist/esm/labs/PageTemplate/PageTemplate.js +1 -1
  738. package/dist/esm/labs/PaginatedTable.js +1 -1
  739. package/dist/esm/labs/StaticTable.js +1 -1
  740. package/dist/esm/labs/UserProfile.js +1 -1
  741. package/dist/esm/labs/UserProfileMenuButton.js +1 -1
  742. package/dist/esm/logos.generated/Duo.js +1 -1
  743. package/dist/esm/logos.generated/GoogleAuth.js +1 -1
  744. package/dist/esm/logos.generated/OktaVerify.js +1 -1
  745. package/dist/esm/logos.generated/Persona.js +1 -1
  746. package/dist/esm/logos.generated/SymantecVip.js +1 -1
  747. package/dist/esm/logos.generated/Yubikey.js +1 -1
  748. package/dist/esm/message-bus/createBrowserMessageBus.js +72 -0
  749. package/dist/esm/message-bus/createBrowserMessageBus.js.map +1 -0
  750. package/dist/esm/message-bus/createMessageChannel.js +33 -0
  751. package/dist/esm/message-bus/createMessageChannel.js.map +1 -0
  752. package/dist/esm/message-bus/fullscreen/createFullscreenId.js +18 -0
  753. package/dist/esm/message-bus/fullscreen/createFullscreenId.js.map +1 -0
  754. package/dist/esm/message-bus/fullscreen/createFullscreenModeHost.js +92 -0
  755. package/dist/esm/message-bus/fullscreen/createFullscreenModeHost.js.map +1 -0
  756. package/dist/esm/message-bus/fullscreen/createFullscreenModeMessageBus.js +69 -0
  757. package/dist/esm/message-bus/fullscreen/createFullscreenModeMessageBus.js.map +1 -0
  758. package/dist/esm/message-bus/fullscreen/fullscreenMessageChannel.js +29 -0
  759. package/dist/esm/message-bus/fullscreen/fullscreenMessageChannel.js.map +1 -0
  760. package/dist/esm/message-bus/fullscreen/fullscreenState.js +46 -0
  761. package/dist/esm/message-bus/fullscreen/fullscreenState.js.map +1 -0
  762. package/dist/esm/message-bus/fullscreen/watchElementDisconnection.js +44 -0
  763. package/dist/esm/message-bus/fullscreen/watchElementDisconnection.js.map +1 -0
  764. package/dist/esm/message-bus/index.js +22 -0
  765. package/dist/esm/message-bus/index.js.map +1 -0
  766. package/dist/esm/message-bus/messageGuards.js +14 -0
  767. package/dist/esm/message-bus/messageGuards.js.map +1 -0
  768. package/dist/esm/pendingDesignTokens/fullscreenTransitionTokens.js +15 -0
  769. package/dist/esm/pendingDesignTokens/fullscreenTransitionTokens.js.map +1 -0
  770. package/dist/esm/properties/ts/odyssey-react-mui.js +4 -0
  771. package/dist/esm/properties/ts/odyssey-react-mui.js.map +1 -1
  772. package/dist/esm/properties/ts/odyssey-react-mui_ok_PL.js +4 -0
  773. package/dist/esm/properties/ts/odyssey-react-mui_ok_PL.js.map +1 -1
  774. package/dist/esm/properties/ts/odyssey-react-mui_ok_SK.js +4 -0
  775. package/dist/esm/properties/ts/odyssey-react-mui_ok_SK.js.map +1 -1
  776. package/dist/esm/test-utils/appendToSandbox.js.map +1 -1
  777. package/dist/esm/test-utils/getControlledElement.js.map +1 -1
  778. package/dist/esm/test-utils/renderWithOdysseyProvider.js.map +1 -1
  779. package/dist/esm/test-utils/viewportTestSizes.js.map +1 -1
  780. package/dist/esm/theme/components/Autocomplete.js.map +1 -1
  781. package/dist/esm/theme/components/Button.js.map +1 -1
  782. package/dist/esm/theme/components/CircularProgress.js.map +1 -1
  783. package/dist/esm/theme/components/Drawer.js.map +1 -1
  784. package/dist/esm/theme/components/Form.js.map +1 -1
  785. package/dist/esm/theme/components/Input.js.map +1 -1
  786. package/dist/esm/theme/components/Table.js.map +1 -1
  787. package/dist/esm/theme/useAppElementContainerQuery.js.map +1 -1
  788. package/dist/esm/theme/useContainerQuery.js.map +1 -1
  789. package/dist/esm/theme/useMediaQuery.js.map +1 -1
  790. package/dist/esm/tools/addSpecificity.js.map +1 -1
  791. package/dist/esm/ui-shell/AppSwitcher/AppSwitcher.js +1 -1
  792. package/dist/esm/ui-shell/InnerAppContainer.js +1 -1
  793. package/dist/esm/ui-shell/NarrowUiShellContent.js +32 -2
  794. package/dist/esm/ui-shell/NarrowUiShellContent.js.map +1 -1
  795. package/dist/esm/ui-shell/SideNav/NavAccordion.js +1 -1
  796. package/dist/esm/ui-shell/SideNav/SideNav.js +1 -1
  797. package/dist/esm/ui-shell/SideNav/SideNav.js.map +1 -1
  798. package/dist/esm/ui-shell/SideNav/SideNavFooterContent.js +1 -1
  799. package/dist/esm/ui-shell/SideNav/SideNavHeader.js +1 -1
  800. package/dist/esm/ui-shell/SideNav/SideNavItemContent.js +2 -2
  801. package/dist/esm/ui-shell/SideNav/SideNavItemContent.js.map +1 -1
  802. package/dist/esm/ui-shell/SideNav/SideNavItemContentContext.js.map +1 -1
  803. package/dist/esm/ui-shell/SideNav/SideNavItemLinkContent.js +1 -1
  804. package/dist/esm/ui-shell/SideNav/SideNavSortableList.js +1 -1
  805. package/dist/esm/ui-shell/SideNav/SideNavToggleButton.js +2 -2
  806. package/dist/esm/ui-shell/SideNav/SideNavToggleButton.js.map +1 -1
  807. package/dist/esm/ui-shell/SideNav/SortableList/SortableItem.js.map +1 -1
  808. package/dist/esm/ui-shell/SideNav/SortableList/SortableList.js.map +1 -1
  809. package/dist/esm/ui-shell/SideNav/SortableList/SortableOverlay.js.map +1 -1
  810. package/dist/esm/ui-shell/SideNav/types.js.map +1 -1
  811. package/dist/esm/ui-shell/SkipToContent.js +1 -1
  812. package/dist/esm/ui-shell/SkipToContent.js.map +1 -1
  813. package/dist/esm/ui-shell/TopNav/HamburgerMenuIcon.js +1 -1
  814. package/dist/esm/ui-shell/TopNav/TopNav.js +1 -1
  815. package/dist/esm/ui-shell/TopNav/TopNavLinksList.js +1 -1
  816. package/dist/esm/ui-shell/TopNav/TopNavListItem.js +1 -1
  817. package/dist/esm/ui-shell/TopNav/TopNavListItem.js.map +1 -1
  818. package/dist/esm/ui-shell/UiShell.js +11 -1
  819. package/dist/esm/ui-shell/UiShell.js.map +1 -1
  820. package/dist/esm/ui-shell/UiShellLogo.js +1 -1
  821. package/dist/esm/ui-shell/UiShellProvider.js.map +1 -1
  822. package/dist/esm/ui-shell/WideUiShellContent.js +40 -1
  823. package/dist/esm/ui-shell/WideUiShellContent.js.map +1 -1
  824. package/dist/esm/ui-shell/createUiShellFullscreenState.js +61 -0
  825. package/dist/esm/ui-shell/createUiShellFullscreenState.js.map +1 -0
  826. package/dist/esm/ui-shell/renderUiShell.js +23 -0
  827. package/dist/esm/ui-shell/renderUiShell.js.map +1 -1
  828. package/dist/esm/ui-shell/uiShellContentTypes.js.map +1 -1
  829. package/dist/esm/ui-shell/uiShellSharedConstants.js.map +1 -1
  830. package/dist/esm/ui-shell/useFullscreenChromeCollapse.js +69 -0
  831. package/dist/esm/ui-shell/useFullscreenChromeCollapse.js.map +1 -0
  832. package/dist/esm/useContrastMode.js.map +1 -1
  833. package/dist/esm/useStableCallback.js.map +1 -1
  834. package/dist/esm/useThemeCache.js.map +1 -1
  835. package/dist/esm/web-component/odysseyWebComponentVersion.generated.js +1 -1
  836. package/dist/esm/web-component/odysseyWebComponentVersion.generated.js.map +1 -1
  837. package/dist/esm/web-component/renderReactInWebComponent.js.map +1 -1
  838. package/dist/tsconfig.production.tsbuildinfo +1 -1
  839. package/dist/types/Accordion.d.ts.map +1 -1
  840. package/dist/types/Autocomplete.d.ts +5 -17
  841. package/dist/types/Autocomplete.d.ts.map +1 -1
  842. package/dist/types/Badge.d.ts.map +1 -1
  843. package/dist/types/Banner.d.ts.map +1 -1
  844. package/dist/types/Box.d.ts.map +1 -1
  845. package/dist/types/Breadcrumbs.d.ts +4 -8
  846. package/dist/types/Breadcrumbs.d.ts.map +1 -1
  847. package/dist/types/Buttons/BaseButton.d.ts +4 -8
  848. package/dist/types/Buttons/BaseButton.d.ts.map +1 -1
  849. package/dist/types/Buttons/BaseMenuButton.d.ts +1 -2
  850. package/dist/types/Buttons/BaseMenuButton.d.ts.map +1 -1
  851. package/dist/types/Buttons/Button.d.ts.map +1 -1
  852. package/dist/types/Buttons/MenuButton.d.ts.map +1 -1
  853. package/dist/types/Buttons/MenuItem.d.ts.map +1 -1
  854. package/dist/types/Callout.d.ts.map +1 -1
  855. package/dist/types/Card.d.ts.map +1 -1
  856. package/dist/types/CircularProgress.d.ts +1 -2
  857. package/dist/types/CircularProgress.d.ts.map +1 -1
  858. package/dist/types/ConditionalWrapper.d.ts +1 -2
  859. package/dist/types/ConditionalWrapper.d.ts.map +1 -1
  860. package/dist/types/CssBaseline.d.ts +1 -2
  861. package/dist/types/CssBaseline.d.ts.map +1 -1
  862. package/dist/types/DataTable/DataTable.d.ts +9 -19
  863. package/dist/types/DataTable/DataTable.d.ts.map +1 -1
  864. package/dist/types/DataTable/useRowReordering.d.ts.map +1 -1
  865. package/dist/types/DatePickers/DatePicker.d.ts.map +1 -1
  866. package/dist/types/DatePickers/TimeZonePicker.d.ts +1 -2
  867. package/dist/types/DatePickers/TimeZonePicker.d.ts.map +1 -1
  868. package/dist/types/DatePickers/datePickerTheme.d.ts.map +1 -1
  869. package/dist/types/DatePickers/useOdysseyDateFields.d.ts +4 -8
  870. package/dist/types/DatePickers/useOdysseyDateFields.d.ts.map +1 -1
  871. package/dist/types/Dialog.d.ts +5 -10
  872. package/dist/types/Dialog.d.ts.map +1 -1
  873. package/dist/types/Drawer.d.ts +4 -9
  874. package/dist/types/Drawer.d.ts.map +1 -1
  875. package/dist/types/EmptyState.d.ts.map +1 -1
  876. package/dist/types/Fields/Checkbox.d.ts.map +1 -1
  877. package/dist/types/Fields/CheckboxGroup.d.ts.map +1 -1
  878. package/dist/types/Fields/Hint.d.ts.map +1 -1
  879. package/dist/types/Fields/RadioGroup.d.ts.map +1 -1
  880. package/dist/types/Fieldset.d.ts.map +1 -1
  881. package/dist/types/FileUploader/FileUploader.d.ts +2 -4
  882. package/dist/types/FileUploader/FileUploader.d.ts.map +1 -1
  883. package/dist/types/Form.d.ts +6 -13
  884. package/dist/types/Form.d.ts.map +1 -1
  885. package/dist/types/FormCheckedProps.d.ts +4 -8
  886. package/dist/types/FormCheckedProps.d.ts.map +1 -1
  887. package/dist/types/IconWithTooltip.d.ts.map +1 -1
  888. package/dist/types/Link.d.ts.map +1 -1
  889. package/dist/types/NativeSelect.d.ts +2 -4
  890. package/dist/types/NativeSelect.d.ts.map +1 -1
  891. package/dist/types/OdysseyCacheProvider.d.ts +5 -11
  892. package/dist/types/OdysseyCacheProvider.d.ts.map +1 -1
  893. package/dist/types/OdysseyDesignTokensContext.d.ts.map +1 -1
  894. package/dist/types/OdysseyProvider.d.ts +1 -2
  895. package/dist/types/OdysseyProvider.d.ts.map +1 -1
  896. package/dist/types/OdysseyThemeProvider.d.ts +1 -2
  897. package/dist/types/OdysseyThemeProvider.d.ts.map +1 -1
  898. package/dist/types/Pagination/Pagination.d.ts +1 -2
  899. package/dist/types/Pagination/Pagination.d.ts.map +1 -1
  900. package/dist/types/PasswordField.d.ts +2 -14
  901. package/dist/types/PasswordField.d.ts.map +1 -1
  902. package/dist/types/ScreenReaderText.d.ts +1 -2
  903. package/dist/types/ScreenReaderText.d.ts.map +1 -1
  904. package/dist/types/SearchField.d.ts +2 -4
  905. package/dist/types/SearchField.d.ts.map +1 -1
  906. package/dist/types/Select.d.ts.map +1 -1
  907. package/dist/types/Stack.d.ts.map +1 -1
  908. package/dist/types/Status.d.ts.map +1 -1
  909. package/dist/types/Surface.d.ts.map +1 -1
  910. package/dist/types/Switch.d.ts.map +1 -1
  911. package/dist/types/Tabs.d.ts +1 -2
  912. package/dist/types/Tabs.d.ts.map +1 -1
  913. package/dist/types/Tag.d.ts.map +1 -1
  914. package/dist/types/TagList.d.ts.map +1 -1
  915. package/dist/types/TextField.d.ts +6 -12
  916. package/dist/types/TextField.d.ts.map +1 -1
  917. package/dist/types/Toast.d.ts +2 -4
  918. package/dist/types/Toast.d.ts.map +1 -1
  919. package/dist/types/ToastStack.d.ts.map +1 -1
  920. package/dist/types/Tooltip.d.ts.map +1 -1
  921. package/dist/types/Typography.d.ts +3 -6
  922. package/dist/types/Typography.d.ts.map +1 -1
  923. package/dist/types/__internal.d.ts +1 -2
  924. package/dist/types/__internal.d.ts.map +1 -1
  925. package/dist/types/charts/BarChart.d.ts +1 -3
  926. package/dist/types/charts/BarChart.d.ts.map +1 -1
  927. package/dist/types/charts/LineChart.d.ts +1 -3
  928. package/dist/types/charts/LineChart.d.ts.map +1 -1
  929. package/dist/types/charts/components/ChartContainer.d.ts +1 -3
  930. package/dist/types/charts/components/ChartContainer.d.ts.map +1 -1
  931. package/dist/types/charts/components/ChartError.d.ts +1 -3
  932. package/dist/types/charts/components/ChartError.d.ts.map +1 -1
  933. package/dist/types/charts/components/ChartFrame.d.ts +7 -16
  934. package/dist/types/charts/components/ChartFrame.d.ts.map +1 -1
  935. package/dist/types/charts/components/ChartPopoverContent.d.ts +14 -36
  936. package/dist/types/charts/components/ChartPopoverContent.d.ts.map +1 -1
  937. package/dist/types/charts/utils/chartTokens.d.ts +7 -25
  938. package/dist/types/charts/utils/chartTokens.d.ts.map +1 -1
  939. package/dist/types/charts/utils/chartTypes.d.ts +21 -55
  940. package/dist/types/charts/utils/chartTypes.d.ts.map +1 -1
  941. package/dist/types/charts/utils/formatChartValue.d.ts +7 -28
  942. package/dist/types/charts/utils/formatChartValue.d.ts.map +1 -1
  943. package/dist/types/charts/utils/getChartSeriesPointData.d.ts +5 -16
  944. package/dist/types/charts/utils/getChartSeriesPointData.d.ts.map +1 -1
  945. package/dist/types/charts/utils/hasDuplicateSeries.d.ts +1 -3
  946. package/dist/types/charts/utils/hasDuplicateSeries.d.ts.map +1 -1
  947. package/dist/types/charts/utils/resolveChartLocale.d.ts +3 -11
  948. package/dist/types/charts/utils/resolveChartLocale.d.ts.map +1 -1
  949. package/dist/types/charts/utils/useChartValueFormatter.d.ts +3 -10
  950. package/dist/types/charts/utils/useChartValueFormatter.d.ts.map +1 -1
  951. package/dist/types/charts/utils/useStableValue.d.ts +3 -12
  952. package/dist/types/charts/utils/useStableValue.d.ts.map +1 -1
  953. package/dist/types/createContrastColors.d.ts.map +1 -1
  954. package/dist/types/createOdysseyStyledComponent.d.ts +1 -3
  955. package/dist/types/createOdysseyStyledComponent.d.ts.map +1 -1
  956. package/dist/types/fullscreen/FullscreenButton.d.ts +26 -0
  957. package/dist/types/fullscreen/FullscreenButton.d.ts.map +1 -0
  958. package/dist/types/fullscreen/FullscreenRegion.d.ts +25 -0
  959. package/dist/types/fullscreen/FullscreenRegion.d.ts.map +1 -0
  960. package/dist/types/fullscreen/easeFullscreenTransition.d.ts +14 -0
  961. package/dist/types/fullscreen/easeFullscreenTransition.d.ts.map +1 -0
  962. package/dist/types/fullscreen/getBackgroundColorBehindElement.d.ts +22 -0
  963. package/dist/types/fullscreen/getBackgroundColorBehindElement.d.ts.map +1 -0
  964. package/dist/types/fullscreen/useFullscreen.d.ts +68 -0
  965. package/dist/types/fullscreen/useFullscreen.d.ts.map +1 -0
  966. package/dist/types/fullscreen/useFullscreenId.d.ts +18 -0
  967. package/dist/types/fullscreen/useFullscreenId.d.ts.map +1 -0
  968. package/dist/types/getLogicalBoundaries.d.ts +1 -2
  969. package/dist/types/getLogicalBoundaries.d.ts.map +1 -1
  970. package/dist/types/i18n.generated/i18n.d.ts +8 -0
  971. package/dist/types/i18n.generated/i18n.d.ts.map +1 -1
  972. package/dist/types/i18n.generated/i18n.resources.d.ts +12 -0
  973. package/dist/types/i18n.generated/i18n.resources.d.ts.map +1 -1
  974. package/dist/types/icons.generated/FullscreenEnter.d.ts +16 -0
  975. package/dist/types/icons.generated/FullscreenEnter.d.ts.map +1 -0
  976. package/dist/types/icons.generated/FullscreenExit.d.ts +16 -0
  977. package/dist/types/icons.generated/FullscreenExit.d.ts.map +1 -0
  978. package/dist/types/icons.generated/index.d.ts +2 -0
  979. package/dist/types/icons.generated/index.d.ts.map +1 -1
  980. package/dist/types/icons.generated/lazyIconDictionary.d.ts.map +1 -1
  981. package/dist/types/icons.generated/names.d.ts +1 -1
  982. package/dist/types/icons.generated/names.d.ts.map +1 -1
  983. package/dist/types/index.d.ts +5 -0
  984. package/dist/types/index.d.ts.map +1 -1
  985. package/dist/types/inputUtils.d.ts +2 -4
  986. package/dist/types/inputUtils.d.ts.map +1 -1
  987. package/dist/types/labs/AppTile.d.ts.map +1 -1
  988. package/dist/types/labs/DataFilters.d.ts +9 -20
  989. package/dist/types/labs/DataFilters.d.ts.map +1 -1
  990. package/dist/types/labs/DataTable.d.ts +10 -21
  991. package/dist/types/labs/DataTable.d.ts.map +1 -1
  992. package/dist/types/labs/DataView/BulkActionsMenu.d.ts.map +1 -1
  993. package/dist/types/labs/DataView/CardLayoutContent.d.ts +1 -1
  994. package/dist/types/labs/DataView/CardLayoutContent.d.ts.map +1 -1
  995. package/dist/types/labs/DataView/DataCard.d.ts +1 -2
  996. package/dist/types/labs/DataView/DataCard.d.ts.map +1 -1
  997. package/dist/types/labs/DataView/DataTable.d.ts +1 -0
  998. package/dist/types/labs/DataView/DataTable.d.ts.map +1 -1
  999. package/dist/types/labs/DataView/DataView.d.ts +1 -0
  1000. package/dist/types/labs/DataView/DataView.d.ts.map +1 -1
  1001. package/dist/types/labs/DataView/RowActions.d.ts.map +1 -1
  1002. package/dist/types/labs/DataView/TableLayoutContent.d.ts +1 -1
  1003. package/dist/types/labs/DataView/TableLayoutContent.d.ts.map +1 -1
  1004. package/dist/types/labs/DataView/TableSettings.d.ts +1 -1
  1005. package/dist/types/labs/DataView/TableSettings.d.ts.map +1 -1
  1006. package/dist/types/labs/DataView/componentTypes.d.ts +4 -13
  1007. package/dist/types/labs/DataView/componentTypes.d.ts.map +1 -1
  1008. package/dist/types/labs/DataView/tableConstants.d.ts.map +1 -1
  1009. package/dist/types/labs/DataView/testSupportData.d.ts.map +1 -1
  1010. package/dist/types/labs/DataView/useFilterConversion.d.ts.map +1 -1
  1011. package/dist/types/labs/OdysseyPickers/PickerVirtualizationListBox.d.ts.map +1 -1
  1012. package/dist/types/labs/PageTemplate/Layout.d.ts +1 -2
  1013. package/dist/types/labs/PageTemplate/Layout.d.ts.map +1 -1
  1014. package/dist/types/message-bus/createBrowserMessageBus.d.ts +56 -0
  1015. package/dist/types/message-bus/createBrowserMessageBus.d.ts.map +1 -0
  1016. package/dist/types/message-bus/createMessageChannel.d.ts +81 -0
  1017. package/dist/types/message-bus/createMessageChannel.d.ts.map +1 -0
  1018. package/dist/types/message-bus/fullscreen/createFullscreenId.d.ts +22 -0
  1019. package/dist/types/message-bus/fullscreen/createFullscreenId.d.ts.map +1 -0
  1020. package/dist/types/message-bus/fullscreen/createFullscreenModeHost.d.ts +44 -0
  1021. package/dist/types/message-bus/fullscreen/createFullscreenModeHost.d.ts.map +1 -0
  1022. package/dist/types/message-bus/fullscreen/createFullscreenModeMessageBus.d.ts +55 -0
  1023. package/dist/types/message-bus/fullscreen/createFullscreenModeMessageBus.d.ts.map +1 -0
  1024. package/dist/types/message-bus/fullscreen/fullscreenMessageChannel.d.ts +49 -0
  1025. package/dist/types/message-bus/fullscreen/fullscreenMessageChannel.d.ts.map +1 -0
  1026. package/dist/types/message-bus/fullscreen/fullscreenState.d.ts +66 -0
  1027. package/dist/types/message-bus/fullscreen/fullscreenState.d.ts.map +1 -0
  1028. package/dist/types/message-bus/fullscreen/watchElementDisconnection.d.ts +31 -0
  1029. package/dist/types/message-bus/fullscreen/watchElementDisconnection.d.ts.map +1 -0
  1030. package/dist/types/message-bus/index.d.ts +21 -0
  1031. package/dist/types/message-bus/index.d.ts.map +1 -0
  1032. package/dist/types/message-bus/messageGuards.d.ts +24 -0
  1033. package/dist/types/message-bus/messageGuards.d.ts.map +1 -0
  1034. package/dist/types/pendingDesignTokens/fullscreenTransitionTokens.d.ts +21 -0
  1035. package/dist/types/pendingDesignTokens/fullscreenTransitionTokens.d.ts.map +1 -0
  1036. package/dist/types/properties/ts/odyssey-react-mui.d.ts +4 -0
  1037. package/dist/types/properties/ts/odyssey-react-mui.d.ts.map +1 -1
  1038. package/dist/types/properties/ts/odyssey-react-mui_ok_PL.d.ts +4 -0
  1039. package/dist/types/properties/ts/odyssey-react-mui_ok_PL.d.ts.map +1 -1
  1040. package/dist/types/properties/ts/odyssey-react-mui_ok_SK.d.ts +4 -0
  1041. package/dist/types/properties/ts/odyssey-react-mui_ok_SK.d.ts.map +1 -1
  1042. package/dist/types/test-utils/appendToSandbox.d.ts +3 -16
  1043. package/dist/types/test-utils/appendToSandbox.d.ts.map +1 -1
  1044. package/dist/types/test-utils/getControlledElement.d.ts +1 -2
  1045. package/dist/types/test-utils/getControlledElement.d.ts.map +1 -1
  1046. package/dist/types/test-utils/renderWithOdysseyProvider.d.ts.map +1 -1
  1047. package/dist/types/test-utils/viewportTestSizes.d.ts.map +1 -1
  1048. package/dist/types/theme/components/Autocomplete.d.ts.map +1 -1
  1049. package/dist/types/theme/components/Button.d.ts.map +1 -1
  1050. package/dist/types/theme/components/CircularProgress.d.ts.map +1 -1
  1051. package/dist/types/theme/components/Drawer.d.ts.map +1 -1
  1052. package/dist/types/theme/components/Form.d.ts.map +1 -1
  1053. package/dist/types/theme/components/Input.d.ts.map +1 -1
  1054. package/dist/types/theme/components/Table.d.ts.map +1 -1
  1055. package/dist/types/theme/useAppElementContainerQuery.d.ts +1 -7
  1056. package/dist/types/theme/useAppElementContainerQuery.d.ts.map +1 -1
  1057. package/dist/types/theme/useContainerQuery.d.ts +2 -8
  1058. package/dist/types/theme/useContainerQuery.d.ts.map +1 -1
  1059. package/dist/types/theme/useMediaQuery.d.ts +12 -38
  1060. package/dist/types/theme/useMediaQuery.d.ts.map +1 -1
  1061. package/dist/types/tools/addSpecificity.d.ts +1 -2
  1062. package/dist/types/tools/addSpecificity.d.ts.map +1 -1
  1063. package/dist/types/ui-shell/NarrowUiShellContent.d.ts.map +1 -1
  1064. package/dist/types/ui-shell/SideNav/SideNav.d.ts.map +1 -1
  1065. package/dist/types/ui-shell/SideNav/SideNavItemContent.d.ts.map +1 -1
  1066. package/dist/types/ui-shell/SideNav/SideNavItemContentContext.d.ts +1 -3
  1067. package/dist/types/ui-shell/SideNav/SideNavItemContentContext.d.ts.map +1 -1
  1068. package/dist/types/ui-shell/SideNav/SideNavToggleButton.d.ts.map +1 -1
  1069. package/dist/types/ui-shell/SideNav/SortableList/SortableItem.d.ts.map +1 -1
  1070. package/dist/types/ui-shell/SideNav/SortableList/SortableList.d.ts +1 -3
  1071. package/dist/types/ui-shell/SideNav/SortableList/SortableList.d.ts.map +1 -1
  1072. package/dist/types/ui-shell/SideNav/SortableList/SortableOverlay.d.ts.map +1 -1
  1073. package/dist/types/ui-shell/SideNav/types.d.ts +6 -13
  1074. package/dist/types/ui-shell/SideNav/types.d.ts.map +1 -1
  1075. package/dist/types/ui-shell/SkipToContent.d.ts.map +1 -1
  1076. package/dist/types/ui-shell/TopNav/TopNavListItem.d.ts +1 -2
  1077. package/dist/types/ui-shell/TopNav/TopNavListItem.d.ts.map +1 -1
  1078. package/dist/types/ui-shell/UiShell.d.ts +11 -9
  1079. package/dist/types/ui-shell/UiShell.d.ts.map +1 -1
  1080. package/dist/types/ui-shell/UiShellProvider.d.ts +2 -4
  1081. package/dist/types/ui-shell/UiShellProvider.d.ts.map +1 -1
  1082. package/dist/types/ui-shell/WideUiShellContent.d.ts.map +1 -1
  1083. package/dist/types/ui-shell/createUiShellFullscreenState.d.ts +50 -0
  1084. package/dist/types/ui-shell/createUiShellFullscreenState.d.ts.map +1 -0
  1085. package/dist/types/ui-shell/renderUiShell.d.ts +27 -5
  1086. package/dist/types/ui-shell/renderUiShell.d.ts.map +1 -1
  1087. package/dist/types/ui-shell/uiShellContentTypes.d.ts +1 -2
  1088. package/dist/types/ui-shell/uiShellContentTypes.d.ts.map +1 -1
  1089. package/dist/types/ui-shell/uiShellSharedConstants.d.ts.map +1 -1
  1090. package/dist/types/ui-shell/useFullscreenChromeCollapse.d.ts +29 -0
  1091. package/dist/types/ui-shell/useFullscreenChromeCollapse.d.ts.map +1 -0
  1092. package/dist/types/useContrastMode.d.ts +2 -7
  1093. package/dist/types/useContrastMode.d.ts.map +1 -1
  1094. package/dist/types/useStableCallback.d.ts +5 -16
  1095. package/dist/types/useStableCallback.d.ts.map +1 -1
  1096. package/dist/types/useThemeCache.d.ts.map +1 -1
  1097. package/dist/types/web-component/odysseyWebComponentVersion.generated.d.ts +1 -1
  1098. package/dist/types/web-component/renderReactInWebComponent.d.ts +6 -12
  1099. package/dist/types/web-component/renderReactInWebComponent.d.ts.map +1 -1
  1100. package/package.json +19 -9
@@ -1 +1 @@
1
- {"version":3,"file":"BarChart.js","names":["Chart","Credits","Legend","PlotOptions","Tooltip","Popover","XAxis","YAxis","Accessibility","BarSeries","memo","useMemo","useStableCallback","ChartContainer","ChartFrame","ChartPopoverContent","useChartAnimation","useChartTokens","getChartSeriesPointData","hasDuplicateSeries","useChartValueFormatter","useStableValue","jsx","_jsx","jsxs","_jsxs","BarChartContent","ariaDescription","categories","onPointClick","pointPopoverValueFormat","series","xAxisFormat","xAxisLabel","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","categoryHoverBandColor","zIndex","xAxisLabels","valueStyle","xAxisTitle","align","rotatedLabelSpacing","labelStyle","yAxisLabels","formatter","context","format","value","Number","yAxisTitle","uprightLabelSpacing","barPlotOptions","bar","borderWidth","dataLabels","enabled","states","hover","brightness","seriesPlotOptions","children","type","description","landmarkVerbosity","crosshair","gridLineColor","lineColor","gridLineWidth","labels","tickColor","tickLength","legend","shared","default","popover","borderColor","padding","shadow","containerStyle","categoryPlaceholder","isShared","seriesLabelPlaceholder","valuePlaceholder","data","name","MemoizedBarChartContent","BarChart","props","stableOnPointClick","stableOnRetry","onRetry","hasError","isLoading","chartProps","stableChartProps","MemoizedBarChart","displayName"],"sources":["../../../src/charts/BarChart.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 { BarSeries } from \"@highcharts/react/series/Bar.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 { ChartPopoverContent } 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 props for a bar chart. */\nexport type BarChartProps = CartesianChartProps & {\n /**\n * The format for the values on the horizontal axis. A bar 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 xAxisFormat?: ChartValueFormat;\n};\n\nconst BarChartContent = ({\n ariaDescription,\n categories,\n onPointClick,\n pointPopoverValueFormat,\n series,\n xAxisFormat = \"compact\",\n xAxisLabel,\n yAxisLabel,\n}: BarChartProps) => {\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 BarChart 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 // BarChart 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\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.categoryHoverBandColor,\n zIndex: 0,\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 // This axis draws down 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 yAxisLabels = useMemo(\n () => ({\n formatter: (context: { value: unknown }) =>\n formatValue({\n format: xAxisFormat,\n value: Number(context.value),\n }),\n style: chartTokens.axis.valueStyle,\n }),\n [chartTokens, formatValue, xAxisFormat],\n );\n const yAxisTitle = 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 barPlotOptions = useMemo(\n () => ({\n borderRadius: chartTokens.bar.radius,\n borderWidth: 0,\n dataLabels: { enabled: false },\n states: {\n hover: { brightness: 0 },\n },\n }),\n [chartTokens],\n );\n const seriesPlotOptions = useMemo(() => ({ animation }), [animation]);\n\n return (\n <ChartContainer>\n <Chart options={options} type=\"bar\">\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.default}\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 seriesLabelPlaceholder=\"{series.name}\"\n valuePlaceholder=\"{point.custom.formattedValue}\"\n />\n </Popover>\n <PlotOptions bar={barPlotOptions} series={seriesPlotOptions} />\n <Credits enabled={false} />\n {seriesList.map(({ chartSeries, pointData }) => (\n <BarSeries\n data={pointData}\n key={chartSeries.name}\n name={chartSeries.name}\n />\n ))}\n </Chart>\n </ChartContainer>\n );\n};\n\n// `BarChart` 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 MemoizedBarChartContent = memo(BarChartContent);\n\n/**\n * Renders a horizontal bar chart that gets its theme from Odyssey design\n * tokens. The chart plots each series against the shared `categories` of the\n * chart. Each value in a series lines up by index with a category, so a\n * series and `categories` must have the same length. If a value is `null`,\n * the chart draws a gap at that category, and not a bar with a value of\n * zero.\n */\nconst BarChart = (props: BarChartProps) => {\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 `MemoizedBarChartContent` 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 <MemoizedBarChartContent {...stableChartProps} />\n </ChartFrame>\n );\n};\n\nconst MemoizedBarChart = memo(BarChart);\nMemoizedBarChart.displayName = \"BarChart\";\n\nexport { MemoizedBarChart as BarChart };\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,SAAS,QAAQ,iCAAiC;AAC3D,SAASC,IAAI,EAAEC,OAAO,QAAQ,OAAO;AAKrC,SAASC,iBAAiB,QAAQ,yBAAyB;AAC3D,SAASC,cAAc,QAAQ,gCAAgC;AAC/D,SAASC,UAAU,QAAQ,4BAA4B;AACvD,SAASC,mBAAmB,QAAQ,qCAAqC;AACzE,SAASC,iBAAiB,QAAQ,wBAAwB;AAC1D,SAASC,cAAc,QAAQ,wBAAwB;AACvD,SAASC,uBAAuB,QAAQ,oCAAoC;AAC5E,SAASC,kBAAkB,QAAQ,+BAA+B;AAClE,SAASC,sBAAsB,QAAQ,mCAAmC;AAC1E,SAASC,cAAc,QAAQ,2BAA2B;AAAC,SAAAC,GAAA,IAAAC,IAAA,EAAAC,IAAA,IAAAC,KAAA;AAa3D,MAAMC,eAAe,GAAGA,CAA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,EAEb5E,IAAA,CAACqG,uBAAuB;MAAA,GAAKS;IAAgB,CAAG;EAAC,CACvC,CAAC;AAEjB,CAAC;AAED,MAAMC,gBAAgB,GAAG5H,IAAI,CAACmH,QAAQ,CAAC;AACvCS,gBAAgB,CAACC,WAAW,0CAAa;AAEzC,SAASD,gBAAgB,IAAIT,QAAQ","ignoreList":[]}
1
+ {"version":3,"file":"BarChart.js","names":["Chart","Credits","Legend","PlotOptions","Tooltip","Popover","XAxis","YAxis","Accessibility","BarSeries","memo","useMemo","useStableCallback","ChartContainer","ChartFrame","ChartPopoverContent","useChartAnimation","useChartTokens","getChartSeriesPointData","hasDuplicateSeries","useChartValueFormatter","useStableValue","jsx","_jsx","jsxs","_jsxs","BarChartContent","ariaDescription","categories","onPointClick","pointPopoverValueFormat","series","xAxisFormat","xAxisLabel","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","categoryHoverBandColor","zIndex","xAxisLabels","valueStyle","xAxisTitle","align","rotatedLabelSpacing","labelStyle","yAxisLabels","formatter","context","format","value","Number","yAxisTitle","uprightLabelSpacing","barPlotOptions","bar","borderWidth","dataLabels","enabled","states","hover","brightness","seriesPlotOptions","children","type","description","landmarkVerbosity","crosshair","gridLineColor","lineColor","gridLineWidth","labels","tickColor","tickLength","legend","shared","default","popover","borderColor","padding","shadow","containerStyle","categoryPlaceholder","isShared","seriesLabelPlaceholder","valuePlaceholder","data","name","MemoizedBarChartContent","BarChart","props","stableOnPointClick","stableOnRetry","onRetry","hasError","isLoading","chartProps","stableChartProps","MemoizedBarChart","displayName"],"sources":["../../../src/charts/BarChart.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 { BarSeries } from \"@highcharts/react/series/Bar.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 { ChartPopoverContent } 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 props for a bar chart. */\nexport type BarChartProps = CartesianChartProps & {\n /**\n * The format for the values on the horizontal axis. A bar chart shows its numeric values on that axis. If no preset gives the format that you need, supply a function.\n * @default \"compact\"\n */\n xAxisFormat?: ChartValueFormat;\n};\n\nconst BarChartContent = ({\n ariaDescription,\n categories,\n onPointClick,\n pointPopoverValueFormat,\n series,\n xAxisFormat = \"compact\",\n xAxisLabel,\n yAxisLabel,\n}: BarChartProps) => {\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. Highcharts registers a new click handler for a point whenever the identity of that point's data changes. Without this memo, every render would build new data, so Highcharts would tear down and re-register its handlers even when nothing changed.\n //\n // This memo works because BarChart passes its props through useStableValue. That hook keeps `series` at the same identity across a render that does not change the data, so this memo does not rerun. BarChart also passes `onPointClick` through useStableCallback, so an inline handler from the caller keeps the same identity here.\n //\n // useStableValue compares a function by identity, not by what the function does. `pointPopoverValueFormat` accepts a function, and this memo formats each value at build time. So a caller that supplies a new function on every render for that property still defeats this memo. Such a caller 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\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 order of `seriesColors`, in `chartTokens.ts`, changes the color of every series.\n colors: chartTokens.seriesColors,\n // The chart library ships a default title text of \"Chart title\". Its documented way to disable a title is a `text` of undefined, which draws an empty text element that measures zero and so reserves no height. A whole `title` of undefined does not work, because the React wrapper 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.categoryHoverBandColor,\n zIndex: 0,\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 // This axis draws down 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 yAxisLabels = useMemo(\n () => ({\n formatter: (context: { value: unknown }) =>\n formatValue({\n format: xAxisFormat,\n value: Number(context.value),\n }),\n style: chartTokens.axis.valueStyle,\n }),\n [chartTokens, formatValue, xAxisFormat],\n );\n const yAxisTitle = 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 barPlotOptions = useMemo(\n () => ({\n borderRadius: chartTokens.bar.radius,\n borderWidth: 0,\n dataLabels: { enabled: false },\n states: {\n hover: { brightness: 0 },\n },\n }),\n [chartTokens],\n );\n const seriesPlotOptions = useMemo(() => ({ animation }), [animation]);\n\n return (\n <ChartContainer>\n <Chart options={options} type=\"bar\">\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.default}\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 seriesLabelPlaceholder=\"{series.name}\"\n valuePlaceholder=\"{point.custom.formattedValue}\"\n />\n </Popover>\n <PlotOptions bar={barPlotOptions} series={seriesPlotOptions} />\n <Credits enabled={false} />\n {seriesList.map(({ chartSeries, pointData }) => (\n <BarSeries\n data={pointData}\n key={chartSeries.name}\n name={chartSeries.name}\n />\n ))}\n </Chart>\n </ChartContainer>\n );\n};\n\n// `BarChart` passes props that keep the same identity across a render. This memo then stops a render of the caller from reaching the children of `Chart`. A new child identity forces Highcharts to rebuild and redraw the whole chart.\nconst MemoizedBarChartContent = memo(BarChartContent);\n\n/**\n * Renders a horizontal bar chart that gets its theme from Odyssey design tokens. The chart plots each series against the shared `categories` of the chart. Each value in a series lines up by index with a category, so a series and `categories` must have the same length. If a value is `null`, the chart draws a gap at that category, and not a bar with a value of zero.\n */\nconst BarChart = (props: BarChartProps) => {\n // Highcharts rebuilds and redraws the whole chart when the identity of any React child changes. A caller that builds the `series` array inside its own render creates a new array on every render. That new array would reach every child below this point.\n //\n // useStableValue holds one chart props object while its contents stay the same, so `MemoizedBarChartContent` keeps the same children across those renders.\n //\n // useStableValue cannot hold `onPointClick`, because it compares a function by identity. An inline handler therefore arrives with a new identity on each render of the caller, and every memo below misses. useStableCallback wraps that handler in one callback of its own that keeps the same 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 nothing. The chart attaches a click listener to a point as soon as it finds one, so a chart with no `onPointClick` must pass nothing at all. The condition below keeps that behavior, and returns the one stable 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 <MemoizedBarChartContent {...stableChartProps} />\n </ChartFrame>\n );\n};\n\nconst MemoizedBarChart = memo(BarChart);\nMemoizedBarChart.displayName = \"BarChart\";\n\nexport { MemoizedBarChart as BarChart };\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,SAAS,QAAQ,iCAAiC;AAC3D,SAASC,IAAI,EAAEC,OAAO,QAAQ,OAAO;AAKrC,SAASC,iBAAiB,QAAQ,yBAAyB;AAC3D,SAASC,cAAc,QAAQ,gCAAgC;AAC/D,SAASC,UAAU,QAAQ,4BAA4B;AACvD,SAASC,mBAAmB,QAAQ,qCAAqC;AACzE,SAASC,iBAAiB,QAAQ,wBAAwB;AAC1D,SAASC,cAAc,QAAQ,wBAAwB;AACvD,SAASC,uBAAuB,QAAQ,oCAAoC;AAC5E,SAASC,kBAAkB,QAAQ,+BAA+B;AAClE,SAASC,sBAAsB,QAAQ,mCAAmC;AAC1E,SAASC,cAAc,QAAQ,2BAA2B;AAAC,SAAAC,GAAA,IAAAC,IAAA,EAAAC,IAAA,IAAAC,KAAA;AAW3D,MAAMC,eAAe,GAAGA,CAAC;EACvBC,eAAe;EACfC,UA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AuB;MAAA,GAAKS;IAAgB,CAAG;EAAC,CACvC,CAAC;AAEjB,CAAC;AAED,MAAMC,gBAAgB,GAAG5H,IAAI,CAACmH,QAAQ,CAAC;AACvCS,gBAAgB,CAACC,WAAW,0CAAa;AAEzC,SAASD,gBAAgB,IAAIT,QAAQ","ignoreList":[]}
@@ -234,6 +234,6 @@ const LineChart = props => {
234
234
  });
235
235
  };
236
236
  const MemoizedLineChart = memo(LineChart);
237
- MemoizedLineChart.displayName = "LineChart::pkg=odyssey&odysseyV=1.70.1";
237
+ MemoizedLineChart.displayName = "LineChart::pkg=odyssey&odysseyV=1.71.1";
238
238
  export { MemoizedLineChart as LineChart };
239
239
  //# sourceMappingURL=LineChart.js.map
@@ -1 +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,EACLC,KAAK,QACA,mBAAmB;AAC1B,SAASC,aAAa,QAAQ,4CAA4C;AAC1E,SAASC,UAAU,QAAQ,kCAAkC;AAC7D,SAASC,IAAI,EAAEC,OAAO,QAAQ,OAAO;AAKrC,SAASC,iBAAiB,QAAQ,yBAAyB;AAC3D,SAASC,cAAc,QAAQ,gCAAgC;AAC/D,SAASC,UAAU,QAAQ,4BAA4B;AACvD,SAEEC,mBAAmB,QACd,qCAAqC;AAC5C,SAASC,iBAAiB,QAAQ,wBAAwB;AAC1D,SAASC,cAAc,QAAQ,wBAAwB;AACvD,SAASC,uBAAuB,QAAQ,oCAAoC;AAC5E,SAASC,kBAAkB,QAAQ,+BAA+B;AAClE,SAASC,sBAAsB,QAAQ,mCAAmC;AAC1E,SAASC,cAAc,QAAQ,2BAA2B;AAAC,SAAAC,GAAA,IAAAC,IAAA,EAAAC,IAAA,IAAAC,KAAA;AAU3D,MAAMC,0BAA0B,GAAG,CACjC,QAAQ,EAC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AIC,KAAqB,IAAK;EAqB3C,MAAMC,kBAAkB,GAAG/H,iBAAiB,CAAC8H,KAAK,CAAC5G,YAAY,CAAC;EAChE,MAAM8G,aAAa,GAAGhI,iBAAiB,CAAC8H,KAAK,CAACG,OAAO,CAAC;EACtD,MAAM;IAAEC,QAAQ;IAAEC,SAAS;IAAEF,OAAO;IAAElF,QAAQ;IAAEG,KAAK;IAAE,GAAGkF;EAAW,CAAC,GACpEN,KAAK;EACP,MAAMO,gBAAgB,GAAG5H,cAAc,CAAC;IACtC,GAAG2H,UAAU;IACblH,YAAY,EAAE4G,KAAK,CAAC5G,YAAY,GAAG6G,kBAAkB,GAAG9E;EAC1D,CAAC,CAAC;EAEF,OACEtC,IAAA,CAACT,UAAU;IACTgI,QAAQ,EAAEA,QAAS;IACnBC,SAAS,EAAEA,SAAU;IACrBF,OAAO,EAAEA,OAAO,GAAGD,aAAa,GAAG/E,SAAU;IAC7CF,QAAQ,EAAEA,QAAS;IACnBG,KAAK,EAAEA,KAAM;IAAAkD,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":[]}
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 them to the series of a chart. The chart draws these markers itself. This list exists so that the popover can draw the same marker next to the name of 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 list, or a `marker.symbol` set on a series all make the popover show the 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 numeric values on that axis. If no preset gives the format that you need, 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. Highcharts registers a new click handler for a point whenever the identity of that point's data changes. Without this memo, every render would build new data, so Highcharts would tear down and re-register its handlers even when nothing changed.\n //\n // This memo works because LineChart passes its props through useStableValue. That hook keeps `series` at the same identity across a render that does not change the data, so this memo does not rerun. LineChart also passes `onPointClick` through useStableCallback, so an inline handler from the caller keeps the same identity here.\n //\n // useStableValue compares a function by identity, not by what the function does. `pointPopoverValueFormat` accepts a function, and this memo formats each value at build time. So a caller that supplies a new function on every render for that property still defeats this memo. Such a caller 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 order of `seriesColors`, in `chartTokens.ts`, changes the color of every series.\n colors: chartTokens.seriesColors,\n // The chart library ships a default title text of \"Chart title\". Its documented way to disable a title is a `text` of undefined, which draws an empty text element that measures zero and so reserves no height. A whole `title` of undefined does not work, because the React wrapper 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 memo then stops a render of the caller from reaching the children of `Chart`. A new child identity forces Highcharts to rebuild and redraw the whole chart.\nconst MemoizedLineChartContent = memo(LineChartContent);\n\n/**\n * Renders a line chart that gets its theme from Odyssey design tokens. The chart plots each series against the shared `categories` of the chart. Each value in a series lines up by index with a category, so a series and `categories` must have the same length. If a value is `null`, the chart 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 a user identify a series without color. The chart library applies its five 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 React child changes. A caller that builds the `series` array inside its own render creates a new array on every render. That new array would reach every child below this point.\n //\n // useStableValue holds one chart props object while its contents stay the same, so `MemoizedLineChartContent` keeps the same children across those renders.\n //\n // useStableValue cannot hold `onPointClick`, because it compares a function by identity. An inline handler therefore arrives with a new identity on each render of the caller, and every memo below misses. useStableCallback wraps that handler in one callback of its own that keeps the same 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 nothing. The chart attaches a click listener to a point as soon as it finds one, so a chart with no `onPointClick` must pass nothing at all. The condition below keeps that behavior, and returns the one stable 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,EACLC,KAAK,QACA,mBAAmB;AAC1B,SAASC,aAAa,QAAQ,4CAA4C;AAC1E,SAASC,UAAU,QAAQ,kCAAkC;AAC7D,SAASC,IAAI,EAAEC,OAAO,QAAQ,OAAO;AAKrC,SAASC,iBAAiB,QAAQ,yBAAyB;AAC3D,SAASC,cAAc,QAAQ,gCAAgC;AAC/D,SAASC,UAAU,QAAQ,4BAA4B;AACvD,SAEEC,mBAAmB,QACd,qCAAqC;AAC5C,SAASC,iBAAiB,QAAQ,wBAAwB;AAC1D,SAASC,cAAc,QAAQ,wBAAwB;AACvD,SAASC,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AU;QACT6H,IAAI,EAAE3F,SAAU;QAEhB4F,IAAI,EAAE7F,WAAW,CAAC6F;MAAK,GADlB7F,WAAW,CAAC6F,IAElB,CACF,CAAC;IAAA,CACG;EAAC,CACM,CAAC;AAErB,CAAC;AAGD,MAAMC,wBAAwB,GAAG9H,IAAI,CAACiB,gBAAgB,CAAC;AAOvD,MAAM8G,SAAS,GAAIC,KAAqB,IAAK;EAQ3C,MAAMC,kBAAkB,GAAG/H,iBAAiB,CAAC8H,KAAK,CAAC5G,YAAY,CAAC;EAChE,MAAM8G,aAAa,GAAGhI,iBAAiB,CAAC8H,KAAK,CAACG,OAAO,CAAC;EACtD,MAAM;IAAEC,QAAQ;IAAEC,SAAS;IAAEF,OAAO;IAAElF,QAAQ;IAAEG,KAAK;IAAE,GAAGkF;EAAW,CAAC,GACpEN,KAAK;EACP,MAAMO,gBAAgB,GAAG5H,cAAc,CAAC;IACtC,GAAG2H,UAAU;IACblH,YAAY,EAAE4G,KAAK,CAAC5G,YAAY,GAAG6G,kBAAkB,GAAG9E;EAC1D,CAAC,CAAC;EAEF,OACEtC,IAAA,CAACT,UAAU;IACTgI,QAAQ,EAAEA,QAAS;IACnBC,SAAS,EAAEA,SAAU;IACrBF,OAAO,EAAEA,OAAO,GAAGD,aAAa,GAAG/E,SAAU;IAC7CF,QAAQ,EAAEA,QAAS;IACnBG,KAAK,EAAEA,KAAM;IAAAkD,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":[]}
@@ -1 +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":[]}
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 corrects the optical alignment of rectangular legend symbols. Highcharts 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;AAKrD,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":[]}
@@ -65,6 +65,6 @@ const ChartError = ({
65
65
  });
66
66
  };
67
67
  const MemoizedChartError = memo(ChartError);
68
- MemoizedChartError.displayName = "ChartError::pkg=odyssey&odysseyV=1.70.1";
68
+ MemoizedChartError.displayName = "ChartError::pkg=odyssey&odysseyV=1.71.1";
69
69
  export { MemoizedChartError as ChartError };
70
70
  //# sourceMappingURL=ChartError.js.map
@@ -1 +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":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,SAASA,IAAI,QAAQ,OAAO;AAE5B,SAASC,MAAM,QAAQ,yBAAyB;AAChD,SAASC,4BAA4B,QAAQ,uCAAuC;AACpF,SAASC,cAAc,QAAQ,8BAA8B;AAC7D,SAASC,WAAW,QAAQ,kCAAkC;AAC9D,SAASC,QAAQ,EAAEC,SAAS,QAAQ,qBAAqB;AAAC,SAAAC,GAAA,IAAAC,IAAA,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AAEL,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":[]}
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 error state. The error state shows no retry button when the caller omits this property.\n */\n onRetry?: () => void;\n};\n\n// The parent is a single-row grid that stretches this component to the chart's full height. Centering here, rather than in the parent, keeps the 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 its own block margins. Those margins would add to the gap below and throw off the measured spacing, so this resets them. The selector names both 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 place of its plot when the chart fails to load its data.\n */\nconst ChartError = ({ onRetry }: ChartErrorProps) => {\n const { t } = useTranslation();\n\n return (\n <OuterContainer>\n <WarningIcon />\n <TextGroup role=\"alert\">\n <Heading5>{t(\"chart.error.heading\")}</Heading5>\n <Paragraph>{t(\"chart.error.text\")}</Paragraph>\n </TextGroup>\n {onRetry && (\n <Button\n label={t(\"chart.error.retry\")}\n onClick={onRetry}\n variant=\"secondary\"\n />\n )}\n </OuterContainer>\n );\n};\n\nconst MemoizedChartError = memo(ChartError);\nMemoizedChartError.displayName = \"ChartError\";\n\nexport { MemoizedChartError as ChartError };\n"],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,SAASA,IAAI,QAAQ,OAAO;AAE5B,SAASC,MAAM,QAAQ,yBAAyB;AAChD,SAASC,4BAA4B,QAAQ,uCAAuC;AACpF,SAASC,cAAc,QAAQ,8BAA8B;AAC7D,SAASC,WAAW,QAAQ,kCAAkC;AAC9D,SAASC,QAAQ,EAAEC,SAAS,QAAQ,qBAAqB;AAAC,SAAAC,GAAA,IAAAC,IAAA,EAAAC,IAAA,IAA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BM,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":[]}
@@ -105,6 +105,6 @@ const ChartFrame = ({
105
105
  });
106
106
  };
107
107
  const MemoizedChartFrame = memo(ChartFrame);
108
- MemoizedChartFrame.displayName = "ChartFrame::pkg=odyssey&odysseyV=1.70.1";
108
+ MemoizedChartFrame.displayName = "ChartFrame::pkg=odyssey&odysseyV=1.71.1";
109
109
  export { MemoizedChartFrame as ChartFrame };
110
110
  //# sourceMappingURL=ChartFrame.js.map
@@ -1 +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;EAAEG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a,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":[]}
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 no loading state.\n */\n children: ReactElement;\n /**\n * If `true`, the frame shows an error state in place of the chart body. `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 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 the error state. The error state shows no retry button when the caller 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 description.\n */\n onRetry?: () => void;\n /**\n * The subtitle text, shown below the title. The frame ignores this text when `title` has no value, because a subtitle explains a title and means nothing alone.\n */\n subtitle?: string;\n /**\n * The title text, shown as a real heading above the chart body. The heading 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 on the parent element still controls the final height, because this value 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 the header does not need.\n//\n// `gap` needs a flex or grid container to have any effect, and a `header` is a block element by default. `Heading4` renders an `h4` and `Paragraph` renders a `p`, and each carries its own block margins, which would add to 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 would otherwise refuse to shrink below the height of the chart it holds. The zero minimum height lets the body take the flex space that `flex: 1` assigns to it.\n//\n// The body is also a single-row grid. The charting library draws a bare div with no class name and no height of its own. A block-level child of a flex column collapses to the height of its own content, which is zero before the chart draws, and the library then picks a fixed height of its own. A grid child stretches to fill its row by default, so the bare div fills the body without this file naming a class or reaching into a child with a 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 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 shows the title and the subtitle as real HTML, and a body below it. The body shows exactly one of three states: a loading skeleton, an error state, or the chart itself. The header stays on screen in all three 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;AAkC7C,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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C,KAAA,CAACC,KAAK;IACJ,mBAAiB+B,SAAS,GAAGD,SAAS,GAAGI,SAAU;IACnD7B,SAAS,EAAEA,SAAU;IAAAkB,QAAA,GAEpBQ,SAAS,IACRhC,KAAA,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":[]}
@@ -114,5 +114,5 @@ export const ChartPopoverContent = ({
114
114
  }) : row]
115
115
  });
116
116
  };
117
- ChartPopoverContent.displayName = "ChartPopoverContent::pkg=odyssey&odysseyV=1.70.1";
117
+ ChartPopoverContent.displayName = "ChartPopoverContent::pkg=odyssey&odysseyV=1.71.1";
118
118
  //# sourceMappingURL=ChartPopoverContent.js.map
@@ -1 +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,CAA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AAA,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":[]}
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 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 carries the color of the series.\n * - If `'swatch'`, the popover draws the color in a rounded square. A chart 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 of the series at its center. A line chart asks for this, and it passes the 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 draws its markers as SVG through Highcharts, which the popover cannot reuse, because Highcharts serializes the popover to HTML. The square needs no rule, 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. Highcharts substitutes the value when it renders the popover. For example `\"{point.key}\"`.\n */\n categoryPlaceholder: string;\n /**\n * The chart tokens from `useChartTokens`. The caller passes them as a prop because this component cannot read the token context. See the note on {@link ChartPopoverContent}.\n */\n chartTokens: ChartTokens;\n /**\n * If `true`, the series row repeats once for each point in the category under the pointer. The component puts that row inside the Highcharts `{#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 popover chooses the mark, and it passes the marker symbols that its own 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 example `\"{series.name}\"`.\n */\n seriesLabelPlaceholder: string;\n /**\n * The Highcharts format-string placeholder for the value that the popover shows. For example `\"{point.custom.formattedValue}\"`, which holds the value already formatted for the user's locale. The placeholder `\"{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 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 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 instead of adding units to them.\n *\n * The component owns the markup and indicator choice so callers do not have to reproduce these serialization rules. Highcharts escapes values substituted 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;AAwBrD,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,EA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;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":[]}
@@ -1 +1 @@
1
- {"version":3,"file":"chartTokens.js","names":["useMemo","useOdysseyDesignTokens","CSS_ROOT_FONT_SIZE_PIXELS","chartTokens","ChartAnimationDuration","ChartLegendRectangleVerticalOffset","ChartLegendSymbolSize","ChartLineHoverStrokeWidthPlus","ChartLineMarkerHoverHaloOpacity","ChartLineMarkerHoverHaloSize","ChartLineMarkerHoverSize","ChartLineMarkerSize","ChartLineStrokeWidth","ChartMinHeight","ChartYAxisLabelBaselineCompensation","getTokenValueAsPixels","tokenValue","typographySizeBase","trimEnd","endsWith","parseFloat","getChartTokens","odysseyDesignTokens","toPixels","TypographySizeBase","lineHeight","TypographySizeBody","TypographyLineHeightBody","axisValueStyle","color","TypographyColorSubordinate","fontFamily","TypographyFamilyBody","fontSize","fontWeight","TypographyWeightBody","animationDuration","minHeight","seriesColors","HueBlue600","HueAccentThree400","HueAccentTwo400","HueAccentOne600","HueYellow400","HueGreen600","axis","categoryHoverBandColor","HueNeutral50","crosshairColor","BorderColorDisplay","crosshairWidth","BorderWidthMain","gridLineWidth","labelStyle","lineColor","rotatedLabelSpacing","Spacing2","uprightLabelSpacing","valueStyle","bar","radius","BorderRadiusTight","chart","backgroundColor","edgeSpacing","topEdgeSpacing","Spacing3","focusRing","BorderColorPrimaryControl","offset","FocusOutlineOffsetMain","width","FocusOutlineWidthMain","legend","default","symbolHeight","symbolRadius","symbolWidth","line","Spacing4","shared","alignColumns","borderWidth","itemDistance","itemHiddenStyle","TypographyColorDisabled","itemHoverStyle","TypographyColorBody","itemStyle","margin","padding","symbolPadding","hoverStrokeWidthPlus","markerHoverHaloOpacity","markerHoverHaloRadius","markerHoverRadius","markerRadius","strokeWidth","popover","HueNeutralWhite","borderColor","borderRadius","BorderRadiusMain","containerStyle","boxShadow","DepthMedium","content","boldFontWeight","TypographyWeightBodyBold","lineIndicatorSize","lineIndicatorThickness","lineMarkerSize","rowGap","Spacing1","rowSpacing","swatchRadius","swatchSize","textColor","useChartTokens"],"sources":["../../../../src/charts/utils/chartTokens.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 type { DesignTokens } from \"../../OdysseyDesignTokensContext.js\";\n\nimport { useOdysseyDesignTokens } from \"../../OdysseyDesignTokensContext.js\";\n\nconst CSS_ROOT_FONT_SIZE_PIXELS = 16;\n\n/**\n * The chart values that no Odyssey design token supplies. Each entry is either\n * a Highcharts implementation detail that no token will ever cover, or a chart\n * specification value that the design team has not yet turned into a token.\n */\nexport const chartTokens = {\n // TransitionDurationMainAsNumber is 100, and the spec asks for 250.\n ChartAnimationDuration: 250,\n // Highcharts positions its rectangular legend symbols from the text\n // baseline, so a 14px square needs this downward optical correction.\n ChartLegendRectangleVerticalOffset: 1,\n ChartLegendSymbolSize: 14,\n // The amount Highcharts adds to ChartLineStrokeWidth on hover, for the\n // spec's 3px hover stroke. Set explicitly, so an undocumented Highcharts\n // default cannot move the hover stroke out of spec.\n ChartLineHoverStrokeWidthPlus: 1,\n ChartLineMarkerHoverHaloOpacity: 0.25,\n ChartLineMarkerHoverHaloSize: 20,\n ChartLineMarkerHoverSize: 12,\n ChartLineMarkerSize: 8,\n // The spec asks for 2px, and BorderWidthHeavy is 1.5px.\n ChartLineStrokeWidth: 2,\n // The floor for a consumer that sets no height on the chart container. The\n // spacing scale stops at Spacing9, which is 56px.\n ChartMinHeight: 400,\n // Highcharts gives a rotated axis label less visible space than an upright\n // one at the same `title.margin`. The comment on `axis.rotatedLabelSpacing`\n // below gives the cause.\n ChartYAxisLabelBaselineCompensation: 8,\n} as const;\n\n/**\n * Converts an Odyssey design token length to a pixel number, because the\n * charting library takes numbers and not CSS length strings. The function\n * multiplies a `rem` token by the base font size. The function uses a `px`\n * token without a change, because a `px` value is already absolute. Therefore\n * the function does not scale a value such as `BorderRadiusTight` as a `rem`\n * value.\n */\nexport const getTokenValueAsPixels = ({\n tokenValue,\n typographySizeBase,\n}: {\n tokenValue: string;\n typographySizeBase: string;\n}) =>\n tokenValue.trimEnd().endsWith(\"rem\")\n ? parseFloat(tokenValue) *\n ((parseFloat(typographySizeBase) / 100) * CSS_ROOT_FONT_SIZE_PIXELS)\n : parseFloat(tokenValue);\n\n/**\n * Builds the chart values from the Odyssey design tokens. Every value sits in\n * the group named after the part of the chart that it styles, so a chart reads\n * one group per Highcharts child.\n *\n * {@link useChartTokens} wraps this function for a component. This function\n * takes the tokens as an argument, so a test calls it without a React render.\n */\nexport const getChartTokens = ({\n odysseyDesignTokens,\n}: {\n odysseyDesignTokens: DesignTokens;\n}) => {\n const toPixels = (tokenValue: string) =>\n getTokenValueAsPixels({\n tokenValue,\n typographySizeBase: odysseyDesignTokens.TypographySizeBase,\n });\n\n // Highcharts reads a line height with `parseInt`, so it turns a unitless\n // ratio such as `1.5` into 1 pixel and draws the wrapped lines of a label\n // on top of each other.\n const lineHeight = `${\n toPixels(odysseyDesignTokens.TypographySizeBody) *\n odysseyDesignTokens.TypographyLineHeightBody\n }px`;\n\n // The axis values, the axis labels and the legend items share this\n // one style. The design specifies the same text treatment for all three,\n // so an axis label carries no more weight than an axis value.\n const axisValueStyle = {\n color: odysseyDesignTokens.TypographyColorSubordinate,\n fontFamily: odysseyDesignTokens.TypographyFamilyBody,\n fontSize: odysseyDesignTokens.TypographySizeBody,\n fontWeight: odysseyDesignTokens.TypographyWeightBody,\n lineHeight,\n };\n\n return {\n animationDuration: chartTokens.ChartAnimationDuration,\n minHeight: `${chartTokens.ChartMinHeight}px`,\n\n /**\n * The palette that a chart gives to the charting library as its series\n * colors. The library assigns these colors to the series in order. A\n * caller cannot set the color of a series.\n */\n seriesColors: [\n odysseyDesignTokens.HueBlue600,\n odysseyDesignTokens.HueAccentThree400,\n odysseyDesignTokens.HueAccentTwo400,\n odysseyDesignTokens.HueAccentOne600,\n odysseyDesignTokens.HueYellow400,\n odysseyDesignTokens.HueGreen600,\n ],\n\n axis: {\n categoryHoverBandColor: odysseyDesignTokens.HueNeutral50,\n crosshairColor: odysseyDesignTokens.BorderColorDisplay,\n crosshairWidth: toPixels(odysseyDesignTokens.BorderWidthMain),\n gridLineWidth: toPixels(odysseyDesignTokens.BorderWidthMain),\n labelStyle: axisValueStyle,\n // The grid lines, the axis line and the ticks share this one color.\n lineColor: odysseyDesignTokens.BorderColorDisplay,\n // Highcharts renders the gap beside a rotated axis label about 3px\n // smaller than requested. Add that difference back so both axis labels\n // appear Spacing2 away from their values.\n rotatedLabelSpacing:\n toPixels(odysseyDesignTokens.Spacing2) +\n chartTokens.ChartYAxisLabelBaselineCompensation,\n uprightLabelSpacing: toPixels(odysseyDesignTokens.Spacing2),\n valueStyle: axisValueStyle,\n },\n\n bar: {\n radius: odysseyDesignTokens.BorderRadiusTight,\n },\n\n chart: {\n backgroundColor: \"transparent\",\n // Without some outer spacing, Highcharts clips the left edge of the\n // widest Y axis value.\n edgeSpacing: toPixels(odysseyDesignTokens.Spacing2),\n fontFamily: odysseyDesignTokens.TypographyFamilyBody,\n topEdgeSpacing: toPixels(odysseyDesignTokens.Spacing3),\n },\n\n focusRing: {\n color: odysseyDesignTokens.BorderColorPrimaryControl,\n offset: toPixels(odysseyDesignTokens.FocusOutlineOffsetMain),\n // Highcharts types the focus border style as a `CSSObject`, so this one\n // radius carries its unit while every other length here is a number.\n radius: `${toPixels(odysseyDesignTokens.BorderRadiusTight)}px`,\n width: toPixels(odysseyDesignTokens.FocusOutlineWidthMain),\n },\n\n legend: {\n default: {\n symbolHeight: chartTokens.ChartLegendSymbolSize,\n symbolRadius: toPixels(odysseyDesignTokens.BorderRadiusTight),\n symbolWidth: chartTokens.ChartLegendSymbolSize,\n },\n line: {\n // Highcharts also uses this as the limit for the marker in the\n // legend: it draws that marker at a radius of half this height, or\n // at `line.markerRadius`, whichever is less. Both come from\n // ChartLineMarkerSize, so the legend cannot cut the marker down.\n symbolHeight: chartTokens.ChartLineMarkerSize,\n // The line symbol spans Spacing4, the same width as the line in the\n // popover series indicator.\n symbolWidth: toPixels(odysseyDesignTokens.Spacing4),\n },\n shared: {\n alignColumns: false,\n borderWidth: 0,\n itemDistance: toPixels(odysseyDesignTokens.Spacing4),\n // Highcharts merges this over `itemStyle` for a legend item whose\n // series is hidden (toggled off). The spec's \"Selected\" state is\n // this same toggled-off item, styled with Color/Disabled.\n itemHiddenStyle: {\n color: odysseyDesignTokens.TypographyColorDisabled,\n },\n itemHoverStyle: {\n color: odysseyDesignTokens.TypographyColorBody,\n },\n // The legend spec gives its label text a different default color\n // (Color/Body) than the axis values and labels (subordinate gray),\n // so the legend does not share `axisValueStyle`.\n itemStyle: {\n color: odysseyDesignTokens.TypographyColorSubordinate,\n fontFamily: odysseyDesignTokens.TypographyFamilyBody,\n fontSize: odysseyDesignTokens.TypographySizeBody,\n fontWeight: odysseyDesignTokens.TypographyWeightBody,\n lineHeight,\n },\n margin: toPixels(odysseyDesignTokens.Spacing4),\n padding: 0,\n symbolPadding: toPixels(odysseyDesignTokens.Spacing2),\n },\n },\n\n line: {\n hoverStrokeWidthPlus: chartTokens.ChartLineHoverStrokeWidthPlus,\n markerHoverHaloOpacity: chartTokens.ChartLineMarkerHoverHaloOpacity,\n markerHoverHaloRadius: chartTokens.ChartLineMarkerHoverHaloSize / 2,\n markerHoverRadius: chartTokens.ChartLineMarkerHoverSize / 2,\n markerRadius: chartTokens.ChartLineMarkerSize / 2,\n strokeWidth: chartTokens.ChartLineStrokeWidth,\n },\n\n popover: {\n backgroundColor: odysseyDesignTokens.HueNeutralWhite,\n borderColor: odysseyDesignTokens.BorderColorDisplay,\n borderRadius: toPixels(odysseyDesignTokens.BorderRadiusMain),\n borderWidth: toPixels(odysseyDesignTokens.BorderWidthMain),\n padding: toPixels(odysseyDesignTokens.Spacing4),\n\n containerStyle: {\n // Odyssey has no token named \"Depth/Menu\". DepthMedium is the\n // closest match to the hover spec's \"3-layer soft drop shadow\": it\n // has three shadow layers, and its opacities are lighter than\n // DepthHigh's. The popover's own `shadow` prop stays `false` because\n // Highcharts' built-in shadow is a single-layer SVG filter and\n // cannot reproduce a 3-layer shadow; this CSS box-shadow applies\n // instead through the popover's HTML container (Highcharts' `Tooltip`\n // defaults to `useHTML`).\n boxShadow: odysseyDesignTokens.DepthMedium,\n color: odysseyDesignTokens.TypographyColorBody,\n fontFamily: odysseyDesignTokens.TypographyFamilyBody,\n fontSize: odysseyDesignTokens.TypographySizeBody,\n fontWeight: odysseyDesignTokens.TypographyWeightBody,\n lineHeight,\n },\n\n content: {\n boldFontWeight: odysseyDesignTokens.TypographyWeightBodyBold,\n fontSize: odysseyDesignTokens.TypographySizeBody,\n lineIndicatorSize: odysseyDesignTokens.Spacing4,\n lineIndicatorThickness: `${chartTokens.ChartLineStrokeWidth}px`,\n lineMarkerSize: `${chartTokens.ChartLineMarkerSize}px`,\n rowGap: odysseyDesignTokens.Spacing1,\n rowSpacing: odysseyDesignTokens.Spacing1,\n swatchRadius: odysseyDesignTokens.BorderRadiusTight,\n swatchSize: `${chartTokens.ChartLegendSymbolSize}px`,\n textColor: odysseyDesignTokens.TypographyColorBody,\n },\n },\n };\n};\n\n/**\n * Returns the chart values that come from the Odyssey design tokens in context.\n *\n * A chart component calls this one hook, and does not resolve the tokens\n * itself. Therefore the same token choices apply to every chart in the family.\n *\n * The whole object comes from one `useMemo`. A chart passes these values to the\n * React children of the chart library, and that library rebuilds and redraws the\n * whole chart when the identity of a child changes. A new style object on each\n * render therefore costs a redraw. One memo over the whole object keeps every\n * value stable while the tokens stay the same.\n */\nexport const useChartTokens = () => {\n const odysseyDesignTokens = useOdysseyDesignTokens();\n\n return useMemo(\n () => getChartTokens({ odysseyDesignTokens }),\n [odysseyDesignTokens],\n );\n};\n\n/** The chart tokens that {@link getChartTokens} returns. */\nexport type ChartTokens = ReturnType<typeof getChartTokens>;\n"],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,SAASA,OAAO,QAAQ,OAAO;AAI/B,SAASC,sBAAsB,QAAQ,qCAAqC;AAE5E,MAAMC,yBAAyB,GAAG,EAAE;AAOpC,OAAO,MAAMC,WAAW,GAAG;EAEzBC,sBAAsB,EAAE,GAAG;EAG3BC,kCAAkC,EAAE,CAAC;EACrCC,qBAAqB,EAAE,EAAE;EAIzBC,6BAA6B,EAAE,CAAC;EAChCC,+BAA+B,EAAE,IAAI;EACrCC,4BAA4B,EAAE,EAAE;EAChCC,wBAAwB,EAAE,EAAE;EAC5BC,mBAAmB,EAAE,CAAC;EAEtBC,oBAAoB,EAAE,CAAC;EAGvBC,cAAc,EAAE,GAAG;EAInBC,mCAAmC,EAAE;AACvC,CAAU;AAUV,OAAO,MAAMC,qBAAqB,GAAGA,CAAC;EACpCC,UAAU;EACVC;AAIF,CAAC,KACCD,UAAU,CAACE,OAAO,CAAC,CAAC,CAACC,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CAAC;MAE/CwB,cAAc,EAAE;QASdC,SAAS,EAAElF,mBAAmB,CAACmF,WAAW;QAC1C5E,KAAK,EAAEP,mBAAmB,CAACiE,mBAAmB;QAC9CxD,UAAU,EAAET,mBAAmB,CAACU,oBAAoB;QACpDC,QAAQ,EAAEX,mBAAmB,CAACI,kBAAkB;QAChDQ,UAAU,EAAEZ,mBAAmB,CAACa,oBAAoB;QACpDV;MACF,CAAC;MAEDiF,OAAO,EAAE;QACPC,cAAc,EAAErF,mBAAmB,CAACsF,wBAAwB;QAC5D3E,QAAQ,EAAEX,mBAAmB,CAACI,kBAAkB;QAChDmF,iBAAiB,EAAEvF,mBAAmB,CAACyD,QAAQ;QAC/C+B,sBAAsB,EAAE,GAAG3G,WAAW,CAACS,oBAAoB,IAAI;QAC/DmG,cAAc,EAAE,GAAG5G,WAAW,CAACQ,mBAAmB,IAAI;QACtDqG,MAAM,EAAE1F,mBAAmB,CAAC2F,QAAQ;QACpCC,UAAU,EAAE5F,mBAAmB,CAAC2F,QAAQ;QACxCE,YAAY,EAAE7F,mBAAmB,CAACuC,iBAAiB;QACnDuD,UAAU,EAAE,GAAGjH,WAAW,CAACG,qBAAqB,IAAI;QACpD+G,SAAS,EAAE/F,mBAAmB,CAACiE;MACjC;IACF;EACF,CAAC;AACH,CAAC;AAcD,OAAO,MAAM+B,cAAc,GAAGA,CAAA,KAAM;EAClC,MAAMhG,mBAAmB,GAAGrB,sBAAsB,CAAC,CAAC;EAEpD,OAAOD,OAAO,CACZ,MAAMqB,cAAc,CAAC;IAAEC;EAAoB,CAAC,CAAC,EAC7C,CAACA,mBAAmB,CACtB,CAAC;AACH,CAAC","ignoreList":[]}
1
+ {"version":3,"file":"chartTokens.js","names":["useMemo","useOdysseyDesignTokens","CSS_ROOT_FONT_SIZE_PIXELS","chartTokens","ChartAnimationDuration","ChartLegendRectangleVerticalOffset","ChartLegendSymbolSize","ChartLineHoverStrokeWidthPlus","ChartLineMarkerHoverHaloOpacity","ChartLineMarkerHoverHaloSize","ChartLineMarkerHoverSize","ChartLineMarkerSize","ChartLineStrokeWidth","ChartMinHeight","ChartYAxisLabelBaselineCompensation","getTokenValueAsPixels","tokenValue","typographySizeBase","trimEnd","endsWith","parseFloat","getChartTokens","odysseyDesignTokens","toPixels","TypographySizeBase","lineHeight","TypographySizeBody","TypographyLineHeightBody","axisValueStyle","color","TypographyColorSubordinate","fontFamily","TypographyFamilyBody","fontSize","fontWeight","TypographyWeightBody","animationDuration","minHeight","seriesColors","HueBlue600","HueAccentThree400","HueAccentTwo400","HueAccentOne600","HueYellow400","HueGreen600","axis","categoryHoverBandColor","HueNeutral50","crosshairColor","BorderColorDisplay","crosshairWidth","BorderWidthMain","gridLineWidth","labelStyle","lineColor","rotatedLabelSpacing","Spacing2","uprightLabelSpacing","valueStyle","bar","radius","BorderRadiusTight","chart","backgroundColor","edgeSpacing","topEdgeSpacing","Spacing3","focusRing","BorderColorPrimaryControl","offset","FocusOutlineOffsetMain","width","FocusOutlineWidthMain","legend","default","symbolHeight","symbolRadius","symbolWidth","line","Spacing4","shared","alignColumns","borderWidth","itemDistance","itemHiddenStyle","TypographyColorDisabled","itemHoverStyle","TypographyColorBody","itemStyle","margin","padding","symbolPadding","hoverStrokeWidthPlus","markerHoverHaloOpacity","markerHoverHaloRadius","markerHoverRadius","markerRadius","strokeWidth","popover","HueNeutralWhite","borderColor","borderRadius","BorderRadiusMain","containerStyle","boxShadow","DepthMedium","content","boldFontWeight","TypographyWeightBodyBold","lineIndicatorSize","lineIndicatorThickness","lineMarkerSize","rowGap","Spacing1","rowSpacing","swatchRadius","swatchSize","textColor","useChartTokens"],"sources":["../../../../src/charts/utils/chartTokens.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 type { DesignTokens } from \"../../OdysseyDesignTokensContext.js\";\n\nimport { useOdysseyDesignTokens } from \"../../OdysseyDesignTokensContext.js\";\n\nconst CSS_ROOT_FONT_SIZE_PIXELS = 16;\n\n/**\n * The chart values that no Odyssey design token supplies. Each entry is either a Highcharts implementation detail that no token will ever cover, or a chart specification value that the design team has not yet turned into a token.\n */\nexport const chartTokens = {\n // TransitionDurationMainAsNumber is 100, and the spec asks for 250.\n ChartAnimationDuration: 250,\n // Highcharts positions its rectangular legend symbols from the text baseline, so a 14px square needs this downward optical correction.\n ChartLegendRectangleVerticalOffset: 1,\n ChartLegendSymbolSize: 14,\n // The amount Highcharts adds to ChartLineStrokeWidth on hover, for the spec's 3px hover stroke. Set explicitly, so an undocumented Highcharts default cannot move the hover stroke out of spec.\n ChartLineHoverStrokeWidthPlus: 1,\n ChartLineMarkerHoverHaloOpacity: 0.25,\n ChartLineMarkerHoverHaloSize: 20,\n ChartLineMarkerHoverSize: 12,\n ChartLineMarkerSize: 8,\n // The spec asks for 2px, and BorderWidthHeavy is 1.5px.\n ChartLineStrokeWidth: 2,\n // The floor for a consumer that sets no height on the chart container. The spacing scale stops at Spacing9, which is 56px.\n ChartMinHeight: 400,\n // Highcharts gives a rotated axis label less visible space than an upright one at the same `title.margin`. The comment on `axis.rotatedLabelSpacing` below gives the cause.\n ChartYAxisLabelBaselineCompensation: 8,\n} as const;\n\n/**\n * Converts an Odyssey design token length to a pixel number, because the charting library takes numbers and not CSS length strings. The function multiplies a `rem` token by the base font size. The function uses a `px` token without a change, because a `px` value is already absolute. Therefore the function does not scale a value such as `BorderRadiusTight` as a `rem` value.\n */\nexport const getTokenValueAsPixels = ({\n tokenValue,\n typographySizeBase,\n}: {\n tokenValue: string;\n typographySizeBase: string;\n}) =>\n tokenValue.trimEnd().endsWith(\"rem\")\n ? parseFloat(tokenValue) *\n ((parseFloat(typographySizeBase) / 100) * CSS_ROOT_FONT_SIZE_PIXELS)\n : parseFloat(tokenValue);\n\n/**\n * Builds the chart values from the Odyssey design tokens. Every value sits in the group named after the part of the chart that it styles, so a chart reads one group per Highcharts child.\n *\n * {@link useChartTokens} wraps this function for a component. This function\n * takes the tokens as an argument, so a test calls it without a React render.\n */\nexport const getChartTokens = ({\n odysseyDesignTokens,\n}: {\n odysseyDesignTokens: DesignTokens;\n}) => {\n const toPixels = (tokenValue: string) =>\n getTokenValueAsPixels({\n tokenValue,\n typographySizeBase: odysseyDesignTokens.TypographySizeBase,\n });\n\n // Highcharts reads a line height with `parseInt`, so it turns a unitless ratio such as `1.5` into 1 pixel and draws the wrapped lines of a label on top of each other.\n const lineHeight = `${\n toPixels(odysseyDesignTokens.TypographySizeBody) *\n odysseyDesignTokens.TypographyLineHeightBody\n }px`;\n\n // The axis values, the axis labels and the legend items share this one style. The design specifies the same text treatment for all three, so an axis label carries no more weight than an axis value.\n const axisValueStyle = {\n color: odysseyDesignTokens.TypographyColorSubordinate,\n fontFamily: odysseyDesignTokens.TypographyFamilyBody,\n fontSize: odysseyDesignTokens.TypographySizeBody,\n fontWeight: odysseyDesignTokens.TypographyWeightBody,\n lineHeight,\n };\n\n return {\n animationDuration: chartTokens.ChartAnimationDuration,\n minHeight: `${chartTokens.ChartMinHeight}px`,\n\n /**\n * The palette that a chart gives to the charting library as its series colors. The library assigns these colors to the series in order. A caller cannot set the color of a series.\n */\n seriesColors: [\n odysseyDesignTokens.HueBlue600,\n odysseyDesignTokens.HueAccentThree400,\n odysseyDesignTokens.HueAccentTwo400,\n odysseyDesignTokens.HueAccentOne600,\n odysseyDesignTokens.HueYellow400,\n odysseyDesignTokens.HueGreen600,\n ],\n\n axis: {\n categoryHoverBandColor: odysseyDesignTokens.HueNeutral50,\n crosshairColor: odysseyDesignTokens.BorderColorDisplay,\n crosshairWidth: toPixels(odysseyDesignTokens.BorderWidthMain),\n gridLineWidth: toPixels(odysseyDesignTokens.BorderWidthMain),\n labelStyle: axisValueStyle,\n // The grid lines, the axis line and the ticks share this one color.\n lineColor: odysseyDesignTokens.BorderColorDisplay,\n // Highcharts renders the gap beside a rotated axis label about 3px smaller than requested. Add that difference back so both axis labels appear Spacing2 away from their values.\n rotatedLabelSpacing:\n toPixels(odysseyDesignTokens.Spacing2) +\n chartTokens.ChartYAxisLabelBaselineCompensation,\n uprightLabelSpacing: toPixels(odysseyDesignTokens.Spacing2),\n valueStyle: axisValueStyle,\n },\n\n bar: {\n radius: odysseyDesignTokens.BorderRadiusTight,\n },\n\n chart: {\n backgroundColor: \"transparent\",\n // Without some outer spacing, Highcharts clips the left edge of the widest Y axis value.\n edgeSpacing: toPixels(odysseyDesignTokens.Spacing2),\n fontFamily: odysseyDesignTokens.TypographyFamilyBody,\n topEdgeSpacing: toPixels(odysseyDesignTokens.Spacing3),\n },\n\n focusRing: {\n color: odysseyDesignTokens.BorderColorPrimaryControl,\n offset: toPixels(odysseyDesignTokens.FocusOutlineOffsetMain),\n // Highcharts types the focus border style as a `CSSObject`, so this one radius carries its unit while every other length here is a number.\n radius: `${toPixels(odysseyDesignTokens.BorderRadiusTight)}px`,\n width: toPixels(odysseyDesignTokens.FocusOutlineWidthMain),\n },\n\n legend: {\n default: {\n symbolHeight: chartTokens.ChartLegendSymbolSize,\n symbolRadius: toPixels(odysseyDesignTokens.BorderRadiusTight),\n symbolWidth: chartTokens.ChartLegendSymbolSize,\n },\n line: {\n // Highcharts also uses this as the limit for the marker in the legend: it draws that marker at a radius of half this height, or at `line.markerRadius`, whichever is less. Both come from ChartLineMarkerSize, so the legend cannot cut the marker down.\n symbolHeight: chartTokens.ChartLineMarkerSize,\n // The line symbol spans Spacing4, the same width as the line in the popover series indicator.\n symbolWidth: toPixels(odysseyDesignTokens.Spacing4),\n },\n shared: {\n alignColumns: false,\n borderWidth: 0,\n itemDistance: toPixels(odysseyDesignTokens.Spacing4),\n // Highcharts merges this over `itemStyle` for a legend item whose series is hidden (toggled off). The spec's \"Selected\" state is this same toggled-off item, styled with Color/Disabled.\n itemHiddenStyle: {\n color: odysseyDesignTokens.TypographyColorDisabled,\n },\n itemHoverStyle: {\n color: odysseyDesignTokens.TypographyColorBody,\n },\n // The legend spec gives its label text a different default color (Color/Body) than the axis values and labels (subordinate gray),\n // so the legend does not share `axisValueStyle`.\n itemStyle: {\n color: odysseyDesignTokens.TypographyColorSubordinate,\n fontFamily: odysseyDesignTokens.TypographyFamilyBody,\n fontSize: odysseyDesignTokens.TypographySizeBody,\n fontWeight: odysseyDesignTokens.TypographyWeightBody,\n lineHeight,\n },\n margin: toPixels(odysseyDesignTokens.Spacing4),\n padding: 0,\n symbolPadding: toPixels(odysseyDesignTokens.Spacing2),\n },\n },\n\n line: {\n hoverStrokeWidthPlus: chartTokens.ChartLineHoverStrokeWidthPlus,\n markerHoverHaloOpacity: chartTokens.ChartLineMarkerHoverHaloOpacity,\n markerHoverHaloRadius: chartTokens.ChartLineMarkerHoverHaloSize / 2,\n markerHoverRadius: chartTokens.ChartLineMarkerHoverSize / 2,\n markerRadius: chartTokens.ChartLineMarkerSize / 2,\n strokeWidth: chartTokens.ChartLineStrokeWidth,\n },\n\n popover: {\n backgroundColor: odysseyDesignTokens.HueNeutralWhite,\n borderColor: odysseyDesignTokens.BorderColorDisplay,\n borderRadius: toPixels(odysseyDesignTokens.BorderRadiusMain),\n borderWidth: toPixels(odysseyDesignTokens.BorderWidthMain),\n padding: toPixels(odysseyDesignTokens.Spacing4),\n\n containerStyle: {\n // Odyssey has no token named \"Depth/Menu\". DepthMedium is the closest match to the hover spec's \"3-layer soft drop shadow\": it has three shadow layers, and its opacities are lighter than DepthHigh's. The popover's own `shadow` prop stays `false` because Highcharts' built-in shadow is a single-layer SVG filter and cannot reproduce a 3-layer shadow; this CSS box-shadow applies instead through the popover's HTML container (Highcharts' `Tooltip` defaults to `useHTML`).\n boxShadow: odysseyDesignTokens.DepthMedium,\n color: odysseyDesignTokens.TypographyColorBody,\n fontFamily: odysseyDesignTokens.TypographyFamilyBody,\n fontSize: odysseyDesignTokens.TypographySizeBody,\n fontWeight: odysseyDesignTokens.TypographyWeightBody,\n lineHeight,\n },\n\n content: {\n boldFontWeight: odysseyDesignTokens.TypographyWeightBodyBold,\n fontSize: odysseyDesignTokens.TypographySizeBody,\n lineIndicatorSize: odysseyDesignTokens.Spacing4,\n lineIndicatorThickness: `${chartTokens.ChartLineStrokeWidth}px`,\n lineMarkerSize: `${chartTokens.ChartLineMarkerSize}px`,\n rowGap: odysseyDesignTokens.Spacing1,\n rowSpacing: odysseyDesignTokens.Spacing1,\n swatchRadius: odysseyDesignTokens.BorderRadiusTight,\n swatchSize: `${chartTokens.ChartLegendSymbolSize}px`,\n textColor: odysseyDesignTokens.TypographyColorBody,\n },\n },\n };\n};\n\n/**\n * Returns the chart values that come from the Odyssey design tokens in context.\n *\n * A chart component calls this one hook, and does not resolve the tokens itself. Therefore the same token choices apply to every chart in the family.\n *\n * The whole object comes from one `useMemo`. A chart passes these values to the React children of the chart library, and that library rebuilds and redraws the whole chart when the identity of a child changes. A new style object on each render therefore costs a redraw. One memo over the whole object keeps every value stable while the tokens stay the same.\n */\nexport const useChartTokens = () => {\n const odysseyDesignTokens = useOdysseyDesignTokens();\n\n return useMemo(\n () => getChartTokens({ odysseyDesignTokens }),\n [odysseyDesignTokens],\n );\n};\n\n/** The chart tokens that {@link getChartTokens} returns. */\nexport type ChartTokens = ReturnType<typeof getChartTokens>;\n"],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,SAASA,OAAO,QAAQ,OAAO;AAI/B,SAASC,sBAAsB,QAAQ,qCAAqC;AAE5E,MAAMC,yBAAyB,GAAG,EAAE;AAKpC,OAAO,MAAMC,WAAW,GAAG;EAEzBC,sBAAsB,EAAE,GAAG;EAE3BC,kCAAkC,EAAE,CAAC;EACrC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AMhG,mBAAmB,GAAGrB,sBAAsB,CAAC,CAAC;EAEpD,OAAOD,OAAO,CACZ,MAAMqB,cAAc,CAAC;IAAEC;EAAoB,CAAC,CAAC,EAC7C,CAACA,mBAAmB,CACtB,CAAC;AACH,CAAC","ignoreList":[]}
@@ -1 +1 @@
1
- {"version":3,"file":"chartTypes.js","names":[],"sources":["../../../../src/charts/utils/chartTypes.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 type { ChartValueFormat } from \"./formatChartValue.js\";\n\n/**\n * One line on the chart. A series has a name and one value for each category.\n *\n * The chart holds the list of categories. A series holds only the values. Put\n * the values in the same order as the categories.\n *\n * A category is always text, such as `\"Week 1\"` or `\"2026-08\"`. If your data\n * has dates or times, put that data into groups of equal length first. A chart\n * that needs a true time axis uses a different series type. See\n * `docs/decisions/2026-08-21-chart-data-model-and-axis-api.md`.\n */\nexport type ChartSeries = {\n /**\n * The values of this series, one for each category, in the same order as\n * the chart's `categories`.\n *\n * An entry of `null` means the series has no measurement for that\n * category. The chart then draws a gap at that category. It does not draw\n * a point with a value of zero.\n */\n data: Array<number | null>;\n /**\n * The name of the series. The chart shows this name in the legend and in the\n * popover. Each series in one chart must have a different name.\n */\n name: string;\n};\n\n/**\n * A data point that the chart sends to an interaction callback, such as\n * `onPointClick`. The callback receives one point at a time, so the point\n * carries the name of its own series.\n */\nexport type ChartPoint = {\n /** The category that this point belongs to. */\n category: string;\n /** The name of the series that this point belongs to. */\n seriesName: ChartSeries[\"name\"];\n /**\n * The measured value of this point. The type comes from one series value,\n * with `null` removed. The chart draws no point at a gap, so a user cannot\n * click one.\n */\n value: NonNullable<ChartSeries[\"data\"][number]>;\n};\n\n/**\n * The parts of a point that hold no position. Every chart type gives these\n * parts to a point, whatever axes that chart has.\n *\n * `custom.formattedValue` holds the text that the popover shows. The chart\n * formats a value once, when it builds the point, so the popover does not\n * format that value again on each hover.\n *\n * `events` is absent when the caller supplies no click handler. Highcharts\n * attaches a listener when it finds an `events` property, so a point with no\n * click behavior must omit the property.\n */\nexport type ChartPointDecoration = {\n custom: { formattedValue: string };\n events?: { click: () => void };\n};\n\n/**\n * The properties for a chart that plots series against a category axis and a\n * value axis.\n * The layout around a chart often supplies its own heading in surrounding HTML,\n * so a chart may need neither `title` nor `subtitle`.\n */\nexport type CartesianChartProps = {\n /**\n * A text description of the chart for assistive technology. The chart\n * library puts this description in a hidden region of its own.\n */\n ariaDescription: string;\n /**\n * The categories on the horizontal axis, in the order that the chart shows\n * them. Each series in `series` supplies one value for each category, at\n * the same index.\n */\n categories: string[];\n /**\n * If `true`, the chart shows an error state in place of its series.\n * `isLoading` takes precedence over this property.\n */\n hasError?: boolean;\n /**\n * If `true`, the chart shows a loading state in place of its series.\n * `isLoading` takes precedence over `hasError`.\n */\n isLoading?: boolean;\n /** The chart calls this function when a user clicks a point. */\n onPointClick?: (point: ChartPoint) => void;\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 * Set `isLoading` to `true` in this function, then set `hasError` to\n * `false` once the data arrives. `isLoading` takes precedence over\n * `hasError`, so the loading state replaces the error state for the length\n * of the request. Leaving `isLoading` alone holds the error state, and its\n * retry button, on screen while the request is in flight.\n */\n onRetry?: () => void;\n /**\n * The format for the value in the popover of a point. If you omit this\n * property, the popover shows the value in full.\n */\n pointPopoverValueFormat?: ChartValueFormat;\n /**\n * The series that the chart plots. Each series is a set of values with a\n * name. Each value lines up by index with the chart's `categories`.\n */\n series: ChartSeries[];\n /**\n * The subtitle of the chart. The chart shows the subtitle below the title. A\n * subtitle gives more information about the title, so the chart ignores a\n * subtitle that arrives with no title.\n */\n subtitle?: string;\n /** The title of the chart. */\n title?: string;\n /** The label for the horizontal axis. */\n xAxisLabel?: string;\n /** The label for the vertical axis. */\n yAxisLabel?: string;\n};\n"],"mappings":"","ignoreList":[]}
1
+ {"version":3,"file":"chartTypes.js","names":[],"sources":["../../../../src/charts/utils/chartTypes.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 type { ChartValueFormat } from \"./formatChartValue.js\";\n\n/**\n * One line on the chart. A series has a name and one value for each category.\n *\n * The chart holds the list of categories. A series holds only the values. Put the values in the same order as the categories.\n *\n * A category is always text, such as `\"Week 1\"` or `\"2026-08\"`. If your data has dates or times, put that data into groups of equal length first. A chart that needs a true time axis uses a different series type. See `docs/decisions/2026-08-21-chart-data-model-and-axis-api.md`.\n */\nexport type ChartSeries = {\n /**\n * The values of this series, one for each category, in the same order as the chart's `categories`.\n *\n * An entry of `null` means the series has no measurement for that category. The chart then draws a gap at that category. It does not draw a point with a value of zero.\n */\n data: Array<number | null>;\n /**\n * The name of the series. The chart shows this name in the legend and in the popover. Each series in one chart must have a different name.\n */\n name: string;\n};\n\n/**\n * A data point that the chart sends to an interaction callback, such as `onPointClick`. The callback receives one point at a time, so the point carries the name of its own series.\n */\nexport type ChartPoint = {\n /** The category that this point belongs to. */\n category: string;\n /** The name of the series that this point belongs to. */\n seriesName: ChartSeries[\"name\"];\n /**\n * The measured value of this point. The type comes from one series value, with `null` removed. The chart draws no point at a gap, so a user cannot click one.\n */\n value: NonNullable<ChartSeries[\"data\"][number]>;\n};\n\n/**\n * The parts of a point that hold no position. Every chart type gives these parts to a point, whatever axes that chart has.\n *\n * `custom.formattedValue` holds the text that the popover shows. The chart formats a value once, when it builds the point, so the popover does not format that value again on each hover.\n *\n * `events` is absent when the caller supplies no click handler. Highcharts attaches a listener when it finds an `events` property, so a point with no click behavior must omit the property.\n */\nexport type ChartPointDecoration = {\n custom: { formattedValue: string };\n events?: { click: () => void };\n};\n\n/**\n * The properties for a chart that plots series against a category axis and a value axis.\n * The layout around a chart often supplies its own heading in surrounding HTML, so a chart may need neither `title` nor `subtitle`.\n */\nexport type CartesianChartProps = {\n /**\n * A text description of the chart for assistive technology. The chart library puts this description in a hidden region of its own.\n */\n ariaDescription: string;\n /**\n * The categories on the horizontal axis, in the order that the chart shows them. Each series in `series` supplies one value for each category, at the same index.\n */\n categories: string[];\n /**\n * If `true`, the chart shows an error state in place of its series. `isLoading` takes precedence over this property.\n */\n hasError?: boolean;\n /**\n * If `true`, the chart shows a loading state in place of its series. `isLoading` takes precedence over `hasError`.\n */\n isLoading?: boolean;\n /** The chart calls this function when a user clicks a point. */\n onPointClick?: (point: ChartPoint) => void;\n /**\n * The chart calls this function when a user clicks the retry button in the error state. The error state shows no retry button when the caller omits this property.\n *\n * Set `isLoading` to `true` in this function, then set `hasError` to `false` once the data arrives. `isLoading` takes precedence over `hasError`, so the loading state replaces the error state for the length of the request. Leaving `isLoading` alone holds the error state, and its retry button, on screen while the request is in flight.\n */\n onRetry?: () => void;\n /**\n * The format for the value in the popover of a point. If you omit this property, the popover shows the value in full.\n */\n pointPopoverValueFormat?: ChartValueFormat;\n /**\n * The series that the chart plots. Each series is a set of values with a name. Each value lines up by index with the chart's `categories`.\n */\n series: ChartSeries[];\n /**\n * The subtitle of the chart. The chart shows the subtitle below the title. A subtitle gives more information about the title, so the chart ignores a subtitle that arrives with no title.\n */\n subtitle?: string;\n /** The title of the chart. */\n title?: string;\n /** The label for the horizontal axis. */\n xAxisLabel?: string;\n /** The label for the vertical axis. */\n yAxisLabel?: string;\n};\n"],"mappings":"","ignoreList":[]}