@okta/odyssey-react-mui 1.62.2 → 1.64.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 (750) hide show
  1. package/README.md +12 -0
  2. package/dist/cjs/Accordion.cjs +1 -1
  3. package/dist/cjs/Accordion.cjs.map +1 -1
  4. package/dist/cjs/Autocomplete.cjs +2 -4
  5. package/dist/cjs/Autocomplete.cjs.map +1 -1
  6. package/dist/cjs/Badge.cjs +1 -1
  7. package/dist/cjs/Badge.cjs.map +1 -1
  8. package/dist/cjs/Banner.cjs +1 -1
  9. package/dist/cjs/Banner.cjs.map +1 -1
  10. package/dist/cjs/Box.cjs +2 -4
  11. package/dist/cjs/Box.cjs.map +1 -1
  12. package/dist/cjs/Breadcrumbs.cjs +1 -1
  13. package/dist/cjs/Breadcrumbs.cjs.map +1 -1
  14. package/dist/cjs/Buttons/BaseButton.cjs +1 -1
  15. package/dist/cjs/Buttons/BaseButton.cjs.map +1 -1
  16. package/dist/cjs/Buttons/BaseMenuButton.cjs +1 -1
  17. package/dist/cjs/Buttons/BaseMenuButton.cjs.map +1 -1
  18. package/dist/cjs/Buttons/Button.cjs +2 -4
  19. package/dist/cjs/Buttons/Button.cjs.map +1 -1
  20. package/dist/cjs/Buttons/MenuButton.cjs +2 -4
  21. package/dist/cjs/Buttons/MenuButton.cjs.map +1 -1
  22. package/dist/cjs/Buttons/MenuItem.cjs +4 -4
  23. package/dist/cjs/Buttons/MenuItem.cjs.map +1 -1
  24. package/dist/cjs/Callout.cjs +1 -1
  25. package/dist/cjs/Callout.cjs.map +1 -1
  26. package/dist/cjs/Card.cjs +1 -1
  27. package/dist/cjs/Card.cjs.map +1 -1
  28. package/dist/cjs/CircularProgress.cjs +2 -4
  29. package/dist/cjs/CircularProgress.cjs.map +1 -1
  30. package/dist/cjs/ConditionalWrapper.cjs +1 -1
  31. package/dist/cjs/ConditionalWrapper.cjs.map +1 -1
  32. package/dist/cjs/CssBaseline.cjs +1 -3
  33. package/dist/cjs/CssBaseline.cjs.map +1 -1
  34. package/dist/cjs/DataTable/DataTable.cjs +1 -1
  35. package/dist/cjs/DataTable/DataTable.cjs.map +1 -1
  36. package/dist/cjs/DataTable/DataTableRowActions.cjs +1 -1
  37. package/dist/cjs/DataTable/DataTableSettings.cjs +1 -1
  38. package/dist/cjs/DatePickers/DateField.cjs +1 -1
  39. package/dist/cjs/DatePickers/DateFieldActionBar.cjs +1 -1
  40. package/dist/cjs/DatePickers/DateFieldLocalizationProvider.cjs +1 -1
  41. package/dist/cjs/DatePickers/DatePicker.cjs +1 -1
  42. package/dist/cjs/DatePickers/DatePicker.cjs.map +1 -1
  43. package/dist/cjs/DatePickers/TimeZonePicker.cjs +2 -4
  44. package/dist/cjs/DatePickers/TimeZonePicker.cjs.map +1 -1
  45. package/dist/cjs/DatePickers/datePickerTheme.cjs +30 -3
  46. package/dist/cjs/DatePickers/datePickerTheme.cjs.map +1 -1
  47. package/dist/cjs/Dialog.cjs +27 -8
  48. package/dist/cjs/Dialog.cjs.map +1 -1
  49. package/dist/cjs/Drawer.cjs +1 -1
  50. package/dist/cjs/Drawer.cjs.map +1 -1
  51. package/dist/cjs/EmptyState.cjs +1 -1
  52. package/dist/cjs/EmptyState.cjs.map +1 -1
  53. package/dist/cjs/ErrorMessageList.cjs +1 -1
  54. package/dist/cjs/Field.cjs +1 -1
  55. package/dist/cjs/Field.cjs.map +1 -1
  56. package/dist/cjs/FieldError.cjs +1 -1
  57. package/dist/cjs/FieldHint.cjs +1 -1
  58. package/dist/cjs/FieldLabel.cjs +1 -1
  59. package/dist/cjs/FieldLabel.cjs.map +1 -1
  60. package/dist/cjs/Fields/Checkbox.cjs +1 -1
  61. package/dist/cjs/Fields/Checkbox.cjs.map +1 -1
  62. package/dist/cjs/Fields/CheckboxGroup.cjs +2 -4
  63. package/dist/cjs/Fields/CheckboxGroup.cjs.map +1 -1
  64. package/dist/cjs/Fields/Radio.cjs +2 -4
  65. package/dist/cjs/Fields/Radio.cjs.map +1 -1
  66. package/dist/cjs/Fields/RadioGroup.cjs +2 -4
  67. package/dist/cjs/Fields/RadioGroup.cjs.map +1 -1
  68. package/dist/cjs/Fieldset.cjs +1 -1
  69. package/dist/cjs/Fieldset.cjs.map +1 -1
  70. package/dist/cjs/FieldsetContext.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 +13 -11
  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/FullScreenOverlay.cjs +1 -1
  78. package/dist/cjs/FullScreenOverlayContext.cjs +1 -1
  79. package/dist/cjs/HintLink.cjs +2 -4
  80. package/dist/cjs/HintLink.cjs.map +1 -1
  81. package/dist/cjs/HtmlProps.cjs.map +1 -1
  82. package/dist/cjs/IconWithTooltip.cjs +1 -1
  83. package/dist/cjs/IconWithTooltip.cjs.map +1 -1
  84. package/dist/cjs/Link.cjs +3 -1
  85. package/dist/cjs/Link.cjs.map +1 -1
  86. package/dist/cjs/MuiPropsChild.cjs +1 -1
  87. package/dist/cjs/NativeSelect.cjs +2 -4
  88. package/dist/cjs/NativeSelect.cjs.map +1 -1
  89. package/dist/cjs/OdysseyCacheProvider.cjs +2 -4
  90. package/dist/cjs/OdysseyCacheProvider.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 +2 -4
  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 +14 -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 +8 -6
  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 +4 -2
  117. package/dist/cjs/Tag.cjs.map +1 -1
  118. package/dist/cjs/TagList.cjs +2 -4
  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 +2 -4
  125. package/dist/cjs/ToastStack.cjs.map +1 -1
  126. package/dist/cjs/Tooltip.cjs +2 -4
  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/createOdysseyStyledComponent.cjs +39 -0
  131. package/dist/cjs/createOdysseyStyledComponent.cjs.map +1 -0
  132. package/dist/cjs/icons.generated/Add.cjs +1 -1
  133. package/dist/cjs/icons.generated/AddCircle.cjs +1 -1
  134. package/dist/cjs/icons.generated/Apps.cjs +1 -1
  135. package/dist/cjs/icons.generated/AppsSelected.cjs +1 -1
  136. package/dist/cjs/icons.generated/ArrowBottom.cjs +1 -1
  137. package/dist/cjs/icons.generated/ArrowDown.cjs +1 -1
  138. package/dist/cjs/icons.generated/ArrowLeft.cjs +1 -1
  139. package/dist/cjs/icons.generated/ArrowLowerLeft.cjs +1 -1
  140. package/dist/cjs/icons.generated/ArrowLowerRight.cjs +1 -1
  141. package/dist/cjs/icons.generated/ArrowRight.cjs +1 -1
  142. package/dist/cjs/icons.generated/ArrowTop.cjs +1 -1
  143. package/dist/cjs/icons.generated/ArrowUnsorted.cjs +1 -1
  144. package/dist/cjs/icons.generated/ArrowUp.cjs +1 -1
  145. package/dist/cjs/icons.generated/ArrowUpperLeft.cjs +1 -1
  146. package/dist/cjs/icons.generated/ArrowUpperRight.cjs +1 -1
  147. package/dist/cjs/icons.generated/Bug.cjs +1 -1
  148. package/dist/cjs/icons.generated/Calendar.cjs +1 -1
  149. package/dist/cjs/icons.generated/Call.cjs +1 -1
  150. package/dist/cjs/icons.generated/Chat.cjs +1 -1
  151. package/dist/cjs/icons.generated/Check.cjs +1 -1
  152. package/dist/cjs/icons.generated/CheckCircleFilled.cjs +1 -1
  153. package/dist/cjs/icons.generated/ChevronDown.cjs +1 -1
  154. package/dist/cjs/icons.generated/ChevronLeft.cjs +1 -1
  155. package/dist/cjs/icons.generated/ChevronRight.cjs +1 -1
  156. package/dist/cjs/icons.generated/ChevronUp.cjs +1 -1
  157. package/dist/cjs/icons.generated/Clock.cjs +1 -1
  158. package/dist/cjs/icons.generated/Close.cjs +1 -1
  159. package/dist/cjs/icons.generated/CloseCircleFilled.cjs +1 -1
  160. package/dist/cjs/icons.generated/CollapseLeft.cjs +1 -1
  161. package/dist/cjs/icons.generated/CollapseRight.cjs +1 -1
  162. package/dist/cjs/icons.generated/Copy.cjs +1 -1
  163. package/dist/cjs/icons.generated/Customizations.cjs +1 -1
  164. package/dist/cjs/icons.generated/CustomizationsSelected.cjs +1 -1
  165. package/dist/cjs/icons.generated/DangerDiamond.cjs +1 -1
  166. package/dist/cjs/icons.generated/DangerDiamondFilled.cjs +1 -1
  167. package/dist/cjs/icons.generated/Delete.cjs +1 -1
  168. package/dist/cjs/icons.generated/Deny.cjs +1 -1
  169. package/dist/cjs/icons.generated/Devices.cjs +1 -1
  170. package/dist/cjs/icons.generated/Directory.cjs +1 -1
  171. package/dist/cjs/icons.generated/DirectorySelected.cjs +1 -1
  172. package/dist/cjs/icons.generated/Documentation.cjs +1 -1
  173. package/dist/cjs/icons.generated/Download.cjs +1 -1
  174. package/dist/cjs/icons.generated/DragIndicator.cjs +1 -1
  175. package/dist/cjs/icons.generated/Edit.cjs +1 -1
  176. package/dist/cjs/icons.generated/ExpandLeft.cjs +1 -1
  177. package/dist/cjs/icons.generated/ExpandRight.cjs +1 -1
  178. package/dist/cjs/icons.generated/ExternalLink.cjs +1 -1
  179. package/dist/cjs/icons.generated/Filter.cjs +1 -1
  180. package/dist/cjs/icons.generated/Folder.cjs +1 -1
  181. package/dist/cjs/icons.generated/Globe.cjs +1 -1
  182. package/dist/cjs/icons.generated/Grid.cjs +1 -1
  183. package/dist/cjs/icons.generated/Group.cjs +1 -1
  184. package/dist/cjs/icons.generated/Happy.cjs +1 -1
  185. package/dist/cjs/icons.generated/Hide.cjs +1 -1
  186. package/dist/cjs/icons.generated/Home.cjs +1 -1
  187. package/dist/cjs/icons.generated/HomeSelected.cjs +1 -1
  188. package/dist/cjs/icons.generated/IdentityGovernance.cjs +1 -1
  189. package/dist/cjs/icons.generated/IdentityGovernanceSelected.cjs +1 -1
  190. package/dist/cjs/icons.generated/InformationCircle.cjs +1 -1
  191. package/dist/cjs/icons.generated/InformationCircleFilled.cjs +1 -1
  192. package/dist/cjs/icons.generated/Link.cjs +1 -1
  193. package/dist/cjs/icons.generated/List.cjs +1 -1
  194. package/dist/cjs/icons.generated/Lock.cjs +1 -1
  195. package/dist/cjs/icons.generated/Menu.cjs +1 -1
  196. package/dist/cjs/icons.generated/More.cjs +1 -1
  197. package/dist/cjs/icons.generated/Neutral.cjs +1 -1
  198. package/dist/cjs/icons.generated/Notification.cjs +1 -1
  199. package/dist/cjs/icons.generated/Pause.cjs +1 -1
  200. package/dist/cjs/icons.generated/QuestionCircle.cjs +1 -1
  201. package/dist/cjs/icons.generated/QuestionCircleFilled.cjs +1 -1
  202. package/dist/cjs/icons.generated/Refresh.cjs +1 -1
  203. package/dist/cjs/icons.generated/Reports.cjs +1 -1
  204. package/dist/cjs/icons.generated/ReportsSelected.cjs +1 -1
  205. package/dist/cjs/icons.generated/Reset.cjs +1 -1
  206. package/dist/cjs/icons.generated/Resume.cjs +1 -1
  207. package/dist/cjs/icons.generated/Sad.cjs +1 -1
  208. package/dist/cjs/icons.generated/Same.cjs +1 -1
  209. package/dist/cjs/icons.generated/Search.cjs +1 -1
  210. package/dist/cjs/icons.generated/Security.cjs +1 -1
  211. package/dist/cjs/icons.generated/SecuritySelected.cjs +1 -1
  212. package/dist/cjs/icons.generated/Send.cjs +1 -1
  213. package/dist/cjs/icons.generated/Server.cjs +1 -1
  214. package/dist/cjs/icons.generated/Settings.cjs +1 -1
  215. package/dist/cjs/icons.generated/SettingsSelected.cjs +1 -1
  216. package/dist/cjs/icons.generated/Show.cjs +1 -1
  217. package/dist/cjs/icons.generated/Sparkle.cjs +1 -1
  218. package/dist/cjs/icons.generated/Subtract.cjs +1 -1
  219. package/dist/cjs/icons.generated/Sync.cjs +1 -1
  220. package/dist/cjs/icons.generated/ThumbsDown.cjs +1 -1
  221. package/dist/cjs/icons.generated/ThumbsUp.cjs +1 -1
  222. package/dist/cjs/icons.generated/Unlock.cjs +1 -1
  223. package/dist/cjs/icons.generated/Upload.cjs +1 -1
  224. package/dist/cjs/icons.generated/User.cjs +1 -1
  225. package/dist/cjs/icons.generated/Video.cjs +1 -1
  226. package/dist/cjs/icons.generated/Warning.cjs +1 -1
  227. package/dist/cjs/icons.generated/WarningFilled.cjs +1 -1
  228. package/dist/cjs/icons.generated/Workflows.cjs +1 -1
  229. package/dist/cjs/icons.generated/WorkflowsSelected.cjs +1 -1
  230. package/dist/cjs/icons.generated/lazyIconDictionary.cjs +315 -0
  231. package/dist/cjs/icons.generated/lazyIconDictionary.cjs.map +1 -0
  232. package/dist/cjs/icons.generated/names.cjs +18 -0
  233. package/dist/cjs/icons.generated/names.cjs.map +1 -0
  234. package/dist/cjs/index.cjs +7 -0
  235. package/dist/cjs/index.cjs.map +1 -1
  236. package/dist/cjs/labs/AppTile.cjs +1 -1
  237. package/dist/cjs/labs/AppTile.cjs.map +1 -1
  238. package/dist/cjs/labs/DataFilters.cjs +4 -3
  239. package/dist/cjs/labs/DataFilters.cjs.map +1 -1
  240. package/dist/cjs/labs/DataTable.cjs +1 -1
  241. package/dist/cjs/labs/DataTable.cjs.map +1 -1
  242. package/dist/cjs/labs/DataTablePagination.cjs +1 -1
  243. package/dist/cjs/labs/DataTablePagination.cjs.map +1 -1
  244. package/dist/cjs/labs/DataView/BulkActionsMenu.cjs +1 -1
  245. package/dist/cjs/labs/DataView/CardLayoutContent.cjs +2 -2
  246. package/dist/cjs/labs/DataView/DataCard.cjs +1 -1
  247. package/dist/cjs/labs/DataView/DataCard.cjs.map +1 -1
  248. package/dist/cjs/labs/DataView/DataTable.cjs +1 -1
  249. package/dist/cjs/labs/DataView/DataView.cjs +1 -1
  250. package/dist/cjs/labs/DataView/DetailPanel.cjs +1 -1
  251. package/dist/cjs/labs/DataView/LayoutSwitcher.cjs +1 -1
  252. package/dist/cjs/labs/DataView/RowActions.cjs +1 -1
  253. package/dist/cjs/labs/DataView/TableLayoutContent.cjs +1 -1
  254. package/dist/cjs/labs/DataView/TableSettings.cjs +1 -1
  255. package/dist/cjs/labs/DatePickers/DateTimeField.cjs +1 -1
  256. package/dist/cjs/labs/DatePickers/DateTimePicker.cjs +1 -1
  257. package/dist/cjs/labs/OdysseyPickers/ComposablePicker.cjs +1 -1
  258. package/dist/cjs/labs/OdysseyPickers/Picker.cjs +1 -1
  259. package/dist/cjs/labs/OdysseyPickers/PickerVirtualizationListBox.cjs +1 -1
  260. package/dist/cjs/labs/OdysseyPickers/PickerWithOptionAdornment.cjs +1 -1
  261. package/dist/cjs/labs/OdysseyPickers/SearchDropdown.cjs +1 -1
  262. package/dist/cjs/labs/PageTemplate/DocumentationLink.cjs +1 -1
  263. package/dist/cjs/labs/PageTemplate/Layout.cjs +1 -1
  264. package/dist/cjs/labs/PageTemplate/PageTemplate.cjs +1 -1
  265. package/dist/cjs/labs/PaginatedTable.cjs +1 -1
  266. package/dist/cjs/labs/StaticTable.cjs +1 -1
  267. package/dist/cjs/labs/UserProfile.cjs +1 -1
  268. package/dist/cjs/labs/UserProfileMenuButton.cjs +1 -1
  269. package/dist/cjs/logos.generated/Duo.cjs +1 -1
  270. package/dist/cjs/logos.generated/GoogleAuth.cjs +1 -1
  271. package/dist/cjs/logos.generated/OktaVerify.cjs +1 -1
  272. package/dist/cjs/logos.generated/Persona.cjs +1 -1
  273. package/dist/cjs/logos.generated/SymantecVip.cjs +1 -1
  274. package/dist/cjs/logos.generated/Yubikey.cjs +1 -1
  275. package/dist/cjs/theme/components/Dialog.cjs +2 -11
  276. package/dist/cjs/theme/components/Dialog.cjs.map +1 -1
  277. package/dist/cjs/theme/components/Menu.cjs +0 -1
  278. package/dist/cjs/theme/components/Menu.cjs.map +1 -1
  279. package/dist/cjs/ui-shell/AppSwitcher/AppSwitcher.cjs +1 -1
  280. package/dist/cjs/ui-shell/InnerAppContainer.cjs +1 -1
  281. package/dist/cjs/ui-shell/NarrowUiShellContent.cjs +1 -1
  282. package/dist/cjs/ui-shell/SideNav/NavAccordion.cjs +1 -1
  283. package/dist/cjs/ui-shell/SideNav/NavAccordion.cjs.map +1 -1
  284. package/dist/cjs/ui-shell/SideNav/SideNav.cjs +1 -1
  285. package/dist/cjs/ui-shell/SideNav/SideNavFooterContent.cjs +1 -1
  286. package/dist/cjs/ui-shell/SideNav/SideNavHeader.cjs +1 -1
  287. package/dist/cjs/ui-shell/SideNav/SideNavHeader.cjs.map +1 -1
  288. package/dist/cjs/ui-shell/SideNav/SideNavItemContent.cjs +5 -1
  289. package/dist/cjs/ui-shell/SideNav/SideNavItemContent.cjs.map +1 -1
  290. package/dist/cjs/ui-shell/SideNav/SideNavItemLinkContent.cjs +1 -1
  291. package/dist/cjs/ui-shell/SideNav/SideNavSortableList.cjs +1 -1
  292. package/dist/cjs/ui-shell/SideNav/SideNavToggleButton.cjs +2 -2
  293. package/dist/cjs/ui-shell/SideNav/types.cjs.map +1 -1
  294. package/dist/cjs/ui-shell/SkipToContent.cjs +1 -1
  295. package/dist/cjs/ui-shell/TopNav/HamburgerMenuIcon.cjs +1 -1
  296. package/dist/cjs/ui-shell/TopNav/TopNav.cjs +1 -1
  297. package/dist/cjs/ui-shell/TopNav/TopNav.cjs.map +1 -1
  298. package/dist/cjs/ui-shell/TopNav/TopNavLinksList.cjs +1 -1
  299. package/dist/cjs/ui-shell/TopNav/TopNavListItem.cjs +1 -1
  300. package/dist/cjs/ui-shell/TopNav/TopNavListItem.cjs.map +1 -1
  301. package/dist/cjs/ui-shell/UiShell.cjs +1 -1
  302. package/dist/cjs/ui-shell/UiShellLogo.cjs +1 -1
  303. package/dist/cjs/ui-shell/WideUiShellContent.cjs +1 -1
  304. package/dist/cjs/useThemeCache.cjs.map +1 -1
  305. package/dist/cjs/web-component/odysseyWebComponentVersion.generated.cjs +1 -1
  306. package/dist/cjs/web-component/odysseyWebComponentVersion.generated.cjs.map +1 -1
  307. package/dist/esm/Accordion.js +1 -1
  308. package/dist/esm/Accordion.js.map +1 -1
  309. package/dist/esm/Autocomplete.js +1 -1
  310. package/dist/esm/Autocomplete.js.map +1 -1
  311. package/dist/esm/Badge.js +1 -1
  312. package/dist/esm/Badge.js.map +1 -1
  313. package/dist/esm/Banner.js +1 -1
  314. package/dist/esm/Banner.js.map +1 -1
  315. package/dist/esm/Box.js +1 -1
  316. package/dist/esm/Box.js.map +1 -1
  317. package/dist/esm/Breadcrumbs.js +1 -1
  318. package/dist/esm/Breadcrumbs.js.map +1 -1
  319. package/dist/esm/Buttons/BaseButton.js +1 -1
  320. package/dist/esm/Buttons/BaseButton.js.map +1 -1
  321. package/dist/esm/Buttons/BaseMenuButton.js +1 -1
  322. package/dist/esm/Buttons/BaseMenuButton.js.map +1 -1
  323. package/dist/esm/Buttons/Button.js +1 -1
  324. package/dist/esm/Buttons/Button.js.map +1 -1
  325. package/dist/esm/Buttons/MenuButton.js +1 -1
  326. package/dist/esm/Buttons/MenuButton.js.map +1 -1
  327. package/dist/esm/Buttons/MenuItem.js +3 -1
  328. package/dist/esm/Buttons/MenuItem.js.map +1 -1
  329. package/dist/esm/Callout.js +1 -1
  330. package/dist/esm/Callout.js.map +1 -1
  331. package/dist/esm/Card.js +1 -1
  332. package/dist/esm/Card.js.map +1 -1
  333. package/dist/esm/CircularProgress.js +1 -1
  334. package/dist/esm/CircularProgress.js.map +1 -1
  335. package/dist/esm/ConditionalWrapper.js +1 -1
  336. package/dist/esm/ConditionalWrapper.js.map +1 -1
  337. package/dist/esm/CssBaseline.js.map +1 -1
  338. package/dist/esm/DataTable/DataTable.js +1 -1
  339. package/dist/esm/DataTable/DataTable.js.map +1 -1
  340. package/dist/esm/DataTable/DataTableRowActions.js +1 -1
  341. package/dist/esm/DataTable/DataTableSettings.js +1 -1
  342. package/dist/esm/DatePickers/DateField.js +1 -1
  343. package/dist/esm/DatePickers/DateFieldActionBar.js +1 -1
  344. package/dist/esm/DatePickers/DateFieldLocalizationProvider.js +1 -1
  345. package/dist/esm/DatePickers/DatePicker.js +1 -1
  346. package/dist/esm/DatePickers/DatePicker.js.map +1 -1
  347. package/dist/esm/DatePickers/TimeZonePicker.js +1 -1
  348. package/dist/esm/DatePickers/TimeZonePicker.js.map +1 -1
  349. package/dist/esm/DatePickers/datePickerTheme.js +30 -3
  350. package/dist/esm/DatePickers/datePickerTheme.js.map +1 -1
  351. package/dist/esm/Dialog.js +25 -6
  352. package/dist/esm/Dialog.js.map +1 -1
  353. package/dist/esm/Drawer.js +1 -1
  354. package/dist/esm/Drawer.js.map +1 -1
  355. package/dist/esm/EmptyState.js +1 -1
  356. package/dist/esm/EmptyState.js.map +1 -1
  357. package/dist/esm/ErrorMessageList.js +1 -1
  358. package/dist/esm/Field.js +1 -1
  359. package/dist/esm/Field.js.map +1 -1
  360. package/dist/esm/FieldError.js +1 -1
  361. package/dist/esm/FieldHint.js +1 -1
  362. package/dist/esm/FieldLabel.js +1 -1
  363. package/dist/esm/FieldLabel.js.map +1 -1
  364. package/dist/esm/Fields/Checkbox.js +1 -1
  365. package/dist/esm/Fields/Checkbox.js.map +1 -1
  366. package/dist/esm/Fields/CheckboxGroup.js +1 -1
  367. package/dist/esm/Fields/CheckboxGroup.js.map +1 -1
  368. package/dist/esm/Fields/Radio.js +1 -1
  369. package/dist/esm/Fields/Radio.js.map +1 -1
  370. package/dist/esm/Fields/RadioGroup.js +1 -1
  371. package/dist/esm/Fields/RadioGroup.js.map +1 -1
  372. package/dist/esm/Fieldset.js +1 -1
  373. package/dist/esm/Fieldset.js.map +1 -1
  374. package/dist/esm/FieldsetContext.js.map +1 -1
  375. package/dist/esm/FileUploader/FileUploadIllustration.js +1 -1
  376. package/dist/esm/FileUploader/FileUploadPreview.js +1 -1
  377. package/dist/esm/FileUploader/FileUploader.js +14 -12
  378. package/dist/esm/FileUploader/FileUploader.js.map +1 -1
  379. package/dist/esm/Form.js +1 -1
  380. package/dist/esm/Form.js.map +1 -1
  381. package/dist/esm/FullScreenOverlay.js +1 -1
  382. package/dist/esm/FullScreenOverlayContext.js +1 -1
  383. package/dist/esm/HintLink.js +1 -1
  384. package/dist/esm/HintLink.js.map +1 -1
  385. package/dist/esm/HtmlProps.js.map +1 -1
  386. package/dist/esm/IconWithTooltip.js +1 -1
  387. package/dist/esm/IconWithTooltip.js.map +1 -1
  388. package/dist/esm/Link.js +3 -1
  389. package/dist/esm/Link.js.map +1 -1
  390. package/dist/esm/MuiPropsChild.js +1 -1
  391. package/dist/esm/NativeSelect.js +1 -1
  392. package/dist/esm/NativeSelect.js.map +1 -1
  393. package/dist/esm/OdysseyCacheProvider.js +1 -1
  394. package/dist/esm/OdysseyCacheProvider.js.map +1 -1
  395. package/dist/esm/OdysseyProvider.js +1 -1
  396. package/dist/esm/OdysseyProvider.js.map +1 -1
  397. package/dist/esm/OdysseyThemeProvider.js +1 -1
  398. package/dist/esm/OdysseyThemeProvider.js.map +1 -1
  399. package/dist/esm/OdysseyThemeProviderPropsContext.js +1 -1
  400. package/dist/esm/Pagination/Pagination.js +1 -1
  401. package/dist/esm/Pagination/Pagination.js.map +1 -1
  402. package/dist/esm/PasswordField.js +1 -1
  403. package/dist/esm/PasswordField.js.map +1 -1
  404. package/dist/esm/ScreenReaderText.js +1 -1
  405. package/dist/esm/ScreenReaderText.js.map +1 -1
  406. package/dist/esm/SearchField.js +1 -1
  407. package/dist/esm/SearchField.js.map +1 -1
  408. package/dist/esm/Select.js +14 -1
  409. package/dist/esm/Select.js.map +1 -1
  410. package/dist/esm/Stack.js +1 -1
  411. package/dist/esm/Stack.js.map +1 -1
  412. package/dist/esm/Status.js +1 -1
  413. package/dist/esm/Status.js.map +1 -1
  414. package/dist/esm/Surface.js +1 -1
  415. package/dist/esm/Surface.js.map +1 -1
  416. package/dist/esm/Switch.js +8 -6
  417. package/dist/esm/Switch.js.map +1 -1
  418. package/dist/esm/Tabs.js +1 -1
  419. package/dist/esm/Tabs.js.map +1 -1
  420. package/dist/esm/Tag.js +4 -2
  421. package/dist/esm/Tag.js.map +1 -1
  422. package/dist/esm/TagList.js +1 -1
  423. package/dist/esm/TagList.js.map +1 -1
  424. package/dist/esm/TextField.js +1 -1
  425. package/dist/esm/TextField.js.map +1 -1
  426. package/dist/esm/Toast.js +1 -1
  427. package/dist/esm/Toast.js.map +1 -1
  428. package/dist/esm/ToastStack.js +1 -1
  429. package/dist/esm/ToastStack.js.map +1 -1
  430. package/dist/esm/Tooltip.js +1 -1
  431. package/dist/esm/Tooltip.js.map +1 -1
  432. package/dist/esm/Typography.js +12 -12
  433. package/dist/esm/Typography.js.map +1 -1
  434. package/dist/esm/createOdysseyStyledComponent.js +33 -0
  435. package/dist/esm/createOdysseyStyledComponent.js.map +1 -0
  436. package/dist/esm/icons.generated/Add.js +1 -1
  437. package/dist/esm/icons.generated/AddCircle.js +1 -1
  438. package/dist/esm/icons.generated/Apps.js +1 -1
  439. package/dist/esm/icons.generated/AppsSelected.js +1 -1
  440. package/dist/esm/icons.generated/ArrowBottom.js +1 -1
  441. package/dist/esm/icons.generated/ArrowDown.js +1 -1
  442. package/dist/esm/icons.generated/ArrowLeft.js +1 -1
  443. package/dist/esm/icons.generated/ArrowLowerLeft.js +1 -1
  444. package/dist/esm/icons.generated/ArrowLowerRight.js +1 -1
  445. package/dist/esm/icons.generated/ArrowRight.js +1 -1
  446. package/dist/esm/icons.generated/ArrowTop.js +1 -1
  447. package/dist/esm/icons.generated/ArrowUnsorted.js +1 -1
  448. package/dist/esm/icons.generated/ArrowUp.js +1 -1
  449. package/dist/esm/icons.generated/ArrowUpperLeft.js +1 -1
  450. package/dist/esm/icons.generated/ArrowUpperRight.js +1 -1
  451. package/dist/esm/icons.generated/Bug.js +1 -1
  452. package/dist/esm/icons.generated/Calendar.js +1 -1
  453. package/dist/esm/icons.generated/Call.js +1 -1
  454. package/dist/esm/icons.generated/Chat.js +1 -1
  455. package/dist/esm/icons.generated/Check.js +1 -1
  456. package/dist/esm/icons.generated/CheckCircleFilled.js +1 -1
  457. package/dist/esm/icons.generated/ChevronDown.js +1 -1
  458. package/dist/esm/icons.generated/ChevronLeft.js +1 -1
  459. package/dist/esm/icons.generated/ChevronRight.js +1 -1
  460. package/dist/esm/icons.generated/ChevronUp.js +1 -1
  461. package/dist/esm/icons.generated/Clock.js +1 -1
  462. package/dist/esm/icons.generated/Close.js +1 -1
  463. package/dist/esm/icons.generated/CloseCircleFilled.js +1 -1
  464. package/dist/esm/icons.generated/CollapseLeft.js +1 -1
  465. package/dist/esm/icons.generated/CollapseRight.js +1 -1
  466. package/dist/esm/icons.generated/Copy.js +1 -1
  467. package/dist/esm/icons.generated/Customizations.js +1 -1
  468. package/dist/esm/icons.generated/CustomizationsSelected.js +1 -1
  469. package/dist/esm/icons.generated/DangerDiamond.js +1 -1
  470. package/dist/esm/icons.generated/DangerDiamondFilled.js +1 -1
  471. package/dist/esm/icons.generated/Delete.js +1 -1
  472. package/dist/esm/icons.generated/Deny.js +1 -1
  473. package/dist/esm/icons.generated/Devices.js +1 -1
  474. package/dist/esm/icons.generated/Directory.js +1 -1
  475. package/dist/esm/icons.generated/DirectorySelected.js +1 -1
  476. package/dist/esm/icons.generated/Documentation.js +1 -1
  477. package/dist/esm/icons.generated/Download.js +1 -1
  478. package/dist/esm/icons.generated/DragIndicator.js +1 -1
  479. package/dist/esm/icons.generated/Edit.js +1 -1
  480. package/dist/esm/icons.generated/ExpandLeft.js +1 -1
  481. package/dist/esm/icons.generated/ExpandRight.js +1 -1
  482. package/dist/esm/icons.generated/ExternalLink.js +1 -1
  483. package/dist/esm/icons.generated/Filter.js +1 -1
  484. package/dist/esm/icons.generated/Folder.js +1 -1
  485. package/dist/esm/icons.generated/Globe.js +1 -1
  486. package/dist/esm/icons.generated/Grid.js +1 -1
  487. package/dist/esm/icons.generated/Group.js +1 -1
  488. package/dist/esm/icons.generated/Happy.js +1 -1
  489. package/dist/esm/icons.generated/Hide.js +1 -1
  490. package/dist/esm/icons.generated/Home.js +1 -1
  491. package/dist/esm/icons.generated/HomeSelected.js +1 -1
  492. package/dist/esm/icons.generated/IdentityGovernance.js +1 -1
  493. package/dist/esm/icons.generated/IdentityGovernanceSelected.js +1 -1
  494. package/dist/esm/icons.generated/InformationCircle.js +1 -1
  495. package/dist/esm/icons.generated/InformationCircleFilled.js +1 -1
  496. package/dist/esm/icons.generated/Link.js +1 -1
  497. package/dist/esm/icons.generated/List.js +1 -1
  498. package/dist/esm/icons.generated/Lock.js +1 -1
  499. package/dist/esm/icons.generated/Menu.js +1 -1
  500. package/dist/esm/icons.generated/More.js +1 -1
  501. package/dist/esm/icons.generated/Neutral.js +1 -1
  502. package/dist/esm/icons.generated/Notification.js +1 -1
  503. package/dist/esm/icons.generated/Pause.js +1 -1
  504. package/dist/esm/icons.generated/QuestionCircle.js +1 -1
  505. package/dist/esm/icons.generated/QuestionCircleFilled.js +1 -1
  506. package/dist/esm/icons.generated/Refresh.js +1 -1
  507. package/dist/esm/icons.generated/Reports.js +1 -1
  508. package/dist/esm/icons.generated/ReportsSelected.js +1 -1
  509. package/dist/esm/icons.generated/Reset.js +1 -1
  510. package/dist/esm/icons.generated/Resume.js +1 -1
  511. package/dist/esm/icons.generated/Sad.js +1 -1
  512. package/dist/esm/icons.generated/Same.js +1 -1
  513. package/dist/esm/icons.generated/Search.js +1 -1
  514. package/dist/esm/icons.generated/Security.js +1 -1
  515. package/dist/esm/icons.generated/SecuritySelected.js +1 -1
  516. package/dist/esm/icons.generated/Send.js +1 -1
  517. package/dist/esm/icons.generated/Server.js +1 -1
  518. package/dist/esm/icons.generated/Settings.js +1 -1
  519. package/dist/esm/icons.generated/SettingsSelected.js +1 -1
  520. package/dist/esm/icons.generated/Show.js +1 -1
  521. package/dist/esm/icons.generated/Sparkle.js +1 -1
  522. package/dist/esm/icons.generated/Subtract.js +1 -1
  523. package/dist/esm/icons.generated/Sync.js +1 -1
  524. package/dist/esm/icons.generated/ThumbsDown.js +1 -1
  525. package/dist/esm/icons.generated/ThumbsUp.js +1 -1
  526. package/dist/esm/icons.generated/Unlock.js +1 -1
  527. package/dist/esm/icons.generated/Upload.js +1 -1
  528. package/dist/esm/icons.generated/User.js +1 -1
  529. package/dist/esm/icons.generated/Video.js +1 -1
  530. package/dist/esm/icons.generated/Warning.js +1 -1
  531. package/dist/esm/icons.generated/WarningFilled.js +1 -1
  532. package/dist/esm/icons.generated/Workflows.js +1 -1
  533. package/dist/esm/icons.generated/WorkflowsSelected.js +1 -1
  534. package/dist/esm/icons.generated/lazyIconDictionary.js +308 -0
  535. package/dist/esm/icons.generated/lazyIconDictionary.js.map +1 -0
  536. package/dist/esm/icons.generated/names.js +12 -0
  537. package/dist/esm/icons.generated/names.js.map +1 -0
  538. package/dist/esm/index.js +1 -0
  539. package/dist/esm/index.js.map +1 -1
  540. package/dist/esm/labs/AppTile.js +1 -1
  541. package/dist/esm/labs/AppTile.js.map +1 -1
  542. package/dist/esm/labs/DataFilters.js +4 -3
  543. package/dist/esm/labs/DataFilters.js.map +1 -1
  544. package/dist/esm/labs/DataTable.js +1 -1
  545. package/dist/esm/labs/DataTable.js.map +1 -1
  546. package/dist/esm/labs/DataTablePagination.js +1 -1
  547. package/dist/esm/labs/DataTablePagination.js.map +1 -1
  548. package/dist/esm/labs/DataView/BulkActionsMenu.js +1 -1
  549. package/dist/esm/labs/DataView/CardLayoutContent.js +2 -2
  550. package/dist/esm/labs/DataView/DataCard.js +1 -1
  551. package/dist/esm/labs/DataView/DataCard.js.map +1 -1
  552. package/dist/esm/labs/DataView/DataTable.js +1 -1
  553. package/dist/esm/labs/DataView/DataView.js +1 -1
  554. package/dist/esm/labs/DataView/DetailPanel.js +1 -1
  555. package/dist/esm/labs/DataView/LayoutSwitcher.js +1 -1
  556. package/dist/esm/labs/DataView/RowActions.js +1 -1
  557. package/dist/esm/labs/DataView/TableLayoutContent.js +1 -1
  558. package/dist/esm/labs/DataView/TableSettings.js +1 -1
  559. package/dist/esm/labs/DatePickers/DateTimeField.js +1 -1
  560. package/dist/esm/labs/DatePickers/DateTimePicker.js +1 -1
  561. package/dist/esm/labs/OdysseyPickers/ComposablePicker.js +1 -1
  562. package/dist/esm/labs/OdysseyPickers/Picker.js +1 -1
  563. package/dist/esm/labs/OdysseyPickers/PickerVirtualizationListBox.js +1 -1
  564. package/dist/esm/labs/OdysseyPickers/PickerWithOptionAdornment.js +1 -1
  565. package/dist/esm/labs/OdysseyPickers/SearchDropdown.js +1 -1
  566. package/dist/esm/labs/PageTemplate/DocumentationLink.js +1 -1
  567. package/dist/esm/labs/PageTemplate/Layout.js +1 -1
  568. package/dist/esm/labs/PageTemplate/PageTemplate.js +1 -1
  569. package/dist/esm/labs/PaginatedTable.js +1 -1
  570. package/dist/esm/labs/StaticTable.js +1 -1
  571. package/dist/esm/labs/UserProfile.js +1 -1
  572. package/dist/esm/labs/UserProfileMenuButton.js +1 -1
  573. package/dist/esm/logos.generated/Duo.js +1 -1
  574. package/dist/esm/logos.generated/GoogleAuth.js +1 -1
  575. package/dist/esm/logos.generated/OktaVerify.js +1 -1
  576. package/dist/esm/logos.generated/Persona.js +1 -1
  577. package/dist/esm/logos.generated/SymantecVip.js +1 -1
  578. package/dist/esm/logos.generated/Yubikey.js +1 -1
  579. package/dist/esm/theme/components/Dialog.js +2 -11
  580. package/dist/esm/theme/components/Dialog.js.map +1 -1
  581. package/dist/esm/theme/components/Menu.js +0 -1
  582. package/dist/esm/theme/components/Menu.js.map +1 -1
  583. package/dist/esm/ui-shell/AppSwitcher/AppSwitcher.js +1 -1
  584. package/dist/esm/ui-shell/InnerAppContainer.js +1 -1
  585. package/dist/esm/ui-shell/NarrowUiShellContent.js +1 -1
  586. package/dist/esm/ui-shell/SideNav/NavAccordion.js +1 -1
  587. package/dist/esm/ui-shell/SideNav/NavAccordion.js.map +1 -1
  588. package/dist/esm/ui-shell/SideNav/SideNav.js +1 -1
  589. package/dist/esm/ui-shell/SideNav/SideNavFooterContent.js +1 -1
  590. package/dist/esm/ui-shell/SideNav/SideNavHeader.js +1 -1
  591. package/dist/esm/ui-shell/SideNav/SideNavHeader.js.map +1 -1
  592. package/dist/esm/ui-shell/SideNav/SideNavItemContent.js +5 -1
  593. package/dist/esm/ui-shell/SideNav/SideNavItemContent.js.map +1 -1
  594. package/dist/esm/ui-shell/SideNav/SideNavItemLinkContent.js +1 -1
  595. package/dist/esm/ui-shell/SideNav/SideNavSortableList.js +1 -1
  596. package/dist/esm/ui-shell/SideNav/SideNavToggleButton.js +2 -2
  597. package/dist/esm/ui-shell/SideNav/types.js.map +1 -1
  598. package/dist/esm/ui-shell/SkipToContent.js +1 -1
  599. package/dist/esm/ui-shell/TopNav/HamburgerMenuIcon.js +1 -1
  600. package/dist/esm/ui-shell/TopNav/TopNav.js +1 -1
  601. package/dist/esm/ui-shell/TopNav/TopNav.js.map +1 -1
  602. package/dist/esm/ui-shell/TopNav/TopNavLinksList.js +1 -1
  603. package/dist/esm/ui-shell/TopNav/TopNavListItem.js +1 -1
  604. package/dist/esm/ui-shell/TopNav/TopNavListItem.js.map +1 -1
  605. package/dist/esm/ui-shell/UiShell.js +1 -1
  606. package/dist/esm/ui-shell/UiShellLogo.js +1 -1
  607. package/dist/esm/ui-shell/WideUiShellContent.js +1 -1
  608. package/dist/esm/useThemeCache.js.map +1 -1
  609. package/dist/esm/web-component/odysseyWebComponentVersion.generated.js +1 -1
  610. package/dist/esm/web-component/odysseyWebComponentVersion.generated.js.map +1 -1
  611. package/dist/tsconfig.production.tsbuildinfo +1 -1
  612. package/dist/types/Accordion.d.ts +9 -6
  613. package/dist/types/Accordion.d.ts.map +1 -1
  614. package/dist/types/Autocomplete.d.ts +24 -18
  615. package/dist/types/Autocomplete.d.ts.map +1 -1
  616. package/dist/types/Badge.d.ts +14 -0
  617. package/dist/types/Badge.d.ts.map +1 -1
  618. package/dist/types/Banner.d.ts +12 -7
  619. package/dist/types/Banner.d.ts.map +1 -1
  620. package/dist/types/Box.d.ts +10 -0
  621. package/dist/types/Box.d.ts.map +1 -1
  622. package/dist/types/Breadcrumbs.d.ts +21 -0
  623. package/dist/types/Breadcrumbs.d.ts.map +1 -1
  624. package/dist/types/Buttons/BaseButton.d.ts +24 -9
  625. package/dist/types/Buttons/BaseButton.d.ts.map +1 -1
  626. package/dist/types/Buttons/BaseMenuButton.d.ts +7 -6
  627. package/dist/types/Buttons/BaseMenuButton.d.ts.map +1 -1
  628. package/dist/types/Buttons/Button.d.ts.map +1 -1
  629. package/dist/types/Buttons/MenuButton.d.ts.map +1 -1
  630. package/dist/types/Buttons/MenuItem.d.ts +11 -10
  631. package/dist/types/Buttons/MenuItem.d.ts.map +1 -1
  632. package/dist/types/Callout.d.ts +13 -7
  633. package/dist/types/Callout.d.ts.map +1 -1
  634. package/dist/types/Card.d.ts +24 -0
  635. package/dist/types/Card.d.ts.map +1 -1
  636. package/dist/types/CircularProgress.d.ts.map +1 -1
  637. package/dist/types/ConditionalWrapper.d.ts +4 -0
  638. package/dist/types/ConditionalWrapper.d.ts.map +1 -1
  639. package/dist/types/CssBaseline.d.ts +4 -0
  640. package/dist/types/CssBaseline.d.ts.map +1 -1
  641. package/dist/types/DataTable/DataTable.d.ts +25 -20
  642. package/dist/types/DataTable/DataTable.d.ts.map +1 -1
  643. package/dist/types/DatePickers/DatePicker.d.ts.map +1 -1
  644. package/dist/types/DatePickers/TimeZonePicker.d.ts +9 -0
  645. package/dist/types/DatePickers/TimeZonePicker.d.ts.map +1 -1
  646. package/dist/types/DatePickers/datePickerTheme.d.ts.map +1 -1
  647. package/dist/types/Dialog.d.ts +16 -8
  648. package/dist/types/Dialog.d.ts.map +1 -1
  649. package/dist/types/Drawer.d.ts +21 -11
  650. package/dist/types/Drawer.d.ts.map +1 -1
  651. package/dist/types/EmptyState.d.ts.map +1 -1
  652. package/dist/types/Field.d.ts +6 -4
  653. package/dist/types/Field.d.ts.map +1 -1
  654. package/dist/types/FieldLabel.d.ts +6 -0
  655. package/dist/types/FieldLabel.d.ts.map +1 -1
  656. package/dist/types/Fields/Checkbox.d.ts +6 -5
  657. package/dist/types/Fields/Checkbox.d.ts.map +1 -1
  658. package/dist/types/Fields/CheckboxGroup.d.ts +2 -1
  659. package/dist/types/Fields/CheckboxGroup.d.ts.map +1 -1
  660. package/dist/types/Fields/Radio.d.ts +6 -4
  661. package/dist/types/Fields/Radio.d.ts.map +1 -1
  662. package/dist/types/Fields/RadioGroup.d.ts +1 -1
  663. package/dist/types/Fields/RadioGroup.d.ts.map +1 -1
  664. package/dist/types/Fieldset.d.ts +3 -2
  665. package/dist/types/Fieldset.d.ts.map +1 -1
  666. package/dist/types/FieldsetContext.d.ts +3 -0
  667. package/dist/types/FieldsetContext.d.ts.map +1 -1
  668. package/dist/types/FileUploader/FileUploader.d.ts +25 -6
  669. package/dist/types/FileUploader/FileUploader.d.ts.map +1 -1
  670. package/dist/types/Form.d.ts +16 -11
  671. package/dist/types/Form.d.ts.map +1 -1
  672. package/dist/types/HintLink.d.ts.map +1 -1
  673. package/dist/types/HtmlProps.d.ts +4 -0
  674. package/dist/types/HtmlProps.d.ts.map +1 -1
  675. package/dist/types/IconWithTooltip.d.ts +4 -2
  676. package/dist/types/IconWithTooltip.d.ts.map +1 -1
  677. package/dist/types/Link.d.ts +7 -5
  678. package/dist/types/Link.d.ts.map +1 -1
  679. package/dist/types/NativeSelect.d.ts +20 -16
  680. package/dist/types/NativeSelect.d.ts.map +1 -1
  681. package/dist/types/OdysseyCacheProvider.d.ts +12 -3
  682. package/dist/types/OdysseyCacheProvider.d.ts.map +1 -1
  683. package/dist/types/OdysseyProvider.d.ts +6 -4
  684. package/dist/types/OdysseyProvider.d.ts.map +1 -1
  685. package/dist/types/OdysseyThemeProvider.d.ts +8 -1
  686. package/dist/types/OdysseyThemeProvider.d.ts.map +1 -1
  687. package/dist/types/Pagination/Pagination.d.ts +9 -8
  688. package/dist/types/Pagination/Pagination.d.ts.map +1 -1
  689. package/dist/types/PasswordField.d.ts +20 -18
  690. package/dist/types/PasswordField.d.ts.map +1 -1
  691. package/dist/types/ScreenReaderText.d.ts +4 -0
  692. package/dist/types/ScreenReaderText.d.ts.map +1 -1
  693. package/dist/types/SearchField.d.ts +28 -16
  694. package/dist/types/SearchField.d.ts.map +1 -1
  695. package/dist/types/Select.d.ts +5 -6
  696. package/dist/types/Select.d.ts.map +1 -1
  697. package/dist/types/Stack.d.ts +3 -0
  698. package/dist/types/Stack.d.ts.map +1 -1
  699. package/dist/types/Status.d.ts +6 -3
  700. package/dist/types/Status.d.ts.map +1 -1
  701. package/dist/types/Surface.d.ts +1 -0
  702. package/dist/types/Surface.d.ts.map +1 -1
  703. package/dist/types/Switch.d.ts +5 -4
  704. package/dist/types/Switch.d.ts.map +1 -1
  705. package/dist/types/Tabs.d.ts +10 -3
  706. package/dist/types/Tabs.d.ts.map +1 -1
  707. package/dist/types/Tag.d.ts +12 -5
  708. package/dist/types/Tag.d.ts.map +1 -1
  709. package/dist/types/TagList.d.ts.map +1 -1
  710. package/dist/types/TextField.d.ts +22 -16
  711. package/dist/types/TextField.d.ts.map +1 -1
  712. package/dist/types/Toast.d.ts +13 -13
  713. package/dist/types/Toast.d.ts.map +1 -1
  714. package/dist/types/ToastStack.d.ts.map +1 -1
  715. package/dist/types/Tooltip.d.ts +1 -0
  716. package/dist/types/Tooltip.d.ts.map +1 -1
  717. package/dist/types/Typography.d.ts +9 -3
  718. package/dist/types/Typography.d.ts.map +1 -1
  719. package/dist/types/createOdysseyStyledComponent.d.ts +54 -0
  720. package/dist/types/createOdysseyStyledComponent.d.ts.map +1 -0
  721. package/dist/types/icons.generated/lazyIconDictionary.d.ts +17 -0
  722. package/dist/types/icons.generated/lazyIconDictionary.d.ts.map +1 -0
  723. package/dist/types/icons.generated/names.d.ts +14 -0
  724. package/dist/types/icons.generated/names.d.ts.map +1 -0
  725. package/dist/types/index.d.ts +1 -0
  726. package/dist/types/index.d.ts.map +1 -1
  727. package/dist/types/labs/AppTile.d.ts +8 -0
  728. package/dist/types/labs/AppTile.d.ts.map +1 -1
  729. package/dist/types/labs/DataFilters.d.ts +3 -5
  730. package/dist/types/labs/DataFilters.d.ts.map +1 -1
  731. package/dist/types/labs/DataTable.d.ts +15 -17
  732. package/dist/types/labs/DataTable.d.ts.map +1 -1
  733. package/dist/types/labs/DataTablePagination.d.ts +6 -0
  734. package/dist/types/labs/DataTablePagination.d.ts.map +1 -1
  735. package/dist/types/labs/DataView/DataCard.d.ts +6 -0
  736. package/dist/types/labs/DataView/DataCard.d.ts.map +1 -1
  737. package/dist/types/theme/components/Dialog.d.ts.map +1 -1
  738. package/dist/types/theme/components/Menu.d.ts.map +1 -1
  739. package/dist/types/ui-shell/SideNav/NavAccordion.d.ts +4 -5
  740. package/dist/types/ui-shell/SideNav/NavAccordion.d.ts.map +1 -1
  741. package/dist/types/ui-shell/SideNav/SideNavHeader.d.ts +1 -1
  742. package/dist/types/ui-shell/SideNav/SideNavItemContent.d.ts +1 -1
  743. package/dist/types/ui-shell/SideNav/SideNavItemContent.d.ts.map +1 -1
  744. package/dist/types/ui-shell/SideNav/types.d.ts +23 -3
  745. package/dist/types/ui-shell/SideNav/types.d.ts.map +1 -1
  746. package/dist/types/ui-shell/TopNav/TopNav.d.ts +1 -1
  747. package/dist/types/ui-shell/TopNav/TopNavListItem.d.ts +1 -1
  748. package/dist/types/useThemeCache.d.ts.map +1 -1
  749. package/dist/types/web-component/odysseyWebComponentVersion.generated.d.ts +1 -1
  750. package/package.json +31 -31
