@preply/ds-docs 2.0.0 → 2.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/assets/{00.LayoutFlex.stories-DoLb1LoS.js → 00.LayoutFlex.stories-CbDXxyuE.js} +1 -1
- package/dist/assets/{00.applications-CodmhfzP.js → 00.applications-DrPcq5hf.js} +1 -1
- package/dist/assets/{00.favicons.guide-CB7otDce.js → 00.favicons.guide-BGlf-F09.js} +1 -1
- package/dist/assets/{00.token-explorer-iUebypoy.js → 00.token-explorer-Bfc0792V.js} +1 -1
- package/dist/assets/{00.using-responsive-props-t2wHUu8m.js → 00.using-responsive-props-zAcJieHB.js} +1 -1
- package/dist/assets/{01.semantic-tokens-BRVBqUiT.js → 01.semantic-tokens-Ccy3YqAg.js} +1 -1
- package/dist/assets/{01.using-shorthand-props-DEJgBvzq.js → 01.using-shorthand-props-B0ANrFDR.js} +1 -1
- package/dist/assets/{10.Combinations.stories-DLSgJgrw.js → 10.Combinations.stories-CdNbC18z.js} +1 -1
- package/dist/assets/{10.fonts.guide-D12lSwgH.js → 10.fonts.guide-kjxLDtt2.js} +1 -1
- package/dist/assets/{10.ssr-DlFRK64e.js → 10.ssr-C85792Ym.js} +1 -1
- package/dist/assets/{11.languageFont.explorer-C5k8-Jz1.js → 11.languageFont.explorer-C8B0RG10.js} +1 -1
- package/dist/assets/{11.ssr.app-router-Dhu4kN2c.js → 11.ssr.app-router-DLGELGUU.js} +1 -1
- package/dist/assets/{20.libraries-B0n8gJVD.js → 20.libraries-BDQu_qts.js} +1 -1
- package/dist/assets/{30.icons.explorer-Crh_uKlY.js → 30.icons.explorer-Cs2BoR4M.js} +2 -2
- package/dist/assets/{30.storybook-BAO0l6SZ.js → 30.storybook-Nx8Paw-6.js} +1 -1
- package/dist/assets/40.illustrations.explorer-WSD1rIjJ.js +21 -0
- package/dist/assets/{90.advanced-CeKbZzoq.js → 90.advanced-DASg-ru6.js} +1 -1
- package/dist/assets/AlertDialog-Maq8_VU0.css +1 -0
- package/dist/assets/{AlertDialog.stories-CqAVOJ5x.js → AlertDialog.stories-BzWTSIy8.js} +4 -4
- package/dist/assets/Avatar-DTmc5ZGN.css +1 -0
- package/dist/assets/Avatar-DncQXX7G.js +7 -0
- package/dist/assets/Avatar-ElTllycS.js +1 -0
- package/dist/assets/Avatar-l4k-u_Mp.css +1 -0
- package/dist/assets/{Avatar.stories-DPuesOBK.js → Avatar.stories-D15oouju.js} +1 -1
- package/dist/assets/AvatarWithStatus-CxEAGmUA.css +1 -0
- package/dist/assets/AvatarWithStatus.stories-DeWJ6ypF.js +42 -0
- package/dist/assets/Badge-j_a0acGK.css +1 -0
- package/dist/assets/{Badge.stories-BY6I7UQ6.js → Badge.stories-CSQZXuAX.js} +2 -2
- package/dist/assets/Box-CjExCUkg.css +1 -0
- package/dist/assets/Box.stories-Vj0MUVA1.js +44 -0
- package/dist/assets/Button-BlwReLw5.js +20 -0
- package/dist/assets/Button-CB2hNkCw.css +1 -0
- package/dist/assets/Button-D7I5ig5h.js +1 -0
- package/dist/assets/Button-Do66hNtY.css +1 -0
- package/dist/assets/Button.stories-VxG3jfx5.js +252 -0
- package/dist/assets/ButtonBase-BCfmDQ_b.js +8 -0
- package/dist/assets/ButtonBase-C0CIM4Jh.css +1 -0
- package/dist/assets/Chips-DAK2so_G.css +1 -0
- package/dist/assets/{Chips.stories-C4g0ajtC.js → Chips.stories-3FQFAew8.js} +7 -7
- package/dist/assets/{Color-YHDXOIA2-n0bEiukQ.js → Color-YHDXOIA2-BYOU6QkC.js} +1 -1
- package/dist/assets/Dialog-DzqSHLus.css +1 -0
- package/dist/assets/{Dialog.stories-D74D9Tdn.js → Dialog.stories-CjuVHAg6.js} +18 -18
- package/dist/assets/{DocsRenderer-CFRXHY34-BhNva4nY.js → DocsRenderer-CFRXHY34-D1fchdBc.js} +1 -1
- package/dist/assets/FieldAdditionalText-BD8S7qnE.js +1 -0
- package/dist/assets/FieldAdditionalText-CuXtSnrq.css +1 -0
- package/dist/assets/{FieldAdditionalText.stories-CgNnZYRi.js → FieldAdditionalText.stories-Bkm8WlSW.js} +1 -1
- package/dist/assets/FieldButton-D_5Zrlco.js +1 -0
- package/dist/assets/FieldButton-Picq604V.css +1 -0
- package/dist/assets/{FieldButton.stories-ChS0IeCP.js → FieldButton.stories-C33Mb60l.js} +1 -1
- package/dist/assets/FieldLayout-DHSEWaEL.js +1 -0
- package/dist/assets/FieldLayout-uwpycSl9.css +1 -0
- package/dist/assets/{FieldLayout.stories-C5bw8Efg.js → FieldLayout.stories-BNq7gZCI.js} +1 -1
- package/dist/assets/FieldLayoutBase-C_wbpu8u.css +1 -0
- package/dist/assets/FieldLayoutBase-xV81xRaV.js +12 -0
- package/dist/assets/Heading-Bj7LLgoH.js +2 -0
- package/dist/assets/Heading-C14zK0Nl.css +1 -0
- package/dist/assets/{Heading.stories-D9Zye7km.js → Heading.stories-DUVgn-sr.js} +1 -1
- package/dist/assets/Icon-C3YgliEf.css +1 -0
- package/dist/assets/Icon-CBFs9hMA.js +1 -0
- package/dist/assets/Icon-D_HQx804.css +1 -0
- package/dist/assets/{Icon-RSC-YupbVJQy.js → Icon-RSC-BuTFeAj0.js} +1 -1
- package/dist/assets/Icon-Wpz7-Jvg.js +8 -0
- package/dist/assets/{Icon.stories-jVWnmDlZ.js → Icon.stories-DzUVuQaU.js} +1 -1
- package/dist/assets/IconButton-B7CxWK4j.js +8 -0
- package/dist/assets/InputText-m06Ec_iQ.js +5 -0
- package/dist/assets/{LayoutFlex-D2upWEjL.js → LayoutFlex-5ZDeW2G6.js} +1 -1
- package/dist/assets/{LayoutFlex-BOiDmozK.js → LayoutFlex-l6VPaSCi.js} +1 -1
- package/dist/assets/LayoutFlexItem-C4cPPR-1.css +1 -0
- package/dist/assets/LayoutFlexItem-DhCHigTj.js +1 -0
- package/dist/assets/LayoutGrid-CNwH06zf.js +1 -0
- package/dist/assets/LayoutGrid-Cm59X3OY.css +1 -0
- package/dist/assets/LayoutGrid-mQT2ikS8.css +1 -0
- package/dist/assets/LayoutGrid.stories-CJKRu44f.js +88 -0
- package/dist/assets/LayoutGridItem-BEFb1grO.css +1 -0
- package/dist/assets/LayoutGridItem-BYIEoI8K.js +1 -0
- package/dist/assets/Link-K5J3waqL.css +1 -0
- package/dist/assets/{Link.stories-BSLk0Pem.js → Link.stories-DdA4w7Yi.js} +8 -7
- package/dist/assets/Loader-hjoeRutr.css +1 -0
- package/dist/assets/Loader.stories-DXv_QpEq.js +37 -0
- package/dist/assets/NumberField-BwQ_OX3b.css +1 -0
- package/dist/assets/{NumberField.stories-DzaH3Pwj.js → NumberField.stories-B0au_GJa.js} +3 -3
- package/dist/assets/{ObserveIntersection-D396wl1Z.js → ObserveIntersection-Ccn6ggRl.js} +1 -1
- package/dist/assets/{ObserveIntersection.stories-DIe0cEvy.js → ObserveIntersection.stories-CK5RwCMK.js} +1 -1
- package/dist/assets/OnboardingTooltip-CsmroJZe.css +1 -0
- package/dist/assets/{OnboardingTooltip-Bl0XDogf.js → OnboardingTooltip-DkJtTrMv.js} +1 -1
- package/dist/assets/{OnboardingTooltip.stories-B0FIL9CU.js → OnboardingTooltip.stories-CBEGxsdn.js} +1 -1
- package/dist/assets/{OnboardingTooltip.tests.stories-JJZpRwk6.js → OnboardingTooltip.tests.stories-BVwCf3WX.js} +1 -1
- package/dist/assets/OnboardingTour-CiSAhOo4.js +4 -0
- package/dist/assets/OnboardingTour-D0hvRI8H.css +1 -0
- package/dist/assets/{OnboardingTour.stories--g6PQm9S.js → OnboardingTour.stories-Ci2XQcpZ.js} +1 -1
- package/dist/assets/{OnboardingTour.tests.stories-QS0jiTXB.js → OnboardingTour.tests.stories-fpAsT8xG.js} +1 -1
- package/dist/assets/PasswordField-pNO2_I4U.css +1 -0
- package/dist/assets/{PasswordField.stories-BPdZcEeu.js → PasswordField.stories-tMCP_-zS.js} +2 -2
- package/dist/assets/PreplyLogo-CTlTSEJp.css +1 -0
- package/dist/assets/PreplyLogo.stories-D-KuDEpf.js +98 -0
- package/dist/assets/ProgressBar-BmNYDQH3.css +1 -0
- package/dist/assets/{ProgressBar.stories-C3Hx8JBS.js → ProgressBar.stories-RX3TC-Mj.js} +1 -1
- package/dist/assets/ProgressSteps-BdahNXrs.js +2 -0
- package/dist/assets/ProgressSteps-DOMtSbxl.css +1 -0
- package/dist/assets/{ProgressSteps.stories-C4sfVcPt.js → ProgressSteps.stories-BOqzHA8v.js} +1 -1
- package/dist/assets/RootProvider-F-KPwN7Y.js +1 -0
- package/dist/assets/SelectField-D3L7IkDZ.css +1 -0
- package/dist/assets/SelectField.stories-BiKwJ7cJ.js +182 -0
- package/dist/assets/{ShowOnIntersection.stories-BYz5GE4A.js → ShowOnIntersection.stories-D4B8EpSn.js} +1 -1
- package/dist/assets/Spinner-B2C3RkCF.js +1 -0
- package/dist/assets/Spinner-CzIq-Vt3.css +1 -0
- package/dist/assets/Steps-B_rpKUTa.css +1 -0
- package/dist/assets/Steps-cwath_9x.js +26 -0
- package/dist/assets/{Steps.stories-D3jWUCfp.js → Steps.stories-BKq08-vN.js} +1 -1
- package/dist/assets/Text-BXZIkJPK.js +1 -0
- package/dist/assets/Text-BjBJEVRG.css +1 -0
- package/dist/assets/Text-CXoN02OL.js +1 -0
- package/dist/assets/Text-DWmJ-bA2.css +1 -0
- package/dist/assets/{Text.stories-MU-T7clI.js → Text.stories--sqpLsAp.js} +1 -1
- package/dist/assets/TextField-BdRa6kYC.js +1 -0
- package/dist/assets/TextField-CpavA6nv.css +1 -0
- package/dist/assets/TextField-Drr2dczB.css +1 -0
- package/dist/assets/{TextField.stories-CXDhM8SN.js → TextField.stories-Bclgc2EW.js} +3 -3
- package/dist/assets/TextHighlighted-BnmI0H3i.css +1 -0
- package/dist/assets/TextHighlighted-UGbUAPIH.js +1 -0
- package/dist/assets/TextHighlighted-XaAzBaUc.css +1 -0
- package/dist/assets/TextHighlighted.stories-NdWGjEJo.js +32 -0
- package/dist/assets/TextInline-CztA0I1b.css +1 -0
- package/dist/assets/TextInline.stories-CUApO-7f.js +37 -0
- package/dist/assets/TextareaField-D7ErWnri.css +1 -0
- package/dist/assets/{TextareaField.stories-8FWfbQuv.js → TextareaField.stories-DeszU8P5.js} +3 -3
- package/dist/assets/Toast-Bce4LWtf.css +1 -0
- package/dist/assets/{Toast.stories-D7QEZPb5.js → Toast.stories-ddQWgL74.js} +9 -9
- package/dist/assets/Tooltip-Cm9bKrYj.css +1 -0
- package/dist/assets/{Tooltip-zv_6ckj2.js → Tooltip-DfP6dW5t.js} +1 -1
- package/dist/assets/{Tooltip.stories-qNBQgLBX.js → Tooltip.stories-BFaVZ-KR.js} +1 -1
- package/dist/assets/{Tooltip.tests.stories-DdHKI1ve.js → Tooltip.tests.stories-BdWpurqX.js} +1 -1
- package/dist/assets/{breakpoints-LpH7GcYD.js → breakpoints-DZrjMODJ.js} +1 -1
- package/dist/assets/{breakpoints-zK4Z5SKD.js → breakpoints-OMNEQfen.js} +1 -1
- package/dist/assets/{breakpoints-DTrgfqbR.js → breakpoints-nQG7mZUy.js} +1 -1
- package/dist/assets/{changelog-kNvLUHOz.js → changelog-DKkspQMC.js} +224 -207
- package/dist/assets/{entry-preview-DjAFPLGc.js → entry-preview-Di48KvWt.js} +1 -1
- package/dist/assets/{getTokenVar-BIGy16TO.js → getTokenVar-CaVPbV9a.js} +1 -1
- package/dist/assets/{hover-CRiTDNhR.js → hover-5sSVivzT.js} +1 -1
- package/dist/assets/{hover-CaTImSM4.js → hover-CqG5MZbC.js} +1 -1
- package/dist/assets/{hover-p3QJEZw5.js → hover-DcOblfBc.js} +1 -1
- package/dist/assets/{iframe-9Hj_MNfh.js → iframe-C8qEtSwt.js} +2 -2
- package/dist/assets/{index-DRVMKRNe.js → index-Ba1GaWBz.js} +3 -3
- package/dist/assets/{index-BXfuwMTe.js → index-Cp5_iz39.js} +1 -1
- package/dist/assets/{intro-DzWewgwc.js → intro-BsAuI9-C.js} +1 -1
- package/dist/assets/layout-relative-BGyAoF2N.css +1 -0
- package/dist/assets/layout-relative-BpJIh3YK.js +1 -0
- package/dist/assets/layout-relative-C4ATemga.css +1 -0
- package/dist/assets/layout-relative-DuJENdo5.css +1 -0
- package/dist/assets/layout-relative.module-1z75aSwo-DNAR_Nv2.js +1 -0
- package/dist/assets/layout-relative.module-ed9bC4H4.js +1 -0
- package/dist/assets/{migrating-from-less-tN-JFjco.js → migrating-from-less-DIb86N4R.js} +1 -1
- package/dist/assets/playground-t-QHn_5x.css +1 -0
- package/dist/assets/{playground.stories-DMK1ZcmP.js → playground.stories-CTz0xGuT.js} +59 -59
- package/dist/assets/{preview-CvW0gOh5.js → preview-BOyk1pfY.js} +1 -1
- package/dist/assets/{preview-BCYWUPon.js → preview-CBMehSre.js} +1 -1
- package/dist/assets/{preview-BI7kN1TP.js → preview-DvauSVRq.js} +2 -2
- package/dist/assets/text-accent-CDvOoGdV.css +1 -0
- package/dist/assets/text-accent-CZD2Hmtq.js +1 -0
- package/dist/assets/text-accent-DZDDtpIt.js +1 -0
- package/dist/assets/text-accent-WDJkKazf.css +1 -0
- package/dist/assets/text-centered-Bk7GkK8R.js +1 -0
- package/dist/assets/text-centered-CznToR0o.js +1 -0
- package/dist/assets/text-centered-DN9XHxjM.css +1 -0
- package/dist/assets/text-centered-DxXu3Wfr.css +1 -0
- package/dist/assets/{tokens-d5jI-VhO.js → tokens-C4H21x5Y.js} +1 -1
- package/dist/assets/{tokens-C0oPORlF.js → tokens-DY9UJMme.js} +1 -1
- package/dist/assets/{tokens-kLWqWJLR.js → tokens-bDgXZ1xi.js} +1 -1
- package/dist/assets/{usePortalElement-D3vRKAB1.js → usePortalElement-hM2pDsQq.js} +1 -1
- package/dist/assets/{welcome-CvEfK4A3.js → welcome-DaVgjrPL.js} +1 -1
- package/dist/assets/{zeroheight-wKcu_QWZ.js → zeroheight-D5Xa3jWw.js} +1 -1
- package/dist/iframe.html +1 -1
- package/dist/index.json +1 -1
- package/dist/preview-stats.json +1653 -1650
- package/dist/project.json +1 -1
- package/package.json +3 -3
- package/vite.config.ts +10 -0
- package/dist/assets/40.illustrations.explorer-SD9H4gQS.js +0 -21
- package/dist/assets/AlertDialog-CNsqqwq6.css +0 -1
- package/dist/assets/Avatar-BWVdwHlY.js +0 -6
- package/dist/assets/Avatar-BaeMEqzB.js +0 -1
- package/dist/assets/Avatar-DELee2ui.css +0 -1
- package/dist/assets/Avatar-SizFbjOh.css +0 -1
- package/dist/assets/AvatarWithStatus-B8ohNruV.css +0 -1
- package/dist/assets/AvatarWithStatus.stories-CKhKeqbK.js +0 -41
- package/dist/assets/Badge-BTktKAv_.css +0 -1
- package/dist/assets/Box-Ci4ycgSn.css +0 -1
- package/dist/assets/Box.stories-DF2h791P.js +0 -44
- package/dist/assets/Button-CWNujLtP.js +0 -20
- package/dist/assets/Button-Cjld0T4n.css +0 -1
- package/dist/assets/Button-NXZW8cHc.css +0 -1
- package/dist/assets/Button-itdvNgOg.js +0 -1
- package/dist/assets/Button.stories-DUHAAHTV.js +0 -211
- package/dist/assets/ButtonBase-CJjNfOwu.js +0 -8
- package/dist/assets/ButtonBase-ixkzvA2i.css +0 -1
- package/dist/assets/Chips-2wQm6zLU.css +0 -1
- package/dist/assets/Dialog-BKWHIlGs.css +0 -1
- package/dist/assets/FieldAdditionalText-BiaO_Yss.js +0 -1
- package/dist/assets/FieldAdditionalText-tbMWNWhN.css +0 -1
- package/dist/assets/FieldButton-B_tn3Eq6.css +0 -1
- package/dist/assets/FieldButton-D0MgvwIU.js +0 -1
- package/dist/assets/FieldLayout-6dPZQnKP.css +0 -1
- package/dist/assets/FieldLayout-BbLKeSmh.js +0 -1
- package/dist/assets/FieldLayoutBase-DhKLFBcH.js +0 -12
- package/dist/assets/FieldLayoutBase-_Sj6YO8M.css +0 -1
- package/dist/assets/Heading-Ba64-F3t.css +0 -1
- package/dist/assets/Heading-DcJnmvUa.js +0 -2
- package/dist/assets/Icon-BQSXaoh3.css +0 -1
- package/dist/assets/Icon-ByBuC1kf.css +0 -1
- package/dist/assets/Icon-DbIHupWZ.js +0 -8
- package/dist/assets/Icon-pHhBCzBO.js +0 -1
- package/dist/assets/IconButton-C3AcGEY7.js +0 -8
- package/dist/assets/InputText-CL5Snaht.js +0 -5
- package/dist/assets/LayoutFlexItem-BWKgsCDT.css +0 -1
- package/dist/assets/LayoutFlexItem-Su5RvuQk.js +0 -1
- package/dist/assets/LayoutGrid-BG29rjrt.js +0 -1
- package/dist/assets/LayoutGrid-BId9Yglz.css +0 -1
- package/dist/assets/LayoutGrid-Cw_n5H21.css +0 -1
- package/dist/assets/LayoutGrid.stories-DKw5d1ZE.js +0 -88
- package/dist/assets/LayoutGridItem-C-iUb7WL.css +0 -1
- package/dist/assets/LayoutGridItem-D5Hb9kQy.js +0 -1
- package/dist/assets/Link-LMW4jOcv.css +0 -1
- package/dist/assets/Loader-Bx87E7sh.css +0 -1
- package/dist/assets/Loader.stories-DUgJSe87.js +0 -37
- package/dist/assets/NumberField-C0w7Zzcx.css +0 -1
- package/dist/assets/OnboardingTooltip-DceGOXFO.css +0 -1
- package/dist/assets/OnboardingTour-DaxzhhRL.css +0 -1
- package/dist/assets/OnboardingTour-pR_NmiBL.js +0 -4
- package/dist/assets/PasswordField-CW55DLIa.css +0 -1
- package/dist/assets/PreplyLogo-DnbCD6MN.css +0 -1
- package/dist/assets/PreplyLogo.stories-DyGEUhO3.js +0 -97
- package/dist/assets/ProgressBar-BHaYRC97.css +0 -1
- package/dist/assets/ProgressSteps-7jb0rnSw.js +0 -2
- package/dist/assets/ProgressSteps-HPd6w_Nr.css +0 -1
- package/dist/assets/RootProvider-BgscvpVs.js +0 -1
- package/dist/assets/SelectField-DMcbwWwy.css +0 -1
- package/dist/assets/SelectField.stories-C3X-5JHt.js +0 -182
- package/dist/assets/Spinner-CixbAVEL.css +0 -1
- package/dist/assets/Spinner-Iaah9nUJ.js +0 -1
- package/dist/assets/Steps-CRCACZIC.css +0 -1
- package/dist/assets/Steps-CfdqlU3Q.js +0 -26
- package/dist/assets/Text-CxaHmdy3.css +0 -1
- package/dist/assets/Text-i5U7-KMF.js +0 -1
- package/dist/assets/Text-nWyCR02l.js +0 -1
- package/dist/assets/TextField-CVWDg_y4.css +0 -1
- package/dist/assets/TextField-DFm3O-Tl.js +0 -1
- package/dist/assets/TextField-DYLqe3tJ.css +0 -1
- package/dist/assets/TextHighlighted-CgBvDnFO.css +0 -1
- package/dist/assets/TextHighlighted-LVoJ79mt.js +0 -1
- package/dist/assets/TextHighlighted.stories-Db5JA9US.js +0 -32
- package/dist/assets/TextInline-BWC2_5IX.css +0 -1
- package/dist/assets/TextInline.stories-DGBhhF71.js +0 -37
- package/dist/assets/TextareaField-CZ8v7yuT.css +0 -1
- package/dist/assets/Toast-BrvHWUik.css +0 -1
- package/dist/assets/Tooltip-xWfAzqNZ.css +0 -1
- package/dist/assets/layout-relative-BCl7bwOR.css +0 -1
- package/dist/assets/layout-relative-DIZ6zNub.css +0 -1
- package/dist/assets/layout-relative-PI7LimOc.css +0 -1
- package/dist/assets/layout-relative-UGlXPWqj.js +0 -1
- package/dist/assets/layout-relative.module-C63T27Fr.js +0 -1
- package/dist/assets/layout-relative.module-DIaUqnvq-DH_OPu7E.js +0 -1
- package/dist/assets/playground-D77Ee-EK.css +0 -1
- package/dist/assets/text-accent-BBah0rth.js +0 -1
- package/dist/assets/text-accent-BMdpzlaC.js +0 -1
- package/dist/assets/text-accent-Co1hrpvA.css +0 -1
- package/dist/assets/text-centered-DWGGTNIZ.css +0 -1
- package/dist/assets/text-centered-NqfVCsvd.css +0 -1
- package/dist/assets/text-centered-VuFsr_qt.js +0 -1
- package/dist/assets/text-centered-gMYE7PWw.js +0 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{j as o}from"./jsx-runtime-BTJTZTIL.js";import{useMDXComponents as n}from"./index-BN6VMYqa.js";import{M as s}from"./index-
|
|
1
|
+
import{j as o}from"./jsx-runtime-BTJTZTIL.js";import{useMDXComponents as n}from"./index-BN6VMYqa.js";import{M as s}from"./index-Ba1GaWBz.js";import"./index-ChsGqxH_.js";import"./index-Cb9e4tly.js";import"./_commonjsHelpers-Cpj98o6Y.js";import"./iframe-C8qEtSwt.js";import"./index-BPrLDK9Y.js";import"./index-C7hTFOIV.js";import"./index-Cu4lwwaE.js";import"./index-CXQShRbs.js";import"./index-DrFu-skq.js";function t(r){const e={a:"a",code:"code",h1:"h1",h2:"h2",p:"p",pre:"pre",...n(),...r.components};return o.jsxs(o.Fragment,{children:[o.jsx(s,{title:"Guides/Installation/Storybook"}),`
|
|
2
2
|
`,o.jsx(e.h1,{id:"installation-storybook",children:"Installation: Storybook"}),`
|
|
3
3
|
`,o.jsxs(e.p,{children:["This guide applies to Storybook setups that document Preply components libraries, and assumes you have read and followed the steps outlined in the ",o.jsx(e.a,{href:"/story/guides-installation-libraries--page",children:"Installation: Libaries"})," guide."]}),`
|
|
4
4
|
`,o.jsx(e.h2,{id:"packages",children:"Packages"}),`
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import{j as t}from"./jsx-runtime-BTJTZTIL.js";import{useMDXComponents as l}from"./index-BN6VMYqa.js";import{M as a}from"./index-Ba1GaWBz.js";import{L as e}from"./LayoutGrid-CNwH06zf.js";import{d as c}from"./styled-components.browser.esm-BgpGX317.js";import{g as i}from"./getTokenVar-DU_DEzTd.js";import{s as u,c as p}from"./tokens-Di5DrZN4.js";import"./index-ChsGqxH_.js";import"./index-Cb9e4tly.js";import"./_commonjsHelpers-Cpj98o6Y.js";import"./iframe-C8qEtSwt.js";import"./index-BPrLDK9Y.js";import"./index-C7hTFOIV.js";import"./index-Cu4lwwaE.js";import"./index-CXQShRbs.js";import"./index-DrFu-skq.js";import"./classNames-BUL1Zq7e.js";import"./breakpoints-BfMlrtxE.js";import"./layout-relative.module-1z75aSwo-DNAR_Nv2.js";import"./constants-DYYVurUY.js";import"./defaults-B1rzzf6M.js";import"./filterHTMLAttributes-UOns5Q7s.js";import"./index-DdzHuZ-Y.js";import"./componentNames-Bwls0I02.js";import"./constants-BgBLeZzp.js";const n=["https://static.preply.com/ds/illustrations/tokyo-ui/airplain.svg","https://static.preply.com/ds/illustrations/tokyo-ui/arrows-multiple.svg","https://static.preply.com/ds/illustrations/tokyo-ui/artist.svg","https://static.preply.com/ds/illustrations/tokyo-ui/awesome.svg","https://static.preply.com/ds/illustrations/tokyo-ui/back-to-school.svg","https://static.preply.com/ds/illustrations/tokyo-ui/bar-graph.svg","https://static.preply.com/ds/illustrations/tokyo-ui/bell.svg","https://static.preply.com/ds/illustrations/tokyo-ui/booking-a-lesson.svg","https://static.preply.com/ds/illustrations/tokyo-ui/books-2.svg","https://static.preply.com/ds/illustrations/tokyo-ui/books.svg","https://static.preply.com/ds/illustrations/tokyo-ui/brain.svg","https://static.preply.com/ds/illustrations/tokyo-ui/bubbles.svg","https://static.preply.com/ds/illustrations/tokyo-ui/calendar.svg","https://static.preply.com/ds/illustrations/tokyo-ui/calendar-2.svg","https://static.preply.com/ds/illustrations/tokyo-ui/checkmark.svg","https://static.preply.com/ds/illustrations/tokyo-ui/clock.svg","https://static.preply.com/ds/illustrations/tokyo-ui/clocks.svg","https://static.preply.com/ds/illustrations/tokyo-ui/coins.svg","https://static.preply.com/ds/illustrations/tokyo-ui/committed.svg","https://static.preply.com/ds/illustrations/tokyo-ui/confetti.svg","https://static.preply.com/ds/illustrations/tokyo-ui/cosmopolite.svg","https://static.preply.com/ds/illustrations/tokyo-ui/desk.svg","https://static.preply.com/ds/illustrations/tokyo-ui/discount-badge.svg","https://static.preply.com/ds/illustrations/tokyo-ui/dog.svg","https://static.preply.com/ds/illustrations/tokyo-ui/first-steps.svg","https://static.preply.com/ds/illustrations/tokyo-ui/game-on.svg","https://static.preply.com/ds/illustrations/tokyo-ui/getting-started-down.svg","https://static.preply.com/ds/illustrations/tokyo-ui/getting-started.svg","https://static.preply.com/ds/illustrations/tokyo-ui/globe-spot.svg","https://static.preply.com/ds/illustrations/tokyo-ui/great-homework.svg","https://static.preply.com/ds/illustrations/tokyo-ui/growth.svg","https://static.preply.com/ds/illustrations/tokyo-ui/guitar.svg","https://static.preply.com/ds/illustrations/tokyo-ui/hard-work-1.svg","https://static.preply.com/ds/illustrations/tokyo-ui/hard-work-2.svg","https://static.preply.com/ds/illustrations/tokyo-ui/heart.svg","https://static.preply.com/ds/illustrations/tokyo-ui/it-guru.svg","https://static.preply.com/ds/illustrations/tokyo-ui/lamp-and-books.svg","https://static.preply.com/ds/illustrations/tokyo-ui/language-flash-cards.svg","https://static.preply.com/ds/illustrations/tokyo-ui/laptop.svg","https://static.preply.com/ds/illustrations/tokyo-ui/laptop-2.svg","https://static.preply.com/ds/illustrations/tokyo-ui/making-progress.svg","https://static.preply.com/ds/illustrations/tokyo-ui/map.svg","https://static.preply.com/ds/illustrations/tokyo-ui/meeting-with-tutor-2.svg","https://static.preply.com/ds/illustrations/tokyo-ui/meeting-with-tutor.svg","https://static.preply.com/ds/illustrations/tokyo-ui/messages.svg","https://static.preply.com/ds/illustrations/tokyo-ui/messaging.svg","https://static.preply.com/ds/illustrations/tokyo-ui/mobile-app.svg","https://static.preply.com/ds/illustrations/tokyo-ui/notes.svg","https://static.preply.com/ds/illustrations/tokyo-ui/open-book.svg","https://static.preply.com/ds/illustrations/tokyo-ui/pause-button.svg","https://static.preply.com/ds/illustrations/tokyo-ui/pencil-and-pen-2.svg","https://static.preply.com/ds/illustrations/tokyo-ui/pencil-and-pen.svg","https://static.preply.com/ds/illustrations/tokyo-ui/pig.svg","https://static.preply.com/ds/illustrations/tokyo-ui/play-button.svg","https://static.preply.com/ds/illustrations/tokyo-ui/polyglot-2.svg","https://static.preply.com/ds/illustrations/tokyo-ui/polyglot-pink.svg","https://static.preply.com/ds/illustrations/tokyo-ui/polyglot.svg","https://static.preply.com/ds/illustrations/tokyo-ui/present.svg","https://static.preply.com/ds/illustrations/tokyo-ui/professional.svg","https://static.preply.com/ds/illustrations/tokyo-ui/progress-steps.svg","https://static.preply.com/ds/illustrations/tokyo-ui/rising-arrows.svg","https://static.preply.com/ds/illustrations/tokyo-ui/rock-on.svg","https://static.preply.com/ds/illustrations/tokyo-ui/routine-master.svg","https://static.preply.com/ds/illustrations/tokyo-ui/serious-learner.svg","https://static.preply.com/ds/illustrations/tokyo-ui/sheet.svg","https://static.preply.com/ds/illustrations/tokyo-ui/smiley.svg","https://static.preply.com/ds/illustrations/tokyo-ui/speech-bubble.svg","https://static.preply.com/ds/illustrations/tokyo-ui/star_coin.svg","https://static.preply.com/ds/illustrations/tokyo-ui/stop-button.svg","https://static.preply.com/ds/illustrations/tokyo-ui/stopwatch.svg","https://static.preply.com/ds/illustrations/tokyo-ui/testing-the-water.svg","https://static.preply.com/ds/illustrations/tokyo-ui/three-arrows.svg","https://static.preply.com/ds/illustrations/tokyo-ui/thumbs-up.svg","https://static.preply.com/ds/illustrations/tokyo-ui/you-did-great-today.svg","https://static.preply.com/ds/illustrations/tokyo-ui/warning.svg"],y=c.div`
|
|
2
|
+
padding: ${i(u[12])};
|
|
3
|
+
-webkit-background-size: 50px 50px;
|
|
4
|
+
-moz-background-size: 50px 50px;
|
|
5
|
+
background-size: 50px 50px;
|
|
6
|
+
background-color: ${i(p.background.tertiary)};
|
|
7
|
+
background-image: linear-gradient(
|
|
8
|
+
45deg,
|
|
9
|
+
${i(p.background.secondary)} 25%,
|
|
10
|
+
transparent 25%,
|
|
11
|
+
transparent 50%,
|
|
12
|
+
${i(p.background.secondary)} 50%,
|
|
13
|
+
${i(p.background.secondary)} 75%,
|
|
14
|
+
transparent 75%,
|
|
15
|
+
transparent
|
|
16
|
+
);
|
|
17
|
+
`,m=({svgUrl:s})=>t.jsx("div",{style:{width:"80%"},children:t.jsxs("a",{href:s,target:"_blank",rel:"noreferrer",children:[s.replace("https://static.preply.com/ds/illustrations/tokyo-ui/",""),t.jsx("img",{src:s,alt:"TODO:"})]})}),d=()=>t.jsx(y,{children:t.jsx(e,{columns:["25% 25% 25% 25%"],gap:"xs",children:n.map(s=>t.jsx(m,{svgUrl:s},s))})});function r(s){const o={a:"a",h1:"h1",p:"p",...l(),...s.components};return t.jsxs(t.Fragment,{children:[t.jsx(a,{title:"Guides/Assets/Illustration Explorer"}),`
|
|
18
|
+
`,t.jsx(o.h1,{id:"illustration-explorer",children:"Illustration Explorer"}),`
|
|
19
|
+
`,t.jsxs(o.p,{children:["Don't see the illustration you're looking for? You can follow ",t.jsx(o.a,{href:"https://preply.atlassian.net/wiki/spaces/PDS/pages/4332584962/Hosting+new+illustration",rel:"nofollow",children:"this guide"}),` to upload it yourself, it's super easy! Or reach out to us in
|
|
20
|
+
`,t.jsx(o.a,{href:"https://preply.slack.com/archives/C024EAEHP6V",rel:"nofollow",children:"#design-system-public"}),"."]}),`
|
|
21
|
+
`,t.jsx(d,{})]})}function V(s={}){const{wrapper:o}={...l(),...s.components};return o?t.jsx(o,{...s,children:t.jsx(r,{...s})}):r(s)}export{V as default};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{j as e}from"./jsx-runtime-BTJTZTIL.js";import{useMDXComponents as t}from"./index-BN6VMYqa.js";import{M as i}from"./index-
|
|
1
|
+
import{j as e}from"./jsx-runtime-BTJTZTIL.js";import{useMDXComponents as t}from"./index-BN6VMYqa.js";import{M as i}from"./index-Ba1GaWBz.js";import"./index-ChsGqxH_.js";import"./index-Cb9e4tly.js";import"./_commonjsHelpers-Cpj98o6Y.js";import"./iframe-C8qEtSwt.js";import"./index-BPrLDK9Y.js";import"./index-C7hTFOIV.js";import"./index-Cu4lwwaE.js";import"./index-CXQShRbs.js";import"./index-DrFu-skq.js";function r(n){const o={a:"a",code:"code",h1:"h1",p:"p",pre:"pre",...t(),...n.components};return e.jsxs(e.Fragment,{children:[e.jsx(i,{title:"Guides/Installation/Advanced"}),`
|
|
2
2
|
`,e.jsx(o.h1,{id:"installation-advanced",children:"Installation: Advanced"}),`
|
|
3
3
|
`,e.jsxs(o.p,{children:["This page is about rolling out your own alternative to ",e.jsx(o.code,{children:"<RootProvider/>"})," (advanced usage)."]}),`
|
|
4
4
|
`,e.jsxs(o.p,{children:["If you are looking for how to install, refer to the ",e.jsx(o.a,{href:"/story/guides-installation-applications--page",children:"installation guides"})," instead."]}),`
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
@keyframes overlayShow__TBIKv{0%{opacity:0}to{opacity:1}}@keyframes contentShow__wWPJX{0%{opacity:0;transform:translateY(var(--590b8d))}to{opacity:1;transform:translateY(0)}}.overlay__vG-Gu{background-color:var(--02a0d5);position:fixed;top:0;right:0;bottom:0;left:0}@media (prefers-reduced-motion: no-preference){.overlay__vG-Gu[data-state=open]{animation:overlayShow__TBIKv .15s cubic-bezier(.4,0,.2,1)}}.content__Nk-Ib{background-color:var(--3546c3);box-sizing:border-box;position:fixed;top:0;right:0;bottom:0;left:0;margin:auto;padding:var(--f1b498);border-radius:var(--fa4b1a);width:90%;max-width:440px;height:fit-content;box-shadow:var(--df7dbb);display:flex;flex-direction:column;gap:var(--558c4c)}@media (prefers-reduced-motion: no-preference){.content__Nk-Ib[data-state=open]{animation:contentShow__wWPJX .15s cubic-bezier(.4,0,.2,1)}}.description__1dRpy{font-size:var(--9c8f04);font-weight:var(--1bc44d);line-height:var(--3dd5bc);margin:0}.actions__FsX-e{display:flex;flex-direction:column;gap:var(--558c4c)}@media (min-width: 400px){.actions__FsX-e{flex-direction:row;justify-content:flex-end}}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import{j as e}from"./jsx-runtime-BTJTZTIL.js";import{r as i}from"./index-Cb9e4tly.js";import{u as E,w as P,e as N}from"./index-BVDq5o4N.js";import{a as l}from"./chunk-D5ZWXAHU-BhFjjRSl.js";import{R as F,P as U,O as q,C as
|
|
1
|
+
import{j as e}from"./jsx-runtime-BTJTZTIL.js";import{r as i}from"./index-Cb9e4tly.js";import{u as E,w as P,e as N}from"./index-BVDq5o4N.js";import{a as l}from"./chunk-D5ZWXAHU-BhFjjRSl.js";import{R as F,P as U,O as q,C as I,T as V,D as W,a as L,A as X,b as J}from"./index-kgJB6e9p.js";import{H as G}from"./Heading-Bj7LLgoH.js";import{B as s}from"./Button-BlwReLw5.js";import{i as H}from"./PortalElementProvider-BRcRijdp.js";import{g as Y}from"./index-DdzHuZ-Y.js";import{w as z}from"./componentNames-Bwls0I02.js";import"./index-ChsGqxH_.js";import"./_commonjsHelpers-Cpj98o6Y.js";import"./v4-CtRu48qb.js";import"./index-D6OcjePf.js";import"./index-M3hvtcRE.js";import"./tslib.es6-BntfKcQG.js";import"./text-accent-DZDDtpIt.js";import"./classNames-BUL1Zq7e.js";import"./text-centered-CznToR0o.js";import"./filterHTMLAttributes-DYdLqcvH.js";import"./render-icon-BT0Aq7PA.js";import"./ButtonBase-BCfmDQ_b.js";import"./Spinner-B2C3RkCF.js";import"./defaults-B1rzzf6M.js";import"./useHostname-Y3PlXofY.js";import"./index-CC6DAVyL.js";import"./index-BPrLDK9Y.js";import"./index-C7hTFOIV.js";const K="overlay__vG-Gu",M="content__Nk-Ib",Q="description__1dRpy",Z="actions__FsX-e",d={overlay:K,content:M,description:Q,actions:Z},_=({children:r})=>e.jsx(J,{asChild:!0,children:i.Children.only(r)}),$=i.forwardRef(function(n,o){return e.jsx(X,{asChild:!0,children:e.jsx(s,{...n,ref:o})})}),ee=i.forwardRef(function(n,o){return e.jsx(L,{asChild:!0,children:e.jsx(s,{...n,ref:o})})}),te=({open:r,title:n,description:o,dataset:a,children:h})=>{const f=H(),O=Y(a,{preplyDsComponent:z.AlertDialog});let A;const C=[];return i.Children.forEach(h,c=>{i.isValidElement(c)&&(c.type===_?A=c:C.push(c))}),e.jsxs(F,{open:r,children:[A,e.jsxs(U,{container:f,children:[e.jsx(q,{className:d.overlay}),e.jsxs(I,{...O,className:d.content,children:[e.jsx(V,{asChild:!0,children:e.jsx(G,{tag:"h3",variant:"medium",children:n})}),e.jsx(W,{asChild:!0,children:e.jsx("p",{className:d.description,children:o})}),e.jsx("div",{className:d.actions,children:C})]})]})]})},t=Object.assign(te,{Trigger:_,Action:$,Cancel:ee});try{t.displayName="AlertDialog",t.__docgenInfo={description:"A modal alertdialog that interrupts the user with important content and expects a response.\n\nUnlike a `Dialog`, it cannot be dismissed by clicking outside or pressing escape.",displayName:"AlertDialog",props:{title:{defaultValue:null,description:"The alert's title, describing what the user needs to confirm",name:"title",required:!0,type:{name:"enum",value:[{value:"undefined"},{value:"null"},{value:"string"},{value:"number"},{value:"false"},{value:"true"},{value:"ReactElement<any, string | JSXElementConstructor<any>>"},{value:"Iterable<ReactNode>"},{value:"ReactPortal"}]}},description:{defaultValue:null,description:"Details about the action and its consequences",name:"description",required:!0,type:{name:"enum",value:[{value:"undefined"},{value:"null"},{value:"string"},{value:"number"},{value:"false"},{value:"true"},{value:"ReactElement<any, string | JSXElementConstructor<any>>"},{value:"Iterable<ReactNode>"},{value:"ReactPortal"}]}},children:{defaultValue:null,description:"The AlertDialog actions.\n@see `AlertDialog.Actions` for a common actions convenience wrapper.",name:"children",required:!0,type:{name:"enum",value:[{value:"undefined"},{value:"null"},{value:"string"},{value:"number"},{value:"false"},{value:"true"},{value:"ReactElement<any, string | JSXElementConstructor<any>>"},{value:"Iterable<ReactNode>"},{value:"ReactPortal"}]}},open:{defaultValue:null,description:`Controls the visibility of the alert.
|
|
2
2
|
|
|
3
3
|
Alternatively, you can use the \`AlertDialog.Trigger\` subcomponent for
|
|
4
|
-
an uncontrolled instance.`,name:"open",required:!1,type:{name:"enum",value:[{value:"false"},{value:"true"}]}},dataset:{defaultValue:null,description:"",name:"dataset",required:!1,type:{name:"enum",value:[{value:"Dataset"}]}}}}}catch{}const
|
|
4
|
+
an uncontrolled instance.`,name:"open",required:!1,type:{name:"enum",value:[{value:"false"},{value:"true"}]}},dataset:{defaultValue:null,description:"",name:"dataset",required:!1,type:{name:"enum",value:[{value:"Dataset"}]}}}}}catch{}const Re={title:"Components/AlertDialog",component:t,parameters:{docs:{description:{component:"A modal alert dialog for confirming destructive or important actions."},story:{inline:!1,height:300}}},play:async({canvas:r,step:n})=>{await n("Open alert",async()=>(await E.click(r.getByTestId("alert-trigger")),P(()=>{const o=r.getByTestId("alert-dialog");N(o).toBeVisible()})))}},u={parameters:{docs:{description:{story:"Uncontrolled alert using the `Trigger`, `Cancel`, and `Action` subcomponents."}}},args:{title:"Confirm",description:"This action cannot be undone.",dataset:{testid:"alert-dialog"}},render:function(n){return e.jsxs(t,{...n,children:[e.jsx(t.Trigger,{children:e.jsx(s,{dataset:{testid:"alert-trigger"},children:"Action"})}),e.jsx(t.Cancel,{variant:"secondary",onClick:l("cancel"),children:"Cancel"}),e.jsx(t.Action,{onClick:l("confirm"),children:"Confirm"})]})}},p={parameters:{docs:{description:{story:"Uncontrolled alert using the `Trigger`, and two `Action` subcomponents.\n\nThe two actions are styled differently to suggest a preferred action to the one the user has requested.\n\nFor example, in this case, the user is prompted to reschedule instead of canceling."}}},args:{title:"Cancel Lesson",description:"Your balance will not be refunded. Would you like to reschedule instead?",dataset:{testid:"alert-dialog"}},render:function(n){return e.jsxs(t,{...n,children:[e.jsx(t.Trigger,{children:e.jsx(s,{variant:"critical",dataset:{testid:"alert-trigger"},children:"Cancel Lesson"})}),e.jsx(t.Action,{variant:"ghost",onClick:l("cancel"),children:"Cancel lesson"}),e.jsx(t.Action,{variant:"secondary",onClick:l("reschedule"),children:"Reschedule"})]})}},g={parameters:{docs:{description:{story:"Fully controlled using custom `Buttons`."}}},args:{title:"Delete Account",description:"This action cannot be undone.",dataset:{testid:"alert-dialog"}},render:function(n){const[o,a]=i.useState(!1),h=()=>{a(!1),l("account deleted")()},f=()=>{a(!1),l("deletion canceled")()};return e.jsxs(e.Fragment,{children:[e.jsx(s,{onClick:()=>a(!0),dataset:{testid:"alert-trigger"},children:"Action"}),e.jsxs(t,{...n,open:o,children:[e.jsx(t.Cancel,{variant:"secondary",onClick:f,children:"Cancel"}),e.jsx(t.Action,{variant:"critical",onClick:h,children:"Delete"})]})]})}},m={parameters:{docs:{description:{story:"Fully controlled using a single custom `Button`."}}},args:{title:"Payment failed",description:"The page will refresh. Please try again.",dataset:{testid:"alert-dialog"}},render:function(n){const[o,a]=i.useState(!1);return e.jsxs(e.Fragment,{children:[e.jsx(s,{onClick:()=>a(!0),dataset:{testid:"alert-trigger"},children:"Action"}),e.jsx(t,{...n,open:o,children:e.jsx(t.Action,{onClick:()=>{a(!1),l("page refreshed")()},children:"Refresh"})})]})}};var y,v,D;u.parameters={...u.parameters,docs:{...(y=u.parameters)==null?void 0:y.docs,source:{originalSource:`{
|
|
5
5
|
parameters: {
|
|
6
6
|
docs: {
|
|
7
7
|
description: {
|
|
@@ -106,7 +106,7 @@ For example, in this case, the user is prompted to reschedule instead of canceli
|
|
|
106
106
|
</AlertDialog>
|
|
107
107
|
</>;
|
|
108
108
|
}
|
|
109
|
-
}`,...(S=(k=g.parameters)==null?void 0:k.docs)==null?void 0:S.source}}};var
|
|
109
|
+
}`,...(S=(k=g.parameters)==null?void 0:k.docs)==null?void 0:S.source}}};var w,B,R;m.parameters={...m.parameters,docs:{...(w=m.parameters)==null?void 0:w.docs,source:{originalSource:`{
|
|
110
110
|
parameters: {
|
|
111
111
|
docs: {
|
|
112
112
|
description: {
|
|
@@ -139,4 +139,4 @@ For example, in this case, the user is prompted to reschedule instead of canceli
|
|
|
139
139
|
</AlertDialog>
|
|
140
140
|
</>;
|
|
141
141
|
}
|
|
142
|
-
}`,...(
|
|
142
|
+
}`,...(R=(B=m.parameters)==null?void 0:B.docs)==null?void 0:R.source}}};const _e=["Uncontrolled","UncontrolledWithSuggestionAction","Controlled","ControlledWithSingleButton"];export{g as Controlled,m as ControlledWithSingleButton,u as Uncontrolled,p as UncontrolledWithSuggestionAction,_e as __namedExportsOrder,Re as default};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
.Avatar__K41Tw{display:inline-block}.Avatar__K41Tw img{vertical-align:bottom;object-fit:cover;border-radius:var(--dad9ec)}.Avatar--size-2xs__DWVtx img{width:var(--d51f41);height:var(--d51f41)}.Avatar--size-xs__xsB9y img{width:var(--cfdb4f);height:var(--cfdb4f)}.Avatar--size-s__lPG7y img{width:var(--2dafbf);height:var(--2dafbf)}.Avatar--size-m__QjPnd img{width:var(--b51334);height:var(--b51334)}.Avatar--size-l__cuADz img{width:var(--d318a5);height:var(--d318a5)}.Avatar--size-xl__22V2l img{width:var(--6eb1c7);height:var(--6eb1c7)}.Avatar--size-24__hDb5G img{width:var(--86aa8e);height:var(--86aa8e)}.Avatar--size-32__0goVI img{width:var(--32bbec);height:var(--32bbec)}.Avatar--size-48__uGMSJ img{width:var(--950ab5);height:var(--950ab5)}.Avatar--size-64__WD77O img{width:var(--cc5dc7);height:var(--cc5dc7)}.Avatar--size-96__OxIe2 img{width:var(--796da2);height:var(--796da2)}.Avatar--size-160__8tEPo img{width:var(--329ba7);height:var(--329ba7)}@media (min-width: 400px){.Avatar--narrow-l--size-2xs__jljjM img{width:var(--d51f41);height:var(--d51f41)}.Avatar--narrow-l--size-xs__7B-jh img{width:var(--cfdb4f);height:var(--cfdb4f)}.Avatar--narrow-l--size-s__RYetq img{width:var(--2dafbf);height:var(--2dafbf)}.Avatar--narrow-l--size-m__zam12 img{width:var(--b51334);height:var(--b51334)}.Avatar--narrow-l--size-l__qOhX6 img{width:var(--d318a5);height:var(--d318a5)}.Avatar--narrow-l--size-xl__DVXKH img{width:var(--6eb1c7);height:var(--6eb1c7)}.Avatar--narrow-l--size-24__L-54O img{width:var(--86aa8e);height:var(--86aa8e)}.Avatar--narrow-l--size-32__Mdeh3 img{width:var(--32bbec);height:var(--32bbec)}.Avatar--narrow-l--size-48__1xNsg img{width:var(--950ab5);height:var(--950ab5)}.Avatar--narrow-l--size-64__ZQ5C- img{width:var(--cc5dc7);height:var(--cc5dc7)}.Avatar--narrow-l--size-96__DuZVB img{width:var(--796da2);height:var(--796da2)}.Avatar--narrow-l--size-160__PN1pX img{width:var(--329ba7);height:var(--329ba7)}}@media (min-width: 700px){.Avatar--medium-s--size-2xs__qTU6Z img{width:var(--d51f41);height:var(--d51f41)}.Avatar--medium-s--size-xs__BSbO- img{width:var(--cfdb4f);height:var(--cfdb4f)}.Avatar--medium-s--size-s__B4jP8 img{width:var(--2dafbf);height:var(--2dafbf)}.Avatar--medium-s--size-m__zLOqH img{width:var(--b51334);height:var(--b51334)}.Avatar--medium-s--size-l__5l0Bn img{width:var(--d318a5);height:var(--d318a5)}.Avatar--medium-s--size-xl__bKrql img{width:var(--6eb1c7);height:var(--6eb1c7)}.Avatar--medium-s--size-24__6--6m img{width:var(--86aa8e);height:var(--86aa8e)}.Avatar--medium-s--size-32__7rlpv img{width:var(--32bbec);height:var(--32bbec)}.Avatar--medium-s--size-48__R893D img{width:var(--950ab5);height:var(--950ab5)}.Avatar--medium-s--size-64__x4N0d img{width:var(--cc5dc7);height:var(--cc5dc7)}.Avatar--medium-s--size-96__1qdaO img{width:var(--796da2);height:var(--796da2)}.Avatar--medium-s--size-160__z7IAl img{width:var(--329ba7);height:var(--329ba7)}}@media (min-width: 880px){.Avatar--medium-l--size-2xs__yBvjS img{width:var(--d51f41);height:var(--d51f41)}.Avatar--medium-l--size-xs__MwYGW img{width:var(--cfdb4f);height:var(--cfdb4f)}.Avatar--medium-l--size-s__nmMyG img{width:var(--2dafbf);height:var(--2dafbf)}.Avatar--medium-l--size-m__gGguL img{width:var(--b51334);height:var(--b51334)}.Avatar--medium-l--size-l__aITY0 img{width:var(--d318a5);height:var(--d318a5)}.Avatar--medium-l--size-xl__mFm28 img{width:var(--6eb1c7);height:var(--6eb1c7)}.Avatar--medium-l--size-24__Ndkzw img{width:var(--86aa8e);height:var(--86aa8e)}.Avatar--medium-l--size-32__3miIB img{width:var(--32bbec);height:var(--32bbec)}.Avatar--medium-l--size-48__arPBB img{width:var(--950ab5);height:var(--950ab5)}.Avatar--medium-l--size-64__aFQa7 img{width:var(--cc5dc7);height:var(--cc5dc7)}.Avatar--medium-l--size-96__eg03F img{width:var(--796da2);height:var(--796da2)}.Avatar--medium-l--size-160__fGJ7K img{width:var(--329ba7);height:var(--329ba7)}}@media (min-width: 1200px){.Avatar--wide-s--size-2xs__NFYZ2 img{width:var(--d51f41);height:var(--d51f41)}.Avatar--wide-s--size-xs__HtdLJ img{width:var(--cfdb4f);height:var(--cfdb4f)}.Avatar--wide-s--size-s__EsekK img{width:var(--2dafbf);height:var(--2dafbf)}.Avatar--wide-s--size-m__BLcmN img{width:var(--b51334);height:var(--b51334)}.Avatar--wide-s--size-l__-BII- img{width:var(--d318a5);height:var(--d318a5)}.Avatar--wide-s--size-xl__JEpuf img{width:var(--6eb1c7);height:var(--6eb1c7)}.Avatar--wide-s--size-24__Ue7o0 img{width:var(--86aa8e);height:var(--86aa8e)}.Avatar--wide-s--size-32__hYoGY img{width:var(--32bbec);height:var(--32bbec)}.Avatar--wide-s--size-48__Q9kzJ img{width:var(--950ab5);height:var(--950ab5)}.Avatar--wide-s--size-64__vvQME img{width:var(--cc5dc7);height:var(--cc5dc7)}.Avatar--wide-s--size-96__tVnz3 img{width:var(--796da2);height:var(--796da2)}.Avatar--wide-s--size-160__brJ59 img{width:var(--329ba7);height:var(--329ba7)}}@media (min-width: 1900px){.Avatar--wide-l--size-2xs__494a- img{width:var(--d51f41);height:var(--d51f41)}.Avatar--wide-l--size-xs__x-qZ6 img{width:var(--cfdb4f);height:var(--cfdb4f)}.Avatar--wide-l--size-s__gvL9N img{width:var(--2dafbf);height:var(--2dafbf)}.Avatar--wide-l--size-m__fLHkS img{width:var(--b51334);height:var(--b51334)}.Avatar--wide-l--size-l__HOWbG img{width:var(--d318a5);height:var(--d318a5)}.Avatar--wide-l--size-xl__By2Ym img{width:var(--6eb1c7);height:var(--6eb1c7)}.Avatar--wide-l--size-24__EMfbp img{width:var(--86aa8e);height:var(--86aa8e)}.Avatar--wide-l--size-32__7bYZs img{width:var(--32bbec);height:var(--32bbec)}.Avatar--wide-l--size-48__548Bt img{width:var(--950ab5);height:var(--950ab5)}.Avatar--wide-l--size-64__5Ce08 img{width:var(--cc5dc7);height:var(--cc5dc7)}.Avatar--wide-l--size-96__-6w7Y img{width:var(--796da2);height:var(--796da2)}.Avatar--wide-l--size-160__5ft-T img{width:var(--329ba7);height:var(--329ba7)}}.Avatar--round__ZDtGc img{border-radius:var(--8517a6)}.Avatar__K41Tw img{border-style:solid;border-width:var(--c4d145);border-color:var(--54e6b5)}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import{j as a}from"./jsx-runtime-BTJTZTIL.js";import{r as n}from"./index-Cb9e4tly.js";import{f as w}from"./filterHTMLAttributes-DYdLqcvH.js";import{m as p,s as x,b as c}from"./classNames-BUL1Zq7e.js";import{w as e}from"./componentNames-Bwls0I02.js";import{g as f}from"./index-DdzHuZ-Y.js";import{A as g}from"./constants--ewUoBsO.js";import{A as y}from"./defaults-B1rzzf6M.js";const h="Avatar__K41Tw",b={Avatar:h,"Avatar--size-2xs":"Avatar--size-2xs__DWVtx","Avatar--size-xs":"Avatar--size-xs__xsB9y","Avatar--size-s":"Avatar--size-s__lPG7y","Avatar--size-m":"Avatar--size-m__QjPnd","Avatar--size-l":"Avatar--size-l__cuADz","Avatar--size-xl":"Avatar--size-xl__22V2l","Avatar--size-24":"Avatar--size-24__hDb5G","Avatar--size-32":"Avatar--size-32__0goVI","Avatar--size-48":"Avatar--size-48__uGMSJ","Avatar--size-64":"Avatar--size-64__WD77O","Avatar--size-96":"Avatar--size-96__OxIe2","Avatar--size-160":"Avatar--size-160__8tEPo","Avatar--narrow-l--size-2xs":"Avatar--narrow-l--size-2xs__jljjM","Avatar--narrow-l--size-xs":"Avatar--narrow-l--size-xs__7B-jh","Avatar--narrow-l--size-s":"Avatar--narrow-l--size-s__RYetq","Avatar--narrow-l--size-m":"Avatar--narrow-l--size-m__zam12","Avatar--narrow-l--size-l":"Avatar--narrow-l--size-l__qOhX6","Avatar--narrow-l--size-xl":"Avatar--narrow-l--size-xl__DVXKH","Avatar--narrow-l--size-24":"Avatar--narrow-l--size-24__L-54O","Avatar--narrow-l--size-32":"Avatar--narrow-l--size-32__Mdeh3","Avatar--narrow-l--size-48":"Avatar--narrow-l--size-48__1xNsg","Avatar--narrow-l--size-64":"Avatar--narrow-l--size-64__ZQ5C-","Avatar--narrow-l--size-96":"Avatar--narrow-l--size-96__DuZVB","Avatar--narrow-l--size-160":"Avatar--narrow-l--size-160__PN1pX","Avatar--medium-s--size-2xs":"Avatar--medium-s--size-2xs__qTU6Z","Avatar--medium-s--size-xs":"Avatar--medium-s--size-xs__BSbO-","Avatar--medium-s--size-s":"Avatar--medium-s--size-s__B4jP8","Avatar--medium-s--size-m":"Avatar--medium-s--size-m__zLOqH","Avatar--medium-s--size-l":"Avatar--medium-s--size-l__5l0Bn","Avatar--medium-s--size-xl":"Avatar--medium-s--size-xl__bKrql","Avatar--medium-s--size-24":"Avatar--medium-s--size-24__6--6m","Avatar--medium-s--size-32":"Avatar--medium-s--size-32__7rlpv","Avatar--medium-s--size-48":"Avatar--medium-s--size-48__R893D","Avatar--medium-s--size-64":"Avatar--medium-s--size-64__x4N0d","Avatar--medium-s--size-96":"Avatar--medium-s--size-96__1qdaO","Avatar--medium-s--size-160":"Avatar--medium-s--size-160__z7IAl","Avatar--medium-l--size-2xs":"Avatar--medium-l--size-2xs__yBvjS","Avatar--medium-l--size-xs":"Avatar--medium-l--size-xs__MwYGW","Avatar--medium-l--size-s":"Avatar--medium-l--size-s__nmMyG","Avatar--medium-l--size-m":"Avatar--medium-l--size-m__gGguL","Avatar--medium-l--size-l":"Avatar--medium-l--size-l__aITY0","Avatar--medium-l--size-xl":"Avatar--medium-l--size-xl__mFm28","Avatar--medium-l--size-24":"Avatar--medium-l--size-24__Ndkzw","Avatar--medium-l--size-32":"Avatar--medium-l--size-32__3miIB","Avatar--medium-l--size-48":"Avatar--medium-l--size-48__arPBB","Avatar--medium-l--size-64":"Avatar--medium-l--size-64__aFQa7","Avatar--medium-l--size-96":"Avatar--medium-l--size-96__eg03F","Avatar--medium-l--size-160":"Avatar--medium-l--size-160__fGJ7K","Avatar--wide-s--size-2xs":"Avatar--wide-s--size-2xs__NFYZ2","Avatar--wide-s--size-xs":"Avatar--wide-s--size-xs__HtdLJ","Avatar--wide-s--size-s":"Avatar--wide-s--size-s__EsekK","Avatar--wide-s--size-m":"Avatar--wide-s--size-m__BLcmN","Avatar--wide-s--size-l":"Avatar--wide-s--size-l__-BII-","Avatar--wide-s--size-xl":"Avatar--wide-s--size-xl__JEpuf","Avatar--wide-s--size-24":"Avatar--wide-s--size-24__Ue7o0","Avatar--wide-s--size-32":"Avatar--wide-s--size-32__hYoGY","Avatar--wide-s--size-48":"Avatar--wide-s--size-48__Q9kzJ","Avatar--wide-s--size-64":"Avatar--wide-s--size-64__vvQME","Avatar--wide-s--size-96":"Avatar--wide-s--size-96__tVnz3","Avatar--wide-s--size-160":"Avatar--wide-s--size-160__brJ59","Avatar--wide-l--size-2xs":"Avatar--wide-l--size-2xs__494a-","Avatar--wide-l--size-xs":"Avatar--wide-l--size-xs__x-qZ6","Avatar--wide-l--size-s":"Avatar--wide-l--size-s__gvL9N","Avatar--wide-l--size-m":"Avatar--wide-l--size-m__fLHkS","Avatar--wide-l--size-l":"Avatar--wide-l--size-l__HOWbG","Avatar--wide-l--size-xl":"Avatar--wide-l--size-xl__By2Ym","Avatar--wide-l--size-24":"Avatar--wide-l--size-24__EMfbp","Avatar--wide-l--size-32":"Avatar--wide-l--size-32__7bYZs","Avatar--wide-l--size-48":"Avatar--wide-l--size-48__548Bt","Avatar--wide-l--size-64":"Avatar--wide-l--size-64__5Ce08","Avatar--wide-l--size-96":"Avatar--wide-l--size-96__-6w7Y","Avatar--wide-l--size-160":"Avatar--wide-l--size-160__5ft-T","Avatar--round":"Avatar--round__ZDtGc"},s=n.forwardRef(function({size:r=y,round:t,src:v,alt:l="",dataset:m,crossOrigin:A,..._},d){const z=t??!0,u=p(b,e.Avatar,[x("size",r),c("round",void 0,z)]),o={...w(_),ref:d,className:u.join(" "),...f(m,{preplyDsComponent:e.Avatar})};return a.jsx("picture",{...o,children:a.jsx("img",{src:v||g,alt:l,crossOrigin:A})})});try{s.displayName="Avatar",s.__docgenInfo={description:"",displayName:"Avatar",props:{size:{defaultValue:{value:"xs"},description:"",name:"size",required:!1,type:{name:"enum",value:[{value:'"xs"'},{value:'"s"'},{value:'"m"'},{value:'"l"'},{value:'"xl"'},{value:'"2xs"'},{value:'"24"'},{value:'"32"'},{value:'"48"'},{value:'"64"'},{value:'"96"'},{value:'"160"'},{value:"ResponsiveProp<AvatarSize>"}]}},round:{defaultValue:null,description:"@deprecated this prop is deprecated and has no effect",name:"round",required:!1,type:{name:"enum",value:[{value:"false"},{value:"true"}]}},src:{defaultValue:null,description:`The avatar image URL.
|
|
2
|
+
If not provided, the default placeholder image is used instead.`,name:"src",required:!1,type:{name:"enum",value:[{value:"string"}]}},alt:{defaultValue:{value:""},description:`A description of the image.
|
|
3
|
+
This is recommended for accessibility purposes, specifically for users
|
|
4
|
+
of screen readers.
|
|
5
|
+
@example <Avatar src={...} alt="Foobar's profile" />`,name:"alt",required:!1,type:{name:"enum",value:[{value:"string"}]}},dataset:{defaultValue:null,description:`Use this to set data attributes on the DOM element for the purpose of
|
|
6
|
+
e2e tests or integrating with external libraries.
|
|
7
|
+
@example <Avatar dataset={{ 'qa-id': 'user-avatar' }} /> // will add data-qa-id="user-avatar" to the HTML element`,name:"dataset",required:!1,type:{name:"enum",value:[{value:"Dataset"}]}},crossOrigin:{defaultValue:null,description:"CORS policy for the image.",name:"crossOrigin",required:!1,type:{name:"enum",value:[{value:'""'},{value:'"anonymous"'},{value:'"use-credentials"'}]}}}}}catch{}export{s as A};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{j as e}from"./jsx-runtime-BTJTZTIL.js";import{r as w}from"./index-Cb9e4tly.js";import{f as o}from"./filterHTMLAttributes-UOns5Q7s.js";import{m as u,s as n,b as x}from"./classNames-BUL1Zq7e.js";import{w as s}from"./componentNames-Bwls0I02.js";import{g as p}from"./index-DdzHuZ-Y.js";import{A as f}from"./constants--ewUoBsO.js";import{A as c}from"./defaults-B1rzzf6M.js";const N="Avatar__ENaap",C={Avatar:N,"Avatar--size-2xs":"Avatar--size-2xs__d2pNq","Avatar--size-xs":"Avatar--size-xs__hlQlf","Avatar--size-s":"Avatar--size-s__OXNzr","Avatar--size-m":"Avatar--size-m__4n3bp","Avatar--size-l":"Avatar--size-l__VHR4R","Avatar--size-xl":"Avatar--size-xl__AQlZ0","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-2xs":"Avatar--narrow-l--size-2xs__-PmgC","Avatar--narrow-l--size-xs":"Avatar--narrow-l--size-xs__RdTWx","Avatar--narrow-l--size-s":"Avatar--narrow-l--size-s__zwV93","Avatar--narrow-l--size-m":"Avatar--narrow-l--size-m__pW4--","Avatar--narrow-l--size-l":"Avatar--narrow-l--size-l__1pv2G","Avatar--narrow-l--size-xl":"Avatar--narrow-l--size-xl__vH5iG","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-2xs":"Avatar--medium-s--size-2xs__qWyz5","Avatar--medium-s--size-xs":"Avatar--medium-s--size-xs__2e4Qo","Avatar--medium-s--size-s":"Avatar--medium-s--size-s__d0fm8","Avatar--medium-s--size-m":"Avatar--medium-s--size-m__ZHi66","Avatar--medium-s--size-l":"Avatar--medium-s--size-l__xxroc","Avatar--medium-s--size-xl":"Avatar--medium-s--size-xl__2QWlo","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-2xs":"Avatar--medium-l--size-2xs__Kt93i","Avatar--medium-l--size-xs":"Avatar--medium-l--size-xs__BwpLG","Avatar--medium-l--size-s":"Avatar--medium-l--size-s__JjLGR","Avatar--medium-l--size-m":"Avatar--medium-l--size-m__L-KEk","Avatar--medium-l--size-l":"Avatar--medium-l--size-l__a53QC","Avatar--medium-l--size-xl":"Avatar--medium-l--size-xl__kUFUb","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-2xs":"Avatar--wide-s--size-2xs__1jiA7","Avatar--wide-s--size-xs":"Avatar--wide-s--size-xs__CwbZa","Avatar--wide-s--size-s":"Avatar--wide-s--size-s__DxpiN","Avatar--wide-s--size-m":"Avatar--wide-s--size-m__qn5xe","Avatar--wide-s--size-l":"Avatar--wide-s--size-l__4TPfZ","Avatar--wide-s--size-xl":"Avatar--wide-s--size-xl__NtVch","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-2xs":"Avatar--wide-l--size-2xs__BuADe","Avatar--wide-l--size-xs":"Avatar--wide-l--size-xs__g8Tfi","Avatar--wide-l--size-s":"Avatar--wide-l--size-s__qYwnP","Avatar--wide-l--size-m":"Avatar--wide-l--size-m__tMD4S","Avatar--wide-l--size-l":"Avatar--wide-l--size-l__M3npP","Avatar--wide-l--size-xl":"Avatar--wide-l--size-xl__-vkhW","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:i=c,round:a,src:r,alt:t="",dataset:A,crossOrigin:v,..._},z){const m=a??!0,l=u(C,s.Avatar,[n("size",i),x("round",void 0,m)]),d={...o(_),ref:z,className:l.join(" "),...p(A,{preplyDsComponent:s.Avatar})};return e.jsx("picture",{...d,children:e.jsx("img",{src:r||f,alt:t,crossOrigin:v})})});R.__docgenInfo={description:"",methods:[],displayName:"Avatar",props:{size:{defaultValue:{value:"'xs'",computed:!1},required:!1},alt:{defaultValue:{value:'""',computed:!1},required:!1}}};export{R as A};
|
|
@@ -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-2xs__d2pNq img{width:var(--d51f41);height:var(--d51f41)}.Avatar--size-xs__hlQlf img{width:var(--cfdb4f);height:var(--cfdb4f)}.Avatar--size-s__OXNzr img{width:var(--2dafbf);height:var(--2dafbf)}.Avatar--size-m__4n3bp img{width:var(--b51334);height:var(--b51334)}.Avatar--size-l__VHR4R img{width:var(--d318a5);height:var(--d318a5)}.Avatar--size-xl__AQlZ0 img{width:var(--6eb1c7);height:var(--6eb1c7)}.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-2xs__-PmgC img{width:var(--d51f41);height:var(--d51f41)}.Avatar--narrow-l--size-xs__RdTWx img{width:var(--cfdb4f);height:var(--cfdb4f)}.Avatar--narrow-l--size-s__zwV93 img{width:var(--2dafbf);height:var(--2dafbf)}.Avatar--narrow-l--size-m__pW4-- img{width:var(--b51334);height:var(--b51334)}.Avatar--narrow-l--size-l__1pv2G img{width:var(--d318a5);height:var(--d318a5)}.Avatar--narrow-l--size-xl__vH5iG img{width:var(--6eb1c7);height:var(--6eb1c7)}.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-2xs__qWyz5 img{width:var(--d51f41);height:var(--d51f41)}.Avatar--medium-s--size-xs__2e4Qo img{width:var(--cfdb4f);height:var(--cfdb4f)}.Avatar--medium-s--size-s__d0fm8 img{width:var(--2dafbf);height:var(--2dafbf)}.Avatar--medium-s--size-m__ZHi66 img{width:var(--b51334);height:var(--b51334)}.Avatar--medium-s--size-l__xxroc img{width:var(--d318a5);height:var(--d318a5)}.Avatar--medium-s--size-xl__2QWlo img{width:var(--6eb1c7);height:var(--6eb1c7)}.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-2xs__Kt93i img{width:var(--d51f41);height:var(--d51f41)}.Avatar--medium-l--size-xs__BwpLG img{width:var(--cfdb4f);height:var(--cfdb4f)}.Avatar--medium-l--size-s__JjLGR img{width:var(--2dafbf);height:var(--2dafbf)}.Avatar--medium-l--size-m__L-KEk img{width:var(--b51334);height:var(--b51334)}.Avatar--medium-l--size-l__a53QC img{width:var(--d318a5);height:var(--d318a5)}.Avatar--medium-l--size-xl__kUFUb img{width:var(--6eb1c7);height:var(--6eb1c7)}.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-2xs__1jiA7 img{width:var(--d51f41);height:var(--d51f41)}.Avatar--wide-s--size-xs__CwbZa img{width:var(--cfdb4f);height:var(--cfdb4f)}.Avatar--wide-s--size-s__DxpiN img{width:var(--2dafbf);height:var(--2dafbf)}.Avatar--wide-s--size-m__qn5xe img{width:var(--b51334);height:var(--b51334)}.Avatar--wide-s--size-l__4TPfZ img{width:var(--d318a5);height:var(--d318a5)}.Avatar--wide-s--size-xl__NtVch img{width:var(--6eb1c7);height:var(--6eb1c7)}.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-2xs__BuADe img{width:var(--d51f41);height:var(--d51f41)}.Avatar--wide-l--size-xs__g8Tfi img{width:var(--cfdb4f);height:var(--cfdb4f)}.Avatar--wide-l--size-s__qYwnP img{width:var(--2dafbf);height:var(--2dafbf)}.Avatar--wide-l--size-m__tMD4S img{width:var(--b51334);height:var(--b51334)}.Avatar--wide-l--size-l__M3npP img{width:var(--d318a5);height:var(--d318a5)}.Avatar--wide-l--size-xl__-vkhW img{width:var(--6eb1c7);height:var(--6eb1c7)}.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,4 +1,4 @@
|
|
|
1
|
-
import{j as a}from"./jsx-runtime-BTJTZTIL.js";import{S as d}from"./consts-KAYct7Gj.js";import{A as t}from"./Avatar-
|
|
1
|
+
import{j as a}from"./jsx-runtime-BTJTZTIL.js";import{S as d}from"./consts-KAYct7Gj.js";import{A as t}from"./Avatar-DncQXX7G.js";import"./index-ChsGqxH_.js";import"./index-Cb9e4tly.js";import"./_commonjsHelpers-Cpj98o6Y.js";import"./filterHTMLAttributes-DYdLqcvH.js";import"./classNames-BUL1Zq7e.js";import"./componentNames-Bwls0I02.js";import"./index-DdzHuZ-Y.js";import"./constants--ewUoBsO.js";import"./defaults-B1rzzf6M.js";const y={title:"components/Avatar",component:t,argTypes:{size:{description:d}}},s=()=>a.jsxs("div",{style:{display:"flex",gap:"8px",alignItems:"end"},children:[a.jsx(t,{size:"160"}),a.jsx(t,{src:"./web-lib/src/components/Avatar/docs/static/avatar-1.png",size:"96"}),a.jsx(t,{src:"./web-lib/src/components/Avatar/docs/static/avatar-2.png",size:"64"}),a.jsx(t,{src:"./web-lib/src/components/Avatar/docs/static/avatar-3.png",size:"48"}),a.jsx(t,{src:"./web-lib/src/components/Avatar/docs/static/avatar-4.png",size:"32"}),a.jsx(t,{src:"./web-lib/src/components/Avatar/docs/static/avatar-5.png",size:"24"})]}),r={parameters:{chromatic:{disableSnapshot:!0}},args:{size:"32",src:"./web-lib/src/components/Avatar/docs/static/avatar-1.png",dataset:{qaid:"avatar"}},argTypes:{src:{control:"text"},dataset:{control:"object"},alt:{control:"text"},round:{table:{disable:!0}}}};var e,o,n;s.parameters={...s.parameters,docs:{...(e=s.parameters)==null?void 0:e.docs,source:{originalSource:`() => <div style={{
|
|
2
2
|
display: 'flex',
|
|
3
3
|
gap: '8px',
|
|
4
4
|
alignItems: 'end'
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
.AvatarWithStatus__z8Zik{display:inline-block;position:relative}.AvatarWithStatus--indicator__dsdXa{position:absolute;border-style:solid;border-radius:var(--0cf20e);border-width:var(--4a76d7);border-color:var(--e5a39b);background-color:var(--a95a51)}.AvatarWithStatus--online__pGAFw .AvatarWithStatus--indicator__dsdXa{background-color:var(--62b71e)}.AvatarWithStatus--size-2xs__fkqaK .AvatarWithStatus--indicator__dsdXa{width:var(--1cea5a);height:var(--1cea5a);right:var(--4b2086);bottom:var(--4b2086)}.AvatarWithStatus--size-xs__VzJXv .AvatarWithStatus--indicator__dsdXa{width:var(--540610);height:var(--540610);right:var(--20c0b1);bottom:var(--20c0b1)}.AvatarWithStatus--size-m__VkIzy .AvatarWithStatus--indicator__dsdXa{width:var(--8f1e94);height:var(--8f1e94);right:var(--705050);bottom:var(--705050)}.AvatarWithStatus--size-xl__h-Pv7 .AvatarWithStatus--indicator__dsdXa{width:var(--bdf712);height:var(--bdf712);right:var(--3b13f1);bottom:var(--3b13f1)}.AvatarWithStatus--size-64__vG-kB .AvatarWithStatus--indicator__dsdXa{width:var(--7d9a55);height:var(--7d9a55);right:var(--3e174a);bottom:var(--3e174a)}.AvatarWithStatus--size-96__Dgqc1 .AvatarWithStatus--indicator__dsdXa{width:var(--7d3ab7);height:var(--7d3ab7);right:var(--bd3f63);bottom:var(--bd3f63)}.AvatarWithStatus--size-160__7gCR7 .AvatarWithStatus--indicator__dsdXa{width:var(--523f7d);height:var(--523f7d);right:var(--23067e);bottom:var(--23067e)}
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import{j as a}from"./jsx-runtime-BTJTZTIL.js";import{r as j}from"./index-Cb9e4tly.js";import{f as q}from"./filterHTMLAttributes-DYdLqcvH.js";import{A as w}from"./Avatar-DncQXX7G.js";import{m as C,b as N,s as T,a as V}from"./classNames-BUL1Zq7e.js";import{w as r}from"./componentNames-Bwls0I02.js";import{g as D}from"./index-DdzHuZ-Y.js";import{A as R}from"./defaults-B1rzzf6M.js";import"./index-ChsGqxH_.js";import"./_commonjsHelpers-Cpj98o6Y.js";import"./constants--ewUoBsO.js";const E="AvatarWithStatus__z8Zik",n={AvatarWithStatus:E,"AvatarWithStatus--indicator":"AvatarWithStatus--indicator__dsdXa","AvatarWithStatus--online":"AvatarWithStatus--online__pGAFw","AvatarWithStatus--size-2xs":"AvatarWithStatus--size-2xs__fkqaK","AvatarWithStatus--size-xs":"AvatarWithStatus--size-xs__VzJXv","AvatarWithStatus--size-m":"AvatarWithStatus--size-m__VkIzy","AvatarWithStatus--size-xl":"AvatarWithStatus--size-xl__h-Pv7","AvatarWithStatus--size-64":"AvatarWithStatus--size-64__vG-kB","AvatarWithStatus--size-96":"AvatarWithStatus--size-96__Dgqc1","AvatarWithStatus--size-160":"AvatarWithStatus--size-160__7gCR7"},e=j.forwardRef(function({online:f=!1,size:i=R,dataset:A,alt:S,crossOrigin:x,src:_,...W},g){const y=C(n,r.AvatarWithStatus,[N("online",void 0,f),T("size",i)]),z=[...V(n,r.AvatarWithStatus,["indicator"])],b={...q(W),ref:g,className:y.join(" "),...D(A,{preplyDsComponent:r.AvatarWithStatus})};return a.jsxs("div",{...b,children:[a.jsx("span",{className:z.join(" ")}),a.jsx("div",{children:a.jsx(w,{alt:S,crossOrigin:x,src:_,size:i})})]})});try{e.displayName="AvatarWithStatus",e.__docgenInfo={description:"",displayName:"AvatarWithStatus",props:{dataset:{defaultValue:null,description:`Use this to set data attributes on the DOM element for the purpose of
|
|
2
|
+
e2e tests or integrating with external libraries.
|
|
3
|
+
@example <Avatar dataset={{ 'qa-id': 'user-avatar' }} /> // will add data-qa-id="user-avatar" to the HTML element`,name:"dataset",required:!1,type:{name:"enum",value:[{value:"Dataset"}]}},src:{defaultValue:null,description:`The avatar image URL.
|
|
4
|
+
If not provided, the default placeholder image is used instead.`,name:"src",required:!1,type:{name:"enum",value:[{value:"string"}]}},alt:{defaultValue:null,description:`A description of the image.
|
|
5
|
+
This is recommended for accessibility purposes, specifically for users
|
|
6
|
+
of screen readers.
|
|
7
|
+
@example <Avatar src={...} alt="Foobar's profile" />`,name:"alt",required:!1,type:{name:"enum",value:[{value:"string"}]}},crossOrigin:{defaultValue:null,description:"CORS policy for the image.",name:"crossOrigin",required:!1,type:{name:"enum",value:[{value:'""'},{value:'"anonymous"'},{value:'"use-credentials"'}]}},online:{defaultValue:{value:"false"},description:"Controls the status of the visual indicator.",name:"online",required:!1,type:{name:"enum",value:[{value:"false"},{value:"true"}]}},size:{defaultValue:{value:"xs"},description:"",name:"size",required:!1,type:{name:"enum",value:[{value:'"xs"'},{value:'"m"'},{value:'"xl"'},{value:'"2xs"'},{value:'"64"'},{value:'"96"'},{value:'"160"'}]}}}}}catch{}const Z={title:"components/AvatarWithStatus",component:e},t=()=>a.jsxs("div",{style:{display:"flex",gap:"8px"},children:[a.jsx(e,{size:"64",online:!0}),a.jsx(e,{size:"64",online:!1})]}),s={parameters:{chromatic:{disableSnapshot:!0}},args:{size:"64",src:"./web-lib/src/components/Avatar/docs/static/avatar-1.png",online:!1,dataset:{qaid:"avatar-with-status"}},argTypes:{src:{control:"text"},dataset:{control:"object"},alt:{control:"text"},online:{control:"boolean"}}};var o,l,u,c,d;t.parameters={...t.parameters,docs:{...(o=t.parameters)==null?void 0:o.docs,source:{originalSource:`() => <div style={{
|
|
8
|
+
display: 'flex',
|
|
9
|
+
gap: '8px'
|
|
10
|
+
}}>
|
|
11
|
+
<AvatarWithStatus size="64" online />
|
|
12
|
+
<AvatarWithStatus size="64" online={false} />
|
|
13
|
+
</div>`,...(u=(l=t.parameters)==null?void 0:l.docs)==null?void 0:u.source},description:{story:`This component augments [Avatar](/docs/components-avatar--docs) to add a
|
|
14
|
+
connection status indicator.`,...(d=(c=t.parameters)==null?void 0:c.docs)==null?void 0:d.description}}};var m,p,v;s.parameters={...s.parameters,docs:{...(m=s.parameters)==null?void 0:m.docs,source:{originalSource:`{
|
|
15
|
+
parameters: {
|
|
16
|
+
chromatic: {
|
|
17
|
+
disableSnapshot: true
|
|
18
|
+
}
|
|
19
|
+
},
|
|
20
|
+
args: {
|
|
21
|
+
size: '64',
|
|
22
|
+
src: './web-lib/src/components/Avatar/docs/static/avatar-1.png',
|
|
23
|
+
online: false,
|
|
24
|
+
dataset: {
|
|
25
|
+
qaid: 'avatar-with-status'
|
|
26
|
+
}
|
|
27
|
+
},
|
|
28
|
+
argTypes: {
|
|
29
|
+
src: {
|
|
30
|
+
control: 'text'
|
|
31
|
+
},
|
|
32
|
+
dataset: {
|
|
33
|
+
control: 'object'
|
|
34
|
+
},
|
|
35
|
+
alt: {
|
|
36
|
+
control: 'text'
|
|
37
|
+
},
|
|
38
|
+
online: {
|
|
39
|
+
control: 'boolean'
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
}`,...(v=(p=s.parameters)==null?void 0:p.docs)==null?void 0:v.source}}};const B=["Statuses","Playground"];export{s as Playground,t as Statuses,B as __namedExportsOrder,Z as default};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
.badge__ioy0w{display:inline-flex;align-items:center;gap:var(--590b8d);border-radius:var(--5e8be4);padding:var(--05dd73) var(--66b80b);width:fit-content;color:var(--628fb7)}.badge__ioy0w[data-size=small]{height:var(--76ac8f);font-size:var(--e3a55b);font-weight:var(--8cd94c);line-height:var(--732f40)}.badge__ioy0w[data-size=medium]{height:var(--f316e1);font-size:var(--fdb733);font-weight:var(--9643c1);line-height:var(--754361)}.badge__ioy0w[data-size=large]{height:var(--7789ee);padding:var(--590b8d) var(--813599);font-size:var(--475c79);font-weight:var(--a3f251);line-height:var(--e33d9e)}.badge__ioy0w[data-type=neutral]{background:var(--319b29)}.badge__ioy0w[data-type=positive]{background:var(--1836a4)}.badge__ioy0w[data-type=warning]{background:var(--b503b8)}.badge__ioy0w[data-type=info]{background:var(--94a45e)}.badge__ioy0w[data-type=critical]{background:var(--f15644)}.badge__ioy0w[data-accent=unset]{color:var(--c9575b);background-color:var(--8f1238)}.badge__ioy0w[data-accent=unset][data-inverted=true]{color:var(--55407f);background-color:var(--7c8c3c)}.badge__ioy0w[data-accent=accent]{color:var(--dede3f);background-color:var(--eba8f8)}.badge__ioy0w[data-accent=accent][data-inverted=true]{color:var(--732eb5);background-color:var(--54c075)}.badge__ioy0w[data-accent=info]{color:var(--f3be0c);background-color:var(--7a1a33)}.badge__ioy0w[data-accent=info][data-inverted=true]{color:var(--506df4);background-color:var(--fa3428)}.badge__ioy0w[data-accent=positive]{color:var(--2a2719);background-color:var(--694afa)}.badge__ioy0w[data-accent=positive][data-inverted=true]{color:var(--30c365);background-color:var(--47c404)}.badge__ioy0w[data-accent=warning]{color:var(--84e571);background-color:var(--02372a)}.badge__ioy0w[data-accent=warning][data-inverted=true]{color:var(--363237);background-color:var(--08fa29)}.badge__ioy0w[data-accent=critical]{color:var(--036159);background-color:var(--22f022)}.badge__ioy0w[data-accent=critical][data-inverted=true]{color:var(--90eeff);background-color:var(--cdb1f6)}.badge__ioy0w[data-accent=tertiary]{color:var(--d7e14c);background-color:var(--a453d7)}.badge__ioy0w[data-accent=tertiary][data-inverted=true]{color:var(--ab5158);background-color:var(--50e919)}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import{j as e}from"./jsx-runtime-BTJTZTIL.js";import{F as l}from"./TokyoUITag-CS4uarg6.js";import{L as T}from"./LayoutFlex-
|
|
1
|
+
import{j as e}from"./jsx-runtime-BTJTZTIL.js";import{F as l}from"./TokyoUITag-CS4uarg6.js";import{L as T}from"./LayoutFlex-5ZDeW2G6.js";import{r as N}from"./index-Cb9e4tly.js";import{f as q}from"./filterHTMLAttributes-DYdLqcvH.js";import{I as C}from"./Icon-Wpz7-Jvg.js";import{g as L}from"./index-DdzHuZ-Y.js";import{w as U}from"./componentNames-Bwls0I02.js";import"./index-ChsGqxH_.js";import"./layout-relative.module-ed9bC4H4.js";import"./classNames-BUL1Zq7e.js";import"./defaults-B1rzzf6M.js";import"./_commonjsHelpers-Cpj98o6Y.js";import"./text-accent-DZDDtpIt.js";import"./render-icon-BT0Aq7PA.js";const k="badge__ioy0w",F={badge:k},E=n=>{switch(n){case"xs":return"small";case"s":return"medium";case"m":return"large";default:return n}},a=N.forwardRef(function({type:o="neutral",size:d="medium",leadingSvgIcon:c,dataset:S,children:j,accent:u,inverted:m,...z},V){const p=E(d),t={...S,size:p};u===void 0&&m===void 0?t.type=o:(t.accent=u||"unset",t.inverted=!!m);const _={...q(z),ref:V,className:F.badge,...L(t,{preplyDsComponent:U.Badge})},w=o==="neutral"?"primary":o;return e.jsxs("span",{..._,children:[!!c&&p!=="small"&&e.jsx(C,{accent:w,size:d==="large"?"24":"16",svg:c}),j]})});try{a.displayName="Badge",a.__docgenInfo={description:"",displayName:"Badge",props:{type:{defaultValue:{value:"neutral"},description:"The type of the badge.",name:"type",required:!1,type:{name:"enum",value:[{value:'"critical"'},{value:'"positive"'},{value:'"info"'},{value:'"warning"'},{value:'"neutral"'}]}},size:{defaultValue:{value:"medium"},description:"The size of the badge.",name:"size",required:!1,type:{name:"enum",value:[{value:'"xs"'},{value:'"s"'},{value:'"m"'},{value:'"large"'},{value:'"medium"'},{value:'"small"'}]}},leadingSvgIcon:{defaultValue:null,description:`The leading SVG icon. Only displayed in \`medium\` and \`large\` sizes.
|
|
2
2
|
@example import TokyoUITag from '@preply/ds-media-icons/dist/24/TokyoUITag.svg';
|
|
3
3
|
|
|
4
4
|
<Badge leadingSvgIcon={TokyoUITag}>Badge</Badge>
|
|
5
5
|
or
|
|
6
|
-
<Badge leadingSvgIcon={<TokyoUITag />}>Badge</Badge>`,name:"leadingSvgIcon",required:!1,type:{name:"enum",value:[{value:"ComponentClass<SVGAttributes<SVGElement>, any>"},{value:"FunctionComponent<SVGAttributes<SVGElement>>"},{value:"ReactElement<any, string | JSXElementConstructor<any>>"}]}},dataset:{defaultValue:null,description:"",name:"dataset",required:!1,type:{name:"enum",value:[{value:"Dataset"}]}},assistiveText:{defaultValue:null,description:"@deprecated badge children should have all necessary information",name:"assistiveText",required:!1,type:{name:"enum",value:[{value:"string"}]}},accent:{defaultValue:null,description:"@deprecated Use `type` instead.",name:"accent",required:!1,type:{name:"enum",value:[{value:'"tertiary"'},{value:'"critical"'},{value:'"
|
|
6
|
+
<Badge leadingSvgIcon={<TokyoUITag />}>Badge</Badge>`,name:"leadingSvgIcon",required:!1,type:{name:"enum",value:[{value:"ComponentClass<SVGAttributes<SVGElement>, any>"},{value:"FunctionComponent<SVGAttributes<SVGElement>>"},{value:"ReactElement<any, string | JSXElementConstructor<any>>"}]}},dataset:{defaultValue:null,description:"",name:"dataset",required:!1,type:{name:"enum",value:[{value:"Dataset"}]}},assistiveText:{defaultValue:null,description:"@deprecated badge children should have all necessary information",name:"assistiveText",required:!1,type:{name:"enum",value:[{value:"string"}]}},accent:{defaultValue:null,description:"@deprecated Use `type` instead.",name:"accent",required:!1,type:{name:"enum",value:[{value:'"tertiary"'},{value:'"critical"'},{value:'"accent"'},{value:'"positive"'},{value:'"info"'},{value:'"warning"'}]}},inverted:{defaultValue:null,description:"@deprecated inverted badge is deprecated & will be removed in the future releases",name:"inverted",required:!1,type:{name:"enum",value:[{value:"false"},{value:"true"}]}}}}}catch{}const $={title:"components/Badge",component:a},r=()=>e.jsxs(T,{gap:"16",children:[e.jsx(a,{type:"neutral",children:"Neutral"}),e.jsx(a,{type:"positive",children:"Positive"}),e.jsx(a,{type:"info",children:"Info"}),e.jsx(a,{type:"warning",children:"Warning"}),e.jsx(a,{type:"critical",children:"Critical"})]}),s=()=>e.jsxs(T,{gap:"16",alignItems:"center",children:[e.jsx(a,{size:"small",leadingSvgIcon:l,children:"Small"}),e.jsx(a,{size:"medium",leadingSvgIcon:l,children:"Medium"}),e.jsx(a,{size:"large",leadingSvgIcon:l,children:"Large"})]}),i={parameters:{chromatic:{disableSnapshot:!0}},args:{type:"neutral",size:"medium",children:"Badge",dataset:{qaid:"badge"}},argTypes:{dataset:{control:"object"},leadingSvgIcon:{options:["None","With Icon"],mapping:{None:void 0,"With Icon":l},control:"select"},assistiveText:{table:{disable:!0}},accent:{table:{disable:!0}},inverted:{table:{disable:!0}}}};var g,v,y;r.parameters={...r.parameters,docs:{...(g=r.parameters)==null?void 0:g.docs,source:{originalSource:`() => <LayoutFlex gap="16">
|
|
7
7
|
<Badge type="neutral">Neutral</Badge>
|
|
8
8
|
<Badge type="positive">Positive</Badge>
|
|
9
9
|
<Badge type="info">Info</Badge>
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
.Box__T6Fyt{margin:0;list-style:none;font-weight:inherit;border:none;text-align:inherit;border-spacing:0;color:var(--aface6);background-color:var(--786b9e);box-shadow:var(--a814c9);flex:1}.Box--box-radius-none__pVdTk{border-radius:var(--84e079)}.Box--box-radius-m__alXKt{border-radius:var(--1c37d5)}.Box--box-radius-l__ZQypL{border-radius:var(--9e57e5)}.Box--box-radius-0__FWPBJ{border-radius:var(--adc668)}.Box--box-radius-2__IXJHQ{border-radius:var(--9817c7)}.Box--box-radius-4__aoSlX{border-radius:var(--7dcb5e)}.Box--box-radius-8__-BuzF{border-radius:var(--2071ea)}.Box--box-radius-12__6r0bn{border-radius:var(--c1925d)}.Box--box-radius-16__n3666{border-radius:var(--f3f949)}.Box--box-radius-24__pxV3O{border-radius:var(--67250f)}.Box--box-radius-32__2zn-K{border-radius:var(--fba602)}.Box--box-radius-48__t8Iiq{border-radius:var(--f8b939)}.Box--box-radius-64__-zOC7{border-radius:var(--4d9939)}.Box--box-radius-96__ayuP-{border-radius:var(--a78cb4)}.Box--box-radius-160__39X1p{border-radius:var(--439947)}@media (min-width: 400px){.Box--narrow-l--box-radius-none__U1KRd{border-radius:var(--84e079)}.Box--narrow-l--box-radius-m__EAz9A{border-radius:var(--1c37d5)}.Box--narrow-l--box-radius-l__GEnkZ{border-radius:var(--9e57e5)}.Box--narrow-l--box-radius-0__rbA8v{border-radius:var(--adc668)}.Box--narrow-l--box-radius-2__Cn0nB{border-radius:var(--9817c7)}.Box--narrow-l--box-radius-4__dXX4d{border-radius:var(--7dcb5e)}.Box--narrow-l--box-radius-8__c2qTs{border-radius:var(--2071ea)}.Box--narrow-l--box-radius-12__-FrWF{border-radius:var(--c1925d)}.Box--narrow-l--box-radius-16__7yiZ2{border-radius:var(--f3f949)}.Box--narrow-l--box-radius-24__pgg5J{border-radius:var(--67250f)}.Box--narrow-l--box-radius-32__ME019{border-radius:var(--fba602)}.Box--narrow-l--box-radius-48__oIpGl{border-radius:var(--f8b939)}.Box--narrow-l--box-radius-64__i4ASw{border-radius:var(--4d9939)}.Box--narrow-l--box-radius-96__-5TfN{border-radius:var(--a78cb4)}.Box--narrow-l--box-radius-160__JVHdy{border-radius:var(--439947)}}@media (min-width: 700px){.Box--medium-s--box-radius-none__NI3b5{border-radius:var(--84e079)}.Box--medium-s--box-radius-m__98FY-{border-radius:var(--1c37d5)}.Box--medium-s--box-radius-l__RsLEh{border-radius:var(--9e57e5)}.Box--medium-s--box-radius-0__6dX4D{border-radius:var(--adc668)}.Box--medium-s--box-radius-2__h-yhf{border-radius:var(--9817c7)}.Box--medium-s--box-radius-4__YmbvG{border-radius:var(--7dcb5e)}.Box--medium-s--box-radius-8__NOIeK{border-radius:var(--2071ea)}.Box--medium-s--box-radius-12__Gp9Nl{border-radius:var(--c1925d)}.Box--medium-s--box-radius-16__Q-4Io{border-radius:var(--f3f949)}.Box--medium-s--box-radius-24__FASgo{border-radius:var(--67250f)}.Box--medium-s--box-radius-32__WCrhN{border-radius:var(--fba602)}.Box--medium-s--box-radius-48__Cniaw{border-radius:var(--f8b939)}.Box--medium-s--box-radius-64__PnAQM{border-radius:var(--4d9939)}.Box--medium-s--box-radius-96__sGJpJ{border-radius:var(--a78cb4)}.Box--medium-s--box-radius-160__MURfX{border-radius:var(--439947)}}@media (min-width: 880px){.Box--medium-l--box-radius-none__9i2B6{border-radius:var(--84e079)}.Box--medium-l--box-radius-m__-N-kx{border-radius:var(--1c37d5)}.Box--medium-l--box-radius-l__mNNXv{border-radius:var(--9e57e5)}.Box--medium-l--box-radius-0__-HCNC{border-radius:var(--adc668)}.Box--medium-l--box-radius-2__cWx-n{border-radius:var(--9817c7)}.Box--medium-l--box-radius-4__ibcr4{border-radius:var(--7dcb5e)}.Box--medium-l--box-radius-8__zm-dC{border-radius:var(--2071ea)}.Box--medium-l--box-radius-12__DdmSM{border-radius:var(--c1925d)}.Box--medium-l--box-radius-16__o3E1Q{border-radius:var(--f3f949)}.Box--medium-l--box-radius-24__u-rLd{border-radius:var(--67250f)}.Box--medium-l--box-radius-32__wMKBz{border-radius:var(--fba602)}.Box--medium-l--box-radius-48__mMLoI{border-radius:var(--f8b939)}.Box--medium-l--box-radius-64__OuZ5D{border-radius:var(--4d9939)}.Box--medium-l--box-radius-96__6lzaZ{border-radius:var(--a78cb4)}.Box--medium-l--box-radius-160__bTscq{border-radius:var(--439947)}}@media (min-width: 1200px){.Box--wide-s--box-radius-none__eNUX-{border-radius:var(--84e079)}.Box--wide-s--box-radius-m__T0UnR{border-radius:var(--1c37d5)}.Box--wide-s--box-radius-l__kE31q{border-radius:var(--9e57e5)}.Box--wide-s--box-radius-0__H9zOa{border-radius:var(--adc668)}.Box--wide-s--box-radius-2__FnsdM{border-radius:var(--9817c7)}.Box--wide-s--box-radius-4__G4jL0{border-radius:var(--7dcb5e)}.Box--wide-s--box-radius-8__7Mz6S{border-radius:var(--2071ea)}.Box--wide-s--box-radius-12__G2Ain{border-radius:var(--c1925d)}.Box--wide-s--box-radius-16__or-lk{border-radius:var(--f3f949)}.Box--wide-s--box-radius-24__xyysq{border-radius:var(--67250f)}.Box--wide-s--box-radius-32__a8VMC{border-radius:var(--fba602)}.Box--wide-s--box-radius-48__lD512{border-radius:var(--f8b939)}.Box--wide-s--box-radius-64__SPNmy{border-radius:var(--4d9939)}.Box--wide-s--box-radius-96__7Awl2{border-radius:var(--a78cb4)}.Box--wide-s--box-radius-160__sBOke{border-radius:var(--439947)}}@media (min-width: 1900px){.Box--wide-l--box-radius-none__YpNNw{border-radius:var(--84e079)}.Box--wide-l--box-radius-m__i6UjO{border-radius:var(--1c37d5)}.Box--wide-l--box-radius-l__NkLU0{border-radius:var(--9e57e5)}.Box--wide-l--box-radius-0__HQ2Tn{border-radius:var(--adc668)}.Box--wide-l--box-radius-2__GYO54{border-radius:var(--9817c7)}.Box--wide-l--box-radius-4__267az{border-radius:var(--7dcb5e)}.Box--wide-l--box-radius-8__1hPOR{border-radius:var(--2071ea)}.Box--wide-l--box-radius-12__yXlB2{border-radius:var(--c1925d)}.Box--wide-l--box-radius-16__gp8Ov{border-radius:var(--f3f949)}.Box--wide-l--box-radius-24__n4VQK{border-radius:var(--67250f)}.Box--wide-l--box-radius-32__E-AbQ{border-radius:var(--fba602)}.Box--wide-l--box-radius-48__hUdT6{border-radius:var(--f8b939)}.Box--wide-l--box-radius-64__mLXRM{border-radius:var(--4d9939)}.Box--wide-l--box-radius-96__gMyZj{border-radius:var(--a78cb4)}.Box--wide-l--box-radius-160__dfjUF{border-radius:var(--439947)}}.Box--background-white__8bLtb{background-color:var(--145676)}.Box--background-gray-100__caCCW{background-color:var(--55407f)}.Box--background-gray-200__lxnJm{background-color:var(--8f1238)}.Box--background-gray-300__qfANs{background-color:var(--da403c)}.Box--background-gray-400__Ol1x4{background-color:var(--7c8c3c)}.Box--background-gray-500__x0PFz{background-color:var(--c9575b)}.Box--background-gray-600__uB-Hh{background-color:var(--2fb6f7)}.Box--background-teal-100__8CUoI{background-color:var(--54ed1d)}.Box--background-teal-200__7picz{background-color:var(--b706bf)}.Box--background-teal-300__T3rQI{background-color:var(--4adefb)}.Box--background-teal-400__0B0--{background-color:var(--de8a40)}.Box--background-teal-500__MdenY{background-color:var(--574543)}.Box--background-green-100__HeHgn{background-color:var(--1383a7)}.Box--background-green-200__1N2wh{background-color:var(--9f1066)}.Box--background-green-300__z8ERR{background-color:var(--d4cf94)}.Box--background-green-400__-5sHz{background-color:var(--bbfa9f)}.Box--background-green-500__CtoHU{background-color:var(--5f8b30)}.Box--background-yellow-100__nuCTl{background-color:var(--c7d8be)}.Box--background-yellow-200__Gp-pF{background-color:var(--17bab8)}.Box--background-yellow-300__yjWLN{background-color:var(--f017e5)}.Box--background-yellow-400__1GTS5{background-color:var(--2242ed)}.Box--background-yellow-500__ihqqf{background-color:var(--e40de4)}.Box--background-red-100__mwv7-{background-color:var(--ecb5d5)}.Box--background-red-200__RIRGM{background-color:var(--5b5cb0)}.Box--background-red-300__HbjJU{background-color:var(--d55c71)}.Box--background-red-400__ptrch{background-color:var(--4e47fe)}.Box--background-red-500__YwJPK{background-color:var(--3e7877)}.Box--background-blue-100__vxcI9{background-color:var(--21906f)}.Box--background-blue-200__In8OS{background-color:var(--5d87f3)}.Box--background-blue-300__2mLHS{background-color:var(--201e14)}.Box--background-blue-400__g45Ks{background-color:var(--e1c27c)}.Box--background-blue-500__KXigt{background-color:var(--6a1420)}.Box--background-magenta-100__mgiT2{background-color:var(--1a9963)}.Box--background-magenta-200__NzaeL{background-color:var(--b774df)}.Box--background-magenta-300__lCSib{background-color:var(--f72cdd)}.Box--background-magenta-400__b9jnn{background-color:var(--6cbd80)}.Box--background-magenta-500__8-Hxx{background-color:var(--5893e7)}.Box--background-primary__00zVu{background-color:var(--3546c3)}.Box--background-secondary__hY7w0{background-color:var(--302ecf)}.Box--background-tertiary__cIPge{background-color:var(--a5c761)}.Box--background-overlay__vbs8V{background-color:var(--02a0d5)}.Box--background-disabled__81WYT{background-color:var(--319b29)}.Box--background-brand__2W0VB{background-color:var(--cd91ab)}.Box--background-brandB2b__KQrLm{background-color:var(--706789)}.Box--background-accentLight__x6RrQ{background-color:var(--560eda)}.Box--background-accentDark__agpDd{background-color:var(--e4c520)}.Box--background-positiveLight__67dRq{background-color:var(--1836a4)}.Box--background-positiveDark__lYghV{background-color:var(--ae7f1f)}.Box--background-infoLight__u-TX4{background-color:var(--94a45e)}.Box--background-infoDark__ud4qs{background-color:var(--79dffb)}.Box--background-warningLight__JtSuS{background-color:var(--b503b8)}.Box--background-warningDark__SIgOQ{background-color:var(--34fc43)}.Box--background-criticalLight__uPTDs{background-color:var(--f15644)}.Box--background-criticalDark__12Zft{background-color:var(--87fcf8)}.Box--background-statusOnline__5PZcQ{background-color:var(--cbc115)}.Box--background-statusOffline__Vh0CO{background-color:var(--7ff085)}.Box--background-primaryInverted__TePy2{background-color:var(--4983fe)}.Box--background-secondaryInverted__tMytW{background-color:var(--19649f)}.Box--background-tertiaryInverted__K2wU5{background-color:var(--a469f2)}
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
import{j as o}from"./jsx-runtime-BTJTZTIL.js";import{H as b}from"./Heading-Bj7LLgoH.js";import{L as B}from"./LayoutFlex-5ZDeW2G6.js";import{T as _}from"./Text-BXZIkJPK.js";import{r as D}from"./index-Cb9e4tly.js";import{f as N}from"./filterHTMLAttributes-DYdLqcvH.js";import{g as O}from"./layout-relative.module-ed9bC4H4.js";import{m as H,s as u}from"./classNames-BUL1Zq7e.js";import{w as d}from"./componentNames-Bwls0I02.js";import{g as A}from"./index-DdzHuZ-Y.js";import{L as I,c as q,d as R}from"./defaults-B1rzzf6M.js";import{a as C,S as E}from"./consts-KAYct7Gj.js";import"./index-ChsGqxH_.js";import"./text-accent-DZDDtpIt.js";import"./text-centered-CznToR0o.js";import"./_commonjsHelpers-Cpj98o6Y.js";const U="Box__T6Fyt",j={Box:U,"Box--box-radius-none":"Box--box-radius-none__pVdTk","Box--box-radius-m":"Box--box-radius-m__alXKt","Box--box-radius-l":"Box--box-radius-l__ZQypL","Box--box-radius-2":"Box--box-radius-2__IXJHQ","Box--box-radius-4":"Box--box-radius-4__aoSlX","Box--box-radius-8":"Box--box-radius-8__-BuzF","Box--box-radius-0":"Box--box-radius-0__FWPBJ","Box--box-radius-12":"Box--box-radius-12__6r0bn","Box--box-radius-16":"Box--box-radius-16__n3666","Box--box-radius-24":"Box--box-radius-24__pxV3O","Box--box-radius-32":"Box--box-radius-32__2zn-K","Box--box-radius-48":"Box--box-radius-48__t8Iiq","Box--box-radius-64":"Box--box-radius-64__-zOC7","Box--box-radius-96":"Box--box-radius-96__ayuP-","Box--box-radius-160":"Box--box-radius-160__39X1p","Box--narrow-l--box-radius-none":"Box--narrow-l--box-radius-none__U1KRd","Box--narrow-l--box-radius-m":"Box--narrow-l--box-radius-m__EAz9A","Box--narrow-l--box-radius-l":"Box--narrow-l--box-radius-l__GEnkZ","Box--narrow-l--box-radius-2":"Box--narrow-l--box-radius-2__Cn0nB","Box--narrow-l--box-radius-4":"Box--narrow-l--box-radius-4__dXX4d","Box--narrow-l--box-radius-8":"Box--narrow-l--box-radius-8__c2qTs","Box--narrow-l--box-radius-0":"Box--narrow-l--box-radius-0__rbA8v","Box--narrow-l--box-radius-12":"Box--narrow-l--box-radius-12__-FrWF","Box--narrow-l--box-radius-16":"Box--narrow-l--box-radius-16__7yiZ2","Box--narrow-l--box-radius-24":"Box--narrow-l--box-radius-24__pgg5J","Box--narrow-l--box-radius-32":"Box--narrow-l--box-radius-32__ME019","Box--narrow-l--box-radius-48":"Box--narrow-l--box-radius-48__oIpGl","Box--narrow-l--box-radius-64":"Box--narrow-l--box-radius-64__i4ASw","Box--narrow-l--box-radius-96":"Box--narrow-l--box-radius-96__-5TfN","Box--narrow-l--box-radius-160":"Box--narrow-l--box-radius-160__JVHdy","Box--medium-s--box-radius-none":"Box--medium-s--box-radius-none__NI3b5","Box--medium-s--box-radius-m":"Box--medium-s--box-radius-m__98FY-","Box--medium-s--box-radius-l":"Box--medium-s--box-radius-l__RsLEh","Box--medium-s--box-radius-2":"Box--medium-s--box-radius-2__h-yhf","Box--medium-s--box-radius-4":"Box--medium-s--box-radius-4__YmbvG","Box--medium-s--box-radius-8":"Box--medium-s--box-radius-8__NOIeK","Box--medium-s--box-radius-0":"Box--medium-s--box-radius-0__6dX4D","Box--medium-s--box-radius-12":"Box--medium-s--box-radius-12__Gp9Nl","Box--medium-s--box-radius-16":"Box--medium-s--box-radius-16__Q-4Io","Box--medium-s--box-radius-24":"Box--medium-s--box-radius-24__FASgo","Box--medium-s--box-radius-32":"Box--medium-s--box-radius-32__WCrhN","Box--medium-s--box-radius-48":"Box--medium-s--box-radius-48__Cniaw","Box--medium-s--box-radius-64":"Box--medium-s--box-radius-64__PnAQM","Box--medium-s--box-radius-96":"Box--medium-s--box-radius-96__sGJpJ","Box--medium-s--box-radius-160":"Box--medium-s--box-radius-160__MURfX","Box--medium-l--box-radius-none":"Box--medium-l--box-radius-none__9i2B6","Box--medium-l--box-radius-m":"Box--medium-l--box-radius-m__-N-kx","Box--medium-l--box-radius-l":"Box--medium-l--box-radius-l__mNNXv","Box--medium-l--box-radius-2":"Box--medium-l--box-radius-2__cWx-n","Box--medium-l--box-radius-4":"Box--medium-l--box-radius-4__ibcr4","Box--medium-l--box-radius-8":"Box--medium-l--box-radius-8__zm-dC","Box--medium-l--box-radius-0":"Box--medium-l--box-radius-0__-HCNC","Box--medium-l--box-radius-12":"Box--medium-l--box-radius-12__DdmSM","Box--medium-l--box-radius-16":"Box--medium-l--box-radius-16__o3E1Q","Box--medium-l--box-radius-24":"Box--medium-l--box-radius-24__u-rLd","Box--medium-l--box-radius-32":"Box--medium-l--box-radius-32__wMKBz","Box--medium-l--box-radius-48":"Box--medium-l--box-radius-48__mMLoI","Box--medium-l--box-radius-64":"Box--medium-l--box-radius-64__OuZ5D","Box--medium-l--box-radius-96":"Box--medium-l--box-radius-96__6lzaZ","Box--medium-l--box-radius-160":"Box--medium-l--box-radius-160__bTscq","Box--wide-s--box-radius-none":"Box--wide-s--box-radius-none__eNUX-","Box--wide-s--box-radius-m":"Box--wide-s--box-radius-m__T0UnR","Box--wide-s--box-radius-l":"Box--wide-s--box-radius-l__kE31q","Box--wide-s--box-radius-2":"Box--wide-s--box-radius-2__FnsdM","Box--wide-s--box-radius-4":"Box--wide-s--box-radius-4__G4jL0","Box--wide-s--box-radius-8":"Box--wide-s--box-radius-8__7Mz6S","Box--wide-s--box-radius-0":"Box--wide-s--box-radius-0__H9zOa","Box--wide-s--box-radius-12":"Box--wide-s--box-radius-12__G2Ain","Box--wide-s--box-radius-16":"Box--wide-s--box-radius-16__or-lk","Box--wide-s--box-radius-24":"Box--wide-s--box-radius-24__xyysq","Box--wide-s--box-radius-32":"Box--wide-s--box-radius-32__a8VMC","Box--wide-s--box-radius-48":"Box--wide-s--box-radius-48__lD512","Box--wide-s--box-radius-64":"Box--wide-s--box-radius-64__SPNmy","Box--wide-s--box-radius-96":"Box--wide-s--box-radius-96__7Awl2","Box--wide-s--box-radius-160":"Box--wide-s--box-radius-160__sBOke","Box--wide-l--box-radius-none":"Box--wide-l--box-radius-none__YpNNw","Box--wide-l--box-radius-m":"Box--wide-l--box-radius-m__i6UjO","Box--wide-l--box-radius-l":"Box--wide-l--box-radius-l__NkLU0","Box--wide-l--box-radius-2":"Box--wide-l--box-radius-2__GYO54","Box--wide-l--box-radius-4":"Box--wide-l--box-radius-4__267az","Box--wide-l--box-radius-8":"Box--wide-l--box-radius-8__1hPOR","Box--wide-l--box-radius-0":"Box--wide-l--box-radius-0__HQ2Tn","Box--wide-l--box-radius-12":"Box--wide-l--box-radius-12__yXlB2","Box--wide-l--box-radius-16":"Box--wide-l--box-radius-16__gp8Ov","Box--wide-l--box-radius-24":"Box--wide-l--box-radius-24__n4VQK","Box--wide-l--box-radius-32":"Box--wide-l--box-radius-32__E-AbQ","Box--wide-l--box-radius-48":"Box--wide-l--box-radius-48__hUdT6","Box--wide-l--box-radius-64":"Box--wide-l--box-radius-64__mLXRM","Box--wide-l--box-radius-96":"Box--wide-l--box-radius-96__gMyZj","Box--wide-l--box-radius-160":"Box--wide-l--box-radius-160__dfjUF","Box--background-white":"Box--background-white__8bLtb","Box--background-gray-100":"Box--background-gray-100__caCCW","Box--background-gray-200":"Box--background-gray-200__lxnJm","Box--background-gray-300":"Box--background-gray-300__qfANs","Box--background-gray-400":"Box--background-gray-400__Ol1x4","Box--background-gray-500":"Box--background-gray-500__x0PFz","Box--background-gray-600":"Box--background-gray-600__uB-Hh","Box--background-teal-100":"Box--background-teal-100__8CUoI","Box--background-teal-200":"Box--background-teal-200__7picz","Box--background-teal-300":"Box--background-teal-300__T3rQI","Box--background-teal-400":"Box--background-teal-400__0B0--","Box--background-teal-500":"Box--background-teal-500__MdenY","Box--background-green-100":"Box--background-green-100__HeHgn","Box--background-green-200":"Box--background-green-200__1N2wh","Box--background-green-300":"Box--background-green-300__z8ERR","Box--background-green-400":"Box--background-green-400__-5sHz","Box--background-green-500":"Box--background-green-500__CtoHU","Box--background-yellow-100":"Box--background-yellow-100__nuCTl","Box--background-yellow-200":"Box--background-yellow-200__Gp-pF","Box--background-yellow-300":"Box--background-yellow-300__yjWLN","Box--background-yellow-400":"Box--background-yellow-400__1GTS5","Box--background-yellow-500":"Box--background-yellow-500__ihqqf","Box--background-red-100":"Box--background-red-100__mwv7-","Box--background-red-200":"Box--background-red-200__RIRGM","Box--background-red-300":"Box--background-red-300__HbjJU","Box--background-red-400":"Box--background-red-400__ptrch","Box--background-red-500":"Box--background-red-500__YwJPK","Box--background-blue-100":"Box--background-blue-100__vxcI9","Box--background-blue-200":"Box--background-blue-200__In8OS","Box--background-blue-300":"Box--background-blue-300__2mLHS","Box--background-blue-400":"Box--background-blue-400__g45Ks","Box--background-blue-500":"Box--background-blue-500__KXigt","Box--background-magenta-100":"Box--background-magenta-100__mgiT2","Box--background-magenta-200":"Box--background-magenta-200__NzaeL","Box--background-magenta-300":"Box--background-magenta-300__lCSib","Box--background-magenta-400":"Box--background-magenta-400__b9jnn","Box--background-magenta-500":"Box--background-magenta-500__8-Hxx","Box--background-primary":"Box--background-primary__00zVu","Box--background-secondary":"Box--background-secondary__hY7w0","Box--background-tertiary":"Box--background-tertiary__cIPge","Box--background-overlay":"Box--background-overlay__vbs8V","Box--background-disabled":"Box--background-disabled__81WYT","Box--background-brand":"Box--background-brand__2W0VB","Box--background-brandB2b":"Box--background-brandB2b__KQrLm","Box--background-accentLight":"Box--background-accentLight__x6RrQ","Box--background-accentDark":"Box--background-accentDark__agpDd","Box--background-positiveLight":"Box--background-positiveLight__67dRq","Box--background-positiveDark":"Box--background-positiveDark__lYghV","Box--background-infoLight":"Box--background-infoLight__u-TX4","Box--background-infoDark":"Box--background-infoDark__ud4qs","Box--background-warningLight":"Box--background-warningLight__JtSuS","Box--background-warningDark":"Box--background-warningDark__SIgOQ","Box--background-criticalLight":"Box--background-criticalLight__uPTDs","Box--background-criticalDark":"Box--background-criticalDark__12Zft","Box--background-statusOnline":"Box--background-statusOnline__5PZcQ","Box--background-statusOffline":"Box--background-statusOffline__Vh0CO","Box--background-primaryInverted":"Box--background-primaryInverted__TePy2","Box--background-secondaryInverted":"Box--background-secondaryInverted__tMytW","Box--background-tertiaryInverted":"Box--background-tertiaryInverted__K2wU5"},r=D.forwardRef(function({children:m,background:g,radius:v=q,padding:p=R,tag:k,dataset:w,...y},f){const h=H(j,d.Box,[u("box-radius",v),u("background",g)]),L=O(p),S=k??I,T=[...h,...L],P={...N(y),ref:f,className:T.join(" "),...A(w,{preplyDsComponent:d.Box})};return o.jsx(S,{...P,children:m})});try{r.displayName="Box",r.__docgenInfo={description:"A styleable container.\n\nUse this with `Layout*` components to create complex content containers.",displayName:"Box",props:{background:{defaultValue:null,description:"",name:"background",required:!1,type:{name:"enum",value:[{value:'"primary"'},{value:'"secondary"'},{value:'"tertiary"'},{value:'"disabled"'},{value:'"accentDark"'},{value:'"yellow-100"'},{value:'"yellow-200"'},{value:'"yellow-300"'},{value:'"yellow-400"'},{value:'"yellow-500"'},{value:'"blue-100"'},{value:'"blue-200"'},{value:'"blue-300"'},{value:'"blue-400"'},{value:'"blue-500"'},{value:'"teal-100"'},{value:'"teal-200"'},{value:'"teal-300"'},{value:'"teal-400"'},{value:'"teal-500"'},{value:'"red-100"'},{value:'"red-200"'},{value:'"red-300"'},{value:'"red-400"'},{value:'"red-500"'},{value:'"white"'},{value:'"gray-100"'},{value:'"gray-200"'},{value:'"gray-300"'},{value:'"gray-400"'},{value:'"gray-500"'},{value:'"gray-600"'},{value:'"green-100"'},{value:'"green-200"'},{value:'"green-300"'},{value:'"green-400"'},{value:'"green-500"'},{value:'"magenta-100"'},{value:'"magenta-200"'},{value:'"magenta-300"'},{value:'"magenta-400"'},{value:'"magenta-500"'},{value:'"overlay"'},{value:'"brand"'},{value:'"brandB2b"'},{value:'"accentLight"'},{value:'"positiveLight"'},{value:'"positiveDark"'},{value:'"infoLight"'},{value:'"infoDark"'},{value:'"warningLight"'},{value:'"warningDark"'},{value:'"criticalLight"'},{value:'"criticalDark"'},{value:'"statusOnline"'},{value:'"statusOffline"'},{value:'"primaryInverted"'},{value:'"secondaryInverted"'},{value:'"tertiaryInverted"'}]}},radius:{defaultValue:{value:"m"},description:"",name:"radius",required:!1,type:{name:"enum",value:[{value:'"m"'},{value:'"l"'},{value:'"16"'},{value:'"24"'},{value:'"32"'},{value:'"48"'},{value:'"64"'},{value:'"96"'},{value:'"160"'},{value:'"none"'},{value:'"0"'},{value:'"2"'},{value:'"4"'},{value:'"8"'},{value:'"12"'},{value:"ResponsiveProp<BoxRadius>"}]}},tag:{defaultValue:null,description:"",name:"tag",required:!1,type:{name:"enum",value:[{value:'"p"'},{value:'"div"'},{value:'"span"'},{value:'"main"'},{value:'"header"'},{value:'"footer"'},{value:'"article"'},{value:'"section"'},{value:'"ul"'},{value:'"ol"'},{value:'"li"'},{value:'"fieldset"'},{value:'"table"'},{value:'"th"'},{value:'"tr"'},{value:'"td"'},{value:'"thead"'},{value:'"tfoot"'},{value:'"tbody"'},{value:'"caption"'},{value:'"figure"'},{value:'"figcaption"'}]}},padding:{defaultValue:{value:"s"},description:"",name:"padding",required:!1,type:{name:"enum",value:[{value:'"xs"'},{value:'"s"'},{value:'"m"'},{value:'"l"'},{value:'"xl"'},{value:'"2xs"'},{value:'"16"'},{value:'"24"'},{value:'"32"'},{value:'"48"'},{value:'"64"'},{value:'"96"'},{value:'"160"'},{value:'"none"'},{value:'"3xs"'},{value:'"0"'},{value:'"1"'},{value:'"2"'},{value:'"4"'},{value:'"8"'},{value:'"12"'},{value:'"20"'},{value:"[Spacing, Spacing]"},{value:"[Spacing, Spacing, Spacing]"},{value:"[Spacing, Spacing, Spacing, Spacing]"},{value:"[BoxPadding, BoxPadding]"},{value:"[BoxPadding, BoxPadding, BoxPadding]"},{value:"[BoxPadding, BoxPadding, BoxPadding, BoxPadding]"},{value:"ResponsiveProp<ShortHand<Spacing> | ShortHand<BoxPadding>>"}]}},dataset:{defaultValue:null,description:"",name:"dataset",required:!1,type:{name:"enum",value:[{value:"Dataset"}]}},ref:{defaultValue:null,description:"Allows getting a ref to the component instance.\nOnce the component unmounts, React will set `ref.current` to `null`\n(or call the ref with `null` if you passed a callback ref).\n@see {@link https://react.dev/learn/referencing-values-with-refs#refs-and-the-dom React Docs}",name:"ref",required:!1,type:{name:"enum",value:[{value:"null"},{value:"string"},{value:"(instance: HTMLElement | null) => void"},{value:"RefObject<HTMLElement>"}]}},key:{defaultValue:null,description:"",name:"key",required:!1,type:{name:"enum",value:[{value:"null"},{value:"string"},{value:"number"},{value:"bigint"}]}}}}}catch{}const ro={title:"components/Box",component:r,argTypes:{radius:{description:E},padding:{description:C}}},a=()=>o.jsx(r,{background:"positiveLight",children:o.jsxs(B,{gap:"xs",direction:"column",children:[o.jsx(b,{level:"h3",accent:"positive",children:"Heading"}),o.jsx(_,{accent:"positive",children:"Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed metus nisi, ornare sit amet elit ut, porttitor commodo ipsum. Aliquam vel est quis erat sagittis posuere et vitae eros"})]})});a.storyName="Box";const e={parameters:{chromatic:{disableSnapshot:!0}},args:{background:void 0,radius:void 0,padding:void 0,children:o.jsxs(B,{gap:"16",direction:"column",children:[o.jsx(b,{variant:"large",tag:"h3",children:"Heading"}),o.jsx(_,{children:"Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed metus nisi, ornare sit amet elit ut, porttitor commodo ipsum. Aliquam vel est quis erat sagittis posuere et vitae eros"})]}),dataset:{qaid:"box"}},argTypes:{children:{control:!1},dataset:{control:"object"}}};var i,x,s;a.parameters={...a.parameters,docs:{...(i=a.parameters)==null?void 0:i.docs,source:{originalSource:`() => <Box background="positiveLight">
|
|
2
|
+
<LayoutFlex gap="xs" direction="column">
|
|
3
|
+
<Heading level="h3" accent="positive">
|
|
4
|
+
Heading
|
|
5
|
+
</Heading>
|
|
6
|
+
<Text accent="positive">
|
|
7
|
+
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed metus nisi, ornare sit
|
|
8
|
+
amet elit ut, porttitor commodo ipsum. Aliquam vel est quis erat sagittis posuere et
|
|
9
|
+
vitae eros
|
|
10
|
+
</Text>
|
|
11
|
+
</LayoutFlex>
|
|
12
|
+
</Box>`,...(s=(x=a.parameters)==null?void 0:x.docs)==null?void 0:s.source}}};var n,l,t;e.parameters={...e.parameters,docs:{...(n=e.parameters)==null?void 0:n.docs,source:{originalSource:`{
|
|
13
|
+
parameters: {
|
|
14
|
+
chromatic: {
|
|
15
|
+
disableSnapshot: true
|
|
16
|
+
}
|
|
17
|
+
},
|
|
18
|
+
args: {
|
|
19
|
+
background: undefined,
|
|
20
|
+
radius: undefined,
|
|
21
|
+
padding: undefined,
|
|
22
|
+
children: <LayoutFlex gap="16" direction="column">
|
|
23
|
+
<Heading variant="large" tag="h3">
|
|
24
|
+
Heading
|
|
25
|
+
</Heading>
|
|
26
|
+
<Text>
|
|
27
|
+
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed metus nisi, ornare
|
|
28
|
+
sit amet elit ut, porttitor commodo ipsum. Aliquam vel est quis erat sagittis
|
|
29
|
+
posuere et vitae eros
|
|
30
|
+
</Text>
|
|
31
|
+
</LayoutFlex>,
|
|
32
|
+
dataset: {
|
|
33
|
+
qaid: 'box'
|
|
34
|
+
}
|
|
35
|
+
},
|
|
36
|
+
argTypes: {
|
|
37
|
+
children: {
|
|
38
|
+
control: false
|
|
39
|
+
},
|
|
40
|
+
dataset: {
|
|
41
|
+
control: 'object'
|
|
42
|
+
}
|
|
43
|
+
}
|
|
44
|
+
}`,...(t=(l=e.parameters)==null?void 0:l.docs)==null?void 0:t.source}}};const uo=["Base","Playground"];export{a as Base,e as Playground,uo as __namedExportsOrder,ro as default};
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import{j as e}from"./jsx-runtime-BTJTZTIL.js";import{r as f}from"./index-Cb9e4tly.js";import{r as t}from"./render-icon-BT0Aq7PA.js";import{B as y}from"./ButtonBase-BCfmDQ_b.js";import{a as g}from"./classNames-BUL1Zq7e.js";import{w as u}from"./componentNames-Bwls0I02.js";import{B as T,a as B}from"./defaults-B1rzzf6M.js";const h={"Button--icon":"Button--icon__ddOB-"},r=f.forwardRef(function({variant:i=B,size:s=T,url:m,a11yLabel:d,leadingSvgIcon:a,trailingSvgIcon:n,children:v,...p},c){const l=[...g(h,u.Button,["icon"])];return e.jsxs(y,{...p,ref:c,isIconButton:!1,variant:i,size:s,url:m,a11yLabel:d,preplyDsComponent:u.Button,children:[!!a&&e.jsx("span",{className:l.join(" "),children:t(a,{"aria-hidden":"true",focusable:"false"})}),v,!!n&&e.jsx("span",{className:l.join(" "),children:t(n,{"aria-hidden":"true",focusable:"false"})})]})});try{r.displayName="Button",r.__docgenInfo={description:"",displayName:"Button",props:{variant:{defaultValue:{value:"primary"},description:"",name:"variant",required:!1,type:{name:"enum",value:[{value:'"primary"'},{value:'"secondary"'},{value:'"tertiary"'},{value:'"quaternary"'},{value:'"ghost"'},{value:'"plain"'},{value:'"dangerous"'},{value:'"critical"'},{value:'"onColor"'},{value:'"classroom"'},{value:'"primaryB2b"'},{value:'"primaryTutor"'},{value:'"inverted"'},{value:'"newFeature"'},{value:'"ai"'}]}},size:{defaultValue:{value:"s"},description:"",name:"size",required:!1,type:{name:"enum",value:[{value:'"xs"'},{value:'"s"'},{value:'"m"'},{value:'"l"'},{value:'"xl"'},{value:'"large"'},{value:'"medium"'},{value:'"small"'},{value:"ResponsiveProp<ButtonSize>"}]}},fullWidth:{defaultValue:null,description:"",name:"fullWidth",required:!1,type:{name:"enum",value:[{value:"false"},{value:"true"},{value:"ResponsiveProp<boolean>"}]}},wrap:{defaultValue:null,description:"",name:"wrap",required:!1,type:{name:"enum",value:[{value:"false"},{value:"true"}]}},href:{defaultValue:null,description:"",name:"href",required:!1,type:{name:"enum",value:[{value:"string"}]}},download:{defaultValue:null,description:"",name:"download",required:!1,type:{name:"enum",value:[{value:"false"},{value:"true"}]}},opensInNewTab:{defaultValue:null,description:"",name:"opensInNewTab",required:!1,type:{name:"enum",value:[{value:"false"},{value:"true"}]}},nofollow:{defaultValue:null,description:"",name:"nofollow",required:!1,type:{name:"enum",value:[{value:"false"},{value:"true"}]}},submitsForm:{defaultValue:null,description:"",name:"submitsForm",required:!1,type:{name:"enum",value:[{value:"false"},{value:"true"}]}},assistiveText:{defaultValue:null,description:"",name:"assistiveText",required:!1,type:{name:"enum",value:[{value:"string"}]}},onClick:{defaultValue:null,description:"",name:"onClick",required:!1,type:{name:"enum",value:[{value:"MouseEventHandler<Element>"}]}},disabled:{defaultValue:null,description:"",name:"disabled",required:!1,type:{name:"enum",value:[{value:"false"},{value:"true"}]}},busy:{defaultValue:null,description:"Replaces the content with a loading indicator.",name:"busy",required:!1,type:{name:"enum",value:[{value:"false"},{value:"true"}]}},as:{defaultValue:null,description:`Custom element to render the button.
|
|
2
|
+
|
|
3
|
+
Allows rendering the button using a different React element or component.
|
|
4
|
+
This is particularly useful for integrating with router libraries like \`react-router\` or \`next/router\`.
|
|
5
|
+
@example // Render as a react router link component
|
|
6
|
+
import { Link } from 'react-router-dom';
|
|
7
|
+
|
|
8
|
+
<ButtonBase as={<Link to="/home" />} />`,name:"as",required:!1,type:{name:"enum",value:[{value:"ReactElement<any, string | JSXElementConstructor<any>>"}]}},url:{defaultValue:null,description:"@deprecated Use `href` instead",name:"url",required:!1,type:{name:"enum",value:[{value:"string"}]}},a11yLabel:{defaultValue:null,description:"@deprecated Use `assistiveText` instead",name:"a11yLabel",required:!1,type:{name:"enum",value:[{value:"string"}]}},dataset:{defaultValue:null,description:"",name:"dataset",required:!1,type:{name:"enum",value:[{value:"Dataset"}]}},leadingSvgIcon:{defaultValue:null,description:`The leading SVG icon.
|
|
9
|
+
@example import TokyoUITag from '@preply/ds-media-icons/dist/24/TokyoUITag.svg';
|
|
10
|
+
|
|
11
|
+
<Button leadingSvgIcon={TokyoUITag}>Button</Button>
|
|
12
|
+
or
|
|
13
|
+
<Button leadingSvgIcon={<TokyoUITag />}>Button</Button>`,name:"leadingSvgIcon",required:!1,type:{name:"enum",value:[{value:"ComponentClass<SVGAttributes<SVGElement>, any>"},{value:"FunctionComponent<SVGAttributes<SVGElement>>"},{value:"ReactElement<any, string | JSXElementConstructor<any>>"}]}},trailingSvgIcon:{defaultValue:null,description:`@deprecated Trailing icons have been removed from the platform.
|
|
14
|
+
|
|
15
|
+
The trailing SVG icon.
|
|
16
|
+
@example import TokyoUITag from '@preply/ds-media-icons/dist/24/TokyoUITag.svg';
|
|
17
|
+
|
|
18
|
+
<Button trailingSvgIcon={TokyoUITag}>Button</Button>
|
|
19
|
+
or
|
|
20
|
+
<Button trailingSvgIcon={<TokyoUITag />}>Button</Button>`,name:"trailingSvgIcon",required:!1,type:{name:"enum",value:[{value:"ComponentClass<SVGAttributes<SVGElement>, any>"},{value:"FunctionComponent<SVGAttributes<SVGElement>>"},{value:"ReactElement<any, string | JSXElementConstructor<any>>"}]}},ref:{defaultValue:null,description:"Allows getting a ref to the component instance.\nOnce the component unmounts, React will set `ref.current` to `null`\n(or call the ref with `null` if you passed a callback ref).\n@see {@link https://react.dev/learn/referencing-values-with-refs#refs-and-the-dom React Docs}",name:"ref",required:!1,type:{name:"enum",value:[{value:"null"},{value:"string"},{value:"(instance: HTMLAnchorElement | HTMLButtonElement | null) => void"},{value:"RefObject<HTMLAnchorElement | HTMLButtonElement>"}]}},key:{defaultValue:null,description:"",name:"key",required:!1,type:{name:"enum",value:[{value:"null"},{value:"string"},{value:"number"},{value:"bigint"}]}}}}}catch{}export{r as B};
|