@expcat/tigercat-react 0.3.0 → 0.3.70
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-IAF24RKI.mjs → chunk-24U2DQRP.mjs} +1 -1
- package/dist/{chunk-IL2Y5RCX.mjs → chunk-2DW3WFZI.mjs} +95 -45
- package/dist/chunk-2EOXY2LP.mjs +353 -0
- package/dist/{chunk-6MGEGOYJ.js → chunk-2GKTVAAB.js} +24 -18
- package/dist/{chunk-HGTF6A46.mjs → chunk-3577FW3I.mjs} +58 -92
- package/dist/{chunk-GY6D4XS3.js → chunk-3GW3UAKB.js} +40 -98
- package/dist/{chunk-VD3IK5XT.mjs → chunk-3M2IG6IN.mjs} +2 -3
- package/dist/{chunk-T3GSXTDU.js → chunk-3NE6VZRY.js} +2 -3
- package/dist/chunk-3PV2MDST.mjs +95 -0
- package/dist/{chunk-36RRHNZD.js → chunk-3T7L3MHX.js} +33 -15
- package/dist/{chunk-IY4LEJYF.js → chunk-4PPTEEDI.js} +29 -30
- package/dist/{chunk-Z4Z3I74Q.mjs → chunk-4Y7YH32A.mjs} +37 -46
- package/dist/chunk-56KTCMRE.mjs +77 -0
- package/dist/chunk-5CLXOFRZ.mjs +248 -0
- package/dist/chunk-5P5M656V.mjs +75 -0
- package/dist/{chunk-Z6G4HABF.js → chunk-67FVBKBC.js} +58 -95
- package/dist/{chunk-KAEHFMTQ.mjs → chunk-6IH5QPTR.mjs} +121 -144
- package/dist/{chunk-C52ZCGYG.mjs → chunk-6PXNWGR5.mjs} +49 -65
- package/dist/chunk-6W6CRBBG.mjs +169 -0
- package/dist/{chunk-MQTHGPHF.js → chunk-72MWKUBC.js} +49 -42
- package/dist/{chunk-PT4WLSTJ.mjs → chunk-763M6U5U.mjs} +105 -65
- package/dist/{chunk-RTQNWZN4.mjs → chunk-77PE7OFK.mjs} +3 -5
- package/dist/{chunk-KPZTGRNA.js → chunk-7Z64GEMN.js} +51 -55
- package/dist/{chunk-3WPKVV4N.js → chunk-A3PYG3D6.js} +6 -39
- package/dist/chunk-AQ72JVUG.js +41 -0
- package/dist/{chunk-P4EFJIXU.mjs → chunk-AUP3PMDD.mjs} +18 -41
- package/dist/{chunk-PUDU34R4.mjs → chunk-AVUXDQYO.mjs} +26 -20
- package/dist/{chunk-HUZVBDHV.js → chunk-AY5Z3NIW.js} +15 -20
- package/dist/{chunk-67EK62HG.mjs → chunk-B3LRUKXM.mjs} +1 -1
- package/dist/{chunk-JAVDNFJD.js → chunk-C7UKFKVY.js} +26 -33
- package/dist/{chunk-TZ26HQAW.js → chunk-CI2WHAT2.js} +18 -38
- package/dist/{chunk-WYTHTJN3.mjs → chunk-CYZLGYY4.mjs} +112 -59
- package/dist/{chunk-NSGDRTSQ.mjs → chunk-D5KYIQWB.mjs} +6 -39
- package/dist/chunk-DQNA57CA.js +57 -0
- package/dist/{chunk-6575DOCV.mjs → chunk-DTQZPZSJ.mjs} +3 -3
- package/dist/{chunk-7P6PHSFM.js → chunk-DXXYPVJJ.js} +32 -35
- package/dist/{chunk-UFAXJVMD.js → chunk-EFLIFXZH.js} +3 -3
- package/dist/chunk-EHYSER2Z.js +144 -0
- package/dist/{chunk-JI7SFMUT.mjs → chunk-EIMAQHCQ.mjs} +29 -80
- package/dist/chunk-ENSLMM3L.mjs +68 -0
- package/dist/chunk-F24IF2QL.js +74 -0
- package/dist/{chunk-ZUUG3WOL.js → chunk-F4Q5QMX2.js} +171 -94
- package/dist/{chunk-V2HVHLBY.mjs → chunk-FE7PEZTI.mjs} +19 -39
- package/dist/chunk-FLYJVZED.mjs +30 -0
- package/dist/chunk-FMF2G6BJ.js +179 -0
- package/dist/{chunk-YIF5VX7K.mjs → chunk-FNDPGSEW.mjs} +14 -13
- package/dist/{chunk-HQLZL3XQ.mjs → chunk-FPNT7FV5.mjs} +3 -7
- package/dist/{chunk-YE2M2HNM.js → chunk-FSDZJD7M.js} +36 -45
- package/dist/{chunk-WKGCUR7O.mjs → chunk-FTY2W4L2.mjs} +7 -7
- package/dist/{chunk-4PTI6ZUK.js → chunk-GASFXURT.js} +93 -43
- package/dist/chunk-GB5G2CJY.js +96 -0
- package/dist/{chunk-LXA2YBAO.js → chunk-GJEWBALW.js} +2 -2
- package/dist/chunk-GNMOOYHG.js +250 -0
- package/dist/{chunk-GXTBCX3M.js → chunk-H5MZ54PM.js} +16 -39
- package/dist/{chunk-4TWHENPT.js → chunk-HB2UYJBY.js} +32 -17
- package/dist/{chunk-5HUYCSA4.mjs → chunk-HPXLUJFJ.mjs} +22 -19
- package/dist/chunk-HQ3QOT7H.js +33 -0
- package/dist/chunk-I5TCE5E7.js +32 -0
- package/dist/{chunk-QFVE7GKD.js → chunk-IBYIPXIO.js} +5 -26
- package/dist/{chunk-3XXXM4OB.mjs → chunk-IGE44BIS.mjs} +67 -23
- package/dist/{chunk-XRFK2IXM.js → chunk-IHH2O7YK.js} +6 -7
- package/dist/{chunk-4IO2M3ZJ.js → chunk-IOM7DWWQ.js} +17 -17
- package/dist/chunk-IP3MAJSH.mjs +55 -0
- package/dist/{chunk-OVWCTDAL.js → chunk-IRH2ZVD3.js} +37 -49
- package/dist/chunk-IVGKPD2L.mjs +39 -0
- package/dist/{chunk-CJJ56NVL.mjs → chunk-IXJMMM26.mjs} +16 -60
- package/dist/{chunk-MF3H7WWW.mjs → chunk-JNLX47UL.mjs} +33 -15
- package/dist/{chunk-L63N3LCG.js → chunk-JQNKI2ZZ.js} +79 -31
- package/dist/{chunk-X4F6NSI5.mjs → chunk-JUWFVIDP.mjs} +2 -2
- package/dist/{chunk-LADCWARG.mjs → chunk-JVTAKNRO.mjs} +17 -15
- package/dist/{chunk-2Y327ZU4.js → chunk-KAWE5LQZ.js} +80 -83
- package/dist/{chunk-TR246HQP.mjs → chunk-KMTERPME.mjs} +14 -18
- package/dist/chunk-LIV33O73.mjs +26 -0
- package/dist/{chunk-PVOQUXIB.mjs → chunk-LL6B4BHF.mjs} +4 -4
- package/dist/chunk-LXQOQJMU.js +79 -0
- package/dist/{chunk-HT2BXCEM.js → chunk-M46L73HR.js} +19 -19
- package/dist/{chunk-NMDNLB3C.mjs → chunk-MDZDPGRK.mjs} +30 -27
- package/dist/chunk-MWH6FCSE.js +97 -0
- package/dist/{chunk-YER7IQF4.mjs → chunk-N4EMXCRQ.mjs} +172 -95
- package/dist/{chunk-SIB4EHB6.js → chunk-NEP3CS6S.js} +111 -58
- package/dist/{chunk-FAZQT7YP.mjs → chunk-NJCKTIWB.mjs} +6 -6
- package/dist/{chunk-IIVRVCCP.mjs → chunk-NKKIJQMV.mjs} +53 -57
- package/dist/{chunk-MQXBU5YX.mjs → chunk-NQFHS4W2.mjs} +29 -21
- package/dist/chunk-NTODO3Q3.mjs +94 -0
- package/dist/chunk-NV3JUZ3N.js +57 -0
- package/dist/{chunk-NDOYQK2R.mjs → chunk-NZLOLMT2.mjs} +41 -99
- package/dist/chunk-O3W3OZ6V.js +37 -0
- package/dist/{chunk-IFY46RWU.js → chunk-OESNOOOT.js} +1 -2
- package/dist/{chunk-IWENGARY.mjs → chunk-OFBK35TK.mjs} +1 -1
- package/dist/{chunk-R7TOQU3U.js → chunk-OIUIR5ZR.js} +15 -59
- package/dist/{chunk-QEAC4MIG.mjs → chunk-OUAZM7NY.mjs} +12 -59
- package/dist/{chunk-R67R3TVA.mjs → chunk-OXT5RN55.mjs} +5 -5
- package/dist/{chunk-CIL2AC3F.js → chunk-OYCMGKQ7.js} +15 -23
- package/dist/{chunk-IQINYCU6.js → chunk-PR3PQUKM.js} +17 -15
- package/dist/chunk-PTEDJ6MA.js +29 -0
- package/dist/{chunk-D3I2SY7X.js → chunk-PWZB45Z7.js} +13 -60
- package/dist/{chunk-GZPMLPRW.js → chunk-PXPUPQRO.js} +2 -2
- package/dist/{chunk-OZLGNWET.js → chunk-Q57BYUUW.js} +12 -28
- package/dist/chunk-QAO5KANE.mjs +36 -0
- package/dist/chunk-QFYS5QIZ.mjs +142 -0
- package/dist/{chunk-AITVDDCE.mjs → chunk-QGCQAJGL.mjs} +81 -33
- package/dist/chunk-QIJG42YQ.mjs +54 -0
- package/dist/{chunk-JOHKSMJM.mjs → chunk-QLHFXYWA.mjs} +59 -96
- package/dist/{chunk-C5EFBJBR.js → chunk-QM4GOQDT.js} +119 -142
- package/dist/{chunk-PBJ2J2B3.js → chunk-QNRAM3CM.js} +2 -2
- package/dist/{chunk-Z5DDULTA.js → chunk-RARHRSPQ.js} +2 -2
- package/dist/{chunk-5QKMQRCW.js → chunk-RDIEZKV2.js} +28 -20
- package/dist/{chunk-OZLAGTZW.mjs → chunk-RGFSY3S2.mjs} +50 -43
- package/dist/{chunk-IYFSM2GA.mjs → chunk-RGZYYVQF.mjs} +26 -33
- package/dist/{chunk-3GD3LOII.mjs → chunk-RITTIFCJ.mjs} +1 -2
- package/dist/{chunk-Y2JOJ4D6.js → chunk-RKB2VUQO.js} +8 -10
- package/dist/{chunk-7SLNHUGJ.js → chunk-RNEL4XIO.js} +28 -79
- package/dist/{chunk-6ZTCBQJ7.mjs → chunk-RPTLVIBF.mjs} +17 -25
- package/dist/{chunk-5ZVSFIZD.js → chunk-RYWGELJ7.js} +2 -6
- package/dist/chunk-S4GNTA7V.mjs +176 -0
- package/dist/{chunk-VSF4DF7N.js → chunk-SAZ6V6DX.js} +21 -18
- package/dist/{chunk-Q3DPJHNM.js → chunk-SFALTVPS.js} +3 -5
- package/dist/{chunk-LZNG2HGC.mjs → chunk-SH6O6LDJ.mjs} +72 -30
- package/dist/{chunk-6E5UKM6O.js → chunk-SM7RDJFB.js} +104 -64
- package/dist/{chunk-DGBYGBLR.js → chunk-SOC74QA2.js} +32 -52
- package/dist/{chunk-KOLLAGRK.mjs → chunk-SQ7OL2X5.mjs} +2 -3
- package/dist/{chunk-VO4WDK4K.js → chunk-SSQOCZ6O.js} +1 -2
- package/dist/{chunk-KV4LLPAY.mjs → chunk-SW4I4X6E.mjs} +8 -10
- package/dist/{chunk-GQMYCYZ4.js → chunk-TDRINUMH.js} +31 -28
- package/dist/{chunk-DIZNY6N4.mjs → chunk-TGKNEMD4.mjs} +8 -8
- package/dist/{chunk-BAPR7UUR.mjs → chunk-TGPQ4KET.mjs} +13 -29
- package/dist/{chunk-3XKBDV2Q.mjs → chunk-TUA5PDRX.mjs} +7 -8
- package/dist/chunk-U3JOBIDU.js +355 -0
- package/dist/{chunk-CES6LGQ7.mjs → chunk-UE234MW4.mjs} +34 -37
- package/dist/{chunk-U4ZVEPYD.js → chunk-URM7QDHH.js} +14 -18
- package/dist/chunk-UZ7SBFQV.mjs +35 -0
- package/dist/{chunk-HGF2EL25.mjs → chunk-V5NIFF2F.mjs} +34 -54
- package/dist/{chunk-672SCJWZ.mjs → chunk-VCNZEQEB.mjs} +10 -10
- package/dist/{chunk-R7MS42PL.js → chunk-VCOBBJLP.js} +9 -9
- package/dist/{chunk-2TS6X5RA.js → chunk-VCULFIZ5.js} +7 -7
- package/dist/{chunk-N32MAX4A.js → chunk-W4TFISRK.js} +70 -28
- package/dist/{chunk-4MMT4EJJ.mjs → chunk-WAIXKROS.mjs} +17 -22
- package/dist/{chunk-YGOTPK2W.mjs → chunk-WGRYO5HX.mjs} +34 -19
- package/dist/{chunk-ZPWDDAFE.js → chunk-XID6T65A.js} +14 -13
- package/dist/chunk-XJ7U2W7S.mjs +27 -0
- package/dist/{chunk-ZN2BZCTI.js → chunk-XKDWDANG.js} +8 -8
- package/dist/{chunk-EI2GHMQS.js → chunk-XLVEI7GS.js} +15 -13
- package/dist/{chunk-6YKZAWNX.js → chunk-XWNVBCJA.js} +14 -14
- package/dist/{chunk-JW64IJP2.js → chunk-XWRJVNB6.js} +67 -23
- package/dist/{chunk-HDDBBZQH.js → chunk-YV6Y7C43.js} +48 -64
- package/dist/chunk-Z7SXK2KO.js +171 -0
- package/dist/{chunk-XS5JP2KO.mjs → chunk-ZFHTSHXS.mjs} +82 -85
- package/dist/{chunk-73DMQ2SR.mjs → chunk-ZGQOYCQT.mjs} +32 -44
- package/dist/{chunk-WDAMDVLU.mjs → chunk-ZIUOENTL.mjs} +6 -27
- package/dist/{chunk-GJKT2B56.js → chunk-ZTVATZB6.js} +58 -92
- package/dist/components/ActivityFeed.js +10 -10
- package/dist/components/ActivityFeed.mjs +8 -8
- package/dist/components/Alert.js +3 -2
- package/dist/components/Alert.mjs +2 -1
- package/dist/components/Anchor.js +4 -4
- package/dist/components/Anchor.mjs +1 -1
- package/dist/components/AnchorLink.js +4 -4
- package/dist/components/AnchorLink.mjs +2 -2
- package/dist/components/AreaChart.d.mts +3 -0
- package/dist/components/AreaChart.d.ts +3 -0
- package/dist/components/AreaChart.js +3 -3
- package/dist/components/AreaChart.mjs +1 -1
- package/dist/components/Avatar.d.mts +1 -1
- package/dist/components/Avatar.d.ts +1 -1
- package/dist/components/Avatar.js +2 -2
- package/dist/components/Avatar.mjs +1 -1
- package/dist/components/BackTop.js +3 -3
- package/dist/components/BackTop.mjs +1 -1
- package/dist/components/Badge.d.mts +0 -3
- package/dist/components/Badge.d.ts +0 -3
- package/dist/components/Badge.js +2 -2
- package/dist/components/Badge.mjs +1 -1
- package/dist/components/BarChart.js +3 -3
- package/dist/components/BarChart.mjs +1 -1
- package/dist/components/Breadcrumb.d.mts +0 -1
- package/dist/components/Breadcrumb.d.ts +0 -1
- package/dist/components/BreadcrumbItem.js +2 -2
- package/dist/components/BreadcrumbItem.mjs +1 -1
- package/dist/components/Button.js +2 -2
- package/dist/components/Button.mjs +1 -1
- package/dist/components/Card.js +2 -2
- package/dist/components/Card.mjs +1 -1
- package/dist/components/Carousel.js +2 -2
- package/dist/components/Carousel.mjs +1 -1
- package/dist/components/ChatWindow.js +7 -7
- package/dist/components/ChatWindow.mjs +5 -5
- package/dist/components/Checkbox.js +2 -2
- package/dist/components/Checkbox.mjs +1 -1
- package/dist/components/Col.js +3 -3
- package/dist/components/Col.mjs +2 -2
- package/dist/components/CollapsePanel.js +3 -3
- package/dist/components/CollapsePanel.mjs +1 -1
- package/dist/components/CommentThread.js +8 -8
- package/dist/components/CommentThread.mjs +6 -6
- package/dist/components/CropUpload.d.mts +52 -0
- package/dist/components/CropUpload.d.ts +52 -0
- package/dist/components/CropUpload.js +14 -0
- package/dist/components/CropUpload.mjs +5 -0
- package/dist/components/DataTableWithToolbar.js +8 -11
- package/dist/components/DataTableWithToolbar.mjs +6 -9
- package/dist/components/DatePicker.js +2 -2
- package/dist/components/DatePicker.mjs +1 -1
- package/dist/components/Descriptions.js +3 -3
- package/dist/components/Descriptions.mjs +1 -1
- package/dist/components/Divider.d.mts +1 -3
- package/dist/components/Divider.d.ts +1 -3
- package/dist/components/Divider.js +2 -2
- package/dist/components/Divider.mjs +1 -1
- package/dist/components/DonutChart.d.mts +6 -0
- package/dist/components/DonutChart.d.ts +6 -0
- package/dist/components/DonutChart.js +4 -4
- package/dist/components/DonutChart.mjs +2 -2
- package/dist/components/Drawer.js +2 -2
- package/dist/components/Drawer.mjs +1 -1
- package/dist/components/Dropdown.d.mts +1 -15
- package/dist/components/Dropdown.d.ts +1 -15
- package/dist/components/Dropdown.js +3 -3
- package/dist/components/Dropdown.mjs +1 -1
- package/dist/components/DropdownItem.js +3 -3
- package/dist/components/DropdownItem.mjs +2 -2
- package/dist/components/Form.d.mts +1 -0
- package/dist/components/Form.d.ts +1 -0
- package/dist/components/Form.js +3 -3
- package/dist/components/Form.mjs +1 -1
- package/dist/components/FormItem.js +3 -3
- package/dist/components/FormItem.mjs +2 -2
- package/dist/components/FormWizard.js +6 -6
- package/dist/components/FormWizard.mjs +4 -4
- package/dist/components/Icon.js +2 -2
- package/dist/components/Icon.mjs +1 -1
- package/dist/components/Image.d.mts +20 -0
- package/dist/components/Image.d.ts +20 -0
- package/dist/components/Image.js +13 -0
- package/dist/components/Image.mjs +4 -0
- package/dist/components/ImageCropper.d.mts +21 -0
- package/dist/components/ImageCropper.d.ts +21 -0
- package/dist/components/ImageCropper.js +10 -0
- package/dist/components/ImageCropper.mjs +1 -0
- package/dist/components/ImageGroup.d.mts +30 -0
- package/dist/components/ImageGroup.d.ts +30 -0
- package/dist/components/ImageGroup.js +16 -0
- package/dist/components/ImageGroup.mjs +3 -0
- package/dist/components/ImagePreview.d.mts +20 -0
- package/dist/components/ImagePreview.d.ts +20 -0
- package/dist/components/ImagePreview.js +11 -0
- package/dist/components/ImagePreview.mjs +2 -0
- package/dist/components/Input.d.mts +4 -7
- package/dist/components/Input.d.ts +4 -7
- package/dist/components/Input.js +2 -2
- package/dist/components/Input.mjs +1 -1
- package/dist/components/LineChart.js +3 -3
- package/dist/components/LineChart.mjs +1 -1
- package/dist/components/Link.js +2 -2
- package/dist/components/Link.mjs +1 -1
- package/dist/components/List.js +2 -4
- package/dist/components/List.mjs +1 -3
- package/dist/components/Loading.js +2 -2
- package/dist/components/Loading.mjs +1 -1
- package/dist/components/Menu.js +3 -3
- package/dist/components/Menu.mjs +1 -1
- package/dist/components/MenuItem.js +3 -3
- package/dist/components/MenuItem.mjs +2 -2
- package/dist/components/MenuItemGroup.js +4 -4
- package/dist/components/MenuItemGroup.mjs +3 -3
- package/dist/components/Message.d.mts +0 -18
- package/dist/components/Message.d.ts +0 -18
- package/dist/components/Message.js +5 -4
- package/dist/components/Message.mjs +2 -1
- package/dist/components/Modal.d.mts +15 -0
- package/dist/components/Modal.d.ts +15 -0
- package/dist/components/Modal.js +3 -2
- package/dist/components/Modal.mjs +2 -1
- package/dist/components/Notification.d.mts +0 -15
- package/dist/components/Notification.d.ts +0 -15
- package/dist/components/Notification.js +5 -4
- package/dist/components/Notification.mjs +2 -1
- package/dist/components/NotificationCenter.js +9 -10
- package/dist/components/NotificationCenter.mjs +7 -8
- package/dist/components/Pagination.js +3 -3
- package/dist/components/Pagination.mjs +1 -1
- package/dist/components/PieChart.js +3 -3
- package/dist/components/PieChart.mjs +1 -1
- package/dist/components/Popconfirm.d.mts +0 -26
- package/dist/components/Popconfirm.d.ts +0 -26
- package/dist/components/Popconfirm.js +3 -2
- package/dist/components/Popconfirm.mjs +2 -1
- package/dist/components/Popover.d.mts +0 -8
- package/dist/components/Popover.d.ts +0 -8
- package/dist/components/Popover.js +3 -2
- package/dist/components/Popover.mjs +2 -1
- package/dist/components/Progress.js +2 -2
- package/dist/components/Progress.mjs +1 -1
- package/dist/components/RadarChart.d.mts +8 -0
- package/dist/components/RadarChart.d.ts +8 -0
- package/dist/components/RadarChart.js +4 -3
- package/dist/components/RadarChart.mjs +2 -1
- package/dist/components/Radio.js +3 -3
- package/dist/components/Radio.mjs +2 -2
- package/dist/components/RadioGroup.js +3 -3
- package/dist/components/RadioGroup.mjs +1 -1
- package/dist/components/Row.js +3 -3
- package/dist/components/Row.mjs +1 -1
- package/dist/components/ScatterChart.js +3 -3
- package/dist/components/ScatterChart.mjs +1 -1
- package/dist/components/Select.js +2 -2
- package/dist/components/Select.mjs +1 -1
- package/dist/components/Sidebar.js +2 -2
- package/dist/components/Sidebar.mjs +1 -1
- package/dist/components/Skeleton.js +2 -2
- package/dist/components/Skeleton.mjs +1 -1
- package/dist/components/Slider.js +2 -2
- package/dist/components/Slider.mjs +1 -1
- package/dist/components/Space.js +2 -2
- package/dist/components/Space.mjs +1 -1
- package/dist/components/Steps.js +3 -3
- 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.js +5 -5
- package/dist/components/SubMenu.mjs +4 -4
- package/dist/components/TabPane.d.mts +18 -3
- package/dist/components/TabPane.d.ts +18 -3
- package/dist/components/TabPane.js +2 -2
- package/dist/components/TabPane.mjs +1 -1
- package/dist/components/Table.js +2 -2
- package/dist/components/Table.mjs +1 -1
- package/dist/components/Tabs.d.mts +44 -2
- package/dist/components/Tabs.d.ts +44 -2
- package/dist/components/Tabs.js +3 -3
- package/dist/components/Tabs.mjs +1 -1
- package/dist/components/Tag.js +2 -2
- package/dist/components/Tag.mjs +1 -1
- package/dist/components/Text.js +2 -2
- package/dist/components/Text.mjs +1 -1
- package/dist/components/Textarea.js +2 -2
- package/dist/components/Textarea.mjs +1 -1
- package/dist/components/TimePicker.js +2 -2
- package/dist/components/TimePicker.mjs +1 -1
- package/dist/components/Timeline.js +2 -2
- package/dist/components/Timeline.mjs +1 -1
- package/dist/components/Tooltip.d.mts +1 -11
- package/dist/components/Tooltip.d.ts +1 -11
- package/dist/components/Tooltip.js +3 -2
- package/dist/components/Tooltip.mjs +2 -1
- package/dist/components/Tree.js +3 -3
- package/dist/components/Tree.mjs +1 -1
- package/dist/components/Upload.js +2 -2
- package/dist/components/Upload.mjs +1 -1
- package/dist/index.d.mts +5 -0
- package/dist/index.d.ts +5 -0
- package/dist/index.js +216 -185
- package/dist/index.mjs +76 -69
- package/package.json +2 -2
- package/dist/chunk-3OF7XPIQ.js +0 -90
- package/dist/chunk-427CM2U6.mjs +0 -76
- package/dist/chunk-6DYS4PJT.mjs +0 -99
- package/dist/chunk-6YDIBMCM.mjs +0 -33
- package/dist/chunk-A3DJSVTE.js +0 -68
- package/dist/chunk-AGUPZEUL.mjs +0 -35
- package/dist/chunk-CKUSQR2H.mjs +0 -41
- package/dist/chunk-CR4QK2AB.mjs +0 -88
- package/dist/chunk-EB6EDLJZ.mjs +0 -50
- package/dist/chunk-GW4EWT2K.mjs +0 -125
- package/dist/chunk-KELLYJZY.mjs +0 -148
- package/dist/chunk-KUCFT2OA.js +0 -43
- package/dist/chunk-QY6I7LU5.js +0 -127
- package/dist/chunk-STEIWBMF.mjs +0 -66
- package/dist/chunk-T4TJJMLM.mjs +0 -34
- package/dist/chunk-UG3I4PCY.js +0 -102
- package/dist/chunk-YESS6YKC.js +0 -37
- package/dist/chunk-YYGTJKP5.js +0 -39
- package/dist/chunk-ZPFZMXA6.js +0 -150
- package/dist/chunk-ZREFCRX3.js +0 -52
- package/dist/{chunk-MKWXJZ3T.js → chunk-QYYAXM5F.js} +1 -1
- package/dist/{chunk-WSJO2PIE.mjs → chunk-XZVQ3PJS.mjs} +1 -1
|
@@ -28,6 +28,7 @@ var Anchor = ({
|
|
|
28
28
|
const inkRef = useRef(null);
|
|
29
29
|
const isScrollingRef = useRef(false);
|
|
30
30
|
const animationFrameRef = useRef(null);
|
|
31
|
+
const scrollTimeoutRef = useRef(null);
|
|
31
32
|
const getContainerRef = useRef(getContainer);
|
|
32
33
|
getContainerRef.current = getContainer;
|
|
33
34
|
const scrollOffset = useMemo(() => targetOffset ?? offsetTop, [targetOffset, offsetTop]);
|
|
@@ -55,19 +56,20 @@ var Anchor = ({
|
|
|
55
56
|
isScrollingRef.current = true;
|
|
56
57
|
setActiveLink(href);
|
|
57
58
|
scrollTo(href);
|
|
58
|
-
|
|
59
|
+
if (scrollTimeoutRef.current !== null) clearTimeout(scrollTimeoutRef.current);
|
|
60
|
+
scrollTimeoutRef.current = setTimeout(() => {
|
|
59
61
|
isScrollingRef.current = false;
|
|
62
|
+
scrollTimeoutRef.current = null;
|
|
60
63
|
}, 500);
|
|
61
64
|
},
|
|
62
65
|
[onClick, scrollTo]
|
|
63
66
|
);
|
|
64
|
-
const scrollHandlerRef = useRef(null);
|
|
65
|
-
const boundContainerRef = useRef(null);
|
|
66
67
|
useEffect(() => {
|
|
68
|
+
let container = null;
|
|
69
|
+
let handleScroll = null;
|
|
67
70
|
const timeoutId = setTimeout(() => {
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
const handleScroll = () => {
|
|
71
|
+
container = getContainerRef.current();
|
|
72
|
+
handleScroll = () => {
|
|
71
73
|
if (isScrollingRef.current) return;
|
|
72
74
|
if (animationFrameRef.current !== null) {
|
|
73
75
|
cancelAnimationFrame(animationFrameRef.current);
|
|
@@ -85,18 +87,20 @@ var Anchor = ({
|
|
|
85
87
|
});
|
|
86
88
|
});
|
|
87
89
|
};
|
|
88
|
-
scrollHandlerRef.current = handleScroll;
|
|
89
90
|
container.addEventListener("scroll", handleScroll, { passive: true });
|
|
90
91
|
handleScroll();
|
|
91
92
|
}, 0);
|
|
92
93
|
return () => {
|
|
93
94
|
clearTimeout(timeoutId);
|
|
94
|
-
if (
|
|
95
|
-
|
|
95
|
+
if (container && handleScroll) {
|
|
96
|
+
container.removeEventListener("scroll", handleScroll);
|
|
96
97
|
}
|
|
97
98
|
if (animationFrameRef.current !== null) {
|
|
98
99
|
cancelAnimationFrame(animationFrameRef.current);
|
|
99
100
|
}
|
|
101
|
+
if (scrollTimeoutRef.current !== null) {
|
|
102
|
+
clearTimeout(scrollTimeoutRef.current);
|
|
103
|
+
}
|
|
100
104
|
};
|
|
101
105
|
}, [links, bounds, scrollOffset, getCurrentAnchor, onChange]);
|
|
102
106
|
useEffect(() => {
|
|
@@ -126,10 +130,7 @@ var Anchor = ({
|
|
|
126
130
|
const inkContainerClasses = useMemo(() => getAnchorInkContainerClasses(direction), [direction]);
|
|
127
131
|
const inkActiveClasses = useMemo(() => getAnchorInkActiveClasses(direction), [direction]);
|
|
128
132
|
const linkListClasses = useMemo(() => getAnchorLinkListClasses(direction), [direction]);
|
|
129
|
-
const showInk = useMemo(() =>
|
|
130
|
-
if (!affix) return true;
|
|
131
|
-
return showInkInFixed;
|
|
132
|
-
}, [affix, showInkInFixed]);
|
|
133
|
+
const showInk = useMemo(() => !affix || showInkInFixed, [affix, showInkInFixed]);
|
|
133
134
|
const wrapperStyle = useMemo(() => {
|
|
134
135
|
const baseStyle = {};
|
|
135
136
|
if (affix && offsetTop > 0) {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { shouldHideBadge, formatBadgeContent,
|
|
1
|
+
import { shouldHideBadge, formatBadgeContent, classNames, badgeBaseClasses, getBadgeVariantClasses, dotSizeClasses, badgeSizeClasses, badgeTypeClasses, badgePositionClasses, badgeWrapperClasses } from '@expcat/tigercat-core';
|
|
2
2
|
import { jsx, Fragment, jsxs } from 'react/jsx-runtime';
|
|
3
3
|
|
|
4
4
|
// src/components/Badge.tsx
|
|
@@ -19,21 +19,17 @@ var Badge = ({
|
|
|
19
19
|
const isDot = type === "dot";
|
|
20
20
|
const isHidden = shouldHideBadge(content, type, showZero);
|
|
21
21
|
const displayContent = formatBadgeContent(content, max, showZero);
|
|
22
|
-
const sizeClass = isDot ? dotSizeClasses[size] : badgeSizeClasses[size];
|
|
23
22
|
const badgeClasses = classNames(
|
|
24
23
|
badgeBaseClasses,
|
|
25
24
|
getBadgeVariantClasses(variant),
|
|
26
|
-
|
|
25
|
+
isDot ? dotSizeClasses[size] : badgeSizeClasses[size],
|
|
27
26
|
badgeTypeClasses[type],
|
|
28
27
|
!standalone && badgePositionClasses[position],
|
|
29
28
|
className
|
|
30
29
|
);
|
|
31
30
|
const computedAriaLabel = ariaLabelProp ?? (isDot ? "notification" : type === "number" ? `${displayContent} notifications` : `${displayContent ?? ""}`);
|
|
32
31
|
if (isHidden) {
|
|
33
|
-
|
|
34
|
-
return null;
|
|
35
|
-
}
|
|
36
|
-
return /* @__PURE__ */ jsx(Fragment, { children });
|
|
32
|
+
return standalone ? null : /* @__PURE__ */ jsx(Fragment, { children });
|
|
37
33
|
}
|
|
38
34
|
const badgeElement = /* @__PURE__ */ jsx("span", { ...props, className: badgeClasses, role: "status", "aria-label": computedAriaLabel, children: !isDot && displayContent });
|
|
39
35
|
if (standalone) {
|
|
@@ -30,69 +30,66 @@ var Progress = ({
|
|
|
30
30
|
const shouldShowText = showText ?? type === "line";
|
|
31
31
|
const displayText = shouldShowText ? tigercatCore.formatProgressText(clampedPercentage, text, format) : "";
|
|
32
32
|
const resolvedAriaLabel = ariaLabel ?? (ariaLabelledby ? void 0 : `Progress: ${clampedPercentage}%`);
|
|
33
|
-
const
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
striped && stripedAnimation && tigercatCore.progressStripedAnimationClasses
|
|
43
|
-
);
|
|
44
|
-
const textClasses = tigercatCore.classNames(
|
|
45
|
-
tigercatCore.progressTextBaseClasses,
|
|
46
|
-
tigercatCore.progressTextSizeClasses[size],
|
|
47
|
-
tigercatCore.getProgressTextColorClasses(effectiveVariant)
|
|
48
|
-
);
|
|
33
|
+
const ariaAttrs = {
|
|
34
|
+
role: "progressbar",
|
|
35
|
+
"aria-label": resolvedAriaLabel,
|
|
36
|
+
"aria-labelledby": ariaLabelledby,
|
|
37
|
+
"aria-describedby": ariaDescribedby,
|
|
38
|
+
"aria-valuenow": clampedPercentage,
|
|
39
|
+
"aria-valuemin": 0,
|
|
40
|
+
"aria-valuemax": 100
|
|
41
|
+
};
|
|
49
42
|
const renderLineProgress = () => {
|
|
50
43
|
const containerStyle = width !== "auto" ? { width: typeof width === "number" ? `${width}px` : width } : {};
|
|
51
|
-
const mergedStyle = {
|
|
52
|
-
...style ?? {},
|
|
53
|
-
...containerStyle
|
|
54
|
-
};
|
|
55
44
|
return /* @__PURE__ */ jsxRuntime.jsxs(
|
|
56
45
|
"div",
|
|
57
46
|
{
|
|
58
47
|
...props,
|
|
59
48
|
className: tigercatCore.classNames("flex items-center w-full", className),
|
|
60
|
-
style:
|
|
49
|
+
style: { ...style ?? {}, ...containerStyle },
|
|
61
50
|
children: [
|
|
62
51
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
63
52
|
"div",
|
|
64
53
|
{
|
|
65
|
-
className:
|
|
54
|
+
className: tigercatCore.classNames(
|
|
55
|
+
tigercatCore.progressLineBaseClasses,
|
|
56
|
+
tigercatCore.progressTrackBgClasses,
|
|
57
|
+
!height && tigercatCore.progressLineSizeClasses[size]
|
|
58
|
+
),
|
|
66
59
|
style: { flex: 1, ...height ? { height: `${height}px` } : {} },
|
|
67
60
|
children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
68
61
|
"div",
|
|
69
62
|
{
|
|
70
|
-
className:
|
|
63
|
+
className: tigercatCore.classNames(
|
|
64
|
+
tigercatCore.progressLineInnerClasses,
|
|
65
|
+
tigercatCore.getProgressVariantClasses(effectiveVariant),
|
|
66
|
+
striped && tigercatCore.progressStripedClasses,
|
|
67
|
+
striped && stripedAnimation && tigercatCore.progressStripedAnimationClasses
|
|
68
|
+
),
|
|
71
69
|
style: { width: `${clampedPercentage}%` },
|
|
72
|
-
|
|
73
|
-
"aria-label": resolvedAriaLabel,
|
|
74
|
-
"aria-labelledby": ariaLabelledby,
|
|
75
|
-
"aria-describedby": ariaDescribedby,
|
|
76
|
-
"aria-valuenow": clampedPercentage,
|
|
77
|
-
"aria-valuemin": 0,
|
|
78
|
-
"aria-valuemax": 100
|
|
70
|
+
...ariaAttrs
|
|
79
71
|
}
|
|
80
72
|
)
|
|
81
73
|
}
|
|
82
74
|
),
|
|
83
|
-
shouldShowText && /* @__PURE__ */ jsxRuntime.jsx(
|
|
75
|
+
shouldShowText && /* @__PURE__ */ jsxRuntime.jsx(
|
|
76
|
+
"span",
|
|
77
|
+
{
|
|
78
|
+
className: tigercatCore.classNames(
|
|
79
|
+
tigercatCore.progressTextBaseClasses,
|
|
80
|
+
tigercatCore.progressTextSizeClasses[size],
|
|
81
|
+
tigercatCore.getProgressTextColorClasses(effectiveVariant)
|
|
82
|
+
),
|
|
83
|
+
children: displayText
|
|
84
|
+
}
|
|
85
|
+
)
|
|
84
86
|
]
|
|
85
87
|
}
|
|
86
88
|
);
|
|
87
89
|
};
|
|
88
90
|
const renderCircleProgress = () => {
|
|
89
91
|
const { width: svgWidth, height: svgHeight, radius, cx, cy } = tigercatCore.getCircleSize(size, strokeWidth);
|
|
90
|
-
const { strokeDasharray, strokeDashoffset } = tigercatCore.calculateCirclePath(
|
|
91
|
-
radius,
|
|
92
|
-
strokeWidth,
|
|
93
|
-
clampedPercentage
|
|
94
|
-
);
|
|
95
|
-
const strokeColor = tigercatCore.getProgressVariantClasses(effectiveVariant).replace("bg-", "text-");
|
|
92
|
+
const { strokeDasharray, strokeDashoffset } = tigercatCore.calculateCirclePath(radius, clampedPercentage);
|
|
96
93
|
return /* @__PURE__ */ jsxRuntime.jsxs(
|
|
97
94
|
"div",
|
|
98
95
|
{
|
|
@@ -125,7 +122,7 @@ var Progress = ({
|
|
|
125
122
|
r: radius,
|
|
126
123
|
fill: "none",
|
|
127
124
|
stroke: "currentColor",
|
|
128
|
-
className:
|
|
125
|
+
className: tigercatCore.getProgressVariantClasses(effectiveVariant).replace("bg-", "text-"),
|
|
129
126
|
strokeWidth,
|
|
130
127
|
strokeLinecap: "round",
|
|
131
128
|
strokeDasharray,
|
|
@@ -135,13 +132,7 @@ var Progress = ({
|
|
|
135
132
|
transform: "rotate(-90deg)",
|
|
136
133
|
transformOrigin: "center"
|
|
137
134
|
},
|
|
138
|
-
|
|
139
|
-
"aria-label": resolvedAriaLabel,
|
|
140
|
-
"aria-labelledby": ariaLabelledby,
|
|
141
|
-
"aria-describedby": ariaDescribedby,
|
|
142
|
-
"aria-valuenow": clampedPercentage,
|
|
143
|
-
"aria-valuemin": 0,
|
|
144
|
-
"aria-valuemax": 100
|
|
135
|
+
...ariaAttrs
|
|
145
136
|
}
|
|
146
137
|
)
|
|
147
138
|
] }),
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { Timeline } from './chunk-
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import { Tag } from './chunk-
|
|
5
|
-
import { Text } from './chunk-
|
|
6
|
-
import { Card } from './chunk-
|
|
7
|
-
import { Avatar } from './chunk-
|
|
1
|
+
import { Timeline } from './chunk-JVTAKNRO.mjs';
|
|
2
|
+
import { Loading } from './chunk-AVUXDQYO.mjs';
|
|
3
|
+
import { Link } from './chunk-XZVQ3PJS.mjs';
|
|
4
|
+
import { Tag } from './chunk-TGKNEMD4.mjs';
|
|
5
|
+
import { Text } from './chunk-LIV33O73.mjs';
|
|
6
|
+
import { Card } from './chunk-3M2IG6IN.mjs';
|
|
7
|
+
import { Avatar } from './chunk-FE7PEZTI.mjs';
|
|
8
8
|
import { useMemo } from 'react';
|
|
9
9
|
import { buildActivityGroups, classNames, toActivityTimelineItems, formatActivityTime } from '@expcat/tigercat-core';
|
|
10
10
|
import { jsx, jsxs } from 'react/jsx-runtime';
|
|
@@ -18,9 +18,14 @@ var ScatterChart = ({
|
|
|
18
18
|
data,
|
|
19
19
|
xScale,
|
|
20
20
|
yScale,
|
|
21
|
-
pointSize =
|
|
21
|
+
pointSize = 6,
|
|
22
22
|
pointColor = "var(--tiger-primary,#2563eb)",
|
|
23
23
|
pointOpacity,
|
|
24
|
+
pointStyle = "circle",
|
|
25
|
+
gradient = false,
|
|
26
|
+
animated = false,
|
|
27
|
+
pointBorderWidth = 0,
|
|
28
|
+
pointBorderColor = "white",
|
|
24
29
|
showGrid = true,
|
|
25
30
|
showAxis = true,
|
|
26
31
|
showXAxis = true,
|
|
@@ -36,7 +41,7 @@ var ScatterChart = ({
|
|
|
36
41
|
yTickFormat,
|
|
37
42
|
gridLineStyle = "solid",
|
|
38
43
|
gridStrokeWidth = 1,
|
|
39
|
-
// Interaction
|
|
44
|
+
// Interaction
|
|
40
45
|
hoverable = false,
|
|
41
46
|
hoveredIndex: hoveredIndexProp,
|
|
42
47
|
onHoveredIndexChange,
|
|
@@ -47,13 +52,13 @@ var ScatterChart = ({
|
|
|
47
52
|
onSelectedIndexChange,
|
|
48
53
|
onPointClick,
|
|
49
54
|
onPointHover,
|
|
50
|
-
// Legend
|
|
55
|
+
// Legend
|
|
51
56
|
showLegend = false,
|
|
52
57
|
legendPosition = "bottom",
|
|
53
58
|
legendMarkerSize = 10,
|
|
54
59
|
legendGap = 8,
|
|
55
60
|
legendFormatter,
|
|
56
|
-
// Tooltip
|
|
61
|
+
// Tooltip
|
|
57
62
|
showTooltip = true,
|
|
58
63
|
tooltipFormatter,
|
|
59
64
|
// Other
|
|
@@ -62,6 +67,12 @@ var ScatterChart = ({
|
|
|
62
67
|
desc,
|
|
63
68
|
className
|
|
64
69
|
}) => {
|
|
70
|
+
const gradientPrefixRef = react.useRef(tigercatCore.getScatterGradientPrefix());
|
|
71
|
+
const gradientPrefix = gradientPrefixRef.current;
|
|
72
|
+
const [mounted, setMounted] = react.useState(false);
|
|
73
|
+
react.useEffect(() => {
|
|
74
|
+
if (animated) setMounted(true);
|
|
75
|
+
}, [animated]);
|
|
65
76
|
const {
|
|
66
77
|
tooltipPosition,
|
|
67
78
|
resolvedHoveredIndex,
|
|
@@ -89,9 +100,7 @@ var ScatterChart = ({
|
|
|
89
100
|
onPointHover?.(index, index !== null ? data[index] : null);
|
|
90
101
|
},
|
|
91
102
|
onSelectedIndexChange,
|
|
92
|
-
callbacks: {
|
|
93
|
-
onClick: onPointClick
|
|
94
|
-
}
|
|
103
|
+
callbacks: { onClick: onPointClick }
|
|
95
104
|
});
|
|
96
105
|
const innerRect = react.useMemo(
|
|
97
106
|
() => tigercatCore.getChartInnerRect(width, height, padding),
|
|
@@ -109,10 +118,7 @@ var ScatterChart = ({
|
|
|
109
118
|
const extent = tigercatCore.getNumberExtent(yValues, { includeZero });
|
|
110
119
|
return tigercatCore.createLinearScale(extent, [innerRect.height, 0]);
|
|
111
120
|
}, [yScale, yValues, includeZero, innerRect.height]);
|
|
112
|
-
const palette = react.useMemo(
|
|
113
|
-
() => colors && colors.length > 0 ? colors : pointColor ? [pointColor] : [...tigercatCore.DEFAULT_CHART_COLORS],
|
|
114
|
-
[colors, pointColor]
|
|
115
|
-
);
|
|
121
|
+
const palette = react.useMemo(() => tigercatCore.resolveChartPalette(colors, pointColor), [colors, pointColor]);
|
|
116
122
|
const points = react.useMemo(
|
|
117
123
|
() => data.map((item, index) => {
|
|
118
124
|
const color = item.color ?? palette[index % palette.length];
|
|
@@ -120,12 +126,17 @@ var ScatterChart = ({
|
|
|
120
126
|
activeOpacity,
|
|
121
127
|
inactiveOpacity
|
|
122
128
|
});
|
|
129
|
+
const isHovered = resolvedHoveredIndex === index;
|
|
130
|
+
const baseSize = item.size ?? pointSize;
|
|
131
|
+
const r = isHovered ? tigercatCore.getScatterHoverSize(baseSize) : baseSize;
|
|
123
132
|
return {
|
|
124
133
|
cx: resolvedXScale.map(item.x),
|
|
125
134
|
cy: resolvedYScale.map(item.y),
|
|
126
|
-
r
|
|
135
|
+
r,
|
|
136
|
+
baseSize,
|
|
127
137
|
color,
|
|
128
138
|
opacity: pointOpacity ?? opacity,
|
|
139
|
+
isHovered,
|
|
129
140
|
datum: item
|
|
130
141
|
};
|
|
131
142
|
}),
|
|
@@ -135,6 +146,7 @@ var ScatterChart = ({
|
|
|
135
146
|
activeIndex,
|
|
136
147
|
activeOpacity,
|
|
137
148
|
inactiveOpacity,
|
|
149
|
+
resolvedHoveredIndex,
|
|
138
150
|
resolvedXScale,
|
|
139
151
|
resolvedYScale,
|
|
140
152
|
pointSize,
|
|
@@ -142,29 +154,25 @@ var ScatterChart = ({
|
|
|
142
154
|
]
|
|
143
155
|
);
|
|
144
156
|
const legendItems = react.useMemo(
|
|
145
|
-
() =>
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
157
|
+
() => tigercatCore.buildChartLegendItems({
|
|
158
|
+
data,
|
|
159
|
+
palette,
|
|
160
|
+
activeIndex,
|
|
161
|
+
getLabel: (d, i) => legendFormatter ? legendFormatter(d, i) : d.label ?? `(${d.x}, ${d.y})`,
|
|
162
|
+
getColor: (d, i) => d.color ?? palette[i % palette.length]
|
|
163
|
+
}),
|
|
151
164
|
[data, legendFormatter, palette, activeIndex]
|
|
152
165
|
);
|
|
153
|
-
const
|
|
154
|
-
(datum, index) => {
|
|
155
|
-
if (tooltipFormatter) return tooltipFormatter(datum, index);
|
|
166
|
+
const tooltipContent = react.useMemo(
|
|
167
|
+
() => tigercatCore.resolveChartTooltipContent(resolvedHoveredIndex, data, tooltipFormatter, (datum, index) => {
|
|
156
168
|
const label = datum.label ?? `Point ${index + 1}`;
|
|
157
169
|
return `${label}: (${datum.x}, ${datum.y})`;
|
|
158
|
-
},
|
|
159
|
-
[tooltipFormatter]
|
|
170
|
+
}),
|
|
171
|
+
[resolvedHoveredIndex, data, tooltipFormatter]
|
|
160
172
|
);
|
|
161
|
-
const tooltipContent = react.useMemo(() => {
|
|
162
|
-
if (resolvedHoveredIndex === null) return "";
|
|
163
|
-
const datum = data[resolvedHoveredIndex];
|
|
164
|
-
return datum ? formatTooltip(datum, resolvedHoveredIndex) : "";
|
|
165
|
-
}, [resolvedHoveredIndex, data, formatTooltip]);
|
|
166
173
|
const shouldShowXAxis = showAxis && showXAxis;
|
|
167
174
|
const shouldShowYAxis = showAxis && showYAxis;
|
|
175
|
+
const interactive = hoverable || selectable;
|
|
168
176
|
const chart = /* @__PURE__ */ jsxRuntime.jsxs(
|
|
169
177
|
chunkDUWAV47E_js.ChartCanvas,
|
|
170
178
|
{
|
|
@@ -175,6 +183,22 @@ var ScatterChart = ({
|
|
|
175
183
|
desc,
|
|
176
184
|
className: tigercatCore.classNames(className),
|
|
177
185
|
children: [
|
|
186
|
+
gradient && /* @__PURE__ */ jsxRuntime.jsx("defs", { children: palette.map((color, i) => /* @__PURE__ */ jsxRuntime.jsxs(
|
|
187
|
+
"radialGradient",
|
|
188
|
+
{
|
|
189
|
+
id: `${gradientPrefix}-${i}`,
|
|
190
|
+
cx: "35%",
|
|
191
|
+
cy: "35%",
|
|
192
|
+
r: "65%",
|
|
193
|
+
children: [
|
|
194
|
+
/* @__PURE__ */ jsxRuntime.jsx("stop", { offset: "0%", stopColor: "#fff", stopOpacity: 0.5 }),
|
|
195
|
+
/* @__PURE__ */ jsxRuntime.jsx("stop", { offset: "50%", stopColor: color, stopOpacity: 0.95 }),
|
|
196
|
+
/* @__PURE__ */ jsxRuntime.jsx("stop", { offset: "100%", stopColor: color, stopOpacity: 1 })
|
|
197
|
+
]
|
|
198
|
+
},
|
|
199
|
+
`grad-${i}`
|
|
200
|
+
)) }),
|
|
201
|
+
animated && mounted && /* @__PURE__ */ jsxRuntime.jsx("style", { children: tigercatCore.SCATTER_ENTRANCE_KEYFRAMES }),
|
|
178
202
|
showGrid && /* @__PURE__ */ jsxRuntime.jsx(
|
|
179
203
|
chunk3QFHVAZT_js.ChartGrid,
|
|
180
204
|
{
|
|
@@ -212,18 +236,24 @@ var ScatterChart = ({
|
|
|
212
236
|
label: yAxisLabel
|
|
213
237
|
}
|
|
214
238
|
),
|
|
215
|
-
/* @__PURE__ */ jsxRuntime.jsx(chunkAX5XRD2Q_js.ChartSeries, { data, type: "scatter", children: points.map((point, index) =>
|
|
216
|
-
|
|
217
|
-
{
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
239
|
+
/* @__PURE__ */ jsxRuntime.jsx(chunkAX5XRD2Q_js.ChartSeries, { data, type: "scatter", children: points.map((point, index) => {
|
|
240
|
+
const paletteIdx = index % palette.length;
|
|
241
|
+
const fill = gradient ? `url(#${gradientPrefix}-${paletteIdx})` : point.color;
|
|
242
|
+
const filterStyle = point.isHovered ? tigercatCore.getScatterHoverShadow(point.color) : void 0;
|
|
243
|
+
const animDelay = animated && mounted ? `${index * 60}ms` : void 0;
|
|
244
|
+
const styleObj = {
|
|
245
|
+
...filterStyle ? { filter: filterStyle } : {},
|
|
246
|
+
...animDelay ? {
|
|
247
|
+
animation: `${tigercatCore.SCATTER_ENTRANCE_CLASS} 500ms cubic-bezier(.34,1.56,.64,1) ${animDelay} both`
|
|
248
|
+
} : {}
|
|
249
|
+
};
|
|
250
|
+
const sharedProps = {
|
|
251
|
+
fill,
|
|
222
252
|
opacity: point.opacity,
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
),
|
|
253
|
+
stroke: pointBorderColor,
|
|
254
|
+
strokeWidth: pointBorderWidth,
|
|
255
|
+
className: tigercatCore.classNames(tigercatCore.scatterPointTransitionClasses, interactive && "cursor-pointer"),
|
|
256
|
+
style: Object.keys(styleObj).length > 0 ? styleObj : void 0,
|
|
227
257
|
tabIndex: selectable ? 0 : void 0,
|
|
228
258
|
role: selectable ? "button" : "img",
|
|
229
259
|
"aria-label": point.datum.label ?? `Point ${index + 1}: (${point.datum.x}, ${point.datum.y})`,
|
|
@@ -233,9 +263,29 @@ var ScatterChart = ({
|
|
|
233
263
|
onMouseLeave: handleMouseLeave,
|
|
234
264
|
onClick: () => handleClick(index),
|
|
235
265
|
onKeyDown: (e) => handleKeyDown(e, index)
|
|
236
|
-
}
|
|
237
|
-
|
|
238
|
-
|
|
266
|
+
};
|
|
267
|
+
if (pointStyle === "circle") {
|
|
268
|
+
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
269
|
+
"circle",
|
|
270
|
+
{
|
|
271
|
+
cx: point.cx,
|
|
272
|
+
cy: point.cy,
|
|
273
|
+
r: point.r,
|
|
274
|
+
...sharedProps
|
|
275
|
+
},
|
|
276
|
+
`point-${index}`
|
|
277
|
+
);
|
|
278
|
+
}
|
|
279
|
+
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
280
|
+
"path",
|
|
281
|
+
{
|
|
282
|
+
d: tigercatCore.getScatterPointPath(pointStyle, point.r),
|
|
283
|
+
transform: `translate(${point.cx},${point.cy})`,
|
|
284
|
+
...sharedProps
|
|
285
|
+
},
|
|
286
|
+
`point-${index}`
|
|
287
|
+
);
|
|
288
|
+
}) })
|
|
239
289
|
]
|
|
240
290
|
}
|
|
241
291
|
);
|
|
@@ -263,7 +313,7 @@ var ScatterChart = ({
|
|
|
263
313
|
position: legendPosition,
|
|
264
314
|
markerSize: legendMarkerSize,
|
|
265
315
|
gap: legendGap,
|
|
266
|
-
interactive
|
|
316
|
+
interactive,
|
|
267
317
|
onItemClick: handleLegendClick,
|
|
268
318
|
onItemHover: handleLegendHover,
|
|
269
319
|
onItemLeave: handleLegendLeave
|
|
@@ -0,0 +1,96 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var chunkHQ3QOT7H_js = require('./chunk-HQ3QOT7H.js');
|
|
4
|
+
var react = require('react');
|
|
5
|
+
var tigercatCore = require('@expcat/tigercat-core');
|
|
6
|
+
var jsxRuntime = require('react/jsx-runtime');
|
|
7
|
+
|
|
8
|
+
var Alert = ({
|
|
9
|
+
type = "info",
|
|
10
|
+
size = "md",
|
|
11
|
+
title,
|
|
12
|
+
description,
|
|
13
|
+
showIcon = true,
|
|
14
|
+
closable = false,
|
|
15
|
+
closeAriaLabel = "Close alert",
|
|
16
|
+
className,
|
|
17
|
+
children,
|
|
18
|
+
titleSlot,
|
|
19
|
+
descriptionSlot,
|
|
20
|
+
onClose,
|
|
21
|
+
...props
|
|
22
|
+
}) => {
|
|
23
|
+
const [visible, setVisible] = react.useState(true);
|
|
24
|
+
const colorScheme = react.useMemo(
|
|
25
|
+
() => tigercatCore.getAlertTypeClasses(type, tigercatCore.defaultAlertThemeColors),
|
|
26
|
+
[type]
|
|
27
|
+
);
|
|
28
|
+
const alertClasses = react.useMemo(
|
|
29
|
+
() => tigercatCore.classNames(
|
|
30
|
+
tigercatCore.alertBaseClasses,
|
|
31
|
+
tigercatCore.alertSizeClasses[size],
|
|
32
|
+
colorScheme.bg,
|
|
33
|
+
colorScheme.border,
|
|
34
|
+
className
|
|
35
|
+
),
|
|
36
|
+
[size, colorScheme, className]
|
|
37
|
+
);
|
|
38
|
+
const iconClasses = react.useMemo(
|
|
39
|
+
() => tigercatCore.classNames(tigercatCore.alertIconSizeClasses[size], colorScheme.icon),
|
|
40
|
+
[size, colorScheme]
|
|
41
|
+
);
|
|
42
|
+
const titleClasses = react.useMemo(
|
|
43
|
+
() => tigercatCore.classNames(tigercatCore.alertTitleSizeClasses[size], colorScheme.title),
|
|
44
|
+
[size, colorScheme]
|
|
45
|
+
);
|
|
46
|
+
const descriptionClasses = react.useMemo(
|
|
47
|
+
() => tigercatCore.classNames(tigercatCore.alertDescriptionSizeClasses[size], colorScheme.description),
|
|
48
|
+
[size, colorScheme]
|
|
49
|
+
);
|
|
50
|
+
const closeButtonClasses = react.useMemo(
|
|
51
|
+
() => tigercatCore.classNames(
|
|
52
|
+
tigercatCore.alertCloseButtonBaseClasses,
|
|
53
|
+
colorScheme.closeButton,
|
|
54
|
+
colorScheme.closeButtonHover,
|
|
55
|
+
colorScheme.focus
|
|
56
|
+
),
|
|
57
|
+
[colorScheme]
|
|
58
|
+
);
|
|
59
|
+
const handleClose = react.useCallback(
|
|
60
|
+
(event) => {
|
|
61
|
+
onClose?.(event);
|
|
62
|
+
if (!event.defaultPrevented) {
|
|
63
|
+
setVisible(false);
|
|
64
|
+
}
|
|
65
|
+
},
|
|
66
|
+
[onClose]
|
|
67
|
+
);
|
|
68
|
+
if (!visible) {
|
|
69
|
+
return null;
|
|
70
|
+
}
|
|
71
|
+
const iconPath = tigercatCore.getAlertIconPath(type);
|
|
72
|
+
const hasTitle = !!(title || titleSlot);
|
|
73
|
+
const hasDescription = !!(description || descriptionSlot);
|
|
74
|
+
const hasDefaultContent = !hasTitle && !hasDescription && !!children;
|
|
75
|
+
const hasContent = hasTitle || hasDescription || hasDefaultContent;
|
|
76
|
+
return /* @__PURE__ */ jsxRuntime.jsxs("div", { ...props, className: alertClasses, role: "alert", children: [
|
|
77
|
+
showIcon && /* @__PURE__ */ jsxRuntime.jsx("div", { className: tigercatCore.alertIconContainerClasses, children: /* @__PURE__ */ jsxRuntime.jsx(chunkHQ3QOT7H_js.StatusIcon, { path: iconPath, className: iconClasses }) }),
|
|
78
|
+
hasContent && /* @__PURE__ */ jsxRuntime.jsxs("div", { className: tigercatCore.alertContentClasses, children: [
|
|
79
|
+
hasTitle && /* @__PURE__ */ jsxRuntime.jsx("div", { className: titleClasses, children: titleSlot || title }),
|
|
80
|
+
hasDescription && /* @__PURE__ */ jsxRuntime.jsx("div", { className: descriptionClasses, children: descriptionSlot || description }),
|
|
81
|
+
hasDefaultContent && /* @__PURE__ */ jsxRuntime.jsx("div", { className: titleClasses, children })
|
|
82
|
+
] }),
|
|
83
|
+
closable && /* @__PURE__ */ jsxRuntime.jsx(
|
|
84
|
+
"button",
|
|
85
|
+
{
|
|
86
|
+
className: closeButtonClasses,
|
|
87
|
+
onClick: handleClose,
|
|
88
|
+
"aria-label": closeAriaLabel,
|
|
89
|
+
type: "button",
|
|
90
|
+
children: /* @__PURE__ */ jsxRuntime.jsx(chunkHQ3QOT7H_js.StatusIcon, { path: tigercatCore.alertCloseIconPath, className: "h-4 w-4" })
|
|
91
|
+
}
|
|
92
|
+
)
|
|
93
|
+
] });
|
|
94
|
+
};
|
|
95
|
+
|
|
96
|
+
exports.Alert = Alert;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var chunkA3PYG3D6_js = require('./chunk-A3PYG3D6.js');
|
|
4
4
|
var React = require('react');
|
|
5
5
|
var tigercatCore = require('@expcat/tigercat-core');
|
|
6
6
|
var jsxRuntime = require('react/jsx-runtime');
|
|
@@ -22,7 +22,7 @@ var MenuItemGroup = ({
|
|
|
22
22
|
}) => {
|
|
23
23
|
const enhancedChildren = React__default.default.Children.map(children, (child) => {
|
|
24
24
|
if (!React__default.default.isValidElement(child)) return child;
|
|
25
|
-
if (child.type ===
|
|
25
|
+
if (child.type === chunkA3PYG3D6_js.MenuItem || isComponentNamed(child.type, "SubMenu")) {
|
|
26
26
|
return React__default.default.cloneElement(child, {
|
|
27
27
|
level
|
|
28
28
|
});
|