@okta/odyssey-react-mui 1.65.0 → 1.65.2

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 (492) hide show
  1. package/dist/cjs/Accordion.cjs +1 -1
  2. package/dist/cjs/Autocomplete.cjs +1 -1
  3. package/dist/cjs/Badge.cjs +1 -1
  4. package/dist/cjs/Banner.cjs +1 -1
  5. package/dist/cjs/Box.cjs +1 -1
  6. package/dist/cjs/Breadcrumbs.cjs +1 -1
  7. package/dist/cjs/Buttons/BaseButton.cjs +1 -1
  8. package/dist/cjs/Buttons/BaseMenuButton.cjs +1 -1
  9. package/dist/cjs/Buttons/Button.cjs +1 -1
  10. package/dist/cjs/Buttons/MenuButton.cjs +1 -1
  11. package/dist/cjs/Buttons/MenuItem.cjs +1 -1
  12. package/dist/cjs/Callout.cjs +1 -6
  13. package/dist/cjs/Callout.cjs.map +1 -1
  14. package/dist/cjs/Card.cjs +1 -1
  15. package/dist/cjs/CircularProgress.cjs +1 -1
  16. package/dist/cjs/ConditionalWrapper.cjs +1 -1
  17. package/dist/cjs/DataTable/DataTable.cjs +1 -1
  18. package/dist/cjs/DataTable/DataTableRowActions.cjs +1 -1
  19. package/dist/cjs/DataTable/DataTableSettings.cjs +1 -1
  20. package/dist/cjs/DatePickers/DateField.cjs +1 -1
  21. package/dist/cjs/DatePickers/DateFieldActionBar.cjs +1 -1
  22. package/dist/cjs/DatePickers/DateFieldLocalizationProvider.cjs +1 -1
  23. package/dist/cjs/DatePickers/DatePicker.cjs +1 -1
  24. package/dist/cjs/DatePickers/TimeZonePicker.cjs +1 -1
  25. package/dist/cjs/Dialog.cjs +8 -1
  26. package/dist/cjs/Dialog.cjs.map +1 -1
  27. package/dist/cjs/Drawer.cjs +1 -1
  28. package/dist/cjs/EmptyState.cjs +1 -1
  29. package/dist/cjs/ErrorMessageList.cjs +1 -1
  30. package/dist/cjs/Field.cjs +1 -1
  31. package/dist/cjs/FieldError.cjs +1 -1
  32. package/dist/cjs/FieldHint.cjs +1 -1
  33. package/dist/cjs/FieldLabel.cjs +1 -1
  34. package/dist/cjs/Fields/Checkbox.cjs +1 -1
  35. package/dist/cjs/Fields/CheckboxGroup.cjs +1 -1
  36. package/dist/cjs/Fields/Radio.cjs +1 -1
  37. package/dist/cjs/Fields/RadioGroup.cjs +1 -1
  38. package/dist/cjs/Fieldset.cjs +1 -1
  39. package/dist/cjs/FileUploader/FileUploadIllustration.cjs +1 -1
  40. package/dist/cjs/FileUploader/FileUploadPreview.cjs +1 -1
  41. package/dist/cjs/FileUploader/FileUploader.cjs +1 -1
  42. package/dist/cjs/Form.cjs +1 -1
  43. package/dist/cjs/FullScreenOverlay.cjs +1 -1
  44. package/dist/cjs/FullScreenOverlayContext.cjs +1 -1
  45. package/dist/cjs/HintLink.cjs +1 -1
  46. package/dist/cjs/IconWithTooltip.cjs +1 -1
  47. package/dist/cjs/Link.cjs +1 -1
  48. package/dist/cjs/MuiPropsChild.cjs +1 -1
  49. package/dist/cjs/NativeSelect.cjs +1 -1
  50. package/dist/cjs/OdysseyCacheProvider.cjs +1 -1
  51. package/dist/cjs/OdysseyProvider.cjs +1 -1
  52. package/dist/cjs/OdysseyThemeProvider.cjs +1 -1
  53. package/dist/cjs/OdysseyThemeProviderPropsContext.cjs +1 -1
  54. package/dist/cjs/Pagination/Pagination.cjs +1 -1
  55. package/dist/cjs/PasswordField.cjs +1 -1
  56. package/dist/cjs/ScreenReaderText.cjs +1 -1
  57. package/dist/cjs/SearchField.cjs +1 -1
  58. package/dist/cjs/Select.cjs +1 -1
  59. package/dist/cjs/Stack.cjs +1 -1
  60. package/dist/cjs/Status.cjs +1 -1
  61. package/dist/cjs/Surface.cjs +1 -1
  62. package/dist/cjs/Switch.cjs +2 -2
  63. package/dist/cjs/Tabs.cjs +1 -1
  64. package/dist/cjs/Tag.cjs +1 -1
  65. package/dist/cjs/TagList.cjs +1 -1
  66. package/dist/cjs/TextField.cjs +1 -1
  67. package/dist/cjs/Toast.cjs +1 -1
  68. package/dist/cjs/ToastStack.cjs +1 -1
  69. package/dist/cjs/Tooltip.cjs +1 -1
  70. package/dist/cjs/Typography.cjs +12 -12
  71. package/dist/cjs/icons.generated/Add.cjs +1 -1
  72. package/dist/cjs/icons.generated/AddCircle.cjs +1 -1
  73. package/dist/cjs/icons.generated/Apps.cjs +1 -1
  74. package/dist/cjs/icons.generated/AppsSelected.cjs +1 -1
  75. package/dist/cjs/icons.generated/ArrowBottom.cjs +1 -1
  76. package/dist/cjs/icons.generated/ArrowDown.cjs +1 -1
  77. package/dist/cjs/icons.generated/ArrowLeft.cjs +1 -1
  78. package/dist/cjs/icons.generated/ArrowLowerLeft.cjs +1 -1
  79. package/dist/cjs/icons.generated/ArrowLowerRight.cjs +1 -1
  80. package/dist/cjs/icons.generated/ArrowRight.cjs +1 -1
  81. package/dist/cjs/icons.generated/ArrowTop.cjs +1 -1
  82. package/dist/cjs/icons.generated/ArrowUnsorted.cjs +1 -1
  83. package/dist/cjs/icons.generated/ArrowUp.cjs +1 -1
  84. package/dist/cjs/icons.generated/ArrowUpperLeft.cjs +1 -1
  85. package/dist/cjs/icons.generated/ArrowUpperRight.cjs +1 -1
  86. package/dist/cjs/icons.generated/Bug.cjs +1 -1
  87. package/dist/cjs/icons.generated/Calendar.cjs +1 -1
  88. package/dist/cjs/icons.generated/Call.cjs +1 -1
  89. package/dist/cjs/icons.generated/Chat.cjs +1 -1
  90. package/dist/cjs/icons.generated/Check.cjs +1 -1
  91. package/dist/cjs/icons.generated/CheckCircleFilled.cjs +1 -1
  92. package/dist/cjs/icons.generated/ChevronDown.cjs +1 -1
  93. package/dist/cjs/icons.generated/ChevronLeft.cjs +1 -1
  94. package/dist/cjs/icons.generated/ChevronRight.cjs +1 -1
  95. package/dist/cjs/icons.generated/ChevronUp.cjs +1 -1
  96. package/dist/cjs/icons.generated/Clock.cjs +1 -1
  97. package/dist/cjs/icons.generated/Close.cjs +1 -1
  98. package/dist/cjs/icons.generated/CloseCircleFilled.cjs +1 -1
  99. package/dist/cjs/icons.generated/CollapseLeft.cjs +1 -1
  100. package/dist/cjs/icons.generated/CollapseRight.cjs +1 -1
  101. package/dist/cjs/icons.generated/Copy.cjs +1 -1
  102. package/dist/cjs/icons.generated/Customizations.cjs +1 -1
  103. package/dist/cjs/icons.generated/CustomizationsSelected.cjs +1 -1
  104. package/dist/cjs/icons.generated/DangerDiamond.cjs +1 -1
  105. package/dist/cjs/icons.generated/DangerDiamondFilled.cjs +1 -1
  106. package/dist/cjs/icons.generated/Delete.cjs +1 -1
  107. package/dist/cjs/icons.generated/Deny.cjs +1 -1
  108. package/dist/cjs/icons.generated/Devices.cjs +1 -1
  109. package/dist/cjs/icons.generated/Directory.cjs +1 -1
  110. package/dist/cjs/icons.generated/DirectorySelected.cjs +1 -1
  111. package/dist/cjs/icons.generated/Documentation.cjs +1 -1
  112. package/dist/cjs/icons.generated/Download.cjs +1 -1
  113. package/dist/cjs/icons.generated/DragIndicator.cjs +1 -1
  114. package/dist/cjs/icons.generated/Edit.cjs +1 -1
  115. package/dist/cjs/icons.generated/ExpandLeft.cjs +1 -1
  116. package/dist/cjs/icons.generated/ExpandRight.cjs +1 -1
  117. package/dist/cjs/icons.generated/ExternalLink.cjs +1 -1
  118. package/dist/cjs/icons.generated/Filter.cjs +1 -1
  119. package/dist/cjs/icons.generated/Folder.cjs +1 -1
  120. package/dist/cjs/icons.generated/Globe.cjs +1 -1
  121. package/dist/cjs/icons.generated/Grid.cjs +1 -1
  122. package/dist/cjs/icons.generated/Group.cjs +1 -1
  123. package/dist/cjs/icons.generated/Happy.cjs +1 -1
  124. package/dist/cjs/icons.generated/Hide.cjs +1 -1
  125. package/dist/cjs/icons.generated/Home.cjs +1 -1
  126. package/dist/cjs/icons.generated/HomeSelected.cjs +1 -1
  127. package/dist/cjs/icons.generated/IdentityGovernance.cjs +1 -1
  128. package/dist/cjs/icons.generated/IdentityGovernanceSelected.cjs +1 -1
  129. package/dist/cjs/icons.generated/InformationCircle.cjs +1 -1
  130. package/dist/cjs/icons.generated/InformationCircleFilled.cjs +1 -1
  131. package/dist/cjs/icons.generated/Link.cjs +1 -1
  132. package/dist/cjs/icons.generated/List.cjs +1 -1
  133. package/dist/cjs/icons.generated/Lock.cjs +1 -1
  134. package/dist/cjs/icons.generated/Menu.cjs +1 -1
  135. package/dist/cjs/icons.generated/More.cjs +1 -1
  136. package/dist/cjs/icons.generated/Neutral.cjs +1 -1
  137. package/dist/cjs/icons.generated/Notification.cjs +1 -1
  138. package/dist/cjs/icons.generated/Pause.cjs +1 -1
  139. package/dist/cjs/icons.generated/QuestionCircle.cjs +1 -1
  140. package/dist/cjs/icons.generated/QuestionCircleFilled.cjs +1 -1
  141. package/dist/cjs/icons.generated/Refresh.cjs +1 -1
  142. package/dist/cjs/icons.generated/Reports.cjs +1 -1
  143. package/dist/cjs/icons.generated/ReportsSelected.cjs +1 -1
  144. package/dist/cjs/icons.generated/Reset.cjs +1 -1
  145. package/dist/cjs/icons.generated/Resume.cjs +1 -1
  146. package/dist/cjs/icons.generated/Sad.cjs +1 -1
  147. package/dist/cjs/icons.generated/Same.cjs +1 -1
  148. package/dist/cjs/icons.generated/Search.cjs +1 -1
  149. package/dist/cjs/icons.generated/Security.cjs +1 -1
  150. package/dist/cjs/icons.generated/SecuritySelected.cjs +1 -1
  151. package/dist/cjs/icons.generated/Send.cjs +1 -1
  152. package/dist/cjs/icons.generated/Server.cjs +1 -1
  153. package/dist/cjs/icons.generated/Settings.cjs +1 -1
  154. package/dist/cjs/icons.generated/SettingsSelected.cjs +1 -1
  155. package/dist/cjs/icons.generated/Show.cjs +1 -1
  156. package/dist/cjs/icons.generated/Sparkle.cjs +1 -1
  157. package/dist/cjs/icons.generated/Subtract.cjs +1 -1
  158. package/dist/cjs/icons.generated/Sync.cjs +1 -1
  159. package/dist/cjs/icons.generated/ThumbsDown.cjs +1 -1
  160. package/dist/cjs/icons.generated/ThumbsUp.cjs +1 -1
  161. package/dist/cjs/icons.generated/Unlock.cjs +1 -1
  162. package/dist/cjs/icons.generated/Upload.cjs +1 -1
  163. package/dist/cjs/icons.generated/User.cjs +1 -1
  164. package/dist/cjs/icons.generated/Video.cjs +1 -1
  165. package/dist/cjs/icons.generated/Warning.cjs +1 -1
  166. package/dist/cjs/icons.generated/WarningFilled.cjs +1 -1
  167. package/dist/cjs/icons.generated/Workflows.cjs +1 -1
  168. package/dist/cjs/icons.generated/WorkflowsSelected.cjs +1 -1
  169. package/dist/cjs/index.cjs +48 -0
  170. package/dist/cjs/index.cjs.map +1 -1
  171. package/dist/cjs/labs/AppTile.cjs +1 -1
  172. package/dist/cjs/labs/DataFilters.cjs +2 -2
  173. package/dist/cjs/labs/DataTable.cjs +1 -1
  174. package/dist/cjs/labs/DataTablePagination.cjs +1 -1
  175. package/dist/cjs/labs/DataView/BulkActionsMenu.cjs +1 -1
  176. package/dist/cjs/labs/DataView/CardLayoutContent.cjs +2 -2
  177. package/dist/cjs/labs/DataView/DataCard.cjs +3 -2
  178. package/dist/cjs/labs/DataView/DataCard.cjs.map +1 -1
  179. package/dist/cjs/labs/DataView/DataTable.cjs +1 -1
  180. package/dist/cjs/labs/DataView/DataView.cjs +1 -1
  181. package/dist/cjs/labs/DataView/DetailPanel.cjs +1 -1
  182. package/dist/cjs/labs/DataView/LayoutSwitcher.cjs +1 -1
  183. package/dist/cjs/labs/DataView/RowActions.cjs +1 -1
  184. package/dist/cjs/labs/DataView/TableLayoutContent.cjs +1 -1
  185. package/dist/cjs/labs/DataView/TableSettings.cjs +1 -1
  186. package/dist/cjs/labs/DatePickers/DateTimeField.cjs +1 -1
  187. package/dist/cjs/labs/DatePickers/DateTimePicker.cjs +1 -1
  188. package/dist/cjs/labs/OdysseyPickers/ComposablePicker.cjs +1 -1
  189. package/dist/cjs/labs/OdysseyPickers/Picker.cjs +1 -1
  190. package/dist/cjs/labs/OdysseyPickers/PickerVirtualizationListBox.cjs +1 -1
  191. package/dist/cjs/labs/OdysseyPickers/PickerWithOptionAdornment.cjs +1 -1
  192. package/dist/cjs/labs/OdysseyPickers/SearchDropdown.cjs +1 -1
  193. package/dist/cjs/labs/PageTemplate/DocumentationLink.cjs +1 -1
  194. package/dist/cjs/labs/PageTemplate/Layout.cjs +1 -1
  195. package/dist/cjs/labs/PageTemplate/PageTemplate.cjs +1 -1
  196. package/dist/cjs/labs/PaginatedTable.cjs +1 -1
  197. package/dist/cjs/labs/StaticTable.cjs +1 -1
  198. package/dist/cjs/labs/UserProfile.cjs +1 -1
  199. package/dist/cjs/labs/UserProfileMenuButton.cjs +1 -1
  200. package/dist/cjs/logos.generated/Duo.cjs +1 -1
  201. package/dist/cjs/logos.generated/GoogleAuth.cjs +1 -1
  202. package/dist/cjs/logos.generated/OktaVerify.cjs +1 -1
  203. package/dist/cjs/logos.generated/Persona.cjs +1 -1
  204. package/dist/cjs/logos.generated/SymantecVip.cjs +1 -1
  205. package/dist/cjs/logos.generated/Yubikey.cjs +1 -1
  206. package/dist/cjs/test-utils/renderWithOdysseyProvider.cjs +2 -3
  207. package/dist/cjs/test-utils/renderWithOdysseyProvider.cjs.map +1 -1
  208. package/dist/cjs/test-utils/viewportTestSizes.cjs +21 -0
  209. package/dist/cjs/test-utils/viewportTestSizes.cjs.map +1 -0
  210. package/dist/cjs/theme/components/Dialog.cjs +6 -2
  211. package/dist/cjs/theme/components/Dialog.cjs.map +1 -1
  212. package/dist/cjs/theme/useMediaQuery.cjs +35 -13
  213. package/dist/cjs/theme/useMediaQuery.cjs.map +1 -1
  214. package/dist/cjs/ui-shell/AppSwitcher/AppSwitcher.cjs +1 -1
  215. package/dist/cjs/ui-shell/InnerAppContainer.cjs +1 -1
  216. package/dist/cjs/ui-shell/NarrowUiShellContent.cjs +3 -2
  217. package/dist/cjs/ui-shell/NarrowUiShellContent.cjs.map +1 -1
  218. package/dist/cjs/ui-shell/SideNav/NavAccordion.cjs +1 -1
  219. package/dist/cjs/ui-shell/SideNav/SideNav.cjs +10 -2
  220. package/dist/cjs/ui-shell/SideNav/SideNav.cjs.map +1 -1
  221. package/dist/cjs/ui-shell/SideNav/SideNavFooterContent.cjs +1 -1
  222. package/dist/cjs/ui-shell/SideNav/SideNavHeader.cjs +1 -1
  223. package/dist/cjs/ui-shell/SideNav/SideNavItemContent.cjs +4 -3
  224. package/dist/cjs/ui-shell/SideNav/SideNavItemContent.cjs.map +1 -1
  225. package/dist/cjs/ui-shell/SideNav/SideNavItemLinkContent.cjs +1 -1
  226. package/dist/cjs/ui-shell/SideNav/SideNavSortableList.cjs +1 -1
  227. package/dist/cjs/ui-shell/SideNav/SideNavToggleButton.cjs +2 -2
  228. package/dist/cjs/ui-shell/SkipToContent.cjs +1 -1
  229. package/dist/cjs/ui-shell/TopNav/HamburgerMenuIcon.cjs +1 -1
  230. package/dist/cjs/ui-shell/TopNav/TopNav.cjs +1 -1
  231. package/dist/cjs/ui-shell/TopNav/TopNavLinksList.cjs +1 -1
  232. package/dist/cjs/ui-shell/TopNav/TopNavListItem.cjs +1 -1
  233. package/dist/cjs/ui-shell/UiShell.cjs +1 -1
  234. package/dist/cjs/ui-shell/UiShellLogo.cjs +1 -1
  235. package/dist/cjs/ui-shell/WideUiShellContent.cjs +1 -1
  236. package/dist/cjs/web-component/odysseyWebComponentVersion.generated.cjs +1 -1
  237. package/dist/cjs/web-component/odysseyWebComponentVersion.generated.cjs.map +1 -1
  238. package/dist/esm/Accordion.js +1 -1
  239. package/dist/esm/Autocomplete.js +1 -1
  240. package/dist/esm/Badge.js +1 -1
  241. package/dist/esm/Banner.js +1 -1
  242. package/dist/esm/Box.js +1 -1
  243. package/dist/esm/Breadcrumbs.js +1 -1
  244. package/dist/esm/Buttons/BaseButton.js +1 -1
  245. package/dist/esm/Buttons/BaseMenuButton.js +1 -1
  246. package/dist/esm/Buttons/Button.js +1 -1
  247. package/dist/esm/Buttons/MenuButton.js +1 -1
  248. package/dist/esm/Buttons/MenuItem.js +1 -1
  249. package/dist/esm/Callout.js +1 -6
  250. package/dist/esm/Callout.js.map +1 -1
  251. package/dist/esm/Card.js +1 -1
  252. package/dist/esm/CircularProgress.js +1 -1
  253. package/dist/esm/ConditionalWrapper.js +1 -1
  254. package/dist/esm/DataTable/DataTable.js +1 -1
  255. package/dist/esm/DataTable/DataTableRowActions.js +1 -1
  256. package/dist/esm/DataTable/DataTableSettings.js +1 -1
  257. package/dist/esm/DatePickers/DateField.js +1 -1
  258. package/dist/esm/DatePickers/DateFieldActionBar.js +1 -1
  259. package/dist/esm/DatePickers/DateFieldLocalizationProvider.js +1 -1
  260. package/dist/esm/DatePickers/DatePicker.js +1 -1
  261. package/dist/esm/DatePickers/TimeZonePicker.js +1 -1
  262. package/dist/esm/Dialog.js +8 -1
  263. package/dist/esm/Dialog.js.map +1 -1
  264. package/dist/esm/Drawer.js +1 -1
  265. package/dist/esm/EmptyState.js +1 -1
  266. package/dist/esm/ErrorMessageList.js +1 -1
  267. package/dist/esm/Field.js +1 -1
  268. package/dist/esm/FieldError.js +1 -1
  269. package/dist/esm/FieldHint.js +1 -1
  270. package/dist/esm/FieldLabel.js +1 -1
  271. package/dist/esm/Fields/Checkbox.js +1 -1
  272. package/dist/esm/Fields/CheckboxGroup.js +1 -1
  273. package/dist/esm/Fields/Radio.js +1 -1
  274. package/dist/esm/Fields/RadioGroup.js +1 -1
  275. package/dist/esm/Fieldset.js +1 -1
  276. package/dist/esm/FileUploader/FileUploadIllustration.js +1 -1
  277. package/dist/esm/FileUploader/FileUploadPreview.js +1 -1
  278. package/dist/esm/FileUploader/FileUploader.js +1 -1
  279. package/dist/esm/Form.js +1 -1
  280. package/dist/esm/FullScreenOverlay.js +1 -1
  281. package/dist/esm/FullScreenOverlayContext.js +1 -1
  282. package/dist/esm/HintLink.js +1 -1
  283. package/dist/esm/IconWithTooltip.js +1 -1
  284. package/dist/esm/Link.js +1 -1
  285. package/dist/esm/MuiPropsChild.js +1 -1
  286. package/dist/esm/NativeSelect.js +1 -1
  287. package/dist/esm/OdysseyCacheProvider.js +1 -1
  288. package/dist/esm/OdysseyProvider.js +1 -1
  289. package/dist/esm/OdysseyThemeProvider.js +1 -1
  290. package/dist/esm/OdysseyThemeProviderPropsContext.js +1 -1
  291. package/dist/esm/Pagination/Pagination.js +1 -1
  292. package/dist/esm/PasswordField.js +1 -1
  293. package/dist/esm/ScreenReaderText.js +1 -1
  294. package/dist/esm/SearchField.js +1 -1
  295. package/dist/esm/Select.js +1 -1
  296. package/dist/esm/Stack.js +1 -1
  297. package/dist/esm/Status.js +1 -1
  298. package/dist/esm/Surface.js +1 -1
  299. package/dist/esm/Switch.js +2 -2
  300. package/dist/esm/Tabs.js +1 -1
  301. package/dist/esm/Tag.js +1 -1
  302. package/dist/esm/TagList.js +1 -1
  303. package/dist/esm/TextField.js +1 -1
  304. package/dist/esm/Toast.js +1 -1
  305. package/dist/esm/ToastStack.js +1 -1
  306. package/dist/esm/Tooltip.js +1 -1
  307. package/dist/esm/Typography.js +12 -12
  308. package/dist/esm/icons.generated/Add.js +1 -1
  309. package/dist/esm/icons.generated/AddCircle.js +1 -1
  310. package/dist/esm/icons.generated/Apps.js +1 -1
  311. package/dist/esm/icons.generated/AppsSelected.js +1 -1
  312. package/dist/esm/icons.generated/ArrowBottom.js +1 -1
  313. package/dist/esm/icons.generated/ArrowDown.js +1 -1
  314. package/dist/esm/icons.generated/ArrowLeft.js +1 -1
  315. package/dist/esm/icons.generated/ArrowLowerLeft.js +1 -1
  316. package/dist/esm/icons.generated/ArrowLowerRight.js +1 -1
  317. package/dist/esm/icons.generated/ArrowRight.js +1 -1
  318. package/dist/esm/icons.generated/ArrowTop.js +1 -1
  319. package/dist/esm/icons.generated/ArrowUnsorted.js +1 -1
  320. package/dist/esm/icons.generated/ArrowUp.js +1 -1
  321. package/dist/esm/icons.generated/ArrowUpperLeft.js +1 -1
  322. package/dist/esm/icons.generated/ArrowUpperRight.js +1 -1
  323. package/dist/esm/icons.generated/Bug.js +1 -1
  324. package/dist/esm/icons.generated/Calendar.js +1 -1
  325. package/dist/esm/icons.generated/Call.js +1 -1
  326. package/dist/esm/icons.generated/Chat.js +1 -1
  327. package/dist/esm/icons.generated/Check.js +1 -1
  328. package/dist/esm/icons.generated/CheckCircleFilled.js +1 -1
  329. package/dist/esm/icons.generated/ChevronDown.js +1 -1
  330. package/dist/esm/icons.generated/ChevronLeft.js +1 -1
  331. package/dist/esm/icons.generated/ChevronRight.js +1 -1
  332. package/dist/esm/icons.generated/ChevronUp.js +1 -1
  333. package/dist/esm/icons.generated/Clock.js +1 -1
  334. package/dist/esm/icons.generated/Close.js +1 -1
  335. package/dist/esm/icons.generated/CloseCircleFilled.js +1 -1
  336. package/dist/esm/icons.generated/CollapseLeft.js +1 -1
  337. package/dist/esm/icons.generated/CollapseRight.js +1 -1
  338. package/dist/esm/icons.generated/Copy.js +1 -1
  339. package/dist/esm/icons.generated/Customizations.js +1 -1
  340. package/dist/esm/icons.generated/CustomizationsSelected.js +1 -1
  341. package/dist/esm/icons.generated/DangerDiamond.js +1 -1
  342. package/dist/esm/icons.generated/DangerDiamondFilled.js +1 -1
  343. package/dist/esm/icons.generated/Delete.js +1 -1
  344. package/dist/esm/icons.generated/Deny.js +1 -1
  345. package/dist/esm/icons.generated/Devices.js +1 -1
  346. package/dist/esm/icons.generated/Directory.js +1 -1
  347. package/dist/esm/icons.generated/DirectorySelected.js +1 -1
  348. package/dist/esm/icons.generated/Documentation.js +1 -1
  349. package/dist/esm/icons.generated/Download.js +1 -1
  350. package/dist/esm/icons.generated/DragIndicator.js +1 -1
  351. package/dist/esm/icons.generated/Edit.js +1 -1
  352. package/dist/esm/icons.generated/ExpandLeft.js +1 -1
  353. package/dist/esm/icons.generated/ExpandRight.js +1 -1
  354. package/dist/esm/icons.generated/ExternalLink.js +1 -1
  355. package/dist/esm/icons.generated/Filter.js +1 -1
  356. package/dist/esm/icons.generated/Folder.js +1 -1
  357. package/dist/esm/icons.generated/Globe.js +1 -1
  358. package/dist/esm/icons.generated/Grid.js +1 -1
  359. package/dist/esm/icons.generated/Group.js +1 -1
  360. package/dist/esm/icons.generated/Happy.js +1 -1
  361. package/dist/esm/icons.generated/Hide.js +1 -1
  362. package/dist/esm/icons.generated/Home.js +1 -1
  363. package/dist/esm/icons.generated/HomeSelected.js +1 -1
  364. package/dist/esm/icons.generated/IdentityGovernance.js +1 -1
  365. package/dist/esm/icons.generated/IdentityGovernanceSelected.js +1 -1
  366. package/dist/esm/icons.generated/InformationCircle.js +1 -1
  367. package/dist/esm/icons.generated/InformationCircleFilled.js +1 -1
  368. package/dist/esm/icons.generated/Link.js +1 -1
  369. package/dist/esm/icons.generated/List.js +1 -1
  370. package/dist/esm/icons.generated/Lock.js +1 -1
  371. package/dist/esm/icons.generated/Menu.js +1 -1
  372. package/dist/esm/icons.generated/More.js +1 -1
  373. package/dist/esm/icons.generated/Neutral.js +1 -1
  374. package/dist/esm/icons.generated/Notification.js +1 -1
  375. package/dist/esm/icons.generated/Pause.js +1 -1
  376. package/dist/esm/icons.generated/QuestionCircle.js +1 -1
  377. package/dist/esm/icons.generated/QuestionCircleFilled.js +1 -1
  378. package/dist/esm/icons.generated/Refresh.js +1 -1
  379. package/dist/esm/icons.generated/Reports.js +1 -1
  380. package/dist/esm/icons.generated/ReportsSelected.js +1 -1
  381. package/dist/esm/icons.generated/Reset.js +1 -1
  382. package/dist/esm/icons.generated/Resume.js +1 -1
  383. package/dist/esm/icons.generated/Sad.js +1 -1
  384. package/dist/esm/icons.generated/Same.js +1 -1
  385. package/dist/esm/icons.generated/Search.js +1 -1
  386. package/dist/esm/icons.generated/Security.js +1 -1
  387. package/dist/esm/icons.generated/SecuritySelected.js +1 -1
  388. package/dist/esm/icons.generated/Send.js +1 -1
  389. package/dist/esm/icons.generated/Server.js +1 -1
  390. package/dist/esm/icons.generated/Settings.js +1 -1
  391. package/dist/esm/icons.generated/SettingsSelected.js +1 -1
  392. package/dist/esm/icons.generated/Show.js +1 -1
  393. package/dist/esm/icons.generated/Sparkle.js +1 -1
  394. package/dist/esm/icons.generated/Subtract.js +1 -1
  395. package/dist/esm/icons.generated/Sync.js +1 -1
  396. package/dist/esm/icons.generated/ThumbsDown.js +1 -1
  397. package/dist/esm/icons.generated/ThumbsUp.js +1 -1
  398. package/dist/esm/icons.generated/Unlock.js +1 -1
  399. package/dist/esm/icons.generated/Upload.js +1 -1
  400. package/dist/esm/icons.generated/User.js +1 -1
  401. package/dist/esm/icons.generated/Video.js +1 -1
  402. package/dist/esm/icons.generated/Warning.js +1 -1
  403. package/dist/esm/icons.generated/WarningFilled.js +1 -1
  404. package/dist/esm/icons.generated/Workflows.js +1 -1
  405. package/dist/esm/icons.generated/WorkflowsSelected.js +1 -1
  406. package/dist/esm/index.js +1 -1
  407. package/dist/esm/index.js.map +1 -1
  408. package/dist/esm/labs/AppTile.js +1 -1
  409. package/dist/esm/labs/DataFilters.js +2 -2
  410. package/dist/esm/labs/DataTable.js +1 -1
  411. package/dist/esm/labs/DataTablePagination.js +1 -1
  412. package/dist/esm/labs/DataView/BulkActionsMenu.js +1 -1
  413. package/dist/esm/labs/DataView/CardLayoutContent.js +2 -2
  414. package/dist/esm/labs/DataView/DataCard.js +4 -3
  415. package/dist/esm/labs/DataView/DataCard.js.map +1 -1
  416. package/dist/esm/labs/DataView/DataTable.js +1 -1
  417. package/dist/esm/labs/DataView/DataView.js +1 -1
  418. package/dist/esm/labs/DataView/DetailPanel.js +1 -1
  419. package/dist/esm/labs/DataView/LayoutSwitcher.js +1 -1
  420. package/dist/esm/labs/DataView/RowActions.js +1 -1
  421. package/dist/esm/labs/DataView/TableLayoutContent.js +1 -1
  422. package/dist/esm/labs/DataView/TableSettings.js +1 -1
  423. package/dist/esm/labs/DatePickers/DateTimeField.js +1 -1
  424. package/dist/esm/labs/DatePickers/DateTimePicker.js +1 -1
  425. package/dist/esm/labs/OdysseyPickers/ComposablePicker.js +1 -1
  426. package/dist/esm/labs/OdysseyPickers/Picker.js +1 -1
  427. package/dist/esm/labs/OdysseyPickers/PickerVirtualizationListBox.js +1 -1
  428. package/dist/esm/labs/OdysseyPickers/PickerWithOptionAdornment.js +1 -1
  429. package/dist/esm/labs/OdysseyPickers/SearchDropdown.js +1 -1
  430. package/dist/esm/labs/PageTemplate/DocumentationLink.js +1 -1
  431. package/dist/esm/labs/PageTemplate/Layout.js +1 -1
  432. package/dist/esm/labs/PageTemplate/PageTemplate.js +1 -1
  433. package/dist/esm/labs/PaginatedTable.js +1 -1
  434. package/dist/esm/labs/StaticTable.js +1 -1
  435. package/dist/esm/labs/UserProfile.js +1 -1
  436. package/dist/esm/labs/UserProfileMenuButton.js +1 -1
  437. package/dist/esm/logos.generated/Duo.js +1 -1
  438. package/dist/esm/logos.generated/GoogleAuth.js +1 -1
  439. package/dist/esm/logos.generated/OktaVerify.js +1 -1
  440. package/dist/esm/logos.generated/Persona.js +1 -1
  441. package/dist/esm/logos.generated/SymantecVip.js +1 -1
  442. package/dist/esm/logos.generated/Yubikey.js +1 -1
  443. package/dist/esm/test-utils/renderWithOdysseyProvider.js +2 -3
  444. package/dist/esm/test-utils/renderWithOdysseyProvider.js.map +1 -1
  445. package/dist/esm/test-utils/viewportTestSizes.js +17 -0
  446. package/dist/esm/test-utils/viewportTestSizes.js.map +1 -0
  447. package/dist/esm/theme/components/Dialog.js +6 -2
  448. package/dist/esm/theme/components/Dialog.js.map +1 -1
  449. package/dist/esm/theme/useMediaQuery.js +33 -10
  450. package/dist/esm/theme/useMediaQuery.js.map +1 -1
  451. package/dist/esm/ui-shell/AppSwitcher/AppSwitcher.js +1 -1
  452. package/dist/esm/ui-shell/InnerAppContainer.js +1 -1
  453. package/dist/esm/ui-shell/NarrowUiShellContent.js +4 -3
  454. package/dist/esm/ui-shell/NarrowUiShellContent.js.map +1 -1
  455. package/dist/esm/ui-shell/SideNav/NavAccordion.js +1 -1
  456. package/dist/esm/ui-shell/SideNav/SideNav.js +10 -2
  457. package/dist/esm/ui-shell/SideNav/SideNav.js.map +1 -1
  458. package/dist/esm/ui-shell/SideNav/SideNavFooterContent.js +1 -1
  459. package/dist/esm/ui-shell/SideNav/SideNavHeader.js +1 -1
  460. package/dist/esm/ui-shell/SideNav/SideNavItemContent.js +4 -3
  461. package/dist/esm/ui-shell/SideNav/SideNavItemContent.js.map +1 -1
  462. package/dist/esm/ui-shell/SideNav/SideNavItemLinkContent.js +1 -1
  463. package/dist/esm/ui-shell/SideNav/SideNavSortableList.js +1 -1
  464. package/dist/esm/ui-shell/SideNav/SideNavToggleButton.js +2 -2
  465. package/dist/esm/ui-shell/SkipToContent.js +1 -1
  466. package/dist/esm/ui-shell/TopNav/HamburgerMenuIcon.js +1 -1
  467. package/dist/esm/ui-shell/TopNav/TopNav.js +1 -1
  468. package/dist/esm/ui-shell/TopNav/TopNavLinksList.js +1 -1
  469. package/dist/esm/ui-shell/TopNav/TopNavListItem.js +1 -1
  470. package/dist/esm/ui-shell/UiShell.js +1 -1
  471. package/dist/esm/ui-shell/UiShellLogo.js +1 -1
  472. package/dist/esm/ui-shell/WideUiShellContent.js +1 -1
  473. package/dist/esm/web-component/odysseyWebComponentVersion.generated.js +1 -1
  474. package/dist/esm/web-component/odysseyWebComponentVersion.generated.js.map +1 -1
  475. package/dist/tsconfig.production.tsbuildinfo +1 -1
  476. package/dist/types/Callout.d.ts.map +1 -1
  477. package/dist/types/Dialog.d.ts.map +1 -1
  478. package/dist/types/index.d.ts +1 -1
  479. package/dist/types/index.d.ts.map +1 -1
  480. package/dist/types/labs/DataView/DataCard.d.ts.map +1 -1
  481. package/dist/types/test-utils/renderWithOdysseyProvider.d.ts +14 -1
  482. package/dist/types/test-utils/renderWithOdysseyProvider.d.ts.map +1 -1
  483. package/dist/types/test-utils/viewportTestSizes.d.ts +16 -0
  484. package/dist/types/test-utils/viewportTestSizes.d.ts.map +1 -0
  485. package/dist/types/theme/components/Dialog.d.ts.map +1 -1
  486. package/dist/types/theme/useMediaQuery.d.ts +63 -0
  487. package/dist/types/theme/useMediaQuery.d.ts.map +1 -1
  488. package/dist/types/ui-shell/NarrowUiShellContent.d.ts.map +1 -1
  489. package/dist/types/ui-shell/SideNav/SideNav.d.ts.map +1 -1
  490. package/dist/types/ui-shell/SideNav/SideNavItemContent.d.ts.map +1 -1
  491. package/dist/types/web-component/odysseyWebComponentVersion.generated.d.ts +1 -1
  492. package/package.json +9 -7
