@okta/odyssey-react-mui 1.63.0 → 1.65.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 (728) hide show
  1. package/README.md +5 -5
  2. package/dist/cjs/Accordion.cjs +1 -1
  3. package/dist/cjs/Autocomplete.cjs +1 -1
  4. package/dist/cjs/Badge.cjs +1 -1
  5. package/dist/cjs/Banner.cjs +1 -1
  6. package/dist/cjs/Box.cjs +1 -1
  7. package/dist/cjs/Breadcrumbs.cjs +1 -1
  8. package/dist/cjs/Buttons/BaseButton.cjs +1 -1
  9. package/dist/cjs/Buttons/BaseMenuButton.cjs +1 -1
  10. package/dist/cjs/Buttons/Button.cjs +1 -1
  11. package/dist/cjs/Buttons/MenuButton.cjs +1 -1
  12. package/dist/cjs/Buttons/MenuItem.cjs +1 -1
  13. package/dist/cjs/Callout.cjs +1 -1
  14. package/dist/cjs/Card.cjs +1 -1
  15. package/dist/cjs/CircularProgress.cjs +1 -1
  16. package/dist/cjs/ConditionalWrapper.cjs +1 -1
  17. package/dist/cjs/DataTable/DataTable.cjs +1 -1
  18. package/dist/cjs/DataTable/DataTableRowActions.cjs +1 -1
  19. package/dist/cjs/DataTable/DataTableSettings.cjs +1 -1
  20. package/dist/cjs/DatePickers/DateField.cjs +1 -1
  21. package/dist/cjs/DatePickers/DateFieldActionBar.cjs +1 -1
  22. package/dist/cjs/DatePickers/DateFieldLocalizationProvider.cjs +1 -1
  23. package/dist/cjs/DatePickers/DatePicker.cjs +1 -1
  24. package/dist/cjs/DatePickers/TimeZonePicker.cjs +1 -1
  25. package/dist/cjs/Dialog.cjs +1 -1
  26. package/dist/cjs/Drawer.cjs +4 -1
  27. package/dist/cjs/Drawer.cjs.map +1 -1
  28. package/dist/cjs/EmptyState.cjs +1 -1
  29. package/dist/cjs/ErrorMessageList.cjs +1 -1
  30. package/dist/cjs/Field.cjs +1 -1
  31. package/dist/cjs/FieldError.cjs +1 -1
  32. package/dist/cjs/FieldHint.cjs +1 -1
  33. package/dist/cjs/FieldLabel.cjs +1 -1
  34. package/dist/cjs/Fields/Checkbox.cjs +1 -1
  35. package/dist/cjs/Fields/CheckboxGroup.cjs +1 -1
  36. package/dist/cjs/Fields/Radio.cjs +1 -1
  37. package/dist/cjs/Fields/RadioGroup.cjs +1 -1
  38. package/dist/cjs/Fieldset.cjs +1 -1
  39. package/dist/cjs/FileUploader/FileUploadIllustration.cjs +1 -1
  40. package/dist/cjs/FileUploader/FileUploadPreview.cjs +1 -1
  41. package/dist/cjs/FileUploader/FileUploader.cjs +1 -1
  42. package/dist/cjs/Form.cjs +1 -1
  43. package/dist/cjs/FullScreenOverlay.cjs +1 -1
  44. package/dist/cjs/FullScreenOverlayContext.cjs +2 -1
  45. package/dist/cjs/FullScreenOverlayContext.cjs.map +1 -1
  46. package/dist/cjs/HintLink.cjs +1 -1
  47. package/dist/cjs/IconWithTooltip.cjs +1 -1
  48. package/dist/cjs/Link.cjs +1 -1
  49. package/dist/cjs/MuiPropsChild.cjs +1 -1
  50. package/dist/cjs/NativeSelect.cjs +1 -1
  51. package/dist/cjs/OdysseyCacheProvider.cjs +1 -1
  52. package/dist/cjs/OdysseyProvider.cjs +1 -1
  53. package/dist/cjs/OdysseyThemeProvider.cjs +1 -1
  54. package/dist/cjs/OdysseyThemeProviderPropsContext.cjs +1 -1
  55. package/dist/cjs/Pagination/Pagination.cjs +1 -1
  56. package/dist/cjs/PasswordField.cjs +4 -3
  57. package/dist/cjs/PasswordField.cjs.map +1 -1
  58. package/dist/cjs/ScreenReaderText.cjs +1 -1
  59. package/dist/cjs/SearchField.cjs +1 -1
  60. package/dist/cjs/Select.cjs +14 -1
  61. package/dist/cjs/Select.cjs.map +1 -1
  62. package/dist/cjs/Stack.cjs +1 -1
  63. package/dist/cjs/Status.cjs +1 -1
  64. package/dist/cjs/Surface.cjs +1 -1
  65. package/dist/cjs/Switch.cjs +6 -4
  66. package/dist/cjs/Switch.cjs.map +1 -1
  67. package/dist/cjs/Tabs.cjs +1 -1
  68. package/dist/cjs/Tag.cjs +1 -1
  69. package/dist/cjs/TagList.cjs +1 -1
  70. package/dist/cjs/TextField.cjs +1 -1
  71. package/dist/cjs/Toast.cjs +1 -1
  72. package/dist/cjs/ToastStack.cjs +29 -10
  73. package/dist/cjs/ToastStack.cjs.map +1 -1
  74. package/dist/cjs/Tooltip.cjs +1 -1
  75. package/dist/cjs/Typography.cjs +12 -12
  76. package/dist/cjs/icons.generated/Add.cjs +1 -1
  77. package/dist/cjs/icons.generated/AddCircle.cjs +1 -1
  78. package/dist/cjs/icons.generated/Apps.cjs +1 -1
  79. package/dist/cjs/icons.generated/AppsSelected.cjs +1 -1
  80. package/dist/cjs/icons.generated/ArrowBottom.cjs +1 -1
  81. package/dist/cjs/icons.generated/ArrowDown.cjs +1 -1
  82. package/dist/cjs/icons.generated/ArrowLeft.cjs +1 -1
  83. package/dist/cjs/icons.generated/ArrowLowerLeft.cjs +1 -1
  84. package/dist/cjs/icons.generated/ArrowLowerRight.cjs +1 -1
  85. package/dist/cjs/icons.generated/ArrowRight.cjs +1 -1
  86. package/dist/cjs/icons.generated/ArrowTop.cjs +1 -1
  87. package/dist/cjs/icons.generated/ArrowUnsorted.cjs +1 -1
  88. package/dist/cjs/icons.generated/ArrowUp.cjs +1 -1
  89. package/dist/cjs/icons.generated/ArrowUpperLeft.cjs +1 -1
  90. package/dist/cjs/icons.generated/ArrowUpperRight.cjs +1 -1
  91. package/dist/cjs/icons.generated/Bug.cjs +1 -1
  92. package/dist/cjs/icons.generated/Calendar.cjs +1 -1
  93. package/dist/cjs/icons.generated/Call.cjs +1 -1
  94. package/dist/cjs/icons.generated/Chat.cjs +1 -1
  95. package/dist/cjs/icons.generated/Check.cjs +1 -1
  96. package/dist/cjs/icons.generated/CheckCircleFilled.cjs +1 -1
  97. package/dist/cjs/icons.generated/ChevronDown.cjs +1 -1
  98. package/dist/cjs/icons.generated/ChevronLeft.cjs +1 -1
  99. package/dist/cjs/icons.generated/ChevronRight.cjs +1 -1
  100. package/dist/cjs/icons.generated/ChevronUp.cjs +1 -1
  101. package/dist/cjs/icons.generated/Clock.cjs +1 -1
  102. package/dist/cjs/icons.generated/Close.cjs +1 -1
  103. package/dist/cjs/icons.generated/CloseCircleFilled.cjs +1 -1
  104. package/dist/cjs/icons.generated/CollapseLeft.cjs +1 -1
  105. package/dist/cjs/icons.generated/CollapseRight.cjs +1 -1
  106. package/dist/cjs/icons.generated/Copy.cjs +1 -1
  107. package/dist/cjs/icons.generated/Customizations.cjs +1 -1
  108. package/dist/cjs/icons.generated/CustomizationsSelected.cjs +1 -1
  109. package/dist/cjs/icons.generated/DangerDiamond.cjs +1 -1
  110. package/dist/cjs/icons.generated/DangerDiamondFilled.cjs +1 -1
  111. package/dist/cjs/icons.generated/Delete.cjs +1 -1
  112. package/dist/cjs/icons.generated/Deny.cjs +1 -1
  113. package/dist/cjs/icons.generated/Devices.cjs +1 -1
  114. package/dist/cjs/icons.generated/Directory.cjs +1 -1
  115. package/dist/cjs/icons.generated/DirectorySelected.cjs +1 -1
  116. package/dist/cjs/icons.generated/Documentation.cjs +1 -1
  117. package/dist/cjs/icons.generated/Download.cjs +1 -1
  118. package/dist/cjs/icons.generated/DragIndicator.cjs +1 -1
  119. package/dist/cjs/icons.generated/Edit.cjs +1 -1
  120. package/dist/cjs/icons.generated/ExpandLeft.cjs +1 -1
  121. package/dist/cjs/icons.generated/ExpandRight.cjs +1 -1
  122. package/dist/cjs/icons.generated/ExternalLink.cjs +1 -1
  123. package/dist/cjs/icons.generated/Filter.cjs +1 -1
  124. package/dist/cjs/icons.generated/Folder.cjs +1 -1
  125. package/dist/cjs/icons.generated/Globe.cjs +1 -1
  126. package/dist/cjs/icons.generated/Grid.cjs +1 -1
  127. package/dist/cjs/icons.generated/Group.cjs +1 -1
  128. package/dist/cjs/icons.generated/Happy.cjs +1 -1
  129. package/dist/cjs/icons.generated/Hide.cjs +1 -1
  130. package/dist/cjs/icons.generated/Home.cjs +1 -1
  131. package/dist/cjs/icons.generated/HomeSelected.cjs +1 -1
  132. package/dist/cjs/icons.generated/IdentityGovernance.cjs +1 -1
  133. package/dist/cjs/icons.generated/IdentityGovernanceSelected.cjs +1 -1
  134. package/dist/cjs/icons.generated/InformationCircle.cjs +1 -1
  135. package/dist/cjs/icons.generated/InformationCircleFilled.cjs +1 -1
  136. package/dist/cjs/icons.generated/Link.cjs +1 -1
  137. package/dist/cjs/icons.generated/List.cjs +1 -1
  138. package/dist/cjs/icons.generated/Lock.cjs +1 -1
  139. package/dist/cjs/icons.generated/Menu.cjs +1 -1
  140. package/dist/cjs/icons.generated/More.cjs +1 -1
  141. package/dist/cjs/icons.generated/Neutral.cjs +1 -1
  142. package/dist/cjs/icons.generated/Notification.cjs +1 -1
  143. package/dist/cjs/icons.generated/Pause.cjs +1 -1
  144. package/dist/cjs/icons.generated/QuestionCircle.cjs +1 -1
  145. package/dist/cjs/icons.generated/QuestionCircleFilled.cjs +1 -1
  146. package/dist/cjs/icons.generated/Refresh.cjs +1 -1
  147. package/dist/cjs/icons.generated/Reports.cjs +1 -1
  148. package/dist/cjs/icons.generated/ReportsSelected.cjs +1 -1
  149. package/dist/cjs/icons.generated/Reset.cjs +1 -1
  150. package/dist/cjs/icons.generated/Resume.cjs +1 -1
  151. package/dist/cjs/icons.generated/Sad.cjs +1 -1
  152. package/dist/cjs/icons.generated/Same.cjs +1 -1
  153. package/dist/cjs/icons.generated/Search.cjs +1 -1
  154. package/dist/cjs/icons.generated/Security.cjs +1 -1
  155. package/dist/cjs/icons.generated/SecuritySelected.cjs +1 -1
  156. package/dist/cjs/icons.generated/Send.cjs +1 -1
  157. package/dist/cjs/icons.generated/Server.cjs +1 -1
  158. package/dist/cjs/icons.generated/Settings.cjs +1 -1
  159. package/dist/cjs/icons.generated/SettingsSelected.cjs +1 -1
  160. package/dist/cjs/icons.generated/Show.cjs +1 -1
  161. package/dist/cjs/icons.generated/Sparkle.cjs +1 -1
  162. package/dist/cjs/icons.generated/Subtract.cjs +1 -1
  163. package/dist/cjs/icons.generated/Sync.cjs +1 -1
  164. package/dist/cjs/icons.generated/ThumbsDown.cjs +1 -1
  165. package/dist/cjs/icons.generated/ThumbsUp.cjs +1 -1
  166. package/dist/cjs/icons.generated/Unlock.cjs +1 -1
  167. package/dist/cjs/icons.generated/Upload.cjs +1 -1
  168. package/dist/cjs/icons.generated/User.cjs +1 -1
  169. package/dist/cjs/icons.generated/Video.cjs +1 -1
  170. package/dist/cjs/icons.generated/Warning.cjs +1 -1
  171. package/dist/cjs/icons.generated/WarningFilled.cjs +1 -1
  172. package/dist/cjs/icons.generated/Workflows.cjs +1 -1
  173. package/dist/cjs/icons.generated/WorkflowsSelected.cjs +1 -1
  174. package/dist/cjs/labs/AppTile.cjs +1 -1
  175. package/dist/cjs/labs/DataFilters.cjs +21 -13
  176. package/dist/cjs/labs/DataFilters.cjs.map +1 -1
  177. package/dist/cjs/labs/DataTable.cjs +1 -1
  178. package/dist/cjs/labs/DataTablePagination.cjs +1 -1
  179. package/dist/cjs/labs/DataView/BulkActionsMenu.cjs +1 -1
  180. package/dist/cjs/labs/DataView/CardLayoutContent.cjs +2 -2
  181. package/dist/cjs/labs/DataView/DataCard.cjs +1 -1
  182. package/dist/cjs/labs/DataView/DataTable.cjs +1 -1
  183. package/dist/cjs/labs/DataView/DataView.cjs +5 -3
  184. package/dist/cjs/labs/DataView/DataView.cjs.map +1 -1
  185. package/dist/cjs/labs/DataView/DetailPanel.cjs +1 -1
  186. package/dist/cjs/labs/DataView/LayoutSwitcher.cjs +1 -1
  187. package/dist/cjs/labs/DataView/RowActions.cjs +1 -1
  188. package/dist/cjs/labs/DataView/TableLayoutContent.cjs +1 -1
  189. package/dist/cjs/labs/DataView/TableSettings.cjs +1 -1
  190. package/dist/cjs/labs/DataView/componentTypes.cjs.map +1 -1
  191. package/dist/cjs/labs/DatePickers/DateTimeField.cjs +1 -1
  192. package/dist/cjs/labs/DatePickers/DateTimePicker.cjs +1 -1
  193. package/dist/cjs/labs/OdysseyPickers/ComposablePicker.cjs +1 -1
  194. package/dist/cjs/labs/OdysseyPickers/Picker.cjs +1 -1
  195. package/dist/cjs/labs/OdysseyPickers/PickerVirtualizationListBox.cjs +1 -1
  196. package/dist/cjs/labs/OdysseyPickers/PickerWithOptionAdornment.cjs +1 -1
  197. package/dist/cjs/labs/OdysseyPickers/SearchDropdown.cjs +1 -1
  198. package/dist/cjs/labs/PageTemplate/DocumentationLink.cjs +1 -1
  199. package/dist/cjs/labs/PageTemplate/Layout.cjs +1 -1
  200. package/dist/cjs/labs/PageTemplate/PageTemplate.cjs +1 -1
  201. package/dist/cjs/labs/PaginatedTable.cjs +1 -1
  202. package/dist/cjs/labs/StaticTable.cjs +1 -1
  203. package/dist/cjs/labs/UserProfile.cjs +1 -1
  204. package/dist/cjs/labs/UserProfileMenuButton.cjs +1 -1
  205. package/dist/cjs/logos.generated/Duo.cjs +1 -1
  206. package/dist/cjs/logos.generated/GoogleAuth.cjs +1 -1
  207. package/dist/cjs/logos.generated/OktaVerify.cjs +1 -1
  208. package/dist/cjs/logos.generated/Persona.cjs +1 -1
  209. package/dist/cjs/logos.generated/SymantecVip.cjs +1 -1
  210. package/dist/cjs/logos.generated/Yubikey.cjs +1 -1
  211. package/dist/cjs/properties/ts/odyssey-react-mui.cjs +1 -0
  212. package/dist/cjs/properties/ts/odyssey-react-mui.cjs.map +1 -1
  213. package/dist/cjs/properties/ts/odyssey-react-mui_cs.cjs +1 -0
  214. package/dist/cjs/properties/ts/odyssey-react-mui_cs.cjs.map +1 -1
  215. package/dist/cjs/properties/ts/odyssey-react-mui_da.cjs +1 -0
  216. package/dist/cjs/properties/ts/odyssey-react-mui_da.cjs.map +1 -1
  217. package/dist/cjs/properties/ts/odyssey-react-mui_de.cjs +1 -0
  218. package/dist/cjs/properties/ts/odyssey-react-mui_de.cjs.map +1 -1
  219. package/dist/cjs/properties/ts/odyssey-react-mui_el.cjs +1 -0
  220. package/dist/cjs/properties/ts/odyssey-react-mui_el.cjs.map +1 -1
  221. package/dist/cjs/properties/ts/odyssey-react-mui_es.cjs +2 -1
  222. package/dist/cjs/properties/ts/odyssey-react-mui_es.cjs.map +1 -1
  223. package/dist/cjs/properties/ts/odyssey-react-mui_eu.cjs +1 -0
  224. package/dist/cjs/properties/ts/odyssey-react-mui_eu.cjs.map +1 -1
  225. package/dist/cjs/properties/ts/odyssey-react-mui_fi.cjs +1 -0
  226. package/dist/cjs/properties/ts/odyssey-react-mui_fi.cjs.map +1 -1
  227. package/dist/cjs/properties/ts/odyssey-react-mui_fr.cjs +1 -0
  228. package/dist/cjs/properties/ts/odyssey-react-mui_fr.cjs.map +1 -1
  229. package/dist/cjs/properties/ts/odyssey-react-mui_ht.cjs +11 -10
  230. package/dist/cjs/properties/ts/odyssey-react-mui_ht.cjs.map +1 -1
  231. package/dist/cjs/properties/ts/odyssey-react-mui_hu.cjs +2 -1
  232. package/dist/cjs/properties/ts/odyssey-react-mui_hu.cjs.map +1 -1
  233. package/dist/cjs/properties/ts/odyssey-react-mui_id.cjs +1 -0
  234. package/dist/cjs/properties/ts/odyssey-react-mui_id.cjs.map +1 -1
  235. package/dist/cjs/properties/ts/odyssey-react-mui_it.cjs +2 -1
  236. package/dist/cjs/properties/ts/odyssey-react-mui_it.cjs.map +1 -1
  237. package/dist/cjs/properties/ts/odyssey-react-mui_ja.cjs +2 -1
  238. package/dist/cjs/properties/ts/odyssey-react-mui_ja.cjs.map +1 -1
  239. package/dist/cjs/properties/ts/odyssey-react-mui_ko.cjs +1 -0
  240. package/dist/cjs/properties/ts/odyssey-react-mui_ko.cjs.map +1 -1
  241. package/dist/cjs/properties/ts/odyssey-react-mui_ms.cjs +1 -0
  242. package/dist/cjs/properties/ts/odyssey-react-mui_ms.cjs.map +1 -1
  243. package/dist/cjs/properties/ts/odyssey-react-mui_nb.cjs +1 -0
  244. package/dist/cjs/properties/ts/odyssey-react-mui_nb.cjs.map +1 -1
  245. package/dist/cjs/properties/ts/odyssey-react-mui_nl_NL.cjs +1 -0
  246. package/dist/cjs/properties/ts/odyssey-react-mui_nl_NL.cjs.map +1 -1
  247. package/dist/cjs/properties/ts/odyssey-react-mui_ok_PL.cjs +1 -0
  248. package/dist/cjs/properties/ts/odyssey-react-mui_ok_PL.cjs.map +1 -1
  249. package/dist/cjs/properties/ts/odyssey-react-mui_ok_SK.cjs +1 -0
  250. package/dist/cjs/properties/ts/odyssey-react-mui_ok_SK.cjs.map +1 -1
  251. package/dist/cjs/properties/ts/odyssey-react-mui_pl.cjs +1 -0
  252. package/dist/cjs/properties/ts/odyssey-react-mui_pl.cjs.map +1 -1
  253. package/dist/cjs/properties/ts/odyssey-react-mui_pt_BR.cjs +2 -1
  254. package/dist/cjs/properties/ts/odyssey-react-mui_pt_BR.cjs.map +1 -1
  255. package/dist/cjs/properties/ts/odyssey-react-mui_ro.cjs +1 -0
  256. package/dist/cjs/properties/ts/odyssey-react-mui_ro.cjs.map +1 -1
  257. package/dist/cjs/properties/ts/odyssey-react-mui_ru.cjs +1 -0
  258. package/dist/cjs/properties/ts/odyssey-react-mui_ru.cjs.map +1 -1
  259. package/dist/cjs/properties/ts/odyssey-react-mui_sv.cjs +2 -1
  260. package/dist/cjs/properties/ts/odyssey-react-mui_sv.cjs.map +1 -1
  261. package/dist/cjs/properties/ts/odyssey-react-mui_th.cjs +2 -1
  262. package/dist/cjs/properties/ts/odyssey-react-mui_th.cjs.map +1 -1
  263. package/dist/cjs/properties/ts/odyssey-react-mui_tr.cjs +2 -1
  264. package/dist/cjs/properties/ts/odyssey-react-mui_tr.cjs.map +1 -1
  265. package/dist/cjs/properties/ts/odyssey-react-mui_uk.cjs +2 -1
  266. package/dist/cjs/properties/ts/odyssey-react-mui_uk.cjs.map +1 -1
  267. package/dist/cjs/properties/ts/odyssey-react-mui_vi.cjs +1 -0
  268. package/dist/cjs/properties/ts/odyssey-react-mui_vi.cjs.map +1 -1
  269. package/dist/cjs/properties/ts/odyssey-react-mui_zh_CN.cjs +1 -0
  270. package/dist/cjs/properties/ts/odyssey-react-mui_zh_CN.cjs.map +1 -1
  271. package/dist/cjs/properties/ts/odyssey-react-mui_zh_TW.cjs +1 -0
  272. package/dist/cjs/properties/ts/odyssey-react-mui_zh_TW.cjs.map +1 -1
  273. package/dist/cjs/theme/components/Form.cjs +1 -1
  274. package/dist/cjs/theme/components/Form.cjs.map +1 -1
  275. package/dist/cjs/theme/components/Menu.cjs +0 -1
  276. package/dist/cjs/theme/components/Menu.cjs.map +1 -1
  277. package/dist/cjs/ui-shell/AppSwitcher/AppSwitcher.cjs +1 -1
  278. package/dist/cjs/ui-shell/InnerAppContainer.cjs +1 -1
  279. package/dist/cjs/ui-shell/NarrowUiShellContent.cjs +19 -1
  280. package/dist/cjs/ui-shell/NarrowUiShellContent.cjs.map +1 -1
  281. package/dist/cjs/ui-shell/SideNav/NavAccordion.cjs +1 -1
  282. package/dist/cjs/ui-shell/SideNav/SideNav.cjs +13 -11
  283. package/dist/cjs/ui-shell/SideNav/SideNav.cjs.map +1 -1
  284. package/dist/cjs/ui-shell/SideNav/SideNavFooterContent.cjs +1 -1
  285. package/dist/cjs/ui-shell/SideNav/SideNavHeader.cjs +1 -1
  286. package/dist/cjs/ui-shell/SideNav/SideNavItemContent.cjs +76 -17
  287. package/dist/cjs/ui-shell/SideNav/SideNavItemContent.cjs.map +1 -1
  288. package/dist/cjs/ui-shell/SideNav/SideNavItemContentContext.cjs.map +1 -1
  289. package/dist/cjs/ui-shell/SideNav/SideNavItemLinkContent.cjs +1 -1
  290. package/dist/cjs/ui-shell/SideNav/SideNavSortableList.cjs +3 -2
  291. package/dist/cjs/ui-shell/SideNav/SideNavSortableList.cjs.map +1 -1
  292. package/dist/cjs/ui-shell/SideNav/SideNavToggleButton.cjs +2 -2
  293. package/dist/cjs/ui-shell/SideNav/SortableList/SortableItem.cjs +45 -23
  294. package/dist/cjs/ui-shell/SideNav/SortableList/SortableItem.cjs.map +1 -1
  295. package/dist/cjs/ui-shell/SideNav/SortableList/SortableList.cjs +2 -1
  296. package/dist/cjs/ui-shell/SideNav/SortableList/SortableList.cjs.map +1 -1
  297. package/dist/cjs/ui-shell/SideNav/SortableList/SortableOverlay.cjs +14 -1
  298. package/dist/cjs/ui-shell/SideNav/SortableList/SortableOverlay.cjs.map +1 -1
  299. package/dist/cjs/ui-shell/SideNav/types.cjs.map +1 -1
  300. package/dist/cjs/ui-shell/SkipToContent.cjs +1 -1
  301. package/dist/cjs/ui-shell/TopNav/HamburgerMenuIcon.cjs +1 -1
  302. package/dist/cjs/ui-shell/TopNav/TopNav.cjs +1 -1
  303. package/dist/cjs/ui-shell/TopNav/TopNavLinksList.cjs +1 -1
  304. package/dist/cjs/ui-shell/TopNav/TopNavListItem.cjs +1 -1
  305. package/dist/cjs/ui-shell/UiShell.cjs +1 -1
  306. package/dist/cjs/ui-shell/UiShellLogo.cjs +1 -1
  307. package/dist/cjs/ui-shell/WideUiShellContent.cjs +1 -1
  308. package/dist/cjs/ui-shell/index.cjs +0 -12
  309. package/dist/cjs/ui-shell/index.cjs.map +1 -1
  310. package/dist/cjs/web-component/odysseyWebComponentVersion.generated.cjs +1 -1
  311. package/dist/cjs/web-component/odysseyWebComponentVersion.generated.cjs.map +1 -1
  312. package/dist/cjs/web-component/renderReactInWebComponent.cjs +29 -62
  313. package/dist/cjs/web-component/renderReactInWebComponent.cjs.map +1 -1
  314. package/dist/esm/Accordion.js +1 -1
  315. package/dist/esm/Autocomplete.js +1 -1
  316. package/dist/esm/Badge.js +1 -1
  317. package/dist/esm/Banner.js +1 -1
  318. package/dist/esm/Box.js +1 -1
  319. package/dist/esm/Breadcrumbs.js +1 -1
  320. package/dist/esm/Buttons/BaseButton.js +1 -1
  321. package/dist/esm/Buttons/BaseMenuButton.js +1 -1
  322. package/dist/esm/Buttons/Button.js +1 -1
  323. package/dist/esm/Buttons/MenuButton.js +1 -1
  324. package/dist/esm/Buttons/MenuItem.js +1 -1
  325. package/dist/esm/Callout.js +1 -1
  326. package/dist/esm/Card.js +1 -1
  327. package/dist/esm/CircularProgress.js +1 -1
  328. package/dist/esm/ConditionalWrapper.js +1 -1
  329. package/dist/esm/DataTable/DataTable.js +1 -1
  330. package/dist/esm/DataTable/DataTableRowActions.js +1 -1
  331. package/dist/esm/DataTable/DataTableSettings.js +1 -1
  332. package/dist/esm/DatePickers/DateField.js +1 -1
  333. package/dist/esm/DatePickers/DateFieldActionBar.js +1 -1
  334. package/dist/esm/DatePickers/DateFieldLocalizationProvider.js +1 -1
  335. package/dist/esm/DatePickers/DatePicker.js +1 -1
  336. package/dist/esm/DatePickers/TimeZonePicker.js +1 -1
  337. package/dist/esm/Dialog.js +1 -1
  338. package/dist/esm/Drawer.js +4 -1
  339. package/dist/esm/Drawer.js.map +1 -1
  340. package/dist/esm/EmptyState.js +1 -1
  341. package/dist/esm/ErrorMessageList.js +1 -1
  342. package/dist/esm/Field.js +1 -1
  343. package/dist/esm/FieldError.js +1 -1
  344. package/dist/esm/FieldHint.js +1 -1
  345. package/dist/esm/FieldLabel.js +1 -1
  346. package/dist/esm/Fields/Checkbox.js +1 -1
  347. package/dist/esm/Fields/CheckboxGroup.js +1 -1
  348. package/dist/esm/Fields/Radio.js +1 -1
  349. package/dist/esm/Fields/RadioGroup.js +1 -1
  350. package/dist/esm/Fieldset.js +1 -1
  351. package/dist/esm/FileUploader/FileUploadIllustration.js +1 -1
  352. package/dist/esm/FileUploader/FileUploadPreview.js +1 -1
  353. package/dist/esm/FileUploader/FileUploader.js +1 -1
  354. package/dist/esm/Form.js +1 -1
  355. package/dist/esm/FullScreenOverlay.js +1 -1
  356. package/dist/esm/FullScreenOverlayContext.js +2 -1
  357. package/dist/esm/FullScreenOverlayContext.js.map +1 -1
  358. package/dist/esm/HintLink.js +1 -1
  359. package/dist/esm/IconWithTooltip.js +1 -1
  360. package/dist/esm/Link.js +1 -1
  361. package/dist/esm/MuiPropsChild.js +1 -1
  362. package/dist/esm/NativeSelect.js +1 -1
  363. package/dist/esm/OdysseyCacheProvider.js +1 -1
  364. package/dist/esm/OdysseyProvider.js +1 -1
  365. package/dist/esm/OdysseyThemeProvider.js +1 -1
  366. package/dist/esm/OdysseyThemeProviderPropsContext.js +1 -1
  367. package/dist/esm/Pagination/Pagination.js +1 -1
  368. package/dist/esm/PasswordField.js +4 -3
  369. package/dist/esm/PasswordField.js.map +1 -1
  370. package/dist/esm/ScreenReaderText.js +1 -1
  371. package/dist/esm/SearchField.js +1 -1
  372. package/dist/esm/Select.js +14 -1
  373. package/dist/esm/Select.js.map +1 -1
  374. package/dist/esm/Stack.js +1 -1
  375. package/dist/esm/Status.js +1 -1
  376. package/dist/esm/Surface.js +1 -1
  377. package/dist/esm/Switch.js +6 -4
  378. package/dist/esm/Switch.js.map +1 -1
  379. package/dist/esm/Tabs.js +1 -1
  380. package/dist/esm/Tag.js +1 -1
  381. package/dist/esm/TagList.js +1 -1
  382. package/dist/esm/TextField.js +1 -1
  383. package/dist/esm/Toast.js +1 -1
  384. package/dist/esm/ToastStack.js +28 -9
  385. package/dist/esm/ToastStack.js.map +1 -1
  386. package/dist/esm/Tooltip.js +1 -1
  387. package/dist/esm/Typography.js +12 -12
  388. package/dist/esm/icons.generated/Add.js +1 -1
  389. package/dist/esm/icons.generated/AddCircle.js +1 -1
  390. package/dist/esm/icons.generated/Apps.js +1 -1
  391. package/dist/esm/icons.generated/AppsSelected.js +1 -1
  392. package/dist/esm/icons.generated/ArrowBottom.js +1 -1
  393. package/dist/esm/icons.generated/ArrowDown.js +1 -1
  394. package/dist/esm/icons.generated/ArrowLeft.js +1 -1
  395. package/dist/esm/icons.generated/ArrowLowerLeft.js +1 -1
  396. package/dist/esm/icons.generated/ArrowLowerRight.js +1 -1
  397. package/dist/esm/icons.generated/ArrowRight.js +1 -1
  398. package/dist/esm/icons.generated/ArrowTop.js +1 -1
  399. package/dist/esm/icons.generated/ArrowUnsorted.js +1 -1
  400. package/dist/esm/icons.generated/ArrowUp.js +1 -1
  401. package/dist/esm/icons.generated/ArrowUpperLeft.js +1 -1
  402. package/dist/esm/icons.generated/ArrowUpperRight.js +1 -1
  403. package/dist/esm/icons.generated/Bug.js +1 -1
  404. package/dist/esm/icons.generated/Calendar.js +1 -1
  405. package/dist/esm/icons.generated/Call.js +1 -1
  406. package/dist/esm/icons.generated/Chat.js +1 -1
  407. package/dist/esm/icons.generated/Check.js +1 -1
  408. package/dist/esm/icons.generated/CheckCircleFilled.js +1 -1
  409. package/dist/esm/icons.generated/ChevronDown.js +1 -1
  410. package/dist/esm/icons.generated/ChevronLeft.js +1 -1
  411. package/dist/esm/icons.generated/ChevronRight.js +1 -1
  412. package/dist/esm/icons.generated/ChevronUp.js +1 -1
  413. package/dist/esm/icons.generated/Clock.js +1 -1
  414. package/dist/esm/icons.generated/Close.js +1 -1
  415. package/dist/esm/icons.generated/CloseCircleFilled.js +1 -1
  416. package/dist/esm/icons.generated/CollapseLeft.js +1 -1
  417. package/dist/esm/icons.generated/CollapseRight.js +1 -1
  418. package/dist/esm/icons.generated/Copy.js +1 -1
  419. package/dist/esm/icons.generated/Customizations.js +1 -1
  420. package/dist/esm/icons.generated/CustomizationsSelected.js +1 -1
  421. package/dist/esm/icons.generated/DangerDiamond.js +1 -1
  422. package/dist/esm/icons.generated/DangerDiamondFilled.js +1 -1
  423. package/dist/esm/icons.generated/Delete.js +1 -1
  424. package/dist/esm/icons.generated/Deny.js +1 -1
  425. package/dist/esm/icons.generated/Devices.js +1 -1
  426. package/dist/esm/icons.generated/Directory.js +1 -1
  427. package/dist/esm/icons.generated/DirectorySelected.js +1 -1
  428. package/dist/esm/icons.generated/Documentation.js +1 -1
  429. package/dist/esm/icons.generated/Download.js +1 -1
  430. package/dist/esm/icons.generated/DragIndicator.js +1 -1
  431. package/dist/esm/icons.generated/Edit.js +1 -1
  432. package/dist/esm/icons.generated/ExpandLeft.js +1 -1
  433. package/dist/esm/icons.generated/ExpandRight.js +1 -1
  434. package/dist/esm/icons.generated/ExternalLink.js +1 -1
  435. package/dist/esm/icons.generated/Filter.js +1 -1
  436. package/dist/esm/icons.generated/Folder.js +1 -1
  437. package/dist/esm/icons.generated/Globe.js +1 -1
  438. package/dist/esm/icons.generated/Grid.js +1 -1
  439. package/dist/esm/icons.generated/Group.js +1 -1
  440. package/dist/esm/icons.generated/Happy.js +1 -1
  441. package/dist/esm/icons.generated/Hide.js +1 -1
  442. package/dist/esm/icons.generated/Home.js +1 -1
  443. package/dist/esm/icons.generated/HomeSelected.js +1 -1
  444. package/dist/esm/icons.generated/IdentityGovernance.js +1 -1
  445. package/dist/esm/icons.generated/IdentityGovernanceSelected.js +1 -1
  446. package/dist/esm/icons.generated/InformationCircle.js +1 -1
  447. package/dist/esm/icons.generated/InformationCircleFilled.js +1 -1
  448. package/dist/esm/icons.generated/Link.js +1 -1
  449. package/dist/esm/icons.generated/List.js +1 -1
  450. package/dist/esm/icons.generated/Lock.js +1 -1
  451. package/dist/esm/icons.generated/Menu.js +1 -1
  452. package/dist/esm/icons.generated/More.js +1 -1
  453. package/dist/esm/icons.generated/Neutral.js +1 -1
  454. package/dist/esm/icons.generated/Notification.js +1 -1
  455. package/dist/esm/icons.generated/Pause.js +1 -1
  456. package/dist/esm/icons.generated/QuestionCircle.js +1 -1
  457. package/dist/esm/icons.generated/QuestionCircleFilled.js +1 -1
  458. package/dist/esm/icons.generated/Refresh.js +1 -1
  459. package/dist/esm/icons.generated/Reports.js +1 -1
  460. package/dist/esm/icons.generated/ReportsSelected.js +1 -1
  461. package/dist/esm/icons.generated/Reset.js +1 -1
  462. package/dist/esm/icons.generated/Resume.js +1 -1
  463. package/dist/esm/icons.generated/Sad.js +1 -1
  464. package/dist/esm/icons.generated/Same.js +1 -1
  465. package/dist/esm/icons.generated/Search.js +1 -1
  466. package/dist/esm/icons.generated/Security.js +1 -1
  467. package/dist/esm/icons.generated/SecuritySelected.js +1 -1
  468. package/dist/esm/icons.generated/Send.js +1 -1
  469. package/dist/esm/icons.generated/Server.js +1 -1
  470. package/dist/esm/icons.generated/Settings.js +1 -1
  471. package/dist/esm/icons.generated/SettingsSelected.js +1 -1
  472. package/dist/esm/icons.generated/Show.js +1 -1
  473. package/dist/esm/icons.generated/Sparkle.js +1 -1
  474. package/dist/esm/icons.generated/Subtract.js +1 -1
  475. package/dist/esm/icons.generated/Sync.js +1 -1
  476. package/dist/esm/icons.generated/ThumbsDown.js +1 -1
  477. package/dist/esm/icons.generated/ThumbsUp.js +1 -1
  478. package/dist/esm/icons.generated/Unlock.js +1 -1
  479. package/dist/esm/icons.generated/Upload.js +1 -1
  480. package/dist/esm/icons.generated/User.js +1 -1
  481. package/dist/esm/icons.generated/Video.js +1 -1
  482. package/dist/esm/icons.generated/Warning.js +1 -1
  483. package/dist/esm/icons.generated/WarningFilled.js +1 -1
  484. package/dist/esm/icons.generated/Workflows.js +1 -1
  485. package/dist/esm/icons.generated/WorkflowsSelected.js +1 -1
  486. package/dist/esm/labs/AppTile.js +1 -1
  487. package/dist/esm/labs/DataFilters.js +21 -13
  488. package/dist/esm/labs/DataFilters.js.map +1 -1
  489. package/dist/esm/labs/DataTable.js +1 -1
  490. package/dist/esm/labs/DataTablePagination.js +1 -1
  491. package/dist/esm/labs/DataView/BulkActionsMenu.js +1 -1
  492. package/dist/esm/labs/DataView/CardLayoutContent.js +2 -2
  493. package/dist/esm/labs/DataView/DataCard.js +1 -1
  494. package/dist/esm/labs/DataView/DataTable.js +1 -1
  495. package/dist/esm/labs/DataView/DataView.js +5 -3
  496. package/dist/esm/labs/DataView/DataView.js.map +1 -1
  497. package/dist/esm/labs/DataView/DetailPanel.js +1 -1
  498. package/dist/esm/labs/DataView/LayoutSwitcher.js +1 -1
  499. package/dist/esm/labs/DataView/RowActions.js +1 -1
  500. package/dist/esm/labs/DataView/TableLayoutContent.js +1 -1
  501. package/dist/esm/labs/DataView/TableSettings.js +1 -1
  502. package/dist/esm/labs/DataView/componentTypes.js.map +1 -1
  503. package/dist/esm/labs/DatePickers/DateTimeField.js +1 -1
  504. package/dist/esm/labs/DatePickers/DateTimePicker.js +1 -1
  505. package/dist/esm/labs/OdysseyPickers/ComposablePicker.js +1 -1
  506. package/dist/esm/labs/OdysseyPickers/Picker.js +1 -1
  507. package/dist/esm/labs/OdysseyPickers/PickerVirtualizationListBox.js +1 -1
  508. package/dist/esm/labs/OdysseyPickers/PickerWithOptionAdornment.js +1 -1
  509. package/dist/esm/labs/OdysseyPickers/SearchDropdown.js +1 -1
  510. package/dist/esm/labs/PageTemplate/DocumentationLink.js +1 -1
  511. package/dist/esm/labs/PageTemplate/Layout.js +1 -1
  512. package/dist/esm/labs/PageTemplate/PageTemplate.js +1 -1
  513. package/dist/esm/labs/PaginatedTable.js +1 -1
  514. package/dist/esm/labs/StaticTable.js +1 -1
  515. package/dist/esm/labs/UserProfile.js +1 -1
  516. package/dist/esm/labs/UserProfileMenuButton.js +1 -1
  517. package/dist/esm/logos.generated/Duo.js +1 -1
  518. package/dist/esm/logos.generated/GoogleAuth.js +1 -1
  519. package/dist/esm/logos.generated/OktaVerify.js +1 -1
  520. package/dist/esm/logos.generated/Persona.js +1 -1
  521. package/dist/esm/logos.generated/SymantecVip.js +1 -1
  522. package/dist/esm/logos.generated/Yubikey.js +1 -1
  523. package/dist/esm/properties/ts/odyssey-react-mui.js +1 -0
  524. package/dist/esm/properties/ts/odyssey-react-mui.js.map +1 -1
  525. package/dist/esm/properties/ts/odyssey-react-mui_cs.js +1 -0
  526. package/dist/esm/properties/ts/odyssey-react-mui_cs.js.map +1 -1
  527. package/dist/esm/properties/ts/odyssey-react-mui_da.js +1 -0
  528. package/dist/esm/properties/ts/odyssey-react-mui_da.js.map +1 -1
  529. package/dist/esm/properties/ts/odyssey-react-mui_de.js +1 -0
  530. package/dist/esm/properties/ts/odyssey-react-mui_de.js.map +1 -1
  531. package/dist/esm/properties/ts/odyssey-react-mui_el.js +1 -0
  532. package/dist/esm/properties/ts/odyssey-react-mui_el.js.map +1 -1
  533. package/dist/esm/properties/ts/odyssey-react-mui_es.js +2 -1
  534. package/dist/esm/properties/ts/odyssey-react-mui_es.js.map +1 -1
  535. package/dist/esm/properties/ts/odyssey-react-mui_eu.js +1 -0
  536. package/dist/esm/properties/ts/odyssey-react-mui_eu.js.map +1 -1
  537. package/dist/esm/properties/ts/odyssey-react-mui_fi.js +1 -0
  538. package/dist/esm/properties/ts/odyssey-react-mui_fi.js.map +1 -1
  539. package/dist/esm/properties/ts/odyssey-react-mui_fr.js +1 -0
  540. package/dist/esm/properties/ts/odyssey-react-mui_fr.js.map +1 -1
  541. package/dist/esm/properties/ts/odyssey-react-mui_ht.js +11 -10
  542. package/dist/esm/properties/ts/odyssey-react-mui_ht.js.map +1 -1
  543. package/dist/esm/properties/ts/odyssey-react-mui_hu.js +2 -1
  544. package/dist/esm/properties/ts/odyssey-react-mui_hu.js.map +1 -1
  545. package/dist/esm/properties/ts/odyssey-react-mui_id.js +1 -0
  546. package/dist/esm/properties/ts/odyssey-react-mui_id.js.map +1 -1
  547. package/dist/esm/properties/ts/odyssey-react-mui_it.js +2 -1
  548. package/dist/esm/properties/ts/odyssey-react-mui_it.js.map +1 -1
  549. package/dist/esm/properties/ts/odyssey-react-mui_ja.js +2 -1
  550. package/dist/esm/properties/ts/odyssey-react-mui_ja.js.map +1 -1
  551. package/dist/esm/properties/ts/odyssey-react-mui_ko.js +1 -0
  552. package/dist/esm/properties/ts/odyssey-react-mui_ko.js.map +1 -1
  553. package/dist/esm/properties/ts/odyssey-react-mui_ms.js +1 -0
  554. package/dist/esm/properties/ts/odyssey-react-mui_ms.js.map +1 -1
  555. package/dist/esm/properties/ts/odyssey-react-mui_nb.js +1 -0
  556. package/dist/esm/properties/ts/odyssey-react-mui_nb.js.map +1 -1
  557. package/dist/esm/properties/ts/odyssey-react-mui_nl_NL.js +1 -0
  558. package/dist/esm/properties/ts/odyssey-react-mui_nl_NL.js.map +1 -1
  559. package/dist/esm/properties/ts/odyssey-react-mui_ok_PL.js +1 -0
  560. package/dist/esm/properties/ts/odyssey-react-mui_ok_PL.js.map +1 -1
  561. package/dist/esm/properties/ts/odyssey-react-mui_ok_SK.js +1 -0
  562. package/dist/esm/properties/ts/odyssey-react-mui_ok_SK.js.map +1 -1
  563. package/dist/esm/properties/ts/odyssey-react-mui_pl.js +1 -0
  564. package/dist/esm/properties/ts/odyssey-react-mui_pl.js.map +1 -1
  565. package/dist/esm/properties/ts/odyssey-react-mui_pt_BR.js +2 -1
  566. package/dist/esm/properties/ts/odyssey-react-mui_pt_BR.js.map +1 -1
  567. package/dist/esm/properties/ts/odyssey-react-mui_ro.js +1 -0
  568. package/dist/esm/properties/ts/odyssey-react-mui_ro.js.map +1 -1
  569. package/dist/esm/properties/ts/odyssey-react-mui_ru.js +1 -0
  570. package/dist/esm/properties/ts/odyssey-react-mui_ru.js.map +1 -1
  571. package/dist/esm/properties/ts/odyssey-react-mui_sv.js +2 -1
  572. package/dist/esm/properties/ts/odyssey-react-mui_sv.js.map +1 -1
  573. package/dist/esm/properties/ts/odyssey-react-mui_th.js +2 -1
  574. package/dist/esm/properties/ts/odyssey-react-mui_th.js.map +1 -1
  575. package/dist/esm/properties/ts/odyssey-react-mui_tr.js +2 -1
  576. package/dist/esm/properties/ts/odyssey-react-mui_tr.js.map +1 -1
  577. package/dist/esm/properties/ts/odyssey-react-mui_uk.js +2 -1
  578. package/dist/esm/properties/ts/odyssey-react-mui_uk.js.map +1 -1
  579. package/dist/esm/properties/ts/odyssey-react-mui_vi.js +1 -0
  580. package/dist/esm/properties/ts/odyssey-react-mui_vi.js.map +1 -1
  581. package/dist/esm/properties/ts/odyssey-react-mui_zh_CN.js +1 -0
  582. package/dist/esm/properties/ts/odyssey-react-mui_zh_CN.js.map +1 -1
  583. package/dist/esm/properties/ts/odyssey-react-mui_zh_TW.js +1 -0
  584. package/dist/esm/properties/ts/odyssey-react-mui_zh_TW.js.map +1 -1
  585. package/dist/esm/theme/components/Form.js +1 -1
  586. package/dist/esm/theme/components/Form.js.map +1 -1
  587. package/dist/esm/theme/components/Menu.js +0 -1
  588. package/dist/esm/theme/components/Menu.js.map +1 -1
  589. package/dist/esm/ui-shell/AppSwitcher/AppSwitcher.js +1 -1
  590. package/dist/esm/ui-shell/InnerAppContainer.js +1 -1
  591. package/dist/esm/ui-shell/NarrowUiShellContent.js +20 -2
  592. package/dist/esm/ui-shell/NarrowUiShellContent.js.map +1 -1
  593. package/dist/esm/ui-shell/SideNav/NavAccordion.js +1 -1
  594. package/dist/esm/ui-shell/SideNav/SideNav.js +13 -11
  595. package/dist/esm/ui-shell/SideNav/SideNav.js.map +1 -1
  596. package/dist/esm/ui-shell/SideNav/SideNavFooterContent.js +1 -1
  597. package/dist/esm/ui-shell/SideNav/SideNavHeader.js +1 -1
  598. package/dist/esm/ui-shell/SideNav/SideNavItemContent.js +78 -19
  599. package/dist/esm/ui-shell/SideNav/SideNavItemContent.js.map +1 -1
  600. package/dist/esm/ui-shell/SideNav/SideNavItemContentContext.js.map +1 -1
  601. package/dist/esm/ui-shell/SideNav/SideNavItemLinkContent.js +1 -1
  602. package/dist/esm/ui-shell/SideNav/SideNavSortableList.js +3 -2
  603. package/dist/esm/ui-shell/SideNav/SideNavSortableList.js.map +1 -1
  604. package/dist/esm/ui-shell/SideNav/SideNavToggleButton.js +2 -2
  605. package/dist/esm/ui-shell/SideNav/SortableList/SortableItem.js +45 -23
  606. package/dist/esm/ui-shell/SideNav/SortableList/SortableItem.js.map +1 -1
  607. package/dist/esm/ui-shell/SideNav/SortableList/SortableList.js +2 -1
  608. package/dist/esm/ui-shell/SideNav/SortableList/SortableList.js.map +1 -1
  609. package/dist/esm/ui-shell/SideNav/SortableList/SortableOverlay.js +12 -1
  610. package/dist/esm/ui-shell/SideNav/SortableList/SortableOverlay.js.map +1 -1
  611. package/dist/esm/ui-shell/SideNav/types.js.map +1 -1
  612. package/dist/esm/ui-shell/SkipToContent.js +1 -1
  613. package/dist/esm/ui-shell/TopNav/HamburgerMenuIcon.js +1 -1
  614. package/dist/esm/ui-shell/TopNav/TopNav.js +1 -1
  615. package/dist/esm/ui-shell/TopNav/TopNavLinksList.js +1 -1
  616. package/dist/esm/ui-shell/TopNav/TopNavListItem.js +1 -1
  617. package/dist/esm/ui-shell/UiShell.js +1 -1
  618. package/dist/esm/ui-shell/UiShellLogo.js +1 -1
  619. package/dist/esm/ui-shell/WideUiShellContent.js +1 -1
  620. package/dist/esm/ui-shell/index.js +0 -1
  621. package/dist/esm/ui-shell/index.js.map +1 -1
  622. package/dist/esm/web-component/odysseyWebComponentVersion.generated.js +1 -1
  623. package/dist/esm/web-component/odysseyWebComponentVersion.generated.js.map +1 -1
  624. package/dist/esm/web-component/renderReactInWebComponent.js +18 -28
  625. package/dist/esm/web-component/renderReactInWebComponent.js.map +1 -1
  626. package/dist/tsconfig.production.tsbuildinfo +1 -1
  627. package/dist/types/Drawer.d.ts.map +1 -1
  628. package/dist/types/FullScreenOverlayContext.d.ts +1 -0
  629. package/dist/types/FullScreenOverlayContext.d.ts.map +1 -1
  630. package/dist/types/PasswordField.d.ts +20 -0
  631. package/dist/types/PasswordField.d.ts.map +1 -1
  632. package/dist/types/Select.d.ts.map +1 -1
  633. package/dist/types/Switch.d.ts.map +1 -1
  634. package/dist/types/ToastStack.d.ts.map +1 -1
  635. package/dist/types/i18n.generated/i18n.d.ts +2 -0
  636. package/dist/types/i18n.generated/i18n.d.ts.map +1 -1
  637. package/dist/types/i18n.generated/i18n.resources.d.ts +50 -19
  638. package/dist/types/i18n.generated/i18n.resources.d.ts.map +1 -1
  639. package/dist/types/labs/DataFilters.d.ts.map +1 -1
  640. package/dist/types/labs/DataView/DataView.d.ts.map +1 -1
  641. package/dist/types/labs/DataView/componentTypes.d.ts +7 -0
  642. package/dist/types/labs/DataView/componentTypes.d.ts.map +1 -1
  643. package/dist/types/properties/ts/odyssey-react-mui.d.ts +1 -0
  644. package/dist/types/properties/ts/odyssey-react-mui.d.ts.map +1 -1
  645. package/dist/types/properties/ts/odyssey-react-mui_cs.d.ts +1 -0
  646. package/dist/types/properties/ts/odyssey-react-mui_cs.d.ts.map +1 -1
  647. package/dist/types/properties/ts/odyssey-react-mui_da.d.ts +1 -0
  648. package/dist/types/properties/ts/odyssey-react-mui_da.d.ts.map +1 -1
  649. package/dist/types/properties/ts/odyssey-react-mui_de.d.ts +1 -0
  650. package/dist/types/properties/ts/odyssey-react-mui_de.d.ts.map +1 -1
  651. package/dist/types/properties/ts/odyssey-react-mui_el.d.ts +1 -0
  652. package/dist/types/properties/ts/odyssey-react-mui_el.d.ts.map +1 -1
  653. package/dist/types/properties/ts/odyssey-react-mui_es.d.ts +2 -1
  654. package/dist/types/properties/ts/odyssey-react-mui_es.d.ts.map +1 -1
  655. package/dist/types/properties/ts/odyssey-react-mui_eu.d.ts +1 -0
  656. package/dist/types/properties/ts/odyssey-react-mui_eu.d.ts.map +1 -1
  657. package/dist/types/properties/ts/odyssey-react-mui_fi.d.ts +1 -0
  658. package/dist/types/properties/ts/odyssey-react-mui_fi.d.ts.map +1 -1
  659. package/dist/types/properties/ts/odyssey-react-mui_fr.d.ts +1 -0
  660. package/dist/types/properties/ts/odyssey-react-mui_fr.d.ts.map +1 -1
  661. package/dist/types/properties/ts/odyssey-react-mui_ht.d.ts +11 -10
  662. package/dist/types/properties/ts/odyssey-react-mui_ht.d.ts.map +1 -1
  663. package/dist/types/properties/ts/odyssey-react-mui_hu.d.ts +2 -1
  664. package/dist/types/properties/ts/odyssey-react-mui_hu.d.ts.map +1 -1
  665. package/dist/types/properties/ts/odyssey-react-mui_id.d.ts +1 -0
  666. package/dist/types/properties/ts/odyssey-react-mui_id.d.ts.map +1 -1
  667. package/dist/types/properties/ts/odyssey-react-mui_it.d.ts +2 -1
  668. package/dist/types/properties/ts/odyssey-react-mui_it.d.ts.map +1 -1
  669. package/dist/types/properties/ts/odyssey-react-mui_ja.d.ts +2 -1
  670. package/dist/types/properties/ts/odyssey-react-mui_ja.d.ts.map +1 -1
  671. package/dist/types/properties/ts/odyssey-react-mui_ko.d.ts +1 -0
  672. package/dist/types/properties/ts/odyssey-react-mui_ko.d.ts.map +1 -1
  673. package/dist/types/properties/ts/odyssey-react-mui_ms.d.ts +1 -0
  674. package/dist/types/properties/ts/odyssey-react-mui_ms.d.ts.map +1 -1
  675. package/dist/types/properties/ts/odyssey-react-mui_nb.d.ts +1 -0
  676. package/dist/types/properties/ts/odyssey-react-mui_nb.d.ts.map +1 -1
  677. package/dist/types/properties/ts/odyssey-react-mui_nl_NL.d.ts +1 -0
  678. package/dist/types/properties/ts/odyssey-react-mui_nl_NL.d.ts.map +1 -1
  679. package/dist/types/properties/ts/odyssey-react-mui_ok_PL.d.ts +1 -0
  680. package/dist/types/properties/ts/odyssey-react-mui_ok_PL.d.ts.map +1 -1
  681. package/dist/types/properties/ts/odyssey-react-mui_ok_SK.d.ts +1 -0
  682. package/dist/types/properties/ts/odyssey-react-mui_ok_SK.d.ts.map +1 -1
  683. package/dist/types/properties/ts/odyssey-react-mui_pl.d.ts +1 -0
  684. package/dist/types/properties/ts/odyssey-react-mui_pl.d.ts.map +1 -1
  685. package/dist/types/properties/ts/odyssey-react-mui_pt_BR.d.ts +2 -1
  686. package/dist/types/properties/ts/odyssey-react-mui_pt_BR.d.ts.map +1 -1
  687. package/dist/types/properties/ts/odyssey-react-mui_ro.d.ts +1 -0
  688. package/dist/types/properties/ts/odyssey-react-mui_ro.d.ts.map +1 -1
  689. package/dist/types/properties/ts/odyssey-react-mui_ru.d.ts +1 -0
  690. package/dist/types/properties/ts/odyssey-react-mui_ru.d.ts.map +1 -1
  691. package/dist/types/properties/ts/odyssey-react-mui_sv.d.ts +2 -1
  692. package/dist/types/properties/ts/odyssey-react-mui_sv.d.ts.map +1 -1
  693. package/dist/types/properties/ts/odyssey-react-mui_th.d.ts +2 -1
  694. package/dist/types/properties/ts/odyssey-react-mui_th.d.ts.map +1 -1
  695. package/dist/types/properties/ts/odyssey-react-mui_tr.d.ts +2 -1
  696. package/dist/types/properties/ts/odyssey-react-mui_tr.d.ts.map +1 -1
  697. package/dist/types/properties/ts/odyssey-react-mui_uk.d.ts +2 -1
  698. package/dist/types/properties/ts/odyssey-react-mui_uk.d.ts.map +1 -1
  699. package/dist/types/properties/ts/odyssey-react-mui_vi.d.ts +1 -0
  700. package/dist/types/properties/ts/odyssey-react-mui_vi.d.ts.map +1 -1
  701. package/dist/types/properties/ts/odyssey-react-mui_zh_CN.d.ts +1 -0
  702. package/dist/types/properties/ts/odyssey-react-mui_zh_CN.d.ts.map +1 -1
  703. package/dist/types/properties/ts/odyssey-react-mui_zh_TW.d.ts +1 -0
  704. package/dist/types/properties/ts/odyssey-react-mui_zh_TW.d.ts.map +1 -1
  705. package/dist/types/theme/components/Form.d.ts.map +1 -1
  706. package/dist/types/theme/components/Menu.d.ts.map +1 -1
  707. package/dist/types/ui-shell/NarrowUiShellContent.d.ts.map +1 -1
  708. package/dist/types/ui-shell/SideNav/SideNav.d.ts.map +1 -1
  709. package/dist/types/ui-shell/SideNav/SideNavItemContent.d.ts +9 -9
  710. package/dist/types/ui-shell/SideNav/SideNavItemContent.d.ts.map +1 -1
  711. package/dist/types/ui-shell/SideNav/SideNavItemContentContext.d.ts +6 -0
  712. package/dist/types/ui-shell/SideNav/SideNavItemContentContext.d.ts.map +1 -1
  713. package/dist/types/ui-shell/SideNav/SideNavSortableList.d.ts +1 -1
  714. package/dist/types/ui-shell/SideNav/SideNavSortableList.d.ts.map +1 -1
  715. package/dist/types/ui-shell/SideNav/SortableList/SortableItem.d.ts +5 -3
  716. package/dist/types/ui-shell/SideNav/SortableList/SortableItem.d.ts.map +1 -1
  717. package/dist/types/ui-shell/SideNav/SortableList/SortableList.d.ts +8 -1
  718. package/dist/types/ui-shell/SideNav/SortableList/SortableList.d.ts.map +1 -1
  719. package/dist/types/ui-shell/SideNav/SortableList/SortableOverlay.d.ts +5 -0
  720. package/dist/types/ui-shell/SideNav/SortableList/SortableOverlay.d.ts.map +1 -1
  721. package/dist/types/ui-shell/SideNav/types.d.ts +23 -3
  722. package/dist/types/ui-shell/SideNav/types.d.ts.map +1 -1
  723. package/dist/types/ui-shell/index.d.ts +0 -1
  724. package/dist/types/ui-shell/index.d.ts.map +1 -1
  725. package/dist/types/web-component/odysseyWebComponentVersion.generated.d.ts +1 -1
  726. package/dist/types/web-component/renderReactInWebComponent.d.ts +0 -2
  727. package/dist/types/web-component/renderReactInWebComponent.d.ts.map +1 -1
  728. package/package.json +7 -7
