@okta/odyssey-react-mui 1.47.0 → 1.47.1

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 (387) hide show
  1. package/dist/appswitcher/admin-app-default.svg +6 -0
  2. package/dist/appswitcher/admin-app-selected.svg +6 -0
  3. package/dist/appswitcher/aerial-default.svg +7 -0
  4. package/dist/appswitcher/aerial-selected.svg +7 -0
  5. package/dist/appswitcher/okta-dashboard-default.svg +7 -0
  6. package/dist/appswitcher/okta-dashboard-selected.svg +7 -0
  7. package/dist/appswitcher/privileged-access-default.svg +4 -0
  8. package/dist/appswitcher/privileged-access-selected.svg +4 -0
  9. package/dist/appswitcher/workflows-default.svg +5 -0
  10. package/dist/appswitcher/workflows-selected.svg +5 -0
  11. package/dist/assets/Accordion-BUumLSm9.js +1 -0
  12. package/dist/assets/Accordion.stories-CaMgAnYN.js +85 -0
  13. package/dist/assets/AccordionSummary-0jrOTJTD.js +1 -0
  14. package/dist/assets/AdapterLuxon-0NB_ajTr.js +1 -0
  15. package/dist/assets/AlertTitle-BbBpDTwd.js +1 -0
  16. package/dist/assets/AppSwitcher-B7j0xavZ.js +21 -0
  17. package/dist/assets/AppSwitcher.stories-BqeExztr.js +100 -0
  18. package/dist/assets/AppTile _labs_.stories-uDhyBCfD.js +136 -0
  19. package/dist/assets/ArrowDropDown-LYMnJjPD.js +1 -0
  20. package/dist/assets/ArrowRight-Bi2Pswgc.js +1 -0
  21. package/dist/assets/Autocomplete-CXy6JKKy.js +1 -0
  22. package/dist/assets/Autocomplete-DD8JT6Eb.js +1 -0
  23. package/dist/assets/Autocomplete.stories-DjkuAafz.js +316 -0
  24. package/dist/assets/Badge-C6SBtLt7.js +11 -0
  25. package/dist/assets/Banner-itG3HAaL.js +1 -0
  26. package/dist/assets/Banner.stories-o2KYQ49p.js +74 -0
  27. package/dist/assets/BaseButton-COF38VLB.js +11 -0
  28. package/dist/assets/BaseMenuButton-pigMBOEp.js +1 -0
  29. package/dist/assets/Box-BGpAHVQV.js +1 -0
  30. package/dist/assets/Box-CWTB5xfE.js +1 -0
  31. package/dist/assets/Box-D2NdOYc2.js +11 -0
  32. package/dist/assets/Box.stories-Bl1v2MtQ.js +38 -0
  33. package/dist/assets/Breadcrumbs-6BEAV_iX.js +1 -0
  34. package/dist/assets/Breadcrumbs-C2ZpdmyC.js +6 -0
  35. package/dist/assets/Breadcrumbs.stories-WwSpw0c-.js +79 -0
  36. package/dist/assets/Bug-CF8uTmAI.js +1 -0
  37. package/dist/assets/Button-B6KDXfay.js +41 -0
  38. package/dist/assets/Button-CdPi1pZc.js +1 -0
  39. package/dist/assets/Button-DGmXZ3jw.js +11 -0
  40. package/dist/assets/Button.stories-DDHyMQ1_.js +271 -0
  41. package/dist/assets/ButtonBase-BAQsCgRq.js +74 -0
  42. package/dist/assets/Calendar-DjJqG0qe.js +1 -0
  43. package/dist/assets/Callout-DyDdgWdc.js +1 -0
  44. package/dist/assets/Callout.stories-nPexHuaO.js +105 -0
  45. package/dist/assets/Card-2fiTHibU.js +8 -0
  46. package/dist/assets/Card-CaY-V3Lt.js +1 -0
  47. package/dist/assets/Card.stories-B_l3D6T0.js +56 -0
  48. package/dist/assets/CardActionArea-BTMPt80M.js +1 -0
  49. package/dist/assets/CardActions-X5bUcMdJ.js +1 -0
  50. package/dist/assets/Checkbox-BCh8HZ37.js +1 -0
  51. package/dist/assets/Checkbox-BVTNXOF7.js +1 -0
  52. package/dist/assets/Checkbox.stories-CQ5I8O9l.js +96 -0
  53. package/dist/assets/CheckboxGroup-D-ykWUnV.js +1 -0
  54. package/dist/assets/CheckboxGroup.stories-B4ljyQRV.js +81 -0
  55. package/dist/assets/ChevronRight-DkL07pJu.js +1 -0
  56. package/dist/assets/ChevronUp-DBzjQ0Vq.js +1 -0
  57. package/dist/assets/Chip-DXaMeATb.js +1 -0
  58. package/dist/assets/CircularProgress-B5_VbcVt.js +28 -0
  59. package/dist/assets/CircularProgress-Dfpt5LAz.js +1 -0
  60. package/dist/assets/CircularProgress.stories-Daf0R9vA.js +44 -0
  61. package/dist/assets/Clock-Cs7_WjUp.js +1 -0
  62. package/dist/assets/Close-ATS01D1v.js +1 -0
  63. package/dist/assets/Code Styling Guidelines-KEouIK7B.js +14 -0
  64. package/dist/assets/Collapse-COoe3Qtd.js +1 -0
  65. package/dist/assets/Color-YHDXOIA2-DQdRRXzu.js +1 -0
  66. package/dist/assets/CssBaseline-D-vAj66q.js +191 -0
  67. package/dist/assets/CssBaseline.stories-BOhXBF5h.js +364 -0
  68. package/dist/assets/Custom Theming-DmPtfg8b.js +136 -0
  69. package/dist/assets/Custom Theming.stories-t0y6qbUN.js +95 -0
  70. package/dist/assets/DataFilters _labs_-blW_3eFm.js +55 -0
  71. package/dist/assets/DataFilters _labs_.stories-D2qt9BDz.js +31 -0
  72. package/dist/assets/DataFilters-49CUFFBF.js +1 -0
  73. package/dist/assets/DataTable _labs_-CJnucUaL.js +41 -0
  74. package/dist/assets/DataTable _labs_.stories-DrwT0H9g.js +21 -0
  75. package/dist/assets/DataTable-DeujVhYp.js +21 -0
  76. package/dist/assets/DataTable-Ka-SCcOh.js +404 -0
  77. package/dist/assets/DataTable.stories-CaSfkouk.js +438 -0
  78. package/dist/assets/DataView _labs_-CqZlEyu1.js +332 -0
  79. package/dist/assets/DataView _labs_.stories-CXjSXDeF.js +438 -0
  80. package/dist/assets/DataView-CYkwjPzk.js +91 -0
  81. package/dist/assets/DataView.stories-DT0ROHOs.js +871 -0
  82. package/dist/assets/DatePicker-C9sNy4fj.js +11 -0
  83. package/dist/assets/DatePicker-txjKmLSi.js +1 -0
  84. package/dist/assets/DatePicker.stories-VLeccVga.js +133 -0
  85. package/dist/assets/DateTimePicker-LSjVE-IM.js +1 -0
  86. package/dist/assets/DateTimePicker.stories-B2SaI9OL.js +158 -0
  87. package/dist/assets/Design Tokens-DrLUPXCc.js +4 -0
  88. package/dist/assets/Dialog-CRuld07G.js +1 -0
  89. package/dist/assets/Dialog.stories-Bm_j9j63.js +201 -0
  90. package/dist/assets/DialogContent-_oGbCJT8.js +1 -0
  91. package/dist/assets/DialogContentText-DU3-VV7L.js +1 -0
  92. package/dist/assets/DialogTitle-DyO9kr6R.js +1 -0
  93. package/dist/assets/Divider-DsFAYUeD.js +1 -0
  94. package/dist/assets/DocsRenderer-CFRXHY34-IKzmQUB4.js +2 -0
  95. package/dist/assets/Documentation-BrTRsPbe.js +1 -0
  96. package/dist/assets/Download-CnpAgqy2.js +1 -0
  97. package/dist/assets/Drawer-CwxKxBTE.js +27 -0
  98. package/dist/assets/Drawer-DEqB4KYp.js +1 -0
  99. package/dist/assets/Drawer.stories-Dvgnp9yd.js +95 -0
  100. package/dist/assets/EmptyState-9pxLjmqH.js +11 -0
  101. package/dist/assets/EmptyState.stories-DK1ZE36w.js +11 -0
  102. package/dist/assets/ExampleButton.stories-C51QbMy5.js +11 -0
  103. package/dist/assets/Extending Translations-DW0F3Xxk.js +145 -0
  104. package/dist/assets/ExternalLink-BZ-Yczsk.js +1 -0
  105. package/dist/assets/Fade-CVbWKXvx.js +1 -0
  106. package/dist/assets/Field-lyECanzU.js +11 -0
  107. package/dist/assets/FieldHint-C3tXb7u4.js +1 -0
  108. package/dist/assets/Fieldset-C2nSfkpl.js +11 -0
  109. package/dist/assets/Fieldset.stories-BU8d3fia.js +15 -0
  110. package/dist/assets/FileUploader.stories-C8jSeElw.js +58 -0
  111. package/dist/assets/Filter-Dx8z3DNi.js +1 -0
  112. package/dist/assets/Folder-BfxqGqvt.js +1 -0
  113. package/dist/assets/Form Field Accessibility-Bk715sxq.js +18 -0
  114. package/dist/assets/Form-BFqw21k4.js +11 -0
  115. package/dist/assets/Form.stories-Clfikd2x.js +69 -0
  116. package/dist/assets/FormControlLabel-BKhSSavj.js +1 -0
  117. package/dist/assets/FormGroup-Cuk9jkbL.js +1 -0
  118. package/dist/assets/FormHelperText-qF3DX-zz.js +1 -0
  119. package/dist/assets/FormLabel-BLj3hKkg.js +1 -0
  120. package/dist/assets/FullScreenOverlay-D_QtB3Yt.js +11 -0
  121. package/dist/assets/Generating Icons-DU5C85Nu.js +16 -0
  122. package/dist/assets/Globe-Brrqdlv8.js +1 -0
  123. package/dist/assets/Grid-CZMVE6qU.js +1 -0
  124. package/dist/assets/Group-B6q-i_C2.js +1 -0
  125. package/dist/assets/GroupPicker _labs_.stories-CFJvoMQP.js +33 -0
  126. package/dist/assets/Grow-DacPmog-.js +1 -0
  127. package/dist/assets/Hide-DlEWsxsn.js +1 -0
  128. package/dist/assets/Home-BiP4Mg1h.js +1 -0
  129. package/dist/assets/Icon _icons_.stories-BQr18gG9.js +16 -0
  130. package/dist/assets/IconButton-OY9nJWpv.js +1 -0
  131. package/dist/assets/IconWithTooltip _icons_.stories-Ct7hQD2g.js +19 -0
  132. package/dist/assets/IgaComponentsLegacyOdysseyDecorator-28myx5I9.js +175 -0
  133. package/dist/assets/InformationCircle-CE8ruoYu.js +1 -0
  134. package/dist/assets/InputAdornment-D4SsBOPe.js +1 -0
  135. package/dist/assets/InputBase-DSZ9ZgyW.js +2 -0
  136. package/dist/assets/Installing odyssey-react-mui-XtugTFlz.js +195 -0
  137. package/dist/assets/Introduction-Bt8Bd0mz.js +36 -0
  138. package/dist/assets/Layout-BduWITqf.js +11 -0
  139. package/dist/assets/Layout.stories-BaeIV62G.js +285 -0
  140. package/dist/assets/Legacy Migrations-DZ-fx_Jl.js +86 -0
  141. package/dist/assets/Link-BH0CiguI.js +11 -0
  142. package/dist/assets/Link-BnBknBcu.js +1 -0
  143. package/dist/assets/Link-DI6v1ROk.js +1 -0
  144. package/dist/assets/Link.stories-BY0xRfX5.js +43 -0
  145. package/dist/assets/List-Be7fhh4_.js +1 -0
  146. package/dist/assets/List-DsAZFSEg.js +1 -0
  147. package/dist/assets/ListItem-C8ebNPnP.js +1 -0
  148. package/dist/assets/ListSubheader-Bwc0JItn.js +1 -0
  149. package/dist/assets/Menu-CHod3UUY.js +1 -0
  150. package/dist/assets/MenuButton-CMGgaZPh.js +9 -0
  151. package/dist/assets/MenuButton-Dr4RJoKG.js +11 -0
  152. package/dist/assets/MenuButton.stories-B5Ron3HG.js +246 -0
  153. package/dist/assets/MenuContext-DKMyPMNY.js +11 -0
  154. package/dist/assets/MenuItem-B0_vCuIq.js +1 -0
  155. package/dist/assets/MenuItem-n-UKDxiu.js +1 -0
  156. package/dist/assets/MenuItem.stories-YEtPNOwc.js +29 -0
  157. package/dist/assets/MenuList-CW8ri5AI.js +1 -0
  158. package/dist/assets/Modal-B1-40kNg.js +1 -0
  159. package/dist/assets/More-D1qrtSvt.js +1 -0
  160. package/dist/assets/MuiPropsContext-DhRylJZk.js +11 -0
  161. package/dist/assets/NativeSelect.stories-BIRwQlHa.js +173 -0
  162. package/dist/assets/OdysseyProvider-2xjMTEu6.js +66 -0
  163. package/dist/assets/OdysseyProvider-CLb8psrs.js +197 -0
  164. package/dist/assets/OdysseyStorybookThemeDecorator-BRjYVaUu.js +1 -0
  165. package/dist/assets/OdysseyThemeProvider-BBwjgzn2.js +189 -0
  166. package/dist/assets/PageHeader.stories-fXDR4T37.js +17 -0
  167. package/dist/assets/PageHeader.stories-q0-kxFNT.js +329 -0
  168. package/dist/assets/PageTemplate _labs_-D3SkGEbG.js +8 -0
  169. package/dist/assets/PageTemplate _labs_.stories-DtJtMC5B.js +306 -0
  170. package/dist/assets/PageTemplate-mNUP99LO.js +21 -0
  171. package/dist/assets/PageTemplate.stories-H4WnNBj4.js +487 -0
  172. package/dist/assets/PaginatedTable _labs_.stories--9YveFu7.js +65 -0
  173. package/dist/assets/Pagination-D6myvUfo.js +11 -0
  174. package/dist/assets/Pagination.stories-CB4pOr9i.js +17 -0
  175. package/dist/assets/Paper-XsV8SWR9.js +1 -0
  176. package/dist/assets/PasswordField.stories-D5ZRplSl.js +129 -0
  177. package/dist/assets/Picker _labs_.stories-CyZs7sOo.js +18 -0
  178. package/dist/assets/PickerWithOptionAdornment _labs_.stories-DZ_mcN9y.js +70 -0
  179. package/dist/assets/PlaceholderLogo-JfVvgA23.js +11 -0
  180. package/dist/assets/Popper-DjhYeJJy.js +1 -0
  181. package/dist/assets/Portal-GAJY6Au9.js +1 -0
  182. package/dist/assets/Radio-BimAm2in.js +1 -0
  183. package/dist/assets/Radio-tkNaA8vy.js +1 -0
  184. package/dist/assets/Radio.stories-BIH7UBMO.js +63 -0
  185. package/dist/assets/RadioGroup-DP-BtKDw.js +10 -0
  186. package/dist/assets/RadioGroup-DRNCKA-f.js +1 -0
  187. package/dist/assets/RadioGroup-DhVJQTpS.js +1 -0
  188. package/dist/assets/RadioGroup.stories-DRXPUU0H.js +127 -0
  189. package/dist/assets/Refresh-GVzSl4pN.js +1 -0
  190. package/dist/assets/ResourceAccessPolicyComponentsStorybookThemeDecorator-IgdZHick.js +1 -0
  191. package/dist/assets/Right-to-Left (RTL)-DyJ58shp.js +62 -0
  192. package/dist/assets/ScreenReaderText-CM78bF1y.js +1 -0
  193. package/dist/assets/ScreenReaderText-CqMaDm6f.js +15 -0
  194. package/dist/assets/ScreenReaderText.stories-CpsTRHeF.js +8 -0
  195. package/dist/assets/Search-CkfJXFe5.js +1 -0
  196. package/dist/assets/SearchDropdown _labs_.stories-BQPhsSku.js +53 -0
  197. package/dist/assets/SearchField-CYM6nbh5.js +1 -0
  198. package/dist/assets/SearchField.stories-C95LqZ5d.js +37 -0
  199. package/dist/assets/Select-9yKLDVKS.js +1 -0
  200. package/dist/assets/Select-DJ071lNE.js +15 -0
  201. package/dist/assets/Select.stories-Dv7mWYvh.js +293 -0
  202. package/dist/assets/Server-DjXPiVgb.js +1 -0
  203. package/dist/assets/Settings-CjXK8-N1.js +1 -0
  204. package/dist/assets/Setup-C5eWg4Hp.js +7 -0
  205. package/dist/assets/Shadow DOM-CwtnF89G.js +64 -0
  206. package/dist/assets/Show-BmUFIvXd.js +1 -0
  207. package/dist/assets/SideNav-Bks9RS2j.js +85 -0
  208. package/dist/assets/SideNav-CJ4qafJJ.js +131 -0
  209. package/dist/assets/SideNav.stories-C1fpy9wN.js +207 -0
  210. package/dist/assets/Skeleton-dfR0DjWP.js +51 -0
  211. package/dist/assets/Snackbar-Cn_gMSEK.js +1 -0
  212. package/dist/assets/Stack-DKhviX3e.js +1 -0
  213. package/dist/assets/Stack.stories-BDHo9eFa.js +1 -0
  214. package/dist/assets/StaticTable _labs_.stories-Dxpy5sLd.js +34 -0
  215. package/dist/assets/Status-BpzpxYZ-.js +1 -0
  216. package/dist/assets/Status.stories-DLINjRQE.js +66 -0
  217. package/dist/assets/Surface-3Y97A1O8.js +1 -0
  218. package/dist/assets/Switch.stories-pYIYfkr3.js +61 -0
  219. package/dist/assets/SwitchBase-D-uzeIbM.js +1 -0
  220. package/dist/assets/Sync-DFFNrTTV.js +1 -0
  221. package/dist/assets/TabPanel-XF64c5rR.js +1 -0
  222. package/dist/assets/Tabs-DzeBYjfY.js +1 -0
  223. package/dist/assets/Tabs-SRLNy8_X.js +23 -0
  224. package/dist/assets/Tabs.stories-Dtlm8Y9N.js +100 -0
  225. package/dist/assets/Tag-BgjQI7VM.js +11 -0
  226. package/dist/assets/Tag.stories-DIlHCDGk.js +96 -0
  227. package/dist/assets/TagList-DGN86KvF.js +1 -0
  228. package/dist/assets/TextField-BuwBI2RX.js +1 -0
  229. package/dist/assets/TextField.stories-DL7enA3k.js +149 -0
  230. package/dist/assets/Toast.stories-DO1V8pyh.js +134 -0
  231. package/dist/assets/ToastManager.stories-CmZGqHye.js +22 -0
  232. package/dist/assets/Tooltip-D4AWrTBw.js +1 -0
  233. package/dist/assets/Tooltip-XQJL1Byd.js +11 -0
  234. package/dist/assets/Tooltip.stories-s36iDmFy.js +68 -0
  235. package/dist/assets/TopNav-dZWiR_bv.js +11 -0
  236. package/dist/assets/TopNav.stories-Dg27-0zA.js +13 -0
  237. package/dist/assets/TransitionGroupContext-DLI0IzWy.js +1 -0
  238. package/dist/assets/Typography-CORddEdk.js +9 -0
  239. package/dist/assets/Typography-D01yctPx.js +607 -0
  240. package/dist/assets/Typography-DfSdXC7o.js +1 -0
  241. package/dist/assets/Typography-Yf1Zkad_.js +1 -0
  242. package/dist/assets/Typography.stories-Cr7YbFxb.js +73 -0
  243. package/dist/assets/Typography.stories-D-TscJaP.js +139 -0
  244. package/dist/assets/UiShell.stories-BRpnZ7zi.js +558 -0
  245. package/dist/assets/UiShellProvider-BOM87LOZ.js +31 -0
  246. package/dist/assets/Upload-CXJBKzcC.js +1 -0
  247. package/dist/assets/User-D6db-Gy0.js +1 -0
  248. package/dist/assets/UserProfile-DqokqHU1.js +11 -0
  249. package/dist/assets/UserProfile.stories-BbvzhbPD.js +14 -0
  250. package/dist/assets/UserProfileMenuButton.stories-CKErfTVM.js +30 -0
  251. package/dist/assets/Video-B1Csvrbu.js +1 -0
  252. package/dist/assets/WorkflowsComponentsStorybookThemeDecorator-COYvO4K8.js +1 -0
  253. package/dist/assets/_commonjsHelpers-gnU0ypJ3.js +1 -0
  254. package/dist/assets/axe-4JP0vCEZ.js +30 -0
  255. package/dist/assets/axeRun-B-LchFqf.js +11 -0
  256. package/dist/assets/chunk-XP5HYGXS-BpfKkqn7.js +1 -0
  257. package/dist/assets/client-ByW5HbEz.js +1 -0
  258. package/dist/assets/colorManipulator-CjGkpVfF.js +1 -0
  259. package/dist/assets/constants-CGUp4oSR.js +11 -0
  260. package/dist/assets/constants-CyailK6t.js +11 -0
  261. package/dist/assets/createChainedFunction-BO_9K8Jh.js +1 -0
  262. package/dist/assets/createStyled-D0LG5-qz.js +1 -0
  263. package/dist/assets/createSvgIcon-DsUj6UQo.js +1 -0
  264. package/dist/assets/createUniqueId-ByTaVY63.js +1 -0
  265. package/dist/assets/debounce-Be36O1Ab.js +1 -0
  266. package/dist/assets/dialogActionsClasses-BWrWITLY.js +1 -0
  267. package/dist/assets/emotion-react-jsx-runtime.browser.esm-DcYOMKFp.js +1 -0
  268. package/dist/assets/entry-preview-CklzQ6bB.js +2 -0
  269. package/dist/assets/entry-preview-docs-BKXv92OK.js +46 -0
  270. package/dist/assets/fieldComponentPropsMetaData-BqbNLw6V.js +11 -0
  271. package/dist/assets/getScrollbarSize-Bqq2hMjQ.js +1 -0
  272. package/dist/assets/iconUtils-B6sV00nC.js +11 -0
  273. package/dist/assets/iframe-CXLAql3E.js +211 -0
  274. package/dist/assets/index-B-lxVbXh.js +1 -0
  275. package/dist/assets/index-B5xazMy1.js +1 -0
  276. package/dist/assets/index-BJMTVygn.js +240 -0
  277. package/dist/assets/index-BJTM6NaI.js +192 -0
  278. package/dist/assets/index-BeeV6X6A.js +1 -0
  279. package/dist/assets/index-BqmbiZ7T.js +384 -0
  280. package/dist/assets/index-BsDcV5Kh.js +1 -0
  281. package/dist/assets/index-CXQShRbs.js +8 -0
  282. package/dist/assets/index-DRboDwvZ.js +1 -0
  283. package/dist/assets/index-DieBXP3Z.js +24 -0
  284. package/dist/assets/index-Dj8r1U9U.js +1 -0
  285. package/dist/assets/index-DrFu-skq.js +6 -0
  286. package/dist/assets/index-NdkWRN8K.js +9 -0
  287. package/dist/assets/index.esm-CaIA2ztV.js +138 -0
  288. package/dist/assets/index.esm-HelN6IAt.js +1 -0
  289. package/dist/assets/index.modern-CkASn_bb.js +14 -0
  290. package/dist/assets/inputUtils-Dbi8XkA6.js +11 -0
  291. package/dist/assets/isHostComponent-DVu5iVWx.js +1 -0
  292. package/dist/assets/jsx-runtime-CnH95YSl.js +9 -0
  293. package/dist/assets/matchers-7Z3WT2CE-T3xScrR7.js +14 -0
  294. package/dist/assets/ownerDocument-DW-IO8s5.js +1 -0
  295. package/dist/assets/ownerWindow-HkKU3E4x.js +1 -0
  296. package/dist/assets/personData-vW3mumD1.js +1 -0
  297. package/dist/assets/personData-zrA1iJih.js +11 -0
  298. package/dist/assets/pickerComponentPropsMetadata-P9x80E4R.js +21 -0
  299. package/dist/assets/preview-B8lJiyuQ.js +34 -0
  300. package/dist/assets/preview-BAx1BwgB.js +1 -0
  301. package/dist/assets/preview-BBWR9nbA.js +1 -0
  302. package/dist/assets/preview-BWzBA1C2.js +396 -0
  303. package/dist/assets/preview-BaoH-L4j.js +1 -0
  304. package/dist/assets/preview-BprB3Yzd.js +2 -0
  305. package/dist/assets/preview-CYp4EYYZ.js +1 -0
  306. package/dist/assets/preview-CvbIS5ZJ.js +1 -0
  307. package/dist/assets/preview-DGUiP6tS.js +7 -0
  308. package/dist/assets/preview-DHQbi4pV.js +1 -0
  309. package/dist/assets/preview-MBifGIx_.js +1 -0
  310. package/dist/assets/preview-_inBJXZG.js +2 -0
  311. package/dist/assets/pxToRem-BrMhKUxS.js +11 -0
  312. package/dist/assets/queryOdysseySelector-CwauhQve.js +187 -0
  313. package/dist/assets/react-18-u8niHpKc.js +1 -0
  314. package/dist/assets/renderUiShell.stories-ILWjsAQY.js +854 -0
  315. package/dist/assets/resolveComponentProps-BzfJewMt.js +1 -0
  316. package/dist/assets/tableSortLabelClasses-DtOYtU1J.js +1 -0
  317. package/dist/assets/test-utils-H9lH7T5D.js +9 -0
  318. package/dist/assets/uiShellSharedConstants-DD9UP82e.js +11 -0
  319. package/dist/assets/useAutocomplete-DwWveFvJ.js +11 -0
  320. package/dist/assets/useControlled-NQulfz4l.js +1 -0
  321. package/dist/assets/useFormControl-BMISTZuX.js +1 -0
  322. package/dist/assets/useIsFocusVisible-DH0qxT5e.js +1 -0
  323. package/dist/assets/useMobilePicker-5I3ooa1D.js +6 -0
  324. package/dist/assets/useMountLifecycleEffect-CjsUCFhB.js +11 -0
  325. package/dist/assets/useOdysseyDateFields-Cq2BZNiB.js +61 -0
  326. package/dist/assets/useScrollIndication-C4t86M0g.js +31 -0
  327. package/dist/assets/useSlot-CaOQD_17.js +1 -0
  328. package/dist/assets/useThemeProps-Bfa1XAV-.js +1 -0
  329. package/dist/assets/useThemeProps-D4857Xca.js +1 -0
  330. package/dist/assets/useUniqueId-Bsgqe1tm.js +11 -0
  331. package/dist/assets/utilities.esm-DpQ0TZP_.js +5 -0
  332. package/dist/assets/utils-DkZjDCLm.js +1 -0
  333. package/dist/assets/utils-iop7lDec.js +1 -0
  334. package/dist/assets/v4-CtRu48qb.js +1 -0
  335. package/dist/assets/visuallyHidden-Dan1xhjv.js +1 -0
  336. package/dist/cjs/__internal.cjs +44 -0
  337. package/dist/cjs/__internal.cjs.map +1 -1
  338. package/dist/cjs/web-component/odysseyWebComponentVersion.generated.cjs +1 -1
  339. package/dist/cjs/web-component/odysseyWebComponentVersion.generated.cjs.map +1 -1
  340. package/dist/esm/__internal.js +4 -0
  341. package/dist/esm/__internal.js.map +1 -1
  342. package/dist/esm/web-component/odysseyWebComponentVersion.generated.js +1 -1
  343. package/dist/esm/web-component/odysseyWebComponentVersion.generated.js.map +1 -1
  344. package/dist/favicon.svg +1 -0
  345. package/dist/iframe.html +748 -0
  346. package/dist/index.cjs +231 -0
  347. package/dist/index.d.ts +233 -0
  348. package/dist/index.d.ts.map +1 -0
  349. package/dist/index.html +203 -0
  350. package/dist/index.js +25 -0
  351. package/dist/index.json +1 -0
  352. package/dist/index.mjs +229 -0
  353. package/dist/index.scss +549 -0
  354. package/dist/nunito-sans-bold-italic.woff2 +0 -0
  355. package/dist/nunito-sans-bold.woff2 +0 -0
  356. package/dist/nunito-sans-italic.woff2 +0 -0
  357. package/dist/nunito-sans-regular.woff2 +0 -0
  358. package/dist/project.json +1 -0
  359. package/dist/sb-addons/a11y-3/manager-bundle.js +220 -0
  360. package/dist/sb-addons/docs-1/manager-bundle.js +242 -0
  361. package/dist/sb-addons/essentials-actions-5/manager-bundle.js +3 -0
  362. package/dist/sb-addons/essentials-backgrounds-6/manager-bundle.js +12 -0
  363. package/dist/sb-addons/essentials-controls-4/manager-bundle.js +402 -0
  364. package/dist/sb-addons/essentials-measure-9/manager-bundle.js +3 -0
  365. package/dist/sb-addons/essentials-outline-10/manager-bundle.js +3 -0
  366. package/dist/sb-addons/essentials-toolbars-8/manager-bundle.js +3 -0
  367. package/dist/sb-addons/essentials-viewport-7/manager-bundle.js +3 -0
  368. package/dist/sb-addons/interactions-11/manager-bundle.js +222 -0
  369. package/dist/sb-addons/links-2/manager-bundle.js +3 -0
  370. package/dist/sb-addons/rtl-12/manager-bundle.js +3 -0
  371. package/dist/sb-addons/storybook-13/manager-bundle.js +3 -0
  372. package/dist/sb-addons/storybook-core-core-server-presets-0/common-manager-bundle.js +3 -0
  373. package/dist/sb-common-assets/favicon.svg +1 -0
  374. package/dist/sb-common-assets/nunito-sans-bold-italic.woff2 +0 -0
  375. package/dist/sb-common-assets/nunito-sans-bold.woff2 +0 -0
  376. package/dist/sb-common-assets/nunito-sans-italic.woff2 +0 -0
  377. package/dist/sb-common-assets/nunito-sans-regular.woff2 +0 -0
  378. package/dist/sb-manager/globals-module-info.js +1052 -0
  379. package/dist/sb-manager/globals-runtime.js +42127 -0
  380. package/dist/sb-manager/globals.js +48 -0
  381. package/dist/sb-manager/runtime.js +12048 -0
  382. package/dist/tsconfig.production.tsbuildinfo +1 -1
  383. package/dist/tsconfig.tsbuildinfo +1 -0
  384. package/dist/types/__internal.d.ts +4 -0
  385. package/dist/types/__internal.d.ts.map +1 -1
  386. package/dist/types/web-component/odysseyWebComponentVersion.generated.d.ts +1 -1
  387. package/package.json +8 -8
