@okta/odyssey-react-mui 1.70.1 → 1.71.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (930) hide show
  1. package/README.md +8 -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 +1 -1
  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/getLogicalBoundaries.cjs.map +1 -1
  153. package/dist/cjs/icons.generated/Add.cjs +1 -1
  154. package/dist/cjs/icons.generated/AddCircle.cjs +1 -1
  155. package/dist/cjs/icons.generated/Apps.cjs +1 -1
  156. package/dist/cjs/icons.generated/AppsSelected.cjs +1 -1
  157. package/dist/cjs/icons.generated/ArrowBottom.cjs +1 -1
  158. package/dist/cjs/icons.generated/ArrowDown.cjs +1 -1
  159. package/dist/cjs/icons.generated/ArrowLeft.cjs +1 -1
  160. package/dist/cjs/icons.generated/ArrowLowerLeft.cjs +1 -1
  161. package/dist/cjs/icons.generated/ArrowLowerRight.cjs +1 -1
  162. package/dist/cjs/icons.generated/ArrowRight.cjs +1 -1
  163. package/dist/cjs/icons.generated/ArrowTop.cjs +1 -1
  164. package/dist/cjs/icons.generated/ArrowUnsorted.cjs +1 -1
  165. package/dist/cjs/icons.generated/ArrowUp.cjs +1 -1
  166. package/dist/cjs/icons.generated/ArrowUpperLeft.cjs +1 -1
  167. package/dist/cjs/icons.generated/ArrowUpperRight.cjs +1 -1
  168. package/dist/cjs/icons.generated/Bug.cjs +1 -1
  169. package/dist/cjs/icons.generated/Calendar.cjs +1 -1
  170. package/dist/cjs/icons.generated/Call.cjs +1 -1
  171. package/dist/cjs/icons.generated/Chat.cjs +1 -1
  172. package/dist/cjs/icons.generated/Check.cjs +1 -1
  173. package/dist/cjs/icons.generated/CheckCircleFilled.cjs +1 -1
  174. package/dist/cjs/icons.generated/ChevronDown.cjs +1 -1
  175. package/dist/cjs/icons.generated/ChevronLeft.cjs +1 -1
  176. package/dist/cjs/icons.generated/ChevronRight.cjs +1 -1
  177. package/dist/cjs/icons.generated/ChevronUp.cjs +1 -1
  178. package/dist/cjs/icons.generated/Clock.cjs +1 -1
  179. package/dist/cjs/icons.generated/Close.cjs +1 -1
  180. package/dist/cjs/icons.generated/CloseCircleFilled.cjs +1 -1
  181. package/dist/cjs/icons.generated/CollapseLeft.cjs +1 -1
  182. package/dist/cjs/icons.generated/CollapseRight.cjs +1 -1
  183. package/dist/cjs/icons.generated/Copy.cjs +1 -1
  184. package/dist/cjs/icons.generated/Customizations.cjs +1 -1
  185. package/dist/cjs/icons.generated/CustomizationsSelected.cjs +1 -1
  186. package/dist/cjs/icons.generated/DangerDiamond.cjs +1 -1
  187. package/dist/cjs/icons.generated/DangerDiamondFilled.cjs +1 -1
  188. package/dist/cjs/icons.generated/Delete.cjs +1 -1
  189. package/dist/cjs/icons.generated/Deny.cjs +1 -1
  190. package/dist/cjs/icons.generated/Devices.cjs +1 -1
  191. package/dist/cjs/icons.generated/Directory.cjs +1 -1
  192. package/dist/cjs/icons.generated/DirectorySelected.cjs +1 -1
  193. package/dist/cjs/icons.generated/Documentation.cjs +1 -1
  194. package/dist/cjs/icons.generated/Download.cjs +1 -1
  195. package/dist/cjs/icons.generated/DragIndicator.cjs +1 -1
  196. package/dist/cjs/icons.generated/Edit.cjs +1 -1
  197. package/dist/cjs/icons.generated/ExpandLeft.cjs +1 -1
  198. package/dist/cjs/icons.generated/ExpandRight.cjs +1 -1
  199. package/dist/cjs/icons.generated/ExternalLink.cjs +1 -1
  200. package/dist/cjs/icons.generated/Filter.cjs +1 -1
  201. package/dist/cjs/icons.generated/Folder.cjs +1 -1
  202. package/dist/cjs/icons.generated/Globe.cjs +1 -1
  203. package/dist/cjs/icons.generated/Grid.cjs +1 -1
  204. package/dist/cjs/icons.generated/Group.cjs +1 -1
  205. package/dist/cjs/icons.generated/Happy.cjs +1 -1
  206. package/dist/cjs/icons.generated/Hide.cjs +1 -1
  207. package/dist/cjs/icons.generated/Home.cjs +1 -1
  208. package/dist/cjs/icons.generated/HomeSelected.cjs +1 -1
  209. package/dist/cjs/icons.generated/IdentityGovernance.cjs +1 -1
  210. package/dist/cjs/icons.generated/IdentityGovernanceSelected.cjs +1 -1
  211. package/dist/cjs/icons.generated/InformationCircle.cjs +1 -1
  212. package/dist/cjs/icons.generated/InformationCircleFilled.cjs +1 -1
  213. package/dist/cjs/icons.generated/Link.cjs +1 -1
  214. package/dist/cjs/icons.generated/List.cjs +1 -1
  215. package/dist/cjs/icons.generated/Lock.cjs +1 -1
  216. package/dist/cjs/icons.generated/Menu.cjs +1 -1
  217. package/dist/cjs/icons.generated/More.cjs +1 -1
  218. package/dist/cjs/icons.generated/Neutral.cjs +1 -1
  219. package/dist/cjs/icons.generated/Notification.cjs +1 -1
  220. package/dist/cjs/icons.generated/Pause.cjs +1 -1
  221. package/dist/cjs/icons.generated/QuestionCircle.cjs +1 -1
  222. package/dist/cjs/icons.generated/QuestionCircleFilled.cjs +1 -1
  223. package/dist/cjs/icons.generated/Refresh.cjs +1 -1
  224. package/dist/cjs/icons.generated/Reports.cjs +1 -1
  225. package/dist/cjs/icons.generated/ReportsSelected.cjs +1 -1
  226. package/dist/cjs/icons.generated/Reset.cjs +1 -1
  227. package/dist/cjs/icons.generated/Resume.cjs +1 -1
  228. package/dist/cjs/icons.generated/Sad.cjs +1 -1
  229. package/dist/cjs/icons.generated/Same.cjs +1 -1
  230. package/dist/cjs/icons.generated/Search.cjs +1 -1
  231. package/dist/cjs/icons.generated/Security.cjs +1 -1
  232. package/dist/cjs/icons.generated/SecuritySelected.cjs +1 -1
  233. package/dist/cjs/icons.generated/Send.cjs +1 -1
  234. package/dist/cjs/icons.generated/Server.cjs +1 -1
  235. package/dist/cjs/icons.generated/Settings.cjs +1 -1
  236. package/dist/cjs/icons.generated/SettingsSelected.cjs +1 -1
  237. package/dist/cjs/icons.generated/Show.cjs +1 -1
  238. package/dist/cjs/icons.generated/Sparkle.cjs +1 -1
  239. package/dist/cjs/icons.generated/Subtract.cjs +1 -1
  240. package/dist/cjs/icons.generated/Sync.cjs +1 -1
  241. package/dist/cjs/icons.generated/ThumbsDown.cjs +1 -1
  242. package/dist/cjs/icons.generated/ThumbsUp.cjs +1 -1
  243. package/dist/cjs/icons.generated/Unlock.cjs +1 -1
  244. package/dist/cjs/icons.generated/Upload.cjs +1 -1
  245. package/dist/cjs/icons.generated/User.cjs +1 -1
  246. package/dist/cjs/icons.generated/Video.cjs +1 -1
  247. package/dist/cjs/icons.generated/Warning.cjs +1 -1
  248. package/dist/cjs/icons.generated/WarningFilled.cjs +1 -1
  249. package/dist/cjs/icons.generated/Workflows.cjs +1 -1
  250. package/dist/cjs/icons.generated/WorkflowsSelected.cjs +1 -1
  251. package/dist/cjs/inputUtils.cjs.map +1 -1
  252. package/dist/cjs/labs/AppTile.cjs +1 -1
  253. package/dist/cjs/labs/AppTile.cjs.map +1 -1
  254. package/dist/cjs/labs/DataFilters.cjs +2 -2
  255. package/dist/cjs/labs/DataFilters.cjs.map +1 -1
  256. package/dist/cjs/labs/DataTable.cjs +1 -1
  257. package/dist/cjs/labs/DataTable.cjs.map +1 -1
  258. package/dist/cjs/labs/DataTablePagination.cjs +1 -1
  259. package/dist/cjs/labs/DataView/BulkActionsMenu.cjs +1 -1
  260. package/dist/cjs/labs/DataView/BulkActionsMenu.cjs.map +1 -1
  261. package/dist/cjs/labs/DataView/CardLayoutContent.cjs +2 -2
  262. package/dist/cjs/labs/DataView/CardLayoutContent.cjs.map +1 -1
  263. package/dist/cjs/labs/DataView/DataCard.cjs +1 -1
  264. package/dist/cjs/labs/DataView/DataCard.cjs.map +1 -1
  265. package/dist/cjs/labs/DataView/DataTable.cjs +1 -1
  266. package/dist/cjs/labs/DataView/DataTable.cjs.map +1 -1
  267. package/dist/cjs/labs/DataView/DataView.cjs +1 -1
  268. package/dist/cjs/labs/DataView/DataView.cjs.map +1 -1
  269. package/dist/cjs/labs/DataView/DetailPanel.cjs +1 -1
  270. package/dist/cjs/labs/DataView/LayoutSwitcher.cjs +1 -1
  271. package/dist/cjs/labs/DataView/RowActions.cjs +1 -1
  272. package/dist/cjs/labs/DataView/RowActions.cjs.map +1 -1
  273. package/dist/cjs/labs/DataView/TableLayoutContent.cjs +1 -1
  274. package/dist/cjs/labs/DataView/TableLayoutContent.cjs.map +1 -1
  275. package/dist/cjs/labs/DataView/TableSettings.cjs +1 -1
  276. package/dist/cjs/labs/DataView/TableSettings.cjs.map +1 -1
  277. package/dist/cjs/labs/DataView/componentTypes.cjs.map +1 -1
  278. package/dist/cjs/labs/DataView/tableConstants.cjs.map +1 -1
  279. package/dist/cjs/labs/DataView/testSupportData.cjs.map +1 -1
  280. package/dist/cjs/labs/DataView/useFilterConversion.cjs.map +1 -1
  281. package/dist/cjs/labs/DatePickers/DateTimeField.cjs +1 -1
  282. package/dist/cjs/labs/DatePickers/DateTimePicker.cjs +2 -2
  283. package/dist/cjs/labs/DatePickers/DateTimePicker.cjs.map +1 -1
  284. package/dist/cjs/labs/DatePickers/dateTimePickerTheme.cjs +4 -4
  285. package/dist/cjs/labs/DatePickers/dateTimePickerTheme.cjs.map +1 -1
  286. package/dist/cjs/labs/OdysseyPickers/ComposablePicker.cjs +1 -1
  287. package/dist/cjs/labs/OdysseyPickers/Picker.cjs +1 -1
  288. package/dist/cjs/labs/OdysseyPickers/PickerVirtualizationListBox.cjs +1 -1
  289. package/dist/cjs/labs/OdysseyPickers/PickerVirtualizationListBox.cjs.map +1 -1
  290. package/dist/cjs/labs/OdysseyPickers/PickerWithOptionAdornment.cjs +1 -1
  291. package/dist/cjs/labs/OdysseyPickers/SearchDropdown.cjs +1 -1
  292. package/dist/cjs/labs/PageTemplate/DocumentationLink.cjs +1 -1
  293. package/dist/cjs/labs/PageTemplate/Layout.cjs +1 -1
  294. package/dist/cjs/labs/PageTemplate/Layout.cjs.map +1 -1
  295. package/dist/cjs/labs/PageTemplate/PageTemplate.cjs +1 -1
  296. package/dist/cjs/labs/PaginatedTable.cjs +1 -1
  297. package/dist/cjs/labs/StaticTable.cjs +1 -1
  298. package/dist/cjs/labs/UserProfile.cjs +1 -1
  299. package/dist/cjs/labs/UserProfileMenuButton.cjs +1 -1
  300. package/dist/cjs/logos.generated/Duo.cjs +1 -1
  301. package/dist/cjs/logos.generated/GoogleAuth.cjs +1 -1
  302. package/dist/cjs/logos.generated/OktaVerify.cjs +1 -1
  303. package/dist/cjs/logos.generated/Persona.cjs +1 -1
  304. package/dist/cjs/logos.generated/SymantecVip.cjs +1 -1
  305. package/dist/cjs/logos.generated/Yubikey.cjs +1 -1
  306. package/dist/cjs/test-utils/appendToSandbox.cjs.map +1 -1
  307. package/dist/cjs/test-utils/getControlledElement.cjs.map +1 -1
  308. package/dist/cjs/test-utils/renderWithOdysseyProvider.cjs.map +1 -1
  309. package/dist/cjs/test-utils/viewportTestSizes.cjs.map +1 -1
  310. package/dist/cjs/theme/components/Autocomplete.cjs.map +1 -1
  311. package/dist/cjs/theme/components/Button.cjs.map +1 -1
  312. package/dist/cjs/theme/components/CircularProgress.cjs.map +1 -1
  313. package/dist/cjs/theme/components/Drawer.cjs.map +1 -1
  314. package/dist/cjs/theme/components/Form.cjs.map +1 -1
  315. package/dist/cjs/theme/components/Input.cjs.map +1 -1
  316. package/dist/cjs/theme/components/Table.cjs.map +1 -1
  317. package/dist/cjs/theme/useAppElementContainerQuery.cjs.map +1 -1
  318. package/dist/cjs/theme/useContainerQuery.cjs.map +1 -1
  319. package/dist/cjs/theme/useMediaQuery.cjs.map +1 -1
  320. package/dist/cjs/tools/addSpecificity.cjs.map +1 -1
  321. package/dist/cjs/tools/createBrowserMessageBus.cjs +48 -0
  322. package/dist/cjs/tools/createBrowserMessageBus.cjs.map +1 -0
  323. package/dist/cjs/ui-shell/AppSwitcher/AppSwitcher.cjs +1 -1
  324. package/dist/cjs/ui-shell/InnerAppContainer.cjs +1 -1
  325. package/dist/cjs/ui-shell/NarrowUiShellContent.cjs +1 -1
  326. package/dist/cjs/ui-shell/NarrowUiShellContent.cjs.map +1 -1
  327. package/dist/cjs/ui-shell/SideNav/NavAccordion.cjs +1 -1
  328. package/dist/cjs/ui-shell/SideNav/SideNav.cjs +1 -1
  329. package/dist/cjs/ui-shell/SideNav/SideNav.cjs.map +1 -1
  330. package/dist/cjs/ui-shell/SideNav/SideNavFooterContent.cjs +1 -1
  331. package/dist/cjs/ui-shell/SideNav/SideNavHeader.cjs +1 -1
  332. package/dist/cjs/ui-shell/SideNav/SideNavItemContent.cjs +2 -2
  333. package/dist/cjs/ui-shell/SideNav/SideNavItemContent.cjs.map +1 -1
  334. package/dist/cjs/ui-shell/SideNav/SideNavItemContentContext.cjs.map +1 -1
  335. package/dist/cjs/ui-shell/SideNav/SideNavItemLinkContent.cjs +1 -1
  336. package/dist/cjs/ui-shell/SideNav/SideNavSortableList.cjs +1 -1
  337. package/dist/cjs/ui-shell/SideNav/SideNavToggleButton.cjs +2 -2
  338. package/dist/cjs/ui-shell/SideNav/SideNavToggleButton.cjs.map +1 -1
  339. package/dist/cjs/ui-shell/SideNav/SortableList/SortableItem.cjs.map +1 -1
  340. package/dist/cjs/ui-shell/SideNav/SortableList/SortableList.cjs.map +1 -1
  341. package/dist/cjs/ui-shell/SideNav/SortableList/SortableOverlay.cjs.map +1 -1
  342. package/dist/cjs/ui-shell/SideNav/types.cjs.map +1 -1
  343. package/dist/cjs/ui-shell/SkipToContent.cjs +1 -1
  344. package/dist/cjs/ui-shell/SkipToContent.cjs.map +1 -1
  345. package/dist/cjs/ui-shell/TopNav/HamburgerMenuIcon.cjs +1 -1
  346. package/dist/cjs/ui-shell/TopNav/TopNav.cjs +1 -1
  347. package/dist/cjs/ui-shell/TopNav/TopNavLinksList.cjs +1 -1
  348. package/dist/cjs/ui-shell/TopNav/TopNavListItem.cjs +1 -1
  349. package/dist/cjs/ui-shell/TopNav/TopNavListItem.cjs.map +1 -1
  350. package/dist/cjs/ui-shell/UiShell.cjs +1 -1
  351. package/dist/cjs/ui-shell/UiShell.cjs.map +1 -1
  352. package/dist/cjs/ui-shell/UiShellLogo.cjs +1 -1
  353. package/dist/cjs/ui-shell/UiShellProvider.cjs.map +1 -1
  354. package/dist/cjs/ui-shell/WideUiShellContent.cjs +1 -1
  355. package/dist/cjs/ui-shell/renderUiShell.cjs.map +1 -1
  356. package/dist/cjs/ui-shell/uiShellContentTypes.cjs.map +1 -1
  357. package/dist/cjs/ui-shell/uiShellSharedConstants.cjs.map +1 -1
  358. package/dist/cjs/useContrastMode.cjs.map +1 -1
  359. package/dist/cjs/useStableCallback.cjs.map +1 -1
  360. package/dist/cjs/useThemeCache.cjs.map +1 -1
  361. package/dist/cjs/web-component/odysseyWebComponentVersion.generated.cjs +1 -1
  362. package/dist/cjs/web-component/odysseyWebComponentVersion.generated.cjs.map +1 -1
  363. package/dist/cjs/web-component/renderReactInWebComponent.cjs.map +1 -1
  364. package/dist/esm/@types/react-augment.d.js.map +1 -1
  365. package/dist/esm/Accordion.js +1 -1
  366. package/dist/esm/Accordion.js.map +1 -1
  367. package/dist/esm/AnimationContext.js +1 -1
  368. package/dist/esm/Autocomplete.js +1 -1
  369. package/dist/esm/Autocomplete.js.map +1 -1
  370. package/dist/esm/Badge.js +1 -1
  371. package/dist/esm/Badge.js.map +1 -1
  372. package/dist/esm/Banner.js +1 -1
  373. package/dist/esm/Banner.js.map +1 -1
  374. package/dist/esm/Box.js +1 -1
  375. package/dist/esm/Box.js.map +1 -1
  376. package/dist/esm/Breadcrumbs.js +1 -1
  377. package/dist/esm/Breadcrumbs.js.map +1 -1
  378. package/dist/esm/Buttons/BaseButton.js +1 -1
  379. package/dist/esm/Buttons/BaseButton.js.map +1 -1
  380. package/dist/esm/Buttons/BaseMenuButton.js +1 -1
  381. package/dist/esm/Buttons/BaseMenuButton.js.map +1 -1
  382. package/dist/esm/Buttons/Button.js +1 -1
  383. package/dist/esm/Buttons/Button.js.map +1 -1
  384. package/dist/esm/Buttons/MenuButton.js +1 -1
  385. package/dist/esm/Buttons/MenuButton.js.map +1 -1
  386. package/dist/esm/Buttons/MenuItem.js +1 -1
  387. package/dist/esm/Buttons/MenuItem.js.map +1 -1
  388. package/dist/esm/Callout.js +1 -1
  389. package/dist/esm/Callout.js.map +1 -1
  390. package/dist/esm/Card.js +1 -1
  391. package/dist/esm/Card.js.map +1 -1
  392. package/dist/esm/CircularProgress.js +1 -1
  393. package/dist/esm/CircularProgress.js.map +1 -1
  394. package/dist/esm/ConditionalWrapper.js +1 -1
  395. package/dist/esm/ConditionalWrapper.js.map +1 -1
  396. package/dist/esm/CssBaseline.js.map +1 -1
  397. package/dist/esm/DataTable/DataTable.js +1 -1
  398. package/dist/esm/DataTable/DataTable.js.map +1 -1
  399. package/dist/esm/DataTable/DataTableRowActions.js +1 -1
  400. package/dist/esm/DataTable/DataTableSettings.js +1 -1
  401. package/dist/esm/DataTable/useRowReordering.js.map +1 -1
  402. package/dist/esm/DatePickers/DateField.js +1 -1
  403. package/dist/esm/DatePickers/DateFieldActionBar.js +1 -1
  404. package/dist/esm/DatePickers/DateFieldLocalizationProvider.js +1 -1
  405. package/dist/esm/DatePickers/DatePicker.js +1 -1
  406. package/dist/esm/DatePickers/DatePicker.js.map +1 -1
  407. package/dist/esm/DatePickers/TimeZonePicker.js +1 -1
  408. package/dist/esm/DatePickers/TimeZonePicker.js.map +1 -1
  409. package/dist/esm/DatePickers/datePickerTheme.js +57 -27
  410. package/dist/esm/DatePickers/datePickerTheme.js.map +1 -1
  411. package/dist/esm/DatePickers/useOdysseyDateFields.js.map +1 -1
  412. package/dist/esm/Dialog.js +1 -1
  413. package/dist/esm/Dialog.js.map +1 -1
  414. package/dist/esm/Drawer.js +1 -1
  415. package/dist/esm/Drawer.js.map +1 -1
  416. package/dist/esm/EmptyState.js +1 -1
  417. package/dist/esm/EmptyState.js.map +1 -1
  418. package/dist/esm/ErrorMessageList.js +1 -1
  419. package/dist/esm/Field.js +1 -1
  420. package/dist/esm/FieldError.js +1 -1
  421. package/dist/esm/FieldHint.js +1 -1
  422. package/dist/esm/FieldLabel.js +1 -1
  423. package/dist/esm/Fields/Checkbox.js +1 -1
  424. package/dist/esm/Fields/Checkbox.js.map +1 -1
  425. package/dist/esm/Fields/CheckboxGroup.js +1 -1
  426. package/dist/esm/Fields/CheckboxGroup.js.map +1 -1
  427. package/dist/esm/Fields/Hint.js.map +1 -1
  428. package/dist/esm/Fields/Radio.js +1 -1
  429. package/dist/esm/Fields/RadioGroup.js +1 -1
  430. package/dist/esm/Fields/RadioGroup.js.map +1 -1
  431. package/dist/esm/Fieldset.js +1 -1
  432. package/dist/esm/Fieldset.js.map +1 -1
  433. package/dist/esm/FileUploader/FileUploadIllustration.js +1 -1
  434. package/dist/esm/FileUploader/FileUploadPreview.js +1 -1
  435. package/dist/esm/FileUploader/FileUploader.js +1 -1
  436. package/dist/esm/FileUploader/FileUploader.js.map +1 -1
  437. package/dist/esm/Form.js +1 -1
  438. package/dist/esm/Form.js.map +1 -1
  439. package/dist/esm/FormCheckedProps.js.map +1 -1
  440. package/dist/esm/FullScreenOverlay.js +1 -1
  441. package/dist/esm/FullScreenOverlayContext.js +1 -1
  442. package/dist/esm/HintLink.js +1 -1
  443. package/dist/esm/IconWithTooltip.js +1 -1
  444. package/dist/esm/IconWithTooltip.js.map +1 -1
  445. package/dist/esm/Link.js +1 -1
  446. package/dist/esm/Link.js.map +1 -1
  447. package/dist/esm/MuiPropsChild.js +1 -1
  448. package/dist/esm/NativeSelect.js +1 -1
  449. package/dist/esm/NativeSelect.js.map +1 -1
  450. package/dist/esm/OdysseyCacheProvider.js +1 -1
  451. package/dist/esm/OdysseyCacheProvider.js.map +1 -1
  452. package/dist/esm/OdysseyDesignTokensContext.js.map +1 -1
  453. package/dist/esm/OdysseyProvider.js +1 -1
  454. package/dist/esm/OdysseyProvider.js.map +1 -1
  455. package/dist/esm/OdysseyThemeProvider.js +1 -1
  456. package/dist/esm/OdysseyThemeProvider.js.map +1 -1
  457. package/dist/esm/OdysseyThemeProviderPropsContext.js +1 -1
  458. package/dist/esm/Pagination/Pagination.js +1 -1
  459. package/dist/esm/Pagination/Pagination.js.map +1 -1
  460. package/dist/esm/PasswordField.js +1 -1
  461. package/dist/esm/PasswordField.js.map +1 -1
  462. package/dist/esm/ScreenReaderText.js +1 -1
  463. package/dist/esm/ScreenReaderText.js.map +1 -1
  464. package/dist/esm/SearchField.js +1 -1
  465. package/dist/esm/SearchField.js.map +1 -1
  466. package/dist/esm/Select.js +1 -1
  467. package/dist/esm/Select.js.map +1 -1
  468. package/dist/esm/Stack.js +1 -1
  469. package/dist/esm/Stack.js.map +1 -1
  470. package/dist/esm/Status.js +1 -1
  471. package/dist/esm/Status.js.map +1 -1
  472. package/dist/esm/Surface.js +1 -1
  473. package/dist/esm/Surface.js.map +1 -1
  474. package/dist/esm/Switch.js +2 -2
  475. package/dist/esm/Switch.js.map +1 -1
  476. package/dist/esm/Tabs.js +1 -1
  477. package/dist/esm/Tabs.js.map +1 -1
  478. package/dist/esm/Tag.js +1 -1
  479. package/dist/esm/Tag.js.map +1 -1
  480. package/dist/esm/TagList.js +1 -1
  481. package/dist/esm/TagList.js.map +1 -1
  482. package/dist/esm/TextField.js +1 -1
  483. package/dist/esm/TextField.js.map +1 -1
  484. package/dist/esm/Toast.js +1 -1
  485. package/dist/esm/Toast.js.map +1 -1
  486. package/dist/esm/ToastStack.js +1 -1
  487. package/dist/esm/ToastStack.js.map +1 -1
  488. package/dist/esm/Tooltip.js +1 -1
  489. package/dist/esm/Tooltip.js.map +1 -1
  490. package/dist/esm/Typography.js +12 -12
  491. package/dist/esm/Typography.js.map +1 -1
  492. package/dist/esm/__internal.js.map +1 -1
  493. package/dist/esm/charts/BarChart.js +1 -1
  494. package/dist/esm/charts/BarChart.js.map +1 -1
  495. package/dist/esm/charts/LineChart.js +1 -1
  496. package/dist/esm/charts/LineChart.js.map +1 -1
  497. package/dist/esm/charts/components/ChartContainer.js.map +1 -1
  498. package/dist/esm/charts/components/ChartError.js +1 -1
  499. package/dist/esm/charts/components/ChartError.js.map +1 -1
  500. package/dist/esm/charts/components/ChartFrame.js +1 -1
  501. package/dist/esm/charts/components/ChartFrame.js.map +1 -1
  502. package/dist/esm/charts/components/ChartPopoverContent.js +1 -1
  503. package/dist/esm/charts/components/ChartPopoverContent.js.map +1 -1
  504. package/dist/esm/charts/utils/chartTokens.js.map +1 -1
  505. package/dist/esm/charts/utils/chartTypes.js.map +1 -1
  506. package/dist/esm/charts/utils/formatChartValue.js.map +1 -1
  507. package/dist/esm/charts/utils/getChartSeriesPointData.js.map +1 -1
  508. package/dist/esm/charts/utils/hasDuplicateSeries.js.map +1 -1
  509. package/dist/esm/charts/utils/resolveChartLocale.js.map +1 -1
  510. package/dist/esm/charts/utils/useChartValueFormatter.js.map +1 -1
  511. package/dist/esm/charts/utils/useStableValue.js.map +1 -1
  512. package/dist/esm/createContrastColors.js.map +1 -1
  513. package/dist/esm/createOdysseyStyledComponent.js.map +1 -1
  514. package/dist/esm/getLogicalBoundaries.js.map +1 -1
  515. package/dist/esm/icons.generated/Add.js +1 -1
  516. package/dist/esm/icons.generated/AddCircle.js +1 -1
  517. package/dist/esm/icons.generated/Apps.js +1 -1
  518. package/dist/esm/icons.generated/AppsSelected.js +1 -1
  519. package/dist/esm/icons.generated/ArrowBottom.js +1 -1
  520. package/dist/esm/icons.generated/ArrowDown.js +1 -1
  521. package/dist/esm/icons.generated/ArrowLeft.js +1 -1
  522. package/dist/esm/icons.generated/ArrowLowerLeft.js +1 -1
  523. package/dist/esm/icons.generated/ArrowLowerRight.js +1 -1
  524. package/dist/esm/icons.generated/ArrowRight.js +1 -1
  525. package/dist/esm/icons.generated/ArrowTop.js +1 -1
  526. package/dist/esm/icons.generated/ArrowUnsorted.js +1 -1
  527. package/dist/esm/icons.generated/ArrowUp.js +1 -1
  528. package/dist/esm/icons.generated/ArrowUpperLeft.js +1 -1
  529. package/dist/esm/icons.generated/ArrowUpperRight.js +1 -1
  530. package/dist/esm/icons.generated/Bug.js +1 -1
  531. package/dist/esm/icons.generated/Calendar.js +1 -1
  532. package/dist/esm/icons.generated/Call.js +1 -1
  533. package/dist/esm/icons.generated/Chat.js +1 -1
  534. package/dist/esm/icons.generated/Check.js +1 -1
  535. package/dist/esm/icons.generated/CheckCircleFilled.js +1 -1
  536. package/dist/esm/icons.generated/ChevronDown.js +1 -1
  537. package/dist/esm/icons.generated/ChevronLeft.js +1 -1
  538. package/dist/esm/icons.generated/ChevronRight.js +1 -1
  539. package/dist/esm/icons.generated/ChevronUp.js +1 -1
  540. package/dist/esm/icons.generated/Clock.js +1 -1
  541. package/dist/esm/icons.generated/Close.js +1 -1
  542. package/dist/esm/icons.generated/CloseCircleFilled.js +1 -1
  543. package/dist/esm/icons.generated/CollapseLeft.js +1 -1
  544. package/dist/esm/icons.generated/CollapseRight.js +1 -1
  545. package/dist/esm/icons.generated/Copy.js +1 -1
  546. package/dist/esm/icons.generated/Customizations.js +1 -1
  547. package/dist/esm/icons.generated/CustomizationsSelected.js +1 -1
  548. package/dist/esm/icons.generated/DangerDiamond.js +1 -1
  549. package/dist/esm/icons.generated/DangerDiamondFilled.js +1 -1
  550. package/dist/esm/icons.generated/Delete.js +1 -1
  551. package/dist/esm/icons.generated/Deny.js +1 -1
  552. package/dist/esm/icons.generated/Devices.js +1 -1
  553. package/dist/esm/icons.generated/Directory.js +1 -1
  554. package/dist/esm/icons.generated/DirectorySelected.js +1 -1
  555. package/dist/esm/icons.generated/Documentation.js +1 -1
  556. package/dist/esm/icons.generated/Download.js +1 -1
  557. package/dist/esm/icons.generated/DragIndicator.js +1 -1
  558. package/dist/esm/icons.generated/Edit.js +1 -1
  559. package/dist/esm/icons.generated/ExpandLeft.js +1 -1
  560. package/dist/esm/icons.generated/ExpandRight.js +1 -1
  561. package/dist/esm/icons.generated/ExternalLink.js +1 -1
  562. package/dist/esm/icons.generated/Filter.js +1 -1
  563. package/dist/esm/icons.generated/Folder.js +1 -1
  564. package/dist/esm/icons.generated/Globe.js +1 -1
  565. package/dist/esm/icons.generated/Grid.js +1 -1
  566. package/dist/esm/icons.generated/Group.js +1 -1
  567. package/dist/esm/icons.generated/Happy.js +1 -1
  568. package/dist/esm/icons.generated/Hide.js +1 -1
  569. package/dist/esm/icons.generated/Home.js +1 -1
  570. package/dist/esm/icons.generated/HomeSelected.js +1 -1
  571. package/dist/esm/icons.generated/IdentityGovernance.js +1 -1
  572. package/dist/esm/icons.generated/IdentityGovernanceSelected.js +1 -1
  573. package/dist/esm/icons.generated/InformationCircle.js +1 -1
  574. package/dist/esm/icons.generated/InformationCircleFilled.js +1 -1
  575. package/dist/esm/icons.generated/Link.js +1 -1
  576. package/dist/esm/icons.generated/List.js +1 -1
  577. package/dist/esm/icons.generated/Lock.js +1 -1
  578. package/dist/esm/icons.generated/Menu.js +1 -1
  579. package/dist/esm/icons.generated/More.js +1 -1
  580. package/dist/esm/icons.generated/Neutral.js +1 -1
  581. package/dist/esm/icons.generated/Notification.js +1 -1
  582. package/dist/esm/icons.generated/Pause.js +1 -1
  583. package/dist/esm/icons.generated/QuestionCircle.js +1 -1
  584. package/dist/esm/icons.generated/QuestionCircleFilled.js +1 -1
  585. package/dist/esm/icons.generated/Refresh.js +1 -1
  586. package/dist/esm/icons.generated/Reports.js +1 -1
  587. package/dist/esm/icons.generated/ReportsSelected.js +1 -1
  588. package/dist/esm/icons.generated/Reset.js +1 -1
  589. package/dist/esm/icons.generated/Resume.js +1 -1
  590. package/dist/esm/icons.generated/Sad.js +1 -1
  591. package/dist/esm/icons.generated/Same.js +1 -1
  592. package/dist/esm/icons.generated/Search.js +1 -1
  593. package/dist/esm/icons.generated/Security.js +1 -1
  594. package/dist/esm/icons.generated/SecuritySelected.js +1 -1
  595. package/dist/esm/icons.generated/Send.js +1 -1
  596. package/dist/esm/icons.generated/Server.js +1 -1
  597. package/dist/esm/icons.generated/Settings.js +1 -1
  598. package/dist/esm/icons.generated/SettingsSelected.js +1 -1
  599. package/dist/esm/icons.generated/Show.js +1 -1
  600. package/dist/esm/icons.generated/Sparkle.js +1 -1
  601. package/dist/esm/icons.generated/Subtract.js +1 -1
  602. package/dist/esm/icons.generated/Sync.js +1 -1
  603. package/dist/esm/icons.generated/ThumbsDown.js +1 -1
  604. package/dist/esm/icons.generated/ThumbsUp.js +1 -1
  605. package/dist/esm/icons.generated/Unlock.js +1 -1
  606. package/dist/esm/icons.generated/Upload.js +1 -1
  607. package/dist/esm/icons.generated/User.js +1 -1
  608. package/dist/esm/icons.generated/Video.js +1 -1
  609. package/dist/esm/icons.generated/Warning.js +1 -1
  610. package/dist/esm/icons.generated/WarningFilled.js +1 -1
  611. package/dist/esm/icons.generated/Workflows.js +1 -1
  612. package/dist/esm/icons.generated/WorkflowsSelected.js +1 -1
  613. package/dist/esm/inputUtils.js.map +1 -1
  614. package/dist/esm/labs/AppTile.js +1 -1
  615. package/dist/esm/labs/AppTile.js.map +1 -1
  616. package/dist/esm/labs/DataFilters.js +2 -2
  617. package/dist/esm/labs/DataFilters.js.map +1 -1
  618. package/dist/esm/labs/DataTable.js +1 -1
  619. package/dist/esm/labs/DataTable.js.map +1 -1
  620. package/dist/esm/labs/DataTablePagination.js +1 -1
  621. package/dist/esm/labs/DataView/BulkActionsMenu.js +1 -1
  622. package/dist/esm/labs/DataView/BulkActionsMenu.js.map +1 -1
  623. package/dist/esm/labs/DataView/CardLayoutContent.js +2 -2
  624. package/dist/esm/labs/DataView/CardLayoutContent.js.map +1 -1
  625. package/dist/esm/labs/DataView/DataCard.js +1 -1
  626. package/dist/esm/labs/DataView/DataCard.js.map +1 -1
  627. package/dist/esm/labs/DataView/DataTable.js +1 -1
  628. package/dist/esm/labs/DataView/DataTable.js.map +1 -1
  629. package/dist/esm/labs/DataView/DataView.js +1 -1
  630. package/dist/esm/labs/DataView/DataView.js.map +1 -1
  631. package/dist/esm/labs/DataView/DetailPanel.js +1 -1
  632. package/dist/esm/labs/DataView/LayoutSwitcher.js +1 -1
  633. package/dist/esm/labs/DataView/RowActions.js +1 -1
  634. package/dist/esm/labs/DataView/RowActions.js.map +1 -1
  635. package/dist/esm/labs/DataView/TableLayoutContent.js +1 -1
  636. package/dist/esm/labs/DataView/TableLayoutContent.js.map +1 -1
  637. package/dist/esm/labs/DataView/TableSettings.js +1 -1
  638. package/dist/esm/labs/DataView/TableSettings.js.map +1 -1
  639. package/dist/esm/labs/DataView/componentTypes.js.map +1 -1
  640. package/dist/esm/labs/DataView/tableConstants.js.map +1 -1
  641. package/dist/esm/labs/DataView/testSupportData.js.map +1 -1
  642. package/dist/esm/labs/DataView/useFilterConversion.js.map +1 -1
  643. package/dist/esm/labs/DatePickers/DateTimeField.js +1 -1
  644. package/dist/esm/labs/DatePickers/DateTimePicker.js +2 -2
  645. package/dist/esm/labs/DatePickers/DateTimePicker.js.map +1 -1
  646. package/dist/esm/labs/DatePickers/dateTimePickerTheme.js +4 -4
  647. package/dist/esm/labs/DatePickers/dateTimePickerTheme.js.map +1 -1
  648. package/dist/esm/labs/OdysseyPickers/ComposablePicker.js +1 -1
  649. package/dist/esm/labs/OdysseyPickers/Picker.js +1 -1
  650. package/dist/esm/labs/OdysseyPickers/PickerVirtualizationListBox.js +1 -1
  651. package/dist/esm/labs/OdysseyPickers/PickerVirtualizationListBox.js.map +1 -1
  652. package/dist/esm/labs/OdysseyPickers/PickerWithOptionAdornment.js +1 -1
  653. package/dist/esm/labs/OdysseyPickers/SearchDropdown.js +1 -1
  654. package/dist/esm/labs/PageTemplate/DocumentationLink.js +1 -1
  655. package/dist/esm/labs/PageTemplate/Layout.js +1 -1
  656. package/dist/esm/labs/PageTemplate/Layout.js.map +1 -1
  657. package/dist/esm/labs/PageTemplate/PageTemplate.js +1 -1
  658. package/dist/esm/labs/PaginatedTable.js +1 -1
  659. package/dist/esm/labs/StaticTable.js +1 -1
  660. package/dist/esm/labs/UserProfile.js +1 -1
  661. package/dist/esm/labs/UserProfileMenuButton.js +1 -1
  662. package/dist/esm/logos.generated/Duo.js +1 -1
  663. package/dist/esm/logos.generated/GoogleAuth.js +1 -1
  664. package/dist/esm/logos.generated/OktaVerify.js +1 -1
  665. package/dist/esm/logos.generated/Persona.js +1 -1
  666. package/dist/esm/logos.generated/SymantecVip.js +1 -1
  667. package/dist/esm/logos.generated/Yubikey.js +1 -1
  668. package/dist/esm/test-utils/appendToSandbox.js.map +1 -1
  669. package/dist/esm/test-utils/getControlledElement.js.map +1 -1
  670. package/dist/esm/test-utils/renderWithOdysseyProvider.js.map +1 -1
  671. package/dist/esm/test-utils/viewportTestSizes.js.map +1 -1
  672. package/dist/esm/theme/components/Autocomplete.js.map +1 -1
  673. package/dist/esm/theme/components/Button.js.map +1 -1
  674. package/dist/esm/theme/components/CircularProgress.js.map +1 -1
  675. package/dist/esm/theme/components/Drawer.js.map +1 -1
  676. package/dist/esm/theme/components/Form.js.map +1 -1
  677. package/dist/esm/theme/components/Input.js.map +1 -1
  678. package/dist/esm/theme/components/Table.js.map +1 -1
  679. package/dist/esm/theme/useAppElementContainerQuery.js.map +1 -1
  680. package/dist/esm/theme/useContainerQuery.js.map +1 -1
  681. package/dist/esm/theme/useMediaQuery.js.map +1 -1
  682. package/dist/esm/tools/addSpecificity.js.map +1 -1
  683. package/dist/esm/tools/createBrowserMessageBus.js +41 -0
  684. package/dist/esm/tools/createBrowserMessageBus.js.map +1 -0
  685. package/dist/esm/ui-shell/AppSwitcher/AppSwitcher.js +1 -1
  686. package/dist/esm/ui-shell/InnerAppContainer.js +1 -1
  687. package/dist/esm/ui-shell/NarrowUiShellContent.js +1 -1
  688. package/dist/esm/ui-shell/NarrowUiShellContent.js.map +1 -1
  689. package/dist/esm/ui-shell/SideNav/NavAccordion.js +1 -1
  690. package/dist/esm/ui-shell/SideNav/SideNav.js +1 -1
  691. package/dist/esm/ui-shell/SideNav/SideNav.js.map +1 -1
  692. package/dist/esm/ui-shell/SideNav/SideNavFooterContent.js +1 -1
  693. package/dist/esm/ui-shell/SideNav/SideNavHeader.js +1 -1
  694. package/dist/esm/ui-shell/SideNav/SideNavItemContent.js +2 -2
  695. package/dist/esm/ui-shell/SideNav/SideNavItemContent.js.map +1 -1
  696. package/dist/esm/ui-shell/SideNav/SideNavItemContentContext.js.map +1 -1
  697. package/dist/esm/ui-shell/SideNav/SideNavItemLinkContent.js +1 -1
  698. package/dist/esm/ui-shell/SideNav/SideNavSortableList.js +1 -1
  699. package/dist/esm/ui-shell/SideNav/SideNavToggleButton.js +2 -2
  700. package/dist/esm/ui-shell/SideNav/SideNavToggleButton.js.map +1 -1
  701. package/dist/esm/ui-shell/SideNav/SortableList/SortableItem.js.map +1 -1
  702. package/dist/esm/ui-shell/SideNav/SortableList/SortableList.js.map +1 -1
  703. package/dist/esm/ui-shell/SideNav/SortableList/SortableOverlay.js.map +1 -1
  704. package/dist/esm/ui-shell/SideNav/types.js.map +1 -1
  705. package/dist/esm/ui-shell/SkipToContent.js +1 -1
  706. package/dist/esm/ui-shell/SkipToContent.js.map +1 -1
  707. package/dist/esm/ui-shell/TopNav/HamburgerMenuIcon.js +1 -1
  708. package/dist/esm/ui-shell/TopNav/TopNav.js +1 -1
  709. package/dist/esm/ui-shell/TopNav/TopNavLinksList.js +1 -1
  710. package/dist/esm/ui-shell/TopNav/TopNavListItem.js +1 -1
  711. package/dist/esm/ui-shell/TopNav/TopNavListItem.js.map +1 -1
  712. package/dist/esm/ui-shell/UiShell.js +1 -1
  713. package/dist/esm/ui-shell/UiShell.js.map +1 -1
  714. package/dist/esm/ui-shell/UiShellLogo.js +1 -1
  715. package/dist/esm/ui-shell/UiShellProvider.js.map +1 -1
  716. package/dist/esm/ui-shell/WideUiShellContent.js +1 -1
  717. package/dist/esm/ui-shell/renderUiShell.js.map +1 -1
  718. package/dist/esm/ui-shell/uiShellContentTypes.js.map +1 -1
  719. package/dist/esm/ui-shell/uiShellSharedConstants.js.map +1 -1
  720. package/dist/esm/useContrastMode.js.map +1 -1
  721. package/dist/esm/useStableCallback.js.map +1 -1
  722. package/dist/esm/useThemeCache.js.map +1 -1
  723. package/dist/esm/web-component/odysseyWebComponentVersion.generated.js +1 -1
  724. package/dist/esm/web-component/odysseyWebComponentVersion.generated.js.map +1 -1
  725. package/dist/esm/web-component/renderReactInWebComponent.js.map +1 -1
  726. package/dist/tsconfig.production.tsbuildinfo +1 -1
  727. package/dist/types/Accordion.d.ts.map +1 -1
  728. package/dist/types/Autocomplete.d.ts +5 -17
  729. package/dist/types/Autocomplete.d.ts.map +1 -1
  730. package/dist/types/Badge.d.ts.map +1 -1
  731. package/dist/types/Banner.d.ts.map +1 -1
  732. package/dist/types/Box.d.ts.map +1 -1
  733. package/dist/types/Breadcrumbs.d.ts +4 -8
  734. package/dist/types/Breadcrumbs.d.ts.map +1 -1
  735. package/dist/types/Buttons/BaseButton.d.ts +2 -6
  736. package/dist/types/Buttons/BaseButton.d.ts.map +1 -1
  737. package/dist/types/Buttons/BaseMenuButton.d.ts +1 -2
  738. package/dist/types/Buttons/BaseMenuButton.d.ts.map +1 -1
  739. package/dist/types/Buttons/Button.d.ts.map +1 -1
  740. package/dist/types/Buttons/MenuButton.d.ts.map +1 -1
  741. package/dist/types/Buttons/MenuItem.d.ts.map +1 -1
  742. package/dist/types/Callout.d.ts.map +1 -1
  743. package/dist/types/Card.d.ts.map +1 -1
  744. package/dist/types/CircularProgress.d.ts +1 -2
  745. package/dist/types/CircularProgress.d.ts.map +1 -1
  746. package/dist/types/ConditionalWrapper.d.ts +1 -2
  747. package/dist/types/ConditionalWrapper.d.ts.map +1 -1
  748. package/dist/types/CssBaseline.d.ts +1 -2
  749. package/dist/types/CssBaseline.d.ts.map +1 -1
  750. package/dist/types/DataTable/DataTable.d.ts +9 -19
  751. package/dist/types/DataTable/DataTable.d.ts.map +1 -1
  752. package/dist/types/DataTable/useRowReordering.d.ts.map +1 -1
  753. package/dist/types/DatePickers/DatePicker.d.ts.map +1 -1
  754. package/dist/types/DatePickers/TimeZonePicker.d.ts +1 -2
  755. package/dist/types/DatePickers/TimeZonePicker.d.ts.map +1 -1
  756. package/dist/types/DatePickers/datePickerTheme.d.ts.map +1 -1
  757. package/dist/types/DatePickers/useOdysseyDateFields.d.ts +4 -8
  758. package/dist/types/DatePickers/useOdysseyDateFields.d.ts.map +1 -1
  759. package/dist/types/Dialog.d.ts +5 -10
  760. package/dist/types/Dialog.d.ts.map +1 -1
  761. package/dist/types/Drawer.d.ts +4 -9
  762. package/dist/types/Drawer.d.ts.map +1 -1
  763. package/dist/types/EmptyState.d.ts.map +1 -1
  764. package/dist/types/Fields/Checkbox.d.ts.map +1 -1
  765. package/dist/types/Fields/CheckboxGroup.d.ts.map +1 -1
  766. package/dist/types/Fields/Hint.d.ts.map +1 -1
  767. package/dist/types/Fields/RadioGroup.d.ts.map +1 -1
  768. package/dist/types/Fieldset.d.ts.map +1 -1
  769. package/dist/types/FileUploader/FileUploader.d.ts +2 -4
  770. package/dist/types/FileUploader/FileUploader.d.ts.map +1 -1
  771. package/dist/types/Form.d.ts +6 -13
  772. package/dist/types/Form.d.ts.map +1 -1
  773. package/dist/types/FormCheckedProps.d.ts +4 -8
  774. package/dist/types/FormCheckedProps.d.ts.map +1 -1
  775. package/dist/types/IconWithTooltip.d.ts.map +1 -1
  776. package/dist/types/Link.d.ts.map +1 -1
  777. package/dist/types/NativeSelect.d.ts +2 -4
  778. package/dist/types/NativeSelect.d.ts.map +1 -1
  779. package/dist/types/OdysseyCacheProvider.d.ts +5 -11
  780. package/dist/types/OdysseyCacheProvider.d.ts.map +1 -1
  781. package/dist/types/OdysseyDesignTokensContext.d.ts.map +1 -1
  782. package/dist/types/OdysseyProvider.d.ts +1 -2
  783. package/dist/types/OdysseyProvider.d.ts.map +1 -1
  784. package/dist/types/OdysseyThemeProvider.d.ts +1 -2
  785. package/dist/types/OdysseyThemeProvider.d.ts.map +1 -1
  786. package/dist/types/Pagination/Pagination.d.ts +1 -2
  787. package/dist/types/Pagination/Pagination.d.ts.map +1 -1
  788. package/dist/types/PasswordField.d.ts +2 -14
  789. package/dist/types/PasswordField.d.ts.map +1 -1
  790. package/dist/types/ScreenReaderText.d.ts +1 -2
  791. package/dist/types/ScreenReaderText.d.ts.map +1 -1
  792. package/dist/types/SearchField.d.ts +2 -4
  793. package/dist/types/SearchField.d.ts.map +1 -1
  794. package/dist/types/Select.d.ts.map +1 -1
  795. package/dist/types/Stack.d.ts.map +1 -1
  796. package/dist/types/Status.d.ts.map +1 -1
  797. package/dist/types/Surface.d.ts.map +1 -1
  798. package/dist/types/Switch.d.ts.map +1 -1
  799. package/dist/types/Tabs.d.ts +1 -2
  800. package/dist/types/Tabs.d.ts.map +1 -1
  801. package/dist/types/Tag.d.ts.map +1 -1
  802. package/dist/types/TagList.d.ts.map +1 -1
  803. package/dist/types/TextField.d.ts +6 -12
  804. package/dist/types/TextField.d.ts.map +1 -1
  805. package/dist/types/Toast.d.ts +2 -4
  806. package/dist/types/Toast.d.ts.map +1 -1
  807. package/dist/types/ToastStack.d.ts.map +1 -1
  808. package/dist/types/Tooltip.d.ts.map +1 -1
  809. package/dist/types/Typography.d.ts +3 -6
  810. package/dist/types/Typography.d.ts.map +1 -1
  811. package/dist/types/__internal.d.ts +1 -2
  812. package/dist/types/__internal.d.ts.map +1 -1
  813. package/dist/types/charts/BarChart.d.ts +1 -3
  814. package/dist/types/charts/BarChart.d.ts.map +1 -1
  815. package/dist/types/charts/LineChart.d.ts +1 -3
  816. package/dist/types/charts/LineChart.d.ts.map +1 -1
  817. package/dist/types/charts/components/ChartContainer.d.ts +1 -3
  818. package/dist/types/charts/components/ChartContainer.d.ts.map +1 -1
  819. package/dist/types/charts/components/ChartError.d.ts +1 -3
  820. package/dist/types/charts/components/ChartError.d.ts.map +1 -1
  821. package/dist/types/charts/components/ChartFrame.d.ts +7 -16
  822. package/dist/types/charts/components/ChartFrame.d.ts.map +1 -1
  823. package/dist/types/charts/components/ChartPopoverContent.d.ts +14 -36
  824. package/dist/types/charts/components/ChartPopoverContent.d.ts.map +1 -1
  825. package/dist/types/charts/utils/chartTokens.d.ts +7 -25
  826. package/dist/types/charts/utils/chartTokens.d.ts.map +1 -1
  827. package/dist/types/charts/utils/chartTypes.d.ts +21 -55
  828. package/dist/types/charts/utils/chartTypes.d.ts.map +1 -1
  829. package/dist/types/charts/utils/formatChartValue.d.ts +7 -28
  830. package/dist/types/charts/utils/formatChartValue.d.ts.map +1 -1
  831. package/dist/types/charts/utils/getChartSeriesPointData.d.ts +5 -16
  832. package/dist/types/charts/utils/getChartSeriesPointData.d.ts.map +1 -1
  833. package/dist/types/charts/utils/hasDuplicateSeries.d.ts +1 -3
  834. package/dist/types/charts/utils/hasDuplicateSeries.d.ts.map +1 -1
  835. package/dist/types/charts/utils/resolveChartLocale.d.ts +3 -11
  836. package/dist/types/charts/utils/resolveChartLocale.d.ts.map +1 -1
  837. package/dist/types/charts/utils/useChartValueFormatter.d.ts +3 -10
  838. package/dist/types/charts/utils/useChartValueFormatter.d.ts.map +1 -1
  839. package/dist/types/charts/utils/useStableValue.d.ts +3 -12
  840. package/dist/types/charts/utils/useStableValue.d.ts.map +1 -1
  841. package/dist/types/createContrastColors.d.ts.map +1 -1
  842. package/dist/types/createOdysseyStyledComponent.d.ts +1 -3
  843. package/dist/types/createOdysseyStyledComponent.d.ts.map +1 -1
  844. package/dist/types/getLogicalBoundaries.d.ts +1 -2
  845. package/dist/types/getLogicalBoundaries.d.ts.map +1 -1
  846. package/dist/types/inputUtils.d.ts +2 -4
  847. package/dist/types/inputUtils.d.ts.map +1 -1
  848. package/dist/types/labs/AppTile.d.ts.map +1 -1
  849. package/dist/types/labs/DataFilters.d.ts +9 -20
  850. package/dist/types/labs/DataFilters.d.ts.map +1 -1
  851. package/dist/types/labs/DataTable.d.ts +10 -21
  852. package/dist/types/labs/DataTable.d.ts.map +1 -1
  853. package/dist/types/labs/DataView/BulkActionsMenu.d.ts.map +1 -1
  854. package/dist/types/labs/DataView/CardLayoutContent.d.ts +1 -1
  855. package/dist/types/labs/DataView/CardLayoutContent.d.ts.map +1 -1
  856. package/dist/types/labs/DataView/DataCard.d.ts +1 -2
  857. package/dist/types/labs/DataView/DataCard.d.ts.map +1 -1
  858. package/dist/types/labs/DataView/DataTable.d.ts +1 -0
  859. package/dist/types/labs/DataView/DataTable.d.ts.map +1 -1
  860. package/dist/types/labs/DataView/DataView.d.ts +1 -0
  861. package/dist/types/labs/DataView/DataView.d.ts.map +1 -1
  862. package/dist/types/labs/DataView/RowActions.d.ts.map +1 -1
  863. package/dist/types/labs/DataView/TableLayoutContent.d.ts +1 -1
  864. package/dist/types/labs/DataView/TableLayoutContent.d.ts.map +1 -1
  865. package/dist/types/labs/DataView/TableSettings.d.ts +1 -1
  866. package/dist/types/labs/DataView/TableSettings.d.ts.map +1 -1
  867. package/dist/types/labs/DataView/componentTypes.d.ts +4 -13
  868. package/dist/types/labs/DataView/componentTypes.d.ts.map +1 -1
  869. package/dist/types/labs/DataView/tableConstants.d.ts.map +1 -1
  870. package/dist/types/labs/DataView/testSupportData.d.ts.map +1 -1
  871. package/dist/types/labs/DataView/useFilterConversion.d.ts.map +1 -1
  872. package/dist/types/labs/OdysseyPickers/PickerVirtualizationListBox.d.ts.map +1 -1
  873. package/dist/types/labs/PageTemplate/Layout.d.ts +1 -2
  874. package/dist/types/labs/PageTemplate/Layout.d.ts.map +1 -1
  875. package/dist/types/test-utils/appendToSandbox.d.ts +3 -16
  876. package/dist/types/test-utils/appendToSandbox.d.ts.map +1 -1
  877. package/dist/types/test-utils/getControlledElement.d.ts +1 -2
  878. package/dist/types/test-utils/getControlledElement.d.ts.map +1 -1
  879. package/dist/types/test-utils/renderWithOdysseyProvider.d.ts.map +1 -1
  880. package/dist/types/test-utils/viewportTestSizes.d.ts.map +1 -1
  881. package/dist/types/theme/components/Autocomplete.d.ts.map +1 -1
  882. package/dist/types/theme/components/Button.d.ts.map +1 -1
  883. package/dist/types/theme/components/CircularProgress.d.ts.map +1 -1
  884. package/dist/types/theme/components/Drawer.d.ts.map +1 -1
  885. package/dist/types/theme/components/Form.d.ts.map +1 -1
  886. package/dist/types/theme/components/Input.d.ts.map +1 -1
  887. package/dist/types/theme/components/Table.d.ts.map +1 -1
  888. package/dist/types/theme/useAppElementContainerQuery.d.ts +1 -7
  889. package/dist/types/theme/useAppElementContainerQuery.d.ts.map +1 -1
  890. package/dist/types/theme/useContainerQuery.d.ts +2 -8
  891. package/dist/types/theme/useContainerQuery.d.ts.map +1 -1
  892. package/dist/types/theme/useMediaQuery.d.ts +12 -38
  893. package/dist/types/theme/useMediaQuery.d.ts.map +1 -1
  894. package/dist/types/tools/addSpecificity.d.ts +1 -2
  895. package/dist/types/tools/addSpecificity.d.ts.map +1 -1
  896. package/dist/types/tools/createBrowserMessageBus.d.ts +45 -0
  897. package/dist/types/tools/createBrowserMessageBus.d.ts.map +1 -0
  898. package/dist/types/ui-shell/NarrowUiShellContent.d.ts.map +1 -1
  899. package/dist/types/ui-shell/SideNav/SideNav.d.ts.map +1 -1
  900. package/dist/types/ui-shell/SideNav/SideNavItemContent.d.ts.map +1 -1
  901. package/dist/types/ui-shell/SideNav/SideNavItemContentContext.d.ts +1 -3
  902. package/dist/types/ui-shell/SideNav/SideNavItemContentContext.d.ts.map +1 -1
  903. package/dist/types/ui-shell/SideNav/SideNavToggleButton.d.ts.map +1 -1
  904. package/dist/types/ui-shell/SideNav/SortableList/SortableItem.d.ts.map +1 -1
  905. package/dist/types/ui-shell/SideNav/SortableList/SortableList.d.ts +1 -3
  906. package/dist/types/ui-shell/SideNav/SortableList/SortableList.d.ts.map +1 -1
  907. package/dist/types/ui-shell/SideNav/SortableList/SortableOverlay.d.ts.map +1 -1
  908. package/dist/types/ui-shell/SideNav/types.d.ts +6 -13
  909. package/dist/types/ui-shell/SideNav/types.d.ts.map +1 -1
  910. package/dist/types/ui-shell/SkipToContent.d.ts.map +1 -1
  911. package/dist/types/ui-shell/TopNav/TopNavListItem.d.ts +1 -2
  912. package/dist/types/ui-shell/TopNav/TopNavListItem.d.ts.map +1 -1
  913. package/dist/types/ui-shell/UiShell.d.ts +4 -8
  914. package/dist/types/ui-shell/UiShell.d.ts.map +1 -1
  915. package/dist/types/ui-shell/UiShellProvider.d.ts +2 -4
  916. package/dist/types/ui-shell/UiShellProvider.d.ts.map +1 -1
  917. package/dist/types/ui-shell/renderUiShell.d.ts +2 -5
  918. package/dist/types/ui-shell/renderUiShell.d.ts.map +1 -1
  919. package/dist/types/ui-shell/uiShellContentTypes.d.ts +1 -2
  920. package/dist/types/ui-shell/uiShellContentTypes.d.ts.map +1 -1
  921. package/dist/types/ui-shell/uiShellSharedConstants.d.ts.map +1 -1
  922. package/dist/types/useContrastMode.d.ts +2 -7
  923. package/dist/types/useContrastMode.d.ts.map +1 -1
  924. package/dist/types/useStableCallback.d.ts +5 -16
  925. package/dist/types/useStableCallback.d.ts.map +1 -1
  926. package/dist/types/useThemeCache.d.ts.map +1 -1
  927. package/dist/types/web-component/odysseyWebComponentVersion.generated.d.ts +1 -1
  928. package/dist/types/web-component/renderReactInWebComponent.d.ts +6 -12
  929. package/dist/types/web-component/renderReactInWebComponent.d.ts.map +1 -1
  930. package/package.json +9 -9