@@ -1 +1 @@
1
- {"version":3,"file":"Drawer.js","names":["styled","memo","useCallback","useEffect","useMemo","useRef","useState","Button","FullScreenOverlay","useTranslation","CloseIcon","useOdysseyDesignTokens","Heading5","jsx","_jsx","jsxs","_jsxs","variantValues","DrawerHeader","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","drawerContentRef","i18n","anchorDirection","dir","frameId","handleContentScroll","drawerContentElement","current","cancelAnimationFrame","scrollHeight","clientHeight","requestAnimationFrame","dividersVisible","hasFooter","handleCloseButtonClick","event","muiDrawerComponent","_Drawer","anchor","open","sx","transition","onClick","size","startIcon","tabIndex","ref","overlayType","MemoizedDrawer","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":";AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,OAAOA,MAAM,MAAM,iBAAiB;AAKpC,SACEC,IAAI,EAGJC,WAAW,EACXC,SAAS,EACTC,OAAO,EACPC,MAAM,EACNC,QAAQ,QACH,OAAO;AAId,SAASC,MAAM,QAAqB,qBAAqB;AACzD,SAASC,iBAAiB,QAAQ,wBAAwB;AAC1D,SAASC,cAAc,QAAQ,0BAA0B;AACzD,SAASC,SAAS,QAAQ,4BAA4B;AACtD,SAEEC,sBAAsB,QACjB,iCAAiC;AACxC,SAASC,QAAQ,QAAQ,iBAAiB;AAAC,SAAAC,GAAA,IAAAC,IAAA,EAAAC,IAAA,IAAAC,KAAA;AAM3C,OAAO,MAAMC,aAAa,GAAG,CAAC,WAAW,EAAE,YAAY,CAAU;AA8EjE,MAAMC,YAAY,GAAGlB,MAAM,CAAC,KAAK,EAAE;EACjCmB,iBAAiB,EAAGC,IAAI,IACtBA,IAAI,KAAK,qBAAqB,IAAIA,IAAI,KAAK;AAC/C,CAAC,CAAmB;AACpB;AACA;AACA;AACA;AACA;AACA;AACA;AACA,aAAa,CAAC;EAAEC;AAAoB,CAAC,KAAKA,mBAAmB,CAACC,QAAQ;AACtE,MAAM,CAAC;EAAED;AAAoB,CAAC,KAAKA,mBAAmB,CAACE,QAAQ;AAC/D,WAAW,CAAC;EAAEF;AAAoB,CAAC,KAAKA,m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CACU,CAAC,EACflC,IAAA,CAACmB,aAAa;QAAA,IACPgB,mBAAmB,IAAI;UAE1B2B,QAAQ,EAAE;QACZ,CAAC;QACDlD,WAAW,EAAEqC,eAAgB;QAC7B1C,mBAAmB,EAAEA,mBAAoB;QACzCwD,GAAG,EAAE1B,gBAAiB;QAAAd,QAAA,EAErBA;MAAQ,CACI,CAAC,EACf2B,SAAS,IACRhD,KAAA,CAACkB,YAAY;QACXR,WAAW,EAAEqC,eAAgB;QAC7B1C,mBAAmB,EAAEA,mBAAoB;QAAAgB,QAAA,GAExCO,6BAA6B,EAC7BF,8BAA8B,EAC9BD,4BAA4B;MAAA,CACjB,CACf;IAAA,CACmB;EAAC,CACd,CACZ,EACD,CACEY,eAAe,EACfjB,SAAS,EACTC,QAAQ,EACR0B,eAAe,EACfE,sBAAsB,EACtBD,SAAS,EACTf,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,GAC5BlC,IAAA,CAACN,iBAAiB;IAACsE,WAAW,EAAC,QAAQ;IAAAzC,QAAA,EACpC8B;EAAkB,CACF,CAAC,GAEpBA,kBACD;AACH,CAAC;AAED,MAAMY,cAAc,GAAG9E,IAAI,CAACkC,MAAM,CAAC;AACnC4C,cAAc,CAACC,WAAW,wCAAW;AAErC,SAASD,cAAc,IAAI5C,MAAM","ignoreList":[]}
1
+ {"version":3,"file":"Drawer.js","names":["styled","memo","useCallback","useEffect","useMemo","useRef","useState","Button","FullScreenOverlay","useTranslation","CloseIcon","useOdysseyDesignTokens","Heading5","jsx","_jsx","jsxs","_jsxs","variantValues","DrawerHeader","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","drawerContentRef","i18n","anchorDirection","dir","frameId","handleContentScroll","drawerContentElement","current","cancelAnimationFrame","scrollHeight","clientHeight","requestAnimationFrame","dividersVisible","hasFooter","handleCloseButtonClick","event","muiDrawerComponent","_Drawer","anchor","open","sx","transition","onClick","size","startIcon","tabIndex","ref","overlayType","MemoizedDrawer","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 & h5 {\n margin-bottom: 0;\n }\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":";AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,OAAOA,MAAM,MAAM,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ACmB;EAAC,CACd,CACZ,EACD,CACEY,eAAe,EACfjB,SAAS,EACTC,QAAQ,EACR0B,eAAe,EACfE,sBAAsB,EACtBD,SAAS,EACTf,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,GAC5BlC,IAAA,CAACN,iBAAiB;IAACsE,WAAW,EAAC,QAAQ;IAAAzC,QAAA,EACpC8B;EAAkB,CACF,CAAC,GAEpBA,kBACD;AACH,CAAC;AAED,MAAMY,cAAc,GAAG9E,IAAI,CAACkC,MAAM,CAAC;AACnC4C,cAAc,CAACC,WAAW,wCAAW;AAErC,SAASD,cAAc,IAAI5C,MAAM","ignoreList":[]}
@@ -61,7 +61,7 @@ const EmptyState = ({
61
61
  });
62
62
  };
63
63
  const MemoizedEmptyState = memo(EmptyState);
64
- MemoizedEmptyState.displayName = "EmptyState::pkg=odyssey&odysseyV=1.63.0";
64
+ MemoizedEmptyState.displayName = "EmptyState::pkg=odyssey&odysseyV=1.65.0";
65
65
  export { MemoizedEmptyState as EmptyState };
66
66
  export { MemoizedEmptyState as DataTableEmptyState };
67
67
  //# sourceMappingURL=EmptyState.js.map
@@ -39,6 +39,6 @@ const ErrorMessageList = ({
39
39
  });
40
40
  };
