@okta/odyssey-react-mui 1.43.0 → 1.44.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 (1311) hide show
  1. package/README.md +41 -0
  2. package/dist/cjs/@types/i18next.d.cjs.map +1 -1
  3. package/dist/cjs/@types/properties.d.cjs.map +1 -1
  4. package/dist/cjs/Accordion.cjs +1 -1
  5. package/dist/cjs/Accordion.cjs.map +1 -1
  6. package/dist/cjs/Autocomplete.cjs.map +1 -1
  7. package/dist/cjs/Badge.cjs +1 -1
  8. package/dist/cjs/Badge.cjs.map +1 -1
  9. package/dist/cjs/Banner.cjs.map +1 -1
  10. package/dist/cjs/Box.cjs +1 -1
  11. package/dist/cjs/Box.cjs.map +1 -1
  12. package/dist/cjs/Breadcrumbs.cjs +9 -9
  13. package/dist/cjs/Breadcrumbs.cjs.map +1 -1
  14. package/dist/cjs/Buttons/BaseButton.cjs +1 -1
  15. package/dist/cjs/Buttons/BaseButton.cjs.map +1 -1
  16. package/dist/cjs/Buttons/BaseMenuButton.cjs +10 -10
  17. package/dist/cjs/Buttons/BaseMenuButton.cjs.map +1 -1
  18. package/dist/cjs/Buttons/Button.cjs.map +1 -1
  19. package/dist/cjs/Buttons/MenuButton.cjs.map +1 -1
  20. package/dist/cjs/Buttons/MenuContext.cjs.map +1 -1
  21. package/dist/cjs/Buttons/MenuItem.cjs +1 -1
  22. package/dist/cjs/Buttons/MenuItem.cjs.map +1 -1
  23. package/dist/cjs/Buttons/index.cjs +1 -1
  24. package/dist/cjs/Buttons/index.cjs.map +1 -1
  25. package/dist/cjs/Callout.cjs.map +1 -1
  26. package/dist/cjs/Card.cjs +4 -4
  27. package/dist/cjs/Card.cjs.map +1 -1
  28. package/dist/cjs/Checkbox.cjs +11 -11
  29. package/dist/cjs/Checkbox.cjs.map +1 -1
  30. package/dist/cjs/CheckboxGroup.cjs.map +1 -1
  31. package/dist/cjs/CircularProgress.cjs +2 -2
  32. package/dist/cjs/CircularProgress.cjs.map +1 -1
  33. package/dist/cjs/DataTable/DataTable.cjs +58 -58
  34. package/dist/cjs/DataTable/DataTable.cjs.map +1 -1
  35. package/dist/cjs/DataTable/DataTableRowActions.cjs +4 -4
  36. package/dist/cjs/DataTable/DataTableRowActions.cjs.map +1 -1
  37. package/dist/cjs/DataTable/DataTableSettings.cjs +4 -4
  38. package/dist/cjs/DataTable/DataTableSettings.cjs.map +1 -1
  39. package/dist/cjs/DataTable/index.cjs +1 -1
  40. package/dist/cjs/DataTable/index.cjs.map +1 -1
  41. package/dist/cjs/DataTable/reorderDataRowsLocally.cjs.map +1 -1
  42. package/dist/cjs/DataTable/useRowReordering.cjs +7 -3
  43. package/dist/cjs/DataTable/useRowReordering.cjs.map +1 -1
  44. package/dist/cjs/DataTable/useScrollIndication.cjs.map +1 -1
  45. package/dist/cjs/DatePickers/DateField.cjs +2 -2
  46. package/dist/cjs/DatePickers/DateField.cjs.map +1 -1
  47. package/dist/cjs/DatePickers/DateFieldActionBar.cjs +1 -1
  48. package/dist/cjs/DatePickers/DateFieldActionBar.cjs.map +1 -1
  49. package/dist/cjs/DatePickers/DateFieldLocalizationProvider.cjs +2 -2
  50. package/dist/cjs/DatePickers/DateFieldLocalizationProvider.cjs.map +1 -1
  51. package/dist/cjs/DatePickers/DatePicker.cjs +15 -11
  52. package/dist/cjs/DatePickers/DatePicker.cjs.map +1 -1
  53. package/dist/cjs/DatePickers/datePickerTheme.cjs +1 -1
  54. package/dist/cjs/DatePickers/datePickerTheme.cjs.map +1 -1
  55. package/dist/cjs/DatePickers/useOdysseyDateFields.cjs +1 -1
  56. package/dist/cjs/DatePickers/useOdysseyDateFields.cjs.map +1 -1
  57. package/dist/cjs/Dialog.cjs +5 -4
  58. package/dist/cjs/Dialog.cjs.map +1 -1
  59. package/dist/cjs/Drawer.cjs +9 -8
  60. package/dist/cjs/Drawer.cjs.map +1 -1
  61. package/dist/cjs/EmptyState.cjs +2 -2
  62. package/dist/cjs/EmptyState.cjs.map +1 -1
  63. package/dist/cjs/ErrorMessageList.cjs +3 -3
  64. package/dist/cjs/ErrorMessageList.cjs.map +1 -1
  65. package/dist/cjs/Field.cjs +3 -3
  66. package/dist/cjs/Field.cjs.map +1 -1
  67. package/dist/cjs/FieldError.cjs.map +1 -1
  68. package/dist/cjs/FieldHint.cjs +1 -1
  69. package/dist/cjs/FieldHint.cjs.map +1 -1
  70. package/dist/cjs/FieldLabel.cjs.map +1 -1
  71. package/dist/cjs/Fieldset.cjs +2 -2
  72. package/dist/cjs/Fieldset.cjs.map +1 -1
  73. package/dist/cjs/FileUploader/FileUploadIllustration.cjs +2 -2
  74. package/dist/cjs/FileUploader/FileUploadIllustration.cjs.map +1 -1
  75. package/dist/cjs/FileUploader/FileUploadPreview.cjs +5 -5
  76. package/dist/cjs/FileUploader/FileUploadPreview.cjs.map +1 -1
  77. package/dist/cjs/FileUploader/FileUploader.cjs +6 -6
  78. package/dist/cjs/FileUploader/FileUploader.cjs.map +1 -1
  79. package/dist/cjs/Form.cjs +2 -2
  80. package/dist/cjs/Form.cjs.map +1 -1
  81. package/dist/cjs/IconWithTooltip.cjs +1 -1
  82. package/dist/cjs/IconWithTooltip.cjs.map +1 -1
  83. package/dist/cjs/Link.cjs +1 -1
  84. package/dist/cjs/Link.cjs.map +1 -1
  85. package/dist/cjs/NativeSelect.cjs +1 -1
  86. package/dist/cjs/NativeSelect.cjs.map +1 -1
  87. package/dist/cjs/OdysseyCacheProvider.cjs +5 -5
  88. package/dist/cjs/OdysseyCacheProvider.cjs.map +1 -1
  89. package/dist/cjs/OdysseyProvider.cjs.map +1 -1
  90. package/dist/cjs/OdysseyThemeProvider.cjs +4 -4
  91. package/dist/cjs/OdysseyThemeProvider.cjs.map +1 -1
  92. package/dist/cjs/OdysseyTranslationProvider.cjs +1 -1
  93. package/dist/cjs/OdysseyTranslationProvider.cjs.map +1 -1
  94. package/dist/cjs/Pagination/Pagination.cjs +24 -24
  95. package/dist/cjs/Pagination/Pagination.cjs.map +1 -1
  96. package/dist/cjs/Pagination/usePagination.cjs +1 -1
  97. package/dist/cjs/Pagination/usePagination.cjs.map +1 -1
  98. package/dist/cjs/PasswordField.cjs +3 -3
  99. package/dist/cjs/PasswordField.cjs.map +1 -1
  100. package/dist/cjs/Radio.cjs +7 -7
  101. package/dist/cjs/Radio.cjs.map +1 -1
  102. package/dist/cjs/RadioGroup.cjs.map +1 -1
  103. package/dist/cjs/ScreenReaderText.cjs +2 -2
  104. package/dist/cjs/ScreenReaderText.cjs.map +1 -1
  105. package/dist/cjs/SearchField.cjs +13 -9
  106. package/dist/cjs/SearchField.cjs.map +1 -1
  107. package/dist/cjs/Select.cjs +10 -10
  108. package/dist/cjs/Select.cjs.map +1 -1
  109. package/dist/cjs/Stack.cjs.map +1 -1
  110. package/dist/cjs/Status.cjs.map +1 -1
  111. package/dist/cjs/Surface.cjs +1 -1
  112. package/dist/cjs/Surface.cjs.map +1 -1
  113. package/dist/cjs/Switch.cjs +9 -9
  114. package/dist/cjs/Switch.cjs.map +1 -1
  115. package/dist/cjs/Tabs.cjs +4 -4
  116. package/dist/cjs/Tabs.cjs.map +1 -1
  117. package/dist/cjs/Tag.cjs +2 -2
  118. package/dist/cjs/Tag.cjs.map +1 -1
  119. package/dist/cjs/TagList.cjs +1 -1
  120. package/dist/cjs/TagList.cjs.map +1 -1
  121. package/dist/cjs/TextField.cjs +2 -2
  122. package/dist/cjs/TextField.cjs.map +1 -1
  123. package/dist/cjs/Toast.cjs +3 -3
  124. package/dist/cjs/Toast.cjs.map +1 -1
  125. package/dist/cjs/ToastStack.cjs.map +1 -1
  126. package/dist/cjs/Tooltip.cjs +1 -1
  127. package/dist/cjs/Tooltip.cjs.map +1 -1
  128. package/dist/cjs/Typography.cjs.map +1 -1
  129. package/dist/cjs/hexToRgb.cjs.map +1 -1
  130. package/dist/cjs/i18n.cjs +1 -1
  131. package/dist/cjs/i18n.cjs.map +1 -1
  132. package/dist/cjs/icons.generated/Add.cjs +4 -4
  133. package/dist/cjs/icons.generated/Add.cjs.map +1 -1
  134. package/dist/cjs/icons.generated/AddCircle.cjs +4 -4
  135. package/dist/cjs/icons.generated/AddCircle.cjs.map +1 -1
  136. package/dist/cjs/icons.generated/Apps.cjs +4 -4
  137. package/dist/cjs/icons.generated/Apps.cjs.map +1 -1
  138. package/dist/cjs/icons.generated/ArrowBottom.cjs +4 -4
  139. package/dist/cjs/icons.generated/ArrowBottom.cjs.map +1 -1
  140. package/dist/cjs/icons.generated/ArrowDown.cjs +4 -4
  141. package/dist/cjs/icons.generated/ArrowDown.cjs.map +1 -1
  142. package/dist/cjs/icons.generated/ArrowLeft.cjs +4 -4
  143. package/dist/cjs/icons.generated/ArrowLeft.cjs.map +1 -1
  144. package/dist/cjs/icons.generated/ArrowLowerLeft.cjs +4 -4
  145. package/dist/cjs/icons.generated/ArrowLowerLeft.cjs.map +1 -1
  146. package/dist/cjs/icons.generated/ArrowLowerRight.cjs +4 -4
  147. package/dist/cjs/icons.generated/ArrowLowerRight.cjs.map +1 -1
  148. package/dist/cjs/icons.generated/ArrowRight.cjs +4 -4
  149. package/dist/cjs/icons.generated/ArrowRight.cjs.map +1 -1
  150. package/dist/cjs/icons.generated/ArrowTop.cjs +4 -4
  151. package/dist/cjs/icons.generated/ArrowTop.cjs.map +1 -1
  152. package/dist/cjs/icons.generated/ArrowUnsorted.cjs +4 -4
  153. package/dist/cjs/icons.generated/ArrowUnsorted.cjs.map +1 -1
  154. package/dist/cjs/icons.generated/ArrowUp.cjs +4 -4
  155. package/dist/cjs/icons.generated/ArrowUp.cjs.map +1 -1
  156. package/dist/cjs/icons.generated/ArrowUpperLeft.cjs +4 -4
  157. package/dist/cjs/icons.generated/ArrowUpperLeft.cjs.map +1 -1
  158. package/dist/cjs/icons.generated/ArrowUpperRight.cjs +4 -4
  159. package/dist/cjs/icons.generated/ArrowUpperRight.cjs.map +1 -1
  160. package/dist/cjs/icons.generated/Bug.cjs +4 -4
  161. package/dist/cjs/icons.generated/Bug.cjs.map +1 -1
  162. package/dist/cjs/icons.generated/Calendar.cjs +4 -4
  163. package/dist/cjs/icons.generated/Calendar.cjs.map +1 -1
  164. package/dist/cjs/icons.generated/Call.cjs +4 -4
  165. package/dist/cjs/icons.generated/Call.cjs.map +1 -1
  166. package/dist/cjs/icons.generated/Chat.cjs +4 -4
  167. package/dist/cjs/icons.generated/Chat.cjs.map +1 -1
  168. package/dist/cjs/icons.generated/Check.cjs +4 -4
  169. package/dist/cjs/icons.generated/Check.cjs.map +1 -1
  170. package/dist/cjs/icons.generated/CheckCircleFilled.cjs +4 -4
  171. package/dist/cjs/icons.generated/CheckCircleFilled.cjs.map +1 -1
  172. package/dist/cjs/icons.generated/ChevronDown.cjs +4 -4
  173. package/dist/cjs/icons.generated/ChevronDown.cjs.map +1 -1
  174. package/dist/cjs/icons.generated/ChevronLeft.cjs +4 -4
  175. package/dist/cjs/icons.generated/ChevronLeft.cjs.map +1 -1
  176. package/dist/cjs/icons.generated/ChevronRight.cjs +4 -4
  177. package/dist/cjs/icons.generated/ChevronRight.cjs.map +1 -1
  178. package/dist/cjs/icons.generated/ChevronUp.cjs +4 -4
  179. package/dist/cjs/icons.generated/ChevronUp.cjs.map +1 -1
  180. package/dist/cjs/icons.generated/Clock.cjs +4 -4
  181. package/dist/cjs/icons.generated/Clock.cjs.map +1 -1
  182. package/dist/cjs/icons.generated/Close.cjs +4 -4
  183. package/dist/cjs/icons.generated/Close.cjs.map +1 -1
  184. package/dist/cjs/icons.generated/CloseCircleFilled.cjs +4 -4
  185. package/dist/cjs/icons.generated/CloseCircleFilled.cjs.map +1 -1
  186. package/dist/cjs/icons.generated/CollapseLeft.cjs +4 -4
  187. package/dist/cjs/icons.generated/CollapseLeft.cjs.map +1 -1
  188. package/dist/cjs/icons.generated/CollapseRight.cjs +4 -4
  189. package/dist/cjs/icons.generated/CollapseRight.cjs.map +1 -1
  190. package/dist/cjs/icons.generated/Copy.cjs +4 -4
  191. package/dist/cjs/icons.generated/Copy.cjs.map +1 -1
  192. package/dist/cjs/icons.generated/Custom.cjs +2 -2
  193. package/dist/cjs/icons.generated/Custom.cjs.map +1 -1
  194. package/dist/cjs/icons.generated/DangerDiamond.cjs +4 -4
  195. package/dist/cjs/icons.generated/DangerDiamond.cjs.map +1 -1
  196. package/dist/cjs/icons.generated/DangerDiamondFilled.cjs +4 -4
  197. package/dist/cjs/icons.generated/DangerDiamondFilled.cjs.map +1 -1
  198. package/dist/cjs/icons.generated/Delete.cjs +4 -4
  199. package/dist/cjs/icons.generated/Delete.cjs.map +1 -1
  200. package/dist/cjs/icons.generated/Deny.cjs +4 -4
  201. package/dist/cjs/icons.generated/Deny.cjs.map +1 -1
  202. package/dist/cjs/icons.generated/Devices.cjs +4 -4
  203. package/dist/cjs/icons.generated/Devices.cjs.map +1 -1
  204. package/dist/cjs/icons.generated/Directory.cjs +4 -4
  205. package/dist/cjs/icons.generated/Directory.cjs.map +1 -1
  206. package/dist/cjs/icons.generated/Documentation.cjs +4 -4
  207. package/dist/cjs/icons.generated/Documentation.cjs.map +1 -1
  208. package/dist/cjs/icons.generated/Download.cjs +4 -4
  209. package/dist/cjs/icons.generated/Download.cjs.map +1 -1
  210. package/dist/cjs/icons.generated/DragIndicator.cjs +4 -4
  211. package/dist/cjs/icons.generated/DragIndicator.cjs.map +1 -1
  212. package/dist/cjs/icons.generated/Duo.cjs +2 -2
  213. package/dist/cjs/icons.generated/Duo.cjs.map +1 -1
  214. package/dist/cjs/icons.generated/Edit.cjs +4 -4
  215. package/dist/cjs/icons.generated/Edit.cjs.map +1 -1
  216. package/dist/cjs/icons.generated/Email.cjs +4 -4
  217. package/dist/cjs/icons.generated/Email.cjs.map +1 -1
  218. package/dist/cjs/icons.generated/ExpandLeft.cjs +4 -4
  219. package/dist/cjs/icons.generated/ExpandLeft.cjs.map +1 -1
  220. package/dist/cjs/icons.generated/ExpandRight.cjs +4 -4
  221. package/dist/cjs/icons.generated/ExpandRight.cjs.map +1 -1
  222. package/dist/cjs/icons.generated/ExternalLink.cjs +4 -4
  223. package/dist/cjs/icons.generated/ExternalLink.cjs.map +1 -1
  224. package/dist/cjs/icons.generated/Fido2.cjs +10 -10
  225. package/dist/cjs/icons.generated/Fido2.cjs.map +1 -1
  226. package/dist/cjs/icons.generated/Filter.cjs +4 -4
  227. package/dist/cjs/icons.generated/Filter.cjs.map +1 -1
  228. package/dist/cjs/icons.generated/Folder.cjs +4 -4
  229. package/dist/cjs/icons.generated/Folder.cjs.map +1 -1
  230. package/dist/cjs/icons.generated/Globe.cjs +4 -4
  231. package/dist/cjs/icons.generated/Globe.cjs.map +1 -1
  232. package/dist/cjs/icons.generated/GoogleAuth.cjs +12 -12
  233. package/dist/cjs/icons.generated/GoogleAuth.cjs.map +1 -1
  234. package/dist/cjs/icons.generated/Grid.cjs +20 -20
  235. package/dist/cjs/icons.generated/Grid.cjs.map +1 -1
  236. package/dist/cjs/icons.generated/Group.cjs +4 -4
  237. package/dist/cjs/icons.generated/Group.cjs.map +1 -1
  238. package/dist/cjs/icons.generated/Hide.cjs +4 -4
  239. package/dist/cjs/icons.generated/Hide.cjs.map +1 -1
  240. package/dist/cjs/icons.generated/Home.cjs +4 -4
  241. package/dist/cjs/icons.generated/Home.cjs.map +1 -1
  242. package/dist/cjs/icons.generated/Idp.cjs +4 -4
  243. package/dist/cjs/icons.generated/Idp.cjs.map +1 -1
  244. package/dist/cjs/icons.generated/InformationCircle.cjs +4 -4
  245. package/dist/cjs/icons.generated/InformationCircle.cjs.map +1 -1
  246. package/dist/cjs/icons.generated/InformationCircleFilled.cjs +4 -4
  247. package/dist/cjs/icons.generated/InformationCircleFilled.cjs.map +1 -1
  248. package/dist/cjs/icons.generated/Link.cjs +4 -4
  249. package/dist/cjs/icons.generated/Link.cjs.map +1 -1
  250. package/dist/cjs/icons.generated/List.cjs +4 -4
  251. package/dist/cjs/icons.generated/List.cjs.map +1 -1
  252. package/dist/cjs/icons.generated/Lock.cjs +4 -4
  253. package/dist/cjs/icons.generated/Lock.cjs.map +1 -1
  254. package/dist/cjs/icons.generated/More.cjs +4 -4
  255. package/dist/cjs/icons.generated/More.cjs.map +1 -1
  256. package/dist/cjs/icons.generated/Notification.cjs +4 -4
  257. package/dist/cjs/icons.generated/Notification.cjs.map +1 -1
  258. package/dist/cjs/icons.generated/OktaVerify.cjs +4 -4
  259. package/dist/cjs/icons.generated/OktaVerify.cjs.map +1 -1
  260. package/dist/cjs/icons.generated/OnPremMfa.cjs +2 -2
  261. package/dist/cjs/icons.generated/OnPremMfa.cjs.map +1 -1
  262. package/dist/cjs/icons.generated/OneTimePassword.cjs +2 -2
  263. package/dist/cjs/icons.generated/OneTimePassword.cjs.map +1 -1
  264. package/dist/cjs/icons.generated/Password.cjs +2 -2
  265. package/dist/cjs/icons.generated/Password.cjs.map +1 -1
  266. package/dist/cjs/icons.generated/Pause.cjs +4 -4
  267. package/dist/cjs/icons.generated/Pause.cjs.map +1 -1
  268. package/dist/cjs/icons.generated/QuestionCircle.cjs +4 -4
  269. package/dist/cjs/icons.generated/QuestionCircle.cjs.map +1 -1
  270. package/dist/cjs/icons.generated/QuestionCircleFilled.cjs +4 -4
  271. package/dist/cjs/icons.generated/QuestionCircleFilled.cjs.map +1 -1
  272. package/dist/cjs/icons.generated/Refresh.cjs +4 -4
  273. package/dist/cjs/icons.generated/Refresh.cjs.map +1 -1
  274. package/dist/cjs/icons.generated/Reset.cjs +4 -4
  275. package/dist/cjs/icons.generated/Reset.cjs.map +1 -1
  276. package/dist/cjs/icons.generated/Resume.cjs +4 -4
  277. package/dist/cjs/icons.generated/Resume.cjs.map +1 -1
  278. package/dist/cjs/icons.generated/Search.cjs +4 -4
  279. package/dist/cjs/icons.generated/Search.cjs.map +1 -1
  280. package/dist/cjs/icons.generated/SecurityQuestion.cjs +4 -4
  281. package/dist/cjs/icons.generated/SecurityQuestion.cjs.map +1 -1
  282. package/dist/cjs/icons.generated/Send.cjs +37 -0
  283. package/dist/cjs/icons.generated/Send.cjs.map +1 -0
  284. package/dist/cjs/icons.generated/Server.cjs +4 -4
  285. package/dist/cjs/icons.generated/Server.cjs.map +1 -1
  286. package/dist/cjs/icons.generated/Settings.cjs +4 -4
  287. package/dist/cjs/icons.generated/Settings.cjs.map +1 -1
  288. package/dist/cjs/icons.generated/Show.cjs +4 -4
  289. package/dist/cjs/icons.generated/Show.cjs.map +1 -1
  290. package/dist/cjs/icons.generated/SmartCard.cjs +2 -2
  291. package/dist/cjs/icons.generated/SmartCard.cjs.map +1 -1
  292. package/dist/cjs/icons.generated/Sms.cjs +2 -2
  293. package/dist/cjs/icons.generated/Sms.cjs.map +1 -1
  294. package/dist/cjs/icons.generated/Subtract.cjs +4 -4
  295. package/dist/cjs/icons.generated/Subtract.cjs.map +1 -1
  296. package/dist/cjs/icons.generated/SymantecVip.cjs +2 -2
  297. package/dist/cjs/icons.generated/SymantecVip.cjs.map +1 -1
  298. package/dist/cjs/icons.generated/Sync.cjs +4 -4
  299. package/dist/cjs/icons.generated/Sync.cjs.map +1 -1
  300. package/dist/cjs/icons.generated/ThumbsDown.cjs +4 -4
  301. package/dist/cjs/icons.generated/ThumbsDown.cjs.map +1 -1
  302. package/dist/cjs/icons.generated/ThumbsUp.cjs +4 -4
  303. package/dist/cjs/icons.generated/ThumbsUp.cjs.map +1 -1
  304. package/dist/cjs/icons.generated/Unlock.cjs +4 -4
  305. package/dist/cjs/icons.generated/Unlock.cjs.map +1 -1
  306. package/dist/cjs/icons.generated/Upload.cjs +4 -4
  307. package/dist/cjs/icons.generated/Upload.cjs.map +1 -1
  308. package/dist/cjs/icons.generated/User.cjs +4 -4
  309. package/dist/cjs/icons.generated/User.cjs.map +1 -1
  310. package/dist/cjs/icons.generated/Video.cjs +4 -4
  311. package/dist/cjs/icons.generated/Video.cjs.map +1 -1
  312. package/dist/cjs/icons.generated/VoiceCall.cjs +4 -4
  313. package/dist/cjs/icons.generated/VoiceCall.cjs.map +1 -1
  314. package/dist/cjs/icons.generated/Warning.cjs +4 -4
  315. package/dist/cjs/icons.generated/Warning.cjs.map +1 -1
  316. package/dist/cjs/icons.generated/WarningFilled.cjs +4 -4
  317. package/dist/cjs/icons.generated/WarningFilled.cjs.map +1 -1
  318. package/dist/cjs/icons.generated/Yubikey.cjs +2 -2
  319. package/dist/cjs/icons.generated/Yubikey.cjs.map +1 -1
  320. package/dist/cjs/icons.generated/index.cjs +19 -8
  321. package/dist/cjs/icons.generated/index.cjs.map +1 -1
  322. package/dist/cjs/inputUtils.cjs.map +1 -1
  323. package/dist/cjs/labs/AppTile.cjs +21 -21
  324. package/dist/cjs/labs/AppTile.cjs.map +1 -1
  325. package/dist/cjs/labs/DataFilters.cjs +53 -53
  326. package/dist/cjs/labs/DataFilters.cjs.map +1 -1
  327. package/dist/cjs/labs/DataTable.cjs +19 -19
  328. package/dist/cjs/labs/DataTable.cjs.map +1 -1
  329. package/dist/cjs/labs/DataTablePagination.cjs +9 -9
  330. package/dist/cjs/labs/DataTablePagination.cjs.map +1 -1
  331. package/dist/cjs/labs/DataView/BulkActionsMenu.cjs +2 -2
  332. package/dist/cjs/labs/DataView/BulkActionsMenu.cjs.map +1 -1
  333. package/dist/cjs/labs/DataView/CardLayoutContent.cjs +7 -7
  334. package/dist/cjs/labs/DataView/CardLayoutContent.cjs.map +1 -1
  335. package/dist/cjs/labs/DataView/DataCard.cjs +7 -7
  336. package/dist/cjs/labs/DataView/DataCard.cjs.map +1 -1
  337. package/dist/cjs/labs/DataView/DataTable.cjs.map +1 -1
  338. package/dist/cjs/labs/DataView/DataView.cjs +16 -16
  339. package/dist/cjs/labs/DataView/DataView.cjs.map +1 -1
  340. package/dist/cjs/labs/DataView/DetailPanel.cjs.map +1 -1
  341. package/dist/cjs/labs/DataView/LayoutSwitcher.cjs +2 -2
  342. package/dist/cjs/labs/DataView/LayoutSwitcher.cjs.map +1 -1
  343. package/dist/cjs/labs/DataView/RowActions.cjs +10 -10
  344. package/dist/cjs/labs/DataView/RowActions.cjs.map +1 -1
  345. package/dist/cjs/labs/DataView/TableLayoutContent.cjs +17 -17
  346. package/dist/cjs/labs/DataView/TableLayoutContent.cjs.map +1 -1
  347. package/dist/cjs/labs/DataView/TableSettings.cjs +9 -9
  348. package/dist/cjs/labs/DataView/TableSettings.cjs.map +1 -1
  349. package/dist/cjs/labs/DataView/componentTypes.cjs.map +1 -1
  350. package/dist/cjs/labs/DataView/fetchData.cjs.map +1 -1
  351. package/dist/cjs/labs/DataView/index.cjs.map +1 -1
  352. package/dist/cjs/labs/DataView/tableConstants.cjs.map +1 -1
  353. package/dist/cjs/labs/DataView/testSupportData.cjs.map +1 -1
  354. package/dist/cjs/labs/DataView/useFilterConversion.cjs.map +1 -1
  355. package/dist/cjs/labs/DatePickers/DateTimeField.cjs +2 -2
  356. package/dist/cjs/labs/DatePickers/DateTimeField.cjs.map +1 -1
  357. package/dist/cjs/labs/DatePickers/DateTimePicker.cjs +14 -10
  358. package/dist/cjs/labs/DatePickers/DateTimePicker.cjs.map +1 -1
  359. package/dist/cjs/labs/DatePickers/dateTimePickerTheme.cjs +2 -2
  360. package/dist/cjs/labs/DatePickers/dateTimePickerTheme.cjs.map +1 -1
  361. package/dist/cjs/labs/GroupPicker.cjs +5 -5
  362. package/dist/cjs/labs/GroupPicker.cjs.map +1 -1
  363. package/dist/cjs/labs/OdysseyPickers/ComposablePicker.cjs +3 -3
  364. package/dist/cjs/labs/OdysseyPickers/ComposablePicker.cjs.map +1 -1
  365. package/dist/cjs/labs/OdysseyPickers/Picker.cjs +4 -4
  366. package/dist/cjs/labs/OdysseyPickers/Picker.cjs.map +1 -1
  367. package/dist/cjs/labs/OdysseyPickers/PickerVirtualizationListBox.cjs +7 -7
  368. package/dist/cjs/labs/OdysseyPickers/PickerVirtualizationListBox.cjs.map +1 -1
  369. package/dist/cjs/labs/OdysseyPickers/PickerWithOptionAdornment.cjs +13 -13
  370. package/dist/cjs/labs/OdysseyPickers/PickerWithOptionAdornment.cjs.map +1 -1
  371. package/dist/cjs/labs/OdysseyPickers/SearchDropdown.cjs +12 -12
  372. package/dist/cjs/labs/OdysseyPickers/SearchDropdown.cjs.map +1 -1
  373. package/dist/cjs/labs/OdysseyPickers/index.cjs.map +1 -1
  374. package/dist/cjs/labs/PageTemplate/DocumentationLink.cjs.map +1 -1
  375. package/dist/cjs/labs/PageTemplate/Layout.cjs +1 -1
  376. package/dist/cjs/labs/PageTemplate/Layout.cjs.map +1 -1
  377. package/dist/cjs/labs/PageTemplate/PageTemplate.cjs +3 -3
  378. package/dist/cjs/labs/PageTemplate/PageTemplate.cjs.map +1 -1
  379. package/dist/cjs/labs/PaginatedTable.cjs +1 -1
  380. package/dist/cjs/labs/PaginatedTable.cjs.map +1 -1
  381. package/dist/cjs/labs/StaticTable.cjs.map +1 -1
  382. package/dist/cjs/labs/UserProfile.cjs.map +1 -1
  383. package/dist/cjs/labs/UserProfileMenuButton.cjs +7 -7
  384. package/dist/cjs/labs/UserProfileMenuButton.cjs.map +1 -1
  385. package/dist/cjs/labs/index.cjs +65 -65
  386. package/dist/cjs/labs/index.cjs.map +1 -1
  387. package/dist/cjs/properties/ts/odyssey-react-mui.cjs +5 -0
  388. package/dist/cjs/properties/ts/odyssey-react-mui.cjs.map +1 -1
  389. package/dist/cjs/properties/ts/odyssey-react-mui_ok_PL.cjs +5 -0
  390. package/dist/cjs/properties/ts/odyssey-react-mui_ok_PL.cjs.map +1 -1
  391. package/dist/cjs/properties/ts/odyssey-react-mui_ok_SK.cjs +133 -129
  392. package/dist/cjs/properties/ts/odyssey-react-mui_ok_SK.cjs.map +1 -1
  393. package/dist/cjs/test-selectors/getByQuerySelector.cjs.map +1 -1
  394. package/dist/cjs/test-selectors/getComputedAccessibleText.cjs.map +1 -1
  395. package/dist/cjs/test-selectors/linkedHtmlSelectors.cjs +1 -1
  396. package/dist/cjs/test-selectors/linkedHtmlSelectors.cjs.map +1 -1
  397. package/dist/cjs/test-selectors/queryOdysseySelector.cjs +1 -1
  398. package/dist/cjs/test-selectors/queryOdysseySelector.cjs.map +1 -1
  399. package/dist/cjs/test-selectors/querySelector.cjs +1 -1
  400. package/dist/cjs/test-selectors/querySelector.cjs.map +1 -1
  401. package/dist/cjs/theme/components.cjs +2 -2
  402. package/dist/cjs/theme/components.cjs.map +1 -1
  403. package/dist/cjs/theme/components.types.cjs.map +1 -1
  404. package/dist/cjs/theme/createOdysseyMuiTheme.cjs +2 -2
  405. package/dist/cjs/theme/createOdysseyMuiTheme.cjs.map +1 -1
  406. package/dist/cjs/theme/mixins.types.cjs.map +1 -1
  407. package/dist/cjs/theme/typography.types.cjs.map +1 -1
  408. package/dist/cjs/ui-shell/AppSwitcher/AppSwitcher.cjs +2 -2
  409. package/dist/cjs/ui-shell/AppSwitcher/AppSwitcher.cjs.map +1 -1
  410. package/dist/cjs/ui-shell/AppSwitcher/AppSwitcherApp.cjs +9 -9
  411. package/dist/cjs/ui-shell/AppSwitcher/AppSwitcherApp.cjs.map +1 -1
  412. package/dist/cjs/ui-shell/AppSwitcher/OktaAura.cjs +5 -5
  413. package/dist/cjs/ui-shell/AppSwitcher/OktaAura.cjs.map +1 -1
  414. package/dist/cjs/ui-shell/InnerAppContainer.cjs.map +1 -1
  415. package/dist/cjs/ui-shell/NarrowUiShellContent.cjs +5 -5
  416. package/dist/cjs/ui-shell/NarrowUiShellContent.cjs.map +1 -1
  417. package/dist/cjs/ui-shell/SideNav/CollapseIcon.cjs +2 -2
  418. package/dist/cjs/ui-shell/SideNav/CollapseIcon.cjs.map +1 -1
  419. package/dist/cjs/ui-shell/SideNav/HandleIcon.cjs +4 -4
  420. package/dist/cjs/ui-shell/SideNav/HandleIcon.cjs.map +1 -1
  421. package/dist/cjs/ui-shell/SideNav/NavAccordion.cjs +5 -5
  422. package/dist/cjs/ui-shell/SideNav/NavAccordion.cjs.map +1 -1
  423. package/dist/cjs/ui-shell/SideNav/OktaLogo.cjs +2 -2
  424. package/dist/cjs/ui-shell/SideNav/OktaLogo.cjs.map +1 -1
  425. package/dist/cjs/ui-shell/SideNav/SideNav.cjs +22 -22
  426. package/dist/cjs/ui-shell/SideNav/SideNav.cjs.map +1 -1
  427. package/dist/cjs/ui-shell/SideNav/SideNavFooterContent.cjs +4 -4
  428. package/dist/cjs/ui-shell/SideNav/SideNavFooterContent.cjs.map +1 -1
  429. package/dist/cjs/ui-shell/SideNav/SideNavHeader.cjs +4 -4
  430. package/dist/cjs/ui-shell/SideNav/SideNavHeader.cjs.map +1 -1
  431. package/dist/cjs/ui-shell/SideNav/SideNavItemContent.cjs +22 -22
  432. package/dist/cjs/ui-shell/SideNav/SideNavItemContent.cjs.map +1 -1
  433. package/dist/cjs/ui-shell/SideNav/SideNavItemContentContext.cjs.map +1 -1
  434. package/dist/cjs/ui-shell/SideNav/SideNavItemLinkContent.cjs +5 -5
  435. package/dist/cjs/ui-shell/SideNav/SideNavItemLinkContent.cjs.map +1 -1
  436. package/dist/cjs/ui-shell/SideNav/SideNavLogo.cjs +3 -3
  437. package/dist/cjs/ui-shell/SideNav/SideNavLogo.cjs.map +1 -1
  438. package/dist/cjs/ui-shell/SideNav/SideNavToggleButton.cjs +2 -2
  439. package/dist/cjs/ui-shell/SideNav/SideNavToggleButton.cjs.map +1 -1
  440. package/dist/cjs/ui-shell/SideNav/SortableList/SortableItem.cjs +5 -5
  441. package/dist/cjs/ui-shell/SideNav/SortableList/SortableItem.cjs.map +1 -1
  442. package/dist/cjs/ui-shell/SideNav/SortableList/SortableList.cjs +9 -9
  443. package/dist/cjs/ui-shell/SideNav/SortableList/SortableList.cjs.map +1 -1
  444. package/dist/cjs/ui-shell/SideNav/SortableList/SortableOverlay.cjs.map +1 -1
  445. package/dist/cjs/ui-shell/SideNav/index.cjs +1 -1
  446. package/dist/cjs/ui-shell/SideNav/index.cjs.map +1 -1
  447. package/dist/cjs/ui-shell/SideNav/types.cjs.map +1 -1
  448. package/dist/cjs/ui-shell/TopNav/HamburgerMenuIcon.cjs +4 -4
  449. package/dist/cjs/ui-shell/TopNav/HamburgerMenuIcon.cjs.map +1 -1
  450. package/dist/cjs/ui-shell/TopNav/TopNav.cjs.map +1 -1
  451. package/dist/cjs/ui-shell/TopNav/TopNavLinksList.cjs.map +1 -1
  452. package/dist/cjs/ui-shell/TopNav/TopNavListItem.cjs.map +1 -1
  453. package/dist/cjs/ui-shell/UiShell.cjs +2 -2
  454. package/dist/cjs/ui-shell/UiShell.cjs.map +1 -1
  455. package/dist/cjs/ui-shell/UiShellProvider.cjs.map +1 -1
  456. package/dist/cjs/ui-shell/WideUiShellContent.cjs +4 -4
  457. package/dist/cjs/ui-shell/WideUiShellContent.cjs.map +1 -1
  458. package/dist/cjs/ui-shell/renderUiShell.cjs +2 -2
  459. package/dist/cjs/ui-shell/renderUiShell.cjs.map +1 -1
  460. package/dist/cjs/ui-shell/useElementAtContainerEdge.cjs.map +1 -1
  461. package/dist/cjs/ui-shell/useUiShellBreakpoints.cjs.map +1 -1
  462. package/dist/cjs/useAutocomplete.cjs +5 -5
  463. package/dist/cjs/useAutocomplete.cjs.map +1 -1
  464. package/dist/cjs/useContrastMode.cjs +1 -1
  465. package/dist/cjs/useContrastMode.cjs.map +1 -1
  466. package/dist/cjs/useSessionStorageState.cjs.map +1 -1
  467. package/dist/cjs/web-component/odysseyWebComponentVersion.generated.cjs +1 -1
  468. package/dist/cjs/web-component/odysseyWebComponentVersion.generated.cjs.map +1 -1
  469. package/dist/cjs/web-component/renderReactInWebComponent.cjs +1 -1
  470. package/dist/cjs/web-component/renderReactInWebComponent.cjs.map +1 -1
  471. package/dist/esm/@types/i18next.d.js.map +1 -1
  472. package/dist/esm/@types/properties.d.js.map +1 -1
  473. package/dist/esm/Accordion.js +1 -2
  474. package/dist/esm/Accordion.js.map +1 -1
  475. package/dist/esm/Autocomplete.js +0 -1
  476. package/dist/esm/Autocomplete.js.map +1 -1
  477. package/dist/esm/Badge.js +1 -1
  478. package/dist/esm/Badge.js.map +1 -1
  479. package/dist/esm/Banner.js +0 -1
  480. package/dist/esm/Banner.js.map +1 -1
  481. package/dist/esm/Box.js +1 -1
  482. package/dist/esm/Box.js.map +1 -1
  483. package/dist/esm/Breadcrumbs.js +10 -9
  484. package/dist/esm/Breadcrumbs.js.map +1 -1
  485. package/dist/esm/Buttons/BaseButton.js +1 -1
  486. package/dist/esm/Buttons/BaseButton.js.map +1 -1
  487. package/dist/esm/Buttons/BaseMenuButton.js +10 -10
  488. package/dist/esm/Buttons/BaseMenuButton.js.map +1 -1
  489. package/dist/esm/Buttons/Button.js.map +1 -1
  490. package/dist/esm/Buttons/MenuButton.js.map +1 -1
  491. package/dist/esm/Buttons/MenuContext.js.map +1 -1
  492. package/dist/esm/Buttons/MenuItem.js +1 -1
  493. package/dist/esm/Buttons/MenuItem.js.map +1 -1
  494. package/dist/esm/Buttons/index.js +1 -1
  495. package/dist/esm/Buttons/index.js.map +1 -1
  496. package/dist/esm/Callout.js.map +1 -1
  497. package/dist/esm/Card.js +4 -4
  498. package/dist/esm/Card.js.map +1 -1
  499. package/dist/esm/Checkbox.js +11 -11
  500. package/dist/esm/Checkbox.js.map +1 -1
  501. package/dist/esm/CheckboxGroup.js +0 -1
  502. package/dist/esm/CheckboxGroup.js.map +1 -1
  503. package/dist/esm/CircularProgress.js +2 -3
  504. package/dist/esm/CircularProgress.js.map +1 -1
  505. package/dist/esm/DataTable/DataTable.js +45 -45
  506. package/dist/esm/DataTable/DataTable.js.map +1 -1
  507. package/dist/esm/DataTable/DataTableRowActions.js +4 -5
  508. package/dist/esm/DataTable/DataTableRowActions.js.map +1 -1
  509. package/dist/esm/DataTable/DataTableSettings.js +4 -5
  510. package/dist/esm/DataTable/DataTableSettings.js.map +1 -1
  511. package/dist/esm/DataTable/index.js +1 -1
  512. package/dist/esm/DataTable/index.js.map +1 -1
  513. package/dist/esm/DataTable/reorderDataRowsLocally.js.map +1 -1
  514. package/dist/esm/DataTable/useRowReordering.js +7 -3
  515. package/dist/esm/DataTable/useRowReordering.js.map +1 -1
  516. package/dist/esm/DataTable/useScrollIndication.js.map +1 -1
  517. package/dist/esm/DatePickers/DateField.js +2 -3
  518. package/dist/esm/DatePickers/DateField.js.map +1 -1
  519. package/dist/esm/DatePickers/DateFieldActionBar.js +1 -1
  520. package/dist/esm/DatePickers/DateFieldActionBar.js.map +1 -1
  521. package/dist/esm/DatePickers/DateFieldLocalizationProvider.js +2 -2
  522. package/dist/esm/DatePickers/DateFieldLocalizationProvider.js.map +1 -1
  523. package/dist/esm/DatePickers/DatePicker.js +15 -11
  524. package/dist/esm/DatePickers/DatePicker.js.map +1 -1
  525. package/dist/esm/DatePickers/datePickerTheme.js +1 -1
  526. package/dist/esm/DatePickers/datePickerTheme.js.map +1 -1
  527. package/dist/esm/DatePickers/useOdysseyDateFields.js +1 -1
  528. package/dist/esm/DatePickers/useOdysseyDateFields.js.map +1 -1
  529. package/dist/esm/Dialog.js +5 -5
  530. package/dist/esm/Dialog.js.map +1 -1
  531. package/dist/esm/Drawer.js +9 -8
  532. package/dist/esm/Drawer.js.map +1 -1
  533. package/dist/esm/EmptyState.js +2 -2
  534. package/dist/esm/EmptyState.js.map +1 -1
  535. package/dist/esm/ErrorMessageList.js +3 -3
  536. package/dist/esm/ErrorMessageList.js.map +1 -1
  537. package/dist/esm/Field.js +3 -4
  538. package/dist/esm/Field.js.map +1 -1
  539. package/dist/esm/FieldError.js +0 -1
  540. package/dist/esm/FieldError.js.map +1 -1
  541. package/dist/esm/FieldHint.js +1 -1
  542. package/dist/esm/FieldHint.js.map +1 -1
  543. package/dist/esm/FieldLabel.js.map +1 -1
  544. package/dist/esm/Fieldset.js +2 -2
  545. package/dist/esm/Fieldset.js.map +1 -1
  546. package/dist/esm/FileUploader/FileUploadIllustration.js +2 -2
  547. package/dist/esm/FileUploader/FileUploadIllustration.js.map +1 -1
  548. package/dist/esm/FileUploader/FileUploadPreview.js +5 -5
  549. package/dist/esm/FileUploader/FileUploadPreview.js.map +1 -1
  550. package/dist/esm/FileUploader/FileUploader.js +6 -6
  551. package/dist/esm/FileUploader/FileUploader.js.map +1 -1
  552. package/dist/esm/Form.js +2 -2
  553. package/dist/esm/Form.js.map +1 -1
  554. package/dist/esm/IconWithTooltip.js +1 -1
  555. package/dist/esm/IconWithTooltip.js.map +1 -1
  556. package/dist/esm/Link.js +1 -2
  557. package/dist/esm/Link.js.map +1 -1
  558. package/dist/esm/NativeSelect.js +1 -2
  559. package/dist/esm/NativeSelect.js.map +1 -1
  560. package/dist/esm/OdysseyCacheProvider.js +1 -1
  561. package/dist/esm/OdysseyCacheProvider.js.map +1 -1
  562. package/dist/esm/OdysseyProvider.js +0 -1
  563. package/dist/esm/OdysseyProvider.js.map +1 -1
  564. package/dist/esm/OdysseyThemeProvider.js +4 -4
  565. package/dist/esm/OdysseyThemeProvider.js.map +1 -1
  566. package/dist/esm/OdysseyTranslationProvider.js +1 -1
  567. package/dist/esm/OdysseyTranslationProvider.js.map +1 -1
  568. package/dist/esm/Pagination/Pagination.js +24 -24
  569. package/dist/esm/Pagination/Pagination.js.map +1 -1
  570. package/dist/esm/Pagination/usePagination.js +1 -1
  571. package/dist/esm/Pagination/usePagination.js.map +1 -1
  572. package/dist/esm/PasswordField.js +3 -3
  573. package/dist/esm/PasswordField.js.map +1 -1
  574. package/dist/esm/Radio.js +7 -7
  575. package/dist/esm/Radio.js.map +1 -1
  576. package/dist/esm/RadioGroup.js +1 -1
  577. package/dist/esm/RadioGroup.js.map +1 -1
  578. package/dist/esm/ScreenReaderText.js +2 -3
  579. package/dist/esm/ScreenReaderText.js.map +1 -1
  580. package/dist/esm/SearchField.js +14 -9
  581. package/dist/esm/SearchField.js.map +1 -1
  582. package/dist/esm/Select.js +11 -11
  583. package/dist/esm/Select.js.map +1 -1
  584. package/dist/esm/Stack.js +0 -1
  585. package/dist/esm/Stack.js.map +1 -1
  586. package/dist/esm/Status.js +0 -1
  587. package/dist/esm/Status.js.map +1 -1
  588. package/dist/esm/Surface.js +1 -1
  589. package/dist/esm/Surface.js.map +1 -1
  590. package/dist/esm/Switch.js +9 -9
  591. package/dist/esm/Switch.js.map +1 -1
  592. package/dist/esm/Tabs.js +4 -4
  593. package/dist/esm/Tabs.js.map +1 -1
  594. package/dist/esm/Tag.js +3 -2
  595. package/dist/esm/Tag.js.map +1 -1
  596. package/dist/esm/TagList.js +1 -1
  597. package/dist/esm/TagList.js.map +1 -1
  598. package/dist/esm/TextField.js +3 -4
  599. package/dist/esm/TextField.js.map +1 -1
  600. package/dist/esm/Toast.js +4 -5
  601. package/dist/esm/Toast.js.map +1 -1
  602. package/dist/esm/ToastStack.js +0 -1
  603. package/dist/esm/ToastStack.js.map +1 -1
  604. package/dist/esm/Tooltip.js +1 -1
  605. package/dist/esm/Tooltip.js.map +1 -1
  606. package/dist/esm/Typography.js +2 -3
  607. package/dist/esm/Typography.js.map +1 -1
  608. package/dist/esm/hexToRgb.js.map +1 -1
  609. package/dist/esm/i18n.js +1 -1
  610. package/dist/esm/i18n.js.map +1 -1
  611. package/dist/esm/icons.generated/Add.js +4 -4
  612. package/dist/esm/icons.generated/Add.js.map +1 -1
  613. package/dist/esm/icons.generated/AddCircle.js +4 -4
  614. package/dist/esm/icons.generated/AddCircle.js.map +1 -1
  615. package/dist/esm/icons.generated/Apps.js +4 -4
  616. package/dist/esm/icons.generated/Apps.js.map +1 -1
  617. package/dist/esm/icons.generated/ArrowBottom.js +4 -4
  618. package/dist/esm/icons.generated/ArrowBottom.js.map +1 -1
  619. package/dist/esm/icons.generated/ArrowDown.js +4 -4
  620. package/dist/esm/icons.generated/ArrowDown.js.map +1 -1
  621. package/dist/esm/icons.generated/ArrowLeft.js +4 -4
  622. package/dist/esm/icons.generated/ArrowLeft.js.map +1 -1
  623. package/dist/esm/icons.generated/ArrowLowerLeft.js +4 -4
  624. package/dist/esm/icons.generated/ArrowLowerLeft.js.map +1 -1
  625. package/dist/esm/icons.generated/ArrowLowerRight.js +4 -4
  626. package/dist/esm/icons.generated/ArrowLowerRight.js.map +1 -1
  627. package/dist/esm/icons.generated/ArrowRight.js +4 -4
  628. package/dist/esm/icons.generated/ArrowRight.js.map +1 -1
  629. package/dist/esm/icons.generated/ArrowTop.js +4 -4
  630. package/dist/esm/icons.generated/ArrowTop.js.map +1 -1
  631. package/dist/esm/icons.generated/ArrowUnsorted.js +4 -4
  632. package/dist/esm/icons.generated/ArrowUnsorted.js.map +1 -1
  633. package/dist/esm/icons.generated/ArrowUp.js +4 -4
  634. package/dist/esm/icons.generated/ArrowUp.js.map +1 -1
  635. package/dist/esm/icons.generated/ArrowUpperLeft.js +4 -4
  636. package/dist/esm/icons.generated/ArrowUpperLeft.js.map +1 -1
  637. package/dist/esm/icons.generated/ArrowUpperRight.js +4 -4
  638. package/dist/esm/icons.generated/ArrowUpperRight.js.map +1 -1
  639. package/dist/esm/icons.generated/Bug.js +4 -4
  640. package/dist/esm/icons.generated/Bug.js.map +1 -1
  641. package/dist/esm/icons.generated/Calendar.js +4 -4
  642. package/dist/esm/icons.generated/Calendar.js.map +1 -1
  643. package/dist/esm/icons.generated/Call.js +4 -4
  644. package/dist/esm/icons.generated/Call.js.map +1 -1
  645. package/dist/esm/icons.generated/Chat.js +4 -4
  646. package/dist/esm/icons.generated/Chat.js.map +1 -1
  647. package/dist/esm/icons.generated/Check.js +4 -4
  648. package/dist/esm/icons.generated/Check.js.map +1 -1
  649. package/dist/esm/icons.generated/CheckCircleFilled.js +4 -4
  650. package/dist/esm/icons.generated/CheckCircleFilled.js.map +1 -1
  651. package/dist/esm/icons.generated/ChevronDown.js +4 -4
  652. package/dist/esm/icons.generated/ChevronDown.js.map +1 -1
  653. package/dist/esm/icons.generated/ChevronLeft.js +4 -4
  654. package/dist/esm/icons.generated/ChevronLeft.js.map +1 -1
  655. package/dist/esm/icons.generated/ChevronRight.js +4 -4
  656. package/dist/esm/icons.generated/ChevronRight.js.map +1 -1
  657. package/dist/esm/icons.generated/ChevronUp.js +4 -4
  658. package/dist/esm/icons.generated/ChevronUp.js.map +1 -1
  659. package/dist/esm/icons.generated/Clock.js +4 -4
  660. package/dist/esm/icons.generated/Clock.js.map +1 -1
  661. package/dist/esm/icons.generated/Close.js +4 -4
  662. package/dist/esm/icons.generated/Close.js.map +1 -1
  663. package/dist/esm/icons.generated/CloseCircleFilled.js +4 -4
  664. package/dist/esm/icons.generated/CloseCircleFilled.js.map +1 -1
  665. package/dist/esm/icons.generated/CollapseLeft.js +4 -4
  666. package/dist/esm/icons.generated/CollapseLeft.js.map +1 -1
  667. package/dist/esm/icons.generated/CollapseRight.js +4 -4
  668. package/dist/esm/icons.generated/CollapseRight.js.map +1 -1
  669. package/dist/esm/icons.generated/Copy.js +4 -4
  670. package/dist/esm/icons.generated/Copy.js.map +1 -1
  671. package/dist/esm/icons.generated/Custom.js +2 -2
  672. package/dist/esm/icons.generated/Custom.js.map +1 -1
  673. package/dist/esm/icons.generated/DangerDiamond.js +4 -4
  674. package/dist/esm/icons.generated/DangerDiamond.js.map +1 -1
  675. package/dist/esm/icons.generated/DangerDiamondFilled.js +4 -4
  676. package/dist/esm/icons.generated/DangerDiamondFilled.js.map +1 -1
  677. package/dist/esm/icons.generated/Delete.js +4 -4
  678. package/dist/esm/icons.generated/Delete.js.map +1 -1
  679. package/dist/esm/icons.generated/Deny.js +4 -4
  680. package/dist/esm/icons.generated/Deny.js.map +1 -1
  681. package/dist/esm/icons.generated/Devices.js +4 -4
  682. package/dist/esm/icons.generated/Devices.js.map +1 -1
  683. package/dist/esm/icons.generated/Directory.js +4 -4
  684. package/dist/esm/icons.generated/Directory.js.map +1 -1
  685. package/dist/esm/icons.generated/Documentation.js +4 -4
  686. package/dist/esm/icons.generated/Documentation.js.map +1 -1
  687. package/dist/esm/icons.generated/Download.js +4 -4
  688. package/dist/esm/icons.generated/Download.js.map +1 -1
  689. package/dist/esm/icons.generated/DragIndicator.js +4 -4
  690. package/dist/esm/icons.generated/DragIndicator.js.map +1 -1
  691. package/dist/esm/icons.generated/Duo.js +2 -2
  692. package/dist/esm/icons.generated/Duo.js.map +1 -1
  693. package/dist/esm/icons.generated/Edit.js +4 -4
  694. package/dist/esm/icons.generated/Edit.js.map +1 -1
  695. package/dist/esm/icons.generated/Email.js +4 -4
  696. package/dist/esm/icons.generated/Email.js.map +1 -1
  697. package/dist/esm/icons.generated/ExpandLeft.js +4 -4
  698. package/dist/esm/icons.generated/ExpandLeft.js.map +1 -1
  699. package/dist/esm/icons.generated/ExpandRight.js +4 -4
  700. package/dist/esm/icons.generated/ExpandRight.js.map +1 -1
  701. package/dist/esm/icons.generated/ExternalLink.js +4 -4
  702. package/dist/esm/icons.generated/ExternalLink.js.map +1 -1
  703. package/dist/esm/icons.generated/Fido2.js +10 -10
  704. package/dist/esm/icons.generated/Fido2.js.map +1 -1
  705. package/dist/esm/icons.generated/Filter.js +4 -4
  706. package/dist/esm/icons.generated/Filter.js.map +1 -1
  707. package/dist/esm/icons.generated/Folder.js +4 -4
  708. package/dist/esm/icons.generated/Folder.js.map +1 -1
  709. package/dist/esm/icons.generated/Globe.js +4 -4
  710. package/dist/esm/icons.generated/Globe.js.map +1 -1
  711. package/dist/esm/icons.generated/GoogleAuth.js +12 -12
  712. package/dist/esm/icons.generated/GoogleAuth.js.map +1 -1
  713. package/dist/esm/icons.generated/Grid.js +20 -20
  714. package/dist/esm/icons.generated/Grid.js.map +1 -1
  715. package/dist/esm/icons.generated/Group.js +4 -4
  716. package/dist/esm/icons.generated/Group.js.map +1 -1
  717. package/dist/esm/icons.generated/Hide.js +4 -4
  718. package/dist/esm/icons.generated/Hide.js.map +1 -1
  719. package/dist/esm/icons.generated/Home.js +4 -4
  720. package/dist/esm/icons.generated/Home.js.map +1 -1
  721. package/dist/esm/icons.generated/Idp.js +4 -4
  722. package/dist/esm/icons.generated/Idp.js.map +1 -1
  723. package/dist/esm/icons.generated/InformationCircle.js +4 -4
  724. package/dist/esm/icons.generated/InformationCircle.js.map +1 -1
  725. package/dist/esm/icons.generated/InformationCircleFilled.js +4 -4
  726. package/dist/esm/icons.generated/InformationCircleFilled.js.map +1 -1
  727. package/dist/esm/icons.generated/Link.js +4 -4
  728. package/dist/esm/icons.generated/Link.js.map +1 -1
  729. package/dist/esm/icons.generated/List.js +4 -4
  730. package/dist/esm/icons.generated/List.js.map +1 -1
  731. package/dist/esm/icons.generated/Lock.js +4 -4
  732. package/dist/esm/icons.generated/Lock.js.map +1 -1
  733. package/dist/esm/icons.generated/More.js +4 -4
  734. package/dist/esm/icons.generated/More.js.map +1 -1
  735. package/dist/esm/icons.generated/Notification.js +4 -4
  736. package/dist/esm/icons.generated/Notification.js.map +1 -1
  737. package/dist/esm/icons.generated/OktaVerify.js +4 -4
  738. package/dist/esm/icons.generated/OktaVerify.js.map +1 -1
  739. package/dist/esm/icons.generated/OnPremMfa.js +2 -2
  740. package/dist/esm/icons.generated/OnPremMfa.js.map +1 -1
  741. package/dist/esm/icons.generated/OneTimePassword.js +2 -2
  742. package/dist/esm/icons.generated/OneTimePassword.js.map +1 -1
  743. package/dist/esm/icons.generated/Password.js +2 -2
  744. package/dist/esm/icons.generated/Password.js.map +1 -1
  745. package/dist/esm/icons.generated/Pause.js +4 -4
  746. package/dist/esm/icons.generated/Pause.js.map +1 -1
  747. package/dist/esm/icons.generated/QuestionCircle.js +4 -4
  748. package/dist/esm/icons.generated/QuestionCircle.js.map +1 -1
  749. package/dist/esm/icons.generated/QuestionCircleFilled.js +4 -4
  750. package/dist/esm/icons.generated/QuestionCircleFilled.js.map +1 -1
  751. package/dist/esm/icons.generated/Refresh.js +4 -4
  752. package/dist/esm/icons.generated/Refresh.js.map +1 -1
  753. package/dist/esm/icons.generated/Reset.js +4 -4
  754. package/dist/esm/icons.generated/Reset.js.map +1 -1
  755. package/dist/esm/icons.generated/Resume.js +4 -4
  756. package/dist/esm/icons.generated/Resume.js.map +1 -1
  757. package/dist/esm/icons.generated/Search.js +4 -4
  758. package/dist/esm/icons.generated/Search.js.map +1 -1
  759. package/dist/esm/icons.generated/SecurityQuestion.js +4 -4
  760. package/dist/esm/icons.generated/SecurityQuestion.js.map +1 -1
  761. package/dist/esm/icons.generated/Send.js +32 -0
  762. package/dist/esm/icons.generated/Send.js.map +1 -0
  763. package/dist/esm/icons.generated/Server.js +4 -4
  764. package/dist/esm/icons.generated/Server.js.map +1 -1
  765. package/dist/esm/icons.generated/Settings.js +4 -4
  766. package/dist/esm/icons.generated/Settings.js.map +1 -1
  767. package/dist/esm/icons.generated/Show.js +4 -4
  768. package/dist/esm/icons.generated/Show.js.map +1 -1
  769. package/dist/esm/icons.generated/SmartCard.js +2 -2
  770. package/dist/esm/icons.generated/SmartCard.js.map +1 -1
  771. package/dist/esm/icons.generated/Sms.js +2 -2
  772. package/dist/esm/icons.generated/Sms.js.map +1 -1
  773. package/dist/esm/icons.generated/Subtract.js +4 -4
  774. package/dist/esm/icons.generated/Subtract.js.map +1 -1
  775. package/dist/esm/icons.generated/SymantecVip.js +2 -2
  776. package/dist/esm/icons.generated/SymantecVip.js.map +1 -1
  777. package/dist/esm/icons.generated/Sync.js +4 -4
  778. package/dist/esm/icons.generated/Sync.js.map +1 -1
  779. package/dist/esm/icons.generated/ThumbsDown.js +4 -4
  780. package/dist/esm/icons.generated/ThumbsDown.js.map +1 -1
  781. package/dist/esm/icons.generated/ThumbsUp.js +4 -4
  782. package/dist/esm/icons.generated/ThumbsUp.js.map +1 -1
  783. package/dist/esm/icons.generated/Unlock.js +4 -4
  784. package/dist/esm/icons.generated/Unlock.js.map +1 -1
  785. package/dist/esm/icons.generated/Upload.js +4 -4
  786. package/dist/esm/icons.generated/Upload.js.map +1 -1
  787. package/dist/esm/icons.generated/User.js +4 -4
  788. package/dist/esm/icons.generated/User.js.map +1 -1
  789. package/dist/esm/icons.generated/Video.js +4 -4
  790. package/dist/esm/icons.generated/Video.js.map +1 -1
  791. package/dist/esm/icons.generated/VoiceCall.js +4 -4
  792. package/dist/esm/icons.generated/VoiceCall.js.map +1 -1
  793. package/dist/esm/icons.generated/Warning.js +4 -4
  794. package/dist/esm/icons.generated/Warning.js.map +1 -1
  795. package/dist/esm/icons.generated/WarningFilled.js +4 -4
  796. package/dist/esm/icons.generated/WarningFilled.js.map +1 -1
  797. package/dist/esm/icons.generated/Yubikey.js +2 -2
  798. package/dist/esm/icons.generated/Yubikey.js.map +1 -1
  799. package/dist/esm/icons.generated/index.js +2 -1
  800. package/dist/esm/icons.generated/index.js.map +1 -1
  801. package/dist/esm/inputUtils.js.map +1 -1
  802. package/dist/esm/labs/AppTile.js +21 -21
  803. package/dist/esm/labs/AppTile.js.map +1 -1
  804. package/dist/esm/labs/DataFilters.js +53 -53
  805. package/dist/esm/labs/DataFilters.js.map +1 -1
  806. package/dist/esm/labs/DataTable.js +20 -21
  807. package/dist/esm/labs/DataTable.js.map +1 -1
  808. package/dist/esm/labs/DataTablePagination.js +9 -9
  809. package/dist/esm/labs/DataTablePagination.js.map +1 -1
  810. package/dist/esm/labs/DataView/BulkActionsMenu.js +2 -2
  811. package/dist/esm/labs/DataView/BulkActionsMenu.js.map +1 -1
  812. package/dist/esm/labs/DataView/CardLayoutContent.js +7 -7
  813. package/dist/esm/labs/DataView/CardLayoutContent.js.map +1 -1
  814. package/dist/esm/labs/DataView/DataCard.js +7 -7
  815. package/dist/esm/labs/DataView/DataCard.js.map +1 -1
  816. package/dist/esm/labs/DataView/DataTable.js.map +1 -1
  817. package/dist/esm/labs/DataView/DataView.js +16 -16
  818. package/dist/esm/labs/DataView/DataView.js.map +1 -1
  819. package/dist/esm/labs/DataView/DetailPanel.js.map +1 -1
  820. package/dist/esm/labs/DataView/LayoutSwitcher.js +2 -2
  821. package/dist/esm/labs/DataView/LayoutSwitcher.js.map +1 -1
  822. package/dist/esm/labs/DataView/RowActions.js +1 -1
  823. package/dist/esm/labs/DataView/RowActions.js.map +1 -1
  824. package/dist/esm/labs/DataView/TableLayoutContent.js +8 -8
  825. package/dist/esm/labs/DataView/TableLayoutContent.js.map +1 -1
  826. package/dist/esm/labs/DataView/TableSettings.js +3 -4
  827. package/dist/esm/labs/DataView/TableSettings.js.map +1 -1
  828. package/dist/esm/labs/DataView/componentTypes.js.map +1 -1
  829. package/dist/esm/labs/DataView/fetchData.js.map +1 -1
  830. package/dist/esm/labs/DataView/index.js.map +1 -1
  831. package/dist/esm/labs/DataView/tableConstants.js.map +1 -1
  832. package/dist/esm/labs/DataView/testSupportData.js.map +1 -1
  833. package/dist/esm/labs/DataView/useFilterConversion.js.map +1 -1
  834. package/dist/esm/labs/DatePickers/DateTimeField.js +2 -3
  835. package/dist/esm/labs/DatePickers/DateTimeField.js.map +1 -1
  836. package/dist/esm/labs/DatePickers/DateTimePicker.js +14 -10
  837. package/dist/esm/labs/DatePickers/DateTimePicker.js.map +1 -1
  838. package/dist/esm/labs/DatePickers/dateTimePickerTheme.js +3 -3
  839. package/dist/esm/labs/DatePickers/dateTimePickerTheme.js.map +1 -1
  840. package/dist/esm/labs/GroupPicker.js +5 -5
  841. package/dist/esm/labs/GroupPicker.js.map +1 -1
  842. package/dist/esm/labs/OdysseyPickers/ComposablePicker.js +3 -4
  843. package/dist/esm/labs/OdysseyPickers/ComposablePicker.js.map +1 -1
  844. package/dist/esm/labs/OdysseyPickers/Picker.js +4 -4
  845. package/dist/esm/labs/OdysseyPickers/Picker.js.map +1 -1
  846. package/dist/esm/labs/OdysseyPickers/PickerVirtualizationListBox.js +7 -7
  847. package/dist/esm/labs/OdysseyPickers/PickerVirtualizationListBox.js.map +1 -1
  848. package/dist/esm/labs/OdysseyPickers/PickerWithOptionAdornment.js +13 -13
  849. package/dist/esm/labs/OdysseyPickers/PickerWithOptionAdornment.js.map +1 -1
  850. package/dist/esm/labs/OdysseyPickers/SearchDropdown.js +12 -12
  851. package/dist/esm/labs/OdysseyPickers/SearchDropdown.js.map +1 -1
  852. package/dist/esm/labs/OdysseyPickers/index.js.map +1 -1
  853. package/dist/esm/labs/PageTemplate/DocumentationLink.js +0 -1
  854. package/dist/esm/labs/PageTemplate/DocumentationLink.js.map +1 -1
  855. package/dist/esm/labs/PageTemplate/Layout.js +1 -1
  856. package/dist/esm/labs/PageTemplate/Layout.js.map +1 -1
  857. package/dist/esm/labs/PageTemplate/PageTemplate.js +3 -3
  858. package/dist/esm/labs/PageTemplate/PageTemplate.js.map +1 -1
  859. package/dist/esm/labs/PaginatedTable.js +2 -2
  860. package/dist/esm/labs/PaginatedTable.js.map +1 -1
  861. package/dist/esm/labs/StaticTable.js +1 -1
  862. package/dist/esm/labs/StaticTable.js.map +1 -1
  863. package/dist/esm/labs/UserProfile.js.map +1 -1
  864. package/dist/esm/labs/UserProfileMenuButton.js +7 -7
  865. package/dist/esm/labs/UserProfileMenuButton.js.map +1 -1
  866. package/dist/esm/labs/index.js +9 -9
  867. package/dist/esm/labs/index.js.map +1 -1
  868. package/dist/esm/properties/ts/odyssey-react-mui.js +5 -0
  869. package/dist/esm/properties/ts/odyssey-react-mui.js.map +1 -1
  870. package/dist/esm/properties/ts/odyssey-react-mui_ok_PL.js +5 -0
  871. package/dist/esm/properties/ts/odyssey-react-mui_ok_PL.js.map +1 -1
  872. package/dist/esm/properties/ts/odyssey-react-mui_ok_SK.js +133 -129
  873. package/dist/esm/properties/ts/odyssey-react-mui_ok_SK.js.map +1 -1
  874. package/dist/esm/test-selectors/getByQuerySelector.js.map +1 -1
  875. package/dist/esm/test-selectors/getComputedAccessibleText.js +1 -1
  876. package/dist/esm/test-selectors/getComputedAccessibleText.js.map +1 -1
  877. package/dist/esm/test-selectors/linkedHtmlSelectors.js +1 -1
  878. package/dist/esm/test-selectors/linkedHtmlSelectors.js.map +1 -1
  879. package/dist/esm/test-selectors/queryOdysseySelector.js +1 -1
  880. package/dist/esm/test-selectors/queryOdysseySelector.js.map +1 -1
  881. package/dist/esm/test-selectors/querySelector.js +1 -1
  882. package/dist/esm/test-selectors/querySelector.js.map +1 -1
  883. package/dist/esm/theme/components.js +2 -2
  884. package/dist/esm/theme/components.js.map +1 -1
  885. package/dist/esm/theme/components.types.js.map +1 -1
  886. package/dist/esm/theme/createOdysseyMuiTheme.js +2 -2
  887. package/dist/esm/theme/createOdysseyMuiTheme.js.map +1 -1
  888. package/dist/esm/theme/mixins.types.js.map +1 -1
  889. package/dist/esm/theme/typography.types.js.map +1 -1
  890. package/dist/esm/ui-shell/AppSwitcher/AppSwitcher.js +2 -2
  891. package/dist/esm/ui-shell/AppSwitcher/AppSwitcher.js.map +1 -1
  892. package/dist/esm/ui-shell/AppSwitcher/AppSwitcherApp.js +9 -9
  893. package/dist/esm/ui-shell/AppSwitcher/AppSwitcherApp.js.map +1 -1
  894. package/dist/esm/ui-shell/AppSwitcher/OktaAura.js +5 -5
  895. package/dist/esm/ui-shell/AppSwitcher/OktaAura.js.map +1 -1
  896. package/dist/esm/ui-shell/InnerAppContainer.js.map +1 -1
  897. package/dist/esm/ui-shell/NarrowUiShellContent.js +5 -5
  898. package/dist/esm/ui-shell/NarrowUiShellContent.js.map +1 -1
  899. package/dist/esm/ui-shell/SideNav/CollapseIcon.js +2 -2
  900. package/dist/esm/ui-shell/SideNav/CollapseIcon.js.map +1 -1
  901. package/dist/esm/ui-shell/SideNav/HandleIcon.js +4 -4
  902. package/dist/esm/ui-shell/SideNav/HandleIcon.js.map +1 -1
  903. package/dist/esm/ui-shell/SideNav/NavAccordion.js +5 -5
  904. package/dist/esm/ui-shell/SideNav/NavAccordion.js.map +1 -1
  905. package/dist/esm/ui-shell/SideNav/OktaLogo.js +2 -2
  906. package/dist/esm/ui-shell/SideNav/OktaLogo.js.map +1 -1
  907. package/dist/esm/ui-shell/SideNav/SideNav.js +23 -23
  908. package/dist/esm/ui-shell/SideNav/SideNav.js.map +1 -1
  909. package/dist/esm/ui-shell/SideNav/SideNavFooterContent.js +4 -4
  910. package/dist/esm/ui-shell/SideNav/SideNavFooterContent.js.map +1 -1
  911. package/dist/esm/ui-shell/SideNav/SideNavHeader.js +4 -4
  912. package/dist/esm/ui-shell/SideNav/SideNavHeader.js.map +1 -1
  913. package/dist/esm/ui-shell/SideNav/SideNavItemContent.js +22 -22
  914. package/dist/esm/ui-shell/SideNav/SideNavItemContent.js.map +1 -1
  915. package/dist/esm/ui-shell/SideNav/SideNavItemContentContext.js.map +1 -1
  916. package/dist/esm/ui-shell/SideNav/SideNavItemLinkContent.js +5 -5
  917. package/dist/esm/ui-shell/SideNav/SideNavItemLinkContent.js.map +1 -1
  918. package/dist/esm/ui-shell/SideNav/SideNavLogo.js +3 -3
  919. package/dist/esm/ui-shell/SideNav/SideNavLogo.js.map +1 -1
  920. package/dist/esm/ui-shell/SideNav/SideNavToggleButton.js +3 -2
  921. package/dist/esm/ui-shell/SideNav/SideNavToggleButton.js.map +1 -1
  922. package/dist/esm/ui-shell/SideNav/SortableList/SortableItem.js +5 -5
  923. package/dist/esm/ui-shell/SideNav/SortableList/SortableItem.js.map +1 -1
  924. package/dist/esm/ui-shell/SideNav/SortableList/SortableList.js +9 -9
  925. package/dist/esm/ui-shell/SideNav/SortableList/SortableList.js.map +1 -1
  926. package/dist/esm/ui-shell/SideNav/SortableList/SortableOverlay.js.map +1 -1
  927. package/dist/esm/ui-shell/SideNav/index.js +1 -1
  928. package/dist/esm/ui-shell/SideNav/index.js.map +1 -1
  929. package/dist/esm/ui-shell/SideNav/types.js.map +1 -1
  930. package/dist/esm/ui-shell/TopNav/HamburgerMenuIcon.js +4 -4
  931. package/dist/esm/ui-shell/TopNav/HamburgerMenuIcon.js.map +1 -1
  932. package/dist/esm/ui-shell/TopNav/TopNav.js.map +1 -1
  933. package/dist/esm/ui-shell/TopNav/TopNavLinksList.js.map +1 -1
  934. package/dist/esm/ui-shell/TopNav/TopNavListItem.js.map +1 -1
  935. package/dist/esm/ui-shell/UiShell.js +2 -2
  936. package/dist/esm/ui-shell/UiShell.js.map +1 -1
  937. package/dist/esm/ui-shell/UiShellProvider.js.map +1 -1
  938. package/dist/esm/ui-shell/WideUiShellContent.js +4 -4
  939. package/dist/esm/ui-shell/WideUiShellContent.js.map +1 -1
  940. package/dist/esm/ui-shell/renderUiShell.js +2 -2
  941. package/dist/esm/ui-shell/renderUiShell.js.map +1 -1
  942. package/dist/esm/ui-shell/useElementAtContainerEdge.js +1 -1
  943. package/dist/esm/ui-shell/useElementAtContainerEdge.js.map +1 -1
  944. package/dist/esm/ui-shell/useUiShellBreakpoints.js.map +1 -1
  945. package/dist/esm/useAutocomplete.js +6 -7
  946. package/dist/esm/useAutocomplete.js.map +1 -1
  947. package/dist/esm/useContrastMode.js +1 -1
  948. package/dist/esm/useContrastMode.js.map +1 -1
  949. package/dist/esm/useSessionStorageState.js.map +1 -1
  950. package/dist/esm/web-component/odysseyWebComponentVersion.generated.js +1 -1
  951. package/dist/esm/web-component/odysseyWebComponentVersion.generated.js.map +1 -1
  952. package/dist/esm/web-component/renderReactInWebComponent.js +1 -1
  953. package/dist/esm/web-component/renderReactInWebComponent.js.map +1 -1
  954. package/dist/tsconfig.production.tsbuildinfo +1 -1
  955. package/dist/types/Accordion.d.ts +7 -7
  956. package/dist/types/Accordion.d.ts.map +1 -1
  957. package/dist/types/Autocomplete.d.ts +11 -11
  958. package/dist/types/Autocomplete.d.ts.map +1 -1
  959. package/dist/types/Badge.d.ts.map +1 -1
  960. package/dist/types/Banner.d.ts.map +1 -1
  961. package/dist/types/Box.d.ts.map +1 -1
  962. package/dist/types/Breadcrumbs.d.ts.map +1 -1
  963. package/dist/types/Buttons/BaseButton.d.ts +20 -20
  964. package/dist/types/Buttons/BaseButton.d.ts.map +1 -1
  965. package/dist/types/Buttons/BaseMenuButton.d.ts +6 -6
  966. package/dist/types/Buttons/BaseMenuButton.d.ts.map +1 -1
  967. package/dist/types/Buttons/Button.d.ts.map +1 -1
  968. package/dist/types/Buttons/MenuButton.d.ts.map +1 -1
  969. package/dist/types/Buttons/MenuContext.d.ts.map +1 -1
  970. package/dist/types/Buttons/MenuItem.d.ts +4 -4
  971. package/dist/types/Buttons/MenuItem.d.ts.map +1 -1
  972. package/dist/types/Buttons/index.d.ts +1 -1
  973. package/dist/types/Buttons/index.d.ts.map +1 -1
  974. package/dist/types/Callout.d.ts +1 -1
  975. package/dist/types/Callout.d.ts.map +1 -1
  976. package/dist/types/Card.d.ts +2 -2
  977. package/dist/types/Card.d.ts.map +1 -1
  978. package/dist/types/Checkbox.d.ts +6 -6
  979. package/dist/types/Checkbox.d.ts.map +1 -1
  980. package/dist/types/CheckboxGroup.d.ts +1 -1
  981. package/dist/types/CheckboxGroup.d.ts.map +1 -1
  982. package/dist/types/DataTable/DataTable.d.ts +42 -42
  983. package/dist/types/DataTable/DataTable.d.ts.map +1 -1
  984. package/dist/types/DataTable/DataTableRowActions.d.ts +2 -2
  985. package/dist/types/DataTable/DataTableRowActions.d.ts.map +1 -1
  986. package/dist/types/DataTable/DataTableSettings.d.ts +5 -5
  987. package/dist/types/DataTable/DataTableSettings.d.ts.map +1 -1
  988. package/dist/types/DataTable/index.d.ts +2 -2
  989. package/dist/types/DataTable/index.d.ts.map +1 -1
  990. package/dist/types/DataTable/reorderDataRowsLocally.d.ts +1 -1
  991. package/dist/types/DataTable/reorderDataRowsLocally.d.ts.map +1 -1
  992. package/dist/types/DataTable/useRowReordering.d.ts +10 -10
  993. package/dist/types/DataTable/useRowReordering.d.ts.map +1 -1
  994. package/dist/types/DataTable/useScrollIndication.d.ts +3 -3
  995. package/dist/types/DataTable/useScrollIndication.d.ts.map +1 -1
  996. package/dist/types/DatePickers/DateField.d.ts.map +1 -1
  997. package/dist/types/DatePickers/DateFieldActionBar.d.ts.map +1 -1
  998. package/dist/types/DatePickers/DateFieldLocalizationProvider.d.ts +1 -1
  999. package/dist/types/DatePickers/DateFieldLocalizationProvider.d.ts.map +1 -1
  1000. package/dist/types/DatePickers/DatePicker.d.ts +2 -2
  1001. package/dist/types/DatePickers/DatePicker.d.ts.map +1 -1
  1002. package/dist/types/DatePickers/datePickerTheme.d.ts +1 -1
  1003. package/dist/types/DatePickers/datePickerTheme.d.ts.map +1 -1
  1004. package/dist/types/DatePickers/useOdysseyDateFields.d.ts +8 -8
  1005. package/dist/types/DatePickers/useOdysseyDateFields.d.ts.map +1 -1
  1006. package/dist/types/Dialog.d.ts +20 -16
  1007. package/dist/types/Dialog.d.ts.map +1 -1
  1008. package/dist/types/Drawer.d.ts +17 -13
  1009. package/dist/types/Drawer.d.ts.map +1 -1
  1010. package/dist/types/EmptyState.d.ts +4 -4
  1011. package/dist/types/EmptyState.d.ts.map +1 -1
  1012. package/dist/types/ErrorMessageList.d.ts.map +1 -1
  1013. package/dist/types/Field.d.ts +5 -5
  1014. package/dist/types/Field.d.ts.map +1 -1
  1015. package/dist/types/FieldError.d.ts.map +1 -1
  1016. package/dist/types/FieldHint.d.ts +2 -2
  1017. package/dist/types/FieldHint.d.ts.map +1 -1
  1018. package/dist/types/FieldLabel.d.ts.map +1 -1
  1019. package/dist/types/Fieldset.d.ts +1 -1
  1020. package/dist/types/Fieldset.d.ts.map +1 -1
  1021. package/dist/types/FileUploader/FileUploadPreview.d.ts.map +1 -1
  1022. package/dist/types/FileUploader/FileUploader.d.ts.map +1 -1
  1023. package/dist/types/Form.d.ts +1 -1
  1024. package/dist/types/Form.d.ts.map +1 -1
  1025. package/dist/types/IconWithTooltip.d.ts +1 -1
  1026. package/dist/types/IconWithTooltip.d.ts.map +1 -1
  1027. package/dist/types/Link.d.ts +1 -1
  1028. package/dist/types/Link.d.ts.map +1 -1
  1029. package/dist/types/NativeSelect.d.ts +4 -4
  1030. package/dist/types/NativeSelect.d.ts.map +1 -1
  1031. package/dist/types/OdysseyCacheProvider.d.ts.map +1 -1
  1032. package/dist/types/OdysseyProvider.d.ts.map +1 -1
  1033. package/dist/types/OdysseyThemeProvider.d.ts +1 -1
  1034. package/dist/types/OdysseyThemeProvider.d.ts.map +1 -1
  1035. package/dist/types/OdysseyTranslationProvider.d.ts +2 -2
  1036. package/dist/types/OdysseyTranslationProvider.d.ts.map +1 -1
  1037. package/dist/types/Pagination/Pagination.d.ts.map +1 -1
  1038. package/dist/types/PasswordField.d.ts +1 -1
  1039. package/dist/types/PasswordField.d.ts.map +1 -1
  1040. package/dist/types/Radio.d.ts +6 -6
  1041. package/dist/types/Radio.d.ts.map +1 -1
  1042. package/dist/types/RadioGroup.d.ts +1 -1
  1043. package/dist/types/RadioGroup.d.ts.map +1 -1
  1044. package/dist/types/ScreenReaderText.d.ts.map +1 -1
  1045. package/dist/types/SearchField.d.ts +9 -9
  1046. package/dist/types/SearchField.d.ts.map +1 -1
  1047. package/dist/types/Select.d.ts +2 -2
  1048. package/dist/types/Select.d.ts.map +1 -1
  1049. package/dist/types/Stack.d.ts.map +1 -1
  1050. package/dist/types/Status.d.ts.map +1 -1
  1051. package/dist/types/Surface.d.ts.map +1 -1
  1052. package/dist/types/Switch.d.ts +5 -5
  1053. package/dist/types/Switch.d.ts.map +1 -1
  1054. package/dist/types/Tabs.d.ts +5 -5
  1055. package/dist/types/Tabs.d.ts.map +1 -1
  1056. package/dist/types/Tag.d.ts +4 -4
  1057. package/dist/types/Tag.d.ts.map +1 -1
  1058. package/dist/types/TagList.d.ts +1 -1
  1059. package/dist/types/TagList.d.ts.map +1 -1
  1060. package/dist/types/TextField.d.ts +8 -8
  1061. package/dist/types/TextField.d.ts.map +1 -1
  1062. package/dist/types/ToastStack.d.ts.map +1 -1
  1063. package/dist/types/Tooltip.d.ts.map +1 -1
  1064. package/dist/types/Typography.d.ts +6 -6
  1065. package/dist/types/Typography.d.ts.map +1 -1
  1066. package/dist/types/hexToRgb.d.ts +2 -2
  1067. package/dist/types/hexToRgb.d.ts.map +1 -1
  1068. package/dist/types/i18n.d.ts +15 -1
  1069. package/dist/types/i18n.d.ts.map +1 -1
  1070. package/dist/types/icons.generated/Add.d.ts.map +1 -1
  1071. package/dist/types/icons.generated/AddCircle.d.ts.map +1 -1
  1072. package/dist/types/icons.generated/Apps.d.ts.map +1 -1
  1073. package/dist/types/icons.generated/ArrowBottom.d.ts.map +1 -1
  1074. package/dist/types/icons.generated/ArrowDown.d.ts.map +1 -1
  1075. package/dist/types/icons.generated/ArrowLeft.d.ts.map +1 -1
  1076. package/dist/types/icons.generated/ArrowLowerLeft.d.ts.map +1 -1
  1077. package/dist/types/icons.generated/ArrowLowerRight.d.ts.map +1 -1
  1078. package/dist/types/icons.generated/ArrowRight.d.ts.map +1 -1
  1079. package/dist/types/icons.generated/ArrowTop.d.ts.map +1 -1
  1080. package/dist/types/icons.generated/ArrowUnsorted.d.ts.map +1 -1
  1081. package/dist/types/icons.generated/ArrowUp.d.ts.map +1 -1
  1082. package/dist/types/icons.generated/ArrowUpperLeft.d.ts.map +1 -1
  1083. package/dist/types/icons.generated/ArrowUpperRight.d.ts.map +1 -1
  1084. package/dist/types/icons.generated/Bug.d.ts.map +1 -1
  1085. package/dist/types/icons.generated/Calendar.d.ts.map +1 -1
  1086. package/dist/types/icons.generated/Call.d.ts.map +1 -1
  1087. package/dist/types/icons.generated/Chat.d.ts.map +1 -1
  1088. package/dist/types/icons.generated/Check.d.ts.map +1 -1
  1089. package/dist/types/icons.generated/CheckCircleFilled.d.ts.map +1 -1
  1090. package/dist/types/icons.generated/ChevronDown.d.ts.map +1 -1
  1091. package/dist/types/icons.generated/ChevronLeft.d.ts.map +1 -1
  1092. package/dist/types/icons.generated/ChevronRight.d.ts.map +1 -1
  1093. package/dist/types/icons.generated/ChevronUp.d.ts.map +1 -1
  1094. package/dist/types/icons.generated/Clock.d.ts.map +1 -1
  1095. package/dist/types/icons.generated/Close.d.ts.map +1 -1
  1096. package/dist/types/icons.generated/CloseCircleFilled.d.ts.map +1 -1
  1097. package/dist/types/icons.generated/CollapseLeft.d.ts.map +1 -1
  1098. package/dist/types/icons.generated/CollapseRight.d.ts.map +1 -1
  1099. package/dist/types/icons.generated/Copy.d.ts.map +1 -1
  1100. package/dist/types/icons.generated/Custom.d.ts.map +1 -1
  1101. package/dist/types/icons.generated/DangerDiamond.d.ts.map +1 -1
  1102. package/dist/types/icons.generated/DangerDiamondFilled.d.ts.map +1 -1
  1103. package/dist/types/icons.generated/Delete.d.ts.map +1 -1
  1104. package/dist/types/icons.generated/Deny.d.ts.map +1 -1
  1105. package/dist/types/icons.generated/Devices.d.ts.map +1 -1
  1106. package/dist/types/icons.generated/Directory.d.ts.map +1 -1
  1107. package/dist/types/icons.generated/Documentation.d.ts.map +1 -1
  1108. package/dist/types/icons.generated/Download.d.ts.map +1 -1
  1109. package/dist/types/icons.generated/DragIndicator.d.ts.map +1 -1
  1110. package/dist/types/icons.generated/Duo.d.ts.map +1 -1
  1111. package/dist/types/icons.generated/Edit.d.ts.map +1 -1
  1112. package/dist/types/icons.generated/Email.d.ts.map +1 -1
  1113. package/dist/types/icons.generated/ExpandLeft.d.ts.map +1 -1
  1114. package/dist/types/icons.generated/ExpandRight.d.ts.map +1 -1
  1115. package/dist/types/icons.generated/ExternalLink.d.ts.map +1 -1
  1116. package/dist/types/icons.generated/Fido2.d.ts.map +1 -1
  1117. package/dist/types/icons.generated/Filter.d.ts.map +1 -1
  1118. package/dist/types/icons.generated/Folder.d.ts.map +1 -1
  1119. package/dist/types/icons.generated/Globe.d.ts.map +1 -1
  1120. package/dist/types/icons.generated/GoogleAuth.d.ts.map +1 -1
  1121. package/dist/types/icons.generated/Grid.d.ts.map +1 -1
  1122. package/dist/types/icons.generated/Group.d.ts.map +1 -1
  1123. package/dist/types/icons.generated/Hide.d.ts.map +1 -1
  1124. package/dist/types/icons.generated/Home.d.ts.map +1 -1
  1125. package/dist/types/icons.generated/Idp.d.ts.map +1 -1
  1126. package/dist/types/icons.generated/InformationCircle.d.ts.map +1 -1
  1127. package/dist/types/icons.generated/InformationCircleFilled.d.ts.map +1 -1
  1128. package/dist/types/icons.generated/Link.d.ts.map +1 -1
  1129. package/dist/types/icons.generated/List.d.ts.map +1 -1
  1130. package/dist/types/icons.generated/Lock.d.ts.map +1 -1
  1131. package/dist/types/icons.generated/More.d.ts.map +1 -1
  1132. package/dist/types/icons.generated/Notification.d.ts.map +1 -1
  1133. package/dist/types/icons.generated/OktaVerify.d.ts.map +1 -1
  1134. package/dist/types/icons.generated/OnPremMfa.d.ts.map +1 -1
  1135. package/dist/types/icons.generated/OneTimePassword.d.ts.map +1 -1
  1136. package/dist/types/icons.generated/Password.d.ts.map +1 -1
  1137. package/dist/types/icons.generated/Pause.d.ts.map +1 -1
  1138. package/dist/types/icons.generated/QuestionCircle.d.ts.map +1 -1
  1139. package/dist/types/icons.generated/QuestionCircleFilled.d.ts.map +1 -1
  1140. package/dist/types/icons.generated/Refresh.d.ts.map +1 -1
  1141. package/dist/types/icons.generated/Reset.d.ts.map +1 -1
  1142. package/dist/types/icons.generated/Resume.d.ts.map +1 -1
  1143. package/dist/types/icons.generated/Search.d.ts.map +1 -1
  1144. package/dist/types/icons.generated/SecurityQuestion.d.ts.map +1 -1
  1145. package/dist/{index.js → types/icons.generated/Send.d.ts} +6 -15
  1146. package/dist/types/icons.generated/Send.d.ts.map +1 -0
  1147. package/dist/types/icons.generated/Server.d.ts.map +1 -1
  1148. package/dist/types/icons.generated/Settings.d.ts.map +1 -1
  1149. package/dist/types/icons.generated/Show.d.ts.map +1 -1
  1150. package/dist/types/icons.generated/SmartCard.d.ts.map +1 -1
  1151. package/dist/types/icons.generated/Sms.d.ts.map +1 -1
  1152. package/dist/types/icons.generated/Subtract.d.ts.map +1 -1
  1153. package/dist/types/icons.generated/SymantecVip.d.ts.map +1 -1
  1154. package/dist/types/icons.generated/Sync.d.ts.map +1 -1
  1155. package/dist/types/icons.generated/ThumbsDown.d.ts.map +1 -1
  1156. package/dist/types/icons.generated/ThumbsUp.d.ts.map +1 -1
  1157. package/dist/types/icons.generated/Unlock.d.ts.map +1 -1
  1158. package/dist/types/icons.generated/Upload.d.ts.map +1 -1
  1159. package/dist/types/icons.generated/User.d.ts.map +1 -1
  1160. package/dist/types/icons.generated/Video.d.ts.map +1 -1
  1161. package/dist/types/icons.generated/VoiceCall.d.ts.map +1 -1
  1162. package/dist/types/icons.generated/Warning.d.ts.map +1 -1
  1163. package/dist/types/icons.generated/WarningFilled.d.ts.map +1 -1
  1164. package/dist/types/icons.generated/Yubikey.d.ts.map +1 -1
  1165. package/dist/types/icons.generated/index.d.ts +2 -1
  1166. package/dist/types/icons.generated/index.d.ts.map +1 -1
  1167. package/dist/types/inputUtils.d.ts +2 -2
  1168. package/dist/types/inputUtils.d.ts.map +1 -1
  1169. package/dist/types/labs/AppTile.d.ts +7 -7
  1170. package/dist/types/labs/AppTile.d.ts.map +1 -1
  1171. package/dist/types/labs/DataFilters.d.ts +33 -33
  1172. package/dist/types/labs/DataFilters.d.ts.map +1 -1
  1173. package/dist/types/labs/DataTable.d.ts +69 -69
  1174. package/dist/types/labs/DataTable.d.ts.map +1 -1
  1175. package/dist/types/labs/DataTablePagination.d.ts +1 -1
  1176. package/dist/types/labs/DataTablePagination.d.ts.map +1 -1
  1177. package/dist/types/labs/DataView/BulkActionsMenu.d.ts +1 -1
  1178. package/dist/types/labs/DataView/BulkActionsMenu.d.ts.map +1 -1
  1179. package/dist/types/labs/DataView/CardLayoutContent.d.ts +10 -10
  1180. package/dist/types/labs/DataView/CardLayoutContent.d.ts.map +1 -1
  1181. package/dist/types/labs/DataView/DataCard.d.ts +1 -1
  1182. package/dist/types/labs/DataView/DataCard.d.ts.map +1 -1
  1183. package/dist/types/labs/DataView/DataTable.d.ts +1 -1
  1184. package/dist/types/labs/DataView/DataTable.d.ts.map +1 -1
  1185. package/dist/types/labs/DataView/DataView.d.ts.map +1 -1
  1186. package/dist/types/labs/DataView/DetailPanel.d.ts +2 -2
  1187. package/dist/types/labs/DataView/DetailPanel.d.ts.map +1 -1
  1188. package/dist/types/labs/DataView/LayoutSwitcher.d.ts.map +1 -1
  1189. package/dist/types/labs/DataView/RowActions.d.ts +1 -1
  1190. package/dist/types/labs/DataView/RowActions.d.ts.map +1 -1
  1191. package/dist/types/labs/DataView/TableLayoutContent.d.ts +9 -9
  1192. package/dist/types/labs/DataView/TableLayoutContent.d.ts.map +1 -1
  1193. package/dist/types/labs/DataView/TableSettings.d.ts +1 -1
  1194. package/dist/types/labs/DataView/TableSettings.d.ts.map +1 -1
  1195. package/dist/types/labs/DataView/componentTypes.d.ts +5 -5
  1196. package/dist/types/labs/DataView/componentTypes.d.ts.map +1 -1
  1197. package/dist/types/labs/DataView/fetchData.d.ts +2 -2
  1198. package/dist/types/labs/DataView/fetchData.d.ts.map +1 -1
  1199. package/dist/types/labs/DataView/index.d.ts +1 -1
  1200. package/dist/types/labs/DataView/index.d.ts.map +1 -1
  1201. package/dist/types/labs/DataView/tableConstants.d.ts +2 -2
  1202. package/dist/types/labs/DataView/tableConstants.d.ts.map +1 -1
  1203. package/dist/types/labs/DataView/testSupportData.d.ts +5 -5
  1204. package/dist/types/labs/DataView/testSupportData.d.ts.map +1 -1
  1205. package/dist/types/labs/DataView/useFilterConversion.d.ts +1 -1
  1206. package/dist/types/labs/DataView/useFilterConversion.d.ts.map +1 -1
  1207. package/dist/types/labs/DatePickers/DateTimeField.d.ts.map +1 -1
  1208. package/dist/types/labs/DatePickers/DateTimePicker.d.ts +2 -2
  1209. package/dist/types/labs/DatePickers/DateTimePicker.d.ts.map +1 -1
  1210. package/dist/types/labs/DatePickers/dateTimePickerTheme.d.ts.map +1 -1
  1211. package/dist/types/labs/OdysseyPickers/ComposablePicker.d.ts +1 -1
  1212. package/dist/types/labs/OdysseyPickers/ComposablePicker.d.ts.map +1 -1
  1213. package/dist/types/labs/OdysseyPickers/Picker.d.ts +2 -2
  1214. package/dist/types/labs/OdysseyPickers/Picker.d.ts.map +1 -1
  1215. package/dist/types/labs/OdysseyPickers/PickerWithOptionAdornment.d.ts.map +1 -1
  1216. package/dist/types/labs/OdysseyPickers/SearchDropdown.d.ts +2 -2
  1217. package/dist/types/labs/OdysseyPickers/SearchDropdown.d.ts.map +1 -1
  1218. package/dist/types/labs/OdysseyPickers/index.d.ts +1 -1
  1219. package/dist/types/labs/OdysseyPickers/index.d.ts.map +1 -1
  1220. package/dist/types/labs/PageTemplate/DocumentationLink.d.ts.map +1 -1
  1221. package/dist/types/labs/PageTemplate/Layout.d.ts +4 -4
  1222. package/dist/types/labs/PageTemplate/Layout.d.ts.map +1 -1
  1223. package/dist/types/labs/PageTemplate/PageTemplate.d.ts +8 -8
  1224. package/dist/types/labs/PageTemplate/PageTemplate.d.ts.map +1 -1
  1225. package/dist/types/labs/PaginatedTable.d.ts.map +1 -1
  1226. package/dist/types/labs/UserProfile.d.ts +4 -4
  1227. package/dist/types/labs/UserProfile.d.ts.map +1 -1
  1228. package/dist/types/labs/UserProfileMenuButton.d.ts.map +1 -1
  1229. package/dist/types/labs/index.d.ts +14 -14
  1230. package/dist/types/labs/index.d.ts.map +1 -1
  1231. package/dist/types/properties/ts/odyssey-react-mui.d.ts +5 -0
  1232. package/dist/types/properties/ts/odyssey-react-mui.d.ts.map +1 -1
  1233. package/dist/types/properties/ts/odyssey-react-mui_ok_PL.d.ts +5 -0
  1234. package/dist/types/properties/ts/odyssey-react-mui_ok_PL.d.ts.map +1 -1
  1235. package/dist/types/properties/ts/odyssey-react-mui_ok_SK.d.ts +5 -1
  1236. package/dist/types/properties/ts/odyssey-react-mui_ok_SK.d.ts.map +1 -1
  1237. package/dist/types/test-selectors/getByQuerySelector.d.ts +13 -13
  1238. package/dist/types/test-selectors/getByQuerySelector.d.ts.map +1 -1
  1239. package/dist/types/test-selectors/getComputedAccessibleText.d.ts +1 -1
  1240. package/dist/types/test-selectors/getComputedAccessibleText.d.ts.map +1 -1
  1241. package/dist/types/test-selectors/linkedHtmlSelectors.d.ts.map +1 -1
  1242. package/dist/types/test-selectors/queryOdysseySelector.d.ts.map +1 -1
  1243. package/dist/types/test-selectors/querySelector.d.ts +1 -1
  1244. package/dist/types/test-selectors/querySelector.d.ts.map +1 -1
  1245. package/dist/types/theme/components.d.ts +1 -1
  1246. package/dist/types/theme/components.d.ts.map +1 -1
  1247. package/dist/types/theme/components.types.d.ts +12 -12
  1248. package/dist/types/theme/components.types.d.ts.map +1 -1
  1249. package/dist/types/theme/createOdysseyMuiTheme.d.ts +1 -1
  1250. package/dist/types/theme/createOdysseyMuiTheme.d.ts.map +1 -1
  1251. package/dist/types/theme/mixins.types.d.ts +2 -2
  1252. package/dist/types/theme/mixins.types.d.ts.map +1 -1
  1253. package/dist/types/theme/typography.types.d.ts +2 -2
  1254. package/dist/types/theme/typography.types.d.ts.map +1 -1
  1255. package/dist/types/ui-shell/AppSwitcher/AppSwitcher.d.ts +1 -1
  1256. package/dist/types/ui-shell/AppSwitcher/AppSwitcher.d.ts.map +1 -1
  1257. package/dist/types/ui-shell/AppSwitcher/AppSwitcherApp.d.ts.map +1 -1
  1258. package/dist/types/ui-shell/AppSwitcher/OktaAura.d.ts.map +1 -1
  1259. package/dist/types/ui-shell/InnerAppContainer.d.ts.map +1 -1
  1260. package/dist/types/ui-shell/NarrowUiShellContent.d.ts +1 -1
  1261. package/dist/types/ui-shell/NarrowUiShellContent.d.ts.map +1 -1
  1262. package/dist/types/ui-shell/SideNav/NavAccordion.d.ts +4 -4
  1263. package/dist/types/ui-shell/SideNav/NavAccordion.d.ts.map +1 -1
  1264. package/dist/types/ui-shell/SideNav/SideNav.d.ts.map +1 -1
  1265. package/dist/types/ui-shell/SideNav/SideNavFooterContent.d.ts.map +1 -1
  1266. package/dist/types/ui-shell/SideNav/SideNavHeader.d.ts.map +1 -1
  1267. package/dist/types/ui-shell/SideNav/SideNavItemContent.d.ts +9 -9
  1268. package/dist/types/ui-shell/SideNav/SideNavItemContent.d.ts.map +1 -1
  1269. package/dist/types/ui-shell/SideNav/SideNavItemContentContext.d.ts +1 -1
  1270. package/dist/types/ui-shell/SideNav/SideNavItemContentContext.d.ts.map +1 -1
  1271. package/dist/types/ui-shell/SideNav/SideNavItemLinkContent.d.ts.map +1 -1
  1272. package/dist/types/ui-shell/SideNav/SideNavToggleButton.d.ts +1 -1
  1273. package/dist/types/ui-shell/SideNav/SideNavToggleButton.d.ts.map +1 -1
  1274. package/dist/types/ui-shell/SideNav/SortableList/SortableItem.d.ts +1 -1
  1275. package/dist/types/ui-shell/SideNav/SortableList/SortableItem.d.ts.map +1 -1
  1276. package/dist/types/ui-shell/SideNav/SortableList/SortableList.d.ts +1 -1
  1277. package/dist/types/ui-shell/SideNav/SortableList/SortableList.d.ts.map +1 -1
  1278. package/dist/types/ui-shell/SideNav/SortableList/SortableOverlay.d.ts.map +1 -1
  1279. package/dist/types/ui-shell/SideNav/index.d.ts +1 -1
  1280. package/dist/types/ui-shell/SideNav/index.d.ts.map +1 -1
  1281. package/dist/types/ui-shell/SideNav/types.d.ts +18 -18
  1282. package/dist/types/ui-shell/SideNav/types.d.ts.map +1 -1
  1283. package/dist/types/ui-shell/TopNav/HamburgerMenuIcon.d.ts.map +1 -1
  1284. package/dist/types/ui-shell/TopNav/TopNav.d.ts.map +1 -1
  1285. package/dist/types/ui-shell/TopNav/TopNavLinksList.d.ts +1 -1
  1286. package/dist/types/ui-shell/TopNav/TopNavLinksList.d.ts.map +1 -1
  1287. package/dist/types/ui-shell/TopNav/TopNavListItem.d.ts.map +1 -1
  1288. package/dist/types/ui-shell/UiShell.d.ts +2 -2
  1289. package/dist/types/ui-shell/UiShell.d.ts.map +1 -1
  1290. package/dist/types/ui-shell/UiShellProvider.d.ts +5 -5
  1291. package/dist/types/ui-shell/UiShellProvider.d.ts.map +1 -1
  1292. package/dist/types/ui-shell/WideUiShellContent.d.ts +1 -1
  1293. package/dist/types/ui-shell/WideUiShellContent.d.ts.map +1 -1
  1294. package/dist/types/ui-shell/renderUiShell.d.ts +1 -1
  1295. package/dist/types/ui-shell/renderUiShell.d.ts.map +1 -1
  1296. package/dist/types/ui-shell/useElementAtContainerEdge.d.ts +6 -6
  1297. package/dist/types/ui-shell/useElementAtContainerEdge.d.ts.map +1 -1
  1298. package/dist/types/ui-shell/useUiShellBreakpoints.d.ts +1 -1
  1299. package/dist/types/useAutocomplete.d.ts +2 -2
  1300. package/dist/types/useAutocomplete.d.ts.map +1 -1
  1301. package/dist/types/useSessionStorageState.d.ts.map +1 -1
  1302. package/dist/types/web-component/odysseyWebComponentVersion.generated.d.ts +1 -1
  1303. package/dist/types/web-component/renderReactInWebComponent.d.ts +7 -7
  1304. package/dist/types/web-component/renderReactInWebComponent.d.ts.map +1 -1
  1305. package/package.json +8 -6
  1306. package/dist/index.cjs +0 -231
  1307. package/dist/index.d.ts +0 -233
  1308. package/dist/index.d.ts.map +0 -1
  1309. package/dist/index.mjs +0 -229
  1310. package/dist/index.scss +0 -549
  1311. package/dist/tsconfig.tsbuildinfo +0 -1