@@ -117,7 +117,7 @@ const FilterTags = ({
117
117
  });
118
118
  };
119
119
  const MemoizedFilterTags = (0, _react.memo)(FilterTags);
120
- MemoizedFilterTags.displayName = "FilterTags::pkg=odyssey&odysseyV=1.65.0";
120
+ MemoizedFilterTags.displayName = "FilterTags::pkg=odyssey&odysseyV=1.65.2";
121
121
  const DataFilters = ({
122
122
  onChangeSearch,
123
123
  onChangeFilters,
@@ -560,5 +560,5 @@ const DataFilters = ({
560
560
  });
561
561
  };
562
562
  const MemoizedDataFilters = exports.DataFilters = (0, _react.memo)(DataFilters);
563
- MemoizedDataFilters.displayName = "DataFilters::pkg=odyssey&odysseyV=1.65.0";
563
+ MemoizedDataFilters.displayName = "DataFilters::pkg=odyssey&odysseyV=1.65.2";
564
564
  //# sourceMappingURL=DataFilters.cjs.map
@@ -481,5 +481,5 @@ const DataTable = ({
481
481
  });
482
482
  };
483
483
  const MemoizedDataTable = exports.DataTable = (0, _react.memo)(DataTable);
484
- MemoizedDataTable.displayName = "DataTable::pkg=odyssey&odysseyV=1.65.0";
484
+ MemoizedDataTable.displayName = "DataTable::pkg=odyssey&odysseyV=1.65.2";
485
485
  //# sourceMappingURL=DataTable.cjs.map