41
41
  const MemoizedErrorMessageList = memo(ErrorMessageList);
42
- MemoizedErrorMessageList.displayName = "ErrorMessageList::pkg=odyssey&odysseyV=1.63.0";
42
+ MemoizedErrorMessageList.displayName = "ErrorMessageList::pkg=odyssey&odysseyV=1.65.0";
43
43
  export { MemoizedErrorMessageList as ErrorMessageList };
44
44
  //# sourceMappingURL=ErrorMessageList.js.map
package/dist/esm/Field.js CHANGED
@@ -86,6 +86,6 @@ const Field = ({
86
86
  });
87
87
  };
88
88
  const MemoizedField = memo(Field);
89
- MemoizedField.displayName = "Field::pkg=odyssey&odysseyV=1.63.0";
89
+ MemoizedField.displayName = "Field::pkg=odyssey&odysseyV=1.65.0";
90
90
  export { MemoizedField as Field };
91
91
  //# sourceMappingURL=Field.js.map
@@ -43,6 +43,6 @@ const FieldError = ({
43
43
  });
44
44
  };
45
45
  const MemoizedFieldError = memo(FieldError);
46
- MemoizedFieldError.displayName = "FieldError::pkg=odyssey&odysseyV=1.63.0";
46
+ MemoizedFieldError.displayName = "FieldError::pkg=odyssey&odysseyV=1.65.0";
47
47
  export { MemoizedFieldError as FieldError };