@@ -1 +1 @@
1
- {"version":3,"file":"WideUiShellContent.js","names":["styled","memo","useRef","ErrorBoundary","AppSwitcher","InnerAppContainer","useOdysseyDesignTokens","SideNav","TopNav","useScrollState","useMatchAppElementToUiShellAppArea","useUiShellContext","emptySideNavItems","jsx","_jsx","jsxs","_jsxs","appSwitcherDefaultAppIcons","StyledAppContainer","shouldForwardProp","prop","appBackgroundColor","backgroundColor","gridArea","position","StyledAppSwitcherContainer","StyledBannersContainer","StyledSideNavContainer","StyledShellContainer","odysseyDesignTokens","HueNeutral50","display","gridGap","gridTemplateAreas","gridTemplateColumns","gridTemplateRows","height","width","StyledTopNavContainer","WideUiShellContent","appElement","appElementScrollingMode","appSwitcherProps","hasStandardAppContentPadding","hasSideNavProps","initialVisibleSections","onError","console","error","optionalComponents","sideNavProps","topNavProps","uiShellContext","isContentScrolled","sideNavContainerRef","topNavContainerRef","uiShellAppAreaRef","parentContainerRef","paddingMode","uiShellResizableRefs","ref","children","banners","includes","fallback","appIcons","isLoading","selectedAppName","sideNavItems","hasCustomFooter","sideNavFooter","footerComponent","footerItems","undefined","leftSideComponent","topNavLeftSide","rightSideComponent","topNavRightSide","tabIndex","MemoizedWideUiShellContent","displayName"],"sources":["../../../src/ui-shell/WideUiShellContent.tsx"],"sourcesContent":["/*!\n * Copyright (c) 2024-present, Okta, Inc. and/or its affiliates. All rights reserved.\n * The Okta software accompanied by this notice is provided pursuant to the Apache License, Version 2.0 (the \"License.\")\n *\n * You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0.\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS, WITHOUT\n * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n *\n * See the License for the specific language governing permissions and limitations under the License.\n */\n\nimport styled from \"@emotion/styled\";\nimport { memo, useRef } from \"react\";\nimport { ErrorBoundary } from \"react-error-boundary\";\n\nimport { AppSwitcher } from \"./AppSwitcher/index.js\";\nimport { AppSwitcherAppIconData } from \"./AppSwitcher/AppSwitcherApp.js\";\nimport { InnerAppContainer } from \"./InnerAppContainer.js\";\nimport {\n useOdysseyDesignTokens,\n type DesignTokens,\n} from \"../OdysseyDesignTokensContext.js\";\nimport { SideNav } from \"./SideNav/index.js\";\nimport { TopNav } from \"./TopNav/index.js\";\nimport { useScrollState } from \"./useScrollState.js\";\nimport { useMatchAppElementToUiShellAppArea } from \"./useMatchAppElementToUiShellAppArea.js\";\nimport {\n UiShellNavComponentProps,\n UiShellContentProps,\n} from \"./uiShellContentTypes.js\";\nimport { UiShellColors, useUiShellContext } from \"./UiShellProvider.js\";\nimport { emptySideNavItems } from \"./uiShellSharedConstants.js\";\n\nconst appSwitcherDefaultAppIcons = [] satisfies AppSwitcherAppIconData[];\n\nconst StyledAppContainer = styled(\"div\", {\n shouldForwardProp: (prop) =>\n prop !== \"appBackgroundColor\" && prop !== \"odysseyDesignTokens\",\n})<{\n appBackgroundColor?: UiShellColors[\"appBackgroundColor\"];\n}>(({ appBackgroundColor }) => ({\n backgroundColor: appBackgroundColor,\n gridArea: \"app-content\",\n position: \"relative\",\n}));\n\nconst StyledAppSwitcherContainer = styled(\"div\")({\n gridArea: \"app-switcher\",\n});\n\nconst StyledBannersContainer = styled(\"div\")({\n gridArea: \"banners\",\n});\n\nconst StyledSideNavContainer = styled(\"div\")({\n gridArea: \"side-nav\",\n});\n\nconst StyledShellContainer = styled(\"div\", {\n shouldForwardProp: (prop) => prop !== \"odysseyDesignTokens\",\n})<{\n odysseyDesignTokens: DesignTokens;\n}>(({ odysseyDesignTokens }) => ({\n backgroundColor: odysseyDesignTokens.HueNeutral50,\n display: \"grid\",\n gridGap: 0,\n gridTemplateAreas: `\n \"banners banners banners\"\n \"app-switcher side-nav top-nav\"\n \"app-switcher side-nav app-content\"\n `,\n gridTemplateColumns: \"auto auto 1fr\",\n gridTemplateRows: \"auto auto 1fr\",\n height: \"100vh\",\n width: \"100vw\",\n}));\n\nconst StyledTopNavContainer = styled(\"div\")({\n gridArea: \"top-nav\",\n});\n\nexport type WideUiShellContentProps = UiShellNavComponentProps &\n UiShellContentProps;\n\n/**\n * Our new Unified Platform UI Shell.\n *\n * This includes the top and side navigation as well as the footer and provides a spot for your app to render into.\n *\n * If an error occurs, this will revert to only showing the app.\n */\nconst WideUiShellContent = ({\n appElement,\n appElementScrollingMode,\n appSwitcherProps,\n hasStandardAppContentPadding = true,\n hasSideNavProps,\n initialVisibleSections = [\"TopNav\", \"SideNav\", \"AppSwitcher\"],\n onError = console.error,\n optionalComponents,\n sideNavProps,\n topNavProps,\n}: WideUiShellContentProps) => {\n const odysseyDesignTokens = useOdysseyDesignTokens();\n const uiShellContext = useUiShellContext();\n\n const { isContentScrolled } = useScrollState(appElement);\n\n const sideNavContainerRef = useRef<HTMLDivElement>(null);\n const topNavContainerRef = useRef<HTMLDivElement>(null);\n const uiShellAppAreaRef = useRef<HTMLDivElement>(null);\n\n const { parentContainerRef } = useMatchAppElementToUiShellAppArea({\n appElement,\n appElementScrollingMode,\n paddingMode: hasStandardAppContentPadding ? \"comfortable\" : \"none\",\n uiShellAppAreaRef,\n uiShellResizableRefs: [\n sideNavContainerRef,\n topNavContainerRef,\n uiShellAppAreaRef,\n ],\n });\n\n return (\n <StyledShellContainer\n odysseyDesignTokens={odysseyDesignTokens}\n ref={parentContainerRef}\n >\n <StyledBannersContainer>\n {optionalComponents?.banners}\n </StyledBannersContainer>\n\n <StyledAppSwitcherContainer>\n {\n /* If AppSwitcher should be initially visible and we have not yet received props, render AppSwitcher in the loading state */\n initialVisibleSections?.includes(\"AppSwitcher\") &&\n !appSwitcherProps && (\n <ErrorBoundary fallback={null} onError={onError}>\n <AppSwitcher\n appIcons={appSwitcherDefaultAppIcons}\n isLoading\n selectedAppName=\"\"\n />\n </ErrorBoundary>\n )\n }\n\n {appSwitcherProps && (\n <ErrorBoundary fallback={null} onError={onError}>\n <AppSwitcher {...appSwitcherProps} />\n </ErrorBoundary>\n )}\n </StyledAppSwitcherContainer>\n\n <StyledSideNavContainer ref={sideNavContainerRef}>\n {\n /* If SideNav should be initially visible and we have not yet received props, render SideNav with minimal inputs */\n initialVisibleSections?.includes(\"SideNav\") && !hasSideNavProps && (\n <ErrorBoundary fallback={null} onError={onError}>\n <SideNav isLoading sideNavItems={emptySideNavItems} />\n </ErrorBoundary>\n )\n }\n\n {hasSideNavProps && sideNavProps && (\n <ErrorBoundary fallback={null} onError={onError}>\n <SideNav\n {...{\n ...sideNavProps,\n ...(sideNavProps.hasCustomFooter &&\n optionalComponents?.sideNavFooter\n ? {\n footerComponent: optionalComponents.sideNavFooter,\n footerItems: undefined,\n hasCustomFooter: sideNavProps.hasCustomFooter,\n }\n : {\n footerItems: sideNavProps.footerItems,\n hasCustomFooter: false,\n }),\n }}\n />\n </ErrorBoundary>\n )}\n </StyledSideNavContainer>\n\n <StyledTopNavContainer ref={topNavContainerRef}>\n {\n /* If TopNav should be initially visible and we have not yet received props, render Topnav with minimal inputs */\n initialVisibleSections?.includes(\"TopNav\") &&\n topNavProps === undefined && (\n <ErrorBoundary fallback={null} onError={onError}>\n <TopNav\n leftSideComponent={optionalComponents?.topNavLeftSide}\n rightSideComponent={optionalComponents?.topNavRightSide}\n />\n </ErrorBoundary>\n )\n }\n\n {topNavProps && (\n <ErrorBoundary fallback={null} onError={onError}>\n <TopNav\n {...topNavProps}\n leftSideComponent={optionalComponents?.topNavLeftSide}\n rightSideComponent={optionalComponents?.topNavRightSide}\n />\n </ErrorBoundary>\n )}\n </StyledTopNavContainer>\n\n <StyledAppContainer\n appBackgroundColor={uiShellContext?.appBackgroundColor}\n tabIndex={0}\n ref={uiShellAppAreaRef}\n >\n <InnerAppContainer isContentScrolled={isContentScrolled} />\n </StyledAppContainer>\n </StyledShellContainer>\n );\n};\n\nconst MemoizedWideUiShellContent = memo(WideUiShell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B,cAAc,EAAE/B,kBAAmB;MACvDyD,QAAQ,EAAE,CAAE;MACZlB,GAAG,EAAEJ,iBAAkB;MAAAK,QAAA,EAEvB/C,IAAA,CAACT,iBAAiB;QAACgD,iBAAiB,EAAEA;MAAkB,CAAE;IAAC,CACzC,CAAC;EAAA,CACD,CAAC;AAE3B,CAAC;AAED,MAAM0B,0BAA0B,GAAG9E,IAAI,CAACsC,kBAAkB,CAAC;AAC3DwC,0BAA0B,CAACC,WAAW,GAAG,oBAAoB;AAE7D,SAASD,0BAA0B,IAAIxC,kBAAkB","ignoreList":[]}
1
+ {"version":3,"file":"WideUiShellContent.js","names":["styled","memo","useRef","ErrorBoundary","useOdysseyDesignTokens","AppSwitcher","InnerAppContainer","SideNav","TopNav","useUiShellContext","emptySideNavItems","useMatchAppElementToUiShellAppArea","useScrollState","jsx","_jsx","jsxs","_jsxs","appSwitcherDefaultAppIcons","StyledAppContainer","shouldForwardProp","prop","appBackgroundColor","backgroundColor","gridArea","position","StyledAppSwitcherContainer","StyledBannersContainer","StyledSideNavContainer","StyledShellContainer","odysseyDesignTokens","HueNeutral50","display","gridGap","gridTemplateAreas","gridTemplateColumns","gridTemplateRows","height","width","StyledTopNavContainer","WideUiShellContent","appElement","appElementScrollingMode","appSwitcherProps","hasStandardAppContentPadding","hasSideNavProps","initialVisibleSections","onError","console","error","optionalComponents","sideNavProps","topNavProps","uiShellContext","isContentScrolled","sideNavContainerRef","topNavContainerRef","uiShellAppAreaRef","parentContainerRef","paddingMode","uiShellResizableRefs","ref","children","banners","includes","fallback","appIcons","isLoading","selectedAppName","sideNavItems","hasCustomFooter","sideNavFooter","footerComponent","footerItems","undefined","leftSideComponent","topNavLeftSide","rightSideComponent","topNavRightSide","tabIndex","MemoizedWideUiShellContent","displayName"],"sources":["../../../src/ui-shell/WideUiShellContent.tsx"],"sourcesContent":["/*!\n * Copyright (c) 2024-present, Okta, Inc. and/or its affiliates. All rights reserved.\n * The Okta software accompanied by this notice is provided pursuant to the Apache License, Version 2.0 (the \"License.\")\n *\n * You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0.\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS, WITHOUT\n * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n *\n * See the License for the specific language governing permissions and limitations under the License.\n */\n\nimport styled from \"@emotion/styled\";\nimport { memo, useRef } from \"react\";\nimport { ErrorBoundary } from \"react-error-boundary\";\n\nimport {\n type DesignTokens,\n useOdysseyDesignTokens,\n} from \"../OdysseyDesignTokensContext.js\";\nimport { AppSwitcherAppIconData } from \"./AppSwitcher/AppSwitcherApp.js\";\nimport { AppSwitcher } from \"./AppSwitcher/index.js\";\nimport { InnerAppContainer } from \"./InnerAppContainer.js\";\nimport { SideNav } from \"./SideNav/index.js\";\nimport { TopNav } from \"./TopNav/index.js\";\nimport {\n UiShellContentProps,\n UiShellNavComponentProps,\n} from \"./uiShellContentTypes.js\";\nimport { UiShellColors, useUiShellContext } from \"./UiShellProvider.js\";\nimport { emptySideNavItems } from \"./uiShellSharedConstants.js\";\nimport { useMatchAppElementToUiShellAppArea } from \"./useMatchAppElementToUiShellAppArea.js\";\nimport { useScrollState } from \"./useScrollState.js\";\n\nconst appSwitcherDefaultAppIcons = [] satisfies AppSwitcherAppIconData[];\n\nconst StyledAppContainer = styled(\"div\", {\n shouldForwardProp: (prop) =>\n prop !== \"appBackgroundColor\" && prop !== \"odysseyDesignTokens\",\n})<{\n appBackgroundColor?: UiShellColors[\"appBackgroundColor\"];\n}>(({ appBackgroundColor }) => ({\n backgroundColor: appBackgroundColor,\n gridArea: \"app-content\",\n position: \"relative\",\n}));\n\nconst StyledAppSwitcherContainer = styled(\"div\")({\n gridArea: \"app-switcher\",\n});\n\nconst StyledBannersContainer = styled(\"div\")({\n gridArea: \"banners\",\n});\n\nconst StyledSideNavContainer = styled(\"div\")({\n gridArea: \"side-nav\",\n});\n\nconst StyledShellContainer = styled(\"div\", {\n shouldForwardProp: (prop) => prop !== \"odysseyDesignTokens\",\n})<{\n odysseyDesignTokens: DesignTokens;\n}>(({ odysseyDesignTokens }) => ({\n backgroundColor: odysseyDesignTokens.HueNeutral50,\n display: \"grid\",\n gridGap: 0,\n gridTemplateAreas: `\n \"banners banners banners\"\n \"app-switcher side-nav top-nav\"\n \"app-switcher side-nav app-content\"\n `,\n gridTemplateColumns: \"auto auto 1fr\",\n gridTemplateRows: \"auto auto 1fr\",\n height: \"100vh\",\n width: \"100vw\",\n}));\n\nconst StyledTopNavContainer = styled(\"div\")({\n gridArea: \"top-nav\",\n});\n\nexport type WideUiShellContentProps = UiShellNavComponentProps &\n UiShellContentProps;\n\n/**\n * Our new Unified Platform UI Shell.\n *\n * This includes the top and side navigation as well as the footer and provides a spot for your app to render into.\n *\n * If an error occurs, this will revert to only showing the app.\n */\nconst WideUiShellContent = ({\n appElement,\n appElementScrollingMode,\n appSwitcherProps,\n hasStandardAppContentPadding = true,\n hasSideNavProps,\n initialVisibleSections = [\"TopNav\", \"SideNav\", \"AppSwitcher\"],\n onError = console.error,\n optionalComponents,\n sideNavProps,\n topNavProps,\n}: WideUiShellContentProps) => {\n const odysseyDesignTokens = useOdysseyDesignTokens();\n const uiShellContext = useUiShellContext();\n\n const { isContentScrolled } = useScrollState(appElement);\n\n const sideNavContainerRef = useRef<HTMLDivElement>(null);\n const topNavContainerRef = useRef<HTMLDivElement>(null);\n const uiShellAppAreaRef = useRef<HTMLDivElement>(null);\n\n const { parentContainerRef } = useMatchAppElementToUiShellAppArea({\n appElement,\n appElementScrollingMode,\n paddingMode: hasStandardAppContentPadding ? \"comfortable\" : \"none\",\n uiShellAppAreaRef,\n uiShellResizableRefs: [\n sideNavContainerRef,\n topNavContainerRef,\n uiShellAppAreaRef,\n ],\n });\n\n return (\n <StyledShellContainer\n odysseyDesignTokens={odysseyDesignTokens}\n ref={parentContainerRef}\n >\n <StyledBannersContainer>\n {optionalComponents?.banners}\n </StyledBannersContainer>\n\n <StyledAppSwitcherContainer>\n {\n /* If AppSwitcher should be initially visible and we have not yet received props, render AppSwitcher in the loading state */\n initialVisibleSections?.includes(\"AppSwitcher\") &&\n !appSwitcherProps && (\n <ErrorBoundary fallback={null} onError={onError}>\n <AppSwitcher\n appIcons={appSwitcherDefaultAppIcons}\n isLoading\n selectedAppName=\"\"\n />\n </ErrorBoundary>\n )\n }\n\n {appSwitcherProps && (\n <ErrorBoundary fallback={null} onError={onError}>\n <AppSwitcher {...appSwitcherProps} />\n </ErrorBoundary>\n )}\n </StyledAppSwitcherContainer>\n\n <StyledSideNavContainer ref={sideNavContainerRef}>\n {\n /* If SideNav should be initially visible and we have not yet received props, render SideNav with minimal inputs */\n initialVisibleSections?.includes(\"SideNav\") && !hasSideNavProps && (\n <ErrorBoundary fallback={null} onError={onError}>\n <SideNav isLoading sideNavItems={emptySideNavItems} />\n </ErrorBoundary>\n )\n }\n\n {hasSideNavProps && sideNavProps && (\n <ErrorBoundary fallback={null} onError={onError}>\n <SideNav\n {...{\n ...sideNavProps,\n ...(sideNavProps.hasCustomFooter &&\n optionalComponents?.sideNavFooter\n ? {\n footerComponent: optionalComponents.sideNavFooter,\n footerItems: undefined,\n hasCustomFooter: sideNavProps.hasCustomFooter,\n }\n : {\n footerItems: sideNavProps.footerItems,\n hasCustomFooter: false,\n }),\n }}\n />\n </ErrorBoundary>\n )}\n </StyledSideNavContainer>\n\n <StyledTopNavContainer ref={topNavContainerRef}>\n {\n /* If TopNav should be initially visible and we have not yet received props, render Topnav with minimal inputs */\n initialVisibleSections?.includes(\"TopNav\") &&\n topNavProps === undefined && (\n <ErrorBoundary fallback={null} onError={onError}>\n <TopNav\n leftSideComponent={optionalComponents?.topNavLeftSide}\n rightSideComponent={optionalComponents?.topNavRightSide}\n />\n </ErrorBoundary>\n )\n }\n\n {topNavProps && (\n <ErrorBoundary fallback={null} onError={onError}>\n <TopNav\n {...topNavProps}\n leftSideComponent={optionalComponents?.topNavLeftSide}\n rightSideComponent={optionalComponents?.topNavRightSide}\n />\n </ErrorBoundary>\n )}\n </StyledTopNavContainer>\n\n <StyledAppContainer\n appBackgroundColor={uiShellContext?.appBackgroundColor}\n ref={uiShellAppAreaRef}\n tabIndex={0}\n >\n <InnerAppContainer isContentScrolled={isContentScrolled} />\n </StyledAppContainer>\n </StyledShellContainer>\n );\n};\n\nconst MemoizedWideUiShellContent = memo(WideUiShellContent);\nMemoizedWideUiShellContent.displayName = \"WideUiShellContent\";\n\nexport { MemoizedWideUiShellContent as WideUiShellContent };\n"],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,OAAOA,MAAM,MAAM,iBAAiB;AACpC,SAASC,IAAI,EAAEC,MAAM,QAAQ,OAAO;AACpC,SAASC,aAAa,QAAQ,sBAAsB;AAEpD,SAEEC,sBAAsB,QACjB,kCAAkC;AAEzC,SAASC,WAAW,QAAQ,wBAAwB;AACpD,SAASC,iBAAiB,QAAQ,wBAAwB;AAC1D,SAASC,OAAO,QAAQ,oBAAoB;AAC5C,SAASC,MAAM,QAAQ,mBAAmB;AAK1C,SAAwBC,iBAAiB,QAAQ,sBAAsB;AACvE,SAASC,iBAAiB,QAAQ,6BAA6B;AAC/D,SAASC,kCAAkC,QAAQ,yCAAyC;AAC5F,SAASC,cAAc,QAAQ,qBAAqB;AAAC,SAAAC,GAAA,IAAAC,IAAA,EAAAC,IAAA,IAAAC,KAAA;AAErD,MAAMC,0BAA0B,GAAG,EAAqC;AAExE,MAAMC,kBAAkB,GAAGlB,MAAM,CAAC,KAAK,EAAE;EACvCmB,iBAAiB,EAAGC,IAAI,IACtBA,IAAI,KAAK,oBAAoB,IAAIA,IAAI,KAAK;AAC9C,CAAC,CAAC,CAEC,CAAC;EAAEC;AAAmB,CAAC,MAAM;EAC9BC,eAAe,EAAED,kBAAkB;EACnCE,QAAQ,EAAE,aAAa;EACvBC,QAAQ,EAAE;AACZ,CAAC,CAAC,CAAC;AAEH,MAAMC,0BAA0B,GAAGzB,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AA,EAC9C/C,IAAA,CAACN,MAAM;UAAA,GACD2C,WAAW;UACfuB,iBAAiB,EAAEzB,kBAAkB,EAAE0B,cAAe;UACtDC,kBAAkB,EAAE3B,kBAAkB,EAAE4B;QAAgB,CACzD;MAAC,CACW,CAChB;IAAA,CACoB,CAAC,EAExB/D,IAAA,CAACI,kBAAkB;MACjBG,kBAAkB,EAAE+B,cAAc,EAAE/B,kBAAmB;MACvDuC,GAAG,EAAEJ,iBAAkB;MACvBsB,QAAQ,EAAE,CAAE;MAAAjB,QAAA,EAEZ/C,IAAA,CAACR,iBAAiB;QAAC+C,iBAAiB,EAAEA;MAAkB,CAAE;IAAC,CACzC,CAAC;EAAA,CACD,CAAC;AAE3B,CAAC;AAED,MAAM0B,0BAA0B,GAAG9E,IAAI,CAACsC,kBAAkB,CAAC;AAC3DwC,0BAA0B,CAACC,WAAW,GAAG,oBAAoB;AAE7D,SAASD,0BAA0B,IAAIxC,kBAAkB","ignoreList":[]}
@@ -11,11 +11,11 @@
11
11
  */
12
12
 
13
13
  import { ErrorBoundary } from "react-error-boundary";
14
+ import { renderReactInWebComponent } from "../web-component/renderReactInWebComponent.js";
14
15
  import { bufferLatest } from "./bufferLatest.js";
15
16
  import { createMessageBus } from "./createMessageBus.js";
16
17
  import { UiShell } from "./UiShell.js";
17
18
  import { uiShellDataAttribute } from "./useHasUiShell.js";
18
- import { renderReactInWebComponent } from "../web-component/renderReactInWebComponent.js";
19
19
  import { jsx as _jsx } from "react/jsx-runtime";
20
20
  export const optionalComponentSlotNames = {
21
21
  banners: "banners",
@@ -74,11 +74,11 @@ export const renderUiShell = ({
74
74
  }),
75
75
  onError: onError,
76
76
  children: _jsx(UiShell, {
77
- breakpointConfig: breakpointConfig,
78
77
  appBackgroundColor: appBackgroundColor,
79
78
  appBackgroundContrastMode: appBackgroundContrastMode,
80
79
  appElement: appElement,
81
80
  appElementScrollingMode: appElementScrollingMode,
81
+ breakpointConfig: breakpointConfig,
82
82
  closeSideNavMenu: closeSideNavMenu,
83
83
  hasStandardAppContentPadding: hasStandardAppContentPadding,
84
84
  initialVisibleSections: initialVisibleSections,
@@ -1 +1 @@
1
- {"version":3,"file":"renderUiShell.js","names":["ErrorBoundary","bufferLatest","createMessageBus","UiShell","uiShellDataAttribute","renderReactInWebComponent","jsx","_jsx","optionalComponentSlotNames","banners","rightSideMenu","sideNavFooter","topNavLeftSide","topNavRightSide","renderUiShell","appBackgroundColor","appBackgroundContrastMode","appElement","providedAppElement","appElementScrollingMode","breakpointConfig","hasStandardAppContentPadding","initialVisibleSections","onError","console","error","onRender","parentElement","sideNavBackgroundColor","sideNavBackgroundContrastColor","topNavBackgroundColor","document","createElement","setAttribute","publish","publishPropChanges","subscribe","subscribeToPropChanges","publishSubscriptionCreated","subscribeToReactAppSubscribed","publishAfterReactAppReadyForProps","closeRightSideMenu","subscribeToCloseRightSideMenu","closeSideNavMenu","subscribeToCloseSideNavMenu","slottedElements","Object","fromEntries","entries","map","optionalComponentKey","slotName","element","webComponentChildren","values","uiShellElement","getReactComponent","reactRootElements","fallback","children","onSubscriptionCreated","optionalComponents","name","uiShellAppElement","appRootElement","uiShellStylesElement","stylesRootElement","webComponentParentElement","unsubscribeFromUnifiedUiShellRendered","setComponentProps","appendChild"],"sources":["../../../src/ui-shell/renderUiShell.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 { type SetStateAction } from \"react\";\nimport { ErrorBoundary } from \"react-error-boundary\";\n\nimport { bufferLatest } from \"./bufferLatest.js\";\nimport { createMessageBus, PublishMessage } from \"./createMessageBus.js\";\nimport { UiShell, UiShellProps } from \"./UiShell.js\";\nimport { UiShellNavComponentProps } from \"./uiShellContentTypes.js\";\nimport { uiShellDataAttribute } from \"./useHasUiShell.js\";\nimport { renderReactInWebComponent } from \"../web-component/renderReactInWebComponent.js\";\n\nexport const optionalComponentSlotNames: Record<\n keyof Required<UiShellProps>[\"optionalComponents\"],\n string\n> = {\n banners: \"banners\",\n rightSideMenu: \"right-side-menu\",\n sideNavFooter: \"side-nav-footer\",\n topNavLeftSide: \"top-nav-left-side\",\n topNavRightSide: \"top-nav-right-side\",\n};\n\nexport type SlottedElements = Record<\n keyof Required<UiShellProps>[\"optionalComponents\"],\n HTMLDivElement\n>;\n\nexport type RenderedUiShell = {\n closeRightSideMenu: PublishMessage<void>;\n closeSideNavMenu: PublishMessage<void>;\n setComponentProps: ReturnType<\n typeof bufferLatest<SetStateAction<UiShellNavComponentProps>>\n >;\n slottedElements: SlottedElements;\n uiShellElement: ReturnType<typeof renderReactInWebComponent>;\n} & Partial<Pick<UiShellProps, \"appElement\">>;\n\n/**\n * This function renders UI Shell in a web component.\n * This function is agnostic to the UI framework for your app is using. Your application can be another web component, a React app, or even vanilla HTML.\n *\n * **All styles are self-contained.** Even though your application visually renders as children of the web component, its within the global `document` scope, not the web component's `ShadowRoot`. That means any global styles will not affect UI Shell but will affect your application.\n *\n * It places your app's root element in a web component <slot> and ensures it remains rendered in the event of a UI Shell error.\n * It also provides you with other elements fitted to slots in the web component. **In React, you can portal to these components.**\n */\nexport const renderUiShell = ({\n appBackgroundColor,\n appBackgroundContrastMode,\n appElement: providedAppElement,\n appElementScrollingMode,\n breakpointConfig,\n hasStandardAppContentPadding,\n initialVisibleSections,\n onError = console.error,\n onRender,\n parentElement,\n sideNavBackgroundColor,\n sideNavBackgroundContrastColor,\n topNavBackgroundColor,\n}: {\n /**\n * Notifies when a React rendering error occurs. This could be useful for logging, reporting priority 0 issues, and recovering UI Shell when errors occur.\n */\n onError?: () => void;\n /**\n * Notify once when React has rendered UI Shell the first time.\n */\n onRender?: (renderedUiShell: RenderedUiShell) => void;\n /**\n * HTML element used as the container for UI Shell and the App. They're siblings inside this element.\n */\n parentElement: HTMLElement;\n} & Pick<\n UiShellProps,\n | \"appBackgroundColor\"\n | \"appBackgroundContrastMode\"\n | \"appElementScrollingMode\"\n | \"breakpointConfig\"\n | \"hasStandardAppContentPadding\"\n | \"initialVisibleSections\"\n | \"sideNavBackgroundColor\"\n | \"sideNavBackgroundContrastColor\"\n | \"topNavBackgroundColor\"\n> &\n Partial<Pick<UiShellProps, \"appElement\">>) => {\n const appElement = providedAppElement || document.createElement(\"div\");\n\n // Add this attribute so `PageTemplate` and potentially other components will know if they're in UI Shell with special padding already available.\n parentElement.setAttribute(uiShellDataAttribute, \"\");\n\n const { publish: publishPropChanges, subscribe: subscribeToPropChanges } =\n createMessageBus<SetStateAction<UiShellNavComponentProps>>();\n\n const {\n publish: publishSubscriptionCreated,\n subscribe: subscribeToReactAppSubscribed,\n } = createMessageBus();\n\n const publishAfterReactAppReadyForProps = bufferLatest({\n publish: publishPropChanges,\n subscribe: subscribeToReactAppSubscribed,\n });\n\n const {\n publish: closeRightSideMenu,\n subscribe: subscribeToCloseRightSideMenu,\n } = createMessageBus();\n\n const { publish: closeSideNavMenu, subscribe: subscribeToCloseSideNavMenu } =\n createMessageBus();\n\n const slottedElements = Object.fromEntries(\n Object.entries(optionalComponentSlotNames).map(\n ([optionalComponentKey, slotName]) => {\n const element = document.createElement(\"div\");\n\n element.setAttribute(\"slot\", slotName);\n\n return [optionalComponentKey, element];\n },\n ),\n ) as SlottedElements;\n\n const webComponentChildren = Object.values(slottedElements);\n\n const uiShellElement = renderReactInWebComponent({\n getReactComponent: (reactRootElements) => (\n <ErrorBoundary fallback={<div data-error />} onError={onError}>\n <UiShell\n breakpointConfig={breakpointConfig}\n appBackgroundColor={appBackgroundColor}\n appBackgroundContrastMode={appBackgroundContrastMode}\n appElement={appElement}\n appElementScrollingMode={appElementScrollingMode}\n closeSideNavMenu={closeSideNavMenu}\n hasStandardAppContentPadding={hasStandardAppContentPadding}\n initialVisibleSections={initialVisibleSections}\n onError={onError}\n onSubscriptionCreated={publishSubscriptionCreated}\n // `optionalComponents` doesn't need to be memoized because gets passed in once, and this isn't a React component.\n optionalComponents={Object.fromEntries(\n Object.entries(optionalComponentSlotNames).map(\n ([optionalComponentKey, slotName]) => [\n optionalComponentKey,\n <slot name={slotName} />,\n ],\n ),\n )}\n sideNavBackgroundColor={sideNavBackgroundColor}\n sideNavBackgroundContrastColor={sideNavBackgroundContrastColor}\n subscribeToCloseRightSideMenu={subscribeToCloseRightSideMenu}\n subscribeToCloseSideNavMenu={subscribeToCloseSideNavMenu}\n subscribeToPropChanges={subscribeToPropChanges}\n topNavBackgroundColor={topNavBackgroundColor}\n uiShellAppElement={reactRootElements.appRootElement}\n uiShellStylesElement={reactRootElements.stylesRootElement}\n />\n </ErrorBoundary>\n ),\n webComponentChildren,\n webComponentParentElement: parentElement,\n });\n\n const unsubscribeFromUnifiedUiShellRendered = subscribeToReactAppSubscribed(\n () => {\n unsubscribeFromUnifiedUiShellRendered();\n\n onRender?.({\n appElement,\n closeRightSideMenu,\n closeSideNavMenu,\n setComponentProps: publishAfterReactAppReadyForProps,\n slottedElements,\n uiShellElement,\n });\n },\n );\n\n parentElement.appendChild(appElement);\n\n return {\n appElement,\n closeRightSideMenu,\n closeSideNavMenu,\n setComponentProps: publishAfterReactAppReadyForProps,\n slottedElements,\n uiShellElement,\n };\n};\n"],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAGA,SAASA,aAAa,QAAQ,sBAAsB;AAEpD,SAASC,YAAY,QAAQ,mBAAmB;AAChD,SAASC,gBAAgB,QAAwB,uBAAuB;AACxE,SAASC,OAAO,QAAsB,cAAc;AAEpD,SAASC,oBAAoB,QAAQ,oBAAoB;AACzD,SAASC,yBAAyB,QAAQ,+CAA+C;AAAC,SAAAC,GAAA,IAAA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,EAAEA,2BAA4B;QACzDP,sBAAsB,EAAEA,sBAAuB;QAC/CP,qBAAqB,EAAEA,qBAAsB;QAC7CiC,iBAAiB,EAAEN,iBAAiB,CAACO,cAAe;QACpDC,oBAAoB,EAAER,iBAAiB,CAACS;MAAkB,CAC3D;IAAC,CACW,CAChB;IACDb,oBAAoB;IACpBc,yBAAyB,EAAExC;EAC7B,CAAC,CAAC;EAEF,MAAMyC,qCAAqC,GAAG7B,6BAA6B,CACzE,MAAM;IACJ6B,qCAAqC,CAAC,CAAC;IAEvC1C,QAAQ,GAAG;MACTT,UAAU;MACVwB,kBAAkB;MAClBE,gBAAgB;MAChB0B,iBAAiB,EAAE7B,iCAAiC;MACpDK,eAAe;MACfU;IACF,CAAC,CAAC;EACJ,CACF,CAAC;EAED5B,aAAa,CAAC2C,WAAW,CAACrD,UAAU,CAAC;EAErC,OAAO;IACLA,UAAU;IACVwB,kBAAkB;IAClBE,gBAAgB;IAChB0B,iBAAiB,EAAE7B,iCAAiC;IACpDK,eAAe;IACfU;EACF,CAAC;AACH,CAAC","ignoreList":[]}
1
+ {"version":3,"file":"renderUiShell.js","names":["ErrorBoundary","renderReactInWebComponent","bufferLatest","createMessageBus","UiShell","uiShellDataAttribute","jsx","_jsx","optionalComponentSlotNames","banners","rightSideMenu","sideNavFooter","topNavLeftSide","topNavRightSide","renderUiShell","appBackgroundColor","appBackgroundContrastMode","appElement","providedAppElement","appElementScrollingMode","breakpointConfig","hasStandardAppContentPadding","initialVisibleSections","onError","console","error","onRender","parentElement","sideNavBackgroundColor","sideNavBackgroundContrastColor","topNavBackgroundColor","document","createElement","setAttribute","publish","publishPropChanges","subscribe","subscribeToPropChanges","publishSubscriptionCreated","subscribeToReactAppSubscribed","publishAfterReactAppReadyForProps","closeRightSideMenu","subscribeToCloseRightSideMenu","closeSideNavMenu","subscribeToCloseSideNavMenu","slottedElements","Object","fromEntries","entries","map","optionalComponentKey","slotName","element","webComponentChildren","values","uiShellElement","getReactComponent","reactRootElements","fallback","children","onSubscriptionCreated","optionalComponents","name","uiShellAppElement","appRootElement","uiShellStylesElement","stylesRootElement","webComponentParentElement","unsubscribeFromUnifiedUiShellRendered","setComponentProps","appendChild"],"sources":["../../../src/ui-shell/renderUiShell.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 { type SetStateAction } from \"react\";\nimport { ErrorBoundary } from \"react-error-boundary\";\n\nimport { renderReactInWebComponent } from \"../web-component/renderReactInWebComponent.js\";\nimport { bufferLatest } from \"./bufferLatest.js\";\nimport { createMessageBus, PublishMessage } from \"./createMessageBus.js\";\nimport { UiShell, UiShellProps } from \"./UiShell.js\";\nimport { UiShellNavComponentProps } from \"./uiShellContentTypes.js\";\nimport { uiShellDataAttribute } from \"./useHasUiShell.js\";\n\nexport const optionalComponentSlotNames: Record<\n keyof Required<UiShellProps>[\"optionalComponents\"],\n string\n> = {\n banners: \"banners\",\n rightSideMenu: \"right-side-menu\",\n sideNavFooter: \"side-nav-footer\",\n topNavLeftSide: \"top-nav-left-side\",\n topNavRightSide: \"top-nav-right-side\",\n};\n\nexport type SlottedElements = Record<\n keyof Required<UiShellProps>[\"optionalComponents\"],\n HTMLDivElement\n>;\n\nexport type RenderedUiShell = {\n closeRightSideMenu: PublishMessage<void>;\n closeSideNavMenu: PublishMessage<void>;\n setComponentProps: ReturnType<\n typeof bufferLatest<SetStateAction<UiShellNavComponentProps>>\n >;\n slottedElements: SlottedElements;\n uiShellElement: ReturnType<typeof renderReactInWebComponent>;\n} & Partial<Pick<UiShellProps, \"appElement\">>;\n\n/**\n * This function renders UI Shell in a web component.\n * This function is agnostic to the UI framework for your app is using. Your application can be another web component, a React app, or even vanilla HTML.\n *\n * **All styles are self-contained.** Even though your application visually renders as children of the web component, its within the global `document` scope, not the web component's `ShadowRoot`. That means any global styles will not affect UI Shell but will affect your application.\n *\n * It places your app's root element in a web component <slot> and ensures it remains rendered in the event of a UI Shell error.\n * It also provides you with other elements fitted to slots in the web component. **In React, you can portal to these components.**\n */\nexport const renderUiShell = ({\n appBackgroundColor,\n appBackgroundContrastMode,\n appElement: providedAppElement,\n appElementScrollingMode,\n breakpointConfig,\n hasStandardAppContentPadding,\n initialVisibleSections,\n onError = console.error,\n onRender,\n parentElement,\n sideNavBackgroundColor,\n sideNavBackgroundContrastColor,\n topNavBackgroundColor,\n}: {\n /**\n * Notifies when a React rendering error occurs. This could be useful for logging, reporting priority 0 issues, and recovering UI Shell when errors occur.\n */\n onError?: () => void;\n /**\n * Notify once when React has rendered UI Shell the first time.\n */\n onRender?: (renderedUiShell: RenderedUiShell) => void;\n /**\n * HTML element used as the container for UI Shell and the App. They're siblings inside this element.\n */\n parentElement: HTMLElement;\n} & Pick<\n UiShellProps,\n | \"appBackgroundColor\"\n | \"appBackgroundContrastMode\"\n | \"appElementScrollingMode\"\n | \"breakpointConfig\"\n | \"hasStandardAppContentPadding\"\n | \"initialVisibleSections\"\n | \"sideNavBackgroundColor\"\n | \"sideNavBackgroundContrastColor\"\n | \"topNavBackgroundColor\"\n> &\n Partial<Pick<UiShellProps, \"appElement\">>) => {\n const appElement = providedAppElement || document.createElement(\"div\");\n\n // Add this attribute so `PageTemplate` and potentially other components will know if they're in UI Shell with special padding already available.\n parentElement.setAttribute(uiShellDataAttribute, \"\");\n\n const { publish: publishPropChanges, subscribe: subscribeToPropChanges } =\n createMessageBus<SetStateAction<UiShellNavComponentProps>>();\n\n const {\n publish: publishSubscriptionCreated,\n subscribe: subscribeToReactAppSubscribed,\n } = createMessageBus();\n\n const publishAfterReactAppReadyForProps = bufferLatest({\n publish: publishPropChanges,\n subscribe: subscribeToReactAppSubscribed,\n });\n\n const {\n publish: closeRightSideMenu,\n subscribe: subscribeToCloseRightSideMenu,\n } = createMessageBus();\n\n const { publish: closeSideNavMenu, subscribe: subscribeToCloseSideNavMenu } =\n createMessageBus();\n\n const slottedElements = Object.fromEntries(\n Object.entries(optionalComponentSlotNames).map(\n ([optionalComponentKey, slotName]) => {\n const element = document.createElement(\"div\");\n\n element.setAttribute(\"slot\", slotName);\n\n return [optionalComponentKey, element];\n },\n ),\n ) as SlottedElements;\n\n const webComponentChildren = Object.values(slottedElements);\n\n const uiShellElement = renderReactInWebComponent({\n getReactComponent: (reactRootElements) => (\n <ErrorBoundary fallback={<div data-error />} onError={onError}>\n <UiShell\n appBackgroundColor={appBackgroundColor}\n appBackgroundContrastMode={appBackgroundContrastMode}\n appElement={appElement}\n appElementScrollingMode={appElementScrollingMode}\n breakpointConfig={breakpointConfig}\n closeSideNavMenu={closeSideNavMenu}\n hasStandardAppContentPadding={hasStandardAppContentPadding}\n initialVisibleSections={initialVisibleSections}\n onError={onError}\n onSubscriptionCreated={publishSubscriptionCreated}\n // `optionalComponents` doesn't need to be memoized because gets passed in once, and this isn't a React component.\n optionalComponents={Object.fromEntries(\n Object.entries(optionalComponentSlotNames).map(\n ([optionalComponentKey, slotName]) => [\n optionalComponentKey,\n <slot name={slotName} />,\n ],\n ),\n )}\n sideNavBackgroundColor={sideNavBackgroundColor}\n sideNavBackgroundContrastColor={sideNavBackgroundContrastColor}\n subscribeToCloseRightSideMenu={subscribeToCloseRightSideMenu}\n subscribeToCloseSideNavMenu={subscribeToCloseSideNavMenu}\n subscribeToPropChanges={subscribeToPropChanges}\n topNavBackgroundColor={topNavBackgroundColor}\n uiShellAppElement={reactRootElements.appRootElement}\n uiShellStylesElement={reactRootElements.stylesRootElement}\n />\n </ErrorBoundary>\n ),\n webComponentChildren,\n webComponentParentElement: parentElement,\n });\n\n const unsubscribeFromUnifiedUiShellRendered = subscribeToReactAppSubscribed(\n () => {\n unsubscribeFromUnifiedUiShellRendered();\n\n onRender?.({\n appElement,\n closeRightSideMenu,\n closeSideNavMenu,\n setComponentProps: publishAfterReactAppReadyForProps,\n slottedElements,\n uiShellElement,\n });\n },\n );\n\n parentElement.appendChild(appElement);\n\n return {\n appElement,\n closeRightSideMenu,\n closeSideNavMenu,\n setComponentProps: publishAfterReactAppReadyForProps,\n slottedElements,\n uiShellElement,\n };\n};\n"],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAGA,SAASA,aAAa,QAAQ,sBAAsB;AAEpD,SAASC,yBAAyB,QAAQ,+CAA+C;AACzF,SAASC,YAAY,QAAQ,mBAAmB;AAChD,SAASC,gBAAgB,QAAwB,uBAAuB;AACxE,SAASC,OAAO,QAAsB,cAAc;AAEpD,SAASC,oBAAoB,QAAQ,oBAAoB;AAAC,SAAAC,GAAA,IAAAC,IAAA;AAE1D,OAAO,MAAMC,0BAGZ,GAAG;EACFC,OAAO,EAAE,SAAS;EAClBC,aAAa,EAAE,iBAAiB;EAChCC,aAAa,EAAE,iBAAiB;EAChCC,cAAc,EAAE,mBAAmB;EACnCC,eAAe,EAAE;AACnB,CAAC;AA0BD,OAAO,MAAMC,aAAa,GAAGA,CAAC;EAC5BC,kBAAkB;EAClBC,yBAAyB;EACzBC,UAAU,EAAEC,kBAAkB;EAC9BC,uBAAuB;EACvBC,gBAAgB;EAChBC,4BAA4B;EAC5BC,sBAAsB;EACtBC,OAAO,GAAGC,OAAO,CAACC,KAAK;EACvBC,QAAQ;EACRC,aAAa;EACbC,sBAAsB;EACtBC,8BAA8B;EAC9BC;AA0BwC,CAAC,KAAK;EAC9C,MAAMb,UAAU,GAAGC,kBAAkB,IAAIa,QAAQ,CAACC,aAAa,CAAC,KAAK,CAAC;EAGtEL,aAAa,CAACM,YAAY,CAAC5B,oBAAoB,EAAE,EAAE,CAAC;EAEpD,MAAM;IAAE6B,OAAO,EAAEC,kB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,CAAC","ignoreList":[]}
@@ -10,7 +10,7 @@
10
10
  * See the License for the specific language governing permissions and limitations under the License.
11
11
  */
12
12
 
13
- import { useEffect, useState, useRef, useCallback } from "react";
13
+ import { useCallback, useEffect, useRef, useState } from "react";
14
14
  import { getLogicalBoundaries } from "../getLogicalBoundaries.js";
15
15
  const defaultEdgeState = {
16
16
  isAtContainerInlineStart: null,
@@ -1 +1 @@
1
- {"version":3,"file":"useElementAtContainerEdge.js","names":["useEffect","useState","useRef","useCallback","getLogicalBoundaries","defaultEdgeState","isAtContainerInlineStart","isAtContainerInlineEnd","isAtContainerBlockStart","isAtContainerBlockEnd","useElementAtContainerEdge","containerElement","element","monitoringElement","edgeState","setEdgeState","requestedAnimationFrameIdRef","resolvedMonitoringElement","parentElement","updateEdgeState","cancelAnimationFrame","current","requestAnimationFrame","elementBoundaries","containerBoundaries","document","body","left","right","top","bottom","mutationObserver","MutationObserver","observe","attributes","attributeFilter","childList","subtree","window","addEventListener","disconnect","removeEventListener"],"sources":["../../../src/ui-shell/useElementAtContainerEdge.ts"],"sourcesContent":["/*!\n * Copyright (c) 2025-present, Okta, Inc. and/or its affiliates. All rights reserved.\n * The Okta software accompanied by this notice is provided pursuant to the Apache License, Version 2.0 (the \"License.\")\n *\n * You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0.\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS, WITHOUT\n * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n *\n * See the License for the specific language governing permissions and limitations under the License.\n */\n\nimport { useEffect, useState, useRef, useCallback } from \"react\";\nimport { getLogicalBoundaries } from \"../getLogicalBoundaries.js\";\n\nconst defaultEdgeState = {\n isAtContainerInlineStart: null,\n isAtContainerInlineEnd: null,\n isAtContainerBlockStart: null,\n isAtContainerBlockEnd: null,\n};\n\ntype EdgeState =\n | {\n isAtContainerInlineStart: null;\n isAtContainerInlineEnd: null;\n isAtContainerBlockStart: null;\n isAtContainerBlockEnd: null;\n }\n | {\n isAtContainerInlineStart: boolean;\n isAtContainerInlineEnd: boolean;\n isAtContainerBlockStart: boolean;\n isAtContainerBlockEnd: boolean;\n };\n\n/**\n * Determines if an element is at the edge of its container.\n *\n * If `element` is `null`, all returned edge state values will be `null`.\n */\nexport function useElementAtContainerEdge({\n containerElement,\n element,\n monitoringElement,\n}: {\n /**\n * The container element against which the edges are checked. If not provided, it defaults to the document body.\n */\n containerElement?: HTMLElement | null;\n /**\n * The element whose edges you want to track.\n */\n element?: HTMLElement | null;\n /**\n * The element whose mutations you want to track. If not provided, it defaults to the parent element of the `element`.\n */\n monitoringElement?: HTMLElement | null;\n}) {\n const [edgeState, setEdgeState] = useState<EdgeState>(defaultEdgeState);\n\n const requestedAnimationFrameIdRef = useRef(0);\n\n const resolvedMonitoringElement = monitoringElement ?? element?.parentElement;\n\n // will check the position of the element and update state accordingly\n const updateEdgeState = useCallback(() => {\n cancelAnimationFrame(requestedAnimationFrameIdRef.current);\n\n requestedAnimationFrameIdRef.current = requestAnimationFrame(() => {\n if (element) {\n const elementBoundaries = getLogicalBoundaries(element);\n const containerBoundaries = getLogicalBoundaries(\n containerElement ?? document.body,\n );\n\n setEdgeState({\n isAtContainerInlineStart:\n elementBoundaries.left === containerBoundaries.left,\n isAtContainerInlineEnd:\n elementBoundaries.right === containerBoundaries.right,\n isAtContainerBlockStart:\n elementBoundaries.top === containerBoundaries.top,\n isAtContainerBlockEnd:\n elementBoundaries.bottom === containerBoundaries.bottom,\n });\n } else {\n setEdgeState(defaultEdgeState);\n }\n });\n }, [containerElement, element]);\n\n useEffect(() => {\n // Listen for mutations that might affect position\n const mutationObserver = new MutationObserver(() => {\n updateEdgeState();\n });\n\n if (resolvedMonitoringElement) {\n mutationObserver.observe(resolvedMonitoringElement, {\n attributes: true,\n attributeFilter: [\"style\"],\n childList: true,\n subtree: true,\n });\n }\n\n // Listen for window resize, which can affect position\n window.addEventListener(\"resize\", updateEdgeState);\n\n // Initial check\n updateEdgeState();\n\n // cleanup function to remove listeners and observer\n return () => {\n cancelAnimationFrame(requestedAnimationFrameIdRef.current);\n mutationObserver.disconnect();\n window.removeEventListener(\"resize\", updateEdgeState);\n };\n }, [resolvedMonitoringElement, updateEdgeState]);\n\n return edgeState;\n}\n"],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,SAASA,SAAS,EAAEC,QAAQ,EAAEC,MAAM,EAAEC,WAAW,QAAQ,OAAO;AAChE,SAASC,oBAAoB,QAAQ,4BAA4B;AAEjE,MAAMC,gBAAgB,GAAG;EACvBC,wBAAwB,EAAE,IAAI;EAC9BC,sBAAsB,EAAE,IAAI;EAC5BC,uBAAuB,EAAE,IAAI;EAC7BC,qBAAqB,EAAE;AACzB,CAAC;AAqBD,OAAO,SAASC,yBAAyBA,CAAC;EACxCC,gBAAgB;EAChBC,OAAO;EACPC;AAcF,CAAC,EAAE;EACD,MAAM,CAACC,SAAS,EAAEC,YAAY,CAAC,GAAGd,QAAQ,CAAYI,gBAAgB,CAAC;EAEvE,MAAMW,4BAA4B,GAAGd,MAAM,CAAC,CAAC,CAAC;EAE9C,MAAMe,yBAAyB,GAAGJ,iBAAiB,IAAID,OAAO,EAAEM,aAAa;EAG7E,MAAMC,eAAe,GAAGhB,WAAW,CAAC,MAAM;IACxCiB,oBAAoB,CAACJ,4BAA4B,CAACK,OAAO,CAAC;IAE1DL,4BAA4B,CAACK,OAAO,GAAGC,qBAAqB,CAAC,MAAM;MACjE,IAAIV,OAAO,EAAE;QACX,MAAMW,iBAAiB,GAAGnB,oBAAoB,CAACQ,OAAO,CAAC;QACvD,MAAMY,mBAAmB,GAAGpB,oBAAoB,CAC9CO,gBAAgB,IAAIc,QAAQ,CAACC,IAC/B,CAAC;QAEDX,YAAY,CAAC;UACXT,wBAAwB,EACtBiB,iBAAiB,CAACI,IAAI,KAAKH,mBAAmB,CAACG,IAAI;UACrDpB,sBAAsB,EACpBgB,iBAAiB,CAACK,KAAK,KAAKJ,mBAAmB,CAACI,KAAK;UACvDpB,uBAAuB,EACrBe,iBAAiB,CAACM,GAAG,KAAKL,mBAAmB,CAACK,GAAG;UACnDpB,qBAAqB,EACnBc,iBAAiB,CAACO,MAAM,KAAKN,mBAAmB,CAACM;QACrD,CAAC,CAAC;MACJ,CAAC,MAAM;QACLf,YAAY,CAACV,gBAAgB,CAAC;MAChC;IACF,CAAC,CAAC;EACJ,CAAC,EAAE,CAACM,gBAAgB,EAAEC,OAAO,CAAC,CAAC;EAE/BZ,SAAS,CAAC,MAAM;IAEd,MAAM+B,gBAAgB,GAAG,IAAIC,gBAAgB,CAAC,MAAM;MAClDb,eAAe,CAAC,CAAC;IACnB,CAAC,CAAC;IAEF,IAAIF,yBAAyB,EAAE;MAC7Bc,gBAAgB,CAACE,OAAO,CAAChB,yBAAyB,EAAE;QAClDiB,UAAU,EAAE,IAAI;QAChBC,eAAe,EAAE,CAAC,OAAO,CAAC;QAC1BC,SAAS,EAAE,IAAI;QACfC,OAAO,EAAE;MACX,CAAC,CAAC;IACJ;IAGAC,MAAM,CAACC,gBAAgB,CAAC,QAAQ,EAAEpB,eAAe,CAAC;IAGlDA,eAAe,CAAC,CAAC;IAGjB,OAAO,MAAM;MACXC,oBAAoB,CAACJ,4BAA4B,CAACK,OAAO,CAAC;MAC1DU,gBAAgB,CAACS,UAAU,CAAC,CAAC;MAC7BF,MAAM,CAACG,mBAAmB,CAAC,QAAQ,EAAEtB,eAAe,CAAC;IACvD,CAAC;EACH,CAAC,EAAE,CAACF,yBAAyB,EAAEE,eAAe,CAAC,CAAC;EAEhD,OAAOL,SAAS;AAClB","ignoreList":[]}
1
+ {"version":3,"file":"useElementAtContainerEdge.js","names":["useCallback","useEffect","useRef","useState","getLogicalBoundaries","defaultEdgeState","isAtContainerInlineStart","isAtContainerInlineEnd","isAtContainerBlockStart","isAtContainerBlockEnd","useElementAtContainerEdge","containerElement","element","monitoringElement","edgeState","setEdgeState","requestedAnimationFrameIdRef","resolvedMonitoringElement","parentElement","updateEdgeState","cancelAnimationFrame","current","requestAnimationFrame","elementBoundaries","containerBoundaries","document","body","left","right","top","bottom","mutationObserver","MutationObserver","observe","attributes","attributeFilter","childList","subtree","window","addEventListener","disconnect","removeEventListener"],"sources":["../../../src/ui-shell/useElementAtContainerEdge.ts"],"sourcesContent":["/*!\n * Copyright (c) 2025-present, Okta, Inc. and/or its affiliates. All rights reserved.\n * The Okta software accompanied by this notice is provided pursuant to the Apache License, Version 2.0 (the \"License.\")\n *\n * You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0.\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS, WITHOUT\n * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n *\n * See the License for the specific language governing permissions and limitations under the License.\n */\n\nimport { useCallback, useEffect, useRef, useState } from \"react\";\n\nimport { getLogicalBoundaries } from \"../getLogicalBoundaries.js\";\n\nconst defaultEdgeState = {\n isAtContainerInlineStart: null,\n isAtContainerInlineEnd: null,\n isAtContainerBlockStart: null,\n isAtContainerBlockEnd: null,\n};\n\ntype EdgeState =\n | {\n isAtContainerBlockEnd: null;\n isAtContainerBlockStart: null;\n isAtContainerInlineEnd: null;\n isAtContainerInlineStart: null;\n }\n | {\n isAtContainerBlockEnd: boolean;\n isAtContainerBlockStart: boolean;\n isAtContainerInlineEnd: boolean;\n isAtContainerInlineStart: boolean;\n };\n\n/**\n * Determines if an element is at the edge of its container.\n *\n * If `element` is `null`, all returned edge state values will be `null`.\n */\nexport function useElementAtContainerEdge({\n containerElement,\n element,\n monitoringElement,\n}: {\n /**\n * The container element against which the edges are checked. If not provided, it defaults to the document body.\n */\n containerElement?: HTMLElement | null;\n /**\n * The element whose edges you want to track.\n */\n element?: HTMLElement | null;\n /**\n * The element whose mutations you want to track. If not provided, it defaults to the parent element of the `element`.\n */\n monitoringElement?: HTMLElement | null;\n}) {\n const [edgeState, setEdgeState] = useState<EdgeState>(defaultEdgeState);\n\n const requestedAnimationFrameIdRef = useRef(0);\n\n const resolvedMonitoringElement = monitoringElement ?? element?.parentElement;\n\n // will check the position of the element and update state accordingly\n const updateEdgeState = useCallback(() => {\n cancelAnimationFrame(requestedAnimationFrameIdRef.current);\n\n requestedAnimationFrameIdRef.current = requestAnimationFrame(() => {\n if (element) {\n const elementBoundaries = getLogicalBoundaries(element);\n const containerBoundaries = getLogicalBoundaries(\n containerElement ?? document.body,\n );\n\n setEdgeState({\n isAtContainerInlineStart:\n elementBoundaries.left === containerBoundaries.left,\n isAtContainerInlineEnd:\n elementBoundaries.right === containerBoundaries.right,\n isAtContainerBlockStart:\n elementBoundaries.top === containerBoundaries.top,\n isAtContainerBlockEnd:\n elementBoundaries.bottom === containerBoundaries.bottom,\n });\n } else {\n setEdgeState(defaultEdgeState);\n }\n });\n }, [containerElement, element]);\n\n useEffect(() => {\n // Listen for mutations that might affect position\n const mutationObserver = new MutationObserver(() => {\n updateEdgeState();\n });\n\n if (resolvedMonitoringElement) {\n mutationObserver.observe(resolvedMonitoringElement, {\n attributes: true,\n attributeFilter: [\"style\"],\n childList: true,\n subtree: true,\n });\n }\n\n // Listen for window resize, which can affect position\n window.addEventListener(\"resize\", updateEdgeState);\n\n // Initial check\n updateEdgeState();\n\n // cleanup function to remove listeners and observer\n return () => {\n cancelAnimationFrame(requestedAnimationFrameIdRef.current);\n mutationObserver.disconnect();\n window.removeEventListener(\"resize\", updateEdgeState);\n };\n }, [resolvedMonitoringElement, updateEdgeState]);\n\n return edgeState;\n}\n"],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,SAASA,WAAW,EAAEC,SAAS,EAAEC,MAAM,EAAEC,QAAQ,QAAQ,OAAO;AAEhE,SAASC,oBAAoB,QAAQ,4BAA4B;AAEjE,MAAMC,gBAAgB,GAAG;EACvBC,wBAAwB,EAAE,IAAI;EAC9BC,sBAAsB,EAAE,IAAI;EAC5BC,uBAAuB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CAAC;IAEF,IAAIF,yBAAyB,EAAE;MAC7Bc,gBAAgB,CAACE,OAAO,CAAChB,yBAAyB,EAAE;QAClDiB,UAAU,EAAE,IAAI;QAChBC,eAAe,EAAE,CAAC,OAAO,CAAC;QAC1BC,SAAS,EAAE,IAAI;QACfC,OAAO,EAAE;MACX,CAAC,CAAC;IACJ;IAGAC,MAAM,CAACC,gBAAgB,CAAC,QAAQ,EAAEpB,eAAe,CAAC;IAGlDA,eAAe,CAAC,CAAC;IAGjB,OAAO,MAAM;MACXC,oBAAoB,CAACJ,4BAA4B,CAACK,OAAO,CAAC;MAC1DU,gBAAgB,CAACS,UAAU,CAAC,CAAC;MAC7BF,MAAM,CAACG,mBAAmB,CAAC,QAAQ,EAAEtB,eAAe,CAAC;IACvD,CAAC;EACH,CAAC,EAAE,CAACF,yBAAyB,EAAEE,eAAe,CAAC,CAAC;EAEhD,OAAOL,SAAS;AAClB","ignoreList":[]}
@@ -1 +1 @@
1
- {"version":3,"file":"useUiShellBreakpoints.js","names":["useMediaQuery","defaultUiShellBreakpointConfig","narrow","medium","wide","adminAppUiShellBreakpoints","useUiShellBreakpoints","breakpointConfig","isNarrowView","isMediumView","isWideView"],"sources":["../../../src/ui-shell/useUiShellBreakpoints.ts"],"sourcesContent":["/*!\n * Copyright (c) 2025-present, Okta, Inc. and/or its affiliates. All rights reserved.\n * The Okta software accompanied by this notice is provided pursuant to the Apache License, Version 2.0 (the \"License.\")\n *\n * You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0.\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS, WITHOUT\n * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n *\n * See the License for the specific language governing permissions and limitations under the License.\n */\n\nimport { useMediaQuery } from \"../theme/useMediaQuery.js\";\n\nexport type UiShellBreakpointConfig = {\n narrow: number;\n medium: number;\n wide: number;\n};\n\nexport const defaultUiShellBreakpointConfig = {\n narrow: 0,\n medium: 600,\n wide: 800,\n} as const satisfies UiShellBreakpointConfig;\n\nexport const adminAppUiShellBreakpoints = {\n narrow: 0,\n medium: 600,\n wide: 1304,\n} as const satisfies UiShellBreakpointConfig;\n\nexport const useUiShellBreakpoints = (\n breakpointConfig: UiShellBreakpointConfig = defaultUiShellBreakpointConfig,\n): keyof UiShellBreakpointConfig | \"none\" => {\n const isNarrowView = useMediaQuery(\n `(min-width: ${breakpointConfig.narrow}px)`,\n );\n\n const isMediumView = useMediaQuery(\n `(min-width: ${breakpointConfig.medium}px)`,\n );\n\n const isWideView = useMediaQuery(`(min-width: ${breakpointConfig.wide}px)`);\n\n if (isWideView) {\n return \"wide\";\n }\n\n if (isMediumView) {\n return \"medium\";\n }\n\n if (isNarrowView) {\n return \"narrow\";\n }\n\n // This is a failsafe in case we don't have any media queries on page load or if media queries were improperly defined (no `0` case). With the default breakpoints, it will never be `\"none\"`.\n return \"none\";\n};\n"],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,SAASA,aAAa,QAAQ,2BAA2B;AAQzD,OAAO,MAAMC,8BAA8B,GAAG;EAC5CC,MAAM,EAAE,CAAC;EACTC,MAAM,EAAE,GAAG;EACXC,IAAI,EAAE;AACR,CAA4C;AAE5C,OAAO,MAAMC,0BAA0B,GAAG;EACxCH,MAAM,EAAE,CAAC;EACTC,MAAM,EAAE,GAAG;EACXC,IAAI,EAAE;AACR,CAA4C;AAE5C,OAAO,MAAME,qBAAqB,GAAGA,CACnCC,gBAAyC,GAAGN,8BAA8B,KAC/B;EAC3C,MAAMO,YAAY,GAAGR,aAAa,CAChC,eAAeO,gBAAgB,CAACL,MAAM,KACxC,CAAC;EAED,MAAMO,YAAY,GAAGT,aAAa,CAChC,eAAeO,gBAAgB,CAACJ,MAAM,KACxC,CAAC;EAED,MAAMO,UAAU,GAAGV,aAAa,CAAC,eAAeO,gBAAgB,CAACH,IAAI,KAAK,CAAC;EAE3E,IAAIM,UAAU,EAAE;IACd,OAAO,MAAM;EACf;EAEA,IAAID,YAAY,EAAE;IAChB,OAAO,QAAQ;EACjB;EAEA,IAAID,YAAY,EAAE;IAChB,OAAO,QAAQ;EACjB;EAGA,OAAO,MAAM;AACf,CAAC","ignoreList":[]}
1
+ {"version":3,"file":"useUiShellBreakpoints.js","names":["useMediaQuery","defaultUiShellBreakpointConfig","narrow","medium","wide","adminAppUiShellBreakpoints","useUiShellBreakpoints","breakpointConfig","isNarrowView","isMediumView","isWideView"],"sources":["../../../src/ui-shell/useUiShellBreakpoints.ts"],"sourcesContent":["/*!\n * Copyright (c) 2025-present, Okta, Inc. and/or its affiliates. All rights reserved.\n * The Okta software accompanied by this notice is provided pursuant to the Apache License, Version 2.0 (the \"License.\")\n *\n * You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0.\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS, WITHOUT\n * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n *\n * See the License for the specific language governing permissions and limitations under the License.\n */\n\nimport { useMediaQuery } from \"../theme/useMediaQuery.js\";\n\nexport type UiShellBreakpointConfig = {\n medium: number;\n narrow: number;\n wide: number;\n};\n\nexport const defaultUiShellBreakpointConfig = {\n narrow: 0,\n medium: 600,\n wide: 800,\n} as const satisfies UiShellBreakpointConfig;\n\nexport const adminAppUiShellBreakpoints = {\n narrow: 0,\n medium: 600,\n wide: 1304,\n} as const satisfies UiShellBreakpointConfig;\n\nexport const useUiShellBreakpoints = (\n breakpointConfig: UiShellBreakpointConfig = defaultUiShellBreakpointConfig,\n): keyof UiShellBreakpointConfig | \"none\" => {\n const isNarrowView = useMediaQuery(\n `(min-width: ${breakpointConfig.narrow}px)`,\n );\n\n const isMediumView = useMediaQuery(\n `(min-width: ${breakpointConfig.medium}px)`,\n );\n\n const isWideView = useMediaQuery(`(min-width: ${breakpointConfig.wide}px)`);\n\n if (isWideView) {\n return \"wide\";\n }\n\n if (isMediumView) {\n return \"medium\";\n }\n\n if (isNarrowView) {\n return \"narrow\";\n }\n\n // This is a failsafe in case we don't have any media queries on page load or if media queries were improperly defined (no `0` case). With the default breakpoints, it will never be `\"none\"`.\n return \"none\";\n};\n"],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,SAASA,aAAa,QAAQ,2BAA2B;AAQzD,OAAO,MAAMC,8BAA8B,GAAG;EAC5CC,MAAM,EAAE,CAAC;EACTC,MAAM,EAAE,GAAG;EACXC,IAAI,EAAE;AACR,CAA4C;AAE5C,OAAO,MAAMC,0BAA0B,GAAG;EACxCH,MAAM,EAAE,CAAC;EACTC,MAAM,EAAE,GAAG;EACXC,IAAI,EAAE;AACR,CAA4C;AAE5C,OAAO,MAAME,qBAAqB,GAAGA,CACnCC,gBAAyC,GAAGN,8BAA8B,KAC/B;EAC3C,MAAMO,YAAY,GAAGR,aAAa,CAChC,eAAeO,gBAAgB,CAACL,MAAM,KACxC,CAAC;EAED,MAAMO,YAAY,GAAGT,aAAa,CAChC,eAAeO,gBAAgB,CAACJ,MAAM,KACxC,CAAC;EAED,MAAMO,UAAU,GAAGV,aAAa,CAAC,eAAeO,gBAAgB,CAACH,IAAI,KAAK,CAAC;EAE3E,IAAIM,UAAU,EAAE;IACd,OAAO,MAAM;EACf;EAEA,IAAID,YAAY,EAAE;IAChB,OAAO,QAAQ;EACjB;EAEA,IAAID,YAAY,EAAE;IAChB,OAAO,QAAQ;EACjB;EAGA,OAAO,MAAM;AACf,CAAC","ignoreList":[]}
@@ -10,10 +10,9 @@ import _InputBase from "@mui/material/InputBase";
10
10
  *
11
11
  * See the License for the specific language governing permissions and limitations under the License.
12
12
  */
13
-
14
13
  import { useCallback, useMemo, useRef } from "react";
15
14
  import { Field } from "./Field.js";
16
- import { ComponentControlledState, useInputValues, getControlState } from "./inputUtils.js";
15
+ import { ComponentControlledState, getControlState, useInputValues } from "./inputUtils.js";
17
16
  import { jsx as _jsx } from "react/jsx-runtime";
18
17
  export const useAutocomplete = ({
19
18
  ariaDescribedBy,
@@ -69,12 +68,12 @@ export const useAutocomplete = ({
69
68
  errorMessageList: errorMessageList,
70
69
  fieldType: "single",
71
70
  hasVisibleLabel: true,
72
- id: InputLabelProps.htmlFor,
73
- isFullWidth: isFullWidth,
74
71
  hint: hint,
75
72
  HintLinkComponent: HintLinkComponent,
76
- label: label,
73
+ id: InputLabelProps.htmlFor,
74
+ isFullWidth: isFullWidth,
77
75
  isOptional: isOptional,
76
+ label: label,
78
77
  renderFieldComponent: ({
79
78
  ariaDescribedBy,
80
79
  id,
@@ -83,14 +82,14 @@ export const useAutocomplete = ({
83
82
  }) => _jsx(_InputBase, {
84
83
  ...params,
85
84
  ...InputProps,
85
+ "aria-describedby": ariaDescribedBy,
86
+ id: id,
86
87
  inputProps: {
87
88
  ...params.inputProps,
88
89
  "aria-errormessage": errorMessageElementId,
89
90
  "aria-labelledby": labelElementId,
90
91
  "data-se": testId
91
92
  },
92
- "aria-describedby": ariaDescribedBy,
93
- id: id,
94
93
  name: nameOverride ?? id,
95
94
  required: !isOptional
96
95
  })
@@ -1 +1 @@
1
- {"version":3,"file":"useAutocomplete.js","names":["useCallback","useMemo","useRef","Field","ComponentControlledState","useInputValues","getControlState","jsx","_jsx","useAutocomplete","ariaDescribedBy","defaultValue","errorMessage","errorMessageList","hasMultipleChoices","hint","HintLinkComponent","inputValue","isFullWidth","isOptional","isVirtualized","isVirtualizedProp","label","name","nameOverride","testId","value","controlledStateRef","controlledValue","uncontrolledValue","isVirtualizedRef","Boolean","defaultValueProp","undefined","valueProps","controlState","current","inputValueProp","CONTROLLED","renderInput","InputLabelProps","InputProps","params","fieldType","hasVisibleLabel","id","htmlFor","renderFieldComponent","errorMessageElementId","labelElementId","_InputBase","inputProps","required"],"sources":["../../src/useAutocomplete.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 { useCallback, useMemo, useRef } from \"react\";\nimport {\n InputBase,\n AutocompleteValue,\n AutocompleteRenderInputParams,\n} from \"@mui/material\";\n\nimport { AutocompleteProps } from \"./Autocomplete.js\";\nimport { Field } from \"./Field.js\";\nimport {\n ComponentControlledState,\n useInputValues,\n getControlState,\n} from \"./inputUtils.js\";\n\nexport type UseAutocompleteProps<\n OptionType,\n HasMultipleChoices extends boolean | undefined,\n IsCustomValueAllowed extends boolean | undefined,\n> = Pick<\n AutocompleteProps<OptionType, HasMultipleChoices, IsCustomValueAllowed>,\n | \"ariaDescribedBy\"\n | \"defaultValue\"\n | \"errorMessage\"\n | \"errorMessageList\"\n | \"hasMultipleChoices\"\n | \"hint\"\n | \"HintLinkComponent\"\n | \"inputValue\"\n | \"isFullWidth\"\n | \"isOptional\"\n | \"isVirtualized\"\n | \"label\"\n | \"name\"\n | \"testId\"\n | \"value\"\n>;\n\nexport const useAutocomplete = <\n OptionType,\n HasMultipleChoices extends boolean | undefined,\n IsCustomValueAllowed extends boolean | undefined,\n>({\n ariaDescribedBy,\n defaultValue,\n errorMessage,\n errorMessageList,\n hasMultipleChoices,\n hint,\n HintLinkComponent,\n inputValue,\n isFullWidth,\n isOptional,\n isVirtualized: isVirtualizedProp,\n label,\n name: nameOverride,\n testId,\n value,\n}: UseAutocompleteProps<\n OptionType,\n HasMultipleChoices,\n IsCustomValueAllowed\n>) => {\n const controlledStateRef = useRef(\n getControlState({\n controlledValue: value,\n uncontrolledValue: defaultValue,\n }),\n );\n\n const isVirtualizedRef = useRef(Boolean(isVirtualizedProp));\n\n const defaultValueProp = useMemo<\n | AutocompleteValue<\n OptionType,\n HasMultipleChoices,\n undefined,\n IsCustomValueAllowed\n >\n | undefined\n >(() => {\n if (hasMultipleChoices) {\n if (value === undefined) {\n return defaultValue;\n }\n return [] as AutocompleteValue<\n OptionType,\n HasMultipleChoices,\n undefined,\n IsCustomValueAllowed\n >;\n }\n return value === undefined ? defaultValue : undefined;\n }, [defaultValue, hasMultipleChoices, value]);\n\n const valueProps = useInputValues({\n controlState: controlledStateRef.current,\n defaultValue: defaultValueProp,\n value,\n });\n\n const inputValueProp = useMemo(() => {\n if (controlledStateRef.current === ComponentControlledState.CONTROLLED) {\n return { inputValue };\n }\n return undefined;\n }, [inputValue]);\n\n const renderInput = useCallback(\n ({\n InputLabelProps,\n InputProps,\n ...params\n }: AutocompleteRenderInputParams) => (\n <Field\n ariaDescribedBy={ariaDescribedBy}\n errorMessage={errorMessage}\n errorMessageList={errorMessageList}\n fieldType=\"single\"\n hasVisibleLabel\n //@ts-expect-error htmlFor exists on `InputLabelProps`, but not the type.\n // eslint-disable-next-line @typescript-eslint/no-unsafe-assignment\n id={InputLabelProps.htmlFor}\n isFullWidth={isFullWidth}\n hint={hint}\n HintLinkComponent={HintLinkComponent}\n label={label}\n isOptional={isOptional}\n renderFieldComponent={({\n ariaDescribedBy,\n id,\n errorMessageElementId,\n labelElementId,\n }) => (\n <InputBase\n {...params}\n {...InputProps}\n inputProps={{\n ...params.inputProps,\n \"aria-errormessage\": errorMessageElementId,\n \"aria-labelledby\": labelElementId,\n \"data-se\": testId,\n }}\n aria-describedby={ariaDescribedBy}\n id={id}\n name={nameOverride ?? id}\n required={!isOptional}\n />\n )}\n />\n ),\n [\n ariaDescribedBy,\n errorMessage,\n errorMessageList,\n hint,\n HintLinkComponent,\n isFullWidth,\n isOptional,\n label,\n nameOverride,\n testId,\n ],\n );\n\n return {\n inputValueProp,\n isVirtualizedRef,\n renderInput,\n valueProps,\n };\n};\n"],"mappings":";AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AA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ErB;MAAW,CAAC;IACvB;IACA,OAAOgB,SAAS;EAClB,CAAC,EAAE,CAAChB,UAAU,CAAC,CAAC;EAEhB,MAAMsB,WAAW,GAAGvC,WAAW,CAC7B,CAAC;IACCwC,eAAe;IACfC,UAAU;IACV,GAAGC;EAC0B,CAAC,KAC9BlC,IAAA,CAACL,KAAK;IACJO,eAAe,EAAEA,eAAgB;IACjCE,YAAY,EAAEA,YAAa;IAC3BC,gBAAgB,EAAEA,gBAAiB;IACnC8B,SAAS,EAAC,QAAQ;IAClBC,eAAe;IAGfC,EAAE,EAAEL,eAAe,CAACM,OAAQ;IAC5B5B,WAAW,EAAEA,WAAY;IACzBH,IAAI,EAAEA,IAAK;IACXC,iBAAiB,EAAEA,iBAAkB;IACrCM,KAAK,EAAEA,KAAM;IACbH,UAAU,EAAEA,UAAW;IACvB4B,oBAAoB,EAAEA,CAAC;MACrBrC,eAAe;MACfmC,EAAE;MACFG,qBAAqB;MACrBC;IACF,CAAC,KACCzC,IAAA,CAAA0C,UAAA;MAAA,GACMR,MAAM;MAAA,GACND,UAAU;MACdU,UAAU,EAAE;QACV,GAAGT,MAAM,CAACS,UAAU;QACpB,mBAAmB,EAAEH,qBAAqB;QAC1C,iBAAiB,EAAEC,cAAc;QACjC,SAAS,EAAExB;MACb,CAAE;MACF,oBAAkBf,eAAgB;MAClCmC,EAAE,EAAEA,EAAG;MACPtB,IAAI,EAAEC,YAAY,IAAIqB,EAAG;MACzBO,QAAQ,EAAE,CAACjC;IAAW,CACvB;EACD,CACH,CACF,EACD,CACET,eAAe,EACfE,YAAY,EACZC,gBAAgB,EAChBE,IAAI,EACJC,iBAAiB,EACjBE,WAAW,EACXC,UAAU,EACVG,KAAK,EACLE,YAAY,EACZC,MAAM,CAEV,CAAC;EAED,OAAO;IACLY,cAAc;IACdP,gBAAgB;IAChBS,WAAW;IACXL;EACF,CAAC;AACH,CAAC","ignoreList":[]}
1
+ {"version":3,"file":"useAutocomplete.js","names":["useCallback","useMemo","useRef","Field","ComponentControlledState","getControlState","useInputValues","jsx","_jsx","useAutocomplete","ariaDescribedBy","defaultValue","errorMessage","errorMessageList","hasMultipleChoices","hint","HintLinkComponent","inputValue","isFullWidth","isOptional","isVirtualized","isVirtualizedProp","label","name","nameOverride","testId","value","controlledStateRef","controlledValue","uncontrolledValue","isVirtualizedRef","Boolean","defaultValueProp","undefined","valueProps","controlState","current","inputValueProp","CONTROLLED","renderInput","InputLabelProps","InputProps","params","fieldType","hasVisibleLabel","id","htmlFor","renderFieldComponent","errorMessageElementId","labelElementId","_InputBase","inputProps","required"],"sources":["../../src/useAutocomplete.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 {\n AutocompleteRenderInputParams,\n AutocompleteValue,\n InputBase,\n} from \"@mui/material\";\nimport { useCallback, useMemo, useRef } from \"react\";\n\nimport { AutocompleteProps } from \"./Autocomplete.js\";\nimport { Field } from \"./Field.js\";\nimport {\n ComponentControlledState,\n getControlState,\n useInputValues,\n} from \"./inputUtils.js\";\n\nexport type UseAutocompleteProps<\n OptionType,\n HasMultipleChoices extends boolean | undefined,\n IsCustomValueAllowed extends boolean | undefined,\n> = Pick<\n AutocompleteProps<OptionType, HasMultipleChoices, IsCustomValueAllowed>,\n | \"ariaDescribedBy\"\n | \"defaultValue\"\n | \"errorMessage\"\n | \"errorMessageList\"\n | \"hasMultipleChoices\"\n | \"hint\"\n | \"HintLinkComponent\"\n | \"inputValue\"\n | \"isFullWidth\"\n | \"isOptional\"\n | \"isVirtualized\"\n | \"label\"\n | \"name\"\n | \"testId\"\n | \"value\"\n>;\n\nexport const useAutocomplete = <\n OptionType,\n HasMultipleChoices extends boolean | undefined,\n IsCustomValueAllowed extends boolean | undefined,\n>({\n ariaDescribedBy,\n defaultValue,\n errorMessage,\n errorMessageList,\n hasMultipleChoices,\n hint,\n HintLinkComponent,\n inputValue,\n isFullWidth,\n isOptional,\n isVirtualized: isVirtualizedProp,\n label,\n name: nameOverride,\n testId,\n value,\n}: UseAutocompleteProps<\n OptionType,\n HasMultipleChoices,\n IsCustomValueAllowed\n>) => {\n const controlledStateRef = useRef(\n getControlState({\n controlledValue: value,\n uncontrolledValue: defaultValue,\n }),\n );\n\n const isVirtualizedRef = useRef(Boolean(isVirtualizedProp));\n\n const defaultValueProp = useMemo<\n | AutocompleteValue<\n OptionType,\n HasMultipleChoices,\n undefined,\n IsCustomValueAllowed\n >\n | undefined\n >(() => {\n if (hasMultipleChoices) {\n if (value === undefined) {\n return defaultValue;\n }\n return [] as AutocompleteValue<\n OptionType,\n HasMultipleChoices,\n undefined,\n IsCustomValueAllowed\n >;\n }\n return value === undefined ? defaultValue : undefined;\n }, [defaultValue, hasMultipleChoices, value]);\n\n const valueProps = useInputValues({\n controlState: controlledStateRef.current,\n defaultValue: defaultValueProp,\n value,\n });\n\n const inputValueProp = useMemo(() => {\n if (controlledStateRef.current === ComponentControlledState.CONTROLLED) {\n return { inputValue };\n }\n return undefined;\n }, [inputValue]);\n\n const renderInput = useCallback(\n ({\n InputLabelProps,\n InputProps,\n ...params\n }: AutocompleteRenderInputParams) => (\n <Field\n ariaDescribedBy={ariaDescribedBy}\n errorMessage={errorMessage}\n errorMessageList={errorMessageList}\n fieldType=\"single\"\n hasVisibleLabel\n hint={hint}\n HintLinkComponent={HintLinkComponent}\n //@ts-expect-error htmlFor exists on `InputLabelProps`, but not the type.\n // eslint-disable-next-line @typescript-eslint/no-unsafe-assignment\n id={InputLabelProps.htmlFor}\n isFullWidth={isFullWidth}\n isOptional={isOptional}\n label={label}\n renderFieldComponent={({\n ariaDescribedBy,\n id,\n errorMessageElementId,\n labelElementId,\n }) => (\n <InputBase\n {...params}\n {...InputProps}\n aria-describedby={ariaDescribedBy}\n id={id}\n inputProps={{\n ...params.inputProps,\n \"aria-errormessage\": errorMessageElementId,\n \"aria-labelledby\": labelElementId,\n \"data-se\": testId,\n }}\n name={nameOverride ?? id}\n required={!isOptional}\n />\n )}\n />\n ),\n [\n ariaDescribedBy,\n errorMessage,\n errorMessageList,\n hint,\n HintLinkComponent,\n isFullWidth,\n isOptional,\n label,\n nameOverride,\n testId,\n ],\n );\n\n return {\n inputValueProp,\n isVirtualizedRef,\n renderInput,\n valueProps,\n };\n};\n"],"mappings":";AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAOA,SAASA,WAAW,EAAEC,OAAO,EAAEC,MAAM,QAAQ,OAAO;AAGpD,SAASC,KAAK,QAAQ,YAAY;AAClC,SACEC,wBAAwB,EACxBC,eAAe,EACfC,cAAc,QACT,iBAAiB;AAAC,SAAAC,GAAA,IAAAC,IAAA;AAyBzB,OAAO,MAAMC,eAAe,GAAGA,CAI7B;EACAC,eAAe;EACfC,YAAY;EACZC,YAAY;EACZC,gBAAgB;EAChBC,kBAAkB;EAClBC,IAAI;EACJC,iBAAiB;EACjBC,UAAU;EACVC,WAAW;EACXC,UAAU;EACVC,aAAa,EAAEC,iBAAiB;EAChCC,KAAK;EACLC,IAAI,EAAEC,YAAY;EAClBC,MAAM;EACNC;AAKF,CAAC,KAAK;EACJ,MAAMC,kBAAkB,GAAGzB,MAAM,CAC/BG,eAAe,CAAC;IACduB,eAAe,EAAEF,KAAK;IACtBG,iBAAiB,EAAElB;EACrB,CAAC,CACH,CAAC;EAED,MAAMmB,gBAAgB,GAAG5B,MAAM,CAAC6B,OAAO,CAACV,iBAAiB,CAAC,CAAC;EAE3D,MAAMW,gBAAgB,GAAG/B,OAAO,CAQ9B,MAAM;IACN,IAAIa,kBAAkB,EAAE;MACtB,IAAIY,KA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,CAACS,UAAU;QACpB,mBAAmB,EAAEH,qBAAqB;QAC1C,iBAAiB,EAAEC,cAAc;QACjC,SAAS,EAAExB;MACb,CAAE;MACFF,IAAI,EAAEC,YAAY,IAAIqB,EAAG;MACzBO,QAAQ,EAAE,CAACjC;IAAW,CACvB;EACD,CACH,CACF,EACD,CACET,eAAe,EACfE,YAAY,EACZC,gBAAgB,EAChBE,IAAI,EACJC,iBAAiB,EACjBE,WAAW,EACXC,UAAU,EACVG,KAAK,EACLE,YAAY,EACZC,MAAM,CAEV,CAAC;EAED,OAAO;IACLY,cAAc;IACdP,gBAAgB;IAChBS,WAAW;IACXL;EACF,CAAC;AACH,CAAC","ignoreList":[]}
@@ -10,8 +10,8 @@
10
10
  * See the License for the specific language governing permissions and limitations under the License.
11
11
  */
12
12
 
13
- import { createContext, useCallback, useContext, useEffect, useRef, useState } from "react";
14
13
  import * as Tokens from "@okta/odyssey-design-tokens";
14
+ import { createContext, useCallback, useContext, useEffect, useRef, useState } from "react";
15
15
  import { hexToRgb } from "./hexToRgb.js";
16
16
  export const ContrastModeContext = createContext({
17
17
  contrastMode: "lowContrast"
@@ -1 +1 @@
1
- {"version":3,"file":"useContrastMode.js","names":["createContext","useCallback","useContext","useEffect","useRef","useState","Tokens","hexToRgb","ContrastModeContext","contrastMode","defaultContrast","useContrastModeContext","hueNeutral50Rgb","HueNeutral50","asFormattedString","isTransparentColor","color","normalizeRgbaToRgb","rgba","replace","getElementComputedBackgroundColor","element","window","getComputedStyle","backgroundColor","normalizeBackgroundColor","bgColor","test","normalizedColor","defaultParentBackgroundColor","getBackgroundColor","parentElement","useContrastMode","explicitContrastMode","contrastContainerRef","existingContrastMode","parentBackgroundColor","setParentBackgroundColor","setContrastMode","updateBackgroundColor","newBgColor","current","observer","MutationObserver","observe","document","querySelector","attributes","attributeFilter","head","childList","subtree","onTransitionEnd","event","propertyName","addEventListener","removeEventListener","disconnect"],"sources":["../../src/useContrastMode.tsx"],"sourcesContent":["/*!\n * Copyright (c) 2023-present, Okta, Inc. and/or its affiliates. All rights reserved.\n * The Okta software accompanied by this notice is provided pursuant to the Apache License, Version 2.0 (the \"License.\")\n *\n * You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0.\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS, WITHOUT\n * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n *\n * See the License for the specific language governing permissions and limitations under the License.\n */\n\nimport {\n createContext,\n useCallback,\n useContext,\n useEffect,\n useRef,\n useState,\n} from \"react\";\nimport * as Tokens from \"@okta/odyssey-design-tokens\";\n\nimport { hexToRgb } from \"./hexToRgb.js\";\n\nexport type ContrastMode = \"lowContrast\" | \"highContrast\";\nexport type ContrastModeContextType = {\n contrastMode: ContrastMode;\n};\n\nexport const ContrastModeContext = createContext<ContrastModeContextType>({\n contrastMode: \"lowContrast\",\n});\n\nexport const defaultContrast = \"lowContrast\";\n\nexport const useContrastModeContext = () => useContext(ContrastModeContext);\n\nexport const hueNeutral50Rgb = hexToRgb(Tokens.HueNeutral50).asFormattedString;\n\nexport const isTransparentColor = (color: string) =>\n color === \"rgba(0, 0, 0, 0)\" || color === \"transparent\";\n\nexport const normalizeRgbaToRgb = (rgba: string) =>\n rgba.replace(/rgba\\((\\d+),\\s*(\\d+),\\s*(\\d+),\\s*[\\d.]+\\)/, \"rgb($1, $2, $3)\");\n\nexport const getElementComputedBackgroundColor = (\n element: HTMLElement,\n): string => window.getComputedStyle(element).backgroundColor;\n\nexport const normalizeBackgroundColor = (bgColor: string): string => {\n if (/rgba\\((\\d+),\\s*(\\d+),\\s*(\\d+),\\s*[\\d.]+\\)/.test(bgColor)) {\n const normalizedColor = normalizeRgbaToRgb(bgColor);\n return normalizedColor === hueNeutral50Rgb\n ? Tokens.HueNeutral50\n : normalizedColor;\n }\n\n return bgColor === hueNeutral50Rgb ? Tokens.HueNeutral50 : bgColor;\n};\n\nexport const defaultParentBackgroundColor = \"#ffffff\";\n\n/**\n * Determines the effective background color of an element.\n *\n * @param element - The HTML element to check.\n * @returns The effective background color. Returns defaultParentBackgroundColor if no non-transparent background is found.\n *\n * Note:\n * - Low contrast mode is used for white background (defaultParentBackgroundColor or HueNeutralWhite).\n * - High contrast mode is used for gray background (#f4f4f4 or HueNeutral50).\n */\nexport const getBackgroundColor = (element: HTMLElement | null): string => {\n while (element) {\n const bgColor = getElementComputedBackgroundColor(element);\n if (!isTransparentColor(bgColor)) {\n return normalizeBackgroundColor(bgColor);\n }\n element = element.parentElement;\n }\n return defaultParentBackgroundColor; // Default to white/low contrast if no background color is found\n};\n\ntype UseContrastModeProps = {\n contrastMode?: ContrastMode;\n};\n\nexport const useContrastMode = ({\n contrastMode: explicitContrastMode,\n}: UseContrastModeProps) => {\n const contrastContainerRef = useRef<HTMLDivElement>(null);\n const { contrastMode: existingContrastMode } = useContrastModeContext();\n\n const [parentBackgroundColor, setParentBackgroundColor] = useState(\n defaultParentBackgroundColor,\n );\n const [contrastMode, setContrastMode] = useState<ContrastMode>(\n () => explicitContrastMode || existingContrastMode,\n );\n\n const updateBackgroundColor = useCallback(() => {\n const newBgColor = getBackgroundColor(contrastContainerRef.current);\n setParentBackgroundColor(newBgColor);\n\n if (!explicitContrastMode) {\n setContrastMode(\n newBgColor === Tokens.HueNeutral50 ? \"highContrast\" : \"lowContrast\",\n );\n }\n }, [explicitContrastMode]);\n\n useEffect(() => {\n const observer = new MutationObserver(updateBackgroundColor);\n observer.observe(document.querySelector(\"html\") as HTMLHtmlElement, {\n attributes: true,\n attributeFilter: [\"class\", \"style\"],\n });\n observer.observe(document.head, {\n childList: true,\n subtree: true,\n });\n\n const onTransitionEnd = (event: TransitionEvent) => {\n if (event.propertyName === \"background-color\") {\n updateBackgroundColor();\n }\n };\n\n document.addEventListener(\"transitionend\", onTransitionEnd);\n updateBackgroundColor();\n\n return () => {\n document.removeEventListener(\"transitionend\", onTransitionEnd);\n observer.disconnect();\n };\n }, [updateBackgroundColor]);\n\n return {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AE,OAAO;IACpC,CAAC,CAAC;IACFN,QAAQ,CAACE,OAAO,CAACC,QAAQ,CAACI,IAAI,EAAE;MAC9BC,SAAS,EAAE,IAAI;MACfC,OAAO,EAAE;IACX,CAAC,CAAC;IAEF,MAAMC,eAAe,GAAIC,KAAsB,IAAK;MAClD,IAAIA,KAAK,CAACC,YAAY,KAAK,kBAAkB,EAAE;QAC7Cf,qBAAqB,CAAC,CAAC;MACzB;IACF,CAAC;IAEDM,QAAQ,CAACU,gBAAgB,CAAC,eAAe,EAAEH,eAAe,CAAC;IAC3Db,qBAAqB,CAAC,CAAC;IAEvB,OAAO,MAAM;MACXM,QAAQ,CAACW,mBAAmB,CAAC,eAAe,EAAEJ,eAAe,CAAC;MAC9DV,QAAQ,CAACe,UAAU,CAAC,CAAC;IACvB,CAAC;EACH,CAAC,EAAE,CAAClB,qBAAqB,CAAC,CAAC;EAE3B,OAAO;IACLL,oBAAoB;IACpBzB,YAAY;IACZ2B;EACF,CAAC;AACH,CAAC","ignoreList":[]}
1
+ {"version":3,"file":"useContrastMode.js","names":["Tokens","createContext","useCallback","useContext","useEffect","useRef","useState","hexToRgb","ContrastModeContext","contrastMode","defaultContrast","useContrastModeContext","hueNeutral50Rgb","HueNeutral50","asFormattedString","isTransparentColor","color","normalizeRgbaToRgb","rgba","replace","getElementComputedBackgroundColor","element","window","getComputedStyle","backgroundColor","normalizeBackgroundColor","bgColor","test","normalizedColor","defaultParentBackgroundColor","getBackgroundColor","parentElement","useContrastMode","explicitContrastMode","contrastContainerRef","existingContrastMode","parentBackgroundColor","setParentBackgroundColor","setContrastMode","updateBackgroundColor","newBgColor","current","observer","MutationObserver","observe","document","querySelector","attributes","attributeFilter","head","childList","subtree","onTransitionEnd","event","propertyName","addEventListener","removeEventListener","disconnect"],"sources":["../../src/useContrastMode.tsx"],"sourcesContent":["/*!\n * Copyright (c) 2023-present, Okta, Inc. and/or its affiliates. All rights reserved.\n * The Okta software accompanied by this notice is provided pursuant to the Apache License, Version 2.0 (the \"License.\")\n *\n * You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0.\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS, WITHOUT\n * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n *\n * See the License for the specific language governing permissions and limitations under the License.\n */\n\nimport * as Tokens from \"@okta/odyssey-design-tokens\";\nimport {\n createContext,\n useCallback,\n useContext,\n useEffect,\n useRef,\n useState,\n} from \"react\";\n\nimport { hexToRgb } from \"./hexToRgb.js\";\n\nexport type ContrastMode = \"lowContrast\" | \"highContrast\";\nexport type ContrastModeContextType = {\n contrastMode: ContrastMode;\n};\n\nexport const ContrastModeContext = createContext<ContrastModeContextType>({\n contrastMode: \"lowContrast\",\n});\n\nexport const defaultContrast = \"lowContrast\";\n\nexport const useContrastModeContext = () => useContext(ContrastModeContext);\n\nexport const hueNeutral50Rgb = hexToRgb(Tokens.HueNeutral50).asFormattedString;\n\nexport const isTransparentColor = (color: string) =>\n color === \"rgba(0, 0, 0, 0)\" || color === \"transparent\";\n\nexport const normalizeRgbaToRgb = (rgba: string) =>\n rgba.replace(/rgba\\((\\d+),\\s*(\\d+),\\s*(\\d+),\\s*[\\d.]+\\)/, \"rgb($1, $2, $3)\");\n\nexport const getElementComputedBackgroundColor = (\n element: HTMLElement,\n): string => window.getComputedStyle(element).backgroundColor;\n\nexport const normalizeBackgroundColor = (bgColor: string): string => {\n if (/rgba\\((\\d+),\\s*(\\d+),\\s*(\\d+),\\s*[\\d.]+\\)/.test(bgColor)) {\n const normalizedColor = normalizeRgbaToRgb(bgColor);\n return normalizedColor === hueNeutral50Rgb\n ? Tokens.HueNeutral50\n : normalizedColor;\n }\n\n return bgColor === hueNeutral50Rgb ? Tokens.HueNeutral50 : bgColor;\n};\n\nexport const defaultParentBackgroundColor = \"#ffffff\";\n\n/**\n * Determines the effective background color of an element.\n *\n * @param element - The HTML element to check.\n * @returns The effective background color. Returns defaultParentBackgroundColor if no non-transparent background is found.\n *\n * Note:\n * - Low contrast mode is used for white background (defaultParentBackgroundColor or HueNeutralWhite).\n * - High contrast mode is used for gray background (#f4f4f4 or HueNeutral50).\n */\nexport const getBackgroundColor = (element: HTMLElement | null): string => {\n while (element) {\n const bgColor = getElementComputedBackgroundColor(element);\n if (!isTransparentColor(bgColor)) {\n return normalizeBackgroundColor(bgColor);\n }\n element = element.parentElement;\n }\n return defaultParentBackgroundColor; // Default to white/low contrast if no background color is found\n};\n\ntype UseContrastModeProps = {\n contrastMode?: ContrastMode;\n};\n\nexport const useContrastMode = ({\n contrastMode: explicitContrastMode,\n}: UseContrastModeProps) => {\n const contrastContainerRef = useRef<HTMLDivElement>(null);\n const { contrastMode: existingContrastMode } = useContrastModeContext();\n\n const [parentBackgroundColor, setParentBackgroundColor] = useState(\n defaultParentBackgroundColor,\n );\n const [contrastMode, setContrastMode] = useState<ContrastMode>(\n () => explicitContrastMode || existingContrastMode,\n );\n\n const updateBackgroundColor = useCallback(() => {\n const newBgColor = getBackgroundColor(contrastContainerRef.current);\n setParentBackgroundColor(newBgColor);\n\n if (!explicitContrastMode) {\n setContrastMode(\n newBgColor === Tokens.HueNeutral50 ? \"highContrast\" : \"lowContrast\",\n );\n }\n }, [explicitContrastMode]);\n\n useEffect(() => {\n const observer = new MutationObserver(updateBackgroundColor);\n observer.observe(document.querySelector(\"html\") as HTMLHtmlElement, {\n attributes: true,\n attributeFilter: [\"class\", \"style\"],\n });\n observer.observe(document.head, {\n childList: true,\n subtree: true,\n });\n\n const onTransitionEnd = (event: TransitionEvent) => {\n if (event.propertyName === \"background-color\") {\n updateBackgroundColor();\n }\n };\n\n document.addEventListener(\"transitionend\", onTransitionEnd);\n updateBackgroundColor();\n\n return () => {\n document.removeEventListener(\"transitionend\", onTransitionEnd);\n observer.disconnect();\n };\n }, [updateBackgroundColor]);\n\n return {\n contrastContainerRef,\n contrastMode,\n parentBackgroundColor,\n };\n};\n"],"mappings":"AAAA;AACA;AACA;AACA;AACA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AI,EAAE;MAC9BC,SAAS,EAAE,IAAI;MACfC,OAAO,EAAE;IACX,CAAC,CAAC;IAEF,MAAMC,eAAe,GAAIC,KAAsB,IAAK;MAClD,IAAIA,KAAK,CAACC,YAAY,KAAK,kBAAkB,EAAE;QAC7Cf,qBAAqB,CAAC,CAAC;MACzB;IACF,CAAC;IAEDM,QAAQ,CAACU,gBAAgB,CAAC,eAAe,EAAEH,eAAe,CAAC;IAC3Db,qBAAqB,CAAC,CAAC;IAEvB,OAAO,MAAM;MACXM,QAAQ,CAACW,mBAAmB,CAAC,eAAe,EAAEJ,eAAe,CAAC;MAC9DV,QAAQ,CAACe,UAAU,CAAC,CAAC;IACvB,CAAC;EACH,CAAC,EAAE,CAAClB,qBAAqB,CAAC,CAAC;EAE3B,OAAO;IACLL,oBAAoB;IACpBzB,YAAY;IACZ2B;EACF,CAAC;AACH,CAAC","ignoreList":[]}
@@ -1 +1 @@
1
- {"version":3,"file":"useSessionStorageState.js","names":["useCallback","useEffect","useMemo","useState","useMountLifecycleEffect","getSessionStorageValue","key","sessionStorageValue","window","sessionStorage","getItem","JSON","parse","useSessionStorageState","initialState","Error","sessionState","setSessionState","value","sessionStorageState","stringify","setItem","localState","setLocalState","onUpdate"],"sources":["../../src/useSessionStorageState.ts"],"sourcesContent":["/*!\n * Copyright (c) 2025-present, Okta, Inc. and/or its affiliates. All rights reserved.\n * The Okta software accompanied by this notice is provided pursuant to the Apache License, Version 2.0 (the \"License.\")\n *\n * You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0.\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS, WITHOUT\n * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n *\n * See the License for the specific language governing permissions and limitations under the License.\n */\n\nimport { useCallback, useEffect, useMemo, useState } from \"react\";\nimport { useMountLifecycleEffect } from \"./useMountLifecycleEffect.js\";\n\nexport const getSessionStorageValue = <Value>(key: string): Value | null => {\n const sessionStorageValue = window.sessionStorage.getItem(key);\n\n try {\n if (typeof sessionStorageValue === \"string\") {\n return JSON.parse(sessionStorageValue) as Value;\n }\n\n return null;\n } catch {\n if (typeof sessionStorageValue === \"string\") {\n return sessionStorageValue as Value;\n }\n\n return null;\n }\n};\n\nexport const useSessionStorageState = <Value>({\n initialState,\n key,\n}: {\n initialState: Value;\n key: string;\n}) => {\n if (!key) {\n throw new Error(\"You must pass a value for `key`.\");\n }\n\n const sessionState = useMemo(() => getSessionStorageValue<Value>(key), [key]);\n\n const setSessionState = useCallback(\n (value: Value) => {\n const sessionStorageState =\n typeof value === \"undefined\" ? \"\" : JSON.stringify(value);\n\n window.sessionStorage.setItem(key, sessionStorageState);\n },\n [key],\n );\n\n const [localState, setLocalState] = useState<Value>(\n () => sessionState ?? initialState,\n );\n\n // This keeps session storage's state based on local state.\n useEffect(() => {\n setSessionState(localState);\n }, [localState, setSessionState]);\n\n // This updates when `key` is updated.\n const onUpdate = useCallback(() => {\n setLocalState(sessionState ?? initialState);\n }, [initialState, sessionState]);\n\n useMountLifecycleEffect({\n onUpdate,\n });\n\n return {\n sessionState: localState,\n setSessionState: setLocalState,\n };\n};\n"],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,SAASA,WAAW,EAAEC,SAAS,EAAEC,OAAO,EAAEC,QAAQ,QAAQ,OAAO;AACjE,SAASC,uBAAuB,QAAQ,8BAA8B;AAEtE,OAAO,MAAMC,sBAAsB,GAAWC,GAAW,IAAmB;EAC1E,MAAMC,mBAAmB,GAAGC,MAAM,CAACC,cAAc,CAACC,OAAO,CAACJ,GAAG,CAAC;EAE9D,IAAI;IACF,IAAI,OAAOC,mBAAmB,KAAK,QAAQ,EAAE;MAC3C,OAAOI,IAAI,CAACC,KAAK,CAACL,mBAAmB,CAAC;IACxC;IAEA,OAAO,IAAI;EACb,CAAC,CAAC,MAAM;IACN,IAAI,OAAOA,mBAAmB,KAAK,QAAQ,EAAE;MAC3C,OAAOA,mBAAmB;IAC5B;IAEA,OAAO,IAAI;EACb;AACF,CAAC;AAED,OAAO,MAAMM,sBAAsB,GAAGA,CAAQ;EAC5CC,YAAY;EACZR;AAIF,CAAC,KAAK;EACJ,IAAI,CAACA,GAAG,EAAE;IACR,MAAM,IAAIS,KAAK,CAAC,kCAAkC,CAAC;EACrD;EAEA,MAAMC,YAAY,GAAGd,OAAO,CAAC,MAAMG,sBAAsB,CAAQC,GAAG,CAAC,EAAE,CAACA,GAAG,CAAC,CAAC;EAE7E,MAAMW,eAAe,GAAGjB,WAAW,CAChCkB,KAAY,IAAK;IAChB,MAAMC,mBAAmB,GACvB,OAAOD,KAAK,KAAK,WAAW,GAAG,EAAE,GAAGP,IAAI,CAACS,SAAS,CAACF,KAAK,CAAC;IAE3DV,MAAM,CAACC,cAAc,CAACY,OAAO,CAACf,GAAG,EAAEa,mBAAmB,CAAC;EACzD,CAAC,EACD,CAACb,GAAG,CACN,CAAC;EAED,MAAM,CAACgB,UAAU,EAAEC,aAAa,CAAC,GAAGpB,QAAQ,CAC1C,MAAMa,YAAY,IAAIF,YACxB,CAAC;EAGDb,SAAS,CAAC,MAAM;IACdgB,eAAe,CAACK,UAAU,CAAC;EAC7B,CAAC,EAAE,CAACA,UAAU,EAAEL,eAAe,CAAC,CAAC;EAGjC,MAAMO,QAAQ,GAAGxB,WAAW,CAAC,MAAM;IACjCuB,aAAa,CAACP,YAAY,IAAIF,YAAY,CAAC;EAC7C,CAAC,EAAE,CAACA,YAAY,EAAEE,YAAY,CAAC,CAAC;EAEhCZ,uBAAuB,CAAC;IACtBoB;EACF,CAAC,CAAC;EAEF,OAAO;IACLR,YAAY,EAAEM,UAAU;IACxBL,eAAe,EAAEM;EACnB,CAAC;AACH,CAAC","ignoreList":[]}
1
+ {"version":3,"file":"useSessionStorageState.js","names":["useCallback","useEffect","useMemo","useState","useMountLifecycleEffect","getSessionStorageValue","key","sessionStorageValue","window","sessionStorage","getItem","JSON","parse","useSessionStorageState","initialState","Error","sessionState","setSessionState","value","sessionStorageState","stringify","setItem","localState","setLocalState","onUpdate"],"sources":["../../src/useSessionStorageState.ts"],"sourcesContent":["/*!\n * Copyright (c) 2025-present, Okta, Inc. and/or its affiliates. All rights reserved.\n * The Okta software accompanied by this notice is provided pursuant to the Apache License, Version 2.0 (the \"License.\")\n *\n * You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0.\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS, WITHOUT\n * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n *\n * See the License for the specific language governing permissions and limitations under the License.\n */\n\nimport { useCallback, useEffect, useMemo, useState } from \"react\";\n\nimport { useMountLifecycleEffect } from \"./useMountLifecycleEffect.js\";\n\nexport const getSessionStorageValue = <Value>(key: string): Value | null => {\n const sessionStorageValue = window.sessionStorage.getItem(key);\n\n try {\n if (typeof sessionStorageValue === \"string\") {\n return JSON.parse(sessionStorageValue) as Value;\n }\n\n return null;\n } catch {\n if (typeof sessionStorageValue === \"string\") {\n return sessionStorageValue as Value;\n }\n\n return null;\n }\n};\n\nexport const useSessionStorageState = <Value>({\n initialState,\n key,\n}: {\n initialState: Value;\n key: string;\n}) => {\n if (!key) {\n throw new Error(\"You must pass a value for `key`.\");\n }\n\n const sessionState = useMemo(() => getSessionStorageValue<Value>(key), [key]);\n\n const setSessionState = useCallback(\n (value: Value) => {\n const sessionStorageState =\n typeof value === \"undefined\" ? \"\" : JSON.stringify(value);\n\n window.sessionStorage.setItem(key, sessionStorageState);\n },\n [key],\n );\n\n const [localState, setLocalState] = useState<Value>(\n () => sessionState ?? initialState,\n );\n\n // This keeps session storage's state based on local state.\n useEffect(() => {\n setSessionState(localState);\n }, [localState, setSessionState]);\n\n // This updates when `key` is updated.\n const onUpdate = useCallback(() => {\n setLocalState(sessionState ?? initialState);\n }, [initialState, sessionState]);\n\n useMountLifecycleEffect({\n onUpdate,\n });\n\n return {\n sessionState: localState,\n setS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AGDb,SAAS,CAAC,MAAM;IACdgB,eAAe,CAACK,UAAU,CAAC;EAC7B,CAAC,EAAE,CAACA,UAAU,EAAEL,eAAe,CAAC,CAAC;EAGjC,MAAMO,QAAQ,GAAGxB,WAAW,CAAC,MAAM;IACjCuB,aAAa,CAACP,YAAY,IAAIF,YAAY,CAAC;EAC7C,CAAC,EAAE,CAACA,YAAY,EAAEE,YAAY,CAAC,CAAC;EAEhCZ,uBAAuB,CAAC;IACtBoB;EACF,CAAC,CAAC;EAEF,OAAO;IACLR,YAAY,EAAEM,UAAU;IACxBL,eAAe,EAAEM;EACnB,CAAC;AACH,CAAC","ignoreList":[]}
@@ -8,5 +8,5 @@
8
8
  * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
9
9
  *
10
10
  * See the License for the specific language governing permissions and limitations under the License.
11
- */export default "1-43-0";
11
+ */export default "1-44-0";
12
12
  //# sourceMappingURL=odysseyWebComponentVersion.generated.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"odysseyWebComponentVersion.generated.js","names":[],"sources":["../../../src/web-component/odysseyWebComponentVersion.generated.ts"],"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\n/**\n * DO NOT UPDATE THIS FILE MANUALLY\n * This file is managed by scripts/updateWebComponentVersion.ts and any changes made will be overwritten\n * This script only needs to be run during release, and shouldn't be used during local development.\n */\n\nexport default \"1-43-0\";\n"],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,GAQA,eAAe,QAAQ","ignoreList":[]}
1
+ {"version":3,"file":"odysseyWebComponentVersion.generated.js","names":[],"sources":["../../../src/web-component/odysseyWebComponentVersion.generated.ts"],"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\n/**\n * DO NOT UPDATE THIS FILE MANUALLY\n * This file is managed by scripts/updateWebComponentVersion.ts and any changes made will be overwritten\n * This script only needs to be run during release, and shouldn't be used during local development.\n */\n\nexport default \"1-44-0\";\n"],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,GAQA,eAAe,QAAQ","ignoreList":[]}
@@ -10,8 +10,8 @@
10
10
  * See the License for the specific language governing permissions and limitations under the License.
11
11
  */
12
12
 
13
- import version from "./odysseyWebComponentVersion.generated.js";
14
13
  import { createReactRootElements } from "./createReactRootElements.js";
14
+ import version from "./odysseyWebComponentVersion.generated.js";
15
15
  export const webComponentDataAttributeName = "data-odyssey-react-web-component";
16
16
  export const versionedWebComponentName = `odyssey-react-web-component-${version}`.toLowerCase();
17
17
  const SsrFriendlyHtmlElementClass = "HTMLElement" in globalThis ? HTMLElement : class {};
@@ -1 +1 @@
1
- {"version":3,"file":"renderReactInWebComponent.js","names":["version","createReactRootElements","webComponentDataAttributeName","versionedWebComponentName","toLowerCase","SsrFriendlyHtmlElementClass","globalThis","HTMLElement","WebComponentClass","getReactComponent","reactRootElements","elementName","localName","reactRootPromise","Promise","resolve","constructor","appRootElement","stylesRootElement","shadowRoot","attachShadow","mode","appendChild","styleHostElement","document","createElement","setAttribute","window","cspNonce","innerHTML","setGetReactComponent","then","reactRoot","render","connectedCallback","Error","createRoot","disconnectedCallback","unmount","getReactWebComponent","webComponentName","customElements","get","define","element","renderReactInWebComponent","webComponentChildren","webComponentParentElement","webComponentRootElement","reactElement","Array","isArray","forEach","webComponentChild"],"sources":["../../../src/web-component/renderReactInWebComponent.ts"],"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 { type ReactNode } from \"react\";\nimport type { Root } from \"react-dom/client\";\nimport version from \"./odysseyWebComponentVersion.generated.js\";\n\nimport {\n createReactRootElements,\n type ReactRootElements,\n} from \"./createReactRootElements.js\";\n\ninterface GetReactWebComponentOptions {\n webComponentName?: string;\n getReactComponent: (reactRootElements: ReactRootElements) => ReactNode;\n}\n\n// Used by selenium when selecting for odyssey web components regardless of their name.\nexport const webComponentDataAttributeName = \"data-odyssey-react-web-component\";\n\n// Unique name to avoid multiple versions of odyssey overwriting each other's implementations\nexport const versionedWebComponentName =\n `odyssey-react-web-component-${version}`.toLowerCase();\n\nconst SsrFriendlyHtmlElementClass =\n \"HTMLElement\" in globalThis\n ? HTMLElement\n : (class {} as unknown as typeof globalThis.HTMLElement);\n\nexport class WebComponentClass extends SsrFriendlyHtmlElementClass {\n #getReactComponent: GetReactComponentInWebComponent | null = null;\n readonly #reactRootElements: ReactRootElements;\n public readonly elementName: string = this.localName;\n // public for testing\n public reactRootPromise: Promise<Root | null> = Promise.resolve(null);\n\n constructor() {\n super();\n\n this.#reactRootElements = createReactRootElements();\n const { appRootElement, stylesRootElement } = this.#reactRootElements;\n\n const shadowRoot = this.attachShadow({ mode: \"open\" });\n shadowRoot.appendChild(stylesRootElement);\n shadowRoot.appendChild(appRootElement);\n\n const styleHostElement = document.createElement(\"style\");\n styleHostElement.setAttribute(\"nonce\", window.cspNonce);\n styleHostElement.innerHTML = `\n :host {\n all: initial;\n contain: content;\n }\n `;\n stylesRootElement.appendChild(styleHostElement);\n }\n\n /**\n * Provides the function used to initialize react content that is specific to this instance\n * of the web component, which is used later in the connectedCallback.\n *\n * Always set immediately after creation via document.createElement\n */\n setGetReactComponent(getReactComponent: GetReactComponentInWebComponent) {\n this.reactRootPromise = this.reactRootPromise.then((reactRoot) => {\n this.#getReactComponent = getReactComponent;\n if (reactRoot) {\n // connectedCallback has already been fired. Need to mount this content to the existing root\n reactRoot.render(this.#getReactComponent(this.#reactRootElements));\n } else {\n // Nothing to do. Content will be mounted when connectedCallback is called\n }\n\n return reactRoot;\n });\n }\n\n connectedCallback() {\n this.reactRootPromise = this.reactRootPromise\n .then((reactRoot) => {\n if (reactRoot) {\n // Shouldn't ever happen. connected and disconnected should never be called out of order\n throw new Error(\n `connectedCallback fired when reactRoot is already mounted.`,\n );\n }\n\n // Ensure react root is available before mounting\n // If we want to support React v17 in the future, we can use a try-catch on the import to grab the old `ReactDOM.render` function if `react-dom/client` errors. --Kevin Ghadyani\n return import(\"react-dom/client\").then(({ createRoot }) =>\n createRoot(this.#reactRootElements.appRootElement),\n );\n })\n .then((reactRoot) => {\n if (!this.#getReactComponent) {\n // getReactComponent hasn't been set yet. Content will be mounted once it's set.\n } else {\n reactRoot.render(this.#getReactComponent(this.#reactRootElements));\n }\n return reactRoot;\n });\n }\n\n disconnectedCallback() {\n this.reactRootPromise = this.reactRootPromise.then((reactRoot) => {\n if (!reactRoot) {\n // Shouldn't ever happen\n throw new Error(\n `disconnectedCallback fired when reactRoot is already unmounted.`,\n );\n }\n\n reactRoot.unmount();\n // Set root to null. We don't want to attempt to render to a root that's already been unmounted.\n return null;\n });\n }\n}\n\n/**\n * Returns a constructed web component which manages it's own shadow dom and react dom roots\n * A custom name can be specified, otherwise a default is provided\n */\nexport const getReactWebComponent = ({\n webComponentName = versionedWebComponentName,\n getReactComponent,\n}: GetReactWebComponentOptions) => {\n // This name hasn't been defined yet. Add a definition for it before constructing one.\n if (!customElements.get(webComponentName)) {\n customElements.define(webComponentName, WebComponentClass);\n }\n\n const element = document.createElement(webComponentName) as InstanceType<\n typeof WebComponentClass\n >;\n // Set selenium attribute so this can be selected\n element.setAttribute(webComponentDataAttributeName, \"\");\n // function used for creating react content\n element.setGetReactComponent(getReactComponent);\n return element;\n};\n\nexport type GetReactComponentInWebComponent = (\n reactRootElements: ReactRootElements,\n) => ReactNode;\n\nexport type RenderReactInWebComponentProps = {\n /**\n * Optional name given to this web component.\n * Defaults to a 'odyssey-react-wc-' plus the current odyssey version\n */\n webComponentName?: string;\n /**\n * This is a callback function for rendering your React component or app in the Web Component.\n * It gives you access to the Shadow DOM elements if you need them for Odyssey, Emotion, or MUI.\n *\n * You will need to add `<slot>` elements if you want to pass child elements or components or React apps.\n * You can have multiple slots in your app if you add a `name` attribute to your `<slot>` elements.\n */\n getReactComponent: GetReactComponentInWebComponent;\n /**\n * One or more HTML elements that are going to render as `children` of the web component.\n * If your React component doesn't take children, this is unnecessary.\n *\n * Typically, a React app root element is passed, but it can include an array of other elements if there are multiple slots for children.\n *\n * You will need to have rendered `<slot>` elements in your React component or `children` won't show up.\n */\n webComponentChildren?: HTMLElement | HTMLElement[];\n} & (\n | {\n /**\n * The React app renders in the web component, but the web component needs to be rendered in the document.\n *\n * This is the element the web component is rendered into.\n */\n webComponentParentElement: HTMLElement;\n webComponentRootElement?: never;\n }\n | {\n webComponentParentElement?: HTMLElement;\n /**\n * @deprecated Use `webComponentParentElement` instead.\n */\n webComponentRootElement: HTMLElement;\n }\n);\n\n/**\n * Lets you render React apps or components in a Web Component.\n *\n * This is useful when global styles are causing conflicts with your React components.\n */\nexport const renderReactInWebComponent = ({\n webComponentName,\n getReactComponent,\n webComponentChildren,\n webComponentParentElement,\n webComponentRootElement,\n}: RenderReactInWebComponentProps) => {\n const reactElement = getReactWebComponent({\n getReactComponent,\n webComponentName,\n });\n\n if (webComponentChildren) {\n (Array.isArray(webComponentChildren)\n ? webComponentChildren\n : [webComponentChildren]\n ).forEach((webComponentChild) => {\n reactElement.appendChild(webComponentChild);\n });\n }\n\n if (webComponentParentElement) {\n webComponentParentElement.appendChild(reactElement);\n }\n // Remove this condition when `webComponentRootElement` is no longer a prop.\n else if (webComponentRootElement) {\n webComponentRootElement.appendChild(reactElement);\n }\n\n return reactElement;\n};\n"],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAIA,OAAOA,OAAO,MAAM,2CAA2C;AAE/D,SACEC,uBAAuB,QAElB,8BAA8B;AAQrC,OAAO,MAAMC,6BAA6B,GAAG,kCAAkC;AAG/E,OAAO,MAAMC,yBAAyB,GACpC,+BAA+BH,OAAO,EAAE,CAACI,WAAW,CAAC,CAAC;AAExD,MAAMC,2BAA2B,GAC/B,aAAa,IAAIC,UAAU,GACvBC,WAAW,GACV,MAAM,EAA+C;AAE5D,OAAO,MAAMC,iBAAiB,SAASH,2BAA2B,CAAC;EACjE,CAACI,iBAAiB,GAA2C,IAAI;EACxD,CAACC,iBAAiB;EACXC,WAAW,GAAW,IAAI,CAACC,SAAS;EAE7CC,gBAAgB,GAAyBC,OAAO,CAACC,OAAO,CAAC,IAAI,CAAC;EAErEC,WAAWA,CAAA,EAAG;IACZ,KAAK,CAAC,CAAC;IAEP,IAAI,CAAC,CAACN,iBAAiB,GAAGT,uBAAuB,CAAC,CAAC;IACnD,MAAM;MAAEgB,cAAc;MAAEC;IAAkB,CAAC,GAAG,IAAI,CAAC,CAACR,iBAAiB;IAErE,MAAMS,UAAU,GAAG,IAAI,CAACC,YAAY,CAAC;MAAEC,IAAI,EAAE;IAAO,CAAC,CAAC;IACtDF,UAAU,CAACG,WAAW,CAACJ,iBAAiB,CAAC;IACzCC,UAAU,CAACG,W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AyB,EAAE;IAC7BA,yBAAyB,CAACzB,WAAW,CAAC2B,YAAY,CAAC;EACrD,CAAC,MAEI,IAAID,uBAAuB,EAAE;IAChCA,uBAAuB,CAAC1B,WAAW,CAAC2B,YAAY,CAAC;EACnD;EAEA,OAAOA,YAAY;AACrB,CAAC","ignoreList":[]}
1
+ {"version":3,"file":"renderReactInWebComponent.js","names":["createReactRootElements","version","webComponentDataAttributeName","versionedWebComponentName","toLowerCase","SsrFriendlyHtmlElementClass","globalThis","HTMLElement","WebComponentClass","getReactComponent","reactRootElements","elementName","localName","reactRootPromise","Promise","resolve","constructor","appRootElement","stylesRootElement","shadowRoot","attachShadow","mode","appendChild","styleHostElement","document","createElement","setAttribute","window","cspNonce","innerHTML","setGetReactComponent","then","reactRoot","render","connectedCallback","Error","createRoot","disconnectedCallback","unmount","getReactWebComponent","webComponentName","customElements","get","define","element","renderReactInWebComponent","webComponentChildren","webComponentParentElement","webComponentRootElement","reactElement","Array","isArray","forEach","webComponentChild"],"sources":["../../../src/web-component/renderReactInWebComponent.ts"],"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 type { Root } from \"react-dom/client\";\n\nimport { type ReactNode } from \"react\";\n\nimport {\n createReactRootElements,\n type ReactRootElements,\n} from \"./createReactRootElements.js\";\nimport version from \"./odysseyWebComponentVersion.generated.js\";\n\ninterface GetReactWebComponentOptions {\n getReactComponent: (reactRootElements: ReactRootElements) => ReactNode;\n webComponentName?: string;\n}\n\n// Used by selenium when selecting for odyssey web components regardless of their name.\nexport const webComponentDataAttributeName = \"data-odyssey-react-web-component\";\n\n// Unique name to avoid multiple versions of odyssey overwriting each other's implementations\nexport const versionedWebComponentName =\n `odyssey-react-web-component-${version}`.toLowerCase();\n\nconst SsrFriendlyHtmlElementClass =\n \"HTMLElement\" in globalThis\n ? HTMLElement\n : (class {} as unknown as typeof globalThis.HTMLElement);\n\nexport class WebComponentClass extends SsrFriendlyHtmlElementClass {\n #getReactComponent: GetReactComponentInWebComponent | null = null;\n readonly #reactRootElements: ReactRootElements;\n public readonly elementName: string = this.localName;\n // public for testing\n public reactRootPromise: Promise<Root | null> = Promise.resolve(null);\n\n constructor() {\n super();\n\n this.#reactRootElements = createReactRootElements();\n const { appRootElement, stylesRootElement } = this.#reactRootElements;\n\n const shadowRoot = this.attachShadow({ mode: \"open\" });\n shadowRoot.appendChild(stylesRootElement);\n shadowRoot.appendChild(appRootElement);\n\n const styleHostElement = document.createElement(\"style\");\n styleHostElement.setAttribute(\"nonce\", window.cspNonce);\n styleHostElement.innerHTML = `\n :host {\n all: initial;\n contain: content;\n }\n `;\n stylesRootElement.appendChild(styleHostElement);\n }\n\n /**\n * Provides the function used to initialize react content that is specific to this instance\n * of the web component, which is used later in the connectedCallback.\n *\n * Always set immediately after creation via document.createElement\n */\n setGetReactComponent(getReactComponent: GetReactComponentInWebComponent) {\n this.reactRootPromise = this.reactRootPromise.then((reactRoot) => {\n this.#getReactComponent = getReactComponent;\n if (reactRoot) {\n // connectedCallback has already been fired. Need to mount this content to the existing root\n reactRoot.render(this.#getReactComponent(this.#reactRootElements));\n } else {\n // Nothing to do. Content will be mounted when connectedCallback is called\n }\n\n return reactRoot;\n });\n }\n\n connectedCallback() {\n this.reactRootPromise = this.reactRootPromise\n .then((reactRoot) => {\n if (reactRoot) {\n // Shouldn't ever happen. connected and disconnected should never be called out of order\n throw new Error(\n `connectedCallback fired when reactRoot is already mounted.`,\n );\n }\n\n // Ensure react root is available before mounting\n // If we want to support React v17 in the future, we can use a try-catch on the import to grab the old `ReactDOM.render` function if `react-dom/client` errors. --Kevin Ghadyani\n return import(\"react-dom/client\").then(({ createRoot }) =>\n createRoot(this.#reactRootElements.appRootElement),\n );\n })\n .then((reactRoot) => {\n if (!this.#getReactComponent) {\n // getReactComponent hasn't been set yet. Content will be mounted once it's set.\n } else {\n reactRoot.render(this.#getReactComponent(this.#reactRootElements));\n }\n return reactRoot;\n });\n }\n\n disconnectedCallback() {\n this.reactRootPromise = this.reactRootPromise.then((reactRoot) => {\n if (!reactRoot) {\n // Shouldn't ever happen\n throw new Error(\n `disconnectedCallback fired when reactRoot is already unmounted.`,\n );\n }\n\n reactRoot.unmount();\n // Set root to null. We don't want to attempt to render to a root that's already been unmounted.\n return null;\n });\n }\n}\n\n/**\n * Returns a constructed web component which manages it's own shadow dom and react dom roots\n * A custom name can be specified, otherwise a default is provided\n */\nexport const getReactWebComponent = ({\n webComponentName = versionedWebComponentName,\n getReactComponent,\n}: GetReactWebComponentOptions) => {\n // This name hasn't been defined yet. Add a definition for it before constructing one.\n if (!customElements.get(webComponentName)) {\n customElements.define(webComponentName, WebComponentClass);\n }\n\n const element = document.createElement(webComponentName) as InstanceType<\n typeof WebComponentClass\n >;\n // Set selenium attribute so this can be selected\n element.setAttribute(webComponentDataAttributeName, \"\");\n // function used for creating react content\n element.setGetReactComponent(getReactComponent);\n return element;\n};\n\nexport type GetReactComponentInWebComponent = (\n reactRootElements: ReactRootElements,\n) => ReactNode;\n\nexport type RenderReactInWebComponentProps = {\n /**\n * This is a callback function for rendering your React component or app in the Web Component.\n * It gives you access to the Shadow DOM elements if you need them for Odyssey, Emotion, or MUI.\n *\n * You will need to add `<slot>` elements if you want to pass child elements or components or React apps.\n * You can have multiple slots in your app if you add a `name` attribute to your `<slot>` elements.\n */\n getReactComponent: GetReactComponentInWebComponent;\n /**\n * One or more HTML elements that are going to render as `children` of the web component.\n * If your React component doesn't take children, this is unnecessary.\n *\n * Typically, a React app root element is passed, but it can include an array of other elements if there are multiple slots for children.\n *\n * You will need to have rendered `<slot>` elements in your React component or `children` won't show up.\n */\n webComponentChildren?: HTMLElement | HTMLElement[];\n /**\n * Optional name given to this web component.\n * Defaults to a 'odyssey-react-wc-' plus the current odyssey version\n */\n webComponentName?: string;\n} & (\n | {\n /**\n * The React app renders in the web component, but the web component needs to be rendered in the document.\n *\n * This is the element the web component is rendered into.\n */\n webComponentParentElement: HTMLElement;\n webComponentRootElement?: never;\n }\n | {\n webComponentParentElement?: HTMLElement;\n /**\n * @deprecated Use `webComponentParentElement` instead.\n */\n webComponentRootElement: HTMLElement;\n }\n);\n\n/**\n * Lets you render React apps or components in a Web Component.\n *\n * This is useful when global styles are causing conflicts with your React components.\n */\nexport const renderReactInWebComponent = ({\n webComponentName,\n getReactComponent,\n webComponentChildren,\n webComponentParentElement,\n webComponentRootElement,\n}: RenderReactInWebComponentProps) => {\n const reactElement = getReactWebComponent({\n getReactComponent,\n webComponentName,\n });\n\n if (webComponentChildren) {\n (Array.isArray(webComponentChildren)\n ? webComponentChildren\n : [webComponentChildren]\n ).forEach((webComponentChild) => {\n reactElement.appendChild(webComponentChild);\n });\n }\n\n if (webComponentParentElement) {\n webComponentParentElement.appendChild(reactElement);\n }\n // Remove this condition when `webComponentRootElement` is no longer a prop.\n else if (webComponentRootElement) {\n webComponentRootElement.appendChild(reactElement);\n }\n\n return reactElement;\n};\n"],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAMA,SACEA,uBAAuB,QAElB,8BAA8B;AACrC,OAAOC,OAAO,MAAM,2CAA2C;AAQ/D,OAAO,MAAMC,6BAA6B,GAAG,kCAAkC;AAG/E,OAAO,MAAMC,yBAAyB,GACpC,+BAA+BF,OAAO,EAAE,CAACG,WAAW,CAAC,CAAC;AAExD,MAAMC,2BAA2B,GAC/B,aAAa,IAAIC,UAAU,GACvBC,WAAW,GACV,MAAM,EAA+C;AAE5D,OAAO,MAAMC,iBAAiB,SAASH,2BAA2B,CAAC;EACjE,CAACI,iBAAiB,G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