@preply/ds-docs 3.5.1 → 3.5.2-beta.8e09f17aa4de23f74af5a6d4df8099acd8f3d3af.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/assets/00.LayoutFlex.stories-DhIHMcO1.js +85 -0
- package/dist/assets/{00.applications-CtD17Uvc.js → 00.applications-BjmAAhQE.js} +2 -2
- package/dist/assets/{00.favicons.guide-rDY-MoXZ.js → 00.favicons.guide-C7IngdF9.js} +2 -2
- package/dist/assets/{00.token-explorer-CedppzBQ.js → 00.token-explorer-Cm4rXbdY.js} +2 -2
- package/dist/assets/00.using-responsive-props-BXbA82h9.js +18 -0
- package/dist/assets/01.semantic-tokens-Bgass99H.js +2 -0
- package/dist/assets/{01.using-shorthand-props-eZLJFDHj.js → 01.using-shorthand-props-Qlxr8nV8.js} +2 -2
- package/dist/assets/10.Combinations.stories-C7VpqhRv.js +144 -0
- package/dist/assets/{10.fonts.guide-DW9ufzTF.js → 10.fonts.guide-zvPFbz-W.js} +2 -2
- package/dist/assets/{10.ssr-DwlffmrT.js → 10.ssr-Dxsd4y1z.js} +2 -2
- package/dist/assets/{11.languageFont.explorer.stories-Crh2l5Jm.js → 11.languageFont.explorer.stories-BBw6KOiE.js} +3 -3
- package/dist/assets/{11.ssr.app-router-BZ07Enlf.js → 11.ssr.app-router-DYnrhBC4.js} +2 -2
- package/dist/assets/{20.libraries-lbSLR9_7.js → 20.libraries-BholgZfT.js} +2 -2
- package/dist/assets/30.icons.explorer-8HLGAAan.js +73 -0
- package/dist/assets/{30.storybook-C4NNn5Fv.js → 30.storybook-xm7nwnR2.js} +2 -2
- package/dist/assets/40.illustrations.explorer-CRm809Z5.js +21 -0
- package/dist/assets/{90.advanced-bdiRxPCx.js → 90.advanced-gYlKB6UD.js} +2 -2
- package/dist/assets/{Accordion-BMkC4Xny.js → Accordion-DvMT6GBY.js} +1 -1
- package/dist/assets/{Accordion.stories-SU6sgvYh.js → Accordion.stories-BhmMf1Kl.js} +2 -2
- package/dist/assets/{Accordion.tests.stories-CxVZnGoY.js → Accordion.tests.stories-1KGdCW2F.js} +3 -3
- package/dist/assets/{AlertDialog.stories-Z5ooiuoO.js → AlertDialog.stories-SvAfEwIs.js} +3 -3
- package/dist/assets/{Avatar-B2H0W8KL.js → Avatar-BIgQJd19.js} +1 -1
- package/dist/assets/{Avatar-BoLH36O5.js → Avatar-BpSn3__A.js} +1 -1
- package/dist/assets/Avatar.stories-BgdrQgJ6.js +42 -0
- package/dist/assets/AvatarWithStatus.stories-BG0-gHdE.js +41 -0
- package/dist/assets/{Badge-j_a0acGK.css → Badge-DXnHyVME.css} +1 -1
- package/dist/assets/{Badge.stories-B2OoKd78.js → Badge.stories-CZXrBWEG.js} +3 -3
- package/dist/assets/Box.stories-DMMgVBRA.js +44 -0
- package/dist/assets/{Button-Bo0EuTg4.js → Button-BMhW7Ryu.js} +1 -1
- package/dist/assets/{Button-BSyqsKC5.js → Button-X961RPO6.js} +1 -1
- package/dist/assets/{Button.stories-Dc9V2OdS.js → Button.stories-CXYJnRFa.js} +2 -2
- package/dist/assets/{ButtonBase-Bdtn25V2.js → ButtonBase-C6a4IFi9.js} +1 -1
- package/dist/assets/{Checkbox-Bq_sNuXJ.js → Checkbox-DtY6jbRz.js} +2 -2
- package/dist/assets/{Checkbox.stories-BI-3q1SR.js → Checkbox.stories-DFhZhoOF.js} +2 -2
- package/dist/assets/Checkbox.tests.stories-vWRgUEmd.js +64 -0
- package/dist/assets/Chips-C-y9rHQ4.css +1 -0
- package/dist/assets/Chips.stories-Dnyzke7s.js +146 -0
- package/dist/assets/Color-YHDXOIA2-q0p56ObF.js +1 -0
- package/dist/assets/{Combination-CCYtWL8C.js → Combination-Cz1uIyPJ.js} +1 -1
- package/dist/assets/CountryFlag-CxPqhWSY.js +49 -0
- package/dist/assets/CountryFlag.stories-CIMIZrel.js +331 -0
- package/dist/assets/CountryFlag.test.stories-DE2_cIcP.js +27 -0
- package/dist/assets/{Dialog.stories-ColOPVoz.js → Dialog.stories-CAvJVn99.js} +3 -3
- package/dist/assets/DismissibleChips-CsO8z6jq.js +1 -0
- package/dist/assets/DismissibleChips-Jfhj9R2Y.css +1 -0
- package/dist/assets/DismissibleChips.stories-oS2ah4R5.js +635 -0
- package/dist/assets/Divider-DECo0bYW.css +1 -0
- package/dist/assets/Divider.stories-GaWQeEv4.js +9 -0
- package/dist/assets/DocsRenderer-CFRXHY34-CzhgDcgD.js +2 -0
- package/dist/assets/{FieldButton-Bsa9_rJB.js → FieldButton-rTYv82fy.js} +1 -1
- package/dist/assets/FieldButton.stories-BFSOCHb6.js +1 -0
- package/dist/assets/{FormControl-BxxTFPCS.css → FormControl-BBqp99uJ.css} +1 -1
- package/dist/assets/FormControl-BpfQzsc9.js +7 -0
- package/dist/assets/{FormControl.stories-DekxQG9a.js → FormControl.stories-DbNIVvx3.js} +2 -2
- package/dist/assets/{Heading-ese4_5Hg.js → Heading-DZROGjCX.js} +2 -2
- package/dist/assets/Heading.stories-Bv4wWzjl.js +82 -0
- package/dist/assets/{Icon-ZIxauYsE.js → Icon-CsLP9yUL.js} +1 -1
- package/dist/assets/Icon-RSC-Bv-aZdqk.js +6 -0
- package/dist/assets/{Icon-Dlm-jGvW.js → Icon-sVpQ_y4s.js} +1 -1
- package/dist/assets/{Icon.stories-Cv6aq9BI.js → Icon.stories-2ohSoR_H.js} +2 -2
- package/dist/assets/{IconButton-BqwVuKH2.js → IconButton-DRMkHTTe.js} +1 -1
- package/dist/assets/{Input-C1hZX5_o.js → Input-BAfLGatx.js} +5 -5
- package/dist/assets/{InputContainer-Bk0tgFnW.js → InputContainer-BZsD6GIE.js} +1 -1
- package/dist/assets/IntegrationWithReactHookForm.stories-B0YZWqoq.js +460 -0
- package/dist/assets/{LayoutFlex-BBGvSVMb.js → LayoutFlex-BaS7fGmA.js} +1 -1
- package/dist/assets/{LayoutFlex-Bhu4q65J.js → LayoutFlex-lbriU8N6.js} +1 -1
- package/dist/assets/{LayoutFlexItem-C2t_4vHD.js → LayoutFlexItem-C4vty6HO.js} +1 -1
- package/dist/assets/{LayoutGrid-DwWkjrQU.js → LayoutGrid-B4eBqEgI.js} +1 -1
- package/dist/assets/LayoutGrid.stories-sEjiCyRV.js +88 -0
- package/dist/assets/{LayoutGridItem-CmZxAA0w.js → LayoutGridItem-DKo47-gH.js} +1 -1
- package/dist/assets/{LayoutGridItem-CZ6SKl8g.js → LayoutGridItem-ImMljy5d.js} +1 -1
- package/dist/assets/{LibraryExplore-C8GqDRwc.js → LibraryExplore-oBYfEgnm.js} +1 -1
- package/dist/assets/Link-CkesJtFY.js +7 -0
- package/dist/assets/Link.stories-CrfUwgC7.js +265 -0
- package/dist/assets/Loader.stories-B_blBz7h.js +37 -0
- package/dist/assets/MultiSelectChips-BXRlxN3H.js +2 -0
- package/dist/assets/MultiSelectChips.stories-Dp3i-xgR.js +618 -0
- package/dist/assets/{NumberField-D6cbX2hK.js → NumberField-CKFiWEiH.js} +5 -5
- package/dist/assets/{NumberField.stories-BHt2ErAX.js → NumberField.stories-ClndEdZc.js} +2 -2
- package/dist/assets/{ObserveIntersection-DsqqXq5n.js → ObserveIntersection-DtRK_kGF.js} +2 -2
- package/dist/assets/ObserveIntersection.stories-BRpIOGbW.js +27 -0
- package/dist/assets/{OnboardingTooltip-DVNAQjDc.js → OnboardingTooltip-D5ouaJJb.js} +1 -1
- package/dist/assets/OnboardingTooltip.stories-D0PpYH3X.js +66 -0
- package/dist/assets/OnboardingTooltip.tests.stories-BlXMZGRG.js +79 -0
- package/dist/assets/{OnboardingTour-DdV7TN6M.js → OnboardingTour-CaGcHfL8.js} +1 -1
- package/dist/assets/{OnboardingTour.stories-D0ScuFD6.js → OnboardingTour.stories-sJ0MMyXX.js} +3 -3
- package/dist/assets/{OnboardingTour.tests.stories-DAxdPYEp.js → OnboardingTour.tests.stories-B-qjwuYY.js} +3 -3
- package/dist/assets/{PasswordField-C_KRyf9k.js → PasswordField-CofbbYtE.js} +5 -5
- package/dist/assets/{PasswordField.stories-3X4JtcLm.js → PasswordField.stories-BX47gZdR.js} +5 -5
- package/dist/assets/{PortalElementProvider-D4ltrA8j.js → PortalElementProvider-CgL8vj5o.js} +1 -1
- package/dist/assets/PreplyLogo.stories-Fo6r5eoW.js +97 -0
- package/dist/assets/{ProgressBar.stories-Dpro8fzG.js → ProgressBar.stories-DwSQ_GSw.js} +3 -3
- package/dist/assets/{ProgressSteps-BBrWCYks.js → ProgressSteps-DdWPhsZo.js} +1 -1
- package/dist/assets/ProgressSteps.stories-DNJ0FLjA.js +31 -0
- package/dist/assets/{RangeSlider-dSZs_gtw.js → RangeSlider-BbQqXVy4.js} +1 -1
- package/dist/assets/{RangeSlider.stories-DVb8mcs1.js → RangeSlider.stories-cMSMIPIR.js} +2 -2
- package/dist/assets/Rating-C5Ka-p8v.css +1 -0
- package/dist/assets/Rating.stories-DKDXeZLv.js +369 -0
- package/dist/assets/RootProvider-Bt09Y4Vm.js +1 -0
- package/dist/assets/{SelectField-CuzFFPz0.js → SelectField-Cbwqf13X.js} +8 -8
- package/dist/assets/{SelectField.stories-wb_cAtCV.js → SelectField.stories-CHI5fXH3.js} +2 -2
- package/dist/assets/ShowOnIntersection.stories-DawnfRES.js +17 -0
- package/dist/assets/SingleSelectChips-CJdCtPej.js +2 -0
- package/dist/assets/SingleSelectChips.stories-B-AceN_3.js +637 -0
- package/dist/assets/{Slider-6E9fmd7P.js → Slider-B5Qqu9NR.js} +1 -1
- package/dist/assets/{Slider.stories-B5LCqqgS.js → Slider.stories-C9UPKo91.js} +2 -2
- package/dist/assets/{Spinner-BCTJunNM.js → Spinner-C6oWKJxH.js} +1 -1
- package/dist/assets/{Steps-CCm9vCgl.js → Steps-BSPwjsbK.js} +1 -1
- package/dist/assets/{Steps.stories-BLFM3WRM.js → Steps.stories-CNfWHrHx.js} +2 -2
- package/dist/assets/{StorybookGlobalStyle-B1zhYl96.js → StorybookGlobalStyle-CQSpwvw3.js} +1 -1
- package/dist/assets/Switch-Dki6SWJ1.js +12 -0
- package/dist/assets/Switch-DxL-NADD.css +1 -0
- package/dist/assets/Switch.stories-BTkPgMst.js +138 -0
- package/dist/assets/{Text-BmdJVr9v.js → Text-ZLkVgQlY.js} +1 -1
- package/dist/assets/Text.stories-D_t12uZZ.js +69 -0
- package/dist/assets/{TextField-CMgzC3bX.js → TextField-B7c1PVYB.js} +5 -5
- package/dist/assets/{TextField-D2GlsmWF.css → TextField-C5AoK3Cj.css} +1 -1
- package/dist/assets/TextField-DbmOxqxt.js +1 -0
- package/dist/assets/{TextField.stories-CAcPkm_s.js → TextField.stories-CngK-6Qq.js} +5 -5
- package/dist/assets/{TextHighlighted-B6rrwk3x.js → TextHighlighted-DBcNj2pQ.js} +1 -1
- package/dist/assets/TextHighlighted.stories-CWKYPTbE.js +32 -0
- package/dist/assets/TextInline.stories-I9sw-aJj.js +37 -0
- package/dist/assets/{TextareaField-CCM1C6lK.js → TextareaField-CeIbJoly.js} +9 -9
- package/dist/assets/{TextareaField.stories-DKNFN3f4.js → TextareaField.stories-DlpR_OXi.js} +6 -6
- package/dist/assets/{Toast.stories-BzEpckjh.js → Toast.stories-BX8anaPj.js} +3 -3
- package/dist/assets/{TokyoUIAttach-BvBvQVx_.js → TokyoUIAttach-BWl7Jkq1.js} +1 -1
- package/dist/assets/{TokyoUIClose-DFIfVIfy.js → TokyoUIClose-thK8sk63.js} +1 -1
- package/dist/assets/TokyoUIEmojiFrowning-DTIcabpJ.js +1 -0
- package/dist/assets/{TokyoUIExpand-DThzqohx.js → TokyoUIExpand-oMdXmNcg.js} +1 -1
- package/dist/assets/{TokyoUIEye-BsOt8ZdC.js → TokyoUIEye-CteyS9_g.js} +1 -1
- package/dist/assets/{TokyoUIFav-DGbkVriC.js → TokyoUIFav-DOVerCtW.js} +1 -1
- package/dist/assets/{TokyoUIInfo-nHX2jpp7.js → TokyoUIInfo-DbkQBubr.js} +1 -1
- package/dist/assets/{TokyoUILanguage-BNq9ng3F.js → TokyoUILanguage-CLpo5Vdq.js} +1 -1
- package/dist/assets/{TokyoUILock-C_glX9Ec.js → TokyoUILock-CENLMUf4.js} +1 -1
- package/dist/assets/{TokyoUIMinus-B9ja89W6.js → TokyoUIMinus-RacYe9uc.js} +1 -1
- package/dist/assets/{TokyoUINotebook-DNjno-oI.js → TokyoUINotebook-kt8pWj_a.js} +1 -1
- package/dist/assets/{TokyoUINotesWithPad-Bqcca_-M.js → TokyoUINotesWithPad-B-o4vu0Y.js} +1 -1
- package/dist/assets/{TokyoUIPhone-BHLDT6dz.js → TokyoUIPhone-CvuBM6jb.js} +1 -1
- package/dist/assets/TokyoUIStarFilled-CVOoYvsY.js +1 -0
- package/dist/assets/{TokyoUITag-CulX0-gf.js → TokyoUITag-CS4uarg6.js} +1 -1
- package/dist/assets/{TokyoUIUpload-Bi3CuQzX.js → TokyoUIUpload-Bf0gWv4M.js} +1 -1
- package/dist/assets/{TokyoUIUser-DG6LLnJu.js → TokyoUIUser-Cvenl_VS.js} +1 -1
- package/dist/assets/{Tooltip-IxKOQjjo.js → Tooltip-QK1t1Dxo.js} +1 -1
- package/dist/assets/{Tooltip.stories-DHYG0ggY.js → Tooltip.stories-AfMdDKGw.js} +2 -2
- package/dist/assets/Tooltip.tests.stories-Ccdb2iIL.js +65 -0
- package/dist/assets/{breakpoints-3Mi8ztBx.js → breakpoints-BPRjK8Gx.js} +2 -2
- package/dist/assets/{breakpoints-BPZAI3l-.js → breakpoints-BnIQa3dd.js} +2 -2
- package/dist/assets/{breakpoints-DxEeOfvq.js → breakpoints-biZ_pFE-.js} +2 -2
- package/dist/assets/{changelog-BvX8uMXW.js → changelog-DqEbrpdu.js} +2 -2
- package/dist/assets/{chunk-XP5HYGXS-D5tuasO7.js → chunk-XP5HYGXS-BpfKkqn7.js} +1 -1
- package/dist/assets/{client-DXF5tT0h.js → client-C1fTPCwG.js} +1 -1
- package/dist/assets/componentNames-BWg8gXNi.js +1 -0
- package/dist/assets/createRequiredContext-Bv1cwElm.css +1 -0
- package/dist/assets/createRequiredContext-IpQVcdjv.js +241 -0
- package/dist/assets/{defaults-B1rzzf6M.js → defaults-BpPocAyH.js} +1 -1
- package/dist/assets/{en-DNQ_gory.js → en-BBJvFHhz.js} +1 -1
- package/dist/assets/entry-preview-4wbJFZWp.js +2 -0
- package/dist/assets/{entry-preview-docs-FEPuDDnY.js → entry-preview-docs-Cyz3fU9E.js} +2 -2
- package/dist/assets/getCountryFlagUrl-CP-PpZV_.js +1 -0
- package/dist/assets/{getTokenVar-CXvtPVqa.js → getTokenVar-8O8GY2BH.js} +2 -2
- package/dist/assets/{hover-sR2377QI.js → hover-BX1A9sbP.js} +2 -2
- package/dist/assets/hover-CyqlCJAZ.js +13 -0
- package/dist/assets/hover-TtyRUS92.js +14 -0
- package/dist/assets/{iframe-BE13K_u-.js → iframe-1aej65yW.js} +2 -2
- package/dist/assets/{index-BYp7dUfi.js → index-7S8Dj0J-.js} +1 -1
- package/dist/assets/index-BN6VMYqa.js +1 -0
- package/dist/assets/{index-jEDObK_5.js → index-BPrLDK9Y.js} +1 -1
- package/dist/assets/{index-v0utLE_k.js → index-BrBqb5Q4.js} +1 -1
- package/dist/assets/{index--DZ0VX4g.js → index-Bt5ip-xO.js} +1 -1
- package/dist/assets/{index-DRKYGVyc.js → index-C6wF8VM1.js} +1 -1
- package/dist/assets/{index-C66nt8TK.js → index-C7hTFOIV.js} +1 -1
- package/dist/assets/{index-wFyje0se.js → index-C9SxdfPC.js} +1 -1
- package/dist/assets/index-Cb9e4tly.js +1 -0
- package/dist/assets/index-ChsGqxH_.js +9 -0
- package/dist/assets/{index-DUJ9kiQB.js → index-Ct6rFtHa.js} +2 -2
- package/dist/assets/{index-DDyIDR-R.js → index-Ctq3gFTp.js} +1 -1
- package/dist/assets/{index-jPlWeKki.js → index-DHRyQyAr.js} +1 -1
- package/dist/assets/{index-BfBdt3zW.js → index-DSVnVYmz.js} +1 -1
- package/dist/assets/{index-CjMmneJr.js → index-DbKU6UKS.js} +3 -3
- package/dist/assets/{index-DbgDZDus.js → index-QwIMrChO.js} +1 -1
- package/dist/assets/{intro-BQxazeZ4.js → intro-DdVpbEd7.js} +2 -2
- package/dist/assets/{jsx-runtime-BYouaCF_.js → jsx-runtime-BTJTZTIL.js} +2 -2
- package/dist/assets/{message-BraTJ16C.js → message-BqoANQez.js} +1 -1
- package/dist/assets/{migrating-from-less-_WbBpNno.js → migrating-from-less-BEb-jUt0.js} +2 -2
- package/dist/assets/playground-B2TCUZ8e.css +1 -0
- package/dist/assets/{playground.stories-DNP6DMoh.js → playground.stories-DY51tRqn.js} +212 -212
- package/dist/assets/{preview-DqZVArh_.js → preview-BQBAjcHH.js} +1 -1
- package/dist/assets/{preview-ChKXYagv.js → preview-BTjEYo28.js} +1 -1
- package/dist/assets/preview-CGX1Npc-.js +2 -0
- package/dist/assets/preview-DdD39PIn.js +22 -0
- package/dist/assets/react-18-DfUnyR7e.js +1 -0
- package/dist/assets/react.esm-CLta6p5c.js +65 -0
- package/dist/assets/{render-icon-CVTdrNe-.js → render-icon-BT0Aq7PA.js} +1 -1
- package/dist/assets/{render-icon-CwRdpin3.js → render-icon-Du0nasoi.js} +1 -1
- package/dist/assets/{shared-strings-CcWGHelY.js → shared-strings-BzaHC9x5.js} +1 -1
- package/dist/assets/{styled-components.browser.esm-CwsnEFnS.js → styled-components.browser.esm-BgpGX317.js} +1 -1
- package/dist/assets/test-utils-DCJN9LZk.js +9 -0
- package/dist/assets/{tokens-rA5iljxB.js → tokens-B4MAommX.js} +2 -2
- package/dist/assets/{tokens-BpVbkeg9.js → tokens-BDP7irH9.js} +2 -2
- package/dist/assets/{tokens-Do5DDIVZ.js → tokens-Zg7Oiw4A.js} +2 -2
- package/dist/assets/useHostname-Y3PlXofY.js +1 -0
- package/dist/assets/{useMergeRefs-BKVZOB6R.js → useMergeRefs-D_RfOOSs.js} +1 -1
- package/dist/assets/{useMergeRefs-CeyIhNgY.js → useMergeRefs-SFH7Mw4x.js} +1 -1
- package/dist/assets/{usePortalElement-D-MBkGYE.js → usePortalElement-DOCqSure.js} +2 -2
- package/dist/assets/{useTheme-DiEoTTOi.js → useTheme-DFSR9KPZ.js} +1 -1
- package/dist/assets/{useToken-BEsvy84L.js → useToken-DI8WZBSr.js} +1 -1
- package/dist/assets/{welcome-CjdlfIE9.js → welcome-1RksTJjG.js} +2 -2
- package/dist/assets/{zeroheight-COTIl-YQ.js → zeroheight-D2g3gC9T.js} +2 -2
- package/dist/iframe.html +1 -1
- package/dist/index.json +1 -1
- package/dist/preview-stats.json +1907 -1169
- package/dist/project.json +1 -1
- package/package.json +3 -3
- package/dist/assets/00.LayoutFlex.stories-DsoQ41ru.js +0 -85
- package/dist/assets/00.using-responsive-props-CXXBchqR.js +0 -18
- package/dist/assets/01.semantic-tokens-DA4N50sn.js +0 -2
- package/dist/assets/10.Combinations.stories-D5C6zeLo.js +0 -144
- package/dist/assets/30.icons.explorer-gDqz6aGC.js +0 -73
- package/dist/assets/40.illustrations.explorer-Cw6qUJFV.js +0 -21
- package/dist/assets/Avatar.stories-QILX30d4.js +0 -42
- package/dist/assets/AvatarWithStatus.stories-CiIZ7860.js +0 -41
- package/dist/assets/Box.stories-Bj6O093l.js +0 -44
- package/dist/assets/Checkbox.tests.stories-Bn3p5No-.js +0 -64
- package/dist/assets/Chips-DAK2so_G.css +0 -1
- package/dist/assets/Chips.stories-FqjAsoAI.js +0 -150
- package/dist/assets/Color-YHDXOIA2-Brn_ueLX.js +0 -1
- package/dist/assets/CountryFlag-ClC7kEHn.js +0 -49
- package/dist/assets/DocsRenderer-CFRXHY34-Drp94F88.js +0 -2
- package/dist/assets/FieldButton.stories-DN08cc4N.js +0 -1
- package/dist/assets/Flag.stories-hPDFXFLs.js +0 -114
- package/dist/assets/Flag.test.stories-Dn7xe9kp.js +0 -27
- package/dist/assets/FormControl-CeIJk4_Z.js +0 -7
- package/dist/assets/Heading.stories-Pcuq78-p.js +0 -82
- package/dist/assets/Icon-RSC-DHJisRIw.js +0 -6
- package/dist/assets/IntegrationWithReactHookForm.stories-DjhZzsb9.js +0 -274
- package/dist/assets/LayoutGrid.stories-CNvZbuzu.js +0 -88
- package/dist/assets/Link.stories-DQx9wq8H.js +0 -271
- package/dist/assets/Loader.stories-DWRd5a4n.js +0 -37
- package/dist/assets/ObserveIntersection.stories-BabE9srq.js +0 -27
- package/dist/assets/OnboardingTooltip.stories-BGQM-hLj.js +0 -66
- package/dist/assets/OnboardingTooltip.tests.stories-4LRVGnuI.js +0 -79
- package/dist/assets/PreplyLogo.stories-CrTgCgF0.js +0 -97
- package/dist/assets/ProgressSteps.stories-DDhuAaz0.js +0 -31
- package/dist/assets/RootProvider-DLsVkcFn.js +0 -1
- package/dist/assets/ShowOnIntersection.stories-ipu84fct.js +0 -17
- package/dist/assets/Text.stories-CkC6dvyE.js +0 -69
- package/dist/assets/TextField-Co0wSa5c.js +0 -1
- package/dist/assets/TextHighlighted.stories-BJsM40kL.js +0 -32
- package/dist/assets/TextInline.stories-CL1L2t2-.js +0 -37
- package/dist/assets/Tooltip.tests.stories-DWwqRNUM.js +0 -65
- package/dist/assets/componentNames-CpCJzpB9.js +0 -1
- package/dist/assets/entry-preview-Cgr68VmN.js +0 -10
- package/dist/assets/hover-BJ9rZrzg.js +0 -13
- package/dist/assets/hover-CeDdAnNA.js +0 -14
- package/dist/assets/index-B3evPFBL.js +0 -9
- package/dist/assets/index-uOP2uDdf.js +0 -1
- package/dist/assets/playground-DJaUjyzx.css +0 -1
- package/dist/assets/preview-DFIaQ6pR.js +0 -2
- package/dist/assets/preview-Dlcr0l4_.js +0 -22
- package/dist/assets/react-18-CYoSI7Qu.js +0 -1
- package/dist/assets/useHostname-CH18gHFj.js +0 -1
@@ -0,0 +1,85 @@
|
|
1
|
+
import{j as n}from"./jsx-runtime-BTJTZTIL.js";import{L as r}from"./LayoutFlexItem-C4vty6HO.js";import{L as p}from"./LayoutFlex-BaS7fGmA.js";import{S as t,a as h}from"./consts-KAYct7Gj.js";import"./index-ChsGqxH_.js";import"./index-Cb9e4tly.js";import"./_commonjsHelpers-Cpj98o6Y.js";import"./align-self-BM6l9H5Z.js";import"./layout-relative.module-ed9bC4H4.js";import"./classNames-BUL1Zq7e.js";import"./constants-DYYVurUY.js";import"./filterAttributesPassedByRadixUIAtRuntime-B7QTVwVw.js";import"./componentNames-BWg8gXNi.js";import"./index-DdzHuZ-Y.js";import"./defaults-BpPocAyH.js";const A={title:"components/LayoutFlex",component:p,subcomponents:{LayoutFlexItem:r},argTypes:{gap:{description:t},padding:{description:h},direction:{description:t},justifyContent:{description:t},alignItems:{description:t},hide:{description:t},relative:{description:t}}},e=()=>n.jsxs(p,{gap:"xs",children:[n.jsx("div",{style:{minWidth:"100px",backgroundColor:"hotpink"},children:" "}),n.jsx("div",{style:{minWidth:"100px",backgroundColor:"hotpink"},children:" "}),n.jsx(r,{stretch:!0,children:n.jsx("div",{style:{minWidth:"100px",backgroundColor:"hotpink",textAlign:"center"},children:"stretch"})})]});e.storyName="LayoutFlex";const o={parameters:{chromatic:{disableSnapshot:!0}},args:{gap:"16",children:n.jsxs(n.Fragment,{children:[n.jsx("div",{style:{minWidth:"100px",height:50,backgroundColor:"hotpink"},children:" "}),n.jsx("div",{style:{minWidth:"100px",height:75,backgroundColor:"hotpink"},children:" "}),n.jsx(r,{stretch:!0,children:n.jsx("div",{style:{minWidth:"100px",height:100,backgroundColor:"hotpink",textAlign:"center"}})})]}),dataset:{qaid:"layout-flex"}},argTypes:{dataset:{control:"object"},nowrap:{control:"boolean"},hide:{control:"boolean"},relative:{control:"boolean"},inline:{control:"boolean"},direction:{control:"select"},children:{control:!1},column:{table:{disable:!0}},reverse:{table:{disable:!0}}}};var i,a,l;e.parameters={...e.parameters,docs:{...(i=e.parameters)==null?void 0:i.docs,source:{originalSource:`() => <LayoutFlex gap="xs">
|
2
|
+
<div style={{
|
3
|
+
minWidth: '100px',
|
4
|
+
backgroundColor: 'hotpink'
|
5
|
+
}}> </div>
|
6
|
+
<div style={{
|
7
|
+
minWidth: '100px',
|
8
|
+
backgroundColor: 'hotpink'
|
9
|
+
}}> </div>
|
10
|
+
<LayoutFlexItem stretch>
|
11
|
+
<div style={{
|
12
|
+
minWidth: '100px',
|
13
|
+
backgroundColor: 'hotpink',
|
14
|
+
textAlign: 'center'
|
15
|
+
}}>
|
16
|
+
stretch
|
17
|
+
</div>
|
18
|
+
</LayoutFlexItem>
|
19
|
+
</LayoutFlex>`,...(l=(a=e.parameters)==null?void 0:a.docs)==null?void 0:l.source}}};var s,d,c;o.parameters={...o.parameters,docs:{...(s=o.parameters)==null?void 0:s.docs,source:{originalSource:`{
|
20
|
+
parameters: {
|
21
|
+
chromatic: {
|
22
|
+
disableSnapshot: true
|
23
|
+
}
|
24
|
+
},
|
25
|
+
args: {
|
26
|
+
gap: '16',
|
27
|
+
children: <>
|
28
|
+
<div style={{
|
29
|
+
minWidth: '100px',
|
30
|
+
height: 50,
|
31
|
+
backgroundColor: 'hotpink'
|
32
|
+
}}> </div>
|
33
|
+
<div style={{
|
34
|
+
minWidth: '100px',
|
35
|
+
height: 75,
|
36
|
+
backgroundColor: 'hotpink'
|
37
|
+
}}> </div>
|
38
|
+
<LayoutFlexItem stretch>
|
39
|
+
<div style={{
|
40
|
+
minWidth: '100px',
|
41
|
+
height: 100,
|
42
|
+
backgroundColor: 'hotpink',
|
43
|
+
textAlign: 'center'
|
44
|
+
}}></div>
|
45
|
+
</LayoutFlexItem>
|
46
|
+
</>,
|
47
|
+
dataset: {
|
48
|
+
qaid: 'layout-flex'
|
49
|
+
}
|
50
|
+
},
|
51
|
+
argTypes: {
|
52
|
+
dataset: {
|
53
|
+
control: 'object'
|
54
|
+
},
|
55
|
+
nowrap: {
|
56
|
+
control: 'boolean'
|
57
|
+
},
|
58
|
+
hide: {
|
59
|
+
control: 'boolean'
|
60
|
+
},
|
61
|
+
relative: {
|
62
|
+
control: 'boolean'
|
63
|
+
},
|
64
|
+
inline: {
|
65
|
+
control: 'boolean'
|
66
|
+
},
|
67
|
+
direction: {
|
68
|
+
control: 'select'
|
69
|
+
},
|
70
|
+
children: {
|
71
|
+
control: false
|
72
|
+
},
|
73
|
+
// Disable deprecated props
|
74
|
+
column: {
|
75
|
+
table: {
|
76
|
+
disable: true
|
77
|
+
}
|
78
|
+
},
|
79
|
+
reverse: {
|
80
|
+
table: {
|
81
|
+
disable: true
|
82
|
+
}
|
83
|
+
}
|
84
|
+
}
|
85
|
+
}`,...(c=(d=o.parameters)==null?void 0:d.docs)==null?void 0:c.source}}};const E=["Base","Playground"];export{e as Base,o as Playground,E as __namedExportsOrder,A as default};
|
@@ -1,4 +1,4 @@
|
|
1
|
-
import{j as e}from"./jsx-runtime-
|
1
|
+
import{j as e}from"./jsx-runtime-BTJTZTIL.js";import{useMDXComponents as r}from"./index-BN6VMYqa.js";import{M as o}from"./index-DbKU6UKS.js";import"./index-ChsGqxH_.js";import"./index-Cb9e4tly.js";import"./_commonjsHelpers-Cpj98o6Y.js";import"./iframe-1aej65yW.js";import"./index-BPrLDK9Y.js";import"./index-C7hTFOIV.js";import"./index-Cu4lwwaE.js";import"./index-CXQShRbs.js";import"./index-DrFu-skq.js";function t(s){const n={a:"a",code:"code",em:"em",h1:"h1",h2:"h2",li:"li",p:"p",pre:"pre",strong:"strong",ul:"ul",...r(),...s.components};return e.jsxs(e.Fragment,{children:[e.jsx(o,{title:"Guides/Installation/Applications"}),`
|
2
2
|
`,e.jsx(n.h1,{id:"installation-applications",children:"Installation: Applications"}),`
|
3
3
|
`,e.jsx(n.p,{children:"This guide applies to both client-side and server-side rendered React applications."}),`
|
4
4
|
`,e.jsx(n.h2,{id:"packages",children:"Packages"}),`
|
@@ -47,4 +47,4 @@ ReactDOM.render(
|
|
47
47
|
document.getElementById('root'),
|
48
48
|
);
|
49
49
|
`})}),`
|
50
|
-
`,e.jsxs(n.p,{children:[e.jsx(n.strong,{children:"Note:"})," If your app is rendered server side, continue with the instructions in the ",e.jsx(n.a,{href:"/story/guides-installation-ssr--page",children:"Installation: SSR"})," guide."]})]})}function
|
50
|
+
`,e.jsxs(n.p,{children:[e.jsx(n.strong,{children:"Note:"})," If your app is rendered server side, continue with the instructions in the ",e.jsx(n.a,{href:"/story/guides-installation-ssr--page",children:"Installation: SSR"})," guide."]})]})}function g(s={}){const{wrapper:n}={...r(),...s.components};return n?e.jsx(n,{...s,children:e.jsx(t,{...s})}):t(s)}export{g as default};
|
@@ -1,4 +1,4 @@
|
|
1
|
-
import{j as n}from"./jsx-runtime-
|
1
|
+
import{j as n}from"./jsx-runtime-BTJTZTIL.js";import{useMDXComponents as t}from"./index-BN6VMYqa.js";import{M as i}from"./index-DbKU6UKS.js";import"./index-ChsGqxH_.js";import"./index-Cb9e4tly.js";import"./_commonjsHelpers-Cpj98o6Y.js";import"./iframe-1aej65yW.js";import"./index-BPrLDK9Y.js";import"./index-C7hTFOIV.js";import"./index-Cu4lwwaE.js";import"./index-CXQShRbs.js";import"./index-DrFu-skq.js";function o(s){const e={a:"a",code:"code",h1:"h1",h2:"h2",h3:"h3",p:"p",pre:"pre",strong:"strong",...t(),...s.components};return n.jsxs(n.Fragment,{children:[n.jsx(i,{title:"Guides/Assets/Favicons"}),`
|
2
2
|
`,n.jsx(e.h1,{id:"favicons",children:"Favicons"}),`
|
3
3
|
`,n.jsxs(e.p,{children:["The optimised assets are available under ",n.jsx(e.strong,{children:"preply.com"})," in the formats required by modern and legacy browsers, as well as Android and iOS devices."]}),`
|
4
4
|
`,n.jsxs(e.p,{children:["Refer to ",n.jsx(e.a,{href:"https://evilmartians.com/chronicles/how-to-favicon-in-2021-six-files-that-fit-most-needs",rel:"nofollow",children:"How to Favicon in 2022: Six files that fit most needs"})," for a detailed breakdown of the formats."]}),`
|
@@ -18,4 +18,4 @@ import{j as n}from"./jsx-runtime-BYouaCF_.js";import{useMDXComponents as t}from"
|
|
18
18
|
href="https://static.preply.com/ds/icons/rebrand-23-v0/icon-180.pngg"
|
19
19
|
/>
|
20
20
|
<link rel="manifest" href="https://static.preply.com/ds/icons/rebrand-23-v0/web.manifest.json" />
|
21
|
-
`})})]})}function
|
21
|
+
`})})]})}function j(s={}){const{wrapper:e}={...t(),...s.components};return e?n.jsx(e,{...s,children:n.jsx(o,{...s})}):o(s)}export{j as default};
|
@@ -1,4 +1,4 @@
|
|
1
|
-
import{j as t}from"./jsx-runtime-
|
1
|
+
import{j as t}from"./jsx-runtime-BTJTZTIL.js";import{useMDXComponents as P}from"./index-BN6VMYqa.js";import{M as F}from"./index-DbKU6UKS.js";import{L as p,T as v}from"./LayoutFlex-lbriU8N6.js";import{r as c}from"./index-Cb9e4tly.js";import{g as E,u as O}from"./useToken-DI8WZBSr.js";import{i as H,T as d,u as W}from"./TextHighlighted-DBcNj2pQ.js";import{e as M,d as N,T as A}from"./constants-BgBLeZzp.js";import{t as B}from"./tokens-ZvFzTwDp.js";import{e as L,u as D,C as _,c as V}from"./useTheme-DFSR9KPZ.js";import{L as y}from"./LayoutGrid-B4eBqEgI.js";import{d as o}from"./styled-components.browser.esm-BgpGX317.js";import{o as K}from"./mixins-DZk1Zeoo.js";import"./index-ChsGqxH_.js";import"./iframe-1aej65yW.js";import"./index-BPrLDK9Y.js";import"./_commonjsHelpers-Cpj98o6Y.js";import"./index-C7hTFOIV.js";import"./index-Cu4lwwaE.js";import"./index-CXQShRbs.js";import"./index-DrFu-skq.js";import"./text-centered-C0V1O_Sd.js";import"./classNames-BUL1Zq7e.js";import"./filterAttributesPassedByRadixUIAtRuntime-Bye2JkZ0.js";import"./defaults-BpPocAyH.js";import"./componentNames-BWg8gXNi.js";import"./index-DdzHuZ-Y.js";import"./layout-relative.module-1z75aSwo-DNAR_Nv2.js";import"./breakpoints-BfMlrtxE.js";import"./constants-DYYVurUY.js";const q=(e,r)=>({token:r,name:e,id:r[A],type:r[N],colorSchemeAware:!!r[M]}),R=(e,r)=>Object.entries(r).flatMap(([i,n])=>{const s=`${e}.${i}`;return H(n)?[q(s,n)]:R(s,n)}),X=e=>Object.entries(e).flatMap(([r,i])=>R(r,i)),Y=X(B),G=(e,r,i)=>e.filter(n=>{if(r==="-"||r==="--")return!0;if(r!=null&&r.startsWith("--"))return n.id.toLowerCase().startsWith(r.substring(2).toLowerCase());if(r){const s=n.name.toLowerCase().indexOf(r.toLowerCase())>-1,a=n.value.toLowerCase().indexOf(r.toLowerCase())>-1;return(s||a)&&(i?n.colorSchemeAware:!n.colorSchemeAware)}return i?n.colorSchemeAware:!n.colorSchemeAware}),z=c.createContext({terms:"",colorScheme:void 0,results:[],setColorScheme:()=>{},setSearchTerms:()=>{}});var C;const U=((C=window==null?void 0:window.localStorage)==null?void 0:C.getItem("storybook.ds-color-scheme"))||void 0;function J(e,r){return Y.map(n=>({...n,value:`${E(e,r,n.token)}`}))}const Q=({children:e})=>{const{findColorScheme:r}=L(),{theme:i}=D(),[n,s]=c.useState(U),[a,h]=c.useState(""),[g,x]=c.useState([]),u=c.useCallback(m=>s(m),[s]),f=c.useCallback(m=>h(m),[h]);if(!i)throw new Error("useToken() must be used within a ThemeProvider");return c.useEffect(()=>{const m=r(n||"base"),w=J(i,m);x(G(w,a,!!n))},[n,r,a,i]),t.jsx(z.Provider,{value:{terms:a,results:g,colorScheme:n,setSearchTerms:f,setColorScheme:u},children:t.jsx(_,{colorScheme:n||"base",children:e})})},j=()=>c.useContext(z),Z=o.div`
|
2
2
|
width: 64px;
|
3
3
|
height: 64px;
|
4
4
|
color: white;
|
@@ -323,4 +323,4 @@ import{j as t}from"./jsx-runtime-BYouaCF_.js";import{useMDXComponents as P}from"
|
|
323
323
|
border-width: 1px;
|
324
324
|
border-color: ${({terms:e})=>e?"orange;":"#ccc"};
|
325
325
|
`,yt=()=>{const{theme:e}=D(),{themes:r}=L(),{setTheme:i}=W(),{colorScheme:n,terms:s,setColorScheme:a,setSearchTerms:h}=j(),g=c.useMemo(()=>{var l;return new URL(((l=window.top)==null?void 0:l.location.href)||"")},[]),x=g.searchParams,u=x.get("theme"),f=u&&(r==null?void 0:r.find(l=>l.name===u)),m=x.get("colorScheme"),w=x.get("terms");c.useEffect(()=>{var l;u&&(u!==e.name&&i&&f&&i(f),u&&m!==n&&a(m),h(w||"")),x.delete("theme"),x.delete("colorScheme"),x.delete("terms"),(l=window.top)==null||l.history.replaceState({},"",g)},[]);const I=c.useCallback(l=>h(l),[h]);return t.jsx(bt,{children:t.jsx(jt,{children:t.jsx(wt,{children:t.jsxs(p,{gap:"xs",direction:"column",children:[t.jsx(p,{justifyContent:"space-between",alignItems:"start",children:t.jsx("h1",{id:"tokens",className:"sbdocs sbdocs-h1 css-1j28tt",children:"Token Explorer"})}),t.jsxs(p,{gap:"2xs",nowrap:!0,children:[t.jsx(vt,{terms:s,type:"text",placeholder:"examples: teal, 300, action, primary, xs, --4adef, #00, 12px",onChange:l=>I(l.target.value),value:s}),t.jsx(pt,{})]}),t.jsx(ft,{})]})})})})};function T(e){return t.jsxs(t.Fragment,{children:[t.jsx(F,{title:"Guides/Token Explorer"}),`
|
326
|
-
`,t.jsxs(Q,{children:[t.jsx(yt,{}),t.jsx(lt,{})]})]})}function
|
326
|
+
`,t.jsxs(Q,{children:[t.jsx(yt,{}),t.jsx(lt,{})]})]})}function Zt(e={}){const{wrapper:r}={...P(),...e.components};return r?t.jsx(r,{...e,children:t.jsx(T,{...e})}):T()}export{Zt as default};
|
@@ -0,0 +1,18 @@
|
|
1
|
+
import{j as e}from"./jsx-runtime-BTJTZTIL.js";import{useMDXComponents as i}from"./index-BN6VMYqa.js";import{A as r}from"./Avatar-BpSn3__A.js";import{M as p}from"./index-DbKU6UKS.js";import{B as a}from"./breakpoints-BfMlrtxE.js";import"./index-ChsGqxH_.js";import"./index-Cb9e4tly.js";import"./_commonjsHelpers-Cpj98o6Y.js";import"./filterAttributesPassedByRadixUIAtRuntime-Bye2JkZ0.js";import"./classNames-BUL1Zq7e.js";import"./componentNames-BWg8gXNi.js";import"./index-DdzHuZ-Y.js";import"./constants--ewUoBsO.js";import"./defaults-BpPocAyH.js";import"./iframe-1aej65yW.js";import"./index-BPrLDK9Y.js";import"./index-C7hTFOIV.js";import"./index-Cu4lwwaE.js";import"./index-CXQShRbs.js";import"./index-DrFu-skq.js";const c=()=>e.jsx("table",{style:{fontSize:14},children:e.jsx("tbody",{children:Object.entries(a).map(([n,s])=>e.jsxs("tr",{children:[e.jsx("td",{style:{padding:"0px 40px 10px 20px"},children:e.jsx("code",{children:n})}),e.jsx("td",{style:{padding:"0px 40px 10px 20px"},children:e.jsxs("code",{children:[s,"px"]})})]},n))})}),o="./web-lib/src/components/Avatar/docs/static/avatar-1.png";function t(n){const s={code:"code",h1:"h1",h2:"h2",p:"p",pre:"pre",...i(),...n.components};return e.jsxs(e.Fragment,{children:[e.jsx(p,{title:"Guides/Responsive Props"}),`
|
2
|
+
`,e.jsx(s.h1,{id:"responsive-props",children:"Responsive Props"}),`
|
3
|
+
`,e.jsx(s.p,{children:`Some component props optionally accept responsive values for different screen sizes
|
4
|
+
based on the global breakpoints:`}),`
|
5
|
+
`,e.jsx(s.pre,{children:e.jsx(s.code,{className:"language-jsx",children:`<Component prop={<value>} />
|
6
|
+
<Component prop={{ _: <value>, '<breakpoint>': <value>, ... }} />
|
7
|
+
`})}),`
|
8
|
+
`,e.jsxs(s.p,{children:["Where ",e.jsx(s.code,{children:"_"})," is the value for the smallest breakpoint, and ",e.jsx(s.code,{children:"<breakpoint>"}),` is one of
|
9
|
+
the following, predefined values:`]}),`
|
10
|
+
`,e.jsx(c,{}),`
|
11
|
+
`,e.jsx(s.h2,{id:"example",children:"Example"}),`
|
12
|
+
`,`
|
13
|
+
`,e.jsx(r,{src:o,size:"24"}),`
|
14
|
+
`,e.jsx(r,{src:o,size:{_:"24","medium-l":"48","wide-s":"64"}}),`
|
15
|
+
`,e.jsx(s.pre,{children:e.jsx(s.code,{className:"language-jsx",children:`<Avatar src={url} size="24" />
|
16
|
+
<Avatar src={url} size={{ _: '24', 'medium-l': '48', 'wide-s': '64' }} />
|
17
|
+
`})}),`
|
18
|
+
`,e.jsxs(s.p,{children:["Try resizing your viewport using the dev tools to see the ",e.jsx(s.code,{children:"Avatar"})," size update."]})]})}function B(n={}){const{wrapper:s}={...i(),...n.components};return s?e.jsx(s,{...n,children:e.jsx(t,{...n})}):t(n)}export{B as default,o as url};
|
@@ -0,0 +1,2 @@
|
|
1
|
+
import{j as r}from"./jsx-runtime-BTJTZTIL.js";import{useMDXComponents as m}from"./index-BN6VMYqa.js";import{M as k}from"./index-DbKU6UKS.js";import{H as a,B as s}from"./Button-BMhW7Ryu.js";import{L as d}from"./LayoutGrid-B4eBqEgI.js";import{L as l}from"./LayoutGridItem-DKo47-gH.js";import"./index-Cb9e4tly.js";import{t as x}from"./tokens-ZvFzTwDp.js";import"./index-ChsGqxH_.js";import"./iframe-1aej65yW.js";import"./index-BPrLDK9Y.js";import"./_commonjsHelpers-Cpj98o6Y.js";import"./index-C7hTFOIV.js";import"./index-Cu4lwwaE.js";import"./index-CXQShRbs.js";import"./index-DrFu-skq.js";import"./text-centered-C0V1O_Sd.js";import"./classNames-BUL1Zq7e.js";import"./filterAttributesPassedByRadixUIAtRuntime-Bye2JkZ0.js";import"./componentNames-BWg8gXNi.js";import"./index-DdzHuZ-Y.js";import"./render-icon-Du0nasoi.js";import"./defaults-BpPocAyH.js";import"./useHostname-Y3PlXofY.js";import"./index-CC6DAVyL.js";import"./breakpoints-BfMlrtxE.js";import"./layout-relative.module-1z75aSwo-DNAR_Nv2.js";import"./constants-DYYVurUY.js";import"./constants-BgBLeZzp.js";const o=({inverted:t,textToken:n})=>{const c=x.color.text[n];return Array.isArray(c)?r.jsxs(l,{children:[r.jsx(a,{level:"h4",children:n}),r.jsx("div",{style:{color:`var(--${c[1]})`,maxWidth:"240px",padding:"10px",background:`var(--${t?x.color.background.primaryInverted[1]:x.color.background.primary[1]})`},children:r.jsxs("code",{children:["color.text.",n]})})]},n):null};o.defaultProps={inverted:!1};const e=({inverted:t,bgToken:n})=>{const c=x.color.background[n];return Array.isArray(c)?r.jsxs(l,{children:[r.jsx(a,{level:"h4",children:n}),r.jsxs("div",{style:{background:`var(--${x.color.background[n][1]})`,color:`var(--${t?x.color.text.inverted[1]:x.color.text.primary[1]})`,maxWidth:"240px",padding:"10px"},children:["Background token: ",r.jsxs("code",{children:["color.background.",n]})]})]},n):null};e.defaultProps={inverted:!1};const i=({contentToken:t})=>{const n=x.color.border[t];return Array.isArray(n)?r.jsxs(l,{children:[r.jsx(a,{level:"h4",children:t}),r.jsx("br",{}),r.jsxs("div",{style:{border:`1px solid var(--${n[1]})`,background:"transparent",color:`var(--${n[1]})`,maxWidth:"240px",height:"50px",padding:"10px"},children:["color.border.",t]})]},t):null};i.defaultProps={};const p=()=>r.jsxs(d,{gap:"xs",columns:2,children:[r.jsx(s,{children:"Token family: action.variant.primary.*"}),r.jsx(s,{variant:"secondary",children:"Token family: action.variant.secondary.*"}),r.jsx(s,{variant:"tertiary",children:"Token family: action.variant.tertiary.*"}),r.jsx(s,{variant:"ghost",children:"Token family: action.variant.ghost.*"}),r.jsx(s,{variant:"critical",children:"Token family: action.variant.critical.*"}),r.jsx(s,{variant:"onColor",children:"Token family: action.variant.onColor.*"}),r.jsx(s,{variant:"inverted",children:"Token family: action.variant.inverted.*"}),r.jsx(s,{disabled:!0,children:"Token family: action.variant.disabled.*"})]}),h=()=>r.jsxs("div",{children:[r.jsx(a,{level:"h1",children:"Semantic token examples"}),r.jsx("p",{children:"With Tokyo UI the semantic tokens have been renamed and expanded to cover more use cases. Here is a list of the most important ones."}),r.jsx("br",{}),r.jsx("hr",{}),r.jsx("br",{}),r.jsx(a,{level:"h2",children:"Text tokens"}),r.jsx("br",{}),r.jsx("br",{}),r.jsxs(d,{gap:"xs",columns:4,children:[r.jsx(o,{textToken:"primary"}),r.jsx(o,{textToken:"secondary"}),r.jsx(o,{textToken:"tertiary"}),r.jsx(o,{textToken:"accentDark"}),r.jsx(o,{textToken:"placeholder"}),r.jsx(o,{textToken:"inverted",inverted:!0}),r.jsx(o,{textToken:"positive"}),r.jsx(o,{textToken:"info"}),r.jsx(o,{textToken:"warning"}),r.jsx(o,{textToken:"critical"})]}),r.jsx("br",{}),r.jsx("br",{}),r.jsx(a,{level:"h2",children:"Background tokens"}),r.jsxs(d,{gap:"xs",columns:4,children:[r.jsx(e,{bgToken:"primary"}),r.jsx(e,{bgToken:"secondary"}),r.jsx(e,{bgToken:"tertiary"}),r.jsx(e,{bgToken:"overlay"}),r.jsx(e,{bgToken:"disabled"}),r.jsx(e,{bgToken:"brand"}),r.jsx(e,{bgToken:"brandB2b"}),r.jsx(e,{bgToken:"accentLight"}),r.jsx(e,{bgToken:"accentDark",inverted:!0}),r.jsx(e,{bgToken:"positiveLight"}),r.jsx(e,{bgToken:"positiveDark",inverted:!0}),r.jsx(e,{bgToken:"infoLight"}),r.jsx(e,{bgToken:"infoDark",inverted:!0}),r.jsx(e,{bgToken:"warningLight"}),r.jsx(e,{bgToken:"warningDark",inverted:!0}),r.jsx(e,{bgToken:"criticalLight"}),r.jsx(e,{bgToken:"criticalDark",inverted:!0}),r.jsx(e,{bgToken:"statusOnline"}),r.jsx(e,{bgToken:"statusOffline"}),r.jsx(e,{bgToken:"primaryInverted",inverted:!0}),r.jsx(e,{bgToken:"secondaryInverted",inverted:!0}),r.jsx(e,{bgToken:"tertiaryInverted",inverted:!0})]}),r.jsx("br",{}),r.jsx("hr",{}),r.jsx("br",{}),r.jsx(a,{level:"h2",children:"Action"}),r.jsx("br",{}),r.jsx(p,{}),r.jsx("br",{}),r.jsx("hr",{}),r.jsx("br",{}),r.jsx(a,{level:"h2",children:"Borders"}),r.jsx("br",{}),r.jsxs(d,{gap:"xs",columns:4,children:[r.jsx(i,{contentToken:"primary"}),r.jsx(i,{contentToken:"secondary"}),r.jsx(i,{contentToken:"secondary-opacity"}),r.jsx(i,{contentToken:"tertiary"}),r.jsx(i,{contentToken:"disabled"}),r.jsx(i,{contentToken:"brand"}),r.jsx(i,{contentToken:"critical"}),r.jsx(i,{contentToken:"focus"}),r.jsx(i,{contentToken:"positive"})]})]});function j(t){return r.jsxs(r.Fragment,{children:[r.jsx(k,{title:"Guides/Semantic tokens examples"}),`
|
2
|
+
`,r.jsx(h,{})]})}function z(t={}){const{wrapper:n}={...m(),...t.components};return n?r.jsx(n,{...t,children:r.jsx(j,{...t})}):j()}export{z as default};
|
package/dist/assets/{01.using-shorthand-props-eZLJFDHj.js → 01.using-shorthand-props-Qlxr8nV8.js}
RENAMED
@@ -1,4 +1,4 @@
|
|
1
|
-
import{j as e}from"./jsx-runtime-
|
1
|
+
import{j as e}from"./jsx-runtime-BTJTZTIL.js";import{useMDXComponents as o}from"./index-BN6VMYqa.js";import{M as r}from"./index-DbKU6UKS.js";import"./index-ChsGqxH_.js";import"./index-Cb9e4tly.js";import"./_commonjsHelpers-Cpj98o6Y.js";import"./iframe-1aej65yW.js";import"./index-BPrLDK9Y.js";import"./index-C7hTFOIV.js";import"./index-Cu4lwwaE.js";import"./index-CXQShRbs.js";import"./index-DrFu-skq.js";function s(i){const n={code:"code",h1:"h1",h2:"h2",p:"p",pre:"pre",...o(),...i.components};return e.jsxs(e.Fragment,{children:[e.jsx(r,{title:"Guides/Shorthand Props"}),`
|
2
2
|
`,e.jsx(n.h1,{id:"shorthand-props",children:"Shorthand Props"}),`
|
3
3
|
`,e.jsxs(n.p,{children:["Some components accept shorthand values for spacing properties like ",e.jsx(n.code,{children:"padding"})," and ",e.jsx(n.code,{children:"margin"}),". These props can be specified in several ways:"]}),`
|
4
4
|
`,e.jsx(n.h2,{id:"single-value",children:"Single Value"}),`
|
@@ -36,4 +36,4 @@ import{j as e}from"./jsx-runtime-BYouaCF_.js";import{useMDXComponents as o}from"
|
|
36
36
|
}}
|
37
37
|
/>
|
38
38
|
`})}),`
|
39
|
-
`,e.jsx(n.p,{children:"This allows you to have different padding configurations at different breakpoints."})]})}function
|
39
|
+
`,e.jsx(n.p,{children:"This allows you to have different padding configurations at different breakpoints."})]})}function f(i={}){const{wrapper:n}={...o(),...i.components};return n?e.jsx(n,{...i,children:e.jsx(s,{...i})}):s(i)}export{f as default};
|
@@ -0,0 +1,144 @@
|
|
1
|
+
import{j as e}from"./jsx-runtime-BTJTZTIL.js";import{L as I}from"./LayoutFlexItem-C4vty6HO.js";import{L as n}from"./LayoutFlex-BaS7fGmA.js";import{f as L,d as D}from"./styled-components.browser.esm-BgpGX317.js";import"./index-ChsGqxH_.js";import"./index-Cb9e4tly.js";import"./_commonjsHelpers-Cpj98o6Y.js";import"./align-self-BM6l9H5Z.js";import"./layout-relative.module-ed9bC4H4.js";import"./classNames-BUL1Zq7e.js";import"./constants-DYYVurUY.js";import"./filterAttributesPassedByRadixUIAtRuntime-B7QTVwVw.js";import"./componentNames-BWg8gXNi.js";import"./index-DdzHuZ-Y.js";import"./defaults-BpPocAyH.js";function S(s){return e.jsx("div",{style:{background:"yellow",width:"100%"},children:s.children})}function b(s){return e.jsx("div",{style:{background:"orange",width:"100%"},children:s.children})}function T(){return e.jsxs(e.Fragment,{children:[e.jsx("span",{children:"NowrapUndefined"}),e.jsxs(n,{dataset:{testid:"NowrapUndefined"},children:[e.jsx(S,{children:"a"}),e.jsx(b,{children:"b"})]})]})}function G(){return e.jsxs(e.Fragment,{children:[e.jsx("span",{children:"NowrapTrue"}),e.jsxs(n,{dataset:{testid:"NowrapTrue"},nowrap:!0,children:[e.jsx(S,{children:"a"}),e.jsx(b,{children:"b"})]})]})}function U(){return e.jsxs(e.Fragment,{children:[e.jsx("span",{children:"NowrapFalse"}),e.jsxs(n,{dataset:{testid:"NowrapFalse"},nowrap:!1,children:[e.jsx(S,{children:"a"}),e.jsx(b,{children:"b"})]})]})}function c(s){return e.jsx("div",{style:{background:"yellow"},children:s.children})}function x(s){return e.jsx("div",{style:{background:"orange"},children:s.children})}function P(){return e.jsxs(e.Fragment,{children:[e.jsx("span",{children:"ColumnReverseTrueUndefined"}),e.jsxs(n,{dataset:{testid:"ColumnReverseTrueUndefined"},column:!0,children:[e.jsx(c,{children:"a"}),e.jsx(x,{children:"b"})]})]})}function H(){return e.jsxs(e.Fragment,{children:[e.jsx("span",{children:"ColumnReverseTrueFalse"}),e.jsxs(n,{dataset:{testid:"ColumnReverseTrueFalse"},column:!0,reverse:!1,children:[e.jsx(c,{children:"a"}),e.jsx(x,{children:"b"})]})]})}function O(){return e.jsxs(e.Fragment,{children:[e.jsx("span",{children:"ColumnReverseTrueTrue"}),e.jsxs(n,{dataset:{testid:"ColumnReverseTrueTrue"},column:!0,reverse:!0,children:[e.jsx(c,{children:"a"}),e.jsx(x,{children:"b"})]})]})}function $(){return e.jsxs(e.Fragment,{children:[e.jsx("span",{children:"ColumnReverseFalseUndefined"}),e.jsxs(n,{dataset:{testid:"ColumnReverseFalseUndefined"},column:!1,children:[e.jsx(c,{children:"a"}),e.jsx(x,{children:"b"})]})]})}function A(){return e.jsxs(e.Fragment,{children:[e.jsx("span",{children:"ColumnReverseFalseFalse"}),e.jsxs(n,{dataset:{testid:"ColumnReverseFalseFalse"},column:!1,reverse:!1,children:[e.jsx(c,{children:"a"}),e.jsx(x,{children:"b"})]})]})}function J(){return e.jsxs(e.Fragment,{children:[e.jsx("span",{children:"ColumnReverseFalseTrue"}),e.jsxs(n,{dataset:{testid:"ColumnReverseFalseTrue"},column:!1,reverse:!0,children:[e.jsx(c,{children:"a"}),e.jsx(x,{children:"b"})]})]})}function k(){return e.jsxs(e.Fragment,{children:[e.jsx("span",{children:"ColumnReverseUndefinedUndefined"}),e.jsxs(n,{dataset:{testid:"ColumnReverseUndefinedUndefined"},children:[e.jsx(c,{children:"a"}),e.jsx(x,{children:"b"})]})]})}function N(){return e.jsxs(e.Fragment,{children:[e.jsx("span",{children:"ColumnReverseUndefinedFalse"}),e.jsxs(n,{dataset:{testid:"ColumnReverseUndefinedFalse"},reverse:!1,children:[e.jsx(c,{children:"a"}),e.jsx(x,{children:"b"})]})]})}function _(){return e.jsxs(e.Fragment,{children:[e.jsx("span",{children:"ColumnReverseUndefinedTrue"}),e.jsxs(n,{dataset:{testid:"ColumnReverseUndefinedTrue"},reverse:!0,children:[e.jsx(c,{children:"a"}),e.jsx(x,{children:"b"})]})]})}function p(s){return e.jsx("div",{style:{background:"yellow",width:"50%"},children:s.children})}function g(s){return e.jsx("div",{style:{background:"orange",width:"50%"},children:s.children})}function X(){return e.jsxs(e.Fragment,{children:[e.jsx("span",{children:"DirectionRow"}),e.jsxs(n,{dataset:{testid:"DirectionRow"},direction:"row",children:[e.jsx(p,{children:"a"}),e.jsx(g,{children:"b"})]})]})}function E(){return e.jsxs(e.Fragment,{children:[e.jsx("span",{children:"DirectionRowReverse"}),e.jsxs(n,{dataset:{testid:"DirectionRowReverse"},direction:"row-reverse",children:[e.jsx(p,{children:"a"}),e.jsx(g,{children:"b"})]})]})}function M(){return e.jsxs(e.Fragment,{children:[e.jsx("span",{children:"DirectionColumn"}),e.jsxs(n,{dataset:{testid:"DirectionColumn"},direction:"column",children:[e.jsx(p,{children:"a"}),e.jsx(g,{children:"b"})]})]})}function B(){return e.jsxs(e.Fragment,{children:[e.jsx("span",{children:"DirectionColumnReverse"}),e.jsxs(n,{dataset:{testid:"DirectionColumnReverse"},direction:"column-reverse",children:[e.jsx(p,{children:"a"}),e.jsx(g,{children:"b"})]})]})}function q(){return e.jsxs(e.Fragment,{children:[e.jsx("span",{children:"DirectionColumnReverseResponsive"}),e.jsxs(n,{dataset:{testid:"DirectionColumnReverseResponsive"},direction:{_:"column-reverse","narrow-l":"column","medium-s":"row-reverse","medium-l":"column-reverse","wide-s":"column","wide-l":"row-reverse"},children:[e.jsx(p,{children:"A"}),e.jsx(g,{children:"B"})]})]})}function z(){return e.jsxs(e.Fragment,{children:[e.jsx("span",{children:"DirectionColumnReverseResponsiveInvertedOrder"}),e.jsxs(n,{dataset:{testid:"DirectionColumnReverseResponsiveInvertedOrder"},direction:{"wide-l":"row-reverse","wide-s":"column","medium-l":"column-reverse","medium-s":"row-reverse","narrow-l":"column",_:"column-reverse"},children:[e.jsx(p,{children:"A"}),e.jsx(g,{children:"B"})]})]})}function j(s){return e.jsx("div",{style:{background:"yellow",width:"20%"},children:s.children})}function h(s){return e.jsx("div",{style:{background:"orange",width:"20%"},children:s.children})}function K(){return e.jsxs(e.Fragment,{children:[e.jsx("span",{children:"JustifyContentCenter"}),e.jsxs(n,{dataset:{testid:"JustifyContentCenter"},justifyContent:"center",children:[e.jsx(j,{children:"a"}),e.jsx(h,{children:"b"})]})]})}function Q(){return e.jsxs(e.Fragment,{children:[e.jsx("span",{children:"JustifyContentStart"}),e.jsxs(n,{dataset:{testid:"JustifyContentStart"},justifyContent:"start",children:[e.jsx(j,{children:"a"}),e.jsx(h,{children:"b"})]})]})}function V(){return e.jsxs(e.Fragment,{children:[e.jsx("span",{children:"JustifyContentEnd"}),e.jsxs(n,{dataset:{testid:"JustifyContentEnd"},justifyContent:"end",children:[e.jsx(j,{children:"a"}),e.jsx(h,{children:"b"})]})]})}function W(){return e.jsxs(e.Fragment,{children:[e.jsx("span",{children:"JustifyContentSpaceBetween"}),e.jsxs(n,{dataset:{testid:"JustifyContentSpaceBetween"},justifyContent:"space-between",children:[e.jsx(j,{children:"a"}),e.jsx(h,{children:"b"})]})]})}function Y(){return e.jsxs(e.Fragment,{children:[e.jsx("span",{children:"JustifyContentSpaceAround"}),e.jsxs(n,{dataset:{testid:"JustifyContentSpaceAround"},justifyContent:"space-around",children:[e.jsx(j,{children:"a"}),e.jsx(h,{children:"b"})]})]})}function Z(){return e.jsxs(e.Fragment,{children:[e.jsx("span",{children:"JustifyContentSpaceEvenly"}),e.jsxs(n,{dataset:{testid:"JustifyContentSpaceEvenly"},justifyContent:"space-evenly",children:[e.jsx(j,{children:"a"}),e.jsx(h,{children:"b"})]})]})}function ee(){return e.jsxs(e.Fragment,{children:[e.jsx("span",{children:"JustifyContentResponsive"}),e.jsxs(n,{dataset:{testid:"JustifyContentResponsive"},justifyContent:{_:"center","narrow-l":"end","medium-s":"space-around","medium-l":"space-around","wide-s":"space-evenly","wide-l":"end"},children:[e.jsx(j,{children:"a"}),e.jsx(h,{children:"b"})]})]})}function ne(){return e.jsxs(e.Fragment,{children:[e.jsx("span",{children:"JustifyContentResponsiveInvertedOrder"}),e.jsxs(n,{dataset:{testid:"JustifyContentResponsiveInvertedOrder"},justifyContent:{"wide-l":"end","wide-s":"space-evenly","medium-l":"space-around","medium-s":"space-around","narrow-l":"end",_:"center"},children:[e.jsx(j,{children:"a"}),e.jsx(h,{children:"b"})]})]})}function u(s){return e.jsx("div",{style:{background:"yellow",height:"60px"},children:s.children})}function o(s){return e.jsx("div",{style:{background:"orange"},children:s.children})}function se(){return e.jsxs(e.Fragment,{children:[e.jsx("span",{children:"AlignItemsCenter"}),e.jsxs(n,{dataset:{testid:"AlignItemsCenter"},alignItems:"center",children:[e.jsx(u,{children:"a"}),e.jsx(o,{children:"b"})]})]})}function ie(){return e.jsxs(e.Fragment,{children:[e.jsx("span",{children:"AlignItemsStart"}),e.jsxs(n,{dataset:{testid:"AlignItemsStart"},alignItems:"start",children:[e.jsx(u,{children:"a"}),e.jsx(o,{children:"b"})]})]})}function re(){return e.jsxs(e.Fragment,{children:[e.jsx("span",{children:"AlignItemsEnd"}),e.jsxs(n,{dataset:{testid:"AlignItemsEnd"},alignItems:"end",children:[e.jsx(u,{children:"a"}),e.jsx(o,{children:"b"})]})]})}function de(){return e.jsxs(e.Fragment,{children:[e.jsx("span",{children:"AlignItemsStretch"}),e.jsxs(n,{dataset:{testid:"AlignItemsStretch"},alignItems:"stretch",children:[e.jsx(u,{children:"a"}),e.jsx(o,{children:"b"})]})]})}function te(){return e.jsxs(e.Fragment,{children:[e.jsx("span",{children:"AlignItemsBaseline"}),e.jsxs(n,{dataset:{testid:"AlignItemsBaseline"},alignItems:"baseline",children:[e.jsx(u,{children:"a"}),e.jsx(o,{children:"b"})]})]})}function ae(){return e.jsxs(e.Fragment,{children:[e.jsx("span",{children:"AlignItemsResponsive"}),e.jsxs(n,{dataset:{testid:"AlignItemsResponsive"},alignItems:{_:"center","narrow-l":"end","medium-s":"baseline","medium-l":"center","wide-s":"stretch","wide-l":"end"},children:[e.jsx(u,{children:"a"}),e.jsx(o,{children:"b"})]})]})}function le(){return e.jsxs(e.Fragment,{children:[e.jsx("span",{children:"AlignItemsResponsiveInvertedOrder"}),e.jsxs(n,{dataset:{testid:"AlignItemsResponsiveInvertedOrder"},alignItems:{"wide-l":"end","wide-s":"stretch","medium-l":"center","medium-s":"baseline","narrow-l":"end",_:"center"},children:[e.jsx(u,{children:"a"}),e.jsx(o,{children:"b"})]})]})}function d(s){return e.jsx("div",{style:{background:"yellow"},children:s.children})}function t(s){return e.jsx("div",{style:{background:"orange"},children:s.children})}function ce(){return e.jsxs(e.Fragment,{children:[e.jsx("span",{children:"Spacing0"}),e.jsxs(n,{dataset:{testid:"Spacing0"},gap:"0",children:[e.jsx(d,{children:"a"}),e.jsx(t,{children:"b"})]})]})}function xe(){return e.jsxs(e.Fragment,{children:[e.jsx("span",{children:"Spacing1"}),e.jsxs(n,{dataset:{testid:"Spacing1"},gap:"1",children:[e.jsx(d,{children:"a"}),e.jsx(t,{children:"b"})]})]})}function je(){return e.jsxs(e.Fragment,{children:[e.jsx("span",{children:"Spacing2"}),e.jsxs(n,{dataset:{testid:"Spacing2"},gap:"2",children:[e.jsx(d,{children:"a"}),e.jsx(t,{children:"b"})]})]})}function he(){return e.jsxs(e.Fragment,{children:[e.jsx("span",{children:"Spacing4"}),e.jsxs(n,{dataset:{testid:"Spacing4"},gap:"4",children:[e.jsx(d,{children:"a"}),e.jsx(t,{children:"b"})]})]})}function ue(){return e.jsxs(e.Fragment,{children:[e.jsx("span",{children:"Spacing8"}),e.jsxs(n,{dataset:{testid:"Spacing8"},gap:"8",children:[e.jsx(d,{children:"a"}),e.jsx(t,{children:"b"})]})]})}function oe(){return e.jsxs(e.Fragment,{children:[e.jsx("span",{children:"Spacing12"}),e.jsxs(n,{dataset:{testid:"Spacing12"},gap:"12",children:[e.jsx(d,{children:"a"}),e.jsx(t,{children:"b"})]})]})}function pe(){return e.jsxs(e.Fragment,{children:[e.jsx("span",{children:"Spacing16"}),e.jsxs(n,{dataset:{testid:"Spacing16"},gap:"16",children:[e.jsx(d,{children:"a"}),e.jsx(t,{children:"b"})]})]})}function ge(){return e.jsxs(e.Fragment,{children:[e.jsx("span",{children:"Spacing20"}),e.jsxs(n,{dataset:{testid:"Spacing20"},gap:"20",children:[e.jsx(d,{children:"a"}),e.jsx(t,{children:"b"})]})]})}function me(){return e.jsxs(e.Fragment,{children:[e.jsx("span",{children:"Spacing24"}),e.jsxs(n,{dataset:{testid:"Spacing24"},gap:"24",children:[e.jsx(d,{children:"a"}),e.jsx(t,{children:"b"})]})]})}function fe(){return e.jsxs(e.Fragment,{children:[e.jsx("span",{children:"Spacing32"}),e.jsxs(n,{dataset:{testid:"Spacing32"},gap:"32",children:[e.jsx(d,{children:"a"}),e.jsx(t,{children:"b"})]})]})}function ve(){return e.jsxs(e.Fragment,{children:[e.jsx("span",{children:"Spacing48"}),e.jsxs(n,{dataset:{testid:"Spacing48"},gap:"48",children:[e.jsx(d,{children:"a"}),e.jsx(t,{children:"b"})]})]})}function Se(){return e.jsxs(e.Fragment,{children:[e.jsx("span",{children:"Spacing64"}),e.jsxs(n,{dataset:{testid:"Spacing64"},gap:"64",children:[e.jsx(d,{children:"a"}),e.jsx(t,{children:"b"})]})]})}function be(){return e.jsxs(e.Fragment,{children:[e.jsx("span",{children:"Spacing96"}),e.jsxs(n,{dataset:{testid:"Spacing96"},gap:"96",children:[e.jsx(d,{children:"a"}),e.jsx(t,{children:"b"})]})]})}function Fe(){return e.jsxs(e.Fragment,{children:[e.jsx("span",{children:"Spacing160"}),e.jsxs(n,{dataset:{testid:"Spacing160"},gap:"160",children:[e.jsx(d,{children:"a"}),e.jsx(t,{children:"b"})]})]})}function ye(){return e.jsxs(e.Fragment,{children:[e.jsx("span",{children:"LayoutGapNone"}),e.jsxs(n,{dataset:{testid:"LayoutGapNone"},gap:"none",children:[e.jsx(d,{children:"a"}),e.jsx(t,{children:"b"})]})]})}function Re(){return e.jsxs(e.Fragment,{children:[e.jsx("span",{children:"LayoutGap3xs"}),e.jsxs(n,{dataset:{testid:"LayoutGap3xs"},gap:"3xs",children:[e.jsx(d,{children:"a"}),e.jsx(t,{children:"b"})]})]})}function we(){return e.jsxs(e.Fragment,{children:[e.jsx("span",{children:"LayoutGap2xs"}),e.jsxs(n,{dataset:{testid:"LayoutGap2xs"},gap:"2xs",children:[e.jsx(d,{children:"a"}),e.jsx(t,{children:"b"})]})]})}function Ce(){return e.jsxs(e.Fragment,{children:[e.jsx("span",{children:"LayoutGapXs"}),e.jsxs(n,{dataset:{testid:"LayoutGapXs"},gap:"xs",children:[e.jsx(d,{children:"a"}),e.jsx(t,{children:"b"})]})]})}function Ie(){return e.jsxs(e.Fragment,{children:[e.jsx("span",{children:"LayoutGapS"}),e.jsxs(n,{dataset:{testid:"LayoutGapS"},gap:"s",children:[e.jsx(d,{children:"a"}),e.jsx(t,{children:"b"})]})]})}function Le(){return e.jsxs(e.Fragment,{children:[e.jsx("span",{children:"LayoutGapM"}),e.jsxs(n,{dataset:{testid:"LayoutGapM"},gap:"m",children:[e.jsx(d,{children:"a"}),e.jsx(t,{children:"b"})]})]})}function De(){return e.jsxs(e.Fragment,{children:[e.jsx("span",{children:"LayoutGapL"}),e.jsxs(n,{dataset:{testid:"LayoutGapL"},gap:"l",children:[e.jsx(d,{children:"a"}),e.jsx(t,{children:"b"})]})]})}function Te(){return e.jsxs(e.Fragment,{children:[e.jsx("span",{children:"LayoutGapXl"}),e.jsxs(n,{dataset:{testid:"LayoutGapXl"},gap:"xl",children:[e.jsx(d,{children:"a"}),e.jsx(t,{children:"b"})]})]})}function Ge(){return e.jsxs(e.Fragment,{children:[e.jsx("span",{children:"SpacingResponsive"}),e.jsxs(n,{dataset:{testid:"SpacingResponsive"},gap:{_:"4","narrow-l":"8","medium-s":"12","medium-l":"16","wide-s":"20","wide-l":"24"},children:[e.jsx(d,{children:"a"}),e.jsx(t,{children:"b"})]})]})}function Ue(){return e.jsxs(e.Fragment,{children:[e.jsx("span",{children:"SpacingResponsiveInvertedOrder"}),e.jsxs(n,{dataset:{testid:"SpacingResponsiveInvertedOrder"},gap:{"wide-l":"24","wide-s":"20","medium-l":"16","medium-s":"12","narrow-l":"8",_:"4"},children:[e.jsx(d,{children:"a"}),e.jsx(t,{children:"b"})]})]})}function i(s){return e.jsx("div",{style:{background:"yellow"},children:s.children})}function r(s){return e.jsx("div",{style:{background:"orange"},children:s.children})}function Pe(){return e.jsxs(e.Fragment,{children:[e.jsx("span",{children:"Spacing0"}),e.jsxs(n,{dataset:{testid:"Spacing0"},padding:"0",children:[e.jsx(i,{children:"a"}),e.jsx(r,{children:"b"})]})]})}function He(){return e.jsxs(e.Fragment,{children:[e.jsx("span",{children:"Spacing1"}),e.jsxs(n,{dataset:{testid:"Spacing1"},padding:"1",children:[e.jsx(i,{children:"a"}),e.jsx(r,{children:"b"})]})]})}function Oe(){return e.jsxs(e.Fragment,{children:[e.jsx("span",{children:"Spacing2"}),e.jsxs(n,{dataset:{testid:"Spacing2"},padding:"2",children:[e.jsx(i,{children:"a"}),e.jsx(r,{children:"b"})]})]})}function $e(){return e.jsxs(e.Fragment,{children:[e.jsx("span",{children:"Spacing4"}),e.jsxs(n,{dataset:{testid:"Spacing4"},padding:"4",children:[e.jsx(i,{children:"a"}),e.jsx(r,{children:"b"})]})]})}function Ae(){return e.jsxs(e.Fragment,{children:[e.jsx("span",{children:"Spacing8"}),e.jsxs(n,{dataset:{testid:"Spacing8"},padding:"8",children:[e.jsx(i,{children:"a"}),e.jsx(r,{children:"b"})]})]})}function Je(){return e.jsxs(e.Fragment,{children:[e.jsx("span",{children:"Spacing12"}),e.jsxs(n,{dataset:{testid:"Spacing12"},padding:"12",children:[e.jsx(i,{children:"a"}),e.jsx(r,{children:"b"})]})]})}function ke(){return e.jsxs(e.Fragment,{children:[e.jsx("span",{children:"Spacing16"}),e.jsxs(n,{dataset:{testid:"Spacing16"},padding:"16",children:[e.jsx(i,{children:"a"}),e.jsx(r,{children:"b"})]})]})}function Ne(){return e.jsxs(e.Fragment,{children:[e.jsx("span",{children:"Spacing20"}),e.jsxs(n,{dataset:{testid:"Spacing20"},padding:"20",children:[e.jsx(i,{children:"a"}),e.jsx(r,{children:"b"})]})]})}function _e(){return e.jsxs(e.Fragment,{children:[e.jsx("span",{children:"Spacing24"}),e.jsxs(n,{dataset:{testid:"Spacing24"},padding:"24",children:[e.jsx(i,{children:"a"}),e.jsx(r,{children:"b"})]})]})}function Xe(){return e.jsxs(e.Fragment,{children:[e.jsx("span",{children:"Spacing32"}),e.jsxs(n,{dataset:{testid:"Spacing32"},padding:"32",children:[e.jsx(i,{children:"a"}),e.jsx(r,{children:"b"})]})]})}function Ee(){return e.jsxs(e.Fragment,{children:[e.jsx("span",{children:"Spacing48"}),e.jsxs(n,{dataset:{testid:"Spacing48"},padding:"48",children:[e.jsx(i,{children:"a"}),e.jsx(r,{children:"b"})]})]})}function Me(){return e.jsxs(e.Fragment,{children:[e.jsx("span",{children:"Spacing64"}),e.jsxs(n,{dataset:{testid:"Spacing64"},padding:"64",children:[e.jsx(i,{children:"a"}),e.jsx(r,{children:"b"})]})]})}function Be(){return e.jsxs(e.Fragment,{children:[e.jsx("span",{children:"Spacing96"}),e.jsxs(n,{dataset:{testid:"Spacing96"},padding:"96",children:[e.jsx(i,{children:"a"}),e.jsx(r,{children:"b"})]})]})}function qe(){return e.jsxs(e.Fragment,{children:[e.jsx("span",{children:"Spacing160"}),e.jsxs(n,{dataset:{testid:"Spacing160"},padding:"160",children:[e.jsx(i,{children:"a"}),e.jsx(r,{children:"b"})]})]})}function ze(){return e.jsxs(e.Fragment,{children:[e.jsx("span",{children:"LayoutPaddingNone"}),e.jsxs(n,{dataset:{testid:"LayoutPaddingNone"},padding:"none",children:[e.jsx(i,{children:"a"}),e.jsx(r,{children:"b"})]})]})}function Ke(){return e.jsxs(e.Fragment,{children:[e.jsx("span",{children:"LayoutPadding3xs"}),e.jsxs(n,{dataset:{testid:"LayoutPadding3xs"},padding:"3xs",children:[e.jsx(i,{children:"a"}),e.jsx(r,{children:"b"})]})]})}function Qe(){return e.jsxs(e.Fragment,{children:[e.jsx("span",{children:"LayoutPadding2xs"}),e.jsxs(n,{dataset:{testid:"LayoutPadding2xs"},padding:"2xs",children:[e.jsx(i,{children:"a"}),e.jsx(r,{children:"b"})]})]})}function Ve(){return e.jsxs(e.Fragment,{children:[e.jsx("span",{children:"LayoutPaddingXs"}),e.jsxs(n,{dataset:{testid:"LayoutPaddingXs"},padding:"xs",children:[e.jsx(i,{children:"a"}),e.jsx(r,{children:"b"})]})]})}function We(){return e.jsxs(e.Fragment,{children:[e.jsx("span",{children:"LayoutPaddingS"}),e.jsxs(n,{dataset:{testid:"LayoutPaddingS"},padding:"s",children:[e.jsx(i,{children:"a"}),e.jsx(r,{children:"b"})]})]})}function Ye(){return e.jsxs(e.Fragment,{children:[e.jsx("span",{children:"LayoutPaddingM"}),e.jsxs(n,{dataset:{testid:"LayoutPaddingM"},padding:"m",children:[e.jsx(i,{children:"a"}),e.jsx(r,{children:"b"})]})]})}function Ze(){return e.jsxs(e.Fragment,{children:[e.jsx("span",{children:"LayoutPaddingL"}),e.jsxs(n,{dataset:{testid:"LayoutPaddingL"},padding:"l",children:[e.jsx(i,{children:"a"}),e.jsx(r,{children:"b"})]})]})}function en(){return e.jsxs(e.Fragment,{children:[e.jsx("span",{children:"LayoutPaddingXl"}),e.jsxs(n,{dataset:{testid:"LayoutPaddingXl"},padding:"xl",children:[e.jsx(i,{children:"a"}),e.jsx(r,{children:"b"})]})]})}function nn(){return e.jsxs(e.Fragment,{children:[e.jsx("span",{children:"SpacingResponsive"}),e.jsxs(n,{dataset:{testid:"SpacingResponsive"},padding:{_:"4","narrow-l":"8","medium-s":"12","medium-l":"16","wide-s":"20","wide-l":"24"},children:[e.jsx(i,{children:"a"}),e.jsx(r,{children:"b"})]})]})}function sn(){return e.jsxs(e.Fragment,{children:[e.jsx("span",{children:"SpacingResponsiveInvertedOrder"}),e.jsxs(n,{dataset:{testid:"SpacingResponsiveInvertedOrder"},padding:{"wide-l":"24","wide-s":"20","medium-l":"16","medium-s":"12","narrow-l":"8",_:"4"},children:[e.jsx(i,{children:"a"}),e.jsx(r,{children:"b"})]})]})}function rn(){return e.jsxs(e.Fragment,{children:[e.jsx("span",{children:"SpacingShorthand2"}),e.jsxs(n,{dataset:{testid:"SpacingShorthand2"},padding:["12","24"],children:[e.jsx(i,{children:"a"}),e.jsx(r,{children:"b"})]})]})}function dn(){return e.jsxs(e.Fragment,{children:[e.jsx("span",{children:"SpacingShorthand3"}),e.jsxs(n,{dataset:{testid:"SpacingShorthand3"},padding:["12","24","48"],children:[e.jsx(i,{children:"a"}),e.jsx(r,{children:"b"})]})]})}function tn(){return e.jsxs(e.Fragment,{children:[e.jsx("span",{children:"SpacingShorthand4"}),e.jsxs(n,{dataset:{testid:"SpacingShorthand4"},padding:["12","24","48","64"],children:[e.jsx(i,{children:"a"}),e.jsx(r,{children:"b"})]})]})}function an(){return e.jsxs(e.Fragment,{children:[e.jsx("span",{children:"SpacingShorthandResponsive"}),e.jsxs(n,{dataset:{testid:"SpacingShorthandResponsive"},padding:{_:["1","2","4","8"],"narrow-l":["12","24","48","64"],"medium-s":["1","2","4","8"],"medium-l":["12","24","48","64"],"wide-s":["1","2","4","8"],"wide-l":["12","24","48","64"]},children:[e.jsx(i,{children:"a"}),e.jsx(r,{children:"b"})]})]})}function ln(){return e.jsxs(e.Fragment,{children:[e.jsx("span",{children:"SpacingMixResponsive"}),e.jsxs(n,{dataset:{testid:"SpacingMixResponsive"},padding:{_:["1","2","4","8"],"narrow-l":"12","medium-s":["1","2"],"medium-l":["12","24","48"],"wide-s":["1","2","4","8"],"wide-l":"64"},children:[e.jsx(i,{children:"a"}),e.jsx(r,{children:"b"})]})]})}function a(s){return e.jsx("div",{style:{background:"yellow",width:"20%"},children:s.children})}function l(s){return e.jsx("div",{style:{background:"orange",width:"20%"},children:s.children})}function cn(){return e.jsxs(e.Fragment,{children:[e.jsx("span",{children:"HideInlineTrueUndefined"}),e.jsxs(n,{dataset:{testid:"HideInlineTrueUndefined"},hide:!0,children:[e.jsx(a,{children:"a"}),e.jsx(l,{children:"b"})]})]})}function xn(){return e.jsxs(e.Fragment,{children:[e.jsx("span",{children:"HideInlineTrueFalse"}),e.jsxs(n,{dataset:{testid:"HideInlineTrueFalse"},hide:!0,inline:!1,children:[e.jsx(a,{children:"a"}),e.jsx(l,{children:"b"})]})]})}function jn(){return e.jsxs(e.Fragment,{children:[e.jsx("span",{children:"HideInlineTrueTrue"}),e.jsxs(n,{dataset:{testid:"HideInlineTrueTrue"},hide:!0,inline:!0,children:[e.jsx(a,{children:"a"}),e.jsx(l,{children:"b"})]})]})}function hn(){return e.jsxs(e.Fragment,{children:[e.jsx("span",{children:"HideInlineFalseUndefined"}),e.jsxs(n,{dataset:{testid:"HideInlineFalseUndefined"},hide:!1,children:[e.jsx(a,{children:"a"}),e.jsx(l,{children:"b"})]})]})}function un(){return e.jsxs(e.Fragment,{children:[e.jsx("span",{children:"HideInlineFalseFalse"}),e.jsxs(n,{dataset:{testid:"HideInlineFalseFalse"},hide:!1,inline:!1,children:[e.jsx(a,{children:"a"}),e.jsx(l,{children:"b"})]})]})}function on(){return e.jsxs(e.Fragment,{children:[e.jsx("span",{children:"HideInlineFalseTrue"}),e.jsxs(n,{dataset:{testid:"HideInlineFalseTrue"},hide:!1,inline:!0,children:[e.jsx(a,{children:"a"}),e.jsx(l,{children:"b"})]})]})}function pn(){return e.jsxs(e.Fragment,{children:[e.jsx("span",{children:"HideInlineUndefinedUndefined"}),e.jsxs(n,{dataset:{testid:"HideInlineUndefinedUndefined"},children:[e.jsx(a,{children:"a"}),e.jsx(l,{children:"b"})]})]})}function gn(){return e.jsxs(e.Fragment,{children:[e.jsx("span",{children:"HideInlineUndefinedFalse"}),e.jsxs(n,{dataset:{testid:"HideInlineUndefinedFalse"},inline:!1,children:[e.jsx(a,{children:"a"}),e.jsx(l,{children:"b"})]})]})}function mn(){return e.jsxs(e.Fragment,{children:[e.jsx("span",{children:"HideInlineUndefinedTrue"}),e.jsxs(n,{dataset:{testid:"HideInlineUndefinedTrue"},inline:!0,children:[e.jsx(a,{children:"a"}),e.jsx(l,{children:"b"})]})]})}function fn(){return e.jsxs(e.Fragment,{children:[e.jsx("span",{children:"HideInlineResponsive"}),e.jsxs(n,{dataset:{testid:"HideInlineResponsive"},hide:{_:!0,"narrow-l":!1,"medium-s":!0,"medium-l":!1,"wide-s":!0,"wide-l":!1},inline:!0,children:[e.jsx(a,{children:"A responsive"}),e.jsx(l,{children:"B responsive"})]})]})}function vn(){return e.jsxs(e.Fragment,{children:[e.jsx("span",{children:"HideInlineResponsiveInvertedOrder"}),e.jsxs(n,{dataset:{testid:"HideInlineResponsiveInvertedOrder"},hide:{"wide-l":!1,"wide-s":!0,"medium-l":!1,"medium-s":!0,"narrow-l":!1,_:!0},inline:!0,children:[e.jsx(a,{children:"a"}),e.jsx(l,{children:"b"})]})]})}function f(s){return e.jsx("div",{style:{background:"yellow"},children:s.children})}function v(s){return e.jsx("div",{style:{background:"orange"},children:s.children})}function Sn(){return e.jsxs(e.Fragment,{children:[e.jsx("span",{children:"RelativeTrue"}),e.jsxs(n,{dataset:{testid:"RelativeTrue"},relative:!0,children:[e.jsx(f,{children:"a"}),e.jsx(v,{children:"b"})]})]})}function bn(){return e.jsxs(e.Fragment,{children:[e.jsx("span",{children:"RelativeFalse"}),e.jsxs(n,{dataset:{testid:"RelativeFalse"},relative:!1,children:[e.jsx(f,{children:"a"}),e.jsx(v,{children:"b"})]})]})}function Fn(){return e.jsxs(e.Fragment,{children:[e.jsx("span",{children:"RelativeResponsive"}),e.jsxs(n,{dataset:{testid:"RelativeResponsive"},relative:{_:!0,"narrow-l":!1,"medium-s":!0,"medium-l":!1,"wide-s":!0,"wide-l":!1},children:[e.jsx(f,{children:"a"}),e.jsx(v,{children:"b"})]})]})}function yn(){return e.jsxs(e.Fragment,{children:[e.jsx("span",{children:"RelativeResponsiveInvertedOrder"}),e.jsxs(n,{dataset:{testid:"RelativeResponsiveInvertedOrder"},relative:{"wide-l":!1,"wide-s":!0,"medium-l":!1,"medium-s":!0,"narrow-l":!1,_:!0},children:[e.jsx(f,{children:"a"}),e.jsx(v,{children:"b"})]})]})}function w(s){return e.jsx("div",{style:{background:"yellow"},children:s.children})}function C(s){return e.jsx("div",{style:{background:"orange"},children:s.children})}const Rn=L`
|
2
|
+
div[data-override='true'] {
|
3
|
+
display:grid;
|
4
|
+
}
|
5
|
+
`;function wn(){return e.jsxs(e.Fragment,{children:[e.jsx(Rn,{}),e.jsx("span",{children:"DataOverrideGlobalClass"}),e.jsxs(n,{dataset:{testid:"DataOverrideGlobalClass",override:!0},children:[e.jsx(w,{children:"a"}),e.jsx(C,{children:"b"})]})]})}const Cn=D.div`
|
6
|
+
div[data-override='true'] {
|
7
|
+
display: grid;
|
8
|
+
}
|
9
|
+
`;function In(){return e.jsxs(e.Fragment,{children:[e.jsx("span",{children:"DataOverrideLocalClass"}),e.jsx(Cn,{children:e.jsxs(n,{dataset:{testid:"DataOverrideLocalClass",override:!0},children:[e.jsx(w,{children:"a"}),e.jsx(C,{children:"b"})]})})]})}function Ln(s){return e.jsx("div",{style:{background:"yellow"},children:s.children})}function Dn(s){return e.jsx("div",{style:{background:"orange"},children:s.children})}function Tn(){return e.jsxs(e.Fragment,{children:[e.jsx("span",{children:"Default"}),e.jsxs(n,{dataset:{testid:"Default"},children:[e.jsx(Ln,{children:"a"}),e.jsx(Dn,{children:"b"})]})]})}const qn={title:"components/LayoutFlex",component:n,tags:["!autodocs"],subcomponents:{LayoutFlexItem:I},parameters:{chromatic:{modes:{"narrow-l":{viewport:"narrow-l"},"medium-s":{viewport:"medium-s"},"medium-l":{viewport:"medium-l"},"wide-s":{viewport:"wide-s"},"wide-l":{viewport:"wide-l"}}}}},m=()=>e.jsxs(e.Fragment,{children:[e.jsx(Tn,{}),e.jsx("br",{}),e.jsx("br",{}),e.jsx(T,{}),e.jsx(G,{}),e.jsx(U,{}),e.jsx("br",{}),e.jsx("br",{}),e.jsx(P,{}),e.jsx(H,{}),e.jsx(O,{}),e.jsx($,{}),e.jsx(A,{}),e.jsx(J,{}),e.jsx(k,{}),e.jsx(N,{}),e.jsx(_,{}),e.jsx("br",{}),e.jsx("br",{}),e.jsx(X,{}),e.jsx(E,{}),e.jsx(M,{}),e.jsx(B,{}),e.jsx(q,{}),e.jsx(z,{}),e.jsx("br",{}),e.jsx("br",{}),e.jsx(K,{}),e.jsx(Q,{}),e.jsx(V,{}),e.jsx(W,{}),e.jsx(Y,{}),e.jsx(Z,{}),e.jsx(ee,{}),e.jsx(ne,{}),e.jsx("br",{}),e.jsx("br",{}),e.jsx(se,{}),e.jsx(ie,{}),e.jsx(re,{}),e.jsx(de,{}),e.jsx(te,{}),e.jsx(ae,{}),e.jsx(le,{}),e.jsx("br",{}),e.jsx("br",{}),e.jsx(ce,{}),e.jsx(xe,{}),e.jsx(je,{}),e.jsx(he,{}),e.jsx(ue,{}),e.jsx(oe,{}),e.jsx(pe,{}),e.jsx(ge,{}),e.jsx(me,{}),e.jsx(fe,{}),e.jsx(ve,{}),e.jsx(Se,{}),e.jsx(be,{}),e.jsx(Fe,{}),e.jsx(ye,{}),e.jsx(Re,{}),e.jsx(we,{}),e.jsx(Ce,{}),e.jsx(Ie,{}),e.jsx(Le,{}),e.jsx(De,{}),e.jsx(Te,{}),e.jsx(Ge,{}),e.jsx(Ue,{}),e.jsx("br",{}),e.jsx("br",{}),e.jsx(Pe,{}),e.jsx(He,{}),e.jsx(Oe,{}),e.jsx($e,{}),e.jsx(Ae,{}),e.jsx(Je,{}),e.jsx(ke,{}),e.jsx(Ne,{}),e.jsx(_e,{}),e.jsx(Xe,{}),e.jsx(Ee,{}),e.jsx(Me,{}),e.jsx(Be,{}),e.jsx(qe,{}),e.jsx(ze,{}),e.jsx(Ke,{}),e.jsx(Qe,{}),e.jsx(Ve,{}),e.jsx(We,{}),e.jsx(Ye,{}),e.jsx(Ze,{}),e.jsx(en,{}),e.jsx(nn,{}),e.jsx(sn,{}),e.jsx(rn,{}),e.jsx(dn,{}),e.jsx(tn,{}),e.jsx(an,{}),e.jsx(ln,{}),e.jsx("br",{}),e.jsx("br",{}),e.jsx(cn,{}),e.jsx("br",{}),e.jsx(xn,{}),e.jsx("br",{}),e.jsx(jn,{}),e.jsx("br",{}),e.jsx(hn,{}),e.jsx("br",{}),e.jsx(un,{}),e.jsx("br",{}),e.jsx(on,{}),e.jsx("br",{}),e.jsx(pn,{}),e.jsx("br",{}),e.jsx(gn,{}),e.jsx("br",{}),e.jsx(mn,{}),e.jsx("br",{}),e.jsx(fn,{}),e.jsx("br",{}),e.jsx(vn,{}),e.jsx("br",{}),e.jsx("br",{}),e.jsx(Sn,{}),e.jsx(bn,{}),e.jsx(Fn,{}),e.jsx(yn,{}),e.jsx("br",{}),e.jsx("br",{}),e.jsx(wn,{}),e.jsx(In,{})]});m.storyName="Combinations";var F,y,R;m.parameters={...m.parameters,docs:{...(F=m.parameters)==null?void 0:F.docs,source:{originalSource:`() => <>
|
10
|
+
<Default />
|
11
|
+
<br />
|
12
|
+
<br />
|
13
|
+
<NowrapUndefined />
|
14
|
+
<NowrapTrue />
|
15
|
+
<NowrapFalse />
|
16
|
+
<br />
|
17
|
+
<br />
|
18
|
+
<ColumnReverseTrueUndefined />
|
19
|
+
<ColumnReverseTrueFalse />
|
20
|
+
<ColumnReverseTrueTrue />
|
21
|
+
<ColumnReverseFalseUndefined />
|
22
|
+
<ColumnReverseFalseFalse />
|
23
|
+
<ColumnReverseFalseTrue />
|
24
|
+
<ColumnReverseUndefinedUndefined />
|
25
|
+
<ColumnReverseUndefinedFalse />
|
26
|
+
<ColumnReverseUndefinedTrue />
|
27
|
+
<br />
|
28
|
+
<br />
|
29
|
+
<DirectionRow />
|
30
|
+
<DirectionRowReverse />
|
31
|
+
<DirectionColumn />
|
32
|
+
<DirectionColumnReverse />
|
33
|
+
<DirectionColumnReverseResponsive />
|
34
|
+
<DirectionColumnReverseResponsiveInvertedOrder />
|
35
|
+
<br />
|
36
|
+
<br />
|
37
|
+
<JustifyContentCenter />
|
38
|
+
<JustifyContentStart />
|
39
|
+
<JustifyContentEnd />
|
40
|
+
<JustifyContentSpaceBetween />
|
41
|
+
<JustifyContentSpaceAround />
|
42
|
+
<JustifyContentSpaceEvenly />
|
43
|
+
<JustifyContentResponsive />
|
44
|
+
<JustifyContentResponsiveInvertedOrder />
|
45
|
+
<br />
|
46
|
+
<br />
|
47
|
+
<AlignItemsCenter />
|
48
|
+
<AlignItemsStart />
|
49
|
+
<AlignItemsEnd />
|
50
|
+
<AlignItemsStretch />
|
51
|
+
<AlignItemsBaseline />
|
52
|
+
<AlignItemsResponsive />
|
53
|
+
<AlignItemsResponsiveInvertedOrder />
|
54
|
+
<br />
|
55
|
+
<br />
|
56
|
+
<GapSpacing0 />
|
57
|
+
<GapSpacing1 />
|
58
|
+
<GapSpacing2 />
|
59
|
+
<GapSpacing4 />
|
60
|
+
<GapSpacing8 />
|
61
|
+
<GapSpacing12 />
|
62
|
+
<GapSpacing16 />
|
63
|
+
<GapSpacing20 />
|
64
|
+
<GapSpacing24 />
|
65
|
+
<GapSpacing32 />
|
66
|
+
<GapSpacing48 />
|
67
|
+
<GapSpacing64 />
|
68
|
+
<GapSpacing96 />
|
69
|
+
<GapSpacing160 />
|
70
|
+
<LayoutGapNone />
|
71
|
+
<LayoutGap3xs />
|
72
|
+
<LayoutGap2xs />
|
73
|
+
<LayoutGapXs />
|
74
|
+
<LayoutGapS />
|
75
|
+
<LayoutGapM />
|
76
|
+
<LayoutGapL />
|
77
|
+
<LayoutGapXl />
|
78
|
+
<GapSpacingResponsive />
|
79
|
+
<GapSpacingResponsiveInvertedOrder />
|
80
|
+
<br />
|
81
|
+
<br />
|
82
|
+
<PaddingSpacing0 />
|
83
|
+
<PaddingSpacing1 />
|
84
|
+
<PaddingSpacing2 />
|
85
|
+
<PaddingSpacing4 />
|
86
|
+
<PaddingSpacing8 />
|
87
|
+
<PaddingSpacing12 />
|
88
|
+
<PaddingSpacing16 />
|
89
|
+
<PaddingSpacing20 />
|
90
|
+
<PaddingSpacing24 />
|
91
|
+
<PaddingSpacing32 />
|
92
|
+
<PaddingSpacing48 />
|
93
|
+
<PaddingSpacing64 />
|
94
|
+
<PaddingSpacing96 />
|
95
|
+
<PaddingSpacing160 />
|
96
|
+
<LayoutPaddingNone />
|
97
|
+
<LayoutPadding3xs />
|
98
|
+
<LayoutPadding2xs />
|
99
|
+
<LayoutPaddingXs />
|
100
|
+
<LayoutPaddingS />
|
101
|
+
<LayoutPaddingM />
|
102
|
+
<LayoutPaddingL />
|
103
|
+
<LayoutPaddingXl />
|
104
|
+
<PaddingSpacingResponsive />
|
105
|
+
<PaddingSpacingResponsiveInvertedOrder />
|
106
|
+
<SpacingShorthand2 />
|
107
|
+
<SpacingShorthand3 />
|
108
|
+
<SpacingShorthand4 />
|
109
|
+
<SpacingShorthandResponsive />
|
110
|
+
<SpacingMixResponsive />
|
111
|
+
<br />
|
112
|
+
<br />
|
113
|
+
<HideInlineTrueUndefined />
|
114
|
+
<br />
|
115
|
+
<HideInlineTrueFalse />
|
116
|
+
<br />
|
117
|
+
<HideInlineTrueTrue />
|
118
|
+
<br />
|
119
|
+
<HideInlineFalseUndefined />
|
120
|
+
<br />
|
121
|
+
<HideInlineFalseFalse />
|
122
|
+
<br />
|
123
|
+
<HideInlineFalseTrue />
|
124
|
+
<br />
|
125
|
+
<HideInlineUndefinedUndefined />
|
126
|
+
<br />
|
127
|
+
<HideInlineUndefinedFalse />
|
128
|
+
<br />
|
129
|
+
<HideInlineUndefinedTrue />
|
130
|
+
<br />
|
131
|
+
<HideInlineResponsive />
|
132
|
+
<br />
|
133
|
+
<HideInlineResponsiveInvertedOrder />
|
134
|
+
<br />
|
135
|
+
<br />
|
136
|
+
<RelativeTrue />
|
137
|
+
<RelativeFalse />
|
138
|
+
<RelativeResponsive />
|
139
|
+
<RelativeResponsiveInvertedOrder />
|
140
|
+
<br />
|
141
|
+
<br />
|
142
|
+
<DataOverrideGlobalClass />
|
143
|
+
<DataOverrideLocalClass />
|
144
|
+
</>`,...(R=(y=m.parameters)==null?void 0:y.docs)==null?void 0:R.source}}};const zn=["Combinations"];export{m as Combinations,zn as __namedExportsOrder,qn as default};
|
@@ -1,4 +1,4 @@
|
|
1
|
-
import{j as e}from"./jsx-runtime-
|
1
|
+
import{j as e}from"./jsx-runtime-BTJTZTIL.js";import{useMDXComponents as o}from"./index-BN6VMYqa.js";import{M as r}from"./index-DbKU6UKS.js";import"./index-ChsGqxH_.js";import"./index-Cb9e4tly.js";import"./_commonjsHelpers-Cpj98o6Y.js";import"./iframe-1aej65yW.js";import"./index-BPrLDK9Y.js";import"./index-C7hTFOIV.js";import"./index-Cu4lwwaE.js";import"./index-CXQShRbs.js";import"./index-DrFu-skq.js";function t(s){const n={a:"a",code:"code",h1:"h1",h2:"h2",p:"p",pre:"pre",strong:"strong",...o(),...s.components};return e.jsxs(e.Fragment,{children:[e.jsx(r,{title:"Guides/Assets/Fonts"}),`
|
2
2
|
`,e.jsx(n.h1,{id:"fonts",children:"Fonts"}),`
|
3
3
|
`,e.jsxs(n.p,{children:["The optimised assets are available under ",e.jsx(n.strong,{children:"preply.com"})," in the formats required by modern and legacy browsers."]}),`
|
4
4
|
`,e.jsxs(n.p,{children:["Refer to ",e.jsx(n.a,{href:"https://preply.atlassian.net/l/cp/0sQoEgGa",rel:"nofollow",children:"Create new universal brand fonts"})," for a detailed breakdown of the formats, optimisations and technical decisions."]}),`
|
@@ -36,4 +36,4 @@ import{j as e}from"./jsx-runtime-BYouaCF_.js";import{useMDXComponents as o}from"
|
|
36
36
|
font-family: 'PreplyInterV', sans-serif;
|
37
37
|
}
|
38
38
|
}
|
39
|
-
`})})]})}function
|
39
|
+
`})})]})}function u(s={}){const{wrapper:n}={...o(),...s.components};return n?e.jsx(n,{...s,children:e.jsx(t,{...s})}):t(s)}export{u as default};
|
@@ -1,4 +1,4 @@
|
|
1
|
-
import{j as e}from"./jsx-runtime-
|
1
|
+
import{j as e}from"./jsx-runtime-BTJTZTIL.js";import{useMDXComponents as r}from"./index-BN6VMYqa.js";import{M as o}from"./index-DbKU6UKS.js";import"./index-ChsGqxH_.js";import"./index-Cb9e4tly.js";import"./_commonjsHelpers-Cpj98o6Y.js";import"./iframe-1aej65yW.js";import"./index-BPrLDK9Y.js";import"./index-C7hTFOIV.js";import"./index-Cu4lwwaE.js";import"./index-CXQShRbs.js";import"./index-DrFu-skq.js";function t(s){const n={a:"a",code:"code",h1:"h1",h2:"h2",li:"li",ol:"ol",p:"p",pre:"pre",...r(),...s.components};return e.jsxs(e.Fragment,{children:[e.jsx(o,{title:"Guides/Installation/SSR/Next.js pages router"}),`
|
2
2
|
`,e.jsx(n.h1,{id:"installation-nextjs-pages-router",children:"Installation: Next.js pages router"}),`
|
3
3
|
`,e.jsxs(n.p,{children:["This guide assumes you have read and followed the steps in the ",e.jsx(n.a,{href:"/story/guides-installation-applications--page",children:"Installation: Applications"})," guide."]}),`
|
4
4
|
`,e.jsx(n.h2,{id:"packages",children:"Packages"}),`
|
@@ -88,4 +88,4 @@ class MyDocument extends Document<Request & { classNames: string }> {
|
|
88
88
|
}
|
89
89
|
}
|
90
90
|
`})}),`
|
91
|
-
`,e.jsxs(n.p,{children:["See also ",e.jsx(n.a,{href:"https://nextjs.org/docs/advanced-features/custom-document",rel:"nofollow",children:"Next.js official docs"}),"."]})]})}function
|
91
|
+
`,e.jsxs(n.p,{children:["See also ",e.jsx(n.a,{href:"https://nextjs.org/docs/advanced-features/custom-document",rel:"nofollow",children:"Next.js official docs"}),"."]})]})}function g(s={}){const{wrapper:n}={...r(),...s.components};return n?e.jsx(n,{...s,children:e.jsx(t,{...s})}):t(s)}export{g as default};
|
@@ -1,4 +1,4 @@
|
|
1
|
-
import{j as t}from"./jsx-runtime-
|
1
|
+
import{j as t}from"./jsx-runtime-BTJTZTIL.js";import{B as m,H as h}from"./Button-BMhW7Ryu.js";import{L as N,T as p}from"./LayoutFlex-lbriU8N6.js";import{L as C}from"./LayoutGrid-B4eBqEgI.js";import{T as L}from"./TextField-DbmOxqxt.js";import{e as l,r as g}from"./index-Cb9e4tly.js";import{R as V}from"./RootProvider-Bt09Y4Vm.js";import{d as D}from"./styled-components.browser.esm-BgpGX317.js";import{u as H}from"./useToken-DI8WZBSr.js";import{t as U}from"./tokens-ZvFzTwDp.js";import{u as _}from"./useTheme-DFSR9KPZ.js";import{H as S,b as E}from"./options-Dn0Ts6qK.js";import{b}from"./defaults-BpPocAyH.js";import"./index-ChsGqxH_.js";import"./text-centered-C0V1O_Sd.js";import"./classNames-BUL1Zq7e.js";import"./filterAttributesPassedByRadixUIAtRuntime-Bye2JkZ0.js";import"./componentNames-BWg8gXNi.js";import"./index-DdzHuZ-Y.js";import"./render-icon-Du0nasoi.js";import"./useHostname-Y3PlXofY.js";import"./index-CC6DAVyL.js";import"./layout-relative.module-1z75aSwo-DNAR_Nv2.js";import"./breakpoints-BfMlrtxE.js";import"./constants-DYYVurUY.js";import"./index-C6wF8VM1.js";import"./index-DSVnVYmz.js";import"./tslib.es6-BntfKcQG.js";import"./hoist-non-react-statics.cjs-C-Qo8PK8.js";import"./message-BqoANQez.js";import"./_commonjsHelpers-Cpj98o6Y.js";import"./index-BrBqb5Q4.js";import"./PortalElementProvider-CgL8vj5o.js";import"./index-BPrLDK9Y.js";import"./index-C7hTFOIV.js";import"./index-QwIMrChO.js";import"./constants-BgBLeZzp.js";const j=()=>l.createElement("style",{"data-ds-style":"global",dangerouslySetInnerHTML:{__html:`* {
|
2
2
|
box-sizing: border-box;
|
3
3
|
}
|
4
4
|
|
@@ -1207,6 +1207,6 @@ does not use the correct Thai glyphs for Thai characters.
|
|
1207
1207
|
`,Q=({index:e,id:n,defaultValue:r,resolveToken:i,render:f})=>{const s=H(i?i(n):U.root.text.base.typeface);return l.createElement("tr",null,l.createElement(y,{verticalSpace:!0},l.createElement("span",null,l.createElement("code",null,n))),i&&l.createElement(y,{verticalSpace:!0},s),r&&n===r?l.createElement(y,{verticalSpace:!0},"(default)"):l.createElement(y,null),f&&l.createElement(y,{verticalSpace:!0},f(n,e)))};Q.__docgenInfo={description:"",methods:[],displayName:"ThemeOptionsItem"};const q=D.div`
|
1208
1208
|
margin-bottom: 20px;
|
1209
1209
|
${({relevant:e})=>`opacity: ${e?"unset":.5}}`}
|
1210
|
-
`,c=({options:e,defaultValue:n,resolveToken:r,render:i,hideOptions:f=[],referenceTheme:s})=>{const{theme:{name:F}}=_(),k=e.filter(({id:d})=>!f.includes(d));return l.createElement(q,{relevant:s===F},l.createElement("h4",null,"Options (theme: ",s,")"),l.createElement("table",{style:{fontSize:"14px"}},l.createElement("tbody",null,k.map(({id:d},w)=>l.createElement(Q,{key:d,index:w,id:d,defaultValue:n,resolveToken:r,render:i})))))};c.__docgenInfo={description:"",methods:[],displayName:"ThemeOptionsList",props:{hideOptions:{defaultValue:{value:"[]",computed:!1},required:!1}}};const B=["caption-regular","caption-semibold","small-regular","small-regular-italic","small-semibold","small-semibold-italic","default-regular","default-regular-italic","default-semibold","default-semibold-italic","large-regular","large-regular-italic","large-semibold","large-semibold-italic"],A=[{name:"Русский (Russian)",code:"ru",localized:"Привет, мир!"},{name:"English",code:"en",localized:"Hello, World!"},{name:"Polski",code:"pl",localized:"Cześć, Świecie!"},{name:"Deutsch",code:"de",localized:"Hallo, Welt!"},{name:"Українська (Ukranian)",code:"ua",localized:"Привіт, Світ!"},{name:"Português",code:"pt",localized:"Olá, Mundo!"},{name:"Türkçe",code:"tr",localized:"Merhaba, Dünya!"},{name:"Bahasa",code:"id",localized:"Halo, Dunia!"},{name:"Français",code:"fr",localized:"Bonjour, le monde!"},{name:"Italiano",code:"it",localized:"Ciao, Mondo!"},{name:"Español",code:"es",localized:"¡Hola, Mundo!"},{name:"中文 (Chinese)",code:"zh",localized:"你好,世界!"},{name:"日本語 (Japanese)",code:"ja",localized:"こんにちは、世界!"},{name:"한국어 (Korean)",code:"ko",localized:"안녕하세요, 세계!"},{name:"العربية",code:"ar",localized:"مرحبا بك في عالم البرمجة!"},{name:"Nederlands",code:"nl",localized:"Hallo, wereld!"},{name:"Română",code:"ro",localized:"Salut, Lume!"},{name:"Thai",code:"th",localized:"สวัสดี, โลก!"},{name:"Swedish",code:"sv",localized:"Hej, världen!"},{name:"Czeck",code:"cs",localized:"Ahoj, světe!"}],P={ru:!0,en:!0,pl:!0,de:!0,ua:!0,pt:!0,tr:!0,id:!0,fr:!0,it:!0,es:!0,zh:!0,ja:!0,ko:!0,ar:!0,nl:!0,ro:!0,th:!0,sv:!0,cs:!0};function W(){const e=localStorage.getItem("selectedLanguages"),[n,r]=g.useState(e?JSON.parse(e):P),[i,f]=g.useState(!1),[s,F]=g.useState("Hello, World!");g.useEffect(()=>{localStorage.setItem("selectedLanguages",JSON.stringify(n))},[n]);const k=o=>{r({...n,[o.target.name]:o.target.checked})},d=()=>{const o=A.reduce((a,O)=>(a[O.code]=!0,a),{});r(o)},w=()=>{r({})},R=()=>{r(P)},T=()=>{f(o=>!o)};return t.jsx("div",{className:"App",children:t.jsxs(N,{column:!0,gap:"32",children:[t.jsx(C,{columns:5,gap:"8",children:A.map(o=>t.jsxs("div",{children:[t.jsx("input",{type:"checkbox",name:o.code,checked:n[o.code]||!1,onChange:k,id:o.code}),t.jsxs("label",{htmlFor:o.code,children:[o.name," (",o.code,")"]})]},o.code))}),t.jsxs(N,{gap:"8",children:[t.jsx(m,{variant:"secondary",onClick:d,children:"Select all languages"}),t.jsx(m,{variant:"secondary",onClick:w,children:"Deselect all languages"}),t.jsx(m,{variant:"ghost",onClick:R,children:"Reset selected languages"}),t.jsx(m,{variant:"ghost",onClick:T,children:"Toggle all text variants"})]}),t.jsx(N,{column:!0,gap:"32",children:t.jsx(L,{label:"English sentence",value:s,onValueChange:F})}),t.jsx(C,{columns:3,gap:"16",children:A.filter(o=>n[o.code]).map(o=>t.jsxs("div",{style:{display:"contents"},children:[t.jsxs("div",{children:[o.name," (",o.code,")"]}),t.jsxs("div",{lang:o.code,children:[t.jsx(p,{accent:"tertiary",children:t.jsx("i",{children:"English sentence"})}),t.jsx(h,{variant:"large",tag:"h2",children:s}),t.jsx(p,{children:s}),i&&t.jsxs(t.Fragment,{children:[t.jsx(c,{referenceTheme:"tokyo-ui",component:"Heading",prop:"variant",options:S,render:a=>t.jsx(h,{variant:a,children:s}),resolveToken:a=>U.heading.variant[a].fontSize}),t.jsx(c,{referenceTheme:"tokyo-ui",component:"Text",prop:"variant",options:E.filter(({id:a})=>B.includes(a)),defaultValue:b,resolveToken:a=>U.text.variant[a].fontSize,render:a=>t.jsx(p,{variant:a,children:s})})]})]}),t.jsxs("div",{lang:o.code,children:[t.jsx(p,{accent:"tertiary",children:t.jsx("i",{children:"Localized sentence"})}),t.jsx(h,{variant:"large",tag:"h2",children:o.localized}),t.jsx(p,{children:o.localized}),i&&t.jsxs(t.Fragment,{children:[t.jsx(c,{referenceTheme:"tokyo-ui",component:"Heading",prop:"variant",options:S,render:a=>t.jsx(h,{variant:a,children:o.localized}),resolveToken:a=>U.heading.variant[a].fontSize}),t.jsx(c,{referenceTheme:"tokyo-ui",component:"Text",prop:"variant",options:E.filter(({id:a})=>B.includes(a)),defaultValue:b,resolveToken:a=>U.text.variant[a].fontSize,render:a=>t.jsx(p,{variant:a,children:o.localized})})]})]})]},o.code))})]})})}const z=()=>t.jsxs(t.Fragment,{children:[t.jsx(j,{}),t.jsx(V,{theme:"tokyo-ui",children:t.jsx("div",{"data-preply-ds-theme":"tokyo-ui",children:t.jsx(W,{})})})]}),
|
1210
|
+
`,c=({options:e,defaultValue:n,resolveToken:r,render:i,hideOptions:f=[],referenceTheme:s})=>{const{theme:{name:F}}=_(),k=e.filter(({id:d})=>!f.includes(d));return l.createElement(q,{relevant:s===F},l.createElement("h4",null,"Options (theme: ",s,")"),l.createElement("table",{style:{fontSize:"14px"}},l.createElement("tbody",null,k.map(({id:d},w)=>l.createElement(Q,{key:d,index:w,id:d,defaultValue:n,resolveToken:r,render:i})))))};c.__docgenInfo={description:"",methods:[],displayName:"ThemeOptionsList",props:{hideOptions:{defaultValue:{value:"[]",computed:!1},required:!1}}};const B=["caption-regular","caption-semibold","small-regular","small-regular-italic","small-semibold","small-semibold-italic","default-regular","default-regular-italic","default-semibold","default-semibold-italic","large-regular","large-regular-italic","large-semibold","large-semibold-italic"],A=[{name:"Русский (Russian)",code:"ru",localized:"Привет, мир!"},{name:"English",code:"en",localized:"Hello, World!"},{name:"Polski",code:"pl",localized:"Cześć, Świecie!"},{name:"Deutsch",code:"de",localized:"Hallo, Welt!"},{name:"Українська (Ukranian)",code:"ua",localized:"Привіт, Світ!"},{name:"Português",code:"pt",localized:"Olá, Mundo!"},{name:"Türkçe",code:"tr",localized:"Merhaba, Dünya!"},{name:"Bahasa",code:"id",localized:"Halo, Dunia!"},{name:"Français",code:"fr",localized:"Bonjour, le monde!"},{name:"Italiano",code:"it",localized:"Ciao, Mondo!"},{name:"Español",code:"es",localized:"¡Hola, Mundo!"},{name:"中文 (Chinese)",code:"zh",localized:"你好,世界!"},{name:"日本語 (Japanese)",code:"ja",localized:"こんにちは、世界!"},{name:"한국어 (Korean)",code:"ko",localized:"안녕하세요, 세계!"},{name:"العربية",code:"ar",localized:"مرحبا بك في عالم البرمجة!"},{name:"Nederlands",code:"nl",localized:"Hallo, wereld!"},{name:"Română",code:"ro",localized:"Salut, Lume!"},{name:"Thai",code:"th",localized:"สวัสดี, โลก!"},{name:"Swedish",code:"sv",localized:"Hej, världen!"},{name:"Czeck",code:"cs",localized:"Ahoj, světe!"}],P={ru:!0,en:!0,pl:!0,de:!0,ua:!0,pt:!0,tr:!0,id:!0,fr:!0,it:!0,es:!0,zh:!0,ja:!0,ko:!0,ar:!0,nl:!0,ro:!0,th:!0,sv:!0,cs:!0};function W(){const e=localStorage.getItem("selectedLanguages"),[n,r]=g.useState(e?JSON.parse(e):P),[i,f]=g.useState(!1),[s,F]=g.useState("Hello, World!");g.useEffect(()=>{localStorage.setItem("selectedLanguages",JSON.stringify(n))},[n]);const k=o=>{r({...n,[o.target.name]:o.target.checked})},d=()=>{const o=A.reduce((a,O)=>(a[O.code]=!0,a),{});r(o)},w=()=>{r({})},R=()=>{r(P)},T=()=>{f(o=>!o)};return t.jsx("div",{className:"App",children:t.jsxs(N,{column:!0,gap:"32",children:[t.jsx(C,{columns:5,gap:"8",children:A.map(o=>t.jsxs("div",{children:[t.jsx("input",{type:"checkbox",name:o.code,checked:n[o.code]||!1,onChange:k,id:o.code}),t.jsxs("label",{htmlFor:o.code,children:[o.name," (",o.code,")"]})]},o.code))}),t.jsxs(N,{gap:"8",children:[t.jsx(m,{variant:"secondary",onClick:d,children:"Select all languages"}),t.jsx(m,{variant:"secondary",onClick:w,children:"Deselect all languages"}),t.jsx(m,{variant:"ghost",onClick:R,children:"Reset selected languages"}),t.jsx(m,{variant:"ghost",onClick:T,children:"Toggle all text variants"})]}),t.jsx(N,{column:!0,gap:"32",children:t.jsx(L,{label:"English sentence",value:s,onValueChange:F})}),t.jsx(C,{columns:3,gap:"16",children:A.filter(o=>n[o.code]).map(o=>t.jsxs("div",{style:{display:"contents"},children:[t.jsxs("div",{children:[o.name," (",o.code,")"]}),t.jsxs("div",{lang:o.code,children:[t.jsx(p,{accent:"tertiary",children:t.jsx("i",{children:"English sentence"})}),t.jsx(h,{variant:"large",tag:"h2",children:s}),t.jsx(p,{children:s}),i&&t.jsxs(t.Fragment,{children:[t.jsx(c,{referenceTheme:"tokyo-ui",component:"Heading",prop:"variant",options:S,render:a=>t.jsx(h,{variant:a,children:s}),resolveToken:a=>U.heading.variant[a].fontSize}),t.jsx(c,{referenceTheme:"tokyo-ui",component:"Text",prop:"variant",options:E.filter(({id:a})=>B.includes(a)),defaultValue:b,resolveToken:a=>U.text.variant[a].fontSize,render:a=>t.jsx(p,{variant:a,children:s})})]})]}),t.jsxs("div",{lang:o.code,children:[t.jsx(p,{accent:"tertiary",children:t.jsx("i",{children:"Localized sentence"})}),t.jsx(h,{variant:"large",tag:"h2",children:o.localized}),t.jsx(p,{children:o.localized}),i&&t.jsxs(t.Fragment,{children:[t.jsx(c,{referenceTheme:"tokyo-ui",component:"Heading",prop:"variant",options:S,render:a=>t.jsx(h,{variant:a,children:o.localized}),resolveToken:a=>U.heading.variant[a].fontSize}),t.jsx(c,{referenceTheme:"tokyo-ui",component:"Text",prop:"variant",options:E.filter(({id:a})=>B.includes(a)),defaultValue:b,resolveToken:a=>U.text.variant[a].fontSize,render:a=>t.jsx(p,{variant:a,children:o.localized})})]})]})]},o.code))})]})})}const z=()=>t.jsxs(t.Fragment,{children:[t.jsx(j,{}),t.jsx(V,{theme:"tokyo-ui",children:t.jsx("div",{"data-preply-ds-theme":"tokyo-ui",children:t.jsx(W,{})})})]}),Pt={title:"Guides/Assets/FontForLanguages",component:z,tags:["!autodocs","!a11y-test"]},u=()=>t.jsx(z,{});var v,x,I;u.parameters={...u.parameters,docs:{...(v=u.parameters)==null?void 0:v.docs,source:{originalSource:`() => {
|
1211
1211
|
return <FontForLanguages />;
|
1212
|
-
}`,...(I=(x=u.parameters)==null?void 0:x.docs)==null?void 0:I.source}}};const
|
1212
|
+
}`,...(I=(x=u.parameters)==null?void 0:x.docs)==null?void 0:I.source}}};const vt=["LanguageFontExplorer"];export{u as LanguageFontExplorer,vt as __namedExportsOrder,Pt as default};
|
@@ -1,4 +1,4 @@
|
|
1
|
-
import{j as e}from"./jsx-runtime-
|
1
|
+
import{j as e}from"./jsx-runtime-BTJTZTIL.js";import{useMDXComponents as n}from"./index-BN6VMYqa.js";import{M as s}from"./index-DbKU6UKS.js";import"./index-ChsGqxH_.js";import"./index-Cb9e4tly.js";import"./_commonjsHelpers-Cpj98o6Y.js";import"./iframe-1aej65yW.js";import"./index-BPrLDK9Y.js";import"./index-C7hTFOIV.js";import"./index-Cu4lwwaE.js";import"./index-CXQShRbs.js";import"./index-DrFu-skq.js";function o(r){const t={a:"a",code:"code",h1:"h1",h2:"h2",p:"p",pre:"pre",...n(),...r.components};return e.jsxs(e.Fragment,{children:[e.jsx(s,{title:"Guides/Installation/SSR/Next.js app router"}),`
|
2
2
|
`,e.jsx(t.h1,{id:"installation-nextjs-app-router",children:"Installation: Next.js app router"}),`
|
3
3
|
`,e.jsxs(t.p,{children:["This guide assumes you have read and followed the steps in the ",e.jsx(t.a,{href:"/story/guides-installation-applications--page",children:"Installation: Applications"})," guide."]}),`
|
4
4
|
`,e.jsx(t.h2,{id:"packages",children:"Packages"}),`
|
@@ -56,4 +56,4 @@ export default function RootLayout({ children }: { children: React.ReactNode })
|
|
56
56
|
);
|
57
57
|
}
|
58
58
|
`})}),`
|
59
|
-
`,e.jsxs(t.p,{children:["See also ",e.jsx(t.a,{href:"https://nextjs.org/docs/app/building-your-application/styling/css-in-js",rel:"nofollow",children:"Next.js official docs"}),"."]})]})}function
|
59
|
+
`,e.jsxs(t.p,{children:["See also ",e.jsx(t.a,{href:"https://nextjs.org/docs/app/building-your-application/styling/css-in-js",rel:"nofollow",children:"Next.js official docs"}),"."]})]})}function g(r={}){const{wrapper:t}={...n(),...r.components};return t?e.jsx(t,{...r,children:e.jsx(o,{...r})}):o(r)}export{g as default};
|
@@ -1,4 +1,4 @@
|
|
1
|
-
import{j as e}from"./jsx-runtime-
|
1
|
+
import{j as e}from"./jsx-runtime-BTJTZTIL.js";import{useMDXComponents as o}from"./index-BN6VMYqa.js";import{M as r}from"./index-DbKU6UKS.js";import"./index-ChsGqxH_.js";import"./index-Cb9e4tly.js";import"./_commonjsHelpers-Cpj98o6Y.js";import"./iframe-1aej65yW.js";import"./index-BPrLDK9Y.js";import"./index-C7hTFOIV.js";import"./index-Cu4lwwaE.js";import"./index-CXQShRbs.js";import"./index-DrFu-skq.js";function i(s){const n={a:"a",code:"code",h1:"h1",h2:"h2",h3:"h3",li:"li",p:"p",pre:"pre",strong:"strong",ul:"ul",...o(),...s.components};return e.jsxs(e.Fragment,{children:[e.jsx(r,{title:"Guides/Installation/Libraries"}),`
|
2
2
|
`,e.jsx(n.h1,{id:"installation-libraries",children:"Installation: Libraries"}),`
|
3
3
|
`,e.jsxs(n.p,{children:["This guide applies to libraries consumed in Preply applications, and assumes these applications are already integrated according to the steps outlined in the ",e.jsx(n.a,{href:"/story/guides-installation-applications--page",children:"Installation: Applications"})," guide."]}),`
|
4
4
|
`,e.jsx(n.h2,{id:"install-packages",children:"Install Packages"}),`
|
@@ -18,4 +18,4 @@ import{j as e}from"./jsx-runtime-BYouaCF_.js";import{useMDXComponents as o}from"
|
|
18
18
|
`,e.jsxs(n.p,{children:["If you are using Jest for unit tests, you will need to add an ignore pattern to your library's ",e.jsx(n.code,{children:"jest.config.js"})," to force transpilation of our modules before the tests are executed."]}),`
|
19
19
|
`,e.jsx(n.pre,{children:e.jsx(n.code,{children:"transformIgnorePatterns: ['/node_modules/(?!(@preply)/)'],`\n"})}),`
|
20
20
|
`,e.jsx(n.h3,{id:"storybook",children:"Storybook"}),`
|
21
|
-
`,e.jsxs(n.p,{children:["If your library has a local instance of Storybook you will also have to follow the steps in ",e.jsx(n.a,{href:"/story/guides-installation-storybook--page",children:"Installation: Storybook"}),"."]})]})}function
|
21
|
+
`,e.jsxs(n.p,{children:["If your library has a local instance of Storybook you will also have to follow the steps in ",e.jsx(n.a,{href:"/story/guides-installation-storybook--page",children:"Installation: Storybook"}),"."]})]})}function f(s={}){const{wrapper:n}={...o(),...s.components};return n?e.jsx(n,{...s,children:e.jsx(i,{...s})}):i(s)}export{f as default};
|