@@ -72,5 +72,5 @@ const DataTablePagination = ({
72
72
  });
73
73
  };
74
74
  const MemoizedDataTablePagination = exports.DataTablePagination = (0, _react.memo)(DataTablePagination);
75
- MemoizedDataTablePagination.displayName = "DataTablePagination::pkg=odyssey&odysseyV=1.65.0";
75
+ MemoizedDataTablePagination.displayName = "DataTablePagination::pkg=odyssey&odysseyV=1.65.2";
76
76
  //# sourceMappingURL=DataTablePagination.cjs.map
@@ -79,5 +79,5 @@ const BulkActionsMenu = ({
79
79
  });
80
80
  };
81
81
  const MemoizedBulkActionsMenu = exports.BulkActionsMenu = (0, _react.memo)(BulkActionsMenu);
82
- MemoizedBulkActionsMenu.displayName = "BulkActionsMenu::pkg=odyssey&odysseyV=1.65.0";
82
+ MemoizedBulkActionsMenu.displayName = "BulkActionsMenu::pkg=odyssey&odysseyV=1.65.2";
83
83
  //# sourceMappingURL=BulkActionsMenu.cjs.map
@@ -106,7 +106,7 @@ const RowDataCard = ({
106
106
  }, row.id);
107
107
  };
108
108
  const MemoizedRowDataCard = (0, _react.memo)(RowDataCard);
