@elabs-ai/components-ui 4.2.0 → 5.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/README.md +2 -1
- package/dist/chunk-22Z735L6.js +18 -0
- package/dist/chunk-22Z735L6.js.map +1 -0
- package/dist/chunk-23E62DNM.js +2 -0
- package/dist/chunk-23E62DNM.js.map +1 -0
- package/dist/chunk-2AABRSIN.js +2 -0
- package/dist/chunk-2AABRSIN.js.map +1 -0
- package/dist/chunk-2DFB4YTK.js +55 -0
- package/dist/chunk-2DFB4YTK.js.map +1 -0
- package/dist/chunk-2SBYBN45.js +2 -0
- package/dist/chunk-2SBYBN45.js.map +1 -0
- package/dist/chunk-2ZMPAD6C.js +357 -0
- package/dist/chunk-2ZMPAD6C.js.map +1 -0
- package/dist/chunk-36SY7TID.js +36 -0
- package/dist/chunk-36SY7TID.js.map +1 -0
- package/dist/chunk-36VULFFV.js +2 -0
- package/dist/chunk-36VULFFV.js.map +1 -0
- package/dist/chunk-3BZBNDRP.js +123 -0
- package/dist/chunk-3BZBNDRP.js.map +1 -0
- package/dist/chunk-3DJ4KY3U.js +82 -0
- package/dist/chunk-3DJ4KY3U.js.map +1 -0
- package/dist/chunk-3EDNWHWD.js +125 -0
- package/dist/chunk-3EDNWHWD.js.map +1 -0
- package/dist/chunk-3JAEQNCB.js +60 -0
- package/dist/chunk-3JAEQNCB.js.map +1 -0
- package/dist/chunk-3OSGTUN2.js +2 -0
- package/dist/chunk-3OSGTUN2.js.map +1 -0
- package/dist/chunk-3P7SRCDB.js +23 -0
- package/dist/chunk-3P7SRCDB.js.map +1 -0
- package/dist/chunk-3ZR5PMKB.js +41 -0
- package/dist/chunk-3ZR5PMKB.js.map +1 -0
- package/dist/chunk-45ICJ3EV.js +2 -0
- package/dist/chunk-45ICJ3EV.js.map +1 -0
- package/dist/chunk-47YSHR3H.js +77 -0
- package/dist/chunk-47YSHR3H.js.map +1 -0
- package/dist/chunk-4ACT7RLU.js +2 -0
- package/dist/chunk-4ACT7RLU.js.map +1 -0
- package/dist/chunk-4B2E4OCZ.js +44 -0
- package/dist/chunk-4B2E4OCZ.js.map +1 -0
- package/dist/chunk-4C4D6T5M.js +229 -0
- package/dist/chunk-4C4D6T5M.js.map +1 -0
- package/dist/chunk-4DWIMWR5.js +726 -0
- package/dist/chunk-4DWIMWR5.js.map +1 -0
- package/dist/chunk-4DZGAY6R.js +140 -0
- package/dist/chunk-4DZGAY6R.js.map +1 -0
- package/dist/chunk-4HTVJZVG.js +2 -0
- package/dist/chunk-4HTVJZVG.js.map +1 -0
- package/dist/chunk-4KDA5MDC.js +2 -0
- package/dist/chunk-4KDA5MDC.js.map +1 -0
- package/dist/chunk-4NSCLIES.js +126 -0
- package/dist/chunk-4NSCLIES.js.map +1 -0
- package/dist/chunk-4PXDZR2W.js +2 -0
- package/dist/chunk-4PXDZR2W.js.map +1 -0
- package/dist/chunk-4UWOADYM.js +2 -0
- package/dist/chunk-4UWOADYM.js.map +1 -0
- package/dist/chunk-4VCU3GFI.js +23 -0
- package/dist/chunk-4VCU3GFI.js.map +1 -0
- package/dist/chunk-4W3MVVKN.js +66 -0
- package/dist/chunk-4W3MVVKN.js.map +1 -0
- package/dist/chunk-4YOFSGHD.js +2 -0
- package/dist/chunk-4YOFSGHD.js.map +1 -0
- package/dist/chunk-545HI223.js +2 -0
- package/dist/chunk-545HI223.js.map +1 -0
- package/dist/chunk-55BM2IU2.js +186 -0
- package/dist/chunk-55BM2IU2.js.map +1 -0
- package/dist/chunk-5C5W52O2.js +27 -0
- package/dist/chunk-5C5W52O2.js.map +1 -0
- package/dist/chunk-5G2DDMHR.js +2 -0
- package/dist/chunk-5G2DDMHR.js.map +1 -0
- package/dist/chunk-5LCN5Q2L.js +23 -0
- package/dist/chunk-5LCN5Q2L.js.map +1 -0
- package/dist/chunk-5MXQ5CP7.js +93 -0
- package/dist/chunk-5MXQ5CP7.js.map +1 -0
- package/dist/chunk-5P4BSHIG.js +2 -0
- package/dist/chunk-5P4BSHIG.js.map +1 -0
- package/dist/chunk-5SHHIQVA.js +22 -0
- package/dist/chunk-5SHHIQVA.js.map +1 -0
- package/dist/chunk-5YZLOAKR.js +2 -0
- package/dist/chunk-5YZLOAKR.js.map +1 -0
- package/dist/chunk-653ZIWX6.js +2 -0
- package/dist/chunk-653ZIWX6.js.map +1 -0
- package/dist/chunk-6DHG7JVP.js +2 -0
- package/dist/chunk-6DHG7JVP.js.map +1 -0
- package/dist/chunk-6HTZBBTC.js +35 -0
- package/dist/chunk-6HTZBBTC.js.map +1 -0
- package/dist/chunk-6ROQKB4U.js +2 -0
- package/dist/chunk-6ROQKB4U.js.map +1 -0
- package/dist/chunk-6S43VAN7.js +2 -0
- package/dist/chunk-6S43VAN7.js.map +1 -0
- package/dist/chunk-6TJVJPNU.js +1321 -0
- package/dist/chunk-6TJVJPNU.js.map +1 -0
- package/dist/chunk-6VLJL7Q4.js +2 -0
- package/dist/chunk-6VLJL7Q4.js.map +1 -0
- package/dist/chunk-72H7HUTH.js +161 -0
- package/dist/chunk-72H7HUTH.js.map +1 -0
- package/dist/chunk-7KV7H2TW.js +323 -0
- package/dist/chunk-7KV7H2TW.js.map +1 -0
- package/dist/chunk-7WIHVGYL.js +2 -0
- package/dist/chunk-7WIHVGYL.js.map +1 -0
- package/dist/chunk-7Z2RAGOA.js +90 -0
- package/dist/chunk-7Z2RAGOA.js.map +1 -0
- package/dist/chunk-AA3SPDJU.js +2 -0
- package/dist/chunk-AA3SPDJU.js.map +1 -0
- package/dist/chunk-AC7X3D2M.js +2 -0
- package/dist/chunk-AC7X3D2M.js.map +1 -0
- package/dist/chunk-AE6LFFME.js +201 -0
- package/dist/chunk-AE6LFFME.js.map +1 -0
- package/dist/chunk-AE6UDP36.js +2 -0
- package/dist/chunk-AE6UDP36.js.map +1 -0
- package/dist/chunk-AFEFAGPW.js +2 -0
- package/dist/chunk-AFEFAGPW.js.map +1 -0
- package/dist/chunk-AFJCS2WV.js +95 -0
- package/dist/chunk-AFJCS2WV.js.map +1 -0
- package/dist/chunk-ALNJV4XB.js +218 -0
- package/dist/chunk-ALNJV4XB.js.map +1 -0
- package/dist/chunk-AQNLEP5F.js +2 -0
- package/dist/chunk-AQNLEP5F.js.map +1 -0
- package/dist/chunk-AUQVJ7KO.js +2 -0
- package/dist/chunk-AUQVJ7KO.js.map +1 -0
- package/dist/chunk-AXHMQOIZ.js +116 -0
- package/dist/chunk-AXHMQOIZ.js.map +1 -0
- package/dist/chunk-AZEABCK4.js +30 -0
- package/dist/chunk-AZEABCK4.js.map +1 -0
- package/dist/chunk-B23VW24W.js +2 -0
- package/dist/chunk-B23VW24W.js.map +1 -0
- package/dist/chunk-B2RSOLLO.js +2 -0
- package/dist/chunk-B2RSOLLO.js.map +1 -0
- package/dist/chunk-B3DANITU.js +85 -0
- package/dist/chunk-B3DANITU.js.map +1 -0
- package/dist/chunk-B7FAQKHH.js +87 -0
- package/dist/chunk-B7FAQKHH.js.map +1 -0
- package/dist/chunk-BDOG4YSM.js +989 -0
- package/dist/chunk-BDOG4YSM.js.map +1 -0
- package/dist/chunk-BRL2HMZJ.js +110 -0
- package/dist/chunk-BRL2HMZJ.js.map +1 -0
- package/dist/chunk-BTBYNKT4.js +2 -0
- package/dist/chunk-BTBYNKT4.js.map +1 -0
- package/dist/chunk-BWL7HWEF.js +325 -0
- package/dist/chunk-BWL7HWEF.js.map +1 -0
- package/dist/chunk-BYFRDLDL.js +246 -0
- package/dist/chunk-BYFRDLDL.js.map +1 -0
- package/dist/chunk-BZQF5QCN.js +18 -0
- package/dist/chunk-BZQF5QCN.js.map +1 -0
- package/dist/chunk-C2AQEEFB.js +2 -0
- package/dist/chunk-C2AQEEFB.js.map +1 -0
- package/dist/chunk-C2ICCCP5.js +400 -0
- package/dist/chunk-C2ICCCP5.js.map +1 -0
- package/dist/chunk-C5QBV5RE.js +77 -0
- package/dist/chunk-C5QBV5RE.js.map +1 -0
- package/dist/chunk-C753P3VJ.js +2 -0
- package/dist/chunk-C753P3VJ.js.map +1 -0
- package/dist/chunk-CDE74W6O.js +2 -0
- package/dist/chunk-CDE74W6O.js.map +1 -0
- package/dist/chunk-CDMJSXCB.js +62 -0
- package/dist/chunk-CDMJSXCB.js.map +1 -0
- package/dist/chunk-CEDK5GM2.js +68 -0
- package/dist/chunk-CEDK5GM2.js.map +1 -0
- package/dist/chunk-CEHCVDYR.js +476 -0
- package/dist/chunk-CEHCVDYR.js.map +1 -0
- package/dist/chunk-CEQ3YKHR.js +35 -0
- package/dist/chunk-CEQ3YKHR.js.map +1 -0
- package/dist/chunk-CEQER4CV.js +2 -0
- package/dist/chunk-CEQER4CV.js.map +1 -0
- package/dist/chunk-CMP4F537.js +190 -0
- package/dist/chunk-CMP4F537.js.map +1 -0
- package/dist/chunk-CRGGGHAM.js +2 -0
- package/dist/chunk-CRGGGHAM.js.map +1 -0
- package/dist/chunk-CRVB4SLG.js +2 -0
- package/dist/chunk-CRVB4SLG.js.map +1 -0
- package/dist/chunk-CT6XJIPY.js +2 -0
- package/dist/chunk-CT6XJIPY.js.map +1 -0
- package/dist/chunk-CY5ISPFB.js +235 -0
- package/dist/chunk-CY5ISPFB.js.map +1 -0
- package/dist/chunk-CY624JOL.js +2 -0
- package/dist/chunk-CY624JOL.js.map +1 -0
- package/dist/chunk-D53EN4Q6.js +2 -0
- package/dist/chunk-D53EN4Q6.js.map +1 -0
- package/dist/chunk-D5INX2EF.js +50 -0
- package/dist/chunk-D5INX2EF.js.map +1 -0
- package/dist/chunk-DCHYNTHI.js +11 -0
- package/dist/chunk-DCHYNTHI.js.map +1 -0
- package/dist/chunk-DIQJODQR.js +2 -0
- package/dist/chunk-DIQJODQR.js.map +1 -0
- package/dist/chunk-DSGTH6JW.js +2 -0
- package/dist/chunk-DSGTH6JW.js.map +1 -0
- package/dist/chunk-DU6ITAJL.js +2 -0
- package/dist/chunk-DU6ITAJL.js.map +1 -0
- package/dist/chunk-DXC3DTCV.js +256 -0
- package/dist/chunk-DXC3DTCV.js.map +1 -0
- package/dist/chunk-DXDLTYTT.js +2 -0
- package/dist/chunk-DXDLTYTT.js.map +1 -0
- package/dist/chunk-E3GNYOLS.js +26 -0
- package/dist/chunk-E3GNYOLS.js.map +1 -0
- package/dist/chunk-EAFPUZ46.js +2 -0
- package/dist/chunk-EAFPUZ46.js.map +1 -0
- package/dist/chunk-EBDOKU5K.js +2 -0
- package/dist/chunk-EBDOKU5K.js.map +1 -0
- package/dist/chunk-EBNPVPR7.js +266 -0
- package/dist/chunk-EBNPVPR7.js.map +1 -0
- package/dist/chunk-EDE73Q6Z.js +2 -0
- package/dist/chunk-EDE73Q6Z.js.map +1 -0
- package/dist/chunk-EJ3XWNY3.js +52 -0
- package/dist/chunk-EJ3XWNY3.js.map +1 -0
- package/dist/chunk-EJQYE4MY.js +100 -0
- package/dist/chunk-EJQYE4MY.js.map +1 -0
- package/dist/chunk-ENL3CCZB.js +385 -0
- package/dist/chunk-ENL3CCZB.js.map +1 -0
- package/dist/chunk-EP3U7OQ3.js +18 -0
- package/dist/chunk-EP3U7OQ3.js.map +1 -0
- package/dist/chunk-ERTYAID6.js +101 -0
- package/dist/chunk-ERTYAID6.js.map +1 -0
- package/dist/chunk-FAOX6A5D.js +2 -0
- package/dist/chunk-FAOX6A5D.js.map +1 -0
- package/dist/chunk-FBJ2JSRA.js +47 -0
- package/dist/chunk-FBJ2JSRA.js.map +1 -0
- package/dist/chunk-FDJ77DTR.js +2 -0
- package/dist/chunk-FDJ77DTR.js.map +1 -0
- package/dist/chunk-FG3PDWE3.js +31 -0
- package/dist/chunk-FG3PDWE3.js.map +1 -0
- package/dist/chunk-FHDJKH2A.js +2 -0
- package/dist/chunk-FHDJKH2A.js.map +1 -0
- package/dist/chunk-FLCQKC64.js +97 -0
- package/dist/chunk-FLCQKC64.js.map +1 -0
- package/dist/chunk-FPLZ24MK.js +2 -0
- package/dist/chunk-FPLZ24MK.js.map +1 -0
- package/dist/chunk-FRFSDZIN.js +2 -0
- package/dist/chunk-FRFSDZIN.js.map +1 -0
- package/dist/chunk-FXC64HLD.js +137 -0
- package/dist/chunk-FXC64HLD.js.map +1 -0
- package/dist/chunk-FXWWDMMP.js +55 -0
- package/dist/chunk-FXWWDMMP.js.map +1 -0
- package/dist/chunk-FZEG2R3E.js +30 -0
- package/dist/chunk-FZEG2R3E.js.map +1 -0
- package/dist/chunk-G3OTDYCD.js +53 -0
- package/dist/chunk-G3OTDYCD.js.map +1 -0
- package/dist/chunk-G72UOVKS.js +2 -0
- package/dist/chunk-G72UOVKS.js.map +1 -0
- package/dist/chunk-GAI4NEPU.js +151 -0
- package/dist/chunk-GAI4NEPU.js.map +1 -0
- package/dist/chunk-GMXSCEYN.js +24 -0
- package/dist/chunk-GMXSCEYN.js.map +1 -0
- package/dist/chunk-GTBVTLZJ.js +54 -0
- package/dist/chunk-GTBVTLZJ.js.map +1 -0
- package/dist/chunk-GTDCC4YX.js +197 -0
- package/dist/chunk-GTDCC4YX.js.map +1 -0
- package/dist/chunk-GV6GQXKX.js +176 -0
- package/dist/chunk-GV6GQXKX.js.map +1 -0
- package/dist/chunk-GWHO5ACE.js +637 -0
- package/dist/chunk-GWHO5ACE.js.map +1 -0
- package/dist/chunk-H5XSI63P.js +2 -0
- package/dist/chunk-H5XSI63P.js.map +1 -0
- package/dist/chunk-HANBQNW3.js +1498 -0
- package/dist/chunk-HANBQNW3.js.map +1 -0
- package/dist/chunk-HCU2JHPH.js +169 -0
- package/dist/chunk-HCU2JHPH.js.map +1 -0
- package/dist/chunk-HDDXP2J7.js +2 -0
- package/dist/chunk-HDDXP2J7.js.map +1 -0
- package/dist/chunk-HDS64Z5L.js +54 -0
- package/dist/chunk-HDS64Z5L.js.map +1 -0
- package/dist/chunk-HF6BGFUV.js +78 -0
- package/dist/chunk-HF6BGFUV.js.map +1 -0
- package/dist/chunk-HHVULJGX.js +2 -0
- package/dist/chunk-HHVULJGX.js.map +1 -0
- package/dist/chunk-HHZJALGA.js +163 -0
- package/dist/chunk-HHZJALGA.js.map +1 -0
- package/dist/chunk-HLMFRCFE.js +2 -0
- package/dist/chunk-HLMFRCFE.js.map +1 -0
- package/dist/chunk-HND6FAMX.js +75 -0
- package/dist/chunk-HND6FAMX.js.map +1 -0
- package/dist/chunk-HNLYRHAU.js +74 -0
- package/dist/chunk-HNLYRHAU.js.map +1 -0
- package/dist/chunk-HPUPDT4Q.js +2 -0
- package/dist/chunk-HPUPDT4Q.js.map +1 -0
- package/dist/chunk-HUIYDDDL.js +189 -0
- package/dist/chunk-HUIYDDDL.js.map +1 -0
- package/dist/chunk-HWVU636Q.js +787 -0
- package/dist/chunk-HWVU636Q.js.map +1 -0
- package/dist/chunk-HXQ4MDCH.js +296 -0
- package/dist/chunk-HXQ4MDCH.js.map +1 -0
- package/dist/chunk-HZPNST7D.js +2 -0
- package/dist/chunk-HZPNST7D.js.map +1 -0
- package/dist/chunk-I3U52BDH.js +36 -0
- package/dist/chunk-I3U52BDH.js.map +1 -0
- package/dist/chunk-I6O6ACCH.js +2 -0
- package/dist/chunk-I6O6ACCH.js.map +1 -0
- package/dist/chunk-IE5GWE72.js +177 -0
- package/dist/chunk-IE5GWE72.js.map +1 -0
- package/dist/chunk-IIY5JRNW.js +93 -0
- package/dist/chunk-IIY5JRNW.js.map +1 -0
- package/dist/chunk-IM5VJP6T.js +2 -0
- package/dist/chunk-IM5VJP6T.js.map +1 -0
- package/dist/chunk-IRUZDWJ3.js +218 -0
- package/dist/chunk-IRUZDWJ3.js.map +1 -0
- package/dist/chunk-ISWUCXEZ.js +2 -0
- package/dist/chunk-ISWUCXEZ.js.map +1 -0
- package/dist/chunk-IUQ474IC.js +2 -0
- package/dist/chunk-IUQ474IC.js.map +1 -0
- package/dist/chunk-IVEDMK5U.js +61 -0
- package/dist/chunk-IVEDMK5U.js.map +1 -0
- package/dist/chunk-IY23F2Y5.js +2 -0
- package/dist/chunk-IY23F2Y5.js.map +1 -0
- package/dist/chunk-JCRBDA66.js +2 -0
- package/dist/chunk-JCRBDA66.js.map +1 -0
- package/dist/chunk-JTY3REOB.js +76 -0
- package/dist/chunk-JTY3REOB.js.map +1 -0
- package/dist/chunk-JVCIAEFT.js +68 -0
- package/dist/chunk-JVCIAEFT.js.map +1 -0
- package/dist/chunk-JWWJ2Z5C.js +2 -0
- package/dist/chunk-JWWJ2Z5C.js.map +1 -0
- package/dist/chunk-K2GLXCTG.js +2 -0
- package/dist/chunk-K2GLXCTG.js.map +1 -0
- package/dist/chunk-K4V2ELUZ.js +36 -0
- package/dist/chunk-K4V2ELUZ.js.map +1 -0
- package/dist/chunk-KAAJL2HA.js +327 -0
- package/dist/chunk-KAAJL2HA.js.map +1 -0
- package/dist/chunk-KBWHHAI3.js +246 -0
- package/dist/chunk-KBWHHAI3.js.map +1 -0
- package/dist/chunk-KK2TIWTF.js +54 -0
- package/dist/chunk-KK2TIWTF.js.map +1 -0
- package/dist/chunk-KPZFLTZ2.js +61 -0
- package/dist/chunk-KPZFLTZ2.js.map +1 -0
- package/dist/chunk-KRVSD4OK.js +2 -0
- package/dist/chunk-KRVSD4OK.js.map +1 -0
- package/dist/chunk-KXYL3CUS.js +74 -0
- package/dist/chunk-KXYL3CUS.js.map +1 -0
- package/dist/chunk-L37QZALU.js +17 -0
- package/dist/chunk-L37QZALU.js.map +1 -0
- package/dist/chunk-L3SHPHLK.js +35 -0
- package/dist/chunk-L3SHPHLK.js.map +1 -0
- package/dist/chunk-L5O2O67Y.js +164 -0
- package/dist/chunk-L5O2O67Y.js.map +1 -0
- package/dist/chunk-L66VJIRD.js +2 -0
- package/dist/chunk-L66VJIRD.js.map +1 -0
- package/dist/chunk-L6A3RXCU.js +140 -0
- package/dist/chunk-L6A3RXCU.js.map +1 -0
- package/dist/chunk-LDOCY4SU.js +68 -0
- package/dist/chunk-LDOCY4SU.js.map +1 -0
- package/dist/chunk-LG33MONJ.js +74 -0
- package/dist/chunk-LG33MONJ.js.map +1 -0
- package/dist/chunk-LJGWA2XL.js +2 -0
- package/dist/chunk-LJGWA2XL.js.map +1 -0
- package/dist/chunk-LLQWLZ75.js +2 -0
- package/dist/chunk-LLQWLZ75.js.map +1 -0
- package/dist/chunk-LLYLDZXC.js +54 -0
- package/dist/chunk-LLYLDZXC.js.map +1 -0
- package/dist/chunk-LMV225AS.js +39 -0
- package/dist/chunk-LMV225AS.js.map +1 -0
- package/dist/chunk-LSYVAOSH.js +2 -0
- package/dist/chunk-LSYVAOSH.js.map +1 -0
- package/dist/chunk-LYVBDMDQ.js +2 -0
- package/dist/chunk-LYVBDMDQ.js.map +1 -0
- package/dist/chunk-M2KNQZUL.js +73 -0
- package/dist/chunk-M2KNQZUL.js.map +1 -0
- package/dist/chunk-M3WSUFD4.js +2 -0
- package/dist/chunk-M3WSUFD4.js.map +1 -0
- package/dist/chunk-M5WPZXBA.js +118 -0
- package/dist/chunk-M5WPZXBA.js.map +1 -0
- package/dist/chunk-MDQYRES4.js +796 -0
- package/dist/chunk-MDQYRES4.js.map +1 -0
- package/dist/chunk-MIXCXZWT.js +2 -0
- package/dist/chunk-MIXCXZWT.js.map +1 -0
- package/dist/chunk-MJAIURHO.js +56 -0
- package/dist/chunk-MJAIURHO.js.map +1 -0
- package/dist/chunk-MLGBLKUH.js +2 -0
- package/dist/chunk-MLGBLKUH.js.map +1 -0
- package/dist/chunk-MNS2VWHD.js +2 -0
- package/dist/chunk-MNS2VWHD.js.map +1 -0
- package/dist/chunk-MPMMU3QI.js +2 -0
- package/dist/chunk-MPMMU3QI.js.map +1 -0
- package/dist/chunk-MRBDJASL.js +97 -0
- package/dist/chunk-MRBDJASL.js.map +1 -0
- package/dist/chunk-MRWOHWEH.js +2 -0
- package/dist/chunk-MRWOHWEH.js.map +1 -0
- package/dist/chunk-MY5H6D5Y.js +245 -0
- package/dist/chunk-MY5H6D5Y.js.map +1 -0
- package/dist/chunk-MZDL7N52.js +2 -0
- package/dist/chunk-MZDL7N52.js.map +1 -0
- package/dist/chunk-N7PJTMRL.js +2 -0
- package/dist/chunk-N7PJTMRL.js.map +1 -0
- package/dist/chunk-NMGNXW3J.js +98 -0
- package/dist/chunk-NMGNXW3J.js.map +1 -0
- package/dist/chunk-NRNIUM75.js +2 -0
- package/dist/chunk-NRNIUM75.js.map +1 -0
- package/dist/chunk-NRPZ3BH4.js +85 -0
- package/dist/chunk-NRPZ3BH4.js.map +1 -0
- package/dist/chunk-NXCOVGDU.js +100 -0
- package/dist/chunk-NXCOVGDU.js.map +1 -0
- package/dist/chunk-NZUKZRT7.js +201 -0
- package/dist/chunk-NZUKZRT7.js.map +1 -0
- package/dist/chunk-O3JWMB6O.js +20 -0
- package/dist/chunk-O3JWMB6O.js.map +1 -0
- package/dist/chunk-O6V65J5J.js +81 -0
- package/dist/chunk-O6V65J5J.js.map +1 -0
- package/dist/chunk-OEPN373X.js +2 -0
- package/dist/chunk-OEPN373X.js.map +1 -0
- package/dist/chunk-OGTILHKP.js +355 -0
- package/dist/chunk-OGTILHKP.js.map +1 -0
- package/dist/chunk-OITCRC5D.js +2 -0
- package/dist/chunk-OITCRC5D.js.map +1 -0
- package/dist/chunk-OKV3N7QK.js +2 -0
- package/dist/chunk-OKV3N7QK.js.map +1 -0
- package/dist/chunk-OKY7ACZK.js +31 -0
- package/dist/chunk-OKY7ACZK.js.map +1 -0
- package/dist/chunk-ON2E7XHD.js +51 -0
- package/dist/chunk-ON2E7XHD.js.map +1 -0
- package/dist/chunk-OPBSVEMX.js +192 -0
- package/dist/chunk-OPBSVEMX.js.map +1 -0
- package/dist/chunk-OR4NVFPH.js +2 -0
- package/dist/chunk-OR4NVFPH.js.map +1 -0
- package/dist/chunk-OYKS7YHE.js +2 -0
- package/dist/chunk-OYKS7YHE.js.map +1 -0
- package/dist/chunk-PGKQZBLZ.js +55 -0
- package/dist/chunk-PGKQZBLZ.js.map +1 -0
- package/dist/chunk-PHAENHGL.js +19 -0
- package/dist/chunk-PHAENHGL.js.map +1 -0
- package/dist/chunk-PLCQZBZS.js +63 -0
- package/dist/chunk-PLCQZBZS.js.map +1 -0
- package/dist/chunk-PQZD5W3E.js +170 -0
- package/dist/chunk-PQZD5W3E.js.map +1 -0
- package/dist/chunk-PSBNQZB4.js +2 -0
- package/dist/chunk-PSBNQZB4.js.map +1 -0
- package/dist/chunk-PSXUEWUS.js +87 -0
- package/dist/chunk-PSXUEWUS.js.map +1 -0
- package/dist/chunk-PT5P4AAU.js +128 -0
- package/dist/chunk-PT5P4AAU.js.map +1 -0
- package/dist/chunk-PUACHQRH.js +31 -0
- package/dist/chunk-PUACHQRH.js.map +1 -0
- package/dist/chunk-QDJHUNBQ.js +2 -0
- package/dist/chunk-QDJHUNBQ.js.map +1 -0
- package/dist/chunk-QF6UWWDY.js +125 -0
- package/dist/chunk-QF6UWWDY.js.map +1 -0
- package/dist/chunk-QKZX5HDY.js +209 -0
- package/dist/chunk-QKZX5HDY.js.map +1 -0
- package/dist/chunk-QLM3KTAQ.js +100 -0
- package/dist/chunk-QLM3KTAQ.js.map +1 -0
- package/dist/chunk-QODOFLHL.js +2 -0
- package/dist/chunk-QODOFLHL.js.map +1 -0
- package/dist/chunk-QRGYKV4J.js +2 -0
- package/dist/chunk-QRGYKV4J.js.map +1 -0
- package/dist/chunk-R27VUCWR.js +140 -0
- package/dist/chunk-R27VUCWR.js.map +1 -0
- package/dist/chunk-R5JYMCEA.js +2 -0
- package/dist/chunk-R5JYMCEA.js.map +1 -0
- package/dist/chunk-RB5AWLDJ.js +26 -0
- package/dist/chunk-RB5AWLDJ.js.map +1 -0
- package/dist/chunk-RF7JSNXJ.js +2 -0
- package/dist/chunk-RF7JSNXJ.js.map +1 -0
- package/dist/chunk-RFTC5UVB.js +126 -0
- package/dist/chunk-RFTC5UVB.js.map +1 -0
- package/dist/chunk-RHVYRQN4.js +201 -0
- package/dist/chunk-RHVYRQN4.js.map +1 -0
- package/dist/chunk-RHXVQZOW.js +2 -0
- package/dist/chunk-RHXVQZOW.js.map +1 -0
- package/dist/chunk-RIYDAMSQ.js +25 -0
- package/dist/chunk-RIYDAMSQ.js.map +1 -0
- package/dist/chunk-RMSMTLXH.js +2 -0
- package/dist/chunk-RMSMTLXH.js.map +1 -0
- package/dist/chunk-RRYWMYGI.js +14 -0
- package/dist/chunk-RRYWMYGI.js.map +1 -0
- package/dist/chunk-RTHCX2TG.js +59 -0
- package/dist/chunk-RTHCX2TG.js.map +1 -0
- package/dist/chunk-RYPK72YP.js +395 -0
- package/dist/chunk-RYPK72YP.js.map +1 -0
- package/dist/chunk-SCCBEFVK.js +187 -0
- package/dist/chunk-SCCBEFVK.js.map +1 -0
- package/dist/chunk-SEGTBIR4.js +110 -0
- package/dist/chunk-SEGTBIR4.js.map +1 -0
- package/dist/chunk-SGBCLZQF.js +38 -0
- package/dist/chunk-SGBCLZQF.js.map +1 -0
- package/dist/chunk-SLDJYJEG.js +133 -0
- package/dist/chunk-SLDJYJEG.js.map +1 -0
- package/dist/chunk-SMTAPQEQ.js +2 -0
- package/dist/chunk-SMTAPQEQ.js.map +1 -0
- package/dist/chunk-SS6EOZKZ.js +2 -0
- package/dist/chunk-SS6EOZKZ.js.map +1 -0
- package/dist/chunk-SSQG36MH.js +226 -0
- package/dist/chunk-SSQG36MH.js.map +1 -0
- package/dist/chunk-SWQCCR6Q.js +140 -0
- package/dist/chunk-SWQCCR6Q.js.map +1 -0
- package/dist/chunk-T2XEMEN2.js +2 -0
- package/dist/chunk-T2XEMEN2.js.map +1 -0
- package/dist/chunk-T7JOWG2A.js +10 -0
- package/dist/chunk-T7JOWG2A.js.map +1 -0
- package/dist/chunk-TAQI4JTE.js +12 -0
- package/dist/chunk-TAQI4JTE.js.map +1 -0
- package/dist/chunk-TNOANK34.js +4483 -0
- package/dist/chunk-TNOANK34.js.map +1 -0
- package/dist/chunk-U5BZXNHW.js +80 -0
- package/dist/chunk-U5BZXNHW.js.map +1 -0
- package/dist/chunk-U756JCDK.js +27 -0
- package/dist/chunk-U756JCDK.js.map +1 -0
- package/dist/chunk-U7QYCYHC.js +2 -0
- package/dist/chunk-U7QYCYHC.js.map +1 -0
- package/dist/chunk-UANAVLMS.js +2 -0
- package/dist/chunk-UANAVLMS.js.map +1 -0
- package/dist/chunk-UCEVPLR5.js +2 -0
- package/dist/chunk-UCEVPLR5.js.map +1 -0
- package/dist/chunk-UCQDLRHR.js +31 -0
- package/dist/chunk-UCQDLRHR.js.map +1 -0
- package/dist/chunk-UFF7LLGU.js +2 -0
- package/dist/chunk-UFF7LLGU.js.map +1 -0
- package/dist/chunk-UG2T7LMX.js +198 -0
- package/dist/chunk-UG2T7LMX.js.map +1 -0
- package/dist/chunk-UG5TKXTK.js +2 -0
- package/dist/chunk-UG5TKXTK.js.map +1 -0
- package/dist/chunk-UPGIQXUY.js +24 -0
- package/dist/chunk-UPGIQXUY.js.map +1 -0
- package/dist/chunk-UQPW7INX.js +91 -0
- package/dist/chunk-UQPW7INX.js.map +1 -0
- package/dist/chunk-UQRYTMR7.js +2 -0
- package/dist/chunk-UQRYTMR7.js.map +1 -0
- package/dist/chunk-USI4LB3N.js +2 -0
- package/dist/chunk-USI4LB3N.js.map +1 -0
- package/dist/chunk-UUSOIPM2.js +69 -0
- package/dist/chunk-UUSOIPM2.js.map +1 -0
- package/dist/chunk-V2S5DINS.js +2 -0
- package/dist/chunk-V2S5DINS.js.map +1 -0
- package/dist/chunk-V3EQ6ACC.js +2 -0
- package/dist/chunk-V3EQ6ACC.js.map +1 -0
- package/dist/chunk-V5QCJHDA.js +173 -0
- package/dist/chunk-V5QCJHDA.js.map +1 -0
- package/dist/chunk-V6U75PIG.js +147 -0
- package/dist/chunk-V6U75PIG.js.map +1 -0
- package/dist/chunk-VC4GKLZL.js +111 -0
- package/dist/chunk-VC4GKLZL.js.map +1 -0
- package/dist/chunk-VFS52GGI.js +2 -0
- package/dist/chunk-VFS52GGI.js.map +1 -0
- package/dist/chunk-VH7GG77B.js +2 -0
- package/dist/chunk-VH7GG77B.js.map +1 -0
- package/dist/chunk-VHLPJ4XW.js +2 -0
- package/dist/chunk-VHLPJ4XW.js.map +1 -0
- package/dist/chunk-VLE5THFD.js +2 -0
- package/dist/chunk-VLE5THFD.js.map +1 -0
- package/dist/chunk-VORFRWM5.js +2 -0
- package/dist/chunk-VORFRWM5.js.map +1 -0
- package/dist/chunk-VQ2T3OEC.js +27 -0
- package/dist/chunk-VQ2T3OEC.js.map +1 -0
- package/dist/chunk-W26KFY35.js +32 -0
- package/dist/chunk-W26KFY35.js.map +1 -0
- package/dist/chunk-W35X6J5P.js +232 -0
- package/dist/chunk-W35X6J5P.js.map +1 -0
- package/dist/chunk-W7I2X6VI.js +2 -0
- package/dist/chunk-W7I2X6VI.js.map +1 -0
- package/dist/chunk-W7OIVERI.js +31 -0
- package/dist/chunk-W7OIVERI.js.map +1 -0
- package/dist/chunk-WEEVXQIM.js +45 -0
- package/dist/chunk-WEEVXQIM.js.map +1 -0
- package/dist/chunk-WEM6XJ7Z.js +75 -0
- package/dist/chunk-WEM6XJ7Z.js.map +1 -0
- package/dist/chunk-WKNOKJA3.js +42 -0
- package/dist/chunk-WKNOKJA3.js.map +1 -0
- package/dist/chunk-WNIVCHDP.js +2 -0
- package/dist/chunk-WNIVCHDP.js.map +1 -0
- package/dist/chunk-WOMO5CZ7.js +2 -0
- package/dist/chunk-WOMO5CZ7.js.map +1 -0
- package/dist/chunk-WYENWW3Y.js +2 -0
- package/dist/chunk-WYENWW3Y.js.map +1 -0
- package/dist/chunk-X4FE7UKP.js +2 -0
- package/dist/chunk-X4FE7UKP.js.map +1 -0
- package/dist/chunk-XGX3UFLD.js +2 -0
- package/dist/chunk-XGX3UFLD.js.map +1 -0
- package/dist/chunk-XGXCMA5M.js +2 -0
- package/dist/chunk-XGXCMA5M.js.map +1 -0
- package/dist/chunk-XJQADN6S.js +41 -0
- package/dist/chunk-XJQADN6S.js.map +1 -0
- package/dist/chunk-XYFEQHEM.js +2 -0
- package/dist/chunk-XYFEQHEM.js.map +1 -0
- package/dist/chunk-Y33ZFTMR.js +163 -0
- package/dist/chunk-Y33ZFTMR.js.map +1 -0
- package/dist/chunk-YA2QGLUL.js +32 -0
- package/dist/chunk-YA2QGLUL.js.map +1 -0
- package/dist/chunk-YCFOFNQF.js +28 -0
- package/dist/chunk-YCFOFNQF.js.map +1 -0
- package/dist/chunk-YFGFNFVW.js +59 -0
- package/dist/chunk-YFGFNFVW.js.map +1 -0
- package/dist/chunk-YFKKMDJL.js +35 -0
- package/dist/chunk-YFKKMDJL.js.map +1 -0
- package/dist/chunk-YHVXYOL6.js +80 -0
- package/dist/chunk-YHVXYOL6.js.map +1 -0
- package/dist/chunk-YIFB24WW.js +37 -0
- package/dist/chunk-YIFB24WW.js.map +1 -0
- package/dist/chunk-YK4H7VWM.js +2 -0
- package/dist/chunk-YK4H7VWM.js.map +1 -0
- package/dist/chunk-YMFEBGTU.js +2 -0
- package/dist/chunk-YMFEBGTU.js.map +1 -0
- package/dist/chunk-YUFDC6RW.js +55 -0
- package/dist/chunk-YUFDC6RW.js.map +1 -0
- package/dist/chunk-YZVXIPBC.js +2 -0
- package/dist/chunk-YZVXIPBC.js.map +1 -0
- package/dist/chunk-Z44RRTMX.js +2 -0
- package/dist/chunk-Z44RRTMX.js.map +1 -0
- package/dist/chunk-Z4CYBG3H.js +2 -0
- package/dist/chunk-Z4CYBG3H.js.map +1 -0
- package/dist/chunk-ZALGMUSW.js +236 -0
- package/dist/chunk-ZALGMUSW.js.map +1 -0
- package/dist/chunk-ZE2H4J3P.js +2 -0
- package/dist/chunk-ZE2H4J3P.js.map +1 -0
- package/dist/chunk-ZEMTALKO.js +2 -0
- package/dist/chunk-ZEMTALKO.js.map +1 -0
- package/dist/chunk-ZFMM2NLA.js +169 -0
- package/dist/chunk-ZFMM2NLA.js.map +1 -0
- package/dist/chunk-ZI2OXD6L.js +244 -0
- package/dist/chunk-ZI2OXD6L.js.map +1 -0
- package/dist/chunk-ZRMF4YAS.js +158 -0
- package/dist/chunk-ZRMF4YAS.js.map +1 -0
- package/dist/chunk-ZSYT5H6U.js +178 -0
- package/dist/chunk-ZSYT5H6U.js.map +1 -0
- package/dist/chunk-ZXVPEQM5.js +2 -0
- package/dist/chunk-ZXVPEQM5.js.map +1 -0
- package/dist/components/accordion/accordion.js +16 -0
- package/dist/components/accordion/accordion.js.map +1 -0
- package/dist/components/accordion/index.js +17 -0
- package/dist/components/accordion/index.js.map +1 -0
- package/dist/components/advanced-group/advanced-group.js +18 -0
- package/dist/components/advanced-group/advanced-group.js.map +1 -0
- package/dist/components/advanced-group/index.js +18 -0
- package/dist/components/advanced-group/index.js.map +1 -0
- package/dist/components/alert/alert.js +16 -0
- package/dist/components/alert/alert.js.map +1 -0
- package/dist/components/alert/index.js +17 -0
- package/dist/components/alert/index.js.map +1 -0
- package/dist/components/alert-dialog/alert-dialog.js +30 -0
- package/dist/components/alert-dialog/alert-dialog.js.map +1 -0
- package/dist/components/alert-dialog/index.js +31 -0
- package/dist/components/alert-dialog/index.js.map +1 -0
- package/dist/components/ambient-field/ambient-field.css +59 -0
- package/dist/components/ambient-field/ambient-field.css.map +1 -0
- package/dist/components/ambient-field/ambient-field.js +15 -0
- package/dist/components/ambient-field/ambient-field.js.map +1 -0
- package/dist/components/ambient-field/index.css +59 -0
- package/dist/components/ambient-field/index.css.map +1 -0
- package/dist/components/ambient-field/index.js +16 -0
- package/dist/components/ambient-field/index.js.map +1 -0
- package/dist/components/app-shell/app-shell.js +14 -0
- package/dist/components/app-shell/app-shell.js.map +1 -0
- package/dist/components/app-shell/index.js +15 -0
- package/dist/components/app-shell/index.js.map +1 -0
- package/dist/components/app-sidebar/app-sidebar.js +31 -0
- package/dist/components/app-sidebar/app-sidebar.js.map +1 -0
- package/dist/components/app-sidebar/index.js +31 -0
- package/dist/components/app-sidebar/index.js.map +1 -0
- package/dist/components/aspect-ratio/aspect-ratio.js +9 -0
- package/dist/components/aspect-ratio/aspect-ratio.js.map +1 -0
- package/dist/components/aspect-ratio/index.js +10 -0
- package/dist/components/aspect-ratio/index.js.map +1 -0
- package/dist/components/attribution-panel/attribution-panel.js +24 -0
- package/dist/components/attribution-panel/attribution-panel.js.map +1 -0
- package/dist/components/attribution-panel/attribution-types.js +2 -0
- package/dist/components/attribution-panel/attribution-types.js.map +1 -0
- package/dist/components/attribution-panel/attributions.generated.js +9 -0
- package/dist/components/attribution-panel/attributions.generated.js.map +1 -0
- package/dist/components/attribution-panel/index.js +24 -0
- package/dist/components/attribution-panel/index.js.map +1 -0
- package/dist/components/avatar/avatar.js +14 -0
- package/dist/components/avatar/avatar.js.map +1 -0
- package/dist/components/avatar/index.js +15 -0
- package/dist/components/avatar/index.js.map +1 -0
- package/dist/components/badge/badge.js +16 -0
- package/dist/components/badge/badge.js.map +1 -0
- package/dist/components/badge/index.js +13 -0
- package/dist/components/badge/index.js.map +1 -0
- package/dist/components/bento-grid/bento-grid.js +16 -0
- package/dist/components/bento-grid/bento-grid.js.map +1 -0
- package/dist/components/bento-grid/index.js +16 -0
- package/dist/components/bento-grid/index.js.map +1 -0
- package/dist/components/bounded-number/bounded-number.js +24 -0
- package/dist/components/bounded-number/bounded-number.js.map +1 -0
- package/dist/components/bounded-number/index.js +24 -0
- package/dist/components/bounded-number/index.js.map +1 -0
- package/dist/components/breadcrumb/breadcrumb.js +28 -0
- package/dist/components/breadcrumb/breadcrumb.js.map +1 -0
- package/dist/components/breadcrumb/index.js +26 -0
- package/dist/components/breadcrumb/index.js.map +1 -0
- package/dist/components/button/button.js +12 -0
- package/dist/components/button/button.js.map +1 -0
- package/dist/components/button/index.js +13 -0
- package/dist/components/button/index.js.map +1 -0
- package/dist/components/button-group/button-group.js +18 -0
- package/dist/components/button-group/button-group.js.map +1 -0
- package/dist/components/button-group/index.js +19 -0
- package/dist/components/button-group/index.js.map +1 -0
- package/dist/components/calendar/calendar.js +12 -0
- package/dist/components/calendar/calendar.js.map +1 -0
- package/dist/components/calendar/index.js +13 -0
- package/dist/components/calendar/index.js.map +1 -0
- package/dist/components/card/card.js +27 -0
- package/dist/components/card/card.js.map +1 -0
- package/dist/components/card/index.js +27 -0
- package/dist/components/card/index.js.map +1 -0
- package/dist/components/carousel/carousel.js +24 -0
- package/dist/components/carousel/carousel.js.map +1 -0
- package/dist/components/carousel/index.js +24 -0
- package/dist/components/carousel/index.js.map +1 -0
- package/dist/components/change-review/change-review.js +34 -0
- package/dist/components/change-review/change-review.js.map +1 -0
- package/dist/components/change-review/index.js +34 -0
- package/dist/components/change-review/index.js.map +1 -0
- package/dist/components/checkbox/checkbox.js +10 -0
- package/dist/components/checkbox/checkbox.js.map +1 -0
- package/dist/components/checkbox/index.js +11 -0
- package/dist/components/checkbox/index.js.map +1 -0
- package/dist/components/collapsible/collapsible.js +14 -0
- package/dist/components/collapsible/collapsible.js.map +1 -0
- package/dist/components/collapsible/index.js +15 -0
- package/dist/components/collapsible/index.js.map +1 -0
- package/dist/components/collapsible-panel/index.js +11 -0
- package/dist/components/collapsible-panel/index.js.map +1 -0
- package/dist/components/collapsible-panel/use-collapsible-panel.js +11 -0
- package/dist/components/collapsible-panel/use-collapsible-panel.js.map +1 -0
- package/dist/components/color-picker/color-picker.js +18 -0
- package/dist/components/color-picker/color-picker.js.map +1 -0
- package/dist/components/color-picker/index.js +18 -0
- package/dist/components/color-picker/index.js.map +1 -0
- package/dist/components/combobox/combobox.js +28 -0
- package/dist/components/combobox/combobox.js.map +1 -0
- package/dist/components/combobox/index.js +28 -0
- package/dist/components/combobox/index.js.map +1 -0
- package/dist/components/command/command.js +39 -0
- package/dist/components/command/command.js.map +1 -0
- package/dist/components/command/index.js +39 -0
- package/dist/components/command/index.js.map +1 -0
- package/dist/components/command-chip/command-chip.js +17 -0
- package/dist/components/command-chip/command-chip.js.map +1 -0
- package/dist/components/command-chip/index.js +17 -0
- package/dist/components/command-chip/index.js.map +1 -0
- package/dist/components/command-trigger/command-trigger.js +12 -0
- package/dist/components/command-trigger/command-trigger.js.map +1 -0
- package/dist/components/command-trigger/index.js +13 -0
- package/dist/components/command-trigger/index.js.map +1 -0
- package/dist/components/confirm-dialog/confirm-dialog.js +20 -0
- package/dist/components/confirm-dialog/confirm-dialog.js.map +1 -0
- package/dist/components/confirm-dialog/index.js +20 -0
- package/dist/components/confirm-dialog/index.js.map +1 -0
- package/dist/components/context-menu/context-menu.js +36 -0
- package/dist/components/context-menu/context-menu.js.map +1 -0
- package/dist/components/context-menu/index.js +37 -0
- package/dist/components/context-menu/index.js.map +1 -0
- package/dist/components/context-rail/context-rail.js +35 -0
- package/dist/components/context-rail/context-rail.js.map +1 -0
- package/dist/components/context-rail/index.js +35 -0
- package/dist/components/context-rail/index.js.map +1 -0
- package/dist/components/copyable-value/copyable-value.js +19 -0
- package/dist/components/copyable-value/copyable-value.js.map +1 -0
- package/dist/components/copyable-value/index.js +17 -0
- package/dist/components/copyable-value/index.js.map +1 -0
- package/dist/components/date-picker/date-picker.js +21 -0
- package/dist/components/date-picker/date-picker.js.map +1 -0
- package/dist/components/date-picker/index.js +21 -0
- package/dist/components/date-picker/index.js.map +1 -0
- package/dist/components/date-range-picker/date-range-picker.js +22 -0
- package/dist/components/date-range-picker/date-range-picker.js.map +1 -0
- package/dist/components/date-range-picker/index.js +22 -0
- package/dist/components/date-range-picker/index.js.map +1 -0
- package/dist/components/descriptions/descriptions.js +12 -0
- package/dist/components/descriptions/descriptions.js.map +1 -0
- package/dist/components/descriptions/index.js +13 -0
- package/dist/components/descriptions/index.js.map +1 -0
- package/dist/components/dialog/dialog.js +41 -0
- package/dist/components/dialog/dialog.js.map +1 -0
- package/dist/components/dialog/index.js +45 -0
- package/dist/components/dialog/index.js.map +1 -0
- package/dist/components/dialog/use-dialog-dismiss-guard.js +10 -0
- package/dist/components/dialog/use-dialog-dismiss-guard.js.map +1 -0
- package/dist/components/drafting-marks/drafting-marks.js +14 -0
- package/dist/components/drafting-marks/drafting-marks.js.map +1 -0
- package/dist/components/drafting-marks/index.js +15 -0
- package/dist/components/drafting-marks/index.js.map +1 -0
- package/dist/components/drawer/drawer.js +26 -0
- package/dist/components/drawer/drawer.js.map +1 -0
- package/dist/components/drawer/index.js +27 -0
- package/dist/components/drawer/index.js.map +1 -0
- package/dist/components/dropdown-menu/dropdown-menu.js +38 -0
- package/dist/components/dropdown-menu/dropdown-menu.js.map +1 -0
- package/dist/components/dropdown-menu/index.js +39 -0
- package/dist/components/dropdown-menu/index.js.map +1 -0
- package/dist/components/empty-state/empty-state.js +15 -0
- package/dist/components/empty-state/empty-state.js.map +1 -0
- package/dist/components/empty-state/index.js +16 -0
- package/dist/components/empty-state/index.js.map +1 -0
- package/dist/components/error-state/error-state.js +15 -0
- package/dist/components/error-state/error-state.js.map +1 -0
- package/dist/components/error-state/index.js +16 -0
- package/dist/components/error-state/index.js.map +1 -0
- package/dist/components/expand-dialog/expand-dialog.js +28 -0
- package/dist/components/expand-dialog/expand-dialog.js.map +1 -0
- package/dist/components/expand-dialog/index.js +28 -0
- package/dist/components/expand-dialog/index.js.map +1 -0
- package/dist/components/field/field-context.js +11 -0
- package/dist/components/field/field-context.js.map +1 -0
- package/dist/components/field/field.js +23 -0
- package/dist/components/field/field.js.map +1 -0
- package/dist/components/field/index.js +23 -0
- package/dist/components/field/index.js.map +1 -0
- package/dist/components/field-row/field-row.js +14 -0
- package/dist/components/field-row/field-row.js.map +1 -0
- package/dist/components/field-row/index.js +14 -0
- package/dist/components/field-row/index.js.map +1 -0
- package/dist/components/file-upload/file-upload.js +28 -0
- package/dist/components/file-upload/file-upload.js.map +1 -0
- package/dist/components/file-upload/index.js +26 -0
- package/dist/components/file-upload/index.js.map +1 -0
- package/dist/components/form/form.js +27 -0
- package/dist/components/form/form.js.map +1 -0
- package/dist/components/hover-card/hover-card.js +14 -0
- package/dist/components/hover-card/hover-card.js.map +1 -0
- package/dist/components/hover-card/index.js +15 -0
- package/dist/components/hover-card/index.js.map +1 -0
- package/dist/components/icon-button/icon-button.js +14 -0
- package/dist/components/icon-button/icon-button.js.map +1 -0
- package/dist/components/icon-button/index.js +15 -0
- package/dist/components/icon-button/index.js.map +1 -0
- package/dist/components/input/index.js +11 -0
- package/dist/components/input/index.js.map +1 -0
- package/dist/components/input/input.js +10 -0
- package/dist/components/input/input.js.map +1 -0
- package/dist/components/input-group/index.js +31 -0
- package/dist/components/input-group/index.js.map +1 -0
- package/dist/components/input-group/input-group.js +30 -0
- package/dist/components/input-group/input-group.js.map +1 -0
- package/dist/components/input-otp/index.js +17 -0
- package/dist/components/input-otp/index.js.map +1 -0
- package/dist/components/input-otp/input-otp.js +17 -0
- package/dist/components/input-otp/input-otp.js.map +1 -0
- package/dist/components/install-tabs/index.js +28 -0
- package/dist/components/install-tabs/index.js.map +1 -0
- package/dist/components/install-tabs/install-tabs.js +28 -0
- package/dist/components/install-tabs/install-tabs.js.map +1 -0
- package/dist/components/integration-matrix/index.js +26 -0
- package/dist/components/integration-matrix/index.js.map +1 -0
- package/dist/components/integration-matrix/integration-matrix.js +26 -0
- package/dist/components/integration-matrix/integration-matrix.js.map +1 -0
- package/dist/components/kbd/index.js +11 -0
- package/dist/components/kbd/index.js.map +1 -0
- package/dist/components/kbd/kbd.js +10 -0
- package/dist/components/kbd/kbd.js.map +1 -0
- package/dist/components/key-value-editor/index.js +18 -0
- package/dist/components/key-value-editor/index.js.map +1 -0
- package/dist/components/key-value-editor/key-value-editor.js +18 -0
- package/dist/components/key-value-editor/key-value-editor.js.map +1 -0
- package/dist/components/keyboard-shortcuts/index.js +25 -0
- package/dist/components/keyboard-shortcuts/index.js.map +1 -0
- package/dist/components/keyboard-shortcuts/keyboard-shortcuts.js +25 -0
- package/dist/components/keyboard-shortcuts/keyboard-shortcuts.js.map +1 -0
- package/dist/components/label/index.js +11 -0
- package/dist/components/label/index.js.map +1 -0
- package/dist/components/label/label.js +10 -0
- package/dist/components/label/label.js.map +1 -0
- package/dist/components/link-preview/index.js +14 -0
- package/dist/components/link-preview/index.js.map +1 -0
- package/dist/components/link-preview/link-preview.js +14 -0
- package/dist/components/link-preview/link-preview.js.map +1 -0
- package/dist/components/list-editor/index.js +18 -0
- package/dist/components/list-editor/index.js.map +1 -0
- package/dist/components/list-editor/list-editor.js +18 -0
- package/dist/components/list-editor/list-editor.js.map +1 -0
- package/dist/components/loading-state/index.js +16 -0
- package/dist/components/loading-state/index.js.map +1 -0
- package/dist/components/loading-state/loading-state.js +15 -0
- package/dist/components/loading-state/loading-state.js.map +1 -0
- package/dist/components/locale-provider/index.js +16 -0
- package/dist/components/locale-provider/index.js.map +1 -0
- package/dist/components/locale-provider/locale-provider.js +13 -0
- package/dist/components/locale-provider/locale-provider.js.map +1 -0
- package/dist/components/locale-provider/messages.js +10 -0
- package/dist/components/locale-provider/messages.js.map +1 -0
- package/dist/components/match-highlight/index.js +15 -0
- package/dist/components/match-highlight/index.js.map +1 -0
- package/dist/components/match-highlight/match-highlight.js +14 -0
- package/dist/components/match-highlight/match-highlight.js.map +1 -0
- package/dist/components/mention-input/index.js +46 -0
- package/dist/components/mention-input/index.js.map +1 -0
- package/dist/components/mention-input/mention-input.js +33 -0
- package/dist/components/mention-input/mention-input.js.map +1 -0
- package/dist/components/mention-input/mention-value.js +20 -0
- package/dist/components/mention-input/mention-value.js.map +1 -0
- package/dist/components/menubar/index.js +39 -0
- package/dist/components/menubar/index.js.map +1 -0
- package/dist/components/menubar/menubar.js +38 -0
- package/dist/components/menubar/menubar.js.map +1 -0
- package/dist/components/meter/index.js +15 -0
- package/dist/components/meter/index.js.map +1 -0
- package/dist/components/meter/meter.js +15 -0
- package/dist/components/meter/meter.js.map +1 -0
- package/dist/components/metric-card/index.js +24 -0
- package/dist/components/metric-card/index.js.map +1 -0
- package/dist/components/metric-card/metric-card.js +24 -0
- package/dist/components/metric-card/metric-card.js.map +1 -0
- package/dist/components/model-picker/index.js +37 -0
- package/dist/components/model-picker/index.js.map +1 -0
- package/dist/components/model-picker/model-picker-state.js +13 -0
- package/dist/components/model-picker/model-picker-state.js.map +1 -0
- package/dist/components/model-picker/model-picker.js +37 -0
- package/dist/components/model-picker/model-picker.js.map +1 -0
- package/dist/components/nav-main/index.js +33 -0
- package/dist/components/nav-main/index.js.map +1 -0
- package/dist/components/nav-main/nav-main.js +33 -0
- package/dist/components/nav-main/nav-main.js.map +1 -0
- package/dist/components/nav-notifications/index.js +20 -0
- package/dist/components/nav-notifications/index.js.map +1 -0
- package/dist/components/nav-notifications/nav-notifications.js +20 -0
- package/dist/components/nav-notifications/nav-notifications.js.map +1 -0
- package/dist/components/nav-user/index.js +35 -0
- package/dist/components/nav-user/index.js.map +1 -0
- package/dist/components/nav-user/nav-user.js +35 -0
- package/dist/components/nav-user/nav-user.js.map +1 -0
- package/dist/components/navigation-menu/index.js +25 -0
- package/dist/components/navigation-menu/index.js.map +1 -0
- package/dist/components/navigation-menu/navigation-menu.js +25 -0
- package/dist/components/navigation-menu/navigation-menu.js.map +1 -0
- package/dist/components/number-input/index.js +22 -0
- package/dist/components/number-input/index.js.map +1 -0
- package/dist/components/number-input/number-input.js +22 -0
- package/dist/components/number-input/number-input.js.map +1 -0
- package/dist/components/page-shell/index.js +11 -0
- package/dist/components/page-shell/index.js.map +1 -0
- package/dist/components/page-shell/page-shell.js +10 -0
- package/dist/components/page-shell/page-shell.js.map +1 -0
- package/dist/components/pagination/index.js +28 -0
- package/dist/components/pagination/index.js.map +1 -0
- package/dist/components/pagination/pagination.js +28 -0
- package/dist/components/pagination/pagination.js.map +1 -0
- package/dist/components/parallax-plane/index.css +17 -0
- package/dist/components/parallax-plane/index.css.map +1 -0
- package/dist/components/parallax-plane/index.js +18 -0
- package/dist/components/parallax-plane/index.js.map +1 -0
- package/dist/components/parallax-plane/parallax-plane.css +17 -0
- package/dist/components/parallax-plane/parallax-plane.css.map +1 -0
- package/dist/components/parallax-plane/parallax-plane.js +18 -0
- package/dist/components/parallax-plane/parallax-plane.js.map +1 -0
- package/dist/components/popover/index.js +17 -0
- package/dist/components/popover/index.js.map +1 -0
- package/dist/components/popover/popover.js +16 -0
- package/dist/components/popover/popover.js.map +1 -0
- package/dist/components/progress/index.js +13 -0
- package/dist/components/progress/index.js.map +1 -0
- package/dist/components/progress/progress.js +12 -0
- package/dist/components/progress/progress.js.map +1 -0
- package/dist/components/radio-group/index.js +13 -0
- package/dist/components/radio-group/index.js.map +1 -0
- package/dist/components/radio-group/radio-group.js +12 -0
- package/dist/components/radio-group/radio-group.js.map +1 -0
- package/dist/components/rating/index.js +11 -0
- package/dist/components/rating/index.js.map +1 -0
- package/dist/components/rating/rating.js +11 -0
- package/dist/components/rating/rating.js.map +1 -0
- package/dist/components/resizable/index.js +15 -0
- package/dist/components/resizable/index.js.map +1 -0
- package/dist/components/resizable/resizable.js +14 -0
- package/dist/components/resizable/resizable.js.map +1 -0
- package/dist/components/reveal/index.js +15 -0
- package/dist/components/reveal/index.js.map +1 -0
- package/dist/components/reveal/reveal.js +14 -0
- package/dist/components/reveal/reveal.js.map +1 -0
- package/dist/components/reveal-on-enter/index.css +21 -0
- package/dist/components/reveal-on-enter/index.css.map +1 -0
- package/dist/components/reveal-on-enter/index.js +12 -0
- package/dist/components/reveal-on-enter/index.js.map +1 -0
- package/dist/components/reveal-on-enter/reveal-on-enter.css +21 -0
- package/dist/components/reveal-on-enter/reveal-on-enter.css.map +1 -0
- package/dist/components/reveal-on-enter/reveal-on-enter.js +12 -0
- package/dist/components/reveal-on-enter/reveal-on-enter.js.map +1 -0
- package/dist/components/revision-timeline/index.js +18 -0
- package/dist/components/revision-timeline/index.js.map +1 -0
- package/dist/components/revision-timeline/revision-timeline.js +18 -0
- package/dist/components/revision-timeline/revision-timeline.js.map +1 -0
- package/dist/components/schema-form/from-json-schema.js +13 -0
- package/dist/components/schema-form/from-json-schema.js.map +1 -0
- package/dist/components/schema-form/index.js +140 -0
- package/dist/components/schema-form/index.js.map +1 -0
- package/dist/components/schema-form/schema-form-spec.js +63 -0
- package/dist/components/schema-form/schema-form-spec.js.map +1 -0
- package/dist/components/schema-form/schema-form-store.js +21 -0
- package/dist/components/schema-form/schema-form-store.js.map +1 -0
- package/dist/components/schema-form/schema-form.js +77 -0
- package/dist/components/schema-form/schema-form.js.map +1 -0
- package/dist/components/scroll-area/index.js +13 -0
- package/dist/components/scroll-area/index.js.map +1 -0
- package/dist/components/scroll-area/scroll-area.js +12 -0
- package/dist/components/scroll-area/scroll-area.js.map +1 -0
- package/dist/components/section-header/index.js +11 -0
- package/dist/components/section-header/index.js.map +1 -0
- package/dist/components/section-header/section-header.js +10 -0
- package/dist/components/section-header/section-header.js.map +1 -0
- package/dist/components/segmented-field/index.js +17 -0
- package/dist/components/segmented-field/index.js.map +1 -0
- package/dist/components/segmented-field/segmented-field.js +17 -0
- package/dist/components/segmented-field/segmented-field.js.map +1 -0
- package/dist/components/select/index.js +26 -0
- package/dist/components/select/index.js.map +1 -0
- package/dist/components/select/select.js +26 -0
- package/dist/components/select/select.js.map +1 -0
- package/dist/components/separator/index.js +11 -0
- package/dist/components/separator/index.js.map +1 -0
- package/dist/components/separator/separator.js +10 -0
- package/dist/components/separator/separator.js.map +1 -0
- package/dist/components/sheet/index.js +30 -0
- package/dist/components/sheet/index.js.map +1 -0
- package/dist/components/sheet/sheet.js +30 -0
- package/dist/components/sheet/sheet.js.map +1 -0
- package/dist/components/side-dock/index.js +20 -0
- package/dist/components/side-dock/index.js.map +1 -0
- package/dist/components/side-dock/side-dock.js +20 -0
- package/dist/components/side-dock/side-dock.js.map +1 -0
- package/dist/components/sidebar/index.js +77 -0
- package/dist/components/sidebar/index.js.map +1 -0
- package/dist/components/sidebar/sidebar.js +77 -0
- package/dist/components/sidebar/sidebar.js.map +1 -0
- package/dist/components/skeleton/index.js +11 -0
- package/dist/components/skeleton/index.js.map +1 -0
- package/dist/components/skeleton/skeleton.js +10 -0
- package/dist/components/skeleton/skeleton.js.map +1 -0
- package/dist/components/skip-link/index.js +11 -0
- package/dist/components/skip-link/index.js.map +1 -0
- package/dist/components/skip-link/skip-link.js +10 -0
- package/dist/components/skip-link/skip-link.js.map +1 -0
- package/dist/components/slider/index.js +11 -0
- package/dist/components/slider/index.js.map +1 -0
- package/dist/components/slider/slider.js +10 -0
- package/dist/components/slider/slider.js.map +1 -0
- package/dist/components/slider-number/index.js +26 -0
- package/dist/components/slider-number/index.js.map +1 -0
- package/dist/components/slider-number/slider-number.js +26 -0
- package/dist/components/slider-number/slider-number.js.map +1 -0
- package/dist/components/sonner/index.js +13 -0
- package/dist/components/sonner/index.js.map +1 -0
- package/dist/components/sonner/sonner.js +13 -0
- package/dist/components/sonner/sonner.js.map +1 -0
- package/dist/components/spec-playground/index.js +23 -0
- package/dist/components/spec-playground/index.js.map +1 -0
- package/dist/components/spec-playground/locate-json-path.js +17 -0
- package/dist/components/spec-playground/locate-json-path.js.map +1 -0
- package/dist/components/spec-playground/spec-playground.js +23 -0
- package/dist/components/spec-playground/spec-playground.js.map +1 -0
- package/dist/components/spinner/index.js +14 -0
- package/dist/components/spinner/index.js.map +1 -0
- package/dist/components/spinner/spinner.js +14 -0
- package/dist/components/spinner/spinner.js.map +1 -0
- package/dist/components/split-panel/index.js +13 -0
- package/dist/components/split-panel/index.js.map +1 -0
- package/dist/components/split-panel/split-panel.js +12 -0
- package/dist/components/split-panel/split-panel.js.map +1 -0
- package/dist/components/state-panel/index.js +17 -0
- package/dist/components/state-panel/index.js.map +1 -0
- package/dist/components/state-panel/state-panel.js +17 -0
- package/dist/components/state-panel/state-panel.js.map +1 -0
- package/dist/components/status-badge/index.js +30 -0
- package/dist/components/status-badge/index.js.map +1 -0
- package/dist/components/status-badge/status-badge.js +29 -0
- package/dist/components/status-badge/status-badge.js.map +1 -0
- package/dist/components/surface-tour/index.css +21 -0
- package/dist/components/surface-tour/index.css.map +1 -0
- package/dist/components/surface-tour/index.js +36 -0
- package/dist/components/surface-tour/index.js.map +1 -0
- package/dist/components/surface-tour/surface-tour.css +21 -0
- package/dist/components/surface-tour/surface-tour.css.map +1 -0
- package/dist/components/surface-tour/surface-tour.js +36 -0
- package/dist/components/surface-tour/surface-tour.js.map +1 -0
- package/dist/components/switch/index.js +11 -0
- package/dist/components/switch/index.js.map +1 -0
- package/dist/components/switch/switch.js +10 -0
- package/dist/components/switch/switch.js.map +1 -0
- package/dist/components/table/index.js +28 -0
- package/dist/components/table/index.js.map +1 -0
- package/dist/components/table/table.js +28 -0
- package/dist/components/table/table.js.map +1 -0
- package/dist/components/tabs/index.js +22 -0
- package/dist/components/tabs/index.js.map +1 -0
- package/dist/components/tabs/tabs.js +22 -0
- package/dist/components/tabs/tabs.js.map +1 -0
- package/dist/components/tag-input/index.js +21 -0
- package/dist/components/tag-input/index.js.map +1 -0
- package/dist/components/tag-input/tag-input.js +21 -0
- package/dist/components/tag-input/tag-input.js.map +1 -0
- package/dist/components/team-switcher/index.js +33 -0
- package/dist/components/team-switcher/index.js.map +1 -0
- package/dist/components/team-switcher/team-switcher.js +33 -0
- package/dist/components/team-switcher/team-switcher.js.map +1 -0
- package/dist/components/textarea/index.js +11 -0
- package/dist/components/textarea/index.js.map +1 -0
- package/dist/components/textarea/textarea.js +10 -0
- package/dist/components/textarea/textarea.js.map +1 -0
- package/dist/components/theme-family-switch/index.js +19 -0
- package/dist/components/theme-family-switch/index.js.map +1 -0
- package/dist/components/theme-family-switch/theme-family-switch.js +19 -0
- package/dist/components/theme-family-switch/theme-family-switch.js.map +1 -0
- package/dist/components/theme-switcher/index.js +24 -0
- package/dist/components/theme-switcher/index.js.map +1 -0
- package/dist/components/theme-switcher/theme-switcher.js +21 -0
- package/dist/components/theme-switcher/theme-switcher.js.map +1 -0
- package/dist/components/theme-switcher/use-theme-transition.js +10 -0
- package/dist/components/theme-switcher/use-theme-transition.js.map +1 -0
- package/dist/components/timeline/index.js +18 -0
- package/dist/components/timeline/index.js.map +1 -0
- package/dist/components/timeline/timeline.js +19 -0
- package/dist/components/timeline/timeline.js.map +1 -0
- package/dist/components/toggle/index.js +13 -0
- package/dist/components/toggle/index.js.map +1 -0
- package/dist/components/toggle/toggle.js +12 -0
- package/dist/components/toggle/toggle.js.map +1 -0
- package/dist/components/toggle-group/index.js +15 -0
- package/dist/components/toggle-group/index.js.map +1 -0
- package/dist/components/toggle-group/toggle-group.js +15 -0
- package/dist/components/toggle-group/toggle-group.js.map +1 -0
- package/dist/components/token-spotlight/index.css +25 -0
- package/dist/components/token-spotlight/index.css.map +1 -0
- package/dist/components/token-spotlight/index.js +23 -0
- package/dist/components/token-spotlight/index.js.map +1 -0
- package/dist/components/token-spotlight/token-spotlight.css +25 -0
- package/dist/components/token-spotlight/token-spotlight.css.map +1 -0
- package/dist/components/token-spotlight/token-spotlight.js +23 -0
- package/dist/components/token-spotlight/token-spotlight.js.map +1 -0
- package/dist/components/token-spotlight/token-value-format.js +11 -0
- package/dist/components/token-spotlight/token-value-format.js.map +1 -0
- package/dist/components/toolbar/index.js +27 -0
- package/dist/components/toolbar/index.js.map +1 -0
- package/dist/components/toolbar/toolbar.js +27 -0
- package/dist/components/toolbar/toolbar.js.map +1 -0
- package/dist/components/tooltip/index.js +17 -0
- package/dist/components/tooltip/index.js.map +1 -0
- package/dist/components/tooltip/tooltip.js +16 -0
- package/dist/components/tooltip/tooltip.js.map +1 -0
- package/dist/components/top-nav/index.js +11 -0
- package/dist/components/top-nav/index.js.map +1 -0
- package/dist/components/top-nav/top-nav.js +10 -0
- package/dist/components/top-nav/top-nav.js.map +1 -0
- package/dist/components/transfer/index.js +26 -0
- package/dist/components/transfer/index.js.map +1 -0
- package/dist/components/transfer/transfer.js +26 -0
- package/dist/components/transfer/transfer.js.map +1 -0
- package/dist/components/tree/index.js +21 -0
- package/dist/components/tree/index.js.map +1 -0
- package/dist/components/tree/tree.js +18 -0
- package/dist/components/tree/tree.js.map +1 -0
- package/dist/components/tree/use-tree-keyboard.js +14 -0
- package/dist/components/tree/use-tree-keyboard.js.map +1 -0
- package/dist/components/tree-select/index.js +26 -0
- package/dist/components/tree-select/index.js.map +1 -0
- package/dist/components/tree-select/tree-select.js +26 -0
- package/dist/components/tree-select/tree-select.js.map +1 -0
- package/dist/components/typography/index.js +41 -0
- package/dist/components/typography/index.js.map +1 -0
- package/dist/components/typography/prose.js +29 -0
- package/dist/components/typography/prose.js.map +1 -0
- package/dist/components/typography/typography.js +18 -0
- package/dist/components/typography/typography.js.map +1 -0
- package/dist/components/view-toolbar/index.js +27 -0
- package/dist/components/view-toolbar/index.js.map +1 -0
- package/dist/components/view-toolbar/view-toolbar.js +27 -0
- package/dist/components/view-toolbar/view-toolbar.js.map +1 -0
- package/dist/components/virtual-select/index.js +26 -0
- package/dist/components/virtual-select/index.js.map +1 -0
- package/dist/components/virtual-select/use-virtual-listbox.js +10 -0
- package/dist/components/virtual-select/use-virtual-listbox.js.map +1 -0
- package/dist/components/virtual-select/virtual-select.js +23 -0
- package/dist/components/virtual-select/virtual-select.js.map +1 -0
- package/dist/components/wizard/index.js +19 -0
- package/dist/components/wizard/index.js.map +1 -0
- package/dist/components/wizard/wizard.js +19 -0
- package/dist/components/wizard/wizard.js.map +1 -0
- package/dist/components/workspace-picker/index.js +38 -0
- package/dist/components/workspace-picker/index.js.map +1 -0
- package/dist/components/workspace-picker/workspace-picker-state.js +9 -0
- package/dist/components/workspace-picker/workspace-picker-state.js.map +1 -0
- package/dist/components/workspace-picker/workspace-picker.js +35 -0
- package/dist/components/workspace-picker/workspace-picker.js.map +1 -0
- package/dist/form.js +13 -110
- package/dist/form.js.map +1 -1
- package/dist/illustrations/empty-list-illustration.js +11 -0
- package/dist/illustrations/empty-list-illustration.js.map +1 -0
- package/dist/illustrations/error-illustration.js +11 -0
- package/dist/illustrations/error-illustration.js.map +1 -0
- package/dist/illustrations/first-run-illustration.js +11 -0
- package/dist/illustrations/first-run-illustration.js.map +1 -0
- package/dist/illustrations/illustration-base.js +16 -0
- package/dist/illustrations/illustration-base.js.map +1 -0
- package/dist/illustrations/index.js +41 -0
- package/dist/illustrations/index.js.map +1 -0
- package/dist/illustrations/no-access-illustration.js +11 -0
- package/dist/illustrations/no-access-illustration.js.map +1 -0
- package/dist/illustrations/no-results-illustration.js +11 -0
- package/dist/illustrations/no-results-illustration.js.map +1 -0
- package/dist/illustrations/offline-illustration.js +11 -0
- package/dist/illustrations/offline-illustration.js.map +1 -0
- package/dist/illustrations/success-illustration.js +11 -0
- package/dist/illustrations/success-illustration.js.map +1 -0
- package/dist/index.css +122 -0
- package/dist/index.css.map +1 -0
- package/dist/index.d.ts +1312 -119
- package/dist/index.js +1002 -23939
- package/dist/index.js.map +1 -1
- package/dist/lib/agent-event-model.js +9 -0
- package/dist/lib/agent-event-model.js.map +1 -0
- package/dist/lib/approval-option.js +9 -0
- package/dist/lib/approval-option.js.map +1 -0
- package/dist/lib/check-result.js +3 -0
- package/dist/lib/check-result.js.map +1 -0
- package/dist/lib/cn.js +30 -7
- package/dist/lib/cn.js.map +1 -1
- package/dist/lib/color-scale.js +11 -0
- package/dist/lib/color-scale.js.map +1 -0
- package/dist/lib/compact-number.js +21 -0
- package/dist/lib/compact-number.js.map +1 -0
- package/dist/lib/csv.js +11 -0
- package/dist/lib/csv.js.map +1 -0
- package/dist/lib/diff-line.js +11 -0
- package/dist/lib/diff-line.js.map +1 -0
- package/dist/lib/diff-rows.js +12 -0
- package/dist/lib/diff-rows.js.map +1 -0
- package/dist/lib/document-address.js +13 -0
- package/dist/lib/document-address.js.map +1 -0
- package/dist/lib/download.js +11 -0
- package/dist/lib/download.js.map +1 -0
- package/dist/lib/file-icon.js +12 -0
- package/dist/lib/file-icon.js.map +1 -0
- package/dist/lib/file-kind.js +13 -0
- package/dist/lib/file-kind.js.map +1 -0
- package/dist/lib/file-source.js +10 -0
- package/dist/lib/file-source.js.map +1 -0
- package/dist/lib/format-duration.js +9 -0
- package/dist/lib/format-duration.js.map +1 -0
- package/dist/lib/has-renderable-content.js +9 -0
- package/dist/lib/has-renderable-content.js.map +1 -0
- package/dist/lib/merge-refs.js +10 -0
- package/dist/lib/merge-refs.js.map +1 -0
- package/dist/lib/operating-mode.js +9 -0
- package/dist/lib/operating-mode.js.map +1 -0
- package/dist/lib/optional-peer.js +11 -0
- package/dist/lib/optional-peer.js.map +1 -0
- package/dist/lib/session-launch.js +3 -0
- package/dist/lib/session-launch.js.map +1 -0
- package/dist/lib/slash-command.js +11 -0
- package/dist/lib/slash-command.js.map +1 -0
- package/dist/lib/streamdown-translations.js +15 -0
- package/dist/lib/streamdown-translations.js.map +1 -0
- package/dist/lib/trigger-query.js +11 -0
- package/dist/lib/trigger-query.js.map +1 -0
- package/dist/lib/use-controllable-state.js +10 -0
- package/dist/lib/use-controllable-state.js.map +1 -0
- package/dist/lib/use-copy-to-clipboard.js +12 -0
- package/dist/lib/use-copy-to-clipboard.js.map +1 -0
- package/dist/lib/use-mobile.js +10 -0
- package/dist/lib/use-mobile.js.map +1 -0
- package/dist/lib/use-scroll-progress.js +18 -0
- package/dist/lib/use-scroll-progress.js.map +1 -0
- package/package.json +13 -6
- package/src/__contract__/ambient-field.contract.test.tsx +49 -0
- package/src/__contract__/command-chip.contract.test.tsx +49 -0
- package/src/__contract__/install-tabs.contract.test.tsx +49 -0
- package/src/__contract__/integration-matrix.contract.test.tsx +49 -0
- package/src/__contract__/meter.contract.test.tsx +49 -0
- package/src/__contract__/parallax-plane.contract.test.tsx +49 -0
- package/src/__contract__/reveal-on-enter.contract.test.tsx +49 -0
- package/src/__contract__/spec-playground.contract.test.tsx +49 -0
- package/src/__contract__/surface-tour.contract.test.tsx +49 -0
- package/src/__contract__/theme-family-switch.contract.test.tsx +49 -0
- package/src/__contract__/token-spotlight.contract.test.tsx +49 -0
- package/src/blocks-comparison-table.stories.tsx +1 -1
- package/src/components/accordion/accordion.tsx +31 -15
- package/src/components/advanced-group/advanced-group.stories.tsx +2 -0
- package/src/components/alert/alert.tsx +13 -5
- package/src/components/alert-dialog/alert-dialog.tsx +1 -1
- package/src/components/ambient-field/ambient-field.css +98 -0
- package/src/components/ambient-field/ambient-field.stories.tsx +75 -0
- package/src/components/ambient-field/ambient-field.test.tsx +28 -0
- package/src/components/ambient-field/ambient-field.tsx +69 -0
- package/src/components/ambient-field/index.ts +7 -0
- package/src/components/app-shell/app-shell.stories.tsx +344 -1
- package/src/components/app-shell/app-shell.test.tsx +167 -0
- package/src/components/app-shell/app-shell.tsx +119 -5
- package/src/components/app-shell/index.ts +1 -1
- package/src/components/attribution-panel/attributions.generated.ts +77 -4
- package/src/components/badge/badge.stories.tsx +62 -0
- package/src/components/badge/badge.test.tsx +21 -0
- package/src/components/badge/badge.tsx +88 -8
- package/src/components/breadcrumb/breadcrumb.stories.tsx +1 -1
- package/src/components/breadcrumb/breadcrumb.tsx +2 -0
- package/src/components/button/button.stories.tsx +5 -1
- package/src/components/button/button.tsx +19 -8
- package/src/components/calendar/calendar.tsx +6 -1
- package/src/components/card/card.stories.tsx +73 -1
- package/src/components/card/card.test.tsx +29 -2
- package/src/components/card/card.tsx +77 -13
- package/src/components/card/index.ts +2 -0
- package/src/components/change-review/change-review.tsx +1 -1
- package/src/components/collapsible-panel/index.ts +1 -0
- package/src/components/collapsible-panel/use-collapsible-panel.ts +21 -2
- package/src/components/color-picker/color-picker.tsx +3 -3
- package/src/components/command/command.stories.tsx +64 -1
- package/src/components/command/command.test.tsx +73 -0
- package/src/components/command/command.tsx +73 -2
- package/src/components/command-chip/command-chip.stories.tsx +78 -0
- package/src/components/command-chip/command-chip.test.tsx +57 -0
- package/src/components/command-chip/command-chip.tsx +168 -0
- package/src/components/command-chip/index.ts +7 -0
- package/src/components/command-trigger/command-trigger.tsx +1 -1
- package/src/components/confirm-dialog/confirm-dialog.stories.tsx +2 -0
- package/src/components/context-menu/context-menu.stories.tsx +26 -0
- package/src/components/context-menu/context-menu.tsx +6 -6
- package/src/components/context-rail/context-rail.tsx +22 -4
- package/src/components/date-picker/date-picker.tsx +2 -0
- package/src/components/descriptions/descriptions.stories.tsx +6 -0
- package/src/components/descriptions/descriptions.test.tsx +18 -0
- package/src/components/descriptions/descriptions.tsx +33 -5
- package/src/components/descriptions/index.ts +1 -0
- package/src/components/dialog/dialog.stories.tsx +5 -0
- package/src/components/dialog/dialog.tsx +1 -1
- package/src/components/drafting-marks/drafting-marks.stories.tsx +88 -0
- package/src/components/drafting-marks/drafting-marks.test.tsx +55 -0
- package/src/components/drafting-marks/drafting-marks.tsx +120 -0
- package/src/components/drafting-marks/index.ts +7 -0
- package/src/components/dropdown-menu/dropdown-menu.stories.tsx +37 -0
- package/src/components/dropdown-menu/dropdown-menu.tsx +14 -6
- package/src/components/expand-dialog/expand-dialog.test.tsx +47 -0
- package/src/components/expand-dialog/expand-dialog.tsx +20 -5
- package/src/components/hover-card/hover-card.tsx +1 -1
- package/src/components/input/input.stories.tsx +17 -0
- package/src/components/input/input.tsx +1 -1
- package/src/components/input-group/input-group.stories.tsx +43 -6
- package/src/components/input-group/input-group.tsx +5 -2
- package/src/components/input-otp/input-otp.tsx +4 -2
- package/src/components/install-tabs/index.ts +8 -0
- package/src/components/install-tabs/install-tabs.stories.tsx +147 -0
- package/src/components/install-tabs/install-tabs.test.tsx +120 -0
- package/src/components/install-tabs/install-tabs.tsx +238 -0
- package/src/components/integration-matrix/index.ts +10 -0
- package/src/components/integration-matrix/integration-matrix.stories.tsx +171 -0
- package/src/components/integration-matrix/integration-matrix.test.tsx +89 -0
- package/src/components/integration-matrix/integration-matrix.tsx +237 -0
- package/src/components/locale-provider/messages.ts +252 -0
- package/src/components/mention-input/mention-input.tsx +1 -1
- package/src/components/menubar/menubar.stories.tsx +25 -0
- package/src/components/menubar/menubar.tsx +7 -7
- package/src/components/meter/index.ts +1 -0
- package/src/components/meter/meter.stories.tsx +102 -0
- package/src/components/meter/meter.test.tsx +61 -0
- package/src/components/meter/meter.tsx +173 -0
- package/src/components/metric-card/index.ts +6 -1
- package/src/components/metric-card/metric-card.stories.tsx +63 -0
- package/src/components/metric-card/metric-card.test.tsx +83 -0
- package/src/components/metric-card/metric-card.tsx +97 -14
- package/src/components/nav-user/nav-user.test.tsx +23 -1
- package/src/components/nav-user/nav-user.tsx +68 -53
- package/src/components/navigation-menu/navigation-menu.stories.tsx +42 -0
- package/src/components/navigation-menu/navigation-menu.tsx +1 -1
- package/src/components/page-shell/page-shell.stories.tsx +1 -1
- package/src/components/page-shell/page-shell.tsx +3 -2
- package/src/components/pagination/pagination.tsx +2 -0
- package/src/components/parallax-plane/index.ts +8 -0
- package/src/components/parallax-plane/parallax-plane.css +26 -0
- package/src/components/parallax-plane/parallax-plane.stories.tsx +88 -0
- package/src/components/parallax-plane/parallax-plane.test.tsx +57 -0
- package/src/components/parallax-plane/parallax-plane.tsx +80 -0
- package/src/components/popover/popover.tsx +1 -1
- package/src/components/progress/progress.stories.tsx +85 -0
- package/src/components/progress/progress.test.tsx +47 -0
- package/src/components/progress/progress.tsx +57 -3
- package/src/components/reveal-on-enter/index.ts +5 -0
- package/src/components/reveal-on-enter/reveal-on-enter.css +32 -0
- package/src/components/reveal-on-enter/reveal-on-enter.stories.tsx +100 -0
- package/src/components/reveal-on-enter/reveal-on-enter.test.tsx +87 -0
- package/src/components/reveal-on-enter/reveal-on-enter.tsx +75 -0
- package/src/components/revision-timeline/revision-timeline.tsx +1 -3
- package/src/components/schema-form/index.ts +2 -0
- package/src/components/schema-form/schema-form-spec.ts +36 -0
- package/src/components/schema-form/schema-form.stories.tsx +33 -0
- package/src/components/schema-form/schema-form.test.tsx +43 -0
- package/src/components/schema-form/schema-form.tsx +111 -4
- package/src/components/scroll-area/index.ts +1 -1
- package/src/components/scroll-area/scroll-area.tsx +47 -18
- package/src/components/section-header/section-header.stories.tsx +23 -0
- package/src/components/section-header/section-header.tsx +27 -9
- package/src/components/select/select.stories.tsx +17 -0
- package/src/components/select/select.test.tsx +28 -1
- package/src/components/select/select.tsx +3 -3
- package/src/components/sheet/sheet.tsx +1 -1
- package/src/components/side-dock/side-dock.stories.tsx +83 -0
- package/src/components/side-dock/side-dock.tsx +50 -16
- package/src/components/sidebar/sidebar.stories.tsx +3 -3
- package/src/components/sidebar/sidebar.test.tsx +31 -1
- package/src/components/sidebar/sidebar.tsx +40 -8
- package/src/components/skip-link/skip-link.stories.tsx +1 -0
- package/src/components/slider/slider.stories.tsx +13 -77
- package/src/components/spec-playground/index.ts +10 -0
- package/src/components/spec-playground/locate-json-path.ts +144 -0
- package/src/components/spec-playground/spec-playground.stories.tsx +156 -0
- package/src/components/spec-playground/spec-playground.test.tsx +106 -0
- package/src/components/spec-playground/spec-playground.tsx +351 -0
- package/src/components/state-panel/state-panel.stories.tsx +4 -2
- package/src/components/state-panel/state-panel.tsx +1 -1
- package/src/components/status-badge/status-badge.stories.tsx +53 -0
- package/src/components/status-badge/status-badge.test.tsx +37 -0
- package/src/components/status-badge/status-badge.tsx +75 -13
- package/src/components/surface-tour/index.ts +11 -0
- package/src/components/surface-tour/surface-tour.stories.tsx +150 -0
- package/src/components/surface-tour/surface-tour.test.tsx +117 -0
- package/src/components/surface-tour/surface-tour.tsx +456 -0
- package/src/components/table/table.tsx +5 -2
- package/src/components/tabs/tabs.stories.tsx +47 -1
- package/src/components/tabs/tabs.test.tsx +26 -0
- package/src/components/tabs/tabs.tsx +51 -11
- package/src/components/textarea/textarea.tsx +1 -1
- package/src/components/theme-family-switch/index.ts +10 -0
- package/src/components/theme-family-switch/theme-family-switch.stories.tsx +97 -0
- package/src/components/theme-family-switch/theme-family-switch.test.tsx +85 -0
- package/src/components/theme-family-switch/theme-family-switch.tsx +166 -0
- package/src/components/theme-switcher/theme-switcher.tsx +11 -4
- package/src/components/token-spotlight/index.ts +11 -0
- package/src/components/token-spotlight/token-spotlight.css +32 -0
- package/src/components/token-spotlight/token-spotlight.stories.tsx +161 -0
- package/src/components/token-spotlight/token-spotlight.test.tsx +323 -0
- package/src/components/token-spotlight/token-spotlight.tsx +379 -0
- package/src/components/token-spotlight/token-value-format.ts +205 -0
- package/src/components/top-nav/top-nav.test.tsx +59 -0
- package/src/components/top-nav/top-nav.tsx +36 -6
- package/src/components/tree/tree.stories.tsx +1 -1
- package/src/components/tree/tree.test.tsx +4 -4
- package/src/components/tree/tree.tsx +4 -4
- package/src/components/typography/typography.stories.tsx +7 -2
- package/src/components/typography/typography.tsx +8 -0
- package/src/components/view-toolbar/view-toolbar.stories.tsx +2 -1
- package/src/components/view-toolbar/view-toolbar.tsx +2 -2
- package/src/decoration.stories.tsx +243 -2
- package/src/index.ts +47 -0
- package/src/lib/cn.test.ts +49 -0
- package/src/lib/cn.ts +39 -7
- package/src/lib/color-scale.test.ts +386 -0
- package/src/lib/color-scale.ts +628 -0
- package/src/lib/compact-number.ts +118 -28
- package/src/lib/use-scroll-progress.ts +103 -0
- package/src/motion.stories.tsx +1 -0
- package/src/templates-object-detail-hub.stories.tsx +8 -8
- package/src/templates-screen-states.stories.tsx +1 -1
- package/src/templates-settings.stories.tsx +8 -3
- package/dist/chunk-FCH4ZN6G.js +0 -57
- package/dist/chunk-FCH4ZN6G.js.map +0 -1
|
@@ -0,0 +1,266 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import {
|
|
3
|
+
formatColorAsOklch,
|
|
4
|
+
formatLengthAsPx
|
|
5
|
+
} from "./chunk-HCU2JHPH.js";
|
|
6
|
+
import {
|
|
7
|
+
cn
|
|
8
|
+
} from "./chunk-FXWWDMMP.js";
|
|
9
|
+
|
|
10
|
+
// src/components/token-spotlight/token-spotlight.tsx
|
|
11
|
+
import * as React from "react";
|
|
12
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
13
|
+
var DEFAULT_TOKEN_SPOTLIGHT_LABELS = {
|
|
14
|
+
row: "Design tokens",
|
|
15
|
+
hint: "Highlights every element on this page that uses this token."
|
|
16
|
+
};
|
|
17
|
+
var TOKEN_SPOTLIGHT_SCAN_LIMIT = 2e3;
|
|
18
|
+
var SCAN_CHUNK_SIZE = 150;
|
|
19
|
+
var MARK_CHUNK_SIZE = 40;
|
|
20
|
+
var BORDER_SIDES = ["Top", "Right", "Bottom", "Left"];
|
|
21
|
+
var SVG_PAINTING_ELEMENTS = /* @__PURE__ */ new Set([
|
|
22
|
+
"circle",
|
|
23
|
+
"ellipse",
|
|
24
|
+
"line",
|
|
25
|
+
"path",
|
|
26
|
+
"polygon",
|
|
27
|
+
"polyline",
|
|
28
|
+
"rect",
|
|
29
|
+
"text",
|
|
30
|
+
"textPath",
|
|
31
|
+
"tspan"
|
|
32
|
+
]);
|
|
33
|
+
function hasOwnText(el) {
|
|
34
|
+
for (const node of Array.from(el.childNodes)) {
|
|
35
|
+
if (node.nodeType === 3 && node.nodeValue?.trim()) return true;
|
|
36
|
+
}
|
|
37
|
+
return false;
|
|
38
|
+
}
|
|
39
|
+
function consumerOf(el, style, matchValue) {
|
|
40
|
+
if (el instanceof SVGElement) {
|
|
41
|
+
if (!SVG_PAINTING_ELEMENTS.has(el.localName)) return null;
|
|
42
|
+
const paints = style.fill === matchValue || style.stroke === matchValue && parseFloat(style.strokeWidth) > 0;
|
|
43
|
+
return paints ? el.ownerSVGElement ?? el : null;
|
|
44
|
+
}
|
|
45
|
+
if (style.backgroundColor === matchValue) return el;
|
|
46
|
+
for (const side of BORDER_SIDES) {
|
|
47
|
+
if (style[`border${side}Color`] === matchValue && parseFloat(style[`border${side}Width`]) > 0) {
|
|
48
|
+
return el;
|
|
49
|
+
}
|
|
50
|
+
}
|
|
51
|
+
if (style.color === matchValue && hasOwnText(el)) return el;
|
|
52
|
+
return null;
|
|
53
|
+
}
|
|
54
|
+
function scheduleIdle(callback) {
|
|
55
|
+
const w = window;
|
|
56
|
+
if (typeof w.requestIdleCallback === "function") {
|
|
57
|
+
const handle2 = w.requestIdleCallback(callback, { timeout: 100 });
|
|
58
|
+
return () => w.cancelIdleCallback?.(handle2);
|
|
59
|
+
}
|
|
60
|
+
const handle = window.setTimeout(
|
|
61
|
+
() => callback({ timeRemaining: () => 50, didTimeout: true }),
|
|
62
|
+
0
|
|
63
|
+
);
|
|
64
|
+
return () => window.clearTimeout(handle);
|
|
65
|
+
}
|
|
66
|
+
function resolveTokenMatchValue(token, doc = document) {
|
|
67
|
+
const probe = doc.createElement("span");
|
|
68
|
+
probe.style.cssText = `position:fixed;inset:0;width:0;height:0;overflow:hidden;visibility:hidden;pointer-events:none;background-color:var(${token});`;
|
|
69
|
+
doc.body.appendChild(probe);
|
|
70
|
+
const value = getComputedStyle(probe).backgroundColor;
|
|
71
|
+
doc.body.removeChild(probe);
|
|
72
|
+
return value;
|
|
73
|
+
}
|
|
74
|
+
var supportsCss = (property, value) => typeof CSS !== "undefined" && typeof CSS.supports === "function" && CSS.supports(property, value);
|
|
75
|
+
function probeComputed(host, property, token) {
|
|
76
|
+
const doc = host.ownerDocument;
|
|
77
|
+
const probe = doc.createElement("span");
|
|
78
|
+
probe.style.cssText = `position:fixed;inset:0;height:0;overflow:hidden;visibility:hidden;pointer-events:none;${property}:var(${token});`;
|
|
79
|
+
host.appendChild(probe);
|
|
80
|
+
const value = getComputedStyle(probe).getPropertyValue(property);
|
|
81
|
+
host.removeChild(probe);
|
|
82
|
+
return value;
|
|
83
|
+
}
|
|
84
|
+
function resolveTokenDisplayValue(token, root) {
|
|
85
|
+
const target = root ?? (typeof document === "undefined" ? void 0 : document.documentElement);
|
|
86
|
+
if (!target) return "";
|
|
87
|
+
const raw = getComputedStyle(target).getPropertyValue(token).trim();
|
|
88
|
+
if (!raw) return "";
|
|
89
|
+
const direct = formatColorAsOklch(raw);
|
|
90
|
+
if (direct) return direct;
|
|
91
|
+
const host = target === target.ownerDocument.documentElement ? target.ownerDocument.body : target;
|
|
92
|
+
if (supportsCss("color", raw)) {
|
|
93
|
+
return formatColorAsOklch(probeComputed(host, "color", token)) ?? raw;
|
|
94
|
+
}
|
|
95
|
+
if (supportsCss("width", raw)) {
|
|
96
|
+
return formatLengthAsPx(probeComputed(host, "letter-spacing", token)) ?? raw;
|
|
97
|
+
}
|
|
98
|
+
return raw;
|
|
99
|
+
}
|
|
100
|
+
var isEmptyMatchValue = (value) => value === "" || value === "rgba(0, 0, 0, 0)" || value === "transparent";
|
|
101
|
+
function scanForConsumers(root, matchValue, limit, onDone) {
|
|
102
|
+
if (isEmptyMatchValue(matchValue)) {
|
|
103
|
+
onDone([]);
|
|
104
|
+
return () => {
|
|
105
|
+
};
|
|
106
|
+
}
|
|
107
|
+
const candidates = Array.from(root.querySelectorAll("*")).slice(0, limit);
|
|
108
|
+
const found = /* @__PURE__ */ new Set();
|
|
109
|
+
let index = 0;
|
|
110
|
+
let cancelled = false;
|
|
111
|
+
let cancelIdle = () => {
|
|
112
|
+
};
|
|
113
|
+
const step = (deadline) => {
|
|
114
|
+
if (cancelled) return;
|
|
115
|
+
let examinedInSlice = 0;
|
|
116
|
+
while (index < candidates.length && examinedInSlice < SCAN_CHUNK_SIZE && (deadline.timeRemaining() > 0 || deadline.didTimeout)) {
|
|
117
|
+
const el = candidates[index++];
|
|
118
|
+
examinedInSlice++;
|
|
119
|
+
if (!(el instanceof HTMLElement) && !(el instanceof SVGElement)) continue;
|
|
120
|
+
const consumer = consumerOf(el, getComputedStyle(el), matchValue);
|
|
121
|
+
if (consumer) found.add(consumer);
|
|
122
|
+
}
|
|
123
|
+
if (index < candidates.length) {
|
|
124
|
+
cancelIdle = scheduleIdle(step);
|
|
125
|
+
} else {
|
|
126
|
+
onDone(Array.from(found));
|
|
127
|
+
}
|
|
128
|
+
};
|
|
129
|
+
cancelIdle = scheduleIdle(step);
|
|
130
|
+
return () => {
|
|
131
|
+
cancelled = true;
|
|
132
|
+
cancelIdle();
|
|
133
|
+
};
|
|
134
|
+
}
|
|
135
|
+
function writeMarksInSlices(elements, name, written) {
|
|
136
|
+
let index = 0;
|
|
137
|
+
let cancelled = false;
|
|
138
|
+
let cancelIdle = () => {
|
|
139
|
+
};
|
|
140
|
+
const step = () => {
|
|
141
|
+
if (cancelled) return;
|
|
142
|
+
const end = Math.min(index + MARK_CHUNK_SIZE, elements.length);
|
|
143
|
+
for (const el of elements.slice(index, end)) {
|
|
144
|
+
el.setAttribute("data-token-consumer", name);
|
|
145
|
+
written.push(el);
|
|
146
|
+
}
|
|
147
|
+
index = end;
|
|
148
|
+
if (index < elements.length) cancelIdle = scheduleIdle(step);
|
|
149
|
+
};
|
|
150
|
+
if (elements.length > 0) cancelIdle = scheduleIdle(step);
|
|
151
|
+
return () => {
|
|
152
|
+
cancelled = true;
|
|
153
|
+
cancelIdle();
|
|
154
|
+
};
|
|
155
|
+
}
|
|
156
|
+
function useRootAttribute(name) {
|
|
157
|
+
const [value, setValue] = React.useState(
|
|
158
|
+
() => typeof document === "undefined" ? "" : document.documentElement.getAttribute(name) ?? ""
|
|
159
|
+
);
|
|
160
|
+
React.useEffect(() => {
|
|
161
|
+
if (typeof MutationObserver === "undefined") return;
|
|
162
|
+
const root = document.documentElement;
|
|
163
|
+
const observer = new MutationObserver(() => {
|
|
164
|
+
setValue(root.getAttribute(name) ?? "");
|
|
165
|
+
});
|
|
166
|
+
observer.observe(root, { attributes: true, attributeFilter: [name] });
|
|
167
|
+
return () => observer.disconnect();
|
|
168
|
+
}, [name]);
|
|
169
|
+
return value;
|
|
170
|
+
}
|
|
171
|
+
var TokenSpotlight = React.forwardRef(
|
|
172
|
+
function TokenSpotlight2({
|
|
173
|
+
tokens,
|
|
174
|
+
onSpotlight,
|
|
175
|
+
scanLimit = TOKEN_SPOTLIGHT_SCAN_LIMIT,
|
|
176
|
+
labels: labelsProp,
|
|
177
|
+
className,
|
|
178
|
+
...props
|
|
179
|
+
}, ref) {
|
|
180
|
+
const labels = { ...DEFAULT_TOKEN_SPOTLIGHT_LABELS, ...labelsProp };
|
|
181
|
+
const theme = useRootAttribute("data-theme");
|
|
182
|
+
const decoration = useRootAttribute("data-decoration");
|
|
183
|
+
const [active, setActive] = React.useState(null);
|
|
184
|
+
const consumersRef = React.useRef([]);
|
|
185
|
+
const [displayValues, setDisplayValues] = React.useState({});
|
|
186
|
+
React.useEffect(() => {
|
|
187
|
+
const next = {};
|
|
188
|
+
for (const { token } of tokens) next[token] = resolveTokenDisplayValue(token);
|
|
189
|
+
setDisplayValues(next);
|
|
190
|
+
}, [theme, decoration, tokens]);
|
|
191
|
+
const clearConsumers = React.useCallback(() => {
|
|
192
|
+
for (const el of consumersRef.current) el.removeAttribute("data-token-consumer");
|
|
193
|
+
consumersRef.current = [];
|
|
194
|
+
}, []);
|
|
195
|
+
React.useEffect(() => {
|
|
196
|
+
const root = document.documentElement;
|
|
197
|
+
if (!active) {
|
|
198
|
+
delete root.dataset.tokenSpotlight;
|
|
199
|
+
clearConsumers();
|
|
200
|
+
onSpotlight?.(null);
|
|
201
|
+
return;
|
|
202
|
+
}
|
|
203
|
+
const bareToken = active.replace(/^--/, "");
|
|
204
|
+
root.dataset.tokenSpotlight = bareToken;
|
|
205
|
+
onSpotlight?.(active);
|
|
206
|
+
const matchValue = resolveTokenMatchValue(active);
|
|
207
|
+
let cancelMarks = () => {
|
|
208
|
+
};
|
|
209
|
+
const cancelScan = scanForConsumers(document.body, matchValue, scanLimit, (elements) => {
|
|
210
|
+
clearConsumers();
|
|
211
|
+
cancelMarks = writeMarksInSlices(elements, bareToken, consumersRef.current);
|
|
212
|
+
});
|
|
213
|
+
return () => {
|
|
214
|
+
cancelScan();
|
|
215
|
+
cancelMarks();
|
|
216
|
+
clearConsumers();
|
|
217
|
+
delete root.dataset.tokenSpotlight;
|
|
218
|
+
};
|
|
219
|
+
}, [active, theme, scanLimit]);
|
|
220
|
+
return /* @__PURE__ */ jsx(
|
|
221
|
+
"div",
|
|
222
|
+
{
|
|
223
|
+
ref,
|
|
224
|
+
role: "group",
|
|
225
|
+
"aria-label": labels.row,
|
|
226
|
+
"data-slot": "token-spotlight",
|
|
227
|
+
className: cn("flex flex-wrap items-center gap-2", className),
|
|
228
|
+
...props,
|
|
229
|
+
children: tokens.map(({ token, label }) => /* @__PURE__ */ jsxs(
|
|
230
|
+
"button",
|
|
231
|
+
{
|
|
232
|
+
type: "button",
|
|
233
|
+
"data-slot": "token-spotlight-chip",
|
|
234
|
+
"data-active": active === token ? "" : void 0,
|
|
235
|
+
className: cn(
|
|
236
|
+
"focus-ring inline-flex items-center gap-1.5 rounded-full border px-2.5 py-1 text-meta font-medium",
|
|
237
|
+
"bg-card text-foreground transition-colors",
|
|
238
|
+
active === token ? "border-ring" : "border-border-strong"
|
|
239
|
+
),
|
|
240
|
+
onMouseEnter: () => setActive(token),
|
|
241
|
+
onMouseLeave: () => setActive((current) => current === token ? null : current),
|
|
242
|
+
onFocus: () => setActive(token),
|
|
243
|
+
onBlur: () => setActive((current) => current === token ? null : current),
|
|
244
|
+
children: [
|
|
245
|
+
/* @__PURE__ */ jsx("span", { "aria-hidden": "true", className: "font-mono text-code", children: token }),
|
|
246
|
+
/* @__PURE__ */ jsx("span", { className: "text-muted-foreground", children: displayValues[token] || "\u2014" }),
|
|
247
|
+
/* @__PURE__ */ jsx("span", { className: "sr-only", children: ` \u2014 ${label}. ${labels.hint}` })
|
|
248
|
+
]
|
|
249
|
+
},
|
|
250
|
+
token
|
|
251
|
+
))
|
|
252
|
+
}
|
|
253
|
+
);
|
|
254
|
+
}
|
|
255
|
+
);
|
|
256
|
+
TokenSpotlight.displayName = "TokenSpotlight";
|
|
257
|
+
|
|
258
|
+
export {
|
|
259
|
+
DEFAULT_TOKEN_SPOTLIGHT_LABELS,
|
|
260
|
+
TOKEN_SPOTLIGHT_SCAN_LIMIT,
|
|
261
|
+
resolveTokenMatchValue,
|
|
262
|
+
resolveTokenDisplayValue,
|
|
263
|
+
scanForConsumers,
|
|
264
|
+
TokenSpotlight
|
|
265
|
+
};
|
|
266
|
+
//# sourceMappingURL=chunk-EBNPVPR7.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/components/token-spotlight/token-spotlight.tsx"],"sourcesContent":["\"use client\";\n\nimport * as React from \"react\";\nimport { cn } from \"../../lib/cn\";\nimport { formatColorAsOklch, formatLengthAsPx } from \"./token-value-format\";\nimport \"./token-spotlight.css\";\n\n/** One chip: a semantic token plus its display label. */\nexport interface TokenSpotlightToken {\n /** The CSS custom property name, including its leading `--` (e.g. `--primary`). */\n token: string;\n /** Display label for the chip — supply your own to localize. */\n label: string;\n}\n\nexport interface TokenSpotlightLabels {\n /** Accessible name of the chip row (`role=\"group\"`). */\n row: string;\n /** sr-only text appended to each chip's accessible name, describing what hovering does. */\n hint: string;\n}\n\nexport const DEFAULT_TOKEN_SPOTLIGHT_LABELS: TokenSpotlightLabels = {\n row: \"Design tokens\",\n hint: \"Highlights every element on this page that uses this token.\",\n};\n\n/** Hard cap on elements a single scan pass examines (wave-4 ruling 26). */\nexport const TOKEN_SPOTLIGHT_SCAN_LIMIT = 2000;\n/** Elements examined per idle slice before yielding back to the browser. */\nconst SCAN_CHUNK_SIZE = 150;\n/** `data-token-consumer` marks written per idle slice, so the restyle + outline paint they cause\n * is spread over several frames instead of landing in one long task (#583). */\nconst MARK_CHUNK_SIZE = 40;\n\nconst BORDER_SIDES = [\"Top\", \"Right\", \"Bottom\", \"Left\"] as const;\n/** SVG elements that paint their own `fill`/`stroke`; containers (`svg`, `g`) only pass it on. */\nconst SVG_PAINTING_ELEMENTS = new Set([\n \"circle\",\n \"ellipse\",\n \"line\",\n \"path\",\n \"polygon\",\n \"polyline\",\n \"rect\",\n \"text\",\n \"textPath\",\n \"tspan\",\n]);\n\n/** True when `el` has a direct, non-whitespace text node — i.e. it paints glyphs in its own\n * `color`, rather than merely inheriting a `color` it never uses. */\nfunction hasOwnText(el: Element): boolean {\n for (const node of Array.from(el.childNodes)) {\n if (node.nodeType === 3 && node.nodeValue?.trim()) return true;\n }\n return false;\n}\n\n/**\n * The element that visibly CONSUMES `matchValue`, or `null` (#583). Only real paint counts:\n * - `background-color` on the element itself;\n * - a border side's colour only where that side's width is > 0 (the base layer gives every element\n * `border-color: var(--border)` at width 0 — that is not a consumer);\n * - `color` only on an element with its own non-empty text node (inherited `color` is not use);\n * - `fill`/`stroke` only on SVG shapes and text that paint (`stroke` needs a width > 0), reported\n * as their owning `<svg>` so an icon or chart is one outline, not one per path.\n */\nfunction consumerOf(el: Element, style: CSSStyleDeclaration, matchValue: string): Element | null {\n if (el instanceof SVGElement) {\n if (!SVG_PAINTING_ELEMENTS.has(el.localName)) return null;\n const paints =\n style.fill === matchValue ||\n (style.stroke === matchValue && parseFloat(style.strokeWidth) > 0);\n return paints ? (el.ownerSVGElement ?? el) : null;\n }\n if (style.backgroundColor === matchValue) return el;\n for (const side of BORDER_SIDES) {\n if (style[`border${side}Color`] === matchValue && parseFloat(style[`border${side}Width`]) > 0) {\n return el;\n }\n }\n if (style.color === matchValue && hasOwnText(el)) return el;\n return null;\n}\n\ntype IdleDeadline = { timeRemaining: () => number; didTimeout: boolean };\n\n/** `requestIdleCallback` where it exists; a same-shaped `setTimeout` fallback otherwise (Safari). */\nfunction scheduleIdle(callback: (deadline: IdleDeadline) => void): () => void {\n const w = window as Window & {\n requestIdleCallback?: (cb: (d: IdleDeadline) => void, opts?: { timeout: number }) => number;\n cancelIdleCallback?: (handle: number) => void;\n };\n if (typeof w.requestIdleCallback === \"function\") {\n const handle = w.requestIdleCallback(callback, { timeout: 100 });\n return () => w.cancelIdleCallback?.(handle);\n }\n const handle = window.setTimeout(\n () => callback({ timeRemaining: () => 50, didTimeout: true }),\n 0,\n );\n return () => window.clearTimeout(handle);\n}\n\n/**\n * Resolves `token`'s CURRENT value the same way the browser will compare it: an off-screen probe\n * element takes `background-color: var(token)`, so whatever colour-space normalisation the\n * browser applies happens identically for the probe and for every candidate element below —\n * string equality holds regardless of how a theme authored the value (oklch, rgb, …).\n */\nexport function resolveTokenMatchValue(token: string, doc: Document = document): string {\n const probe = doc.createElement(\"span\");\n probe.style.cssText =\n \"position:fixed;inset:0;width:0;height:0;overflow:hidden;visibility:hidden;pointer-events:none;\" +\n `background-color:var(${token});`;\n doc.body.appendChild(probe);\n const value = getComputedStyle(probe).backgroundColor;\n doc.body.removeChild(probe);\n return value;\n}\n\nconst supportsCss = (property: string, value: string): boolean =>\n typeof CSS !== \"undefined\" && typeof CSS.supports === \"function\" && CSS.supports(property, value);\n\n/** `property: var(token)` on an off-screen probe inside `host`, read back as the browser's\n * computed value — so `calc()`, `rem`, named colours and `color-mix()` arrive resolved. Lengths go\n * through `letter-spacing`: an absolute computed length (negatives allowed) that, unlike `width`,\n * is never quantised to layout units (`1.6px`, not `1.59375px`). */\nfunction probeComputed(host: Element, property: \"color\" | \"letter-spacing\", token: string): string {\n const doc = host.ownerDocument;\n const probe = doc.createElement(\"span\");\n probe.style.cssText =\n \"position:fixed;inset:0;height:0;overflow:hidden;visibility:hidden;pointer-events:none;\" +\n `${property}:var(${token});`;\n host.appendChild(probe);\n const value = getComputedStyle(probe).getPropertyValue(property);\n host.removeChild(probe);\n return value;\n}\n\n/**\n * What a chip shows a person for `token` on `root` (#585): a colour as a rounded `oklch(L C H)`\n * — never the `lab()` a CSS build may have transpiled it to — and a length as resolved px, never\n * a raw `calc()`. Anything else (a font stack, a shadow) is shown as authored. `\"\"` when there is\n * no `document` yet (SSR — the component fills it in after mount).\n */\nexport function resolveTokenDisplayValue(token: string, root?: HTMLElement): string {\n const target = root ?? (typeof document === \"undefined\" ? undefined : document.documentElement);\n if (!target) return \"\";\n const raw = getComputedStyle(target).getPropertyValue(token).trim();\n if (!raw) return \"\";\n const direct = formatColorAsOklch(raw);\n if (direct) return direct;\n // The probe must inherit `root`'s custom properties: `<html>` itself cannot host it visibly.\n const host = target === target.ownerDocument.documentElement ? target.ownerDocument.body : target;\n if (supportsCss(\"color\", raw)) {\n return formatColorAsOklch(probeComputed(host, \"color\", token)) ?? raw;\n }\n if (supportsCss(\"width\", raw)) {\n return formatLengthAsPx(probeComputed(host, \"letter-spacing\", token)) ?? raw;\n }\n return raw;\n}\n\nconst isEmptyMatchValue = (value: string) =>\n value === \"\" || value === \"rgba(0, 0, 0, 0)\" || value === \"transparent\";\n\n/**\n * Scans `root` in idle-time chunks for elements that visibly paint `matchValue` (from\n * {@link resolveTokenMatchValue}) — a background, a border side with width, their own text, or an\n * SVG shape's fill/stroke (reported as its `<svg>`) — capped at `limit` elements EXAMINED. Never a\n * long task, never inline styles (callers add/remove a `data-token-consumer` attribute instead).\n * Returns a canceller for effect cleanup.\n */\nexport function scanForConsumers(\n root: ParentNode,\n matchValue: string,\n limit: number,\n onDone: (elements: HTMLElement[]) => void,\n): () => void {\n if (isEmptyMatchValue(matchValue)) {\n onDone([]);\n return () => {};\n }\n const candidates = Array.from(root.querySelectorAll(\"*\")).slice(0, limit);\n const found = new Set<Element>();\n let index = 0;\n let cancelled = false;\n let cancelIdle = () => {};\n\n const step = (deadline: IdleDeadline) => {\n if (cancelled) return;\n let examinedInSlice = 0;\n while (\n index < candidates.length &&\n examinedInSlice < SCAN_CHUNK_SIZE &&\n (deadline.timeRemaining() > 0 || deadline.didTimeout)\n ) {\n const el = candidates[index++];\n examinedInSlice++;\n if (!(el instanceof HTMLElement) && !(el instanceof SVGElement)) continue;\n const consumer = consumerOf(el, getComputedStyle(el), matchValue);\n if (consumer) found.add(consumer);\n }\n if (index < candidates.length) {\n cancelIdle = scheduleIdle(step);\n } else {\n // An SVG consumer is its `<svg>` root — typed `HTMLElement[]` as before for compatibility.\n onDone(Array.from(found) as HTMLElement[]);\n }\n };\n cancelIdle = scheduleIdle(step);\n return () => {\n cancelled = true;\n cancelIdle();\n };\n}\n\n/**\n * Writes `data-token-consumer=\"<name>\"` onto `elements` in idle slices of {@link MARK_CHUNK_SIZE},\n * pushing each marked element onto `written` as it goes so the caller can always clear exactly\n * what landed — even mid-way. Returns a canceller that stops further slices (#583).\n */\nfunction writeMarksInSlices(elements: Element[], name: string, written: Element[]): () => void {\n let index = 0;\n let cancelled = false;\n let cancelIdle = () => {};\n const step = () => {\n if (cancelled) return;\n const end = Math.min(index + MARK_CHUNK_SIZE, elements.length);\n for (const el of elements.slice(index, end)) {\n el.setAttribute(\"data-token-consumer\", name);\n written.push(el);\n }\n index = end;\n if (index < elements.length) cancelIdle = scheduleIdle(step);\n };\n if (elements.length > 0) cancelIdle = scheduleIdle(step);\n return () => {\n cancelled = true;\n cancelIdle();\n };\n}\n\n/** Tracks one attribute of `document.documentElement`, so a change re-renders. */\nfunction useRootAttribute(name: \"data-theme\" | \"data-decoration\"): string {\n const [value, setValue] = React.useState<string>(() =>\n typeof document === \"undefined\" ? \"\" : (document.documentElement.getAttribute(name) ?? \"\"),\n );\n React.useEffect(() => {\n if (typeof MutationObserver === \"undefined\") return;\n const root = document.documentElement;\n const observer = new MutationObserver(() => {\n setValue(root.getAttribute(name) ?? \"\");\n });\n observer.observe(root, { attributes: true, attributeFilter: [name] });\n return () => observer.disconnect();\n }, [name]);\n return value;\n}\n\nexport interface TokenSpotlightProps extends Omit<\n React.HTMLAttributes<HTMLDivElement>,\n \"onSelect\"\n> {\n /** Chips to render, in order. */\n tokens: readonly TokenSpotlightToken[];\n /** Fires with the token on hover/focus, and `null` when the spotlight clears. */\n onSpotlight?: (token: string | null) => void;\n /** Upper bound on elements a scan pass examines. Default {@link TOKEN_SPOTLIGHT_SCAN_LIMIT}. */\n scanLimit?: number;\n labels?: Partial<TokenSpotlightLabels>;\n}\n\n/**\n * A row of token chips (concept §4.5, §5a \"Scroll choreography 5\"): hovering or focusing one sets\n * `data-token-spotlight` on `<html>` and marks every element on the page that resolves to the\n * same colour with `data-token-consumer` (never an inline style), so a stylesheet can draw the\n * highlight. `onSpotlight` lets the host tint an `AmbientField` to match. Each chip shows the\n * token's own resolved value, re-read on every theme change.\n */\nexport const TokenSpotlight = React.forwardRef<HTMLDivElement, TokenSpotlightProps>(\n function TokenSpotlight(\n {\n tokens,\n onSpotlight,\n scanLimit = TOKEN_SPOTLIGHT_SCAN_LIMIT,\n labels: labelsProp,\n className,\n ...props\n },\n ref,\n ) {\n const labels = { ...DEFAULT_TOKEN_SPOTLIGHT_LABELS, ...labelsProp };\n const theme = useRootAttribute(\"data-theme\");\n const decoration = useRootAttribute(\"data-decoration\");\n const [active, setActive] = React.useState<string | null>(null);\n const consumersRef = React.useRef<Element[]>([]);\n // Read once after mount and again on every theme or decoration switch (a decoration-scaled\n // token like `--radius` changes with `data-decoration`, #585) — never during SSR/hydration,\n // so the server and the first client render agree (both start from `{}`).\n const [displayValues, setDisplayValues] = React.useState<Record<string, string>>({});\n React.useEffect(() => {\n const next: Record<string, string> = {};\n for (const { token } of tokens) next[token] = resolveTokenDisplayValue(token);\n setDisplayValues(next);\n }, [theme, decoration, tokens]);\n\n const clearConsumers = React.useCallback(() => {\n for (const el of consumersRef.current) el.removeAttribute(\"data-token-consumer\");\n consumersRef.current = [];\n }, []);\n\n React.useEffect(() => {\n const root = document.documentElement;\n if (!active) {\n delete root.dataset.tokenSpotlight;\n clearConsumers();\n onSpotlight?.(null);\n return;\n }\n const bareToken = active.replace(/^--/, \"\");\n root.dataset.tokenSpotlight = bareToken;\n onSpotlight?.(active);\n const matchValue = resolveTokenMatchValue(active);\n let cancelMarks = () => {};\n const cancelScan = scanForConsumers(document.body, matchValue, scanLimit, (elements) => {\n clearConsumers();\n cancelMarks = writeMarksInSlices(elements, bareToken, consumersRef.current);\n });\n return () => {\n cancelScan();\n cancelMarks();\n clearConsumers();\n delete root.dataset.tokenSpotlight;\n };\n // `theme` re-runs the scan on a theme switch (Acceptance: \"re-scans consumers\"); `onSpotlight`\n // and `clearConsumers` are stable identities the caller/`useCallback` control.\n // eslint-disable-next-line react-hooks/exhaustive-deps -- see comment above\n }, [active, theme, scanLimit]);\n\n return (\n <div\n ref={ref}\n role=\"group\"\n aria-label={labels.row}\n data-slot=\"token-spotlight\"\n className={cn(\"flex flex-wrap items-center gap-2\", className)}\n {...props}\n >\n {tokens.map(({ token, label }) => (\n <button\n key={token}\n type=\"button\"\n data-slot=\"token-spotlight-chip\"\n data-active={active === token ? \"\" : undefined}\n className={cn(\n \"focus-ring inline-flex items-center gap-1.5 rounded-full border px-2.5 py-1 text-meta font-medium\",\n \"bg-card text-foreground transition-colors\",\n active === token ? \"border-ring\" : \"border-border-strong\",\n )}\n onMouseEnter={() => setActive(token)}\n onMouseLeave={() => setActive((current) => (current === token ? null : current))}\n onFocus={() => setActive(token)}\n onBlur={() => setActive((current) => (current === token ? null : current))}\n >\n <span aria-hidden=\"true\" className=\"font-mono text-code\">\n {token}\n </span>\n <span className=\"text-muted-foreground\">{displayValues[token] || \"—\"}</span>\n <span className=\"sr-only\">{` — ${label}. ${labels.hint}`}</span>\n </button>\n ))}\n </div>\n );\n },\n);\nTokenSpot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AA,YAEC,MAAK;AAAA,YACL,aAAU;AAAA,YACV,eAAa,WAAW,QAAQ,KAAK;AAAA,YACrC,WAAW;AAAA,cACT;AAAA,cACA;AAAA,cACA,WAAW,QAAQ,gBAAgB;AAAA,YACrC;AAAA,YACA,cAAc,MAAM,UAAU,KAAK;AAAA,YACnC,cAAc,MAAM,UAAU,CAAC,YAAa,YAAY,QAAQ,OAAO,OAAQ;AAAA,YAC/E,SAAS,MAAM,UAAU,KAAK;AAAA,YAC9B,QAAQ,MAAM,UAAU,CAAC,YAAa,YAAY,QAAQ,OAAO,OAAQ;AAAA,YAEzE;AAAA,kCAAC,UAAK,eAAY,QAAO,WAAU,uBAChC,iBACH;AAAA,cACA,oBAAC,UAAK,WAAU,yBAAyB,wBAAc,KAAK,KAAK,UAAI;AAAA,cACrE,oBAAC,UAAK,WAAU,WAAW,qBAAM,KAAK,KAAK,OAAO,IAAI,IAAG;AAAA;AAAA;AAAA,UAlBpD;AAAA,QAmBP,CACD;AAAA;AAAA,IACH;AAAA,EAEJ;AACF;AACA,eAAe,cAAc;","names":["handle","TokenSpotlight"]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import {
|
|
3
|
+
cn
|
|
4
|
+
} from "./chunk-FXWWDMMP.js";
|
|
5
|
+
|
|
6
|
+
// src/components/resizable/resizable.tsx
|
|
7
|
+
import { forwardRef } from "react";
|
|
8
|
+
import { GripVertical } from "lucide-react";
|
|
9
|
+
import * as ResizablePrimitive from "react-resizable-panels";
|
|
10
|
+
import { jsx } from "react/jsx-runtime";
|
|
11
|
+
var ResizablePanelGroup = forwardRef(function ResizablePanelGroup2({ className, ...props }, ref) {
|
|
12
|
+
return /* @__PURE__ */ jsx(
|
|
13
|
+
ResizablePrimitive.PanelGroup,
|
|
14
|
+
{
|
|
15
|
+
ref,
|
|
16
|
+
className: cn("flex size-full data-[panel-group-direction=vertical]:flex-col", className),
|
|
17
|
+
...props
|
|
18
|
+
}
|
|
19
|
+
);
|
|
20
|
+
});
|
|
21
|
+
var ResizablePanel = ResizablePrimitive.Panel;
|
|
22
|
+
var DEFAULT_HIT_AREA_MARGINS = {
|
|
23
|
+
coarse: 15,
|
|
24
|
+
fine: 8
|
|
25
|
+
};
|
|
26
|
+
function ResizableHandle({
|
|
27
|
+
withHandle,
|
|
28
|
+
className,
|
|
29
|
+
hitAreaMargins,
|
|
30
|
+
...props
|
|
31
|
+
}) {
|
|
32
|
+
return /* @__PURE__ */ jsx(
|
|
33
|
+
ResizablePrimitive.PanelResizeHandle,
|
|
34
|
+
{
|
|
35
|
+
hitAreaMargins: hitAreaMargins ?? DEFAULT_HIT_AREA_MARGINS,
|
|
36
|
+
className: cn(
|
|
37
|
+
"relative flex w-px items-center justify-center bg-border after:absolute after:inset-y-0 after:left-1/2 after:w-1 after:-translate-x-1/2 focus-ring",
|
|
38
|
+
"data-[panel-group-direction=vertical]:h-px data-[panel-group-direction=vertical]:w-full data-[panel-group-direction=vertical]:after:left-0 data-[panel-group-direction=vertical]:after:h-1 data-[panel-group-direction=vertical]:after:w-full data-[panel-group-direction=vertical]:after:-translate-y-1/2 data-[panel-group-direction=vertical]:after:translate-x-0",
|
|
39
|
+
className
|
|
40
|
+
),
|
|
41
|
+
...props,
|
|
42
|
+
children: withHandle && /* @__PURE__ */ jsx("div", { className: "z-10 flex h-4 w-3 items-center justify-center rounded-sm border bg-border", children: /* @__PURE__ */ jsx(GripVertical, { className: "size-2.5" }) })
|
|
43
|
+
}
|
|
44
|
+
);
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
export {
|
|
48
|
+
ResizablePanelGroup,
|
|
49
|
+
ResizablePanel,
|
|
50
|
+
ResizableHandle
|
|
51
|
+
};
|
|
52
|
+
//# sourceMappingURL=chunk-EJ3XWNY3.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/components/resizable/resizable.tsx"],"sourcesContent":["import { forwardRef, type ForwardRefExoticComponent, type RefAttributes } from \"react\";\nimport { GripVertical } from \"lucide-react\";\nimport * as ResizablePrimitive from \"react-resizable-panels\";\nimport { cn } from \"../../lib/cn\";\n\nexport const ResizablePanelGroup: ForwardRefExoticComponent<\n React.ComponentProps<typeof ResizablePrimitive.PanelGroup> &\n RefAttributes<ResizablePrimitive.ImperativePanelGroupHandle>\n> = forwardRef<\n ResizablePrimitive.ImperativePanelGroupHandle,\n React.ComponentProps<typeof ResizablePrimitive.PanelGroup>\n>(function ResizablePanelGroup({ className, ...props }, ref) {\n return (\n <ResizablePrimitive.PanelGroup\n ref={ref}\n className={cn(\"flex size-full data-[panel-group-direction=vertical]:flex-col\", className)}\n {...props}\n />\n );\n});\n\nexport const ResizablePanel = ResizablePrimitive.Panel;\n\n/**\n * The visible line stays 1px (`w-px`); the DRAG hit area is expanded via the\n * primitive's own `hitAreaMargins` (pointer-distance based, not a CSS trick),\n * so pointer/touch users get a ≥16px target without widening what's drawn.\n * Callers can still override `hitAreaMargins` explicitly.\n */\nconst DEFAULT_HIT_AREA_MARGINS: ResizablePrimitive.PointerHitAreaMargins = {\n coarse: 15,\n fine: 8,\n};\n\n/**\n * NOT wrapped in `forwardRef`: `react-resizable-panels`' `PanelResizeHandle`\n * is a plain function component that hardcodes its own internal element ref\n * and does not accept `ref` as a prop at all (neither in its types nor at\n * runtime — verified: a `ref` passed to it resolves to `null`). There is no\n * DOM node here for a wrapper ref to attach to without changing what render\n * onto the actual drag surface, so adding `forwardRef` would be a dead prop.\n */\nexport function ResizableHandle({\n withHandle,\n className,\n hitAreaMargins,\n ...props\n}: React.ComponentProps<typeof ResizablePrimitive.PanelResizeHandle> & { withHandle?: boolean }) {\n return (\n <ResizablePrimitive.PanelResizeHandle\n hitAreaMargins={hitAreaMargins ?? DEFAULT_HIT_AREA_MARGINS}\n className={cn(\n \"relative flex w-px items-center justify-center bg-border after:absolute after:inset-y-0 after:left-1/2 after:w-1 after:-translate-x-1/2 focus-ring\",\n \"data-[panel-group-direction=vertical]:h-px data-[panel-group-direction=vertical]:w-full data-[panel-group-direction=vertical]:after:left-0 data-[panel-group-direction=vertical]:after:h-1 data-[panel-group-direction=vertical]:after:w-full data-[panel-group-direction=vertical]:after:-translate-y-1/2 data-[panel-group-direction=vertical]:after:translate-x-0\",\n className,\n )}\n {...props}\n >\n {withHandle && (\n <div className=\"z-10 flex h-4 w-3 items-center justify-center rounded-sm border bg-border\">\n <GripVertical className=\"size-2.5\" />\n </div>\n )}\n </ResizablePrimitive.PanelResizeHandle>\n );\n}\n"],"mappings":";;;;;;AAAA,SAAS,kBAAsE;AAC/E,SAAS,oBAAoB;AAC7B,YAAY,wBAAwB;AAWhC;AARG,IAAM,sBAGT,WAGF,SAASA,qBAAoB,EAAE,WAAW,GAAG,MAAM,GAAG,KAAK;AAC3D,SACE;AAAA,IAAoB;AAAA,IAAnB;AAAA,MACC;AAAA,MACA,WAAW,GAAG,iEAAiE,SAAS;AAAA,MACvF,GAAG;AAAA;AAAA,EACN;AAEJ,CAAC;AAEM,IAAM,iBAAoC;AAQjD,IAAM,2BAAqE;AAAA,EACzE,QAAQ;AAAA,EACR,MAAM;AACR;AAUO,SAAS,gBAAgB;AAAA,EAC9B;AAAA,EACA;AAAA,EACA;AAAA,EACA,GAAG;AACL,GAAiG;AAC/F,SACE;AAAA,IAAoB;AAAA,IAAnB;AAAA,MACC,gBAAgB,kBAAkB;AAAA,MAClC,WAAW;AAAA,QACT;AAAA,QACA;AAAA,QACA;AAAA,MACF;AAAA,MACC,GAAG;AAAA,MAEH,wBACC,oBAAC,SAAI,WAAU,6EACb,8BAAC,gBAAa,WAAU,YAAW,GACrC;AAAA;AAAA,EAEJ;AAEJ;","names":["ResizablePanelGroup"]}
|
|
@@ -0,0 +1,100 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import {
|
|
3
|
+
DEFAULT_MESSAGES
|
|
4
|
+
} from "./chunk-6TJVJPNU.js";
|
|
5
|
+
|
|
6
|
+
// src/components/locale-provider/locale-provider.tsx
|
|
7
|
+
import { createContext, use, useMemo } from "react";
|
|
8
|
+
import { DirectionProvider } from "@radix-ui/react-direction";
|
|
9
|
+
import { jsx } from "react/jsx-runtime";
|
|
10
|
+
var LocaleContext = createContext(null);
|
|
11
|
+
function interpolate(template, vars) {
|
|
12
|
+
if (!vars) return template;
|
|
13
|
+
return template.replace(
|
|
14
|
+
/\{(\w+)\}/g,
|
|
15
|
+
(_, key) => key in vars ? String(vars[key]) : `{${key}}`
|
|
16
|
+
);
|
|
17
|
+
}
|
|
18
|
+
function resolveMessage(key, template, vars, pluralRules) {
|
|
19
|
+
if (typeof template === "string") return interpolate(template, vars);
|
|
20
|
+
const count = typeof vars?.count === "number" ? vars.count : void 0;
|
|
21
|
+
const category = count !== void 0 ? pluralRules.select(count) : "other";
|
|
22
|
+
const form = template[category] ?? template.other ?? key;
|
|
23
|
+
return interpolate(form, vars);
|
|
24
|
+
}
|
|
25
|
+
function makeDefaultValue() {
|
|
26
|
+
const locale = "en-US";
|
|
27
|
+
const numberCache = /* @__PURE__ */ new Map();
|
|
28
|
+
const dateCache = /* @__PURE__ */ new Map();
|
|
29
|
+
const pluralRules = new Intl.PluralRules(locale);
|
|
30
|
+
return {
|
|
31
|
+
locale,
|
|
32
|
+
dir: "ltr",
|
|
33
|
+
t(key, vars) {
|
|
34
|
+
const template = DEFAULT_MESSAGES[key] ?? key;
|
|
35
|
+
return resolveMessage(key, template, vars, pluralRules);
|
|
36
|
+
},
|
|
37
|
+
formatNumber(n, opts) {
|
|
38
|
+
const k = JSON.stringify(opts ?? null);
|
|
39
|
+
if (!numberCache.has(k)) numberCache.set(k, new Intl.NumberFormat(locale, opts));
|
|
40
|
+
return numberCache.get(k).format(n);
|
|
41
|
+
},
|
|
42
|
+
formatDate(d, opts) {
|
|
43
|
+
const k = JSON.stringify(opts ?? null);
|
|
44
|
+
if (!dateCache.has(k)) dateCache.set(k, new Intl.DateTimeFormat(locale, opts));
|
|
45
|
+
return dateCache.get(k).format(d);
|
|
46
|
+
}
|
|
47
|
+
};
|
|
48
|
+
}
|
|
49
|
+
var DEFAULT_LOCALE_VALUE = makeDefaultValue();
|
|
50
|
+
function LocaleProvider({
|
|
51
|
+
locale = "en-US",
|
|
52
|
+
dir = "ltr",
|
|
53
|
+
messages,
|
|
54
|
+
translate,
|
|
55
|
+
children
|
|
56
|
+
}) {
|
|
57
|
+
const merged = useMemo(
|
|
58
|
+
() => messages ? { ...DEFAULT_MESSAGES, ...messages } : DEFAULT_MESSAGES,
|
|
59
|
+
// We intentionally deep-compare via JSON only when messages reference changes.
|
|
60
|
+
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
61
|
+
[messages]
|
|
62
|
+
);
|
|
63
|
+
const numberCache = useMemo(() => /* @__PURE__ */ new Map(), [locale]);
|
|
64
|
+
const dateCache = useMemo(() => /* @__PURE__ */ new Map(), [locale]);
|
|
65
|
+
const pluralRules = useMemo(() => new Intl.PluralRules(locale), [locale]);
|
|
66
|
+
const value = useMemo(
|
|
67
|
+
() => ({
|
|
68
|
+
locale,
|
|
69
|
+
dir,
|
|
70
|
+
t(key, vars) {
|
|
71
|
+
const resolved = translate?.(key, vars);
|
|
72
|
+
if (resolved != null) return resolved;
|
|
73
|
+
const template = merged[key] ?? key;
|
|
74
|
+
return resolveMessage(key, template, vars, pluralRules);
|
|
75
|
+
},
|
|
76
|
+
formatNumber(n, opts) {
|
|
77
|
+
const k = JSON.stringify(opts ?? null);
|
|
78
|
+
if (!numberCache.has(k)) numberCache.set(k, new Intl.NumberFormat(locale, opts));
|
|
79
|
+
return numberCache.get(k).format(n);
|
|
80
|
+
},
|
|
81
|
+
formatDate(d, opts) {
|
|
82
|
+
const k = JSON.stringify(opts ?? null);
|
|
83
|
+
if (!dateCache.has(k)) dateCache.set(k, new Intl.DateTimeFormat(locale, opts));
|
|
84
|
+
return dateCache.get(k).format(d);
|
|
85
|
+
}
|
|
86
|
+
}),
|
|
87
|
+
[locale, dir, merged, numberCache, dateCache, pluralRules, translate]
|
|
88
|
+
);
|
|
89
|
+
return /* @__PURE__ */ jsx(LocaleContext.Provider, { value, children: /* @__PURE__ */ jsx(DirectionProvider, { dir, children: /* @__PURE__ */ jsx("div", { dir, children }) }) });
|
|
90
|
+
}
|
|
91
|
+
function useLocale() {
|
|
92
|
+
const ctx = use(LocaleContext);
|
|
93
|
+
return ctx ?? DEFAULT_LOCALE_VALUE;
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
export {
|
|
97
|
+
LocaleProvider,
|
|
98
|
+
useLocale
|
|
99
|
+
};
|
|
100
|
+
//# sourceMappingURL=chunk-EJQYE4MY.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/components/locale-provider/locale-provider.tsx"],"sourcesContent":["\"use client\";\n\nimport { createContext, use, useMemo, type ReactNode } from \"react\";\nimport { DirectionProvider } from \"@radix-ui/react-direction\";\nimport { DEFAULT_MESSAGES, type MessageValue, type PluralCategory } from \"./messages\";\n\n// ---------------------------------------------------------------------------\n// Public types\n// ---------------------------------------------------------------------------\n\n/**\n * A flat map of string keys to their translated values — a plain string, or a\n * `PluralMessage` (one string per ICU cardinal-plural category, e.g.\n * `{ one: \"{count} item\", other: \"{count} items\" }`) for microcopy whose\n * wording changes with a count. See `PluralMessage` in `./messages`.\n */\nexport type Messages = Record<string, MessageValue>;\n\nexport interface LocaleContextValue {\n /** BCP-47 locale tag, e.g. \"en-US\", \"ar-EG\", \"de-DE\". */\n locale: string;\n /** Layout direction for the locale region. */\n dir: \"ltr\" | \"rtl\";\n /**\n * Translate a key.\n * Falls back to: an external `translate` resolver (if the provider was\n * given one) → consumer `messages` → English default → the key itself.\n * Supports simple `{name}`-style variable interpolation, and ICU\n * cardinal-plural forms (`Intl.PluralRules`) when the resolved message is a\n * `PluralMessage` map and `vars.count` is a number. Note: `count` must be a\n * number, not a numeric string (e.g., `count: 3`, not `count: \"3\"`) to select\n * the correct plural category.\n */\n t: (key: string, vars?: Record<string, string | number>) => string;\n /** Format a number using the active locale. Memoized per locale+opts hash. */\n formatNumber: (n: number, opts?: Intl.NumberFormatOptions) => string;\n /** Format a date using the active locale. Memoized per locale+opts hash. */\n formatDate: (d: Date | number, opts?: Intl.DateTimeFormatOptions) => string;\n}\n\n// ---------------------------------------------------------------------------\n// Context\n// ---------------------------------------------------------------------------\n\nconst LocaleContext = createContext<LocaleContextValue | null>(null);\n\n// ---------------------------------------------------------------------------\n// Default (no-provider) value — en-US / ltr\n// ---------------------------------------------------------------------------\n\nfunction interpolate(template: string, vars?: Record<string, string | number>): string {\n if (!vars) return template;\n return template.replace(/\\{(\\w+)\\}/g, (_, key: string) =>\n key in vars ? String(vars[key]) : `{${key}}`,\n );\n}\n\n/**\n * Resolve a `MessageValue` (a plain string or a `PluralMessage`) to its final,\n * interpolated string.\n *\n * A `PluralMessage` selects its category via `Intl.PluralRules(locale).select(count)`\n * when `vars.count` is a number; with no `count`, or when the selected\n * category has no entry, it falls back to `\"other\"` (the one category every\n * locale defines), then to the raw `key` if even `\"other\"` is missing.\n */\nfunction resolveMessage(\n key: string,\n template: MessageValue,\n vars: Record<string, string | number> | undefined,\n pluralRules: Intl.PluralRules,\n): string {\n if (typeof template === \"string\") return interpolate(template, vars);\n const count = typeof vars?.count === \"number\" ? vars.count : undefined;\n const category: PluralCategory = count !== undefined ? pluralRules.select(count) : \"other\";\n const form = template[category] ?? template.other ?? key;\n return interpolate(form, vars);\n}\n\nfunction makeDefaultValue(): LocaleContextValue {\n const locale = \"en-US\";\n // Simple cache: one Intl object per serialized opts string\n const numberCache = new Map<string, Intl.NumberFormat>();\n const dateCache = new Map<string, Intl.DateTimeFormat>();\n const pluralRules = new Intl.PluralRules(locale);\n\n return {\n locale,\n dir: \"ltr\",\n t(key, vars) {\n const template = DEFAULT_MESSAGES[key] ?? key;\n return resolveMessage(key, template, vars, pluralRules);\n },\n formatNumber(n, opts) {\n const k = JSON.stringify(opts ?? null);\n if (!numberCache.has(k)) numberCache.set(k, new Intl.NumberFormat(locale, opts));\n return numberCache.get(k)!.format(n);\n },\n formatDate(d, opts) {\n const k = JSON.stringify(opts ?? null);\n if (!dateCache.has(k)) dateCache.set(k, new Intl.DateTimeFormat(locale, opts));\n return dateCache.get(k)!.format(d);\n },\n };\n}\n\n// Singleton default — stable across renders when no provider is mounted\nconst DEFAULT_LOCALE_VALUE = makeDefaultValue();\n\n// ---------------------------------------------------------------------------\n// Provider props\n// ---------------------------------------------------------------------------\n\nexport interface LocaleProviderProps {\n /**\n * BCP-47 locale tag. Defaults to \"en-US\".\n * Used by `t`, `formatNumber`, and `formatDate`.\n */\n locale?: string;\n /**\n * Layout direction for the subtree.\n * Defaults to \"ltr\". Set \"rtl\" for Arabic, Hebrew, Farsi, etc.\n */\n dir?: \"ltr\" | \"rtl\";\n /**\n * Additional/overriding message strings merged on top of the shipped English\n * defaults. Only the keys you provide are overridden; the rest fall through\n * to the English bundle.\n */\n messages?: Messages;\n /**\n * Optional external resolver — hand brand-ui's microcopy off to an app's own\n * i18n runtime (next-intl, react-intl, i18next, …) instead of maintaining a\n * second, flattened message catalogue. Called with the raw key and vars\n * (not pre-interpolated), so a real ICU formatter gets real values and can\n * do its own pluralization/number/date formatting.\n *\n * Return a string to use it as-is (brand-ui does NOT re-run its own\n * `{name}` interpolation on it — the app's runtime already formatted it).\n * Return `undefined`/`null` to decline a key; brand-ui then falls back to\n * `messages` → `DEFAULT_MESSAGES` → the raw key, in that order — so a\n * resolver only needs to cover the keys it actually wants to override.\n * See `docs/I18N.md`.\n */\n translate?: (key: string, vars?: Record<string, string | number>) => string | undefined | null;\n children: ReactNode;\n}\n\n// ---------------------------------------------------------------------------\n// LocaleProvider\n// ---------------------------------------------------------------------------\n\n/**\n * `LocaleProvider` supplies locale, layout direction, component microcopy, and\n * Intl formatting helpers to the component subtree.\n *\n * - Wrap your app (or a regional subtree) with it to localise brand-ui components.\n * - Components call `useLocale()` unconditionally; without a provider they\n * degrade gracefully to \"en-US\" / \"ltr\" / English defaults.\n * - Portalled Radix content (Dialog, Sheet, Popover, DropdownMenu) still honors\n * `dir` because the subtree is wrapped in Radix's `DirectionProvider`, which\n * every Radix primitive reads via context regardless of DOM position (ADR-0014).\n * The `<div dir={dir}>` continues to carry direction for non-Radix content.\n */\nexport function LocaleProvider({\n locale = \"en-US\",\n dir = \"ltr\",\n messages,\n translate,\n children,\n}: LocaleProviderProps) {\n // Merge consumer messages over the shipped English defaults.\n const merged: Messages = useMemo(\n () => (messages ? { ...DEFAULT_MESSAGES, ...messages } : DEFAULT_MESSAGES),\n // We intentionally deep-compare via JSON only when messages reference changes.\n // eslint-disable-next-line react-hooks/exhaustive-deps\n [messages],\n );\n\n // Memoized Intl formatter caches — keyed by serialised opts\n const numberCache = useMemo(() => new Map<string, Intl.NumberFormat>(), [locale]);\n const dateCache = useMemo(() => new Map<string, Intl.DateTimeFormat>(), [locale]);\n const pluralRules = useMemo(() => new Intl.PluralRules(locale), [locale]);\n\n const value = useMemo<LocaleContextValue>(\n () => ({\n locale,\n dir,\n t(key, vars) {\n // An external runtime (next-intl, react-intl, i18next, …) gets first\n // say, and its result is used AS-IS — it already interpolated and\n // pluralized. `undefined`/`null` means \"I decline this key\".\n const resolved = translate?.(key, vars);\n if (resolved != null) return resolved;\n const template = merged[key] ?? key;\n return resolveMessage(key, template, vars, pluralRules);\n },\n formatNumber(n, opts) {\n const k = JSON.stringify(opts ?? null);\n if (!numberCache.has(k)) numberCache.set(k, new Intl.NumberFormat(locale, opts));\n return numberCache.get(k)!.format(n);\n },\n formatDate(d, opts) {\n const k = JSON.stringify(opts ?? null);\n if (!dateCache.has(k)) dateCache.set(k, new Intl.DateTimeFormat(locale, opts));\n return dateCache.get(k)!.format(d);\n },\n }),\n [locale, dir, merged, numberCache, dateCache, pluralRules, translate],\n );\n\n return (\n <LocaleContext.Provider value={value}>\n {/*\n * `DirectionProvider` makes `dir` reach portalled Radix overlays (Dialog,\n * Sheet, Popover, DropdownMenu, Select, Tooltip, …) which escape the DOM\n * `dir` ancestor (ADR-0014). The `<div dir={dir}>` still carries direction\n * for non-Radix content.\n */}\n <DirectionProvider dir={dir}>\n <div dir={dir}>{children}</div>\n </DirectionProvider>\n </LocaleContext.Provider>\n );\n}\n\n// ---------------------------------------------------------------------------\n// useLocale\n// ---------------------------------------------------------------------------\n\n/**\n * Read the active locale, direction, `t`, `formatNumber`, and `formatDate`.\n *\n * Provider-optional: without a `<LocaleProvider>` this returns the en-US\n * defaults so components can call it unconditionally and remain usable in\n * unwrapped contexts.\n */\nexport function useLocale(): LocaleContextValue {\n // React 19 `use()` — can be called conditionally and composes with Suspense.\n const ctx = use(LocaleContext);\n return ctx ?? DEFAULT_LOCALE_VALUE;\n}\n"],"mappings":";;;;;;AAEA,SAAS,eAAe,KAAK,eAA+B;AAC5D,SAAS,yBAAyB;AAyN1B;AAhLR,IAAM,gBAAgB,cAAyC,IAAI;AAMnE,SAAS,YAAY,UAAkB,MAAgD;AACrF,MAAI,CAAC,KAAM,QAAO;AAClB,SAAO,SAAS;AAAA,IAAQ;AAAA,IAAc,CAAC,GAAG,QACxC,OAAO,OAAO,OAAO,KAAK,GAAG,CAAC,IAAI,IAAI,GAAG;AAAA,EAC3C;AACF;AAWA,SAAS,eACP,KACA,UACA,MACA,aACQ;AACR,MAAI,OAAO,aAAa,SAAU,QAAO,YAAY,UAAU,IAAI;AACnE,QAAM,QAAQ,OAAO,MAAM,UAAU,WAAW,KAAK,QAAQ;AAC7D,QAAM,WAA2B,UAAU,SAAY,YAAY,OAAO,KAAK,IAAI;AACnF,QAAM,OAAO,SAAS,QAAQ,KAAK,SAAS,SAAS;AACrD,SAAO,YAAY,MAAM,IAAI;AAC/B;AAEA,SAAS,mBAAuC;AAC9C,QAAM,SAAS;AAEf,QAAM,cAAc,oBAAI,IAA+B;AACvD,QAAM,YAAY,oBAAI,IAAiC;AACvD,QAAM,cAAc,IAAI,KAAK,YAAY,MAAM;AAE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