@preply/ds-docs 9.0.0 → 9.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/assets/{00.LayoutFlex.stories-Dg87GSaL.js → 00.LayoutFlex.stories-BCNMygVE.js} +1 -1
- package/dist/assets/{00.applications-DuAVl9Uu.js → 00.applications-Cj9uC86n.js} +1 -1
- package/dist/assets/{00.favicons.guide-DVJeHh68.js → 00.favicons.guide-C-C9jg3T.js} +1 -1
- package/dist/assets/{00.token-explorer-CeGesqx6.js → 00.token-explorer-C4LAzVZX.js} +1 -1
- package/dist/assets/{00.using-responsive-props-EFJN_f6o.js → 00.using-responsive-props-B7byf0gx.js} +1 -1
- package/dist/assets/{01.semantic-tokens-BXgFVzXr.js → 01.semantic-tokens-Dnr3rSdi.js} +1 -1
- package/dist/assets/{01.using-shorthand-props-IXrWatuj.js → 01.using-shorthand-props-Bj8N2oP4.js} +1 -1
- package/dist/assets/{10.Combinations.stories-zbnD3HFM.js → 10.Combinations.stories-DCuScgXp.js} +1 -1
- package/dist/assets/{10.fonts.guide-DCwKlvbu.js → 10.fonts.guide-CU8dMBRc.js} +1 -1
- package/dist/assets/{10.ssr-D01_bXEP.js → 10.ssr-BJUSHkUL.js} +1 -1
- package/dist/assets/{11.fonts.explorer-DIrAevD7.js → 11.fonts.explorer-BkYx16R6.js} +43 -43
- package/dist/assets/{11.ssr.app-router-Bo3eKddM.js → 11.ssr.app-router-BAmVsjxv.js} +1 -1
- package/dist/assets/{20.libraries-jKMh3ar0.js → 20.libraries-dgsYSyEH.js} +1 -1
- package/dist/assets/{2025-q4-ds-cleanup-Bu4orcOa.js → 2025-q4-ds-cleanup-BD1l2a2v.js} +1 -1
- package/dist/assets/{30.icons.explorer-C9IE62G2.js → 30.icons.explorer-CS4d6zHG.js} +2 -2
- package/dist/assets/{30.storybook-DIp10jfK.js → 30.storybook-BKiYDtg1.js} +1 -1
- package/dist/assets/{40.illustrations.explorer-D23bTPy_.js → 40.illustrations.explorer-dyGWgv36.js} +1 -1
- package/dist/assets/{90.advanced-DqmrsXoy.js → 90.advanced-BK6rI0l2.js} +1 -1
- package/dist/assets/{Accordion-DxNzeFBJ.js → Accordion-K_j-43HZ.js} +1 -1
- package/dist/assets/{Accordion.stories-anse7uf1.js → Accordion.stories-CjbasC68.js} +1 -1
- package/dist/assets/{Accordion.tests.stories-DoGc7az7.js → Accordion.tests.stories-_cRdUDSo.js} +1 -1
- package/dist/assets/{AlertBanner.primitives.stories-f7g-qsm5.js → AlertBanner.primitives.stories-JMCCPJnr.js} +1 -1
- package/dist/assets/{AlertBanner.stories-DDbmK3Yc.js → AlertBanner.stories-C8GUF7vm.js} +21 -9
- package/dist/assets/{AlertBannerText-CVGRB8DE.js → AlertBannerText-D_GhSx4T.js} +15 -15
- package/dist/assets/{AlertDialog.stories-DnaVSU9D.js → AlertDialog.stories-Dgq01GlN.js} +1 -1
- package/dist/assets/{Avatar-BysKY9Is.js → Avatar-B1YmiX3C.js} +1 -1
- package/dist/assets/{Avatar.stories-BByTHGPI.js → Avatar.stories-CaGLIDv1.js} +1 -1
- package/dist/assets/{AvatarWithStatus.stories-F9rm0dfc.js → AvatarWithStatus.stories-CQhlZknK.js} +1 -1
- package/dist/assets/{Badge-DgknZ2WQ.js → Badge-gJPjBeZA.js} +2 -2
- package/dist/assets/{Badge.stories-Cyx1byUJ.js → Badge.stories-BX3zOvcz.js} +1 -1
- package/dist/assets/{Box.stories-Bk6oJz6t.js → Box.stories-D1-aaP7y.js} +1 -1
- package/dist/assets/{BubbleCounter.stories-D5J9h2cc.js → BubbleCounter.stories-BheNu2XE.js} +1 -1
- package/dist/assets/{Button-8TyghF-W.js → Button-DGeBRRiu.js} +2 -2
- package/dist/assets/{Button-Dwk3YNxM.js → Button-Dq9U-x_2.js} +1 -1
- package/dist/assets/{Button.stories-BCxVpHzQ.js → Button.stories-kWB87Dip.js} +1 -1
- package/dist/assets/{ButtonBase-D85CySUD.js → ButtonBase-DNBAX75l.js} +1 -1
- package/dist/assets/{CalloutBanner.stories-CeOpX8jY.js → CalloutBanner.stories-imF3pWrO.js} +9 -9
- package/dist/assets/{Checkbox-sClu0CX-.js → Checkbox-C_2Ntdn7.js} +1 -1
- package/dist/assets/{Checkbox.stories-DnFx9Fe8.js → Checkbox.stories-BR1rzo3V.js} +1 -1
- package/dist/assets/{Checkbox.tests.stories-mrARYS3G.js → Checkbox.tests.stories-DLHzbR-3.js} +1 -1
- package/dist/assets/{Chips.stories-tq4wQiCV.js → Chips.stories-DyyZPrDy.js} +1 -1
- package/dist/assets/{Color-ASIRERSW-CCDuOJcx.js → Color-ASIRERSW-BLBT1VcA.js} +1 -1
- package/dist/assets/{ComposingPopovers.stories-BHJBVB7G.js → ComposingPopovers.stories-lwiwkDau.js} +1 -1
- package/dist/assets/{CountryFlag-BfP2Z-xa.js → CountryFlag-CIdWr2XO.js} +8 -8
- package/dist/assets/{CountryFlag.stories-PLGwrkX-.js → CountryFlag.stories-7UiE4oBf.js} +1 -1
- package/dist/assets/{CountryFlag.test.stories-DyIRt-yG.js → CountryFlag.test.stories-OR19SNon.js} +1 -1
- package/dist/assets/{Dialog-CbS23AlC.js → Dialog-CKmITsZc.js} +1 -1
- package/dist/assets/{Dialog.primitives.stories-DRUk60bF.js → Dialog.primitives.stories-BdTs3FLi.js} +1 -1
- package/dist/assets/{Dialog.stories-bIEy9TKX.js → Dialog.stories-JSWOh9Dn.js} +1 -1
- package/dist/assets/{Dialog.test.stories-BbYJTVXB.js → Dialog.test.stories-gNvLYcCQ.js} +1 -1
- package/dist/assets/{DialogActions-DqsdBLDH.js → DialogActions-BVsjnGkp.js} +10 -10
- package/dist/assets/{DialogTitle-Cwjppmjv.js → DialogTitle-C_7Sfj1O.js} +17 -17
- package/dist/assets/DismissibleChips-Ban3NVPS.js +1 -0
- package/dist/assets/{DismissibleChips.stories-SUVqKwVa.js → DismissibleChips.stories-DgeyF-ao.js} +1 -1
- package/dist/assets/{Divider-UpivNe1W.js → Divider-CBYEIgmI.js} +1 -1
- package/dist/assets/{Divider.stories-FPMS1aC5.js → Divider.stories-C12psIEV.js} +1 -1
- package/dist/assets/{DocsRenderer-GHJI37HO-inYhWn1T.js → DocsRenderer-GHJI37HO-CG8Y-g_n.js} +2 -2
- package/dist/assets/{DropdownMenu-RBToMXkL.js → DropdownMenu-CHmY9MEd.js} +159 -159
- package/dist/assets/{DropdownMenu.stories-BpEhFeX_.js → DropdownMenu.stories-BFi_X5F2.js} +1 -1
- package/dist/assets/{FieldButton-D-3o-lMh.js → FieldButton-yd6DmWvU.js} +1 -1
- package/dist/assets/{FieldButton.stories-Cc6AvbxX.js → FieldButton.stories-D9JBtr4O.js} +1 -1
- package/dist/assets/{FormControl-BwXDY9-m.js → FormControl-CzKrRqYA.js} +1 -1
- package/dist/assets/{FormControl.stories-CI2bBHKa.js → FormControl.stories-B9EOoEVt.js} +1 -1
- package/dist/assets/{Heading-IAeZxORQ.js → Heading-BFtiYfNT.js} +1 -1
- package/dist/assets/{Heading.stories-B8NU4XH8.js → Heading.stories-D69YSRMR.js} +1 -1
- package/dist/assets/{Icon-CeynEPoQ.js → Icon-C5UQdb5e.js} +2 -2
- package/dist/assets/{Icon-RSC-DFJrR2oE.js → Icon-RSC-BiLq__Ve.js} +1 -1
- package/dist/assets/{Icon.stories-BuiwbRD-.js → Icon.stories-D7NEwDBE.js} +1 -1
- package/dist/assets/IconButton-ClS7adSJ.js +8 -0
- package/dist/assets/{IconTile.stories-D1hs9-qb.js → IconTile.stories-BELcbM0x.js} +1 -1
- package/dist/assets/{Input-CqcqWEMs.js → Input-CY8WPfKe.js} +6 -6
- package/dist/assets/{InputContainer-BFzIl3Vh.js → InputContainer-D7ZAPKi0.js} +1 -1
- package/dist/assets/{IntegrationWithReactHookForm.stories-HiLJZYEt.js → IntegrationWithReactHookForm.stories-DAkZZlj1.js} +1 -1
- package/dist/assets/{IntlFormattedCurrency.stories-YQIIjsGq.js → IntlFormattedCurrency.stories-DOB_mJMJ.js} +9 -9
- package/dist/assets/{IntlFormattedDateTime.stories-DLOaS3DY.js → IntlFormattedDateTime.stories-Bb0wYsKS.js} +7 -7
- package/dist/assets/{LayoutFlex-C9OAa1US.js → LayoutFlex-8VEpbYm2.js} +1 -1
- package/dist/assets/{LayoutFlex-FxpGriXb.js → LayoutFlex-DJchK3Ku.js} +1 -1
- package/dist/assets/{LayoutFlexItem-B-MjINJK.js → LayoutFlexItem-veclhYXd.js} +1 -1
- package/dist/assets/{LayoutGrid-YA3eCKBR.js → LayoutGrid-ClN55Wfu.js} +1 -1
- package/dist/assets/{LayoutGrid-DxGs2sRc.js → LayoutGrid-DRM7laCZ.js} +1 -1
- package/dist/assets/{LayoutGrid.stories-_KpVIpCb.js → LayoutGrid.stories-DVMweKlV.js} +1 -1
- package/dist/assets/{LayoutGridItem-C13waGcp.js → LayoutGridItem-ZgShiMY6.js} +1 -1
- package/dist/assets/{Link-D4CS5-70.js → Link-A5JmQWbD.js} +2 -2
- package/dist/assets/{Link.stories-dnKLDj_t.js → Link.stories-B2hbErdK.js} +1 -1
- package/dist/assets/{Loader.stories-C_tJzTNQ.js → Loader.stories-DjT9WSa0.js} +1 -1
- package/dist/assets/MultiSelectChips-DidzFDbd.js +2 -0
- package/dist/assets/{MultiSelectChips.stories-Cup_MZ5f.js → MultiSelectChips.stories-FaaktENh.js} +1 -1
- package/dist/assets/{NativeSelectField.stories-yUJmHEFy.js → NativeSelectField.stories-BOCQBvr9.js} +9 -9
- package/dist/assets/{NumberField-B9tJ_84a.js → NumberField-UaAR3tKE.js} +4 -4
- package/dist/assets/{NumberField.stories-CWKhXBUS.js → NumberField.stories-FCP9vR30.js} +1 -1
- package/dist/assets/{ObserveIntersection-cLHrROGT.js → ObserveIntersection-CQkIW63_.js} +2 -2
- package/dist/assets/{ObserveIntersection.stories-vF80i0Li.js → ObserveIntersection.stories-gQnws4dC.js} +1 -1
- package/dist/assets/{OnboardingTooltip-h7CPBh1u.js → OnboardingTooltip-BZ24KrQu.js} +1 -1
- package/dist/assets/{OnboardingTooltip.stories-DkNlz-Ad.js → OnboardingTooltip.stories-CtzOLUxN.js} +1 -1
- package/dist/assets/{OnboardingTooltip.tests.stories-B3eXtCbM.js → OnboardingTooltip.tests.stories-BNw7iy_w.js} +1 -1
- package/dist/assets/{OnboardingTour-DjRE-J8f.js → OnboardingTour-Dn-m2m1d.js} +1 -1
- package/dist/assets/{OnboardingTour.stories-Dk65Z8oq.js → OnboardingTour.stories-6zCHX4V0.js} +2 -2
- package/dist/assets/{OnboardingTour.tests.stories-Bnw00zW2.js → OnboardingTour.tests.stories-CW9B-QMs.js} +1 -1
- package/dist/assets/{PasswordField-XLhtbx29.js → PasswordField-BZzwsMwt.js} +4 -4
- package/dist/assets/{PasswordField.stories-BtG0wGS0.js → PasswordField.stories-C0mB2e5u.js} +1 -1
- package/dist/assets/{PreplyLogo.stories-D1k24Ctu.js → PreplyLogo.stories-CZG5H-Pd.js} +1 -1
- package/dist/assets/{ProgressBar.stories-9msYqEY0.js → ProgressBar.stories-fPxhHJbx.js} +1 -1
- package/dist/assets/{ProgressSteps-B2XQcdLG.js → ProgressSteps-DENeSjPR.js} +1 -1
- package/dist/assets/{ProgressSteps.stories-pl79KFEi.js → ProgressSteps.stories-DzXqXJeY.js} +1 -1
- package/dist/assets/{PromoDialog-CxF7WOnO.js → PromoDialog-BsePIPb7.js} +1 -1
- package/dist/assets/{RangeSlider-B2Zouc8q.js → RangeSlider-93BZWuvB.js} +1 -1
- package/dist/assets/{RangeSlider.stories-BAV1yY1C.js → RangeSlider.stories-JyNrkPT0.js} +1 -1
- package/dist/assets/{Rating.stories-BQVfxE6g.js → Rating.stories-NVs2SdN3.js} +1 -1
- package/dist/assets/{RatingInput.stories-43LjC1w-.js → RatingInput.stories-DcP1qONO.js} +1 -1
- package/dist/assets/{SelectField-BvfGJpJ1.js → SelectField-DpD7wOTW.js} +7 -7
- package/dist/assets/{SelectField.stories-Il6MnDL1.js → SelectField.stories-Bo0V_Tu3.js} +1 -1
- package/dist/assets/{ShowOnIntersection.stories-FpYY0Q8q.js → ShowOnIntersection.stories-D8dDbLPb.js} +1 -1
- package/dist/assets/SingleSelectChips-k-EE7r6U.js +2 -0
- package/dist/assets/{SingleSelectChips.stories-CJZKH2U4.js → SingleSelectChips.stories-BY1rIhey.js} +1 -1
- package/dist/assets/{Slider-B0S-MnFm.js → Slider-BEvY5ahD.js} +1 -1
- package/dist/assets/{Slider.stories-B9M2oZ8y.js → Slider.stories-7tdok1Lu.js} +1 -1
- package/dist/assets/{Spinner-VeUQXU7V.js → Spinner-DMKptX0-.js} +1 -1
- package/dist/assets/{Stars-BBLs0oLi.js → Stars-B0SlHGua.js} +1 -1
- package/dist/assets/{Steps-BxR2mZ1_.js → Steps-CmKCNz9h.js} +1 -1
- package/dist/assets/{Steps.stories-Dnws6acU.js → Steps.stories-DnK825vX.js} +1 -1
- package/dist/assets/{Switch-CJwqtDn5.js → Switch-bEvpJ3Q9.js} +1 -1
- package/dist/assets/{Switch.stories-DhI28GEc.js → Switch.stories-BsJzpmTT.js} +1 -1
- package/dist/assets/{Text-CPACpRkz.js → Text-DadiF3bg.js} +1 -1
- package/dist/assets/{Text-CjzJNqHA.js → Text-s7kR65wV.js} +1 -1
- package/dist/assets/{Text.stories-B8yS59PB.js → Text.stories-BpH1Ii1L.js} +1 -1
- package/dist/assets/{TextField-DJcEjzcv.js → TextField-C5NAs2Cw.js} +4 -4
- package/dist/assets/{TextField.stories-tVGWW2yJ.js → TextField.stories-2DsJRJA-.js} +1 -1
- package/dist/assets/{TextHighlighted.stories-BRgLkJWh.js → TextHighlighted.stories-DJRCNwVQ.js} +1 -1
- package/dist/assets/{TextInline.stories-jXEa0vA8.js → TextInline.stories-Y4zpFEDV.js} +1 -1
- package/dist/assets/{TextareaField-BG6B7Nx9.js → TextareaField-Dgl4xame.js} +10 -10
- package/dist/assets/{TextareaField.stories-BD-9LN8n.js → TextareaField.stories-BJtFz_Du.js} +1 -1
- package/dist/assets/{Toast.stories-BKG1hvy6.js → Toast.stories-BVf0GuVo.js} +1 -1
- package/dist/assets/{TokyoUIAttach-8ypdmAyG.js → TokyoUIAttach-CuccI8mX.js} +1 -1
- package/dist/assets/{TokyoUIAvailability7LateNight-DbyckCtx.js → TokyoUIAvailability7LateNight-Bu_wDbHq.js} +1 -1
- package/dist/assets/{TokyoUICheck-DyeJxS4m.js → TokyoUICheck-CBZ8cyGE.js} +1 -1
- package/dist/assets/{TokyoUICheckmark-E1IDF8Dm.js → TokyoUICheckmark-Cz_YL9lO.js} +1 -1
- package/dist/assets/{TokyoUIChevronDown-Bqnin0me.js → TokyoUIChevronDown-CpJTAVH5.js} +1 -1
- package/dist/assets/{TokyoUIChevronRight-BUlmcwhk.js → TokyoUIChevronRight-BQJATqWN.js} +1 -1
- package/dist/assets/{TokyoUIClose-DpSNWwxX.js → TokyoUIClose-CdBZGlA7.js} +1 -1
- package/dist/assets/{TokyoUIEmojiFrowning-Cns9Y9eQ.js → TokyoUIEmojiFrowning-DlNteo5p.js} +1 -1
- package/dist/assets/{TokyoUIErrorWarning-BoJjXvv2.js → TokyoUIErrorWarning-CxGVa-_Z.js} +1 -1
- package/dist/assets/{TokyoUIExerciseClosedGapsJumble-C_YhJafE.js → TokyoUIExerciseClosedGapsJumble-C8EDtq9l.js} +1 -1
- package/dist/assets/{TokyoUIEye-DBRRGjL1.js → TokyoUIEye-CuEqusRx.js} +1 -1
- package/dist/assets/{TokyoUIFav-B5fsDXJO.js → TokyoUIFav-0uWF_TDx.js} +1 -1
- package/dist/assets/{TokyoUIInfo-B-nyxu9X.js → TokyoUIInfo-CIEgGZLb.js} +1 -1
- package/dist/assets/{TokyoUILanguage-DVvpEITD.js → TokyoUILanguage-BCWaVqWU.js} +1 -1
- package/dist/assets/{TokyoUILibraryExplore-DpTmvI5A.js → TokyoUILibraryExplore-B--iVn5l.js} +1 -1
- package/dist/assets/{TokyoUILock-BenGJzbt.js → TokyoUILock-CYuXl3qM.js} +1 -1
- package/dist/assets/{TokyoUIMessages-wIafFsU2.js → TokyoUIMessages-D58TZTzG.js} +1 -1
- package/dist/assets/{TokyoUIMinus-BEm8txMB.js → TokyoUIMinus-CPkUsesB.js} +1 -1
- package/dist/assets/{TokyoUINotebook-KTkhwr1a.js → TokyoUINotebook-Sko1JO2r.js} +1 -1
- package/dist/assets/{TokyoUINotesWithPad-yqIw3i8c.js → TokyoUINotesWithPad-Bg9LPtgb.js} +1 -1
- package/dist/assets/{TokyoUIPhone-DeqV10GH.js → TokyoUIPhone-BEiSZYPc.js} +1 -1
- package/dist/assets/{TokyoUISettings-AUPAZo6H.js → TokyoUISettings-mcnFb11P.js} +1 -1
- package/dist/assets/{TokyoUISparkle-Rlb1iC0a.js → TokyoUISparkle-BrtqBicw.js} +1 -1
- package/dist/assets/{TokyoUIStarFilled-D232Uw9P.js → TokyoUIStarFilled-CJDgeuMD.js} +1 -1
- package/dist/assets/{TokyoUITag-CoRJX_jx.js → TokyoUITag-Clpp0JxY.js} +1 -1
- package/dist/assets/{TokyoUIUpload-B4cXgnHx.js → TokyoUIUpload-CPhgdTOp.js} +1 -1
- package/dist/assets/{TokyoUIUser-utjsvyKG.js → TokyoUIUser-CytSxWM9.js} +1 -1
- package/dist/assets/{Tooltip-B2g58MT9.js → Tooltip-RkXcTs0t.js} +1 -1
- package/dist/assets/{Tooltip.stories-U-p1zkCO.js → Tooltip.stories-CBLbLc_w.js} +1 -1
- package/dist/assets/{Tooltip.tests.stories-CZN7G-4k.js → Tooltip.tests.stories-C7UdOp5j.js} +1 -1
- package/dist/assets/{VisuallyHidden-oCB6vAK-.js → VisuallyHidden-Ck1Kevby.js} +1 -1
- package/dist/assets/{WithTooltip-IO6J4KBT-C9k24wac.js → WithTooltip-IO6J4KBT-D16YMXZO.js} +1 -1
- package/dist/assets/{align-self-O6ejL7Ql.js → align-self-DF2HdNLf.js} +1 -1
- package/dist/assets/{axe-BzWvr5Jj.js → axe-DGWcnrmP.js} +1 -1
- package/dist/assets/{breakpoints-DZ-M3yCb.js → breakpoints-BT11HiNp.js} +1 -1
- package/dist/assets/{breakpoints-BjNHuaYo.js → breakpoints-D16MO9BL.js} +1 -1
- package/dist/assets/{breakpoints-C3Ozj99D.js → breakpoints-DoQjZnZv.js} +1 -1
- package/dist/assets/{changelog-DjYuyXm0.js → changelog--yKJfcPf.js} +8 -1
- package/dist/assets/{client-B-EU1hAd.js → client-BT9FXva8.js} +1 -1
- package/dist/assets/{constants-Dds16Uxa.js → constants-k1WYvB4V.js} +47 -47
- package/dist/assets/{createRequiredContext-CPJES7T4.js → createRequiredContext-Co5wTaFA.js} +31 -31
- package/dist/assets/{formatter-QJ4M4OGQ-BCmZt7NY.js → formatter-QJ4M4OGQ-6tp9RKud.js} +1 -1
- package/dist/assets/getTokenVar-C2EwRMHN.js +1 -0
- package/dist/assets/{getTokenVar-CcURh2_L.js → getTokenVar-DT9EHDfD.js} +1 -1
- package/dist/assets/{gradientBorders-CDHKf4Q9.js → gradientBorders-DTKu2Po4.js} +1 -1
- package/dist/assets/{hover-C0jiF-AA.js → hover-BJvzh5lj.js} +1 -1
- package/dist/assets/{hover-DKZD2ovS.js → hover-C1gpRujJ.js} +1 -1
- package/dist/assets/{hover-B-P2TGdW.js → hover-CA54fPeb.js} +1 -1
- package/dist/assets/{iframe-C8q8wjEm.js → iframe-rPxPheSO.js} +7 -7
- package/dist/assets/{index-z06tkxNB.js → index-AkiTKRT4.js} +1 -1
- package/dist/assets/{index-BPdSA514.js → index-Bzd5dlB9.js} +1 -1
- package/dist/assets/{index-DYYdejgZ.js → index-CHV8c6AM.js} +1 -1
- package/dist/assets/{index-B2swU3YW.js → index-Ch8cwrP-.js} +1 -1
- package/dist/assets/{index-BXUrJfTG.js → index-D5hhDObe.js} +1 -1
- package/dist/assets/{index-YHu3r2_4.js → index-DxeZSyRS.js} +1 -1
- package/dist/assets/{index-BZjlzf6m.js → index-jKLBZczP.js} +5 -5
- package/dist/assets/{intro-BnVMZbuP.js → intro-C95-vT5U.js} +1 -1
- package/dist/assets/{layout-relative-Dd32P_-n.js → layout-relative-BfaWqLn8.js} +1 -1
- package/dist/assets/{layout-relative.module-1z75aSwo-DgGwh4VK.js → layout-relative.module-1z75aSwo-Btp4KtwY.js} +1 -1
- package/dist/assets/{layout-relative.module-C_WdSsa7.js → layout-relative.module-D5jJ_Wjz.js} +1 -1
- package/dist/assets/{mcp-DPh13jjA.js → mcp-DG0oSwJ_.js} +1 -1
- package/dist/assets/{message-C3RuDR6M.js → message-CVBYHxuJ.js} +1 -1
- package/dist/assets/{migrating-from-less-BOBBwDyN.js → migrating-from-less-Dl58ybrk.js} +1 -1
- package/dist/assets/{playground.stories-ROyNG5YC.js → playground.stories-CPGFTUrj.js} +1 -1
- package/dist/assets/{react-18-CrwdWUsF.js → react-18-CuwswiWa.js} +1 -1
- package/dist/assets/{render-icon-DTP0kMmm.js → render-icon-CDgYoeDK.js} +1 -1
- package/dist/assets/{render-icon-rjyGnIsi.js → render-icon-CYz0RSbb.js} +1 -1
- package/dist/assets/{shared-strings-CDaZX-3B.js → shared-strings-DqJVAlTT.js} +1 -1
- package/dist/assets/{styled-components.browser.esm-BYN4S5sO.js → styled-components.browser.esm-DNrL5PLt.js} +1 -1
- package/dist/assets/{styled-components.browser.esm-Dlze6hxw.js → styled-components.browser.esm-Do9--Umw.js} +1 -1
- package/dist/assets/{syntaxhighlighter-IQDEPFLK-6Oa5UCHB.js → syntaxhighlighter-IQDEPFLK-CDCuyLmW.js} +1 -1
- package/dist/assets/{text-accent-Bbx7l_cl.js → text-accent-DectBi3u.js} +1 -1
- package/dist/assets/{text-centered-DmOdIfzx.js → text-centered-DrGkZ2FI.js} +1 -1
- package/dist/assets/{text-centered-Cg_ddFhQ.js → text-centered-nlNU1AO2.js} +1 -1
- package/dist/assets/{tokens-Cl9oUtjC.js → tokens-CXDURKfu.js} +1 -1
- package/dist/assets/{tokens-Db4wLFr3.js → tokens-Cpg5Tsa3.js} +1 -1
- package/dist/assets/{tokens-CQefoo5n.js → tokens-DVFIp8cS.js} +1 -1
- package/dist/assets/{tokens-DeBguZpw.js → tokens-DlIhIRgz.js} +1 -1
- package/dist/assets/{useControllableState-POsCn5P8.js → useControllableState-BGQSGH6e.js} +1 -1
- package/dist/assets/useHostname-CSCtqnDM.js +1 -0
- package/dist/assets/{useMergeRefs-Cz2RkNaU.js → useMergeRefs-B0tLxB64.js} +1 -1
- package/dist/assets/{useMergeRefs-DkFVQgA0.js → useMergeRefs-D3-2wqPW.js} +1 -1
- package/dist/assets/{useOpenInteractionType-C_sBEUHJ.js → useOpenInteractionType-DLe0t7DD.js} +1 -1
- package/dist/assets/{usePortalElement-COVbROrS.js → usePortalElement-2Z6Vojwe.js} +1 -1
- package/dist/assets/{useStableCallback-BE4-kfmF.js → useStableCallback-CM7WIg73.js} +1 -1
- package/dist/assets/{useToken-DL_qze01.js → useToken-Dbb7YMsn.js} +1 -1
- package/dist/assets/{welcome-CDeJKqWI.js → welcome-7UdPDmAm.js} +1 -1
- package/dist/assets/{zeroheight-9HpbB1HN.js → zeroheight-V0-az0nn.js} +1 -1
- package/dist/iframe.html +1 -1
- package/dist/preview-stats.json +10608 -10608
- package/dist/project.json +1 -1
- package/package.json +5 -5
- package/pages/30.guides/70.assets/components/FontsExplorer/LanguageCard.tsx +101 -77
- package/dist/assets/DismissibleChips-nrw1ViqW.js +0 -1
- package/dist/assets/IconButton-CT1U16hq.js +0 -8
- package/dist/assets/MultiSelectChips-BykmuV_j.js +0 -2
- package/dist/assets/SingleSelectChips-Bnoxobtc.js +0 -2
- package/dist/assets/getTokenVar-B4d49odp.js +0 -1
- package/dist/assets/useHostname-MecFXBKz.js +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
import{G as v,u as G,v as r,aA as p,an as w,r as g,L as b,g as h,j as C}from"./iframe-C8q8wjEm.js";import{B as A}from"./breakpoints-BfMlrtxE.js";import{b as T,g as N}from"./layout-relative.module-C_WdSsa7.js";import{g as P,a as R}from"./layout-relative-Dd32P_-n.js";import{f as O}from"./filterAttributesPassedByRadixUIAtRuntime-B7QTVwVw.js";import{w as V}from"./componentNames-Dts5uwdK.js";const U="LayoutGrid__SRDdo",_={LayoutGrid:U,"LayoutGrid--justify-content-center":"LayoutGrid--justify-content-center__vI9m1","LayoutGrid--justify-content-start":"LayoutGrid--justify-content-start__oyqGC","LayoutGrid--justify-content-end":"LayoutGrid--justify-content-end__RMTO2","LayoutGrid--justify-content-space-between":"LayoutGrid--justify-content-space-between__lvZnD","LayoutGrid--justify-content-space-around":"LayoutGrid--justify-content-space-around__Tl4FE","LayoutGrid--justify-content-space-evenly":"LayoutGrid--justify-content-space-evenly__KzBOQ","LayoutGrid--narrow-l--justify-content-center":"LayoutGrid--narrow-l--justify-content-center__nQPPi","LayoutGrid--narrow-l--justify-content-start":"LayoutGrid--narrow-l--justify-content-start__K7PbL","LayoutGrid--narrow-l--justify-content-end":"LayoutGrid--narrow-l--justify-content-end__UHZNO","LayoutGrid--narrow-l--justify-content-space-between":"LayoutGrid--narrow-l--justify-content-space-between__hgFor","LayoutGrid--narrow-l--justify-content-space-around":"LayoutGrid--narrow-l--justify-content-space-around__Ec1Tu","LayoutGrid--narrow-l--justify-content-space-evenly":"LayoutGrid--narrow-l--justify-content-space-evenly__TjQzB","LayoutGrid--medium-s--justify-content-center":"LayoutGrid--medium-s--justify-content-center__2xRJU","LayoutGrid--medium-s--justify-content-start":"LayoutGrid--medium-s--justify-content-start__5YYfG","LayoutGrid--medium-s--justify-content-end":"LayoutGrid--medium-s--justify-content-end__tNaVV","LayoutGrid--medium-s--justify-content-space-between":"LayoutGrid--medium-s--justify-content-space-between__Yw2DU","LayoutGrid--medium-s--justify-content-space-around":"LayoutGrid--medium-s--justify-content-space-around__GzjIX","LayoutGrid--medium-s--justify-content-space-evenly":"LayoutGrid--medium-s--justify-content-space-evenly__wtV7Y","LayoutGrid--medium-l--justify-content-center":"LayoutGrid--medium-l--justify-content-center__6Z3HK","LayoutGrid--medium-l--justify-content-start":"LayoutGrid--medium-l--justify-content-start__eCE0H","LayoutGrid--medium-l--justify-content-end":"LayoutGrid--medium-l--justify-content-end__WUHhq","LayoutGrid--medium-l--justify-content-space-between":"LayoutGrid--medium-l--justify-content-space-between__dzn5s","LayoutGrid--medium-l--justify-content-space-around":"LayoutGrid--medium-l--justify-content-space-around__1jJy-","LayoutGrid--medium-l--justify-content-space-evenly":"LayoutGrid--medium-l--justify-content-space-evenly__SALxb","LayoutGrid--wide-s--justify-content-center":"LayoutGrid--wide-s--justify-content-center__O2AmA","LayoutGrid--wide-s--justify-content-start":"LayoutGrid--wide-s--justify-content-start__M128c","LayoutGrid--wide-s--justify-content-end":"LayoutGrid--wide-s--justify-content-end__Edf7b","LayoutGrid--wide-s--justify-content-space-between":"LayoutGrid--wide-s--justify-content-space-between__sCWUj","LayoutGrid--wide-s--justify-content-space-around":"LayoutGrid--wide-s--justify-content-space-around__OqKb-","LayoutGrid--wide-s--justify-content-space-evenly":"LayoutGrid--wide-s--justify-content-space-evenly__BqAco","LayoutGrid--wide-l--justify-content-center":"LayoutGrid--wide-l--justify-content-center__WT24m","LayoutGrid--wide-l--justify-content-start":"LayoutGrid--wide-l--justify-content-start__pavdA","LayoutGrid--wide-l--justify-content-end":"LayoutGrid--wide-l--justify-content-end__US-V2","LayoutGrid--wide-l--justify-content-space-between":"LayoutGrid--wide-l--justify-content-space-between__31Ivo","LayoutGrid--wide-l--justify-content-space-around":"LayoutGrid--wide-l--justify-content-space-around__sbmBA","LayoutGrid--wide-l--justify-content-space-evenly":"LayoutGrid--wide-l--justify-content-space-evenly__VBy-1","LayoutGrid--align-items-center":"LayoutGrid--align-items-center__cAn-E","LayoutGrid--align-items-start":"LayoutGrid--align-items-start__iIBPs","LayoutGrid--align-items-end":"LayoutGrid--align-items-end__bi0Vt","LayoutGrid--align-items-stretch":"LayoutGrid--align-items-stretch__vyo1N","LayoutGrid--align-items-baseline":"LayoutGrid--align-items-baseline__iWU1b","LayoutGrid--narrow-l--align-items-center":"LayoutGrid--narrow-l--align-items-center__L5fan","LayoutGrid--narrow-l--align-items-start":"LayoutGrid--narrow-l--align-items-start__EZBkc","LayoutGrid--narrow-l--align-items-end":"LayoutGrid--narrow-l--align-items-end__igLCn","LayoutGrid--narrow-l--align-items-stretch":"LayoutGrid--narrow-l--align-items-stretch__jsoOx","LayoutGrid--narrow-l--align-items-baseline":"LayoutGrid--narrow-l--align-items-baseline__HJvGK","LayoutGrid--medium-s--align-items-center":"LayoutGrid--medium-s--align-items-center__YHCsG","LayoutGrid--medium-s--align-items-start":"LayoutGrid--medium-s--align-items-start__-x5jL","LayoutGrid--medium-s--align-items-end":"LayoutGrid--medium-s--align-items-end__5vxaA","LayoutGrid--medium-s--align-items-stretch":"LayoutGrid--medium-s--align-items-stretch__Oo3Jn","LayoutGrid--medium-s--align-items-baseline":"LayoutGrid--medium-s--align-items-baseline__N5jnU","LayoutGrid--medium-l--align-items-center":"LayoutGrid--medium-l--align-items-center__sOLNh","LayoutGrid--medium-l--align-items-start":"LayoutGrid--medium-l--align-items-start__LlPIM","LayoutGrid--medium-l--align-items-end":"LayoutGrid--medium-l--align-items-end__kMMCT","LayoutGrid--medium-l--align-items-stretch":"LayoutGrid--medium-l--align-items-stretch__R0zx-","LayoutGrid--medium-l--align-items-baseline":"LayoutGrid--medium-l--align-items-baseline__EaOdU","LayoutGrid--wide-s--align-items-center":"LayoutGrid--wide-s--align-items-center__Ve-ZD","LayoutGrid--wide-s--align-items-start":"LayoutGrid--wide-s--align-items-start__28Z74","LayoutGrid--wide-s--align-items-end":"LayoutGrid--wide-s--align-items-end__TDXOu","LayoutGrid--wide-s--align-items-stretch":"LayoutGrid--wide-s--align-items-stretch__nHuLT","LayoutGrid--wide-s--align-items-baseline":"LayoutGrid--wide-s--align-items-baseline__pnhzS","LayoutGrid--wide-l--align-items-center":"LayoutGrid--wide-l--align-items-center__JTXQd","LayoutGrid--wide-l--align-items-start":"LayoutGrid--wide-l--align-items-start__Ghu5o","LayoutGrid--wide-l--align-items-end":"LayoutGrid--wide-l--align-items-end__6ReFW","LayoutGrid--wide-l--align-items-stretch":"LayoutGrid--wide-l--align-items-stretch__O0QQv","LayoutGrid--wide-l--align-items-baseline":"LayoutGrid--wide-l--align-items-baseline__sQjwX","LayoutGrid--justify-items-stretch":"LayoutGrid--justify-items-stretch__M9QcQ","LayoutGrid--justify-items-center":"LayoutGrid--justify-items-center__oTKUc","LayoutGrid--justify-items-start":"LayoutGrid--justify-items-start__VYPnF","LayoutGrid--justify-items-end":"LayoutGrid--justify-items-end__8CwwZ","LayoutGrid--narrow-l--justify-items-stretch":"LayoutGrid--narrow-l--justify-items-stretch__kvCGG","LayoutGrid--narrow-l--justify-items-center":"LayoutGrid--narrow-l--justify-items-center__3ItXk","LayoutGrid--narrow-l--justify-items-start":"LayoutGrid--narrow-l--justify-items-start__Bhi3s","LayoutGrid--narrow-l--justify-items-end":"LayoutGrid--narrow-l--justify-items-end__gc2Ku","LayoutGrid--medium-s--justify-items-stretch":"LayoutGrid--medium-s--justify-items-stretch__tuwxD","LayoutGrid--medium-s--justify-items-center":"LayoutGrid--medium-s--justify-items-center__atoXy","LayoutGrid--medium-s--justify-items-start":"LayoutGrid--medium-s--justify-items-start__TmFN1","LayoutGrid--medium-s--justify-items-end":"LayoutGrid--medium-s--justify-items-end__jfl4-","LayoutGrid--medium-l--justify-items-stretch":"LayoutGrid--medium-l--justify-items-stretch__H23wm","LayoutGrid--medium-l--justify-items-center":"LayoutGrid--medium-l--justify-items-center__U-RzH","LayoutGrid--medium-l--justify-items-start":"LayoutGrid--medium-l--justify-items-start__0UVBd","LayoutGrid--medium-l--justify-items-end":"LayoutGrid--medium-l--justify-items-end__GDL0T","LayoutGrid--wide-s--justify-items-stretch":"LayoutGrid--wide-s--justify-items-stretch__3eMVC","LayoutGrid--wide-s--justify-items-center":"LayoutGrid--wide-s--justify-items-center__i7AtD","LayoutGrid--wide-s--justify-items-start":"LayoutGrid--wide-s--justify-items-start__O80gc","LayoutGrid--wide-s--justify-items-end":"LayoutGrid--wide-s--justify-items-end__IleZr","LayoutGrid--wide-l--justify-items-stretch":"LayoutGrid--wide-l--justify-items-stretch__P8KTm","LayoutGrid--wide-l--justify-items-center":"LayoutGrid--wide-l--justify-items-center__sXqXH","LayoutGrid--wide-l--justify-items-start":"LayoutGrid--wide-l--justify-items-start__QngDX","LayoutGrid--wide-l--justify-items-end":"LayoutGrid--wide-l--justify-items-end__wa8k8","LayoutGrid--columns":"LayoutGrid--columns__rVisq","LayoutGrid--columns-narrow-l":"LayoutGrid--columns-narrow-l__UBDfA","LayoutGrid--columns-medium-s":"LayoutGrid--columns-medium-s__lzA5l","LayoutGrid--columns-medium-l":"LayoutGrid--columns-medium-l__CM0CJ","LayoutGrid--columns-wide-s":"LayoutGrid--columns-wide-s__RUz4B","LayoutGrid--columns-wide-l":"LayoutGrid--columns-wide-l__qXJC-"},I="LayoutGrid",D=Object.keys(A),c=e=>typeof e=="number"?`repeat(${e}, 1fr)`:e.join(" "),q=e=>typeof e=="object"&&!Array.isArray(e)?Object.entries(e).reduce((i,[u,t])=>({...i,...t?{[u]:c(t)}:{}}),{_:c(e._)}):{_:c(e)},E=e=>{if(!e)return{classNames:[],style:{}};const i=q(e),u=D.filter(a=>i[a]),t=v(_,I,["columns",...u.map(a=>`columns-${a}`)]),n=u.reduce((a,s)=>({...a,[`--columns-${s}`]:i[s]}),{"--columns":i._});return{classNames:t,style:n}},H="LayoutGap",z=e=>G(T,H,[r("gap",e)]),Y="LayoutGrid",x=(e,i)=>{const{gap:u=p,padding:t=w,justifyContent:n,alignItems:a,justifyItems:s,hide:o,relative:d}=i||{},l=G(_,Y,[r("justify-content",n),r("align-items",a),r("justify-items",s)]),y=z(u),m=N(t),f=P(o,"grid"),j=R(d);return[...l,...y,...m,...f,...j]},L=g.forwardRef(function({dataset:i,children:u,...t},n){const{tag:a=b,columns:s}=t,o=x("grid",t),{style:d,classNames:l}=E(s),y=[...o,...l],m={...O(t),ref:n,className:y.join(" "),style:d,...h(i,{preplyDsComponent:V.LayoutGrid})};return C.jsx(a,{...m,children:u})});try{L.displayName="LayoutGrid",L.__docgenInfo={description:"A CSS `grid` wrapper.",displayName:"LayoutGrid",props:{gap:{defaultValue:null,description:"",name:"gap",required:!1,type:{name:"enum",value:[{value:'"0"'},{value:'"1"'},{value:'"2"'},{value:'"4"'},{value:'"6"'},{value:'"8"'},{value:'"12"'},{value:'"16"'},{value:'"20"'},{value:'"24"'},{value:'"32"'},{value:'"48"'},{value:'"64"'},{value:'"96"'},{value:'"160"'},{value:"ResponsiveProp<LayoutGap>"}]}},padding:{defaultValue:null,description:"",name:"padding",required:!1,type:{name:"enum",value:[{value:'"0"'},{value:'"1"'},{value:'"2"'},{value:'"4"'},{value:'"6"'},{value:'"8"'},{value:'"12"'},{value:'"16"'},{value:'"20"'},{value:'"24"'},{value:'"32"'},{value:'"48"'},{value:'"64"'},{value:'"96"'},{value:'"160"'},{value:"[LayoutPadding, LayoutPadding]"},{value:"[LayoutPadding, LayoutPadding, LayoutPadding]"},{value:"[LayoutPadding, LayoutPadding, LayoutPadding, LayoutPadding]"},{value:"ResponsiveProp<ShortHand<LayoutPadding>>"}]}},columns:{defaultValue:null,description:"",name:"columns",required:!1,type:{name:"enum",value:[{value:"number"},{value:"string[]"},{value:"ResponsiveProp<number | string[]>"}]}},justifyContent:{defaultValue:null,description:"",name:"justifyContent",required:!1,type:{name:"enum",value:[{value:'"center"'},{value:'"start"'},{value:'"end"'},{value:'"space-between"'},{value:'"space-around"'},{value:'"space-evenly"'},{value:"ResponsiveProp<LayoutJustifyContent>"}]}},alignItems:{defaultValue:null,description:"",name:"alignItems",required:!1,type:{name:"enum",value:[{value:'"center"'},{value:'"start"'},{value:'"end"'},{value:'"stretch"'},{value:'"baseline"'},{value:"ResponsiveProp<LayoutAlignItems>"}]}},justifyItems:{defaultValue:null,description:"",name:"justifyItems",required:!1,type:{name:"enum",value:[{value:'"center"'},{value:'"start"'},{value:'"end"'},{value:'"stretch"'},{value:"ResponsiveProp<LayoutJustifyItems>"}]}},tag:{defaultValue:null,description:"",name:"tag",required:!1,type:{name:"enum",value:[{value:'"div"'},{value:'"main"'},{value:'"header"'},{value:'"footer"'},{value:'"article"'},{value:'"section"'},{value:'"ul"'},{value:'"ol"'},{value:'"li"'},{value:'"p"'},{value:'"span"'},{value:'"fieldset"'},{value:'"table"'},{value:'"th"'},{value:'"tr"'},{value:'"td"'},{value:'"thead"'},{value:'"tfoot"'},{value:'"tbody"'},{value:'"caption"'},{value:'"figure"'},{value:'"figcaption"'}]}},hide:{defaultValue:null,description:"",name:"hide",required:!1,type:{name:"enum",value:[{value:"false"},{value:"true"},{value:"ResponsiveProp<boolean>"}]}},relative:{defaultValue:null,description:"",name:"relative",required:!1,type:{name:"enum",value:[{value:"false"},{value:"true"},{value:"ResponsiveProp<boolean>"}]}},dataset:{defaultValue:null,description:"",name:"dataset",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: HTMLElement | null) => void"},{value:"RefObject<HTMLElement>"}]}},key:{defaultValue:null,description:"",name:"key",required:!1,type:{name:"enum",value:[{value:"null"},{value:"string"},{value:"number"},{value:"bigint"}]}}}}}catch{}export{L};
|
|
1
|
+
import{G as v,u as G,v as r,aA as p,an as w,r as g,L as b,g as h,j as C}from"./iframe-rPxPheSO.js";import{B as A}from"./breakpoints-BfMlrtxE.js";import{b as T,g as N}from"./layout-relative.module-D5jJ_Wjz.js";import{g as P,a as R}from"./layout-relative-BfaWqLn8.js";import{f as O}from"./filterAttributesPassedByRadixUIAtRuntime-B7QTVwVw.js";import{w as V}from"./componentNames-Dts5uwdK.js";const U="LayoutGrid__SRDdo",_={LayoutGrid:U,"LayoutGrid--justify-content-center":"LayoutGrid--justify-content-center__vI9m1","LayoutGrid--justify-content-start":"LayoutGrid--justify-content-start__oyqGC","LayoutGrid--justify-content-end":"LayoutGrid--justify-content-end__RMTO2","LayoutGrid--justify-content-space-between":"LayoutGrid--justify-content-space-between__lvZnD","LayoutGrid--justify-content-space-around":"LayoutGrid--justify-content-space-around__Tl4FE","LayoutGrid--justify-content-space-evenly":"LayoutGrid--justify-content-space-evenly__KzBOQ","LayoutGrid--narrow-l--justify-content-center":"LayoutGrid--narrow-l--justify-content-center__nQPPi","LayoutGrid--narrow-l--justify-content-start":"LayoutGrid--narrow-l--justify-content-start__K7PbL","LayoutGrid--narrow-l--justify-content-end":"LayoutGrid--narrow-l--justify-content-end__UHZNO","LayoutGrid--narrow-l--justify-content-space-between":"LayoutGrid--narrow-l--justify-content-space-between__hgFor","LayoutGrid--narrow-l--justify-content-space-around":"LayoutGrid--narrow-l--justify-content-space-around__Ec1Tu","LayoutGrid--narrow-l--justify-content-space-evenly":"LayoutGrid--narrow-l--justify-content-space-evenly__TjQzB","LayoutGrid--medium-s--justify-content-center":"LayoutGrid--medium-s--justify-content-center__2xRJU","LayoutGrid--medium-s--justify-content-start":"LayoutGrid--medium-s--justify-content-start__5YYfG","LayoutGrid--medium-s--justify-content-end":"LayoutGrid--medium-s--justify-content-end__tNaVV","LayoutGrid--medium-s--justify-content-space-between":"LayoutGrid--medium-s--justify-content-space-between__Yw2DU","LayoutGrid--medium-s--justify-content-space-around":"LayoutGrid--medium-s--justify-content-space-around__GzjIX","LayoutGrid--medium-s--justify-content-space-evenly":"LayoutGrid--medium-s--justify-content-space-evenly__wtV7Y","LayoutGrid--medium-l--justify-content-center":"LayoutGrid--medium-l--justify-content-center__6Z3HK","LayoutGrid--medium-l--justify-content-start":"LayoutGrid--medium-l--justify-content-start__eCE0H","LayoutGrid--medium-l--justify-content-end":"LayoutGrid--medium-l--justify-content-end__WUHhq","LayoutGrid--medium-l--justify-content-space-between":"LayoutGrid--medium-l--justify-content-space-between__dzn5s","LayoutGrid--medium-l--justify-content-space-around":"LayoutGrid--medium-l--justify-content-space-around__1jJy-","LayoutGrid--medium-l--justify-content-space-evenly":"LayoutGrid--medium-l--justify-content-space-evenly__SALxb","LayoutGrid--wide-s--justify-content-center":"LayoutGrid--wide-s--justify-content-center__O2AmA","LayoutGrid--wide-s--justify-content-start":"LayoutGrid--wide-s--justify-content-start__M128c","LayoutGrid--wide-s--justify-content-end":"LayoutGrid--wide-s--justify-content-end__Edf7b","LayoutGrid--wide-s--justify-content-space-between":"LayoutGrid--wide-s--justify-content-space-between__sCWUj","LayoutGrid--wide-s--justify-content-space-around":"LayoutGrid--wide-s--justify-content-space-around__OqKb-","LayoutGrid--wide-s--justify-content-space-evenly":"LayoutGrid--wide-s--justify-content-space-evenly__BqAco","LayoutGrid--wide-l--justify-content-center":"LayoutGrid--wide-l--justify-content-center__WT24m","LayoutGrid--wide-l--justify-content-start":"LayoutGrid--wide-l--justify-content-start__pavdA","LayoutGrid--wide-l--justify-content-end":"LayoutGrid--wide-l--justify-content-end__US-V2","LayoutGrid--wide-l--justify-content-space-between":"LayoutGrid--wide-l--justify-content-space-between__31Ivo","LayoutGrid--wide-l--justify-content-space-around":"LayoutGrid--wide-l--justify-content-space-around__sbmBA","LayoutGrid--wide-l--justify-content-space-evenly":"LayoutGrid--wide-l--justify-content-space-evenly__VBy-1","LayoutGrid--align-items-center":"LayoutGrid--align-items-center__cAn-E","LayoutGrid--align-items-start":"LayoutGrid--align-items-start__iIBPs","LayoutGrid--align-items-end":"LayoutGrid--align-items-end__bi0Vt","LayoutGrid--align-items-stretch":"LayoutGrid--align-items-stretch__vyo1N","LayoutGrid--align-items-baseline":"LayoutGrid--align-items-baseline__iWU1b","LayoutGrid--narrow-l--align-items-center":"LayoutGrid--narrow-l--align-items-center__L5fan","LayoutGrid--narrow-l--align-items-start":"LayoutGrid--narrow-l--align-items-start__EZBkc","LayoutGrid--narrow-l--align-items-end":"LayoutGrid--narrow-l--align-items-end__igLCn","LayoutGrid--narrow-l--align-items-stretch":"LayoutGrid--narrow-l--align-items-stretch__jsoOx","LayoutGrid--narrow-l--align-items-baseline":"LayoutGrid--narrow-l--align-items-baseline__HJvGK","LayoutGrid--medium-s--align-items-center":"LayoutGrid--medium-s--align-items-center__YHCsG","LayoutGrid--medium-s--align-items-start":"LayoutGrid--medium-s--align-items-start__-x5jL","LayoutGrid--medium-s--align-items-end":"LayoutGrid--medium-s--align-items-end__5vxaA","LayoutGrid--medium-s--align-items-stretch":"LayoutGrid--medium-s--align-items-stretch__Oo3Jn","LayoutGrid--medium-s--align-items-baseline":"LayoutGrid--medium-s--align-items-baseline__N5jnU","LayoutGrid--medium-l--align-items-center":"LayoutGrid--medium-l--align-items-center__sOLNh","LayoutGrid--medium-l--align-items-start":"LayoutGrid--medium-l--align-items-start__LlPIM","LayoutGrid--medium-l--align-items-end":"LayoutGrid--medium-l--align-items-end__kMMCT","LayoutGrid--medium-l--align-items-stretch":"LayoutGrid--medium-l--align-items-stretch__R0zx-","LayoutGrid--medium-l--align-items-baseline":"LayoutGrid--medium-l--align-items-baseline__EaOdU","LayoutGrid--wide-s--align-items-center":"LayoutGrid--wide-s--align-items-center__Ve-ZD","LayoutGrid--wide-s--align-items-start":"LayoutGrid--wide-s--align-items-start__28Z74","LayoutGrid--wide-s--align-items-end":"LayoutGrid--wide-s--align-items-end__TDXOu","LayoutGrid--wide-s--align-items-stretch":"LayoutGrid--wide-s--align-items-stretch__nHuLT","LayoutGrid--wide-s--align-items-baseline":"LayoutGrid--wide-s--align-items-baseline__pnhzS","LayoutGrid--wide-l--align-items-center":"LayoutGrid--wide-l--align-items-center__JTXQd","LayoutGrid--wide-l--align-items-start":"LayoutGrid--wide-l--align-items-start__Ghu5o","LayoutGrid--wide-l--align-items-end":"LayoutGrid--wide-l--align-items-end__6ReFW","LayoutGrid--wide-l--align-items-stretch":"LayoutGrid--wide-l--align-items-stretch__O0QQv","LayoutGrid--wide-l--align-items-baseline":"LayoutGrid--wide-l--align-items-baseline__sQjwX","LayoutGrid--justify-items-stretch":"LayoutGrid--justify-items-stretch__M9QcQ","LayoutGrid--justify-items-center":"LayoutGrid--justify-items-center__oTKUc","LayoutGrid--justify-items-start":"LayoutGrid--justify-items-start__VYPnF","LayoutGrid--justify-items-end":"LayoutGrid--justify-items-end__8CwwZ","LayoutGrid--narrow-l--justify-items-stretch":"LayoutGrid--narrow-l--justify-items-stretch__kvCGG","LayoutGrid--narrow-l--justify-items-center":"LayoutGrid--narrow-l--justify-items-center__3ItXk","LayoutGrid--narrow-l--justify-items-start":"LayoutGrid--narrow-l--justify-items-start__Bhi3s","LayoutGrid--narrow-l--justify-items-end":"LayoutGrid--narrow-l--justify-items-end__gc2Ku","LayoutGrid--medium-s--justify-items-stretch":"LayoutGrid--medium-s--justify-items-stretch__tuwxD","LayoutGrid--medium-s--justify-items-center":"LayoutGrid--medium-s--justify-items-center__atoXy","LayoutGrid--medium-s--justify-items-start":"LayoutGrid--medium-s--justify-items-start__TmFN1","LayoutGrid--medium-s--justify-items-end":"LayoutGrid--medium-s--justify-items-end__jfl4-","LayoutGrid--medium-l--justify-items-stretch":"LayoutGrid--medium-l--justify-items-stretch__H23wm","LayoutGrid--medium-l--justify-items-center":"LayoutGrid--medium-l--justify-items-center__U-RzH","LayoutGrid--medium-l--justify-items-start":"LayoutGrid--medium-l--justify-items-start__0UVBd","LayoutGrid--medium-l--justify-items-end":"LayoutGrid--medium-l--justify-items-end__GDL0T","LayoutGrid--wide-s--justify-items-stretch":"LayoutGrid--wide-s--justify-items-stretch__3eMVC","LayoutGrid--wide-s--justify-items-center":"LayoutGrid--wide-s--justify-items-center__i7AtD","LayoutGrid--wide-s--justify-items-start":"LayoutGrid--wide-s--justify-items-start__O80gc","LayoutGrid--wide-s--justify-items-end":"LayoutGrid--wide-s--justify-items-end__IleZr","LayoutGrid--wide-l--justify-items-stretch":"LayoutGrid--wide-l--justify-items-stretch__P8KTm","LayoutGrid--wide-l--justify-items-center":"LayoutGrid--wide-l--justify-items-center__sXqXH","LayoutGrid--wide-l--justify-items-start":"LayoutGrid--wide-l--justify-items-start__QngDX","LayoutGrid--wide-l--justify-items-end":"LayoutGrid--wide-l--justify-items-end__wa8k8","LayoutGrid--columns":"LayoutGrid--columns__rVisq","LayoutGrid--columns-narrow-l":"LayoutGrid--columns-narrow-l__UBDfA","LayoutGrid--columns-medium-s":"LayoutGrid--columns-medium-s__lzA5l","LayoutGrid--columns-medium-l":"LayoutGrid--columns-medium-l__CM0CJ","LayoutGrid--columns-wide-s":"LayoutGrid--columns-wide-s__RUz4B","LayoutGrid--columns-wide-l":"LayoutGrid--columns-wide-l__qXJC-"},I="LayoutGrid",D=Object.keys(A),c=e=>typeof e=="number"?`repeat(${e}, 1fr)`:e.join(" "),q=e=>typeof e=="object"&&!Array.isArray(e)?Object.entries(e).reduce((i,[u,t])=>({...i,...t?{[u]:c(t)}:{}}),{_:c(e._)}):{_:c(e)},E=e=>{if(!e)return{classNames:[],style:{}};const i=q(e),u=D.filter(a=>i[a]),t=v(_,I,["columns",...u.map(a=>`columns-${a}`)]),n=u.reduce((a,s)=>({...a,[`--columns-${s}`]:i[s]}),{"--columns":i._});return{classNames:t,style:n}},H="LayoutGap",z=e=>G(T,H,[r("gap",e)]),Y="LayoutGrid",x=(e,i)=>{const{gap:u=p,padding:t=w,justifyContent:n,alignItems:a,justifyItems:s,hide:o,relative:d}=i||{},l=G(_,Y,[r("justify-content",n),r("align-items",a),r("justify-items",s)]),y=z(u),m=N(t),f=P(o,"grid"),j=R(d);return[...l,...y,...m,...f,...j]},L=g.forwardRef(function({dataset:i,children:u,...t},n){const{tag:a=b,columns:s}=t,o=x("grid",t),{style:d,classNames:l}=E(s),y=[...o,...l],m={...O(t),ref:n,className:y.join(" "),style:d,...h(i,{preplyDsComponent:V.LayoutGrid})};return C.jsx(a,{...m,children:u})});try{L.displayName="LayoutGrid",L.__docgenInfo={description:"A CSS `grid` wrapper.",displayName:"LayoutGrid",props:{gap:{defaultValue:null,description:"",name:"gap",required:!1,type:{name:"enum",value:[{value:'"64"'},{value:'"96"'},{value:'"160"'},{value:'"0"'},{value:'"1"'},{value:'"2"'},{value:'"4"'},{value:'"6"'},{value:'"8"'},{value:'"12"'},{value:'"16"'},{value:'"20"'},{value:'"24"'},{value:'"32"'},{value:'"48"'},{value:"ResponsiveProp<LayoutGap>"}]}},padding:{defaultValue:null,description:"",name:"padding",required:!1,type:{name:"enum",value:[{value:'"64"'},{value:'"96"'},{value:'"160"'},{value:'"0"'},{value:'"1"'},{value:'"2"'},{value:'"4"'},{value:'"6"'},{value:'"8"'},{value:'"12"'},{value:'"16"'},{value:'"20"'},{value:'"24"'},{value:'"32"'},{value:'"48"'},{value:"[LayoutPadding, LayoutPadding]"},{value:"[LayoutPadding, LayoutPadding, LayoutPadding]"},{value:"[LayoutPadding, LayoutPadding, LayoutPadding, LayoutPadding]"},{value:"ResponsiveProp<ShortHand<LayoutPadding>>"}]}},columns:{defaultValue:null,description:"",name:"columns",required:!1,type:{name:"enum",value:[{value:"number"},{value:"string[]"},{value:"ResponsiveProp<number | string[]>"}]}},justifyContent:{defaultValue:null,description:"",name:"justifyContent",required:!1,type:{name:"enum",value:[{value:'"center"'},{value:'"start"'},{value:'"end"'},{value:'"space-between"'},{value:'"space-around"'},{value:'"space-evenly"'},{value:"ResponsiveProp<LayoutJustifyContent>"}]}},alignItems:{defaultValue:null,description:"",name:"alignItems",required:!1,type:{name:"enum",value:[{value:'"center"'},{value:'"start"'},{value:'"end"'},{value:'"stretch"'},{value:'"baseline"'},{value:"ResponsiveProp<LayoutAlignItems>"}]}},justifyItems:{defaultValue:null,description:"",name:"justifyItems",required:!1,type:{name:"enum",value:[{value:'"center"'},{value:'"start"'},{value:'"end"'},{value:'"stretch"'},{value:"ResponsiveProp<LayoutJustifyItems>"}]}},tag:{defaultValue:null,description:"",name:"tag",required:!1,type:{name:"enum",value:[{value:'"p"'},{value:'"div"'},{value:'"span"'},{value:'"main"'},{value:'"header"'},{value:'"footer"'},{value:'"article"'},{value:'"section"'},{value:'"ul"'},{value:'"ol"'},{value:'"li"'},{value:'"fieldset"'},{value:'"table"'},{value:'"th"'},{value:'"tr"'},{value:'"td"'},{value:'"thead"'},{value:'"tfoot"'},{value:'"tbody"'},{value:'"caption"'},{value:'"figure"'},{value:'"figcaption"'}]}},hide:{defaultValue:null,description:"",name:"hide",required:!1,type:{name:"enum",value:[{value:"false"},{value:"true"},{value:"ResponsiveProp<boolean>"}]}},relative:{defaultValue:null,description:"",name:"relative",required:!1,type:{name:"enum",value:[{value:"false"},{value:"true"},{value:"ResponsiveProp<boolean>"}]}},dataset:{defaultValue:null,description:"",name:"dataset",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: HTMLElement | null) => void"},{value:"RefObject<HTMLElement>"}]}},key:{defaultValue:null,description:"",name:"key",required:!1,type:{name:"enum",value:[{value:"null"},{value:"string"},{value:"number"},{value:"bigint"}]}}}}}catch{}export{L};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{u as o,w as G,G as w,v as r,aA as g,an as p,r as b,L as A,g as h,j as C}from"./iframe-C8q8wjEm.js";import{B as N}from"./breakpoints-BfMlrtxE.js";import{a as v,b as T,s as U,g as R}from"./layout-relative.module-1z75aSwo-DgGwh4VK.js";import{L as O}from"./constants-DYYVurUY.js";import{f as E}from"./filterAttributesPassedByRadixUIAtRuntime-Bye2JkZ0.js";import{w as I}from"./componentNames-Dts5uwdK.js";const k="LayoutHide",D=(t,i=O)=>o(v,k,[G("hide",i,t)]),x="LayoutRelative",Y=t=>o(T,x,[G("relative",void 0,t)]),Q="LayoutGrid__-dslt",_={LayoutGrid:Q,"LayoutGrid--justify-content-center":"LayoutGrid--justify-content-center__rwmoB","LayoutGrid--justify-content-start":"LayoutGrid--justify-content-start__7v-Km","LayoutGrid--justify-content-end":"LayoutGrid--justify-content-end__kG5-O","LayoutGrid--justify-content-space-between":"LayoutGrid--justify-content-space-between__OUUgn","LayoutGrid--justify-content-space-around":"LayoutGrid--justify-content-space-around__m3Ggq","LayoutGrid--justify-content-space-evenly":"LayoutGrid--justify-content-space-evenly__WWIsT","LayoutGrid--narrow-l--justify-content-center":"LayoutGrid--narrow-l--justify-content-center__m7jv9","LayoutGrid--narrow-l--justify-content-start":"LayoutGrid--narrow-l--justify-content-start__6tHPx","LayoutGrid--narrow-l--justify-content-end":"LayoutGrid--narrow-l--justify-content-end__afk9H","LayoutGrid--narrow-l--justify-content-space-between":"LayoutGrid--narrow-l--justify-content-space-between__RgYaV","LayoutGrid--narrow-l--justify-content-space-around":"LayoutGrid--narrow-l--justify-content-space-around__LJwHL","LayoutGrid--narrow-l--justify-content-space-evenly":"LayoutGrid--narrow-l--justify-content-space-evenly__RQJez","LayoutGrid--medium-s--justify-content-center":"LayoutGrid--medium-s--justify-content-center__-dA3F","LayoutGrid--medium-s--justify-content-start":"LayoutGrid--medium-s--justify-content-start__fmsIg","LayoutGrid--medium-s--justify-content-end":"LayoutGrid--medium-s--justify-content-end__pMkvR","LayoutGrid--medium-s--justify-content-space-between":"LayoutGrid--medium-s--justify-content-space-between__sOUof","LayoutGrid--medium-s--justify-content-space-around":"LayoutGrid--medium-s--justify-content-space-around__eJIi-","LayoutGrid--medium-s--justify-content-space-evenly":"LayoutGrid--medium-s--justify-content-space-evenly__jLcAz","LayoutGrid--medium-l--justify-content-center":"LayoutGrid--medium-l--justify-content-center__Q9TxM","LayoutGrid--medium-l--justify-content-start":"LayoutGrid--medium-l--justify-content-start__CzzxC","LayoutGrid--medium-l--justify-content-end":"LayoutGrid--medium-l--justify-content-end__FBAN7","LayoutGrid--medium-l--justify-content-space-between":"LayoutGrid--medium-l--justify-content-space-between__f5lsd","LayoutGrid--medium-l--justify-content-space-around":"LayoutGrid--medium-l--justify-content-space-around__ring-","LayoutGrid--medium-l--justify-content-space-evenly":"LayoutGrid--medium-l--justify-content-space-evenly__NZ5rM","LayoutGrid--wide-s--justify-content-center":"LayoutGrid--wide-s--justify-content-center__wqUGl","LayoutGrid--wide-s--justify-content-start":"LayoutGrid--wide-s--justify-content-start__XQkqA","LayoutGrid--wide-s--justify-content-end":"LayoutGrid--wide-s--justify-content-end__-tCcn","LayoutGrid--wide-s--justify-content-space-between":"LayoutGrid--wide-s--justify-content-space-between__kBkZm","LayoutGrid--wide-s--justify-content-space-around":"LayoutGrid--wide-s--justify-content-space-around__flpk0","LayoutGrid--wide-s--justify-content-space-evenly":"LayoutGrid--wide-s--justify-content-space-evenly__rSh2w","LayoutGrid--wide-l--justify-content-center":"LayoutGrid--wide-l--justify-content-center__b3scW","LayoutGrid--wide-l--justify-content-start":"LayoutGrid--wide-l--justify-content-start__N9skE","LayoutGrid--wide-l--justify-content-end":"LayoutGrid--wide-l--justify-content-end__7j5o6","LayoutGrid--wide-l--justify-content-space-between":"LayoutGrid--wide-l--justify-content-space-between__fLeCp","LayoutGrid--wide-l--justify-content-space-around":"LayoutGrid--wide-l--justify-content-space-around__mbpQE","LayoutGrid--wide-l--justify-content-space-evenly":"LayoutGrid--wide-l--justify-content-space-evenly__524dM","LayoutGrid--align-items-center":"LayoutGrid--align-items-center__RVwSt","LayoutGrid--align-items-start":"LayoutGrid--align-items-start__E8uxU","LayoutGrid--align-items-end":"LayoutGrid--align-items-end__4Nt2r","LayoutGrid--align-items-stretch":"LayoutGrid--align-items-stretch__A9ams","LayoutGrid--align-items-baseline":"LayoutGrid--align-items-baseline__0-yUW","LayoutGrid--narrow-l--align-items-center":"LayoutGrid--narrow-l--align-items-center__uwELy","LayoutGrid--narrow-l--align-items-start":"LayoutGrid--narrow-l--align-items-start__bgO2N","LayoutGrid--narrow-l--align-items-end":"LayoutGrid--narrow-l--align-items-end__Rswst","LayoutGrid--narrow-l--align-items-stretch":"LayoutGrid--narrow-l--align-items-stretch__j1L58","LayoutGrid--narrow-l--align-items-baseline":"LayoutGrid--narrow-l--align-items-baseline__kVArA","LayoutGrid--medium-s--align-items-center":"LayoutGrid--medium-s--align-items-center__fNix8","LayoutGrid--medium-s--align-items-start":"LayoutGrid--medium-s--align-items-start__UKPQt","LayoutGrid--medium-s--align-items-end":"LayoutGrid--medium-s--align-items-end__jaF0X","LayoutGrid--medium-s--align-items-stretch":"LayoutGrid--medium-s--align-items-stretch__jCz1x","LayoutGrid--medium-s--align-items-baseline":"LayoutGrid--medium-s--align-items-baseline__XE4bX","LayoutGrid--medium-l--align-items-center":"LayoutGrid--medium-l--align-items-center__VhrYE","LayoutGrid--medium-l--align-items-start":"LayoutGrid--medium-l--align-items-start__r8cjo","LayoutGrid--medium-l--align-items-end":"LayoutGrid--medium-l--align-items-end__s1gpS","LayoutGrid--medium-l--align-items-stretch":"LayoutGrid--medium-l--align-items-stretch__ItEfq","LayoutGrid--medium-l--align-items-baseline":"LayoutGrid--medium-l--align-items-baseline__nZ7fR","LayoutGrid--wide-s--align-items-center":"LayoutGrid--wide-s--align-items-center__mrOx2","LayoutGrid--wide-s--align-items-start":"LayoutGrid--wide-s--align-items-start__cQBTK","LayoutGrid--wide-s--align-items-end":"LayoutGrid--wide-s--align-items-end__mahG6","LayoutGrid--wide-s--align-items-stretch":"LayoutGrid--wide-s--align-items-stretch__0PTob","LayoutGrid--wide-s--align-items-baseline":"LayoutGrid--wide-s--align-items-baseline__3W7pd","LayoutGrid--wide-l--align-items-center":"LayoutGrid--wide-l--align-items-center__BOrH6","LayoutGrid--wide-l--align-items-start":"LayoutGrid--wide-l--align-items-start__4V23L","LayoutGrid--wide-l--align-items-end":"LayoutGrid--wide-l--align-items-end__zVwxu","LayoutGrid--wide-l--align-items-stretch":"LayoutGrid--wide-l--align-items-stretch__Jdna5","LayoutGrid--wide-l--align-items-baseline":"LayoutGrid--wide-l--align-items-baseline__02lpK","LayoutGrid--justify-items-stretch":"LayoutGrid--justify-items-stretch__U4vSC","LayoutGrid--justify-items-center":"LayoutGrid--justify-items-center__VARQR","LayoutGrid--justify-items-start":"LayoutGrid--justify-items-start__NLAeT","LayoutGrid--justify-items-end":"LayoutGrid--justify-items-end__w0moy","LayoutGrid--narrow-l--justify-items-stretch":"LayoutGrid--narrow-l--justify-items-stretch__hKJSX","LayoutGrid--narrow-l--justify-items-center":"LayoutGrid--narrow-l--justify-items-center__b7Xid","LayoutGrid--narrow-l--justify-items-start":"LayoutGrid--narrow-l--justify-items-start__6cBmQ","LayoutGrid--narrow-l--justify-items-end":"LayoutGrid--narrow-l--justify-items-end__1A84y","LayoutGrid--medium-s--justify-items-stretch":"LayoutGrid--medium-s--justify-items-stretch__V9kwQ","LayoutGrid--medium-s--justify-items-center":"LayoutGrid--medium-s--justify-items-center__ZWr9D","LayoutGrid--medium-s--justify-items-start":"LayoutGrid--medium-s--justify-items-start__NjFpt","LayoutGrid--medium-s--justify-items-end":"LayoutGrid--medium-s--justify-items-end__ERiPY","LayoutGrid--medium-l--justify-items-stretch":"LayoutGrid--medium-l--justify-items-stretch__O1l7k","LayoutGrid--medium-l--justify-items-center":"LayoutGrid--medium-l--justify-items-center__QDO0p","LayoutGrid--medium-l--justify-items-start":"LayoutGrid--medium-l--justify-items-start__2N9qj","LayoutGrid--medium-l--justify-items-end":"LayoutGrid--medium-l--justify-items-end__BSgLt","LayoutGrid--wide-s--justify-items-stretch":"LayoutGrid--wide-s--justify-items-stretch__QvGpc","LayoutGrid--wide-s--justify-items-center":"LayoutGrid--wide-s--justify-items-center__CbWJj","LayoutGrid--wide-s--justify-items-start":"LayoutGrid--wide-s--justify-items-start__tBgMR","LayoutGrid--wide-s--justify-items-end":"LayoutGrid--wide-s--justify-items-end__mgyU3","LayoutGrid--wide-l--justify-items-stretch":"LayoutGrid--wide-l--justify-items-stretch__x0UMz","LayoutGrid--wide-l--justify-items-center":"LayoutGrid--wide-l--justify-items-center__Q6DqC","LayoutGrid--wide-l--justify-items-start":"LayoutGrid--wide-l--justify-items-start__jIMRB","LayoutGrid--wide-l--justify-items-end":"LayoutGrid--wide-l--justify-items-end__gZTXq","LayoutGrid--columns":"LayoutGrid--columns__kFwZC","LayoutGrid--columns-narrow-l":"LayoutGrid--columns-narrow-l__7Vb8x","LayoutGrid--columns-medium-s":"LayoutGrid--columns-medium-s__V-iwq","LayoutGrid--columns-medium-l":"LayoutGrid--columns-medium-l__pzkhg","LayoutGrid--columns-wide-s":"LayoutGrid--columns-wide-s__4uJPp","LayoutGrid--columns-wide-l":"LayoutGrid--columns-wide-l__ZwkSC"},V="LayoutGrid",z=Object.keys(N),c=t=>typeof t=="number"?`repeat(${t}, 1fr)`:t.join(" "),S=t=>typeof t=="object"&&!Array.isArray(t)?Object.entries(t).reduce((i,[a,e])=>({...i,...e?{[a]:c(e)}:{}}),{_:c(t._)}):{_:c(t)},B=t=>{if(!t)return{classNames:[],style:{}};const i=S(t),a=z.filter(s=>i[s]),e=w(_,V,["columns",...a.map(s=>`columns-${s}`)]),u=a.reduce((s,n)=>({...s,[`--columns-${n}`]:i[n]}),{"--columns":i._});return{classNames:e,style:u}},F="LayoutGap",q=t=>o(U,F,[r("gap",t)]),P="LayoutGrid",$=(t,i)=>{const{gap:a=g,padding:e=p,justifyContent:u,alignItems:s,justifyItems:n,hide:d,relative:y}=i||{},m=o(_,P,[r("justify-content",u),r("align-items",s),r("justify-items",n)]),l=q(a),L=R(e),f=D(d,"grid"),j=Y(y);return[...m,...l,...L,...f,...j]},H=b.forwardRef(function({dataset:i,children:a,...e},u){const{tag:s=A,columns:n}=e,d=$("grid",e),{style:y,classNames:m}=B(n),l=[...d,...m],L={...E(e),ref:u,className:l.join(" "),style:y,...h(i,{preplyDsComponent:I.LayoutGrid})};return C.jsx(s,{...L,children:a})});H.__docgenInfo={description:"",methods:[],displayName:"LayoutGrid"};export{H as L,Y as a,D as g};
|
|
1
|
+
import{u as o,w as G,G as w,v as r,aA as g,an as p,r as b,L as A,g as h,j as C}from"./iframe-rPxPheSO.js";import{B as N}from"./breakpoints-BfMlrtxE.js";import{a as v,b as T,s as U,g as R}from"./layout-relative.module-1z75aSwo-Btp4KtwY.js";import{L as O}from"./constants-DYYVurUY.js";import{f as E}from"./filterAttributesPassedByRadixUIAtRuntime-Bye2JkZ0.js";import{w as I}from"./componentNames-Dts5uwdK.js";const k="LayoutHide",D=(t,i=O)=>o(v,k,[G("hide",i,t)]),x="LayoutRelative",Y=t=>o(T,x,[G("relative",void 0,t)]),Q="LayoutGrid__-dslt",_={LayoutGrid:Q,"LayoutGrid--justify-content-center":"LayoutGrid--justify-content-center__rwmoB","LayoutGrid--justify-content-start":"LayoutGrid--justify-content-start__7v-Km","LayoutGrid--justify-content-end":"LayoutGrid--justify-content-end__kG5-O","LayoutGrid--justify-content-space-between":"LayoutGrid--justify-content-space-between__OUUgn","LayoutGrid--justify-content-space-around":"LayoutGrid--justify-content-space-around__m3Ggq","LayoutGrid--justify-content-space-evenly":"LayoutGrid--justify-content-space-evenly__WWIsT","LayoutGrid--narrow-l--justify-content-center":"LayoutGrid--narrow-l--justify-content-center__m7jv9","LayoutGrid--narrow-l--justify-content-start":"LayoutGrid--narrow-l--justify-content-start__6tHPx","LayoutGrid--narrow-l--justify-content-end":"LayoutGrid--narrow-l--justify-content-end__afk9H","LayoutGrid--narrow-l--justify-content-space-between":"LayoutGrid--narrow-l--justify-content-space-between__RgYaV","LayoutGrid--narrow-l--justify-content-space-around":"LayoutGrid--narrow-l--justify-content-space-around__LJwHL","LayoutGrid--narrow-l--justify-content-space-evenly":"LayoutGrid--narrow-l--justify-content-space-evenly__RQJez","LayoutGrid--medium-s--justify-content-center":"LayoutGrid--medium-s--justify-content-center__-dA3F","LayoutGrid--medium-s--justify-content-start":"LayoutGrid--medium-s--justify-content-start__fmsIg","LayoutGrid--medium-s--justify-content-end":"LayoutGrid--medium-s--justify-content-end__pMkvR","LayoutGrid--medium-s--justify-content-space-between":"LayoutGrid--medium-s--justify-content-space-between__sOUof","LayoutGrid--medium-s--justify-content-space-around":"LayoutGrid--medium-s--justify-content-space-around__eJIi-","LayoutGrid--medium-s--justify-content-space-evenly":"LayoutGrid--medium-s--justify-content-space-evenly__jLcAz","LayoutGrid--medium-l--justify-content-center":"LayoutGrid--medium-l--justify-content-center__Q9TxM","LayoutGrid--medium-l--justify-content-start":"LayoutGrid--medium-l--justify-content-start__CzzxC","LayoutGrid--medium-l--justify-content-end":"LayoutGrid--medium-l--justify-content-end__FBAN7","LayoutGrid--medium-l--justify-content-space-between":"LayoutGrid--medium-l--justify-content-space-between__f5lsd","LayoutGrid--medium-l--justify-content-space-around":"LayoutGrid--medium-l--justify-content-space-around__ring-","LayoutGrid--medium-l--justify-content-space-evenly":"LayoutGrid--medium-l--justify-content-space-evenly__NZ5rM","LayoutGrid--wide-s--justify-content-center":"LayoutGrid--wide-s--justify-content-center__wqUGl","LayoutGrid--wide-s--justify-content-start":"LayoutGrid--wide-s--justify-content-start__XQkqA","LayoutGrid--wide-s--justify-content-end":"LayoutGrid--wide-s--justify-content-end__-tCcn","LayoutGrid--wide-s--justify-content-space-between":"LayoutGrid--wide-s--justify-content-space-between__kBkZm","LayoutGrid--wide-s--justify-content-space-around":"LayoutGrid--wide-s--justify-content-space-around__flpk0","LayoutGrid--wide-s--justify-content-space-evenly":"LayoutGrid--wide-s--justify-content-space-evenly__rSh2w","LayoutGrid--wide-l--justify-content-center":"LayoutGrid--wide-l--justify-content-center__b3scW","LayoutGrid--wide-l--justify-content-start":"LayoutGrid--wide-l--justify-content-start__N9skE","LayoutGrid--wide-l--justify-content-end":"LayoutGrid--wide-l--justify-content-end__7j5o6","LayoutGrid--wide-l--justify-content-space-between":"LayoutGrid--wide-l--justify-content-space-between__fLeCp","LayoutGrid--wide-l--justify-content-space-around":"LayoutGrid--wide-l--justify-content-space-around__mbpQE","LayoutGrid--wide-l--justify-content-space-evenly":"LayoutGrid--wide-l--justify-content-space-evenly__524dM","LayoutGrid--align-items-center":"LayoutGrid--align-items-center__RVwSt","LayoutGrid--align-items-start":"LayoutGrid--align-items-start__E8uxU","LayoutGrid--align-items-end":"LayoutGrid--align-items-end__4Nt2r","LayoutGrid--align-items-stretch":"LayoutGrid--align-items-stretch__A9ams","LayoutGrid--align-items-baseline":"LayoutGrid--align-items-baseline__0-yUW","LayoutGrid--narrow-l--align-items-center":"LayoutGrid--narrow-l--align-items-center__uwELy","LayoutGrid--narrow-l--align-items-start":"LayoutGrid--narrow-l--align-items-start__bgO2N","LayoutGrid--narrow-l--align-items-end":"LayoutGrid--narrow-l--align-items-end__Rswst","LayoutGrid--narrow-l--align-items-stretch":"LayoutGrid--narrow-l--align-items-stretch__j1L58","LayoutGrid--narrow-l--align-items-baseline":"LayoutGrid--narrow-l--align-items-baseline__kVArA","LayoutGrid--medium-s--align-items-center":"LayoutGrid--medium-s--align-items-center__fNix8","LayoutGrid--medium-s--align-items-start":"LayoutGrid--medium-s--align-items-start__UKPQt","LayoutGrid--medium-s--align-items-end":"LayoutGrid--medium-s--align-items-end__jaF0X","LayoutGrid--medium-s--align-items-stretch":"LayoutGrid--medium-s--align-items-stretch__jCz1x","LayoutGrid--medium-s--align-items-baseline":"LayoutGrid--medium-s--align-items-baseline__XE4bX","LayoutGrid--medium-l--align-items-center":"LayoutGrid--medium-l--align-items-center__VhrYE","LayoutGrid--medium-l--align-items-start":"LayoutGrid--medium-l--align-items-start__r8cjo","LayoutGrid--medium-l--align-items-end":"LayoutGrid--medium-l--align-items-end__s1gpS","LayoutGrid--medium-l--align-items-stretch":"LayoutGrid--medium-l--align-items-stretch__ItEfq","LayoutGrid--medium-l--align-items-baseline":"LayoutGrid--medium-l--align-items-baseline__nZ7fR","LayoutGrid--wide-s--align-items-center":"LayoutGrid--wide-s--align-items-center__mrOx2","LayoutGrid--wide-s--align-items-start":"LayoutGrid--wide-s--align-items-start__cQBTK","LayoutGrid--wide-s--align-items-end":"LayoutGrid--wide-s--align-items-end__mahG6","LayoutGrid--wide-s--align-items-stretch":"LayoutGrid--wide-s--align-items-stretch__0PTob","LayoutGrid--wide-s--align-items-baseline":"LayoutGrid--wide-s--align-items-baseline__3W7pd","LayoutGrid--wide-l--align-items-center":"LayoutGrid--wide-l--align-items-center__BOrH6","LayoutGrid--wide-l--align-items-start":"LayoutGrid--wide-l--align-items-start__4V23L","LayoutGrid--wide-l--align-items-end":"LayoutGrid--wide-l--align-items-end__zVwxu","LayoutGrid--wide-l--align-items-stretch":"LayoutGrid--wide-l--align-items-stretch__Jdna5","LayoutGrid--wide-l--align-items-baseline":"LayoutGrid--wide-l--align-items-baseline__02lpK","LayoutGrid--justify-items-stretch":"LayoutGrid--justify-items-stretch__U4vSC","LayoutGrid--justify-items-center":"LayoutGrid--justify-items-center__VARQR","LayoutGrid--justify-items-start":"LayoutGrid--justify-items-start__NLAeT","LayoutGrid--justify-items-end":"LayoutGrid--justify-items-end__w0moy","LayoutGrid--narrow-l--justify-items-stretch":"LayoutGrid--narrow-l--justify-items-stretch__hKJSX","LayoutGrid--narrow-l--justify-items-center":"LayoutGrid--narrow-l--justify-items-center__b7Xid","LayoutGrid--narrow-l--justify-items-start":"LayoutGrid--narrow-l--justify-items-start__6cBmQ","LayoutGrid--narrow-l--justify-items-end":"LayoutGrid--narrow-l--justify-items-end__1A84y","LayoutGrid--medium-s--justify-items-stretch":"LayoutGrid--medium-s--justify-items-stretch__V9kwQ","LayoutGrid--medium-s--justify-items-center":"LayoutGrid--medium-s--justify-items-center__ZWr9D","LayoutGrid--medium-s--justify-items-start":"LayoutGrid--medium-s--justify-items-start__NjFpt","LayoutGrid--medium-s--justify-items-end":"LayoutGrid--medium-s--justify-items-end__ERiPY","LayoutGrid--medium-l--justify-items-stretch":"LayoutGrid--medium-l--justify-items-stretch__O1l7k","LayoutGrid--medium-l--justify-items-center":"LayoutGrid--medium-l--justify-items-center__QDO0p","LayoutGrid--medium-l--justify-items-start":"LayoutGrid--medium-l--justify-items-start__2N9qj","LayoutGrid--medium-l--justify-items-end":"LayoutGrid--medium-l--justify-items-end__BSgLt","LayoutGrid--wide-s--justify-items-stretch":"LayoutGrid--wide-s--justify-items-stretch__QvGpc","LayoutGrid--wide-s--justify-items-center":"LayoutGrid--wide-s--justify-items-center__CbWJj","LayoutGrid--wide-s--justify-items-start":"LayoutGrid--wide-s--justify-items-start__tBgMR","LayoutGrid--wide-s--justify-items-end":"LayoutGrid--wide-s--justify-items-end__mgyU3","LayoutGrid--wide-l--justify-items-stretch":"LayoutGrid--wide-l--justify-items-stretch__x0UMz","LayoutGrid--wide-l--justify-items-center":"LayoutGrid--wide-l--justify-items-center__Q6DqC","LayoutGrid--wide-l--justify-items-start":"LayoutGrid--wide-l--justify-items-start__jIMRB","LayoutGrid--wide-l--justify-items-end":"LayoutGrid--wide-l--justify-items-end__gZTXq","LayoutGrid--columns":"LayoutGrid--columns__kFwZC","LayoutGrid--columns-narrow-l":"LayoutGrid--columns-narrow-l__7Vb8x","LayoutGrid--columns-medium-s":"LayoutGrid--columns-medium-s__V-iwq","LayoutGrid--columns-medium-l":"LayoutGrid--columns-medium-l__pzkhg","LayoutGrid--columns-wide-s":"LayoutGrid--columns-wide-s__4uJPp","LayoutGrid--columns-wide-l":"LayoutGrid--columns-wide-l__ZwkSC"},V="LayoutGrid",z=Object.keys(N),c=t=>typeof t=="number"?`repeat(${t}, 1fr)`:t.join(" "),S=t=>typeof t=="object"&&!Array.isArray(t)?Object.entries(t).reduce((i,[a,e])=>({...i,...e?{[a]:c(e)}:{}}),{_:c(t._)}):{_:c(t)},B=t=>{if(!t)return{classNames:[],style:{}};const i=S(t),a=z.filter(s=>i[s]),e=w(_,V,["columns",...a.map(s=>`columns-${s}`)]),u=a.reduce((s,n)=>({...s,[`--columns-${n}`]:i[n]}),{"--columns":i._});return{classNames:e,style:u}},F="LayoutGap",q=t=>o(U,F,[r("gap",t)]),P="LayoutGrid",$=(t,i)=>{const{gap:a=g,padding:e=p,justifyContent:u,alignItems:s,justifyItems:n,hide:d,relative:y}=i||{},m=o(_,P,[r("justify-content",u),r("align-items",s),r("justify-items",n)]),l=q(a),L=R(e),f=D(d,"grid"),j=Y(y);return[...m,...l,...L,...f,...j]},H=b.forwardRef(function({dataset:i,children:a,...e},u){const{tag:s=A,columns:n}=e,d=$("grid",e),{style:y,classNames:m}=B(n),l=[...d,...m],L={...E(e),ref:u,className:l.join(" "),style:y,...h(i,{preplyDsComponent:I.LayoutGrid})};return C.jsx(s,{...L,children:a})});H.__docgenInfo={description:"",methods:[],displayName:"LayoutGrid"};export{H as L,Y as a,D as g};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{j as n}from"./iframe-
|
|
1
|
+
import{j as n}from"./iframe-rPxPheSO.js";import{L as e}from"./LayoutGridItem-ZgShiMY6.js";import{L as h}from"./LayoutGrid-ClN55Wfu.js";import{S as t,a as m}from"./consts-KAYct7Gj.js";import"./preload-helper-Dp1pzeXC.js";import"./align-self-DF2HdNLf.js";import"./layout-relative-BfaWqLn8.js";import"./layout-relative.module-D5jJ_Wjz.js";import"./constants-DYYVurUY.js";import"./filterAttributesPassedByRadixUIAtRuntime-B7QTVwVw.js";import"./componentNames-Dts5uwdK.js";import"./breakpoints-BfMlrtxE.js";const I={title:"components/LayoutGrid",component:h,subcomponents:{LayoutGridItem:e},argTypes:{gap:{description:t},padding:{description:m},columns:{description:t},justifyContent:{description:t},alignItems:{description:t},justifyItems:{description:t},hide:{description:t},relative:{description:t}}},o=()=>n.jsxs(h,{columns:4,alignItems:"start",gap:"16",children:[n.jsx(e,{children:n.jsxs("div",{style:{display:"flex",flexDirection:"column",gap:"0.25rem"},children:[n.jsx("div",{style:{height:"2ch",backgroundColor:"hotpink"}}),n.jsx("div",{style:{height:"2ch",backgroundColor:"hotpink"}})]})}),n.jsx(e,{alignSelf:"end",children:n.jsx("div",{style:{height:"2ch",backgroundColor:"hotpink"}})}),n.jsx("div",{style:{height:"2ch",backgroundColor:"hotpink"}}),n.jsx("div",{style:{height:"2ch",backgroundColor:"hotpink"}})]});o.storyName="LayoutGrid";const i={parameters:{chromatic:{disableSnapshot:!0}},args:{gap:"16",columns:3,alignItems:"start",children:n.jsxs(n.Fragment,{children:[n.jsx("div",{style:{minWidth:"100px",minHeight:50,backgroundColor:"hotpink"},children:" "}),n.jsx("div",{style:{minWidth:"100px",minHeight:75,backgroundColor:"hotpink"},children:" "}),n.jsx("div",{style:{minWidth:"100px",minHeight:100,backgroundColor:"hotpink",textAlign:"center"}})]}),dataset:{qaid:"layout-grid"}},argTypes:{dataset:{control:"object"},columns:{control:"number"},justifyItems:{control:"select"},hide:{control:"boolean"},relative:{control:"boolean"},children:{control:!1}}};var r,s,a;o.parameters={...o.parameters,docs:{...(r=o.parameters)==null?void 0:r.docs,source:{originalSource:`() => <LayoutGrid columns={4} alignItems="start" gap="16">
|
|
2
2
|
<LayoutGridItem>
|
|
3
3
|
<div style={{
|
|
4
4
|
display: 'flex',
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as L,u as h,g as _,j as C,L as G}from"./iframe-
|
|
1
|
+
import{r as L,u as h,g as _,j as C,L as G}from"./iframe-rPxPheSO.js";import{g as I}from"./align-self-DF2HdNLf.js";import{g as N,a as R}from"./layout-relative-BfaWqLn8.js";import{f as b}from"./filterAttributesPassedByRadixUIAtRuntime-B7QTVwVw.js";import{w as e}from"./componentNames-Dts5uwdK.js";const A="LayoutGridItem__GF0yx",q={LayoutGridItem:A},a=L.forwardRef(function({children:t,alignSelf:u,tag:s,hide:n,relative:r,dataset:o,...i},m){const v=h(q,e.LayoutGridItem,[]),d=I(u),p=N(n),c=R(r),f=[...v,...d,...p,...c],y=s??G,g={...b(i),ref:m,className:f.join(" "),..._(o,{preplyDsComponent:e.LayoutGridItem})};return C.jsx(y,{...g,children:t})});try{a.displayName="LayoutGridItem",a.__docgenInfo={description:"",displayName:"LayoutGridItem",props:{alignSelf:{defaultValue:null,description:"",name:"alignSelf",required:!1,type:{name:"enum",value:[{value:'"center"'},{value:'"start"'},{value:'"end"'},{value:'"stretch"'},{value:"ResponsiveProp<LayoutAlignSelf>"}]}},tag:{defaultValue:null,description:"",name:"tag",required:!1,type:{name:"enum",value:[{value:'"p"'},{value:'"div"'},{value:'"span"'},{value:'"main"'},{value:'"header"'},{value:'"footer"'},{value:'"article"'},{value:'"section"'},{value:'"ul"'},{value:'"ol"'},{value:'"li"'},{value:'"fieldset"'},{value:'"table"'},{value:'"th"'},{value:'"tr"'},{value:'"td"'},{value:'"thead"'},{value:'"tfoot"'},{value:'"tbody"'},{value:'"caption"'},{value:'"figure"'},{value:'"figcaption"'}]}},hide:{defaultValue:null,description:"",name:"hide",required:!1,type:{name:"enum",value:[{value:"false"},{value:"true"},{value:"ResponsiveProp<boolean>"}]}},relative:{defaultValue:null,description:"",name:"relative",required:!1,type:{name:"enum",value:[{value:"false"},{value:"true"},{value:"ResponsiveProp<boolean>"}]}},dataset:{defaultValue:null,description:"",name:"dataset",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: HTMLElement | null) => void"},{value:"RefObject<HTMLElement>"}]}},key:{defaultValue:null,description:"",name:"key",required:!1,type:{name:"enum",value:[{value:"null"},{value:"string"},{value:"number"},{value:"bigint"}]}}}}}catch{}export{a as L};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import{r as i,H as T,u as b,v as r,w as u,E as q,g as V,j as E}from"./iframe-
|
|
1
|
+
import{r as i,H as T,u as b,v as r,w as u,E as q,g as V,j as E}from"./iframe-rPxPheSO.js";import{f as N}from"./filterAttributesPassedByRadixUIAtRuntime-B7QTVwVw.js";import{u as U}from"./useHostname-CSCtqnDM.js";import{w as s}from"./componentNames-Dts5uwdK.js";const R="Link__Jw0hc",A={Link:R,"Link--inline":"Link--inline__aWJxC","Link--noUnderline":"Link--noUnderline__vuCBO","Link--variant-accentDark":"Link--variant-accentDark__5RCSd","Link--variant-accentDark--dsInternalSimulation-hover":"Link--variant-accentDark--dsInternalSimulation-hover__5vv1U","Link--variant-accentDark--dsInternalSimulation-active":"Link--variant-accentDark--dsInternalSimulation-active__-PYgd","Link--variant-accentDarkInverted":"Link--variant-accentDarkInverted__5GVfk","Link--variant-accentDarkInverted--dsInternalSimulation-hover":"Link--variant-accentDarkInverted--dsInternalSimulation-hover__u7g4B","Link--variant-accentDarkInverted--dsInternalSimulation-active":"Link--variant-accentDarkInverted--dsInternalSimulation-active__4bGgk","Link--variant-neutral":"Link--variant-neutral__v0PFp","Link--variant-neutral--dsInternalSimulation-hover":"Link--variant-neutral--dsInternalSimulation-hover__L-hBv","Link--variant-neutral--dsInternalSimulation-active":"Link--variant-neutral--dsInternalSimulation-active__5rs0z","Link--variant-neutralInverted":"Link--variant-neutralInverted__t9Ijl","Link--variant-neutralInverted--dsInternalSimulation-hover":"Link--variant-neutralInverted--dsInternalSimulation-hover__H50Xt","Link--variant-neutralInverted--dsInternalSimulation-active":"Link--variant-neutralInverted--dsInternalSimulation-active__Irr0h","Link--variant-unsetColors":"Link--variant-unsetColors__EEbF5","Link--variant-unsetColors--dsInternalSimulation-hover":"Link--variant-unsetColors--dsInternalSimulation-hover__vMIu6","Link--variant-unsetColors--dsInternalSimulation-active":"Link--variant-unsetColors--dsInternalSimulation-active__wlGTN"},o=i.forwardRef(function(v,m){const{variant:n=T,href:c,download:f,opensInNewTab:k,nofollow:p,assistiveText:L,onClick:I,as:a,url:h,dataset:_,children:t,inline:y,dsInternalSimulation:w,noUnderline:S,...g}=v,C=U(),D=b(A,s.Link,[r(`variant-${n}--dsInternalSimulation`,w),r("variant",n),u("inline",void 0,y),u("noUnderline",void 0,S)]),e=c||h,x=e?q(C,e,k,p):{},l={...N(g),ref:m,href:e,download:f,"aria-label":L,onClick:I,className:D.join(" "),...V(_,{preplyDsComponent:s.Link})};return a?i.cloneElement(a,{...l},t):E.jsx("a",{...l,...x,children:t})});try{o.displayName="Link",o.__docgenInfo={description:`This is an inline element and will inherit font-size, line-height and
|
|
2
2
|
font-weight from the parent context. If you need to customise any of these
|
|
3
3
|
styles, all you have to do is wrap the <Link> in a Text or TextInline
|
|
4
|
-
component.`,displayName:"Link",props:{
|
|
4
|
+
component.`,displayName:"Link",props:{href:{defaultValue:null,description:"",name:"href",required:!1,type:{name:"enum",value:[{value:"string"}]}},download:{defaultValue:null,description:"",name:"download",required:!1,type:{name:"any"}},onClick:{defaultValue:null,description:"",name:"onClick",required:!1,type:{name:"enum",value:[{value:"MouseEventHandler<HTMLAnchorElement>"}]}},variant:{defaultValue:null,description:"",name:"variant",required:!1,type:{name:"enum",value:[{value:'"accentDark"'},{value:'"neutral"'},{value:'"accentDarkInverted"'},{value:'"neutralInverted"'},{value:'"unsetColors"'}]}},opensInNewTab:{defaultValue:null,description:"If `true`, forces internal link to open in a new tab.",name:"opensInNewTab",required:!1,type:{name:"enum",value:[{value:"false"},{value:"true"}]}},nofollow:{defaultValue:null,description:"",name:"nofollow",required:!1,type:{name:"enum",value:[{value:"false"},{value:"true"}]}},assistiveText:{defaultValue:null,description:"Provide an `aria-label` to the link.\nThis is useful if the link wraps non-textual elements, eg. an `img`.",name:"assistiveText",required:!1,type:{name:"enum",value:[{value:"string"}]}},as:{defaultValue:null,description:"",name:"as",required:!1,type:{name:"enum",value:[{value:"ReactElement<any, string | JSXElementConstructor<any>>"}]}},url:{defaultValue:null,description:"@deprecated Use `href` instead",name:"url",required:!1,type:{name:"enum",value:[{value:"string"}]}},dataset:{defaultValue:null,description:`Sets data attributes on the DOM element.
|
|
5
5
|
@example <Avatar dataset={{ 'qa-id': 'user-avatar' }} /> // will add data-qa-id="user-avatar" to the HTML element`,name:"dataset",required:!1,type:{name:"enum",value:[{value:"Dataset"}]}},inline:{defaultValue:null,description:"If `true`, allows the link to wrap within text.",name:"inline",required:!1,type:{name:"enum",value:[{value:"false"},{value:"true"}]}},noUnderline:{defaultValue:null,description:"",name:"noUnderline",required:!1,type:{name:"enum",value:[{value:"false"},{value:"true"}]}},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: HTMLAnchorElement | null) => void"},{value:"RefObject<HTMLAnchorElement>"}]}},key:{defaultValue:null,description:"",name:"key",required:!1,type:{name:"enum",value:[{value:"null"},{value:"string"},{value:"number"},{value:"bigint"}]}}}}}catch{}export{o as L};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{j as e,r as q}from"./iframe-
|
|
1
|
+
import{j as e,r as q}from"./iframe-rPxPheSO.js";import{T as t}from"./Text-DadiF3bg.js";import{L as r}from"./Link-A5JmQWbD.js";import{g as d}from"./getTokenVar-C2EwRMHN.js";import{c as p}from"./tokens-DVFIp8cS.js";import"./preload-helper-Dp1pzeXC.js";import"./text-accent-DectBi3u.js";import"./text-centered-nlNU1AO2.js";import"./filterAttributesPassedByRadixUIAtRuntime-B7QTVwVw.js";import"./componentNames-Dts5uwdK.js";import"./useHostname-CSCtqnDM.js";const M={title:"components/Link",component:r},i=()=>{const a=d(p.background.primaryInverted);return e.jsxs("div",{style:{display:"flex",gap:"16px"},children:[e.jsx(r,{href:"https://preply.com",variant:"neutral",children:"neutral"}),e.jsx("span",{style:{backgroundColor:a},children:e.jsx(r,{href:"https://preply.com",variant:"neutralInverted",children:"neutralInverted"})}),e.jsx(r,{href:"https://preply.com",variant:"accentDark",children:"accentDark"}),e.jsx("span",{style:{backgroundColor:a},children:e.jsx(r,{href:"https://preply.com",variant:"accentDarkInverted",children:"accentDarkInverted"})}),e.jsx(r,{href:"https://preply.com",variant:"unsetColors",children:"unsetColors"})]})},l=()=>{const a=d(p.background.primaryInverted);return e.jsxs("div",{style:{display:"flex",gap:"16px",flexDirection:"column"},children:[e.jsx(t,{variant:"default-regular-italic",children:"(use the `unsetColors` variant)"}),e.jsxs("div",{children:[e.jsx(t,{variant:"large-semibold-italic",children:"primary"}),e.jsx(t,{variant:"default-regular-italic",children:"normal"}),e.jsxs(t,{accent:"primary",children:["Lorem ipsum ",e.jsx(r,{variant:"unsetColors",children:"dolor sit amet"})," amet."]}),e.jsx(t,{variant:"default-regular-italic",children:"active"}),e.jsxs(t,{accent:"primary",children:["Lorem ipsum"," ",e.jsx(r,{variant:"unsetColors",dsInternalSimulation:"active",children:"dolor sit amet"})," ","amet."]})]}),e.jsxs("div",{style:{backgroundColor:a},children:[e.jsx(t,{variant:"large-semibold-italic",accent:"inverted",children:"inverted"}),e.jsx(t,{variant:"default-regular-italic",accent:"inverted",children:"normal"}),e.jsxs(t,{accent:"inverted",children:["Lorem ipsum ",e.jsx(r,{variant:"unsetColors",children:"dolor sit amet"})," amet."]}),e.jsx(t,{variant:"default-regular-italic",accent:"inverted",children:"active"}),e.jsxs(t,{accent:"inverted",children:["Lorem ipsum"," ",e.jsx(r,{variant:"unsetColors",dsInternalSimulation:"active",children:"dolor sit amet"})," ","amet."]})]}),e.jsxs("div",{children:[e.jsx(t,{variant:"large-semibold-italic",children:"positive"}),e.jsx(t,{variant:"default-regular-italic",children:"normal"}),e.jsxs(t,{accent:"positive",children:["Lorem ipsum ",e.jsx(r,{variant:"unsetColors",children:"dolor sit amet"})," amet."]}),e.jsx(t,{variant:"default-regular-italic",children:"active"}),e.jsxs(t,{accent:"positive",children:["Lorem ipsum"," ",e.jsx(r,{variant:"unsetColors",dsInternalSimulation:"active",children:"dolor sit amet"})," ","amet."]})]}),e.jsxs("div",{children:[e.jsx(t,{variant:"large-semibold-italic",children:"critical"}),e.jsx(t,{variant:"default-regular-italic",children:"normal"}),e.jsxs(t,{accent:"critical",children:["Lorem ipsum ",e.jsx(r,{variant:"unsetColors",children:"dolor sit amet"})," amet."]}),e.jsx(t,{variant:"default-regular-italic",children:"active"}),e.jsxs(t,{accent:"critical",children:["Lorem ipsum"," ",e.jsx(r,{variant:"unsetColors",dsInternalSimulation:"active",children:"dolor sit amet"})," ","amet."]})]})]})},o=()=>{const a=d(p.background.primaryInverted);return e.jsxs("div",{style:{display:"flex",gap:"16px",flexDirection:"column"},children:[e.jsx(t,{variant:"default-regular-italic",children:"normal"}),e.jsxs("div",{style:{display:"flex",gap:"16px"},children:[e.jsx(r,{href:"https://preply.com",variant:"neutral",children:"neutral"}),e.jsx("span",{style:{backgroundColor:a},children:e.jsx(r,{href:"https://preply.com",variant:"neutralInverted",children:"neutralInverted"})}),e.jsx(r,{href:"https://preply.com",variant:"accentDark",children:"accentDark"}),e.jsx("span",{style:{backgroundColor:a},children:e.jsx(r,{href:"https://preply.com",variant:"accentDarkInverted",children:"accentDarkInverted"})}),e.jsx(r,{href:"https://preply.com",variant:"unsetColors",children:"unsetColors"})]}),e.jsx(t,{variant:"default-regular-italic",children:"hover"}),e.jsxs("div",{style:{display:"flex",gap:"16px"},children:[e.jsx(r,{href:"https://preply.com",variant:"neutral",dsInternalSimulation:"hover",children:"neutral"}),e.jsx("span",{style:{backgroundColor:a},children:e.jsx(r,{href:"https://preply.com",variant:"neutralInverted",dsInternalSimulation:"hover",children:"neutralInverted"})}),e.jsx(r,{href:"https://preply.com",variant:"accentDark",dsInternalSimulation:"hover",children:"accentDark"}),e.jsx("span",{style:{backgroundColor:a},children:e.jsx(r,{href:"https://preply.com",variant:"accentDarkInverted",dsInternalSimulation:"hover",children:"accentDarkInverted"})}),e.jsx(r,{href:"https://preply.com",variant:"unsetColors",dsInternalSimulation:"hover",children:"unsetColors"})]}),e.jsx(t,{variant:"default-regular-italic",children:"active"}),e.jsxs("div",{style:{display:"flex",gap:"16px"},children:[e.jsx(r,{href:"https://preply.com",variant:"neutral",dsInternalSimulation:"active",children:"neutral"}),e.jsx("span",{style:{backgroundColor:a},children:e.jsx(r,{href:"https://preply.com",variant:"neutralInverted",dsInternalSimulation:"active",children:"neutralInverted"})}),e.jsx(r,{href:"https://preply.com",variant:"accentDark",dsInternalSimulation:"active",children:"accentDark"}),e.jsx("span",{style:{backgroundColor:a},children:e.jsx(r,{href:"https://preply.com",variant:"accentDarkInverted",dsInternalSimulation:"active",children:"accentDarkInverted"})}),e.jsx(r,{href:"https://preply.com",variant:"unsetColors",dsInternalSimulation:"active",children:"unsetColors"})]})]})},s=()=>e.jsxs("p",{style:{width:"12ch"},children:["Unlock your potential;"," ",e.jsx(r,{href:"https://preply.com",variant:"unsetColors",inline:!0,children:"visit Preply"}),"."]}),P=q.forwardRef(function({to:R,...U},E){return e.jsx("a",{...U,href:R,ref:E})});P.displayName="Link";const n={parameters:{docs:{source:{type:"dynamic"}}},decorators:[a=>e.jsx("div",{style:{display:"flex",flexDirection:"column",width:"max-content",gap:"8px"},children:e.jsx(a,{})})],render:()=>e.jsxs(e.Fragment,{children:[e.jsx(r,{as:e.jsx(P,{to:"/"}),variant:"neutral",children:"Next.js Link"}),e.jsx(r,{as:e.jsx("button",{}),variant:"neutral",children:"Button"})]})},c={parameters:{chromatic:{disableSnapshot:!0}},args:{children:"Click me",href:"https://preply.com",variant:"neutral",dataset:{qaid:"link"}},argTypes:{dataset:{control:"object"},inline:{control:"boolean"},noUnderline:{control:"boolean"},opensInNewTab:{control:"boolean"},nofollow:{control:"boolean"},download:{control:"boolean"},assistiveText:{control:"text"},href:{control:"text"},url:{table:{disable:!0}}}};var u,m,v;i.parameters={...i.parameters,docs:{...(u=i.parameters)==null?void 0:u.docs,source:{originalSource:`() => {
|
|
2
2
|
const grey = getTokenVar(color.background.primaryInverted);
|
|
3
3
|
return <div style={{
|
|
4
4
|
display: 'flex',
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{r as h,u as z,w as j,g as k,j as e}from"./iframe-
|
|
1
|
+
import{r as h,u as z,w as j,g as k,j as e}from"./iframe-rPxPheSO.js";import{f as R}from"./filterAttributesPassedByRadixUIAtRuntime-B7QTVwVw.js";import{S as N}from"./Spinner-DMKptX0-.js";import{w as l}from"./componentNames-Dts5uwdK.js";import{g as w}from"./getTokenVar-C2EwRMHN.js";import{c as C}from"./tokens-DVFIp8cS.js";import{S as E}from"./consts-KAYct7Gj.js";import"./preload-helper-Dp1pzeXC.js";const I="Loader__Ya6Xk",P={Loader:I,"Loader--normal":"Loader--normal__41Xzt","Loader--inverted":"Loader--inverted__NULSk"},a=h.forwardRef(function({size:t,inverted:y=!1,dataset:L,...S},b){const x=z(P,l.Loader,[j("inverted","normal",y)]),_={...R(S),ref:b,className:x.join(" "),...k(L,{preplyDsComponent:l.Loader})};return e.jsx("span",{..._,children:e.jsx(N,{size:t})})});try{a.displayName="Loader",a.__docgenInfo={description:"",displayName:"Loader",props:{size:{defaultValue:null,description:"",name:"size",required:!1,type:{name:"enum",value:[{value:'"large"'},{value:'"default"'},{value:"ResponsiveProp<SpinnerSize>"}]}},inverted:{defaultValue:{value:"false"},description:"",name:"inverted",required:!1,type:{name:"enum",value:[{value:"false"},{value:"true"}]}},dataset:{defaultValue:null,description:"",name:"dataset",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: HTMLSpanElement | null) => void"},{value:"RefObject<HTMLSpanElement>"}]}},key:{defaultValue:null,description:"",name:"key",required:!1,type:{name:"enum",value:[{value:"null"},{value:"string"},{value:"number"},{value:"bigint"}]}}}}}catch{}const M={title:"components/Loader",component:a,argTypes:{size:{description:E}}},s=()=>e.jsxs("div",{style:{display:"flex",alignItems:"end",gap:"8px"},children:[e.jsx(a,{size:"default"}),e.jsx(a,{size:"large"})]}),n=()=>e.jsx(a,{inverted:!0});n.decorators=[r=>{const t=w(C.background.primaryInverted);return e.jsx("div",{style:{backgroundColor:t},children:r()})}];const o={parameters:{chromatic:{disableSnapshot:!0}},decorators:[(r,{args:t})=>e.jsx("div",{style:{backgroundColor:t.inverted?"black":void 0},children:r()})],args:{size:"default",inverted:!1,dataset:{qaid:"loader"}},argTypes:{dataset:{control:"object"},size:{control:"select"},inverted:{control:"boolean"}}};var d,i,c;s.parameters={...s.parameters,docs:{...(d=s.parameters)==null?void 0:d.docs,source:{originalSource:`() => <div style={{
|
|
2
2
|
display: 'flex',
|
|
3
3
|
alignItems: 'end',
|
|
4
4
|
gap: '8px'
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{r as C,j as e,g as k}from"./iframe-rPxPheSO.js";import{u as j}from"./useControllableState-BGQSGH6e.js";import{c as x,C as R,a as M,b as I,d as _,D as z,e as E}from"./createRequiredContext-Co5wTaFA.js";import{f as V}from"./filterAttributesPassedByRadixUIAtRuntime-B7QTVwVw.js";import{w as q}from"./componentNames-Dts5uwdK.js";const[T,L]=x("MultiSelectChips"),y=C.forwardRef(function({items:a,children:r,orientation:l=z,"aria-label":s,"aria-controls":o,value:c,onValueChange:m,defaultValue:d,dataset:p,...f},h){const[u,v]=j({value:c,onValueChange:m,defaultValue:d??[]}),w=(t,n)=>{v(n?u.filter(g=>g!==t):[...u,t])},S=a?a.map(({label:t,value:n,...g})=>e.jsx(b,{value:n,...g,children:t},n)):r;return e.jsx(T,{value:{values:u,onToggle:w},children:e.jsx(_,{orientation:l,children:e.jsx(E,{...V(f),ref:h,orientation:l,"aria-orientation":l,"aria-label":s,"aria-controls":o,role:"listbox","aria-multiselectable":"true",...k(p,{preplyDsComponent:q.MultiSelectChips}),children:S})})})}),b=C.forwardRef(function({value:a,children:r,icon:l,countryFlagCode:s,disabled:o,counter:c,dataset:m,dsInternalSimulation:d,...p},f){const{values:h,onToggle:u}=L(),v=h.includes(a);return e.jsx(R,{role:"presentation",children:e.jsx(M,{...V(p),ref:f,role:"option","aria-selected":v,onClick:()=>u(a,v),icon:l,countryFlagCode:s,disabled:o,dsInternalSimulation:d,...k(m,{preplyDsComponent:q.MultiSelectChipsItem}),children:e.jsx(I,{counter:c,children:r})})})});try{y.displayName="MultiSelectChips",y.__docgenInfo={description:`A chips component that allows selection of multiple options from a group.
|
|
2
|
+
Users can select multiple chips, and clicking a selected chip will deselect it.`,displayName:"MultiSelectChips",props:{value:{defaultValue:null,description:"Current value of the chips. When provided, the component operates in controlled mode",name:"value",required:!1,type:{name:"enum",value:[{value:"T[]"}]}},defaultValue:{defaultValue:null,description:"Default value for uncontrolled usage. Will be ignored if `value` is provided",name:"defaultValue",required:!1,type:{name:"enum",value:[{value:"T[]"}]}},onValueChange:{defaultValue:null,description:"Callback fired when the value changes. Receives the new value as an argument",name:"onValueChange",required:!1,type:{name:"enum",value:[{value:"(value: T[]) => void"}]}},dataset:{defaultValue:null,description:"",name:"dataset",required:!1,type:{name:"enum",value:[{value:"Dataset"}]}},"aria-label":{defaultValue:null,description:"Accessible label for the chips group. Required for screen reader users",name:"aria-label",required:!0,type:{name:"string"}},key:{defaultValue:null,description:"",name:"key",required:!1,type:{name:"enum",value:[{value:"null"},{value:"string"},{value:"number"},{value:"bigint"}]}},"aria-controls":{defaultValue:null,description:"If the chips control other elements on the page, use `aria-controls` with the target element's ID.",name:"aria-controls",required:!1,type:{name:"enum",value:[{value:"string"}]}},orientation:{defaultValue:{value:"'horizontal'"},description:"Layout orientation of the chips group.",name:"orientation",required:!1,type:{name:"enum",value:[{value:'"horizontal"'},{value:'"vertical"'}]}},items:{defaultValue:null,description:"",name:"items",required:!1,type:{name:"enum",value:[{value:'(Omit<ChipsItemProps, "value" | "dsInternalSimulation" | "children"> & { value: NonNullable<T>; label: ReactNode; })[]'}]}},ref:{defaultValue:null,description:"",name:"ref",required:!1,type:{name:"enum",value:[{value:"null"},{value:"(instance: HTMLUListElement | null) => void"},{value:"RefObject<HTMLUListElement>"}]}}}}}catch{}try{b.displayName="MultiSelectChipsItem",b.__docgenInfo={description:"Individual chip item for use within MultiSelectChips.",displayName:"MultiSelectChipsItem",props:{disabled:{defaultValue:null,description:"",name:"disabled",required:!1,type:{name:"enum",value:[{value:"false"},{value:"true"}]}},icon:{defaultValue:null,description:"",name:"icon",required:!1,type:{name:"enum",value:[{value:"ComponentClass<SVGAttributes<SVGElement>, any>"},{value:"FunctionComponent<SVGAttributes<SVGElement>>"},{value:"ReactElement<any, string | JSXElementConstructor<any>>"}]}},countryFlagCode:{defaultValue:null,description:"",name:"countryFlagCode",required:!1,type:{name:"enum",value:[{value:'"id"'},{value:'"ai"'},{value:'"li"'},{value:'"th"'},{value:'"tr"'},{value:'"td"'},{value:'"as"'},{value:'"br"'},{value:'"hr"'},{value:'"is"'},{value:'"at"'},{value:'"no"'},{value:'"by"'},{value:'"cx"'},{value:'"cy"'},{value:'"fr"'},{value:'"in"'},{value:'"to"'},{value:'"ua"'},{value:'"ar"'},{value:'"de"'},{value:'"es"'},{value:'"it"'},{value:'"pl"'},{value:'"pt"'},{value:'"ru"'},{value:'"nl"'},{value:'"ro"'},{value:'"sv"'},{value:'"tw"'},{value:'"hk"'},{value:'"af"'},{value:'"ax"'},{value:'"al"'},{value:'"dz"'},{value:'"ad"'},{value:'"ao"'},{value:'"aq"'},{value:'"ag"'},{value:'"am"'},{value:'"aw"'},{value:'"sh-ac"'},{value:'"asean"'},{value:'"au"'},{value:'"az"'},{value:'"bs"'},{value:'"bh"'},{value:'"bd"'},{value:'"bb"'},{value:'"es-pv"'},{value:'"be"'},{value:'"bz"'},{value:'"bj"'},{value:'"bm"'},{value:'"bt"'},{value:'"bo"'},{value:'"bq"'},{value:'"ba"'},{value:'"bw"'},{value:'"bv"'},{value:'"io"'},{value:'"bn"'},{value:'"bg"'},{value:'"bf"'},{value:'"bi"'},{value:'"cv"'},{value:'"kh"'},{value:'"cm"'},{value:'"ca"'},{value:'"ic"'},{value:'"es-ct"'},{value:'"ky"'},{value:'"cf"'},{value:'"cefta"'},{value:'"cl"'},{value:'"cn"'},{value:'"cp"'},{value:'"cc"'},{value:'"co"'},{value:'"km"'},{value:'"ck"'},{value:'"cr"'},{value:'"cu"'},{value:'"cw"'},{value:'"cz"'},{value:'"ci"'},{value:'"cd"'},{value:'"dk"'},{value:'"dg"'},{value:'"dj"'},{value:'"dm"'},{value:'"do"'},{value:'"eac"'},{value:'"ec"'},{value:'"eg"'},{value:'"gb-eng"'},{value:'"gq"'},{value:'"er"'},{value:'"ee"'},{value:'"sz"'},{value:'"et"'},{value:'"eu"'},{value:'"fk"'},{value:'"fo"'},{value:'"fm"'},{value:'"fj"'},{value:'"fi"'},{value:'"gf"'},{value:'"pf"'},{value:'"tf"'},{value:'"ga"'},{value:'"es-ga"'},{value:'"gm"'},{value:'"ge"'},{value:'"gh"'},{value:'"gi"'},{value:'"gr"'},{value:'"gl"'},{value:'"gd"'},{value:'"gp"'},{value:'"gu"'},{value:'"gt"'},{value:'"gg"'},{value:'"gn"'},{value:'"gw"'},{value:'"gy"'},{value:'"ht"'},{value:'"hm"'},{value:'"va"'},{value:'"hn"'},{value:'"hu"'},{value:'"ir"'},{value:'"iq"'},{value:'"ie"'},{value:'"im"'},{value:'"il"'},{value:'"jm"'},{value:'"jp"'},{value:'"je"'},{value:'"jo"'},{value:'"kz"'},{value:'"ke"'},{value:'"ki"'},{value:'"xk"'},{value:'"kw"'},{value:'"kg"'},{value:'"la"'},{value:'"lv"'},{value:'"arab"'},{value:'"lb"'},{value:'"ls"'},{value:'"lr"'},{value:'"ly"'},{value:'"lt"'},{value:'"lu"'},{value:'"mo"'},{value:'"mg"'},{value:'"mw"'},{value:'"my"'},{value:'"mv"'},{value:'"ml"'},{value:'"mt"'},{value:'"mh"'},{value:'"mq"'},{value:'"mr"'},{value:'"mu"'},{value:'"yt"'},{value:'"mx"'},{value:'"md"'},{value:'"mc"'},{value:'"mn"'},{value:'"me"'},{value:'"ms"'},{value:'"ma"'},{value:'"mz"'},{value:'"mm"'},{value:'"na"'},{value:'"nr"'},{value:'"np"'},{value:'"nc"'},{value:'"nz"'},{value:'"ni"'},{value:'"ne"'},{value:'"ng"'},{value:'"nu"'},{value:'"nf"'},{value:'"kp"'},{value:'"mk"'},{value:'"gb-nir"'},{value:'"mp"'},{value:'"om"'},{value:'"pc"'},{value:'"pk"'},{value:'"pw"'},{value:'"pa"'},{value:'"pg"'},{value:'"py"'},{value:'"pe"'},{value:'"ph"'},{value:'"pn"'},{value:'"pr"'},{value:'"qa"'},{value:'"cg"'},{value:'"rw"'},{value:'"re"'},{value:'"bl"'},{value:'"sh-hl"'},{value:'"sh"'},{value:'"kn"'},{value:'"lc"'},{value:'"mf"'},{value:'"pm"'},{value:'"vc"'},{value:'"ws"'},{value:'"sm"'},{value:'"st"'},{value:'"sa"'},{value:'"gb-sct"'},{value:'"sn"'},{value:'"rs"'},{value:'"sc"'},{value:'"sl"'},{value:'"sg"'},{value:'"sx"'},{value:'"sk"'},{value:'"si"'},{value:'"sb"'},{value:'"so"'},{value:'"za"'},{value:'"gs"'},{value:'"kr"'},{value:'"ss"'},{value:'"lk"'},{value:'"ps"'},{value:'"sd"'},{value:'"sr"'},{value:'"sj"'},{value:'"se"'},{value:'"ch"'},{value:'"sy"'},{value:'"tj"'},{value:'"tz"'},{value:'"tl"'},{value:'"tg"'},{value:'"tk"'},{value:'"tt"'},{value:'"sh-ta"'},{value:'"tn"'},{value:'"tm"'},{value:'"tc"'},{value:'"tv"'},{value:'"ug"'},{value:'"ae"'},{value:'"gb"'},{value:'"un"'},{value:'"um"'},{value:'"us"'},{value:'"uy"'},{value:'"uz"'},{value:'"vu"'},{value:'"ve"'},{value:'"vn"'},{value:'"vg"'},{value:'"vi"'},{value:'"gb-wls"'},{value:'"wf"'},{value:'"eh"'},{value:'"ye"'},{value:'"zm"'},{value:'"zw"'}]}},value:{defaultValue:null,description:"Unique identifier for this chip. Used for selection tracking",name:"value",required:!0,type:{name:"string"}},children:{defaultValue:null,description:"Content to display inside the chip",name:"children",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"}]}},counter:{defaultValue:null,description:"Optional numeric counter to display alongside the chip label",name:"counter",required:!1,type:{name:"enum",value:[{value:"number"}]}},dataset:{defaultValue:null,description:"",name:"dataset",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: HTMLButtonElement | null) => void"},{value:"RefObject<HTMLButtonElement>"}]}},key:{defaultValue:null,description:"",name:"key",required:!1,type:{name:"enum",value:[{value:"null"},{value:"string"},{value:"number"},{value:"bigint"}]}}}}}catch{}export{b as M,y as a};
|
package/dist/assets/{MultiSelectChips.stories-Cup_MZ5f.js → MultiSelectChips.stories-FaaktENh.js}
RENAMED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{j as a,r as Ye}from"./iframe-C8q8wjEm.js";import{M as p,a as h}from"./MultiSelectChips-BykmuV_j.js";import{F as V,a as Je,b as Qe,c as ta}from"./TokyoUIAvailability7LateNight-DbyckCtx.js";import{F as na}from"./TokyoUIEmojiFrowning-Cns9Y9eQ.js";import{F as ia}from"./index-B2swU3YW.js";import{L as g}from"./LayoutFlex-C9OAa1US.js";import{T as E}from"./Text-CPACpRkz.js";import{L as sa}from"./Link-D4CS5-70.js";import{d as oa}from"./styled-components.browser.esm-Dlze6hxw.js";import{H as la}from"./Heading-IAeZxORQ.js";import{T as B}from"./Tooltip-B2g58MT9.js";import{B as ra}from"./Button-8TyghF-W.js";import"./preload-helper-Dp1pzeXC.js";import"./useControllableState-POsCn5P8.js";import"./useStableCallback-BE4-kfmF.js";import"./createRequiredContext-CPJES7T4.js";import"./Icon-CeynEPoQ.js";import"./text-accent-Bbx7l_cl.js";import"./filterAttributesPassedByRadixUIAtRuntime-B7QTVwVw.js";import"./render-icon-rjyGnIsi.js";import"./componentNames-Dts5uwdK.js";import"./CountryFlag-BfP2Z-xa.js";import"./useMergeRefs-Cz2RkNaU.js";import"./layout-relative.module-C_WdSsa7.js";import"./text-centered-Cg_ddFhQ.js";import"./useHostname-MecFXBKz.js";import"./emotion-unitless.esm-BZwEwAnk.js";import"./ButtonBase-D85CySUD.js";import"./Spinner-VeUQXU7V.js";import"./useMergeRefs-DkFVQgA0.js";import"./index-CC6DAVyL.js";const{expect:e,within:u,fn:ca,userEvent:r,resetAllMocks:Xe,waitFor:T}=__STORYBOOK_MODULE_TEST__,Pa={title:"components/Chips/MultiSelectChips",component:h,subcomponents:{MultiSelectChipsItem:p},parameters:{layout:"padded"},args:{"aria-label":"Select skills",defaultValue:["vocabulary"],onValueChange:ca(),items:[{value:"vocabulary",label:"Vocabulary"},{value:"speaking",label:"Speaking"},{value:"listening",label:"Listening"},{value:"reading",label:"Reading"}]},beforeEach:()=>{Xe()}},v={play:async({canvasElement:i,step:t,args:n})=>{const s=u(i),o=s.getByRole("option",{name:"Vocabulary"}),l=s.getByRole("option",{name:"Speaking"}),c=s.getByRole("option",{name:"Listening"}),d=s.getByRole("option",{name:"Reading"});await t("Render chips with default value",async()=>{e(o).toHaveAttribute("aria-selected","true"),e(l).toHaveAttribute("aria-selected","false"),e(c).toHaveAttribute("aria-selected","false"),e(d).toHaveAttribute("aria-selected","false")}),await t("Click on the chip to select it",async()=>{await r.click(l),e(n.onValueChange).toHaveBeenCalledWith(["vocabulary","speaking"]),e(o).toHaveAttribute("aria-selected","true"),e(l).toHaveAttribute("aria-selected","true"),e(c).toHaveAttribute("aria-selected","false"),e(d).toHaveAttribute("aria-selected","false")}),await t("Click on the chip to deselect it",async()=>{await r.click(o),e(n.onValueChange).toHaveBeenCalledWith(["speaking"]),e(o).toHaveAttribute("aria-selected","false"),e(l).toHaveAttribute("aria-selected","true"),e(c).toHaveAttribute("aria-selected","false"),e(d).toHaveAttribute("aria-selected","false")})}};let L;const y={render:function({defaultValue:t,...n}){const[s,o]=Ye.useState(t);L=o;const l=c=>{var d;o(c),(d=n.onValueChange)==null||d.call(n,c)};return a.jsx(h,{...n,value:s,onValueChange:l})},play:async({canvasElement:i,step:t,args:n})=>{const s=u(i),o=s.getByRole("option",{name:"Vocabulary"}),l=s.getByRole("option",{name:"Speaking"}),c=s.getByRole("option",{name:"Listening"}),d=s.getByRole("option",{name:"Reading"});await t("Render chips with default value",async()=>{e(o).toHaveAttribute("aria-selected","true"),e(l).toHaveAttribute("aria-selected","false"),e(c).toHaveAttribute("aria-selected","false"),e(d).toHaveAttribute("aria-selected","false")}),await t("Click on the chip to select it",async()=>{await r.click(l),e(n.onValueChange).toHaveBeenCalledWith(["vocabulary","speaking"]),e(o).toHaveAttribute("aria-selected","true"),e(l).toHaveAttribute("aria-selected","true"),e(c).toHaveAttribute("aria-selected","false"),e(d).toHaveAttribute("aria-selected","false")}),await t("Click on the chip to deselect it",async()=>{await r.click(o),e(n.onValueChange).toHaveBeenCalledWith(["speaking"]),e(o).toHaveAttribute("aria-selected","false"),e(l).toHaveAttribute("aria-selected","true"),e(c).toHaveAttribute("aria-selected","false"),e(d).toHaveAttribute("aria-selected","false")}),await t("Change the value externally",async()=>{Xe(),L(["vocabulary","reading"]),await T(()=>{e(n.onValueChange).not.toHaveBeenCalled(),e(o).toHaveAttribute("aria-selected","true"),e(l).toHaveAttribute("aria-selected","false"),e(c).toHaveAttribute("aria-selected","false"),e(d).toHaveAttribute("aria-selected","true")})})}},m={args:{items:[{value:"vocabulary",label:"Vocabulary"},{value:"speaking",label:"Speaking",disabled:!0},{value:"listening",label:"Listening",disabled:!0},{value:"reading",label:"Reading"}]},play:async({canvasElement:i,step:t,args:n})=>{const s=u(i),o=s.getByRole("option",{name:"Speaking"}),l=s.getByRole("option",{name:"Vocabulary"});await t("Disabled chip must have disabled attribute",async()=>{e(o).toBeDisabled()}),await t("Disabled chip must not be selectable",async()=>{await r.click(o),e(n.onValueChange).not.toHaveBeenCalled(),e(l).toHaveAttribute("aria-selected","true")})}},b={args:{"aria-label":"Select availabilities",defaultValue:["morning"],items:[{value:"morning",label:"Morning",icon:a.jsx(V,{})},{value:"afternoon",label:"Afternoon",icon:a.jsx(Je,{})},{value:"evening",label:"Evening",icon:a.jsx(Qe,{})}]},play:async({canvasElement:i,step:t})=>{const s=u(i).getByRole("option",{name:"Morning"}),o=u(s).getByTestId("chip-icon");await t("Chip should render an icon when `icon` prop is passed",async()=>{e(o).toBeVisible()})}},w={args:{"aria-label":"Select languages to learn",defaultValue:["english"],items:[{value:"english",label:"English",counter:1247},{value:"spanish",label:"Spanish",counter:892},{value:"french",label:"French",counter:534},{value:"german",label:"German",counter:421},{value:"italian",label:"Italian",counter:287},{value:"portuguese",label:"Portuguese",counter:156}]},play:async({canvasElement:i,step:t})=>{const s=u(i).getByRole("option",{name:/^English/}),o=u(s).getByTestId("chip-counter");await t("Chip should render a counter when `counter` prop is passed",async()=>{e(o).toBeVisible(),e(o).toHaveTextContent("1247")})}},f={args:{"aria-label":"Select countries",defaultValue:["ua"],items:[{value:"ua",label:"Ukraine",countryFlagCode:"ua"},{value:"gb",label:"United Kingdom",countryFlagCode:"gb"},{value:"it",label:"Italy",countryFlagCode:"it"},{value:"es",label:"Spain",countryFlagCode:"es"},{value:"au",label:"Australia",countryFlagCode:"au"},{value:"br",label:"Brazil",countryFlagCode:"br"},{value:"eg",label:"Egypt",countryFlagCode:"eg"}]},play:async({canvasElement:i,step:t})=>{const s=u(i).getByRole("option",{name:"Ukraine"}),o=u(s).getByTestId("chip-country-flag");await t("Chip should render a flag when `flagCountryCode` prop is passed",async()=>{e(o).toBeVisible()})}},k={args:{"aria-label":"Fancy chips",items:[{value:"counter+icon",label:"Icon + Counter",icon:a.jsx(V,{}),counter:1247},{value:"counter+flag",label:"Flag + Counter",countryFlagCode:"ua",counter:1247},{value:"icon+flag",label:"Icon + Flag",icon:a.jsx(V,{}),countryFlagCode:"ua"}]},play:async({canvasElement:i})=>{const t=u(i),n=u(t.getByRole("option",{name:"Icon + Flag"}));e(n.getByTestId("chip-icon")).toBeVisible(),e(n.queryByTestId("chip-country-flag")).not.toBeInTheDocument()}},x=["2025-08-15T10:00Z","2025-08-16T12:00Z","2025-08-17T14:00Z"],C={args:{orientation:"vertical","aria-label":"Select time slots",defaultValue:x,items:x.map(i=>({value:i,label:a.jsx(ia,{weekday:"short",day:"numeric",month:"short",hour:"2-digit",minute:"2-digit",value:i}),dataset:{testid:i}}))},decorators:[i=>a.jsx("div",{style:{width:300,margin:"0 auto"},children:a.jsx(i,{})})],play:async({canvasElement:i,step:t})=>{const n=u(i),s=n.getByRole("listbox",{name:"Select time slots"}),o=n.getByTestId(x[0]),l=n.getByTestId(x[1]),c=n.getByTestId(x[2]);await t('Vertical chips should have `aria-orientation="vertical"`',async()=>{e(s).toHaveAttribute("aria-orientation","vertical")}),await t("Focus first chip",async()=>{o.focus()}),await t("Arrow down should focus second chip",async()=>{await r.keyboard("{ArrowDown}"),e(l).toHaveFocus()}),await t("Arrow down should focus third chip",async()=>{await r.keyboard("{ArrowDown}"),e(c).toHaveFocus()}),await t("Arrow down should focus first chip",async()=>{await r.keyboard("{ArrowDown}"),e(o).toHaveFocus()}),await t("Arrow up should focus third chip",async()=>{await r.keyboard("{ArrowUp}"),e(c).toHaveFocus()})}},S={render:i=>a.jsxs(g,{gap:"12",children:[a.jsx(h,{...i}),a.jsx(ra,{variant:"tertiary",size:"small",onClick:()=>alert("Show all"),children:"Show all"})]})},ea=[{value:"vocabulary",label:"Vocabulary"},{value:"speaking",label:"Speaking"},{value:"listening",label:"Listening"},{value:"reading",label:"Reading"},{value:"writing",label:"Writing"},{value:"grammar",label:"Grammar"}],ua=[{value:"monday",label:"Monday"},{value:"tuesday",label:"Tuesday"},{value:"wednesday",label:"Wednesday"},{value:"thursday",label:"Thursday"},{value:"friday",label:"Friday"},{value:"saturday",label:"Saturday"},{value:"sunday",label:"Sunday"}],da=[{value:"morning",label:"Morning (6-12)",icon:a.jsx(V,{})},{value:"afternoon",label:"Afternoon (12-18)",icon:a.jsx(Je,{})},{value:"evening",label:"Evening (18-0)",icon:a.jsx(Qe,{})},{value:"night",label:"Night (0-6)",icon:a.jsx(ta,{})}],I={render:function(t){return a.jsxs(g,{direction:"column",alignItems:"stretch",gap:"64",children:[a.jsxs(g,{direction:"column",alignItems:"stretch",gap:"16",children:[a.jsx(E,{variant:"large-semibold",children:"What skills do you want to focus on?"}),a.jsx(h,{"aria-label":"Selected skills",items:ea})]}),a.jsxs(g,{direction:"column",alignItems:"stretch",gap:"16",children:[a.jsx(E,{variant:"large-semibold",children:"Which days work best for you?"}),a.jsx(h,{"aria-label":"Selected days of the week",items:ua})]}),a.jsxs(g,{direction:"column",alignItems:"stretch",gap:"16",children:[a.jsx(E,{variant:"large-semibold",children:"What times of day work for you?"}),a.jsx(h,{"aria-label":"Selected times of day",items:da})]})]})},play:async({canvasElement:i,step:t})=>{const n=u(i),s=u(n.getByRole("listbox",{name:"Selected skills"})),o=u(n.getByRole("listbox",{name:"Selected days of the week"})),l=s.getByRole("option",{name:"Vocabulary"}),c=s.getByRole("option",{name:"Speaking"}),d=s.getByRole("option",{name:"Grammar"}),aa=o.getByRole("option",{name:"Monday"});await t("Tab once to enter the component",async()=>{await r.tab(),e(l).toHaveFocus()}),await t("Next tab should focus second chip",async()=>{await r.tab(),e(aa).toHaveFocus()}),await t("Shift+Tab should focus first chips group again",async()=>{await r.tab({shift:!0}),e(l).toHaveFocus()}),await t("Right arrow should focus next chip in the group",async()=>{await r.keyboard("{ArrowRight}"),e(c).toHaveFocus()}),await t("Left arrow should focus previous chip in the group",async()=>{await r.keyboard("{ArrowLeft}"),e(l).toHaveFocus()}),await t("Left arrow should focus last chip if first chip is focused",async()=>{await r.keyboard("{ArrowLeft}"),e(d).toHaveFocus()}),await t("Right arrow should focus first chip if last chip is focused",async()=>{await r.keyboard("{ArrowRight}"),e(l).toHaveFocus()}),await t("Focus last chip",async()=>{await r.keyboard("{ArrowLeft}")}),await t("Tab to the next group",async()=>{await r.tab()}),await t("Shift+Tab to return to the first group, the last focused chip should be focused",async()=>{await r.tab({shift:!0}),e(d).toHaveFocus()})}},pa=oa.ul`
|
|
1
|
+
import{j as a,r as Ye}from"./iframe-rPxPheSO.js";import{M as p,a as h}from"./MultiSelectChips-DidzFDbd.js";import{F as V,a as Je,b as Qe,c as ta}from"./TokyoUIAvailability7LateNight-Bu_wDbHq.js";import{F as na}from"./TokyoUIEmojiFrowning-DlNteo5p.js";import{F as ia}from"./index-Ch8cwrP-.js";import{L as g}from"./LayoutFlex-8VEpbYm2.js";import{T as E}from"./Text-DadiF3bg.js";import{L as sa}from"./Link-A5JmQWbD.js";import{d as oa}from"./styled-components.browser.esm-Do9--Umw.js";import{H as la}from"./Heading-BFtiYfNT.js";import{T as B}from"./Tooltip-RkXcTs0t.js";import{B as ra}from"./Button-DGeBRRiu.js";import"./preload-helper-Dp1pzeXC.js";import"./useControllableState-BGQSGH6e.js";import"./useStableCallback-CM7WIg73.js";import"./createRequiredContext-Co5wTaFA.js";import"./Icon-C5UQdb5e.js";import"./text-accent-DectBi3u.js";import"./filterAttributesPassedByRadixUIAtRuntime-B7QTVwVw.js";import"./render-icon-CYz0RSbb.js";import"./componentNames-Dts5uwdK.js";import"./CountryFlag-CIdWr2XO.js";import"./useMergeRefs-B0tLxB64.js";import"./layout-relative.module-D5jJ_Wjz.js";import"./text-centered-nlNU1AO2.js";import"./useHostname-CSCtqnDM.js";import"./emotion-unitless.esm-BZwEwAnk.js";import"./ButtonBase-DNBAX75l.js";import"./Spinner-DMKptX0-.js";import"./useMergeRefs-D3-2wqPW.js";import"./index-CC6DAVyL.js";const{expect:e,within:u,fn:ca,userEvent:r,resetAllMocks:Xe,waitFor:T}=__STORYBOOK_MODULE_TEST__,Pa={title:"components/Chips/MultiSelectChips",component:h,subcomponents:{MultiSelectChipsItem:p},parameters:{layout:"padded"},args:{"aria-label":"Select skills",defaultValue:["vocabulary"],onValueChange:ca(),items:[{value:"vocabulary",label:"Vocabulary"},{value:"speaking",label:"Speaking"},{value:"listening",label:"Listening"},{value:"reading",label:"Reading"}]},beforeEach:()=>{Xe()}},v={play:async({canvasElement:i,step:t,args:n})=>{const s=u(i),o=s.getByRole("option",{name:"Vocabulary"}),l=s.getByRole("option",{name:"Speaking"}),c=s.getByRole("option",{name:"Listening"}),d=s.getByRole("option",{name:"Reading"});await t("Render chips with default value",async()=>{e(o).toHaveAttribute("aria-selected","true"),e(l).toHaveAttribute("aria-selected","false"),e(c).toHaveAttribute("aria-selected","false"),e(d).toHaveAttribute("aria-selected","false")}),await t("Click on the chip to select it",async()=>{await r.click(l),e(n.onValueChange).toHaveBeenCalledWith(["vocabulary","speaking"]),e(o).toHaveAttribute("aria-selected","true"),e(l).toHaveAttribute("aria-selected","true"),e(c).toHaveAttribute("aria-selected","false"),e(d).toHaveAttribute("aria-selected","false")}),await t("Click on the chip to deselect it",async()=>{await r.click(o),e(n.onValueChange).toHaveBeenCalledWith(["speaking"]),e(o).toHaveAttribute("aria-selected","false"),e(l).toHaveAttribute("aria-selected","true"),e(c).toHaveAttribute("aria-selected","false"),e(d).toHaveAttribute("aria-selected","false")})}};let L;const y={render:function({defaultValue:t,...n}){const[s,o]=Ye.useState(t);L=o;const l=c=>{var d;o(c),(d=n.onValueChange)==null||d.call(n,c)};return a.jsx(h,{...n,value:s,onValueChange:l})},play:async({canvasElement:i,step:t,args:n})=>{const s=u(i),o=s.getByRole("option",{name:"Vocabulary"}),l=s.getByRole("option",{name:"Speaking"}),c=s.getByRole("option",{name:"Listening"}),d=s.getByRole("option",{name:"Reading"});await t("Render chips with default value",async()=>{e(o).toHaveAttribute("aria-selected","true"),e(l).toHaveAttribute("aria-selected","false"),e(c).toHaveAttribute("aria-selected","false"),e(d).toHaveAttribute("aria-selected","false")}),await t("Click on the chip to select it",async()=>{await r.click(l),e(n.onValueChange).toHaveBeenCalledWith(["vocabulary","speaking"]),e(o).toHaveAttribute("aria-selected","true"),e(l).toHaveAttribute("aria-selected","true"),e(c).toHaveAttribute("aria-selected","false"),e(d).toHaveAttribute("aria-selected","false")}),await t("Click on the chip to deselect it",async()=>{await r.click(o),e(n.onValueChange).toHaveBeenCalledWith(["speaking"]),e(o).toHaveAttribute("aria-selected","false"),e(l).toHaveAttribute("aria-selected","true"),e(c).toHaveAttribute("aria-selected","false"),e(d).toHaveAttribute("aria-selected","false")}),await t("Change the value externally",async()=>{Xe(),L(["vocabulary","reading"]),await T(()=>{e(n.onValueChange).not.toHaveBeenCalled(),e(o).toHaveAttribute("aria-selected","true"),e(l).toHaveAttribute("aria-selected","false"),e(c).toHaveAttribute("aria-selected","false"),e(d).toHaveAttribute("aria-selected","true")})})}},m={args:{items:[{value:"vocabulary",label:"Vocabulary"},{value:"speaking",label:"Speaking",disabled:!0},{value:"listening",label:"Listening",disabled:!0},{value:"reading",label:"Reading"}]},play:async({canvasElement:i,step:t,args:n})=>{const s=u(i),o=s.getByRole("option",{name:"Speaking"}),l=s.getByRole("option",{name:"Vocabulary"});await t("Disabled chip must have disabled attribute",async()=>{e(o).toBeDisabled()}),await t("Disabled chip must not be selectable",async()=>{await r.click(o),e(n.onValueChange).not.toHaveBeenCalled(),e(l).toHaveAttribute("aria-selected","true")})}},b={args:{"aria-label":"Select availabilities",defaultValue:["morning"],items:[{value:"morning",label:"Morning",icon:a.jsx(V,{})},{value:"afternoon",label:"Afternoon",icon:a.jsx(Je,{})},{value:"evening",label:"Evening",icon:a.jsx(Qe,{})}]},play:async({canvasElement:i,step:t})=>{const s=u(i).getByRole("option",{name:"Morning"}),o=u(s).getByTestId("chip-icon");await t("Chip should render an icon when `icon` prop is passed",async()=>{e(o).toBeVisible()})}},w={args:{"aria-label":"Select languages to learn",defaultValue:["english"],items:[{value:"english",label:"English",counter:1247},{value:"spanish",label:"Spanish",counter:892},{value:"french",label:"French",counter:534},{value:"german",label:"German",counter:421},{value:"italian",label:"Italian",counter:287},{value:"portuguese",label:"Portuguese",counter:156}]},play:async({canvasElement:i,step:t})=>{const s=u(i).getByRole("option",{name:/^English/}),o=u(s).getByTestId("chip-counter");await t("Chip should render a counter when `counter` prop is passed",async()=>{e(o).toBeVisible(),e(o).toHaveTextContent("1247")})}},f={args:{"aria-label":"Select countries",defaultValue:["ua"],items:[{value:"ua",label:"Ukraine",countryFlagCode:"ua"},{value:"gb",label:"United Kingdom",countryFlagCode:"gb"},{value:"it",label:"Italy",countryFlagCode:"it"},{value:"es",label:"Spain",countryFlagCode:"es"},{value:"au",label:"Australia",countryFlagCode:"au"},{value:"br",label:"Brazil",countryFlagCode:"br"},{value:"eg",label:"Egypt",countryFlagCode:"eg"}]},play:async({canvasElement:i,step:t})=>{const s=u(i).getByRole("option",{name:"Ukraine"}),o=u(s).getByTestId("chip-country-flag");await t("Chip should render a flag when `flagCountryCode` prop is passed",async()=>{e(o).toBeVisible()})}},k={args:{"aria-label":"Fancy chips",items:[{value:"counter+icon",label:"Icon + Counter",icon:a.jsx(V,{}),counter:1247},{value:"counter+flag",label:"Flag + Counter",countryFlagCode:"ua",counter:1247},{value:"icon+flag",label:"Icon + Flag",icon:a.jsx(V,{}),countryFlagCode:"ua"}]},play:async({canvasElement:i})=>{const t=u(i),n=u(t.getByRole("option",{name:"Icon + Flag"}));e(n.getByTestId("chip-icon")).toBeVisible(),e(n.queryByTestId("chip-country-flag")).not.toBeInTheDocument()}},x=["2025-08-15T10:00Z","2025-08-16T12:00Z","2025-08-17T14:00Z"],C={args:{orientation:"vertical","aria-label":"Select time slots",defaultValue:x,items:x.map(i=>({value:i,label:a.jsx(ia,{weekday:"short",day:"numeric",month:"short",hour:"2-digit",minute:"2-digit",value:i}),dataset:{testid:i}}))},decorators:[i=>a.jsx("div",{style:{width:300,margin:"0 auto"},children:a.jsx(i,{})})],play:async({canvasElement:i,step:t})=>{const n=u(i),s=n.getByRole("listbox",{name:"Select time slots"}),o=n.getByTestId(x[0]),l=n.getByTestId(x[1]),c=n.getByTestId(x[2]);await t('Vertical chips should have `aria-orientation="vertical"`',async()=>{e(s).toHaveAttribute("aria-orientation","vertical")}),await t("Focus first chip",async()=>{o.focus()}),await t("Arrow down should focus second chip",async()=>{await r.keyboard("{ArrowDown}"),e(l).toHaveFocus()}),await t("Arrow down should focus third chip",async()=>{await r.keyboard("{ArrowDown}"),e(c).toHaveFocus()}),await t("Arrow down should focus first chip",async()=>{await r.keyboard("{ArrowDown}"),e(o).toHaveFocus()}),await t("Arrow up should focus third chip",async()=>{await r.keyboard("{ArrowUp}"),e(c).toHaveFocus()})}},S={render:i=>a.jsxs(g,{gap:"12",children:[a.jsx(h,{...i}),a.jsx(ra,{variant:"tertiary",size:"small",onClick:()=>alert("Show all"),children:"Show all"})]})},ea=[{value:"vocabulary",label:"Vocabulary"},{value:"speaking",label:"Speaking"},{value:"listening",label:"Listening"},{value:"reading",label:"Reading"},{value:"writing",label:"Writing"},{value:"grammar",label:"Grammar"}],ua=[{value:"monday",label:"Monday"},{value:"tuesday",label:"Tuesday"},{value:"wednesday",label:"Wednesday"},{value:"thursday",label:"Thursday"},{value:"friday",label:"Friday"},{value:"saturday",label:"Saturday"},{value:"sunday",label:"Sunday"}],da=[{value:"morning",label:"Morning (6-12)",icon:a.jsx(V,{})},{value:"afternoon",label:"Afternoon (12-18)",icon:a.jsx(Je,{})},{value:"evening",label:"Evening (18-0)",icon:a.jsx(Qe,{})},{value:"night",label:"Night (0-6)",icon:a.jsx(ta,{})}],I={render:function(t){return a.jsxs(g,{direction:"column",alignItems:"stretch",gap:"64",children:[a.jsxs(g,{direction:"column",alignItems:"stretch",gap:"16",children:[a.jsx(E,{variant:"large-semibold",children:"What skills do you want to focus on?"}),a.jsx(h,{"aria-label":"Selected skills",items:ea})]}),a.jsxs(g,{direction:"column",alignItems:"stretch",gap:"16",children:[a.jsx(E,{variant:"large-semibold",children:"Which days work best for you?"}),a.jsx(h,{"aria-label":"Selected days of the week",items:ua})]}),a.jsxs(g,{direction:"column",alignItems:"stretch",gap:"16",children:[a.jsx(E,{variant:"large-semibold",children:"What times of day work for you?"}),a.jsx(h,{"aria-label":"Selected times of day",items:da})]})]})},play:async({canvasElement:i,step:t})=>{const n=u(i),s=u(n.getByRole("listbox",{name:"Selected skills"})),o=u(n.getByRole("listbox",{name:"Selected days of the week"})),l=s.getByRole("option",{name:"Vocabulary"}),c=s.getByRole("option",{name:"Speaking"}),d=s.getByRole("option",{name:"Grammar"}),aa=o.getByRole("option",{name:"Monday"});await t("Tab once to enter the component",async()=>{await r.tab(),e(l).toHaveFocus()}),await t("Next tab should focus second chip",async()=>{await r.tab(),e(aa).toHaveFocus()}),await t("Shift+Tab should focus first chips group again",async()=>{await r.tab({shift:!0}),e(l).toHaveFocus()}),await t("Right arrow should focus next chip in the group",async()=>{await r.keyboard("{ArrowRight}"),e(c).toHaveFocus()}),await t("Left arrow should focus previous chip in the group",async()=>{await r.keyboard("{ArrowLeft}"),e(l).toHaveFocus()}),await t("Left arrow should focus last chip if first chip is focused",async()=>{await r.keyboard("{ArrowLeft}"),e(d).toHaveFocus()}),await t("Right arrow should focus first chip if last chip is focused",async()=>{await r.keyboard("{ArrowRight}"),e(l).toHaveFocus()}),await t("Focus last chip",async()=>{await r.keyboard("{ArrowLeft}")}),await t("Tab to the next group",async()=>{await r.tab()}),await t("Shift+Tab to return to the first group, the last focused chip should be focused",async()=>{await r.tab({shift:!0}),e(d).toHaveFocus()})}},pa=oa.ul`
|
|
2
2
|
all: unset;
|
|
3
3
|
list-style: none;
|
|
4
4
|
display: flex;
|