@okta/odyssey-contribution-tooling 1.51.0 → 1.52.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +6 -0
- package/dist/index.es.js.map +1 -1
- package/dist/index.iife.js.map +1 -1
- package/dist/index.umd.cjs.map +1 -1
- package/dist/types/tsconfig.tsbuildinfo +1 -1
- package/package.json +3 -3
- package/dist/appswitcher/admin-app-default.svg +0 -6
- package/dist/appswitcher/admin-app-selected.svg +0 -6
- package/dist/appswitcher/aerial-default.svg +0 -7
- package/dist/appswitcher/aerial-selected.svg +0 -7
- package/dist/appswitcher/okta-dashboard-default.svg +0 -7
- package/dist/appswitcher/okta-dashboard-selected.svg +0 -7
- package/dist/appswitcher/privileged-access-default.svg +0 -4
- package/dist/appswitcher/privileged-access-selected.svg +0 -4
- package/dist/appswitcher/workflows-default.svg +0 -5
- package/dist/appswitcher/workflows-selected.svg +0 -5
- package/dist/assets/Accordion-B6lMitah.js +0 -1
- package/dist/assets/Accordion.stories-jXyeMqKL.js +0 -85
- package/dist/assets/AccordionSummary-Cqqnyfeq.js +0 -1
- package/dist/assets/AddCircle-DYQ5ipEw.js +0 -1
- package/dist/assets/AlertTitle-BdgyvdT3.js +0 -1
- package/dist/assets/AppSwitcher-BP7OhkNx.js +0 -21
- package/dist/assets/AppSwitcher.stories-BX6iWIVF.js +0 -100
- package/dist/assets/AppTile _labs_.stories-D_lkwc9S.js +0 -136
- package/dist/assets/ArrowDropDown-CSyg-khO.js +0 -1
- package/dist/assets/ArrowRight-D4RDomjP.js +0 -1
- package/dist/assets/Autocomplete-CWMUllEE.js +0 -1
- package/dist/assets/Autocomplete-Ce5vsFXe.js +0 -1
- package/dist/assets/Autocomplete.stories-LgPoixE-.js +0 -316
- package/dist/assets/Badge-CgiaxC_M.js +0 -11
- package/dist/assets/Banner-CiZg662S.js +0 -1
- package/dist/assets/Banner.stories-L9TxJM5n.js +0 -96
- package/dist/assets/BaseButton-CPts8Xl1.js +0 -11
- package/dist/assets/BaseMenuButton-Cg0erRE5.js +0 -1
- package/dist/assets/Box-C-xmRxaS.js +0 -1
- package/dist/assets/Box-DS6ZmQE1.js +0 -11
- package/dist/assets/Box-XLjSpNxK.js +0 -1
- package/dist/assets/Box.stories-DlaC0I8z.js +0 -38
- package/dist/assets/Breadcrumb.stories-CU9cbFv5.js +0 -19
- package/dist/assets/BreadcrumbList.stories-BnLz8AbT.js +0 -77
- package/dist/assets/Breadcrumbs-24mVV2FV.js +0 -6
- package/dist/assets/Bug-BREzSHBD.js +0 -1
- package/dist/assets/Button-NJfX6YsF.js +0 -11
- package/dist/assets/Button-dStBbGjZ.js +0 -1
- package/dist/assets/Button.stories-DyHE1lVq.js +0 -271
- package/dist/assets/ButtonBase-Wolvis_2.js +0 -74
- package/dist/assets/Calendar-Cnn3LZfc.js +0 -1
- package/dist/assets/Call-B2-IhRdM.js +0 -1
- package/dist/assets/Callout-CHhRxeIB.js +0 -1
- package/dist/assets/Callout.stories-Cin_Q8VN.js +0 -250
- package/dist/assets/Card-CW2-4q6G.js +0 -1
- package/dist/assets/Card-HHKQqwm3.js +0 -8
- package/dist/assets/Card.stories-BGl8ssIa.js +0 -56
- package/dist/assets/CardActionArea-CmY1RMSI.js +0 -1
- package/dist/assets/CardActions-BOMzzZ-s.js +0 -1
- package/dist/assets/Checkbox-DGd8S5xK.js +0 -1
- package/dist/assets/Checkbox-LVOv88W2.js +0 -1
- package/dist/assets/Checkbox.stories-D6P6eT12.js +0 -113
- package/dist/assets/CheckboxGroup-BbhvyMBP.js +0 -1
- package/dist/assets/CheckboxGroup.stories-C8yW7qIA.js +0 -89
- package/dist/assets/ChevronRight-BEaWGMzi.js +0 -1
- package/dist/assets/ChevronUp-BclvDZ6e.js +0 -1
- package/dist/assets/Chip-p4lq04qX.js +0 -1
- package/dist/assets/CircularProgress-BOLg_ZK_.js +0 -28
- package/dist/assets/CircularProgress-DxmJkz2B.js +0 -1
- package/dist/assets/CircularProgress.stories-BzOGzmX1.js +0 -44
- package/dist/assets/Clock-dOo7_xs2.js +0 -1
- package/dist/assets/Close-DWj_zrWe.js +0 -1
- package/dist/assets/Code Styling Guidelines-CFH47C47.js +0 -14
- package/dist/assets/Collapse-Bf9rwi0n.js +0 -1
- package/dist/assets/Color-YHDXOIA2-XSMM8EzF.js +0 -1
- package/dist/assets/CssBaseline-BGmj7vII.js +0 -191
- package/dist/assets/CssBaseline.stories-CP5iNADe.js +0 -364
- package/dist/assets/Custom Theming-AWFd82gK.js +0 -135
- package/dist/assets/Custom Theming.stories-C1lIShsm.js +0 -95
- package/dist/assets/DataFilters _labs_-CbOuA1XC.js +0 -55
- package/dist/assets/DataFilters _labs_.stories-6lSpygV-.js +0 -31
- package/dist/assets/DataFilters-B56b7pp1.js +0 -1
- package/dist/assets/DataTable _labs_-DhjIky-X.js +0 -41
- package/dist/assets/DataTable _labs_.stories-SmL2caYK.js +0 -21
- package/dist/assets/DataTable-Dufh-85W.js +0 -404
- package/dist/assets/DataTable-OEqPccZc.js +0 -21
- package/dist/assets/DataTable.stories-B6pas1e4.js +0 -438
- package/dist/assets/DataView _labs_-D-jpJC9O.js +0 -332
- package/dist/assets/DataView _labs_.stories-CEQuFgsA.js +0 -438
- package/dist/assets/DataView-Cdrj2-_S.js +0 -91
- package/dist/assets/DataView.stories-C3-uJ4p2.js +0 -954
- package/dist/assets/DatePicker-BxTRZXpL.js +0 -1
- package/dist/assets/DatePicker-CV_LiOVN.js +0 -11
- package/dist/assets/DatePicker.stories-CybR6XBy.js +0 -133
- package/dist/assets/DateTimePicker-DFQrMMgz.js +0 -1
- package/dist/assets/DateTimePicker.stories-Bx4peuGE.js +0 -158
- package/dist/assets/Design Tokens-iEdY5-4y.js +0 -4
- package/dist/assets/Dialog-B5LWaL0C.js +0 -1
- package/dist/assets/Dialog.stories-M1TA90dU.js +0 -207
- package/dist/assets/DialogContent-DBoG8cPo.js +0 -1
- package/dist/assets/DialogTitle-6m4SWKSG.js +0 -1
- package/dist/assets/Divider-CtIp4StC.js +0 -1
- package/dist/assets/Divider.stories-DjRXEk1s.js +0 -5
- package/dist/assets/DocsRenderer-CFRXHY34-P8M6yttG.js +0 -2
- package/dist/assets/Documentation-D90FkF1l.js +0 -1
- package/dist/assets/Download-xLlaDLdW.js +0 -1
- package/dist/assets/Drawer-D3_c8kSj.js +0 -33
- package/dist/assets/Drawer.stories-D5ZaAWIB.js +0 -95
- package/dist/assets/EmptyState-BRinTaKa.js +0 -11
- package/dist/assets/EmptyState.stories-D-MGLqky.js +0 -11
- package/dist/assets/ExampleButton.stories-lZAq-r_i.js +0 -320
- package/dist/assets/Extending Translations-iDMcBEO1.js +0 -148
- package/dist/assets/ExternalLink-C7UPr4SL.js +0 -1
- package/dist/assets/Fade-DSMklDt3.js +0 -1
- package/dist/assets/Field-BVmhMv9m.js +0 -11
- package/dist/assets/FieldHint-BFs7d7f5.js +0 -1
- package/dist/assets/Fieldset-C7cnRgpz.js +0 -11
- package/dist/assets/Fieldset.stories-QZ3FrfNb.js +0 -15
- package/dist/assets/FileUploader.stories-CAXhIDLt.js +0 -58
- package/dist/assets/Filter-DIh5C0Cq.js +0 -1
- package/dist/assets/Folder-DTgm0zQ0.js +0 -1
- package/dist/assets/Form Field Accessibility-C_uLQOBv.js +0 -18
- package/dist/assets/Form-EZzJYIT7.js +0 -11
- package/dist/assets/Form.stories-D9GPQhfS.js +0 -69
- package/dist/assets/FormControlLabel-0yOoM5iA.js +0 -1
- package/dist/assets/FormGroup-B2pOz0HL.js +0 -1
- package/dist/assets/FormHelperText-CZEj6vhF.js +0 -1
- package/dist/assets/FormLabel-C4KesWyd.js +0 -1
- package/dist/assets/FullScreenOverlay-CbLDrzu3.js +0 -11
- package/dist/assets/Generating Icons-BlpStA4N.js +0 -16
- package/dist/assets/Globe-CLLXW_yR.js +0 -1
- package/dist/assets/Grid-CTO70W_E.js +0 -1
- package/dist/assets/Group-BQH7lDPW.js +0 -1
- package/dist/assets/GroupPicker _labs_.stories-D-jPedqU.js +0 -33
- package/dist/assets/Grow-CbLflC0D.js +0 -1
- package/dist/assets/Hide-E3YBylpY.js +0 -1
- package/dist/assets/Hint-qhf1AEE0.js +0 -11
- package/dist/assets/HintLink.stories-CYlMoTFx.js +0 -44
- package/dist/assets/Home-yAl98ghs.js +0 -1
- package/dist/assets/Icon _icons_.stories-D-AWLuB9.js +0 -16
- package/dist/assets/IconButton-DwJqCevw.js +0 -1
- package/dist/assets/IconWithTooltip _icons_.stories-DE5HwN5H.js +0 -19
- package/dist/assets/InformationCircle-By7rXsxW.js +0 -1
- package/dist/assets/InputAdornment-CrT6j38e.js +0 -1
- package/dist/assets/InputBase-Cc2rXj8N.js +0 -2
- package/dist/assets/Installing odyssey-react-mui-BXo5U9tZ.js +0 -216
- package/dist/assets/Introduction-DJ-EDw1b.js +0 -36
- package/dist/assets/Layout-DfnguYJ3.js +0 -11
- package/dist/assets/Layout.stories-DGtK-sb4.js +0 -285
- package/dist/assets/Legacy Migrations-BvJnbBns.js +0 -86
- package/dist/assets/Link-B0jVOXLw.js +0 -1
- package/dist/assets/Link-CaBVKAGj.js +0 -11
- package/dist/assets/Link-LYj8-DeM.js +0 -1
- package/dist/assets/Link-P2sjP-aD.js +0 -1
- package/dist/assets/Link.stories-i53_1Tpy.js +0 -38
- package/dist/assets/List-BcG-NsbC.js +0 -1
- package/dist/assets/List-DFK8p7ZW.js +0 -1
- package/dist/assets/ListItem-Bv1M9lel.js +0 -1
- package/dist/assets/ListSubheader-CBvKBAKL.js +0 -1
- package/dist/assets/ListSubheader.stories-C_l7xOCL.js +0 -5
- package/dist/assets/Menu-g2Uj1mcn.js +0 -1
- package/dist/assets/MenuButton-BAmmLodS.js +0 -11
- package/dist/assets/MenuButton.stories-CQVVoTy1.js +0 -246
- package/dist/assets/MenuContext-DKMyPMNY.js +0 -11
- package/dist/assets/MenuItem-CJ8f1-Gg.js +0 -1
- package/dist/assets/MenuItem-DR63CY7B.js +0 -1
- package/dist/assets/MenuItem.stories-BOWN4pFz.js +0 -38
- package/dist/assets/MenuList-sllDVDo3.js +0 -1
- package/dist/assets/Modal-D0XtQHFw.js +0 -1
- package/dist/assets/More-CXrgFSVS.js +0 -1
- package/dist/assets/MuiPropsContext-DhRylJZk.js +0 -11
- package/dist/assets/NativeSelect.stories-SugLBKz7.js +0 -173
- package/dist/assets/Notification-08pZljJb.js +0 -1
- package/dist/assets/OdysseyProvider-YUKfsUrL.js +0 -76
- package/dist/assets/OdysseyStorybookThemeDecorator-DsQ8XVOG.js +0 -1
- package/dist/assets/OdysseyThemeProvider-uYQ_l8PJ.js +0 -189
- package/dist/assets/PageHeader.stories-Bl-DdoS-.js +0 -364
- package/dist/assets/PageHeader.stories-CloMCl88.js +0 -57
- package/dist/assets/PageTemplate _labs_-Dm7sBdz9.js +0 -8
- package/dist/assets/PageTemplate _labs_.stories-Cz0PIbrs.js +0 -306
- package/dist/assets/PageTemplate-Bst4OydU.js +0 -21
- package/dist/assets/PageTemplate.stories-CeRObmlQ.js +0 -205
- package/dist/assets/PaginatedTable _labs_.stories-UxmUHrH9.js +0 -65
- package/dist/assets/Pagination-iboAjua_.js +0 -11
- package/dist/assets/Pagination.stories-BCbuKsR4.js +0 -17
- package/dist/assets/Paper-BGSgbZC6.js +0 -1
- package/dist/assets/PasswordField.stories-DKFTzpqb.js +0 -121
- package/dist/assets/Picker _labs_.stories-BPfssL8O.js +0 -18
- package/dist/assets/PickerWithOptionAdornment _labs_.stories-rMUH3rtj.js +0 -70
- package/dist/assets/PlaceholderLogo-JfVvgA23.js +0 -11
- package/dist/assets/Popper-vW9B5iyN.js +0 -1
- package/dist/assets/Portal-ev1Y_qJb.js +0 -1
- package/dist/assets/ProgressBar.stories-VEY_ihAE.js +0 -311
- package/dist/assets/Radio-4dniU8ku.js +0 -1
- package/dist/assets/Radio-CnmlQGNx.js +0 -1
- package/dist/assets/Radio.stories-DyJFXoBq.js +0 -63
- package/dist/assets/RadioGroup-C_VrT_hm.js +0 -10
- package/dist/assets/RadioGroup-DxwohQ69.js +0 -1
- package/dist/assets/RadioGroup-GPUhtH5i.js +0 -1
- package/dist/assets/RadioGroup.stories-pF3uSMSb.js +0 -138
- package/dist/assets/Refresh-djvJkW-o.js +0 -1
- package/dist/assets/ResourceAccessPolicyComponentsStorybookThemeDecorator-CmW-AnrB.js +0 -212
- package/dist/assets/Right-to-Left (RTL)-DpiFoQRN.js +0 -62
- package/dist/assets/ScreenReaderText-CQNs2mcT.js +0 -1
- package/dist/assets/ScreenReaderText-DgymQTv2.js +0 -15
- package/dist/assets/ScreenReaderText.stories-DCOADRMP.js +0 -8
- package/dist/assets/Search-BdL9PIj1.js +0 -1
- package/dist/assets/SearchDropdown _labs_.stories-DISXh7bC.js +0 -53
- package/dist/assets/SearchField-C-y7eHW0.js +0 -1
- package/dist/assets/SearchField.stories-7IOflkmE.js +0 -37
- package/dist/assets/Select-BcdWA_SU.js +0 -1
- package/dist/assets/Select-mT9rgyNE.js +0 -15
- package/dist/assets/Select.stories-CBn0BmaJ.js +0 -233
- package/dist/assets/Server-BjJU0LGG.js +0 -1
- package/dist/assets/Settings-CjZSn0DO.js +0 -1
- package/dist/assets/Setup-B9xdxAqK.js +0 -7
- package/dist/assets/Shadow DOM-DQqEg_OE.js +0 -64
- package/dist/assets/Show-Blc9FMhI.js +0 -1
- package/dist/assets/SideNav-VVxkM7xa.js +0 -85
- package/dist/assets/SideNav-a8fqWzAH.js +0 -131
- package/dist/assets/SideNav.stories-C0ROmHeE.js +0 -207
- package/dist/assets/Skeleton-BSJpuJ78.js +0 -51
- package/dist/assets/Snackbar-BY4-2ak2.js +0 -1
- package/dist/assets/Stack-Co_ZNMgX.js +0 -1
- package/dist/assets/Stack-jRk0Yp6q.js +0 -1
- package/dist/assets/Stack.stories-Dt0hIC8B.js +0 -1
- package/dist/assets/StaticTable _labs_.stories-Dwx7A_WU.js +0 -34
- package/dist/assets/Status-BbCnhdhJ.js +0 -1
- package/dist/assets/Status.stories-DW2Kp-Dt.js +0 -66
- package/dist/assets/Stepper.stories-DDaIDnwk.js +0 -564
- package/dist/assets/Surface-Ceuyc0F6.js +0 -1
- package/dist/assets/Switch.stories-bT5JBB7t.js +0 -72
- package/dist/assets/SwitchBase-DDdOwpAs.js +0 -1
- package/dist/assets/Sync-BUHhhjqx.js +0 -1
- package/dist/assets/Tabs-AOq_ZOqc.js +0 -1
- package/dist/assets/Tabs-DAl04bRj.js +0 -23
- package/dist/assets/Tabs.stories-nDuOOblr.js +0 -100
- package/dist/assets/Tag-DPyljaiU.js +0 -11
- package/dist/assets/Tag.stories-dG5LwGHg.js +0 -96
- package/dist/assets/TagList-DcY5amcr.js +0 -1
- package/dist/assets/TextField-DvELiaRt.js +0 -1
- package/dist/assets/TextField.stories-B8dPipzE.js +0 -177
- package/dist/assets/Toast.stories-CU2mbz7X.js +0 -164
- package/dist/assets/ToastManager.stories-CNHdRjYp.js +0 -196
- package/dist/assets/Tooltip-Bx__kQJp.js +0 -11
- package/dist/assets/Tooltip-gH7ETEPn.js +0 -1
- package/dist/assets/Tooltip.stories-Dh10ZcLO.js +0 -68
- package/dist/assets/TopNav-CwC-Hfu7.js +0 -11
- package/dist/assets/TopNav.stories-CHynTSTq.js +0 -13
- package/dist/assets/TransitionGroupContext-DAL84N7p.js +0 -1
- package/dist/assets/Typography-BIFhmR2K.js +0 -1
- package/dist/assets/Typography-Cy2gjnNe.js +0 -1
- package/dist/assets/Typography-Dl4InsuU.js +0 -9
- package/dist/assets/Typography-gfYWxfhb.js +0 -1
- package/dist/assets/Typography.stories-BBqx1A0N.js +0 -139
- package/dist/assets/Typography.stories-CWHWJK4j.js +0 -73
- package/dist/assets/UiShell.stories-DR8ntSCC.js +0 -558
- package/dist/assets/UiShellProvider-Cr2Lr10c.js +0 -31
- package/dist/assets/Upload-BmwJgpFZ.js +0 -1
- package/dist/assets/User-DR3B8-Pw.js +0 -1
- package/dist/assets/UserProfile-Cra6rpT4.js +0 -11
- package/dist/assets/UserProfile.stories-BHXBhH-A.js +0 -14
- package/dist/assets/UserProfileMenuButton.stories-CbIX2qVe.js +0 -30
- package/dist/assets/Video-BrBarEGj.js +0 -1
- package/dist/assets/WorkflowsComponentsStorybookThemeDecorator-dm_9FhMX.js +0 -197
- package/dist/assets/_commonjsHelpers-gnU0ypJ3.js +0 -1
- package/dist/assets/assertThisInitialized-B9jnkVVz.js +0 -1
- package/dist/assets/axe-4JP0vCEZ.js +0 -30
- package/dist/assets/axeRun-B-LchFqf.js +0 -11
- package/dist/assets/chunk-XP5HYGXS-BpfKkqn7.js +0 -1
- package/dist/assets/client-ByW5HbEz.js +0 -1
- package/dist/assets/colorManipulator-BxsGKdcY.js +0 -1
- package/dist/assets/constants-CGUp4oSR.js +0 -11
- package/dist/assets/constants-CyailK6t.js +0 -11
- package/dist/assets/createBox-emhTu6dS.js +0 -1
- package/dist/assets/createChainedFunction-BO_9K8Jh.js +0 -1
- package/dist/assets/createStyled-B09qmfVW.js +0 -1
- package/dist/assets/createSvgIcon-SdTF6s8l.js +0 -1
- package/dist/assets/createUniqueId-BHjR7HQF.js +0 -11
- package/dist/assets/debounce-Be36O1Ab.js +0 -1
- package/dist/assets/dialogActionsClasses-Dyfou6Pj.js +0 -1
- package/dist/assets/dom.esm-B9r8vBgQ.js +0 -65
- package/dist/assets/emotion-react-jsx-runtime.browser.esm-DyRr7bu9.js +0 -1
- package/dist/assets/entry-preview-8rdU1LSP.js +0 -2
- package/dist/assets/entry-preview-docs-BKXv92OK.js +0 -46
- package/dist/assets/fieldComponentPropsMetaData-kU3Yruac.js +0 -11
- package/dist/assets/getReactElementRef-CYW9xr5m.js +0 -1
- package/dist/assets/getScrollbarSize-Bqq2hMjQ.js +0 -1
- package/dist/assets/i18next-7SyOfhCu.js +0 -1
- package/dist/assets/iconUtils-IdK4hqQS.js +0 -11
- package/dist/assets/iframe-B5wE2ay9.js +0 -211
- package/dist/assets/index-B-lxVbXh.js +0 -1
- package/dist/assets/index-B5xazMy1.js +0 -1
- package/dist/assets/index-BJMTVygn.js +0 -240
- package/dist/assets/index-BJTM6NaI.js +0 -192
- package/dist/assets/index-BeeV6X6A.js +0 -1
- package/dist/assets/index-Bg123T1w.js +0 -1
- package/dist/assets/index-CXQShRbs.js +0 -8
- package/dist/assets/index-DI1lVgTb.js +0 -1
- package/dist/assets/index-DiEiQB-f.js +0 -384
- package/dist/assets/index-DieBXP3Z.js +0 -24
- package/dist/assets/index-DrFu-skq.js +0 -6
- package/dist/assets/index-NdkWRN8K.js +0 -9
- package/dist/assets/index.esm-CSagFIBX.js +0 -138
- package/dist/assets/index.esm-CcYwRB5x.js +0 -1
- package/dist/assets/index.modern-CkASn_bb.js +0 -14
- package/dist/assets/inheritsLoose-6wpAF9yl.js +0 -1
- package/dist/assets/inputUtils-Dbi8XkA6.js +0 -11
- package/dist/assets/isHostComponent-DVu5iVWx.js +0 -1
- package/dist/assets/jsx-runtime-CnH95YSl.js +0 -9
- package/dist/assets/matchers-7Z3WT2CE-T3xScrR7.js +0 -14
- package/dist/assets/ownerDocument-DW-IO8s5.js +0 -1
- package/dist/assets/ownerWindow-HkKU3E4x.js +0 -1
- package/dist/assets/personData-D_hHWF6B.js +0 -1
- package/dist/assets/personData-FNT5LNaA.js +0 -11
- package/dist/assets/pickerComponentPropsMetadata-DrOyW8Hu.js +0 -21
- package/dist/assets/popper-BXFsSIrb.js +0 -1
- package/dist/assets/preview-B0Jk1i10.js +0 -11
- package/dist/assets/preview-B8lJiyuQ.js +0 -34
- package/dist/assets/preview-BBWR9nbA.js +0 -1
- package/dist/assets/preview-BWzBA1C2.js +0 -396
- package/dist/assets/preview-BaoH-L4j.js +0 -1
- package/dist/assets/preview-CYp4EYYZ.js +0 -1
- package/dist/assets/preview-CvbIS5ZJ.js +0 -1
- package/dist/assets/preview-DGUiP6tS.js +0 -7
- package/dist/assets/preview-DHQbi4pV.js +0 -1
- package/dist/assets/preview-DtECuC7p.js +0 -2
- package/dist/assets/preview-MBifGIx_.js +0 -1
- package/dist/assets/preview-nv3jWDyz.js +0 -2
- package/dist/assets/pxToRem-BrMhKUxS.js +0 -11
- package/dist/assets/react-18-u8niHpKc.js +0 -1
- package/dist/assets/renderUiShell.stories-uAoeUcRt.js +0 -872
- package/dist/assets/resolveComponentProps-zX2d3UUb.js +0 -1
- package/dist/assets/tableSortLabelClasses-t0B4WNP1.js +0 -1
- package/dist/assets/test-utils-H9lH7T5D.js +0 -9
- package/dist/assets/uiShellSharedConstants-CvCey4L_.js +0 -11
- package/dist/assets/useAutocomplete-CkesXhEs.js +0 -11
- package/dist/assets/useControlled-NQulfz4l.js +0 -1
- package/dist/assets/useFormControl-BMISTZuX.js +0 -1
- package/dist/assets/useIsFocusVisible-DH0qxT5e.js +0 -1
- package/dist/assets/useMobilePicker-DEUQ7oE6.js +0 -6
- package/dist/assets/useMountLifecycleEffect-CjsUCFhB.js +0 -11
- package/dist/assets/useOdysseyDateFields-_3ZdpiPL.js +0 -61
- package/dist/assets/useScrollIndication-DEbEqkqk.js +0 -31
- package/dist/assets/useSlot-bWb1W-uo.js +0 -1
- package/dist/assets/useStoryArgOrLocalState-CRQAGSTX.js +0 -11
- package/dist/assets/useThemeProps-4A-zY4M2.js +0 -1
- package/dist/assets/useThemeProps-DOJ_m4Vc.js +0 -1
- package/dist/assets/useUniqueId-DUzAQ6pl.js +0 -11
- package/dist/assets/utilities.esm-DpQ0TZP_.js +0 -5
- package/dist/assets/utils-iop7lDec.js +0 -1
- package/dist/assets/utils-uddq32f3.js +0 -1
- package/dist/assets/v4-CtRu48qb.js +0 -1
- package/dist/assets/visuallyHidden-Dan1xhjv.js +0 -1
- package/dist/favicon.svg +0 -1
- package/dist/iframe.html +0 -748
- package/dist/index.cjs +0 -231
- package/dist/index.d.ts +0 -233
- package/dist/index.html +0 -203
- package/dist/index.json +0 -1
- package/dist/index.mjs +0 -229
- package/dist/index.scss +0 -549
- package/dist/nunito-sans-bold-italic.woff2 +0 -0
- package/dist/nunito-sans-bold.woff2 +0 -0
- package/dist/nunito-sans-italic.woff2 +0 -0
- package/dist/nunito-sans-regular.woff2 +0 -0
- package/dist/project.json +0 -1
- package/dist/sb-addons/a11y-3/manager-bundle.js +0 -220
- package/dist/sb-addons/docs-1/manager-bundle.js +0 -242
- package/dist/sb-addons/essentials-actions-5/manager-bundle.js +0 -3
- package/dist/sb-addons/essentials-backgrounds-6/manager-bundle.js +0 -12
- package/dist/sb-addons/essentials-controls-4/manager-bundle.js +0 -402
- package/dist/sb-addons/essentials-measure-9/manager-bundle.js +0 -3
- package/dist/sb-addons/essentials-outline-10/manager-bundle.js +0 -3
- package/dist/sb-addons/essentials-toolbars-8/manager-bundle.js +0 -3
- package/dist/sb-addons/essentials-viewport-7/manager-bundle.js +0 -3
- package/dist/sb-addons/interactions-11/manager-bundle.js +0 -222
- package/dist/sb-addons/links-2/manager-bundle.js +0 -3
- package/dist/sb-addons/rtl-12/manager-bundle.js +0 -3
- package/dist/sb-addons/storybook-13/manager-bundle.js +0 -3
- package/dist/sb-addons/storybook-core-core-server-presets-0/common-manager-bundle.js +0 -3
- package/dist/sb-common-assets/favicon.svg +0 -1
- package/dist/sb-common-assets/nunito-sans-bold-italic.woff2 +0 -0
- package/dist/sb-common-assets/nunito-sans-bold.woff2 +0 -0
- package/dist/sb-common-assets/nunito-sans-italic.woff2 +0 -0
- package/dist/sb-common-assets/nunito-sans-regular.woff2 +0 -0
- package/dist/sb-manager/globals-module-info.js +0 -1052
- package/dist/sb-manager/globals-runtime.js +0 -42127
- package/dist/sb-manager/globals.js +0 -48
- package/dist/sb-manager/runtime.js +0 -12048
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{r as o}from"./index-NdkWRN8K.js";import{j as e}from"./jsx-runtime-CnH95YSl.js";import{S as a}from"./OdysseyThemeProvider-uYQ_l8PJ.js";const t=o.forwardRef((r,n)=>e.jsx(a,{fill:"none",ref:n,viewBox:"0 0 16 16",xmlns:"http://www.w3.org/2000/svg",...r,children:e.jsx(e.Fragment,{children:e.jsx("path",{clipRule:"evenodd",d:"M4.333 1.333a3 3 0 1 0 0 6 3 3 0 0 0 0-6Zm-1.666 3a1.667 1.667 0 1 1 3.333 0 1.667 1.667 0 0 1-3.333 0Zm1.666 4.334a3 3 0 1 0 0 6 3 3 0 0 0 0-6Zm-1.666 3a1.667 1.667 0 1 1 3.333 0 1.667 1.667 0 0 1-3.333 0Zm6-7.334a3 3 0 1 1 6 0 3 3 0 0 1-6 0Zm3-1.666a1.667 1.667 0 1 0 0 3.333 1.667 1.667 0 0 0 0-3.333Zm0 6a3 3 0 1 0 0 6 3 3 0 0 0 0-6Zm-1.667 3a1.667 1.667 0 1 1 3.333 0 1.667 1.667 0 0 1-3.333 0Z",fill:"currentColor",fillRule:"evenodd"})})})),l=o.memo(t);l.displayName="AppsIcon";const s=o.forwardRef((r,n)=>e.jsx(a,{fill:"none",ref:n,viewBox:"0 0 16 16",xmlns:"http://www.w3.org/2000/svg",...r,children:e.jsx(e.Fragment,{children:e.jsx("path",{clipRule:"evenodd",d:"M3.333 1.333a2 2 0 0 0-2 2v9.334a2 2 0 0 0 2 2h9.334a2 2 0 0 0 2-2V3.333a2 2 0 0 0-2-2H3.333Zm-.666 2c0-.368.298-.666.666-.666H4v10.666h-.667a.667.667 0 0 1-.666-.666V3.333Zm2.666 10h.787l.167-.836a3.106 3.106 0 0 1 6.092 0l.168.836h.12a.667.667 0 0 0 .666-.666V3.333a.667.667 0 0 0-.666-.666H5.333v10.666Zm5.739-.574.115.574H7.48l.115-.574a1.773 1.773 0 0 1 3.477 0ZM8 6.667a1.333 1.333 0 1 1 2.667 0 1.333 1.333 0 0 1-2.667 0ZM9.333 4a2.667 2.667 0 1 0 0 5.333 2.667 2.667 0 0 0 0-5.333Z",fill:"currentColor",fillRule:"evenodd"})})})),c=o.memo(s);c.displayName="DirectoryIcon";const d=o.forwardRef((r,n)=>e.jsx(a,{fill:"none",ref:n,viewBox:"0 0 16 16",xmlns:"http://www.w3.org/2000/svg",...r,children:e.jsxs(e.Fragment,{children:[e.jsx("path",{d:"M11.755 13.975a1.75 1.75 0 1 1-3.5 0 1.75 1.75 0 0 1 3.5 0Z",stroke:"currentColor",strokeWidth:1.5}),e.jsx("path",{d:"M28.988 22.475a8.484 8.484 0 1 1-16.967 0 8.484 8.484 0 0 1 16.967 0Z",stroke:"currentColor",strokeWidth:1.5}),e.jsx("path",{d:"M15.502 24.785c.646-1.382.112-1.903.057-3.024-.039-.803.224-1.83.946-2.785.723-.955 1.629-2.07 4.029-2.07s3.92 1.794 4.42 2.627c.5.833 1.266 2.915.427 6.648",stroke:"currentColor",strokeLinecap:"round",strokeWidth:1.5}),e.jsx("path",{d:"M20.533 21.69c.407 1.16.703 4.089-1.37 6.518",stroke:"currentColor",strokeLinecap:"round",strokeWidth:1.5}),e.jsx("path",{d:"M17.032 26.767c.299-.255.962-1.3 1.121-1.778.16-.478.31-.852 0-2.726-.147-.894.154-1.674.467-2.022.314-.347.919-.842 1.604-.882.946-.056 1.712.414 2.054.72.597.544.955 1.487.982 3.144.026 1.611-.289 2.343-.71 3.87",stroke:"currentColor",strokeLinecap:"round",strokeWidth:1.5}),e.jsx("path",{clipRule:"evenodd",d:"M6.011.292h-.75v8h-3v15.75a2.75 2.75 0 0 0 2.75 2.75h5.667a10.71 10.71 0 0 1-.53-1.5H5.01c-.69 0-1.25-.56-1.25-1.25V9.792h12.502v2.824a10.65 10.65 0 0 1 1.5-.518V8.292h-3v-8h-8.75Zm7.25 8h-6.5v-6.5h6.5v6.5Z",fill:"currentColor",fillRule:"evenodd"})]})})),i=o.memo(d);i.displayName="Fido2Icon";const m=o.forwardRef((r,n)=>e.jsx(a,{fill:"none",ref:n,viewBox:"0 0 16 16",xmlns:"http://www.w3.org/2000/svg",...r,children:e.jsx(e.Fragment,{children:e.jsx("path",{clipRule:"evenodd",d:"M3.333 7.333h9.334V12a2 2 0 0 1-2 2H5.333a2 2 0 0 1-2-2V7.333Zm8-3.333v2H14v6a3.333 3.333 0 0 1-3.333 3.333H5.333A3.333 3.333 0 0 1 2 12V6h2.667V4a3.333 3.333 0 1 1 6.666 0ZM10 4v2H6V4a2 2 0 1 1 4 0Zm-2 7.667a1 1 0 1 0 0-2 1 1 0 0 0 0 2Z",fill:"currentColor",fillRule:"evenodd"})})})),h=o.memo(m);h.displayName="LockIcon";const p=o.forwardRef((r,n)=>e.jsx(a,{fill:"none",ref:n,viewBox:"0 0 16 16",xmlns:"http://www.w3.org/2000/svg",...r,children:e.jsx(e.Fragment,{children:e.jsx("path",{clipRule:"evenodd",d:"M4 .667a2 2 0 0 0-2 2v10.666a2 2 0 0 0 2 2h8a2 2 0 0 0 2-2V2.667a2 2 0 0 0-2-2H4Zm-.667 2C3.333 2.298 3.632 2 4 2h8c.368 0 .667.298.667.667V5.11H3.333V2.667Zm0 3.777h9.334v3.112H3.333V6.444Zm0 4.445v2.444c0 .368.299.667.667.667h8a.667.667 0 0 0 .667-.667V10.89H3.333Zm2-6.667a.667.667 0 1 0 0-1.333.667.667 0 0 0 0 1.333Zm0 4.445a.667.667 0 1 0 0-1.334.667.667 0 0 0 0 1.334ZM6 12.444a.667.667 0 1 1-1.333 0 .667.667 0 0 1 1.333 0Z",fill:"currentColor",fillRule:"evenodd"})})})),v=o.memo(p);v.displayName="ServerIcon";export{l as M,c as a,v as b,i as c,h as d};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{r as o}from"./index-NdkWRN8K.js";import{j as e}from"./jsx-runtime-CnH95YSl.js";import{S as t}from"./OdysseyThemeProvider-uYQ_l8PJ.js";const c=o.forwardRef((r,a)=>e.jsx(t,{fill:"none",ref:a,viewBox:"0 0 16 16",xmlns:"http://www.w3.org/2000/svg",...r,children:e.jsx(e.Fragment,{children:e.jsx("path",{clipRule:"evenodd",d:"M3.17 8c0-.834-.308-1.578-.773-2.152.2-.521.472-1.008.803-1.449.766.132 1.61.028 2.369-.395a3.492 3.492 0 0 0 1.609-1.948 6.065 6.065 0 0 1 1.644 0c.26.779.805 1.5 1.61 1.948l.632-1.133-.633 1.133a3.607 3.607 0 0 0 2.37.395c.33.44.601.928.802 1.45A3.415 3.415 0 0 0 12.829 8c0 .834.31 1.578.774 2.152A5.985 5.985 0 0 1 12.8 11.6a3.607 3.607 0 0 0-2.369.395 3.492 3.492 0 0 0-1.609 1.948 6.065 6.065 0 0 1-1.644 0 3.49 3.49 0 0 0-1.61-1.948A3.607 3.607 0 0 0 3.2 11.6a5.986 5.986 0 0 1-.803-1.45A3.415 3.415 0 0 0 3.171 8ZM8 .667a7.34 7.34 0 0 0-1.982.27c.024.697-.357 1.489-1.1 1.903a2.308 2.308 0 0 1-2.153.025A7.322 7.322 0 0 0 .878 6.244c.543.363.96 1.014.96 1.756S1.42 9.393.877 9.756a7.322 7.322 0 0 0 1.887 3.38 2.308 2.308 0 0 1 2.154.024c.742.415 1.123 1.206 1.099 1.902A7.34 7.34 0 0 0 8 15.333a7.34 7.34 0 0 0 1.982-.27c-.024-.697.357-1.489 1.1-1.903a2.308 2.308 0 0 1 2.153-.025 7.321 7.321 0 0 0 1.887-3.379c-.543-.363-.96-1.014-.96-1.756s.416-1.393.96-1.756a7.321 7.321 0 0 0-1.887-3.38c-.606.32-1.45.368-2.154-.024-.742-.414-1.123-1.206-1.099-1.902A7.34 7.34 0 0 0 8 .667ZM6.667 8a1.333 1.333 0 1 1 2.666 0 1.333 1.333 0 0 1-2.666 0ZM8 5.333a2.667 2.667 0 1 0 0 5.334 2.667 2.667 0 0 0 0-5.334Z",fill:"currentColor",fillRule:"evenodd"})})})),n=o.memo(c);n.displayName="SettingsIcon";export{n as M};
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import{j as e}from"./jsx-runtime-CnH95YSl.js";import{useMDXComponents as o}from"./index-BeeV6X6A.js";import{M as i}from"./index-DiEiQB-f.js";import"./index-NdkWRN8K.js";import"./_commonjsHelpers-gnU0ypJ3.js";import"./iframe-B5wE2ay9.js";import"./index-BJTM6NaI.js";import"./index-B5xazMy1.js";import"./index-DieBXP3Z.js";import"./index-CXQShRbs.js";import"./index-DrFu-skq.js";function r(t){const n={code:"code",h2:"h2",p:"p",pre:"pre",...o(),...t.components};return e.jsxs(e.Fragment,{children:[e.jsx(i,{}),`
|
|
2
|
-
`,e.jsx(n.h2,{id:"generating-okta-test-language-files",children:"Generating Okta Test Language files"}),`
|
|
3
|
-
`,e.jsxs(n.p,{children:["The ",e.jsx(n.code,{children:"*_ok_PL.properties"})," and ",e.jsx(n.code,{children:"*_ok_SK.properties"}),` will automatically be generated pre-commit if there are changes to the
|
|
4
|
-
main `,e.jsx(n.code,{children:".properties"})," file."]}),`
|
|
5
|
-
`,e.jsx(n.p,{children:"To manually generate them, run the following command:"}),`
|
|
6
|
-
`,e.jsx(n.pre,{children:e.jsx(n.code,{className:"language-bash",children:`yarn generate:i18n:pseudoLocaleProperties
|
|
7
|
-
`})})]})}function j(t={}){const{wrapper:n}={...o(),...t.components};return n?e.jsx(n,{...t,children:e.jsx(r,{...t})}):r(t)}export{j as default};
|
|
@@ -1,64 +0,0 @@
|
|
|
1
|
-
import{j as e}from"./jsx-runtime-CnH95YSl.js";import{useMDXComponents as s}from"./index-BeeV6X6A.js";import{M as r}from"./index-DiEiQB-f.js";import"./index-NdkWRN8K.js";import"./_commonjsHelpers-gnU0ypJ3.js";import"./iframe-B5wE2ay9.js";import"./index-BJTM6NaI.js";import"./index-B5xazMy1.js";import"./index-DieBXP3Z.js";import"./index-CXQShRbs.js";import"./index-DrFu-skq.js";function t(o){const n={code:"code",h1:"h1",h2:"h2",p:"p",pre:"pre",...s(),...o.components};return e.jsxs(e.Fragment,{children:[e.jsx(r,{}),`
|
|
2
|
-
`,e.jsx(n.h1,{id:"shadow-dom",children:"Shadow DOM"}),`
|
|
3
|
-
`,e.jsx(n.h2,{id:"using-a-shadow-dom-with-odyssey",children:"Using a Shadow DOM with Odyssey"}),`
|
|
4
|
-
`,e.jsx(n.p,{children:"Sometimes, you may need to sandbox your application's styles so Odyssey components show up correctly in other applications. This typically happens when other global styles are on the page."}),`
|
|
5
|
-
`,e.jsx(n.p,{children:"To sandbox your application's styles, you need to use a Shadow DOM. We now recommend rendering into a Web Component which includes a Shadow DOM."}),`
|
|
6
|
-
`,e.jsxs(n.p,{children:["Odyssey natively supports rendering React in a Web Component's Shadow DOM. Simply use the ",e.jsx(n.code,{children:"renderReactInWebComponent"})," in your app's top-level file (typically ",e.jsx(n.code,{children:"index.ts"}),"):"]}),`
|
|
7
|
-
`,e.jsx(n.pre,{children:e.jsx(n.code,{className:"language-tsx",children:`import { renderReactInWebComponent } from "@okta/odyssey-react-mui/web-component";
|
|
8
|
-
|
|
9
|
-
const appRootElement = document.createElement("div");
|
|
10
|
-
const containerRootElement = document.getElementById("container-root");
|
|
11
|
-
|
|
12
|
-
const reactElement = renderReactInWebComponent({
|
|
13
|
-
getReactComponent: ({ appRootElement, emotionRootElement }) => (
|
|
14
|
-
<OdysseyProvider
|
|
15
|
-
appRootElement={appRootElement}
|
|
16
|
-
emotionRootElement={emotionRootElement}
|
|
17
|
-
>
|
|
18
|
-
<App />
|
|
19
|
-
</OdysseyProvider>
|
|
20
|
-
),
|
|
21
|
-
rootElement: containerRootElement,
|
|
22
|
-
webComponentChildren: appRootElement,
|
|
23
|
-
});
|
|
24
|
-
`})}),`
|
|
25
|
-
`,e.jsxs(n.p,{children:[e.jsx(n.code,{children:"reactElement"})," is the actual rendered web component DOM node. To look inside, you'll need to use ",e.jsx(n.code,{children:"reactElement.shadowRoot"}),"."]}),`
|
|
26
|
-
`,e.jsx(n.h2,{id:"advanced-usage-custom-emotion-cache",children:"Advanced Usage (Custom Emotion Cache)"}),`
|
|
27
|
-
`,e.jsxs(n.p,{children:["If you are using a shadow DOM and a separate Emotion Cache in your application for other CSS styles within your app, you'll need to create an instance of ",e.jsx(n.code,{children:"Emotion"})," and supply it a container reference to the created ",e.jsx(n.code,{children:"emotionRootElement"})," above:"]}),`
|
|
28
|
-
`,e.jsx(n.pre,{children:e.jsx(n.code,{className:"language-ts",children:`// utils.ts
|
|
29
|
-
|
|
30
|
-
// Assumes the ID of the root element of your web application to be \`root\`
|
|
31
|
-
// The ID of the \`emotionRoot\` style element is \`style-root\`
|
|
32
|
-
|
|
33
|
-
import createEmotion from "@emotion/css/create-instance";
|
|
34
|
-
|
|
35
|
-
export const getEmotionCss = () => {
|
|
36
|
-
const { css: emotionCss } = createEmotion({
|
|
37
|
-
container:
|
|
38
|
-
document
|
|
39
|
-
.querySelector("#root")
|
|
40
|
-
?.shadowRoot?.querySelector("#style-root") || undefined,
|
|
41
|
-
key: "css",
|
|
42
|
-
nonce: window.cspNonce,
|
|
43
|
-
prepend: true,
|
|
44
|
-
});
|
|
45
|
-
|
|
46
|
-
return emotionCss;
|
|
47
|
-
};
|
|
48
|
-
`})}),`
|
|
49
|
-
`,e.jsx(n.p,{children:"Then in your code, you can do something like:"}),`
|
|
50
|
-
`,e.jsx(n.pre,{children:e.jsx(n.code,{className:"language-tsx",children:`// MyComponent.tsx
|
|
51
|
-
|
|
52
|
-
import { getEmotionCss } from "./utils";
|
|
53
|
-
|
|
54
|
-
export const MyComponent = () => {
|
|
55
|
-
const emotionCss = getEmotionCss();
|
|
56
|
-
|
|
57
|
-
const componentStyle = css\`
|
|
58
|
-
backgroundcolor: white;
|
|
59
|
-
\`;
|
|
60
|
-
|
|
61
|
-
return <div className={componentStyle}>{/* ... */}</div>;
|
|
62
|
-
};
|
|
63
|
-
`})}),`
|
|
64
|
-
`,e.jsxs(n.p,{children:["If you're using separate ",e.jsx(n.code,{children:"OdysseyThemeProvider"})," and ",e.jsx(n.code,{children:"OdysseyCacheProvider"})," components, both of those also take the ",e.jsx(n.code,{children:"appRootElement"})," element."]})]})}function j(o={}){const{wrapper:n}={...s(),...o.components};return n?e.jsx(n,{...o,children:e.jsx(t,{...o})}):t(o)}export{j as default};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{r}from"./index-NdkWRN8K.js";import{j as o}from"./jsx-runtime-CnH95YSl.js";import{S as a}from"./OdysseyThemeProvider-uYQ_l8PJ.js";const n=r.forwardRef((e,l)=>o.jsx(a,{fill:"none",ref:l,viewBox:"0 0 16 16",xmlns:"http://www.w3.org/2000/svg",...e,children:o.jsx(o.Fragment,{children:o.jsx("path",{clipRule:"evenodd",d:"M2.287 8.542A8.531 8.531 0 0 1 2.046 8a9.433 9.433 0 0 1 1.31-2.253C4.337 4.507 5.831 3.333 8 3.333c2.17 0 3.662 1.174 4.644 2.414A9.437 9.437 0 0 1 13.954 8a9.439 9.439 0 0 1-1.31 2.253c-.981 1.24-2.475 2.414-4.644 2.414-2.17 0-3.663-1.174-4.644-2.414a9.435 9.435 0 0 1-1.069-1.711ZM15.3 7.789 14.667 8l.632.211v.003l-.003.005-.005.015a3.89 3.89 0 0 1-.091.242 10.767 10.767 0 0 1-1.51 2.604C12.56 12.508 10.72 14 8 14s-4.56-1.493-5.69-2.92A10.769 10.769 0 0 1 .8 8.477a6.651 6.651 0 0 1-.091-.242L.704 8.22l-.002-.005v-.002C.7 8.211.7 8.21 1.332 8L.7 7.789v-.003l.003-.005.005-.015A4.094 4.094 0 0 1 .8 7.524 10.767 10.767 0 0 1 2.31 4.92C3.44 3.493 5.28 2 8 2s4.56 1.493 5.69 2.92a10.765 10.765 0 0 1 1.51 2.604 6.751 6.751 0 0 1 .091.242l.005.015.002.005v.002ZM1.333 8l-.632.21L.63 8l.07-.21.632.21Zm13.334 0 .632-.21.07.21-.07.21-.632-.21ZM6 8a2 2 0 1 1 4 0 2 2 0 0 1-4 0Zm2-3.333a3.333 3.333 0 1 0 0 6.666 3.333 3.333 0 0 0 0-6.666Z",fill:"currentColor",fillRule:"evenodd"})})})),s=r.memo(n);s.displayName="ShowIcon";export{s as M};
|
|
@@ -1,85 +0,0 @@
|
|
|
1
|
-
import{j as r}from"./jsx-runtime-CnH95YSl.js";import{useMDXComponents as f}from"./index-BeeV6X6A.js";import"./index-DI1lVgTb.js";import{e as E}from"./iframe-B5wE2ay9.js";import{r as b,e as y}from"./index-NdkWRN8K.js";import{M as k,T as O,S,D as T,P as j,a as D}from"./index-DiEiQB-f.js";import{S as s}from"./SideNav.stories-C0ROmHeE.js";import"./preview-nv3jWDyz.js";import"./DocsRenderer-CFRXHY34-P8M6yttG.js";import"./client-ByW5HbEz.js";import"./index-DieBXP3Z.js";import"./_commonjsHelpers-gnU0ypJ3.js";import"./index-BJTM6NaI.js";import"./index-B5xazMy1.js";import"./index-CXQShRbs.js";import"./index-DrFu-skq.js";import"./index-B-lxVbXh.js";import"./v4-CtRu48qb.js";import"./index-BJMTVygn.js";import"./PlaceholderLogo-JfVvgA23.js";import"./OdysseyStorybookThemeDecorator-DsQ8XVOG.js";import"./OdysseyThemeProvider-uYQ_l8PJ.js";import"./OdysseyProvider-YUKfsUrL.js";import"./SideNav-a8fqWzAH.js";import"./utilities.esm-DpQ0TZP_.js";import"./Typography-gfYWxfhb.js";import"./Typography-BIFhmR2K.js";import"./UiShellProvider-Cr2Lr10c.js";import"./useMountLifecycleEffect-CjsUCFhB.js";import"./uiShellSharedConstants-CvCey4L_.js";import"./useUniqueId-DUzAQ6pl.js";import"./createUniqueId-BHjR7HQF.js";import"./AccordionSummary-Cqqnyfeq.js";import"./useSlot-bWb1W-uo.js";import"./resolveComponentProps-zX2d3UUb.js";import"./isHostComponent-DVu5iVWx.js";import"./useIsFocusVisible-DH0qxT5e.js";import"./useControlled-NQulfz4l.js";import"./Collapse-Bf9rwi0n.js";import"./utils-uddq32f3.js";import"./inheritsLoose-6wpAF9yl.js";import"./TransitionGroupContext-DAL84N7p.js";import"./Paper-BGSgbZC6.js";import"./ButtonBase-Wolvis_2.js";import"./assertThisInitialized-B9jnkVVz.js";import"./Box-XLjSpNxK.js";import"./Box-C-xmRxaS.js";import"./createBox-emhTu6dS.js";import"./Link-P2sjP-aD.js";import"./Link-LYj8-DeM.js";import"./ExternalLink-C7UPr4SL.js";import"./Skeleton-BSJpuJ78.js";import"./colorManipulator-BxsGKdcY.js";import"./Badge-CgiaxC_M.js";import"./Status-BbCnhdhJ.js";import"./MuiPropsContext-DhRylJZk.js";import"./Chip-p4lq04qX.js";import"./createSvgIcon-SdTF6s8l.js";import"./ChevronRight-BEaWGMzi.js";import"./Tooltip-Bx__kQJp.js";import"./Tooltip-gH7ETEPn.js";import"./Grow-CbLflC0D.js";import"./getReactElementRef-CYW9xr5m.js";import"./Popper-vW9B5iyN.js";import"./popper-BXFsSIrb.js";import"./ownerDocument-DW-IO8s5.js";import"./Portal-ev1Y_qJb.js";import"./Button-dStBbGjZ.js";import"./Server-BjJU0LGG.js";import"./AddCircle-DYQ5ipEw.js";import"./User-DR3B8-Pw.js";import"./Home-yAl98ghs.js";import"./Folder-DTgm0zQ0.js";import"./Download-xLlaDLdW.js";import"./Clock-dOo7_xs2.js";import"./Settings-CjZSn0DO.js";import"./Notification-08pZljJb.js";const{STORY_CHANGED:L,SELECT_STORY:g}=__STORYBOOK_MODULE_CORE_EVENTS__,{makeDecorator:C,addons:v}=__STORYBOOK_MODULE_PREVIEW_API__,{global:I}=__STORYBOOK_MODULE_GLOBAL__;var w=Object.defineProperty,R=(e,t)=>{for(var i in t)w(e,i,{get:t[i],enumerable:!0})},M="links",{document:l,HTMLElement:N}=I;function P(e){let t={},i=(e[0]==="?"?e.substring(1):e).split("&").filter(Boolean);for(let n=0;n<i.length;n++){let o=i[n].split("=");t[decodeURIComponent(o[0])]=decodeURIComponent(o[1]||"")}return t}var u=e=>v.getChannel().emit(g,e),K=(e,t)=>new Promise(i=>{let{location:n}=l,o=P(n.search).id,p=e||o.split("--",2)[0],m=`/story/${E(p,t)}`,d=n.pathname.replace(/iframe\.html$/,""),x=`${n.origin+d}?${Object.entries({path:m}).map(c=>`${c[0]}=${c[1]}`).join("&")}`;i(x)}),_=e=>{let{target:t}=e;if(!(t instanceof N))return;let i=t,{sbKind:n,sbStory:o}=i.dataset;(n||o)&&(e.preventDefault(),u({kind:n,story:o}))},a=!1,A=()=>{a||(a=!0,l.addEventListener("click",_))},H=()=>{a&&(a=!1,l.removeEventListener("click",_))},U=C({name:"withLinks",parameterName:M,wrapper:(e,t)=>(A(),v.getChannel().once(L,H),e(t))});const{definePreview:ut}=__STORYBOOK_MODULE_PREVIEW_API__;var B={};R(B,{decorators:()=>Y});var Y=[U],W=0,$=e=>e.button===W&&!e.altKey&&!e.ctrlKey&&!e.metaKey&&!e.shiftKey,V=(e,t=i=>{})=>{$(e)&&(e.preventDefault(),t(e))},X=class extends b.PureComponent{constructor(){super(...arguments),this.state={href:"/"},this.updateHref=async()=>{let{kind:e,title:t=e,story:i,name:n=i}=this.props;if(t&&n){let o=await K(t,n);this.setState({href:o})}},this.handleClick=()=>{let{kind:e,title:t=e,story:i,name:n=i}=this.props;t&&n&&u({title:t,name:n})}}componentDidMount(){this.updateHref()}componentDidUpdate(e){let{kind:t,title:i,story:n,name:o}=this.props;(e.kind!==t||e.story!==n||e.title!==i||e.name!==o)&&this.updateHref()}render(){let{kind:e,title:t=e,story:i,name:n=i,children:o,...p}=this.props,{href:m}=this.state;return y.createElement("a",{href:m,onClick:d=>V(d,this.handleClick),...p},o)}};X.defaultProps={children:void 0};function h(e){const t={code:"code",h4:"h4",p:"p",pre:"pre",...f(),...e.components};return r.jsxs(r.Fragment,{children:[r.jsx(k,{of:s}),`
|
|
2
|
-
`,r.jsx(O,{of:s}),`
|
|
3
|
-
`,r.jsx(S,{of:s}),`
|
|
4
|
-
`,r.jsx(T,{of:s}),`
|
|
5
|
-
`,r.jsx(j,{of:s}),`
|
|
6
|
-
`,r.jsx(t.h4,{id:"sidenavitems",children:"sideNavItems"}),`
|
|
7
|
-
`,r.jsxs(t.p,{children:["the ",r.jsx(t.code,{children:"sideNavItems"})," prop takes an array of objects with type ",r.jsx(t.code,{children:"SideNavItem"})]}),`
|
|
8
|
-
`,r.jsx(t.pre,{children:r.jsx(t.code,{children:`type SideNavItem = {
|
|
9
|
-
id: string;
|
|
10
|
-
label: string;
|
|
11
|
-
/**
|
|
12
|
-
* The icon element to display at the end of the Nav Item
|
|
13
|
-
*/
|
|
14
|
-
endIcon?: ReactElement;
|
|
15
|
-
/**
|
|
16
|
-
* Whether the item is disabled. When set to true the nav item is set to Disabled color,
|
|
17
|
-
* the link/item is not clickable, and item with children is not expandable.
|
|
18
|
-
*/
|
|
19
|
-
isDisabled?: boolean;
|
|
20
|
-
/**
|
|
21
|
-
* Whether the item is active/selected
|
|
22
|
-
*/
|
|
23
|
-
isSelected?: boolean;
|
|
24
|
-
/**
|
|
25
|
-
* Event fired when the nav item is clicked
|
|
26
|
-
*/
|
|
27
|
-
onClick?(): void;
|
|
28
|
-
/**
|
|
29
|
-
* The status element to display after the label
|
|
30
|
-
*/
|
|
31
|
-
severity?: (typeof statusSeverityValues)[number];
|
|
32
|
-
/**
|
|
33
|
-
* The icon element to display at the start of the Nav Item
|
|
34
|
-
*/
|
|
35
|
-
startIcon?: ReactElement;
|
|
36
|
-
/**
|
|
37
|
-
* The label to display inside the status
|
|
38
|
-
*/
|
|
39
|
-
statusLabel?: string;
|
|
40
|
-
/**
|
|
41
|
-
* The link target prop. e.g., "_blank"
|
|
42
|
-
*/
|
|
43
|
-
target?: string;
|
|
44
|
-
} & (
|
|
45
|
-
| {
|
|
46
|
-
/**
|
|
47
|
-
* Determines if the side nav item is a section header
|
|
48
|
-
*/
|
|
49
|
-
isSectionHeader: true;
|
|
50
|
-
href?: never;
|
|
51
|
-
children?: never;
|
|
52
|
-
isDefaultExpanded?: never;
|
|
53
|
-
isExpanded?: never;
|
|
54
|
-
}
|
|
55
|
-
| {
|
|
56
|
-
/**
|
|
57
|
-
* link added to the nav item. if it is undefined, static text will be displayed.
|
|
58
|
-
* fires onClick event when it is passed
|
|
59
|
-
*/
|
|
60
|
-
href: string;
|
|
61
|
-
children?: never;
|
|
62
|
-
isSectionHeader?: never;
|
|
63
|
-
isDefaultExpanded?: never;
|
|
64
|
-
isExpanded?: never;
|
|
65
|
-
}
|
|
66
|
-
| {
|
|
67
|
-
/**
|
|
68
|
-
* An array of side nav items to be displayed as children within Accordion
|
|
69
|
-
*/
|
|
70
|
-
children?: SideNavItem[];
|
|
71
|
-
/**
|
|
72
|
-
* Whether the accordion (nav item with children) is expanded by default
|
|
73
|
-
*/
|
|
74
|
-
isDefaultExpanded?: boolean;
|
|
75
|
-
/**
|
|
76
|
-
* If true, expands the accordion, otherwise collapse it.
|
|
77
|
-
* Setting this prop enables control over the accordion.
|
|
78
|
-
*/
|
|
79
|
-
isExpanded?: boolean;
|
|
80
|
-
isSectionHeader?: never;
|
|
81
|
-
href?: never;
|
|
82
|
-
}
|
|
83
|
-
);
|
|
84
|
-
`})}),`
|
|
85
|
-
`,r.jsx(D,{})]})}function _t(e={}){const{wrapper:t}={...f(),...e.components};return t?r.jsx(t,{...e,children:r.jsx(h,{...e})}):h(e)}export{_t as default};
|
|
@@ -1,131 +0,0 @@
|
|
|
1
|
-
import{u as rn,C as on,D as an,d as cn,a as dn,b as ve,c as ln,S as sn,s as un,K as gn,P as fn,e as mn,E as X}from"./utilities.esm-DpQ0TZP_.js";import{u as D,h as S,N as Sn,K as Z,O as bn}from"./OdysseyThemeProvider-uYQ_l8PJ.js";import{r as a}from"./index-NdkWRN8K.js";import{f as hn,i as pn}from"./Typography-gfYWxfhb.js";import{u as N}from"./UiShellProvider-Cr2Lr10c.js";import{u as Be}from"./useMountLifecycleEffect-CjsUCFhB.js";import{a as Ee,T as xn,b as ue,c as In,S as yn}from"./uiShellSharedConstants-CvCey4L_.js";import{u as vn}from"./useUniqueId-DUzAQ6pl.js";import{j as i}from"./jsx-runtime-CnH95YSl.js";import{A as Mn,b as jn,a as wn}from"./AccordionSummary-Cqqnyfeq.js";import{M as ie}from"./Box-XLjSpNxK.js";import{M as kn}from"./Link-P2sjP-aD.js";import{S as J}from"./Skeleton-BSJpuJ78.js";import{M as Bn}from"./Badge-CgiaxC_M.js";import{M as En}from"./Status-BbCnhdhJ.js";import{L as Ln}from"./Link-LYj8-DeM.js";import{M as Dn}from"./ExternalLink-C7UPr4SL.js";import{M as An}from"./ChevronRight-BEaWGMzi.js";import{M as Tn}from"./MuiPropsContext-DhRylJZk.js";import{M as Hn}from"./Tooltip-Bx__kQJp.js";import{B as Fn}from"./Button-dStBbGjZ.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),$n=S("div",{shouldForwardProp:e=>e!=="backgroundColor"&&e!=="fontColor"})(({backgroundColor:e,fontColor:n})=>({width:"100%",".MuiAccordion-root":{backgroundColor:e,color:n||"inherit"}})),Rn=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}}})),Pn=S(wn,{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"}})),_n=({children:e,label:n,id:t,isCompact:r,isDefaultExpanded:c,isDisabled:o,isExpanded:s,onChange:g,translate:d,startIcon:f})=>{const u=vn(t),x=`${u}-header`,p=`${u}-content`,b=D(),m=N(),I=Le();return i.jsx($n,{backgroundColor:m==null?void 0:m.sideNavBackgroundColor,children:i.jsxs(Mn,{className:"nav-accordion",defaultExpanded:c,disabled:o,disableGutters:!0,expanded:s,onChange:g,children:[i.jsxs(Pn,{"aria-controls":p,className:"nav-accordion-summary",depth:I.depth,expandIcon:i.jsx(Sn,{}),id:x,isCompact:r,isDisabled:o,odysseyDesignTokens:b,sideNavContrastColors:m==null?void 0:m.sideNavContrastColors,children:[f&&f,i.jsx(Rn,{isIconVisible:!!f,odysseyDesignTokens:b,sideNavContrastColors:m==null?void 0:m.sideNavContrastColors,translate:d,children:n})]}),i.jsx(jn,{"aria-labelledby":x,className:"nav-accordion-details",children:e})]})})},De=a.memo(_n);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 zn({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 Vn=S("nav")({display:"flex"}),Nn=S("div",{shouldForwardProp:e=>e!=="odysseyDesignTokens"&&e!=="borderColor"})(({borderColor:e,odysseyDesignTokens:n})=>({"& + &":{marginInlineStart:n.Spacing4,paddingInlineStart:n.Spacing4,borderInlineStart:`1px solid ${e||n.HueNeutral300}`}})),On=({footerItems:e})=>{const n=D(),{t}=Z(),r=N(),c=a.useMemo(()=>e==null?void 0:e.map(o=>{var s;return i.jsx(Nn,{borderColor:(s=r==null?void 0:r.sideNavContrastColors)==null?void 0:s.fontColor,odysseyDesignTokens:n,role:"menuitem",children:o.href?i.jsx(kn,{href:o.href,children:o.label}):i.jsx(ie,{component:"span",children:o.label})},o.id)}),[e,n,r]);return i.jsx(Vn,{"aria-label":t("navigation.footer"),role:"menubar",children:c})},Ae=a.memo(On);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 Wn=()=>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"})]}),Zn=a.memo(Wn);/*!
|
|
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 Gn=S("div",{shouldForwardProp:e=>e!=="isLogoInteractive"})(({isLogoInteractive:e})=>({alignItems:"center",display:"flex",height:"100%",...e&&{cursor:"pointer"}})),Kn=S("a")(()=>({alignItems:"center",display:"flex",height:"100%"})),Un=({imageAltText:e,imageUrl:n,logoComponent:t,...r})=>{const c=a.useMemo(()=>t||(e&&n?i.jsx("img",{alt:e,src:n}):i.jsx(Zn,{})),[e,t,n]);return"href"in r&&"ariaLabel"in r?i.jsx(Kn,{"aria-label":r.ariaLabel,"data-se":"sidenav-header-logo",href:r.href,onClick:r.onClick,children:c}):i.jsx(Gn,{"aria-label":r.ariaLabel,"data-se":"sidenav-header-logo",isLogoInteractive:!!r.onClick||r.href,onClick:r.onClick,role:"presentation",children:c})},Te=a.memo(Un);Te.displayName="SideNavLogo";const Xn=S("div")({position:"relative",display:"flex",flexDirection:"column",zIndex:Ee}),qn=S("div",{shouldForwardProp:e=>e!=="headerBackgroundColor"&&e!=="isSameBackgroundAsMain"&&e!=="odysseyDesignTokens"})(({headerBackgroundColor:e,isSameBackgroundAsMain:n,odysseyDesignTokens:t})=>({display:"flex",alignItems:"center",height:xn,paddingBlock:t.Spacing4,paddingInline:t.Spacing5,backgroundColor:n?e:t.HueNeutralWhite,"svg, img":{maxHeight:"100%",width:"auto",maxWidth:"100%"}})),Yn=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"}})),Jn=({appName:e,isLoading:n,logoProps:t})=>{var o;const r=D(),c=N();return i.jsxs(Xn,{children:[i.jsx(qn,{"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(Yn,{contrastFontColor:(o=c==null?void 0:c.sideNavContrastColors)==null?void 0:o.fontColor,odysseyDesignTokens:r,children:i.jsx(hn,{component:"h2",children:n?i.jsx(J,{}):e})})]})},ae=a.memo(Jn);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 Qn=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"})),Cn=({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(Qn,{isIconVisible:!!t,odysseyDesignTokens:g,translate:s,children:[n,!e&&c&&i.jsx(ie,{sx:d,children:c&&i.jsx(En,{label:o||"",severity:c})}),!c&&e&&i.jsx(ie,{sx:d,children:e&&i.jsx(Bn,{badgeContent:e})})]}),r&&r]})},q=a.memo(Cn);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}})),et=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})})),nt=S(Ln,{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})})),tt=({count:e,id:n,label:t,href:r,target:c,startIcon:o,severity:s,statusLabel:g,endIcon:d,onClick:f,isDisabled:u,isSelected:x,scrollRef:p,onItemSelected:b,translate:m})=>{const I=N(),P=Le(),F=a.useMemo(()=>P,[P]),A=D(),[L,T]=a.useState(!1),_=a.useRef(null);a.useImperativeHandle(p,()=>({scrollIntoView:()=>{et(_.current)}}),[]);const j=a.useCallback(H=>{b==null||b(n),f==null||f(H)},[n,f,b]),W=a.useCallback(H=>{(H==null?void 0:H.key)==="Enter"&&(H.preventDefault(),b==null||b(n),f==null||f(H))},[n,f,b]);return i.jsx(ce,{"aria-current":x?"page":void 0,"aria-disabled":u,disabled:u,id:n,isSelected:x,odysseyDesignTokens:A,onDragLeave:()=>{T(!1)},onDragOver:()=>{T(!0)},onDrop:()=>{T(!1)},ref:_,sideNavContrastColors:I==null?void 0:I.sideNavContrastColors,children:u?i.jsx(we,{contextValue:F,"data-se":"tb--sidenav-text-container",isActiveDropTarget:!1,isDisabled:u,isSelected:x,odysseyDesignTokens:A,sideNavContrastColors:I==null?void 0:I.sideNavContrastColors,children:i.jsx(q,{count:e,endIcon:d,label:t,severity:s,startIcon:o,statusLabel:g,translate:m})}):r?i.jsxs(nt,{contextValue:F,"data-se":"tb--sidenav-text-container",href:r,isActiveDropTarget:L,isDisabled:u,isSelected:x,odysseyDesignTokens:A,onClick:j,sideNavContrastColors:I==null?void 0:I.sideNavContrastColors,target:c,children:[i.jsx(q,{count:e,endIcon:d,label:t,severity:s,startIcon:o,statusLabel:g,translate:m}),c==="_blank"&&i.jsx("span",{className:"Link-indicator",role:"presentation",children:i.jsx(Dn,{})})]}):i.jsx(we,{contextValue:F,"data-se":"tb--sidenav-text-container",isActiveDropTarget:L,isDisabled:u,isSelected:x,odysseyDesignTokens:A,onClick:j,onKeyDown:W,role:"button",sideNavContrastColors:I==null?void 0:I.sideNavContrastColors,tabIndex:0,children:i.jsx(q,{count:e,endIcon:d,label:t,severity:s,startIcon:o,statusLabel:g,translate:m})})},n)},de=a.memo(tt);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()}),rt=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}}}}})),it=S("ul")({padding:0,listStyle:"none",listStyleType:"none"}),ot=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}`}}})),at=({isDragging:e})=>{var g;const{attributes:n,listeners:t,ref:r}=a.useContext($e),c=D(),{t:o}=Z(),s=N();return i.jsx(ot,{...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"})})})},ct=({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:x}=rn({id:e}),p=a.useMemo(()=>({attributes:o,listeners:g,ref:f}),[o,g,f]),b={opacity:s?.4:void 0,transform:on.Translate.toString(u),transition:x},m=N(),I=D();return i.jsx($e.Provider,{value:p,children:i.jsxs(rt,{isSelected:t,odysseyDesignTokens:I,ref:d,sideNavContrastColors:m==null?void 0:m.sideNavContrastColors,style:b,children:[!n&&r&&i.jsx(at,{isDragging:s}),i.jsx(it,{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 dt={sideEffects:cn({styles:{active:{opacity:"0.4"}}})};function lt({children:e}){return i.jsx(an,{dropAnimation:dt,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=dn(ve(fn),ve(gn,{coordinateGetter:un})),{t:d}=Z(),f=a.useMemo(()=>({onDragStart:({active:u})=>`${d("sortable.list.drag.start",{activeId:u.id})}`,onDragOver:({active:u,over:x})=>x?`${d("sortable.list.drag.moved.over",{activeId:u.id,overId:x.id})}`:`${d("sortable.list.drag.nolonger.over",{activeId:u.id})}`,onDragEnd:({active:u,over:x})=>x?`${d("sortable.list.drag.end.dropped.over",{activeId:u.id,overId:x.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(ln,{accessibility:{announcements:f},onDragCancel:()=>{o(null)},onDragEnd:({active:u,over:x})=>{if(x&&u.id!==(x==null?void 0:x.id)){const p=n.findIndex(({id:m})=>m===u.id),b=n.findIndex(({id:m})=>m===x.id);n[b].isSortable!==!1&&t(e,u.id,p,b)}o(null)},onDragStart:({active:u})=>{o(u)},sensors:g,children:[i.jsx(sn,{items:n,children:n.map(u=>i.jsx(a.Fragment,{children:r(u)},u.id))}),i.jsx(lt,{children:s?r(s):null})]})};le.Item=ct;/*!
|
|
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 st=({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(st);Re.displayName="SideNavSortableList";const V=24,Y=V/2,ut=S(Fn,{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}})),gt=S(An,{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"})),ft=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(ft);a.useEffect(()=>{var I,P,F,A;const p=()=>{o==null||o(!0)},b=()=>{o==null||o(!1)},m=()=>{var L;o==null||o(!!((L=f.current)!=null&&L.matches(":focus-visible")))};return(I=f.current)==null||I.addEventListener("mouseenter",p),(P=f.current)==null||P.addEventListener("mouseleave",b),(F=f.current)==null||F.addEventListener("focus",m,!0),(A=f.current)==null||A.addEventListener("blur",m,!0),b(),()=>{var L,T,_,j;(L=f.current)==null||L.removeEventListener("mouseenter",p),(T=f.current)==null||T.removeEventListener("mouseleave",b),(_=f.current)==null||_.removeEventListener("focus",m,!0),(j=f.current)==null||j.removeEventListener("blur",m,!0)}},[o]);const u=a.useMemo(()=>d(r?"sidenav.toggle.expand":"sidenav.toggle.collapse"),[r,d]),x=a.useCallback(p=>i.jsx(ut,{...p,"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:b=>{var m;b&&(f.current=b,(m=p.ref)==null||m.call(p,b))},tabIndex:s,variant:"floating",children:i.jsx(gt,{isSideNavCollapsed:r,odysseyDesignTokens:g})}),[e,n,t,r,g,c,s,u]);return i.jsx(Hn,{ariaType:"description",placement:"right",text:u,children:i.jsx(Tn.Consumer,{children:x})})},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 St=e=>{const n=window.sessionStorage.getItem(e);try{return typeof n=="string"?JSON.parse(n):null}catch{return typeof n=="string"?n:null}},bt=({initialState:e,key:n})=>{const t=a.useMemo(()=>St(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 ht="__uiShell-sideNav-isCollapsed",pt=e=>bt({initialState:e,key:ht}),se=12,xt=2,_e=e=>e.flatMap(n=>n.nestedNavItems?[n,..._e(n.nestedNavItems)]:n),It=S("div",{shouldForwardProp:e=>e!=="odysseyDesignTokens"&&e!=="isSideNavCollapsed"})(({odysseyDesignTokens:e,isSideNavCollapsed:n})=>({position:"relative",display:"grid",gridTemplateColumns:yn,height:"100%",transition:`grid-template-columns ${e.TransitionDurationMain}, opacity 300ms`,transitionTimingFunction:e.TransitionTimingMain,overflow:"hidden",...n&&{gridTemplateColumns:0,opacity:0}})),yt=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}})),vt=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)`}:{}}})),Mt=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:In,width:`${V}px`,transform:n&&!e?t?`translate3d(calc(100% + ${Y+se}px), 0, 0)`:`translate3d(calc(100% + ${Y+xt}px), 0, 0)`:"translate3d(100%, 0, 0)",transition:`transform ${r.TransitionDurationMain}`,zIndex:ue+1})),jt=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%"})),wt=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})),kt=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}})),Bt=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}})),Et=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}}})),Lt=S("div",{shouldForwardProp:e=>e!=="odysseyDesignTokens"})(({odysseyDesignTokens:e})=>({alignItems:"center",display:"flex",gap:e.Spacing2,paddingBlock:e.Spacing2,paddingInline:e.Spacing4})),Dt=e=>e.scrollHeight>e.clientHeight,At=()=>{const e=D();return i.jsxs(Lt,{odysseyDesignTokens:e,children:[i.jsx(J,{height:e.Spacing4,variant:"circular",width:e.Spacing4}),i.jsx(J,{variant:"rounded",width:"100%"})]})},Tt=({appName:e,footerComponent:n,footerItems:t,hasCustomFooter:r,hasSessionStorageState:c,isCollapsible:o,isCollapsed:s=!1,isCompact:g,isLoading:d,isObtrusive:f,logoProps:u,leavesPaddingStart:x,onCollapse:p,onExpand:b,onSort:m,sideNavItems:I})=>{var me,Se,be;const[P,F]=a.useState(!1),[A,L]=a.useState(!1),[T,_]=a.useState(!1),[j,W]=a.useState(I||[]),[H,Ve]=a.useState(s),{sessionState:Ne,setSessionState:Oe}=pt(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}=zn({element:Q.current,monitoringElement:(Se=(me=Q.current)==null?void 0:me.parentElement)==null?void 0:Se.parentElement}),C=!Ze,G=a.useMemo(()=>i.jsx("div",{}),[]);a.useEffect(()=>W(I||[]),[I]);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(Dt(E.current.parentElement))};let y;if(R.current||(R.current=new ResizeObserver(()=>{cancelAnimationFrame(y),y=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(v=>{var w;const M=(w=v.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 v=E.current,[M]=Array.from((v==null?void 0:v.children)||[]);M&&z.current.observe(M)}return()=>{R.current&&(R.current.disconnect(),R.current=null),z.current&&(z.current.disconnect(),z.current=null),cancelAnimationFrame(y)}},[j]);const ee=a.useRef(null),K=a.useMemo(()=>{const y=_e(j).find(v=>v.isSelected);return y==null?void 0:y.id},[j]);a.useEffect(()=>{K&&ee.current&&ee.current.scrollIntoView()},[K]);const ge=a.useCallback(l=>l===K?ee:void 0,[K]),fe=a.useCallback(l=>{const y=M=>M.map(w=>w.nestedNavItems?{...w,isSelected:w.id===l,nestedNavItems:y(w.nestedNavItems)}:{...w,isSelected:w.id===l}),v=y(j);W(v),(s||f)&&(o?h==null||h.closeSideNavMenu():p==null||p())},[s,o,f,p,j,h]),Ue=a.useCallback(l=>({depth:l}),[]),Xe=a.useCallback((l,y)=>({isCompact:g,depth:l,isSortable:y,absolutePaddingStart:x}),[g,x]),qe=(l,y=1)=>{var Ie;const{href:v,id:M,isDefaultExpanded:w,isDisabled:B,isExpanded:re,isSectionHeader:Ce,label:he,startIcon:pe,nestedNavItems:U,onChange:en,isSortable:xe,translate:nn}=l;if(Ce)return i.jsx(X,{fallback:G,children:i.jsx(kt,{contrastFontColor:(Ie=h==null?void 0:h.sideNavContrastColors)==null?void 0:Ie.fontColor,id:M,odysseyDesignTokens:k,children:i.jsx(pn,{component:"h3",children:he})})},M);if(U&&U.length>0){const ye=i.jsx(ke,{role:"presentation",children:xe?i.jsx(Re,{depth:y+1,items:U,onChange:Je,parentId:l.id,processSideNavItems:ne}):ne(U,y+1).map(tn=>tn.sortableItem.navItem)});return v?i.jsxs(X,{fallback:G,children:[i.jsx(de,{...l,href:v,onItemSelected:fe,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(y),children:i.jsx(De,{isCompact:g,isDefaultExpanded:w,isDisabled:B,isExpanded:re,label:he,onChange:en,startIcon:pe,children:ye})},M)})},M)}else return i.jsx(X,{fallback:G,children:i.jsx(oe.Provider,{value:Xe(y,xe),children:i.jsx(de,{...l,onItemSelected:fe,scrollRef:ge(M),startIcon:pe,translate:nn})},M)},M)},ne=(l,y=1)=>l==null?void 0:l.map(v=>({...v,sortableItem:{id:v.id,isSelected:v.isSelected,isDisabled:v.isDisabled,isSortable:v.isSortable,navItem:qe(v,y)}})),te=a.useCallback(()=>{$(l=>(l?b==null||b():p==null||p(),!l))},[p,b,$]),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(()=>{p==null||p(),$(!0)});return()=>{l==null||l()}},[p,$,h]);const Je=a.useCallback((l,y,v,M)=>{const w=j.map(B=>B.id===l&&B.nestedNavItems?{...B,nestedNavItems:mn(B.nestedNavItems,v,M)}:B);W(w),m==null||m(w,l,y,v,M)},[m,j]),Qe=a.useCallback(l=>{_(l)},[]);return i.jsxs(vt,{"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(Mt,{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(bn,{children:i.jsx(It,{"data-se":"collapsible-region",isSideNavCollapsed:O,odysseyDesignTokens:k,children:i.jsxs(yt,{isSideNavCollapsed:O,odysseyDesignTokens:k,children:[e||d||u?i.jsx(jt,{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(wt,{"data-se":"scrollable-region",hasBlockStartPadding:!e,odysseyDesignTokens:k,children:[i.jsx(ke,{ref:E,role:"none",children:d?Array(6).fill(null).map((l,y)=>i.jsx(At,{},y)):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(Et,{odysseyDesignTokens:k,sideNavContrastColors:h==null?void 0:h.sideNavContrastColors,children:i.jsx(Ae,{footerItems:t})})})]}),!d&&!t&&r&&i.jsx(Bt,{isContentScrollable:A,odysseyDesignTokens:k,sideNavBackgroundColor:h==null?void 0:h.sideNavBackgroundColor,children:n})]})})})]})},Ht=a.memo(Tt);Ht.displayName="SideNav";export{Ht as M,Te as a};
|
|
@@ -1,207 +0,0 @@
|
|
|
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-DsQ8XVOG.js";import{M as o}from"./SideNav-a8fqWzAH.js";import{M as Y,a as y,b as oe,c as ae,d as ne}from"./Server-BjJU0LGG.js";import{M as se}from"./Box-XLjSpNxK.js";import{f as re,d as ie}from"./Typography-gfYWxfhb.js";import{M as J}from"./AddCircle-DYQ5ipEw.js";import{M as le}from"./User-DR3B8-Pw.js";import{M as Q}from"./Home-yAl98ghs.js";import{M as C}from"./Folder-DTgm0zQ0.js";import{M as de}from"./Download-xLlaDLdW.js";import{M as ce}from"./Clock-dOo7_xs2.js";import{M as me}from"./Settings-CjZSn0DO.js";import{M as pe}from"./Notification-08pZljJb.js";const ue=()=>e.jsxs(se,{sx:{border:"1px dashed gray"},children:[e.jsx(re,{children:"Your custom footer content goes here"}),e.jsx(ie,{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(J,{}),onClick:()=>{}},{id:"item2",label:"Admin",isSectionHeader:!0},{id:"item3",href:"/?path=/docs/mui-components-typography--docs",label:"Users",startIcon:e.jsx(le,{})},{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(Y,{})},{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(de,{})},{id:"item11",href:"/",label:"Identify Governance",target:"_blank",isDisabled:!0,startIcon:e.jsx(ae,{})},{id:"item12",href:"/",label:"Workflows",target:"_blank",startIcon:e.jsx(ce,{})},{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(me,{}),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(J,{}),isSortable:!1}]},{id:"sortable-item2",label:"Notifications",startIcon:e.jsx(pe,{}),count:1},{id:"sortable-item3",label:"Add apps",startIcon:e.jsx(Y,{})}]},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"],ze=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{ze as S};
|