@preply/ds-docs 11.2.0 → 11.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.storybook/main.ts +1 -3
- package/dist/assets/{00.LayoutFlex.stories-CZeeSnID.js → 00.LayoutFlex.stories-oDygdYoI.js} +1 -1
- package/dist/assets/{00.applications-D-6PcdWy.js → 00.applications-CYsULPew.js} +1 -1
- package/dist/assets/{00.favicons.guide-BOqZ5Z1x.js → 00.favicons.guide-CH6Gi2mg.js} +1 -1
- package/dist/assets/{00.token-explorer-Bk0wBfni.js → 00.token-explorer-C_Go53CA.js} +1 -1
- package/dist/assets/{00.using-responsive-props-BsEiJlqE.js → 00.using-responsive-props-JIrga6ab.js} +1 -1
- package/dist/assets/{01.semantic-tokens-DElwA412.js → 01.semantic-tokens-3BaDr39t.js} +1 -1
- package/dist/assets/{01.using-shorthand-props-Bg-Oi5_v.js → 01.using-shorthand-props-BXu4Nck4.js} +1 -1
- package/dist/assets/10.Combinations.stories-SaJOx9D-.js +128 -0
- package/dist/assets/{10.fonts.guide-CHasKWis.js → 10.fonts.guide-DkOyZCNQ.js} +1 -1
- package/dist/assets/{10.ssr-DpNJW1W0.js → 10.ssr-D-0bM4ee.js} +1 -1
- package/dist/assets/{11.fonts.explorer-CTqkQ8Jk.js → 11.fonts.explorer-D6KIcb2q.js} +1 -1
- package/dist/assets/{11.ssr.app-router-FQQ4sEjM.js → 11.ssr.app-router-DWtYqFlx.js} +1 -1
- package/dist/assets/{20.libraries-BTCk2DJX.js → 20.libraries-BlqbfWjy.js} +1 -1
- package/dist/assets/{2025-q4-ds-cleanup-BRN8Tdfv.js → 2025-q4-ds-cleanup-BUrvo7oQ.js} +1 -1
- package/dist/assets/30.icons.explorer-BKujlrNJ.js +72 -0
- package/dist/assets/{30.storybook-DKSi7vdi.js → 30.storybook-CNvYWdc7.js} +1 -1
- package/dist/assets/{40.illustrations.explorer-CGBqfl2k.js → 40.illustrations.explorer-CAYAdo7r.js} +1 -1
- package/dist/assets/{60.components-6MJdvrRn.js → 60.components-odtQau37.js} +1 -1
- package/dist/assets/{90.advanced-B9pO5FKL.js → 90.advanced-nCsVunZT.js} +1 -1
- package/dist/assets/Accordion-D95NvT0Z.css +1 -0
- package/dist/assets/Accordion-grHCnfbZ.js +21 -0
- package/dist/assets/{Accordion.stories-B7zpGc3N.js → Accordion.stories-CTbvRFnt.js} +10 -3
- package/dist/assets/{Accordion.tests.stories-TuJItmwi.js → Accordion.tests.stories-B6g6Kr6m.js} +17 -10
- package/dist/assets/{AlertBanner.primitives.stories-C0FNaxJR.js → AlertBanner.primitives.stories-D4-bo1JS.js} +1 -1
- package/dist/assets/{AlertBanner.stories-BeZGLz-f.js → AlertBanner.stories-BrNGGvfj.js} +1 -1
- package/dist/assets/AlertBannerAction-DvbUWtiW.js +127 -0
- package/dist/assets/{AlertDialog-Dk5PtknG.js → AlertDialog-Da2sPT1D.js} +1 -1
- package/dist/assets/{AlertDialog.stories-CwxQZyTF.js → AlertDialog.stories-D7ALUucQ.js} +1 -1
- package/dist/assets/{Avatar.stories-Dp9pDU6q.js → Avatar.stories-BICCl1VI.js} +1 -1
- package/dist/assets/{AvatarWithStatus-Cfv2-J8U.js → AvatarWithStatus-D02yNzQm.js} +3 -3
- package/dist/assets/{AvatarWithStatus.stories-9MJ13xVu.js → AvatarWithStatus.stories-CxBQAt3x.js} +1 -1
- package/dist/assets/{Badge-BPd-gr8r.js → Badge-Ba7-qf6a.js} +2 -2
- package/dist/assets/{Badge.stories-DIgYXyBb.js → Badge.stories-Dzxsvo2o.js} +1 -1
- package/dist/assets/{Box-G2_C7Jeq.js → Box--iQMFWAl.js} +2 -2
- package/dist/assets/{Box.stories-_HS5gmLH.js → Box.stories-D0JGgXyX.js} +1 -1
- package/dist/assets/{BubbleCounter-DNO8aNBu.js → BubbleCounter-C7jrl0BR.js} +1 -1
- package/dist/assets/{BubbleCounter.stories-CyzNA0Bp.js → BubbleCounter.stories-C28ZYRgB.js} +1 -1
- package/dist/assets/Button-DagS5hxP.js +19 -0
- package/dist/assets/{Button.stories-5MZ_eXfn.js → Button.stories-CTvHtk-S.js} +19 -7
- package/dist/assets/{ButtonBase-C22oeCEB.js → ButtonBase-CMR6iWFG.js} +3 -2
- package/dist/assets/{CalloutBanner.stories-RwI1z0sm.js → CalloutBanner.stories-BbHi-g9a.js} +1 -1
- package/dist/assets/CalloutBannerText-DP2O2LqI.js +28 -0
- package/dist/assets/Checkbox-BV4Be-fH.js +7 -0
- package/dist/assets/{Checkbox-B_qY1TUo.css → Checkbox-DIfWwwEC.css} +1 -1
- package/dist/assets/{Checkbox.stories-CQsCp6Jy.js → Checkbox.stories-BWfWlkM3.js} +8 -8
- package/dist/assets/{Checkbox.tests.stories-05uWFXz_.js → Checkbox.tests.stories-iLD_cClo.js} +1 -1
- package/dist/assets/{Chips.stories-DSuVc2t5.js → Chips.stories-BikTAQab.js} +1 -1
- package/dist/assets/{Color-6BZIO3FS-CMeY9l9b.js → Color-6BZIO3FS-BqH2EFjf.js} +1 -1
- package/dist/assets/{ComposingDialogs.stories-DM7_H9s_.js → ComposingDialogs.stories-ei_TWBhw.js} +1 -1
- package/dist/assets/{ComposingPopovers.stories-BfWmolPD.js → ComposingPopovers.stories-DEmACL7_.js} +1 -1
- package/dist/assets/CountryFlag-DXTijnBa.js +3 -0
- package/dist/assets/{CountryFlag.stories-BbEBSjOp.js → CountryFlag.stories-r9szKDdv.js} +1 -1
- package/dist/assets/{CountryFlag.test.stories-BEKGdJSA.js → CountryFlag.test.stories-DS8v3a4U.js} +1 -1
- package/dist/assets/{Dialog-CGhOTWSt.js → Dialog-a74MpEoC.js} +2 -2
- package/dist/assets/{Dialog.primitives.stories-B-OAqhJT.js → Dialog.primitives.stories-CkKykon1.js} +1 -1
- package/dist/assets/{Dialog.stories-B6xtR1zI.js → Dialog.stories-CoTCFYpz.js} +18 -5
- package/dist/assets/{Dialog.test.stories-9Ct6h0zZ.js → Dialog.test.stories-aF_5M6-z.js} +1 -1
- package/dist/assets/DialogActions-BsCqS7W7.js +9 -0
- package/dist/assets/DialogCloseButton-Df1XDsMW.js +12 -0
- package/dist/assets/DismissibleChips-QUmF1DlO.js +1 -0
- package/dist/assets/{DismissibleChips.stories-vx1F9ELx.js → DismissibleChips.stories-BbLkTYXP.js} +17 -6
- package/dist/assets/{Divider.stories-CMbQ5L3q.js → Divider.stories-r49aSANX.js} +1 -1
- package/dist/assets/{DocsRenderer-LL677BLK-D6wCD5Bw.js → DocsRenderer-LL677BLK-D55zMWRu.js} +1 -1
- package/dist/assets/DropdownMenu-CEFQwkft.js +142 -0
- package/dist/assets/{DropdownMenu.stories-DC585dGe.js → DropdownMenu.stories-Bwd2yU64.js} +1 -1
- package/dist/assets/{FieldButton-DjbyU7Ud.js → FieldButton-SkKd22gq.js} +1 -1
- package/dist/assets/{FieldButton.stories-mgMXy6g8.js → FieldButton.stories-CeUnTuE8.js} +1 -1
- package/dist/assets/{FormControl-N0zmQNS2.js → FormControl-C_Mh5dfi.js} +1 -1
- package/dist/assets/{FormControl-DX3yRMc2.css → FormControl-C_byGyqD.css} +1 -1
- package/dist/assets/{FormControl.stories-B8Ne0MLq.js → FormControl.stories-Bs2ISm2I.js} +4 -4
- package/dist/assets/{Heading-Bmekm9VQ.js → Heading-Xmy4HTvU.js} +1 -1
- package/dist/assets/{Heading.stories-Bkr_umIZ.js → Heading.stories-6Dgn_J8U.js} +1 -1
- package/dist/assets/{Icon-DwVTLcDP.js → Icon-C-oDFSRH.js} +1 -1
- package/dist/assets/{Icon-RSC-Dn9e0iAh.js → Icon-RSC-Ch-QtBFc.js} +1 -1
- package/dist/assets/{Icon.stories-D9JEL0Hx.js → Icon.stories-DA2UaTGv.js} +1 -1
- package/dist/assets/IconButton-Qo4r7KAR.js +9 -0
- package/dist/assets/{IconTile.stories-B5GBHpUh.js → IconTile.stories-C4MpGbZs.js} +1 -1
- package/dist/assets/Input-D6_jI5Uh.js +3 -0
- package/dist/assets/{IntegrationWithReactHookForm.stories-CCDlaJxi.js → IntegrationWithReactHookForm.stories-6kdmvmQr.js} +1 -1
- package/dist/assets/IntlFormattedAggregatedDateTime-Ai802ecy.js +1 -0
- package/dist/assets/IntlFormattedCurrency-DUrW8wq9.js +1 -0
- package/dist/assets/{IntlFormattedCurrency.stories-BuMkiJd6.js → IntlFormattedCurrency.stories-DFdfoYCv.js} +1 -1
- package/dist/assets/{IntlFormattedDateTime.stories-DMN58d8q.js → IntlFormattedDateTime.stories-CHRJCN68.js} +1 -1
- package/dist/assets/IntlFormattedTime-BOUEN1XF.js +2 -0
- package/dist/assets/{LayoutFlex-CEr_Bd5T.js → LayoutFlex-CpktYRVX.js} +1 -1
- package/dist/assets/{LayoutFlexItem-DCUGpEDU.js → LayoutFlexItem-Dvv_cK8l.js} +1 -1
- package/dist/assets/{LayoutGrid-DCLStsDr.js → LayoutGrid-DvHLpq-e.js} +1 -1
- package/dist/assets/{LayoutGrid.stories-DaY7nZ2z.js → LayoutGrid.stories-DCTuVuVw.js} +1 -1
- package/dist/assets/{LayoutGridItem-BRLJDeYd.js → LayoutGridItem-n0bW9yG3.js} +1 -1
- package/dist/assets/Link-Cu3kBnvE.css +1 -0
- package/dist/assets/Link-DLL8OonN.js +5 -0
- package/dist/assets/{Link.stories-kXGLhYoc.js → Link.stories-D_FvQngK.js} +43 -15
- package/dist/assets/{Loader-qd0Q5Uz_.js → Loader-raMoSfHx.js} +1 -1
- package/dist/assets/{Loader.stories-m379tb7j.js → Loader.stories-7tG1NS7B.js} +1 -1
- package/dist/assets/MultiSelectChips-DSeV2AIy.js +2 -0
- package/dist/assets/{MultiSelectChips.stories-DfyHnHHY.js → MultiSelectChips.stories-CKax5hXL.js} +27 -8
- package/dist/assets/NativeSelectField.stories-D3-RNzbp.js +249 -0
- package/dist/assets/NumberField-CNBfsJCY.js +6 -0
- package/dist/assets/{NumberField.stories-BUxd-7gq.js → NumberField.stories-CHVQ_b9k.js} +1 -1
- package/dist/assets/{ObserveIntersection-ClJrn-sk.js → ObserveIntersection-CR4IhuYz.js} +1 -1
- package/dist/assets/{ObserveIntersection.stories-CisY8E_w.js → ObserveIntersection.stories-D1FkxcMY.js} +1 -1
- package/dist/assets/{OnboardingTooltip-DkrwDHv3.js → OnboardingTooltip-BNwId6Jx.js} +3 -3
- package/dist/assets/{OnboardingTooltip.stories-DDVYxEt5.js → OnboardingTooltip.stories-npBmAhu4.js} +1 -1
- package/dist/assets/{OnboardingTooltip.tests.stories-BVUaM-wO.js → OnboardingTooltip.tests.stories-oxLHDwgd.js} +1 -1
- package/dist/assets/{OnboardingTour-CGa-836f.js → OnboardingTour-RWyquFZd.js} +1 -1
- package/dist/assets/{OnboardingTour.stories-yLGZ0dlp.js → OnboardingTour.stories-CsdqirC3.js} +1 -1
- package/dist/assets/{OnboardingTour.tests.stories-DxxzBEuR.js → OnboardingTour.tests.stories-DkBfD2kH.js} +1 -1
- package/dist/assets/PasswordField-B2PnHIH1.js +6 -0
- package/dist/assets/{PasswordField.stories-CBcIKnYx.js → PasswordField.stories-CcnDrvIB.js} +1 -1
- package/dist/assets/{PreplyLogo-BzNZ8wpS.js → PreplyLogo-EsNyTV4m.js} +2 -2
- package/dist/assets/{PreplyLogo.stories-8kPZdvbV.js → PreplyLogo.stories-Bm6-o3h8.js} +10 -2
- package/dist/assets/{ProgressBar.stories-BD3OKmoy.js → ProgressBar.stories-DtKBuyeU.js} +1 -1
- package/dist/assets/{ProgressSteps.stories-Bb7wnDFB.js → ProgressSteps.stories-CCDOfqG3.js} +1 -1
- package/dist/assets/{PromoDialog-Bx4wrVnI.js → PromoDialog-CdaXJHkH.js} +1 -1
- package/dist/assets/{RangeSlider-gznGiBxe.js → RangeSlider-Eo2dw_WW.js} +2 -2
- package/dist/assets/{RangeSlider.stories-Bj82Tme8.js → RangeSlider.stories-DAd-xGsP.js} +1 -1
- package/dist/assets/{Rating-CDQpKKfm.js → Rating-CAaFjEvZ.js} +1 -1
- package/dist/assets/{Rating.stories-440yo9nU.js → Rating.stories-8F2e8UDj.js} +1 -1
- package/dist/assets/{RatingInput-S42sTjma.js → RatingInput-BNKHainW.js} +2 -2
- package/dist/assets/{RatingInput.stories-BJ91kNqc.js → RatingInput.stories-0bwrwiHs.js} +20 -6
- package/dist/assets/{SelectField-C9fy_QpQ.css → SelectField-hr5YRqjg.css} +1 -1
- package/dist/assets/SelectField-qBhGOYdK.js +7 -0
- package/dist/assets/{SelectField.stories-CDA-sJca.js → SelectField.stories-Iz2YZ_Bs.js} +1 -1
- package/dist/assets/{ShowOnIntersection-BIc8Ks2O.js → ShowOnIntersection-BMR5nazA.js} +2 -2
- package/dist/assets/{ShowOnIntersection.stories-COT8LZNV.js → ShowOnIntersection.stories-CSSgxbfv.js} +1 -1
- package/dist/assets/SingleSelectChips-CFj7aR84.js +2 -0
- package/dist/assets/{SingleSelectChips.stories-D96yFWLY.js → SingleSelectChips.stories-CJ3zaafZ.js} +27 -8
- package/dist/assets/{Slider-cjoP1Fs6.js → Slider-Bxzp79ts.js} +2 -2
- package/dist/assets/{Slider.stories-zcp8qoUB.js → Slider.stories-C872-jZV.js} +1 -1
- package/dist/assets/{Spinner-DGdYqKak.js → Spinner-B-14zfoF.js} +1 -1
- package/dist/assets/{Stars-C54j1o92.js → Stars-BU2A8ygV.js} +1 -1
- package/dist/assets/{Stars-DRmASRCW.css → Stars-BqHYDCKx.css} +1 -1
- package/dist/assets/{Steps-B9DWysMC.js → Steps-CNOQ424q.js} +1 -1
- package/dist/assets/{Steps.stories-_6S1E6ef.js → Steps.stories-GHgF9EAg.js} +1 -1
- package/dist/assets/{Switch-CpclSBFz.js → Switch-DyKTsO1c.js} +1 -1
- package/dist/assets/{Switch.stories-BJ_jGNoM.js → Switch.stories-Dz3BYhCT.js} +1 -1
- package/dist/assets/{Text-B288uCKD.js → Text-Bj49UVGS.js} +1 -1
- package/dist/assets/{Text.stories-C8gR83BJ.js → Text.stories-DjSvZaCW.js} +1 -1
- package/dist/assets/TextField-B4F8szIu.js +6 -0
- package/dist/assets/{TextField.stories-kWIuQbVk.js → TextField.stories-ZNn7FBmC.js} +1 -1
- package/dist/assets/{TextHighlighted-D0RJV5JS.js → TextHighlighted-DPLkdIhv.js} +1 -1
- package/dist/assets/{TextHighlighted.stories-3U6i5jBR.js → TextHighlighted.stories-CEPLsjw4.js} +1 -1
- package/dist/assets/{TextInline-CKVi4m4-.js → TextInline-DVOlWF4R.js} +1 -1
- package/dist/assets/{TextInline.stories-BOaBqgcv.js → TextInline.stories-DVE70fjR.js} +1 -1
- package/dist/assets/TextareaField-G733luKs.js +6 -0
- package/dist/assets/{TextareaField.stories-d5yoJlrM.js → TextareaField.stories-Bqzxd-3e.js} +1 -1
- package/dist/assets/{Toast-IjHsw63R.js → Toast-CTlQ5Kx4.js} +1 -1
- package/dist/assets/{Toast.stories-1KDAj2_0.js → Toast.stories-DcPkMFFv.js} +1 -1
- package/dist/assets/{Tooltip-DGa6B2Md.js → Tooltip-DCzQmBi_.js} +2 -2
- package/dist/assets/Tooltip.stories-duE4AOVl.js +91 -0
- package/dist/assets/{Tooltip.tests.stories-CRehoOBJ.js → Tooltip.tests.stories-BsQ0I33Q.js} +1 -1
- package/dist/assets/{ai-integration-Cs38H8gd.js → ai-integration-CUld8nBB.js} +1 -1
- package/dist/assets/{breakpoints-CvEPhO_a.js → breakpoints-CDLTCEqT.js} +1 -1
- package/dist/assets/{breakpoints-CdgVhtfb.js → breakpoints-D3C_qtqX.js} +1 -1
- package/dist/assets/{breakpoints-QD8InWGt.js → breakpoints-DyVmNUf9.js} +1 -1
- package/dist/assets/{changelog-DF2IN9rv.js → changelog-CY7pOlLk.js} +27 -1
- package/dist/assets/{constants-DZ53IKPx.js → constants-Ce2rgJrk.js} +7 -7
- package/dist/assets/{createRequiredContext-rvejDfGq.css → createRequiredContext-Dp6R3H4g.css} +1 -1
- package/dist/assets/createRequiredContext-dSBuii-4.js +11 -0
- package/dist/assets/{dist-C0mWr2n-.css → dist-CKzY_Ph_.css} +1 -1
- package/dist/assets/{dist-Czl5bXKQ.js → dist-nghRgjCb.js} +1 -1
- package/dist/assets/{esm-CwnA5ofl.js → esm-BYGpffIq.js} +1 -1
- package/dist/assets/{fonts-explorer.stories-qeCxz5m7.js → fonts-explorer.stories-DpO5HxZ3.js} +1 -1
- package/dist/assets/{getTokenVar-B1giJATd.js → getTokenVar-DG0TGXYc.js} +1 -1
- package/dist/assets/{gradientBorders-Cm8R3nbh.js → gradientBorders-C2jt5p-C.js} +1 -1
- package/dist/assets/{hover-CvX1r1hU.js → hover-BCzGbPFV.js} +1 -1
- package/dist/assets/{hover-_bHqheK2.js → hover-D6mzisaD.js} +1 -1
- package/dist/assets/{hover-BDYlYavU.js → hover-DfbppVmU.js} +1 -1
- package/dist/assets/{iframe-Ddp8AsMq.js → iframe-kBDSpxRI.js} +196 -196
- package/dist/assets/{intro-BzGH4Z_0.js → intro-DQpyhoTG.js} +1 -1
- package/dist/assets/{layout-relative-DXMXPMmM.js → layout-relative-BOsTfett.js} +1 -1
- package/dist/assets/{migrating-from-less-C2EXSVYH.js → migrating-from-less-V1oeKlSf.js} +1 -1
- package/dist/assets/{styled-components.browser.esm-48-sXnz9.js → styled-components.browser.esm-BF2I7YPU.js} +1 -1
- package/dist/assets/{styled-components.browser.esm-qDVQO-j_.js → styled-components.browser.esm-C-pLV-H4.js} +1 -1
- package/dist/assets/{tokens-BCTbazjg.js → tokens-Bw3658eU.js} +1 -1
- package/dist/assets/{tokens-CuiP8hOR.js → tokens-D1eOr0iV.js} +1 -1
- package/dist/assets/{tokens-Be7KYpgq.js → tokens-Yf07x_wA.js} +1 -1
- package/dist/assets/{useControllableState-DQx2v_AU.js → useControllableState-B6dCOM10.js} +1 -1
- package/dist/assets/{usePortalElement-D7u5urLa.js → usePortalElement-CzAPYwMj.js} +1 -1
- package/dist/assets/{welcome-Cj1ZSZQe.js → welcome-CCU104Dv.js} +1 -1
- package/dist/assets/{zeroheight-d0Ov-C_Q.js → zeroheight-I34niHYD.js} +1 -1
- package/dist/iframe.html +1 -1
- package/dist/index.html +6 -2
- package/dist/index.json +1 -1
- package/dist/preview-stats.json +13652 -13601
- package/dist/project.json +1 -1
- package/dist/sb-addons/pseudo-states-6/manager-bundle.js +3 -0
- package/package.json +6 -5
- package/pages/30.guides/70.assets/components/IllustrationsList.tsx +1 -0
- package/pages/30.guides/70.assets/constants/icon-imports.ts +2 -0
- package/dist/assets/10.Combinations.stories-CJFPYaPG.js +0 -128
- package/dist/assets/30.icons.explorer-J8Rr_F6c.js +0 -72
- package/dist/assets/Accordion-BVDqu0gO.js +0 -25
- package/dist/assets/Accordion-bbEcwV1l.css +0 -1
- package/dist/assets/AlertBannerAction-Ul2Z9Ycf.js +0 -216
- package/dist/assets/Button-a57MCiDO.js +0 -18
- package/dist/assets/CalloutBannerText-DJ3eTwo4.js +0 -75
- package/dist/assets/Checkbox-Bchk1blw.js +0 -10
- package/dist/assets/CountryFlag-Coh5YEUl.js +0 -49
- package/dist/assets/DialogActions-BbTn22Uy.js +0 -101
- package/dist/assets/DialogCloseButton-CMOrMiok.js +0 -149
- package/dist/assets/DismissibleChips-Dc4tbb9S.js +0 -1
- package/dist/assets/DropdownMenu-C_t43Tvd.js +0 -1258
- package/dist/assets/IconButton-D218WESp.js +0 -8
- package/dist/assets/Input-XupGAuRo.js +0 -95
- package/dist/assets/IntlFormattedAggregatedDateTime-9V1gJxcg.js +0 -379
- package/dist/assets/IntlFormattedCurrency-loMkSk5h.js +0 -505
- package/dist/assets/IntlFormattedTime-DykXrEe3.js +0 -2900
- package/dist/assets/Link-D75aReRI.js +0 -5
- package/dist/assets/Link-DZ7eineG.css +0 -1
- package/dist/assets/MultiSelectChips-HRY_a-9f.js +0 -2
- package/dist/assets/NativeSelectField.stories-DFN4NN7z.js +0 -295
- package/dist/assets/NumberField-BmPC7HUo.js +0 -6
- package/dist/assets/PasswordField-DSRq_bhg.js +0 -6
- package/dist/assets/SelectField-u1424VWi.js +0 -19
- package/dist/assets/SingleSelectChips-BOJ8NDnY.js +0 -2
- package/dist/assets/TextField-Ch_1Y9U9.js +0 -6
- package/dist/assets/TextareaField-FzIH0QHs.js +0 -6
- package/dist/assets/Tooltip.stories-BG331mYm.js +0 -93
- package/dist/assets/createRequiredContext-CfIj7m5a.js +0 -241
- /package/dist/assets/{Avatar-C37O_UDH.js → Avatar-D6oXWjq1.js} +0 -0
- /package/dist/assets/{Divider-By80O4iG.js → Divider-Nv1279vj.js} +0 -0
- /package/dist/assets/{InputContainer-DSGASCBR.js → InputContainer-xfDpQQNl.js} +0 -0
- /package/dist/assets/{ProgressBar-Crf4SgkT.js → ProgressBar-CRitEeQk.js} +0 -0
- /package/dist/assets/{ProgressSteps-Cl7OdN1S.js → ProgressSteps-B2AXEKFJ.js} +0 -0
- /package/dist/assets/{TokyoUIAvailability7LateNight-BKvXBfeB.js → TokyoUIAvailability7LateNight-Bho17X1G.js} +0 -0
- /package/dist/assets/{TokyoUICheck-DAIMkBqJ.js → TokyoUICheck-BxTDosuA.js} +0 -0
- /package/dist/assets/{TokyoUICheckmark-FfHUfu5K.js → TokyoUICheckmark-BgAaFb6V.js} +0 -0
- /package/dist/assets/{TokyoUIChevronRight-DWF5Wc42.js → TokyoUIChevronRight-C__gngF1.js} +0 -0
- /package/dist/assets/{TokyoUIEmojiFrowning-CyL90GhY.js → TokyoUIEmojiFrowning-rSnD4TX2.js} +0 -0
- /package/dist/assets/{TokyoUIErrorWarning-aLVlh8HS.js → TokyoUIErrorWarning-BH93ehx8.js} +0 -0
- /package/dist/assets/{TokyoUIEye-DPcSixPI.js → TokyoUIEye-B3okJSKv.js} +0 -0
- /package/dist/assets/{TokyoUIFav-CdvVuNHN.js → TokyoUIFav-B1g1wYYK.js} +0 -0
- /package/dist/assets/{TokyoUIInfo-BTRd4tvr.js → TokyoUIInfo-CL0Zo7ru.js} +0 -0
- /package/dist/assets/{TokyoUIMessages-DiuUQ-OO.js → TokyoUIMessages-BO3EETWj.js} +0 -0
- /package/dist/assets/{TokyoUISparkle-Ckr14xJ9.js → TokyoUISparkle-5ta_MRge.js} +0 -0
- /package/dist/assets/{TokyoUIStarFilled-BKIQgn1I.js → TokyoUIStarFilled-DiQeedTx.js} +0 -0
- /package/dist/assets/{TokyoUITag-BmP85Jya.js → TokyoUITag-C8mbO1a7.js} +0 -0
- /package/dist/assets/{VisuallyHidden-DjFrTdW3.js → VisuallyHidden-CpMYtDeS.js} +0 -0
- /package/dist/assets/{align-self-CArWUz5E.js → align-self-DPOkDP3u.js} +0 -0
- /package/dist/assets/{emotion-unitless.esm-CznjPqRE.js → emotion-unitless.esm-DCJ5qRdW.js} +0 -0
- /package/dist/assets/{layout-relative.module-BMQDPKP6.js → layout-relative.module-C0ke0xP4.js} +0 -0
- /package/dist/assets/{storybook-utils-Dnw8-7zP.js → storybook-utils-BfrlMSeG.js} +0 -0
- /package/dist/assets/{useBreakpointMatch-D4lYvPbF.js → useBreakpointMatch-CmOkxQJ1.js} +0 -0
- /package/dist/assets/{useStableCallback-DRmyBaAs.js → useStableCallback-BRGKkp0I.js} +0 -0
- /package/dist/sb-addons/{storybook-6 → storybook-7}/manager-bundle.js +0 -0
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{a as e,n as t}from"./chunk-BneVvdWh.js";import{t as n}from"./react-C7IZe2D1.js";import{ht as r,t as i}from"./dist-DtfJeYQK.js";import{t as a}from"./jsx-runtime-C2wGStra.js";import{n as o,t as s}from"./dist-Cc1j9Pjk.js";import{n as c,t as l}from"./filterAttributesPassedByRadixUIAtRuntime-CGiuUnR2.js";import{n as u,t as d}from"./useControllableState-DQx2v_AU.js";import{a as f,c as p,i as m,l as h,n as g,o as _,r as v,s as y,t as b}from"./createRequiredContext-CfIj7m5a.js";var x,S,C,w,T,E,D=t((()=>{x=e(n(),1),d(),h(),i(),s(),c(),g(),S=a(),[C,w]=b(`SingleSelectChips`),T=(0,x.forwardRef)(function({items:e,children:t,orientation:n=p,"aria-label":i,"aria-controls":a,value:s,onValueChange:c,defaultValue:d,dataset:f,...m},h){let[g,v]=u({value:s,onValueChange:c,defaultValue:d??null}),b=e?e.map(({label:e,value:t,...n})=>(0,S.jsx)(E,{value:t,...n,children:e},t)):t;return(0,S.jsx)(C,{value:{value:g,onValueChange:v},children:(0,S.jsx)(y,{orientation:n,children:(0,S.jsx)(_,{...l(m),ref:h,orientation:n,"aria-orientation":n,"aria-label":i,"aria-controls":a,role:`listbox`,"aria-multiselectable":`false`,...r(f,{preplyDsComponent:o.SingleSelectChips}),children:b})})})}),E=(0,x.forwardRef)(function({value:e,children:t,icon:n,countryFlagCode:i,disabled:a,counter:s,dataset:c,dsInternalSimulation:u,...d},p){let{value:h,onValueChange:g}=w(),_=h===e;return(0,S.jsx)(f,{role:`presentation`,children:(0,S.jsx)(v,{...l(d),ref:p,role:`option`,"aria-selected":_,onClick:()=>g(_?null:e),icon:n,countryFlagCode:i,disabled:a,dsInternalSimulation:u,...r(c,{preplyDsComponent:o.SingleSelectChipsItem}),children:(0,S.jsx)(m,{counter:s,children:t})})})});try{T.displayName=`SingleSelectChips`,T.__docgenInfo={description:`A chips component that allows selection of a single option from a group.
|
|
2
|
-
Users can select one chip at a time, and clicking a selected chip will deselect it.`,displayName:`SingleSelectChips`,props:{"aria-label":{defaultValue:null,description:`Accessible label for the chips group. Required for screen reader users`,name:`aria-label`,required:!0,type:{name:`string`}},dataset:{defaultValue:null,description:``,name:`dataset`,required:!1,type:{name:`enum`,value:[{value:`Dataset`}]}},key:{defaultValue:null,description:``,name:`key`,required:!1,type:{name:`enum`,value:[{value:`null`},{value:`string`},{value:`number`},{value:`bigint`}]}},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:`null`},{value:`string`}]}},"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`}]}},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:`null`},{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"`}]}},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 | null) => void`}]}},items:{defaultValue:null,description:``,name:`items`,required:!1,type:{name:`enum`,value:[{value:`(Omit<ChipsItemProps, "dsInternalSimulation" | "children" | "value"> & { value: T extends unknown[] ? NonNullable<T[number]> : 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{E.displayName=`SingleSelectChipsItem`,E.__docgenInfo={description:`Individual chip item for use within SingleSelectChips.`,displayName:`SingleSelectChipsItem`,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:`"at"`},{value:`"ua"`},{value:`"ar"`},{value:`"de"`},{value:`"es"`},{value:`"fr"`},{value:`"it"`},{value:`"pl"`},{value:`"pt"`},{value:`"ru"`},{value:`"tr"`},{value:`"nl"`},{value:`"ro"`},{value:`"sv"`},{value:`"th"`},{value:`"tw"`},{value:`"hk"`},{value:`"td"`},{value:`"is"`},{value:`"as"`},{value:`"br"`},{value:`"hr"`},{value:`"li"`},{value:`"by"`},{value:`"cx"`},{value:`"cy"`},{value:`"in"`},{value:`"to"`},{value:`"ai"`},{value:`"no"`},{value:`"sm"`},{value:`"md"`},{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:`"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:`"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{E as n,D as r,T as t};
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
import{a as e,n as t}from"./chunk-BneVvdWh.js";import{t as n}from"./react-C7IZe2D1.js";import{t as r}from"./jsx-runtime-C2wGStra.js";import{n as i,t as a}from"./dist-Cc1j9Pjk.js";import{n as o,t as s}from"./FormControl-N0zmQNS2.js";import{r as c,t as l}from"./Input-XupGAuRo.js";var u,d,f,p=t((()=>{u=e(n(),1),o(),l(),a(),d=r(),f=(0,u.forwardRef)(function({id:e,label:t,description:n,error:r,required:a,type:o=`text`,inputDataset:l,dataset:u,hideLabel:f,onClick:p,hasError:m,useLegacyRequiredLabel:h,className:g,style:_,...v},y){return(0,d.jsx)(s,{id:e,label:t,description:n,error:r,hasError:m,required:a,dataset:u,hideLabel:f,onClick:p,useLegacyRequiredLabel:h,preplyDsComponent:i.TextField,children:(0,d.jsx)(c,{...v,type:o,ref:y,dataset:l})})});try{f.displayName=`TextField`,f.__docgenInfo={description:``,displayName:`TextField`,props:{id:{defaultValue:null,description:`The id to be passed to the input element.
|
|
2
|
-
If not provided, will be generated for accessibility purposes.`,name:`id`,required:!1,type:{name:`enum`,value:[{value:`string`}]}},required:{defaultValue:null,description:`Indicates if the field is required. When false, adds a "Optional"
|
|
3
|
-
indicator next to the label.`,name:`required`,required:!1,type:{name:`enum`,value:[{value:`false`},{value:`true`}]}},hasError:{defaultValue:null,description:"Whether the field has an error.\n@deprecated Use `error` prop to explicitly describe the error to users",name:`hasError`,required:!1,type:{name:`enum`,value:[{value:`false`},{value:`true`}]}},dataset:{defaultValue:null,description:``,name:`dataset`,required:!1,type:{name:`enum`,value:[{value:`Dataset`}]}},onClick:{defaultValue:null,description:``,name:`onClick`,required:!1,type:{name:`enum`,value:[{value:`MouseEventHandler<HTMLDivElement> & MouseEventHandler<HTMLInputElement>`}]}},label:{defaultValue:null,description:"The field label. This is needed for accessibility purposes, but can be\nhidden using the `hideLabel` prop.",name:`label`,required:!0,type:{name:`enum`,value:[{value:`undefined`},{value:`null`},{value:`string`},{value:`number`},{value:`false`},{value:`true`},{value:`ReactElement<any, string | JSXElementConstructor<any>>`},{value:`Iterable<ReactNode>`},{value:`ReactPortal`}]}},hideLabel:{defaultValue:null,description:"Use this to hide the `label` visually, but keep it in the accessibility\ntree.",name:`hideLabel`,required:!1,type:{name:`enum`,value:[{value:`false`},{value:`true`}]}},description:{defaultValue:null,description:`Additional descriptive text that appears below the input field
|
|
4
|
-
to provide more context or instructions to the user.`,name:`description`,required:!1,type:{name:`enum`,value:[{value:`null`},{value:`string`},{value:`number`},{value:`false`},{value:`true`},{value:`ReactElement<any, string | JSXElementConstructor<any>>`},{value:`Iterable<ReactNode>`},{value:`ReactPortal`}]}},error:{defaultValue:null,description:`Error message to display when the field has an invalid value.`,name:`error`,required:!1,type:{name:`enum`,value:[{value:`null`},{value:`string`},{value:`number`},{value:`false`},{value:`true`},{value:`ReactElement<any, string | JSXElementConstructor<any>>`},{value:`Iterable<ReactNode>`},{value:`ReactPortal`}]}},useLegacyRequiredLabel:{defaultValue:null,description:`When true, adds a "Required" indicator next to the label for the required fields.
|
|
5
|
-
When false, adds a "Optional" indicator next to the label for the optional fields instead.
|
|
6
|
-
@deprecated This is a temporary solution for gradual migration to the "Optional" label.`,name:`useLegacyRequiredLabel`,required:!1,type:{name:`enum`,value:[{value:`false`},{value:`true`}]}},name:{defaultValue:null,description:``,name:`name`,required:!1,type:{name:`enum`,value:[{value:`string`}]}},disabled:{defaultValue:null,description:``,name:`disabled`,required:!1,type:{name:`enum`,value:[{value:`false`},{value:`true`}]}},onChange:{defaultValue:null,description:``,name:`onChange`,required:!1,type:{name:`enum`,value:[{value:`ChangeEventHandler<HTMLInputElement>`}]}},onBlur:{defaultValue:null,description:``,name:`onBlur`,required:!1,type:{name:`enum`,value:[{value:`FocusEventHandler<HTMLInputElement>`}]}},onFocus:{defaultValue:null,description:``,name:`onFocus`,required:!1,type:{name:`enum`,value:[{value:`FocusEventHandler<HTMLInputElement>`}]}},onCopy:{defaultValue:null,description:``,name:`onCopy`,required:!1,type:{name:`enum`,value:[{value:`ClipboardEventHandler<HTMLInputElement>`}]}},onCut:{defaultValue:null,description:``,name:`onCut`,required:!1,type:{name:`enum`,value:[{value:`ClipboardEventHandler<HTMLInputElement>`}]}},onPaste:{defaultValue:null,description:``,name:`onPaste`,required:!1,type:{name:`enum`,value:[{value:`ClipboardEventHandler<HTMLInputElement>`}]}},onKeyDown:{defaultValue:null,description:``,name:`onKeyDown`,required:!1,type:{name:`enum`,value:[{value:`KeyboardEventHandler<HTMLInputElement>`}]}},onKeyUp:{defaultValue:null,description:``,name:`onKeyUp`,required:!1,type:{name:`enum`,value:[{value:`KeyboardEventHandler<HTMLInputElement>`}]}},button:{defaultValue:null,description:``,name:`button`,required:!1,type:{name:`enum`,value:[{value:`ReactElement<any, string | JSXElementConstructor<any>>`}]}},maxLength:{defaultValue:null,description:``,name:`maxLength`,required:!1,type:{name:`enum`,value:[{value:`number`}]}},placeholder:{defaultValue:null,description:``,name:`placeholder`,required:!1,type:{name:`enum`,value:[{value:`string`}]}},readOnly:{defaultValue:null,description:``,name:`readOnly`,required:!1,type:{name:`enum`,value:[{value:`false`},{value:`true`}]}},icon:{defaultValue:null,description:``,name:`icon`,required:!1,type:{name:`enum`,value:[{value:`ReactElement<any, string | JSXElementConstructor<any>>`}]}},onValueChange:{defaultValue:null,description:``,name:`onValueChange`,required:!1,type:{name:`enum`,value:[{value:`(value: string) => void`}]}},value:{defaultValue:null,description:``,name:`value`,required:!1,type:{name:`enum`,value:[{value:`string`}]}},defaultValue:{defaultValue:null,description:``,name:`defaultValue`,required:!1,type:{name:`enum`,value:[{value:`string`}]}},type:{defaultValue:{value:`text`},description:``,name:`type`,required:!1,type:{name:`enum`,value:[{value:`"text"`},{value:`"search"`},{value:`"email"`},{value:`"tel"`},{value:`"url"`}]}},autoComplete:{defaultValue:null,description:``,name:`autoComplete`,required:!1,type:{name:`enum`,value:[{value:`"name"`},{value:`"email"`},{value:`"tel"`},{value:`"url"`},{value:`"off"`},{value:`"on"`},{value:`"username"`},{value:`"language"`}]}},inputDataset:{defaultValue:null,description:``,name:`inputDataset`,required:!1,type:{name:`enum`,value:[{value:`Dataset`}]}},ref:{defaultValue:null,description:"Allows getting a ref to the component instance.\nOnce the component unmounts, React will set `ref.current` to `null`\n(or call the ref with `null` if you passed a callback ref).\n@see {@link https://react.dev/learn/referencing-values-with-refs#refs-and-the-dom React Docs}",name:`ref`,required:!1,type:{name:`enum`,value:[{value:`null`},{value:`string`},{value:`(instance: HTMLInputElement | null) => void`},{value:`RefObject<HTMLInputElement>`}]}},key:{defaultValue:null,description:``,name:`key`,required:!1,type:{name:`enum`,value:[{value:`null`},{value:`string`},{value:`number`},{value:`bigint`}]}}}}}catch{}}));export{p as n,f as t};
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
import{a as e,n as t}from"./chunk-BneVvdWh.js";import{t as n}from"./react-C7IZe2D1.js";import{t as r}from"./jsx-runtime-C2wGStra.js";import{n as i,t as a}from"./dist-Cc1j9Pjk.js";import{n as o,t as s}from"./FormControl-N0zmQNS2.js";import{n as c,t as l}from"./Input-XupGAuRo.js";var u,d,f,p=t((()=>{u=e(n(),1),o(),l(),a(),d=r(),f=(0,u.forwardRef)(function({id:e,label:t,description:n,error:r,required:a,inputDataset:o,dataset:l,hideLabel:u,onClick:f,hasError:p,useLegacyRequiredLabel:m,className:h,style:g,..._},v){return(0,d.jsx)(s,{id:e,label:t,description:n,error:r,hasError:p,required:a,dataset:l,hideLabel:u,onClick:f,useLegacyRequiredLabel:m,preplyDsComponent:i.TextareaField,children:(0,d.jsx)(c,{..._,ref:v,dataset:o})})});try{f.displayName=`TextareaField`,f.__docgenInfo={description:``,displayName:`TextareaField`,props:{id:{defaultValue:null,description:`The id to be passed to the input element.
|
|
2
|
-
If not provided, will be generated for accessibility purposes.`,name:`id`,required:!1,type:{name:`enum`,value:[{value:`string`}]}},required:{defaultValue:null,description:`Indicates if the field is required. When false, adds a "Optional"
|
|
3
|
-
indicator next to the label.`,name:`required`,required:!1,type:{name:`enum`,value:[{value:`false`},{value:`true`}]}},hasError:{defaultValue:null,description:"Whether the field has an error.\n@deprecated Use `error` prop to explicitly describe the error to users",name:`hasError`,required:!1,type:{name:`enum`,value:[{value:`false`},{value:`true`}]}},dataset:{defaultValue:null,description:``,name:`dataset`,required:!1,type:{name:`enum`,value:[{value:`Dataset`}]}},onClick:{defaultValue:null,description:``,name:`onClick`,required:!1,type:{name:`enum`,value:[{value:`MouseEventHandler<HTMLDivElement> & MouseEventHandler<HTMLTextAreaElement>`}]}},label:{defaultValue:null,description:"The field label. This is needed for accessibility purposes, but can be\nhidden using the `hideLabel` prop.",name:`label`,required:!0,type:{name:`enum`,value:[{value:`undefined`},{value:`null`},{value:`string`},{value:`number`},{value:`false`},{value:`true`},{value:`ReactElement<any, string | JSXElementConstructor<any>>`},{value:`Iterable<ReactNode>`},{value:`ReactPortal`}]}},hideLabel:{defaultValue:null,description:"Use this to hide the `label` visually, but keep it in the accessibility\ntree.",name:`hideLabel`,required:!1,type:{name:`enum`,value:[{value:`false`},{value:`true`}]}},description:{defaultValue:null,description:`Additional descriptive text that appears below the input field
|
|
4
|
-
to provide more context or instructions to the user.`,name:`description`,required:!1,type:{name:`enum`,value:[{value:`null`},{value:`string`},{value:`number`},{value:`false`},{value:`true`},{value:`ReactElement<any, string | JSXElementConstructor<any>>`},{value:`Iterable<ReactNode>`},{value:`ReactPortal`}]}},error:{defaultValue:null,description:`Error message to display when the field has an invalid value.`,name:`error`,required:!1,type:{name:`enum`,value:[{value:`null`},{value:`string`},{value:`number`},{value:`false`},{value:`true`},{value:`ReactElement<any, string | JSXElementConstructor<any>>`},{value:`Iterable<ReactNode>`},{value:`ReactPortal`}]}},useLegacyRequiredLabel:{defaultValue:null,description:`When true, adds a "Required" indicator next to the label for the required fields.
|
|
5
|
-
When false, adds a "Optional" indicator next to the label for the optional fields instead.
|
|
6
|
-
@deprecated This is a temporary solution for gradual migration to the "Optional" label.`,name:`useLegacyRequiredLabel`,required:!1,type:{name:`enum`,value:[{value:`false`},{value:`true`}]}},name:{defaultValue:null,description:``,name:`name`,required:!1,type:{name:`enum`,value:[{value:`string`}]}},disabled:{defaultValue:null,description:``,name:`disabled`,required:!1,type:{name:`enum`,value:[{value:`false`},{value:`true`}]}},onChange:{defaultValue:null,description:``,name:`onChange`,required:!1,type:{name:`enum`,value:[{value:`ChangeEventHandler<HTMLTextAreaElement>`}]}},onBlur:{defaultValue:null,description:``,name:`onBlur`,required:!1,type:{name:`enum`,value:[{value:`FocusEventHandler<HTMLTextAreaElement>`}]}},onFocus:{defaultValue:null,description:``,name:`onFocus`,required:!1,type:{name:`enum`,value:[{value:`FocusEventHandler<HTMLTextAreaElement>`}]}},onCopy:{defaultValue:null,description:``,name:`onCopy`,required:!1,type:{name:`enum`,value:[{value:`ClipboardEventHandler<HTMLTextAreaElement>`}]}},onCut:{defaultValue:null,description:``,name:`onCut`,required:!1,type:{name:`enum`,value:[{value:`ClipboardEventHandler<HTMLTextAreaElement>`}]}},onPaste:{defaultValue:null,description:``,name:`onPaste`,required:!1,type:{name:`enum`,value:[{value:`ClipboardEventHandler<HTMLTextAreaElement>`}]}},onKeyDown:{defaultValue:null,description:``,name:`onKeyDown`,required:!1,type:{name:`enum`,value:[{value:`KeyboardEventHandler<HTMLTextAreaElement>`}]}},onKeyUp:{defaultValue:null,description:``,name:`onKeyUp`,required:!1,type:{name:`enum`,value:[{value:`KeyboardEventHandler<HTMLTextAreaElement>`}]}},maxLength:{defaultValue:null,description:``,name:`maxLength`,required:!1,type:{name:`enum`,value:[{value:`number`}]}},placeholder:{defaultValue:null,description:``,name:`placeholder`,required:!1,type:{name:`enum`,value:[{value:`string`}]}},readOnly:{defaultValue:null,description:``,name:`readOnly`,required:!1,type:{name:`enum`,value:[{value:`false`},{value:`true`}]}},rows:{defaultValue:null,description:``,name:`rows`,required:!1,type:{name:`enum`,value:[{value:`number`}]}},onValueChange:{defaultValue:null,description:``,name:`onValueChange`,required:!1,type:{name:`enum`,value:[{value:`(value: string) => void`}]}},resize:{defaultValue:null,description:``,name:`resize`,required:!1,type:{name:`enum`,value:[{value:`"none"`},{value:`"both"`},{value:`"horizontal"`},{value:`"vertical"`}]}},defaultValue:{defaultValue:null,description:``,name:`defaultValue`,required:!1,type:{name:`enum`,value:[{value:`string`}]}},value:{defaultValue:null,description:``,name:`value`,required:!1,type:{name:`enum`,value:[{value:`string`}]}},autoComplete:{defaultValue:null,description:``,name:`autoComplete`,required:!1,type:{name:`enum`,value:[{value:`"off"`},{value:`"on"`}]}},inputDataset:{defaultValue:null,description:``,name:`inputDataset`,required:!1,type:{name:`enum`,value:[{value:`Dataset`}]}},ref:{defaultValue:null,description:"Allows getting a ref to the component instance.\nOnce the component unmounts, React will set `ref.current` to `null`\n(or call the ref with `null` if you passed a callback ref).\n@see {@link https://react.dev/learn/referencing-values-with-refs#refs-and-the-dom React Docs}",name:`ref`,required:!1,type:{name:`enum`,value:[{value:`null`},{value:`string`},{value:`(instance: HTMLTextAreaElement | null) => void`},{value:`RefObject<HTMLTextAreaElement>`}]}},key:{defaultValue:null,description:``,name:`key`,required:!1,type:{name:`enum`,value:[{value:`null`},{value:`string`},{value:`number`},{value:`bigint`}]}}}}}catch{}}));export{p as n,f as t};
|
|
@@ -1,93 +0,0 @@
|
|
|
1
|
-
import{a as e,n as t}from"./chunk-BneVvdWh.js";import{t as n}from"./react-C7IZe2D1.js";import{t as r}from"./jsx-runtime-C2wGStra.js";import{n as i,t as a}from"./TokyoUIClose-BsMsQk2w.js";import{n as o,t as s}from"./IconButton-D218WESp.js";import{n as c,t as l}from"./TokyoUIInfo-BTRd4tvr.js";import{n as u,t as d}from"./LayoutFlex-CEr_Bd5T.js";import{n as f,t as p}from"./Tooltip-DGa6B2Md.js";import{n as m,t as h}from"./TokyoUIFav-CdvVuNHN.js";import{n as g,t as _}from"./TokyoUINotebook-5mL-J_jb.js";var v,y,b,x,S,C,w,T,E,D;t((()=>{f(),v=e(n(),1),u(),o(),m(),i(),g(),c(),y=r(),b={title:`Components/Tooltip`,component:p,parameters:{layout:`centered`,docs:{description:{component:`Also see [Composing Popovers](/docs/guides-composing-popovers--docs) for usage with other popovers.`}}},decorators:[e=>(0,y.jsx)(`div`,{style:{margin:`100px 0`},children:e()})]},x={render:()=>(0,y.jsx)(p,{content:`This is a tooltip`,dsInternalSimulation:`open`,children:(0,y.jsx)(s,{variant:`ghost`,svg:(0,y.jsx)(h,{}),assistiveText:`Favorite`})}),name:`Tooltip`},S={render:()=>(0,y.jsx)(p,{content:`Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.`,dsInternalSimulation:`open`,children:(0,y.jsx)(s,{variant:`ghost`,svg:(0,y.jsx)(h,{}),assistiveText:`Favorite`})})},C={parameters:{chromatic:{disableSnapshot:!0}},render:()=>(0,y.jsxs)(d,{gap:`4`,children:[(0,y.jsx)(p,{content:`This is a tooltip`,children:(0,y.jsx)(s,{variant:`ghost`,svg:(0,y.jsx)(h,{}),assistiveText:`Icon button`})}),(0,y.jsx)(p,{content:`This is a tooltip`,children:(0,y.jsx)(s,{variant:`ghost`,svg:(0,y.jsx)(a,{}),assistiveText:`Icon button`})}),(0,y.jsx)(p,{content:`This is a tooltip`,children:(0,y.jsx)(s,{variant:`ghost`,svg:(0,y.jsx)(_,{}),assistiveText:`Icon button`})})]})},w={parameters:{chromatic:{disableSnapshot:!0}},render:()=>(0,y.jsx)(p,{content:`This is a tooltip`,trigger:`hover-and-touch`,children:(0,y.jsx)(s,{variant:`ghost`,svg:(0,y.jsx)(l,{}),assistiveText:`Icon button`})})},T={parameters:{chromatic:{disableSnapshot:!0}},render:()=>(0,y.jsx)(p,{content:`This is a tooltip`,children:(0,y.jsx)((0,v.forwardRef)((e,t)=>(0,y.jsx)(`button`,{...e,ref:t})),{children:`Custom child`})})},E={parameters:{chromatic:{disableSnapshot:!0}},args:{content:`Tooltip content`,children:(0,y.jsx)(s,{svg:(0,y.jsx)(h,{}),assistiveText:`Icon button`}),trigger:`hover`,side:`top`},argTypes:{content:{control:`text`},children:{control:!1},dataset:{control:`object`}}},x.parameters={...x.parameters,docs:{...x.parameters?.docs,source:{originalSource:`{
|
|
2
|
-
render: () => <Tooltip content="This is a tooltip" dsInternalSimulation="open">
|
|
3
|
-
<IconButton variant="ghost" svg={<TokyoUIFav />} assistiveText="Favorite" />
|
|
4
|
-
</Tooltip>,
|
|
5
|
-
name: 'Tooltip'
|
|
6
|
-
}`,...x.parameters?.docs?.source}}},S.parameters={...S.parameters,docs:{...S.parameters?.docs,source:{originalSource:`{
|
|
7
|
-
render: () => <Tooltip content="Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat." dsInternalSimulation="open">
|
|
8
|
-
<IconButton variant="ghost" svg={<TokyoUIFav />} assistiveText="Favorite" />
|
|
9
|
-
</Tooltip>
|
|
10
|
-
}`,...S.parameters?.docs?.source}}},C.parameters={...C.parameters,docs:{...C.parameters?.docs,source:{originalSource:`{
|
|
11
|
-
parameters: {
|
|
12
|
-
chromatic: {
|
|
13
|
-
disableSnapshot: true
|
|
14
|
-
}
|
|
15
|
-
},
|
|
16
|
-
render: () => <LayoutFlex gap="4">
|
|
17
|
-
<Tooltip content="This is a tooltip">
|
|
18
|
-
<IconButton variant="ghost" svg={<TokyoUIFav />} assistiveText="Icon button" />
|
|
19
|
-
</Tooltip>
|
|
20
|
-
<Tooltip content="This is a tooltip">
|
|
21
|
-
<IconButton variant="ghost" svg={<TokyoUIClose />} assistiveText="Icon button" />
|
|
22
|
-
</Tooltip>
|
|
23
|
-
<Tooltip content="This is a tooltip">
|
|
24
|
-
<IconButton variant="ghost" svg={<TokyoUINotebook />} assistiveText="Icon button" />
|
|
25
|
-
</Tooltip>
|
|
26
|
-
</LayoutFlex>
|
|
27
|
-
}`,...C.parameters?.docs?.source},description:{story:`Tooltips appear after a short delay when hovering the trigger, or instantly when using keyboard focus.
|
|
28
|
-
This delay is called the "warmup period", and it is a global timer, shared by all tooltips.
|
|
29
|
-
Once a tooltip is displayed, other tooltips display immediately. If the user waits for the
|
|
30
|
-
"cooldown period" before hovering another element, the warmup timer restarts.`,...C.parameters?.docs?.description}}},w.parameters={...w.parameters,docs:{...w.parameters?.docs,source:{originalSource:`{
|
|
31
|
-
parameters: {
|
|
32
|
-
chromatic: {
|
|
33
|
-
disableSnapshot: true
|
|
34
|
-
}
|
|
35
|
-
},
|
|
36
|
-
render: () => <Tooltip content="This is a tooltip" trigger="hover-and-touch">
|
|
37
|
-
<IconButton variant="ghost" svg={<TokyoUIInfo />} assistiveText="Icon button" />
|
|
38
|
-
</Tooltip>
|
|
39
|
-
}`,...w.parameters?.docs?.source},description:{story:"By default, tooltips only appear on hover and focus. For mobile devices, you can enable touch support\nby setting the `trigger` prop to `hover-and-touch`. When touched, the tooltip will appear and stay\nvisible until the user taps outside of it. Alternatively, user can press and hold, in which case\ntooltip will be hidden immediately after release.",...w.parameters?.docs?.description}}},T.parameters={...T.parameters,docs:{...T.parameters?.docs,source:{originalSource:`{
|
|
40
|
-
parameters: {
|
|
41
|
-
chromatic: {
|
|
42
|
-
disableSnapshot: true
|
|
43
|
-
}
|
|
44
|
-
},
|
|
45
|
-
render: () => {
|
|
46
|
-
const CustomButton = forwardRef<HTMLButtonElement, {
|
|
47
|
-
children: ReactNode;
|
|
48
|
-
}>((props, ref) => {
|
|
49
|
-
return <button {...props} ref={ref} />;
|
|
50
|
-
});
|
|
51
|
-
return <Tooltip content="This is a tooltip">
|
|
52
|
-
<CustomButton>Custom child</CustomButton>
|
|
53
|
-
</Tooltip>;
|
|
54
|
-
}
|
|
55
|
-
}`,...T.parameters?.docs?.source},description:{story:`The tooltip works out of the box with html elements and DS components as children.
|
|
56
|
-
|
|
57
|
-
If you need to wrap a custom component with the tooltip, component should forward
|
|
58
|
-
the ref and spread props to the underlying DOM node:
|
|
59
|
-
|
|
60
|
-
\`\`\`tsx
|
|
61
|
-
const CustomButton = forwardRef<HTMLButtonElement, { children: ReactNode }>(
|
|
62
|
-
(props, ref) => {
|
|
63
|
-
return <button {...props} ref={ref} />;
|
|
64
|
-
},
|
|
65
|
-
);
|
|
66
|
-
|
|
67
|
-
<Tooltip content="This is a tooltip">
|
|
68
|
-
<CustomButton>Custom child</CustomButton>
|
|
69
|
-
</Tooltip>
|
|
70
|
-
\`\`\``,...T.parameters?.docs?.description}}},E.parameters={...E.parameters,docs:{...E.parameters?.docs,source:{originalSource:`{
|
|
71
|
-
parameters: {
|
|
72
|
-
chromatic: {
|
|
73
|
-
disableSnapshot: true
|
|
74
|
-
}
|
|
75
|
-
},
|
|
76
|
-
args: {
|
|
77
|
-
content: 'Tooltip content',
|
|
78
|
-
children: <IconButton svg={<TokyoUIFav />} assistiveText="Icon button" />,
|
|
79
|
-
trigger: 'hover',
|
|
80
|
-
side: 'top'
|
|
81
|
-
},
|
|
82
|
-
argTypes: {
|
|
83
|
-
content: {
|
|
84
|
-
control: 'text'
|
|
85
|
-
},
|
|
86
|
-
children: {
|
|
87
|
-
control: false
|
|
88
|
-
},
|
|
89
|
-
dataset: {
|
|
90
|
-
control: 'object'
|
|
91
|
-
}
|
|
92
|
-
}
|
|
93
|
-
}`,...E.parameters?.docs?.source}}},D=[`Basic`,`LongContent`,`Delay`,`UsingOnMobile`,`CustomChildComponent`,`Playground`]}))();export{x as Basic,T as CustomChildComponent,C as Delay,S as LongContent,E as Playground,w as UsingOnMobile,D as __namedExportsOrder,b as default};
|