@expcat/tigercat-react 0.4.3 → 1.0.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/chunk-24RUEJWB.js +293 -0
- package/dist/{chunk-WGRYO5HX.mjs → chunk-2UQC3WOI.mjs} +63 -49
- package/dist/{chunk-V5NIFF2F.mjs → chunk-2WBPUW75.mjs} +7 -7
- package/dist/{chunk-QL6UEG3U.js → chunk-2XOFRGY6.js} +16 -3
- package/dist/chunk-32PAZTVF.mjs +123 -0
- package/dist/{chunk-IGE44BIS.mjs → chunk-34DLDOGP.mjs} +105 -19
- package/dist/chunk-34VGG7AK.mjs +40 -0
- package/dist/chunk-3EB42WFR.mjs +35 -0
- package/dist/{chunk-Z7SXK2KO.js → chunk-3JGOTJZM.js} +10 -7
- package/dist/{chunk-ENSLMM3L.mjs → chunk-3KMKMAE3.mjs} +15 -10
- package/dist/{chunk-SFALTVPS.js → chunk-3USEV7EV.js} +2 -2
- package/dist/chunk-45H3JEI3.js +155 -0
- package/dist/chunk-4APNERYR.js +212 -0
- package/dist/chunk-4GV7UQJJ.js +96 -0
- package/dist/chunk-4MKMM2OI.js +112 -0
- package/dist/{chunk-XKDWDANG.js → chunk-4Q4GADHJ.js} +7 -7
- package/dist/{chunk-QM4GOQDT.js → chunk-4QJZT6QK.js} +44 -6
- package/dist/chunk-4QQZ5H4V.mjs +213 -0
- package/dist/chunk-5CGXFQND.mjs +100 -0
- package/dist/chunk-5EVHVZG5.js +119 -0
- package/dist/{chunk-LXX2ZDJN.js → chunk-5MALB34H.js} +9 -9
- package/dist/chunk-5ZYZQXEM.mjs +167 -0
- package/dist/{chunk-PEGJ2KHC.js → chunk-65VXCN5N.js} +50 -68
- package/dist/{chunk-6PXNWGR5.mjs → chunk-6744DTEB.mjs} +9 -4
- package/dist/chunk-6E7FPBRR.mjs +192 -0
- package/dist/{chunk-NQFHS4W2.mjs → chunk-6KKUJT6B.mjs} +1 -1
- package/dist/{chunk-OXT5RN55.mjs → chunk-6P3JIUSI.mjs} +3 -3
- package/dist/chunk-73BP3WQN.mjs +210 -0
- package/dist/{chunk-77PE7OFK.mjs → chunk-7MASYF4S.mjs} +1 -1
- package/dist/{chunk-VCNZEQEB.mjs → chunk-7QZ4XT2P.mjs} +6 -5
- package/dist/chunk-7YLVAZJQ.mjs +47 -0
- package/dist/{chunk-NV3JUZ3N.js → chunk-AGR3FM3V.js} +4 -4
- package/dist/{chunk-EHYSER2Z.js → chunk-AHF6JE43.js} +7 -7
- package/dist/{chunk-MWH6FCSE.js → chunk-AJQPGAYL.js} +8 -8
- package/dist/{chunk-3PV2MDST.mjs → chunk-AMOH5AMN.mjs} +8 -8
- package/dist/chunk-AOZLBASY.mjs +38 -0
- package/dist/chunk-ASALMHFI.js +34 -0
- package/dist/chunk-AUW7DCXL.js +61 -0
- package/dist/{chunk-QFYS5QIZ.mjs → chunk-AYDTXJOR.mjs} +4 -4
- package/dist/{chunk-LLHUBM6E.mjs → chunk-B3MNIAM5.mjs} +4 -4
- package/dist/chunk-B53R2U2R.mjs +86 -0
- package/dist/chunk-BALJCZ62.mjs +147 -0
- package/dist/{chunk-F24IF2QL.js → chunk-BCNKTT5C.js} +14 -9
- package/dist/{chunk-JNLX47UL.mjs → chunk-BJ2GUKPU.mjs} +74 -36
- package/dist/chunk-BKYE77F2.js +171 -0
- package/dist/chunk-BR5OSUZT.mjs +55 -0
- package/dist/chunk-BZ3AXFLG.js +149 -0
- package/dist/{chunk-SOC74QA2.js → chunk-C6WJ4GQW.js} +8 -8
- package/dist/{chunk-LXQOQJMU.js → chunk-CDT3P2ZN.js} +5 -12
- package/dist/chunk-CHH7DWIO.js +121 -0
- package/dist/{chunk-3T7L3MHX.js → chunk-CKFE2B36.js} +76 -38
- package/dist/{chunk-QNRAM3CM.js → chunk-CMGI5WHZ.js} +3 -2
- package/dist/chunk-CQGAZ5JQ.js +61 -0
- package/dist/chunk-CRSMECWE.mjs +33 -0
- package/dist/{chunk-KAWE5LQZ.js → chunk-D6BHFGTN.js} +29 -0
- package/dist/chunk-DAR2BMMV.js +150 -0
- package/dist/{chunk-OCVQ3LOT.mjs → chunk-DKT2EYVM.mjs} +3 -5
- package/dist/chunk-DZGDCRBH.mjs +30 -0
- package/dist/{chunk-S4GNTA7V.mjs → chunk-EBLAM3YP.mjs} +2 -2
- package/dist/chunk-EEF26RBA.mjs +48 -0
- package/dist/{chunk-PJCY45UP.mjs → chunk-EHU3J4B2.mjs} +1 -1
- package/dist/{chunk-RKB2VUQO.js → chunk-EOYJLBFD.js} +24 -21
- package/dist/{chunk-DTQZPZSJ.mjs → chunk-EPN7QWP6.mjs} +16 -2
- package/dist/{chunk-M46L73HR.js → chunk-ET5YJELZ.js} +14 -14
- package/dist/{chunk-NTODO3Q3.mjs → chunk-EV6KRX6F.mjs} +38 -8
- package/dist/{chunk-GB5G2CJY.js → chunk-F2OF6XZ6.js} +36 -6
- package/dist/chunk-F6KHZNRS.js +32 -0
- package/dist/{chunk-URM7QDHH.js → chunk-F7H4ALKN.js} +2 -2
- package/dist/chunk-FHE4D56E.js +188 -0
- package/dist/chunk-FNK4ZATV.js +94 -0
- package/dist/{chunk-RGFSY3S2.mjs → chunk-FPURO6QB.mjs} +16 -3
- package/dist/chunk-GBTKAKUD.mjs +300 -0
- package/dist/chunk-GOUMB34F.mjs +168 -0
- package/dist/chunk-H3NLKNR4.mjs +192 -0
- package/dist/{chunk-6W6CRBBG.mjs → chunk-HCZA4LV6.mjs} +8 -5
- package/dist/{chunk-5CLXOFRZ.mjs → chunk-HLJQZUIY.mjs} +11 -10
- package/dist/chunk-HLS4CHWX.mjs +29 -0
- package/dist/{chunk-MTL2QUM3.mjs → chunk-HSHVLIEL.mjs} +2 -2
- package/dist/{chunk-XWNVBCJA.js → chunk-HU3VDVH6.js} +14 -15
- package/dist/{chunk-SW4I4X6E.mjs → chunk-HUCBHFSL.mjs} +24 -21
- package/dist/{chunk-Q57BYUUW.js → chunk-HWWNBCFB.js} +39 -8
- package/dist/{chunk-MDZDPGRK.mjs → chunk-HZ5Z5Y2J.mjs} +29 -10
- package/dist/chunk-HZHFFVP7.mjs +63 -0
- package/dist/chunk-I3CDTF4U.js +45 -0
- package/dist/chunk-I4SKKEU3.js +151 -0
- package/dist/{chunk-RCNTRSUA.mjs → chunk-INBSKSZG.mjs} +51 -69
- package/dist/chunk-IOHPB4CF.js +148 -0
- package/dist/{chunk-QIJG42YQ.mjs → chunk-IPLK4AIE.mjs} +3 -3
- package/dist/{chunk-XWRJVNB6.js → chunk-IWP22YTF.js} +104 -18
- package/dist/chunk-J3N24I7A.mjs +58 -0
- package/dist/chunk-JB33A4S6.js +125 -0
- package/dist/{chunk-DQNA57CA.js → chunk-JLM4LBUS.js} +5 -12
- package/dist/{chunk-TJFS44SH.js → chunk-JLRRXRZO.js} +2 -4
- package/dist/{chunk-GNMOOYHG.js → chunk-KNBNE74O.js} +11 -10
- package/dist/chunk-LODDAS62.js +173 -0
- package/dist/{chunk-LL6B4BHF.mjs → chunk-LPNHBHS2.mjs} +4 -4
- package/dist/{chunk-KBTFBEPE.mjs → chunk-MB7CJ32C.mjs} +153 -16
- package/dist/{chunk-IP3MAJSH.mjs → chunk-MQ5ZP5RW.mjs} +5 -12
- package/dist/{chunk-KMTERPME.mjs → chunk-MSHCPJIJ.mjs} +1 -1
- package/dist/chunk-N66WEQ6M.js +240 -0
- package/dist/{chunk-TDRINUMH.js → chunk-NZNSUKPT.js} +29 -10
- package/dist/{chunk-EFLIFXZH.js → chunk-P3XVLJYD.js} +15 -1
- package/dist/chunk-P6E3DILH.mjs +51 -0
- package/dist/{chunk-HPXLUJFJ.mjs → chunk-PN33UCWB.mjs} +3 -5
- package/dist/chunk-PNAWOJ32.js +54 -0
- package/dist/{chunk-72MWKUBC.js → chunk-PUYT62KC.js} +17 -4
- package/dist/chunk-Q4JMAQXJ.js +41 -0
- package/dist/chunk-QBZODEIG.js +49 -0
- package/dist/chunk-QHG7KJH6.js +302 -0
- package/dist/chunk-QIXQYLH5.js +44 -0
- package/dist/chunk-QO3GGQAV.mjs +148 -0
- package/dist/{chunk-RGZYYVQF.mjs → chunk-QPGL4YEO.mjs} +39 -11
- package/dist/{chunk-6IH5QPTR.mjs → chunk-QPOH6SOO.mjs} +44 -6
- package/dist/chunk-QVZTZHCJ.mjs +148 -0
- package/dist/{chunk-C7UKFKVY.js → chunk-QYGBT4NL.js} +40 -12
- package/dist/chunk-QYLNPHKG.mjs +87 -0
- package/dist/chunk-R3QWJ7GT.mjs +186 -0
- package/dist/chunk-R5P72RIT.js +180 -0
- package/dist/chunk-R5XY4EQL.js +56 -0
- package/dist/chunk-RRJTIKU6.mjs +238 -0
- package/dist/{chunk-ZFHTSHXS.mjs → chunk-RUROWRB5.mjs} +30 -1
- package/dist/{chunk-SAZ6V6DX.js → chunk-RVCUNEBU.js} +2 -4
- package/dist/chunk-RWZIWKZR.js +188 -0
- package/dist/{chunk-HB2UYJBY.js → chunk-RYW4CV7U.js} +61 -47
- package/dist/chunk-S5Y6UHAK.mjs +116 -0
- package/dist/{chunk-YV6Y7C43.js → chunk-SDWJSALH.js} +8 -3
- package/dist/chunk-SQK2CPSV.mjs +59 -0
- package/dist/{chunk-NJCKTIWB.mjs → chunk-SWF7GJYT.mjs} +6 -7
- package/dist/chunk-T5FAKJ6C.mjs +49 -0
- package/dist/chunk-TFPIRBHL.js +103 -0
- package/dist/chunk-TKZO5UBH.js +65 -0
- package/dist/chunk-TMQA74FM.js +215 -0
- package/dist/chunk-TQEIMVJD.mjs +94 -0
- package/dist/chunk-TYCRDHE6.mjs +143 -0
- package/dist/chunk-TZNTHABR.js +58 -0
- package/dist/chunk-UBKOITHT.mjs +142 -0
- package/dist/{chunk-RDIEZKV2.js → chunk-UEJHVPE2.js} +2 -2
- package/dist/chunk-UF3DXKCI.js +35 -0
- package/dist/chunk-UIO6O4MI.js +57 -0
- package/dist/chunk-UKGQ7256.js +13 -0
- package/dist/chunk-UPQGB5NQ.mjs +38 -0
- package/dist/chunk-UQMPEMY7.mjs +11 -0
- package/dist/chunk-V3P4ZAGL.mjs +110 -0
- package/dist/{chunk-TGPQ4KET.mjs → chunk-VAQDUVBP.mjs} +29 -2
- package/dist/chunk-VHHEP5G7.js +123 -0
- package/dist/{chunk-J3HKED4B.js → chunk-VHWTMNQN.js} +8 -8
- package/dist/{chunk-56KTCMRE.mjs → chunk-VONFSF4S.mjs} +5 -12
- package/dist/{chunk-JWFEJ4XG.js → chunk-WGPUGPYE.js} +2 -2
- package/dist/chunk-WIWTY74F.mjs +44 -0
- package/dist/chunk-WNLUUD5N.mjs +179 -0
- package/dist/{chunk-VCOBBJLP.js → chunk-WVVXZKNI.js} +5 -4
- package/dist/chunk-XEYP62CR.js +194 -0
- package/dist/chunk-XFJ5Q5PF.mjs +30 -0
- package/dist/{chunk-ZBVFM3GJ.js → chunk-XO6NSGV3.js} +152 -15
- package/dist/{chunk-FMF2G6BJ.js → chunk-XR6B2URW.js} +3 -3
- package/dist/chunk-Y3NDP56G.mjs +174 -0
- package/dist/chunk-YHFBPSMF.js +198 -0
- package/dist/chunk-YID7J6ZK.js +37 -0
- package/dist/chunk-YJ4W6DMX.mjs +186 -0
- package/dist/chunk-YLZEOXFS.mjs +116 -0
- package/dist/chunk-YPHOVEVU.mjs +118 -0
- package/dist/chunk-YXWRSEP5.mjs +286 -0
- package/dist/chunk-Z6CRXABX.js +88 -0
- package/dist/{chunk-24U2DQRP.mjs → chunk-ZD4BVRYG.mjs} +2 -1
- package/dist/chunk-ZRHDNGWO.js +46 -0
- package/dist/chunk-ZYJTHGQW.js +181 -0
- package/dist/components/ActivityFeed.js +5 -5
- package/dist/components/ActivityFeed.mjs +3 -3
- package/dist/components/Affix.d.mts +11 -0
- package/dist/components/Affix.d.ts +11 -0
- package/dist/components/Affix.js +10 -0
- package/dist/components/Affix.mjs +1 -0
- package/dist/components/Alert.js +2 -2
- package/dist/components/Alert.mjs +1 -1
- package/dist/components/AreaChart.js +5 -5
- package/dist/components/AreaChart.mjs +3 -3
- package/dist/components/AutoComplete.d.mts +16 -0
- package/dist/components/AutoComplete.d.ts +16 -0
- package/dist/components/AutoComplete.js +10 -0
- package/dist/components/AutoComplete.mjs +1 -0
- package/dist/components/AvatarGroup.d.mts +14 -0
- package/dist/components/AvatarGroup.d.ts +14 -0
- package/dist/components/AvatarGroup.js +14 -0
- package/dist/components/AvatarGroup.mjs +1 -0
- package/dist/components/Badge.js +2 -2
- package/dist/components/Badge.mjs +1 -1
- package/dist/components/BarChart.js +5 -5
- package/dist/components/BarChart.mjs +3 -3
- package/dist/components/Button.d.mts +2 -1
- package/dist/components/Button.d.ts +2 -1
- package/dist/components/Button.js +2 -2
- package/dist/components/Button.mjs +1 -1
- package/dist/components/ButtonGroup.d.mts +15 -0
- package/dist/components/ButtonGroup.d.ts +15 -0
- package/dist/components/ButtonGroup.js +18 -0
- package/dist/components/ButtonGroup.mjs +1 -0
- package/dist/components/Calendar.d.mts +15 -0
- package/dist/components/Calendar.d.ts +15 -0
- package/dist/components/Calendar.js +16 -0
- package/dist/components/Calendar.mjs +1 -0
- package/dist/components/Card.js +2 -2
- package/dist/components/Card.mjs +1 -1
- package/dist/components/Cascader.d.mts +15 -0
- package/dist/components/Cascader.d.ts +15 -0
- package/dist/components/Cascader.js +10 -0
- package/dist/components/Cascader.mjs +1 -0
- package/dist/components/ChatWindow.js +7 -6
- package/dist/components/ChatWindow.mjs +5 -4
- package/dist/components/Checkbox.js +4 -3
- package/dist/components/Checkbox.mjs +3 -2
- package/dist/components/CheckboxGroup.js +4 -3
- package/dist/components/CheckboxGroup.mjs +2 -1
- package/dist/components/CodeEditor.d.mts +11 -0
- package/dist/components/CodeEditor.d.ts +11 -0
- package/dist/components/CodeEditor.js +16 -0
- package/dist/components/CodeEditor.mjs +1 -0
- package/dist/components/ColorPicker.d.mts +12 -0
- package/dist/components/ColorPicker.d.ts +12 -0
- package/dist/components/ColorPicker.js +10 -0
- package/dist/components/ColorPicker.mjs +1 -0
- package/dist/components/CommentThread.js +7 -6
- package/dist/components/CommentThread.mjs +5 -4
- package/dist/components/ConfigProvider.d.mts +5 -1
- package/dist/components/ConfigProvider.d.ts +5 -1
- package/dist/components/ConfigProvider.js +3 -3
- package/dist/components/ConfigProvider.mjs +1 -1
- package/dist/components/CropUpload.js +4 -4
- package/dist/components/CropUpload.mjs +3 -3
- package/dist/components/DataTableWithToolbar.js +7 -7
- package/dist/components/DataTableWithToolbar.mjs +5 -5
- package/dist/components/DatePicker.js +2 -2
- package/dist/components/DatePicker.mjs +1 -1
- package/dist/components/Descriptions.d.mts +3 -3
- package/dist/components/Descriptions.d.ts +3 -3
- package/dist/components/Descriptions.js +3 -3
- package/dist/components/Descriptions.mjs +1 -1
- package/dist/components/Divider.js +2 -2
- package/dist/components/Divider.mjs +1 -1
- package/dist/components/DonutChart.js +5 -5
- package/dist/components/DonutChart.mjs +3 -3
- package/dist/components/Drawer.js +2 -2
- package/dist/components/Drawer.mjs +1 -1
- package/dist/components/Dropdown.d.mts +1 -1
- package/dist/components/Dropdown.d.ts +1 -1
- package/dist/components/Dropdown.js +3 -3
- package/dist/components/Dropdown.mjs +1 -1
- package/dist/components/DropdownItem.js +3 -3
- package/dist/components/DropdownItem.mjs +2 -2
- package/dist/components/Empty.d.mts +14 -0
- package/dist/components/Empty.d.ts +14 -0
- package/dist/components/Empty.js +10 -0
- package/dist/components/Empty.mjs +1 -0
- package/dist/components/FileManager.d.mts +29 -0
- package/dist/components/FileManager.d.ts +29 -0
- package/dist/components/FileManager.js +16 -0
- package/dist/components/FileManager.mjs +1 -0
- package/dist/components/FloatButton.d.mts +21 -0
- package/dist/components/FloatButton.d.ts +21 -0
- package/dist/components/FloatButton.js +14 -0
- package/dist/components/FloatButton.mjs +1 -0
- package/dist/components/Form.d.mts +24 -0
- package/dist/components/Form.d.ts +24 -0
- package/dist/components/Form.js +3 -3
- package/dist/components/Form.mjs +1 -1
- package/dist/components/FormItem.js +3 -3
- package/dist/components/FormItem.mjs +2 -2
- package/dist/components/FormWizard.d.mts +1 -1
- package/dist/components/FormWizard.d.ts +1 -1
- package/dist/components/FormWizard.js +5 -5
- package/dist/components/FormWizard.mjs +3 -3
- package/dist/components/FunnelChart.d.mts +15 -0
- package/dist/components/FunnelChart.d.ts +15 -0
- package/dist/components/FunnelChart.js +14 -0
- package/dist/components/FunnelChart.mjs +5 -0
- package/dist/components/GaugeChart.d.mts +9 -0
- package/dist/components/GaugeChart.d.ts +9 -0
- package/dist/components/GaugeChart.js +11 -0
- package/dist/components/GaugeChart.mjs +2 -0
- package/dist/components/HeatmapChart.d.mts +13 -0
- package/dist/components/HeatmapChart.d.ts +13 -0
- package/dist/components/HeatmapChart.js +13 -0
- package/dist/components/HeatmapChart.mjs +4 -0
- package/dist/components/Image.d.mts +4 -0
- package/dist/components/Image.d.ts +4 -0
- package/dist/components/Image.js +4 -4
- package/dist/components/Image.mjs +3 -3
- package/dist/components/ImageGroup.js +4 -4
- package/dist/components/ImageGroup.mjs +2 -2
- package/dist/components/ImagePreview.d.mts +3 -2
- package/dist/components/ImagePreview.d.ts +3 -2
- package/dist/components/ImagePreview.js +2 -2
- package/dist/components/ImagePreview.mjs +1 -1
- package/dist/components/ImageViewer.d.mts +20 -0
- package/dist/components/ImageViewer.d.ts +20 -0
- package/dist/components/ImageViewer.js +10 -0
- package/dist/components/ImageViewer.mjs +1 -0
- package/dist/components/InfiniteScroll.d.mts +20 -0
- package/dist/components/InfiniteScroll.d.ts +20 -0
- package/dist/components/InfiniteScroll.js +16 -0
- package/dist/components/InfiniteScroll.mjs +1 -0
- package/dist/components/Input.d.mts +5 -0
- package/dist/components/Input.d.ts +5 -0
- package/dist/components/Input.js +2 -2
- package/dist/components/Input.mjs +1 -1
- package/dist/components/InputGroup.d.mts +20 -0
- package/dist/components/InputGroup.d.ts +20 -0
- package/dist/components/InputGroup.js +22 -0
- package/dist/components/InputGroup.mjs +1 -0
- package/dist/components/InputNumber.js +2 -2
- package/dist/components/InputNumber.mjs +1 -1
- package/dist/components/Kanban.d.mts +46 -0
- package/dist/components/Kanban.d.ts +46 -0
- package/dist/components/Kanban.js +17 -0
- package/dist/components/Kanban.mjs +2 -0
- package/dist/components/LineChart.js +5 -5
- package/dist/components/LineChart.mjs +3 -3
- package/dist/components/List.d.mts +9 -1
- package/dist/components/List.d.ts +9 -1
- package/dist/components/List.js +2 -2
- package/dist/components/List.mjs +1 -1
- package/dist/components/Mentions.d.mts +18 -0
- package/dist/components/Mentions.d.ts +18 -0
- package/dist/components/Mentions.js +16 -0
- package/dist/components/Mentions.mjs +1 -0
- package/dist/components/Modal.d.mts +2 -2
- package/dist/components/Modal.d.ts +2 -2
- package/dist/components/Modal.js +3 -3
- package/dist/components/Modal.mjs +2 -2
- package/dist/components/NotificationCenter.js +8 -8
- package/dist/components/NotificationCenter.mjs +6 -6
- package/dist/components/PieChart.js +4 -4
- package/dist/components/PieChart.mjs +2 -2
- package/dist/components/Popconfirm.d.mts +1 -1
- package/dist/components/Popconfirm.d.ts +1 -1
- package/dist/components/Popconfirm.js +3 -3
- package/dist/components/Popconfirm.mjs +2 -2
- package/dist/components/Popover.d.mts +1 -1
- package/dist/components/Popover.d.ts +1 -1
- package/dist/components/Popover.js +3 -3
- package/dist/components/Popover.mjs +2 -2
- package/dist/components/PrintLayout.d.mts +22 -0
- package/dist/components/PrintLayout.d.ts +22 -0
- package/dist/components/PrintLayout.js +14 -0
- package/dist/components/PrintLayout.mjs +1 -0
- package/dist/components/Progress.js +2 -2
- package/dist/components/Progress.mjs +1 -1
- package/dist/components/QRCode.d.mts +16 -0
- package/dist/components/QRCode.d.ts +16 -0
- package/dist/components/QRCode.js +16 -0
- package/dist/components/QRCode.mjs +1 -0
- package/dist/components/RadarChart.js +4 -4
- package/dist/components/RadarChart.mjs +2 -2
- package/dist/components/Radio.js +4 -3
- package/dist/components/Radio.mjs +3 -2
- package/dist/components/RadioGroup.js +4 -3
- package/dist/components/RadioGroup.mjs +2 -1
- package/dist/components/Rate.d.mts +14 -0
- package/dist/components/Rate.d.ts +14 -0
- package/dist/components/Rate.js +10 -0
- package/dist/components/Rate.mjs +1 -0
- package/dist/components/Resizable.d.mts +13 -0
- package/dist/components/Resizable.d.ts +13 -0
- package/dist/components/Resizable.js +16 -0
- package/dist/components/Resizable.mjs +1 -0
- package/dist/components/Result.d.mts +14 -0
- package/dist/components/Result.d.ts +14 -0
- package/dist/components/Result.js +11 -0
- package/dist/components/Result.mjs +2 -0
- package/dist/components/RichTextEditor.d.mts +26 -0
- package/dist/components/RichTextEditor.d.ts +26 -0
- package/dist/components/RichTextEditor.js +17 -0
- package/dist/components/RichTextEditor.mjs +2 -0
- package/dist/components/ScatterChart.js +5 -5
- package/dist/components/ScatterChart.mjs +3 -3
- package/dist/components/Segmented.d.mts +12 -0
- package/dist/components/Segmented.d.ts +12 -0
- package/dist/components/Segmented.js +10 -0
- package/dist/components/Segmented.mjs +1 -0
- package/dist/components/Select.js +2 -2
- package/dist/components/Select.mjs +1 -1
- package/dist/components/Splitter.d.mts +18 -0
- package/dist/components/Splitter.d.ts +18 -0
- package/dist/components/Splitter.js +16 -0
- package/dist/components/Splitter.mjs +1 -0
- package/dist/components/Statistic.d.mts +8 -0
- package/dist/components/Statistic.d.ts +8 -0
- package/dist/components/Statistic.js +10 -0
- package/dist/components/Statistic.mjs +1 -0
- package/dist/components/Stepper.d.mts +12 -0
- package/dist/components/Stepper.d.ts +12 -0
- package/dist/components/Stepper.js +10 -0
- package/dist/components/Stepper.mjs +1 -0
- package/dist/components/SunburstChart.d.mts +15 -0
- package/dist/components/SunburstChart.d.ts +15 -0
- package/dist/components/SunburstChart.js +14 -0
- package/dist/components/SunburstChart.mjs +5 -0
- package/dist/components/TabPane.js +2 -2
- package/dist/components/TabPane.mjs +1 -1
- package/dist/components/Table.d.mts +13 -1
- package/dist/components/Table.d.ts +13 -1
- package/dist/components/Table.js +2 -2
- package/dist/components/Table.mjs +1 -1
- package/dist/components/Tabs.d.mts +7 -0
- package/dist/components/Tabs.d.ts +7 -0
- package/dist/components/Tabs.js +3 -3
- package/dist/components/Tabs.mjs +1 -1
- package/dist/components/TaskBoard.js +4 -4
- package/dist/components/TaskBoard.mjs +2 -2
- package/dist/components/Text.js +2 -2
- package/dist/components/Text.mjs +1 -1
- package/dist/components/Textarea.js +3 -2
- package/dist/components/Textarea.mjs +2 -1
- package/dist/components/Tooltip.d.mts +1 -1
- package/dist/components/Tooltip.d.ts +1 -1
- package/dist/components/Tooltip.js +3 -3
- package/dist/components/Tooltip.mjs +2 -2
- package/dist/components/Tour.d.mts +14 -0
- package/dist/components/Tour.d.ts +14 -0
- package/dist/components/Tour.js +11 -0
- package/dist/components/Tour.mjs +2 -0
- package/dist/components/Transfer.d.mts +12 -0
- package/dist/components/Transfer.d.ts +12 -0
- package/dist/components/Transfer.js +10 -0
- package/dist/components/Transfer.mjs +1 -0
- package/dist/components/Tree.d.mts +18 -0
- package/dist/components/Tree.d.ts +18 -0
- package/dist/components/Tree.js +3 -3
- package/dist/components/Tree.mjs +1 -1
- package/dist/components/TreeMapChart.d.mts +15 -0
- package/dist/components/TreeMapChart.d.ts +15 -0
- package/dist/components/TreeMapChart.js +14 -0
- package/dist/components/TreeMapChart.mjs +5 -0
- package/dist/components/TreeSelect.d.mts +12 -0
- package/dist/components/TreeSelect.d.ts +12 -0
- package/dist/components/TreeSelect.js +10 -0
- package/dist/components/TreeSelect.mjs +1 -0
- package/dist/components/Upload.js +3 -3
- package/dist/components/Upload.mjs +2 -2
- package/dist/components/VirtualList.d.mts +14 -0
- package/dist/components/VirtualList.d.ts +14 -0
- package/dist/components/VirtualList.js +10 -0
- package/dist/components/VirtualList.mjs +1 -0
- package/dist/components/VirtualTable.d.mts +26 -0
- package/dist/components/VirtualTable.d.ts +26 -0
- package/dist/components/VirtualTable.js +16 -0
- package/dist/components/VirtualTable.mjs +1 -0
- package/dist/components/Watermark.d.mts +9 -0
- package/dist/components/Watermark.d.ts +9 -0
- package/dist/components/Watermark.js +10 -0
- package/dist/components/Watermark.mjs +1 -0
- package/dist/index.d.mts +85 -2
- package/dist/index.d.ts +85 -2
- package/dist/index.js +504 -181
- package/dist/index.mjs +223 -64
- package/package.json +2 -2
- package/dist/chunk-3M2IG6IN.mjs +0 -34
- package/dist/chunk-4Y7YH32A.mjs +0 -157
- package/dist/chunk-FPNT7FV5.mjs +0 -44
- package/dist/chunk-FSDZJD7M.js +0 -159
- package/dist/chunk-I5TCE5E7.js +0 -32
- package/dist/chunk-LIV33O73.mjs +0 -26
- package/dist/chunk-O3W3OZ6V.js +0 -37
- package/dist/chunk-OYCMGKQ7.js +0 -111
- package/dist/chunk-RPTLVIBF.mjs +0 -109
- package/dist/chunk-RYWGELJ7.js +0 -46
- package/dist/chunk-SSQOCZ6O.js +0 -36
- package/dist/chunk-UZ7SBFQV.mjs +0 -35
- package/dist/chunk-VEGBO77D.mjs +0 -20
- package/dist/{chunk-2DW3WFZI.mjs → chunk-2LUDQBVY.mjs} +2 -2
- package/dist/{chunk-JQNKI2ZZ.js → chunk-C443YA4U.js} +2 -2
- package/dist/{chunk-QGCQAJGL.mjs → chunk-DEQWHJLQ.mjs} +2 -2
- package/dist/{chunk-N4EMXCRQ.mjs → chunk-FXX3GD35.mjs} +1 -1
- package/dist/{chunk-GASFXURT.js → chunk-KQJYSG23.js} +2 -2
- package/dist/{chunk-NEP3CS6S.js → chunk-OE6WTZES.js} +2 -2
- package/dist/{chunk-SH6O6LDJ.mjs → chunk-QQDKQLHJ.mjs} +1 -1
- package/dist/{chunk-F4Q5QMX2.js → chunk-TVJZB7ZC.js} +1 -1
- package/dist/{chunk-SM7RDJFB.js → chunk-VILZFNR7.js} +2 -2
- package/dist/{chunk-W4TFISRK.js → chunk-WK5QJO57.js} +1 -1
- package/dist/{chunk-CYZLGYY4.mjs → chunk-XNMSECO4.mjs} +2 -2
- package/dist/{chunk-763M6U5U.mjs → chunk-ZDL3GE3Q.mjs} +2 -2
|
@@ -47,15 +47,12 @@ var InputNumber = ({
|
|
|
47
47
|
},
|
|
48
48
|
[formatter, precision]
|
|
49
49
|
);
|
|
50
|
-
const parseValue =
|
|
51
|
-
(str)
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
},
|
|
57
|
-
[parser]
|
|
58
|
-
);
|
|
50
|
+
const parseValue = (str) => {
|
|
51
|
+
if (str === "" || str === "-") return null;
|
|
52
|
+
if (parser) return parser(str);
|
|
53
|
+
const num = Number(str);
|
|
54
|
+
return Number.isNaN(num) ? null : num;
|
|
55
|
+
};
|
|
59
56
|
react.useEffect(() => {
|
|
60
57
|
if (!focused) {
|
|
61
58
|
setDisplayValue(toDisplayValue(currentValue));
|
|
@@ -66,69 +63,54 @@ var InputNumber = ({
|
|
|
66
63
|
inputRef.current.focus();
|
|
67
64
|
}
|
|
68
65
|
}, [autoFocus]);
|
|
69
|
-
const commitValue =
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
finalVal = tigercatCore.formatPrecision(finalVal, precision);
|
|
76
|
-
}
|
|
77
|
-
}
|
|
78
|
-
if (!isControlled) {
|
|
79
|
-
setInternalValue(finalVal);
|
|
66
|
+
const commitValue = (val) => {
|
|
67
|
+
let finalVal = val;
|
|
68
|
+
if (finalVal !== null) {
|
|
69
|
+
finalVal = tigercatCore.clampValue(finalVal, min, max);
|
|
70
|
+
if (precision !== void 0) {
|
|
71
|
+
finalVal = tigercatCore.formatPrecision(finalVal, precision);
|
|
80
72
|
}
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
)
|
|
94
|
-
const handleInput = react.useCallback((e) => {
|
|
73
|
+
}
|
|
74
|
+
if (!isControlled) {
|
|
75
|
+
setInternalValue(finalVal);
|
|
76
|
+
}
|
|
77
|
+
onChange?.(finalVal);
|
|
78
|
+
setDisplayValue(toDisplayValue(finalVal));
|
|
79
|
+
};
|
|
80
|
+
const handleStep = (direction) => {
|
|
81
|
+
if (disabled || readonly) return;
|
|
82
|
+
const next = tigercatCore.stepValue(currentValue, step, direction, min, max, precision);
|
|
83
|
+
commitValue(next);
|
|
84
|
+
};
|
|
85
|
+
const handleInput = (e) => {
|
|
95
86
|
setDisplayValue(e.target.value);
|
|
96
|
-
}
|
|
97
|
-
const handleBlur =
|
|
98
|
-
(
|
|
99
|
-
|
|
87
|
+
};
|
|
88
|
+
const handleBlur = (e) => {
|
|
89
|
+
setFocused(false);
|
|
90
|
+
const parsed = parseValue(displayValue);
|
|
91
|
+
commitValue(parsed);
|
|
92
|
+
onBlur?.(e);
|
|
93
|
+
};
|
|
94
|
+
const handleFocus = (e) => {
|
|
95
|
+
setFocused(true);
|
|
96
|
+
if (formatter && currentValue !== null) {
|
|
97
|
+
setDisplayValue(String(currentValue));
|
|
98
|
+
}
|
|
99
|
+
onFocus?.(e);
|
|
100
|
+
};
|
|
101
|
+
const handleKeyDown = (e) => {
|
|
102
|
+
if (!keyboard || disabled || readonly) return;
|
|
103
|
+
if (e.key === "ArrowUp") {
|
|
104
|
+
e.preventDefault();
|
|
105
|
+
handleStep("up");
|
|
106
|
+
} else if (e.key === "ArrowDown") {
|
|
107
|
+
e.preventDefault();
|
|
108
|
+
handleStep("down");
|
|
109
|
+
} else if (e.key === "Enter") {
|
|
100
110
|
const parsed = parseValue(displayValue);
|
|
101
111
|
commitValue(parsed);
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
[displayValue, parseValue, commitValue, onBlur]
|
|
105
|
-
);
|
|
106
|
-
const handleFocus = react.useCallback(
|
|
107
|
-
(e) => {
|
|
108
|
-
setFocused(true);
|
|
109
|
-
if (formatter && currentValue !== null) {
|
|
110
|
-
setDisplayValue(String(currentValue));
|
|
111
|
-
}
|
|
112
|
-
onFocus?.(e);
|
|
113
|
-
},
|
|
114
|
-
[formatter, currentValue, onFocus]
|
|
115
|
-
);
|
|
116
|
-
const handleKeyDown = react.useCallback(
|
|
117
|
-
(e) => {
|
|
118
|
-
if (!keyboard || disabled || readonly) return;
|
|
119
|
-
if (e.key === "ArrowUp") {
|
|
120
|
-
e.preventDefault();
|
|
121
|
-
handleStep("up");
|
|
122
|
-
} else if (e.key === "ArrowDown") {
|
|
123
|
-
e.preventDefault();
|
|
124
|
-
handleStep("down");
|
|
125
|
-
} else if (e.key === "Enter") {
|
|
126
|
-
const parsed = parseValue(displayValue);
|
|
127
|
-
commitValue(parsed);
|
|
128
|
-
}
|
|
129
|
-
},
|
|
130
|
-
[keyboard, disabled, readonly, handleStep, parseValue, displayValue, commitValue]
|
|
131
|
-
);
|
|
112
|
+
}
|
|
113
|
+
};
|
|
132
114
|
const atMin = tigercatCore.isAtMin(currentValue, min);
|
|
133
115
|
const atMax = tigercatCore.isAtMax(currentValue, max);
|
|
134
116
|
const wrapperClasses = react.useMemo(
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import React, { createContext, useContext, useId, useMemo, useState, useCallback } from 'react';
|
|
1
|
+
import React, { createContext, useContext, useId, useMemo, useState, useCallback, useRef } from 'react';
|
|
2
2
|
import { classNames, getTabsContainerClasses, getTabNavClasses, getTabNavListClasses, isKeyActive, getTabItemClasses, getTabPaneClasses, tabCloseButtonClasses, closeIconViewBox, closeIconPathD, tabAddButtonClasses, tabContentBaseClasses } from '@expcat/tigercat-core';
|
|
3
3
|
import { jsx, jsxs, Fragment } from 'react/jsx-runtime';
|
|
4
4
|
|
|
@@ -16,6 +16,7 @@ var Tabs = ({
|
|
|
16
16
|
closable = false,
|
|
17
17
|
centered = false,
|
|
18
18
|
destroyInactiveTabPane = false,
|
|
19
|
+
lazy = false,
|
|
19
20
|
className,
|
|
20
21
|
style,
|
|
21
22
|
onChange,
|
|
@@ -92,6 +93,7 @@ var Tabs = ({
|
|
|
92
93
|
tabPosition,
|
|
93
94
|
closable,
|
|
94
95
|
destroyInactiveTabPane,
|
|
96
|
+
lazy,
|
|
95
97
|
idBase,
|
|
96
98
|
handleTabClick,
|
|
97
99
|
handleTabClose
|
|
@@ -103,6 +105,7 @@ var Tabs = ({
|
|
|
103
105
|
tabPosition,
|
|
104
106
|
closable,
|
|
105
107
|
destroyInactiveTabPane,
|
|
108
|
+
lazy,
|
|
106
109
|
idBase,
|
|
107
110
|
handleTabClick,
|
|
108
111
|
handleTabClose
|
|
@@ -159,6 +162,8 @@ var TabPane = ({
|
|
|
159
162
|
const isActive = useMemo(() => {
|
|
160
163
|
return isKeyActive(tabKey, tabsContext.activeKey);
|
|
161
164
|
}, [tabKey, tabsContext.activeKey]);
|
|
165
|
+
const hasBeenActivatedRef = useRef(isActive);
|
|
166
|
+
if (isActive) hasBeenActivatedRef.current = true;
|
|
162
167
|
const isClosable = useMemo(() => {
|
|
163
168
|
return closable !== void 0 ? closable : tabsContext.closable && tabsContext.type === "editable-card";
|
|
164
169
|
}, [closable, tabsContext.closable, tabsContext.type]);
|
|
@@ -254,9 +259,9 @@ var TabPane = ({
|
|
|
254
259
|
icon && /* @__PURE__ */ jsx("span", { className: "flex items-center", children: icon }),
|
|
255
260
|
/* @__PURE__ */ jsx("span", { children: label }),
|
|
256
261
|
isClosable && /* @__PURE__ */ jsx(
|
|
257
|
-
"
|
|
262
|
+
"span",
|
|
258
263
|
{
|
|
259
|
-
|
|
264
|
+
role: "button",
|
|
260
265
|
className: tabCloseButtonClasses,
|
|
261
266
|
"aria-label": `Close ${String(label)}`,
|
|
262
267
|
tabIndex: -1,
|
|
@@ -276,7 +281,7 @@ var TabPane = ({
|
|
|
276
281
|
}
|
|
277
282
|
);
|
|
278
283
|
}
|
|
279
|
-
const shouldRender = isActive || !tabsContext.destroyInactiveTabPane;
|
|
284
|
+
const shouldRender = tabsContext.lazy ? hasBeenActivatedRef.current && (isActive || !tabsContext.destroyInactiveTabPane) : isActive || !tabsContext.destroyInactiveTabPane;
|
|
280
285
|
if (!shouldRender) {
|
|
281
286
|
return null;
|
|
282
287
|
}
|
|
@@ -0,0 +1,192 @@
|
|
|
1
|
+
import { useState, useEffect, useCallback, useMemo } from 'react';
|
|
2
|
+
import { classNames, imageViewerBackdropClasses, imageViewerCounterClasses, imageViewerCloseBtnClasses, imageViewerIcons, imageViewerNavBtnClasses, imageViewerImgClasses, imageViewerToolbarClasses, imageViewerToolbarBtnClasses, clampZoom, normalizeRotation } from '@expcat/tigercat-core';
|
|
3
|
+
import { jsxs, jsx, Fragment } from 'react/jsx-runtime';
|
|
4
|
+
|
|
5
|
+
// src/components/ImageViewer.tsx
|
|
6
|
+
function SvgIcon({ pathD, label }) {
|
|
7
|
+
return /* @__PURE__ */ jsx(
|
|
8
|
+
"svg",
|
|
9
|
+
{
|
|
10
|
+
className: "w-5 h-5",
|
|
11
|
+
viewBox: "0 0 24 24",
|
|
12
|
+
fill: "none",
|
|
13
|
+
stroke: "currentColor",
|
|
14
|
+
strokeWidth: "2",
|
|
15
|
+
strokeLinecap: "round",
|
|
16
|
+
strokeLinejoin: "round",
|
|
17
|
+
"aria-label": label,
|
|
18
|
+
children: /* @__PURE__ */ jsx("path", { d: pathD })
|
|
19
|
+
}
|
|
20
|
+
);
|
|
21
|
+
}
|
|
22
|
+
var ImageViewer = ({
|
|
23
|
+
images,
|
|
24
|
+
open = false,
|
|
25
|
+
currentIndex = 0,
|
|
26
|
+
zoomable = true,
|
|
27
|
+
rotatable = true,
|
|
28
|
+
showNav = true,
|
|
29
|
+
showCounter = true,
|
|
30
|
+
maskClosable = true,
|
|
31
|
+
minZoom = 0.5,
|
|
32
|
+
maxZoom = 3,
|
|
33
|
+
className,
|
|
34
|
+
onClose,
|
|
35
|
+
onIndexChange
|
|
36
|
+
}) => {
|
|
37
|
+
const [index, setIndex] = useState(currentIndex);
|
|
38
|
+
const [zoom, setZoom] = useState(1);
|
|
39
|
+
const [rotation, setRotation] = useState(0);
|
|
40
|
+
useEffect(() => {
|
|
41
|
+
setIndex(currentIndex);
|
|
42
|
+
}, [currentIndex]);
|
|
43
|
+
const handleClose = useCallback(() => {
|
|
44
|
+
onClose?.();
|
|
45
|
+
}, [onClose]);
|
|
46
|
+
const handlePrev = useCallback(() => {
|
|
47
|
+
const newIndex = (index - 1 + images.length) % images.length;
|
|
48
|
+
setIndex(newIndex);
|
|
49
|
+
setZoom(1);
|
|
50
|
+
setRotation(0);
|
|
51
|
+
onIndexChange?.(newIndex);
|
|
52
|
+
}, [index, images.length, onIndexChange]);
|
|
53
|
+
const handleNext = useCallback(() => {
|
|
54
|
+
const newIndex = (index + 1) % images.length;
|
|
55
|
+
setIndex(newIndex);
|
|
56
|
+
setZoom(1);
|
|
57
|
+
setRotation(0);
|
|
58
|
+
onIndexChange?.(newIndex);
|
|
59
|
+
}, [index, images.length, onIndexChange]);
|
|
60
|
+
useEffect(() => {
|
|
61
|
+
if (!open) return;
|
|
62
|
+
const handler = (e) => {
|
|
63
|
+
switch (e.key) {
|
|
64
|
+
case "Escape":
|
|
65
|
+
handleClose();
|
|
66
|
+
break;
|
|
67
|
+
case "ArrowLeft":
|
|
68
|
+
handlePrev();
|
|
69
|
+
break;
|
|
70
|
+
case "ArrowRight":
|
|
71
|
+
handleNext();
|
|
72
|
+
break;
|
|
73
|
+
}
|
|
74
|
+
};
|
|
75
|
+
document.addEventListener("keydown", handler);
|
|
76
|
+
return () => document.removeEventListener("keydown", handler);
|
|
77
|
+
}, [open, handleClose, handlePrev, handleNext]);
|
|
78
|
+
const backdropClasses = useMemo(
|
|
79
|
+
() => classNames(imageViewerBackdropClasses, className),
|
|
80
|
+
[className]
|
|
81
|
+
);
|
|
82
|
+
if (!open || images.length === 0) return null;
|
|
83
|
+
return /* @__PURE__ */ jsxs(
|
|
84
|
+
"div",
|
|
85
|
+
{
|
|
86
|
+
className: backdropClasses,
|
|
87
|
+
role: "dialog",
|
|
88
|
+
"aria-modal": "true",
|
|
89
|
+
"aria-label": "Image viewer",
|
|
90
|
+
onClick: (e) => {
|
|
91
|
+
if (maskClosable && e.target === e.currentTarget) handleClose();
|
|
92
|
+
},
|
|
93
|
+
children: [
|
|
94
|
+
showCounter && images.length > 1 && /* @__PURE__ */ jsxs("div", { className: imageViewerCounterClasses, children: [
|
|
95
|
+
index + 1,
|
|
96
|
+
" / ",
|
|
97
|
+
images.length
|
|
98
|
+
] }),
|
|
99
|
+
/* @__PURE__ */ jsx(
|
|
100
|
+
"button",
|
|
101
|
+
{
|
|
102
|
+
className: imageViewerCloseBtnClasses,
|
|
103
|
+
onClick: handleClose,
|
|
104
|
+
"aria-label": "Close",
|
|
105
|
+
type: "button",
|
|
106
|
+
children: /* @__PURE__ */ jsx(SvgIcon, { pathD: imageViewerIcons.close, label: "Close" })
|
|
107
|
+
}
|
|
108
|
+
),
|
|
109
|
+
showNav && images.length > 1 && /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
110
|
+
/* @__PURE__ */ jsx(
|
|
111
|
+
"button",
|
|
112
|
+
{
|
|
113
|
+
className: classNames(imageViewerNavBtnClasses, "left-4"),
|
|
114
|
+
onClick: handlePrev,
|
|
115
|
+
"aria-label": "Previous image",
|
|
116
|
+
type: "button",
|
|
117
|
+
children: /* @__PURE__ */ jsx(SvgIcon, { pathD: imageViewerIcons.prev, label: "Previous" })
|
|
118
|
+
}
|
|
119
|
+
),
|
|
120
|
+
/* @__PURE__ */ jsx(
|
|
121
|
+
"button",
|
|
122
|
+
{
|
|
123
|
+
className: classNames(imageViewerNavBtnClasses, "right-4"),
|
|
124
|
+
onClick: handleNext,
|
|
125
|
+
"aria-label": "Next image",
|
|
126
|
+
type: "button",
|
|
127
|
+
children: /* @__PURE__ */ jsx(SvgIcon, { pathD: imageViewerIcons.next, label: "Next" })
|
|
128
|
+
}
|
|
129
|
+
)
|
|
130
|
+
] }),
|
|
131
|
+
/* @__PURE__ */ jsx(
|
|
132
|
+
"img",
|
|
133
|
+
{
|
|
134
|
+
className: imageViewerImgClasses,
|
|
135
|
+
src: images[index],
|
|
136
|
+
alt: `Image ${index + 1}`,
|
|
137
|
+
style: { transform: `scale(${zoom}) rotate(${rotation}deg)` },
|
|
138
|
+
draggable: false
|
|
139
|
+
}
|
|
140
|
+
),
|
|
141
|
+
(zoomable || rotatable) && /* @__PURE__ */ jsxs("div", { className: imageViewerToolbarClasses, children: [
|
|
142
|
+
zoomable && /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
143
|
+
/* @__PURE__ */ jsx(
|
|
144
|
+
"button",
|
|
145
|
+
{
|
|
146
|
+
className: imageViewerToolbarBtnClasses,
|
|
147
|
+
onClick: () => setZoom(clampZoom(zoom - 0.25, minZoom, maxZoom)),
|
|
148
|
+
"aria-label": "Zoom out",
|
|
149
|
+
type: "button",
|
|
150
|
+
children: /* @__PURE__ */ jsx(SvgIcon, { pathD: imageViewerIcons.zoomOut, label: "Zoom out" })
|
|
151
|
+
}
|
|
152
|
+
),
|
|
153
|
+
/* @__PURE__ */ jsx(
|
|
154
|
+
"button",
|
|
155
|
+
{
|
|
156
|
+
className: imageViewerToolbarBtnClasses,
|
|
157
|
+
onClick: () => setZoom(clampZoom(zoom + 0.25, minZoom, maxZoom)),
|
|
158
|
+
"aria-label": "Zoom in",
|
|
159
|
+
type: "button",
|
|
160
|
+
children: /* @__PURE__ */ jsx(SvgIcon, { pathD: imageViewerIcons.zoomIn, label: "Zoom in" })
|
|
161
|
+
}
|
|
162
|
+
)
|
|
163
|
+
] }),
|
|
164
|
+
rotatable && /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
165
|
+
/* @__PURE__ */ jsx(
|
|
166
|
+
"button",
|
|
167
|
+
{
|
|
168
|
+
className: imageViewerToolbarBtnClasses,
|
|
169
|
+
onClick: () => setRotation(normalizeRotation(rotation - 90)),
|
|
170
|
+
"aria-label": "Rotate left",
|
|
171
|
+
type: "button",
|
|
172
|
+
children: /* @__PURE__ */ jsx(SvgIcon, { pathD: imageViewerIcons.rotateLeft, label: "Rotate left" })
|
|
173
|
+
}
|
|
174
|
+
),
|
|
175
|
+
/* @__PURE__ */ jsx(
|
|
176
|
+
"button",
|
|
177
|
+
{
|
|
178
|
+
className: imageViewerToolbarBtnClasses,
|
|
179
|
+
onClick: () => setRotation(normalizeRotation(rotation + 90)),
|
|
180
|
+
"aria-label": "Rotate right",
|
|
181
|
+
type: "button",
|
|
182
|
+
children: /* @__PURE__ */ jsx(SvgIcon, { pathD: imageViewerIcons.rotateRight, label: "Rotate right" })
|
|
183
|
+
}
|
|
184
|
+
)
|
|
185
|
+
] })
|
|
186
|
+
] })
|
|
187
|
+
]
|
|
188
|
+
}
|
|
189
|
+
);
|
|
190
|
+
};
|
|
191
|
+
|
|
192
|
+
export { ImageViewer };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { RadioGroupContext } from './chunk-
|
|
1
|
+
import { RadioGroupContext } from './chunk-PN33UCWB.mjs';
|
|
2
2
|
import { useContext, useState, useMemo } from 'react';
|
|
3
3
|
import { getRadioVisualClasses, defaultRadioColors, getRadioDotClasses, getRadioLabelClasses, classNames, radioRootBaseClasses } from '@expcat/tigercat-core';
|
|
4
4
|
import { jsxs, jsx } from 'react/jsx-runtime';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { Textarea } from './chunk-
|
|
2
|
-
import { Button } from './chunk-
|
|
1
|
+
import { Textarea } from './chunk-7QZ4XT2P.mjs';
|
|
2
|
+
import { Button } from './chunk-3KMKMAE3.mjs';
|
|
3
3
|
import { Tag } from './chunk-TGKNEMD4.mjs';
|
|
4
|
-
import { Text } from './chunk-
|
|
4
|
+
import { Text } from './chunk-HLS4CHWX.mjs';
|
|
5
5
|
import { Avatar } from './chunk-FE7PEZTI.mjs';
|
|
6
6
|
import { useState, useMemo } from 'react';
|
|
7
7
|
import { buildCommentTree, clipCommentTreeDepth, classNames, formatCommentTime } from '@expcat/tigercat-core';
|
|
@@ -0,0 +1,210 @@
|
|
|
1
|
+
import { useId, useState, useRef, useEffect, useMemo } from 'react';
|
|
2
|
+
import { filterAutoCompleteOptions, classNames, autoCompleteBaseClasses, getAutoCompleteInputClasses, icon20ViewBox, closeSolidIcon20PathD, autoCompleteDropdownClasses, getAutoCompleteOptionClasses, autoCompleteEmptyStateClasses } from '@expcat/tigercat-core';
|
|
3
|
+
import { jsxs, jsx } from 'react/jsx-runtime';
|
|
4
|
+
|
|
5
|
+
// src/components/AutoComplete.tsx
|
|
6
|
+
var AUTOCOMPLETE_KEYS = /* @__PURE__ */ new Set([
|
|
7
|
+
"value",
|
|
8
|
+
"options",
|
|
9
|
+
"placeholder",
|
|
10
|
+
"size",
|
|
11
|
+
"disabled",
|
|
12
|
+
"clearable",
|
|
13
|
+
"notFoundText",
|
|
14
|
+
"filterOption",
|
|
15
|
+
"defaultActiveFirstOption",
|
|
16
|
+
"allowFreeInput",
|
|
17
|
+
"onChange",
|
|
18
|
+
"onSelect",
|
|
19
|
+
"onSearch"
|
|
20
|
+
]);
|
|
21
|
+
var AutoComplete = (props) => {
|
|
22
|
+
const {
|
|
23
|
+
value = "",
|
|
24
|
+
options = [],
|
|
25
|
+
placeholder = "",
|
|
26
|
+
size = "md",
|
|
27
|
+
disabled = false,
|
|
28
|
+
clearable = false,
|
|
29
|
+
notFoundText = "No matches found",
|
|
30
|
+
filterOption = true,
|
|
31
|
+
defaultActiveFirstOption = true,
|
|
32
|
+
className,
|
|
33
|
+
onChange,
|
|
34
|
+
onSelect,
|
|
35
|
+
onSearch,
|
|
36
|
+
...rest
|
|
37
|
+
} = props;
|
|
38
|
+
const divProps = {};
|
|
39
|
+
for (const key of Object.keys(rest)) {
|
|
40
|
+
if (!AUTOCOMPLETE_KEYS.has(key)) {
|
|
41
|
+
divProps[key] = rest[key];
|
|
42
|
+
}
|
|
43
|
+
}
|
|
44
|
+
const instanceId = useId();
|
|
45
|
+
const listboxId = `tiger-autocomplete-listbox-${instanceId}`;
|
|
46
|
+
const [isOpen, setIsOpen] = useState(false);
|
|
47
|
+
const [inputValue, setInputValue] = useState(String(value ?? ""));
|
|
48
|
+
const [activeIndex, setActiveIndex] = useState(-1);
|
|
49
|
+
const containerRef = useRef(null);
|
|
50
|
+
const inputRef = useRef(null);
|
|
51
|
+
useEffect(() => {
|
|
52
|
+
setInputValue(String(value ?? ""));
|
|
53
|
+
}, [value]);
|
|
54
|
+
const filteredOptions = useMemo(
|
|
55
|
+
() => filterAutoCompleteOptions(options, inputValue, filterOption),
|
|
56
|
+
[options, inputValue, filterOption]
|
|
57
|
+
);
|
|
58
|
+
const showClearButton = clearable && !disabled && inputValue !== "";
|
|
59
|
+
function openDropdown() {
|
|
60
|
+
if (disabled) return;
|
|
61
|
+
setIsOpen(true);
|
|
62
|
+
if (defaultActiveFirstOption && filteredOptions.length > 0) {
|
|
63
|
+
setActiveIndex(0);
|
|
64
|
+
}
|
|
65
|
+
}
|
|
66
|
+
function closeDropdown() {
|
|
67
|
+
setIsOpen(false);
|
|
68
|
+
setActiveIndex(-1);
|
|
69
|
+
}
|
|
70
|
+
function handleInput(e) {
|
|
71
|
+
const val = e.target.value;
|
|
72
|
+
setInputValue(val);
|
|
73
|
+
onChange?.(val);
|
|
74
|
+
onSearch?.(val);
|
|
75
|
+
if (!isOpen) {
|
|
76
|
+
setIsOpen(true);
|
|
77
|
+
}
|
|
78
|
+
if (defaultActiveFirstOption) {
|
|
79
|
+
const newFiltered = filterAutoCompleteOptions(options, val, filterOption);
|
|
80
|
+
setActiveIndex(newFiltered.length > 0 ? 0 : -1);
|
|
81
|
+
}
|
|
82
|
+
}
|
|
83
|
+
function handleSelect(option) {
|
|
84
|
+
if (option.disabled) return;
|
|
85
|
+
setInputValue(option.label);
|
|
86
|
+
onChange?.(option.value);
|
|
87
|
+
onSelect?.(option.value, option);
|
|
88
|
+
closeDropdown();
|
|
89
|
+
}
|
|
90
|
+
function handleClear(e) {
|
|
91
|
+
e.stopPropagation();
|
|
92
|
+
setInputValue("");
|
|
93
|
+
onChange?.("");
|
|
94
|
+
requestAnimationFrame(() => inputRef.current?.focus());
|
|
95
|
+
}
|
|
96
|
+
function handleKeyDown(e) {
|
|
97
|
+
if (!isOpen) {
|
|
98
|
+
if (e.key === "ArrowDown" || e.key === "ArrowUp") {
|
|
99
|
+
e.preventDefault();
|
|
100
|
+
openDropdown();
|
|
101
|
+
}
|
|
102
|
+
return;
|
|
103
|
+
}
|
|
104
|
+
switch (e.key) {
|
|
105
|
+
case "ArrowDown":
|
|
106
|
+
e.preventDefault();
|
|
107
|
+
if (filteredOptions.length > 0) {
|
|
108
|
+
setActiveIndex((prev) => {
|
|
109
|
+
let next = prev + 1;
|
|
110
|
+
while (next < filteredOptions.length && filteredOptions[next].disabled) next++;
|
|
111
|
+
return next < filteredOptions.length ? next : prev;
|
|
112
|
+
});
|
|
113
|
+
}
|
|
114
|
+
break;
|
|
115
|
+
case "ArrowUp":
|
|
116
|
+
e.preventDefault();
|
|
117
|
+
if (filteredOptions.length > 0) {
|
|
118
|
+
setActiveIndex((prev) => {
|
|
119
|
+
let p = prev - 1;
|
|
120
|
+
while (p >= 0 && filteredOptions[p].disabled) p--;
|
|
121
|
+
return p >= 0 ? p : prev;
|
|
122
|
+
});
|
|
123
|
+
}
|
|
124
|
+
break;
|
|
125
|
+
case "Enter":
|
|
126
|
+
e.preventDefault();
|
|
127
|
+
if (activeIndex >= 0 && activeIndex < filteredOptions.length) {
|
|
128
|
+
handleSelect(filteredOptions[activeIndex]);
|
|
129
|
+
}
|
|
130
|
+
break;
|
|
131
|
+
case "Escape":
|
|
132
|
+
e.preventDefault();
|
|
133
|
+
closeDropdown();
|
|
134
|
+
break;
|
|
135
|
+
}
|
|
136
|
+
}
|
|
137
|
+
useEffect(() => {
|
|
138
|
+
if (!isOpen) return;
|
|
139
|
+
function handleClickOutside(e) {
|
|
140
|
+
if (containerRef.current && !containerRef.current.contains(e.target)) {
|
|
141
|
+
closeDropdown();
|
|
142
|
+
}
|
|
143
|
+
}
|
|
144
|
+
document.addEventListener("click", handleClickOutside);
|
|
145
|
+
return () => document.removeEventListener("click", handleClickOutside);
|
|
146
|
+
}, [isOpen]);
|
|
147
|
+
const containerClasses = classNames(autoCompleteBaseClasses, className);
|
|
148
|
+
return /* @__PURE__ */ jsxs("div", { ref: containerRef, className: containerClasses, ...divProps, children: [
|
|
149
|
+
/* @__PURE__ */ jsx(
|
|
150
|
+
"input",
|
|
151
|
+
{
|
|
152
|
+
ref: inputRef,
|
|
153
|
+
type: "text",
|
|
154
|
+
className: getAutoCompleteInputClasses(size, disabled, isOpen),
|
|
155
|
+
value: inputValue,
|
|
156
|
+
placeholder,
|
|
157
|
+
disabled,
|
|
158
|
+
role: "combobox",
|
|
159
|
+
"aria-expanded": isOpen,
|
|
160
|
+
"aria-haspopup": "listbox",
|
|
161
|
+
"aria-controls": isOpen ? listboxId : void 0,
|
|
162
|
+
"aria-activedescendant": isOpen && activeIndex >= 0 ? `${listboxId}-option-${activeIndex}` : void 0,
|
|
163
|
+
autoComplete: "off",
|
|
164
|
+
onChange: handleInput,
|
|
165
|
+
onFocus: openDropdown,
|
|
166
|
+
onKeyDown: handleKeyDown
|
|
167
|
+
}
|
|
168
|
+
),
|
|
169
|
+
showClearButton && /* @__PURE__ */ jsx(
|
|
170
|
+
"button",
|
|
171
|
+
{
|
|
172
|
+
type: "button",
|
|
173
|
+
className: "absolute right-2 top-1/2 -translate-y-1/2 text-[var(--tiger-autocomplete-clear,var(--tiger-text-muted,#9ca3af))] hover:text-[var(--tiger-autocomplete-clear-hover,var(--tiger-text,#111827))] transition-colors",
|
|
174
|
+
"aria-label": "Clear",
|
|
175
|
+
onClick: handleClear,
|
|
176
|
+
children: /* @__PURE__ */ jsx(
|
|
177
|
+
"svg",
|
|
178
|
+
{
|
|
179
|
+
className: "w-4 h-4",
|
|
180
|
+
viewBox: icon20ViewBox,
|
|
181
|
+
fill: "currentColor",
|
|
182
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
183
|
+
children: /* @__PURE__ */ jsx("path", { d: closeSolidIcon20PathD, fillRule: "evenodd", clipRule: "evenodd" })
|
|
184
|
+
}
|
|
185
|
+
)
|
|
186
|
+
}
|
|
187
|
+
),
|
|
188
|
+
isOpen && filteredOptions.length > 0 && /* @__PURE__ */ jsx("div", { id: listboxId, role: "listbox", className: autoCompleteDropdownClasses, children: filteredOptions.map((option, index) => /* @__PURE__ */ jsx(
|
|
189
|
+
"div",
|
|
190
|
+
{
|
|
191
|
+
id: `${listboxId}-option-${index}`,
|
|
192
|
+
role: "option",
|
|
193
|
+
"aria-selected": String(option.value) === String(value),
|
|
194
|
+
"aria-disabled": option.disabled,
|
|
195
|
+
className: getAutoCompleteOptionClasses(
|
|
196
|
+
String(option.value) === String(value),
|
|
197
|
+
!!option.disabled,
|
|
198
|
+
size
|
|
199
|
+
),
|
|
200
|
+
onClick: () => handleSelect(option),
|
|
201
|
+
onMouseEnter: () => setActiveIndex(index),
|
|
202
|
+
children: option.label
|
|
203
|
+
},
|
|
204
|
+
String(option.value)
|
|
205
|
+
)) }),
|
|
206
|
+
isOpen && inputValue && filteredOptions.length === 0 && /* @__PURE__ */ jsx("div", { className: classNames(autoCompleteDropdownClasses, autoCompleteEmptyStateClasses), children: notFoundText })
|
|
207
|
+
] });
|
|
208
|
+
};
|
|
209
|
+
|
|
210
|
+
export { AutoComplete };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { useTigerConfig } from './chunk-
|
|
1
|
+
import { useTigerConfig } from './chunk-CRSMECWE.mjs';
|
|
2
2
|
import { useMemo, useRef, useState, useCallback } from 'react';
|
|
3
3
|
import { getSpinnerSVG, mergeTigerLocale, getUploadLabels, classNames, prepareUploadFiles, fileToUploadFile, getDragAreaClasses, interpolateUploadLabel, formatFileSize, getUploadButtonClasses, getFileListItemClasses, icon20ViewBox, getUploadStatusIconClasses, successCircleSolidIcon20PathD, errorCircleSolidIcon20PathD, closeSolidIcon20PathD, getPictureCardClasses } from '@expcat/tigercat-core';
|
|
4
4
|
import { jsxs, jsx } from 'react/jsx-runtime';
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { useControlledState } from './chunk-UQMPEMY7.mjs';
|
|
2
|
+
import { forwardRef, useRef, useLayoutEffect, useMemo } from 'react';
|
|
2
3
|
import { autoResizeTextarea, classNames, getInputClasses } from '@expcat/tigercat-core';
|
|
3
4
|
import { jsxs, jsx } from 'react/jsx-runtime';
|
|
4
5
|
|
|
5
|
-
// src/components/Textarea.tsx
|
|
6
6
|
var Textarea = forwardRef(
|
|
7
7
|
({
|
|
8
8
|
size = "md",
|
|
@@ -27,9 +27,10 @@ var Textarea = forwardRef(
|
|
|
27
27
|
...props
|
|
28
28
|
}, ref) => {
|
|
29
29
|
const textareaRef = useRef(null);
|
|
30
|
-
const [
|
|
31
|
-
|
|
32
|
-
|
|
30
|
+
const [currentValue, setInternalValue, isControlled] = useControlledState(
|
|
31
|
+
value,
|
|
32
|
+
defaultValue || ""
|
|
33
|
+
);
|
|
33
34
|
const setRefs = (node) => {
|
|
34
35
|
textareaRef.current = node;
|
|
35
36
|
if (typeof ref === "function") ref(node);
|