@expcat/tigercat-react 1.3.4 → 1.5.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-WV5XHYW6.js → chunk-23XPDNCA.js} +6 -4
- package/dist/{chunk-CY5GRTAX.js → chunk-24NDLFPK.js} +46 -33
- package/dist/{chunk-3SV6J7I5.mjs → chunk-2L7QEOFD.mjs} +34 -25
- package/dist/{chunk-NMKFR435.js → chunk-2LKX6CE7.js} +7 -4
- package/dist/{chunk-MB6U72CI.js → chunk-2PV3F47T.js} +2 -2
- package/dist/{chunk-ANN5P7TJ.js → chunk-2ZA4MUO2.js} +72 -29
- package/dist/{chunk-H4AR4GXH.js → chunk-3NVMKDMH.js} +1 -8
- package/dist/{chunk-NPTXXUXF.mjs → chunk-3RBRWBUG.mjs} +9 -7
- package/dist/{chunk-SIY6FDKJ.js → chunk-3RQ3FHJ7.js} +341 -316
- package/dist/{chunk-ELRZ2ZHM.mjs → chunk-4DRJA5ZK.mjs} +15 -17
- package/dist/{chunk-J3N24I7A.mjs → chunk-4F3UTDFE.mjs} +24 -6
- package/dist/{chunk-3CJFNG54.mjs → chunk-4HMMH4XS.mjs} +24 -11
- package/dist/{chunk-IG75YSX3.mjs → chunk-4MONGWU5.mjs} +4 -6
- package/dist/{chunk-CHBUNQIJ.mjs → chunk-4MREOFVE.mjs} +26 -9
- package/dist/{chunk-EEF26RBA.mjs → chunk-4SU6D2E7.mjs} +15 -3
- package/dist/{chunk-ZZAR4IDS.js → chunk-4TPRBVW7.js} +19 -2
- package/dist/{chunk-NSEO2B74.mjs → chunk-4V5RL25M.mjs} +8 -5
- package/dist/{chunk-TMON4MPO.js → chunk-5ALMTE35.js} +9 -7
- package/dist/{chunk-AUW7DCXL.js → chunk-5JYVN65W.js} +24 -6
- package/dist/{chunk-3MRP3XYI.js → chunk-5QLSTNA3.js} +13 -2
- package/dist/chunk-5SX2M3LU.mjs +319 -0
- package/dist/{chunk-FI53LYZ6.js → chunk-5UREMEDS.js} +24 -8
- package/dist/{chunk-MSHCPJIJ.mjs → chunk-6BOSSZM3.mjs} +8 -9
- package/dist/chunk-6LGCAGNG.js +312 -0
- package/dist/{chunk-A42OLED6.mjs → chunk-6REMGSLS.mjs} +35 -13
- package/dist/{chunk-PNAWOJ32.js → chunk-6S5QOTXZ.js} +14 -2
- package/dist/{chunk-PUZDW7NR.js → chunk-6SG2N4WF.js} +135 -21
- package/dist/{chunk-5XE5VBDS.mjs → chunk-6UIVNRAR.mjs} +15 -2
- package/dist/{chunk-F6IXIH6B.mjs → chunk-7RI5W465.mjs} +43 -30
- package/dist/{chunk-DCKBVRLI.js → chunk-7UZ7O7KX.js} +63 -16
- package/dist/{chunk-ONTRGV5T.js → chunk-7YI5TAPT.js} +8 -19
- package/dist/chunk-AI4V7L6K.mjs +230 -0
- package/dist/chunk-AQOXANET.mjs +222 -0
- package/dist/{chunk-YOAYDEWW.mjs → chunk-ATSI3UKS.mjs} +5 -21
- package/dist/{chunk-ZRHDNGWO.js → chunk-BR3WLDH7.js} +16 -2
- package/dist/{chunk-2Y5NIPHB.mjs → chunk-BRPOEVRT.mjs} +32 -3
- package/dist/{chunk-LRPPXU74.mjs → chunk-CR4QBH46.mjs} +47 -8
- package/dist/{chunk-7U6VWD4H.mjs → chunk-CSJGNEHR.mjs} +2 -2
- package/dist/{chunk-OZD75CLT.js → chunk-CXXOZLP4.js} +34 -24
- package/dist/{chunk-7QZ4XT2P.mjs → chunk-D4X3NBAI.mjs} +11 -11
- package/dist/{chunk-RQXY2MGX.mjs → chunk-D7UR526A.mjs} +231 -184
- package/dist/{chunk-CBYJXDW4.js → chunk-DBMC6FPU.js} +16 -4
- package/dist/{chunk-WQ4FOHOU.mjs → chunk-DEIVWO2D.mjs} +3 -5
- package/dist/{chunk-WNLUUD5N.mjs → chunk-DEQZZKY5.mjs} +20 -19
- package/dist/{chunk-ITRYKHQJ.js → chunk-DH4B2COV.js} +121 -47
- package/dist/{chunk-BONUUJU3.mjs → chunk-DJOFM2VO.mjs} +1 -8
- package/dist/chunk-DO3MVZZN.mjs +698 -0
- package/dist/{chunk-6GIJ7NFV.mjs → chunk-E355NVP7.mjs} +38 -19
- package/dist/{chunk-KQ5I7PRM.js → chunk-ENJMHEQU.js} +48 -9
- package/dist/{chunk-UHFHOTNI.js → chunk-FBIBHTBG.js} +8 -9
- package/dist/{chunk-P36GX65N.js → chunk-FCCHM2B4.js} +40 -4
- package/dist/{chunk-4LIDROT4.js → chunk-FFDK6PEP.js} +7 -4
- package/dist/{chunk-KYP7U6FK.js → chunk-FZHBVHQ6.js} +34 -25
- package/dist/{chunk-R2KUNFDN.mjs → chunk-GA4YOE57.mjs} +2 -2
- package/dist/{chunk-3E76U2RG.js → chunk-GADCSCH2.js} +33 -5
- package/dist/{chunk-JOB47R6Q.mjs → chunk-GCOA4AO6.mjs} +72 -29
- package/dist/{chunk-GN3TSQWW.mjs → chunk-GOUSXJEY.mjs} +2 -2
- package/dist/{chunk-WVVXZKNI.js → chunk-GPAY5F7D.js} +14 -14
- package/dist/{chunk-KGSDDVRC.mjs → chunk-GQPKHMHA.mjs} +4 -4
- package/dist/{chunk-NKSYX4R7.mjs → chunk-GTDLZF7K.mjs} +2 -2
- package/dist/{chunk-2GQCFTD7.mjs → chunk-H4MPPCTB.mjs} +23 -4
- package/dist/{chunk-3ZNZLGQO.mjs → chunk-H7D7UBDC.mjs} +8 -9
- package/dist/{chunk-BBLVRLXT.js → chunk-HFGTJEQW.js} +301 -164
- package/dist/{chunk-GQFVVAEF.js → chunk-HVAG26CK.js} +5 -5
- package/dist/{chunk-L5AMVEQL.mjs → chunk-HWZSMV2M.mjs} +61 -19
- package/dist/{chunk-TC6JLEGZ.js → chunk-I5UB4FN3.js} +27 -10
- package/dist/{chunk-4U5HSR2H.js → chunk-I6VHGILW.js} +24 -13
- package/dist/{chunk-EOU6WZTS.js → chunk-I7OSNH5T.js} +34 -5
- package/dist/{chunk-M73NMNZX.js → chunk-IFB3OECJ.js} +18 -5
- package/dist/{chunk-Y5RQN5BO.mjs → chunk-IXAPFTTD.mjs} +7 -6
- package/dist/{chunk-EHIXCFD7.js → chunk-JHRFG5PG.js} +57 -12
- package/dist/{chunk-3EB42WFR.mjs → chunk-KCPGFO5R.mjs} +2 -2
- package/dist/{chunk-G3PBQ4B4.mjs → chunk-KQ4ZKXXN.mjs} +52 -2
- package/dist/{chunk-I373B74W.js → chunk-KSXGH3FO.js} +105 -44
- package/dist/{chunk-X7JAYXPY.js → chunk-KVWSVDAJ.js} +4 -4
- package/dist/chunk-L3WPA2RP.js +25 -0
- package/dist/{chunk-NVEIVIAW.mjs → chunk-LACDTZTE.mjs} +134 -20
- package/dist/{chunk-WI4N5DD3.mjs → chunk-LAKPYMBZ.mjs} +17 -4
- package/dist/{chunk-6GU5NH5F.mjs → chunk-LBXNMCXN.mjs} +33 -5
- package/dist/{chunk-4LX5UGPQ.js → chunk-LJRCEB7F.js} +168 -121
- package/dist/{chunk-BJQIYELW.mjs → chunk-LOM6NNQK.mjs} +34 -21
- package/dist/{chunk-KXNWY2Q7.mjs → chunk-LUABLBKS.mjs} +308 -171
- package/dist/{chunk-F7H4ALKN.js → chunk-LZG24TDB.js} +8 -9
- package/dist/{chunk-K2TXT5HQ.js → chunk-M577W3TS.js} +101 -85
- package/dist/{chunk-UXUYCWQC.js → chunk-MOYZF62V.js} +34 -21
- package/dist/{chunk-6TR7JB6C.js → chunk-MQIVMK24.js} +4 -4
- package/dist/{chunk-DKT2EYVM.mjs → chunk-MV2JQ6XQ.mjs} +3 -6
- package/dist/{chunk-WMPCN7OF.mjs → chunk-MZCGQED3.mjs} +15 -3
- package/dist/{chunk-IGAMV6ML.mjs → chunk-MZPKFMQC.mjs} +1 -1
- package/dist/{chunk-AG4HRAW2.mjs → chunk-NEHSCSQP.mjs} +2 -2
- package/dist/chunk-NG3OBMKV.js +319 -0
- package/dist/{chunk-RFHPG4KN.js → chunk-NGSJGXUZ.js} +15 -17
- package/dist/{chunk-WIWTY74F.mjs → chunk-NJHZQBA7.mjs} +16 -2
- package/dist/{chunk-EQD2U4KM.js → chunk-O2N7ITWQ.js} +63 -16
- package/dist/{chunk-NASC6XHN.mjs → chunk-O6YIPNXX.mjs} +24 -15
- package/dist/{chunk-VHGCWZ6V.mjs → chunk-OTRPN5ZG.mjs} +58 -13
- package/dist/{chunk-QIKR5EFI.js → chunk-OVJO5NYW.js} +4 -4
- package/dist/{chunk-6GYT3EZD.mjs → chunk-P2WQIVXD.mjs} +25 -14
- package/dist/{chunk-NMEVQPOD.js → chunk-PHAJXRGE.js} +2 -4
- package/dist/{chunk-WG3YS2QV.js → chunk-PQF5VLNX.js} +35 -13
- package/dist/chunk-PQOUWJAT.mjs +211 -0
- package/dist/{chunk-AW5M3EL4.js → chunk-PSCPLUGP.js} +63 -21
- package/dist/{chunk-ITVLIR7T.mjs → chunk-PZB24FST.mjs} +23 -25
- package/dist/{chunk-BO45CU4Q.js → chunk-PZWI4YNN.js} +6 -4
- package/dist/{chunk-PFYK2V3E.js → chunk-Q2OXQNWU.js} +73 -9
- package/dist/{chunk-VM4ZQHT5.mjs → chunk-QANWBRNU.mjs} +59 -12
- package/dist/{chunk-XBM76P27.mjs → chunk-QFUIGOOM.mjs} +4 -2
- package/dist/{chunk-5OHVTGHS.mjs → chunk-QKNORS26.mjs} +385 -319
- package/dist/{chunk-ZFMMAYSX.js → chunk-QLATA4UB.js} +4 -6
- package/dist/{chunk-LROHXQWX.js → chunk-R4PMBWU3.js} +2 -2
- package/dist/chunk-R56UOY6C.js +222 -0
- package/dist/chunk-RNHC7BON.js +230 -0
- package/dist/{chunk-RF2BA2N6.js → chunk-RRO752KE.js} +11 -10
- package/dist/{chunk-2TZ3SBMU.mjs → chunk-S4NGDDAM.mjs} +120 -46
- package/dist/{chunk-EF5ZTNHX.js → chunk-SA3N2LUB.js} +37 -20
- package/dist/{chunk-M7HBWFQO.js → chunk-SFBSI3J7.js} +14 -1
- package/dist/{chunk-G5USITWF.js → chunk-SH4BZYXO.js} +27 -8
- package/dist/{chunk-RVO6R37N.mjs → chunk-SHDQJ5BJ.mjs} +1 -1
- package/dist/{chunk-N2JYU4JI.js → chunk-SHU7L4NM.js} +52 -2
- package/dist/{chunk-I2AUOICV.mjs → chunk-SI3P3V75.mjs} +19 -9
- package/dist/{chunk-UVMQJOTX.js → chunk-SK7PXSVE.js} +23 -14
- package/dist/{chunk-U356F7GU.js → chunk-SO2ADQTB.js} +52 -11
- package/dist/{chunk-NKKIJQMV.mjs → chunk-SPIPFOGD.mjs} +4 -2
- package/dist/{chunk-JLRRXRZO.js → chunk-SQONS5PH.js} +4 -7
- package/dist/{chunk-NQNHM4OL.mjs → chunk-SRC7JHME.mjs} +1 -1
- package/dist/{chunk-EEWHWEYO.js → chunk-SXTMVZ4W.js} +25 -12
- package/dist/{chunk-LMTUM3J3.js → chunk-SYJJKI7U.js} +37 -18
- package/dist/{chunk-3QPCQH62.mjs → chunk-SYVMCKPR.mjs} +1 -1
- package/dist/{chunk-SY23FAXK.mjs → chunk-T6HNFCOW.mjs} +24 -8
- package/dist/{chunk-ZITBUGBH.mjs → chunk-TBMDIAZI.mjs} +59 -12
- package/dist/{chunk-TSJYAEFZ.js → chunk-TIDVBSXR.js} +371 -305
- package/dist/{chunk-ZJI2VLIL.js → chunk-TLDTBCT6.js} +15 -3
- package/dist/{chunk-XFPJYKBQ.js → chunk-TN7GMDME.js} +13 -9
- package/dist/{chunk-ZYJTHGQW.js → chunk-TO4SSBAJ.js} +26 -25
- package/dist/{chunk-N4PP3ENO.js → chunk-TPU6S7G7.js} +2 -2
- package/dist/{chunk-PU7KEYLP.mjs → chunk-TRXNHYWB.mjs} +9 -9
- package/dist/{chunk-H6NC6SBX.js → chunk-TVEO2CFD.js} +2 -2
- package/dist/{chunk-6QQBMZQ6.mjs → chunk-U2ZXZ2KQ.mjs} +74 -10
- package/dist/{chunk-FB34UWF7.mjs → chunk-U337RHJB.mjs} +103 -42
- package/dist/{chunk-XRNKHQTL.js → chunk-UEAXYZSE.js} +3 -2
- package/dist/{chunk-7ISEWLA3.js → chunk-UKQMF3JV.js} +21 -6
- package/dist/chunk-UQZ4RLTI.js +698 -0
- package/dist/{chunk-PXO2F2CS.mjs → chunk-V23KR23W.mjs} +47 -4
- package/dist/{chunk-6I6X255M.js → chunk-V3QEV3TL.js} +12 -12
- package/dist/{chunk-M5GSLKUX.mjs → chunk-VAIWWELW.mjs} +15 -3
- package/dist/{chunk-GG72T6JK.js → chunk-VOSN3IQC.js} +47 -4
- package/dist/{chunk-J4OQ2VRH.mjs → chunk-W6T3CG7U.mjs} +45 -4
- package/dist/{chunk-OTEM4FVX.mjs → chunk-WGKNAOW7.mjs} +11 -7
- package/dist/chunk-WHYHLUXG.mjs +25 -0
- package/dist/chunk-WLFLQB4R.mjs +312 -0
- package/dist/{chunk-W6AWN7BC.js → chunk-WLORVPTR.js} +4 -4
- package/dist/{chunk-J5N5OQWB.mjs → chunk-WOEX4S6J.mjs} +5 -2
- package/dist/{chunk-SDZOVRVR.mjs → chunk-WT72F56O.mjs} +351 -326
- package/dist/{chunk-7Z64GEMN.js → chunk-WTASPL6V.js} +3 -1
- package/dist/{chunk-FNJDBFKM.mjs → chunk-WTIEJCRV.mjs} +12 -1
- package/dist/{chunk-V4JIZN3E.mjs → chunk-WYPTAUCX.mjs} +6 -17
- package/dist/{chunk-BFAZZUD6.js → chunk-XKMZ5AMS.js} +7 -23
- package/dist/{chunk-SKMZTW3K.js → chunk-XMD7CQQ2.js} +24 -26
- package/dist/{chunk-7DUHHRAU.mjs → chunk-Y5X3G2LD.mjs} +41 -5
- package/dist/{chunk-XATXFVKR.mjs → chunk-Y7K27DVV.mjs} +4 -3
- package/dist/{chunk-ZA5EFHET.mjs → chunk-Z6BDNV3S.mjs} +18 -1
- package/dist/{chunk-UBP7HZSU.mjs → chunk-ZG2W4HS5.mjs} +6 -4
- package/dist/{chunk-UIIOZEUP.js → chunk-ZLCVJXGL.js} +4 -4
- package/dist/{chunk-LQT6ZGME.mjs → chunk-ZLP4XEAO.mjs} +36 -19
- package/dist/{chunk-QQFLRNI3.mjs → chunk-ZRZB3C5J.mjs} +18 -3
- package/dist/{chunk-YID7J6ZK.js → chunk-ZXVLZKLT.js} +1 -1
- package/dist/components/ActivityFeed.js +6 -5
- package/dist/components/ActivityFeed.mjs +5 -4
- package/dist/components/AreaChart.js +4 -4
- package/dist/components/AreaChart.mjs +3 -3
- package/dist/components/AutoComplete.js +3 -2
- package/dist/components/AutoComplete.mjs +2 -1
- package/dist/components/BackTop.js +2 -2
- package/dist/components/BackTop.mjs +1 -1
- package/dist/components/Badge.js +3 -2
- package/dist/components/Badge.mjs +2 -1
- package/dist/components/BarChart.js +4 -4
- package/dist/components/BarChart.mjs +3 -3
- package/dist/components/Breadcrumb.d.mts +1 -1
- package/dist/components/Breadcrumb.d.ts +1 -1
- package/dist/components/Calendar.d.mts +2 -10
- package/dist/components/Calendar.d.ts +2 -10
- package/dist/components/Calendar.js +3 -2
- package/dist/components/Calendar.mjs +2 -1
- package/dist/components/Cascader.d.mts +3 -1
- package/dist/components/Cascader.d.ts +3 -1
- package/dist/components/Cascader.js +3 -2
- package/dist/components/Cascader.mjs +2 -1
- package/dist/components/ChartAxis.d.mts +1 -2
- package/dist/components/ChartAxis.d.ts +1 -2
- package/dist/components/ChartGrid.d.mts +1 -2
- package/dist/components/ChartGrid.d.ts +1 -2
- package/dist/components/ChartLegend.js +2 -2
- package/dist/components/ChartLegend.mjs +1 -1
- package/dist/components/ChartSeries.d.mts +1 -2
- package/dist/components/ChartSeries.d.ts +1 -2
- package/dist/components/ChartTooltip.js +2 -2
- package/dist/components/ChartTooltip.mjs +1 -1
- package/dist/components/ChatWindow.js +9 -7
- package/dist/components/ChatWindow.mjs +8 -6
- package/dist/components/Checkbox.js +4 -4
- package/dist/components/Checkbox.mjs +3 -3
- package/dist/components/CheckboxGroup.js +3 -3
- package/dist/components/CheckboxGroup.mjs +2 -2
- package/dist/components/CodeEditor.js +2 -2
- package/dist/components/CodeEditor.mjs +1 -1
- package/dist/components/CommentThread.js +7 -5
- package/dist/components/CommentThread.mjs +6 -4
- package/dist/components/CropUpload.d.mts +6 -2
- package/dist/components/CropUpload.d.ts +6 -2
- package/dist/components/CropUpload.js +5 -5
- package/dist/components/CropUpload.mjs +4 -4
- package/dist/components/DataTableWithToolbar.d.mts +2 -3
- package/dist/components/DataTableWithToolbar.d.ts +2 -3
- package/dist/components/DataTableWithToolbar.js +13 -12
- package/dist/components/DataTableWithToolbar.mjs +12 -11
- package/dist/components/DatePicker.d.mts +1 -0
- package/dist/components/DatePicker.d.ts +1 -0
- package/dist/components/DatePicker.js +4 -2
- package/dist/components/DatePicker.mjs +3 -1
- package/dist/components/DonutChart.js +5 -5
- package/dist/components/DonutChart.mjs +4 -4
- package/dist/components/Drawer.js +3 -3
- package/dist/components/Drawer.mjs +2 -2
- package/dist/components/Empty.js +3 -2
- package/dist/components/Empty.mjs +2 -1
- package/dist/components/FileManager.d.mts +3 -22
- package/dist/components/FileManager.d.ts +3 -22
- package/dist/components/FileManager.js +3 -2
- package/dist/components/FileManager.mjs +2 -1
- package/dist/components/FloatButton.js +2 -2
- package/dist/components/FloatButton.mjs +1 -1
- package/dist/components/Form.js +3 -2
- package/dist/components/Form.mjs +2 -1
- package/dist/components/FormItem.js +4 -3
- package/dist/components/FormItem.mjs +3 -2
- package/dist/components/FormWizard.js +4 -4
- package/dist/components/FormWizard.mjs +3 -3
- package/dist/components/FunnelChart.js +4 -4
- package/dist/components/FunnelChart.mjs +3 -3
- package/dist/components/GaugeChart.js +3 -2
- package/dist/components/GaugeChart.mjs +2 -1
- package/dist/components/HeatmapChart.js +3 -3
- package/dist/components/HeatmapChart.mjs +2 -2
- package/dist/components/Image.js +5 -4
- package/dist/components/Image.mjs +4 -3
- package/dist/components/ImageAnnotation.d.mts +1 -1
- package/dist/components/ImageAnnotation.d.ts +1 -1
- package/dist/components/ImageAnnotation.js +3 -2
- package/dist/components/ImageAnnotation.mjs +2 -1
- package/dist/components/ImageCropper.js +3 -2
- package/dist/components/ImageCropper.mjs +2 -1
- package/dist/components/ImageGroup.js +4 -3
- package/dist/components/ImageGroup.mjs +3 -2
- package/dist/components/ImagePreview.js +3 -2
- package/dist/components/ImagePreview.mjs +2 -1
- package/dist/components/ImageViewer.d.mts +3 -1
- package/dist/components/ImageViewer.d.ts +3 -1
- package/dist/components/ImageViewer.js +3 -2
- package/dist/components/ImageViewer.mjs +2 -1
- package/dist/components/InfiniteScroll.d.mts +2 -0
- package/dist/components/InfiniteScroll.d.ts +2 -0
- package/dist/components/InfiniteScroll.js +3 -2
- package/dist/components/InfiniteScroll.mjs +2 -1
- package/dist/components/Input.js +4 -2
- package/dist/components/Input.mjs +3 -1
- package/dist/components/InputNumber.js +4 -2
- package/dist/components/InputNumber.mjs +3 -1
- package/dist/components/Kanban.d.mts +5 -1
- package/dist/components/Kanban.d.ts +5 -1
- package/dist/components/Kanban.js +3 -3
- package/dist/components/Kanban.mjs +2 -2
- package/dist/components/LineChart.js +4 -4
- package/dist/components/LineChart.mjs +3 -3
- package/dist/components/List.d.mts +6 -3
- package/dist/components/List.d.ts +6 -3
- package/dist/components/List.js +4 -3
- package/dist/components/List.mjs +3 -2
- package/dist/components/Loading.js +3 -2
- package/dist/components/Loading.mjs +2 -1
- package/dist/components/MarkdownEditor.js +3 -3
- package/dist/components/MarkdownEditor.mjs +2 -2
- package/dist/components/Mentions.js +2 -2
- package/dist/components/Mentions.mjs +1 -1
- package/dist/components/Menu.d.mts +8 -80
- package/dist/components/Menu.d.ts +8 -80
- package/dist/components/Menu.js +2 -2
- package/dist/components/Menu.mjs +1 -1
- package/dist/components/MenuItem.d.mts +6 -2
- package/dist/components/MenuItem.d.ts +6 -2
- package/dist/components/MenuItem.js +2 -2
- package/dist/components/MenuItem.mjs +1 -1
- package/dist/components/MenuItemGroup.d.mts +6 -2
- package/dist/components/MenuItemGroup.d.ts +6 -2
- package/dist/components/MenuItemGroup.js +2 -2
- package/dist/components/MenuItemGroup.mjs +1 -1
- package/dist/components/Message.d.mts +2 -1
- package/dist/components/Message.d.ts +2 -1
- package/dist/components/Message.js +2 -2
- package/dist/components/Message.mjs +1 -1
- package/dist/components/Modal.js +3 -3
- package/dist/components/Modal.mjs +2 -2
- package/dist/components/Notification.js +2 -2
- package/dist/components/Notification.mjs +1 -1
- package/dist/components/NotificationCenter.js +7 -6
- package/dist/components/NotificationCenter.mjs +6 -5
- package/dist/components/NumberKeyboard.js +3 -2
- package/dist/components/NumberKeyboard.mjs +2 -1
- package/dist/components/PieChart.js +4 -4
- package/dist/components/PieChart.mjs +3 -3
- package/dist/components/QRCode.d.mts +2 -1
- package/dist/components/QRCode.d.ts +2 -1
- package/dist/components/QRCode.js +3 -2
- package/dist/components/QRCode.mjs +2 -1
- package/dist/components/RadarChart.js +4 -4
- package/dist/components/RadarChart.mjs +3 -3
- package/dist/components/Radio.js +4 -4
- package/dist/components/Radio.mjs +3 -3
- package/dist/components/RadioGroup.js +3 -3
- package/dist/components/RadioGroup.mjs +2 -2
- package/dist/components/Rate.js +2 -2
- package/dist/components/Rate.mjs +1 -1
- package/dist/components/Resizable.js +2 -2
- package/dist/components/Resizable.mjs +1 -1
- package/dist/components/Result.js +2 -2
- package/dist/components/Result.mjs +1 -1
- package/dist/components/RichTextEditor.js +3 -3
- package/dist/components/RichTextEditor.mjs +2 -2
- package/dist/components/ScatterChart.js +4 -4
- package/dist/components/ScatterChart.mjs +3 -3
- package/dist/components/Segmented.d.mts +1 -1
- package/dist/components/Segmented.d.ts +1 -1
- package/dist/components/Segmented.js +2 -2
- package/dist/components/Segmented.mjs +1 -1
- package/dist/components/Select.d.mts +3 -1
- package/dist/components/Select.d.ts +3 -1
- package/dist/components/Select.js +3 -2
- package/dist/components/Select.mjs +2 -1
- package/dist/components/Signature.d.mts +1 -0
- package/dist/components/Signature.d.ts +1 -0
- package/dist/components/Signature.js +3 -2
- package/dist/components/Signature.mjs +2 -1
- package/dist/components/Slider.js +2 -2
- package/dist/components/Slider.mjs +1 -1
- package/dist/components/Splitter.js +2 -2
- package/dist/components/Splitter.mjs +1 -1
- package/dist/components/Spotlight.js +4 -2
- package/dist/components/Spotlight.mjs +3 -1
- package/dist/components/Steps.js +2 -2
- package/dist/components/Steps.mjs +1 -1
- package/dist/components/StepsItem.js +2 -2
- package/dist/components/StepsItem.mjs +1 -1
- package/dist/components/SubMenu.d.mts +6 -2
- package/dist/components/SubMenu.d.ts +6 -2
- package/dist/components/SubMenu.js +2 -2
- package/dist/components/SubMenu.mjs +1 -1
- package/dist/components/SunburstChart.js +4 -4
- package/dist/components/SunburstChart.mjs +3 -3
- package/dist/components/TabPane.js +2 -2
- package/dist/components/TabPane.mjs +1 -1
- package/dist/components/Table.d.mts +3 -3
- package/dist/components/Table.d.ts +3 -3
- package/dist/components/Table.js +9 -9
- package/dist/components/Table.mjs +8 -8
- package/dist/components/Tabs.d.mts +0 -4
- package/dist/components/Tabs.d.ts +0 -4
- package/dist/components/Tabs.js +2 -2
- package/dist/components/Tabs.mjs +1 -1
- package/dist/components/Tag.js +3 -2
- package/dist/components/Tag.mjs +2 -1
- package/dist/components/TaskBoard.d.mts +3 -1
- package/dist/components/TaskBoard.d.ts +3 -1
- package/dist/components/TaskBoard.js +2 -2
- package/dist/components/TaskBoard.mjs +1 -1
- package/dist/components/Textarea.js +4 -3
- package/dist/components/Textarea.mjs +3 -2
- package/dist/components/TimePicker.d.mts +1 -0
- package/dist/components/TimePicker.d.ts +1 -0
- package/dist/components/TimePicker.js +4 -2
- package/dist/components/TimePicker.mjs +3 -1
- package/dist/components/Timeline.d.mts +5 -1
- package/dist/components/Timeline.d.ts +5 -1
- package/dist/components/Timeline.js +3 -2
- package/dist/components/Timeline.mjs +2 -1
- package/dist/components/Tour.js +4 -2
- package/dist/components/Tour.mjs +3 -1
- package/dist/components/Transfer.d.mts +3 -1
- package/dist/components/Transfer.d.ts +3 -1
- package/dist/components/Transfer.js +3 -2
- package/dist/components/Transfer.mjs +2 -1
- package/dist/components/Tree.d.mts +3 -1
- package/dist/components/Tree.d.ts +3 -1
- package/dist/components/Tree.js +4 -3
- package/dist/components/Tree.mjs +3 -2
- package/dist/components/TreeMapChart.js +4 -4
- package/dist/components/TreeMapChart.mjs +3 -3
- package/dist/components/TreeSelect.d.mts +3 -1
- package/dist/components/TreeSelect.d.ts +3 -1
- package/dist/components/TreeSelect.js +3 -2
- package/dist/components/TreeSelect.mjs +2 -1
- package/dist/components/Upload.js +3 -2
- package/dist/components/Upload.mjs +2 -1
- package/dist/components/VirtualList.js +2 -2
- package/dist/components/VirtualList.mjs +1 -1
- package/dist/components/VirtualTable.d.mts +9 -3
- package/dist/components/VirtualTable.d.ts +9 -3
- package/dist/components/VirtualTable.js +3 -2
- package/dist/components/VirtualTable.mjs +2 -1
- package/dist/index.d.mts +81 -56
- package/dist/index.d.ts +81 -56
- package/dist/index.js +92 -92
- package/dist/index.mjs +93 -93
- package/dist/{types-CHmCMNEM.d.ts → types-0oVwMXtR.d.mts} +1 -1
- package/dist/{types-CHmCMNEM.d.mts → types-0oVwMXtR.d.ts} +1 -1
- package/dist/types-CcgZY0mv.d.mts +80 -0
- package/dist/types-CcgZY0mv.d.ts +80 -0
- package/package.json +6 -6
- package/dist/chunk-4GITZKAH.mjs +0 -153
- package/dist/chunk-4SO4LANY.js +0 -626
- package/dist/chunk-5EVHVZG5.js +0 -131
- package/dist/chunk-5HFHHFQS.mjs +0 -168
- package/dist/chunk-CDRQSKXT.mjs +0 -195
- package/dist/chunk-DLKUDB2R.js +0 -153
- package/dist/chunk-GYQ2DN6Z.mjs +0 -174
- package/dist/chunk-HR5GBE3P.js +0 -168
- package/dist/chunk-S5Y6UHAK.mjs +0 -131
- package/dist/chunk-T7KO6EVK.js +0 -174
- package/dist/chunk-UKGQ7256.js +0 -12
- package/dist/chunk-UQMPEMY7.mjs +0 -12
- package/dist/chunk-VNVGSPBI.mjs +0 -626
- package/dist/{chunk-UMZ3PMUJ.js → chunk-SXHCMZ6U.js} +2 -2
- package/dist/{chunk-BWDQZSAB.mjs → chunk-WTSG7QXK.mjs} +3 -3
|
@@ -1,8 +1,11 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _optionalChain(ops) { let lastAccessLHS = undefined; let value = ops[0]; let i = 1; while (i < ops.length) { const op = ops[i]; const fn = ops[i + 1]; i += 2; if ((op === 'optionalAccess' || op === 'optionalCall') && value == null) { return undefined; } if (op === 'access' || op === 'optionalAccess') { lastAccessLHS = value; value = fn(value); } else if (op === 'call' || op === 'optionalCall') { value = fn((...args) => value.call(lastAccessLHS, ...args)); lastAccessLHS = undefined; } } return value; }
|
|
2
2
|
|
|
3
3
|
|
|
4
4
|
var _chunkSTTQ5LXXjs = require('./chunk-STTQ5LXX.js');
|
|
5
5
|
|
|
6
|
+
|
|
7
|
+
var _chunkTDODFBBOjs = require('./chunk-TDODFBBO.js');
|
|
8
|
+
|
|
6
9
|
// src/components/Loading.tsx
|
|
7
10
|
var _react = require('react');
|
|
8
11
|
|
|
@@ -18,6 +21,8 @@ var _react = require('react');
|
|
|
18
21
|
|
|
19
22
|
|
|
20
23
|
|
|
24
|
+
|
|
25
|
+
|
|
21
26
|
var _tigercatcore = require('@expcat/tigercat-core');
|
|
22
27
|
var _jsxruntime = require('react/jsx-runtime');
|
|
23
28
|
var Loading = ({
|
|
@@ -32,8 +37,14 @@ var Loading = ({
|
|
|
32
37
|
lockScroll = true,
|
|
33
38
|
className,
|
|
34
39
|
style,
|
|
40
|
+
locale,
|
|
35
41
|
...props
|
|
36
42
|
}) => {
|
|
43
|
+
const config = _chunkTDODFBBOjs.useTigerConfig.call(void 0, );
|
|
44
|
+
const mergedLocale = _react.useMemo.call(void 0,
|
|
45
|
+
() => _tigercatcore.mergeTigerLocale.call(void 0, config.locale, locale),
|
|
46
|
+
[config.locale, locale]
|
|
47
|
+
);
|
|
37
48
|
const [visible, setVisible] = _react.useState.call(void 0, delay <= 0);
|
|
38
49
|
_react.useEffect.call(void 0, () => {
|
|
39
50
|
_tigercatcore.injectLoadingAnimationStyles.call(void 0, );
|
|
@@ -116,7 +127,7 @@ var Loading = ({
|
|
|
116
127
|
className: containerClasses,
|
|
117
128
|
style: mergedStyle,
|
|
118
129
|
role: "status",
|
|
119
|
-
"aria-label": text || "Loading",
|
|
130
|
+
"aria-label": text || _tigercatcore.resolveLocaleText.call(void 0, "Loading", _optionalChain([mergedLocale, 'optionalAccess', _ => _.common, 'optionalAccess', _2 => _2.loadingText])),
|
|
120
131
|
"aria-live": "polite",
|
|
121
132
|
"aria-busy": true,
|
|
122
133
|
...props,
|
|
@@ -0,0 +1,319 @@
|
|
|
1
|
+
import {
|
|
2
|
+
useTigerConfig
|
|
3
|
+
} from "./chunk-QAIBQHIO.mjs";
|
|
4
|
+
|
|
5
|
+
// src/components/FileManager.tsx
|
|
6
|
+
import { useCallback, useMemo, useRef, useState } from "react";
|
|
7
|
+
import {
|
|
8
|
+
classNames,
|
|
9
|
+
getFileManagerContainerClasses,
|
|
10
|
+
getFileItemClasses,
|
|
11
|
+
deriveFileManagerModel,
|
|
12
|
+
toggleFileSelection,
|
|
13
|
+
resolveFileOpen,
|
|
14
|
+
sliceBreadcrumbPath,
|
|
15
|
+
toFileDragItem,
|
|
16
|
+
applyFileDragReorder,
|
|
17
|
+
formatFileSizeLabel,
|
|
18
|
+
getFileManagerLabels,
|
|
19
|
+
fileManagerToolbarClasses,
|
|
20
|
+
fileManagerBreadcrumbClasses,
|
|
21
|
+
fileManagerBreadcrumbItemClasses,
|
|
22
|
+
fileManagerBreadcrumbSeparatorClasses,
|
|
23
|
+
fileManagerContentClasses,
|
|
24
|
+
fileManagerItemIconClasses,
|
|
25
|
+
fileManagerItemNameClasses,
|
|
26
|
+
fileManagerItemMetaClasses,
|
|
27
|
+
fileManagerEmptyClasses,
|
|
28
|
+
fileManagerLoadingClasses,
|
|
29
|
+
fileManagerSearchClasses,
|
|
30
|
+
resolveLocaleText,
|
|
31
|
+
mergeTigerLocale
|
|
32
|
+
} from "@expcat/tigercat-core";
|
|
33
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
34
|
+
var FileManager = ({
|
|
35
|
+
files = [],
|
|
36
|
+
viewMode = "list",
|
|
37
|
+
selectedKeys = [],
|
|
38
|
+
multiple = false,
|
|
39
|
+
columns,
|
|
40
|
+
sortField = "name",
|
|
41
|
+
sortOrder = "asc",
|
|
42
|
+
currentPath = [],
|
|
43
|
+
showHidden = false,
|
|
44
|
+
draggable = false,
|
|
45
|
+
loading = false,
|
|
46
|
+
emptyText,
|
|
47
|
+
searchable = false,
|
|
48
|
+
searchText = "",
|
|
49
|
+
className,
|
|
50
|
+
onSelect,
|
|
51
|
+
onOpen,
|
|
52
|
+
onNavigate,
|
|
53
|
+
onSelectedKeysChange,
|
|
54
|
+
onCurrentPathChange,
|
|
55
|
+
onSearchTextChange,
|
|
56
|
+
onReorder,
|
|
57
|
+
renderIcon,
|
|
58
|
+
locale
|
|
59
|
+
}) => {
|
|
60
|
+
const config = useTigerConfig();
|
|
61
|
+
const mergedLocale = useMemo(
|
|
62
|
+
() => mergeTigerLocale(config.locale, locale),
|
|
63
|
+
[config.locale, locale]
|
|
64
|
+
);
|
|
65
|
+
const [localSearch, setLocalSearch] = useState(searchText);
|
|
66
|
+
const [focusedIndex, setFocusedIndex] = useState(0);
|
|
67
|
+
const contentRef = useRef(null);
|
|
68
|
+
const dragFromIndex = useRef(null);
|
|
69
|
+
const labels = useMemo(() => getFileManagerLabels(mergedLocale), [mergedLocale]);
|
|
70
|
+
const metaColumns = columns ?? ["size", "modified"];
|
|
71
|
+
const showSizeColumn = metaColumns.includes("size");
|
|
72
|
+
const showModifiedColumn = metaColumns.includes("modified");
|
|
73
|
+
const showTypeColumn = metaColumns.includes("type");
|
|
74
|
+
const model = useMemo(
|
|
75
|
+
() => deriveFileManagerModel({
|
|
76
|
+
files,
|
|
77
|
+
currentPath,
|
|
78
|
+
selectedKeys,
|
|
79
|
+
sortField,
|
|
80
|
+
sortOrder,
|
|
81
|
+
showHidden,
|
|
82
|
+
searchText: localSearch || searchText
|
|
83
|
+
}),
|
|
84
|
+
[files, currentPath, selectedKeys, sortField, sortOrder, showHidden, localSearch, searchText]
|
|
85
|
+
);
|
|
86
|
+
const containerClasses = useMemo(() => getFileManagerContainerClasses(className), [className]);
|
|
87
|
+
const handleSelect = useCallback(
|
|
88
|
+
(item) => {
|
|
89
|
+
if (item.disabled) return;
|
|
90
|
+
onSelect?.(item);
|
|
91
|
+
const keys = toggleFileSelection(selectedKeys, item.key, multiple);
|
|
92
|
+
onSelectedKeysChange?.(keys);
|
|
93
|
+
},
|
|
94
|
+
[selectedKeys, multiple, onSelect, onSelectedKeysChange]
|
|
95
|
+
);
|
|
96
|
+
const handleOpen = useCallback(
|
|
97
|
+
(item) => {
|
|
98
|
+
const result = resolveFileOpen(item, currentPath);
|
|
99
|
+
if (!result) return;
|
|
100
|
+
if (result.type === "navigate") {
|
|
101
|
+
onCurrentPathChange?.(result.path);
|
|
102
|
+
onNavigate?.(result.path);
|
|
103
|
+
} else {
|
|
104
|
+
onOpen?.(result.item);
|
|
105
|
+
}
|
|
106
|
+
},
|
|
107
|
+
[currentPath, onOpen, onNavigate, onCurrentPathChange]
|
|
108
|
+
);
|
|
109
|
+
const navigateToBreadcrumb = useCallback(
|
|
110
|
+
(index) => {
|
|
111
|
+
const newPath = sliceBreadcrumbPath(currentPath, index);
|
|
112
|
+
onCurrentPathChange?.(newPath);
|
|
113
|
+
onNavigate?.(newPath);
|
|
114
|
+
},
|
|
115
|
+
[currentPath, onNavigate, onCurrentPathChange]
|
|
116
|
+
);
|
|
117
|
+
const breadcrumbItems = [
|
|
118
|
+
/* @__PURE__ */ jsx(
|
|
119
|
+
"span",
|
|
120
|
+
{
|
|
121
|
+
className: fileManagerBreadcrumbItemClasses,
|
|
122
|
+
onClick: () => navigateToBreadcrumb(0),
|
|
123
|
+
children: labels.rootText
|
|
124
|
+
},
|
|
125
|
+
"root"
|
|
126
|
+
),
|
|
127
|
+
...currentPath.flatMap((seg, i) => [
|
|
128
|
+
/* @__PURE__ */ jsx("span", { className: fileManagerBreadcrumbSeparatorClasses, children: "/" }, `sep-${i}`),
|
|
129
|
+
/* @__PURE__ */ jsx(
|
|
130
|
+
"span",
|
|
131
|
+
{
|
|
132
|
+
className: fileManagerBreadcrumbItemClasses,
|
|
133
|
+
onClick: () => navigateToBreadcrumb(i + 1),
|
|
134
|
+
children: seg
|
|
135
|
+
},
|
|
136
|
+
`path-${i}`
|
|
137
|
+
)
|
|
138
|
+
])
|
|
139
|
+
];
|
|
140
|
+
const contentClass = viewMode === "grid" ? `${fileManagerContentClasses} grid grid-cols-4 gap-2` : fileManagerContentClasses;
|
|
141
|
+
const firstEnabledIndex = model.processedItems.findIndex((item) => !item.disabled);
|
|
142
|
+
const focusedItem = focusedIndex >= 0 && !model.processedItems[focusedIndex]?.disabled ? focusedIndex : firstEnabledIndex;
|
|
143
|
+
const focusItemAt = useCallback((index) => {
|
|
144
|
+
requestAnimationFrame(() => {
|
|
145
|
+
contentRef.current?.querySelector(`[data-option-index="${index}"]`)?.focus();
|
|
146
|
+
});
|
|
147
|
+
}, []);
|
|
148
|
+
const moveFocus = useCallback(
|
|
149
|
+
(current, direction) => {
|
|
150
|
+
if (model.processedItems.length === 0) return;
|
|
151
|
+
let next = current;
|
|
152
|
+
for (let i = 0; i < model.processedItems.length; i += 1) {
|
|
153
|
+
next = (next + direction + model.processedItems.length) % model.processedItems.length;
|
|
154
|
+
if (!model.processedItems[next]?.disabled) {
|
|
155
|
+
setFocusedIndex(next);
|
|
156
|
+
focusItemAt(next);
|
|
157
|
+
return;
|
|
158
|
+
}
|
|
159
|
+
}
|
|
160
|
+
},
|
|
161
|
+
[focusItemAt, model.processedItems]
|
|
162
|
+
);
|
|
163
|
+
const handleItemKeyDown = useCallback(
|
|
164
|
+
(event, item, index) => {
|
|
165
|
+
switch (event.key) {
|
|
166
|
+
case "ArrowDown":
|
|
167
|
+
case "ArrowRight":
|
|
168
|
+
event.preventDefault();
|
|
169
|
+
moveFocus(index, 1);
|
|
170
|
+
return;
|
|
171
|
+
case "ArrowUp":
|
|
172
|
+
case "ArrowLeft":
|
|
173
|
+
event.preventDefault();
|
|
174
|
+
moveFocus(index, -1);
|
|
175
|
+
return;
|
|
176
|
+
case "Home":
|
|
177
|
+
event.preventDefault();
|
|
178
|
+
if (firstEnabledIndex >= 0) {
|
|
179
|
+
setFocusedIndex(firstEnabledIndex);
|
|
180
|
+
focusItemAt(firstEnabledIndex);
|
|
181
|
+
}
|
|
182
|
+
return;
|
|
183
|
+
case "End": {
|
|
184
|
+
event.preventDefault();
|
|
185
|
+
let lastEnabledIndex = -1;
|
|
186
|
+
for (let next = model.processedItems.length - 1; next >= 0; next -= 1) {
|
|
187
|
+
if (!model.processedItems[next]?.disabled) {
|
|
188
|
+
lastEnabledIndex = next;
|
|
189
|
+
break;
|
|
190
|
+
}
|
|
191
|
+
}
|
|
192
|
+
if (lastEnabledIndex >= 0) {
|
|
193
|
+
setFocusedIndex(lastEnabledIndex);
|
|
194
|
+
focusItemAt(lastEnabledIndex);
|
|
195
|
+
}
|
|
196
|
+
return;
|
|
197
|
+
}
|
|
198
|
+
case " ":
|
|
199
|
+
event.preventDefault();
|
|
200
|
+
handleSelect(item);
|
|
201
|
+
return;
|
|
202
|
+
case "Enter":
|
|
203
|
+
event.preventDefault();
|
|
204
|
+
handleSelect(item);
|
|
205
|
+
handleOpen(item);
|
|
206
|
+
return;
|
|
207
|
+
default:
|
|
208
|
+
return;
|
|
209
|
+
}
|
|
210
|
+
},
|
|
211
|
+
[firstEnabledIndex, focusItemAt, handleOpen, handleSelect, model.processedItems, moveFocus]
|
|
212
|
+
);
|
|
213
|
+
const handleDragStart = useCallback(
|
|
214
|
+
(event, item, index) => {
|
|
215
|
+
if (!draggable || item.disabled) return;
|
|
216
|
+
dragFromIndex.current = index;
|
|
217
|
+
event.dataTransfer.effectAllowed = "move";
|
|
218
|
+
event.dataTransfer.setData("text/plain", String(toFileDragItem(item, index).id));
|
|
219
|
+
},
|
|
220
|
+
[draggable]
|
|
221
|
+
);
|
|
222
|
+
const handleDragOver = useCallback(
|
|
223
|
+
(event) => {
|
|
224
|
+
if (!draggable || dragFromIndex.current === null) return;
|
|
225
|
+
event.preventDefault();
|
|
226
|
+
event.dataTransfer.dropEffect = "move";
|
|
227
|
+
},
|
|
228
|
+
[draggable]
|
|
229
|
+
);
|
|
230
|
+
const handleDrop = useCallback(
|
|
231
|
+
(event, toIndex) => {
|
|
232
|
+
if (!draggable) return;
|
|
233
|
+
const fromIndex = dragFromIndex.current;
|
|
234
|
+
dragFromIndex.current = null;
|
|
235
|
+
if (fromIndex === null || fromIndex === toIndex) return;
|
|
236
|
+
event.preventDefault();
|
|
237
|
+
const items = model.processedItems;
|
|
238
|
+
const reordered = applyFileDragReorder(items, {
|
|
239
|
+
item: toFileDragItem(items[fromIndex], fromIndex),
|
|
240
|
+
fromIndex,
|
|
241
|
+
toIndex,
|
|
242
|
+
fromContainerId: "",
|
|
243
|
+
toContainerId: ""
|
|
244
|
+
});
|
|
245
|
+
onReorder?.(reordered, fromIndex, toIndex);
|
|
246
|
+
},
|
|
247
|
+
[draggable, model.processedItems, onReorder]
|
|
248
|
+
);
|
|
249
|
+
return /* @__PURE__ */ jsxs("div", { className: classNames(containerClasses), children: [
|
|
250
|
+
/* @__PURE__ */ jsxs("div", { className: fileManagerToolbarClasses, children: [
|
|
251
|
+
/* @__PURE__ */ jsx("nav", { className: fileManagerBreadcrumbClasses, "aria-label": "File path", children: breadcrumbItems }),
|
|
252
|
+
/* @__PURE__ */ jsx("div", { className: "flex-1" }),
|
|
253
|
+
searchable && /* @__PURE__ */ jsx(
|
|
254
|
+
"input",
|
|
255
|
+
{
|
|
256
|
+
type: "text",
|
|
257
|
+
className: fileManagerSearchClasses,
|
|
258
|
+
placeholder: resolveLocaleText("Search...", mergedLocale?.common?.searchPlaceholder),
|
|
259
|
+
value: localSearch,
|
|
260
|
+
onChange: (e) => {
|
|
261
|
+
setLocalSearch(e.target.value);
|
|
262
|
+
onSearchTextChange?.(e.target.value);
|
|
263
|
+
}
|
|
264
|
+
}
|
|
265
|
+
)
|
|
266
|
+
] }),
|
|
267
|
+
model.processedItems.length > 0 ? /* @__PURE__ */ jsx(
|
|
268
|
+
"div",
|
|
269
|
+
{
|
|
270
|
+
ref: contentRef,
|
|
271
|
+
className: contentClass,
|
|
272
|
+
role: "listbox",
|
|
273
|
+
"aria-multiselectable": multiple,
|
|
274
|
+
children: model.processedItems.map((item, index) => {
|
|
275
|
+
const isSelected = model.selectedSet.has(item.key);
|
|
276
|
+
const itemClass = getFileItemClasses(viewMode, isSelected);
|
|
277
|
+
const dragItem = draggable && !item.disabled ? toFileDragItem(item, index) : void 0;
|
|
278
|
+
return /* @__PURE__ */ jsxs(
|
|
279
|
+
"div",
|
|
280
|
+
{
|
|
281
|
+
className: itemClass,
|
|
282
|
+
role: "option",
|
|
283
|
+
"aria-selected": isSelected,
|
|
284
|
+
tabIndex: !item.disabled && index === focusedItem ? 0 : -1,
|
|
285
|
+
"data-option-index": index,
|
|
286
|
+
"data-disabled": item.disabled || void 0,
|
|
287
|
+
"data-drag-id": dragItem?.id,
|
|
288
|
+
onFocus: () => {
|
|
289
|
+
if (!item.disabled) setFocusedIndex(index);
|
|
290
|
+
},
|
|
291
|
+
onKeyDown: (event) => handleItemKeyDown(event, item, index),
|
|
292
|
+
onClick: () => handleSelect(item),
|
|
293
|
+
onDoubleClick: () => handleOpen(item),
|
|
294
|
+
draggable: draggable && !item.disabled,
|
|
295
|
+
onDragStart: (event) => handleDragStart(event, item, index),
|
|
296
|
+
onDragOver: handleDragOver,
|
|
297
|
+
onDrop: (event) => handleDrop(event, index),
|
|
298
|
+
children: [
|
|
299
|
+
renderIcon ? renderIcon(item) : /* @__PURE__ */ jsx("span", { className: fileManagerItemIconClasses, "aria-hidden": "true", children: item.type === "folder" ? "\u{1F4C1}" : "\u{1F4C4}" }),
|
|
300
|
+
/* @__PURE__ */ jsx("span", { className: fileManagerItemNameClasses, children: item.name }),
|
|
301
|
+
viewMode === "list" && showTypeColumn && /* @__PURE__ */ jsx("span", { className: fileManagerItemMetaClasses, children: item.extension ?? item.type }),
|
|
302
|
+
viewMode === "list" && showSizeColumn && item.size !== void 0 && /* @__PURE__ */ jsx("span", { className: fileManagerItemMetaClasses, children: formatFileSizeLabel(item.size) }),
|
|
303
|
+
viewMode === "list" && showModifiedColumn && item.modified && /* @__PURE__ */ jsx("span", { className: fileManagerItemMetaClasses, children: item.modified })
|
|
304
|
+
]
|
|
305
|
+
},
|
|
306
|
+
item.key
|
|
307
|
+
);
|
|
308
|
+
})
|
|
309
|
+
}
|
|
310
|
+
) : /* @__PURE__ */ jsx("div", { className: fileManagerEmptyClasses, children: resolveLocaleText("Empty folder", emptyText, mergedLocale?.common?.emptyText) }),
|
|
311
|
+
loading && /* @__PURE__ */ jsx("div", { className: fileManagerLoadingClasses, children: resolveLocaleText("Loading...", mergedLocale?.common?.loadingText) })
|
|
312
|
+
] });
|
|
313
|
+
};
|
|
314
|
+
var FileManager_default = FileManager;
|
|
315
|
+
|
|
316
|
+
export {
|
|
317
|
+
FileManager,
|
|
318
|
+
FileManager_default
|
|
319
|
+
};
|
|
@@ -1,4 +1,9 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _optionalChain(ops) { let lastAccessLHS = undefined; let value = ops[0]; let i = 1; while (i < ops.length) { const op = ops[i]; const fn = ops[i + 1]; i += 2; if ((op === 'optionalAccess' || op === 'optionalCall') && value == null) { return undefined; } if (op === 'access' || op === 'optionalAccess') { lastAccessLHS = value; value = fn(value); } else if (op === 'call' || op === 'optionalCall') { value = fn((...args) => value.call(lastAccessLHS, ...args)); lastAccessLHS = undefined; } } return value; }
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _optionalChain(ops) { let lastAccessLHS = undefined; let value = ops[0]; let i = 1; while (i < ops.length) { const op = ops[i]; const fn = ops[i + 1]; i += 2; if ((op === 'optionalAccess' || op === 'optionalCall') && value == null) { return undefined; } if (op === 'access' || op === 'optionalAccess') { lastAccessLHS = value; value = fn(value); } else if (op === 'call' || op === 'optionalCall') { value = fn((...args) => value.call(lastAccessLHS, ...args)); lastAccessLHS = undefined; } } return value; }
|
|
2
|
+
|
|
3
|
+
var _chunkTDODFBBOjs = require('./chunk-TDODFBBO.js');
|
|
4
|
+
|
|
5
|
+
// src/components/ImageCropper.tsx
|
|
6
|
+
|
|
2
7
|
|
|
3
8
|
|
|
4
9
|
|
|
@@ -22,6 +27,8 @@ var _react = require('react');
|
|
|
22
27
|
|
|
23
28
|
|
|
24
29
|
|
|
30
|
+
|
|
31
|
+
|
|
25
32
|
var _tigercatcore = require('@expcat/tigercat-core');
|
|
26
33
|
var _jsxruntime = require('react/jsx-runtime');
|
|
27
34
|
var ImageCropper = _react.forwardRef.call(void 0,
|
|
@@ -33,11 +40,20 @@ var ImageCropper = _react.forwardRef.call(void 0,
|
|
|
33
40
|
outputType = "image/png",
|
|
34
41
|
quality = 0.92,
|
|
35
42
|
guides = true,
|
|
43
|
+
locale,
|
|
36
44
|
className,
|
|
37
45
|
style,
|
|
38
46
|
onCropChange,
|
|
39
47
|
onReady
|
|
40
48
|
}, ref) => {
|
|
49
|
+
const reactId = _react.useId.call(void 0, );
|
|
50
|
+
const maskId = `tiger-crop-mask-${reactId.replace(/:/g, "")}`;
|
|
51
|
+
const config = _chunkTDODFBBOjs.useTigerConfig.call(void 0, );
|
|
52
|
+
const mergedLocale = _react.useMemo.call(void 0,
|
|
53
|
+
() => _tigercatcore.mergeTigerLocale.call(void 0, config.locale, locale),
|
|
54
|
+
[config.locale, locale]
|
|
55
|
+
);
|
|
56
|
+
const labels = _react.useMemo.call(void 0, () => _tigercatcore.getImageEditorLabels.call(void 0, mergedLocale), [mergedLocale]);
|
|
41
57
|
const containerRef = _react.useRef.call(void 0, null);
|
|
42
58
|
const imageRef = _react.useRef.call(void 0, null);
|
|
43
59
|
const [imageLoaded, setImageLoaded] = _react.useState.call(void 0, false);
|
|
@@ -267,7 +283,7 @@ var ImageCropper = _react.forwardRef.call(void 0,
|
|
|
267
283
|
className: _tigercatcore.classNames.call(void 0, containerClasses, "flex items-center justify-center"),
|
|
268
284
|
style: { ...style, minHeight: "200px" },
|
|
269
285
|
role: "img",
|
|
270
|
-
"aria-label":
|
|
286
|
+
"aria-label": labels.loadingCropImageAriaLabel,
|
|
271
287
|
children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "w-8 h-8 border-2 border-white/30 border-t-white rounded-full animate-spin" })
|
|
272
288
|
}
|
|
273
289
|
);
|
|
@@ -283,7 +299,7 @@ var ImageCropper = _react.forwardRef.call(void 0,
|
|
|
283
299
|
height: `${displayHeight}px`
|
|
284
300
|
},
|
|
285
301
|
role: "application",
|
|
286
|
-
"aria-label":
|
|
302
|
+
"aria-label": labels.cropperDialogAriaLabel,
|
|
287
303
|
"aria-roledescription": "image cropper",
|
|
288
304
|
children: [
|
|
289
305
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
@@ -293,7 +309,7 @@ var ImageCropper = _react.forwardRef.call(void 0,
|
|
|
293
309
|
className: _tigercatcore.imageCropperImgClasses,
|
|
294
310
|
style: { width: `${displayWidth}px`, height: `${displayHeight}px` },
|
|
295
311
|
draggable: false,
|
|
296
|
-
alt:
|
|
312
|
+
alt: labels.imageToCropAriaLabel
|
|
297
313
|
}
|
|
298
314
|
),
|
|
299
315
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
@@ -304,7 +320,7 @@ var ImageCropper = _react.forwardRef.call(void 0,
|
|
|
304
320
|
height: displayHeight,
|
|
305
321
|
xmlns: "http://www.w3.org/2000/svg",
|
|
306
322
|
children: [
|
|
307
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "defs", { children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "mask", { id:
|
|
323
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "defs", { children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "mask", { id: maskId, children: [
|
|
308
324
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "rect", { width: displayWidth, height: displayHeight, fill: "white" }),
|
|
309
325
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "rect", { x: cr.x, y: cr.y, width: cr.width, height: cr.height, fill: "black" })
|
|
310
326
|
] }) }),
|
|
@@ -314,7 +330,7 @@ var ImageCropper = _react.forwardRef.call(void 0,
|
|
|
314
330
|
width: displayWidth,
|
|
315
331
|
height: displayHeight,
|
|
316
332
|
fill: "var(--tiger-image-cropper-mask, rgba(0,0,0,0.55))",
|
|
317
|
-
mask:
|
|
333
|
+
mask: `url(#${maskId})`
|
|
318
334
|
}
|
|
319
335
|
)
|
|
320
336
|
]
|
|
@@ -344,7 +360,7 @@ var ImageCropper = _react.forwardRef.call(void 0,
|
|
|
344
360
|
},
|
|
345
361
|
role: "button",
|
|
346
362
|
tabIndex: 0,
|
|
347
|
-
"aria-label":
|
|
363
|
+
"aria-label": labels.moveCropAreaAriaLabel,
|
|
348
364
|
onMouseDown: (e) => handleMouseDown(e, "move"),
|
|
349
365
|
onTouchStart: (e) => handleTouchStart(e, "move"),
|
|
350
366
|
onKeyDown: handleMoveKeyDown
|
|
@@ -427,7 +443,7 @@ var ImageCropper = _react.forwardRef.call(void 0,
|
|
|
427
443
|
style: pos,
|
|
428
444
|
role: "button",
|
|
429
445
|
tabIndex: 0,
|
|
430
|
-
"aria-label":
|
|
446
|
+
"aria-label": labels.resizeCropAreaAriaLabel.replace("{handle}", handle),
|
|
431
447
|
onMouseDown: (e) => handleMouseDown(e, "resize", handle),
|
|
432
448
|
onTouchStart: (e) => handleTouchStart(e, "resize", handle),
|
|
433
449
|
onKeyDown: (e) => handleResizeKeyDown(e, handle)
|
|
@@ -1,9 +1,12 @@
|
|
|
1
1
|
import {
|
|
2
2
|
useCheckboxGroup
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-MV2JQ6XQ.mjs";
|
|
4
|
+
import {
|
|
5
|
+
useControlledState
|
|
6
|
+
} from "./chunk-WHYHLUXG.mjs";
|
|
4
7
|
|
|
5
8
|
// src/components/Checkbox.tsx
|
|
6
|
-
import { useEffect, useRef
|
|
9
|
+
import { useEffect, useRef } from "react";
|
|
7
10
|
import {
|
|
8
11
|
classNames,
|
|
9
12
|
getCheckboxClasses,
|
|
@@ -23,11 +26,10 @@ var Checkbox = ({
|
|
|
23
26
|
...props
|
|
24
27
|
}) => {
|
|
25
28
|
const groupContext = useCheckboxGroup();
|
|
26
|
-
const [
|
|
27
|
-
const isControlled = controlledChecked !== void 0;
|
|
29
|
+
const [checkedState, setChecked] = useControlledState(controlledChecked, defaultChecked, onChange);
|
|
28
30
|
const effectiveSize = propSize || groupContext?.size || "md";
|
|
29
31
|
const effectiveDisabled = propDisabled || groupContext?.disabled || false;
|
|
30
|
-
const checked = groupContext && value !== void 0 ? groupContext.value.includes(value) :
|
|
32
|
+
const checked = groupContext && value !== void 0 ? groupContext.value.includes(value) : checkedState;
|
|
31
33
|
const checkboxRef = useRef(null);
|
|
32
34
|
useEffect(() => {
|
|
33
35
|
if (checkboxRef.current) {
|
|
@@ -40,10 +42,7 @@ var Checkbox = ({
|
|
|
40
42
|
if (groupContext && value !== void 0) {
|
|
41
43
|
groupContext.updateValue(value, newValue);
|
|
42
44
|
} else {
|
|
43
|
-
|
|
44
|
-
setInternalChecked(newValue);
|
|
45
|
-
}
|
|
46
|
-
onChange?.(newValue, event);
|
|
45
|
+
setChecked(newValue, event);
|
|
47
46
|
}
|
|
48
47
|
};
|
|
49
48
|
const checkboxClasses = getCheckboxClasses(effectiveSize, effectiveDisabled);
|