109
- MemoizedRowDataCard.displayName = "RowDataCard::pkg=odyssey&odysseyV=1.65.0";
109
+ MemoizedRowDataCard.displayName = "RowDataCard::pkg=odyssey&odysseyV=1.65.2";
110
110
  const CardLayoutContent = ({
111
111
  currentLayout,
112
112
  data,
@@ -162,5 +162,5 @@ const CardLayoutContent = ({
162
162
  });
163
163
  };
164
164
  const MemoizedCardLayoutContent = exports.CardLayoutContent = (0, _react.memo)(CardLayoutContent);
165
- MemoizedCardLayoutContent.displayName = "CardLayoutContent::pkg=odyssey&odysseyV=1.65.0";
165
+ MemoizedCardLayoutContent.displayName = "CardLayoutContent::pkg=odyssey&odysseyV=1.65.2";
166
166
  //# sourceMappingURL=CardLayoutContent.cjs.map
@@ -13,6 +13,7 @@ var _Card = require("../../Card.cjs");
13
13
  var _i18n = require("../../i18n.generated/i18n.cjs");
14
14
  var _index = require("../../icons.generated/index.cjs");
15
15
  var _OdysseyDesignTokensContext = require("../../OdysseyDesignTokensContext.cjs");
16
+ var _useUniqueId = require("../../useUniqueId.cjs");
16
17
  var _jsxRuntime = require("react/jsx-runtime");
17
18
  function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
18
19
  /*!
@@ -54,7 +55,7 @@ const DataCard = ({
54
55
  const {
55
56
  t
56
57
  } = (0, _i18n.useTranslation)();
57
- const titleId = (0, _react.useId)();
58
+ const titleId = (0, _useUniqueId.useUniqueId)();
58
59
  const [isExpanded, setIsExpanded] = (0, _react.useState)(false);
59
60
  const SelectionCheckbox = (0, _react.useMemo)(() => (0, _jsxRuntime.jsx)(CheckboxContainer, {
60
61
  odysseyDesignTokens: odysseyDesignTokens,
@@ -99,5 +100,5 @@ const DataCard = ({
99
100
  });
100
101
  };
101
102
  const MemoizedDataCard = exports.DataCard = (0, _react.memo)(DataCard);
102
- MemoizedDataCard.displayName = "DataCard::pkg=odyssey&odysseyV=1.65.0";
103
+ MemoizedDataCard.displayName = "DataCard::pkg=odyssey&odysseyV=1.65.2";
103
104
  //# sourceMappingURL=DataCard.cjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"DataCard.cjs","names":["_styled","_interopRequireDefault","require","_react","_Card","_i18n","_index","_OdysseyDesignTokensContext","_jsxRuntime","e","__esModule","default","CheckboxContainer","styled","shouldForwardProp","prop","odysseyDesignTokens","marginBlockStart","Spacing1","AccessoryPlaceholder","_IconButton2","visibility","DataCard","children","description","detailPanel","hasSelection","image","isSelected","onSelectionChange","overline","title","variant","menuButtonChildren","useOdysseyDesignTokens","t","useTranslation","titleId","useId","isExpanded","setIsExpanded","useState","SelectionCheckbox","useMemo","jsx","_Checkbox2","checked","inputProps","onChange","ExpansionToggle","_Tooltip2","ChevronUpIcon","ChevronDownIcon","onClick","disabled","Accessory","jsxs","Fragment","Card","__role","accessory","MemoizedDataCard","exports","memo","displayName"],"sources":["../../../../src/labs/DataView/DataCard.tsx"],"sourcesContent":["/*!\n * Copyright (c) 2024-present, Okta, Inc. and/or its affiliates. All rights reserved.\n * The Okta software accompanied by this notice is provided pursuant to the Apache License, Version 2.0 (the \"License.\")\n *\n * You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0.\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS, WITHOUT\n * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n *\n * See the License for the specific language governing permissions and limitations under the License.\n */\n\nimport styled from \"@emotion/styled\";\nimport {\n Checkbox as MuiCheckbox,\n IconButton as MuiIconButton,\n Tooltip as MuiTooltip,\n} from \"@mui/material\";\nimport { memo, useId, useMemo, useState } from \"react\";\n\nimport { Card, CardProps } from \"../../Card.js\";\nimport { useTranslation } from \"../../i18n.generated/i18n.js\";\nimport { ChevronDownIcon, ChevronUpIcon } from \"../../icons.generated/index.js\";\nimport {\n DesignTokens,\n useOdysseyDesignTokens,\n} from \"../../OdysseyDesignTokensContext.js\";\n\nexport type DataCardProps = {\n children?: CardProps[\"children\"];\n description?: CardProps[\"description\"];\n detailPanel?: CardProps[\"detailPanel\"];\n /**\n * If `true`, the card renders a selection checkbox.\n */\n hasSelection?: boolean;\n image?: CardProps[\"image\"];\n /**\n * If `true`, the card is in a selected state.\n */\n isSelected?: boolean;\n menuButtonChildren?: CardProps[\"menuButtonChildren\"];\n onSelectionChange?: () => void;\n overline?: CardProps[\"overline\"];\n title?: CardProps[\"title\"];\n variant?: CardProps[\"variant\"];\n};\n\nconst CheckboxContainer = styled(\"div\", {\n shouldForwardProp: (prop) => prop !== \"odysseyDesignTokens\",\n})<{\n odysseyDesignTokens: DesignTokens;\n}>(({ odysseyDesignTokens }) => ({\n marginBlockStart: `-${odysseyDesignTokens.Spacing1}`,\n}));\n\nconst AccessoryPlaceholder = styled(MuiIconButton)(() => ({\n visibility: \"hidden\" as const,\n}));\n\nconst DataCard = ({\n children,\n description,\n detailPanel,\n hasSelection,\n image,\n isSelected,\n onSelectionChange,\n overline,\n title,\n variant,\n menuButtonChildren,\n}: DataCardProps) => {\n const odysseyDesignTokens = useOdysseyDesignTokens();\n const { t } = useTranslation();\n const titleId = useId();\n\n const [isExpanded, setIsExpanded] = useState<boolean>(false);\n\n const SelectionCheckbox = useMemo(\n () => (\n <CheckboxContainer odysseyDesignTokens={odysseyDesignTokens}>\n <MuiCheckbox\n checked={isSelected}\n inputProps={{\n \"aria-labelledby\": titleId,\n }}\n onChange={onSelectionChange}\n />\n </CheckboxContainer>\n ),\n [isSelected, odysseyDesignTokens, onSelectionChange, titleId],\n );\n\n const ExpansionToggle = useMemo(() => {\n return detailPanel ? (\n <MuiTooltip\n title={\n isExpanded\n ? t(\"table.rowexpansion.collapse\")\n : t(\"table.rowexpansion.expand\")\n }\n >\n <MuiIconButton\n aria-label={\n isExpanded\n ? t(\"table.rowexpansion.collapse\")\n : t(\"table.rowexpansion.expand\")\n }\n children={isExpanded ? <ChevronUpIcon /> : <ChevronDownIcon />}\n onClick={() => setIsExpanded(!isExpanded)}\n />\n </MuiTooltip>\n ) : (\n <AccessoryPlaceholder disabled>\n <ChevronDownIcon />\n </AccessoryPlaceholder>\n );\n }, [isExpanded, detailPanel, t]);\n\n const Accessory = useMemo(() => {\n return (\n <>\n {hasSelection && SelectionCheckbox}\n {ExpansionToggle}\n </>\n );\n }, [ExpansionToggle, SelectionCheckbox, hasSelection]);\n\n return (\n <Card\n __role=\"listitem\"\n accessory={Accessory}\n children={children}\n description={description}\n detailPanel={isExpanded && detailPanel}\n image={image}\n menuButtonChildren={menuButtonChildren}\n overline={overline}\n title={title}\n titleId={titleId}\n variant={variant}\n />\n );\n};\n\nconst MemoizedDataCard = memo(DataCard);\nMemoizedDataCard.displayName = \"DataCard\";\n\nexport { MemoizedDataCard as DataCard };\n"],"mappings":";;;;;;;;;AAYA,IAAAA,OAAA,GAAAC,sBAAA,CAAAC,OAAA;AAMA,IAAAC,MAAA,GAAAD,OAAA;AAEA,IAAAE,KAAA,GAAAF,OAAA;AACA,IAAAG,KAAA,GAAAH,OAAA;AACA,IAAAI,MAAA,GAAAJ,OAAA;AACA,IAAAK,2BAAA,GAAAL,OAAA;AAG6C,IAAAM,WAAA,GAAAN,OAAA;AAAA,SAAAD,uBAAAQ,CAAA,WAAAA,CAAA,IAAAA,CAAA,CAAAC,UAAA,GAAAD,CAAA,KAAAE,OAAA,EAAAF,CAAA;AA1B7C;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAsCA,MAAMG,iBAAiB,GAAG,IAAAC,eAAM,EAAC,KAAK,EAAE;EACtC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nBC,WAAW,EAAEA,WAAY;IACzBC,WAAW,EAAEc,UAAU,IAAId,WAAY;IACvCE,KAAK,EAAEA,KAAM;IACbM,kBAAkB,EAAEA,kBAAmB;IACvCH,QAAQ,EAAEA,QAAS;IACnBC,KAAK,EAAEA,KAAM;IACbM,OAAO,EAAEA,OAAQ;IACjBL,OAAO,EAAEA;EAAQ,CAClB,CAAC;AAEN,CAAC;AAED,MAAM6B,gBAAgB,GAAAC,OAAA,CAAAxC,QAAA,GAAG,IAAAyC,WAAI,EAACzC,QAAQ,CAAC;AACvCuC,gBAAgB,CAACG,WAAW,0CAAa","ignoreList":[]}
1
+ {"version":3,"file":"DataCard.cjs","names":["_styled","_interopRequireDefault","require","_react","_Card","_i18n","_index","_OdysseyDesignTokensContext","_useUniqueId","_jsxRuntime","e","__esModule","default","CheckboxContainer","styled","shouldForwardProp","prop","odysseyDesignTokens","marginBlockStart","Spacing1","AccessoryPlaceholder","_IconButton2","visibility","DataCard","children","description","detailPanel","hasSelection","image","isSelected","onSelectionChange","overline","title","variant","menuButtonChildren","useOdysseyDesignTokens","t","useTranslation","titleId","useUniqueId","isExpanded","setIsExpanded","useState","SelectionCheckbox","useMemo","jsx","_Checkbox2","checked","inputProps","onChange","ExpansionToggle","_Tooltip2","ChevronUpIcon","ChevronDownIcon","onClick","disabled","Accessory","jsxs","Fragment","Card","__role","accessory","MemoizedDataCard","exports","memo","displayName"],"sources":["../../../../src/labs/DataView/DataCard.tsx"],"sourcesContent":["/*!\n * Copyright (c) 2024-present, Okta, Inc. and/or its affiliates. All rights reserved.\n * The Okta software accompanied by this notice is provided pursuant to the Apache License, Version 2.0 (the \"License.\")\n *\n * You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0.\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS, WITHOUT\n * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n *\n * See the License for the specific language governing permissions and limitations under the License.\n */\n\nimport styled from \"@emotion/styled\";\nimport {\n Checkbox as MuiCheckbox,\n IconButton as MuiIconButton,\n Tooltip as MuiTooltip,\n} from \"@mui/material\";\nimport { memo, useMemo, useState } from \"react\";\n\nimport { Card, CardProps } from \"../../Card.js\";\nimport { useTranslation } from \"../../i18n.generated/i18n.js\";\nimport { ChevronDownIcon, ChevronUpIcon } from \"../../icons.generated/index.js\";\nimport {\n DesignTokens,\n useOdysseyDesignTokens,\n} from \"../../OdysseyDesignTokensContext.js\";\nimport { useUniqueId } from \"../../useUniqueId.js\";\n\nexport type DataCardProps = {\n children?: CardProps[\"children\"];\n description?: CardProps[\"description\"];\n detailPanel?: CardProps[\"detailPanel\"];\n /**\n * If `true`, the card renders a selection checkbox.\n */\n hasSelection?: boolean;\n image?: CardProps[\"image\"];\n /**\n * If `true`, the card is in a selected state.\n */\n isSelected?: boolean;\n menuButtonChildren?: CardProps[\"menuButtonChildren\"];\n onSelectionChange?: () => void;\n overline?: CardProps[\"overline\"];\n title?: CardProps[\"title\"];\n variant?: CardProps[\"variant\"];\n};\n\nconst CheckboxContainer = styled(\"div\", {\n shouldForwardProp: (prop) => prop !== \"odysseyDesignTokens\",\n})<{\n odysseyDesignTokens: DesignTokens;\n}>(({ odysseyDesignTokens }) => ({\n marginBlockStart: `-${odysseyDesignTokens.Spacing1}`,\n}));\n\nconst AccessoryPlaceholder = styled(MuiIconButton)(() => ({\n visibility: \"hidden\" as const,\n}));\n\nconst DataCard = ({\n children,\n description,\n detailPanel,\n hasSelection,\n image,\n isSelected,\n onSelectionChange,\n overline,\n title,\n variant,\n menuButtonChildren,\n}: DataCardProps) => {\n const odysseyDesignTokens = useOdysseyDesignTokens();\n const { t } = useTranslation();\n const titleId = useUniqueId();\n\n const [isExpanded, setIsExpanded] = useState<boolean>(false);\n\n const SelectionCheckbox = useMemo(\n () => (\n <CheckboxContainer odysseyDesignTokens={odysseyDesignTokens}>\n <MuiCheckbox\n checked={isSelected}\n inputProps={{\n \"aria-labelledby\": titleId,\n }}\n onChange={onSelectionChange}\n />\n </CheckboxContainer>\n ),\n [isSelected, odysseyDesignTokens, onSelectionChange, titleId],\n );\n\n const ExpansionToggle = useMemo(() => {\n return detailPanel ? (\n <MuiTooltip\n title={\n isExpanded\n ? t(\"table.rowexpansion.collapse\")\n : t(\"table.rowexpansion.expand\")\n }\n >\n <MuiIconButton\n aria-label={\n isExpanded\n ? t(\"table.rowexpansion.collapse\")\n : t(\"table.rowexpansion.expand\")\n }\n children={isExpanded ? <ChevronUpIcon /> : <ChevronDownIcon />}\n onClick={() => setIsExpanded(!isExpanded)}\n />\n </MuiTooltip>\n ) : (\n <AccessoryPlaceholder disabled>\n <ChevronDownIcon />\n </AccessoryPlaceholder>\n );\n }, [isExpanded, detailPanel, t]);\n\n const Accessory = useMemo(() => {\n return (\n <>\n {hasSelection && SelectionCheckbox}\n {ExpansionToggle}\n </>\n );\n }, [ExpansionToggle, SelectionCheckbox, hasSelection]);\n\n return (\n <Card\n __role=\"listitem\"\n accessory={Accessory}\n children={children}\n description={description}\n detailPanel={isExpanded && detailPanel}\n image={image}\n menuButtonChildren={menuButtonChildren}\n overline={overline}\n title={title}\n titleId={titleId}\n variant={variant}\n />\n );\n};\n\nconst MemoizedDataCard = memo(DataCard);\nMemoizedDataCard.displayName = \"DataCard\";\n\nexport { MemoizedDataCard as DataCard };\n"],"mappings":";;;;;;;;;AAYA,IAAAA,OAAA,GAAAC,sBAAA,CAAAC,OAAA;AAMA,IAAAC,MAAA,GAAAD,OAAA;AAEA,IAAAE,KAAA,GAAAF,OAAA;AACA,IAAAG,KAAA,GAAAH,OAAA;AACA,IAAAI,MAAA,GAAAJ,OAAA;AACA,IAAAK,2BAAA,GAAAL,OAAA;AAIA,IAAAM,YAAA,GAAAN,OAAA;AAAmD,IAAAO,WAAA,GAAAP,OAAA;AAAA,SAAAD,uBAAAS,CAAA,WAAAA,CAAA,IAAAA,CAAA,CAAAC,UAAA,GAAAD,CAAA,KAAAE,OAAA,EAAAF,CAAA;AA3BnD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,GAAA,EAACzC,KAAA,CAAAuD,IAAI;IACHC,MAAM,EAAC,UAAU;IACjBC,SAAS,EAAEL,SAAU;IACrBhC,QAAQ,EAAEA,QAAS;IACnBC,WAAW,EAAEA,WAAY;IACzBC,WAAW,EAAEc,UAAU,IAAId,WAAY;IACvCE,KAAK,EAAEA,KAAM;IACbM,kBAAkB,EAAEA,kBAAmB;IACvCH,QAAQ,EAAEA,QAAS;IACnBC,KAAK,EAAEA,KAAM;IACbM,OAAO,EAAEA,OAAQ;IACjBL,OAAO,EAAEA;EAAQ,CAClB,CAAC;AAEN,CAAC;AAED,MAAM6B,gBAAgB,GAAAC,OAAA,CAAAxC,QAAA,GAAG,IAAAyC,WAAI,EAACzC,QAAQ,CAAC;AACvCuC,gBAAgB,CAACG,WAAW,0CAAa","ignoreList":[]}
@@ -101,5 +101,5 @@ const DataTable = ({
101
101
  });
