@preply/ds-docs 9.0.1 → 9.1.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/{00.LayoutFlex.stories-BCNMygVE.js → 00.LayoutFlex.stories-BYXnY64p.js} +1 -1
- package/dist/assets/{00.applications-Cj9uC86n.js → 00.applications-BsH2V3W_.js} +1 -1
- package/dist/assets/{00.favicons.guide-C-C9jg3T.js → 00.favicons.guide-eBYOUVUH.js} +1 -1
- package/dist/assets/{00.token-explorer-C4LAzVZX.js → 00.token-explorer-B2ulyaA-.js} +1 -1
- package/dist/assets/{00.using-responsive-props-B7byf0gx.js → 00.using-responsive-props-CTjUYXUc.js} +1 -1
- package/dist/assets/{01.semantic-tokens-Dnr3rSdi.js → 01.semantic-tokens-DaqL26gu.js} +1 -1
- package/dist/assets/{01.using-shorthand-props-Bj8N2oP4.js → 01.using-shorthand-props-CwDUu5-3.js} +1 -1
- package/dist/assets/{10.Combinations.stories-DCuScgXp.js → 10.Combinations.stories-DyRUlGlL.js} +1 -1
- package/dist/assets/{10.fonts.guide-CU8dMBRc.js → 10.fonts.guide-DeXmgJeZ.js} +1 -1
- package/dist/assets/{10.ssr-BJUSHkUL.js → 10.ssr-Cc4-BW5H.js} +1 -1
- package/dist/assets/11.fonts.explorer-ZD_-8450.js +2 -0
- package/dist/assets/{11.ssr.app-router-BAmVsjxv.js → 11.ssr.app-router-D1SE_zWj.js} +1 -1
- package/dist/assets/{20.libraries-dgsYSyEH.js → 20.libraries-DfhUsp74.js} +1 -1
- package/dist/assets/{2025-q4-ds-cleanup-BD1l2a2v.js → 2025-q4-ds-cleanup-DGnTtnn3.js} +1 -1
- package/dist/assets/{30.icons.explorer-CS4d6zHG.js → 30.icons.explorer-D0CP2r0K.js} +1 -1
- package/dist/assets/{30.storybook-BKiYDtg1.js → 30.storybook-fiICi3pf.js} +1 -1
- package/dist/assets/{40.illustrations.explorer-dyGWgv36.js → 40.illustrations.explorer-BAusB8PF.js} +1 -1
- package/dist/assets/{90.advanced-BK6rI0l2.js → 90.advanced-DcSeiSZJ.js} +1 -1
- package/dist/assets/{Accordion-K_j-43HZ.js → Accordion-BEPo4ld1.js} +4 -4
- package/dist/assets/{Accordion.stories-CjbasC68.js → Accordion.stories-BQqvv6_w.js} +1 -1
- package/dist/assets/{Accordion.tests.stories-_cRdUDSo.js → Accordion.tests.stories-CbPTut9X.js} +1 -1
- package/dist/assets/{AlertBanner.primitives.stories-JMCCPJnr.js → AlertBanner.primitives.stories-B8wM25gx.js} +1 -1
- package/dist/assets/{AlertBanner.stories-C8GUF7vm.js → AlertBanner.stories-CMG9DJ2x.js} +1 -1
- package/dist/assets/{AlertBannerText-D_GhSx4T.js → AlertBannerText-CmhnTe_E.js} +43 -43
- package/dist/assets/{AlertDialog.stories-Dgq01GlN.js → AlertDialog.stories-DizQy7gK.js} +1 -1
- package/dist/assets/{Avatar-B1YmiX3C.js → Avatar-DooDODLU.js} +1 -1
- package/dist/assets/{Avatar.stories-CaGLIDv1.js → Avatar.stories-D7qshDw_.js} +1 -1
- package/dist/assets/{AvatarWithStatus.stories-CQhlZknK.js → AvatarWithStatus.stories-Dj6jZHHV.js} +1 -1
- package/dist/assets/{Badge-gJPjBeZA.js → Badge-BOSHGFZw.js} +2 -2
- package/dist/assets/{Badge.stories-BX3zOvcz.js → Badge.stories-D2WAGDpD.js} +1 -1
- package/dist/assets/{Box.stories-D1-aaP7y.js → Box.stories-CHbntlOv.js} +1 -1
- package/dist/assets/{BubbleCounter.stories-BheNu2XE.js → BubbleCounter.stories-DTv3QqdJ.js} +1 -1
- package/dist/assets/{Button-Dq9U-x_2.js → Button-C8B7W2Qo.js} +1 -1
- package/dist/assets/{Button-DGeBRRiu.js → Button-KCBOR544.js} +3 -3
- package/dist/assets/{Button.stories-kWB87Dip.js → Button.stories-pEk6dWrs.js} +1 -1
- package/dist/assets/{ButtonBase-DNBAX75l.js → ButtonBase-D1x6yeKi.js} +2 -2
- package/dist/assets/{CalloutBanner.stories-imF3pWrO.js → CalloutBanner.stories-C-mTLhQp.js} +21 -21
- package/dist/assets/{Checkbox-C_2Ntdn7.js → Checkbox-BpQ-rwun.js} +3 -3
- package/dist/assets/{Checkbox.stories-BR1rzo3V.js → Checkbox.stories-DsN55u_O.js} +1 -1
- package/dist/assets/{Checkbox.tests.stories-DLHzbR-3.js → Checkbox.tests.stories-Bep_STbH.js} +1 -1
- package/dist/assets/{Chips.stories-DyyZPrDy.js → Chips.stories-Da8J7RES.js} +1 -1
- package/dist/assets/{Color-ASIRERSW-BLBT1VcA.js → Color-ASIRERSW-DWyFOMGN.js} +1 -1
- package/dist/assets/{ComposingPopovers.stories-lwiwkDau.js → ComposingPopovers.stories-qqCHKKj8.js} +1 -1
- package/dist/assets/CountryFlag-CSGb4nau.js +49 -0
- package/dist/assets/{CountryFlag.stories-7UiE4oBf.js → CountryFlag.stories-DQpEMYMX.js} +1 -1
- package/dist/assets/{CountryFlag.test.stories-OR19SNon.js → CountryFlag.test.stories-CzcCUxia.js} +1 -1
- package/dist/assets/{Dialog-CKmITsZc.js → Dialog-Bmg2gpCM.js} +3 -3
- package/dist/assets/Dialog.primitives-DLgD-yog.css +1 -0
- package/dist/assets/Dialog.primitives.stories-CSDdsj-9.js +213 -0
- package/dist/assets/Dialog.stories-BfS-yGJK.js +248 -0
- package/dist/assets/{Dialog.test.stories-gNvLYcCQ.js → Dialog.test.stories-DngMxsX4.js} +4 -4
- package/dist/assets/{DialogActions-BVsjnGkp.js → DialogActions-DTUDyqFX.js} +36 -36
- package/dist/assets/DialogTitle-8iZEMHpI.css +1 -0
- package/dist/assets/{DialogTitle-C_7Sfj1O.js → DialogTitle-DJPc1ITB.js} +55 -55
- package/dist/assets/DismissibleChips-CRFGhm8B.js +1 -0
- package/dist/assets/{DismissibleChips.stories-DgeyF-ao.js → DismissibleChips.stories-Bi-ob_1G.js} +1 -1
- package/dist/assets/{Divider-CBYEIgmI.js → Divider-CPpmQZmq.js} +1 -1
- package/dist/assets/{Divider.stories-C12psIEV.js → Divider.stories-CfHb5qbc.js} +1 -1
- package/dist/assets/{DocsRenderer-GHJI37HO-CG8Y-g_n.js → DocsRenderer-GHJI37HO-DtP4EKUP.js} +2 -2
- package/dist/assets/{DropdownMenu-CHmY9MEd.js → DropdownMenu-N9_otewg.js} +456 -456
- package/dist/assets/{DropdownMenu.stories-BFi_X5F2.js → DropdownMenu.stories-CEAGHTed.js} +1 -1
- package/dist/assets/{FieldButton-yd6DmWvU.js → FieldButton-CCXniKhy.js} +1 -1
- package/dist/assets/{FieldButton.stories-D9JBtr4O.js → FieldButton.stories-CJM_6H-S.js} +1 -1
- package/dist/assets/{FormControl-CzKrRqYA.js → FormControl-CygcWV_h.js} +1 -1
- package/dist/assets/{FormControl.stories-B9EOoEVt.js → FormControl.stories-C5u8y2E-.js} +1 -1
- package/dist/assets/{Heading-BFtiYfNT.js → Heading-Bie8QWaf.js} +1 -1
- package/dist/assets/{Heading.stories-D69YSRMR.js → Heading.stories-D0fztdY8.js} +1 -1
- package/dist/assets/{Icon-C5UQdb5e.js → Icon-BX3I9JNh.js} +2 -2
- package/dist/assets/{Icon-RSC-BiLq__Ve.js → Icon-RSC-D3qlB5DK.js} +1 -1
- package/dist/assets/{Icon.stories-D7NEwDBE.js → Icon.stories-By891-S7.js} +1 -1
- package/dist/assets/IconButton-DVKNd7ZK.js +8 -0
- package/dist/assets/{IconTile.stories-BELcbM0x.js → IconTile.stories-Dns_iBHK.js} +1 -1
- package/dist/assets/{Input-CY8WPfKe.js → Input-DwA6-keB.js} +19 -19
- package/dist/assets/{InputContainer-D7ZAPKi0.js → InputContainer-BM2ePliH.js} +1 -1
- package/dist/assets/{IntegrationWithReactHookForm.stories-DAkZZlj1.js → IntegrationWithReactHookForm.stories-mIoeMj7y.js} +1 -1
- package/dist/assets/{IntlFormattedCurrency.stories-DOB_mJMJ.js → IntlFormattedCurrency.stories-7qKke3dW.js} +9 -9
- package/dist/assets/{IntlFormattedDateTime.stories-Bb0wYsKS.js → IntlFormattedDateTime.stories-C2pI0ems.js} +7 -7
- package/dist/assets/{LayoutFlex-DJchK3Ku.js → LayoutFlex-0WdUDfah.js} +1 -1
- package/dist/assets/{LayoutFlex-8VEpbYm2.js → LayoutFlex-BnIoY5YK.js} +1 -1
- package/dist/assets/{LayoutFlexItem-veclhYXd.js → LayoutFlexItem-9sCC-db-.js} +1 -1
- package/dist/assets/{LayoutGrid-DRM7laCZ.js → LayoutGrid-DfyCnoOo.js} +1 -1
- package/dist/assets/{LayoutGrid-ClN55Wfu.js → LayoutGrid-DqPWofJQ.js} +1 -1
- package/dist/assets/{LayoutGrid.stories-DVMweKlV.js → LayoutGrid.stories-CPzyKie2.js} +1 -1
- package/dist/assets/{LayoutGridItem-ZgShiMY6.js → LayoutGridItem-BhNbXpRk.js} +1 -1
- package/dist/assets/{Link-A5JmQWbD.js → Link-C686zlPi.js} +2 -2
- package/dist/assets/{Link.stories-B2hbErdK.js → Link.stories-NTXG_YAN.js} +1 -1
- package/dist/assets/{Loader.stories-DjT9WSa0.js → Loader.stories-CobXaiZW.js} +1 -1
- package/dist/assets/MultiSelectChips-DJ1p23QD.js +2 -0
- package/dist/assets/{MultiSelectChips.stories-FaaktENh.js → MultiSelectChips.stories-D8qk9Xh6.js} +1 -1
- package/dist/assets/{NativeSelectField.stories-BOCQBvr9.js → NativeSelectField.stories-BDO41u_T.js} +22 -22
- package/dist/assets/NumberField-DmosE2JM.js +6 -0
- package/dist/assets/{NumberField.stories-FCP9vR30.js → NumberField.stories-Dcw2SaBe.js} +1 -1
- package/dist/assets/{ObserveIntersection-CQkIW63_.js → ObserveIntersection-Be6WqdPA.js} +2 -2
- package/dist/assets/{ObserveIntersection.stories-gQnws4dC.js → ObserveIntersection.stories-DZmhDs2t.js} +1 -1
- package/dist/assets/{OnboardingTooltip-BZ24KrQu.js → OnboardingTooltip-CsTure6K.js} +1 -1
- package/dist/assets/{OnboardingTooltip.stories-CtzOLUxN.js → OnboardingTooltip.stories-C_B-G4_v.js} +1 -1
- package/dist/assets/{OnboardingTooltip.tests.stories-BNw7iy_w.js → OnboardingTooltip.tests.stories-CpZhGhGz.js} +1 -1
- package/dist/assets/{OnboardingTour-Dn-m2m1d.js → OnboardingTour-Dsl4caiq.js} +1 -1
- package/dist/assets/{OnboardingTour.stories-6zCHX4V0.js → OnboardingTour.stories-DqC8M1Kd.js} +2 -2
- package/dist/assets/{OnboardingTour.tests.stories-CW9B-QMs.js → OnboardingTour.tests.stories-DGFSuiWj.js} +1 -1
- package/dist/assets/PasswordField-DQuar8x2.js +6 -0
- package/dist/assets/{PasswordField.stories-C0mB2e5u.js → PasswordField.stories-CZeXEfzi.js} +1 -1
- package/dist/assets/{PreplyLogo.stories-CZG5H-Pd.js → PreplyLogo.stories-shAJfg57.js} +1 -1
- package/dist/assets/{ProgressBar.stories-fPxhHJbx.js → ProgressBar.stories-iYTaP7-a.js} +1 -1
- package/dist/assets/{ProgressSteps-DENeSjPR.js → ProgressSteps-Dq6mpMpu.js} +1 -1
- package/dist/assets/{ProgressSteps.stories-DzXqXJeY.js → ProgressSteps.stories-DHMPLYQI.js} +1 -1
- package/dist/assets/{PromoDialog-BsePIPb7.js → PromoDialog-D8vw3Grl.js} +1 -1
- package/dist/assets/{RangeSlider-93BZWuvB.js → RangeSlider-Bhq0kPco.js} +1 -1
- package/dist/assets/{RangeSlider.stories-JyNrkPT0.js → RangeSlider.stories-g3pQNpDu.js} +1 -1
- package/dist/assets/{Rating.stories-NVs2SdN3.js → Rating.stories-CjioX0Al.js} +1 -1
- package/dist/assets/{RatingInput.stories-DcP1qONO.js → RatingInput.stories-D33p4lyo.js} +2 -2
- package/dist/assets/{SelectField-DpD7wOTW.js → SelectField-Dndb8yfM.js} +14 -14
- package/dist/assets/{SelectField.stories-Bo0V_Tu3.js → SelectField.stories-CvIWxsEK.js} +1 -1
- package/dist/assets/{ShowOnIntersection.stories-D8dDbLPb.js → ShowOnIntersection.stories-dFG1F9xz.js} +1 -1
- package/dist/assets/SingleSelectChips-BqEBu1qF.js +2 -0
- package/dist/assets/{SingleSelectChips.stories-BY1rIhey.js → SingleSelectChips.stories-CUP8Bkco.js} +1 -1
- package/dist/assets/{Slider-BEvY5ahD.js → Slider-BECc3Wis.js} +1 -1
- package/dist/assets/{Slider.stories-7tdok1Lu.js → Slider.stories-DjmgzkjU.js} +1 -1
- package/dist/assets/{Spinner-DMKptX0-.js → Spinner-lj2QA4al.js} +1 -1
- package/dist/assets/{Stars-B0SlHGua.js → Stars-jpVWvTeN.js} +1 -1
- package/dist/assets/{Steps-CmKCNz9h.js → Steps-GOg1wsKY.js} +1 -1
- package/dist/assets/{Steps.stories-DnK825vX.js → Steps.stories-kIC1j0Ik.js} +1 -1
- package/dist/assets/{Switch-bEvpJ3Q9.js → Switch-7aX4SIla.js} +1 -1
- package/dist/assets/{Switch.stories-BsJzpmTT.js → Switch.stories-DT7OULK4.js} +1 -1
- package/dist/assets/{Text-s7kR65wV.js → Text-CmJvwKqR.js} +1 -1
- package/dist/assets/{Text-DadiF3bg.js → Text-cq49jjad.js} +1 -1
- package/dist/assets/{Text.stories-BpH1Ii1L.js → Text.stories-CS1pqas4.js} +1 -1
- package/dist/assets/TextField-BkMawuql.js +6 -0
- package/dist/assets/{TextField.stories-2DsJRJA-.js → TextField.stories-CzFG171A.js} +1 -1
- package/dist/assets/{TextHighlighted.stories-DJRCNwVQ.js → TextHighlighted.stories-CLRQJAB8.js} +1 -1
- package/dist/assets/{TextInline.stories-Y4zpFEDV.js → TextInline.stories-DSzsl_kb.js} +1 -1
- package/dist/assets/{TextareaField-Dgl4xame.js → TextareaField-DBMUxHiI.js} +23 -23
- package/dist/assets/{TextareaField.stories-BJtFz_Du.js → TextareaField.stories-CUD2MBoL.js} +1 -1
- package/dist/assets/{Toast.stories-BVf0GuVo.js → Toast.stories-DPD668gP.js} +1 -1
- package/dist/assets/{TokyoUIAttach-CuccI8mX.js → TokyoUIAttach-BtX3U917.js} +1 -1
- package/dist/assets/{TokyoUIAvailability7LateNight-Bu_wDbHq.js → TokyoUIAvailability7LateNight-CjHQEFhh.js} +1 -1
- package/dist/assets/{TokyoUICheck-CBZ8cyGE.js → TokyoUICheck-DfGyg7qp.js} +1 -1
- package/dist/assets/{TokyoUICheckmark-Cz_YL9lO.js → TokyoUICheckmark-CittwpP4.js} +1 -1
- package/dist/assets/{TokyoUIChevronDown-CpJTAVH5.js → TokyoUIChevronDown-D9z1Bocr.js} +1 -1
- package/dist/assets/{TokyoUIChevronRight-BQJATqWN.js → TokyoUIChevronRight-DQBrjC0F.js} +1 -1
- package/dist/assets/{TokyoUIClose-CdBZGlA7.js → TokyoUIClose-C1pVTvLz.js} +1 -1
- package/dist/assets/{TokyoUIEmojiFrowning-DlNteo5p.js → TokyoUIEmojiFrowning-D-sR3DAq.js} +1 -1
- package/dist/assets/{TokyoUIErrorWarning-CxGVa-_Z.js → TokyoUIErrorWarning-CDZ53m2_.js} +1 -1
- package/dist/assets/{TokyoUIExerciseClosedGapsJumble-C8EDtq9l.js → TokyoUIExerciseClosedGapsJumble-DYuDUGYW.js} +1 -1
- package/dist/assets/{TokyoUIEye-CuEqusRx.js → TokyoUIEye-Bgb_ZF1l.js} +1 -1
- package/dist/assets/{TokyoUIFav-0uWF_TDx.js → TokyoUIFav-B1z6F-nK.js} +1 -1
- package/dist/assets/{TokyoUIInfo-CIEgGZLb.js → TokyoUIInfo-CwPA0O_V.js} +1 -1
- package/dist/assets/{TokyoUILanguage-BCWaVqWU.js → TokyoUILanguage-Cnby-Siw.js} +1 -1
- package/dist/assets/{TokyoUILibraryExplore-B--iVn5l.js → TokyoUILibraryExplore-D3Zqdc29.js} +1 -1
- package/dist/assets/{TokyoUILock-CYuXl3qM.js → TokyoUILock-BVVVVd2O.js} +1 -1
- package/dist/assets/{TokyoUIMessages-D58TZTzG.js → TokyoUIMessages-B0IlDk1q.js} +1 -1
- package/dist/assets/{TokyoUIMinus-CPkUsesB.js → TokyoUIMinus-Bev2a7lF.js} +1 -1
- package/dist/assets/{TokyoUINotebook-Sko1JO2r.js → TokyoUINotebook-BCMFA3qu.js} +1 -1
- package/dist/assets/{TokyoUINotesWithPad-Bg9LPtgb.js → TokyoUINotesWithPad-Bi4bu_3q.js} +1 -1
- package/dist/assets/{TokyoUIPhone-BEiSZYPc.js → TokyoUIPhone-CX3CAtW4.js} +1 -1
- package/dist/assets/{TokyoUISettings-mcnFb11P.js → TokyoUISettings-BlCV0s5R.js} +1 -1
- package/dist/assets/{TokyoUISparkle-BrtqBicw.js → TokyoUISparkle-C5euAhof.js} +1 -1
- package/dist/assets/{TokyoUIStarFilled-CJDgeuMD.js → TokyoUIStarFilled-Dm7Rk3-6.js} +1 -1
- package/dist/assets/{TokyoUITag-Clpp0JxY.js → TokyoUITag-CxUsuh1h.js} +1 -1
- package/dist/assets/{TokyoUIUpload-CPhgdTOp.js → TokyoUIUpload-C50QSO0I.js} +1 -1
- package/dist/assets/{TokyoUIUser-CytSxWM9.js → TokyoUIUser-Cb3Rabu0.js} +1 -1
- package/dist/assets/{Tooltip-RkXcTs0t.js → Tooltip-Zk6DNyQp.js} +1 -1
- package/dist/assets/{Tooltip.stories-CBLbLc_w.js → Tooltip.stories-DvCDg7L5.js} +1 -1
- package/dist/assets/{Tooltip.tests.stories-C7UdOp5j.js → Tooltip.tests.stories-DhLZuVsr.js} +1 -1
- package/dist/assets/{VisuallyHidden-Ck1Kevby.js → VisuallyHidden-lSSiGvdb.js} +1 -1
- package/dist/assets/{WithTooltip-IO6J4KBT-D16YMXZO.js → WithTooltip-IO6J4KBT-BXUfDxdY.js} +1 -1
- package/dist/assets/{align-self-DF2HdNLf.js → align-self-kXdO3hx1.js} +1 -1
- package/dist/assets/{axe-DGWcnrmP.js → axe-D9-qZHEg.js} +1 -1
- package/dist/assets/{breakpoints-D16MO9BL.js → breakpoints-C7qnntd1.js} +1 -1
- package/dist/assets/{breakpoints-DoQjZnZv.js → breakpoints-Cmpvj56z.js} +1 -1
- package/dist/assets/{breakpoints-BT11HiNp.js → breakpoints-QW-40zGS.js} +1 -1
- package/dist/assets/{changelog--yKJfcPf.js → changelog-BWMxpTM2.js} +26 -1
- package/dist/assets/{client-BT9FXva8.js → client-DvDoBCIp.js} +1 -1
- package/dist/assets/componentNames-hc9KR2nX.js +1 -0
- package/dist/assets/{constants-k1WYvB4V.js → constants-6ClT3n6m.js} +47 -47
- package/dist/assets/createRequiredContext-63KJmEaI.js +241 -0
- package/dist/assets/fonts-explorer-BKje7Hq_.css +1 -0
- package/dist/assets/fonts-explorer.stories-DP7h1C3f.js +130 -0
- package/dist/assets/{formatter-QJ4M4OGQ-6tp9RKud.js → formatter-QJ4M4OGQ-kybJ6bB6.js} +1 -1
- package/dist/assets/{getTokenVar-DT9EHDfD.js → getTokenVar-CszfVUbW.js} +1 -1
- package/dist/assets/getTokenVar-DntuTYid.js +1 -0
- package/dist/assets/{gradientBorders-DTKu2Po4.js → gradientBorders-DRFre4M2.js} +1 -1
- package/dist/assets/{hover-BJvzh5lj.js → hover-D3OYWSUH.js} +1 -1
- package/dist/assets/{hover-C1gpRujJ.js → hover-DLl5EEx6.js} +1 -1
- package/dist/assets/{hover-CA54fPeb.js → hover-DVoxXiPd.js} +1 -1
- package/dist/assets/{iframe-rPxPheSO.js → iframe-CpMEswOF.js} +16 -16
- package/dist/assets/iframe-DR4kltvM.css +1 -0
- package/dist/assets/index-9rU-ZrVj.js +75 -0
- package/dist/assets/{index-DxeZSyRS.js → index-B_7ihsZD.js} +1 -1
- package/dist/assets/{index-Bzd5dlB9.js → index-Cc28ZUNU.js} +1 -1
- package/dist/assets/{index-Ch8cwrP-.js → index-DT-MbRPK.js} +1 -1
- package/dist/assets/{index-D5hhDObe.js → index-IVtS1ZoW.js} +1 -1
- package/dist/assets/{index-CHV8c6AM.js → index-dUCHvwfu.js} +1 -1
- package/dist/assets/{index-AkiTKRT4.js → index-jLr7d-Kb.js} +1 -1
- package/dist/assets/{intro-C95-vT5U.js → intro-1RVcci_B.js} +1 -1
- package/dist/assets/{layout-relative-BfaWqLn8.js → layout-relative-Bq7IHzTJ.js} +1 -1
- package/dist/assets/{layout-relative.module-1z75aSwo-Btp4KtwY.js → layout-relative.module-1z75aSwo-B4ha7m6U.js} +1 -1
- package/dist/assets/{layout-relative.module-D5jJ_Wjz.js → layout-relative.module-Bhi7U482.js} +1 -1
- package/dist/assets/{mcp-DG0oSwJ_.js → mcp-D4dEnAH6.js} +1 -1
- package/dist/assets/{message-CVBYHxuJ.js → message-CTdBLxyt.js} +1 -1
- package/dist/assets/{migrating-from-less-Dl58ybrk.js → migrating-from-less-DyPFNe_D.js} +1 -1
- package/dist/assets/{playground.stories-CPGFTUrj.js → playground.stories-Cd-KauE2.js} +1 -1
- package/dist/assets/{react-18-CuwswiWa.js → react-18-B6ZQhKaW.js} +1 -1
- package/dist/assets/{render-icon-CDgYoeDK.js → render-icon-CiYBms-s.js} +1 -1
- package/dist/assets/{render-icon-CYz0RSbb.js → render-icon-c7okze1K.js} +1 -1
- package/dist/assets/{shared-strings-DqJVAlTT.js → shared-strings-BChji30Y.js} +1 -1
- package/dist/assets/{styled-components.browser.esm-DNrL5PLt.js → styled-components.browser.esm-Cm3dhVk9.js} +1 -1
- package/dist/assets/{styled-components.browser.esm-Do9--Umw.js → styled-components.browser.esm-DsMoKq9m.js} +1 -1
- package/dist/assets/{syntaxhighlighter-IQDEPFLK-CDCuyLmW.js → syntaxhighlighter-IQDEPFLK-ckmVX3NN.js} +1 -1
- package/dist/assets/{text-accent-DectBi3u.js → text-accent-DZ_ihUdH.js} +1 -1
- package/dist/assets/{text-centered-DrGkZ2FI.js → text-centered-B26ac1NU.js} +1 -1
- package/dist/assets/{text-centered-nlNU1AO2.js → text-centered-DiwR-QSx.js} +1 -1
- package/dist/assets/{tokens-DlIhIRgz.js → tokens-5M__FcH-.js} +1 -1
- package/dist/assets/{tokens-Cpg5Tsa3.js → tokens-B_sXFQpU.js} +1 -1
- package/dist/assets/{tokens-CXDURKfu.js → tokens-DO-XJjoF.js} +1 -1
- package/dist/assets/{tokens-DVFIp8cS.js → tokens-DTCyqZ0W.js} +1 -1
- package/dist/assets/{useControllableState-BGQSGH6e.js → useControllableState-ouxkeS_b.js} +1 -1
- package/dist/assets/useHostname-BVhrcDgi.js +1 -0
- package/dist/assets/{useMergeRefs-B0tLxB64.js → useMergeRefs-BVh7Ch_S.js} +1 -1
- package/dist/assets/{useMergeRefs-D3-2wqPW.js → useMergeRefs-DkQLsYW4.js} +1 -1
- package/dist/assets/{useOpenInteractionType-DLe0t7DD.js → useOpenInteractionType-BBP_TXgz.js} +1 -1
- package/dist/assets/{usePortalElement-2Z6Vojwe.js → usePortalElement-Cm2Hqn3J.js} +1 -1
- package/dist/assets/{useStableCallback-CM7WIg73.js → useStableCallback-DHq1eG2Q.js} +1 -1
- package/dist/assets/{useToken-Dbb7YMsn.js → useToken-CX1vf7pV.js} +1 -1
- package/dist/assets/{welcome-7UdPDmAm.js → welcome-CNokV_38.js} +1 -1
- package/dist/assets/{zeroheight-V0-az0nn.js → zeroheight-8zVSToXs.js} +1 -1
- package/dist/iframe.html +2 -2
- package/dist/index.json +1 -1
- package/dist/preview-stats.json +10104 -10065
- package/dist/project.json +1 -1
- package/package.json +5 -5
- package/pages/30.guides/70.assets/11.fonts.explorer.mdx +4 -8
- package/pages/30.guides/70.assets/components/IllustrationsList.tsx +1 -0
- package/pages/30.guides/70.assets/fonts-explorer.stories.tsx +14 -0
- package/dist/assets/11.fonts-DNWYfYg9.css +0 -1
- package/dist/assets/11.fonts.explorer-BkYx16R6.js +0 -130
- package/dist/assets/CountryFlag-CIdWr2XO.js +0 -49
- package/dist/assets/Dialog.primitives-Bjw8AO3e.css +0 -1
- package/dist/assets/Dialog.primitives.stories-BdTs3FLi.js +0 -246
- package/dist/assets/Dialog.stories-JSWOh9Dn.js +0 -251
- package/dist/assets/DialogTitle-CiauK9kk.css +0 -1
- package/dist/assets/DismissibleChips-Ban3NVPS.js +0 -1
- package/dist/assets/IconButton-ClS7adSJ.js +0 -8
- package/dist/assets/MultiSelectChips-DidzFDbd.js +0 -2
- package/dist/assets/NumberField-UaAR3tKE.js +0 -6
- package/dist/assets/PasswordField-BZzwsMwt.js +0 -6
- package/dist/assets/SingleSelectChips-k-EE7r6U.js +0 -2
- package/dist/assets/TextField-C5NAs2Cw.js +0 -6
- package/dist/assets/componentNames-Dts5uwdK.js +0 -1
- package/dist/assets/createRequiredContext-Co5wTaFA.js +0 -241
- package/dist/assets/getTokenVar-C2EwRMHN.js +0 -1
- package/dist/assets/iframe-u_WKqRSx.css +0 -1
- package/dist/assets/index-jKLBZczP.js +0 -75
- package/dist/assets/useHostname-CSCtqnDM.js +0 -1
package/dist/assets/{NativeSelectField.stories-BOCQBvr9.js → NativeSelectField.stories-BDO41u_T.js}
RENAMED
|
@@ -1,41 +1,41 @@
|
|
|
1
|
-
import{r as V,g as me,j as t}from"./iframe-
|
|
2
|
-
For internal use only.`,displayName:"NativeSelect",props:{autoComplete:{defaultValue:null,description:"",name:"autoComplete",required:!1,type:{name:"enum",value:[{value:"string"}]}},disabled:{defaultValue:null,description:"",name:"disabled",required:!1,type:{name:"enum",value:[{value:"false"},{value:"true"}]}},form:{defaultValue:null,description:"",name:"form",required:!1,type:{name:"enum",value:[{value:"string"}]}},multiple:{defaultValue:null,description:"",name:"multiple",required:!1,type:{name:"enum",value:[{value:"false"},{value:"true"}]}},name:{defaultValue:null,description:"",name:"name",required:!1,type:{name:"enum",value:[{value:"string"}]}},required:{defaultValue:null,description:"",name:"required",required:!1,type:{name:"enum",value:[{value:"false"},{value:"true"}]}},size:{defaultValue:null,description:"",name:"size",required:!1,type:{name:"enum",value:[{value:"number"}]}},value:{defaultValue:null,description:"",name:"value",required:!1,type:{name:"enum",value:[{value:"string"},{value:"number"},{value:"readonly string[]"}]}},onChange:{defaultValue:null,description:"",name:"onChange",required:!1,type:{name:"enum",value:[{value:"ChangeEventHandler<HTMLSelectElement>"}]}},defaultChecked:{defaultValue:null,description:"",name:"defaultChecked",required:!1,type:{name:"enum",value:[{value:"false"},{value:"true"}]}},defaultValue:{defaultValue:null,description:"",name:"defaultValue",required:!1,type:{name:"enum",value:[{value:"string"},{value:"number"},{value:"readonly string[]"}]}},suppressContentEditableWarning:{defaultValue:null,description:"",name:"suppressContentEditableWarning",required:!1,type:{name:"enum",value:[{value:"false"},{value:"true"}]}},suppressHydrationWarning:{defaultValue:null,description:"",name:"suppressHydrationWarning",required:!1,type:{name:"enum",value:[{value:"false"},{value:"true"}]}},accessKey:{defaultValue:null,description:"",name:"accessKey",required:!1,type:{name:"enum",value:[{value:"string"}]}},autoCapitalize:{defaultValue:null,description:"",name:"autoCapitalize",required:!1,type:{name:"enum",value:[{value:'"off"'},{value:'"none"'},{value:'"on"'},{value:'"sentences"'},{value:'"words"'},{value:'"characters"'},{value:"string & {}"}]}},autoFocus:{defaultValue:null,description:"",name:"autoFocus",required:!1,type:{name:"enum",value:[{value:"false"},{value:"true"}]}},className:{defaultValue:null,description:"",name:"className",required:!1,type:{name:"enum",value:[{value:"string"}]}},contentEditable:{defaultValue:null,description:"",name:"contentEditable",required:!1,type:{name:"enum",value:[{value:"false"},{value:"true"},{value:'"
|
|
3
|
-
@see {@link https://html.spec.whatwg.org/multipage/interaction.html#input-modalities:-the-inputmode-attribute}`,name:"inputMode",required:!1,type:{name:"enum",value:[{value:'"url"'},{value:'"
|
|
4
|
-
@see {@link https://html.spec.whatwg.org/multipage/custom-elements.html#attr-is}`,name:"is",required:!1,type:{name:"enum",value:[{value:"string"}]}},"aria-activedescendant":{defaultValue:null,description:"Identifies the currently active element when DOM focus is on a composite widget, textbox, group, or application.",name:"aria-activedescendant",required:!1,type:{name:"enum",value:[{value:"string"}]}},"aria-atomic":{defaultValue:null,description:"Indicates whether assistive technologies will present all, or only parts of, the changed region based on the change notifications defined by the aria-relevant attribute.",name:"aria-atomic",required:!1,type:{name:"enum",value:[{value:"false"},{value:"true"},{value:'"
|
|
1
|
+
import{r as V,g as me,j as t}from"./iframe-CpMEswOF.js";import{F as ce}from"./TokyoUILanguage-Cnby-Siw.js";import{I as D}from"./Icon-BX3I9JNh.js";import{F as he}from"./FormControl-CygcWV_h.js";import{F as ge}from"./TokyoUIChevronDown-D9z1Bocr.js";import{I as Ee,s as He}from"./InputContainer-BM2ePliH.js";import{w as pe}from"./componentNames-hc9KR2nX.js";import"./preload-helper-Dp1pzeXC.js";import"./text-accent-DZ_ihUdH.js";import"./filterAttributesPassedByRadixUIAtRuntime-B7QTVwVw.js";import"./render-icon-c7okze1K.js";import"./index-DT-MbRPK.js";import"./message-CTdBLxyt.js";const L=V.forwardRef(function({dataset:e,onChange:a,onValueChange:u,icon:s,children:i,placeholder:m,...o},c){const[C,S]=V.useState(!o.value&&!o.defaultValue),T=me(e),M=o.value===void 0?{defaultValue:o.defaultValue||""}:{value:o.value},I=f=>{a==null||a(f),u==null||u(f.target.value),S(!f.target.value)};return t.jsx(Ee,{icon:s,trailingIcon:t.jsx(D,{svg:ge}),children:t.jsxs("select",{...T,...o,...M,onChange:I,ref:c,className:He.input,"data-empty":C,children:[typeof m=="string"&&t.jsx("option",{value:"",disabled:o.required,children:m}),i]})})});try{L.displayName="NativeSelect",L.__docgenInfo={description:`A component to render a select with optional icon.
|
|
2
|
+
For internal use only.`,displayName:"NativeSelect",props:{autoComplete:{defaultValue:null,description:"",name:"autoComplete",required:!1,type:{name:"enum",value:[{value:"string"}]}},disabled:{defaultValue:null,description:"",name:"disabled",required:!1,type:{name:"enum",value:[{value:"false"},{value:"true"}]}},form:{defaultValue:null,description:"",name:"form",required:!1,type:{name:"enum",value:[{value:"string"}]}},multiple:{defaultValue:null,description:"",name:"multiple",required:!1,type:{name:"enum",value:[{value:"false"},{value:"true"}]}},name:{defaultValue:null,description:"",name:"name",required:!1,type:{name:"enum",value:[{value:"string"}]}},required:{defaultValue:null,description:"",name:"required",required:!1,type:{name:"enum",value:[{value:"false"},{value:"true"}]}},size:{defaultValue:null,description:"",name:"size",required:!1,type:{name:"enum",value:[{value:"number"}]}},value:{defaultValue:null,description:"",name:"value",required:!1,type:{name:"enum",value:[{value:"string"},{value:"number"},{value:"readonly string[]"}]}},onChange:{defaultValue:null,description:"",name:"onChange",required:!1,type:{name:"enum",value:[{value:"ChangeEventHandler<HTMLSelectElement>"}]}},defaultChecked:{defaultValue:null,description:"",name:"defaultChecked",required:!1,type:{name:"enum",value:[{value:"false"},{value:"true"}]}},defaultValue:{defaultValue:null,description:"",name:"defaultValue",required:!1,type:{name:"enum",value:[{value:"string"},{value:"number"},{value:"readonly string[]"}]}},suppressContentEditableWarning:{defaultValue:null,description:"",name:"suppressContentEditableWarning",required:!1,type:{name:"enum",value:[{value:"false"},{value:"true"}]}},suppressHydrationWarning:{defaultValue:null,description:"",name:"suppressHydrationWarning",required:!1,type:{name:"enum",value:[{value:"false"},{value:"true"}]}},accessKey:{defaultValue:null,description:"",name:"accessKey",required:!1,type:{name:"enum",value:[{value:"string"}]}},autoCapitalize:{defaultValue:null,description:"",name:"autoCapitalize",required:!1,type:{name:"enum",value:[{value:'"off"'},{value:'"none"'},{value:'"on"'},{value:'"sentences"'},{value:'"words"'},{value:'"characters"'},{value:"string & {}"}]}},autoFocus:{defaultValue:null,description:"",name:"autoFocus",required:!1,type:{name:"enum",value:[{value:"false"},{value:"true"}]}},className:{defaultValue:null,description:"",name:"className",required:!1,type:{name:"enum",value:[{value:"string"}]}},contentEditable:{defaultValue:null,description:"",name:"contentEditable",required:!1,type:{name:"enum",value:[{value:"false"},{value:"true"},{value:'"true"'},{value:'"false"'},{value:'"inherit"'},{value:'"plaintext-only"'}]}},contextMenu:{defaultValue:null,description:"",name:"contextMenu",required:!1,type:{name:"enum",value:[{value:"string"}]}},dir:{defaultValue:null,description:"",name:"dir",required:!1,type:{name:"enum",value:[{value:"string"}]}},draggable:{defaultValue:null,description:"",name:"draggable",required:!1,type:{name:"enum",value:[{value:"false"},{value:"true"},{value:'"true"'},{value:'"false"'}]}},enterKeyHint:{defaultValue:null,description:"",name:"enterKeyHint",required:!1,type:{name:"enum",value:[{value:'"enter"'},{value:'"done"'},{value:'"go"'},{value:'"next"'},{value:'"previous"'},{value:'"search"'},{value:'"send"'}]}},hidden:{defaultValue:null,description:"",name:"hidden",required:!1,type:{name:"enum",value:[{value:"false"},{value:"true"}]}},id:{defaultValue:null,description:"",name:"id",required:!1,type:{name:"enum",value:[{value:"string"}]}},lang:{defaultValue:null,description:"",name:"lang",required:!1,type:{name:"enum",value:[{value:"string"}]}},nonce:{defaultValue:null,description:"",name:"nonce",required:!1,type:{name:"enum",value:[{value:"string"}]}},slot:{defaultValue:null,description:"",name:"slot",required:!1,type:{name:"enum",value:[{value:"string"}]}},spellCheck:{defaultValue:null,description:"",name:"spellCheck",required:!1,type:{name:"enum",value:[{value:"false"},{value:"true"},{value:'"true"'},{value:'"false"'}]}},style:{defaultValue:null,description:"",name:"style",required:!1,type:{name:"enum",value:[{value:"CSSProperties"}]}},tabIndex:{defaultValue:null,description:"",name:"tabIndex",required:!1,type:{name:"enum",value:[{value:"number"}]}},title:{defaultValue:null,description:"",name:"title",required:!1,type:{name:"enum",value:[{value:"string"}]}},translate:{defaultValue:null,description:"",name:"translate",required:!1,type:{name:"enum",value:[{value:'"no"'},{value:'"yes"'}]}},radioGroup:{defaultValue:null,description:"",name:"radioGroup",required:!1,type:{name:"enum",value:[{value:"string"}]}},role:{defaultValue:null,description:"",name:"role",required:!1,type:{name:"enum",value:[{value:'"form"'},{value:'"row"'},{value:'"main"'},{value:'"article"'},{value:'"table"'},{value:'"figure"'},{value:'"none"'},{value:"string & {}"},{value:'"search"'},{value:'"alert"'},{value:'"alertdialog"'},{value:'"application"'},{value:'"banner"'},{value:'"button"'},{value:'"cell"'},{value:'"checkbox"'},{value:'"columnheader"'},{value:'"combobox"'},{value:'"complementary"'},{value:'"contentinfo"'},{value:'"definition"'},{value:'"dialog"'},{value:'"directory"'},{value:'"document"'},{value:'"feed"'},{value:'"grid"'},{value:'"gridcell"'},{value:'"group"'},{value:'"heading"'},{value:'"img"'},{value:'"link"'},{value:'"list"'},{value:'"listbox"'},{value:'"listitem"'},{value:'"log"'},{value:'"marquee"'},{value:'"math"'},{value:'"menu"'},{value:'"menubar"'},{value:'"menuitem"'},{value:'"menuitemcheckbox"'},{value:'"menuitemradio"'},{value:'"navigation"'},{value:'"note"'},{value:'"option"'},{value:'"presentation"'},{value:'"progressbar"'},{value:'"radio"'},{value:'"radiogroup"'},{value:'"region"'},{value:'"rowgroup"'},{value:'"rowheader"'},{value:'"scrollbar"'},{value:'"searchbox"'},{value:'"separator"'},{value:'"slider"'},{value:'"spinbutton"'},{value:'"status"'},{value:'"switch"'},{value:'"tab"'},{value:'"tablist"'},{value:'"tabpanel"'},{value:'"term"'},{value:'"textbox"'},{value:'"timer"'},{value:'"toolbar"'},{value:'"tooltip"'},{value:'"tree"'},{value:'"treegrid"'},{value:'"treeitem"'}]}},about:{defaultValue:null,description:"",name:"about",required:!1,type:{name:"enum",value:[{value:"string"}]}},content:{defaultValue:null,description:"",name:"content",required:!1,type:{name:"enum",value:[{value:"string"}]}},datatype:{defaultValue:null,description:"",name:"datatype",required:!1,type:{name:"enum",value:[{value:"string"}]}},inlist:{defaultValue:null,description:"",name:"inlist",required:!1,type:{name:"any"}},prefix:{defaultValue:null,description:"",name:"prefix",required:!1,type:{name:"enum",value:[{value:"string"}]}},property:{defaultValue:null,description:"",name:"property",required:!1,type:{name:"enum",value:[{value:"string"}]}},rel:{defaultValue:null,description:"",name:"rel",required:!1,type:{name:"enum",value:[{value:"string"}]}},resource:{defaultValue:null,description:"",name:"resource",required:!1,type:{name:"enum",value:[{value:"string"}]}},rev:{defaultValue:null,description:"",name:"rev",required:!1,type:{name:"enum",value:[{value:"string"}]}},typeof:{defaultValue:null,description:"",name:"typeof",required:!1,type:{name:"enum",value:[{value:"string"}]}},vocab:{defaultValue:null,description:"",name:"vocab",required:!1,type:{name:"enum",value:[{value:"string"}]}},autoCorrect:{defaultValue:null,description:"",name:"autoCorrect",required:!1,type:{name:"enum",value:[{value:"string"}]}},autoSave:{defaultValue:null,description:"",name:"autoSave",required:!1,type:{name:"enum",value:[{value:"string"}]}},color:{defaultValue:null,description:"",name:"color",required:!1,type:{name:"enum",value:[{value:"string"}]}},itemProp:{defaultValue:null,description:"",name:"itemProp",required:!1,type:{name:"enum",value:[{value:"string"}]}},itemScope:{defaultValue:null,description:"",name:"itemScope",required:!1,type:{name:"enum",value:[{value:"false"},{value:"true"}]}},itemType:{defaultValue:null,description:"",name:"itemType",required:!1,type:{name:"enum",value:[{value:"string"}]}},itemID:{defaultValue:null,description:"",name:"itemID",required:!1,type:{name:"enum",value:[{value:"string"}]}},itemRef:{defaultValue:null,description:"",name:"itemRef",required:!1,type:{name:"enum",value:[{value:"string"}]}},results:{defaultValue:null,description:"",name:"results",required:!1,type:{name:"enum",value:[{value:"number"}]}},security:{defaultValue:null,description:"",name:"security",required:!1,type:{name:"enum",value:[{value:"string"}]}},unselectable:{defaultValue:null,description:"",name:"unselectable",required:!1,type:{name:"enum",value:[{value:'"off"'},{value:'"on"'}]}},inputMode:{defaultValue:null,description:`Hints at the type of data that might be entered by the user while editing the element or its contents
|
|
3
|
+
@see {@link https://html.spec.whatwg.org/multipage/interaction.html#input-modalities:-the-inputmode-attribute}`,name:"inputMode",required:!1,type:{name:"enum",value:[{value:'"url"'},{value:'"none"'},{value:'"search"'},{value:'"text"'},{value:'"tel"'},{value:'"email"'},{value:'"numeric"'},{value:'"decimal"'}]}},is:{defaultValue:null,description:`Specify that a standard HTML element should behave like a defined custom built-in element
|
|
4
|
+
@see {@link https://html.spec.whatwg.org/multipage/custom-elements.html#attr-is}`,name:"is",required:!1,type:{name:"enum",value:[{value:"string"}]}},"aria-activedescendant":{defaultValue:null,description:"Identifies the currently active element when DOM focus is on a composite widget, textbox, group, or application.",name:"aria-activedescendant",required:!1,type:{name:"enum",value:[{value:"string"}]}},"aria-atomic":{defaultValue:null,description:"Indicates whether assistive technologies will present all, or only parts of, the changed region based on the change notifications defined by the aria-relevant attribute.",name:"aria-atomic",required:!1,type:{name:"enum",value:[{value:"false"},{value:"true"},{value:'"true"'},{value:'"false"'}]}},"aria-autocomplete":{defaultValue:null,description:`Indicates whether inputting text could trigger display of one or more predictions of the user's intended value for an input and specifies how predictions would be
|
|
5
5
|
presented if they are made.`,name:"aria-autocomplete",required:!1,type:{name:"enum",value:[{value:'"inline"'},{value:'"none"'},{value:'"list"'},{value:'"both"'}]}},"aria-braillelabel":{defaultValue:null,description:`Defines a string value that labels the current element, which is intended to be converted into Braille.
|
|
6
6
|
@see aria-label.`,name:"aria-braillelabel",required:!1,type:{name:"enum",value:[{value:"string"}]}},"aria-brailleroledescription":{defaultValue:null,description:`Defines a human-readable, author-localized abbreviated description for the role of an element, which is intended to be converted into Braille.
|
|
7
|
-
@see aria-roledescription.`,name:"aria-brailleroledescription",required:!1,type:{name:"enum",value:[{value:"string"}]}},"aria-busy":{defaultValue:null,description:"",name:"aria-busy",required:!1,type:{name:"enum",value:[{value:"false"},{value:"true"},{value:'"
|
|
7
|
+
@see aria-roledescription.`,name:"aria-brailleroledescription",required:!1,type:{name:"enum",value:[{value:"string"}]}},"aria-busy":{defaultValue:null,description:"",name:"aria-busy",required:!1,type:{name:"enum",value:[{value:"false"},{value:"true"},{value:'"true"'},{value:'"false"'}]}},"aria-checked":{defaultValue:null,description:`Indicates the current "checked" state of checkboxes, radio buttons, and other widgets.
|
|
8
8
|
@see aria-pressed
|
|
9
|
-
@see aria-selected.`,name:"aria-checked",required:!1,type:{name:"enum",value:[{value:"false"},{value:"true"},{value:'"
|
|
9
|
+
@see aria-selected.`,name:"aria-checked",required:!1,type:{name:"enum",value:[{value:"false"},{value:"true"},{value:'"true"'},{value:'"false"'},{value:'"mixed"'}]}},"aria-colcount":{defaultValue:null,description:`Defines the total number of columns in a table, grid, or treegrid.
|
|
10
10
|
@see aria-colindex.`,name:"aria-colcount",required:!1,type:{name:"enum",value:[{value:"number"}]}},"aria-colindex":{defaultValue:null,description:`Defines an element's column index or position with respect to the total number of columns within a table, grid, or treegrid.
|
|
11
11
|
@see aria-colcount
|
|
12
12
|
@see aria-colspan.`,name:"aria-colindex",required:!1,type:{name:"enum",value:[{value:"number"}]}},"aria-colindextext":{defaultValue:null,description:`Defines a human readable text alternative of aria-colindex.
|
|
13
13
|
@see aria-rowindextext.`,name:"aria-colindextext",required:!1,type:{name:"enum",value:[{value:"string"}]}},"aria-colspan":{defaultValue:null,description:`Defines the number of columns spanned by a cell or gridcell within a table, grid, or treegrid.
|
|
14
14
|
@see aria-colindex
|
|
15
15
|
@see aria-rowspan.`,name:"aria-colspan",required:!1,type:{name:"enum",value:[{value:"number"}]}},"aria-controls":{defaultValue:null,description:`Identifies the element (or elements) whose contents or presence are controlled by the current element.
|
|
16
|
-
@see aria-owns.`,name:"aria-controls",required:!1,type:{name:"enum",value:[{value:"string"}]}},"aria-current":{defaultValue:null,description:"Indicates the element that represents the current item within a container or set of related elements.",name:"aria-current",required:!1,type:{name:"enum",value:[{value:"false"},{value:"true"},{value:'"
|
|
16
|
+
@see aria-owns.`,name:"aria-controls",required:!1,type:{name:"enum",value:[{value:"string"}]}},"aria-current":{defaultValue:null,description:"Indicates the element that represents the current item within a container or set of related elements.",name:"aria-current",required:!1,type:{name:"enum",value:[{value:"false"},{value:"true"},{value:'"true"'},{value:'"false"'},{value:'"page"'},{value:'"step"'},{value:'"location"'},{value:'"date"'},{value:'"time"'}]}},"aria-describedby":{defaultValue:null,description:`Identifies the element (or elements) that describes the object.
|
|
17
17
|
@see aria-labelledby`,name:"aria-describedby",required:!1,type:{name:"enum",value:[{value:"string"}]}},"aria-description":{defaultValue:null,description:`Defines a string value that describes or annotates the current element.
|
|
18
18
|
@see related aria-describedby.`,name:"aria-description",required:!1,type:{name:"enum",value:[{value:"string"}]}},"aria-details":{defaultValue:null,description:`Identifies the element that provides a detailed, extended description for the object.
|
|
19
19
|
@see aria-describedby.`,name:"aria-details",required:!1,type:{name:"enum",value:[{value:"string"}]}},"aria-disabled":{defaultValue:null,description:`Indicates that the element is perceivable but disabled, so it is not editable or otherwise operable.
|
|
20
20
|
@see aria-hidden
|
|
21
|
-
@see aria-readonly.`,name:"aria-disabled",required:!1,type:{name:"enum",value:[{value:"false"},{value:"true"},{value:'"
|
|
22
|
-
@deprecated in ARIA 1.1`,name:"aria-dropeffect",required:!1,type:{name:"enum",value:[{value:'"
|
|
21
|
+
@see aria-readonly.`,name:"aria-disabled",required:!1,type:{name:"enum",value:[{value:"false"},{value:"true"},{value:'"true"'},{value:'"false"'}]}},"aria-dropeffect":{defaultValue:null,description:`Indicates what functions can be performed when a dragged object is released on the drop target.
|
|
22
|
+
@deprecated in ARIA 1.1`,name:"aria-dropeffect",required:!1,type:{name:"enum",value:[{value:'"none"'},{value:'"link"'},{value:'"copy"'},{value:'"execute"'},{value:'"move"'},{value:'"popup"'}]}},"aria-errormessage":{defaultValue:null,description:`Identifies the element that provides an error message for the object.
|
|
23
23
|
@see aria-invalid
|
|
24
|
-
@see aria-describedby.`,name:"aria-errormessage",required:!1,type:{name:"enum",value:[{value:"string"}]}},"aria-expanded":{defaultValue:null,description:"Indicates whether the element, or another grouping element it controls, is currently expanded or collapsed.",name:"aria-expanded",required:!1,type:{name:"enum",value:[{value:"false"},{value:"true"},{value:'"
|
|
24
|
+
@see aria-describedby.`,name:"aria-errormessage",required:!1,type:{name:"enum",value:[{value:"string"}]}},"aria-expanded":{defaultValue:null,description:"Indicates whether the element, or another grouping element it controls, is currently expanded or collapsed.",name:"aria-expanded",required:!1,type:{name:"enum",value:[{value:"false"},{value:"true"},{value:'"true"'},{value:'"false"'}]}},"aria-flowto":{defaultValue:null,description:`Identifies the next element (or elements) in an alternate reading order of content which, at the user's discretion,
|
|
25
25
|
allows assistive technology to override the general default of reading in document source order.`,name:"aria-flowto",required:!1,type:{name:"enum",value:[{value:"string"}]}},"aria-grabbed":{defaultValue:null,description:`Indicates an element's "grabbed" state in a drag-and-drop operation.
|
|
26
|
-
@deprecated in ARIA 1.1`,name:"aria-grabbed",required:!1,type:{name:"enum",value:[{value:"false"},{value:"true"},{value:'"
|
|
27
|
-
@see aria-disabled.`,name:"aria-hidden",required:!1,type:{name:"enum",value:[{value:"false"},{value:"true"},{value:'"
|
|
28
|
-
@see aria-errormessage.`,name:"aria-invalid",required:!1,type:{name:"enum",value:[{value:"false"},{value:"true"},{value:'"
|
|
26
|
+
@deprecated in ARIA 1.1`,name:"aria-grabbed",required:!1,type:{name:"enum",value:[{value:"false"},{value:"true"},{value:'"true"'},{value:'"false"'}]}},"aria-haspopup":{defaultValue:null,description:"Indicates the availability and type of interactive popup element, such as menu or dialog, that can be triggered by an element.",name:"aria-haspopup",required:!1,type:{name:"enum",value:[{value:"false"},{value:"true"},{value:'"true"'},{value:'"false"'},{value:'"dialog"'},{value:'"grid"'},{value:'"listbox"'},{value:'"menu"'},{value:'"tree"'}]}},"aria-hidden":{defaultValue:null,description:`Indicates whether the element is exposed to an accessibility API.
|
|
27
|
+
@see aria-disabled.`,name:"aria-hidden",required:!1,type:{name:"enum",value:[{value:"false"},{value:"true"},{value:'"true"'},{value:'"false"'}]}},"aria-invalid":{defaultValue:null,description:`Indicates the entered value does not conform to the format expected by the application.
|
|
28
|
+
@see aria-errormessage.`,name:"aria-invalid",required:!1,type:{name:"enum",value:[{value:"false"},{value:"true"},{value:'"true"'},{value:'"false"'},{value:'"grammar"'},{value:'"spelling"'}]}},"aria-keyshortcuts":{defaultValue:null,description:"Indicates keyboard shortcuts that an author has implemented to activate or give focus to an element.",name:"aria-keyshortcuts",required:!1,type:{name:"enum",value:[{value:"string"}]}},"aria-label":{defaultValue:null,description:`Defines a string value that labels the current element.
|
|
29
29
|
@see aria-labelledby.`,name:"aria-label",required:!1,type:{name:"enum",value:[{value:"string"}]}},"aria-labelledby":{defaultValue:null,description:`Identifies the element (or elements) that labels the current element.
|
|
30
|
-
@see aria-describedby.`,name:"aria-labelledby",required:!1,type:{name:"enum",value:[{value:"string"}]}},"aria-level":{defaultValue:null,description:"Defines the hierarchical level of an element within a structure.",name:"aria-level",required:!1,type:{name:"enum",value:[{value:"number"}]}},"aria-live":{defaultValue:null,description:"Indicates that an element will be updated, and describes the types of updates the user agents, assistive technologies, and user can expect from the live region.",name:"aria-live",required:!1,type:{name:"enum",value:[{value:'"off"'},{value:'"assertive"'},{value:'"polite"'}]}},"aria-modal":{defaultValue:null,description:"Indicates whether an element is modal when displayed.",name:"aria-modal",required:!1,type:{name:"enum",value:[{value:"false"},{value:"true"},{value:'"
|
|
30
|
+
@see aria-describedby.`,name:"aria-labelledby",required:!1,type:{name:"enum",value:[{value:"string"}]}},"aria-level":{defaultValue:null,description:"Defines the hierarchical level of an element within a structure.",name:"aria-level",required:!1,type:{name:"enum",value:[{value:"number"}]}},"aria-live":{defaultValue:null,description:"Indicates that an element will be updated, and describes the types of updates the user agents, assistive technologies, and user can expect from the live region.",name:"aria-live",required:!1,type:{name:"enum",value:[{value:'"off"'},{value:'"assertive"'},{value:'"polite"'}]}},"aria-modal":{defaultValue:null,description:"Indicates whether an element is modal when displayed.",name:"aria-modal",required:!1,type:{name:"enum",value:[{value:"false"},{value:"true"},{value:'"true"'},{value:'"false"'}]}},"aria-multiline":{defaultValue:null,description:"Indicates whether a text box accepts multiple lines of input or only a single line.",name:"aria-multiline",required:!1,type:{name:"enum",value:[{value:"false"},{value:"true"},{value:'"true"'},{value:'"false"'}]}},"aria-multiselectable":{defaultValue:null,description:"Indicates that the user may select more than one item from the current selectable descendants.",name:"aria-multiselectable",required:!1,type:{name:"enum",value:[{value:"false"},{value:"true"},{value:'"true"'},{value:'"false"'}]}},"aria-orientation":{defaultValue:null,description:"Indicates whether the element's orientation is horizontal, vertical, or unknown/ambiguous.",name:"aria-orientation",required:!1,type:{name:"enum",value:[{value:'"horizontal"'},{value:'"vertical"'}]}},"aria-owns":{defaultValue:null,description:`Identifies an element (or elements) in order to define a visual, functional, or contextual parent/child relationship
|
|
31
31
|
between DOM elements where the DOM hierarchy cannot be used to represent the relationship.
|
|
32
32
|
@see aria-controls.`,name:"aria-owns",required:!1,type:{name:"enum",value:[{value:"string"}]}},"aria-placeholder":{defaultValue:null,description:`Defines a short hint (a word or short phrase) intended to aid the user with data entry when the control has no value.
|
|
33
33
|
A hint could be a sample value or a brief description of the expected format.`,name:"aria-placeholder",required:!1,type:{name:"enum",value:[{value:"string"}]}},"aria-posinset":{defaultValue:null,description:`Defines an element's number or position in the current set of listitems or treeitems. Not required if all elements in the set are present in the DOM.
|
|
34
34
|
@see aria-setsize.`,name:"aria-posinset",required:!1,type:{name:"enum",value:[{value:"number"}]}},"aria-pressed":{defaultValue:null,description:`Indicates the current "pressed" state of toggle buttons.
|
|
35
35
|
@see aria-checked
|
|
36
|
-
@see aria-selected.`,name:"aria-pressed",required:!1,type:{name:"enum",value:[{value:"false"},{value:"true"},{value:'"
|
|
37
|
-
@see aria-disabled.`,name:"aria-readonly",required:!1,type:{name:"enum",value:[{value:"false"},{value:"true"},{value:'"
|
|
38
|
-
@see aria-atomic.`,name:"aria-relevant",required:!1,type:{name:"enum",value:[{value:'"text"'},{value:'"additions"'},{value:'"additions removals"'},{value:'"additions text"'},{value:'"all"'},{value:'"removals"'},{value:'"removals additions"'},{value:'"removals text"'},{value:'"text additions"'},{value:'"text removals"'}]}},"aria-required":{defaultValue:null,description:"Indicates that user input is required on the element before a form may be submitted.",name:"aria-required",required:!1,type:{name:"enum",value:[{value:"false"},{value:"true"},{value:'"
|
|
36
|
+
@see aria-selected.`,name:"aria-pressed",required:!1,type:{name:"enum",value:[{value:"false"},{value:"true"},{value:'"true"'},{value:'"false"'},{value:'"mixed"'}]}},"aria-readonly":{defaultValue:null,description:`Indicates that the element is not editable, but is otherwise operable.
|
|
37
|
+
@see aria-disabled.`,name:"aria-readonly",required:!1,type:{name:"enum",value:[{value:"false"},{value:"true"},{value:'"true"'},{value:'"false"'}]}},"aria-relevant":{defaultValue:null,description:`Indicates what notifications the user agent will trigger when the accessibility tree within a live region is modified.
|
|
38
|
+
@see aria-atomic.`,name:"aria-relevant",required:!1,type:{name:"enum",value:[{value:'"text"'},{value:'"additions"'},{value:'"additions removals"'},{value:'"additions text"'},{value:'"all"'},{value:'"removals"'},{value:'"removals additions"'},{value:'"removals text"'},{value:'"text additions"'},{value:'"text removals"'}]}},"aria-required":{defaultValue:null,description:"Indicates that user input is required on the element before a form may be submitted.",name:"aria-required",required:!1,type:{name:"enum",value:[{value:"false"},{value:"true"},{value:'"true"'},{value:'"false"'}]}},"aria-roledescription":{defaultValue:null,description:"Defines a human-readable, author-localized description for the role of an element.",name:"aria-roledescription",required:!1,type:{name:"enum",value:[{value:"string"}]}},"aria-rowcount":{defaultValue:null,description:`Defines the total number of rows in a table, grid, or treegrid.
|
|
39
39
|
@see aria-rowindex.`,name:"aria-rowcount",required:!1,type:{name:"enum",value:[{value:"number"}]}},"aria-rowindex":{defaultValue:null,description:`Defines an element's row index or position with respect to the total number of rows within a table, grid, or treegrid.
|
|
40
40
|
@see aria-rowcount
|
|
41
41
|
@see aria-rowspan.`,name:"aria-rowindex",required:!1,type:{name:"enum",value:[{value:"number"}]}},"aria-rowindextext":{defaultValue:null,description:`Defines a human readable text alternative of aria-rowindex.
|
|
@@ -43,14 +43,14 @@ A hint could be a sample value or a brief description of the expected format.`,n
|
|
|
43
43
|
@see aria-rowindex
|
|
44
44
|
@see aria-colspan.`,name:"aria-rowspan",required:!1,type:{name:"enum",value:[{value:"number"}]}},"aria-selected":{defaultValue:null,description:`Indicates the current "selected" state of various widgets.
|
|
45
45
|
@see aria-checked
|
|
46
|
-
@see aria-pressed.`,name:"aria-selected",required:!1,type:{name:"enum",value:[{value:"false"},{value:"true"},{value:'"
|
|
46
|
+
@see aria-pressed.`,name:"aria-selected",required:!1,type:{name:"enum",value:[{value:"false"},{value:"true"},{value:'"true"'},{value:'"false"'}]}},"aria-setsize":{defaultValue:null,description:`Defines the number of items in the current set of listitems or treeitems. Not required if all elements in the set are present in the DOM.
|
|
47
47
|
@see aria-posinset.`,name:"aria-setsize",required:!1,type:{name:"enum",value:[{value:"number"}]}},"aria-sort":{defaultValue:null,description:"Indicates if items in a table or grid are sorted in ascending or descending order.",name:"aria-sort",required:!1,type:{name:"enum",value:[{value:'"none"'},{value:'"ascending"'},{value:'"descending"'},{value:'"other"'}]}},"aria-valuemax":{defaultValue:null,description:"Defines the maximum allowed value for a range widget.",name:"aria-valuemax",required:!1,type:{name:"enum",value:[{value:"number"}]}},"aria-valuemin":{defaultValue:null,description:"Defines the minimum allowed value for a range widget.",name:"aria-valuemin",required:!1,type:{name:"enum",value:[{value:"number"}]}},"aria-valuenow":{defaultValue:null,description:`Defines the current value for a range widget.
|
|
48
48
|
@see aria-valuetext.`,name:"aria-valuenow",required:!1,type:{name:"enum",value:[{value:"number"}]}},"aria-valuetext":{defaultValue:null,description:"Defines the human readable text alternative of aria-valuenow for a range widget.",name:"aria-valuetext",required:!1,type:{name:"enum",value:[{value:"string"}]}},dangerouslySetInnerHTML:{defaultValue:null,description:"",name:"dangerouslySetInnerHTML",required:!1,type:{name:"enum",value:[{value:"{ __html: string | TrustedHTML; }"}]}},onCopy:{defaultValue:null,description:"",name:"onCopy",required:!1,type:{name:"enum",value:[{value:"ClipboardEventHandler<HTMLSelectElement>"}]}},onCopyCapture:{defaultValue:null,description:"",name:"onCopyCapture",required:!1,type:{name:"enum",value:[{value:"ClipboardEventHandler<HTMLSelectElement>"}]}},onCut:{defaultValue:null,description:"",name:"onCut",required:!1,type:{name:"enum",value:[{value:"ClipboardEventHandler<HTMLSelectElement>"}]}},onCutCapture:{defaultValue:null,description:"",name:"onCutCapture",required:!1,type:{name:"enum",value:[{value:"ClipboardEventHandler<HTMLSelectElement>"}]}},onPaste:{defaultValue:null,description:"",name:"onPaste",required:!1,type:{name:"enum",value:[{value:"ClipboardEventHandler<HTMLSelectElement>"}]}},onPasteCapture:{defaultValue:null,description:"",name:"onPasteCapture",required:!1,type:{name:"enum",value:[{value:"ClipboardEventHandler<HTMLSelectElement>"}]}},onCompositionEnd:{defaultValue:null,description:"",name:"onCompositionEnd",required:!1,type:{name:"enum",value:[{value:"CompositionEventHandler<HTMLSelectElement>"}]}},onCompositionEndCapture:{defaultValue:null,description:"",name:"onCompositionEndCapture",required:!1,type:{name:"enum",value:[{value:"CompositionEventHandler<HTMLSelectElement>"}]}},onCompositionStart:{defaultValue:null,description:"",name:"onCompositionStart",required:!1,type:{name:"enum",value:[{value:"CompositionEventHandler<HTMLSelectElement>"}]}},onCompositionStartCapture:{defaultValue:null,description:"",name:"onCompositionStartCapture",required:!1,type:{name:"enum",value:[{value:"CompositionEventHandler<HTMLSelectElement>"}]}},onCompositionUpdate:{defaultValue:null,description:"",name:"onCompositionUpdate",required:!1,type:{name:"enum",value:[{value:"CompositionEventHandler<HTMLSelectElement>"}]}},onCompositionUpdateCapture:{defaultValue:null,description:"",name:"onCompositionUpdateCapture",required:!1,type:{name:"enum",value:[{value:"CompositionEventHandler<HTMLSelectElement>"}]}},onFocus:{defaultValue:null,description:"",name:"onFocus",required:!1,type:{name:"enum",value:[{value:"FocusEventHandler<HTMLSelectElement>"}]}},onFocusCapture:{defaultValue:null,description:"",name:"onFocusCapture",required:!1,type:{name:"enum",value:[{value:"FocusEventHandler<HTMLSelectElement>"}]}},onBlur:{defaultValue:null,description:"",name:"onBlur",required:!1,type:{name:"enum",value:[{value:"FocusEventHandler<HTMLSelectElement>"}]}},onBlurCapture:{defaultValue:null,description:"",name:"onBlurCapture",required:!1,type:{name:"enum",value:[{value:"FocusEventHandler<HTMLSelectElement>"}]}},onChangeCapture:{defaultValue:null,description:"",name:"onChangeCapture",required:!1,type:{name:"enum",value:[{value:"FormEventHandler<HTMLSelectElement>"}]}},onBeforeInput:{defaultValue:null,description:"",name:"onBeforeInput",required:!1,type:{name:"enum",value:[{value:"FormEventHandler<HTMLSelectElement>"}]}},onBeforeInputCapture:{defaultValue:null,description:"",name:"onBeforeInputCapture",required:!1,type:{name:"enum",value:[{value:"FormEventHandler<HTMLSelectElement>"}]}},onInput:{defaultValue:null,description:"",name:"onInput",required:!1,type:{name:"enum",value:[{value:"FormEventHandler<HTMLSelectElement>"}]}},onInputCapture:{defaultValue:null,description:"",name:"onInputCapture",required:!1,type:{name:"enum",value:[{value:"FormEventHandler<HTMLSelectElement>"}]}},onReset:{defaultValue:null,description:"",name:"onReset",required:!1,type:{name:"enum",value:[{value:"FormEventHandler<HTMLSelectElement>"}]}},onResetCapture:{defaultValue:null,description:"",name:"onResetCapture",required:!1,type:{name:"enum",value:[{value:"FormEventHandler<HTMLSelectElement>"}]}},onSubmit:{defaultValue:null,description:"",name:"onSubmit",required:!1,type:{name:"enum",value:[{value:"FormEventHandler<HTMLSelectElement>"}]}},onSubmitCapture:{defaultValue:null,description:"",name:"onSubmitCapture",required:!1,type:{name:"enum",value:[{value:"FormEventHandler<HTMLSelectElement>"}]}},onInvalid:{defaultValue:null,description:"",name:"onInvalid",required:!1,type:{name:"enum",value:[{value:"FormEventHandler<HTMLSelectElement>"}]}},onInvalidCapture:{defaultValue:null,description:"",name:"onInvalidCapture",required:!1,type:{name:"enum",value:[{value:"FormEventHandler<HTMLSelectElement>"}]}},onLoad:{defaultValue:null,description:"",name:"onLoad",required:!1,type:{name:"enum",value:[{value:"ReactEventHandler<HTMLSelectElement>"}]}},onLoadCapture:{defaultValue:null,description:"",name:"onLoadCapture",required:!1,type:{name:"enum",value:[{value:"ReactEventHandler<HTMLSelectElement>"}]}},onError:{defaultValue:null,description:"",name:"onError",required:!1,type:{name:"enum",value:[{value:"ReactEventHandler<HTMLSelectElement>"}]}},onErrorCapture:{defaultValue:null,description:"",name:"onErrorCapture",required:!1,type:{name:"enum",value:[{value:"ReactEventHandler<HTMLSelectElement>"}]}},onKeyDown:{defaultValue:null,description:"",name:"onKeyDown",required:!1,type:{name:"enum",value:[{value:"KeyboardEventHandler<HTMLSelectElement>"}]}},onKeyDownCapture:{defaultValue:null,description:"",name:"onKeyDownCapture",required:!1,type:{name:"enum",value:[{value:"KeyboardEventHandler<HTMLSelectElement>"}]}},onKeyPress:{defaultValue:null,description:"@deprecated Use `onKeyUp` or `onKeyDown` instead",name:"onKeyPress",required:!1,type:{name:"enum",value:[{value:"KeyboardEventHandler<HTMLSelectElement>"}]}},onKeyPressCapture:{defaultValue:null,description:"@deprecated Use `onKeyUpCapture` or `onKeyDownCapture` instead",name:"onKeyPressCapture",required:!1,type:{name:"enum",value:[{value:"KeyboardEventHandler<HTMLSelectElement>"}]}},onKeyUp:{defaultValue:null,description:"",name:"onKeyUp",required:!1,type:{name:"enum",value:[{value:"KeyboardEventHandler<HTMLSelectElement>"}]}},onKeyUpCapture:{defaultValue:null,description:"",name:"onKeyUpCapture",required:!1,type:{name:"enum",value:[{value:"KeyboardEventHandler<HTMLSelectElement>"}]}},onAbort:{defaultValue:null,description:"",name:"onAbort",required:!1,type:{name:"enum",value:[{value:"ReactEventHandler<HTMLSelectElement>"}]}},onAbortCapture:{defaultValue:null,description:"",name:"onAbortCapture",required:!1,type:{name:"enum",value:[{value:"ReactEventHandler<HTMLSelectElement>"}]}},onCanPlay:{defaultValue:null,description:"",name:"onCanPlay",required:!1,type:{name:"enum",value:[{value:"ReactEventHandler<HTMLSelectElement>"}]}},onCanPlayCapture:{defaultValue:null,description:"",name:"onCanPlayCapture",required:!1,type:{name:"enum",value:[{value:"ReactEventHandler<HTMLSelectElement>"}]}},onCanPlayThrough:{defaultValue:null,description:"",name:"onCanPlayThrough",required:!1,type:{name:"enum",value:[{value:"ReactEventHandler<HTMLSelectElement>"}]}},onCanPlayThroughCapture:{defaultValue:null,description:"",name:"onCanPlayThroughCapture",required:!1,type:{name:"enum",value:[{value:"ReactEventHandler<HTMLSelectElement>"}]}},onDurationChange:{defaultValue:null,description:"",name:"onDurationChange",required:!1,type:{name:"enum",value:[{value:"ReactEventHandler<HTMLSelectElement>"}]}},onDurationChangeCapture:{defaultValue:null,description:"",name:"onDurationChangeCapture",required:!1,type:{name:"enum",value:[{value:"ReactEventHandler<HTMLSelectElement>"}]}},onEmptied:{defaultValue:null,description:"",name:"onEmptied",required:!1,type:{name:"enum",value:[{value:"ReactEventHandler<HTMLSelectElement>"}]}},onEmptiedCapture:{defaultValue:null,description:"",name:"onEmptiedCapture",required:!1,type:{name:"enum",value:[{value:"ReactEventHandler<HTMLSelectElement>"}]}},onEncrypted:{defaultValue:null,description:"",name:"onEncrypted",required:!1,type:{name:"enum",value:[{value:"ReactEventHandler<HTMLSelectElement>"}]}},onEncryptedCapture:{defaultValue:null,description:"",name:"onEncryptedCapture",required:!1,type:{name:"enum",value:[{value:"ReactEventHandler<HTMLSelectElement>"}]}},onEnded:{defaultValue:null,description:"",name:"onEnded",required:!1,type:{name:"enum",value:[{value:"ReactEventHandler<HTMLSelectElement>"}]}},onEndedCapture:{defaultValue:null,description:"",name:"onEndedCapture",required:!1,type:{name:"enum",value:[{value:"ReactEventHandler<HTMLSelectElement>"}]}},onLoadedData:{defaultValue:null,description:"",name:"onLoadedData",required:!1,type:{name:"enum",value:[{value:"ReactEventHandler<HTMLSelectElement>"}]}},onLoadedDataCapture:{defaultValue:null,description:"",name:"onLoadedDataCapture",required:!1,type:{name:"enum",value:[{value:"ReactEventHandler<HTMLSelectElement>"}]}},onLoadedMetadata:{defaultValue:null,description:"",name:"onLoadedMetadata",required:!1,type:{name:"enum",value:[{value:"ReactEventHandler<HTMLSelectElement>"}]}},onLoadedMetadataCapture:{defaultValue:null,description:"",name:"onLoadedMetadataCapture",required:!1,type:{name:"enum",value:[{value:"ReactEventHandler<HTMLSelectElement>"}]}},onLoadStart:{defaultValue:null,description:"",name:"onLoadStart",required:!1,type:{name:"enum",value:[{value:"ReactEventHandler<HTMLSelectElement>"}]}},onLoadStartCapture:{defaultValue:null,description:"",name:"onLoadStartCapture",required:!1,type:{name:"enum",value:[{value:"ReactEventHandler<HTMLSelectElement>"}]}},onPause:{defaultValue:null,description:"",name:"onPause",required:!1,type:{name:"enum",value:[{value:"ReactEventHandler<HTMLSelectElement>"}]}},onPauseCapture:{defaultValue:null,description:"",name:"onPauseCapture",required:!1,type:{name:"enum",value:[{value:"ReactEventHandler<HTMLSelectElement>"}]}},onPlay:{defaultValue:null,description:"",name:"onPlay",required:!1,type:{name:"enum",value:[{value:"ReactEventHandler<HTMLSelectElement>"}]}},onPlayCapture:{defaultValue:null,description:"",name:"onPlayCapture",required:!1,type:{name:"enum",value:[{value:"ReactEventHandler<HTMLSelectElement>"}]}},onPlaying:{defaultValue:null,description:"",name:"onPlaying",required:!1,type:{name:"enum",value:[{value:"ReactEventHandler<HTMLSelectElement>"}]}},onPlayingCapture:{defaultValue:null,description:"",name:"onPlayingCapture",required:!1,type:{name:"enum",value:[{value:"ReactEventHandler<HTMLSelectElement>"}]}},onProgress:{defaultValue:null,description:"",name:"onProgress",required:!1,type:{name:"enum",value:[{value:"ReactEventHandler<HTMLSelectElement>"}]}},onProgressCapture:{defaultValue:null,description:"",name:"onProgressCapture",required:!1,type:{name:"enum",value:[{value:"ReactEventHandler<HTMLSelectElement>"}]}},onRateChange:{defaultValue:null,description:"",name:"onRateChange",required:!1,type:{name:"enum",value:[{value:"ReactEventHandler<HTMLSelectElement>"}]}},onRateChangeCapture:{defaultValue:null,description:"",name:"onRateChangeCapture",required:!1,type:{name:"enum",value:[{value:"ReactEventHandler<HTMLSelectElement>"}]}},onResize:{defaultValue:null,description:"",name:"onResize",required:!1,type:{name:"enum",value:[{value:"ReactEventHandler<HTMLSelectElement>"}]}},onResizeCapture:{defaultValue:null,description:"",name:"onResizeCapture",required:!1,type:{name:"enum",value:[{value:"ReactEventHandler<HTMLSelectElement>"}]}},onSeeked:{defaultValue:null,description:"",name:"onSeeked",required:!1,type:{name:"enum",value:[{value:"ReactEventHandler<HTMLSelectElement>"}]}},onSeekedCapture:{defaultValue:null,description:"",name:"onSeekedCapture",required:!1,type:{name:"enum",value:[{value:"ReactEventHandler<HTMLSelectElement>"}]}},onSeeking:{defaultValue:null,description:"",name:"onSeeking",required:!1,type:{name:"enum",value:[{value:"ReactEventHandler<HTMLSelectElement>"}]}},onSeekingCapture:{defaultValue:null,description:"",name:"onSeekingCapture",required:!1,type:{name:"enum",value:[{value:"ReactEventHandler<HTMLSelectElement>"}]}},onStalled:{defaultValue:null,description:"",name:"onStalled",required:!1,type:{name:"enum",value:[{value:"ReactEventHandler<HTMLSelectElement>"}]}},onStalledCapture:{defaultValue:null,description:"",name:"onStalledCapture",required:!1,type:{name:"enum",value:[{value:"ReactEventHandler<HTMLSelectElement>"}]}},onSuspend:{defaultValue:null,description:"",name:"onSuspend",required:!1,type:{name:"enum",value:[{value:"ReactEventHandler<HTMLSelectElement>"}]}},onSuspendCapture:{defaultValue:null,description:"",name:"onSuspendCapture",required:!1,type:{name:"enum",value:[{value:"ReactEventHandler<HTMLSelectElement>"}]}},onTimeUpdate:{defaultValue:null,description:"",name:"onTimeUpdate",required:!1,type:{name:"enum",value:[{value:"ReactEventHandler<HTMLSelectElement>"}]}},onTimeUpdateCapture:{defaultValue:null,description:"",name:"onTimeUpdateCapture",required:!1,type:{name:"enum",value:[{value:"ReactEventHandler<HTMLSelectElement>"}]}},onVolumeChange:{defaultValue:null,description:"",name:"onVolumeChange",required:!1,type:{name:"enum",value:[{value:"ReactEventHandler<HTMLSelectElement>"}]}},onVolumeChangeCapture:{defaultValue:null,description:"",name:"onVolumeChangeCapture",required:!1,type:{name:"enum",value:[{value:"ReactEventHandler<HTMLSelectElement>"}]}},onWaiting:{defaultValue:null,description:"",name:"onWaiting",required:!1,type:{name:"enum",value:[{value:"ReactEventHandler<HTMLSelectElement>"}]}},onWaitingCapture:{defaultValue:null,description:"",name:"onWaitingCapture",required:!1,type:{name:"enum",value:[{value:"ReactEventHandler<HTMLSelectElement>"}]}},onAuxClick:{defaultValue:null,description:"",name:"onAuxClick",required:!1,type:{name:"enum",value:[{value:"MouseEventHandler<HTMLSelectElement>"}]}},onAuxClickCapture:{defaultValue:null,description:"",name:"onAuxClickCapture",required:!1,type:{name:"enum",value:[{value:"MouseEventHandler<HTMLSelectElement>"}]}},onClick:{defaultValue:null,description:"",name:"onClick",required:!1,type:{name:"enum",value:[{value:"MouseEventHandler<HTMLSelectElement>"}]}},onClickCapture:{defaultValue:null,description:"",name:"onClickCapture",required:!1,type:{name:"enum",value:[{value:"MouseEventHandler<HTMLSelectElement>"}]}},onContextMenu:{defaultValue:null,description:"",name:"onContextMenu",required:!1,type:{name:"enum",value:[{value:"MouseEventHandler<HTMLSelectElement>"}]}},onContextMenuCapture:{defaultValue:null,description:"",name:"onContextMenuCapture",required:!1,type:{name:"enum",value:[{value:"MouseEventHandler<HTMLSelectElement>"}]}},onDoubleClick:{defaultValue:null,description:"",name:"onDoubleClick",required:!1,type:{name:"enum",value:[{value:"MouseEventHandler<HTMLSelectElement>"}]}},onDoubleClickCapture:{defaultValue:null,description:"",name:"onDoubleClickCapture",required:!1,type:{name:"enum",value:[{value:"MouseEventHandler<HTMLSelectElement>"}]}},onDrag:{defaultValue:null,description:"",name:"onDrag",required:!1,type:{name:"enum",value:[{value:"DragEventHandler<HTMLSelectElement>"}]}},onDragCapture:{defaultValue:null,description:"",name:"onDragCapture",required:!1,type:{name:"enum",value:[{value:"DragEventHandler<HTMLSelectElement>"}]}},onDragEnd:{defaultValue:null,description:"",name:"onDragEnd",required:!1,type:{name:"enum",value:[{value:"DragEventHandler<HTMLSelectElement>"}]}},onDragEndCapture:{defaultValue:null,description:"",name:"onDragEndCapture",required:!1,type:{name:"enum",value:[{value:"DragEventHandler<HTMLSelectElement>"}]}},onDragEnter:{defaultValue:null,description:"",name:"onDragEnter",required:!1,type:{name:"enum",value:[{value:"DragEventHandler<HTMLSelectElement>"}]}},onDragEnterCapture:{defaultValue:null,description:"",name:"onDragEnterCapture",required:!1,type:{name:"enum",value:[{value:"DragEventHandler<HTMLSelectElement>"}]}},onDragExit:{defaultValue:null,description:"",name:"onDragExit",required:!1,type:{name:"enum",value:[{value:"DragEventHandler<HTMLSelectElement>"}]}},onDragExitCapture:{defaultValue:null,description:"",name:"onDragExitCapture",required:!1,type:{name:"enum",value:[{value:"DragEventHandler<HTMLSelectElement>"}]}},onDragLeave:{defaultValue:null,description:"",name:"onDragLeave",required:!1,type:{name:"enum",value:[{value:"DragEventHandler<HTMLSelectElement>"}]}},onDragLeaveCapture:{defaultValue:null,description:"",name:"onDragLeaveCapture",required:!1,type:{name:"enum",value:[{value:"DragEventHandler<HTMLSelectElement>"}]}},onDragOver:{defaultValue:null,description:"",name:"onDragOver",required:!1,type:{name:"enum",value:[{value:"DragEventHandler<HTMLSelectElement>"}]}},onDragOverCapture:{defaultValue:null,description:"",name:"onDragOverCapture",required:!1,type:{name:"enum",value:[{value:"DragEventHandler<HTMLSelectElement>"}]}},onDragStart:{defaultValue:null,description:"",name:"onDragStart",required:!1,type:{name:"enum",value:[{value:"DragEventHandler<HTMLSelectElement>"}]}},onDragStartCapture:{defaultValue:null,description:"",name:"onDragStartCapture",required:!1,type:{name:"enum",value:[{value:"DragEventHandler<HTMLSelectElement>"}]}},onDrop:{defaultValue:null,description:"",name:"onDrop",required:!1,type:{name:"enum",value:[{value:"DragEventHandler<HTMLSelectElement>"}]}},onDropCapture:{defaultValue:null,description:"",name:"onDropCapture",required:!1,type:{name:"enum",value:[{value:"DragEventHandler<HTMLSelectElement>"}]}},onMouseDown:{defaultValue:null,description:"",name:"onMouseDown",required:!1,type:{name:"enum",value:[{value:"MouseEventHandler<HTMLSelectElement>"}]}},onMouseDownCapture:{defaultValue:null,description:"",name:"onMouseDownCapture",required:!1,type:{name:"enum",value:[{value:"MouseEventHandler<HTMLSelectElement>"}]}},onMouseEnter:{defaultValue:null,description:"",name:"onMouseEnter",required:!1,type:{name:"enum",value:[{value:"MouseEventHandler<HTMLSelectElement>"}]}},onMouseLeave:{defaultValue:null,description:"",name:"onMouseLeave",required:!1,type:{name:"enum",value:[{value:"MouseEventHandler<HTMLSelectElement>"}]}},onMouseMove:{defaultValue:null,description:"",name:"onMouseMove",required:!1,type:{name:"enum",value:[{value:"MouseEventHandler<HTMLSelectElement>"}]}},onMouseMoveCapture:{defaultValue:null,description:"",name:"onMouseMoveCapture",required:!1,type:{name:"enum",value:[{value:"MouseEventHandler<HTMLSelectElement>"}]}},onMouseOut:{defaultValue:null,description:"",name:"onMouseOut",required:!1,type:{name:"enum",value:[{value:"MouseEventHandler<HTMLSelectElement>"}]}},onMouseOutCapture:{defaultValue:null,description:"",name:"onMouseOutCapture",required:!1,type:{name:"enum",value:[{value:"MouseEventHandler<HTMLSelectElement>"}]}},onMouseOver:{defaultValue:null,description:"",name:"onMouseOver",required:!1,type:{name:"enum",value:[{value:"MouseEventHandler<HTMLSelectElement>"}]}},onMouseOverCapture:{defaultValue:null,description:"",name:"onMouseOverCapture",required:!1,type:{name:"enum",value:[{value:"MouseEventHandler<HTMLSelectElement>"}]}},onMouseUp:{defaultValue:null,description:"",name:"onMouseUp",required:!1,type:{name:"enum",value:[{value:"MouseEventHandler<HTMLSelectElement>"}]}},onMouseUpCapture:{defaultValue:null,description:"",name:"onMouseUpCapture",required:!1,type:{name:"enum",value:[{value:"MouseEventHandler<HTMLSelectElement>"}]}},onSelect:{defaultValue:null,description:"",name:"onSelect",required:!1,type:{name:"enum",value:[{value:"ReactEventHandler<HTMLSelectElement>"}]}},onSelectCapture:{defaultValue:null,description:"",name:"onSelectCapture",required:!1,type:{name:"enum",value:[{value:"ReactEventHandler<HTMLSelectElement>"}]}},onTouchCancel:{defaultValue:null,description:"",name:"onTouchCancel",required:!1,type:{name:"enum",value:[{value:"TouchEventHandler<HTMLSelectElement>"}]}},onTouchCancelCapture:{defaultValue:null,description:"",name:"onTouchCancelCapture",required:!1,type:{name:"enum",value:[{value:"TouchEventHandler<HTMLSelectElement>"}]}},onTouchEnd:{defaultValue:null,description:"",name:"onTouchEnd",required:!1,type:{name:"enum",value:[{value:"TouchEventHandler<HTMLSelectElement>"}]}},onTouchEndCapture:{defaultValue:null,description:"",name:"onTouchEndCapture",required:!1,type:{name:"enum",value:[{value:"TouchEventHandler<HTMLSelectElement>"}]}},onTouchMove:{defaultValue:null,description:"",name:"onTouchMove",required:!1,type:{name:"enum",value:[{value:"TouchEventHandler<HTMLSelectElement>"}]}},onTouchMoveCapture:{defaultValue:null,description:"",name:"onTouchMoveCapture",required:!1,type:{name:"enum",value:[{value:"TouchEventHandler<HTMLSelectElement>"}]}},onTouchStart:{defaultValue:null,description:"",name:"onTouchStart",required:!1,type:{name:"enum",value:[{value:"TouchEventHandler<HTMLSelectElement>"}]}},onTouchStartCapture:{defaultValue:null,description:"",name:"onTouchStartCapture",required:!1,type:{name:"enum",value:[{value:"TouchEventHandler<HTMLSelectElement>"}]}},onPointerDown:{defaultValue:null,description:"",name:"onPointerDown",required:!1,type:{name:"enum",value:[{value:"PointerEventHandler<HTMLSelectElement>"}]}},onPointerDownCapture:{defaultValue:null,description:"",name:"onPointerDownCapture",required:!1,type:{name:"enum",value:[{value:"PointerEventHandler<HTMLSelectElement>"}]}},onPointerMove:{defaultValue:null,description:"",name:"onPointerMove",required:!1,type:{name:"enum",value:[{value:"PointerEventHandler<HTMLSelectElement>"}]}},onPointerMoveCapture:{defaultValue:null,description:"",name:"onPointerMoveCapture",required:!1,type:{name:"enum",value:[{value:"PointerEventHandler<HTMLSelectElement>"}]}},onPointerUp:{defaultValue:null,description:"",name:"onPointerUp",required:!1,type:{name:"enum",value:[{value:"PointerEventHandler<HTMLSelectElement>"}]}},onPointerUpCapture:{defaultValue:null,description:"",name:"onPointerUpCapture",required:!1,type:{name:"enum",value:[{value:"PointerEventHandler<HTMLSelectElement>"}]}},onPointerCancel:{defaultValue:null,description:"",name:"onPointerCancel",required:!1,type:{name:"enum",value:[{value:"PointerEventHandler<HTMLSelectElement>"}]}},onPointerCancelCapture:{defaultValue:null,description:"",name:"onPointerCancelCapture",required:!1,type:{name:"enum",value:[{value:"PointerEventHandler<HTMLSelectElement>"}]}},onPointerEnter:{defaultValue:null,description:"",name:"onPointerEnter",required:!1,type:{name:"enum",value:[{value:"PointerEventHandler<HTMLSelectElement>"}]}},onPointerLeave:{defaultValue:null,description:"",name:"onPointerLeave",required:!1,type:{name:"enum",value:[{value:"PointerEventHandler<HTMLSelectElement>"}]}},onPointerOver:{defaultValue:null,description:"",name:"onPointerOver",required:!1,type:{name:"enum",value:[{value:"PointerEventHandler<HTMLSelectElement>"}]}},onPointerOverCapture:{defaultValue:null,description:"",name:"onPointerOverCapture",required:!1,type:{name:"enum",value:[{value:"PointerEventHandler<HTMLSelectElement>"}]}},onPointerOut:{defaultValue:null,description:"",name:"onPointerOut",required:!1,type:{name:"enum",value:[{value:"PointerEventHandler<HTMLSelectElement>"}]}},onPointerOutCapture:{defaultValue:null,description:"",name:"onPointerOutCapture",required:!1,type:{name:"enum",value:[{value:"PointerEventHandler<HTMLSelectElement>"}]}},onGotPointerCapture:{defaultValue:null,description:"",name:"onGotPointerCapture",required:!1,type:{name:"enum",value:[{value:"PointerEventHandler<HTMLSelectElement>"}]}},onGotPointerCaptureCapture:{defaultValue:null,description:"",name:"onGotPointerCaptureCapture",required:!1,type:{name:"enum",value:[{value:"PointerEventHandler<HTMLSelectElement>"}]}},onLostPointerCapture:{defaultValue:null,description:"",name:"onLostPointerCapture",required:!1,type:{name:"enum",value:[{value:"PointerEventHandler<HTMLSelectElement>"}]}},onLostPointerCaptureCapture:{defaultValue:null,description:"",name:"onLostPointerCaptureCapture",required:!1,type:{name:"enum",value:[{value:"PointerEventHandler<HTMLSelectElement>"}]}},onScroll:{defaultValue:null,description:"",name:"onScroll",required:!1,type:{name:"enum",value:[{value:"UIEventHandler<HTMLSelectElement>"}]}},onScrollCapture:{defaultValue:null,description:"",name:"onScrollCapture",required:!1,type:{name:"enum",value:[{value:"UIEventHandler<HTMLSelectElement>"}]}},onWheel:{defaultValue:null,description:"",name:"onWheel",required:!1,type:{name:"enum",value:[{value:"WheelEventHandler<HTMLSelectElement>"}]}},onWheelCapture:{defaultValue:null,description:"",name:"onWheelCapture",required:!1,type:{name:"enum",value:[{value:"WheelEventHandler<HTMLSelectElement>"}]}},onAnimationStart:{defaultValue:null,description:"",name:"onAnimationStart",required:!1,type:{name:"enum",value:[{value:"AnimationEventHandler<HTMLSelectElement>"}]}},onAnimationStartCapture:{defaultValue:null,description:"",name:"onAnimationStartCapture",required:!1,type:{name:"enum",value:[{value:"AnimationEventHandler<HTMLSelectElement>"}]}},onAnimationEnd:{defaultValue:null,description:"",name:"onAnimationEnd",required:!1,type:{name:"enum",value:[{value:"AnimationEventHandler<HTMLSelectElement>"}]}},onAnimationEndCapture:{defaultValue:null,description:"",name:"onAnimationEndCapture",required:!1,type:{name:"enum",value:[{value:"AnimationEventHandler<HTMLSelectElement>"}]}},onAnimationIteration:{defaultValue:null,description:"",name:"onAnimationIteration",required:!1,type:{name:"enum",value:[{value:"AnimationEventHandler<HTMLSelectElement>"}]}},onAnimationIterationCapture:{defaultValue:null,description:"",name:"onAnimationIterationCapture",required:!1,type:{name:"enum",value:[{value:"AnimationEventHandler<HTMLSelectElement>"}]}},onTransitionEnd:{defaultValue:null,description:"",name:"onTransitionEnd",required:!1,type:{name:"enum",value:[{value:"TransitionEventHandler<HTMLSelectElement>"}]}},onTransitionEndCapture:{defaultValue:null,description:"",name:"onTransitionEndCapture",required:!1,type:{name:"enum",value:[{value:"TransitionEventHandler<HTMLSelectElement>"}]}},icon:{defaultValue:null,description:"",name:"icon",required:!1,type:{name:"enum",value:[{value:"ReactElement<any, string | JSXElementConstructor<any>>"}]}},placeholder:{defaultValue:null,description:"",name:"placeholder",required:!1,type:{name:"enum",value:[{value:"string"}]}},dataset:{defaultValue:null,description:"",name:"dataset",required:!1,type:{name:"enum",value:[{value:"Dataset"}]}},onValueChange:{defaultValue:null,description:"",name:"onValueChange",required:!1,type:{name:"enum",value:[{value:"(value: string) => void"}]}},ref:{defaultValue:null,description:"Allows getting a ref to the component instance.\nOnce the component unmounts, React will set `ref.current` to `null`\n(or call the ref with `null` if you passed a callback ref).\n@see {@link https://react.dev/learn/referencing-values-with-refs#refs-and-the-dom React Docs}",name:"ref",required:!1,type:{name:"enum",value:[{value:"null"},{value:"string"},{value:"(instance: HTMLSelectElement | null) => void"},{value:"RefObject<HTMLSelectElement>"}]}},key:{defaultValue:null,description:"",name:"key",required:!1,type:{name:"enum",value:[{value:"null"},{value:"string"},{value:"number"},{value:"bigint"}]}}}}}catch{}const ve=V.forwardRef(function({id:e,label:a,description:u,error:s,required:i,inputDataset:m,dataset:o,hideLabel:c,onClick:C,children:S,hasError:T,useLegacyRequiredLabel:M,className:I,style:f,...fe},ye){return t.jsx(he,{id:e,label:a,description:u,error:s,hasError:T,required:i,dataset:o,hideLabel:c,onClick:C,useLegacyRequiredLabel:M,preplyDsComponent:pe.SelectField,children:t.jsx(L,{...fe,ref:ye,dataset:m,children:S})})});ve.Option=w;const r=ve;function w(n){return t.jsx("option",{...n,...me(void 0,{preplyDsComponent:pe.SelectFieldOption})})}try{w.displayName="NativeSelectFieldOption",w.__docgenInfo={description:"",displayName:"NativeSelectFieldOption",props:{value:{defaultValue:null,description:"",name:"value",required:!0,type:{name:"string"}},disabled:{defaultValue:null,description:"",name:"disabled",required:!1,type:{name:"enum",value:[{value:"false"},{value:"true"}]}}}}}catch{}try{r.displayName="NativeSelectField",r.__docgenInfo={description:"",displayName:"NativeSelectField",props:{id:{defaultValue:null,description:`The id to be passed to the input element.
|
|
49
|
-
If not provided, will be generated for accessibility purposes.`,name:"id",required:!1,type:{name:"enum",value:[{value:"string"}]}},
|
|
50
|
-
indicator next to the label.`,name:"required",required:!1,type:{name:"enum",value:[{value:"false"},{value:"true"}]}},
|
|
51
|
-
to provide more context or instructions to the user.`,name:"description",required:!1,type:{name:"enum",value:[{value:"null"},{value:"string"},{value:"number"},{value:"false"},{value:"true"},{value:"ReactElement<any, string | JSXElementConstructor<any>>"},{value:"Iterable<ReactNode>"},{value:"ReactPortal"}]}},error:{defaultValue:null,description:"Error message to display when the field has an invalid value.",name:"error",required:!1,type:{name:"enum",value:[{value:"null"},{value:"string"},{value:"number"},{value:"false"},{value:"true"},{value:"ReactElement<any, string | JSXElementConstructor<any>>"},{value:"Iterable<ReactNode>"},{value:"ReactPortal"}]}},useLegacyRequiredLabel:{defaultValue:null,description:`When true, adds a "Required" indicator next to the label for the required fields.
|
|
49
|
+
If not provided, will be generated for accessibility purposes.`,name:"id",required:!1,type:{name:"enum",value:[{value:"string"}]}},onClick:{defaultValue:null,description:"",name:"onClick",required:!1,type:{name:"enum",value:[{value:"MouseEventHandler<HTMLDivElement> & MouseEventHandler<HTMLSelectElement>"}]}},dataset:{defaultValue:null,description:"",name:"dataset",required:!1,type:{name:"enum",value:[{value:"Dataset"}]}},hideLabel:{defaultValue:null,description:"Use this to hide the `label` visually, but keep it in the accessibility\ntree.",name:"hideLabel",required:!1,type:{name:"enum",value:[{value:"false"},{value:"true"}]}},required:{defaultValue:null,description:`Indicates if the field is required. When false, adds a "Optional"
|
|
50
|
+
indicator next to the label.`,name:"required",required:!1,type:{name:"enum",value:[{value:"false"},{value:"true"}]}},hasError:{defaultValue:null,description:"Whether the field has an error.\n@deprecated Use `error` prop to explicitly describe the error to users",name:"hasError",required:!1,type:{name:"enum",value:[{value:"false"},{value:"true"}]}},description:{defaultValue:null,description:`Additional descriptive text that appears below the input field
|
|
51
|
+
to provide more context or instructions to the user.`,name:"description",required:!1,type:{name:"enum",value:[{value:"null"},{value:"string"},{value:"number"},{value:"false"},{value:"true"},{value:"ReactElement<any, string | JSXElementConstructor<any>>"},{value:"Iterable<ReactNode>"},{value:"ReactPortal"}]}},label:{defaultValue:null,description:"The field label. This is needed for accessibility purposes, but can be\nhidden using the `hideLabel` prop.",name:"label",required:!0,type:{name:"enum",value:[{value:"undefined"},{value:"null"},{value:"string"},{value:"number"},{value:"false"},{value:"true"},{value:"ReactElement<any, string | JSXElementConstructor<any>>"},{value:"Iterable<ReactNode>"},{value:"ReactPortal"}]}},error:{defaultValue:null,description:"Error message to display when the field has an invalid value.",name:"error",required:!1,type:{name:"enum",value:[{value:"null"},{value:"string"},{value:"number"},{value:"false"},{value:"true"},{value:"ReactElement<any, string | JSXElementConstructor<any>>"},{value:"Iterable<ReactNode>"},{value:"ReactPortal"}]}},useLegacyRequiredLabel:{defaultValue:null,description:`When true, adds a "Required" indicator next to the label for the required fields.
|
|
52
52
|
When false, adds a "Optional" indicator next to the label for the optional fields instead.
|
|
53
|
-
@deprecated This is a temporary solution for gradual migration to the "Optional" label.`,name:"useLegacyRequiredLabel",required:!1,type:{name:"enum",value:[{value:"false"},{value:"true"}]}},
|
|
53
|
+
@deprecated This is a temporary solution for gradual migration to the "Optional" label.`,name:"useLegacyRequiredLabel",required:!1,type:{name:"enum",value:[{value:"false"},{value:"true"}]}},disabled:{defaultValue:null,description:"",name:"disabled",required:!1,type:{name:"enum",value:[{value:"false"},{value:"true"}]}},name:{defaultValue:null,description:"",name:"name",required:!1,type:{name:"enum",value:[{value:"string"}]}},onCopy:{defaultValue:null,description:"",name:"onCopy",required:!1,type:{name:"enum",value:[{value:"ClipboardEventHandler<HTMLSelectElement>"}]}},onCut:{defaultValue:null,description:"",name:"onCut",required:!1,type:{name:"enum",value:[{value:"ClipboardEventHandler<HTMLSelectElement>"}]}},onPaste:{defaultValue:null,description:"",name:"onPaste",required:!1,type:{name:"enum",value:[{value:"ClipboardEventHandler<HTMLSelectElement>"}]}},onFocus:{defaultValue:null,description:"",name:"onFocus",required:!1,type:{name:"enum",value:[{value:"FocusEventHandler<HTMLSelectElement>"}]}},onBlur:{defaultValue:null,description:"",name:"onBlur",required:!1,type:{name:"enum",value:[{value:"FocusEventHandler<HTMLSelectElement>"}]}},onChange:{defaultValue:null,description:"",name:"onChange",required:!1,type:{name:"enum",value:[{value:"ChangeEventHandler<HTMLSelectElement>"}]}},onKeyDown:{defaultValue:null,description:"",name:"onKeyDown",required:!1,type:{name:"enum",value:[{value:"KeyboardEventHandler<HTMLSelectElement>"}]}},onKeyUp:{defaultValue:null,description:"",name:"onKeyUp",required:!1,type:{name:"enum",value:[{value:"KeyboardEventHandler<HTMLSelectElement>"}]}},icon:{defaultValue:null,description:"",name:"icon",required:!1,type:{name:"enum",value:[{value:"ReactElement<any, string | JSXElementConstructor<any>>"}]}},onValueChange:{defaultValue:null,description:"",name:"onValueChange",required:!1,type:{name:"enum",value:[{value:"(value: string) => void"}]}},value:{defaultValue:null,description:"",name:"value",required:!1,type:{name:"enum",value:[{value:"string"}]}},defaultValue:{defaultValue:null,description:"",name:"defaultValue",required:!1,type:{name:"enum",value:[{value:"string"}]}},placeholder:{defaultValue:null,description:"",name:"placeholder",required:!1,type:{name:"enum",value:[{value:"string"}]}},inputDataset:{defaultValue:null,description:"",name:"inputDataset",required:!1,type:{name:"enum",value:[{value:"Dataset"}]}},ref:{defaultValue:null,description:"Allows getting a ref to the component instance.\nOnce the component unmounts, React will set `ref.current` to `null`\n(or call the ref with `null` if you passed a callback ref).\n@see {@link https://react.dev/learn/referencing-values-with-refs#refs-and-the-dom React Docs}",name:"ref",required:!1,type:{name:"enum",value:[{value:"null"},{value:"string"},{value:"(instance: HTMLSelectElement | null) => void"},{value:"RefObject<HTMLSelectElement>"}]}},key:{defaultValue:null,description:"",name:"key",required:!1,type:{name:"enum",value:[{value:"null"},{value:"string"},{value:"number"},{value:"bigint"}]}}}}}catch{}const{expect:l,userEvent:x,within:R,fn:d}=__STORYBOOK_MODULE_TEST__,Pe={title:"components/SelectField/NativeSelectField (deprecated)",component:r,subcomponents:{NativeSelectFieldOption:r.Option},args:{name:"language",label:"Language",placeholder:"Select a language",defaultValue:"",dataset:{testid:"field",foo:"bar"},inputDataset:{testid:"input",foo:"bar"},onChange:d(),onValueChange:d(),onBlur:d(),onFocus:d(),onClick:d(),onCopy:d(),onKeyDown:d(),onKeyUp:d(),onPaste:d(),children:t.jsxs(t.Fragment,{children:[t.jsx(r.Option,{value:"english",children:"English"}),t.jsx(r.Option,{value:"spanish",children:"Spanish"}),t.jsx(r.Option,{value:"french",children:"French"})]})}},p={play:async({canvasElement:n,step:e,args:a})=>{const u=R(n),s=u.getByTestId("field"),i=u.getByTestId("input");await e("it should render correct label",async()=>{const m=R(s).getByTestId("label");l(m).toHaveTextContent("Language • Optional"),l(i).toHaveAccessibleName("Language")}),await e("it should call onFocus when the input is focused",async()=>{i.focus(),l(a.onFocus).toHaveBeenCalled()}),await e("it should call callback when the value changes",async()=>{await x.selectOptions(i,"spanish"),l(a.onValueChange).toHaveBeenCalledWith("spanish"),l(a.onChange).toHaveBeenCalled()}),await e("it should call onBlur when the input is blurred",async()=>{await x.keyboard("{tab}"),l(a.onBlur).toHaveBeenCalled()}),await e("it should render the dataset props",async()=>{l(s).toHaveAttribute("data-testid","field"),l(s).toHaveAttribute("data-foo","bar"),l(i).toHaveAttribute("data-testid","input"),l(i).toHaveAttribute("data-foo","bar")}),await e("it should render all options",async()=>{const m=u.getByRole("option",{name:"English"}),o=u.getByRole("option",{name:"Spanish"}),c=u.getByRole("option",{name:"French"});l(m).toBeInTheDocument(),l(o).toBeInTheDocument(),l(c).toBeInTheDocument()})}},v={render:function(e){const[a,u]=V.useState(e.value);return t.jsxs(r,{...e,value:a,onChange:s=>{var i;u(s.target.value),(i=e.onChange)==null||i.call(e,s)},children:[t.jsx(r.Option,{value:"english",children:"English"}),t.jsx(r.Option,{value:"spanish",children:"Spanish"}),t.jsx(r.Option,{value:"french",children:"French"})]})},args:{label:"Controlled SelectField",placeholder:"Select a language...",value:"spanish"},play:async({canvas:n,step:e})=>{await e("it should render the correct initial value",async()=>{const a=n.getByTestId("input");await l(a).toHaveValue("spanish")}),await e("it should update the value when the user selects",async()=>{const a=n.getByTestId("input");await x.selectOptions(a,"french"),l(a).toHaveValue("french")})}},y={args:{icon:t.jsx(D,{svg:ce,dataset:{testid:"icon"}})},play:async({canvas:n,step:e})=>{await e("it should render the icon",async()=>{const a=n.getByTestId("icon");l(a).toBeInTheDocument()})}},h={args:{description:"We will use this to get a personalized choice of tutors"},play:async({canvas:n,step:e})=>{const a=n.getByTestId("input"),u=n.getByTestId("description");await e("it should render the description",async()=>{l(a).toHaveAccessibleDescription("We will use this to get a personalized choice of tutors"),l(u).toHaveTextContent("We will use this to get a personalized choice of tutors")})}},g={args:{required:!0},play:async({canvas:n,step:e})=>{const a=n.getByTestId("input"),u=n.getByTestId("label");await e("it should render correct label",async()=>{l(a).toHaveAccessibleName("Language"),l(u).toHaveTextContent("Language")}),await e("it should render required attribute",async()=>{l(a).toHaveAttribute("required")})}},E={args:{hideLabel:!0},play:async({canvas:n,step:e})=>{await e("it should render correct a11y label",async()=>{const a=n.getByTestId("input");l(a).toHaveAccessibleName("Language")})}},H={args:{error:"This is an error message"},play:async({canvas:n,step:e})=>{const a=n.getByTestId("input"),u=n.getByTestId("error");await e("it should render the error message",async()=>{l(a).toHaveAccessibleErrorMessage("This is an error message"),l(u).toHaveTextContent("This is an error message")})}},b={args:{disabled:!0},play:async({canvas:n,step:e})=>{const a=n.getByTestId("input");await e("it should render the disabled input",async()=>{l(a).toHaveAttribute("disabled")})}},q={parameters:{chromatic:{disableSnapshot:!0}},args:{label:"Language",placeholder:"Select a subject",description:"We will use this to get a personalized choice of tutors",children:t.jsxs(t.Fragment,{children:[t.jsx(r.Option,{value:"english",children:"English"}),t.jsx(r.Option,{value:"spanish",children:"Spanish"}),t.jsx(r.Option,{value:"french",children:"French"})]})},argTypes:{label:{control:"text"},placeholder:{control:"text"},description:{control:"text"},error:{control:"text"},value:{control:"text"},defaultValue:{control:"text"},inputDataset:{control:"object"},dataset:{control:"object"},id:{control:"text"},required:{control:"boolean"},hideLabel:{control:"boolean"},name:{control:"text"},disabled:{control:"boolean"},icon:{options:["None","With Icon"],mapping:{None:void 0,"With Icon":t.jsx(D,{svg:ce,label:"Student with a hat"})},control:"select"},children:{control:!1},hasError:{table:{disable:!0}}}};var P,O,F,B,A;p.parameters={...p.parameters,docs:{...(P=p.parameters)==null?void 0:P.docs,source:{originalSource:`{
|
|
54
54
|
play: async ({
|
|
55
55
|
canvasElement,
|
|
56
56
|
step,
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import{r as V,j as u}from"./iframe-CpMEswOF.js";import{F as g}from"./FormControl-CygcWV_h.js";import{w as H}from"./componentNames-hc9KR2nX.js";import{I as L}from"./Input-DwA6-keB.js";const t=V.forwardRef(function({id:i,label:d,description:s,error:o,required:m,inputDataset:p,dataset:v,hideLabel:f,onClick:c,onValueChange:e,onChange:a,hasError:y,useLegacyRequiredLabel:b,className:I,style:R,...h},q){const E=l=>{a==null||a(l);const n=l.target.value;e==null||e(n?Number(n):void 0)};return u.jsx(g,{id:i,label:d,description:s,error:o,hasError:y,required:m,dataset:v,hideLabel:f,onClick:c,useLegacyRequiredLabel:b,preplyDsComponent:H.NumberField,children:u.jsx(L,{...h,type:"number",ref:q,dataset:p,onChange:E})})});try{t.displayName="NumberField",t.__docgenInfo={description:"",displayName:"NumberField",props:{id:{defaultValue:null,description:`The id to be passed to the input element.
|
|
2
|
+
If not provided, will be generated for accessibility purposes.`,name:"id",required:!1,type:{name:"enum",value:[{value:"string"}]}},onClick:{defaultValue:null,description:"",name:"onClick",required:!1,type:{name:"enum",value:[{value:"MouseEventHandler<HTMLDivElement> & MouseEventHandler<HTMLInputElement>"}]}},dataset:{defaultValue:null,description:"",name:"dataset",required:!1,type:{name:"enum",value:[{value:"Dataset"}]}},hideLabel:{defaultValue:null,description:"Use this to hide the `label` visually, but keep it in the accessibility\ntree.",name:"hideLabel",required:!1,type:{name:"enum",value:[{value:"false"},{value:"true"}]}},required:{defaultValue:null,description:`Indicates if the field is required. When false, adds a "Optional"
|
|
3
|
+
indicator next to the label.`,name:"required",required:!1,type:{name:"enum",value:[{value:"false"},{value:"true"}]}},hasError:{defaultValue:null,description:"Whether the field has an error.\n@deprecated Use `error` prop to explicitly describe the error to users",name:"hasError",required:!1,type:{name:"enum",value:[{value:"false"},{value:"true"}]}},description:{defaultValue:null,description:`Additional descriptive text that appears below the input field
|
|
4
|
+
to provide more context or instructions to the user.`,name:"description",required:!1,type:{name:"enum",value:[{value:"null"},{value:"string"},{value:"number"},{value:"false"},{value:"true"},{value:"ReactElement<any, string | JSXElementConstructor<any>>"},{value:"Iterable<ReactNode>"},{value:"ReactPortal"}]}},label:{defaultValue:null,description:"The field label. This is needed for accessibility purposes, but can be\nhidden using the `hideLabel` prop.",name:"label",required:!0,type:{name:"enum",value:[{value:"undefined"},{value:"null"},{value:"string"},{value:"number"},{value:"false"},{value:"true"},{value:"ReactElement<any, string | JSXElementConstructor<any>>"},{value:"Iterable<ReactNode>"},{value:"ReactPortal"}]}},error:{defaultValue:null,description:"Error message to display when the field has an invalid value.",name:"error",required:!1,type:{name:"enum",value:[{value:"null"},{value:"string"},{value:"number"},{value:"false"},{value:"true"},{value:"ReactElement<any, string | JSXElementConstructor<any>>"},{value:"Iterable<ReactNode>"},{value:"ReactPortal"}]}},useLegacyRequiredLabel:{defaultValue:null,description:`When true, adds a "Required" indicator next to the label for the required fields.
|
|
5
|
+
When false, adds a "Optional" indicator next to the label for the optional fields instead.
|
|
6
|
+
@deprecated This is a temporary solution for gradual migration to the "Optional" label.`,name:"useLegacyRequiredLabel",required:!1,type:{name:"enum",value:[{value:"false"},{value:"true"}]}},disabled:{defaultValue:null,description:"",name:"disabled",required:!1,type:{name:"enum",value:[{value:"false"},{value:"true"}]}},name:{defaultValue:null,description:"",name:"name",required:!1,type:{name:"enum",value:[{value:"string"}]}},onCopy:{defaultValue:null,description:"",name:"onCopy",required:!1,type:{name:"enum",value:[{value:"ClipboardEventHandler<HTMLInputElement>"}]}},onCut:{defaultValue:null,description:"",name:"onCut",required:!1,type:{name:"enum",value:[{value:"ClipboardEventHandler<HTMLInputElement>"}]}},onPaste:{defaultValue:null,description:"",name:"onPaste",required:!1,type:{name:"enum",value:[{value:"ClipboardEventHandler<HTMLInputElement>"}]}},onFocus:{defaultValue:null,description:"",name:"onFocus",required:!1,type:{name:"enum",value:[{value:"FocusEventHandler<HTMLInputElement>"}]}},onBlur:{defaultValue:null,description:"",name:"onBlur",required:!1,type:{name:"enum",value:[{value:"FocusEventHandler<HTMLInputElement>"}]}},onChange:{defaultValue:null,description:"",name:"onChange",required:!1,type:{name:"enum",value:[{value:"ChangeEventHandler<HTMLInputElement>"}]}},onKeyDown:{defaultValue:null,description:"",name:"onKeyDown",required:!1,type:{name:"enum",value:[{value:"KeyboardEventHandler<HTMLInputElement>"}]}},onKeyUp:{defaultValue:null,description:"",name:"onKeyUp",required:!1,type:{name:"enum",value:[{value:"KeyboardEventHandler<HTMLInputElement>"}]}},icon:{defaultValue:null,description:"",name:"icon",required:!1,type:{name:"enum",value:[{value:"ReactElement<any, string | JSXElementConstructor<any>>"}]}},placeholder:{defaultValue:null,description:"",name:"placeholder",required:!1,type:{name:"enum",value:[{value:"string"}]}},button:{defaultValue:null,description:"",name:"button",required:!1,type:{name:"enum",value:[{value:"ReactElement<any, string | JSXElementConstructor<any>>"}]}},readOnly:{defaultValue:null,description:"",name:"readOnly",required:!1,type:{name:"enum",value:[{value:"false"},{value:"true"}]}},maxLength:{defaultValue:null,description:"",name:"maxLength",required:!1,type:{name:"enum",value:[{value:"number"}]}},value:{defaultValue:null,description:"",name:"value",required:!1,type:{name:"enum",value:[{value:"number"}]}},defaultValue:{defaultValue:null,description:"",name:"defaultValue",required:!1,type:{name:"enum",value:[{value:"number"}]}},onValueChange:{defaultValue:null,description:"",name:"onValueChange",required:!1,type:{name:"enum",value:[{value:"(value: number | undefined) => void"}]}},min:{defaultValue:null,description:"",name:"min",required:!1,type:{name:"enum",value:[{value:"number"}]}},max:{defaultValue:null,description:"",name:"max",required:!1,type:{name:"enum",value:[{value:"number"}]}},step:{defaultValue:null,description:"",name:"step",required:!1,type:{name:"enum",value:[{value:"number"}]}},inputDataset:{defaultValue:null,description:"",name:"inputDataset",required:!1,type:{name:"enum",value:[{value:"Dataset"}]}},ref:{defaultValue:null,description:"Allows getting a ref to the component instance.\nOnce the component unmounts, React will set `ref.current` to `null`\n(or call the ref with `null` if you passed a callback ref).\n@see {@link https://react.dev/learn/referencing-values-with-refs#refs-and-the-dom React Docs}",name:"ref",required:!1,type:{name:"enum",value:[{value:"null"},{value:"string"},{value:"(instance: HTMLInputElement | null) => void"},{value:"RefObject<HTMLInputElement>"}]}},key:{defaultValue:null,description:"",name:"key",required:!1,type:{name:"enum",value:[{value:"null"},{value:"string"},{value:"number"},{value:"bigint"}]}}}}}catch{}export{t as N};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{j as g,r as re}from"./iframe-
|
|
1
|
+
import{j as g,r as re}from"./iframe-CpMEswOF.js";import{F as te}from"./TokyoUIPhone-CX3CAtW4.js";import{F as se}from"./TokyoUIAttach-BtX3U917.js";import{I as ne}from"./Icon-BX3I9JNh.js";import{N as ae}from"./NumberField-DmosE2JM.js";import{F as ie}from"./FieldButton-CCXniKhy.js";import"./preload-helper-Dp1pzeXC.js";import"./text-accent-DZ_ihUdH.js";import"./filterAttributesPassedByRadixUIAtRuntime-B7QTVwVw.js";import"./render-icon-c7okze1K.js";import"./componentNames-hc9KR2nX.js";import"./FormControl-CygcWV_h.js";import"./index-DT-MbRPK.js";import"./message-CTdBLxyt.js";import"./Input-DwA6-keB.js";import"./InputContainer-BM2ePliH.js";const{action:ce}=__STORYBOOK_MODULE_ACTIONS__,{expect:n,userEvent:w,within:x,fn:r}=__STORYBOOK_MODULE_TEST__,fe={title:"components/NumberField",component:ae,args:{name:"number",label:"Number",defaultValue:void 0,placeholder:"Enter a number",dataset:{testid:"field",foo:"bar"},inputDataset:{testid:"input",foo:"bar"},onChange:r(),onValueChange:r(),onBlur:r(),onFocus:r(),onClick:r(),onCopy:r(),onKeyDown:r(),onKeyUp:r(),onPaste:r()}},c={play:async({canvasElement:a,step:e,args:t})=>{const o=x(a),i=o.getByTestId("field"),s=o.getByTestId("input");await e("it should render correct label",async()=>{const oe=x(i).getByTestId("label");n(oe).toHaveTextContent("Number • Optional"),n(s).toHaveAccessibleName("Number")}),await e("it should call onFocus when the input is focused",async()=>{s.focus(),n(t.onFocus).toHaveBeenCalled()}),await e("it should call callback when the value changes",async()=>{await w.type(s,"42"),n(t.onValueChange).toHaveBeenCalledWith(42),n(t.onChange).toHaveBeenCalled()}),await e("it should call onBlur when the input is blurred",async()=>{await w.keyboard("{tab}"),n(t.onBlur).toHaveBeenCalled()}),await e("it should render the dataset props",async()=>{n(i).toHaveAttribute("data-testid","field"),n(i).toHaveAttribute("data-foo","bar"),n(s).toHaveAttribute("data-testid","input"),n(s).toHaveAttribute("data-foo","bar")})}},l={render:function(e){const[t,o]=re.useState(e.value);return g.jsx(ae,{...e,value:t,onChange:i=>{var s;o(Number(i.target.value)),(s=e.onChange)==null||s.call(e,i)}})},args:{label:"Controlled NumberField",placeholder:"Enter a number...",value:42},play:async({canvas:a,step:e})=>{await e("it should render the correct initial value",async()=>{const t=a.getByTestId("input");await n(t).toHaveValue(42)}),await e("it should update the value when the user types",async()=>{const t=a.getByTestId("input");await w.clear(t),await w.type(t,"100"),n(t).toHaveValue(100)})}},u={args:{icon:g.jsx(ne,{svg:te,dataset:{testid:"icon"}})},play:async({canvas:a,step:e})=>{await e("it should render the icon",async()=>{const t=a.getByTestId("icon");n(t).toBeInTheDocument()})}},d={args:{description:"Enter a valid number"},play:async({canvas:a,step:e})=>{const t=a.getByTestId("input"),o=a.getByTestId("description");await e("it should render the description",async()=>{n(t).toHaveAccessibleDescription("Enter a valid number"),n(o).toHaveTextContent("Enter a valid number")})}},p={args:{required:!0},play:async({canvas:a,step:e})=>{const t=a.getByTestId("input"),o=a.getByTestId("label");await e("it should render correct label",async()=>{n(t).toHaveAccessibleName("Number"),n(o).toHaveTextContent("Number")}),await e("it should render required attribute",async()=>{n(t).toHaveAttribute("required")})}},m={args:{hideLabel:!0},play:async({canvas:a,step:e})=>{await e("it should render correct a11y label",async()=>{const t=a.getByTestId("input");n(t).toHaveAccessibleName("Number")})}},b={args:{error:"This is an error message"},play:async({canvas:a,step:e})=>{const t=a.getByTestId("input"),o=a.getByTestId("error");await e("it should render the error message",async()=>{n(t).toHaveAccessibleErrorMessage("This is an error message"),n(o).toHaveTextContent("This is an error message")})}},h={args:{disabled:!0},play:async({canvas:a,step:e})=>{const t=a.getByTestId("input");await e("it should render the disabled input",async()=>{n(t).toHaveAttribute("disabled")})}},y={args:{readOnly:!0},play:async({canvas:a,step:e})=>{const t=a.getByTestId("input");await e("it should render the read only input",async()=>{n(t).toHaveAttribute("readonly")})}},v={parameters:{chromatic:{disableSnapshot:!0}},args:{label:"Number of lessons",placeholder:"How about 3?",description:"These lessons will be scheduled automatically"},argTypes:{label:{control:"text"},placeholder:{control:"text"},description:{control:"text"},error:{control:"text"},value:{control:"number"},defaultValue:{control:"number"},inputDataset:{control:"object"},dataset:{control:"object"},id:{control:"text"},required:{control:"boolean"},hideLabel:{control:"boolean"},name:{control:"text"},disabled:{control:"boolean"},readOnly:{control:"boolean"},min:{control:"number"},max:{control:"number"},step:{control:"number"},icon:{options:["None","With Icon"],mapping:{None:void 0,"With Icon":g.jsx(ne,{svg:te})},control:"select"},button:{options:["None","With Button"],mapping:{None:void 0,"With Button":g.jsx(ie,{svg:se,assistiveText:"Do the thing",onClick:ce("field button clicked")})},control:"select"},maxLength:{control:"number"},hasError:{table:{disable:!0}}}};var T,B,H,I,f;c.parameters={...c.parameters,docs:{...(T=c.parameters)==null?void 0:T.docs,source:{originalSource:`{
|
|
2
2
|
play: async ({
|
|
3
3
|
canvasElement,
|
|
4
4
|
step,
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import{r as s,g as b,j as g,L as h}from"./iframe-
|
|
1
|
+
import{r as s,g as b,j as g,L as h}from"./iframe-CpMEswOF.js";import{w as y}from"./componentNames-hc9KR2nX.js";const l=({onIntersect:a,once:t,threshold:n,tag:o,dataset:u,children:i})=>{const e=s.useRef(null);s.useEffect(()=>{const p=([m],f)=>{m.isIntersecting&&(a(),t&&e.current&&f.unobserve(e.current))},d={threshold:n},r=new IntersectionObserver(p,d);return e.current&&r.observe(e.current),()=>r.disconnect()},[a,t,n]);const c=o??h,v={ref:e,...b(u,{preplyDsComponent:y.ObserverIntersection})};return g.jsx(c,{...v,children:i})};try{l.displayName="ObserveIntersection",l.__docgenInfo={description:`An [IntersectionObserver](https://developer.mozilla.org/en-US/docs/Web/API/IntersectionObserver) wrapper.
|
|
2
2
|
|
|
3
3
|
Triggers a callback when the wrapped component intersects with the viewport.
|
|
4
4
|
|
|
5
5
|
This can be useful in several use cases. Examples:
|
|
6
6
|
|
|
7
7
|
- Track an experiment, once a certain component scrolls into view.
|
|
8
|
-
- Trigger an animation, or a feature (e.g.: onboarding instructions).`,displayName:"ObserveIntersection",props:{onIntersect:{defaultValue:null,description:"",name:"onIntersect",required:!0,type:{name:"() => void"}},once:{defaultValue:null,description:"",name:"once",required:!1,type:{name:"enum",value:[{value:"false"},{value:"true"}]}},threshold:{defaultValue:null,description:"",name:"threshold",required:!1,type:{name:"enum",value:[{value:"number"}]}},tag:{defaultValue:null,description:"",name:"tag",required:!1,type:{name:"enum",value:[{value:'"
|
|
8
|
+
- Trigger an animation, or a feature (e.g.: onboarding instructions).`,displayName:"ObserveIntersection",props:{onIntersect:{defaultValue:null,description:"",name:"onIntersect",required:!0,type:{name:"() => void"}},once:{defaultValue:null,description:"",name:"once",required:!1,type:{name:"enum",value:[{value:"false"},{value:"true"}]}},threshold:{defaultValue:null,description:"",name:"threshold",required:!1,type:{name:"enum",value:[{value:"number"}]}},tag:{defaultValue:null,description:"",name:"tag",required:!1,type:{name:"enum",value:[{value:'"td"'},{value:'"li"'},{value:'"th"'},{value:'"tr"'},{value:'"p"'},{value:'"div"'},{value:'"span"'},{value:'"main"'},{value:'"header"'},{value:'"footer"'},{value:'"article"'},{value:'"section"'},{value:'"ul"'},{value:'"ol"'},{value:'"fieldset"'},{value:'"table"'},{value:'"thead"'},{value:'"tfoot"'},{value:'"tbody"'},{value:'"caption"'},{value:'"figure"'},{value:'"figcaption"'}]}},dataset:{defaultValue:null,description:"",name:"dataset",required:!1,type:{name:"enum",value:[{value:"Dataset"}]}}}}}catch{}export{l as O};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{r as a,j as t}from"./iframe-
|
|
1
|
+
import{r as a,j as t}from"./iframe-CpMEswOF.js";import{O as i}from"./ObserveIntersection-Be6WqdPA.js";import"./preload-helper-Dp1pzeXC.js";import"./componentNames-hc9KR2nX.js";const x={title:"components/ObserveIntersection",component:i,parameters:{tags:["!test"],chromatic:{disableSnapshot:!0}}},e=()=>{const[o,c]=a.useState(!1);return t.jsxs("div",{tabIndex:0,style:{height:"200px",overflowY:"scroll",position:"relative"},children:[t.jsx("div",{style:{position:"sticky",top:"2px"},children:o?"Intersected":"Scroll down to intersect"}),t.jsx("div",{style:{height:"400px",display:"flex",alignItems:"end"},children:t.jsx(i,{onIntersect:()=>c(!0),children:"Observer"})})]})};e.storyName="ObserveIntersection";var s,n,r;e.parameters={...e.parameters,docs:{...(s=e.parameters)==null?void 0:s.docs,source:{originalSource:`() => {
|
|
2
2
|
const [isIntersecting, setIsIntersecting] = useState(false);
|
|
3
3
|
return (
|
|
4
4
|
// eslint-disable-next-line jsx-a11y/no-noninteractive-tabindex -- This element is interactive; it's scrollable.
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{r as s,a7 as E,a8 as Z,j as a,a9 as Q,aa as Y,ab as ee,ac as j,ad as k,ae as te,af as A,ag as y,ah as ae,ai as N,aj as oe,ak as ne,al as le,I as re,K as ue,g as se}from"./iframe-
|
|
1
|
+
import{r as s,a7 as E,a8 as Z,j as a,a9 as Q,aa as Y,ab as ee,ac as j,ad as k,ae as te,af as A,ag as y,ah as ae,ai as N,aj as oe,ak as ne,al as le,I as re,K as ue,g as se}from"./iframe-CpMEswOF.js";import{F as ie}from"./TokyoUIClose-C1pVTvLz.js";import{I as ce}from"./Icon-BX3I9JNh.js";import{T as de}from"./Text-cq49jjad.js";import{B as pe}from"./Button-KCBOR544.js";import{H as fe}from"./Heading-Bie8QWaf.js";import{u as ve}from"./index-DT-MbRPK.js";import{g as me}from"./shared-strings-BChji30Y.js";import{w as he}from"./componentNames-hc9KR2nX.js";import{M as ge}from"./message-CTdBLxyt.js";import{h as be,R as ye,u as Ce,F as Pe}from"./index-dUCHvwfu.js";var P="Popover",[V]=Y(P,[E]),C=E(),[Re,f]=V(P),S=e=>{const{__scopePopover:t,children:l,open:i,defaultOpen:o,onOpenChange:n,modal:u=!1}=e,r=C(t),c=s.useRef(null),[d,v]=s.useState(!1),[m,p]=Z({prop:i,defaultProp:o??!1,onChange:n,caller:P});return a.jsx(Q,{...r,children:a.jsx(Re,{scope:t,contentId:ee(),triggerRef:c,open:m,onOpenChange:p,onOpenToggle:s.useCallback(()=>p(h=>!h),[p]),hasCustomAnchor:d,onCustomAnchorAdd:s.useCallback(()=>v(!0),[]),onCustomAnchorRemove:s.useCallback(()=>v(!1),[]),modal:u,children:l})})};S.displayName=P;var T="PopoverAnchor",D=s.forwardRef((e,t)=>{const{__scopePopover:l,...i}=e,o=f(T,l),n=C(l),{onCustomAnchorAdd:u,onCustomAnchorRemove:r}=o;return s.useEffect(()=>(u(),()=>r()),[u,r]),a.jsx(j,{...n,...i,ref:t})});D.displayName=T;var q="PopoverTrigger",xe=s.forwardRef((e,t)=>{const{__scopePopover:l,...i}=e,o=f(q,l),n=C(l),u=N(t,o.triggerRef),r=a.jsx(A.button,{type:"button","aria-haspopup":"dialog","aria-expanded":o.open,"aria-controls":o.contentId,"data-state":J(o.open),...i,ref:u,onClick:y(e.onClick,o.onOpenToggle)});return o.hasCustomAnchor?r:a.jsx(j,{asChild:!0,...n,children:r})});xe.displayName=q;var O="PopoverPortal",[we,Oe]=V(O,{forceMount:void 0}),M=e=>{const{__scopePopover:t,forceMount:l,children:i,container:o}=e,n=f(O,t);return a.jsx(we,{scope:t,forceMount:l,children:a.jsx(k,{present:l||n.open,children:a.jsx(te,{asChild:!0,container:o,children:i})})})};M.displayName=O;var g="PopoverContent",F=s.forwardRef((e,t)=>{const l=Oe(g,e.__scopePopover),{forceMount:i=l.forceMount,...o}=e,n=f(g,e.__scopePopover);return a.jsx(k,{present:i||n.open,children:n.modal?a.jsx(Ie,{...o,ref:t}):a.jsx(Ee,{...o,ref:t})})});F.displayName=g;var _e=oe("PopoverContent.RemoveScroll"),Ie=s.forwardRef((e,t)=>{const l=f(g,e.__scopePopover),i=s.useRef(null),o=N(t,i),n=s.useRef(!1);return s.useEffect(()=>{const u=i.current;if(u)return be(u)},[]),a.jsx(ye,{as:_e,allowPinchZoom:!0,children:a.jsx(L,{...e,ref:o,trapFocus:l.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:y(e.onCloseAutoFocus,u=>{var r;u.preventDefault(),n.current||(r=l.triggerRef.current)==null||r.focus()}),onPointerDownOutside:y(e.onPointerDownOutside,u=>{const r=u.detail.originalEvent,c=r.button===0&&r.ctrlKey===!0,d=r.button===2||c;n.current=d},{checkForDefaultPrevented:!1}),onFocusOutside:y(e.onFocusOutside,u=>u.preventDefault(),{checkForDefaultPrevented:!1})})})}),Ee=s.forwardRef((e,t)=>{const l=f(g,e.__scopePopover),i=s.useRef(!1),o=s.useRef(!1);return a.jsx(L,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:n=>{var u,r;(u=e.onCloseAutoFocus)==null||u.call(e,n),n.defaultPrevented||(i.current||(r=l.triggerRef.current)==null||r.focus(),n.preventDefault()),i.current=!1,o.current=!1},onInteractOutside:n=>{var c,d;(c=e.onInteractOutside)==null||c.call(e,n),n.defaultPrevented||(i.current=!0,n.detail.originalEvent.type==="pointerdown"&&(o.current=!0));const u=n.target;((d=l.triggerRef.current)==null?void 0:d.contains(u))&&n.preventDefault(),n.detail.originalEvent.type==="focusin"&&o.current&&n.preventDefault()}})}),L=s.forwardRef((e,t)=>{const{__scopePopover:l,trapFocus:i,onOpenAutoFocus:o,onCloseAutoFocus:n,disableOutsidePointerEvents:u,onEscapeKeyDown:r,onPointerDownOutside:c,onFocusOutside:d,onInteractOutside:v,...m}=e,p=f(g,l),h=C(l);return Ce(),a.jsx(Pe,{asChild:!0,loop:!0,trapped:i,onMountAutoFocus:o,onUnmountAutoFocus:n,children:a.jsx(ne,{asChild:!0,disableOutsidePointerEvents:u,onInteractOutside:v,onEscapeKeyDown:r,onPointerDownOutside:c,onFocusOutside:d,onDismiss:()=>p.onOpenChange(!1),children:a.jsx(le,{"data-state":J(p.open),role:"dialog",id:p.contentId,...h,...m,ref:t,style:{...m.style,"--radix-popover-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-popover-content-available-width":"var(--radix-popper-available-width)","--radix-popover-content-available-height":"var(--radix-popper-available-height)","--radix-popover-trigger-width":"var(--radix-popper-anchor-width)","--radix-popover-trigger-height":"var(--radix-popper-anchor-height)"}})})})}),H="PopoverClose",B=s.forwardRef((e,t)=>{const{__scopePopover:l,...i}=e,o=f(H,l);return a.jsx(A.button,{type:"button",...i,ref:t,onClick:y(e.onClick,()=>o.onOpenChange(!1))})});B.displayName=H;var je="PopoverArrow",X=s.forwardRef((e,t)=>{const{__scopePopover:l,...i}=e,o=C(l);return a.jsx(ae,{...o,...i,ref:t})});X.displayName=je;function J(e){return e?"open":"closed"}var ke=S,Ae=D,Ne=M,Ve=F,Se=B,Te=X;const De="content__KHgp9",qe="header__CaLti",Me="close__3s-VD",Fe="footer__X5qXF",Le="arrow__0pg-s",b={content:De,header:qe,close:Me,footer:Fe,arrow:Le},He=e=>{e.scrollIntoViewIfNeeded?e.scrollIntoViewIfNeeded(!1):e.scrollIntoView({behavior:"auto",block:"nearest",inline:"nearest"})},w=s.forwardRef(function({open:t,onOpenChange:l,disabled:i,title:o,text:n,children:u,side:r,dataset:c,actionLabel:d=a.jsx(ge,{id:"preply-ds.onboardingTooltip.actionLabel",defaultMessage:"Got it",description:"Default onboarding tooltip action label. Used to acknowledge and close the tooltip."}),actionOnClick:v,actionHref:m,counter:p,autoScroll:h=!0,...U},G){const{formatMessage:$}=ve(),K=re(),_=s.useId(),z=s.useId(),R=s.useId(),x=s.useRef(null);return s.useEffect(()=>{t&&x.current&&h&&He(x.current)},[h,t]),i?u:a.jsxs(ke,{open:t,onOpenChange:l,children:[a.jsx(ue,{ref:G,...U,children:a.jsx(Ae,{ref:x,id:R,asChild:!0,children:u})}),a.jsx(Ne,{container:K,children:a.jsxs(Ve,{onInteractOutside:W=>{W.preventDefault()},side:r,className:b.content,"aria-labelledby":_,"aria-describedby":`${R} ${z}`,...se(c,{preplyDsComponent:he.OnboardingTooltip}),children:[a.jsxs("div",{className:b.header,children:[a.jsx(Se,{className:b.close,"aria-label":$(me.close),"data-testid":"close",children:a.jsx(ce,{accent:"inverted",svg:ie})}),a.jsx(fe,{tag:"h1",variant:"small",accent:"inverted",id:_,"aria-describedby":R,children:o})]}),a.jsx(de,{variant:"default-regular",accent:"inverted",children:n}),a.jsxs("div",{className:b.footer,children:[p,a.jsx(pe,{variant:"inverted",size:"small",onClick:v,href:m,dataset:{testid:"action"},wrap:!0,children:d})]}),a.jsx(Te,{"aria-hidden":!0,className:b.arrow,width:18,height:11})]})})]})}),I=s.forwardRef(function(t,l){const[i,o]=s.useState(!0),n=r=>{var c;r||(c=t.onClose)==null||c.call(t),o(r)},u=()=>{var r,c;(r=t.actionOnClick)==null||r.call(t),o(!1),(c=t.onClose)==null||c.call(t)};return a.jsx(w,{...t,open:i,onOpenChange:n,actionOnClick:u,ref:l})});try{w.displayName="InternalOnboardingTooltip",w.__docgenInfo={description:"",displayName:"InternalOnboardingTooltip",props:{title:{defaultValue:null,description:"",name:"title",required:!0,type:{name:"enum",value:[{value:"undefined"},{value:"null"},{value:"string"},{value:"number"},{value:"false"},{value:"true"},{value:"ReactElement<any, string | JSXElementConstructor<any>>"},{value:"Iterable<ReactNode>"},{value:"ReactPortal"}]}},text:{defaultValue:null,description:"",name:"text",required:!0,type:{name:"enum",value:[{value:"undefined"},{value:"null"},{value:"string"},{value:"number"},{value:"false"},{value:"true"},{value:"ReactElement<any, string | JSXElementConstructor<any>>"},{value:"Iterable<ReactNode>"},{value:"ReactPortal"}]}},disabled:{defaultValue:null,description:"Disables tooltip completely",name:"disabled",required:!1,type:{name:"enum",value:[{value:"false"},{value:"true"}]}},onClose:{defaultValue:null,description:"Called when the tooltip is closed",name:"onClose",required:!1,type:{name:"enum",value:[{value:"() => void"}]}},actionLabel:{defaultValue:{value:`(
|
|
2
2
|
<FormattedMessage
|
|
3
3
|
id="preply-ds.onboardingTooltip.actionLabel"
|
|
4
4
|
defaultMessage="Got it"
|
package/dist/assets/{OnboardingTooltip.stories-CtzOLUxN.js → OnboardingTooltip.stories-C_B-G4_v.js}
RENAMED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{j as e,r as F}from"./iframe-
|
|
1
|
+
import{j as e,r as F}from"./iframe-CpMEswOF.js";import{O as i}from"./OnboardingTooltip-CsTure6K.js";import{I as w}from"./IconButton-DVKNd7ZK.js";import{F as C}from"./TokyoUIFav-B1z6F-nK.js";import"./preload-helper-Dp1pzeXC.js";import"./TokyoUIClose-C1pVTvLz.js";import"./Icon-BX3I9JNh.js";import"./text-accent-DZ_ihUdH.js";import"./filterAttributesPassedByRadixUIAtRuntime-B7QTVwVw.js";import"./render-icon-c7okze1K.js";import"./componentNames-hc9KR2nX.js";import"./Text-cq49jjad.js";import"./text-centered-DiwR-QSx.js";import"./Button-KCBOR544.js";import"./ButtonBase-D1x6yeKi.js";import"./Spinner-lj2QA4al.js";import"./useMergeRefs-DkQLsYW4.js";import"./useHostname-BVhrcDgi.js";import"./index-CC6DAVyL.js";import"./Heading-Bie8QWaf.js";import"./index-DT-MbRPK.js";import"./shared-strings-BChji30Y.js";import"./message-CTdBLxyt.js";import"./index-dUCHvwfu.js";const Y={title:"Components/OnboardingTooltip",component:i,parameters:{preventIframeFromScrollingParent:!0,docs:{story:{inline:!1,height:250},description:{component:`Are you looking for a step-by-step tour? Check out [OnboardingTour](/docs/components-onboardingtour--docs).
|
|
2
2
|
|
|
3
3
|
Also see [Composing Popovers](/docs/guides-composing-popovers--docs) for usage with other popovers.`}}},decorators:[t=>e.jsx("div",{style:{margin:"auto",width:"max-content"},children:t()})]},O=t=>[!1,!1],j=t=>a=>{},o=()=>{const[t,a]=O(),s=j();return e.jsx(i,{title:"New Feature Available!",text:"We've added an exciting new feature to enhance your experience.",disabled:a||t,onClose:()=>s(!0),children:e.jsx(w,{variant:"ghost",svg:e.jsx(C,{}),assistiveText:"Favorite"})})};o.storyName="OnboardingTooltip";const r={parameters:{chromatic:{disableSnapshot:!0},docs:{source:{type:"dynamic"}}},render:()=>{const t=F.forwardRef(function(s,T){return e.jsx("button",{...s,ref:T})});return e.jsx(i,{title:"New Feature Available!",text:"We've added an exciting new feature to enhance your experience.",children:e.jsx(t,{children:"Custom child"})})}},n={tags:["!autodocs"],args:{title:"New Feature Available!",text:"We've added an exciting new feature to enhance your experience.",disabled:!1,onClose:()=>{},children:e.jsx(w,{variant:"ghost",svg:e.jsx(C,{}),assistiveText:"Favorite"})},argTypes:{title:{control:"text"},text:{control:"text"},actionLabel:{control:"text"},actionOnClick:{control:!1},actionHref:{control:"text"},disabled:{control:"boolean"},dataset:{control:"object"},onClose:{control:!1},children:{control:!1}},parameters:{docs:{story:{height:450}},chromatic:{disableSnapshot:!0}},decorators:[t=>e.jsx("div",{style:{minHeight:"100vh",display:"flex"},children:e.jsx("div",{style:{margin:"auto",width:"max-content"},children:t()})})]};var c,l,d,p,u;o.parameters={...o.parameters,docs:{...(c=o.parameters)==null?void 0:c.docs,source:{originalSource:`() => {
|
|
4
4
|
const [wasTooltipSeen, loading] = useIsFeatureActive('new-feature');
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{j as a}from"./iframe-
|
|
1
|
+
import{j as a}from"./iframe-CpMEswOF.js";import{O as x}from"./OnboardingTooltip-CsTure6K.js";import{I}from"./IconButton-DVKNd7ZK.js";import{F as f}from"./TokyoUIFav-B1z6F-nK.js";import{B as k}from"./Button-KCBOR544.js";import{L as F}from"./LayoutFlex-BnIoY5YK.js";import"./preload-helper-Dp1pzeXC.js";import"./TokyoUIClose-C1pVTvLz.js";import"./Icon-BX3I9JNh.js";import"./text-accent-DZ_ihUdH.js";import"./filterAttributesPassedByRadixUIAtRuntime-B7QTVwVw.js";import"./render-icon-c7okze1K.js";import"./componentNames-hc9KR2nX.js";import"./Text-cq49jjad.js";import"./text-centered-DiwR-QSx.js";import"./Heading-Bie8QWaf.js";import"./index-DT-MbRPK.js";import"./shared-strings-BChji30Y.js";import"./message-CTdBLxyt.js";import"./index-dUCHvwfu.js";import"./ButtonBase-D1x6yeKi.js";import"./Spinner-lj2QA4al.js";import"./useMergeRefs-DkQLsYW4.js";import"./useHostname-BVhrcDgi.js";import"./index-CC6DAVyL.js";import"./layout-relative.module-Bhi7U482.js";const{within:s,userEvent:d,waitFor:r,expect:n}=__STORYBOOK_MODULE_TEST__,tt={title:"Components/OnboardingTooltip/Tests",component:x,parameters:{layout:"centered",controls:{disable:!0},chromatic:{disableSnapshot:!0}},tags:["!autodocs","!a11y-test","test"],decorators:[e=>a.jsx("div",{style:{margin:"100px 0"},children:e()})],args:{title:"Title",text:"Body text",actionLabel:"Action label",disabled:!1,onClose:()=>{},dataset:{testid:"tooltip"},children:a.jsx(I,{svg:a.jsx(f,{}),assistiveText:"Favorite"})}},c={play:async({canvasElement:e,step:o})=>{const i=s(e);await o("wait for tooltip to be visible",async()=>{await r(()=>{const t=i.getByTestId("tooltip");return n(t).toBeVisible()})}),await o("close the tooltip",()=>{const u=s(i.getByTestId("tooltip")).getByTestId("close");return d.click(u)}),await o("wait for tooltip to be hidden",async()=>{await r(()=>{const t=i.queryByTestId("tooltip");return n(t).toBeNull()})})}},l={play:async({canvasElement:e,step:o})=>{const i=s(e);await o("wait for tooltip to be visible",async()=>{await r(()=>{const t=i.getByTestId("tooltip");return n(t).toBeVisible()})}),await o("close the tooltip",()=>{const u=s(i.getByTestId("tooltip")).getByTestId("action");return d.click(u)}),await o("wait for tooltip to be hidden",async()=>{await r(()=>{const t=i.queryByTestId("tooltip");return n(t).toBeNull()})})}};function E(e){return new Promise(o=>setTimeout(o,e))}const p={render:e=>a.jsxs(F,{gap:"24",direction:"column",children:[a.jsx(k,{children:"Click outside the tooltip"}),a.jsx(x,{...e,children:a.jsx(I,{svg:a.jsx(f,{}),assistiveText:"Favorite"})})]}),play:async({canvasElement:e,step:o})=>{const i=s(e);await o("wait for tooltip to be visible",async()=>{await r(()=>{const t=i.getByTestId("tooltip");return n(t).toBeVisible()})}),await o("click outside the tooltip",()=>{const t=i.getByText("Click outside the tooltip");return d.click(t)}),await o("check the tooltip remain open",async()=>{await E(1e3);const t=i.getByTestId("tooltip");await n(t).toBeVisible()})}};var m,y,w;c.parameters={...c.parameters,docs:{...(m=c.parameters)==null?void 0:m.docs,source:{originalSource:`{
|
|
2
2
|
play: async ({
|
|
3
3
|
canvasElement,
|
|
4
4
|
step
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{r as i,j as r}from"./iframe-
|
|
1
|
+
import{r as i,j as r}from"./iframe-CpMEswOF.js";import{I as A}from"./OnboardingTooltip-CsTure6K.js";import"./index-DT-MbRPK.js";import{M as O}from"./message-CTdBLxyt.js";const j="counter__ArBS-",_={counter:j},v=({totalSteps:c,nextActionLabel:s=r.jsx(O,{id:"preply-ds.onboardingTour.nextActionLabel",defaultMessage:"Next",description:"Onboarding tour next action label"}),completeActionLabel:t=r.jsx(O,{id:"preply-ds.onboardingTour.completeActionLabel",defaultMessage:"Got it",description:"Onboarding tour complete action label"}),onClose:e,onComplete:n,onStepChange:o,disabled:l,children:x,ctx:d})=>{const[b,p]=i.useState(!0),[u,f]=i.useState(0),g={totalSteps:c,nextActionLabel:s,completeActionLabel:t,onClose:()=>{p(!1),e==null||e()},active:!l&&b,currentStep:u,onActionClick:()=>{if(u===c-1)n==null||n(),p(!1);else{const a=u+1;f(a),o==null||o(a)}}};return r.jsx(d.Provider,{value:g,children:x})},w=i.forwardRef(function({ctx:s,...t},e){const n=i.useContext(s);if(!n)throw new Error("OnboardingTourContext not found");const{currentStep:o,totalSteps:l,onActionClick:x,onClose:d,active:b,nextActionLabel:p,completeActionLabel:u}=n,f=t.step===l-1,m=t.step===o,S=f?u:p,g=()=>{var a;(a=t.actionOnClick)==null||a.call(t),x()},h=a=>{a||d==null||d()};return r.jsx(A,{...t,counter:r.jsx("p",{className:_.counter,children:r.jsx(O,{id:"preply-ds.onboardingTour.counter",defaultMessage:"{currentStep} of {totalSteps}",description:"Onboarding tour step counter, e.g. '1 of 3'",values:{currentStep:o+1,totalSteps:l}})}),open:b&&m,onOpenChange:h,actionLabel:S,actionOnClick:g,ref:e})}),T=()=>{const c=i.createContext(null),s=e=>r.jsx(v,{...e,ctx:c}),t=i.forwardRef(function(n,o){return r.jsx(w,{...n,ctx:c,ref:o})});return{Provider:s,Step:t}};try{T.displayName="createOnboardingTour",T.__docgenInfo={description:`Creates a new onboarding tour.
|
|
2
2
|
|
|
3
3
|
This factory pattern allows multiple independent tours to be nested within each other
|
|
4
4
|
without context conflicts, as each tour maintains its own separate context and state.`,displayName:"createOnboardingTour",props:{}}}catch{}export{T as c};
|