@expcat/tigercat-react 0.4.3 → 1.0.4
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/dist/chunk-24RUEJWB.js +293 -0
- package/dist/{chunk-WGRYO5HX.mjs → chunk-2UQC3WOI.mjs} +63 -49
- package/dist/{chunk-V5NIFF2F.mjs → chunk-2WBPUW75.mjs} +7 -7
- package/dist/{chunk-QL6UEG3U.js → chunk-2XOFRGY6.js} +16 -3
- package/dist/chunk-32PAZTVF.mjs +123 -0
- package/dist/{chunk-IGE44BIS.mjs → chunk-34DLDOGP.mjs} +105 -19
- package/dist/chunk-34VGG7AK.mjs +40 -0
- package/dist/chunk-3EB42WFR.mjs +35 -0
- package/dist/{chunk-Z7SXK2KO.js → chunk-3JGOTJZM.js} +10 -7
- package/dist/{chunk-ENSLMM3L.mjs → chunk-3KMKMAE3.mjs} +15 -10
- package/dist/{chunk-SFALTVPS.js → chunk-3USEV7EV.js} +2 -2
- package/dist/chunk-45H3JEI3.js +155 -0
- package/dist/chunk-4APNERYR.js +212 -0
- package/dist/chunk-4GV7UQJJ.js +96 -0
- package/dist/chunk-4MKMM2OI.js +112 -0
- package/dist/{chunk-XKDWDANG.js → chunk-4Q4GADHJ.js} +7 -7
- package/dist/{chunk-QM4GOQDT.js → chunk-4QJZT6QK.js} +44 -6
- package/dist/chunk-4QQZ5H4V.mjs +213 -0
- package/dist/chunk-5CGXFQND.mjs +100 -0
- package/dist/chunk-5EVHVZG5.js +119 -0
- package/dist/{chunk-LXX2ZDJN.js → chunk-5MALB34H.js} +9 -9
- package/dist/chunk-5ZYZQXEM.mjs +167 -0
- package/dist/{chunk-PEGJ2KHC.js → chunk-65VXCN5N.js} +50 -68
- package/dist/{chunk-6PXNWGR5.mjs → chunk-6744DTEB.mjs} +9 -4
- package/dist/chunk-6E7FPBRR.mjs +192 -0
- package/dist/{chunk-NQFHS4W2.mjs → chunk-6KKUJT6B.mjs} +1 -1
- package/dist/{chunk-OXT5RN55.mjs → chunk-6P3JIUSI.mjs} +3 -3
- package/dist/chunk-73BP3WQN.mjs +210 -0
- package/dist/{chunk-77PE7OFK.mjs → chunk-7MASYF4S.mjs} +1 -1
- package/dist/{chunk-VCNZEQEB.mjs → chunk-7QZ4XT2P.mjs} +6 -5
- package/dist/chunk-7YLVAZJQ.mjs +47 -0
- package/dist/{chunk-NV3JUZ3N.js → chunk-AGR3FM3V.js} +4 -4
- package/dist/{chunk-EHYSER2Z.js → chunk-AHF6JE43.js} +7 -7
- package/dist/{chunk-MWH6FCSE.js → chunk-AJQPGAYL.js} +8 -8
- package/dist/{chunk-3PV2MDST.mjs → chunk-AMOH5AMN.mjs} +8 -8
- package/dist/chunk-AOZLBASY.mjs +38 -0
- package/dist/chunk-ASALMHFI.js +34 -0
- package/dist/chunk-AUW7DCXL.js +61 -0
- package/dist/{chunk-QFYS5QIZ.mjs → chunk-AYDTXJOR.mjs} +4 -4
- package/dist/{chunk-LLHUBM6E.mjs → chunk-B3MNIAM5.mjs} +4 -4
- package/dist/chunk-B53R2U2R.mjs +86 -0
- package/dist/chunk-BALJCZ62.mjs +147 -0
- package/dist/{chunk-F24IF2QL.js → chunk-BCNKTT5C.js} +14 -9
- package/dist/{chunk-JNLX47UL.mjs → chunk-BJ2GUKPU.mjs} +74 -36
- package/dist/chunk-BKYE77F2.js +171 -0
- package/dist/chunk-BR5OSUZT.mjs +55 -0
- package/dist/chunk-BZ3AXFLG.js +149 -0
- package/dist/{chunk-SOC74QA2.js → chunk-C6WJ4GQW.js} +8 -8
- package/dist/{chunk-LXQOQJMU.js → chunk-CDT3P2ZN.js} +5 -12
- package/dist/chunk-CHH7DWIO.js +121 -0
- package/dist/{chunk-3T7L3MHX.js → chunk-CKFE2B36.js} +76 -38
- package/dist/{chunk-QNRAM3CM.js → chunk-CMGI5WHZ.js} +3 -2
- package/dist/chunk-CQGAZ5JQ.js +61 -0
- package/dist/chunk-CRSMECWE.mjs +33 -0
- package/dist/{chunk-KAWE5LQZ.js → chunk-D6BHFGTN.js} +29 -0
- package/dist/chunk-DAR2BMMV.js +150 -0
- package/dist/{chunk-OCVQ3LOT.mjs → chunk-DKT2EYVM.mjs} +3 -5
- package/dist/chunk-DZGDCRBH.mjs +30 -0
- package/dist/{chunk-S4GNTA7V.mjs → chunk-EBLAM3YP.mjs} +2 -2
- package/dist/chunk-EEF26RBA.mjs +48 -0
- package/dist/{chunk-PJCY45UP.mjs → chunk-EHU3J4B2.mjs} +1 -1
- package/dist/{chunk-RKB2VUQO.js → chunk-EOYJLBFD.js} +24 -21
- package/dist/{chunk-DTQZPZSJ.mjs → chunk-EPN7QWP6.mjs} +16 -2
- package/dist/{chunk-M46L73HR.js → chunk-ET5YJELZ.js} +14 -14
- package/dist/{chunk-NTODO3Q3.mjs → chunk-EV6KRX6F.mjs} +38 -8
- package/dist/{chunk-GB5G2CJY.js → chunk-F2OF6XZ6.js} +36 -6
- package/dist/chunk-F6KHZNRS.js +32 -0
- package/dist/{chunk-URM7QDHH.js → chunk-F7H4ALKN.js} +2 -2
- package/dist/chunk-FHE4D56E.js +188 -0
- package/dist/chunk-FNK4ZATV.js +94 -0
- package/dist/{chunk-RGFSY3S2.mjs → chunk-FPURO6QB.mjs} +16 -3
- package/dist/chunk-GBTKAKUD.mjs +300 -0
- package/dist/chunk-GOUMB34F.mjs +168 -0
- package/dist/chunk-H3NLKNR4.mjs +192 -0
- package/dist/{chunk-6W6CRBBG.mjs → chunk-HCZA4LV6.mjs} +8 -5
- package/dist/{chunk-5CLXOFRZ.mjs → chunk-HLJQZUIY.mjs} +11 -10
- package/dist/chunk-HLS4CHWX.mjs +29 -0
- package/dist/{chunk-MTL2QUM3.mjs → chunk-HSHVLIEL.mjs} +2 -2
- package/dist/{chunk-XWNVBCJA.js → chunk-HU3VDVH6.js} +14 -15
- package/dist/{chunk-SW4I4X6E.mjs → chunk-HUCBHFSL.mjs} +24 -21
- package/dist/{chunk-Q57BYUUW.js → chunk-HWWNBCFB.js} +39 -8
- package/dist/{chunk-MDZDPGRK.mjs → chunk-HZ5Z5Y2J.mjs} +29 -10
- package/dist/chunk-HZHFFVP7.mjs +63 -0
- package/dist/chunk-I3CDTF4U.js +45 -0
- package/dist/chunk-I4SKKEU3.js +151 -0
- package/dist/{chunk-RCNTRSUA.mjs → chunk-INBSKSZG.mjs} +51 -69
- package/dist/chunk-IOHPB4CF.js +148 -0
- package/dist/{chunk-QIJG42YQ.mjs → chunk-IPLK4AIE.mjs} +3 -3
- package/dist/{chunk-XWRJVNB6.js → chunk-IWP22YTF.js} +104 -18
- package/dist/chunk-J3N24I7A.mjs +58 -0
- package/dist/chunk-JB33A4S6.js +125 -0
- package/dist/{chunk-DQNA57CA.js → chunk-JLM4LBUS.js} +5 -12
- package/dist/{chunk-TJFS44SH.js → chunk-JLRRXRZO.js} +2 -4
- package/dist/{chunk-GNMOOYHG.js → chunk-KNBNE74O.js} +11 -10
- package/dist/chunk-LODDAS62.js +173 -0
- package/dist/{chunk-LL6B4BHF.mjs → chunk-LPNHBHS2.mjs} +4 -4
- package/dist/{chunk-KBTFBEPE.mjs → chunk-MB7CJ32C.mjs} +153 -16
- package/dist/{chunk-IP3MAJSH.mjs → chunk-MQ5ZP5RW.mjs} +5 -12
- package/dist/{chunk-KMTERPME.mjs → chunk-MSHCPJIJ.mjs} +1 -1
- package/dist/chunk-N66WEQ6M.js +240 -0
- package/dist/{chunk-TDRINUMH.js → chunk-NZNSUKPT.js} +29 -10
- package/dist/{chunk-EFLIFXZH.js → chunk-P3XVLJYD.js} +15 -1
- package/dist/chunk-P6E3DILH.mjs +51 -0
- package/dist/{chunk-HPXLUJFJ.mjs → chunk-PN33UCWB.mjs} +3 -5
- package/dist/chunk-PNAWOJ32.js +54 -0
- package/dist/{chunk-72MWKUBC.js → chunk-PUYT62KC.js} +17 -4
- package/dist/chunk-Q4JMAQXJ.js +41 -0
- package/dist/chunk-QBZODEIG.js +49 -0
- package/dist/chunk-QHG7KJH6.js +302 -0
- package/dist/chunk-QIXQYLH5.js +44 -0
- package/dist/chunk-QO3GGQAV.mjs +148 -0
- package/dist/{chunk-RGZYYVQF.mjs → chunk-QPGL4YEO.mjs} +39 -11
- package/dist/{chunk-6IH5QPTR.mjs → chunk-QPOH6SOO.mjs} +44 -6
- package/dist/chunk-QVZTZHCJ.mjs +148 -0
- package/dist/{chunk-C7UKFKVY.js → chunk-QYGBT4NL.js} +40 -12
- package/dist/chunk-QYLNPHKG.mjs +87 -0
- package/dist/chunk-R3QWJ7GT.mjs +186 -0
- package/dist/chunk-R5P72RIT.js +180 -0
- package/dist/chunk-R5XY4EQL.js +56 -0
- package/dist/chunk-RRJTIKU6.mjs +238 -0
- package/dist/{chunk-ZFHTSHXS.mjs → chunk-RUROWRB5.mjs} +30 -1
- package/dist/{chunk-SAZ6V6DX.js → chunk-RVCUNEBU.js} +2 -4
- package/dist/chunk-RWZIWKZR.js +188 -0
- package/dist/{chunk-HB2UYJBY.js → chunk-RYW4CV7U.js} +61 -47
- package/dist/chunk-S5Y6UHAK.mjs +116 -0
- package/dist/{chunk-YV6Y7C43.js → chunk-SDWJSALH.js} +8 -3
- package/dist/chunk-SQK2CPSV.mjs +59 -0
- package/dist/{chunk-NJCKTIWB.mjs → chunk-SWF7GJYT.mjs} +6 -7
- package/dist/chunk-T5FAKJ6C.mjs +49 -0
- package/dist/chunk-TFPIRBHL.js +103 -0
- package/dist/chunk-TKZO5UBH.js +65 -0
- package/dist/chunk-TMQA74FM.js +215 -0
- package/dist/chunk-TQEIMVJD.mjs +94 -0
- package/dist/chunk-TYCRDHE6.mjs +143 -0
- package/dist/chunk-TZNTHABR.js +58 -0
- package/dist/chunk-UBKOITHT.mjs +142 -0
- package/dist/{chunk-RDIEZKV2.js → chunk-UEJHVPE2.js} +2 -2
- package/dist/chunk-UF3DXKCI.js +35 -0
- package/dist/chunk-UIO6O4MI.js +57 -0
- package/dist/chunk-UKGQ7256.js +13 -0
- package/dist/chunk-UPQGB5NQ.mjs +38 -0
- package/dist/chunk-UQMPEMY7.mjs +11 -0
- package/dist/chunk-V3P4ZAGL.mjs +110 -0
- package/dist/{chunk-TGPQ4KET.mjs → chunk-VAQDUVBP.mjs} +29 -2
- package/dist/chunk-VHHEP5G7.js +123 -0
- package/dist/{chunk-J3HKED4B.js → chunk-VHWTMNQN.js} +8 -8
- package/dist/{chunk-56KTCMRE.mjs → chunk-VONFSF4S.mjs} +5 -12
- package/dist/{chunk-JWFEJ4XG.js → chunk-WGPUGPYE.js} +2 -2
- package/dist/chunk-WIWTY74F.mjs +44 -0
- package/dist/chunk-WNLUUD5N.mjs +179 -0
- package/dist/{chunk-VCOBBJLP.js → chunk-WVVXZKNI.js} +5 -4
- package/dist/chunk-XEYP62CR.js +194 -0
- package/dist/chunk-XFJ5Q5PF.mjs +30 -0
- package/dist/{chunk-ZBVFM3GJ.js → chunk-XO6NSGV3.js} +152 -15
- package/dist/{chunk-FMF2G6BJ.js → chunk-XR6B2URW.js} +3 -3
- package/dist/chunk-Y3NDP56G.mjs +174 -0
- package/dist/chunk-YHFBPSMF.js +198 -0
- package/dist/chunk-YID7J6ZK.js +37 -0
- package/dist/chunk-YJ4W6DMX.mjs +186 -0
- package/dist/chunk-YLZEOXFS.mjs +116 -0
- package/dist/chunk-YPHOVEVU.mjs +118 -0
- package/dist/chunk-YXWRSEP5.mjs +286 -0
- package/dist/chunk-Z6CRXABX.js +88 -0
- package/dist/{chunk-24U2DQRP.mjs → chunk-ZD4BVRYG.mjs} +2 -1
- package/dist/chunk-ZRHDNGWO.js +46 -0
- package/dist/chunk-ZYJTHGQW.js +181 -0
- package/dist/components/ActivityFeed.js +5 -5
- package/dist/components/ActivityFeed.mjs +3 -3
- package/dist/components/Affix.d.mts +11 -0
- package/dist/components/Affix.d.ts +11 -0
- package/dist/components/Affix.js +10 -0
- package/dist/components/Affix.mjs +1 -0
- package/dist/components/Alert.js +2 -2
- package/dist/components/Alert.mjs +1 -1
- package/dist/components/AreaChart.js +5 -5
- package/dist/components/AreaChart.mjs +3 -3
- package/dist/components/AutoComplete.d.mts +16 -0
- package/dist/components/AutoComplete.d.ts +16 -0
- package/dist/components/AutoComplete.js +10 -0
- package/dist/components/AutoComplete.mjs +1 -0
- package/dist/components/AvatarGroup.d.mts +14 -0
- package/dist/components/AvatarGroup.d.ts +14 -0
- package/dist/components/AvatarGroup.js +14 -0
- package/dist/components/AvatarGroup.mjs +1 -0
- package/dist/components/Badge.js +2 -2
- package/dist/components/Badge.mjs +1 -1
- package/dist/components/BarChart.js +5 -5
- package/dist/components/BarChart.mjs +3 -3
- package/dist/components/Button.d.mts +2 -1
- package/dist/components/Button.d.ts +2 -1
- package/dist/components/Button.js +2 -2
- package/dist/components/Button.mjs +1 -1
- package/dist/components/ButtonGroup.d.mts +15 -0
- package/dist/components/ButtonGroup.d.ts +15 -0
- package/dist/components/ButtonGroup.js +18 -0
- package/dist/components/ButtonGroup.mjs +1 -0
- package/dist/components/Calendar.d.mts +15 -0
- package/dist/components/Calendar.d.ts +15 -0
- package/dist/components/Calendar.js +16 -0
- package/dist/components/Calendar.mjs +1 -0
- package/dist/components/Card.js +2 -2
- package/dist/components/Card.mjs +1 -1
- package/dist/components/Cascader.d.mts +15 -0
- package/dist/components/Cascader.d.ts +15 -0
- package/dist/components/Cascader.js +10 -0
- package/dist/components/Cascader.mjs +1 -0
- package/dist/components/ChatWindow.js +7 -6
- package/dist/components/ChatWindow.mjs +5 -4
- package/dist/components/Checkbox.js +4 -3
- package/dist/components/Checkbox.mjs +3 -2
- package/dist/components/CheckboxGroup.js +4 -3
- package/dist/components/CheckboxGroup.mjs +2 -1
- package/dist/components/CodeEditor.d.mts +11 -0
- package/dist/components/CodeEditor.d.ts +11 -0
- package/dist/components/CodeEditor.js +16 -0
- package/dist/components/CodeEditor.mjs +1 -0
- package/dist/components/ColorPicker.d.mts +12 -0
- package/dist/components/ColorPicker.d.ts +12 -0
- package/dist/components/ColorPicker.js +10 -0
- package/dist/components/ColorPicker.mjs +1 -0
- package/dist/components/CommentThread.js +7 -6
- package/dist/components/CommentThread.mjs +5 -4
- package/dist/components/ConfigProvider.d.mts +5 -1
- package/dist/components/ConfigProvider.d.ts +5 -1
- package/dist/components/ConfigProvider.js +3 -3
- package/dist/components/ConfigProvider.mjs +1 -1
- package/dist/components/CropUpload.js +4 -4
- package/dist/components/CropUpload.mjs +3 -3
- package/dist/components/DataTableWithToolbar.js +7 -7
- package/dist/components/DataTableWithToolbar.mjs +5 -5
- package/dist/components/DatePicker.js +2 -2
- package/dist/components/DatePicker.mjs +1 -1
- package/dist/components/Descriptions.d.mts +3 -3
- package/dist/components/Descriptions.d.ts +3 -3
- package/dist/components/Descriptions.js +3 -3
- package/dist/components/Descriptions.mjs +1 -1
- package/dist/components/Divider.js +2 -2
- package/dist/components/Divider.mjs +1 -1
- package/dist/components/DonutChart.js +5 -5
- package/dist/components/DonutChart.mjs +3 -3
- package/dist/components/Drawer.js +2 -2
- package/dist/components/Drawer.mjs +1 -1
- package/dist/components/Dropdown.d.mts +1 -1
- package/dist/components/Dropdown.d.ts +1 -1
- package/dist/components/Dropdown.js +3 -3
- package/dist/components/Dropdown.mjs +1 -1
- package/dist/components/DropdownItem.js +3 -3
- package/dist/components/DropdownItem.mjs +2 -2
- package/dist/components/Empty.d.mts +14 -0
- package/dist/components/Empty.d.ts +14 -0
- package/dist/components/Empty.js +10 -0
- package/dist/components/Empty.mjs +1 -0
- package/dist/components/FileManager.d.mts +29 -0
- package/dist/components/FileManager.d.ts +29 -0
- package/dist/components/FileManager.js +16 -0
- package/dist/components/FileManager.mjs +1 -0
- package/dist/components/FloatButton.d.mts +21 -0
- package/dist/components/FloatButton.d.ts +21 -0
- package/dist/components/FloatButton.js +14 -0
- package/dist/components/FloatButton.mjs +1 -0
- package/dist/components/Form.d.mts +24 -0
- package/dist/components/Form.d.ts +24 -0
- package/dist/components/Form.js +3 -3
- package/dist/components/Form.mjs +1 -1
- package/dist/components/FormItem.js +3 -3
- package/dist/components/FormItem.mjs +2 -2
- package/dist/components/FormWizard.d.mts +1 -1
- package/dist/components/FormWizard.d.ts +1 -1
- package/dist/components/FormWizard.js +5 -5
- package/dist/components/FormWizard.mjs +3 -3
- package/dist/components/FunnelChart.d.mts +15 -0
- package/dist/components/FunnelChart.d.ts +15 -0
- package/dist/components/FunnelChart.js +14 -0
- package/dist/components/FunnelChart.mjs +5 -0
- package/dist/components/GaugeChart.d.mts +9 -0
- package/dist/components/GaugeChart.d.ts +9 -0
- package/dist/components/GaugeChart.js +11 -0
- package/dist/components/GaugeChart.mjs +2 -0
- package/dist/components/HeatmapChart.d.mts +13 -0
- package/dist/components/HeatmapChart.d.ts +13 -0
- package/dist/components/HeatmapChart.js +13 -0
- package/dist/components/HeatmapChart.mjs +4 -0
- package/dist/components/Image.d.mts +4 -0
- package/dist/components/Image.d.ts +4 -0
- package/dist/components/Image.js +4 -4
- package/dist/components/Image.mjs +3 -3
- package/dist/components/ImageGroup.js +4 -4
- package/dist/components/ImageGroup.mjs +2 -2
- package/dist/components/ImagePreview.d.mts +3 -2
- package/dist/components/ImagePreview.d.ts +3 -2
- package/dist/components/ImagePreview.js +2 -2
- package/dist/components/ImagePreview.mjs +1 -1
- package/dist/components/ImageViewer.d.mts +20 -0
- package/dist/components/ImageViewer.d.ts +20 -0
- package/dist/components/ImageViewer.js +10 -0
- package/dist/components/ImageViewer.mjs +1 -0
- package/dist/components/InfiniteScroll.d.mts +20 -0
- package/dist/components/InfiniteScroll.d.ts +20 -0
- package/dist/components/InfiniteScroll.js +16 -0
- package/dist/components/InfiniteScroll.mjs +1 -0
- package/dist/components/Input.d.mts +5 -0
- package/dist/components/Input.d.ts +5 -0
- package/dist/components/Input.js +2 -2
- package/dist/components/Input.mjs +1 -1
- package/dist/components/InputGroup.d.mts +20 -0
- package/dist/components/InputGroup.d.ts +20 -0
- package/dist/components/InputGroup.js +22 -0
- package/dist/components/InputGroup.mjs +1 -0
- package/dist/components/InputNumber.js +2 -2
- package/dist/components/InputNumber.mjs +1 -1
- package/dist/components/Kanban.d.mts +46 -0
- package/dist/components/Kanban.d.ts +46 -0
- package/dist/components/Kanban.js +17 -0
- package/dist/components/Kanban.mjs +2 -0
- package/dist/components/LineChart.js +5 -5
- package/dist/components/LineChart.mjs +3 -3
- package/dist/components/List.d.mts +9 -1
- package/dist/components/List.d.ts +9 -1
- package/dist/components/List.js +2 -2
- package/dist/components/List.mjs +1 -1
- package/dist/components/Mentions.d.mts +18 -0
- package/dist/components/Mentions.d.ts +18 -0
- package/dist/components/Mentions.js +16 -0
- package/dist/components/Mentions.mjs +1 -0
- package/dist/components/Modal.d.mts +2 -2
- package/dist/components/Modal.d.ts +2 -2
- package/dist/components/Modal.js +3 -3
- package/dist/components/Modal.mjs +2 -2
- package/dist/components/NotificationCenter.js +8 -8
- package/dist/components/NotificationCenter.mjs +6 -6
- package/dist/components/PieChart.js +4 -4
- package/dist/components/PieChart.mjs +2 -2
- package/dist/components/Popconfirm.d.mts +1 -1
- package/dist/components/Popconfirm.d.ts +1 -1
- package/dist/components/Popconfirm.js +3 -3
- package/dist/components/Popconfirm.mjs +2 -2
- package/dist/components/Popover.d.mts +1 -1
- package/dist/components/Popover.d.ts +1 -1
- package/dist/components/Popover.js +3 -3
- package/dist/components/Popover.mjs +2 -2
- package/dist/components/PrintLayout.d.mts +22 -0
- package/dist/components/PrintLayout.d.ts +22 -0
- package/dist/components/PrintLayout.js +14 -0
- package/dist/components/PrintLayout.mjs +1 -0
- package/dist/components/Progress.js +2 -2
- package/dist/components/Progress.mjs +1 -1
- package/dist/components/QRCode.d.mts +16 -0
- package/dist/components/QRCode.d.ts +16 -0
- package/dist/components/QRCode.js +16 -0
- package/dist/components/QRCode.mjs +1 -0
- package/dist/components/RadarChart.js +4 -4
- package/dist/components/RadarChart.mjs +2 -2
- package/dist/components/Radio.js +4 -3
- package/dist/components/Radio.mjs +3 -2
- package/dist/components/RadioGroup.js +4 -3
- package/dist/components/RadioGroup.mjs +2 -1
- package/dist/components/Rate.d.mts +14 -0
- package/dist/components/Rate.d.ts +14 -0
- package/dist/components/Rate.js +10 -0
- package/dist/components/Rate.mjs +1 -0
- package/dist/components/Resizable.d.mts +13 -0
- package/dist/components/Resizable.d.ts +13 -0
- package/dist/components/Resizable.js +16 -0
- package/dist/components/Resizable.mjs +1 -0
- package/dist/components/Result.d.mts +14 -0
- package/dist/components/Result.d.ts +14 -0
- package/dist/components/Result.js +11 -0
- package/dist/components/Result.mjs +2 -0
- package/dist/components/RichTextEditor.d.mts +26 -0
- package/dist/components/RichTextEditor.d.ts +26 -0
- package/dist/components/RichTextEditor.js +17 -0
- package/dist/components/RichTextEditor.mjs +2 -0
- package/dist/components/ScatterChart.js +5 -5
- package/dist/components/ScatterChart.mjs +3 -3
- package/dist/components/Segmented.d.mts +12 -0
- package/dist/components/Segmented.d.ts +12 -0
- package/dist/components/Segmented.js +10 -0
- package/dist/components/Segmented.mjs +1 -0
- package/dist/components/Select.js +2 -2
- package/dist/components/Select.mjs +1 -1
- package/dist/components/Splitter.d.mts +18 -0
- package/dist/components/Splitter.d.ts +18 -0
- package/dist/components/Splitter.js +16 -0
- package/dist/components/Splitter.mjs +1 -0
- package/dist/components/Statistic.d.mts +8 -0
- package/dist/components/Statistic.d.ts +8 -0
- package/dist/components/Statistic.js +10 -0
- package/dist/components/Statistic.mjs +1 -0
- package/dist/components/Stepper.d.mts +12 -0
- package/dist/components/Stepper.d.ts +12 -0
- package/dist/components/Stepper.js +10 -0
- package/dist/components/Stepper.mjs +1 -0
- package/dist/components/SunburstChart.d.mts +15 -0
- package/dist/components/SunburstChart.d.ts +15 -0
- package/dist/components/SunburstChart.js +14 -0
- package/dist/components/SunburstChart.mjs +5 -0
- package/dist/components/TabPane.js +2 -2
- package/dist/components/TabPane.mjs +1 -1
- package/dist/components/Table.d.mts +13 -1
- package/dist/components/Table.d.ts +13 -1
- package/dist/components/Table.js +2 -2
- package/dist/components/Table.mjs +1 -1
- package/dist/components/Tabs.d.mts +7 -0
- package/dist/components/Tabs.d.ts +7 -0
- package/dist/components/Tabs.js +3 -3
- package/dist/components/Tabs.mjs +1 -1
- package/dist/components/TaskBoard.js +4 -4
- package/dist/components/TaskBoard.mjs +2 -2
- package/dist/components/Text.js +2 -2
- package/dist/components/Text.mjs +1 -1
- package/dist/components/Textarea.js +3 -2
- package/dist/components/Textarea.mjs +2 -1
- package/dist/components/Tooltip.d.mts +1 -1
- package/dist/components/Tooltip.d.ts +1 -1
- package/dist/components/Tooltip.js +3 -3
- package/dist/components/Tooltip.mjs +2 -2
- package/dist/components/Tour.d.mts +14 -0
- package/dist/components/Tour.d.ts +14 -0
- package/dist/components/Tour.js +11 -0
- package/dist/components/Tour.mjs +2 -0
- package/dist/components/Transfer.d.mts +12 -0
- package/dist/components/Transfer.d.ts +12 -0
- package/dist/components/Transfer.js +10 -0
- package/dist/components/Transfer.mjs +1 -0
- package/dist/components/Tree.d.mts +18 -0
- package/dist/components/Tree.d.ts +18 -0
- package/dist/components/Tree.js +3 -3
- package/dist/components/Tree.mjs +1 -1
- package/dist/components/TreeMapChart.d.mts +15 -0
- package/dist/components/TreeMapChart.d.ts +15 -0
- package/dist/components/TreeMapChart.js +14 -0
- package/dist/components/TreeMapChart.mjs +5 -0
- package/dist/components/TreeSelect.d.mts +12 -0
- package/dist/components/TreeSelect.d.ts +12 -0
- package/dist/components/TreeSelect.js +10 -0
- package/dist/components/TreeSelect.mjs +1 -0
- package/dist/components/Upload.js +3 -3
- package/dist/components/Upload.mjs +2 -2
- package/dist/components/VirtualList.d.mts +14 -0
- package/dist/components/VirtualList.d.ts +14 -0
- package/dist/components/VirtualList.js +10 -0
- package/dist/components/VirtualList.mjs +1 -0
- package/dist/components/VirtualTable.d.mts +26 -0
- package/dist/components/VirtualTable.d.ts +26 -0
- package/dist/components/VirtualTable.js +16 -0
- package/dist/components/VirtualTable.mjs +1 -0
- package/dist/components/Watermark.d.mts +9 -0
- package/dist/components/Watermark.d.ts +9 -0
- package/dist/components/Watermark.js +10 -0
- package/dist/components/Watermark.mjs +1 -0
- package/dist/index.d.mts +85 -2
- package/dist/index.d.ts +85 -2
- package/dist/index.js +504 -181
- package/dist/index.mjs +223 -64
- package/package.json +2 -2
- package/dist/chunk-3M2IG6IN.mjs +0 -34
- package/dist/chunk-4Y7YH32A.mjs +0 -157
- package/dist/chunk-FPNT7FV5.mjs +0 -44
- package/dist/chunk-FSDZJD7M.js +0 -159
- package/dist/chunk-I5TCE5E7.js +0 -32
- package/dist/chunk-LIV33O73.mjs +0 -26
- package/dist/chunk-O3W3OZ6V.js +0 -37
- package/dist/chunk-OYCMGKQ7.js +0 -111
- package/dist/chunk-RPTLVIBF.mjs +0 -109
- package/dist/chunk-RYWGELJ7.js +0 -46
- package/dist/chunk-SSQOCZ6O.js +0 -36
- package/dist/chunk-UZ7SBFQV.mjs +0 -35
- package/dist/chunk-VEGBO77D.mjs +0 -20
- package/dist/{chunk-2DW3WFZI.mjs → chunk-2LUDQBVY.mjs} +2 -2
- package/dist/{chunk-JQNKI2ZZ.js → chunk-C443YA4U.js} +2 -2
- package/dist/{chunk-QGCQAJGL.mjs → chunk-DEQWHJLQ.mjs} +2 -2
- package/dist/{chunk-N4EMXCRQ.mjs → chunk-FXX3GD35.mjs} +1 -1
- package/dist/{chunk-GASFXURT.js → chunk-KQJYSG23.js} +2 -2
- package/dist/{chunk-NEP3CS6S.js → chunk-OE6WTZES.js} +2 -2
- package/dist/{chunk-SH6O6LDJ.mjs → chunk-QQDKQLHJ.mjs} +1 -1
- package/dist/{chunk-F4Q5QMX2.js → chunk-TVJZB7ZC.js} +1 -1
- package/dist/{chunk-SM7RDJFB.js → chunk-VILZFNR7.js} +2 -2
- package/dist/{chunk-W4TFISRK.js → chunk-WK5QJO57.js} +1 -1
- package/dist/{chunk-CYZLGYY4.mjs → chunk-XNMSECO4.mjs} +2 -2
- package/dist/{chunk-763M6U5U.mjs → chunk-ZDL3GE3Q.mjs} +2 -2
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var chunkAJQPGAYL_js = require('./chunk-AJQPGAYL.js');
|
|
4
4
|
var react = require('react');
|
|
5
5
|
var tigercatCore = require('@expcat/tigercat-core');
|
|
6
6
|
var jsxRuntime = require('react/jsx-runtime');
|
|
7
7
|
|
|
8
8
|
var createTooltipId = tigercatCore.createFloatingIdFactory("tooltip");
|
|
9
9
|
var Tooltip = ({
|
|
10
|
-
|
|
11
|
-
|
|
10
|
+
open,
|
|
11
|
+
defaultOpen = false,
|
|
12
12
|
content,
|
|
13
13
|
trigger = "hover",
|
|
14
14
|
placement = "top",
|
|
@@ -17,21 +17,14 @@ var Tooltip = ({
|
|
|
17
17
|
className,
|
|
18
18
|
style,
|
|
19
19
|
children,
|
|
20
|
-
|
|
20
|
+
onOpenChange,
|
|
21
21
|
...divProps
|
|
22
22
|
}) => {
|
|
23
23
|
const tooltipIdRef = react.useRef(null);
|
|
24
24
|
if (!tooltipIdRef.current) tooltipIdRef.current = createTooltipId();
|
|
25
25
|
const tooltipId = tooltipIdRef.current;
|
|
26
26
|
const describedBy = content != null ? tooltipId : void 0;
|
|
27
|
-
const {
|
|
28
|
-
currentVisible,
|
|
29
|
-
containerRef,
|
|
30
|
-
triggerRef,
|
|
31
|
-
floatingRef,
|
|
32
|
-
floatingStyles,
|
|
33
|
-
triggerHandlers
|
|
34
|
-
} = chunkMWH6FCSE_js.usePopup({ visible, defaultVisible, disabled, trigger, placement, offset, onVisibleChange });
|
|
27
|
+
const { currentVisible, containerRef, triggerRef, floatingRef, floatingStyles, triggerHandlers } = chunkAJQPGAYL_js.usePopup({ open, defaultOpen, disabled, trigger, placement, offset, onOpenChange });
|
|
35
28
|
const containerClasses = react.useMemo(
|
|
36
29
|
() => tigercatCore.classNames(tigercatCore.getTooltipContainerClasses(), className),
|
|
37
30
|
[className]
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
+
var chunkUKGQ7256_js = require('./chunk-UKGQ7256.js');
|
|
3
4
|
var react = require('react');
|
|
4
5
|
var jsxRuntime = require('react/jsx-runtime');
|
|
5
6
|
|
|
6
|
-
// src/components/CheckboxGroup.tsx
|
|
7
7
|
var CheckboxGroupContextProvider = react.createContext(null);
|
|
8
8
|
var useCheckboxGroup = () => {
|
|
9
9
|
return react.useContext(CheckboxGroupContextProvider);
|
|
@@ -18,9 +18,7 @@ var CheckboxGroup = ({
|
|
|
18
18
|
className,
|
|
19
19
|
...props
|
|
20
20
|
}) => {
|
|
21
|
-
const [
|
|
22
|
-
const isControlled = controlledValue !== void 0;
|
|
23
|
-
const value = isControlled ? controlledValue : internalValue;
|
|
21
|
+
const [value, setInternalValue, isControlled] = chunkUKGQ7256_js.useControlledState(controlledValue, defaultValue);
|
|
24
22
|
const updateValue = (val, checked) => {
|
|
25
23
|
if (disabled) return;
|
|
26
24
|
const currentValue = [...value];
|
|
@@ -18,7 +18,7 @@ var SvgIcon = ({ d, cls = "w-5 h-5" }) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
|
18
18
|
}
|
|
19
19
|
);
|
|
20
20
|
var ImagePreview = ({
|
|
21
|
-
|
|
21
|
+
open,
|
|
22
22
|
images,
|
|
23
23
|
currentIndex = 0,
|
|
24
24
|
zIndex = 1050,
|
|
@@ -26,10 +26,11 @@ var ImagePreview = ({
|
|
|
26
26
|
scaleStep = 0.5,
|
|
27
27
|
minScale = 0.25,
|
|
28
28
|
maxScale = 5,
|
|
29
|
-
|
|
29
|
+
onOpenChange,
|
|
30
30
|
onCurrentIndexChange,
|
|
31
31
|
onScaleChange
|
|
32
32
|
}) => {
|
|
33
|
+
const isOpen = open;
|
|
33
34
|
const [scale, setScale] = react.useState(1);
|
|
34
35
|
const [offsetX, setOffsetX] = react.useState(0);
|
|
35
36
|
const [offsetY, setOffsetY] = react.useState(0);
|
|
@@ -46,7 +47,7 @@ var ImagePreview = ({
|
|
|
46
47
|
resetTransform();
|
|
47
48
|
}, [currentIndex, resetTransform]);
|
|
48
49
|
react.useEffect(() => {
|
|
49
|
-
if (
|
|
50
|
+
if (isOpen) {
|
|
50
51
|
resetTransform();
|
|
51
52
|
setIndex(currentIndex);
|
|
52
53
|
document.body.style.overflow = "hidden";
|
|
@@ -56,11 +57,11 @@ var ImagePreview = ({
|
|
|
56
57
|
return () => {
|
|
57
58
|
document.body.style.overflow = "";
|
|
58
59
|
};
|
|
59
|
-
}, [
|
|
60
|
+
}, [isOpen, currentIndex, resetTransform]);
|
|
60
61
|
const handleClose = react.useCallback(() => {
|
|
61
|
-
|
|
62
|
-
}, [
|
|
63
|
-
chunkZYPEO2KY_js.useEscapeKey({ enabled: !!
|
|
62
|
+
onOpenChange?.(false);
|
|
63
|
+
}, [onOpenChange]);
|
|
64
|
+
chunkZYPEO2KY_js.useEscapeKey({ enabled: !!isOpen, onEscape: handleClose });
|
|
64
65
|
const navState = react.useMemo(() => tigercatCore.getPreviewNavState(index, images.length), [index, images.length]);
|
|
65
66
|
const handleZoomIn = react.useCallback(() => {
|
|
66
67
|
setScale((s) => {
|
|
@@ -97,14 +98,14 @@ var ImagePreview = ({
|
|
|
97
98
|
}
|
|
98
99
|
}, [index, images.length, resetTransform, onCurrentIndexChange]);
|
|
99
100
|
react.useEffect(() => {
|
|
100
|
-
if (!
|
|
101
|
+
if (!isOpen) return;
|
|
101
102
|
const handler = (e) => {
|
|
102
103
|
if (e.key === "ArrowLeft") handlePrev();
|
|
103
104
|
if (e.key === "ArrowRight") handleNext();
|
|
104
105
|
};
|
|
105
106
|
document.addEventListener("keydown", handler);
|
|
106
107
|
return () => document.removeEventListener("keydown", handler);
|
|
107
|
-
}, [
|
|
108
|
+
}, [isOpen, handlePrev, handleNext]);
|
|
108
109
|
const handleWheel = react.useCallback(
|
|
109
110
|
(e) => {
|
|
110
111
|
e.preventDefault();
|
|
@@ -146,7 +147,7 @@ var ImagePreview = ({
|
|
|
146
147
|
() => tigercatCore.calculateTransform(scale, offsetX, offsetY),
|
|
147
148
|
[scale, offsetX, offsetY]
|
|
148
149
|
);
|
|
149
|
-
if (!
|
|
150
|
+
if (!isOpen || !images.length) return null;
|
|
150
151
|
const currentSrc = images[index] || images[0];
|
|
151
152
|
return reactDom.createPortal(
|
|
152
153
|
/* @__PURE__ */ jsxRuntime.jsxs(
|
|
@@ -0,0 +1,173 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var React = require('react');
|
|
4
|
+
var tigercatCore = require('@expcat/tigercat-core');
|
|
5
|
+
var jsxRuntime = require('react/jsx-runtime');
|
|
6
|
+
|
|
7
|
+
function _interopDefault (e) { return e && e.__esModule ? e : { default: e }; }
|
|
8
|
+
|
|
9
|
+
var React__default = /*#__PURE__*/_interopDefault(React);
|
|
10
|
+
|
|
11
|
+
// src/components/Progress.tsx
|
|
12
|
+
var Progress = React__default.default.memo(
|
|
13
|
+
({
|
|
14
|
+
variant = "primary",
|
|
15
|
+
size = "md",
|
|
16
|
+
type = "line",
|
|
17
|
+
percentage = 0,
|
|
18
|
+
status = "normal",
|
|
19
|
+
showText,
|
|
20
|
+
text,
|
|
21
|
+
format,
|
|
22
|
+
striped = false,
|
|
23
|
+
stripedAnimation = false,
|
|
24
|
+
strokeWidth = 6,
|
|
25
|
+
width = "auto",
|
|
26
|
+
height,
|
|
27
|
+
className,
|
|
28
|
+
style,
|
|
29
|
+
"aria-label": ariaLabel,
|
|
30
|
+
"aria-labelledby": ariaLabelledby,
|
|
31
|
+
"aria-describedby": ariaDescribedby,
|
|
32
|
+
...props
|
|
33
|
+
}) => {
|
|
34
|
+
const clampedPercentage = tigercatCore.clampPercentage(percentage);
|
|
35
|
+
const effectiveVariant = tigercatCore.getStatusVariant(status) || variant;
|
|
36
|
+
const shouldShowText = showText ?? type === "line";
|
|
37
|
+
const displayText = shouldShowText ? tigercatCore.formatProgressText(clampedPercentage, text, format) : "";
|
|
38
|
+
const resolvedAriaLabel = ariaLabel ?? (ariaLabelledby ? void 0 : `Progress: ${clampedPercentage}%`);
|
|
39
|
+
const ariaAttrs = {
|
|
40
|
+
role: "progressbar",
|
|
41
|
+
"aria-label": resolvedAriaLabel,
|
|
42
|
+
"aria-labelledby": ariaLabelledby,
|
|
43
|
+
"aria-describedby": ariaDescribedby,
|
|
44
|
+
"aria-valuenow": clampedPercentage,
|
|
45
|
+
"aria-valuemin": 0,
|
|
46
|
+
"aria-valuemax": 100
|
|
47
|
+
};
|
|
48
|
+
const renderLineProgress = () => {
|
|
49
|
+
const containerStyle = width !== "auto" ? { width: typeof width === "number" ? `${width}px` : width } : {};
|
|
50
|
+
return /* @__PURE__ */ jsxRuntime.jsxs(
|
|
51
|
+
"div",
|
|
52
|
+
{
|
|
53
|
+
...props,
|
|
54
|
+
className: tigercatCore.classNames("flex items-center w-full", className),
|
|
55
|
+
style: { ...style ?? {}, ...containerStyle },
|
|
56
|
+
children: [
|
|
57
|
+
/* @__PURE__ */ jsxRuntime.jsx(
|
|
58
|
+
"div",
|
|
59
|
+
{
|
|
60
|
+
className: tigercatCore.classNames(
|
|
61
|
+
tigercatCore.progressLineBaseClasses,
|
|
62
|
+
tigercatCore.progressTrackBgClasses,
|
|
63
|
+
!height && tigercatCore.progressLineSizeClasses[size]
|
|
64
|
+
),
|
|
65
|
+
style: { flex: 1, ...height ? { height: `${height}px` } : {} },
|
|
66
|
+
children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
67
|
+
"div",
|
|
68
|
+
{
|
|
69
|
+
className: tigercatCore.classNames(
|
|
70
|
+
tigercatCore.progressLineInnerClasses,
|
|
71
|
+
tigercatCore.getProgressVariantClasses(effectiveVariant),
|
|
72
|
+
striped && tigercatCore.progressStripedClasses,
|
|
73
|
+
striped && stripedAnimation && tigercatCore.progressStripedAnimationClasses
|
|
74
|
+
),
|
|
75
|
+
style: { width: `${clampedPercentage}%` },
|
|
76
|
+
...ariaAttrs
|
|
77
|
+
}
|
|
78
|
+
)
|
|
79
|
+
}
|
|
80
|
+
),
|
|
81
|
+
shouldShowText && /* @__PURE__ */ jsxRuntime.jsx(
|
|
82
|
+
"span",
|
|
83
|
+
{
|
|
84
|
+
className: tigercatCore.classNames(
|
|
85
|
+
tigercatCore.progressTextBaseClasses,
|
|
86
|
+
tigercatCore.progressTextSizeClasses[size],
|
|
87
|
+
tigercatCore.getProgressTextColorClasses(effectiveVariant)
|
|
88
|
+
),
|
|
89
|
+
children: displayText
|
|
90
|
+
}
|
|
91
|
+
)
|
|
92
|
+
]
|
|
93
|
+
}
|
|
94
|
+
);
|
|
95
|
+
};
|
|
96
|
+
const renderCircleProgress = () => {
|
|
97
|
+
const {
|
|
98
|
+
width: svgWidth,
|
|
99
|
+
height: svgHeight,
|
|
100
|
+
radius,
|
|
101
|
+
cx,
|
|
102
|
+
cy
|
|
103
|
+
} = tigercatCore.getCircleSize(size, strokeWidth);
|
|
104
|
+
const { strokeDasharray, strokeDashoffset } = tigercatCore.calculateCirclePath(radius, clampedPercentage);
|
|
105
|
+
return /* @__PURE__ */ jsxRuntime.jsxs(
|
|
106
|
+
"div",
|
|
107
|
+
{
|
|
108
|
+
...props,
|
|
109
|
+
className: tigercatCore.classNames(tigercatCore.progressCircleBaseClasses, className),
|
|
110
|
+
style: {
|
|
111
|
+
...style ?? {},
|
|
112
|
+
width: `${svgWidth}px`,
|
|
113
|
+
height: `${svgHeight}px`
|
|
114
|
+
},
|
|
115
|
+
children: [
|
|
116
|
+
/* @__PURE__ */ jsxRuntime.jsxs("svg", { width: svgWidth, height: svgHeight, viewBox: `0 0 ${svgWidth} ${svgHeight}`, children: [
|
|
117
|
+
/* @__PURE__ */ jsxRuntime.jsx(
|
|
118
|
+
"circle",
|
|
119
|
+
{
|
|
120
|
+
cx,
|
|
121
|
+
cy,
|
|
122
|
+
r: radius,
|
|
123
|
+
fill: "none",
|
|
124
|
+
stroke: "currentColor",
|
|
125
|
+
className: tigercatCore.progressCircleTrackStrokeClasses,
|
|
126
|
+
strokeWidth
|
|
127
|
+
}
|
|
128
|
+
),
|
|
129
|
+
/* @__PURE__ */ jsxRuntime.jsx(
|
|
130
|
+
"circle",
|
|
131
|
+
{
|
|
132
|
+
cx,
|
|
133
|
+
cy,
|
|
134
|
+
r: radius,
|
|
135
|
+
fill: "none",
|
|
136
|
+
stroke: "currentColor",
|
|
137
|
+
className: tigercatCore.getProgressVariantClasses(effectiveVariant).replace("bg-", "text-"),
|
|
138
|
+
strokeWidth,
|
|
139
|
+
strokeLinecap: "round",
|
|
140
|
+
strokeDasharray,
|
|
141
|
+
strokeDashoffset,
|
|
142
|
+
style: {
|
|
143
|
+
transition: "stroke-dashoffset 0.3s ease",
|
|
144
|
+
transform: "rotate(-90deg)",
|
|
145
|
+
transformOrigin: "center"
|
|
146
|
+
},
|
|
147
|
+
...ariaAttrs
|
|
148
|
+
}
|
|
149
|
+
)
|
|
150
|
+
] }),
|
|
151
|
+
shouldShowText && /* @__PURE__ */ jsxRuntime.jsx(
|
|
152
|
+
"div",
|
|
153
|
+
{
|
|
154
|
+
className: tigercatCore.classNames(
|
|
155
|
+
tigercatCore.progressCircleTextClasses,
|
|
156
|
+
tigercatCore.progressTextSizeClasses[size],
|
|
157
|
+
"font-medium",
|
|
158
|
+
tigercatCore.getProgressTextColorClasses(effectiveVariant)
|
|
159
|
+
),
|
|
160
|
+
children: displayText
|
|
161
|
+
}
|
|
162
|
+
)
|
|
163
|
+
]
|
|
164
|
+
}
|
|
165
|
+
);
|
|
166
|
+
};
|
|
167
|
+
if (type === "circle") return renderCircleProgress();
|
|
168
|
+
return renderLineProgress();
|
|
169
|
+
}
|
|
170
|
+
);
|
|
171
|
+
Progress.displayName = "Progress";
|
|
172
|
+
|
|
173
|
+
exports.Progress = Progress;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { Input } from './chunk-
|
|
2
|
-
import { Textarea } from './chunk-
|
|
3
|
-
import { Button } from './chunk-
|
|
1
|
+
import { Input } from './chunk-WNLUUD5N.mjs';
|
|
2
|
+
import { Textarea } from './chunk-7QZ4XT2P.mjs';
|
|
3
|
+
import { Button } from './chunk-3KMKMAE3.mjs';
|
|
4
4
|
import { Avatar } from './chunk-FE7PEZTI.mjs';
|
|
5
5
|
import { useState, useEffect, useMemo, useCallback } from 'react';
|
|
6
6
|
import { classNames, getChatMessageStatusInfo, formatChatTime } from '@expcat/tigercat-core';
|
|
@@ -19,7 +19,7 @@ var ChatWindow = ({
|
|
|
19
19
|
inputAriaLabel,
|
|
20
20
|
sendAriaLabel,
|
|
21
21
|
statusText,
|
|
22
|
-
statusVariant = "info",
|
|
22
|
+
statusVariant: _statusVariant = "info",
|
|
23
23
|
showAvatar = true,
|
|
24
24
|
showName = true,
|
|
25
25
|
showTime = false,
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React, { useState, useEffect, useMemo, useCallback } from 'react';
|
|
2
|
-
import { getSpinnerSVG, getFixedColumnOffsets, filterData, sortData, paginateData, getRowKey, calculatePagination, getExpandIconCellClasses, getTableHeaderClasses, getCheckboxCellClasses, classNames, getTableHeaderCellClasses, tableEmptyStateClasses,
|
|
2
|
+
import { getSpinnerSVG, getFixedColumnOffsets, filterDataAdvanced, filterData, sortData, paginateData, getRowKey, calculatePagination, exportTableToCsv, downloadCsv, groupDataByColumn, getExpandIconCellClasses, getTableHeaderClasses, getCheckboxCellClasses, classNames, getTableHeaderCellClasses, tableEmptyStateClasses, tableGroupHeaderClasses, getGroupHeaderCellClasses, getSimplePaginationContainerClasses, getSimplePaginationTotalClasses, getSimplePaginationControlsClasses, getSimplePaginationSelectClasses, getSimplePaginationButtonsWrapperClasses, getSimplePaginationButtonClasses, getSimplePaginationPageIndicatorClasses, tableSummaryRowClasses, getTableCellClasses, getTableWrapperClasses, tableExportButtonClasses, tableBaseClasses, tableLoadingOverlayClasses, editableCellInputClasses, getEditableCellClasses, getTableRowClasses, getExpandedRowClasses, getExpandedRowContentClasses, icon24ViewBox, lockClosedIcon24PathD, lockOpenIcon24PathD, icon16ViewBox, getSortIconClasses, sortAscIcon16PathD, sortDescIcon16PathD, sortBothIcon16PathD, getLoadingOverlaySpinnerClasses, getExpandIconClasses, expandChevronIcon16PathD } from '@expcat/tigercat-core';
|
|
3
3
|
import { jsx, jsxs } from 'react/jsx-runtime';
|
|
4
4
|
|
|
5
5
|
// src/components/Table.tsx
|
|
@@ -79,6 +79,19 @@ function Table({
|
|
|
79
79
|
stickyHeader = false,
|
|
80
80
|
maxHeight,
|
|
81
81
|
tableLayout = "auto",
|
|
82
|
+
// v0.6.0 props
|
|
83
|
+
virtual = false,
|
|
84
|
+
virtualHeight = 400,
|
|
85
|
+
virtualItemHeight: _virtualItemHeight = 40,
|
|
86
|
+
editable = false,
|
|
87
|
+
editableCells,
|
|
88
|
+
filterMode = "basic",
|
|
89
|
+
advancedFilterRules = [],
|
|
90
|
+
columnDraggable = false,
|
|
91
|
+
summaryRow,
|
|
92
|
+
groupBy,
|
|
93
|
+
exportable = false,
|
|
94
|
+
exportFilename = "export",
|
|
82
95
|
onChange,
|
|
83
96
|
onRowClick,
|
|
84
97
|
onSelectionChange,
|
|
@@ -86,6 +99,9 @@ function Table({
|
|
|
86
99
|
onFilterChange,
|
|
87
100
|
onPageChange,
|
|
88
101
|
onExpandChange,
|
|
102
|
+
onCellChange,
|
|
103
|
+
onColumnOrderChange,
|
|
104
|
+
onExport,
|
|
89
105
|
className,
|
|
90
106
|
...props
|
|
91
107
|
}) {
|
|
@@ -188,13 +204,17 @@ function Table({
|
|
|
188
204
|
);
|
|
189
205
|
const processedData = useMemo(() => {
|
|
190
206
|
let data = dataSource;
|
|
191
|
-
|
|
207
|
+
if (filterMode === "advanced" && advancedFilterRules.length > 0) {
|
|
208
|
+
data = filterDataAdvanced(data, advancedFilterRules);
|
|
209
|
+
} else {
|
|
210
|
+
data = filterData(data, filterState);
|
|
211
|
+
}
|
|
192
212
|
if (sortState.key && sortState.direction) {
|
|
193
213
|
const column = columnByKey[sortState.key];
|
|
194
214
|
data = sortData(data, sortState.key, sortState.direction, column?.sortFn);
|
|
195
215
|
}
|
|
196
216
|
return data;
|
|
197
|
-
}, [dataSource, filterState, sortState, columnByKey]);
|
|
217
|
+
}, [dataSource, filterState, sortState, columnByKey, filterMode, advancedFilterRules]);
|
|
198
218
|
const paginatedData = useMemo(() => {
|
|
199
219
|
if (pagination === false) {
|
|
200
220
|
return processedData;
|
|
@@ -393,6 +413,59 @@ function Table({
|
|
|
393
413
|
const someSelected = useMemo(() => {
|
|
394
414
|
return selectedRowKeys.length > 0 && !allSelected;
|
|
395
415
|
}, [selectedRowKeys.length, allSelected]);
|
|
416
|
+
const [editingCell, setEditingCell] = useState(
|
|
417
|
+
null
|
|
418
|
+
);
|
|
419
|
+
const [editingValue, setEditingValue] = useState("");
|
|
420
|
+
const isCellEditable = useCallback(
|
|
421
|
+
(columnKey, rowIndex) => {
|
|
422
|
+
if (!editable) return false;
|
|
423
|
+
if (!editableCells) return true;
|
|
424
|
+
return !!editableCells.get(columnKey)?.has(rowIndex);
|
|
425
|
+
},
|
|
426
|
+
[editable, editableCells]
|
|
427
|
+
);
|
|
428
|
+
const startEditing = useCallback((rowIndex, columnKey, currentValue) => {
|
|
429
|
+
setEditingCell({ rowIndex, columnKey });
|
|
430
|
+
setEditingValue(String(currentValue ?? ""));
|
|
431
|
+
}, []);
|
|
432
|
+
const commitEdit = useCallback(() => {
|
|
433
|
+
if (editingCell) {
|
|
434
|
+
onCellChange?.(editingCell.rowIndex, editingCell.columnKey, editingValue);
|
|
435
|
+
setEditingCell(null);
|
|
436
|
+
}
|
|
437
|
+
}, [editingCell, editingValue, onCellChange]);
|
|
438
|
+
const cancelEdit = useCallback(() => {
|
|
439
|
+
setEditingCell(null);
|
|
440
|
+
}, []);
|
|
441
|
+
const handleExport = useCallback(() => {
|
|
442
|
+
const csv = exportTableToCsv(displayColumns, processedData);
|
|
443
|
+
downloadCsv(csv, exportFilename);
|
|
444
|
+
onExport?.(csv);
|
|
445
|
+
}, [displayColumns, processedData, exportFilename, onExport]);
|
|
446
|
+
const [dragColumnKey, setDragColumnKey] = useState(null);
|
|
447
|
+
const handleDragStart = useCallback((columnKey) => {
|
|
448
|
+
setDragColumnKey(columnKey);
|
|
449
|
+
}, []);
|
|
450
|
+
const handleDrop = useCallback(
|
|
451
|
+
(targetKey) => {
|
|
452
|
+
if (!dragColumnKey || dragColumnKey === targetKey) return;
|
|
453
|
+
const cols = [...displayColumns];
|
|
454
|
+
const fromIdx = cols.findIndex((c) => c.key === dragColumnKey);
|
|
455
|
+
const toIdx = cols.findIndex((c) => c.key === targetKey);
|
|
456
|
+
if (fromIdx >= 0 && toIdx >= 0) {
|
|
457
|
+
const [moved] = cols.splice(fromIdx, 1);
|
|
458
|
+
cols.splice(toIdx, 0, moved);
|
|
459
|
+
onColumnOrderChange?.(cols);
|
|
460
|
+
}
|
|
461
|
+
setDragColumnKey(null);
|
|
462
|
+
},
|
|
463
|
+
[dragColumnKey, displayColumns, onColumnOrderChange]
|
|
464
|
+
);
|
|
465
|
+
const groupedData = useMemo(() => {
|
|
466
|
+
if (!groupBy) return null;
|
|
467
|
+
return groupDataByColumn(paginatedData, groupBy);
|
|
468
|
+
}, [groupBy, paginatedData]);
|
|
396
469
|
const renderTableHeader = useCallback(() => {
|
|
397
470
|
const expandHeaderTh = expandable ? /* @__PURE__ */ jsx("th", { className: getExpandIconCellClasses(size), "aria-label": "Expand" }) : null;
|
|
398
471
|
const expandAtStart = expandable?.expandIconPosition !== "end";
|
|
@@ -443,6 +516,10 @@ function Table({
|
|
|
443
516
|
(isFixedLeft || isFixedRight) && "bg-[var(--tiger-surface-muted,#f9fafb)]"
|
|
444
517
|
),
|
|
445
518
|
style,
|
|
519
|
+
draggable: columnDraggable ? true : void 0,
|
|
520
|
+
onDragStart: columnDraggable ? () => handleDragStart(column.key) : void 0,
|
|
521
|
+
onDragOver: columnDraggable ? (e) => e.preventDefault() : void 0,
|
|
522
|
+
onDrop: columnDraggable ? () => handleDrop(column.key) : void 0,
|
|
446
523
|
onClick: column.sortable ? () => handleSort(column.key) : void 0,
|
|
447
524
|
children: [
|
|
448
525
|
/* @__PURE__ */ jsxs("div", { className: "flex items-center gap-2", children: [
|
|
@@ -507,7 +584,10 @@ function Table({
|
|
|
507
584
|
handleSelectAll,
|
|
508
585
|
columnLockable,
|
|
509
586
|
toggleColumnLock,
|
|
510
|
-
fixedColumnsInfo
|
|
587
|
+
fixedColumnsInfo,
|
|
588
|
+
columnDraggable,
|
|
589
|
+
handleDragStart,
|
|
590
|
+
handleDrop
|
|
511
591
|
]);
|
|
512
592
|
const renderTableBody = useCallback(() => {
|
|
513
593
|
if (loading) {
|
|
@@ -516,7 +596,7 @@ function Table({
|
|
|
516
596
|
if (paginatedData.length === 0) {
|
|
517
597
|
return /* @__PURE__ */ jsx("tbody", { children: /* @__PURE__ */ jsx("tr", { children: /* @__PURE__ */ jsx("td", { colSpan: totalColumnCount, className: tableEmptyStateClasses, children: /* @__PURE__ */ jsx("div", { role: "status", "aria-live": "polite", children: emptyText }) }) }) });
|
|
518
598
|
}
|
|
519
|
-
|
|
599
|
+
const renderDataRow = (record, index) => {
|
|
520
600
|
const key = pageRowKeys[index];
|
|
521
601
|
const isSelected = selectedRowKeySet.has(key);
|
|
522
602
|
const isExpanded = expandedRowKeySet.has(key);
|
|
@@ -581,15 +661,32 @@ function Table({
|
|
|
581
661
|
stickyBgClass,
|
|
582
662
|
hoverable && "group-hover:bg-[var(--tiger-surface-muted,#f9fafb)]"
|
|
583
663
|
) : void 0;
|
|
664
|
+
const isEditing = editingCell?.rowIndex === index && editingCell?.columnKey === column.key;
|
|
665
|
+
const cellEditable = isCellEditable(column.key, index);
|
|
584
666
|
return /* @__PURE__ */ jsx(
|
|
585
667
|
"td",
|
|
586
668
|
{
|
|
587
669
|
className: classNames(
|
|
588
670
|
getTableCellClasses(size, column.align || "left", column.className),
|
|
589
|
-
stickyCellClass
|
|
671
|
+
stickyCellClass,
|
|
672
|
+
cellEditable && getEditableCellClasses(!!isEditing)
|
|
590
673
|
),
|
|
591
674
|
style,
|
|
592
|
-
|
|
675
|
+
onDoubleClick: cellEditable ? () => startEditing(index, column.key, cellValue) : void 0,
|
|
676
|
+
children: isEditing ? /* @__PURE__ */ jsx(
|
|
677
|
+
"input",
|
|
678
|
+
{
|
|
679
|
+
className: editableCellInputClasses,
|
|
680
|
+
value: editingValue,
|
|
681
|
+
onChange: (e) => setEditingValue(e.target.value),
|
|
682
|
+
onBlur: commitEdit,
|
|
683
|
+
onKeyDown: (e) => {
|
|
684
|
+
if (e.key === "Enter") commitEdit();
|
|
685
|
+
if (e.key === "Escape") cancelEdit();
|
|
686
|
+
},
|
|
687
|
+
autoFocus: true
|
|
688
|
+
}
|
|
689
|
+
) : column.render ? column.render(record, index) : cellValue
|
|
593
690
|
},
|
|
594
691
|
column.key
|
|
595
692
|
);
|
|
@@ -607,7 +704,22 @@ function Table({
|
|
|
607
704
|
] }, key);
|
|
608
705
|
}
|
|
609
706
|
return rowNode;
|
|
610
|
-
}
|
|
707
|
+
};
|
|
708
|
+
if (groupedData) {
|
|
709
|
+
return /* @__PURE__ */ jsx("tbody", { children: Array.from(groupedData.entries()).map(([groupKey, groupItems]) => /* @__PURE__ */ jsxs(React.Fragment, { children: [
|
|
710
|
+
/* @__PURE__ */ jsx("tr", { className: tableGroupHeaderClasses, children: /* @__PURE__ */ jsxs("td", { colSpan: totalColumnCount, className: getGroupHeaderCellClasses(size), children: [
|
|
711
|
+
groupKey,
|
|
712
|
+
" (",
|
|
713
|
+
groupItems.length,
|
|
714
|
+
")"
|
|
715
|
+
] }) }),
|
|
716
|
+
groupItems.map((record, idx) => {
|
|
717
|
+
const globalIndex = paginatedData.indexOf(record);
|
|
718
|
+
return renderDataRow(record, globalIndex >= 0 ? globalIndex : idx);
|
|
719
|
+
})
|
|
720
|
+
] }, `group-${groupKey}`)) });
|
|
721
|
+
}
|
|
722
|
+
return /* @__PURE__ */ jsx("tbody", { children: paginatedData.map((record, index) => renderDataRow(record, index)) });
|
|
611
723
|
}, [
|
|
612
724
|
loading,
|
|
613
725
|
paginatedData,
|
|
@@ -626,7 +738,14 @@ function Table({
|
|
|
626
738
|
handleRowClick,
|
|
627
739
|
handleSelectRow,
|
|
628
740
|
handleToggleExpand,
|
|
629
|
-
fixedColumnsInfo
|
|
741
|
+
fixedColumnsInfo,
|
|
742
|
+
groupedData,
|
|
743
|
+
editingCell,
|
|
744
|
+
editingValue,
|
|
745
|
+
isCellEditable,
|
|
746
|
+
startEditing,
|
|
747
|
+
commitEdit,
|
|
748
|
+
cancelEdit
|
|
630
749
|
]);
|
|
631
750
|
const renderPagination = useCallback(() => {
|
|
632
751
|
if (pagination === false || !paginationInfo) {
|
|
@@ -687,19 +806,36 @@ function Table({
|
|
|
687
806
|
handlePageChange,
|
|
688
807
|
handlePageSizeChange
|
|
689
808
|
]);
|
|
690
|
-
const
|
|
691
|
-
()
|
|
809
|
+
const renderSummaryRow = useCallback(() => {
|
|
810
|
+
if (!summaryRow?.show) return null;
|
|
811
|
+
return /* @__PURE__ */ jsx("tfoot", { children: /* @__PURE__ */ jsxs("tr", { className: tableSummaryRowClasses, children: [
|
|
812
|
+
rowSelection && rowSelection.showCheckbox !== false && /* @__PURE__ */ jsx("td", { className: getTableCellClasses(size, "left") }),
|
|
813
|
+
expandable && /* @__PURE__ */ jsx("td", { className: getTableCellClasses(size, "left") }),
|
|
814
|
+
displayColumns.map((column) => /* @__PURE__ */ jsx("td", { className: getTableCellClasses(size, column.align || "left"), children: summaryRow.data[column.dataKey || column.key] ?? "" }, column.key))
|
|
815
|
+
] }) });
|
|
816
|
+
}, [summaryRow, displayColumns, size, rowSelection, expandable]);
|
|
817
|
+
const wrapperStyle = useMemo(() => {
|
|
818
|
+
if (virtual) {
|
|
819
|
+
return {
|
|
820
|
+
height: typeof virtualHeight === "number" ? `${virtualHeight}px` : virtualHeight,
|
|
821
|
+
overflow: "auto"
|
|
822
|
+
};
|
|
823
|
+
}
|
|
824
|
+
return maxHeight ? {
|
|
692
825
|
maxHeight: typeof maxHeight === "number" ? `${maxHeight}px` : maxHeight
|
|
693
|
-
} : void 0
|
|
694
|
-
|
|
695
|
-
);
|
|
826
|
+
} : void 0;
|
|
827
|
+
}, [maxHeight, virtual, virtualHeight]);
|
|
696
828
|
return /* @__PURE__ */ jsxs(
|
|
697
829
|
"div",
|
|
698
830
|
{
|
|
699
|
-
className: getTableWrapperClasses(
|
|
831
|
+
className: getTableWrapperClasses(
|
|
832
|
+
bordered,
|
|
833
|
+
maxHeight || (virtual ? virtualHeight : void 0)
|
|
834
|
+
),
|
|
700
835
|
style: wrapperStyle,
|
|
701
836
|
"aria-busy": loading,
|
|
702
837
|
children: [
|
|
838
|
+
exportable && /* @__PURE__ */ jsx("div", { className: "mb-2 flex justify-end", children: /* @__PURE__ */ jsx("button", { type: "button", className: tableExportButtonClasses, onClick: handleExport, children: "Export CSV" }) }),
|
|
703
839
|
/* @__PURE__ */ jsxs(
|
|
704
840
|
"table",
|
|
705
841
|
{
|
|
@@ -715,7 +851,8 @@ function Table({
|
|
|
715
851
|
} : props.style,
|
|
716
852
|
children: [
|
|
717
853
|
renderTableHeader(),
|
|
718
|
-
renderTableBody()
|
|
854
|
+
renderTableBody(),
|
|
855
|
+
renderSummaryRow()
|
|
719
856
|
]
|
|
720
857
|
}
|
|
721
858
|
),
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import { usePopup } from './chunk-
|
|
1
|
+
import { usePopup } from './chunk-AMOH5AMN.mjs';
|
|
2
2
|
import { useRef, useMemo } from 'react';
|
|
3
3
|
import { createFloatingIdFactory, classNames, getTooltipContainerClasses, getTooltipTriggerClasses, getTooltipContentClasses } from '@expcat/tigercat-core';
|
|
4
4
|
import { jsxs, jsx } from 'react/jsx-runtime';
|
|
5
5
|
|
|
6
6
|
var createTooltipId = createFloatingIdFactory("tooltip");
|
|
7
7
|
var Tooltip = ({
|
|
8
|
-
|
|
9
|
-
|
|
8
|
+
open,
|
|
9
|
+
defaultOpen = false,
|
|
10
10
|
content,
|
|
11
11
|
trigger = "hover",
|
|
12
12
|
placement = "top",
|
|
@@ -15,21 +15,14 @@ var Tooltip = ({
|
|
|
15
15
|
className,
|
|
16
16
|
style,
|
|
17
17
|
children,
|
|
18
|
-
|
|
18
|
+
onOpenChange,
|
|
19
19
|
...divProps
|
|
20
20
|
}) => {
|
|
21
21
|
const tooltipIdRef = useRef(null);
|
|
22
22
|
if (!tooltipIdRef.current) tooltipIdRef.current = createTooltipId();
|
|
23
23
|
const tooltipId = tooltipIdRef.current;
|
|
24
24
|
const describedBy = content != null ? tooltipId : void 0;
|
|
25
|
-
const {
|
|
26
|
-
currentVisible,
|
|
27
|
-
containerRef,
|
|
28
|
-
triggerRef,
|
|
29
|
-
floatingRef,
|
|
30
|
-
floatingStyles,
|
|
31
|
-
triggerHandlers
|
|
32
|
-
} = usePopup({ visible, defaultVisible, disabled, trigger, placement, offset, onVisibleChange });
|
|
25
|
+
const { currentVisible, containerRef, triggerRef, floatingRef, floatingStyles, triggerHandlers } = usePopup({ open, defaultOpen, disabled, trigger, placement, offset, onOpenChange });
|
|
33
26
|
const containerClasses = useMemo(
|
|
34
27
|
() => classNames(getTooltipContainerClasses(), className),
|
|
35
28
|
[className]
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { useCheckboxGroup } from './chunk-
|
|
1
|
+
import { useCheckboxGroup } from './chunk-DKT2EYVM.mjs';
|
|
2
2
|
import { useState, useRef, useEffect } from 'react';
|
|
3
3
|
import { getCheckboxClasses, classNames, getCheckboxLabelClasses } from '@expcat/tigercat-core';
|
|
4
4
|
import { jsx, jsxs } from 'react/jsx-runtime';
|