@expcat/tigercat-react 0.4.2 → 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-Q7GUWWG5.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-FX2IBA4W.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-6OVVMHZJ.js → chunk-J23B66DJ.js} +327 -172
- 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-PJ7NS7NX.mjs → chunk-RU6YS4LZ.mjs} +291 -140
- 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 +15 -3
- package/dist/components/Table.d.ts +15 -3
- package/dist/components/Table.js +2 -2
- package/dist/components/Table.mjs +1 -1
- package/dist/components/Tabs.d.mts +7 -0
- package/dist/components/Tabs.d.ts +7 -0
- package/dist/components/Tabs.js +3 -3
- package/dist/components/Tabs.mjs +1 -1
- package/dist/components/TaskBoard.js +4 -4
- package/dist/components/TaskBoard.mjs +2 -2
- package/dist/components/Text.js +2 -2
- package/dist/components/Text.mjs +1 -1
- package/dist/components/Textarea.js +3 -2
- package/dist/components/Textarea.mjs +2 -1
- package/dist/components/Tooltip.d.mts +1 -1
- package/dist/components/Tooltip.d.ts +1 -1
- package/dist/components/Tooltip.js +3 -3
- package/dist/components/Tooltip.mjs +2 -2
- package/dist/components/Tour.d.mts +14 -0
- package/dist/components/Tour.d.ts +14 -0
- package/dist/components/Tour.js +11 -0
- package/dist/components/Tour.mjs +2 -0
- package/dist/components/Transfer.d.mts +12 -0
- package/dist/components/Transfer.d.ts +12 -0
- package/dist/components/Transfer.js +10 -0
- package/dist/components/Transfer.mjs +1 -0
- package/dist/components/Tree.d.mts +18 -0
- package/dist/components/Tree.d.ts +18 -0
- package/dist/components/Tree.js +3 -3
- package/dist/components/Tree.mjs +1 -1
- package/dist/components/TreeMapChart.d.mts +15 -0
- package/dist/components/TreeMapChart.d.ts +15 -0
- package/dist/components/TreeMapChart.js +14 -0
- package/dist/components/TreeMapChart.mjs +5 -0
- package/dist/components/TreeSelect.d.mts +12 -0
- package/dist/components/TreeSelect.d.ts +12 -0
- package/dist/components/TreeSelect.js +10 -0
- package/dist/components/TreeSelect.mjs +1 -0
- package/dist/components/Upload.js +3 -3
- package/dist/components/Upload.mjs +2 -2
- package/dist/components/VirtualList.d.mts +14 -0
- package/dist/components/VirtualList.d.ts +14 -0
- package/dist/components/VirtualList.js +10 -0
- package/dist/components/VirtualList.mjs +1 -0
- package/dist/components/VirtualTable.d.mts +26 -0
- package/dist/components/VirtualTable.d.ts +26 -0
- package/dist/components/VirtualTable.js +16 -0
- package/dist/components/VirtualTable.mjs +1 -0
- package/dist/components/Watermark.d.mts +9 -0
- package/dist/components/Watermark.d.ts +9 -0
- package/dist/components/Watermark.js +10 -0
- package/dist/components/Watermark.mjs +1 -0
- package/dist/index.d.mts +85 -2
- package/dist/index.d.ts +85 -2
- package/dist/index.js +504 -181
- package/dist/index.mjs +223 -64
- package/package.json +2 -2
- package/dist/chunk-3M2IG6IN.mjs +0 -34
- package/dist/chunk-4Y7YH32A.mjs +0 -157
- package/dist/chunk-FPNT7FV5.mjs +0 -44
- package/dist/chunk-FSDZJD7M.js +0 -159
- package/dist/chunk-I5TCE5E7.js +0 -32
- package/dist/chunk-LIV33O73.mjs +0 -26
- package/dist/chunk-O3W3OZ6V.js +0 -37
- package/dist/chunk-OYCMGKQ7.js +0 -111
- package/dist/chunk-RPTLVIBF.mjs +0 -109
- package/dist/chunk-RYWGELJ7.js +0 -46
- package/dist/chunk-SSQOCZ6O.js +0 -36
- package/dist/chunk-UZ7SBFQV.mjs +0 -35
- package/dist/chunk-VEGBO77D.mjs +0 -20
- package/dist/{chunk-2DW3WFZI.mjs → chunk-2LUDQBVY.mjs} +2 -2
- package/dist/{chunk-JQNKI2ZZ.js → chunk-C443YA4U.js} +2 -2
- package/dist/{chunk-QGCQAJGL.mjs → chunk-DEQWHJLQ.mjs} +2 -2
- package/dist/{chunk-N4EMXCRQ.mjs → chunk-FXX3GD35.mjs} +1 -1
- package/dist/{chunk-GASFXURT.js → chunk-KQJYSG23.js} +2 -2
- package/dist/{chunk-NEP3CS6S.js → chunk-OE6WTZES.js} +2 -2
- package/dist/{chunk-SH6O6LDJ.mjs → chunk-QQDKQLHJ.mjs} +1 -1
- package/dist/{chunk-F4Q5QMX2.js → chunk-TVJZB7ZC.js} +1 -1
- package/dist/{chunk-SM7RDJFB.js → chunk-VILZFNR7.js} +2 -2
- package/dist/{chunk-W4TFISRK.js → chunk-WK5QJO57.js} +1 -1
- package/dist/{chunk-CYZLGYY4.mjs → chunk-XNMSECO4.mjs} +2 -2
- package/dist/{chunk-763M6U5U.mjs → chunk-ZDL3GE3Q.mjs} +2 -2
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { StepsItem, Steps } from './chunk-AUP3PMDD.mjs';
|
|
2
|
-
import { useTigerConfig } from './chunk-
|
|
3
|
-
import { Button } from './chunk-
|
|
2
|
+
import { useTigerConfig } from './chunk-CRSMECWE.mjs';
|
|
3
|
+
import { Button } from './chunk-3KMKMAE3.mjs';
|
|
4
4
|
import { useMemo, useState, useEffect, useCallback } from 'react';
|
|
5
5
|
import { mergeTigerLocale, getFormWizardLabels, classNames, resolveLocaleText } from '@expcat/tigercat-core';
|
|
6
6
|
import { jsx, jsxs } from 'react/jsx-runtime';
|
|
@@ -20,6 +20,7 @@ var FormWizard = ({
|
|
|
20
20
|
finishText,
|
|
21
21
|
locale,
|
|
22
22
|
beforeNext,
|
|
23
|
+
autoSave,
|
|
23
24
|
onChange,
|
|
24
25
|
onFinish,
|
|
25
26
|
renderStep,
|
|
@@ -54,8 +55,11 @@ var FormWizard = ({
|
|
|
54
55
|
setInnerCurrent(clamped);
|
|
55
56
|
}
|
|
56
57
|
onChange?.(clamped, currentIndex);
|
|
58
|
+
if (autoSave && steps[clamped]) {
|
|
59
|
+
autoSave(clamped, steps[clamped]);
|
|
60
|
+
}
|
|
57
61
|
},
|
|
58
|
-
[current, currentIndex, onChange, totalCount]
|
|
62
|
+
[current, currentIndex, onChange, totalCount, autoSave, steps]
|
|
59
63
|
);
|
|
60
64
|
const runBeforeNext = useCallback(async () => {
|
|
61
65
|
if (!beforeNext || !currentStep) {
|
|
@@ -64,10 +68,24 @@ var FormWizard = ({
|
|
|
64
68
|
const result = await beforeNext(currentIndex, currentStep, steps);
|
|
65
69
|
return result === true;
|
|
66
70
|
}, [beforeNext, currentIndex, currentStep, steps]);
|
|
71
|
+
const findNextUnskipped = useCallback(
|
|
72
|
+
(from, dir) => {
|
|
73
|
+
let idx = from;
|
|
74
|
+
while (idx >= 0 && idx < totalCount) {
|
|
75
|
+
const step = steps[idx];
|
|
76
|
+
if (!step?.disabled && !step?.skipCondition?.()) return idx;
|
|
77
|
+
idx += dir;
|
|
78
|
+
}
|
|
79
|
+
return currentIndex;
|
|
80
|
+
},
|
|
81
|
+
[steps, totalCount, currentIndex]
|
|
82
|
+
);
|
|
67
83
|
const handlePrev = useCallback(() => {
|
|
68
|
-
if (currentIndex <= 0
|
|
69
|
-
|
|
70
|
-
|
|
84
|
+
if (currentIndex <= 0) return;
|
|
85
|
+
const target = findNextUnskipped(currentIndex - 1, -1);
|
|
86
|
+
if (target === currentIndex) return;
|
|
87
|
+
setCurrent(target);
|
|
88
|
+
}, [currentIndex, setCurrent, findNextUnskipped]);
|
|
71
89
|
const handleNext = useCallback(async () => {
|
|
72
90
|
if (totalCount === 0) return;
|
|
73
91
|
const ok = await runBeforeNext();
|
|
@@ -76,9 +94,19 @@ var FormWizard = ({
|
|
|
76
94
|
onFinish?.(currentIndex, steps);
|
|
77
95
|
return;
|
|
78
96
|
}
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
97
|
+
const target = findNextUnskipped(currentIndex + 1, 1);
|
|
98
|
+
if (target === currentIndex) return;
|
|
99
|
+
setCurrent(target);
|
|
100
|
+
}, [
|
|
101
|
+
currentIndex,
|
|
102
|
+
totalCount,
|
|
103
|
+
isLast,
|
|
104
|
+
onFinish,
|
|
105
|
+
runBeforeNext,
|
|
106
|
+
setCurrent,
|
|
107
|
+
steps,
|
|
108
|
+
findNextUnskipped
|
|
109
|
+
]);
|
|
82
110
|
const handleStepChange = useCallback(
|
|
83
111
|
async (nextIndex) => {
|
|
84
112
|
if (nextIndex === currentIndex || steps[nextIndex]?.disabled) return;
|
|
@@ -124,8 +152,8 @@ var FormWizard = ({
|
|
|
124
152
|
) }),
|
|
125
153
|
/* @__PURE__ */ jsx("div", { className: "px-6 py-4 flex flex-col items-center", children: contentNode }),
|
|
126
154
|
showActions && /* @__PURE__ */ jsxs("div", { className: "flex items-center justify-center gap-3 px-6 py-2 border-t border-[var(--tiger-border,#e5e7eb)] bg-[var(--tiger-surface-muted,#f9fafb)]", children: [
|
|
127
|
-
/* @__PURE__ */ jsx(Button, {
|
|
128
|
-
/* @__PURE__ */ jsx(Button, {
|
|
155
|
+
/* @__PURE__ */ jsx(Button, { htmlType: "button", variant: "secondary", disabled: isFirst, onClick: handlePrev, children: resolveLocaleText(labels.prevText, prevText) }),
|
|
156
|
+
/* @__PURE__ */ jsx(Button, { htmlType: "button", variant: "primary", onClick: handleNext, children: isLast ? resolveLocaleText(labels.finishText, finishText) : resolveLocaleText(labels.nextText, nextText) })
|
|
129
157
|
] })
|
|
130
158
|
] });
|
|
131
159
|
};
|
|
@@ -56,6 +56,7 @@ var Tree = ({
|
|
|
56
56
|
multiple = false,
|
|
57
57
|
loadData,
|
|
58
58
|
filterValue = "",
|
|
59
|
+
searchable = false,
|
|
59
60
|
filterFn,
|
|
60
61
|
autoExpandParent = true,
|
|
61
62
|
blockNode = false,
|
|
@@ -67,9 +68,12 @@ var Tree = ({
|
|
|
67
68
|
onNodeClick,
|
|
68
69
|
onNodeExpand,
|
|
69
70
|
onNodeCollapse,
|
|
70
|
-
className
|
|
71
|
+
className,
|
|
72
|
+
draggable: isDraggable = false,
|
|
73
|
+
onDrop
|
|
71
74
|
}) => {
|
|
72
75
|
const itemRefs = useRef(/* @__PURE__ */ new Map());
|
|
76
|
+
const dragNodeKeyRef = useRef(null);
|
|
73
77
|
const effectiveSelectable = useMemo(() => {
|
|
74
78
|
if (selectionMode !== void 0) {
|
|
75
79
|
return selectionMode !== "none";
|
|
@@ -147,9 +151,11 @@ var Tree = ({
|
|
|
147
151
|
() => checkedSetsFromState(computedCheckedState),
|
|
148
152
|
[computedCheckedState]
|
|
149
153
|
);
|
|
154
|
+
const [internalSearchValue, setInternalSearchValue] = useState("");
|
|
155
|
+
const effectiveFilterValue = searchable ? internalSearchValue : filterValue;
|
|
150
156
|
useEffect(() => {
|
|
151
|
-
if (
|
|
152
|
-
const matched = filterTreeNodes(treeData,
|
|
157
|
+
if (effectiveFilterValue) {
|
|
158
|
+
const matched = filterTreeNodes(treeData, effectiveFilterValue, filterFn);
|
|
153
159
|
setFilteredNodeKeys(matched);
|
|
154
160
|
if (autoExpandParent) {
|
|
155
161
|
const autoExpand = getAutoExpandKeys(treeData, matched);
|
|
@@ -160,7 +166,7 @@ var Tree = ({
|
|
|
160
166
|
} else {
|
|
161
167
|
setFilteredNodeKeys(/* @__PURE__ */ new Set());
|
|
162
168
|
}
|
|
163
|
-
}, [
|
|
169
|
+
}, [effectiveFilterValue, treeData, filterFn, autoExpandParent, controlledExpandedKeys]);
|
|
164
170
|
const handleExpand = useCallback(
|
|
165
171
|
(nodeKey) => {
|
|
166
172
|
const node = findNode(treeData, nodeKey);
|
|
@@ -470,6 +476,26 @@ var Tree = ({
|
|
|
470
476
|
"aria-expanded": isExpandable ? isExpanded : void 0,
|
|
471
477
|
"aria-checked": checkable ? isHalfChecked ? "mixed" : isChecked : void 0,
|
|
472
478
|
tabIndex: isFocusable ? 0 : -1,
|
|
479
|
+
draggable: isDraggable && !node.disabled ? true : void 0,
|
|
480
|
+
onDragStart: isDraggable && !node.disabled ? (e) => {
|
|
481
|
+
e.stopPropagation();
|
|
482
|
+
dragNodeKeyRef.current = node.key;
|
|
483
|
+
} : void 0,
|
|
484
|
+
onDragOver: isDraggable ? (e) => {
|
|
485
|
+
e.preventDefault();
|
|
486
|
+
e.stopPropagation();
|
|
487
|
+
} : void 0,
|
|
488
|
+
onDrop: isDraggable ? (e) => {
|
|
489
|
+
e.preventDefault();
|
|
490
|
+
e.stopPropagation();
|
|
491
|
+
if (dragNodeKeyRef.current !== null && dragNodeKeyRef.current !== node.key) {
|
|
492
|
+
onDrop?.({ dragKey: dragNodeKeyRef.current, dropKey: node.key });
|
|
493
|
+
}
|
|
494
|
+
dragNodeKeyRef.current = null;
|
|
495
|
+
} : void 0,
|
|
496
|
+
onDragEnd: isDraggable ? () => {
|
|
497
|
+
dragNodeKeyRef.current = null;
|
|
498
|
+
} : void 0,
|
|
473
499
|
onFocus: () => {
|
|
474
500
|
if (!node.disabled) setActiveKey(node.key);
|
|
475
501
|
},
|
|
@@ -498,14 +524,26 @@ var Tree = ({
|
|
|
498
524
|
}
|
|
499
525
|
);
|
|
500
526
|
}
|
|
501
|
-
return /* @__PURE__ */
|
|
527
|
+
return /* @__PURE__ */ jsxs(
|
|
502
528
|
"div",
|
|
503
529
|
{
|
|
504
530
|
className: classNames(treeBaseClasses, className),
|
|
505
531
|
role: "tree",
|
|
506
532
|
"aria-label": ariaLabel,
|
|
507
533
|
"aria-multiselectable": effectiveMultiple || void 0,
|
|
508
|
-
children:
|
|
534
|
+
children: [
|
|
535
|
+
searchable && /* @__PURE__ */ jsx(
|
|
536
|
+
"input",
|
|
537
|
+
{
|
|
538
|
+
type: "text",
|
|
539
|
+
className: "w-full mb-2 px-2 py-1 text-sm border border-[var(--tiger-border,#e5e7eb)] rounded bg-[var(--tiger-surface,#ffffff)] focus:outline-none focus:ring-1 focus:ring-[var(--tiger-primary,#2563eb)]",
|
|
540
|
+
placeholder: "Search...",
|
|
541
|
+
value: internalSearchValue,
|
|
542
|
+
onChange: (e) => setInternalSearchValue(e.target.value)
|
|
543
|
+
}
|
|
544
|
+
),
|
|
545
|
+
treeData.map((node) => renderTreeNode(node, 0))
|
|
546
|
+
]
|
|
509
547
|
}
|
|
510
548
|
);
|
|
511
549
|
};
|
|
@@ -0,0 +1,148 @@
|
|
|
1
|
+
import React, { useRef, useState, useEffect, useMemo, useCallback } from 'react';
|
|
2
|
+
import { resizePanes, classNames, getSplitterContainerClasses, getPaneStyle, getSplitterGutterClasses, getSplitterGutterHandleClasses } from '@expcat/tigercat-core';
|
|
3
|
+
import { jsx, jsxs } from 'react/jsx-runtime';
|
|
4
|
+
|
|
5
|
+
// src/components/Splitter.tsx
|
|
6
|
+
var Splitter = ({
|
|
7
|
+
direction = "horizontal",
|
|
8
|
+
sizes: controlledSizes,
|
|
9
|
+
min = 0,
|
|
10
|
+
max,
|
|
11
|
+
gutterSize = 4,
|
|
12
|
+
disabled = false,
|
|
13
|
+
className,
|
|
14
|
+
style,
|
|
15
|
+
onResizeStart,
|
|
16
|
+
onResize,
|
|
17
|
+
onResizeEnd,
|
|
18
|
+
onSizesChange,
|
|
19
|
+
children
|
|
20
|
+
}) => {
|
|
21
|
+
const containerRef = useRef(null);
|
|
22
|
+
const [paneSizes, setPaneSizes] = useState(controlledSizes || []);
|
|
23
|
+
const draggingRef = useRef(null);
|
|
24
|
+
useEffect(() => {
|
|
25
|
+
if (controlledSizes) setPaneSizes(controlledSizes);
|
|
26
|
+
}, [controlledSizes]);
|
|
27
|
+
useEffect(() => {
|
|
28
|
+
if (controlledSizes && controlledSizes.length > 0) return;
|
|
29
|
+
const el = containerRef.current;
|
|
30
|
+
if (!el) return;
|
|
31
|
+
const paneCount = React.Children.count(children);
|
|
32
|
+
if (paneCount === 0) return;
|
|
33
|
+
const totalGutter = (paneCount - 1) * gutterSize;
|
|
34
|
+
const total = direction === "horizontal" ? el.clientWidth - totalGutter : el.clientHeight - totalGutter;
|
|
35
|
+
const eachSize = total / paneCount;
|
|
36
|
+
setPaneSizes(Array.from({ length: paneCount }, () => eachSize));
|
|
37
|
+
}, [children, direction, gutterSize, controlledSizes]);
|
|
38
|
+
const mins = useMemo(() => paneSizes.map(() => min), [paneSizes.length, min]);
|
|
39
|
+
const maxes = useMemo(() => paneSizes.map(() => max), [paneSizes.length, max]);
|
|
40
|
+
const handleMouseDown = useCallback(
|
|
41
|
+
(index, e) => {
|
|
42
|
+
if (disabled) return;
|
|
43
|
+
e.preventDefault();
|
|
44
|
+
draggingRef.current = {
|
|
45
|
+
index,
|
|
46
|
+
startPos: direction === "horizontal" ? e.clientX : e.clientY,
|
|
47
|
+
startSizes: [...paneSizes]
|
|
48
|
+
};
|
|
49
|
+
onResizeStart?.({ index, sizes: [...paneSizes] });
|
|
50
|
+
const onMouseMove = (ev) => {
|
|
51
|
+
const drag = draggingRef.current;
|
|
52
|
+
if (!drag) return;
|
|
53
|
+
const currentPos = direction === "horizontal" ? ev.clientX : ev.clientY;
|
|
54
|
+
const delta = currentPos - drag.startPos;
|
|
55
|
+
const newSizes = resizePanes(drag.startSizes, drag.index, delta, mins, maxes);
|
|
56
|
+
if (newSizes) {
|
|
57
|
+
setPaneSizes(newSizes);
|
|
58
|
+
onSizesChange?.(newSizes);
|
|
59
|
+
onResize?.({ index: drag.index, sizes: newSizes });
|
|
60
|
+
}
|
|
61
|
+
};
|
|
62
|
+
const onMouseUp = (ev) => {
|
|
63
|
+
const drag = draggingRef.current;
|
|
64
|
+
if (drag) {
|
|
65
|
+
const currentPos = direction === "horizontal" ? ev.clientX : ev.clientY;
|
|
66
|
+
const delta = currentPos - drag.startPos;
|
|
67
|
+
const finalSizes = resizePanes(drag.startSizes, drag.index, delta, mins, maxes) ?? drag.startSizes;
|
|
68
|
+
onResizeEnd?.({ index: drag.index, sizes: finalSizes });
|
|
69
|
+
}
|
|
70
|
+
draggingRef.current = null;
|
|
71
|
+
document.removeEventListener("mousemove", onMouseMove);
|
|
72
|
+
document.removeEventListener("mouseup", onMouseUp);
|
|
73
|
+
};
|
|
74
|
+
document.addEventListener("mousemove", onMouseMove);
|
|
75
|
+
document.addEventListener("mouseup", onMouseUp);
|
|
76
|
+
},
|
|
77
|
+
[
|
|
78
|
+
disabled,
|
|
79
|
+
direction,
|
|
80
|
+
paneSizes,
|
|
81
|
+
mins,
|
|
82
|
+
maxes,
|
|
83
|
+
onResizeStart,
|
|
84
|
+
onResize,
|
|
85
|
+
onResizeEnd,
|
|
86
|
+
onSizesChange
|
|
87
|
+
]
|
|
88
|
+
);
|
|
89
|
+
const handleKeyDown = useCallback(
|
|
90
|
+
(gutterIdx, e) => {
|
|
91
|
+
if (disabled) return;
|
|
92
|
+
const step = 10;
|
|
93
|
+
let delta = 0;
|
|
94
|
+
if (direction === "horizontal" && e.key === "ArrowLeft" || direction === "vertical" && e.key === "ArrowUp") {
|
|
95
|
+
delta = -step;
|
|
96
|
+
} else if (direction === "horizontal" && e.key === "ArrowRight" || direction === "vertical" && e.key === "ArrowDown") {
|
|
97
|
+
delta = step;
|
|
98
|
+
}
|
|
99
|
+
if (delta !== 0) {
|
|
100
|
+
e.preventDefault();
|
|
101
|
+
const newSizes = resizePanes(paneSizes, gutterIdx, delta, mins, maxes);
|
|
102
|
+
if (newSizes) {
|
|
103
|
+
setPaneSizes(newSizes);
|
|
104
|
+
onSizesChange?.(newSizes);
|
|
105
|
+
onResize?.({ index: gutterIdx, sizes: newSizes });
|
|
106
|
+
}
|
|
107
|
+
}
|
|
108
|
+
},
|
|
109
|
+
[disabled, direction, paneSizes, mins, maxes, onResize, onSizesChange]
|
|
110
|
+
);
|
|
111
|
+
const childArray = React.Children.toArray(children);
|
|
112
|
+
const containerClasses = useMemo(
|
|
113
|
+
() => classNames(getSplitterContainerClasses(direction, className)),
|
|
114
|
+
[direction, className]
|
|
115
|
+
);
|
|
116
|
+
return /* @__PURE__ */ jsx("div", { ref: containerRef, className: containerClasses, style, "data-direction": direction, children: childArray.map((child, i) => {
|
|
117
|
+
const size = paneSizes[i];
|
|
118
|
+
const paneStyle = size != null ? getPaneStyle(size, direction) : void 0;
|
|
119
|
+
const isDragging = draggingRef.current?.index === i;
|
|
120
|
+
return /* @__PURE__ */ jsxs(React.Fragment, { children: [
|
|
121
|
+
/* @__PURE__ */ jsx(
|
|
122
|
+
"div",
|
|
123
|
+
{
|
|
124
|
+
className: "tiger-splitter-pane relative overflow-auto",
|
|
125
|
+
style: paneStyle,
|
|
126
|
+
"data-pane-index": i,
|
|
127
|
+
children: child
|
|
128
|
+
}
|
|
129
|
+
),
|
|
130
|
+
i < childArray.length - 1 && /* @__PURE__ */ jsx(
|
|
131
|
+
"div",
|
|
132
|
+
{
|
|
133
|
+
className: getSplitterGutterClasses(direction, !!isDragging, disabled),
|
|
134
|
+
role: "separator",
|
|
135
|
+
"aria-orientation": direction === "horizontal" ? "vertical" : "horizontal",
|
|
136
|
+
tabIndex: disabled ? -1 : 0,
|
|
137
|
+
"data-gutter-index": i,
|
|
138
|
+
onMouseDown: (e) => handleMouseDown(i, e),
|
|
139
|
+
onKeyDown: (e) => handleKeyDown(i, e),
|
|
140
|
+
children: /* @__PURE__ */ jsx("div", { className: getSplitterGutterHandleClasses(direction) })
|
|
141
|
+
}
|
|
142
|
+
)
|
|
143
|
+
] }, i);
|
|
144
|
+
}) });
|
|
145
|
+
};
|
|
146
|
+
var Splitter_default = Splitter;
|
|
147
|
+
|
|
148
|
+
export { Splitter, Splitter_default };
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
3
|
var chunkH5MZ54PM_js = require('./chunk-H5MZ54PM.js');
|
|
4
|
-
var
|
|
5
|
-
var
|
|
4
|
+
var chunk2XOFRGY6_js = require('./chunk-2XOFRGY6.js');
|
|
5
|
+
var chunkBCNKTT5C_js = require('./chunk-BCNKTT5C.js');
|
|
6
6
|
var react = require('react');
|
|
7
7
|
var tigercatCore = require('@expcat/tigercat-core');
|
|
8
8
|
var jsxRuntime = require('react/jsx-runtime');
|
|
@@ -22,6 +22,7 @@ var FormWizard = ({
|
|
|
22
22
|
finishText,
|
|
23
23
|
locale,
|
|
24
24
|
beforeNext,
|
|
25
|
+
autoSave,
|
|
25
26
|
onChange,
|
|
26
27
|
onFinish,
|
|
27
28
|
renderStep,
|
|
@@ -29,7 +30,7 @@ var FormWizard = ({
|
|
|
29
30
|
style,
|
|
30
31
|
...props
|
|
31
32
|
}) => {
|
|
32
|
-
const config =
|
|
33
|
+
const config = chunk2XOFRGY6_js.useTigerConfig();
|
|
33
34
|
const mergedLocale = react.useMemo(
|
|
34
35
|
() => tigercatCore.mergeTigerLocale(config.locale, locale),
|
|
35
36
|
[config.locale, locale]
|
|
@@ -56,8 +57,11 @@ var FormWizard = ({
|
|
|
56
57
|
setInnerCurrent(clamped);
|
|
57
58
|
}
|
|
58
59
|
onChange?.(clamped, currentIndex);
|
|
60
|
+
if (autoSave && steps[clamped]) {
|
|
61
|
+
autoSave(clamped, steps[clamped]);
|
|
62
|
+
}
|
|
59
63
|
},
|
|
60
|
-
[current, currentIndex, onChange, totalCount]
|
|
64
|
+
[current, currentIndex, onChange, totalCount, autoSave, steps]
|
|
61
65
|
);
|
|
62
66
|
const runBeforeNext = react.useCallback(async () => {
|
|
63
67
|
if (!beforeNext || !currentStep) {
|
|
@@ -66,10 +70,24 @@ var FormWizard = ({
|
|
|
66
70
|
const result = await beforeNext(currentIndex, currentStep, steps);
|
|
67
71
|
return result === true;
|
|
68
72
|
}, [beforeNext, currentIndex, currentStep, steps]);
|
|
73
|
+
const findNextUnskipped = react.useCallback(
|
|
74
|
+
(from, dir) => {
|
|
75
|
+
let idx = from;
|
|
76
|
+
while (idx >= 0 && idx < totalCount) {
|
|
77
|
+
const step = steps[idx];
|
|
78
|
+
if (!step?.disabled && !step?.skipCondition?.()) return idx;
|
|
79
|
+
idx += dir;
|
|
80
|
+
}
|
|
81
|
+
return currentIndex;
|
|
82
|
+
},
|
|
83
|
+
[steps, totalCount, currentIndex]
|
|
84
|
+
);
|
|
69
85
|
const handlePrev = react.useCallback(() => {
|
|
70
|
-
if (currentIndex <= 0
|
|
71
|
-
|
|
72
|
-
|
|
86
|
+
if (currentIndex <= 0) return;
|
|
87
|
+
const target = findNextUnskipped(currentIndex - 1, -1);
|
|
88
|
+
if (target === currentIndex) return;
|
|
89
|
+
setCurrent(target);
|
|
90
|
+
}, [currentIndex, setCurrent, findNextUnskipped]);
|
|
73
91
|
const handleNext = react.useCallback(async () => {
|
|
74
92
|
if (totalCount === 0) return;
|
|
75
93
|
const ok = await runBeforeNext();
|
|
@@ -78,9 +96,19 @@ var FormWizard = ({
|
|
|
78
96
|
onFinish?.(currentIndex, steps);
|
|
79
97
|
return;
|
|
80
98
|
}
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
99
|
+
const target = findNextUnskipped(currentIndex + 1, 1);
|
|
100
|
+
if (target === currentIndex) return;
|
|
101
|
+
setCurrent(target);
|
|
102
|
+
}, [
|
|
103
|
+
currentIndex,
|
|
104
|
+
totalCount,
|
|
105
|
+
isLast,
|
|
106
|
+
onFinish,
|
|
107
|
+
runBeforeNext,
|
|
108
|
+
setCurrent,
|
|
109
|
+
steps,
|
|
110
|
+
findNextUnskipped
|
|
111
|
+
]);
|
|
84
112
|
const handleStepChange = react.useCallback(
|
|
85
113
|
async (nextIndex) => {
|
|
86
114
|
if (nextIndex === currentIndex || steps[nextIndex]?.disabled) return;
|
|
@@ -126,8 +154,8 @@ var FormWizard = ({
|
|
|
126
154
|
) }),
|
|
127
155
|
/* @__PURE__ */ jsxRuntime.jsx("div", { className: "px-6 py-4 flex flex-col items-center", children: contentNode }),
|
|
128
156
|
showActions && /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex items-center justify-center gap-3 px-6 py-2 border-t border-[var(--tiger-border,#e5e7eb)] bg-[var(--tiger-surface-muted,#f9fafb)]", children: [
|
|
129
|
-
/* @__PURE__ */ jsxRuntime.jsx(
|
|
130
|
-
/* @__PURE__ */ jsxRuntime.jsx(
|
|
157
|
+
/* @__PURE__ */ jsxRuntime.jsx(chunkBCNKTT5C_js.Button, { htmlType: "button", variant: "secondary", disabled: isFirst, onClick: handlePrev, children: tigercatCore.resolveLocaleText(labels.prevText, prevText) }),
|
|
158
|
+
/* @__PURE__ */ jsxRuntime.jsx(chunkBCNKTT5C_js.Button, { htmlType: "button", variant: "primary", onClick: handleNext, children: isLast ? tigercatCore.resolveLocaleText(labels.finishText, finishText) : tigercatCore.resolveLocaleText(labels.nextText, nextText) })
|
|
131
159
|
] })
|
|
132
160
|
] });
|
|
133
161
|
};
|
|
@@ -0,0 +1,180 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var chunkKQZ4F7FZ_js = require('./chunk-KQZ4F7FZ.js');
|
|
4
|
+
var chunkM375I56K_js = require('./chunk-M375I56K.js');
|
|
5
|
+
var chunkDUWAV47E_js = require('./chunk-DUWAV47E.js');
|
|
6
|
+
var React = require('react');
|
|
7
|
+
var tigercatCore = require('@expcat/tigercat-core');
|
|
8
|
+
var jsxRuntime = require('react/jsx-runtime');
|
|
9
|
+
|
|
10
|
+
function _interopDefault (e) { return e && e.__esModule ? e : { default: e }; }
|
|
11
|
+
|
|
12
|
+
var React__default = /*#__PURE__*/_interopDefault(React);
|
|
13
|
+
|
|
14
|
+
var HeatmapChart = ({
|
|
15
|
+
width = 400,
|
|
16
|
+
height = 300,
|
|
17
|
+
padding = 40,
|
|
18
|
+
data,
|
|
19
|
+
xLabels,
|
|
20
|
+
yLabels,
|
|
21
|
+
minColor = "#f0f9ff",
|
|
22
|
+
maxColor = "#2563eb",
|
|
23
|
+
cellRadius = 2,
|
|
24
|
+
cellGap = 1,
|
|
25
|
+
showValues = false,
|
|
26
|
+
valueFormatter,
|
|
27
|
+
hoverable = false,
|
|
28
|
+
hoveredIndex: hoveredIndexProp,
|
|
29
|
+
activeOpacity = 1,
|
|
30
|
+
inactiveOpacity = 0.25,
|
|
31
|
+
selectable = false,
|
|
32
|
+
selectedIndex: selectedIndexProp,
|
|
33
|
+
showTooltip = true,
|
|
34
|
+
title,
|
|
35
|
+
desc,
|
|
36
|
+
className,
|
|
37
|
+
onHoveredIndexChange,
|
|
38
|
+
onSelectedIndexChange,
|
|
39
|
+
onCellClick,
|
|
40
|
+
onCellHover
|
|
41
|
+
}) => {
|
|
42
|
+
const {
|
|
43
|
+
tooltipPosition,
|
|
44
|
+
resolvedHoveredIndex,
|
|
45
|
+
activeIndex,
|
|
46
|
+
handleMouseEnter,
|
|
47
|
+
handleMouseMove,
|
|
48
|
+
handleMouseLeave,
|
|
49
|
+
handleClick
|
|
50
|
+
} = chunkKQZ4F7FZ_js.useChartInteraction({
|
|
51
|
+
hoverable,
|
|
52
|
+
hoveredIndexProp,
|
|
53
|
+
selectable,
|
|
54
|
+
selectedIndexProp,
|
|
55
|
+
activeOpacity,
|
|
56
|
+
inactiveOpacity,
|
|
57
|
+
getData: (index) => data[index],
|
|
58
|
+
onHoveredIndexChange: (index) => {
|
|
59
|
+
onHoveredIndexChange?.(index);
|
|
60
|
+
onCellHover?.(index, index !== null ? data[index] : null);
|
|
61
|
+
},
|
|
62
|
+
onSelectedIndexChange,
|
|
63
|
+
callbacks: { onClick: onCellClick }
|
|
64
|
+
});
|
|
65
|
+
const innerRect = React.useMemo(
|
|
66
|
+
() => tigercatCore.getChartInnerRect(width, height, padding),
|
|
67
|
+
[width, height, padding]
|
|
68
|
+
);
|
|
69
|
+
const cells = React.useMemo(
|
|
70
|
+
() => tigercatCore.computeHeatmapCells(data, {
|
|
71
|
+
xLabels,
|
|
72
|
+
yLabels,
|
|
73
|
+
width: innerRect.width,
|
|
74
|
+
height: innerRect.height,
|
|
75
|
+
cellGap,
|
|
76
|
+
minColor,
|
|
77
|
+
maxColor
|
|
78
|
+
}),
|
|
79
|
+
[data, xLabels, yLabels, innerRect.width, innerRect.height, cellGap, minColor, maxColor]
|
|
80
|
+
);
|
|
81
|
+
const tooltipContent = React.useMemo(
|
|
82
|
+
() => tigercatCore.resolveChartTooltipContent(resolvedHoveredIndex, cells, void 0, (cell) => {
|
|
83
|
+
const val = valueFormatter ? valueFormatter(cell.value) : `${cell.value}`;
|
|
84
|
+
return `${cell.xLabel} \xD7 ${cell.yLabel}: ${val}`;
|
|
85
|
+
}),
|
|
86
|
+
[resolvedHoveredIndex, cells, valueFormatter]
|
|
87
|
+
);
|
|
88
|
+
const interactive = hoverable || selectable;
|
|
89
|
+
const rect = innerRect;
|
|
90
|
+
const cellW = (rect.width - cellGap * (xLabels.length - 1)) / xLabels.length;
|
|
91
|
+
const cellH = (rect.height - cellGap * (yLabels.length - 1)) / yLabels.length;
|
|
92
|
+
const chart = /* @__PURE__ */ jsxRuntime.jsxs(
|
|
93
|
+
chunkDUWAV47E_js.ChartCanvas,
|
|
94
|
+
{
|
|
95
|
+
width,
|
|
96
|
+
height,
|
|
97
|
+
padding,
|
|
98
|
+
title,
|
|
99
|
+
desc,
|
|
100
|
+
className: tigercatCore.classNames(className),
|
|
101
|
+
children: [
|
|
102
|
+
xLabels.map((lbl, i) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
103
|
+
"text",
|
|
104
|
+
{
|
|
105
|
+
x: i * (cellW + cellGap) + cellW / 2,
|
|
106
|
+
y: rect.height + 16,
|
|
107
|
+
className: tigercatCore.chartAxisTickTextClasses,
|
|
108
|
+
textAnchor: "middle",
|
|
109
|
+
children: lbl
|
|
110
|
+
},
|
|
111
|
+
`x-${i}`
|
|
112
|
+
)),
|
|
113
|
+
yLabels.map((lbl, i) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
114
|
+
"text",
|
|
115
|
+
{
|
|
116
|
+
x: -8,
|
|
117
|
+
y: i * (cellH + cellGap) + cellH / 2,
|
|
118
|
+
className: tigercatCore.chartAxisTickTextClasses,
|
|
119
|
+
textAnchor: "end",
|
|
120
|
+
dominantBaseline: "middle",
|
|
121
|
+
children: lbl
|
|
122
|
+
},
|
|
123
|
+
`y-${i}`
|
|
124
|
+
)),
|
|
125
|
+
cells.map((cell, idx) => {
|
|
126
|
+
const opacity = tigercatCore.getChartElementOpacity(idx, activeIndex, {
|
|
127
|
+
activeOpacity,
|
|
128
|
+
inactiveOpacity
|
|
129
|
+
});
|
|
130
|
+
return /* @__PURE__ */ jsxRuntime.jsxs(React__default.default.Fragment, { children: [
|
|
131
|
+
/* @__PURE__ */ jsxRuntime.jsx(
|
|
132
|
+
"rect",
|
|
133
|
+
{
|
|
134
|
+
x: cell.x,
|
|
135
|
+
y: cell.y,
|
|
136
|
+
width: cell.w,
|
|
137
|
+
height: cell.h,
|
|
138
|
+
rx: cellRadius,
|
|
139
|
+
fill: cell.fill,
|
|
140
|
+
opacity,
|
|
141
|
+
className: tigercatCore.classNames(interactive && "cursor-pointer"),
|
|
142
|
+
style: { transition: "opacity 0.2s ease-out" },
|
|
143
|
+
onMouseEnter: (e) => handleMouseEnter(idx, e),
|
|
144
|
+
onMouseMove: handleMouseMove,
|
|
145
|
+
onMouseLeave: handleMouseLeave,
|
|
146
|
+
onClick: () => handleClick(idx)
|
|
147
|
+
}
|
|
148
|
+
),
|
|
149
|
+
showValues && /* @__PURE__ */ jsxRuntime.jsx(
|
|
150
|
+
"text",
|
|
151
|
+
{
|
|
152
|
+
x: cell.x + cell.w / 2,
|
|
153
|
+
y: cell.y + cell.h / 2,
|
|
154
|
+
className: "fill-[color:var(--tiger-text,#374151)] text-[10px]",
|
|
155
|
+
textAnchor: "middle",
|
|
156
|
+
dominantBaseline: "middle",
|
|
157
|
+
children: valueFormatter ? valueFormatter(cell.value) : `${cell.value}`
|
|
158
|
+
}
|
|
159
|
+
)
|
|
160
|
+
] }, `cell-${idx}`);
|
|
161
|
+
})
|
|
162
|
+
]
|
|
163
|
+
}
|
|
164
|
+
);
|
|
165
|
+
const tooltip = showTooltip && hoverable ? /* @__PURE__ */ jsxRuntime.jsx(
|
|
166
|
+
chunkM375I56K_js.ChartTooltip,
|
|
167
|
+
{
|
|
168
|
+
content: tooltipContent,
|
|
169
|
+
visible: resolvedHoveredIndex !== null && tooltipContent !== "",
|
|
170
|
+
x: tooltipPosition.x,
|
|
171
|
+
y: tooltipPosition.y
|
|
172
|
+
}
|
|
173
|
+
) : null;
|
|
174
|
+
return /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "inline-block relative", children: [
|
|
175
|
+
chart,
|
|
176
|
+
tooltip
|
|
177
|
+
] });
|
|
178
|
+
};
|
|
179
|
+
|
|
180
|
+
exports.HeatmapChart = HeatmapChart;
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var React = require('react');
|
|
4
|
+
var tigercatCore = require('@expcat/tigercat-core');
|
|
5
|
+
var jsxRuntime = require('react/jsx-runtime');
|
|
6
|
+
|
|
7
|
+
function _interopDefault (e) { return e && e.__esModule ? e : { default: e }; }
|
|
8
|
+
|
|
9
|
+
var React__default = /*#__PURE__*/_interopDefault(React);
|
|
10
|
+
|
|
11
|
+
// src/components/AvatarGroup.tsx
|
|
12
|
+
var AvatarGroupContext = React.createContext(null);
|
|
13
|
+
var AvatarGroup = ({
|
|
14
|
+
max,
|
|
15
|
+
size,
|
|
16
|
+
className,
|
|
17
|
+
children,
|
|
18
|
+
...props
|
|
19
|
+
}) => {
|
|
20
|
+
const contextValue = React.useMemo(
|
|
21
|
+
() => ({ size, itemClass: tigercatCore.avatarGroupItemClasses }),
|
|
22
|
+
[size]
|
|
23
|
+
);
|
|
24
|
+
const childArray = React__default.default.Children.toArray(children);
|
|
25
|
+
const total = childArray.length;
|
|
26
|
+
const visibleCount = max != null && max < total ? max : total;
|
|
27
|
+
const overflow = total - visibleCount;
|
|
28
|
+
const visible = childArray.slice(0, visibleCount);
|
|
29
|
+
const overflowSizeClass = tigercatCore.avatarSizeClasses[size ?? "md"];
|
|
30
|
+
return /* @__PURE__ */ jsxRuntime.jsx(AvatarGroupContext.Provider, { value: contextValue, children: /* @__PURE__ */ jsxRuntime.jsxs(
|
|
31
|
+
"div",
|
|
32
|
+
{
|
|
33
|
+
className: tigercatCore.classNames(tigercatCore.avatarGroupBaseClasses, className),
|
|
34
|
+
role: "group",
|
|
35
|
+
"aria-label": "Avatar group",
|
|
36
|
+
...props,
|
|
37
|
+
children: [
|
|
38
|
+
visible,
|
|
39
|
+
overflow > 0 && /* @__PURE__ */ jsxRuntime.jsxs(
|
|
40
|
+
"span",
|
|
41
|
+
{
|
|
42
|
+
className: tigercatCore.classNames(tigercatCore.avatarGroupOverflowClasses, overflowSizeClass),
|
|
43
|
+
"aria-label": `${overflow} more`,
|
|
44
|
+
children: [
|
|
45
|
+
"+",
|
|
46
|
+
overflow
|
|
47
|
+
]
|
|
48
|
+
}
|
|
49
|
+
)
|
|
50
|
+
]
|
|
51
|
+
}
|
|
52
|
+
) });
|
|
53
|
+
};
|
|
54
|
+
|
|
55
|
+
exports.AvatarGroup = AvatarGroup;
|
|
56
|
+
exports.AvatarGroupContext = AvatarGroupContext;
|