@okta/odyssey-contribution-tooling 1.51.0 → 1.52.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +12 -0
- package/dist/index.cjs +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.es.js.map +1 -1
- package/dist/index.iife.js.map +1 -1
- package/dist/index.mjs +1 -1
- package/dist/index.scss +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.html +0 -203
- package/dist/index.json +0 -1
- 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,148 +0,0 @@
|
|
|
1
|
-
import{j as e}from"./jsx-runtime-CnH95YSl.js";import{useMDXComponents as r}from"./index-BeeV6X6A.js";import{M as s}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 l(i){const n={code:"code",h1:"h1",h2:"h2",h3:"h3",li:"li",p:"p",pre:"pre",ul:"ul",...r(),...i.components};return e.jsxs(e.Fragment,{children:[e.jsx(s,{}),`
|
|
2
|
-
`,e.jsx(n.h1,{id:"globalization-within-odyssey",children:"Globalization within Odyssey"}),`
|
|
3
|
-
`,e.jsx(n.p,{children:"Odyssey has its own globalization system which other devs can hook into."}),`
|
|
4
|
-
`,e.jsx(n.h2,{id:"odysseytranslationprovider",children:"OdysseyTranslationProvider"}),`
|
|
5
|
-
`,e.jsx(n.p,{children:"Odyssey comes out of the box with support for the following 30 languages:"}),`
|
|
6
|
-
`,e.jsx(n.pre,{children:e.jsx(n.code,{className:"language-ts",children:`export const defaultSupportedLanguages = [
|
|
7
|
-
"cs", // Czech
|
|
8
|
-
"da", // Danish
|
|
9
|
-
"de", // German
|
|
10
|
-
"el", // Greek
|
|
11
|
-
"en", // English
|
|
12
|
-
"es", // Spanish
|
|
13
|
-
"fi", // Finnish
|
|
14
|
-
"fr", // French
|
|
15
|
-
"ht", // Haitian Creole
|
|
16
|
-
"hu", // Hungarian
|
|
17
|
-
"id", // Indonesian
|
|
18
|
-
"it", // Italian
|
|
19
|
-
"ja", // Japanese
|
|
20
|
-
"ko", // Korean
|
|
21
|
-
"ms", // Malaysian
|
|
22
|
-
"nb", // Norwegian
|
|
23
|
-
"nl_NL", // Dutch
|
|
24
|
-
"ok_PL", // (Test Language) Pseudo-loc
|
|
25
|
-
"ok_SK", // (Test Language) Show Keys
|
|
26
|
-
"pl", // Polish
|
|
27
|
-
"pt_BR", // Portuguese (Brazil)
|
|
28
|
-
"ro", // Romanian
|
|
29
|
-
"ru", // Russian
|
|
30
|
-
"sv", // Swedish
|
|
31
|
-
"th", // Thai
|
|
32
|
-
"tr", // Turkish
|
|
33
|
-
"uk", // Ukrainian
|
|
34
|
-
"vi", // Vietnamese
|
|
35
|
-
"zh_CN", // Chinese (PRC)
|
|
36
|
-
"zh_TW", // Chinese
|
|
37
|
-
] as const;
|
|
38
|
-
`})}),`
|
|
39
|
-
`,e.jsx(n.h3,{id:"provider-customization",children:"Provider customization"}),`
|
|
40
|
-
`,e.jsxs(n.p,{children:["By default, it will use the ",e.jsx(n.code,{children:"window.navigator.language"})," (browser setting) or ",e.jsx(n.code,{children:"en"})," as the selected language code. It is possible to provide ",e.jsx(n.code,{children:"languageCode"})," to the provider via props:"]}),`
|
|
41
|
-
`,e.jsx(n.pre,{children:e.jsx(n.code,{className:"language-jsx",children:`import { OdysseyTranslationProvider } from "@okta/odyssey-react-mui";
|
|
42
|
-
|
|
43
|
-
const languageCode = "cs";
|
|
44
|
-
|
|
45
|
-
const YourAppRoot = ({ children }) => (
|
|
46
|
-
<OdysseyTranslationProvider languageCode={languageCode}>
|
|
47
|
-
{children}
|
|
48
|
-
</OdysseyTranslationProvider>
|
|
49
|
-
);
|
|
50
|
-
`})}),`
|
|
51
|
-
`,e.jsxs(n.p,{children:["If you want to override translation bundles, you can do so by providing the ",e.jsx(n.code,{children:"translationOverrides"})," prop as such:"]}),`
|
|
52
|
-
`,e.jsx(n.pre,{children:e.jsx(n.code,{className:"language-jsx",children:`import { OdysseyTranslationProvider } from "@okta/odyssey-react-mui";
|
|
53
|
-
|
|
54
|
-
const translationOverrides = {
|
|
55
|
-
en: {
|
|
56
|
-
"fieldlabel.optional.text": "Not Required",
|
|
57
|
-
},
|
|
58
|
-
fr: {
|
|
59
|
-
"fieldlabel.optional.text": "Non Requis",
|
|
60
|
-
},
|
|
61
|
-
};
|
|
62
|
-
|
|
63
|
-
const YourAppRoot = ({ children }) => (
|
|
64
|
-
<OdysseyTranslationProvider languageCode={languageCode}>
|
|
65
|
-
{children}
|
|
66
|
-
</OdysseyTranslationProvider>
|
|
67
|
-
);
|
|
68
|
-
`})}),`
|
|
69
|
-
`,e.jsx(n.p,{children:"The following keys can have their values overridden:"}),`
|
|
70
|
-
`,e.jsxs(n.ul,{children:[`
|
|
71
|
-
`,e.jsx(n.li,{children:e.jsx(n.code,{children:"breadcrumbs.home.text"})}),`
|
|
72
|
-
`,e.jsx(n.li,{children:e.jsx(n.code,{children:"breadcrumbs.label.text"})}),`
|
|
73
|
-
`,e.jsx(n.li,{children:e.jsx(n.code,{children:"close.text"})}),`
|
|
74
|
-
`,e.jsx(n.li,{children:e.jsx(n.code,{children:"clear.text"})}),`
|
|
75
|
-
`,e.jsx(n.li,{children:e.jsx(n.code,{children:"open.text"})}),`
|
|
76
|
-
`,e.jsx(n.li,{children:e.jsx(n.code,{children:"fielderror.screenreader.text"})}),`
|
|
77
|
-
`,e.jsx(n.li,{children:e.jsx(n.code,{children:"fieldlabel.optional.text"})}),`
|
|
78
|
-
`,e.jsx(n.li,{children:e.jsx(n.code,{children:"fieldlabel.required.text"})}),`
|
|
79
|
-
`,e.jsx(n.li,{children:e.jsx(n.code,{children:"filters.clear.label"})}),`
|
|
80
|
-
`,e.jsx(n.li,{children:e.jsx(n.code,{children:"filters.filter.any"})}),`
|
|
81
|
-
`,e.jsx(n.li,{children:e.jsx(n.code,{children:"filters.filter.clear"})}),`
|
|
82
|
-
`,e.jsx(n.li,{children:e.jsx(n.code,{children:"filters.filters.arialabel"})}),`
|
|
83
|
-
`,e.jsx(n.li,{children:e.jsx(n.code,{children:"filters.menuitem.any"})}),`
|
|
84
|
-
`,e.jsx(n.li,{children:e.jsx(n.code,{children:"filters.menuitem.selected"})}),`
|
|
85
|
-
`,e.jsx(n.li,{children:e.jsx(n.code,{children:"filters.search.label"})}),`
|
|
86
|
-
`,e.jsx(n.li,{children:e.jsx(n.code,{children:"fileupload.button.text"})}),`
|
|
87
|
-
`,e.jsx(n.li,{children:e.jsx(n.code,{children:"fileupload.prompt.text"})}),`
|
|
88
|
-
`,e.jsx(n.li,{children:e.jsx(n.code,{children:"fileupload.removefile.text"})}),`
|
|
89
|
-
`,e.jsx(n.li,{children:e.jsx(n.code,{children:"passwordfield.icon.label.show"})}),`
|
|
90
|
-
`,e.jsx(n.li,{children:e.jsx(n.code,{children:"severity.error"})}),`
|
|
91
|
-
`,e.jsx(n.li,{children:e.jsx(n.code,{children:"severity.info"})}),`
|
|
92
|
-
`,e.jsx(n.li,{children:e.jsx(n.code,{children:"severity.success"})}),`
|
|
93
|
-
`,e.jsx(n.li,{children:e.jsx(n.code,{children:"severity.warning"})}),`
|
|
94
|
-
`,e.jsx(n.li,{children:e.jsx(n.code,{children:"switch.active"})}),`
|
|
95
|
-
`,e.jsx(n.li,{children:e.jsx(n.code,{children:"switch.inactive"})}),`
|
|
96
|
-
`,e.jsx(n.li,{children:e.jsx(n.code,{children:"table.columnvisibility.arialabel"})}),`
|
|
97
|
-
`,e.jsx(n.li,{children:e.jsx(n.code,{children:"table.density.arialabel"})}),`
|
|
98
|
-
`,e.jsx(n.li,{children:e.jsx(n.code,{children:"table.draghandle.arialabel"})}),`
|
|
99
|
-
`,e.jsx(n.li,{children:e.jsx(n.code,{children:"table.draghandle.tooltip"})}),`
|
|
100
|
-
`,e.jsx(n.li,{children:e.jsx(n.code,{children:"table.actions"})}),`
|
|
101
|
-
`,e.jsx(n.li,{children:e.jsx(n.code,{children:"table.columnvisibility.arialabel"})}),`
|
|
102
|
-
`,e.jsx(n.li,{children:e.jsx(n.code,{children:"table.density.arialabel"})}),`
|
|
103
|
-
`,e.jsx(n.li,{children:e.jsx(n.code,{children:"table.draghandle.arialabel"})}),`
|
|
104
|
-
`,e.jsx(n.li,{children:e.jsx(n.code,{children:"table.draghandle.tooltip"})}),`
|
|
105
|
-
`,e.jsx(n.li,{children:e.jsx(n.code,{children:"table.error"})}),`
|
|
106
|
-
`,e.jsx(n.li,{children:e.jsx(n.code,{children:"table.fetchedrows.text"})}),`
|
|
107
|
-
`,e.jsx(n.li,{children:e.jsx(n.code,{children:"table.fetchedrows.text_plural"})}),`
|
|
108
|
-
`,e.jsx(n.li,{children:e.jsx(n.code,{children:"table.moreactions.arialabel"})}),`
|
|
109
|
-
`,e.jsx(n.li,{children:e.jsx(n.code,{children:"table.noresults.heading"})}),`
|
|
110
|
-
`,e.jsx(n.li,{children:e.jsx(n.code,{children:"table.noresults.text"})}),`
|
|
111
|
-
`,e.jsx(n.li,{children:e.jsx(n.code,{children:"table.reorder.backward"})}),`
|
|
112
|
-
`,e.jsx(n.li,{children:e.jsx(n.code,{children:"table.reorder.forward"})}),`
|
|
113
|
-
`,e.jsx(n.li,{children:e.jsx(n.code,{children:"table.reorder.toback"})}),`
|
|
114
|
-
`,e.jsx(n.li,{children:e.jsx(n.code,{children:"table.reorder.tofront"})}),`
|
|
115
|
-
`,e.jsx(n.li,{children:e.jsx(n.code,{children:"table.rows.text"})}),`
|
|
116
|
-
`,e.jsx(n.li,{children:e.jsx(n.code,{children:"table.rows.text_plural"})}),`
|
|
117
|
-
`,e.jsx(n.li,{children:e.jsx(n.code,{children:"pagination.loadmore"})}),`
|
|
118
|
-
`,e.jsx(n.li,{children:e.jsx(n.code,{children:"pagination.next"})}),`
|
|
119
|
-
`,e.jsx(n.li,{children:e.jsx(n.code,{children:"pagination.previous"})}),`
|
|
120
|
-
`,e.jsx(n.li,{children:e.jsx(n.code,{children:"pagination.page"})}),`
|
|
121
|
-
`,e.jsx(n.li,{children:e.jsx(n.code,{children:"pagination.rowsperpage"})}),`
|
|
122
|
-
`,e.jsx(n.li,{children:e.jsx(n.code,{children:"pagination.rowswithtotal"})}),`
|
|
123
|
-
`,e.jsx(n.li,{children:e.jsx(n.code,{children:"pagination.rowswithouttotal"})}),`
|
|
124
|
-
`,e.jsx(n.li,{children:e.jsx(n.code,{children:"table.actions.selectall"})}),`
|
|
125
|
-
`,e.jsx(n.li,{children:e.jsx(n.code,{children:"table.actions.selectnone"})}),`
|
|
126
|
-
`,e.jsx(n.li,{children:e.jsx(n.code,{children:"table.actions.selectsome"})}),`
|
|
127
|
-
`,e.jsx(n.li,{children:e.jsx(n.code,{children:"table.rowexpansion.expand"})}),`
|
|
128
|
-
`,e.jsx(n.li,{children:e.jsx(n.code,{children:"table.rowexpansion.expandall"})}),`
|
|
129
|
-
`,e.jsx(n.li,{children:e.jsx(n.code,{children:"table.rowexpansion.collapse"})}),`
|
|
130
|
-
`,e.jsx(n.li,{children:e.jsx(n.code,{children:"table.rowexpansion.collapseall"})}),`
|
|
131
|
-
`,e.jsx(n.li,{children:e.jsx(n.code,{children:"dataview.layout.table"})}),`
|
|
132
|
-
`,e.jsx(n.li,{children:e.jsx(n.code,{children:"dataview.layout.grid"})}),`
|
|
133
|
-
`,e.jsx(n.li,{children:e.jsx(n.code,{children:"dataview.layout.list"})}),`
|
|
134
|
-
`,e.jsx(n.li,{children:e.jsx(n.code,{children:"stepper.navigation.previous"})}),`
|
|
135
|
-
`,e.jsx(n.li,{children:e.jsx(n.code,{children:"stepper.navigation.next"})}),`
|
|
136
|
-
`,e.jsx(n.li,{children:e.jsx(n.code,{children:"stepper.aria.progress"})}),`
|
|
137
|
-
`]}),`
|
|
138
|
-
`,e.jsx(n.h2,{id:"passing-the-language-from-the-monolith",children:"Passing the language from the Monolith"}),`
|
|
139
|
-
`,e.jsx(n.pre,{children:e.jsx(n.code,{children:`import { getOktaLocale } from '@okta/ui-libraries-monolith';
|
|
140
|
-
|
|
141
|
-
<OdysseyProvider
|
|
142
|
-
hasCssBaseline
|
|
143
|
-
languageCode={getOktaLocale()}
|
|
144
|
-
>
|
|
145
|
-
// Add code here
|
|
146
|
-
</OdysseyProvider>
|
|
147
|
-
|
|
148
|
-
`})})]})}function b(i={}){const{wrapper:n}={...r(),...i.components};return n?e.jsx(n,{...i,children:e.jsx(l,{...i})}):l(i)}export{b as default};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{r as e}from"./index-NdkWRN8K.js";import{j as r}from"./jsx-runtime-CnH95YSl.js";import{S as l}from"./OdysseyThemeProvider-uYQ_l8PJ.js";const t=e.forwardRef((o,n)=>r.jsx(l,{fill:"none",ref:n,viewBox:"0 0 16 16",xmlns:"http://www.w3.org/2000/svg",...o,children:r.jsx(r.Fragment,{children:r.jsx("path",{clipRule:"evenodd",d:"m5.529 9.529 6.861-6.862H6.667V1.333h6.815c.08 0 .174 0 .258.007.097.008.235.028.38.102a1 1 0 0 1 .438.437c.074.146.094.284.102.381.007.084.007.178.007.258v6.815h-1.334V3.61l-6.862 6.862-.942-.942Zm5.163 3.827V8.124l1.333-1.361v7.926H1.349V3.977h7.886L7.874 5.311H2.683v8.045h8.009Z",fill:"currentColor",fillRule:"evenodd"})})})),i=e.memo(t);i.displayName="ExternalLinkIcon";export{i as M};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{_ as q,b as c}from"./OdysseyThemeProvider-uYQ_l8PJ.js";import{r as E}from"./index-NdkWRN8K.js";import{u as A,T as B,g,r as D}from"./utils-uddq32f3.js";import{j as G}from"./jsx-runtime-CnH95YSl.js";import{u as H}from"./useIsFocusVisible-DH0qxT5e.js";import{g as J}from"./getReactElementRef-CYW9xr5m.js";const K=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"],M={entering:{opacity:1},entered:{opacity:1}},Z=E.forwardRef(function(l,h){const e=A(),y={enter:e.transitions.duration.enteringScreen,exit:e.transitions.duration.leavingScreen},{addEndListener:p,appear:T=!0,children:s,easing:m,in:f,onEnter:x,onEntered:R,onEntering:L,onExit:u,onExited:P,onExiting:j,style:a,timeout:d=y,TransitionComponent:v=B}=l,w=q(l,K),r=E.useRef(null),F=H(r,J(s),h),i=n=>t=>{if(n){const o=r.current;t===void 0?n(o):n(o,t)}},_=i(L),b=i((n,t)=>{D(n);const o=g({style:a,timeout:d,easing:m},{mode:"enter"});n.style.webkitTransition=e.transitions.create("opacity",o),n.style.transition=e.transitions.create("opacity",o),x&&x(n,t)}),C=i(R),k=i(j),S=i(n=>{const t=g({style:a,timeout:d,easing:m},{mode:"exit"});n.style.webkitTransition=e.transitions.create("opacity",t),n.style.transition=e.transitions.create("opacity",t),u&&u(n)}),z=i(P),W=n=>{p&&p(r.current,n)};return G.jsx(v,c({appear:T,in:f,nodeRef:r,onEnter:b,onEntered:C,onEntering:_,onExit:S,onExited:z,onExiting:k,addEndListener:W,timeout:d},w,{children:(n,t)=>E.cloneElement(s,c({style:c({opacity:0,visibility:n==="exited"&&!f?"hidden":void 0},M[n],a,s.props.style),ref:F},t))}))});export{Z as F};
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import{r as i}from"./index-NdkWRN8K.js";import{M as T}from"./Box-XLjSpNxK.js";import{u as N,K as F}from"./OdysseyThemeProvider-uYQ_l8PJ.js";import{j as e}from"./jsx-runtime-CnH95YSl.js";import{L as $}from"./List-BcG-NsbC.js";import{a as k,I as A,F as B}from"./ListItem-Bv1M9lel.js";import{M as h}from"./ScreenReaderText-CQNs2mcT.js";import{F as v}from"./FormHelperText-CZEj6vhF.js";import{M as H}from"./FieldHint-BFs7d7f5.js";import{c as R,M as q}from"./Typography-gfYWxfhb.js";import{u as K}from"./useUniqueId-DUzAQ6pl.js";import{F as P}from"./FormLabel-C4KesWyd.js";const U={display:"list-item",paddingInlineStart:0},V=({errorMessages:r})=>{const o=N(),s=i.useMemo(()=>({listStyle:"disc",paddingInlineStart:o.Spacing4}),[o]);return e.jsx($,{dense:!0,disablePadding:!0,sx:s,children:r.map(t=>e.jsx(k,{dense:!0,disablePadding:!0,sx:U,children:t},t))})},y=i.memo(V);y.displayName="ErrorMessageList";const W=({id:r,message:o,messageList:s,testId:t,translate:d})=>{const{t:n}=F();return e.jsxs(v,{component:"div","data-se":t,error:!0,id:r,translate:d,children:[e.jsx(h,{translate:d,children:`${n("fielderror.screenreader.text")}:`}),e.jsxs(T,{children:[o,s&&e.jsx(y,{errorMessages:s})]})]})},M=i.memo(W);M.displayName="FieldError";const w=({hasVisibleLabel:r,id:o,inputId:s,isOptional:t,testId:d,translate:n,text:m})=>{const{t:c}=F(),l=i.useMemo(()=>e.jsxs(A,{"data-se":d,htmlFor:s,id:o,translate:n,children:[e.jsx("span",{children:m}),t&&e.jsx(R,{children:c("fieldlabel.optional.text")})]}),[o,s,t,d,n,m,c]);return r?l:e.jsx(h,{translate:n,children:l})},g=i.memo(w);g.displayName="FieldLabel";/*!
|
|
2
|
-
* Copyright (c) 2023-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 G=i.createContext({isDisabled:!1}),J=()=>i.useContext(G),O=({ariaDescribedBy:r,errorMessage:o,errorMessageList:s,fieldType:t,hasVisibleLabel:d,hint:n,HintLinkComponent:m,id:c,isDisabled:l=!1,isFullWidth:E=!1,isRadioGroup:L=!1,isOptional:b=!1,isReadOnly:z=!1,label:u,renderFieldComponent:I})=>{const{t:S}=F(),a=K(c),x=n?`${a}-hint`:void 0,p=o||s?`${a}-error`:void 0,f=`${a}-label`,D=i.useMemo(()=>[x,p,r].join(" ").trim()||void 0,[r,p,x]),{isDisabled:j}=J(),C=i.useMemo(()=>l||j,[l,j]);return e.jsxs(B,{component:t==="group"?"fieldset":"div",disabled:C,error:!!o||Array.isArray(s)&&s.length>0,fullWidth:E,role:L?"radiogroup":void 0,children:[t==="group"?e.jsxs(P,{component:"legend",id:f,children:[u," ",b&&u&&e.jsxs(q,{color:"textSecondary",component:"span",children:["(",S("fieldlabel.optional.text"),")"]})]}):e.jsx(g,{hasVisibleLabel:d,id:f,inputId:a,isOptional:b,text:u}),n&&e.jsx(H,{id:x,LinkComponent:m,text:n}),I({ariaDescribedBy:D,errorMessageElementId:p,id:a,labelElementId:f,isReadOnly:z}),(o||s)&&e.jsx(M,{id:p,message:o,messageList:s})]})},Q=i.memo(O);Q.displayName="Field";export{G as F,Q as M};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{u as n,h as d}from"./OdysseyThemeProvider-uYQ_l8PJ.js";import{r as l}from"./index-NdkWRN8K.js";import{j as e}from"./jsx-runtime-CnH95YSl.js";import{F as p}from"./FormHelperText-CZEj6vhF.js";const m=d.span(({odysseyDesignTokens:o})=>({a:{color:o.TypographyColorBody,textDecoration:"underline","&:visited":{color:o.TypographyColorBody},"&:hover":{color:o.TypographyColorSubordinate}}})),y=({id:o,LinkComponent:r,testId:s,text:t,translate:i})=>{const a=n();return e.jsxs(p,{"data-se":s,id:o,translate:i,children:[t,r&&e.jsxs(m,{odysseyDesignTokens:a,children:[" ",r]})]})},c=l.memo(y);c.displayName="FieldHint";export{c as M};
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import{u,h as g}from"./OdysseyThemeProvider-uYQ_l8PJ.js";import{r as s}from"./index-NdkWRN8K.js";import{F as f}from"./Field-BVmhMv9m.js";import{e as h,d as j}from"./Typography-gfYWxfhb.js";import{u as F}from"./useUniqueId-DUzAQ6pl.js";import{j as t}from"./jsx-runtime-CnH95YSl.js";/*!
|
|
2
|
-
* Copyright (c) 2022-present, Okta, Inc. and/or its affiliates. All rights reserved.
|
|
3
|
-
* The Okta software accompanied by this notice is provided pursuant to the Apache License, Version 2.0 (the "License.")
|
|
4
|
-
*
|
|
5
|
-
* You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0.
|
|
6
|
-
* Unless required by applicable law or agreed to in writing, software
|
|
7
|
-
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
|
|
8
|
-
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
9
|
-
*
|
|
10
|
-
* See the License for the specific language governing permissions and limitations under the License.
|
|
11
|
-
*/const M=g.fieldset(({odysseyDesignTokens:e})=>({border:"0",margin:e.Spacing0,marginBlockEnd:e.Spacing6,maxWidth:e.TypographyLineLengthMax,padding:e.Spacing0,"&:last-child":{marginBlockEnd:e.Spacing0}})),S=({alert:e,children:d,description:r,id:o,isDisabled:i=!1,legend:n,name:m,testId:l,translate:a})=>{const p=u(),c=F(o),x=s.useMemo(()=>({isDisabled:i}),[i]);return t.jsxs(M,{"data-se":l,disabled:i,id:c,name:m,odysseyDesignTokens:p,children:[t.jsx(h,{translate:a,children:n}),r&&t.jsx(j,{translate:a,children:r}),e,t.jsx(f.Provider,{value:x,children:d})]})},E=s.memo(S);E.displayName="Fieldset";export{E as M};
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import{j as e}from"./jsx-runtime-CnH95YSl.js";import{O as f}from"./OdysseyStorybookThemeDecorator-DsQ8XVOG.js";import{M as x}from"./Fieldset-C7cnRgpz.js";import{M as s}from"./TextField-DvELiaRt.js";import{M as D}from"./Callout-CHhRxeIB.js";import"./index-NdkWRN8K.js";import"./_commonjsHelpers-gnU0ypJ3.js";import"./OdysseyThemeProvider-uYQ_l8PJ.js";import"./index-BJTM6NaI.js";import"./OdysseyProvider-YUKfsUrL.js";import"./Field-BVmhMv9m.js";import"./Box-XLjSpNxK.js";import"./Box-C-xmRxaS.js";import"./createBox-emhTu6dS.js";import"./List-BcG-NsbC.js";import"./ListItem-Bv1M9lel.js";import"./utils-iop7lDec.js";import"./useFormControl-BMISTZuX.js";import"./FormLabel-C4KesWyd.js";import"./useIsFocusVisible-DH0qxT5e.js";import"./isHostComponent-DVu5iVWx.js";import"./ButtonBase-Wolvis_2.js";import"./assertThisInitialized-B9jnkVVz.js";import"./inheritsLoose-6wpAF9yl.js";import"./TransitionGroupContext-DAL84N7p.js";import"./ScreenReaderText-CQNs2mcT.js";import"./visuallyHidden-Dan1xhjv.js";import"./FormHelperText-CZEj6vhF.js";import"./FieldHint-BFs7d7f5.js";import"./Typography-gfYWxfhb.js";import"./Typography-BIFhmR2K.js";import"./useUniqueId-DUzAQ6pl.js";import"./createUniqueId-BHjR7HQF.js";import"./inputUtils-Dbi8XkA6.js";import"./InputBase-Cc2rXj8N.js";import"./ownerWindow-HkKU3E4x.js";import"./ownerDocument-DW-IO8s5.js";import"./debounce-Be36O1Ab.js";import"./InputAdornment-CrT6j38e.js";import"./Link-P2sjP-aD.js";import"./Link-LYj8-DeM.js";import"./ExternalLink-C7UPr4SL.js";import"./AlertTitle-BdgyvdT3.js";import"./useSlot-bWb1W-uo.js";import"./resolveComponentProps-zX2d3UUb.js";import"./createSvgIcon-SdTF6s8l.js";import"./Close-DWj_zrWe.js";import"./IconButton-DwJqCevw.js";import"./Paper-BGSgbZC6.js";const he={component:x,decorators:[f],tags:["autodocs"],argTypes:{alert:{description:"A Callout indicating a Fieldset-wide error or status update",table:{type:{summary:"ReactElement<typeof Callout>"}}},children:{control:"object",description:"Field components within the Fieldset",table:{type:{summary:"ReactElement | Array<ReactElement>"}},type:{required:!0,name:"other",value:"ReactElement | Array<ReactElement>"}},description:{control:"text",description:"A supplementary description",table:{type:{summary:"string"}}},id:{control:"text",description:"Defines a unique identifier (ID) for the Fieldset",table:{type:{summary:"string"}}},isDisabled:{control:"boolean",description:"Disables the component and any wrapped input fields.",table:{type:{summary:"boolean"}}},legend:{control:"text",description:"The title of the Fieldset",table:{type:{summary:"string"}},type:{required:!0,name:"string"}},name:{control:"text",description:"The name associated with the group",table:{type:{summary:"string"}}}},args:{children:e.jsxs(e.Fragment,{children:[e.jsx(s,{label:"Vessel name"}),e.jsx(s,{isMultiline:!0,label:"Reason for visit"})]}),legend:"Docking registration"}},t={},r={args:{description:"Register your ship before docking with the station."}},o={args:{alert:e.jsx(D,{role:"alert",severity:"error",title:"Something went wrong",children:"Please try your request again later."})}},i={args:{isDisabled:!0}};var a,m,p;t.parameters={...t.parameters,docs:{...(a=t.parameters)==null?void 0:a.docs,source:{originalSource:"{}",...(p=(m=t.parameters)==null?void 0:m.docs)==null?void 0:p.source}}};var n,l,c;r.parameters={...r.parameters,docs:{...(n=r.parameters)==null?void 0:n.docs,source:{originalSource:`{
|
|
2
|
-
args: {
|
|
3
|
-
description: "Register your ship before docking with the station."
|
|
4
|
-
}
|
|
5
|
-
}`,...(c=(l=r.parameters)==null?void 0:l.docs)==null?void 0:c.source}}};var d,u,g;o.parameters={...o.parameters,docs:{...(d=o.parameters)==null?void 0:d.docs,source:{originalSource:`{
|
|
6
|
-
args: {
|
|
7
|
-
alert: <Callout role="alert" severity="error" title="Something went wrong">
|
|
8
|
-
Please try your request again later.
|
|
9
|
-
</Callout>
|
|
10
|
-
}
|
|
11
|
-
}`,...(g=(u=o.parameters)==null?void 0:u.docs)==null?void 0:g.source}}};var y,h,b;i.parameters={...i.parameters,docs:{...(y=i.parameters)==null?void 0:y.docs,source:{originalSource:`{
|
|
12
|
-
args: {
|
|
13
|
-
isDisabled: true
|
|
14
|
-
}
|
|
15
|
-
}`,...(b=(h=i.parameters)==null?void 0:h.docs)==null?void 0:b.source}}};const be=["Simple","Description","Alert","Disabled"];export{o as Alert,r as Description,i as Disabled,t as Simple,be as __namedExportsOrder,he as default};
|
|
@@ -1,58 +0,0 @@
|
|
|
1
|
-
import{f as cr}from"./index-BJMTVygn.js";import{O as ur}from"./OdysseyStorybookThemeDecorator-DsQ8XVOG.js";import{f as m}from"./fieldComponentPropsMetaData-kU3Yruac.js";import{u as S,h as d,K as rr}from"./OdysseyThemeProvider-uYQ_l8PJ.js";import{r as o}from"./index-NdkWRN8K.js";import{M as $}from"./Button-NJfX6YsF.js";import{M as mr}from"./Field-BVmhMv9m.js";import{d as gr}from"./Typography-gfYWxfhb.js";import{j as t}from"./jsx-runtime-CnH95YSl.js";import{M as hr}from"./MuiPropsContext-DhRylJZk.js";import{M as fr}from"./Tooltip-Bx__kQJp.js";import{I as br}from"./IconButton-DwJqCevw.js";import{M as xr,a as B}from"./Upload-BmwJgpFZ.js";import"./index-BJTM6NaI.js";import"./OdysseyProvider-YUKfsUrL.js";import"./_commonjsHelpers-gnU0ypJ3.js";import"./BaseButton-CPts8Xl1.js";import"./Button-dStBbGjZ.js";import"./ButtonBase-Wolvis_2.js";import"./useIsFocusVisible-DH0qxT5e.js";import"./assertThisInitialized-B9jnkVVz.js";import"./inheritsLoose-6wpAF9yl.js";import"./TransitionGroupContext-DAL84N7p.js";import"./Box-XLjSpNxK.js";import"./Box-C-xmRxaS.js";import"./createBox-emhTu6dS.js";import"./List-BcG-NsbC.js";import"./ListItem-Bv1M9lel.js";import"./utils-iop7lDec.js";import"./useFormControl-BMISTZuX.js";import"./FormLabel-C4KesWyd.js";import"./isHostComponent-DVu5iVWx.js";import"./ScreenReaderText-CQNs2mcT.js";import"./visuallyHidden-Dan1xhjv.js";import"./FormHelperText-CZEj6vhF.js";import"./FieldHint-BFs7d7f5.js";import"./useUniqueId-DUzAQ6pl.js";import"./createUniqueId-BHjR7HQF.js";import"./Typography-BIFhmR2K.js";import"./Tooltip-gH7ETEPn.js";import"./Grow-CbLflC0D.js";import"./utils-uddq32f3.js";import"./index-B5xazMy1.js";import"./index-DieBXP3Z.js";import"./getReactElementRef-CYW9xr5m.js";import"./resolveComponentProps-zX2d3UUb.js";import"./useControlled-NQulfz4l.js";import"./Popper-vW9B5iyN.js";import"./popper-BXFsSIrb.js";import"./ownerDocument-DW-IO8s5.js";import"./Portal-ev1Y_qJb.js";/*!
|
|
2
|
-
* Copyright (c) 2022-present, Okta, Inc. and/or its affiliates. All rights reserved.
|
|
3
|
-
* The Okta software accompanied by this notice is provided pursuant to the Apache License, Version 2.0 (the "License.")
|
|
4
|
-
*
|
|
5
|
-
* You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0.
|
|
6
|
-
* Unless required by applicable law or agreed to in writing, software
|
|
7
|
-
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
|
|
8
|
-
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
9
|
-
*
|
|
10
|
-
* See the License for the specific language governing permissions and limitations under the License.
|
|
11
|
-
*/const Cr=d.div(({odysseyDesignTokens:r})=>({marginBlockEnd:r.Spacing3,padding:r.Spacing3,backgroundColor:r.HueNeutral50,borderRadius:"50%",svg:{display:"flex",width:r.Spacing8,height:r.Spacing8}})),Fr=()=>{const r=S();return t.jsx(Cr,{"aria-hidden":"true",odysseyDesignTokens:r,children:t.jsxs("svg",{"aria-hidden":"true",fill:"none",viewBox:"0 0 44 45",xmlns:"http://www.w3.org/2000/svg",children:[t.jsx("path",{d:"M32.0763 11.001C29.3564 3.7855 21.6595 -0.565827 13.7765 0.726748C5.35441 2.10773 -0.676662 9.50714 0.0603005 17.8612C0.441865 22.1865 2.56458 25.9787 5.71703 28.614L8.28246 25.545C5.90122 23.5544 4.32811 20.7209 4.04483 17.5097C3.50262 11.3633 7.94433 5.73648 14.4238 4.67404C20.9164 3.60944 27.0806 7.52016 28.6895 13.5191C28.9239 14.3932 29.7162 15.001 30.6212 15.001H32.9114C36.8985 15.001 39.9997 18.0938 39.9997 21.7505C39.9997 24.3423 38.4576 26.6352 36.1259 27.7678L37.8736 31.3658C41.4737 29.6171 43.9997 25.9917 43.9997 21.7505C43.9997 15.7428 38.963 11.001 32.9114 11.001H32.0763Z",fill:r.HueNeutral200}),t.jsx("path",{d:"M23.9994 29.3277V44.5H19.9994V29.3289L14.4142 34.9141L11.5858 32.0857L19.7373 23.9342C20.9869 22.6845 23.0131 22.6845 24.2627 23.9342L32.4142 32.0857L29.5858 34.9141L23.9994 29.3277Z",fill:r.HueNeutral200})]})})},tr=o.memo(Fr);tr.displayName="FileUploadIllustration";const jr=d.div(({isDisabled:r,odysseyDesignTokens:e})=>({color:r?e.TypographyColorDisabled:"inherit",marginBlockStart:e.Spacing2,pointerEvents:r?"none":"auto"})),vr=d.div({display:"flex",justifyContent:"space-between",alignItems:"center",button:{transform:"scale(0)"},"&:hover, &:focus-within, &:focus":{button:{transform:"scale(1)"}}},({odysseyDesignTokens:r})=>({padding:`${r.Spacing1} ${r.Spacing2}`,borderRadius:r.BorderRadiusMain,transition:`background-color ${r.TransitionTimingMain}`,"&:hover, &:focus-within":{backgroundColor:r.HueNeutral100},"&:focus":{borderColor:r.FocusOutlineColorPrimary,boxShadow:`0 0 0 2px ${r.FocusOutlineColorPrimary}`,outline:`${r.FocusOutlineWidthMain} ${r.FocusOutlineStyle} transparent`}})),Ir=({name:r,onFileRemove:e})=>{const{t:s}=rr(),a=S(),p=o.useCallback(()=>{e==null||e(r)},[e,r]),c=o.useCallback(M=>t.jsx(br,{...M,"aria-label":s("fileupload.removefile.text"),onClick:p,size:"small",children:t.jsx(xr,{})}),[p,s]);return t.jsxs(vr,{odysseyDesignTokens:a,tabIndex:0,children:[r,t.jsx(fr,{ariaType:"description",placement:"top",text:s("fileupload.removefile.text"),children:t.jsx(hr.Consumer,{children:c})})]})},Sr=({fileNames:r,isDisabled:e,onFileRemove:s})=>{const a=S();return t.jsx(jr,{"data-file-preview-container":"true",isDisabled:e,odysseyDesignTokens:a,children:r==null?void 0:r.map((p,c)=>t.jsx(Ir,{name:p,onFileRemove:s},`${c}-${p}`))})},er=o.memo(Sr);er.displayName="FileUploadPreview";/*!
|
|
12
|
-
* Copyright (c) 2022-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 H=["single","multiple"],D=["button","dragAndDrop","dragAndDropWithIcon"],or=d.div({position:"relative",alignSelf:"flex-start",input:{position:"absolute",width:"100%",height:"100%",opacity:0}}),Mr=d(or)({display:"flex",alignSelf:"unset",alignItems:"center",justifyContent:"center","&:has(input:focus)":{borderStyle:"solid"}},({hasError:r,odysseyDesignTokens:e})=>({padding:`${e.Spacing6} ${e.Spacing3}`,border:r?`1px solid ${e.PaletteDangerMain}`:`1px dashed ${e.HueNeutral300}`,borderRadius:e.BorderRadiusMain,transition:`border-color ${e.TransitionTimingMain}, box-shadow ${e.TransitionTimingMain}`,"&:hover":{borderColor:e.HueNeutral700},"&:has(input:focus)":{borderColor:e.FocusOutlineColorPrimary,boxShadow:`0 0 0 1px ${e.FocusOutlineColorPrimary}`,outline:`${e.FocusOutlineWidthMain} ${e.FocusOutlineStyle} transparent`,outlineOffset:e.FocusOutlineOffsetTight},"&:has(input:disabled)":{backgroundColor:e.HueNeutral50,border:`1px solid ${e.BorderColorDisabled}`,color:e.TypographyColorDisabled,"&:hover":{borderColor:e.BorderColorDisabled}}})),Ar=d.div({display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center"}),wr=d.div({textAlign:"center"}),yr=({acceptedFileTypes:r,errorMessage:e,id:s,isDisabled:a=!1,isFullWidth:p,isOptional:c,hint:M,HintLinkComponent:ar,label:nr,onChange:w,type:g,variant:h})=>{const y=S(),{t:f}=rr(),b=o.useRef(null),[n,U]=o.useState([]);o.useEffect(()=>{w(n)},[n,w]);const W=o.useCallback(i=>{const{files:l}=i.target;if(l&&l.length>0){const u=g==="multiple"?n.concat(Array.from(l)):Array.from(l).slice();U(u)}i.target.value=""},[g,n]),A=o.useCallback(()=>{var i;(i=b.current)==null||i.click()},[b]),lr=o.useCallback(i=>{const l=n.filter(u=>u.name!==i);U(l)},[n]),sr=o.useCallback(({ariaDescribedBy:i,errorMessageElementId:l,id:u,labelElementId:pr})=>{const dr=r==null?void 0:r.join(","),O=()=>t.jsx("input",{accept:dr,"aria-describedby":i,"aria-errormessage":l,"aria-labelledby":pr,disabled:a,id:u,multiple:g==="multiple",onChange:W,ref:b,title:"",type:"file"});return h==="button"?t.jsx(t.Fragment,{children:t.jsxs(or,{children:[t.jsx(O,{}),t.jsx($,{isDisabled:a,label:f("fileupload.button.text"),onClick:A,startIcon:t.jsx(B,{}),variant:"secondary"})]})}):t.jsx(t.Fragment,{children:t.jsxs(Mr,{hasError:!!e,odysseyDesignTokens:y,children:[t.jsx(O,{}),t.jsxs(Ar,{children:[h==="dragAndDropWithIcon"&&t.jsx(tr,{}),t.jsx(wr,{children:t.jsx(gr,{color:"textSecondary",children:f("fileupload.prompt.text")})}),t.jsx($,{isDisabled:a,label:f("fileupload.button.text"),onClick:A,startIcon:t.jsx(B,{}),variant:"secondary"})]})]})})},[r,e,a,b,y,A,f,g,W,h]);return t.jsxs(t.Fragment,{children:[t.jsx(mr,{errorMessage:e,fieldType:"single",hasVisibleLabel:!0,hint:M,HintLinkComponent:ar,id:s,isDisabled:a,isFullWidth:p&&h!=="button",isOptional:c,label:nr,renderFieldComponent:sr}),n.length>0&&t.jsx(er,{fileNames:n.map(i=>i.name),isDisabled:a,onFileRemove:lr})]})},ir=o.memo(yr);ir.displayName="FileUploader";/*!
|
|
22
|
-
* Copyright (c) 2021-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 At={component:ir,decorators:[ur],tags:["autodocs"],argTypes:{acceptedFileTypes:{description:"An array of file types the user is able to upload. See https://developer.mozilla.org/en-US/docs/Web/HTML/Attributes/accept#unique_file_type_specifiers for examples",table:{type:{summary:"string[]"}}},type:{options:H,control:{type:"radio"},description:"If `multiple`, the user can upload multiple files",table:{type:{summary:H.join(" | ")}}},errorMessage:m.errorMessage,hint:m.hint,id:m.id,isDisabled:m.isDisabled,isFullWidth:m.isFullWidth,label:{control:"text",description:"The label text for the FileUploader",table:{type:{summary:"string"}},type:{required:!0,name:"string"}},onChange:{description:"Callback fired when a file is uploaded or deleted",table:{type:{summary:"(files: File[]) => void"}},type:{name:"string",required:!0}},variant:{options:D,control:{type:"radio"},description:"How the component appears visually",table:{type:{summary:D.join(" | ")}},type:{name:"string",required:!0}}},args:{hint:"Maybe some helpful text about what format to use",label:"Upload your files here",onChange:cr()}},x={args:{variant:"button"}},C={args:{type:"multiple",variant:"dragAndDropWithIcon"}},F={args:{variant:"dragAndDrop"}},j={args:{variant:"dragAndDropWithIcon"}},v={args:{type:"multiple",variant:"dragAndDropWithIcon"}},I={args:{acceptedFileTypes:[".jpg",".png"],variant:"dragAndDropWithIcon"}};var L,z,P;x.parameters={...x.parameters,docs:{...(L=x.parameters)==null?void 0:L.docs,source:{originalSource:`{
|
|
32
|
-
args: {
|
|
33
|
-
variant: "button"
|
|
34
|
-
}
|
|
35
|
-
}`,...(P=(z=x.parameters)==null?void 0:z.docs)==null?void 0:P.source}}};var E,N,R;C.parameters={...C.parameters,docs:{...(E=C.parameters)==null?void 0:E.docs,source:{originalSource:`{
|
|
36
|
-
args: {
|
|
37
|
-
type: "multiple",
|
|
38
|
-
variant: "dragAndDropWithIcon"
|
|
39
|
-
}
|
|
40
|
-
}`,...(R=(N=C.parameters)==null?void 0:N.docs)==null?void 0:R.source}}};var _,q,T;F.parameters={...F.parameters,docs:{...(_=F.parameters)==null?void 0:_.docs,source:{originalSource:`{
|
|
41
|
-
args: {
|
|
42
|
-
variant: "dragAndDrop"
|
|
43
|
-
}
|
|
44
|
-
}`,...(T=(q=F.parameters)==null?void 0:q.docs)==null?void 0:T.source}}};var V,Z,K;j.parameters={...j.parameters,docs:{...(V=j.parameters)==null?void 0:V.docs,source:{originalSource:`{
|
|
45
|
-
args: {
|
|
46
|
-
variant: "dragAndDropWithIcon"
|
|
47
|
-
}
|
|
48
|
-
}`,...(K=(Z=j.parameters)==null?void 0:Z.docs)==null?void 0:K.source}}};var k,G,J;v.parameters={...v.parameters,docs:{...(k=v.parameters)==null?void 0:k.docs,source:{originalSource:`{
|
|
49
|
-
args: {
|
|
50
|
-
type: "multiple",
|
|
51
|
-
variant: "dragAndDropWithIcon"
|
|
52
|
-
}
|
|
53
|
-
}`,...(J=(G=v.parameters)==null?void 0:G.docs)==null?void 0:J.source}}};var Q,X,Y;I.parameters={...I.parameters,docs:{...(Q=I.parameters)==null?void 0:Q.docs,source:{originalSource:`{
|
|
54
|
-
args: {
|
|
55
|
-
acceptedFileTypes: [".jpg", ".png"],
|
|
56
|
-
variant: "dragAndDropWithIcon"
|
|
57
|
-
}
|
|
58
|
-
}`,...(Y=(X=I.parameters)==null?void 0:X.docs)==null?void 0:Y.source}}};const wt=["ButtonOnly","DragAndDropWithIcon","DragAndDropWithoutIcon","SingleFileAllowed","MultipleFileAllowed","SpecificFileTypes"];export{x as ButtonOnly,C as DragAndDropWithIcon,F as DragAndDropWithoutIcon,v as MultipleFileAllowed,j as SingleFileAllowed,I as SpecificFileTypes,wt as __namedExportsOrder,At as default};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{r as e}from"./index-NdkWRN8K.js";import{j as r}from"./jsx-runtime-CnH95YSl.js";import{S as l}from"./OdysseyThemeProvider-uYQ_l8PJ.js";const n=e.forwardRef((o,t)=>r.jsx(l,{fill:"none",ref:t,viewBox:"0 0 16 16",xmlns:"http://www.w3.org/2000/svg",...o,children:r.jsx(r.Fragment,{children:r.jsx("path",{clipRule:"evenodd",d:"M.667 2.667h14.666V1.333H.667v1.334Zm2 4h10.666V5.333H2.667v1.334Zm8.666 4H4.667V9.333h6.666v1.334Zm-4.666 4h2.666v-1.334H6.667v1.334Z",fill:"currentColor",fillRule:"evenodd"})})})),i=e.memo(n);i.displayName="FilterIcon";export{i as M};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{r}from"./index-NdkWRN8K.js";import{j as o}from"./jsx-runtime-CnH95YSl.js";import{S as l}from"./OdysseyThemeProvider-uYQ_l8PJ.js";const a=r.forwardRef((e,c)=>o.jsx(l,{fill:"none",ref:c,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:"M5.738 3.333c.384 0 .425.008.452.017a.333.333 0 0 1 .12.07c.02.018.048.05.239.384l2.205 3.86.192.336H14v3.2c0 .384 0 .633-.016.821-.015.181-.04.249-.057.282a.667.667 0 0 1-.291.291c-.033.017-.1.042-.281.057a11.35 11.35 0 0 1-.822.016H3.467c-.385 0-.633 0-.822-.016-.18-.015-.248-.04-.281-.057a.667.667 0 0 1-.291-.291c-.017-.033-.042-.1-.057-.282A11.336 11.336 0 0 1 2 11.2V3.333h3.738Zm.865-1.25c-.255-.084-.528-.084-.8-.083H.667v9.226c0 .351 0 .654.02.904.022.264.07.526.198.778a2 2 0 0 0 .874.874c.252.129.514.176.778.198.25.02.553.02.904.02h9.118c.351 0 .655 0 .904-.02.264-.022.526-.07.778-.198a2 2 0 0 0 .874-.874c.129-.252.176-.514.198-.778.02-.25.02-.553.02-.904V3.333H7.815l-.109-.19-.032-.057c-.134-.237-.27-.474-.469-.654a1.667 1.667 0 0 0-.602-.35Zm1.974 2.584 1.143 2H14v-2H8.577Z",fill:"currentColor",fillRule:"evenodd"})})})),n=r.memo(a);n.displayName="FolderIcon";export{n as M};
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import{j as e}from"./jsx-runtime-CnH95YSl.js";import{useMDXComponents as n}from"./index-BeeV6X6A.js";import"./index-DI1lVgTb.js";import{M as o}from"./index-DiEiQB-f.js";import"./index-NdkWRN8K.js";import"./_commonjsHelpers-gnU0ypJ3.js";import"./preview-nv3jWDyz.js";import"./iframe-B5wE2ay9.js";import"./DocsRenderer-CFRXHY34-P8M6yttG.js";import"./client-ByW5HbEz.js";import"./index-DieBXP3Z.js";import"./index-BJTM6NaI.js";import"./index-B5xazMy1.js";import"./index-CXQShRbs.js";import"./index-DrFu-skq.js";function s(i){const t={a:"a",code:"code",h2:"h2",h3:"h3",h4:"h4",p:"p",...n(),...i.components};return e.jsxs(e.Fragment,{children:[e.jsx(o,{}),`
|
|
2
|
-
`,e.jsx(t.h2,{id:"form-field-accessibility",children:"Form Field Accessibility"}),`
|
|
3
|
-
`,e.jsx(t.h3,{id:"placeholders",children:"Placeholders"}),`
|
|
4
|
-
`,e.jsx(t.p,{children:"Except for Search inputs, we advise against using placeholder text for inputs."}),`
|
|
5
|
-
`,e.jsx(t.h4,{id:"translation",children:"Translation"}),`
|
|
6
|
-
`,e.jsx(t.p,{children:"To prevent triggering a change in page layout, browsers don't translate certain attributes. Because of this, users will see untranslated placeholder text."}),`
|
|
7
|
-
`,e.jsx(t.h4,{id:"recall",children:"Recall"}),`
|
|
8
|
-
`,e.jsx(t.p,{children:"Placeholder text disappears when a field is interacted with. For this reason, it's not suitable for formatting guidelines or necessary context."}),`
|
|
9
|
-
`,e.jsx(t.h4,{id:"utility",children:"Utility"}),`
|
|
10
|
-
`,e.jsx(t.p,{children:"Placeholder content is limited to static text. Additionally, placeholder text is truncated beyond the width of its input."}),`
|
|
11
|
-
`,e.jsx(t.h4,{id:"field-value-confusion",children:"Field value confusion"}),`
|
|
12
|
-
`,e.jsx(t.p,{children:"Low-contrast placeholders may be illegible for some users. Yet, placeholders with compliant contrast can be mistaken for field values. High Contrast Mode will make placeholders and values appear identical."}),`
|
|
13
|
-
`,e.jsx(t.p,{children:"Finally, Users with low digital literacy may not understand the purpose or behavior of placeholder text."}),`
|
|
14
|
-
`,e.jsx(t.h3,{id:"purpose",children:"Purpose"}),`
|
|
15
|
-
`,e.jsxs(t.p,{children:["When collecting an individual's personal data, you must define the input's purpose via the ",e.jsx(t.code,{children:"autocomplete"})," attribute. This allows users to automate the filling of fields and ensures the purpose is known, regardless of the label. A complete list of fields this is required for may be found ",e.jsx("a",{href:"https://www.w3.org/TR/WCAG21/#input-purposes",children:"in the WCAG spec"}),"."]}),`
|
|
16
|
-
`,e.jsx(t.h3,{id:"autofocus",children:"Autofocus"}),`
|
|
17
|
-
`,e.jsxs(t.p,{children:["Except for very specific cases, we advise against using the ",e.jsx(t.code,{children:"autoFocus"}),' prop; unless used considerately, the sense of focus being "teleported" to an unexpected part of the page can be jarring to users, especially those using screen readers.']}),`
|
|
18
|
-
`,e.jsxs(t.p,{children:["More details can be found ",e.jsxs(t.a,{href:"https://developer.mozilla.org/en-US/docs/Web/HTML/Global_attributes/autofocus#accessibility_considerations",rel:"nofollow",children:["on MDN's ",e.jsx(t.code,{children:"autofocus"})," page"]}),"."]})]})}function y(i={}){const{wrapper:t}={...n(),...i.components};return t?e.jsx(t,{...i,children:e.jsx(s,{...i})}):s(i)}export{y as default};
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import{u as T,h as t}from"./OdysseyThemeProvider-uYQ_l8PJ.js";import{r as S}from"./index-NdkWRN8K.js";import{b as k,d as F}from"./Typography-gfYWxfhb.js";import{u as M}from"./useUniqueId-DUzAQ6pl.js";import{j as e}from"./jsx-runtime-CnH95YSl.js";/*!
|
|
2
|
-
* Copyright (c) 2022-present, Okta, Inc. and/or its affiliates. All rights reserved.
|
|
3
|
-
* The Okta software accompanied by this notice is provided pursuant to the Apache License, Version 2.0 (the "License.")
|
|
4
|
-
*
|
|
5
|
-
* You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0.
|
|
6
|
-
* Unless required by applicable law or agreed to in writing, software
|
|
7
|
-
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
|
|
8
|
-
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
9
|
-
*
|
|
10
|
-
* See the License for the specific language governing permissions and limitations under the License.
|
|
11
|
-
*/const W=["application/x-www-form-urlencoded","application/json","multipart/form-data","text/plain"],q=["on","off"],A=["post","get","dialog"],C=t.form(({isFullWidth:o,odysseyDesignTokens:s})=>({maxWidth:o?"100%":s.TypographyLineLengthMax,margin:0,padding:0})),D=t.div(({odysseyDesignTokens:o})=>({marginBlockEnd:o.Spacing4})),E=t.div({display:"flex",justifyContent:"flex-end"},({odysseyDesignTokens:o})=>({gap:o.Spacing1,marginBlockStart:o.Spacing7})),V=({alert:o,autoCompleteType:s,children:m,description:a,encodingType:p,formActions:i,id:l,isFullWidth:c,method:g,name:u,noValidate:y=!1,onSubmit:f,target:x,testId:h,title:r,translate:d})=>{const j=M(l),n=T();return e.jsxs(C,{autoComplete:s,"data-se":h,encType:p,id:j,isFullWidth:c,method:g,name:u,noValidate:y,odysseyDesignTokens:n,onSubmit:f,target:x,children:[e.jsxs(D,{odysseyDesignTokens:n,children:[r&&e.jsx(k,{component:"h1",translate:d,children:r}),a&&e.jsx(F,{translate:d,children:a}),o]}),e.jsx("div",{children:m}),i&&e.jsx(E,{odysseyDesignTokens:n,children:i})]})},b=S.memo(V);b.displayName="Form";export{b as M,W as a,q as b,A as f};
|
|
@@ -1,69 +0,0 @@
|
|
|
1
|
-
import{j as e}from"./jsx-runtime-CnH95YSl.js";import{O as W}from"./OdysseyStorybookThemeDecorator-DsQ8XVOG.js";import{f as E}from"./fieldComponentPropsMetaData-kU3Yruac.js";import{f as c,a as d,b as u,M as A}from"./Form-EZzJYIT7.js";import{M as h}from"./Button-NJfX6YsF.js";import{M as t}from"./TextField-DvELiaRt.js";import{M as l}from"./Fieldset-C7cnRgpz.js";import{M as p}from"./Callout-CHhRxeIB.js";import{M as z}from"./CheckboxGroup-BbhvyMBP.js";import{M as m}from"./Checkbox-LVOv88W2.js";import{a as D}from"./Typography-gfYWxfhb.js";import{M as B}from"./Link-P2sjP-aD.js";import"./index-NdkWRN8K.js";import"./_commonjsHelpers-gnU0ypJ3.js";import"./OdysseyThemeProvider-uYQ_l8PJ.js";import"./index-BJTM6NaI.js";import"./OdysseyProvider-YUKfsUrL.js";import"./useUniqueId-DUzAQ6pl.js";import"./createUniqueId-BHjR7HQF.js";import"./BaseButton-CPts8Xl1.js";import"./MuiPropsContext-DhRylJZk.js";import"./Tooltip-Bx__kQJp.js";import"./Tooltip-gH7ETEPn.js";import"./Grow-CbLflC0D.js";import"./utils-uddq32f3.js";import"./inheritsLoose-6wpAF9yl.js";import"./index-B5xazMy1.js";import"./index-DieBXP3Z.js";import"./TransitionGroupContext-DAL84N7p.js";import"./useIsFocusVisible-DH0qxT5e.js";import"./getReactElementRef-CYW9xr5m.js";import"./resolveComponentProps-zX2d3UUb.js";import"./isHostComponent-DVu5iVWx.js";import"./useControlled-NQulfz4l.js";import"./Popper-vW9B5iyN.js";import"./popper-BXFsSIrb.js";import"./ownerDocument-DW-IO8s5.js";import"./Portal-ev1Y_qJb.js";import"./Button-dStBbGjZ.js";import"./ButtonBase-Wolvis_2.js";import"./assertThisInitialized-B9jnkVVz.js";import"./Field-BVmhMv9m.js";import"./Box-XLjSpNxK.js";import"./Box-C-xmRxaS.js";import"./createBox-emhTu6dS.js";import"./List-BcG-NsbC.js";import"./ListItem-Bv1M9lel.js";import"./utils-iop7lDec.js";import"./useFormControl-BMISTZuX.js";import"./FormLabel-C4KesWyd.js";import"./ScreenReaderText-CQNs2mcT.js";import"./visuallyHidden-Dan1xhjv.js";import"./FormHelperText-CZEj6vhF.js";import"./FieldHint-BFs7d7f5.js";import"./inputUtils-Dbi8XkA6.js";import"./InputBase-Cc2rXj8N.js";import"./ownerWindow-HkKU3E4x.js";import"./debounce-Be36O1Ab.js";import"./InputAdornment-CrT6j38e.js";import"./Typography-BIFhmR2K.js";import"./AlertTitle-BdgyvdT3.js";import"./useSlot-bWb1W-uo.js";import"./createSvgIcon-SdTF6s8l.js";import"./Close-DWj_zrWe.js";import"./IconButton-DwJqCevw.js";import"./Paper-BGSgbZC6.js";import"./FormGroup-B2pOz0HL.js";import"./Hint-qhf1AEE0.js";import"./FormControlLabel-0yOoM5iA.js";import"./Stack-Co_ZNMgX.js";import"./createStyled-B09qmfVW.js";import"./useThemeProps-4A-zY4M2.js";import"./Checkbox-DGd8S5xK.js";import"./SwitchBase-DDdOwpAs.js";import"./Link-LYj8-DeM.js";import"./ExternalLink-C7UPr4SL.js";const nt={component:A,decorators:[W],tags:["autodocs"],argTypes:{title:{control:"text",description:"The title of the Form",table:{type:{summary:"string"}}},description:{control:"text",description:"A supplementary description",table:{type:{summary:"string"}}},children:{control:"object",description:"Field or FieldSet components within the Form",table:{type:{summary:"ReactElement | Array<ReactElement>"}},type:{required:!0,name:"other",value:"ReactElement | Array<ReactElement>"}},alert:{description:"A Callout indicating a Form-wide error or status update",table:{type:{summary:"ReactElement<typeof Callout>"}}},autoCompleteType:{options:u,control:{type:"radio"},description:"Indicates whether input elements can have their values automatically completed by the browser",table:{type:{summary:u.join(" | ")}}},isFullWidth:E.isFullWidth,name:{control:"text",description:"The name of the form. The value must not be an empty string and must be unique among the form elements",table:{type:{summary:"string"}},type:{required:!0,name:"string"}},noValidate:{control:"boolean",description:"This Boolean attribute indicates that the form shouldn't be validated when submitted",table:{type:{summary:"boolean"},defaultValue:{summary:"false"}}},encodingType:{options:d,control:{type:"radio"},description:"If the method attribute is set to 'post', the MIME type of the form submission",table:{type:{summary:d.join(" | ")}}},method:{options:c,control:{type:"radio"},description:"The HTTP method to submit the form with",table:{type:{summary:c.join(" | ")}}},target:{control:"text",description:"Indicates where to display the response after submitting the form",table:{type:{summary:"string"}}},formActions:{control:"object",description:"One or more Buttons that conclude the form.",table:{type:{summary:"ReactElement<typeof Button> | Array<ReactElement<typeof Button>>"}}},id:{control:"text",description:"Defines a unique identifier (ID) for the Form",table:{type:{summary:"string"}}}},args:{title:"Docking registration",children:e.jsxs(e.Fragment,{children:[e.jsx(t,{label:"Vessel name"}),e.jsx(t,{isMultiline:!0,label:"Reason for visit"})]}),formActions:e.jsxs(e.Fragment,{children:[e.jsx(h,{label:"Reset",variant:"secondary"}),e.jsx(h,{label:"Submit",type:"submit",variant:"primary"})]})}},r={args:{children:e.jsxs(e.Fragment,{children:[e.jsx(t,{label:"Vessel name"}),e.jsx(t,{isMultiline:!0,label:"Reason for visit"})]})}},i={args:{children:e.jsxs(e.Fragment,{children:[e.jsxs(l,{legend:"Vessel information",name:"vessel",children:[e.jsx(t,{label:"Vessel name"}),e.jsx(t,{isMultiline:!0,label:"Reason for visit"})]}),e.jsxs(l,{legend:"Passenger information",name:"passengers",children:[e.jsx(t,{label:"Number of passengers"}),e.jsx(t,{label:"Captain's name"})]})]})}},o={args:{description:"Register your ship before docking with the station."}},s={args:{alert:e.jsx(p,{role:"alert",severity:"error",title:"Something went wrong",children:"Please try your request again later."})}},a={args:{isFullWidth:!0,children:e.jsxs(e.Fragment,{children:[e.jsx(t,{isFullWidth:!0,label:"Vessel name"}),e.jsx(t,{isFullWidth:!0,isMultiline:!0,label:"Reason for visit"})]})}},n={args:{alert:e.jsx(p,{role:"alert",severity:"error",title:"Something went wrong",children:"Please try your request again later."}),children:e.jsxs(e.Fragment,{children:[e.jsxs(l,{description:"This information is used to verify vessel ownership and origin.",legend:"Vessel information",name:"vessel",children:[e.jsx(t,{errorMessage:"This field is required.",label:"Vessel name"}),e.jsxs(z,{isRequired:!0,label:"Systems check",children:[e.jsx(m,{label:"Life support",name:"life-support",value:"life-support"}),e.jsx(m,{label:"Warp core containment",name:"warp-core",value:"warp-core"}),e.jsx(m,{label:"Cetacean ops",name:"cetacean-ops",value:"cetacean-ops"})]})]}),e.jsxs(l,{alert:e.jsxs(p,{role:"alert",severity:"error",title:"Standby for boarding",children:[e.jsx(D,{children:"There is an issue with the fuel mixture ratios. Reconfigure the fuel mixture and perform the safety checks again."}),e.jsx(B,{href:"#",variant:"monochrome",children:"Visit fueling console"})]}),description:"This information will be used to track your passengers' whereabouts.",legend:"Passenger information",name:"passengers",children:[e.jsx(t,{hint:"Specify your destination within the Sol system.",label:"Number of passengers"}),e.jsx(t,{label:"Captain's name"})]})]}),description:"Register your ship before docking with the station."}};var g,f,b;r.parameters={...r.parameters,docs:{...(g=r.parameters)==null?void 0:g.docs,source:{originalSource:`{
|
|
2
|
-
args: {
|
|
3
|
-
children: <>
|
|
4
|
-
<TextField label="Vessel name" />
|
|
5
|
-
<TextField isMultiline label="Reason for visit" />
|
|
6
|
-
</>
|
|
7
|
-
}
|
|
8
|
-
}`,...(b=(f=r.parameters)==null?void 0:f.docs)==null?void 0:b.source}}};var y,x,F;i.parameters={...i.parameters,docs:{...(y=i.parameters)==null?void 0:y.docs,source:{originalSource:`{
|
|
9
|
-
args: {
|
|
10
|
-
children: <>
|
|
11
|
-
<Fieldset legend="Vessel information" name="vessel">
|
|
12
|
-
<TextField label="Vessel name" />
|
|
13
|
-
<TextField isMultiline label="Reason for visit" />
|
|
14
|
-
</Fieldset>
|
|
15
|
-
<Fieldset legend="Passenger information" name="passengers">
|
|
16
|
-
<TextField label="Number of passengers" />
|
|
17
|
-
<TextField label="Captain's name" />
|
|
18
|
-
</Fieldset>
|
|
19
|
-
</>
|
|
20
|
-
}
|
|
21
|
-
}`,...(F=(x=i.parameters)==null?void 0:x.docs)==null?void 0:F.source}}};var j,v,w;o.parameters={...o.parameters,docs:{...(j=o.parameters)==null?void 0:j.docs,source:{originalSource:`{
|
|
22
|
-
args: {
|
|
23
|
-
description: "Register your ship before docking with the station."
|
|
24
|
-
}
|
|
25
|
-
}`,...(w=(v=o.parameters)==null?void 0:v.docs)==null?void 0:w.source}}};var T,M,k;s.parameters={...s.parameters,docs:{...(T=s.parameters)==null?void 0:T.docs,source:{originalSource:`{
|
|
26
|
-
args: {
|
|
27
|
-
alert: <Callout role="alert" severity="error" title="Something went wrong">
|
|
28
|
-
Please try your request again later.
|
|
29
|
-
</Callout>
|
|
30
|
-
}
|
|
31
|
-
}`,...(k=(M=s.parameters)==null?void 0:M.docs)==null?void 0:k.source}}};var C,S,R;a.parameters={...a.parameters,docs:{...(C=a.parameters)==null?void 0:C.docs,source:{originalSource:`{
|
|
32
|
-
args: {
|
|
33
|
-
isFullWidth: true,
|
|
34
|
-
children: <>
|
|
35
|
-
<TextField isFullWidth label="Vessel name" />
|
|
36
|
-
<TextField isFullWidth isMultiline label="Reason for visit" />
|
|
37
|
-
</>
|
|
38
|
-
}
|
|
39
|
-
}`,...(R=(S=a.parameters)==null?void 0:S.docs)==null?void 0:R.source}}};var V,P,q;n.parameters={...n.parameters,docs:{...(V=n.parameters)==null?void 0:V.docs,source:{originalSource:`{
|
|
40
|
-
args: {
|
|
41
|
-
alert: <Callout role="alert" severity="error" title="Something went wrong">
|
|
42
|
-
Please try your request again later.
|
|
43
|
-
</Callout>,
|
|
44
|
-
children: <>
|
|
45
|
-
<Fieldset description="This information is used to verify vessel ownership and origin." legend="Vessel information" name="vessel">
|
|
46
|
-
<TextField errorMessage="This field is required." label="Vessel name" />
|
|
47
|
-
<CheckboxGroup isRequired label="Systems check">
|
|
48
|
-
<Checkbox label="Life support" name="life-support" value="life-support" />
|
|
49
|
-
<Checkbox label="Warp core containment" name="warp-core" value="warp-core" />
|
|
50
|
-
<Checkbox label="Cetacean ops" name="cetacean-ops" value="cetacean-ops" />
|
|
51
|
-
</CheckboxGroup>
|
|
52
|
-
</Fieldset>
|
|
53
|
-
<Fieldset alert={<Callout role="alert" severity="error" title="Standby for boarding">
|
|
54
|
-
<Paragraph>
|
|
55
|
-
There is an issue with the fuel mixture ratios. Reconfigure the
|
|
56
|
-
fuel mixture and perform the safety checks again.
|
|
57
|
-
</Paragraph>
|
|
58
|
-
|
|
59
|
-
<Link href="#" variant="monochrome">
|
|
60
|
-
Visit fueling console
|
|
61
|
-
</Link>
|
|
62
|
-
</Callout>} description="This information will be used to track your passengers' whereabouts." legend="Passenger information" name="passengers">
|
|
63
|
-
<TextField hint="Specify your destination within the Sol system." label="Number of passengers" />
|
|
64
|
-
<TextField label="Captain's name" />
|
|
65
|
-
</Fieldset>
|
|
66
|
-
</>,
|
|
67
|
-
description: "Register your ship before docking with the station."
|
|
68
|
-
}
|
|
69
|
-
}`,...(q=(P=n.parameters)==null?void 0:P.docs)==null?void 0:q.source}}};const lt=["Simple","Fieldsets","Description","Alert","FullWidth","KitchenSink"];export{s as Alert,o as Description,i as Fieldsets,a as FullWidth,n as KitchenSink,r as Simple,lt as __namedExportsOrder,nt as default};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{c as E,_ as S,b as d,d as v,s as R,e as k,f as A,j as M,k as t}from"./OdysseyThemeProvider-uYQ_l8PJ.js";import{r as L}from"./index-NdkWRN8K.js";import{u as w,f as U}from"./useFormControl-BMISTZuX.js";import{j as p}from"./jsx-runtime-CnH95YSl.js";import{T as F}from"./Typography-BIFhmR2K.js";import{S as W}from"./Stack-Co_ZNMgX.js";const z=["checked","className","componentsProps","control","disabled","disableTypography","inputRef","label","labelPlacement","name","onChange","required","slotProps","value"],H=o=>{const{classes:e,disabled:l,labelPlacement:n,error:a,required:r}=o,m={root:["root",l&&"disabled",`labelPlacement${k(n)}`,a&&"error",r&&"required"],label:["label",l&&"disabled"],asterisk:["asterisk",a&&"error"]};return A(m,M,e)},I=R("label",{name:"MuiFormControlLabel",slot:"Root",overridesResolver:(o,e)=>{const{ownerState:l}=o;return[{[`& .${t.label}`]:e.label},e.root,e[`labelPlacement${k(l.labelPlacement)}`]]}})(({theme:o,ownerState:e})=>d({display:"inline-flex",alignItems:"center",cursor:"pointer",verticalAlign:"middle",WebkitTapHighlightColor:"transparent",marginLeft:-11,marginRight:16,[`&.${t.disabled}`]:{cursor:"default"}},e.labelPlacement==="start"&&{flexDirection:"row-reverse",marginLeft:16,marginRight:-11},e.labelPlacement==="top"&&{flexDirection:"column-reverse",marginLeft:16},e.labelPlacement==="bottom"&&{flexDirection:"column",marginLeft:16},{[`& .${t.label}`]:{[`&.${t.disabled}`]:{color:(o.vars||o).palette.text.disabled}}})),B=R("span",{name:"MuiFormControlLabel",slot:"Asterisk",overridesResolver:(o,e)=>e.asterisk})(({theme:o})=>({[`&.${t.error}`]:{color:(o.vars||o).palette.error.main}})),X=L.forwardRef(function(e,l){var n,a;const r=E({props:e,name:"MuiFormControlLabel"}),{className:m,componentsProps:j={},control:i,disabled:P,disableTypography:$,label:q,labelPlacement:N="end",required:C,slotProps:_={}}=r,T=S(r,z),b=w(),y=(n=P??i.props.disabled)!=null?n:b==null?void 0:b.disabled,u=C??i.props.required,x={disabled:y,required:u};["checked","name","onChange","value","inputRef"].forEach(c=>{typeof i.props[c]>"u"&&typeof r[c]<"u"&&(x[c]=r[c])});const D=U({props:r,muiFormControl:b,states:["error"]}),f=d({},r,{disabled:y,labelPlacement:N,required:u,error:D.error}),g=H(f),h=(a=_.typography)!=null?a:j.typography;let s=q;return s!=null&&s.type!==F&&!$&&(s=p.jsx(F,d({component:"span"},h,{className:v(g.label,h==null?void 0:h.className),children:s}))),p.jsxs(I,d({className:v(g.root,m),ownerState:f,ref:l},T,{children:[L.cloneElement(i,x),u?p.jsxs(W,{display:"block",children:[s,p.jsxs(B,{ownerState:f,"aria-hidden":!0,className:g.asterisk,children:[" ","*"]})]}):s]}))});export{X as F};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{c as u,_ as f,b as e,s as w,d as x,f as d,y as F}from"./OdysseyThemeProvider-uYQ_l8PJ.js";import{r as C}from"./index-NdkWRN8K.js";import{u as G,f as R}from"./useFormControl-BMISTZuX.js";import{j}from"./jsx-runtime-CnH95YSl.js";const y=["className","row"],_=o=>{const{classes:r,row:t,error:s}=o;return d({root:["root",t&&"row",s&&"error"]},F,r)},v=w("div",{name:"MuiFormGroup",slot:"Root",overridesResolver:(o,r)=>{const{ownerState:t}=o;return[r.root,t.row&&r.row]}})(({ownerState:o})=>e({display:"flex",flexDirection:"column",flexWrap:"wrap"},o.row&&{flexDirection:"row"})),h=C.forwardRef(function(r,t){const s=u({props:r,name:"MuiFormGroup"}),{className:a,row:c=!1}=s,l=f(s,y),m=G(),p=R({props:s,muiFormControl:m,states:["error"]}),n=e({},s,{row:c,error:p.error}),i=_(n);return j.jsx(v,e({className:x(i.root,a),ownerState:n,ref:t},l))});export{h as F};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{W as v,V as z,c as b,_ as F,b as c,s as T,d as C,e as x,f as H}from"./OdysseyThemeProvider-uYQ_l8PJ.js";import{r as q}from"./index-NdkWRN8K.js";import{u as R,f as j}from"./useFormControl-BMISTZuX.js";import{j as p}from"./jsx-runtime-CnH95YSl.js";function y(e){return z("MuiFormHelperText",e)}const f=v("MuiFormHelperText",["root","error","disabled","sizeSmall","sizeMedium","contained","focused","filled","required"]);var u;const M=["children","className","component","disabled","error","filled","focused","margin","required","variant"],_=e=>{const{classes:r,contained:s,size:t,disabled:a,error:l,filled:i,focused:n,required:d}=e,o={root:["root",a&&"disabled",l&&"error",t&&`size${x(t)}`,s&&"contained",n&&"focused",i&&"filled",d&&"required"]};return H(o,y,r)},N=T("p",{name:"MuiFormHelperText",slot:"Root",overridesResolver:(e,r)=>{const{ownerState:s}=e;return[r.root,s.size&&r[`size${x(s.size)}`],s.contained&&r.contained,s.filled&&r.filled]}})(({theme:e,ownerState:r})=>c({color:(e.vars||e).palette.text.secondary},e.typography.caption,{textAlign:"left",marginTop:3,marginRight:0,marginBottom:0,marginLeft:0,[`&.${f.disabled}`]:{color:(e.vars||e).palette.text.disabled},[`&.${f.error}`]:{color:(e.vars||e).palette.error.main}},r.size==="small"&&{marginTop:4},r.contained&&{marginLeft:14,marginRight:14})),S=q.forwardRef(function(r,s){const t=b({props:r,name:"MuiFormHelperText"}),{children:a,className:l,component:i="p"}=t,n=F(t,M),d=R(),o=j({props:t,muiFormControl:d,states:["variant","size","disabled","error","filled","focused","required"]}),m=c({},t,{component:i,contained:o.variant==="filled"||o.variant==="outlined",variant:o.variant,size:o.size,disabled:o.disabled,error:o.error,filled:o.filled,focused:o.focused,required:o.required}),g=_(m);return p.jsx(N,c({as:i,ownerState:m,className:C(g.root,l),ref:s},n,{children:a===" "?u||(u=p.jsx("span",{className:"notranslate",children:""})):a}))});export{S as F,f};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{c as x,_ as v,b as i,s as b,d as F,e as L,f as y,w as C,x as t}from"./OdysseyThemeProvider-uYQ_l8PJ.js";import{r as q}from"./index-NdkWRN8K.js";import{u as k,f as R}from"./useFormControl-BMISTZuX.js";import{j as m}from"./jsx-runtime-CnH95YSl.js";const j=["children","className","color","component","disabled","error","filled","focused","required"],$=r=>{const{classes:o,color:c,focused:s,disabled:d,error:a,filled:l,required:n}=r,p={root:["root",`color${L(c)}`,d&&"disabled",a&&"error",l&&"filled",s&&"focused",n&&"required"],asterisk:["asterisk",a&&"error"]};return y(p,C,o)},g=b("label",{name:"MuiFormLabel",slot:"Root",overridesResolver:({ownerState:r},o)=>i({},o.root,r.color==="secondary"&&o.colorSecondary,r.filled&&o.filled)})(({theme:r,ownerState:o})=>i({color:(r.vars||r).palette.text.secondary},r.typography.body1,{lineHeight:"1.4375em",padding:0,position:"relative",[`&.${t.focused}`]:{color:(r.vars||r).palette[o.color].main},[`&.${t.disabled}`]:{color:(r.vars||r).palette.text.disabled},[`&.${t.error}`]:{color:(r.vars||r).palette.error.main}})),N=b("span",{name:"MuiFormLabel",slot:"Asterisk",overridesResolver:(r,o)=>o.asterisk})(({theme:r})=>({[`&.${t.error}`]:{color:(r.vars||r).palette.error.main}})),E=q.forwardRef(function(o,c){const s=x({props:o,name:"MuiFormLabel"}),{children:d,className:a,component:l="label"}=s,n=v(s,j),p=k(),e=R({props:s,muiFormControl:p,states:["color","required","focused","disabled","error","filled"]}),u=i({},s,{color:e.color||"primary",component:l,disabled:e.disabled,error:e.error,filled:e.filled,focused:e.focused,required:e.required}),f=$(u);return m.jsxs(g,i({as:l,ownerState:u,className:F(f.root,a),ref:c},n,{children:[d,e.required&&m.jsxs(N,{ownerState:u,"aria-hidden":!0,className:f.asterisk,children:[" ","*"]})]}))});export{E as F};
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import{r as l}from"./index-NdkWRN8K.js";import{u as s,M as t}from"./OdysseyProvider-YUKfsUrL.js";import{j as n}from"./jsx-runtime-CnH95YSl.js";/*!
|
|
2
|
-
* Copyright (c) 2025-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 m=({children:e,overlayType:o})=>{const{overlayEmotionRootElement:r,overlayShadowRootElement:a}=s();return n.jsx(t,{emotionRootElement:r,hasScopedCssBaseline:!1,hasTranslationProvider:!1,hasWrapperElement:!1,overlayType:o,shadowRootElement:a,children:e})},i=l.memo(m);i.displayName="FullScreenOverlay";export{i as M};
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import{j as e}from"./jsx-runtime-CnH95YSl.js";import{useMDXComponents as i}from"./index-BeeV6X6A.js";import{M as t}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 o(s){const n={code:"code",h1:"h1",h2:"h2",li:"li",ol:"ol",p:"p",pre:"pre",...i(),...s.components};return e.jsxs(e.Fragment,{children:[e.jsx(t,{}),`
|
|
2
|
-
`,e.jsx(n.h1,{id:"generating-odyssey-icons",children:"Generating Odyssey Icons"}),`
|
|
3
|
-
`,e.jsx(n.h2,{id:"tldr",children:"tl;dr"}),`
|
|
4
|
-
`,e.jsxs(n.ol,{children:[`
|
|
5
|
-
`,e.jsx(n.li,{children:"Designer exports all icons as SVGs."}),`
|
|
6
|
-
`,e.jsxs(n.li,{children:["Put icons in ",e.jsx(n.code,{children:"packages/odyssey-icons/figma"}),"."]}),`
|
|
7
|
-
`,e.jsxs(n.li,{children:["Run ",e.jsx(n.code,{children:"yarn generate:icons"})," from the project root."]}),`
|
|
8
|
-
`,e.jsxs(n.li,{children:["Add new icons to ",e.jsx(n.code,{children:"packages/core/odyssey-react-mui/icons/index.ts"}),"."]}),`
|
|
9
|
-
`]}),`
|
|
10
|
-
`,e.jsx(n.h2,{id:"verbose",children:"Verbose"}),`
|
|
11
|
-
`,e.jsxs(n.p,{children:["When we have new icons in Figma, a designer will add those to the ",e.jsx(n.code,{children:"packages/odyssey-icons"})," package in the ",e.jsx(n.code,{children:"figma/"})," folder."]}),`
|
|
12
|
-
`,e.jsx(n.p,{children:"After that's complete, run this command to generate our icons:"}),`
|
|
13
|
-
`,e.jsx(n.pre,{children:e.jsx(n.code,{className:"language-sh",children:`yarn generate:icons
|
|
14
|
-
`})}),`
|
|
15
|
-
`,e.jsxs(n.p,{children:["After icons are generated, there's one manual step required. Any new icons need to be manually added to the ",e.jsx(n.code,{children:"odyssey-react-mui/icons/index.ts"})," file. Just copy paste an existing icon export and modify it."]}),`
|
|
16
|
-
`,e.jsx(n.p,{children:"In the past, this was automated, but an update to the SVGR library broke index templating, so we have to do this part by hand."})]})}function g(s={}){const{wrapper:n}={...i(),...s.components};return n?e.jsx(n,{...s,children:e.jsx(o,{...s})}):o(s)}export{g as default};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{r as e}from"./index-NdkWRN8K.js";import{j as o}from"./jsx-runtime-CnH95YSl.js";import{S as l}from"./OdysseyThemeProvider-uYQ_l8PJ.js";const m=e.forwardRef((r,c)=>o.jsx(l,{fill:"none",ref:c,viewBox:"0 0 16 16",xmlns:"http://www.w3.org/2000/svg",...r,children:o.jsx(o.Fragment,{children:o.jsx("path",{clipRule:"evenodd",d:"M7.446 2.315C7.686 2.061 7.874 2 8 2c.126 0 .313.061.554.315.241.256.49.662.713 1.219.387.968.657 2.295.72 3.8H6.013c.062-1.505.332-2.832.72-3.8.222-.557.47-.963.712-1.219ZM4.68 7.333c.063-1.644.357-3.145.816-4.295a7.29 7.29 0 0 1 .278-.611 6.006 6.006 0 0 0-3.736 4.906H4.68ZM2.037 8.667a6.006 6.006 0 0 0 3.736 4.906 7.09 7.09 0 0 1-.278-.611c-.46-1.15-.753-2.65-.816-4.295H2.037Zm3.977 0h3.972c-.062 1.504-.332 2.83-.72 3.8-.222.556-.47.962-.712 1.218-.24.254-.428.315-.554.315-.126 0-.313-.061-.554-.315-.241-.256-.49-.662-.713-1.219-.387-.968-.657-2.295-.72-3.8Zm5.307 0c-.063 1.644-.357 3.145-.816 4.295a7.116 7.116 0 0 1-.278.611 6.006 6.006 0 0 0 3.736-4.906h-2.642Zm2.642-1.334a6.006 6.006 0 0 0-3.736-4.906c.1.194.192.398.278.611.46 1.15.753 2.65.816 4.295h2.642Zm1.37.667A7.333 7.333 0 1 1 .667 8a7.333 7.333 0 0 1 14.666 0Z",fill:"currentColor",fillRule:"evenodd"})})})),n=e.memo(m);n.displayName="GlobeIcon";export{n as M};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{r as o}from"./index-NdkWRN8K.js";import{j as r}from"./jsx-runtime-CnH95YSl.js";import{S as m}from"./OdysseyThemeProvider-uYQ_l8PJ.js";const n=o.forwardRef((e,a)=>r.jsx(m,{fill:"none",ref:a,viewBox:"0 0 16 16",xmlns:"http://www.w3.org/2000/svg",...e,children:r.jsx(r.Fragment,{children:r.jsx("path",{clipRule:"evenodd",d:"M4.667 3.333a1.333 1.333 0 1 1-2.667 0 1.333 1.333 0 0 1 2.667 0Zm0 4.667A1.333 1.333 0 1 1 2 8a1.333 1.333 0 0 1 2.667 0Zm-1.334 6a1.333 1.333 0 1 0 0-2.667 1.333 1.333 0 0 0 0 2.667Zm6-10.667a1.333 1.333 0 1 1-2.666 0 1.333 1.333 0 0 1 2.666 0ZM8 9.333a1.333 1.333 0 1 0 0-2.666 1.333 1.333 0 0 0 0 2.666Zm1.333 3.334a1.333 1.333 0 1 1-2.666 0 1.333 1.333 0 0 1 2.666 0Zm3.334-8a1.333 1.333 0 1 0 0-2.667 1.333 1.333 0 0 0 0 2.667ZM14 8a1.333 1.333 0 1 1-2.667 0A1.333 1.333 0 0 1 14 8Zm-1.333 6a1.333 1.333 0 1 0 0-2.667 1.333 1.333 0 0 0 0 2.667Z",fill:"currentColor",fillRule:"evenodd"})})})),i=o.memo(n);i.displayName="GridIcon";export{i as M};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{r}from"./index-NdkWRN8K.js";import{j as o}from"./jsx-runtime-CnH95YSl.js";import{S as c}from"./OdysseyThemeProvider-uYQ_l8PJ.js";const m=r.forwardRef((e,l)=>o.jsx(c,{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:"M12.667 4.333a1.667 1.667 0 1 1-3.334 0 1.667 1.667 0 0 1 3.334 0Zm1.333 0a3 3 0 1 1-6 0 3 3 0 0 1 6 0ZM6.667 7.667a1.667 1.667 0 1 1-3.334 0 1.667 1.667 0 0 1 3.334 0Zm1.333 0a3 3 0 1 1-6 0 3 3 0 0 1 6 0Zm-3 5c-1.205 0-2.32 1.163-2.333 2.673l-1.334-.013c.02-2.08 1.579-3.994 3.667-3.994 2.09 0 3.654 1.907 3.667 3.996l-1.334.008c-.008-1.511-1.122-2.67-2.333-2.67Zm3.722-1.206c.245-1.25 1.225-2.128 2.278-2.128 1.207 0 2.325 1.16 2.333 2.67l1.334-.007C14.655 9.906 13.086 8 11 8c-1.823 0-3.247 1.47-3.586 3.205-.05.256-.078.52-.08.789l1.333.012c.001-.186.02-.368.055-.545Z",fill:"currentColor",fillRule:"evenodd"})})})),n=r.memo(m);n.displayName="GroupIcon";export{n as M};
|
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
import{O as W}from"./OdysseyStorybookThemeDecorator-DsQ8XVOG.js";import{r as c}from"./index-NdkWRN8K.js";import{M as E}from"./Field-BVmhMv9m.js";import{W as q,V as K,c as H,_,b as f,s as R,d as $,f as ee,u as oe}from"./OdysseyThemeProvider-uYQ_l8PJ.js";import{M as te}from"./Tag-DPyljaiU.js";import{c as ae}from"./Typography-gfYWxfhb.js";import{j as t}from"./jsx-runtime-CnH95YSl.js";import{B as g}from"./Box-C-xmRxaS.js";import{c as re}from"./createSvgIcon-SdTF6s8l.js";import{u as se}from"./useSlot-bWb1W-uo.js";import{M as ie}from"./Grid-CTO70W_E.js";import{I as ne}from"./InputBase-Cc2rXj8N.js";import{A as le}from"./Autocomplete-Ce5vsFXe.js";import{M as pe}from"./User-DR3B8-Pw.js";import{M as ce}from"./Group-BQH7lDPW.js";import"./index-BJTM6NaI.js";import"./OdysseyProvider-YUKfsUrL.js";import"./_commonjsHelpers-gnU0ypJ3.js";import"./Box-XLjSpNxK.js";import"./List-BcG-NsbC.js";import"./ListItem-Bv1M9lel.js";import"./utils-iop7lDec.js";import"./useFormControl-BMISTZuX.js";import"./FormLabel-C4KesWyd.js";import"./useIsFocusVisible-DH0qxT5e.js";import"./isHostComponent-DVu5iVWx.js";import"./ButtonBase-Wolvis_2.js";import"./assertThisInitialized-B9jnkVVz.js";import"./inheritsLoose-6wpAF9yl.js";import"./TransitionGroupContext-DAL84N7p.js";import"./ScreenReaderText-CQNs2mcT.js";import"./visuallyHidden-Dan1xhjv.js";import"./FormHelperText-CZEj6vhF.js";import"./FieldHint-BFs7d7f5.js";import"./useUniqueId-DUzAQ6pl.js";import"./createUniqueId-BHjR7HQF.js";import"./MuiPropsContext-DhRylJZk.js";import"./Chip-p4lq04qX.js";import"./Typography-BIFhmR2K.js";import"./createBox-emhTu6dS.js";import"./resolveComponentProps-zX2d3UUb.js";import"./ownerWindow-HkKU3E4x.js";import"./ownerDocument-DW-IO8s5.js";import"./debounce-Be36O1Ab.js";import"./ArrowDropDown-CSyg-khO.js";import"./Close-DWj_zrWe.js";import"./Paper-BGSgbZC6.js";import"./Popper-vW9B5iyN.js";import"./popper-BXFsSIrb.js";import"./Portal-ev1Y_qJb.js";import"./index-B5xazMy1.js";import"./index-DieBXP3Z.js";import"./getReactElementRef-CYW9xr5m.js";import"./useControlled-NQulfz4l.js";import"./IconButton-DwJqCevw.js";import"./ListSubheader-CBvKBAKL.js";const me=re(t.jsx("path",{d:"M12 12c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm0 2c-2.67 0-8 1.34-8 4v2h16v-2c0-2.66-5.33-4-8-4z"}),"Person");function ue(e){return K("MuiAvatar",e)}const U=q("MuiAvatar",["root","colorDefault","circular","rounded","square","img","fallback"]),de=["alt","children","className","component","slots","slotProps","imgProps","sizes","src","srcSet","variant"],ge=e=>{const{classes:a,variant:r,colorDefault:s}=e;return ee({root:["root",r,s&&"colorDefault"],img:["img"],fallback:["fallback"]},ue,a)},ye=R("div",{name:"MuiAvatar",slot:"Root",overridesResolver:(e,a)=>{const{ownerState:r}=e;return[a.root,a[r.variant],r.colorDefault&&a.colorDefault]}})(({theme:e})=>({position:"relative",display:"flex",alignItems:"center",justifyContent:"center",flexShrink:0,width:40,height:40,fontFamily:e.typography.fontFamily,fontSize:e.typography.pxToRem(20),lineHeight:1,borderRadius:"50%",overflow:"hidden",userSelect:"none",variants:[{props:{variant:"rounded"},style:{borderRadius:(e.vars||e).shape.borderRadius}},{props:{variant:"square"},style:{borderRadius:0}},{props:{colorDefault:!0},style:f({color:(e.vars||e).palette.background.default},e.vars?{backgroundColor:e.vars.palette.Avatar.defaultBg}:f({backgroundColor:e.palette.grey[400]},e.applyStyles("dark",{backgroundColor:e.palette.grey[600]})))}]})),fe=R("img",{name:"MuiAvatar",slot:"Img",overridesResolver:(e,a)=>a.img})({width:"100%",height:"100%",textAlign:"center",objectFit:"cover",color:"transparent",textIndent:1e4}),be=R(me,{name:"MuiAvatar",slot:"Fallback",overridesResolver:(e,a)=>a.fallback})({width:"75%",height:"75%"});function he({crossOrigin:e,referrerPolicy:a,src:r,srcSet:s}){const[p,m]=c.useState(!1);return c.useEffect(()=>{if(!r&&!s)return;m(!1);let d=!0;const i=new Image;return i.onload=()=>{d&&m("loaded")},i.onerror=()=>{d&&m("error")},i.crossOrigin=e,i.referrerPolicy=a,i.src=r,s&&(i.srcset=s),()=>{d=!1}},[e,a,r,s]),p}const V=c.forwardRef(function(a,r){const s=H({props:a,name:"MuiAvatar"}),{alt:p,children:m,className:d,component:i="div",slots:T={},slotProps:w={},imgProps:x,sizes:j,src:b,srcSet:l,variant:B="circular"}=s,S=_(s,de);let y=null;const D=he(f({},x,{src:b,srcSet:l})),C=b||l,n=C&&D!=="error",o=f({},s,{colorDefault:!n,component:i,variant:B}),u=ge(o),[h,A]=se("img",{className:u.img,elementType:fe,externalForwardedProps:{slots:T,slotProps:{img:f({},x,w.img)}},additionalProps:{alt:p,src:b,srcSet:l,sizes:j},ownerState:o});return n?y=t.jsx(h,f({},A)):m||m===0?y=m:C&&p?y=p[0]:y=t.jsx(be,{ownerState:o,className:u.fallback}),t.jsx(ye,f({as:i,ownerState:o,className:$(u.root,d),ref:r},S,{children:y}))}),z=16,Z=24,Ae=({hasMultipleChoices:e,isCustomValueAllowed:a,isDisabled:r,isLoading:s,isOptional:p=!1,isReadOnly:m,hint:d,label:i,onChange:T,onInputChange:w,options:x,value:j,testId:b})=>{const l=oe(),B=c.useCallback((n,o)=>n.id===o.id,[]),S=c.useCallback(n=>n.name,[]),y=c.useCallback((n,o)=>c.createElement("li",{...n,key:o.id},t.jsxs(g,{sx:{alignItems:"top",display:"flex",flexDirection:"row"},children:[t.jsx(g,{sx:{paddingRight:l.Spacing2},children:t.jsx(V,{alt:o.name,src:o.logo,sx:{[`.${U.fallback}`]:{visibility:"hidden"},background:"transparent",height:Z,width:Z}})}),t.jsxs(g,{children:[o.name,t.jsx(ae,{children:o.description}),t.jsxs(g,{sx:{display:"flex",flexDirection:"row",paddingTop:l.Spacing1},children:[typeof o.usersCount=="number"&&t.jsxs(g,{sx:{display:"flex",flexDirection:"row",paddingRight:l.Spacing4},children:[t.jsx(pe,{}),o.usersCount]}),typeof o.appsCount=="number"&&t.jsxs(g,{sx:{display:"flex",flexDirection:"row",paddingRight:l.Spacing4},children:[t.jsx(ie,{}),o.appsCount]}),typeof o.groupPushMappingsCount=="number"&&t.jsxs(g,{sx:{display:"flex",flexDirection:"row"},children:[t.jsx(ce,{}),o.groupPushMappingsCount]})]})]})]})),[l]),D=c.useCallback((n,o)=>n.map((u,h)=>{const{key:A,onDelete:Y}=o({index:h});return t.jsx(g,{sx:{margin:l.Spacing1},children:t.jsx(te,{icon:t.jsx(V,{alt:u.name,src:u.logo,sx:{[`.${U.fallback}`]:{visibility:"hidden"},background:"transparent",height:z,width:z}}),label:u.name,onRemove:Y})},A)}),[l]),C=c.useCallback(({InputLabelProps:n,InputProps:o,...u})=>t.jsx(E,{fieldType:"single",hasVisibleLabel:!0,hint:d,id:n.htmlFor,isOptional:p,label:i,renderFieldComponent:({ariaDescribedBy:h,id:A})=>t.jsx(ne,{...u,...o,"aria-describedby":h,id:A,required:!p})}),[d,p,i]);return t.jsx(le,{"aria-disabled":r,"data-se":b,disabled:r,filterSelectedOptions:!0,freeSolo:a,getOptionLabel:S,isOptionEqualToValue:B,loading:s,multiple:e,onChange:T,onInputChange:w,options:x,readOnly:m,renderInput:C,renderOption:y,renderTags:D,value:j})},ve=c.memo(Ae),v="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACQAAAAkCAQAAABLCVATAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAABgJJREFUGBkFwXmQlnUBAODn977vd+yyy67LcsmxgIQHC4MiaiZiTjoYIOZopU1TUzmVjUozjjpZ6mj90dAfmk6TDGlml1dUJCozkhAVggMlh1y660IruyzLsce33/W+PU/YI3LOegUAAKDTDuOwxlMAAABABABggcfcpwhYIw/uMQlwo7VWAACQAGQCXGadxZhti2lmu00OXOBp79trhgfNcJfHPAkAhD0iZz2v2RmZxjuy3wNOmQAA4JQJgL+7HgCIgGCc+a4x1mMYMAEAABMAdbsAACIgwyydypMkQKakJlQdt9Vh/YyqAQSTMwBAAkA6Ofll/qKsGDCi1TX2/7x3Q37YoGbF6tQbNhzRpVEgim6OH688EgCQZLQUXyGnb+LhRXlBquJqYf2n1s3ZtcMISHS4trP/wltf2ySIZOfVHwjTDVhkkychfKAcvV7vUkBJoi52nWuf333XvLsa73wnGQAFiywY3LRyyeoTf37FkBioSQy7zVsk0bjsyEENKkikCuLfTXqi59C5NVt/3DVuTA0E3ba6ZNu2az83yxXNLw+JIUGTm2yWJVkp96XLt/1HDpm6RVYeapz33l/2zBhqrIsAlJzWv3TukfH719x9zPMyAfjY6zIiafSP5iWTpKi4wOdfHl67cf6WC880ZmIBmQyRyIhDc/+4sKf3ktU3GgUya22BaMQWI5+0yaSazNwQf63+9e5H/ycWpAoudYNlJgkIxhzoqGy3sf3W89VgUI86RJkGFzUeFKubmF51bPyyo08fLeZRsbR6/k1ZMSkmxbS4vD+HYCTa9Zl0Y9PhS6sVaLMQiEJrmFs7nCGI3zh9364ZPUkqGHPV6Kxb628qKysrR5OX9wcw6EBbeX96e8gQXKlDjmT09Dnb5WXGa7RVg345qRYN36z9LRZAIhUmT8gGBGX7DPqwr+GUdqwy37N+mzxXj+MEmUiLESV11MzSkOvVIZVKXWKEwsW2ClJldVHJoHYwx09NjgIgk5ikWQoysYKCvIIgLy8vLw8AQ3oBkEXT4iZVBFXdTopBZMjIWOa0IZmyAVW18ikAqXqbeYBMj+7ozrc6t02TCipKtXbtUYNMokvl8ulNvUZFYkc1a19+UIRYe5hqUlRvBqc85w7PRCPLk2Ur3xwTDKtMX7bw6uoMZUHd8QdKP8k3BJBIVvS8MYpUg8XFK5qW3j7WDF71Lf8iyQw5vnpieVhsdPHpB+f/oH9/6/ySog8k95bl38vLxLp/s1NeJjLXtF/v7+i9P4aSXUCSN1lvMtUhsZN2Xjy7tf32mS8eXFzX5IDGe3NG1JS8q4DUeefmPJE9VXpmtzxUHAOiosu0PnxMJKjpuvT4y1N89oUlUhVFdUftsddZBZmK860Y6/hZZd373xsVQYtVWiC+pzD24ta7B8WIDRmYEJ3uWB9ODM+uTTgjEkQimbLUxVp+eNP6/w7se2m7RoBO/XaRhKw+8LFGqUwsp1v3yq9EHb84+/b41/rmdimB2BSzZd9O1o09/PoXywoANJoKYa803lvbok3QpyjFHKv2da0eX5m57N8NvVKRoiu19byz+fo/vP3lPcpimcA54x21ykHCbnGhdMuzppm1KH5os2aZqinG77vy3Z77e88UnWdYxZgbntw6s/aFIxJBqn4o/0B21hRH7IYkUK68RF1+w3WqD/1TQd4JpzurnZ8smXisRbtUVZc3Vww6Iy+om+2Cvk1/bQBAAkBWaX18YWXfIyNiealu0cIzC4ccU1WX6BYrIJMz772Z360oCgASIAi6/KpU2ZOATCoRjMkMCYjk1KUixI4MHD0wXc2ICJAAo07IpBQSsapm053UJy8CVBTMc0afRNmRmFiqLieRISHV5G5APvnIW2ZpW1t/pmzVCwev+0gOVV/1p3mF8rjJi3fuMN/1xTHQYIedGpBA0AIovGrzpx9d2Lb9R1G5Ln/zgo0nl43KLNA6N/0wk/ZMXfqN17Z3tlZKoFFBBhIgBaTl9GTu+/mQVYbdYtZQvrSnPiy11LiT37EFYXvD7Gw0lYJUBggZAAAAAAAAAADg/y0LbTqgZCLTAAAAAElFTkSuQmCC";/*!
|
|
2
|
-
* Copyright (c) 2021-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 xe=[{id:"en",name:"English",description:"",logo:v},{id:"fr",name:"French",description:"Français",logo:"",usersCount:100,appsCount:200},{id:"jp",name:"Japanese",description:"日本語",logo:v,usersCount:0,appsCount:0},{id:"es",name:"Spanish",description:"Español",logo:v,usersCount:101,appsCount:202,groupPushMappingsCount:303}],Mo={component:ve,decorators:[W],tags:["autodocs"],argTypes:{hasMultipleChoices:{control:"boolean",description:"Enables multiple choice selection",table:{type:{summary:"boolean"}}},hint:{control:"text",description:"The hint text for the autocomplete input",table:{type:{summary:"string"}}},isCustomValueAllowed:{control:"boolean",description:"Allows the input of custom values",table:{type:{summary:"boolean"}}},isDisabled:{control:"boolean",description:"Disables the autocomplete input",table:{type:{summary:"boolean"}}},isLoading:{control:"boolean",description:"Displays a loading indicator",table:{type:{summary:"boolean"}}},isReadOnly:{control:"boolean",description:"Makes the autocomplete input read-only",table:{type:{summary:"boolean"}}},label:{control:"text",description:"The label text for the autocomplete input",table:{type:{summary:"string"}}},onChange:{description:"Callback fired when the value of the autocomplete input changes",table:{type:{summary:"func"}}},onInputChange:{description:"Callback fired when the input value of the autocomplete input changes",table:{type:{summary:"func"}}},options:{description:"The options for the autocomplete input",table:{type:{summary:"Array<OptionType> | GroupedOptionType<OptionType>[] | Promise<Array<OptionType> | GroupedOptionType<OptionType>[]>"}}},value:{description:"The value of the autocomplete input",table:{type:{summary:"OptionType | OptionType[]"}}},isOptional:{control:"boolean",table:{type:{summary:"boolean"},defaultValue:{summary:"false"}}}},args:{label:"Languages",hint:"Languages supported by the system",options:xe}},k={},I={args:{hasMultipleChoices:!0}},M={args:{isDisabled:!0,hasMultipleChoices:!0,value:[{id:"en",name:"English",description:"",logo:v},{id:"jp",name:"Japanese",description:"日本語",logo:v,usersCount:0,appsCount:0}]}};var P,O,F;k.parameters={...k.parameters,docs:{...(P=k.parameters)==null?void 0:P.docs,source:{originalSource:"{}",...(F=(O=k.parameters)==null?void 0:O.docs)==null?void 0:F.source}}};var G,L,X;I.parameters={...I.parameters,docs:{...(G=I.parameters)==null?void 0:G.docs,source:{originalSource:`{
|
|
12
|
-
args: {
|
|
13
|
-
hasMultipleChoices: true
|
|
14
|
-
}
|
|
15
|
-
}`,...(X=(L=I.parameters)==null?void 0:L.docs)==null?void 0:X.source}}};var Q,J,N;M.parameters={...M.parameters,docs:{...(Q=M.parameters)==null?void 0:Q.docs,source:{originalSource:`{
|
|
16
|
-
args: {
|
|
17
|
-
isDisabled: true,
|
|
18
|
-
hasMultipleChoices: true,
|
|
19
|
-
value: [{
|
|
20
|
-
id: "en",
|
|
21
|
-
name: "English",
|
|
22
|
-
description: "",
|
|
23
|
-
logo: demoImage
|
|
24
|
-
}, {
|
|
25
|
-
id: "jp",
|
|
26
|
-
name: "Japanese",
|
|
27
|
-
description: "日本語",
|
|
28
|
-
logo: demoImage,
|
|
29
|
-
usersCount: 0,
|
|
30
|
-
appsCount: 0
|
|
31
|
-
}]
|
|
32
|
-
}
|
|
33
|
-
}`,...(N=(J=M.parameters)==null?void 0:J.docs)==null?void 0:N.source}}};const To=["GroupPickerDefault","Multiple","Disabled"];export{M as Disabled,k as GroupPickerDefault,I as Multiple,To as __namedExportsOrder,Mo as default};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{_ as B,b as E}from"./OdysseyThemeProvider-uYQ_l8PJ.js";import{r as c}from"./index-NdkWRN8K.js";import{T as J,u as M,g as A,r as N}from"./utils-uddq32f3.js";import{j as O}from"./jsx-runtime-CnH95YSl.js";import{a as Q,u as U}from"./useIsFocusVisible-DH0qxT5e.js";import{g as V}from"./getReactElementRef-CYW9xr5m.js";const X=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"];function h(l){return`scale(${l}, ${l**2})`}const Y={entering:{opacity:1,transform:h(1)},entered:{opacity:1,transform:"none"}},p=typeof navigator<"u"&&/^((?!chrome|android).)*(safari|mobile)/i.test(navigator.userAgent)&&/(os |version\/)15(.|_)4/i.test(navigator.userAgent),Z=c.forwardRef(function(x,L){const{addEndListener:y,appear:_=!0,children:m,easing:T,in:R,onEnter:j,onEntered:w,onEntering:D,onExit:v,onExited:H,onExiting:b,style:f,timeout:o="auto",TransitionComponent:C=J}=x,F=B(x,X),G=Q(),g=c.useRef(),r=M(),u=c.useRef(null),P=U(u,V(m),L),s=t=>e=>{if(t){const i=u.current;e===void 0?t(i):t(i,e)}},S=s(D),W=s((t,e)=>{N(t);const{duration:i,delay:d,easing:n}=A({style:f,timeout:o,easing:T},{mode:"enter"});let a;o==="auto"?(a=r.transitions.getAutoHeightDuration(t.clientHeight),g.current=a):a=i,t.style.transition=[r.transitions.create("opacity",{duration:a,delay:d}),r.transitions.create("transform",{duration:p?a:a*.666,delay:d,easing:n})].join(","),j&&j(t,e)}),$=s(w),z=s(b),K=s(t=>{const{duration:e,delay:i,easing:d}=A({style:f,timeout:o,easing:T},{mode:"exit"});let n;o==="auto"?(n=r.transitions.getAutoHeightDuration(t.clientHeight),g.current=n):n=e,t.style.transition=[r.transitions.create("opacity",{duration:n,delay:i}),r.transitions.create("transform",{duration:p?n:n*.666,delay:p?i:i||n*.333,easing:d})].join(","),t.style.opacity=0,t.style.transform=h(.75),v&&v(t)}),k=s(H),q=t=>{o==="auto"&&G.start(g.current||0,t),y&&y(u.current,t)};return O.jsx(C,E({appear:_,in:R,nodeRef:u,onEnter:W,onEntered:$,onEntering:S,onExit:K,onExited:k,onExiting:z,addEndListener:q,timeout:o==="auto"?null:o},F,{children:(t,e)=>c.cloneElement(m,E({style:E({opacity:0,transform:h(.75),visibility:t==="exited"&&!R?"hidden":void 0},Y[t],f,m.props.style),ref:P},e))}))});Z.muiSupportAuto=!0;export{Z as G};
|