@okta/odyssey-react-mui 1.48.0 → 1.49.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/assets/{Accordion-MTHvu5cR.js → Accordion-BNJn0pfW.js} +1 -1
- package/dist/assets/{Accordion.stories-DniSJ38i.js → Accordion.stories-DZIjfE-o.js} +1 -1
- package/dist/assets/{AccordionSummary-Byc6MkHu.js → AccordionSummary-BjqT0nEb.js} +1 -1
- package/dist/assets/{AlertTitle-BDkgiA29.js → AlertTitle-q6ff_Zkl.js} +1 -1
- package/dist/assets/{AppSwitcher-mUx_f1r6.js → AppSwitcher-cyyPttJv.js} +1 -1
- package/dist/assets/{AppSwitcher.stories-CENgxWSC.js → AppSwitcher.stories--8DVDaS1.js} +1 -1
- package/dist/assets/AppTile _labs_.stories-D9W_XD90.js +136 -0
- package/dist/assets/ArrowDropDown-DdemyKZU.js +1 -0
- package/dist/assets/{ArrowRight-BquvVn3D.js → ArrowRight-ChWYjNny.js} +1 -1
- package/dist/assets/{Autocomplete-Bh3XRXMy.js → Autocomplete-Cpi_kUVA.js} +1 -1
- package/dist/assets/{Autocomplete-CknstIK_.js → Autocomplete-CxtGbb8j.js} +1 -1
- package/dist/assets/{Autocomplete.stories-DNDWoB5E.js → Autocomplete.stories-CQuaZrwN.js} +3 -3
- package/dist/assets/{Badge-DFZYqSZN.js → Badge-BO7bTIEa.js} +1 -1
- package/dist/assets/{Banner-25ZggH76.js → Banner-K7AM0SJj.js} +1 -1
- package/dist/assets/{Banner.stories-Dz37neYC.js → Banner.stories-BRQINNIu.js} +3 -3
- package/dist/assets/{BaseButton-Cd1oZPsh.js → BaseButton-DYZHKnV3.js} +1 -1
- package/dist/assets/BaseMenuButton-BIietjUB.js +1 -0
- package/dist/assets/{Box-B-R2QRDU.js → Box-1mvP3NLW.js} +1 -1
- package/dist/assets/Box-BcMTQ_R2.js +1 -0
- package/dist/assets/Box-DXoV5_ch.js +11 -0
- package/dist/assets/{Box.stories-BCtoarqr.js → Box.stories-C8EeKXhb.js} +1 -1
- package/dist/assets/Breadcrumbs-Bp-jt6t5.js +6 -0
- package/dist/assets/{Breadcrumbs.stories-BTEZLo9U.js → Breadcrumbs.stories-B_3snTWA.js} +1 -1
- package/dist/assets/{Bug-Z3X3t5xp.js → Bug-CQIUmZ-N.js} +1 -1
- package/dist/assets/{Button-DPUOjyZy.js → Button-BEA5U6Tg.js} +1 -1
- package/dist/assets/{Button-BvUGu5Sm.js → Button-BzIwUmSM.js} +1 -1
- package/dist/assets/{Button.stories-CLRsJ0J2.js → Button.stories-S7v-663i.js} +2 -2
- package/dist/assets/{ButtonBase-CrcIXP69.js → ButtonBase-BNqa2TMD.js} +2 -2
- package/dist/assets/{Calendar-DnwsjheN.js → Calendar-_GPHtaRa.js} +1 -1
- package/dist/assets/{Callout-qkeUDNKn.js → Callout-FZxPpigF.js} +1 -1
- package/dist/assets/Callout.stories-CODSBn6K.js +105 -0
- package/dist/assets/{Card-DL97TZJd.js → Card-C0RGIer3.js} +1 -1
- package/dist/assets/Card-CBiqCoFv.js +8 -0
- package/dist/assets/{Card.stories-ROWJyBI0.js → Card.stories-Cp5cSsvN.js} +1 -1
- package/dist/assets/{CardActionArea-BaL2GhSM.js → CardActionArea-DWrXZntI.js} +1 -1
- package/dist/assets/{CardActions-C1bW_Jqo.js → CardActions-BQdq7Bn0.js} +1 -1
- package/dist/assets/{Checkbox-eGdyySzm.js → Checkbox-DPv3Q9UW.js} +1 -1
- package/dist/assets/{Checkbox-OauVZWc5.js → Checkbox-vZwuXtzm.js} +1 -1
- package/dist/assets/{Checkbox.stories-DwmuFw2j.js → Checkbox.stories-9dZS0JMC.js} +1 -1
- package/dist/assets/{CheckboxGroup-BQ5GiUey.js → CheckboxGroup-Be66QML5.js} +1 -1
- package/dist/assets/CheckboxGroup.stories-Cx6CsE7C.js +92 -0
- package/dist/assets/{ChevronRight-BLkvXBUf.js → ChevronRight-C12ToI7Y.js} +1 -1
- package/dist/assets/{ChevronUp-Br-QC-XK.js → ChevronUp-CfT7Bz8X.js} +1 -1
- package/dist/assets/{Chip-B9WkuA4b.js → Chip-CXnMieIl.js} +1 -1
- package/dist/assets/{CircularProgress-DxY3QwHW.js → CircularProgress-DPxwxglU.js} +1 -1
- package/dist/assets/{CircularProgress-AX8KCiV6.js → CircularProgress-HbIdZLBB.js} +4 -4
- package/dist/assets/{CircularProgress.stories-a_Rse-5m.js → CircularProgress.stories-BCClfpJw.js} +1 -1
- package/dist/assets/{Clock-8HOQy_d4.js → Clock-17ua7UAW.js} +1 -1
- package/dist/assets/{Close-BjXKhBr_.js → Close-OXBt1nIe.js} +1 -1
- package/dist/assets/{Code Styling Guidelines-BkGO8zp-.js → Code Styling Guidelines-CVbofGQK.js } +1 -1
- package/dist/assets/{Collapse-DtQCvyEw.js → Collapse-DfdoVIdP.js} +1 -1
- package/dist/assets/{Color-YHDXOIA2-CcoN0wsl.js → Color-YHDXOIA2-DT4T6TnK.js} +1 -1
- package/dist/assets/{CssBaseline-CI1_OCUX.js → CssBaseline-DpDXOHEK.js} +1 -1
- package/dist/assets/{CssBaseline.stories-BSLs5ScZ.js → CssBaseline.stories-DeSEyTd-.js} +1 -1
- package/dist/assets/{Custom Theming-WlDJkwzT.js → Custom Theming-CmbOHtP1.js } +2 -2
- package/dist/assets/Custom Theming.stories-CxVTbjdx.js +95 -0
- package/dist/assets/{DataFilters _labs_-BIYE5QJU.js → DataFilters _labs_-DvUVhC-g.js } +2 -2
- package/dist/assets/{DataFilters _labs_.stories-BdV81MCI.js → DataFilters _labs_.stories-Ca9tvzkv.js } +1 -1
- package/dist/assets/{DataFilters-KxLw7hL5.js → DataFilters-BnT_U3-o.js} +1 -1
- package/dist/assets/DataTable _labs_-DL8Jc4Hl.js +41 -0
- package/dist/assets/{DataTable _labs_.stories-CTl54dDN.js → DataTable _labs_.stories-C9Tljg4U.js } +1 -1
- package/dist/assets/{DataTable-bZz790ci.js → DataTable-S0xhd1LQ.js} +2 -2
- package/dist/assets/{DataTable-BJQ8WkUd.js → DataTable-XayRBHyP.js} +2 -2
- package/dist/assets/{DataTable.stories-9eBclyx2.js → DataTable.stories-tcZyd507.js} +1 -1
- package/dist/assets/{DataView _labs_-AutzTAhE.js → DataView _labs_-oQPoSKgb.js } +2 -2
- package/dist/assets/{DataView _labs_.stories-CO0XGhOV.js → DataView _labs_.stories-C_xQt04_.js } +1 -1
- package/dist/assets/{DataView-CHGdxu-Z.js → DataView-C5rMFmwA.js} +6 -6
- package/dist/assets/{DataView.stories-6cnSmpm3.js → DataView.stories-oJRHGPAN.js} +3 -3
- package/dist/assets/{DatePicker-BGoHW8Is.js → DatePicker-BwDkz3WT.js} +1 -1
- package/dist/assets/{DatePicker-C6TIvuN7.js → DatePicker-CaivHe9y.js} +2 -2
- package/dist/assets/DatePicker.stories-DbwO66Pf.js +133 -0
- package/dist/assets/{DateTimePicker-DKGE8593.js → DateTimePicker-B7a9bgL6.js} +1 -1
- package/dist/assets/{DateTimePicker.stories-TBpe3AjQ.js → DateTimePicker.stories-DL2oaP7L.js} +6 -6
- package/dist/assets/Design Tokens-CLnoritM.js +4 -0
- package/dist/assets/Dialog-CR4TUjlJ.js +1 -0
- package/dist/assets/{Dialog.stories-BQZpS-f5.js → Dialog.stories-2q37jV4r.js} +1 -1
- package/dist/assets/{DialogContent-B-pM1DP1.js → DialogContent-Cwn-I-C_.js} +1 -1
- package/dist/assets/{DialogTitle-DA2nrmUc.js → DialogTitle-C-K7jEio.js} +1 -1
- package/dist/assets/{Divider-CAwVs6Y1.js → Divider-Ln3VaO81.js} +1 -1
- package/dist/assets/{DocsRenderer-CFRXHY34-kO-n-5EB.js → DocsRenderer-CFRXHY34-CCeAz_jE.js} +1 -1
- package/dist/assets/{Documentation-CBbHUjXC.js → Documentation-DF3oo39e.js} +1 -1
- package/dist/assets/{Download-VHpUH0as.js → Download-Zlhupksh.js} +1 -1
- package/dist/assets/{Drawer-C9M8pytV.js → Drawer-CXQ3piJR.js} +2 -2
- package/dist/assets/Drawer.stories-Dlkg74m1.js +95 -0
- package/dist/assets/{EmptyState-FpIKkMpd.js → EmptyState-CpBEzmap.js} +1 -1
- package/dist/assets/EmptyState.stories-Dl57LvdY.js +11 -0
- package/dist/assets/{ExampleButton.stories-CbAFs20l.js → ExampleButton.stories-Bbj5W6A-.js} +1 -1
- package/dist/assets/{Extending Translations-mp_vyXoH.js → Extending Translations-D38KR8Kn.js } +1 -1
- package/dist/assets/{ExternalLink-lox07hAR.js → ExternalLink-D0l1c5Cz.js} +1 -1
- package/dist/assets/{Fade-CHnXmzFb.js → Fade-dUgBN8rJ.js} +1 -1
- package/dist/assets/{Field-BxkyNVQW.js → Field-DH3L8v09.js} +2 -2
- package/dist/assets/{FieldHint-D5VttvwL.js → FieldHint-B3Jif_Up.js} +1 -1
- package/dist/assets/{Fieldset-Dp9uCwiB.js → Fieldset-D7_59eeI.js} +1 -1
- package/dist/assets/Fieldset.stories-B-NXKKP-.js +15 -0
- package/dist/assets/{FileUploader.stories-CxYwF2DZ.js → FileUploader.stories-C9ua336t.js} +6 -6
- package/dist/assets/{Filter-BiREetkX.js → Filter-DsDJ7si-.js} +1 -1
- package/dist/assets/{Folder-8esChg_E.js → Folder-e-po0U54.js} +1 -1
- package/dist/assets/{Form Field Accessibility-BCFouYXt.js → Form Field Accessibility-D5GmQTjo.js } +1 -1
- package/dist/assets/{Form-CJrxMkwr.js → Form-iTx8DKdm.js} +1 -1
- package/dist/assets/Form.stories-CKX8F-HV.js +69 -0
- package/dist/assets/{FormControlLabel-CoGABX1G.js → FormControlLabel-0BBemR80.js} +1 -1
- package/dist/assets/{FormGroup-D2d8E3Cw.js → FormGroup-HFkGZ983.js} +1 -1
- package/dist/assets/{FormHelperText-Ca69g4Je.js → FormHelperText-CsNAE1E3.js} +1 -1
- package/dist/assets/{FormLabel-EOlXQpGp.js → FormLabel-CiGre9wK.js} +1 -1
- package/dist/assets/{FullScreenOverlay-Bujsxbxh.js → FullScreenOverlay-BTMDlJhE.js} +1 -1
- package/dist/assets/{Generating Icons-pN6RBs4J.js → Generating Icons-B_lqn7WI.js } +1 -1
- package/dist/assets/{Globe-BHk1B5d7.js → Globe-B83Xmd05.js} +1 -1
- package/dist/assets/{Grid-B7XSvQ_X.js → Grid-EpV3TL4a.js} +1 -1
- package/dist/assets/{Group-DWmiPyzE.js → Group-mTVRC79V.js} +1 -1
- package/dist/assets/GroupPicker _labs_.stories-rRod3ZIj.js +33 -0
- package/dist/assets/{Grow-6R6cTzr4.js → Grow-C8kUeGCY.js} +1 -1
- package/dist/assets/{Hide-Bvhl5PVN.js → Hide-TKfOHglI.js} +1 -1
- package/dist/assets/{Hint-DTEjQAxl.js → Hint-DoJneNg9.js} +1 -1
- package/dist/assets/{Home-CUQc6tB8.js → Home-la7Lmt_L.js} +1 -1
- package/dist/assets/Icon _icons_.stories-BmisOf4s.js +16 -0
- package/dist/assets/{IconButton-Wwvz84xG.js → IconButton-5qShmnSr.js} +1 -1
- package/dist/assets/{IconWithTooltip _icons_.stories-BiiIBhOv.js → IconWithTooltip _icons_.stories-C86MVO5n.js } +1 -1
- package/dist/assets/{InformationCircle-DYQV39lt.js → InformationCircle-a2jMUKfL.js} +1 -1
- package/dist/assets/{InputAdornment-Dj-8HF_1.js → InputAdornment-CdR3XT6f.js} +1 -1
- package/dist/assets/{InputBase-6reb9B7r.js → InputBase-DeB4_faH.js} +2 -2
- package/dist/assets/{Installing odyssey-react-mui-DuIfuEaw.js → Installing odyssey-react-mui-BlZZYALn.js } +1 -1
- package/dist/assets/{Introduction-BTH-MnwV.js → Introduction-D6814AO1.js} +6 -6
- package/dist/assets/{Layout-BndkhA1_.js → Layout-DGOs1275.js} +1 -1
- package/dist/assets/{Layout.stories-BwMtW-cW.js → Layout.stories-DE3l510g.js} +2 -2
- package/dist/assets/{Legacy Migrations-BfDwGUg3.js → Legacy Migrations-B9gOEz-l.js } +1 -1
- package/dist/assets/{Link-BQo2zH0c.js → Link-BDoLypER.js} +1 -1
- package/dist/assets/{Link-DcsndbPK.js → Link-DNIf0luC.js} +1 -1
- package/dist/assets/Link-dX7EI1Ct.js +11 -0
- package/dist/assets/{Link.stories-DiVQZsn1.js → Link.stories-DnkjU-5y.js} +1 -1
- package/dist/assets/{List-_p0jkXPM.js → List-CmjR1pNu.js} +1 -1
- package/dist/assets/{List-CNCQEpRl.js → List-UlX1tusJ.js} +1 -1
- package/dist/assets/{ListItem-BLYwuKOG.js → ListItem-C0ExFtXb.js} +1 -1
- package/dist/assets/{ListSubheader-DO359rMr.js → ListSubheader-CQJAAOsd.js} +1 -1
- package/dist/assets/{Menu-CU_mHT7L.js → Menu-K9lpVvDG.js} +1 -1
- package/dist/assets/{MenuButton-DvVmjwMC.js → MenuButton-B3T7c15t.js} +1 -1
- package/dist/assets/MenuButton-hdFGv_9Z.js +9 -0
- package/dist/assets/{MenuButton.stories-rLpv4nq1.js → MenuButton.stories-BRHUGqba.js} +1 -1
- package/dist/assets/{MenuItem-DoUaLmgU.js → MenuItem-CmSG6PNu.js} +1 -1
- package/dist/assets/{MenuItem-oi_JaUho.js → MenuItem-vhp8G-Nb.js} +1 -1
- package/dist/assets/{MenuItem.stories-Ba6BR5kj.js → MenuItem.stories-dOOOz3KO.js} +1 -1
- package/dist/assets/{MenuList-0OHGr5AC.js → MenuList-BMOesnfs.js} +1 -1
- package/dist/assets/{Modal-B12sS2Yh.js → Modal-CSDyCVCf.js} +1 -1
- package/dist/assets/{More-BgQrTkKM.js → More-DLQ2RjWn.js} +1 -1
- package/dist/assets/NativeSelect.stories-DHgms1GM.js +173 -0
- package/dist/assets/{OdysseyProvider-BPLFYiwr.js → OdysseyProvider-qIn9QVYS.js} +2 -2
- package/dist/assets/{OdysseyStorybookThemeDecorator-CGH8visK.js → OdysseyStorybookThemeDecorator-BuDiOG2V.js} +1 -1
- package/dist/assets/{OdysseyThemeProvider-BykOaJq8.js → OdysseyThemeProvider-Bh0Bu-2o.js} +1 -1
- package/dist/assets/{PageHeader.stories-DHDJTskZ.js → PageHeader.stories-MDEEjM1g.js} +2 -2
- package/dist/assets/{PageHeader.stories-Cg0XA0p_.js → PageHeader.stories-eACdVWYK.js} +3 -3
- package/dist/assets/PageTemplate _labs_-BuvgCua7.js +8 -0
- package/dist/assets/{PageTemplate _labs_.stories-DdUcW43S.js → PageTemplate _labs_.stories-C8RdfTqi.js } +1 -1
- package/dist/assets/{PageTemplate-mjLVQesI.js → PageTemplate-D-EQlTUx.js} +1 -1
- package/dist/assets/{PageTemplate.stories-BD8Hafdu.js → PageTemplate.stories-BzgC-WCT.js} +3 -3
- package/dist/assets/{PaginatedTable _labs_.stories-Lt6yWTDo.js → PaginatedTable _labs_.stories-CvpuSFlt.js } +3 -3
- package/dist/assets/{Pagination-BTycGMV-.js → Pagination-CB1wBW8Q.js} +2 -2
- package/dist/assets/Pagination.stories-RoH8O-RA.js +17 -0
- package/dist/assets/{Paper-DwBg74qy.js → Paper-D-_O-EjU.js} +1 -1
- package/dist/assets/PasswordField.stories-BUOy4gYe.js +129 -0
- package/dist/assets/Picker _labs_.stories-BIZmrH82.js +18 -0
- package/dist/assets/{PickerWithOptionAdornment _labs_.stories-BxW5XACd.js → PickerWithOptionAdornment _labs_.stories-CQYX6Af7.js } +3 -3
- package/dist/assets/Popper-BARIxJrI.js +1 -0
- package/dist/assets/{Portal-CsPQSHsR.js → Portal-C6D59xAE.js} +1 -1
- package/dist/assets/ProgressBar.stories-Dyp9UXSp.js +311 -0
- package/dist/assets/{Radio-7iHx2pBU.js → Radio-B4gVvwps.js} +1 -1
- package/dist/assets/{Radio-AD-L5UNl.js → Radio-BdNnpooK.js} +1 -1
- package/dist/assets/{Radio.stories-eZmvoamt.js → Radio.stories-BtiaRnXY.js} +1 -1
- package/dist/assets/{RadioGroup-Mx_cTqVX.js → RadioGroup-BYJZ378_.js} +1 -1
- package/dist/assets/RadioGroup-CtUWSbQc.js +1 -0
- package/dist/assets/RadioGroup-D1k5iqEQ.js +10 -0
- package/dist/assets/{RadioGroup.stories-CackbN0d.js → RadioGroup.stories-kfMrpCQ4.js} +1 -1
- package/dist/assets/{Refresh-CgZVXlSy.js → Refresh-DexPEklu.js} +1 -1
- package/dist/assets/{ResourceAccessPolicyComponentsStorybookThemeDecorator-Xen2vDro.js → ResourceAccessPolicyComponentsStorybookThemeDecorator-Bo_QNpfC.js} +1 -1
- package/dist/assets/{Right-to-Left (RTL)-CALRs8aM.js → Right-to-Left (RTL)-BHFSR1q8.js } +1 -1
- package/dist/assets/{ScreenReaderText-DbrZU7M5.js → ScreenReaderText-CebALBsG.js} +1 -1
- package/dist/assets/{ScreenReaderText-D9dVDvYs.js → ScreenReaderText-DkVEZTIb.js} +2 -2
- package/dist/assets/ScreenReaderText.stories-BuS5WxvE.js +8 -0
- package/dist/assets/{Search-BSlcf4bB.js → Search-C5TVrLyE.js} +1 -1
- package/dist/assets/{SearchDropdown _labs_.stories-CQype98o.js → SearchDropdown _labs_.stories-Bq7Qapoa.js } +3 -3
- package/dist/assets/{SearchField-glDE5e-X.js → SearchField-BdnOrhVM.js} +1 -1
- package/dist/assets/SearchField.stories-IB3f7QOK.js +37 -0
- package/dist/assets/{Select-VvpDulqk.js → Select-DZTigpTO.js} +1 -1
- package/dist/assets/{Select-BWJ6-p1Z.js → Select-KZvejALm.js} +2 -2
- package/dist/assets/{Select.stories-BXXrgt5o.js → Select.stories-5trfU4Ma.js} +2 -2
- package/dist/assets/{Server-DS5iERo2.js → Server-Ch5aeRtt.js} +1 -1
- package/dist/assets/{Settings-SRsJGOHl.js → Settings-2rTKyez8.js} +1 -1
- package/dist/assets/{Setup-Ri7IU42o.js → Setup-BDM9nDVO.js} +1 -1
- package/dist/assets/{Shadow DOM-DK_1Epv_.js → Shadow DOM-DHECKIzr.js } +1 -1
- package/dist/assets/{Show-DXIrBgNq.js → Show-BnmQFsN6.js} +1 -1
- package/dist/assets/{SideNav-QMiST_j6.js → SideNav-5pMdKSEl.js} +1 -1
- package/dist/assets/{SideNav-CUpwLG1e.js → SideNav-bhdOFKbL.js} +2 -2
- package/dist/assets/{SideNav.stories-l5XPKDfB.js → SideNav.stories-ciX1pArE.js} +1 -1
- package/dist/assets/{Skeleton-DAUyPclv.js → Skeleton-BPjIT6NG.js} +5 -5
- package/dist/assets/{Snackbar-DWLMI8Az.js → Snackbar-BM0ZOC4Y.js} +1 -1
- package/dist/assets/{Stack-t9yXrJ7r.js → Stack-B7OGvu7C.js} +1 -1
- package/dist/assets/{Stack.stories-zmhDXY_k.js → Stack.stories-CYylNLHT.js} +1 -1
- package/dist/assets/{StaticTable _labs_.stories-DJCAtW2q.js → StaticTable _labs_.stories-ChL0Cwn4.js } +3 -3
- package/dist/assets/{Status-CdgTiE4c.js → Status-BlOUycBm.js} +1 -1
- package/dist/assets/{Status.stories-D5tSpO2F.js → Status.stories-Dv4b1Z5X.js} +1 -1
- package/dist/assets/{Surface-BCTO1YR-.js → Surface-DTngmQRF.js} +1 -1
- package/dist/assets/{Switch.stories-r3bYAZpt.js → Switch.stories-hjVvL7UR.js} +5 -5
- package/dist/assets/{SwitchBase-CWdXZnig.js → SwitchBase-CefEM0OA.js} +1 -1
- package/dist/assets/{Sync-CCP_JZB8.js → Sync-BbqTDeWk.js} +1 -1
- package/dist/assets/{Tabs-Dxt5P3aJ.js → Tabs-CQz87GHd.js} +1 -1
- package/dist/assets/{Tabs-DCV9oDtT.js → Tabs-gXh7YFSu.js} +2 -2
- package/dist/assets/{Tabs.stories-CmjPJB02.js → Tabs.stories-CRJgQA20.js} +4 -4
- package/dist/assets/{Tag-C_iW2sj3.js → Tag-DwH0t814.js} +1 -1
- package/dist/assets/{Tag.stories-uilRDgPB.js → Tag.stories-CoLnXBke.js} +1 -1
- package/dist/assets/{TagList-cWni94xt.js → TagList-BZGEhGXn.js} +1 -1
- package/dist/assets/{TextField-BIepBlYn.js → TextField-BhK0y2Zt.js} +1 -1
- package/dist/assets/{TextField.stories-DkCMFN0S.js → TextField.stories-DYOK0z5b.js} +2 -2
- package/dist/assets/Toast.stories-BipAY3GN.js +134 -0
- package/dist/assets/{ToastManager.stories-DToM8bFE.js → ToastManager.stories-BWZvSWGT.js} +1 -1
- package/dist/assets/{Tooltip-D_pBGtcj.js → Tooltip-Cq2rQGbD.js} +1 -1
- package/dist/assets/{Tooltip-DQDBPKMu.js → Tooltip-CsVWtVfL.js} +1 -1
- package/dist/assets/{Tooltip.stories-CgIybZDx.js → Tooltip.stories-B6wyATg5.js} +1 -1
- package/dist/assets/{TopNav-Dwo-KfAw.js → TopNav-DEIYDz6v.js} +1 -1
- package/dist/assets/TopNav.stories-DJNZEi08.js +13 -0
- package/dist/assets/{Typography-DBt3ajUl.js → Typography-CkeEfKaM.js} +1 -1
- package/dist/assets/{Typography-CSpPZFTF.js → Typography-ClQ35Rr-.js} +1 -1
- package/dist/assets/{Typography-B7ktrxCD.js → Typography-Cz6D417Y.js} +1 -1
- package/dist/assets/{Typography-CQfngSjD.js → Typography-r6MlG5YM.js} +1 -1
- package/dist/assets/{Typography.stories-CitS-iTX.js → Typography.stories-93RlEwpU.js} +1 -1
- package/dist/assets/{Typography.stories-dzT0O_H3.js → Typography.stories-DRUYEGzH.js} +1 -1
- package/dist/assets/{UiShell.stories-BV5mK0Oz.js → UiShell.stories-HV8yGvd3.js} +3 -3
- package/dist/assets/{UiShellProvider-Bm9plvoZ.js → UiShellProvider-BEcD16AU.js} +1 -1
- package/dist/assets/{Upload-DH1T10x5.js → Upload-CfzP_Muq.js} +1 -1
- package/dist/assets/{User-CvYTA860.js → User-CyxEAfVT.js} +1 -1
- package/dist/assets/{UserProfile-DrnAMPM1.js → UserProfile-B6GSEZPs.js} +1 -1
- package/dist/assets/UserProfile.stories-Cx9GmLsV.js +14 -0
- package/dist/assets/{UserProfileMenuButton.stories-Dhe9t4Oh.js → UserProfileMenuButton.stories-BjxJHNWm.js} +3 -3
- package/dist/assets/{Video-D8qbHdF4.js → Video-DWT3WylB.js} +1 -1
- package/dist/assets/{WorkflowsComponentsStorybookThemeDecorator-DJR9iMBt.js → WorkflowsComponentsStorybookThemeDecorator-CxOFxh0W.js} +1 -1
- package/dist/assets/{colorManipulator-C6C6_xuT.js → colorManipulator-DKifQsuo.js} +1 -1
- package/dist/assets/createBox-Dxawkfow.js +1 -0
- package/dist/assets/{createStyled-B0CJenTX.js → createStyled-D6bTcpHC.js} +1 -1
- package/dist/assets/{createSvgIcon-Bv_3NNsK.js → createSvgIcon-ClUWwDzL.js} +1 -1
- package/dist/assets/{dialogActionsClasses-d6kliu8x.js → dialogActionsClasses-ZEPlxVw-.js} +1 -1
- package/dist/assets/emotion-react-jsx-runtime.browser.esm-DL0BDwaj.js +1 -0
- package/dist/assets/{entry-preview-Bi6MTClg.js → entry-preview-BxxndF3a.js} +1 -1
- package/dist/assets/{getReactElementRef-Bs64nbeG.js → getReactElementRef-DsIevm5t.js} +1 -1
- package/dist/assets/{iconUtils-C1HBA-0w.js → iconUtils-BII10A1q.js} +1 -1
- package/dist/assets/{iframe-C7GWUW76.js → iframe-Cf-Lpz6Y.js} +2 -2
- package/dist/assets/{index-DkrUiDVY.js → index-DB8HwIVZ.js} +1 -1
- package/dist/assets/{index-DfE121Jj.js → index-DLgQDw3r.js} +3 -3
- package/dist/assets/{index-DoKqiSdS.js → index-Ml2UeFXJ.js} +1 -1
- package/dist/assets/index-_dyfSX8u.js +1 -0
- package/dist/assets/{index.esm-BliC9-aw.js → index.esm-CBOWgn41.js} +1 -1
- package/dist/assets/{index.esm-XFhSJO0s.js → index.esm-DTxqsiYY.js} +1 -1
- package/dist/assets/{inheritsLoose-DTTkq0Su.js → inheritsLoose-CJ6Ie9dp.js} +1 -1
- package/dist/assets/{personData-BOnk54P3.js → personData-BYPP3apv.js} +1 -1
- package/dist/assets/{personData-L8dJyb3X.js → personData-CRkmqebZ.js} +1 -1
- package/dist/assets/{pickerComponentPropsMetadata-CozVRRyR.js → pickerComponentPropsMetadata-D10GkMIO.js} +2 -2
- package/dist/assets/{popper-aiaZgC6t.js → popper-BVOCD5jc.js} +1 -1
- package/dist/assets/{preview-DXRUsonv.js → preview-D06dtFvI.js} +2 -2
- package/dist/assets/{preview-NdtsJkHc.js → preview-Dk8DzNBz.js} +1 -1
- package/dist/assets/{renderUiShell.stories-Pp6_Iqzc.js → renderUiShell.stories-CAw-IOS4.js} +4 -4
- package/dist/assets/{resolveComponentProps-TTQVZ4OZ.js → resolveComponentProps-DXQ8X87i.js} +1 -1
- package/dist/assets/{tableSortLabelClasses-C7INAE6Y.js → tableSortLabelClasses-CkKrbp1R.js} +1 -1
- package/dist/assets/{useAutocomplete-CD_GwhMI.js → useAutocomplete-BRetTkpF.js} +1 -1
- package/dist/assets/{useMobilePicker-CRiGjvfW.js → useMobilePicker-DZhX9dEQ.js} +1 -1
- package/dist/assets/{useOdysseyDateFields-D1TYF4ew.js → useOdysseyDateFields-DPSkeXJj.js} +1 -1
- package/dist/assets/{useScrollIndication-Dq_i6CX-.js → useScrollIndication-mYI-g6xa.js} +3 -3
- package/dist/assets/{useSlot-VN2O4BOA.js → useSlot-CvpE2t6D.js} +1 -1
- package/dist/assets/useThemeProps-BPvYx-mf.js +1 -0
- package/dist/assets/useThemeProps-DwvbKxez.js +1 -0
- package/dist/assets/utils-kUZVaD1e.js +1 -0
- package/dist/cjs/web-component/odysseyWebComponentVersion.generated.cjs +1 -1
- package/dist/cjs/web-component/odysseyWebComponentVersion.generated.cjs.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/iframe.html +1 -1
- package/dist/index.json +1 -1
- package/dist/project.json +1 -1
- package/dist/sb-addons/storybook-13/manager-bundle.js +1 -1
- package/dist/tsconfig.production.tsbuildinfo +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/dist/types/web-component/odysseyWebComponentVersion.generated.d.ts +1 -1
- package/package.json +8 -8
- package/CHANGELOG.md +0 -25
- package/dist/assets/AppTile _labs_.stories-B5BjKm0o.js +0 -136
- package/dist/assets/ArrowDropDown-Dnrg-0Q8.js +0 -1
- package/dist/assets/BaseMenuButton-DCwowxQ6.js +0 -1
- package/dist/assets/Box-B6KmU4_J.js +0 -1
- package/dist/assets/Box-B92Cdrku.js +0 -11
- package/dist/assets/Breadcrumbs-BGJJeoxM.js +0 -6
- package/dist/assets/Callout.stories-DVWATUoj.js +0 -105
- package/dist/assets/Card-DqLPNu4w.js +0 -8
- package/dist/assets/CheckboxGroup.stories-BbHNliqq.js +0 -92
- package/dist/assets/Custom Theming.stories-Kx3noLIn.js +0 -95
- package/dist/assets/DataTable _labs_-D_W9CY5T.js +0 -41
- package/dist/assets/DatePicker.stories-DldeVOlB.js +0 -133
- package/dist/assets/Design Tokens-BnlBB5OL.js +0 -4
- package/dist/assets/Dialog-BkOLgyLu.js +0 -1
- package/dist/assets/Drawer.stories-DpNTQVxG.js +0 -95
- package/dist/assets/EmptyState.stories-CkUF2dIR.js +0 -11
- package/dist/assets/Fieldset.stories-Wa9hG8Z0.js +0 -15
- package/dist/assets/Form.stories-Bc84FwlQ.js +0 -69
- package/dist/assets/GroupPicker _labs_.stories-D0PDtKKA.js +0 -33
- package/dist/assets/Icon _icons_.stories-S2muaIBP.js +0 -16
- package/dist/assets/Link-C5sM1_ZF.js +0 -11
- package/dist/assets/MenuButton-CGRa_Y2p.js +0 -9
- package/dist/assets/NativeSelect.stories-CYtg4GGs.js +0 -173
- package/dist/assets/PageTemplate _labs_-Bi3xwFV2.js +0 -8
- package/dist/assets/Pagination.stories-rN3x32X9.js +0 -17
- package/dist/assets/PasswordField.stories-BdnDY-tl.js +0 -129
- package/dist/assets/Picker _labs_.stories-D3FvB-m5.js +0 -18
- package/dist/assets/Popper-CSwIGEpk.js +0 -1
- package/dist/assets/RadioGroup-C_zn6OtS.js +0 -1
- package/dist/assets/RadioGroup-yPcOJn0w.js +0 -10
- package/dist/assets/ScreenReaderText.stories-CuVJmeWD.js +0 -8
- package/dist/assets/SearchField.stories-B_myC5_S.js +0 -37
- package/dist/assets/Toast.stories-BgAm1BNQ.js +0 -134
- package/dist/assets/TopNav.stories-z9mNMFB3.js +0 -13
- package/dist/assets/UserProfile.stories-C4EJFTV8.js +0 -14
- package/dist/assets/emotion-react-jsx-runtime.browser.esm-Cn-06VTs.js +0 -1
- package/dist/assets/index-6QUE-j0v.js +0 -1
- package/dist/assets/useThemeProps-BgDANuN6.js +0 -1
- package/dist/assets/useThemeProps-DJ3F4KkW.js +0 -1
- package/dist/assets/utils-BdcLUgCD.js +0 -1
- package/dist/index.cjs +0 -231
- package/dist/index.es.js +0 -3173
- package/dist/index.es.js.map +0 -1
- package/dist/index.iife.js +0 -9
- package/dist/index.iife.js.map +0 -1
- package/dist/index.mjs +0 -229
- package/dist/index.scss +0 -549
- package/dist/index.umd.cjs +0 -9
- package/dist/index.umd.cjs.map +0 -1
- package/dist/types/getTranslationServices.browser.test.d.ts +0 -1
- package/dist/types/getTranslationServices.browser.test.js +0 -88
- package/dist/types/getTranslationServices.browser.test.js.map +0 -1
- package/dist/types/getTranslationServices.d.ts +0 -91
- package/dist/types/getTranslationServices.js +0 -77
- package/dist/types/getTranslationServices.js.map +0 -1
- package/dist/types/getTypedObjectEntries.d.ts +0 -1
- package/dist/types/getTypedObjectEntries.js +0 -2
- package/dist/types/getTypedObjectEntries.js.map +0 -1
- package/dist/types/index.js +0 -3
- package/dist/types/index.js.map +0 -1
- package/dist/types/translationServices.types.d.ts +0 -2
- package/dist/types/translationServices.types.js +0 -34
- package/dist/types/translationServices.types.js.map +0 -1
- package/dist/types/tsconfig.tsbuildinfo +0 -1
- package/ok.yaml +0 -1
- package/src/getTranslationServices.browser.test.tsx +0 -173
- package/src/getTranslationServices.tsx +0 -286
- package/src/getTypedObjectEntries.ts +0 -3
- package/src/index.ts +0 -2
- package/src/translationServices.types.ts +0 -36
- package/src/tsconfig.json +0 -7
- package/tsconfig.json +0 -41
- package/vite.config.project.ts +0 -61
- package/vite.config.ts +0 -21
- package/vite.config.ts.bak +0 -33
- package/vitest-browser-setup.ts +0 -14
- package/vitest-jsdom-setup.ts +0 -13
- package/vitest-node-setup.ts +0 -13
- package/vitest.config.project.ts +0 -16
- package/vitest.config.ts +0 -27
- package/vitest.config.ts.bak +0 -27
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{f as cr}from"./index-BJMTVygn.js";import{O as ur}from"./OdysseyStorybookThemeDecorator-
|
|
1
|
+
import{f as cr}from"./index-BJMTVygn.js";import{O as ur}from"./OdysseyStorybookThemeDecorator-BuDiOG2V.js";import{f as m}from"./fieldComponentPropsMetaData-BqbNLw6V.js";import{u as S,h as d,K as rr}from"./OdysseyThemeProvider-Bh0Bu-2o.js";import{r as o}from"./index-NdkWRN8K.js";import{M as $}from"./Button-BEA5U6Tg.js";import{M as mr}from"./Field-DH3L8v09.js";import{d as gr}from"./Typography-Cz6D417Y.js";import{j as t}from"./jsx-runtime-CnH95YSl.js";import{M as hr}from"./MuiPropsContext-DhRylJZk.js";import{M as fr}from"./Tooltip-CsVWtVfL.js";import{I as br}from"./IconButton-5qShmnSr.js";import{M as xr,a as B}from"./Upload-CfzP_Muq.js";import"./index-BJTM6NaI.js";import"./OdysseyProvider-qIn9QVYS.js";import"./_commonjsHelpers-gnU0ypJ3.js";import"./BaseButton-DYZHKnV3.js";import"./Button-BzIwUmSM.js";import"./ButtonBase-BNqa2TMD.js";import"./useIsFocusVisible-DH0qxT5e.js";import"./assertThisInitialized-B9jnkVVz.js";import"./inheritsLoose-CJ6Ie9dp.js";import"./TransitionGroupContext-DAL84N7p.js";import"./Box-1mvP3NLW.js";import"./Box-BcMTQ_R2.js";import"./createBox-Dxawkfow.js";import"./List-CmjR1pNu.js";import"./ListItem-C0ExFtXb.js";import"./utils-iop7lDec.js";import"./useFormControl-BMISTZuX.js";import"./FormLabel-CiGre9wK.js";import"./isHostComponent-DVu5iVWx.js";import"./ScreenReaderText-CebALBsG.js";import"./visuallyHidden-Dan1xhjv.js";import"./FormHelperText-CsNAE1E3.js";import"./FieldHint-B3Jif_Up.js";import"./useUniqueId-Bsgqe1tm.js";import"./createUniqueId-ByTaVY63.js";import"./Typography-ClQ35Rr-.js";import"./Tooltip-Cq2rQGbD.js";import"./Grow-C8kUeGCY.js";import"./utils-kUZVaD1e.js";import"./index-B5xazMy1.js";import"./index-DieBXP3Z.js";import"./getReactElementRef-DsIevm5t.js";import"./resolveComponentProps-DXQ8X87i.js";import"./useControlled-NQulfz4l.js";import"./Popper-BARIxJrI.js";import"./popper-BVOCD5jc.js";import"./ownerDocument-DW-IO8s5.js";import"./Portal-C6D59xAE.js";/*!
|
|
2
2
|
* Copyright (c) 2022-present, Okta, Inc. and/or its affiliates. All rights reserved.
|
|
3
3
|
* The Okta software accompanied by this notice is provided pursuant to the Apache License, Version 2.0 (the "License.")
|
|
4
4
|
*
|
|
@@ -28,7 +28,7 @@ import{f as cr}from"./index-BJMTVygn.js";import{O as ur}from"./OdysseyStorybookT
|
|
|
28
28
|
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
29
29
|
*
|
|
30
30
|
* See the License for the specific language governing permissions and limitations under the License.
|
|
31
|
-
*/const
|
|
31
|
+
*/const At={component:ir,decorators:[ur],tags:["autodocs"],argTypes:{acceptedFileTypes:{description:"An array of file types the user is able to upload. See https://developer.mozilla.org/en-US/docs/Web/HTML/Attributes/accept#unique_file_type_specifiers for examples",table:{type:{summary:"string[]"}}},type:{options:H,control:{type:"radio"},description:"If `multiple`, the user can upload multiple files",table:{type:{summary:H.join(" | ")}}},errorMessage:m.errorMessage,hint:m.hint,id:m.id,isDisabled:m.isDisabled,isFullWidth:m.isFullWidth,label:{control:"text",description:"The label text for the FileUploader",table:{type:{summary:"string"}},type:{required:!0,name:"string"}},onChange:{description:"Callback fired when a file is uploaded or deleted",table:{type:{summary:"(files: File[]) => void"}},type:{name:"string",required:!0}},variant:{options:D,control:{type:"radio"},description:"How the component appears visually",table:{type:{summary:D.join(" | ")}},type:{name:"string",required:!0}}},args:{hint:"Maybe some helpful text about what format to use",label:"Upload your files here",onChange:cr()}},x={args:{variant:"button"}},C={args:{type:"multiple",variant:"dragAndDropWithIcon"}},F={args:{variant:"dragAndDrop"}},j={args:{variant:"dragAndDropWithIcon"}},v={args:{type:"multiple",variant:"dragAndDropWithIcon"}},I={args:{acceptedFileTypes:[".jpg",".png"],variant:"dragAndDropWithIcon"}};var L,z,P;x.parameters={...x.parameters,docs:{...(L=x.parameters)==null?void 0:L.docs,source:{originalSource:`{
|
|
32
32
|
args: {
|
|
33
33
|
variant: "button"
|
|
34
34
|
}
|
|
@@ -41,18 +41,18 @@ import{f as cr}from"./index-BJMTVygn.js";import{O as ur}from"./OdysseyStorybookT
|
|
|
41
41
|
args: {
|
|
42
42
|
variant: "dragAndDrop"
|
|
43
43
|
}
|
|
44
|
-
}`,...(T=(q=F.parameters)==null?void 0:q.docs)==null?void 0:T.source}}};var V,Z,
|
|
44
|
+
}`,...(T=(q=F.parameters)==null?void 0:q.docs)==null?void 0:T.source}}};var V,Z,K;j.parameters={...j.parameters,docs:{...(V=j.parameters)==null?void 0:V.docs,source:{originalSource:`{
|
|
45
45
|
args: {
|
|
46
46
|
variant: "dragAndDropWithIcon"
|
|
47
47
|
}
|
|
48
|
-
}`,...(
|
|
48
|
+
}`,...(K=(Z=j.parameters)==null?void 0:Z.docs)==null?void 0:K.source}}};var k,G,J;v.parameters={...v.parameters,docs:{...(k=v.parameters)==null?void 0:k.docs,source:{originalSource:`{
|
|
49
49
|
args: {
|
|
50
50
|
type: "multiple",
|
|
51
51
|
variant: "dragAndDropWithIcon"
|
|
52
52
|
}
|
|
53
|
-
}`,...(
|
|
53
|
+
}`,...(J=(G=v.parameters)==null?void 0:G.docs)==null?void 0:J.source}}};var Q,X,Y;I.parameters={...I.parameters,docs:{...(Q=I.parameters)==null?void 0:Q.docs,source:{originalSource:`{
|
|
54
54
|
args: {
|
|
55
55
|
acceptedFileTypes: [".jpg", ".png"],
|
|
56
56
|
variant: "dragAndDropWithIcon"
|
|
57
57
|
}
|
|
58
|
-
}`,...(Y=(X=I.parameters)==null?void 0:X.docs)==null?void 0:Y.source}}};const
|
|
58
|
+
}`,...(Y=(X=I.parameters)==null?void 0:X.docs)==null?void 0:Y.source}}};const wt=["ButtonOnly","DragAndDropWithIcon","DragAndDropWithoutIcon","SingleFileAllowed","MultipleFileAllowed","SpecificFileTypes"];export{x as ButtonOnly,C as DragAndDropWithIcon,F as DragAndDropWithoutIcon,v as MultipleFileAllowed,j as SingleFileAllowed,I as SpecificFileTypes,wt as __namedExportsOrder,At as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as e}from"./index-NdkWRN8K.js";import{j as r}from"./jsx-runtime-CnH95YSl.js";import{S as l}from"./OdysseyThemeProvider-
|
|
1
|
+
import{r as e}from"./index-NdkWRN8K.js";import{j as r}from"./jsx-runtime-CnH95YSl.js";import{S as l}from"./OdysseyThemeProvider-Bh0Bu-2o.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};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r}from"./index-NdkWRN8K.js";import{j as o}from"./jsx-runtime-CnH95YSl.js";import{S as l}from"./OdysseyThemeProvider-
|
|
1
|
+
import{r}from"./index-NdkWRN8K.js";import{j as o}from"./jsx-runtime-CnH95YSl.js";import{S as l}from"./OdysseyThemeProvider-Bh0Bu-2o.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};
|
package/dist/assets/{Form Field Accessibility-BCFouYXt.js → Form Field Accessibility-D5GmQTjo.js }
RENAMED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{j as e}from"./jsx-runtime-CnH95YSl.js";import{useMDXComponents as n}from"./index-BeeV6X6A.js";import"./index-
|
|
1
|
+
import{j as e}from"./jsx-runtime-CnH95YSl.js";import{useMDXComponents as n}from"./index-BeeV6X6A.js";import"./index-_dyfSX8u.js";import{M as o}from"./index-DLgQDw3r.js";import"./index-NdkWRN8K.js";import"./_commonjsHelpers-gnU0ypJ3.js";import"./preview-D06dtFvI.js";import"./iframe-Cf-Lpz6Y.js";import"./DocsRenderer-CFRXHY34-CCeAz_jE.js";import"./client-ByW5HbEz.js";import"./index-DieBXP3Z.js";import"./index-BJTM6NaI.js";import"./index-B5xazMy1.js";import"./index-CXQShRbs.js";import"./index-DrFu-skq.js";function s(i){const t={a:"a",code:"code",h2:"h2",h3:"h3",h4:"h4",p:"p",...n(),...i.components};return e.jsxs(e.Fragment,{children:[e.jsx(o,{}),`
|
|
2
2
|
`,e.jsx(t.h2,{id:"form-field-accessibility",children:"Form Field Accessibility"}),`
|
|
3
3
|
`,e.jsx(t.h3,{id:"placeholders",children:"Placeholders"}),`
|
|
4
4
|
`,e.jsx(t.p,{children:"Except for Search inputs, we advise against using placeholder text for inputs."}),`
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{u as T,h as t}from"./OdysseyThemeProvider-
|
|
1
|
+
import{u as T,h as t}from"./OdysseyThemeProvider-Bh0Bu-2o.js";import{r as S}from"./index-NdkWRN8K.js";import{b as k,d as F}from"./Typography-Cz6D417Y.js";import{u as M}from"./useUniqueId-Bsgqe1tm.js";import{j as e}from"./jsx-runtime-CnH95YSl.js";/*!
|
|
2
2
|
* Copyright (c) 2022-present, Okta, Inc. and/or its affiliates. All rights reserved.
|
|
3
3
|
* The Okta software accompanied by this notice is provided pursuant to the Apache License, Version 2.0 (the "License.")
|
|
4
4
|
*
|
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
import{j as e}from"./jsx-runtime-CnH95YSl.js";import{O as W}from"./OdysseyStorybookThemeDecorator-BuDiOG2V.js";import{f as E}from"./fieldComponentPropsMetaData-BqbNLw6V.js";import{f as c,a as d,b as u,M as A}from"./Form-iTx8DKdm.js";import{M as h}from"./Button-BEA5U6Tg.js";import{M as t}from"./TextField-BhK0y2Zt.js";import{M as l}from"./Fieldset-D7_59eeI.js";import{M as p}from"./Callout-FZxPpigF.js";import{M as z}from"./CheckboxGroup-Be66QML5.js";import{M as m}from"./Checkbox-DPv3Q9UW.js";import{a as D}from"./Typography-Cz6D417Y.js";import{M as B}from"./Link-BDoLypER.js";import"./index-NdkWRN8K.js";import"./_commonjsHelpers-gnU0ypJ3.js";import"./OdysseyThemeProvider-Bh0Bu-2o.js";import"./index-BJTM6NaI.js";import"./OdysseyProvider-qIn9QVYS.js";import"./useUniqueId-Bsgqe1tm.js";import"./createUniqueId-ByTaVY63.js";import"./BaseButton-DYZHKnV3.js";import"./MuiPropsContext-DhRylJZk.js";import"./Tooltip-CsVWtVfL.js";import"./Tooltip-Cq2rQGbD.js";import"./Grow-C8kUeGCY.js";import"./utils-kUZVaD1e.js";import"./inheritsLoose-CJ6Ie9dp.js";import"./index-B5xazMy1.js";import"./index-DieBXP3Z.js";import"./TransitionGroupContext-DAL84N7p.js";import"./useIsFocusVisible-DH0qxT5e.js";import"./getReactElementRef-DsIevm5t.js";import"./resolveComponentProps-DXQ8X87i.js";import"./isHostComponent-DVu5iVWx.js";import"./useControlled-NQulfz4l.js";import"./Popper-BARIxJrI.js";import"./popper-BVOCD5jc.js";import"./ownerDocument-DW-IO8s5.js";import"./Portal-C6D59xAE.js";import"./Button-BzIwUmSM.js";import"./ButtonBase-BNqa2TMD.js";import"./assertThisInitialized-B9jnkVVz.js";import"./Field-DH3L8v09.js";import"./Box-1mvP3NLW.js";import"./Box-BcMTQ_R2.js";import"./createBox-Dxawkfow.js";import"./List-CmjR1pNu.js";import"./ListItem-C0ExFtXb.js";import"./utils-iop7lDec.js";import"./useFormControl-BMISTZuX.js";import"./FormLabel-CiGre9wK.js";import"./ScreenReaderText-CebALBsG.js";import"./visuallyHidden-Dan1xhjv.js";import"./FormHelperText-CsNAE1E3.js";import"./FieldHint-B3Jif_Up.js";import"./inputUtils-Dbi8XkA6.js";import"./InputBase-DeB4_faH.js";import"./ownerWindow-HkKU3E4x.js";import"./debounce-Be36O1Ab.js";import"./InputAdornment-CdR3XT6f.js";import"./Typography-ClQ35Rr-.js";import"./AlertTitle-q6ff_Zkl.js";import"./useSlot-CvpE2t6D.js";import"./createSvgIcon-ClUWwDzL.js";import"./Close-OXBt1nIe.js";import"./IconButton-5qShmnSr.js";import"./Paper-D-_O-EjU.js";import"./FormGroup-HFkGZ983.js";import"./Hint-DoJneNg9.js";import"./FormControlLabel-0BBemR80.js";import"./Stack-B7OGvu7C.js";import"./createStyled-D6bTcpHC.js";import"./useThemeProps-DwvbKxez.js";import"./Checkbox-vZwuXtzm.js";import"./SwitchBase-CefEM0OA.js";import"./Link-DNIf0luC.js";import"./ExternalLink-D0l1c5Cz.js";const nt={component:A,decorators:[W],tags:["autodocs"],argTypes:{title:{control:"text",description:"The title of the Form",table:{type:{summary:"string"}}},description:{control:"text",description:"A supplementary description",table:{type:{summary:"string"}}},children:{control:"object",description:"Field or FieldSet components within the Form",table:{type:{summary:"ReactElement | Array<ReactElement>"}},type:{required:!0,name:"other",value:"ReactElement | Array<ReactElement>"}},alert:{description:"A Callout indicating a Form-wide error or status update",table:{type:{summary:"ReactElement<typeof Callout>"}}},autoCompleteType:{options:u,control:{type:"radio"},description:"Indicates whether input elements can have their values automatically completed by the browser",table:{type:{summary:u.join(" | ")}}},isFullWidth:E.isFullWidth,name:{control:"text",description:"The name of the form. The value must not be an empty string and must be unique among the form elements",table:{type:{summary:"string"}},type:{required:!0,name:"string"}},noValidate:{control:"boolean",description:"This Boolean attribute indicates that the form shouldn't be validated when submitted",table:{type:{summary:"boolean"},defaultValue:{summary:"false"}}},encodingType:{options:d,control:{type:"radio"},description:"If the method attribute is set to 'post', the MIME type of the form submission",table:{type:{summary:d.join(" | ")}}},method:{options:c,control:{type:"radio"},description:"The HTTP method to submit the form with",table:{type:{summary:c.join(" | ")}}},target:{control:"text",description:"Indicates where to display the response after submitting the form",table:{type:{summary:"string"}}},formActions:{control:"object",description:"One or more Buttons that conclude the form.",table:{type:{summary:"ReactElement<typeof Button> | Array<ReactElement<typeof Button>>"}}},id:{control:"text",description:"Defines a unique identifier (ID) for the Form",table:{type:{summary:"string"}}}},args:{title:"Docking registration",children:e.jsxs(e.Fragment,{children:[e.jsx(t,{label:"Vessel name"}),e.jsx(t,{isMultiline:!0,label:"Reason for visit"})]}),formActions:e.jsxs(e.Fragment,{children:[e.jsx(h,{label:"Reset",variant:"secondary"}),e.jsx(h,{label:"Submit",type:"submit",variant:"primary"})]})}},r={args:{children:e.jsxs(e.Fragment,{children:[e.jsx(t,{label:"Vessel name"}),e.jsx(t,{isMultiline:!0,label:"Reason for visit"})]})}},i={args:{children:e.jsxs(e.Fragment,{children:[e.jsxs(l,{legend:"Vessel information",name:"vessel",children:[e.jsx(t,{label:"Vessel name"}),e.jsx(t,{isMultiline:!0,label:"Reason for visit"})]}),e.jsxs(l,{legend:"Passenger information",name:"passengers",children:[e.jsx(t,{label:"Number of passengers"}),e.jsx(t,{label:"Captain's name"})]})]})}},o={args:{description:"Register your ship before docking with the station."}},s={args:{alert:e.jsx(p,{role:"alert",severity:"error",title:"Something went wrong",children:"Please try your request again later."})}},a={args:{isFullWidth:!0,children:e.jsxs(e.Fragment,{children:[e.jsx(t,{isFullWidth:!0,label:"Vessel name"}),e.jsx(t,{isFullWidth:!0,isMultiline:!0,label:"Reason for visit"})]})}},n={args:{alert:e.jsx(p,{role:"alert",severity:"error",title:"Something went wrong",children:"Please try your request again later."}),children:e.jsxs(e.Fragment,{children:[e.jsxs(l,{description:"This information is used to verify vessel ownership and origin.",legend:"Vessel information",name:"vessel",children:[e.jsx(t,{errorMessage:"This field is required.",label:"Vessel name"}),e.jsxs(z,{isRequired:!0,label:"Systems check",children:[e.jsx(m,{label:"Life support",name:"life-support",value:"life-support"}),e.jsx(m,{label:"Warp core containment",name:"warp-core",value:"warp-core"}),e.jsx(m,{label:"Cetacean ops",name:"cetacean-ops",value:"cetacean-ops"})]})]}),e.jsxs(l,{alert:e.jsxs(p,{role:"alert",severity:"error",title:"Standby for boarding",children:[e.jsx(D,{children:"There is an issue with the fuel mixture ratios. Reconfigure the fuel mixture and perform the safety checks again."}),e.jsx(B,{href:"#",variant:"monochrome",children:"Visit fueling console"})]}),description:"This information will be used to track your passengers' whereabouts.",legend:"Passenger information",name:"passengers",children:[e.jsx(t,{hint:"Specify your destination within the Sol system.",label:"Number of passengers"}),e.jsx(t,{label:"Captain's name"})]})]}),description:"Register your ship before docking with the station."}};var g,f,b;r.parameters={...r.parameters,docs:{...(g=r.parameters)==null?void 0:g.docs,source:{originalSource:`{
|
|
2
|
+
args: {
|
|
3
|
+
children: <>
|
|
4
|
+
<TextField label="Vessel name" />
|
|
5
|
+
<TextField isMultiline label="Reason for visit" />
|
|
6
|
+
</>
|
|
7
|
+
}
|
|
8
|
+
}`,...(b=(f=r.parameters)==null?void 0:f.docs)==null?void 0:b.source}}};var y,x,F;i.parameters={...i.parameters,docs:{...(y=i.parameters)==null?void 0:y.docs,source:{originalSource:`{
|
|
9
|
+
args: {
|
|
10
|
+
children: <>
|
|
11
|
+
<Fieldset legend="Vessel information" name="vessel">
|
|
12
|
+
<TextField label="Vessel name" />
|
|
13
|
+
<TextField isMultiline label="Reason for visit" />
|
|
14
|
+
</Fieldset>
|
|
15
|
+
<Fieldset legend="Passenger information" name="passengers">
|
|
16
|
+
<TextField label="Number of passengers" />
|
|
17
|
+
<TextField label="Captain's name" />
|
|
18
|
+
</Fieldset>
|
|
19
|
+
</>
|
|
20
|
+
}
|
|
21
|
+
}`,...(F=(x=i.parameters)==null?void 0:x.docs)==null?void 0:F.source}}};var j,v,w;o.parameters={...o.parameters,docs:{...(j=o.parameters)==null?void 0:j.docs,source:{originalSource:`{
|
|
22
|
+
args: {
|
|
23
|
+
description: "Register your ship before docking with the station."
|
|
24
|
+
}
|
|
25
|
+
}`,...(w=(v=o.parameters)==null?void 0:v.docs)==null?void 0:w.source}}};var T,M,k;s.parameters={...s.parameters,docs:{...(T=s.parameters)==null?void 0:T.docs,source:{originalSource:`{
|
|
26
|
+
args: {
|
|
27
|
+
alert: <Callout role="alert" severity="error" title="Something went wrong">
|
|
28
|
+
Please try your request again later.
|
|
29
|
+
</Callout>
|
|
30
|
+
}
|
|
31
|
+
}`,...(k=(M=s.parameters)==null?void 0:M.docs)==null?void 0:k.source}}};var C,S,R;a.parameters={...a.parameters,docs:{...(C=a.parameters)==null?void 0:C.docs,source:{originalSource:`{
|
|
32
|
+
args: {
|
|
33
|
+
isFullWidth: true,
|
|
34
|
+
children: <>
|
|
35
|
+
<TextField isFullWidth label="Vessel name" />
|
|
36
|
+
<TextField isFullWidth isMultiline label="Reason for visit" />
|
|
37
|
+
</>
|
|
38
|
+
}
|
|
39
|
+
}`,...(R=(S=a.parameters)==null?void 0:S.docs)==null?void 0:R.source}}};var V,P,q;n.parameters={...n.parameters,docs:{...(V=n.parameters)==null?void 0:V.docs,source:{originalSource:`{
|
|
40
|
+
args: {
|
|
41
|
+
alert: <Callout role="alert" severity="error" title="Something went wrong">
|
|
42
|
+
Please try your request again later.
|
|
43
|
+
</Callout>,
|
|
44
|
+
children: <>
|
|
45
|
+
<Fieldset description="This information is used to verify vessel ownership and origin." legend="Vessel information" name="vessel">
|
|
46
|
+
<TextField errorMessage="This field is required." label="Vessel name" />
|
|
47
|
+
<CheckboxGroup isRequired label="Systems check">
|
|
48
|
+
<Checkbox label="Life support" name="life-support" value="life-support" />
|
|
49
|
+
<Checkbox label="Warp core containment" name="warp-core" value="warp-core" />
|
|
50
|
+
<Checkbox label="Cetacean ops" name="cetacean-ops" value="cetacean-ops" />
|
|
51
|
+
</CheckboxGroup>
|
|
52
|
+
</Fieldset>
|
|
53
|
+
<Fieldset alert={<Callout role="alert" severity="error" title="Standby for boarding">
|
|
54
|
+
<Paragraph>
|
|
55
|
+
There is an issue with the fuel mixture ratios. Reconfigure the
|
|
56
|
+
fuel mixture and perform the safety checks again.
|
|
57
|
+
</Paragraph>
|
|
58
|
+
|
|
59
|
+
<Link href="#" variant="monochrome">
|
|
60
|
+
Visit fueling console
|
|
61
|
+
</Link>
|
|
62
|
+
</Callout>} description="This information will be used to track your passengers' whereabouts." legend="Passenger information" name="passengers">
|
|
63
|
+
<TextField hint="Specify your destination within the Sol system." label="Number of passengers" />
|
|
64
|
+
<TextField label="Captain's name" />
|
|
65
|
+
</Fieldset>
|
|
66
|
+
</>,
|
|
67
|
+
description: "Register your ship before docking with the station."
|
|
68
|
+
}
|
|
69
|
+
}`,...(q=(P=n.parameters)==null?void 0:P.docs)==null?void 0:q.source}}};const lt=["Simple","Fieldsets","Description","Alert","FullWidth","KitchenSink"];export{s as Alert,o as Description,i as Fieldsets,a as FullWidth,n as KitchenSink,r as Simple,lt as __namedExportsOrder,nt as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{c as E,_ as S,b as d,d as v,s as R,e as k,f as A,j as M,k as t}from"./OdysseyThemeProvider-
|
|
1
|
+
import{c as E,_ as S,b as d,d as v,s as R,e as k,f as A,j as M,k as t}from"./OdysseyThemeProvider-Bh0Bu-2o.js";import{r as L}from"./index-NdkWRN8K.js";import{u as w,f as U}from"./useFormControl-BMISTZuX.js";import{j as p}from"./jsx-runtime-CnH95YSl.js";import{T as F}from"./Typography-ClQ35Rr-.js";import{S as W}from"./Stack-B7OGvu7C.js";const z=["checked","className","componentsProps","control","disabled","disableTypography","inputRef","label","labelPlacement","name","onChange","required","slotProps","value"],H=o=>{const{classes:e,disabled:l,labelPlacement:n,error:a,required:r}=o,m={root:["root",l&&"disabled",`labelPlacement${k(n)}`,a&&"error",r&&"required"],label:["label",l&&"disabled"],asterisk:["asterisk",a&&"error"]};return A(m,M,e)},I=R("label",{name:"MuiFormControlLabel",slot:"Root",overridesResolver:(o,e)=>{const{ownerState:l}=o;return[{[`& .${t.label}`]:e.label},e.root,e[`labelPlacement${k(l.labelPlacement)}`]]}})(({theme:o,ownerState:e})=>d({display:"inline-flex",alignItems:"center",cursor:"pointer",verticalAlign:"middle",WebkitTapHighlightColor:"transparent",marginLeft:-11,marginRight:16,[`&.${t.disabled}`]:{cursor:"default"}},e.labelPlacement==="start"&&{flexDirection:"row-reverse",marginLeft:16,marginRight:-11},e.labelPlacement==="top"&&{flexDirection:"column-reverse",marginLeft:16},e.labelPlacement==="bottom"&&{flexDirection:"column",marginLeft:16},{[`& .${t.label}`]:{[`&.${t.disabled}`]:{color:(o.vars||o).palette.text.disabled}}})),B=R("span",{name:"MuiFormControlLabel",slot:"Asterisk",overridesResolver:(o,e)=>e.asterisk})(({theme:o})=>({[`&.${t.error}`]:{color:(o.vars||o).palette.error.main}})),X=L.forwardRef(function(e,l){var n,a;const r=E({props:e,name:"MuiFormControlLabel"}),{className:m,componentsProps:j={},control:i,disabled:P,disableTypography:$,label:q,labelPlacement:N="end",required:C,slotProps:_={}}=r,T=S(r,z),b=w(),y=(n=P??i.props.disabled)!=null?n:b==null?void 0:b.disabled,u=C??i.props.required,x={disabled:y,required:u};["checked","name","onChange","value","inputRef"].forEach(c=>{typeof i.props[c]>"u"&&typeof r[c]<"u"&&(x[c]=r[c])});const D=U({props:r,muiFormControl:b,states:["error"]}),f=d({},r,{disabled:y,labelPlacement:N,required:u,error:D.error}),g=H(f),h=(a=_.typography)!=null?a:j.typography;let s=q;return s!=null&&s.type!==F&&!$&&(s=p.jsx(F,d({component:"span"},h,{className:v(g.label,h==null?void 0:h.className),children:s}))),p.jsxs(I,d({className:v(g.root,m),ownerState:f,ref:l},T,{children:[L.cloneElement(i,x),u?p.jsxs(W,{display:"block",children:[s,p.jsxs(B,{ownerState:f,"aria-hidden":!0,className:g.asterisk,children:[" ","*"]})]}):s]}))});export{X as F};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{c as u,_ as f,b as e,s as w,d as x,f as d,y as F}from"./OdysseyThemeProvider-
|
|
1
|
+
import{c as u,_ as f,b as e,s as w,d as x,f as d,y as F}from"./OdysseyThemeProvider-Bh0Bu-2o.js";import{r as C}from"./index-NdkWRN8K.js";import{u as G,f as R}from"./useFormControl-BMISTZuX.js";import{j}from"./jsx-runtime-CnH95YSl.js";const y=["className","row"],_=o=>{const{classes:r,row:t,error:s}=o;return d({root:["root",t&&"row",s&&"error"]},F,r)},v=w("div",{name:"MuiFormGroup",slot:"Root",overridesResolver:(o,r)=>{const{ownerState:t}=o;return[r.root,t.row&&r.row]}})(({ownerState:o})=>e({display:"flex",flexDirection:"column",flexWrap:"wrap"},o.row&&{flexDirection:"row"})),h=C.forwardRef(function(r,t){const s=u({props:r,name:"MuiFormGroup"}),{className:a,row:c=!1}=s,l=f(s,y),m=G(),p=R({props:s,muiFormControl:m,states:["error"]}),n=e({},s,{row:c,error:p.error}),i=_(n);return j.jsx(v,e({className:x(i.root,a),ownerState:n,ref:t},l))});export{h as F};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{
|
|
1
|
+
import{W as v,V as z,c as b,_ as F,b as c,s as T,d as C,e as x,f as H}from"./OdysseyThemeProvider-Bh0Bu-2o.js";import{r as q}from"./index-NdkWRN8K.js";import{u as R,f as j}from"./useFormControl-BMISTZuX.js";import{j as p}from"./jsx-runtime-CnH95YSl.js";function y(e){return z("MuiFormHelperText",e)}const f=v("MuiFormHelperText",["root","error","disabled","sizeSmall","sizeMedium","contained","focused","filled","required"]);var u;const M=["children","className","component","disabled","error","filled","focused","margin","required","variant"],_=e=>{const{classes:r,contained:s,size:t,disabled:a,error:l,filled:i,focused:n,required:d}=e,o={root:["root",a&&"disabled",l&&"error",t&&`size${x(t)}`,s&&"contained",n&&"focused",i&&"filled",d&&"required"]};return H(o,y,r)},N=T("p",{name:"MuiFormHelperText",slot:"Root",overridesResolver:(e,r)=>{const{ownerState:s}=e;return[r.root,s.size&&r[`size${x(s.size)}`],s.contained&&r.contained,s.filled&&r.filled]}})(({theme:e,ownerState:r})=>c({color:(e.vars||e).palette.text.secondary},e.typography.caption,{textAlign:"left",marginTop:3,marginRight:0,marginBottom:0,marginLeft:0,[`&.${f.disabled}`]:{color:(e.vars||e).palette.text.disabled},[`&.${f.error}`]:{color:(e.vars||e).palette.error.main}},r.size==="small"&&{marginTop:4},r.contained&&{marginLeft:14,marginRight:14})),S=q.forwardRef(function(r,s){const t=b({props:r,name:"MuiFormHelperText"}),{children:a,className:l,component:i="p"}=t,n=F(t,M),d=R(),o=j({props:t,muiFormControl:d,states:["variant","size","disabled","error","filled","focused","required"]}),m=c({},t,{component:i,contained:o.variant==="filled"||o.variant==="outlined",variant:o.variant,size:o.size,disabled:o.disabled,error:o.error,filled:o.filled,focused:o.focused,required:o.required}),g=_(m);return p.jsx(N,c({as:i,ownerState:m,className:C(g.root,l),ref:s},n,{children:a===" "?u||(u=p.jsx("span",{className:"notranslate",children:""})):a}))});export{S as F,f};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{c as x,_ as v,b as i,s as b,d as F,e as L,f as y,w as C,x as t}from"./OdysseyThemeProvider-
|
|
1
|
+
import{c as x,_ as v,b as i,s as b,d as F,e as L,f as y,w as C,x as t}from"./OdysseyThemeProvider-Bh0Bu-2o.js";import{r as q}from"./index-NdkWRN8K.js";import{u as k,f as R}from"./useFormControl-BMISTZuX.js";import{j as m}from"./jsx-runtime-CnH95YSl.js";const j=["children","className","color","component","disabled","error","filled","focused","required"],$=r=>{const{classes:o,color:c,focused:s,disabled:d,error:a,filled:l,required:n}=r,p={root:["root",`color${L(c)}`,d&&"disabled",a&&"error",l&&"filled",s&&"focused",n&&"required"],asterisk:["asterisk",a&&"error"]};return y(p,C,o)},g=b("label",{name:"MuiFormLabel",slot:"Root",overridesResolver:({ownerState:r},o)=>i({},o.root,r.color==="secondary"&&o.colorSecondary,r.filled&&o.filled)})(({theme:r,ownerState:o})=>i({color:(r.vars||r).palette.text.secondary},r.typography.body1,{lineHeight:"1.4375em",padding:0,position:"relative",[`&.${t.focused}`]:{color:(r.vars||r).palette[o.color].main},[`&.${t.disabled}`]:{color:(r.vars||r).palette.text.disabled},[`&.${t.error}`]:{color:(r.vars||r).palette.error.main}})),N=b("span",{name:"MuiFormLabel",slot:"Asterisk",overridesResolver:(r,o)=>o.asterisk})(({theme:r})=>({[`&.${t.error}`]:{color:(r.vars||r).palette.error.main}})),E=q.forwardRef(function(o,c){const s=x({props:o,name:"MuiFormLabel"}),{children:d,className:a,component:l="label"}=s,n=v(s,j),p=k(),e=R({props:s,muiFormControl:p,states:["color","required","focused","disabled","error","filled"]}),u=i({},s,{color:e.color||"primary",component:l,disabled:e.disabled,error:e.error,filled:e.filled,focused:e.focused,required:e.required}),f=$(u);return m.jsxs(g,i({as:l,ownerState:u,className:F(f.root,a),ref:c},n,{children:[d,e.required&&m.jsxs(N,{ownerState:u,"aria-hidden":!0,className:f.asterisk,children:[" ","*"]})]}))});export{E as F};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{r as t}from"./index-NdkWRN8K.js";import{u as l,M as s}from"./OdysseyProvider-
|
|
1
|
+
import{r as t}from"./index-NdkWRN8K.js";import{u as l,M as s}from"./OdysseyProvider-qIn9QVYS.js";import{j as a}from"./jsx-runtime-CnH95YSl.js";/*!
|
|
2
2
|
* Copyright (c) 2025-present, Okta, Inc. and/or its affiliates. All rights reserved.
|
|
3
3
|
* The Okta software accompanied by this notice is provided pursuant to the Apache License, Version 2.0 (the "License.")
|
|
4
4
|
*
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{j as e}from"./jsx-runtime-CnH95YSl.js";import{useMDXComponents as i}from"./index-BeeV6X6A.js";import{M as t}from"./index-
|
|
1
|
+
import{j as e}from"./jsx-runtime-CnH95YSl.js";import{useMDXComponents as i}from"./index-BeeV6X6A.js";import{M as t}from"./index-DLgQDw3r.js";import"./index-NdkWRN8K.js";import"./_commonjsHelpers-gnU0ypJ3.js";import"./iframe-Cf-Lpz6Y.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
2
|
`,e.jsx(n.h1,{id:"generating-odyssey-icons",children:"Generating Odyssey Icons"}),`
|
|
3
3
|
`,e.jsx(n.h2,{id:"tldr",children:"tl;dr"}),`
|
|
4
4
|
`,e.jsxs(n.ol,{children:[`
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as e}from"./index-NdkWRN8K.js";import{j as o}from"./jsx-runtime-CnH95YSl.js";import{S as l}from"./OdysseyThemeProvider-
|
|
1
|
+
import{r as e}from"./index-NdkWRN8K.js";import{j as o}from"./jsx-runtime-CnH95YSl.js";import{S as l}from"./OdysseyThemeProvider-Bh0Bu-2o.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};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as c}from"./index-NdkWRN8K.js";import{j as r}from"./jsx-runtime-CnH95YSl.js";import{S as e}from"./OdysseyThemeProvider-
|
|
1
|
+
import{r as c}from"./index-NdkWRN8K.js";import{j as r}from"./jsx-runtime-CnH95YSl.js";import{S as e}from"./OdysseyThemeProvider-Bh0Bu-2o.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};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r}from"./index-NdkWRN8K.js";import{j as o}from"./jsx-runtime-CnH95YSl.js";import{S as m}from"./OdysseyThemeProvider-
|
|
1
|
+
import{r}from"./index-NdkWRN8K.js";import{j as o}from"./jsx-runtime-CnH95YSl.js";import{S as m}from"./OdysseyThemeProvider-Bh0Bu-2o.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{O as W}from"./OdysseyStorybookThemeDecorator-BuDiOG2V.js";import{r as c}from"./index-NdkWRN8K.js";import{M as E}from"./Field-DH3L8v09.js";import{W as q,V as K,c as H,_,b as f,s as R,d as $,f as ee,u as oe}from"./OdysseyThemeProvider-Bh0Bu-2o.js";import{M as te}from"./Tag-DwH0t814.js";import{c as ae}from"./Typography-Cz6D417Y.js";import{j as t}from"./jsx-runtime-CnH95YSl.js";import{B as g}from"./Box-BcMTQ_R2.js";import{c as re}from"./createSvgIcon-ClUWwDzL.js";import{u as se}from"./useSlot-CvpE2t6D.js";import{M as ie}from"./Grid-EpV3TL4a.js";import{I as ne}from"./InputBase-DeB4_faH.js";import{A as le}from"./Autocomplete-CxtGbb8j.js";import{M as pe}from"./User-CyxEAfVT.js";import{M as ce}from"./Group-mTVRC79V.js";import"./index-BJTM6NaI.js";import"./OdysseyProvider-qIn9QVYS.js";import"./_commonjsHelpers-gnU0ypJ3.js";import"./Box-1mvP3NLW.js";import"./List-CmjR1pNu.js";import"./ListItem-C0ExFtXb.js";import"./utils-iop7lDec.js";import"./useFormControl-BMISTZuX.js";import"./FormLabel-CiGre9wK.js";import"./useIsFocusVisible-DH0qxT5e.js";import"./isHostComponent-DVu5iVWx.js";import"./ButtonBase-BNqa2TMD.js";import"./assertThisInitialized-B9jnkVVz.js";import"./inheritsLoose-CJ6Ie9dp.js";import"./TransitionGroupContext-DAL84N7p.js";import"./ScreenReaderText-CebALBsG.js";import"./visuallyHidden-Dan1xhjv.js";import"./FormHelperText-CsNAE1E3.js";import"./FieldHint-B3Jif_Up.js";import"./useUniqueId-Bsgqe1tm.js";import"./createUniqueId-ByTaVY63.js";import"./MuiPropsContext-DhRylJZk.js";import"./Chip-CXnMieIl.js";import"./Typography-ClQ35Rr-.js";import"./createBox-Dxawkfow.js";import"./resolveComponentProps-DXQ8X87i.js";import"./ownerWindow-HkKU3E4x.js";import"./ownerDocument-DW-IO8s5.js";import"./debounce-Be36O1Ab.js";import"./ArrowDropDown-DdemyKZU.js";import"./Close-OXBt1nIe.js";import"./Paper-D-_O-EjU.js";import"./Popper-BARIxJrI.js";import"./popper-BVOCD5jc.js";import"./Portal-C6D59xAE.js";import"./index-B5xazMy1.js";import"./index-DieBXP3Z.js";import"./getReactElementRef-DsIevm5t.js";import"./useControlled-NQulfz4l.js";import"./IconButton-5qShmnSr.js";import"./ListSubheader-CQJAAOsd.js";const me=re(t.jsx("path",{d:"M12 12c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm0 2c-2.67 0-8 1.34-8 4v2h16v-2c0-2.66-5.33-4-8-4z"}),"Person");function ue(e){return K("MuiAvatar",e)}const U=q("MuiAvatar",["root","colorDefault","circular","rounded","square","img","fallback"]),de=["alt","children","className","component","slots","slotProps","imgProps","sizes","src","srcSet","variant"],ge=e=>{const{classes:a,variant:r,colorDefault:s}=e;return ee({root:["root",r,s&&"colorDefault"],img:["img"],fallback:["fallback"]},ue,a)},ye=R("div",{name:"MuiAvatar",slot:"Root",overridesResolver:(e,a)=>{const{ownerState:r}=e;return[a.root,a[r.variant],r.colorDefault&&a.colorDefault]}})(({theme:e})=>({position:"relative",display:"flex",alignItems:"center",justifyContent:"center",flexShrink:0,width:40,height:40,fontFamily:e.typography.fontFamily,fontSize:e.typography.pxToRem(20),lineHeight:1,borderRadius:"50%",overflow:"hidden",userSelect:"none",variants:[{props:{variant:"rounded"},style:{borderRadius:(e.vars||e).shape.borderRadius}},{props:{variant:"square"},style:{borderRadius:0}},{props:{colorDefault:!0},style:f({color:(e.vars||e).palette.background.default},e.vars?{backgroundColor:e.vars.palette.Avatar.defaultBg}:f({backgroundColor:e.palette.grey[400]},e.applyStyles("dark",{backgroundColor:e.palette.grey[600]})))}]})),fe=R("img",{name:"MuiAvatar",slot:"Img",overridesResolver:(e,a)=>a.img})({width:"100%",height:"100%",textAlign:"center",objectFit:"cover",color:"transparent",textIndent:1e4}),be=R(me,{name:"MuiAvatar",slot:"Fallback",overridesResolver:(e,a)=>a.fallback})({width:"75%",height:"75%"});function he({crossOrigin:e,referrerPolicy:a,src:r,srcSet:s}){const[p,m]=c.useState(!1);return c.useEffect(()=>{if(!r&&!s)return;m(!1);let d=!0;const i=new Image;return i.onload=()=>{d&&m("loaded")},i.onerror=()=>{d&&m("error")},i.crossOrigin=e,i.referrerPolicy=a,i.src=r,s&&(i.srcset=s),()=>{d=!1}},[e,a,r,s]),p}const V=c.forwardRef(function(a,r){const s=H({props:a,name:"MuiAvatar"}),{alt:p,children:m,className:d,component:i="div",slots:T={},slotProps:w={},imgProps:x,sizes:j,src:b,srcSet:l,variant:B="circular"}=s,S=_(s,de);let y=null;const D=he(f({},x,{src:b,srcSet:l})),C=b||l,n=C&&D!=="error",o=f({},s,{colorDefault:!n,component:i,variant:B}),u=ge(o),[h,A]=se("img",{className:u.img,elementType:fe,externalForwardedProps:{slots:T,slotProps:{img:f({},x,w.img)}},additionalProps:{alt:p,src:b,srcSet:l,sizes:j},ownerState:o});return n?y=t.jsx(h,f({},A)):m||m===0?y=m:C&&p?y=p[0]:y=t.jsx(be,{ownerState:o,className:u.fallback}),t.jsx(ye,f({as:i,ownerState:o,className:$(u.root,d),ref:r},S,{children:y}))}),z=16,Z=24,Ae=({hasMultipleChoices:e,isCustomValueAllowed:a,isDisabled:r,isLoading:s,isOptional:p=!1,isReadOnly:m,hint:d,label:i,onChange:T,onInputChange:w,options:x,value:j,testId:b})=>{const l=oe(),B=c.useCallback((n,o)=>n.id===o.id,[]),S=c.useCallback(n=>n.name,[]),y=c.useCallback((n,o)=>c.createElement("li",{...n,key:o.id},t.jsxs(g,{sx:{alignItems:"top",display:"flex",flexDirection:"row"},children:[t.jsx(g,{sx:{paddingRight:l.Spacing2},children:t.jsx(V,{alt:o.name,src:o.logo,sx:{[`.${U.fallback}`]:{visibility:"hidden"},background:"transparent",height:Z,width:Z}})}),t.jsxs(g,{children:[o.name,t.jsx(ae,{children:o.description}),t.jsxs(g,{sx:{display:"flex",flexDirection:"row",paddingTop:l.Spacing1},children:[typeof o.usersCount=="number"&&t.jsxs(g,{sx:{display:"flex",flexDirection:"row",paddingRight:l.Spacing4},children:[t.jsx(pe,{}),o.usersCount]}),typeof o.appsCount=="number"&&t.jsxs(g,{sx:{display:"flex",flexDirection:"row",paddingRight:l.Spacing4},children:[t.jsx(ie,{}),o.appsCount]}),typeof o.groupPushMappingsCount=="number"&&t.jsxs(g,{sx:{display:"flex",flexDirection:"row"},children:[t.jsx(ce,{}),o.groupPushMappingsCount]})]})]})]})),[l]),D=c.useCallback((n,o)=>n.map((u,h)=>{const{key:A,onDelete:Y}=o({index:h});return t.jsx(g,{sx:{margin:l.Spacing1},children:t.jsx(te,{icon:t.jsx(V,{alt:u.name,src:u.logo,sx:{[`.${U.fallback}`]:{visibility:"hidden"},background:"transparent",height:z,width:z}}),label:u.name,onRemove:Y})},A)}),[l]),C=c.useCallback(({InputLabelProps:n,InputProps:o,...u})=>t.jsx(E,{fieldType:"single",hasVisibleLabel:!0,hint:d,id:n.htmlFor,isOptional:p,label:i,renderFieldComponent:({ariaDescribedBy:h,id:A})=>t.jsx(ne,{...u,...o,"aria-describedby":h,id:A,required:!p})}),[d,p,i]);return t.jsx(le,{"aria-disabled":r,"data-se":b,disabled:r,filterSelectedOptions:!0,freeSolo:a,getOptionLabel:S,isOptionEqualToValue:B,loading:s,multiple:e,onChange:T,onInputChange:w,options:x,readOnly:m,renderInput:C,renderOption:y,renderTags:D,value:j})},ve=c.memo(Ae),v="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACQAAAAkCAQAAABLCVATAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAABgJJREFUGBkFwXmQlnUBAODn977vd+yyy67LcsmxgIQHC4MiaiZiTjoYIOZopU1TUzmVjUozjjpZ6mj90dAfmk6TDGlml1dUJCozkhAVggMlh1y660IruyzLsce33/W+PU/YI3LOegUAAKDTDuOwxlMAAABABABggcfcpwhYIw/uMQlwo7VWAACQAGQCXGadxZhti2lmu00OXOBp79trhgfNcJfHPAkAhD0iZz2v2RmZxjuy3wNOmQAA4JQJgL+7HgCIgGCc+a4x1mMYMAEAABMAdbsAACIgwyydypMkQKakJlQdt9Vh/YyqAQSTMwBAAkA6Ofll/qKsGDCi1TX2/7x3Q37YoGbF6tQbNhzRpVEgim6OH688EgCQZLQUXyGnb+LhRXlBquJqYf2n1s3ZtcMISHS4trP/wltf2ySIZOfVHwjTDVhkkychfKAcvV7vUkBJoi52nWuf333XvLsa73wnGQAFiywY3LRyyeoTf37FkBioSQy7zVsk0bjsyEENKkikCuLfTXqi59C5NVt/3DVuTA0E3ba6ZNu2az83yxXNLw+JIUGTm2yWJVkp96XLt/1HDpm6RVYeapz33l/2zBhqrIsAlJzWv3TukfH719x9zPMyAfjY6zIiafSP5iWTpKi4wOdfHl67cf6WC880ZmIBmQyRyIhDc/+4sKf3ktU3GgUya22BaMQWI5+0yaSazNwQf63+9e5H/ycWpAoudYNlJgkIxhzoqGy3sf3W89VgUI86RJkGFzUeFKubmF51bPyyo08fLeZRsbR6/k1ZMSkmxbS4vD+HYCTa9Zl0Y9PhS6sVaLMQiEJrmFs7nCGI3zh9364ZPUkqGHPV6Kxb628qKysrR5OX9wcw6EBbeX96e8gQXKlDjmT09Dnb5WXGa7RVg345qRYN36z9LRZAIhUmT8gGBGX7DPqwr+GUdqwy37N+mzxXj+MEmUiLESV11MzSkOvVIZVKXWKEwsW2ClJldVHJoHYwx09NjgIgk5ikWQoysYKCvIIgLy8vLw8AQ3oBkEXT4iZVBFXdTopBZMjIWOa0IZmyAVW18ikAqXqbeYBMj+7ozrc6t02TCipKtXbtUYNMokvl8ulNvUZFYkc1a19+UIRYe5hqUlRvBqc85w7PRCPLk2Ur3xwTDKtMX7bw6uoMZUHd8QdKP8k3BJBIVvS8MYpUg8XFK5qW3j7WDF71Lf8iyQw5vnpieVhsdPHpB+f/oH9/6/ySog8k95bl38vLxLp/s1NeJjLXtF/v7+i9P4aSXUCSN1lvMtUhsZN2Xjy7tf32mS8eXFzX5IDGe3NG1JS8q4DUeefmPJE9VXpmtzxUHAOiosu0PnxMJKjpuvT4y1N89oUlUhVFdUftsddZBZmK860Y6/hZZd373xsVQYtVWiC+pzD24ta7B8WIDRmYEJ3uWB9ODM+uTTgjEkQimbLUxVp+eNP6/w7se2m7RoBO/XaRhKw+8LFGqUwsp1v3yq9EHb84+/b41/rmdimB2BSzZd9O1o09/PoXywoANJoKYa803lvbok3QpyjFHKv2da0eX5m57N8NvVKRoiu19byz+fo/vP3lPcpimcA54x21ykHCbnGhdMuzppm1KH5os2aZqinG77vy3Z77e88UnWdYxZgbntw6s/aFIxJBqn4o/0B21hRH7IYkUK68RF1+w3WqD/1TQd4JpzurnZ8smXisRbtUVZc3Vww6Iy+om+2Cvk1/bQBAAkBWaX18YWXfIyNiealu0cIzC4ccU1WX6BYrIJMz772Z360oCgASIAi6/KpU2ZOATCoRjMkMCYjk1KUixI4MHD0wXc2ICJAAo07IpBQSsapm053UJy8CVBTMc0afRNmRmFiqLieRISHV5G5APvnIW2ZpW1t/pmzVCwev+0gOVV/1p3mF8rjJi3fuMN/1xTHQYIedGpBA0AIovGrzpx9d2Lb9R1G5Ln/zgo0nl43KLNA6N/0wk/ZMXfqN17Z3tlZKoFFBBhIgBaTl9GTu+/mQVYbdYtZQvrSnPiy11LiT37EFYXvD7Gw0lYJUBggZAAAAAAAAAADg/y0LbTqgZCLTAAAAAElFTkSuQmCC";/*!
|
|
2
|
+
* Copyright (c) 2021-present, Okta, Inc. and/or its affiliates. All rights reserved.
|
|
3
|
+
* The Okta software accompanied by this notice is provided pursuant to the Apache License, Version 2.0 (the "License.")
|
|
4
|
+
*
|
|
5
|
+
* You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0.
|
|
6
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
7
|
+
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
|
|
8
|
+
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
9
|
+
*
|
|
10
|
+
* See the License for the specific language governing permissions and limitations under the License.
|
|
11
|
+
*/const xe=[{id:"en",name:"English",description:"",logo:v},{id:"fr",name:"French",description:"Français",logo:"",usersCount:100,appsCount:200},{id:"jp",name:"Japanese",description:"日本語",logo:v,usersCount:0,appsCount:0},{id:"es",name:"Spanish",description:"Español",logo:v,usersCount:101,appsCount:202,groupPushMappingsCount:303}],Mo={component:ve,decorators:[W],tags:["autodocs"],argTypes:{hasMultipleChoices:{control:"boolean",description:"Enables multiple choice selection",table:{type:{summary:"boolean"}}},hint:{control:"text",description:"The hint text for the autocomplete input",table:{type:{summary:"string"}}},isCustomValueAllowed:{control:"boolean",description:"Allows the input of custom values",table:{type:{summary:"boolean"}}},isDisabled:{control:"boolean",description:"Disables the autocomplete input",table:{type:{summary:"boolean"}}},isLoading:{control:"boolean",description:"Displays a loading indicator",table:{type:{summary:"boolean"}}},isReadOnly:{control:"boolean",description:"Makes the autocomplete input read-only",table:{type:{summary:"boolean"}}},label:{control:"text",description:"The label text for the autocomplete input",table:{type:{summary:"string"}}},onChange:{description:"Callback fired when the value of the autocomplete input changes",table:{type:{summary:"func"}}},onInputChange:{description:"Callback fired when the input value of the autocomplete input changes",table:{type:{summary:"func"}}},options:{description:"The options for the autocomplete input",table:{type:{summary:"Array<OptionType> | GroupedOptionType<OptionType>[] | Promise<Array<OptionType> | GroupedOptionType<OptionType>[]>"}}},value:{description:"The value of the autocomplete input",table:{type:{summary:"OptionType | OptionType[]"}}},isOptional:{control:"boolean",table:{type:{summary:"boolean"},defaultValue:{summary:"false"}}}},args:{label:"Languages",hint:"Languages supported by the system",options:xe}},k={},I={args:{hasMultipleChoices:!0}},M={args:{isDisabled:!0,hasMultipleChoices:!0,value:[{id:"en",name:"English",description:"",logo:v},{id:"jp",name:"Japanese",description:"日本語",logo:v,usersCount:0,appsCount:0}]}};var P,O,F;k.parameters={...k.parameters,docs:{...(P=k.parameters)==null?void 0:P.docs,source:{originalSource:"{}",...(F=(O=k.parameters)==null?void 0:O.docs)==null?void 0:F.source}}};var G,L,X;I.parameters={...I.parameters,docs:{...(G=I.parameters)==null?void 0:G.docs,source:{originalSource:`{
|
|
12
|
+
args: {
|
|
13
|
+
hasMultipleChoices: true
|
|
14
|
+
}
|
|
15
|
+
}`,...(X=(L=I.parameters)==null?void 0:L.docs)==null?void 0:X.source}}};var Q,J,N;M.parameters={...M.parameters,docs:{...(Q=M.parameters)==null?void 0:Q.docs,source:{originalSource:`{
|
|
16
|
+
args: {
|
|
17
|
+
isDisabled: true,
|
|
18
|
+
hasMultipleChoices: true,
|
|
19
|
+
value: [{
|
|
20
|
+
id: "en",
|
|
21
|
+
name: "English",
|
|
22
|
+
description: "",
|
|
23
|
+
logo: demoImage
|
|
24
|
+
}, {
|
|
25
|
+
id: "jp",
|
|
26
|
+
name: "Japanese",
|
|
27
|
+
description: "日本語",
|
|
28
|
+
logo: demoImage,
|
|
29
|
+
usersCount: 0,
|
|
30
|
+
appsCount: 0
|
|
31
|
+
}]
|
|
32
|
+
}
|
|
33
|
+
}`,...(N=(J=M.parameters)==null?void 0:J.docs)==null?void 0:N.source}}};const To=["GroupPickerDefault","Multiple","Disabled"];export{M as Disabled,k as GroupPickerDefault,I as Multiple,To as __namedExportsOrder,Mo as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{_ as B,b as E}from"./OdysseyThemeProvider-
|
|
1
|
+
import{_ as B,b as E}from"./OdysseyThemeProvider-Bh0Bu-2o.js";import{r as c}from"./index-NdkWRN8K.js";import{T as J,u as M,g as A,r as N}from"./utils-kUZVaD1e.js";import{j as O}from"./jsx-runtime-CnH95YSl.js";import{a as Q,u as U}from"./useIsFocusVisible-DH0qxT5e.js";import{g as V}from"./getReactElementRef-DsIevm5t.js";const X=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"];function h(l){return`scale(${l}, ${l**2})`}const Y={entering:{opacity:1,transform:h(1)},entered:{opacity:1,transform:"none"}},p=typeof navigator<"u"&&/^((?!chrome|android).)*(safari|mobile)/i.test(navigator.userAgent)&&/(os |version\/)15(.|_)4/i.test(navigator.userAgent),Z=c.forwardRef(function(x,L){const{addEndListener:y,appear:_=!0,children:m,easing:T,in:R,onEnter:j,onEntered:w,onEntering:D,onExit:v,onExited:H,onExiting:b,style:f,timeout:o="auto",TransitionComponent:C=J}=x,F=B(x,X),G=Q(),g=c.useRef(),r=M(),u=c.useRef(null),P=U(u,V(m),L),s=t=>e=>{if(t){const i=u.current;e===void 0?t(i):t(i,e)}},S=s(D),W=s((t,e)=>{N(t);const{duration:i,delay:d,easing:n}=A({style:f,timeout:o,easing:T},{mode:"enter"});let a;o==="auto"?(a=r.transitions.getAutoHeightDuration(t.clientHeight),g.current=a):a=i,t.style.transition=[r.transitions.create("opacity",{duration:a,delay:d}),r.transitions.create("transform",{duration:p?a:a*.666,delay:d,easing:n})].join(","),j&&j(t,e)}),$=s(w),z=s(b),K=s(t=>{const{duration:e,delay:i,easing:d}=A({style:f,timeout:o,easing:T},{mode:"exit"});let n;o==="auto"?(n=r.transitions.getAutoHeightDuration(t.clientHeight),g.current=n):n=e,t.style.transition=[r.transitions.create("opacity",{duration:n,delay:i}),r.transitions.create("transform",{duration:p?n:n*.666,delay:p?i:i||n*.333,easing:d})].join(","),t.style.opacity=0,t.style.transform=h(.75),v&&v(t)}),k=s(H),q=t=>{o==="auto"&&G.start(g.current||0,t),y&&y(u.current,t)};return O.jsx(C,E({appear:_,in:R,nodeRef:u,onEnter:W,onEntered:$,onEntering:S,onExit:K,onExited:k,onExiting:z,addEndListener:q,timeout:o==="auto"?null:o},F,{children:(t,e)=>c.cloneElement(m,E({style:E({opacity:0,transform:h(.75),visibility:t==="exited"&&!R?"hidden":void 0},Y[t],f,m.props.style),ref:P},e))}))});Z.muiSupportAuto=!0;export{Z as G};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as e}from"./index-NdkWRN8K.js";import{j as l}from"./jsx-runtime-CnH95YSl.js";import{S as a}from"./OdysseyThemeProvider-
|
|
1
|
+
import{r as e}from"./index-NdkWRN8K.js";import{j as l}from"./jsx-runtime-CnH95YSl.js";import{S as a}from"./OdysseyThemeProvider-Bh0Bu-2o.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};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{h as t}from"./OdysseyThemeProvider-
|
|
1
|
+
import{h as t}from"./OdysseyThemeProvider-Bh0Bu-2o.js";import{f as a}from"./FormHelperText-CsNAE1E3.js";/*!
|
|
2
2
|
* Copyright (c) 2025-present, Okta, Inc. and/or its affiliates. All rights reserved.
|
|
3
3
|
* The Okta software accompanied by this notice is provided pursuant to the Apache License, Version 2.0 (the "License.")
|
|
4
4
|
*
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as e}from"./index-NdkWRN8K.js";import{j as o}from"./jsx-runtime-CnH95YSl.js";import{S as n}from"./OdysseyThemeProvider-
|
|
1
|
+
import{r as e}from"./index-NdkWRN8K.js";import{j as o}from"./jsx-runtime-CnH95YSl.js";import{S as n}from"./OdysseyThemeProvider-Bh0Bu-2o.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};
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import{j as a}from"./jsx-runtime-CnH95YSl.js";import{i as t}from"./index-DB8HwIVZ.js";import{r as s}from"./index-NdkWRN8K.js";import{O as p}from"./OdysseyStorybookThemeDecorator-BuDiOG2V.js";import{M as c}from"./DataTable-XayRBHyP.js";import"./OdysseyThemeProvider-Bh0Bu-2o.js";import"./_commonjsHelpers-gnU0ypJ3.js";import"./Server-Ch5aeRtt.js";import"./List-UlX1tusJ.js";import"./ArrowRight-ChWYjNny.js";import"./Bug-CQIUmZ-N.js";import"./Calendar-_GPHtaRa.js";import"./ChevronRight-C12ToI7Y.js";import"./ChevronUp-CfT7Bz8X.js";import"./Clock-17ua7UAW.js";import"./Upload-CfzP_Muq.js";import"./Documentation-DF3oo39e.js";import"./Download-Zlhupksh.js";import"./ExternalLink-D0l1c5Cz.js";import"./Filter-DsDJ7si-.js";import"./Folder-e-po0U54.js";import"./Globe-B83Xmd05.js";import"./Grid-EpV3TL4a.js";import"./Group-mTVRC79V.js";import"./Hide-TKfOHglI.js";import"./Home-la7Lmt_L.js";import"./InformationCircle-a2jMUKfL.js";import"./More-DLQ2RjWn.js";import"./Refresh-DexPEklu.js";import"./Search-C5TVrLyE.js";import"./Settings-2rTKyez8.js";import"./Show-BnmQFsN6.js";import"./Sync-BbqTDeWk.js";import"./User-CyxEAfVT.js";import"./Video-DWT3WylB.js";import"./index-BJTM6NaI.js";import"./OdysseyProvider-qIn9QVYS.js";import"./index.esm-DTxqsiYY.js";import"./createSvgIcon-ClUWwDzL.js";import"./createChainedFunction-BO_9K8Jh.js";import"./debounce-Be36O1Ab.js";import"./ListItem-C0ExFtXb.js";import"./utils-iop7lDec.js";import"./useFormControl-BMISTZuX.js";import"./FormLabel-CiGre9wK.js";import"./List-CmjR1pNu.js";import"./useIsFocusVisible-DH0qxT5e.js";import"./isHostComponent-DVu5iVWx.js";import"./ButtonBase-BNqa2TMD.js";import"./assertThisInitialized-B9jnkVVz.js";import"./inheritsLoose-CJ6Ie9dp.js";import"./TransitionGroupContext-DAL84N7p.js";import"./ownerDocument-DW-IO8s5.js";import"./ownerWindow-HkKU3E4x.js";import"./useControlled-NQulfz4l.js";import"./index-B5xazMy1.js";import"./index-DieBXP3Z.js";import"./utils-kUZVaD1e.js";import"./Stack-B7OGvu7C.js";import"./createStyled-D6bTcpHC.js";import"./useThemeProps-DwvbKxez.js";import"./Tooltip-Cq2rQGbD.js";import"./Grow-C8kUeGCY.js";import"./getReactElementRef-DsIevm5t.js";import"./resolveComponentProps-DXQ8X87i.js";import"./Popper-BARIxJrI.js";import"./popper-BVOCD5jc.js";import"./Portal-C6D59xAE.js";import"./Paper-D-_O-EjU.js";import"./Box-BcMTQ_R2.js";import"./createBox-Dxawkfow.js";import"./CircularProgress-HbIdZLBB.js";import"./DialogContent-Cwn-I-C_.js";import"./Fade-dUgBN8rJ.js";import"./Modal-CSDyCVCf.js";import"./getScrollbarSize-Bqq2hMjQ.js";import"./dialogActionsClasses-ZEPlxVw-.js";import"./DialogTitle-C-K7jEio.js";import"./Typography-ClQ35Rr-.js";import"./Menu-K9lpVvDG.js";import"./MenuList-BMOesnfs.js";import"./colorManipulator-DKifQsuo.js";import"./IconButton-5qShmnSr.js";import"./Radio-B4gVvwps.js";import"./SwitchBase-CefEM0OA.js";import"./Checkbox-vZwuXtzm.js";import"./useMobilePicker-DZhX9dEQ.js";import"./Select-DZTigpTO.js";import"./ArrowDropDown-DdemyKZU.js";import"./InputBase-DeB4_faH.js";import"./FormHelperText-CsNAE1E3.js";import"./useThemeProps-BPvYx-mf.js";import"./InputAdornment-CdR3XT6f.js";import"./visuallyHidden-Dan1xhjv.js";import"./Button-BzIwUmSM.js";import"./Chip-CXnMieIl.js";import"./MenuItem-vhp8G-Nb.js";import"./Collapse-DfdoVIdP.js";import"./AlertTitle-q6ff_Zkl.js";import"./useSlot-CvpE2t6D.js";import"./Close-OXBt1nIe.js";import"./Skeleton-BPjIT6NG.js";import"./Divider-Ln3VaO81.js";import"./Autocomplete-CxtGbb8j.js";import"./ListSubheader-CQJAAOsd.js";import"./tableSortLabelClasses-CkKrbp1R.js";import"./FormControlLabel-0BBemR80.js";import"./DateTimePicker-B7a9bgL6.js";import"./Tabs-CQz87GHd.js";import"./DatePicker-BwDkz3WT.js";import"./Box-1mvP3NLW.js";import"./Button-BEA5U6Tg.js";import"./BaseButton-DYZHKnV3.js";import"./MuiPropsContext-DhRylJZk.js";import"./Tooltip-CsVWtVfL.js";import"./MenuButton-B3T7c15t.js";import"./BaseMenuButton-BIietjUB.js";import"./useUniqueId-Bsgqe1tm.js";import"./createUniqueId-ByTaVY63.js";import"./MenuContext-DKMyPMNY.js";import"./Callout-FZxPpigF.js";import"./Link-BDoLypER.js";import"./Link-DNIf0luC.js";import"./Typography-Cz6D417Y.js";import"./EmptyState-CpBEzmap.js";import"./DataFilters-BnT_U3-o.js";import"./Autocomplete-Cpi_kUVA.js";import"./useAutocomplete-BRetTkpF.js";import"./index.esm-CBOWgn41.js";import"./Field-DH3L8v09.js";import"./ScreenReaderText-CebALBsG.js";import"./FieldHint-B3Jif_Up.js";import"./inputUtils-Dbi8XkA6.js";import"./Checkbox-DPv3Q9UW.js";import"./Hint-DoJneNg9.js";import"./CheckboxGroup-Be66QML5.js";import"./FormGroup-HFkGZ983.js";import"./Radio-BdNnpooK.js";import"./RadioGroup-BYJZ378_.js";import"./RadioGroup-CtUWSbQc.js";import"./SearchField-BdnOrhVM.js";import"./Tag-DwH0t814.js";import"./TagList-BZGEhGXn.js";import"./TextField-BhK0y2Zt.js";import"./Pagination-CB1wBW8Q.js";import"./MenuItem-CmSG6PNu.js";import"./useScrollIndication-mYI-g6xa.js";const $e={decorators:[p],tags:["autodocs"]},u=[{name:"AddCircleIcon",use:"To add"},{name:"AddIcon",use:"To add"},{name:"AppsIcon",use:""},{name:"ArrowDownIcon",use:""},{name:"ArrowLeftIcon",use:""},{name:"ArrowLowerLeftIcon",use:""},{name:"ArrowLowerRightIcon",use:""},{name:"ArrowRightIcon",use:""},{name:"ArrowUnsortedIcon",use:""},{name:"ArrowUpIcon",use:""},{name:"ArrowUpperLeftIcon",use:""},{name:"ArrowUpperRightIcon",use:""},{name:"BugIcon",use:""},{name:"CalendarIcon",use:""},{name:"CallIcon",use:""},{name:"ChatIcon",use:""},{name:"CheckCircleFilledIcon",use:""},{name:"CheckIcon",use:"To show a completed process"},{name:"ChevronDownIcon",use:"UI indicator - element triggers open"},{name:"ChevronLeftIcon",use:""},{name:"ChevronRightIcon",use:""},{name:"ChevronUpIcon",use:"UI indicator - element triggers close"},{name:"ClockIcon",use:""},{name:"CloseCircleFilledIcon",use:""},{name:"CloseIcon",use:"To close a modal or other UI"},{name:"CollapseLeftIcon",use:""},{name:"CollapseRightIcon",use:""},{name:"CopyIcon",use:"To copy text"},{name:"DangerDiamondFilledIcon",use:""},{name:"DangerDiamondIcon",use:""},{name:"DeleteIcon",use:"To delete something"},{name:"DenyIcon",use:""},{name:"DevicesIcon",use:""},{name:"DirectoryIcon",use:""},{name:"DocumentationIcon",use:""},{name:"DownloadIcon",use:"To download"},{name:"DragIndicatorIcon",use:""},{name:"EditIcon",use:"To edit something"},{name:"ExpandLeftIcon",use:""},{name:"ExpandRightIcon",use:""},{name:"ExternalLinkIcon",use:"UI indicator - external link"},{name:"FilterIcon",use:"To filter results"},{name:"FolderIcon",use:""},{name:"GlobeIcon",use:""},{name:"GridIcon",use:""},{name:"GroupIcon",use:""},{name:"HideIcon",use:"To hide something"},{name:"HomeIcon",use:""},{name:"InformationCircleFilledIcon",use:"To get information"},{name:"InformationCircleIcon",use:"To get information"},{name:"LinkIcon",use:""},{name:"ListIcon",use:""},{name:"LockIcon",use:""},{name:"MoreIcon",use:""},{name:"NotificationIcon",use:"To notify the user of something"},{name:"PauseIcon",use:""},{name:"QuestionCircleFilledIcon",use:"To provide clarification"},{name:"QuestionCircleIcon",use:"To provide clarification"},{name:"RefreshIcon",use:""},{name:"ResetIcon",use:""},{name:"ResumeIcon",use:""},{name:"SearchIcon",use:"To search for something"},{name:"ServerIcon",use:""},{name:"SettingsIcon",use:"To edit user or app settings"},{name:"ShowIcon",use:"To show something"},{name:"SubtractIcon",use:"To subtract or remove"},{name:"SyncIcon",use:""},{name:"UnlockIcon",use:""},{name:"UploadIcon",use:""},{name:"UserIcon",use:"To support a user name"},{name:"VideoIcon",use:""},{name:"WarningFilledIcon",use:""},{name:"WarningIcon",use:""}],l=[{accessorKey:"icon",Cell:({row:o})=>s.createElement(t[o.original.name]),header:"Icon"},{accessorKey:"name",header:"Name"},{accessorKey:"className",Cell:({row:o})=>{var e;return((e=t[o.original.name])==null?void 0:e.displayName)??""},header:"Class Name"}],r={parameters:{docs:{description:{story:"Icons can be included as a component using the class name. For example, to include the add circle icon, use `<AddCircleIcon />`."}}},render:function(){return a.jsx(c,{columns:l,getData:()=>u,getRowId:e=>e.name,hasSorting:!1})}};var n,i,m;r.parameters={...r.parameters,docs:{...(n=r.parameters)==null?void 0:n.docs,source:{originalSource:`{
|
|
2
|
+
parameters: {
|
|
3
|
+
docs: {
|
|
4
|
+
description: {
|
|
5
|
+
story: "Icons can be included as a component using the class name. For example, to include the add circle icon, use \`<AddCircleIcon />\`."
|
|
6
|
+
}
|
|
7
|
+
}
|
|
8
|
+
},
|
|
9
|
+
render: function C() {
|
|
10
|
+
return <DataTable
|
|
11
|
+
// The \`as\` here shouldn't be required because \`DataTable\` should be inferring the type of \`columns\`, but it doesn't take a generic to know that. --Kevin Ghadyani
|
|
12
|
+
columns={columns as DataTableColumn<DataTableRowData>[]} getData={() => icons}
|
|
13
|
+
// The \`as\` here shouldn't be required because \`DataTable\` should know the return type of \`getData\` and infer the rest. It needs to ta generic to fix that. --Kevin Ghadyani
|
|
14
|
+
getRowId={originalRow => originalRow.name as keyof typeof iconDictionary} hasSorting={false} />;
|
|
15
|
+
}
|
|
16
|
+
}`,...(m=(i=r.parameters)==null?void 0:i.docs)==null?void 0:m.source}}};const or=["Default"];export{r as Default,or as __namedExportsOrder,$e as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{
|
|
1
|
+
import{W as z,V as m,c as R,_ as x,b as s,s as y,d as C,e as t,f as B,n as u}from"./OdysseyThemeProvider-Bh0Bu-2o.js";import{r as I}from"./index-NdkWRN8K.js";import{j as $}from"./jsx-runtime-CnH95YSl.js";import{B as h}from"./ButtonBase-BNqa2TMD.js";function k(o){return m("MuiIconButton",o)}const M=z("MuiIconButton",["root","disabled","colorInherit","colorPrimary","colorSecondary","colorError","colorInfo","colorSuccess","colorWarning","edgeStart","edgeEnd","sizeSmall","sizeMedium","sizeLarge"]),E=["edge","children","className","color","disabled","disableFocusRipple","size"],_=o=>{const{classes:a,disabled:r,color:e,edge:i,size:l}=o,n={root:["root",r&&"disabled",e!=="default"&&`color${t(e)}`,i&&`edge${t(i)}`,`size${t(l)}`]};return B(n,k,a)},j=y(h,{name:"MuiIconButton",slot:"Root",overridesResolver:(o,a)=>{const{ownerState:r}=o;return[a.root,r.color!=="default"&&a[`color${t(r.color)}`],r.edge&&a[`edge${t(r.edge)}`],a[`size${t(r.size)}`]]}})(({theme:o,ownerState:a})=>s({textAlign:"center",flex:"0 0 auto",fontSize:o.typography.pxToRem(24),padding:8,borderRadius:"50%",overflow:"visible",color:(o.vars||o).palette.action.active,transition:o.transitions.create("background-color",{duration:o.transitions.duration.shortest})},!a.disableRipple&&{"&:hover":{backgroundColor:o.vars?`rgba(${o.vars.palette.action.activeChannel} / ${o.vars.palette.action.hoverOpacity})`:u.alpha(o.palette.action.active,o.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},a.edge==="start"&&{marginLeft:a.size==="small"?-3:-12},a.edge==="end"&&{marginRight:a.size==="small"?-3:-12}),({theme:o,ownerState:a})=>{var r;const e=(r=(o.vars||o).palette)==null?void 0:r[a.color];return s({},a.color==="inherit"&&{color:"inherit"},a.color!=="inherit"&&a.color!=="default"&&s({color:e==null?void 0:e.main},!a.disableRipple&&{"&:hover":s({},e&&{backgroundColor:o.vars?`rgba(${e.mainChannel} / ${o.vars.palette.action.hoverOpacity})`:u.alpha(e.main,o.palette.action.hoverOpacity)},{"@media (hover: none)":{backgroundColor:"transparent"}})}),a.size==="small"&&{padding:5,fontSize:o.typography.pxToRem(18)},a.size==="large"&&{padding:12,fontSize:o.typography.pxToRem(28)},{[`&.${M.disabled}`]:{backgroundColor:"transparent",color:(o.vars||o).palette.action.disabled}})}),P=I.forwardRef(function(a,r){const e=R({props:a,name:"MuiIconButton"}),{edge:i=!1,children:l,className:n,color:g="default",disabled:c=!1,disableFocusRipple:d=!1,size:v="medium"}=e,f=x(e,E),p=s({},e,{edge:i,color:g,disabled:c,disableFocusRipple:d,size:v}),b=_(p);return $.jsx(j,s({className:C(b.root,n),centerRipple:!0,focusRipple:!d,disabled:c,ref:r},f,{ownerState:p,children:l}))});export{P as I};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{j as a}from"./jsx-runtime-CnH95YSl.js";import{w as x,u as p}from"./index-BJMTVygn.js";import{a as T}from"./axeRun-B-LchFqf.js";import{O as b}from"./OdysseyStorybookThemeDecorator-
|
|
1
|
+
import{j as a}from"./jsx-runtime-CnH95YSl.js";import{w as x,u as p}from"./index-BJMTVygn.js";import{a as T}from"./axeRun-B-LchFqf.js";import{O as b}from"./OdysseyStorybookThemeDecorator-BuDiOG2V.js";import{u as I,h as w}from"./OdysseyThemeProvider-Bh0Bu-2o.js";import{r as v}from"./index-NdkWRN8K.js";import{u as O}from"./MuiPropsContext-DhRylJZk.js";import{T as C}from"./Tooltip-Cq2rQGbD.js";import{M}from"./InformationCircle-a2jMUKfL.js";import{M as j}from"./Group-mTVRC79V.js";import"./axe-4JP0vCEZ.js";import"./_commonjsHelpers-gnU0ypJ3.js";import"./index-BJTM6NaI.js";import"./OdysseyProvider-qIn9QVYS.js";import"./Grow-C8kUeGCY.js";import"./utils-kUZVaD1e.js";import"./inheritsLoose-CJ6Ie9dp.js";import"./index-B5xazMy1.js";import"./index-DieBXP3Z.js";import"./TransitionGroupContext-DAL84N7p.js";import"./useIsFocusVisible-DH0qxT5e.js";import"./getReactElementRef-DsIevm5t.js";import"./resolveComponentProps-DXQ8X87i.js";import"./isHostComponent-DVu5iVWx.js";import"./useControlled-NQulfz4l.js";import"./Popper-BARIxJrI.js";import"./popper-BVOCD5jc.js";import"./ownerDocument-DW-IO8s5.js";import"./Portal-C6D59xAE.js";const E=w.span(({odysseyDesignTokens:t})=>({display:"inline-flex",transitionProperty:"border-color, box-shadow, outline",transitionDuration:t.TransitionDurationMain,border:"1px solid transparent","&:focus, &:focus-visible":{borderColor:t.FocusOutlineColorPrimary,boxShadow:`0 0 0 1px ${t.FocusOutlineColorPrimary}`,outline:`${t.FocusOutlineWidthMain} ${t.FocusOutlineStyle} transparent`,outlineOffset:t.FocusOutlineOffsetTight},svg:{display:"flex"}})),W=({IconComponent:t=a.jsx(M,{}),placement:o="right",testId:n,tooltipText:s,translate:e})=>{const y=O(),g=I();return a.jsx(C,{"data-se":n,describeChild:!0,placement:o,tabIndex:0,title:s,translate:e,children:a.jsx(E,{odysseyDesignTokens:g,...y,children:t})})},f=v.memo(W);f.displayName="IconWithTooltip";const nt={component:f,decorators:[b],tags:["autodocs"],argTypes:{IconComponent:{description:"The icon to render",table:{type:{summary:"ReactNode"},defaultValue:{summary:"<InformationCircleIcon />"}},type:{required:!0,name:"string"}},tooltipText:{control:"text",description:"The text to display in the tooltip",table:{type:{summary:"string"}},type:{required:!0,name:"string"}},placement:{options:["top","right","bottom","left"],control:{type:"radio"},description:"The placement of the tooltip",table:{type:{summary:"top | right | bottom | left"},defaultValue:{summary:"right"}}}},args:{testId:"tooltip"}},F=({canvasElement:t,step:o})=>async n=>{await o("show the tooltip on hover",async()=>{const e=x(t).getByTitle("Use the `i` icon to give details that might not be critical but are 'good to know'");await p.hover(e),await T(n),await p.unhover(e)})},r={args:{tooltipText:"Use the `i` icon to give details that might not be critical but are 'good to know'"},play:async({canvasElement:t,step:o})=>{await F({canvasElement:t,step:o})("IconWithTooltip")}},i={args:{IconComponent:a.jsx(j,{}),tooltipText:"This is a group of people"}};var m,c,l;r.parameters={...r.parameters,docs:{...(m=r.parameters)==null?void 0:m.docs,source:{originalSource:`{
|
|
2
2
|
args: {
|
|
3
3
|
tooltipText: "Use the \`i\` icon to give details that might not be critical but are 'good to know'"
|
|
4
4
|
},
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r}from"./index-NdkWRN8K.js";import{j as o}from"./jsx-runtime-CnH95YSl.js";import{S as i}from"./OdysseyThemeProvider-
|
|
1
|
+
import{r}from"./index-NdkWRN8K.js";import{j as o}from"./jsx-runtime-CnH95YSl.js";import{S as i}from"./OdysseyThemeProvider-Bh0Bu-2o.js";const t=r.forwardRef((e,n)=>o.jsx(i,{fill:"none",ref:n,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:"M12 3a9 9 0 1 0 0 18 9 9 0 0 0 0-18ZM1 12C1 5.925 5.925 1 12 1s11 4.925 11 11-4.925 11-11 11S1 18.075 1 12Zm11-3.25a1.25 1.25 0 1 0 0-2.5 1.25 1.25 0 0 0 0 2.5Zm1 2.75a1 1 0 1 0-2 0v6h2v-6Z",fill:"currentColor",fillRule:"evenodd"})})})),m=r.memo(t);m.displayName="InformationCircleIcon";export{m as M};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{c as y,_ as j,b as c,s as C,d as I,e as m,f as A,g as L,i as f}from"./OdysseyThemeProvider-
|
|
1
|
+
import{c as y,_ as j,b as c,s as C,d as I,e as m,f as A,g as L,i as f}from"./OdysseyThemeProvider-Bh0Bu-2o.js";import{r as b}from"./index-NdkWRN8K.js";import{u as R,F as z}from"./useFormControl-BMISTZuX.js";import{j as a}from"./jsx-runtime-CnH95YSl.js";import{T as F}from"./Typography-ClQ35Rr-.js";var x;const T=["children","className","component","disablePointerEvents","disableTypography","position","variant"],_=(o,t)=>{const{ownerState:e}=o;return[t.root,t[`position${m(e.position)}`],e.disablePointerEvents===!0&&t.disablePointerEvents,t[e.variant]]},$=o=>{const{classes:t,disablePointerEvents:e,hiddenLabel:n,position:s,size:r,variant:l}=o,p={root:["root",e&&"disablePointerEvents",s&&`position${m(s)}`,l,n&&"hiddenLabel",r&&`size${m(r)}`]};return A(p,L,t)},N=C("div",{name:"MuiInputAdornment",slot:"Root",overridesResolver:_})(({theme:o,ownerState:t})=>c({display:"flex",height:"0.01em",maxHeight:"2em",alignItems:"center",whiteSpace:"nowrap",color:(o.vars||o).palette.action.active},t.variant==="filled"&&{[`&.${f.positionStart}&:not(.${f.hiddenLabel})`]:{marginTop:16}},t.position==="start"&&{marginRight:8},t.position==="end"&&{marginLeft:8},t.disablePointerEvents===!0&&{pointerEvents:"none"})),S=b.forwardRef(function(t,e){const n=y({props:t,name:"MuiInputAdornment"}),{children:s,className:r,component:l="div",disablePointerEvents:p=!1,disableTypography:g=!1,position:u,variant:v}=n,P=j(n,T),i=R()||{};let d=v;v&&i.variant,i&&!d&&(d=i.variant);const h=c({},n,{hiddenLabel:i.hiddenLabel,size:i.size,disablePointerEvents:p,position:u,variant:d}),E=$(h);return a.jsx(z.Provider,{value:null,children:a.jsx(N,c({as:l,ownerState:h,className:I(E.root,r),ref:e},P,{children:typeof s=="string"&&!g?a.jsx(F,{color:"text.secondary",children:s}):a.jsxs(b.Fragment,{children:[u==="start"?x||(x=a.jsx("span",{className:"notranslate",children:""})):null,s]})}))})});export{S as I};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{_ as he,a as Y,b as d,c as Fe,s as be,d as ce,e as ee,f as Ae,
|
|
2
|
-
`&&(n.value+=" ");const D=s.boxSizing,z=$(s.paddingBottom)+$(s.paddingTop),O=$(s.borderBottomWidth)+$(s.borderTopWidth),W=n.scrollHeight;n.value="x";const I=n.scrollHeight;let x=W;c&&(x=Math.max(Number(c)*I,x)),u&&(x=Math.min(Number(u)*I,x)),x=Math.max(x,I);const _=x+(D==="border-box"?z+O:0),q=Math.abs(x-W)<=1;return{outerHeightStyle:_,overflowing:q}},[u,c,e.placeholder]),B=Me(()=>{const l=f.current,n=y();if(!l||!n||me(n))return!1;const g=n.outerHeightStyle;return m.current!=null&&m.current!==g}),S=a.useCallback(()=>{const l=f.current,n=y();if(!l||!n||me(n))return;const g=n.outerHeightStyle;m.current!==g&&(m.current=g,l.style.height=`${g}px`),l.style.overflow=n.overflowing?"hidden":""},[y]),P=a.useRef(-1);Y(()=>{const l=Oe(S),n=f==null?void 0:f.current;if(!n)return;const g=pe(n);g.addEventListener("resize",l);let s;return typeof ResizeObserver<"u"&&(s=new ResizeObserver(()=>{B()&&(s.unobserve(n),cancelAnimationFrame(P.current),S(),P.current=requestAnimationFrame(()=>{s.observe(n)}))}),s.observe(n)),()=>{l.clear(),cancelAnimationFrame(P.current),g.removeEventListener("resize",l),s&&s.disconnect()}},[y,S,B]),Y(()=>{S()});const h=l=>{w||S(),p&&p(l)};return C.jsxs(a.Fragment,{children:[C.jsx("textarea",d({value:F,onChange:h,ref:A,rows:c,style:k},E)),C.jsx("textarea",{"aria-hidden":!0,className:e.className,readOnly:!0,ref:R,tabIndex:-1,style:d({},Ne.shadow,k,{paddingTop:0,paddingBottom:0})})]})}),De=["aria-describedby","autoComplete","autoFocus","className","color","components","componentsProps","defaultValue","disabled","disableInjectingGlobalStyles","endAdornment","error","fullWidth","id","inputComponent","inputProps","inputRef","margin","maxRows","minRows","multiline","name","onBlur","onChange","onClick","onFocus","onKeyDown","onKeyUp","placeholder","readOnly","renderSuffix","rows","size","slotProps","slots","startAdornment","type","value"],_e=(t,e)=>{const{ownerState:o}=t;return[e.root,o.formControl&&e.formControl,o.startAdornment&&e.adornedStart,o.endAdornment&&e.adornedEnd,o.error&&e.error,o.size==="small"&&e.sizeSmall,o.multiline&&e.multiline,o.color&&e[`color${ee(o.color)}`],o.fullWidth&&e.fullWidth,o.hiddenLabel&&e.hiddenLabel]},qe=(t,e)=>{const{ownerState:o}=t;return[e.input,o.size==="small"&&e.inputSizeSmall,o.multiline&&e.inputMultiline,o.type==="search"&&e.inputTypeSearch,o.startAdornment&&e.inputAdornedStart,o.endAdornment&&e.inputAdornedEnd,o.hiddenLabel&&e.inputHiddenLabel]},Ge=t=>{const{classes:e,color:o,disabled:p,error:u,endAdornment:c,focused:k,formControl:F,fullWidth:E,hiddenLabel:w,multiline:f,readOnly:A,size:m,startAdornment:R,type:y}=t,B={root:["root",`color${ee(o)}`,p&&"disabled",u&&"error",E&&"fullWidth",k&&"focused",F&&"formControl",m&&m!=="medium"&&`size${ee(m)}`,f&&"multiline",R&&"adornedStart",c&&"adornedEnd",w&&"hiddenLabel",A&&"readOnly"],input:["input",p&&"disabled",y==="search"&&"inputTypeSearch",f&&"inputMultiline",m==="small"&&"inputSizeSmall",w&&"inputHiddenLabel",R&&"inputAdornedStart",c&&"inputAdornedEnd",A&&"readOnly"]};return Ae(B,Be,e)},Ke=be("div",{name:"MuiInputBase",slot:"Root",overridesResolver:_e})(({theme:t,ownerState:e})=>d({},t.typography.body1,{color:(t.vars||t).palette.text.primary,lineHeight:"1.4375em",boxSizing:"border-box",position:"relative",cursor:"text",display:"inline-flex",alignItems:"center",[`&.${te.disabled}`]:{color:(t.vars||t).palette.text.disabled,cursor:"default"}},e.multiline&&d({padding:"4px 0 5px"},e.size==="small"&&{paddingTop:1}),e.fullWidth&&{width:"100%"})),Ue=be("input",{name:"MuiInputBase",slot:"Input",overridesResolver:qe})(({theme:t,ownerState:e})=>{const o=t.palette.mode==="light",p=d({color:"currentColor"},t.vars?{opacity:t.vars.opacity.inputPlaceholder}:{opacity:o?.42:.5},{transition:t.transitions.create("opacity",{duration:t.transitions.duration.shorter})}),u={opacity:"0 !important"},c=t.vars?{opacity:t.vars.opacity.inputPlaceholder}:{opacity:o?.42:.5};return d({font:"inherit",letterSpacing:"inherit",color:"currentColor",padding:"4px 0 5px",border:0,boxSizing:"content-box",background:"none",height:"1.4375em",margin:0,WebkitTapHighlightColor:"transparent",display:"block",minWidth:0,width:"100%",animationName:"mui-auto-fill-cancel",animationDuration:"10ms","&::-webkit-input-placeholder":p,"&::-moz-placeholder":p,"&:-ms-input-placeholder":p,"&::-ms-input-placeholder":p,"&:focus":{outline:0},"&:invalid":{boxShadow:"none"},"&::-webkit-search-decoration":{WebkitAppearance:"none"},[`label[data-shrink=false] + .${te.formControl} &`]:{"&::-webkit-input-placeholder":u,"&::-moz-placeholder":u,"&:-ms-input-placeholder":u,"&::-ms-input-placeholder":u,"&:focus::-webkit-input-placeholder":c,"&:focus::-moz-placeholder":c,"&:focus:-ms-input-placeholder":c,"&:focus::-ms-input-placeholder":c},[`&.${te.disabled}`]:{opacity:1,WebkitTextFillColor:(t.vars||t).palette.text.disabled},"&:-webkit-autofill":{animationDuration:"5000s",animationName:"mui-auto-fill"}},e.size==="small"&&{paddingTop:1},e.multiline&&{height:"auto",resize:"none",padding:0,paddingTop:0},e.type==="search"&&{MozAppearance:"textfield"})}),Ve=C.jsx(Ie,{styles:{"@keyframes mui-auto-fill":{from:{display:"block"}},"@keyframes mui-auto-fill-cancel":{from:{display:"block"}}}}),it=a.forwardRef(function(e,o){var p;const u=Fe({props:e,name:"MuiInputBase"}),{"aria-describedby":c,autoComplete:k,autoFocus:F,className:E,components:w={},componentsProps:f={},defaultValue:A,disabled:m,disableInjectingGlobalStyles:R,endAdornment:y,fullWidth:B=!1,id:S,inputComponent:P="input",inputProps:h={},inputRef:l,maxRows:n,minRows:g,multiline:s=!1,name:D,onBlur:z,onChange:O,onClick:W,onFocus:I,onKeyDown:x,onKeyUp:_,placeholder:q,readOnly:G,renderSuffix:oe,rows:L,slotProps:ne={},slots:re={},startAdornment:T,type:ie="text",value:xe}=u,ye=he(u,De),N=h.value!=null?h.value:xe,{current:K}=a.useRef(N!=null),H=a.useRef(),ve=a.useCallback(r=>{},[]),Ce=ge(H,l,h.ref,ve),[U,V]=a.useState(!1),i=Ee(),b=Pe({props:u,muiFormControl:i,states:["color","disabled","error","hiddenLabel","size","required","filled"]});b.focused=i?i.focused:U,a.useEffect(()=>{!i&&m&&U&&(V(!1),z&&z())},[i,m,U,z]);const
|
|
1
|
+
import{_ as he,a as Y,b as d,c as Fe,s as be,d as ce,e as ee,f as Ae,ab as Be,ac as te,ad as Ie,Q as He}from"./OdysseyThemeProvider-Bh0Bu-2o.js";import{r as a}from"./index-NdkWRN8K.js";import{u as Ee,f as Pe,F as We}from"./useFormControl-BMISTZuX.js";import{i as Te}from"./utils-iop7lDec.js";import{j as C}from"./jsx-runtime-CnH95YSl.js";import{u as ge}from"./useIsFocusVisible-DH0qxT5e.js";import{o as pe}from"./ownerWindow-HkKU3E4x.js";import{u as Me}from"./inheritsLoose-CJ6Ie9dp.js";import{d as Oe}from"./debounce-Be36O1Ab.js";import{i as fe}from"./isHostComponent-DVu5iVWx.js";const Le=["onChange","maxRows","minRows","style","value"];function $(t){return parseInt(t,10)||0}const Ne={shadow:{visibility:"hidden",position:"absolute",overflow:"hidden",height:0,top:0,left:0,transform:"translateZ(0)"}};function je(t){for(const e in t)return!1;return!0}function me(t){return je(t)||t.outerHeightStyle===0&&!t.overflowing}const $e=a.forwardRef(function(e,o){const{onChange:p,maxRows:u,minRows:c=1,style:k,value:F}=e,E=he(e,Le),{current:w}=a.useRef(F!=null),f=a.useRef(null),A=ge(o,f),m=a.useRef(null),R=a.useRef(null),y=a.useCallback(()=>{const l=f.current,n=R.current;if(!l||!n)return;const s=pe(l).getComputedStyle(l);if(s.width==="0px")return{outerHeightStyle:0,overflowing:!1};n.style.width=s.width,n.value=l.value||e.placeholder||"x",n.value.slice(-1)===`
|
|
2
|
+
`&&(n.value+=" ");const D=s.boxSizing,z=$(s.paddingBottom)+$(s.paddingTop),O=$(s.borderBottomWidth)+$(s.borderTopWidth),W=n.scrollHeight;n.value="x";const I=n.scrollHeight;let x=W;c&&(x=Math.max(Number(c)*I,x)),u&&(x=Math.min(Number(u)*I,x)),x=Math.max(x,I);const _=x+(D==="border-box"?z+O:0),q=Math.abs(x-W)<=1;return{outerHeightStyle:_,overflowing:q}},[u,c,e.placeholder]),B=Me(()=>{const l=f.current,n=y();if(!l||!n||me(n))return!1;const g=n.outerHeightStyle;return m.current!=null&&m.current!==g}),S=a.useCallback(()=>{const l=f.current,n=y();if(!l||!n||me(n))return;const g=n.outerHeightStyle;m.current!==g&&(m.current=g,l.style.height=`${g}px`),l.style.overflow=n.overflowing?"hidden":""},[y]),P=a.useRef(-1);Y(()=>{const l=Oe(S),n=f==null?void 0:f.current;if(!n)return;const g=pe(n);g.addEventListener("resize",l);let s;return typeof ResizeObserver<"u"&&(s=new ResizeObserver(()=>{B()&&(s.unobserve(n),cancelAnimationFrame(P.current),S(),P.current=requestAnimationFrame(()=>{s.observe(n)}))}),s.observe(n)),()=>{l.clear(),cancelAnimationFrame(P.current),g.removeEventListener("resize",l),s&&s.disconnect()}},[y,S,B]),Y(()=>{S()});const h=l=>{w||S(),p&&p(l)};return C.jsxs(a.Fragment,{children:[C.jsx("textarea",d({value:F,onChange:h,ref:A,rows:c,style:k},E)),C.jsx("textarea",{"aria-hidden":!0,className:e.className,readOnly:!0,ref:R,tabIndex:-1,style:d({},Ne.shadow,k,{paddingTop:0,paddingBottom:0})})]})}),De=["aria-describedby","autoComplete","autoFocus","className","color","components","componentsProps","defaultValue","disabled","disableInjectingGlobalStyles","endAdornment","error","fullWidth","id","inputComponent","inputProps","inputRef","margin","maxRows","minRows","multiline","name","onBlur","onChange","onClick","onFocus","onKeyDown","onKeyUp","placeholder","readOnly","renderSuffix","rows","size","slotProps","slots","startAdornment","type","value"],_e=(t,e)=>{const{ownerState:o}=t;return[e.root,o.formControl&&e.formControl,o.startAdornment&&e.adornedStart,o.endAdornment&&e.adornedEnd,o.error&&e.error,o.size==="small"&&e.sizeSmall,o.multiline&&e.multiline,o.color&&e[`color${ee(o.color)}`],o.fullWidth&&e.fullWidth,o.hiddenLabel&&e.hiddenLabel]},qe=(t,e)=>{const{ownerState:o}=t;return[e.input,o.size==="small"&&e.inputSizeSmall,o.multiline&&e.inputMultiline,o.type==="search"&&e.inputTypeSearch,o.startAdornment&&e.inputAdornedStart,o.endAdornment&&e.inputAdornedEnd,o.hiddenLabel&&e.inputHiddenLabel]},Ge=t=>{const{classes:e,color:o,disabled:p,error:u,endAdornment:c,focused:k,formControl:F,fullWidth:E,hiddenLabel:w,multiline:f,readOnly:A,size:m,startAdornment:R,type:y}=t,B={root:["root",`color${ee(o)}`,p&&"disabled",u&&"error",E&&"fullWidth",k&&"focused",F&&"formControl",m&&m!=="medium"&&`size${ee(m)}`,f&&"multiline",R&&"adornedStart",c&&"adornedEnd",w&&"hiddenLabel",A&&"readOnly"],input:["input",p&&"disabled",y==="search"&&"inputTypeSearch",f&&"inputMultiline",m==="small"&&"inputSizeSmall",w&&"inputHiddenLabel",R&&"inputAdornedStart",c&&"inputAdornedEnd",A&&"readOnly"]};return Ae(B,Be,e)},Ke=be("div",{name:"MuiInputBase",slot:"Root",overridesResolver:_e})(({theme:t,ownerState:e})=>d({},t.typography.body1,{color:(t.vars||t).palette.text.primary,lineHeight:"1.4375em",boxSizing:"border-box",position:"relative",cursor:"text",display:"inline-flex",alignItems:"center",[`&.${te.disabled}`]:{color:(t.vars||t).palette.text.disabled,cursor:"default"}},e.multiline&&d({padding:"4px 0 5px"},e.size==="small"&&{paddingTop:1}),e.fullWidth&&{width:"100%"})),Ue=be("input",{name:"MuiInputBase",slot:"Input",overridesResolver:qe})(({theme:t,ownerState:e})=>{const o=t.palette.mode==="light",p=d({color:"currentColor"},t.vars?{opacity:t.vars.opacity.inputPlaceholder}:{opacity:o?.42:.5},{transition:t.transitions.create("opacity",{duration:t.transitions.duration.shorter})}),u={opacity:"0 !important"},c=t.vars?{opacity:t.vars.opacity.inputPlaceholder}:{opacity:o?.42:.5};return d({font:"inherit",letterSpacing:"inherit",color:"currentColor",padding:"4px 0 5px",border:0,boxSizing:"content-box",background:"none",height:"1.4375em",margin:0,WebkitTapHighlightColor:"transparent",display:"block",minWidth:0,width:"100%",animationName:"mui-auto-fill-cancel",animationDuration:"10ms","&::-webkit-input-placeholder":p,"&::-moz-placeholder":p,"&:-ms-input-placeholder":p,"&::-ms-input-placeholder":p,"&:focus":{outline:0},"&:invalid":{boxShadow:"none"},"&::-webkit-search-decoration":{WebkitAppearance:"none"},[`label[data-shrink=false] + .${te.formControl} &`]:{"&::-webkit-input-placeholder":u,"&::-moz-placeholder":u,"&:-ms-input-placeholder":u,"&::-ms-input-placeholder":u,"&:focus::-webkit-input-placeholder":c,"&:focus::-moz-placeholder":c,"&:focus:-ms-input-placeholder":c,"&:focus::-ms-input-placeholder":c},[`&.${te.disabled}`]:{opacity:1,WebkitTextFillColor:(t.vars||t).palette.text.disabled},"&:-webkit-autofill":{animationDuration:"5000s",animationName:"mui-auto-fill"}},e.size==="small"&&{paddingTop:1},e.multiline&&{height:"auto",resize:"none",padding:0,paddingTop:0},e.type==="search"&&{MozAppearance:"textfield"})}),Ve=C.jsx(Ie,{styles:{"@keyframes mui-auto-fill":{from:{display:"block"}},"@keyframes mui-auto-fill-cancel":{from:{display:"block"}}}}),it=a.forwardRef(function(e,o){var p;const u=Fe({props:e,name:"MuiInputBase"}),{"aria-describedby":c,autoComplete:k,autoFocus:F,className:E,components:w={},componentsProps:f={},defaultValue:A,disabled:m,disableInjectingGlobalStyles:R,endAdornment:y,fullWidth:B=!1,id:S,inputComponent:P="input",inputProps:h={},inputRef:l,maxRows:n,minRows:g,multiline:s=!1,name:D,onBlur:z,onChange:O,onClick:W,onFocus:I,onKeyDown:x,onKeyUp:_,placeholder:q,readOnly:G,renderSuffix:oe,rows:L,slotProps:ne={},slots:re={},startAdornment:T,type:ie="text",value:xe}=u,ye=he(u,De),N=h.value!=null?h.value:xe,{current:K}=a.useRef(N!=null),H=a.useRef(),ve=a.useCallback(r=>{},[]),Ce=ge(H,l,h.ref,ve),[U,V]=a.useState(!1),i=Ee(),b=Pe({props:u,muiFormControl:i,states:["color","disabled","error","hiddenLabel","size","required","filled"]});b.focused=i?i.focused:U,a.useEffect(()=>{!i&&m&&U&&(V(!1),z&&z())},[i,m,U,z]);const Q=i&&i.onFilled,Z=i&&i.onEmpty,M=a.useCallback(r=>{Te(r)?Q&&Q():Z&&Z()},[Q,Z]);Y(()=>{K&&M({value:N})},[N,M,K]);const we=r=>{if(b.disabled){r.stopPropagation();return}I&&I(r),h.onFocus&&h.onFocus(r),i&&i.onFocus?i.onFocus(r):V(!0)},Re=r=>{z&&z(r),h.onBlur&&h.onBlur(r),i&&i.onBlur?i.onBlur(r):V(!1)},Se=(r,...ue)=>{if(!K){const de=r.target||H.current;if(de==null)throw new Error(He(1));M({value:de.value})}h.onChange&&h.onChange(r,...ue),O&&O(r,...ue)};a.useEffect(()=>{M(H.current)},[]);const ze=r=>{H.current&&r.currentTarget===r.target&&H.current.focus(),W&&W(r)};let J=P,v=h;s&&J==="input"&&(L?v=d({type:void 0,minRows:L,maxRows:L},v):v=d({type:void 0,maxRows:n,minRows:g},v),J=$e);const ke=r=>{M(r.animationName==="mui-auto-fill-cancel"?H.current:{value:"x"})};a.useEffect(()=>{i&&i.setAdornedStart(!!T)},[i,T]);const j=d({},u,{color:b.color||"primary",disabled:b.disabled,endAdornment:y,error:b.error,focused:b.focused,formControl:i,fullWidth:B,hiddenLabel:b.hiddenLabel,multiline:s,size:b.size,startAdornment:T,type:ie}),ae=Ge(j),le=re.root||w.Root||Ke,X=ne.root||f.root||{},se=re.input||w.Input||Ue;return v=d({},v,(p=ne.input)!=null?p:f.input),C.jsxs(a.Fragment,{children:[!R&&Ve,C.jsxs(le,d({},X,!fe(le)&&{ownerState:d({},j,X.ownerState)},{ref:o,onClick:ze},ye,{className:ce(ae.root,X.className,E,G&&"MuiInputBase-readOnly"),children:[T,C.jsx(We.Provider,{value:null,children:C.jsx(se,d({ownerState:j,"aria-invalid":b.error,"aria-describedby":c,autoComplete:k,autoFocus:F,defaultValue:A,disabled:b.disabled,id:S,onAnimationStart:ke,name:D,placeholder:q,readOnly:G,required:b.required,rows:L,value:N,onKeyDown:x,onKeyUp:_,type:ie},v,!fe(se)&&{as:J,ownerState:d({},j,v.ownerState)},{ref:Ce,className:ce(ae.input,v.className,G&&"MuiInputBase-readOnly"),onBlur:Re,onChange:Se,onFocus:we}))}),y,oe?oe(d({},b,{startAdornment:T})):null]}))]})});export{it as I,Ke as a,Ue as b,qe as i,_e as r};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{j as e}from"./jsx-runtime-CnH95YSl.js";import{useMDXComponents as s}from"./index-BeeV6X6A.js";import{M as a}from"./index-
|
|
1
|
+
import{j as e}from"./jsx-runtime-CnH95YSl.js";import{useMDXComponents as s}from"./index-BeeV6X6A.js";import{M as a}from"./index-DLgQDw3r.js";import{M as r}from"./index.modern-CkASn_bb.js";import"./index-NdkWRN8K.js";import"./_commonjsHelpers-gnU0ypJ3.js";import"./iframe-Cf-Lpz6Y.js";import"./index-BJTM6NaI.js";import"./index-B5xazMy1.js";import"./index-DieBXP3Z.js";import"./index-CXQShRbs.js";import"./index-DrFu-skq.js";const i=`# @okta/odyssey-react-mui
|
|
2
2
|
|
|
3
3
|
## Production Readiness
|
|
4
4
|
|