ew-solid-ui 0.0.3 → 0.0.5
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/CHANGELOG.md +98 -0
- package/CHANGELOG.zh-CN.md +88 -0
- package/LICENSE +21 -0
- package/README.md +255 -168
- package/README.zh-CN.md +172 -19
- package/dist/{chunk-QBU6PZA5.mjs → chunk-2K5IZ4MD.mjs} +7 -7
- package/dist/{chunk-QBU6PZA5.mjs.map → chunk-2K5IZ4MD.mjs.map} +1 -1
- package/dist/{chunk-3GQANKDR.cjs → chunk-2ZHXWV4N.cjs} +6 -6
- package/dist/{chunk-3GQANKDR.cjs.map → chunk-2ZHXWV4N.cjs.map} +1 -1
- package/dist/{chunk-HKUD3IH7.mjs → chunk-3FWQV2ZP.mjs} +4 -4
- package/dist/{chunk-HKUD3IH7.mjs.map → chunk-3FWQV2ZP.mjs.map} +1 -1
- package/dist/{chunk-5T323UWU.cjs → chunk-3IVDYU4D.cjs} +52 -50
- package/dist/chunk-3IVDYU4D.cjs.map +1 -0
- package/dist/{chunk-ARZW7H7K.mjs → chunk-3PIY65GG.mjs} +4 -4
- package/dist/{chunk-ARZW7H7K.mjs.map → chunk-3PIY65GG.mjs.map} +1 -1
- package/dist/{chunk-DJ56BXUV.cjs → chunk-3QJVSCND.cjs} +4 -4
- package/dist/{chunk-DJ56BXUV.cjs.map → chunk-3QJVSCND.cjs.map} +1 -1
- package/dist/chunk-3QRRBTE5.cjs +499 -0
- package/dist/chunk-3QRRBTE5.cjs.map +1 -0
- package/dist/{chunk-JE6WIABE.mjs → chunk-3RYY3YFP.mjs} +4 -4
- package/dist/{chunk-JE6WIABE.mjs.map → chunk-3RYY3YFP.mjs.map} +1 -1
- package/dist/chunk-42C5D2QA.mjs +336 -0
- package/dist/chunk-42C5D2QA.mjs.map +1 -0
- package/dist/{chunk-4BKZMFRR.cjs → chunk-4NX3ZQQK.cjs} +8 -8
- package/dist/{chunk-4BKZMFRR.cjs.map → chunk-4NX3ZQQK.cjs.map} +1 -1
- package/dist/{chunk-55J5ZCET.mjs → chunk-4XWLOVHO.mjs} +6 -6
- package/dist/{chunk-55J5ZCET.mjs.map → chunk-4XWLOVHO.mjs.map} +1 -1
- package/dist/{chunk-HYACN34B.mjs → chunk-5ADK6LFC.mjs} +5 -5
- package/dist/{chunk-HYACN34B.mjs.map → chunk-5ADK6LFC.mjs.map} +1 -1
- package/dist/{chunk-SPFGGUBK.cjs → chunk-5IHAKCNK.cjs} +9 -9
- package/dist/{chunk-SPFGGUBK.cjs.map → chunk-5IHAKCNK.cjs.map} +1 -1
- package/dist/{chunk-USAOVMYL.mjs → chunk-5LJZINW5.mjs} +3 -3
- package/dist/{chunk-USAOVMYL.mjs.map → chunk-5LJZINW5.mjs.map} +1 -1
- package/dist/{chunk-GV2PHC34.cjs → chunk-5XXEPTB3.cjs} +11 -11
- package/dist/{chunk-GV2PHC34.cjs.map → chunk-5XXEPTB3.cjs.map} +1 -1
- package/dist/chunk-5YPDPYA2.mjs +110 -0
- package/dist/chunk-5YPDPYA2.mjs.map +1 -0
- package/dist/chunk-627MF6NC.cjs +108 -0
- package/dist/chunk-627MF6NC.cjs.map +1 -0
- package/dist/{chunk-IIJLGXDH.mjs → chunk-7GGHJLUO.mjs} +6 -6
- package/dist/{chunk-IIJLGXDH.mjs.map → chunk-7GGHJLUO.mjs.map} +1 -1
- package/dist/{chunk-LBUMAIJA.cjs → chunk-7NCZ45O5.cjs} +14 -14
- package/dist/{chunk-LBUMAIJA.cjs.map → chunk-7NCZ45O5.cjs.map} +1 -1
- package/dist/{chunk-MT2FD7QA.mjs → chunk-7SLH2Q7E.mjs} +5 -5
- package/dist/{chunk-MT2FD7QA.mjs.map → chunk-7SLH2Q7E.mjs.map} +1 -1
- package/dist/{chunk-VQ7Y4U5O.mjs → chunk-A2GFHDUT.mjs} +5 -5
- package/dist/{chunk-VQ7Y4U5O.mjs.map → chunk-A2GFHDUT.mjs.map} +1 -1
- package/dist/{chunk-24R4GQYE.cjs → chunk-ACYN3LOT.cjs} +11 -11
- package/dist/{chunk-24R4GQYE.cjs.map → chunk-ACYN3LOT.cjs.map} +1 -1
- package/dist/{chunk-VUHAXQ6U.mjs → chunk-BJARB7SZ.mjs} +5 -5
- package/dist/{chunk-VUHAXQ6U.mjs.map → chunk-BJARB7SZ.mjs.map} +1 -1
- package/dist/{chunk-V2L24O54.cjs → chunk-CAK22BV5.cjs} +10 -10
- package/dist/{chunk-V2L24O54.cjs.map → chunk-CAK22BV5.cjs.map} +1 -1
- package/dist/{chunk-BMNEPC4Z.mjs → chunk-CKQUJRDC.mjs} +4 -4
- package/dist/{chunk-BMNEPC4Z.mjs.map → chunk-CKQUJRDC.mjs.map} +1 -1
- package/dist/{chunk-PSBLJAM6.cjs → chunk-CLOFTNND.cjs} +4 -4
- package/dist/{chunk-PSBLJAM6.cjs.map → chunk-CLOFTNND.cjs.map} +1 -1
- package/dist/{chunk-I3QNX5RR.cjs → chunk-D7T4M4RT.cjs} +30 -23
- package/dist/chunk-D7T4M4RT.cjs.map +1 -0
- package/dist/{chunk-NWQGY6VC.cjs → chunk-DJ6Y6MMJ.cjs} +38 -38
- package/dist/{chunk-NWQGY6VC.cjs.map → chunk-DJ6Y6MMJ.cjs.map} +1 -1
- package/dist/{chunk-3635TQTB.mjs → chunk-DSQ5EFVZ.mjs} +3 -3
- package/dist/{chunk-3635TQTB.mjs.map → chunk-DSQ5EFVZ.mjs.map} +1 -1
- package/dist/{chunk-CIK5AVCM.mjs → chunk-EJKGXGQV.mjs} +5 -5
- package/dist/{chunk-CIK5AVCM.mjs.map → chunk-EJKGXGQV.mjs.map} +1 -1
- package/dist/{chunk-L726RP5Y.mjs → chunk-ES7ASCP6.mjs} +6 -6
- package/dist/{chunk-L726RP5Y.mjs.map → chunk-ES7ASCP6.mjs.map} +1 -1
- package/dist/{chunk-7PF6HT3I.cjs → chunk-EWMAXIY2.cjs} +8 -8
- package/dist/{chunk-7PF6HT3I.cjs.map → chunk-EWMAXIY2.cjs.map} +1 -1
- package/dist/chunk-F2BNTU7I.mjs +493 -0
- package/dist/chunk-F2BNTU7I.mjs.map +1 -0
- package/dist/{chunk-KYWBNPTO.cjs → chunk-F6GKK36L.cjs} +13 -13
- package/dist/{chunk-KYWBNPTO.cjs.map → chunk-F6GKK36L.cjs.map} +1 -1
- package/dist/{chunk-OH36ZLZC.cjs → chunk-FB7XQIWZ.cjs} +8 -8
- package/dist/{chunk-OH36ZLZC.cjs.map → chunk-FB7XQIWZ.cjs.map} +1 -1
- package/dist/{chunk-QD6NOAJI.cjs → chunk-GBDBWUUB.cjs} +40 -2
- package/dist/chunk-GBDBWUUB.cjs.map +1 -0
- package/dist/{chunk-4S7GSXXT.cjs → chunk-GLIDLGMS.cjs} +4 -4
- package/dist/{chunk-4S7GSXXT.cjs.map → chunk-GLIDLGMS.cjs.map} +1 -1
- package/dist/{chunk-JWRMEDG2.cjs → chunk-GOWV4NT6.cjs} +210 -12
- package/dist/chunk-GOWV4NT6.cjs.map +1 -0
- package/dist/{chunk-6R776SGP.cjs → chunk-GPX7L5SA.cjs} +10 -10
- package/dist/{chunk-6R776SGP.cjs.map → chunk-GPX7L5SA.cjs.map} +1 -1
- package/dist/{chunk-HE66KFVD.cjs → chunk-GUEZAW2N.cjs} +12 -12
- package/dist/{chunk-HE66KFVD.cjs.map → chunk-GUEZAW2N.cjs.map} +1 -1
- package/dist/{chunk-GCTXGRJP.cjs → chunk-HA6FATKV.cjs} +8 -8
- package/dist/{chunk-GCTXGRJP.cjs.map → chunk-HA6FATKV.cjs.map} +1 -1
- package/dist/{chunk-V3HOHX7B.cjs → chunk-HCCKBOA7.cjs} +25 -28
- package/dist/chunk-HCCKBOA7.cjs.map +1 -0
- package/dist/{chunk-S3LHZJW5.cjs → chunk-HF3J3VFI.cjs} +11 -11
- package/dist/{chunk-S3LHZJW5.cjs.map → chunk-HF3J3VFI.cjs.map} +1 -1
- package/dist/{chunk-HUZCEDA2.cjs → chunk-HIPZYQR4.cjs} +6 -6
- package/dist/{chunk-HUZCEDA2.cjs.map → chunk-HIPZYQR4.cjs.map} +1 -1
- package/dist/{chunk-PTD3RAQ3.mjs → chunk-HK4FOTHI.mjs} +6 -6
- package/dist/{chunk-PTD3RAQ3.mjs.map → chunk-HK4FOTHI.mjs.map} +1 -1
- package/dist/{chunk-7HRQYKXI.cjs → chunk-HQZKYBID.cjs} +11 -11
- package/dist/{chunk-7HRQYKXI.cjs.map → chunk-HQZKYBID.cjs.map} +1 -1
- package/dist/{chunk-725T4WDH.cjs → chunk-HY5EVTUS.cjs} +6 -3
- package/dist/chunk-HY5EVTUS.cjs.map +1 -0
- package/dist/{chunk-EMEFKE5U.mjs → chunk-I7LR2RLG.mjs} +3 -3
- package/dist/{chunk-EMEFKE5U.mjs.map → chunk-I7LR2RLG.mjs.map} +1 -1
- package/dist/{chunk-LCJSRT5X.mjs → chunk-IO2QKZDJ.mjs} +4 -4
- package/dist/{chunk-LCJSRT5X.mjs.map → chunk-IO2QKZDJ.mjs.map} +1 -1
- package/dist/{chunk-HYFK2EVJ.mjs → chunk-IPXSHYVO.mjs} +5 -5
- package/dist/{chunk-HYFK2EVJ.mjs.map → chunk-IPXSHYVO.mjs.map} +1 -1
- package/dist/{chunk-XLIKM3FH.cjs → chunk-IWVWHR4W.cjs} +62 -44
- package/dist/chunk-IWVWHR4W.cjs.map +1 -0
- package/dist/{chunk-4KBCODZ6.cjs → chunk-J6SBGQUR.cjs} +8 -8
- package/dist/{chunk-4KBCODZ6.cjs.map → chunk-J6SBGQUR.cjs.map} +1 -1
- package/dist/{chunk-HU7QRXSP.mjs → chunk-JBBQXTRR.mjs} +62 -44
- package/dist/chunk-JBBQXTRR.mjs.map +1 -0
- package/dist/{chunk-XJKYF7CA.mjs → chunk-JF3MXCAK.mjs} +3 -5
- package/dist/chunk-JF3MXCAK.mjs.map +1 -0
- package/dist/{chunk-UWMFQORM.cjs → chunk-JOJ6J2NV.cjs} +6 -6
- package/dist/{chunk-UWMFQORM.cjs.map → chunk-JOJ6J2NV.cjs.map} +1 -1
- package/dist/{chunk-INMZQT4W.mjs → chunk-K33SV2XK.mjs} +31 -24
- package/dist/chunk-K33SV2XK.mjs.map +1 -0
- package/dist/{chunk-W5V2IOSB.mjs → chunk-KC45GTAD.mjs} +7 -7
- package/dist/{chunk-W5V2IOSB.mjs.map → chunk-KC45GTAD.mjs.map} +1 -1
- package/dist/{chunk-EUZP36HO.cjs → chunk-KH7ZM4U3.cjs} +4 -4
- package/dist/{chunk-EUZP36HO.cjs.map → chunk-KH7ZM4U3.cjs.map} +1 -1
- package/dist/chunk-KHRLUKLH.cjs +339 -0
- package/dist/chunk-KHRLUKLH.cjs.map +1 -0
- package/dist/{chunk-PVCU3MM6.mjs → chunk-KT5RD32E.mjs} +5 -5
- package/dist/{chunk-PVCU3MM6.mjs.map → chunk-KT5RD32E.mjs.map} +1 -1
- package/dist/{chunk-7SY3N6RH.mjs → chunk-LDEP3OJ7.mjs} +6 -3
- package/dist/chunk-LDEP3OJ7.mjs.map +1 -0
- package/dist/{chunk-2TGF7G5I.cjs → chunk-LLKCA724.cjs} +6 -6
- package/dist/{chunk-2TGF7G5I.cjs.map → chunk-LLKCA724.cjs.map} +1 -1
- package/dist/{chunk-INAO2UGM.cjs → chunk-LOYG4J4R.cjs} +9 -9
- package/dist/{chunk-INAO2UGM.cjs.map → chunk-LOYG4J4R.cjs.map} +1 -1
- package/dist/{chunk-YPF4CSA6.mjs → chunk-M3YPW53P.mjs} +5 -5
- package/dist/{chunk-YPF4CSA6.mjs.map → chunk-M3YPW53P.mjs.map} +1 -1
- package/dist/{chunk-RWHIPIH4.cjs → chunk-MJXDJBIK.cjs} +4 -4
- package/dist/{chunk-RWHIPIH4.cjs.map → chunk-MJXDJBIK.cjs.map} +1 -1
- package/dist/{chunk-NIFAE3RI.cjs → chunk-MNZTH7CW.cjs} +9 -9
- package/dist/{chunk-NIFAE3RI.cjs.map → chunk-MNZTH7CW.cjs.map} +1 -1
- package/dist/{chunk-TREKT6ZL.cjs → chunk-MR36QB2A.cjs} +14 -14
- package/dist/{chunk-TREKT6ZL.cjs.map → chunk-MR36QB2A.cjs.map} +1 -1
- package/dist/{chunk-MHJXXB7R.cjs → chunk-MSOFQRND.cjs} +8 -8
- package/dist/{chunk-MHJXXB7R.cjs.map → chunk-MSOFQRND.cjs.map} +1 -1
- package/dist/{chunk-3OJDSWBN.mjs → chunk-NFA6FUEP.mjs} +3 -3
- package/dist/{chunk-3OJDSWBN.mjs.map → chunk-NFA6FUEP.mjs.map} +1 -1
- package/dist/{chunk-WKLLTAUW.cjs → chunk-NN5KLKDP.cjs} +6 -6
- package/dist/{chunk-WKLLTAUW.cjs.map → chunk-NN5KLKDP.cjs.map} +1 -1
- package/dist/{chunk-2MEJMAOJ.mjs → chunk-NQU2WOQO.mjs} +5 -5
- package/dist/{chunk-2MEJMAOJ.mjs.map → chunk-NQU2WOQO.mjs.map} +1 -1
- package/dist/{chunk-WNKR77TK.cjs → chunk-NUCUDZW2.cjs} +8 -8
- package/dist/{chunk-WNKR77TK.cjs.map → chunk-NUCUDZW2.cjs.map} +1 -1
- package/dist/{chunk-7O2PCQFL.cjs → chunk-NZ5IG6V3.cjs} +8 -8
- package/dist/{chunk-7O2PCQFL.cjs.map → chunk-NZ5IG6V3.cjs.map} +1 -1
- package/dist/{chunk-5ZFVDCHS.mjs → chunk-O4DNWG6J.mjs} +3 -3
- package/dist/{chunk-5ZFVDCHS.mjs.map → chunk-O4DNWG6J.mjs.map} +1 -1
- package/dist/{chunk-LR4WHF3L.mjs → chunk-O6ZWTDKC.mjs} +3 -3
- package/dist/{chunk-LR4WHF3L.mjs.map → chunk-O6ZWTDKC.mjs.map} +1 -1
- package/dist/{chunk-X2ZXVMQE.cjs → chunk-OFS4FVTX.cjs} +10 -10
- package/dist/{chunk-X2ZXVMQE.cjs.map → chunk-OFS4FVTX.cjs.map} +1 -1
- package/dist/{chunk-FEZ33BSE.mjs → chunk-OI6FS7YX.mjs} +5 -5
- package/dist/{chunk-FEZ33BSE.mjs.map → chunk-OI6FS7YX.mjs.map} +1 -1
- package/dist/{chunk-ZUSUN6MM.mjs → chunk-OJ2KDYUY.mjs} +5 -5
- package/dist/{chunk-ZUSUN6MM.mjs.map → chunk-OJ2KDYUY.mjs.map} +1 -1
- package/dist/{chunk-GTWP3VB6.mjs → chunk-P6IZZ5BA.mjs} +5 -5
- package/dist/{chunk-GTWP3VB6.mjs.map → chunk-P6IZZ5BA.mjs.map} +1 -1
- package/dist/{chunk-JVEP3EPH.mjs → chunk-PLCNPBUX.mjs} +4 -4
- package/dist/{chunk-JVEP3EPH.mjs.map → chunk-PLCNPBUX.mjs.map} +1 -1
- package/dist/{chunk-QTGNVLI4.mjs → chunk-PXKF7K67.mjs} +3 -3
- package/dist/{chunk-QTGNVLI4.mjs.map → chunk-PXKF7K67.mjs.map} +1 -1
- package/dist/{chunk-WVKVXH4F.mjs → chunk-Q4HXXM47.mjs} +40 -2
- package/dist/chunk-Q4HXXM47.mjs.map +1 -0
- package/dist/{chunk-ON7OQAFF.mjs → chunk-QINT3UWB.mjs} +6 -6
- package/dist/{chunk-ON7OQAFF.mjs.map → chunk-QINT3UWB.mjs.map} +1 -1
- package/dist/{chunk-JGO5TEFN.mjs → chunk-QMHN5BDQ.mjs} +5 -5
- package/dist/{chunk-JGO5TEFN.mjs.map → chunk-QMHN5BDQ.mjs.map} +1 -1
- package/dist/{chunk-3AMD6B2H.cjs → chunk-RD6YQTQB.cjs} +4 -4
- package/dist/{chunk-3AMD6B2H.cjs.map → chunk-RD6YQTQB.cjs.map} +1 -1
- package/dist/{chunk-5MAYBCXV.cjs → chunk-TB4VXMMO.cjs} +4 -4
- package/dist/{chunk-5MAYBCXV.cjs.map → chunk-TB4VXMMO.cjs.map} +1 -1
- package/dist/{chunk-SP62ZMPJ.cjs → chunk-TELPNMQ5.cjs} +3 -5
- package/dist/chunk-TELPNMQ5.cjs.map +1 -0
- package/dist/{chunk-XP6O454V.mjs → chunk-TRLQRYCK.mjs} +52 -50
- package/dist/chunk-TRLQRYCK.mjs.map +1 -0
- package/dist/{chunk-HTUBX7CE.cjs → chunk-TST6BXDS.cjs} +8 -8
- package/dist/{chunk-HTUBX7CE.cjs.map → chunk-TST6BXDS.cjs.map} +1 -1
- package/dist/{chunk-UBCPWEGC.cjs → chunk-TYYH6H3W.cjs} +13 -13
- package/dist/{chunk-UBCPWEGC.cjs.map → chunk-TYYH6H3W.cjs.map} +1 -1
- package/dist/{chunk-T4V62EDP.mjs → chunk-TZAEHZ5C.mjs} +3 -3
- package/dist/{chunk-T4V62EDP.mjs.map → chunk-TZAEHZ5C.mjs.map} +1 -1
- package/dist/{chunk-A5EKXKNM.cjs → chunk-ULGTTTSV.cjs} +4 -4
- package/dist/{chunk-A5EKXKNM.cjs.map → chunk-ULGTTTSV.cjs.map} +1 -1
- package/dist/chunk-URETWK3Z.cjs +112 -0
- package/dist/chunk-URETWK3Z.cjs.map +1 -0
- package/dist/{chunk-RZA7OKVJ.mjs → chunk-VQEDRPVV.mjs} +20 -23
- package/dist/chunk-VQEDRPVV.mjs.map +1 -0
- package/dist/{chunk-7I3A6HXC.mjs → chunk-XNKI3F4R.mjs} +3 -3
- package/dist/{chunk-7I3A6HXC.mjs.map → chunk-XNKI3F4R.mjs.map} +1 -1
- package/dist/{chunk-SDG6SHKT.mjs → chunk-XSUSXF6W.mjs} +5 -5
- package/dist/{chunk-SDG6SHKT.mjs.map → chunk-XSUSXF6W.mjs.map} +1 -1
- package/dist/{chunk-ERA43MDA.cjs → chunk-Y4QZEPBB.cjs} +8 -8
- package/dist/{chunk-ERA43MDA.cjs.map → chunk-Y4QZEPBB.cjs.map} +1 -1
- package/dist/{chunk-OFGHEBQA.mjs → chunk-YFGOJUU2.mjs} +5 -5
- package/dist/{chunk-OFGHEBQA.mjs.map → chunk-YFGOJUU2.mjs.map} +1 -1
- package/dist/{chunk-TT3EAZDM.mjs → chunk-YGIPOACK.mjs} +5 -5
- package/dist/{chunk-TT3EAZDM.mjs.map → chunk-YGIPOACK.mjs.map} +1 -1
- package/dist/{chunk-3BIVVRJA.cjs → chunk-YOFJNCHI.cjs} +4 -4
- package/dist/{chunk-3BIVVRJA.cjs.map → chunk-YOFJNCHI.cjs.map} +1 -1
- package/dist/chunk-YULXEBFF.mjs +106 -0
- package/dist/chunk-YULXEBFF.mjs.map +1 -0
- package/dist/{chunk-A3PMYHDW.mjs → chunk-YVQ3H4P4.mjs} +5 -5
- package/dist/{chunk-A3PMYHDW.mjs.map → chunk-YVQ3H4P4.mjs.map} +1 -1
- package/dist/{chunk-Q6HB46RY.mjs → chunk-ZSDTY5FH.mjs} +210 -13
- package/dist/chunk-ZSDTY5FH.mjs.map +1 -0
- package/dist/{chunk-AGD6GLIA.mjs → chunk-ZW3EPFUN.mjs} +5 -5
- package/dist/{chunk-AGD6GLIA.mjs.map → chunk-ZW3EPFUN.mjs.map} +1 -1
- package/dist/components/alert.cjs +5 -5
- package/dist/components/alert.mjs +4 -4
- package/dist/components/auto-complete.cjs +6 -6
- package/dist/components/auto-complete.mjs +5 -5
- package/dist/components/auto-image.cjs +2 -2
- package/dist/components/auto-image.css +7 -28
- package/dist/components/auto-image.d.cts +3 -4
- package/dist/components/auto-image.d.ts +3 -4
- package/dist/components/auto-image.mjs +1 -1
- package/dist/components/back-top.cjs +6 -6
- package/dist/components/back-top.mjs +5 -5
- package/dist/components/breadcrumb.cjs +6 -6
- package/dist/components/breadcrumb.mjs +5 -5
- package/dist/components/bubble-list.cjs +6 -6
- package/dist/components/bubble-list.mjs +5 -5
- package/dist/components/bubble.cjs +5 -5
- package/dist/components/bubble.mjs +4 -4
- package/dist/components/button.cjs +2 -2
- package/dist/components/button.d.cts +8 -0
- package/dist/components/button.d.ts +8 -0
- package/dist/components/button.mjs +1 -1
- package/dist/components/calendar.cjs +5 -5
- package/dist/components/calendar.mjs +4 -4
- package/dist/components/carousel.cjs +5 -5
- package/dist/components/carousel.css +15 -6
- package/dist/components/carousel.mjs +4 -4
- package/dist/components/cascader.cjs +5 -5
- package/dist/components/cascader.mjs +4 -4
- package/dist/components/code-block.cjs +5 -5
- package/dist/components/code-block.mjs +4 -4
- package/dist/components/collapse.cjs +4 -3
- package/dist/components/collapse.css +22 -10
- package/dist/components/collapse.mjs +3 -2
- package/dist/components/color-picker.cjs +3 -3
- package/dist/components/color-picker.mjs +2 -2
- package/dist/components/confirm.cjs +7 -7
- package/dist/components/confirm.mjs +5 -5
- package/dist/components/conversations.cjs +7 -7
- package/dist/components/conversations.mjs +6 -6
- package/dist/components/date-picker.cjs +10 -10
- package/dist/components/date-picker.mjs +4 -4
- package/dist/components/drawer.cjs +5 -5
- package/dist/components/drawer.mjs +4 -4
- package/dist/components/dropdown.cjs +3 -2
- package/dist/components/dropdown.css +23 -11
- package/dist/components/dropdown.mjs +2 -1
- package/dist/components/empty.cjs +3 -3
- package/dist/components/empty.mjs +2 -2
- package/dist/components/field.cjs +8 -8
- package/dist/components/field.mjs +4 -4
- package/dist/components/float-button.cjs +4 -4
- package/dist/components/float-button.mjs +3 -3
- package/dist/components/icon.cjs +7 -3
- package/dist/components/icon.d.cts +55 -4
- package/dist/components/icon.d.ts +55 -4
- package/dist/components/icon.mjs +1 -1
- package/dist/components/image.cjs +4 -4
- package/dist/components/image.mjs +3 -3
- package/dist/components/input-otp.cjs +3 -3
- package/dist/components/input-otp.mjs +2 -2
- package/dist/components/layout.cjs +9 -9
- package/dist/components/layout.mjs +4 -4
- package/dist/components/list.cjs +11 -11
- package/dist/components/list.mjs +8 -8
- package/dist/components/markdown.css +153 -0
- package/dist/components/mentions.cjs +6 -6
- package/dist/components/mentions.mjs +5 -5
- package/dist/components/menu.cjs +4 -3
- package/dist/components/menu.css +21 -10
- package/dist/components/menu.d.cts +1 -1
- package/dist/components/menu.d.ts +1 -1
- package/dist/components/menu.mjs +3 -2
- package/dist/components/modal.cjs +5 -5
- package/dist/components/modal.mjs +4 -4
- package/dist/components/notification.cjs +6 -6
- package/dist/components/notification.mjs +4 -4
- package/dist/components/pagination.cjs +9 -9
- package/dist/components/pagination.mjs +6 -6
- package/dist/components/pc-mob-data.cjs +4 -4
- package/dist/components/pc-mob-data.mjs +3 -3
- package/dist/components/prompts.cjs +3 -3
- package/dist/components/prompts.mjs +2 -2
- package/dist/components/qrcode.cjs +3 -3
- package/dist/components/qrcode.mjs +2 -2
- package/dist/components/result.cjs +3 -3
- package/dist/components/result.mjs +2 -2
- package/dist/components/select.cjs +3 -3
- package/dist/components/select.mjs +2 -2
- package/dist/components/sender.cjs +6 -6
- package/dist/components/sender.mjs +5 -5
- package/dist/components/share-poster.cjs +34 -0
- package/dist/components/share-poster.cjs.map +1 -0
- package/dist/components/share-poster.css +80 -0
- package/dist/components/share-poster.d.cts +93 -0
- package/dist/components/share-poster.d.ts +93 -0
- package/dist/components/share-poster.mjs +9 -0
- package/dist/components/share-poster.mjs.map +1 -0
- package/dist/components/slider-captcha.cjs +22 -0
- package/dist/components/slider-captcha.cjs.map +1 -0
- package/dist/components/slider-captcha.css +165 -0
- package/dist/components/slider-captcha.d.cts +71 -0
- package/dist/components/slider-captcha.d.ts +71 -0
- package/dist/components/slider-captcha.mjs +9 -0
- package/dist/components/slider-captcha.mjs.map +1 -0
- package/dist/components/suggestion.cjs +4 -4
- package/dist/components/suggestion.mjs +3 -3
- package/dist/components/table.cjs +3 -3
- package/dist/components/table.mjs +2 -2
- package/dist/components/tabs.cjs +5 -4
- package/dist/components/tabs.css +32 -16
- package/dist/components/tabs.d.cts +1 -1
- package/dist/components/tabs.d.ts +1 -1
- package/dist/components/tabs.mjs +4 -3
- package/dist/components/tag.cjs +5 -5
- package/dist/components/tag.mjs +4 -4
- package/dist/components/tour.cjs +5 -5
- package/dist/components/tour.mjs +4 -4
- package/dist/components/transfer.cjs +7 -7
- package/dist/components/transfer.mjs +6 -6
- package/dist/components/tree-select.cjs +6 -6
- package/dist/components/tree-select.mjs +5 -5
- package/dist/components/tree.cjs +5 -4
- package/dist/components/tree.css +16 -2
- package/dist/components/tree.mjs +4 -3
- package/dist/components/typography.cjs +9 -9
- package/dist/components/typography.mjs +4 -4
- package/dist/components/upload.cjs +5 -5
- package/dist/components/upload.mjs +4 -4
- package/dist/components/welcome.cjs +4 -4
- package/dist/components/welcome.mjs +3 -3
- package/dist/index.cjs +480 -139
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +79 -4
- package/dist/index.d.ts +79 -4
- package/dist/index.mjs +362 -53
- package/dist/index.mjs.map +1 -1
- package/dist/locale.cjs +5 -5
- package/dist/locale.d.cts +25 -0
- package/dist/locale.d.ts +25 -0
- package/dist/locale.mjs +1 -1
- package/dist/styles/vendor/ew-auto-image.css +1 -9
- package/dist/styles.css +543 -83
- package/package.json +25 -22
- package/dist/chunk-5T323UWU.cjs.map +0 -1
- package/dist/chunk-725T4WDH.cjs.map +0 -1
- package/dist/chunk-7SY3N6RH.mjs.map +0 -1
- package/dist/chunk-HU7QRXSP.mjs.map +0 -1
- package/dist/chunk-I3QNX5RR.cjs.map +0 -1
- package/dist/chunk-I5DL6UFG.cjs +0 -104
- package/dist/chunk-I5DL6UFG.cjs.map +0 -1
- package/dist/chunk-INMZQT4W.mjs.map +0 -1
- package/dist/chunk-JWRMEDG2.cjs.map +0 -1
- package/dist/chunk-MLEHHSUK.mjs +0 -94
- package/dist/chunk-MLEHHSUK.mjs.map +0 -1
- package/dist/chunk-PTX34XFX.mjs +0 -102
- package/dist/chunk-PTX34XFX.mjs.map +0 -1
- package/dist/chunk-Q6HB46RY.mjs.map +0 -1
- package/dist/chunk-QD6NOAJI.cjs.map +0 -1
- package/dist/chunk-RZA7OKVJ.mjs.map +0 -1
- package/dist/chunk-SP62ZMPJ.cjs.map +0 -1
- package/dist/chunk-V3HOHX7B.cjs.map +0 -1
- package/dist/chunk-WVKVXH4F.mjs.map +0 -1
- package/dist/chunk-XJKYF7CA.mjs.map +0 -1
- package/dist/chunk-XLIKM3FH.cjs.map +0 -1
- package/dist/chunk-XP6O454V.mjs.map +0 -1
- package/dist/chunk-ZX7JDS6O.cjs +0 -96
- package/dist/chunk-ZX7JDS6O.cjs.map +0 -1
package/README.md
CHANGED
|
@@ -8,9 +8,9 @@
|
|
|
8
8
|
|
|
9
9
|
**English | [中文](./README.zh-CN.md)**
|
|
10
10
|
|
|
11
|
-
A complete Solid.js component library driven by plain CSS design tokens —
|
|
11
|
+
A complete Solid.js component library driven by plain CSS design tokens — 84 core components, ProComponents (`ProTable` / `ProForm` / `ProLayout` / `JsonSchemaForm`), bits micro-interactions, ECharts charts, 5 a11y-friendly themes, built-in zh/en copy, a headless hook layer and 123 bundled icons. No CSS-in-JS runtime, no business dependencies.
|
|
12
12
|
|
|
13
|
-
**Documentation
|
|
13
|
+
**[Documentation](https://eveningwater.github.io/ew-solid-ui/)** · **[Playground](https://eveningwater.github.io/ew-solid-ui/#/en/playground)** · **[Examples](https://eveningwater.github.io/ew-solid-ui/examples/)** · **[Website](https://www.eveningwater.com)**
|
|
14
14
|
|
|
15
15
|
```bash
|
|
16
16
|
pnpm add ew-solid-ui solid-js
|
|
@@ -22,134 +22,66 @@ pnpm add ew-solid-ui solid-js
|
|
|
22
22
|
- Examples page: https://eveningwater.github.io/ew-solid-ui/examples/ (local: `pnpm dev` → http://localhost:5180)
|
|
23
23
|
- My website: https://www.eveningwater.com
|
|
24
24
|
|
|
25
|
+
## Table of contents
|
|
26
|
+
|
|
27
|
+
- [Features](#features)
|
|
28
|
+
- [Packages](#packages)
|
|
29
|
+
- [Requirements](#requirements)
|
|
30
|
+
- [Install](#install)
|
|
31
|
+
- [Quick start](#quick-start)
|
|
32
|
+
- [Themes](#themes)
|
|
33
|
+
- [Internationalization](#internationalization)
|
|
34
|
+
- [Components](#components)
|
|
35
|
+
- [Icons](#icons)
|
|
36
|
+
- [Code block](#code-block)
|
|
37
|
+
- [AutoImage](#autoimage)
|
|
38
|
+
- [Headless](#headless)
|
|
39
|
+
- [ProComponents (optional package)](#procomponents-optional-package)
|
|
40
|
+
- [Charts (optional package)](#charts-optional-package)
|
|
41
|
+
- [Bits (optional package)](#bits-optional-package)
|
|
42
|
+
- [Admin solution (optional package)](#admin-solution-optional-package)
|
|
43
|
+
- [Utilities](#utilities)
|
|
44
|
+
- [ew-color-picker based components](#ew-color-picker-based-components)
|
|
45
|
+
- [Per-component imports](#per-component-imports)
|
|
46
|
+
- [Documentation & Playground](#documentation--playground)
|
|
47
|
+
- [Development](#development)
|
|
48
|
+
- [Changelog](#changelog)
|
|
49
|
+
- [Release](#release)
|
|
50
|
+
- [Contributing](#contributing)
|
|
51
|
+
- [License](#license)
|
|
52
|
+
|
|
25
53
|
## Features
|
|
26
54
|
|
|
27
55
|
- **Token-driven theming** — every component CSS rule references `var(--ew-*)`; a theme is just a set of variable values
|
|
28
|
-
- **Complete component set** —
|
|
56
|
+
- **Complete component set** — 84 core components, plus companion packages: `ew-solid-pro` (ProCard / ProDescriptions / ProTable / ProForm / ProList / ProLayout / JsonSchemaForm), `ew-solid-bits` (effects and animated backgrounds), `ew-solid-charts` (ECharts wrappers) and `ew-solid-ui-admin` (one-stop admin solution)
|
|
29
57
|
- **5 preset themes** — Classic / Ink (dark) / Mint / Sakura / Sky, switched by a single `data-theme` attribute
|
|
30
58
|
- **Built-in i18n** — `zh-CN` and `en-US` dictionaries for tables, pagination, dialogs, date panels, color picker buttons and more
|
|
31
|
-
- **
|
|
59
|
+
- **123 bundled icons** — 120 dependency-free line icons plus GitHub / Gitee / GitCode brand marks, with `size` / `color` / `spin` / `ariaLabel`
|
|
32
60
|
- **Three layers** — pure utilities → headless hooks (`useSelect`, `useModal`, `useDatePicker`, `createChat`) → styled components
|
|
33
61
|
- **No runtime styling** — plain CSS; import everything or only the components you use
|
|
34
62
|
- **Fully typed** — TypeScript everywhere with shipped declarations
|
|
35
63
|
- **Tree-shakeable** — per-component entry points such as `ew-solid-ui/components/button`
|
|
36
64
|
- **Accessible by default** — keyboard navigation, focus restore, Esc / outside-click dismissal, ARIA wiring
|
|
65
|
+
- **Composable by design** — higher-level components reuse the base ones (`Button`, `InputField`, `Checkbox`, `Icon`, `Modal`…) instead of re-implementing them
|
|
37
66
|
|
|
38
|
-
##
|
|
67
|
+
## Packages
|
|
39
68
|
|
|
40
|
-
|
|
|
41
|
-
| --- | --- |
|
|
42
|
-
| `
|
|
43
|
-
| `
|
|
44
|
-
| `
|
|
45
|
-
| `
|
|
46
|
-
| `
|
|
47
|
-
| `
|
|
48
|
-
| `Layout` | `Layout` / `Header` / `Sider` / `Content` / `Footer` shell, collapsible sider |
|
|
49
|
-
| `Alert` | Info / success / warning / error banner with description, close and action |
|
|
50
|
-
| `Tag` | Semantic tones, closable and checkable tags |
|
|
51
|
-
| `Avatar` | Image avatar with text / icon fallback, circle or square |
|
|
52
|
-
| `Empty` | Empty state with built-in line illustration and actions |
|
|
53
|
-
| `Spin` | Standalone spinner or overlay mask when wrapping content |
|
|
54
|
-
| `Skeleton` | Title / avatar / paragraph placeholders with shimmer |
|
|
55
|
-
| `Form` | `createForm` + `Form` / `FormItem`: values, rules, validation, layouts |
|
|
56
|
-
| `Radio` | `Radio` / `RadioGroup` with options or children, horizontal / vertical |
|
|
57
|
-
| `Switch` | `role=switch` toggle with sizes, loading and labels |
|
|
58
|
-
| `Slider` | Native range slider with gradient track and step |
|
|
59
|
-
| `Rate` | Star rating with half stars, clear-on-click and keyboard |
|
|
60
|
-
| `Tabs` | Line / card tabs with four positions and arrow-key navigation |
|
|
61
|
-
| `Menu` | vertical / inline / horizontal menu with submenus |
|
|
62
|
-
| `Dropdown` | Popover-based menu with click / hover trigger and danger items |
|
|
63
|
-
| `Drawer` | Four-direction sliding panel with Esc / mask close |
|
|
64
|
-
| `Popover` | Tooltip-based card overlay with title and enterable content |
|
|
65
|
-
| `Descriptions` | Grid description list with span and bordered mode |
|
|
66
|
-
| `List` | antd-style list: `dataSource` / `renderItem`, `List.Item` + `List.Item.Meta`, header/footer, grid, pagination, loading and empty |
|
|
67
|
-
| `ListItem` | Item container with `actions` and `extra`; `ListItem.Meta` for avatar/title/description |
|
|
68
|
-
| `Statistic` | Number statistic with precision, separators and prefix/suffix |
|
|
69
|
-
| `Progress` | Line / circle progress with status and sizes |
|
|
70
|
-
| `Timeline` | Timeline with colors, icons and alternate layout |
|
|
71
|
-
| `Collapse` | Collapse panels with accordion mode and disabled items |
|
|
72
|
-
| `Upload` | Click / drag upload with custom request, limits and progress |
|
|
73
|
-
| `Tree` | Expandable tree with selection, checkable cascade and indeterminate |
|
|
74
|
-
| `Cascader` | Multi-column cascading select with clear and disabled options |
|
|
75
|
-
| `TreeSelect` | Trigger + dropdown tree; single or checkable multi-select |
|
|
76
|
-
| `Transfer` | Two-panel moving list with search and select-all |
|
|
77
|
-
| `AutoComplete` | Input with filtered suggestions and keyboard navigation |
|
|
78
|
-
| `Bubble` / `BubbleList` | Chat bubbles and list: role alignment, four variants, typing, loading dots, auto scroll |
|
|
79
|
-
| `Sender` | Message input: auto-grow, Enter to send, IME safe, loading switches to stop, optional speech |
|
|
80
|
-
| `Conversations` | Conversation list with grouping, active state and Dropdown actions |
|
|
81
|
-
| `Welcome` / `Prompts` | Chat home welcome block and prompt cards |
|
|
82
|
-
| `Suggestion` | Quick-reply pills with an overflow Popover |
|
|
83
|
-
| `VideoPlayer` | Wraps `ew-video-player-pro`: progress, volume, speed, qualities, fullscreen, custom controls; lazy HLS |
|
|
84
|
-
| `AudioPlayer` | Wraps `ew-audio-player`: playlist, lyrics, cycle / once / random modes |
|
|
85
|
-
| `Segmented` | Radio-group segmented control with an equal-width sliding thumb |
|
|
86
|
-
| `Carousel` | Slide / fade / blinds / 3D transitions with seamless `loop`, autoplay, dragging and four dot positions |
|
|
87
|
-
| `Result` | Result page with semantic status or HTTP code, title, description and actions |
|
|
88
|
-
| `FloatButton` | Fixed viewport action button with optional Tooltip, built on Button |
|
|
89
|
-
| `BackTop` | Back-to-top button appearing past a scroll threshold, built on FloatButton |
|
|
90
|
-
| `Notification` | Top-right notification card stack: types, actions, key dedupe, hover pause |
|
|
91
|
-
| `Splitter` | Two-pane draggable splitter with keyboard-adjustable separator |
|
|
92
|
-
| `Affix` | Pins content past offsetTop while keeping placeholder height |
|
|
93
|
-
| `Calendar` | Month grid with a switchable month view, fullscreen layout and custom cells |
|
|
94
|
-
| `InputOTP` | Segmented code input: auto advance, backspace, paste distribution, mask |
|
|
95
|
-
| `Mentions` | Textarea @-mentions with trigger filtering, keyboard pick and Shift+Enter newline |
|
|
96
|
-
| `Anchor` | Anchor nav: scroll spy, nested items, custom scroll container |
|
|
97
|
-
| `Breadcrumb` | Hierarchy trail with links, click handlers and a custom separator |
|
|
98
|
-
| `Watermark` | Canvas tiled watermark: multi-line text / image, rotation, gap, fullscreen |
|
|
99
|
-
| `Masonry` | CSS multi-column masonry collapsing to one column on narrow screens |
|
|
100
|
-
| `QRCode` | QR codes via lazily loaded qrcode: levels, colors, margin, fallback |
|
|
101
|
-
| `Tour` | Step-by-step tour with spotlight, placement-aware panel and controlled step |
|
|
102
|
-
| `InputField` / `PasswordField` / `TextareaField` | Single-line inputs wrap `@ew-color-picker/input`; textarea stays native for auto-resize; shared shell with prefix/suffix, error and hint |
|
|
103
|
-
| `Checkbox` | Wraps `@ew-color-picker/checkbox`: tri-state (`indeterminate`), JSX label, form attributes |
|
|
104
|
-
| `ChipGroup` | Controlled chip / tab group with counts and `allowEmpty` |
|
|
105
|
-
| `StatusBadge` | Semantic badge (`default` / `muted` / `primary` / `success` / `warning` / `danger`) |
|
|
106
|
-
| `Icon` | 80 bundled 24×24 stroke icons, `currentColor`, zero dependencies |
|
|
107
|
-
| `CodeBlock` | highlight.js-based code block (tsx/css/html/json/bash/md), copy button, token-themed |
|
|
108
|
-
| `Select` | Wraps `@ew-color-picker/select`: ARIA listbox, keyboard navigation, teleported dropdown |
|
|
109
|
-
| `Tooltip` | Tooltip built on `@ew-color-picker/tooltip`: auto placement, four triggers, themed popper |
|
|
110
|
-
| `Modal` | Portaled dialog with scroll lock, focus restore, Esc / mask closing |
|
|
111
|
-
| `ConfirmHost` + `confirmDialog` | Imperative confirm dialog returning `Promise<boolean>` |
|
|
112
|
-
| `Toasts` + `toast` | Imperative toasts powered by `ew-message`: `success / error / info / warning`, click-to-close, auto dismiss |
|
|
113
|
-
| `Card` | Container with header / cover / body / actions; used by PcMobData mobile cards |
|
|
114
|
-
| `DataTable` | Desktop-only generic table with row selection, loading and empty state |
|
|
115
|
-
| `PcMobData` | Composition: DataTable on wide screens, Card list on narrow screens (`hideOnMobile`) |
|
|
116
|
-
| `Pagination` | Collapsing pagination with size changer, quick jumper, custom total and `itemRender` |
|
|
117
|
-
| `DatePicker` / `TimePicker` / `DateTimePicker` | Hand-built calendar and hour/minute panels |
|
|
118
|
-
| `DateRangePicker` | Date range: two-click selection, in-range highlighting, hover preview, year jump and bounds |
|
|
119
|
-
| `TimeRangePicker` | Time range: pick both ends in one panel; reversed values swap automatically |
|
|
120
|
-
| `DateTimeRangePicker` | Date range + time range combined, with optional time |
|
|
121
|
-
| `ColorPicker` | Wraps [ew-color-picker](https://github.com/eveningwater/ew-color-picker), fully re-themed with library tokens |
|
|
122
|
-
| `NumberInput` | Numeric input built on `@ew-color-picker/input-number`: stepping, precision, clamping, variants |
|
|
123
|
-
| `EWImage` | Lazy loading, skeleton, failure fallback, `object-fit`, click-to-preview via `ew-viewer` (zoom / rotate / flip / fullscreen) |
|
|
124
|
-
| `AutoImage` | Long-image cropping with hover zoom via `ew-auto-image` (`scale`, `direction`) |
|
|
125
|
-
|
|
126
|
-
## AutoImage
|
|
127
|
-
|
|
128
|
-
Long images (chat screenshots, comics, infographics) cropped to a fixed ratio; hovering shows the region under the cursor at full height. Wraps [`ew-auto-image`](https://eveningwater.github.io/ew-viewer/packages/auto-image.html) and re-themes the vendor class names with library tokens.
|
|
129
|
-
|
|
130
|
-
```tsx
|
|
131
|
-
import { AutoImage } from 'ew-solid-ui'
|
|
132
|
-
|
|
133
|
-
// default 16:9 crop
|
|
134
|
-
<AutoImage src="/long.png" alt="长图" />
|
|
135
|
-
|
|
136
|
-
// taller crop, hover zoom follows the vertical cursor position
|
|
137
|
-
<AutoImage src="/long.png" scale={2} direction="horizontal" />
|
|
138
|
-
```
|
|
69
|
+
| Package | What you get | Peer dependencies |
|
|
70
|
+
| --- | --- | --- |
|
|
71
|
+
| `ew-solid-ui` | 84 styled components, 5 themes, zh/en copy, headless hooks, pure utils, icon set | `solid-js` ^1.9 |
|
|
72
|
+
| `ew-solid-pro` | `ProCard` / `ProDescriptions` / `ProTable` / `ProForm` / `ProList` / `ProLayout` / `JsonSchemaForm` | `ew-solid-ui`, `solid-js` |
|
|
73
|
+
| `ew-solid-bits` | Text effects, Lottie playback, border beam and four animated backgrounds | `solid-js` (`lottie-web` optional) |
|
|
74
|
+
| `ew-solid-charts` | ECharts wrappers: line / area / bar / pie / donut / scatter | `solid-js` (`echarts` optional) |
|
|
75
|
+
| `ew-solid-ui-admin` | Admin layout, auth helpers, CRUD pages and router adapter | `ew-solid-ui`, `ew-solid-pro`, `ew-solid-bits`, `ew-solid-charts`, `solid-js` (`@solidjs/router` optional) |
|
|
76
|
+
| `create-ew-solid-ui` | One-command admin scaffold: `pnpm create ew-solid-ui` | — |
|
|
139
77
|
|
|
140
|
-
|
|
141
|
-
| --- | --- | --- | --- |
|
|
142
|
-
| `src` | `string` | — | Long image URL (required) |
|
|
143
|
-
| `scale` | `number` | `16 / 9` | Aspect ratio of the crop (not a zoom factor); preview height = width / `scale` |
|
|
144
|
-
| `direction` | `'vertical' \| 'horizontal'` | `'vertical'` | Axis followed by the hover zoom: `vertical` follows the cursor's horizontal position, `horizontal` follows the vertical position |
|
|
145
|
-
| `alt` | `string` | vendor default | Image alt text |
|
|
146
|
-
| `class` | `string` | — | Extra class on the host element |
|
|
78
|
+
`echarts`, `lottie-web` and `@solidjs/router` are optional peers: without them the rest of the library still works, and only the corresponding feature is unavailable.
|
|
147
79
|
|
|
148
|
-
|
|
80
|
+
## Requirements
|
|
149
81
|
|
|
150
|
-
-
|
|
151
|
-
-
|
|
152
|
-
-
|
|
82
|
+
- **Solid.js** `^1.9` — a peer dependency provided by the host app
|
|
83
|
+
- **Modern browsers** — ES2020, CSS custom properties, `:focus-visible`; no IE support
|
|
84
|
+
- **Node.js 18+** for local development, docs and builds
|
|
153
85
|
|
|
154
86
|
## Install
|
|
155
87
|
|
|
@@ -265,22 +197,133 @@ const ja: LocaleMessages = {
|
|
|
265
197
|
|
|
266
198
|
You can also import from `ew-solid-ui/locale` directly: `LocaleProvider`, `useLocale`, `zhCN`, `enUS`, `LocaleMessages`.
|
|
267
199
|
|
|
200
|
+
## Components
|
|
201
|
+
|
|
202
|
+
| Component | Description |
|
|
203
|
+
| --- | --- |
|
|
204
|
+
| `Button` | Wraps `@ew-color-picker/button`: variants, sizes, block, renders `<a>` when `href` is provided |
|
|
205
|
+
| `Typography` | `Text` / `Title` / `Paragraph` / `Link` atoms: semantic colors, emphasis, inline code, ellipsis, copy |
|
|
206
|
+
| `Space` | Flex + gap spacing with direction, wrap, alignment and `split` |
|
|
207
|
+
| `Divider` | Horizontal / vertical divider with dashed and labeled variants |
|
|
208
|
+
| `Flex` | Thin `display: flex` wrapper: direction, wrap, gap, align, justify |
|
|
209
|
+
| `Grid` | `Row` / `Col` 12-column grid with gutter and xs–xl breakpoints |
|
|
210
|
+
| `Layout` | `Layout` / `Header` / `Sider` / `Content` / `Footer` shell, collapsible sider |
|
|
211
|
+
| `Alert` | Info / success / warning / error banner with description, close and action |
|
|
212
|
+
| `Tag` | Semantic tones, closable and checkable tags |
|
|
213
|
+
| `Avatar` | Image avatar with text / icon fallback, circle or square |
|
|
214
|
+
| `Empty` | Empty state with built-in line illustration and actions |
|
|
215
|
+
| `Spin` | Standalone spinner or overlay mask when wrapping content |
|
|
216
|
+
| `Skeleton` | Title / avatar / paragraph placeholders with shimmer |
|
|
217
|
+
| `Form` | `createForm` + `Form` / `FormItem`: values, rules, validation, layouts |
|
|
218
|
+
| `Radio` | `Radio` / `RadioGroup` with options or children, horizontal / vertical |
|
|
219
|
+
| `Switch` | `role=switch` toggle with sizes, loading and labels |
|
|
220
|
+
| `Slider` | Native range slider with gradient track and step |
|
|
221
|
+
| `Rate` | Star rating with half stars, clear-on-click and keyboard |
|
|
222
|
+
| `Tabs` | Line / card tabs with four positions and arrow-key navigation |
|
|
223
|
+
| `Menu` | vertical / inline / horizontal menu with submenus |
|
|
224
|
+
| `Dropdown` | Popover-based menu with click / hover trigger and danger items |
|
|
225
|
+
| `Drawer` | Four-direction sliding panel with Esc / mask close |
|
|
226
|
+
| `Popover` | Tooltip-based card overlay with title and enterable content |
|
|
227
|
+
| `Descriptions` | Grid description list with span and bordered mode |
|
|
228
|
+
| `List` | antd-style list: `dataSource` / `renderItem`, `List.Item` + `List.Item.Meta`, header/footer, grid, pagination, loading and empty |
|
|
229
|
+
| `ListItem` | Item container with `actions` and `extra`; `ListItem.Meta` for avatar/title/description |
|
|
230
|
+
| `Statistic` | Number statistic with precision, separators and prefix/suffix |
|
|
231
|
+
| `Progress` | Line / circle progress with status and sizes |
|
|
232
|
+
| `Timeline` | Timeline with colors, icons and alternate layout |
|
|
233
|
+
| `Collapse` | Collapse panels with accordion mode and disabled items |
|
|
234
|
+
| `Upload` | Click / drag upload with custom request, limits and progress |
|
|
235
|
+
| `Tree` | Expandable tree with selection, checkable cascade and indeterminate |
|
|
236
|
+
| `Cascader` | Multi-column cascading select with clear and disabled options |
|
|
237
|
+
| `TreeSelect` | Trigger + dropdown tree; single or checkable multi-select |
|
|
238
|
+
| `Transfer` | Two-panel moving list with search and select-all |
|
|
239
|
+
| `AutoComplete` | Input with filtered suggestions and keyboard navigation |
|
|
240
|
+
| `Bubble` / `BubbleList` | Chat bubbles and list: role alignment, four variants, typing, loading dots, auto scroll |
|
|
241
|
+
| `Sender` | Message input: auto-grow, Enter to send, IME safe, loading switches to stop, optional speech |
|
|
242
|
+
| `Conversations` | Conversation list with grouping, active state and Dropdown actions |
|
|
243
|
+
| `Welcome` / `Prompts` | Chat home welcome block and prompt cards |
|
|
244
|
+
| `Suggestion` | Quick-reply pills with an overflow Popover |
|
|
245
|
+
| `VideoPlayer` | Wraps `ew-video-player-pro`: progress, volume, speed, qualities, fullscreen, custom controls; lazy HLS |
|
|
246
|
+
| `AudioPlayer` | Wraps `ew-audio-player`: playlist, lyrics, cycle / once / random modes |
|
|
247
|
+
| `Segmented` | Radio-group segmented control with an equal-width sliding thumb |
|
|
248
|
+
| `Carousel` | Slide / fade / blinds / 3D transitions with seamless `loop`, autoplay, dragging and four dot positions |
|
|
249
|
+
| `Result` | Result page with semantic status or HTTP code, title, description and actions |
|
|
250
|
+
| `FloatButton` | Fixed viewport action button with optional Tooltip, built on Button |
|
|
251
|
+
| `BackTop` | Back-to-top button appearing past a scroll threshold, built on FloatButton |
|
|
252
|
+
| `Notification` | Top-right notification card stack: types, actions, key dedupe, hover pause |
|
|
253
|
+
| `Splitter` | Two-pane draggable splitter with keyboard-adjustable separator |
|
|
254
|
+
| `Affix` | Pins content past offsetTop while keeping placeholder height |
|
|
255
|
+
| `Calendar` | Month grid with a switchable month view, fullscreen layout and custom cells |
|
|
256
|
+
| `InputOTP` | Segmented code input: auto advance, backspace, paste distribution, mask |
|
|
257
|
+
| `Mentions` | Textarea @-mentions with trigger filtering, keyboard pick and Shift+Enter newline |
|
|
258
|
+
| `Anchor` | Anchor nav: scroll spy, nested items, custom scroll container |
|
|
259
|
+
| `Breadcrumb` | Hierarchy trail with links, click handlers and a custom separator |
|
|
260
|
+
| `Watermark` | Canvas tiled watermark: multi-line text / image, rotation, gap, fullscreen |
|
|
261
|
+
| `Masonry` | CSS multi-column masonry collapsing to one column on narrow screens |
|
|
262
|
+
| `QRCode` | QR codes via lazily loaded qrcode: levels, colors, margin, fallback |
|
|
263
|
+
| `Tour` | Step-by-step tour with spotlight, placement-aware panel and controlled step |
|
|
264
|
+
| `InputField` / `PasswordField` / `TextareaField` | Single-line inputs wrap `@ew-color-picker/input`; textarea stays native for auto-resize; shared shell with prefix/suffix, error and hint |
|
|
265
|
+
| `Checkbox` | Wraps `@ew-color-picker/checkbox`: tri-state (`indeterminate`), JSX label, form attributes |
|
|
266
|
+
| `ChipGroup` | Controlled chip / tab group with counts and `allowEmpty` |
|
|
267
|
+
| `StatusBadge` | Semantic badge (`default` / `muted` / `primary` / `success` / `warning` / `danger`) |
|
|
268
|
+
| `Icon` | 120 bundled 24×24 line icons plus 3 brand marks, `currentColor`, zero dependencies |
|
|
269
|
+
| `CodeBlock` | highlight.js-based code block (tsx/css/html/json/bash/md), copy button, token-themed |
|
|
270
|
+
| `Markdown` | marked-based renderer where every node renderer can be replaced (images → `EWImage` preview, code → `CodeBlock` highlighting) |
|
|
271
|
+
| `Select` | Wraps `@ew-color-picker/select`: ARIA listbox, keyboard navigation, teleported dropdown |
|
|
272
|
+
| `Tooltip` | Tooltip built on `@ew-color-picker/tooltip`: auto placement, four triggers, themed popper |
|
|
273
|
+
| `Modal` | Portaled dialog with scroll lock, focus restore, Esc / mask closing |
|
|
274
|
+
| `ConfirmHost` + `confirmDialog` | Imperative confirm dialog returning `Promise<boolean>` |
|
|
275
|
+
| `Toasts` + `toast` | Imperative toasts powered by `ew-message`: `success / error / info / warning`, click-to-close, auto dismiss |
|
|
276
|
+
| `Card` | Container with header / cover / body / actions; used by PcMobData mobile cards |
|
|
277
|
+
| `DataTable` | Desktop-only generic table with row selection, loading and empty state |
|
|
278
|
+
| `PcMobData` | Composition: DataTable on wide screens, Card list on narrow screens (`hideOnMobile`) |
|
|
279
|
+
| `Pagination` | Collapsing pagination with size changer, quick jumper, custom total and `itemRender` |
|
|
280
|
+
| `DatePicker` / `TimePicker` / `DateTimePicker` | Hand-built calendar and hour/minute panels |
|
|
281
|
+
| `DateRangePicker` | Date range: two-click selection, in-range highlighting, hover preview, year jump and bounds |
|
|
282
|
+
| `TimeRangePicker` | Time range: pick both ends in one panel; reversed values swap automatically |
|
|
283
|
+
| `DateTimeRangePicker` | Date range + time range combined, with optional time |
|
|
284
|
+
| `ColorPicker` | Wraps [ew-color-picker](https://github.com/eveningwater/ew-color-picker), fully re-themed with library tokens |
|
|
285
|
+
| `NumberInput` | Numeric input built on `@ew-color-picker/input-number`: stepping, precision, clamping, variants |
|
|
286
|
+
| `EWImage` | Lazy loading, skeleton, failure fallback, `object-fit`, click-to-preview via `ew-viewer` (zoom / rotate / flip / fullscreen) |
|
|
287
|
+
| `AutoImage` | Long-image cropping with hover panning via `ew-auto-image` (`scale`) |
|
|
288
|
+
|
|
268
289
|
## Icons
|
|
269
290
|
|
|
270
291
|
```tsx
|
|
271
|
-
import { Icon, iconPaths } from 'ew-solid-ui'
|
|
292
|
+
import { Icon, iconPaths, brandIconPaths } from 'ew-solid-ui'
|
|
272
293
|
|
|
273
294
|
<Icon name="close" />
|
|
274
295
|
<Icon name="search" size="lg" />
|
|
275
296
|
<Icon name="warning" color="var(--ew-warn)" />
|
|
276
297
|
<Icon name="loading" spin />
|
|
277
298
|
<Icon name="success" ariaLabel="Done" />
|
|
299
|
+
<Icon name="github" size="lg" color="#181717" />
|
|
278
300
|
|
|
279
|
-
//
|
|
301
|
+
// Raw paths, for custom rendering
|
|
280
302
|
const paths = iconPaths['chevron-down']
|
|
281
303
|
```
|
|
282
304
|
|
|
283
|
-
|
|
305
|
+
All icons are 24×24 line icons stroked at 1.75 with `currentColor`; brand marks are filled single-path logos.
|
|
306
|
+
The full gallery lives in the docs site (`#/en/basic` → Icons), and the keys are always the source of truth:
|
|
307
|
+
|
|
308
|
+
```ts
|
|
309
|
+
Object.keys(iconPaths) // 120 line icons
|
|
310
|
+
Object.keys(brandIconPaths) // github, gitee, gitcode
|
|
311
|
+
```
|
|
312
|
+
|
|
313
|
+
| Group | Names |
|
|
314
|
+
| --- | --- |
|
|
315
|
+
| Navigation | `chevron-up/down/left/right`, `arrow-up/down/left/right`, `sort`, `menu` |
|
|
316
|
+
| Actions | `close`, `check`, `plus`, `minus`, `edit`, `trash`, `copy`, `save`*, `share`*, `undo`*, `redo`*, `refresh`, `upload`, `download`, `search`, `filter`, `pin`, `more`, `dots-vertical`* |
|
|
317
|
+
| Status & feedback | `loading`, `success`, `warning`, `error`, `info`, `help`*, `bell`, `message`, `volume`, `volume-x`* |
|
|
318
|
+
| Data & analytics | `chart`, `chart-pie`*, `dashboard`*, `activity`*, `trending-up`*, `trending-down`*, `table`*, `grid`, `list`, `layers`, `database` |
|
|
319
|
+
| Users & organization | `user`, `user-plus`*, `users`*, `building`*, `briefcase`*, `key`*, `log-in`*, `log-out`*, `shield`, `lock`, `settings` |
|
|
320
|
+
| Commerce | `credit-card`*, `wallet`*, `money`*, `shopping-cart`*, `package`*, `truck`*, `receipt`*, `gift`*, `tag` |
|
|
321
|
+
| Devices & network | `phone`*, `mobile`*, `printer`*, `wifi`*, `server`* |
|
|
322
|
+
| Media & files | `play`*, `pause`*, `image`, `file`, `folder`, `inbox`*, `archive`*, `clipboard`*, `qr-code`*, `cloud`, `history`* |
|
|
323
|
+
| Theme & color | `sun`, `moon`, `palette`, `droplet`, `contrast`, `eyedropper`, `swap` |
|
|
324
|
+
| Brand (filled) | `github`*, `gitee`*, `gitcode`* |
|
|
325
|
+
|
|
326
|
+
`*` marks the icons added in **0.0.5** (43 in total: 40 line icons + 3 brand marks); everything else shipped in 0.0.4 and earlier.
|
|
284
327
|
|
|
285
328
|
When `ariaLabel` is omitted the SVG is hidden from assistive technology; provide it for standalone meaningful icons.
|
|
286
329
|
|
|
@@ -302,6 +345,33 @@ Languages: `ts/tsx`, `js/jsx`, `css`, `html/vue/svg`, `json`, `bash`, `markdown`
|
|
|
302
345
|
escaped plain text. Colors come from `--ew-*`, so all five themes including dark work automatically.
|
|
303
346
|
`collapsible` caps the collapsed height at `maxHeight` (200px by default); the toggle label follows `LocaleProvider`.
|
|
304
347
|
|
|
348
|
+
## AutoImage
|
|
349
|
+
|
|
350
|
+
Long images (chat screenshots, comics, infographics) cropped to a fixed ratio; hovering pans the image inside the frame and a bottom hint shows the current position. Wraps [`ew-auto-image`](https://eveningwater.github.io/ew-viewer/packages/auto-image.html) and re-themes the vendor class names with library tokens.
|
|
351
|
+
|
|
352
|
+
```tsx
|
|
353
|
+
import { AutoImage } from 'ew-solid-ui'
|
|
354
|
+
|
|
355
|
+
// default 16:9 crop
|
|
356
|
+
<AutoImage src="/long.png" alt="Long image" />
|
|
357
|
+
|
|
358
|
+
// taller crop, hover pans inside the frame
|
|
359
|
+
<AutoImage src="/long.png" scale={2} />
|
|
360
|
+
```
|
|
361
|
+
|
|
362
|
+
| Prop | Type | Default | Description |
|
|
363
|
+
| --- | --- | --- | --- |
|
|
364
|
+
| `src` | `string` | — | Long image URL (required) |
|
|
365
|
+
| `scale` | `number` | `16 / 9` | Aspect ratio of the crop (not a zoom factor); preview height = width / `scale` |
|
|
366
|
+
| `alt` | `string` | vendor default | Image alt text |
|
|
367
|
+
| `class` | `string` | — | Extra class on the host element |
|
|
368
|
+
|
|
369
|
+
Notes:
|
|
370
|
+
|
|
371
|
+
- `ew-auto-image@0.0.1`'s `style.css` is missing the rules for the hover layer (`.ew-auto-image-item-show`), so it would cover the crop by default. The library hides it and lets the vendor toggle it on hover — see `src/components/auto-image/auto-image.css`.
|
|
372
|
+
- Changing `src` / `scale` / `direction` recreates the vendor instance; the wrapper `div` is the mount container, so several instances can share one container.
|
|
373
|
+
- Per-component import: `ew-solid-ui/components/auto-image.css` already includes the vendor styles.
|
|
374
|
+
|
|
305
375
|
## Headless
|
|
306
376
|
|
|
307
377
|
```tsx
|
|
@@ -343,53 +413,6 @@ await chat.send('Hello') // chunks append to the last assistant message
|
|
|
343
413
|
chat.abort() // abort, message status becomes done
|
|
344
414
|
```
|
|
345
415
|
|
|
346
|
-
## Charts (optional package)
|
|
347
|
-
|
|
348
|
-
Charts ship as a separate package so ECharts stays optional:
|
|
349
|
-
|
|
350
|
-
```bash
|
|
351
|
-
pnpm add ew-solid-charts echarts
|
|
352
|
-
```
|
|
353
|
-
|
|
354
|
-
```tsx
|
|
355
|
-
import { Chart } from 'ew-solid-charts'
|
|
356
|
-
import 'ew-solid-charts/styles.css'
|
|
357
|
-
|
|
358
|
-
<Chart
|
|
359
|
-
type="line"
|
|
360
|
-
categories={['Jan', 'Feb', 'Mar']}
|
|
361
|
-
series={[{ name: 'Visits', data: [820, 932, 901] }]}
|
|
362
|
-
height={280}
|
|
363
|
-
/>
|
|
364
|
-
```
|
|
365
|
-
|
|
366
|
-
Six types (`line` / `area` / `bar` / `pie` / `donut` / `scatter`), automatic theming from `--ew-*` tokens,
|
|
367
|
-
`loading` / `empty` states and an `options` escape hatch. `ew-solid-ui/charts` re-exports the same API when
|
|
368
|
-
`ew-solid-charts` is installed.
|
|
369
|
-
|
|
370
|
-
## Bits (optional package)
|
|
371
|
-
|
|
372
|
-
Small, dependency-free interaction effects live in their own package:
|
|
373
|
-
|
|
374
|
-
```bash
|
|
375
|
-
pnpm add ew-solid-bits
|
|
376
|
-
```
|
|
377
|
-
|
|
378
|
-
```tsx
|
|
379
|
-
import { CountUp, Marquee, ShinyText } from 'ew-solid-bits'
|
|
380
|
-
import 'ew-solid-bits/styles.css'
|
|
381
|
-
|
|
382
|
-
<ShinyText>ew-solid-ui</ShinyText>
|
|
383
|
-
<CountUp value={1280} prefix="$" />
|
|
384
|
-
<Marquee content={() => <div>...</div>} />
|
|
385
|
-
```
|
|
386
|
-
|
|
387
|
-
Includes `ShinyText`, `GradientText`, `Marquee`, `SpotlightCard`, `CountUp` and `Typewriter`,
|
|
388
|
-
plus `Lottie` playback, `BorderBeam` and four animated backgrounds: `AuroraBackground`, `DotGridBackground`,
|
|
389
|
-
`GridBeamsBackground` and `ParticleField`. Lottie uses an optional `lottie-web` peer.
|
|
390
|
-
Everything is token-driven and respects `prefers-reduced-motion`; `ew-solid-ui/bits` re-exports the
|
|
391
|
-
same API when `ew-solid-bits` is installed.
|
|
392
|
-
|
|
393
416
|
## ProComponents (optional package)
|
|
394
417
|
|
|
395
418
|
Schema-driven, heavyweight components live in their own package and reuse base components:
|
|
@@ -448,6 +471,53 @@ Supported: scalar types + `enum`, nested `object` (fieldset), `array` (add / rem
|
|
|
448
471
|
`format: email / date / textarea`, `ui:order`, `ui:widget`, `ui:placeholder`, `ui:help`,
|
|
449
472
|
`ui:options` (`addable` / `removable` / `orderable`), error summary and live validation.
|
|
450
473
|
|
|
474
|
+
## Charts (optional package)
|
|
475
|
+
|
|
476
|
+
Charts ship as a separate package so ECharts stays optional:
|
|
477
|
+
|
|
478
|
+
```bash
|
|
479
|
+
pnpm add ew-solid-charts echarts
|
|
480
|
+
```
|
|
481
|
+
|
|
482
|
+
```tsx
|
|
483
|
+
import { Chart } from 'ew-solid-charts'
|
|
484
|
+
import 'ew-solid-charts/styles.css'
|
|
485
|
+
|
|
486
|
+
<Chart
|
|
487
|
+
type="line"
|
|
488
|
+
categories={['Jan', 'Feb', 'Mar']}
|
|
489
|
+
series={[{ name: 'Visits', data: [820, 932, 901] }]}
|
|
490
|
+
height={280}
|
|
491
|
+
/>
|
|
492
|
+
```
|
|
493
|
+
|
|
494
|
+
Six types (`line` / `area` / `bar` / `pie` / `donut` / `scatter`), automatic theming from `--ew-*` tokens,
|
|
495
|
+
`loading` / `empty` states and an `options` escape hatch. `ew-solid-ui/charts` re-exports the same API when
|
|
496
|
+
`ew-solid-charts` is installed.
|
|
497
|
+
|
|
498
|
+
## Bits (optional package)
|
|
499
|
+
|
|
500
|
+
Small, dependency-free interaction effects live in their own package:
|
|
501
|
+
|
|
502
|
+
```bash
|
|
503
|
+
pnpm add ew-solid-bits
|
|
504
|
+
```
|
|
505
|
+
|
|
506
|
+
```tsx
|
|
507
|
+
import { CountUp, Marquee, ShinyText } from 'ew-solid-bits'
|
|
508
|
+
import 'ew-solid-bits/styles.css'
|
|
509
|
+
|
|
510
|
+
<ShinyText>ew-solid-ui</ShinyText>
|
|
511
|
+
<CountUp value={1280} prefix="$" />
|
|
512
|
+
<Marquee content={() => <div>...</div>} />
|
|
513
|
+
```
|
|
514
|
+
|
|
515
|
+
Includes `ShinyText`, `GradientText`, `Marquee`, `SpotlightCard`, `CountUp` and `Typewriter`,
|
|
516
|
+
plus `Lottie` playback, `BorderBeam` and four animated backgrounds: `AuroraBackground`, `DotGridBackground`,
|
|
517
|
+
`GridBeamsBackground` and `ParticleField`. Lottie uses an optional `lottie-web` peer.
|
|
518
|
+
Everything is token-driven and respects `prefers-reduced-motion`; `ew-solid-ui/bits` re-exports the
|
|
519
|
+
same API when `ew-solid-bits` is installed.
|
|
520
|
+
|
|
451
521
|
## Admin solution (optional package)
|
|
452
522
|
|
|
453
523
|
`ew-solid-ui-admin` builds a ready-to-use admin shell on top of `ew-solid-ui` and `ew-solid-pro`:
|
|
@@ -539,7 +609,9 @@ pnpm docs:dev # docs site with zh/en switch, 5 live themes, Playground (http:
|
|
|
539
609
|
pnpm docs:build # static build into docs-dist/
|
|
540
610
|
```
|
|
541
611
|
|
|
542
|
-
|
|
612
|
+
- Published site: https://eveningwater.github.io/ew-solid-ui/ (deployed by the `Deploy Docs` GitHub Actions workflow on every push to `main`)
|
|
613
|
+
- The site is a small Vite + Solid app that reuses the library itself: every component page carries live demos, props tables and copyable code
|
|
614
|
+
- The Playground offers interactive samples and embeds the online editor via `ew-iframe-editor`, preloading each sample as Solid TypeScript code
|
|
543
615
|
|
|
544
616
|
The online editor loads `ew-solid-ui` and the companion packages from npm (via esm.sh) through an import map, so publishing a new version is enough to keep its Solid template up to date.
|
|
545
617
|
|
|
@@ -549,12 +621,16 @@ The online editor loads `ew-solid-ui` and the companion packages from npm (via e
|
|
|
549
621
|
pnpm install
|
|
550
622
|
pnpm dev # examples page (http://localhost:5180)
|
|
551
623
|
pnpm docs:dev # documentation site (http://localhost:5181)
|
|
552
|
-
pnpm
|
|
553
|
-
pnpm
|
|
624
|
+
pnpm dev:admin # admin demo (http://localhost:5186)
|
|
625
|
+
pnpm typecheck # tsc --noEmit
|
|
626
|
+
pnpm test # vitest: components, hooks, utils, admin helpers
|
|
554
627
|
pnpm build # tsup output + merged styles
|
|
555
628
|
pnpm docs:build # static docs
|
|
556
629
|
```
|
|
557
630
|
|
|
631
|
+
Quality gates before a commit: `pnpm typecheck` and `pnpm test` — 117 test files / 562 cases cover the
|
|
632
|
+
component layer, the headless hooks, the pure utils and the admin helpers.
|
|
633
|
+
|
|
558
634
|
Build output:
|
|
559
635
|
|
|
560
636
|
| File | Description |
|
|
@@ -575,6 +651,7 @@ Build output:
|
|
|
575
651
|
- Class names follow BEM-like `.ew-{component}`, `.ew-{component}--{modifier}`, `.ew-{component}__{element}`
|
|
576
652
|
- Component CSS must not contain hard-coded colors — only `var(--ew-*)`
|
|
577
653
|
- Component roots do not rely on a global reset; import `ew-solid-ui/styles/reset.css` when needed
|
|
654
|
+
- Composite components compose base components (`Button`, `Checkbox`, `InputField`, `Icon`, `Modal`…) instead of re-implementing native controls; when a `Button` variant gets close, override its CSS rather than writing a raw `<button>`
|
|
578
655
|
|
|
579
656
|
## Project structure
|
|
580
657
|
|
|
@@ -588,11 +665,21 @@ src/
|
|
|
588
665
|
├── utils/ # cn / color / date pure functions
|
|
589
666
|
└── styles/ # tokens.css / themes.css / reset.css
|
|
590
667
|
└── vendor/ # ew-color-picker styles (.ewcp- prefix, generated)
|
|
668
|
+
packages/
|
|
669
|
+
├── pro-components/ # ew-solid-pro: ProTable / ProForm / ProLayout …
|
|
670
|
+
├── admin/ # ew-solid-ui-admin: layout, login, CRUD pages, router adapter
|
|
671
|
+
├── ew-solid-bits/ # ew-solid-bits: effects and animated backgrounds
|
|
672
|
+
├── ew-solid-charts/ # ew-solid-charts: ECharts wrappers
|
|
673
|
+
└── cli/ # create-ew-solid-ui: project scaffold
|
|
591
674
|
examples/ # local examples page (pnpm dev)
|
|
592
675
|
docs/ # documentation site + Playground (pnpm docs:dev)
|
|
593
676
|
scripts/ # build-css.mjs / vendor-color-picker-css.mjs / release.mjs
|
|
594
677
|
```
|
|
595
678
|
|
|
679
|
+
## Changelog
|
|
680
|
+
|
|
681
|
+
Release notes live in [CHANGELOG.md](./CHANGELOG.md) (Chinese: [CHANGELOG.zh-CN.md](./CHANGELOG.zh-CN.md)) and are also rendered on the docs site: https://eveningwater.github.io/ew-solid-ui/#/en/changelog
|
|
682
|
+
|
|
596
683
|
## Release
|
|
597
684
|
|
|
598
685
|
`package.json` always keeps the stable version; beta builds are injected temporarily and restored after publishing:
|