@okta/odyssey-react-mui 1.44.0 → 1.45.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/appswitcher/admin-app-default.svg +6 -0
- package/dist/appswitcher/admin-app-selected.svg +6 -0
- package/dist/appswitcher/aerial-default.svg +7 -0
- package/dist/appswitcher/aerial-selected.svg +7 -0
- package/dist/appswitcher/okta-dashboard-default.svg +7 -0
- package/dist/appswitcher/okta-dashboard-selected.svg +7 -0
- package/dist/appswitcher/privileged-access-default.svg +4 -0
- package/dist/appswitcher/privileged-access-selected.svg +4 -0
- package/dist/appswitcher/workflows-default.svg +5 -0
- package/dist/appswitcher/workflows-selected.svg +5 -0
- package/dist/assets/Accordion-DLG6nIhh.js +1 -0
- package/dist/assets/Accordion.stories-VjVp52QD.js +85 -0
- package/dist/assets/AccordionSummary-xCoGLMoL.js +1 -0
- package/dist/assets/AlertTitle-DlG4YQWR.js +1 -0
- package/dist/assets/AppSwitcher-D7UlQ3S8.js +21 -0
- package/dist/assets/AppSwitcher.stories-Dv0DHDxk.js +100 -0
- package/dist/assets/AppTile _labs_.stories-CgXIqWmJ.js +136 -0
- package/dist/assets/ArrowDropDown-bSngWMh1.js +1 -0
- package/dist/assets/ArrowRight-DCIAiEpA.js +1 -0
- package/dist/assets/Autocomplete-MfScEzbR.js +1 -0
- package/dist/assets/Autocomplete-UE4wqxn0.js +1 -0
- package/dist/assets/Autocomplete.stories-CCtQosYH.js +316 -0
- package/dist/assets/Badge-DL9N0uiE.js +11 -0
- package/dist/assets/Banner-C66lWD3c.js +1 -0
- package/dist/assets/Banner.stories-D6KqnSl2.js +74 -0
- package/dist/assets/BaseButton-B5c4cgt8.js +11 -0
- package/dist/assets/BaseMenuButton-DbGGXXbP.js +1 -0
- package/dist/assets/Box-BCBP3C7Q.js +1 -0
- package/dist/assets/Box-BXOPvc0Q.js +1 -0
- package/dist/assets/Box-C2ekHaOu.js +1 -0
- package/dist/assets/Box-C_Qfmw-_.js +11 -0
- package/dist/assets/Box.stories-uaYeF2xg.js +38 -0
- package/dist/assets/Breadcrumbs-Qzfi3j0j.js +6 -0
- package/dist/assets/Breadcrumbs.stories-CHIGnsjh.js +79 -0
- package/dist/assets/Bug-m6zinguF.js +1 -0
- package/dist/assets/Button-BOzIr8Jh.js +11 -0
- package/dist/assets/Button-BqwcAVQ-.js +1 -0
- package/dist/assets/Button-Cf49fWiK.js +31 -0
- package/dist/assets/Button.stories-Db-QptTh.js +271 -0
- package/dist/assets/ButtonBase-BqXVk-1q.js +74 -0
- package/dist/assets/Calendar-CuqjwSb0.js +1 -0
- package/dist/assets/Callout-CaNoXhaj.js +1 -0
- package/dist/assets/Callout.stories-D2csAs8g.js +105 -0
- package/dist/assets/Card-B5eIV1vH.js +1 -0
- package/dist/assets/Card-Bfg-qZM7.js +8 -0
- package/dist/assets/Card.stories-BTaeWH4V.js +129 -0
- package/dist/assets/CardActionArea-yvoWcAsF.js +1 -0
- package/dist/assets/Check-BmyOKfcL.js +1 -0
- package/dist/assets/Checkbox-BTj1hXUa.js +1 -0
- package/dist/assets/Checkbox-luq82K1t.js +1 -0
- package/dist/assets/Checkbox.stories-ChhXQBH_.js +96 -0
- package/dist/assets/CheckboxGroup-Cgc2chES.js +1 -0
- package/dist/assets/CheckboxGroup.stories-DpGwHWla.js +81 -0
- package/dist/assets/ChevronDown-BnAWuc8V.js +1 -0
- package/dist/assets/ChevronRight-BB0bQIRj.js +1 -0
- package/dist/assets/ChevronUp-B9JV-jmd.js +1 -0
- package/dist/assets/Chip-BOK8DR8m.js +1 -0
- package/dist/assets/CircularProgress-DNk4kmx6.js +28 -0
- package/dist/assets/CircularProgress-Ur28_31H.js +1 -0
- package/dist/assets/CircularProgress.stories-gv9B0XLW.js +44 -0
- package/dist/assets/Clock-Byj5V_49.js +1 -0
- package/dist/assets/Close-DA7fBExu.js +1 -0
- package/dist/assets/Close-DA_Sph0R.js +1 -0
- package/dist/assets/CloseCircleFilled-D2aBlgBe.js +1 -0
- package/dist/assets/Code Styling Guidelines-CAzyRuHZ.js +14 -0
- package/dist/assets/Collapse-P1H1b4lO.js +1 -0
- package/dist/assets/Color-YHDXOIA2-CcHVwBQP.js +1 -0
- package/dist/assets/CssBaseline-C3xNeK8b.js +1 -0
- package/dist/assets/CssBaseline-CUjr0ON2.js +190 -0
- package/dist/assets/CssBaseline.stories-DgXaUmIC.js +402 -0
- package/dist/assets/Custom Theming-CKloJLS_.js +136 -0
- package/dist/assets/Custom Theming.stories-BHdYhCs2.js +93 -0
- package/dist/assets/DataFilters _labs_-D3S2uNi-.js +55 -0
- package/dist/assets/DataFilters _labs_.stories-RwWZVkCe.js +31 -0
- package/dist/assets/DataFilters-DVey1xPT.js +1 -0
- package/dist/assets/DataTable _labs_-CtXARbkP.js +41 -0
- package/dist/assets/DataTable _labs_.stories-U7XFYtR6.js +21 -0
- package/dist/assets/DataTable-CkACYzFJ.js +404 -0
- package/dist/assets/DataTable-CnCWIOTw.js +21 -0
- package/dist/assets/DataTable.stories-Db2HEmax.js +438 -0
- package/dist/assets/DataView _labs_-DZnmSNME.js +332 -0
- package/dist/assets/DataView _labs_.stories-CusuCHkc.js +438 -0
- package/dist/assets/DataView-BQBP0FCs.js +101 -0
- package/dist/assets/DatePicker-DIRg7n4d.js +1 -0
- package/dist/assets/DatePicker.stories-BPWj6DxY.js +143 -0
- package/dist/assets/DateTimePicker-CnXcHc5u.js +1 -0
- package/dist/assets/DateTimePicker.stories-nLmYctur.js +168 -0
- package/dist/assets/DefaultPropsProvider-B7tpShA7.js +9 -0
- package/dist/assets/Design Tokens-BxQ2eYvg.js +4 -0
- package/dist/assets/Dialog-BIM-1Zvj.js +1 -0
- package/dist/assets/Dialog.stories-D2UYs9Hc.js +201 -0
- package/dist/assets/DialogContent-C_FnZ5ZS.js +1 -0
- package/dist/assets/DialogTitle-CLDQZ0bg.js +1 -0
- package/dist/assets/Divider-CsWa3KCo.js +1 -0
- package/dist/assets/DocsRenderer-CFRXHY34-DEwq8OPY.js +2 -0
- package/dist/assets/Documentation-DM1hawvn.js +1 -0
- package/dist/assets/Download-Cp75oFKP.js +1 -0
- package/dist/assets/Drawer-Dg44iOBm.js +27 -0
- package/dist/assets/Drawer.stories-DRGYC84s.js +95 -0
- package/dist/assets/EmptyState-DQoihCwU.js +11 -0
- package/dist/assets/EmptyState.stories-C8kkt-lH.js +11 -0
- package/dist/assets/ExampleButton.stories-BKxnZulW.js +11 -0
- package/dist/assets/Extending Translations-BnOA8j0s.js +146 -0
- package/dist/assets/ExternalLink-DTdulgUc.js +1 -0
- package/dist/assets/Field-ilPS333M.js +11 -0
- package/dist/assets/FieldHint-Cv7aMlpU.js +1 -0
- package/dist/assets/Fieldset-CmtxEykF.js +11 -0
- package/dist/assets/Fieldset.stories-CeV3XwQn.js +15 -0
- package/dist/assets/FileUploader.stories-CmC83k5u.js +58 -0
- package/dist/assets/Filter-BAXcmMyf.js +1 -0
- package/dist/assets/Folder-Ddku_ujr.js +1 -0
- package/dist/assets/Form Field Accessibility-bATJbTW6.js +18 -0
- package/dist/assets/Form-CBnvE26F.js +11 -0
- package/dist/assets/Form.stories-Eg4GUI1C.js +69 -0
- package/dist/assets/FormControlLabel-CxCmH5hv.js +1 -0
- package/dist/assets/FormGroup-BaCH3e06.js +1 -0
- package/dist/assets/FormHelperText-ZkUAjajs.js +1 -0
- package/dist/assets/FormLabel-BLeax9q3.js +1 -0
- package/dist/assets/Generating Icons-CY4QgHRK.js +16 -0
- package/dist/assets/GlobalStyles-BxDN_5FT.js +1 -0
- package/dist/assets/Globe--OQ55RD1.js +1 -0
- package/dist/assets/Grid-B2PgWvdd.js +1 -0
- package/dist/assets/Group-W0XqkWVH.js +1 -0
- package/dist/assets/GroupPicker _labs_.stories-CP9ogL4g.js +33 -0
- package/dist/assets/Grow-CIie3qhp.js +1 -0
- package/dist/assets/Hide-RfKmYLNv.js +1 -0
- package/dist/assets/Home-BXMRmOIu.js +1 -0
- package/dist/assets/Icon _icons_.stories-CfG9aDh6.js +16 -0
- package/dist/assets/IconButton-CK9Do7vj.js +1 -0
- package/dist/assets/IconWithTooltip _icons_.stories-BriwOCod.js +19 -0
- package/dist/assets/InformationCircle-B71JRUfK.js +1 -0
- package/dist/assets/InputAdornment-CFgP75Dd.js +1 -0
- package/dist/assets/InputBase--xDu7aWm.js +2 -0
- package/dist/assets/Installing odyssey-react-mui-FI77Ty6y.js +195 -0
- package/dist/assets/Introduction-B_2OeBP6.js +46 -0
- package/dist/assets/Layout-Bojn6-Uj.js +11 -0
- package/dist/assets/Layout.stories-BN7leK7P.js +217 -0
- package/dist/assets/Legacy Migrations-eiPSj0S4.js +86 -0
- package/dist/assets/Link-ClKgpBXG.js +1 -0
- package/dist/assets/Link-DTvs7F4J.js +11 -0
- package/dist/assets/Link.stories-GP1qln9R.js +43 -0
- package/dist/assets/List-0o0OI1E9.js +1 -0
- package/dist/assets/List-W5kRT_jR.js +1 -0
- package/dist/assets/ListContext-C02XM7tn.js +1 -0
- package/dist/assets/ListItem-CcduKzQu.js +1 -0
- package/dist/assets/ListSubheader-DXKE8lW0.js +1 -0
- package/dist/assets/Menu-CGJO1mMf.js +1 -0
- package/dist/assets/MenuButton-DeZSGuxY.js +9 -0
- package/dist/assets/MenuButton-OjJFnmOD.js +11 -0
- package/dist/assets/MenuButton.stories-C8xNZymc.js +246 -0
- package/dist/assets/MenuContext-DKMyPMNY.js +11 -0
- package/dist/assets/MenuItem-CuP47MJ-.js +1 -0
- package/dist/assets/MenuItem-DjSqFwdt.js +1 -0
- package/dist/assets/MenuItem.stories-Cc5X-FtZ.js +29 -0
- package/dist/assets/MenuList-BboivbXC.js +1 -0
- package/dist/assets/Modal-CW5mOzJG.js +1 -0
- package/dist/assets/More-axx2rGKU.js +1 -0
- package/dist/assets/MuiPropsContext-DhRylJZk.js +11 -0
- package/dist/assets/NativeSelect.stories-D8Y2ITgz.js +173 -0
- package/dist/assets/OdysseyDesignTokensContext-BWQIA5ie.js +11 -0
- package/dist/assets/OdysseyProvider-BQyPcEvx.js +41 -0
- package/dist/assets/OdysseyProvider-BjO4GObW.js +280 -0
- package/dist/assets/OdysseyStorybookThemeDecorator-DginBfEq.js +1 -0
- package/dist/assets/OdysseyThemeProvider-aR5shtx6.js +117 -0
- package/dist/assets/PageHeader.stories-CtAENr0_.js +90 -0
- package/dist/assets/PageHeader.stories-WaRXuLcH.js +17 -0
- package/dist/assets/PageTemplate _labs_-CUXvNJxx.js +8 -0
- package/dist/assets/PageTemplate _labs_.stories-BVKInLfu.js +306 -0
- package/dist/assets/PageTemplate-DOXk_uAG.js +21 -0
- package/dist/assets/PaginatedTable _labs_.stories-Bet6WnQV.js +65 -0
- package/dist/assets/Pagination-CgxBDBwQ.js +11 -0
- package/dist/assets/Pagination.stories-7dUsTYEf.js +17 -0
- package/dist/assets/Paper-DbAuDGNI.js +1 -0
- package/dist/assets/PasswordField.stories-Bclv9Lsw.js +129 -0
- package/dist/assets/Picker _labs_.stories-Dzo7T9_p.js +18 -0
- package/dist/assets/PickerWithOptionAdornment _labs_.stories-C1ftphm9.js +70 -0
- package/dist/assets/PlaceholderLogo-JfVvgA23.js +11 -0
- package/dist/assets/Popper-CwLH-7YW.js +1 -0
- package/dist/assets/Portal-Bvf2g5iG.js +1 -0
- package/dist/assets/Radio-Bi1_KmSD.js +1 -0
- package/dist/assets/Radio-D85jg1Ri.js +1 -0
- package/dist/assets/Radio.stories-BrLSJa7w.js +63 -0
- package/dist/assets/RadioGroup-6XgStuIE.js +10 -0
- package/dist/assets/RadioGroup-BS6oYUQf.js +1 -0
- package/dist/assets/RadioGroup.stories-BcEJF09Q.js +127 -0
- package/dist/assets/Refresh-CPgGX1hz.js +1 -0
- package/dist/assets/Right-to-Left (RTL)-BK9_DI66.js +62 -0
- package/dist/assets/ScopedCssBaseline-FivWKbYZ.js +1 -0
- package/dist/assets/ScreenReaderText-DCDUyE9Y.js +15 -0
- package/dist/assets/ScreenReaderText-vq7_Ob_I.js +1 -0
- package/dist/assets/ScreenReaderText.stories-BZinu6VX.js +8 -0
- package/dist/assets/Search-BvCmvJcV.js +1 -0
- package/dist/assets/SearchDropdown _labs_.stories-CYbt2vgf.js +53 -0
- package/dist/assets/SearchField-jc9ws93I.js +1 -0
- package/dist/assets/SearchField.stories-3apxQKjy.js +37 -0
- package/dist/assets/Select-DVJCNQIV.js +1 -0
- package/dist/assets/Select.stories-Dnr0InYf.js +293 -0
- package/dist/assets/Server-F8KLZq7d.js +1 -0
- package/dist/assets/Settings-DjrryuBd.js +1 -0
- package/dist/assets/Shadow DOM-ErMvgTrT.js +64 -0
- package/dist/assets/Show-qQzUH4Sq.js +1 -0
- package/dist/assets/SideNav-CCPZq2Bh.js +85 -0
- package/dist/assets/SideNav-Duwk1--M.js +125 -0
- package/dist/assets/SideNav.stories-CHEyk4wu.js +207 -0
- package/dist/assets/Skeleton-BJLiCr2o.js +51 -0
- package/dist/assets/Stack-Ba8l39se.js +1 -0
- package/dist/assets/Stack.stories-CBatf2Aw.js +1 -0
- package/dist/assets/StaticTable _labs_.stories-HuypNvo4.js +34 -0
- package/dist/assets/Status-BYBMXN_H.js +1 -0
- package/dist/assets/Status.stories-C3BLGCGc.js +66 -0
- package/dist/assets/SvgIcon-BQAg6Jm7.js +1 -0
- package/dist/assets/Switch.stories-zEk8HMOP.js +61 -0
- package/dist/assets/SwitchBase-Bja5dn-O.js +1 -0
- package/dist/assets/Sync-Bmam4Lr_.js +1 -0
- package/dist/assets/Tabs-BEhcVkzW.js +23 -0
- package/dist/assets/Tabs-Buvkuz1V.js +1 -0
- package/dist/assets/Tabs-ChAj4m0g.js +1 -0
- package/dist/assets/Tabs.stories-BwOqe_a_.js +100 -0
- package/dist/assets/Tag-CjPSrGAL.js +11 -0
- package/dist/assets/Tag.stories-D1YMwKB7.js +96 -0
- package/dist/assets/TagList-BQKiA1TW.js +1 -0
- package/dist/assets/TextField-CZ0hstP2.js +1 -0
- package/dist/assets/TextField.stories-BVJr2VmB.js +149 -0
- package/dist/assets/Toast.stories-aIKtHa18.js +134 -0
- package/dist/assets/ToastManager.stories-Bst-XOOh.js +269 -0
- package/dist/assets/Tooltip-3088PjcT.js +11 -0
- package/dist/assets/Tooltip-B4GIR2eB.js +1 -0
- package/dist/assets/Tooltip.stories-GU5ZWKSu.js +68 -0
- package/dist/assets/TopNav-CWVyy01x.js +11 -0
- package/dist/assets/TopNav.stories-CIdyN7Ai.js +13 -0
- package/dist/assets/Trans-DZ9nii1x.js +1 -0
- package/dist/assets/TransitionGroup-BBx_tHs0.js +9 -0
- package/dist/assets/TransitionGroupContext-BMO0EZjQ.js +9 -0
- package/dist/assets/TransitionGroupContext-twgBS-Q3.js +1 -0
- package/dist/assets/Typography-BTrM-f_f.js +9 -0
- package/dist/assets/Typography-CiNRLenM.js +1 -0
- package/dist/assets/Typography-D7-qxuiy.js +1 -0
- package/dist/assets/Typography.stories-DOm50jIe.js +139 -0
- package/dist/assets/UiShell.stories-CcRPnzQe.js +531 -0
- package/dist/assets/UiShellProvider-D1w1Ocw9.js +31 -0
- package/dist/assets/Upload-DK3nRIto.js +1 -0
- package/dist/assets/User-BBdPovZN.js +1 -0
- package/dist/assets/UserProfile-xXh984n9.js +11 -0
- package/dist/assets/UserProfile.stories-cf7P_USw.js +14 -0
- package/dist/assets/UserProfileMenuButton.stories-DQvKwLs8.js +30 -0
- package/dist/assets/Video-DytabcyM.js +1 -0
- package/dist/assets/WarningFilled-Y3Vw7n_w.js +1 -0
- package/dist/assets/_commonjsHelpers-gnU0ypJ3.js +1 -0
- package/dist/assets/alertTitleClasses-CSPeaunQ.js +1 -0
- package/dist/assets/assertThisInitialized-B9jnkVVz.js +1 -0
- package/dist/assets/autocompleteClasses-Bi4FgC8v.js +1 -0
- package/dist/assets/axe-UFrR6cCR.js +30 -0
- package/dist/assets/axeRun-BfHtukUP.js +40 -0
- package/dist/assets/buttonBaseClasses-CSPKg76d.js +1 -0
- package/dist/assets/buttonClasses-DtIJBSf4.js +1 -0
- package/dist/assets/checkboxClasses-Dtdq1kQG.js +1 -0
- package/dist/assets/chipClasses-BMWKl3Eu.js +1 -0
- package/dist/assets/chunk-XP5HYGXS-BpfKkqn7.js +1 -0
- package/dist/assets/client-akVMpN0m.js +1 -0
- package/dist/assets/colorManipulator-O7SU8zMv.js +1 -0
- package/dist/assets/constants-CyailK6t.js +11 -0
- package/dist/assets/context-D_qJ2zXV.js +1 -0
- package/dist/assets/createChainedFunction-BO_9K8Jh.js +1 -0
- package/dist/assets/createSvgIcon-DiC7XVU3.js +1 -0
- package/dist/assets/createTheme-BmPXDA4p.js +8 -0
- package/dist/assets/createUniqueId-ByTaVY63.js +1 -0
- package/dist/assets/debounce-Be36O1Ab.js +1 -0
- package/dist/assets/emotion-react-jsx-runtime.browser.esm-B2sVIsIq.js +1 -0
- package/dist/assets/emotion-styled.browser.esm-Bcn7fuYX.js +1 -0
- package/dist/assets/entry-preview-4ElqUVRP.js +2 -0
- package/dist/assets/entry-preview-docs-BKXv92OK.js +46 -0
- package/dist/assets/fieldComponentPropsMetaData-BqbNLw6V.js +11 -0
- package/dist/assets/formControlLabelClasses-BtjP4uib.js +1 -0
- package/dist/assets/formGroupClasses-D9ChLj7o.js +1 -0
- package/dist/assets/formLabelClasses-xMgYguuN.js +1 -0
- package/dist/assets/generateUtilityClasses-DYvjsuMV.js +1 -0
- package/dist/assets/getScrollbarSize-Bqq2hMjQ.js +1 -0
- package/dist/assets/i18n-DmkmAJlT.js +11 -0
- package/dist/assets/i18next-DbMy2do-.js +1 -0
- package/dist/assets/iconUtils-Cxr8mVIA.js +11 -0
- package/dist/assets/iframe-C-RQ_TKY.js +211 -0
- package/dist/assets/index-B5xazMy1.js +1 -0
- package/dist/assets/index-B885ELRa.js +1 -0
- package/dist/assets/index-BJMTVygn.js +240 -0
- package/dist/assets/index-BJTM6NaI.js +192 -0
- package/dist/assets/index-BeeV6X6A.js +1 -0
- package/dist/assets/index-BpVuOoKb.js +384 -0
- package/dist/assets/index-BzN0w9dc.js +1 -0
- package/dist/assets/index-CDGerSbe.js +1 -0
- package/dist/assets/index-CXQShRbs.js +8 -0
- package/dist/assets/index-CpbQl8EB.js +1 -0
- package/dist/assets/index-CtY5BB1N.js +1 -0
- package/dist/assets/index-DieBXP3Z.js +24 -0
- package/dist/assets/index-DrFu-skq.js +6 -0
- package/dist/assets/index-NdkWRN8K.js +9 -0
- package/dist/assets/index.esm-D7MwfoQM.js +138 -0
- package/dist/assets/index.modern-CkASn_bb.js +14 -0
- package/dist/assets/inheritsLoose-CWawPfk8.js +1 -0
- package/dist/assets/inputAdornmentClasses-DYNxkEwO.js +1 -0
- package/dist/assets/inputBaseClasses-PAjj3ZBN.js +1 -0
- package/dist/assets/inputUtils-Dbi8XkA6.js +11 -0
- package/dist/assets/isHostComponent-DVu5iVWx.js +1 -0
- package/dist/assets/jsx-runtime-CnH95YSl.js +9 -0
- package/dist/assets/matchers-7Z3WT2CE-T3xScrR7.js +14 -0
- package/dist/assets/menuItemClasses-DFm3-Sf1.js +1 -0
- package/dist/assets/ownerDocument-DW-IO8s5.js +1 -0
- package/dist/assets/ownerWindow-HkKU3E4x.js +1 -0
- package/dist/assets/personData-CZJz4n06.js +1 -0
- package/dist/assets/personData-Ci-ru1S9.js +11 -0
- package/dist/assets/pickerComponentPropsMetadata-C9L3AhmF.js +21 -0
- package/dist/assets/popper-CMBiYTiD.js +1 -0
- package/dist/assets/preview-B-jDHJEN.js +1 -0
- package/dist/assets/preview-B8lJiyuQ.js +34 -0
- package/dist/assets/preview-BBWR9nbA.js +1 -0
- package/dist/assets/preview-BWzBA1C2.js +396 -0
- package/dist/assets/preview-BzLY45Eo.js +2 -0
- package/dist/assets/preview-CYp4EYYZ.js +1 -0
- package/dist/assets/preview-CeHM5zqH.js +2 -0
- package/dist/assets/preview-CvbIS5ZJ.js +1 -0
- package/dist/assets/preview-DGUiP6tS.js +7 -0
- package/dist/assets/preview-DHQbi4pV.js +1 -0
- package/dist/assets/preview-D_z0Z5cB.js +1 -0
- package/dist/assets/preview-MBifGIx_.js +1 -0
- package/dist/assets/queryOdysseySelector-B27JCf-A.js +151 -0
- package/dist/assets/radioClasses-f3ayyf7y.js +1 -0
- package/dist/assets/react-18-CxBTDaIe.js +1 -0
- package/dist/assets/resolveComponentProps-DMpKAZvD.js +1 -0
- package/dist/assets/tableRowClasses-inqOIkjd.js +1 -0
- package/dist/assets/test-utils-H9lH7T5D.js +9 -0
- package/dist/assets/tooltipClasses-C74HjonW.js +1 -0
- package/dist/assets/typographyClasses-D8vr2n3l.js +1 -0
- package/dist/assets/uiShellSharedConstants-DD9UP82e.js +11 -0
- package/dist/assets/useAutocomplete-C7VK9p4p.js +11 -0
- package/dist/assets/useContrastMode-BthoHtLy.js +21 -0
- package/dist/assets/useControlled-NQulfz4l.js +1 -0
- package/dist/assets/useFormControl-BMISTZuX.js +1 -0
- package/dist/assets/useId-cMcvCE23.js +1 -0
- package/dist/assets/useId-kSseQ0DW.js +1 -0
- package/dist/assets/useIsFocusVisible-DH0qxT5e.js +1 -0
- package/dist/assets/useMobilePicker-CfUl5sFz.js +6 -0
- package/dist/assets/useMountLifecycleEffect-CjsUCFhB.js +11 -0
- package/dist/assets/useOdysseyDateFields-DQkQFY7w.js +61 -0
- package/dist/assets/useScrollIndication-BJW9jXaC.js +31 -0
- package/dist/assets/useSlot-F4Qz2Wzp.js +1 -0
- package/dist/assets/useTheme-C05bJKih.js +1 -0
- package/dist/assets/useThemeProps-BG38P4ul.js +1 -0
- package/dist/assets/useThemeProps-Dy5sAWyz.js +1 -0
- package/dist/assets/useTranslation-vEf1lqoc.js +1 -0
- package/dist/assets/useUniqueId-Bsgqe1tm.js +11 -0
- package/dist/assets/utils-gq6yExow.js +1 -0
- package/dist/assets/utils-iop7lDec.js +1 -0
- package/dist/assets/v4-BOvFkHkt.js +1 -0
- package/dist/assets/visuallyHidden-Dan1xhjv.js +1 -0
- package/dist/cjs/Buttons/BaseButton.cjs.map +1 -1
- package/dist/cjs/Card.cjs +280 -63
- package/dist/cjs/Card.cjs.map +1 -1
- package/dist/cjs/labs/DataView/CardLayoutContent.cjs +60 -44
- package/dist/cjs/labs/DataView/CardLayoutContent.cjs.map +1 -1
- package/dist/cjs/labs/DataView/DataCard.cjs +50 -179
- package/dist/cjs/labs/DataView/DataCard.cjs.map +1 -1
- package/dist/cjs/labs/DataView/componentTypes.cjs.map +1 -1
- package/dist/cjs/labs/DatePickers/dateTimePickerTheme.cjs +3 -3
- package/dist/cjs/labs/DatePickers/dateTimePickerTheme.cjs.map +1 -1
- package/dist/cjs/labs/OdysseyPickers/index.cjs.map +1 -1
- package/dist/cjs/properties/ts/odyssey-react-mui_cs.cjs +2 -1
- package/dist/cjs/properties/ts/odyssey-react-mui_cs.cjs.map +1 -1
- package/dist/cjs/properties/ts/odyssey-react-mui_da.cjs +2 -1
- package/dist/cjs/properties/ts/odyssey-react-mui_da.cjs.map +1 -1
- package/dist/cjs/properties/ts/odyssey-react-mui_de.cjs +2 -1
- package/dist/cjs/properties/ts/odyssey-react-mui_de.cjs.map +1 -1
- package/dist/cjs/properties/ts/odyssey-react-mui_el.cjs +2 -1
- package/dist/cjs/properties/ts/odyssey-react-mui_el.cjs.map +1 -1
- package/dist/cjs/properties/ts/odyssey-react-mui_es.cjs +2 -1
- package/dist/cjs/properties/ts/odyssey-react-mui_es.cjs.map +1 -1
- package/dist/cjs/properties/ts/odyssey-react-mui_eu.cjs +2 -1
- package/dist/cjs/properties/ts/odyssey-react-mui_eu.cjs.map +1 -1
- package/dist/cjs/properties/ts/odyssey-react-mui_fi.cjs +2 -1
- package/dist/cjs/properties/ts/odyssey-react-mui_fi.cjs.map +1 -1
- package/dist/cjs/properties/ts/odyssey-react-mui_fr.cjs +2 -1
- package/dist/cjs/properties/ts/odyssey-react-mui_fr.cjs.map +1 -1
- package/dist/cjs/properties/ts/odyssey-react-mui_ht.cjs +2 -1
- package/dist/cjs/properties/ts/odyssey-react-mui_ht.cjs.map +1 -1
- package/dist/cjs/properties/ts/odyssey-react-mui_hu.cjs +2 -1
- package/dist/cjs/properties/ts/odyssey-react-mui_hu.cjs.map +1 -1
- package/dist/cjs/properties/ts/odyssey-react-mui_id.cjs +2 -1
- package/dist/cjs/properties/ts/odyssey-react-mui_id.cjs.map +1 -1
- package/dist/cjs/properties/ts/odyssey-react-mui_it.cjs +2 -1
- package/dist/cjs/properties/ts/odyssey-react-mui_it.cjs.map +1 -1
- package/dist/cjs/properties/ts/odyssey-react-mui_ja.cjs +2 -1
- package/dist/cjs/properties/ts/odyssey-react-mui_ja.cjs.map +1 -1
- package/dist/cjs/properties/ts/odyssey-react-mui_ko.cjs +2 -1
- package/dist/cjs/properties/ts/odyssey-react-mui_ko.cjs.map +1 -1
- package/dist/cjs/properties/ts/odyssey-react-mui_ms.cjs +2 -1
- package/dist/cjs/properties/ts/odyssey-react-mui_ms.cjs.map +1 -1
- package/dist/cjs/properties/ts/odyssey-react-mui_nb.cjs +2 -1
- package/dist/cjs/properties/ts/odyssey-react-mui_nb.cjs.map +1 -1
- package/dist/cjs/properties/ts/odyssey-react-mui_nl_NL.cjs +2 -1
- package/dist/cjs/properties/ts/odyssey-react-mui_nl_NL.cjs.map +1 -1
- package/dist/cjs/properties/ts/odyssey-react-mui_pl.cjs +2 -1
- package/dist/cjs/properties/ts/odyssey-react-mui_pl.cjs.map +1 -1
- package/dist/cjs/properties/ts/odyssey-react-mui_pt_BR.cjs +2 -1
- package/dist/cjs/properties/ts/odyssey-react-mui_pt_BR.cjs.map +1 -1
- package/dist/cjs/properties/ts/odyssey-react-mui_ro.cjs +2 -1
- package/dist/cjs/properties/ts/odyssey-react-mui_ro.cjs.map +1 -1
- package/dist/cjs/properties/ts/odyssey-react-mui_ru.cjs +2 -1
- package/dist/cjs/properties/ts/odyssey-react-mui_ru.cjs.map +1 -1
- package/dist/cjs/properties/ts/odyssey-react-mui_sv.cjs +2 -1
- package/dist/cjs/properties/ts/odyssey-react-mui_sv.cjs.map +1 -1
- package/dist/cjs/properties/ts/odyssey-react-mui_th.cjs +2 -1
- package/dist/cjs/properties/ts/odyssey-react-mui_th.cjs.map +1 -1
- package/dist/cjs/properties/ts/odyssey-react-mui_tr.cjs +2 -1
- package/dist/cjs/properties/ts/odyssey-react-mui_tr.cjs.map +1 -1
- package/dist/cjs/properties/ts/odyssey-react-mui_uk.cjs +2 -1
- package/dist/cjs/properties/ts/odyssey-react-mui_uk.cjs.map +1 -1
- package/dist/cjs/properties/ts/odyssey-react-mui_vi.cjs +2 -1
- package/dist/cjs/properties/ts/odyssey-react-mui_vi.cjs.map +1 -1
- package/dist/cjs/properties/ts/odyssey-react-mui_zh_CN.cjs +2 -1
- package/dist/cjs/properties/ts/odyssey-react-mui_zh_CN.cjs.map +1 -1
- package/dist/cjs/properties/ts/odyssey-react-mui_zh_TW.cjs +2 -1
- package/dist/cjs/properties/ts/odyssey-react-mui_zh_TW.cjs.map +1 -1
- package/dist/cjs/theme/components.cjs +0 -4
- package/dist/cjs/theme/components.cjs.map +1 -1
- package/dist/cjs/tools/addSpecificity.cjs.map +1 -0
- package/dist/cjs/tools/bufferLatest.cjs.map +1 -0
- package/dist/cjs/tools/createMessageBus.cjs.map +1 -0
- package/dist/cjs/tools/createStore.cjs.map +1 -0
- package/dist/cjs/ui-shell/UiShell.cjs.map +1 -1
- package/dist/cjs/ui-shell/UiShellProvider.cjs +1 -1
- package/dist/cjs/ui-shell/UiShellProvider.cjs.map +1 -1
- package/dist/cjs/ui-shell/renderUiShell.cjs +2 -2
- package/dist/cjs/ui-shell/renderUiShell.cjs.map +1 -1
- package/dist/cjs/web-component/odysseyWebComponentVersion.generated.cjs +1 -1
- package/dist/cjs/web-component/odysseyWebComponentVersion.generated.cjs.map +1 -1
- package/dist/esm/Buttons/BaseButton.js.map +1 -1
- package/dist/esm/Card.js +281 -63
- package/dist/esm/Card.js.map +1 -1
- package/dist/esm/labs/DataView/CardLayoutContent.js +61 -45
- package/dist/esm/labs/DataView/CardLayoutContent.js.map +1 -1
- package/dist/esm/labs/DataView/DataCard.js +50 -179
- package/dist/esm/labs/DataView/DataCard.js.map +1 -1
- package/dist/esm/labs/DataView/componentTypes.js.map +1 -1
- package/dist/esm/labs/DatePickers/dateTimePickerTheme.js +3 -3
- package/dist/esm/labs/DatePickers/dateTimePickerTheme.js.map +1 -1
- package/dist/esm/labs/OdysseyPickers/index.js.map +1 -1
- package/dist/esm/properties/ts/odyssey-react-mui_cs.js +2 -1
- package/dist/esm/properties/ts/odyssey-react-mui_cs.js.map +1 -1
- package/dist/esm/properties/ts/odyssey-react-mui_da.js +2 -1
- package/dist/esm/properties/ts/odyssey-react-mui_da.js.map +1 -1
- package/dist/esm/properties/ts/odyssey-react-mui_de.js +2 -1
- package/dist/esm/properties/ts/odyssey-react-mui_de.js.map +1 -1
- package/dist/esm/properties/ts/odyssey-react-mui_el.js +2 -1
- package/dist/esm/properties/ts/odyssey-react-mui_el.js.map +1 -1
- package/dist/esm/properties/ts/odyssey-react-mui_es.js +2 -1
- package/dist/esm/properties/ts/odyssey-react-mui_es.js.map +1 -1
- package/dist/esm/properties/ts/odyssey-react-mui_eu.js +2 -1
- package/dist/esm/properties/ts/odyssey-react-mui_eu.js.map +1 -1
- package/dist/esm/properties/ts/odyssey-react-mui_fi.js +2 -1
- package/dist/esm/properties/ts/odyssey-react-mui_fi.js.map +1 -1
- package/dist/esm/properties/ts/odyssey-react-mui_fr.js +2 -1
- package/dist/esm/properties/ts/odyssey-react-mui_fr.js.map +1 -1
- package/dist/esm/properties/ts/odyssey-react-mui_ht.js +2 -1
- package/dist/esm/properties/ts/odyssey-react-mui_ht.js.map +1 -1
- package/dist/esm/properties/ts/odyssey-react-mui_hu.js +2 -1
- package/dist/esm/properties/ts/odyssey-react-mui_hu.js.map +1 -1
- package/dist/esm/properties/ts/odyssey-react-mui_id.js +2 -1
- package/dist/esm/properties/ts/odyssey-react-mui_id.js.map +1 -1
- package/dist/esm/properties/ts/odyssey-react-mui_it.js +2 -1
- package/dist/esm/properties/ts/odyssey-react-mui_it.js.map +1 -1
- package/dist/esm/properties/ts/odyssey-react-mui_ja.js +2 -1
- package/dist/esm/properties/ts/odyssey-react-mui_ja.js.map +1 -1
- package/dist/esm/properties/ts/odyssey-react-mui_ko.js +2 -1
- package/dist/esm/properties/ts/odyssey-react-mui_ko.js.map +1 -1
- package/dist/esm/properties/ts/odyssey-react-mui_ms.js +2 -1
- package/dist/esm/properties/ts/odyssey-react-mui_ms.js.map +1 -1
- package/dist/esm/properties/ts/odyssey-react-mui_nb.js +2 -1
- package/dist/esm/properties/ts/odyssey-react-mui_nb.js.map +1 -1
- package/dist/esm/properties/ts/odyssey-react-mui_nl_NL.js +2 -1
- package/dist/esm/properties/ts/odyssey-react-mui_nl_NL.js.map +1 -1
- package/dist/esm/properties/ts/odyssey-react-mui_pl.js +2 -1
- package/dist/esm/properties/ts/odyssey-react-mui_pl.js.map +1 -1
- package/dist/esm/properties/ts/odyssey-react-mui_pt_BR.js +2 -1
- package/dist/esm/properties/ts/odyssey-react-mui_pt_BR.js.map +1 -1
- package/dist/esm/properties/ts/odyssey-react-mui_ro.js +2 -1
- package/dist/esm/properties/ts/odyssey-react-mui_ro.js.map +1 -1
- package/dist/esm/properties/ts/odyssey-react-mui_ru.js +2 -1
- package/dist/esm/properties/ts/odyssey-react-mui_ru.js.map +1 -1
- package/dist/esm/properties/ts/odyssey-react-mui_sv.js +2 -1
- package/dist/esm/properties/ts/odyssey-react-mui_sv.js.map +1 -1
- package/dist/esm/properties/ts/odyssey-react-mui_th.js +2 -1
- package/dist/esm/properties/ts/odyssey-react-mui_th.js.map +1 -1
- package/dist/esm/properties/ts/odyssey-react-mui_tr.js +2 -1
- package/dist/esm/properties/ts/odyssey-react-mui_tr.js.map +1 -1
- package/dist/esm/properties/ts/odyssey-react-mui_uk.js +2 -1
- package/dist/esm/properties/ts/odyssey-react-mui_uk.js.map +1 -1
- package/dist/esm/properties/ts/odyssey-react-mui_vi.js +2 -1
- package/dist/esm/properties/ts/odyssey-react-mui_vi.js.map +1 -1
- package/dist/esm/properties/ts/odyssey-react-mui_zh_CN.js +2 -1
- package/dist/esm/properties/ts/odyssey-react-mui_zh_CN.js.map +1 -1
- package/dist/esm/properties/ts/odyssey-react-mui_zh_TW.js +2 -1
- package/dist/esm/properties/ts/odyssey-react-mui_zh_TW.js.map +1 -1
- package/dist/esm/theme/components.js +0 -4
- package/dist/esm/theme/components.js.map +1 -1
- package/dist/esm/tools/addSpecificity.js.map +1 -0
- package/dist/esm/tools/bufferLatest.js.map +1 -0
- package/dist/esm/tools/createMessageBus.js.map +1 -0
- package/dist/esm/tools/createStore.js.map +1 -0
- package/dist/esm/ui-shell/UiShell.js.map +1 -1
- package/dist/esm/ui-shell/UiShellProvider.js +1 -1
- package/dist/esm/ui-shell/UiShellProvider.js.map +1 -1
- package/dist/esm/ui-shell/renderUiShell.js +2 -2
- package/dist/esm/ui-shell/renderUiShell.js.map +1 -1
- package/dist/esm/web-component/odysseyWebComponentVersion.generated.js +1 -1
- package/dist/esm/web-component/odysseyWebComponentVersion.generated.js.map +1 -1
- package/dist/favicon.svg +1 -0
- package/dist/iframe.html +747 -0
- package/dist/index.cjs +231 -0
- package/dist/index.d.ts +233 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.html +203 -0
- package/dist/index.js +25 -0
- package/dist/index.json +1 -0
- package/dist/index.mjs +229 -0
- package/dist/index.scss +549 -0
- 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 +1 -0
- package/dist/sb-addons/a11y-3/manager-bundle.js +220 -0
- package/dist/sb-addons/docs-1/manager-bundle.js +242 -0
- package/dist/sb-addons/essentials-actions-5/manager-bundle.js +3 -0
- package/dist/sb-addons/essentials-backgrounds-6/manager-bundle.js +12 -0
- package/dist/sb-addons/essentials-controls-4/manager-bundle.js +402 -0
- package/dist/sb-addons/essentials-measure-9/manager-bundle.js +3 -0
- package/dist/sb-addons/essentials-outline-10/manager-bundle.js +3 -0
- package/dist/sb-addons/essentials-toolbars-8/manager-bundle.js +3 -0
- package/dist/sb-addons/essentials-viewport-7/manager-bundle.js +3 -0
- package/dist/sb-addons/interactions-11/manager-bundle.js +222 -0
- package/dist/sb-addons/links-2/manager-bundle.js +3 -0
- package/dist/sb-addons/rtl-12/manager-bundle.js +3 -0
- package/dist/sb-addons/storybook-13/manager-bundle.js +3 -0
- package/dist/sb-addons/storybook-core-core-server-presets-0/common-manager-bundle.js +3 -0
- package/dist/sb-common-assets/favicon.svg +1 -0
- 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 +1052 -0
- package/dist/sb-manager/globals-runtime.js +42127 -0
- package/dist/sb-manager/globals.js +48 -0
- package/dist/sb-manager/runtime.js +12048 -0
- package/dist/tsconfig.production.tsbuildinfo +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -0
- package/dist/types/Buttons/BaseButton.d.ts +2 -2
- package/dist/types/Buttons/BaseButton.d.ts.map +1 -1
- package/dist/types/Card.d.ts +17 -6
- package/dist/types/Card.d.ts.map +1 -1
- package/dist/types/i18n.d.ts +27 -0
- package/dist/types/i18n.d.ts.map +1 -1
- package/dist/types/labs/DataView/CardLayoutContent.d.ts.map +1 -1
- package/dist/types/labs/DataView/DataCard.d.ts +14 -30
- package/dist/types/labs/DataView/DataCard.d.ts.map +1 -1
- package/dist/types/labs/DataView/componentTypes.d.ts +1 -1
- package/dist/types/labs/DataView/componentTypes.d.ts.map +1 -1
- package/dist/types/labs/OdysseyPickers/index.d.ts +1 -2
- package/dist/types/labs/OdysseyPickers/index.d.ts.map +1 -1
- package/dist/types/properties/ts/odyssey-react-mui_cs.d.ts +1 -0
- package/dist/types/properties/ts/odyssey-react-mui_cs.d.ts.map +1 -1
- package/dist/types/properties/ts/odyssey-react-mui_da.d.ts +1 -0
- package/dist/types/properties/ts/odyssey-react-mui_da.d.ts.map +1 -1
- package/dist/types/properties/ts/odyssey-react-mui_de.d.ts +1 -0
- package/dist/types/properties/ts/odyssey-react-mui_de.d.ts.map +1 -1
- package/dist/types/properties/ts/odyssey-react-mui_el.d.ts +1 -0
- package/dist/types/properties/ts/odyssey-react-mui_el.d.ts.map +1 -1
- package/dist/types/properties/ts/odyssey-react-mui_es.d.ts +1 -0
- package/dist/types/properties/ts/odyssey-react-mui_es.d.ts.map +1 -1
- package/dist/types/properties/ts/odyssey-react-mui_eu.d.ts +1 -0
- package/dist/types/properties/ts/odyssey-react-mui_eu.d.ts.map +1 -1
- package/dist/types/properties/ts/odyssey-react-mui_fi.d.ts +1 -0
- package/dist/types/properties/ts/odyssey-react-mui_fi.d.ts.map +1 -1
- package/dist/types/properties/ts/odyssey-react-mui_fr.d.ts +1 -0
- package/dist/types/properties/ts/odyssey-react-mui_fr.d.ts.map +1 -1
- package/dist/types/properties/ts/odyssey-react-mui_ht.d.ts +1 -0
- package/dist/types/properties/ts/odyssey-react-mui_ht.d.ts.map +1 -1
- package/dist/types/properties/ts/odyssey-react-mui_hu.d.ts +1 -0
- package/dist/types/properties/ts/odyssey-react-mui_hu.d.ts.map +1 -1
- package/dist/types/properties/ts/odyssey-react-mui_id.d.ts +1 -0
- package/dist/types/properties/ts/odyssey-react-mui_id.d.ts.map +1 -1
- package/dist/types/properties/ts/odyssey-react-mui_it.d.ts +1 -0
- package/dist/types/properties/ts/odyssey-react-mui_it.d.ts.map +1 -1
- package/dist/types/properties/ts/odyssey-react-mui_ja.d.ts +1 -0
- package/dist/types/properties/ts/odyssey-react-mui_ja.d.ts.map +1 -1
- package/dist/types/properties/ts/odyssey-react-mui_ko.d.ts +1 -0
- package/dist/types/properties/ts/odyssey-react-mui_ko.d.ts.map +1 -1
- package/dist/types/properties/ts/odyssey-react-mui_ms.d.ts +1 -0
- package/dist/types/properties/ts/odyssey-react-mui_ms.d.ts.map +1 -1
- package/dist/types/properties/ts/odyssey-react-mui_nb.d.ts +1 -0
- package/dist/types/properties/ts/odyssey-react-mui_nb.d.ts.map +1 -1
- package/dist/types/properties/ts/odyssey-react-mui_nl_NL.d.ts +1 -0
- package/dist/types/properties/ts/odyssey-react-mui_nl_NL.d.ts.map +1 -1
- package/dist/types/properties/ts/odyssey-react-mui_pl.d.ts +1 -0
- package/dist/types/properties/ts/odyssey-react-mui_pl.d.ts.map +1 -1
- package/dist/types/properties/ts/odyssey-react-mui_pt_BR.d.ts +1 -0
- package/dist/types/properties/ts/odyssey-react-mui_pt_BR.d.ts.map +1 -1
- package/dist/types/properties/ts/odyssey-react-mui_ro.d.ts +1 -0
- package/dist/types/properties/ts/odyssey-react-mui_ro.d.ts.map +1 -1
- package/dist/types/properties/ts/odyssey-react-mui_ru.d.ts +1 -0
- package/dist/types/properties/ts/odyssey-react-mui_ru.d.ts.map +1 -1
- package/dist/types/properties/ts/odyssey-react-mui_sv.d.ts +1 -0
- package/dist/types/properties/ts/odyssey-react-mui_sv.d.ts.map +1 -1
- package/dist/types/properties/ts/odyssey-react-mui_th.d.ts +1 -0
- package/dist/types/properties/ts/odyssey-react-mui_th.d.ts.map +1 -1
- package/dist/types/properties/ts/odyssey-react-mui_tr.d.ts +1 -0
- package/dist/types/properties/ts/odyssey-react-mui_tr.d.ts.map +1 -1
- package/dist/types/properties/ts/odyssey-react-mui_uk.d.ts +1 -0
- package/dist/types/properties/ts/odyssey-react-mui_uk.d.ts.map +1 -1
- package/dist/types/properties/ts/odyssey-react-mui_vi.d.ts +1 -0
- package/dist/types/properties/ts/odyssey-react-mui_vi.d.ts.map +1 -1
- package/dist/types/properties/ts/odyssey-react-mui_zh_CN.d.ts +1 -0
- package/dist/types/properties/ts/odyssey-react-mui_zh_CN.d.ts.map +1 -1
- package/dist/types/properties/ts/odyssey-react-mui_zh_TW.d.ts +1 -0
- package/dist/types/properties/ts/odyssey-react-mui_zh_TW.d.ts.map +1 -1
- package/dist/types/theme/components.d.ts.map +1 -1
- package/dist/types/tools/addSpecificity.d.ts.map +1 -0
- package/dist/types/tools/bufferLatest.d.ts.map +1 -0
- package/dist/types/tools/createMessageBus.d.ts.map +1 -0
- package/dist/types/tools/createStore.d.ts.map +1 -0
- package/dist/types/ui-shell/UiShell.d.ts +1 -1
- package/dist/types/ui-shell/UiShell.d.ts.map +1 -1
- package/dist/types/ui-shell/UiShellProvider.d.ts +1 -1
- package/dist/types/ui-shell/UiShellProvider.d.ts.map +1 -1
- package/dist/types/ui-shell/renderUiShell.d.ts +2 -2
- package/dist/types/ui-shell/renderUiShell.d.ts.map +1 -1
- package/dist/types/web-component/odysseyWebComponentVersion.generated.d.ts +1 -1
- package/package.json +9 -9
- package/dist/cjs/addSpecificity.cjs.map +0 -1
- package/dist/cjs/ui-shell/bufferLatest.cjs.map +0 -1
- package/dist/cjs/ui-shell/createMessageBus.cjs.map +0 -1
- package/dist/cjs/ui-shell/createStore.cjs.map +0 -1
- package/dist/esm/addSpecificity.js.map +0 -1
- package/dist/esm/ui-shell/bufferLatest.js.map +0 -1
- package/dist/esm/ui-shell/createMessageBus.js.map +0 -1
- package/dist/esm/ui-shell/createStore.js.map +0 -1
- package/dist/types/addSpecificity.d.ts.map +0 -1
- package/dist/types/ui-shell/bufferLatest.d.ts.map +0 -1
- package/dist/types/ui-shell/createMessageBus.d.ts.map +0 -1
- package/dist/types/ui-shell/createStore.d.ts.map +0 -1
- /package/dist/cjs/{addSpecificity.cjs → tools/addSpecificity.cjs} +0 -0
- /package/dist/cjs/{ui-shell → tools}/bufferLatest.cjs +0 -0
- /package/dist/cjs/{ui-shell → tools}/createMessageBus.cjs +0 -0
- /package/dist/cjs/{ui-shell → tools}/createStore.cjs +0 -0
- /package/dist/esm/{addSpecificity.js → tools/addSpecificity.js} +0 -0
- /package/dist/esm/{ui-shell → tools}/bufferLatest.js +0 -0
- /package/dist/esm/{ui-shell → tools}/createMessageBus.js +0 -0
- /package/dist/esm/{ui-shell → tools}/createStore.js +0 -0
- /package/dist/types/{addSpecificity.d.ts → tools/addSpecificity.d.ts} +0 -0
- /package/dist/types/{ui-shell → tools}/bufferLatest.d.ts +0 -0
- /package/dist/types/{ui-shell → tools}/createMessageBus.d.ts +0 -0
- /package/dist/types/{ui-shell → tools}/createStore.d.ts +0 -0
|
@@ -0,0 +1,146 @@
|
|
|
1
|
+
import{j as e}from"./jsx-runtime-CnH95YSl.js";import{useMDXComponents as r}from"./index-BeeV6X6A.js";import{M as s}from"./index-BpVuOoKb.js";import"./index-NdkWRN8K.js";import"./_commonjsHelpers-gnU0ypJ3.js";import"./iframe-C-RQ_TKY.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
|
+
`]}),`
|
|
135
|
+
`,e.jsx(n.h2,{id:"passing-the-language-from-the-monolith",children:"Passing the language from the Monolith"}),`
|
|
136
|
+
`,e.jsx(n.pre,{children:e.jsx(n.code,{children:`import { getOktaLocale } from '@okta/ui-libraries-monolith';
|
|
137
|
+
|
|
138
|
+
<OdysseyProvider languageCode={getOktaLocale()}>
|
|
139
|
+
<CssBaseline>
|
|
140
|
+
|
|
141
|
+
// Add code here
|
|
142
|
+
|
|
143
|
+
</CssBaseline>
|
|
144
|
+
</OdysseyProvider>
|
|
145
|
+
|
|
146
|
+
`})})]})}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};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{r as e}from"./index-NdkWRN8K.js";import{j as o}from"./jsx-runtime-CnH95YSl.js";import{S as l}from"./SvgIcon-BQAg6Jm7.js";const t=e.forwardRef((r,n)=>o.jsx(l,{fill:"none",ref:n,viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",...r,children:o.jsx(o.Fragment,{children:o.jsx("path",{clipRule:"evenodd",d:"M8.293 14.293 18.586 4H10V2h10.223c.12 0 .262 0 .387.01.145.012.353.042.571.153a1.5 1.5 0 0 1 .655.656c.112.218.142.426.154.571.01.125.01.268.01.387V14h-2V5.414L9.707 15.707l-1.414-1.414Zm7.745 5.74v-7.847l2-2.042v11.89H2.024V5.966h11.828l-2.041 2H4.024v12.068h12.014Z",fill:"currentColor",fillRule:"evenodd"})})})),i=e.memo(t);i.displayName="ExternalLinkIcon";export{i as M};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import{r as i}from"./index-NdkWRN8K.js";import{M as T}from"./Box-BXOPvc0Q.js";import{u as N}from"./OdysseyDesignTokensContext-BWQIA5ie.js";import{j as e}from"./jsx-runtime-CnH95YSl.js";import{L as $}from"./List-W5kRT_jR.js";import{L as k,I as A,F as B}from"./ListItem-CcduKzQu.js";import{M as h}from"./ScreenReaderText-vq7_Ob_I.js";import{u as F}from"./useTranslation-vEf1lqoc.js";import{F as v}from"./FormHelperText-ZkUAjajs.js";import{M as H}from"./FieldHint-Cv7aMlpU.js";import{c as R,M as q}from"./Typography-CiNRLenM.js";import{u as P}from"./useUniqueId-Bsgqe1tm.js";import{F as U}from"./FormLabel-BLeax9q3.js";const V={display:"list-item",paddingInlineStart:0},W=({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:V,children:t},t))})},y=i.memo(W);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 G=({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(G);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 J=i.createContext({isDisabled:!1}),K=()=>i.useContext(J),O=({ariaDescribedBy:r,errorMessage:o,errorMessageList:s,fieldType:t,hasVisibleLabel:d,hint:n,HintLinkComponent:m,id:c,isDisabled:l=!1,isFullWidth:L=!1,isRadioGroup:E=!1,isOptional:b=!1,isReadOnly:z=!1,label:u,renderFieldComponent:I})=>{const{t:S}=F(),a=P(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}=K(),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:L,role:E?"radiogroup":void 0,children:[t==="group"?e.jsxs(U,{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{J as F,Q as M};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{n as a}from"./createTheme-BmPXDA4p.js";import{r as d}from"./index-NdkWRN8K.js";import{u as l}from"./OdysseyDesignTokensContext-BWQIA5ie.js";import{j as e}from"./jsx-runtime-CnH95YSl.js";import{F as p}from"./FormHelperText-ZkUAjajs.js";const m=a.span(({odysseyDesignTokens:o})=>({a:{color:o.TypographyColorBody,textDecoration:"underline","&:visited":{color:o.TypographyColorBody},"&:hover":{color:o.TypographyColorSubordinate}}})),y=({id:o,LinkComponent:r,testId:t,text:s,translate:i})=>{const n=l();return e.jsxs(p,{"data-se":t,id:o,translate:i,children:[s,r&&e.jsxs(m,{odysseyDesignTokens:n,children:[" ",r]})]})},c=d.memo(y);c.displayName="FieldHint";export{c as M};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import{n as u}from"./createTheme-BmPXDA4p.js";import{r as a}from"./index-NdkWRN8K.js";import{F as f}from"./Field-ilPS333M.js";import{u as g}from"./OdysseyDesignTokensContext-BWQIA5ie.js";import{e as h,d as S}from"./Typography-CiNRLenM.js";import{u as j}from"./useUniqueId-Bsgqe1tm.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 F=u.fieldset(({odysseyDesignTokens:e})=>({border:"0",margin:e.Spacing0,marginBlockEnd:e.Spacing6,maxWidth:e.TypographyLineLengthMax,padding:e.Spacing0,"&:last-child":{marginBlockEnd:e.Spacing0}})),M=({alert:e,children:d,description:i,id:s,isDisabled:r=!1,legend:n,name:m,testId:l,translate:o})=>{const p=g(),c=j(s),x=a.useMemo(()=>({isDisabled:r}),[r]);return t.jsxs(F,{"data-se":l,disabled:r,id:c,name:m,odysseyDesignTokens:p,children:[t.jsx(h,{translate:o,children:n}),i&&t.jsx(S,{translate:o,children:i}),e,t.jsx(f.Provider,{value:x,children:d})]})},E=a.memo(M);E.displayName="Fieldset";export{E as M};
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import{j as e}from"./jsx-runtime-CnH95YSl.js";import{M as f}from"./Fieldset-CmtxEykF.js";import{M as s}from"./TextField-CZ0hstP2.js";import{M as x}from"./Callout-CaNoXhaj.js";import"./index-NdkWRN8K.js";import"./_commonjsHelpers-gnU0ypJ3.js";import"./createTheme-BmPXDA4p.js";import"./Field-ilPS333M.js";import"./Box-BXOPvc0Q.js";import"./Box-C2ekHaOu.js";import"./generateUtilityClasses-DYvjsuMV.js";import"./useTheme-C05bJKih.js";import"./OdysseyDesignTokensContext-BWQIA5ie.js";import"./List-W5kRT_jR.js";import"./DefaultPropsProvider-B7tpShA7.js";import"./ListContext-C02XM7tn.js";import"./ListItem-CcduKzQu.js";import"./utils-iop7lDec.js";import"./useFormControl-BMISTZuX.js";import"./FormLabel-BLeax9q3.js";import"./formLabelClasses-xMgYguuN.js";import"./TransitionGroupContext-twgBS-Q3.js";import"./useIsFocusVisible-DH0qxT5e.js";import"./isHostComponent-DVu5iVWx.js";import"./ButtonBase-BqXVk-1q.js";import"./assertThisInitialized-B9jnkVVz.js";import"./inheritsLoose-CWawPfk8.js";import"./buttonBaseClasses-CSPKg76d.js";import"./ScreenReaderText-vq7_Ob_I.js";import"./visuallyHidden-Dan1xhjv.js";import"./useTranslation-vEf1lqoc.js";import"./context-D_qJ2zXV.js";import"./FormHelperText-ZkUAjajs.js";import"./FieldHint-Cv7aMlpU.js";import"./Typography-CiNRLenM.js";import"./Typography-D7-qxuiy.js";import"./typographyClasses-D8vr2n3l.js";import"./useUniqueId-Bsgqe1tm.js";import"./createUniqueId-ByTaVY63.js";import"./inputUtils-Dbi8XkA6.js";import"./InputBase--xDu7aWm.js";import"./inputBaseClasses-PAjj3ZBN.js";import"./ownerWindow-HkKU3E4x.js";import"./ownerDocument-DW-IO8s5.js";import"./debounce-Be36O1Ab.js";import"./GlobalStyles-BxDN_5FT.js";import"./InputAdornment-CFgP75Dd.js";import"./inputAdornmentClasses-DYNxkEwO.js";import"./Link-ClKgpBXG.js";import"./ExternalLink-DTdulgUc.js";import"./SvgIcon-BQAg6Jm7.js";import"./AlertTitle-DlG4YQWR.js";import"./useSlot-F4Qz2Wzp.js";import"./resolveComponentProps-DMpKAZvD.js";import"./createSvgIcon-DiC7XVU3.js";import"./Close-DA_Sph0R.js";import"./IconButton-CK9Do7vj.js";import"./Paper-DbAuDGNI.js";import"./alertTitleClasses-CSPeaunQ.js";const je={component:f,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"},tags:["autodocs"]},t={},r={args:{description:"Register your ship before docking with the station."}},o={args:{alert:e.jsx(x,{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 Ee=["Simple","Description","Alert","Disabled"];export{o as Alert,r as Description,i as Disabled,t as Simple,Ee as __namedExportsOrder,je as default};
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
import{f as cr}from"./index-BJMTVygn.js";import{f as m}from"./fieldComponentPropsMetaData-BqbNLw6V.js";import{n as d}from"./createTheme-BmPXDA4p.js";import{r as o}from"./index-NdkWRN8K.js";import{M as ur}from"./Field-ilPS333M.js";import{u as S}from"./OdysseyDesignTokensContext-BWQIA5ie.js";import{d as mr}from"./Typography-CiNRLenM.js";import{j as t}from"./jsx-runtime-CnH95YSl.js";import{M as gr}from"./MuiPropsContext-DhRylJZk.js";import{M as fr}from"./Tooltip-3088PjcT.js";import{u as rr}from"./useTranslation-vEf1lqoc.js";import{I as hr}from"./IconButton-CK9Do7vj.js";import{M as br,a as O}from"./Upload-DK3nRIto.js";import{M as B}from"./Button-BOzIr8Jh.js";import"./_commonjsHelpers-gnU0ypJ3.js";import"./Box-BXOPvc0Q.js";import"./Box-C2ekHaOu.js";import"./generateUtilityClasses-DYvjsuMV.js";import"./useTheme-C05bJKih.js";import"./List-W5kRT_jR.js";import"./DefaultPropsProvider-B7tpShA7.js";import"./ListContext-C02XM7tn.js";import"./ListItem-CcduKzQu.js";import"./utils-iop7lDec.js";import"./useFormControl-BMISTZuX.js";import"./FormLabel-BLeax9q3.js";import"./formLabelClasses-xMgYguuN.js";import"./TransitionGroupContext-twgBS-Q3.js";import"./useIsFocusVisible-DH0qxT5e.js";import"./isHostComponent-DVu5iVWx.js";import"./ButtonBase-BqXVk-1q.js";import"./assertThisInitialized-B9jnkVVz.js";import"./inheritsLoose-CWawPfk8.js";import"./buttonBaseClasses-CSPKg76d.js";import"./ScreenReaderText-vq7_Ob_I.js";import"./visuallyHidden-Dan1xhjv.js";import"./FormHelperText-ZkUAjajs.js";import"./FieldHint-Cv7aMlpU.js";import"./useUniqueId-Bsgqe1tm.js";import"./createUniqueId-ByTaVY63.js";import"./Typography-D7-qxuiy.js";import"./typographyClasses-D8vr2n3l.js";import"./Tooltip-B4GIR2eB.js";import"./index-CpbQl8EB.js";import"./tooltipClasses-C74HjonW.js";import"./Grow-CIie3qhp.js";import"./utils-gq6yExow.js";import"./index-B5xazMy1.js";import"./index-DieBXP3Z.js";import"./Portal-Bvf2g5iG.js";import"./resolveComponentProps-DMpKAZvD.js";import"./useControlled-NQulfz4l.js";import"./useId-cMcvCE23.js";import"./Popper-CwLH-7YW.js";import"./ownerDocument-DW-IO8s5.js";import"./popper-CMBiYTiD.js";import"./context-D_qJ2zXV.js";import"./SvgIcon-BQAg6Jm7.js";import"./BaseButton-B5c4cgt8.js";import"./Button-BqwcAVQ-.js";import"./buttonClasses-DtIJBSf4.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 xr=d.div(({odysseyDesignTokens:r})=>({marginBlockEnd:r.Spacing3,padding:r.Spacing3,backgroundColor:r.HueNeutral50,borderRadius:"50%",svg:{display:"flex",width:r.Spacing8,height:r.Spacing8}})),Cr=()=>{const r=S();return t.jsx(xr,{"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(Cr);tr.displayName="FileUploadIllustration";const Fr=d.div(({isDisabled:r,odysseyDesignTokens:e})=>({color:r?e.TypographyColorDisabled:"inherit",marginBlockStart:e.Spacing2,pointerEvents:r?"none":"auto"})),jr=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`}})),vr=({name:r,onFileRemove:e})=>{const{t:p}=rr(),a=S(),s=o.useCallback(()=>{e==null||e(r)},[e,r]),c=o.useCallback(M=>t.jsx(hr,{...M,"aria-label":p("fileupload.removefile.text"),onClick:s,size:"small",children:t.jsx(br,{})}),[s,p]);return t.jsxs(jr,{odysseyDesignTokens:a,tabIndex:0,children:[r,t.jsx(fr,{ariaType:"description",placement:"top",text:p("fileupload.removefile.text"),children:t.jsx(gr.Consumer,{children:c})})]})},Ir=({fileNames:r,isDisabled:e,onFileRemove:p})=>{const a=S();return t.jsx(Fr,{"data-file-preview-container":"true",isDisabled:e,odysseyDesignTokens:a,children:r==null?void 0:r.map((s,c)=>t.jsx(vr,{name:s,onFileRemove:p},`${c}-${s}`))})},er=o.memo(Ir);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"],L=["button","dragAndDrop","dragAndDropWithIcon"],or=d.div({position:"relative",alignSelf:"flex-start",input:{position:"absolute",width:"100%",height:"100%",opacity:0}}),Sr=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}}})),Mr=d.div({display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center"}),Ar=d.div({textAlign:"center"}),wr=({acceptedFileTypes:r,errorMessage:e,id:p,isDisabled:a=!1,isFullWidth:s,isOptional:c,hint:M,HintLinkComponent:ar,label:nr,onChange:w,type:g,variant:f})=>{const U=S(),{t:h}=rr(),b=o.useRef(null),[n,y]=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();y(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);y(l)},[n]),pr=o.useCallback(({ariaDescribedBy:i,errorMessageElementId:l,id:u,labelElementId:sr})=>{const dr=r==null?void 0:r.join(","),$=()=>t.jsx("input",{accept:dr,"aria-describedby":i,"aria-errormessage":l,"aria-labelledby":sr,disabled:a,id:u,multiple:g==="multiple",onChange:W,ref:b,title:"",type:"file"});return f==="button"?t.jsx(t.Fragment,{children:t.jsxs(or,{children:[t.jsx($,{}),t.jsx(B,{isDisabled:a,label:h("fileupload.button.text"),onClick:A,startIcon:t.jsx(O,{}),variant:"secondary"})]})}):t.jsx(t.Fragment,{children:t.jsxs(Sr,{hasError:!!e,odysseyDesignTokens:U,children:[t.jsx($,{}),t.jsxs(Mr,{children:[f==="dragAndDropWithIcon"&&t.jsx(tr,{}),t.jsx(Ar,{children:t.jsx(mr,{color:"textSecondary",children:h("fileupload.prompt.text")})}),t.jsx(B,{isDisabled:a,label:h("fileupload.button.text"),onClick:A,startIcon:t.jsx(O,{}),variant:"secondary"})]})]})})},[r,e,a,b,U,A,h,g,W,f]);return t.jsxs(t.Fragment,{children:[t.jsx(ur,{errorMessage:e,fieldType:"single",hasVisibleLabel:!0,hint:M,HintLinkComponent:ar,id:p,isDisabled:a,isFullWidth:s&&f!=="button",isOptional:c,label:nr,renderFieldComponent:pr}),n.length>0&&t.jsx(er,{fileNames:n.map(i=>i.name),isDisabled:a,onFileRemove:lr})]})},ir=o.memo(wr);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 Lt={component:ir,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:L,control:{type:"radio"},description:"How the component appears visually",table:{type:{summary:L.join(" | ")}},type:{name:"string",required:!0}}},args:{hint:"Maybe some helpful text about what format to use",label:"Upload your files here",onChange:cr()},tags:["autodocs"]},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 z,D,P;x.parameters={...x.parameters,docs:{...(z=x.parameters)==null?void 0:z.docs,source:{originalSource:`{
|
|
32
|
+
args: {
|
|
33
|
+
variant: "button"
|
|
34
|
+
}
|
|
35
|
+
}`,...(P=(D=x.parameters)==null?void 0:D.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,V;F.parameters={...F.parameters,docs:{...(_=F.parameters)==null?void 0:_.docs,source:{originalSource:`{
|
|
41
|
+
args: {
|
|
42
|
+
variant: "dragAndDrop"
|
|
43
|
+
}
|
|
44
|
+
}`,...(V=(q=F.parameters)==null?void 0:q.docs)==null?void 0:V.source}}};var T,Z,G;j.parameters={...j.parameters,docs:{...(T=j.parameters)==null?void 0:T.docs,source:{originalSource:`{
|
|
45
|
+
args: {
|
|
46
|
+
variant: "dragAndDropWithIcon"
|
|
47
|
+
}
|
|
48
|
+
}`,...(G=(Z=j.parameters)==null?void 0:Z.docs)==null?void 0:G.source}}};var J,K,Q;v.parameters={...v.parameters,docs:{...(J=v.parameters)==null?void 0:J.docs,source:{originalSource:`{
|
|
49
|
+
args: {
|
|
50
|
+
type: "multiple",
|
|
51
|
+
variant: "dragAndDropWithIcon"
|
|
52
|
+
}
|
|
53
|
+
}`,...(Q=(K=v.parameters)==null?void 0:K.docs)==null?void 0:Q.source}}};var X,Y,k;I.parameters={...I.parameters,docs:{...(X=I.parameters)==null?void 0:X.docs,source:{originalSource:`{
|
|
54
|
+
args: {
|
|
55
|
+
acceptedFileTypes: [".jpg", ".png"],
|
|
56
|
+
variant: "dragAndDropWithIcon"
|
|
57
|
+
}
|
|
58
|
+
}`,...(k=(Y=I.parameters)==null?void 0:Y.docs)==null?void 0:k.source}}};const zt=["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,zt as __namedExportsOrder,Lt as default};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{r as e}from"./index-NdkWRN8K.js";import{j as r}from"./jsx-runtime-CnH95YSl.js";import{S as l}from"./SvgIcon-BQAg6Jm7.js";const n=e.forwardRef((o,t)=>r.jsx(l,{fill:"none",ref:t,viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",...o,children:r.jsx(r.Fragment,{children:r.jsx("path",{clipRule:"evenodd",d:"M1 4h22V2H1v2Zm3 6h16V8H4v2Zm13 6H7v-2h10v2Zm-7 6h4v-2h-4v2Z",fill:"currentColor",fillRule:"evenodd"})})})),i=e.memo(n);i.displayName="FilterIcon";export{i as M};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{r}from"./index-NdkWRN8K.js";import{j as o}from"./jsx-runtime-CnH95YSl.js";import{S as l}from"./SvgIcon-BQAg6Jm7.js";const n=r.forwardRef((e,c)=>o.jsx(l,{fill:"none",ref:c,viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",...e,children:o.jsx(o.Fragment,{children:o.jsx("path",{clipRule:"evenodd",d:"M8.607 5c.575 0 .638.012.678.025a.5.5 0 0 1 .18.104c.031.029.072.077.358.576l3.309 5.791.288.504H21v4.8c0 .577 0 .949-.024 1.232-.022.272-.06.373-.085.422a1 1 0 0 1-.437.437c-.05.025-.15.063-.422.085C19.75 19 19.377 19 18.8 19H5.2c-.577 0-.949 0-1.232-.024-.272-.022-.373-.06-.422-.085a1 1 0 0 1-.437-.437c-.025-.05-.063-.15-.085-.422C3 17.75 3 17.377 3 16.8V5h5.607Zm1.298-1.877C9.522 2.998 9.112 3 8.705 3H1v13.838c0 .528 0 .982.03 1.357.033.395.104.789.297 1.167a3 3 0 0 0 1.311 1.311c.378.193.772.264 1.167.296.375.031.83.031 1.356.031H18.84c.527 0 .982 0 1.356-.03.395-.033.789-.104 1.167-.297a3 3 0 0 0 1.311-1.311c.193-.378.264-.772.296-1.167.031-.375.031-.83.031-1.356V5H11.723l-.164-.287-.048-.085c-.201-.354-.404-.71-.703-.98a2.5 2.5 0 0 0-.903-.525ZM12.866 7l1.714 3H21V7h-8.134Z",fill:"currentColor",fillRule:"evenodd"})})})),a=r.memo(n);a.displayName="FolderIcon";export{a as M};
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import{j as e}from"./jsx-runtime-CnH95YSl.js";import{useMDXComponents as n}from"./index-BeeV6X6A.js";import"./index-CtY5BB1N.js";import{M as o}from"./index-BpVuOoKb.js";import"./index-NdkWRN8K.js";import"./_commonjsHelpers-gnU0ypJ3.js";import"./preview-BzLY45Eo.js";import"./iframe-C-RQ_TKY.js";import"./DocsRenderer-CFRXHY34-DEwq8OPY.js";import"./client-akVMpN0m.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};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import{n as t}from"./createTheme-BmPXDA4p.js";import{r as T}from"./index-NdkWRN8K.js";import{u as S}from"./OdysseyDesignTokensContext-BWQIA5ie.js";import{b as k,d as F}from"./Typography-CiNRLenM.js";import{u as M}from"./useUniqueId-Bsgqe1tm.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 q=["application/x-www-form-urlencoded","application/json","multipart/form-data","text/plain"],A=["on","off"],H=["post","get","dialog"],C=t.form(({isFullWidth:o,odysseyDesignTokens:n})=>({maxWidth:o?"100%":n.TypographyLineLengthMax,margin:0,padding:0})),w=t.div(({odysseyDesignTokens:o})=>({marginBlockEnd:o.Spacing4})),D=t.div({display:"flex",justifyContent:"flex-end"},({odysseyDesignTokens:o})=>({gap:o.Spacing1,marginBlockStart:o.Spacing7})),E=({alert:o,autoCompleteType:n,children:m,description:a,encodingType:p,formActions:i,id:l,isFullWidth:c,method:g,name:f,noValidate:u=!1,onSubmit:y,target:x,testId:h,title:r,translate:d})=>{const j=M(l),s=S();return e.jsxs(C,{autoComplete:n,"data-se":h,encType:p,id:j,isFullWidth:c,method:g,name:f,noValidate:u,odysseyDesignTokens:s,onSubmit:y,target:x,children:[e.jsxs(w,{odysseyDesignTokens:s,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(D,{odysseyDesignTokens:s,children:i})]})},V=T.memo(E);V.displayName="Form";export{V as M,q as a,A as b,H as f};
|
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
import{j as e}from"./jsx-runtime-CnH95YSl.js";import{f as W}from"./fieldComponentPropsMetaData-BqbNLw6V.js";import{f as c,a as d,b as u,M as E}from"./Form-CBnvE26F.js";import{a as A}from"./Typography-CiNRLenM.js";import{M as h}from"./Button-BOzIr8Jh.js";import{M as t}from"./TextField-CZ0hstP2.js";import{M as l}from"./Fieldset-CmtxEykF.js";import{M as p}from"./Callout-CaNoXhaj.js";import{M as z}from"./CheckboxGroup-Cgc2chES.js";import{M as m}from"./Checkbox-BTj1hXUa.js";import{M as D}from"./Link-ClKgpBXG.js";import"./index-NdkWRN8K.js";import"./_commonjsHelpers-gnU0ypJ3.js";import"./createTheme-BmPXDA4p.js";import"./OdysseyDesignTokensContext-BWQIA5ie.js";import"./useUniqueId-Bsgqe1tm.js";import"./createUniqueId-ByTaVY63.js";import"./Typography-D7-qxuiy.js";import"./DefaultPropsProvider-B7tpShA7.js";import"./typographyClasses-D8vr2n3l.js";import"./generateUtilityClasses-DYvjsuMV.js";import"./BaseButton-B5c4cgt8.js";import"./MuiPropsContext-DhRylJZk.js";import"./Tooltip-3088PjcT.js";import"./Tooltip-B4GIR2eB.js";import"./index-CpbQl8EB.js";import"./tooltipClasses-C74HjonW.js";import"./Grow-CIie3qhp.js";import"./utils-gq6yExow.js";import"./useTheme-C05bJKih.js";import"./inheritsLoose-CWawPfk8.js";import"./index-B5xazMy1.js";import"./index-DieBXP3Z.js";import"./TransitionGroupContext-twgBS-Q3.js";import"./useIsFocusVisible-DH0qxT5e.js";import"./Portal-Bvf2g5iG.js";import"./resolveComponentProps-DMpKAZvD.js";import"./isHostComponent-DVu5iVWx.js";import"./useControlled-NQulfz4l.js";import"./useId-cMcvCE23.js";import"./Popper-CwLH-7YW.js";import"./ownerDocument-DW-IO8s5.js";import"./popper-CMBiYTiD.js";import"./Button-BqwcAVQ-.js";import"./buttonClasses-DtIJBSf4.js";import"./ButtonBase-BqXVk-1q.js";import"./assertThisInitialized-B9jnkVVz.js";import"./buttonBaseClasses-CSPKg76d.js";import"./Field-ilPS333M.js";import"./Box-BXOPvc0Q.js";import"./Box-C2ekHaOu.js";import"./List-W5kRT_jR.js";import"./ListContext-C02XM7tn.js";import"./ListItem-CcduKzQu.js";import"./utils-iop7lDec.js";import"./useFormControl-BMISTZuX.js";import"./FormLabel-BLeax9q3.js";import"./formLabelClasses-xMgYguuN.js";import"./ScreenReaderText-vq7_Ob_I.js";import"./visuallyHidden-Dan1xhjv.js";import"./useTranslation-vEf1lqoc.js";import"./context-D_qJ2zXV.js";import"./FormHelperText-ZkUAjajs.js";import"./FieldHint-Cv7aMlpU.js";import"./inputUtils-Dbi8XkA6.js";import"./InputBase--xDu7aWm.js";import"./inputBaseClasses-PAjj3ZBN.js";import"./ownerWindow-HkKU3E4x.js";import"./debounce-Be36O1Ab.js";import"./GlobalStyles-BxDN_5FT.js";import"./InputAdornment-CFgP75Dd.js";import"./inputAdornmentClasses-DYNxkEwO.js";import"./AlertTitle-DlG4YQWR.js";import"./useSlot-F4Qz2Wzp.js";import"./createSvgIcon-DiC7XVU3.js";import"./SvgIcon-BQAg6Jm7.js";import"./Close-DA_Sph0R.js";import"./IconButton-CK9Do7vj.js";import"./Paper-DbAuDGNI.js";import"./alertTitleClasses-CSPeaunQ.js";import"./FormGroup-BaCH3e06.js";import"./formGroupClasses-D9ChLj7o.js";import"./FormControlLabel-CxCmH5hv.js";import"./formControlLabelClasses-BtjP4uib.js";import"./Stack-Ba8l39se.js";import"./useThemeProps-Dy5sAWyz.js";import"./Checkbox-luq82K1t.js";import"./SwitchBase-Bja5dn-O.js";import"./checkboxClasses-Dtdq1kQG.js";import"./ExternalLink-DTdulgUc.js";const Ft={component:E,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:W.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"})]})},tags:["autodocs"]},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(A,{children:"There is an issue with the fuel mixture ratios. Reconfigure the fuel mixture and perform the safety checks again."}),e.jsx(D,{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,C;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
|
+
}`,...(C=(M=s.parameters)==null?void 0:M.docs)==null?void 0:C.source}}};var k,R,S;a.parameters={...a.parameters,docs:{...(k=a.parameters)==null?void 0:k.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
|
+
}`,...(S=(R=a.parameters)==null?void 0:R.docs)==null?void 0:S.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 jt=["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,jt as __namedExportsOrder,Ft as default};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{_ as E,a as m,c as v,b as R}from"./createTheme-BmPXDA4p.js";import{r as L}from"./index-NdkWRN8K.js";import{u as S,s as k,c as A}from"./DefaultPropsProvider-B7tpShA7.js";import{g as M,f as t}from"./formControlLabelClasses-BtjP4uib.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-D7-qxuiy.js";import{S as W}from"./Stack-Ba8l39se.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,d={root:["root",l&&"disabled",`labelPlacement${R(n)}`,a&&"error",r&&"required"],label:["label",l&&"disabled"],asterisk:["asterisk",a&&"error"]};return A(d,M,e)},I=k("label",{name:"MuiFormControlLabel",slot:"Root",overridesResolver:(o,e)=>{const{ownerState:l}=o;return[{[`& .${t.label}`]:e.label},e.root,e[`labelPlacement${R(l.labelPlacement)}`]]}})(({theme:o,ownerState:e})=>m({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=k("span",{name:"MuiFormControlLabel",slot:"Asterisk",overridesResolver:(o,e)=>e.asterisk})(({theme:o})=>({[`&.${t.error}`]:{color:(o.vars||o).palette.error.main}})),Z=L.forwardRef(function(e,l){var n,a;const r=S({props:e,name:"MuiFormControlLabel"}),{className:d,componentsProps:$={},control:i,disabled:P,disableTypography:j,label:q,labelPlacement:N="end",required:C,slotProps:_={}}=r,T=E(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=m({},r,{disabled:y,labelPlacement:N,required:u,error:D.error}),g=H(f),h=(a=_.typography)!=null?a:$.typography;let s=q;return s!=null&&s.type!==F&&!j&&(s=p.jsx(F,m({component:"span"},h,{className:v(g.label,h==null?void 0:h.className),children:s}))),p.jsxs(I,m({className:v(g.root,d),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{Z as F};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{_ as u,a as e,c as f}from"./createTheme-BmPXDA4p.js";import{r as w}from"./index-NdkWRN8K.js";import{u as x,s as F,c as d}from"./DefaultPropsProvider-B7tpShA7.js";import{g as C}from"./formGroupClasses-D9ChLj7o.js";import{u as G,f as R}from"./useFormControl-BMISTZuX.js";import{j}from"./jsx-runtime-CnH95YSl.js";const _=["className","row"],v=o=>{const{classes:r,row:t,error:s}=o;return d({root:["root",t&&"row",s&&"error"]},C,r)},y=F("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"})),M=w.forwardRef(function(r,t){const s=x({props:r,name:"MuiFormGroup"}),{className:a,row:m=!1}=s,n=u(s,_),l=G(),p=R({props:s,muiFormControl:l,states:["error"]}),c=e({},s,{row:m,error:p.error}),i=v(c);return j.jsx(y,e({className:f(i.root,a),ownerState:c,ref:t},n))});export{M as F};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{g as v,_ as z,a as c,c as b,b as x}from"./createTheme-BmPXDA4p.js";import{r as F}from"./index-NdkWRN8K.js";import{u as T,f as C}from"./useFormControl-BMISTZuX.js";import{u as H,s as q,c as R}from"./DefaultPropsProvider-B7tpShA7.js";import{g as j}from"./generateUtilityClasses-DYvjsuMV.js";import{j as p}from"./jsx-runtime-CnH95YSl.js";function y(e){return v("MuiFormHelperText",e)}const u=j("MuiFormHelperText",["root","error","disabled","sizeSmall","sizeMedium","contained","focused","filled","required"]);var f;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 R(o,y,r)},N=q("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,[`&.${u.disabled}`]:{color:(e.vars||e).palette.text.disabled},[`&.${u.error}`]:{color:(e.vars||e).palette.error.main}},r.size==="small"&&{marginTop:4},r.contained&&{marginLeft:14,marginRight:14})),E=F.forwardRef(function(r,s){const t=H({props:r,name:"MuiFormHelperText"}),{children:a,className:l,component:i="p"}=t,n=z(t,M),d=T(),o=C({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:b(g.root,l),ref:s},n,{children:a===" "?f||(f=p.jsx("span",{className:"notranslate",children:""})):a}))});export{E as F};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{_ as x,a as i,c as v,b as F}from"./createTheme-BmPXDA4p.js";import{r as L}from"./index-NdkWRN8K.js";import{u as y,f as C}from"./useFormControl-BMISTZuX.js";import{u as q,s as b,c as k}from"./DefaultPropsProvider-B7tpShA7.js";import{g as R,f as t}from"./formLabelClasses-xMgYguuN.js";import{j as f}from"./jsx-runtime-CnH95YSl.js";const g=["children","className","color","component","disabled","error","filled","focused","required"],j=r=>{const{classes:o,color:c,focused:s,disabled:d,error:a,filled:l,required:n}=r,p={root:["root",`color${F(c)}`,d&&"disabled",a&&"error",l&&"filled",s&&"focused",n&&"required"],asterisk:["asterisk",a&&"error"]};return k(p,R,o)},$=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}})),U=L.forwardRef(function(o,c){const s=q({props:o,name:"MuiFormLabel"}),{children:d,className:a,component:l="label"}=s,n=x(s,g),p=y(),e=C({props:s,muiFormControl:p,states:["color","required","focused","disabled","error","filled"]}),m=i({},s,{color:e.color||"primary",component:l,disabled:e.disabled,error:e.error,filled:e.filled,focused:e.focused,required:e.required}),u=j(m);return f.jsxs($,i({as:l,ownerState:m,className:v(u.root,a),ref:c},n,{children:[d,e.required&&f.jsxs(N,{ownerState:m,"aria-hidden":!0,className:u.asterisk,children:[" ","*"]})]}))});export{U as F};
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import{j as e}from"./jsx-runtime-CnH95YSl.js";import{useMDXComponents as i}from"./index-BeeV6X6A.js";import{M as t}from"./index-BpVuOoKb.js";import"./index-NdkWRN8K.js";import"./_commonjsHelpers-gnU0ypJ3.js";import"./iframe-C-RQ_TKY.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};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{G as m,a as l,T as n}from"./createTheme-BmPXDA4p.js";import"./index-NdkWRN8K.js";import{d as p}from"./DefaultPropsProvider-B7tpShA7.js";import{j as s}from"./jsx-runtime-CnH95YSl.js";import{u}from"./useTheme-C05bJKih.js";function f({styles:o,themeId:e,defaultTheme:r={}}){const t=u(r),a=typeof o=="function"?o(e&&t[e]||t):o;return s.jsx(m,{styles:a})}function b(o){return s.jsx(f,l({},o,{defaultTheme:p,themeId:n}))}export{b as G};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{r as e}from"./index-NdkWRN8K.js";import{j as o}from"./jsx-runtime-CnH95YSl.js";import{S as l}from"./SvgIcon-BQAg6Jm7.js";const m=e.forwardRef((r,c)=>o.jsx(l,{fill:"none",ref:c,viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",...r,children:o.jsx(o.Fragment,{children:o.jsx("path",{clipRule:"evenodd",d:"M11.17 3.473c.36-.381.64-.473.83-.473.189 0 .47.091.83.473.363.384.736.992 1.07 1.827.581 1.454.986 3.443 1.08 5.7H9.02c.094-2.257.499-4.246 1.08-5.7.334-.835.707-1.443 1.07-1.827ZM7.019 11c.094-2.467.534-4.718 1.224-6.442.128-.32.267-.627.416-.918A9.009 9.009 0 0 0 3.055 11h3.964Zm-3.964 2a9.009 9.009 0 0 0 5.604 7.36c-.15-.29-.288-.598-.416-.918-.69-1.724-1.13-3.975-1.224-6.442H3.055Zm5.966 0h5.958c-.093 2.257-.498 4.246-1.079 5.7-.334.835-.707 1.444-1.07 1.827-.36.381-.641.473-.83.473-.189 0-.47-.091-.83-.473-.363-.384-.736-.992-1.07-1.827-.581-1.454-.986-3.443-1.08-5.7Zm7.96 0c-.094 2.467-.534 4.718-1.224 6.442-.128.32-.267.627-.416.918A9.009 9.009 0 0 0 20.945 13h-3.964Zm3.964-2a9.009 9.009 0 0 0-5.604-7.36c.15.29.288.598.416.918.69 1.724 1.13 3.975 1.224 6.442h3.964ZM23 12c0 6.075-4.925 11-11 11S1 18.075 1 12 5.925 1 12 1s11 4.925 11 11Z",fill:"currentColor",fillRule:"evenodd"})})})),n=e.memo(m);n.displayName="GlobeIcon";export{n as M};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{r as c}from"./index-NdkWRN8K.js";import{j as r}from"./jsx-runtime-CnH95YSl.js";import{S as e}from"./SvgIcon-BQAg6Jm7.js";const i=c.forwardRef((l,o)=>r.jsx(e,{fill:"none",ref:o,viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",...l,children:r.jsxs(r.Fragment,{children:[r.jsx("circle",{cx:5,cy:5,fill:"currentColor",r:2}),r.jsx("circle",{cx:5,cy:12,fill:"currentColor",r:2}),r.jsx("circle",{cx:5,cy:19,fill:"currentColor",r:2}),r.jsx("circle",{cx:12,cy:5,fill:"currentColor",r:2}),r.jsx("circle",{cx:12,cy:12,fill:"currentColor",r:2}),r.jsx("circle",{cx:12,cy:19,fill:"currentColor",r:2}),r.jsx("circle",{cx:19,cy:5,fill:"currentColor",r:2}),r.jsx("circle",{cx:19,cy:12,fill:"currentColor",r:2}),r.jsx("circle",{cx:19,cy:19,fill:"currentColor",r:2})]})})),x=c.memo(i);x.displayName="GridIcon";export{x as M};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{r}from"./index-NdkWRN8K.js";import{j as o}from"./jsx-runtime-CnH95YSl.js";import{S as m}from"./SvgIcon-BQAg6Jm7.js";const n=r.forwardRef((e,l)=>o.jsx(m,{fill:"none",ref:l,viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",...e,children:o.jsx(o.Fragment,{children:o.jsx("path",{clipRule:"evenodd",d:"M19 6.5a2.5 2.5 0 1 1-5 0 2.5 2.5 0 0 1 5 0Zm2 0a4.5 4.5 0 1 1-9 0 4.5 4.5 0 0 1 9 0Zm-11 5a2.5 2.5 0 1 1-5 0 2.5 2.5 0 0 1 5 0Zm2 0a4.5 4.5 0 1 1-9 0 4.5 4.5 0 0 1 9 0ZM7.5 19c-1.807 0-3.479 1.744-3.5 4.01l-2-.02C2.03 19.872 4.368 17 7.5 17c3.135 0 5.482 2.86 5.5 5.994l-2 .012C10.987 20.738 9.316 19 7.5 19Zm5.583-1.808C13.45 15.317 14.921 14 16.5 14c1.81 0 3.487 1.74 3.5 4.006l2-.012C21.982 14.86 19.628 12 16.5 12c-2.735 0-4.87 2.204-5.38 4.808-.075.384-.116.78-.12 1.183l2 .018a4.47 4.47 0 0 1 .083-.817Z",fill:"currentColor",fillRule:"evenodd"})})})),t=r.memo(n);t.displayName="GroupIcon";export{t as M};
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import{r as m}from"./index-NdkWRN8K.js";import{M as E}from"./Field-ilPS333M.js";import{u as W}from"./OdysseyDesignTokensContext-BWQIA5ie.js";import{M as q}from"./Tag-CjPSrGAL.js";import{c as K}from"./Typography-CiNRLenM.js";import{j as t}from"./jsx-runtime-CnH95YSl.js";import{B as g}from"./Box-C2ekHaOu.js";import{g as H,_,a as f,c as $}from"./createTheme-BmPXDA4p.js";import{c as ee}from"./createSvgIcon-DiC7XVU3.js";import{g as oe}from"./generateUtilityClasses-DYvjsuMV.js";import{u as te}from"./useSlot-F4Qz2Wzp.js";import{u as re,s as U,c as ae}from"./DefaultPropsProvider-B7tpShA7.js";import{M as se}from"./Grid-B2PgWvdd.js";import{I as ie}from"./InputBase--xDu7aWm.js";import{A as ne}from"./Autocomplete-MfScEzbR.js";import{M as le}from"./User-BBdPovZN.js";import{M as pe}from"./Group-W0XqkWVH.js";import"./_commonjsHelpers-gnU0ypJ3.js";import"./Box-BXOPvc0Q.js";import"./List-W5kRT_jR.js";import"./ListContext-C02XM7tn.js";import"./ListItem-CcduKzQu.js";import"./utils-iop7lDec.js";import"./useFormControl-BMISTZuX.js";import"./FormLabel-BLeax9q3.js";import"./formLabelClasses-xMgYguuN.js";import"./TransitionGroupContext-twgBS-Q3.js";import"./useIsFocusVisible-DH0qxT5e.js";import"./isHostComponent-DVu5iVWx.js";import"./ButtonBase-BqXVk-1q.js";import"./assertThisInitialized-B9jnkVVz.js";import"./inheritsLoose-CWawPfk8.js";import"./buttonBaseClasses-CSPKg76d.js";import"./ScreenReaderText-vq7_Ob_I.js";import"./visuallyHidden-Dan1xhjv.js";import"./useTranslation-vEf1lqoc.js";import"./context-D_qJ2zXV.js";import"./FormHelperText-ZkUAjajs.js";import"./FieldHint-Cv7aMlpU.js";import"./useUniqueId-Bsgqe1tm.js";import"./createUniqueId-ByTaVY63.js";import"./MuiPropsContext-DhRylJZk.js";import"./useContrastMode-BthoHtLy.js";import"./Chip-BOK8DR8m.js";import"./chipClasses-BMWKl3Eu.js";import"./CloseCircleFilled-D2aBlgBe.js";import"./SvgIcon-BQAg6Jm7.js";import"./Typography-D7-qxuiy.js";import"./typographyClasses-D8vr2n3l.js";import"./useTheme-C05bJKih.js";import"./resolveComponentProps-DMpKAZvD.js";import"./inputBaseClasses-PAjj3ZBN.js";import"./ownerWindow-HkKU3E4x.js";import"./ownerDocument-DW-IO8s5.js";import"./debounce-Be36O1Ab.js";import"./GlobalStyles-BxDN_5FT.js";import"./ArrowDropDown-bSngWMh1.js";import"./Close-DA_Sph0R.js";import"./autocompleteClasses-Bi4FgC8v.js";import"./Paper-DbAuDGNI.js";import"./Popper-CwLH-7YW.js";import"./Portal-Bvf2g5iG.js";import"./index-B5xazMy1.js";import"./index-DieBXP3Z.js";import"./popper-CMBiYTiD.js";import"./useId-cMcvCE23.js";import"./useControlled-NQulfz4l.js";import"./IconButton-CK9Do7vj.js";import"./ListSubheader-DXKE8lW0.js";const me=ee(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 ce(e){return H("MuiAvatar",e)}const D=oe("MuiAvatar",["root","colorDefault","circular","rounded","square","img","fallback"]),ue=["alt","children","className","component","slots","slotProps","imgProps","sizes","src","srcSet","variant"],de=e=>{const{classes:r,variant:a,colorDefault:s}=e;return ae({root:["root",a,s&&"colorDefault"],img:["img"],fallback:["fallback"]},ce,r)},ge=U("div",{name:"MuiAvatar",slot:"Root",overridesResolver:(e,r)=>{const{ownerState:a}=e;return[r.root,r[a.variant],a.colorDefault&&r.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]})))}]})),ye=U("img",{name:"MuiAvatar",slot:"Img",overridesResolver:(e,r)=>r.img})({width:"100%",height:"100%",textAlign:"center",objectFit:"cover",color:"transparent",textIndent:1e4}),fe=U(me,{name:"MuiAvatar",slot:"Fallback",overridesResolver:(e,r)=>r.fallback})({width:"75%",height:"75%"});function be({crossOrigin:e,referrerPolicy:r,src:a,srcSet:s}){const[p,c]=m.useState(!1);return m.useEffect(()=>{if(!a&&!s)return;c(!1);let d=!0;const i=new Image;return i.onload=()=>{d&&c("loaded")},i.onerror=()=>{d&&c("error")},i.crossOrigin=e,i.referrerPolicy=r,i.src=a,s&&(i.srcset=s),()=>{d=!1}},[e,r,a,s]),p}const z=m.forwardRef(function(r,a){const s=re({props:r,name:"MuiAvatar"}),{alt:p,children:c,className:d,component:i="div",slots:w={},slotProps:T={},imgProps:x,sizes:j,src:b,srcSet:l,variant:B="circular"}=s,S=_(s,ue);let y=null;const R=be(f({},x,{src:b,srcSet:l})),C=b||l,n=C&&R!=="error",o=f({},s,{colorDefault:!n,component:i,variant:B}),u=de(o),[h,A]=te("img",{className:u.img,elementType:ye,externalForwardedProps:{slots:w,slotProps:{img:f({},x,T.img)}},additionalProps:{alt:p,src:b,srcSet:l,sizes:j},ownerState:o});return n?y=t.jsx(h,f({},A)):c||c===0?y=c:C&&p?y=p[0]:y=t.jsx(fe,{ownerState:o,className:u.fallback}),t.jsx(ge,f({as:i,ownerState:o,className:$(u.root,d),ref:a},S,{children:y}))}),V=16,Z=24,he=({hasMultipleChoices:e,isCustomValueAllowed:r,isDisabled:a,isLoading:s,isOptional:p=!1,isReadOnly:c,hint:d,label:i,onChange:w,onInputChange:T,options:x,value:j,testId:b})=>{const l=W(),B=m.useCallback((n,o)=>n.id===o.id,[]),S=m.useCallback(n=>n.name,[]),y=m.useCallback((n,o)=>m.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(z,{alt:o.name,src:o.logo,sx:{[`.${D.fallback}`]:{visibility:"hidden"},background:"transparent",height:Z,width:Z}})}),t.jsxs(g,{children:[o.name,t.jsx(K,{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(le,{}),o.usersCount]}),typeof o.appsCount=="number"&&t.jsxs(g,{sx:{display:"flex",flexDirection:"row",paddingRight:l.Spacing4},children:[t.jsx(se,{}),o.appsCount]}),typeof o.groupPushMappingsCount=="number"&&t.jsxs(g,{sx:{display:"flex",flexDirection:"row"},children:[t.jsx(pe,{}),o.groupPushMappingsCount]})]})]})]})),[l]),R=m.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(q,{icon:t.jsx(z,{alt:u.name,src:u.logo,sx:{[`.${D.fallback}`]:{visibility:"hidden"},background:"transparent",height:V,width:V}}),label:u.name,onRemove:Y})},A)}),[l]),C=m.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(ie,{...u,...o,"aria-describedby":h,id:A,required:!p})}),[d,p,i]);return t.jsx(ne,{"aria-disabled":a,"data-se":b,disabled:a,filterSelectedOptions:!0,freeSolo:r,getOptionLabel:S,isOptionEqualToValue:B,loading:s,multiple:e,onChange:w,onInputChange:T,options:x,readOnly:c,renderInput:C,renderOption:y,renderTags:R,value:j})},Ae=m.memo(he),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 ve=[{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}],Po={component:Ae,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:ve},tags:["autodocs"]},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,F,G;k.parameters={...k.parameters,docs:{...(P=k.parameters)==null?void 0:P.docs,source:{originalSource:"{}",...(G=(F=k.parameters)==null?void 0:F.docs)==null?void 0:G.source}}};var L,O,X;I.parameters={...I.parameters,docs:{...(L=I.parameters)==null?void 0:L.docs,source:{originalSource:`{
|
|
12
|
+
args: {
|
|
13
|
+
hasMultipleChoices: true
|
|
14
|
+
}
|
|
15
|
+
}`,...(X=(O=I.parameters)==null?void 0:O.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 Fo=["GroupPickerDefault","Multiple","Disabled"];export{M as Disabled,k as GroupPickerDefault,I as Multiple,Fo as __namedExportsOrder,Po as default};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{_ as B,a as E}from"./createTheme-BmPXDA4p.js";import{r as c}from"./index-NdkWRN8K.js";import{T as J,u as M,g as A,r as N}from"./utils-gq6yExow.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"./Portal-Bvf2g5iG.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:C,style:f,timeout:o="auto",TransitionComponent:F=J}=x,G=B(x,X),P=Q(),g=c.useRef(),r=M(),u=c.useRef(null),b=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(C),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"&&P.start(g.current||0,t),y&&y(u.current,t)};return O.jsx(F,E({appear:_,in:R,nodeRef:u,onEnter:W,onEntered:$,onEntering:S,onExit:K,onExited:k,onExiting:z,addEndListener:q,timeout:o==="auto"?null:o},G,{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:b},e))}))});Z.muiSupportAuto=!0;export{Z as G};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{r as e}from"./index-NdkWRN8K.js";import{j as l}from"./jsx-runtime-CnH95YSl.js";import{S as a}from"./SvgIcon-BQAg6Jm7.js";const c=e.forwardRef((o,r)=>l.jsx(a,{fill:"none",ref:r,viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",...o,children:l.jsx(l.Fragment,{children:l.jsx("path",{clipRule:"evenodd",d:"M12 3c2.353 0 4.267.745 5.791 1.786l-1.65 1.32A8.09 8.09 0 0 0 12 5C8.746 5 6.506 6.761 5.034 8.62A14.153 14.153 0 0 0 3.068 12a14.275 14.275 0 0 0 1.78 3.14l-1.561 1.25A16.256 16.256 0 0 1 1.2 12.714a10.039 10.039 0 0 1-.137-.362l-.008-.024-.002-.007-.001-.003c0-.001 0-.002.948-.318a91.698 91.698 0 0 1-.948-.317v-.004l.003-.007.008-.024.029-.08c.025-.067.06-.163.108-.282a16.15 16.15 0 0 1 2.266-3.907C5.16 5.24 7.92 3 12 3ZM2 12l-.949.316L.946 12l.105-.316L2 12Zm10-5c.835 0 1.623.205 2.315.567l-1.838 1.47a3 3 0 0 0-3.471 2.777l-1.84 1.472A5 5 0 0 1 12 7Zm2.992 4.787-3.858 3.086a3 3 0 0 0 3.858-3.087Zm-5.6 4.48L7.576 17.72A8.098 8.098 0 0 0 12 19c3.254 0 5.494-1.761 6.966-3.62A14.151 14.151 0 0 0 20.932 12a14.152 14.152 0 0 0-1.972-3.387l-2.224 1.779a5 5 0 0 1-7.344 5.875Zm11.13-8.904 2.603-2.082-1.25-1.562-20 16 1.25 1.562 2.818-2.255C7.508 20.165 9.508 21 12 21c4.08 0 6.84-2.239 8.534-4.38a16.147 16.147 0 0 0 2.266-3.906 10.026 10.026 0 0 0 .137-.362l.008-.024.002-.007.001-.003c0-.001 0-.002-.948-.318l.949.316.105-.316-.105-.316L22 12c.949-.316.949-.317.948-.317v-.004l-.003-.007-.008-.024a7.012 7.012 0 0 0-.137-.362 16.147 16.147 0 0 0-2.279-3.922Z",fill:"currentColor",fillRule:"evenodd"})})})),m=e.memo(c);m.displayName="HideIcon";export{m as M};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{r as e}from"./index-NdkWRN8K.js";import{j as o}from"./jsx-runtime-CnH95YSl.js";import{S as n}from"./SvgIcon-BQAg6Jm7.js";const a=e.forwardRef((r,m)=>o.jsx(n,{fill:"none",ref:m,viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",...r,children:o.jsx(o.Fragment,{children:o.jsx("path",{clipRule:"evenodd",d:"m12 .655.669.602 10 9 .331.298V20a3 3 0 0 1-3 3h-5v-7a3 3 0 1 0-6 0v7H4a3 3 0 0 1-3-3v-9.445l.331-.298 10-9L12 .655Zm-9 10.79V20a1 1 0 0 0 1 1h3v-5a5 5 0 0 1 10 0v5h3a1 1 0 0 0 1-1v-8.555l-9-8.1-9 8.1Z",fill:"currentColor",fillRule:"evenodd"})})})),l=e.memo(a);l.displayName="HomeIcon";export{l as M};
|