102
102
  };
103
103
  const MemoizedDataTable = exports.DataTable = (0, _react.memo)(DataTable);
104
- MemoizedDataTable.displayName = "DataTable::pkg=odyssey&odysseyV=1.65.0";
104
+ MemoizedDataTable.displayName = "DataTable::pkg=odyssey&odysseyV=1.65.2";
105
105
  //# sourceMappingURL=DataTable.cjs.map
@@ -380,5 +380,5 @@ const DataView = ({
380
380
  });
381
381
  };
382
382
  const MemoizedDataView = exports.DataView = (0, _react.memo)(DataView);
383
- MemoizedDataView.displayName = "DataView::pkg=odyssey&odysseyV=1.65.0";
383
+ MemoizedDataView.displayName = "DataView::pkg=odyssey&odysseyV=1.65.2";
384
384
  //# sourceMappingURL=DataView.cjs.map
@@ -27,5 +27,5 @@ const DetailPanel = ({
27
27
  });
28
28
  };
29
29
  const MemoizedDetailPanel = exports.DetailPanel = (0, _react.memo)(DetailPanel);
30
- MemoizedDetailPanel.displayName = "DetailPanel::pkg=odyssey&odysseyV=1.65.0";
30
+ MemoizedDetailPanel.displayName = "DetailPanel::pkg=odyssey&odysseyV=1.65.2";
31
31
  //# sourceMappingURL=DetailPanel.cjs.map
@@ -54,5 +54,5 @@ const LayoutSwitcher = ({
54
54
  });
55
55
  };
56
56
  const MemoizedLayoutSwitcher = exports.LayoutSwitcher = (0, _react.memo)(LayoutSwitcher);
57
- MemoizedLayoutSwitcher.displayName = "LayoutSwitcher::pkg=odyssey&odysseyV=1.65.0";
57
+ MemoizedLayoutSwitcher.displayName = "LayoutSwitcher::pkg=odyssey&odysseyV=1.65.2";
58
58
  //# sourceMappingURL=LayoutSwitcher.cjs.map
@@ -86,5 +86,5 @@ var _jsxRuntime = require("react/jsx-runtime");
86
86
  });
87
87
  };
88
88
  const MemoizedRowActions = exports.RowActions = (0, _react.memo)(RowActions);
89
- MemoizedRowActions.displayName = "RowActions::pkg=odyssey&odysseyV=1.65.0";
89
+ MemoizedRowActions.displayName = "RowActions::pkg=odyssey&odysseyV=1.65.2";
90
90
  //# sourceMappingURL=RowActions.cjs.map
@@ -310,5 +310,5 @@ const TableLayoutContent = ({
310
310
  });
311
311
  };
312
312
  const MemoizedTableLayoutContent = exports.TableLayoutContent = (0, _react.memo)(TableLayoutContent);
313
- MemoizedTableLayoutContent.displayName = "TableLayoutContent::pkg=odyssey&odysseyV=1.65.0";
313
+ MemoizedTableLayoutContent.displayName = "TableLayoutContent::pkg=odyssey&odysseyV=1.65.2";
314
314
  //# sourceMappingURL=TableLayoutContent.cjs.map
@@ -86,5 +86,5 @@ const TableSettings = ({
86
86
  });
87
87
  };
88
88
  const MemoizedTableSettings = exports.TableSettings = (0, _react.memo)(TableSettings);
89
- MemoizedTableSettings.displayName = "TableSettings::pkg=odyssey&odysseyV=1.65.0";
89
+ MemoizedTableSettings.displayName = "TableSettings::pkg=odyssey&odysseyV=1.65.2";
90
90
  //# sourceMappingURL=TableSettings.cjs.map
@@ -169,5 +169,5 @@ const DateTimeField = ({
169
169
  });
170
170
  };
171
171
  const MemoizedDateTimeField = exports.DateTimeField = (0, _react.memo)(DateTimeField);
172
- MemoizedDateTimeField.displayName = "DateTimeField::pkg=odyssey&odysseyV=1.65.0";
172
+ MemoizedDateTimeField.displayName = "DateTimeField::pkg=odyssey&odysseyV=1.65.2";
173
173
  //# sourceMappingURL=DateTimeField.cjs.map
@@ -240,5 +240,5 @@ const DateTimePicker = ({
240
240
  });
241
241
  };
242
242
  const MemoizedDateTimePicker = exports.DateTimePicker = (0, _react.memo)(DateTimePicker);
243
- MemoizedDateTimePicker.displayName = "DateTimePicker::pkg=odyssey&odysseyV=1.65.0";
243
+ MemoizedDateTimePicker.displayName = "DateTimePicker::pkg=odyssey&odysseyV=1.65.2";
244
244
  //# sourceMappingURL=DateTimePicker.cjs.map
@@ -118,5 +118,5 @@ const ComposablePicker = ({
118
118
  });
119
119
  };
120
120
  const MemoizedComposablePicker = exports.ComposablePicker = (0, _react.memo)(ComposablePicker);
121
- MemoizedComposablePicker.displayName = "ComposablePicker::pkg=odyssey&odysseyV=1.65.0";
121
+ MemoizedComposablePicker.displayName = "ComposablePicker::pkg=odyssey&odysseyV=1.65.2";
122
122
  //# sourceMappingURL=ComposablePicker.cjs.map
@@ -267,5 +267,5 @@ const Picker = ({
267
267
  });
268
268
  };
269
269
  const MemoizedPicker = exports.Picker = (0, _react.memo)(Picker);
270
- MemoizedPicker.displayName = "Picker::pkg=odyssey&odysseyV=1.65.0";
270
+ MemoizedPicker.displayName = "Picker::pkg=odyssey&odysseyV=1.65.2";
271
271
  //# sourceMappingURL=Picker.cjs.map
@@ -131,5 +131,5 @@ const PickerVirtualizationListBox = (0, _react.forwardRef)((props = {}, ref) =>
131
131
  });
132
132
  });
133
133
  const MemoizedPickerVirtualizationListBox = exports.PickerVirtualizationListBox = (0, _react.memo)(PickerVirtualizationListBox);
134
- MemoizedPickerVirtualizationListBox.displayName = "PickerVirtualizationListBox::pkg=odyssey&odysseyV=1.65.0";
134
+ MemoizedPickerVirtualizationListBox.displayName = "PickerVirtualizationListBox::pkg=odyssey&odysseyV=1.65.2";
135
135
  //# sourceMappingURL=PickerVirtualizationListBox.cjs.map
@@ -298,5 +298,5 @@ const PickerWithOptionAdornment = ({
298
298
  });
299
299
  };
300
300
  const MemoizedPickerWithOptionAdornment = exports.PickerWithOptionAdornment = (0, _react.memo)(PickerWithOptionAdornment);
301
- MemoizedPickerWithOptionAdornment.displayName = "PickerWithOptionAdornment::pkg=odyssey&odysseyV=1.65.0";
301
+ MemoizedPickerWithOptionAdornment.displayName = "PickerWithOptionAdornment::pkg=odyssey&odysseyV=1.65.2";
302
302
  //# sourceMappingURL=PickerWithOptionAdornment.cjs.map
@@ -264,5 +264,5 @@ const SearchDropdown = ({
264
264
  });
265
265
  };
266
266
  const MemoizedSearchDropdown = exports.SearchDropdown = (0, _react.memo)(SearchDropdown);
267
- MemoizedSearchDropdown.displayName = "MemoizedSearchDropdown::pkg=odyssey&odysseyV=1.65.0";
267
+ MemoizedSearchDropdown.displayName = "MemoizedSearchDropdown::pkg=odyssey&odysseyV=1.65.2";
268
268
  //# sourceMappingURL=SearchDropdown.cjs.map
@@ -37,5 +37,5 @@ const DocumentationLink = ({
37
37
  });
38
38
  };
39
39
  const MemoizedDocumentationLink = exports.DocumentationLink = (0, _react.memo)(DocumentationLink);
40
- MemoizedDocumentationLink.displayName = "DocumentationLink::pkg=odyssey&odysseyV=1.65.0";
40
+ MemoizedDocumentationLink.displayName = "DocumentationLink::pkg=odyssey&odysseyV=1.65.2";
41
41
  //# sourceMappingURL=DocumentationLink.cjs.map
@@ -51,5 +51,5 @@ const Layout = ({
51
51
  });
52
52
  };
53
53
  const MemoizedLayout = exports.Layout = (0, _react.memo)(Layout);
54
- MemoizedLayout.displayName = "Layout::pkg=odyssey&odysseyV=1.65.0";
54
+ MemoizedLayout.displayName = "Layout::pkg=odyssey&odysseyV=1.65.2";
55
55
  //# sourceMappingURL=Layout.cjs.map
@@ -170,5 +170,5 @@ const PageTemplate = ({
170
170
  });
171
171
  };
172
172
  const MemoizedPageTemplate = exports.PageTemplate = (0, _react.memo)(PageTemplate);
173
- MemoizedPageTemplate.displayName = "PageTemplate::pkg=odyssey&odysseyV=1.65.0";
173
+ MemoizedPageTemplate.displayName = "PageTemplate::pkg=odyssey&odysseyV=1.65.2";
174
174
  //# sourceMappingURL=PageTemplate.cjs.map
@@ -172,5 +172,5 @@ const PaginatedTable = ({
172
172
  });
173
173
  };
174
174
  const MemoizedPaginatedTable = exports.PaginatedTable = (0, _react.memo)(PaginatedTable);
175
- MemoizedPaginatedTable.displayName = "PaginatedTable::pkg=odyssey&odysseyV=1.65.0";
175
+ MemoizedPaginatedTable.displayName = "PaginatedTable::pkg=odyssey&odysseyV=1.65.2";
176
176
  //# sourceMappingURL=PaginatedTable.cjs.map
@@ -87,5 +87,5 @@ const StaticTable = ({
87
87
  });
88
88
  };
89
89
  const MemoizedStaticTable = exports.StaticTable = (0, _react.memo)(StaticTable);
90
- MemoizedStaticTable.displayName = "StaticTable::pkg=odyssey&odysseyV=1.65.0";
90
+ MemoizedStaticTable.displayName = "StaticTable::pkg=odyssey&odysseyV=1.65.2";
91
91
  //# sourceMappingURL=StaticTable.cjs.map
@@ -75,5 +75,5 @@ const UserProfile = ({
75
75
  });
76
76
  };
77
77
  const MemoizedUserProfile = exports.UserProfile = (0, _react.memo)(UserProfile);
78
- MemoizedUserProfile.displayName = "UserProfile::pkg=odyssey&odysseyV=1.65.0";
78
+ MemoizedUserProfile.displayName = "UserProfile::pkg=odyssey&odysseyV=1.65.2";
79
79
  //# sourceMappingURL=UserProfile.cjs.map
@@ -61,5 +61,5 @@ const UserProfileMenuButton = ({
61
61
  });
62
62
  };
63
63
  const MemoizedUserProfileMenuButton = exports.UserProfileMenuButton = (0, _react.memo)(UserProfileMenuButton);
64
- MemoizedUserProfileMenuButton.displayName = "UserProfileMenuButton::pkg=odyssey&odysseyV=1.65.0";
64
+ MemoizedUserProfileMenuButton.displayName = "UserProfileMenuButton::pkg=odyssey&odysseyV=1.65.2";
65
65
  //# sourceMappingURL=UserProfileMenuButton.cjs.map
@@ -48,5 +48,5 @@ var _jsxRuntime = require("react/jsx-runtime");
48
48
  });
49
49
  });
50
50
  const MemoizedDuoIcon = exports.DuoIcon = (0, _react.memo)(DuoIcon);
51
- MemoizedDuoIcon.displayName = "DuoIcon::pkg=odyssey&odysseyV=1.65.0";
51
+ MemoizedDuoIcon.displayName = "DuoIcon::pkg=odyssey&odysseyV=1.65.2";
52
52
  //# sourceMappingURL=Duo.cjs.map
@@ -55,5 +55,5 @@ var _jsxRuntime = require("react/jsx-runtime");
55
55
  });
56
56
  });
57
57
  const MemoizedGoogleAuthIcon = exports.GoogleAuthIcon = (0, _react.memo)(GoogleAuthIcon);
58
- MemoizedGoogleAuthIcon.displayName = "GoogleAuthIcon::pkg=odyssey&odysseyV=1.65.0";
58
+ MemoizedGoogleAuthIcon.displayName = "GoogleAuthIcon::pkg=odyssey&odysseyV=1.65.2";
59
59
  //# sourceMappingURL=GoogleAuth.cjs.map
@@ -35,5 +35,5 @@ var _jsxRuntime = require("react/jsx-runtime");
35
35
  });
36
36
  });
37
37
  const MemoizedOktaVerifyIcon = exports.OktaVerifyIcon = (0, _react.memo)(OktaVerifyIcon);
38
- MemoizedOktaVerifyIcon.displayName = "OktaVerifyIcon::pkg=odyssey&odysseyV=1.65.0";
38
+ MemoizedOktaVerifyIcon.displayName = "OktaVerifyIcon::pkg=odyssey&odysseyV=1.65.2";
39
39
  //# sourceMappingURL=OktaVerify.cjs.map
@@ -35,5 +35,5 @@ var _jsxRuntime = require("react/jsx-runtime");
35
35
  });
36
36
  });
37
37
  const MemoizedPersonaIcon = exports.PersonaIcon = (0, _react.memo)(PersonaIcon);
38
- MemoizedPersonaIcon.displayName = "PersonaIcon::pkg=odyssey&odysseyV=1.65.0";
38
+ MemoizedPersonaIcon.displayName = "PersonaIcon::pkg=odyssey&odysseyV=1.65.2";
39
39
  //# sourceMappingURL=Persona.cjs.map
