@preply/ds-docs 6.2.1 → 7.0.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-BMs4V7pn.css +1 -0
- package/dist/assets/{00-XaAzBaUc.css → 00-CGymiNpA.css} +1 -1
- package/dist/assets/{00.LayoutFlex.stories-DFEffdEX.js → 00.LayoutFlex.stories-Dt5duRfr.js} +1 -1
- package/dist/assets/{00.applications-DwbgjTES.js → 00.applications-zMWs_lvF.js} +1 -1
- package/dist/assets/{00.favicons.guide-DcNQ6JJ2.js → 00.favicons.guide-COuWYncB.js} +1 -1
- package/dist/assets/{00.token-explorer-LXPneU27.js → 00.token-explorer-CtOvKkBa.js} +45 -50
- package/dist/assets/00.using-responsive-props-C_CmteSF.js +18 -0
- package/dist/assets/{01.semantic-tokens-Bj0MZikU.js → 01.semantic-tokens-vIcTAVoV.js} +1 -1
- package/dist/assets/{01.using-shorthand-props-C_kd-tOU.js → 01.using-shorthand-props-Fs5ktwh-.js} +1 -1
- package/dist/assets/10.Combinations.stories-DLmHh0dH.js +128 -0
- package/dist/assets/{10.fonts.guide-cOg4--M0.js → 10.fonts.guide-Boaz7cGK.js} +1 -1
- package/dist/assets/{10.ssr-CkQkiYr_.js → 10.ssr-vL5QWBU5.js} +1 -1
- package/dist/assets/{11.languageFont.explorer-D5OZDKjm.css → 11.languageFont.explorer-Dcbkuitq.css} +1 -1
- package/dist/assets/{11.languageFont.explorer.stories-B768GtgD.js → 11.languageFont.explorer.stories-CtRFTC-u.js} +45 -9
- package/dist/assets/{11.ssr.app-router-CWCQk2ki.js → 11.ssr.app-router-C7V-QNwI.js} +1 -1
- package/dist/assets/{20.libraries-0jYQd0c8.js → 20.libraries-C7345wPo.js} +1 -1
- package/dist/assets/2025-q4-ds-cleanup-C6vp_85d.js +341 -0
- package/dist/assets/{30.icons-C3YgliEf.css → 30.icons-BhG23ylY.css} +1 -1
- package/dist/assets/30.icons.explorer-Fslwgzd_.js +73 -0
- package/dist/assets/{30.storybook-DN0IYaka.js → 30.storybook-BLgMhOLU.js} +1 -1
- package/dist/assets/{40.illustrations.explorer-h26wOTdW.js → 40.illustrations.explorer-CdDfolEa.js} +2 -2
- package/dist/assets/{90.advanced-C_SggU3t.js → 90.advanced-cb9IFeS8.js} +1 -1
- package/dist/assets/{Accordion-Cyb5Nn2n.js → Accordion-CHRCUt6V.js} +3 -3
- package/dist/assets/{Accordion.stories--vdk3eDm.js → Accordion.stories-DjnVIl_D.js} +1 -1
- package/dist/assets/{Accordion.tests.stories-BZ9mYsQ7.js → Accordion.tests.stories-CfJldp8a.js} +1 -1
- package/dist/assets/{AlertDialog.stories-C7uMO9mh.js → AlertDialog.stories-lZ1_3Gm7.js} +1 -1
- package/dist/assets/Avatar-B6s9WtES.css +1 -0
- package/dist/assets/Avatar-C3aW8Few.js +6 -0
- package/dist/assets/{Avatar.stories-DR-CfnXT.js → Avatar.stories-D74wvjcx.js} +1 -1
- package/dist/assets/AvatarWithStatus-azmN9QBq.css +1 -0
- package/dist/assets/AvatarWithStatus.stories-HJvNyFOJ.js +41 -0
- package/dist/assets/{Badge-Dt53PLuR.css → Badge-DWapjrJk.css} +1 -1
- package/dist/assets/{Badge.stories-2oyC_nFb.js → Badge.stories-DiQ5EYqe.js} +2 -2
- package/dist/assets/Box-CfDLuPKr.css +1 -0
- package/dist/assets/Box.stories-DwsGJm86.js +44 -0
- package/dist/assets/{BubbleCounter.stories-GgMNEAiu.js → BubbleCounter.stories-DfIYC9OV.js} +19 -19
- package/dist/assets/Button-B5i7cA94.js +1 -0
- package/dist/assets/{Button-C_fPlVgv.js → Button-C-6rDSzI.js} +1 -1
- package/dist/assets/Button-C2MXHYlY.css +1 -0
- package/dist/assets/{Button.stories-cWd-dVuA.js → Button.stories-BTIVeQhk.js} +1 -1
- package/dist/assets/ButtonBase-Ide6FPM1.css +1 -0
- package/dist/assets/ButtonBase-h431KMrY.js +8 -0
- package/dist/assets/{Checkbox-CwRsc2EI.js → Checkbox-CTgExOzA.js} +2 -2
- package/dist/assets/{Checkbox.stories-VrIF65XW.js → Checkbox.stories-DEDVXZVr.js} +1 -1
- package/dist/assets/{Checkbox.tests.stories-Bkem4MJk.js → Checkbox.tests.stories-C4b12-x2.js} +1 -1
- package/dist/assets/{Chips.stories-aNKBgAAy.js → Chips.stories-DJZl0rpM.js} +1 -1
- package/dist/assets/{Color-YHDXOIA2-D78IQcCv.js → Color-YHDXOIA2-Cq268FXz.js} +1 -1
- package/dist/assets/{ComposingPopovers.stories-DBDczabT.js → ComposingPopovers.stories-gSXkPJ7x.js} +1 -1
- package/dist/assets/{CountryFlag-CoZRfHcc.js → CountryFlag-B1fjJhKl.js} +19 -19
- package/dist/assets/{CountryFlag.stories-B__7dcqV.js → CountryFlag.stories-U6hQtu1M.js} +1 -1
- package/dist/assets/{CountryFlag.test.stories-CKoqsy5p.js → CountryFlag.test.stories-BdvW6RqA.js} +1 -1
- package/dist/assets/{Dialog.stories-CmtMSL5X.js → Dialog.stories-Chk8mm-d.js} +1 -1
- package/dist/assets/{DismissibleChips-DeSQXJFS.js → DismissibleChips-D0HSQ2Lh.js} +1 -1
- package/dist/assets/{DismissibleChips.stories-B3z6YEk5.js → DismissibleChips.stories-Bdq4FWYy.js} +1 -1
- package/dist/assets/{DocsRenderer-CFRXHY34-b5dZOffC.js → DocsRenderer-CFRXHY34-HYpkXxks.js} +1 -1
- package/dist/assets/{DropdownMenu-Bdn_pCqV.js → DropdownMenu-DN8DS6fO.js} +424 -424
- package/dist/assets/{DropdownMenu.stories-CjWvDtYz.js → DropdownMenu.stories-DwDqM2g2.js} +2 -2
- package/dist/assets/{FieldButton-BdtlVuw0.css → FieldButton-CDW5AvHN.css} +1 -1
- package/dist/assets/FieldButton.stories-DApRDUo4.js +1 -0
- package/dist/assets/{FormControl.stories-D9jkUApH.js → FormControl.stories-Buu_5XI0.js} +1 -1
- package/dist/assets/Heading-BTHqyLcz.css +1 -0
- package/dist/assets/Heading-DBysGv9G.js +1 -0
- package/dist/assets/{Heading.stories-TaZ6Hroz.js → Heading.stories-R56eeA_e.js} +1 -16
- package/dist/assets/Icon-BvqvxBCF.js +8 -0
- package/dist/assets/Icon-CyGLQNx7.css +1 -0
- package/dist/assets/{Icon-RSC-Baw20G8X.js → Icon-RSC-Ba1UVPLJ.js} +1 -1
- package/dist/assets/{Icon.stories-BSZrT4ib.js → Icon.stories-DHYosHsQ.js} +2 -8
- package/dist/assets/{IconButton-B9XzqBsx.js → IconButton-BgdrD9k8.js} +1 -1
- package/dist/assets/{Input-DGy_j48W.js → Input-CtOVFlZu.js} +20 -20
- package/dist/assets/{InputContainer-CkBfMjs_.css → InputContainer-DIiUCsnL.css} +1 -1
- package/dist/assets/{IntegrationWithReactHookForm.stories-B_a_uJ_E.js → IntegrationWithReactHookForm.stories-vzoUzTwY.js} +1 -1
- package/dist/assets/{IntlFormattedCurrency.stories-ClqugpJ8.js → IntlFormattedCurrency.stories-BPOxYvtQ.js} +1 -1
- package/dist/assets/{IntlFormattedDateTime.stories-BCHNybmI.js → IntlFormattedDateTime.stories-CwhK8xUw.js} +1 -1
- package/dist/assets/LayoutFlex-B05EaYB1.css +1 -0
- package/dist/assets/LayoutFlex-DF8MvGnJ.js +1 -0
- package/dist/assets/LayoutFlex-SLqUdEZ0.js +1 -0
- package/dist/assets/{LayoutFlexItem-CbD8uHkr.js → LayoutFlexItem-Fq4pc51S.js} +1 -1
- package/dist/assets/{LayoutGrid-C9qY19FJ.js → LayoutGrid-CE36Gi2-.js} +1 -1
- package/dist/assets/{LayoutGrid-EzfUD7Oc.js → LayoutGrid-CcWPCxyF.js} +1 -1
- package/dist/assets/{LayoutGrid.stories-6vmbXla8.js → LayoutGrid.stories-gV4NEEKv.js} +1 -1
- package/dist/assets/{LayoutGridItem-DhK3Bywt.js → LayoutGridItem-DjWZowtL.js} +1 -1
- package/dist/assets/{Link-Cc9tpbxA.js → Link-D8MdXqAL.js} +2 -2
- package/dist/assets/{Link.stories-CxDjOE78.js → Link.stories-3gCJ1dPH.js} +1 -1
- package/dist/assets/{Loader.stories-NAV6raiv.js → Loader.stories-CgVn9xQk.js} +1 -1
- package/dist/assets/{MultiSelectChips-Bmg2ZtDw.js → MultiSelectChips-C5hY3u7z.js} +2 -2
- package/dist/assets/{MultiSelectChips.stories-BtDdccPg.js → MultiSelectChips.stories-YPyHW9za.js} +1 -1
- package/dist/assets/{NumberField-DJj1Opyy.js → NumberField-BAnx6qPH.js} +5 -5
- package/dist/assets/{NumberField.stories-ZPVyEH2q.js → NumberField.stories-BfK-xWDW.js} +1 -1
- package/dist/assets/{ObserveIntersection-CBPJ0vGf.js → ObserveIntersection-DoABIrj2.js} +2 -2
- package/dist/assets/{ObserveIntersection.stories-Bj8cybzJ.js → ObserveIntersection.stories-MxqykgUa.js} +1 -1
- package/dist/assets/{OnboardingTooltip-H-asud8E.js → OnboardingTooltip-pbmDcWPw.js} +1 -1
- package/dist/assets/{OnboardingTooltip.stories-oZKB-1fw.js → OnboardingTooltip.stories-KmULRGrE.js} +1 -1
- package/dist/assets/{OnboardingTooltip.tests.stories-gm2F5KjF.js → OnboardingTooltip.tests.stories-CbCRqRzt.js} +1 -1
- package/dist/assets/{OnboardingTour-DLmQAs2q.js → OnboardingTour-DuSyhLj7.js} +1 -1
- package/dist/assets/{OnboardingTour.stories-U_Zv26GX.js → OnboardingTour.stories-CxzUxygq.js} +2 -2
- package/dist/assets/{OnboardingTour.tests.stories-lr8KbzXv.js → OnboardingTour.tests.stories-BJLn9yLR.js} +1 -1
- package/dist/assets/{PasswordField-D3x-njN6.js → PasswordField-s0awIjhR.js} +5 -5
- package/dist/assets/{PasswordField.stories-DY7TTuf4.js → PasswordField.stories-BFjab2l7.js} +1 -1
- package/dist/assets/PreplyLogo.stories-DP9KwK_Z.js +95 -0
- package/dist/assets/{ProgressBar.stories-Dz2-sH8s.js → ProgressBar.stories-B3h1e_Sh.js} +1 -1
- package/dist/assets/{ProgressSteps.stories-BRlCSCeh.js → ProgressSteps.stories-Dynrugj8.js} +1 -1
- package/dist/assets/{PromoDialog-DRf5gWik.js → PromoDialog-BjzZJDV0.js} +1 -1
- package/dist/assets/{RatingInput.stories-BkrOVuQQ.js → RatingInput.stories-BmhUO-vY.js} +2 -2
- package/dist/assets/RootProvider-CyXG17jf.js +1 -0
- package/dist/assets/{SelectField-lfZ0L6Zz.js → SelectField-DQaHhpdo.js} +23 -23
- package/dist/assets/{SelectField.stories-YObLtWD_.js → SelectField.stories-PEqsvk0C.js} +1 -1
- package/dist/assets/{ShowOnIntersection.stories-CtV5r2Kn.js → ShowOnIntersection.stories-D9z3nJ09.js} +1 -1
- package/dist/assets/{SingleSelectChips-D6WHYSkm.js → SingleSelectChips-F4UnB9vA.js} +2 -2
- package/dist/assets/{SingleSelectChips.stories-NnUM5_xE.js → SingleSelectChips.stories-BBKSdWBo.js} +1 -1
- package/dist/assets/{Spinner-CUtAzzFK.js → Spinner-qiZily8k.js} +1 -1
- package/dist/assets/{Steps-PlAEG-Yj.js → Steps-DgjrJwVq.js} +1 -1
- package/dist/assets/{Steps.stories-DBIFV5Gc.js → Steps.stories-ufi4kGuC.js} +1 -1
- package/dist/assets/{Switch.stories-DP5Z-Z1S.js → Switch.stories-CsULyDva.js} +1 -1
- package/dist/assets/Text-D2ADMZ83.css +1 -0
- package/dist/assets/Text-D8nK9Gef.js +1 -0
- package/dist/assets/{Text.stories-CKiExQB8.js → Text.stories-bvUujgrK.js} +2 -13
- package/dist/assets/TextField-YNQdGzCB.js +6 -0
- package/dist/assets/{TextField.stories-8W5Yi6w1.js → TextField.stories-f9ldIm1J.js} +1 -1
- package/dist/assets/{TextHighlighted-BnmI0H3i.css → TextHighlighted-CzbRMqIZ.css} +1 -1
- package/dist/assets/{TextHighlighted.stories-BMvHQkL1.js → TextHighlighted.stories-DlDBJPi3.js} +1 -1
- package/dist/assets/TextInline-DX8-G7El.css +1 -0
- package/dist/assets/TextInline.stories-Cjn3XyU6.js +28 -0
- package/dist/assets/{TextareaField-zAkE4gU-.js → TextareaField-C36Ug8gi.js} +24 -24
- package/dist/assets/{TextareaField.stories-CCm6hY6d.js → TextareaField.stories-L_2OO9Yq.js} +1 -1
- package/dist/assets/{Toast.stories-5Ff_p49x.js → Toast.stories-CpLfbd2z.js} +1 -1
- package/dist/assets/TokyoUILibraryExplore-B9OQyi-V.js +1 -0
- package/dist/assets/TokyoUIMessages-BShhOmUG.js +1 -0
- package/dist/assets/TokyoUISettings-NNMqOtUc.js +1 -0
- package/dist/assets/{Tooltip.stories-p-N_RXA_.js → Tooltip.stories-BICCA_KF.js} +1 -1
- package/dist/assets/{Tooltip.tests.stories-BqZKUD1C.js → Tooltip.tests.stories-t8Ra6jdu.js} +1 -1
- package/dist/assets/{breakpoints-OJlieRDV.js → breakpoints-64znscqA.js} +1 -1
- package/dist/assets/{breakpoints-gOoXhZ6T.js → breakpoints-L8g5UCJI.js} +1 -1
- package/dist/assets/{breakpoints-D5eTfhQt.js → breakpoints-QoiryOYu.js} +1 -1
- package/dist/assets/{changelog-DBZsswFI.js → changelog-BKXTsUCM.js} +213 -140
- package/dist/assets/{constants-DFIBNoDe.js → constants-DVSid1Xr.js} +1 -1
- package/dist/assets/{createRequiredContext-B4q-yDnc.js → createRequiredContext-B8x9tk86.js} +91 -91
- package/dist/assets/{createRequiredContext-CIlvPj_Z.css → createRequiredContext-Cjxy1dPq.css} +1 -1
- package/dist/assets/defaults-_YAxqn11.js +1 -0
- package/dist/assets/{entry-preview-D8LtJVDQ.js → entry-preview-BNEezZyx.js} +1 -1
- package/dist/assets/{getTokenVar-C7ybXGnC.js → getTokenVar-8CxPfXFX.js} +1 -1
- package/dist/assets/{hover-DL7BRH9c.js → hover-BXbDCfjt.js} +1 -1
- package/dist/assets/{hover-DOIs4IiK.js → hover-C-TlHYRi.js} +1 -1
- package/dist/assets/{hover-D3UUe8FY.js → hover-DtCfY813.js} +1 -1
- package/dist/assets/{iframe-DXHcze-2.js → iframe-C2tAe-Qy.js} +2 -2
- package/dist/assets/{index-CEMjmNGc.js → index-BB4sENbh.js} +1 -1
- package/dist/assets/{index-CqGkHege.js → index-DvPeUp0D.js} +3 -3
- package/dist/assets/{index-DgGXLyV-.js → index-fVuid1dE.js} +3 -3
- package/dist/assets/{intro-CsKxgK5R.js → intro-dlEFrPdU.js} +1 -1
- package/dist/assets/layout-relative-BWwbkKin.css +1 -0
- package/dist/assets/layout-relative-DOxkgOJk.css +1 -0
- package/dist/assets/{layout-relative-C9i8Tz-b.js → layout-relative-Rn-Bns4t.js} +1 -1
- package/dist/assets/layout-relative.module-1z75aSwo-rvXP8TMg.js +1 -0
- package/dist/assets/layout-relative.module-FOVgic7W.js +1 -0
- package/dist/assets/{migrating-from-less-B3W48377.js → migrating-from-less-BKyV4hJD.js} +1 -1
- package/dist/assets/{options-BDxO9WUW.js → options-BM-sJPHZ.js} +1 -1
- package/dist/assets/{preview-C5fQQH4k.js → preview-D9Nw9WV_.js} +1 -1
- package/dist/assets/{preview-BFiYFS43.js → preview-DCMRVQQJ.js} +1 -1
- package/dist/assets/{preview-BXlmSvpa.js → preview-DoZu3itP.js} +2 -2
- package/dist/assets/text-accent-BEHYxGwR.css +1 -0
- package/dist/assets/text-accent-VILyY3zt.js +1 -0
- package/dist/assets/text-centered-CT0UilMD.css +1 -0
- package/dist/assets/text-centered-DRiH4EXX.js +1 -0
- package/dist/assets/tokens-BYLcI6Lk.js +1 -0
- package/dist/assets/{tokens-D_vJHKnZ.js → tokens-C46iywJd.js} +1 -1
- package/dist/assets/{tokens-CSn7pZ3s.js → tokens-CYAs2P_Q.js} +1 -1
- package/dist/assets/{tokens-DN6lg4SO.js → tokens-DJgqRFsH.js} +1 -1
- package/dist/assets/{usePortalElement--DPAMdeX.js → usePortalElement-2-MM_J7n.js} +1 -1
- package/dist/assets/useTheme-zzbPBRtu.js +1 -0
- package/dist/assets/{useToken-9pfUFuu3.js → useToken-Cfvk3vM1.js} +1 -1
- package/dist/assets/{welcome-DLrfkXbY.js → welcome-Dt_Mziyw.js} +1 -1
- package/dist/assets/{zeroheight-C3OhgYZ8.js → zeroheight-uYghuJRJ.js} +1 -1
- package/dist/iframe.html +1 -1
- package/dist/index.json +1 -1
- package/dist/preview-stats.json +11255 -12752
- package/dist/project.json +1 -1
- package/package.json +3 -3
- package/dist/assets/00-l4k-u_Mp.css +0 -1
- package/dist/assets/00.using-responsive-props-qH9g34F6.js +0 -18
- package/dist/assets/10.Combinations.stories-CQk-exze.js +0 -144
- package/dist/assets/30.icons.explorer-BXdbq9mf.js +0 -73
- package/dist/assets/Avatar-DTmc5ZGN.css +0 -1
- package/dist/assets/Avatar-og0xcuCF.js +0 -6
- package/dist/assets/AvatarWithStatus-CxEAGmUA.css +0 -1
- package/dist/assets/AvatarWithStatus.stories-B9EeuQdS.js +0 -41
- package/dist/assets/Box-CjExCUkg.css +0 -1
- package/dist/assets/Box.stories-DZ3oyPxa.js +0 -44
- package/dist/assets/Button-Dpx1oUXU.css +0 -1
- package/dist/assets/Button-RI9aMQG7.js +0 -1
- package/dist/assets/ButtonBase-BtJlPrmt.js +0 -8
- package/dist/assets/ButtonBase-CAzN2xsB.css +0 -1
- package/dist/assets/FieldButton.stories-BA1CQlpK.js +0 -1
- package/dist/assets/Heading-C14zK0Nl.css +0 -1
- package/dist/assets/Heading-Dn8_xb8m.js +0 -2
- package/dist/assets/Icon-Ba2WH2t8.js +0 -8
- package/dist/assets/Icon-D_HQx804.css +0 -1
- package/dist/assets/LayoutFlex-B9hPEubG.js +0 -1
- package/dist/assets/LayoutFlex-Cm3iL-tz.js +0 -1
- package/dist/assets/LayoutFlex-a_rYMhDk.css +0 -1
- package/dist/assets/LibraryExplore-oBYfEgnm.js +0 -1
- package/dist/assets/Messages-VCFIwUal.js +0 -1
- package/dist/assets/PreplyLogo.stories-DkBjoKnm.js +0 -105
- package/dist/assets/RootProvider-h3rJvJn8.js +0 -1
- package/dist/assets/Text-BeHJ-RPQ.js +0 -1
- package/dist/assets/Text-DWmJ-bA2.css +0 -1
- package/dist/assets/TextField-D47n84s4.js +0 -6
- package/dist/assets/TextInline-CztA0I1b.css +0 -1
- package/dist/assets/TextInline.stories-Bbi5ILSZ.js +0 -37
- package/dist/assets/TokyoUISettings-47T4QHhu.js +0 -1
- package/dist/assets/defaults-czRWsFkX.js +0 -1
- package/dist/assets/layout-relative-BNsRKWaJ.css +0 -1
- package/dist/assets/layout-relative-iaxAShjd.css +0 -1
- package/dist/assets/layout-relative.module-1z75aSwo-CYqlqbVA.js +0 -1
- package/dist/assets/layout-relative.module-uOnIKnjS.js +0 -1
- package/dist/assets/text-accent-DvyJpEME.js +0 -1
- package/dist/assets/text-accent-WDJkKazf.css +0 -1
- package/dist/assets/text-centered-7Z5xvJY4.js +0 -1
- package/dist/assets/text-centered-fslmi4MP.css +0 -1
- package/dist/assets/tokens-B6goZRPa.js +0 -1
- package/dist/assets/useTheme-DYA9F6CC.js +0 -1
- /package/dist/assets/{FieldButton-BgIvx-8D.js → FieldButton-DAY3HLuQ.js} +0 -0
- /package/dist/assets/{InputContainer-B1hqJyx0.js → InputContainer-Cnv--ROK.js} +0 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
.Avatar__ENaap{display:inline-block}.Avatar__ENaap img{vertical-align:bottom;-o-object-fit:cover;object-fit:cover;border-radius:var(--dad9ec)}.Avatar--size-24__ObR4y img{width:var(--86aa8e);height:var(--86aa8e)}.Avatar--size-32__dN-5k img{width:var(--32bbec);height:var(--32bbec)}.Avatar--size-48__ddqP8 img{width:var(--950ab5);height:var(--950ab5)}.Avatar--size-64__-Ju7I img{width:var(--cc5dc7);height:var(--cc5dc7)}.Avatar--size-96__KgHP3 img{width:var(--796da2);height:var(--796da2)}.Avatar--size-160__KZ0Fc img{width:var(--329ba7);height:var(--329ba7)}@media (min-width: 400px){.Avatar--narrow-l--size-24__qXCWM img{width:var(--86aa8e);height:var(--86aa8e)}.Avatar--narrow-l--size-32__qq9TP img{width:var(--32bbec);height:var(--32bbec)}.Avatar--narrow-l--size-48__h51Bn img{width:var(--950ab5);height:var(--950ab5)}.Avatar--narrow-l--size-64__LnrZ9 img{width:var(--cc5dc7);height:var(--cc5dc7)}.Avatar--narrow-l--size-96__n3HEe img{width:var(--796da2);height:var(--796da2)}.Avatar--narrow-l--size-160__1zjWL img{width:var(--329ba7);height:var(--329ba7)}}@media (min-width: 700px){.Avatar--medium-s--size-24__7-PF9 img{width:var(--86aa8e);height:var(--86aa8e)}.Avatar--medium-s--size-32__kS7dJ img{width:var(--32bbec);height:var(--32bbec)}.Avatar--medium-s--size-48__7rHLm img{width:var(--950ab5);height:var(--950ab5)}.Avatar--medium-s--size-64__eSycG img{width:var(--cc5dc7);height:var(--cc5dc7)}.Avatar--medium-s--size-96__gMO59 img{width:var(--796da2);height:var(--796da2)}.Avatar--medium-s--size-160__VHYbX img{width:var(--329ba7);height:var(--329ba7)}}@media (min-width: 880px){.Avatar--medium-l--size-24__wkAJa img{width:var(--86aa8e);height:var(--86aa8e)}.Avatar--medium-l--size-32__ZX2QH img{width:var(--32bbec);height:var(--32bbec)}.Avatar--medium-l--size-48__17P3w img{width:var(--950ab5);height:var(--950ab5)}.Avatar--medium-l--size-64__FpM1G img{width:var(--cc5dc7);height:var(--cc5dc7)}.Avatar--medium-l--size-96__5-hlk img{width:var(--796da2);height:var(--796da2)}.Avatar--medium-l--size-160__fa-Bb img{width:var(--329ba7);height:var(--329ba7)}}@media (min-width: 1200px){.Avatar--wide-s--size-24__ggmeN img{width:var(--86aa8e);height:var(--86aa8e)}.Avatar--wide-s--size-32__J7HvU img{width:var(--32bbec);height:var(--32bbec)}.Avatar--wide-s--size-48__FDJLh img{width:var(--950ab5);height:var(--950ab5)}.Avatar--wide-s--size-64__qE9HQ img{width:var(--cc5dc7);height:var(--cc5dc7)}.Avatar--wide-s--size-96__yjySN img{width:var(--796da2);height:var(--796da2)}.Avatar--wide-s--size-160__sQ83p img{width:var(--329ba7);height:var(--329ba7)}}@media (min-width: 1900px){.Avatar--wide-l--size-24__lammM img{width:var(--86aa8e);height:var(--86aa8e)}.Avatar--wide-l--size-32__hM5mX img{width:var(--32bbec);height:var(--32bbec)}.Avatar--wide-l--size-48__mLV4a img{width:var(--950ab5);height:var(--950ab5)}.Avatar--wide-l--size-64__uQV-R img{width:var(--cc5dc7);height:var(--cc5dc7)}.Avatar--wide-l--size-96__nbICp img{width:var(--796da2);height:var(--796da2)}.Avatar--wide-l--size-160__gRCi9 img{width:var(--329ba7);height:var(--329ba7)}}.Avatar--round__Ndyn3 img{border-radius:var(--8517a6)}.Avatar__ENaap img{border-style:solid;border-width:var(--c4d145);border-color:var(--54e6b5)}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
.TextHighlighted__ehLpO{display:inline-block;padding-left:var(--58c1e5);padding-right:var(--58c1e5);margin:0;font-style:normal;border-radius:var(--330e49);font-weight:var(--
|
|
1
|
+
.TextHighlighted__ehLpO{display:inline-block;padding-left:var(--58c1e5);padding-right:var(--58c1e5);margin:0;font-style:normal;border-radius:var(--330e49);font-weight:var(--5ea101)}.TextHighlighted--highlight-blue__a1Ymf{color:var(--68bd17);background-color:var(--2d51ae)}.TextHighlighted--highlight-green__QQm6L{color:var(--c50238);background-color:var(--292009)}.TextHighlighted--highlight-primary__n35-d{color:var(--977d1a);background-color:var(--df6b06)}.TextHighlighted--highlight-secondary__YEj6c{color:var(--6c2ddf);background-color:var(--e5b0a4)}.TextHighlighted--highlight-tertiary__uDEFk{color:var(--8da8cb);background-color:var(--aa7c4d)}.TextHighlighted--highlight-accent__JrA2s{color:var(--1da698);background-color:var(--301ea7)}.TextHighlighted--highlight-positive__tfVNZ{color:var(--ad48d7);background-color:var(--a2a233)}.TextHighlighted--highlight-info__W1sMI{color:var(--2be49e);background-color:var(--86df85)}.TextHighlighted--highlight-warning__dzj54{color:var(--98c505);background-color:var(--d908ab)}.TextHighlighted--highlight-critical__V3-1S{color:var(--802584);background-color:var(--0c251f)}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{j as n}from"./jsx-runtime-BTJTZTIL.js";import{L as r}from"./LayoutFlexItem-
|
|
1
|
+
import{j as n}from"./jsx-runtime-BTJTZTIL.js";import{L as r}from"./LayoutFlexItem-Fq4pc51S.js";import{L as p}from"./LayoutFlex-SLqUdEZ0.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-Cj4aclWl.js";import"./classNames-9hsFPPZv.js";import"./layout-relative-Rn-Bns4t.js";import"./layout-relative.module-FOVgic7W.js";import"./constants-DYYVurUY.js";import"./filterAttributesPassedByRadixUIAtRuntime-B7QTVwVw.js";import"./componentNames-k0j3gHgH.js";import"./index-qlqSh81O.js";import"./defaults-_YAxqn11.js";const E={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:"16",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="16">
|
|
2
2
|
<div style={{
|
|
3
3
|
minWidth: '100px',
|
|
4
4
|
backgroundColor: 'hotpink'
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{j as e}from"./jsx-runtime-BTJTZTIL.js";import{useMDXComponents as r}from"./index-BN6VMYqa.js";import{M as o}from"./index-
|
|
1
|
+
import{j as e}from"./jsx-runtime-BTJTZTIL.js";import{useMDXComponents as r}from"./index-BN6VMYqa.js";import{M as o}from"./index-DvPeUp0D.js";import"./index-ChsGqxH_.js";import"./index-Cb9e4tly.js";import"./_commonjsHelpers-Cpj98o6Y.js";import"./iframe-C2tAe-Qy.js";import"./index-s7KTOhR7.js";import"./index-BPCsOyHr.js";import"./index-CA5R8PN9.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"}),`
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{j as n}from"./jsx-runtime-BTJTZTIL.js";import{useMDXComponents as t}from"./index-BN6VMYqa.js";import{M as i}from"./index-
|
|
1
|
+
import{j as n}from"./jsx-runtime-BTJTZTIL.js";import{useMDXComponents as t}from"./index-BN6VMYqa.js";import{M as i}from"./index-DvPeUp0D.js";import"./index-ChsGqxH_.js";import"./index-Cb9e4tly.js";import"./_commonjsHelpers-Cpj98o6Y.js";import"./iframe-C2tAe-Qy.js";import"./index-s7KTOhR7.js";import"./index-BPCsOyHr.js";import"./index-CA5R8PN9.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."]}),`
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import{j as t}from"./jsx-runtime-BTJTZTIL.js";import{useMDXComponents as
|
|
1
|
+
import{j as t}from"./jsx-runtime-BTJTZTIL.js";import{useMDXComponents as F}from"./index-BN6VMYqa.js";import{M as z}from"./index-DvPeUp0D.js";import{L as p,T as w}from"./LayoutFlex-DF8MvGnJ.js";import{r as a}from"./index-Cb9e4tly.js";import{g as E,u as N}from"./useToken-Cfvk3vM1.js";import{d as A,e as L,c as O,T as B}from"./constants-DTpaCXm6.js";import{t as M}from"./tokens-BYLcI6Lk.js";import{d as W,e as H,u as R,C as V,c as q}from"./useTheme-zzbPBRtu.js";import{L as y}from"./LayoutGrid-CcWPCxyF.js";import{f as G}from"./filterAttributesPassedByRadixUIAtRuntime-Bye2JkZ0.js";import{m as K,s as Y}from"./classNames-9hsFPPZv.js";import{j as X,i as U}from"./defaults-_YAxqn11.js";import{w as T}from"./componentNames-k0j3gHgH.js";import{g as Q}from"./index-qlqSh81O.js";import{d as n}from"./styled-components.browser.esm-COuAnjOv.js";import{o as J}from"./mixins-DZk1Zeoo.js";import"./index-ChsGqxH_.js";import"./iframe-C2tAe-Qy.js";import"./index-s7KTOhR7.js";import"./_commonjsHelpers-Cpj98o6Y.js";import"./index-BPCsOyHr.js";import"./index-CA5R8PN9.js";import"./index-DrFu-skq.js";import"./text-centered-DRiH4EXX.js";import"./layout-relative.module-1z75aSwo-rvXP8TMg.js";import"./breakpoints-BfMlrtxE.js";import"./constants-DYYVurUY.js";const Z=e=>Array.isArray(e)&&e.length===3&&A.includes(e[L]),ee=()=>{const{setTheme:e}=a.useContext(W);return{setTheme:e}},te="TextHighlighted__ehLpO",re={TextHighlighted:te,"TextHighlighted--highlight-blue":"TextHighlighted--highlight-blue__a1Ymf","TextHighlighted--highlight-green":"TextHighlighted--highlight-green__QQm6L","TextHighlighted--highlight-primary":"TextHighlighted--highlight-primary__n35-d","TextHighlighted--highlight-secondary":"TextHighlighted--highlight-secondary__YEj6c","TextHighlighted--highlight-tertiary":"TextHighlighted--highlight-tertiary__uDEFk","TextHighlighted--highlight-accent":"TextHighlighted--highlight-accent__JrA2s","TextHighlighted--highlight-positive":"TextHighlighted--highlight-positive__tfVNZ","TextHighlighted--highlight-info":"TextHighlighted--highlight-info__W1sMI","TextHighlighted--highlight-warning":"TextHighlighted--highlight-warning__dzj54","TextHighlighted--highlight-critical":"TextHighlighted--highlight-critical__V3-1S"},h=a.forwardRef(function({children:r,highlight:i=X,tag:o=U,dataset:s,...d},l){const u=K(re,T.TextHighlighted,[Y("highlight",i)]),g={...G(d),ref:l,className:u.join(" "),...Q(s,{preplyDsComponent:T.TextHighlighted})};return t.jsx(o,{...g,children:r})});h.__docgenInfo={description:"",methods:[],displayName:"TextHighlighted",props:{highlight:{defaultValue:{value:"'green'",computed:!1},required:!1},tag:{defaultValue:{value:"'span'",computed:!1},required:!1}}};const ne=(e,r)=>({token:r,name:e,id:r[B],type:r[L],colorSchemeAware:!!r[O]}),I=(e,r)=>Object.entries(r).flatMap(([i,o])=>{const s=`${e}.${i}`;return Z(o)?[ne(s,o)]:I(s,o)}),oe=e=>Object.entries(e).flatMap(([r,i])=>I(r,i)),ie=oe(M),se=(e,r,i)=>e.filter(o=>{if(r==="-"||r==="--")return!0;if(r!=null&&r.startsWith("--"))return o.id.toLowerCase().startsWith(r.substring(2).toLowerCase());if(r){const s=o.name.toLowerCase().indexOf(r.toLowerCase())>-1,d=o.value.toLowerCase().indexOf(r.toLowerCase())>-1;return(s||d)&&(i?o.colorSchemeAware:!o.colorSchemeAware)}return i?o.colorSchemeAware:!o.colorSchemeAware}),_=a.createContext({terms:"",colorScheme:void 0,results:[],setColorScheme:()=>{},setSearchTerms:()=>{}});var D;const ae=((D=window==null?void 0:window.localStorage)==null?void 0:D.getItem("storybook.ds-color-scheme"))||void 0;function de(e,r){return ie.map(o=>({...o,value:`${E(e,r,o.token)}`}))}const le=({children:e})=>{const{findColorScheme:r}=H(),{theme:i}=R(),[o,s]=a.useState(ae),[d,l]=a.useState(""),[u,g]=a.useState([]),x=a.useCallback(m=>s(m),[s]),f=a.useCallback(m=>l(m),[l]);if(!i)throw new Error("useToken() must be used within a ThemeProvider");return a.useEffect(()=>{const m=r(o||"base"),v=de(i,m);g(se(v,d,!!o))},[o,r,d,i]),t.jsx(_.Provider,{value:{terms:d,results:u,colorScheme:o,setSearchTerms:f,setColorScheme:x},children:t.jsx(V,{colorScheme:o||"base",children:e})})},j=()=>a.useContext(_),ce=n.div`
|
|
2
2
|
width: 64px;
|
|
3
3
|
height: 64px;
|
|
4
4
|
color: white;
|
|
5
5
|
background-color: ${({value:e})=>e};
|
|
6
|
-
`,he=({value:e})=>t.jsx(ce,{value:e}),ge=
|
|
6
|
+
`,he=({value:e})=>t.jsx(ce,{value:e}),ge=n.div`
|
|
7
7
|
background: white;
|
|
8
8
|
width: 48px;
|
|
9
9
|
height: 48px
|
|
@@ -22,12 +22,12 @@ import{j as t}from"./jsx-runtime-BTJTZTIL.js";import{useMDXComponents as P}from"
|
|
|
22
22
|
border-right: none;
|
|
23
23
|
border-bottom: none;
|
|
24
24
|
}
|
|
25
|
-
`,pe=({value:e})=>t.jsx(ge,{value:e,children:t.jsx("span",{})}),
|
|
25
|
+
`,pe=({value:e})=>t.jsx(ge,{value:e,children:t.jsx("span",{})}),me=n.div`
|
|
26
26
|
minwidth: 48px;
|
|
27
27
|
minheight: 48px;
|
|
28
28
|
padding: 8px 0 0 8px;
|
|
29
29
|
border-image: ${({value:e})=>e};
|
|
30
|
-
`,
|
|
30
|
+
`,xe=({value:e})=>t.jsx(me,{value:e,children:t.jsx("span",{})}),ue=n.div`
|
|
31
31
|
width: 32px;
|
|
32
32
|
height: 32px;
|
|
33
33
|
border-style: solid;
|
|
@@ -36,7 +36,7 @@ import{j as t}from"./jsx-runtime-BTJTZTIL.js";import{useMDXComponents as P}from"
|
|
|
36
36
|
border-right: none;
|
|
37
37
|
border-bottom: none;
|
|
38
38
|
border-top-left-radius: ${({value:e})=>e};
|
|
39
|
-
`,fe=({value:e})=>t.jsx(ue,{value:e}),be=
|
|
39
|
+
`,fe=({value:e})=>t.jsx(ue,{value:e}),be=n.div`
|
|
40
40
|
width: 64px;
|
|
41
41
|
padding-top: ${({value:e})=>e};
|
|
42
42
|
background: #666;
|
|
@@ -50,11 +50,11 @@ import{j as t}from"./jsx-runtime-BTJTZTIL.js";import{useMDXComponents as P}from"
|
|
|
50
50
|
height: 28px;
|
|
51
51
|
background: #999;
|
|
52
52
|
}
|
|
53
|
-
`,je=({value:e})=>t.jsx(be,{value:e,children:t.jsx("span",{})}),ve=
|
|
53
|
+
`,je=({value:e})=>t.jsx(be,{value:e,children:t.jsx("span",{})}),ve=n.div`
|
|
54
54
|
width: 64px;
|
|
55
55
|
height: 64px;
|
|
56
56
|
box-shadow: ${({value:e})=>e};
|
|
57
|
-
`,we=({value:e})=>t.jsx(ve,{value:e}),ye=
|
|
57
|
+
`,we=({value:e})=>t.jsx(ve,{value:e}),ye=n.div`
|
|
58
58
|
background: #999;
|
|
59
59
|
font-size: 16px;
|
|
60
60
|
line-height: 32px;
|
|
@@ -65,7 +65,7 @@ import{j as t}from"./jsx-runtime-BTJTZTIL.js";import{useMDXComponents as P}from"
|
|
|
65
65
|
${J(`
|
|
66
66
|
filter: brightness(${({value:e})=>e});
|
|
67
67
|
`)}
|
|
68
|
-
`,Te=({value:e})=>t.jsx(ye,{value:e,children:"hover me"}),Se=
|
|
68
|
+
`,Te=({value:e})=>t.jsx(ye,{value:e,children:"hover me"}),Se=n.div`
|
|
69
69
|
display: flex;
|
|
70
70
|
align-items: center;
|
|
71
71
|
justify-content: center;
|
|
@@ -75,7 +75,7 @@ import{j as t}from"./jsx-runtime-BTJTZTIL.js";import{useMDXComponents as P}from"
|
|
|
75
75
|
font-weight: 700;
|
|
76
76
|
color: ${({value:e})=>e};
|
|
77
77
|
background: ${({value:e})=>e==="white"?"black":"white"};
|
|
78
|
-
|
|
78
|
+
`,ke=({value:e})=>t.jsx(Se,{value:e,children:"A"}),$e=n.div`
|
|
79
79
|
font-family: ${({value:e})=>e};
|
|
80
80
|
font-size: 20px;
|
|
81
81
|
font-weight: 600;
|
|
@@ -87,52 +87,52 @@ import{j as t}from"./jsx-runtime-BTJTZTIL.js";import{useMDXComponents as P}from"
|
|
|
87
87
|
p:last-child {
|
|
88
88
|
font-weight: 400;
|
|
89
89
|
}
|
|
90
|
-
`,S=({value:e})=>t.jsxs(
|
|
90
|
+
`,S=({value:e})=>t.jsxs($e,{value:e,children:[t.jsx("p",{children:"Lorem ipsum dolor sit amet (700)"}),t.jsx("p",{children:"Lorem ipsum dolor sit amet (500)"}),t.jsx("p",{children:"Lorem ipsum dolor sit amet (400)"})]}),Ce=n.div`
|
|
91
91
|
font-family: PreplyInter;
|
|
92
92
|
@supports (font-variation-settings: normal) {
|
|
93
93
|
font-family: PreplyInterV;
|
|
94
94
|
}
|
|
95
95
|
font-size: ${({value:e})=>e};
|
|
96
|
-
`,De=({value:e})=>t.jsx(Ce,{value:e,children:"Lorem ipsum dolor sit amet"}),Le=
|
|
96
|
+
`,De=({value:e})=>t.jsx(Ce,{value:e,children:"Lorem ipsum dolor sit amet"}),Le=n.div`
|
|
97
97
|
font-family: PreplyInter;
|
|
98
98
|
@supports (font-variation-settings: normal) {
|
|
99
99
|
font-family: PreplyInterV;
|
|
100
100
|
}
|
|
101
101
|
font-style: ${({value:e})=>e};
|
|
102
102
|
font-size: 14px;
|
|
103
|
-
`,He=({value:e})=>t.jsx(Le,{value:e,children:"Lorem ipsum dolor sit amet."}),Re=
|
|
103
|
+
`,He=({value:e})=>t.jsx(Le,{value:e,children:"Lorem ipsum dolor sit amet."}),Re=n.div`
|
|
104
104
|
font-family: PreplyInter;
|
|
105
105
|
@supports (font-variation-settings: normal) {
|
|
106
106
|
font-family: PreplyInterV;
|
|
107
107
|
}
|
|
108
108
|
font-size: 20px;
|
|
109
109
|
font-weight: ${({value:e})=>e};
|
|
110
|
-
`,Ie=({value:e})=>t.jsx(Re,{value:e,children:"Lorem ipsum dolor sit amet"}),_e=
|
|
110
|
+
`,Ie=({value:e})=>t.jsx(Re,{value:e,children:"Lorem ipsum dolor sit amet"}),_e=n.div`
|
|
111
111
|
height: ${({value:e})=>e};
|
|
112
112
|
width: 40px;
|
|
113
113
|
background-color: black;
|
|
114
|
-
`,
|
|
114
|
+
`,Pe=({value:e})=>t.jsx(_e,{value:e}),Fe=n.div`
|
|
115
115
|
font-family: PreplyInter;
|
|
116
116
|
@supports (font-variation-settings: normal) {
|
|
117
117
|
font-family: PreplyInterV;
|
|
118
118
|
}
|
|
119
119
|
letter-spacing: ${({value:e})=>e};
|
|
120
120
|
font-size: 14px;
|
|
121
|
-
`,
|
|
121
|
+
`,ze=({value:e})=>t.jsx(Fe,{value:e,children:"Lorem ipsum dolor sit amet."}),Ee=n.div`
|
|
122
122
|
font-family: PreplyInter;
|
|
123
123
|
@supports (font-variation-settings: normal) {
|
|
124
124
|
font-family: PreplyInterV;
|
|
125
125
|
}
|
|
126
126
|
line-height: ${({value:e})=>e};
|
|
127
127
|
font-size: 14px;
|
|
128
|
-
`,Ne=({value:e})=>t.jsx(Ee,{value:e,children:"Lorem ipsum dolor sit amet, consectetur adipiscing elit. Donec massa nulla, suscipit id purus quis, facilisis tempus tortor. Praesent felis quam, tincidunt vitae libero ut, bibendum condimentum nunc."}),Ae=
|
|
128
|
+
`,Ne=({value:e})=>t.jsx(Ee,{value:e,children:"Lorem ipsum dolor sit amet, consectetur adipiscing elit. Donec massa nulla, suscipit id purus quis, facilisis tempus tortor. Praesent felis quam, tincidunt vitae libero ut, bibendum condimentum nunc."}),Ae=n.div`
|
|
129
129
|
font-family: PreplyInter;
|
|
130
130
|
@supports (font-variation-settings: normal) {
|
|
131
131
|
font-family: PreplyInterV;
|
|
132
132
|
}
|
|
133
133
|
line-height: ${({value:e})=>e};
|
|
134
134
|
font-size: 14px;
|
|
135
|
-
`,Oe=({value:e})=>t.jsx(Ae,{value:e,children:"Lorem ipsum dolor sit amet, consectetur adipiscing elit. Donec massa nulla, suscipit id purus quis, facilisis tempus tortor. Praesent felis quam, tincidunt vitae libero ut, bibendum condimentum nunc."}),
|
|
135
|
+
`,Oe=({value:e})=>t.jsx(Ae,{value:e,children:"Lorem ipsum dolor sit amet, consectetur adipiscing elit. Donec massa nulla, suscipit id purus quis, facilisis tempus tortor. Praesent felis quam, tincidunt vitae libero ut, bibendum condimentum nunc."}),Be=n.div`
|
|
136
136
|
background: white;
|
|
137
137
|
width: 48px;
|
|
138
138
|
height: 48px
|
|
@@ -151,7 +151,7 @@ import{j as t}from"./jsx-runtime-BTJTZTIL.js";import{useMDXComponents as P}from"
|
|
|
151
151
|
border-right: none;
|
|
152
152
|
border-bottom: none;
|
|
153
153
|
}
|
|
154
|
-
`,
|
|
154
|
+
`,Me=({value:e})=>t.jsx(Be,{value:e,children:t.jsx("span",{})}),We=n.div`
|
|
155
155
|
width: 64px;
|
|
156
156
|
padding-top: 2px;
|
|
157
157
|
background: #666;
|
|
@@ -166,7 +166,7 @@ import{j as t}from"./jsx-runtime-BTJTZTIL.js";import{useMDXComponents as P}from"
|
|
|
166
166
|
height: 28px;
|
|
167
167
|
background: #999;
|
|
168
168
|
}
|
|
169
|
-
`,Ve=({value:e})=>t.jsx(
|
|
169
|
+
`,Ve=({value:e})=>t.jsx(We,{value:e,children:t.jsx("span",{})}),qe=n.div`
|
|
170
170
|
width: 64px;
|
|
171
171
|
padding-top: ${({value:e})=>e};
|
|
172
172
|
background: #666;
|
|
@@ -180,19 +180,19 @@ import{j as t}from"./jsx-runtime-BTJTZTIL.js";import{useMDXComponents as P}from"
|
|
|
180
180
|
height: 28px;
|
|
181
181
|
background: #999;
|
|
182
182
|
}
|
|
183
|
-
`,Ge=({value:e})=>t.jsx(qe,{value:e,children:t.jsx("span",{})}),Ke=
|
|
183
|
+
`,Ge=({value:e})=>t.jsx(qe,{value:e,children:t.jsx("span",{})}),Ke=n.div`
|
|
184
184
|
width: 64px;
|
|
185
185
|
height: 64px;
|
|
186
186
|
background-color: ${({value:e})=>e};
|
|
187
|
-
`,Ye=({value:e})=>t.jsx(Ke,{value:e}),Xe=
|
|
187
|
+
`,Ye=({value:e})=>t.jsx(Ke,{value:e}),Xe=n.div`
|
|
188
188
|
width: ${({value:e})=>e};
|
|
189
189
|
height: ${({value:e})=>e};
|
|
190
190
|
background-color: black;
|
|
191
|
-
`,b=({value:e})=>t.jsx(Xe,{value:e}),Ue=
|
|
191
|
+
`,b=({value:e})=>t.jsx(Xe,{value:e}),Ue=n.div`
|
|
192
192
|
width: ${({value:e})=>e};
|
|
193
193
|
height: 40px;
|
|
194
194
|
background-color: black;
|
|
195
|
-
|
|
195
|
+
`,k=({value:e})=>t.jsx(Ue,{value:e}),Qe=n.div`
|
|
196
196
|
text-decoration: ${({value:e})=>e};
|
|
197
197
|
font-size: 20px;
|
|
198
198
|
font-weight: 600;
|
|
@@ -204,12 +204,7 @@ import{j as t}from"./jsx-runtime-BTJTZTIL.js";import{useMDXComponents as P}from"
|
|
|
204
204
|
p:last-child {
|
|
205
205
|
font-weight: 400;
|
|
206
206
|
}
|
|
207
|
-
`,Je=({value:e})=>t.jsx(Qe,{value:e,children:t.jsx("p",{children:"Lorem ipsum dolor sit amet"})}),Ze=
|
|
208
|
-
font-family: PreplyInter;
|
|
209
|
-
font-style: italic;
|
|
210
|
-
font-variation-settings: ${({value:e})=>e};
|
|
211
|
-
font-size: 14px;
|
|
212
|
-
`,et=({value:e})=>t.jsx(Ze,{value:e,children:"Lorem ipsum dolor sit amet."}),tt=o.div`
|
|
207
|
+
`,Je=({value:e})=>t.jsx(Qe,{value:e,children:t.jsx("p",{children:"Lorem ipsum dolor sit amet"})}),Ze=n.div`
|
|
213
208
|
animation: moveBackAndForth ${({value:e})=>e}ms infinite alternate;
|
|
214
209
|
|
|
215
210
|
@keyframes moveBackAndForth {
|
|
@@ -220,19 +215,19 @@ import{j as t}from"./jsx-runtime-BTJTZTIL.js";import{useMDXComponents as P}from"
|
|
|
220
215
|
padding-left: 100px;
|
|
221
216
|
}
|
|
222
217
|
}
|
|
223
|
-
`,
|
|
218
|
+
`,et=({value:e})=>t.jsx(Ze,{value:e,children:t.jsx("p",{children:"Lorem ipsum"})}),tt=()=>null,rt=n.div`
|
|
224
219
|
transition: all ${({value:e})=>e};
|
|
225
220
|
|
|
226
221
|
padding-left: 0px;
|
|
227
222
|
&:hover {
|
|
228
223
|
padding-left: 100px;
|
|
229
224
|
}
|
|
230
|
-
`,
|
|
225
|
+
`,nt=({value:e})=>t.jsx(rt,{value:e,children:t.jsx("p",{children:"Hover me, please 🙏"})}),ot=({value:e})=>null,it=n.div`
|
|
231
226
|
width: 64px;
|
|
232
227
|
height: 64px;
|
|
233
228
|
color: white;
|
|
234
229
|
background: ${({value:e})=>e};
|
|
235
|
-
`,
|
|
230
|
+
`,st=({value:e})=>t.jsx(it,{value:e}),at={"icon.size":"size",spacing:"space",sizing:"space",radius:"borderRadius","dsInternalPrimitive.button.borderWeight":"borderWidth","icon.fieldLayout.width":"horizontalPadding","icon.fieldLayout.height":"horizontalPadding",background:"color","color.border.ai.button.borderImage":"borderImage","color.border.ai.surface.borderImage":"borderImage","color.background.ai.surface.linearGradient":"background",color:"color","spinner.icon.color":"color","dsInternalPrimitive.color":"color","exp.color":"color","badge.base.color":"color","badge.accent":"color",content:"color",elevation:"boxShadow",dropShadow:"boxShadow","motion.components.interaction":"transition"},$={color:"fgColor",lineHeight:"lineHeightPixels",shadow:"boxShadow",borderImage:"borderImage",offset:"size",x1:"easingCoordinate",y1:"easingCoordinate",x2:"easingCoordinate",y2:"easingCoordinate",short:"duration",function:"easing",functionName:"easing"},dt={background:{renderer:st},bgColor:{renderer:he},borderColor:{renderer:pe},borderImage:{renderer:xe},borderRadius:{renderer:fe},brightness:{renderer:Te},color:{renderer:Ye},fgColor:{renderer:ke},fontFamily:{renderer:S},fontSize:{renderer:De},fontWeight:{renderer:Ie},fontStyle:{renderer:He},letterSpacing:{renderer:ze},gap:{renderer:k},height:{renderer:Pe},horizontalPadding:{renderer:b},lineHeightRatio:{renderer:Oe},lineHeightPixels:{renderer:Ne},outlineColor:{renderer:Me},outlineOffset:{renderer:Ve},outlineWidth:{renderer:Ge},borderWidth:{renderer:je},padding:{renderer:b},size:{renderer:b},space:{renderer:k},boxShadow:{renderer:we},typeface:{renderer:S},verticalPadding:{renderer:b},textDecoration:{renderer:Je},duration:{renderer:et},easing:{renderer:tt},transition:{renderer:nt},easingCoordinate:{renderer:ot}};function lt(e){const r=Object.entries(at).find(([i])=>e.startsWith(i));return r&&r[1]}function ct(e){const r=e.split(".").pop()||"";return r in $?$[r]:r}function ht(e){const r=lt(e.name)||ct(e.name)||"";return dt[r]}const gt=e=>{const r=ht(e);if(!r)throw new Error(`No renderer for token "${e.name}".`);return r},pt=n.li`
|
|
236
231
|
list-style: none;
|
|
237
232
|
margin-bottom: 32px;
|
|
238
233
|
|
|
@@ -240,40 +235,40 @@ import{j as t}from"./jsx-runtime-BTJTZTIL.js";import{useMDXComponents as P}from"
|
|
|
240
235
|
text-align: center;
|
|
241
236
|
display: block;
|
|
242
237
|
}
|
|
243
|
-
`,
|
|
238
|
+
`,mt=n.p`
|
|
244
239
|
margin: 0;
|
|
245
240
|
margin-top: 9px;
|
|
246
241
|
font-size: 14px;
|
|
247
|
-
`,
|
|
242
|
+
`,xt=n.div`
|
|
248
243
|
padding-top: 6px;
|
|
249
|
-
`,
|
|
244
|
+
`,ut=n.p`
|
|
250
245
|
margin: 0;
|
|
251
246
|
width: 160px;
|
|
252
247
|
text-align: right;
|
|
253
248
|
font-size: 16px;
|
|
254
249
|
line-height: 32px;
|
|
255
|
-
`;
|
|
250
|
+
`;n.div`
|
|
256
251
|
padding-top: 2px;
|
|
257
|
-
`;const
|
|
252
|
+
`;const ft=({token:e})=>{const r=N(e.token),o=gt(e).renderer;return t.jsx(pt,{children:t.jsxs(p,{gap:"16",direction:"column",children:[t.jsxs(y,{gap:"16",columns:["90px","1fr","2fr"],children:[t.jsx(mt,{children:t.jsxs(h,{highlight:"blue",children:["(--",e.id,")"]})}),t.jsxs(p,{direction:"column",gap:"4",children:[t.jsx(w,{variant:"default-semibold",children:e.name}),t.jsxs(w,{variant:"default-regular",children:["@",e.name.replace(/\./g,"-")]})]}),t.jsx(xt,{children:t.jsx(p,{direction:"column",gap:"8",justifyContent:"start",children:e.colorSchemeAware&&t.jsx("div",{children:t.jsx(h,{children:t.jsx("span",{title:"this token may have different values, depending on color scheme",children:"color scheme aware"})})})})})]}),t.jsxs(y,{gap:"64",columns:["auto","1fr"],alignItems:"center",children:[t.jsx(ut,{children:t.jsx("span",{children:r})}),t.jsx("div",{children:t.jsx(o,{name:e.name,value:r})})]})]})})},bt=n.ul`
|
|
258
253
|
margin: 0;
|
|
259
254
|
padding: 0;
|
|
260
|
-
`,
|
|
255
|
+
`,jt=n.div`
|
|
261
256
|
font-size: 24px;
|
|
262
257
|
|
|
263
258
|
h3 {
|
|
264
259
|
margin: 0;
|
|
265
260
|
}
|
|
266
|
-
`,
|
|
261
|
+
`,vt={but:{name:"button",alternatives:["action"],note:"See also: props of <Button> component"},layo:{name:"layout",alternatives:["gap","padding","space"],note:"See also: props of <Layout> components"},align:{name:"align",alternatives:[],note:"You probably want to look at the <Layout> components"},just:{name:"justify",alternatives:[],note:"You probably want to look at the <Layout> components"},bol:{name:"bold",alternatives:["weight"],note:"See also <Text strong> component."},help:{name:"help? :-D",alternatives:[],note:"To be continued..."}},wt=n.h3`
|
|
267
262
|
margin: 0;
|
|
268
263
|
font-size: 24px;
|
|
269
264
|
font-weight: 400;
|
|
270
|
-
`,
|
|
265
|
+
`,yt=n.h3`
|
|
271
266
|
font-size: 16px;
|
|
272
267
|
font-weight: 400;
|
|
273
|
-
|
|
268
|
+
`,Tt=n.h3`
|
|
274
269
|
font-size: 16px;
|
|
275
270
|
font-weight: 400;
|
|
276
|
-
`,
|
|
271
|
+
`,St=({hint:e})=>{const r=e.alternatives||[];return t.jsxs(p,{gap:"24",column:!0,children:[t.jsxs(wt,{children:["Searching for ",t.jsx(h,{children:e.name}),"?"," "]}),t.jsxs(p,{gap:"8",column:!0,children:[r.length&&t.jsxs(yt,{children:["Try searchinng for"," ",r.map((i,o)=>t.jsxs(t.Fragment,{children:[t.jsx(h,{children:i},i),o+2<r.length?", ":"",o+2===r.length?" or ":"",o===r.length-1?" ":""]})),"instead."]}),e.note&&t.jsxs(Tt,{children:[t.jsx("strong",{children:"Note:"})," ",e.note]})]})]})},kt=({terms:e})=>e?t.jsx(t.Fragment,{children:Object.entries(vt).map(([r,i])=>e.toLowerCase().indexOf(r)>-1&&t.jsx(St,{hint:i},r))}):null,$t=()=>{const{results:e,terms:r}=j();return e.length?t.jsx(bt,{children:e.map(i=>t.jsx(ft,{token:i},i.id))}):t.jsx(jt,{children:t.jsxs(p,{gap:"24",column:!0,children:[t.jsx("h3",{children:"No tokens found"}),t.jsx(kt,{terms:r})]})})},Ct=n.div`
|
|
277
272
|
display: flex;
|
|
278
273
|
align-items: center;
|
|
279
274
|
gap: 12px;
|
|
@@ -296,9 +291,9 @@ import{j as t}from"./jsx-runtime-BTJTZTIL.js";import{useMDXComponents as P}from"
|
|
|
296
291
|
border-width: 1px;
|
|
297
292
|
border-color: ${({isNotDefault:e})=>e?"orange;":"#ccc"};
|
|
298
293
|
}
|
|
299
|
-
`,
|
|
294
|
+
`,Dt=n.select`
|
|
300
295
|
padding: 5px 10px;
|
|
301
|
-
`,
|
|
296
|
+
`,Lt=({onChange:e})=>{const{colorScheme:r,setColorScheme:i}=j(),o=a.useCallback(s=>{var l;const d=s.target.value;(l=window==null?void 0:window.localStorage)==null||l.setItem("storybook.ds-color-scheme",d),i(d??void 0),e==null||e(d)},[e,i]);return t.jsxs(Ct,{isNotDefault:!!r,children:[t.jsx("label",{children:"Color Scheme"}),t.jsxs(Dt,{value:r,onChange:o,children:[t.jsx("option",{value:"",children:"-- no color scheme --"},"none"),Object.keys(q).map(s=>t.jsx("option",{value:s,children:s},s))]})]})},Ht=n.div`
|
|
302
297
|
overflow: hidden;
|
|
303
298
|
text-overflow: ellipsis;
|
|
304
299
|
max-height: 48px;
|
|
@@ -312,14 +307,14 @@ import{j as t}from"./jsx-runtime-BTJTZTIL.js";import{useMDXComponents as P}from"
|
|
|
312
307
|
a {
|
|
313
308
|
color: #0077b3;
|
|
314
309
|
}
|
|
315
|
-
`,
|
|
310
|
+
`,Rt=({id:e})=>t.jsxs(t.Fragment,{children:["Searching for token ID ",t.jsx(h,{highlight:"blue",children:e}),"."]}),It=({terms:e,colorScheme:r,results:i})=>t.jsxs(t.Fragment,{children:["Found ",i.length," results matching"," ",t.jsx(h,{highlight:"green",children:e})," ",r?t.jsxs(t.Fragment,{children:["within ",t.jsx(h,{highlight:"green",children:"color scheme aware"})," ","tokens."]}):t.jsx(t.Fragment,{children:"within tokens without color scheme."})]}),_t=({colorScheme:e,results:r})=>t.jsx(t.Fragment,{children:e?t.jsxs(t.Fragment,{children:["Showing all ",t.jsx(h,{highlight:"blue",children:r.length})," ","tokens that are"," ",t.jsx(h,{highlight:"green",children:"color scheme aware"}),"."]}):t.jsxs(t.Fragment,{children:["Showing all ",t.jsx(h,{highlight:"blue",children:r.length})," ","color scheme anostic tokens."]})}),Pt=()=>{const{terms:e,colorScheme:r,results:i}=j(),o=(e==null?void 0:e.startsWith("--"))&&(e==null?void 0:e.substring(2));return t.jsx(Ht,{children:t.jsxs("p",{children:[o&&t.jsx(Rt,{id:o}),e&&!o&&t.jsx(It,{terms:e,colorScheme:r,results:i}),!e&&!o&&t.jsx(_t,{colorScheme:r,results:i})," ",r&&t.jsx("a",{href:"./?path=/story/guides-color-schemes-intro--page",children:"Learn more"})]})})},Ft=n.div`
|
|
316
311
|
position: relative;
|
|
317
312
|
margin-top: -20px;
|
|
318
313
|
padding-bottom: 200px;
|
|
319
314
|
h1 {
|
|
320
315
|
margin: 0;
|
|
321
316
|
}
|
|
322
|
-
`,
|
|
317
|
+
`,zt=n.div`
|
|
323
318
|
position: fixed;
|
|
324
319
|
left: 0;
|
|
325
320
|
width: 100%;
|
|
@@ -329,11 +324,11 @@ import{j as t}from"./jsx-runtime-BTJTZTIL.js";import{useMDXComponents as P}from"
|
|
|
329
324
|
padding: 20px 20px 24px;
|
|
330
325
|
gap: 16px;
|
|
331
326
|
background: white;
|
|
332
|
-
`,
|
|
327
|
+
`,Et=n.div`
|
|
333
328
|
width: 100%;
|
|
334
329
|
max-width: 1000px;
|
|
335
330
|
margin: 0 auto;
|
|
336
|
-
`,
|
|
331
|
+
`,Nt=n.input`
|
|
337
332
|
flex: 1;
|
|
338
333
|
padding: 8px;
|
|
339
334
|
font-size: 16px;
|
|
@@ -341,5 +336,5 @@ import{j as t}from"./jsx-runtime-BTJTZTIL.js";import{useMDXComponents as P}from"
|
|
|
341
336
|
border-style: solid;
|
|
342
337
|
border-width: 1px;
|
|
343
338
|
border-color: ${({terms:e})=>e?"orange;":"#ccc"};
|
|
344
|
-
`,
|
|
345
|
-
`,t.jsxs(
|
|
339
|
+
`,At=()=>{const{theme:e}=R(),{themes:r}=H(),{setTheme:i}=ee(),{colorScheme:o,terms:s,setColorScheme:d,setSearchTerms:l}=j(),u=a.useMemo(()=>{var c;return new URL(((c=window.top)==null?void 0:c.location.href)||"")},[]),g=u.searchParams,x=g.get("theme"),f=x&&(r==null?void 0:r.find(c=>c.name===x)),m=g.get("colorScheme"),v=g.get("terms");a.useEffect(()=>{var c;x&&(x!==e.name&&i&&f&&i(f),x&&m!==o&&d(m),l(v||"")),g.delete("theme"),g.delete("colorScheme"),g.delete("terms"),(c=window.top)==null||c.history.replaceState({},"",u)},[]);const P=a.useCallback(c=>l(c),[l]);return t.jsx(Ft,{children:t.jsx(zt,{children:t.jsx(Et,{children:t.jsxs(p,{gap:"16",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:"8",nowrap:!0,children:[t.jsx(Nt,{terms:s,type:"text",placeholder:"examples: teal, 300, action, primary, xs, --4adef, #00, 12px",onChange:c=>P(c.target.value),value:s}),t.jsx(Lt,{})]}),t.jsx(Pt,{})]})})})})};function C(e){return t.jsxs(t.Fragment,{children:[t.jsx(z,{title:"Guides/Token Explorer"}),`
|
|
340
|
+
`,t.jsxs(le,{children:[t.jsx(At,{}),t.jsx($t,{})]})]})}function mr(e={}){const{wrapper:r}={...F(),...e.components};return r?t.jsx(r,{...e,children:t.jsx(C,{...e})}):C()}export{mr as default};
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import{j as e}from"./jsx-runtime-BTJTZTIL.js";import{useMDXComponents as d}from"./index-BN6VMYqa.js";import{r as w}from"./index-Cb9e4tly.js";import{f as x}from"./filterAttributesPassedByRadixUIAtRuntime-Bye2JkZ0.js";import{m as h,s as j,b as f}from"./classNames-9hsFPPZv.js";import{w as t}from"./componentNames-k0j3gHgH.js";import{g}from"./index-qlqSh81O.js";import{A as b}from"./constants-5om8Ptru.js";import{A as y}from"./defaults-_YAxqn11.js";import{M as C}from"./index-DvPeUp0D.js";import{B as N}from"./breakpoints-BfMlrtxE.js";import"./index-ChsGqxH_.js";import"./_commonjsHelpers-Cpj98o6Y.js";import"./iframe-C2tAe-Qy.js";import"./index-s7KTOhR7.js";import"./index-BPCsOyHr.js";import"./index-CA5R8PN9.js";import"./index-DrFu-skq.js";const R="Avatar__ENaap",M={Avatar:R,"Avatar--size-24":"Avatar--size-24__ObR4y","Avatar--size-32":"Avatar--size-32__dN-5k","Avatar--size-48":"Avatar--size-48__ddqP8","Avatar--size-64":"Avatar--size-64__-Ju7I","Avatar--size-96":"Avatar--size-96__KgHP3","Avatar--size-160":"Avatar--size-160__KZ0Fc","Avatar--narrow-l--size-24":"Avatar--narrow-l--size-24__qXCWM","Avatar--narrow-l--size-32":"Avatar--narrow-l--size-32__qq9TP","Avatar--narrow-l--size-48":"Avatar--narrow-l--size-48__h51Bn","Avatar--narrow-l--size-64":"Avatar--narrow-l--size-64__LnrZ9","Avatar--narrow-l--size-96":"Avatar--narrow-l--size-96__n3HEe","Avatar--narrow-l--size-160":"Avatar--narrow-l--size-160__1zjWL","Avatar--medium-s--size-24":"Avatar--medium-s--size-24__7-PF9","Avatar--medium-s--size-32":"Avatar--medium-s--size-32__kS7dJ","Avatar--medium-s--size-48":"Avatar--medium-s--size-48__7rHLm","Avatar--medium-s--size-64":"Avatar--medium-s--size-64__eSycG","Avatar--medium-s--size-96":"Avatar--medium-s--size-96__gMO59","Avatar--medium-s--size-160":"Avatar--medium-s--size-160__VHYbX","Avatar--medium-l--size-24":"Avatar--medium-l--size-24__wkAJa","Avatar--medium-l--size-32":"Avatar--medium-l--size-32__ZX2QH","Avatar--medium-l--size-48":"Avatar--medium-l--size-48__17P3w","Avatar--medium-l--size-64":"Avatar--medium-l--size-64__FpM1G","Avatar--medium-l--size-96":"Avatar--medium-l--size-96__5-hlk","Avatar--medium-l--size-160":"Avatar--medium-l--size-160__fa-Bb","Avatar--wide-s--size-24":"Avatar--wide-s--size-24__ggmeN","Avatar--wide-s--size-32":"Avatar--wide-s--size-32__J7HvU","Avatar--wide-s--size-48":"Avatar--wide-s--size-48__FDJLh","Avatar--wide-s--size-64":"Avatar--wide-s--size-64__qE9HQ","Avatar--wide-s--size-96":"Avatar--wide-s--size-96__yjySN","Avatar--wide-s--size-160":"Avatar--wide-s--size-160__sQ83p","Avatar--wide-l--size-24":"Avatar--wide-l--size-24__lammM","Avatar--wide-l--size-32":"Avatar--wide-l--size-32__hM5mX","Avatar--wide-l--size-48":"Avatar--wide-l--size-48__mLV4a","Avatar--wide-l--size-64":"Avatar--wide-l--size-64__uQV-R","Avatar--wide-l--size-96":"Avatar--wide-l--size-96__nbICp","Avatar--wide-l--size-160":"Avatar--wide-l--size-160__gRCi9","Avatar--round":"Avatar--round__Ndyn3"},r=w.forwardRef(function({size:a=y,round:i,src:m,alt:l="",dataset:v,crossOrigin:A,...p},_){const z=i??!0,c=h(M,t.Avatar,[j("size",a),f("round",void 0,z)]),u={...x(p),ref:_,className:c.join(" "),...g(v,{preplyDsComponent:t.Avatar})};return e.jsx("picture",{...u,children:e.jsx("img",{src:m||b,alt:l,crossOrigin:A})})});r.__docgenInfo={description:"",methods:[],displayName:"Avatar",props:{size:{defaultValue:{value:"'32'",computed:!1},required:!1},alt:{defaultValue:{value:'""',computed:!1},required:!1}}};const E=()=>e.jsx("table",{style:{fontSize:14},children:e.jsx("tbody",{children:Object.entries(N).map(([s,a])=>e.jsxs("tr",{children:[e.jsx("td",{style:{padding:"0px 40px 10px 20px"},children:e.jsx("code",{children:s})}),e.jsx("td",{style:{padding:"0px 40px 10px 20px"},children:e.jsxs("code",{children:[a,"px"]})})]},s))})}),n="./web-lib/src/components/Avatar/docs/static/avatar-1.png";function o(s){const a={code:"code",h1:"h1",h2:"h2",p:"p",pre:"pre",...d(),...s.components};return e.jsxs(e.Fragment,{children:[e.jsx(C,{title:"Guides/Responsive Props"}),`
|
|
2
|
+
`,e.jsx(a.h1,{id:"responsive-props",children:"Responsive Props"}),`
|
|
3
|
+
`,e.jsx(a.p,{children:`Some component props optionally accept responsive values for different screen sizes
|
|
4
|
+
based on the global breakpoints:`}),`
|
|
5
|
+
`,e.jsx(a.pre,{children:e.jsx(a.code,{className:"language-jsx",children:`<Component prop={<value>} />
|
|
6
|
+
<Component prop={{ _: <value>, '<breakpoint>': <value>, ... }} />
|
|
7
|
+
`})}),`
|
|
8
|
+
`,e.jsxs(a.p,{children:["Where ",e.jsx(a.code,{children:"_"})," is the value for the smallest breakpoint, and ",e.jsx(a.code,{children:"<breakpoint>"}),` is one of
|
|
9
|
+
the following, predefined values:`]}),`
|
|
10
|
+
`,e.jsx(E,{}),`
|
|
11
|
+
`,e.jsx(a.h2,{id:"example",children:"Example"}),`
|
|
12
|
+
`,`
|
|
13
|
+
`,e.jsx(r,{src:n,size:"24"}),`
|
|
14
|
+
`,e.jsx(r,{src:n,size:{_:"24","medium-l":"48","wide-s":"64"}}),`
|
|
15
|
+
`,e.jsx(a.pre,{children:e.jsx(a.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(a.p,{children:["Try resizing your viewport using the dev tools to see the ",e.jsx(a.code,{children:"Avatar"})," size update."]})]})}function Z(s={}){const{wrapper:a}={...d(),...s.components};return a?e.jsx(a,{...s,children:e.jsx(o,{...s})}):o(s)}export{Z as default,n as url};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{j as e}from"./jsx-runtime-BTJTZTIL.js";import{useMDXComponents as L}from"./index-BN6VMYqa.js";import{M as C}from"./index-
|
|
1
|
+
import{j as e}from"./jsx-runtime-BTJTZTIL.js";import{useMDXComponents as L}from"./index-BN6VMYqa.js";import{M as C}from"./index-DvPeUp0D.js";import{H as a,B as t}from"./Button-B5i7cA94.js";import{g as I,a as D,L as c}from"./LayoutGrid-CcWPCxyF.js";import{r as G}from"./index-Cb9e4tly.js";import{m as j,s as N}from"./classNames-9hsFPPZv.js";import{f as B}from"./filterAttributesPassedByRadixUIAtRuntime-Bye2JkZ0.js";import{w as m}from"./componentNames-k0j3gHgH.js";import{g as M}from"./index-qlqSh81O.js";import{L as P}from"./defaults-_YAxqn11.js";import{t as o}from"./tokens-BYLcI6Lk.js";import"./index-ChsGqxH_.js";import"./iframe-C2tAe-Qy.js";import"./index-s7KTOhR7.js";import"./_commonjsHelpers-Cpj98o6Y.js";import"./index-BPCsOyHr.js";import"./index-CA5R8PN9.js";import"./index-DrFu-skq.js";import"./text-centered-DRiH4EXX.js";import"./render-icon-Du0nasoi.js";import"./useHostname-PsilflFC.js";import"./index-CC6DAVyL.js";import"./breakpoints-BfMlrtxE.js";import"./layout-relative.module-1z75aSwo-rvXP8TMg.js";import"./constants-DYYVurUY.js";import"./constants-DTpaCXm6.js";const $="AlignSelf__huNbz",H={AlignSelf:$,"AlignSelf--align-self-start":"AlignSelf--align-self-start__Pk4Ld","AlignSelf--align-self-center":"AlignSelf--align-self-center__oKqnl","AlignSelf--align-self-end":"AlignSelf--align-self-end__mLp7w","AlignSelf--align-self-stretch":"AlignSelf--align-self-stretch__e5jP9","AlignSelf--narrow-l--align-self-start":"AlignSelf--narrow-l--align-self-start__RD68B","AlignSelf--narrow-l--align-self-center":"AlignSelf--narrow-l--align-self-center__9KYyf","AlignSelf--narrow-l--align-self-end":"AlignSelf--narrow-l--align-self-end__ydYg3","AlignSelf--narrow-l--align-self-stretch":"AlignSelf--narrow-l--align-self-stretch__an8ci","AlignSelf--medium-s--align-self-start":"AlignSelf--medium-s--align-self-start__qq8h0","AlignSelf--medium-s--align-self-center":"AlignSelf--medium-s--align-self-center__d0RSi","AlignSelf--medium-s--align-self-end":"AlignSelf--medium-s--align-self-end__Kmsf2","AlignSelf--medium-s--align-self-stretch":"AlignSelf--medium-s--align-self-stretch__j3NnI","AlignSelf--medium-l--align-self-start":"AlignSelf--medium-l--align-self-start__74bsY","AlignSelf--medium-l--align-self-center":"AlignSelf--medium-l--align-self-center__ljw4i","AlignSelf--medium-l--align-self-end":"AlignSelf--medium-l--align-self-end__Pewtw","AlignSelf--medium-l--align-self-stretch":"AlignSelf--medium-l--align-self-stretch__TkySK","AlignSelf--wide-s--align-self-start":"AlignSelf--wide-s--align-self-start__zgUOz","AlignSelf--wide-s--align-self-center":"AlignSelf--wide-s--align-self-center__sU3Gp","AlignSelf--wide-s--align-self-end":"AlignSelf--wide-s--align-self-end__o-XTQ","AlignSelf--wide-s--align-self-stretch":"AlignSelf--wide-s--align-self-stretch__G9OEM","AlignSelf--wide-l--align-self-start":"AlignSelf--wide-l--align-self-start__DcXjX","AlignSelf--wide-l--align-self-center":"AlignSelf--wide-l--align-self-center__36VHM","AlignSelf--wide-l--align-self-end":"AlignSelf--wide-l--align-self-end__VolCH","AlignSelf--wide-l--align-self-stretch":"AlignSelf--wide-l--align-self-stretch__pdrgF"},R="AlignSelf",X=r=>j(H,R,[N("align-self",r)]),U="LayoutGridItem__HXV4b",E={LayoutGridItem:U},g=G.forwardRef(function({children:l,alignSelf:d,tag:f,hide:u,relative:p,dataset:h,...k},A){const y=j(E,m.LayoutGridItem,[]),v=X(d),S=I(u),_=D(p),b=[...y,...v,...S,..._],T=f??P,w={...B(k),ref:A,className:b.join(" "),...M(h,{preplyDsComponent:m.LayoutGridItem})};return e.jsx(T,{...w,children:l})});g.__docgenInfo={description:"",methods:[],displayName:"LayoutGridItem"};const s=({inverted:r,textToken:l})=>{const d=o.color.text[l];return Array.isArray(d)?e.jsxs(g,{children:[e.jsx(a,{level:"h4",children:l}),e.jsx("div",{style:{color:`var(--${d[1]})`,maxWidth:"240px",padding:"10px",background:`var(--${r?o.color.background.primaryInverted[1]:o.color.background.primary[1]})`},children:e.jsxs("code",{children:["color.text.",l]})})]},l):null};s.defaultProps={inverted:!1};const n=({inverted:r,bgToken:l})=>{const d=o.color.background[l];return Array.isArray(d)?e.jsxs(g,{children:[e.jsx(a,{level:"h4",children:l}),e.jsxs("div",{style:{background:`var(--${o.color.background[l][1]})`,color:`var(--${r?o.color.text.inverted[1]:o.color.text.primary[1]})`,maxWidth:"240px",padding:"10px"},children:["Background token: ",e.jsxs("code",{children:["color.background.",l]})]})]},l):null};n.defaultProps={inverted:!1};const i=({contentToken:r})=>{const l=o.color.border[r];return Array.isArray(l)?e.jsxs(g,{children:[e.jsx(a,{level:"h4",children:r}),e.jsx("br",{}),e.jsxs("div",{style:{border:`1px solid var(--${l[1]})`,background:"transparent",color:`var(--${l[1]})`,maxWidth:"240px",height:"50px",padding:"10px"},children:["color.border.",r]})]},r):null};i.defaultProps={};const O=()=>e.jsxs(c,{gap:"16",columns:2,children:[e.jsx(t,{children:"Token family: action.variant.primary.*"}),e.jsx(t,{variant:"secondary",children:"Token family: action.variant.secondary.*"}),e.jsx(t,{variant:"tertiary",children:"Token family: action.variant.tertiary.*"}),e.jsx(t,{variant:"ghost",children:"Token family: action.variant.ghost.*"}),e.jsx(t,{variant:"critical",children:"Token family: action.variant.critical.*"}),e.jsx(t,{variant:"onColor",children:"Token family: action.variant.onColor.*"}),e.jsx(t,{variant:"inverted",children:"Token family: action.variant.inverted.*"}),e.jsx(t,{disabled:!0,children:"Token family: action.variant.disabled.*"})]}),F=()=>e.jsxs("div",{children:[e.jsx(a,{level:"h1",children:"Semantic token examples"}),e.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."}),e.jsx("br",{}),e.jsx("hr",{}),e.jsx("br",{}),e.jsx(a,{level:"h2",children:"Text tokens"}),e.jsx("br",{}),e.jsx("br",{}),e.jsxs(c,{gap:"16",columns:4,children:[e.jsx(s,{textToken:"primary"}),e.jsx(s,{textToken:"secondary"}),e.jsx(s,{textToken:"tertiary"}),e.jsx(s,{textToken:"accentDark"}),e.jsx(s,{textToken:"placeholder"}),e.jsx(s,{textToken:"inverted",inverted:!0}),e.jsx(s,{textToken:"positive"}),e.jsx(s,{textToken:"info"}),e.jsx(s,{textToken:"warning"}),e.jsx(s,{textToken:"critical"})]}),e.jsx("br",{}),e.jsx("br",{}),e.jsx(a,{level:"h2",children:"Background tokens"}),e.jsxs(c,{gap:"16",columns:4,children:[e.jsx(n,{bgToken:"primary"}),e.jsx(n,{bgToken:"secondary"}),e.jsx(n,{bgToken:"tertiary"}),e.jsx(n,{bgToken:"overlay"}),e.jsx(n,{bgToken:"disabled"}),e.jsx(n,{bgToken:"brand"}),e.jsx(n,{bgToken:"brandB2b"}),e.jsx(n,{bgToken:"accentLight"}),e.jsx(n,{bgToken:"accentDark",inverted:!0}),e.jsx(n,{bgToken:"positiveLight"}),e.jsx(n,{bgToken:"positiveDark",inverted:!0}),e.jsx(n,{bgToken:"infoLight"}),e.jsx(n,{bgToken:"infoDark",inverted:!0}),e.jsx(n,{bgToken:"warningLight"}),e.jsx(n,{bgToken:"warningDark",inverted:!0}),e.jsx(n,{bgToken:"criticalLight"}),e.jsx(n,{bgToken:"criticalDark",inverted:!0}),e.jsx(n,{bgToken:"statusOnline"}),e.jsx(n,{bgToken:"statusOffline"}),e.jsx(n,{bgToken:"primaryInverted",inverted:!0}),e.jsx(n,{bgToken:"secondaryInverted",inverted:!0}),e.jsx(n,{bgToken:"tertiaryInverted",inverted:!0})]}),e.jsx("br",{}),e.jsx("hr",{}),e.jsx("br",{}),e.jsx(a,{level:"h2",children:"Action"}),e.jsx("br",{}),e.jsx(O,{}),e.jsx("br",{}),e.jsx("hr",{}),e.jsx("br",{}),e.jsx(a,{level:"h2",children:"Borders"}),e.jsx("br",{}),e.jsxs(c,{gap:"16",columns:4,children:[e.jsx(i,{contentToken:"primary"}),e.jsx(i,{contentToken:"secondary"}),e.jsx(i,{contentToken:"secondary-opacity"}),e.jsx(i,{contentToken:"tertiary"}),e.jsx(i,{contentToken:"disabled"}),e.jsx(i,{contentToken:"brand"}),e.jsx(i,{contentToken:"critical"}),e.jsx(i,{contentToken:"focus"}),e.jsx(i,{contentToken:"positive"})]})]});function x(r){return e.jsxs(e.Fragment,{children:[e.jsx(C,{title:"Guides/Semantic tokens examples"}),`
|
|
2
2
|
`,e.jsx(F,{})]})}function he(r={}){const{wrapper:l}={...L(),...r.components};return l?e.jsx(l,{...r,children:e.jsx(x,{...r})}):x()}export{he as default};
|
package/dist/assets/{01.using-shorthand-props-C_kd-tOU.js → 01.using-shorthand-props-Fs5ktwh-.js}
RENAMED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{j as e}from"./jsx-runtime-BTJTZTIL.js";import{useMDXComponents as o}from"./index-BN6VMYqa.js";import{M as r}from"./index-
|
|
1
|
+
import{j as e}from"./jsx-runtime-BTJTZTIL.js";import{useMDXComponents as o}from"./index-BN6VMYqa.js";import{M as r}from"./index-DvPeUp0D.js";import"./index-ChsGqxH_.js";import"./index-Cb9e4tly.js";import"./_commonjsHelpers-Cpj98o6Y.js";import"./iframe-C2tAe-Qy.js";import"./index-s7KTOhR7.js";import"./index-BPCsOyHr.js";import"./index-CA5R8PN9.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"}),`
|