@dsfrkit/react 0.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 +115 -0
- package/dist/artwork-B3QGyilb.d.mts +156 -0
- package/dist/artwork-B3QGyilb.d.ts +156 -0
- package/dist/artwork-CW2iQ_23.d.mts +171 -0
- package/dist/artwork-CW2iQ_23.d.ts +171 -0
- package/dist/chunk-23I7BDV6.mjs +39 -0
- package/dist/chunk-24DYKVTR.mjs +144 -0
- package/dist/chunk-2BB27XUW.mjs +65 -0
- package/dist/chunk-2BJMVHYD.mjs +137 -0
- package/dist/chunk-2EW2GCGT.mjs +137 -0
- package/dist/chunk-2HZIFFGX.mjs +144 -0
- package/dist/chunk-2LHWW7HN.mjs +114 -0
- package/dist/chunk-2LXQNL5D.mjs +113 -0
- package/dist/chunk-2NH3AUHW.mjs +79 -0
- package/dist/chunk-2PJ4EU56.mjs +203 -0
- package/dist/chunk-2QH4KMWT.mjs +8 -0
- package/dist/chunk-2RNER4KC.mjs +144 -0
- package/dist/chunk-2U3S73BF.mjs +8 -0
- package/dist/chunk-2V722J6M.mjs +8 -0
- package/dist/chunk-37CO3FHD.mjs +125 -0
- package/dist/chunk-3BTPUF5K.mjs +144 -0
- package/dist/chunk-3GBCT2U3.mjs +156 -0
- package/dist/chunk-3HHH4GMH.mjs +110 -0
- package/dist/chunk-3IMYMASJ.mjs +194 -0
- package/dist/chunk-3J555ZVB.mjs +122 -0
- package/dist/chunk-3JFXRCOL.mjs +1 -0
- package/dist/chunk-3JUY36HV.mjs +127 -0
- package/dist/chunk-3THML6BJ.mjs +22 -0
- package/dist/chunk-3VPGNSKX.mjs +834 -0
- package/dist/chunk-3YSDF6VX.mjs +221 -0
- package/dist/chunk-43XOENR2.mjs +53 -0
- package/dist/chunk-43ZFDH2Q.mjs +122 -0
- package/dist/chunk-44UGQHBU.mjs +166 -0
- package/dist/chunk-474LZSO7.mjs +122 -0
- package/dist/chunk-4KCVV4LR.mjs +156 -0
- package/dist/chunk-4LGWCPN4.mjs +92 -0
- package/dist/chunk-4LVHKND5.mjs +129 -0
- package/dist/chunk-4NU2XZIG.mjs +137 -0
- package/dist/chunk-4PA73RZ4.mjs +221 -0
- package/dist/chunk-4UBXW6O2.mjs +63 -0
- package/dist/chunk-4ZFM6M7C.mjs +127 -0
- package/dist/chunk-52BJN7DC.mjs +504 -0
- package/dist/chunk-53M2BTB5.mjs +22 -0
- package/dist/chunk-552MR22F.mjs +93 -0
- package/dist/chunk-57DNFR54.mjs +92 -0
- package/dist/chunk-5FHDLYYI.mjs +200 -0
- package/dist/chunk-5I2Y5M2K.mjs +514 -0
- package/dist/chunk-5IJLRY6P.mjs +504 -0
- package/dist/chunk-5IQADW3H.mjs +82 -0
- package/dist/chunk-5MEHDSPX.mjs +137 -0
- package/dist/chunk-5OYV672H.mjs +122 -0
- package/dist/chunk-5TQ2XLQH.mjs +91 -0
- package/dist/chunk-5WNMRXFG.mjs +137 -0
- package/dist/chunk-5ZBE6TNA.mjs +137 -0
- package/dist/chunk-5ZNBGCHW.mjs +105 -0
- package/dist/chunk-6AVQRAR3.mjs +729 -0
- package/dist/chunk-6BGCPIW7.mjs +127 -0
- package/dist/chunk-6BOEMNY4.mjs +94 -0
- package/dist/chunk-6FCPWBF2.mjs +137 -0
- package/dist/chunk-6HDE47EI.mjs +141 -0
- package/dist/chunk-6OSSG7EX.mjs +291 -0
- package/dist/chunk-6U5FC3RG.mjs +85 -0
- package/dist/chunk-6XZ4GBJ6.mjs +83 -0
- package/dist/chunk-6YGKYFPL.mjs +137 -0
- package/dist/chunk-6Z77GLN6.mjs +72 -0
- package/dist/chunk-6ZP4SKO6.mjs +144 -0
- package/dist/chunk-6ZWOOE2S.mjs +60 -0
- package/dist/chunk-762QFXXR.mjs +141 -0
- package/dist/chunk-76L74JUY.mjs +115 -0
- package/dist/chunk-76VC5YPU.mjs +113 -0
- package/dist/chunk-7BWEILU6.mjs +95 -0
- package/dist/chunk-7DGUHXUB.mjs +156 -0
- package/dist/chunk-7DTPT7EQ.mjs +220 -0
- package/dist/chunk-7FDDD5IV.mjs +203 -0
- package/dist/chunk-7H6WDKNO.mjs +141 -0
- package/dist/chunk-7KDRU2XY.mjs +145 -0
- package/dist/chunk-7QZTUZPL.mjs +137 -0
- package/dist/chunk-7REZ747L.mjs +122 -0
- package/dist/chunk-7RV4WZVM.mjs +203 -0
- package/dist/chunk-7VT2ZJBR.mjs +122 -0
- package/dist/chunk-7XPLI6X6.mjs +129 -0
- package/dist/chunk-7XYNKZWU.mjs +32 -0
- package/dist/chunk-A5OCX7PW.mjs +141 -0
- package/dist/chunk-A734PEYB.mjs +20 -0
- package/dist/chunk-ACBEJHSN.mjs +89 -0
- package/dist/chunk-ADRORWCA.mjs +95 -0
- package/dist/chunk-AGELEW5Q.mjs +121 -0
- package/dist/chunk-AGFBCPPH.mjs +78 -0
- package/dist/chunk-AHDHVUSU.mjs +105 -0
- package/dist/chunk-AKXX5JM5.mjs +122 -0
- package/dist/chunk-AM2FMPVS.mjs +299 -0
- package/dist/chunk-AMLQ6RI2.mjs +72 -0
- package/dist/chunk-ARTXTVIX.mjs +156 -0
- package/dist/chunk-ARZVIKN2.mjs +114 -0
- package/dist/chunk-ATLMREKL.mjs +117 -0
- package/dist/chunk-AVN6NSOQ.mjs +504 -0
- package/dist/chunk-AWOTVASU.mjs +82 -0
- package/dist/chunk-AZWGY2SR.mjs +101 -0
- package/dist/chunk-B5T4EO6N.mjs +122 -0
- package/dist/chunk-BDPEOSAY.mjs +80 -0
- package/dist/chunk-BHUY7ML7.mjs +95 -0
- package/dist/chunk-BMGFO5X6.mjs +127 -0
- package/dist/chunk-BRDUOWC4.mjs +385 -0
- package/dist/chunk-BRX2NAAS.mjs +52 -0
- package/dist/chunk-BTFAMY6E.mjs +65 -0
- package/dist/chunk-C4BBQTZ3.mjs +20 -0
- package/dist/chunk-CEFGBZXZ.mjs +165 -0
- package/dist/chunk-CF6SPRDA.mjs +56 -0
- package/dist/chunk-CIOYPW7H.mjs +137 -0
- package/dist/chunk-CVGHZFZK.mjs +117 -0
- package/dist/chunk-D4XAI2WD.mjs +65 -0
- package/dist/chunk-DAECVI5O.mjs +113 -0
- package/dist/chunk-DD7O3SCJ.mjs +144 -0
- package/dist/chunk-DDQTQ7Z2.mjs +172 -0
- package/dist/chunk-DGYJH7JG.mjs +259 -0
- package/dist/chunk-DLRDFCPW.mjs +60 -0
- package/dist/chunk-DN67LFQR.mjs +81 -0
- package/dist/chunk-DOXA63UH.mjs +504 -0
- package/dist/chunk-DSU6MKPW.mjs +137 -0
- package/dist/chunk-DTK5B22N.mjs +65 -0
- package/dist/chunk-DTOWE2MA.mjs +89 -0
- package/dist/chunk-DUXLKXFH.mjs +91 -0
- package/dist/chunk-DW62DTCF.mjs +87 -0
- package/dist/chunk-DWGELT6B.mjs +21 -0
- package/dist/chunk-DX4476KH.mjs +831 -0
- package/dist/chunk-E63ZEQE4.mjs +732 -0
- package/dist/chunk-EA3TIJMP.mjs +196 -0
- package/dist/chunk-EA5VCJ4G.mjs +85 -0
- package/dist/chunk-EAZ6NHW3.mjs +141 -0
- package/dist/chunk-EBDDPXU3.mjs +122 -0
- package/dist/chunk-ELEGVKVJ.mjs +122 -0
- package/dist/chunk-EX3RF7CE.mjs +294 -0
- package/dist/chunk-EXL24QAL.mjs +95 -0
- package/dist/chunk-F3W67E3Q.mjs +22 -0
- package/dist/chunk-F4A4IDZT.mjs +116 -0
- package/dist/chunk-FA7MQI6D.mjs +36 -0
- package/dist/chunk-FDFTH2OA.mjs +90 -0
- package/dist/chunk-FDRHBZZC.mjs +144 -0
- package/dist/chunk-FG3S54WT.mjs +211 -0
- package/dist/chunk-FI3PDDER.mjs +122 -0
- package/dist/chunk-FIXSMDQ7.mjs +141 -0
- package/dist/chunk-FK6JIEEN.mjs +516 -0
- package/dist/chunk-FL5D63D7.mjs +71 -0
- package/dist/chunk-FMWN44M7.mjs +92 -0
- package/dist/chunk-FNJYYQWC.mjs +60 -0
- package/dist/chunk-FNW7PJBZ.mjs +64 -0
- package/dist/chunk-FNWRRTCO.mjs +39 -0
- package/dist/chunk-FW4K4W3K.mjs +141 -0
- package/dist/chunk-GERPY3SW.mjs +63 -0
- package/dist/chunk-GKDVJ2TL.mjs +95 -0
- package/dist/chunk-GLRU4LYS.mjs +504 -0
- package/dist/chunk-GVW4A5MT.mjs +60 -0
- package/dist/chunk-GXJ5KSWO.mjs +165 -0
- package/dist/chunk-GZGPV2GH.mjs +122 -0
- package/dist/chunk-H3MN7LXP.mjs +36 -0
- package/dist/chunk-H7FFO2UX.mjs +121 -0
- package/dist/chunk-H7PNKXKX.mjs +56 -0
- package/dist/chunk-HAAWMTFK.mjs +98 -0
- package/dist/chunk-HFWOG3A4.mjs +137 -0
- package/dist/chunk-HGZHZHVX.mjs +47 -0
- package/dist/chunk-HP6JAQYJ.mjs +94 -0
- package/dist/chunk-HU4E64GQ.mjs +71 -0
- package/dist/chunk-HVKU5XVM.mjs +53 -0
- package/dist/chunk-HXQU5KQU.mjs +95 -0
- package/dist/chunk-IFYYNQ45.mjs +58 -0
- package/dist/chunk-IHMJCY2Z.mjs +87 -0
- package/dist/chunk-IHWNEZFG.mjs +36 -0
- package/dist/chunk-IM6BEVG6.mjs +71 -0
- package/dist/chunk-INM7YQKC.mjs +127 -0
- package/dist/chunk-IOD6W4YR.mjs +127 -0
- package/dist/chunk-IRDSRZ6X.mjs +62 -0
- package/dist/chunk-ITVUL6I2.mjs +98 -0
- package/dist/chunk-JAJOT3LV.mjs +87 -0
- package/dist/chunk-JAWTBRNS.mjs +122 -0
- package/dist/chunk-JR35S45U.mjs +22 -0
- package/dist/chunk-JWP5ZC5R.mjs +122 -0
- package/dist/chunk-JXBXEIER.mjs +126 -0
- package/dist/chunk-KCTGBTKI.mjs +145 -0
- package/dist/chunk-KEVX5SBT.mjs +221 -0
- package/dist/chunk-KFCM7PTR.mjs +98 -0
- package/dist/chunk-KIIWOL5Y.mjs +144 -0
- package/dist/chunk-KJ22LZMS.mjs +122 -0
- package/dist/chunk-KLJX3KQD.mjs +291 -0
- package/dist/chunk-KLMBFT3I.mjs +137 -0
- package/dist/chunk-KQPVSMIE.mjs +119 -0
- package/dist/chunk-KSK2RMP2.mjs +91 -0
- package/dist/chunk-KVVAUT3G.mjs +104 -0
- package/dist/chunk-KYKGI5BT.mjs +29 -0
- package/dist/chunk-L56KCHUI.mjs +116 -0
- package/dist/chunk-L65SLADH.mjs +137 -0
- package/dist/chunk-LASIEVVD.mjs +185 -0
- package/dist/chunk-LCTUVPNY.mjs +297 -0
- package/dist/chunk-LNHBVSNL.mjs +60 -0
- package/dist/chunk-LO5DFSJW.mjs +145 -0
- package/dist/chunk-LZRZUFF7.mjs +145 -0
- package/dist/chunk-M2LTIUBU.mjs +122 -0
- package/dist/chunk-M3KPXPDL.mjs +29 -0
- package/dist/chunk-M4PKDGE6.mjs +84 -0
- package/dist/chunk-M5SSDTTI.mjs +144 -0
- package/dist/chunk-MEJPZHAU.mjs +137 -0
- package/dist/chunk-ML7LO7IA.mjs +117 -0
- package/dist/chunk-MMILCSIS.mjs +228 -0
- package/dist/chunk-MNRZGIJQ.mjs +71 -0
- package/dist/chunk-MR6L2TFX.mjs +108 -0
- package/dist/chunk-MSNX3AR7.mjs +77 -0
- package/dist/chunk-MTLKC5UG.mjs +52 -0
- package/dist/chunk-MVEJMLQV.mjs +121 -0
- package/dist/chunk-MXMPDB4C.mjs +115 -0
- package/dist/chunk-N4RS42JQ.mjs +95 -0
- package/dist/chunk-N57TKKRF.mjs +156 -0
- package/dist/chunk-NF7PDBLJ.mjs +137 -0
- package/dist/chunk-NFEGQZI6.mjs +137 -0
- package/dist/chunk-NFXJSDUN.mjs +141 -0
- package/dist/chunk-NIWPLXZV.mjs +156 -0
- package/dist/chunk-NLA4YXGL.mjs +514 -0
- package/dist/chunk-NMLAW5NT.mjs +122 -0
- package/dist/chunk-NR66XXLN.mjs +156 -0
- package/dist/chunk-NRMIWRV6.mjs +297 -0
- package/dist/chunk-NWFMBDRM.mjs +24 -0
- package/dist/chunk-NXDYVTFV.mjs +122 -0
- package/dist/chunk-O42L54HQ.mjs +64 -0
- package/dist/chunk-O6DX3UFY.mjs +144 -0
- package/dist/chunk-O6H6FK6Y.mjs +137 -0
- package/dist/chunk-OD2MYXSX.mjs +117 -0
- package/dist/chunk-OHDAB5RA.mjs +514 -0
- package/dist/chunk-OIVUFVD4.mjs +122 -0
- package/dist/chunk-OKNSXEYQ.mjs +23 -0
- package/dist/chunk-OODDZ36D.mjs +221 -0
- package/dist/chunk-OPSBOV67.mjs +103 -0
- package/dist/chunk-OR2S4A6H.mjs +95 -0
- package/dist/chunk-OSLWGGF7.mjs +206 -0
- package/dist/chunk-OTBJ3BDC.mjs +137 -0
- package/dist/chunk-OZ37V2CL.mjs +116 -0
- package/dist/chunk-OZVAPU5J.mjs +127 -0
- package/dist/chunk-P2PN6HBO.mjs +95 -0
- package/dist/chunk-P3RTX23Z.mjs +133 -0
- package/dist/chunk-P5JZQIOK.mjs +103 -0
- package/dist/chunk-P7R26T3Z.mjs +145 -0
- package/dist/chunk-PGTGRJXX.mjs +122 -0
- package/dist/chunk-POBPYPUF.mjs +112 -0
- package/dist/chunk-PWUDSGHY.mjs +503 -0
- package/dist/chunk-PYQP4S3P.mjs +121 -0
- package/dist/chunk-Q4X44C4L.mjs +144 -0
- package/dist/chunk-QADKEWBW.mjs +91 -0
- package/dist/chunk-QEJXAPVP.mjs +193 -0
- package/dist/chunk-QEXXBZLP.mjs +137 -0
- package/dist/chunk-QFDUI4JF.mjs +137 -0
- package/dist/chunk-QIRIOLSQ.mjs +36 -0
- package/dist/chunk-QKZKXMDP.mjs +116 -0
- package/dist/chunk-QM44OKQB.mjs +110 -0
- package/dist/chunk-QUDEY3ZC.mjs +184 -0
- package/dist/chunk-QXBXBOPT.mjs +14 -0
- package/dist/chunk-R3HLKKGQ.mjs +200 -0
- package/dist/chunk-R7Q3PWPD.mjs +138 -0
- package/dist/chunk-RE55YFSX.mjs +70 -0
- package/dist/chunk-RH2JCZ3S.mjs +144 -0
- package/dist/chunk-RIHKQMJZ.mjs +71 -0
- package/dist/chunk-RLESRYZ7.mjs +141 -0
- package/dist/chunk-RN7K57U3.mjs +108 -0
- package/dist/chunk-RPZ6KAGN.mjs +156 -0
- package/dist/chunk-RSK73346.mjs +507 -0
- package/dist/chunk-RSYSJQNC.mjs +156 -0
- package/dist/chunk-RVYMEMGV.mjs +141 -0
- package/dist/chunk-RWQEGPN3.mjs +47 -0
- package/dist/chunk-RXUR5LHG.mjs +221 -0
- package/dist/chunk-RZCB3IFV.mjs +151 -0
- package/dist/chunk-RZJMZDH6.mjs +24 -0
- package/dist/chunk-S6BMBKPF.mjs +108 -0
- package/dist/chunk-S6BOOCIS.mjs +82 -0
- package/dist/chunk-S72JYZ34.mjs +205 -0
- package/dist/chunk-SAMWUGZH.mjs +200 -0
- package/dist/chunk-SF72OO5J.mjs +141 -0
- package/dist/chunk-SGES2MH4.mjs +141 -0
- package/dist/chunk-SH42XLB3.mjs +126 -0
- package/dist/chunk-SHZX3OGO.mjs +89 -0
- package/dist/chunk-SJLOQ3VX.mjs +113 -0
- package/dist/chunk-SJSM5PK5.mjs +110 -0
- package/dist/chunk-SUCVL4AR.mjs +127 -0
- package/dist/chunk-SZOFVBTZ.mjs +9 -0
- package/dist/chunk-SZPASZJ7.mjs +137 -0
- package/dist/chunk-T26S5SRN.mjs +52 -0
- package/dist/chunk-TAPPN5PM.mjs +72 -0
- package/dist/chunk-TCLGXTVU.mjs +221 -0
- package/dist/chunk-TFWWQZZK.mjs +89 -0
- package/dist/chunk-TGMDRDFD.mjs +127 -0
- package/dist/chunk-THEZTSDO.mjs +122 -0
- package/dist/chunk-TNHL4DWX.mjs +116 -0
- package/dist/chunk-TNKFYE4G.mjs +30 -0
- package/dist/chunk-TR24H7UQ.mjs +95 -0
- package/dist/chunk-TTMH3FVZ.mjs +119 -0
- package/dist/chunk-TTQCH2X2.mjs +113 -0
- package/dist/chunk-TXZDAPDU.mjs +129 -0
- package/dist/chunk-TY4VNBLX.mjs +137 -0
- package/dist/chunk-U3P6M5T4.mjs +127 -0
- package/dist/chunk-U6OTBZMO.mjs +507 -0
- package/dist/chunk-UB6RKUH5.mjs +89 -0
- package/dist/chunk-UDUTTGR5.mjs +89 -0
- package/dist/chunk-UENEQHEN.mjs +506 -0
- package/dist/chunk-UGGMZF3C.mjs +87 -0
- package/dist/chunk-UMB7ZMKX.mjs +122 -0
- package/dist/chunk-UNL4F3FH.mjs +122 -0
- package/dist/chunk-UOP3WPZG.mjs +60 -0
- package/dist/chunk-UPBRQJAU.mjs +512 -0
- package/dist/chunk-UPPVJWBO.mjs +116 -0
- package/dist/chunk-UYFHSIC7.mjs +81 -0
- package/dist/chunk-UZJQAAOZ.mjs +108 -0
- package/dist/chunk-V2JDJALG.mjs +125 -0
- package/dist/chunk-V2YC7EE6.mjs +122 -0
- package/dist/chunk-V3UXNKVL.mjs +122 -0
- package/dist/chunk-V5FP5GDQ.mjs +95 -0
- package/dist/chunk-VCHYQYFB.mjs +503 -0
- package/dist/chunk-VJEJD4DF.mjs +52 -0
- package/dist/chunk-VL4PZ5RI.mjs +113 -0
- package/dist/chunk-VNGGNO3R.mjs +32 -0
- package/dist/chunk-VNWV6LZP.mjs +38 -0
- package/dist/chunk-VOQEOCHD.mjs +511 -0
- package/dist/chunk-VW33ORR4.mjs +301 -0
- package/dist/chunk-VZ6VFS3D.mjs +109 -0
- package/dist/chunk-W3SECUBG.mjs +14 -0
- package/dist/chunk-W5OZFHOX.mjs +193 -0
- package/dist/chunk-WCSWQVFA.mjs +96 -0
- package/dist/chunk-WELBZQP2.mjs +137 -0
- package/dist/chunk-WGJWOF4K.mjs +122 -0
- package/dist/chunk-WJUBYR25.mjs +122 -0
- package/dist/chunk-WKSLZG4X.mjs +122 -0
- package/dist/chunk-WO4BCKRI.mjs +145 -0
- package/dist/chunk-WRJ47AVE.mjs +136 -0
- package/dist/chunk-WWAEK25T.mjs +92 -0
- package/dist/chunk-X3N6PDZV.mjs +71 -0
- package/dist/chunk-X437NODC.mjs +122 -0
- package/dist/chunk-X4FBB2TI.mjs +32 -0
- package/dist/chunk-XAJVDNFJ.mjs +119 -0
- package/dist/chunk-XGIDLCZI.mjs +137 -0
- package/dist/chunk-XGPUTXJT.mjs +122 -0
- package/dist/chunk-XHSCOABH.mjs +138 -0
- package/dist/chunk-XRM6FF22.mjs +61 -0
- package/dist/chunk-XTG2CB35.mjs +122 -0
- package/dist/chunk-XX22JBNI.mjs +139 -0
- package/dist/chunk-Y2W5252F.mjs +515 -0
- package/dist/chunk-Y3UMAK4V.mjs +141 -0
- package/dist/chunk-Y4M4BHVP.mjs +106 -0
- package/dist/chunk-Y5TUAI6V.mjs +127 -0
- package/dist/chunk-Y6F7EJOV.mjs +129 -0
- package/dist/chunk-YCITYGTH.mjs +20 -0
- package/dist/chunk-YD3HHOXQ.mjs +120 -0
- package/dist/chunk-YE3IUCBS.mjs +81 -0
- package/dist/chunk-YG2I4KKR.mjs +156 -0
- package/dist/chunk-YQGPAXSD.mjs +24 -0
- package/dist/chunk-YSAEDU4W.mjs +137 -0
- package/dist/chunk-YSZMXNWH.mjs +30 -0
- package/dist/chunk-YW3ZBLND.mjs +8 -0
- package/dist/chunk-YZC2FQVP.mjs +78 -0
- package/dist/chunk-Z3MPWBBS.mjs +109 -0
- package/dist/chunk-Z3NBRL3F.mjs +108 -0
- package/dist/chunk-ZF5BUSKM.mjs +122 -0
- package/dist/chunk-ZF5CW4JH.mjs +91 -0
- package/dist/chunk-ZFUAZYLA.mjs +20 -0
- package/dist/chunk-ZJ7EMTGD.mjs +83 -0
- package/dist/chunk-ZPBOEUI7.mjs +56 -0
- package/dist/chunk-ZPFY4R5H.mjs +514 -0
- package/dist/chunk-ZRUMMJPO.mjs +127 -0
- package/dist/chunk-ZTLWJFDN.mjs +110 -0
- package/dist/chunk-ZVMW2BJZ.mjs +206 -0
- package/dist/components/dashboard/index.d.mts +135 -0
- package/dist/components/dashboard/index.d.ts +135 -0
- package/dist/components/dashboard/index.js +260 -0
- package/dist/components/dashboard/index.mjs +228 -0
- package/dist/components/layout/index.d.mts +2 -0
- package/dist/components/layout/index.d.ts +2 -0
- package/dist/components/layout/index.js +2 -0
- package/dist/components/layout/index.mjs +1 -0
- package/dist/components/navigation/index.d.mts +261 -0
- package/dist/components/navigation/index.d.ts +261 -0
- package/dist/components/navigation/index.js +552 -0
- package/dist/components/navigation/index.mjs +3 -0
- package/dist/components/ui/accordion.d.mts +37 -0
- package/dist/components/ui/accordion.d.ts +37 -0
- package/dist/components/ui/accordion.js +120 -0
- package/dist/components/ui/accordion.mjs +2 -0
- package/dist/components/ui/alert.d.mts +49 -0
- package/dist/components/ui/alert.d.ts +49 -0
- package/dist/components/ui/alert.js +149 -0
- package/dist/components/ui/alert.mjs +2 -0
- package/dist/components/ui/artwork.d.mts +2 -0
- package/dist/components/ui/artwork.d.ts +2 -0
- package/dist/components/ui/artwork.js +950 -0
- package/dist/components/ui/artwork.mjs +3 -0
- package/dist/components/ui/avatar.d.mts +36 -0
- package/dist/components/ui/avatar.d.ts +36 -0
- package/dist/components/ui/avatar.js +231 -0
- package/dist/components/ui/avatar.mjs +3 -0
- package/dist/components/ui/badge.d.mts +32 -0
- package/dist/components/ui/badge.d.ts +32 -0
- package/dist/components/ui/badge.js +119 -0
- package/dist/components/ui/badge.mjs +2 -0
- package/dist/components/ui/box.d.mts +8 -0
- package/dist/components/ui/box.d.ts +8 -0
- package/dist/components/ui/box.js +41 -0
- package/dist/components/ui/box.mjs +2 -0
- package/dist/components/ui/breadcrumb.d.mts +57 -0
- package/dist/components/ui/breadcrumb.d.ts +57 -0
- package/dist/components/ui/breadcrumb.js +162 -0
- package/dist/components/ui/breadcrumb.mjs +3 -0
- package/dist/components/ui/button-group.d.mts +54 -0
- package/dist/components/ui/button-group.d.ts +54 -0
- package/dist/components/ui/button-group.js +113 -0
- package/dist/components/ui/button-group.mjs +2 -0
- package/dist/components/ui/button.d.mts +38 -0
- package/dist/components/ui/button.d.ts +38 -0
- package/dist/components/ui/button.js +149 -0
- package/dist/components/ui/button.mjs +2 -0
- package/dist/components/ui/calendar.d.mts +15 -0
- package/dist/components/ui/calendar.d.ts +15 -0
- package/dist/components/ui/calendar.js +282 -0
- package/dist/components/ui/calendar.mjs +3 -0
- package/dist/components/ui/callout.d.mts +32 -0
- package/dist/components/ui/callout.d.ts +32 -0
- package/dist/components/ui/callout.js +93 -0
- package/dist/components/ui/callout.mjs +2 -0
- package/dist/components/ui/card.d.mts +63 -0
- package/dist/components/ui/card.d.ts +63 -0
- package/dist/components/ui/card.js +112 -0
- package/dist/components/ui/card.mjs +2 -0
- package/dist/components/ui/checkbox.d.mts +37 -0
- package/dist/components/ui/checkbox.d.ts +37 -0
- package/dist/components/ui/checkbox.js +132 -0
- package/dist/components/ui/checkbox.mjs +2 -0
- package/dist/components/ui/code.d.mts +9 -0
- package/dist/components/ui/code.d.ts +9 -0
- package/dist/components/ui/code.js +57 -0
- package/dist/components/ui/code.mjs +2 -0
- package/dist/components/ui/command.d.mts +85 -0
- package/dist/components/ui/command.d.ts +85 -0
- package/dist/components/ui/command.js +243 -0
- package/dist/components/ui/command.mjs +3 -0
- package/dist/components/ui/consent.d.mts +8 -0
- package/dist/components/ui/consent.d.ts +8 -0
- package/dist/components/ui/consent.js +68 -0
- package/dist/components/ui/consent.mjs +2 -0
- package/dist/components/ui/container.d.mts +9 -0
- package/dist/components/ui/container.d.ts +9 -0
- package/dist/components/ui/container.js +59 -0
- package/dist/components/ui/container.mjs +2 -0
- package/dist/components/ui/data-list.d.mts +13 -0
- package/dist/components/ui/data-list.d.ts +13 -0
- package/dist/components/ui/data-list.js +79 -0
- package/dist/components/ui/data-list.mjs +2 -0
- package/dist/components/ui/dropdown-menu.d.mts +30 -0
- package/dist/components/ui/dropdown-menu.d.ts +30 -0
- package/dist/components/ui/dropdown-menu.js +213 -0
- package/dist/components/ui/dropdown-menu.mjs +2 -0
- package/dist/components/ui/flex.d.mts +12 -0
- package/dist/components/ui/flex.d.ts +12 -0
- package/dist/components/ui/flex.js +79 -0
- package/dist/components/ui/flex.mjs +2 -0
- package/dist/components/ui/follow.d.mts +9 -0
- package/dist/components/ui/follow.d.ts +9 -0
- package/dist/components/ui/follow.js +63 -0
- package/dist/components/ui/follow.mjs +2 -0
- package/dist/components/ui/grid.d.mts +12 -0
- package/dist/components/ui/grid.d.ts +12 -0
- package/dist/components/ui/grid.js +92 -0
- package/dist/components/ui/grid.mjs +2 -0
- package/dist/components/ui/heading.d.mts +11 -0
- package/dist/components/ui/heading.d.ts +11 -0
- package/dist/components/ui/heading.js +63 -0
- package/dist/components/ui/heading.mjs +2 -0
- package/dist/components/ui/highlight.d.mts +27 -0
- package/dist/components/ui/highlight.d.ts +27 -0
- package/dist/components/ui/highlight.js +74 -0
- package/dist/components/ui/highlight.mjs +2 -0
- package/dist/components/ui/hover-card.d.mts +8 -0
- package/dist/components/ui/hover-card.d.ts +8 -0
- package/dist/components/ui/hover-card.js +52 -0
- package/dist/components/ui/hover-card.mjs +2 -0
- package/dist/components/ui/indicator.d.mts +32 -0
- package/dist/components/ui/indicator.d.ts +32 -0
- package/dist/components/ui/indicator.js +88 -0
- package/dist/components/ui/indicator.mjs +2 -0
- package/dist/components/ui/input-otp.d.mts +37 -0
- package/dist/components/ui/input-otp.d.ts +37 -0
- package/dist/components/ui/input-otp.js +94 -0
- package/dist/components/ui/input-otp.mjs +2 -0
- package/dist/components/ui/input.d.mts +74 -0
- package/dist/components/ui/input.d.ts +74 -0
- package/dist/components/ui/input.js +416 -0
- package/dist/components/ui/input.mjs +2 -0
- package/dist/components/ui/kbd.d.mts +8 -0
- package/dist/components/ui/kbd.d.ts +8 -0
- package/dist/components/ui/kbd.js +51 -0
- package/dist/components/ui/kbd.mjs +2 -0
- package/dist/components/ui/link.d.mts +56 -0
- package/dist/components/ui/link.d.ts +56 -0
- package/dist/components/ui/link.js +150 -0
- package/dist/components/ui/link.mjs +3 -0
- package/dist/components/ui/logo.d.mts +58 -0
- package/dist/components/ui/logo.d.ts +58 -0
- package/dist/components/ui/logo.js +225 -0
- package/dist/components/ui/logo.mjs +2 -0
- package/dist/components/ui/modal.d.mts +34 -0
- package/dist/components/ui/modal.d.ts +34 -0
- package/dist/components/ui/modal.js +153 -0
- package/dist/components/ui/modal.mjs +2 -0
- package/dist/components/ui/notice.d.mts +56 -0
- package/dist/components/ui/notice.d.ts +56 -0
- package/dist/components/ui/notice.js +126 -0
- package/dist/components/ui/notice.mjs +2 -0
- package/dist/components/ui/pagination.d.mts +100 -0
- package/dist/components/ui/pagination.d.ts +100 -0
- package/dist/components/ui/pagination.js +248 -0
- package/dist/components/ui/pagination.mjs +3 -0
- package/dist/components/ui/pictograms.d.mts +2 -0
- package/dist/components/ui/pictograms.d.ts +2 -0
- package/dist/components/ui/pictograms.js +924 -0
- package/dist/components/ui/pictograms.mjs +1 -0
- package/dist/components/ui/popover.d.mts +9 -0
- package/dist/components/ui/popover.d.ts +9 -0
- package/dist/components/ui/popover.js +54 -0
- package/dist/components/ui/popover.mjs +2 -0
- package/dist/components/ui/progress.d.mts +16 -0
- package/dist/components/ui/progress.d.ts +16 -0
- package/dist/components/ui/progress.js +99 -0
- package/dist/components/ui/progress.mjs +2 -0
- package/dist/components/ui/quote.d.mts +41 -0
- package/dist/components/ui/quote.d.ts +41 -0
- package/dist/components/ui/quote.js +91 -0
- package/dist/components/ui/quote.mjs +2 -0
- package/dist/components/ui/radio.d.mts +32 -0
- package/dist/components/ui/radio.d.ts +32 -0
- package/dist/components/ui/radio.js +111 -0
- package/dist/components/ui/radio.mjs +2 -0
- package/dist/components/ui/range.d.mts +27 -0
- package/dist/components/ui/range.d.ts +27 -0
- package/dist/components/ui/range.js +137 -0
- package/dist/components/ui/range.mjs +2 -0
- package/dist/components/ui/section.d.mts +9 -0
- package/dist/components/ui/section.d.ts +9 -0
- package/dist/components/ui/section.js +56 -0
- package/dist/components/ui/section.mjs +2 -0
- package/dist/components/ui/select.d.mts +27 -0
- package/dist/components/ui/select.d.ts +27 -0
- package/dist/components/ui/select.js +222 -0
- package/dist/components/ui/select.mjs +2 -0
- package/dist/components/ui/separator.d.mts +6 -0
- package/dist/components/ui/separator.d.ts +6 -0
- package/dist/components/ui/separator.js +49 -0
- package/dist/components/ui/separator.mjs +2 -0
- package/dist/components/ui/sheet.d.mts +29 -0
- package/dist/components/ui/sheet.d.ts +29 -0
- package/dist/components/ui/sheet.js +140 -0
- package/dist/components/ui/sheet.mjs +2 -0
- package/dist/components/ui/skeleton.d.mts +13 -0
- package/dist/components/ui/skeleton.d.ts +13 -0
- package/dist/components/ui/skeleton.js +28 -0
- package/dist/components/ui/skeleton.mjs +2 -0
- package/dist/components/ui/stepper.d.mts +36 -0
- package/dist/components/ui/stepper.d.ts +36 -0
- package/dist/components/ui/stepper.js +98 -0
- package/dist/components/ui/stepper.mjs +2 -0
- package/dist/components/ui/table.d.mts +20 -0
- package/dist/components/ui/table.d.ts +20 -0
- package/dist/components/ui/table.js +121 -0
- package/dist/components/ui/table.mjs +2 -0
- package/dist/components/ui/tabs.d.mts +18 -0
- package/dist/components/ui/tabs.d.ts +18 -0
- package/dist/components/ui/tabs.js +126 -0
- package/dist/components/ui/tabs.mjs +2 -0
- package/dist/components/ui/tag.d.mts +61 -0
- package/dist/components/ui/tag.d.ts +61 -0
- package/dist/components/ui/tag.js +328 -0
- package/dist/components/ui/tag.mjs +2 -0
- package/dist/components/ui/text.d.mts +11 -0
- package/dist/components/ui/text.d.ts +11 -0
- package/dist/components/ui/text.js +66 -0
- package/dist/components/ui/text.mjs +2 -0
- package/dist/components/ui/theme-artwork.d.mts +22 -0
- package/dist/components/ui/theme-artwork.d.ts +22 -0
- package/dist/components/ui/theme-artwork.js +158 -0
- package/dist/components/ui/theme-artwork.mjs +2 -0
- package/dist/components/ui/theme-toggle.d.mts +23 -0
- package/dist/components/ui/theme-toggle.d.ts +23 -0
- package/dist/components/ui/theme-toggle.js +567 -0
- package/dist/components/ui/theme-toggle.mjs +9 -0
- package/dist/components/ui/tile.d.mts +57 -0
- package/dist/components/ui/tile.d.ts +57 -0
- package/dist/components/ui/tile.js +248 -0
- package/dist/components/ui/tile.mjs +2 -0
- package/dist/components/ui/toast.d.mts +18 -0
- package/dist/components/ui/toast.d.ts +18 -0
- package/dist/components/ui/toast.js +141 -0
- package/dist/components/ui/toast.mjs +2 -0
- package/dist/components/ui/toaster.d.mts +8 -0
- package/dist/components/ui/toaster.d.ts +8 -0
- package/dist/components/ui/toaster.js +263 -0
- package/dist/components/ui/toaster.mjs +4 -0
- package/dist/components/ui/toggle.d.mts +39 -0
- package/dist/components/ui/toggle.d.ts +39 -0
- package/dist/components/ui/toggle.js +156 -0
- package/dist/components/ui/toggle.mjs +2 -0
- package/dist/components/ui/tooltip.d.mts +26 -0
- package/dist/components/ui/tooltip.d.ts +26 -0
- package/dist/components/ui/tooltip.js +85 -0
- package/dist/components/ui/tooltip.mjs +2 -0
- package/dist/components/ui/translate.d.mts +36 -0
- package/dist/components/ui/translate.d.ts +36 -0
- package/dist/components/ui/translate.js +191 -0
- package/dist/components/ui/translate.mjs +2 -0
- package/dist/components/ui/upload.d.mts +37 -0
- package/dist/components/ui/upload.d.ts +37 -0
- package/dist/components/ui/upload.js +89 -0
- package/dist/components/ui/upload.mjs +2 -0
- package/dist/components/ui/use-toast.d.mts +49 -0
- package/dist/components/ui/use-toast.d.ts +49 -0
- package/dist/components/ui/use-toast.js +142 -0
- package/dist/components/ui/use-toast.mjs +1 -0
- package/dist/hooks/index.d.mts +40 -0
- package/dist/hooks/index.d.ts +40 -0
- package/dist/hooks/index.js +87 -0
- package/dist/hooks/index.mjs +2 -0
- package/dist/i18n/index.d.mts +160 -0
- package/dist/i18n/index.d.ts +160 -0
- package/dist/i18n/index.js +228 -0
- package/dist/i18n/index.mjs +191 -0
- package/dist/index.d.mts +96 -0
- package/dist/index.d.ts +96 -0
- package/dist/index.js +7183 -0
- package/dist/index.mjs +67 -0
- package/dist/primitives/index.d.mts +30 -0
- package/dist/primitives/index.d.ts +30 -0
- package/dist/primitives/index.js +48 -0
- package/dist/primitives/index.mjs +1 -0
- package/dist/providers/index.d.mts +155 -0
- package/dist/providers/index.d.ts +155 -0
- package/dist/providers/index.js +203 -0
- package/dist/providers/index.mjs +3 -0
- package/dist/theme-provider-DQSD5lrW.d.mts +82 -0
- package/dist/theme-provider-DQSD5lrW.d.ts +82 -0
- package/dist/theme-script-BIZ1PX7u.d.mts +75 -0
- package/dist/theme-script-BIZ1PX7u.d.ts +75 -0
- package/package.json +120 -0
- package/src/components/navigation/footer.tsx +173 -0
- package/src/components/navigation/header.tsx +236 -0
- package/src/components/navigation/index.ts +29 -0
- package/src/components/navigation/nav-link.tsx +135 -0
- package/src/components/navigation/navigation.tsx +336 -0
- package/src/components/navigation/skip-links.tsx +75 -0
- package/src/components/ui/accordion.test.tsx +56 -0
- package/src/components/ui/accordion.tsx +150 -0
- package/src/components/ui/alert.test.tsx +58 -0
- package/src/components/ui/alert.tsx +181 -0
- package/src/components/ui/artwork.tsx +166 -0
- package/src/components/ui/avatar.tsx +198 -0
- package/src/components/ui/badge.test.tsx +44 -0
- package/src/components/ui/badge.tsx +144 -0
- package/src/components/ui/box.tsx +17 -0
- package/src/components/ui/breadcrumb.tsx +189 -0
- package/src/components/ui/button-group.tsx +146 -0
- package/src/components/ui/button.test.tsx +56 -0
- package/src/components/ui/button.tsx +160 -0
- package/src/components/ui/calendar.tsx +159 -0
- package/src/components/ui/callout.test.tsx +36 -0
- package/src/components/ui/callout.tsx +131 -0
- package/src/components/ui/card.tsx +151 -0
- package/src/components/ui/checkbox.test.tsx +38 -0
- package/src/components/ui/checkbox.tsx +142 -0
- package/src/components/ui/code.tsx +33 -0
- package/src/components/ui/command.tsx +162 -0
- package/src/components/ui/consent.tsx +46 -0
- package/src/components/ui/container.tsx +35 -0
- package/src/components/ui/data-list.tsx +59 -0
- package/src/components/ui/dropdown-menu.tsx +226 -0
- package/src/components/ui/flex.tsx +62 -0
- package/src/components/ui/follow.tsx +52 -0
- package/src/components/ui/grid.tsx +75 -0
- package/src/components/ui/heading.tsx +42 -0
- package/src/components/ui/highlight.tsx +71 -0
- package/src/components/ui/hover-card.tsx +29 -0
- package/src/components/ui/indicator.tsx +108 -0
- package/src/components/ui/input-otp.tsx +85 -0
- package/src/components/ui/input.tsx +508 -0
- package/src/components/ui/kbd.tsx +26 -0
- package/src/components/ui/link.tsx +191 -0
- package/src/components/ui/logo.tsx +298 -0
- package/src/components/ui/modal.tsx +176 -0
- package/src/components/ui/notice.tsx +157 -0
- package/src/components/ui/pagination.tsx +348 -0
- package/src/components/ui/pictograms.ts +1197 -0
- package/src/components/ui/popover.tsx +33 -0
- package/src/components/ui/progress.tsx +79 -0
- package/src/components/ui/quote.tsx +132 -0
- package/src/components/ui/radio.test.tsx +48 -0
- package/src/components/ui/radio.tsx +126 -0
- package/src/components/ui/range.tsx +156 -0
- package/src/components/ui/section.tsx +32 -0
- package/src/components/ui/select.tsx +257 -0
- package/src/components/ui/separator.tsx +26 -0
- package/src/components/ui/sheet.tsx +137 -0
- package/src/components/ui/skeleton.tsx +26 -0
- package/src/components/ui/stepper.tsx +124 -0
- package/src/components/ui/table.tsx +158 -0
- package/src/components/ui/tabs.tsx +118 -0
- package/src/components/ui/tag.tsx +406 -0
- package/src/components/ui/text.tsx +45 -0
- package/src/components/ui/theme-artwork.tsx +122 -0
- package/src/components/ui/theme-toggle.tsx +154 -0
- package/src/components/ui/tile.tsx +337 -0
- package/src/components/ui/toast.tsx +140 -0
- package/src/components/ui/toaster.tsx +35 -0
- package/src/components/ui/toggle.tsx +187 -0
- package/src/components/ui/tooltip.tsx +96 -0
- package/src/components/ui/translate.tsx +203 -0
- package/src/components/ui/upload.tsx +118 -0
- package/src/components/ui/use-toast.ts +185 -0
- package/src/hooks/index.ts +10 -0
- package/src/hooks/use-media-query.ts +74 -0
- package/src/hooks/use-theme.ts +5 -0
- package/src/i18n/index.ts +35 -0
- package/src/i18n/provider.tsx +82 -0
- package/src/i18n/strings.ts +196 -0
- package/src/i18n/types.ts +95 -0
- package/src/index.ts +348 -0
- package/src/lib/utils.ts +10 -0
- package/src/primitives/index.ts +8 -0
- package/src/primitives/polymorphic.tsx +52 -0
- package/src/providers/index.ts +20 -0
- package/src/providers/router-provider.tsx +99 -0
- package/src/providers/theme-provider.tsx +218 -0
- package/src/providers/theme-script.tsx +135 -0
|
@@ -0,0 +1,203 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var React2 = require('react');
|
|
4
|
+
var jsxRuntime = require('react/jsx-runtime');
|
|
5
|
+
|
|
6
|
+
function _interopNamespace(e) {
|
|
7
|
+
if (e && e.__esModule) return e;
|
|
8
|
+
var n = Object.create(null);
|
|
9
|
+
if (e) {
|
|
10
|
+
Object.keys(e).forEach(function (k) {
|
|
11
|
+
if (k !== 'default') {
|
|
12
|
+
var d = Object.getOwnPropertyDescriptor(e, k);
|
|
13
|
+
Object.defineProperty(n, k, d.get ? d : {
|
|
14
|
+
enumerable: true,
|
|
15
|
+
get: function () { return e[k]; }
|
|
16
|
+
});
|
|
17
|
+
}
|
|
18
|
+
});
|
|
19
|
+
}
|
|
20
|
+
n.default = e;
|
|
21
|
+
return Object.freeze(n);
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
var React2__namespace = /*#__PURE__*/_interopNamespace(React2);
|
|
25
|
+
|
|
26
|
+
// src/providers/router-provider.tsx
|
|
27
|
+
var RouterContext = React2__namespace.createContext(null);
|
|
28
|
+
function useRouter() {
|
|
29
|
+
return React2__namespace.useContext(RouterContext);
|
|
30
|
+
}
|
|
31
|
+
function RouterProvider({ Link, linkPropsAdapter, children }) {
|
|
32
|
+
const value = React2__namespace.useMemo(
|
|
33
|
+
() => ({
|
|
34
|
+
Link,
|
|
35
|
+
linkPropsAdapter: linkPropsAdapter ?? ((props) => props)
|
|
36
|
+
}),
|
|
37
|
+
[Link, linkPropsAdapter]
|
|
38
|
+
);
|
|
39
|
+
return /* @__PURE__ */ jsxRuntime.jsx(RouterContext.Provider, { value, children });
|
|
40
|
+
}
|
|
41
|
+
var ThemeProviderContext = React2__namespace.createContext(void 0);
|
|
42
|
+
var MEDIA_QUERY = "(prefers-color-scheme: dark)";
|
|
43
|
+
function getSystemTheme() {
|
|
44
|
+
if (typeof window === "undefined") return "light";
|
|
45
|
+
return window.matchMedia(MEDIA_QUERY).matches ? "dark" : "light";
|
|
46
|
+
}
|
|
47
|
+
function applyTheme(theme, attribute, disableTransition) {
|
|
48
|
+
if (typeof document === "undefined") return;
|
|
49
|
+
const root = document.documentElement;
|
|
50
|
+
if (disableTransition) {
|
|
51
|
+
root.style.setProperty("--transition-duration", "0s");
|
|
52
|
+
}
|
|
53
|
+
root.classList.remove("light", "dark");
|
|
54
|
+
root.removeAttribute("data-theme");
|
|
55
|
+
root.removeAttribute("data-fr-theme");
|
|
56
|
+
if (attribute === "class") {
|
|
57
|
+
root.classList.add(theme);
|
|
58
|
+
} else {
|
|
59
|
+
root.setAttribute("data-theme", theme);
|
|
60
|
+
}
|
|
61
|
+
root.setAttribute("data-fr-theme", theme);
|
|
62
|
+
if (disableTransition) {
|
|
63
|
+
void root.offsetHeight;
|
|
64
|
+
root.style.removeProperty("--transition-duration");
|
|
65
|
+
}
|
|
66
|
+
}
|
|
67
|
+
function ThemeProvider({
|
|
68
|
+
children,
|
|
69
|
+
defaultTheme = "system",
|
|
70
|
+
storageKey = "dsfrkit-theme",
|
|
71
|
+
attribute = "class",
|
|
72
|
+
disableTransitionOnChange = false
|
|
73
|
+
}) {
|
|
74
|
+
const [theme, setThemeState] = React2__namespace.useState(() => {
|
|
75
|
+
if (typeof window === "undefined") return defaultTheme;
|
|
76
|
+
try {
|
|
77
|
+
const stored = localStorage.getItem(storageKey);
|
|
78
|
+
if (stored === "light" || stored === "dark" || stored === "system") {
|
|
79
|
+
return stored;
|
|
80
|
+
}
|
|
81
|
+
} catch {
|
|
82
|
+
}
|
|
83
|
+
return defaultTheme;
|
|
84
|
+
});
|
|
85
|
+
const [resolvedTheme, setResolvedTheme] = React2__namespace.useState(() => {
|
|
86
|
+
if (theme === "system") {
|
|
87
|
+
return getSystemTheme();
|
|
88
|
+
}
|
|
89
|
+
return theme;
|
|
90
|
+
});
|
|
91
|
+
React2__namespace.useEffect(() => {
|
|
92
|
+
const resolved = theme === "system" ? getSystemTheme() : theme;
|
|
93
|
+
setResolvedTheme(resolved);
|
|
94
|
+
applyTheme(resolved, attribute, disableTransitionOnChange);
|
|
95
|
+
}, [theme, attribute, disableTransitionOnChange]);
|
|
96
|
+
React2__namespace.useEffect(() => {
|
|
97
|
+
if (theme !== "system") return;
|
|
98
|
+
const mediaQuery = window.matchMedia(MEDIA_QUERY);
|
|
99
|
+
const handler = (e) => {
|
|
100
|
+
const resolved = e.matches ? "dark" : "light";
|
|
101
|
+
setResolvedTheme(resolved);
|
|
102
|
+
applyTheme(resolved, attribute, disableTransitionOnChange);
|
|
103
|
+
};
|
|
104
|
+
mediaQuery.addEventListener("change", handler);
|
|
105
|
+
return () => mediaQuery.removeEventListener("change", handler);
|
|
106
|
+
}, [theme, attribute, disableTransitionOnChange]);
|
|
107
|
+
const setTheme = React2__namespace.useCallback(
|
|
108
|
+
(newTheme) => {
|
|
109
|
+
try {
|
|
110
|
+
localStorage.setItem(storageKey, newTheme);
|
|
111
|
+
} catch {
|
|
112
|
+
}
|
|
113
|
+
setThemeState(newTheme);
|
|
114
|
+
},
|
|
115
|
+
[storageKey]
|
|
116
|
+
);
|
|
117
|
+
const value = React2__namespace.useMemo(
|
|
118
|
+
() => ({ theme, resolvedTheme, setTheme }),
|
|
119
|
+
[theme, resolvedTheme, setTheme]
|
|
120
|
+
);
|
|
121
|
+
return /* @__PURE__ */ jsxRuntime.jsx(ThemeProviderContext.Provider, { value, children });
|
|
122
|
+
}
|
|
123
|
+
function useTheme() {
|
|
124
|
+
const context = React2__namespace.useContext(ThemeProviderContext);
|
|
125
|
+
if (context === void 0) {
|
|
126
|
+
throw new Error("useTheme must be used within a ThemeProvider");
|
|
127
|
+
}
|
|
128
|
+
return context;
|
|
129
|
+
}
|
|
130
|
+
function useThemeOptional() {
|
|
131
|
+
const context = React2__namespace.useContext(ThemeProviderContext);
|
|
132
|
+
if (context === void 0) {
|
|
133
|
+
return {
|
|
134
|
+
theme: "system",
|
|
135
|
+
resolvedTheme: "light",
|
|
136
|
+
setTheme: () => {
|
|
137
|
+
console.warn("useTheme: No ThemeProvider found, setTheme is a no-op");
|
|
138
|
+
}
|
|
139
|
+
};
|
|
140
|
+
}
|
|
141
|
+
return context;
|
|
142
|
+
}
|
|
143
|
+
function ThemeScript({
|
|
144
|
+
storageKey = "dsfrkit-theme",
|
|
145
|
+
attribute = "class",
|
|
146
|
+
defaultTheme = "system",
|
|
147
|
+
nonce
|
|
148
|
+
}) {
|
|
149
|
+
const script = `
|
|
150
|
+
(function() {
|
|
151
|
+
try {
|
|
152
|
+
var stored = localStorage.getItem('${storageKey}');
|
|
153
|
+
var theme = stored || '${defaultTheme}';
|
|
154
|
+
var resolved;
|
|
155
|
+
|
|
156
|
+
if (theme === 'system') {
|
|
157
|
+
resolved = window.matchMedia('(prefers-color-scheme: dark)').matches ? 'dark' : 'light';
|
|
158
|
+
} else {
|
|
159
|
+
resolved = theme;
|
|
160
|
+
}
|
|
161
|
+
|
|
162
|
+
var root = document.documentElement;
|
|
163
|
+
${attribute === "class" ? `root.classList.remove('light', 'dark');
|
|
164
|
+
root.classList.add(resolved);` : `root.removeAttribute('data-theme');
|
|
165
|
+
root.setAttribute('data-theme', resolved);`}
|
|
166
|
+
root.setAttribute('data-fr-theme', resolved);
|
|
167
|
+
} catch (e) {}
|
|
168
|
+
})();
|
|
169
|
+
`.trim();
|
|
170
|
+
return /* @__PURE__ */ jsxRuntime.jsx("script", { nonce, dangerouslySetInnerHTML: { __html: script } });
|
|
171
|
+
}
|
|
172
|
+
function getThemeScriptContent(options = {}) {
|
|
173
|
+
const { storageKey = "dsfrkit-theme", attribute = "class", defaultTheme = "system" } = options;
|
|
174
|
+
return `
|
|
175
|
+
(function() {
|
|
176
|
+
try {
|
|
177
|
+
var stored = localStorage.getItem('${storageKey}');
|
|
178
|
+
var theme = stored || '${defaultTheme}';
|
|
179
|
+
var resolved;
|
|
180
|
+
|
|
181
|
+
if (theme === 'system') {
|
|
182
|
+
resolved = window.matchMedia('(prefers-color-scheme: dark)').matches ? 'dark' : 'light';
|
|
183
|
+
} else {
|
|
184
|
+
resolved = theme;
|
|
185
|
+
}
|
|
186
|
+
|
|
187
|
+
var root = document.documentElement;
|
|
188
|
+
${attribute === "class" ? `root.classList.remove('light', 'dark');
|
|
189
|
+
root.classList.add(resolved);` : `root.removeAttribute('data-theme');
|
|
190
|
+
root.setAttribute('data-theme', resolved);`}
|
|
191
|
+
root.setAttribute('data-fr-theme', resolved);
|
|
192
|
+
} catch (e) {}
|
|
193
|
+
})();
|
|
194
|
+
`.trim();
|
|
195
|
+
}
|
|
196
|
+
|
|
197
|
+
exports.RouterProvider = RouterProvider;
|
|
198
|
+
exports.ThemeProvider = ThemeProvider;
|
|
199
|
+
exports.ThemeScript = ThemeScript;
|
|
200
|
+
exports.getThemeScriptContent = getThemeScriptContent;
|
|
201
|
+
exports.useRouter = useRouter;
|
|
202
|
+
exports.useTheme = useTheme;
|
|
203
|
+
exports.useThemeOptional = useThemeOptional;
|
|
@@ -0,0 +1,82 @@
|
|
|
1
|
+
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
|
+
import * as React from 'react';
|
|
3
|
+
|
|
4
|
+
type Theme = 'light' | 'dark' | 'system';
|
|
5
|
+
type ResolvedTheme = 'light' | 'dark';
|
|
6
|
+
interface ThemeProviderProps {
|
|
7
|
+
children: React.ReactNode;
|
|
8
|
+
/**
|
|
9
|
+
* Thème par défaut
|
|
10
|
+
* @default 'system'
|
|
11
|
+
*/
|
|
12
|
+
defaultTheme?: Theme;
|
|
13
|
+
/**
|
|
14
|
+
* Clé de stockage localStorage
|
|
15
|
+
* @default 'dsfrkit-theme'
|
|
16
|
+
*/
|
|
17
|
+
storageKey?: string;
|
|
18
|
+
/**
|
|
19
|
+
* Attribut à appliquer sur l'élément html
|
|
20
|
+
* @default 'class'
|
|
21
|
+
*/
|
|
22
|
+
attribute?: 'class' | 'data-theme';
|
|
23
|
+
/**
|
|
24
|
+
* Désactiver la persistance localStorage
|
|
25
|
+
* @default false
|
|
26
|
+
*/
|
|
27
|
+
disableTransitionOnChange?: boolean;
|
|
28
|
+
}
|
|
29
|
+
interface ThemeProviderState {
|
|
30
|
+
theme: Theme;
|
|
31
|
+
resolvedTheme: ResolvedTheme;
|
|
32
|
+
setTheme: (theme: Theme) => void;
|
|
33
|
+
}
|
|
34
|
+
/**
|
|
35
|
+
* Provider pour la gestion du thème clair/sombre
|
|
36
|
+
*
|
|
37
|
+
* @example
|
|
38
|
+
* ```tsx
|
|
39
|
+
* // Dans votre layout racine
|
|
40
|
+
* import { ThemeProvider, ThemeScript } from '@dsfrkit/react/providers'
|
|
41
|
+
*
|
|
42
|
+
* export default function RootLayout({ children }) {
|
|
43
|
+
* return (
|
|
44
|
+
* <html>
|
|
45
|
+
* <head>
|
|
46
|
+
* <ThemeScript />
|
|
47
|
+
* </head>
|
|
48
|
+
* <body>
|
|
49
|
+
* <ThemeProvider>
|
|
50
|
+
* {children}
|
|
51
|
+
* </ThemeProvider>
|
|
52
|
+
* </body>
|
|
53
|
+
* </html>
|
|
54
|
+
* )
|
|
55
|
+
* }
|
|
56
|
+
* ```
|
|
57
|
+
*/
|
|
58
|
+
declare function ThemeProvider({ children, defaultTheme, storageKey, attribute, disableTransitionOnChange, }: ThemeProviderProps): react_jsx_runtime.JSX.Element;
|
|
59
|
+
/**
|
|
60
|
+
* Hook pour accéder au contexte de thème
|
|
61
|
+
*
|
|
62
|
+
* @example
|
|
63
|
+
* ```tsx
|
|
64
|
+
* function ThemeToggle() {
|
|
65
|
+
* const { theme, setTheme, resolvedTheme } = useTheme()
|
|
66
|
+
*
|
|
67
|
+
* return (
|
|
68
|
+
* <button onClick={() => setTheme(resolvedTheme === 'dark' ? 'light' : 'dark')}>
|
|
69
|
+
* Thème actuel: {resolvedTheme}
|
|
70
|
+
* </button>
|
|
71
|
+
* )
|
|
72
|
+
* }
|
|
73
|
+
* ```
|
|
74
|
+
*/
|
|
75
|
+
declare function useTheme(): ThemeProviderState;
|
|
76
|
+
/**
|
|
77
|
+
* Hook optionnel qui ne throw pas si utilisé hors du provider
|
|
78
|
+
* Retourne les valeurs par défaut si pas de provider
|
|
79
|
+
*/
|
|
80
|
+
declare function useThemeOptional(): ThemeProviderState;
|
|
81
|
+
|
|
82
|
+
export { type ResolvedTheme as R, type Theme as T, ThemeProvider as a, type ThemeProviderProps as b, type ThemeProviderState as c, useThemeOptional as d, useTheme as u };
|
|
@@ -0,0 +1,82 @@
|
|
|
1
|
+
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
|
+
import * as React from 'react';
|
|
3
|
+
|
|
4
|
+
type Theme = 'light' | 'dark' | 'system';
|
|
5
|
+
type ResolvedTheme = 'light' | 'dark';
|
|
6
|
+
interface ThemeProviderProps {
|
|
7
|
+
children: React.ReactNode;
|
|
8
|
+
/**
|
|
9
|
+
* Thème par défaut
|
|
10
|
+
* @default 'system'
|
|
11
|
+
*/
|
|
12
|
+
defaultTheme?: Theme;
|
|
13
|
+
/**
|
|
14
|
+
* Clé de stockage localStorage
|
|
15
|
+
* @default 'dsfrkit-theme'
|
|
16
|
+
*/
|
|
17
|
+
storageKey?: string;
|
|
18
|
+
/**
|
|
19
|
+
* Attribut à appliquer sur l'élément html
|
|
20
|
+
* @default 'class'
|
|
21
|
+
*/
|
|
22
|
+
attribute?: 'class' | 'data-theme';
|
|
23
|
+
/**
|
|
24
|
+
* Désactiver la persistance localStorage
|
|
25
|
+
* @default false
|
|
26
|
+
*/
|
|
27
|
+
disableTransitionOnChange?: boolean;
|
|
28
|
+
}
|
|
29
|
+
interface ThemeProviderState {
|
|
30
|
+
theme: Theme;
|
|
31
|
+
resolvedTheme: ResolvedTheme;
|
|
32
|
+
setTheme: (theme: Theme) => void;
|
|
33
|
+
}
|
|
34
|
+
/**
|
|
35
|
+
* Provider pour la gestion du thème clair/sombre
|
|
36
|
+
*
|
|
37
|
+
* @example
|
|
38
|
+
* ```tsx
|
|
39
|
+
* // Dans votre layout racine
|
|
40
|
+
* import { ThemeProvider, ThemeScript } from '@dsfrkit/react/providers'
|
|
41
|
+
*
|
|
42
|
+
* export default function RootLayout({ children }) {
|
|
43
|
+
* return (
|
|
44
|
+
* <html>
|
|
45
|
+
* <head>
|
|
46
|
+
* <ThemeScript />
|
|
47
|
+
* </head>
|
|
48
|
+
* <body>
|
|
49
|
+
* <ThemeProvider>
|
|
50
|
+
* {children}
|
|
51
|
+
* </ThemeProvider>
|
|
52
|
+
* </body>
|
|
53
|
+
* </html>
|
|
54
|
+
* )
|
|
55
|
+
* }
|
|
56
|
+
* ```
|
|
57
|
+
*/
|
|
58
|
+
declare function ThemeProvider({ children, defaultTheme, storageKey, attribute, disableTransitionOnChange, }: ThemeProviderProps): react_jsx_runtime.JSX.Element;
|
|
59
|
+
/**
|
|
60
|
+
* Hook pour accéder au contexte de thème
|
|
61
|
+
*
|
|
62
|
+
* @example
|
|
63
|
+
* ```tsx
|
|
64
|
+
* function ThemeToggle() {
|
|
65
|
+
* const { theme, setTheme, resolvedTheme } = useTheme()
|
|
66
|
+
*
|
|
67
|
+
* return (
|
|
68
|
+
* <button onClick={() => setTheme(resolvedTheme === 'dark' ? 'light' : 'dark')}>
|
|
69
|
+
* Thème actuel: {resolvedTheme}
|
|
70
|
+
* </button>
|
|
71
|
+
* )
|
|
72
|
+
* }
|
|
73
|
+
* ```
|
|
74
|
+
*/
|
|
75
|
+
declare function useTheme(): ThemeProviderState;
|
|
76
|
+
/**
|
|
77
|
+
* Hook optionnel qui ne throw pas si utilisé hors du provider
|
|
78
|
+
* Retourne les valeurs par défaut si pas de provider
|
|
79
|
+
*/
|
|
80
|
+
declare function useThemeOptional(): ThemeProviderState;
|
|
81
|
+
|
|
82
|
+
export { type ResolvedTheme as R, type Theme as T, ThemeProvider as a, type ThemeProviderProps as b, type ThemeProviderState as c, useThemeOptional as d, useTheme as u };
|
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
|
+
|
|
3
|
+
interface ThemeScriptProps {
|
|
4
|
+
/**
|
|
5
|
+
* Clé de stockage localStorage (doit correspondre à ThemeProvider)
|
|
6
|
+
* @default 'dsfrkit-theme'
|
|
7
|
+
*/
|
|
8
|
+
storageKey?: string;
|
|
9
|
+
/**
|
|
10
|
+
* Attribut à appliquer sur l'élément html
|
|
11
|
+
* @default 'class'
|
|
12
|
+
*/
|
|
13
|
+
attribute?: 'class' | 'data-theme';
|
|
14
|
+
/**
|
|
15
|
+
* Thème par défaut si aucun n'est stocké
|
|
16
|
+
* @default 'system'
|
|
17
|
+
*/
|
|
18
|
+
defaultTheme?: 'light' | 'dark' | 'system';
|
|
19
|
+
/**
|
|
20
|
+
* Utiliser un nonce pour CSP
|
|
21
|
+
*/
|
|
22
|
+
nonce?: string;
|
|
23
|
+
}
|
|
24
|
+
/**
|
|
25
|
+
* Script inline pour éviter le flash de thème au chargement
|
|
26
|
+
* Doit être placé dans le <head> AVANT tout CSS ou React
|
|
27
|
+
*
|
|
28
|
+
* Ce script s'exécute de manière synchrone avant le rendu,
|
|
29
|
+
* appliquant immédiatement la classe de thème sur <html>
|
|
30
|
+
*
|
|
31
|
+
* @example
|
|
32
|
+
* ```tsx
|
|
33
|
+
* // Next.js App Router - app/layout.tsx
|
|
34
|
+
* import { ThemeScript } from '@dsfrkit/react/providers'
|
|
35
|
+
*
|
|
36
|
+
* export default function RootLayout({ children }) {
|
|
37
|
+
* return (
|
|
38
|
+
* <html lang="fr" suppressHydrationWarning>
|
|
39
|
+
* <head>
|
|
40
|
+
* <ThemeScript />
|
|
41
|
+
* </head>
|
|
42
|
+
* <body>{children}</body>
|
|
43
|
+
* </html>
|
|
44
|
+
* )
|
|
45
|
+
* }
|
|
46
|
+
* ```
|
|
47
|
+
*
|
|
48
|
+
* @example
|
|
49
|
+
* ```tsx
|
|
50
|
+
* // Next.js Pages Router - pages/_document.tsx
|
|
51
|
+
* import { ThemeScript } from '@dsfrkit/react/providers'
|
|
52
|
+
*
|
|
53
|
+
* export default function Document() {
|
|
54
|
+
* return (
|
|
55
|
+
* <Html lang="fr" suppressHydrationWarning>
|
|
56
|
+
* <Head>
|
|
57
|
+
* <ThemeScript />
|
|
58
|
+
* </Head>
|
|
59
|
+
* <body>
|
|
60
|
+
* <Main />
|
|
61
|
+
* <NextScript />
|
|
62
|
+
* </body>
|
|
63
|
+
* </Html>
|
|
64
|
+
* )
|
|
65
|
+
* }
|
|
66
|
+
* ```
|
|
67
|
+
*/
|
|
68
|
+
declare function ThemeScript({ storageKey, attribute, defaultTheme, nonce, }: ThemeScriptProps): react_jsx_runtime.JSX.Element;
|
|
69
|
+
/**
|
|
70
|
+
* Variante du script qui retourne juste le code JS
|
|
71
|
+
* Utile pour les cas où vous devez injecter le script manuellement
|
|
72
|
+
*/
|
|
73
|
+
declare function getThemeScriptContent(options?: Omit<ThemeScriptProps, 'nonce'>): string;
|
|
74
|
+
|
|
75
|
+
export { ThemeScript as T, type ThemeScriptProps as a, getThemeScriptContent as g };
|
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
|
+
|
|
3
|
+
interface ThemeScriptProps {
|
|
4
|
+
/**
|
|
5
|
+
* Clé de stockage localStorage (doit correspondre à ThemeProvider)
|
|
6
|
+
* @default 'dsfrkit-theme'
|
|
7
|
+
*/
|
|
8
|
+
storageKey?: string;
|
|
9
|
+
/**
|
|
10
|
+
* Attribut à appliquer sur l'élément html
|
|
11
|
+
* @default 'class'
|
|
12
|
+
*/
|
|
13
|
+
attribute?: 'class' | 'data-theme';
|
|
14
|
+
/**
|
|
15
|
+
* Thème par défaut si aucun n'est stocké
|
|
16
|
+
* @default 'system'
|
|
17
|
+
*/
|
|
18
|
+
defaultTheme?: 'light' | 'dark' | 'system';
|
|
19
|
+
/**
|
|
20
|
+
* Utiliser un nonce pour CSP
|
|
21
|
+
*/
|
|
22
|
+
nonce?: string;
|
|
23
|
+
}
|
|
24
|
+
/**
|
|
25
|
+
* Script inline pour éviter le flash de thème au chargement
|
|
26
|
+
* Doit être placé dans le <head> AVANT tout CSS ou React
|
|
27
|
+
*
|
|
28
|
+
* Ce script s'exécute de manière synchrone avant le rendu,
|
|
29
|
+
* appliquant immédiatement la classe de thème sur <html>
|
|
30
|
+
*
|
|
31
|
+
* @example
|
|
32
|
+
* ```tsx
|
|
33
|
+
* // Next.js App Router - app/layout.tsx
|
|
34
|
+
* import { ThemeScript } from '@dsfrkit/react/providers'
|
|
35
|
+
*
|
|
36
|
+
* export default function RootLayout({ children }) {
|
|
37
|
+
* return (
|
|
38
|
+
* <html lang="fr" suppressHydrationWarning>
|
|
39
|
+
* <head>
|
|
40
|
+
* <ThemeScript />
|
|
41
|
+
* </head>
|
|
42
|
+
* <body>{children}</body>
|
|
43
|
+
* </html>
|
|
44
|
+
* )
|
|
45
|
+
* }
|
|
46
|
+
* ```
|
|
47
|
+
*
|
|
48
|
+
* @example
|
|
49
|
+
* ```tsx
|
|
50
|
+
* // Next.js Pages Router - pages/_document.tsx
|
|
51
|
+
* import { ThemeScript } from '@dsfrkit/react/providers'
|
|
52
|
+
*
|
|
53
|
+
* export default function Document() {
|
|
54
|
+
* return (
|
|
55
|
+
* <Html lang="fr" suppressHydrationWarning>
|
|
56
|
+
* <Head>
|
|
57
|
+
* <ThemeScript />
|
|
58
|
+
* </Head>
|
|
59
|
+
* <body>
|
|
60
|
+
* <Main />
|
|
61
|
+
* <NextScript />
|
|
62
|
+
* </body>
|
|
63
|
+
* </Html>
|
|
64
|
+
* )
|
|
65
|
+
* }
|
|
66
|
+
* ```
|
|
67
|
+
*/
|
|
68
|
+
declare function ThemeScript({ storageKey, attribute, defaultTheme, nonce, }: ThemeScriptProps): react_jsx_runtime.JSX.Element;
|
|
69
|
+
/**
|
|
70
|
+
* Variante du script qui retourne juste le code JS
|
|
71
|
+
* Utile pour les cas où vous devez injecter le script manuellement
|
|
72
|
+
*/
|
|
73
|
+
declare function getThemeScriptContent(options?: Omit<ThemeScriptProps, 'nonce'>): string;
|
|
74
|
+
|
|
75
|
+
export { ThemeScript as T, type ThemeScriptProps as a, getThemeScriptContent as g };
|
package/package.json
ADDED
|
@@ -0,0 +1,120 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@dsfrkit/react",
|
|
3
|
+
"version": "0.1.0",
|
|
4
|
+
"description": "Composants React source pour le Système de Design de l'État français (DSFR)",
|
|
5
|
+
"main": "./dist/index.js",
|
|
6
|
+
"module": "./dist/index.mjs",
|
|
7
|
+
"types": "./dist/index.d.ts",
|
|
8
|
+
"exports": {
|
|
9
|
+
".": {
|
|
10
|
+
"types": "./dist/index.d.ts",
|
|
11
|
+
"import": "./dist/index.mjs",
|
|
12
|
+
"require": "./dist/index.js"
|
|
13
|
+
},
|
|
14
|
+
"./providers": {
|
|
15
|
+
"types": "./dist/providers/index.d.ts",
|
|
16
|
+
"import": "./dist/providers/index.mjs",
|
|
17
|
+
"require": "./dist/providers/index.js"
|
|
18
|
+
},
|
|
19
|
+
"./hooks": {
|
|
20
|
+
"types": "./dist/hooks/index.d.ts",
|
|
21
|
+
"import": "./dist/hooks/index.mjs",
|
|
22
|
+
"require": "./dist/hooks/index.js"
|
|
23
|
+
},
|
|
24
|
+
"./i18n": {
|
|
25
|
+
"types": "./dist/i18n/index.d.ts",
|
|
26
|
+
"import": "./dist/i18n/index.mjs",
|
|
27
|
+
"require": "./dist/i18n/index.js"
|
|
28
|
+
},
|
|
29
|
+
"./primitives": {
|
|
30
|
+
"types": "./dist/primitives/index.d.ts",
|
|
31
|
+
"import": "./dist/primitives/index.mjs",
|
|
32
|
+
"require": "./dist/primitives/index.js"
|
|
33
|
+
},
|
|
34
|
+
"./navigation": {
|
|
35
|
+
"types": "./dist/components/navigation/index.d.ts",
|
|
36
|
+
"import": "./dist/components/navigation/index.mjs",
|
|
37
|
+
"require": "./dist/components/navigation/index.js"
|
|
38
|
+
},
|
|
39
|
+
"./layout": {
|
|
40
|
+
"types": "./dist/components/layout/index.d.ts",
|
|
41
|
+
"import": "./dist/components/layout/index.mjs",
|
|
42
|
+
"require": "./dist/components/layout/index.js"
|
|
43
|
+
},
|
|
44
|
+
"./dashboard": {
|
|
45
|
+
"types": "./dist/components/dashboard/index.d.ts",
|
|
46
|
+
"import": "./dist/components/dashboard/index.mjs",
|
|
47
|
+
"require": "./dist/components/dashboard/index.js"
|
|
48
|
+
},
|
|
49
|
+
"./components/*": {
|
|
50
|
+
"types": "./dist/components/*.d.ts",
|
|
51
|
+
"import": "./dist/components/*.mjs",
|
|
52
|
+
"require": "./dist/components/*.js"
|
|
53
|
+
}
|
|
54
|
+
},
|
|
55
|
+
"files": [
|
|
56
|
+
"dist",
|
|
57
|
+
"src"
|
|
58
|
+
],
|
|
59
|
+
"scripts": {
|
|
60
|
+
"build": "tsup",
|
|
61
|
+
"dev": "tsup --watch",
|
|
62
|
+
"test": "vitest run",
|
|
63
|
+
"test:watch": "vitest",
|
|
64
|
+
"typecheck": "tsc --noEmit",
|
|
65
|
+
"clean": "rm -rf dist"
|
|
66
|
+
},
|
|
67
|
+
"keywords": [
|
|
68
|
+
"dsfr",
|
|
69
|
+
"react",
|
|
70
|
+
"components",
|
|
71
|
+
"design-system",
|
|
72
|
+
"tailwindcss"
|
|
73
|
+
],
|
|
74
|
+
"license": "ETALAB-2.0",
|
|
75
|
+
"publishConfig": {
|
|
76
|
+
"access": "public"
|
|
77
|
+
},
|
|
78
|
+
"dependencies": {
|
|
79
|
+
"@dsfrkit/icons": "workspace:*",
|
|
80
|
+
"@radix-ui/react-accordion": "^1.2.2",
|
|
81
|
+
"@radix-ui/react-avatar": "^1.1.11",
|
|
82
|
+
"@radix-ui/react-checkbox": "^1.1.3",
|
|
83
|
+
"@radix-ui/react-collapsible": "^1.1.1",
|
|
84
|
+
"@radix-ui/react-dialog": "^1.1.2",
|
|
85
|
+
"@radix-ui/react-dropdown-menu": "^2.1.2",
|
|
86
|
+
"@radix-ui/react-hover-card": "^1.1.15",
|
|
87
|
+
"@radix-ui/react-navigation-menu": "^1.2.2",
|
|
88
|
+
"@radix-ui/react-popover": "^1.1.2",
|
|
89
|
+
"@radix-ui/react-progress": "^1.1.8",
|
|
90
|
+
"@radix-ui/react-radio-group": "^1.2.2",
|
|
91
|
+
"@radix-ui/react-select": "^2.1.2",
|
|
92
|
+
"@radix-ui/react-separator": "^1.1.8",
|
|
93
|
+
"@radix-ui/react-slider": "^1.2.2",
|
|
94
|
+
"@radix-ui/react-slot": "^1.1.0",
|
|
95
|
+
"@radix-ui/react-switch": "^1.1.2",
|
|
96
|
+
"@radix-ui/react-tabs": "^1.1.2",
|
|
97
|
+
"@radix-ui/react-toast": "^1.2.15",
|
|
98
|
+
"@radix-ui/react-toggle-group": "^1.1.0",
|
|
99
|
+
"@radix-ui/react-tooltip": "^1.1.3",
|
|
100
|
+
"class-variance-authority": "^0.7.1",
|
|
101
|
+
"clsx": "^2.1.1",
|
|
102
|
+
"cmdk": "^1.1.1",
|
|
103
|
+
"date-fns": "^4.1.0",
|
|
104
|
+
"input-otp": "^1.4.2",
|
|
105
|
+
"react-day-picker": "^9.14.0",
|
|
106
|
+
"tailwind-merge": "^2.5.5"
|
|
107
|
+
},
|
|
108
|
+
"peerDependencies": {
|
|
109
|
+
"react": "^18.0.0 || ^19.0.0",
|
|
110
|
+
"react-dom": "^18.0.0 || ^19.0.0"
|
|
111
|
+
},
|
|
112
|
+
"devDependencies": {
|
|
113
|
+
"@types/react": "^18.3.18",
|
|
114
|
+
"@types/react-dom": "^18.3.5",
|
|
115
|
+
"react": "^18.3.1",
|
|
116
|
+
"react-docgen-typescript": "^2.4.0",
|
|
117
|
+
"tsup": "^8.3.5",
|
|
118
|
+
"typescript": "^5.7.2"
|
|
119
|
+
}
|
|
120
|
+
}
|