@@ -0,0 +1,131 @@
1
+ import{u as tn,C as rn,D as on,d as an,a as cn,b as ve,c as dn,S as ln,s as sn,K as un,P as gn,e as mn,E as X}from"./utilities.esm-DpQ0TZP_.js";import{u as D,s as S,N as fn,J as Z,L as Sn}from"./OdysseyThemeProvider-BBwjgzn2.js";import{r as a}from"./index-NdkWRN8K.js";import{e as bn,i as hn}from"./Typography-DfSdXC7o.js";import{u as N}from"./UiShellProvider-BOM87LOZ.js";import{u as Be}from"./useMountLifecycleEffect-CjsUCFhB.js";import{U as Ee,T as pn,a as ue,b as xn,S as In}from"./uiShellSharedConstants-DD9UP82e.js";import{u as yn}from"./useUniqueId-Bsgqe1tm.js";import{j as i}from"./jsx-runtime-CnH95YSl.js";import{A as vn,b as Mn,a as jn}from"./AccordionSummary-0jrOTJTD.js";import{M as ie}from"./Box-BGpAHVQV.js";import{M as wn}from"./Link-DI6v1ROk.js";import{S as J}from"./Skeleton-dfR0DjWP.js";import{M as kn}from"./Badge-C6SBtLt7.js";import{M as Bn}from"./Status-BpzpxYZ-.js";import{L as En}from"./Link-BnBknBcu.js";import{M as Ln}from"./ExternalLink-BZ-Yczsk.js";import{M as Dn}from"./ChevronRight-DkL07pJu.js";import{M as An}from"./MuiPropsContext-DhRylJZk.js";import{M as Tn}from"./Tooltip-XQJL1Byd.js";import{B as Hn}from"./Button-CdPi1pZc.js";/*!
2
+ * Copyright (c) 2024-present, Okta, Inc. and/or its affiliates. All rights reserved.
3
+ * The Okta software accompanied by this notice is provided pursuant to the Apache License, Version 2.0 (the "License.")
4
+ *
5
+ * You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0.
6
+ * Unless required by applicable law or agreed to in writing, software
7
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
8
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
9
+ *
10
+ * See the License for the specific language governing permissions and limitations under the License.
11
+ */const oe=a.createContext({isCompact:!1,isSortable:!1,depth:1}),Le=()=>a.useContext(oe),Fn=S("div",{shouldForwardProp:e=>e!=="backgroundColor"&&e!=="fontColor"})(({backgroundColor:e,fontColor:n})=>({width:"100%",".MuiAccordion-root":{backgroundColor:e,color:n||"inherit"}})),$n=S("span",{shouldForwardProp:e=>e!=="odysseyDesignTokens"&&e!=="isIconVisible"&&e!=="sideNavContrastColors"})(({sideNavContrastColors:e,odysseyDesignTokens:n,isIconVisible:t})=>({width:"100%",marginInlineStart:t?n.Spacing3:0,fontWeight:n.TypographyWeightBody,color:(e==null?void 0:e.fontColor)||n.TypographyColorHeading,".Mui-disabled &":{color:n.TypographyColorDisabled,...(e==null?void 0:e.itemDisabledFontColor)&&{color:e==null?void 0:e.itemDisabledFontColor}}})),Rn=S(jn,{shouldForwardProp:e=>e!=="odysseyDesignTokens"&&e!=="isCompact"&&e!=="isDisabled"&&e!=="sideNavContrastColors"&&e!=="depth"})(({odysseyDesignTokens:e,sideNavContrastColors:n,isCompact:t,isDisabled:r,depth:c=1})=>({borderRadius:e.BorderRadiusMain,paddingBlock:e.Spacing3,paddingInlineStart:`calc(${e.Spacing4} * ${c})`,paddingInlineEnd:e.Spacing4,alignItems:"center",".MuiAccordionSummary-content":{alignItems:"center"},...r&&{opacity:"1 !important",...(n==null?void 0:n.itemDisabledFontColor)&&{svg:{path:{fill:`${n.itemDisabledFontColor} !important`}}}},...!r&&{"&:hover":{backgroundColor:e.HueNeutral50}},...!r&&(n==null?void 0:n.fontColor)&&{svg:{path:{fill:`${n.fontColor} !important`}}},...(n==null?void 0:n.itemHoverBackgroundColor)&&{...!r&&{"&:hover":{backgroundColor:n.itemHoverBackgroundColor}}},"&:focus-visible":{backgroundColor:"unset",outline:"none",boxShadow:`inset 0 0 0 2px ${e.PalettePrimaryMain}`,...(n==null?void 0:n.focusRingColor)&&{boxShadow:`inset 0 0 0 2px ${n.focusRingColor}`}},...t&&{paddingBlock:e.Spacing2,minHeight:"unset"}})),Pn=({children:e,label:n,id:t,isCompact:r,isDefaultExpanded:c,isDisabled:o,isExpanded:s,translate:g,startIcon:d})=>{const f=yn(t),u=`${f}-header`,p=`${f}-content`,b=D(),m=N(),x=Le();return i.jsx(Fn,{backgroundColor:m==null?void 0:m.sideNavBackgroundColor,children:i.jsxs(vn,{className:"nav-accordion",defaultExpanded:c,disabled:o,disableGutters:!0,expanded:s,children:[i.jsxs(Rn,{"aria-controls":p,className:"nav-accordion-summary",depth:x.depth,expandIcon:i.jsx(fn,{}),id:u,isCompact:r,isDisabled:o,odysseyDesignTokens:b,sideNavContrastColors:m==null?void 0:m.sideNavContrastColors,children:[d&&d,i.jsx($n,{isIconVisible:!!d,odysseyDesignTokens:b,sideNavContrastColors:m==null?void 0:m.sideNavContrastColors,translate:g,children:n})]}),i.jsx(Mn,{"aria-labelledby":u,className:"nav-accordion-details",children:e})]})})},De=a.memo(Pn);De.displayName="NavAccordion";/*!
12
+ * Copyright (c) 2025-present, Okta, Inc. and/or its affiliates. All rights reserved.
13
+ * The Okta software accompanied by this notice is provided pursuant to the Apache License, Version 2.0 (the "License.")
14
+ *
15
+ * You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0.
16
+ * Unless required by applicable law or agreed to in writing, software
17
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
18
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
19
+ *
20
+ * See the License for the specific language governing permissions and limitations under the License.
21
+ */const Me=e=>{const n=document.documentElement.getAttribute("dir")==="rtl",{top:t,bottom:r,left:c,right:o}=e.getBoundingClientRect();return{top:t,bottom:r,left:n?o:c,right:n?c:o}};/*!
22
+ * Copyright (c) 2025-present, Okta, Inc. and/or its affiliates. All rights reserved.
23
+ * The Okta software accompanied by this notice is provided pursuant to the Apache License, Version 2.0 (the "License.")
24
+ *
25
+ * You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0.
26
+ * Unless required by applicable law or agreed to in writing, software
27
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
28
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
29
+ *
30
+ * See the License for the specific language governing permissions and limitations under the License.
31
+ */const je={isAtContainerInlineStart:null,isAtContainerInlineEnd:null,isAtContainerBlockStart:null,isAtContainerBlockEnd:null};function _n({containerElement:e,element:n,monitoringElement:t}){const[r,c]=a.useState(je),o=a.useRef(0),s=t??(n==null?void 0:n.parentElement),g=a.useCallback(()=>{cancelAnimationFrame(o.current),o.current=requestAnimationFrame(()=>{if(n){const d=Me(n),f=Me(e??document.body);c({isAtContainerInlineStart:d.left===f.left,isAtContainerInlineEnd:d.right===f.right,isAtContainerBlockStart:d.top===f.top,isAtContainerBlockEnd:d.bottom===f.bottom})}else c(je)})},[e,n]);return a.useEffect(()=>{const d=new MutationObserver(()=>{g()});return s&&d.observe(s,{attributes:!0,attributeFilter:["style"],childList:!0,subtree:!0}),window.addEventListener("resize",g),g(),()=>{cancelAnimationFrame(o.current),d.disconnect(),window.removeEventListener("resize",g)}},[s,g]),r}/*!
32
+ * Copyright (c) 2024-present, Okta, Inc. and/or its affiliates. All rights reserved.
33
+ * The Okta software accompanied by this notice is provided pursuant to the Apache License, Version 2.0 (the "License.")
34
+ *
35
+ * You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0.
36
+ * Unless required by applicable law or agreed to in writing, software
37
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
38
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
39
+ *
40
+ * See the License for the specific language governing permissions and limitations under the License.
41
+ */const zn=S("nav")({display:"flex"}),Vn=S("div",{shouldForwardProp:e=>e!=="odysseyDesignTokens"&&e!=="borderColor"})(({borderColor:e,odysseyDesignTokens:n})=>({"& + &":{marginInlineStart:n.Spacing4,paddingInlineStart:n.Spacing4,borderInlineStart:`1px solid ${e||n.HueNeutral300}`}})),Nn=({footerItems:e})=>{const n=D(),{t}=Z(),r=N(),c=a.useMemo(()=>e==null?void 0:e.map(o=>{var s;return i.jsx(Vn,{borderColor:(s=r==null?void 0:r.sideNavContrastColors)==null?void 0:s.fontColor,odysseyDesignTokens:n,role:"menuitem",children:o.href?i.jsx(wn,{href:o.href,children:o.label}):i.jsx(ie,{component:"span",children:o.label})},o.id)}),[e,n,r]);return i.jsx(zn,{"aria-label":t("navigation.footer"),role:"menubar",children:c})},Ae=a.memo(Nn);Ae.displayName="SideNavFooterContent";/*!
42
+ * Copyright (c) 2024-present, Okta, Inc. and/or its affiliates. All rights reserved.
43
+ * The Okta software accompanied by this notice is provided pursuant to the Apache License, Version 2.0 (the "License.")
44
+ *
45
+ * You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0.
46
+ * Unless required by applicable law or agreed to in writing, software
47
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
48
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
49
+ *
50
+ * See the License for the specific language governing permissions and limitations under the License.
51
+ */const On=()=>i.jsxs("svg",{fill:"none",height:"24",viewBox:"0 0 67 24",width:"67",xmlns:"http://www.w3.org/2000/svg",children:[i.jsx("title",{children:"Okta"}),i.jsx("path",{d:"M55.308 20.5716C52.1058 20.5716 49.8418 18.0813 49.8418 14.8145C49.8418 11.5476 52.1058 9.0574 55.308 9.0574C58.5103 9.0574 60.7097 11.5476 60.7097 14.8145C60.7097 18.0813 58.478 20.5716 55.308 20.5716ZM54.7905 24C57.3782 24 59.5777 22.9972 60.9682 20.8947C61.2267 22.9326 62.7147 23.6763 64.5905 23.6763H66.0785V20.4418H65.4317C64.3643 20.4418 64.1058 19.9242 64.1058 18.7276V5.95153H60.6774V8.57159C59.5131 6.72814 57.3136 5.62842 54.7911 5.62842C50.2952 5.62842 46.1554 9.38051 46.1554 14.8139C46.1554 20.2473 50.2947 24 54.7905 24ZM37.1309 19.5688C37.1309 22.4797 38.942 23.6763 41.1092 23.6763H45.2813V20.4418H42.2412C40.9799 20.4418 40.7209 19.9565 40.7209 18.7276V9.18608H45.2813V5.95153H40.7209V0H37.1309V19.5688ZM20.7972 23.6763H24.3872V16.0758H25.5838L31.6969 23.6763H36.225L28.4301 14.0379L34.4139 5.9521H30.371L25.4869 12.7766H24.3872V0.00113398H20.7972V23.6763ZM9.1532 5.62842C4.13983 5.62842 0 9.38051 0 14.8139C0 20.2473 4.13983 23.9994 9.1532 23.9994C14.1666 23.9994 18.3064 20.2473 18.3064 14.8139C18.3064 9.38051 14.1666 5.62842 9.1532 5.62842ZM9.1532 20.5716C5.95096 20.5716 3.68689 18.0813 3.68689 14.8145C3.68689 11.5476 5.95096 9.0574 9.1532 9.0574C12.3554 9.0574 14.6195 11.5476 14.6195 14.8145C14.6195 18.0813 12.3554 20.5716 9.1532 20.5716Z",fill:"black"})]}),Wn=a.memo(On);/*!
52
+ * Copyright (c) 2024-present, Okta, Inc. and/or its affiliates. All rights reserved.
53
+ * The Okta software accompanied by this notice is provided pursuant to the Apache License, Version 2.0 (the "License.")
54
+ *
55
+ * You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0.
56
+ * Unless required by applicable law or agreed to in writing, software
57
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
58
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
59
+ *
60
+ * See the License for the specific language governing permissions and limitations under the License.
61
+ */const Zn=S("div",{shouldForwardProp:e=>e!=="isLogoInteractive"})(({isLogoInteractive:e})=>({alignItems:"center",display:"flex",height:"100%",...e&&{cursor:"pointer"}})),Gn=S("a")(()=>({alignItems:"center",display:"flex",height:"100%"})),Kn=({imageAltText:e,imageUrl:n,logoComponent:t,...r})=>{const c=a.useMemo(()=>t||(e&&n?i.jsx("img",{alt:e,src:n}):i.jsx(Wn,{})),[e,t,n]);return"href"in r&&"ariaLabel"in r?i.jsx(Gn,{"aria-label":r.ariaLabel,"data-se":"sidenav-header-logo",href:r.href,onClick:r.onClick,children:c}):i.jsx(Zn,{"aria-label":r.ariaLabel,"data-se":"sidenav-header-logo",isLogoInteractive:!!r.onClick||r.href,onClick:r.onClick,role:"presentation",children:c})},Te=a.memo(Kn);Te.displayName="SideNavLogo";const Un=S("div")({position:"relative",display:"flex",flexDirection:"column",zIndex:Ee}),Xn=S("div",{shouldForwardProp:e=>e!=="headerBackgroundColor"&&e!=="isSameBackgroundAsMain"&&e!=="odysseyDesignTokens"})(({headerBackgroundColor:e,isSameBackgroundAsMain:n,odysseyDesignTokens:t})=>({display:"flex",alignItems:"center",height:pn,paddingBlock:t.Spacing4,paddingInline:t.Spacing5,backgroundColor:n?e:t.HueNeutralWhite,"svg, img":{maxHeight:"100%",width:"auto",maxWidth:"100%"}})),qn=S("div",{shouldForwardProp:e=>e!=="odysseyDesignTokens"&&e!=="contrastFontColor"})(({contrastFontColor:e,odysseyDesignTokens:n})=>({display:"flex",justifyContent:"space-between",alignItems:"center",paddingBlock:n.Spacing4,paddingInline:n.Spacing5,width:"100%","& .MuiTypography-root":{margin:0,width:"100%",color:e||"inherit"}})),Yn=({appName:e,isLoading:n,logoProps:t})=>{var o;const r=D(),c=N();return i.jsxs(Un,{children:[i.jsx(Xn,{"data-se":"sidenav-header-logo-container",headerBackgroundColor:c==null?void 0:c.sideNavBackgroundColor,isSameBackgroundAsMain:t==null?void 0:t.isSameBackgroundAsMain,odysseyDesignTokens:r,children:n?i.jsx(J,{height:24,variant:"rounded",width:67}):i.jsx(Te,{...t})}),e&&i.jsx(qn,{contrastFontColor:(o=c==null?void 0:c.sideNavContrastColors)==null?void 0:o.fontColor,odysseyDesignTokens:r,children:i.jsx(bn,{component:"h2",children:n?i.jsx(J,{}):e})})]})},ae=a.memo(Yn);ae.displayName="SideNavHeader";/*!
62
+ * Copyright (c) 2024-present, Okta, Inc. and/or its affiliates. All rights reserved.
63
+ * The Okta software accompanied by this notice is provided pursuant to the Apache License, Version 2.0 (the "License.")
64
+ *
65
+ * You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0.
66
+ * Unless required by applicable law or agreed to in writing, software
67
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
68
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
69
+ *
70
+ * See the License for the specific language governing permissions and limitations under the License.
71
+ */const Jn=S("div",{shouldForwardProp:e=>e!=="odysseyDesignTokens"&&e!=="isIconVisible"})(({odysseyDesignTokens:e,isIconVisible:n})=>({width:"100%",marginInlineStart:n?e.Spacing3:0,alignItems:"center",display:"flex",fontSize:e.TypographySizeBody,overflowWrap:"anywhere"})),Qn=({count:e,label:n,startIcon:t,endIcon:r,severity:c,statusLabel:o,translate:s})=>{const g=D(),d=a.useMemo(()=>({alignItems:"center",display:"flex",gap:g.Spacing1,marginInlineStart:g.Spacing2}),[g]);return i.jsxs(i.Fragment,{children:[t&&t,i.jsxs(Jn,{isIconVisible:!!t,odysseyDesignTokens:g,translate:s,children:[n,!e&&c&&i.jsx(ie,{sx:d,children:c&&i.jsx(Bn,{label:o||"",severity:c})}),!c&&e&&i.jsx(ie,{sx:d,children:e&&i.jsx(kn,{badgeContent:e})})]}),r&&r]})},q=a.memo(Qn);q.displayName="SideNavItemLinkContent";const ce=S("li",{shouldForwardProp:e=>e!=="isSelected"&&e!=="odysseyDesignTokens"&&e!=="sideNavContrastColors"})(({isSelected:e,odysseyDesignTokens:n,sideNavContrastColors:t})=>({display:"flex",alignItems:"center",backgroundColor:"unset",borderRadius:n.BorderRadiusMain,transition:`backgroundColor ${n.TransitionDurationMain}, color ${n.TransitionDurationMain}`,...e&&{color:t!=null&&t.fontColor?`${t.fontColor}`:`${n.TypographyColorAction}`,backgroundColor:(t==null?void 0:t.itemSelectedBackgroundColor)||n.HueBlue50}})),Cn=e=>{e&&(e==null||e.scrollIntoView({behavior:"instant",block:"center",inline:"nearest"}))},He=({isDisabled:e,isSelected:n,odysseyDesignTokens:t,sideNavContrastColors:r,isActiveDropTarget:c})=>({display:"flex",alignItems:"center",width:"100%",textDecoration:"none",color:r!=null&&r.fontColor?`${r==null?void 0:r.fontColor} !important`:`${t.TypographyColorHeading} !important`,minHeight:"unset",paddingBlock:t.Spacing3,paddingInlineEnd:t.Spacing4,borderRadius:t.BorderRadiusMain,transition:`backgroundColor ${t.TransitionDurationMain}, color ${t.TransitionDurationMain}`,cursor:"pointer",...c&&{backgroundColor:(r==null?void 0:r.itemHoverBackgroundColor)||t.HueNeutral50},"&:hover, li:has(> button:hover, > button:focus, > button:focus-visible) &":{textDecoration:"none",backgroundColor:(r==null?void 0:r.itemHoverBackgroundColor)||t.HueNeutral50,...n&&{backgroundColor:(r==null?void 0:r.itemSelectedBackgroundColor)||t.HueBlue50,color:(r==null?void 0:r.fontColor)||t.TypographyColorAction},...e&&{backgroundColor:"unset"}},...n&&{color:r!=null&&r.fontColor?`${r==null?void 0:r.fontColor} !important`:`${t.TypographyColorAction} !important`,fontWeight:t.TypographyWeightBodyBold},...e&&{cursor:"default",color:`${t.TypographyColorDisabled} !important`,...(r==null?void 0:r.itemDisabledFontColor)&&{color:`${r==null?void 0:r.itemDisabledFontColor} !important`}},"&:focus-visible":{outline:"none",boxShadow:`inset 0 0 0 2px ${(r==null?void 0:r.focusRingColor)||t.PalettePrimaryMain}`}}),Fe=({odysseyDesignTokens:e,contextValue:n,paddingInlineStart:t=e.Spacing6})=>({paddingInlineStart:`calc(${e.Spacing4} * ${n.depth} + ${t})`,...n.depth===1&&{paddingInlineStart:e.Spacing4},...n.isCompact&&{paddingBlock:e.Spacing1}}),we=S("div",{shouldForwardProp:e=>e!=="odysseyDesignTokens"&&e!="contextValue"&&e!=="isDisabled"&&e!=="sideNavContrastColors"&&e!=="isSelected"&&e!=="isActiveDropTarget"})(({isDisabled:e,isSelected:n,contextValue:t,odysseyDesignTokens:r,sideNavContrastColors:c,isActiveDropTarget:o})=>({...He({isDisabled:e,isSelected:n,odysseyDesignTokens:r,sideNavContrastColors:c,isActiveDropTarget:o}),...Fe({odysseyDesignTokens:r,contextValue:t,paddingInlineStart:t.absolutePaddingStart})})),et=S(En,{shouldForwardProp:e=>e!="contextValue"&&e!=="isDisabled"&&e!=="isSelected"&&e!=="odysseyDesignTokens"&&e!=="sideNavContrastColors"&&e!=="isActiveDropTarget"})(({isDisabled:e,isSelected:n,contextValue:t,odysseyDesignTokens:r,sideNavContrastColors:c,isActiveDropTarget:o})=>({...He({isDisabled:e,isSelected:n,odysseyDesignTokens:r,sideNavContrastColors:c,isActiveDropTarget:o}),...Fe({odysseyDesignTokens:r,contextValue:t,paddingInlineStart:t.absolutePaddingStart})})),nt=({count:e,id:n,label:t,href:r,target:c,startIcon:o,severity:s,statusLabel:g,endIcon:d,onClick:f,isDisabled:u,isSelected:p,scrollRef:b,onItemSelected:m,translate:x})=>{const v=N(),P=Le(),F=a.useMemo(()=>P,[P]),A=D(),[L,T]=a.useState(!1),_=a.useRef(null);a.useImperativeHandle(b,()=>({scrollIntoView:()=>{Cn(_.current)}}),[]);const j=a.useCallback(H=>{m==null||m(n),f==null||f(H)},[n,f,m]),W=a.useCallback(H=>{(H==null?void 0:H.key)==="Enter"&&(H.preventDefault(),m==null||m(n),f==null||f(H))},[n,f,m]);return i.jsx(ce,{"aria-current":p?"page":void 0,"aria-disabled":u,disabled:u,id:n,isSelected:p,odysseyDesignTokens:A,onDragLeave:()=>{T(!1)},onDragOver:()=>{T(!0)},onDrop:()=>{T(!1)},ref:_,sideNavContrastColors:v==null?void 0:v.sideNavContrastColors,children:u?i.jsx(we,{contextValue:F,"data-se":"tb--sidenav-text-container",isActiveDropTarget:!1,isDisabled:u,isSelected:p,odysseyDesignTokens:A,sideNavContrastColors:v==null?void 0:v.sideNavContrastColors,children:i.jsx(q,{count:e,endIcon:d,label:t,severity:s,startIcon:o,statusLabel:g,translate:x})}):r?i.jsxs(et,{contextValue:F,"data-se":"tb--sidenav-text-container",href:r,isActiveDropTarget:L,isDisabled:u,isSelected:p,odysseyDesignTokens:A,onClick:j,sideNavContrastColors:v==null?void 0:v.sideNavContrastColors,target:c,children:[i.jsx(q,{count:e,endIcon:d,label:t,severity:s,startIcon:o,statusLabel:g,translate:x}),c==="_blank"&&i.jsx("span",{className:"Link-indicator",role:"presentation",children:i.jsx(Ln,{})})]}):i.jsx(we,{contextValue:F,"data-se":"tb--sidenav-text-container",isActiveDropTarget:L,isDisabled:u,isSelected:p,odysseyDesignTokens:A,onClick:j,onKeyDown:W,role:"button",sideNavContrastColors:v==null?void 0:v.sideNavContrastColors,tabIndex:0,children:i.jsx(q,{count:e,endIcon:d,label:t,severity:s,startIcon:o,statusLabel:g,translate:x})})},n)},de=a.memo(nt);de.displayName="SideNavItemContent";/*!
72
+ * Copyright (c) 2024-present, Okta, Inc. and/or its affiliates. All rights reserved.
73
+ * The Okta software accompanied by this notice is provided pursuant to the Apache License, Version 2.0 (the "License.")
74
+ *
75
+ * You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0.
76
+ * Unless required by applicable law or agreed to in writing, software
77
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
78
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
79
+ *
80
+ * See the License for the specific language governing permissions and limitations under the License.
81
+ */const $e=a.createContext({attributes:{},listeners:void 0,ref:a.createRef()}),tt=S("li",{shouldForwardProp:e=>e!=="odysseyDesignTokens"&&e!=="isSelected"&&e!=="sideNavContrastColors"})(({odysseyDesignTokens:e,isSelected:n,sideNavContrastColors:t})=>({position:"relative",button:{top:"50%",left:e.Spacing2,transform:"translateY(-50%)"},svg:{path:{fill:"currentColor",...(t==null?void 0:t.fontColor)&&{fill:t.fontColor}}},"&:has(a:hover, button:hover, a:focus, button:focus, a:focus-visible, button:focus-visible, [role='button']:hover, [role='button']:focus, [role='button']:focus-visible)":{button:{opacity:1,outlineWidth:0}},...n&&{svg:{path:{fill:e.TypographyColorAction,...(t==null?void 0:t.fontColor)&&{fill:t.fontColor}}}}})),rt=S("ul")({padding:0,listStyle:"none",listStyleType:"none"}),it=S("button",{shouldForwardProp:e=>e!=="odysseyDesignTokens"&&e!=="isDragging"&&e!=="focusRingColor"})(({odysseyDesignTokens:e,isDragging:n,focusRingColor:t})=>({position:"absolute",opacity:0,padding:e.Spacing2,border:"none",backgroundColor:"transparent",cursor:`${n?"grabbing":"grab"}`,transition:`opacity ${e.TransitionDurationMain}`,borderRadius:e.BorderRadiusMain,svg:{display:"flex"},"&:focus, &:focus-visible":{outline:"none",boxShadow:`inset 0 0 0 2px ${e.PalettePrimaryMain}`,...t&&{boxShadow:`inset 0 0 0 2px ${t}`}}})),ot=({isDragging:e})=>{var g;const{attributes:n,listeners:t,ref:r}=a.useContext($e),c=D(),{t:o}=Z(),s=N();return i.jsx(it,{...n,...t,"aria-label":o("navigation.drag.handle"),focusRingColor:(g=s==null?void 0:s.sideNavContrastColors)==null?void 0:g.focusRingColor,isDragging:e,odysseyDesignTokens:c,ref:r,children:i.jsx("svg",{fill:"none",height:"16",viewBox:"0 0 16 16",width:"16",xmlns:"http://www.w3.org/2000/svg",children:i.jsx("path",{clipRule:"evenodd",d:"M6 2.33331C6 2.8856 5.55228 3.33331 5 3.33331C4.44772 3.33331 4 2.8856 4 2.33331C4 1.78103 4.44772 1.33331 5 1.33331C5.55228 1.33331 6 1.78103 6 2.33331ZM11 3.33331C11.5523 3.33331 12 2.8856 12 2.33331C12 1.78103 11.5523 1.33331 11 1.33331C10.4477 1.33331 10 1.78103 10 2.33331C10 2.8856 10.4477 3.33331 11 3.33331ZM11 7.11109C11.5523 7.11109 12 6.66338 12 6.11109C12 5.55881 11.5523 5.11109 11 5.11109C10.4477 5.11109 10 5.55881 10 6.11109C10 6.66338 10.4477 7.11109 11 7.11109ZM12 9.88887C12 10.4412 11.5523 10.8889 11 10.8889C10.4477 10.8889 10 10.4412 10 9.88887C10 9.33659 10.4477 8.88887 11 8.88887C11.5523 8.88887 12 9.33659 12 9.88887ZM11 14.6666C11.5523 14.6666 12 14.2189 12 13.6666C12 13.1144 11.5523 12.6666 11 12.6666C10.4477 12.6666 10 13.1144 10 13.6666C10 14.2189 10.4477 14.6666 11 14.6666ZM5 7.11109C5.55228 7.11109 6 6.66338 6 6.11109C6 5.55881 5.55228 5.11109 5 5.11109C4.44772 5.11109 4 5.55881 4 6.11109C4 6.66338 4.44772 7.11109 5 7.11109ZM6 9.88888C6 10.4412 5.55228 10.8889 5 10.8889C4.44772 10.8889 4 10.4412 4 9.88888C4 9.33659 4.44772 8.88888 5 8.88888C5.55228 8.88888 6 9.33659 6 9.88888ZM5 14.6666C5.55228 14.6666 6 14.2189 6 13.6666C6 13.1144 5.55228 12.6666 5 12.6666C4.44772 12.6666 4 13.1144 4 13.6666C4 14.2189 4.44772 14.6666 5 14.6666Z",fill:"#3F59E4",fillRule:"evenodd"})})})},at=({id:e,isDisabled:n,isSelected:t,isSortable:r=!0,children:c})=>{const{attributes:o,isDragging:s,listeners:g,setNodeRef:d,setActivatorNodeRef:f,transform:u,transition:p}=tn({id:e}),b=a.useMemo(()=>({attributes:o,listeners:g,ref:f}),[o,g,f]),m={opacity:s?.4:void 0,transform:rn.Translate.toString(u),transition:p},x=N(),v=D();return i.jsx($e.Provider,{value:b,children:i.jsxs(tt,{isSelected:t,odysseyDesignTokens:v,ref:d,sideNavContrastColors:x==null?void 0:x.sideNavContrastColors,style:m,children:[!n&&r&&i.jsx(ot,{isDragging:s}),i.jsx(rt,{children:c})]})})};/*!
82
+ * Copyright (c) 2024-present, Okta, Inc. and/or its affiliates. All rights reserved.
83
+ * The Okta software accompanied by this notice is provided pursuant to the Apache License, Version 2.0 (the "License.")
84
+ *
85
+ * You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0.
86
+ * Unless required by applicable law or agreed to in writing, software
87
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
88
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
89
+ *
90
+ * See the License for the specific language governing permissions and limitations under the License.
91
+ */const ct={sideEffects:an({styles:{active:{opacity:"0.4"}}})};function dt({children:e}){return i.jsx(on,{dropAnimation:ct,children:e})}/*!
92
+ * Copyright (c) 2024-present, Okta, Inc. and/or its affiliates. All rights reserved.
93
+ * The Okta software accompanied by this notice is provided pursuant to the Apache License, Version 2.0 (the "License.")
94
+ *
95
+ * You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0.
96
+ * Unless required by applicable law or agreed to in writing, software
97
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
98
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
99
+ *
100
+ * See the License for the specific language governing permissions and limitations under the License.
101
+ */const le=({parentId:e,items:n,onChange:t,renderItem:r})=>{const[c,o]=a.useState(null),s=a.useMemo(()=>n.find(u=>u.id===(c==null?void 0:c.id)),[c,n]),g=cn(ve(gn),ve(un,{coordinateGetter:sn})),{t:d}=Z(),f=a.useMemo(()=>({onDragStart:({active:u})=>`${d("sortable.list.drag.start",{activeId:u.id})}`,onDragOver:({active:u,over:p})=>p?`${d("sortable.list.drag.moved.over",{activeId:u.id,overId:p.id})}`:`${d("sortable.list.drag.nolonger.over",{activeId:u.id})}`,onDragEnd:({active:u,over:p})=>p?`${d("sortable.list.drag.end.dropped.over",{activeId:u.id,overId:p.id})}`:`${d("sortable.list.drag.end.dropped",{activeId:u.id})}`,onDragCancel:({active:u})=>`${d("sortable.list.drag.cancel",{activeId:u.id})}`}),[d]);return i.jsxs(dn,{accessibility:{announcements:f},onDragCancel:()=>{o(null)},onDragEnd:({active:u,over:p})=>{if(p&&u.id!==(p==null?void 0:p.id)){const b=n.findIndex(({id:x})=>x===u.id),m=n.findIndex(({id:x})=>x===p.id);n[m].isSortable!==!1&&t(e,u.id,b,m)}o(null)},onDragStart:({active:u})=>{o(u)},sensors:g,children:[i.jsx(ln,{items:n,children:n.map(u=>i.jsx(a.Fragment,{children:r(u)},u.id))}),i.jsx(dt,{children:s?r(s):null})]})};le.Item=at;/*!
102
+ * Copyright (c) 2023-present, Okta, Inc. and/or its affiliates. All rights reserved.
103
+ * The Okta software accompanied by this notice is provided pursuant to the Apache License, Version 2.0 (the "License.")
104
+ *
105
+ * You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0.
106
+ * Unless required by applicable law or agreed to in writing, software
107
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
108
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
109
+ *
110
+ * See the License for the specific language governing permissions and limitations under the License.
111
+ */const lt=({items:e,onChange:n,parentId:t,processSideNavItems:r,depth:c=1})=>{const o=a.useMemo(()=>r(e,c),[r,e,c]),s=a.useMemo(()=>o.map(d=>d.sortableItem),[o]),g=a.useCallback(d=>i.jsx(le.Item,{id:d.id,isDisabled:d.isDisabled,isSelected:d.isSelected,isSortable:d.isSortable,children:d.navItem}),[]);return i.jsx(le,{items:s,onChange:n,parentId:t,renderItem:g})},Re=a.memo(lt);Re.displayName="SideNavSortableList";const V=24,Y=V/2,st=S(Hn,{shouldForwardProp:e=>e!=="clickAreaPadding"&&e!=="odysseyDesignTokens"})(({clickAreaPadding:e,odysseyDesignTokens:n})=>({border:0,height:`${V}px`,left:`-${e*2}px`,padding:0,position:"relative",width:`calc(${V}px + (${e}px * 2))`,zIndex:ue,"&&":{backgroundColor:"transparent",borderColor:"transparent",boxShadow:"none",color:n.PalettePrimaryText},"&:focus-visible":{outline:"none"},"&:hover, &:focus-visible":{color:n.HueNeutralWhite},"&::before":{backgroundColor:n.HueNeutralWhite,borderColor:"transparent",borderRadius:"50%",boxShadow:n.ShadowScale1,color:n.PalettePrimaryText,content:"''",height:`${V}px`,left:`${e*2}px`,position:"absolute",top:0,width:`${V}px`},"&:hover::before, &:focus-visible::before":{backgroundColor:n.PalettePrimaryText}})),ut=S(Dn,{shouldForwardProp:e=>e!=="odysseyDesignTokens"&&e!=="isSideNavCollapsed"})(({isSideNavCollapsed:e,odysseyDesignTokens:n})=>({fontSize:"125%",left:e?void 0:"4px",position:"absolute",right:e?"4px":void 0,top:"3px",transform:e?"rotate(0deg)":"rotate(-180deg)",transitionDuration:n.TransitionDurationMain,transitionProperty:"transform",transitionTimingFunction:"ease-in-out"})),gt=typeof window>"u"?null:document.createElement("button"),mt=({ariaControls:e,clickAreaPadding:n=0,id:t,isSideNavCollapsed:r,onClick:c,onHighlight:o,tabIndex:s})=>{const g=D(),{t:d}=Z(),f=a.useRef(gt);a.useEffect(()=>{var v,P,F,A;const b=()=>{o==null||o(!0)},m=()=>{o==null||o(!1)},x=()=>{var L;o==null||o(!!((L=f.current)!=null&&L.matches(":focus-visible")))};return(v=f.current)==null||v.addEventListener("mouseenter",b),(P=f.current)==null||P.addEventListener("mouseleave",m),(F=f.current)==null||F.addEventListener("focus",x,!0),(A=f.current)==null||A.addEventListener("blur",x,!0),m(),()=>{var L,T,_,j;(L=f.current)==null||L.removeEventListener("mouseenter",b),(T=f.current)==null||T.removeEventListener("mouseleave",m),(_=f.current)==null||_.removeEventListener("focus",x,!0),(j=f.current)==null||j.removeEventListener("blur",x,!0)}},[o]);const u=a.useMemo(()=>d(r?"sidenav.toggle.expand":"sidenav.toggle.collapse"),[r,d]),p=a.useCallback(b=>i.jsx(st,{...b,"aria-controls":e,"aria-expanded":!r,"aria-label":u,clickAreaPadding:n,"data-se":"sidenav-toggle-button","data-sidenav-toggle":!0,id:t,odysseyDesignTokens:g,onClick:c,ref:m=>{var x;m&&(f.current=m,(x=b.ref)==null||x.call(b,m))},tabIndex:s,variant:"floating",children:i.jsx(ut,{isSideNavCollapsed:r,odysseyDesignTokens:g})}),[e,n,t,r,g,c,s,u]);return i.jsx(Tn,{ariaType:"description",placement:"right",text:u,children:i.jsx(An.Consumer,{children:p})})},Pe=a.memo(mt);Pe.displayName="SideNavToggleButton";/*!
112
+ * Copyright (c) 2025-present, Okta, Inc. and/or its affiliates. All rights reserved.
113
+ * The Okta software accompanied by this notice is provided pursuant to the Apache License, Version 2.0 (the "License.")
114
+ *
115
+ * You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0.
116
+ * Unless required by applicable law or agreed to in writing, software
117
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
118
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
119
+ *
120
+ * See the License for the specific language governing permissions and limitations under the License.
121
+ */const ft=e=>{const n=window.sessionStorage.getItem(e);try{return typeof n=="string"?JSON.parse(n):null}catch{return typeof n=="string"?n:null}},St=({initialState:e,key:n})=>{const t=a.useMemo(()=>ft(n),[n]),r=a.useCallback(g=>{const d=typeof g>"u"?"":JSON.stringify(g);window.sessionStorage.setItem(n,d)},[n]),[c,o]=a.useState(()=>t??e);a.useEffect(()=>{r(c)},[c,r]);const s=a.useCallback(()=>{o(t??e)},[e,t]);return Be({onUpdate:s}),{sessionState:c,setSessionState:o}};/*!
122
+ * Copyright (c) 2025-present, Okta, Inc. and/or its affiliates. All rights reserved.
123
+ * The Okta software accompanied by this notice is provided pursuant to the Apache License, Version 2.0 (the "License.")
124
+ *
125
+ * You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0.
126
+ * Unless required by applicable law or agreed to in writing, software
127
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
128
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
129
+ *
130
+ * See the License for the specific language governing permissions and limitations under the License.
131
+ */const bt="__uiShell-sideNav-isCollapsed",ht=e=>St({initialState:e,key:bt}),se=12,pt=2,_e=e=>e.flatMap(n=>n.nestedNavItems?[n,..._e(n.nestedNavItems)]:n),xt=S("div",{shouldForwardProp:e=>e!=="odysseyDesignTokens"&&e!=="isSideNavCollapsed"})(({odysseyDesignTokens:e,isSideNavCollapsed:n})=>({position:"relative",display:"grid",gridTemplateColumns:In,height:"100%",transition:`grid-template-columns ${e.TransitionDurationMain}, opacity 300ms`,transitionTimingFunction:e.TransitionTimingMain,overflow:"hidden",...n&&{gridTemplateColumns:0,opacity:0}})),It=S("div",{shouldForwardProp:e=>e!=="odysseyDesignTokens"&&e!=="isSideNavCollapsed"})(({odysseyDesignTokens:e,isSideNavCollapsed:n})=>({display:"grid",gridTemplateRows:"max-content 1fr max-content",height:"100%",transition:"opacity 50ms",transitionTimingFunction:e.TransitionTimingMain,overflow:"hidden",...n&&{opacity:0}})),yt=S("nav",{shouldForwardProp:e=>e!=="backgroundColor"&&e!=="hasNeighbouringContentAtInlineStart"&&e!=="isAppContentWhiteBackground"&&e!=="isSideNavCollapsed"&&e!=="isSideNavToggleHighlighted"&&e!=="odysseyDesignTokens"})(({backgroundColor:e,hasNeighbouringContentAtInlineStart:n,isAppContentWhiteBackground:t,isSideNavCollapsed:r,isSideNavToggleHighlighted:c,odysseyDesignTokens:o})=>({backgroundColor:e||o.HueNeutralWhite,height:"100%",position:"relative",width:"fit-content","&::before, &::after":{content:"''",height:"100%",pointerEvents:"none",position:"absolute",right:`-${o.BorderWidthMain}`,top:0,transition:`opacity ${o.TransitionDurationMain}, transform ${o.TransitionDurationMain}, width ${o.TransitionDurationMain}`,userSelect:"none",zIndex:ue},"&::before":{backgroundColor:c?o.BorderColorPrimaryControl:o.HueNeutral100,opacity:t||!r&&c?1:0,width:`calc(${o.BorderWidthMain} * 2)`},"&::after":{backgroundColor:o.HueNeutral200,opacity:r?1:0,transform:r&&!n?c?`translateX(calc(100% - (${o.BorderWidthMain} * 2)))`:`translateX(calc(100% - ${se}px))`:"translateX(0)",width:n?0:`calc(${Y+se}px + ${o.BorderWidthMain} * 2)`,...r&&c?{borderRightColor:o.BorderColorPrimaryControl,borderRightStyle:o.BorderStyleMain,borderRightWidth:`calc(${o.BorderWidthMain} * 2)`}:{}}})),vt=S("div",{shouldForwardProp:e=>e!=="hasNeighbouringContentAtInlineStart"&&e!=="isSideNavCollapsed"&&e!=="isSideNavToggleHighlighted"&&e!=="odysseyDesignTokens"})(({hasNeighbouringContentAtInlineStart:e,isSideNavCollapsed:n,isSideNavToggleHighlighted:t,odysseyDesignTokens:r})=>({position:"absolute",right:`${Y}px`,top:xn,width:`${V}px`,transform:n&&!e?t?`translate3d(calc(100% + ${Y+se}px), 0, 0)`:`translate3d(calc(100% + ${Y+pt}px), 0, 0)`:"translate3d(100%, 0, 0)",transition:`transform ${r.TransitionDurationMain}`,zIndex:ue+1})),Mt=S("div",{shouldForwardProp:e=>e!=="borderColor"&&e!=="hasContentScrolled"&&e!=="odysseyDesignTokens"})(({borderColor:e,hasContentScrolled:n,odysseyDesignTokens:t})=>({flexShrink:0,...n&&{borderBottomWidth:t.BorderWidthMain,borderBottomStyle:t.BorderStyleMain,borderBottomColor:t.HueNeutral100,...e&&{borderBottomColor:e.concat("15")}}})),ke=S("ul")(()=>({padding:0,listStyle:"none",listStyleType:"none",margin:0,width:"100%"})),jt=S("div",{shouldForwardProp:e=>e!=="odysseyDesignTokens"&&e!=="hasBlockStartPadding"})(({odysseyDesignTokens:e,hasBlockStartPadding:n})=>({display:"inline-grid",gridTemplateRows:"1fr max-content",overflowY:"auto",paddingBlockStart:n?e.Spacing2:0,paddingInline:e.Spacing2})),wt=S("li",{shouldForwardProp:e=>e!=="odysseyDesignTokens"&&e!=="contrastFontColor"})(({contrastFontColor:e,odysseyDesignTokens:n})=>({color:e||n.HueNeutral600,marginBlock:`${n.Spacing3}`,paddingBlock:n.Spacing1,paddingInline:n.Spacing4})),ze=S("div",{shouldForwardProp:e=>e!=="odysseyDesignTokens"&&e!=="sideNavBackgroundColor"})(({odysseyDesignTokens:e,sideNavBackgroundColor:n})=>({backgroundColor:e.HueNeutralWhite,flexShrink:0,padding:e.Spacing4,...n&&{backgroundColor:n}})),kt=S(ze,{shouldForwardProp:e=>e!=="isContentScrollable"&&e!=="odysseyDesignTokens"&&e!=="sideNavBackgroundColor"})(({isContentScrollable:e,odysseyDesignTokens:n,sideNavBackgroundColor:t})=>({transitionProperty:"box-shadow",transitionDuration:n.TransitionDurationMain,transitionTiming:n.TransitionTimingMain,zIndex:Ee,...e&&{boxShadow:"0px -8px 8px -8px rgba(39, 39, 39, 0.08)"},...t&&{backgroundColor:t}})),Bt=S("div",{shouldForwardProp:e=>e!=="odysseyDesignTokens"&&e!=="sideNavContrastColors"})(({odysseyDesignTokens:e,sideNavContrastColors:n})=>({display:"flex",flexWrap:"wrap",alignItems:"center",fontSize:e.TypographySizeOverline,"a, span":{color:e.HueNeutral600,transition:`color ${e.TransitionDurationMain}`,"&:visited":{color:e.HueNeutral600,...(n==null?void 0:n.fontColor)&&{color:n==null?void 0:n.fontColor}},"&:hover":{textDecoration:"none",color:e.HueNeutral900,...(n==null?void 0:n.fontColor)&&{color:n==null?void 0:n.fontColor}},...(n==null?void 0:n.fontColor)&&{color:n==null?void 0:n.fontColor}}})),Et=S("div",{shouldForwardProp:e=>e!=="odysseyDesignTokens"})(({odysseyDesignTokens:e})=>({alignItems:"center",display:"flex",gap:e.Spacing2,paddingBlock:e.Spacing2,paddingInline:e.Spacing4})),Lt=e=>e.scrollHeight>e.clientHeight,Dt=()=>{const e=D();return i.jsxs(Et,{odysseyDesignTokens:e,children:[i.jsx(J,{height:e.Spacing4,variant:"circular",width:e.Spacing4}),i.jsx(J,{variant:"rounded",width:"100%"})]})},At=({appName:e,footerComponent:n,footerItems:t,hasCustomFooter:r,hasSessionStorageState:c,isCollapsible:o,isCollapsed:s=!1,isCompact:g,isLoading:d,isObtrusive:f,logoProps:u,leavesPaddingStart:p,onCollapse:b,onExpand:m,onSort:x,sideNavItems:v})=>{var fe,Se,be;const[P,F]=a.useState(!1),[A,L]=a.useState(!1),[T,_]=a.useState(!1),[j,W]=a.useState(v||[]),[H,Ve]=a.useState(s),{sessionState:Ne,setSessionState:Oe}=ht(s),O=c?Ne:H,$=c?Oe:Ve,h=N(),k=D(),{t:We}=Z(),E=a.useRef(null),R=a.useRef(null),z=a.useRef(null),Q=a.useRef(null),{isAtContainerInlineStart:Ze}=_n({element:Q.current,monitoringElement:(Se=(fe=Q.current)==null?void 0:fe.parentElement)==null?void 0:Se.parentElement}),C=!Ze,G=a.useMemo(()=>i.jsx("div",{}),[]);a.useEffect(()=>W(v||[]),[v]);const Ge=a.useCallback(()=>{o||$(s)},[s,o,$]),Ke=a.useCallback(()=>{$(s)},[s,$]);Be({onMount:Ge,onUpdate:Ke}),a.useEffect(()=>{const l=()=>{E.current&&E.current.parentElement&&L(Lt(E.current.parentElement))};let I;if(R.current||(R.current=new ResizeObserver(()=>{cancelAnimationFrame(I),I=requestAnimationFrame(l)})),R.current&&E.current&&(R.current.observe(E.current),E.current.parentElement&&R.current.observe(E.current.parentElement)),l(),!z.current&&E.current&&(z.current=new IntersectionObserver(y=>{var w;const M=(w=y.slice().sort((B,re)=>B.time-re.time).at(0))==null?void 0:w.isIntersecting;F(!M)},{root:E.current.parentElement,threshold:1})),z.current&&E.current){const y=E.current,[M]=Array.from((y==null?void 0:y.children)||[]);M&&z.current.observe(M)}return()=>{R.current&&(R.current.disconnect(),R.current=null),z.current&&(z.current.disconnect(),z.current=null),cancelAnimationFrame(I)}},[j]);const ee=a.useRef(null),K=a.useMemo(()=>{const I=_e(j).find(y=>y.isSelected);return I==null?void 0:I.id},[j]);a.useEffect(()=>{K&&ee.current&&ee.current.scrollIntoView()},[K]);const ge=a.useCallback(l=>l===K?ee:void 0,[K]),me=a.useCallback(l=>{const I=M=>M.map(w=>w.nestedNavItems?{...w,isSelected:w.id===l,nestedNavItems:I(w.nestedNavItems)}:{...w,isSelected:w.id===l}),y=I(j);W(y),(s||f)&&(o?h==null||h.closeSideNavMenu():b==null||b())},[s,o,f,b,j,h]),Ue=a.useCallback(l=>({depth:l}),[]),Xe=a.useCallback((l,I)=>({isCompact:g,depth:l,isSortable:I,absolutePaddingStart:p}),[g,p]),qe=(l,I=1)=>{var Ie;const{href:y,id:M,isDefaultExpanded:w,isDisabled:B,isExpanded:re,isSectionHeader:Ce,label:he,startIcon:pe,nestedNavItems:U,isSortable:xe,translate:en}=l;if(Ce)return i.jsx(X,{fallback:G,children:i.jsx(wt,{contrastFontColor:(Ie=h==null?void 0:h.sideNavContrastColors)==null?void 0:Ie.fontColor,id:M,odysseyDesignTokens:k,children:i.jsx(hn,{component:"h3",children:he})})},M);if(U&&U.length>0){const ye=i.jsx(ke,{role:"presentation",children:xe?i.jsx(Re,{depth:I+1,items:U,onChange:Je,parentId:l.id,processSideNavItems:ne}):ne(U,I+1).map(nn=>nn.sortableItem.navItem)});return y?i.jsxs(X,{fallback:G,children:[i.jsx(de,{...l,href:y,onItemSelected:me,scrollRef:ge(l.id),startIcon:l.startIcon}),i.jsx(ce,{"aria-disabled":B,disabled:B,id:`${M}-items`,odysseyDesignTokens:k,children:ye})]},M):i.jsx(X,{fallback:G,children:i.jsx(ce,{"aria-disabled":B,disabled:B,id:M,odysseyDesignTokens:k,children:i.jsx(oe.Provider,{value:Ue(I),children:i.jsx(De,{isCompact:g,isDefaultExpanded:w,isDisabled:B,isExpanded:re,label:he,startIcon:pe,children:ye})},M)})},M)}else return i.jsx(X,{fallback:G,children:i.jsx(oe.Provider,{value:Xe(I,xe),children:i.jsx(de,{...l,onItemSelected:me,scrollRef:ge(M),startIcon:pe,translate:en})},M)},M)},ne=(l,I=1)=>l==null?void 0:l.map(y=>({...y,sortableItem:{id:y.id,isSelected:y.isSelected,isDisabled:y.isDisabled,isSortable:y.isSortable,navItem:qe(y,I)}})),te=a.useCallback(()=>{$(l=>(l?m==null||m():b==null||b(),!l))},[b,m,$]),Ye=a.useCallback(l=>{((l==null?void 0:l.key)==="Enter"||(l==null?void 0:l.code)==="Space")&&(l.preventDefault(),te())},[te]);a.useEffect(()=>{const l=h==null?void 0:h.subscribeToCloseSideNavMenu(()=>{b==null||b(),$(!0)});return()=>{l==null||l()}},[b,$,h]);const Je=a.useCallback((l,I,y,M)=>{const w=j.map(B=>B.id===l&&B.nestedNavItems?{...B,nestedNavItems:mn(B.nestedNavItems,y,M)}:B);W(w),x==null||x(w,l,I,y,M)},[x,j]),Qe=a.useCallback(l=>{_(l)},[]);return i.jsxs(yt,{"aria-label":We("navigation.label"),backgroundColor:h==null?void 0:h.sideNavBackgroundColor,hasNeighbouringContentAtInlineStart:C,id:"side-nav-expandable",isAppContentWhiteBackground:(h==null?void 0:h.appBackgroundColor)===k.HueNeutralWhite,isSideNavCollapsed:O,isSideNavToggleHighlighted:T,odysseyDesignTokens:k,ref:Q,children:[o&&i.jsx(vt,{hasNeighbouringContentAtInlineStart:C,isSideNavCollapsed:O,isSideNavToggleHighlighted:T,odysseyDesignTokens:k,children:i.jsx(Pe,{ariaControls:"side-nav-expandable",clickAreaPadding:O&&!C?V/2:0,isSideNavCollapsed:O,onClick:te,onHighlight:Qe,onKeyDown:Ye})}),i.jsx(Sn,{children:i.jsx(xt,{"data-se":"collapsible-region",isSideNavCollapsed:O,odysseyDesignTokens:k,children:i.jsxs(It,{isSideNavCollapsed:O,odysseyDesignTokens:k,children:[e||d||u?i.jsx(Mt,{borderColor:(be=h==null?void 0:h.sideNavContrastColors)==null?void 0:be.fontColor,hasContentScrolled:P,odysseyDesignTokens:k,children:d&&!e&&!u?i.jsx(ae,{isLoading:d}):i.jsx(ae,{appName:e,isLoading:d,logoProps:u})}):i.jsx("div",{}),i.jsxs(jt,{"data-se":"scrollable-region",hasBlockStartPadding:!e,odysseyDesignTokens:k,children:[i.jsx(ke,{ref:E,role:"none",children:d?Array(6).fill(null).map((l,I)=>i.jsx(Dt,{},I)):ne(j).map(l=>l.sortableItem.navItem)}),!d&&t&&!r&&i.jsx(ze,{odysseyDesignTokens:k,sideNavBackgroundColor:h==null?void 0:h.sideNavBackgroundColor,children:i.jsx(Bt,{odysseyDesignTokens:k,sideNavContrastColors:h==null?void 0:h.sideNavContrastColors,children:i.jsx(Ae,{footerItems:t})})})]}),!d&&!t&&r&&i.jsx(kt,{isContentScrollable:A,odysseyDesignTokens:k,sideNavBackgroundColor:h==null?void 0:h.sideNavBackgroundColor,children:n})]})})})]})},Tt=a.memo(At);Tt.displayName="SideNav";export{Tt as M,Te as a};
@@ -0,0 +1,207 @@
1
+ import{j as e}from"./jsx-runtime-CnH95YSl.js";import{a as Z}from"./index-B-lxVbXh.js";import{c as $,w as ee,e as n,a as f,u as x}from"./index-BJMTVygn.js";import{r as I}from"./index-NdkWRN8K.js";import{P as S}from"./PlaceholderLogo-JfVvgA23.js";import{O as te}from"./OdysseyStorybookThemeDecorator-BRjYVaUu.js";import{M as o}from"./SideNav-CJ4qafJJ.js";import{M as Y,a as J,b as y,c as oe,d as ae,e as ne,f as se}from"./Server-DjXPiVgb.js";import{M as re}from"./User-D6db-Gy0.js";import{M as Q}from"./Home-BiP4Mg1h.js";import{M as C}from"./Folder-BfxqGqvt.js";import{M as ie}from"./Download-CnpAgqy2.js";import{M as le}from"./Clock-Cs7_WjUp.js";import{M as de}from"./Settings-CjXK8-N1.js";import{M as ce}from"./Box-BGpAHVQV.js";import{e as me,d as pe}from"./Typography-DfSdXC7o.js";const ue=()=>e.jsxs(ce,{sx:{border:"1px dashed gray"},children:[e.jsx(me,{children:"Your custom footer content goes here"}),e.jsx(pe,{children:"Dashed border to show content box. Not present outside of this example"})]}),ge={component:o,decorators:[te],parameters:{layout:"fullscreen"},tags:["autodocs"],argTypes:{appName:{control:"text",description:"Header text for the side nav",table:{type:{summary:"string"}}},footerComponent:{description:"Custom footer component to render in place of footer items."},footerItems:{description:"",table:{type:{summary:"Array<SideNavFooterItem>"}}},hasCustomFooter:{control:"boolean",description:"Defines if a custom footer should be visible when available.",table:{type:{summary:"boolean"}}},isCollapsible:{control:"boolean",description:"Controls whether the side nav is collapsible",table:{type:{summary:"boolean"}}},isCollapsed:{control:"boolean",description:"Controls whether the side nav is collapsed",table:{type:{summary:"boolean"}}},isCompact:{control:"boolean",description:"Controls whether the side nav uses compact layout",table:{type:{summary:"boolean"}}},isLoading:{control:"boolean",description:"Controls whether the side nav shows the skeleton loader.",table:{type:{summary:"boolean"}}},logoProps:{description:"Props passed in to render custom logo and/or link",table:{type:{summary:"href?: string; logoSrcUrl?: string; altText?: string; logoComponent?: ReactElement"}}},onCollapse:{description:"Callback to be triggered when the side nav is collapsed"},onExpand:{description:"Callback to be triggered when the side nav is expanded"},onSort:{description:"Callback to be triggered when a nested side nav item inside is reordered. Returns the new items list"},sideNavItems:{description:"",table:{type:{summary:"Array<SideNavItem>"}}}},args:{appName:"Admin Console",isCollapsible:!0,isCollapsed:!1,isCompact:!1,sideNavItems:[{id:"item1",label:"Add new folder",endIcon:e.jsx(Y,{}),onClick:()=>{}},{id:"item2",label:"Admin",isSectionHeader:!0},{id:"item3",href:"/?path=/docs/mui-components-typography--docs",label:"Users",startIcon:e.jsx(re,{})},{id:"item4",label:"Dashboard",startIcon:e.jsx(Q,{}),isDisabled:!0,nestedNavItems:[{id:"item4-1",href:"/",label:"Home"}]},{id:"item5",href:"/",label:"Applications",startIcon:e.jsx(J,{})},{id:"item6",label:"Onboarding",startIcon:e.jsx(C,{}),nestedNavItems:[{id:"item6-1",href:"/",label:"Start",translate:"no"},{id:"item6-2",href:"/",label:"Tasks"},{id:"item6-3",href:"/",label:"Getting Started"}]},{id:"item7",href:"/",label:"Directory",startIcon:e.jsx(y,{})},{id:"item8",label:"Resource Management",isSectionHeader:!0},{id:"item9",href:"/",label:"Kubernetes",startIcon:e.jsx(oe,{}),severity:"info",statusLabel:"BETA"},{id:"item10",href:"/",label:"Reports",startIcon:e.jsx(ie,{})},{id:"item11",href:"/",label:"Identify Governance",target:"_blank",isDisabled:!0,startIcon:e.jsx(ae,{})},{id:"item12",href:"/",label:"Workflows",target:"_blank",startIcon:e.jsx(le,{})},{id:"item13",label:"Security Administration",isSectionHeader:!0},{id:"item14",href:"/",label:"Security",startIcon:e.jsx(ne,{})},{id:"item15",label:"Settings",isDefaultExpanded:!0,isSortable:!0,startIcon:e.jsx(de,{}),nestedNavItems:[{id:"item15-1",href:"/",label:"General",translate:"no"},{id:"item15-2",href:"/",label:"Custom Domain",isSelected:!0},{id:"item15-3",label:"Account Management",translate:"no"},{id:"item15-4",href:"/",label:"Authentication Policies",isDisabled:!0},{id:"item15-5",href:"/",label:"IDP Configuration"}]},{id:"item16",href:"/",label:"System Configuration",startIcon:e.jsx(C,{})},{id:"item17",href:"/",label:"Really Long Item Name With Spaces",startIcon:e.jsx(y,{})},{id:"item18",href:"/",label:"ReallyLongSingleItemNameWithoutSpaces",startIcon:e.jsx(y,{})}],footerItems:[{id:"footer-item-1",label:"Docs",href:"/"},{id:"footer-item-2",label:"Privacy"},{id:"footer-item-3",label:"Security",href:"/"}]}},l={render:t=>e.jsx("div",{style:{height:"100vh"},children:e.jsx(o,{...t})}),play:async({canvasElement:t,step:s})=>{$({testIdAttribute:"data-se"});const r=ee(t),a=r.getByRole("button",{name:"Close navigation"}),b=r.getByRole("navigation",{name:"Main navigation"}),i=r.getByTestId("scrollable-region");await s("Side Nav Should be scrolled as expected",async()=>{await new Promise(v=>setTimeout(v,100)),i.scrollTop!==0?n(i.scrollTop).not.toBe(0):await f(()=>{n(i.scrollTop).not.toBe(0)},{timeout:1e3})}),await s("Side Nav Collapse",async()=>{await x.click(a),await f(()=>{n(a.ariaExpanded).toEqual("false"),n(b).toHaveStyle({width:0})})}),await s("Side Nav Expand",async()=>{await x.click(a),await f(()=>{n(a.ariaExpanded).toEqual("true"),n(b).toBeVisible()})})}},d={args:{appName:void 0,logoProps:{logoComponent:e.jsx(S.One,{})},sideNavItems:[{href:"#",id:"sortable-item1",label:"My Apps",onClick:t=>{t.preventDefault(),Z('onClick: "My Apps"')(t)},isSortable:!0,startIcon:e.jsx(Q,{}),nestedNavItems:[{id:"sortable-item1-1",label:"Recently Used",isSortable:!1},{id:"sortable-item1-2",label:"Work"},{id:"sortable-item1-3",label:"Group 1"},{id:"sortable-item1-4",label:"Group 2"},{id:"sortable-item1-5",label:"Add section",endIcon:e.jsx(Y,{}),isSortable:!1}]},{id:"sortable-item2",label:"Notifications",startIcon:e.jsx(se,{}),count:1},{id:"sortable-item3",label:"Add apps",startIcon:e.jsx(J,{})}]},render:t=>e.jsx("div",{style:{height:"100vh"},children:e.jsx(o,{...t})})},c={args:{isLoading:!0},render:t=>e.jsx("div",{style:{height:"100vh"},children:e.jsx(o,{...t})})},m={args:{logoProps:{logoComponent:e.jsx(S.One,{})}},render:t=>e.jsx("div",{style:{height:"100vh"},children:e.jsx(o,{...t})})},p={args:{logoProps:{imageUrl:"https://placehold.co/600x60",imageAltText:"My custom image logo"}},render:t=>e.jsx("div",{style:{height:"100vh"},children:e.jsx(o,{...t})})},u={args:{logoProps:{href:"/",logoComponent:e.jsx(S.One,{}),ariaLabel:"My custom image logo"}},render:t=>e.jsx("div",{style:{height:"100vh"},children:e.jsx(o,{...t})})},g={args:{footerItems:void 0,hasCustomFooter:!0,footerComponent:e.jsx(ue,{})},render:t=>e.jsx("div",{style:{height:"100vh"},children:e.jsx(o,{...t})})},h={args:{isLoading:!0},render:function({sideNavItems:s,isLoading:r,...a}){const[b,i]=I.useState([]),[v,X]=I.useState(r);return I.useEffect(()=>{setTimeout(()=>{i(s||[]),X(!1)},1e3)}),e.jsx("div",{style:{height:"100vh"},children:e.jsx(o,{isLoading:v,sideNavItems:b,...a})})}};var N,w,j;l.parameters={...l.parameters,docs:{...(N=l.parameters)==null?void 0:N.docs,source:{originalSource:`{
2
+ render: props => {
3
+ return <div style={{
4
+ height: "100vh"
5
+ }}>
6
+ <SideNav {...props} />
7
+ </div>;
8
+ },
9
+ play: async ({
10
+ canvasElement,
11
+ step
12
+ }: PlaywrightProps<SideNavProps>) => {
13
+ configure({
14
+ testIdAttribute: "data-se"
15
+ });
16
+ const canvas = within(canvasElement);
17
+ const toggleButton = canvas.getByRole("button", {
18
+ name: "Close navigation"
19
+ });
20
+ const navElement = canvas.getByRole("navigation", {
21
+ name: "Main navigation"
22
+ });
23
+ // const collapsedRegion = canvas.getByTestId("collapsed-region");
24
+ const scrollableRegion = canvas.getByTestId("scrollable-region");
25
+
26
+ /**
27
+ * The scroll behavior in SideNav is such that if an item has isSelected and the item
28
+ * is not on screen initially, it will scroll to make that item be visible on the screen.
29
+ * So, we should expect that the scrollable container (found by data-se="scrollable-region")
30
+ * should have a non-zero scrollTop once this operation has completed.
31
+ */
32
+ await step("Side Nav Should be scrolled as expected", async () => {
33
+ // Add a small delay to allow initial rendering and scrolling
34
+ await new Promise(resolve => setTimeout(resolve, 100));
35
+
36
+ // On initial load, scrollTop will be zero. Then, once the scroll operation completes,
37
+ // it should be non-zero.
38
+ if (scrollableRegion.scrollTop !== 0) {
39
+ expect(scrollableRegion.scrollTop).not.toBe(0);
40
+ } else {
41
+ await waitFor(() => {
42
+ expect(scrollableRegion.scrollTop).not.toBe(0);
43
+ }, {
44
+ timeout: 1000
45
+ });
46
+ }
47
+ });
48
+ await step("Side Nav Collapse", async () => {
49
+ await userEvent.click(toggleButton);
50
+ await waitFor(() => {
51
+ expect(toggleButton.ariaExpanded).toEqual("false");
52
+ expect(navElement).toHaveStyle({
53
+ width: 0
54
+ });
55
+ });
56
+ });
57
+ await step("Side Nav Expand", async () => {
58
+ await userEvent.click(toggleButton);
59
+ await waitFor(() => {
60
+ expect(toggleButton.ariaExpanded).toEqual("true");
61
+ expect(navElement).toBeVisible();
62
+ });
63
+ });
64
+ }
65
+ }`,...(j=(w=l.parameters)==null?void 0:w.docs)==null?void 0:j.source}}};var M,L,E;d.parameters={...d.parameters,docs:{...(M=d.parameters)==null?void 0:M.docs,source:{originalSource:`{
66
+ args: {
67
+ appName: undefined,
68
+ logoProps: {
69
+ logoComponent: <PlaceholderLogo.One />
70
+ },
71
+ sideNavItems: [{
72
+ href: "#",
73
+ id: "sortable-item1",
74
+ label: "My Apps",
75
+ onClick: event => {
76
+ event.preventDefault();
77
+ action('onClick: "My Apps"')(event);
78
+ },
79
+ isSortable: true,
80
+ startIcon: <HomeIcon />,
81
+ nestedNavItems: [{
82
+ id: "sortable-item1-1",
83
+ label: "Recently Used",
84
+ isSortable: false
85
+ }, {
86
+ id: "sortable-item1-2",
87
+ label: "Work"
88
+ }, {
89
+ id: "sortable-item1-3",
90
+ label: "Group 1"
91
+ }, {
92
+ id: "sortable-item1-4",
93
+ label: "Group 2"
94
+ }, {
95
+ id: "sortable-item1-5",
96
+ label: "Add section",
97
+ endIcon: <AddCircleIcon />,
98
+ isSortable: false
99
+ }]
100
+ }, {
101
+ id: "sortable-item2",
102
+ label: "Notifications",
103
+ startIcon: <NotificationIcon />,
104
+ count: 1
105
+ }, {
106
+ id: "sortable-item3",
107
+ label: "Add apps",
108
+ startIcon: <AppsIcon />
109
+ }]
110
+ },
111
+ render: props => {
112
+ return <div style={{
113
+ height: "100vh"
114
+ }}>
115
+ <SideNav {...props} />
116
+ </div>;
117
+ }
118
+ }`,...(E=(L=d.parameters)==null?void 0:L.docs)==null?void 0:E.source}}};var A,k,T;c.parameters={...c.parameters,docs:{...(A=c.parameters)==null?void 0:A.docs,source:{originalSource:`{
119
+ args: {
120
+ isLoading: true
121
+ },
122
+ render: props => {
123
+ return <div style={{
124
+ height: "100vh"
125
+ }}>
126
+ <SideNav {...props} />
127
+ </div>;
128
+ }
129
+ }`,...(T=(k=c.parameters)==null?void 0:k.docs)==null?void 0:T.source}}};var P,z,B;m.parameters={...m.parameters,docs:{...(P=m.parameters)==null?void 0:P.docs,source:{originalSource:`{
130
+ args: {
131
+ logoProps: {
132
+ logoComponent: <PlaceholderLogo.One />
133
+ }
134
+ },
135
+ render: props => {
136
+ return <div style={{
137
+ height: "100vh"
138
+ }}>
139
+ <SideNav {...props} />
140
+ </div>;
141
+ }
142
+ }`,...(B=(z=m.parameters)==null?void 0:z.docs)==null?void 0:B.source}}};var D,R,F;p.parameters={...p.parameters,docs:{...(D=p.parameters)==null?void 0:D.docs,source:{originalSource:`{
143
+ args: {
144
+ logoProps: {
145
+ imageUrl: "https://placehold.co/600x60",
146
+ imageAltText: "My custom image logo"
147
+ }
148
+ },
149
+ render: props => {
150
+ return <div style={{
151
+ height: "100vh"
152
+ }}>
153
+ <SideNav {...props} />
154
+ </div>;
155
+ }
156
+ }`,...(F=(R=p.parameters)==null?void 0:R.docs)==null?void 0:F.source}}};var O,H,_;u.parameters={...u.parameters,docs:{...(O=u.parameters)==null?void 0:O.docs,source:{originalSource:`{
157
+ args: {
158
+ logoProps: {
159
+ href: "/",
160
+ logoComponent: <PlaceholderLogo.One />,
161
+ ariaLabel: "My custom image logo"
162
+ }
163
+ },
164
+ render: props => {
165
+ return <div style={{
166
+ height: "100vh"
167
+ }}>
168
+ <SideNav {...props} />
169
+ </div>;
170
+ }
171
+ }`,...(_=(H=u.parameters)==null?void 0:H.docs)==null?void 0:_.source}}};var G,U,W;g.parameters={...g.parameters,docs:{...(G=g.parameters)==null?void 0:G.docs,source:{originalSource:`{
172
+ args: {
173
+ footerItems: undefined,
174
+ hasCustomFooter: true,
175
+ footerComponent: <CustomFooterComponent />
176
+ },
177
+ render: props => {
178
+ return <div style={{
179
+ height: "100vh"
180
+ }}>
181
+ <SideNav {...props} />
182
+ </div>;
183
+ }
184
+ }`,...(W=(U=g.parameters)==null?void 0:U.docs)==null?void 0:W.source}}};var q,V,K;h.parameters={...h.parameters,docs:{...(q=h.parameters)==null?void 0:q.docs,source:{originalSource:`{
185
+ args: {
186
+ isLoading: true
187
+ },
188
+ render: function C({
189
+ sideNavItems,
190
+ isLoading,
191
+ ...props
192
+ }) {
193
+ const [sideNavItemsInState, setSideNavItemsInState] = useState<SideNavItem[]>([]);
194
+ const [isLoadingInState, setIsLoadingInState] = useState(isLoading);
195
+ useEffect(() => {
196
+ setTimeout(() => {
197
+ setSideNavItemsInState(sideNavItems || []);
198
+ setIsLoadingInState(false);
199
+ }, 1000);
200
+ });
201
+ return <div style={{
202
+ height: "100vh"
203
+ }}>
204
+ <SideNav isLoading={isLoadingInState} sideNavItems={sideNavItemsInState} {...props} />
205
+ </div>;
206
+ }
207
+ }`,...(K=(V=h.parameters)==null?void 0:V.docs)==null?void 0:K.source}}};const he=["Default","SortableSideNav","Loading","CustomLogoElement","CustomLogoImage","LogoWithLink","CustomFooterContent","DelayedSideNavItems"],Te=Object.freeze(Object.defineProperty({__proto__:null,CustomFooterContent:g,CustomLogoElement:m,CustomLogoImage:p,Default:l,DelayedSideNavItems:h,Loading:c,LogoWithLink:u,SortableSideNav:d,__namedExportsOrder:he,default:ge},Symbol.toStringTag,{value:"Module"}));export{Te as S};
@@ -0,0 +1,51 @@
1
+ import{V as y,U as w,c as R,_,b as o,d as U,e as S,g as $,ai as u,aj as b}from"./OdysseyThemeProvider-BBwjgzn2.js";import{r as j}from"./index-NdkWRN8K.js";import{j as M}from"./jsx-runtime-CnH95YSl.js";import{a as A}from"./colorManipulator-CjGkpVfF.js";function X(t){return String(t).match(/[\d.\-+]*\s*(.*)/)[1]||""}function N(t){return parseFloat(t)}function B(t){return w("MuiSkeleton",t)}const T=y("MuiSkeleton",["root","text","rectangular","rounded","circular","pulse","wave","withChildren","fitContent","heightAuto"]),E=["animation","className","component","height","style","variant","width"];let r=t=>t,p,m,g,f;const F=t=>{const{classes:a,variant:e,animation:i,hasChildren:s,width:l,height:n}=t;return $({root:["root",e,i,s&&"withChildren",s&&!l&&"fitContent",s&&!n&&"heightAuto"]},B,a)},K=b(p||(p=r`
2
+ 0% {
3
+ opacity: 1;
4
+ }
5
+
6
+ 50% {
7
+ opacity: 0.4;
8
+ }
9
+
10
+ 100% {
11
+ opacity: 1;
12
+ }
13
+ `)),P=b(m||(m=r`
14
+ 0% {
15
+ transform: translateX(-100%);
16
+ }
17
+
18
+ 50% {
19
+ /* +0.5s of delay between each loop */
20
+ transform: translateX(100%);
21
+ }
22
+
23
+ 100% {
24
+ transform: translateX(100%);
25
+ }
26
+ `)),V=U("span",{name:"MuiSkeleton",slot:"Root",overridesResolver:(t,a)=>{const{ownerState:e}=t;return[a.root,a[e.variant],e.animation!==!1&&a[e.animation],e.hasChildren&&a.withChildren,e.hasChildren&&!e.width&&a.fitContent,e.hasChildren&&!e.height&&a.heightAuto]}})(({theme:t,ownerState:a})=>{const e=X(t.shape.borderRadius)||"px",i=N(t.shape.borderRadius);return o({display:"block",backgroundColor:t.vars?t.vars.palette.Skeleton.bg:A(t.palette.text.primary,t.palette.mode==="light"?.11:.13),height:"1.2em"},a.variant==="text"&&{marginTop:0,marginBottom:0,height:"auto",transformOrigin:"0 55%",transform:"scale(1, 0.60)",borderRadius:`${i}${e}/${Math.round(i/.6*10)/10}${e}`,"&:empty:before":{content:'"\\00a0"'}},a.variant==="circular"&&{borderRadius:"50%"},a.variant==="rounded"&&{borderRadius:(t.vars||t).shape.borderRadius},a.hasChildren&&{"& > *":{visibility:"hidden"}},a.hasChildren&&!a.width&&{maxWidth:"fit-content"},a.hasChildren&&!a.height&&{height:"auto"})},({ownerState:t})=>t.animation==="pulse"&&u(g||(g=r`
27
+ animation: ${0} 2s ease-in-out 0.5s infinite;
28
+ `),K),({ownerState:t,theme:a})=>t.animation==="wave"&&u(f||(f=r`
29
+ position: relative;
30
+ overflow: hidden;
31
+
32
+ /* Fix bug in Safari https://bugs.webkit.org/show_bug.cgi?id=68196 */
33
+ -webkit-mask-image: -webkit-radial-gradient(white, black);
34
+
35
+ &::after {
36
+ animation: ${0} 2s linear 0.5s infinite;
37
+ background: linear-gradient(
38
+ 90deg,
39
+ transparent,
40
+ ${0},
41
+ transparent
42
+ );
43
+ content: '';
44
+ position: absolute;
45
+ transform: translateX(-100%); /* Avoid flash during server-side hydration */
46
+ bottom: 0;
47
+ left: 0;
48
+ right: 0;
49
+ top: 0;
50
+ }
51
+ `),P,(a.vars||a).palette.action.hover)),q=j.forwardRef(function(a,e){const i=R({props:a,name:"MuiSkeleton"}),{animation:s="pulse",className:l,component:n="span",height:d,style:v,variant:C="text",width:k}=i,h=_(i,E),c=o({},i,{animation:s,component:n,variant:C,hasChildren:!!h.children}),x=F(c);return M.jsx(V,o({as:n,ref:e,className:S(x.root,l),ownerState:c},h,{style:o({width:k,height:d},v)}))});export{q as S,T as s};
@@ -0,0 +1 @@
1
+ import{b as C,U as A,V as D,c as B,_ as M,d as y,e as V,g as F,p as Y,f as R}from"./OdysseyThemeProvider-BBwjgzn2.js";import{r as i}from"./index-NdkWRN8K.js";import{u as J,a as Q}from"./useIsFocusVisible-DH0qxT5e.js";import{u as P}from"./TransitionGroupContext-DLI0IzWy.js";import{e as j}from"./resolveComponentProps-BzfJewMt.js";import{j as k}from"./jsx-runtime-CnH95YSl.js";import{u as Z}from"./utils-DkZjDCLm.js";import{G as ee}from"./Grow-DacPmog-.js";import{g as ne,u as te}from"./Portal-GAJY6Au9.js";import{o as S}from"./ownerDocument-DW-IO8s5.js";import{P as oe}from"./Paper-XsV8SWR9.js";function z(e){return e.substring(2).toLowerCase()}function re(e,n){return n.documentElement.clientWidth<e.clientX||n.documentElement.clientHeight<e.clientY}function se(e){const{children:n,disableReactTree:s=!1,mouseEvent:o="onClick",onClickAway:l,touchEvent:u="onTouchEnd"}=e,g=i.useRef(!1),d=i.useRef(null),h=i.useRef(!1),v=i.useRef(!1);i.useEffect(()=>(setTimeout(()=>{h.current=!0},0),()=>{h.current=!1}),[]);const m=J(ne(n),d),f=P(a=>{const c=v.current;v.current=!1;const b=S(d.current);if(!h.current||!d.current||"clientX"in a&&re(a,b))return;if(g.current){g.current=!1;return}let t;a.composedPath?t=a.composedPath().indexOf(d.current)>-1:t=!b.documentElement.contains(a.target)||d.current.contains(a.target),!t&&(s||!c)&&l(a)}),x=a=>c=>{v.current=!0;const b=n.props[a];b&&b(c)},E={ref:m};return u!==!1&&(E[u]=x(u)),i.useEffect(()=>{if(u!==!1){const a=z(u),c=S(d.current),b=()=>{g.current=!0};return c.addEventListener(a,f),c.addEventListener("touchmove",b),()=>{c.removeEventListener(a,f),c.removeEventListener("touchmove",b)}}},[f,u]),o!==!1&&(E[o]=x(o)),i.useEffect(()=>{if(o!==!1){const a=z(o),c=S(d.current);return c.addEventListener(a,f),()=>{c.removeEventListener(a,f)}}},[f,o]),k.jsx(i.Fragment,{children:i.cloneElement(n,E)})}function ae(e={}){const{autoHideDuration:n=null,disableWindowBlurListener:s=!1,onClose:o,open:l,resumeHideDuration:u}=e,g=Q();i.useEffect(()=>{if(!l)return;function t(r){r.defaultPrevented||(r.key==="Escape"||r.key==="Esc")&&(o==null||o(r,"escapeKeyDown"))}return document.addEventListener("keydown",t),()=>{document.removeEventListener("keydown",t)}},[l,o]);const d=P((t,r)=>{o==null||o(t,r)}),h=P(t=>{!o||t==null||g.start(t,()=>{d(null,"timeout")})});i.useEffect(()=>(l&&h(n),g.clear),[l,n,h,g]);const v=t=>{o==null||o(t,"clickaway")},m=g.clear,f=i.useCallback(()=>{n!=null&&h(u??n*.5)},[n,u,h]),x=t=>r=>{const p=t.onBlur;p==null||p(r),f()},E=t=>r=>{const p=t.onFocus;p==null||p(r),m()},a=t=>r=>{const p=t.onMouseEnter;p==null||p(r),m()},c=t=>r=>{const p=t.onMouseLeave;p==null||p(r),f()};return i.useEffect(()=>{if(!s&&l)return window.addEventListener("focus",f),window.addEventListener("blur",m),()=>{window.removeEventListener("focus",f),window.removeEventListener("blur",m)}},[s,l,f,m]),{getRootProps:(t={})=>{const r=C({},j(e),j(t));return C({role:"presentation"},t,r,{onBlur:x(r),onFocus:E(r),onMouseEnter:a(r),onMouseLeave:c(r)})},onClickAway:v}}function ie(e){return A("MuiSnackbarContent",e)}D("MuiSnackbarContent",["root","message","action"]);const ce=["action","className","message","role"],le=e=>{const{classes:n}=e;return F({root:["root"],action:["action"],message:["message"]},ie,n)},ue=y(oe,{name:"MuiSnackbarContent",slot:"Root",overridesResolver:(e,n)=>n.root})(({theme:e})=>{const n=e.palette.mode==="light"?.8:.98,s=Y.emphasize(e.palette.background.default,n);return C({},e.typography.body2,{color:e.vars?e.vars.palette.SnackbarContent.color:e.palette.getContrastText(s),backgroundColor:e.vars?e.vars.palette.SnackbarContent.bg:s,display:"flex",alignItems:"center",flexWrap:"wrap",padding:"6px 16px",borderRadius:(e.vars||e).shape.borderRadius,flexGrow:1,[e.breakpoints.up("sm")]:{flexGrow:"initial",minWidth:288}})}),de=y("div",{name:"MuiSnackbarContent",slot:"Message",overridesResolver:(e,n)=>n.message})({padding:"8px 0"}),fe=y("div",{name:"MuiSnackbarContent",slot:"Action",overridesResolver:(e,n)=>n.action})({display:"flex",alignItems:"center",marginLeft:"auto",paddingLeft:16,marginRight:-8}),pe=i.forwardRef(function(n,s){const o=B({props:n,name:"MuiSnackbarContent"}),{action:l,className:u,message:g,role:d="alert"}=o,h=M(o,ce),v=o,m=le(v);return k.jsxs(ue,C({role:d,square:!0,elevation:6,className:V(m.root,u),ownerState:v,ref:s},h,{children:[k.jsx(de,{className:m.message,ownerState:v,children:g}),l?k.jsx(fe,{className:m.action,ownerState:v,children:l}):null]}))});function me(e){return A("MuiSnackbar",e)}D("MuiSnackbar",["root","anchorOriginTopCenter","anchorOriginBottomCenter","anchorOriginTopRight","anchorOriginBottomRight","anchorOriginTopLeft","anchorOriginBottomLeft"]);const ge=["onEnter","onExited"],he=["action","anchorOrigin","autoHideDuration","children","className","ClickAwayListenerProps","ContentProps","disableWindowBlurListener","message","onBlur","onClose","onFocus","onMouseEnter","onMouseLeave","open","resumeHideDuration","TransitionComponent","transitionDuration","TransitionProps"],ve=e=>{const{classes:n,anchorOrigin:s}=e,o={root:["root",`anchorOrigin${R(s.vertical)}${R(s.horizontal)}`]};return F(o,me,n)},H=y("div",{name:"MuiSnackbar",slot:"Root",overridesResolver:(e,n)=>{const{ownerState:s}=e;return[n.root,n[`anchorOrigin${R(s.anchorOrigin.vertical)}${R(s.anchorOrigin.horizontal)}`]]}})(({theme:e,ownerState:n})=>{const s={left:"50%",right:"auto",transform:"translateX(-50%)"};return C({zIndex:(e.vars||e).zIndex.snackbar,position:"fixed",display:"flex",left:8,right:8,justifyContent:"center",alignItems:"center"},n.anchorOrigin.vertical==="top"?{top:8}:{bottom:8},n.anchorOrigin.horizontal==="left"&&{justifyContent:"flex-start"},n.anchorOrigin.horizontal==="right"&&{justifyContent:"flex-end"},{[e.breakpoints.up("sm")]:C({},n.anchorOrigin.vertical==="top"?{top:24}:{bottom:24},n.anchorOrigin.horizontal==="center"&&s,n.anchorOrigin.horizontal==="left"&&{left:24,right:"auto"},n.anchorOrigin.horizontal==="right"&&{right:24,left:"auto"})})}),Pe=i.forwardRef(function(n,s){const o=B({props:n,name:"MuiSnackbar"}),l=Z(),u={enter:l.transitions.duration.enteringScreen,exit:l.transitions.duration.leavingScreen},{action:g,anchorOrigin:{vertical:d,horizontal:h}={vertical:"bottom",horizontal:"left"},autoHideDuration:v=null,children:m,className:f,ClickAwayListenerProps:x,ContentProps:E,disableWindowBlurListener:a=!1,message:c,open:b,TransitionComponent:t=ee,transitionDuration:r=u,TransitionProps:{onEnter:p,onExited:O}={}}=o,N=M(o.TransitionProps,ge),U=M(o,he),w=C({},o,{anchorOrigin:{vertical:d,horizontal:h},autoHideDuration:v,disableWindowBlurListener:a,TransitionComponent:t,transitionDuration:r}),W=ve(w),{getRootProps:_,onClickAway:$}=ae(C({},w)),[I,T]=i.useState(!0),G=te({elementType:H,getSlotProps:_,externalForwardedProps:U,ownerState:w,additionalProps:{ref:s},className:[W.root,f]}),X=L=>{T(!0),O&&O(L)},K=(L,q)=>{T(!1),p&&p(L,q)};return!b&&I?null:k.jsx(se,C({onClickAway:$},x,{children:k.jsx(H,C({},G,{children:k.jsx(t,C({appear:!0,in:b,timeout:r,direction:d==="top"?"down":"up",onEnter:K,onExited:X},N,{children:m||k.jsx(pe,C({message:c,action:g},E))}))}))}))});export{Pe as S};
@@ -0,0 +1 @@
1
+ import{l as V,_ as D,b as k,e as T,al as v,am as p,an as F,a9 as B,ao as M,g as E,U as G,D as N,ap as h,d as U,c as _}from"./OdysseyThemeProvider-BBwjgzn2.js";import{r as d}from"./index-NdkWRN8K.js";import{c as O}from"./createStyled-D0LG5-qz.js";import{j as $}from"./jsx-runtime-CnH95YSl.js";import{u as A}from"./useThemeProps-D4857Xca.js";const L=O(),I=["component","direction","spacing","divider","children","className","useFlexGap"],W=N(),q=L("div",{name:"MuiStack",slot:"Root",overridesResolver:(e,s)=>s.root});function z(e){return A({props:e,name:"MuiStack",defaultTheme:W})}function H(e,s){const n=d.Children.toArray(e).filter(Boolean);return n.reduce((a,c,t)=>(a.push(c),t<n.length-1&&a.push(d.cloneElement(s,{key:`separator-${t}`})),a),[])}const J=e=>({row:"Left","row-reverse":"Right",column:"Top","column-reverse":"Bottom"})[e],K=({ownerState:e,theme:s})=>{let n=k({display:"flex",flexDirection:"column"},v({theme:s},p({values:e.direction,breakpoints:s.breakpoints.values}),a=>({flexDirection:a})));if(e.spacing){const a=F(s),c=Object.keys(s.breakpoints.values).reduce((o,r)=>((typeof e.spacing=="object"&&e.spacing[r]!=null||typeof e.direction=="object"&&e.direction[r]!=null)&&(o[r]=!0),o),{}),t=p({values:e.direction,base:c}),m=p({values:e.spacing,base:c});typeof t=="object"&&Object.keys(t).forEach((o,r,i)=>{if(!t[o]){const u=r>0?t[i[r-1]]:"column";t[o]=u}}),n=B(n,v({theme:s},m,(o,r)=>e.useFlexGap?{gap:h(a,o)}:{"& > :not(style):not(style)":{margin:0},"& > :not(style) ~ :not(style)":{[`margin${J(r?t[r]:e.direction)}`]:h(a,o)}}))}return n=M(s.breakpoints,n),n};function Q(e={}){const{createStyledComponent:s=q,useThemeProps:n=z,componentName:a="MuiStack"}=e,c=()=>E({root:["root"]},o=>G(a,o),{}),t=s(K);return d.forwardRef(function(o,r){const i=n(o),l=V(i),{component:u="div",direction:x="column",spacing:j=0,divider:y,children:g,className:P,useFlexGap:S=!1}=l,C=D(l,I),b={direction:x,spacing:j,useFlexGap:S},R=c();return $.jsx(t,k({as:u,ownerState:b,ref:r,className:T(R.root,P)},C,{children:y?H(g,y):g}))})}const se=Q({createStyledComponent:U("div",{name:"MuiStack",slot:"Root",overridesResolver:(e,s)=>s.root}),useThemeProps:e=>_({props:e,name:"MuiStack"})});export{se as S};
@@ -0,0 +1 @@
1
+ import{j as t}from"./jsx-runtime-CnH95YSl.js";import{u as d,s as l}from"./OdysseyThemeProvider-BBwjgzn2.js";import{O as u}from"./OdysseyStorybookThemeDecorator-BRjYVaUu.js";import{r as h}from"./index-NdkWRN8K.js";import{S as x}from"./Stack-DKhviX3e.js";import"./_commonjsHelpers-gnU0ypJ3.js";import"./index-BJTM6NaI.js";import"./OdysseyProvider-2xjMTEu6.js";import"./createStyled-D0LG5-qz.js";import"./useThemeProps-D4857Xca.js";const y=[0,1,2,3,4,5,6,7,8,9],s=["row","row-reverse","column","column-reverse"],g=({children:e,direction:m="column",spacing:p=2})=>t.jsx(x,{direction:m,spacing:p,children:e}),i=h.memo(g);i.displayName="Stack";const r=l.div(({odysseyDesignTokens:e})=>({display:"flex",alignItems:"center",justifyContent:"center",width:e.Spacing8,height:e.Spacing8,backgroundColor:e.HueNeutral100,border:`1px dashed ${e.PalettePrimaryDarker}`,borderRadius:e.BorderRadiusMain})),f=()=>{const e=d();return t.jsxs(t.Fragment,{children:[t.jsx(r,{odysseyDesignTokens:e,children:"1"}),t.jsx(r,{odysseyDesignTokens:e,children:"2"}),t.jsx(r,{odysseyDesignTokens:e,children:"3"}),t.jsx(r,{odysseyDesignTokens:e,children:"4"})]})},D={component:i,decorators:[u],tags:["autodocs"],argTypes:{children:{control:t.jsx(t.Fragment,{}),description:"The content of the component",table:{type:{summary:"ReactNode"}}},direction:{options:s,control:{type:"radio"},description:"The flex-direction applied to the Stack",table:{type:{summary:s.join(" | ")}},type:{name:"other",value:"radio"}},spacing:{control:"select",options:y.map(e=>e)},sx:{control:"object",description:"The system prop that allows defining system overrides as well as additional CSS styles. See the [MUI `sx` page](https://mui.com/system/getting-started/the-sx-prop/) for more details.",table:{type:{summary:"object"}}}},args:{children:t.jsx(f,{}),spacing:2}},o={};var a,c,n;o.parameters={...o.parameters,docs:{...(a=o.parameters)==null?void 0:a.docs,source:{originalSource:"{}",...(n=(c=o.parameters)==null?void 0:c.docs)==null?void 0:n.source}}};const E=["Default"];export{o as Default,E as __namedExportsOrder,D as default};
@@ -0,0 +1,34 @@
1
+ import{j as r}from"./jsx-runtime-CnH95YSl.js";import{O as I}from"./OdysseyStorybookThemeDecorator-BRjYVaUu.js";import{u as w,M as B}from"./index.esm-CaIA2ztV.js";import{r as e}from"./index-NdkWRN8K.js";import{J as F}from"./OdysseyThemeProvider-BBwjgzn2.js";import{M}from"./Button-DGmXZ3jw.js";import"./index-BJTM6NaI.js";import"./OdysseyProvider-2xjMTEu6.js";import"./_commonjsHelpers-gnU0ypJ3.js";import"./createSvgIcon-DsUj6UQo.js";import"./createChainedFunction-BO_9K8Jh.js";import"./debounce-Be36O1Ab.js";import"./ListItem-C8ebNPnP.js";import"./utils-iop7lDec.js";import"./useFormControl-BMISTZuX.js";import"./FormLabel-BLj3hKkg.js";import"./List-Be7fhh4_.js";import"./useIsFocusVisible-DH0qxT5e.js";import"./isHostComponent-DVu5iVWx.js";import"./ButtonBase-BAQsCgRq.js";import"./TransitionGroupContext-DLI0IzWy.js";import"./ownerDocument-DW-IO8s5.js";import"./ownerWindow-HkKU3E4x.js";import"./useControlled-NQulfz4l.js";import"./index-B5xazMy1.js";import"./index-DieBXP3Z.js";import"./utils-DkZjDCLm.js";import"./Stack-DKhviX3e.js";import"./createStyled-D0LG5-qz.js";import"./useThemeProps-D4857Xca.js";import"./Tooltip-D4AWrTBw.js";import"./Grow-DacPmog-.js";import"./Portal-GAJY6Au9.js";import"./resolveComponentProps-BzfJewMt.js";import"./Popper-DjhYeJJy.js";import"./Paper-XsV8SWR9.js";import"./Box-CWTB5xfE.js";import"./CircularProgress-B5_VbcVt.js";import"./DialogContent-_oGbCJT8.js";import"./Fade-CVbWKXvx.js";import"./Modal-B1-40kNg.js";import"./getScrollbarSize-Bqq2hMjQ.js";import"./dialogActionsClasses-BWrWITLY.js";import"./DialogTitle-DyO9kr6R.js";import"./Typography-Yf1Zkad_.js";import"./Menu-CHod3UUY.js";import"./MenuList-CW8ri5AI.js";import"./colorManipulator-CjGkpVfF.js";import"./IconButton-OY9nJWpv.js";import"./Radio-BimAm2in.js";import"./SwitchBase-D-uzeIbM.js";import"./Checkbox-BVTNXOF7.js";import"./useMobilePicker-5I3ooa1D.js";import"./Select-9yKLDVKS.js";import"./ArrowDropDown-LYMnJjPD.js";import"./InputBase-DSZ9ZgyW.js";import"./FormHelperText-qF3DX-zz.js";import"./useThemeProps-Bfa1XAV-.js";import"./InputAdornment-D4SsBOPe.js";import"./visuallyHidden-Dan1xhjv.js";import"./Button-CdPi1pZc.js";import"./Chip-DXaMeATb.js";import"./MenuItem-B0_vCuIq.js";import"./Collapse-COoe3Qtd.js";import"./AlertTitle-BbBpDTwd.js";import"./useSlot-CaOQD_17.js";import"./Close-ATS01D1v.js";import"./Skeleton-dfR0DjWP.js";import"./Divider-DsFAYUeD.js";import"./Autocomplete-CXy6JKKy.js";import"./ListSubheader-Bwc0JItn.js";import"./tableSortLabelClasses-DtOYtU1J.js";import"./FormControlLabel-BKhSSavj.js";import"./DateTimePicker-LSjVE-IM.js";import"./Tabs-DzeBYjfY.js";import"./DatePicker-txjKmLSi.js";import"./BaseButton-COF38VLB.js";import"./MuiPropsContext-DhRylJZk.js";import"./Tooltip-XQJL1Byd.js";/*!
2
+ * Copyright (c) 2022-present, Okta, Inc. and/or its affiliates. All rights reserved.
3
+ * The Okta software accompanied by this notice is provided pursuant to the Apache License, Version 2.0 (the "License.")
4
+ *
5
+ * You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0.
6
+ * Unless required by applicable law or agreed to in writing, software
7
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
8
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
9
+ *
10
+ * See the License for the specific language governing permissions and limitations under the License.
11
+ */const j=({columns:a=[],data:J=[],getRowId:S,hasError:E,initialState:T,onGlobalFilterChange:i,state:l,ToolbarButtons:n})=>{const{t:L}=F(),c=e.useRef(null),[d,R]=e.useState([]),[t,v]=e.useState();e.useEffect(()=>{t!==void 0&&(i==null||i(t))},[t,i]);const K=e.useMemo(()=>({globalFilter:t,columnFilters:d,...l}),[t,d,l]),V=e.useCallback(({table:s})=>r.jsx(r.Fragment,{children:n&&r.jsx(n,{table:s})}),[n]);e.useEffect(()=>{var s,p;try{(p=(s=c.current)==null?void 0:s.scrollToIndex)==null||p.call(s,0)}catch(C){console.error(C)}},[d,t]);const O=w({columns:a,data:J,enableBottomToolbar:!1,enablePagination:!1,enableRowVirtualization:!0,enableSorting:!1,getRowId:S,initialState:T,muiToolbarAlertBannerProps:E?{children:L("table.error"),color:"error"}:void 0,onColumnFiltersChange:R,onGlobalFilterChange:v,renderTopToolbarCustomActions:V,rowVirtualizerInstanceRef:c,rowVirtualizerOptions:{overscan:4},state:K});return r.jsx(B,{table:O})},k=e.memo(j);k.displayName="StaticTable";const le={component:k,decorators:[I],argTypes:{columns:{control:"object",type:{required:!0,name:"other",value:"MaterialReactTableProps<TData>"}},data:{control:"object",type:{required:!0,name:"other",value:"MaterialReactTableProps<TData>"}},getRowId:{},fetchMoreData:{},hasError:{control:"boolean"},hasRowSelection:{control:"boolean"},initialState:{control:"object"},isFetching:{control:"boolean"},onGlobalFilterChange:{},onPaginationChange:{},onRowSelectionChange:{},state:{control:"object"}}},D=[{accessorKey:"name.firstName",header:"First Name"},{accessorKey:"name.lastName",header:"Last Name"},{accessorKey:"address",Cell:({cell:a})=>a.getValue().concat(","),header:"Address"},{accessorKey:"city",header:"City"},{accessorKey:"state",header:"State"}],g=[{address:"261 Erdman Ford",city:"East Daphne",id:"234823773",name:{firstName:"John",lastName:"Doe"},state:"Kentucky"},{address:"769 Dominic Grove",city:"Columbus",id:"234823774",name:{firstName:"Jane",lastName:"Doe"},state:"Ohio"},{address:"566 Brakus Inlet",city:"South Linda",id:"234823775",name:{firstName:"Joe",lastName:"Doe"},state:"West Virginia"},{address:"722 Emie Stream",city:"Lincoln",id:"234823776",name:{firstName:"Kevin",lastName:"Vandy"},state:"Nebraska"},{address:"32188 Larkin Turnpike",city:"Omaha",id:"234823777",name:{firstName:"Joshua",lastName:"Rolluffs"},state:"Nebraska"},{address:"261 Erdman Ford",city:"East Daphne",id:"334823773",name:{firstName:"John",lastName:"Doe"},state:"Kentucky"},{address:"769 Dominic Grove",city:"Columbus",id:"334823774",name:{firstName:"Jane",lastName:"Doe"},state:"Ohio"},{address:"566 Brakus Inlet",city:"South Linda",id:"334823775",name:{firstName:"Joe",lastName:"Doe"},state:"West Virginia"},{address:"722 Emie Stream",city:"Lincoln",id:"334823776",name:{firstName:"Kevin",lastName:"Vandy"},state:"Nebraska"},{address:"32188 Larkin Turnpike",city:"Omaha",id:"334823777",name:{firstName:"Joshua",lastName:"Rolluffs"},state:"Nebraska"},{address:"261 Erdman Ford",city:"East Daphne",id:"434823773",name:{firstName:"John",lastName:"Doe"},state:"Kentucky"},{address:"769 Dominic Grove",city:"Columbus",id:"434823774",name:{firstName:"Jane",lastName:"Doe"},state:"Ohio"},{address:"566 Brakus Inlet",city:"South Linda",id:"434823775",name:{firstName:"Joe",lastName:"Doe"},state:"West Virginia"},{address:"722 Emie Stream",city:"Lincoln",id:"434823776",name:{firstName:"Kevin",lastName:"Vandy"},state:"Nebraska"},{address:"32188 Larkin Turnpike",city:"Omaha",id:"434823777",name:{firstName:"Joshua",lastName:"Rolluffs"},state:"Nebraska"},{address:"261 Erdman Ford",city:"East Daphne",id:"534823773",name:{firstName:"John",lastName:"Doe"},state:"Kentucky"},{address:"769 Dominic Grove",city:"Columbus",id:"534823774",name:{firstName:"Jane",lastName:"Doe"},state:"Ohio"},{address:"566 Brakus Inlet",city:"South Linda",id:"534823775",name:{firstName:"Joe",lastName:"Doe"},state:"West Virginia"},{address:"722 Emie Stream",city:"Lincoln",id:"534823776",name:{firstName:"Kevin",lastName:"Vandy"},state:"Nebraska"},{address:"32188 Larkin Turnpike",city:"Omaha",id:"534823777",name:{firstName:"Joshua",lastName:"Rolluffs"},state:"Nebraska"},{address:"261 Erdman Ford",city:"East Daphne",id:"634823773",name:{firstName:"John",lastName:"Doe"},state:"Kentucky"},{address:"769 Dominic Grove",city:"Columbus",id:"634823774",name:{firstName:"Jane",lastName:"Doe"},state:"Ohio"},{address:"566 Brakus Inlet",city:"South Linda",id:"634823775",name:{firstName:"Joe",lastName:"Doe"},state:"West Virginia"},{address:"722 Emie Stream",city:"Lincoln",id:"634823776",name:{firstName:"Kevin",lastName:"Vandy"},state:"Nebraska"},{address:"32188 Larkin Turnpike",city:"Omaha",id:"634823777",name:{firstName:"Joshua",lastName:"Rolluffs"},state:"Nebraska"},{address:"261 Erdman Ford",city:"East Daphne",id:"734823773",name:{firstName:"John",lastName:"Doe"},state:"Kentucky"},{address:"769 Dominic Grove",city:"Columbus",id:"734823774",name:{firstName:"Jane",lastName:"Doe"},state:"Ohio"},{address:"566 Brakus Inlet",city:"South Linda",id:"734823775",name:{firstName:"Joe",lastName:"Doe"},state:"West Virginia"},{address:"722 Emie Stream",city:"Lincoln",id:"734823776",name:{firstName:"Kevin",lastName:"Vandy"},state:"Nebraska"},{address:"32188 Larkin Turnpike",city:"Omaha",id:"734823777",name:{firstName:"Joshua",lastName:"Rolluffs"},state:"Nebraska"},{address:"261 Erdman Ford",city:"East Daphne",id:"834823773",name:{firstName:"John",lastName:"Doe"},state:"Kentucky"},{address:"769 Dominic Grove",city:"Columbus",id:"834823774",name:{firstName:"Jane",lastName:"Doe"},state:"Ohio"},{address:"566 Brakus Inlet",city:"South Linda",id:"834823775",name:{firstName:"Joe",lastName:"Doe"},state:"West Virginia"},{address:"722 Emie Stream",city:"Lincoln",id:"834823776",name:{firstName:"Kevin",lastName:"Vandy"},state:"Nebraska"},{address:"32188 Larkin Turnpike",city:"Omaha",id:"834823777",name:{firstName:"Joshua",lastName:"Rolluffs"},state:"Nebraska"},{address:"261 Erdman Ford",city:"East Daphne",id:"934823773",name:{firstName:"John",lastName:"Doe"},state:"Kentucky"},{address:"769 Dominic Grove",city:"Columbus",id:"934823774",name:{firstName:"Jane",lastName:"Doe"},state:"Ohio"},{address:"566 Brakus Inlet",city:"South Linda",id:"934823775",name:{firstName:"Joe",lastName:"Doe"},state:"West Virginia"},{address:"722 Emie Stream",city:"Lincoln",id:"934823776",name:{firstName:"Kevin",lastName:"Vandy"},state:"Nebraska"},{address:"32188 Larkin Turnpike",city:"Omaha",id:"934823777",name:{firstName:"Joshua",lastName:"Rolluffs"},state:"Nebraska"}],o={args:{columns:D,data:g,getRowId:({id:a})=>a}},m={args:{columns:D,data:g,getRowId:({id:a})=>a,ToolbarButtons:({table:a})=>r.jsx(M,{label:"New Action",onClick:()=>console.info(a.getState()),variant:"primary"})}};var u,N,f;o.parameters={...o.parameters,docs:{...(u=o.parameters)==null?void 0:u.docs,source:{originalSource:`{
12
+ args: {
13
+ columns,
14
+ data,
15
+ getRowId: ({
16
+ id
17
+ }: {
18
+ id: string;
19
+ }) => id
20
+ }
21
+ }`,...(f=(N=o.parameters)==null?void 0:N.docs)==null?void 0:f.source}}};var y,h,b;m.parameters={...m.parameters,docs:{...(y=m.parameters)==null?void 0:y.docs,source:{originalSource:`{
22
+ args: {
23
+ columns,
24
+ data,
25
+ getRowId: ({
26
+ id
27
+ }: {
28
+ id: string;
29
+ }) => id,
30
+ ToolbarButtons: ({
31
+ table
32
+ }) => <Button label="New Action" onClick={() => console.info(table.getState())} variant="primary" />
33
+ }
34
+ }`,...(b=(h=m.parameters)==null?void 0:h.docs)==null?void 0:b.source}}};const ce=["BasicUsage","CustomToolbar"];export{o as BasicUsage,m as CustomToolbar,ce as __namedExportsOrder,le as default};
@@ -0,0 +1 @@
1
+ import{r as m}from"./index-NdkWRN8K.js";import{u}from"./MuiPropsContext-DhRylJZk.js";import{j as p}from"./jsx-runtime-CnH95YSl.js";import{C as l}from"./Chip-DXaMeATb.js";const b=["default","error","info","success","warning"],j=["lamp","pill"],n=({ariaDescribedBy:s,label:a,severity:t,testId:r,translate:o,variant:e="pill"})=>{const i=u();return p.jsx(l,{...i,"aria-describedby":s,color:t,"data-se":r,label:a,translate:o,variant:e})},c=m.memo(n);c.displayName="Status";export{c as M,b as a,j as s};