48
48
  //# sourceMappingURL=FieldError.js.map
@@ -48,6 +48,6 @@ const FieldHint = ({
48
48
  });
49
49
  };
50
50
  const MemoizedFieldHint = memo(FieldHint);
51
- MemoizedFieldHint.displayName = "FieldHint::pkg=odyssey&odysseyV=1.63.0";
51
+ MemoizedFieldHint.displayName = "FieldHint::pkg=odyssey&odysseyV=1.65.0";
52
52
  export { MemoizedFieldHint as FieldHint };
53
53
  //# sourceMappingURL=FieldHint.js.map
@@ -44,6 +44,6 @@ const FieldLabel = ({
44
44
  });
45
45
  };
46
46
  const MemoizedFieldLabel = memo(FieldLabel);
47
- MemoizedFieldLabel.displayName = "FieldLabel::pkg=odyssey&odysseyV=1.63.0";
47
+ MemoizedFieldLabel.displayName = "FieldLabel::pkg=odyssey&odysseyV=1.65.0";
48
48
  export { MemoizedFieldLabel as FieldLabel };
49
49
  //# sourceMappingURL=FieldLabel.js.map
@@ -153,6 +153,6 @@ const Checkbox = ({
153
153
  });
154
154
  };
155
155
  const MemoizedCheckbox = memo(Checkbox);
