@expcat/tigercat-react 0.4.3 → 1.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/chunk-24RUEJWB.js +293 -0
- package/dist/{chunk-S4GNTA7V.mjs → chunk-2H43QM4B.mjs} +1 -1
- 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-333325LH.mjs +87 -0
- package/dist/{chunk-IGE44BIS.mjs → chunk-34DLDOGP.mjs} +105 -19
- 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-QM4GOQDT.js → chunk-4QJZT6QK.js} +44 -6
- package/dist/chunk-4QQZ5H4V.mjs +213 -0
- package/dist/{chunk-QFYS5QIZ.mjs → chunk-5BBZBI2V.mjs} +3 -3
- package/dist/chunk-5CGXFQND.mjs +100 -0
- package/dist/{chunk-LXX2ZDJN.js → chunk-5CQEXJF2.js} +9 -9
- package/dist/chunk-5EVHVZG5.js +119 -0
- 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-LLHUBM6E.mjs → chunk-6SDLSIAO.mjs} +4 -4
- 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-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-AYDPWKSW.mjs +186 -0
- 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-EHYSER2Z.js → chunk-DR2DFFNQ.js} +6 -6
- package/dist/chunk-DZGDCRBH.mjs +30 -0
- 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-RGFSY3S2.mjs → chunk-FPURO6QB.mjs} +16 -3
- package/dist/{chunk-FMF2G6BJ.js → chunk-FRHGRKKT.js} +2 -2
- package/dist/{chunk-LL6B4BHF.mjs → chunk-FT6TEMUF.mjs} +3 -3
- package/dist/chunk-GBTKAKUD.mjs +300 -0
- package/dist/chunk-GOUMB34F.mjs +168 -0
- package/dist/chunk-H5CAIMVL.js +45 -0
- package/dist/chunk-HADBETZG.js +94 -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-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-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-NJCKTIWB.mjs → chunk-IWTY32AW.mjs} +5 -5
- package/dist/{chunk-ZBVFM3GJ.js → chunk-J23B66DJ.js} +152 -15
- package/dist/{chunk-DQNA57CA.js → chunk-JLM4LBUS.js} +5 -12
- package/dist/{chunk-TJFS44SH.js → chunk-JLRRXRZO.js} +2 -4
- package/dist/chunk-JR7L67Q3.mjs +186 -0
- package/dist/{chunk-GNMOOYHG.js → chunk-KNBNE74O.js} +11 -10
- package/dist/chunk-L6WOLPV7.mjs +123 -0
- package/dist/chunk-LODDAS62.js +173 -0
- 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-QNFSZYTZ.js +188 -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-R5P72RIT.js +180 -0
- package/dist/chunk-R5XY4EQL.js +56 -0
- package/dist/chunk-RRJTIKU6.mjs +238 -0
- package/dist/{chunk-KBTFBEPE.mjs → chunk-RU6YS4LZ.mjs} +153 -16
- package/dist/{chunk-ZFHTSHXS.mjs → chunk-RUROWRB5.mjs} +30 -1
- package/dist/{chunk-SAZ6V6DX.js → chunk-RVCUNEBU.js} +2 -4
- 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-SJ5GT7Y4.mjs +58 -0
- package/dist/chunk-SKJXVYYF.js +188 -0
- package/dist/chunk-SQK2CPSV.mjs +59 -0
- package/dist/{chunk-XKDWDANG.js → chunk-SULHTYSV.js} +6 -6
- package/dist/chunk-SVASEF6K.js +125 -0
- package/dist/chunk-T5FAKJ6C.mjs +49 -0
- package/dist/chunk-T6KZ73VM.js +198 -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-VUD4BU4K.mjs +192 -0
- package/dist/{chunk-XWNVBCJA.js → chunk-VWMVWZMD.js} +13 -13
- 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-XODGTE2Y.js +61 -0
- package/dist/chunk-Y3NDP56G.mjs +174 -0
- package/dist/chunk-YID7J6ZK.js +37 -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-ZCBKAOAX.mjs +40 -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,293 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var chunkUKGQ7256_js = require('./chunk-UKGQ7256.js');
|
|
4
|
+
var React = require('react');
|
|
5
|
+
var tigercatCore = require('@expcat/tigercat-core');
|
|
6
|
+
var jsxRuntime = require('react/jsx-runtime');
|
|
7
|
+
|
|
8
|
+
function _interopDefault (e) { return e && e.__esModule ? e : { default: e }; }
|
|
9
|
+
|
|
10
|
+
var React__default = /*#__PURE__*/_interopDefault(React);
|
|
11
|
+
|
|
12
|
+
var Kanban = ({
|
|
13
|
+
columns: controlledColumns,
|
|
14
|
+
defaultColumns = [],
|
|
15
|
+
draggable = true,
|
|
16
|
+
columnDraggable = true,
|
|
17
|
+
enforceWipLimit = false,
|
|
18
|
+
beforeCardMove,
|
|
19
|
+
beforeColumnMove,
|
|
20
|
+
filterText = "",
|
|
21
|
+
hiddenColumns,
|
|
22
|
+
showCardCount = true,
|
|
23
|
+
allowAddCard = true,
|
|
24
|
+
allowAddColumn = false,
|
|
25
|
+
onCardMove,
|
|
26
|
+
onColumnMove,
|
|
27
|
+
onColumnsChange,
|
|
28
|
+
onCardAdd,
|
|
29
|
+
onColumnAdd,
|
|
30
|
+
renderCard,
|
|
31
|
+
renderColumnHeader,
|
|
32
|
+
className,
|
|
33
|
+
...restProps
|
|
34
|
+
}) => {
|
|
35
|
+
const boardRef = React.useRef(null);
|
|
36
|
+
const [rawColumns, setInternalColumns, isControlled] = chunkUKGQ7256_js.useControlledState(
|
|
37
|
+
controlledColumns,
|
|
38
|
+
defaultColumns
|
|
39
|
+
);
|
|
40
|
+
const visibleColumns = React.useMemo(
|
|
41
|
+
() => tigercatCore.filterColumns(rawColumns, filterText, hiddenColumns),
|
|
42
|
+
[rawColumns, filterText, hiddenColumns]
|
|
43
|
+
);
|
|
44
|
+
const [dragState, setDragState] = React.useState(null);
|
|
45
|
+
const [dropTargetCol, setDropTargetCol] = React.useState(null);
|
|
46
|
+
const [dropTargetIdx, setDropTargetIdx] = React.useState(-1);
|
|
47
|
+
function updateColumns(cols) {
|
|
48
|
+
if (!isControlled) setInternalColumns(cols);
|
|
49
|
+
onColumnsChange?.(cols);
|
|
50
|
+
}
|
|
51
|
+
function resetDrag() {
|
|
52
|
+
setDragState(null);
|
|
53
|
+
setDropTargetCol(null);
|
|
54
|
+
setDropTargetIdx(-1);
|
|
55
|
+
}
|
|
56
|
+
const handleCardDragStart = React.useCallback(
|
|
57
|
+
(e, card, colId, idx) => {
|
|
58
|
+
if (!draggable) return;
|
|
59
|
+
tigercatCore.setDragData(e.nativeEvent.dataTransfer, tigercatCore.createCardDragData(card.id, colId, idx));
|
|
60
|
+
setDragState({ type: "card", id: card.id, fromColumnId: colId, fromIndex: idx });
|
|
61
|
+
},
|
|
62
|
+
[draggable]
|
|
63
|
+
);
|
|
64
|
+
const handleColumnDragStart = React.useCallback(
|
|
65
|
+
(e, colId, idx) => {
|
|
66
|
+
if (!columnDraggable) return;
|
|
67
|
+
tigercatCore.setDragData(e.nativeEvent.dataTransfer, tigercatCore.createColumnDragData(colId, idx));
|
|
68
|
+
setDragState({ type: "column", id: colId, fromIndex: idx });
|
|
69
|
+
},
|
|
70
|
+
[columnDraggable]
|
|
71
|
+
);
|
|
72
|
+
const handleDragOver = React.useCallback(
|
|
73
|
+
(e, colId) => {
|
|
74
|
+
e.preventDefault();
|
|
75
|
+
if (!dragState) return;
|
|
76
|
+
setDropTargetCol(colId);
|
|
77
|
+
if (dragState.type === "card") {
|
|
78
|
+
const colEl = e.currentTarget.querySelector("[data-kanban-body]");
|
|
79
|
+
if (colEl) {
|
|
80
|
+
const cards = Array.from(colEl.querySelectorAll("[data-kanban-card]"));
|
|
81
|
+
const rects = cards.map((c) => c.getBoundingClientRect());
|
|
82
|
+
setDropTargetIdx(tigercatCore.getDropIndex(e.clientY, rects));
|
|
83
|
+
}
|
|
84
|
+
}
|
|
85
|
+
},
|
|
86
|
+
[dragState]
|
|
87
|
+
);
|
|
88
|
+
const handleColumnDragOver = React.useCallback(
|
|
89
|
+
(e) => {
|
|
90
|
+
e.preventDefault();
|
|
91
|
+
if (!dragState || dragState.type !== "column") return;
|
|
92
|
+
const boardEl = boardRef.current;
|
|
93
|
+
if (!boardEl) return;
|
|
94
|
+
const cols = Array.from(boardEl.querySelectorAll("[data-kanban-column]"));
|
|
95
|
+
const rects = cols.map((c) => c.getBoundingClientRect());
|
|
96
|
+
setDropTargetIdx(tigercatCore.getColumnDropIndex(e.clientX, rects));
|
|
97
|
+
},
|
|
98
|
+
[dragState]
|
|
99
|
+
);
|
|
100
|
+
const handleDrop = React.useCallback(
|
|
101
|
+
async (e) => {
|
|
102
|
+
e.preventDefault();
|
|
103
|
+
const data = tigercatCore.parseDragData(e.nativeEvent.dataTransfer);
|
|
104
|
+
if (!data || !dragState) {
|
|
105
|
+
resetDrag();
|
|
106
|
+
return;
|
|
107
|
+
}
|
|
108
|
+
if (data.type === "card" && dropTargetCol != null) {
|
|
109
|
+
if (beforeCardMove) {
|
|
110
|
+
const evt = {
|
|
111
|
+
cardId: data.cardId,
|
|
112
|
+
fromColumnId: data.columnId,
|
|
113
|
+
toColumnId: dropTargetCol,
|
|
114
|
+
fromIndex: data.index,
|
|
115
|
+
toIndex: dropTargetIdx
|
|
116
|
+
};
|
|
117
|
+
const ok = await beforeCardMove(evt);
|
|
118
|
+
if (!ok) {
|
|
119
|
+
resetDrag();
|
|
120
|
+
return;
|
|
121
|
+
}
|
|
122
|
+
}
|
|
123
|
+
const result = tigercatCore.moveCard(
|
|
124
|
+
rawColumns,
|
|
125
|
+
data.cardId,
|
|
126
|
+
data.columnId,
|
|
127
|
+
dropTargetCol,
|
|
128
|
+
dropTargetIdx,
|
|
129
|
+
{ enforceWipLimit }
|
|
130
|
+
);
|
|
131
|
+
if (result) {
|
|
132
|
+
updateColumns(result.columns);
|
|
133
|
+
onCardMove?.(result.event);
|
|
134
|
+
}
|
|
135
|
+
} else if (data.type === "column") {
|
|
136
|
+
if (beforeColumnMove) {
|
|
137
|
+
const evt = {
|
|
138
|
+
columnId: data.columnId,
|
|
139
|
+
fromIndex: data.index,
|
|
140
|
+
toIndex: dropTargetIdx
|
|
141
|
+
};
|
|
142
|
+
const ok = await beforeColumnMove(evt);
|
|
143
|
+
if (!ok) {
|
|
144
|
+
resetDrag();
|
|
145
|
+
return;
|
|
146
|
+
}
|
|
147
|
+
}
|
|
148
|
+
const result = tigercatCore.reorderColumns(rawColumns, data.index, dropTargetIdx);
|
|
149
|
+
if (result) {
|
|
150
|
+
updateColumns(result.columns);
|
|
151
|
+
onColumnMove?.(result.event);
|
|
152
|
+
}
|
|
153
|
+
}
|
|
154
|
+
resetDrag();
|
|
155
|
+
},
|
|
156
|
+
[
|
|
157
|
+
dragState,
|
|
158
|
+
dropTargetCol,
|
|
159
|
+
dropTargetIdx,
|
|
160
|
+
rawColumns,
|
|
161
|
+
enforceWipLimit,
|
|
162
|
+
beforeCardMove,
|
|
163
|
+
beforeColumnMove,
|
|
164
|
+
onCardMove,
|
|
165
|
+
onColumnMove
|
|
166
|
+
]
|
|
167
|
+
);
|
|
168
|
+
const containerClasses = React.useMemo(
|
|
169
|
+
() => tigercatCore.classNames(tigercatCore.getKanbanContainerClasses(className)),
|
|
170
|
+
[className]
|
|
171
|
+
);
|
|
172
|
+
return /* @__PURE__ */ jsxRuntime.jsxs(
|
|
173
|
+
"div",
|
|
174
|
+
{
|
|
175
|
+
ref: boardRef,
|
|
176
|
+
className: containerClasses,
|
|
177
|
+
role: "region",
|
|
178
|
+
"aria-label": "Kanban board",
|
|
179
|
+
onDragOver: handleColumnDragOver,
|
|
180
|
+
...restProps,
|
|
181
|
+
children: [
|
|
182
|
+
visibleColumns.map((col, colIdx) => {
|
|
183
|
+
const wipExceeded = tigercatCore.isWipExceeded(col);
|
|
184
|
+
const cardCount = tigercatCore.getColumnCardCount(col);
|
|
185
|
+
const isDragOverCol = dropTargetCol === col.id;
|
|
186
|
+
const isColDragging = dragState?.type === "column" && dragState.id === col.id;
|
|
187
|
+
return /* @__PURE__ */ jsxRuntime.jsxs(
|
|
188
|
+
"div",
|
|
189
|
+
{
|
|
190
|
+
className: tigercatCore.classNames(
|
|
191
|
+
tigercatCore.taskBoardColumnClasses,
|
|
192
|
+
isDragOverCol && dragState?.type === "card" && tigercatCore.taskBoardColumnDropTargetClasses,
|
|
193
|
+
isColDragging && tigercatCore.taskBoardColumnDraggingClasses
|
|
194
|
+
),
|
|
195
|
+
"data-kanban-column": "",
|
|
196
|
+
draggable: columnDraggable,
|
|
197
|
+
onDragStart: (e) => handleColumnDragStart(e, col.id, colIdx),
|
|
198
|
+
onDragOver: (e) => handleDragOver(e, col.id),
|
|
199
|
+
onDrop: handleDrop,
|
|
200
|
+
onDragEnd: resetDrag,
|
|
201
|
+
children: [
|
|
202
|
+
/* @__PURE__ */ jsxRuntime.jsxs(
|
|
203
|
+
"div",
|
|
204
|
+
{
|
|
205
|
+
className: tigercatCore.classNames(
|
|
206
|
+
tigercatCore.taskBoardColumnHeaderClasses,
|
|
207
|
+
wipExceeded && tigercatCore.taskBoardWipExceededClasses
|
|
208
|
+
),
|
|
209
|
+
children: [
|
|
210
|
+
renderColumnHeader ? renderColumnHeader(col) : /* @__PURE__ */ jsxRuntime.jsx("span", { children: col.title }),
|
|
211
|
+
showCardCount && /* @__PURE__ */ jsxRuntime.jsx(
|
|
212
|
+
"span",
|
|
213
|
+
{
|
|
214
|
+
className: tigercatCore.classNames(
|
|
215
|
+
tigercatCore.kanbanCardCountClasses,
|
|
216
|
+
wipExceeded && tigercatCore.taskBoardWipExceededClasses
|
|
217
|
+
),
|
|
218
|
+
children: cardCount.limit ? `${cardCount.count}/${cardCount.limit}` : `${cardCount.count}`
|
|
219
|
+
}
|
|
220
|
+
)
|
|
221
|
+
]
|
|
222
|
+
}
|
|
223
|
+
),
|
|
224
|
+
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: tigercatCore.taskBoardColumnBodyClasses, "data-kanban-body": "", children: [
|
|
225
|
+
col.cards.length === 0 ? /* @__PURE__ */ jsxRuntime.jsx("div", { className: tigercatCore.taskBoardEmptyClasses, children: "No cards" }) : col.cards.map((card, cardIdx) => {
|
|
226
|
+
const isCardDragging = dragState?.type === "card" && dragState.id === card.id;
|
|
227
|
+
return /* @__PURE__ */ jsxRuntime.jsxs(React__default.default.Fragment, { children: [
|
|
228
|
+
isDragOverCol && dragState?.type === "card" && dropTargetIdx === cardIdx && /* @__PURE__ */ jsxRuntime.jsx("div", { className: tigercatCore.taskBoardDropIndicatorClasses }),
|
|
229
|
+
/* @__PURE__ */ jsxRuntime.jsx(
|
|
230
|
+
"div",
|
|
231
|
+
{
|
|
232
|
+
className: tigercatCore.classNames(
|
|
233
|
+
tigercatCore.taskBoardCardClasses,
|
|
234
|
+
isCardDragging && tigercatCore.taskBoardCardDraggingClasses
|
|
235
|
+
),
|
|
236
|
+
draggable,
|
|
237
|
+
"data-kanban-card": "",
|
|
238
|
+
onDragStart: (e) => handleCardDragStart(e, card, col.id, cardIdx),
|
|
239
|
+
children: renderCard ? renderCard(card, col.id) : /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
|
|
240
|
+
/* @__PURE__ */ jsxRuntime.jsx("div", { className: "font-medium text-sm", children: card.title }),
|
|
241
|
+
card.description && /* @__PURE__ */ jsxRuntime.jsx("div", { className: "text-xs text-[var(--tiger-text-muted,#6b7280)] mt-1", children: card.description })
|
|
242
|
+
] })
|
|
243
|
+
}
|
|
244
|
+
)
|
|
245
|
+
] }, card.id);
|
|
246
|
+
}),
|
|
247
|
+
isDragOverCol && dragState?.type === "card" && dropTargetIdx >= col.cards.length && /* @__PURE__ */ jsxRuntime.jsx("div", { className: tigercatCore.taskBoardDropIndicatorClasses })
|
|
248
|
+
] }),
|
|
249
|
+
allowAddCard && /* @__PURE__ */ jsxRuntime.jsx(
|
|
250
|
+
"div",
|
|
251
|
+
{
|
|
252
|
+
className: tigercatCore.kanbanAddCardClasses,
|
|
253
|
+
role: "button",
|
|
254
|
+
tabIndex: 0,
|
|
255
|
+
onClick: () => onCardAdd?.(col.id),
|
|
256
|
+
onKeyDown: (e) => {
|
|
257
|
+
if (e.key === "Enter" || e.key === " ") {
|
|
258
|
+
e.preventDefault();
|
|
259
|
+
onCardAdd?.(col.id);
|
|
260
|
+
}
|
|
261
|
+
},
|
|
262
|
+
children: "+ Add card"
|
|
263
|
+
}
|
|
264
|
+
)
|
|
265
|
+
]
|
|
266
|
+
},
|
|
267
|
+
col.id
|
|
268
|
+
);
|
|
269
|
+
}),
|
|
270
|
+
allowAddColumn && /* @__PURE__ */ jsxRuntime.jsx(
|
|
271
|
+
"div",
|
|
272
|
+
{
|
|
273
|
+
className: tigercatCore.kanbanAddColumnClasses,
|
|
274
|
+
role: "button",
|
|
275
|
+
tabIndex: 0,
|
|
276
|
+
onClick: () => onColumnAdd?.(),
|
|
277
|
+
onKeyDown: (e) => {
|
|
278
|
+
if (e.key === "Enter" || e.key === " ") {
|
|
279
|
+
e.preventDefault();
|
|
280
|
+
onColumnAdd?.();
|
|
281
|
+
}
|
|
282
|
+
},
|
|
283
|
+
children: "+ Add column"
|
|
284
|
+
}
|
|
285
|
+
)
|
|
286
|
+
]
|
|
287
|
+
}
|
|
288
|
+
);
|
|
289
|
+
};
|
|
290
|
+
var Kanban_default = Kanban;
|
|
291
|
+
|
|
292
|
+
exports.Kanban = Kanban;
|
|
293
|
+
exports.Kanban_default = Kanban_default;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { PieChart } from './chunk-
|
|
1
|
+
import { PieChart } from './chunk-QQDKQLHJ.mjs';
|
|
2
2
|
import { useMemo } from 'react';
|
|
3
3
|
import { getChartInnerRect, normalizeChartPadding, classNames } from '@expcat/tigercat-core';
|
|
4
4
|
import { jsxs, jsx } from 'react/jsx-runtime';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { DropdownMenu } from './chunk-SIVJX7VU.mjs';
|
|
2
2
|
import { useClickOutside, useEscapeKey, useFloating } from './chunk-WLIFEALE.mjs';
|
|
3
|
-
import React, { createContext, useState, useRef, useEffect, useCallback
|
|
4
|
-
import { injectDropdownStyles, classNames, getDropdownContainerClasses, getDropdownTriggerClasses, DROPDOWN_ENTER_CLASS, getTransformOrigin, getDropdownChevronClasses, DROPDOWN_CHEVRON_PATH } from '@expcat/tigercat-core';
|
|
3
|
+
import React, { createContext, useState, useRef, useId, useMemo, useEffect, useCallback } from 'react';
|
|
4
|
+
import { injectDropdownStyles, captureActiveElement, focusFirstMenuItem, restoreFocus, handleMenuNavigation, classNames, getDropdownContainerClasses, getDropdownTriggerClasses, DROPDOWN_ENTER_CLASS, getTransformOrigin, getDropdownChevronClasses, DROPDOWN_CHEVRON_PATH } from '@expcat/tigercat-core';
|
|
5
5
|
import { jsx, jsxs } from 'react/jsx-runtime';
|
|
6
6
|
|
|
7
7
|
var DropdownContext = createContext(null);
|
|
@@ -10,34 +10,50 @@ var Dropdown = ({
|
|
|
10
10
|
placement: initialPlacement = "bottom-start",
|
|
11
11
|
offset = 4,
|
|
12
12
|
disabled = false,
|
|
13
|
-
|
|
14
|
-
|
|
13
|
+
open: controlledOpen,
|
|
14
|
+
defaultOpen = false,
|
|
15
15
|
closeOnClick = true,
|
|
16
16
|
showArrow = true,
|
|
17
17
|
className,
|
|
18
18
|
style,
|
|
19
|
-
|
|
19
|
+
onOpenChange,
|
|
20
20
|
children,
|
|
21
21
|
...divProps
|
|
22
22
|
}) => {
|
|
23
|
-
const [internalVisible, setInternalVisible] = useState(
|
|
24
|
-
const visible =
|
|
23
|
+
const [internalVisible, setInternalVisible] = useState(defaultOpen);
|
|
24
|
+
const visible = controlledOpen !== void 0 ? controlledOpen : internalVisible;
|
|
25
25
|
const containerRef = useRef(null);
|
|
26
26
|
const triggerRef = useRef(null);
|
|
27
27
|
const floatingRef = useRef(null);
|
|
28
28
|
const hoverTimerRef = useRef(null);
|
|
29
|
+
const previousActiveElementRef = useRef(null);
|
|
30
|
+
const reactId = useId();
|
|
31
|
+
const menuId = useMemo(() => `tiger-dropdown-menu-${reactId}`, [reactId]);
|
|
29
32
|
useEffect(() => {
|
|
30
33
|
injectDropdownStyles();
|
|
31
34
|
}, []);
|
|
32
35
|
const setVisible = useCallback(
|
|
33
36
|
(newVisible) => {
|
|
34
37
|
if (disabled && newVisible) return;
|
|
35
|
-
if (
|
|
38
|
+
if (newVisible && !visible) {
|
|
39
|
+
previousActiveElementRef.current = captureActiveElement();
|
|
40
|
+
}
|
|
41
|
+
if (controlledOpen === void 0) {
|
|
36
42
|
setInternalVisible(newVisible);
|
|
37
43
|
}
|
|
38
|
-
|
|
44
|
+
onOpenChange?.(newVisible);
|
|
45
|
+
if (newVisible) {
|
|
46
|
+
requestAnimationFrame(() => {
|
|
47
|
+
if (floatingRef.current) {
|
|
48
|
+
focusFirstMenuItem(floatingRef.current);
|
|
49
|
+
}
|
|
50
|
+
});
|
|
51
|
+
} else {
|
|
52
|
+
restoreFocus(previousActiveElementRef.current);
|
|
53
|
+
previousActiveElementRef.current = null;
|
|
54
|
+
}
|
|
39
55
|
},
|
|
40
|
-
[disabled,
|
|
56
|
+
[disabled, visible, controlledOpen, onOpenChange]
|
|
41
57
|
);
|
|
42
58
|
const handleItemClick = useCallback(() => {
|
|
43
59
|
if (closeOnClick) {
|
|
@@ -66,6 +82,11 @@ var Dropdown = ({
|
|
|
66
82
|
if (trigger !== "click") return;
|
|
67
83
|
setVisible(!visible);
|
|
68
84
|
}, [trigger, visible, setVisible]);
|
|
85
|
+
const handleMenuKeyDown = useCallback((event) => {
|
|
86
|
+
if (floatingRef.current) {
|
|
87
|
+
handleMenuNavigation(floatingRef.current, event.nativeEvent);
|
|
88
|
+
}
|
|
89
|
+
}, []);
|
|
69
90
|
useClickOutside({
|
|
70
91
|
enabled: trigger === "click" && visible,
|
|
71
92
|
refs: [containerRef],
|
|
@@ -138,45 +159,38 @@ var Dropdown = ({
|
|
|
138
159
|
children: /* @__PURE__ */ jsx("path", { d: DROPDOWN_CHEVRON_PATH })
|
|
139
160
|
}
|
|
140
161
|
) : null;
|
|
141
|
-
return /* @__PURE__ */ jsx(DropdownContext.Provider, { value: contextValue, children: /* @__PURE__ */ jsxs(
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
onMouseLeave: handleMouseLeave,
|
|
174
|
-
children: menuElement
|
|
175
|
-
}
|
|
176
|
-
)
|
|
177
|
-
]
|
|
178
|
-
}
|
|
179
|
-
) });
|
|
162
|
+
return /* @__PURE__ */ jsx(DropdownContext.Provider, { value: contextValue, children: /* @__PURE__ */ jsxs("div", { ref: containerRef, className: containerClasses, style, ...divProps, children: [
|
|
163
|
+
/* @__PURE__ */ jsxs(
|
|
164
|
+
"div",
|
|
165
|
+
{
|
|
166
|
+
ref: triggerRef,
|
|
167
|
+
className: triggerClasses,
|
|
168
|
+
onClick: handleClick,
|
|
169
|
+
onMouseEnter: handleMouseEnter,
|
|
170
|
+
onMouseLeave: handleMouseLeave,
|
|
171
|
+
"aria-haspopup": "menu",
|
|
172
|
+
"aria-expanded": visible,
|
|
173
|
+
"aria-controls": visible ? menuId : void 0,
|
|
174
|
+
children: [
|
|
175
|
+
triggerElement,
|
|
176
|
+
chevronNode
|
|
177
|
+
]
|
|
178
|
+
}
|
|
179
|
+
),
|
|
180
|
+
/* @__PURE__ */ jsx(
|
|
181
|
+
"div",
|
|
182
|
+
{
|
|
183
|
+
ref: floatingRef,
|
|
184
|
+
className: menuWrapperClasses,
|
|
185
|
+
style: menuWrapperStyles,
|
|
186
|
+
hidden: !visible,
|
|
187
|
+
onMouseEnter: handleMouseEnter,
|
|
188
|
+
onMouseLeave: handleMouseLeave,
|
|
189
|
+
onKeyDown: handleMenuKeyDown,
|
|
190
|
+
children: menuElement && React.isValidElement(menuElement) ? React.cloneElement(menuElement, { id: menuId }) : menuElement
|
|
191
|
+
}
|
|
192
|
+
)
|
|
193
|
+
] }) });
|
|
180
194
|
};
|
|
181
195
|
|
|
182
196
|
export { Dropdown, DropdownContext };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { usePopup } from './chunk-
|
|
1
|
+
import { usePopup } from './chunk-AMOH5AMN.mjs';
|
|
2
2
|
import React, { useRef, useMemo } from 'react';
|
|
3
3
|
import { createFloatingIdFactory, classNames, getPopconfirmContainerClasses, getPopconfirmTriggerClasses, getPopconfirmArrowClasses, getPopconfirmContentClasses, getPopconfirmTitleClasses, getPopconfirmDescriptionClasses, getPopconfirmIconClasses, getPopconfirmButtonsClasses, getPopconfirmCancelButtonClasses, getPopconfirmOkButtonClasses, mergeStyleValues, popconfirmIconStrokeWidth, popconfirmIconViewBox, getPopconfirmIconPath, popconfirmIconPathStrokeLinejoin, popconfirmIconPathStrokeLinecap } from '@expcat/tigercat-core';
|
|
4
4
|
import { jsx, jsxs } from 'react/jsx-runtime';
|
|
@@ -23,8 +23,8 @@ var PopconfirmIcon = ({ type }) => /* @__PURE__ */ jsx(
|
|
|
23
23
|
}
|
|
24
24
|
);
|
|
25
25
|
var Popconfirm = ({
|
|
26
|
-
|
|
27
|
-
|
|
26
|
+
open,
|
|
27
|
+
defaultOpen = false,
|
|
28
28
|
title = "\u786E\u5B9A\u8981\u6267\u884C\u6B64\u64CD\u4F5C\u5417\uFF1F",
|
|
29
29
|
description,
|
|
30
30
|
icon = "warning",
|
|
@@ -40,7 +40,7 @@ var Popconfirm = ({
|
|
|
40
40
|
children,
|
|
41
41
|
titleContent,
|
|
42
42
|
descriptionContent,
|
|
43
|
-
|
|
43
|
+
onOpenChange,
|
|
44
44
|
onConfirm,
|
|
45
45
|
onCancel,
|
|
46
46
|
...divProps
|
|
@@ -60,13 +60,13 @@ var Popconfirm = ({
|
|
|
60
60
|
actualPlacement,
|
|
61
61
|
floatingStyles: baseFloatingStyles
|
|
62
62
|
} = usePopup({
|
|
63
|
-
|
|
64
|
-
|
|
63
|
+
open,
|
|
64
|
+
defaultOpen,
|
|
65
65
|
disabled,
|
|
66
66
|
placement: initialPlacement,
|
|
67
67
|
offset,
|
|
68
68
|
multiTrigger: false,
|
|
69
|
-
|
|
69
|
+
onOpenChange
|
|
70
70
|
});
|
|
71
71
|
const handleConfirm = () => {
|
|
72
72
|
onConfirm?.();
|
|
@@ -10,13 +10,26 @@ var React__default = /*#__PURE__*/_interopDefault(React);
|
|
|
10
10
|
|
|
11
11
|
// src/components/ConfigProvider.tsx
|
|
12
12
|
var TigerConfigContext = React__default.default.createContext({});
|
|
13
|
-
var ConfigProvider = ({
|
|
13
|
+
var ConfigProvider = ({
|
|
14
|
+
locale,
|
|
15
|
+
theme,
|
|
16
|
+
colorScheme,
|
|
17
|
+
children
|
|
18
|
+
}) => {
|
|
14
19
|
const parent = React.useContext(TigerConfigContext);
|
|
15
20
|
const value = React.useMemo(() => {
|
|
16
21
|
return {
|
|
17
|
-
locale: tigercatCore.mergeTigerLocale(parent.locale, locale)
|
|
22
|
+
locale: tigercatCore.mergeTigerLocale(parent.locale, locale),
|
|
23
|
+
theme: theme ?? parent.theme,
|
|
24
|
+
colorScheme: colorScheme ?? parent.colorScheme
|
|
18
25
|
};
|
|
19
|
-
}, [parent.locale, locale]);
|
|
26
|
+
}, [parent.locale, locale, theme, parent.theme, colorScheme, parent.colorScheme]);
|
|
27
|
+
React.useEffect(() => {
|
|
28
|
+
if (value.theme) tigercatCore.ThemeManager.setTheme(value.theme);
|
|
29
|
+
}, [value.theme]);
|
|
30
|
+
React.useEffect(() => {
|
|
31
|
+
if (value.colorScheme) tigercatCore.ThemeManager.setColorScheme(value.colorScheme);
|
|
32
|
+
}, [value.colorScheme]);
|
|
20
33
|
return /* @__PURE__ */ jsxRuntime.jsx(TigerConfigContext.Provider, { value, children });
|
|
21
34
|
};
|
|
22
35
|
function useTigerConfig() {
|
|
@@ -0,0 +1,87 @@
|
|
|
1
|
+
import { useMemo, useState, useCallback } from 'react';
|
|
2
|
+
import ReactDOM from 'react-dom';
|
|
3
|
+
import { classNames, floatButtonBaseClasses, floatButtonShapeClasses, floatButtonSizeClasses, floatButtonTypeClasses, floatButtonDisabledClasses, floatButtonGroupClasses } from '@expcat/tigercat-core';
|
|
4
|
+
import { jsx, jsxs } from 'react/jsx-runtime';
|
|
5
|
+
|
|
6
|
+
// src/components/FloatButton.tsx
|
|
7
|
+
var FloatButton = ({
|
|
8
|
+
shape = "circle",
|
|
9
|
+
size = "md",
|
|
10
|
+
type = "primary",
|
|
11
|
+
tooltip,
|
|
12
|
+
disabled = false,
|
|
13
|
+
ariaLabel,
|
|
14
|
+
className,
|
|
15
|
+
children,
|
|
16
|
+
onClick,
|
|
17
|
+
...props
|
|
18
|
+
}) => {
|
|
19
|
+
const classes = useMemo(
|
|
20
|
+
() => classNames(
|
|
21
|
+
floatButtonBaseClasses,
|
|
22
|
+
floatButtonShapeClasses[shape],
|
|
23
|
+
floatButtonSizeClasses[size],
|
|
24
|
+
floatButtonTypeClasses[type],
|
|
25
|
+
disabled && floatButtonDisabledClasses,
|
|
26
|
+
className
|
|
27
|
+
),
|
|
28
|
+
[shape, size, type, disabled, className]
|
|
29
|
+
);
|
|
30
|
+
return /* @__PURE__ */ jsx(
|
|
31
|
+
"button",
|
|
32
|
+
{
|
|
33
|
+
className: classes,
|
|
34
|
+
type: "button",
|
|
35
|
+
disabled,
|
|
36
|
+
"aria-label": ariaLabel ?? tooltip,
|
|
37
|
+
title: tooltip,
|
|
38
|
+
onClick: disabled ? void 0 : onClick,
|
|
39
|
+
...props,
|
|
40
|
+
children
|
|
41
|
+
}
|
|
42
|
+
);
|
|
43
|
+
};
|
|
44
|
+
var FloatButtonGroup = ({
|
|
45
|
+
shape = "circle",
|
|
46
|
+
trigger = "click",
|
|
47
|
+
open: controlledOpen,
|
|
48
|
+
triggerNode,
|
|
49
|
+
children,
|
|
50
|
+
className,
|
|
51
|
+
onOpenChange,
|
|
52
|
+
...props
|
|
53
|
+
}) => {
|
|
54
|
+
const [internalOpen, setInternalOpen] = useState(false);
|
|
55
|
+
const isOpen = controlledOpen ?? internalOpen;
|
|
56
|
+
const toggle = useCallback(() => {
|
|
57
|
+
const next = !isOpen;
|
|
58
|
+
setInternalOpen(next);
|
|
59
|
+
onOpenChange?.(next);
|
|
60
|
+
}, [isOpen, onOpenChange]);
|
|
61
|
+
const handleMouseEnter = useCallback(() => {
|
|
62
|
+
setInternalOpen(true);
|
|
63
|
+
onOpenChange?.(true);
|
|
64
|
+
}, [onOpenChange]);
|
|
65
|
+
const handleMouseLeave = useCallback(() => {
|
|
66
|
+
setInternalOpen(false);
|
|
67
|
+
onOpenChange?.(false);
|
|
68
|
+
}, [onOpenChange]);
|
|
69
|
+
const groupClasses = useMemo(() => classNames(floatButtonGroupClasses, className), [className]);
|
|
70
|
+
if (typeof document === "undefined") return null;
|
|
71
|
+
const content = /* @__PURE__ */ jsxs(
|
|
72
|
+
"div",
|
|
73
|
+
{
|
|
74
|
+
className: groupClasses,
|
|
75
|
+
onMouseEnter: trigger === "hover" ? handleMouseEnter : void 0,
|
|
76
|
+
onMouseLeave: trigger === "hover" ? handleMouseLeave : void 0,
|
|
77
|
+
...props,
|
|
78
|
+
children: [
|
|
79
|
+
triggerNode && /* @__PURE__ */ jsx("div", { onClick: trigger === "click" ? toggle : void 0, children: triggerNode }),
|
|
80
|
+
isOpen && children
|
|
81
|
+
]
|
|
82
|
+
}
|
|
83
|
+
);
|
|
84
|
+
return ReactDOM.createPortal(content, document.body);
|
|
85
|
+
};
|
|
86
|
+
|
|
87
|
+
export { FloatButton, FloatButtonGroup };
|