@@ -1 +1 @@
1
- {"version":3,"file":"datePickerTheme.cjs","names":["odysseyTokens","_interopRequireWildcard","require","_theme","e","t","WeakMap","r","n","__esModule","o","i","f","__proto__","default","has","get","set","hasOwnProperty","call","Object","defineProperty","getOwnPropertyDescriptor","popupSpacingValue","odysseyTheme","createOdysseyMuiTheme","dateStyles","exports","theme","color","palette","text","primary","disabled","backgroundColor","hover","grey","focus","boxShadow","common","white","main","outline","outlineOffset","hoverSelected","dark","contrastText","outsideOfMonth","selected","border","today","todayDotStyles","borderRadius","bottom","spacing","content","height","typography","fontSize","position","transform","width","yearStyles","paddingBlock","paddingInline","lighter","secondary","yearCheckStyles","h6","maskImage","maskPosition","maskRepeat","right","datePickerTheme","components","MuiDateCalendar","styleOverrides","root","MuiPickersLayout","display","maxWidth","mixins","contentWrapper","borderColor","divider","borderStyle","borderWidth","MuiDatePickerToolbar","title","marginBlockStart","marginBlockEnd","MuiDayCalendar","header","justifyContent","monthContainer","weekContainer","marginBottom","marginLeft","marginRight","padding","gap","weekDayLabel","flexShrink","overline","fontWeight","lineHeight","letterSpacing","textTransform","MuiDatePicker","defaultProps","slotProps","popper","popperOptions","placement","showDaysOutsideCurrentMonth","views","MuiPickersCalendarHeader","label","h5","margin","maxHeight","minHeight","paddingBlockStart","paddingBlockEnd","borderBottom","labelContainer","overflow","switchViewButton","marginInlineStart","MuiPickersDay","dayWithMargin","flexBasis","body1","fontWeightBold","MuiPickersPopper","paper","marginTop","MuiYearCalendar","marginInlineEnd","MuiPickersYear","yearButton","alignItems","shape","MuiPickersArrowSwitcher","flexDirection","spacer","button"],"sources":["../../../src/DatePickers/datePickerTheme.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\nimport { ThemeOptions } from \"@mui/material\";\nimport { CSSInterpolation } from \"@mui/material/styles\";\nimport * as odysseyTokens from \"@okta/odyssey-design-tokens\";\n\nimport { createOdysseyMuiTheme } from \"../theme/theme.js\";\n\nconst popupSpacingValue = 5;\n\nconst odysseyTheme = createOdysseyMuiTheme({ odysseyTokens });\n\ntype ThemeStyles = ({\n theme,\n}: {\n theme: typeof odysseyTheme;\n}) => CSSInterpolation;\n\ntype StateStyles = Record<string, ThemeStyles>;\n\nexport const dateStyles: StateStyles = {\n default: ({ theme }) => ({\n color: theme.palette.text.primary,\n }),\n disabled: ({ theme }) => ({\n backgroundColor: \"transparent\",\n color: theme.palette.text.disabled,\n }),\n hover: ({ theme }) => ({\n backgroundColor: theme.palette.grey[100],\n }),\n focus: ({ theme }) => ({\n backgroundColor: \"transparent\",\n boxShadow: `0 0 0 2px ${theme.palette.common.white}, 0 0 0 4px ${theme.palette.primary.main}`,\n outline: \"2px solid transparent\",\n outlineOffset: \"1px\",\n }),\n hoverSelected: ({ theme }) => ({\n backgroundColor: theme.palette.primary.dark,\n color: theme.palette.primary.contrastText,\n }),\n outsideOfMonth: ({ theme }) => ({\n backgroundColor: \"transparent\",\n color: theme.palette.grey[400],\n }),\n selected: ({ theme }) => ({\n backgroundColor: theme.palette.primary.main,\n color: theme.palette.primary.contrastText,\n border: \"none\",\n }),\n today: ({ theme }) => ({\n backgroundColor: \"transparent\",\n color: theme.palette.primary.main,\n border: \"none\",\n }),\n};\n\nconst todayDotStyles: StateStyles = {\n default: ({ theme }) => ({\n backgroundColor: theme.palette.primary.main,\n borderRadius: \"50%\",\n bottom: theme.spacing(1),\n content: '\" \"',\n height: `${2 / theme.typography.fontSize}em`,\n position: \"absolute\",\n transform: \"translateY(-50%)\",\n width: `${2 / theme.typography.fontSize}em`,\n }),\n hover: ({ theme }) => ({\n backgroundColor: theme.palette.primary.main,\n }),\n selected: ({ theme }) => ({\n backgroundColor: theme.palette.primary.contrastText,\n }),\n};\n\nconst yearStyles: StateStyles = {\n default: ({ theme }) => ({\n backgroundColor: \"transparent\",\n color: theme.palette.text.primary,\n paddingBlock: theme.spacing(3),\n paddingInline: theme.spacing(4),\n width: \"auto\",\n height: \"auto\",\n }),\n disabled: ({ theme }) => ({\n backgroundColor: \"transparent\",\n color: theme.palette.text.disabled,\n }),\n hover: ({ theme }) => ({\n backgroundColor: theme.palette.grey[100],\n }),\n hoverSelected: ({ theme }) => ({\n backgroundColor: theme.palette.primary.lighter,\n color: theme.palette.primary.main,\n }),\n outsideOfMonth: ({ theme }) => ({\n backgroundColor: \"transparent\",\n color: theme.palette.text.secondary,\n }),\n selected: ({ theme }) => ({\n backgroundColor: \"transparent\",\n color: theme.palette.primary.main,\n }),\n};\n\nconst yearCheckStyles: StateStyles = {\n default: ({ theme }) => ({\n backgroundColor: theme.palette.primary.main,\n content: '\"\"',\n height: theme.typography.h6.fontSize,\n maskImage:\n \"url(\\\"data:image/svg+xml,%3Csvg viewBox='0 0 16 16' fill='none' xmlns='http://www.w3.org/2000/svg'%0A%3E%3Cpath fillRule='evenodd' clipRule='evenodd' d='M14.3536 4.35355L6.35355 12.3536C6.15829 12.5488 5.84171 12.5488 5.64645 12.3536L1.64645 8.35355L2.35355 7.64645L6 11.2929L13.6464 3.64645L14.3536 4.35355Z' fill='currentColor' /%3E%3C/svg%3E%0A\\\")\",\n maskPosition: \"50% 50%\",\n maskRepeat: \"no-repeat\",\n position: \"absolute\",\n right: theme.spacing(4),\n width: theme.spacing(4),\n }),\n};\n\nexport const datePickerTheme: ThemeOptions = {\n components: {\n MuiDateCalendar: {\n styleOverrides: {\n root: () => ({\n width: \"100%\",\n }),\n },\n },\n MuiPickersLayout: {\n styleOverrides: {\n root: ({ theme }) => ({\n display: \"block\",\n // Matches Popper width\n width: \"calc(100vw - 64px)\",\n maxWidth: theme.mixins.maxWidth,\n }),\n contentWrapper: ({ theme }) => ({\n width: \"auto\",\n paddingInline: theme.spacing(3),\n\n \"@media (pointer: fine)\": {\n borderColor: theme.palette.divider,\n borderStyle: theme.mixins.borderStyle,\n borderWidth: theme.mixins.borderWidth,\n borderRadius: theme.mixins.borderRadius,\n paddingBlock: theme.spacing(6),\n paddingInline: theme.spacing(6),\n },\n }),\n },\n },\n MuiDatePickerToolbar: {\n styleOverrides: {\n root: ({ theme }) => ({\n paddingInline: theme.spacing(4),\n paddingBlock: theme.spacing(4),\n }),\n title: ({ theme }) => ({\n marginBlockStart: theme.spacing(1),\n marginBlockEnd: 0,\n }),\n },\n },\n MuiDayCalendar: {\n styleOverrides: {\n header: ({ theme }) => ({\n justifyContent: \"space-between\",\n marginBlockStart: theme.spacing(5),\n paddingInline: theme.spacing(1),\n }),\n monthContainer: ({ theme }) => ({\n // padding needed to be able to show focus state for calendar days\n paddingBlock: theme.spacing(1),\n paddingInline: theme.spacing(1),\n }),\n weekContainer: ({ theme }) => ({\n justifyContent: \"space-between\",\n marginBottom: theme.spacing(1),\n marginLeft: 0,\n marginRight: 0,\n padding: 0,\n gap: theme.spacing(1),\n\n \"&:last-child\": {\n marginBottom: 0,\n },\n }),\n weekDayLabel: ({ theme }) => ({\n color: theme.palette.grey[900],\n flexShrink: 0,\n marginBottom: theme.spacing(2),\n marginLeft: 0,\n marginRight: 0,\n width: theme.spacing(6),\n height: \"auto\",\n fontSize: theme.typography.overline.fontSize,\n fontWeight: theme.typography.overline.fontWeight,\n lineHeight: theme.typography.overline.lineHeight,\n letterSpacing: theme.typography.overline.letterSpacing,\n textTransform: theme.typography.overline.textTransform,\n }),\n },\n },\n MuiDatePicker: {\n defaultProps: {\n slotProps: {\n popper: {\n popperOptions: {\n placement: \"bottom-start\",\n },\n },\n },\n showDaysOutsideCurrentMonth: true,\n views: [\"year\", \"day\"],\n },\n },\n MuiPickersCalendarHeader: {\n styleOverrides: {\n label: ({ theme }) => ({\n ...theme.typography.h5,\n margin: 0,\n }),\n root: ({ theme }) => ({\n justifyContent: \"space-between\",\n marginBlockEnd: 0,\n marginBlockStart: 0,\n maxHeight: theme.spacing(8),\n minHeight: theme.spacing(8),\n paddingInline: theme.spacing(1),\n paddingBlockStart: theme.spacing(1),\n paddingBlockEnd: theme.spacing(4),\n width: \"auto\",\n borderBottom: `1px solid ${theme.palette.grey[100]}`,\n }),\n labelContainer: {\n marginRight: 0,\n overflow: \"visible\",\n },\n switchViewButton: ({ theme }) => ({\n marginInlineStart: theme.spacing(1),\n }),\n },\n },\n MuiPickersDay: {\n styleOverrides: {\n dayWithMargin: () => ({\n marginLeft: 0,\n marginRight: 0,\n }),\n root: ({ theme }) => [\n dateStyles.default({ theme }),\n {\n border: \"none\",\n borderRadius: theme.mixins.borderRadius,\n flexBasis: theme.spacing(6),\n flexShrink: 0,\n fontSize: theme.typography.body1.fontSize,\n height: theme.spacing(6),\n width: theme.spacing(6),\n\n \"&.MuiPickersDay-today\": [\n dateStyles.today({ theme }),\n {\n fontWeight: theme.typography.fontWeightBold,\n },\n ],\n\n \"&.MuiPickersDay-today::after\": todayDotStyles.default({ theme }),\n \"&.MuiPickersDay-today.Mui-selected::after\":\n todayDotStyles.selected({ theme }),\n \"&.MuiPickersDay-dayOutsideMonth\": dateStyles.outsideOfMonth({\n theme,\n }),\n \"&:hover\": dateStyles.hover({ theme }),\n \"&:focus\": dateStyles.focus({ theme }),\n\n \"&.Mui-selected, &.Mui-selected:focus\": dateStyles.selected({\n theme,\n }),\n \"&.Mui-selected:hover\": dateStyles.hoverSelected({ theme }),\n\n \"&.Mui-disabled\": dateStyles.disabled({ theme }),\n },\n ],\n },\n },\n MuiPickersPopper: {\n styleOverrides: {\n paper: ({ theme }) => ({\n boxShadow: `0 ${1 / 14}rem ${\n 4 / 14\n }rem rgba(29, 29, 33, 0.08), 0 ${4 / 14}rem ${\n 10 / 14\n }rem rgba(29, 29, 33, 0.08), 0 ${8 / 14}rem ${\n 30 / 14\n }rem rgba(29, 29, 33, 0.1)`,\n marginTop: theme.spacing(1),\n }),\n },\n },\n MuiYearCalendar: {\n styleOverrides: {\n root: ({ theme }) => ({\n display: \"block\",\n width: \"auto\",\n maxHeight: `${284 / 14}rem`,\n marginBottom: `-${theme.spacing(popupSpacingValue)}`,\n marginInlineEnd: 0,\n paddingInline: 0,\n }),\n },\n },\n MuiPickersYear: {\n styleOverrides: {\n root: () => ({\n width: \"100%\",\n justifyContent: \"flex-start\",\n }),\n yearButton: ({ theme }) => [\n yearStyles.default({ theme }),\n {\n position: \"relative\",\n display: \"flex\",\n alignItems: \"center\",\n justifyContent: \"flex-start\",\n width: \"100%\",\n marginBottom: 0,\n marginTop: 0,\n paddingBlock: theme.spacing(3),\n paddingInline: theme.spacing(4),\n borderRadius: theme.shape.borderRadius,\n fontSize: theme.typography.body1.fontSize,\n\n \"&:hover\": yearStyles.hover({ theme }),\n\n \"&:not(.Mui-selected)\": {\n border: \"none\",\n },\n\n \"&.Mui-disabled\": yearStyles.disabled({ theme }),\n },\n ],\n selected: ({ theme }) => ({\n \"&, &:focus\": yearStyles.selected({ theme }),\n \"&:hover\": yearStyles.hoverSelected({ theme }),\n \"&::after\": yearCheckStyles.default({ theme }),\n }),\n },\n },\n MuiPickersArrowSwitcher: {\n styleOverrides: {\n root: {\n \":dir(rtl)\": {\n flexDirection: \"row-reverse\",\n },\n },\n spacer: ({ theme }) => ({\n width: theme.spacing(3),\n }),\n button: {\n margin: 0,\n },\n },\n },\n },\n};\n"],"mappings":";;;;;;AAcA,IAAAA,aAAA,GAAAC,uBAAA,CAAAC,OAAA;AAEA,IAAAC,MAAA,GAAAD,OAAA;AAA0D,SAAAD,wBAAAG,CAAA,EAAAC,CAAA,6BAAAC,OAAA,MAAAC,CAAA,OAAAD,OAAA,IAAAE,CAAA,OAAAF,OAAA,YAAAL,uBAAA,YAAAA,CAAAG,CAAA,EAAAC,CAAA,SAAAA,CAAA,IAAAD,CAAA,IAAAA,CAAA,CAAAK,UAAA,SAAAL,CAAA,MAAAM,CAAA,EAAAC,CAAA,EAAAC,CAAA,KAAAC,SAAA,QAAAC,OAAA,EAAAV,CAAA,iBAAAA,CAAA,uBAAAA,CAAA,yBAAAA,CAAA,SAAAQ,CAAA,MAAAF,CAAA,GAAAL,CAAA,GAAAG,CAAA,GAAAD,CAAA,QAAAG,CAAA,CAAAK,GAAA,CAAAX,CAAA,UAAAM,CAAA,CAAAM,GAAA,CAAAZ,CAAA,GAAAM,CAAA,CAAAO,GAAA,CAAAb,CAAA,EAAAQ,CAAA,gBAAAP,CAAA,IAAAD,CAAA,gBAAAC,CAAA,OAAAa,cAAA,CAAAC,IAAA,CAAAf,CAAA,EAAAC,CAAA,OAAAM,CAAA,IAAAD,CAAA,GAAAU,MAAA,CAAAC,cAAA,KAAAD,MAAA,CAAAE,wBAAA,CAAAlB,CAAA,EAAAC,CAAA,OAAAM,CAAA,CAAAK,GAAA,IAAAL,CAAA,CAAAM,GAAA,IAAAP,CAAA,CAAAE,CAAA,EAAAP,CAAA,EAAAM,CAAA,IAAAC,CAAA,CAAAP,CAAA,IAAAD,CAAA,CAAAC,CAAA,WAAAO,CAAA,KAAAR,CAA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EpB;UAAM,CAAC,CAAC;UAC5C,SAAS,EAAEkC,UAAU,CAAClB,aAAa,CAAC;YAAEhB;UAAM,CAAC,CAAC;UAC9C,UAAU,EAAEuC,eAAe,CAACrD,OAAO,CAAC;YAAEc;UAAM,CAAC;QAC/C,CAAC;MACH;IACF,CAAC;IACDmH,uBAAuB,EAAE;MACvBnE,cAAc,EAAE;QACdC,IAAI,EAAE;UACJ,WAAW,EAAE;YACXmE,aAAa,EAAE;UACjB;QACF,CAAC;QACDC,MAAM,EAAEA,CAAC;UAAErH;QAAM,CAAC,MAAM;UACtBiC,KAAK,EAAEjC,KAAK,CAAC0B,OAAO,CAAC,CAAC;QACxB,CAAC,CAAC;QACF4F,MAAM,EAAE;UACN3B,MAAM,EAAE;QACV;MACF;IACF;EACF;AACF,CAAC","ignoreList":[]}
1
+ {"version":3,"file":"datePickerTheme.cjs","names":["odysseyTokens","_interopRequireWildcard","require","_theme","e","t","WeakMap","r","n","__esModule","o","i","f","__proto__","default","has","get","set","hasOwnProperty","call","Object","defineProperty","getOwnPropertyDescriptor","popupSpacingValue","odysseyTheme","createOdysseyMuiTheme","dateStyles","exports","theme","color","palette","text","primary","disabled","backgroundColor","hover","grey","focus","boxShadow","common","white","main","outline","outlineOffset","hoverSelected","dark","contrastText","outsideOfMonth","selected","border","today","todayDotStyles","borderRadius","bottom","spacing","content","height","typography","fontSize","position","transform","width","yearStyles","paddingBlock","paddingInline","lighter","secondary","yearCheckStyles","h6","maskImage","maskPosition","maskRepeat","right","datePickerTheme","components","MuiDateCalendar","styleOverrides","root","MuiPickersLayout","display","maxWidth","mixins","contentWrapper","borderColor","divider","borderStyle","borderWidth","MuiDatePickerToolbar","title","marginBlockStart","marginBlockEnd","MuiDayCalendar","header","justifyContent","gap","monthContainer","weekContainer","marginBottom","marginLeft","marginRight","padding","weekDayLabel","flexShrink","overline","fontWeight","lineHeight","letterSpacing","textTransform","MuiDatePicker","defaultProps","slotProps","popper","popperOptions","placement","modifiers","name","enabled","phase","requires","fn","state","styles","rects","reference","effect","fieldElement","elements","style","setProperty","offsetWidth","showDaysOutsideCurrentMonth","views","MuiPickersCalendarHeader","label","h5","margin","maxHeight","minHeight","paddingBlockStart","paddingBlockEnd","borderBottom","labelContainer","overflow","switchViewButton","marginInlineStart","MuiPickersDay","dayWithMargin","flexBasis","body1","fontWeightBold","MuiPickersPopper","minWidth","paper","marginTop","MuiYearCalendar","marginInlineEnd","MuiPickersYear","yearButton","alignItems","shape","MuiPickersArrowSwitcher","flexDirection","spacer","button"],"sources":["../../../src/DatePickers/datePickerTheme.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\nimport { ThemeOptions } from \"@mui/material\";\nimport { CSSInterpolation } from \"@mui/material/styles\";\nimport * as odysseyTokens from \"@okta/odyssey-design-tokens\";\n\nimport { createOdysseyMuiTheme } from \"../theme/theme.js\";\n\nconst popupSpacingValue = 5;\n\nconst odysseyTheme = createOdysseyMuiTheme({ odysseyTokens });\n\ntype ThemeStyles = ({\n theme,\n}: {\n theme: typeof odysseyTheme;\n}) => CSSInterpolation;\n\ntype StateStyles = Record<string, ThemeStyles>;\n\n// Minimal shape of the Popper.js modifier argument we read/write to size the\n// calendar popup to its anchor field. Typed locally to avoid importing the full\n// @popperjs/core types into the theme.\ntype PopperWidthModifierArguments = {\n state: {\n elements: { popper: HTMLElement; reference: Element };\n rects: { reference: { width: number } };\n styles: { popper: Record<string, string> };\n };\n};\n\nexport const dateStyles: StateStyles = {\n default: ({ theme }) => ({\n color: theme.palette.text.primary,\n }),\n disabled: ({ theme }) => ({\n backgroundColor: \"transparent\",\n color: theme.palette.text.disabled,\n }),\n hover: ({ theme }) => ({\n backgroundColor: theme.palette.grey[100],\n }),\n focus: ({ theme }) => ({\n backgroundColor: \"transparent\",\n boxShadow: `0 0 0 2px ${theme.palette.common.white}, 0 0 0 4px ${theme.palette.primary.main}`,\n outline: \"2px solid transparent\",\n outlineOffset: \"1px\",\n }),\n hoverSelected: ({ theme }) => ({\n backgroundColor: theme.palette.primary.dark,\n color: theme.palette.primary.contrastText,\n }),\n outsideOfMonth: ({ theme }) => ({\n backgroundColor: \"transparent\",\n color: theme.palette.grey[400],\n }),\n selected: ({ theme }) => ({\n backgroundColor: theme.palette.primary.main,\n color: theme.palette.primary.contrastText,\n border: \"none\",\n }),\n today: ({ theme }) => ({\n backgroundColor: \"transparent\",\n color: theme.palette.primary.main,\n border: \"none\",\n }),\n};\n\nconst todayDotStyles: StateStyles = {\n default: ({ theme }) => ({\n backgroundColor: theme.palette.primary.main,\n borderRadius: \"50%\",\n bottom: theme.spacing(1),\n content: '\" \"',\n height: `${2 / theme.typography.fontSize}em`,\n position: \"absolute\",\n transform: \"translateY(-50%)\",\n width: `${2 / theme.typography.fontSize}em`,\n }),\n hover: ({ theme }) => ({\n backgroundColor: theme.palette.primary.main,\n }),\n selected: ({ theme }) => ({\n backgroundColor: theme.palette.primary.contrastText,\n }),\n};\n\nconst yearStyles: StateStyles = {\n default: ({ theme }) => ({\n backgroundColor: \"transparent\",\n color: theme.palette.text.primary,\n paddingBlock: theme.spacing(3),\n paddingInline: theme.spacing(4),\n width: \"auto\",\n height: \"auto\",\n }),\n disabled: ({ theme }) => ({\n backgroundColor: \"transparent\",\n color: theme.palette.text.disabled,\n }),\n hover: ({ theme }) => ({\n backgroundColor: theme.palette.grey[100],\n }),\n hoverSelected: ({ theme }) => ({\n backgroundColor: theme.palette.primary.lighter,\n color: theme.palette.primary.main,\n }),\n outsideOfMonth: ({ theme }) => ({\n backgroundColor: \"transparent\",\n color: theme.palette.text.secondary,\n }),\n selected: ({ theme }) => ({\n backgroundColor: \"transparent\",\n color: theme.palette.primary.main,\n }),\n};\n\nconst yearCheckStyles: StateStyles = {\n default: ({ theme }) => ({\n backgroundColor: theme.palette.primary.main,\n content: '\"\"',\n height: theme.typography.h6.fontSize,\n maskImage:\n \"url(\\\"data:image/svg+xml,%3Csvg viewBox='0 0 16 16' fill='none' xmlns='http://www.w3.org/2000/svg'%0A%3E%3Cpath fillRule='evenodd' clipRule='evenodd' d='M14.3536 4.35355L6.35355 12.3536C6.15829 12.5488 5.84171 12.5488 5.64645 12.3536L1.64645 8.35355L2.35355 7.64645L6 11.2929L13.6464 3.64645L14.3536 4.35355Z' fill='currentColor' /%3E%3C/svg%3E%0A\\\")\",\n maskPosition: \"50% 50%\",\n maskRepeat: \"no-repeat\",\n position: \"absolute\",\n right: theme.spacing(4),\n width: theme.spacing(4),\n }),\n};\n\nexport const datePickerTheme: ThemeOptions = {\n components: {\n MuiDateCalendar: {\n styleOverrides: {\n root: () => ({\n width: \"100%\",\n }),\n },\n },\n MuiPickersLayout: {\n styleOverrides: {\n root: ({ theme }) => ({\n display: \"block\",\n // Touch renders a near-full-width modal (no Popper), so it keeps the\n // viewport-based width. On pointer:fine the Popper is sized to the\n // field's width (see the MuiDatePicker popper modifier, clamped on\n // MuiPickersPopper), so the layout just fills it instead of forcing a\n // fixed viewport-wide width that overflows narrow parent containers.\n width: \"calc(100vw - 64px)\",\n maxWidth: theme.mixins.maxWidth,\n\n \"@media (pointer: fine)\": {\n width: \"100%\",\n },\n }),\n contentWrapper: ({ theme }) => ({\n width: \"auto\",\n paddingInline: theme.spacing(3),\n\n \"@media (pointer: fine)\": {\n borderColor: theme.palette.divider,\n borderStyle: theme.mixins.borderStyle,\n borderWidth: theme.mixins.borderWidth,\n borderRadius: theme.mixins.borderRadius,\n paddingBlock: theme.spacing(6),\n paddingInline: theme.spacing(6),\n },\n }),\n },\n },\n MuiDatePickerToolbar: {\n styleOverrides: {\n root: ({ theme }) => ({\n paddingInline: theme.spacing(4),\n paddingBlock: theme.spacing(4),\n }),\n title: ({ theme }) => ({\n marginBlockStart: theme.spacing(1),\n marginBlockEnd: 0,\n }),\n },\n },\n MuiDayCalendar: {\n styleOverrides: {\n header: ({ theme }) => ({\n justifyContent: \"space-between\",\n marginBlockStart: theme.spacing(5),\n paddingInline: theme.spacing(1),\n // Match weekContainer's gap so the in-flow header reaches the same\n // natural width as the day grid. The grid itself is position:absolute\n // (for slide animations), so it doesn't contribute to the calendar's\n // min-content width; the header is what carries that intrinsic width up\n // to the popup's `min-width: min-content`, keeping all seven columns\n // visible when the popup shrinks to a narrow field.\n gap: theme.spacing(1),\n }),\n monthContainer: ({ theme }) => ({\n // padding needed to be able to show focus state for calendar days\n paddingBlock: theme.spacing(1),\n paddingInline: theme.spacing(1),\n }),\n weekContainer: ({ theme }) => ({\n justifyContent: \"space-between\",\n marginBottom: theme.spacing(1),\n marginLeft: 0,\n marginRight: 0,\n padding: 0,\n gap: theme.spacing(1),\n\n \"&:last-child\": {\n marginBottom: 0,\n },\n }),\n weekDayLabel: ({ theme }) => ({\n color: theme.palette.grey[900],\n flexShrink: 0,\n marginBottom: theme.spacing(2),\n marginLeft: 0,\n marginRight: 0,\n width: theme.spacing(6),\n height: \"auto\",\n fontSize: theme.typography.overline.fontSize,\n fontWeight: theme.typography.overline.fontWeight,\n lineHeight: theme.typography.overline.lineHeight,\n letterSpacing: theme.typography.overline.letterSpacing,\n textTransform: theme.typography.overline.textTransform,\n }),\n },\n },\n MuiDatePicker: {\n defaultProps: {\n slotProps: {\n popper: {\n popperOptions: {\n placement: \"bottom-start\",\n // Size the calendar popup to its anchor field's width so it never\n // overflows a narrow parent container. MuiPickersPopper clamps this\n // between the calendar's min-content and the previous default cap.\n modifiers: [\n {\n name: \"matchFieldWidth\",\n enabled: true,\n phase: \"beforeWrite\",\n requires: [\"computeStyles\"],\n fn: ({ state }: PopperWidthModifierArguments) => {\n state.styles.popper.width = `${state.rects.reference.width}px`;\n },\n effect: ({ state }: PopperWidthModifierArguments) => {\n const fieldElement = state.elements\n .reference as HTMLElement;\n state.elements.popper.style.setProperty(\n \"width\",\n `${fieldElement.offsetWidth}px`,\n );\n },\n },\n ],\n },\n },\n },\n showDaysOutsideCurrentMonth: true,\n views: [\"year\", \"day\"],\n },\n },\n MuiPickersCalendarHeader: {\n styleOverrides: {\n label: ({ theme }) => ({\n ...theme.typography.h5,\n margin: 0,\n }),\n root: ({ theme }) => ({\n justifyContent: \"space-between\",\n marginBlockEnd: 0,\n marginBlockStart: 0,\n maxHeight: theme.spacing(8),\n minHeight: theme.spacing(8),\n paddingInline: theme.spacing(1),\n paddingBlockStart: theme.spacing(1),\n paddingBlockEnd: theme.spacing(4),\n width: \"auto\",\n borderBottom: `1px solid ${theme.palette.grey[100]}`,\n }),\n labelContainer: {\n marginRight: 0,\n overflow: \"visible\",\n },\n switchViewButton: ({ theme }) => ({\n marginInlineStart: theme.spacing(1),\n }),\n },\n },\n MuiPickersDay: {\n styleOverrides: {\n dayWithMargin: () => ({\n marginLeft: 0,\n marginRight: 0,\n }),\n root: ({ theme }) => [\n dateStyles.default({ theme }),\n {\n border: \"none\",\n borderRadius: theme.mixins.borderRadius,\n flexBasis: theme.spacing(6),\n flexShrink: 0,\n fontSize: theme.typography.body1.fontSize,\n height: theme.spacing(6),\n width: theme.spacing(6),\n\n \"&.MuiPickersDay-today\": [\n dateStyles.today({ theme }),\n {\n fontWeight: theme.typography.fontWeightBold,\n },\n ],\n\n \"&.MuiPickersDay-today::after\": todayDotStyles.default({ theme }),\n \"&.MuiPickersDay-today.Mui-selected::after\":\n todayDotStyles.selected({ theme }),\n \"&.MuiPickersDay-dayOutsideMonth\": dateStyles.outsideOfMonth({\n theme,\n }),\n \"&:hover\": dateStyles.hover({ theme }),\n \"&:focus\": dateStyles.focus({ theme }),\n\n \"&.Mui-selected, &.Mui-selected:focus\": dateStyles.selected({\n theme,\n }),\n \"&.Mui-selected:hover\": dateStyles.hoverSelected({ theme }),\n\n \"&.Mui-disabled\": dateStyles.disabled({ theme }),\n },\n ],\n },\n },\n MuiPickersPopper: {\n styleOverrides: {\n root: ({ theme }) => ({\n // The MuiDatePicker popper modifier sets this element's width to the\n // field width; clamp it so the popup never collapses below the\n // calendar's natural width (min-content, carried by the weekday-header\n // gap) or grows past the previous default cap.\n minWidth: \"min-content\",\n maxWidth: theme.mixins.maxWidth,\n }),\n paper: ({ theme }) => ({\n boxShadow: `0 ${1 / 14}rem ${\n 4 / 14\n }rem rgba(29, 29, 33, 0.08), 0 ${4 / 14}rem ${\n 10 / 14\n }rem rgba(29, 29, 33, 0.08), 0 ${8 / 14}rem ${\n 30 / 14\n }rem rgba(29, 29, 33, 0.1)`,\n marginTop: theme.spacing(1),\n }),\n },\n },\n MuiYearCalendar: {\n styleOverrides: {\n root: ({ theme }) => ({\n display: \"block\",\n width: \"auto\",\n maxHeight: `${284 / 14}rem`,\n marginBottom: `-${theme.spacing(popupSpacingValue)}`,\n marginInlineEnd: 0,\n paddingInline: 0,\n }),\n },\n },\n MuiPickersYear: {\n styleOverrides: {\n root: () => ({\n width: \"100%\",\n justifyContent: \"flex-start\",\n }),\n yearButton: ({ theme }) => [\n yearStyles.default({ theme }),\n {\n position: \"relative\",\n display: \"flex\",\n alignItems: \"center\",\n justifyContent: \"flex-start\",\n width: \"100%\",\n marginBottom: 0,\n marginTop: 0,\n paddingBlock: theme.spacing(3),\n paddingInline: theme.spacing(4),\n borderRadius: theme.shape.borderRadius,\n fontSize: theme.typography.body1.fontSize,\n\n \"&:hover\": yearStyles.hover({ theme }),\n\n \"&:not(.Mui-selected)\": {\n border: \"none\",\n },\n\n \"&.Mui-disabled\": yearStyles.disabled({ theme }),\n },\n ],\n selected: ({ theme }) => ({\n \"&, &:focus\": yearStyles.selected({ theme }),\n \"&:hover\": yearStyles.hoverSelected({ theme }),\n \"&::after\": yearCheckStyles.default({ theme }),\n }),\n },\n },\n MuiPickersArrowSwitcher: {\n styleOverrides: {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AE;UACN5B,MAAM,EAAE;QACV;MACF;IACF;EACF;AACF,CAAC","ignoreList":[]}
@@ -9,8 +9,10 @@ var _DialogActions2 = _interopRequireDefault(require("@mui/material/DialogAction
9
9
  var _DialogContent2 = _interopRequireDefault(require("@mui/material/DialogContent"));
10
10
  var _DialogTitle2 = _interopRequireDefault(require("@mui/material/DialogTitle"));
11
11
  var _DialogContentText2 = _interopRequireDefault(require("@mui/material/DialogContentText"));
12
+ var _Button = require("@mui/material/Button");
12
13
  var _react = require("react");
13
- var _Button = require("./Buttons/Button.cjs");
14
+ var _Button2 = require("./Buttons/Button.cjs");
15
+ var _createOdysseyStyledComponent = require("./createOdysseyStyledComponent.cjs");
14
16
  var _FullScreenOverlay = require("./FullScreenOverlay.cjs");
15
17
  var _i18n = require("./i18n.generated/i18n.cjs");
16
18
  var _index = require("./icons.generated/index.cjs");
@@ -29,6 +31,25 @@ function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e
29
31
  * See the License for the specific language governing permissions and limitations under the License.
30
32
  */
31
33
 
34
+ const DialogTitleContainer = (0, _createOdysseyStyledComponent.createOdysseyStyledComponent)({
35
+ tag: "div"
36
+ })(({
37
+ odysseyDesignTokens
38
+ }) => ({
39
+ display: "flex",
40
+ justifyContent: "space-between",
41
+ alignItems: "center",
42
+ marginBlockEnd: 0,
43
+ padding: 0,
44
+ paddingBlockStart: odysseyDesignTokens.Spacing5,
45
+ paddingBlockEnd: odysseyDesignTokens.Spacing4,
46
+ paddingInline: odysseyDesignTokens.Spacing6,
47
+ fontFamily: odysseyDesignTokens.TypographyFamilyHeading,
48
+ [`& > .${_Button.buttonClasses.root}`]: {
49
+ marginInlineEnd: `-${odysseyDesignTokens.Spacing3}`,
50
+ flexShrink: 0
51
+ }
52
+ }));
32
53
  const Dialog = ({
33
54
  primaryCallToActionComponent,
34
55
  secondaryCallToActionComponent,
@@ -49,7 +70,6 @@ const Dialog = ({
49
70
  } = (0, _i18n.useTranslation)();
50
71
  const [isContentScrollable, setIsContentScrollable] = (0, _react.useState)(false);
51
72
  const dialogContentRef = (0, _react.useRef)(null);
52
- const dialogTitleId = (0, _useUniqueId.useUniqueId)();
53
73
  const dialogLabelId = (0, _useUniqueId.useUniqueId)();
54
74
  (0, _react.useEffect)(() => {
55
75
  let frameId;
@@ -86,13 +106,12 @@ const Dialog = ({
86
106
  onClose: onClose,
87
107
  open: isOpen,
88
108
  slotProps: slotProps,
89
- children: [(0, _jsxRuntime.jsxs)(_DialogTitle2.default, {
90
- id: dialogTitleId,
91
- translate: translate,
92
- children: [(0, _jsxRuntime.jsx)("span", {
109
+ children: [(0, _jsxRuntime.jsxs)(DialogTitleContainer, {
110
+ children: [(0, _jsxRuntime.jsx)(_DialogTitle2.default, {
93
111
  id: dialogLabelId,
112
+ translate: translate,
94
113
  children: title
95
- }), (0, _jsxRuntime.jsx)(_Button.Button, {
114
+ }), (0, _jsxRuntime.jsx)(_Button2.Button, {
96
115
  ariaLabel: t("close.text"),
97
116
  onClick: handleCloseButtonClick,
98
117
  size: "small",
@@ -115,5 +134,5 @@ const Dialog = ({
115
134
  });
116
135
  };
117
136
  const MemoizedDialog = exports.Dialog = (0, _react.memo)(Dialog);
118
- MemoizedDialog.displayName = "Dialog::pkg=odyssey&odysseyV=1.62.2";
137
+ MemoizedDialog.displayName = "Dialog::pkg=odyssey&odysseyV=1.64.0";
119
138
  //# sourceMappingURL=Dialog.cjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"Dialog.cjs","names":["_react","require","_Button","_FullScreenOverlay","_i18n","_index","_useUniqueId","_jsxRuntime","_interopRequireDefault","e","__esModule","default","Dialog","primaryCallToActionComponent","secondaryCallToActionComponent","tertiaryCallToActionComponent","callToActionFirstComponent","callToActionSecondComponent","callToActionLastComponent","children","isOpen","onClose","testId","title","translate","variant","t","useTranslation","isContentScrollable","setIsContentScrollable","useState","dialogContentRef","useRef","dialogTitleId","useUniqueId","dialogLabelId","useEffect","frameId","handleContentScroll","dialogContentElement","current","cancelAnimationFrame","scrollHeight","clientHeight","requestAnimationFrame","content","jsx","_DialogContentText2","actionButtons","filter","Boolean","handleCloseButtonClick","useCallback","event","slotProps","useMemo","backdrop","FullScreenOverlay","overlayType","jsxs","_Dialog2","open","_DialogTitle2","id","Button","ariaLabel","onClick","size","startIcon","CloseIcon","_DialogContent2","tabIndex","dividers","ref","length","_DialogActions2","map","actionButton","index","cloneElement","key","MemoizedDialog","exports","memo","displayName"],"sources":["../../src/Dialog.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\nimport {\n Dialog as MuiDialog,\n DialogActions as MuiDialogActions,\n DialogContent as MuiDialogContent,\n DialogContentText as MuiDialogContentText,\n DialogProps as MuiDialogProps,\n DialogTitle as MuiDialogTitle,\n} from \"@mui/material\";\nimport {\n cloneElement,\n memo,\n ReactElement,\n ReactNode,\n useCallback,\n useEffect,\n useMemo,\n useRef,\n useState,\n} from \"react\";\n\nimport type { HtmlProps } from \"./HtmlProps.js\";\n\nimport { Button, ButtonProps } from \"./Buttons/Button.js\";\nimport { FullScreenOverlay } from \"./FullScreenOverlay.js\";\nimport { useTranslation } from \"./i18n.generated/i18n.js\";\nimport { CloseIcon } from \"./icons.generated/index.js\";\nimport { useUniqueId } from \"./useUniqueId.js\";\n\ntype MuiOnCloseEvent = Parameters<Required<MuiDialogProps>[\"onClose\"]>[0];\ntype MuiOnCloseReason = Parameters<Required<MuiDialogProps>[\"onClose\"]>[1];\nexport type DialogOnCloseReason = MuiOnCloseReason | \"closeButtonClick\";\n\nexport type DialogProps = {\n /**\n * @deprecated `aria-label` for close button comes from translation file\n */\n ariaLabel?: string;\n\n /**\n * @deprecated Will be removed in a future Odyssey version. Use `primaryCallToActionComponent` instead.\n */\n callToActionFirstComponent?: ReactElement<typeof Button>;\n /**\n * @deprecated Will be removed in a future Odyssey version. Use `tertiaryCallToActionComponent` instead.\n */\n callToActionLastComponent?: ReactElement<typeof Button>;\n /**\n * @deprecated Will be removed in a future Odyssey version. Use `secondaryCallToActionComponent` instead.\n */\n callToActionSecondComponent?: ReactElement<typeof Button>;\n /**\n * The content of the Dialog. May be a `string` or any other `ReactNode` or array of `ReactNode`s.\n */\n children: ReactNode;\n /**\n * When set to `true`, the Dialog will be visible.\n */\n isOpen: boolean;\n /**\n * Callback that controls what happens when the Dialog is dismissed.\n */\n onClose: (event: MuiOnCloseEvent, reason: DialogOnCloseReason) => void;\n /**\n * An optional Button object to be situated in the Dialog footer as the primary call to action.\n */\n primaryCallToActionComponent?: ReactElement<typeof Button>;\n /**\n * An optional Button object to be situated in the Dialog footer as the secondary call to action, alongside the `primaryCallToActionComponent`.\n */\n secondaryCallToActionComponent?: ReactElement<typeof Button>;\n\n /**\n * An optional Button object to be situated in the Dialog footer as the tertiary call to action, alongside the other `callToAction` components.\n */\n tertiaryCallToActionComponent?: ReactElement<typeof Button>;\n\n /**\n * The title of the Dialog.\n */\n title: string;\n\n /**\n * When set to `security`, the Dialog backdrop will be opaque.\n */\n variant?: \"default\" | \"security\";\n} & Pick<HtmlProps, \"testId\" | \"translate\">;\n\nconst Dialog = ({\n primaryCallToActionComponent,\n secondaryCallToActionComponent,\n tertiaryCallToActionComponent,\n callToActionFirstComponent,\n callToActionSecondComponent,\n callToActionLastComponent,\n children,\n isOpen,\n onClose,\n testId,\n title,\n translate,\n variant = \"default\",\n}: DialogProps) => {\n const { t } = useTranslation();\n const [isContentScrollable, setIsContentScrollable] = useState(false);\n const dialogContentRef = useRef<HTMLDivElement>(null);\n const dialogTitleId = useUniqueId();\n const dialogLabelId = useUniqueId();\n\n useEffect(() => {\n let frameId: number;\n\n const handleContentScroll = () => {\n const dialogContentElement = dialogContentRef.current;\n if (dialogContentElement) {\n cancelAnimationFrame(frameId);\n setIsContentScrollable(\n dialogContentElement.scrollHeight > dialogContentElement.clientHeight,\n );\n }\n frameId = requestAnimationFrame(handleContentScroll);\n };\n\n if (isOpen) {\n frameId = requestAnimationFrame(handleContentScroll);\n }\n\n return () => {\n cancelAnimationFrame(frameId);\n };\n }, [isOpen]);\n\n const content =\n typeof children === \"string\" ? (\n <MuiDialogContentText>{children}</MuiDialogContentText>\n ) : (\n children\n );\n\n // Prioritize new action button format (|| used as a fallback)\n const actionButtons = [\n tertiaryCallToActionComponent || callToActionLastComponent,\n secondaryCallToActionComponent || callToActionSecondComponent,\n primaryCallToActionComponent || callToActionFirstComponent,\n ].filter(Boolean);\n\n const handleCloseButtonClick = useCallback<\n NonNullable<ButtonProps[\"onClick\"]>\n >((event) => onClose(event, \"closeButtonClick\"), [onClose]);\n\n const slotProps = useMemo<MuiDialogProps[\"slotProps\"]>(\n () => ({\n backdrop: { variant: variant },\n }),\n [variant],\n );\n\n return (\n <FullScreenOverlay overlayType=\"dialog\">\n <MuiDialog\n aria-labelledby={dialogLabelId}\n data-se={testId}\n onClose={onClose}\n open={isOpen}\n slotProps={slotProps}\n >\n <MuiDialogTitle\n id={dialogTitleId} // We need to explicitly unset `id` for MUI to automatically set it based on the `aria-labelledby` prop passed to `MuiDialog`\n translate={translate}\n >\n <span id={dialogLabelId}>{title}</span>\n <Button\n ariaLabel={t(\"close.text\")}\n onClick={handleCloseButtonClick}\n size=\"small\"\n startIcon={<CloseIcon />}\n variant=\"floating\"\n />\n </MuiDialogTitle>\n\n <MuiDialogContent\n {...(isContentScrollable && {\n // Sets tabIndex on content element if scrollable so content is easier to navigate with the keyboard\n tabIndex: 0,\n })}\n dividers={isContentScrollable}\n ref={dialogContentRef}\n >\n {content}\n </MuiDialogContent>\n\n {actionButtons.length > 0 && (\n <MuiDialogActions>\n {actionButtons.map((actionButton, index) =>\n actionButton ? cloneElement(actionButton, { key: index }) : null,\n )}\n </MuiDialogActions>\n )}\n </MuiDialog>\n </FullScreenOverlay>\n );\n};\n\nconst MemoizedDialog = memo(Dialog);\nMemoizedDialog.displayName = \"Dialog\";\n\nexport { MemoizedDialog as Dialog };\n"],"mappings":";;;;;;;;;;;AAoBA,IAAAA,MAAA,GAAAC,OAAA;AAcA,IAAAC,OAAA,GAAAD,OAAA;AACA,IAAAE,kBAAA,GAAAF,OAAA;AACA,IAAAG,KAAA,GAAAH,OAAA;AACA,IAAAI,MAAA,GAAAJ,OAAA;AACA,IAAAK,YAAA,GAAAL,OAAA;AAA+C,IAAAM,WAAA,GAAAN,OAAA;AAAA,SAAAO,uBAAAC,CAAA,WAAAA,CAAA,IAAAA,CAAA,CAAAC,UAAA,GAAAD,CAAA,KAAAE,OAAA,EAAAF,CAAA;AAtC/C;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAyFA,MAAMG,MAAM,GAAGA,CAAC;EACdC,4BAA4B;EAC5BC,8BAA8B;EAC9BC,6BAA6B;EAC7BC,0BAA0B;EAC1BC,2BAA2B;EAC3BC,yBAAyB;EACzBC,QAAQ;EACRC,MAAM;EACNC,OAAO;EACPC,MAAM;EACNC,KAAK;EACLC,SAAS;EACTC,OAAO,GAAG;AACC,CAAC,KAAK;EACjB,MAAM;IAAEC;EAAE,CAAC,GAAG,IAAAC,oBAAc,EAAC,CAAC;EAC9B,MAAM,CAACC,mBAAmB,EAAEC,sBAAsB,CAAC,GAAG,IAAAC,eAAQ,EAAC,KAAK,CAAC;EACrE,MAAMC,gBAAgB,GAAG,IAAAC,aAAM,EAAiB,IAAI,CAAC;EACrD,MAAMC,aAAa,GAAG,IAAAC,wBAAW,EAAC,CAAC;EACnC,MAAMC,aAAa,GAAG,IAAAD,wBAAW,EAAC,CAAC;EAEnC,IAAAE,gBAAS,EAAC,MAAM;IACd,IAAIC,OAAe;IAEnB,MAAMC,mBA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e,CACnB;IAAA,CACQ;EAAC,CACK,CAAC;AAExB,CAAC;AAED,MAAMG,cAAc,GAAAC,OAAA,CAAAtE,MAAA,GAAG,IAAAuE,WAAI,EAACvE,MAAM,CAAC;AACnCqE,cAAc,CAACG,WAAW,wCAAW","ignoreList":[]}
1
+ {"version":3,"file":"Dialog.cjs","names":["_Button","require","_react","_Button2","_createOdysseyStyledComponent","_FullScreenOverlay","_i18n","_index","_useUniqueId","_jsxRuntime","_interopRequireDefault","e","__esModule","default","DialogTitleContainer","createOdysseyStyledComponent","tag","odysseyDesignTokens","display","justifyContent","alignItems","marginBlockEnd","padding","paddingBlockStart","Spacing5","paddingBlockEnd","Spacing4","paddingInline","Spacing6","fontFamily","TypographyFamilyHeading","buttonClasses","root","marginInlineEnd","Spacing3","flexShrink","Dialog","primaryCallToActionComponent","secondaryCallToActionComponent","tertiaryCallToActionComponent","callToActionFirstComponent","callToActionSecondComponent","callToActionLastComponent","children","isOpen","onClose","testId","title","translate","variant","t","useTranslation","isContentScrollable","setIsContentScrollable","useState","dialogContentRef","useRef","dialogLabelId","useUniqueId","useEffect","frameId","handleContentScroll","dialogContentElement","current","cancelAnimationFrame","scrollHeight","clientHeight","requestAnimationFrame","content","jsx","_DialogContentText2","actionButtons","filter","Boolean","handleCloseButtonClick","useCallback","event","slotProps","useMemo","backdrop","FullScreenOverlay","overlayType","jsxs","_Dialog2","open","_DialogTitle2","id","Button","ariaLabel","onClick","size","startIcon","CloseIcon","_DialogContent2","tabIndex","dividers","ref","length","_DialogActions2","map","actionButton","index","cloneElement","key","MemoizedDialog","exports","memo","displayName"],"sources":["../../src/Dialog.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\nimport {\n Dialog as MuiDialog,\n DialogActions as MuiDialogActions,\n DialogContent as MuiDialogContent,\n DialogContentText as MuiDialogContentText,\n DialogProps as MuiDialogProps,\n DialogTitle as MuiDialogTitle,\n} from \"@mui/material\";\nimport { buttonClasses } from \"@mui/material/Button\";\nimport {\n cloneElement,\n memo,\n ReactElement,\n ReactNode,\n useCallback,\n useEffect,\n useMemo,\n useRef,\n useState,\n} from \"react\";\n\nimport type { HtmlProps } from \"./HtmlProps.js\";\n\nimport { Button, ButtonProps } from \"./Buttons/Button.js\";\nimport { createOdysseyStyledComponent } from \"./createOdysseyStyledComponent.js\";\nimport { FullScreenOverlay } from \"./FullScreenOverlay.js\";\nimport { useTranslation } from \"./i18n.generated/i18n.js\";\nimport { CloseIcon } from \"./icons.generated/index.js\";\nimport { useUniqueId } from \"./useUniqueId.js\";\n\ntype MuiOnCloseEvent = Parameters<Required<MuiDialogProps>[\"onClose\"]>[0];\ntype MuiOnCloseReason = Parameters<Required<MuiDialogProps>[\"onClose\"]>[1];\nexport type DialogOnCloseReason = MuiOnCloseReason | \"closeButtonClick\";\n\nexport type DialogProps = {\n /**\n * @deprecated `aria-label` for close button comes from translation file\n */\n ariaLabel?: string;\n\n /**\n * @deprecated Will be removed in a future Odyssey version. Use\n * `primaryCallToActionComponent` instead.\n */\n callToActionFirstComponent?: ReactElement<typeof Button>;\n /**\n * @deprecated Will be removed in a future Odyssey version. Use\n * `tertiaryCallToActionComponent` instead.\n */\n callToActionLastComponent?: ReactElement<typeof Button>;\n /**\n * @deprecated Will be removed in a future Odyssey version. Use\n * `secondaryCallToActionComponent` instead.\n */\n callToActionSecondComponent?: ReactElement<typeof Button>;\n /**\n * The content of the Dialog. May be a `string` or any other `ReactNode` or array of `ReactNode`s.\n */\n children: ReactNode;\n /**\n * If `true`, the dialog is visible.\n */\n isOpen: boolean;\n /**\n * Called when the dialog is dismissed. Receives the event and the reason for closing.\n */\n onClose: (event: MuiOnCloseEvent, reason: DialogOnCloseReason) => void;\n /**\n * An optional Button object to be situated in the Dialog footer as the primary call to action.\n */\n primaryCallToActionComponent?: ReactElement<typeof Button>;\n /**\n * An optional Button object to be situated in the Dialog footer as the\n * secondary call to action, alongside the `primaryCallToActionComponent`.\n */\n secondaryCallToActionComponent?: ReactElement<typeof Button>;\n\n /**\n * An optional Button object to be situated in the Dialog footer as the\n * tertiary call to action, alongside the other `callToAction` components.\n */\n tertiaryCallToActionComponent?: ReactElement<typeof Button>;\n\n /**\n * The title of the Dialog.\n */\n title: string;\n\n /**\n * Controls the opacity of the Dialog backdrop.\n * - If `'default'`, semi-transparent backdrop.\n * - If `'security'`, fully opaque backdrop, used for security-sensitive dialogs.\n * @default \"default\"\n */\n variant?: \"default\" | \"security\";\n} & Pick<HtmlProps, \"testId\" | \"translate\">;\n\nconst DialogTitleContainer = createOdysseyStyledComponent({ tag: \"div\" })(\n ({ odysseyDesignTokens }) => ({\n display: \"flex\",\n justifyContent: \"space-between\",\n alignItems: \"center\",\n marginBlockEnd: 0,\n padding: 0,\n paddingBlockStart: odysseyDesignTokens.Spacing5,\n paddingBlockEnd: odysseyDesignTokens.Spacing4,\n paddingInline: odysseyDesignTokens.Spacing6,\n fontFamily: odysseyDesignTokens.TypographyFamilyHeading,\n\n [`& > .${buttonClasses.root}`]: {\n // Pull close button by inline padding amount\n marginInlineEnd: `-${odysseyDesignTokens.Spacing3}`,\n flexShrink: 0,\n },\n }),\n);\n\n/**\n * A modal overlay that interrupts the user to present critical information,\n * collect input, or require confirmation before proceeding.\n */\nconst Dialog = ({\n primaryCallToActionComponent,\n secondaryCallToActionComponent,\n tertiaryCallToActionComponent,\n callToActionFirstComponent,\n callToActionSecondComponent,\n callToActionLastComponent,\n children,\n isOpen,\n onClose,\n testId,\n title,\n translate,\n variant = \"default\",\n}: DialogProps) => {\n const { t } = useTranslation();\n\n const [isContentScrollable, setIsContentScrollable] = useState(false);\n const dialogContentRef = useRef<HTMLDivElement>(null);\n const dialogLabelId = useUniqueId();\n\n useEffect(() => {\n let frameId: number;\n\n const handleContentScroll = () => {\n const dialogContentElement = dialogContentRef.current;\n if (dialogContentElement) {\n cancelAnimationFrame(frameId);\n setIsContentScrollable(\n dialogContentElement.scrollHeight > dialogContentElement.clientHeight,\n );\n }\n frameId = requestAnimationFrame(handleContentScroll);\n };\n\n if (isOpen) {\n frameId = requestAnimationFrame(handleContentScroll);\n }\n\n return () => {\n cancelAnimationFrame(frameId);\n };\n }, [isOpen]);\n\n const content =\n typeof children === \"string\" ? (\n <MuiDialogContentText>{children}</MuiDialogContentText>\n ) : (\n children\n );\n\n // Prioritize new action button format (|| used as a fallback)\n const actionButtons = [\n tertiaryCallToActionComponent || callToActionLastComponent,\n secondaryCallToActionComponent || callToActionSecondComponent,\n primaryCallToActionComponent || callToActionFirstComponent,\n ].filter(Boolean);\n\n const handleCloseButtonClick = useCallback<\n NonNullable<ButtonProps[\"onClick\"]>\n >((event) => onClose(event, \"closeButtonClick\"), [onClose]);\n\n const slotProps = useMemo<MuiDialogProps[\"slotProps\"]>(\n () => ({\n backdrop: { variant: variant },\n }),\n [variant],\n );\n\n return (\n <FullScreenOverlay overlayType=\"dialog\">\n <MuiDialog\n aria-labelledby={dialogLabelId}\n data-se={testId}\n onClose={onClose}\n open={isOpen}\n slotProps={slotProps}\n >\n <DialogTitleContainer>\n <MuiDialogTitle id={dialogLabelId} translate={translate}>\n {title}\n </MuiDialogTitle>\n <Button\n ariaLabel={t(\"close.text\")}\n onClick={handleCloseButtonClick}\n size=\"small\"\n startIcon={<CloseIcon />}\n variant=\"floating\"\n />\n </DialogTitleContainer>\n\n <MuiDialogContent\n {...(isContentScrollable && {\n // Sets tabIndex on content element if scrollable so content is easier to navigate with the keyboard\n tabIndex: 0,\n })}\n dividers={isContentScrollable}\n ref={dialogContentRef}\n >\n {content}\n </MuiDialogContent>\n\n {actionButtons.length > 0 && (\n <MuiDialogActions>\n {actionButtons.map((actionButton, index) =>\n actionButton ? cloneElement(actionButton, { key: index }) : null,\n )}\n </MuiDialogActions>\n )}\n </MuiDialog>\n </FullScreenOverlay>\n );\n};\n\nconst MemoizedDialog = memo(Dialog);\nMemoizedDialog.displayName = \"Dialog\";\n\nexport { MemoizedDialog as Dialog };\n"],"mappings":";;;;;;;;;;;AAoBA,IAAAA,OAAA,GAAAC,OAAA;AACA,IAAAC,MAAA,GAAAD,OAAA;AAcA,IAAAE,QAAA,GAAAF,OAAA;AACA,IAAAG,6BAAA,GAAAH,OAAA;AACA,IAAAI,kBAAA,GAAAJ,OAAA;AACA,IAAAK,KAAA,GAAAL,OAAA;AACA,IAAAM,MAAA,GAAAN,OAAA;AACA,IAAAO,YAAA,GAAAP,OAAA;AAA+C,IAAAQ,WAAA,GAAAR,OAAA;AAAA,SAAAS,uBAAAC,CAAA,WAAAA,CAAA,IAAAA,CAAA,CAAAC,UAAA,GAAAD,CAAA,KAAAE,OAAA,EAAAF,CAAA;AAxC/C;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAmGA,MAAMG,oBAAoB,GAAG,IAAAC,0DAA4B,EAAC;EAAEC,GAAG,EAAE;AAAM,CAAC,CAAC,CACvE,CAAC;EAAEC;AAAoB,CAAC,MAAM;EAC5BC,OAAO,EAAE,MAAM;EACfC,cAAc,EAAE,eAAe;EAC/BC,UAAU,EAAE,QAAQ;EACpBC,cAAc,EAAE,CAAC;EACjBC,OAAO,EAAE,CAAC;EACVC,iBAAiB,EAAEN,mBAAmB,CAACO,QAAQ;EAC/CC,eAAe,EAAER,mBAAmB,CAACS,QAAQ;EAC7CC,aAAa,EAAEV,mBAAmB,CAACW,QAAQ;EAC3CC,UAAU,EAAEZ,mBAAmB,CAACa,uBAAuB;EAEvD,CAAC,QAAQC,qBAAa,CAACC,IAAI,EAAE,GAAG;IAE9BC,eAAe,EAAE,IAAIhB,mBAAmB,CAACiB,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D,GAAA,EAAC9D,MAAA,CAAAqF,SAAS,IAAE,CAAE;UACzB3C,OAAO,EAAC;QAAU,CACnB,CAAC;MAAA,CACkB,CAAC,EAEvB,IAAAxC,WAAA,CAAA4D,GAAA,EAAAwB,eAAA,CAAAhF,OAAA;QAAA,IACOuC,mBAAmB,IAAI;UAE1B0C,QAAQ,EAAE;QACZ,CAAC;QACDC,QAAQ,EAAE3C,mBAAoB;QAC9B4C,GAAG,EAAEzC,gBAAiB;QAAAZ,QAAA,EAErByB;MAAO,CACQ,CAAC,EAElBG,aAAa,CAAC0B,MAAM,GAAG,CAAC,IACvB,IAAAxF,WAAA,CAAA4D,GAAA,EAAA6B,eAAA,CAAArF,OAAA;QAAA8B,QAAA,EACG4B,aAAa,CAAC4B,GAAG,CAAC,CAACC,YAAY,EAAEC,KAAK,KACrCD,YAAY,GAAG,IAAAE,mBAAY,EAACF,YAAY,EAAE;UAAEG,GAAG,EAAEF;QAAM,CAAC,CAAC,GAAG,IAC9D;MAAC,CACe,CACnB;IAAA,CACQ;EAAC,CACK,CAAC;AAExB,CAAC;AAED,MAAMG,cAAc,GAAAC,OAAA,CAAArE,MAAA,GAAG,IAAAsE,WAAI,EAACtE,MAAM,CAAC;AACnCoE,cAAc,CAACG,WAAW,wCAAW","ignoreList":[]}
@@ -192,5 +192,5 @@ const Drawer = ({
192
192
  }) : muiDrawerComponent;
193
193
  };
194
194
  const MemoizedDrawer = exports.Drawer = (0, _react.memo)(Drawer);
195
- MemoizedDrawer.displayName = "Drawer::pkg=odyssey&odysseyV=1.62.2";
195
+ MemoizedDrawer.displayName = "Drawer::pkg=odyssey&odysseyV=1.64.0";
196
196
  //# sourceMappingURL=Drawer.cjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"Drawer.cjs","names":["_styled","_interopRequireDefault","require","_react","_Button","_FullScreenOverlay","_i18n","_index","_OdysseyDesignTokensContext","_Typography","_jsxRuntime","e","__esModule","default","variantValues","exports","DrawerHeader","styled","shouldForwardProp","prop","odysseyDesignTokens","Spacing4","Spacing5","HueNeutral900","HueNeutralWhite","hasDividers","HueNeutral200","DrawerContentWrapper","display","gridTemplateAreas","gridTemplateRows","overflow","DrawerContent","DrawerFooter","Drawer","ariaLabel","children","hasDividersProp","isOpen","onClose","primaryCallToActionComponent","secondaryCallToActionComponent","showDividers","tertiaryCallToActionComponent","testId","title","translate","variant","isContentScrollable","setIsContentScrollable","useState","drawerContentRef","useRef","useOdysseyDesignTokens","i18n","useTranslation","anchorDirection","dir","useEffect","frameId","handleContentScroll","drawerContentElement","current","cancelAnimationFrame","scrollHeight","clientHeight","requestAnimationFrame","dividersVisible","useMemo","hasFooter","handleCloseButtonClick","useCallback","event","muiDrawerComponent","jsx","_Drawer2","anchor","open","sx","transition","jsxs","Heading5","Button","onClick","size","startIcon","CloseIcon","tabIndex","ref","FullScreenOverlay","overlayType","MemoizedDrawer","memo","displayName"],"sources":["../../src/Drawer.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 Drawer as MuiDrawer,\n DrawerProps as MuiDrawerProps,\n} from \"@mui/material\";\nimport {\n memo,\n ReactElement,\n ReactNode,\n useCallback,\n useEffect,\n useMemo,\n useRef,\n useState,\n} from \"react\";\n\nimport type { HtmlProps } from \"./HtmlProps.js\";\n\nimport { Button, ButtonProps } from \"./Buttons/Button.js\";\nimport { FullScreenOverlay } from \"./FullScreenOverlay.js\";\nimport { useTranslation } from \"./i18n.generated/i18n.js\";\nimport { CloseIcon } from \"./icons.generated/index.js\";\nimport {\n DesignTokens,\n useOdysseyDesignTokens,\n} from \"./OdysseyDesignTokensContext.js\";\nimport { Heading5 } from \"./Typography.js\";\n\ntype MuiOnCloseEvent = Parameters<Required<MuiDrawerProps>[\"onClose\"]>[0];\ntype MuiOnCloseReason = Parameters<Required<MuiDrawerProps>[\"onClose\"]>[1];\nexport type DrawerOnCloseReason = MuiOnCloseReason | \"closeButtonClick\";\n\nexport const variantValues = [\"temporary\", \"persistent\"] as const;\n\nexport type DrawerProps = {\n /**\n * The content of the Drawer. May be a `string` or any other `ReactNode` or array of `ReactNode`s.\n */\n children?: ReactNode;\n /**\n * When set to `true`, the Drawer will be visible.\n */\n isOpen?: boolean;\n /**\n * Callback that controls what happens when the Drawer is dismissed\n */\n onClose: (event: MuiOnCloseEvent, reason: DrawerOnCloseReason) => void;\n /**\n * An optional Button object to be situated in the Drawerfooter. Should almost always be of variant `primary`.\n */\n primaryCallToActionComponent?: ReactElement<typeof Button>;\n /**\n * An optional Button object to be situated in the Drawer footer, alongside the `callToActionPrimaryComponent`.\n */\n secondaryCallToActionComponent?: ReactElement<typeof Button>;\n /**\n * An optional Button object to be situated in the Drawer footer, alongside the other two `callToAction` components.\n */\n tertiaryCallToActionComponent?: ReactElement<typeof Button>;\n /**\n * The title of the Drawer\n */\n title?: string;\n /**\n * Type of Drawer\n */\n variant?: (typeof variantValues)[number];\n} & Pick<HtmlProps, \"ariaLabel\" | \"testId\" | \"translate\"> &\n (\n | {\n /**\n * Shows divider lines separating header, content, and footer (if using action buttons).\n */\n hasDividers?: never;\n /**\n * @deprecated use `hasDividers` instead.\n *\n * Shows divider lines separating header, content, and footer (if using action buttons).\n */\n showDividers: boolean;\n }\n | {\n /**\n * Shows divider lines separating header, content, and footer (if using action buttons).\n */\n hasDividers: boolean;\n /**\n * @deprecated use `hasDividers` instead.\n *\n * Shows divider lines separating header, content, and footer (if using action buttons).\n */\n showDividers?: never;\n }\n );\n\ntype DrawerStyleProps = {\n hasDividers: boolean;\n odysseyDesignTokens: DesignTokens;\n};\n\nconst DrawerHeader = styled(\"div\", {\n shouldForwardProp: (prop) =>\n prop !== \"odysseyDesignTokens\" && prop !== \"hasDividers\",\n})<DrawerStyleProps>`\n grid-area: header;\n position: sticky;\n top: 0;\n display: flex;\n justify-content: space-between;\n align-items: center;\n margin: 0;\n padding: ${({ odysseyDesignTokens }) => odysseyDesignTokens.Spacing4}\n ${({ odysseyDesignTokens }) => odysseyDesignTokens.Spacing5};\n color: ${({ odysseyDesignTokens }) => odysseyDesignTokens.HueNeutral900};\n background-color: ${({ odysseyDesignTokens }) =>\n odysseyDesignTokens.HueNeutralWhite};\n border-bottom: ${({ hasDividers, odysseyDesignTokens }) =>\n hasDividers ? `1px solid ${odysseyDesignTokens.HueNeutral200}` : \"none\"};\n`;\n\nconst DrawerContentWrapper = styled(\"div\", {\n shouldForwardProp: (prop) => prop !== \"odysseyDesignTokens\",\n})<{\n odysseyDesignTokens: DesignTokens;\n}>({\n display: \"grid\",\n gridTemplateAreas: `\n \"header\"\n \"content\"\n \"footer\"\n `,\n gridTemplateRows: \"auto 1fr auto\",\n overflow: \"hidden\",\n});\n\nconst DrawerContent = styled(\"div\", {\n shouldForwardProp: (prop) =>\n prop !== \"odysseyDesignTokens\" && prop !== \"hasDividers\",\n})<DrawerStyleProps>`\n grid-area: content;\n overflow-y: auto;\n padding: ${({ hasDividers, odysseyDesignTokens }) =>\n hasDividers\n ? `${odysseyDesignTokens.Spacing5}`\n : `0 ${odysseyDesignTokens.Spacing5}`};\n`;\n\nconst DrawerFooter = styled(\"div\", {\n shouldForwardProp: (prop) =>\n prop !== \"odysseyDesignTokens\" && prop !== \"hasDividers\",\n})<DrawerStyleProps>`\n grid-area: footer;\n position: sticky;\n bottom: 0;\n display: flex;\n justify-content: flex-end;\n align-items: center;\n align-content: center;\n padding: ${({ odysseyDesignTokens }) => odysseyDesignTokens.Spacing4};\n border-top: ${({ hasDividers, odysseyDesignTokens }) =>\n hasDividers ? `1px solid ${odysseyDesignTokens.HueNeutral200}` : \"none\"};\n background-color: ${({ odysseyDesignTokens }) =>\n odysseyDesignTokens.HueNeutralWhite};\n`;\n\nconst Drawer = ({\n ariaLabel,\n children,\n hasDividers: hasDividersProp = false,\n isOpen,\n onClose,\n primaryCallToActionComponent,\n secondaryCallToActionComponent,\n showDividers = false,\n tertiaryCallToActionComponent,\n testId,\n title,\n translate,\n variant = \"temporary\",\n}: DrawerProps) => {\n const [isContentScrollable, setIsContentScrollable] = useState(false);\n const drawerContentRef = useRef<HTMLDivElement>(null);\n const odysseyDesignTokens = useOdysseyDesignTokens();\n\n const hasDividers = hasDividersProp || showDividers;\n\n //If RTL is set in the theme, align the drawer on the left side of the screen, uses right by default.\n const { i18n } = useTranslation();\n const anchorDirection = i18n.dir() === \"rtl\" ? \"left\" : \"right\";\n\n useEffect(() => {\n let frameId: number;\n\n const handleContentScroll = () => {\n const drawerContentElement = drawerContentRef.current;\n if (drawerContentElement) {\n cancelAnimationFrame(frameId);\n setIsContentScrollable(\n drawerContentElement.scrollHeight > drawerContentElement.clientHeight,\n );\n }\n frameId = requestAnimationFrame(handleContentScroll);\n };\n\n if (isOpen) {\n frameId = requestAnimationFrame(handleContentScroll);\n }\n\n return () => {\n cancelAnimationFrame(frameId);\n };\n }, [isOpen]);\n\n const dividersVisible = useMemo(() => {\n return hasDividers || isContentScrollable;\n }, [hasDividers, isContentScrollable]);\n\n const hasFooter = useMemo(\n () =>\n primaryCallToActionComponent ||\n secondaryCallToActionComponent ||\n tertiaryCallToActionComponent,\n [\n primaryCallToActionComponent,\n secondaryCallToActionComponent,\n tertiaryCallToActionComponent,\n ],\n );\n\n const handleCloseButtonClick = useCallback<\n NonNullable<ButtonProps[\"onClick\"]>\n >((event) => onClose(event, \"closeButtonClick\"), [onClose]);\n\n const muiDrawerComponent = useMemo(\n () => (\n <MuiDrawer\n anchor={anchorDirection}\n data-se={testId}\n onClose={onClose}\n open={isOpen}\n sx={{\n //Overrides default MUI inline style\n ...(variant === \"persistent\" && {\n \"& .MuiDrawer-paper\": {\n transition: \"none\",\n },\n }),\n }}\n variant={variant}\n >\n <DrawerContentWrapper odysseyDesignTokens={odysseyDesignTokens}>\n <DrawerHeader\n hasDividers={dividersVisible}\n odysseyDesignTokens={odysseyDesignTokens}\n translate={translate}\n >\n <Heading5>{title}</Heading5>\n <Button\n ariaLabel={ariaLabel}\n onClick={handleCloseButtonClick}\n size=\"small\"\n startIcon={<CloseIcon />}\n variant=\"floating\"\n />\n </DrawerHeader>\n <DrawerContent\n {...(isContentScrollable && {\n //Sets tabIndex on content element if scrollable so content is easier to navigate with the keyboard\n tabIndex: 0,\n })}\n hasDividers={dividersVisible}\n odysseyDesignTokens={odysseyDesignTokens}\n ref={drawerContentRef}\n >\n {children}\n </DrawerContent>\n {hasFooter && (\n <DrawerFooter\n hasDividers={dividersVisible}\n odysseyDesignTokens={odysseyDesignTokens}\n >\n {tertiaryCallToActionComponent}\n {secondaryCallToActionComponent}\n {primaryCallToActionComponent}\n </DrawerFooter>\n )}\n </DrawerContentWrapper>\n </MuiDrawer>\n ),\n [\n anchorDirection,\n ariaLabel,\n children,\n dividersVisible,\n handleCloseButtonClick,\n hasFooter,\n isContentScrollable,\n isOpen,\n odysseyDesignTokens,\n onClose,\n primaryCallToActionComponent,\n secondaryCallToActionComponent,\n tertiaryCallToActionComponent,\n testId,\n title,\n translate,\n variant,\n ],\n );\n\n return variant === \"temporary\" ? (\n <FullScreenOverlay overlayType=\"drawer\">\n {muiDrawerComponent}\n </FullScreenOverlay>\n ) : (\n muiDrawerComponent\n );\n};\n\nconst MemoizedDrawer = memo(Drawer);\nMemoizedDrawer.displayName = \"Drawer\";\n\nexport { MemoizedDrawer as Drawer };\n"],"mappings":";;;;;;;AAYA,IAAAA,OAAA,GAAAC,sBAAA,CAAAC,OAAA;AAKA,IAAAC,MAAA,GAAAD,OAAA;AAaA,IAAAE,OAAA,GAAAF,OAAA;AACA,IAAAG,kBAAA,GAAAH,OAAA;AACA,IAAAI,KA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AA,EAErBA;MAAQ,CACI,CAAC,EACfiC,SAAS,IACR,IAAA3D,WAAA,CAAAsE,IAAA,EAAC/C,YAAY;QACXR,WAAW,EAAE0C,eAAgB;QAC7B/C,mBAAmB,EAAEA,mBAAoB;QAAAgB,QAAA,GAExCO,6BAA6B,EAC7BF,8BAA8B,EAC9BD,4BAA4B;MAAA,CACjB,CACf;IAAA,CACmB;EAAC,CACd,CACZ,EACD,CACEgB,eAAe,EACfrB,SAAS,EACTC,QAAQ,EACR+B,eAAe,EACfG,sBAAsB,EACtBD,SAAS,EACTrB,mBAAmB,EACnBV,MAAM,EACNlB,mBAAmB,EACnBmB,OAAO,EACPC,4BAA4B,EAC5BC,8BAA8B,EAC9BE,6BAA6B,EAC7BC,MAAM,EACNC,KAAK,EACLC,SAAS,EACTC,OAAO,CAEX,CAAC;EAED,OAAOA,OAAO,KAAK,WAAW,GAC5B,IAAArC,WAAA,CAAAgE,GAAA,EAACrE,kBAAA,CAAAoF,iBAAiB;IAACC,WAAW,EAAC,QAAQ;IAAAtD,QAAA,EACpCqC;EAAkB,CACF,CAAC,GAEpBA,kBACD;AACH,CAAC;AAED,MAAMkB,cAAc,GAAA5E,OAAA,CAAAmB,MAAA,GAAG,IAAA0D,WAAI,EAAC1D,MAAM,CAAC;AACnCyD,cAAc,CAACE,WAAW,wCAAW","ignoreList":[]}
1
+ {"version":3,"file":"Drawer.cjs","names":["_styled","_interopRequireDefault","require","_react","_Button","_FullScreenOverlay","_i18n","_index","_OdysseyDesignTokensContext","_Typography","_jsxRuntime","e","__esModule","default","variantValues","exports","DrawerHeader","styled","shouldForwardProp","prop","odysseyDesignTokens","Spacing4","Spacing5","HueNeutral900","HueNeutralWhite","hasDividers","HueNeutral200","DrawerContentWrapper","display","gridTemplateAreas","gridTemplateRows","overflow","DrawerContent","DrawerFooter","Drawer","ariaLabel","children","hasDividersProp","isOpen","onClose","primaryCallToActionComponent","secondaryCallToActionComponent","showDividers","tertiaryCallToActionComponent","testId","title","translate","variant","isContentScrollable","setIsContentScrollable","useState","drawerContentRef","useRef","useOdysseyDesignTokens","i18n","useTranslation","anchorDirection","dir","useEffect","frameId","handleContentScroll","drawerContentElement","current","cancelAnimationFrame","scrollHeight","clientHeight","requestAnimationFrame","dividersVisible","useMemo","hasFooter","handleCloseButtonClick","useCallback","event","muiDrawerComponent","jsx","_Drawer2","anchor","open","sx","transition","jsxs","Heading5","Button","onClick","size","startIcon","CloseIcon","tabIndex","ref","FullScreenOverlay","overlayType","MemoizedDrawer","memo","displayName"],"sources":["../../src/Drawer.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 Drawer as MuiDrawer,\n DrawerProps as MuiDrawerProps,\n} from \"@mui/material\";\nimport {\n memo,\n ReactElement,\n ReactNode,\n useCallback,\n useEffect,\n useMemo,\n useRef,\n useState,\n} from \"react\";\n\nimport type { HtmlProps } from \"./HtmlProps.js\";\n\nimport { Button, ButtonProps } from \"./Buttons/Button.js\";\nimport { FullScreenOverlay } from \"./FullScreenOverlay.js\";\nimport { useTranslation } from \"./i18n.generated/i18n.js\";\nimport { CloseIcon } from \"./icons.generated/index.js\";\nimport {\n DesignTokens,\n useOdysseyDesignTokens,\n} from \"./OdysseyDesignTokensContext.js\";\nimport { Heading5 } from \"./Typography.js\";\n\ntype MuiOnCloseEvent = Parameters<Required<MuiDrawerProps>[\"onClose\"]>[0];\ntype MuiOnCloseReason = Parameters<Required<MuiDrawerProps>[\"onClose\"]>[1];\nexport type DrawerOnCloseReason = MuiOnCloseReason | \"closeButtonClick\";\n\nexport const variantValues = [\"temporary\", \"persistent\"] as const;\n\nexport type DrawerProps = {\n /**\n * The content of the Drawer. May be a `string` or any other `ReactNode` or array of `ReactNode`s.\n */\n children?: ReactNode;\n /**\n * If `true`, the drawer is visible.\n */\n isOpen?: boolean;\n /**\n * Called when the drawer is dismissed. Receives the event and the reason for closing.\n */\n onClose: (event: MuiOnCloseEvent, reason: DrawerOnCloseReason) => void;\n /**\n * An optional Button object to be situated in the Drawer footer. Should\n * almost always be of variant `primary`.\n */\n primaryCallToActionComponent?: ReactElement<typeof Button>;\n /**\n * An optional Button object to be situated in the Drawer footer, alongside\n * the `callToActionPrimaryComponent`.\n */\n secondaryCallToActionComponent?: ReactElement<typeof Button>;\n /**\n * An optional Button object to be situated in the Drawer footer, alongside\n * the other two `callToAction` components.\n */\n tertiaryCallToActionComponent?: ReactElement<typeof Button>;\n /**\n * Heading text displayed at the top of the drawer.\n */\n title?: string;\n /**\n * Controls how the Drawer positions relative to page content.\n * - If `'temporary'`, overlays content and dismisses when the user clicks the backdrop.\n * - If `'persistent'`, pushes the page layout to the side and stays open until explicitly closed.\n * @default \"temporary\"\n */\n variant?: (typeof variantValues)[number];\n} & Pick<HtmlProps, \"ariaLabel\" | \"testId\" | \"translate\"> &\n (\n | {\n /**\n * If `true`, renders divider lines separating the header, content, and footer sections.\n * @default false\n */\n hasDividers?: never;\n /**\n * @deprecated use `hasDividers` instead.\n *\n * If `true`, shows divider lines separating header, content, and footer. Use `hasDividers` instead.\n * @default false\n */\n showDividers: boolean;\n }\n | {\n /**\n * If `true`, renders divider lines separating the header, content, and footer sections.\n * @default false\n */\n hasDividers: boolean;\n /**\n * @deprecated use `hasDividers` instead.\n *\n * If `true`, shows divider lines separating header, content, and footer. Use `hasDividers` instead.\n * @default false\n */\n showDividers?: never;\n }\n );\n\ntype DrawerStyleProps = {\n hasDividers: boolean;\n odysseyDesignTokens: DesignTokens;\n};\n\nconst DrawerHeader = styled(\"div\", {\n shouldForwardProp: (prop) =>\n prop !== \"odysseyDesignTokens\" && prop !== \"hasDividers\",\n})<DrawerStyleProps>`\n grid-area: header;\n position: sticky;\n top: 0;\n display: flex;\n justify-content: space-between;\n align-items: center;\n margin: 0;\n padding: ${({ odysseyDesignTokens }) => odysseyDesignTokens.Spacing4}\n ${({ odysseyDesignTokens }) => odysseyDesignTokens.Spacing5};\n color: ${({ odysseyDesignTokens }) => odysseyDesignTokens.HueNeutral900};\n background-color: ${({ odysseyDesignTokens }) =>\n odysseyDesignTokens.HueNeutralWhite};\n border-bottom: ${({ hasDividers, odysseyDesignTokens }) =>\n hasDividers ? `1px solid ${odysseyDesignTokens.HueNeutral200}` : \"none\"};\n`;\n\nconst DrawerContentWrapper = styled(\"div\", {\n shouldForwardProp: (prop) => prop !== \"odysseyDesignTokens\",\n})<{\n odysseyDesignTokens: DesignTokens;\n}>({\n display: \"grid\",\n gridTemplateAreas: `\n \"header\"\n \"content\"\n \"footer\"\n `,\n gridTemplateRows: \"auto 1fr auto\",\n overflow: \"hidden\",\n});\n\nconst DrawerContent = styled(\"div\", {\n shouldForwardProp: (prop) =>\n prop !== \"odysseyDesignTokens\" && prop !== \"hasDividers\",\n})<DrawerStyleProps>`\n grid-area: content;\n overflow-y: auto;\n padding: ${({ hasDividers, odysseyDesignTokens }) =>\n hasDividers\n ? `${odysseyDesignTokens.Spacing5}`\n : `0 ${odysseyDesignTokens.Spacing5}`};\n`;\n\nconst DrawerFooter = styled(\"div\", {\n shouldForwardProp: (prop) =>\n prop !== \"odysseyDesignTokens\" && prop !== \"hasDividers\",\n})<DrawerStyleProps>`\n grid-area: footer;\n position: sticky;\n bottom: 0;\n display: flex;\n justify-content: flex-end;\n align-items: center;\n align-content: center;\n padding: ${({ odysseyDesignTokens }) => odysseyDesignTokens.Spacing4};\n border-top: ${({ hasDividers, odysseyDesignTokens }) =>\n hasDividers ? `1px solid ${odysseyDesignTokens.HueNeutral200}` : \"none\"};\n background-color: ${({ odysseyDesignTokens }) =>\n odysseyDesignTokens.HueNeutralWhite};\n`;\n\n/**\n * A panel that slides in from the edge of the screen to display supplementary\n * content or actions without navigating away from the current page.\n */\nconst Drawer = ({\n ariaLabel,\n children,\n hasDividers: hasDividersProp = false,\n isOpen,\n onClose,\n primaryCallToActionComponent,\n secondaryCallToActionComponent,\n showDividers = false,\n tertiaryCallToActionComponent,\n testId,\n title,\n translate,\n variant = \"temporary\",\n}: DrawerProps) => {\n const [isContentScrollable, setIsContentScrollable] = useState(false);\n const drawerContentRef = useRef<HTMLDivElement>(null);\n const odysseyDesignTokens = useOdysseyDesignTokens();\n\n const hasDividers = hasDividersProp || showDividers;\n\n //If RTL is set in the theme, align the drawer on the left side of the screen, uses right by default.\n const { i18n } = useTranslation();\n const anchorDirection = i18n.dir() === \"rtl\" ? \"left\" : \"right\";\n\n useEffect(() => {\n let frameId: number;\n\n const handleContentScroll = () => {\n const drawerContentElement = drawerContentRef.current;\n if (drawerContentElement) {\n cancelAnimationFrame(frameId);\n setIsContentScrollable(\n drawerContentElement.scrollHeight > drawerContentElement.clientHeight,\n );\n }\n frameId = requestAnimationFrame(handleContentScroll);\n };\n\n if (isOpen) {\n frameId = requestAnimationFrame(handleContentScroll);\n }\n\n return () => {\n cancelAnimationFrame(frameId);\n };\n }, [isOpen]);\n\n const dividersVisible = useMemo(() => {\n return hasDividers || isContentScrollable;\n }, [hasDividers, isContentScrollable]);\n\n const hasFooter = useMemo(\n () =>\n primaryCallToActionComponent ||\n secondaryCallToActionComponent ||\n tertiaryCallToActionComponent,\n [\n primaryCallToActionComponent,\n secondaryCallToActionComponent,\n tertiaryCallToActionComponent,\n ],\n );\n\n const handleCloseButtonClick = useCallback<\n NonNullable<ButtonProps[\"onClick\"]>\n >((event) => onClose(event, \"closeButtonClick\"), [onClose]);\n\n const muiDrawerComponent = useMemo(\n () => (\n <MuiDrawer\n anchor={anchorDirection}\n data-se={testId}\n onClose={onClose}\n open={isOpen}\n sx={{\n //Overrides default MUI inline style\n ...(variant === \"persistent\" && {\n \"& .MuiDrawer-paper\": {\n transition: \"none\",\n },\n }),\n }}\n variant={variant}\n >\n <DrawerContentWrapper odysseyDesignTokens={odysseyDesignTokens}>\n <DrawerHeader\n hasDividers={dividersVisible}\n odysseyDesignTokens={odysseyDesignTokens}\n translate={translate}\n >\n <Heading5>{title}</Heading5>\n <Button\n ariaLabel={ariaLabel}\n onClick={handleCloseButtonClick}\n size=\"small\"\n startIcon={<CloseIcon />}\n variant=\"floating\"\n />\n </DrawerHeader>\n <DrawerContent\n {...(isContentScrollable && {\n //Sets tabIndex on content element if scrollable so content is easier to navigate with the keyboard\n tabIndex: 0,\n })}\n hasDividers={dividersVisible}\n odysseyDesignTokens={odysseyDesignTokens}\n ref={drawerContentRef}\n >\n {children}\n </DrawerContent>\n {hasFooter && (\n <DrawerFooter\n hasDividers={dividersVisible}\n odysseyDesignTokens={odysseyDesignTokens}\n >\n {tertiaryCallToActionComponent}\n {secondaryCallToActionComponent}\n {primaryCallToActionComponent}\n </DrawerFooter>\n )}\n </DrawerContentWrapper>\n </MuiDrawer>\n ),\n [\n anchorDirection,\n ariaLabel,\n children,\n dividersVisible,\n handleCloseButtonClick,\n hasFooter,\n isContentScrollable,\n isOpen,\n odysseyDesignTokens,\n onClose,\n primaryCallToActionComponent,\n secondaryCallToActionComponent,\n tertiaryCallToActionComponent,\n testId,\n title,\n translate,\n variant,\n ],\n );\n\n return variant === \"temporary\" ? (\n <FullScreenOverlay overlayType=\"drawer\">\n {muiDrawerComponent}\n </FullScreenOverlay>\n ) : (\n muiDrawerComponent\n );\n};\n\nconst MemoizedDrawer = memo(Drawer);\nMemoizedDrawer.displayName = \"Drawer\";\n\nexport { MemoizedDrawer as Drawer };\n"],"mappings":";;;;;;;AAYA,IAAAA,OAAA,GAAAC,sBAAA,CAAAC,OAAA;AAKA,IAAAC,MAAA,GAAAD,OAAA;AAaA,IAAAE,OAAA,GAAAF,OAAA;AACA,IAAAG,kBAAA,GAAAH,OAAA;AACA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B;QAAAf,QAAA,EAErBA;MAAQ,CACI,CAAC,EACfiC,SAAS,IACR,IAAA3D,WAAA,CAAAsE,IAAA,EAAC/C,YAAY;QACXR,WAAW,EAAE0C,eAAgB;QAC7B/C,mBAAmB,EAAEA,mBAAoB;QAAAgB,QAAA,GAExCO,6BAA6B,EAC7BF,8BAA8B,EAC9BD,4BAA4B;MAAA,CACjB,CACf;IAAA,CACmB;EAAC,CACd,CACZ,EACD,CACEgB,eAAe,EACfrB,SAAS,EACTC,QAAQ,EACR+B,eAAe,EACfG,sBAAsB,EACtBD,SAAS,EACTrB,mBAAmB,EACnBV,MAAM,EACNlB,mBAAmB,EACnBmB,OAAO,EACPC,4BAA4B,EAC5BC,8BAA8B,EAC9BE,6BAA6B,EAC7BC,MAAM,EACNC,KAAK,EACLC,SAAS,EACTC,OAAO,CAEX,CAAC;EAED,OAAOA,OAAO,KAAK,WAAW,GAC5B,IAAArC,WAAA,CAAAgE,GAAA,EAACrE,kBAAA,CAAAoF,iBAAiB;IAACC,WAAW,EAAC,QAAQ;IAAAtD,QAAA,EACpCqC;EAAkB,CACF,CAAC,GAEpBA,kBACD;AACH,CAAC;AAED,MAAMkB,cAAc,GAAA5E,OAAA,CAAAmB,MAAA,GAAG,IAAA0D,WAAI,EAAC1D,MAAM,CAAC;AACnCyD,cAAc,CAACE,WAAW,wCAAW","ignoreList":[]}
@@ -68,5 +68,5 @@ const EmptyState = ({
68
68
  });
69
69
  };
70
70
  const MemoizedEmptyState = exports.DataTableEmptyState = exports.EmptyState = (0, _react.memo)(EmptyState);
71
- MemoizedEmptyState.displayName = "EmptyState::pkg=odyssey&odysseyV=1.62.2";
71
+ MemoizedEmptyState.displayName = "EmptyState::pkg=odyssey&odysseyV=1.64.0";
72
72
  //# sourceMappingURL=EmptyState.cjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"EmptyState.cjs","names":["_styled","_interopRequireDefault","require","_react","_Box","_OdysseyDesignTokensContext","_Typography","_jsxRuntime","e","__esModule","default","EmptyContainer","styled","shouldForwardProp","prop","odysseyDesignTokens","display","flexDirection","marginBlock","Spacing9","padding","Spacing5","textAlign","width","alignItems","TextContainer","maxWidth","TypographyLineLengthMax","EmptyState","heading","description","PrimaryCallToActionComponent","SecondaryCallToActionComponent","useOdysseyDesignTokens","jsxs","children","jsx","Heading4","Paragraph","Box","sx","marginBlockStart","MemoizedEmptyState","exports","DataTableEmptyState","memo","displayName"],"sources":["../../src/EmptyState.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 { memo, ReactNode } from \"react\";\n\nimport { Box } from \"./Box.js\";\nimport {\n DesignTokens,\n useOdysseyDesignTokens,\n} from \"./OdysseyDesignTokensContext.js\";\nimport { Heading4, Paragraph } from \"./Typography.js\";\n\nconst EmptyContainer = styled(\"div\", {\n shouldForwardProp: (prop) => prop !== \"odysseyDesignTokens\",\n})<{ odysseyDesignTokens: DesignTokens }>(({ odysseyDesignTokens }) => ({\n display: \"flex\",\n flexDirection: \"column\",\n marginBlock: odysseyDesignTokens.Spacing9,\n padding: odysseyDesignTokens.Spacing5,\n textAlign: \"center\",\n width: \"100%\",\n alignItems: \"center\",\n}));\n\nconst TextContainer = styled(\"div\", {\n shouldForwardProp: (prop) => prop !== \"odysseyDesignTokens\",\n})<{ odysseyDesignTokens: DesignTokens }>(({ odysseyDesignTokens }) => ({\n maxWidth: odysseyDesignTokens.TypographyLineLengthMax,\n}));\n\nexport type EmptyStateProps = {\n /**\n * A descriptive text explaining more context as to why we don't have data.\n */\n description: string;\n /**\n * Main heading of the empty state\n */\n heading: string;\n /**\n * Primary call to action\n */\n PrimaryCallToActionComponent?: ReactNode;\n /**\n * Secondary call to action\n */\n SecondaryCallToActionComponent?: ReactNode;\n};\n\nconst EmptyState = ({\n heading,\n description,\n PrimaryCallToActionComponent,\n SecondaryCallToActionComponent,\n}: EmptyStateProps) => {\n const odysseyDesignTokens = useOdysseyDesignTokens();\n\n return (\n <EmptyContainer odysseyDesignTokens={odysseyDesignTokens}>\n <TextContainer odysseyDesignTokens={odysseyDesignTokens}>\n <Heading4>{heading}</Heading4>\n <Paragraph>{description}</Paragraph>\n </TextContainer>\n {(PrimaryCallToActionComponent || SecondaryCallToActionComponent) && (\n <Box sx={{ marginBlockStart: 5 }}>\n {SecondaryCallToActionComponent}\n {PrimaryCallToActionComponent}\n </Box>\n )}\n </EmptyContainer>\n );\n};\n\nconst MemoizedEmptyState = memo(EmptyState);\nMemoizedEmptyState.displayName = \"EmptyState\";\n\nexport { MemoizedEmptyState as EmptyState };\nexport { MemoizedEmptyState as DataTableEmptyState };\n"],"mappings":";;;;;;AAYA,IAAAA,OAAA,GAAAC,sBAAA,CAAAC,OAAA;AACA,IAAAC,MAAA,GAAAD,OAAA;AAEA,IAAAE,IAAA,GAAAF,OAAA;AACA,IAAAG,2BAAA,GAAAH,OAAA;AAIA,IAAAI,WAAA,GAAAJ,OAAA;AAAsD,IAAAK,WAAA,GAAAL,OAAA;AAAA,SAAAD,uBAAAO,CAAA,WAAAA,CAAA,IAAAA,CAAA,CAAAC,UAAA,GAAAD,CAAA,KAAAE,OAAA,EAAAF,CAAA;AApBtD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAYA,MAAMG,cAAc,GAAG,IAAAC,eAAM,EAAC,KAAK,EAAE;EACnCC,iBAAiB,EAAGC,IAAI,IAAKA,IAAI,KAAK;AACxC,CAAC,CAAC,CAAwC,CAAC;EAAEC;AAAoB,CAAC,MAAM;EACtEC,OAAO,EA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,CAAC;AAErB,CAAC;AAED,MAAMW,kBAAkB,GAAAC,OAAA,CAAAC,mBAAA,GAAAD,OAAA,CAAAf,UAAA,GAAG,IAAAiB,WAAI,EAACjB,UAAU,CAAC;AAC3Cc,kBAAkB,CAACI,WAAW,4CAAe","ignoreList":[]}
1
+ {"version":3,"file":"EmptyState.cjs","names":["_styled","_interopRequireDefault","require","_react","_Box","_OdysseyDesignTokensContext","_Typography","_jsxRuntime","e","__esModule","default","EmptyContainer","styled","shouldForwardProp","prop","odysseyDesignTokens","display","flexDirection","marginBlock","Spacing9","padding","Spacing5","textAlign","width","alignItems","TextContainer","maxWidth","TypographyLineLengthMax","EmptyState","heading","description","PrimaryCallToActionComponent","SecondaryCallToActionComponent","useOdysseyDesignTokens","jsxs","children","jsx","Heading4","Paragraph","Box","sx","marginBlockStart","MemoizedEmptyState","exports","DataTableEmptyState","memo","displayName"],"sources":["../../src/EmptyState.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 { memo, ReactNode } from \"react\";\n\nimport { Box } from \"./Box.js\";\nimport {\n DesignTokens,\n useOdysseyDesignTokens,\n} from \"./OdysseyDesignTokensContext.js\";\nimport { Heading4, Paragraph } from \"./Typography.js\";\n\nconst EmptyContainer = styled(\"div\", {\n shouldForwardProp: (prop) => prop !== \"odysseyDesignTokens\",\n})<{ odysseyDesignTokens: DesignTokens }>(({ odysseyDesignTokens }) => ({\n display: \"flex\",\n flexDirection: \"column\",\n marginBlock: odysseyDesignTokens.Spacing9,\n padding: odysseyDesignTokens.Spacing5,\n textAlign: \"center\",\n width: \"100%\",\n alignItems: \"center\",\n}));\n\nconst TextContainer = styled(\"div\", {\n shouldForwardProp: (prop) => prop !== \"odysseyDesignTokens\",\n})<{ odysseyDesignTokens: DesignTokens }>(({ odysseyDesignTokens }) => ({\n maxWidth: odysseyDesignTokens.TypographyLineLengthMax,\n}));\n\nexport type EmptyStateProps = {\n /**\n * A descriptive text explaining more context as to why we don't have data.\n */\n description: string;\n /**\n * Main heading of the empty state\n */\n heading: string;\n /**\n * Primary call to action\n */\n PrimaryCallToActionComponent?: ReactNode;\n /**\n * Secondary call to action\n */\n SecondaryCallToActionComponent?: ReactNode;\n};\n\n/**\n * A full-width placeholder displayed when a list, table, or page section has\n * no data to show. Communicates the empty state with a heading, description,\n * and optional call-to-action buttons.\n */\nconst EmptyState = ({\n heading,\n description,\n PrimaryCallToActionComponent,\n SecondaryCallToActionComponent,\n}: EmptyStateProps) => {\n const odysseyDesignTokens = useOdysseyDesignTokens();\n\n return (\n <EmptyContainer odysseyDesignTokens={odysseyDesignTokens}>\n <TextContainer odysseyDesignTokens={odysseyDesignTokens}>\n <Heading4>{heading}</Heading4>\n <Paragraph>{description}</Paragraph>\n </TextContainer>\n {(PrimaryCallToActionComponent || SecondaryCallToActionComponent) && (\n <Box sx={{ marginBlockStart: 5 }}>\n {SecondaryCallToActionComponent}\n {PrimaryCallToActionComponent}\n </Box>\n )}\n </EmptyContainer>\n );\n};\n\nconst MemoizedEmptyState = memo(EmptyState);\nMemoizedEmptyState.displayName = \"EmptyState\";\n\nexport { MemoizedEmptyState as EmptyState };\nexport { MemoizedEmptyState as DataTableEmptyState };\n"],"mappings":";;;;;;AAYA,IAAAA,OAAA,GAAAC,sBAAA,CAAAC,OAAA;AACA,IAAAC,MAAA,GAAAD,OAAA;AAEA,IAAAE,IAAA,GAAAF,OAAA;AACA,IAAAG,2BAAA,GAAAH,OAAA;AAIA,IAAAI,WAAA,GAAAJ,OAAA;AAAs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AEN;MAAO,CAAW,CAAC,EAC9B,IAAAtB,WAAA,CAAA6B,GAAA,EAAC9B,WAAA,CAAAgC,SAAS;QAAAH,QAAA,EAAEL;MAAW,CAAY,CAAC;IAAA,CACvB,CAAC,EACf,CAACC,4BAA4B,IAAIC,8BAA8B,KAC9D,IAAAzB,WAAA,CAAA2B,IAAA,EAAC9B,IAAA,CAAAmC,GAAG;MAACC,EAAE,EAAE;QAAEC,gBAAgB,EAAE;MAAE,CAAE;MAAAN,QAAA,GAC9BH,8BAA8B,EAC9BD,4BAA4B;IAAA,CAC1B,CACN;EAAA,CACa,CAAC;AAErB,CAAC;AAED,MAAMW,kBAAkB,GAAAC,OAAA,CAAAC,mBAAA,GAAAD,OAAA,CAAAf,UAAA,GAAG,IAAAiB,WAAI,EAACjB,UAAU,CAAC;AAC3Cc,kBAAkB,CAACI,WAAW,4CAAe","ignoreList":[]}
@@ -47,5 +47,5 @@ const ErrorMessageList = ({
47
47
  });
48
48
  };
49
49
  const MemoizedErrorMessageList = exports.ErrorMessageList = (0, _react.memo)(ErrorMessageList);
50
- MemoizedErrorMessageList.displayName = "ErrorMessageList::pkg=odyssey&odysseyV=1.62.2";
50
+ MemoizedErrorMessageList.displayName = "ErrorMessageList::pkg=odyssey&odysseyV=1.64.0";
51
51
  //# sourceMappingURL=ErrorMessageList.cjs.map
@@ -94,5 +94,5 @@ const Field = ({
94
94
  });
95
95
  };
96
96
  const MemoizedField = exports.Field = (0, _react.memo)(Field);
97
- MemoizedField.displayName = "Field::pkg=odyssey&odysseyV=1.62.2";
97
+ MemoizedField.displayName = "Field::pkg=odyssey&odysseyV=1.64.0";
98
98
  //# sourceMappingURL=Field.cjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"Field.cjs","names":["_react","require","_FieldError","_FieldHint","_FieldLabel","_FieldsetContext","_i18n","_Typography","_useUniqueId","_jsxRuntime","_interopRequireDefault","e","__esModule","default","fieldTypeValues","exports","Field","ariaDescribedBy","errorMessage","errorMessageList","fieldType","hasVisibleLabel","hint","HintLinkComponent","id","idOverride","isDisabled","isDisabledProp","isFullWidth","isRadioGroup","isOptional","isReadOnly","label","renderFieldComponent","t","useTranslation","useUniqueId","hintId","undefined","errorMessageElementId","labelElementId","localAriaDescribedBy","useMemo","join","trim","isFieldsetDisabled","useFieldset","jsxs","_FormControl2","component","disabled","error","Boolean","Array","isArray","length","fullWidth","role","children","_FormLabel2","jsx","Subordinate","FieldLabel","inputId","text","FieldHint","LinkComponent","FieldError","message","messageList","MemoizedField","memo","displayName"],"sources":["../../src/Field.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\nimport {\n FormControl as MuiFormControl,\n FormLabel as MuiFormLabel,\n} from \"@mui/material\";\nimport { memo, ReactElement, useMemo } from \"react\";\n\nimport { FieldComponentProps } from \"./FieldComponentProps.js\";\nimport { FieldError } from \"./FieldError.js\";\nimport { FieldHint } from \"./FieldHint.js\";\nimport { FieldLabel } from \"./FieldLabel.js\";\nimport { useFieldset } from \"./FieldsetContext.js\";\nimport { HtmlProps } from \"./HtmlProps.js\";\nimport { useTranslation } from \"./i18n.generated/i18n.js\";\nimport { Subordinate } from \"./Typography.js\";\nimport { useUniqueId } from \"./useUniqueId.js\";\n\nexport const fieldTypeValues = [\"single\", \"group\"] as const;\n\nexport type RenderFieldComponentProps = {\n ariaDescribedBy?: string;\n dataSe?: string;\n errorMessageElementId?: string;\n id: string;\n isReadOnly?: boolean;\n labelElementId: string;\n};\n\nexport type FieldProps = {\n /**\n * If `error` is not undefined, the `input` will indicate an error.\n */\n errorMessageList?: string[];\n /**\n * The field type determines how ARIA components are setup. It's important to use this to denote if you expect only one component (like a text field) or multiple (like a radio group).\n */\n fieldType: (typeof fieldTypeValues)[number];\n /**\n * If `true`, the Field label will be shown\n */\n hasVisibleLabel: boolean;\n /**\n * Important for determining if children inherit error state\n */\n isCheckboxGroup?: boolean;\n /**\n * Important for narrowing down the `fieldset` role to \"radiogroup\".\n */\n isRadioGroup?: boolean;\n /**\n * The label for the `input` element.\n */\n label: string;\n /**\n * The short hint displayed in the `input` before the user enters a value.\n */\n placeholder?: string;\n /**\n * Render-props function that sends back ARIA props to your field component.\n */\n renderFieldComponent: ({\n ariaDescribedBy,\n dataSe,\n errorMessageElementId,\n id,\n labelElementId,\n isReadOnly,\n }: RenderFieldComponentProps) => ReactElement;\n};\n\nconst Field = ({\n ariaDescribedBy,\n errorMessage,\n errorMessageList,\n fieldType,\n hasVisibleLabel,\n hint,\n HintLinkComponent,\n id: idOverride,\n isDisabled: isDisabledProp = false,\n isFullWidth = false,\n isRadioGroup = false,\n isOptional = false,\n isReadOnly = false,\n label,\n renderFieldComponent,\n}: FieldProps &\n Pick<\n FieldComponentProps,\n | \"errorMessage\"\n | \"errorMessageList\"\n | \"hint\"\n | \"HintLinkComponent\"\n | \"id\"\n | \"isDisabled\"\n | \"isFullWidth\"\n | \"isOptional\"\n | \"isReadOnly\"\n > &\n Pick<HtmlProps, \"ariaDescribedBy\">) => {\n const { t } = useTranslation();\n\n const id = useUniqueId(idOverride);\n const hintId = hint ? `${id}-hint` : undefined;\n const errorMessageElementId =\n errorMessage || errorMessageList ? `${id}-error` : undefined;\n const labelElementId = `${id}-label`;\n\n const localAriaDescribedBy = useMemo(\n () =>\n [hintId, errorMessageElementId, ariaDescribedBy].join(\" \").trim() ||\n undefined,\n [ariaDescribedBy, errorMessageElementId, hintId],\n );\n\n const { isDisabled: isFieldsetDisabled } = useFieldset();\n\n const isDisabled = useMemo(\n () => isDisabledProp || isFieldsetDisabled,\n [isDisabledProp, isFieldsetDisabled],\n );\n\n return (\n <MuiFormControl\n component={fieldType === \"group\" ? \"fieldset\" : \"div\"}\n disabled={isDisabled}\n error={\n Boolean(errorMessage) ||\n (Array.isArray(errorMessageList) && errorMessageList.length > 0)\n }\n fullWidth={isFullWidth}\n role={isRadioGroup ? \"radiogroup\" : undefined}\n >\n {fieldType === \"group\" ? (\n <MuiFormLabel component=\"legend\" id={labelElementId}>\n {label}{\" \"}\n {isOptional && label && (\n <Subordinate>{t(\"fieldlabel.optional.text\")}</Subordinate>\n )}\n </MuiFormLabel>\n ) : (\n <FieldLabel\n hasVisibleLabel={hasVisibleLabel}\n id={labelElementId}\n inputId={id}\n isOptional={isOptional}\n text={label}\n />\n )}\n\n {hint && (\n <FieldHint id={hintId} LinkComponent={HintLinkComponent} text={hint} />\n )}\n\n {renderFieldComponent({\n ariaDescribedBy: localAriaDescribedBy,\n errorMessageElementId,\n id,\n labelElementId,\n isReadOnly,\n })}\n\n {(errorMessage || errorMessageList) && (\n <FieldError\n id={errorMessageElementId}\n message={errorMessage}\n messageList={errorMessageList}\n />\n )}\n </MuiFormControl>\n );\n};\n\nconst MemoizedField = memo(Field);\nMemoizedField.displayName = \"Field\";\n\nexport { MemoizedField as Field };\n"],"mappings":";;;;;;;;AAgBA,IAAAA,MAAA,GAAAC,OAAA;AAGA,IAAAC,WAAA,GAAAD,OAAA;AACA,IAAAE,UAAA,GAAAF,OAAA;AACA,IAAAG,WAAA,GAAAH,OAAA;AACA,IAAAI,gBAAA,GAAAJ,OAAA;AAEA,IAAAK,KAAA,GAAAL,OAAA;AACA,IAAAM,WAAA,GAAAN,OAAA;AACA,IAAAO,YAAA,GAAAP,OAAA;AAA+C,IAAAQ,WAAA,GAAAR,OAAA;AAAA,SAAAS,uBAAAC,CAAA,WAAAA,CAAA,IAAAA,CAAA,CAAAC,UAAA,GAAAD,CAAA,KAAAE,OAAA,EAAAF,CAAA;AA1B/C;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA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AAAV,WAAA,CAAAmD,GAAA,EAAC1D,WAAA,CAAAiE,UAAU;MACT3C,EAAE,EAAEe,qBAAsB;MAC1B6B,OAAO,EAAElD,YAAa;MACtBmD,WAAW,EAAElD;IAAiB,CAC/B,CACF;EAAA,CACa,CAAC;AAErB,CAAC;AAED,MAAMmD,aAAa,GAAAvD,OAAA,CAAAC,KAAA,GAAG,IAAAuD,WAAI,EAACvD,KAAK,CAAC;AACjCsD,aAAa,CAACE,WAAW,uCAAU","ignoreList":[]}
1
+ {"version":3,"file":"Field.cjs","names":["_react","require","_FieldError","_FieldHint","_FieldLabel","_FieldsetContext","_i18n","_Typography","_useUniqueId","_jsxRuntime","_interopRequireDefault","e","__esModule","default","fieldTypeValues","exports","Field","ariaDescribedBy","errorMessage","errorMessageList","fieldType","hasVisibleLabel","hint","HintLinkComponent","id","idOverride","isDisabled","isDisabledProp","isFullWidth","isRadioGroup","isOptional","isReadOnly","label","renderFieldComponent","t","useTranslation","useUniqueId","hintId","undefined","errorMessageElementId","labelElementId","localAriaDescribedBy","useMemo","join","trim","isFieldsetDisabled","useFieldset","jsxs","_FormControl2","component","disabled","error","Boolean","Array","isArray","length","fullWidth","role","children","_FormLabel2","jsx","Subordinate","FieldLabel","inputId","text","FieldHint","LinkComponent","FieldError","message","messageList","MemoizedField","memo","displayName"],"sources":["../../src/Field.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\nimport {\n FormControl as MuiFormControl,\n FormLabel as MuiFormLabel,\n} from \"@mui/material\";\nimport { memo, ReactElement, useMemo } from \"react\";\n\nimport { FieldComponentProps } from \"./FieldComponentProps.js\";\nimport { FieldError } from \"./FieldError.js\";\nimport { FieldHint } from \"./FieldHint.js\";\nimport { FieldLabel } from \"./FieldLabel.js\";\nimport { useFieldset } from \"./FieldsetContext.js\";\nimport { HtmlProps } from \"./HtmlProps.js\";\nimport { useTranslation } from \"./i18n.generated/i18n.js\";\nimport { Subordinate } from \"./Typography.js\";\nimport { useUniqueId } from \"./useUniqueId.js\";\n\nexport const fieldTypeValues = [\"single\", \"group\"] as const;\n\nexport type RenderFieldComponentProps = {\n ariaDescribedBy?: string;\n dataSe?: string;\n errorMessageElementId?: string;\n id: string;\n isReadOnly?: boolean;\n labelElementId: string;\n};\n\nexport type FieldProps = {\n /**\n * If `error` is not undefined, the `input` will indicate an error.\n */\n errorMessageList?: string[];\n /**\n * Controls how ARIA attributes are applied to the field container.\n * - If `'single'`, use when the field wraps a single control such as a text input.\n * - If `'group'`, use when the field wraps multiple controls such as a radio or checkbox group.\n */\n fieldType: (typeof fieldTypeValues)[number];\n /**\n * If `true`, the field label is visible. If `false`, the label is visually hidden but remains accessible to screen readers.\n */\n hasVisibleLabel: boolean;\n /**\n * If `true`, child inputs inherit the group error state. Required for CheckboxGroup to propagate validity.\n */\n isCheckboxGroup?: boolean;\n /**\n * If `true`, narrows the fieldset ARIA role to `\"radiogroup\"`.\n */\n isRadioGroup?: boolean;\n /**\n * The label for the `input` element.\n */\n label: string;\n /**\n * The short hint displayed in the `input` before the user enters a value.\n */\n placeholder?: string;\n /**\n * Render-props function that sends back ARIA props to your field component.\n */\n renderFieldComponent: ({\n ariaDescribedBy,\n dataSe,\n errorMessageElementId,\n id,\n labelElementId,\n isReadOnly,\n }: RenderFieldComponentProps) => ReactElement;\n};\n\nconst Field = ({\n ariaDescribedBy,\n errorMessage,\n errorMessageList,\n fieldType,\n hasVisibleLabel,\n hint,\n HintLinkComponent,\n id: idOverride,\n isDisabled: isDisabledProp = false,\n isFullWidth = false,\n isRadioGroup = false,\n isOptional = false,\n isReadOnly = false,\n label,\n renderFieldComponent,\n}: FieldProps &\n Pick<\n FieldComponentProps,\n | \"errorMessage\"\n | \"errorMessageList\"\n | \"hint\"\n | \"HintLinkComponent\"\n | \"id\"\n | \"isDisabled\"\n | \"isFullWidth\"\n | \"isOptional\"\n | \"isReadOnly\"\n > &\n Pick<HtmlProps, \"ariaDescribedBy\">) => {\n const { t } = useTranslation();\n\n const id = useUniqueId(idOverride);\n const hintId = hint ? `${id}-hint` : undefined;\n const errorMessageElementId =\n errorMessage || errorMessageList ? `${id}-error` : undefined;\n const labelElementId = `${id}-label`;\n\n const localAriaDescribedBy = useMemo(\n () =>\n [hintId, errorMessageElementId, ariaDescribedBy].join(\" \").trim() ||\n undefined,\n [ariaDescribedBy, errorMessageElementId, hintId],\n );\n\n const { isDisabled: isFieldsetDisabled } = useFieldset();\n\n const isDisabled = useMemo(\n () => isDisabledProp || isFieldsetDisabled,\n [isDisabledProp, isFieldsetDisabled],\n );\n\n return (\n <MuiFormControl\n component={fieldType === \"group\" ? \"fieldset\" : \"div\"}\n disabled={isDisabled}\n error={\n Boolean(errorMessage) ||\n (Array.isArray(errorMessageList) && errorMessageList.length > 0)\n }\n fullWidth={isFullWidth}\n role={isRadioGroup ? \"radiogroup\" : undefined}\n >\n {fieldType === \"group\" ? (\n <MuiFormLabel component=\"legend\" id={labelElementId}>\n {label}{\" \"}\n {isOptional && label && (\n <Subordinate>{t(\"fieldlabel.optional.text\")}</Subordinate>\n )}\n </MuiFormLabel>\n ) : (\n <FieldLabel\n hasVisibleLabel={hasVisibleLabel}\n id={labelElementId}\n inputId={id}\n isOptional={isOptional}\n text={label}\n />\n )}\n\n {hint && (\n <FieldHint id={hintId} LinkComponent={HintLinkComponent} text={hint} />\n )}\n\n {renderFieldComponent({\n ariaDescribedBy: localAriaDescribedBy,\n errorMessageElementId,\n id,\n labelElementId,\n isReadOnly,\n })}\n\n {(errorMessage || errorMessageList) && (\n <FieldError\n id={errorMessageElementId}\n message={errorMessage}\n messageList={errorMessageList}\n />\n )}\n </MuiFormControl>\n );\n};\n\nconst MemoizedField = memo(Field);\nMemoizedField.displayName = \"Field\";\n\nexport { MemoizedField as Field };\n"],"mappings":";;;;;;;;AAgBA,IAAAA,MAAA,GAAAC,OAAA;AAGA,IAAAC,WAAA,GAAAD,OAAA;AACA,IAAAE,UAAA,GAAAF,OAAA;AACA,IAAAG,WAAA,GAAAH,OAAA;AACA,IAAAI,gBAAA,GAAAJ,OAAA;AAEA,IAAAK,KAAA,GAAAL,OAAA;AACA,IAAAM,WAAA,GAAAN,OAAA;AACA,IAAAO,YAAA,GAAAP,OAAA;AAA+C,IAAAQ,WAAA,GAAAR,OAAA;AAAA,SAAAS,uBAAAC,CAAA,WAAAA,CAAA,IAAAA,CAAA,CAAAC,UAAA,GAAAD,CAAA,KAAAE,OAAA,EAAAF,CAAA;AA1B/C;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAkBO,MAAMG,eAAe,GAAAC,OAAA,CAAAD,eAAA,GAAG,CAAC,QAAQ,EAAE,OAAO,CAAU;AAuD3D,MAAME,KAAK,GAAGA,CAAC;EACbC,eAAe;EACfC,YAAY;EACZC,gBAAgB;EAChBC,SAAS;EACTC,eAAe;EACfC,IAAI;EACJC,iBAAiB;EACjBC,EAAE,EAAEC,UAAU;EACdC,UAAU,EAAEC,cAAc,GAAG,KAAK;EAClCC,WAAW,GAAG,KAAK;EACnBC,YAAY,GAAG,KAAK;EACpBC,UAAU,GAAG,KAAK;EAClBC,UAAU,GAAG,KAAK;EAClBC,KAAK;EACLC;AAciC,CAAC,KAAK;EACvC,MAAM;IAAEC;EAAE,CAAC,GAAG,IAAAC,oBAAc,EAAC,CAAC;EAE9B,MAAMX,EAAE,GAAG,IAAAY,wBAAW,EAACX,UAAU,CAAC;EAClC,MAAMY,MAAM,GAAGf,IAAI,GAAG,GAAGE,EAAE,OAAO,GAAGc,SAAS;EAC9C,MAAMC,qBAAqB,GACz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AAC,CAAC,0BAA0B;MAAC,CAAc,CAC1D;IAAA,CACW,CAAC,GAEf,IAAAzB,WAAA,CAAAmD,GAAA,EAACxD,WAAA,CAAA0D,UAAU;MACTzC,eAAe,EAAEA,eAAgB;MACjCG,EAAE,EAAEgB,cAAe;MACnBuB,OAAO,EAAEvC,EAAG;MACZM,UAAU,EAAEA,UAAW;MACvBkC,IAAI,EAAEhC;IAAM,CACb,CACF,EAEAV,IAAI,IACH,IAAAb,WAAA,CAAAmD,GAAA,EAACzD,UAAA,CAAA8D,SAAS;MAACzC,EAAE,EAAEa,MAAO;MAAC6B,aAAa,EAAE3C,iBAAkB;MAACyC,IAAI,EAAE1C;IAAK,CAAE,CACvE,EAEAW,oBAAoB,CAAC;MACpBhB,eAAe,EAAEwB,oBAAoB;MACrCF,qBAAqB;MACrBf,EAAE;MACFgB,cAAc;MACdT;IACF,CAAC,CAAC,EAED,CAACb,YAAY,IAAIC,gBAAgB,KAChC,IAAAV,WAAA,CAAAmD,GAAA,EAAC1D,WAAA,CAAAiE,UAAU;MACT3C,EAAE,EAAEe,qBAAsB;MAC1B6B,OAAO,EAAElD,YAAa;MACtBmD,WAAW,EAAElD;IAAiB,CAC/B,CACF;EAAA,CACa,CAAC;AAErB,CAAC;AAED,MAAMmD,aAAa,GAAAvD,OAAA,CAAAC,KAAA,GAAG,IAAAuD,WAAI,EAACvD,KAAK,CAAC;AACjCsD,aAAa,CAACE,WAAW,uCAAU","ignoreList":[]}
@@ -51,5 +51,5 @@ const FieldError = ({
51
51
  });
52
52
  };
53
53
  const MemoizedFieldError = exports.FieldError = (0, _react.memo)(FieldError);
54
- MemoizedFieldError.displayName = "FieldError::pkg=odyssey&odysseyV=1.62.2";
54
+ MemoizedFieldError.displayName = "FieldError::pkg=odyssey&odysseyV=1.64.0";
55
55
  //# sourceMappingURL=FieldError.cjs.map
@@ -55,5 +55,5 @@ const FieldHint = ({
55
55
  });
56
56
  };
57
57
  const MemoizedFieldHint = exports.FieldHint = (0, _react.memo)(FieldHint);
58
- MemoizedFieldHint.displayName = "FieldHint::pkg=odyssey&odysseyV=1.62.2";
58
+ MemoizedFieldHint.displayName = "FieldHint::pkg=odyssey&odysseyV=1.64.0";
59
59
  //# sourceMappingURL=FieldHint.cjs.map
@@ -52,5 +52,5 @@ const FieldLabel = ({
52
52
  });
53
53
  };
54
54
  const MemoizedFieldLabel = exports.FieldLabel = (0, _react.memo)(FieldLabel);
55
- MemoizedFieldLabel.displayName = "FieldLabel::pkg=odyssey&odysseyV=1.62.2";
55
+ MemoizedFieldLabel.displayName = "FieldLabel::pkg=odyssey&odysseyV=1.64.0";
56
56
  //# sourceMappingURL=FieldLabel.cjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"FieldLabel.cjs","names":["_react","require","_i18n","_ScreenReaderText","_Typography","_jsxRuntime","_interopRequireDefault","e","__esModule","default","FieldLabel","hasVisibleLabel","id","inputId","isOptional","testId","translate","text","t","useTranslation","inputLabel","useMemo","jsxs","_InputLabel2","htmlFor","children","jsx","Subordinate","ScreenReaderText","MemoizedFieldLabel","exports","memo","displayName"],"sources":["../../src/FieldLabel.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 { InputLabel as MuiInputLabel } from \"@mui/material\";\nimport { memo, useMemo } from \"react\";\n\nimport type { HtmlProps } from \"./HtmlProps.js\";\n\nimport { useTranslation } from \"./i18n.generated/i18n.js\";\nimport { ScreenReaderText } from \"./ScreenReaderText.js\";\nimport { Subordinate } from \"./Typography.js\";\n\nexport type FieldLabelProps = {\n hasVisibleLabel: boolean;\n id: string;\n inputId: string;\n isOptional: boolean;\n text: string;\n} & Pick<HtmlProps, \"testId\" | \"translate\">;\n\nconst FieldLabel = ({\n hasVisibleLabel,\n id,\n inputId,\n isOptional,\n testId,\n translate,\n text,\n}: FieldLabelProps) => {\n const { t } = useTranslation();\n\n const inputLabel = useMemo(\n () => (\n <MuiInputLabel\n data-se={testId}\n htmlFor={inputId}\n id={id}\n translate={translate}\n >\n <span>{text}</span>\n {isOptional && (\n <Subordinate>{t(\"fieldlabel.optional.text\")}</Subordinate>\n )}\n </MuiInputLabel>\n ),\n [id, inputId, isOptional, testId, translate, text, t],\n );\n\n return hasVisibleLabel ? (\n inputLabel\n ) : (\n <ScreenReaderText translate={translate}>{inputLabel}</ScreenReaderText>\n );\n};\n\nconst MemoizedFieldLabel = memo(FieldLabel);\nMemoizedFieldLabel.displayName = \"FieldLabel\";\n\nexport { MemoizedFieldLabel as FieldLabel };\n"],"mappings":";;;;;;;AAaA,IAAAA,MAAA,GAAAC,OAAA;AAIA,IAAAC,KAAA,GAAAD,OAAA;AACA,IAAAE,iBAAA,GAAAF,OAAA;AACA,IAAAG,WAAA,GAAAH,OAAA;AAA8C,IAAAI,WAAA,GAAAJ,OAAA;AAAA,SAAAK,uBAAAC,CAAA,WAAAA,CAAA,IAAAA,CAAA,CAAAC,UAAA,GAAAD,CAAA,KAAAE,OAAA,EAAAF,CAAA;AAnB9C;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAmBA,MAAMG,UAAU,GAAGA,CAAC;EAClBC,eAAe;EACfC,EAAE;EACFC,OAAO;EACPC,UAAU;EACVC,MAAM;EACNC,SAAS;EACTC;AACe,CAAC,KAAK;EACrB,MAAM;IAAEC;EAAE,CAAC,GAAG,IAAAC,oBAAc,EAAC,CAAC;EAE9B,MAAMC,UAAU,GAAG,IAAAC,cAAO,EACxB,MACE,IAAAhB,WAAA,CAAAiB,IAAA,EAAAC,YAAA,CAAAd,OAAA;IACE,WAASM,MAAO;IAChBS,OAAO,EAAEX,OAAQ;IACjBD,EAAE,EAAEA,EAAG;IACPI,SAAS,EAAEA,SAAU;IAAAS,QAAA,GAErB,IAAApB,WAAA,CAAAqB,GAAA;MAAAD,QAAA,EAAOR;IAAI,CAAO,CAAC,EAClBH,UAAU,IACT,IAAAT,WAAA,CAAAqB,GAAA,EAACtB,WAAA,CAAAuB,WAAW;MAAAF,QAAA,EAAEP,CAAC,CAAC,0BAA0B;IAAC,CAAc,CAC1D;EAAA,CACY,CAChB,EACD,CAACN,EAAE,EAAEC,OAAO,EAAEC,UAAU,EAAEC,MAAM,EAAEC,SAAS,EAAEC,IAAI,EAAEC,CAAC,CACtD,CAAC;EAED,OAAOP,eAAe,GACpBS,UAAU,GAEV,IAAAf,WAAA,CAAAqB,GAAA,EAACvB,iBAAA,CAAAyB,gBAAgB;IAACZ,SAAS,EAAEA,SAAU;IAAAS,QAAA,EAAEL;EAAU,CAAmB,CACvE;AACH,CAAC;AAED,MAAMS,kBAAkB,GAAAC,OAAA,CAAApB,UAAA,GAAG,IAAAqB,WAAI,EAACrB,UAAU,CAAC;AAC3CmB,kBAAkB,CAACG,WAAW,4CAAe","ignoreList":[]}
1
+ {"version":3,"file":"FieldLabel.cjs","names":["_react","require","_i18n","_ScreenReaderText","_Typography","_jsxRuntime","_interopRequireDefault","e","__esModule","default","FieldLabel","hasVisibleLabel","id","inputId","isOptional","testId","translate","text","t","useTranslation","inputLabel","useMemo","jsxs","_InputLabel2","htmlFor","children","jsx","Subordinate","ScreenReaderText","MemoizedFieldLabel","exports","memo","displayName"],"sources":["../../src/FieldLabel.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 { InputLabel as MuiInputLabel } from \"@mui/material\";\nimport { memo, useMemo } from \"react\";\n\nimport type { HtmlProps } from \"./HtmlProps.js\";\n\nimport { useTranslation } from \"./i18n.generated/i18n.js\";\nimport { ScreenReaderText } from \"./ScreenReaderText.js\";\nimport { Subordinate } from \"./Typography.js\";\n\nexport type FieldLabelProps = {\n /**\n * If `true`, the label text is rendered visibly. If `false`, the label is visually hidden but remains accessible to screen readers.\n */\n hasVisibleLabel: boolean;\n id: string;\n inputId: string;\n /**\n * If `true`, an \"(Optional)\" indicator is appended to the label text.\n */\n isOptional: boolean;\n text: string;\n} & Pick<HtmlProps, \"testId\" | \"translate\">;\n\nconst FieldLabel = ({\n hasVisibleLabel,\n id,\n inputId,\n isOptional,\n testId,\n translate,\n text,\n}: FieldLabelProps) => {\n const { t } = useTranslation();\n\n const inputLabel = useMemo(\n () => (\n <MuiInputLabel\n data-se={testId}\n htmlFor={inputId}\n id={id}\n translate={translate}\n >\n <span>{text}</span>\n {isOptional && (\n <Subordinate>{t(\"fieldlabel.optional.text\")}</Subordinate>\n )}\n </MuiInputLabel>\n ),\n [id, inputId, isOptional, testId, translate, text, t],\n );\n\n return hasVisibleLabel ? (\n inputLabel\n ) : (\n <ScreenReaderText translate={translate}>{inputLabel}</ScreenReaderText>\n );\n};\n\nconst MemoizedFieldLabel = memo(FieldLabel);\nMemoizedFieldLabel.displayName = \"FieldLabel\";\n\nexport { MemoizedFieldLabel as FieldLabel };\n"],"mappings":";;;;;;;AAaA,IAAAA,MAAA,GAAAC,OAAA;AAIA,IAAAC,KAAA,GAAAD,OAAA;AACA,IAAAE,iBAAA,GAAAF,OAAA;AACA,IAAAG,WAAA,GAAAH,OAAA;AAA8C,IAAAI,WAAA,GAAAJ,OAAA;AAAA,SAAAK,uBAAAC,CAAA,WAAAA,CAAA,IAAAA,CAAA,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Checkbox = (0, _react.memo)(Checkbox);
164
- MemoizedCheckbox.displayName = "Checkbox::pkg=odyssey&odysseyV=1.62.2";
164
+ MemoizedCheckbox.displayName = "Checkbox::pkg=odyssey&odysseyV=1.64.0";
165
165
  //# sourceMappingURL=Checkbox.cjs.map