156
- MemoizedCheckbox.displayName = "Checkbox::pkg=odyssey&odysseyV=1.63.0";
156
+ MemoizedCheckbox.displayName = "Checkbox::pkg=odyssey&odysseyV=1.65.0";
157
157
  export { MemoizedCheckbox as Checkbox };
158
158
  //# sourceMappingURL=Checkbox.js.map
@@ -67,6 +67,6 @@ const CheckboxGroup = ({
67
67
  });
68
68
  };
69
69
  const MemoizedCheckboxGroup = memo(CheckboxGroup);
70
- MemoizedCheckboxGroup.displayName = "CheckboxGroup::pkg=odyssey&odysseyV=1.63.0";
70
+ MemoizedCheckboxGroup.displayName = "CheckboxGroup::pkg=odyssey&odysseyV=1.65.0";
71
71
  export { MemoizedCheckboxGroup as CheckboxGroup };
72
72
  //# sourceMappingURL=CheckboxGroup.js.map
@@ -115,6 +115,6 @@ const Radio = ({
115
115
  });
116
116
  };
117
117
  const MemoizedRadio = memo(Radio);
118
- MemoizedRadio.displayName = "Radio::pkg=odyssey&odysseyV=1.63.0";
118
+ MemoizedRadio.displayName = "Radio::pkg=odyssey&odysseyV=1.65.0";
119
119
  export { MemoizedRadio as Radio };
120
120
  //# sourceMappingURL=Radio.js.map
@@ -88,6 +88,6 @@ const RadioGroup = ({
88
88
  });
89
89
  };
90
90
  const MemoizedRadioGroup = memo(RadioGroup);
91
- MemoizedRadioGroup.displayName = "RadioGroup::pkg=odyssey&odysseyV=1.63.0";
91
+ MemoizedRadioGroup.displayName = "RadioGroup::pkg=odyssey&odysseyV=1.65.0";
92
92
  export { MemoizedRadioGroup as RadioGroup };
93
93
  //# sourceMappingURL=RadioGroup.js.map
@@ -64,6 +64,6 @@ const Fieldset = ({
64
64
  });
65
65
  };
66
66
  const MemoizedFieldset = memo(Fieldset);
67
- MemoizedFieldset.displayName = "Fieldset::pkg=odyssey&odysseyV=1.63.0";
67
+ MemoizedFieldset.displayName = "Fieldset::pkg=odyssey&odysseyV=1.65.0";
68
68
  export { MemoizedFieldset as Fieldset };
69
69
  //# sourceMappingURL=Fieldset.js.map
@@ -48,6 +48,6 @@ const FileUploadIllustration = () => {
48
48
  });
49
49
  };
50
50
  const MemoizedFileUploadIllustration = memo(FileUploadIllustration);
51
- MemoizedFileUploadIllustration.displayName = "FileUploadIllustration::pkg=odyssey&odysseyV=1.63.0";
51
+ MemoizedFileUploadIllustration.displayName = "FileUploadIllustration::pkg=odyssey&odysseyV=1.65.0";
52
52
  export { MemoizedFileUploadIllustration as FileUploadIllustration };
53
53
  //# sourceMappingURL=FileUploadIllustration.js.map
@@ -104,6 +104,6 @@ const FileUploadPreview = ({
104
104
  });
105
105
  };
106
106
  const MemoizedFileUploadPreview = memo(FileUploadPreview);
107
- MemoizedFileUploadPreview.displayName = "FileUploadPreview::pkg=odyssey&odysseyV=1.63.0";
107
+ MemoizedFileUploadPreview.displayName = "FileUploadPreview::pkg=odyssey&odysseyV=1.65.0";
108
108
  export { MemoizedFileUploadPreview as FileUploadPreview };
109
109
  //# sourceMappingURL=FileUploadPreview.js.map
@@ -193,6 +193,6 @@ const FileUploader = ({
193
193
  });
194
194
  };
195
195
  const MemoizedFileUploader = memo(FileUploader);
196
- MemoizedFileUploader.displayName = "FileUploader::pkg=odyssey&odysseyV=1.63.0";
196
+ MemoizedFileUploader.displayName = "FileUploader::pkg=odyssey&odysseyV=1.65.0";
197
197
  export { MemoizedFileUploader as FileUpload, MemoizedFileUploader as FileUploader };
198
198
  //# sourceMappingURL=FileUploader.js.map
package/dist/esm/Form.js CHANGED
@@ -92,6 +92,6 @@ const Form = ({
92
92
  });
93
93
  };
94
94
  const MemoizedForm = memo(Form);
95
- MemoizedForm.displayName = "Form::pkg=odyssey&odysseyV=1.63.0";
95
+ MemoizedForm.displayName = "Form::pkg=odyssey&odysseyV=1.65.0";
96
96
  export { MemoizedForm as Form };
97
97
  //# sourceMappingURL=Form.js.map
@@ -35,6 +35,6 @@ const FullScreenOverlay = ({
35
35
  });
36
36
  };
37
37
  const MemoizedFullScreenOverlay = memo(FullScreenOverlay);
38
- MemoizedFullScreenOverlay.displayName = "FullScreenOverlay::pkg=odyssey&odysseyV=1.63.0";
38
+ MemoizedFullScreenOverlay.displayName = "FullScreenOverlay::pkg=odyssey&odysseyV=1.65.0";
39
39
  export { MemoizedFullScreenOverlay as FullScreenOverlay };
40
40
  //# sourceMappingURL=FullScreenOverlay.js.map
