@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
|
@@ -0,0 +1,211 @@
|
|
|
1
|
+
import {
|
|
2
|
+
PieChart
|
|
3
|
+
} from "./chunk-QFUIGOOM.mjs";
|
|
4
|
+
|
|
5
|
+
// src/components/DonutChart.tsx
|
|
6
|
+
import { useEffect, useMemo, useState } from "react";
|
|
7
|
+
import {
|
|
8
|
+
classNames,
|
|
9
|
+
getChartInnerRect,
|
|
10
|
+
normalizeChartPadding,
|
|
11
|
+
DONUT_ENTRANCE_KEYFRAMES,
|
|
12
|
+
DONUT_ENTRANCE_CLASS
|
|
13
|
+
} from "@expcat/tigercat-core";
|
|
14
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
15
|
+
var DONUT_PALETTE = [
|
|
16
|
+
"var(--tiger-chart-1,#5470c6)",
|
|
17
|
+
"var(--tiger-chart-2,#91cc75)",
|
|
18
|
+
"var(--tiger-chart-3,#fac858)",
|
|
19
|
+
"var(--tiger-chart-4,#ee6666)",
|
|
20
|
+
"var(--tiger-chart-5,#73c0de)",
|
|
21
|
+
"var(--tiger-chart-6,#3ba272)",
|
|
22
|
+
"var(--tiger-chart-1,#fc8452)",
|
|
23
|
+
"var(--tiger-chart-2,#9a60b4)",
|
|
24
|
+
"var(--tiger-chart-3,#ea7ccc)"
|
|
25
|
+
];
|
|
26
|
+
var DonutChart = ({
|
|
27
|
+
width = 320,
|
|
28
|
+
height = 240,
|
|
29
|
+
padding = 24,
|
|
30
|
+
data,
|
|
31
|
+
innerRadius,
|
|
32
|
+
innerRadiusRatio = 0.62,
|
|
33
|
+
outerRadius,
|
|
34
|
+
startAngle = 0,
|
|
35
|
+
endAngle = Math.PI * 2,
|
|
36
|
+
padAngle = 0.04,
|
|
37
|
+
colors,
|
|
38
|
+
showLabels = false,
|
|
39
|
+
labelFormatter,
|
|
40
|
+
labelPosition = "inside",
|
|
41
|
+
borderWidth = 0,
|
|
42
|
+
borderColor = "var(--tiger-surface,#ffffff)",
|
|
43
|
+
hoverOffset = 10,
|
|
44
|
+
shadow = true,
|
|
45
|
+
// Interaction props
|
|
46
|
+
hoverable = false,
|
|
47
|
+
hoveredIndex,
|
|
48
|
+
activeOpacity = 1,
|
|
49
|
+
inactiveOpacity = 0.3,
|
|
50
|
+
selectable = false,
|
|
51
|
+
selectedIndex,
|
|
52
|
+
// Legend props
|
|
53
|
+
showLegend = false,
|
|
54
|
+
legendPosition = "bottom",
|
|
55
|
+
legendMarkerSize = 10,
|
|
56
|
+
legendGap = 8,
|
|
57
|
+
legendFormatter,
|
|
58
|
+
// Tooltip props
|
|
59
|
+
showTooltip = true,
|
|
60
|
+
tooltipFormatter,
|
|
61
|
+
// Accessibility
|
|
62
|
+
title,
|
|
63
|
+
desc,
|
|
64
|
+
className,
|
|
65
|
+
// DonutChart-specific
|
|
66
|
+
centerValue,
|
|
67
|
+
centerLabel,
|
|
68
|
+
animated = false,
|
|
69
|
+
// Visual modes (forwarded to PieChart, opt-in per PR-19k(b6/b7))
|
|
70
|
+
gradient = false,
|
|
71
|
+
// Callbacks
|
|
72
|
+
onHoveredIndexChange,
|
|
73
|
+
onSelectedIndexChange,
|
|
74
|
+
onSliceClick,
|
|
75
|
+
onSliceHover
|
|
76
|
+
}) => {
|
|
77
|
+
const innerRect = useMemo(
|
|
78
|
+
() => getChartInnerRect(width, height, padding),
|
|
79
|
+
[width, height, padding]
|
|
80
|
+
);
|
|
81
|
+
const pad = useMemo(() => normalizeChartPadding(padding), [padding]);
|
|
82
|
+
const resolvedOuterRadius = useMemo(() => {
|
|
83
|
+
if (typeof outerRadius === "number") return Math.max(0, outerRadius);
|
|
84
|
+
return Math.max(0, Math.min(innerRect.width, innerRect.height) / 2);
|
|
85
|
+
}, [outerRadius, innerRect.width, innerRect.height]);
|
|
86
|
+
const resolvedInnerRadius = useMemo(() => {
|
|
87
|
+
if (typeof innerRadius === "number") {
|
|
88
|
+
return Math.min(Math.max(0, innerRadius), resolvedOuterRadius);
|
|
89
|
+
}
|
|
90
|
+
const ratio = Math.min(Math.max(innerRadiusRatio ?? 0.62, 0), 1);
|
|
91
|
+
return resolvedOuterRadius * ratio;
|
|
92
|
+
}, [innerRadius, innerRadiusRatio, resolvedOuterRadius]);
|
|
93
|
+
const resolvedColors = useMemo(
|
|
94
|
+
() => colors && colors.length > 0 ? colors : DONUT_PALETTE,
|
|
95
|
+
[colors]
|
|
96
|
+
);
|
|
97
|
+
const donutTooltipFormatter = useMemo(() => {
|
|
98
|
+
if (tooltipFormatter) return tooltipFormatter;
|
|
99
|
+
const total = data.reduce((s, d) => s + d.value, 0);
|
|
100
|
+
return (datum, index) => {
|
|
101
|
+
const pct = total > 0 ? (datum.value / total * 100).toFixed(1) : "0";
|
|
102
|
+
const label = datum.label ?? `#${index + 1}`;
|
|
103
|
+
return `${label}: ${datum.value} (${pct}%)`;
|
|
104
|
+
};
|
|
105
|
+
}, [tooltipFormatter, data]);
|
|
106
|
+
const hasCenterContent = centerValue !== void 0 || centerLabel !== void 0;
|
|
107
|
+
const centerX = pad.left + innerRect.width / 2;
|
|
108
|
+
const centerY = pad.top + innerRect.height / 2;
|
|
109
|
+
const [entered, setEntered] = useState(false);
|
|
110
|
+
useEffect(() => {
|
|
111
|
+
if (animated) setEntered(true);
|
|
112
|
+
}, [animated]);
|
|
113
|
+
return /* @__PURE__ */ jsxs(
|
|
114
|
+
"div",
|
|
115
|
+
{
|
|
116
|
+
className: classNames("inline-block relative", animated && entered && DONUT_ENTRANCE_CLASS),
|
|
117
|
+
"data-donut-chart": "true",
|
|
118
|
+
children: [
|
|
119
|
+
animated && entered && /* @__PURE__ */ jsx("style", { children: DONUT_ENTRANCE_KEYFRAMES }),
|
|
120
|
+
/* @__PURE__ */ jsx(
|
|
121
|
+
PieChart,
|
|
122
|
+
{
|
|
123
|
+
width,
|
|
124
|
+
height,
|
|
125
|
+
padding,
|
|
126
|
+
data,
|
|
127
|
+
innerRadius: resolvedInnerRadius,
|
|
128
|
+
outerRadius,
|
|
129
|
+
startAngle,
|
|
130
|
+
endAngle,
|
|
131
|
+
padAngle,
|
|
132
|
+
colors: resolvedColors,
|
|
133
|
+
showLabels,
|
|
134
|
+
labelFormatter,
|
|
135
|
+
labelPosition,
|
|
136
|
+
borderWidth,
|
|
137
|
+
borderColor,
|
|
138
|
+
hoverOffset,
|
|
139
|
+
shadow,
|
|
140
|
+
gradient,
|
|
141
|
+
hoverable,
|
|
142
|
+
hoveredIndex,
|
|
143
|
+
activeOpacity,
|
|
144
|
+
inactiveOpacity,
|
|
145
|
+
selectable,
|
|
146
|
+
selectedIndex,
|
|
147
|
+
showLegend,
|
|
148
|
+
legendPosition,
|
|
149
|
+
legendMarkerSize,
|
|
150
|
+
legendGap,
|
|
151
|
+
legendFormatter,
|
|
152
|
+
showTooltip,
|
|
153
|
+
tooltipFormatter: donutTooltipFormatter,
|
|
154
|
+
title,
|
|
155
|
+
desc,
|
|
156
|
+
className: classNames(className),
|
|
157
|
+
onHoveredIndexChange,
|
|
158
|
+
onSelectedIndexChange,
|
|
159
|
+
onSliceClick,
|
|
160
|
+
onSliceHover
|
|
161
|
+
}
|
|
162
|
+
),
|
|
163
|
+
hasCenterContent && /* @__PURE__ */ jsxs(
|
|
164
|
+
"div",
|
|
165
|
+
{
|
|
166
|
+
"data-donut-center": "true",
|
|
167
|
+
style: {
|
|
168
|
+
position: "absolute",
|
|
169
|
+
left: `${centerX}px`,
|
|
170
|
+
top: `${centerY}px`,
|
|
171
|
+
transform: "translate(-50%, -50%)",
|
|
172
|
+
textAlign: "center",
|
|
173
|
+
pointerEvents: "none",
|
|
174
|
+
lineHeight: "1.3",
|
|
175
|
+
padding: "var(--tiger-chart-donut-center-padding, 0)",
|
|
176
|
+
borderRadius: "var(--tiger-radius-pill, 9999px)",
|
|
177
|
+
background: "var(--tiger-chart-donut-center-bg, transparent)",
|
|
178
|
+
boxShadow: "var(--tiger-chart-donut-center-shadow, none)",
|
|
179
|
+
backdropFilter: "var(--tiger-chart-donut-center-backdrop, none)",
|
|
180
|
+
WebkitBackdropFilter: "var(--tiger-chart-donut-center-backdrop, none)"
|
|
181
|
+
},
|
|
182
|
+
children: [
|
|
183
|
+
centerValue !== void 0 && /* @__PURE__ */ jsx(
|
|
184
|
+
"div",
|
|
185
|
+
{
|
|
186
|
+
className: "text-xl font-semibold text-[color:var(--tiger-text,#1f2937)]",
|
|
187
|
+
style: { lineHeight: "1.2" },
|
|
188
|
+
children: `${centerValue}`
|
|
189
|
+
}
|
|
190
|
+
),
|
|
191
|
+
centerLabel !== void 0 && /* @__PURE__ */ jsx(
|
|
192
|
+
"div",
|
|
193
|
+
{
|
|
194
|
+
className: "text-xs text-[color:var(--tiger-text-secondary,#6b7280)]",
|
|
195
|
+
style: { marginTop: "2px" },
|
|
196
|
+
children: centerLabel
|
|
197
|
+
}
|
|
198
|
+
)
|
|
199
|
+
]
|
|
200
|
+
}
|
|
201
|
+
)
|
|
202
|
+
]
|
|
203
|
+
}
|
|
204
|
+
);
|
|
205
|
+
};
|
|
206
|
+
var DonutChart_default = DonutChart;
|
|
207
|
+
|
|
208
|
+
export {
|
|
209
|
+
DonutChart,
|
|
210
|
+
DonutChart_default
|
|
211
|
+
};
|
|
@@ -1,16 +1,16 @@
|
|
|
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
3
|
|
|
4
|
-
var
|
|
4
|
+
var _chunkNGSJGXUZjs = require('./chunk-NGSJGXUZ.js');
|
|
5
5
|
|
|
6
6
|
|
|
7
|
-
var
|
|
7
|
+
var _chunkPQF5VLNXjs = require('./chunk-PQF5VLNX.js');
|
|
8
8
|
|
|
9
9
|
|
|
10
10
|
var _chunkZLNBE4ISjs = require('./chunk-ZLNBE4IS.js');
|
|
11
11
|
|
|
12
12
|
|
|
13
|
-
var
|
|
13
|
+
var _chunk5QLSTNA3js = require('./chunk-5QLSTNA3.js');
|
|
14
14
|
|
|
15
15
|
|
|
16
16
|
var _chunkUF3DXKCIjs = require('./chunk-UF3DXKCI.js');
|
|
@@ -89,14 +89,6 @@ var NotificationCenter = ({
|
|
|
89
89
|
setInternalGroupKey(keys[0]);
|
|
90
90
|
}
|
|
91
91
|
}, [activeGroupKey, currentGroupKey, resolvedGroups]);
|
|
92
|
-
const _currentGroup = _react.useMemo.call(void 0, () => {
|
|
93
|
-
if (resolvedGroups.length === 0) return void 0;
|
|
94
|
-
if (currentGroupKey === void 0) return resolvedGroups[0];
|
|
95
|
-
const index = resolvedGroups.findIndex(
|
|
96
|
-
(group, groupIndex) => getGroupKey(group, groupIndex) === currentGroupKey
|
|
97
|
-
);
|
|
98
|
-
return index >= 0 ? resolvedGroups[index] : resolvedGroups[0];
|
|
99
|
-
}, [currentGroupKey, resolvedGroups]);
|
|
100
92
|
const [readStateOverrides, setReadStateOverrides] = _react.useState.call(void 0,
|
|
101
93
|
() => /* @__PURE__ */ new Map()
|
|
102
94
|
);
|
|
@@ -208,15 +200,30 @@ var NotificationCenter = ({
|
|
|
208
200
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex-1 min-w-0", children: [
|
|
209
201
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex items-baseline justify-between gap-2", children: [
|
|
210
202
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex items-center gap-1.5", children: [
|
|
211
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
203
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
204
|
+
_chunkUF3DXKCIjs.Text,
|
|
205
|
+
{
|
|
206
|
+
tag: "span",
|
|
207
|
+
size: "sm",
|
|
208
|
+
weight: isRead ? "normal" : "semibold",
|
|
209
|
+
className: isRead ? "text-gray-600 dark:text-gray-400" : "text-gray-900 dark:text-gray-100",
|
|
210
|
+
children: item.title
|
|
211
|
+
}
|
|
212
|
+
),
|
|
212
213
|
!isRead && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "w-1.5 h-1.5 rounded-full bg-blue-500 dark:bg-blue-400 shrink-0 shadow-sm shadow-blue-500/40 animate-pulse" })
|
|
213
214
|
] }),
|
|
214
215
|
timeText ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "text-[11px] text-gray-400 dark:text-gray-500 font-medium whitespace-nowrap flex-shrink-0 self-center", children: timeText }) : null
|
|
215
216
|
] }),
|
|
216
|
-
item.description ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
217
|
-
"
|
|
218
|
-
|
|
219
|
-
|
|
217
|
+
item.description ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
218
|
+
"div",
|
|
219
|
+
{
|
|
220
|
+
className: _tigercatcore.classNames.call(void 0,
|
|
221
|
+
"mt-1 text-xs leading-relaxed line-clamp-2",
|
|
222
|
+
isRead ? "text-gray-500 dark:text-gray-400" : "text-gray-600 dark:text-gray-300"
|
|
223
|
+
),
|
|
224
|
+
children: item.description
|
|
225
|
+
}
|
|
226
|
+
) : null
|
|
220
227
|
] }),
|
|
221
228
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
222
229
|
_chunkZLNBE4ISjs.Button,
|
|
@@ -245,12 +252,38 @@ var NotificationCenter = ({
|
|
|
245
252
|
const renderList = (listItems) => {
|
|
246
253
|
if (listItems.length === 0) {
|
|
247
254
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex flex-col items-center justify-center py-14 px-4 text-center", children: [
|
|
248
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "p-3.5 bg-gray-50 dark:bg-gray-900 rounded-full mb-3 shadow-inner", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
249
|
-
|
|
255
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "p-3.5 bg-gray-50 dark:bg-gray-900 rounded-full mb-3 shadow-inner", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
256
|
+
"svg",
|
|
257
|
+
{
|
|
258
|
+
className: "w-8 h-8 text-gray-400 dark:text-gray-600 animate-pulse",
|
|
259
|
+
fill: "none",
|
|
260
|
+
viewBox: "0 0 24 24",
|
|
261
|
+
stroke: "currentColor",
|
|
262
|
+
strokeWidth: "1.5",
|
|
263
|
+
children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
264
|
+
"path",
|
|
265
|
+
{
|
|
266
|
+
strokeLinecap: "round",
|
|
267
|
+
strokeLinejoin: "round",
|
|
268
|
+
d: "M14.857 17.082a23.848 23.848 0 0 0 5.454-1.31A8.967 8.967 0 0 1 18 9.75V9A6 6 0 0 0 6 9v.75a8.967 8.967 0 0 1-2.312 6.022c1.733.64 3.56 1.085 5.455 1.31m5.714 0a24.255 24.255 0 0 1-5.714 0m5.714 0a3 3 0 1 1-5.714 0"
|
|
269
|
+
}
|
|
270
|
+
)
|
|
271
|
+
}
|
|
272
|
+
) }),
|
|
273
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
274
|
+
_chunkUF3DXKCIjs.Text,
|
|
275
|
+
{
|
|
276
|
+
tag: "div",
|
|
277
|
+
size: "sm",
|
|
278
|
+
color: "muted",
|
|
279
|
+
className: "font-semibold text-gray-400 dark:text-gray-500",
|
|
280
|
+
children: emptyText
|
|
281
|
+
}
|
|
282
|
+
)
|
|
250
283
|
] });
|
|
251
284
|
}
|
|
252
285
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
253
|
-
|
|
286
|
+
_chunkPQF5VLNXjs.List,
|
|
254
287
|
{
|
|
255
288
|
dataSource: listItems,
|
|
256
289
|
split: true,
|
|
@@ -262,7 +295,7 @@ var NotificationCenter = ({
|
|
|
262
295
|
}
|
|
263
296
|
);
|
|
264
297
|
};
|
|
265
|
-
const content = loading ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "flex items-center justify-center py-16", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
298
|
+
const content = loading ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "flex items-center justify-center py-16", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk5QLSTNA3js.Loading, { text: loadingText, className: "text-blue-500 dark:text-blue-400 font-medium" }) }) : resolvedGroups.length > 0 ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "-mx-4 -mb-4", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkNGSJGXUZjs.Tabs, { type: "line", size: "small", activeKey: currentGroupKey, onChange: handleGroupChange, children: groupTabData.map((tab) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkNGSJGXUZjs.TabPane, { tabKey: tab.key, label: tab.label, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "max-h-[380px] overflow-y-auto", children: renderList(tab.filteredItems) }) }, String(tab.key))) }) }) : /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "-mx-4 -mb-4 max-h-[380px] overflow-y-auto", children: renderList(filteredFlatItems) });
|
|
266
299
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
267
300
|
"div",
|
|
268
301
|
{
|
|
@@ -279,7 +312,16 @@ var NotificationCenter = ({
|
|
|
279
312
|
header: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex flex-col gap-3", children: [
|
|
280
313
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex items-center justify-between", children: [
|
|
281
314
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex items-center gap-2.5", children: [
|
|
282
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
315
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
316
|
+
_chunkUF3DXKCIjs.Text,
|
|
317
|
+
{
|
|
318
|
+
tag: "div",
|
|
319
|
+
size: "base",
|
|
320
|
+
weight: "bold",
|
|
321
|
+
className: "text-gray-900 dark:text-gray-100",
|
|
322
|
+
children: title
|
|
323
|
+
}
|
|
324
|
+
),
|
|
283
325
|
totalUnread > 0 ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "inline-flex items-center justify-center min-w-[20px] h-5 px-1.5 text-[11px] font-bold rounded-full bg-gradient-to-r from-blue-500 to-indigo-600 text-white shadow-sm shadow-blue-500/20 animate-pulse", children: totalUnread }) : null
|
|
284
326
|
] }),
|
|
285
327
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
@@ -1,3 +1,10 @@
|
|
|
1
|
+
import {
|
|
2
|
+
useInputGroupContext
|
|
3
|
+
} from "./chunk-34VGG7AK.mjs";
|
|
4
|
+
import {
|
|
5
|
+
useControlledState
|
|
6
|
+
} from "./chunk-WHYHLUXG.mjs";
|
|
7
|
+
|
|
1
8
|
// src/components/InputNumber.tsx
|
|
2
9
|
import { useState, useCallback, useMemo, useRef, useEffect } from "react";
|
|
3
10
|
import {
|
|
@@ -19,13 +26,15 @@ import {
|
|
|
19
26
|
formatPrecision,
|
|
20
27
|
isAtMin,
|
|
21
28
|
isAtMax,
|
|
29
|
+
formatInputNumberDisplay,
|
|
30
|
+
parseInputNumberValue,
|
|
22
31
|
createRafRepeatActionController
|
|
23
32
|
} from "@expcat/tigercat-core";
|
|
24
33
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
25
34
|
var InputNumber = ({
|
|
26
35
|
value: controlledValue,
|
|
27
36
|
defaultValue,
|
|
28
|
-
size
|
|
37
|
+
size,
|
|
29
38
|
status = "default",
|
|
30
39
|
min = -Infinity,
|
|
31
40
|
max = Infinity,
|
|
@@ -47,32 +56,24 @@ var InputNumber = ({
|
|
|
47
56
|
onBlur,
|
|
48
57
|
className
|
|
49
58
|
}) => {
|
|
50
|
-
const
|
|
59
|
+
const inputGroup = useInputGroupContext();
|
|
60
|
+
const effectiveSize = size ?? inputGroup?.size ?? "md";
|
|
51
61
|
const inputRef = useRef(null);
|
|
52
62
|
const repeatControllerRef = useRef(createRafRepeatActionController());
|
|
53
63
|
const repeatValueRef = useRef(null);
|
|
54
64
|
const suppressNextClickRef = useRef(false);
|
|
55
65
|
const [focused, setFocused] = useState(false);
|
|
56
|
-
const [
|
|
57
|
-
|
|
66
|
+
const [currentValue, setValue] = useControlledState(
|
|
67
|
+
controlledValue,
|
|
68
|
+
defaultValue ?? controlledValue ?? null,
|
|
69
|
+
onChange
|
|
58
70
|
);
|
|
59
71
|
const [displayValue, setDisplayValue] = useState("");
|
|
60
|
-
const currentValue = isControlled ? controlledValue ?? null : internalValue;
|
|
61
72
|
const toDisplayValue = useCallback(
|
|
62
|
-
(val) => {
|
|
63
|
-
if (val === null || val === void 0) return "";
|
|
64
|
-
if (formatter) return formatter(val);
|
|
65
|
-
if (precision !== void 0) return val.toFixed(precision);
|
|
66
|
-
return String(val);
|
|
67
|
-
},
|
|
73
|
+
(val) => formatInputNumberDisplay(val, { formatter, precision }),
|
|
68
74
|
[formatter, precision]
|
|
69
75
|
);
|
|
70
|
-
const parseValue = (str) => {
|
|
71
|
-
if (str === "" || str === "-") return null;
|
|
72
|
-
if (parser) return parser(str);
|
|
73
|
-
const num = Number(str);
|
|
74
|
-
return Number.isNaN(num) ? null : num;
|
|
75
|
-
};
|
|
76
|
+
const parseValue = (str) => parseInputNumberValue(str, { parser });
|
|
76
77
|
useEffect(() => {
|
|
77
78
|
if (!focused) {
|
|
78
79
|
setDisplayValue(toDisplayValue(currentValue));
|
|
@@ -92,10 +93,7 @@ var InputNumber = ({
|
|
|
92
93
|
finalVal = formatPrecision(finalVal, precision);
|
|
93
94
|
}
|
|
94
95
|
}
|
|
95
|
-
|
|
96
|
-
setInternalValue(finalVal);
|
|
97
|
-
}
|
|
98
|
-
onChange?.(finalVal);
|
|
96
|
+
setValue(finalVal);
|
|
99
97
|
setDisplayValue(toDisplayValue(finalVal));
|
|
100
98
|
};
|
|
101
99
|
const handleStep = (direction, baseValue = currentValue) => {
|
|
@@ -167,19 +165,19 @@ var InputNumber = ({
|
|
|
167
165
|
() => classNames(
|
|
168
166
|
getInputNumberWrapperClasses(disabled),
|
|
169
167
|
getInputNumberStatusClasses(status),
|
|
170
|
-
getInputNumberSizeClasses(
|
|
168
|
+
getInputNumberSizeClasses(effectiveSize),
|
|
171
169
|
focused && `ring-2 ${getInputNumberFocusRingColor(status)}`,
|
|
172
170
|
className
|
|
173
171
|
),
|
|
174
|
-
[disabled, status,
|
|
172
|
+
[disabled, status, effectiveSize, focused, className]
|
|
175
173
|
);
|
|
176
174
|
const inputClasses = useMemo(
|
|
177
175
|
() => getInputNumberInputClasses(
|
|
178
|
-
|
|
176
|
+
effectiveSize,
|
|
179
177
|
controls && controlsPosition === "right",
|
|
180
178
|
controls && controlsPosition === "both"
|
|
181
179
|
),
|
|
182
|
-
[
|
|
180
|
+
[effectiveSize, controls, controlsPosition]
|
|
183
181
|
);
|
|
184
182
|
return /* @__PURE__ */ jsxs("div", { className: wrapperClasses, children: [
|
|
185
183
|
controls && controlsPosition === "both" && /* @__PURE__ */ jsx(
|
|
@@ -3,10 +3,10 @@
|
|
|
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
|
-
var
|
|
9
|
+
var _chunkSK7PXSVEjs = require('./chunk-SK7PXSVE.js');
|
|
10
10
|
|
|
11
11
|
|
|
12
12
|
var _chunkUKLVOR4Ejs = require('./chunk-UKLVOR4E.js');
|
|
@@ -215,6 +215,8 @@ var PieChart = ({
|
|
|
215
215
|
filter: shadow ? isEmphasized ? _tigercatcore.PIE_EMPHASIS_SHADOW : _tigercatcore.PIE_BASE_SHADOW : void 0
|
|
216
216
|
},
|
|
217
217
|
tabIndex: selectable ? 0 : void 0,
|
|
218
|
+
role: selectable ? "button" : "img",
|
|
219
|
+
"aria-label": _nullishCoalesce(arc.data.label, () => ( String(arc.value))),
|
|
218
220
|
"data-pie-slice": "true",
|
|
219
221
|
"data-index": arc.index,
|
|
220
222
|
onMouseEnter: (e) => handleMouseEnter(arc.index, e),
|
|
@@ -283,7 +285,7 @@ var PieChart = ({
|
|
|
283
285
|
}
|
|
284
286
|
);
|
|
285
287
|
const tooltip = showTooltip && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
286
|
-
|
|
288
|
+
_chunkSK7PXSVEjs.ChartTooltip,
|
|
287
289
|
{
|
|
288
290
|
content: tooltipContent,
|
|
289
291
|
visible: hoverable && resolvedHoveredIndex !== null && tooltipContent !== "",
|
|
@@ -300,7 +302,7 @@ var PieChart = ({
|
|
|
300
302
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: wrapperClasses, children: [
|
|
301
303
|
chart,
|
|
302
304
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
303
|
-
|
|
305
|
+
_chunk23XPDNCAjs.ChartLegend,
|
|
304
306
|
{
|
|
305
307
|
items: legendItems,
|
|
306
308
|
position: legendPosition,
|
|
@@ -9,6 +9,8 @@ var _react = require('react');
|
|
|
9
9
|
|
|
10
10
|
|
|
11
11
|
|
|
12
|
+
|
|
13
|
+
|
|
12
14
|
var _tigercatcore = require('@expcat/tigercat-core');
|
|
13
15
|
var _jsxruntime = require('react/jsx-runtime');
|
|
14
16
|
var Resizable = ({
|
|
@@ -118,6 +120,54 @@ var Resizable = ({
|
|
|
118
120
|
onResizeEnd
|
|
119
121
|
]
|
|
120
122
|
);
|
|
123
|
+
const handleKeyDown = _react.useCallback.call(void 0,
|
|
124
|
+
(handle, e) => {
|
|
125
|
+
if (disabled) return;
|
|
126
|
+
const delta = _tigercatcore.getResizeKeyboardDelta.call(void 0, e.key);
|
|
127
|
+
if (!delta) return;
|
|
128
|
+
e.preventDefault();
|
|
129
|
+
const startW = _nullishCoalesce(width, () => ( 0));
|
|
130
|
+
const startH = _nullishCoalesce(height, () => ( 0));
|
|
131
|
+
const { deltaWidth, deltaHeight } = _tigercatcore.calculateResizeDelta.call(void 0,
|
|
132
|
+
handle,
|
|
133
|
+
delta.deltaX,
|
|
134
|
+
delta.deltaY,
|
|
135
|
+
axis
|
|
136
|
+
);
|
|
137
|
+
let newW = startW + deltaWidth;
|
|
138
|
+
let newH = startH + deltaHeight;
|
|
139
|
+
if (lockAspectRatio) {
|
|
140
|
+
const ar = _tigercatcore.applyAspectRatio.call(void 0, newW, newH, startW, startH);
|
|
141
|
+
newW = ar.width;
|
|
142
|
+
newH = ar.height;
|
|
143
|
+
}
|
|
144
|
+
const clamped = _tigercatcore.clampDimensions.call(void 0, newW, newH, minWidth, minHeight, maxWidth, maxHeight);
|
|
145
|
+
setWidth(clamped.width);
|
|
146
|
+
setHeight(clamped.height);
|
|
147
|
+
const evt = {
|
|
148
|
+
width: clamped.width,
|
|
149
|
+
height: clamped.height,
|
|
150
|
+
handle,
|
|
151
|
+
deltaX: clamped.width - startW,
|
|
152
|
+
deltaY: clamped.height - startH
|
|
153
|
+
};
|
|
154
|
+
_optionalChain([onResize, 'optionalCall', _7 => _7(evt)]);
|
|
155
|
+
_optionalChain([onResizeEnd, 'optionalCall', _8 => _8(evt)]);
|
|
156
|
+
},
|
|
157
|
+
[
|
|
158
|
+
disabled,
|
|
159
|
+
width,
|
|
160
|
+
height,
|
|
161
|
+
axis,
|
|
162
|
+
lockAspectRatio,
|
|
163
|
+
minWidth,
|
|
164
|
+
minHeight,
|
|
165
|
+
maxWidth,
|
|
166
|
+
maxHeight,
|
|
167
|
+
onResize,
|
|
168
|
+
onResizeEnd
|
|
169
|
+
]
|
|
170
|
+
);
|
|
121
171
|
const containerClasses = _react.useMemo.call(void 0,
|
|
122
172
|
() => _tigercatcore.classNames.call(void 0, _tigercatcore.resizableBaseClasses, "group/resizable", className),
|
|
123
173
|
[className]
|
|
@@ -130,15 +180,29 @@ var Resizable = ({
|
|
|
130
180
|
}, [width, height, style]);
|
|
131
181
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: containerClasses, style: containerStyle, "data-resizable": "", children: [
|
|
132
182
|
children,
|
|
133
|
-
handles.map((pos) =>
|
|
134
|
-
"
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
183
|
+
handles.map((pos) => {
|
|
184
|
+
const usesHeight = pos === "top" || pos === "bottom";
|
|
185
|
+
const valueNow = Math.round(_nullishCoalesce((usesHeight ? height : width), () => ( 0)));
|
|
186
|
+
const valueMin = usesHeight ? minHeight : minWidth;
|
|
187
|
+
const valueMax = usesHeight ? maxHeight : maxWidth;
|
|
188
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
189
|
+
"div",
|
|
190
|
+
{
|
|
191
|
+
className: _tigercatcore.getResizableHandleClasses.call(void 0, pos, draggingHandle === pos, disabled),
|
|
192
|
+
"data-handle": pos,
|
|
193
|
+
role: "separator",
|
|
194
|
+
"aria-label": `Resize ${pos}`,
|
|
195
|
+
"aria-orientation": _tigercatcore.getResizeHandleOrientation.call(void 0, pos),
|
|
196
|
+
"aria-valuenow": valueNow,
|
|
197
|
+
"aria-valuemin": valueMin,
|
|
198
|
+
"aria-valuemax": valueMax,
|
|
199
|
+
tabIndex: disabled ? -1 : 0,
|
|
200
|
+
onMouseDown: (e) => handleMouseDown(pos, e),
|
|
201
|
+
onKeyDown: (e) => handleKeyDown(pos, e)
|
|
202
|
+
},
|
|
203
|
+
pos
|
|
204
|
+
);
|
|
205
|
+
})
|
|
142
206
|
] });
|
|
143
207
|
};
|
|
144
208
|
var Resizable_default = Resizable;
|