@tlglobal/ui 2.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CONSUMING.md +229 -0
- package/LICENSE +202 -0
- package/dist/AI_CONTEXT.md +621 -0
- package/dist/AI_INVENTORY.md +85 -0
- package/dist/chunk-2GWZWHLI.cjs +20 -0
- package/dist/chunk-2GWZWHLI.cjs.map +1 -0
- package/dist/chunk-2LZUUIC7.js +32 -0
- package/dist/chunk-2LZUUIC7.js.map +1 -0
- package/dist/chunk-3FJ2AYA2.js +89 -0
- package/dist/chunk-3FJ2AYA2.js.map +1 -0
- package/dist/chunk-3PA53VKD.js +125 -0
- package/dist/chunk-3PA53VKD.js.map +1 -0
- package/dist/chunk-3RZGAFXY.js +2 -0
- package/dist/chunk-3RZGAFXY.js.map +1 -0
- package/dist/chunk-3WN2VYVW.js +74 -0
- package/dist/chunk-3WN2VYVW.js.map +1 -0
- package/dist/chunk-43UYUOCI.cjs +48 -0
- package/dist/chunk-43UYUOCI.cjs.map +1 -0
- package/dist/chunk-44VPRRQ6.cjs +58 -0
- package/dist/chunk-44VPRRQ6.cjs.map +1 -0
- package/dist/chunk-4DRHQE74.js +24 -0
- package/dist/chunk-4DRHQE74.js.map +1 -0
- package/dist/chunk-4XLHRXFU.cjs +74 -0
- package/dist/chunk-4XLHRXFU.cjs.map +1 -0
- package/dist/chunk-4YEKNNGG.cjs +42 -0
- package/dist/chunk-4YEKNNGG.cjs.map +1 -0
- package/dist/chunk-52WJMKN4.js +2 -0
- package/dist/chunk-52WJMKN4.js.map +1 -0
- package/dist/chunk-5K47OTIO.cjs +2 -0
- package/dist/chunk-5K47OTIO.cjs.map +1 -0
- package/dist/chunk-5LY7WFC2.cjs +50 -0
- package/dist/chunk-5LY7WFC2.cjs.map +1 -0
- package/dist/chunk-5TOJI2VT.cjs +50 -0
- package/dist/chunk-5TOJI2VT.cjs.map +1 -0
- package/dist/chunk-6K77FYPP.cjs +27 -0
- package/dist/chunk-6K77FYPP.cjs.map +1 -0
- package/dist/chunk-6LNO6LIW.cjs +91 -0
- package/dist/chunk-6LNO6LIW.cjs.map +1 -0
- package/dist/chunk-6OKUL5O5.js +50 -0
- package/dist/chunk-6OKUL5O5.js.map +1 -0
- package/dist/chunk-72IENMXB.js +50 -0
- package/dist/chunk-72IENMXB.js.map +1 -0
- package/dist/chunk-74GQ35MJ.js +13 -0
- package/dist/chunk-74GQ35MJ.js.map +1 -0
- package/dist/chunk-7554LN2R.js +40 -0
- package/dist/chunk-7554LN2R.js.map +1 -0
- package/dist/chunk-77VS352K.js +26 -0
- package/dist/chunk-77VS352K.js.map +1 -0
- package/dist/chunk-7KV2ASQZ.js +54 -0
- package/dist/chunk-7KV2ASQZ.js.map +1 -0
- package/dist/chunk-7TQYKW62.js +2 -0
- package/dist/chunk-7TQYKW62.js.map +1 -0
- package/dist/chunk-7USP3KPM.js +74 -0
- package/dist/chunk-7USP3KPM.js.map +1 -0
- package/dist/chunk-7UWF7W5G.js +79 -0
- package/dist/chunk-7UWF7W5G.js.map +1 -0
- package/dist/chunk-7VXLTE5S.cjs +85 -0
- package/dist/chunk-7VXLTE5S.cjs.map +1 -0
- package/dist/chunk-A254FX7P.cjs +108 -0
- package/dist/chunk-A254FX7P.cjs.map +1 -0
- package/dist/chunk-ACCDNLKQ.cjs +2 -0
- package/dist/chunk-ACCDNLKQ.cjs.map +1 -0
- package/dist/chunk-AFU2TQBW.cjs +2 -0
- package/dist/chunk-AFU2TQBW.cjs.map +1 -0
- package/dist/chunk-ARIUBUZS.cjs +2 -0
- package/dist/chunk-ARIUBUZS.cjs.map +1 -0
- package/dist/chunk-ASXOVY3O.js +51 -0
- package/dist/chunk-ASXOVY3O.js.map +1 -0
- package/dist/chunk-ATQSUWAB.cjs +64 -0
- package/dist/chunk-ATQSUWAB.cjs.map +1 -0
- package/dist/chunk-B3JAASJA.cjs +52 -0
- package/dist/chunk-B3JAASJA.cjs.map +1 -0
- package/dist/chunk-BD2KPRJD.cjs +17 -0
- package/dist/chunk-BD2KPRJD.cjs.map +1 -0
- package/dist/chunk-BG3HP3NJ.cjs +34 -0
- package/dist/chunk-BG3HP3NJ.cjs.map +1 -0
- package/dist/chunk-BOLSRMRI.cjs +2 -0
- package/dist/chunk-BOLSRMRI.cjs.map +1 -0
- package/dist/chunk-BPH6SZFA.cjs +50 -0
- package/dist/chunk-BPH6SZFA.cjs.map +1 -0
- package/dist/chunk-BYEEPZYO.cjs +26 -0
- package/dist/chunk-BYEEPZYO.cjs.map +1 -0
- package/dist/chunk-C35O5Z4E.js +93 -0
- package/dist/chunk-C35O5Z4E.js.map +1 -0
- package/dist/chunk-C4M7CGEJ.cjs +33 -0
- package/dist/chunk-C4M7CGEJ.cjs.map +1 -0
- package/dist/chunk-C7ISP523.js +2 -0
- package/dist/chunk-C7ISP523.js.map +1 -0
- package/dist/chunk-CA2SLMZH.cjs +27 -0
- package/dist/chunk-CA2SLMZH.cjs.map +1 -0
- package/dist/chunk-CEQAANDU.cjs +26 -0
- package/dist/chunk-CEQAANDU.cjs.map +1 -0
- package/dist/chunk-CQNMLNRY.js +64 -0
- package/dist/chunk-CQNMLNRY.js.map +1 -0
- package/dist/chunk-CVXFVAS4.cjs +93 -0
- package/dist/chunk-CVXFVAS4.cjs.map +1 -0
- package/dist/chunk-DBCPNZ6H.js +34 -0
- package/dist/chunk-DBCPNZ6H.js.map +1 -0
- package/dist/chunk-DCBKSAUY.cjs +48 -0
- package/dist/chunk-DCBKSAUY.cjs.map +1 -0
- package/dist/chunk-DJGR4I4I.js +29 -0
- package/dist/chunk-DJGR4I4I.js.map +1 -0
- package/dist/chunk-DRPNHEYB.cjs +2 -0
- package/dist/chunk-DRPNHEYB.cjs.map +1 -0
- package/dist/chunk-E3KELI3Q.js +2 -0
- package/dist/chunk-E3KELI3Q.js.map +1 -0
- package/dist/chunk-EADT2IDZ.cjs +26 -0
- package/dist/chunk-EADT2IDZ.cjs.map +1 -0
- package/dist/chunk-EC6XXJRF.js +108 -0
- package/dist/chunk-EC6XXJRF.js.map +1 -0
- package/dist/chunk-EDAI4KEX.cjs +27 -0
- package/dist/chunk-EDAI4KEX.cjs.map +1 -0
- package/dist/chunk-EJ57LRPN.cjs +2 -0
- package/dist/chunk-EJ57LRPN.cjs.map +1 -0
- package/dist/chunk-ENO36WFO.cjs +54 -0
- package/dist/chunk-ENO36WFO.cjs.map +1 -0
- package/dist/chunk-ESRYVB7B.js +17 -0
- package/dist/chunk-ESRYVB7B.js.map +1 -0
- package/dist/chunk-EYC4OODR.js +2 -0
- package/dist/chunk-EYC4OODR.js.map +1 -0
- package/dist/chunk-F5XBFNFL.cjs +93 -0
- package/dist/chunk-F5XBFNFL.cjs.map +1 -0
- package/dist/chunk-F7UFCIDL.js +59 -0
- package/dist/chunk-F7UFCIDL.js.map +1 -0
- package/dist/chunk-FE6KOQUJ.js +2 -0
- package/dist/chunk-FE6KOQUJ.js.map +1 -0
- package/dist/chunk-FLP5UV2Q.js +2 -0
- package/dist/chunk-FLP5UV2Q.js.map +1 -0
- package/dist/chunk-FSFKN344.js +112 -0
- package/dist/chunk-FSFKN344.js.map +1 -0
- package/dist/chunk-G362MHBO.cjs +37 -0
- package/dist/chunk-G362MHBO.cjs.map +1 -0
- package/dist/chunk-GAIT5TGX.js +85 -0
- package/dist/chunk-GAIT5TGX.js.map +1 -0
- package/dist/chunk-GBHONUIG.js +52 -0
- package/dist/chunk-GBHONUIG.js.map +1 -0
- package/dist/chunk-GJGPQRIK.js +20 -0
- package/dist/chunk-GJGPQRIK.js.map +1 -0
- package/dist/chunk-GJQOXOSX.cjs +43 -0
- package/dist/chunk-GJQOXOSX.cjs.map +1 -0
- package/dist/chunk-GWLJZRZO.cjs +14 -0
- package/dist/chunk-GWLJZRZO.cjs.map +1 -0
- package/dist/chunk-H3RKRRVM.js +526 -0
- package/dist/chunk-H3RKRRVM.js.map +1 -0
- package/dist/chunk-HAMZFEZO.cjs +54 -0
- package/dist/chunk-HAMZFEZO.cjs.map +1 -0
- package/dist/chunk-HFYNUSDC.cjs +74 -0
- package/dist/chunk-HFYNUSDC.cjs.map +1 -0
- package/dist/chunk-HGP3RUO3.cjs +2 -0
- package/dist/chunk-HGP3RUO3.cjs.map +1 -0
- package/dist/chunk-HJCCG7JW.js +43 -0
- package/dist/chunk-HJCCG7JW.js.map +1 -0
- package/dist/chunk-HRO7NGJR.cjs +89 -0
- package/dist/chunk-HRO7NGJR.cjs.map +1 -0
- package/dist/chunk-HWVBYDV7.cjs +125 -0
- package/dist/chunk-HWVBYDV7.cjs.map +1 -0
- package/dist/chunk-IQ62AKGY.cjs +74 -0
- package/dist/chunk-IQ62AKGY.cjs.map +1 -0
- package/dist/chunk-IRV6TBCD.js +32 -0
- package/dist/chunk-IRV6TBCD.js.map +1 -0
- package/dist/chunk-IS7KJKLV.cjs +24 -0
- package/dist/chunk-IS7KJKLV.cjs.map +1 -0
- package/dist/chunk-JPABWZU4.js +24 -0
- package/dist/chunk-JPABWZU4.js.map +1 -0
- package/dist/chunk-JSVWJPQG.js +37 -0
- package/dist/chunk-JSVWJPQG.js.map +1 -0
- package/dist/chunk-K5CAZ7C4.js +33 -0
- package/dist/chunk-K5CAZ7C4.js.map +1 -0
- package/dist/chunk-KG4EGAMK.js +54 -0
- package/dist/chunk-KG4EGAMK.js.map +1 -0
- package/dist/chunk-KIAO4YXV.js +127 -0
- package/dist/chunk-KIAO4YXV.js.map +1 -0
- package/dist/chunk-KSKUVK6I.cjs +59 -0
- package/dist/chunk-KSKUVK6I.cjs.map +1 -0
- package/dist/chunk-KYDXKVSZ.js +46 -0
- package/dist/chunk-KYDXKVSZ.js.map +1 -0
- package/dist/chunk-L5ASRHVY.js +60 -0
- package/dist/chunk-L5ASRHVY.js.map +1 -0
- package/dist/chunk-LFFVW4TB.cjs +52 -0
- package/dist/chunk-LFFVW4TB.cjs.map +1 -0
- package/dist/chunk-LUBNRBQN.cjs +33 -0
- package/dist/chunk-LUBNRBQN.cjs.map +1 -0
- package/dist/chunk-LVFXPPPK.js +33 -0
- package/dist/chunk-LVFXPPPK.js.map +1 -0
- package/dist/chunk-LVL2KDBH.js +48 -0
- package/dist/chunk-LVL2KDBH.js.map +1 -0
- package/dist/chunk-LZEQUT4L.cjs +56 -0
- package/dist/chunk-LZEQUT4L.cjs.map +1 -0
- package/dist/chunk-MAN3LWOP.js +26 -0
- package/dist/chunk-MAN3LWOP.js.map +1 -0
- package/dist/chunk-MIKQY57Q.js +16 -0
- package/dist/chunk-MIKQY57Q.js.map +1 -0
- package/dist/chunk-MRFK7JYS.cjs +16 -0
- package/dist/chunk-MRFK7JYS.cjs.map +1 -0
- package/dist/chunk-MWMM3SXJ.cjs +107 -0
- package/dist/chunk-MWMM3SXJ.cjs.map +1 -0
- package/dist/chunk-N7NOXL4I.js +91 -0
- package/dist/chunk-N7NOXL4I.js.map +1 -0
- package/dist/chunk-NCYN3QQU.cjs +67 -0
- package/dist/chunk-NCYN3QQU.cjs.map +1 -0
- package/dist/chunk-NQDS423U.js +33 -0
- package/dist/chunk-NQDS423U.js.map +1 -0
- package/dist/chunk-NROYDPOG.js +48 -0
- package/dist/chunk-NROYDPOG.js.map +1 -0
- package/dist/chunk-NRP4NW7O.js +35 -0
- package/dist/chunk-NRP4NW7O.js.map +1 -0
- package/dist/chunk-NSTYHMFW.cjs +13 -0
- package/dist/chunk-NSTYHMFW.cjs.map +1 -0
- package/dist/chunk-NXR4JLHH.cjs +2 -0
- package/dist/chunk-NXR4JLHH.cjs.map +1 -0
- package/dist/chunk-NZ2HMIIP.cjs +35 -0
- package/dist/chunk-NZ2HMIIP.cjs.map +1 -0
- package/dist/chunk-ODN7NJ6D.cjs +46 -0
- package/dist/chunk-ODN7NJ6D.cjs.map +1 -0
- package/dist/chunk-OEOJQGHG.js +23 -0
- package/dist/chunk-OEOJQGHG.js.map +1 -0
- package/dist/chunk-OHI4DVYR.js +27 -0
- package/dist/chunk-OHI4DVYR.js.map +1 -0
- package/dist/chunk-OZR3RLEW.cjs +526 -0
- package/dist/chunk-OZR3RLEW.cjs.map +1 -0
- package/dist/chunk-P6HOIFVS.js +107 -0
- package/dist/chunk-P6HOIFVS.js.map +1 -0
- package/dist/chunk-PFK42QIX.cjs +112 -0
- package/dist/chunk-PFK42QIX.cjs.map +1 -0
- package/dist/chunk-PNBLW6BD.cjs +51 -0
- package/dist/chunk-PNBLW6BD.cjs.map +1 -0
- package/dist/chunk-PRVO66GL.js +2 -0
- package/dist/chunk-PRVO66GL.js.map +1 -0
- package/dist/chunk-PZH6B7X6.cjs +33 -0
- package/dist/chunk-PZH6B7X6.cjs.map +1 -0
- package/dist/chunk-QEIOHGNX.js +2 -0
- package/dist/chunk-QEIOHGNX.js.map +1 -0
- package/dist/chunk-QET47X4U.cjs +49 -0
- package/dist/chunk-QET47X4U.cjs.map +1 -0
- package/dist/chunk-QEVPIMPR.js +74 -0
- package/dist/chunk-QEVPIMPR.js.map +1 -0
- package/dist/chunk-QGPKRORJ.cjs +2 -0
- package/dist/chunk-QGPKRORJ.cjs.map +1 -0
- package/dist/chunk-QT6A3IGJ.js +49 -0
- package/dist/chunk-QT6A3IGJ.js.map +1 -0
- package/dist/chunk-QUXGSASA.js +2 -0
- package/dist/chunk-QUXGSASA.js.map +1 -0
- package/dist/chunk-QX75NAXT.js +67 -0
- package/dist/chunk-QX75NAXT.js.map +1 -0
- package/dist/chunk-R27ACM4Q.cjs +2 -0
- package/dist/chunk-R27ACM4Q.cjs.map +1 -0
- package/dist/chunk-R4RV6JMA.js +46 -0
- package/dist/chunk-R4RV6JMA.js.map +1 -0
- package/dist/chunk-RB7PFSP5.cjs +40 -0
- package/dist/chunk-RB7PFSP5.cjs.map +1 -0
- package/dist/chunk-RCUEVMFN.cjs +2 -0
- package/dist/chunk-RCUEVMFN.cjs.map +1 -0
- package/dist/chunk-RG5TWXHH.cjs +46 -0
- package/dist/chunk-RG5TWXHH.cjs.map +1 -0
- package/dist/chunk-RHIHSGAK.cjs +42 -0
- package/dist/chunk-RHIHSGAK.cjs.map +1 -0
- package/dist/chunk-RL3XVDMF.cjs +20 -0
- package/dist/chunk-RL3XVDMF.cjs.map +1 -0
- package/dist/chunk-SD2D5PZS.js +2 -0
- package/dist/chunk-SD2D5PZS.js.map +1 -0
- package/dist/chunk-SKQHJJ6L.js +34 -0
- package/dist/chunk-SKQHJJ6L.js.map +1 -0
- package/dist/chunk-SN6MWJU6.js +86 -0
- package/dist/chunk-SN6MWJU6.js.map +1 -0
- package/dist/chunk-SP36M6G5.js +52 -0
- package/dist/chunk-SP36M6G5.js.map +1 -0
- package/dist/chunk-SWBJF2XG.cjs +32 -0
- package/dist/chunk-SWBJF2XG.cjs.map +1 -0
- package/dist/chunk-T4FTROIQ.cjs +127 -0
- package/dist/chunk-T4FTROIQ.cjs.map +1 -0
- package/dist/chunk-TPTUGJYI.js +43 -0
- package/dist/chunk-TPTUGJYI.js.map +1 -0
- package/dist/chunk-TROOTXPG.cjs +34 -0
- package/dist/chunk-TROOTXPG.cjs.map +1 -0
- package/dist/chunk-TWFEHJMT.js +34 -0
- package/dist/chunk-TWFEHJMT.js.map +1 -0
- package/dist/chunk-UJVIWFHU.js +14 -0
- package/dist/chunk-UJVIWFHU.js.map +1 -0
- package/dist/chunk-ULWJ75EE.js +58 -0
- package/dist/chunk-ULWJ75EE.js.map +1 -0
- package/dist/chunk-UU2KZAA4.js +27 -0
- package/dist/chunk-UU2KZAA4.js.map +1 -0
- package/dist/chunk-UV46IHDR.cjs +79 -0
- package/dist/chunk-UV46IHDR.cjs.map +1 -0
- package/dist/chunk-V3NEBNKV.js +93 -0
- package/dist/chunk-V3NEBNKV.js.map +1 -0
- package/dist/chunk-VHWMJ4HO.js +42 -0
- package/dist/chunk-VHWMJ4HO.js.map +1 -0
- package/dist/chunk-VONXCRR4.cjs +86 -0
- package/dist/chunk-VONXCRR4.cjs.map +1 -0
- package/dist/chunk-VTNWJO3Y.js +2 -0
- package/dist/chunk-VTNWJO3Y.js.map +1 -0
- package/dist/chunk-VVZIMK6K.js +27 -0
- package/dist/chunk-VVZIMK6K.js.map +1 -0
- package/dist/chunk-WBWSA5SM.js +42 -0
- package/dist/chunk-WBWSA5SM.js.map +1 -0
- package/dist/chunk-WVEBD2II.cjs +2 -0
- package/dist/chunk-WVEBD2II.cjs.map +1 -0
- package/dist/chunk-XGCIOWNR.cjs +34 -0
- package/dist/chunk-XGCIOWNR.cjs.map +1 -0
- package/dist/chunk-XMCP5ITG.cjs +60 -0
- package/dist/chunk-XMCP5ITG.cjs.map +1 -0
- package/dist/chunk-XOBIDPEA.cjs +23 -0
- package/dist/chunk-XOBIDPEA.cjs.map +1 -0
- package/dist/chunk-XV2M2XOO.cjs +29 -0
- package/dist/chunk-XV2M2XOO.cjs.map +1 -0
- package/dist/chunk-XWMDE3D5.cjs +32 -0
- package/dist/chunk-XWMDE3D5.cjs.map +1 -0
- package/dist/chunk-Y523KUML.js +50 -0
- package/dist/chunk-Y523KUML.js.map +1 -0
- package/dist/chunk-YB4W5ROD.cjs +2 -0
- package/dist/chunk-YB4W5ROD.cjs.map +1 -0
- package/dist/chunk-YEH5VLWU.js +56 -0
- package/dist/chunk-YEH5VLWU.js.map +1 -0
- package/dist/chunk-YFS2VFC5.js +26 -0
- package/dist/chunk-YFS2VFC5.js.map +1 -0
- package/dist/chunk-YGWKQHA4.cjs +43 -0
- package/dist/chunk-YGWKQHA4.cjs.map +1 -0
- package/dist/chunk-YL5ANBN3.js +20 -0
- package/dist/chunk-YL5ANBN3.js.map +1 -0
- package/dist/chunk-Z3TON3YG.js +2 -0
- package/dist/chunk-Z3TON3YG.js.map +1 -0
- package/dist/chunk-ZWS4E67U.cjs +24 -0
- package/dist/chunk-ZWS4E67U.cjs.map +1 -0
- package/dist/components/accordion/Accordion.d.ts +9 -0
- package/dist/components/accordion/index.cjs +9 -0
- package/dist/components/accordion/index.cjs.map +1 -0
- package/dist/components/accordion/index.d.ts +1 -0
- package/dist/components/accordion/index.js +9 -0
- package/dist/components/accordion/index.js.map +1 -0
- package/dist/components/alert/Alert.d.ts +8 -0
- package/dist/components/alert/index.cjs +9 -0
- package/dist/components/alert/index.cjs.map +1 -0
- package/dist/components/alert/index.d.ts +2 -0
- package/dist/components/alert/index.js +9 -0
- package/dist/components/alert/index.js.map +1 -0
- package/dist/components/alert-dialog/AlertDialog.d.ts +13 -0
- package/dist/components/alert-dialog/index.cjs +9 -0
- package/dist/components/alert-dialog/index.cjs.map +1 -0
- package/dist/components/alert-dialog/index.d.ts +1 -0
- package/dist/components/alert-dialog/index.js +9 -0
- package/dist/components/alert-dialog/index.js.map +1 -0
- package/dist/components/aspect-ratio/AspectRatio.d.ts +6 -0
- package/dist/components/aspect-ratio/index.cjs +9 -0
- package/dist/components/aspect-ratio/index.cjs.map +1 -0
- package/dist/components/aspect-ratio/index.d.ts +2 -0
- package/dist/components/aspect-ratio/index.js +9 -0
- package/dist/components/aspect-ratio/index.js.map +1 -0
- package/dist/components/attachment/Attachment.d.ts +22 -0
- package/dist/components/attachment/index.cjs +11 -0
- package/dist/components/attachment/index.cjs.map +1 -0
- package/dist/components/attachment/index.d.ts +2 -0
- package/dist/components/attachment/index.js +11 -0
- package/dist/components/attachment/index.js.map +1 -0
- package/dist/components/avatar/Avatar.d.ts +11 -0
- package/dist/components/avatar/index.cjs +10 -0
- package/dist/components/avatar/index.cjs.map +1 -0
- package/dist/components/avatar/index.d.ts +2 -0
- package/dist/components/avatar/index.js +10 -0
- package/dist/components/avatar/index.js.map +1 -0
- package/dist/components/badge/Badge.d.ts +7 -0
- package/dist/components/badge/index.cjs +9 -0
- package/dist/components/badge/index.cjs.map +1 -0
- package/dist/components/badge/index.d.ts +2 -0
- package/dist/components/badge/index.js +9 -0
- package/dist/components/badge/index.js.map +1 -0
- package/dist/components/breadcrumb/Breadcrumb.d.ts +17 -0
- package/dist/components/breadcrumb/index.cjs +9 -0
- package/dist/components/breadcrumb/index.cjs.map +1 -0
- package/dist/components/breadcrumb/index.d.ts +1 -0
- package/dist/components/breadcrumb/index.js +9 -0
- package/dist/components/breadcrumb/index.js.map +1 -0
- package/dist/components/bubble/Bubble.d.ts +14 -0
- package/dist/components/bubble/index.cjs +10 -0
- package/dist/components/bubble/index.cjs.map +1 -0
- package/dist/components/bubble/index.d.ts +2 -0
- package/dist/components/bubble/index.js +10 -0
- package/dist/components/bubble/index.js.map +1 -0
- package/dist/components/button/Button.d.ts +10 -0
- package/dist/components/button/index.cjs +10 -0
- package/dist/components/button/index.cjs.map +1 -0
- package/dist/components/button/index.d.ts +2 -0
- package/dist/components/button/index.js +10 -0
- package/dist/components/button/index.js.map +1 -0
- package/dist/components/button-group/ButtonGroup.d.ts +5 -0
- package/dist/components/button-group/index.cjs +9 -0
- package/dist/components/button-group/index.cjs.map +1 -0
- package/dist/components/button-group/index.d.ts +2 -0
- package/dist/components/button-group/index.js +9 -0
- package/dist/components/button-group/index.js.map +1 -0
- package/dist/components/calendar/Calendar.d.ts +3 -0
- package/dist/components/calendar/index.cjs +10 -0
- package/dist/components/calendar/index.cjs.map +1 -0
- package/dist/components/calendar/index.d.ts +1 -0
- package/dist/components/calendar/index.js +10 -0
- package/dist/components/calendar/index.js.map +1 -0
- package/dist/components/card/Card.d.ts +7 -0
- package/dist/components/card/index.cjs +9 -0
- package/dist/components/card/index.cjs.map +1 -0
- package/dist/components/card/index.d.ts +2 -0
- package/dist/components/card/index.js +9 -0
- package/dist/components/card/index.js.map +1 -0
- package/dist/components/carousel/Carousel.d.ts +16 -0
- package/dist/components/carousel/index.cjs +10 -0
- package/dist/components/carousel/index.cjs.map +1 -0
- package/dist/components/carousel/index.d.ts +2 -0
- package/dist/components/carousel/index.js +10 -0
- package/dist/components/carousel/index.js.map +1 -0
- package/dist/components/chart/Chart.d.ts +23 -0
- package/dist/components/chart/index.cjs +9 -0
- package/dist/components/chart/index.cjs.map +1 -0
- package/dist/components/chart/index.d.ts +2 -0
- package/dist/components/chart/index.js +9 -0
- package/dist/components/chart/index.js.map +1 -0
- package/dist/components/checkbox/Checkbox.d.ts +8 -0
- package/dist/components/checkbox/index.cjs +9 -0
- package/dist/components/checkbox/index.cjs.map +1 -0
- package/dist/components/checkbox/index.d.ts +2 -0
- package/dist/components/checkbox/index.js +9 -0
- package/dist/components/checkbox/index.js.map +1 -0
- package/dist/components/collapsible/Collapsible.d.ts +7 -0
- package/dist/components/collapsible/index.cjs +8 -0
- package/dist/components/collapsible/index.cjs.map +1 -0
- package/dist/components/collapsible/index.d.ts +1 -0
- package/dist/components/collapsible/index.js +8 -0
- package/dist/components/collapsible/index.js.map +1 -0
- package/dist/components/combobox/Combobox.d.ts +20 -0
- package/dist/components/combobox/index.cjs +10 -0
- package/dist/components/combobox/index.cjs.map +1 -0
- package/dist/components/combobox/index.d.ts +2 -0
- package/dist/components/combobox/index.js +10 -0
- package/dist/components/combobox/index.js.map +1 -0
- package/dist/components/command/Command.d.ts +13 -0
- package/dist/components/command/index.cjs +10 -0
- package/dist/components/command/index.cjs.map +1 -0
- package/dist/components/command/index.d.ts +1 -0
- package/dist/components/command/index.js +10 -0
- package/dist/components/command/index.js.map +1 -0
- package/dist/components/context-menu/ContextMenu.d.ts +19 -0
- package/dist/components/context-menu/index.cjs +9 -0
- package/dist/components/context-menu/index.cjs.map +1 -0
- package/dist/components/context-menu/index.d.ts +1 -0
- package/dist/components/context-menu/index.js +9 -0
- package/dist/components/context-menu/index.js.map +1 -0
- package/dist/components/date-picker/DatePicker.d.ts +11 -0
- package/dist/components/date-picker/index.cjs +10 -0
- package/dist/components/date-picker/index.cjs.map +1 -0
- package/dist/components/date-picker/index.d.ts +2 -0
- package/dist/components/date-picker/index.js +10 -0
- package/dist/components/date-picker/index.js.map +1 -0
- package/dist/components/dialog/Dialog.d.ts +12 -0
- package/dist/components/dialog/index.cjs +9 -0
- package/dist/components/dialog/index.cjs.map +1 -0
- package/dist/components/dialog/index.d.ts +1 -0
- package/dist/components/dialog/index.js +9 -0
- package/dist/components/dialog/index.js.map +1 -0
- package/dist/components/direction/Direction.d.ts +16 -0
- package/dist/components/direction/index.cjs +11 -0
- package/dist/components/direction/index.cjs.map +1 -0
- package/dist/components/direction/index.d.ts +2 -0
- package/dist/components/direction/index.js +11 -0
- package/dist/components/direction/index.js.map +1 -0
- package/dist/components/drawer/Drawer.d.ts +12 -0
- package/dist/components/drawer/index.cjs +9 -0
- package/dist/components/drawer/index.cjs.map +1 -0
- package/dist/components/drawer/index.d.ts +1 -0
- package/dist/components/drawer/index.js +9 -0
- package/dist/components/drawer/index.js.map +1 -0
- package/dist/components/dropdown-menu/DropdownMenu.d.ts +19 -0
- package/dist/components/dropdown-menu/index.cjs +9 -0
- package/dist/components/dropdown-menu/index.cjs.map +1 -0
- package/dist/components/dropdown-menu/index.d.ts +1 -0
- package/dist/components/dropdown-menu/index.js +9 -0
- package/dist/components/dropdown-menu/index.js.map +1 -0
- package/dist/components/empty/Empty.d.ts +10 -0
- package/dist/components/empty/index.cjs +9 -0
- package/dist/components/empty/index.cjs.map +1 -0
- package/dist/components/empty/index.d.ts +2 -0
- package/dist/components/empty/index.js +9 -0
- package/dist/components/empty/index.js.map +1 -0
- package/dist/components/field/Field.d.ts +17 -0
- package/dist/components/field/index.cjs +11 -0
- package/dist/components/field/index.cjs.map +1 -0
- package/dist/components/field/index.d.ts +2 -0
- package/dist/components/field/index.js +11 -0
- package/dist/components/field/index.js.map +1 -0
- package/dist/components/hover-card/HoverCard.d.ts +8 -0
- package/dist/components/hover-card/index.cjs +9 -0
- package/dist/components/hover-card/index.cjs.map +1 -0
- package/dist/components/hover-card/index.d.ts +1 -0
- package/dist/components/hover-card/index.js +9 -0
- package/dist/components/hover-card/index.js.map +1 -0
- package/dist/components/icon-button/IconButton.d.ts +10 -0
- package/dist/components/icon-button/index.cjs +10 -0
- package/dist/components/icon-button/index.cjs.map +1 -0
- package/dist/components/icon-button/index.d.ts +2 -0
- package/dist/components/icon-button/index.js +10 -0
- package/dist/components/icon-button/index.js.map +1 -0
- package/dist/components/input/Input.d.ts +10 -0
- package/dist/components/input/index.cjs +12 -0
- package/dist/components/input/index.cjs.map +1 -0
- package/dist/components/input/index.d.ts +2 -0
- package/dist/components/input/index.js +12 -0
- package/dist/components/input/index.js.map +1 -0
- package/dist/components/input-group/InputGroup.d.ts +12 -0
- package/dist/components/input-group/index.cjs +9 -0
- package/dist/components/input-group/index.cjs.map +1 -0
- package/dist/components/input-group/index.d.ts +1 -0
- package/dist/components/input-group/index.js +9 -0
- package/dist/components/input-group/index.js.map +1 -0
- package/dist/components/input-otp/InputOTP.d.ts +13 -0
- package/dist/components/input-otp/index.cjs +9 -0
- package/dist/components/input-otp/index.cjs.map +1 -0
- package/dist/components/input-otp/index.d.ts +2 -0
- package/dist/components/input-otp/index.js +9 -0
- package/dist/components/input-otp/index.js.map +1 -0
- package/dist/components/item/Item.d.ts +10 -0
- package/dist/components/item/index.cjs +9 -0
- package/dist/components/item/index.cjs.map +1 -0
- package/dist/components/item/index.d.ts +2 -0
- package/dist/components/item/index.js +9 -0
- package/dist/components/item/index.js.map +1 -0
- package/dist/components/kbd/Kbd.d.ts +5 -0
- package/dist/components/kbd/index.cjs +9 -0
- package/dist/components/kbd/index.cjs.map +1 -0
- package/dist/components/kbd/index.d.ts +2 -0
- package/dist/components/kbd/index.js +9 -0
- package/dist/components/kbd/index.js.map +1 -0
- package/dist/components/label/Label.d.ts +6 -0
- package/dist/components/label/index.cjs +10 -0
- package/dist/components/label/index.cjs.map +1 -0
- package/dist/components/label/index.d.ts +2 -0
- package/dist/components/label/index.js +10 -0
- package/dist/components/label/index.js.map +1 -0
- package/dist/components/marker/Marker.d.ts +9 -0
- package/dist/components/marker/index.cjs +9 -0
- package/dist/components/marker/index.cjs.map +1 -0
- package/dist/components/marker/index.d.ts +2 -0
- package/dist/components/marker/index.js +9 -0
- package/dist/components/marker/index.js.map +1 -0
- package/dist/components/menubar/Menubar.d.ts +19 -0
- package/dist/components/menubar/index.cjs +9 -0
- package/dist/components/menubar/index.cjs.map +1 -0
- package/dist/components/menubar/index.d.ts +1 -0
- package/dist/components/menubar/index.js +9 -0
- package/dist/components/menubar/index.js.map +1 -0
- package/dist/components/message/Message.d.ts +20 -0
- package/dist/components/message/index.cjs +11 -0
- package/dist/components/message/index.cjs.map +1 -0
- package/dist/components/message/index.d.ts +2 -0
- package/dist/components/message/index.js +11 -0
- package/dist/components/message/index.js.map +1 -0
- package/dist/components/message-scroller/MessageScroller.d.ts +25 -0
- package/dist/components/message-scroller/index.cjs +12 -0
- package/dist/components/message-scroller/index.cjs.map +1 -0
- package/dist/components/message-scroller/index.d.ts +2 -0
- package/dist/components/message-scroller/index.js +12 -0
- package/dist/components/message-scroller/index.js.map +1 -0
- package/dist/components/native-select/NativeSelect.d.ts +18 -0
- package/dist/components/native-select/index.cjs +11 -0
- package/dist/components/native-select/index.cjs.map +1 -0
- package/dist/components/native-select/index.d.ts +2 -0
- package/dist/components/native-select/index.js +11 -0
- package/dist/components/native-select/index.js.map +1 -0
- package/dist/components/navigation-menu/NavigationMenu.d.ts +11 -0
- package/dist/components/navigation-menu/index.cjs +9 -0
- package/dist/components/navigation-menu/index.cjs.map +1 -0
- package/dist/components/navigation-menu/index.d.ts +1 -0
- package/dist/components/navigation-menu/index.js +9 -0
- package/dist/components/navigation-menu/index.js.map +1 -0
- package/dist/components/pagination/Pagination.d.ts +13 -0
- package/dist/components/pagination/index.cjs +9 -0
- package/dist/components/pagination/index.cjs.map +1 -0
- package/dist/components/pagination/index.d.ts +2 -0
- package/dist/components/pagination/index.js +9 -0
- package/dist/components/pagination/index.js.map +1 -0
- package/dist/components/popover/Popover.d.ts +10 -0
- package/dist/components/popover/index.cjs +9 -0
- package/dist/components/popover/index.cjs.map +1 -0
- package/dist/components/popover/index.d.ts +1 -0
- package/dist/components/popover/index.js +9 -0
- package/dist/components/popover/index.js.map +1 -0
- package/dist/components/progress/Progress.d.ts +8 -0
- package/dist/components/progress/index.cjs +9 -0
- package/dist/components/progress/index.cjs.map +1 -0
- package/dist/components/progress/index.d.ts +2 -0
- package/dist/components/progress/index.js +9 -0
- package/dist/components/progress/index.js.map +1 -0
- package/dist/components/questionnaire/Questionnaire.d.ts +20 -0
- package/dist/components/questionnaire/index.cjs +9 -0
- package/dist/components/questionnaire/index.cjs.map +1 -0
- package/dist/components/questionnaire/index.d.ts +2 -0
- package/dist/components/questionnaire/index.js +9 -0
- package/dist/components/questionnaire/index.js.map +1 -0
- package/dist/components/radio-group/RadioGroup.d.ts +13 -0
- package/dist/components/radio-group/index.cjs +11 -0
- package/dist/components/radio-group/index.cjs.map +1 -0
- package/dist/components/radio-group/index.d.ts +2 -0
- package/dist/components/radio-group/index.js +11 -0
- package/dist/components/radio-group/index.js.map +1 -0
- package/dist/components/resizable/Resizable.d.ts +11 -0
- package/dist/components/resizable/index.cjs +9 -0
- package/dist/components/resizable/index.cjs.map +1 -0
- package/dist/components/resizable/index.d.ts +2 -0
- package/dist/components/resizable/index.js +9 -0
- package/dist/components/resizable/index.js.map +1 -0
- package/dist/components/scroll-area/ScrollArea.d.ts +5 -0
- package/dist/components/scroll-area/index.cjs +9 -0
- package/dist/components/scroll-area/index.cjs.map +1 -0
- package/dist/components/scroll-area/index.d.ts +2 -0
- package/dist/components/scroll-area/index.js +9 -0
- package/dist/components/scroll-area/index.js.map +1 -0
- package/dist/components/select/Select.d.ts +24 -0
- package/dist/components/select/index.cjs +9 -0
- package/dist/components/select/index.cjs.map +1 -0
- package/dist/components/select/index.d.ts +2 -0
- package/dist/components/select/index.js +9 -0
- package/dist/components/select/index.js.map +1 -0
- package/dist/components/separator/Separator.d.ts +6 -0
- package/dist/components/separator/index.cjs +10 -0
- package/dist/components/separator/index.cjs.map +1 -0
- package/dist/components/separator/index.d.ts +2 -0
- package/dist/components/separator/index.js +10 -0
- package/dist/components/separator/index.js.map +1 -0
- package/dist/components/sheet/Sheet.d.ts +14 -0
- package/dist/components/sheet/index.cjs +10 -0
- package/dist/components/sheet/index.cjs.map +1 -0
- package/dist/components/sheet/index.d.ts +1 -0
- package/dist/components/sheet/index.js +10 -0
- package/dist/components/sheet/index.js.map +1 -0
- package/dist/components/sidebar/Sidebar.d.ts +108 -0
- package/dist/components/sidebar/index.cjs +19 -0
- package/dist/components/sidebar/index.cjs.map +1 -0
- package/dist/components/sidebar/index.d.ts +11 -0
- package/dist/components/sidebar/index.js +19 -0
- package/dist/components/sidebar/index.js.map +1 -0
- package/dist/components/skeleton/Skeleton.d.ts +5 -0
- package/dist/components/skeleton/index.cjs +10 -0
- package/dist/components/skeleton/index.cjs.map +1 -0
- package/dist/components/skeleton/index.d.ts +2 -0
- package/dist/components/skeleton/index.js +10 -0
- package/dist/components/skeleton/index.js.map +1 -0
- package/dist/components/slider/Slider.d.ts +6 -0
- package/dist/components/slider/index.cjs +9 -0
- package/dist/components/slider/index.cjs.map +1 -0
- package/dist/components/slider/index.d.ts +2 -0
- package/dist/components/slider/index.js +9 -0
- package/dist/components/slider/index.js.map +1 -0
- package/dist/components/spinner/Spinner.d.ts +7 -0
- package/dist/components/spinner/index.cjs +10 -0
- package/dist/components/spinner/index.cjs.map +1 -0
- package/dist/components/spinner/index.d.ts +2 -0
- package/dist/components/spinner/index.js +10 -0
- package/dist/components/spinner/index.js.map +1 -0
- package/dist/components/switch/Switch.d.ts +8 -0
- package/dist/components/switch/index.cjs +9 -0
- package/dist/components/switch/index.cjs.map +1 -0
- package/dist/components/switch/index.d.ts +2 -0
- package/dist/components/switch/index.js +9 -0
- package/dist/components/switch/index.js.map +1 -0
- package/dist/components/table/Table.d.ts +18 -0
- package/dist/components/table/index.cjs +9 -0
- package/dist/components/table/index.cjs.map +1 -0
- package/dist/components/table/index.d.ts +1 -0
- package/dist/components/table/index.js +9 -0
- package/dist/components/table/index.js.map +1 -0
- package/dist/components/tabs/Tabs.d.ts +9 -0
- package/dist/components/tabs/index.cjs +9 -0
- package/dist/components/tabs/index.cjs.map +1 -0
- package/dist/components/tabs/index.d.ts +1 -0
- package/dist/components/tabs/index.js +9 -0
- package/dist/components/tabs/index.js.map +1 -0
- package/dist/components/tag/Tag.d.ts +7 -0
- package/dist/components/tag/index.cjs +9 -0
- package/dist/components/tag/index.cjs.map +1 -0
- package/dist/components/tag/index.d.ts +2 -0
- package/dist/components/tag/index.js +9 -0
- package/dist/components/tag/index.js.map +1 -0
- package/dist/components/textarea/Textarea.d.ts +9 -0
- package/dist/components/textarea/index.cjs +11 -0
- package/dist/components/textarea/index.cjs.map +1 -0
- package/dist/components/textarea/index.d.ts +2 -0
- package/dist/components/textarea/index.js +11 -0
- package/dist/components/textarea/index.js.map +1 -0
- package/dist/components/toast/Toaster.d.ts +1 -0
- package/dist/components/toast/index.cjs +11 -0
- package/dist/components/toast/index.cjs.map +1 -0
- package/dist/components/toast/index.d.ts +3 -0
- package/dist/components/toast/index.js +11 -0
- package/dist/components/toast/index.js.map +1 -0
- package/dist/components/toast/useToast.d.ts +17 -0
- package/dist/components/toggle/Toggle.d.ts +9 -0
- package/dist/components/toggle/index.cjs +10 -0
- package/dist/components/toggle/index.cjs.map +1 -0
- package/dist/components/toggle/index.d.ts +2 -0
- package/dist/components/toggle/index.js +10 -0
- package/dist/components/toggle/index.js.map +1 -0
- package/dist/components/toggle-group/ToggleGroup.d.ts +14 -0
- package/dist/components/toggle-group/index.cjs +12 -0
- package/dist/components/toggle-group/index.cjs.map +1 -0
- package/dist/components/toggle-group/index.d.ts +2 -0
- package/dist/components/toggle-group/index.js +12 -0
- package/dist/components/toggle-group/index.js.map +1 -0
- package/dist/components/tooltip/Tooltip.d.ts +10 -0
- package/dist/components/tooltip/index.cjs +10 -0
- package/dist/components/tooltip/index.cjs.map +1 -0
- package/dist/components/tooltip/index.d.ts +2 -0
- package/dist/components/tooltip/index.js +10 -0
- package/dist/components/tooltip/index.js.map +1 -0
- package/dist/index.cjs +288 -0
- package/dist/index.cjs.map +1 -0
- package/dist/index.d.ts +123 -0
- package/dist/index.js +288 -0
- package/dist/index.js.map +1 -0
- package/dist/lib/cn.d.ts +3 -0
- package/dist/styles.css +2 -0
- package/dist/ui-manifest.json +1766 -0
- package/package.json +80 -0
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
'use client';
|
|
2
|
+
import {
|
|
3
|
+
cn
|
|
4
|
+
} from "./chunk-74GQ35MJ.js";
|
|
5
|
+
|
|
6
|
+
// src/components/sheet/Sheet.jsx
|
|
7
|
+
import { Dialog as RadixDialog } from "radix-ui";
|
|
8
|
+
import { X } from "@tlglobal/icons";
|
|
9
|
+
|
|
10
|
+
// src/components/sheet/Sheet.variants.js
|
|
11
|
+
import { cva } from "class-variance-authority";
|
|
12
|
+
var sheetContentVariants = cva(
|
|
13
|
+
"fixed z-[100] flex flex-col gap-4 border-border-default bg-bg-page p-6 shadow-md focus:outline-none",
|
|
14
|
+
{
|
|
15
|
+
variants: {
|
|
16
|
+
side: {
|
|
17
|
+
top: "inset-x-0 top-0 max-h-[80vh] border-b",
|
|
18
|
+
bottom: "inset-x-0 bottom-0 max-h-[80vh] border-t",
|
|
19
|
+
left: "inset-y-0 left-0 h-full w-[320px] max-w-[calc(100vw-2rem)] border-r",
|
|
20
|
+
right: "inset-y-0 right-0 h-full w-[320px] max-w-[calc(100vw-2rem)] border-l"
|
|
21
|
+
}
|
|
22
|
+
},
|
|
23
|
+
defaultVariants: { side: "right" }
|
|
24
|
+
}
|
|
25
|
+
);
|
|
26
|
+
|
|
27
|
+
// src/components/sheet/Sheet.jsx
|
|
28
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
29
|
+
function Content({ className, side, children, ...props }) {
|
|
30
|
+
return /* @__PURE__ */ jsxs(RadixDialog.Portal, { children: [
|
|
31
|
+
/* @__PURE__ */ jsx(RadixDialog.Overlay, { className: "fixed inset-0 z-[100] bg-neutral-900/40" }),
|
|
32
|
+
/* @__PURE__ */ jsxs(RadixDialog.Content, { className: cn(sheetContentVariants({ side }), className), ...props, children: [
|
|
33
|
+
children,
|
|
34
|
+
/* @__PURE__ */ jsx(
|
|
35
|
+
RadixDialog.Close,
|
|
36
|
+
{
|
|
37
|
+
"aria-label": "Close",
|
|
38
|
+
className: "absolute right-4 top-4 inline-flex h-6 w-6 items-center justify-center rounded-md text-text-muted transition-colors hover:bg-bg-surface hover:text-text-primary focus-visible:outline-none focus-visible:shadow-[var(--shadow-focus-ring)]",
|
|
39
|
+
children: /* @__PURE__ */ jsx(X, { size: 16 })
|
|
40
|
+
}
|
|
41
|
+
)
|
|
42
|
+
] })
|
|
43
|
+
] });
|
|
44
|
+
}
|
|
45
|
+
function Title({ className, ...props }) {
|
|
46
|
+
return /* @__PURE__ */ jsx(RadixDialog.Title, { className: cn("text-lg font-bold text-text-primary", className), ...props });
|
|
47
|
+
}
|
|
48
|
+
function Description({ className, ...props }) {
|
|
49
|
+
return /* @__PURE__ */ jsx(RadixDialog.Description, { className: cn("text-base leading-relaxed text-text-secondary", className), ...props });
|
|
50
|
+
}
|
|
51
|
+
function Footer({ className, ...props }) {
|
|
52
|
+
return /* @__PURE__ */ jsx("div", { className: cn("mt-auto flex justify-end gap-2.5", className), ...props });
|
|
53
|
+
}
|
|
54
|
+
var Sheet = {
|
|
55
|
+
Root: RadixDialog.Root,
|
|
56
|
+
Trigger: RadixDialog.Trigger,
|
|
57
|
+
Close: RadixDialog.Close,
|
|
58
|
+
Content,
|
|
59
|
+
Title,
|
|
60
|
+
Description,
|
|
61
|
+
Footer
|
|
62
|
+
};
|
|
63
|
+
|
|
64
|
+
export {
|
|
65
|
+
Sheet
|
|
66
|
+
};
|
|
67
|
+
//# sourceMappingURL=chunk-QX75NAXT.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/components/sheet/Sheet.jsx","../src/components/sheet/Sheet.variants.js"],"sourcesContent":["import { Dialog as RadixDialog } from \"radix-ui\";\nimport { X } from \"@tlglobal/icons\";\nimport { cn } from \"../../lib/cn.js\";\nimport { sheetContentVariants } from \"./Sheet.variants.js\";\n\nfunction Content({ className, side, children, ...props }) {\n return (\n <RadixDialog.Portal>\n <RadixDialog.Overlay className=\"fixed inset-0 z-[100] bg-neutral-900/40\" />\n <RadixDialog.Content className={cn(sheetContentVariants({ side }), className)} {...props}>\n {children}\n <RadixDialog.Close\n aria-label=\"Close\"\n className=\"absolute right-4 top-4 inline-flex h-6 w-6 items-center justify-center rounded-md text-text-muted transition-colors hover:bg-bg-surface hover:text-text-primary focus-visible:outline-none focus-visible:shadow-[var(--shadow-focus-ring)]\"\n >\n <X size={16} />\n </RadixDialog.Close>\n </RadixDialog.Content>\n </RadixDialog.Portal>\n );\n}\n\nfunction Title({ className, ...props }) {\n return <RadixDialog.Title className={cn(\"text-lg font-bold text-text-primary\", className)} {...props} />;\n}\n\nfunction Description({ className, ...props }) {\n return (\n <RadixDialog.Description className={cn(\"text-base leading-relaxed text-text-secondary\", className)} {...props} />\n );\n}\n\nfunction Footer({ className, ...props }) {\n return <div className={cn(\"mt-auto flex justify-end gap-2.5\", className)} {...props} />;\n}\n\nexport const Sheet = {\n Root: RadixDialog.Root,\n Trigger: RadixDialog.Trigger,\n Close: RadixDialog.Close,\n Content,\n Title,\n Description,\n Footer,\n};\n","import { cva } from \"class-variance-authority\";\n\nexport const sheetContentVariants = cva(\n \"fixed z-[100] flex flex-col gap-4 border-border-default bg-bg-page p-6 shadow-md focus:outline-none\",\n {\n variants: {\n side: {\n top: \"inset-x-0 top-0 max-h-[80vh] border-b\",\n bottom: \"inset-x-0 bottom-0 max-h-[80vh] border-t\",\n left: \"inset-y-0 left-0 h-full w-[320px] max-w-[calc(100vw-2rem)] border-r\",\n right: \"inset-y-0 right-0 h-full w-[320px] max-w-[calc(100vw-2rem)] border-l\",\n },\n },\n defaultVariants: { side: \"right\" },\n },\n);\n"],"mappings":";;;;;;AAAA,SAAS,UAAU,mBAAmB;AACtC,SAAS,SAAS;;;ACDlB,SAAS,WAAW;AAEb,IAAM,uBAAuB;AAAA,EAClC;AAAA,EACA;AAAA,IACE,UAAU;AAAA,MACR,MAAM;AAAA,QACJ,KAAK;AAAA,QACL,QAAQ;AAAA,QACR,MAAM;AAAA,QACN,OAAO;AAAA,MACT;AAAA,IACF;AAAA,IACA,iBAAiB,EAAE,MAAM,QAAQ;AAAA,EACnC;AACF;;;ADPM,cACA,YADA;AAHN,SAAS,QAAQ,EAAE,WAAW,MAAM,UAAU,GAAG,MAAM,GAAG;AACxD,SACE,qBAAC,YAAY,QAAZ,EACC;AAAA,wBAAC,YAAY,SAAZ,EAAoB,WAAU,2CAA0C;AAAA,IACzE,qBAAC,YAAY,SAAZ,EAAoB,WAAW,GAAG,qBAAqB,EAAE,KAAK,CAAC,GAAG,SAAS,GAAI,GAAG,OAChF;AAAA;AAAA,MACD;AAAA,QAAC,YAAY;AAAA,QAAZ;AAAA,UACC,cAAW;AAAA,UACX,WAAU;AAAA,UAEV,8BAAC,KAAE,MAAM,IAAI;AAAA;AAAA,MACf;AAAA,OACF;AAAA,KACF;AAEJ;AAEA,SAAS,MAAM,EAAE,WAAW,GAAG,MAAM,GAAG;AACtC,SAAO,oBAAC,YAAY,OAAZ,EAAkB,WAAW,GAAG,uCAAuC,SAAS,GAAI,GAAG,OAAO;AACxG;AAEA,SAAS,YAAY,EAAE,WAAW,GAAG,MAAM,GAAG;AAC5C,SACE,oBAAC,YAAY,aAAZ,EAAwB,WAAW,GAAG,iDAAiD,SAAS,GAAI,GAAG,OAAO;AAEnH;AAEA,SAAS,OAAO,EAAE,WAAW,GAAG,MAAM,GAAG;AACvC,SAAO,oBAAC,SAAI,WAAW,GAAG,oCAAoC,SAAS,GAAI,GAAG,OAAO;AACvF;AAEO,IAAM,QAAQ;AAAA,EACnB,MAAM,YAAY;AAAA,EAClB,SAAS,YAAY;AAAA,EACrB,OAAO,YAAY;AAAA,EACnB;AAAA,EACA;AAAA,EACA;AAAA,EACA;AACF;","names":[]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["/home/runner/work/Atoms/Atoms/packages/ui/dist/chunk-R27ACM4Q.cjs"],"names":[],"mappings":"AAAA,yBAAY","file":"/home/runner/work/Atoms/Atoms/packages/ui/dist/chunk-R27ACM4Q.cjs"}
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
'use client';
|
|
2
|
+
import {
|
|
3
|
+
cn
|
|
4
|
+
} from "./chunk-74GQ35MJ.js";
|
|
5
|
+
|
|
6
|
+
// src/components/alert/Alert.jsx
|
|
7
|
+
import React from "react";
|
|
8
|
+
import { AlertCircle, AlertTriangle, CheckCircle2, Info } from "@tlglobal/icons";
|
|
9
|
+
|
|
10
|
+
// src/components/alert/Alert.variants.js
|
|
11
|
+
import { cva } from "class-variance-authority";
|
|
12
|
+
var alertVariants = cva("flex items-start gap-2.5 rounded-md border p-3.5 font-sans", {
|
|
13
|
+
variants: {
|
|
14
|
+
tone: {
|
|
15
|
+
neutral: "border-border-default bg-bg-surface text-text-primary",
|
|
16
|
+
success: "border-success-500/20 bg-success-100 text-success-700",
|
|
17
|
+
warning: "border-warning-500/20 bg-warning-100 text-warning-700",
|
|
18
|
+
danger: "border-danger-500/20 bg-danger-100 text-danger-700"
|
|
19
|
+
}
|
|
20
|
+
},
|
|
21
|
+
defaultVariants: { tone: "neutral" }
|
|
22
|
+
});
|
|
23
|
+
|
|
24
|
+
// src/components/alert/Alert.jsx
|
|
25
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
26
|
+
var TONE_ICON = {
|
|
27
|
+
neutral: Info,
|
|
28
|
+
success: CheckCircle2,
|
|
29
|
+
warning: AlertTriangle,
|
|
30
|
+
danger: AlertCircle
|
|
31
|
+
};
|
|
32
|
+
var Alert = React.forwardRef(function Alert2({ tone, title, children, className, ...props }, ref) {
|
|
33
|
+
const Icon = TONE_ICON[tone] || TONE_ICON.neutral;
|
|
34
|
+
return /* @__PURE__ */ jsxs("div", { ref, role: "alert", className: cn(alertVariants({ tone }), className), ...props, children: [
|
|
35
|
+
/* @__PURE__ */ jsx(Icon, { size: 18, className: "mt-0.5 shrink-0" }),
|
|
36
|
+
/* @__PURE__ */ jsxs("div", { className: "flex-1", children: [
|
|
37
|
+
title && /* @__PURE__ */ jsx("div", { className: "text-sm font-semibold", children: title }),
|
|
38
|
+
children && /* @__PURE__ */ jsx("div", { className: cn("text-sm", title && "mt-0.5"), children })
|
|
39
|
+
] })
|
|
40
|
+
] });
|
|
41
|
+
});
|
|
42
|
+
|
|
43
|
+
export {
|
|
44
|
+
Alert
|
|
45
|
+
};
|
|
46
|
+
//# sourceMappingURL=chunk-R4RV6JMA.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/components/alert/Alert.jsx","../src/components/alert/Alert.variants.js"],"sourcesContent":["import React from \"react\";\nimport { AlertCircle, AlertTriangle, CheckCircle2, Info } from \"@tlglobal/icons\";\nimport { cn } from \"../../lib/cn.js\";\nimport { alertVariants } from \"./Alert.variants.js\";\n\nconst TONE_ICON = {\n neutral: Info,\n success: CheckCircle2,\n warning: AlertTriangle,\n danger: AlertCircle,\n};\n\nexport const Alert = React.forwardRef(function Alert({ tone, title, children, className, ...props }, ref) {\n const Icon = TONE_ICON[tone] || TONE_ICON.neutral;\n return (\n <div ref={ref} role=\"alert\" className={cn(alertVariants({ tone }), className)} {...props}>\n <Icon size={18} className=\"mt-0.5 shrink-0\" />\n <div className=\"flex-1\">\n {title && <div className=\"text-sm font-semibold\">{title}</div>}\n {children && <div className={cn(\"text-sm\", title && \"mt-0.5\")}>{children}</div>}\n </div>\n </div>\n );\n});\n","import { cva } from \"class-variance-authority\";\n\nexport const alertVariants = cva(\"flex items-start gap-2.5 rounded-md border p-3.5 font-sans\", {\n variants: {\n tone: {\n neutral: \"border-border-default bg-bg-surface text-text-primary\",\n success: \"border-success-500/20 bg-success-100 text-success-700\",\n warning: \"border-warning-500/20 bg-warning-100 text-warning-700\",\n danger: \"border-danger-500/20 bg-danger-100 text-danger-700\",\n },\n },\n defaultVariants: { tone: \"neutral\" },\n});\n"],"mappings":";;;;;;AAAA,OAAO,WAAW;AAClB,SAAS,aAAa,eAAe,cAAc,YAAY;;;ACD/D,SAAS,WAAW;AAEb,IAAM,gBAAgB,IAAI,8DAA8D;AAAA,EAC7F,UAAU;AAAA,IACR,MAAM;AAAA,MACJ,SAAS;AAAA,MACT,SAAS;AAAA,MACT,SAAS;AAAA,MACT,QAAQ;AAAA,IACV;AAAA,EACF;AAAA,EACA,iBAAiB,EAAE,MAAM,UAAU;AACrC,CAAC;;;ADIK,cACA,YADA;AAXN,IAAM,YAAY;AAAA,EAChB,SAAS;AAAA,EACT,SAAS;AAAA,EACT,SAAS;AAAA,EACT,QAAQ;AACV;AAEO,IAAM,QAAQ,MAAM,WAAW,SAASA,OAAM,EAAE,MAAM,OAAO,UAAU,WAAW,GAAG,MAAM,GAAG,KAAK;AACxG,QAAM,OAAO,UAAU,IAAI,KAAK,UAAU;AAC1C,SACE,qBAAC,SAAI,KAAU,MAAK,SAAQ,WAAW,GAAG,cAAc,EAAE,KAAK,CAAC,GAAG,SAAS,GAAI,GAAG,OACjF;AAAA,wBAAC,QAAK,MAAM,IAAI,WAAU,mBAAkB;AAAA,IAC5C,qBAAC,SAAI,WAAU,UACZ;AAAA,eAAS,oBAAC,SAAI,WAAU,yBAAyB,iBAAM;AAAA,MACvD,YAAY,oBAAC,SAAI,WAAW,GAAG,WAAW,SAAS,QAAQ,GAAI,UAAS;AAAA,OAC3E;AAAA,KACF;AAEJ,CAAC;","names":["Alert"]}
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }'use client';
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
var _chunkNSTYHMFWcjs = require('./chunk-NSTYHMFW.cjs');
|
|
5
|
+
|
|
6
|
+
// src/components/tag/Tag.jsx
|
|
7
|
+
var _react = require('react'); var _react2 = _interopRequireDefault(_react);
|
|
8
|
+
var _icons = require('@tlglobal/icons');
|
|
9
|
+
var _jsxruntime = require('react/jsx-runtime');
|
|
10
|
+
var Tag = _react2.default.forwardRef(function Tag2({ className, children, onRemove, ...props }, ref) {
|
|
11
|
+
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
12
|
+
"span",
|
|
13
|
+
{
|
|
14
|
+
ref,
|
|
15
|
+
className: _chunkNSTYHMFWcjs.cn.call(void 0,
|
|
16
|
+
"inline-flex h-6.5 items-center gap-1.5 rounded-sm border border-border-default bg-bg-surface py-0 pl-2.5 pr-1.5 font-sans text-sm text-text-primary",
|
|
17
|
+
className
|
|
18
|
+
),
|
|
19
|
+
...props,
|
|
20
|
+
children: [
|
|
21
|
+
children,
|
|
22
|
+
onRemove && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
23
|
+
"button",
|
|
24
|
+
{
|
|
25
|
+
type: "button",
|
|
26
|
+
onClick: onRemove,
|
|
27
|
+
"aria-label": "Remove",
|
|
28
|
+
className: "flex h-4 w-4 items-center justify-center rounded-sm text-text-muted transition-colors hover:bg-bg-surface-hover hover:text-text-primary",
|
|
29
|
+
children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _icons.X, { size: 12 })
|
|
30
|
+
}
|
|
31
|
+
)
|
|
32
|
+
]
|
|
33
|
+
}
|
|
34
|
+
);
|
|
35
|
+
});
|
|
36
|
+
|
|
37
|
+
|
|
38
|
+
|
|
39
|
+
exports.Tag = Tag;
|
|
40
|
+
//# sourceMappingURL=chunk-RB7PFSP5.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["/home/runner/work/Atoms/Atoms/packages/ui/dist/chunk-RB7PFSP5.cjs","../src/components/tag/Tag.jsx"],"names":["Tag"],"mappings":"AAAA,qLAAY;AACZ;AACE;AACF,wDAA6B;AAC7B;AACA;ACLA,4EAAkB;AAClB,wCAAkB;AAKd,+CAAA;AAFG,IAAM,IAAA,EAAM,eAAA,CAAM,UAAA,CAAW,SAASA,IAAAA,CAAI,EAAE,SAAA,EAAW,QAAA,EAAU,QAAA,EAAU,GAAG,MAAM,CAAA,EAAG,GAAA,EAAK;AACjG,EAAA,uBACE,8BAAA;AAAA,IAAC,MAAA;AAAA,IAAA;AAAA,MACC,GAAA;AAAA,MACA,SAAA,EAAW,kCAAA;AAAA,QACT,qJAAA;AAAA,QACA;AAAA,MACF,CAAA;AAAA,MACC,GAAG,KAAA;AAAA,MAEH,QAAA,EAAA;AAAA,QAAA,QAAA;AAAA,QACA,SAAA,mBACC,6BAAA;AAAA,UAAC,QAAA;AAAA,UAAA;AAAA,YACC,IAAA,EAAK,QAAA;AAAA,YACL,OAAA,EAAS,QAAA;AAAA,YACT,YAAA,EAAW,QAAA;AAAA,YACX,SAAA,EAAU,yIAAA;AAAA,YAEV,QAAA,kBAAA,6BAAA,QAAC,EAAA,EAAE,IAAA,EAAM,GAAA,CAAI;AAAA,UAAA;AAAA,QACf;AAAA,MAAA;AAAA,IAAA;AAAA,EAEJ,CAAA;AAEJ,CAAC,CAAA;ADQD;AACA;AACE;AACF,kBAAC","file":"/home/runner/work/Atoms/Atoms/packages/ui/dist/chunk-RB7PFSP5.cjs","sourcesContent":[null,"import React from \"react\";\nimport { X } from \"@tlglobal/icons\";\nimport { cn } from \"../../lib/cn.js\";\n\nexport const Tag = React.forwardRef(function Tag({ className, children, onRemove, ...props }, ref) {\n return (\n <span\n ref={ref}\n className={cn(\n \"inline-flex h-6.5 items-center gap-1.5 rounded-sm border border-border-default bg-bg-surface py-0 pl-2.5 pr-1.5 font-sans text-sm text-text-primary\",\n className,\n )}\n {...props}\n >\n {children}\n {onRemove && (\n <button\n type=\"button\"\n onClick={onRemove}\n aria-label=\"Remove\"\n className=\"flex h-4 w-4 items-center justify-center rounded-sm text-text-muted transition-colors hover:bg-bg-surface-hover hover:text-text-primary\"\n >\n <X size={12} />\n </button>\n )}\n </span>\n );\n});\n"]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["/home/runner/work/Atoms/Atoms/packages/ui/dist/chunk-RCUEVMFN.cjs"],"names":[],"mappings":"AAAA,yBAAY","file":"/home/runner/work/Atoms/Atoms/packages/ui/dist/chunk-RCUEVMFN.cjs"}
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }'use client';
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
var _chunkNSTYHMFWcjs = require('./chunk-NSTYHMFW.cjs');
|
|
5
|
+
|
|
6
|
+
// src/components/alert/Alert.jsx
|
|
7
|
+
var _react = require('react'); var _react2 = _interopRequireDefault(_react);
|
|
8
|
+
var _icons = require('@tlglobal/icons');
|
|
9
|
+
|
|
10
|
+
// src/components/alert/Alert.variants.js
|
|
11
|
+
var _classvarianceauthority = require('class-variance-authority');
|
|
12
|
+
var alertVariants = _classvarianceauthority.cva.call(void 0, "flex items-start gap-2.5 rounded-md border p-3.5 font-sans", {
|
|
13
|
+
variants: {
|
|
14
|
+
tone: {
|
|
15
|
+
neutral: "border-border-default bg-bg-surface text-text-primary",
|
|
16
|
+
success: "border-success-500/20 bg-success-100 text-success-700",
|
|
17
|
+
warning: "border-warning-500/20 bg-warning-100 text-warning-700",
|
|
18
|
+
danger: "border-danger-500/20 bg-danger-100 text-danger-700"
|
|
19
|
+
}
|
|
20
|
+
},
|
|
21
|
+
defaultVariants: { tone: "neutral" }
|
|
22
|
+
});
|
|
23
|
+
|
|
24
|
+
// src/components/alert/Alert.jsx
|
|
25
|
+
var _jsxruntime = require('react/jsx-runtime');
|
|
26
|
+
var TONE_ICON = {
|
|
27
|
+
neutral: _icons.Info,
|
|
28
|
+
success: _icons.CheckCircle2,
|
|
29
|
+
warning: _icons.AlertTriangle,
|
|
30
|
+
danger: _icons.AlertCircle
|
|
31
|
+
};
|
|
32
|
+
var Alert = _react2.default.forwardRef(function Alert2({ tone, title, children, className, ...props }, ref) {
|
|
33
|
+
const Icon = TONE_ICON[tone] || TONE_ICON.neutral;
|
|
34
|
+
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { ref, role: "alert", className: _chunkNSTYHMFWcjs.cn.call(void 0, alertVariants({ tone }), className), ...props, children: [
|
|
35
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, Icon, { size: 18, className: "mt-0.5 shrink-0" }),
|
|
36
|
+
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex-1", children: [
|
|
37
|
+
title && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "text-sm font-semibold", children: title }),
|
|
38
|
+
children && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: _chunkNSTYHMFWcjs.cn.call(void 0, "text-sm", title && "mt-0.5"), children })
|
|
39
|
+
] })
|
|
40
|
+
] });
|
|
41
|
+
});
|
|
42
|
+
|
|
43
|
+
|
|
44
|
+
|
|
45
|
+
exports.Alert = Alert;
|
|
46
|
+
//# sourceMappingURL=chunk-RG5TWXHH.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["/home/runner/work/Atoms/Atoms/packages/ui/dist/chunk-RG5TWXHH.cjs","../src/components/alert/Alert.jsx","../src/components/alert/Alert.variants.js"],"names":["Alert"],"mappings":"AAAA,qLAAY;AACZ;AACE;AACF,wDAA6B;AAC7B;AACA;ACLA,4EAAkB;AAClB,wCAA+D;ADO/D;AACA;AETA,kEAAoB;AAEb,IAAM,cAAA,EAAgB,yCAAA,4DAAI,EAA8D;AAAA,EAC7F,QAAA,EAAU;AAAA,IACR,IAAA,EAAM;AAAA,MACJ,OAAA,EAAS,uDAAA;AAAA,MACT,OAAA,EAAS,uDAAA;AAAA,MACT,OAAA,EAAS,uDAAA;AAAA,MACT,MAAA,EAAQ;AAAA,IACV;AAAA,EACF,CAAA;AAAA,EACA,eAAA,EAAiB,EAAE,IAAA,EAAM,UAAU;AACrC,CAAC,CAAA;AFUD;AACA;ACPM,+CAAA;AAXN,IAAM,UAAA,EAAY;AAAA,EAChB,OAAA,EAAS,WAAA;AAAA,EACT,OAAA,EAAS,mBAAA;AAAA,EACT,OAAA,EAAS,oBAAA;AAAA,EACT,MAAA,EAAQ;AACV,CAAA;AAEO,IAAM,MAAA,EAAQ,eAAA,CAAM,UAAA,CAAW,SAASA,MAAAA,CAAM,EAAE,IAAA,EAAM,KAAA,EAAO,QAAA,EAAU,SAAA,EAAW,GAAG,MAAM,CAAA,EAAG,GAAA,EAAK;AACxG,EAAA,MAAM,KAAA,EAAO,SAAA,CAAU,IAAI,EAAA,GAAK,SAAA,CAAU,OAAA;AAC1C,EAAA,uBACE,8BAAA,KAAC,EAAA,EAAI,GAAA,EAAU,IAAA,EAAK,OAAA,EAAQ,SAAA,EAAW,kCAAA,aAAG,CAAc,EAAE,KAAK,CAAC,CAAA,EAAG,SAAS,CAAA,EAAI,GAAG,KAAA,EACjF,QAAA,EAAA;AAAA,oBAAA,6BAAA,IAAC,EAAA,EAAK,IAAA,EAAM,EAAA,EAAI,SAAA,EAAU,kBAAA,CAAkB,CAAA;AAAA,oBAC5C,8BAAA,KAAC,EAAA,EAAI,SAAA,EAAU,QAAA,EACZ,QAAA,EAAA;AAAA,MAAA,MAAA,mBAAS,6BAAA,KAAC,EAAA,EAAI,SAAA,EAAU,uBAAA,EAAyB,QAAA,EAAA,MAAA,CAAM,CAAA;AAAA,MACvD,SAAA,mBAAY,6BAAA,KAAC,EAAA,EAAI,SAAA,EAAW,kCAAA,SAAG,EAAW,MAAA,GAAS,QAAQ,CAAA,EAAI,SAAA,CAAS;AAAA,IAAA,EAAA,CAC3E;AAAA,EAAA,EAAA,CACF,CAAA;AAEJ,CAAC,CAAA;ADkBD;AACA;AACE;AACF,sBAAC","file":"/home/runner/work/Atoms/Atoms/packages/ui/dist/chunk-RG5TWXHH.cjs","sourcesContent":[null,"import React from \"react\";\nimport { AlertCircle, AlertTriangle, CheckCircle2, Info } from \"@tlglobal/icons\";\nimport { cn } from \"../../lib/cn.js\";\nimport { alertVariants } from \"./Alert.variants.js\";\n\nconst TONE_ICON = {\n neutral: Info,\n success: CheckCircle2,\n warning: AlertTriangle,\n danger: AlertCircle,\n};\n\nexport const Alert = React.forwardRef(function Alert({ tone, title, children, className, ...props }, ref) {\n const Icon = TONE_ICON[tone] || TONE_ICON.neutral;\n return (\n <div ref={ref} role=\"alert\" className={cn(alertVariants({ tone }), className)} {...props}>\n <Icon size={18} className=\"mt-0.5 shrink-0\" />\n <div className=\"flex-1\">\n {title && <div className=\"text-sm font-semibold\">{title}</div>}\n {children && <div className={cn(\"text-sm\", title && \"mt-0.5\")}>{children}</div>}\n </div>\n </div>\n );\n});\n","import { cva } from \"class-variance-authority\";\n\nexport const alertVariants = cva(\"flex items-start gap-2.5 rounded-md border p-3.5 font-sans\", {\n variants: {\n tone: {\n neutral: \"border-border-default bg-bg-surface text-text-primary\",\n success: \"border-success-500/20 bg-success-100 text-success-700\",\n warning: \"border-warning-500/20 bg-warning-100 text-warning-700\",\n danger: \"border-danger-500/20 bg-danger-100 text-danger-700\",\n },\n },\n defaultVariants: { tone: \"neutral\" },\n});\n"]}
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }'use client';
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
var _chunkNSTYHMFWcjs = require('./chunk-NSTYHMFW.cjs');
|
|
5
|
+
|
|
6
|
+
// src/components/avatar/Avatar.jsx
|
|
7
|
+
var _react = require('react'); var _react2 = _interopRequireDefault(_react);
|
|
8
|
+
var _radixui = require('radix-ui');
|
|
9
|
+
|
|
10
|
+
// src/components/avatar/Avatar.variants.js
|
|
11
|
+
var _classvarianceauthority = require('class-variance-authority');
|
|
12
|
+
var avatarVariants = _classvarianceauthority.cva.call(void 0, "relative inline-flex shrink-0 overflow-hidden rounded-full", {
|
|
13
|
+
variants: {
|
|
14
|
+
size: {
|
|
15
|
+
sm: "h-7 w-7 text-xs",
|
|
16
|
+
md: "h-9 w-9 text-sm",
|
|
17
|
+
lg: "h-12 w-12 text-base"
|
|
18
|
+
}
|
|
19
|
+
},
|
|
20
|
+
defaultVariants: { size: "md" }
|
|
21
|
+
});
|
|
22
|
+
|
|
23
|
+
// src/components/avatar/Avatar.jsx
|
|
24
|
+
var _jsxruntime = require('react/jsx-runtime');
|
|
25
|
+
var Avatar = _react2.default.forwardRef(function Avatar2({ src, alt, fallback, size, className, ...props }, ref) {
|
|
26
|
+
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _radixui.Avatar.Root, { ref, className: _chunkNSTYHMFWcjs.cn.call(void 0, avatarVariants({ size }), className), ...props, children: [
|
|
27
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _radixui.Avatar.Image, { src, alt, className: "h-full w-full object-cover" }),
|
|
28
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
29
|
+
_radixui.Avatar.Fallback,
|
|
30
|
+
{
|
|
31
|
+
delayMs: src ? 300 : 0,
|
|
32
|
+
className: "flex h-full w-full items-center justify-center bg-neutral-200 font-sans font-semibold text-text-secondary",
|
|
33
|
+
children: fallback
|
|
34
|
+
}
|
|
35
|
+
)
|
|
36
|
+
] });
|
|
37
|
+
});
|
|
38
|
+
|
|
39
|
+
|
|
40
|
+
|
|
41
|
+
exports.Avatar = Avatar;
|
|
42
|
+
//# sourceMappingURL=chunk-RHIHSGAK.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["/home/runner/work/Atoms/Atoms/packages/ui/dist/chunk-RHIHSGAK.cjs","../src/components/avatar/Avatar.jsx","../src/components/avatar/Avatar.variants.js"],"names":["Avatar"],"mappings":"AAAA,qLAAY;AACZ;AACE;AACF,wDAA6B;AAC7B;AACA;ACLA,4EAAkB;AAClB,mCAAsC;ADOtC;AACA;AETA,kEAAoB;AAEb,IAAM,eAAA,EAAiB,yCAAA,4DAAI,EAA8D;AAAA,EAC9F,QAAA,EAAU;AAAA,IACR,IAAA,EAAM;AAAA,MACJ,EAAA,EAAI,iBAAA;AAAA,MACJ,EAAA,EAAI,iBAAA;AAAA,MACJ,EAAA,EAAI;AAAA,IACN;AAAA,EACF,CAAA;AAAA,EACA,eAAA,EAAiB,EAAE,IAAA,EAAM,KAAK;AAChC,CAAC,CAAA;AFUD;AACA;ACfI,+CAAA;AAFG,IAAM,OAAA,EAAS,eAAA,CAAM,UAAA,CAAW,SAASA,OAAAA,CAAO,EAAE,GAAA,EAAK,GAAA,EAAK,QAAA,EAAU,IAAA,EAAM,SAAA,EAAW,GAAG,MAAM,CAAA,EAAG,GAAA,EAAK;AAC7G,EAAA,uBACE,8BAAA,eAAC,CAAY,IAAA,EAAZ,EAAiB,GAAA,EAAU,SAAA,EAAW,kCAAA,cAAG,CAAe,EAAE,KAAK,CAAC,CAAA,EAAG,SAAS,CAAA,EAAI,GAAG,KAAA,EAClF,QAAA,EAAA;AAAA,oBAAA,6BAAA,eAAC,CAAY,KAAA,EAAZ,EAAkB,GAAA,EAAU,GAAA,EAAU,SAAA,EAAU,6BAAA,CAA6B,CAAA;AAAA,oBAC9E,6BAAA;AAAA,MAAC,eAAA,CAAY,QAAA;AAAA,MAAZ;AAAA,QACC,OAAA,EAAS,IAAA,EAAM,IAAA,EAAM,CAAA;AAAA,QACrB,SAAA,EAAU,2GAAA;AAAA,QAET,QAAA,EAAA;AAAA,MAAA;AAAA,IACH;AAAA,EAAA,EAAA,CACF,CAAA;AAEJ,CAAC,CAAA;ADoBD;AACA;AACE;AACF,wBAAC","file":"/home/runner/work/Atoms/Atoms/packages/ui/dist/chunk-RHIHSGAK.cjs","sourcesContent":[null,"import React from \"react\";\nimport { Avatar as RadixAvatar } from \"radix-ui\";\nimport { cn } from \"../../lib/cn.js\";\nimport { avatarVariants } from \"./Avatar.variants.js\";\n\nexport const Avatar = React.forwardRef(function Avatar({ src, alt, fallback, size, className, ...props }, ref) {\n return (\n <RadixAvatar.Root ref={ref} className={cn(avatarVariants({ size }), className)} {...props}>\n <RadixAvatar.Image src={src} alt={alt} className=\"h-full w-full object-cover\" />\n <RadixAvatar.Fallback\n delayMs={src ? 300 : 0}\n className=\"flex h-full w-full items-center justify-center bg-neutral-200 font-sans font-semibold text-text-secondary\"\n >\n {fallback}\n </RadixAvatar.Fallback>\n </RadixAvatar.Root>\n );\n});\n","import { cva } from \"class-variance-authority\";\n\nexport const avatarVariants = cva(\"relative inline-flex shrink-0 overflow-hidden rounded-full\", {\n variants: {\n size: {\n sm: \"h-7 w-7 text-xs\",\n md: \"h-9 w-9 text-sm\",\n lg: \"h-12 w-12 text-base\",\n },\n },\n defaultVariants: { size: \"md\" },\n});\n"]}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _nullishCoalesce(lhs, rhsFn) { if (lhs != null) { return lhs; } else { return rhsFn(); } }'use client';
|
|
2
|
+
|
|
3
|
+
// src/components/direction/Direction.jsx
|
|
4
|
+
var _react = require('react');
|
|
5
|
+
var _jsxruntime = require('react/jsx-runtime');
|
|
6
|
+
var DirectionContext = _react.createContext.call(void 0, "incoming");
|
|
7
|
+
function Provider({ value = "incoming", children }) {
|
|
8
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, DirectionContext.Provider, { value, children });
|
|
9
|
+
}
|
|
10
|
+
function useDirection(override) {
|
|
11
|
+
const inherited = _react.useContext.call(void 0, DirectionContext);
|
|
12
|
+
return _nullishCoalesce(override, () => ( inherited));
|
|
13
|
+
}
|
|
14
|
+
var Direction = { Provider };
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
|
|
18
|
+
|
|
19
|
+
exports.useDirection = useDirection; exports.Direction = Direction;
|
|
20
|
+
//# sourceMappingURL=chunk-RL3XVDMF.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["/home/runner/work/Atoms/Atoms/packages/ui/dist/chunk-RL3XVDMF.cjs","../src/components/direction/Direction.jsx"],"names":[],"mappings":"AAAA,yLAAY;AACZ;AACA;ACFA,8BAA0C;AAYjC,+CAAA;AAVT,IAAM,iBAAA,EAAmB,kCAAA,UAAwB,CAAA;AASjD,SAAS,QAAA,CAAS,EAAE,MAAA,EAAQ,UAAA,EAAY,SAAS,CAAA,EAAG;AAClD,EAAA,uBAAO,6BAAA,gBAAC,CAAiB,QAAA,EAAjB,EAA0B,KAAA,EAAe,SAAA,CAAS,CAAA;AAC5D;AAEO,SAAS,YAAA,CAAa,QAAA,EAAU;AACrC,EAAA,MAAM,UAAA,EAAY,+BAAA,gBAA2B,CAAA;AAC7C,EAAA,wBAAO,QAAA,UAAY,WAAA;AACrB;AAEO,IAAM,UAAA,EAAY,EAAE,SAAS,CAAA;ADNpC;AACA;AACE;AACA;AACF,mEAAC","file":"/home/runner/work/Atoms/Atoms/packages/ui/dist/chunk-RL3XVDMF.cjs","sourcesContent":[null,"import { createContext, useContext } from \"react\";\n\nconst DirectionContext = createContext(\"incoming\");\n\n/*\n * Context-only, no DOM of its own — deliberately. A conversation thread sets the speaker once per\n * message and every part inside it (bubble tail, avatar side, attachment alignment, action row)\n * has to agree; threading a `direction` prop through each one by hand is exactly the sort of thing\n * that drifts out of sync. Parts still accept an explicit `direction` prop, which wins over context,\n * so a one-off can always opt out without a nested provider.\n */\nfunction Provider({ value = \"incoming\", children }) {\n return <DirectionContext.Provider value={value}>{children}</DirectionContext.Provider>;\n}\n\nexport function useDirection(override) {\n const inherited = useContext(DirectionContext);\n return override ?? inherited;\n}\n\nexport const Direction = { Provider };\n"]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
'use client';
|
|
2
|
+
import {
|
|
3
|
+
cn
|
|
4
|
+
} from "./chunk-74GQ35MJ.js";
|
|
5
|
+
|
|
6
|
+
// src/components/tooltip/Tooltip.jsx
|
|
7
|
+
import { Tooltip as RadixTooltip } from "radix-ui";
|
|
8
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
9
|
+
function Tooltip({ label, children, side = "top", className, ...props }) {
|
|
10
|
+
return /* @__PURE__ */ jsx(RadixTooltip.Provider, { delayDuration: 200, children: /* @__PURE__ */ jsxs(RadixTooltip.Root, { children: [
|
|
11
|
+
/* @__PURE__ */ jsx(RadixTooltip.Trigger, { asChild: true, children }),
|
|
12
|
+
/* @__PURE__ */ jsx(RadixTooltip.Portal, { children: /* @__PURE__ */ jsxs(
|
|
13
|
+
RadixTooltip.Content,
|
|
14
|
+
{
|
|
15
|
+
side,
|
|
16
|
+
sideOffset: 6,
|
|
17
|
+
className: cn(
|
|
18
|
+
"z-50 rounded-sm bg-neutral-900 px-[9px] py-[5px] font-sans text-xs font-medium text-text-inverse shadow-sm",
|
|
19
|
+
className
|
|
20
|
+
),
|
|
21
|
+
...props,
|
|
22
|
+
children: [
|
|
23
|
+
label,
|
|
24
|
+
/* @__PURE__ */ jsx(RadixTooltip.Arrow, { className: "fill-neutral-900" })
|
|
25
|
+
]
|
|
26
|
+
}
|
|
27
|
+
) })
|
|
28
|
+
] }) });
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
export {
|
|
32
|
+
Tooltip
|
|
33
|
+
};
|
|
34
|
+
//# sourceMappingURL=chunk-SKQHJJ6L.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/components/tooltip/Tooltip.jsx"],"sourcesContent":["import { Tooltip as RadixTooltip } from \"radix-ui\";\nimport { cn } from \"../../lib/cn.js\";\n\nexport function Tooltip({ label, children, side = \"top\", className, ...props }) {\n return (\n <RadixTooltip.Provider delayDuration={200}>\n <RadixTooltip.Root>\n <RadixTooltip.Trigger asChild>{children}</RadixTooltip.Trigger>\n <RadixTooltip.Portal>\n <RadixTooltip.Content\n side={side}\n sideOffset={6}\n className={cn(\n \"z-50 rounded-sm bg-neutral-900 px-[9px] py-[5px] font-sans text-xs font-medium text-text-inverse shadow-sm\",\n className,\n )}\n {...props}\n >\n {label}\n <RadixTooltip.Arrow className=\"fill-neutral-900\" />\n </RadixTooltip.Content>\n </RadixTooltip.Portal>\n </RadixTooltip.Root>\n </RadixTooltip.Provider>\n );\n}\n"],"mappings":";;;;;;AAAA,SAAS,WAAW,oBAAoB;AAOhC,cAEE,YAFF;AAJD,SAAS,QAAQ,EAAE,OAAO,UAAU,OAAO,OAAO,WAAW,GAAG,MAAM,GAAG;AAC9E,SACE,oBAAC,aAAa,UAAb,EAAsB,eAAe,KACpC,+BAAC,aAAa,MAAb,EACC;AAAA,wBAAC,aAAa,SAAb,EAAqB,SAAO,MAAE,UAAS;AAAA,IACxC,oBAAC,aAAa,QAAb,EACC;AAAA,MAAC,aAAa;AAAA,MAAb;AAAA,QACC;AAAA,QACA,YAAY;AAAA,QACZ,WAAW;AAAA,UACT;AAAA,UACA;AAAA,QACF;AAAA,QACC,GAAG;AAAA,QAEH;AAAA;AAAA,UACD,oBAAC,aAAa,OAAb,EAAmB,WAAU,oBAAmB;AAAA;AAAA;AAAA,IACnD,GACF;AAAA,KACF,GACF;AAEJ;","names":[]}
|
|
@@ -0,0 +1,86 @@
|
|
|
1
|
+
'use client';
|
|
2
|
+
import {
|
|
3
|
+
cn
|
|
4
|
+
} from "./chunk-74GQ35MJ.js";
|
|
5
|
+
|
|
6
|
+
// src/components/questionnaire/Questionnaire.jsx
|
|
7
|
+
import React, { createContext, useContext, useId } from "react";
|
|
8
|
+
import { Check } from "@tlglobal/icons";
|
|
9
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
10
|
+
var QuestionnaireContext = createContext(null);
|
|
11
|
+
function useQuestionnaire() {
|
|
12
|
+
const context = useContext(QuestionnaireContext);
|
|
13
|
+
if (!context) throw new Error("Questionnaire parts must be used within Questionnaire.Root");
|
|
14
|
+
return context;
|
|
15
|
+
}
|
|
16
|
+
function Root({ multiple = false, className, children, ...props }) {
|
|
17
|
+
const promptId = useId();
|
|
18
|
+
return /* @__PURE__ */ jsx(QuestionnaireContext.Provider, { value: { multiple, promptId }, children: /* @__PURE__ */ jsx(
|
|
19
|
+
"div",
|
|
20
|
+
{
|
|
21
|
+
"data-slot": "questionnaire",
|
|
22
|
+
className: cn("flex flex-col gap-2 font-sans", className),
|
|
23
|
+
...props,
|
|
24
|
+
children
|
|
25
|
+
}
|
|
26
|
+
) });
|
|
27
|
+
}
|
|
28
|
+
function Prompt({ className, ...props }) {
|
|
29
|
+
const { promptId } = useQuestionnaire();
|
|
30
|
+
return /* @__PURE__ */ jsx(
|
|
31
|
+
"p",
|
|
32
|
+
{
|
|
33
|
+
id: promptId,
|
|
34
|
+
"data-slot": "questionnaire-prompt",
|
|
35
|
+
className: cn("text-sm text-text-secondary", className),
|
|
36
|
+
...props
|
|
37
|
+
}
|
|
38
|
+
);
|
|
39
|
+
}
|
|
40
|
+
function Options({ className, ...props }) {
|
|
41
|
+
const { multiple, promptId } = useQuestionnaire();
|
|
42
|
+
return /* @__PURE__ */ jsx(
|
|
43
|
+
"div",
|
|
44
|
+
{
|
|
45
|
+
role: multiple ? "group" : "radiogroup",
|
|
46
|
+
"aria-labelledby": promptId,
|
|
47
|
+
"data-slot": "questionnaire-options",
|
|
48
|
+
className: cn("flex flex-wrap gap-2", className),
|
|
49
|
+
...props
|
|
50
|
+
}
|
|
51
|
+
);
|
|
52
|
+
}
|
|
53
|
+
var Option = React.forwardRef(function Option2({ selected = false, disabled = false, className, children, ...props }, ref) {
|
|
54
|
+
const { multiple } = useQuestionnaire();
|
|
55
|
+
return /* @__PURE__ */ jsxs(
|
|
56
|
+
"button",
|
|
57
|
+
{
|
|
58
|
+
ref,
|
|
59
|
+
type: "button",
|
|
60
|
+
disabled,
|
|
61
|
+
role: multiple ? void 0 : "radio",
|
|
62
|
+
"aria-pressed": multiple ? selected : void 0,
|
|
63
|
+
"aria-checked": multiple ? void 0 : selected,
|
|
64
|
+
"data-slot": "questionnaire-option",
|
|
65
|
+
"data-selected": selected || void 0,
|
|
66
|
+
className: cn(
|
|
67
|
+
"inline-flex items-center gap-1.5 rounded-full border px-3 py-1.5 text-sm transition-colors",
|
|
68
|
+
"focus-visible:outline-none focus-visible:shadow-[var(--shadow-focus-ring)]",
|
|
69
|
+
"disabled:pointer-events-none disabled:opacity-50",
|
|
70
|
+
selected ? "border-accent bg-accent-100 font-medium text-accent-700" : "border-border-default bg-bg-page text-text-primary hover:bg-bg-surface",
|
|
71
|
+
className
|
|
72
|
+
),
|
|
73
|
+
...props,
|
|
74
|
+
children: [
|
|
75
|
+
selected && /* @__PURE__ */ jsx(Check, { size: 14, className: "shrink-0" }),
|
|
76
|
+
children
|
|
77
|
+
]
|
|
78
|
+
}
|
|
79
|
+
);
|
|
80
|
+
});
|
|
81
|
+
var Questionnaire = { Root, Prompt, Options, Option };
|
|
82
|
+
|
|
83
|
+
export {
|
|
84
|
+
Questionnaire
|
|
85
|
+
};
|
|
86
|
+
//# sourceMappingURL=chunk-SN6MWJU6.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/components/questionnaire/Questionnaire.jsx"],"sourcesContent":["import React, { createContext, useContext, useId } from \"react\";\nimport { Check } from \"@tlglobal/icons\";\nimport { cn } from \"../../lib/cn.js\";\n\nconst QuestionnaireContext = createContext(null);\n\nfunction useQuestionnaire() {\n const context = useContext(QuestionnaireContext);\n if (!context) throw new Error(\"Questionnaire parts must be used within Questionnaire.Root\");\n return context;\n}\n\n/*\n * The suggested-replies strip an assistant offers under a message. `multiple` decides both the\n * selection semantics and the ARIA contract: a single-select set is a radiogroup, a multi-select\n * set is a plain group of toggle buttons. Getting that wrong is the difference between a screen\n * reader saying \"1 of 4\" and saying nothing useful at all.\n */\nfunction Root({ multiple = false, className, children, ...props }) {\n const promptId = useId();\n return (\n <QuestionnaireContext.Provider value={{ multiple, promptId }}>\n <div\n data-slot=\"questionnaire\"\n className={cn(\"flex flex-col gap-2 font-sans\", className)}\n {...props}\n >\n {children}\n </div>\n </QuestionnaireContext.Provider>\n );\n}\n\nfunction Prompt({ className, ...props }) {\n const { promptId } = useQuestionnaire();\n return (\n <p\n id={promptId}\n data-slot=\"questionnaire-prompt\"\n className={cn(\"text-sm text-text-secondary\", className)}\n {...props}\n />\n );\n}\n\nfunction Options({ className, ...props }) {\n const { multiple, promptId } = useQuestionnaire();\n return (\n <div\n role={multiple ? \"group\" : \"radiogroup\"}\n aria-labelledby={promptId}\n data-slot=\"questionnaire-options\"\n className={cn(\"flex flex-wrap gap-2\", className)}\n {...props}\n />\n );\n}\n\nconst Option = React.forwardRef(function Option(\n { selected = false, disabled = false, className, children, ...props },\n ref,\n) {\n const { multiple } = useQuestionnaire();\n\n return (\n <button\n ref={ref}\n type=\"button\"\n disabled={disabled}\n role={multiple ? undefined : \"radio\"}\n // A multi-select chip is a toggle button (aria-pressed); a single-select one is a radio\n // (aria-checked). Setting both, or the wrong one, makes the state unannounceable.\n aria-pressed={multiple ? selected : undefined}\n aria-checked={multiple ? undefined : selected}\n data-slot=\"questionnaire-option\"\n data-selected={selected || undefined}\n className={cn(\n \"inline-flex items-center gap-1.5 rounded-full border px-3 py-1.5 text-sm transition-colors\",\n \"focus-visible:outline-none focus-visible:shadow-[var(--shadow-focus-ring)]\",\n \"disabled:pointer-events-none disabled:opacity-50\",\n selected\n ? \"border-accent bg-accent-100 font-medium text-accent-700\"\n : \"border-border-default bg-bg-page text-text-primary hover:bg-bg-surface\",\n className,\n )}\n {...props}\n >\n {selected && <Check size={14} className=\"shrink-0\" />}\n {children}\n </button>\n );\n});\n\nexport const Questionnaire = { Root, Prompt, Options, Option };\n"],"mappings":";;;;;;AAAA,OAAO,SAAS,eAAe,YAAY,aAAa;AACxD,SAAS,aAAa;AAqBhB,cA2CF,YA3CE;AAlBN,IAAM,uBAAuB,cAAc,IAAI;AAE/C,SAAS,mBAAmB;AAC1B,QAAM,UAAU,WAAW,oBAAoB;AAC/C,MAAI,CAAC,QAAS,OAAM,IAAI,MAAM,4DAA4D;AAC1F,SAAO;AACT;AAQA,SAAS,KAAK,EAAE,WAAW,OAAO,WAAW,UAAU,GAAG,MAAM,GAAG;AACjE,QAAM,WAAW,MAAM;AACvB,SACE,oBAAC,qBAAqB,UAArB,EAA8B,OAAO,EAAE,UAAU,SAAS,GACzD;AAAA,IAAC;AAAA;AAAA,MACC,aAAU;AAAA,MACV,WAAW,GAAG,iCAAiC,SAAS;AAAA,MACvD,GAAG;AAAA,MAEH;AAAA;AAAA,EACH,GACF;AAEJ;AAEA,SAAS,OAAO,EAAE,WAAW,GAAG,MAAM,GAAG;AACvC,QAAM,EAAE,SAAS,IAAI,iBAAiB;AACtC,SACE;AAAA,IAAC;AAAA;AAAA,MACC,IAAI;AAAA,MACJ,aAAU;AAAA,MACV,WAAW,GAAG,+BAA+B,SAAS;AAAA,MACrD,GAAG;AAAA;AAAA,EACN;AAEJ;AAEA,SAAS,QAAQ,EAAE,WAAW,GAAG,MAAM,GAAG;AACxC,QAAM,EAAE,UAAU,SAAS,IAAI,iBAAiB;AAChD,SACE;AAAA,IAAC;AAAA;AAAA,MACC,MAAM,WAAW,UAAU;AAAA,MAC3B,mBAAiB;AAAA,MACjB,aAAU;AAAA,MACV,WAAW,GAAG,wBAAwB,SAAS;AAAA,MAC9C,GAAG;AAAA;AAAA,EACN;AAEJ;AAEA,IAAM,SAAS,MAAM,WAAW,SAASA,QACvC,EAAE,WAAW,OAAO,WAAW,OAAO,WAAW,UAAU,GAAG,MAAM,GACpE,KACA;AACA,QAAM,EAAE,SAAS,IAAI,iBAAiB;AAEtC,SACE;AAAA,IAAC;AAAA;AAAA,MACC;AAAA,MACA,MAAK;AAAA,MACL;AAAA,MACA,MAAM,WAAW,SAAY;AAAA,MAG7B,gBAAc,WAAW,WAAW;AAAA,MACpC,gBAAc,WAAW,SAAY;AAAA,MACrC,aAAU;AAAA,MACV,iBAAe,YAAY;AAAA,MAC3B,WAAW;AAAA,QACT;AAAA,QACA;AAAA,QACA;AAAA,QACA,WACI,4DACA;AAAA,QACJ;AAAA,MACF;AAAA,MACC,GAAG;AAAA,MAEH;AAAA,oBAAY,oBAAC,SAAM,MAAM,IAAI,WAAU,YAAW;AAAA,QAClD;AAAA;AAAA;AAAA,EACH;AAEJ,CAAC;AAEM,IAAM,gBAAgB,EAAE,MAAM,QAAQ,SAAS,OAAO;","names":["Option"]}
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
'use client';
|
|
2
|
+
import {
|
|
3
|
+
cn
|
|
4
|
+
} from "./chunk-74GQ35MJ.js";
|
|
5
|
+
|
|
6
|
+
// src/components/radio-group/RadioGroup.jsx
|
|
7
|
+
import React, { useId } from "react";
|
|
8
|
+
import { RadioGroup as RadixRadioGroup, Label } from "radix-ui";
|
|
9
|
+
|
|
10
|
+
// src/components/radio-group/RadioGroup.variants.js
|
|
11
|
+
import { cva } from "class-variance-authority";
|
|
12
|
+
var radioItemVariants = cva(
|
|
13
|
+
"flex h-[18px] w-[18px] shrink-0 items-center justify-center rounded-full border border-border-strong bg-bg-page transition-colors data-[state=checked]:border-accent disabled:cursor-not-allowed disabled:opacity-50 focus-visible:outline-none focus-visible:shadow-[var(--shadow-focus-ring)]"
|
|
14
|
+
);
|
|
15
|
+
|
|
16
|
+
// src/components/radio-group/RadioGroup.jsx
|
|
17
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
18
|
+
var RadioGroup = React.forwardRef(function RadioGroup2({ className, ...props }, ref) {
|
|
19
|
+
return /* @__PURE__ */ jsx(RadixRadioGroup.Root, { ref, className: cn("flex flex-col gap-3 font-sans", className), ...props });
|
|
20
|
+
});
|
|
21
|
+
var RadioGroupItem = React.forwardRef(function RadioGroupItem2({ label, disabled, className, id, value, ...props }, ref) {
|
|
22
|
+
const generatedId = useId();
|
|
23
|
+
const itemId = id || `${generatedId}-${value}`;
|
|
24
|
+
return /* @__PURE__ */ jsxs("span", { className: "inline-flex items-center gap-2", children: [
|
|
25
|
+
/* @__PURE__ */ jsx(
|
|
26
|
+
RadixRadioGroup.Item,
|
|
27
|
+
{
|
|
28
|
+
ref,
|
|
29
|
+
id: itemId,
|
|
30
|
+
value,
|
|
31
|
+
disabled,
|
|
32
|
+
className: cn(radioItemVariants(), className),
|
|
33
|
+
...props,
|
|
34
|
+
children: /* @__PURE__ */ jsx(RadixRadioGroup.Indicator, { className: "block h-[9px] w-[9px] rounded-full bg-accent" })
|
|
35
|
+
}
|
|
36
|
+
),
|
|
37
|
+
label && /* @__PURE__ */ jsx(
|
|
38
|
+
Label.Root,
|
|
39
|
+
{
|
|
40
|
+
htmlFor: itemId,
|
|
41
|
+
className: cn("text-base text-text-primary", disabled && "cursor-not-allowed text-text-muted"),
|
|
42
|
+
children: label
|
|
43
|
+
}
|
|
44
|
+
)
|
|
45
|
+
] });
|
|
46
|
+
});
|
|
47
|
+
|
|
48
|
+
export {
|
|
49
|
+
RadioGroup,
|
|
50
|
+
RadioGroupItem
|
|
51
|
+
};
|
|
52
|
+
//# sourceMappingURL=chunk-SP36M6G5.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/components/radio-group/RadioGroup.jsx","../src/components/radio-group/RadioGroup.variants.js"],"sourcesContent":["import React, { useId } from \"react\";\nimport { RadioGroup as RadixRadioGroup, Label } from \"radix-ui\";\nimport { cn } from \"../../lib/cn.js\";\nimport { radioItemVariants } from \"./RadioGroup.variants.js\";\n\nexport const RadioGroup = React.forwardRef(function RadioGroup({ className, ...props }, ref) {\n return <RadixRadioGroup.Root ref={ref} className={cn(\"flex flex-col gap-3 font-sans\", className)} {...props} />;\n});\n\nexport const RadioGroupItem = React.forwardRef(function RadioGroupItem(\n { label, disabled, className, id, value, ...props },\n ref,\n) {\n const generatedId = useId();\n const itemId = id || `${generatedId}-${value}`;\n\n return (\n <span className=\"inline-flex items-center gap-2\">\n <RadixRadioGroup.Item\n ref={ref}\n id={itemId}\n value={value}\n disabled={disabled}\n className={cn(radioItemVariants(), className)}\n {...props}\n >\n <RadixRadioGroup.Indicator className=\"block h-[9px] w-[9px] rounded-full bg-accent\" />\n </RadixRadioGroup.Item>\n {label && (\n <Label.Root\n htmlFor={itemId}\n className={cn(\"text-base text-text-primary\", disabled && \"cursor-not-allowed text-text-muted\")}\n >\n {label}\n </Label.Root>\n )}\n </span>\n );\n});\n","import { cva } from \"class-variance-authority\";\n\nexport const radioItemVariants = cva(\n \"flex h-[18px] w-[18px] shrink-0 items-center justify-center rounded-full border border-border-strong bg-bg-page transition-colors data-[state=checked]:border-accent disabled:cursor-not-allowed disabled:opacity-50 focus-visible:outline-none focus-visible:shadow-[var(--shadow-focus-ring)]\",\n);\n"],"mappings":";;;;;;AAAA,OAAO,SAAS,aAAa;AAC7B,SAAS,cAAc,iBAAiB,aAAa;;;ACDrD,SAAS,WAAW;AAEb,IAAM,oBAAoB;AAAA,EAC/B;AACF;;;ADES,cAWL,YAXK;AADF,IAAM,aAAa,MAAM,WAAW,SAASA,YAAW,EAAE,WAAW,GAAG,MAAM,GAAG,KAAK;AAC3F,SAAO,oBAAC,gBAAgB,MAAhB,EAAqB,KAAU,WAAW,GAAG,iCAAiC,SAAS,GAAI,GAAG,OAAO;AAC/G,CAAC;AAEM,IAAM,iBAAiB,MAAM,WAAW,SAASC,gBACtD,EAAE,OAAO,UAAU,WAAW,IAAI,OAAO,GAAG,MAAM,GAClD,KACA;AACA,QAAM,cAAc,MAAM;AAC1B,QAAM,SAAS,MAAM,GAAG,WAAW,IAAI,KAAK;AAE5C,SACE,qBAAC,UAAK,WAAU,kCACd;AAAA;AAAA,MAAC,gBAAgB;AAAA,MAAhB;AAAA,QACC;AAAA,QACA,IAAI;AAAA,QACJ;AAAA,QACA;AAAA,QACA,WAAW,GAAG,kBAAkB,GAAG,SAAS;AAAA,QAC3C,GAAG;AAAA,QAEJ,8BAAC,gBAAgB,WAAhB,EAA0B,WAAU,gDAA+C;AAAA;AAAA,IACtF;AAAA,IACC,SACC;AAAA,MAAC,MAAM;AAAA,MAAN;AAAA,QACC,SAAS;AAAA,QACT,WAAW,GAAG,+BAA+B,YAAY,oCAAoC;AAAA,QAE5F;AAAA;AAAA,IACH;AAAA,KAEJ;AAEJ,CAAC;","names":["RadioGroup","RadioGroupItem"]}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }'use client';
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
var _chunkNSTYHMFWcjs = require('./chunk-NSTYHMFW.cjs');
|
|
5
|
+
|
|
6
|
+
// src/components/card/Card.jsx
|
|
7
|
+
var _react = require('react'); var _react2 = _interopRequireDefault(_react);
|
|
8
|
+
|
|
9
|
+
// src/components/card/Card.variants.js
|
|
10
|
+
var _classvarianceauthority = require('class-variance-authority');
|
|
11
|
+
var cardVariants = _classvarianceauthority.cva.call(void 0, "rounded-lg border border-border-default bg-bg-page", {
|
|
12
|
+
variants: {
|
|
13
|
+
padding: {
|
|
14
|
+
none: "p-0",
|
|
15
|
+
sm: "p-4",
|
|
16
|
+
md: "p-6",
|
|
17
|
+
lg: "p-8"
|
|
18
|
+
}
|
|
19
|
+
},
|
|
20
|
+
defaultVariants: { padding: "md" }
|
|
21
|
+
});
|
|
22
|
+
|
|
23
|
+
// src/components/card/Card.jsx
|
|
24
|
+
var _jsxruntime = require('react/jsx-runtime');
|
|
25
|
+
var Card = _react2.default.forwardRef(function Card2({ padding, className, children, ...props }, ref) {
|
|
26
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { ref, className: _chunkNSTYHMFWcjs.cn.call(void 0, cardVariants({ padding }), className), ...props, children });
|
|
27
|
+
});
|
|
28
|
+
|
|
29
|
+
|
|
30
|
+
|
|
31
|
+
exports.Card = Card;
|
|
32
|
+
//# sourceMappingURL=chunk-SWBJF2XG.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["/home/runner/work/Atoms/Atoms/packages/ui/dist/chunk-SWBJF2XG.cjs","../src/components/card/Card.jsx","../src/components/card/Card.variants.js"],"names":["Card"],"mappings":"AAAA,qLAAY;AACZ;AACE;AACF,wDAA6B;AAC7B;AACA;ACLA,4EAAkB;ADOlB;AACA;AERA,kEAAoB;AAEb,IAAM,aAAA,EAAe,yCAAA,oDAAI,EAAsD;AAAA,EACpF,QAAA,EAAU;AAAA,IACR,OAAA,EAAS;AAAA,MACP,IAAA,EAAM,KAAA;AAAA,MACN,EAAA,EAAI,KAAA;AAAA,MACJ,EAAA,EAAI,KAAA;AAAA,MACJ,EAAA,EAAI;AAAA,IACN;AAAA,EACF,CAAA;AAAA,EACA,eAAA,EAAiB,EAAE,OAAA,EAAS,KAAK;AACnC,CAAC,CAAA;AFSD;AACA;AChBI,+CAAA;AAFG,IAAM,KAAA,EAAO,eAAA,CAAM,UAAA,CAAW,SAASA,KAAAA,CAAK,EAAE,OAAA,EAAS,SAAA,EAAW,QAAA,EAAU,GAAG,MAAM,CAAA,EAAG,GAAA,EAAK;AAClG,EAAA,uBACE,6BAAA,KAAC,EAAA,EAAI,GAAA,EAAU,SAAA,EAAW,kCAAA,YAAG,CAAa,EAAE,QAAQ,CAAC,CAAA,EAAG,SAAS,CAAA,EAAI,GAAG,KAAA,EACrE,SAAA,CACH,CAAA;AAEJ,CAAC,CAAA;ADiBD;AACA;AACE;AACF,oBAAC","file":"/home/runner/work/Atoms/Atoms/packages/ui/dist/chunk-SWBJF2XG.cjs","sourcesContent":[null,"import React from \"react\";\nimport { cn } from \"../../lib/cn.js\";\nimport { cardVariants } from \"./Card.variants.js\";\n\nexport const Card = React.forwardRef(function Card({ padding, className, children, ...props }, ref) {\n return (\n <div ref={ref} className={cn(cardVariants({ padding }), className)} {...props}>\n {children}\n </div>\n );\n});\n","import { cva } from \"class-variance-authority\";\n\nexport const cardVariants = cva(\"rounded-lg border border-border-default bg-bg-page\", {\n variants: {\n padding: {\n none: \"p-0\",\n sm: \"p-4\",\n md: \"p-6\",\n lg: \"p-8\",\n },\n },\n defaultVariants: { padding: \"md\" },\n});\n"]}
|