@@ -18,6 +18,7 @@ export const useFullScreenOverlayContext = () => useContext(FullScreenOverlayCon
18
18
  export const OVERLAY_DATA_ATTRIBUTES = {
19
19
  dialog: "data-odyssey-react-dialog-overlay-component",
20
20
  drawer: "data-odyssey-react-drawer-overlay-component",
21
+ toastStack: "data-odyssey-react-toast-stack-overlay-component",
21
22
  default: "data-odyssey-react-overlay-component"
22
23
  };
23
24
  const FullScreenOverlayProvider = ({
@@ -74,6 +75,6 @@ const FullScreenOverlayProvider = ({
74
75
  });
75
76
  };
76
77
  const MemoizedFullScreenOverlayProvider = memo(FullScreenOverlayProvider);
77
- MemoizedFullScreenOverlayProvider.displayName = "FullScreenOverlayProvider::pkg=odyssey&odysseyV=1.63.0";
78
+ MemoizedFullScreenOverlayProvider.displayName = "FullScreenOverlayProvider::pkg=odyssey&odysseyV=1.65.0";
78
79
  export { MemoizedFullScreenOverlayProvider as FullScreenOverlayProvider };
79
80
  //# sourceMappingURL=FullScreenOverlayContext.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"FullScreenOverlayContext.js","names":["createContext","memo","useContext","useEffect","useMemo","createShadowDomElements","jsx","_jsx","FullScreenOverlayContext","useFullScreenOverlayContext","OVERLAY_DATA_ATTRIBUTES","dialog","drawer","default","FullScreenOverlayProvider","children","hasShadowDom","overlayParentElement","overlayParentElementProp","overlayType","fullScreenOverlayId","overlayEmotionRootElement","overlayShadowRootElement","document","createElement","emotionRootElement","shadowRootElement","undefined","id","removeAttribute","setAttribute","body","append","remove","providerValue","Provider","value","MemoizedFullScreenOverlayProvider","displayName"],"sources":["../../src/FullScreenOverlayContext.tsx"],"sourcesContent":["/*!\n * Copyright (c) 2025-present, Okta, Inc. and/or its affiliates. All rights reserved.\n * The Okta software accompanied by this notice is provided pursuant to the Apache License, Version 2.0 (the \"License.\")\n *\n * You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0.\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS, WITHOUT\n * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n *\n * See the License for the specific language governing permissions and limitations under the License.\n */\n\nimport {\n createContext,\n memo,\n type ReactNode,\n useContext,\n useEffect,\n useMemo,\n} from \"react\";\n\nimport { createShadowDomElements } from \"./web-component/createShadowDomElements.js\";\n\nexport type FullScreenOverlayContextType = {\n overlayEmotionRootElement?: HTMLDivElement | HTMLElement;\n overlayShadowRootElement?: HTMLDivElement | HTMLElement;\n};\n\nexport const FullScreenOverlayContext =\n createContext<FullScreenOverlayContextType>({});\n\nexport const useFullScreenOverlayContext = () =>\n useContext(FullScreenOverlayContext);\n\nexport const OVERLAY_DATA_ATTRIBUTES = {\n dialog: \"data-odyssey-react-dialog-overlay-component\",\n drawer: \"data-odyssey-react-drawer-overlay-component\",\n default: \"data-odyssey-react-overlay-component\",\n} as const;\n\nexport type OverlayType = keyof typeof OVERLAY_DATA_ATTRIBUTES;\n\nexport type FullScreenOverlayProviderProps = {\n children: ReactNode;\n /**\n * An optional HTML `id` attribute to be applied to the overlay's container element.\n */\n fullScreenOverlayId?: string;\n hasShadowDom?: boolean;\n /**\n * @experimental This is the element overlays will render into. By default, it's set to `document.body`.\n *\n * If you specify this value , it will render overlays into this container, such as the `shadowRootElement` over the document body. Most likely, you don't need to change this value, but you might run into strange issues related iframes and other shadow roots. This is here as a safeguard; not meant to be used.\n */\n overlayParentElement?: HTMLDivElement | HTMLElement;\n /**\n * Type of overlay being rendered. This controls the data attribute set on the overlay parent element.\n * @default \"default\"\n */\n overlayType?: OverlayType;\n};\n\nconst FullScreenOverlayProvider = ({\n children,\n hasShadowDom,\n overlayParentElement: overlayParentElementProp,\n overlayType = \"default\",\n fullScreenOverlayId,\n}: FullScreenOverlayProviderProps) => {\n const {\n overlayEmotionRootElement,\n overlayParentElement,\n overlayShadowRootElement,\n } = useMemo(() => {\n const overlayParentElement =\n overlayParentElementProp || document.createElement(\"div\");\n\n if (hasShadowDom) {\n const { emotionRootElement, shadowRootElement } =\n createShadowDomElements(overlayParentElement);\n\n return {\n overlayEmotionRootElement: emotionRootElement,\n overlayParentElement,\n overlayShadowRootElement: shadowRootElement,\n };\n }\n\n return {\n overlayEmotionRootElement: undefined,\n overlayParentElement,\n overlayShadowRootElement: undefined,\n };\n }, [hasShadowDom, overlayParentElementProp]);\n\n useEffect(() => {\n if (overlayParentElement) {\n if (fullScreenOverlayId) {\n overlayParentElement.id = fullScreenOverlayId;\n } else {\n overlayParentElement.removeAttribute(\"id\");\n }\n overlayParentElement.setAttribute(\n OVERLAY_DATA_ATTRIBUTES[overlayType],\n \"\",\n );\n document.body.append(overlayParentElement);\n }\n\n return () => {\n overlayParentElement.remove();\n };\n }, [fullScreenOverlayId, overlayParentElement, overlayType]);\n\n const providerValue = useMemo(\n () => ({\n overlayEmotionRootElement,\n overlayShadowRootElement,\n }),\n [overlayEmotionRootElement, overlayShadowRootElement],\n );\n\n return (\n <FullScreenOverlayContext.Provider value={providerValue}>\n {children}\n </FullScreenOverlayContext.Provider>\n );\n};\n\nconst MemoizedFullScreenOverlayProvider = memo(FullScreenOverlayProvider);\nMemoizedFullScreenOverlayProvider.displayName = \"FullScreenOverlayProvider\";\n\nexport { MemoizedFullScreenOverlayProvider as FullScreenOverlayProvider };\n"],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,SACEA,aAAa,EACbC,IAAI,EAEJC,UAAU,EACVC,SAAS,EACTC,OAAO,QACF,OAAO;AAEd,SAASC,uBAAuB,QAAQ,4CAA4C;AAAC,SAAAC,GAAA,IAAAC,IAAA;AAOrF,OAAO,MAAMC,wBAAwB,GACnCR,aAAa,CAA+B,CAAC,CAAC,CAAC;AAEjD,OAAO,MAAMS,2BAA2B,GAAGA,CAAA,KACzCP,UAAU,CAACM,wBAAwB,CAAC;AAEtC,OAAO,MAAME,uBAAuB,GAAG;EACrCC,MAAM,EAAE,6CAA6C;EACrDC,MAAM,EAAE,6CAA6C;EACrDC,OAAO,EAAE;AACX,CAAU;AAwBV,MAAMC,yBAAyB,GAAGA,CAAC;EACjCC,QAAQ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wB,CACtD,CAAC;EAED,OACEf,IAAA,CAACC,wBAAwB,CAAC2B,QAAQ;IAACC,KAAK,EAAEF,aAAc;IAAAnB,QAAA,EACrDA;EAAQ,CACwB,CAAC;AAExC,CAAC;AAED,MAAMsB,iCAAiC,GAAGpC,IAAI,CAACa,yBAAyB,CAAC;AACzEuB,iCAAiC,CAACC,WAAW,2DAA8B;AAE3E,SAASD,iCAAiC,IAAIvB,yBAAyB","ignoreList":[]}
1
+ {"version":3,"file":"FullScreenOverlayContext.js","names":["createContext","memo","useContext","useEffect","useMemo","createShadowDomElements","jsx","_jsx","FullScreenOverlayContext","useFullScreenOverlayContext","OVERLAY_DATA_ATTRIBUTES","dialog","drawer","toastStack","default","FullScreenOverlayProvider","children","hasShadowDom","overlayParentElement","overlayParentElementProp","overlayType","fullScreenOverlayId","overlayEmotionRootElement","overlayShadowRootElement","document","createElement","emotionRootElement","shadowRootElement","undefined","id","removeAttribute","setAttribute","body","append","remove","providerValue","Provider","value","MemoizedFullScreenOverlayProvider","displayName"],"sources":["../../src/FullScreenOverlayContext.tsx"],"sourcesContent":["/*!\n * Copyright (c) 2025-present, Okta, Inc. and/or its affiliates. All rights reserved.\n * The Okta software accompanied by this notice is provided pursuant to the Apache License, Version 2.0 (the \"License.\")\n *\n * You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0.\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS, WITHOUT\n * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n *\n * See the License for the specific language governing permissions and limitations under the License.\n */\n\nimport {\n createContext,\n memo,\n type ReactNode,\n useContext,\n useEffect,\n useMemo,\n} from \"react\";\n\nimport { createShadowDomElements } from \"./web-component/createShadowDomElements.js\";\n\nexport type FullScreenOverlayContextType = {\n overlayEmotionRootElement?: HTMLDivElement | HTMLElement;\n overlayShadowRootElement?: HTMLDivElement | HTMLElement;\n};\n\nexport const FullScreenOverlayContext =\n createContext<FullScreenOverlayContextType>({});\n\nexport const useFullScreenOverlayContext = () =>\n useContext(FullScreenOverlayContext);\n\nexport const OVERLAY_DATA_ATTRIBUTES = {\n dialog: \"data-odyssey-react-dialog-overlay-component\",\n drawer: \"data-odyssey-react-drawer-overlay-component\",\n toastStack: \"data-odyssey-react-toast-stack-overlay-component\",\n default: \"data-odyssey-react-overlay-component\",\n} as const;\n\nexport type OverlayType = keyof typeof OVERLAY_DATA_ATTRIBUTES;\n\nexport type FullScreenOverlayProviderProps = {\n children: ReactNode;\n /**\n * An optional HTML `id` attribute to be applied to the overlay's container element.\n */\n fullScreenOverlayId?: string;\n hasShadowDom?: boolean;\n /**\n * @experimental This is the element overlays will render into. By default, it's set to `document.body`.\n *\n * If you specify this value , it will render overlays into this container, such as the `shadowRootElement` over the document body. Most likely, you don't need to change this value, but you might run into strange issues related iframes and other shadow roots. This is here as a safeguard; not meant to be used.\n */\n overlayParentElement?: HTMLDivElement | HTMLElement;\n /**\n * Type of overlay being rendered. This controls the data attribute set on the overlay parent element.\n * @default \"default\"\n */\n overlayType?: OverlayType;\n};\n\nconst FullScreenOverlayProvider = ({\n children,\n hasShadowDom,\n overlayParentElement: overlayParentElementProp,\n overlayType = \"default\",\n fullScreenOverlayId,\n}: FullScreenOverlayProviderProps) => {\n const {\n overlayEmotionRootElement,\n overlayParentElement,\n overlayShadowRootElement,\n } = useMemo(() => {\n const overlayParentElement =\n overlayParentElementProp || document.createElement(\"div\");\n\n if (hasShadowDom) {\n const { emotionRootElement, shadowRootElement } =\n createShadowDomElements(overlayParentElement);\n\n return {\n overlayEmotionRootElement: emotionRootElement,\n overlayParentElement,\n overlayShadowRootElement: shadowRootElement,\n };\n }\n\n return {\n overlayEmotionRootElement: undefined,\n overlayParentElement,\n overlayShadowRootElement: undefined,\n };\n }, [hasShadowDom, overlayParentElementProp]);\n\n useEffect(() => {\n if (overlayParentElement) {\n if (fullScreenOverlayId) {\n overlayParentElement.id = fullScreenOverlayId;\n } else {\n overlayParentElement.removeAttribute(\"id\");\n }\n overlayParentElement.setAttribute(\n OVERLAY_DATA_ATTRIBUTES[overlayType],\n \"\",\n );\n document.body.append(overlayParentElement);\n }\n\n return () => {\n overlayParentElement.remove();\n };\n }, [fullScreenOverlayId, overlayParentElement, overlayType]);\n\n const providerValue = useMemo(\n () => ({\n overlayEmotionRootElement,\n overlayShadowRootElement,\n }),\n [overlayEmotionRootElement, overlayShadowRootElement],\n );\n\n return (\n <FullScreenOverlayContext.Provider value={providerValue}>\n {children}\n </FullScreenOverlayContext.Provider>\n );\n};\n\nconst MemoizedFullScreenOverlayProvider = memo(FullScreenOverlayProvider);\nMemoizedFullScreenOverlayProvider.displayName = \"FullScreenOverlayProvider\";\n\nexport { MemoizedFullScreenOverlayProvider as FullScreenOverlayProvider };\n"],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,SACEA,aAAa,EACbC,IAAI,EAEJC,UAAU,EACVC,SAAS,EACTC,OAAO,QACF,OAAO;AAEd,SAASC,uBAAuB,QAAQ,4CAA4C;AAAC,SAAAC,GAAA,IAAAC,IAAA;AAOrF,OAAO,MAAMC,wBAAwB,GACnCR,aAAa,CAA+B,CAAC,CAAC,CAAC;AAEjD,OAAO,MAAMS,2BAA2B,GAAGA,CAAA,KACzCP,UAAU,CAACM,wBAAwB,CAAC;AAEtC,OAAO,MAAME,uBAAuB,GAAG;EACrCC,MAAM,EAAE,6CAA6C;EACrDC,MAAM,EAAE,6CAA6C;EACrDC,UAAU,EAAE,kDAAkD;EAC9DC,OAAO,EAAE;AACX,CAAU;AAwBV,MAAMC,yBAAyB,GAAGA,CAAC;EACjCC,QAAQ;EACRC,YAAY;EACZC,oBAAoB,EAAEC,wBAAwB;EAC9CC,WAAW,GAAG,SAAS;EACvBC;AAC8B,CAAC,KAAK;EACpC,MAAM;IACJC,yBAAyB;IACzBJ,oBAAoB;IACpBK;EACF,CAAC,GAAGnB,OAAO,CAAC,MAAM;IAChB,MAAMc,oB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ACzEuB,iCAAiC,CAACC,WAAW,2DAA8B;AAE3E,SAASD,iCAAiC,IAAIvB,yBAAyB","ignoreList":[]}
@@ -18,6 +18,6 @@ const HintLink = props => _jsx(Link, {
18
18
  variant: "monochrome"
19
19
  });
20
20
  const MemoizedHintLink = memo(HintLink);
21
- MemoizedHintLink.displayName = "HintLink::pkg=odyssey&odysseyV=1.63.0";
21
+ MemoizedHintLink.displayName = "HintLink::pkg=odyssey&odysseyV=1.65.0";
22
22
  export { MemoizedHintLink as HintLink };
23
23
  //# sourceMappingURL=HintLink.js.map
@@ -60,6 +60,6 @@ const IconWithTooltip = ({
60
60
  });
61
61
  };
62
62
  const MemoizedIconWithTooltip = memo(IconWithTooltip);
63
- MemoizedIconWithTooltip.displayName = "IconWithTooltip::pkg=odyssey&odysseyV=1.63.0";
63
+ MemoizedIconWithTooltip.displayName = "IconWithTooltip::pkg=odyssey&odysseyV=1.65.0";
64
64
  export { MemoizedIconWithTooltip as IconWithTooltip };
65
65
  //# sourceMappingURL=IconWithTooltip.js.map
package/dist/esm/Link.js CHANGED
@@ -74,6 +74,6 @@ const Link = ({
74
74
  });
75
75
  };
76
76
  const MemoizedLink = memo(Link);
77
- MemoizedLink.displayName = "Link::pkg=odyssey&odysseyV=1.63.0";
77
+ MemoizedLink.displayName = "Link::pkg=odyssey&odysseyV=1.65.0";
78
78
  export { MemoizedLink as Link };
79
79
  //# sourceMappingURL=Link.js.map
@@ -27,6 +27,6 @@ const MuiPropsChild = forwardRef(({
27
27
  });
28
28
  });
29
29
  const MemoizedMuiPropsChild = memo(MuiPropsChild);
30
- MemoizedMuiPropsChild.displayName = "MuiPropsChild::pkg=odyssey&odysseyV=1.63.0";
30
+ MemoizedMuiPropsChild.displayName = "MuiPropsChild::pkg=odyssey&odysseyV=1.65.0";
31
31
  export { MemoizedMuiPropsChild as MuiPropsChild };
32
32
  //# sourceMappingURL=MuiPropsChild.js.map