@@ -39,5 +39,5 @@ var _jsxRuntime = require("react/jsx-runtime");
39
39
  });
40
40
  });
41
41
  const MemoizedSymantecVipIcon = exports.SymantecVipIcon = (0, _react.memo)(SymantecVipIcon);
42
- MemoizedSymantecVipIcon.displayName = "SymantecVipIcon::pkg=odyssey&odysseyV=1.65.0";
42
+ MemoizedSymantecVipIcon.displayName = "SymantecVipIcon::pkg=odyssey&odysseyV=1.65.2";
43
43
  //# sourceMappingURL=SymantecVip.cjs.map
@@ -33,5 +33,5 @@ var _jsxRuntime = require("react/jsx-runtime");
33
33
  });
34
34
  });
35
35
  const MemoizedYubikeyIcon = exports.YubikeyIcon = (0, _react.memo)(YubikeyIcon);
36
- MemoizedYubikeyIcon.displayName = "YubikeyIcon::pkg=odyssey&odysseyV=1.65.0";
36
+ MemoizedYubikeyIcon.displayName = "YubikeyIcon::pkg=odyssey&odysseyV=1.65.2";
37
37
  //# sourceMappingURL=Yubikey.cjs.map
@@ -4,7 +4,6 @@ Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
6
  exports.renderWithOdysseyProvider = exports.noTransitionsTheme = void 0;
7
- var _styles = require("@mui/material/styles");
8
7
  var _vitestBrowserReact = require("vitest-browser-react");
9
8
  var _OdysseyProvider = require("../OdysseyProvider.cjs");
10
9
  var _jsxRuntime = require("react/jsx-runtime");
@@ -18,7 +17,7 @@ var _jsxRuntime = require("react/jsx-runtime");
18
17
  * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
19
18
  *
20
19
  * See the License for the specific language governing permissions and limitations under the License.
