@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,12 +1,12 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _nullishCoalesce(lhs, rhsFn) { if (lhs != null) { return lhs; } else { return rhsFn(); } } 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
|
-
var
|
|
3
|
+
var _chunkGPAY5F7Djs = require('./chunk-GPAY5F7D.js');
|
|
4
4
|
|
|
5
5
|
|
|
6
6
|
var _chunkZLNBE4ISjs = require('./chunk-ZLNBE4IS.js');
|
|
7
7
|
|
|
8
8
|
|
|
9
|
-
var
|
|
9
|
+
var _chunkTLDTBCT6js = require('./chunk-TLDTBCT6.js');
|
|
10
10
|
|
|
11
11
|
|
|
12
12
|
var _chunkUF3DXKCIjs = require('./chunk-UF3DXKCI.js');
|
|
@@ -99,13 +99,14 @@ var CommentThread = ({
|
|
|
99
99
|
const ACTION_BTN = `${BTN_BASE} text-gray-500 dark:text-gray-400 font-medium flex items-center gap-1.5`;
|
|
100
100
|
const PRIMARY_BTN = `${BTN_BASE} text-[var(--tiger-primary,#2563eb)] hover:text-[var(--tiger-primary-hover,#1d4ed8)] dark:text-blue-400 dark:hover:text-blue-300 font-semibold hover:bg-[var(--tiger-primary,#2563eb)]/10 dark:hover:bg-blue-400/10`;
|
|
101
101
|
const renderNode = (node, depth, isLast) => {
|
|
102
|
-
const
|
|
102
|
+
const children = _nullishCoalesce(node.children, () => ( []));
|
|
103
|
+
const hasChildren = children.length > 0;
|
|
103
104
|
const isExpanded = expandedSet.has(node.id);
|
|
104
105
|
const showReplies = hasChildren && isExpanded;
|
|
105
106
|
const showAllReplies = expandedAllKeys.has(node.id);
|
|
106
107
|
const repliesId = `tiger-comment-replies-${node.id}`;
|
|
107
|
-
const visibleChildren = showReplies ? maxReplies > 0 && !showAllReplies ?
|
|
108
|
-
const showLoadMoreBtn = showReplies && maxReplies > 0 &&
|
|
108
|
+
const visibleChildren = showReplies ? maxReplies > 0 && !showAllReplies ? children.slice(0, maxReplies) : children : [];
|
|
109
|
+
const showLoadMoreBtn = showReplies && maxReplies > 0 && children.length > maxReplies && !showAllReplies;
|
|
109
110
|
const actions = [];
|
|
110
111
|
if (showLike) {
|
|
111
112
|
const likeLabel = node.liked ? likedText : likeText;
|
|
@@ -123,7 +124,25 @@ var CommentThread = ({
|
|
|
123
124
|
),
|
|
124
125
|
onClick: () => _optionalChain([onLike, 'optionalCall', _4 => _4(node, !node.liked)]),
|
|
125
126
|
children: [
|
|
126
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
127
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
128
|
+
"svg",
|
|
129
|
+
{
|
|
130
|
+
className: _tigercatcore.classNames.call(void 0,
|
|
131
|
+
"w-3.5 h-3.5 transition-transform duration-200 active:scale-125",
|
|
132
|
+
node.liked ? "fill-current" : "stroke-current fill-none"
|
|
133
|
+
),
|
|
134
|
+
viewBox: "0 0 24 24",
|
|
135
|
+
strokeWidth: "2",
|
|
136
|
+
children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
137
|
+
"path",
|
|
138
|
+
{
|
|
139
|
+
strokeLinecap: "round",
|
|
140
|
+
strokeLinejoin: "round",
|
|
141
|
+
d: "M6.633 10.5c.806 0 1.533-.446 2.031-1.08a9.041 9.041 0 012.861-2.4c.723-.384 1.35-.956 1.653-1.715a4.498 4.498 0 00.322-1.672V3a.75.75 0 01.75-.75A2.25 2.25 0 0116.5 4.5c0 1.152-.26 2.243-.723 3.218-.266.558.107 1.282.725 1.282h3.126c1.026 0 1.945.694 2.054 1.715.045.421.068.848.068 1.285a11.95 11.95 0 01-2.649 7.521c-.388.482-.987.729-1.605.729H13.48c-.483 0-.964-.078-1.423-.23l-3.114-1.04a4.501 4.501 0 00-1.423-.23H5.904M14.25 9h2.25M5.904 18.75c.083.205.173.405.27.602.197.4-.078.898-.523.898h-.908c-.889 0-1.713-.518-1.972-1.368a12 12 0 010-7.764c.26-.85.1083-1.368 1.972-1.368h.908c.445 0 .72.498.523.898a8.963 8.963 0 00-.27.602"
|
|
142
|
+
}
|
|
143
|
+
)
|
|
144
|
+
}
|
|
145
|
+
),
|
|
127
146
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { children: `${likeLabel}${likeCount}` })
|
|
128
147
|
]
|
|
129
148
|
},
|
|
@@ -147,7 +166,24 @@ var CommentThread = ({
|
|
|
147
166
|
setReplyValue("");
|
|
148
167
|
},
|
|
149
168
|
children: [
|
|
150
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
169
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
170
|
+
"svg",
|
|
171
|
+
{
|
|
172
|
+
className: "w-3.5 h-3.5",
|
|
173
|
+
viewBox: "0 0 24 24",
|
|
174
|
+
fill: "none",
|
|
175
|
+
stroke: "currentColor",
|
|
176
|
+
strokeWidth: "2",
|
|
177
|
+
children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
178
|
+
"path",
|
|
179
|
+
{
|
|
180
|
+
strokeLinecap: "round",
|
|
181
|
+
strokeLinejoin: "round",
|
|
182
|
+
d: "M8.625 12a.375.375 0 11-.75 0 .375.375 0 01.75 0zm0 0H8.25m4.125 0a.375.375 0 11-.75 0 .375.375 0 01.75 0zm0 0H12m4.125 0a.375.375 0 11-.75 0 .375.375 0 01.75 0zm0 0h-.375M21 12c0 4.418-4.03 8-9 8a9.863 9.863 0 01-4.255-.949L3 20l1.395-3.72C3.512 15.042 3 13.574 3 12c0-4.418 4.03-8 9-8s9 3.582 9 8z"
|
|
183
|
+
}
|
|
184
|
+
)
|
|
185
|
+
}
|
|
186
|
+
),
|
|
151
187
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { children: replyText })
|
|
152
188
|
]
|
|
153
189
|
},
|
|
@@ -168,7 +204,24 @@ var CommentThread = ({
|
|
|
168
204
|
),
|
|
169
205
|
onClick: () => _optionalChain([onMore, 'optionalCall', _5 => _5(node)]),
|
|
170
206
|
children: [
|
|
171
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
207
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
208
|
+
"svg",
|
|
209
|
+
{
|
|
210
|
+
className: "w-3.5 h-3.5",
|
|
211
|
+
viewBox: "0 0 24 24",
|
|
212
|
+
fill: "none",
|
|
213
|
+
stroke: "currentColor",
|
|
214
|
+
strokeWidth: "2",
|
|
215
|
+
children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
216
|
+
"path",
|
|
217
|
+
{
|
|
218
|
+
strokeLinecap: "round",
|
|
219
|
+
strokeLinejoin: "round",
|
|
220
|
+
d: "M6.75 12a.75.75 0 11-1.5 0 .75.75 0 011.5 0zM12.75 12a.75.75 0 11-1.5 0 .75.75 0 011.5 0zM18.75 12a.75.75 0 11-1.5 0 .75.75 0 011.5 0z"
|
|
221
|
+
}
|
|
222
|
+
)
|
|
223
|
+
}
|
|
224
|
+
),
|
|
172
225
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { children: moreText })
|
|
173
226
|
]
|
|
174
227
|
},
|
|
@@ -185,10 +238,7 @@ var CommentThread = ({
|
|
|
185
238
|
{
|
|
186
239
|
size: "sm",
|
|
187
240
|
variant: _nullishCoalesce(action.variant, () => ( "ghost")),
|
|
188
|
-
className: _tigercatcore.classNames.call(void 0,
|
|
189
|
-
ACTION_BTN,
|
|
190
|
-
"hover:bg-gray-100 dark:hover:bg-gray-800"
|
|
191
|
-
),
|
|
241
|
+
className: _tigercatcore.classNames.call(void 0, ACTION_BTN, "hover:bg-gray-100 dark:hover:bg-gray-800"),
|
|
192
242
|
disabled: action.disabled,
|
|
193
243
|
onClick: () => {
|
|
194
244
|
_optionalChain([action, 'access', _6 => _6.onClick, 'optionalCall', _7 => _7(node, action)]);
|
|
@@ -221,17 +271,61 @@ var CommentThread = ({
|
|
|
221
271
|
) : null,
|
|
222
272
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex-1 min-w-0", children: [
|
|
223
273
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex items-center gap-2 flex-wrap", children: [
|
|
224
|
-
_optionalChain([node, 'access', _9 => _9.user, 'optionalAccess', _10 => _10.name]) ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
274
|
+
_optionalChain([node, 'access', _9 => _9.user, 'optionalAccess', _10 => _10.name]) ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
275
|
+
_chunkUF3DXKCIjs.Text,
|
|
276
|
+
{
|
|
277
|
+
tag: "span",
|
|
278
|
+
size: "sm",
|
|
279
|
+
weight: "bold",
|
|
280
|
+
className: "text-gray-900 dark:text-gray-100 hover:text-blue-600 dark:hover:text-blue-400 transition-colors cursor-pointer",
|
|
281
|
+
children: node.user.name
|
|
282
|
+
}
|
|
283
|
+
) : null,
|
|
284
|
+
_optionalChain([node, 'access', _11 => _11.user, 'optionalAccess', _12 => _12.title]) ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
285
|
+
_chunkUF3DXKCIjs.Text,
|
|
286
|
+
{
|
|
287
|
+
tag: "span",
|
|
288
|
+
size: "xs",
|
|
289
|
+
color: "muted",
|
|
290
|
+
className: "bg-gray-100 dark:bg-gray-800 px-1.5 py-0.5 rounded text-gray-500 dark:text-gray-400 font-medium",
|
|
291
|
+
children: node.user.title
|
|
292
|
+
}
|
|
293
|
+
) : null,
|
|
294
|
+
node.tag ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
295
|
+
_chunkTLDTBCT6js.Tag,
|
|
296
|
+
{
|
|
297
|
+
size: "sm",
|
|
298
|
+
variant: _nullishCoalesce(node.tag.variant, () => ( "default")),
|
|
299
|
+
className: "rounded-full px-2 py-0.5 text-[10px] font-semibold tracking-wide uppercase border border-current bg-current/10",
|
|
300
|
+
children: node.tag.label
|
|
301
|
+
}
|
|
302
|
+
) : null,
|
|
303
|
+
_optionalChain([node, 'access', _13 => _13.tags, 'optionalAccess', _14 => _14.map, 'call', _15 => _15((tag, index) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
304
|
+
_chunkTLDTBCT6js.Tag,
|
|
305
|
+
{
|
|
306
|
+
size: "sm",
|
|
307
|
+
variant: _nullishCoalesce(tag.variant, () => ( "default")),
|
|
308
|
+
className: "rounded-full px-2 py-0.5 text-[10px] font-semibold tracking-wide uppercase border border-current bg-current/10",
|
|
309
|
+
children: tag.label
|
|
310
|
+
},
|
|
311
|
+
`${node.id}-tag-${index}`
|
|
312
|
+
))]),
|
|
313
|
+
node.time ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
314
|
+
_chunkUF3DXKCIjs.Text,
|
|
315
|
+
{
|
|
316
|
+
tag: "span",
|
|
317
|
+
size: "xs",
|
|
318
|
+
color: "muted",
|
|
319
|
+
className: "ml-auto text-gray-400 dark:text-gray-500 font-normal",
|
|
320
|
+
children: _tigercatcore.formatCommentTime.call(void 0, node.time)
|
|
321
|
+
}
|
|
322
|
+
) : null
|
|
229
323
|
] }),
|
|
230
324
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "text-sm text-gray-600 dark:text-gray-300 leading-relaxed break-words mt-2 mb-3 pr-2", children: node.content }),
|
|
231
325
|
actions.length > 0 ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "flex flex-wrap items-center gap-1.5", children: actions }) : null,
|
|
232
326
|
replyingTo === node.id ? /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "mt-3 space-y-3 bg-gray-50/50 dark:bg-gray-900/30 border border-gray-100 dark:border-gray-800/80 p-4 rounded-xl shadow-sm backdrop-blur-sm transition-all duration-300", children: [
|
|
233
327
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
234
|
-
|
|
328
|
+
_chunkGPAY5F7Djs.Textarea,
|
|
235
329
|
{
|
|
236
330
|
rows: 3,
|
|
237
331
|
value: replyValue,
|
|
@@ -271,11 +365,14 @@ var CommentThread = ({
|
|
|
271
365
|
{
|
|
272
366
|
size: "sm",
|
|
273
367
|
variant: "ghost",
|
|
274
|
-
className: _tigercatcore.classNames.call(void 0,
|
|
368
|
+
className: _tigercatcore.classNames.call(void 0,
|
|
369
|
+
"mt-2 font-semibold hover:bg-[var(--tiger-primary,#2563eb)]/10 dark:hover:bg-blue-400/10 transition-colors",
|
|
370
|
+
PRIMARY_BTN
|
|
371
|
+
),
|
|
275
372
|
"aria-expanded": isExpanded,
|
|
276
373
|
"aria-controls": repliesId,
|
|
277
374
|
onClick: () => toggleExpanded(node.id),
|
|
278
|
-
children: isExpanded ? "\u25BE \u6536\u8D77\u56DE\u590D" : `\u25B8 \u5C55\u5F00 ${
|
|
375
|
+
children: isExpanded ? "\u25BE \u6536\u8D77\u56DE\u590D" : `\u25B8 \u5C55\u5F00 ${children.length} \u6761\u56DE\u590D`
|
|
279
376
|
}
|
|
280
377
|
) : null,
|
|
281
378
|
showReplies ? /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
@@ -315,7 +412,24 @@ var CommentThread = ({
|
|
|
315
412
|
"aria-label": _nullishCoalesce(divProps["aria-label"], () => ( (divProps["aria-labelledby"] ? void 0 : "\u8BC4\u8BBA\u7EBF\u7A0B"))),
|
|
316
413
|
...divProps,
|
|
317
414
|
children: resolvedNodes.length === 0 ? /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex flex-col items-center justify-center border border-dashed border-gray-200 dark:border-gray-800/80 rounded-xl py-12 px-4 bg-gray-50/20 dark:bg-gray-900/5 transition-colors", children: [
|
|
318
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
415
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
416
|
+
"svg",
|
|
417
|
+
{
|
|
418
|
+
className: "w-10 h-10 text-gray-300 dark:text-gray-600 mb-3",
|
|
419
|
+
fill: "none",
|
|
420
|
+
viewBox: "0 0 24 24",
|
|
421
|
+
stroke: "currentColor",
|
|
422
|
+
strokeWidth: "1.5",
|
|
423
|
+
children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
424
|
+
"path",
|
|
425
|
+
{
|
|
426
|
+
strokeLinecap: "round",
|
|
427
|
+
strokeLinejoin: "round",
|
|
428
|
+
d: "M8.625 12a.375.375 0 11-.75 0 .375.375 0 01.75 0zm0 0H8.25m4.125 0a.375.375 0 11-.75 0 .375.375 0 01.75 0zm0 0H12m4.125 0a.375.375 0 11-.75 0 .375.375 0 01.75 0zm0 0h-.375M21 12c0 4.418-4.03 8-9 8a9.863 9.863 0 01-4.255-.949L3 20l1.395-3.72C3.512 15.042 3 13.574 3 12c0-4.418 4.03-8 9-8s9 3.582 9 8z"
|
|
429
|
+
}
|
|
430
|
+
)
|
|
431
|
+
}
|
|
432
|
+
),
|
|
319
433
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkUF3DXKCIjs.Text, { tag: "div", size: "sm", color: "muted", className: "font-medium", children: emptyText })
|
|
320
434
|
] }) : resolvedNodes.map((node, index) => renderNode(node, 1, index === resolvedNodes.length - 1))
|
|
321
435
|
}
|
|
@@ -9,7 +9,10 @@ import {
|
|
|
9
9
|
getStepTailClasses,
|
|
10
10
|
getStepTitleClasses,
|
|
11
11
|
getStepsContainerClasses,
|
|
12
|
-
calculateStepStatus
|
|
12
|
+
calculateStepStatus,
|
|
13
|
+
stepFinishIconViewBox,
|
|
14
|
+
stepFinishIconStrokeWidth,
|
|
15
|
+
stepFinishIconPathD
|
|
13
16
|
} from "@expcat/tigercat-core";
|
|
14
17
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
15
18
|
var StepsContext = createContext(null);
|
|
@@ -64,7 +67,17 @@ var StepsItem = ({
|
|
|
64
67
|
return /* @__PURE__ */ jsx("div", { className: iconClasses, children: icon });
|
|
65
68
|
}
|
|
66
69
|
if (stepStatus === "finish") {
|
|
67
|
-
return /* @__PURE__ */ jsx("div", { className: iconClasses, "aria-hidden": "true", children: /* @__PURE__ */ jsx(
|
|
70
|
+
return /* @__PURE__ */ jsx("div", { className: iconClasses, "aria-hidden": "true", children: /* @__PURE__ */ jsx(
|
|
71
|
+
"svg",
|
|
72
|
+
{
|
|
73
|
+
className: "w-4 h-4 shrink-0 transition-transform duration-300 animate-fade-in",
|
|
74
|
+
fill: "none",
|
|
75
|
+
stroke: "currentColor",
|
|
76
|
+
strokeWidth: stepFinishIconStrokeWidth,
|
|
77
|
+
viewBox: stepFinishIconViewBox,
|
|
78
|
+
children: /* @__PURE__ */ jsx("path", { strokeLinecap: "round", strokeLinejoin: "round", d: stepFinishIconPathD })
|
|
79
|
+
}
|
|
80
|
+
) });
|
|
68
81
|
}
|
|
69
82
|
return /* @__PURE__ */ jsx("div", { className: iconClasses, children: stepIndex + 1 });
|
|
70
83
|
};
|
|
@@ -1,3 +1,7 @@
|
|
|
1
|
+
import {
|
|
2
|
+
useTigerConfig
|
|
3
|
+
} from "./chunk-QAIBQHIO.mjs";
|
|
4
|
+
|
|
1
5
|
// src/components/Form.tsx
|
|
2
6
|
import React, {
|
|
3
7
|
createContext,
|
|
@@ -24,7 +28,9 @@ import {
|
|
|
24
28
|
undoFormHistory,
|
|
25
29
|
redoFormHistory,
|
|
26
30
|
canUndo,
|
|
27
|
-
canRedo
|
|
31
|
+
canRedo,
|
|
32
|
+
mergeTigerLocale,
|
|
33
|
+
getFormValidationLabels
|
|
28
34
|
} from "@expcat/tigercat-core";
|
|
29
35
|
import { jsx } from "react/jsx-runtime";
|
|
30
36
|
var FormContext = createContext(null);
|
|
@@ -54,22 +60,25 @@ var Form = forwardRef(
|
|
|
54
60
|
validateDebounce = 0,
|
|
55
61
|
undoable = false,
|
|
56
62
|
maxHistorySize = 50,
|
|
63
|
+
locale,
|
|
57
64
|
...props
|
|
58
65
|
}, ref) => {
|
|
59
66
|
const resolvedLabelAlign = labelAlign ?? (labelPosition === "top" ? "left" : "right");
|
|
67
|
+
const config = useTigerConfig();
|
|
68
|
+
const validationMessages = useMemo(
|
|
69
|
+
() => getFormValidationLabels(mergeTigerLocale(config.locale, locale)),
|
|
70
|
+
[config.locale, locale]
|
|
71
|
+
);
|
|
60
72
|
const [errors, setErrors] = useState([]);
|
|
61
|
-
const [formValues, setFormValues] = useState(model);
|
|
62
73
|
const fieldRulesRef = React.useRef({});
|
|
63
74
|
const fieldConditionsRef = React.useRef({});
|
|
64
75
|
const formValuesRef = React.useRef(model);
|
|
76
|
+
const initialValuesRef = React.useRef({ ...model });
|
|
65
77
|
const validationDebouncerRef = React.useRef(
|
|
66
78
|
createFormValidationDebouncer({ delay: validateDebounce })
|
|
67
79
|
);
|
|
68
80
|
const errorsByField = useMemo(() => createFormErrorMap(errors), [errors]);
|
|
69
81
|
const [historyState, setHistoryState] = useState(() => createFormHistory(model, maxHistorySize));
|
|
70
|
-
React.useEffect(() => {
|
|
71
|
-
setFormValues(model);
|
|
72
|
-
}, [model]);
|
|
73
82
|
React.useEffect(() => {
|
|
74
83
|
validationDebouncerRef.current.cancel();
|
|
75
84
|
validationDebouncerRef.current = createFormValidationDebouncer({ delay: validateDebounce });
|
|
@@ -161,9 +170,16 @@ var Form = forwardRef(
|
|
|
161
170
|
}
|
|
162
171
|
const currentValues = formValuesRef.current;
|
|
163
172
|
const value = getValueByPath(currentValues, fieldName);
|
|
164
|
-
return validateFieldUtil(
|
|
173
|
+
return validateFieldUtil(
|
|
174
|
+
fieldName,
|
|
175
|
+
value,
|
|
176
|
+
fieldRules,
|
|
177
|
+
currentValues,
|
|
178
|
+
trigger,
|
|
179
|
+
validationMessages
|
|
180
|
+
);
|
|
165
181
|
},
|
|
166
|
-
[resolveFieldRules]
|
|
182
|
+
[resolveFieldRules, validationMessages]
|
|
167
183
|
);
|
|
168
184
|
const validateFieldNow = useCallback(
|
|
169
185
|
async (fieldName, rulesOverride, trigger) => {
|
|
@@ -219,10 +235,10 @@ var Form = forwardRef(
|
|
|
219
235
|
setErrors([]);
|
|
220
236
|
return { valid: true, errors: [] };
|
|
221
237
|
}
|
|
222
|
-
const result = await validateForm(formValuesRef.current, effectiveRules);
|
|
238
|
+
const result = await validateForm(formValuesRef.current, effectiveRules, validationMessages);
|
|
223
239
|
setErrors(result.errors);
|
|
224
240
|
return result;
|
|
225
|
-
}, [getEffectiveRules]);
|
|
241
|
+
}, [getEffectiveRules, validationMessages]);
|
|
226
242
|
const validate = useCallback(async () => {
|
|
227
243
|
const result = await runValidation();
|
|
228
244
|
return result.valid;
|
|
@@ -267,27 +283,28 @@ var Form = forwardRef(
|
|
|
267
283
|
}, []);
|
|
268
284
|
const resetFields = useCallback(() => {
|
|
269
285
|
clearValidate();
|
|
270
|
-
|
|
271
|
-
|
|
286
|
+
const next = { ...initialValuesRef.current };
|
|
287
|
+
formValuesRef.current = next;
|
|
288
|
+
onChange?.(next);
|
|
289
|
+
if (undoable) {
|
|
290
|
+
setHistoryState(createFormHistory(next, maxHistorySize));
|
|
291
|
+
}
|
|
292
|
+
}, [clearValidate, onChange, undoable, maxHistorySize]);
|
|
272
293
|
const addField = useCallback(
|
|
273
294
|
(fieldName, defaultValue) => {
|
|
274
295
|
if (!fieldName) return;
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
return next;
|
|
279
|
-
});
|
|
296
|
+
const next = { ...formValuesRef.current, [fieldName]: defaultValue ?? null };
|
|
297
|
+
formValuesRef.current = next;
|
|
298
|
+
onChange?.(next);
|
|
280
299
|
},
|
|
281
300
|
[onChange]
|
|
282
301
|
);
|
|
283
302
|
const removeField = useCallback(
|
|
284
303
|
(fieldName) => {
|
|
285
304
|
if (!fieldName) return;
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
return next;
|
|
290
|
-
});
|
|
305
|
+
const { [fieldName]: _, ...next } = formValuesRef.current;
|
|
306
|
+
formValuesRef.current = next;
|
|
307
|
+
onChange?.(next);
|
|
291
308
|
clearValidate(fieldName);
|
|
292
309
|
},
|
|
293
310
|
[onChange, clearValidate]
|
|
@@ -318,11 +335,9 @@ var Form = forwardRef(
|
|
|
318
335
|
}
|
|
319
336
|
return clone;
|
|
320
337
|
};
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
return newValues;
|
|
325
|
-
});
|
|
338
|
+
const newValues = setValueByPath(formValuesRef.current, fieldName, value);
|
|
339
|
+
formValuesRef.current = newValues;
|
|
340
|
+
onChange?.(newValues);
|
|
326
341
|
},
|
|
327
342
|
[onChange]
|
|
328
343
|
);
|
|
@@ -335,7 +350,6 @@ var Form = forwardRef(
|
|
|
335
350
|
setHistoryState((prev) => {
|
|
336
351
|
const result = undoFormHistory(prev);
|
|
337
352
|
if (result) {
|
|
338
|
-
setFormValues(result.present);
|
|
339
353
|
formValuesRef.current = result.present;
|
|
340
354
|
onChange?.(result.present);
|
|
341
355
|
return result;
|
|
@@ -348,7 +362,6 @@ var Form = forwardRef(
|
|
|
348
362
|
setHistoryState((prev) => {
|
|
349
363
|
const result = redoFormHistory(prev);
|
|
350
364
|
if (result) {
|
|
351
|
-
setFormValues(result.present);
|
|
352
365
|
formValuesRef.current = result.present;
|
|
353
366
|
onChange?.(result.present);
|
|
354
367
|
return result;
|
|
@@ -397,7 +410,7 @@ var Form = forwardRef(
|
|
|
397
410
|
);
|
|
398
411
|
const contextValue = useMemo(
|
|
399
412
|
() => ({
|
|
400
|
-
model
|
|
413
|
+
model,
|
|
401
414
|
rules,
|
|
402
415
|
labelWidth,
|
|
403
416
|
labelPosition,
|
|
@@ -417,7 +430,7 @@ var Form = forwardRef(
|
|
|
417
430
|
updateValue
|
|
418
431
|
}),
|
|
419
432
|
[
|
|
420
|
-
|
|
433
|
+
model,
|
|
421
434
|
rules,
|
|
422
435
|
labelWidth,
|
|
423
436
|
labelPosition,
|
|
@@ -3,13 +3,13 @@
|
|
|
3
3
|
var _chunkXTV5JLLCjs = require('./chunk-XTV5JLLC.js');
|
|
4
4
|
|
|
5
5
|
|
|
6
|
-
var
|
|
6
|
+
var _chunk23XPDNCAjs = require('./chunk-23XPDNCA.js');
|
|
7
7
|
|
|
8
8
|
|
|
9
9
|
var _chunkAX5XRD2Qjs = require('./chunk-AX5XRD2Q.js');
|
|
10
10
|
|
|
11
11
|
|
|
12
|
-
var
|
|
12
|
+
var _chunkSK7PXSVEjs = require('./chunk-SK7PXSVE.js');
|
|
13
13
|
|
|
14
14
|
|
|
15
15
|
var _chunkE5GD3H7Ljs = require('./chunk-E5GD3H7L.js');
|
|
@@ -50,13 +50,13 @@ var AreaChart = ({
|
|
|
50
50
|
series,
|
|
51
51
|
xScale: xScaleProp,
|
|
52
52
|
yScale: yScaleProp,
|
|
53
|
-
areaColor
|
|
53
|
+
areaColor = "var(--tiger-primary,#2563eb)",
|
|
54
54
|
strokeWidth = 2,
|
|
55
55
|
fillOpacity = 0.2,
|
|
56
56
|
curve = "linear",
|
|
57
57
|
showPoints = false,
|
|
58
58
|
pointSize = 4,
|
|
59
|
-
pointColor
|
|
59
|
+
pointColor,
|
|
60
60
|
stacked = false,
|
|
61
61
|
showGrid = true,
|
|
62
62
|
showAxis = true,
|
|
@@ -114,8 +114,13 @@ var AreaChart = ({
|
|
|
114
114
|
[width, height, padding]
|
|
115
115
|
);
|
|
116
116
|
const resolvedSeries = _react.useMemo.call(void 0,
|
|
117
|
-
() => _tigercatcore.resolveSeriesData.call(void 0, series, data
|
|
118
|
-
|
|
117
|
+
() => _tigercatcore.resolveSeriesData.call(void 0, series, data, {
|
|
118
|
+
// Single-series colors (`areaColor`/`pointColor`) seed the synthesized
|
|
119
|
+
// series so they take effect when only `data` is provided.
|
|
120
|
+
color: areaColor,
|
|
121
|
+
pointColor
|
|
122
|
+
}),
|
|
123
|
+
[series, data, areaColor, pointColor]
|
|
119
124
|
);
|
|
120
125
|
const {
|
|
121
126
|
activeIndex,
|
|
@@ -291,9 +296,19 @@ var AreaChart = ({
|
|
|
291
296
|
setHoveredPointInfo(null);
|
|
292
297
|
_optionalChain([onPointHover, 'optionalCall', _9 => _9(null, null, null)]);
|
|
293
298
|
}, [onPointHover]);
|
|
299
|
+
const showPointTooltipFromElement = _react.useCallback.call(void 0,
|
|
300
|
+
(el, seriesIndex, pointIndex) => {
|
|
301
|
+
if (!hoverable) return;
|
|
302
|
+
const rect = el.getBoundingClientRect();
|
|
303
|
+
setHoveredPointInfo({ seriesIndex, pointIndex });
|
|
304
|
+
setTooltipPosition({ x: rect.left + rect.width / 2, y: rect.top + rect.height / 2 });
|
|
305
|
+
_optionalChain([onPointHover, 'optionalCall', _10 => _10(seriesIndex, pointIndex, _optionalChain([resolvedSeries, 'access', _11 => _11[seriesIndex], 'optionalAccess', _12 => _12.data, 'access', _13 => _13[pointIndex]]))]);
|
|
306
|
+
},
|
|
307
|
+
[hoverable, onPointHover, resolvedSeries]
|
|
308
|
+
);
|
|
294
309
|
const handlePointClick = _react.useCallback.call(void 0,
|
|
295
310
|
(seriesIndex, pointIndex) => {
|
|
296
|
-
_optionalChain([onPointClick, 'optionalCall',
|
|
311
|
+
_optionalChain([onPointClick, 'optionalCall', _14 => _14(seriesIndex, pointIndex, _optionalChain([resolvedSeries, 'access', _15 => _15[seriesIndex], 'optionalAccess', _16 => _16.data, 'access', _17 => _17[pointIndex]]))]);
|
|
297
312
|
handleSeriesSelect(seriesIndex);
|
|
298
313
|
},
|
|
299
314
|
[onPointClick, resolvedSeries, handleSeriesSelect]
|
|
@@ -307,6 +322,7 @@ var AreaChart = ({
|
|
|
307
322
|
},
|
|
308
323
|
[selectable, handleSeriesSelect]
|
|
309
324
|
);
|
|
325
|
+
const pointClickable = selectable || !!onPointClick;
|
|
310
326
|
const reversedSeriesData = _react.useMemo.call(void 0, () => [...seriesData].reverse(), [seriesData]);
|
|
311
327
|
const chart = /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
312
328
|
_chunkUKLVOR4Ejs.ChartCanvas,
|
|
@@ -476,8 +492,10 @@ var AreaChart = ({
|
|
|
476
492
|
)),
|
|
477
493
|
seriesData.map(
|
|
478
494
|
(sd) => sd.showPoints && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "g", { opacity: sd.opacity, "data-series-key": sd.seriesKey, children: sd.points.map((point) => {
|
|
479
|
-
const isHovered = _optionalChain([hoveredPointInfo, 'optionalAccess',
|
|
495
|
+
const isHovered = _optionalChain([hoveredPointInfo, 'optionalAccess', _18 => _18.seriesIndex]) === sd.seriesIndex && _optionalChain([hoveredPointInfo, 'optionalAccess', _19 => _19.pointIndex]) === point.pointIndex;
|
|
480
496
|
const hoverSize = sd.pointSize + 2;
|
|
497
|
+
const datum = _optionalChain([resolvedSeries, 'access', _20 => _20[sd.seriesIndex], 'optionalAccess', _21 => _21.data, 'optionalAccess', _22 => _22[point.pointIndex]]);
|
|
498
|
+
const pointInteractive = hoverable || pointClickable;
|
|
481
499
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
482
500
|
"circle",
|
|
483
501
|
{
|
|
@@ -487,17 +505,46 @@ var AreaChart = ({
|
|
|
487
505
|
fill: sd.pointHollow ? "white" : pointGradient ? `url(#${gradientPrefix}-point-${sd.seriesKey})` : sd.pointColor,
|
|
488
506
|
stroke: sd.pointHollow ? sd.pointColor : "none",
|
|
489
507
|
strokeWidth: sd.pointHollow ? 2 : 0,
|
|
490
|
-
className: _tigercatcore.
|
|
508
|
+
className: _tigercatcore.classNames.call(void 0,
|
|
509
|
+
_tigercatcore.linePointTransitionClasses,
|
|
510
|
+
pointInteractive && "cursor-pointer"
|
|
511
|
+
),
|
|
491
512
|
style: isHovered ? { filter: `drop-shadow(0 0 4px ${sd.color})` } : void 0,
|
|
513
|
+
role: pointInteractive ? "button" : "img",
|
|
514
|
+
"aria-label": _nullishCoalesce(_optionalChain([datum, 'optionalAccess', _23 => _23.label]), () => ( String(_nullishCoalesce(_optionalChain([datum, 'optionalAccess', _24 => _24.y]), () => ( ""))))),
|
|
515
|
+
tabIndex: pointInteractive ? 0 : void 0,
|
|
492
516
|
"data-point-index": point.pointIndex,
|
|
493
517
|
"data-series-key": sd.seriesKey,
|
|
494
|
-
onMouseEnter: (e) => handlePointMouseEnter(sd.seriesIndex, point.pointIndex, e),
|
|
495
|
-
onMouseMove: handlePointMouseMove,
|
|
496
|
-
onMouseLeave: handlePointMouseLeave,
|
|
497
|
-
onClick: (e) => {
|
|
518
|
+
onMouseEnter: hoverable ? (e) => handlePointMouseEnter(sd.seriesIndex, point.pointIndex, e) : void 0,
|
|
519
|
+
onMouseMove: hoverable ? handlePointMouseMove : void 0,
|
|
520
|
+
onMouseLeave: hoverable ? handlePointMouseLeave : void 0,
|
|
521
|
+
onClick: pointClickable ? (e) => {
|
|
498
522
|
e.stopPropagation();
|
|
499
523
|
handlePointClick(sd.seriesIndex, point.pointIndex);
|
|
500
|
-
}
|
|
524
|
+
} : void 0,
|
|
525
|
+
onFocus: hoverable ? (e) => showPointTooltipFromElement(
|
|
526
|
+
e.currentTarget,
|
|
527
|
+
sd.seriesIndex,
|
|
528
|
+
point.pointIndex
|
|
529
|
+
) : void 0,
|
|
530
|
+
onBlur: hoverable ? handlePointMouseLeave : void 0,
|
|
531
|
+
onKeyDown: pointInteractive ? (e) => {
|
|
532
|
+
if (e.key === "Enter" || e.key === " ") {
|
|
533
|
+
e.preventDefault();
|
|
534
|
+
e.stopPropagation();
|
|
535
|
+
if (pointClickable) {
|
|
536
|
+
handlePointClick(sd.seriesIndex, point.pointIndex);
|
|
537
|
+
} else {
|
|
538
|
+
showPointTooltipFromElement(
|
|
539
|
+
e.currentTarget,
|
|
540
|
+
sd.seriesIndex,
|
|
541
|
+
point.pointIndex
|
|
542
|
+
);
|
|
543
|
+
}
|
|
544
|
+
} else if (e.key === "Escape" && hoverable) {
|
|
545
|
+
handlePointMouseLeave();
|
|
546
|
+
}
|
|
547
|
+
} : void 0
|
|
501
548
|
},
|
|
502
549
|
`point-${sd.seriesKey}-${point.pointIndex}`
|
|
503
550
|
);
|
|
@@ -507,7 +554,7 @@ var AreaChart = ({
|
|
|
507
554
|
}
|
|
508
555
|
);
|
|
509
556
|
const tooltip = showTooltip && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
510
|
-
|
|
557
|
+
_chunkSK7PXSVEjs.ChartTooltip,
|
|
511
558
|
{
|
|
512
559
|
content: tooltipContent,
|
|
513
560
|
visible: hoveredPointInfo !== null && tooltipContent !== "",
|
|
@@ -524,7 +571,7 @@ var AreaChart = ({
|
|
|
524
571
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: wrapperClasses, children: [
|
|
525
572
|
chart,
|
|
526
573
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
527
|
-
|
|
574
|
+
_chunk23XPDNCAjs.ChartLegend,
|
|
528
575
|
{
|
|
529
576
|
items: legendItems,
|
|
530
577
|
position: legendPosition,
|