@@ -101,6 +101,6 @@ const NativeSelect = forwardRef(({
101
101
  });
102
102
  });
103
103
  const MemoizedNativeSelect = memo(NativeSelect);
104
- MemoizedNativeSelect.displayName = "NativeSelect::pkg=odyssey&odysseyV=1.63.0";
104
+ MemoizedNativeSelect.displayName = "NativeSelect::pkg=odyssey&odysseyV=1.65.0";
105
105
  export { MemoizedNativeSelect as NativeSelect };
106
106
  //# sourceMappingURL=NativeSelect.js.map
@@ -41,6 +41,6 @@ const OdysseyCacheProvider = ({
41
41
  });
42
42
  };
43
43
  const MemoizedOdysseyCacheProvider = memo(OdysseyCacheProvider);
44
- MemoizedOdysseyCacheProvider.displayName = "OdysseyCacheProvider::pkg=odyssey&odysseyV=1.63.0";
44
+ MemoizedOdysseyCacheProvider.displayName = "OdysseyCacheProvider::pkg=odyssey&odysseyV=1.65.0";
45
45
  export { MemoizedOdysseyCacheProvider as OdysseyCacheProvider };
46
46
  //# sourceMappingURL=OdysseyCacheProvider.js.map
@@ -75,6 +75,6 @@ const OdysseyProvider = ({
75
75
  });
76
76
  };
77
77
  const MemoizedOdysseyProvider = memo(OdysseyProvider);
78
- MemoizedOdysseyProvider.displayName = "OdysseyProvider::pkg=odyssey&odysseyV=1.63.0";
78
+ MemoizedOdysseyProvider.displayName = "OdysseyProvider::pkg=odyssey&odysseyV=1.65.0";
79
79
  export { MemoizedOdysseyProvider as OdysseyProvider };
80
80
  //# sourceMappingURL=OdysseyProvider.js.map
@@ -83,6 +83,6 @@ const OdysseyThemeProvider = ({
83
83
  }) : providerComponents;
84
84
  };
85
85
  const MemoizedOdysseyThemeProvider = memo(OdysseyThemeProvider);
86
- MemoizedOdysseyThemeProvider.displayName = "OdysseyThemeProvider::pkg=odyssey&odysseyV=1.63.0";
86
+ MemoizedOdysseyThemeProvider.displayName = "OdysseyThemeProvider::pkg=odyssey&odysseyV=1.65.0";
87
87
  export { MemoizedOdysseyThemeProvider as OdysseyThemeProvider };
88
88
  //# sourceMappingURL=OdysseyThemeProvider.js.map
@@ -33,6 +33,6 @@ const OdysseyThemeProviderPropsProvider = ({
33
33
  });
34
34
  };
35
35
  const MemoizedOdysseyThemeProviderPropsProvider = memo(OdysseyThemeProviderPropsProvider);
36
- MemoizedOdysseyThemeProviderPropsProvider.displayName = "OdysseyThemeProviderPropsProvider::pkg=odyssey&odysseyV=1.63.0";
36
+ MemoizedOdysseyThemeProviderPropsProvider.displayName = "OdysseyThemeProviderPropsProvider::pkg=odyssey&odysseyV=1.65.0";
37
37
  export { MemoizedOdysseyThemeProviderPropsProvider as OdysseyThemeProviderPropsProvider };
38
38
  //# sourceMappingURL=OdysseyThemeProviderPropsContext.js.map
@@ -255,6 +255,6 @@ const Pagination = ({
255
255
  });
256
256
  };
257
257
  const MemoizedPagination = memo(Pagination);
258
- MemoizedPagination.displayName = "Pagination::pkg=odyssey&odysseyV=1.63.0";
258
+ MemoizedPagination.displayName = "Pagination::pkg=odyssey&odysseyV=1.65.0";
259
259
  export { MemoizedPagination as Pagination };
260
260
  //# sourceMappingURL=Pagination.js.map
