@dcl/shop 0.7.2-30995616440.commit-c92c0a7 → 0.7.3-30998099552.commit-f7fa6e3
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/_assets/{Activity-DlOvGfWS.js → Activity-CcCu8Od6.js} +3 -3
- package/_assets/{AnimatedBackground-wFTbNm6s.js → AnimatedBackground-xf-j6J30.js} +2 -2
- package/_assets/{Assets-X1NWf5os.js → Assets-B9oJjG4n.js} +7 -7
- package/_assets/{Assets.styles-DP-9D1zp.js → Assets.styles-BYFeJKPe.js} +1 -1
- package/_assets/{Authorizations-C95lcMjo.js → Authorizations-D5dl-34t.js} +1 -1
- package/_assets/{Cart-B0CdzTB-.js → Cart-BU0E1kp3.js} +2 -2
- package/_assets/{CircularProgress-MDlf0PM4.js → CircularProgress-ogI8F2v0.js} +1 -1
- package/_assets/{Collection-DMc_Plgo.js → Collection--mvsoerx.js} +1 -1
- package/_assets/{CollectionCarousel-dAjI9O2d.js → CollectionCarousel-DVB8xJEb.js} +1 -1
- package/_assets/{Creator-DsH2pdMn.js → Creator-BuMUJ_0H.js} +1 -1
- package/_assets/{ErrorNotice-CljJi_Rd.js → ErrorNotice-CmE8Bw2a.js} +1 -1
- package/_assets/{ExchangeController-DlbgXuXh.js → ExchangeController-ptA9AGiC.js} +1 -1
- package/_assets/Faq-mPkwptjW.js +168 -0
- package/_assets/{GetCredits-DBjRQ9-c.js → GetCredits-kPP7odsJ.js} +87 -68
- package/_assets/{Grow-BS0pRKh4.js → Grow-2tBlbsbN.js} +1 -1
- package/_assets/{HelpersUtil-DI7Si1NW.js → HelpersUtil-BhMvvX5p.js} +1 -1
- package/_assets/{ItemDetail-j_msWpDD.js → ItemDetail-BBfILay8.js} +1 -1
- package/_assets/LazyEmoteControls-8b5UZhSs.js +2 -0
- package/_assets/{LoadMore-D6ZDbor6.js → LoadMore-CPMkfBBp.js} +1 -1
- package/_assets/{ManaPricingBanner.styles-Bp3G2lS7.js → ManaPricingBanner.styles-C9hjNdio.js} +1 -1
- package/_assets/{MyAssets-aQyRrAQT.js → MyAssets-CkicCdty.js} +1 -1
- package/_assets/{MyFavorites-Br9OkDsz.js → MyFavorites-CRs6BUTO.js} +1 -1
- package/_assets/{NotFound-CTe5cZN-.js → NotFound-DbXDxLPP.js} +1 -1
- package/_assets/{NotificationsBell-BtFMsnPc.js → NotificationsBell-CeytqPp_.js} +1 -1
- package/_assets/{OutfitDetail-7R59raiX.js → OutfitDetail-DhAPMkez.js} +1 -1
- package/_assets/{OutfitPreview-DzDBTtsf.js → OutfitPreview-C08Jf7mn.js} +1 -1
- package/_assets/{OutfitStudio-Cfm2KzAT.js → OutfitStudio-Bpg_2rBv.js} +1 -1
- package/_assets/{StoreSettings-BRy9_5Vv.js → StoreSettings-CkHNFMS9.js} +1 -1
- package/_assets/{Success-DFPovl7Q.js → Success-CXkJDsIM.js} +1 -1
- package/_assets/{SwapController-Bwy1K-y1.js → SwapController-CNP2nUqB.js} +1 -1
- package/_assets/{Tooltip-DHlnTme6.js → Tooltip-Ca1xi18J.js} +1 -1
- package/_assets/{TradeService-DJBeEYGS.js → TradeService-pK5iIjeI.js} +1 -1
- package/_assets/{W3MFrameProviderSingleton-CztPSAyX.js → W3MFrameProviderSingleton-FyX1W-1Y.js} +3 -3
- package/_assets/{WebCryptoP256-BNWoGFte.js → WebCryptoP256-lGIWaHSV.js} +1 -1
- package/_assets/{authorizations-CFkQjUI1.js → authorizations-C776tgTp.js} +1 -1
- package/_assets/{basic-1cZ_runr.js → basic-B5CZMUy4.js} +1 -1
- package/_assets/{biconomy-BBK8cmk0.js → biconomy-BcosBJNp.js} +1 -1
- package/_assets/{builder-CHyODVls.js → builder-CsxZ_GQ8.js} +1 -1
- package/_assets/{buy-D0JFap8Q.js → buy-BZ3zKYDO.js} +1 -1
- package/_assets/{buy-gasless-wPVAQRv9.js → buy-gasless-eYZufj8D.js} +1 -1
- package/_assets/{categories-C_nd0X4v.js → categories-Bhx5AiD0.js} +1 -1
- package/_assets/{ccip-Dz9m42Aw.js → ccip-DmdM_5D9.js} +1 -1
- package/_assets/{ccip-CJkb0_XT.js → ccip-DrUklMi-.js} +1 -1
- package/_assets/{collectionPage.styles--78RwgwM.js → collectionPage.styles-CJq9b5Dn.js} +2 -2
- package/_assets/{controller-Bj72i4Zt.js → controller-C-sKqF34.js} +2 -2
- package/_assets/{core-E2ag1YJQ.js → core-CriR9cGd.js} +4 -4
- package/_assets/{createSvgIcon-viGngaYS.js → createSvgIcon-BntPICgm.js} +1 -1
- package/_assets/{custom-C0NC5kVr.js → custom-FzLs4-KY.js} +1 -1
- package/_assets/{data-capture-DOJR4J93.js → data-capture-Du1PLWpA.js} +1 -1
- package/_assets/{email-BVxSo2-S.js → email-C0nzy1sI.js} +1 -1
- package/_assets/{embedded-wallet-CZ-Nx-Ba.js → embedded-wallet-CVZ_vFlC.js} +1 -1
- package/_assets/{emotion-styled.browser.esm-DxAmKJct.js → emotion-styled.browser.esm-CJtlF7Gn.js} +1 -1
- package/_assets/{engine-oGLgfgqL.js → engine-Cn3nxRwN.js} +1 -1
- package/_assets/{errors-C4I4i71c.js → errors-C-i7myPZ.js} +1 -1
- package/_assets/{estimate-l1-fee-QuPCWh41.js → estimate-l1-fee-Dpb0Bl0S.js} +1 -1
- package/_assets/{execute-BqRRSWGP.js → execute-wHrMFCta.js} +2 -2
- package/_assets/{features-BEHfuKfT.js → features-5HsC8l6J.js} +1 -1
- package/_assets/{fetchTokenMetadata-BVdzK8hA.js → fetchTokenMetadata-MnlAMPaL.js} +2 -2
- package/_assets/{field.styles-Bu379m5v.js → field.styles-BIjk7dlh.js} +1 -1
- package/_assets/{get-ecosystem-wallet-info-8cbFXvVI.js → get-ecosystem-wallet-info-BtHiGyT4.js} +1 -1
- package/_assets/{getBalance-C_fQx4Mj.js → getBalance-BFjfr7yO.js} +1 -1
- package/_assets/{getNFT-Cwd4snkp.js → getNFT-T59O6JYG.js} +1 -1
- package/_assets/{getNFT-BSWwr40h.js → getNFT-zUEFFArE.js} +1 -1
- package/_assets/{grid.styles-Bea6GSFY.js → grid.styles-CKmGs0rK.js} +1 -1
- package/_assets/{hashTypedData-D5_MBQvL.js → hashTypedData-CCw0LbC7.js} +1 -1
- package/_assets/{hashTypedData-BRsR0Hmr.js → hashTypedData-EoQ_H9e4.js} +1 -1
- package/_assets/{in-app-D7S0suDq.js → in-app-BpY0Ul44.js} +1 -1
- package/_assets/{in-app-wallet-calls-N859RhEr.js → in-app-wallet-calls-_O1gpzp1.js} +1 -1
- package/_assets/{index-PGHsfAxG.js → index-0HOZkX4v.js} +1 -1
- package/_assets/{index-XDvb8hka.js → index-51jxmcXj.js} +1 -1
- package/_assets/{index-DMfF0yXB.js → index-B5t_uF6K.js} +1 -1
- package/_assets/{index-DMylHpCC.js → index-B64uIzbz.js} +1 -1
- package/_assets/{index-DhHutGa8.js → index-B9oBk5HA.js} +1 -1
- package/_assets/{index-BokepmOd.js → index-BB2qMLiD.js} +1 -1
- package/_assets/{index-VlbwISfS.js → index-BCeaifQW.js} +1 -1
- package/_assets/{index-DXAcQDGi.js → index-BF0Lz5Vl.js} +3 -3
- package/_assets/{index-DL_mCQic.js → index-BRr_EKCC.js} +1 -1
- package/_assets/{index-rwD38zdm.js → index-BmNvCSoW.js} +1 -1
- package/_assets/{index-CziDnDYS.js → index-BqhVw7jY.js} +56 -54
- package/_assets/{index-DBJKQMhx.js → index-BuJNwdV6.js} +1 -1
- package/_assets/{index-CLsdNSLo.js → index-C2wq-XJv.js} +1 -1
- package/_assets/{index-BRLWFZnM.js → index-C7-Ojv7c.js} +1 -1
- package/_assets/{index-13eJ1lVG.js → index-CME7Vo6o.js} +1 -1
- package/_assets/{index-DpNDf8Ti.js → index-CQi6H5fT.js} +1 -1
- package/_assets/{index-F1I4OLY1.js → index-CS3o6W8g.js} +1 -1
- package/_assets/{index-C0dWwY7x.js → index-Ca53lSVK.js} +1 -1
- package/_assets/{index-m0fExCCp.js → index-Cc8-wJI-.js} +1 -1
- package/_assets/{index-eWFDrQtB.js → index-CdmR3BSr.js} +1 -1
- package/_assets/{index-CmNkBh1H.js → index-CfiGBXge.js} +1 -1
- package/_assets/{index-BichDx40.js → index-ClfJzt8j.js} +1 -1
- package/_assets/{index-DdBQ8XUj.js → index-CoGa5SSH.js} +1 -1
- package/_assets/{index-iroykmc4.js → index-CrkAzP5M.js} +1 -1
- package/_assets/{index-BZEskeKO.js → index-CsqetYWp.js} +1 -1
- package/_assets/{index-gMIiEP3a.js → index-CzGc0rp2.js} +273 -265
- package/_assets/{index-CXSXA1KI.js → index-D7izat5n.js} +1 -1
- package/_assets/{index-Cn4oAD6L.js → index-D9BXwvii.js} +1 -1
- package/_assets/{index-CIBoQgFV.js → index-DGpSfYbI.js} +1 -1
- package/_assets/{index-Ckd_GeI4.js → index-DM4Lw-b2.js} +1 -1
- package/_assets/{index-Dqnl5WOE.js → index-DPS0nlZt.js} +1 -1
- package/_assets/{index-CMGwWcK-.js → index-DQOXE4dt.js} +1 -1
- package/_assets/{index-DqdvlK8M.js → index-DUGnqqvn.js} +1 -1
- package/_assets/{index-B-ZFG2UV.js → index-DV8-2bkd.js} +1 -1
- package/_assets/{index-RGHV-MqO.js → index-DYmEn4kI.js} +1 -1
- package/_assets/{index-CwNf2_fS.js → index-DZMkGxa1.js} +2 -2
- package/_assets/{index-CAa900qB.js → index-D_vtI9c4.js} +1 -1
- package/_assets/{index-Bwqu713t.js → index-Dg35ZiF4.js} +1 -1
- package/_assets/{index-BcwDwP6_.js → index-DlNMwZA0.js} +1 -1
- package/_assets/{index-CdQzEfvv.js → index-DlhjzwF5.js} +1 -1
- package/_assets/{index-DMDqOY7p.js → index-DnlGx8cM.js} +1 -1
- package/_assets/{index-DfPn_CNU.js → index-DqNNmcTE.js} +1 -1
- package/_assets/{index-Ck4AMg7P.js → index-Dv_iHgrg.js} +1 -1
- package/_assets/{index-Bi6PGTu3.js → index-GFGo0kL7.js} +2 -2
- package/_assets/{index-CcYs15Gf.js → index-GWS5y9G8.js} +3 -3
- package/_assets/{index-CSZ0-ELq.js → index-JQtE4iI3.js} +1 -1
- package/_assets/{index-BCRGII7c.js → index-i1mgkVNo.js} +1 -1
- package/_assets/{index-u0tlp796.js → index-jOzdgfRR.js} +3 -3
- package/_assets/{index-CXIqCuwd.js → index-kGUEZDex.js} +2 -2
- package/_assets/{index-CBu0I6o7.js → index-sTbvrDBI.js} +1 -1
- package/_assets/{index-CQ77qJLO.js → index-vw2DCGCa.js} +1 -1
- package/_assets/{index-xgKkA5ac.js → index-yDlokE4U.js} +1 -1
- package/_assets/{index.es-DlP7VeEo.js → index.es-B7FTFVs9.js} +1 -1
- package/_assets/{index.es-l9l0rqMP.js → index.es-D3zyWO6O.js} +4 -4
- package/_assets/{index.es-DyvSFI1G.js → index.es-Wz_yp4qN.js} +1 -1
- package/_assets/{localBatchGatewayRequest-CmLB09Db.js → localBatchGatewayRequest-IY4oys4m.js} +1 -1
- package/_assets/{networks-gJ769HEt.js → networks-BebUw28a.js} +1 -1
- package/_assets/{onramp-DWyQd0EL.js → onramp-D2PuULiP.js} +1 -1
- package/_assets/{openzeppelin-Bh5T4qVm.js → openzeppelin-BtInW1Ne.js} +1 -1
- package/_assets/{parseNft-BsNGgzWJ.js → parseNft-BbiDwhFE.js} +2 -2
- package/_assets/{parseSignature-CRXAefoj.js → parseSignature-CZ5Ggg8p.js} +3 -3
- package/_assets/{parseSignature-kjRlx7iA.js → parseSignature-VUChb_Hq.js} +1 -1
- package/_assets/{passkeys-JptqCIjj.js → passkeys-CrgnuTyv.js} +1 -1
- package/_assets/{pay-with-exchange-BzoQXy19.js → pay-with-exchange-DUrkH5ym.js} +1 -1
- package/_assets/{qr-overlay-DLIg3_Oo.js → qr-overlay-ijYN5Vs4.js} +1 -1
- package/_assets/{receive-CLnflBXX.js → receive-Df4kzGm0.js} +1 -1
- package/_assets/{resolveImplementation-BP3mjI4Q.js → resolveImplementation-DoFz-4vS.js} +1 -1
- package/_assets/{rpc-DmKjcte4.js → rpc-BiHC0M3Z.js} +1 -1
- package/_assets/{secp256k1-D_tjWkrz.js → secp256k1-Ba1R5SHp.js} +1 -1
- package/_assets/{secp256k1-CQHE9RIS.js → secp256k1-CqT0-B8H.js} +1 -1
- package/_assets/{secp256k1-BQGoooqC.js → secp256k1-Hu9Q-jih.js} +1 -1
- package/_assets/{send-CTOifc0L.js → send-Ca_D-CGF.js} +1 -1
- package/_assets/{send-batch-transaction-CYP0mPco.js → send-batch-transaction-D5lSDwIa.js} +1 -1
- package/_assets/{send-eip712-transaction-Dqko036p.js → send-eip712-transaction-BsmSzzO5.js} +2 -2
- package/_assets/{send-gasless-transaction-C8AZw90r.js → send-gasless-transaction-DzCl7yj5.js} +2 -2
- package/_assets/{send-transaction-ryzaco2f.js → send-transaction-D_KZubhG.js} +2 -2
- package/_assets/{sendMetaTransaction-D_0FxolO.js → sendMetaTransaction-DcJMER59.js} +1 -1
- package/_assets/{sendRawTransaction-xxwskEgE.js → sendRawTransaction-5I-l2w6Z.js} +3 -3
- package/_assets/{serializeTransaction-M4w0DDk6.js → serializeTransaction-a4pMp0ix.js} +1 -1
- package/_assets/{session-proposal-B9WTzUC6.js → session-proposal-CjeffhTm.js} +1 -1
- package/_assets/{session-request-BZtoziPE.js → session-request-KYwaaBai.js} +2 -2
- package/_assets/{signing-Bao8Ah3O.js → signing-BPM_yuD2.js} +3 -3
- package/_assets/{socials-Cz4rd8RL.js → socials-CyoLEAYb.js} +1 -1
- package/_assets/{styled-BHsNcn-0.js → styled-DxV2l543.js} +1 -1
- package/_assets/{swaps-uBsRYQgI.js → swaps-CHWvOItb.js} +1 -1
- package/_assets/{thirdweb-B4clFtsc.js → thirdweb-B3GtfZBZ.js} +3 -3
- package/_assets/{to-serializable-transaction-Vk5uxnjP.js → to-serializable-transaction-BCzBTrGx.js} +2 -2
- package/_assets/{trade-encoding-BoysexIB.js → trade-encoding-Dg6aX8Te.js} +1 -1
- package/_assets/{transactionReceipt-Ce9cf2MA.js → transactionReceipt-9LyDGJEz.js} +1 -1
- package/_assets/{transactions-D2XBEuUE.js → transactions-YKwAIvIG.js} +1 -1
- package/_assets/{useCreditPacks-CHiZi7Vr.js → useCreditPacks-DsT6A2e-.js} +1 -1
- package/_assets/{useImportable-BuZnIQCU.js → useImportable-CvtcuX0v.js} +1 -1
- package/_assets/{useInfiniteGrid-AWPI8srH.js → useInfiniteGrid-BiMca1S0.js} +1 -1
- package/_assets/{useTheme-GGiqWdGZ.js → useTheme-BI7R38Jr.js} +1 -1
- package/_assets/{verifyHash-D_gJjJWu.js → verifyHash-BsfyvwnN.js} +1 -1
- package/_assets/{w3m-modal-CV1r6_-y.js → w3m-modal-Dv-jrE6G.js} +1 -1
- package/_assets/{w3m-modal-CQpOk73W.js → w3m-modal-OMDv8WwL.js} +1 -1
- package/_assets/{wait-for-tx-receipt-CE8BS9xs.js → wait-for-tx-receipt-D5ZFHFzh.js} +1 -1
- package/_assets/{wallets-BYSyN2GG.js → wallets-NAyG3Q1E.js} +5 -5
- package/_assets/{web-connector-dkyEPCEu.js → web-connector-5UlEROZA.js} +3 -3
- package/_assets/{writeContract-D6vzU6Hg.js → writeContract-BOezSMv9.js} +1 -1
- package/_assets/{zoraTestnet-BlvP26lh.js → zoraTestnet-CsqEhrXT.js} +1 -1
- package/index.html +11 -11
- package/package.json +2 -2
- package/_assets/LazyEmoteControls-BLGpj9BX.js +0 -2
|
@@ -0,0 +1,168 @@
|
|
|
1
|
+
import{r as h,j as o}from"./react-DehiWSvs.js";import{t as e,s as a,d as r,I as w}from"./index-CzGc0rp2.js";const b=a.section`
|
|
2
|
+
display: flex;
|
|
3
|
+
flex-direction: column;
|
|
4
|
+
gap: 36px;
|
|
5
|
+
font-family: ${e.font.sans};
|
|
6
|
+
|
|
7
|
+
&[data-tone='on-dark'] {
|
|
8
|
+
align-items: center;
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
${e.media.maxWidth("mobile")} {
|
|
12
|
+
gap: 24px;
|
|
13
|
+
}
|
|
14
|
+
`,m=a.h2`
|
|
15
|
+
margin: 0;
|
|
16
|
+
font-size: 20px;
|
|
17
|
+
font-weight: 700;
|
|
18
|
+
line-height: 1.167;
|
|
19
|
+
color: ${e.colors.text2};
|
|
20
|
+
|
|
21
|
+
[data-tone='on-dark'] & {
|
|
22
|
+
font-size: 32px;
|
|
23
|
+
color: ${e.colors.white};
|
|
24
|
+
text-align: center;
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
${e.media.maxWidth("mobile")} {
|
|
28
|
+
font-size: 18px;
|
|
29
|
+
|
|
30
|
+
[data-tone='on-dark'] & {
|
|
31
|
+
font-size: 24px;
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
`,k=a.div`
|
|
35
|
+
display: flex;
|
|
36
|
+
flex-direction: column;
|
|
37
|
+
gap: 24px;
|
|
38
|
+
width: 100%;
|
|
39
|
+
`,v=a.div`
|
|
40
|
+
border-radius: ${e.radius.pill};
|
|
41
|
+
|
|
42
|
+
&[data-open='true'] {
|
|
43
|
+
border-radius: 42px;
|
|
44
|
+
overflow: hidden;
|
|
45
|
+
border: 0.5px solid ${e.colors.text2};
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
[data-tone='on-dark'] &[data-open='true'] {
|
|
49
|
+
background: rgba(0, 0, 0, 0.1);
|
|
50
|
+
/* 1px when open, 0.5px closed — the design thickens the outline as the row takes over the page. */
|
|
51
|
+
border: 1px solid ${e.colors.white};
|
|
52
|
+
}
|
|
53
|
+
`,$=a.button`
|
|
54
|
+
appearance: none;
|
|
55
|
+
width: 100%;
|
|
56
|
+
display: flex;
|
|
57
|
+
align-items: center;
|
|
58
|
+
gap: 2px;
|
|
59
|
+
padding: 24px;
|
|
60
|
+
border: none;
|
|
61
|
+
border-radius: inherit;
|
|
62
|
+
background: rgba(0, 0, 0, 0.05);
|
|
63
|
+
font-family: inherit;
|
|
64
|
+
font-size: 20px;
|
|
65
|
+
font-weight: 600;
|
|
66
|
+
line-height: 1.43;
|
|
67
|
+
/* Gray 0 closed, Soft Black 2 open: the question darkens as it becomes the heading of a section. */
|
|
68
|
+
color: ${e.colors.gray0};
|
|
69
|
+
text-align: left;
|
|
70
|
+
cursor: pointer;
|
|
71
|
+
transition:
|
|
72
|
+
background-color 120ms ease,
|
|
73
|
+
box-shadow 120ms ease,
|
|
74
|
+
color 120ms ease;
|
|
75
|
+
|
|
76
|
+
&[data-open='true'] {
|
|
77
|
+
color: ${e.colors.text2};
|
|
78
|
+
/* The header keeps square bottom corners while the answer sits under it. */
|
|
79
|
+
border-radius: 42px 42px 0 0;
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
/* No hover variant exists for the light mode in the design, so this is the smallest honest reading of
|
|
83
|
+
one: the same fill, a step darker. Inventing the dark mode's 3px white ring here would have put a
|
|
84
|
+
border on a row that has none. */
|
|
85
|
+
&:hover {
|
|
86
|
+
background: rgba(0, 0, 0, 0.08);
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
&:focus-visible {
|
|
90
|
+
outline: 2px solid ${e.colors.text2};
|
|
91
|
+
outline-offset: 2px;
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
[data-tone='on-dark'] & {
|
|
95
|
+
background: rgba(0, 0, 0, 0.1);
|
|
96
|
+
border: 0.5px solid ${e.colors.white};
|
|
97
|
+
color: ${e.colors.white};
|
|
98
|
+
}
|
|
99
|
+
|
|
100
|
+
/* On hover the dark skin deepens its fill and takes its outline from 0.5px to 3px.
|
|
101
|
+
The extra 2.5px is an INSET SHADOW, not a fatter border. border-box keeps the outer box fixed, but
|
|
102
|
+
height here is auto — content + padding + BORDER — so growing the border 0.5px → 3px added 5px of
|
|
103
|
+
height and shoved every row below it down as the pointer crossed. A box-shadow takes no part in
|
|
104
|
+
layout, so the stroke thickens inward from the same outer edge and nothing moves. (The pack cards
|
|
105
|
+
hit this same trap and solve it with a masked pseudo-element; they need one because their stroke is a
|
|
106
|
+
gradient, which a border cannot paint. This one is flat white, so the shadow is enough.)
|
|
107
|
+
0.5 + 2.5 = the designed 3px. */
|
|
108
|
+
[data-tone='on-dark'] &:hover {
|
|
109
|
+
background: rgba(0, 0, 0, 0.3);
|
|
110
|
+
box-shadow: inset 0 0 0 2.5px ${e.colors.white};
|
|
111
|
+
}
|
|
112
|
+
|
|
113
|
+
/* border-color, not "border: none": dropping the border outright would take its 0.5px out of the
|
|
114
|
+
height as well, so opening a row would nudge it by 1px on top of the answer appearing. The background
|
|
115
|
+
paints under the border area (background-clip defaults to border-box), so the transparent hairline
|
|
116
|
+
shows this header's own fill, not the shell behind it. */
|
|
117
|
+
[data-tone='on-dark'] &[data-open='true'] {
|
|
118
|
+
background: rgba(255, 255, 255, 0.2);
|
|
119
|
+
border-color: transparent;
|
|
120
|
+
box-shadow: none;
|
|
121
|
+
}
|
|
122
|
+
|
|
123
|
+
[data-tone='on-dark'] &:focus-visible {
|
|
124
|
+
outline-color: ${e.colors.white};
|
|
125
|
+
}
|
|
126
|
+
|
|
127
|
+
${e.media.maxWidth("mobile")} {
|
|
128
|
+
padding: 16px;
|
|
129
|
+
font-size: 16px;
|
|
130
|
+
}
|
|
131
|
+
`,q=a.span`
|
|
132
|
+
flex: 1 0 0;
|
|
133
|
+
min-width: 0;
|
|
134
|
+
/* The design sets the question nowrap at 1423px, where every one of them fits on a line. At the Shop's
|
|
135
|
+
widths they do not, so wrapping is the faithful reading of the intent — a clipped question is not. */
|
|
136
|
+
overflow-wrap: break-word;
|
|
137
|
+
`,j=a.span`
|
|
138
|
+
flex-shrink: 0;
|
|
139
|
+
display: flex;
|
|
140
|
+
transition: transform 160ms ease;
|
|
141
|
+
|
|
142
|
+
&[data-open='false'] {
|
|
143
|
+
transform: rotate(180deg);
|
|
144
|
+
}
|
|
145
|
+
|
|
146
|
+
@media (prefers-reduced-motion: reduce) {
|
|
147
|
+
transition: none;
|
|
148
|
+
}
|
|
149
|
+
`,y=a.div`
|
|
150
|
+
padding: 32px 24px;
|
|
151
|
+
font-size: 20px;
|
|
152
|
+
font-weight: 400;
|
|
153
|
+
line-height: 1.5;
|
|
154
|
+
color: ${e.colors.text2};
|
|
155
|
+
/* The answers are authored as one string with a newline where the design breaks the line. Two <p>s with
|
|
156
|
+
no margin between them render as two lines, which is what this is — keeping it one translatable string
|
|
157
|
+
rather than splitting every answer into numbered halves. */
|
|
158
|
+
white-space: pre-line;
|
|
159
|
+
|
|
160
|
+
[data-tone='on-dark'] & {
|
|
161
|
+
color: ${e.colors.white};
|
|
162
|
+
}
|
|
163
|
+
|
|
164
|
+
${e.media.maxWidth("mobile")} {
|
|
165
|
+
padding: 20px 16px;
|
|
166
|
+
font-size: 16px;
|
|
167
|
+
}
|
|
168
|
+
`;function I({title:l,entries:p,tone:c="light",className:x}){const[u,g]=h.useState(()=>new Set),s=h.useId();function f(t){g(n=>{const i=new Set(n);return i.delete(t)||i.add(t),i})}return o.jsxs(b,{className:x,"data-tone":c,"data-testid":"faq",children:[o.jsx(m,{children:r(l)}),o.jsx(k,{children:p.map(t=>{const n=u.has(t.question),i=`${s}-panel-${t.question}`,d=`${s}-header-${t.question}`;return o.jsxs(v,{"data-open":n,"data-testid":"faq-item",children:[o.jsxs($,{type:"button",onClick:()=>f(t.question),id:d,"aria-expanded":n,"aria-controls":n?i:void 0,"data-open":n,"data-testid":"faq-question",children:[o.jsx(q,{children:r(t.question)}),o.jsx(j,{"data-open":n,"aria-hidden":!0,children:o.jsx(w,{name:"chevron-up-line",size:36})})]}),n&&o.jsx(y,{id:i,role:"region","aria-labelledby":d,"data-testid":"faq-answer",children:r(t.answer)})]},t.question)})})]})}export{I as F};
|