@@ -1 +1 @@
1
- {"version":3,"file":"Typography.js","names":["memo","useImperativeHandle","useMemo","useRef","jsx","_jsx","typographyVariantMapping","h1","h2","h3","h4","h5","h6","body","legend","overline","subordinate","support","typographyColorValues","typographyOverflowWrapValues","Typography","ariaCurrent","ariaDescribedBy","ariaLabel","ariaLabelledBy","children","color","component","componentProp","id","isPresentational","overflowWrap","testId","translate","typographyRef","variant","localTypographyRef","focus","current","_Typography","ref","role","undefined","style","tabIndex","MemoizedTypography","displayName","Heading1","MemoizedHeading1","Heading2","MemoizedHeading2","Heading3","MemoizedHeading3","Heading4","MemoizedHeading4","Heading5","MemoizedHeading5","Heading6","MemoizedHeading6","Paragraph","MemoizedParagraph","Subordinate","MemoizedSubordinate","Support","MemoizedSupport","Legend","MemoizedLegend","Overline","MemoizedOverline"],"sources":["../../src/Typography.tsx"],"sourcesContent":["/*!\n * Copyright (c) 2023-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 Typography as MuiTypography,\n TypographyProps as MuiTypographyProps,\n} from \"@mui/material\";\nimport {\n CSSProperties,\n ElementType,\n memo,\n ReactNode,\n useImperativeHandle,\n useMemo,\n useRef,\n} from \"react\";\n\nimport { HtmlProps } from \"./HtmlProps.js\";\nimport { FocusHandle } from \"./inputUtils.js\";\n\nexport type TypographyVariantValue =\n | \"h1\"\n | \"h2\"\n | \"h3\"\n | \"h4\"\n | \"h5\"\n | \"h6\"\n | \"body\"\n | \"legend\"\n | \"overline\"\n | \"subordinate\"\n | \"support\";\n\nexport const typographyVariantMapping: Record<\n TypographyVariantValue,\n MuiTypographyProps[\"variant\"]\n> = {\n h1: \"h1\",\n h2: \"h2\",\n h3: \"h3\",\n h4: \"h4\",\n h5: \"h5\",\n h6: \"h6\",\n body: \"body1\",\n legend: \"legend\",\n overline: \"overline\",\n subordinate: \"subtitle1\",\n support: \"subtitle2\",\n} as const;\n\nexport const typographyColorValues = [\n \"primary\",\n \"textPrimary\",\n \"secondary\",\n \"textSecondary\",\n \"error\",\n] as const;\n\nexport const typographyOverflowWrapValues = [\n \"normal\",\n \"break-word\",\n \"anywhere\",\n] as const satisfies readonly NonNullable<CSSProperties[\"overflowWrap\"]>[];\n\nexport type TypographyOverflowWrapValue =\n (typeof typographyOverflowWrapValues)[number];\n\nexport type TypographyProps = {\n /**\n * The text content of the component.\n */\n children: ReactNode;\n /**\n * Controls the text color.\n * - If `'primary'`, default text color.\n * - If `'textPrimary'`, alias for `'primary'`.\n * - If `'secondary'`, subdued text color.\n * - If `'textSecondary'`, alias for `'secondary'`.\n * - If `'error'`, danger red, for error states.\n */\n color?: (typeof typographyColorValues)[number];\n /**\n * The HTML element the component should render, if different from the default.\n */\n component?: ElementType;\n /**\n * The id of the component.\n */\n id?: string;\n /**\n * If `true`, the element is treated as presentational and ignored by screen readers.\n */\n isPresentational?: boolean;\n /**\n * Controls where the text may break to avoid overflowing its container.\n * - If `'normal'`, breaks only at normal word-break points, so a long unbroken\n * string such as an ID or URL overflows.\n * - If `'break-word'`, breaks inside a word only when the word cannot fit on a\n * line of its own.\n * - If `'anywhere'`, breaks inside a word as soon as it reaches the container\n * edge, and the broken word counts toward the container's `min-content` size.\n * @default \"normal\"\n * @see https://developer.mozilla.org/en-US/docs/Web/CSS/overflow-wrap\n */\n overflowWrap?: TypographyOverflowWrapValue;\n /**\n * Ref attached to the underlying typography element.\n */\n typographyRef?: React.RefObject<FocusHandle>;\n /**\n * The variant of Typography to render.\n * @default \"body\"\n */\n variant?: keyof typeof typographyVariantMapping;\n} & Pick<\n HtmlProps,\n | \"ariaCurrent\"\n | \"ariaDescribedBy\"\n | \"ariaLabel\"\n | \"ariaLabelledBy\"\n | \"testId\"\n | \"translate\"\n>;\n\n/**\n * Low-level typography primitive that renders styled text using the Odyssey design\n * system. Prefer the semantic variants (Heading1–Heading6, Paragraph, etc.) over this\n * component for most use cases.\n */\nconst Typography = ({\n ariaCurrent,\n ariaDescribedBy,\n ariaLabel,\n ariaLabelledBy,\n children,\n color,\n component: componentProp,\n id,\n isPresentational,\n overflowWrap,\n testId,\n translate,\n typographyRef,\n variant = \"body\",\n}: TypographyProps) => {\n const component = useMemo(() => {\n if (!componentProp) {\n if (\n variant === \"body\" ||\n variant === \"subordinate\" ||\n variant === \"support\" ||\n variant === \"overline\"\n ) {\n return \"p\";\n } else {\n return variant;\n }\n }\n return componentProp;\n }, [componentProp, variant]);\n\n const localTypographyRef = useRef<HTMLElement>(null);\n useImperativeHandle(typographyRef, () => {\n return {\n focus: () => {\n localTypographyRef.current?.focus();\n },\n };\n }, []);\n\n return (\n <MuiTypography\n aria-current={ariaCurrent}\n aria-describedby={ariaDescribedBy}\n aria-label={ariaLabel}\n aria-labelledby={ariaLabelledBy}\n children={children}\n color={color}\n component={component}\n data-se={testId}\n id={id}\n ref={localTypographyRef}\n role={isPresentational ? \"presentation\" : undefined}\n style={overflowWrap ? { overflowWrap } : undefined}\n tabIndex={-1}\n translate={translate}\n variant={typographyVariantMapping[variant]}\n />\n );\n};\n\nconst MemoizedTypography = memo(Typography);\nMemoizedTypography.displayName = \"Typography\";\n\n/**\n * Top-level page heading rendered as an `<h1>` element. Use once per page to mark the\n * primary title.\n */\nconst Heading1 = ({\n ariaCurrent,\n ariaDescribedBy,\n ariaLabel,\n ariaLabelledBy,\n children,\n color,\n component,\n id,\n isPresentational,\n overflowWrap,\n testId,\n translate,\n}: TypographyProps) => (\n <Typography\n ariaCurrent={ariaCurrent}\n ariaDescribedBy={ariaDescribedBy}\n ariaLabel={ariaLabel}\n ariaLabelledBy={ariaLabelledBy}\n children={children}\n color={color}\n component={component}\n id={id}\n isPresentational={isPresentational}\n overflowWrap={overflowWrap}\n testId={testId}\n translate={translate}\n variant=\"h1\"\n />\n);\n\nconst MemoizedHeading1 = memo(Heading1);\nMemoizedHeading1.displayName = \"Heading1\";\n\n/**\n * Second-level section heading rendered as an `<h2>` element.\n */\nconst Heading2 = ({\n ariaCurrent,\n ariaDescribedBy,\n ariaLabel,\n ariaLabelledBy,\n children,\n color,\n component,\n id,\n overflowWrap,\n testId,\n translate,\n}: TypographyProps) => (\n <Typography\n ariaCurrent={ariaCurrent}\n ariaDescribedBy={ariaDescribedBy}\n ariaLabel={ariaLabel}\n ariaLabelledBy={ariaLabelledBy}\n children={children}\n color={color}\n component={component}\n id={id}\n overflowWrap={overflowWrap}\n testId={testId}\n translate={translate}\n variant=\"h2\"\n />\n);\n\nconst MemoizedHeading2 = memo(Heading2);\nMemoizedHeading2.displayName = \"Heading2\";\n\n/**\n * Third-level section heading rendered as an `<h3>` element.\n */\nconst Heading3 = ({\n ariaCurrent,\n ariaDescribedBy,\n ariaLabel,\n ariaLabelledBy,\n children,\n color,\n component,\n id,\n overflowWrap,\n testId,\n translate,\n}: TypographyProps) => (\n <Typography\n ariaCurrent={ariaCurrent}\n ariaDescribedBy={ariaDescribedBy}\n ariaLabel={ariaLabel}\n ariaLabelledBy={ariaLabelledBy}\n children={children}\n color={color}\n component={component}\n id={id}\n overflowWrap={overflowWrap}\n testId={testId}\n translate={translate}\n variant=\"h3\"\n />\n);\n\nconst MemoizedHeading3 = memo(Heading3);\nMemoizedHeading3.displayName = \"Heading3\";\n\n/**\n * Fourth-level section heading rendered as an `<h4>` element.\n */\nconst Heading4 = ({\n ariaCurrent,\n ariaDescribedBy,\n ariaLabel,\n ariaLabelledBy,\n children,\n color,\n component,\n id,\n overflowWrap,\n testId,\n translate,\n}: TypographyProps) => (\n <Typography\n ariaCurrent={ariaCurrent}\n ariaDescribedBy={ariaDescribedBy}\n ariaLabel={ariaLabel}\n ariaLabelledBy={ariaLabelledBy}\n children={children}\n color={color}\n component={component}\n id={id}\n overflowWrap={overflowWrap}\n testId={testId}\n translate={translate}\n variant=\"h4\"\n />\n);\n\nconst MemoizedHeading4 = memo(Heading4);\nMemoizedHeading4.displayName = \"Heading4\";\n\n/**\n * Fifth-level section heading rendered as an `<h5>` element.\n */\nconst Heading5 = ({\n ariaCurrent,\n ariaDescribedBy,\n ariaLabel,\n ariaLabelledBy,\n children,\n color,\n component,\n id,\n overflowWrap,\n testId,\n translate,\n}: TypographyProps) => (\n <Typography\n ariaCurrent={ariaCurrent}\n ariaDescribedBy={ariaDescribedBy}\n ariaLabel={ariaLabel}\n ariaLabelledBy={ariaLabelledBy}\n children={children}\n color={color}\n component={component}\n id={id}\n overflowWrap={overflowWrap}\n testId={testId}\n translate={translate}\n variant=\"h5\"\n />\n);\n\nconst MemoizedHeading5 = memo(Heading5);\nMemoizedHeading5.displayName = \"Heading5\";\n\n/**\n * Sixth-level section heading rendered as an `<h6>` element.\n */\nconst Heading6 = ({\n ariaCurrent,\n ariaDescribedBy,\n ariaLabel,\n ariaLabelledBy,\n children,\n color,\n component,\n id,\n overflowWrap,\n testId,\n translate,\n}: TypographyProps) => (\n <Typography\n ariaCurrent={ariaCurrent}\n ariaDescribedBy={ariaDescribedBy}\n ariaLabel={ariaLabel}\n ariaLabelledBy={ariaLabelledBy}\n children={children}\n color={color}\n component={component}\n id={id}\n overflowWrap={overflowWrap}\n testId={testId}\n translate={translate}\n variant=\"h6\"\n />\n);\n\nconst MemoizedHeading6 = memo(Heading6);\nMemoizedHeading6.displayName = \"Heading6\";\n\n/**\n * Body text rendered as a `<p>` element. Use for standard prose content.\n */\nconst Paragraph = ({\n ariaCurrent,\n ariaDescribedBy,\n ariaLabel,\n ariaLabelledBy,\n children,\n color,\n component,\n id,\n overflowWrap,\n testId,\n translate,\n}: TypographyProps) => (\n <Typography\n ariaCurrent={ariaCurrent}\n ariaDescribedBy={ariaDescribedBy}\n ariaLabel={ariaLabel}\n ariaLabelledBy={ariaLabelledBy}\n children={children}\n color={color}\n component={component}\n id={id}\n overflowWrap={overflowWrap}\n testId={testId}\n translate={translate}\n variant=\"body\"\n />\n);\n\nconst MemoizedParagraph = memo(Paragraph);\nMemoizedParagraph.displayName = \"Paragraph\";\n\n/**\n * Subordinate text rendered as a `<p>` element with a reduced visual weight. Use for\n * secondary or supporting information that follows primary body copy.\n */\nconst Subordinate = ({\n ariaCurrent,\n ariaDescribedBy,\n ariaLabel,\n ariaLabelledBy,\n children,\n color,\n component,\n id,\n overflowWrap,\n testId,\n translate,\n}: TypographyProps) => (\n <Typography\n ariaCurrent={ariaCurrent}\n ariaDescribedBy={ariaDescribedBy}\n ariaLabel={ariaLabel}\n ariaLabelledBy={ariaLabelledBy}\n children={children}\n color={color}\n component={component}\n id={id}\n overflowWrap={overflowWrap}\n testId={testId}\n translate={translate}\n variant=\"subordinate\"\n />\n);\n\nconst MemoizedSubordinate = memo(Subordinate);\nMemoizedSubordinate.displayName = \"Subordinate\";\n\n/**\n * Support text rendered as a `<p>` element at the smallest body scale. Use for helper\n * text, captions, or fine print.\n */\nconst Support = ({\n ariaCurrent,\n ariaDescribedBy,\n ariaLabel,\n ariaLabelledBy,\n children,\n color,\n component,\n id,\n overflowWrap,\n testId,\n translate,\n}: TypographyProps) => (\n <Typography\n ariaCurrent={ariaCurrent}\n ariaDescribedBy={ariaDescribedBy}\n ariaLabel={ariaLabel}\n ariaLabelledBy={ariaLabelledBy}\n children={children}\n color={color}\n component={component}\n id={id}\n overflowWrap={overflowWrap}\n testId={testId}\n translate={translate}\n variant=\"support\"\n />\n);\n\nconst MemoizedSupport = memo(Support);\nMemoizedSupport.displayName = \"Support\";\n\n/**\n * Legend text styled for use as a `<fieldset>` legend or form group label.\n */\nconst Legend = ({\n ariaDescribedBy,\n ariaLabel,\n ariaLabelledBy,\n children,\n color,\n component,\n id,\n overflowWrap,\n testId,\n translate,\n}: TypographyProps) => (\n <Typography\n ariaDescribedBy={ariaDescribedBy}\n ariaLabel={ariaLabel}\n ariaLabelledBy={ariaLabelledBy}\n children={children}\n color={color}\n component={component}\n id={id}\n overflowWrap={overflowWrap}\n testId={testId}\n translate={translate}\n variant=\"legend\"\n />\n);\n\nconst MemoizedLegend = memo(Legend);\nMemoizedLegend.displayName = \"Legend\";\n\n/**\n * Overline text rendered as a `<p>` element in an uppercase, small-caps style. Use to\n * label a section or group before a heading.\n */\nconst Overline = ({\n ariaDescribedBy,\n ariaLabel,\n ariaLabelledBy,\n children,\n color,\n component,\n id,\n overflowWrap,\n testId,\n translate,\n}: TypographyProps) => (\n <Typography\n ariaDescribedBy={ariaDescribedBy}\n ariaLabel={ariaLabel}\n ariaLabelledBy={ariaLabelledBy}\n children={children}\n color={color}\n component={component}\n id={id}\n overflowWrap={overflowWrap}\n testId={testId}\n translate={translate}\n variant=\"overline\"\n />\n);\n\nconst MemoizedOverline = memo(Overline);\nMemoizedOverline.displayName = \"Overline\";\n\nexport {\n MemoizedHeading1 as Heading1,\n MemoizedHeading2 as Heading2,\n MemoizedHeading3 as Heading3,\n MemoizedHeading4 as Heading4,\n MemoizedHeading5 as Heading5,\n MemoizedHeading6 as Heading6,\n MemoizedLegend as Legend,\n MemoizedOverline as Overline,\n MemoizedParagraph as Paragraph,\n MemoizedSubordinate as Subordinate,\n MemoizedSupport as Support,\n MemoizedTypography as Typography,\n};\n"],"mappings":";AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAMA,SAGEA,IAAI,EAEJC,mBAAmB,EACnBC,OAAO,EACPC,MAAM,QACD,OAAO;AAAC,SAAAC,GAAA,IAAAC,IAAA;AAkBf,OAAO,MAAMC,wBAGZ,GAAG;EACFC,EAAE,EAAE,IAAI;EACRC,EAAE,EAAE,IAAI;EACRC,EAAE,EAAE,IAAI;EACRC,EAAE,EAAE,IAAI;EACRC,EAAE,EAAE,IAAI;EACRC,EAAE,EAAE,IAAI;EACRC,IAAI,EAAE,OAAO;EACbC,MAAM,EAAE,QAAQ;EAChBC,QAAQ,EAAE,UAAU;EACpBC,WAAW,EAAE,WAAW;EACxBC,OAAO,EAAE;AACX,CAAU;AAEV,OAAO,MAAMC,qBAAqB,GAAG,CACnC,SAAS,EACT,aAAa,EACb,WAAW,EACX,eAAe,EACf,OAAO,CACC;AAEV,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B,IAAIzB,UAAU","ignoreList":[]}
1
+ {"version":3,"file":"Typography.js","names":["memo","useImperativeHandle","useMemo","useRef","jsx","_jsx","typographyVariantMapping","h1","h2","h3","h4","h5","h6","body","legend","overline","subordinate","support","typographyColorValues","typographyOverflowWrapValues","Typography","ariaCurrent","ariaDescribedBy","ariaLabel","ariaLabelledBy","children","color","component","componentProp","id","isPresentational","overflowWrap","testId","translate","typographyRef","variant","localTypographyRef","focus","current","_Typography","ref","role","undefined","style","tabIndex","MemoizedTypography","displayName","Heading1","MemoizedHeading1","Heading2","MemoizedHeading2","Heading3","MemoizedHeading3","Heading4","MemoizedHeading4","Heading5","MemoizedHeading5","Heading6","MemoizedHeading6","Paragraph","MemoizedParagraph","Subordinate","MemoizedSubordinate","Support","MemoizedSupport","Legend","MemoizedLegend","Overline","MemoizedOverline"],"sources":["../../src/Typography.tsx"],"sourcesContent":["/*!\n * Copyright (c) 2023-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 Typography as MuiTypography,\n TypographyProps as MuiTypographyProps,\n} from \"@mui/material\";\nimport {\n CSSProperties,\n ElementType,\n memo,\n ReactNode,\n useImperativeHandle,\n useMemo,\n useRef,\n} from \"react\";\n\nimport { HtmlProps } from \"./HtmlProps.js\";\nimport { FocusHandle } from \"./inputUtils.js\";\n\nexport type TypographyVariantValue =\n | \"h1\"\n | \"h2\"\n | \"h3\"\n | \"h4\"\n | \"h5\"\n | \"h6\"\n | \"body\"\n | \"legend\"\n | \"overline\"\n | \"subordinate\"\n | \"support\";\n\nexport const typographyVariantMapping: Record<\n TypographyVariantValue,\n MuiTypographyProps[\"variant\"]\n> = {\n h1: \"h1\",\n h2: \"h2\",\n h3: \"h3\",\n h4: \"h4\",\n h5: \"h5\",\n h6: \"h6\",\n body: \"body1\",\n legend: \"legend\",\n overline: \"overline\",\n subordinate: \"subtitle1\",\n support: \"subtitle2\",\n} as const;\n\nexport const typographyColorValues = [\n \"primary\",\n \"textPrimary\",\n \"secondary\",\n \"textSecondary\",\n \"error\",\n] as const;\n\nexport const typographyOverflowWrapValues = [\n \"normal\",\n \"break-word\",\n \"anywhere\",\n] as const satisfies readonly NonNullable<CSSProperties[\"overflowWrap\"]>[];\n\nexport type TypographyOverflowWrapValue =\n (typeof typographyOverflowWrapValues)[number];\n\nexport type TypographyProps = {\n /**\n * The text content of the component.\n */\n children: ReactNode;\n /**\n * Controls the text color.\n * - If `'primary'`, default text color.\n * - If `'textPrimary'`, alias for `'primary'`.\n * - If `'secondary'`, subdued text color.\n * - If `'textSecondary'`, alias for `'secondary'`.\n * - If `'error'`, danger red, for error states.\n */\n color?: (typeof typographyColorValues)[number];\n /**\n * The HTML element the component should render, if different from the default.\n */\n component?: ElementType;\n /**\n * The id of the component.\n */\n id?: string;\n /**\n * If `true`, the element is treated as presentational and ignored by screen readers.\n */\n isPresentational?: boolean;\n /**\n * Controls where the text may break to avoid overflowing its container.\n * - If `'normal'`, breaks only at normal word-break points, so a long unbroken string such as an ID or URL overflows.\n * - If `'break-word'`, breaks inside a word only when the word cannot fit on a line of its own.\n * - If `'anywhere'`, breaks inside a word as soon as it reaches the container edge, and the broken word counts toward the container's `min-content` size.\n * @default \"normal\"\n * @see https://developer.mozilla.org/en-US/docs/Web/CSS/overflow-wrap\n */\n overflowWrap?: TypographyOverflowWrapValue;\n /**\n * Ref attached to the underlying typography element.\n */\n typographyRef?: React.RefObject<FocusHandle>;\n /**\n * The variant of Typography to render.\n * @default \"body\"\n */\n variant?: keyof typeof typographyVariantMapping;\n} & Pick<\n HtmlProps,\n | \"ariaCurrent\"\n | \"ariaDescribedBy\"\n | \"ariaLabel\"\n | \"ariaLabelledBy\"\n | \"testId\"\n | \"translate\"\n>;\n\n/**\n * Low-level typography primitive that renders styled text using the Odyssey design system. Prefer the semantic variants (Heading1–Heading6, Paragraph, etc.) over this component for most use cases.\n */\nconst Typography = ({\n ariaCurrent,\n ariaDescribedBy,\n ariaLabel,\n ariaLabelledBy,\n children,\n color,\n component: componentProp,\n id,\n isPresentational,\n overflowWrap,\n testId,\n translate,\n typographyRef,\n variant = \"body\",\n}: TypographyProps) => {\n const component = useMemo(() => {\n if (!componentProp) {\n if (\n variant === \"body\" ||\n variant === \"subordinate\" ||\n variant === \"support\" ||\n variant === \"overline\"\n ) {\n return \"p\";\n } else {\n return variant;\n }\n }\n return componentProp;\n }, [componentProp, variant]);\n\n const localTypographyRef = useRef<HTMLElement>(null);\n useImperativeHandle(typographyRef, () => {\n return {\n focus: () => {\n localTypographyRef.current?.focus();\n },\n };\n }, []);\n\n return (\n <MuiTypography\n aria-current={ariaCurrent}\n aria-describedby={ariaDescribedBy}\n aria-label={ariaLabel}\n aria-labelledby={ariaLabelledBy}\n children={children}\n color={color}\n component={component}\n data-se={testId}\n id={id}\n ref={localTypographyRef}\n role={isPresentational ? \"presentation\" : undefined}\n style={overflowWrap ? { overflowWrap } : undefined}\n tabIndex={-1}\n translate={translate}\n variant={typographyVariantMapping[variant]}\n />\n );\n};\n\nconst MemoizedTypography = memo(Typography);\nMemoizedTypography.displayName = \"Typography\";\n\n/**\n * Top-level page heading rendered as an `<h1>` element. Use once per page to mark the primary title.\n */\nconst Heading1 = ({\n ariaCurrent,\n ariaDescribedBy,\n ariaLabel,\n ariaLabelledBy,\n children,\n color,\n component,\n id,\n isPresentational,\n overflowWrap,\n testId,\n translate,\n}: TypographyProps) => (\n <Typography\n ariaCurrent={ariaCurrent}\n ariaDescribedBy={ariaDescribedBy}\n ariaLabel={ariaLabel}\n ariaLabelledBy={ariaLabelledBy}\n children={children}\n color={color}\n component={component}\n id={id}\n isPresentational={isPresentational}\n overflowWrap={overflowWrap}\n testId={testId}\n translate={translate}\n variant=\"h1\"\n />\n);\n\nconst MemoizedHeading1 = memo(Heading1);\nMemoizedHeading1.displayName = \"Heading1\";\n\n/**\n * Second-level section heading rendered as an `<h2>` element.\n */\nconst Heading2 = ({\n ariaCurrent,\n ariaDescribedBy,\n ariaLabel,\n ariaLabelledBy,\n children,\n color,\n component,\n id,\n overflowWrap,\n testId,\n translate,\n}: TypographyProps) => (\n <Typography\n ariaCurrent={ariaCurrent}\n ariaDescribedBy={ariaDescribedBy}\n ariaLabel={ariaLabel}\n ariaLabelledBy={ariaLabelledBy}\n children={children}\n color={color}\n component={component}\n id={id}\n overflowWrap={overflowWrap}\n testId={testId}\n translate={translate}\n variant=\"h2\"\n />\n);\n\nconst MemoizedHeading2 = memo(Heading2);\nMemoizedHeading2.displayName = \"Heading2\";\n\n/**\n * Third-level section heading rendered as an `<h3>` element.\n */\nconst Heading3 = ({\n ariaCurrent,\n ariaDescribedBy,\n ariaLabel,\n ariaLabelledBy,\n children,\n color,\n component,\n id,\n overflowWrap,\n testId,\n translate,\n}: TypographyProps) => (\n <Typography\n ariaCurrent={ariaCurrent}\n ariaDescribedBy={ariaDescribedBy}\n ariaLabel={ariaLabel}\n ariaLabelledBy={ariaLabelledBy}\n children={children}\n color={color}\n component={component}\n id={id}\n overflowWrap={overflowWrap}\n testId={testId}\n translate={translate}\n variant=\"h3\"\n />\n);\n\nconst MemoizedHeading3 = memo(Heading3);\nMemoizedHeading3.displayName = \"Heading3\";\n\n/**\n * Fourth-level section heading rendered as an `<h4>` element.\n */\nconst Heading4 = ({\n ariaCurrent,\n ariaDescribedBy,\n ariaLabel,\n ariaLabelledBy,\n children,\n color,\n component,\n id,\n overflowWrap,\n testId,\n translate,\n}: TypographyProps) => (\n <Typography\n ariaCurrent={ariaCurrent}\n ariaDescribedBy={ariaDescribedBy}\n ariaLabel={ariaLabel}\n ariaLabelledBy={ariaLabelledBy}\n children={children}\n color={color}\n component={component}\n id={id}\n overflowWrap={overflowWrap}\n testId={testId}\n translate={translate}\n variant=\"h4\"\n />\n);\n\nconst MemoizedHeading4 = memo(Heading4);\nMemoizedHeading4.displayName = \"Heading4\";\n\n/**\n * Fifth-level section heading rendered as an `<h5>` element.\n */\nconst Heading5 = ({\n ariaCurrent,\n ariaDescribedBy,\n ariaLabel,\n ariaLabelledBy,\n children,\n color,\n component,\n id,\n overflowWrap,\n testId,\n translate,\n}: TypographyProps) => (\n <Typography\n ariaCurrent={ariaCurrent}\n ariaDescribedBy={ariaDescribedBy}\n ariaLabel={ariaLabel}\n ariaLabelledBy={ariaLabelledBy}\n children={children}\n color={color}\n component={component}\n id={id}\n overflowWrap={overflowWrap}\n testId={testId}\n translate={translate}\n variant=\"h5\"\n />\n);\n\nconst MemoizedHeading5 = memo(Heading5);\nMemoizedHeading5.displayName = \"Heading5\";\n\n/**\n * Sixth-level section heading rendered as an `<h6>` element.\n */\nconst Heading6 = ({\n ariaCurrent,\n ariaDescribedBy,\n ariaLabel,\n ariaLabelledBy,\n children,\n color,\n component,\n id,\n overflowWrap,\n testId,\n translate,\n}: TypographyProps) => (\n <Typography\n ariaCurrent={ariaCurrent}\n ariaDescribedBy={ariaDescribedBy}\n ariaLabel={ariaLabel}\n ariaLabelledBy={ariaLabelledBy}\n children={children}\n color={color}\n component={component}\n id={id}\n overflowWrap={overflowWrap}\n testId={testId}\n translate={translate}\n variant=\"h6\"\n />\n);\n\nconst MemoizedHeading6 = memo(Heading6);\nMemoizedHeading6.displayName = \"Heading6\";\n\n/**\n * Body text rendered as a `<p>` element. Use for standard prose content.\n */\nconst Paragraph = ({\n ariaCurrent,\n ariaDescribedBy,\n ariaLabel,\n ariaLabelledBy,\n children,\n color,\n component,\n id,\n overflowWrap,\n testId,\n translate,\n}: TypographyProps) => (\n <Typography\n ariaCurrent={ariaCurrent}\n ariaDescribedBy={ariaDescribedBy}\n ariaLabel={ariaLabel}\n ariaLabelledBy={ariaLabelledBy}\n children={children}\n color={color}\n component={component}\n id={id}\n overflowWrap={overflowWrap}\n testId={testId}\n translate={translate}\n variant=\"body\"\n />\n);\n\nconst MemoizedParagraph = memo(Paragraph);\nMemoizedParagraph.displayName = \"Paragraph\";\n\n/**\n * Subordinate text rendered as a `<p>` element with a reduced visual weight. Use for secondary or supporting information that follows primary body copy.\n */\nconst Subordinate = ({\n ariaCurrent,\n ariaDescribedBy,\n ariaLabel,\n ariaLabelledBy,\n children,\n color,\n component,\n id,\n overflowWrap,\n testId,\n translate,\n}: TypographyProps) => (\n <Typography\n ariaCurrent={ariaCurrent}\n ariaDescribedBy={ariaDescribedBy}\n ariaLabel={ariaLabel}\n ariaLabelledBy={ariaLabelledBy}\n children={children}\n color={color}\n component={component}\n id={id}\n overflowWrap={overflowWrap}\n testId={testId}\n translate={translate}\n variant=\"subordinate\"\n />\n);\n\nconst MemoizedSubordinate = memo(Subordinate);\nMemoizedSubordinate.displayName = \"Subordinate\";\n\n/**\n * Support text rendered as a `<p>` element at the smallest body scale. Use for helper text, captions, or fine print.\n */\nconst Support = ({\n ariaCurrent,\n ariaDescribedBy,\n ariaLabel,\n ariaLabelledBy,\n children,\n color,\n component,\n id,\n overflowWrap,\n testId,\n translate,\n}: TypographyProps) => (\n <Typography\n ariaCurrent={ariaCurrent}\n ariaDescribedBy={ariaDescribedBy}\n ariaLabel={ariaLabel}\n ariaLabelledBy={ariaLabelledBy}\n children={children}\n color={color}\n component={component}\n id={id}\n overflowWrap={overflowWrap}\n testId={testId}\n translate={translate}\n variant=\"support\"\n />\n);\n\nconst MemoizedSupport = memo(Support);\nMemoizedSupport.displayName = \"Support\";\n\n/**\n * Legend text styled for use as a `<fieldset>` legend or form group label.\n */\nconst Legend = ({\n ariaDescribedBy,\n ariaLabel,\n ariaLabelledBy,\n children,\n color,\n component,\n id,\n overflowWrap,\n testId,\n translate,\n}: TypographyProps) => (\n <Typography\n ariaDescribedBy={ariaDescribedBy}\n ariaLabel={ariaLabel}\n ariaLabelledBy={ariaLabelledBy}\n children={children}\n color={color}\n component={component}\n id={id}\n overflowWrap={overflowWrap}\n testId={testId}\n translate={translate}\n variant=\"legend\"\n />\n);\n\nconst MemoizedLegend = memo(Legend);\nMemoizedLegend.displayName = \"Legend\";\n\n/**\n * Overline text rendered as a `<p>` element in an uppercase, small-caps style. Use to label a section or group before a heading.\n */\nconst Overline = ({\n ariaDescribedBy,\n ariaLabel,\n ariaLabelledBy,\n children,\n color,\n component,\n id,\n overflowWrap,\n testId,\n translate,\n}: TypographyProps) => (\n <Typography\n ariaDescribedBy={ariaDescribedBy}\n ariaLabel={ariaLabel}\n ariaLabelledBy={ariaLabelledBy}\n children={children}\n color={color}\n component={component}\n id={id}\n overflowWrap={overflowWrap}\n testId={testId}\n translate={translate}\n variant=\"overline\"\n />\n);\n\nconst MemoizedOverline = memo(Overline);\nMemoizedOverline.displayName = \"Overline\";\n\nexport {\n MemoizedHeading1 as Heading1,\n MemoizedHeading2 as Heading2,\n MemoizedHeading3 as Heading3,\n MemoizedHeading4 as Heading4,\n MemoizedHeading5 as Heading5,\n MemoizedHeading6 as Heading6,\n MemoizedLegend as Legend,\n MemoizedOverline as Overline,\n MemoizedParagraph as Paragraph,\n MemoizedSubordinate as Subordinate,\n MemoizedSupport as Support,\n MemoizedTypography as Typography,\n};\n"],"mappings":";AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAMA,SAGEA,IAAI,EAEJC,mBAAmB,EACnBC,OAAO,EACPC,MAAM,QACD,OAAO;AAAC,SAAAC,GAAA,IAAAC,IAAA;AAkBf,OAAO,MAAMC,wBAGZ,GAAG;EACFC,EAAE,EAAE,IAAI;EACRC,EAAE,EAAE,IAAI;EACRC,EAAE,EAAE,IAAI;EACRC,EAAE,EAAE,IAAI;EACRC,EAAE,EAAE,IAAI;EACRC,EAAE,EAAE,IAAI;EACRC,IAAI,EAAE,OAAO;EACbC,MAAM,EAAE,QAAQ;EAChBC,QAAQ,EAAE,UAAU;EACpBC,WAAW,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c,IAAID,MAAM,EACxBG,gBAAgB,IAAID,QAAQ,EAC5BP,iBAAiB,IAAID,SAAS,EAC9BG,mBAAmB,IAAID,WAAW,EAClCG,eAAe,IAAID,OAAO,EAC1BlB,kBAAkB,IAAIzB,UAAU","ignoreList":[]}
@@ -1 +1 @@
1
- {"version":3,"file":"__internal.js","names":[],"sources":["../../src/__internal.tsx"],"sourcesContent":["/*!\n * Copyright (c) 2022-present, Okta, Inc. and/or its affiliates. All rights reserved.\n * The Okta software accompanied by this notice is provided pursuant to the Apache License, Version 2.0 (the \"License.\")\n *\n * You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0.\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS, WITHOUT\n * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n *\n * See the License for the specific language governing permissions and limitations under the License.\n */\n\n/**\n * Internal exports for all components, utilities, and types.\n * This module provides access to internal/unexported items for advanced use cases.\n * These exports are not part of the stable public API and may change without notice.\n */\n\nexport * from \"./Field.js\";\nexport * from \"./HtmlProps.js\";\nexport * from \"./inputUtils.js\";\n\n// Badge\nexport * from \"./Badge.js\";\n// Buttons\nexport * from \"./Buttons/BaseButton.js\";\nexport * from \"./Buttons/BaseMenuButton.js\";\n// ConditionalWrapper\nexport * from \"./ConditionalWrapper.js\";\n// DataView & DataTable\nexport * from \"./DataTable/useRowReordering.js\";\nexport * from \"./DataTable/useScrollIndication.js\";\n// DatePickers\nexport * from \"./DatePickers/DateField.js\";\nexport * from \"./DatePickers/DateFieldActionBar.js\";\nexport * from \"./DatePickers/DateFieldLocalizationProvider.js\";\n// FileUploader\nexport * from \"./FileUploader/FileUploader.js\";\nexport * from \"./FileUploader/FileUploadIllustration.js\";\nexport * from \"./FileUploader/FileUploadPreview.js\";\n// FullScreenOverlay\nexport * from \"./FullScreenOverlay.js\";\nexport * from \"./FullScreenOverlayContext.js\";\n// Miscellaneous Labs\nexport * from \"./labs/DataFilters.js\";\nexport * from \"./labs/DataView/BulkActionsMenu.js\";\nexport * from \"./labs/DataView/CardLayoutContent.js\";\nexport * from \"./labs/DataView/constants.js\";\nexport * from \"./labs/DataView/DataCard.js\";\nexport * from \"./labs/DataView/fetchData.js\";\nexport * from \"./labs/DataView/LayoutSwitcher.js\";\nexport * from \"./labs/DataView/RowActions.js\";\nexport * from \"./labs/DataView/tableConstants.js\";\nexport * from \"./labs/DataView/TableLayoutContent.js\";\nexport * from \"./labs/DataView/TableSettings.js\";\nexport * from \"./labs/DataView/testSupportData.js\";\nexport * from \"./labs/DataView/useFilterConversion.js\";\n// Odyssey Pickers\nexport * from \"./labs/OdysseyPickers/ComposablePicker.js\";\n// MuiProps\n// Exported so a component outside this package can be the child of Odyssey's\n// Tooltip: Tooltip wraps its child in MuiPropsChild, which puts MUI's injected\n// hover/focus props and ref into context, and the child has to call useMuiProps\n// to receive them.\nexport * from \"./MuiPropsChild.js\";\nexport * from \"./MuiPropsContext.js\";\n// OdysseyDesignTokensContext\nexport * from \"./OdysseyDesignTokensContext.js\";\n// SearchField\nexport * from \"./SearchField.js\";\nexport * from \"./tools/createMessageBus.js\";\nexport * from \"./web-component/createReactRootElements.js\";\n"],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,GAQA,cAAc,YAAY;AAC1B,cAAc,gBAAgB;AAC9B,cAAc,iBAAiB;AAG/B,cAAc,YAAY;AAE1B,cAAc,yBAAyB;AACvC,cAAc,6BAA6B;AAE3C,cAAc,yBAAyB;AAEvC,cAAc,iCAAiC;AAC/C,cAAc,oCAAoC;AAElD,cAAc,4BAA4B;AAC1C,cAAc,qCAAqC;AACnD,cAAc,gDAAgD;AAE9D,cAAc,gCAAgC;AAC9C,cAAc,0CAA0C;AACxD,cAAc,qCAAqC;AAEnD,cAAc,wBAAwB;AACtC,cAAc,+BAA+B;AAE7C,cAAc,uBAAuB;AACrC,cAAc,oCAAoC;AAClD,cAAc,sCAAsC;AACpD,cAAc,8BAA8B;AAC5C,cAAc,6BAA6B;AAC3C,cAAc,8BAA8B;AAC5C,cAAc,mCAAmC;AACjD,cAAc,+BAA+B;AAC7C,cAAc,mCAAmC;AACjD,cAAc,uCAAuC;AACrD,cAAc,kCAAkC;AAChD,cAAc,oCAAoC;AAClD,cAAc,wCAAwC;AAEtD,cAAc,2CAA2C;AAMzD,cAAc,oBAAoB;AAClC,cAAc,sBAAsB;AAEpC,cAAc,iCAAiC;AAE/C,cAAc,kBAAkB;AAChC,cAAc,6BAA6B;AAC3C,cAAc,4CAA4C","ignoreList":[]}
1
+ {"version":3,"file":"__internal.js","names":[],"sources":["../../src/__internal.tsx"],"sourcesContent":["/*!\n * Copyright (c) 2022-present, Okta, Inc. and/or its affiliates. All rights reserved.\n * The Okta software accompanied by this notice is provided pursuant to the Apache License, Version 2.0 (the \"License.\")\n *\n * You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0.\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS, WITHOUT\n * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n *\n * See the License for the specific language governing permissions and limitations under the License.\n */\n\n/**\n * Internal exports for all components, utilities, and types.\n * This module provides access to internal/unexported items for advanced use cases. These exports are not part of the stable public API and may change without notice.\n */\n\nexport * from \"./Field.js\";\nexport * from \"./HtmlProps.js\";\nexport * from \"./inputUtils.js\";\n\n// Badge\nexport * from \"./Badge.js\";\n// Buttons\nexport * from \"./Buttons/BaseButton.js\";\nexport * from \"./Buttons/BaseMenuButton.js\";\n// ConditionalWrapper\nexport * from \"./ConditionalWrapper.js\";\n// DataView & DataTable\nexport * from \"./DataTable/useRowReordering.js\";\nexport * from \"./DataTable/useScrollIndication.js\";\n// DatePickers\nexport * from \"./DatePickers/DateField.js\";\nexport * from \"./DatePickers/DateFieldActionBar.js\";\nexport * from \"./DatePickers/DateFieldLocalizationProvider.js\";\n// FileUploader\nexport * from \"./FileUploader/FileUploader.js\";\nexport * from \"./FileUploader/FileUploadIllustration.js\";\nexport * from \"./FileUploader/FileUploadPreview.js\";\n// FullScreenOverlay\nexport * from \"./FullScreenOverlay.js\";\nexport * from \"./FullScreenOverlayContext.js\";\n// Miscellaneous Labs\nexport * from \"./labs/DataFilters.js\";\nexport * from \"./labs/DataView/BulkActionsMenu.js\";\nexport * from \"./labs/DataView/CardLayoutContent.js\";\nexport * from \"./labs/DataView/constants.js\";\nexport * from \"./labs/DataView/DataCard.js\";\nexport * from \"./labs/DataView/fetchData.js\";\nexport * from \"./labs/DataView/LayoutSwitcher.js\";\nexport * from \"./labs/DataView/RowActions.js\";\nexport * from \"./labs/DataView/tableConstants.js\";\nexport * from \"./labs/DataView/TableLayoutContent.js\";\nexport * from \"./labs/DataView/TableSettings.js\";\nexport * from \"./labs/DataView/testSupportData.js\";\nexport * from \"./labs/DataView/useFilterConversion.js\";\n// Odyssey Pickers\nexport * from \"./labs/OdysseyPickers/ComposablePicker.js\";\n// MuiProps\n// Exported so a component outside this package can be the child of Odyssey's Tooltip: Tooltip wraps its child in MuiPropsChild, which puts MUI's injected hover/focus props and ref into context, and the child has to call useMuiProps to receive them.\nexport * from \"./MuiPropsChild.js\";\nexport * from \"./MuiPropsContext.js\";\n// OdysseyDesignTokensContext\nexport * from \"./OdysseyDesignTokensContext.js\";\n// SearchField\nexport * from \"./SearchField.js\";\nexport * from \"./tools/createMessageBus.js\";\nexport * from \"./web-component/createReactRootElements.js\";\n"],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,GAOA,cAAc,YAAY;AAC1B,cAAc,gBAAgB;AAC9B,cAAc,iBAAiB;AAG/B,cAAc,YAAY;AAE1B,cAAc,yBAAyB;AACvC,cAAc,6BAA6B;AAE3C,cAAc,yBAAyB;AAEvC,cAAc,iCAAiC;AAC/C,cAAc,oCAAoC;AAElD,cAAc,4BAA4B;AAC1C,cAAc,qCAAqC;AACnD,cAAc,gDAAgD;AAE9D,cAAc,gCAAgC;AAC9C,cAAc,0CAA0C;AACxD,cAAc,qCAAqC;AAEnD,cAAc,wBAAwB;AACtC,cAAc,+BAA+B;AAE7C,cAAc,uBAAuB;AACrC,cAAc,oCAAoC;AAClD,cAAc,sCAAsC;AACpD,cAAc,8BAA8B;AAC5C,cAAc,6BAA6B;AAC3C,cAAc,8BAA8B;AAC5C,cAAc,mCAAmC;AACjD,cAAc,+BAA+B;AAC7C,cAAc,mCAAmC;AACjD,cAAc,uCAAuC;AACrD,cAAc,kCAAkC;AAChD,cAAc,oCAAoC;AAClD,cAAc,wCAAwC;AAEtD,cAAc,2CAA2C;AAGzD,cAAc,oBAAoB;AAClC,cAAc,sBAAsB;AAEpC,cAAc,iCAAiC;AAE/C,cAAc,kBAAkB;AAChC,cAAc,6BAA6B;AAC3C,cAAc,4CAA4C","ignoreList":[]}
@@ -215,6 +215,6 @@ const BarChart = props => {
215
215
  });
216
216
  };
