@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,121 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var react = require('react');
|
|
4
|
+
var tigercatCore = require('@expcat/tigercat-core');
|
|
5
|
+
var jsxRuntime = require('react/jsx-runtime');
|
|
6
|
+
|
|
7
|
+
// src/components/Mentions.tsx
|
|
8
|
+
var Mentions = ({
|
|
9
|
+
value = "",
|
|
10
|
+
prefix: triggerPrefix = "@",
|
|
11
|
+
options = [],
|
|
12
|
+
placeholder,
|
|
13
|
+
disabled = false,
|
|
14
|
+
size = "md",
|
|
15
|
+
rows = 3,
|
|
16
|
+
onChange,
|
|
17
|
+
onSelect,
|
|
18
|
+
className
|
|
19
|
+
}) => {
|
|
20
|
+
const [isOpen, setIsOpen] = react.useState(false);
|
|
21
|
+
const [activeIndex, setActiveIndex] = react.useState(0);
|
|
22
|
+
const [query, setQuery] = react.useState("");
|
|
23
|
+
const mentionStartRef = react.useRef(-1);
|
|
24
|
+
const textareaRef = react.useRef(null);
|
|
25
|
+
const containerRef = react.useRef(null);
|
|
26
|
+
const filteredOptions = react.useMemo(() => {
|
|
27
|
+
if (!query) return options;
|
|
28
|
+
const q = query.toLowerCase();
|
|
29
|
+
return options.filter((o) => !o.disabled && o.label.toLowerCase().includes(q));
|
|
30
|
+
}, [options, query]);
|
|
31
|
+
const handleInput = react.useCallback(
|
|
32
|
+
(e) => {
|
|
33
|
+
const newValue = e.target.value;
|
|
34
|
+
onChange?.(newValue);
|
|
35
|
+
const cursorPos = e.target.selectionStart ?? newValue.length;
|
|
36
|
+
const result = tigercatCore.extractMentionQuery(newValue, cursorPos, triggerPrefix);
|
|
37
|
+
if (result && options.length > 0) {
|
|
38
|
+
setQuery(result.query);
|
|
39
|
+
mentionStartRef.current = result.startPos;
|
|
40
|
+
setIsOpen(true);
|
|
41
|
+
setActiveIndex(0);
|
|
42
|
+
} else {
|
|
43
|
+
setIsOpen(false);
|
|
44
|
+
}
|
|
45
|
+
},
|
|
46
|
+
[onChange, triggerPrefix, options.length]
|
|
47
|
+
);
|
|
48
|
+
const selectOption = react.useCallback(
|
|
49
|
+
(option) => {
|
|
50
|
+
if (option.disabled) return;
|
|
51
|
+
const before = value.slice(0, mentionStartRef.current);
|
|
52
|
+
const cursorPos = textareaRef.current?.selectionStart ?? value.length;
|
|
53
|
+
const after = value.slice(cursorPos);
|
|
54
|
+
const newValue = `${before}${triggerPrefix}${option.value} ${after}`;
|
|
55
|
+
onChange?.(newValue);
|
|
56
|
+
onSelect?.(option);
|
|
57
|
+
setIsOpen(false);
|
|
58
|
+
},
|
|
59
|
+
[value, triggerPrefix, onChange, onSelect]
|
|
60
|
+
);
|
|
61
|
+
const handleKeydown = react.useCallback(
|
|
62
|
+
(e) => {
|
|
63
|
+
if (!isOpen) return;
|
|
64
|
+
if (e.key === "ArrowDown") {
|
|
65
|
+
e.preventDefault();
|
|
66
|
+
setActiveIndex((prev) => (prev + 1) % filteredOptions.length);
|
|
67
|
+
} else if (e.key === "ArrowUp") {
|
|
68
|
+
e.preventDefault();
|
|
69
|
+
setActiveIndex((prev) => (prev - 1 + filteredOptions.length) % filteredOptions.length);
|
|
70
|
+
} else if (e.key === "Enter") {
|
|
71
|
+
e.preventDefault();
|
|
72
|
+
const opt = filteredOptions[activeIndex];
|
|
73
|
+
if (opt) selectOption(opt);
|
|
74
|
+
} else if (e.key === "Escape") {
|
|
75
|
+
setIsOpen(false);
|
|
76
|
+
}
|
|
77
|
+
},
|
|
78
|
+
[isOpen, filteredOptions, activeIndex, selectOption]
|
|
79
|
+
);
|
|
80
|
+
react.useEffect(() => {
|
|
81
|
+
if (!isOpen) return;
|
|
82
|
+
const handler = (e) => {
|
|
83
|
+
if (containerRef.current && !containerRef.current.contains(e.target)) {
|
|
84
|
+
setIsOpen(false);
|
|
85
|
+
}
|
|
86
|
+
};
|
|
87
|
+
document.addEventListener("mousedown", handler);
|
|
88
|
+
return () => document.removeEventListener("mousedown", handler);
|
|
89
|
+
}, [isOpen]);
|
|
90
|
+
const wrapperClass = tigercatCore.classNames("relative", className);
|
|
91
|
+
return /* @__PURE__ */ jsxRuntime.jsxs("div", { ref: containerRef, className: wrapperClass, children: [
|
|
92
|
+
/* @__PURE__ */ jsxRuntime.jsx(
|
|
93
|
+
"textarea",
|
|
94
|
+
{
|
|
95
|
+
ref: textareaRef,
|
|
96
|
+
value,
|
|
97
|
+
className: tigercatCore.getMentionsInputClasses(size, disabled),
|
|
98
|
+
placeholder,
|
|
99
|
+
disabled,
|
|
100
|
+
rows,
|
|
101
|
+
onChange: handleInput,
|
|
102
|
+
onKeyDown: handleKeydown
|
|
103
|
+
}
|
|
104
|
+
),
|
|
105
|
+
isOpen && filteredOptions.length > 0 && /* @__PURE__ */ jsxRuntime.jsx("div", { className: tigercatCore.mentionsDropdownClasses, role: "listbox", children: filteredOptions.map((opt, i) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
106
|
+
"div",
|
|
107
|
+
{
|
|
108
|
+
className: tigercatCore.getMentionsOptionClasses(i === activeIndex, !!opt.disabled),
|
|
109
|
+
role: "option",
|
|
110
|
+
"aria-selected": i === activeIndex,
|
|
111
|
+
onClick: () => selectOption(opt),
|
|
112
|
+
children: opt.label
|
|
113
|
+
},
|
|
114
|
+
opt.value
|
|
115
|
+
)) })
|
|
116
|
+
] });
|
|
117
|
+
};
|
|
118
|
+
var Mentions_default = Mentions;
|
|
119
|
+
|
|
120
|
+
exports.Mentions = Mentions;
|
|
121
|
+
exports.Mentions_default = Mentions_default;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
3
|
var chunkZYPEO2KY_js = require('./chunk-ZYPEO2KY.js');
|
|
4
|
-
var
|
|
4
|
+
var chunkBCNKTT5C_js = require('./chunk-BCNKTT5C.js');
|
|
5
5
|
var React = require('react');
|
|
6
6
|
var reactDom = require('react-dom');
|
|
7
7
|
var tigercatCore = require('@expcat/tigercat-core');
|
|
@@ -12,8 +12,9 @@ function _interopDefault (e) { return e && e.__esModule ? e : { default: e }; }
|
|
|
12
12
|
var React__default = /*#__PURE__*/_interopDefault(React);
|
|
13
13
|
|
|
14
14
|
var Modal = ({
|
|
15
|
-
|
|
15
|
+
open = false,
|
|
16
16
|
size = "md",
|
|
17
|
+
width,
|
|
17
18
|
title,
|
|
18
19
|
titleContent,
|
|
19
20
|
closable = true,
|
|
@@ -25,7 +26,7 @@ var Modal = ({
|
|
|
25
26
|
className,
|
|
26
27
|
children,
|
|
27
28
|
footer,
|
|
28
|
-
|
|
29
|
+
onOpenChange,
|
|
29
30
|
onClose,
|
|
30
31
|
onCancel,
|
|
31
32
|
onOk,
|
|
@@ -35,29 +36,54 @@ var Modal = ({
|
|
|
35
36
|
cancelText,
|
|
36
37
|
locale,
|
|
37
38
|
style,
|
|
39
|
+
draggable: isDraggable = false,
|
|
38
40
|
...rest
|
|
39
41
|
}) => {
|
|
40
|
-
const [hasBeenOpened, setHasBeenOpened] = React__default.default.useState(
|
|
42
|
+
const [hasBeenOpened, setHasBeenOpened] = React__default.default.useState(open);
|
|
43
|
+
const [dragOffset, setDragOffset] = React__default.default.useState({ x: 0, y: 0 });
|
|
41
44
|
React.useEffect(() => {
|
|
42
|
-
if (
|
|
45
|
+
if (open) {
|
|
43
46
|
setHasBeenOpened(true);
|
|
47
|
+
} else {
|
|
48
|
+
setDragOffset({ x: 0, y: 0 });
|
|
44
49
|
}
|
|
45
|
-
}, [
|
|
50
|
+
}, [open]);
|
|
51
|
+
const handleDragMouseDown = React.useCallback(
|
|
52
|
+
(e) => {
|
|
53
|
+
if (!isDraggable) return;
|
|
54
|
+
const startX = e.clientX;
|
|
55
|
+
const startY = e.clientY;
|
|
56
|
+
let offsetX = dragOffset.x;
|
|
57
|
+
let offsetY = dragOffset.y;
|
|
58
|
+
const onMouseMove = (ev) => {
|
|
59
|
+
offsetX = dragOffset.x + (ev.clientX - startX);
|
|
60
|
+
offsetY = dragOffset.y + (ev.clientY - startY);
|
|
61
|
+
setDragOffset({ x: offsetX, y: offsetY });
|
|
62
|
+
};
|
|
63
|
+
const onMouseUp = () => {
|
|
64
|
+
document.removeEventListener("mousemove", onMouseMove);
|
|
65
|
+
document.removeEventListener("mouseup", onMouseUp);
|
|
66
|
+
};
|
|
67
|
+
document.addEventListener("mousemove", onMouseMove);
|
|
68
|
+
document.addEventListener("mouseup", onMouseUp);
|
|
69
|
+
},
|
|
70
|
+
[isDraggable, dragOffset]
|
|
71
|
+
);
|
|
46
72
|
React.useEffect(() => {
|
|
47
|
-
|
|
48
|
-
if (!
|
|
73
|
+
onOpenChange?.(open);
|
|
74
|
+
if (!open && onClose) {
|
|
49
75
|
onClose();
|
|
50
76
|
}
|
|
51
|
-
}, [
|
|
52
|
-
const shouldRender = destroyOnClose ?
|
|
77
|
+
}, [open, onOpenChange, onClose]);
|
|
78
|
+
const shouldRender = destroyOnClose ? open : hasBeenOpened;
|
|
53
79
|
const handleClose = React.useCallback(() => {
|
|
54
80
|
onCancel?.();
|
|
55
|
-
|
|
56
|
-
}, [onCancel,
|
|
81
|
+
onOpenChange?.(false);
|
|
82
|
+
}, [onCancel, onOpenChange]);
|
|
57
83
|
const handleOk = React.useCallback(() => {
|
|
58
84
|
onOk?.();
|
|
59
|
-
|
|
60
|
-
}, [onOk,
|
|
85
|
+
onOpenChange?.(false);
|
|
86
|
+
}, [onOk, onOpenChange]);
|
|
61
87
|
const handleMaskClick = React.useCallback(
|
|
62
88
|
(event) => {
|
|
63
89
|
if (maskClosable && event.target === event.currentTarget) {
|
|
@@ -100,7 +126,7 @@ var Modal = ({
|
|
|
100
126
|
const closeButtonRef = React.useRef(null);
|
|
101
127
|
const previousActiveElementRef = React.useRef(null);
|
|
102
128
|
React.useEffect(() => {
|
|
103
|
-
if (
|
|
129
|
+
if (open) {
|
|
104
130
|
previousActiveElementRef.current = tigercatCore.captureActiveElement();
|
|
105
131
|
const timer = setTimeout(() => {
|
|
106
132
|
tigercatCore.focusFirst([closeButtonRef.current, dialogRef.current]);
|
|
@@ -108,8 +134,8 @@ var Modal = ({
|
|
|
108
134
|
return () => clearTimeout(timer);
|
|
109
135
|
}
|
|
110
136
|
tigercatCore.restoreFocus(previousActiveElementRef.current);
|
|
111
|
-
}, [
|
|
112
|
-
chunkZYPEO2KY_js.useEscapeKey({ enabled:
|
|
137
|
+
}, [open]);
|
|
138
|
+
chunkZYPEO2KY_js.useEscapeKey({ enabled: open, onEscape: handleClose });
|
|
113
139
|
const handleKeyDown = React.useCallback((event) => {
|
|
114
140
|
if (event.key === "Tab" && dialogRef.current) {
|
|
115
141
|
const focusables = tigercatCore.getFocusableElements(dialogRef.current);
|
|
@@ -145,16 +171,16 @@ var Modal = ({
|
|
|
145
171
|
const modalContent = /* @__PURE__ */ jsxRuntime.jsxs(
|
|
146
172
|
"div",
|
|
147
173
|
{
|
|
148
|
-
className: tigercatCore.classNames(tigercatCore.modalWrapperClasses, !
|
|
174
|
+
className: tigercatCore.classNames(tigercatCore.modalWrapperClasses, !open && "pointer-events-none"),
|
|
149
175
|
style: { zIndex },
|
|
150
|
-
hidden: !
|
|
151
|
-
"aria-hidden": !
|
|
176
|
+
hidden: !open,
|
|
177
|
+
"aria-hidden": !open ? "true" : void 0,
|
|
152
178
|
"data-tiger-modal-root": "",
|
|
153
179
|
children: [
|
|
154
180
|
mask && /* @__PURE__ */ jsxRuntime.jsx(
|
|
155
181
|
"div",
|
|
156
182
|
{
|
|
157
|
-
className: tigercatCore.classNames(tigercatCore.modalMaskClasses,
|
|
183
|
+
className: tigercatCore.classNames(tigercatCore.modalMaskClasses, open ? "opacity-100" : "opacity-0"),
|
|
158
184
|
"aria-hidden": "true",
|
|
159
185
|
"data-tiger-modal-mask": ""
|
|
160
186
|
}
|
|
@@ -163,7 +189,11 @@ var Modal = ({
|
|
|
163
189
|
"div",
|
|
164
190
|
{
|
|
165
191
|
className: contentClasses,
|
|
166
|
-
style
|
|
192
|
+
style: {
|
|
193
|
+
...style,
|
|
194
|
+
...width ? { width: typeof width === "number" ? `${width}px` : width, maxWidth: "100%" } : void 0,
|
|
195
|
+
...isDraggable && (dragOffset.x !== 0 || dragOffset.y !== 0) ? { transform: `translate(${dragOffset.x}px, ${dragOffset.y}px)` } : void 0
|
|
196
|
+
},
|
|
167
197
|
...dialogDivProps,
|
|
168
198
|
role: "dialog",
|
|
169
199
|
"aria-modal": "true",
|
|
@@ -173,24 +203,32 @@ var Modal = ({
|
|
|
173
203
|
onKeyDown: handleKeyDown,
|
|
174
204
|
"data-tiger-modal": "",
|
|
175
205
|
children: [
|
|
176
|
-
(title || titleContent || closable) && /* @__PURE__ */ jsxRuntime.jsxs(
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
206
|
+
(title || titleContent || closable) && /* @__PURE__ */ jsxRuntime.jsxs(
|
|
207
|
+
"div",
|
|
208
|
+
{
|
|
209
|
+
className: tigercatCore.modalHeaderClasses,
|
|
210
|
+
onMouseDown: isDraggable ? handleDragMouseDown : void 0,
|
|
211
|
+
style: isDraggable ? { cursor: "grab", userSelect: "none" } : void 0,
|
|
212
|
+
children: [
|
|
213
|
+
(title || titleContent) && /* @__PURE__ */ jsxRuntime.jsx("h3", { id: titleId, className: tigercatCore.modalTitleClasses, children: titleContent || title }),
|
|
214
|
+
closable && /* @__PURE__ */ jsxRuntime.jsx(
|
|
215
|
+
"button",
|
|
216
|
+
{
|
|
217
|
+
type: "button",
|
|
218
|
+
className: tigercatCore.modalCloseButtonClasses,
|
|
219
|
+
onClick: handleClose,
|
|
220
|
+
"aria-label": resolvedCloseAriaLabel,
|
|
221
|
+
ref: closeButtonRef,
|
|
222
|
+
children: CloseIcon
|
|
223
|
+
}
|
|
224
|
+
)
|
|
225
|
+
]
|
|
226
|
+
}
|
|
227
|
+
),
|
|
190
228
|
children && /* @__PURE__ */ jsxRuntime.jsx("div", { className: tigercatCore.modalBodyClasses, children }),
|
|
191
229
|
footer ? /* @__PURE__ */ jsxRuntime.jsx("div", { className: tigercatCore.modalFooterClasses, "data-tiger-modal-footer": "", children: footer }) : showDefaultFooter ? /* @__PURE__ */ jsxRuntime.jsxs("div", { className: tigercatCore.modalFooterClasses, "data-tiger-modal-footer": "", children: [
|
|
192
|
-
/* @__PURE__ */ jsxRuntime.jsx(
|
|
193
|
-
/* @__PURE__ */ jsxRuntime.jsx(
|
|
230
|
+
/* @__PURE__ */ jsxRuntime.jsx(chunkBCNKTT5C_js.Button, { variant: "secondary", onClick: handleClose, children: resolvedCancelText }),
|
|
231
|
+
/* @__PURE__ */ jsxRuntime.jsx(chunkBCNKTT5C_js.Button, { onClick: handleOk, children: resolvedOkText })
|
|
194
232
|
] }) : null
|
|
195
233
|
]
|
|
196
234
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var chunkRYW4CV7U_js = require('./chunk-RYW4CV7U.js');
|
|
4
4
|
var react = require('react');
|
|
5
5
|
var tigercatCore = require('@expcat/tigercat-core');
|
|
6
6
|
var jsxRuntime = require('react/jsx-runtime');
|
|
@@ -13,7 +13,7 @@ var DropdownItem = ({
|
|
|
13
13
|
children,
|
|
14
14
|
...buttonProps
|
|
15
15
|
}) => {
|
|
16
|
-
const context = react.useContext(
|
|
16
|
+
const context = react.useContext(chunkRYW4CV7U_js.DropdownContext);
|
|
17
17
|
const handleClick = (event) => {
|
|
18
18
|
if (disabled) {
|
|
19
19
|
event.preventDefault();
|
|
@@ -31,6 +31,7 @@ var DropdownItem = ({
|
|
|
31
31
|
type: "button",
|
|
32
32
|
className: itemClasses,
|
|
33
33
|
role: "menuitem",
|
|
34
|
+
tabIndex: -1,
|
|
34
35
|
"aria-disabled": disabled,
|
|
35
36
|
disabled,
|
|
36
37
|
onClick: handleClick,
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var react = require('react');
|
|
4
|
+
var tigercatCore = require('@expcat/tigercat-core');
|
|
5
|
+
var jsxRuntime = require('react/jsx-runtime');
|
|
6
|
+
|
|
7
|
+
// src/components/VirtualList.tsx
|
|
8
|
+
var VirtualList = ({
|
|
9
|
+
itemCount = 0,
|
|
10
|
+
itemHeight = 40,
|
|
11
|
+
height = 400,
|
|
12
|
+
overscan = 5,
|
|
13
|
+
className,
|
|
14
|
+
renderItem,
|
|
15
|
+
onScroll
|
|
16
|
+
}) => {
|
|
17
|
+
const [scrollTop, setScrollTop] = react.useState(0);
|
|
18
|
+
const containerRef = react.useRef(null);
|
|
19
|
+
const range = react.useMemo(
|
|
20
|
+
() => tigercatCore.getFixedVirtualRange(scrollTop, height, itemHeight, itemCount, overscan),
|
|
21
|
+
[scrollTop, height, itemHeight, itemCount, overscan]
|
|
22
|
+
);
|
|
23
|
+
const handleScroll = react.useCallback(() => {
|
|
24
|
+
if (containerRef.current) {
|
|
25
|
+
const st = containerRef.current.scrollTop;
|
|
26
|
+
setScrollTop(st);
|
|
27
|
+
onScroll?.(st);
|
|
28
|
+
}
|
|
29
|
+
}, [onScroll]);
|
|
30
|
+
const { startIndex, endIndex, offsetTop, totalHeight } = range;
|
|
31
|
+
const items = [];
|
|
32
|
+
for (let i = startIndex; i <= endIndex; i++) {
|
|
33
|
+
items.push(
|
|
34
|
+
/* @__PURE__ */ jsxRuntime.jsx("div", { style: { height: `${itemHeight}px`, width: "100%" }, children: renderItem({ index: i }) }, i)
|
|
35
|
+
);
|
|
36
|
+
}
|
|
37
|
+
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
38
|
+
"div",
|
|
39
|
+
{
|
|
40
|
+
ref: containerRef,
|
|
41
|
+
className: tigercatCore.classNames(tigercatCore.virtualListContainerClasses, className),
|
|
42
|
+
style: { height: `${height}px` },
|
|
43
|
+
onScroll: handleScroll,
|
|
44
|
+
children: /* @__PURE__ */ jsxRuntime.jsx("div", { className: tigercatCore.virtualListInnerClasses, style: { height: `${totalHeight}px` }, children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
45
|
+
"div",
|
|
46
|
+
{
|
|
47
|
+
style: {
|
|
48
|
+
transform: `translateY(${offsetTop}px)`,
|
|
49
|
+
position: "absolute",
|
|
50
|
+
top: 0,
|
|
51
|
+
left: 0,
|
|
52
|
+
width: "100%"
|
|
53
|
+
},
|
|
54
|
+
children: items
|
|
55
|
+
}
|
|
56
|
+
) })
|
|
57
|
+
}
|
|
58
|
+
);
|
|
59
|
+
};
|
|
60
|
+
|
|
61
|
+
exports.VirtualList = VirtualList;
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import React, { useContext, useMemo, useEffect } from 'react';
|
|
2
|
+
import { mergeTigerLocale, ThemeManager } from '@expcat/tigercat-core';
|
|
3
|
+
import { jsx } from 'react/jsx-runtime';
|
|
4
|
+
|
|
5
|
+
// src/components/ConfigProvider.tsx
|
|
6
|
+
var TigerConfigContext = React.createContext({});
|
|
7
|
+
var ConfigProvider = ({
|
|
8
|
+
locale,
|
|
9
|
+
theme,
|
|
10
|
+
colorScheme,
|
|
11
|
+
children
|
|
12
|
+
}) => {
|
|
13
|
+
const parent = useContext(TigerConfigContext);
|
|
14
|
+
const value = useMemo(() => {
|
|
15
|
+
return {
|
|
16
|
+
locale: mergeTigerLocale(parent.locale, locale),
|
|
17
|
+
theme: theme ?? parent.theme,
|
|
18
|
+
colorScheme: colorScheme ?? parent.colorScheme
|
|
19
|
+
};
|
|
20
|
+
}, [parent.locale, locale, theme, parent.theme, colorScheme, parent.colorScheme]);
|
|
21
|
+
useEffect(() => {
|
|
22
|
+
if (value.theme) ThemeManager.setTheme(value.theme);
|
|
23
|
+
}, [value.theme]);
|
|
24
|
+
useEffect(() => {
|
|
25
|
+
if (value.colorScheme) ThemeManager.setColorScheme(value.colorScheme);
|
|
26
|
+
}, [value.colorScheme]);
|
|
27
|
+
return /* @__PURE__ */ jsx(TigerConfigContext.Provider, { value, children });
|
|
28
|
+
};
|
|
29
|
+
function useTigerConfig() {
|
|
30
|
+
return useContext(TigerConfigContext);
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
export { ConfigProvider, useTigerConfig };
|
|
@@ -47,6 +47,7 @@ var DatePicker = (props) => {
|
|
|
47
47
|
onChange: _onChange,
|
|
48
48
|
onClear: _onClear,
|
|
49
49
|
className: _className,
|
|
50
|
+
shortcuts: _shortcuts,
|
|
50
51
|
...rest
|
|
51
52
|
}) => rest)(props);
|
|
52
53
|
const [isOpen, setIsOpen] = react.useState(false);
|
|
@@ -269,6 +270,24 @@ var DatePicker = (props) => {
|
|
|
269
270
|
const setToday = () => {
|
|
270
271
|
selectDate(/* @__PURE__ */ new Date());
|
|
271
272
|
};
|
|
273
|
+
const handleShortcut = (shortcut) => {
|
|
274
|
+
const val = typeof shortcut.value === "function" ? shortcut.value() : shortcut.value;
|
|
275
|
+
if (!isRangeMode) {
|
|
276
|
+
const date = val instanceof Date ? tigercatCore.normalizeDate(val) : val ? tigercatCore.normalizeDate(tigercatCore.parseDate(val)) : null;
|
|
277
|
+
if (!isControlled) setInternalValue(date);
|
|
278
|
+
props.onChange?.(date);
|
|
279
|
+
} else {
|
|
280
|
+
const range = val;
|
|
281
|
+
if (range && Array.isArray(range)) {
|
|
282
|
+
const parsed = [
|
|
283
|
+
range[0] ? tigercatCore.normalizeDate(range[0] instanceof Date ? range[0] : tigercatCore.parseDate(range[0])) : null,
|
|
284
|
+
range[1] ? tigercatCore.normalizeDate(range[1] instanceof Date ? range[1] : tigercatCore.parseDate(range[1])) : null
|
|
285
|
+
];
|
|
286
|
+
setRangeValue(parsed);
|
|
287
|
+
}
|
|
288
|
+
}
|
|
289
|
+
closeCalendar();
|
|
290
|
+
};
|
|
272
291
|
const clearDate = (event) => {
|
|
273
292
|
event.stopPropagation();
|
|
274
293
|
if (!isRangeMode) {
|
|
@@ -469,6 +488,16 @@ var DatePicker = (props) => {
|
|
|
469
488
|
}
|
|
470
489
|
);
|
|
471
490
|
})(),
|
|
491
|
+
props.shortcuts && props.shortcuts.length > 0 && /* @__PURE__ */ jsxRuntime.jsx("div", { className: "flex flex-wrap gap-1 px-3 py-2 border-t border-[var(--tiger-border,#e5e7eb)]", children: props.shortcuts.map((sc, i) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
492
|
+
"button",
|
|
493
|
+
{
|
|
494
|
+
type: "button",
|
|
495
|
+
className: tigercatCore.datePickerFooterButtonClasses,
|
|
496
|
+
onClick: () => handleShortcut(sc),
|
|
497
|
+
children: sc.label
|
|
498
|
+
},
|
|
499
|
+
i
|
|
500
|
+
)) }),
|
|
472
501
|
isRangeMode && /* @__PURE__ */ jsxRuntime.jsxs("div", { className: tigercatCore.datePickerFooterClasses, children: [
|
|
473
502
|
/* @__PURE__ */ jsxRuntime.jsx("button", { type: "button", className: tigercatCore.datePickerFooterButtonClasses, onClick: setToday, children: labels.today }),
|
|
474
503
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
@@ -0,0 +1,150 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var react = require('react');
|
|
4
|
+
var tigercatCore = require('@expcat/tigercat-core');
|
|
5
|
+
var jsxRuntime = require('react/jsx-runtime');
|
|
6
|
+
|
|
7
|
+
// src/components/Resizable.tsx
|
|
8
|
+
var Resizable = ({
|
|
9
|
+
defaultWidth,
|
|
10
|
+
defaultHeight,
|
|
11
|
+
minWidth = 0,
|
|
12
|
+
minHeight = 0,
|
|
13
|
+
maxWidth,
|
|
14
|
+
maxHeight,
|
|
15
|
+
handles = tigercatCore.defaultResizeHandles,
|
|
16
|
+
axis = "both",
|
|
17
|
+
disabled = false,
|
|
18
|
+
lockAspectRatio = false,
|
|
19
|
+
className,
|
|
20
|
+
style,
|
|
21
|
+
onResizeStart,
|
|
22
|
+
onResize,
|
|
23
|
+
onResizeEnd,
|
|
24
|
+
children
|
|
25
|
+
}) => {
|
|
26
|
+
const [width, setWidth] = react.useState(defaultWidth);
|
|
27
|
+
const [height, setHeight] = react.useState(defaultHeight);
|
|
28
|
+
const [draggingHandle, setDraggingHandle] = react.useState(null);
|
|
29
|
+
const dragRef = react.useRef(null);
|
|
30
|
+
const handleMouseDown = react.useCallback(
|
|
31
|
+
(handle, e) => {
|
|
32
|
+
if (disabled) return;
|
|
33
|
+
e.preventDefault();
|
|
34
|
+
const sw = width ?? 0;
|
|
35
|
+
const sh = height ?? 0;
|
|
36
|
+
dragRef.current = {
|
|
37
|
+
handle,
|
|
38
|
+
startX: e.clientX,
|
|
39
|
+
startY: e.clientY,
|
|
40
|
+
startW: sw,
|
|
41
|
+
startH: sh
|
|
42
|
+
};
|
|
43
|
+
setDraggingHandle(handle);
|
|
44
|
+
onResizeStart?.({ width: sw, height: sh, handle, deltaX: 0, deltaY: 0 });
|
|
45
|
+
const onMouseMove = (ev) => {
|
|
46
|
+
const drag = dragRef.current;
|
|
47
|
+
if (!drag) return;
|
|
48
|
+
const mouseDeltaX = ev.clientX - drag.startX;
|
|
49
|
+
const mouseDeltaY = ev.clientY - drag.startY;
|
|
50
|
+
const { deltaWidth, deltaHeight } = tigercatCore.calculateResizeDelta(
|
|
51
|
+
drag.handle,
|
|
52
|
+
mouseDeltaX,
|
|
53
|
+
mouseDeltaY,
|
|
54
|
+
axis
|
|
55
|
+
);
|
|
56
|
+
let newW = drag.startW + deltaWidth;
|
|
57
|
+
let newH = drag.startH + deltaHeight;
|
|
58
|
+
if (lockAspectRatio) {
|
|
59
|
+
const ar = tigercatCore.applyAspectRatio(newW, newH, drag.startW, drag.startH);
|
|
60
|
+
newW = ar.width;
|
|
61
|
+
newH = ar.height;
|
|
62
|
+
}
|
|
63
|
+
const clamped = tigercatCore.clampDimensions(newW, newH, minWidth, minHeight, maxWidth, maxHeight);
|
|
64
|
+
setWidth(clamped.width);
|
|
65
|
+
setHeight(clamped.height);
|
|
66
|
+
onResize?.({
|
|
67
|
+
width: clamped.width,
|
|
68
|
+
height: clamped.height,
|
|
69
|
+
handle: drag.handle,
|
|
70
|
+
deltaX: clamped.width - drag.startW,
|
|
71
|
+
deltaY: clamped.height - drag.startH
|
|
72
|
+
});
|
|
73
|
+
};
|
|
74
|
+
const onMouseUp = (ev) => {
|
|
75
|
+
const drag = dragRef.current;
|
|
76
|
+
if (drag) {
|
|
77
|
+
const mouseDeltaX = ev.clientX - drag.startX;
|
|
78
|
+
const mouseDeltaY = ev.clientY - drag.startY;
|
|
79
|
+
const { deltaWidth, deltaHeight } = tigercatCore.calculateResizeDelta(
|
|
80
|
+
drag.handle,
|
|
81
|
+
mouseDeltaX,
|
|
82
|
+
mouseDeltaY,
|
|
83
|
+
axis
|
|
84
|
+
);
|
|
85
|
+
let newW = drag.startW + deltaWidth;
|
|
86
|
+
let newH = drag.startH + deltaHeight;
|
|
87
|
+
if (lockAspectRatio) {
|
|
88
|
+
const ar = tigercatCore.applyAspectRatio(newW, newH, drag.startW, drag.startH);
|
|
89
|
+
newW = ar.width;
|
|
90
|
+
newH = ar.height;
|
|
91
|
+
}
|
|
92
|
+
const clamped = tigercatCore.clampDimensions(newW, newH, minWidth, minHeight, maxWidth, maxHeight);
|
|
93
|
+
onResizeEnd?.({
|
|
94
|
+
width: clamped.width,
|
|
95
|
+
height: clamped.height,
|
|
96
|
+
handle: drag.handle,
|
|
97
|
+
deltaX: clamped.width - drag.startW,
|
|
98
|
+
deltaY: clamped.height - drag.startH
|
|
99
|
+
});
|
|
100
|
+
}
|
|
101
|
+
dragRef.current = null;
|
|
102
|
+
setDraggingHandle(null);
|
|
103
|
+
document.removeEventListener("mousemove", onMouseMove);
|
|
104
|
+
document.removeEventListener("mouseup", onMouseUp);
|
|
105
|
+
};
|
|
106
|
+
document.addEventListener("mousemove", onMouseMove);
|
|
107
|
+
document.addEventListener("mouseup", onMouseUp);
|
|
108
|
+
},
|
|
109
|
+
[
|
|
110
|
+
disabled,
|
|
111
|
+
width,
|
|
112
|
+
height,
|
|
113
|
+
axis,
|
|
114
|
+
lockAspectRatio,
|
|
115
|
+
minWidth,
|
|
116
|
+
minHeight,
|
|
117
|
+
maxWidth,
|
|
118
|
+
maxHeight,
|
|
119
|
+
onResizeStart,
|
|
120
|
+
onResize,
|
|
121
|
+
onResizeEnd
|
|
122
|
+
]
|
|
123
|
+
);
|
|
124
|
+
const containerClasses = react.useMemo(
|
|
125
|
+
() => tigercatCore.classNames(tigercatCore.resizableBaseClasses, "group/resizable", className),
|
|
126
|
+
[className]
|
|
127
|
+
);
|
|
128
|
+
const containerStyle = react.useMemo(() => {
|
|
129
|
+
const s = { ...style };
|
|
130
|
+
if (width != null) s.width = `${width}px`;
|
|
131
|
+
if (height != null) s.height = `${height}px`;
|
|
132
|
+
return s;
|
|
133
|
+
}, [width, height, style]);
|
|
134
|
+
return /* @__PURE__ */ jsxRuntime.jsxs("div", { className: containerClasses, style: containerStyle, "data-resizable": "", children: [
|
|
135
|
+
children,
|
|
136
|
+
handles.map((pos) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
137
|
+
"div",
|
|
138
|
+
{
|
|
139
|
+
className: tigercatCore.getResizableHandleClasses(pos, draggingHandle === pos, disabled),
|
|
140
|
+
"data-handle": pos,
|
|
141
|
+
onMouseDown: (e) => handleMouseDown(pos, e)
|
|
142
|
+
},
|
|
143
|
+
pos
|
|
144
|
+
))
|
|
145
|
+
] });
|
|
146
|
+
};
|
|
147
|
+
var Resizable_default = Resizable;
|
|
148
|
+
|
|
149
|
+
exports.Resizable = Resizable;
|
|
150
|
+
exports.Resizable_default = Resizable_default;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { useControlledState } from './chunk-UQMPEMY7.mjs';
|
|
2
|
+
import { createContext, useContext } from 'react';
|
|
2
3
|
import { jsx } from 'react/jsx-runtime';
|
|
3
4
|
|
|
4
|
-
// src/components/CheckboxGroup.tsx
|
|
5
5
|
var CheckboxGroupContextProvider = createContext(null);
|
|
6
6
|
var useCheckboxGroup = () => {
|
|
7
7
|
return useContext(CheckboxGroupContextProvider);
|
|
@@ -16,9 +16,7 @@ var CheckboxGroup = ({
|
|
|
16
16
|
className,
|
|
17
17
|
...props
|
|
18
18
|
}) => {
|
|
19
|
-
const [
|
|
20
|
-
const isControlled = controlledValue !== void 0;
|
|
21
|
-
const value = isControlled ? controlledValue : internalValue;
|
|
19
|
+
const [value, setInternalValue, isControlled] = useControlledState(controlledValue, defaultValue);
|
|
22
20
|
const updateValue = (val, checked) => {
|
|
23
21
|
if (disabled) return;
|
|
24
22
|
const currentValue = [...value];
|