@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
|
@@ -0,0 +1,215 @@
|
|
|
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
|
+
// src/components/Transfer.tsx
|
|
8
|
+
var TRANSFER_KEYS = /* @__PURE__ */ new Set([
|
|
9
|
+
"value",
|
|
10
|
+
"dataSource",
|
|
11
|
+
"size",
|
|
12
|
+
"disabled",
|
|
13
|
+
"showSearch",
|
|
14
|
+
"sourceTitle",
|
|
15
|
+
"targetTitle",
|
|
16
|
+
"notFoundText",
|
|
17
|
+
"filterOption",
|
|
18
|
+
"onChange"
|
|
19
|
+
]);
|
|
20
|
+
var Transfer = (props) => {
|
|
21
|
+
const {
|
|
22
|
+
value = [],
|
|
23
|
+
dataSource = [],
|
|
24
|
+
size = "md",
|
|
25
|
+
disabled = false,
|
|
26
|
+
showSearch = false,
|
|
27
|
+
sourceTitle = "Source",
|
|
28
|
+
targetTitle = "Target",
|
|
29
|
+
notFoundText = "No data",
|
|
30
|
+
filterOption,
|
|
31
|
+
className,
|
|
32
|
+
onChange,
|
|
33
|
+
...rest
|
|
34
|
+
} = props;
|
|
35
|
+
const divProps = {};
|
|
36
|
+
for (const key of Object.keys(rest)) {
|
|
37
|
+
if (!TRANSFER_KEYS.has(key)) {
|
|
38
|
+
divProps[key] = rest[key];
|
|
39
|
+
}
|
|
40
|
+
}
|
|
41
|
+
const [sourceSelectedKeys, setSourceSelectedKeys] = react.useState(/* @__PURE__ */ new Set());
|
|
42
|
+
const [targetSelectedKeys, setTargetSelectedKeys] = react.useState(/* @__PURE__ */ new Set());
|
|
43
|
+
const [sourceSearch, setSourceSearch] = react.useState("");
|
|
44
|
+
const [targetSearch, setTargetSearch] = react.useState("");
|
|
45
|
+
const { sourceItems, targetItems } = react.useMemo(
|
|
46
|
+
() => tigercatCore.splitTransferData(dataSource, value),
|
|
47
|
+
[dataSource, value]
|
|
48
|
+
);
|
|
49
|
+
const filteredSourceItems = react.useMemo(
|
|
50
|
+
() => tigercatCore.filterTransferItems(sourceItems, sourceSearch, filterOption),
|
|
51
|
+
[sourceItems, sourceSearch, filterOption]
|
|
52
|
+
);
|
|
53
|
+
const filteredTargetItems = react.useMemo(
|
|
54
|
+
() => tigercatCore.filterTransferItems(targetItems, targetSearch, filterOption),
|
|
55
|
+
[targetItems, targetSearch, filterOption]
|
|
56
|
+
);
|
|
57
|
+
const canMoveRight = !disabled && [...sourceSelectedKeys].some((key) => {
|
|
58
|
+
const item = dataSource.find((d) => d.key === key);
|
|
59
|
+
return item && !item.disabled;
|
|
60
|
+
});
|
|
61
|
+
const canMoveLeft = !disabled && [...targetSelectedKeys].some((key) => {
|
|
62
|
+
const item = dataSource.find((d) => d.key === key);
|
|
63
|
+
return item && !item.disabled;
|
|
64
|
+
});
|
|
65
|
+
function toggleSourceItem(key) {
|
|
66
|
+
setSourceSelectedKeys((prev) => {
|
|
67
|
+
const next = new Set(prev);
|
|
68
|
+
if (next.has(key)) next.delete(key);
|
|
69
|
+
else next.add(key);
|
|
70
|
+
return next;
|
|
71
|
+
});
|
|
72
|
+
}
|
|
73
|
+
function toggleTargetItem(key) {
|
|
74
|
+
setTargetSelectedKeys((prev) => {
|
|
75
|
+
const next = new Set(prev);
|
|
76
|
+
if (next.has(key)) next.delete(key);
|
|
77
|
+
else next.add(key);
|
|
78
|
+
return next;
|
|
79
|
+
});
|
|
80
|
+
}
|
|
81
|
+
function moveRight() {
|
|
82
|
+
if (!canMoveRight) return;
|
|
83
|
+
const keysToMove = [...sourceSelectedKeys].filter((key) => {
|
|
84
|
+
const item = dataSource.find((d) => d.key === key);
|
|
85
|
+
return item && !item.disabled;
|
|
86
|
+
});
|
|
87
|
+
const newTargetKeys = [...value, ...keysToMove];
|
|
88
|
+
setSourceSelectedKeys(/* @__PURE__ */ new Set());
|
|
89
|
+
onChange?.(newTargetKeys, "right", keysToMove);
|
|
90
|
+
}
|
|
91
|
+
function moveLeft() {
|
|
92
|
+
if (!canMoveLeft) return;
|
|
93
|
+
const keysToRemove = new Set(
|
|
94
|
+
[...targetSelectedKeys].filter((key) => {
|
|
95
|
+
const item = dataSource.find((d) => d.key === key);
|
|
96
|
+
return item && !item.disabled;
|
|
97
|
+
})
|
|
98
|
+
);
|
|
99
|
+
const newTargetKeys = value.filter((k) => !keysToRemove.has(k));
|
|
100
|
+
setTargetSelectedKeys(/* @__PURE__ */ new Set());
|
|
101
|
+
onChange?.(newTargetKeys, "left", [...keysToRemove]);
|
|
102
|
+
}
|
|
103
|
+
function renderPanel(title, items, selectedKeys, toggleFn, searchValue, onSearch) {
|
|
104
|
+
return /* @__PURE__ */ jsxRuntime.jsxs("div", { className: tigercatCore.transferPanelClasses, role: "group", "aria-label": title, children: [
|
|
105
|
+
/* @__PURE__ */ jsxRuntime.jsx("div", { className: tigercatCore.transferPanelHeaderClasses, children: /* @__PURE__ */ jsxRuntime.jsxs("span", { className: "font-medium text-[var(--tiger-transfer-title,var(--tiger-text,#111827))]", children: [
|
|
106
|
+
title,
|
|
107
|
+
" (",
|
|
108
|
+
items.length,
|
|
109
|
+
")"
|
|
110
|
+
] }) }),
|
|
111
|
+
showSearch && /* @__PURE__ */ jsxRuntime.jsx(
|
|
112
|
+
"input",
|
|
113
|
+
{
|
|
114
|
+
type: "text",
|
|
115
|
+
className: tigercatCore.transferSearchClasses,
|
|
116
|
+
placeholder: "Search...",
|
|
117
|
+
value: searchValue,
|
|
118
|
+
"aria-label": `Search ${title}`,
|
|
119
|
+
onChange: (e) => onSearch(e.target.value)
|
|
120
|
+
}
|
|
121
|
+
),
|
|
122
|
+
/* @__PURE__ */ jsxRuntime.jsx("div", { className: tigercatCore.transferPanelBodyClasses, role: "listbox", children: items.length > 0 ? items.map((item) => {
|
|
123
|
+
const isSelected = selectedKeys.has(item.key);
|
|
124
|
+
const isDisabled = disabled || !!item.disabled;
|
|
125
|
+
return /* @__PURE__ */ jsxRuntime.jsxs(
|
|
126
|
+
"label",
|
|
127
|
+
{
|
|
128
|
+
className: tigercatCore.getTransferItemClasses(isSelected, isDisabled, size),
|
|
129
|
+
role: "option",
|
|
130
|
+
"aria-selected": isSelected,
|
|
131
|
+
"aria-disabled": isDisabled,
|
|
132
|
+
children: [
|
|
133
|
+
/* @__PURE__ */ jsxRuntime.jsx(
|
|
134
|
+
"input",
|
|
135
|
+
{
|
|
136
|
+
type: "checkbox",
|
|
137
|
+
className: tigercatCore.getTransferCheckboxClasses(size),
|
|
138
|
+
checked: isSelected,
|
|
139
|
+
disabled: isDisabled,
|
|
140
|
+
onChange: () => {
|
|
141
|
+
if (!isDisabled) toggleFn(item.key);
|
|
142
|
+
}
|
|
143
|
+
}
|
|
144
|
+
),
|
|
145
|
+
/* @__PURE__ */ jsxRuntime.jsx("span", { className: "flex-1 truncate", children: item.label })
|
|
146
|
+
]
|
|
147
|
+
},
|
|
148
|
+
String(item.key)
|
|
149
|
+
);
|
|
150
|
+
}) : /* @__PURE__ */ jsxRuntime.jsx("div", { className: tigercatCore.transferEmptyClasses, children: notFoundText }) })
|
|
151
|
+
] });
|
|
152
|
+
}
|
|
153
|
+
return /* @__PURE__ */ jsxRuntime.jsxs("div", { className: tigercatCore.classNames(tigercatCore.transferBaseClasses, className), ...divProps, children: [
|
|
154
|
+
renderPanel(
|
|
155
|
+
sourceTitle,
|
|
156
|
+
filteredSourceItems,
|
|
157
|
+
sourceSelectedKeys,
|
|
158
|
+
toggleSourceItem,
|
|
159
|
+
sourceSearch,
|
|
160
|
+
setSourceSearch
|
|
161
|
+
),
|
|
162
|
+
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: tigercatCore.transferOperationClasses, children: [
|
|
163
|
+
/* @__PURE__ */ jsxRuntime.jsx(
|
|
164
|
+
"button",
|
|
165
|
+
{
|
|
166
|
+
type: "button",
|
|
167
|
+
className: tigercatCore.getTransferButtonClasses(!canMoveRight),
|
|
168
|
+
disabled: !canMoveRight,
|
|
169
|
+
"aria-label": "Move selected to target",
|
|
170
|
+
onClick: moveRight,
|
|
171
|
+
children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
172
|
+
"svg",
|
|
173
|
+
{
|
|
174
|
+
className: "w-4 h-4",
|
|
175
|
+
viewBox: tigercatCore.icon20ViewBox,
|
|
176
|
+
fill: "currentColor",
|
|
177
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
178
|
+
children: /* @__PURE__ */ jsxRuntime.jsx("path", { d: tigercatCore.chevronRightSolidIcon20PathD, fillRule: "evenodd", clipRule: "evenodd" })
|
|
179
|
+
}
|
|
180
|
+
)
|
|
181
|
+
}
|
|
182
|
+
),
|
|
183
|
+
/* @__PURE__ */ jsxRuntime.jsx(
|
|
184
|
+
"button",
|
|
185
|
+
{
|
|
186
|
+
type: "button",
|
|
187
|
+
className: tigercatCore.getTransferButtonClasses(!canMoveLeft),
|
|
188
|
+
disabled: !canMoveLeft,
|
|
189
|
+
"aria-label": "Move selected to source",
|
|
190
|
+
onClick: moveLeft,
|
|
191
|
+
children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
192
|
+
"svg",
|
|
193
|
+
{
|
|
194
|
+
className: "w-4 h-4",
|
|
195
|
+
viewBox: tigercatCore.icon20ViewBox,
|
|
196
|
+
fill: "currentColor",
|
|
197
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
198
|
+
children: /* @__PURE__ */ jsxRuntime.jsx("path", { d: tigercatCore.chevronLeftSolidIcon20PathD, fillRule: "evenodd", clipRule: "evenodd" })
|
|
199
|
+
}
|
|
200
|
+
)
|
|
201
|
+
}
|
|
202
|
+
)
|
|
203
|
+
] }),
|
|
204
|
+
renderPanel(
|
|
205
|
+
targetTitle,
|
|
206
|
+
filteredTargetItems,
|
|
207
|
+
targetSelectedKeys,
|
|
208
|
+
toggleTargetItem,
|
|
209
|
+
targetSearch,
|
|
210
|
+
setTargetSearch
|
|
211
|
+
)
|
|
212
|
+
] });
|
|
213
|
+
};
|
|
214
|
+
|
|
215
|
+
exports.Transfer = Transfer;
|
|
@@ -0,0 +1,94 @@
|
|
|
1
|
+
import { useState, useRef, useMemo, useCallback, useEffect } from 'react';
|
|
2
|
+
import { resolveWatermarkFont, watermarkDefaults, renderWatermarkCanvas, getWatermarkOverlayStyle, classNames, watermarkWrapperClasses } from '@expcat/tigercat-core';
|
|
3
|
+
import { jsxs, jsx } from 'react/jsx-runtime';
|
|
4
|
+
|
|
5
|
+
// src/components/Watermark.tsx
|
|
6
|
+
var Watermark = ({
|
|
7
|
+
content,
|
|
8
|
+
image,
|
|
9
|
+
width = watermarkDefaults.width,
|
|
10
|
+
height = watermarkDefaults.height,
|
|
11
|
+
rotate = watermarkDefaults.rotate,
|
|
12
|
+
zIndex = watermarkDefaults.zIndex,
|
|
13
|
+
gapX = watermarkDefaults.gapX,
|
|
14
|
+
gapY = watermarkDefaults.gapY,
|
|
15
|
+
offsetX = watermarkDefaults.offsetX,
|
|
16
|
+
offsetY = watermarkDefaults.offsetY,
|
|
17
|
+
font,
|
|
18
|
+
className,
|
|
19
|
+
children,
|
|
20
|
+
...props
|
|
21
|
+
}) => {
|
|
22
|
+
const [base64, setBase64] = useState();
|
|
23
|
+
const wrapperRef = useRef(null);
|
|
24
|
+
const resolvedFont = useMemo(() => resolveWatermarkFont(font), [font]);
|
|
25
|
+
const generate = useCallback(() => {
|
|
26
|
+
if (image) {
|
|
27
|
+
const img = new Image();
|
|
28
|
+
img.crossOrigin = "anonymous";
|
|
29
|
+
img.onload = () => {
|
|
30
|
+
const canvas = document.createElement("canvas");
|
|
31
|
+
const dpr = window.devicePixelRatio || 1;
|
|
32
|
+
canvas.width = width * dpr;
|
|
33
|
+
canvas.height = height * dpr;
|
|
34
|
+
const ctx = canvas.getContext("2d");
|
|
35
|
+
if (!ctx) return;
|
|
36
|
+
ctx.scale(dpr, dpr);
|
|
37
|
+
ctx.translate(width / 2, height / 2);
|
|
38
|
+
ctx.rotate(rotate * Math.PI / 180);
|
|
39
|
+
ctx.translate(-width / 2, -height / 2);
|
|
40
|
+
ctx.drawImage(img, 0, 0, width, height);
|
|
41
|
+
setBase64(canvas.toDataURL());
|
|
42
|
+
};
|
|
43
|
+
img.src = image;
|
|
44
|
+
} else {
|
|
45
|
+
setBase64(
|
|
46
|
+
renderWatermarkCanvas({
|
|
47
|
+
content,
|
|
48
|
+
width,
|
|
49
|
+
height,
|
|
50
|
+
rotate,
|
|
51
|
+
font: resolvedFont
|
|
52
|
+
})
|
|
53
|
+
);
|
|
54
|
+
}
|
|
55
|
+
}, [content, image, width, height, rotate, resolvedFont]);
|
|
56
|
+
useEffect(() => {
|
|
57
|
+
generate();
|
|
58
|
+
}, [generate]);
|
|
59
|
+
useEffect(() => {
|
|
60
|
+
if (typeof MutationObserver === "undefined" || !wrapperRef.current) return;
|
|
61
|
+
const observer = new MutationObserver((mutations) => {
|
|
62
|
+
for (const m of mutations) {
|
|
63
|
+
for (const node of Array.from(m.removedNodes)) {
|
|
64
|
+
if (node.dataset?.watermark === "true") {
|
|
65
|
+
generate();
|
|
66
|
+
return;
|
|
67
|
+
}
|
|
68
|
+
}
|
|
69
|
+
}
|
|
70
|
+
});
|
|
71
|
+
observer.observe(wrapperRef.current, { childList: true });
|
|
72
|
+
return () => observer.disconnect();
|
|
73
|
+
}, [generate]);
|
|
74
|
+
const overlayStyle = useMemo(
|
|
75
|
+
() => getWatermarkOverlayStyle({
|
|
76
|
+
base64Url: base64,
|
|
77
|
+
width,
|
|
78
|
+
height,
|
|
79
|
+
gapX,
|
|
80
|
+
gapY,
|
|
81
|
+
offsetX,
|
|
82
|
+
offsetY,
|
|
83
|
+
zIndex
|
|
84
|
+
}),
|
|
85
|
+
[base64, width, height, gapX, gapY, offsetX, offsetY, zIndex]
|
|
86
|
+
);
|
|
87
|
+
const wrapperClasses = useMemo(() => classNames(watermarkWrapperClasses, className), [className]);
|
|
88
|
+
return /* @__PURE__ */ jsxs("div", { ref: wrapperRef, className: wrapperClasses, ...props, children: [
|
|
89
|
+
children,
|
|
90
|
+
/* @__PURE__ */ jsx("div", { "data-watermark": "true", "aria-hidden": "true", style: overlayStyle })
|
|
91
|
+
] });
|
|
92
|
+
};
|
|
93
|
+
|
|
94
|
+
export { Watermark };
|
|
@@ -0,0 +1,143 @@
|
|
|
1
|
+
import { StatusIcon } from './chunk-FLYJVZED.mjs';
|
|
2
|
+
import { useState, useRef, useCallback, useEffect } from 'react';
|
|
3
|
+
import ReactDOM from 'react-dom';
|
|
4
|
+
import { getTourTargetRect, getTourPopoverPosition, getTourSpotlightStyle, classNames, tourCloseButtonClasses, closeIconPathD, tourTitleClasses, tourDescriptionClasses, tourFooterClasses, tourIndicatorClasses, tourPopoverClasses } from '@expcat/tigercat-core';
|
|
5
|
+
import { jsxs, Fragment, jsx } from 'react/jsx-runtime';
|
|
6
|
+
|
|
7
|
+
var Tour = ({
|
|
8
|
+
steps,
|
|
9
|
+
open = false,
|
|
10
|
+
current: controlledCurrent,
|
|
11
|
+
nextText = "Next",
|
|
12
|
+
prevText = "Previous",
|
|
13
|
+
finishText = "Finish",
|
|
14
|
+
closable = true,
|
|
15
|
+
showIndicators = true,
|
|
16
|
+
className,
|
|
17
|
+
onClose,
|
|
18
|
+
onFinish,
|
|
19
|
+
onChange
|
|
20
|
+
}) => {
|
|
21
|
+
const [internalStep, setInternalStep] = useState(0);
|
|
22
|
+
const currentStep = controlledCurrent ?? internalStep;
|
|
23
|
+
const step = steps[currentStep];
|
|
24
|
+
const [targetRect, setTargetRect] = useState();
|
|
25
|
+
const popoverRef = useRef(null);
|
|
26
|
+
const updateRect = useCallback(() => {
|
|
27
|
+
if (step?.target) {
|
|
28
|
+
setTargetRect(getTourTargetRect(step.target));
|
|
29
|
+
} else {
|
|
30
|
+
setTargetRect(void 0);
|
|
31
|
+
}
|
|
32
|
+
}, [step]);
|
|
33
|
+
useEffect(() => {
|
|
34
|
+
if (open) updateRect();
|
|
35
|
+
}, [open, currentStep, updateRect]);
|
|
36
|
+
useEffect(() => {
|
|
37
|
+
if (!open) return;
|
|
38
|
+
const handler = () => updateRect();
|
|
39
|
+
window.addEventListener("resize", handler);
|
|
40
|
+
window.addEventListener("scroll", handler, true);
|
|
41
|
+
return () => {
|
|
42
|
+
window.removeEventListener("resize", handler);
|
|
43
|
+
window.removeEventListener("scroll", handler, true);
|
|
44
|
+
};
|
|
45
|
+
}, [open, updateRect]);
|
|
46
|
+
const goTo = useCallback(
|
|
47
|
+
(idx) => {
|
|
48
|
+
setInternalStep(idx);
|
|
49
|
+
onChange?.(idx);
|
|
50
|
+
},
|
|
51
|
+
[onChange]
|
|
52
|
+
);
|
|
53
|
+
const next = useCallback(() => {
|
|
54
|
+
if (currentStep < steps.length - 1) {
|
|
55
|
+
goTo(currentStep + 1);
|
|
56
|
+
} else {
|
|
57
|
+
onFinish?.();
|
|
58
|
+
onClose?.();
|
|
59
|
+
}
|
|
60
|
+
}, [currentStep, steps.length, goTo, onFinish, onClose]);
|
|
61
|
+
const prev = useCallback(() => {
|
|
62
|
+
if (currentStep > 0) goTo(currentStep - 1);
|
|
63
|
+
}, [currentStep, goTo]);
|
|
64
|
+
const close = useCallback(() => {
|
|
65
|
+
onClose?.();
|
|
66
|
+
}, [onClose]);
|
|
67
|
+
if (!open || !step) return null;
|
|
68
|
+
if (typeof document === "undefined") return null;
|
|
69
|
+
const placement = step.placement ?? "bottom";
|
|
70
|
+
const showMask = step.mask !== false;
|
|
71
|
+
const isLast = currentStep === steps.length - 1;
|
|
72
|
+
const isFirst = currentStep === 0;
|
|
73
|
+
let popoverStyle;
|
|
74
|
+
if (targetRect) {
|
|
75
|
+
const pos = getTourPopoverPosition(targetRect, 320, 160, placement);
|
|
76
|
+
popoverStyle = { position: "absolute", top: pos.top, left: pos.left };
|
|
77
|
+
} else {
|
|
78
|
+
popoverStyle = {
|
|
79
|
+
position: "fixed",
|
|
80
|
+
top: "50%",
|
|
81
|
+
left: "50%",
|
|
82
|
+
transform: "translate(-50%, -50%)"
|
|
83
|
+
};
|
|
84
|
+
}
|
|
85
|
+
const content = /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
86
|
+
showMask && targetRect && /* @__PURE__ */ jsx("div", { style: getTourSpotlightStyle(targetRect), "aria-hidden": "true" }),
|
|
87
|
+
showMask && !targetRect && /* @__PURE__ */ jsx("div", { className: "fixed inset-0 z-[1000] bg-black/45", "aria-hidden": "true", onClick: close }),
|
|
88
|
+
/* @__PURE__ */ jsxs(
|
|
89
|
+
"div",
|
|
90
|
+
{
|
|
91
|
+
ref: popoverRef,
|
|
92
|
+
className: classNames(tourPopoverClasses, className),
|
|
93
|
+
style: popoverStyle,
|
|
94
|
+
role: "dialog",
|
|
95
|
+
"aria-modal": "true",
|
|
96
|
+
children: [
|
|
97
|
+
closable && /* @__PURE__ */ jsx(
|
|
98
|
+
"button",
|
|
99
|
+
{
|
|
100
|
+
className: tourCloseButtonClasses,
|
|
101
|
+
type: "button",
|
|
102
|
+
"aria-label": "Close tour",
|
|
103
|
+
onClick: close,
|
|
104
|
+
children: /* @__PURE__ */ jsx(StatusIcon, { path: closeIconPathD, className: "h-4 w-4" })
|
|
105
|
+
}
|
|
106
|
+
),
|
|
107
|
+
step.title && /* @__PURE__ */ jsx("div", { className: tourTitleClasses, children: step.title }),
|
|
108
|
+
step.description && /* @__PURE__ */ jsx("div", { className: tourDescriptionClasses, children: step.description }),
|
|
109
|
+
/* @__PURE__ */ jsxs("div", { className: tourFooterClasses, children: [
|
|
110
|
+
showIndicators && /* @__PURE__ */ jsxs("span", { className: tourIndicatorClasses, children: [
|
|
111
|
+
currentStep + 1,
|
|
112
|
+
" / ",
|
|
113
|
+
steps.length
|
|
114
|
+
] }),
|
|
115
|
+
/* @__PURE__ */ jsxs("div", { className: "flex items-center", children: [
|
|
116
|
+
!isFirst && /* @__PURE__ */ jsx(
|
|
117
|
+
"button",
|
|
118
|
+
{
|
|
119
|
+
type: "button",
|
|
120
|
+
className: "px-3 py-1.5 text-sm rounded-md border border-[var(--tiger-border,#e5e7eb)] text-[var(--tiger-text,#111827)] hover:bg-[var(--tiger-surface-muted,#f9fafb)] transition-colors mr-2",
|
|
121
|
+
onClick: prev,
|
|
122
|
+
children: prevText
|
|
123
|
+
}
|
|
124
|
+
),
|
|
125
|
+
/* @__PURE__ */ jsx(
|
|
126
|
+
"button",
|
|
127
|
+
{
|
|
128
|
+
type: "button",
|
|
129
|
+
className: "px-3 py-1.5 text-sm rounded-md bg-[var(--tiger-primary,#2563eb)] text-white hover:bg-[var(--tiger-primary-hover,#1d4ed8)] transition-colors",
|
|
130
|
+
onClick: next,
|
|
131
|
+
children: isLast ? finishText : nextText
|
|
132
|
+
}
|
|
133
|
+
)
|
|
134
|
+
] })
|
|
135
|
+
] })
|
|
136
|
+
]
|
|
137
|
+
}
|
|
138
|
+
)
|
|
139
|
+
] });
|
|
140
|
+
return ReactDOM.createPortal(content, document.body);
|
|
141
|
+
};
|
|
142
|
+
|
|
143
|
+
export { Tour };
|
|
@@ -0,0 +1,58 @@
|
|
|
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
|
+
// src/components/InfiniteScroll.tsx
|
|
8
|
+
var InfiniteScroll = ({
|
|
9
|
+
hasMore = true,
|
|
10
|
+
loading = false,
|
|
11
|
+
threshold = 100,
|
|
12
|
+
loadingText = "Loading...",
|
|
13
|
+
endText = "No more data",
|
|
14
|
+
direction = "vertical",
|
|
15
|
+
inverse = false,
|
|
16
|
+
disabled = false,
|
|
17
|
+
className,
|
|
18
|
+
children,
|
|
19
|
+
loader,
|
|
20
|
+
end,
|
|
21
|
+
onLoadMore,
|
|
22
|
+
...rest
|
|
23
|
+
}) => {
|
|
24
|
+
const containerRef = react.useRef(null);
|
|
25
|
+
const containerClasses = react.useMemo(
|
|
26
|
+
() => tigercatCore.getInfiniteScrollContainerClasses(direction, className),
|
|
27
|
+
[direction, className]
|
|
28
|
+
);
|
|
29
|
+
const checkScroll = react.useCallback(() => {
|
|
30
|
+
if (disabled || loading || !hasMore) return;
|
|
31
|
+
const el = containerRef.current;
|
|
32
|
+
if (!el) return;
|
|
33
|
+
if (tigercatCore.shouldLoadMore(el, threshold, direction, inverse)) {
|
|
34
|
+
onLoadMore?.();
|
|
35
|
+
}
|
|
36
|
+
}, [disabled, loading, hasMore, threshold, direction, inverse, onLoadMore]);
|
|
37
|
+
react.useEffect(() => {
|
|
38
|
+
const el = containerRef.current;
|
|
39
|
+
if (!el) return;
|
|
40
|
+
el.addEventListener("scroll", checkScroll, { passive: true });
|
|
41
|
+
return () => el.removeEventListener("scroll", checkScroll);
|
|
42
|
+
}, [checkScroll]);
|
|
43
|
+
const loaderEl = loading ? /* @__PURE__ */ jsxRuntime.jsx("div", { className: tigercatCore.infiniteScrollLoaderClasses, role: "status", "aria-live": "polite", children: loader ?? loadingText }) : null;
|
|
44
|
+
const endEl = !hasMore && !loading ? /* @__PURE__ */ jsxRuntime.jsx("div", { className: tigercatCore.infiniteScrollEndClasses, children: end ?? endText }) : null;
|
|
45
|
+
return /* @__PURE__ */ jsxRuntime.jsx("div", { ref: containerRef, className: tigercatCore.classNames(containerClasses), ...rest, children: inverse ? /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
|
|
46
|
+
loaderEl,
|
|
47
|
+
children,
|
|
48
|
+
endEl
|
|
49
|
+
] }) : /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
|
|
50
|
+
children,
|
|
51
|
+
loaderEl,
|
|
52
|
+
endEl
|
|
53
|
+
] }) });
|
|
54
|
+
};
|
|
55
|
+
var InfiniteScroll_default = InfiniteScroll;
|
|
56
|
+
|
|
57
|
+
exports.InfiniteScroll = InfiniteScroll;
|
|
58
|
+
exports.InfiniteScroll_default = InfiniteScroll_default;
|
|
@@ -0,0 +1,142 @@
|
|
|
1
|
+
import { ChartCanvas } from './chunk-IS467WAO.mjs';
|
|
2
|
+
import React, { useMemo } from 'react';
|
|
3
|
+
import { getChartInnerRect, valueToGaugeAngle, computeGaugeTicks, createGaugeArcPath, createGaugeNeedlePath, classNames, chartAxisTickTextClasses } from '@expcat/tigercat-core';
|
|
4
|
+
import { jsxs, jsx } from 'react/jsx-runtime';
|
|
5
|
+
|
|
6
|
+
var GaugeChart = ({
|
|
7
|
+
width = 280,
|
|
8
|
+
height = 200,
|
|
9
|
+
padding = 24,
|
|
10
|
+
value,
|
|
11
|
+
min = 0,
|
|
12
|
+
max = 100,
|
|
13
|
+
startAngle = 135,
|
|
14
|
+
endAngle = 405,
|
|
15
|
+
arcWidth = 20,
|
|
16
|
+
showTicks = true,
|
|
17
|
+
tickCount = 5,
|
|
18
|
+
valueFormatter,
|
|
19
|
+
label,
|
|
20
|
+
segments,
|
|
21
|
+
trackColor = "var(--tiger-border,#e5e7eb)",
|
|
22
|
+
color = "var(--tiger-primary,#2563eb)",
|
|
23
|
+
title: chartTitle,
|
|
24
|
+
desc,
|
|
25
|
+
className
|
|
26
|
+
}) => {
|
|
27
|
+
const innerRect = useMemo(
|
|
28
|
+
() => getChartInnerRect(width, height, padding),
|
|
29
|
+
[width, height, padding]
|
|
30
|
+
);
|
|
31
|
+
const radius = useMemo(
|
|
32
|
+
() => Math.min(innerRect.width, innerRect.height) / 2 - 4,
|
|
33
|
+
[innerRect.width, innerRect.height]
|
|
34
|
+
);
|
|
35
|
+
const cx = innerRect.width / 2;
|
|
36
|
+
const cy = innerRect.height / 2;
|
|
37
|
+
const needleAngle = useMemo(
|
|
38
|
+
() => valueToGaugeAngle(value, min, max, startAngle, endAngle),
|
|
39
|
+
[value, min, max, startAngle, endAngle]
|
|
40
|
+
);
|
|
41
|
+
const ticks = useMemo(
|
|
42
|
+
() => showTicks ? computeGaugeTicks(cx, cy, radius, min, max, startAngle, endAngle, tickCount) : [],
|
|
43
|
+
[showTicks, cx, cy, radius, min, max, startAngle, endAngle, tickCount]
|
|
44
|
+
);
|
|
45
|
+
const trackPath = createGaugeArcPath(cx, cy, radius, startAngle, endAngle, arcWidth);
|
|
46
|
+
const valuePath = needleAngle > startAngle ? createGaugeArcPath(cx, cy, radius, startAngle, needleAngle, arcWidth) : null;
|
|
47
|
+
const needlePath = createGaugeNeedlePath(cx, cy, radius - arcWidth - 6, needleAngle);
|
|
48
|
+
const formattedValue = valueFormatter ? valueFormatter(value) : `${value}`;
|
|
49
|
+
return /* @__PURE__ */ jsxs(
|
|
50
|
+
ChartCanvas,
|
|
51
|
+
{
|
|
52
|
+
width,
|
|
53
|
+
height,
|
|
54
|
+
padding,
|
|
55
|
+
title: chartTitle,
|
|
56
|
+
desc,
|
|
57
|
+
className: classNames(className),
|
|
58
|
+
children: [
|
|
59
|
+
/* @__PURE__ */ jsx("path", { d: trackPath, fill: trackColor, strokeWidth: 0 }),
|
|
60
|
+
segments ? segments.map((seg, i) => {
|
|
61
|
+
const sStart = valueToGaugeAngle(seg.range[0], min, max, startAngle, endAngle);
|
|
62
|
+
const sEnd = valueToGaugeAngle(seg.range[1], min, max, startAngle, endAngle);
|
|
63
|
+
return /* @__PURE__ */ jsx(
|
|
64
|
+
"path",
|
|
65
|
+
{
|
|
66
|
+
d: createGaugeArcPath(cx, cy, radius, sStart, sEnd, arcWidth),
|
|
67
|
+
fill: seg.color,
|
|
68
|
+
strokeWidth: 0
|
|
69
|
+
},
|
|
70
|
+
`seg-${i}`
|
|
71
|
+
);
|
|
72
|
+
}) : valuePath && /* @__PURE__ */ jsx(
|
|
73
|
+
"path",
|
|
74
|
+
{
|
|
75
|
+
d: valuePath,
|
|
76
|
+
fill: color,
|
|
77
|
+
strokeWidth: 0,
|
|
78
|
+
style: { transition: "all 0.3s ease-out" }
|
|
79
|
+
}
|
|
80
|
+
),
|
|
81
|
+
ticks.map((tick, i) => /* @__PURE__ */ jsxs(React.Fragment, { children: [
|
|
82
|
+
/* @__PURE__ */ jsx(
|
|
83
|
+
"line",
|
|
84
|
+
{
|
|
85
|
+
x1: tick.x1,
|
|
86
|
+
y1: tick.y1,
|
|
87
|
+
x2: tick.x2,
|
|
88
|
+
y2: tick.y2,
|
|
89
|
+
stroke: "var(--tiger-text-secondary,#6b7280)",
|
|
90
|
+
strokeWidth: 1
|
|
91
|
+
}
|
|
92
|
+
),
|
|
93
|
+
/* @__PURE__ */ jsx(
|
|
94
|
+
"text",
|
|
95
|
+
{
|
|
96
|
+
x: tick.x2 + (tick.x2 - tick.x1) * 1.5,
|
|
97
|
+
y: tick.y2 + (tick.y2 - tick.y1) * 1.5,
|
|
98
|
+
className: chartAxisTickTextClasses,
|
|
99
|
+
textAnchor: "middle",
|
|
100
|
+
dominantBaseline: "middle",
|
|
101
|
+
style: { fontSize: "10px" },
|
|
102
|
+
children: tick.label
|
|
103
|
+
}
|
|
104
|
+
)
|
|
105
|
+
] }, `tick-${i}`)),
|
|
106
|
+
/* @__PURE__ */ jsx(
|
|
107
|
+
"path",
|
|
108
|
+
{
|
|
109
|
+
d: needlePath,
|
|
110
|
+
fill: "var(--tiger-text,#374151)",
|
|
111
|
+
style: { transition: "all 0.3s ease-out" }
|
|
112
|
+
}
|
|
113
|
+
),
|
|
114
|
+
/* @__PURE__ */ jsx("circle", { cx, cy, r: 5, fill: "var(--tiger-text,#374151)" }),
|
|
115
|
+
/* @__PURE__ */ jsx(
|
|
116
|
+
"text",
|
|
117
|
+
{
|
|
118
|
+
x: cx,
|
|
119
|
+
y: cy + radius * 0.35,
|
|
120
|
+
className: "fill-[color:var(--tiger-text,#374151)] text-lg font-semibold",
|
|
121
|
+
textAnchor: "middle",
|
|
122
|
+
dominantBaseline: "middle",
|
|
123
|
+
children: formattedValue
|
|
124
|
+
}
|
|
125
|
+
),
|
|
126
|
+
label && /* @__PURE__ */ jsx(
|
|
127
|
+
"text",
|
|
128
|
+
{
|
|
129
|
+
x: cx,
|
|
130
|
+
y: cy + radius * 0.35 + 20,
|
|
131
|
+
className: chartAxisTickTextClasses,
|
|
132
|
+
textAnchor: "middle",
|
|
133
|
+
dominantBaseline: "middle",
|
|
134
|
+
children: label
|
|
135
|
+
}
|
|
136
|
+
)
|
|
137
|
+
]
|
|
138
|
+
}
|
|
139
|
+
);
|
|
140
|
+
};
|
|
141
|
+
|
|
142
|
+
export { GaugeChart };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var chunkRVCUNEBU_js = require('./chunk-RVCUNEBU.js');
|
|
4
4
|
var react = require('react');
|
|
5
5
|
var tigercatCore = require('@expcat/tigercat-core');
|
|
6
6
|
var jsxRuntime = require('react/jsx-runtime');
|
|
@@ -18,7 +18,7 @@ var Radio = ({
|
|
|
18
18
|
style,
|
|
19
19
|
...props
|
|
20
20
|
}) => {
|
|
21
|
-
const groupContext = react.useContext(
|
|
21
|
+
const groupContext = react.useContext(chunkRVCUNEBU_js.RadioGroupContext);
|
|
22
22
|
const [internalChecked, setInternalChecked] = react.useState(defaultChecked);
|
|
23
23
|
const isCheckedControlled = checked !== void 0;
|
|
24
24
|
const isInGroup = !!groupContext;
|