ew-solid-ui 0.0.0-stage → 0.0.2
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 +568 -2
- package/README.zh-CN.md +492 -0
- package/dist/bits.cjs +14 -0
- package/dist/bits.cjs.map +1 -0
- package/dist/bits.d.cts +3 -0
- package/dist/bits.d.ts +3 -0
- package/dist/bits.mjs +3 -0
- package/dist/bits.mjs.map +1 -0
- package/dist/charts.cjs +14 -0
- package/dist/charts.cjs.map +1 -0
- package/dist/charts.d.cts +1 -0
- package/dist/charts.d.ts +1 -0
- package/dist/charts.mjs +3 -0
- package/dist/charts.mjs.map +1 -0
- package/dist/chunk-2B7NXL5D.cjs +133 -0
- package/dist/chunk-2B7NXL5D.cjs.map +1 -0
- package/dist/chunk-2ONE4BBJ.cjs +135 -0
- package/dist/chunk-2ONE4BBJ.cjs.map +1 -0
- package/dist/chunk-2Z2B43P7.cjs +27 -0
- package/dist/chunk-2Z2B43P7.cjs.map +1 -0
- package/dist/chunk-37T6JLX7.cjs +180 -0
- package/dist/chunk-37T6JLX7.cjs.map +1 -0
- package/dist/chunk-37TUTUSK.mjs +132 -0
- package/dist/chunk-37TUTUSK.mjs.map +1 -0
- package/dist/chunk-3ETAK2QN.cjs +63 -0
- package/dist/chunk-3ETAK2QN.cjs.map +1 -0
- package/dist/chunk-3HSO46U4.mjs +78 -0
- package/dist/chunk-3HSO46U4.mjs.map +1 -0
- package/dist/chunk-3IUWKWPT.cjs +39 -0
- package/dist/chunk-3IUWKWPT.cjs.map +1 -0
- package/dist/chunk-3JE4C3ZE.cjs +98 -0
- package/dist/chunk-3JE4C3ZE.cjs.map +1 -0
- package/dist/chunk-3JKPNGUN.mjs +295 -0
- package/dist/chunk-3JKPNGUN.mjs.map +1 -0
- package/dist/chunk-3KVJPWAE.mjs +187 -0
- package/dist/chunk-3KVJPWAE.mjs.map +1 -0
- package/dist/chunk-3UZHB37H.mjs +178 -0
- package/dist/chunk-3UZHB37H.mjs.map +1 -0
- package/dist/chunk-3WYFQHDX.mjs +124 -0
- package/dist/chunk-3WYFQHDX.mjs.map +1 -0
- package/dist/chunk-3YJ7725U.cjs +121 -0
- package/dist/chunk-3YJ7725U.cjs.map +1 -0
- package/dist/chunk-422DOBFG.cjs +76 -0
- package/dist/chunk-422DOBFG.cjs.map +1 -0
- package/dist/chunk-4BGUBLXZ.mjs +59 -0
- package/dist/chunk-4BGUBLXZ.mjs.map +1 -0
- package/dist/chunk-4NOCSN6O.cjs +107 -0
- package/dist/chunk-4NOCSN6O.cjs.map +1 -0
- package/dist/chunk-4QWSKOIZ.mjs +60 -0
- package/dist/chunk-4QWSKOIZ.mjs.map +1 -0
- package/dist/chunk-52R2H7UX.cjs +80 -0
- package/dist/chunk-52R2H7UX.cjs.map +1 -0
- package/dist/chunk-57PMJPTJ.mjs +221 -0
- package/dist/chunk-57PMJPTJ.mjs.map +1 -0
- package/dist/chunk-5CO5XP34.mjs +148 -0
- package/dist/chunk-5CO5XP34.mjs.map +1 -0
- package/dist/chunk-5XAKKKDH.mjs +95 -0
- package/dist/chunk-5XAKKKDH.mjs.map +1 -0
- package/dist/chunk-5Y3242J4.cjs +98 -0
- package/dist/chunk-5Y3242J4.cjs.map +1 -0
- package/dist/chunk-64ZKX2AU.cjs +95 -0
- package/dist/chunk-64ZKX2AU.cjs.map +1 -0
- package/dist/chunk-65SFJOGD.cjs +62 -0
- package/dist/chunk-65SFJOGD.cjs.map +1 -0
- package/dist/chunk-6GYRY4RZ.cjs +447 -0
- package/dist/chunk-6GYRY4RZ.cjs.map +1 -0
- package/dist/chunk-7EK4UAF2.mjs +76 -0
- package/dist/chunk-7EK4UAF2.mjs.map +1 -0
- package/dist/chunk-7HJYSXUX.mjs +92 -0
- package/dist/chunk-7HJYSXUX.mjs.map +1 -0
- package/dist/chunk-7LDYIT3N.cjs +216 -0
- package/dist/chunk-7LDYIT3N.cjs.map +1 -0
- package/dist/chunk-7SI3LXVV.mjs +100 -0
- package/dist/chunk-7SI3LXVV.mjs.map +1 -0
- package/dist/chunk-A2GJNPKH.cjs +60 -0
- package/dist/chunk-A2GJNPKH.cjs.map +1 -0
- package/dist/chunk-A3AC44V7.mjs +62 -0
- package/dist/chunk-A3AC44V7.mjs.map +1 -0
- package/dist/chunk-A4PQCJDF.mjs +105 -0
- package/dist/chunk-A4PQCJDF.mjs.map +1 -0
- package/dist/chunk-AQKQO2O7.mjs +96 -0
- package/dist/chunk-AQKQO2O7.mjs.map +1 -0
- package/dist/chunk-B4VO47MI.mjs +103 -0
- package/dist/chunk-B4VO47MI.mjs.map +1 -0
- package/dist/chunk-B7WWABRO.cjs +297 -0
- package/dist/chunk-B7WWABRO.cjs.map +1 -0
- package/dist/chunk-BJ65NMEU.mjs +96 -0
- package/dist/chunk-BJ65NMEU.mjs.map +1 -0
- package/dist/chunk-BMXDZPXJ.mjs +74 -0
- package/dist/chunk-BMXDZPXJ.mjs.map +1 -0
- package/dist/chunk-BRLIXQC7.mjs +139 -0
- package/dist/chunk-BRLIXQC7.mjs.map +1 -0
- package/dist/chunk-C345U7MB.mjs +94 -0
- package/dist/chunk-C345U7MB.mjs.map +1 -0
- package/dist/chunk-CKCSYQXC.cjs +226 -0
- package/dist/chunk-CKCSYQXC.cjs.map +1 -0
- package/dist/chunk-CMV5TYP2.mjs +61 -0
- package/dist/chunk-CMV5TYP2.mjs.map +1 -0
- package/dist/chunk-CYPRGA6I.cjs +42 -0
- package/dist/chunk-CYPRGA6I.cjs.map +1 -0
- package/dist/chunk-CZATHVG4.cjs +115 -0
- package/dist/chunk-CZATHVG4.cjs.map +1 -0
- package/dist/chunk-D5LOCZUI.cjs +251 -0
- package/dist/chunk-D5LOCZUI.cjs.map +1 -0
- package/dist/chunk-DODEVZAJ.mjs +30 -0
- package/dist/chunk-DODEVZAJ.mjs.map +1 -0
- package/dist/chunk-DOEFUM6S.cjs +70 -0
- package/dist/chunk-DOEFUM6S.cjs.map +1 -0
- package/dist/chunk-DPV3RMME.cjs +84 -0
- package/dist/chunk-DPV3RMME.cjs.map +1 -0
- package/dist/chunk-DWSFRMFR.mjs +37 -0
- package/dist/chunk-DWSFRMFR.mjs.map +1 -0
- package/dist/chunk-DYO7SLDY.cjs +63 -0
- package/dist/chunk-DYO7SLDY.cjs.map +1 -0
- package/dist/chunk-E2S5EQJY.mjs +145 -0
- package/dist/chunk-E2S5EQJY.mjs.map +1 -0
- package/dist/chunk-E5P3IBBC.cjs +91 -0
- package/dist/chunk-E5P3IBBC.cjs.map +1 -0
- package/dist/chunk-ECTVRA4R.mjs +94 -0
- package/dist/chunk-ECTVRA4R.mjs.map +1 -0
- package/dist/chunk-EKOR7BQJ.mjs +68 -0
- package/dist/chunk-EKOR7BQJ.mjs.map +1 -0
- package/dist/chunk-ELNF4TOH.cjs +96 -0
- package/dist/chunk-ELNF4TOH.cjs.map +1 -0
- package/dist/chunk-ESJIGTH6.cjs +73 -0
- package/dist/chunk-ESJIGTH6.cjs.map +1 -0
- package/dist/chunk-EXRNJMGA.cjs +378 -0
- package/dist/chunk-EXRNJMGA.cjs.map +1 -0
- package/dist/chunk-FAF6YI2S.cjs +31 -0
- package/dist/chunk-FAF6YI2S.cjs.map +1 -0
- package/dist/chunk-FCICPQX6.mjs +58 -0
- package/dist/chunk-FCICPQX6.mjs.map +1 -0
- package/dist/chunk-FEAIMEKC.mjs +205 -0
- package/dist/chunk-FEAIMEKC.mjs.map +1 -0
- package/dist/chunk-FQ7TOJSM.mjs +43 -0
- package/dist/chunk-FQ7TOJSM.mjs.map +1 -0
- package/dist/chunk-FRV6HBXP.cjs +170 -0
- package/dist/chunk-FRV6HBXP.cjs.map +1 -0
- package/dist/chunk-FUCQIDZC.cjs +322 -0
- package/dist/chunk-FUCQIDZC.cjs.map +1 -0
- package/dist/chunk-FWGVMBMU.cjs +142 -0
- package/dist/chunk-FWGVMBMU.cjs.map +1 -0
- package/dist/chunk-GFGW4V73.mjs +222 -0
- package/dist/chunk-GFGW4V73.mjs.map +1 -0
- package/dist/chunk-GPEWXSW6.mjs +85 -0
- package/dist/chunk-GPEWXSW6.mjs.map +1 -0
- package/dist/chunk-GURYZMAB.cjs +1070 -0
- package/dist/chunk-GURYZMAB.cjs.map +1 -0
- package/dist/chunk-HX3V3WOX.mjs +73 -0
- package/dist/chunk-HX3V3WOX.mjs.map +1 -0
- package/dist/chunk-IGTFKNT2.mjs +102 -0
- package/dist/chunk-IGTFKNT2.mjs.map +1 -0
- package/dist/chunk-IL776KXT.cjs +45 -0
- package/dist/chunk-IL776KXT.cjs.map +1 -0
- package/dist/chunk-IQBBHEE2.mjs +71 -0
- package/dist/chunk-IQBBHEE2.mjs.map +1 -0
- package/dist/chunk-IRDAECQH.cjs +84 -0
- package/dist/chunk-IRDAECQH.cjs.map +1 -0
- package/dist/chunk-ISDGZO3N.mjs +131 -0
- package/dist/chunk-ISDGZO3N.mjs.map +1 -0
- package/dist/chunk-IVKZKSR2.cjs +126 -0
- package/dist/chunk-IVKZKSR2.cjs.map +1 -0
- package/dist/chunk-JFPORML4.mjs +97 -0
- package/dist/chunk-JFPORML4.mjs.map +1 -0
- package/dist/chunk-JH3YRCPC.cjs +141 -0
- package/dist/chunk-JH3YRCPC.cjs.map +1 -0
- package/dist/chunk-JI2ILBLJ.cjs +79 -0
- package/dist/chunk-JI2ILBLJ.cjs.map +1 -0
- package/dist/chunk-JSG75IZK.cjs +102 -0
- package/dist/chunk-JSG75IZK.cjs.map +1 -0
- package/dist/chunk-JTWJ44E7.mjs +189 -0
- package/dist/chunk-JTWJ44E7.mjs.map +1 -0
- package/dist/chunk-K2TSQYZ5.mjs +29 -0
- package/dist/chunk-K2TSQYZ5.mjs.map +1 -0
- package/dist/chunk-K2WVPOWP.mjs +53 -0
- package/dist/chunk-K2WVPOWP.mjs.map +1 -0
- package/dist/chunk-K34HU5QN.cjs +123 -0
- package/dist/chunk-K34HU5QN.cjs.map +1 -0
- package/dist/chunk-KHBB5WY4.cjs +61 -0
- package/dist/chunk-KHBB5WY4.cjs.map +1 -0
- package/dist/chunk-KJ7AQDX2.mjs +193 -0
- package/dist/chunk-KJ7AQDX2.mjs.map +1 -0
- package/dist/chunk-KM2P6GRX.cjs +146 -0
- package/dist/chunk-KM2P6GRX.cjs.map +1 -0
- package/dist/chunk-KS3IJZ6X.mjs +121 -0
- package/dist/chunk-KS3IJZ6X.mjs.map +1 -0
- package/dist/chunk-KYZSQQ4F.mjs +319 -0
- package/dist/chunk-KYZSQQ4F.mjs.map +1 -0
- package/dist/chunk-LGCY5PE3.mjs +61 -0
- package/dist/chunk-LGCY5PE3.mjs.map +1 -0
- package/dist/chunk-LIQ6IYRK.mjs +176 -0
- package/dist/chunk-LIQ6IYRK.mjs.map +1 -0
- package/dist/chunk-LLX4LUZ4.mjs +124 -0
- package/dist/chunk-LLX4LUZ4.mjs.map +1 -0
- package/dist/chunk-LNCV6HDA.mjs +82 -0
- package/dist/chunk-LNCV6HDA.mjs.map +1 -0
- package/dist/chunk-LWEWW7UW.cjs +103 -0
- package/dist/chunk-LWEWW7UW.cjs.map +1 -0
- package/dist/chunk-M5HU5G26.cjs +64 -0
- package/dist/chunk-M5HU5G26.cjs.map +1 -0
- package/dist/chunk-M73QKJFE.cjs +73 -0
- package/dist/chunk-M73QKJFE.cjs.map +1 -0
- package/dist/chunk-MAA4BVYZ.mjs +60 -0
- package/dist/chunk-MAA4BVYZ.mjs.map +1 -0
- package/dist/chunk-MDLNWKEG.cjs +150 -0
- package/dist/chunk-MDLNWKEG.cjs.map +1 -0
- package/dist/chunk-MTKYHC5I.cjs +32 -0
- package/dist/chunk-MTKYHC5I.cjs.map +1 -0
- package/dist/chunk-N5R3NDZ6.mjs +1063 -0
- package/dist/chunk-N5R3NDZ6.mjs.map +1 -0
- package/dist/chunk-NFG4S526.cjs +189 -0
- package/dist/chunk-NFG4S526.cjs.map +1 -0
- package/dist/chunk-NFRRBSVS.mjs +164 -0
- package/dist/chunk-NFRRBSVS.mjs.map +1 -0
- package/dist/chunk-NUXBJOBN.mjs +40 -0
- package/dist/chunk-NUXBJOBN.mjs.map +1 -0
- package/dist/chunk-NXNBU3OU.mjs +63 -0
- package/dist/chunk-NXNBU3OU.mjs.map +1 -0
- package/dist/chunk-O2I45XDV.cjs +202 -0
- package/dist/chunk-O2I45XDV.cjs.map +1 -0
- package/dist/chunk-OC4OXRY5.mjs +94 -0
- package/dist/chunk-OC4OXRY5.mjs.map +1 -0
- package/dist/chunk-ODYJ64MX.cjs +171 -0
- package/dist/chunk-ODYJ64MX.cjs.map +1 -0
- package/dist/chunk-OFCS3RGZ.cjs +100 -0
- package/dist/chunk-OFCS3RGZ.cjs.map +1 -0
- package/dist/chunk-OJ423CJY.mjs +113 -0
- package/dist/chunk-OJ423CJY.mjs.map +1 -0
- package/dist/chunk-OUMFK4A2.mjs +373 -0
- package/dist/chunk-OUMFK4A2.mjs.map +1 -0
- package/dist/chunk-P3X7MM6R.cjs +102 -0
- package/dist/chunk-P3X7MM6R.cjs.map +1 -0
- package/dist/chunk-PDMLITWQ.mjs +230 -0
- package/dist/chunk-PDMLITWQ.mjs.map +1 -0
- package/dist/chunk-PHBDXRGO.cjs +84 -0
- package/dist/chunk-PHBDXRGO.cjs.map +1 -0
- package/dist/chunk-PMJCAM5G.mjs +37 -0
- package/dist/chunk-PMJCAM5G.mjs.map +1 -0
- package/dist/chunk-POJ6SLNO.cjs +150 -0
- package/dist/chunk-POJ6SLNO.cjs.map +1 -0
- package/dist/chunk-PQZ4DAAJ.mjs +100 -0
- package/dist/chunk-PQZ4DAAJ.mjs.map +1 -0
- package/dist/chunk-PRPYF5PJ.cjs +107 -0
- package/dist/chunk-PRPYF5PJ.cjs.map +1 -0
- package/dist/chunk-PU4Y2WVS.cjs +99 -0
- package/dist/chunk-PU4Y2WVS.cjs.map +1 -0
- package/dist/chunk-PUEFKCW2.cjs +114 -0
- package/dist/chunk-PUEFKCW2.cjs.map +1 -0
- package/dist/chunk-Q2BJHDQ6.cjs +98 -0
- package/dist/chunk-Q2BJHDQ6.cjs.map +1 -0
- package/dist/chunk-Q4XFYVBU.mjs +214 -0
- package/dist/chunk-Q4XFYVBU.mjs.map +1 -0
- package/dist/chunk-Q5SAD6KI.cjs +70 -0
- package/dist/chunk-Q5SAD6KI.cjs.map +1 -0
- package/dist/chunk-QBAMCXZA.mjs +68 -0
- package/dist/chunk-QBAMCXZA.mjs.map +1 -0
- package/dist/chunk-QJNDDCIR.mjs +98 -0
- package/dist/chunk-QJNDDCIR.mjs.map +1 -0
- package/dist/chunk-R3ZSB7DV.mjs +34 -0
- package/dist/chunk-R3ZSB7DV.mjs.map +1 -0
- package/dist/chunk-RO3WOLYD.mjs +100 -0
- package/dist/chunk-RO3WOLYD.mjs.map +1 -0
- package/dist/chunk-RQCWAA3F.cjs +157 -0
- package/dist/chunk-RQCWAA3F.cjs.map +1 -0
- package/dist/chunk-RS5VRCWA.cjs +78 -0
- package/dist/chunk-RS5VRCWA.cjs.map +1 -0
- package/dist/chunk-SP62ZMPJ.cjs +41 -0
- package/dist/chunk-SP62ZMPJ.cjs.map +1 -0
- package/dist/chunk-SX4L3JTF.cjs +39 -0
- package/dist/chunk-SX4L3JTF.cjs.map +1 -0
- package/dist/chunk-TF4R3IVQ.cjs +75 -0
- package/dist/chunk-TF4R3IVQ.cjs.map +1 -0
- package/dist/chunk-TOBNNOLZ.mjs +140 -0
- package/dist/chunk-TOBNNOLZ.mjs.map +1 -0
- package/dist/chunk-TOGWUD6L.cjs +170 -0
- package/dist/chunk-TOGWUD6L.cjs.map +1 -0
- package/dist/chunk-UALJ3ELJ.cjs +178 -0
- package/dist/chunk-UALJ3ELJ.cjs.map +1 -0
- package/dist/chunk-UEFWFBZR.cjs +210 -0
- package/dist/chunk-UEFWFBZR.cjs.map +1 -0
- package/dist/chunk-UKL6ZHFW.cjs +65 -0
- package/dist/chunk-UKL6ZHFW.cjs.map +1 -0
- package/dist/chunk-UTR4J57B.cjs +96 -0
- package/dist/chunk-UTR4J57B.cjs.map +1 -0
- package/dist/chunk-UWRPX656.mjs +61 -0
- package/dist/chunk-UWRPX656.mjs.map +1 -0
- package/dist/chunk-UYPXPWGH.mjs +247 -0
- package/dist/chunk-UYPXPWGH.mjs.map +1 -0
- package/dist/chunk-V6YCAROF.mjs +119 -0
- package/dist/chunk-V6YCAROF.mjs.map +1 -0
- package/dist/chunk-VBHVHIJG.mjs +105 -0
- package/dist/chunk-VBHVHIJG.mjs.map +1 -0
- package/dist/chunk-VJ47JC5K.cjs +104 -0
- package/dist/chunk-VJ47JC5K.cjs.map +1 -0
- package/dist/chunk-VLNQ5HZY.mjs +148 -0
- package/dist/chunk-VLNQ5HZY.mjs.map +1 -0
- package/dist/chunk-VXNX6RYH.cjs +223 -0
- package/dist/chunk-VXNX6RYH.cjs.map +1 -0
- package/dist/chunk-VZICNO5D.cjs +60 -0
- package/dist/chunk-VZICNO5D.cjs.map +1 -0
- package/dist/chunk-W24OD4AA.mjs +84 -0
- package/dist/chunk-W24OD4AA.mjs.map +1 -0
- package/dist/chunk-W2QQIFRY.cjs +107 -0
- package/dist/chunk-W2QQIFRY.cjs.map +1 -0
- package/dist/chunk-W4BB5ZVA.mjs +165 -0
- package/dist/chunk-W4BB5ZVA.mjs.map +1 -0
- package/dist/chunk-W4Y4WD6U.cjs +96 -0
- package/dist/chunk-W4Y4WD6U.cjs.map +1 -0
- package/dist/chunk-WDGZMFG3.mjs +58 -0
- package/dist/chunk-WDGZMFG3.mjs.map +1 -0
- package/dist/chunk-WGBFZPVI.mjs +82 -0
- package/dist/chunk-WGBFZPVI.mjs.map +1 -0
- package/dist/chunk-WLHSZF7O.mjs +71 -0
- package/dist/chunk-WLHSZF7O.mjs.map +1 -0
- package/dist/chunk-WLQ4HBQL.mjs +77 -0
- package/dist/chunk-WLQ4HBQL.mjs.map +1 -0
- package/dist/chunk-WPDL3E7Q.cjs +63 -0
- package/dist/chunk-WPDL3E7Q.cjs.map +1 -0
- package/dist/chunk-WVHQAOPC.cjs +98 -0
- package/dist/chunk-WVHQAOPC.cjs.map +1 -0
- package/dist/chunk-X27KKAL5.mjs +215 -0
- package/dist/chunk-X27KKAL5.mjs.map +1 -0
- package/dist/chunk-X67BWHSL.cjs +189 -0
- package/dist/chunk-X67BWHSL.cjs.map +1 -0
- package/dist/chunk-XCETC5QY.mjs +93 -0
- package/dist/chunk-XCETC5QY.mjs.map +1 -0
- package/dist/chunk-XCNITFZS.mjs +82 -0
- package/dist/chunk-XCNITFZS.mjs.map +1 -0
- package/dist/chunk-XDVZIZEA.mjs +143 -0
- package/dist/chunk-XDVZIZEA.mjs.map +1 -0
- package/dist/chunk-XEPCNZMN.cjs +86 -0
- package/dist/chunk-XEPCNZMN.cjs.map +1 -0
- package/dist/chunk-XF5YT742.mjs +183 -0
- package/dist/chunk-XF5YT742.mjs.map +1 -0
- package/dist/chunk-XIKJ7BDI.mjs +96 -0
- package/dist/chunk-XIKJ7BDI.mjs.map +1 -0
- package/dist/chunk-XJKYF7CA.mjs +35 -0
- package/dist/chunk-XJKYF7CA.mjs.map +1 -0
- package/dist/chunk-XPVGJZHY.cjs +147 -0
- package/dist/chunk-XPVGJZHY.cjs.map +1 -0
- package/dist/chunk-XUJZL3YA.cjs +36 -0
- package/dist/chunk-XUJZL3YA.cjs.map +1 -0
- package/dist/chunk-XUWNQ64K.mjs +107 -0
- package/dist/chunk-XUWNQ64K.mjs.map +1 -0
- package/dist/chunk-XVUXENE6.mjs +442 -0
- package/dist/chunk-XVUXENE6.mjs.map +1 -0
- package/dist/chunk-YFOE5WSB.cjs +195 -0
- package/dist/chunk-YFOE5WSB.cjs.map +1 -0
- package/dist/chunk-YIL2TBKS.cjs +109 -0
- package/dist/chunk-YIL2TBKS.cjs.map +1 -0
- package/dist/chunk-YIXXCIIF.cjs +55 -0
- package/dist/chunk-YIXXCIIF.cjs.map +1 -0
- package/dist/chunk-YO2AIZFG.cjs +232 -0
- package/dist/chunk-YO2AIZFG.cjs.map +1 -0
- package/dist/chunk-YTVGTXKG.mjs +105 -0
- package/dist/chunk-YTVGTXKG.mjs.map +1 -0
- package/dist/chunk-YWO3Y7QW.mjs +24 -0
- package/dist/chunk-YWO3Y7QW.mjs.map +1 -0
- package/dist/chunk-ZFAGQ3NN.mjs +168 -0
- package/dist/chunk-ZFAGQ3NN.mjs.map +1 -0
- package/dist/chunk-ZK35OYQ7.cjs +217 -0
- package/dist/chunk-ZK35OYQ7.cjs.map +1 -0
- package/dist/chunk-ZLBWNSQ2.cjs +62 -0
- package/dist/chunk-ZLBWNSQ2.cjs.map +1 -0
- package/dist/chunk-ZYJOESK3.cjs +107 -0
- package/dist/chunk-ZYJOESK3.cjs.map +1 -0
- package/dist/components/affix.cjs +13 -0
- package/dist/components/affix.cjs.map +1 -0
- package/dist/components/affix.css +13 -0
- package/dist/components/affix.d.cts +19 -0
- package/dist/components/affix.d.ts +19 -0
- package/dist/components/affix.mjs +4 -0
- package/dist/components/affix.mjs.map +1 -0
- package/dist/components/alert.cjs +16 -0
- package/dist/components/alert.cjs.map +1 -0
- package/dist/components/alert.css +72 -0
- package/dist/components/alert.d.cts +19 -0
- package/dist/components/alert.d.ts +19 -0
- package/dist/components/alert.mjs +7 -0
- package/dist/components/alert.mjs.map +1 -0
- package/dist/components/anchor.cjs +13 -0
- package/dist/components/anchor.cjs.map +1 -0
- package/dist/components/anchor.css +60 -0
- package/dist/components/anchor.d.cts +22 -0
- package/dist/components/anchor.d.ts +22 -0
- package/dist/components/anchor.mjs +4 -0
- package/dist/components/anchor.mjs.map +1 -0
- package/dist/components/audio-player.cjs +13 -0
- package/dist/components/audio-player.cjs.map +1 -0
- package/dist/components/audio-player.css +103 -0
- package/dist/components/audio-player.d.cts +26 -0
- package/dist/components/audio-player.d.ts +26 -0
- package/dist/components/audio-player.mjs +4 -0
- package/dist/components/audio-player.mjs.map +1 -0
- package/dist/components/auto-complete.cjs +18 -0
- package/dist/components/auto-complete.cjs.map +1 -0
- package/dist/components/auto-complete.css +60 -0
- package/dist/components/auto-complete.d.cts +22 -0
- package/dist/components/auto-complete.d.ts +22 -0
- package/dist/components/auto-complete.mjs +9 -0
- package/dist/components/auto-complete.mjs.map +1 -0
- package/dist/components/auto-image.cjs +13 -0
- package/dist/components/auto-image.cjs.map +1 -0
- package/dist/components/auto-image.css +134 -0
- package/dist/components/auto-image.d.cts +19 -0
- package/dist/components/auto-image.d.ts +19 -0
- package/dist/components/auto-image.mjs +4 -0
- package/dist/components/auto-image.mjs.map +1 -0
- package/dist/components/avatar.cjs +13 -0
- package/dist/components/avatar.cjs.map +1 -0
- package/dist/components/avatar.css +35 -0
- package/dist/components/avatar.d.cts +18 -0
- package/dist/components/avatar.d.ts +18 -0
- package/dist/components/avatar.mjs +4 -0
- package/dist/components/avatar.mjs.map +1 -0
- package/dist/components/back-top.cjs +18 -0
- package/dist/components/back-top.cjs.map +1 -0
- package/dist/components/back-top.css +22 -0
- package/dist/components/back-top.d.cts +19 -0
- package/dist/components/back-top.d.ts +19 -0
- package/dist/components/back-top.mjs +9 -0
- package/dist/components/back-top.mjs.map +1 -0
- package/dist/components/badge.cjs +17 -0
- package/dist/components/badge.cjs.map +1 -0
- package/dist/components/badge.css +45 -0
- package/dist/components/badge.d.cts +18 -0
- package/dist/components/badge.d.ts +18 -0
- package/dist/components/badge.mjs +4 -0
- package/dist/components/badge.mjs.map +1 -0
- package/dist/components/breadcrumb.cjs +19 -0
- package/dist/components/breadcrumb.cjs.map +1 -0
- package/dist/components/breadcrumb.css +50 -0
- package/dist/components/breadcrumb.d.cts +28 -0
- package/dist/components/breadcrumb.d.ts +28 -0
- package/dist/components/breadcrumb.mjs +10 -0
- package/dist/components/breadcrumb.mjs.map +1 -0
- package/dist/components/bubble-list.cjs +17 -0
- package/dist/components/bubble-list.cjs.map +1 -0
- package/dist/components/bubble-list.css +23 -0
- package/dist/components/bubble-list.d.cts +18 -0
- package/dist/components/bubble-list.d.ts +18 -0
- package/dist/components/bubble-list.mjs +8 -0
- package/dist/components/bubble-list.mjs.map +1 -0
- package/dist/components/bubble.cjs +16 -0
- package/dist/components/bubble.cjs.map +1 -0
- package/dist/components/bubble.css +165 -0
- package/dist/components/bubble.d.cts +38 -0
- package/dist/components/bubble.d.ts +38 -0
- package/dist/components/bubble.mjs +7 -0
- package/dist/components/bubble.mjs.map +1 -0
- package/dist/components/button.cjs +13 -0
- package/dist/components/button.cjs.map +1 -0
- package/dist/components/button.css +238 -0
- package/dist/components/button.d.cts +35 -0
- package/dist/components/button.d.ts +35 -0
- package/dist/components/button.mjs +4 -0
- package/dist/components/button.mjs.map +1 -0
- package/dist/components/calendar.cjs +17 -0
- package/dist/components/calendar.cjs.map +1 -0
- package/dist/components/calendar.css +138 -0
- package/dist/components/calendar.d.cts +17 -0
- package/dist/components/calendar.d.ts +17 -0
- package/dist/components/calendar.mjs +8 -0
- package/dist/components/calendar.mjs.map +1 -0
- package/dist/components/card.cjs +14 -0
- package/dist/components/card.cjs.map +1 -0
- package/dist/components/card.css +80 -0
- package/dist/components/card.d.cts +26 -0
- package/dist/components/card.d.ts +26 -0
- package/dist/components/card.mjs +5 -0
- package/dist/components/card.mjs.map +1 -0
- package/dist/components/carousel.cjs +16 -0
- package/dist/components/carousel.cjs.map +1 -0
- package/dist/components/carousel.css +227 -0
- package/dist/components/carousel.d.cts +24 -0
- package/dist/components/carousel.d.ts +24 -0
- package/dist/components/carousel.mjs +7 -0
- package/dist/components/carousel.mjs.map +1 -0
- package/dist/components/cascader.cjs +17 -0
- package/dist/components/cascader.cjs.map +1 -0
- package/dist/components/cascader.css +191 -0
- package/dist/components/cascader.d.cts +22 -0
- package/dist/components/cascader.d.ts +22 -0
- package/dist/components/cascader.mjs +8 -0
- package/dist/components/cascader.mjs.map +1 -0
- package/dist/components/checkbox.cjs +13 -0
- package/dist/components/checkbox.cjs.map +1 -0
- package/dist/components/checkbox.css +180 -0
- package/dist/components/checkbox.d.cts +19 -0
- package/dist/components/checkbox.d.ts +19 -0
- package/dist/components/checkbox.mjs +4 -0
- package/dist/components/checkbox.mjs.map +1 -0
- package/dist/components/chip.cjs +13 -0
- package/dist/components/chip.cjs.map +1 -0
- package/dist/components/chip.css +75 -0
- package/dist/components/chip.d.cts +24 -0
- package/dist/components/chip.d.ts +24 -0
- package/dist/components/chip.mjs +4 -0
- package/dist/components/chip.mjs.map +1 -0
- package/dist/components/code-block.cjs +17 -0
- package/dist/components/code-block.cjs.map +1 -0
- package/dist/components/code-block.css +165 -0
- package/dist/components/code-block.d.cts +26 -0
- package/dist/components/code-block.d.ts +26 -0
- package/dist/components/code-block.mjs +8 -0
- package/dist/components/code-block.mjs.map +1 -0
- package/dist/components/collapse.cjs +14 -0
- package/dist/components/collapse.cjs.map +1 -0
- package/dist/components/collapse.css +87 -0
- package/dist/components/collapse.d.cts +24 -0
- package/dist/components/collapse.d.ts +24 -0
- package/dist/components/collapse.mjs +5 -0
- package/dist/components/collapse.mjs.map +1 -0
- package/dist/components/color-picker.cjs +14 -0
- package/dist/components/color-picker.cjs.map +1 -0
- package/dist/components/color-picker.css +2364 -0
- package/dist/components/color-picker.d.cts +19 -0
- package/dist/components/color-picker.d.ts +19 -0
- package/dist/components/color-picker.mjs +5 -0
- package/dist/components/color-picker.mjs.map +1 -0
- package/dist/components/confirm.cjs +22 -0
- package/dist/components/confirm.cjs.map +1 -0
- package/dist/components/confirm.css +43 -0
- package/dist/components/confirm.d.cts +25 -0
- package/dist/components/confirm.d.ts +25 -0
- package/dist/components/confirm.mjs +9 -0
- package/dist/components/confirm.mjs.map +1 -0
- package/dist/components/conversations.cjs +20 -0
- package/dist/components/conversations.cjs.map +1 -0
- package/dist/components/conversations.css +96 -0
- package/dist/components/conversations.d.cts +30 -0
- package/dist/components/conversations.d.ts +30 -0
- package/dist/components/conversations.mjs +11 -0
- package/dist/components/conversations.mjs.map +1 -0
- package/dist/components/date-picker.cjs +39 -0
- package/dist/components/date-picker.cjs.map +1 -0
- package/dist/components/date-picker.css +551 -0
- package/dist/components/date-picker.d.cts +95 -0
- package/dist/components/date-picker.d.ts +95 -0
- package/dist/components/date-picker.mjs +10 -0
- package/dist/components/date-picker.mjs.map +1 -0
- package/dist/components/descriptions.cjs +13 -0
- package/dist/components/descriptions.cjs.map +1 -0
- package/dist/components/descriptions.css +68 -0
- package/dist/components/descriptions.d.cts +23 -0
- package/dist/components/descriptions.d.ts +23 -0
- package/dist/components/descriptions.mjs +4 -0
- package/dist/components/descriptions.mjs.map +1 -0
- package/dist/components/divider.cjs +13 -0
- package/dist/components/divider.cjs.map +1 -0
- package/dist/components/divider.css +64 -0
- package/dist/components/divider.d.cts +14 -0
- package/dist/components/divider.d.ts +14 -0
- package/dist/components/divider.mjs +4 -0
- package/dist/components/divider.mjs.map +1 -0
- package/dist/components/drawer.cjs +17 -0
- package/dist/components/drawer.cjs.map +1 -0
- package/dist/components/drawer.css +154 -0
- package/dist/components/drawer.d.cts +22 -0
- package/dist/components/drawer.d.ts +22 -0
- package/dist/components/drawer.mjs +8 -0
- package/dist/components/drawer.mjs.map +1 -0
- package/dist/components/dropdown.cjs +15 -0
- package/dist/components/dropdown.cjs.map +1 -0
- package/dist/components/dropdown.css +84 -0
- package/dist/components/dropdown.d.cts +25 -0
- package/dist/components/dropdown.d.ts +25 -0
- package/dist/components/dropdown.mjs +6 -0
- package/dist/components/dropdown.mjs.map +1 -0
- package/dist/components/empty.cjs +14 -0
- package/dist/components/empty.cjs.map +1 -0
- package/dist/components/empty.css +52 -0
- package/dist/components/empty.d.cts +16 -0
- package/dist/components/empty.d.ts +16 -0
- package/dist/components/empty.mjs +5 -0
- package/dist/components/empty.mjs.map +1 -0
- package/dist/components/field.cjs +28 -0
- package/dist/components/field.cjs.map +1 -0
- package/dist/components/field.css +385 -0
- package/dist/components/field.d.cts +76 -0
- package/dist/components/field.d.ts +76 -0
- package/dist/components/field.mjs +7 -0
- package/dist/components/field.mjs.map +1 -0
- package/dist/components/flex.cjs +13 -0
- package/dist/components/flex.cjs.map +1 -0
- package/dist/components/flex.css +6 -0
- package/dist/components/flex.d.cts +21 -0
- package/dist/components/flex.d.ts +21 -0
- package/dist/components/flex.mjs +4 -0
- package/dist/components/flex.mjs.map +1 -0
- package/dist/components/float-button.cjs +16 -0
- package/dist/components/float-button.cjs.map +1 -0
- package/dist/components/float-button.css +24 -0
- package/dist/components/float-button.d.cts +23 -0
- package/dist/components/float-button.d.ts +23 -0
- package/dist/components/float-button.mjs +7 -0
- package/dist/components/float-button.mjs.map +1 -0
- package/dist/components/form.cjs +25 -0
- package/dist/components/form.cjs.map +1 -0
- package/dist/components/form.css +105 -0
- package/dist/components/form.d.cts +87 -0
- package/dist/components/form.d.ts +87 -0
- package/dist/components/form.mjs +4 -0
- package/dist/components/form.mjs.map +1 -0
- package/dist/components/grid.cjs +17 -0
- package/dist/components/grid.cjs.map +1 -0
- package/dist/components/grid.css +51 -0
- package/dist/components/grid.d.cts +36 -0
- package/dist/components/grid.d.ts +36 -0
- package/dist/components/grid.mjs +4 -0
- package/dist/components/grid.mjs.map +1 -0
- package/dist/components/icon.cjs +17 -0
- package/dist/components/icon.cjs.map +1 -0
- package/dist/components/icon.css +35 -0
- package/dist/components/icon.d.cts +111 -0
- package/dist/components/icon.d.ts +111 -0
- package/dist/components/icon.mjs +4 -0
- package/dist/components/icon.mjs.map +1 -0
- package/dist/components/image.cjs +15 -0
- package/dist/components/image.cjs.map +1 -0
- package/dist/components/image.css +283 -0
- package/dist/components/image.d.cts +36 -0
- package/dist/components/image.d.ts +36 -0
- package/dist/components/image.mjs +6 -0
- package/dist/components/image.mjs.map +1 -0
- package/dist/components/input-otp.cjs +14 -0
- package/dist/components/input-otp.cjs.map +1 -0
- package/dist/components/input-otp.css +72 -0
- package/dist/components/input-otp.d.cts +26 -0
- package/dist/components/input-otp.d.ts +26 -0
- package/dist/components/input-otp.mjs +5 -0
- package/dist/components/input-otp.mjs.map +1 -0
- package/dist/components/layout.cjs +32 -0
- package/dist/components/layout.cjs.map +1 -0
- package/dist/components/layout.css +108 -0
- package/dist/components/layout.d.cts +49 -0
- package/dist/components/layout.d.ts +49 -0
- package/dist/components/layout.mjs +7 -0
- package/dist/components/layout.mjs.map +1 -0
- package/dist/components/list.cjs +29 -0
- package/dist/components/list.cjs.map +1 -0
- package/dist/components/list.css +171 -0
- package/dist/components/list.d.cts +68 -0
- package/dist/components/list.d.ts +68 -0
- package/dist/components/list.mjs +12 -0
- package/dist/components/list.mjs.map +1 -0
- package/dist/components/masonry.cjs +13 -0
- package/dist/components/masonry.cjs.map +1 -0
- package/dist/components/masonry.css +17 -0
- package/dist/components/masonry.d.cts +14 -0
- package/dist/components/masonry.d.ts +14 -0
- package/dist/components/masonry.mjs +4 -0
- package/dist/components/masonry.mjs.map +1 -0
- package/dist/components/mentions.cjs +18 -0
- package/dist/components/mentions.cjs.map +1 -0
- package/dist/components/mentions.css +58 -0
- package/dist/components/mentions.d.cts +25 -0
- package/dist/components/mentions.d.ts +25 -0
- package/dist/components/mentions.mjs +9 -0
- package/dist/components/mentions.mjs.map +1 -0
- package/dist/components/menu.cjs +14 -0
- package/dist/components/menu.cjs.map +1 -0
- package/dist/components/menu.css +90 -0
- package/dist/components/menu.d.cts +25 -0
- package/dist/components/menu.d.ts +25 -0
- package/dist/components/menu.mjs +5 -0
- package/dist/components/menu.mjs.map +1 -0
- package/dist/components/modal.cjs +17 -0
- package/dist/components/modal.cjs.map +1 -0
- package/dist/components/modal.css +114 -0
- package/dist/components/modal.d.cts +22 -0
- package/dist/components/modal.d.ts +22 -0
- package/dist/components/modal.mjs +8 -0
- package/dist/components/modal.mjs.map +1 -0
- package/dist/components/notification.cjs +20 -0
- package/dist/components/notification.cjs.map +1 -0
- package/dist/components/notification.css +101 -0
- package/dist/components/notification.d.cts +26 -0
- package/dist/components/notification.d.ts +26 -0
- package/dist/components/notification.mjs +7 -0
- package/dist/components/notification.mjs.map +1 -0
- package/dist/components/number-input.cjs +13 -0
- package/dist/components/number-input.cjs.map +1 -0
- package/dist/components/number-input.css +520 -0
- package/dist/components/number-input.d.cts +45 -0
- package/dist/components/number-input.d.ts +45 -0
- package/dist/components/number-input.mjs +4 -0
- package/dist/components/number-input.mjs.map +1 -0
- package/dist/components/pagination.cjs +26 -0
- package/dist/components/pagination.cjs.map +1 -0
- package/dist/components/pagination.css +55 -0
- package/dist/components/pagination.d.cts +49 -0
- package/dist/components/pagination.d.ts +49 -0
- package/dist/components/pagination.mjs +9 -0
- package/dist/components/pagination.mjs.map +1 -0
- package/dist/components/pc-mob-data.cjs +18 -0
- package/dist/components/pc-mob-data.cjs.map +1 -0
- package/dist/components/pc-mob-data.css +81 -0
- package/dist/components/pc-mob-data.d.cts +34 -0
- package/dist/components/pc-mob-data.d.ts +34 -0
- package/dist/components/pc-mob-data.mjs +9 -0
- package/dist/components/pc-mob-data.mjs.map +1 -0
- package/dist/components/popover.cjs +14 -0
- package/dist/components/popover.cjs.map +1 -0
- package/dist/components/popover.css +40 -0
- package/dist/components/popover.d.cts +22 -0
- package/dist/components/popover.d.ts +22 -0
- package/dist/components/popover.mjs +5 -0
- package/dist/components/popover.mjs.map +1 -0
- package/dist/components/progress.cjs +13 -0
- package/dist/components/progress.cjs.map +1 -0
- package/dist/components/progress.css +129 -0
- package/dist/components/progress.d.cts +18 -0
- package/dist/components/progress.d.ts +18 -0
- package/dist/components/progress.mjs +4 -0
- package/dist/components/progress.mjs.map +1 -0
- package/dist/components/prompts.cjs +14 -0
- package/dist/components/prompts.cjs.map +1 -0
- package/dist/components/prompts.css +88 -0
- package/dist/components/prompts.d.cts +23 -0
- package/dist/components/prompts.d.ts +23 -0
- package/dist/components/prompts.mjs +5 -0
- package/dist/components/prompts.mjs.map +1 -0
- package/dist/components/qrcode.cjs +14 -0
- package/dist/components/qrcode.cjs.map +1 -0
- package/dist/components/qrcode.css +54 -0
- package/dist/components/qrcode.d.cts +26 -0
- package/dist/components/qrcode.d.ts +26 -0
- package/dist/components/qrcode.mjs +5 -0
- package/dist/components/qrcode.mjs.map +1 -0
- package/dist/components/radio.cjs +17 -0
- package/dist/components/radio.cjs.map +1 -0
- package/dist/components/radio.css +83 -0
- package/dist/components/radio.d.cts +34 -0
- package/dist/components/radio.d.ts +34 -0
- package/dist/components/radio.mjs +4 -0
- package/dist/components/radio.mjs.map +1 -0
- package/dist/components/rate.cjs +13 -0
- package/dist/components/rate.cjs.map +1 -0
- package/dist/components/rate.css +51 -0
- package/dist/components/rate.d.cts +20 -0
- package/dist/components/rate.d.ts +20 -0
- package/dist/components/rate.mjs +4 -0
- package/dist/components/rate.mjs.map +1 -0
- package/dist/components/result.cjs +14 -0
- package/dist/components/result.cjs.map +1 -0
- package/dist/components/result.css +77 -0
- package/dist/components/result.d.cts +19 -0
- package/dist/components/result.d.ts +19 -0
- package/dist/components/result.mjs +5 -0
- package/dist/components/result.mjs.map +1 -0
- package/dist/components/segmented.cjs +13 -0
- package/dist/components/segmented.cjs.map +1 -0
- package/dist/components/segmented.css +102 -0
- package/dist/components/segmented.d.cts +26 -0
- package/dist/components/segmented.d.ts +26 -0
- package/dist/components/segmented.mjs +4 -0
- package/dist/components/segmented.mjs.map +1 -0
- package/dist/components/select.cjs +14 -0
- package/dist/components/select.cjs.map +1 -0
- package/dist/components/select.css +306 -0
- package/dist/components/select.d.cts +22 -0
- package/dist/components/select.d.ts +22 -0
- package/dist/components/select.mjs +5 -0
- package/dist/components/select.mjs.map +1 -0
- package/dist/components/sender.cjs +17 -0
- package/dist/components/sender.cjs.map +1 -0
- package/dist/components/sender.css +79 -0
- package/dist/components/sender.d.cts +32 -0
- package/dist/components/sender.d.ts +32 -0
- package/dist/components/sender.mjs +8 -0
- package/dist/components/sender.mjs.map +1 -0
- package/dist/components/skeleton.cjs +13 -0
- package/dist/components/skeleton.cjs.map +1 -0
- package/dist/components/skeleton.css +62 -0
- package/dist/components/skeleton.d.cts +19 -0
- package/dist/components/skeleton.d.ts +19 -0
- package/dist/components/skeleton.mjs +4 -0
- package/dist/components/skeleton.mjs.map +1 -0
- package/dist/components/slider.cjs +13 -0
- package/dist/components/slider.cjs.map +1 -0
- package/dist/components/slider.css +71 -0
- package/dist/components/slider.d.cts +19 -0
- package/dist/components/slider.d.ts +19 -0
- package/dist/components/slider.mjs +4 -0
- package/dist/components/slider.mjs.map +1 -0
- package/dist/components/space.cjs +13 -0
- package/dist/components/space.cjs.map +1 -0
- package/dist/components/space.css +32 -0
- package/dist/components/space.d.cts +17 -0
- package/dist/components/space.d.ts +17 -0
- package/dist/components/space.mjs +4 -0
- package/dist/components/space.mjs.map +1 -0
- package/dist/components/spin.cjs +13 -0
- package/dist/components/spin.cjs.map +1 -0
- package/dist/components/spin.css +73 -0
- package/dist/components/spin.d.cts +14 -0
- package/dist/components/spin.d.ts +14 -0
- package/dist/components/spin.mjs +4 -0
- package/dist/components/spin.mjs.map +1 -0
- package/dist/components/splitter.cjs +13 -0
- package/dist/components/splitter.cjs.map +1 -0
- package/dist/components/splitter.css +65 -0
- package/dist/components/splitter.d.cts +23 -0
- package/dist/components/splitter.d.ts +23 -0
- package/dist/components/splitter.mjs +4 -0
- package/dist/components/splitter.mjs.map +1 -0
- package/dist/components/statistic.cjs +14 -0
- package/dist/components/statistic.cjs.map +1 -0
- package/dist/components/statistic.css +34 -0
- package/dist/components/statistic.d.cts +18 -0
- package/dist/components/statistic.d.ts +18 -0
- package/dist/components/statistic.mjs +5 -0
- package/dist/components/statistic.mjs.map +1 -0
- package/dist/components/suggestion.cjs +17 -0
- package/dist/components/suggestion.cjs.map +1 -0
- package/dist/components/suggestion.css +40 -0
- package/dist/components/suggestion.d.cts +22 -0
- package/dist/components/suggestion.d.ts +22 -0
- package/dist/components/suggestion.mjs +8 -0
- package/dist/components/suggestion.mjs.map +1 -0
- package/dist/components/switch.cjs +13 -0
- package/dist/components/switch.cjs.map +1 -0
- package/dist/components/switch.css +88 -0
- package/dist/components/switch.d.cts +19 -0
- package/dist/components/switch.d.ts +19 -0
- package/dist/components/switch.mjs +4 -0
- package/dist/components/switch.mjs.map +1 -0
- package/dist/components/table.cjs +15 -0
- package/dist/components/table.cjs.map +1 -0
- package/dist/components/table.css +60 -0
- package/dist/components/table.d.cts +33 -0
- package/dist/components/table.d.ts +33 -0
- package/dist/components/table.mjs +6 -0
- package/dist/components/table.mjs.map +1 -0
- package/dist/components/tabs.cjs +13 -0
- package/dist/components/tabs.cjs.map +1 -0
- package/dist/components/tabs.css +138 -0
- package/dist/components/tabs.d.cts +24 -0
- package/dist/components/tabs.d.ts +24 -0
- package/dist/components/tabs.mjs +4 -0
- package/dist/components/tabs.mjs.map +1 -0
- package/dist/components/tag.cjs +16 -0
- package/dist/components/tag.cjs.map +1 -0
- package/dist/components/tag.css +105 -0
- package/dist/components/tag.d.cts +20 -0
- package/dist/components/tag.d.ts +20 -0
- package/dist/components/tag.mjs +7 -0
- package/dist/components/tag.mjs.map +1 -0
- package/dist/components/timeline.cjs +13 -0
- package/dist/components/timeline.cjs.map +1 -0
- package/dist/components/timeline.css +136 -0
- package/dist/components/timeline.d.cts +21 -0
- package/dist/components/timeline.d.ts +21 -0
- package/dist/components/timeline.mjs +4 -0
- package/dist/components/timeline.mjs.map +1 -0
- package/dist/components/toast.cjs +33 -0
- package/dist/components/toast.cjs.map +1 -0
- package/dist/components/toast.css +72 -0
- package/dist/components/toast.d.cts +32 -0
- package/dist/components/toast.d.ts +32 -0
- package/dist/components/toast.mjs +4 -0
- package/dist/components/toast.mjs.map +1 -0
- package/dist/components/tooltip.cjs +13 -0
- package/dist/components/tooltip.cjs.map +1 -0
- package/dist/components/tooltip.css +145 -0
- package/dist/components/tooltip.d.cts +38 -0
- package/dist/components/tooltip.d.ts +38 -0
- package/dist/components/tooltip.mjs +4 -0
- package/dist/components/tooltip.mjs.map +1 -0
- package/dist/components/tour.cjs +16 -0
- package/dist/components/tour.cjs.map +1 -0
- package/dist/components/tour.css +110 -0
- package/dist/components/tour.d.cts +27 -0
- package/dist/components/tour.d.ts +27 -0
- package/dist/components/tour.mjs +7 -0
- package/dist/components/tour.mjs.map +1 -0
- package/dist/components/transfer.cjs +19 -0
- package/dist/components/transfer.cjs.map +1 -0
- package/dist/components/transfer.css +108 -0
- package/dist/components/transfer.d.cts +22 -0
- package/dist/components/transfer.d.ts +22 -0
- package/dist/components/transfer.mjs +10 -0
- package/dist/components/transfer.mjs.map +1 -0
- package/dist/components/tree-select.cjs +19 -0
- package/dist/components/tree-select.cjs.map +1 -0
- package/dist/components/tree-select.css +117 -0
- package/dist/components/tree-select.d.cts +20 -0
- package/dist/components/tree-select.d.ts +20 -0
- package/dist/components/tree-select.mjs +10 -0
- package/dist/components/tree-select.mjs.map +1 -0
- package/dist/components/tree.cjs +16 -0
- package/dist/components/tree.cjs.map +1 -0
- package/dist/components/tree.css +88 -0
- package/dist/components/tree.d.cts +25 -0
- package/dist/components/tree.d.ts +25 -0
- package/dist/components/tree.mjs +7 -0
- package/dist/components/tree.mjs.map +1 -0
- package/dist/components/typography.cjs +34 -0
- package/dist/components/typography.cjs.map +1 -0
- package/dist/components/typography.css +185 -0
- package/dist/components/typography.d.cts +57 -0
- package/dist/components/typography.d.ts +57 -0
- package/dist/components/typography.mjs +9 -0
- package/dist/components/typography.mjs.map +1 -0
- package/dist/components/upload.cjs +17 -0
- package/dist/components/upload.cjs.map +1 -0
- package/dist/components/upload.css +121 -0
- package/dist/components/upload.d.cts +34 -0
- package/dist/components/upload.d.ts +34 -0
- package/dist/components/upload.mjs +8 -0
- package/dist/components/upload.mjs.map +1 -0
- package/dist/components/video-player.cjs +13 -0
- package/dist/components/video-player.cjs.map +1 -0
- package/dist/components/video-player.css +54 -0
- package/dist/components/video-player.d.cts +34 -0
- package/dist/components/video-player.d.ts +34 -0
- package/dist/components/video-player.mjs +4 -0
- package/dist/components/video-player.mjs.map +1 -0
- package/dist/components/watermark.cjs +13 -0
- package/dist/components/watermark.cjs.map +1 -0
- package/dist/components/watermark.css +25 -0
- package/dist/components/watermark.d.cts +25 -0
- package/dist/components/watermark.d.ts +25 -0
- package/dist/components/watermark.mjs +4 -0
- package/dist/components/watermark.mjs.map +1 -0
- package/dist/components/welcome.cjs +15 -0
- package/dist/components/welcome.cjs.map +1 -0
- package/dist/components/welcome.css +46 -0
- package/dist/components/welcome.d.cts +13 -0
- package/dist/components/welcome.d.ts +13 -0
- package/dist/components/welcome.mjs +6 -0
- package/dist/components/welcome.mjs.map +1 -0
- package/dist/date-Wb_laQjx.d.cts +43 -0
- package/dist/date-Wb_laQjx.d.ts +43 -0
- package/dist/headless.cjs +262 -0
- package/dist/headless.cjs.map +1 -0
- package/dist/headless.d.cts +135 -0
- package/dist/headless.d.ts +135 -0
- package/dist/headless.mjs +248 -0
- package/dist/headless.mjs.map +1 -0
- package/dist/index.cjs +984 -0
- package/dist/index.cjs.map +1 -0
- package/dist/index.d.cts +255 -0
- package/dist/index.d.ts +255 -0
- package/dist/index.mjs +376 -0
- package/dist/index.mjs.map +1 -0
- package/dist/locale.cjs +24 -0
- package/dist/locale.cjs.map +1 -0
- package/dist/locale.d.cts +232 -0
- package/dist/locale.d.ts +232 -0
- package/dist/locale.mjs +3 -0
- package/dist/locale.mjs.map +1 -0
- package/dist/pro.cjs +14 -0
- package/dist/pro.cjs.map +1 -0
- package/dist/pro.d.cts +1 -0
- package/dist/pro.d.ts +1 -0
- package/dist/pro.mjs +3 -0
- package/dist/pro.mjs.map +1 -0
- package/dist/styles/reset.css +30 -0
- package/dist/styles/themes.css +150 -0
- package/dist/styles/tokens.css +95 -0
- package/dist/styles/vendor/ew-audio-player.css +5 -0
- package/dist/styles/vendor/ew-auto-image.css +90 -0
- package/dist/styles/vendor/ew-color-picker-button.css +135 -0
- package/dist/styles/vendor/ew-color-picker-checkbox.css +147 -0
- package/dist/styles/vendor/ew-color-picker-input-number.css +321 -0
- package/dist/styles/vendor/ew-color-picker-input.css +102 -0
- package/dist/styles/vendor/ew-color-picker-select.css +219 -0
- package/dist/styles/vendor/ew-color-picker-tokens.css +49 -0
- package/dist/styles/vendor/ew-color-picker-tooltip.css +98 -0
- package/dist/styles/vendor/ew-color-picker.css +1661 -0
- package/dist/styles/vendor/ew-message.css +5 -0
- package/dist/styles/vendor/ew-video-player.css +5 -0
- package/dist/styles/vendor/ew-viewer.css +176 -0
- package/dist/styles.css +11226 -0
- package/dist/useSelect-9FvxosEP.d.cts +63 -0
- package/dist/useSelect-9FvxosEP.d.ts +63 -0
- package/package.json +142 -3
package/dist/index.mjs
ADDED
|
@@ -0,0 +1,376 @@
|
|
|
1
|
+
export { Anchor } from './chunk-KS3IJZ6X.mjs';
|
|
2
|
+
export { Breadcrumb } from './chunk-XCETC5QY.mjs';
|
|
3
|
+
export { Mentions } from './chunk-3UZHB37H.mjs';
|
|
4
|
+
export { Watermark } from './chunk-BJ65NMEU.mjs';
|
|
5
|
+
export { Masonry } from './chunk-NUXBJOBN.mjs';
|
|
6
|
+
export { QRCode } from './chunk-VBHVHIJG.mjs';
|
|
7
|
+
export { Tour } from './chunk-PDMLITWQ.mjs';
|
|
8
|
+
export { Carousel } from './chunk-3JKPNGUN.mjs';
|
|
9
|
+
export { Notifications, notification } from './chunk-37TUTUSK.mjs';
|
|
10
|
+
export { Splitter } from './chunk-A4PQCJDF.mjs';
|
|
11
|
+
export { BackTop } from './chunk-7EK4UAF2.mjs';
|
|
12
|
+
export { FloatButton } from './chunk-IQBBHEE2.mjs';
|
|
13
|
+
export { Affix } from './chunk-HX3V3WOX.mjs';
|
|
14
|
+
export { Calendar } from './chunk-KJ7AQDX2.mjs';
|
|
15
|
+
export { InputOTP } from './chunk-ISDGZO3N.mjs';
|
|
16
|
+
export { Conversations } from './chunk-VLNQ5HZY.mjs';
|
|
17
|
+
export { Welcome } from './chunk-PMJCAM5G.mjs';
|
|
18
|
+
export { Prompts } from './chunk-WLHSZF7O.mjs';
|
|
19
|
+
export { Suggestion } from './chunk-XIKJ7BDI.mjs';
|
|
20
|
+
export { VideoPlayer } from './chunk-LLX4LUZ4.mjs';
|
|
21
|
+
export { AudioPlayer } from './chunk-AQKQO2O7.mjs';
|
|
22
|
+
export { Segmented } from './chunk-ECTVRA4R.mjs';
|
|
23
|
+
export { Result } from './chunk-XUWNQ64K.mjs';
|
|
24
|
+
export { DatePicker, DateRangePicker, DateTimePicker, DateTimeRangePicker, TimePicker, TimeRangePicker } from './chunk-N5R3NDZ6.mjs';
|
|
25
|
+
export { ColorPicker, getColorBrightness, hexToHsl, hexToRgb, hslToHex, hslToRgb, isDarkColor, isStrictColorFormat, isValidColor, isValidHex, normalizeHex, readableTextColor, rgbToHex, rgbToHsl } from './chunk-3WYFQHDX.mjs';
|
|
26
|
+
export { NumberInput } from './chunk-7SI3LXVV.mjs';
|
|
27
|
+
export { EWImage } from './chunk-W4BB5ZVA.mjs';
|
|
28
|
+
export { AutoImage } from './chunk-XJKYF7CA.mjs';
|
|
29
|
+
export { BubbleList } from './chunk-V6YCAROF.mjs';
|
|
30
|
+
export { Bubble } from './chunk-ZFAGQ3NN.mjs';
|
|
31
|
+
export { Sender } from './chunk-LIQ6IYRK.mjs';
|
|
32
|
+
export { ConfirmHost, confirmDialog } from './chunk-XDVZIZEA.mjs';
|
|
33
|
+
export { Modal } from './chunk-XCNITFZS.mjs';
|
|
34
|
+
export { PcMobData } from './chunk-BRLIXQC7.mjs';
|
|
35
|
+
export { DataTable } from './chunk-5CO5XP34.mjs';
|
|
36
|
+
export { TreeSelect } from './chunk-E2S5EQJY.mjs';
|
|
37
|
+
export { Transfer } from './chunk-3KVJPWAE.mjs';
|
|
38
|
+
export { AutoComplete } from './chunk-TOBNNOLZ.mjs';
|
|
39
|
+
export { Space } from './chunk-EKOR7BQJ.mjs';
|
|
40
|
+
export { Divider } from './chunk-DWSFRMFR.mjs';
|
|
41
|
+
export { Flex } from './chunk-K2WVPOWP.mjs';
|
|
42
|
+
export { Col, Row } from './chunk-5XAKKKDH.mjs';
|
|
43
|
+
export { Layout, LayoutContent, LayoutFooter, LayoutHeader, LayoutSider } from './chunk-NFRRBSVS.mjs';
|
|
44
|
+
export { List, ListItem, ListItemMetaRoot as ListItemMeta } from './chunk-UYPXPWGH.mjs';
|
|
45
|
+
export { Pagination, buildPageItems, getTotalPages } from './chunk-GFGW4V73.mjs';
|
|
46
|
+
export { Select } from './chunk-JFPORML4.mjs';
|
|
47
|
+
export { Statistic } from './chunk-WLQ4HBQL.mjs';
|
|
48
|
+
export { Timeline } from './chunk-A3AC44V7.mjs';
|
|
49
|
+
export { Collapse } from './chunk-C345U7MB.mjs';
|
|
50
|
+
export { Upload } from './chunk-Q4XFYVBU.mjs';
|
|
51
|
+
export { Progress } from './chunk-QBAMCXZA.mjs';
|
|
52
|
+
export { Tree } from './chunk-X27KKAL5.mjs';
|
|
53
|
+
export { Cascader } from './chunk-57PMJPTJ.mjs';
|
|
54
|
+
export { Slider } from './chunk-FCICPQX6.mjs';
|
|
55
|
+
export { Rate } from './chunk-BMXDZPXJ.mjs';
|
|
56
|
+
export { Tabs } from './chunk-YTVGTXKG.mjs';
|
|
57
|
+
export { Menu } from './chunk-IGTFKNT2.mjs';
|
|
58
|
+
export { Dropdown } from './chunk-WGBFZPVI.mjs';
|
|
59
|
+
export { Drawer } from './chunk-OC4OXRY5.mjs';
|
|
60
|
+
export { Popover } from './chunk-4BGUBLXZ.mjs';
|
|
61
|
+
export { Tooltip } from './chunk-GPEWXSW6.mjs';
|
|
62
|
+
export { Descriptions } from './chunk-MAA4BVYZ.mjs';
|
|
63
|
+
export { Tag } from './chunk-LNCV6HDA.mjs';
|
|
64
|
+
export { Avatar } from './chunk-3HSO46U4.mjs';
|
|
65
|
+
export { Empty } from './chunk-FQ7TOJSM.mjs';
|
|
66
|
+
export { Spin } from './chunk-UWRPX656.mjs';
|
|
67
|
+
export { Form, FormItem, createForm, useFormContext } from './chunk-FEAIMEKC.mjs';
|
|
68
|
+
export { Radio, RadioGroup } from './chunk-PQZ4DAAJ.mjs';
|
|
69
|
+
export { Switch } from './chunk-LGCY5PE3.mjs';
|
|
70
|
+
export { InputField, PasswordField, TextareaField, getPasswordStrength } from './chunk-OUMFK4A2.mjs';
|
|
71
|
+
export { Checkbox } from './chunk-CMV5TYP2.mjs';
|
|
72
|
+
export { ChipGroup } from './chunk-NXNBU3OU.mjs';
|
|
73
|
+
export { Badge, StatusBadge } from './chunk-YWO3Y7QW.mjs';
|
|
74
|
+
export { CodeBlock } from './chunk-JTWJ44E7.mjs';
|
|
75
|
+
export { Card } from './chunk-W24OD4AA.mjs';
|
|
76
|
+
export { Skeleton } from './chunk-WDGZMFG3.mjs';
|
|
77
|
+
export { Alert } from './chunk-QJNDDCIR.mjs';
|
|
78
|
+
import './chunk-OJ423CJY.mjs';
|
|
79
|
+
export { WEEK_DAYS, buildCalendar, buildYearOptions, formatDate, formatDateTime, formatTime, isSameDay, isSameMonth, pad, parseDate, parseDateTime, parseTime, shiftMonth, yearPageStart } from './chunk-7HJYSXUX.mjs';
|
|
80
|
+
import './chunk-R3ZSB7DV.mjs';
|
|
81
|
+
import './chunk-4QWSKOIZ.mjs';
|
|
82
|
+
export { Link, Paragraph, Text, Title, Typography } from './chunk-XF5YT742.mjs';
|
|
83
|
+
export { Toasts, clearToasts, dismissToast, pushToast, toast, toastItems } from './chunk-B4VO47MI.mjs';
|
|
84
|
+
export { copyText } from './chunk-K2TSQYZ5.mjs';
|
|
85
|
+
export { Icon, iconPaths } from './chunk-KYZSQQ4F.mjs';
|
|
86
|
+
export { LocaleProvider, enUS, useLocale, zhCN } from './chunk-XVUXENE6.mjs';
|
|
87
|
+
export { Button } from './chunk-RO3WOLYD.mjs';
|
|
88
|
+
export { cn } from './chunk-DODEVZAJ.mjs';
|
|
89
|
+
import { createComponent } from 'solid-js/web';
|
|
90
|
+
import { createContext, useContext, createSignal, createMemo, onMount } from 'solid-js';
|
|
91
|
+
import { useStorage } from 'ew-responsive-store/solid';
|
|
92
|
+
|
|
93
|
+
// src/theme/tokens.ts
|
|
94
|
+
var designTokens = {
|
|
95
|
+
/* 字体 */
|
|
96
|
+
fontSans: "--ew-font-sans",
|
|
97
|
+
fontSerif: "--ew-font-serif",
|
|
98
|
+
fontSize: "--ew-font-size",
|
|
99
|
+
lineHeight: "--ew-line-height",
|
|
100
|
+
/* 文字 */
|
|
101
|
+
ink: "--ew-ink",
|
|
102
|
+
inkSoft: "--ew-ink-soft",
|
|
103
|
+
muted: "--ew-muted",
|
|
104
|
+
onAccent: "--ew-on-accent",
|
|
105
|
+
/* 背景 */
|
|
106
|
+
paper: "--ew-paper",
|
|
107
|
+
card: "--ew-card",
|
|
108
|
+
fill: "--ew-fill",
|
|
109
|
+
fillStrong: "--ew-fill-strong",
|
|
110
|
+
/* 描边 */
|
|
111
|
+
line: "--ew-line",
|
|
112
|
+
lineStrong: "--ew-line-strong",
|
|
113
|
+
/* 强调色 */
|
|
114
|
+
accent: "--ew-accent",
|
|
115
|
+
accentStrong: "--ew-accent-strong",
|
|
116
|
+
accentSoft: "--ew-accent-soft",
|
|
117
|
+
/* 语义色 */
|
|
118
|
+
ok: "--ew-ok",
|
|
119
|
+
okSoft: "--ew-ok-soft",
|
|
120
|
+
warn: "--ew-warn",
|
|
121
|
+
warnSoft: "--ew-warn-soft",
|
|
122
|
+
danger: "--ew-danger",
|
|
123
|
+
dangerStrong: "--ew-danger-strong",
|
|
124
|
+
dangerSoft: "--ew-danger-soft",
|
|
125
|
+
/* 遮罩 */
|
|
126
|
+
mask: "--ew-mask",
|
|
127
|
+
/* 圆角 */
|
|
128
|
+
radiusSm: "--ew-radius-sm",
|
|
129
|
+
radiusMd: "--ew-radius-md",
|
|
130
|
+
radiusLg: "--ew-radius-lg",
|
|
131
|
+
radiusFull: "--ew-radius-full",
|
|
132
|
+
/* 阴影 */
|
|
133
|
+
shadowSm: "--ew-shadow-sm",
|
|
134
|
+
shadowMd: "--ew-shadow-md",
|
|
135
|
+
shadowLg: "--ew-shadow-lg",
|
|
136
|
+
/* 控件高度 */
|
|
137
|
+
controlSm: "--ew-control-sm",
|
|
138
|
+
controlMd: "--ew-control-md",
|
|
139
|
+
controlLg: "--ew-control-lg",
|
|
140
|
+
/* 层级 */
|
|
141
|
+
zPopover: "--ew-z-popover",
|
|
142
|
+
zModal: "--ew-z-modal",
|
|
143
|
+
zToast: "--ew-z-toast"
|
|
144
|
+
};
|
|
145
|
+
var cssVars = Object.values(designTokens);
|
|
146
|
+
function cssVarValue(token, fallback) {
|
|
147
|
+
return fallback ? `var(${designTokens[token]}, ${fallback})` : `var(${designTokens[token]})`;
|
|
148
|
+
}
|
|
149
|
+
|
|
150
|
+
// src/theme/themes.ts
|
|
151
|
+
var DEFAULT_THEME_ID = "classic";
|
|
152
|
+
var PRESET_THEMES = [
|
|
153
|
+
{
|
|
154
|
+
id: "classic",
|
|
155
|
+
name: "\u7EB8\u97F5",
|
|
156
|
+
dark: false,
|
|
157
|
+
vars: {
|
|
158
|
+
"--ew-ink": "#26221e",
|
|
159
|
+
"--ew-ink-soft": "#4a443e",
|
|
160
|
+
"--ew-muted": "#837a70",
|
|
161
|
+
"--ew-on-accent": "#fffdf8",
|
|
162
|
+
"--ew-paper": "#f6f2ea",
|
|
163
|
+
"--ew-card": "#fffdf8",
|
|
164
|
+
"--ew-fill": "#f2ece0",
|
|
165
|
+
"--ew-fill-strong": "#e7e1d6",
|
|
166
|
+
"--ew-line": "#e7e1d6",
|
|
167
|
+
"--ew-line-strong": "#d8cfc0",
|
|
168
|
+
"--ew-accent": "#9a5b33",
|
|
169
|
+
"--ew-accent-strong": "#7d4523",
|
|
170
|
+
"--ew-accent-soft": "#f3e6da",
|
|
171
|
+
"--ew-ok": "#2f7d5c",
|
|
172
|
+
"--ew-ok-soft": "#e4f1ea",
|
|
173
|
+
"--ew-warn": "#a9761d",
|
|
174
|
+
"--ew-warn-soft": "#fbf0d9",
|
|
175
|
+
"--ew-danger": "#b3382c",
|
|
176
|
+
"--ew-danger-strong": "#93291f",
|
|
177
|
+
"--ew-danger-soft": "#fbe7e4"
|
|
178
|
+
}
|
|
179
|
+
},
|
|
180
|
+
{
|
|
181
|
+
id: "ink",
|
|
182
|
+
name: "\u58A8\u591C",
|
|
183
|
+
dark: true,
|
|
184
|
+
vars: {
|
|
185
|
+
"--ew-ink": "#e8e4dd",
|
|
186
|
+
"--ew-ink-soft": "#c8c1b6",
|
|
187
|
+
"--ew-muted": "#7a7267",
|
|
188
|
+
"--ew-on-accent": "#12211c",
|
|
189
|
+
"--ew-paper": "#18191d",
|
|
190
|
+
"--ew-card": "#212329",
|
|
191
|
+
"--ew-fill": "#282b33",
|
|
192
|
+
"--ew-fill-strong": "#33363f",
|
|
193
|
+
"--ew-line": "#2f2d30",
|
|
194
|
+
"--ew-line-strong": "#3d3a3f",
|
|
195
|
+
"--ew-accent": "#6bb9a1",
|
|
196
|
+
"--ew-accent-strong": "#4d947d",
|
|
197
|
+
"--ew-accent-soft": "#1d3a33",
|
|
198
|
+
"--ew-ok": "#6bb98f",
|
|
199
|
+
"--ew-ok-soft": "#1c3329",
|
|
200
|
+
"--ew-warn": "#d7a44a",
|
|
201
|
+
"--ew-warn-soft": "#3a2f1a",
|
|
202
|
+
"--ew-danger": "#e0715f",
|
|
203
|
+
"--ew-danger-strong": "#c25a4a",
|
|
204
|
+
"--ew-danger-soft": "#3b201d"
|
|
205
|
+
}
|
|
206
|
+
},
|
|
207
|
+
{
|
|
208
|
+
id: "mint",
|
|
209
|
+
name: "\u8584\u8377",
|
|
210
|
+
dark: false,
|
|
211
|
+
vars: {
|
|
212
|
+
"--ew-ink": "#1d3027",
|
|
213
|
+
"--ew-ink-soft": "#3b5a4d",
|
|
214
|
+
"--ew-muted": "#6c8076",
|
|
215
|
+
"--ew-on-accent": "#ffffff",
|
|
216
|
+
"--ew-paper": "#f2faf5",
|
|
217
|
+
"--ew-card": "#ffffff",
|
|
218
|
+
"--ew-fill": "#e9f5ef",
|
|
219
|
+
"--ew-fill-strong": "#d8ebe1",
|
|
220
|
+
"--ew-line": "#d8e8e0",
|
|
221
|
+
"--ew-line-strong": "#c2d9cd",
|
|
222
|
+
"--ew-accent": "#2d8f73",
|
|
223
|
+
"--ew-accent-strong": "#1f6d56",
|
|
224
|
+
"--ew-accent-soft": "#d8f0e6",
|
|
225
|
+
"--ew-ok": "#2f7d5c",
|
|
226
|
+
"--ew-ok-soft": "#e0f2e8",
|
|
227
|
+
"--ew-warn": "#a9761d",
|
|
228
|
+
"--ew-warn-soft": "#fbf0d9",
|
|
229
|
+
"--ew-danger": "#b3382c",
|
|
230
|
+
"--ew-danger-strong": "#93291f",
|
|
231
|
+
"--ew-danger-soft": "#fbe7e4"
|
|
232
|
+
}
|
|
233
|
+
},
|
|
234
|
+
{
|
|
235
|
+
id: "sakura",
|
|
236
|
+
name: "\u6A31\u7C89",
|
|
237
|
+
dark: false,
|
|
238
|
+
vars: {
|
|
239
|
+
"--ew-ink": "#3a2b33",
|
|
240
|
+
"--ew-ink-soft": "#5d4853",
|
|
241
|
+
"--ew-muted": "#8c7680",
|
|
242
|
+
"--ew-on-accent": "#ffffff",
|
|
243
|
+
"--ew-paper": "#fff5f7",
|
|
244
|
+
"--ew-card": "#ffffff",
|
|
245
|
+
"--ew-fill": "#fbeef2",
|
|
246
|
+
"--ew-fill-strong": "#f7dfe7",
|
|
247
|
+
"--ew-line": "#f0dde4",
|
|
248
|
+
"--ew-line-strong": "#e3cbd4",
|
|
249
|
+
"--ew-accent": "#c96286",
|
|
250
|
+
"--ew-accent-strong": "#a24669",
|
|
251
|
+
"--ew-accent-soft": "#f7dfe7",
|
|
252
|
+
"--ew-ok": "#2f7d5c",
|
|
253
|
+
"--ew-ok-soft": "#e4f1ea",
|
|
254
|
+
"--ew-warn": "#a9761d",
|
|
255
|
+
"--ew-warn-soft": "#fbf0d9",
|
|
256
|
+
"--ew-danger": "#b3382c",
|
|
257
|
+
"--ew-danger-strong": "#93291f",
|
|
258
|
+
"--ew-danger-soft": "#fbe7e4"
|
|
259
|
+
}
|
|
260
|
+
},
|
|
261
|
+
{
|
|
262
|
+
id: "sky",
|
|
263
|
+
name: "\u6674\u7A7A",
|
|
264
|
+
dark: false,
|
|
265
|
+
vars: {
|
|
266
|
+
"--ew-ink": "#1e2b3a",
|
|
267
|
+
"--ew-ink-soft": "#3a4a5c",
|
|
268
|
+
"--ew-muted": "#6d7c8d",
|
|
269
|
+
"--ew-on-accent": "#ffffff",
|
|
270
|
+
"--ew-paper": "#f5f9fd",
|
|
271
|
+
"--ew-card": "#ffffff",
|
|
272
|
+
"--ew-fill": "#edf4fb",
|
|
273
|
+
"--ew-fill-strong": "#dde9f6",
|
|
274
|
+
"--ew-line": "#d9e2ec",
|
|
275
|
+
"--ew-line-strong": "#c5d2e0",
|
|
276
|
+
"--ew-accent": "#2e6fb4",
|
|
277
|
+
"--ew-accent-strong": "#1f558f",
|
|
278
|
+
"--ew-accent-soft": "#d6e6f6",
|
|
279
|
+
"--ew-ok": "#2f7d5c",
|
|
280
|
+
"--ew-ok-soft": "#e4f1ea",
|
|
281
|
+
"--ew-warn": "#a9761d",
|
|
282
|
+
"--ew-warn-soft": "#fbf0d9",
|
|
283
|
+
"--ew-danger": "#b3382c",
|
|
284
|
+
"--ew-danger-strong": "#93291f",
|
|
285
|
+
"--ew-danger-soft": "#fbe7e4"
|
|
286
|
+
}
|
|
287
|
+
}
|
|
288
|
+
];
|
|
289
|
+
var THEME_IDS = PRESET_THEMES.map((theme) => theme.id);
|
|
290
|
+
var PRESET_MAP = new Map(PRESET_THEMES.map((theme) => [theme.id, theme]));
|
|
291
|
+
function getPresetTheme(id) {
|
|
292
|
+
return PRESET_MAP.get(id) ?? PRESET_MAP.get(DEFAULT_THEME_ID);
|
|
293
|
+
}
|
|
294
|
+
function isPresetTheme(id) {
|
|
295
|
+
return PRESET_MAP.has(id);
|
|
296
|
+
}
|
|
297
|
+
var ThemeContext = createContext();
|
|
298
|
+
function useTheme() {
|
|
299
|
+
const ctx = useContext(ThemeContext);
|
|
300
|
+
if (!ctx) {
|
|
301
|
+
throw new Error("[ew-solid-ui] useTheme() \u5FC5\u987B\u5728 <ThemeProvider> \u5185\u90E8\u4F7F\u7528");
|
|
302
|
+
}
|
|
303
|
+
return ctx;
|
|
304
|
+
}
|
|
305
|
+
|
|
306
|
+
// src/theme/provider.tsx
|
|
307
|
+
var DEFAULT_STORAGE_KEY = "ew-ui-theme";
|
|
308
|
+
function resolveTarget(target) {
|
|
309
|
+
if (typeof target === "function") return target();
|
|
310
|
+
if (target) return target;
|
|
311
|
+
return typeof document === "undefined" ? void 0 : document.documentElement;
|
|
312
|
+
}
|
|
313
|
+
function applyThemeAttribute(id, target) {
|
|
314
|
+
const el = resolveTarget(target);
|
|
315
|
+
if (!el) return;
|
|
316
|
+
const theme = getPresetTheme(id);
|
|
317
|
+
el.setAttribute("data-theme", theme.id);
|
|
318
|
+
if (theme.dark) el.setAttribute("data-ew-dark", "");
|
|
319
|
+
else el.removeAttribute("data-ew-dark");
|
|
320
|
+
}
|
|
321
|
+
function setCssVar(name, value, target) {
|
|
322
|
+
const el = target ?? resolveTarget(void 0);
|
|
323
|
+
el?.style.setProperty(name, value);
|
|
324
|
+
}
|
|
325
|
+
function setCssVars(vars, target) {
|
|
326
|
+
for (const [name, value] of Object.entries(vars)) {
|
|
327
|
+
if (value !== void 0) setCssVar(name, value, target);
|
|
328
|
+
}
|
|
329
|
+
}
|
|
330
|
+
function removeCssVar(name, target) {
|
|
331
|
+
const el = target ?? resolveTarget(void 0);
|
|
332
|
+
el?.style.removeProperty(name);
|
|
333
|
+
}
|
|
334
|
+
function ThemeProvider(props) {
|
|
335
|
+
const storageKey = () => props.storageKey ?? DEFAULT_STORAGE_KEY;
|
|
336
|
+
const persist = () => props.persist !== false;
|
|
337
|
+
const [, setStoredTheme, storage] = useStorage(storageKey(), DEFAULT_THEME_ID, {
|
|
338
|
+
parse: "auto"
|
|
339
|
+
});
|
|
340
|
+
const initialTheme = () => {
|
|
341
|
+
if (props.defaultTheme) return props.defaultTheme;
|
|
342
|
+
if (persist()) return storage.manager.getValue() || DEFAULT_THEME_ID;
|
|
343
|
+
return DEFAULT_THEME_ID;
|
|
344
|
+
};
|
|
345
|
+
const [themeId, setThemeId] = createSignal(initialTheme());
|
|
346
|
+
const theme = createMemo(() => getPresetTheme(themeId()));
|
|
347
|
+
const setTheme = (id) => {
|
|
348
|
+
const next = getPresetTheme(id).id;
|
|
349
|
+
setThemeId(next);
|
|
350
|
+
applyThemeAttribute(next, props.target);
|
|
351
|
+
if (persist()) setStoredTheme(next);
|
|
352
|
+
};
|
|
353
|
+
const resetTheme = () => {
|
|
354
|
+
setThemeId(DEFAULT_THEME_ID);
|
|
355
|
+
applyThemeAttribute(DEFAULT_THEME_ID, props.target);
|
|
356
|
+
if (persist()) storage.remove();
|
|
357
|
+
};
|
|
358
|
+
onMount(() => applyThemeAttribute(themeId(), props.target));
|
|
359
|
+
const value = {
|
|
360
|
+
themeId,
|
|
361
|
+
theme,
|
|
362
|
+
themes: PRESET_THEMES,
|
|
363
|
+
setTheme,
|
|
364
|
+
resetTheme
|
|
365
|
+
};
|
|
366
|
+
return createComponent(ThemeContext.Provider, {
|
|
367
|
+
value,
|
|
368
|
+
get children() {
|
|
369
|
+
return props.children;
|
|
370
|
+
}
|
|
371
|
+
});
|
|
372
|
+
}
|
|
373
|
+
|
|
374
|
+
export { DEFAULT_THEME_ID, PRESET_THEMES, THEME_IDS, ThemeContext, ThemeProvider, applyThemeAttribute, cssVarValue, cssVars, designTokens, getPresetTheme, isPresetTheme, removeCssVar, setCssVar, setCssVars, useTheme };
|
|
375
|
+
//# sourceMappingURL=index.mjs.map
|
|
376
|
+
//# sourceMappingURL=index.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/theme/tokens.ts","../src/theme/themes.ts","../src/theme/useTheme.ts","../src/theme/provider.tsx"],"names":["DEFAULT_STORAGE_KEY","resolveTarget","target","document","undefined","documentElement","applyThemeAttribute","id","el","theme","getPresetTheme","setAttribute","dark","removeAttribute","setCssVar","name","value","style","setProperty","setCssVars","vars","Object","entries","removeCssVar","removeProperty","ThemeProvider","props","storageKey","persist","setStoredTheme","storage","useStorage","DEFAULT_THEME_ID","parse","initialTheme","defaultTheme","manager","getValue","themeId","setThemeId","createSignal","createMemo","setTheme","next","resetTheme","remove","onMount","themes","PRESET_THEMES","_$createComponent","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,CAAWP,gBAAgB,CAAA;AAC3B1B,IAAAA,mBAAAA,CAAoB0B,gBAAAA,EAAkBN,MAAMxB,MAAM,CAAA;AAClD,IAAA,IAAI0B,OAAAA,EAAQ,EAAGE,OAAAA,CAAQe,MAAAA,EAAO;AAChC,EAAA,CAAA;AAEAC,EAAAA,OAAAA,CAAQ,MAAMxC,mBAAAA,CAAoBgC,OAAAA,EAAQ,EAAGZ,KAAAA,CAAMxB,MAAM,CAAC,CAAA;AAE1D,EAAA,MAAMc,KAAAA,GAA2B;AAC/BsB,IAAAA,OAAAA;AACA7B,IAAAA,KAAAA;IACAsC,MAAAA,EAAQC,aAAAA;AACRN,IAAAA,QAAAA;AACAE,IAAAA;AACF,GAAA;AAEA,EAAA,OAAAK,eAAAA,CAAQC,aAAaC,QAAAA,EAAQ;AAACnC,IAAAA,KAAAA;AAAY,IAAA,IAAAoC,QAAAA,GAAA;AAAA,MAAA,OAAG1B,KAAAA,CAAM0B,QAAAA;AAAQ,IAAA;GAAA,CAAA;AAC7D","file":"index.mjs","sourcesContent":["/**\n * 设计令牌:CSS 变量名的唯一来源。\n * 组件样式只引用这些变量,主题切换只改变量值。\n */\n\nexport const designTokens = {\n /* 字体 */\n fontSans: '--ew-font-sans',\n fontSerif: '--ew-font-serif',\n fontSize: '--ew-font-size',\n lineHeight: '--ew-line-height',\n\n /* 文字 */\n ink: '--ew-ink',\n inkSoft: '--ew-ink-soft',\n muted: '--ew-muted',\n onAccent: '--ew-on-accent',\n\n /* 背景 */\n paper: '--ew-paper',\n card: '--ew-card',\n fill: '--ew-fill',\n fillStrong: '--ew-fill-strong',\n\n /* 描边 */\n line: '--ew-line',\n lineStrong: '--ew-line-strong',\n\n /* 强调色 */\n accent: '--ew-accent',\n accentStrong: '--ew-accent-strong',\n accentSoft: '--ew-accent-soft',\n\n /* 语义色 */\n ok: '--ew-ok',\n okSoft: '--ew-ok-soft',\n warn: '--ew-warn',\n warnSoft: '--ew-warn-soft',\n danger: '--ew-danger',\n dangerStrong: '--ew-danger-strong',\n dangerSoft: '--ew-danger-soft',\n\n /* 遮罩 */\n mask: '--ew-mask',\n\n /* 圆角 */\n radiusSm: '--ew-radius-sm',\n radiusMd: '--ew-radius-md',\n radiusLg: '--ew-radius-lg',\n radiusFull: '--ew-radius-full',\n\n /* 阴影 */\n shadowSm: '--ew-shadow-sm',\n shadowMd: '--ew-shadow-md',\n shadowLg: '--ew-shadow-lg',\n\n /* 控件高度 */\n controlSm: '--ew-control-sm',\n controlMd: '--ew-control-md',\n controlLg: '--ew-control-lg',\n\n /* 层级 */\n zPopover: '--ew-z-popover',\n zModal: '--ew-z-modal',\n zToast: '--ew-z-toast',\n} as const\n\n/** 令牌语义名 */\nexport type DesignToken = keyof typeof designTokens\n\n/** CSS 变量名,形如 `--ew-accent` */\nexport type CssVar = (typeof designTokens)[DesignToken]\n\n/** 全部 CSS 变量名 */\nexport const cssVars = Object.values(designTokens) as CssVar[]\n\n/** 取令牌对应的 var() 表达式,例如 cssVarValue('accent', '#fff') */\nexport function cssVarValue(token: DesignToken, fallback?: string): string {\n return fallback ? `var(${designTokens[token]}, ${fallback})` : `var(${designTokens[token]})`\n}\n","import type { DesignToken, CssVar } from './tokens'\n\nexport type { DesignToken, CssVar }\n\nexport interface Theme {\n id: string\n name: string\n /** 深色主题标记,会同步写到 data-ew-dark 属性上 */\n dark: boolean\n vars: Partial<Record<CssVar, string>>\n}\n\nexport const DEFAULT_THEME_ID = 'classic'\n\n/** 与 styles/tokens.css 的 :root 默认值保持一致 */\nexport const PRESET_THEMES: Theme[] = [\n {\n id: 'classic',\n name: '纸韵',\n dark: false,\n vars: {\n '--ew-ink': '#26221e',\n '--ew-ink-soft': '#4a443e',\n '--ew-muted': '#837a70',\n '--ew-on-accent': '#fffdf8',\n '--ew-paper': '#f6f2ea',\n '--ew-card': '#fffdf8',\n '--ew-fill': '#f2ece0',\n '--ew-fill-strong': '#e7e1d6',\n '--ew-line': '#e7e1d6',\n '--ew-line-strong': '#d8cfc0',\n '--ew-accent': '#9a5b33',\n '--ew-accent-strong': '#7d4523',\n '--ew-accent-soft': '#f3e6da',\n '--ew-ok': '#2f7d5c',\n '--ew-ok-soft': '#e4f1ea',\n '--ew-warn': '#a9761d',\n '--ew-warn-soft': '#fbf0d9',\n '--ew-danger': '#b3382c',\n '--ew-danger-strong': '#93291f',\n '--ew-danger-soft': '#fbe7e4',\n },\n },\n {\n id: 'ink',\n name: '墨夜',\n dark: true,\n vars: {\n '--ew-ink': '#e8e4dd',\n '--ew-ink-soft': '#c8c1b6',\n '--ew-muted': '#7a7267',\n '--ew-on-accent': '#12211c',\n '--ew-paper': '#18191d',\n '--ew-card': '#212329',\n '--ew-fill': '#282b33',\n '--ew-fill-strong': '#33363f',\n '--ew-line': '#2f2d30',\n '--ew-line-strong': '#3d3a3f',\n '--ew-accent': '#6bb9a1',\n '--ew-accent-strong': '#4d947d',\n '--ew-accent-soft': '#1d3a33',\n '--ew-ok': '#6bb98f',\n '--ew-ok-soft': '#1c3329',\n '--ew-warn': '#d7a44a',\n '--ew-warn-soft': '#3a2f1a',\n '--ew-danger': '#e0715f',\n '--ew-danger-strong': '#c25a4a',\n '--ew-danger-soft': '#3b201d',\n },\n },\n {\n id: 'mint',\n name: '薄荷',\n dark: false,\n vars: {\n '--ew-ink': '#1d3027',\n '--ew-ink-soft': '#3b5a4d',\n '--ew-muted': '#6c8076',\n '--ew-on-accent': '#ffffff',\n '--ew-paper': '#f2faf5',\n '--ew-card': '#ffffff',\n '--ew-fill': '#e9f5ef',\n '--ew-fill-strong': '#d8ebe1',\n '--ew-line': '#d8e8e0',\n '--ew-line-strong': '#c2d9cd',\n '--ew-accent': '#2d8f73',\n '--ew-accent-strong': '#1f6d56',\n '--ew-accent-soft': '#d8f0e6',\n '--ew-ok': '#2f7d5c',\n '--ew-ok-soft': '#e0f2e8',\n '--ew-warn': '#a9761d',\n '--ew-warn-soft': '#fbf0d9',\n '--ew-danger': '#b3382c',\n '--ew-danger-strong': '#93291f',\n '--ew-danger-soft': '#fbe7e4',\n },\n },\n {\n id: 'sakura',\n name: '樱粉',\n dark: false,\n vars: {\n '--ew-ink': '#3a2b33',\n '--ew-ink-soft': '#5d4853',\n '--ew-muted': '#8c7680',\n '--ew-on-accent': '#ffffff',\n '--ew-paper': '#fff5f7',\n '--ew-card': '#ffffff',\n '--ew-fill': '#fbeef2',\n '--ew-fill-strong': '#f7dfe7',\n '--ew-line': '#f0dde4',\n '--ew-line-strong': '#e3cbd4',\n '--ew-accent': '#c96286',\n '--ew-accent-strong': '#a24669',\n '--ew-accent-soft': '#f7dfe7',\n '--ew-ok': '#2f7d5c',\n '--ew-ok-soft': '#e4f1ea',\n '--ew-warn': '#a9761d',\n '--ew-warn-soft': '#fbf0d9',\n '--ew-danger': '#b3382c',\n '--ew-danger-strong': '#93291f',\n '--ew-danger-soft': '#fbe7e4',\n },\n },\n {\n id: 'sky',\n name: '晴空',\n dark: false,\n vars: {\n '--ew-ink': '#1e2b3a',\n '--ew-ink-soft': '#3a4a5c',\n '--ew-muted': '#6d7c8d',\n '--ew-on-accent': '#ffffff',\n '--ew-paper': '#f5f9fd',\n '--ew-card': '#ffffff',\n '--ew-fill': '#edf4fb',\n '--ew-fill-strong': '#dde9f6',\n '--ew-line': '#d9e2ec',\n '--ew-line-strong': '#c5d2e0',\n '--ew-accent': '#2e6fb4',\n '--ew-accent-strong': '#1f558f',\n '--ew-accent-soft': '#d6e6f6',\n '--ew-ok': '#2f7d5c',\n '--ew-ok-soft': '#e4f1ea',\n '--ew-warn': '#a9761d',\n '--ew-warn-soft': '#fbf0d9',\n '--ew-danger': '#b3382c',\n '--ew-danger-strong': '#93291f',\n '--ew-danger-soft': '#fbe7e4',\n },\n },\n]\n\nexport const THEME_IDS = PRESET_THEMES.map(theme => theme.id)\n\nconst PRESET_MAP = new Map(PRESET_THEMES.map(theme => [theme.id, theme]))\n\n/** 按 id 取预设主题,找不到时回退到默认主题 */\nexport function getPresetTheme(id: string): Theme {\n return PRESET_MAP.get(id) ?? PRESET_MAP.get(DEFAULT_THEME_ID)!\n}\n\nexport function isPresetTheme(id: string): boolean {\n return PRESET_MAP.has(id)\n}\n","import { createContext, useContext, type Accessor } from 'solid-js'\nimport type { Theme } from './themes'\n\nexport interface ThemeContextValue {\n /** 当前主题 id */\n themeId: Accessor<string>\n /** 当前主题定义 */\n theme: Accessor<Theme>\n /** 全部预设主题 */\n themes: readonly Theme[]\n /** 切换主题并持久化 */\n setTheme: (id: string) => void\n /** 恢复默认主题并清除持久化 */\n resetTheme: () => void\n}\n\nexport const ThemeContext = createContext<ThemeContextValue>()\n\n/**\n * 读取当前主题上下文。\n * 必须在 <ThemeProvider> 内部使用,否则抛出明确错误,避免静默失效。\n */\nexport function useTheme(): ThemeContextValue {\n const ctx = useContext(ThemeContext)\n if (!ctx) {\n throw new Error('[ew-solid-ui] useTheme() 必须在 <ThemeProvider> 内部使用')\n }\n return ctx\n}\n","import { createMemo, createSignal, onMount, type JSX } from 'solid-js'\nimport { useStorage } from 'ew-responsive-store/solid'\nimport type { CssVar } from './tokens'\nimport { DEFAULT_THEME_ID, getPresetTheme, PRESET_THEMES } from './themes'\nimport { ThemeContext, type ThemeContextValue } from './useTheme'\n\nconst DEFAULT_STORAGE_KEY = 'ew-ui-theme'\n\nexport interface ThemeProviderProps {\n children: JSX.Element\n /** 初始主题 id,优先级最高;不传则读 localStorage,再回退到 classic */\n defaultTheme?: string\n /** localStorage key,默认 ew-ui-theme(避免多应用共用组件库时串号) */\n storageKey?: string\n /** 主题属性写到的元素,默认 document.documentElement */\n target?: HTMLElement | (() => HTMLElement | undefined)\n /** 是否持久化到 localStorage,默认 true */\n persist?: boolean\n}\n\nfunction resolveTarget(target: ThemeProviderProps['target']): HTMLElement | undefined {\n if (typeof target === 'function') return target()\n if (target) return target\n return typeof document === 'undefined' ? undefined : document.documentElement\n}\n\n/** 把主题应用到目标元素:只切 data-theme / data-ew-dark 两个属性 */\nexport function applyThemeAttribute(id: string, target?: ThemeProviderProps['target']): void {\n const el = resolveTarget(target)\n if (!el) return\n const theme = getPresetTheme(id)\n el.setAttribute('data-theme', theme.id)\n if (theme.dark) el.setAttribute('data-ew-dark', '')\n else el.removeAttribute('data-ew-dark')\n}\n\n/** 运行时覆写单个 CSS 变量(自定义主题的高级用法) */\nexport function setCssVar(name: CssVar, value: string, target?: HTMLElement): void {\n const el = target ?? resolveTarget(undefined)\n el?.style.setProperty(name, value)\n}\n\n/** 批量覆写 CSS 变量 */\nexport function setCssVars(vars: Partial<Record<CssVar, string>>, target?: HTMLElement): void {\n for (const [name, value] of Object.entries(vars)) {\n if (value !== undefined) setCssVar(name as CssVar, value, target)\n }\n}\n\n/** 移除运行时覆写的 CSS 变量,回落到主题里的值 */\nexport function removeCssVar(name: CssVar, target?: HTMLElement): void {\n const el = target ?? resolveTarget(undefined)\n el?.style.removeProperty(name)\n}\n\n/**\n * 主题容器:只负责给目标元素加 data-theme 属性,\n * 变量值的覆写由 styles/themes.css 完成,组件选择器零改动。\n */\nexport function ThemeProvider(props: ThemeProviderProps) {\n const storageKey = () => props.storageKey ?? DEFAULT_STORAGE_KEY\n const persist = () => props.persist !== false\n // Solid 适配器返回 [信号, setter, actions];读初值走 actions.manager,避免依赖其失真的元组类型\n const [, setStoredTheme, storage] = useStorage<string>(storageKey(), DEFAULT_THEME_ID, {\n parse: 'auto',\n })\n\n const initialTheme = (): string => {\n if (props.defaultTheme) return props.defaultTheme\n if (persist()) return storage.manager.getValue() || DEFAULT_THEME_ID\n return DEFAULT_THEME_ID\n }\n\n const [themeId, setThemeId] = createSignal(initialTheme())\n const theme = createMemo(() => getPresetTheme(themeId()))\n\n const setTheme = (id: string) => {\n const next = getPresetTheme(id).id\n setThemeId(next)\n applyThemeAttribute(next, props.target)\n if (persist()) setStoredTheme(next)\n }\n\n const resetTheme = () => {\n setThemeId(DEFAULT_THEME_ID)\n applyThemeAttribute(DEFAULT_THEME_ID, props.target)\n if (persist()) storage.remove()\n }\n\n onMount(() => applyThemeAttribute(themeId(), props.target))\n\n const value: ThemeContextValue = {\n themeId,\n theme,\n themes: PRESET_THEMES,\n setTheme,\n resetTheme,\n }\n\n return <ThemeContext.Provider value={value}>{props.children}</ThemeContext.Provider>\n}\n"]}
|
package/dist/locale.cjs
ADDED
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var chunk6GYRY4RZ_cjs = require('./chunk-6GYRY4RZ.cjs');
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
|
|
7
|
+
Object.defineProperty(exports, "LocaleProvider", {
|
|
8
|
+
enumerable: true,
|
|
9
|
+
get: function () { return chunk6GYRY4RZ_cjs.LocaleProvider; }
|
|
10
|
+
});
|
|
11
|
+
Object.defineProperty(exports, "enUS", {
|
|
12
|
+
enumerable: true,
|
|
13
|
+
get: function () { return chunk6GYRY4RZ_cjs.enUS; }
|
|
14
|
+
});
|
|
15
|
+
Object.defineProperty(exports, "useLocale", {
|
|
16
|
+
enumerable: true,
|
|
17
|
+
get: function () { return chunk6GYRY4RZ_cjs.useLocale; }
|
|
18
|
+
});
|
|
19
|
+
Object.defineProperty(exports, "zhCN", {
|
|
20
|
+
enumerable: true,
|
|
21
|
+
get: function () { return chunk6GYRY4RZ_cjs.zhCN; }
|
|
22
|
+
});
|
|
23
|
+
//# sourceMappingURL=locale.cjs.map
|
|
24
|
+
//# sourceMappingURL=locale.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"names":[],"mappings":"","file":"locale.cjs"}
|
|
@@ -0,0 +1,232 @@
|
|
|
1
|
+
import { JSX } from 'solid-js';
|
|
2
|
+
|
|
3
|
+
/** 组件内置文案字典:所有语言包都必须实现该结构 */
|
|
4
|
+
interface LocaleMessages {
|
|
5
|
+
pagination: {
|
|
6
|
+
label: string;
|
|
7
|
+
prev: string;
|
|
8
|
+
next: string;
|
|
9
|
+
info: (total: number, current: number, totalPages: number) => string;
|
|
10
|
+
pageSize: (size: number) => string;
|
|
11
|
+
jumpTo: string;
|
|
12
|
+
page: string;
|
|
13
|
+
jump: string;
|
|
14
|
+
};
|
|
15
|
+
table: {
|
|
16
|
+
empty: string;
|
|
17
|
+
loading: string;
|
|
18
|
+
selectAll: string;
|
|
19
|
+
selectRow: string;
|
|
20
|
+
};
|
|
21
|
+
select: {
|
|
22
|
+
placeholder: string;
|
|
23
|
+
};
|
|
24
|
+
modal: {
|
|
25
|
+
close: string;
|
|
26
|
+
};
|
|
27
|
+
confirm: {
|
|
28
|
+
title: string;
|
|
29
|
+
cancel: string;
|
|
30
|
+
confirm: string;
|
|
31
|
+
/** 单按钮提示弹窗的按钮文案 */
|
|
32
|
+
ok: string;
|
|
33
|
+
infoTitle: string;
|
|
34
|
+
successTitle: string;
|
|
35
|
+
warningTitle: string;
|
|
36
|
+
errorTitle: string;
|
|
37
|
+
};
|
|
38
|
+
toast: {
|
|
39
|
+
close: string;
|
|
40
|
+
};
|
|
41
|
+
codeBlock: {
|
|
42
|
+
copy: string;
|
|
43
|
+
copied: string;
|
|
44
|
+
expand: string;
|
|
45
|
+
collapse: string;
|
|
46
|
+
};
|
|
47
|
+
typography: {
|
|
48
|
+
copy: string;
|
|
49
|
+
copied: string;
|
|
50
|
+
};
|
|
51
|
+
layout: {
|
|
52
|
+
collapse: string;
|
|
53
|
+
expand: string;
|
|
54
|
+
};
|
|
55
|
+
alert: {
|
|
56
|
+
close: string;
|
|
57
|
+
};
|
|
58
|
+
tag: {
|
|
59
|
+
close: string;
|
|
60
|
+
};
|
|
61
|
+
empty: {
|
|
62
|
+
description: string;
|
|
63
|
+
};
|
|
64
|
+
upload: {
|
|
65
|
+
text: string;
|
|
66
|
+
dragText: string;
|
|
67
|
+
hint: string;
|
|
68
|
+
remove: string;
|
|
69
|
+
};
|
|
70
|
+
cascader: {
|
|
71
|
+
placeholder: string;
|
|
72
|
+
empty: string;
|
|
73
|
+
};
|
|
74
|
+
tree: {
|
|
75
|
+
empty: string;
|
|
76
|
+
};
|
|
77
|
+
treeSelect: {
|
|
78
|
+
placeholder: string;
|
|
79
|
+
selectedPrefix: string;
|
|
80
|
+
clear: string;
|
|
81
|
+
};
|
|
82
|
+
transfer: {
|
|
83
|
+
sourceTitle: string;
|
|
84
|
+
targetTitle: string;
|
|
85
|
+
searchPlaceholder: string;
|
|
86
|
+
empty: string;
|
|
87
|
+
};
|
|
88
|
+
autoComplete: {
|
|
89
|
+
empty: string;
|
|
90
|
+
};
|
|
91
|
+
bubble: {
|
|
92
|
+
loading: string;
|
|
93
|
+
copy: string;
|
|
94
|
+
copied: string;
|
|
95
|
+
backToBottom: string;
|
|
96
|
+
};
|
|
97
|
+
sender: {
|
|
98
|
+
placeholder: string;
|
|
99
|
+
send: string;
|
|
100
|
+
cancel: string;
|
|
101
|
+
speech: string;
|
|
102
|
+
};
|
|
103
|
+
conversations: {
|
|
104
|
+
more: string;
|
|
105
|
+
};
|
|
106
|
+
welcome: {
|
|
107
|
+
title: string;
|
|
108
|
+
description: string;
|
|
109
|
+
};
|
|
110
|
+
suggestion: {
|
|
111
|
+
more: string;
|
|
112
|
+
};
|
|
113
|
+
carousel: {
|
|
114
|
+
prev: string;
|
|
115
|
+
next: string;
|
|
116
|
+
};
|
|
117
|
+
notification: {
|
|
118
|
+
close: string;
|
|
119
|
+
};
|
|
120
|
+
backTop: {
|
|
121
|
+
label: string;
|
|
122
|
+
};
|
|
123
|
+
calendar: {
|
|
124
|
+
prevYear: string;
|
|
125
|
+
nextYear: string;
|
|
126
|
+
backToMonth: string;
|
|
127
|
+
};
|
|
128
|
+
otp: {
|
|
129
|
+
label: (index: number, total: number) => string;
|
|
130
|
+
};
|
|
131
|
+
mentions: {
|
|
132
|
+
empty: string;
|
|
133
|
+
};
|
|
134
|
+
qrcode: {
|
|
135
|
+
failed: string;
|
|
136
|
+
};
|
|
137
|
+
tour: {
|
|
138
|
+
prev: string;
|
|
139
|
+
next: string;
|
|
140
|
+
finish: string;
|
|
141
|
+
step: (current: number, total: number) => string;
|
|
142
|
+
};
|
|
143
|
+
datePicker: {
|
|
144
|
+
placeholder: string;
|
|
145
|
+
clear: string;
|
|
146
|
+
clearLabel: string;
|
|
147
|
+
today: string;
|
|
148
|
+
backToDate: string;
|
|
149
|
+
prevMonth: string;
|
|
150
|
+
nextMonth: string;
|
|
151
|
+
prevYearPage: string;
|
|
152
|
+
nextYearPage: string;
|
|
153
|
+
selectYearTitle: string;
|
|
154
|
+
yearUnit: string;
|
|
155
|
+
monthUnit: string;
|
|
156
|
+
yearRange: (start: number, end: number) => string;
|
|
157
|
+
weekdays: readonly string[];
|
|
158
|
+
startDate: string;
|
|
159
|
+
endDate: string;
|
|
160
|
+
selectStart: string;
|
|
161
|
+
selectEnd: string;
|
|
162
|
+
};
|
|
163
|
+
timePicker: {
|
|
164
|
+
placeholder: string;
|
|
165
|
+
hour: string;
|
|
166
|
+
minute: string;
|
|
167
|
+
cancel: string;
|
|
168
|
+
confirm: string;
|
|
169
|
+
start: string;
|
|
170
|
+
end: string;
|
|
171
|
+
};
|
|
172
|
+
colorPicker: {
|
|
173
|
+
clear: string;
|
|
174
|
+
confirm: string;
|
|
175
|
+
};
|
|
176
|
+
image: {
|
|
177
|
+
placeholder: string;
|
|
178
|
+
preview: string;
|
|
179
|
+
close: string;
|
|
180
|
+
};
|
|
181
|
+
password: {
|
|
182
|
+
show: string;
|
|
183
|
+
hide: string;
|
|
184
|
+
/** 强度文案,下标 0-4 */
|
|
185
|
+
strength: readonly string[];
|
|
186
|
+
};
|
|
187
|
+
/** 高级组件(ew-solid-pro)文案 */
|
|
188
|
+
pro: {
|
|
189
|
+
search: string;
|
|
190
|
+
reset: string;
|
|
191
|
+
submit: string;
|
|
192
|
+
expand: string;
|
|
193
|
+
collapse: string;
|
|
194
|
+
density: string;
|
|
195
|
+
densityDefault: string;
|
|
196
|
+
densityMiddle: string;
|
|
197
|
+
densitySmall: string;
|
|
198
|
+
/** JSON Schema 表单校验与操作文案 */
|
|
199
|
+
jsonRequired: (label: string) => string;
|
|
200
|
+
jsonType: (label: string, type: string) => string;
|
|
201
|
+
jsonRange: (label: string, min?: number, max?: number) => string;
|
|
202
|
+
jsonLength: (label: string, min?: number, max?: number) => string;
|
|
203
|
+
jsonPattern: (label: string) => string;
|
|
204
|
+
jsonEmail: (label: string) => string;
|
|
205
|
+
jsonEnum: (label: string) => string;
|
|
206
|
+
jsonItems: (label: string, min?: number, max?: number) => string;
|
|
207
|
+
jsonErrors: (count: number) => string;
|
|
208
|
+
jsonAdd: string;
|
|
209
|
+
jsonRemove: string;
|
|
210
|
+
jsonMoveUp: string;
|
|
211
|
+
jsonMoveDown: string;
|
|
212
|
+
jsonEmpty: string;
|
|
213
|
+
};
|
|
214
|
+
}
|
|
215
|
+
|
|
216
|
+
interface LocaleProviderProps {
|
|
217
|
+
/** 语言包,默认 zhCN;传入 enUS 即切换英文 */
|
|
218
|
+
locale?: LocaleMessages;
|
|
219
|
+
children: JSX.Element;
|
|
220
|
+
}
|
|
221
|
+
/** 组件文案 Provider:包在应用根节点,所有组件默认走这里的语言包 */
|
|
222
|
+
declare function LocaleProvider(props: LocaleProviderProps): JSX.Element;
|
|
223
|
+
/** 读取当前语言包;未包 Provider 时返回中文默认值 */
|
|
224
|
+
declare function useLocale(): LocaleMessages;
|
|
225
|
+
|
|
226
|
+
/** 简体中文(默认) */
|
|
227
|
+
declare const zhCN: LocaleMessages;
|
|
228
|
+
|
|
229
|
+
/** English (US) */
|
|
230
|
+
declare const enUS: LocaleMessages;
|
|
231
|
+
|
|
232
|
+
export { type LocaleMessages, LocaleProvider, type LocaleProviderProps, enUS, useLocale, zhCN };
|