@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
|
@@ -15,7 +15,8 @@ var Segmented = ({
|
|
|
15
15
|
size = "md",
|
|
16
16
|
block = false,
|
|
17
17
|
className,
|
|
18
|
-
onChange
|
|
18
|
+
onChange,
|
|
19
|
+
...rest
|
|
19
20
|
}) => {
|
|
20
21
|
function handleSelect(opt) {
|
|
21
22
|
if (opt.disabled || disabled) return;
|
|
@@ -23,12 +24,59 @@ var Segmented = ({
|
|
|
23
24
|
_optionalChain([onChange, 'optionalCall', _ => _(opt.value)]);
|
|
24
25
|
}
|
|
25
26
|
const selectedIndex = options.findIndex((opt) => opt.value === value);
|
|
27
|
+
const firstEnabledIndex = options.findIndex((opt) => !opt.disabled);
|
|
28
|
+
const rovingIndex = selectedIndex >= 0 ? selectedIndex : firstEnabledIndex;
|
|
29
|
+
function focusOption(container, index) {
|
|
30
|
+
if (!container) return;
|
|
31
|
+
const els = container.querySelectorAll('[role="radio"]');
|
|
32
|
+
_optionalChain([els, 'access', _2 => _2[index], 'optionalAccess', _3 => _3.focus, 'call', _4 => _4()]);
|
|
33
|
+
}
|
|
34
|
+
function handleKeyDown(e, index) {
|
|
35
|
+
if (disabled) return;
|
|
36
|
+
const enabledIdxs = options.reduce((acc, opt, i) => {
|
|
37
|
+
if (!opt.disabled) acc.push(i);
|
|
38
|
+
return acc;
|
|
39
|
+
}, []);
|
|
40
|
+
if (enabledIdxs.length === 0) return;
|
|
41
|
+
if (e.key === "Enter" || e.key === " ") {
|
|
42
|
+
e.preventDefault();
|
|
43
|
+
handleSelect(options[index]);
|
|
44
|
+
return;
|
|
45
|
+
}
|
|
46
|
+
const pos = enabledIdxs.indexOf(index);
|
|
47
|
+
let target = null;
|
|
48
|
+
switch (e.key) {
|
|
49
|
+
case "ArrowRight":
|
|
50
|
+
case "ArrowDown":
|
|
51
|
+
target = enabledIdxs[(pos + 1 + enabledIdxs.length) % enabledIdxs.length];
|
|
52
|
+
break;
|
|
53
|
+
case "ArrowLeft":
|
|
54
|
+
case "ArrowUp":
|
|
55
|
+
target = enabledIdxs[(pos - 1 + enabledIdxs.length) % enabledIdxs.length];
|
|
56
|
+
break;
|
|
57
|
+
case "Home":
|
|
58
|
+
target = enabledIdxs[0];
|
|
59
|
+
break;
|
|
60
|
+
case "End":
|
|
61
|
+
target = enabledIdxs[enabledIdxs.length - 1];
|
|
62
|
+
break;
|
|
63
|
+
default:
|
|
64
|
+
return;
|
|
65
|
+
}
|
|
66
|
+
if (target == null) return;
|
|
67
|
+
e.preventDefault();
|
|
68
|
+
const container = e.currentTarget.closest('[role="radiogroup"]');
|
|
69
|
+
focusOption(container, target);
|
|
70
|
+
handleSelect(options[target]);
|
|
71
|
+
}
|
|
26
72
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
27
73
|
"div",
|
|
28
74
|
{
|
|
75
|
+
...rest,
|
|
29
76
|
className: _tigercatcore.classNames.call(void 0, _tigercatcore.getSegmentedContainerClasses.call(void 0, size, block), className),
|
|
30
77
|
style: _tigercatcore.getSegmentedContainerStyle.call(void 0, options.length),
|
|
31
78
|
role: "radiogroup",
|
|
79
|
+
"aria-disabled": disabled || void 0,
|
|
32
80
|
children: [
|
|
33
81
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
34
82
|
"div",
|
|
@@ -39,7 +87,7 @@ var Segmented = ({
|
|
|
39
87
|
style: _tigercatcore.getSegmentedIndicatorStyle.call(void 0, selectedIndex, options.length, size)
|
|
40
88
|
}
|
|
41
89
|
),
|
|
42
|
-
options.map((opt) => {
|
|
90
|
+
options.map((opt, index) => {
|
|
43
91
|
const selected = opt.value === value;
|
|
44
92
|
const isDisabled = !!opt.disabled || disabled;
|
|
45
93
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
@@ -52,7 +100,9 @@ var Segmented = ({
|
|
|
52
100
|
role: "radio",
|
|
53
101
|
"aria-checked": selected,
|
|
54
102
|
"aria-disabled": isDisabled,
|
|
103
|
+
tabIndex: isDisabled ? -1 : index === rovingIndex ? 0 : -1,
|
|
55
104
|
onClick: () => handleSelect(opt),
|
|
105
|
+
onKeyDown: (e) => handleKeyDown(e, index),
|
|
56
106
|
children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { children: opt.label })
|
|
57
107
|
},
|
|
58
108
|
opt.value
|
|
@@ -1,6 +1,3 @@
|
|
|
1
|
-
import {
|
|
2
|
-
useTigerConfig
|
|
3
|
-
} from "./chunk-QAIBQHIO.mjs";
|
|
4
1
|
import {
|
|
5
2
|
Button
|
|
6
3
|
} from "./chunk-5TE7KLE5.mjs";
|
|
@@ -10,6 +7,9 @@ import {
|
|
|
10
7
|
useEscapeKey,
|
|
11
8
|
useFocusTrap
|
|
12
9
|
} from "./chunk-SEWNVIHH.mjs";
|
|
10
|
+
import {
|
|
11
|
+
useTigerConfig
|
|
12
|
+
} from "./chunk-QAIBQHIO.mjs";
|
|
13
13
|
|
|
14
14
|
// src/components/Modal.tsx
|
|
15
15
|
import React, { useEffect, useMemo, useCallback, useRef, useId } from "react";
|
|
@@ -77,6 +77,8 @@ var Modal = ({
|
|
|
77
77
|
);
|
|
78
78
|
const [hasBeenOpened, setHasBeenOpened] = React.useState(open);
|
|
79
79
|
const [dragOffset, setDragOffset] = React.useState({ x: 0, y: 0 });
|
|
80
|
+
const prevOpenRef = useRef(open);
|
|
81
|
+
const suppressNextCloseRef = useRef(false);
|
|
80
82
|
useEffect(() => {
|
|
81
83
|
if (open) {
|
|
82
84
|
setHasBeenOpened(true);
|
|
@@ -106,20 +108,28 @@ var Modal = ({
|
|
|
106
108
|
[isDraggable, dragOffset]
|
|
107
109
|
);
|
|
108
110
|
useEffect(() => {
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
111
|
+
if (prevOpenRef.current && !open) {
|
|
112
|
+
if (suppressNextCloseRef.current) {
|
|
113
|
+
suppressNextCloseRef.current = false;
|
|
114
|
+
} else {
|
|
115
|
+
onClose?.();
|
|
116
|
+
}
|
|
112
117
|
}
|
|
113
|
-
|
|
118
|
+
prevOpenRef.current = open;
|
|
119
|
+
}, [open, onClose]);
|
|
114
120
|
const shouldRender = destroyOnClose ? open : hasBeenOpened;
|
|
115
121
|
const handleClose = useCallback(() => {
|
|
116
122
|
onCancel?.();
|
|
117
123
|
onOpenChange?.(false);
|
|
118
|
-
|
|
124
|
+
suppressNextCloseRef.current = true;
|
|
125
|
+
onClose?.();
|
|
126
|
+
}, [onCancel, onOpenChange, onClose]);
|
|
119
127
|
const handleOk = useCallback(() => {
|
|
120
128
|
onOk?.();
|
|
121
129
|
onOpenChange?.(false);
|
|
122
|
-
|
|
130
|
+
suppressNextCloseRef.current = true;
|
|
131
|
+
onClose?.();
|
|
132
|
+
}, [onOk, onOpenChange, onClose]);
|
|
123
133
|
const handleMaskClick = useCallback(
|
|
124
134
|
(event) => {
|
|
125
135
|
if (shouldCloseOnMaskClick(event, maskClosable)) {
|
|
@@ -1,6 +1,11 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true});// src/components/ChartTooltip.tsx
|
|
2
2
|
var _react = require('react');
|
|
3
3
|
var _reactdom = require('react-dom');
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
|
|
4
9
|
var _tigercatcore = require('@expcat/tigercat-core');
|
|
5
10
|
var _jsxruntime = require('react/jsx-runtime');
|
|
6
11
|
var ChartTooltip = ({
|
|
@@ -14,24 +19,28 @@ var ChartTooltip = ({
|
|
|
14
19
|
const [adjustedPosition, setAdjustedPosition] = _react.useState.call(void 0, { x, y });
|
|
15
20
|
_react.useEffect.call(void 0, () => {
|
|
16
21
|
if (!visible) return;
|
|
17
|
-
|
|
18
|
-
|
|
22
|
+
const initialPosition = _tigercatcore.resolveChartTooltipPosition.call(void 0, {
|
|
23
|
+
x,
|
|
24
|
+
y,
|
|
25
|
+
rect: { width: 0, height: 0 },
|
|
26
|
+
viewport: {
|
|
27
|
+
width: typeof window === "undefined" ? 0 : window.innerWidth,
|
|
28
|
+
height: typeof window === "undefined" ? 0 : window.innerHeight
|
|
29
|
+
}
|
|
30
|
+
});
|
|
19
31
|
const frameHandle = requestAnimationFrame(() => {
|
|
20
32
|
if (!tooltipRef.current) return;
|
|
21
33
|
const rect = tooltipRef.current.getBoundingClientRect();
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
newX = Math.max(8, newX);
|
|
31
|
-
newY = Math.max(8, newY);
|
|
32
|
-
setAdjustedPosition({ x: newX, y: newY });
|
|
34
|
+
setAdjustedPosition(
|
|
35
|
+
_tigercatcore.resolveChartTooltipPosition.call(void 0, {
|
|
36
|
+
x,
|
|
37
|
+
y,
|
|
38
|
+
rect,
|
|
39
|
+
viewport: { width: window.innerWidth, height: window.innerHeight }
|
|
40
|
+
})
|
|
41
|
+
);
|
|
33
42
|
});
|
|
34
|
-
setAdjustedPosition(
|
|
43
|
+
setAdjustedPosition(initialPosition);
|
|
35
44
|
return () => cancelAnimationFrame(frameHandle);
|
|
36
45
|
}, [x, y, visible]);
|
|
37
46
|
const tooltipClasses = _react.useMemo.call(void 0,
|
|
@@ -1,4 +1,8 @@
|
|
|
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; }
|
|
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
|
+
|
|
3
|
+
var _chunkTDODFBBOjs = require('./chunk-TDODFBBO.js');
|
|
4
|
+
|
|
5
|
+
// src/components/AutoComplete.tsx
|
|
2
6
|
var _react = require('react');
|
|
3
7
|
|
|
4
8
|
|
|
@@ -16,6 +20,8 @@ var _react = require('react');
|
|
|
16
20
|
|
|
17
21
|
|
|
18
22
|
|
|
23
|
+
|
|
24
|
+
|
|
19
25
|
var _tigercatcore = require('@expcat/tigercat-core');
|
|
20
26
|
var _jsxruntime = require('react/jsx-runtime');
|
|
21
27
|
var AUTOCOMPLETE_KEYS = /* @__PURE__ */ new Set([
|
|
@@ -29,6 +35,7 @@ var AUTOCOMPLETE_KEYS = /* @__PURE__ */ new Set([
|
|
|
29
35
|
"filterOption",
|
|
30
36
|
"defaultActiveFirstOption",
|
|
31
37
|
"allowFreeInput",
|
|
38
|
+
"locale",
|
|
32
39
|
"onChange",
|
|
33
40
|
"onSelect",
|
|
34
41
|
"onSearch"
|
|
@@ -41,15 +48,27 @@ var AutoComplete = (props) => {
|
|
|
41
48
|
size = "md",
|
|
42
49
|
disabled = false,
|
|
43
50
|
clearable = false,
|
|
44
|
-
notFoundText
|
|
51
|
+
notFoundText,
|
|
45
52
|
filterOption = true,
|
|
46
53
|
defaultActiveFirstOption = true,
|
|
54
|
+
allowFreeInput = true,
|
|
55
|
+
locale,
|
|
47
56
|
className,
|
|
48
57
|
onChange,
|
|
49
58
|
onSelect,
|
|
50
59
|
onSearch,
|
|
51
60
|
...rest
|
|
52
61
|
} = props;
|
|
62
|
+
const config = _chunkTDODFBBOjs.useTigerConfig.call(void 0, );
|
|
63
|
+
const mergedLocale = _react.useMemo.call(void 0,
|
|
64
|
+
() => _tigercatcore.mergeTigerLocale.call(void 0, config.locale, locale),
|
|
65
|
+
[config.locale, locale]
|
|
66
|
+
);
|
|
67
|
+
const resolvedNotFoundText = _tigercatcore.resolveLocaleText.call(void 0,
|
|
68
|
+
"No matches found",
|
|
69
|
+
notFoundText,
|
|
70
|
+
_optionalChain([mergedLocale, 'optionalAccess', _ => _.common, 'optionalAccess', _2 => _2.emptyText])
|
|
71
|
+
);
|
|
53
72
|
const divProps = {};
|
|
54
73
|
for (const key of Object.keys(rest)) {
|
|
55
74
|
if (!AUTOCOMPLETE_KEYS.has(key)) {
|
|
@@ -80,11 +99,28 @@ var AutoComplete = (props) => {
|
|
|
80
99
|
setIsOpen(false);
|
|
81
100
|
setActiveIndex(-1);
|
|
82
101
|
}
|
|
102
|
+
function constrainToOption() {
|
|
103
|
+
if (allowFreeInput) return;
|
|
104
|
+
const match = options.find((o) => !o.disabled && o.label === inputValue);
|
|
105
|
+
if (match) {
|
|
106
|
+
if (String(match.value) !== String(value)) {
|
|
107
|
+
_optionalChain([onChange, 'optionalCall', _3 => _3(match.value)]);
|
|
108
|
+
_optionalChain([onSelect, 'optionalCall', _4 => _4(match.value, match)]);
|
|
109
|
+
}
|
|
110
|
+
return;
|
|
111
|
+
}
|
|
112
|
+
const current = options.find((o) => String(o.value) === String(value));
|
|
113
|
+
const revertLabel = current ? current.label : "";
|
|
114
|
+
if (revertLabel !== inputValue) {
|
|
115
|
+
setInputValue(revertLabel);
|
|
116
|
+
_optionalChain([onChange, 'optionalCall', _5 => _5(current ? current.value : "")]);
|
|
117
|
+
}
|
|
118
|
+
}
|
|
83
119
|
function handleInput(e) {
|
|
84
120
|
const val = e.target.value;
|
|
85
121
|
setInputValue(val);
|
|
86
|
-
_optionalChain([onChange, 'optionalCall',
|
|
87
|
-
_optionalChain([onSearch, 'optionalCall',
|
|
122
|
+
_optionalChain([onChange, 'optionalCall', _6 => _6(val)]);
|
|
123
|
+
_optionalChain([onSearch, 'optionalCall', _7 => _7(val)]);
|
|
88
124
|
if (!isOpen) {
|
|
89
125
|
setIsOpen(true);
|
|
90
126
|
}
|
|
@@ -96,15 +132,15 @@ var AutoComplete = (props) => {
|
|
|
96
132
|
function handleSelect(option) {
|
|
97
133
|
if (option.disabled) return;
|
|
98
134
|
setInputValue(option.label);
|
|
99
|
-
_optionalChain([onChange, 'optionalCall',
|
|
100
|
-
_optionalChain([onSelect, 'optionalCall',
|
|
135
|
+
_optionalChain([onChange, 'optionalCall', _8 => _8(option.value)]);
|
|
136
|
+
_optionalChain([onSelect, 'optionalCall', _9 => _9(option.value, option)]);
|
|
101
137
|
closeDropdown();
|
|
102
138
|
}
|
|
103
139
|
function handleClear(e) {
|
|
104
140
|
e.stopPropagation();
|
|
105
141
|
setInputValue("");
|
|
106
|
-
_optionalChain([onChange, 'optionalCall',
|
|
107
|
-
requestAnimationFrame(() => _optionalChain([inputRef, 'access',
|
|
142
|
+
_optionalChain([onChange, 'optionalCall', _10 => _10("")]);
|
|
143
|
+
requestAnimationFrame(() => _optionalChain([inputRef, 'access', _11 => _11.current, 'optionalAccess', _12 => _12.focus, 'call', _13 => _13()]));
|
|
108
144
|
}
|
|
109
145
|
function handleKeyDown(e) {
|
|
110
146
|
if (!isOpen) {
|
|
@@ -126,6 +162,9 @@ var AutoComplete = (props) => {
|
|
|
126
162
|
e.preventDefault();
|
|
127
163
|
if (activeIndex >= 0 && activeIndex < filteredOptions.length) {
|
|
128
164
|
handleSelect(filteredOptions[activeIndex]);
|
|
165
|
+
} else {
|
|
166
|
+
constrainToOption();
|
|
167
|
+
closeDropdown();
|
|
129
168
|
}
|
|
130
169
|
break;
|
|
131
170
|
case "Escape":
|
|
@@ -159,7 +198,8 @@ var AutoComplete = (props) => {
|
|
|
159
198
|
autoComplete: "off",
|
|
160
199
|
onChange: handleInput,
|
|
161
200
|
onFocus: openDropdown,
|
|
162
|
-
onKeyDown: handleKeyDown
|
|
201
|
+
onKeyDown: handleKeyDown,
|
|
202
|
+
onBlur: constrainToOption
|
|
163
203
|
}
|
|
164
204
|
),
|
|
165
205
|
showClearButton && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
@@ -167,7 +207,7 @@ var AutoComplete = (props) => {
|
|
|
167
207
|
{
|
|
168
208
|
type: "button",
|
|
169
209
|
className: "absolute right-2 top-1/2 -translate-y-1/2 text-[var(--tiger-autocomplete-clear,var(--tiger-text-muted,#9ca3af))] hover:text-[var(--tiger-autocomplete-clear-hover,var(--tiger-text,#111827))] transition-colors",
|
|
170
|
-
"aria-label": "Clear",
|
|
210
|
+
"aria-label": _tigercatcore.resolveLocaleText.call(void 0, "Clear", _optionalChain([mergedLocale, 'optionalAccess', _14 => _14.common, 'optionalAccess', _15 => _15.clearText])),
|
|
171
211
|
onClick: handleClear,
|
|
172
212
|
children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
173
213
|
"svg",
|
|
@@ -194,13 +234,14 @@ var AutoComplete = (props) => {
|
|
|
194
234
|
!!option.disabled,
|
|
195
235
|
size
|
|
196
236
|
),
|
|
237
|
+
onMouseDown: (e) => e.preventDefault(),
|
|
197
238
|
onClick: () => handleSelect(option),
|
|
198
239
|
onMouseEnter: () => setActiveIndex(index),
|
|
199
240
|
children: option.label
|
|
200
241
|
},
|
|
201
242
|
String(option.value)
|
|
202
243
|
)) }),
|
|
203
|
-
isOpen && inputValue && filteredOptions.length === 0 && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: _tigercatcore.classNames.call(void 0, _tigercatcore.autoCompleteDropdownClasses, _tigercatcore.autoCompleteEmptyStateClasses), children:
|
|
244
|
+
isOpen && inputValue && filteredOptions.length === 0 && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: _tigercatcore.classNames.call(void 0, _tigercatcore.autoCompleteDropdownClasses, _tigercatcore.autoCompleteEmptyStateClasses), children: resolvedNotFoundText })
|
|
204
245
|
] });
|
|
205
246
|
};
|
|
206
247
|
|
|
@@ -9,7 +9,8 @@ import {
|
|
|
9
9
|
getSliderTooltipClasses,
|
|
10
10
|
sliderGetPercentage,
|
|
11
11
|
sliderGetValueFromPosition,
|
|
12
|
-
sliderGetKeyboardValue
|
|
12
|
+
sliderGetKeyboardValue,
|
|
13
|
+
sliderResolveMarks
|
|
13
14
|
} from "@expcat/tigercat-core";
|
|
14
15
|
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
15
16
|
var Thumb = memo(
|
|
@@ -216,7 +217,8 @@ var Slider = ({
|
|
|
216
217
|
const tooltipClasses = useMemo(() => getSliderTooltipClasses(size), [size]);
|
|
217
218
|
const renderMarks = () => {
|
|
218
219
|
if (!marks) return null;
|
|
219
|
-
const marksObj =
|
|
220
|
+
const marksObj = sliderResolveMarks(marks, min, max);
|
|
221
|
+
if (Object.keys(marksObj).length === 0) return null;
|
|
220
222
|
return /* @__PURE__ */ jsx("div", { className: "absolute w-full top-full mt-2", children: Object.entries(marksObj).map(([key, label]) => {
|
|
221
223
|
const value = Number(key);
|
|
222
224
|
const left = getPercentage(value);
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var _chunkL3WPA2RPjs = require('./chunk-L3WPA2RP.js');
|
|
4
4
|
|
|
5
5
|
// src/components/CheckboxGroup.tsx
|
|
6
6
|
var _react = require('react');
|
|
@@ -19,7 +19,7 @@ var CheckboxGroup = ({
|
|
|
19
19
|
className,
|
|
20
20
|
...props
|
|
21
21
|
}) => {
|
|
22
|
-
const [value,
|
|
22
|
+
const [value, setValue] = _chunkL3WPA2RPjs.useControlledState.call(void 0, controlledValue, defaultValue, onChange);
|
|
23
23
|
const updateValue = (val, checked) => {
|
|
24
24
|
if (disabled) return;
|
|
25
25
|
const currentValue = [...value];
|
|
@@ -29,10 +29,7 @@ var CheckboxGroup = ({
|
|
|
29
29
|
} else if (!checked && index !== -1) {
|
|
30
30
|
currentValue.splice(index, 1);
|
|
31
31
|
}
|
|
32
|
-
|
|
33
|
-
setInternalValue(currentValue);
|
|
34
|
-
}
|
|
35
|
-
_optionalChain([onChange, 'optionalCall', _ => _(currentValue)]);
|
|
32
|
+
setValue(currentValue);
|
|
36
33
|
};
|
|
37
34
|
const context = {
|
|
38
35
|
value,
|
|
@@ -1,13 +1,16 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _optionalChain(ops) { let lastAccessLHS = undefined; let value = ops[0]; let i = 1; while (i < ops.length) { const op = ops[i]; const fn = ops[i + 1]; i += 2; if ((op === 'optionalAccess' || op === 'optionalCall') && value == null) { return undefined; } if (op === 'access' || op === 'optionalAccess') { lastAccessLHS = value; value = fn(value); } else if (op === 'call' || op === 'optionalCall') { value = fn((...args) => value.call(lastAccessLHS, ...args)); lastAccessLHS = undefined; } } return value; }
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _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 _chunkCXXOZLP4js = require('./chunk-CXXOZLP4.js');
|
|
4
4
|
|
|
5
5
|
|
|
6
|
-
var
|
|
6
|
+
var _chunk5UREMEDSjs = require('./chunk-5UREMEDS.js');
|
|
7
7
|
|
|
8
8
|
|
|
9
9
|
var _chunkZLNBE4ISjs = require('./chunk-ZLNBE4IS.js');
|
|
10
10
|
|
|
11
|
+
|
|
12
|
+
var _chunkTDODFBBOjs = require('./chunk-TDODFBBO.js');
|
|
13
|
+
|
|
11
14
|
// src/components/CropUpload.tsx
|
|
12
15
|
var _react = require('react');
|
|
13
16
|
|
|
@@ -19,20 +22,29 @@ var _react = require('react');
|
|
|
19
22
|
|
|
20
23
|
|
|
21
24
|
|
|
25
|
+
|
|
26
|
+
|
|
22
27
|
var _tigercatcore = require('@expcat/tigercat-core');
|
|
23
28
|
var _jsxruntime = require('react/jsx-runtime');
|
|
24
29
|
var CropUpload = ({
|
|
30
|
+
locale,
|
|
25
31
|
accept = "image/*",
|
|
26
32
|
disabled = false,
|
|
27
33
|
maxSize,
|
|
28
34
|
cropperProps,
|
|
29
|
-
modalTitle
|
|
30
|
-
modalWidth
|
|
35
|
+
modalTitle,
|
|
36
|
+
modalWidth = 520,
|
|
31
37
|
className,
|
|
32
38
|
children,
|
|
33
39
|
onCropComplete,
|
|
34
40
|
onError
|
|
35
41
|
}) => {
|
|
42
|
+
const config = _chunkTDODFBBOjs.useTigerConfig.call(void 0, );
|
|
43
|
+
const mergedLocale = _react.useMemo.call(void 0,
|
|
44
|
+
() => _tigercatcore.mergeTigerLocale.call(void 0, config.locale, locale),
|
|
45
|
+
[config.locale, locale]
|
|
46
|
+
);
|
|
47
|
+
const labels = _react.useMemo.call(void 0, () => _tigercatcore.getImageEditorLabels.call(void 0, mergedLocale), [mergedLocale]);
|
|
36
48
|
const fileInputRef = _react.useRef.call(void 0, null);
|
|
37
49
|
const cropperRef = _react.useRef.call(void 0, null);
|
|
38
50
|
const [modalVisible, setModalVisible] = _react.useState.call(void 0, false);
|
|
@@ -112,7 +124,7 @@ var CropUpload = ({
|
|
|
112
124
|
onClick: handleTriggerClick,
|
|
113
125
|
role: "button",
|
|
114
126
|
tabIndex: disabled ? -1 : 0,
|
|
115
|
-
"aria-label":
|
|
127
|
+
"aria-label": labels.selectImageAriaLabel,
|
|
116
128
|
"aria-disabled": disabled ? "true" : void 0,
|
|
117
129
|
onKeyDown: handleKeyDown,
|
|
118
130
|
children: children || /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment, { children: [
|
|
@@ -135,25 +147,26 @@ var CropUpload = ({
|
|
|
135
147
|
)
|
|
136
148
|
}
|
|
137
149
|
),
|
|
138
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { children:
|
|
150
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { children: labels.selectImageText })
|
|
139
151
|
] })
|
|
140
152
|
}
|
|
141
153
|
),
|
|
142
154
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
143
|
-
|
|
155
|
+
_chunkCXXOZLP4js.Modal,
|
|
144
156
|
{
|
|
145
157
|
open: modalVisible,
|
|
146
158
|
size: "lg",
|
|
147
|
-
|
|
159
|
+
width: modalWidth,
|
|
160
|
+
title: _nullishCoalesce(modalTitle, () => ( labels.cropModalTitle)),
|
|
148
161
|
className: "tiger-crop-upload-modal",
|
|
149
162
|
closable: true,
|
|
150
163
|
maskClosable: false,
|
|
151
164
|
onClose: handleCancel,
|
|
152
165
|
footer: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex items-center justify-end gap-3", children: [
|
|
153
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkZLNBE4ISjs.Button, { variant: "secondary", onClick: handleCancel, children:
|
|
154
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkZLNBE4ISjs.Button, { onClick: handleConfirm, loading: cropping, children:
|
|
166
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkZLNBE4ISjs.Button, { variant: "secondary", onClick: handleCancel, children: labels.cropCancelText }),
|
|
167
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkZLNBE4ISjs.Button, { onClick: handleConfirm, loading: cropping, children: labels.cropConfirmText })
|
|
155
168
|
] }),
|
|
156
|
-
children: imageSrc && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
169
|
+
children: imageSrc && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunk5UREMEDSjs.ImageCropper, { ref: cropperRef, src: imageSrc, locale, ...cropperProps })
|
|
157
170
|
}
|
|
158
171
|
)
|
|
159
172
|
] });
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _optionalChain(ops) { let lastAccessLHS = undefined; let value = ops[0]; let i = 1; while (i < ops.length) { const op = ops[i]; const fn = ops[i + 1]; i += 2; if ((op === 'optionalAccess' || op === 'optionalCall') && value == null) { return undefined; } if (op === 'access' || op === 'optionalAccess') { lastAccessLHS = value; value = fn(value); } else if (op === 'call' || op === 'optionalCall') { value = fn((...args) => value.call(lastAccessLHS, ...args)); lastAccessLHS = undefined; } } return value; }
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _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
4
|
var _chunkHQ3QOT7Hjs = require('./chunk-HQ3QOT7H.js');
|
|
@@ -23,17 +23,23 @@ var _reactdom = require('react-dom');
|
|
|
23
23
|
|
|
24
24
|
|
|
25
25
|
|
|
26
|
+
|
|
26
27
|
var _tigercatcore = require('@expcat/tigercat-core');
|
|
27
28
|
var _jsxruntime = require('react/jsx-runtime');
|
|
28
29
|
var MESSAGE_CONTAINER_ID = "tiger-message-container";
|
|
29
30
|
var MESSAGE_CLOSE_ARIA_LABEL = "Close message";
|
|
31
|
+
var MESSAGE_POSITIONS = [
|
|
32
|
+
"top",
|
|
33
|
+
"top-left",
|
|
34
|
+
"top-right",
|
|
35
|
+
"bottom",
|
|
36
|
+
"bottom-left",
|
|
37
|
+
"bottom-right"
|
|
38
|
+
];
|
|
30
39
|
var messageInstances = [];
|
|
31
|
-
var instanceIdCounter = 0;
|
|
32
40
|
var containerRoot = null;
|
|
33
41
|
var updateCallback = null;
|
|
34
|
-
|
|
35
|
-
return ++instanceIdCounter;
|
|
36
|
-
}
|
|
42
|
+
var getNextInstanceId = _tigercatcore.createInstanceCounter.call(void 0, );
|
|
37
43
|
var MessageItem = ({ message, onClose }) => {
|
|
38
44
|
const [isVisible, setIsVisible] = _react.useState.call(void 0, false);
|
|
39
45
|
_react.useEffect.call(void 0, () => {
|
|
@@ -93,17 +99,12 @@ var MessageItem = ({ message, onClose }) => {
|
|
|
93
99
|
}
|
|
94
100
|
);
|
|
95
101
|
};
|
|
96
|
-
var MessageContainer = ({
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
setMessages([...messageInstances]);
|
|
101
|
-
};
|
|
102
|
-
return () => {
|
|
103
|
-
updateCallback = null;
|
|
104
|
-
};
|
|
105
|
-
}, []);
|
|
102
|
+
var MessageContainer = ({
|
|
103
|
+
position = "top",
|
|
104
|
+
messages = messageInstances.filter((message) => message.position === position)
|
|
105
|
+
}) => {
|
|
106
106
|
const containerClasses = _tigercatcore.classNames.call(void 0, _tigercatcore.messageContainerBaseClasses, _tigercatcore.messagePositionClasses[position]);
|
|
107
|
+
const containerId = position === "top" ? MESSAGE_CONTAINER_ID : `${MESSAGE_CONTAINER_ID}-${position}`;
|
|
107
108
|
const handleRemove = _react.useCallback.call(void 0, (id) => {
|
|
108
109
|
removeMessage(id);
|
|
109
110
|
}, []);
|
|
@@ -111,14 +112,31 @@ var MessageContainer = ({ position = "top" }) => {
|
|
|
111
112
|
"div",
|
|
112
113
|
{
|
|
113
114
|
className: containerClasses,
|
|
114
|
-
id:
|
|
115
|
+
id: containerId,
|
|
115
116
|
"aria-live": "polite",
|
|
116
117
|
"aria-relevant": "additions",
|
|
118
|
+
"data-tiger-message-position": position,
|
|
117
119
|
"data-tiger-message-container": true,
|
|
118
120
|
children: messages.map((message) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, MessageItem, { message, onClose: handleRemove }, message.id))
|
|
119
121
|
}
|
|
120
122
|
);
|
|
121
123
|
};
|
|
124
|
+
var MessageHost = () => {
|
|
125
|
+
const [messages, setMessages] = _react.useState.call(void 0, () => [...messageInstances]);
|
|
126
|
+
_react.useEffect.call(void 0, () => {
|
|
127
|
+
updateCallback = () => {
|
|
128
|
+
setMessages([...messageInstances]);
|
|
129
|
+
};
|
|
130
|
+
return () => {
|
|
131
|
+
updateCallback = null;
|
|
132
|
+
};
|
|
133
|
+
}, []);
|
|
134
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _jsxruntime.Fragment, { children: MESSAGE_POSITIONS.map((position) => {
|
|
135
|
+
const positionedMessages = messages.filter((message) => message.position === position);
|
|
136
|
+
if (positionedMessages.length === 0) return null;
|
|
137
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, MessageContainer, { position, messages: positionedMessages }, position);
|
|
138
|
+
}) });
|
|
139
|
+
};
|
|
122
140
|
function ensureContainer() {
|
|
123
141
|
if (!_tigercatcore.isBrowser.call(void 0, )) {
|
|
124
142
|
return;
|
|
@@ -140,7 +158,7 @@ function ensureContainer() {
|
|
|
140
158
|
}
|
|
141
159
|
containerRoot = _client.createRoot.call(void 0, rootEl);
|
|
142
160
|
_reactdom.flushSync.call(void 0, () => {
|
|
143
|
-
_optionalChain([containerRoot, 'optionalAccess', _ => _.render, 'call', _2 => _2(/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
161
|
+
_optionalChain([containerRoot, 'optionalAccess', _ => _.render, 'call', _2 => _2(/* @__PURE__ */ _jsxruntime.jsx.call(void 0, MessageHost, {}))]);
|
|
144
162
|
});
|
|
145
163
|
}
|
|
146
164
|
function addMessage(config) {
|
|
@@ -153,7 +171,8 @@ function addMessage(config) {
|
|
|
153
171
|
closable: config.closable || false,
|
|
154
172
|
onClose: config.onClose,
|
|
155
173
|
icon: config.icon,
|
|
156
|
-
className: config.className
|
|
174
|
+
className: config.className,
|
|
175
|
+
position: _nullishCoalesce(config.position, () => ( "top"))
|
|
157
176
|
};
|
|
158
177
|
messageInstances.push(instance);
|
|
159
178
|
const rootId = `${MESSAGE_CONTAINER_ID}-root`;
|