21
- */const noTransitionsTheme = exports.noTransitionsTheme = (0, _styles.createTheme)({
20
+ */const noTransitionsTheme = exports.noTransitionsTheme = {
22
21
  transitions: {
23
22
  create: () => "none",
24
23
  duration: {
@@ -31,7 +30,7 @@ var _jsxRuntime = require("react/jsx-runtime");
31
30
  leavingScreen: 0
32
31
  }
33
32
  }
34
- });
33
+ };
35
34
  const OdysseyWrapper = ({
36
35
  children
37
36
  }) => (0, _jsxRuntime.jsx)(_OdysseyProvider.OdysseyProvider, {
@@ -1 +1 @@
1
- {"version":3,"file":"renderWithOdysseyProvider.cjs","names":["_styles","require","_vitestBrowserReact","_OdysseyProvider","_jsxRuntime","noTransitionsTheme","exports","createTheme","transitions","create","duration","shortest","shorter","short","standard","complex","enteringScreen","leavingScreen","OdysseyWrapper","children","jsx","OdysseyProvider","themeOverride","renderWithOdysseyProvider","ui","options","render","wrapper"],"sources":["../../../src/test-utils/renderWithOdysseyProvider.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 { createTheme } from \"@mui/material/styles\";\nimport { type ReactElement, type ReactNode } from \"react\";\nimport {\n render,\n type RenderOptions,\n type RenderResult,\n} from \"vitest-browser-react\";\n\nimport { OdysseyProvider } from \"../OdysseyProvider.js\";\n\n// Kill transitions so axe never samples a mid-transition state.\n// `create` covers CSS transition strings; `duration` zeroes JS timeouts that\n// MUI transition components (Fade, Slide, Collapse) use to decide when to\n// unmount.\nexport const noTransitionsTheme = createTheme({\n transitions: {\n create: () => \"none\",\n duration: {\n shortest: 0,\n shorter: 0,\n short: 0,\n standard: 0,\n complex: 0,\n enteringScreen: 0,\n leavingScreen: 0,\n },\n },\n});\n\nconst OdysseyWrapper = ({ children }: { children: ReactNode }) => (\n <OdysseyProvider themeOverride={noTransitionsTheme}>\n {children}\n </OdysseyProvider>\n);\n\n/**\n * Custom render that wraps the component in OdysseyProvider with MUI\n * transitions disabled. Both CSS transition strings (`transitions.create`) and\n * JS transition durations (`transitions.duration`) are zeroed so locator\n * queries and DOM removal are synchronous in tests. Use this in browser tests\n * instead of importing OdysseyProvider directly.\n *\n * Returns all standard vitest-browser-react render utilities */\nexport const renderWithOdysseyProvider = async (\n ui: ReactElement,\n options?: Omit<RenderOptions, \"wrapper\">,\n): Promise<RenderResult> => {\n return render(ui, { wrapper: OdysseyWrapper, ...options });\n};\n"],"mappings":";;;;;;AAYA,IAAAA,OAAA,GAAAC,OAAA;AAEA,IAAAC,mBAAA,GAAAD,OAAA;AAMA,IAAAE,gBAAA,GAAAF,OAAA;AAAwD,IAAAG,WAAA,GAAAH,OAAA;AApBxD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,GAgBO,MAAMI,kBAAkB,GAAAC,OAAA,CAAAD,kBAAA,GAAG,IAAAE,mBAAW,EAAC;EAC5CC,WAAW,EAAE;IACXC,MAAM,EAAEA,CAAA,KAAM,MAAM;IACpBC,QAAQ,EAAE;MACRC,QAAQ,EAAE,CAAC;MACXC,OAAO,EAAE,CAAC;MACVC,KAAK,EAAE,CAAC;MACRC,QAAQ,EAAE,CAAC;MACXC,OAAO,EAAE,CAAC;MACVC,cAAc,EAAE,CAAC;MACjBC,aAAa,EAAE;IACjB;EACF;AACF,CAAC,CAAC;AAEF,MAAMC,cAAc,GAAGA,CAAC;EAAEC;AAAkC,CAAC,KAC3D,IAAAf,WAAA,CAAAgB,GAAA,EAACjB,gBAAA,CAAAkB,eAAe;EAACC,aAAa,EAAEjB,kBAAmB;EAAAc,QAAA,EAChDA;AAAQ,CACM,CAClB;AAUM,MAAMI,yBAAyB,GAAG,MAAAA,CACvCC,EAAgB,EAChBC,OAAwC,KACd;EAC1B,OAAO,IAAAC,0BAAM,EAACF,EAAE,EAAE;IAAEG,OAAO,EAAET,cAAc;IAAE,GAAGO;EAAQ,CAAC,CAAC;AAC5D,CAAC;AAACnB,OAAA,CAAAiB,yBAAA,GAAAA,yBAAA","ignoreList":[]}
1
+ {"version":3,"file":"renderWithOdysseyProvider.cjs","names":["_vitestBrowserReact","require","_OdysseyProvider","_jsxRuntime","noTransitionsTheme","exports","transitions","create","duration","shortest","shorter","short","standard","complex","enteringScreen","leavingScreen","OdysseyWrapper","children","jsx","OdysseyProvider","themeOverride","renderWithOdysseyProvider","ui","options","render","wrapper"],"sources":["../../../src/test-utils/renderWithOdysseyProvider.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 ThemeOptions } from \"@mui/material/styles\";\nimport { type ReactElement, type ReactNode } from \"react\";\nimport {\n render,\n type RenderOptions,\n type RenderResult,\n} from \"vitest-browser-react\";\n\nimport { OdysseyProvider } from \"../OdysseyProvider.js\";\n\n// Kill transitions so axe never samples a mid-transition state.\n// `create` covers CSS transition strings; `duration` zeroes JS timeouts that\n// MUI transition components (Fade, Slide, Collapse) use to decide when to\n// unmount.\n//\n// Passed as `themeOverride` (plain `ThemeOptions`), not a resolved `createTheme`\n// result: the provider deep-merges this into the Odyssey theme and re-runs\n// `createTheme` so the override composes correctly. A resolved theme here would\n// instead be merged as an already-built theme and clobber Odyssey's own values.\nexport const noTransitionsTheme = {\n transitions: {\n create: () => \"none\",\n duration: {\n shortest: 0,\n shorter: 0,\n short: 0,\n standard: 0,\n complex: 0,\n enteringScreen: 0,\n leavingScreen: 0,\n },\n },\n} satisfies ThemeOptions;\n\nconst OdysseyWrapper = ({ children }: { children: ReactNode }) => (\n <OdysseyProvider themeOverride={noTransitionsTheme}>\n {children}\n </OdysseyProvider>\n);\n\n/**\n * Custom render that wraps the component in OdysseyProvider with MUI\n * transitions disabled. Both CSS transition strings (`transitions.create`) and\n * JS transition durations (`transitions.duration`) are zeroed so locator\n * queries and DOM removal are synchronous in tests. Use this in browser tests\n * instead of importing OdysseyProvider directly.\n *\n * Returns all standard vitest-browser-react render utilities */\nexport const renderWithOdysseyProvider = async (\n ui: ReactElement,\n options?: Omit<RenderOptions, \"wrapper\">,\n): Promise<RenderResult> => {\n return render(ui, { wrapper: OdysseyWrapper, ...options });\n};\n"],"mappings":";;;;;;AAcA,IAAAA,mBAAA,GAAAC,OAAA;AAMA,IAAAC,gBAAA,GAAAD,OAAA;AAAwD,IAAAE,WAAA,GAAAF,OAAA;AApBxD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,GAqBO,MAAMG,kBAAkB,GAAAC,OAAA,CAAAD,kBAAA,GAAG;EAChCE,WAAW,EAAE;IACXC,MAAM,EAAEA,CAAA,KAAM,MAAM;IACpBC,QAAQ,EAAE;MACRC,QAAQ,EAAE,CAAC;MACXC,OAAO,EAAE,CAAC;MACVC,KAAK,EAAE,CAAC;MACRC,QAAQ,EAAE,CAAC;MACXC,OAAO,EAAE,CAAC;MACVC,cAAc,EAAE,CAAC;MACjBC,aAAa,EAAE;IACjB;EACF;AACF,CAAwB;AAExB,MAAMC,cAAc,GAAGA,CAAC;EAAEC;AAAkC,CAAC,KAC3D,IAAAd,WAAA,CAAAe,GAAA,EAAChB,gBAAA,CAAAiB,eAAe;EAACC,aAAa,EAAEhB,kBAAmB;EAAAa,QAAA,EAChDA;AAAQ,CACM,CAClB;AAUM,MAAMI,yBAAyB,GAAG,MAAAA,CACvCC,EAAgB,EAChBC,OAAwC,KACd;EAC1B,OAAO,IAAAC,0BAAM,EAACF,EAAE,EAAE;IAAEG,OAAO,EAAET,cAAc;IAAE,GAAGO;EAAQ,CAAC,CAAC;AAC5D,CAAC;AAAClB,OAAA,CAAAgB,yBAAA,GAAAA,yBAAA","ignoreList":[]}
@@ -0,0 +1,21 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.ROOMY_WIDTH = exports.ROOMY_HEIGHT = void 0;
7
+ var _useMediaQuery = require("../theme/useMediaQuery.cjs");
8
+ /*!
9
+ * Copyright (c) 2026-present, Okta, Inc. and/or its affiliates. All rights reserved.
10
+ * The Okta software accompanied by this notice is provided pursuant to the Apache License, Version 2.0 (the "License.")
11
+ *
12
+ * You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0.
13
+ * Unless required by applicable law or agreed to in writing, software
14
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
15
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16
+ *
17
+ * See the License for the specific language governing permissions and limitations under the License.
18
+ */const ROOMY_BUFFER = 100;
19
+ const ROOMY_WIDTH = exports.ROOMY_WIDTH = _useMediaQuery.COMPACT_MAX_WIDTH + ROOMY_BUFFER;
20
+ const ROOMY_HEIGHT = exports.ROOMY_HEIGHT = _useMediaQuery.COMPACT_MAX_HEIGHT + ROOMY_BUFFER;
21
+ //# sourceMappingURL=viewportTestSizes.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"viewportTestSizes.cjs","names":["_useMediaQuery","require","ROOMY_BUFFER","ROOMY_WIDTH","exports","COMPACT_MAX_WIDTH","ROOMY_HEIGHT","COMPACT_MAX_HEIGHT"],"sources":["../../../src/test-utils/viewportTestSizes.ts"],"sourcesContent":["/*!\n * Copyright (c) 2026-present, Okta, Inc. and/or its affiliates. All rights reserved.\n * The Okta software accompanied by this notice is provided pursuant to the Apache License, Version 2.0 (the \"License.\")\n *\n * You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0.\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS, WITHOUT\n * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n *\n * See the License for the specific language governing permissions and limitations under the License.\n */\n\nimport {\n COMPACT_MAX_HEIGHT,\n COMPACT_MAX_WIDTH,\n} from \"../theme/useMediaQuery.js\";\n\n// Compact triggers when either dimension is at or below its max, so a \"roomy\"\n// value clears the relevant max by this buffer. Deriving from the thresholds\n// (rather than a hardcoded size) keeps viewport tests correct if the compact\n// activation buffers ever change.\nconst ROOMY_BUFFER = 100;\n\n/** Width comfortably clear of the compact-width threshold. */\nexport const ROOMY_WIDTH = COMPACT_MAX_WIDTH + ROOMY_BUFFER;\n\n/** Height comfortably clear of the compact-height threshold. */\nexport const ROOMY_HEIGHT = COMPACT_MAX_HEIGHT + ROOMY_BUFFER;\n"],"mappings":";;;;;;AAYA,IAAAA,cAAA,GAAAC,OAAA;AAZA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,GAWA,MAAMC,YAAY,GAAG,GAAG;AAGjB,MAAMC,WAAW,GAAAC,OAAA,CAAAD,WAAA,GAAGE,gCAAiB,GAAGH,YAAY;AAGpD,MAAMI,YAAY,GAAAF,OAAA,CAAAE,YAAA,GAAGC,iCAAkB,GAAGL,YAAY","ignoreList":[]}
@@ -4,6 +4,7 @@ Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
6
  exports.dialogComponents = void 0;
7
+ var _useMediaQuery = require("../useMediaQuery.cjs");
7
8
  /*!
8
9
  * Copyright (c) 2026-present, Okta, Inc. and/or its affiliates. All rights reserved.
9
10
  * The Okta software accompanied by this notice is provided pursuant to the Apache License, Version 2.0 (the "License.")
@@ -29,9 +30,12 @@ const dialogComponents = ({
29
30
  styleOverrides: {
30
31
  paper: {
31
32
  maxWidth: `calc(${odysseyTokens.TypographyLineLengthMax} + (${odysseyTokens.Spacing6} * 2))`,
32
- borderRadius: odysseyTokens.BorderRadiusOuter,
33
33
  boxShadow: "none",
34
- filter: "drop-shadow(0px 1px 4px rgba(29, 29, 33, 0.08)) drop-shadow(0px 4px 10px rgba(29, 29, 33, 0.08)) drop-shadow(0px 8px 30px rgba(29, 29, 33, 0.1))"
34
+ filter: "drop-shadow(0px 1px 4px rgba(29, 29, 33, 0.08)) drop-shadow(0px 4px 10px rgba(29, 29, 33, 0.08)) drop-shadow(0px 8px 30px rgba(29, 29, 33, 0.1))",
35
+ borderRadius: odysseyTokens.BorderRadiusOuter,
36
+ [_useMediaQuery.COMPACT_MEDIA_QUERY]: {
37
+ borderRadius: 0
38
+ }
35
39
  }
36
40
  }
37
41
  },
@@ -1 +1 @@
1
- {"version":3,"file":"Dialog.cjs","names":["dialogComponents","odysseyTokens","shadowDomElement","shadowRootElement","MuiDialog","defaultProps","container","scroll","styleOverrides","paper","maxWidth","TypographyLineLengthMax","Spacing6","borderRadius","BorderRadiusOuter","boxShadow","filter","MuiDialogActions","root","flexWrap","gap","Spacing2","paddingBlockStart","Spacing5","paddingBlockEnd","paddingInline","MuiDialogContent","ownerState","paddingBlock","dividers","color","HueNeutral600","MuiDialogContentText","marginBlockEnd","HueNeutral700","MuiDialogTitle","component","variant","padding","minWidth","flex","exports"],"sources":["../../../../src/theme/components/Dialog.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 { ThemeOptions } from \"@mui/material\";\n\nimport type { GetComponentsProps } from \"./types.js\";\n\nexport const dialogComponents = ({\n odysseyTokens,\n shadowDomElement,\n shadowRootElement,\n}: GetComponentsProps): Pick<\n NonNullable<ThemeOptions[\"components\"]>,\n | \"MuiDialog\"\n | \"MuiDialogActions\"\n | \"MuiDialogContent\"\n | \"MuiDialogContentText\"\n | \"MuiDialogTitle\"\n> => ({\n MuiDialog: {\n defaultProps: {\n container: shadowRootElement || shadowDomElement,\n scroll: \"paper\",\n },\n styleOverrides: {\n paper: {\n maxWidth: `calc(${odysseyTokens.TypographyLineLengthMax} + (${odysseyTokens.Spacing6} * 2))`,\n borderRadius: odysseyTokens.BorderRadiusOuter,\n boxShadow: \"none\",\n filter:\n \"drop-shadow(0px 1px 4px rgba(29, 29, 33, 0.08)) drop-shadow(0px 4px 10px rgba(29, 29, 33, 0.08)) drop-shadow(0px 8px 30px rgba(29, 29, 33, 0.1))\",\n },\n },\n },\n MuiDialogActions: {\n styleOverrides: {\n root: {\n flexWrap: \"wrap\",\n gap: odysseyTokens.Spacing2,\n paddingBlockStart: odysseyTokens.Spacing5,\n paddingBlockEnd: odysseyTokens.Spacing5,\n paddingInline: odysseyTokens.Spacing6,\n },\n },\n },\n MuiDialogContent: {\n styleOverrides: {\n root: ({ ownerState }) => ({\n paddingBlock: 0,\n paddingInline: odysseyTokens.Spacing6,\n\n ...(ownerState.dividers === true && {\n paddingBlock: odysseyTokens.Spacing6,\n color: odysseyTokens.HueNeutral600,\n }),\n\n [\"&:last-child\"]: {\n paddingBlockEnd: odysseyTokens.Spacing6,\n },\n }),\n },\n },\n MuiDialogContentText: {\n styleOverrides: {\n root: {\n marginBlockEnd: odysseyTokens.Spacing5,\n color: odysseyTokens.HueNeutral700,\n\n \"&:last-child\": {\n marginBlockEnd: \"0\",\n },\n },\n },\n },\n MuiDialogTitle: {\n defaultProps: {\n component: \"h1\",\n variant: \"h5\",\n },\n styleOverrides: {\n root: {\n marginBlockEnd: 0,\n padding: 0,\n minWidth: 0,\n flex: \"1 1 auto\",\n },\n },\n },\n});\n"],"mappings":";;;;;;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAMO,MAAMA,gBAAgB,GAAGA,CAAC;EAC/BC,aAAa;EACbC,gBAAgB;EAChBC;AACkB,CAAC,MAOf;EACJC,SAAS,EAAE;IACTC,YAAY,EAAE;MACZC,SAAS,EAAEH,iBAAiB,IAAID,gBAAgB;MAChDK,MAAM,EAAE;IACV,CAAC;IACDC,cAAc,EAAE;MACdC,KAAK,EAAE;QACLC,QAAQ,EAAE,QAAQT,aAAa,CAACU,uBAAuB,OAAOV,aAAa,CAAC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CAAC,CAAC;AAACC,OAAA,CAAAzC,gBAAA,GAAAA,gBAAA","ignoreList":[]}
1
+ {"version":3,"file":"Dialog.cjs","names":["_useMediaQuery","require","dialogComponents","odysseyTokens","shadowDomElement","shadowRootElement","MuiDialog","defaultProps","container","scroll","styleOverrides","paper","maxWidth","TypographyLineLengthMax","Spacing6","boxShadow","filter","borderRadius","BorderRadiusOuter","COMPACT_MEDIA_QUERY","MuiDialogActions","root","flexWrap","gap","Spacing2","paddingBlockStart","Spacing5","paddingBlockEnd","paddingInline","MuiDialogContent","ownerState","paddingBlock","dividers","color","HueNeutral600","MuiDialogContentText","marginBlockEnd","HueNeutral700","MuiDialogTitle","component","variant","padding","minWidth","flex","exports"],"sources":["../../../../src/theme/components/Dialog.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 { ThemeOptions } from \"@mui/material\";\n\nimport type { GetComponentsProps } from \"./types.js\";\n\nimport { COMPACT_MEDIA_QUERY } from \"../useMediaQuery.js\";\n\nexport const dialogComponents = ({\n odysseyTokens,\n shadowDomElement,\n shadowRootElement,\n}: GetComponentsProps): Pick<\n NonNullable<ThemeOptions[\"components\"]>,\n | \"MuiDialog\"\n | \"MuiDialogActions\"\n | \"MuiDialogContent\"\n | \"MuiDialogContentText\"\n | \"MuiDialogTitle\"\n> => ({\n MuiDialog: {\n defaultProps: {\n container: shadowRootElement || shadowDomElement,\n scroll: \"paper\",\n },\n styleOverrides: {\n paper: {\n maxWidth: `calc(${odysseyTokens.TypographyLineLengthMax} + (${odysseyTokens.Spacing6} * 2))`,\n boxShadow: \"none\",\n filter:\n \"drop-shadow(0px 1px 4px rgba(29, 29, 33, 0.08)) drop-shadow(0px 4px 10px rgba(29, 29, 33, 0.08)) drop-shadow(0px 8px 30px rgba(29, 29, 33, 0.1))\",\n borderRadius: odysseyTokens.BorderRadiusOuter,\n // Full-screen at compact viewports has no rounded corners.\n [COMPACT_MEDIA_QUERY]: {\n borderRadius: 0,\n },\n },\n },\n },\n MuiDialogActions: {\n styleOverrides: {\n root: {\n flexWrap: \"wrap\",\n gap: odysseyTokens.Spacing2,\n paddingBlockStart: odysseyTokens.Spacing5,\n paddingBlockEnd: odysseyTokens.Spacing5,\n paddingInline: odysseyTokens.Spacing6,\n },\n },\n },\n MuiDialogContent: {\n styleOverrides: {\n root: ({ ownerState }) => ({\n paddingBlock: 0,\n paddingInline: odysseyTokens.Spacing6,\n\n ...(ownerState.dividers === true && {\n paddingBlock: odysseyTokens.Spacing6,\n color: odysseyTokens.HueNeutral600,\n }),\n\n [\"&:last-child\"]: {\n paddingBlockEnd: odysseyTokens.Spacing6,\n },\n }),\n },\n },\n MuiDialogContentText: {\n styleOverrides: {\n root: {\n marginBlockEnd: odysseyTokens.Spacing5,\n color: odysseyTokens.HueNeutral700,\n\n \"&:last-child\": {\n marginBlockEnd: \"0\",\n },\n },\n },\n },\n MuiDialogTitle: {\n defaultProps: {\n component: \"h1\",\n variant: \"h5\",\n },\n styleOverrides: {\n root: {\n marginBlockEnd: 0,\n padding: 0,\n minWidth: 0,\n flex: \"1 1 auto\",\n },\n },\n },\n});\n"],"mappings":";;;;;;AAgBA,IAAAA,cAAA,GAAAC,OAAA;AAhBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAQO,MAAMC,gBAAgB,GAAGA,CAAC;EAC/BC,aAAa;EACbC,gBAAgB;EAChBC;AACkB,CAAC,MAOf;EACJC,SAAS,EAAE;IACTC,YAAY,EAAE;MACZC,SAAS,EAAEH,iBAAiB,IAAID,g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,SAAS,EAAE,IAAI;MACfC,OAAO,EAAE;IACX,CAAC;IACD9B,cAAc,EAAE;MACdW,IAAI,EAAE;QACJe,cAAc,EAAE,CAAC;QACjBK,OAAO,EAAE,CAAC;QACVC,QAAQ,EAAE,CAAC;QACXC,IAAI,EAAE;MACR;IACF;EACF;AACF,CAAC,CAAC;AAACC,OAAA,CAAA1C,gBAAA,GAAAA,gBAAA","ignoreList":[]}
@@ -3,8 +3,9 @@
3
3
  Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
- exports.useMediaQuery = void 0;
6
+ exports.useMediaQuery = exports.useCompactViewportMatches = exports.COMPACT_MEDIA_QUERY = exports.COMPACT_MAX_WIDTH_CONDITION = exports.COMPACT_MAX_WIDTH = exports.COMPACT_MAX_HEIGHT_CONDITION = exports.COMPACT_MAX_HEIGHT = exports.ABSOLUTE_MINIMUM_WIDTH = exports.ABSOLUTE_MINIMUM_HEIGHT = void 0;
7
7
  var _react = require("react");
8
+ var _shim = require("use-sync-external-store/shim");
8
9
  /*!
9
10
  * Copyright (c) 2025-present, Okta, Inc. and/or its affiliates. All rights reserved.
10
11
  * The Okta software accompanied by this notice is provided pursuant to the Apache License, Version 2.0 (the "License.")
@@ -15,20 +16,41 @@ var _react = require("react");
15
16
  * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16
17
  *
17
18
  * See the License for the specific language governing permissions and limitations under the License.
18
- */
19
-
20
- const useMediaQuery = mediaQuery => {
21
- const mediaQueryList = (0, _react.useMemo)(() => window.matchMedia(mediaQuery), [mediaQuery]);
22
- const [hasMatches, setHasMatches] = (0, _react.useState)(() => mediaQueryList.matches);
23
- const updateHasMatches = (0, _react.useCallback)(event => setHasMatches(event.matches), []);
24
- (0, _react.useEffect)(() => {
25
- mediaQueryList.addEventListener("change", updateHasMatches);
26
- updateHasMatches(mediaQueryList);
19
+ */const useMediaQuery = mediaQuery => {
20
+ const normalizedMediaQuery = mediaQuery.replace(/^@media( ?)/m, "");
21
+ const supportsMatchMedia = typeof window !== "undefined" && typeof window.matchMedia !== "undefined";
22
+ const mediaQueryList = (0, _react.useMemo)(() => supportsMatchMedia ? window.matchMedia(normalizedMediaQuery) : null, [supportsMatchMedia, normalizedMediaQuery]);
23
+ const subscribe = (0, _react.useCallback)(notifyReactOfChange => {
24
+ if (!mediaQueryList) {
25
+ return () => {};
26
+ }
27
+ mediaQueryList.addEventListener("change", notifyReactOfChange);
27
28
  return () => {
28
- mediaQueryList.removeEventListener("change", updateHasMatches);
29
+ mediaQueryList.removeEventListener("change", notifyReactOfChange);
29
30
  };
30
- }, [mediaQueryList, updateHasMatches]);
31
- return hasMatches;
31
+ }, [mediaQueryList]);
32
+ const getSnapshot = (0, _react.useCallback)(() => mediaQueryList?.matches ?? false, [mediaQueryList]);
33
+ const getServerSnapshot = (0, _react.useCallback)(() => false, []);
34
+ return (0, _shim.useSyncExternalStore)(subscribe, getSnapshot, getServerSnapshot);
32
35
  };
33
36
  exports.useMediaQuery = useMediaQuery;
37
+ const ABSOLUTE_MINIMUM_WIDTH = exports.ABSOLUTE_MINIMUM_WIDTH = 320;
38
+ const ABSOLUTE_MINIMUM_HEIGHT = exports.ABSOLUTE_MINIMUM_HEIGHT = 256;
39
+ const COMPACT_WIDTH_ACTIVATION_BUFFER = 80;
40
+ const COMPACT_HEIGHT_ACTIVATION_BUFFER = 244;
41
+ const COMPACT_MAX_WIDTH = exports.COMPACT_MAX_WIDTH = ABSOLUTE_MINIMUM_WIDTH + COMPACT_WIDTH_ACTIVATION_BUFFER;
42
+ const COMPACT_MAX_HEIGHT = exports.COMPACT_MAX_HEIGHT = ABSOLUTE_MINIMUM_HEIGHT + COMPACT_HEIGHT_ACTIVATION_BUFFER;
43
+ const COMPACT_MAX_WIDTH_CONDITION = exports.COMPACT_MAX_WIDTH_CONDITION = `(max-width: ${COMPACT_MAX_WIDTH}px)`;
44
+ const COMPACT_MAX_HEIGHT_CONDITION = exports.COMPACT_MAX_HEIGHT_CONDITION = `(max-height: ${COMPACT_MAX_HEIGHT}px)`;
45
+ const COMPACT_MEDIA_QUERY = exports.COMPACT_MEDIA_QUERY = `@media ${COMPACT_MAX_WIDTH_CONDITION}, ${COMPACT_MAX_HEIGHT_CONDITION}`;
46
+ const useCompactViewportMatches = () => {
47
+ const isWithinCompactWidth = useMediaQuery(COMPACT_MAX_WIDTH_CONDITION);
48
+ const isWithinCompactHeight = useMediaQuery(COMPACT_MAX_HEIGHT_CONDITION);
49
+ return (0, _react.useMemo)(() => ({
50
+ isWithinCompactWidth,
51
+ isWithinCompactHeight,
52
+ isWithinCompactWidthOrHeight: isWithinCompactWidth || isWithinCompactHeight
53
+ }), [isWithinCompactWidth, isWithinCompactHeight]);
54
+ };
55
+ exports.useCompactViewportMatches = useCompactViewportMatches;
34
56
  //# sourceMappingURL=useMediaQuery.cjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"useMediaQuery.cjs","names":["_react","require","useMediaQuery","mediaQuery","mediaQueryList","useMemo","window","matchMedia","hasMatches","setHasMatches","useState","matches","updateHasMatches","useCallback","event","useEffect","addEventListener","removeEventListener","exports"],"sources":["../../../src/theme/useMediaQuery.ts"],"sourcesContent":["/*!\n * Copyright (c) 2025-present, Okta, Inc. and/or its affiliates. All rights reserved.\n * The Okta software accompanied by this notice is provided pursuant to the Apache License, Version 2.0 (the \"License.\")\n *\n * You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0.\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS, WITHOUT\n * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n *\n * See the License for the specific language governing permissions and limitations under the License.\n */\n\nimport { useCallback, useEffect, useMemo, useState } from \"react\";\n\nimport { StringWithValue } from \"../StringWithValue.js\";\n\nexport const useMediaQuery = <MediaQuery extends string>(\n mediaQuery: StringWithValue<MediaQuery>,\n) => {\n const mediaQueryList = useMemo(\n () => window.matchMedia(mediaQuery),\n [mediaQuery],\n );\n\n const [hasMatches, setHasMatches] = useState(() => mediaQueryList.matches);\n\n const updateHasMatches = useCallback(\n (event: MediaQueryListEvent | MediaQueryList) =>\n setHasMatches(event.matches),\n [],\n );\n\n useEffect(() => {\n mediaQueryList.addEventListener(\"change\", updateHasMatches);\n\n updateHasMatches(mediaQueryList);\n\n return () => {\n mediaQueryList.removeEventListener(\"change\", updateHasMatches);\n };\n }, [mediaQueryList, updateHasMatches]);\n\n return hasMatches;\n};\n"],"mappings":";;;;;;AAYA,IAAAA,MAAA,GAAAC,OAAA;AAZA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAMO,MAAMC,aAAa,GACxBC,UAAuC,IACpC;EACH,MAAMC,cAAc,GAAG,IAAAC,cAAO,EAC5B,MAAMC,MAAM,CAACC,UAAU,CAACJ,UAAU,CAAC,EACnC,CAACA,UAAU,CACb,CAAC;EAED,MAAM,CAACK,UAAU,EAAEC,aAAa,CAAC,GAAG,IAAAC,eAAQ,EAAC,MAAMN,cAAc,CAACO,OAAO,CAAC;EAE1E,MAAMC,gBAAgB,GAAG,IAAAC,kBAAW,EACjCC,KAA2C,IAC1CL,aAAa,CAACK,KAAK,CAACH,OAAO,CAAC,EAC9B,EACF,CAAC;EAED,IAAAI,gBAAS,EAAC,MAAM;IACdX,cAAc,CAACY,gBAAgB,CAAC,QAAQ,EAAEJ,gBAAgB,CAAC;IAE3DA,gBAAgB,CAACR,cAAc,CAAC;IAEhC,OAAO,MAAM;MACXA,cAAc,CAACa,mBAAmB,CAAC,QAAQ,EAAEL,gBAAgB,CAAC;IAChE,CAAC;EACH,CAAC,EAAE,CAACR,cAAc,EAAEQ,gBAAgB,CAAC,CAAC;EAEtC,OAAOJ,UAAU;AACnB,CAAC;AAACU,OAAA,CAAAhB,aAAA,GAAAA,aAAA","ignoreList":[]}
1
+ {"version":3,"file":"useMediaQuery.cjs","names":["_react","require","_shim","useMediaQuery","mediaQuery","normalizedMediaQuery","replace","supportsMatchMedia","window","matchMedia","mediaQueryList","useMemo","subscribe","useCallback","notifyReactOfChange","addEventListener","removeEventListener","getSnapshot","matches","getServerSnapshot","useSyncExternalStore","exports","ABSOLUTE_MINIMUM_WIDTH","ABSOLUTE_MINIMUM_HEIGHT","COMPACT_WIDTH_ACTIVATION_BUFFER","COMPACT_HEIGHT_ACTIVATION_BUFFER","COMPACT_MAX_WIDTH","COMPACT_MAX_HEIGHT","COMPACT_MAX_WIDTH_CONDITION","COMPACT_MAX_HEIGHT_CONDITION","COMPACT_MEDIA_QUERY","useCompactViewportMatches","isWithinCompactWidth","isWithinCompactHeight","isWithinCompactWidthOrHeight"],"sources":["../../../src/theme/useMediaQuery.ts"],"sourcesContent":["/*!\n * Copyright (c) 2025-present, Okta, Inc. and/or its affiliates. All rights reserved.\n * The Okta software accompanied by this notice is provided pursuant to the Apache License, Version 2.0 (the \"License.\")\n *\n * You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0.\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS, WITHOUT\n * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n *\n * See the License for the specific language governing permissions and limitations under the License.\n */\n\nimport { useCallback, useMemo } from \"react\";\n// React's `useSyncExternalStore` does not exist before React 18. Import it from\n// the official backport shim so the hook resolves on React 16.8+/17 consumers\n// too; the shim delegates to the native hook when running on React 18.\nimport { useSyncExternalStore } from \"use-sync-external-store/shim\";\n\nimport { StringWithValue } from \"../StringWithValue.js\";\n\n/**\n * Subscribes to a CSS media query and returns whether it currently matches,\n * re-rendering when the match state changes. Accepts the query with or without\n * a leading `@media` prefix. Uses `useSyncExternalStore` so the match is read\n * synchronously at render time (no tearing, no stale first frame), and\n * degrades to `false` in environments without `matchMedia` (server render,\n * jsdom).\n */\nexport const useMediaQuery = <MediaQuery extends string>(\n mediaQuery: StringWithValue<MediaQuery>,\n) => {\n // A leading `@media` prefix is valid CSS but is rejected by\n // `window.matchMedia`, so strip it to accept either form of the query.\n const normalizedMediaQuery = mediaQuery.replace(/^@media( ?)/m, \"\");\n\n // jsdom and server environments may not implement `matchMedia`. Guard so the\n // hook degrades to \"no match\" instead of throwing during render.\n const supportsMatchMedia =\n typeof window !== \"undefined\" && typeof window.matchMedia !== \"undefined\";\n\n const mediaQueryList = useMemo(\n () => (supportsMatchMedia ? window.matchMedia(normalizedMediaQuery) : null),\n [supportsMatchMedia, normalizedMediaQuery],\n );\n\n // `useSyncExternalStore` reads the match synchronously at render time, so\n // every component in a concurrent render sees a consistent value (no\n // tearing) and there is no stale first frame before an effect runs.\n const subscribe = useCallback(\n (notifyReactOfChange: () => void) => {\n if (!mediaQueryList) {\n return () => {};\n }\n\n mediaQueryList.addEventListener(\"change\", notifyReactOfChange);\n\n return () => {\n mediaQueryList.removeEventListener(\"change\", notifyReactOfChange);\n };\n },\n [mediaQueryList],\n );\n\n const getSnapshot = useCallback(\n () => mediaQueryList?.matches ?? false,\n [mediaQueryList],\n );\n\n // Server render (and any environment without `matchMedia`) resolves to \"no\n // match\", consistent with the guard above.\n const getServerSnapshot = useCallback(() => false, []);\n\n return useSyncExternalStore(subscribe, getSnapshot, getServerSnapshot);\n};\n\n/**\n * The absolute minimum viewport width, in CSS pixels, that the UI supports.\n * WCAG 1.4.10 (Reflow) requires content to remain usable down to 320px, so\n * this is the hard floor below which layout must not lose information or\n * functionality.\n */\nexport const ABSOLUTE_MINIMUM_WIDTH = 320;\n\n/**\n * The absolute minimum viewport height, in CSS pixels, that the UI supports:\n * the hard floor below which layout must not lose information or functionality.\n */\nexport const ABSOLUTE_MINIMUM_HEIGHT = 256;\n\n// Each axis starts adapting a set distance above its absolute-minimum floor so\n// the UI gets breathing room instead of snapping exactly at the floor. Width\n// uses a small buffer just above the reflow floor. Height uses a much larger\n// one: around 500px the app starts to feel cramped (still usable, but not\n// pleasant), so we adapt the layout there rather than waiting for the 256px\n// floor.\nconst COMPACT_WIDTH_ACTIVATION_BUFFER = 80;\nconst COMPACT_HEIGHT_ACTIVATION_BUFFER = 244;\n\n/**\n * The widest viewport, in CSS pixels, still treated as compact-width. At or\n * below this width the layout adapts toward the absolute-minimum floor.\n */\nexport const COMPACT_MAX_WIDTH =\n ABSOLUTE_MINIMUM_WIDTH + COMPACT_WIDTH_ACTIVATION_BUFFER;\n\n/**\n * The tallest viewport, in CSS pixels, still treated as compact-height. At or\n * below this height the layout adapts toward the absolute-minimum floor.\n */\nexport const COMPACT_MAX_HEIGHT =\n ABSOLUTE_MINIMUM_HEIGHT + COMPACT_HEIGHT_ACTIVATION_BUFFER;\n\n/**\n * The `matchMedia`/CSS condition that matches when the viewport is\n * compact-width. Single source of truth shared by the hook and style\n * overrides so the two cannot drift.\n */\nexport const COMPACT_MAX_WIDTH_CONDITION = `(max-width: ${COMPACT_MAX_WIDTH}px)`;\n\n/**\n * The `matchMedia`/CSS condition that matches when the viewport is\n * compact-height. Single source of truth shared by the hook and style\n * overrides so the two cannot drift.\n */\nexport const COMPACT_MAX_HEIGHT_CONDITION = `(max-height: ${COMPACT_MAX_HEIGHT}px)`;\n\n/**\n * The combined CSS media query for use in style overrides, where a React hook\n * cannot run. The comma matches when either dimension is compact.\n */\nexport const COMPACT_MEDIA_QUERY = `@media ${COMPACT_MAX_WIDTH_CONDITION}, ${COMPACT_MAX_HEIGHT_CONDITION}`;\n\n/**\n * Reports whether the viewport is within the compact range, i.e. approaching\n * the absolute minimum supported size along either axis (each axis activates at\n * its own buffer above the floor). Returns a match per dimension plus a combined\n * flag so callers can adapt layout (e.g. switch a Dialog to full-screen) as the\n * viewport approaches the WCAG 1.4.10 reflow floor rather than snapping exactly\n * at it.\n *\n * `isWithinCompactWidthOrHeight` is `true` when either dimension is compact,\n * matching the OR semantics of `COMPACT_MEDIA_QUERY`.\n */\nexport const useCompactViewportMatches = () => {\n const isWithinCompactWidth = useMediaQuery(COMPACT_MAX_WIDTH_CONDITION);\n const isWithinCompactHeight = useMediaQuery(COMPACT_MAX_HEIGHT_CONDITION);\n\n return useMemo(\n () => ({\n isWithinCompactWidth,\n isWithinCompactHeight,\n isWithinCompactWidthOrHeight:\n isWithinCompactWidth || isWithinCompactHeight,\n }),\n [isWithinCompactWidth, isWithinCompactHeight],\n );\n};\n"],"mappings":";;;;;;AAYA,IAAAA,MAAA,GAAAC,OAAA;AAIA,IAAAC,KAAA,GAAAD,OAAA;AAhBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,GAkBO,MAAME,aAAa,GACxBC,UAAuC,IACpC;EAGH,MAAMC,oBAAoB,GAAGD,UAAU,CAACE,OAAO,CAAC,cAAc,EAAE,EAAE,CAAC;EAInE,MAAMC,kBAAkB,GACtB,OAAOC,MAAM,KAAK,WAAW,IAAI,OAAOA,MAAM,CAACC,UAAU,KAAK,WAAW;EAE3E,MAAMC,cAAc,GAAG,IAAAC,cAAO,EAC5B,MAAOJ,kBAAkB,GAAGC,MAAM,CAACC,UAAU,CAACJ,oBAAoB,CAAC,GAAG,IAAK,EAC3E,CAACE,kBAAkB,EAAEF,oBAAoB,CAC3C,CAAC;EAKD,MAAMO,SAAS,GAAG,IAAAC,kBAAW,EAC1BC,mBAA+B,IAAK;IACnC,IAAI,CAACJ,cAAc,EAAE;MACnB,OAAO,MAAM,CAAC,CAAC;IACjB;IAEAA,cAAc,CAACK,gBAAgB,CAAC,QAAQ,EAAED,mBAAmB,CAAC;IAE9D,OAAO,MAAM;MACXJ,cAAc,CAACM,mBAAmB,CAAC,QAAQ,EAAEF,mBAAmB,CAAC;IACnE,CAAC;EACH,CAAC,EACD,CAACJ,cAAc,CACjB,CAAC;EAED,MAAMO,WAAW,GAAG,IAAAJ,kBAAW,EAC7B,MAAMH,cAAc,EAAEQ,OAAO,IAAI,KAAK,EACtC,CAACR,cAAc,CACjB,CAAC;EAID,MAAMS,iBAAiB,GAAG,IAAAN,kBAAW,EAAC,MAAM,KAAK,EAAE,EAAE,CAAC;EAEtD,OAAO,IAAAO,0BAAoB,EAACR,SAAS,EAAEK,WAAW,EAAEE,iBAAiB,C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