@@ -39,6 +39,7 @@ const PasswordField = forwardRef(({
39
39
  onFocus,
40
40
  onBlur,
41
41
  placeholder,
42
+ showPasswordToggleAriaLabel,
42
43
  testId,
43
44
  translate,
44
45
  value
@@ -84,7 +85,7 @@ const PasswordField = forwardRef(({
84
85
  position: "end",
85
86
  children: _jsx(_IconButton, {
86
87
  "aria-controls": id,
87
- "aria-label": t("passwordfield.icon.label.show"),
88
+ "aria-label": showPasswordToggleAriaLabel ?? t("passwordfield.icon.label.show"),
88
89
  "aria-pressed": inputType === "text",
89
90
  onClick: togglePasswordVisibility,
90
91
  children: inputType === "password" ? _jsx(ShowIcon, {}) : _jsx(HideIcon, {})
@@ -109,7 +110,7 @@ const PasswordField = forwardRef(({
109
110
  required: !isOptional,
110
111
  translate: translate,
111
112
  type: inputType
112
- }), [autoCompleteType, hasInitialFocus, inputValues, t, togglePasswordVisibility, inputType, nameOverride, onChange, onFocus, onBlur, placeholder, isOptional, isReadOnly, hasShowPassword, ref, testId, translate]);
113
+ }), [autoCompleteType, hasInitialFocus, inputValues, t, togglePasswordVisibility, inputType, nameOverride, onChange, onFocus, onBlur, placeholder, isOptional, isReadOnly, hasShowPassword, ref, showPasswordToggleAriaLabel, testId, translate]);
113
114
  return _jsx(Field, {
114
115
  ariaDescribedBy: ariaDescribedBy,
115
116
  errorMessage: errorMessage,
@@ -127,6 +128,6 @@ const PasswordField = forwardRef(({
127
128
  });
128
129
  });
129
130
  const MemoizedPasswordField = memo(PasswordField);
130
- MemoizedPasswordField.displayName = "PasswordField::pkg=odyssey&odysseyV=1.63.0";
131
+ MemoizedPasswordField.displayName = "PasswordField::pkg=odyssey&odysseyV=1.65.0";
131
132
  export { MemoizedPasswordField as PasswordField };
132
133
  //# sourceMappingURL=PasswordField.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"PasswordField.js","names":["forwardRef","memo","useCallback","useImperativeHandle","useRef","useState","Field","useTranslation","HideIcon","ShowIcon","getControlState","useInputValues","jsx","_jsx","PasswordField","ariaDescribedBy","autoCompleteType","defaultValue","errorMessage","errorMessageList","hasInitialFocus","hint","id","idOverride","inputRef","isDisabled","isFullWidth","isOptional","hasShowPassword","isReadOnly","label","name","nameOverride","onChange","onChangeProp","onFocus","onBlur","placeholder","testId","translate","value","ref","t","inputType","setInputType","togglePasswordVisibility","controlledStateRef","controlledValue","uncontrolledValue","inputValues","controlState","current","localInputRef","focus","event","renderFieldComponent","errorMessageElementId","labelElementId","_InputBase","autoComplete","autoFocus","endAdornment","_InputAdornment","position","children","_IconButton","onClick","inputProps","role","readOnly","required","type","fieldType","hasVisibleLabel","MemoizedPasswordField","displayName"],"sources":["../../src/PasswordField.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 { IconButton, InputAdornment, InputBase } from \"@mui/material\";\nimport {\n ChangeEventHandler,\n FocusEventHandler,\n forwardRef,\n memo,\n useCallback,\n useImperativeHandle,\n useRef,\n useState,\n} from \"react\";\n\nimport type { HtmlProps } from \"./HtmlProps.js\";\n\nimport { Field } from \"./Field.js\";\nimport {\n FieldComponentProps,\n FieldComponentRenderProps,\n} from \"./FieldComponentProps.js\";\nimport { useTranslation } from \"./i18n.generated/i18n.js\";\nimport { HideIcon, ShowIcon } from \"./icons.generated/index.js\";\nimport { FocusHandle, getControlState, useInputValues } from \"./inputUtils.js\";\n\nexport type PasswordFieldProps = {\n /**\n * Controls the browser autocomplete hint for the password field.\n * - If `'current-password'`, hints that the field is for signing in with an existing password.\n * - If `'new-password'`, hints that the field is for creating or updating a password; browsers may suggest a strong password.\n */\n autoCompleteType?: \"current-password\" | \"new-password\";\n /**\n * initial value for input. Use when component in uncontrolled.\n */\n defaultValue?: string;\n /**\n * If `true`, the input receives focus automatically on mount.\n */\n hasInitialFocus?: boolean;\n /**\n * If `true`, renders a toggle button that lets the user reveal or hide the password value.\n * @default true\n */\n hasShowPassword?: boolean;\n /**\n * Ref attached to the underlying <input> element.\n */\n inputRef?: React.RefObject<FocusHandle>;\n /**\n * The label for the `input` element.\n */\n label: string;\n /**\n * Called when the input loses focus.\n */\n onBlur?: FocusEventHandler<HTMLInputElement | HTMLTextAreaElement>;\n /**\n * Called when the input value changes.\n */\n onChange?: ChangeEventHandler<HTMLTextAreaElement | HTMLInputElement>;\n /**\n * Called when the input gains focus.\n */\n onFocus?: FocusEventHandler<HTMLInputElement | HTMLTextAreaElement>;\n /**\n * The short hint displayed in the `input` before the user enters a value.\n */\n placeholder?: string;\n /**\n * The value of the `input` element. Use when component is controlled.\n */\n value?: string;\n} & FieldComponentProps &\n Pick<HtmlProps, \"ariaDescribedBy\" | \"testId\" | \"translate\">;\n\ntype FieldRenderProps = Partial<\n Pick<FieldComponentRenderProps, \"ariaDescribedBy\" | \"errorMessageElementId\">\n> &\n Pick<FieldComponentRenderProps, \"id\" | \"labelElementId\">;\n\n/**\n * A text field for collecting sensitive input such as passwords. Renders a masked\n * input with an optional toggle button that lets users reveal or hide the entered value.\n */\nconst PasswordField = forwardRef<HTMLInputElement, PasswordFieldProps>(\n (\n {\n ariaDescribedBy,\n autoCompleteType,\n defaultValue,\n errorMessage,\n errorMessageList,\n hasInitialFocus,\n hint,\n id: idOverride,\n inputRef,\n isDisabled = false,\n isFullWidth = false,\n isOptional = false,\n hasShowPassword = true,\n isReadOnly,\n label,\n name: nameOverride,\n onChange: onChangeProp,\n onFocus,\n onBlur,\n placeholder,\n testId,\n translate,\n value,\n },\n ref,\n ) => {\n const { t } = useTranslation();\n const [inputType, setInputType] = useState(\"password\");\n\n const togglePasswordVisibility = useCallback(() => {\n setInputType((inputType) =>\n inputType === \"password\" ? \"text\" : \"password\",\n );\n }, []);\n\n const controlledStateRef = useRef(\n getControlState({\n controlledValue: value,\n uncontrolledValue: defaultValue,\n }),\n );\n const inputValues = useInputValues({\n defaultValue,\n value,\n controlState: controlledStateRef.current,\n });\n\n const localInputRef = useRef<HTMLInputElement>(null);\n useImperativeHandle(inputRef, () => {\n return {\n focus: () => {\n localInputRef.current?.focus();\n },\n };\n }, []);\n\n const onChange = useCallback<\n ChangeEventHandler<HTMLTextAreaElement | HTMLInputElement>\n >(\n (event) => {\n onChangeProp?.(event);\n },\n [onChangeProp],\n );\n\n const renderFieldComponent = useCallback(\n ({\n ariaDescribedBy,\n errorMessageElementId,\n id,\n labelElementId,\n }: FieldRenderProps) => (\n <InputBase\n {...inputValues}\n aria-describedby={ariaDescribedBy}\n autoComplete={inputType === \"password\" ? autoCompleteType : \"off\"}\n /* eslint-disable-next-line jsx-a11y/no-autofocus */\n autoFocus={hasInitialFocus}\n endAdornment={\n hasShowPassword && (\n <InputAdornment position=\"end\">\n <IconButton\n aria-controls={id}\n aria-label={t(\"passwordfield.icon.label.show\")}\n aria-pressed={inputType === \"text\"}\n onClick={togglePasswordVisibility}\n >\n {inputType === \"password\" ? <ShowIcon /> : <HideIcon />}\n </IconButton>\n </InputAdornment>\n )\n }\n id={id}\n inputProps={{\n \"aria-errormessage\": errorMessageElementId,\n \"aria-labelledby\": labelElementId,\n \"aria-readonly\": isReadOnly,\n \"data-se\": testId,\n // role: \"textbox\" Added because password inputs don't have an implicit role assigned. This causes problems with element selection.\n role: \"textbox\",\n }}\n inputRef={localInputRef}\n name={nameOverride ?? id}\n onBlur={onBlur}\n onChange={onChange}\n onFocus={onFocus}\n placeholder={placeholder}\n readOnly={isReadOnly}\n ref={ref}\n required={!isOptional}\n translate={translate}\n type={inputType}\n />\n ),\n [\n autoCompleteType,\n hasInitialFocus,\n inputValues,\n t,\n togglePasswordVisibility,\n inputType,\n nameOverride,\n onChange,\n onFocus,\n onBlur,\n placeholder,\n isOptional,\n isReadOnly,\n hasShowPassword,\n ref,\n testId,\n translate,\n ],\n );\n\n return (\n <Field\n ariaDescribedBy={ariaDescribedBy}\n errorMessage={errorMessage}\n errorMessageList={errorMessageList}\n fieldType=\"single\"\n hasVisibleLabel\n hint={hint}\n id={idOverride}\n isDisabled={isDisabled}\n isFullWidth={isFullWidth}\n isOptional={isOptional}\n isReadOnly={isReadOnly}\n label={label}\n renderFieldComponent={renderFieldComponent}\n />\n );\n },\n);\n\nconst MemoizedPasswordField = memo(PasswordField);\nMemoizedPasswordField.displayName = \"PasswordField\";\n\nexport { MemoizedPasswordField as PasswordField };\n"],"mappings":";;;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAGA,SAGEA,UAAU,EACVC,IAAI,EACJC,WAAW,EACXC,mBAAmB,EACnBC,MAAM,EACNC,QAAQ,QACH,OAAO;AAId,SAASC,KAAK,QAAQ,YAAY;AAKlC,SAASC,cAAc,QAAQ,0BAA0B;AACzD,SAASC,Q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AAS;IACnBE,OAAO,EAAEA,OAAQ;IACjBE,WAAW,EAAEA,WAAY;IACzBgC,QAAQ,EAAExC,UAAW;IACrBY,GAAG,EAAEA,GAAI;IACT6B,QAAQ,EAAE,CAAC3C,UAAW;IACtBY,SAAS,EAAEA,SAAU;IACrBgC,IAAI,EAAE5B;EAAU,CACjB,CACF,EACD,CACE3B,gBAAgB,EAChBI,eAAe,EACf6B,WAAW,EACXP,CAAC,EACDG,wBAAwB,EACxBF,SAAS,EACTX,YAAY,EACZC,QAAQ,EACRE,OAAO,EACPC,MAAM,EACNC,WAAW,EACXV,UAAU,EACVE,UAAU,EACVD,eAAe,EACfa,GAAG,EACHH,MAAM,EACNC,SAAS,CAEb,CAAC;EAED,OACE1B,IAAA,CAACP,KAAK;IACJS,eAAe,EAAEA,eAAgB;IACjCG,YAAY,EAAEA,YAAa;IAC3BC,gBAAgB,EAAEA,gBAAiB;IACnCqD,SAAS,EAAC,QAAQ;IAClBC,eAAe;IACfpD,IAAI,EAAEA,IAAK;IACXC,EAAE,EAAEC,UAAW;IACfE,UAAU,EAAEA,UAAW;IACvBC,WAAW,EAAEA,WAAY;IACzBC,UAAU,EAAEA,UAAW;IACvBE,UAAU,EAAEA,UAAW;IACvBC,KAAK,EAAEA,KAAM;IACbyB,oBAAoB,EAAEA;EAAqB,CAC5C,CAAC;AAEN,CACF,CAAC;AAED,MAAMmB,qBAAqB,GAAGzE,IAAI,CAACa,aAAa,CAAC;AACjD4D,qBAAqB,CAACC,WAAW,+CAAkB;AAEnD,SAASD,qBAAqB,IAAI5D,aAAa","ignoreList":[]}
1
+ {"version":3,"file":"PasswordField.js","names":["forwardRef","memo","useCallback","useImperativeHandle","useRef","useState","Field","useTranslation","HideIcon","ShowIcon","getControlState","useInputValues","jsx","_jsx","PasswordField","ariaDescribedBy","autoCompleteType","defaultValue","errorMessage","errorMessageList","hasInitialFocus","hint","id","idOverride","inputRef","isDisabled","isFullWidth","isOptional","hasShowPassword","isReadOnly","label","name","nameOverride","onChange","onChangeProp","onFocus","onBlur","placeholder","showPasswordToggleAriaLabel","testId","translate","value","ref","t","inputType","setInputType","togglePasswordVisibility","controlledStateRef","controlledValue","uncontrolledValue","inputValues","controlState","current","localInputRef","focus","event","renderFieldComponent","errorMessageElementId","labelElementId","_InputBase","autoComplete","autoFocus","endAdornment","_InputAdornment","position","children","_IconButton","onClick","inputProps","role","readOnly","required","type","fieldType","hasVisibleLabel","MemoizedPasswordField","displayName"],"sources":["../../src/PasswordField.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 { IconButton, InputAdornment, InputBase } from \"@mui/material\";\nimport {\n ChangeEventHandler,\n FocusEventHandler,\n forwardRef,\n memo,\n useCallback,\n useImperativeHandle,\n useRef,\n useState,\n} from \"react\";\n\nimport type { HtmlProps } from \"./HtmlProps.js\";\n\nimport { Field } from \"./Field.js\";\nimport {\n FieldComponentProps,\n FieldComponentRenderProps,\n} from \"./FieldComponentProps.js\";\nimport { useTranslation } from \"./i18n.generated/i18n.js\";\nimport { HideIcon, ShowIcon } from \"./icons.generated/index.js\";\nimport { FocusHandle, getControlState, useInputValues } from \"./inputUtils.js\";\n\nexport type PasswordFieldProps = {\n /**\n * Controls the browser autocomplete hint for the password field.\n * - If `'current-password'`, hints that the field is for signing in with an existing password.\n * - If `'new-password'`, hints that the field is for creating or updating a password; browsers may suggest a strong password.\n */\n autoCompleteType?: \"current-password\" | \"new-password\";\n /**\n * initial value for input. Use when component in uncontrolled.\n */\n defaultValue?: string;\n /**\n * If `true`, the input receives focus automatically on mount.\n */\n hasInitialFocus?: boolean;\n /**\n * If `true`, renders a toggle button that lets the user reveal or hide the password value.\n * @default true\n */\n hasShowPassword?: boolean;\n /**\n * Ref attached to the underlying <input> element.\n */\n inputRef?: React.RefObject<FocusHandle>;\n /**\n * The label for the `input` element.\n */\n label: string;\n /**\n * Called when the input loses focus.\n */\n onBlur?: FocusEventHandler<HTMLInputElement | HTMLTextAreaElement>;\n /**\n * Called when the input value changes.\n */\n onChange?: ChangeEventHandler<HTMLTextAreaElement | HTMLInputElement>;\n /**\n * Called when the input gains focus.\n */\n onFocus?: FocusEventHandler<HTMLInputElement | HTMLTextAreaElement>;\n /**\n * The short hint displayed in the `input` before the user enters a value.\n */\n placeholder?: string;\n /**\n * Accessible name for the password visibility toggle. This is a stable name\n * that does not change when the password is shown or hidden — the toggle's\n * pressed state is conveyed through `aria-pressed`, so the name must stay\n * constant to follow the ARIA toggle-button pattern. Override per instance\n * when a page has more than one PasswordField (or when collecting other\n * sensitive input such as a security answer) so screen-reader users can tell\n * the toggles apart (e.g. \"Show re-entered password\").\n */\n showPasswordToggleAriaLabel?: string;\n /**\n * The value of the `input` element. Use when component is controlled.\n */\n value?: string;\n} & FieldComponentProps &\n Pick<HtmlProps, \"ariaDescribedBy\" | \"testId\" | \"translate\">;\n\ntype FieldRenderProps = Partial<\n Pick<FieldComponentRenderProps, \"ariaDescribedBy\" | \"errorMessageElementId\">\n> &\n Pick<FieldComponentRenderProps, \"id\" | \"labelElementId\">;\n\n/**\n * A text field for collecting sensitive input such as passwords. Renders a masked\n * input with an optional toggle button that lets users reveal or hide the entered value.\n */\nconst PasswordField = forwardRef<HTMLInputElement, PasswordFieldProps>(\n (\n {\n ariaDescribedBy,\n autoCompleteType,\n defaultValue,\n errorMessage,\n errorMessageList,\n hasInitialFocus,\n hint,\n id: idOverride,\n inputRef,\n isDisabled = false,\n isFullWidth = false,\n isOptional = false,\n hasShowPassword = true,\n isReadOnly,\n label,\n name: nameOverride,\n onChange: onChangeProp,\n onFocus,\n onBlur,\n placeholder,\n showPasswordToggleAriaLabel,\n testId,\n translate,\n value,\n },\n ref,\n ) => {\n const { t } = useTranslation();\n const [inputType, setInputType] = useState(\"password\");\n\n const togglePasswordVisibility = useCallback(() => {\n setInputType((inputType) =>\n inputType === \"password\" ? \"text\" : \"password\",\n );\n }, []);\n\n const controlledStateRef = useRef(\n getControlState({\n controlledValue: value,\n uncontrolledValue: defaultValue,\n }),\n );\n const inputValues = useInputValues({\n defaultValue,\n value,\n controlState: controlledStateRef.current,\n });\n\n const localInputRef = useRef<HTMLInputElement>(null);\n useImperativeHandle(inputRef, () => {\n return {\n focus: () => {\n localInputRef.current?.focus();\n },\n };\n }, []);\n\n const onChange = useCallback<\n ChangeEventHandler<HTMLTextAreaElement | HTMLInputElement>\n >(\n (event) => {\n onChangeProp?.(event);\n },\n [onChangeProp],\n );\n\n const renderFieldComponent = useCallback(\n ({\n ariaDescribedBy,\n errorMessageElementId,\n id,\n labelElementId,\n }: FieldRenderProps) => (\n <InputBase\n {...inputValues}\n aria-describedby={ariaDescribedBy}\n autoComplete={inputType === \"password\" ? autoCompleteType : \"off\"}\n /* eslint-disable-next-line jsx-a11y/no-autofocus */\n autoFocus={hasInitialFocus}\n endAdornment={\n hasShowPassword && (\n <InputAdornment position=\"end\">\n <IconButton\n aria-controls={id}\n aria-label={\n showPasswordToggleAriaLabel ??\n t(\"passwordfield.icon.label.show\")\n }\n aria-pressed={inputType === \"text\"}\n onClick={togglePasswordVisibility}\n >\n {inputType === \"password\" ? <ShowIcon /> : <HideIcon />}\n </IconButton>\n </InputAdornment>\n )\n }\n id={id}\n inputProps={{\n \"aria-errormessage\": errorMessageElementId,\n \"aria-labelledby\": labelElementId,\n \"aria-readonly\": isReadOnly,\n \"data-se\": testId,\n // role: \"textbox\" Added because password inputs don't have an implicit role assigned. This causes problems with element selection.\n role: \"textbox\",\n }}\n inputRef={localInputRef}\n name={nameOverride ?? id}\n onBlur={onBlur}\n onChange={onChange}\n onFocus={onFocus}\n placeholder={placeholder}\n readOnly={isReadOnly}\n ref={ref}\n required={!isOptional}\n translate={translate}\n type={inputType}\n />\n ),\n [\n autoCompleteType,\n hasInitialFocus,\n inputValues,\n t,\n togglePasswordVisibility,\n inputType,\n nameOverride,\n onChange,\n onFocus,\n onBlur,\n placeholder,\n isOptional,\n isReadOnly,\n hasShowPassword,\n ref,\n showPasswordToggleAriaLabel,\n testId,\n translate,\n ],\n );\n\n return (\n <Field\n ariaDescribedBy={ariaDescribedBy}\n errorMessage={errorMessage}\n errorMessageList={errorMessageList}\n fieldType=\"single\"\n hasVisibleLabel\n hint={hint}\n id={idOverride}\n isDisabled={isDisabled}\n isFullWidth={isFullWidth}\n isOptional={isOptional}\n isReadOnly={isReadOnly}\n label={label}\n renderFieldComponent={renderFieldComponent}\n />\n );\n },\n);\n\nconst MemoizedPasswordField = memo(PasswordField);\nMemoizedPasswordField.displayName = \"PasswordField\";\n\nexport { MemoizedPasswordField as PasswordField };\n"],"mappings":";;;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAGA,SAGEA,UAAU,EACVC,IAAI,EACJC,WAAW,EACXC,mBAAmB,EACnBC,MAAM,EACNC,QAAQ,QACH,OAAO;AAId,SAASC,KAAK,QAAQ,YAAY;AAKlC,SAASC,cAAc,QAAQ,0BAA0B;AACzD,SAASC,QAAQ,EAAEC,QAAQ,QAAQ,4BAA4B;AAC/D,SAAsBC,eAAe,EAAEC,cAAc,QAAQ,iBAAiB;AAAC,SAAAC,GAAA,IAAAC,IAAA;AAwE/E,MAAMC,aAAa,GAAGd,UAAU,CAC9B,CACE;EACEe,eAAe;EACfC,gBAAgB;EAChBC,YAAY;EACZC,YAAY;EACZC,gBAAgB;EAChBC,eAAe;EACfC,IAAI;EACJC,EAAE,EAAEC,UAAU;EACdC,QAAQ;EACRC,UAAU,GAAG,KAAK;EAClBC,WAAW,GAAG,KAAK;EACnBC,UAAU,GAAG,KAAK;EAClBC,eAAe,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M,EACNC,WAAW,EACXV,UAAU,EACVE,UAAU,EACVD,eAAe,EACfc,GAAG,EACHJ,2BAA2B,EAC3BC,MAAM,EACNC,SAAS,CAEb,CAAC;EAED,OACE3B,IAAA,CAACP,KAAK;IACJS,eAAe,EAAEA,eAAgB;IACjCG,YAAY,EAAEA,YAAa;IAC3BC,gBAAgB,EAAEA,gBAAiB;IACnCsD,SAAS,EAAC,QAAQ;IAClBC,eAAe;IACfrD,IAAI,EAAEA,IAAK;IACXC,EAAE,EAAEC,UAAW;IACfE,UAAU,EAAEA,UAAW;IACvBC,WAAW,EAAEA,WAAY;IACzBC,UAAU,EAAEA,UAAW;IACvBE,UAAU,EAAEA,UAAW;IACvBC,KAAK,EAAEA,KAAM;IACb0B,oBAAoB,EAAEA;EAAqB,CAC5C,CAAC;AAEN,CACF,CAAC;AAED,MAAMmB,qBAAqB,GAAG1E,IAAI,CAACa,aAAa,CAAC;AACjD6D,qBAAqB,CAACC,WAAW,+CAAkB;AAEnD,SAASD,qBAAqB,IAAI7D,aAAa","ignoreList":[]}
@@ -30,6 +30,6 @@ const ScreenReaderText = ({
30
30
  children: children
31
31
  });
32
32
  const MemoizedScreenReaderText = memo(ScreenReaderText);
33
- MemoizedScreenReaderText.displayName = "ScreenReaderText::pkg=odyssey&odysseyV=1.63.0";
33
+ MemoizedScreenReaderText.displayName = "ScreenReaderText::pkg=odyssey&odysseyV=1.65.0";
34
34
  export { MemoizedScreenReaderText as ScreenReaderText };
35
35
  //# sourceMappingURL=ScreenReaderText.js.map
@@ -119,6 +119,6 @@ const SearchField = forwardRef(({
119
119
  });
120
120
  });
121
121
  const MemoizedSearchField = memo(SearchField);
122
- MemoizedSearchField.displayName = "SearchField::pkg=odyssey&odysseyV=1.63.0";
122
+ MemoizedSearchField.displayName = "SearchField::pkg=odyssey&odysseyV=1.65.0";
123
123
  export { MemoizedSearchField as SearchField };
124
124
  //# sourceMappingURL=SearchField.js.map
@@ -110,6 +110,13 @@ const Select = ({
110
110
  const [internalSelectedValues, setInternalSelectedValues] = useState(controlledStateRef.current === CONTROLLED ? value : defaultValue);
111
111
  const localInputRef = useRef(null);
112
112
  const odysseyDesignTokens = useOdysseyDesignTokens();
113
+ const [menuPaperMinWidth, setMenuPaperMinWidth] = useState(undefined);
114
+ const handleMenuOpen = useCallback(() => {
115
+ const anchor = selectRef.current?.parentNode;
116
+ if (anchor) {
117
+ setMenuPaperMinWidth(anchor.offsetWidth);
118
+ }
119
+ }, []);
113
120
  useImperativeHandle(inputRef, () => {
114
121
  return {
115
122
  focus: () => {
@@ -252,6 +259,11 @@ const Select = ({
252
259
  },
253
260
  labelId: labelElementId,
254
261
  MenuProps: {
262
+ PaperProps: menuPaperMinWidth !== undefined ? {
263
+ style: {
264
+ minWidth: menuPaperMinWidth
265
+ }
266
+ } : undefined,
255
267
  sx: {
256
268
  ".MuiPaper-root": {
257
269
  maxHeight: "50vh"
@@ -263,6 +275,7 @@ const Select = ({
263
275
  onBlur: onBlur,
264
276
  onChange: onChange,
265
277
  onFocus: onFocus,
278
+ onOpen: handleMenuOpen,
266
279
  renderValue: hasMultipleChoices ? renderValue : undefined,
267
280
  translate: translate,
268
281
  children: renderedOptions
@@ -295,6 +308,6 @@ const Select = ({
295
308
  });
296
309
  };
297
310
  const MemoizedSelect = memo(Select);
298
- MemoizedSelect.displayName = "Select::pkg=odyssey&odysseyV=1.63.0";
311
+ MemoizedSelect.displayName = "Select::pkg=odyssey&odysseyV=1.65.0";
299
312
  export { MemoizedSelect as Select };
300
313
  //# sourceMappingURL=Select.js.map