217
217
  const MemoizedBarChart = memo(BarChart);
218
- MemoizedBarChart.displayName = "BarChart::pkg=odyssey&odysseyV=1.70.1";
218
+ MemoizedBarChart.displayName = "BarChart::pkg=odyssey&odysseyV=1.71.0";
219
219
  export { MemoizedBarChart as BarChart };
220
220
  //# sourceMappingURL=BarChart.js.map
@@ -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;;AAE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CAACgB,eAAe,CAAC;AAUrD,MAAMmG,QAAQ,GAAIC,KAAoB,IAAK;EAqBzC,MAAMC,kBAAkB,GAAGnH,iBAAiB,CAACkH,KAAK,CAACjG,YAAY,CAAC;EAChE,MAAMmG,aAAa,GAAGpH,iBAAiB,CAACkH,KAAK,CAACG,OAAO,CAAC;EACtD,MAAM;IAAEC,QAAQ;IAAEC,SAAS;IAAEF,OAAO;IAAEvE,QAAQ;IAAEG,KAAK;IAAE,GAAGuE;EAAW,CAAC,GACpEN,KAAK;EACP,MAAMO,gBAAgB,GAAGhH,cAAc,CAAC;IACtC,GAAG+G,UAAU;IACbvG,YAAY,EAAEiG,KAAK,CAACjG,YAAY,GAAGkG,kBAAkB,GAAGnE;EAC1D,CAAC,CAAC;EAEF,OACErC,IAAA,CAACT,UAAU;IACToH,QAAQ,EAAEA,QAAS;IACnBC,SAAS,EAAEA,SAAU;IACrBF,OAAO,EAAEA,OAAO,GAAGD,aAAa,GAAGpE,SAAU;IAC7CF,QAAQ,EAAEA,QAAS;IACnBG,KAAK,EAAEA,KAAM;IAAAsC,QAAA,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,OAA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,MAAMmG,QAAQ,GAAIC,KAAoB,IAAK;EAQzC,MAAMC,kBAAkB,GAAGnH,iBAAiB,CAACkH,KAAK,CAACjG,YAAY,CAAC;EAChE,MAAMmG,aAAa,GAAGpH,iBAAiB,CAACkH,KAAK,CAACG,OAAO,CAAC;EACtD,MAAM;IAAEC,QAAQ;IAAEC,SAAS;IAAEF,OAAO;IAAEvE,QAAQ;IAAEG,KAAK;IAAE,GAAGuE;EAAW,CAAC,GACpEN,KAAK;EACP,MAAMO,gBAAgB,GAAGhH,cAAc,CAAC;IACtC,GAAG+G,UAAU;IACbvG,YAAY,EAAEiG,KAAK,CAACjG,YAAY,GAAGkG,kBAAkB,GAAGnE;EAC1D,CAAC,CAAC;EAEF,OACErC,IAAA,CAACT,UAAU;IACToH,QAAQ,EAAEA,QAAS;IACnBC,SAAS,EAAEA,SAAU;IACrBF,OAAO,EAAEA,OAAO,GAAGD,aAAa,GAAGpE,SAAU;IAC7CF,QAAQ,EAAEA,QAAS;IACnBG,KAAK,EAAEA,KAAM;IAAAsC,QAAA,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":[]}
@@ -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.0";
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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a,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,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;AAK3D,MAAMC,0BAA0B,GAAG,CACjC,QAAQ,EACR,SAAS,EACT,QAAQ,EACR,UAAU,EACV,cAAc,CACiC;AAWjD,MAAMC,gBAAgB,GAAGA,CAAC;EACxBC,eAAe;EACfC,UAAU;EACVC,YAAY;EACZC,uBAAuB;EACvBC,MAAM;EACNC,UAAU;EACVC,WAAW,GAAG,SAAS;EACvBC;AACc,CAAC,KAAK;EACpB,MAAMC,WAAW,GAAGnB,cAAc,CAAC,CAAC;EACpC,MAAMoB,WAAW,GAAGjB,sBAAsB,CAAC,CAAC;EAE5C,IAAID,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c,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.0";
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,EAAAC,IAAA,IAAAC,KAAA;AAe1D,MAAMC,cAAc,GAAGT,4BAA4B,CAAC;EAAEU,GAAG,EAAE;AAAM,CAAC,CAAC,CACjE,CAAC;EAAEC;AAAoB,CAAC,MAAM;EAC5BC,UAAU,EAAE,QAAQ;EACpBC,OAAO,EAAE,MAAM;EACfC,aAAa,EAAE,QAAQ;EACvBC,GAAG,EAAEJ,mBAAmB,CAACK,QAAQ;EACjCC,MAAM,EAAE,MAAM;EACdC,cAAc,EAAE,QAAQ;EACxBC,SAAS,EAAE;AACb,CAAC,CACH,CAAC;AAMD,MAAMC,SAAS,GAAGpB,4BAA4B,CAAC;EAAEU,GAAG,EAAE;AAAM,CAAC,CAAC,CAC5D,CAAC;EAAEC;AAAoB,CAAC,MAAM;EAC5BE,OAAO,EAAE,MAAM;EACfC,aAAa,EAAE,QAAQ;EACvBC,GAAG,EAAEJ,mBAAmB,CAACU,QAAQ;EACjCC,QAAQ,EAAEX,mBAAmB,CAACY,uBAAuB;EAErD,eAAe,EAAE;IACfC,WAAW,EAAE;EACf;AACF,CAAC,CACH,CAAC;AAMD,MAAMC,UAAU,GAAGA,CAAC;EAAEC;AAAyB,CAAC,KAAK;EACnD,MAAM;IAAEC;EAAE,CAAC,GAAG1B,cAAc,CAAC,CAAC;EAE9B,OACEO,KAAA,CAACC,cAAc;IAAAmB,QAAA,GACbtB,IAAA,CAACJ,WAAW,IAAE,CAAC,EACfM,KAAA,CAACY,SAAS;MAACS,IAAI,EAAC,OAAO;MAAAD,QAAA,GACrBtB,IAAA,CAACH,QAAQ;QAAAyB,QAAA,EAAED,CAAC,CAAC,qBAAqB;MAAC,CAAW,CAAC,EAC/CrB,IAAA,CAACF,SAAS;QAAAwB,QAAA,EAAED,CAAC,CAAC,kBAAkB;MAAC,CAAY,CAAC;IAAA,CACrC,CAAC,EACXD,OAAO,IACNpB,IAAA,CAACP,MAAM;MACL+B,KAAK,EAAEH,CAAC,CAAC,mBAAmB,CAAE;MAC9BI,OAAO,EAAEL,OAAQ;MACjBM,OAAO,EAAC;IAAW,CACpB,CACF;EAAA,CACa,CAAC;AAErB,CAAC;AAED,MAAMC,kBAAkB,GAAGnC,IAAI,CAAC2B,UAAU,CAAC;AAC3CQ,kBAAkB,CAACC,WAAW,4CAAe;AAE7C,SAASD,kBAAkB,IAAIR,UAAU","ignoreList":[]}
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,IAAAC,KAAA;AAW1D,MAAMC,cAAc,GAAGT,4BAA4B,CAAC;EAAEU,GAAG,EAAE;AAAM,CAAC,CAAC,CACjE,CAAC;EAAEC;AAAoB,CAAC,MAAM;EAC5BC,UAAU,EAAE,QAAQ;EACpBC,OAAO,EAAE,MAAM;EACfC,aAAa,EAAE,QAAQ;EACvBC,GAAG,EAAEJ,mBAAmB,CAACK,QAAQ;EACjCC,MAAM,EAAE,MAAM;EACdC,cAAc,EAAE,QAAQ;EACxBC,SAAS,EAAE;AACb,CAAC,CACH,CAAC;AAGD,MAAMC,SAAS,GAAGpB,4BAA4B,CAAC;EAAEU,GAAG,EAAE;AAAM,CAAC,CAAC,CAC5D,CAAC;EAAEC;AAAoB,CAAC,MAAM;EAC5BE,OAAO,EAAE,MAAM;EACfC,aAAa,EAAE,QAAQ;EACvBC,GAAG,EAAEJ,mBAAmB,CAACU,QAAQ;EACjCC,QAAQ,EAAEX,mBAAmB,CAACY,uBAAuB;EAErD,eAAe,EAAE;IACfC,WAAW,EAAE;EACf;AACF,CAAC,CACH,CAAC;AAKD,MAAMC,UAAU,GAAGA,CAAC;EAAEC;AAAyB,CAAC,KAAK;EACnD,MAAM;IAAEC;EAAE,CAAC,GAAG1B,cAAc,CAAC,CAAC;EAE9B,OACEO,KAAA,CAACC,cAAc;IAAAmB,QAAA,GACbtB,IAAA,CAACJ,WAAW,IAAE,CAAC,EACfM,KAAA,CAACY,SAAS;MAACS,IAAI,EAAC,OAAO;MAAAD,QAAA,GACrBtB,IAAA,CAACH,QAAQ;QAAAyB,QAAA,EAAED,CAAC,CAAC,qBAAqB;MAAC,CAAW,CAAC,EAC/CrB,IAAA,CAACF,SAAS;QAAAwB,QAAA,EAAED,CAAC,CAAC,kBAAkB;MAAC,CAAY,CAAC;IAAA,CACrC,CAAC,EACXD,OAAO,IACNpB,IAAA,CAACP,MAAM;MACL+B,KAAK,EAAEH,CAAC,CAAC,mBAAmB,CAAE;MAC9BI,OAAO,EAAEL,OAAQ;MACjBM,OAAO,EAAC;IAAW,CACpB,CACF;EAAA,CACa,CAAC;AAErB,CAAC;AAED,MAAMC,kBAAkB,GAAGnC,IAAI,CAAC2B,UAAU,CAAC;AAC3CQ,kBAAkB,CAACC,WAAW,4CAAe;AAE7C,SAASD,kBAAkB,IAAIR,UAAU","ignoreList":[]}
@@ -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.0";
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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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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AO,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.0";
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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AAgB,EAAEnC,WAAW,CAACU,OAAO,CAACC,OAAO,CAACyB;IAChD,CAAE;IAAArB,QAAA,GAEDT,SAAS,EACVlB,KAAA;MAAA2B,QAAA,GACGX,sBAAsB,EAMvBlB,IAAA;QAAMmD,SAAS,EAAC,aAAa;QAAAtB,QAAA,EAAE;MAAI,CAAO,CAAC,EAC3C7B,IAAA;QACEqB,KAAK,EAAE;UAAE+B,UAAU,EAAEtC,WAAW,CAACU,OAAO,CAACC,OAAO,CAAC4B;QAAe,CAAE;QAAAxB,QAAA,EAEjEV;MAAgB,CACb,CAAC;IAAA,CACH,CAAC;EAAA,CACJ,CACN;EAED,OACEjB,KAAA;IAAA2B,QAAA,GACE7B,IAAA;MACEqB,KAAK,EAAE;QACLuB,KAAK,EAAE9B,WAAW,CAACU,OAAO,CAACC,OAAO,CAACoB,SAAS;QAC5CC,QAAQ,EAAEhC,WAAW,CAACU,OAAO,CAACC,OAAO,CAACqB,QAAQ;QAC9CM,UAAU,EAAEtC,WAAW,CAACU,OAAO,CAACC,OAAO,CAAC4B;MAC1C,CAAE;MAAAxB,QAAA,EAEDhB;IAAmB,CACjB,CAAC,EACLE,QAAQ,GACPb,KAAA,CAAAC,SAAA;MAAA0B,QAAA,GACG,gBAAgB,EAChBa,GAAG,EACH,SAAS;IAAA,CACV,CAAC,GAEHA,GACD;EAAA,CACE,CAAC;AAEV,CAAC;AAED9B,mBAAmB,CAAC0C,WAAW,qDAAwB","ignoreList":[]}
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,EAAE;IAAEF,QAAQ,EAAE;EAAsC,CAAC;EAC7DG,YAAY,EAAE;IAAEH,QAAQ,EAAE;EAAoC;AAChE,CAA6D;AA8C7D,OAAO,MAAMI,mBAAmB,GAAGA,CAAC;EAClCC,mBAAmB;EACnBC,WAAW;EACXC,QAAQ;EACRC,eAAe,GAAG;IAAEC,IAAI,EAAE;EAAS,CAAC;EACpCC,sBAAsB;EACtBC;AACwB,CAAC,KAAK;EAC9B,MAAMC,SAAS,GACbJ,eAAe,CAACC,IAAI,KAAK,YAAY,GACnCf,KAAA;IACE,eAAY,MAAM;IAClBmB,KAAK,EAAE;MACLC,OAAO,EAAE,cAAc;MACvBC,MAAM,EAAET,WAAW,CAACU,OAAO,CAACC,OAAO,CAACC,iBAAiB;MACrDC,QAAQ,EAAE,UAAU;MACpBC,KAAK,EAAEd,WAAW,CAACU,OAAO,CAACC,OAAO,CAACC;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