@expcat/tigercat-react 2.0.19 → 2.1.1
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/README.md +25 -16
- package/dist/chunk-246DAUEF.mjs +181 -0
- package/dist/{chunk-PU3JY6RE.mjs → chunk-2JMI7TCM.mjs} +1 -1
- package/dist/chunk-2YBLMVDT.mjs +428 -0
- package/dist/chunk-2YOP55OF.mjs +639 -0
- package/dist/{chunk-25D5TXZH.mjs → chunk-32MCQMBJ.mjs} +8 -6
- package/dist/chunk-3HHEVMHE.mjs +180 -0
- package/dist/{chunk-HSBN5MLS.mjs → chunk-3LACOSJQ.mjs} +1 -1
- package/dist/{chunk-F6WV53BS.mjs → chunk-3LDDXHW2.mjs} +28 -11
- package/dist/{chunk-IXQAECFP.mjs → chunk-3QNIFKVF.mjs} +12 -14
- package/dist/{chunk-UD4DTVJZ.mjs → chunk-4C2X5PZO.mjs} +57 -25
- package/dist/chunk-5JETWHLJ.mjs +28 -0
- package/dist/{chunk-VA6PZWOH.mjs → chunk-5SEMRHBD.mjs} +14 -6
- package/dist/{chunk-EKILTLUO.mjs → chunk-72CJNKDY.mjs} +1 -1
- package/dist/{chunk-XE4YFBOZ.mjs → chunk-AUD3VOLO.mjs} +1 -1
- package/dist/{chunk-UT5BV2VO.mjs → chunk-AYFKHWJS.mjs} +16 -10
- package/dist/{chunk-RPSHILHD.mjs → chunk-BXAH2GH3.mjs} +8 -2
- package/dist/{chunk-EW5EO7VE.mjs → chunk-BYD7EAWK.mjs} +1 -1
- package/dist/{chunk-BOGOQ44C.mjs → chunk-CQOLQAB5.mjs} +105 -90
- package/dist/{chunk-L55UK45A.mjs → chunk-CRIEUKMD.mjs} +5 -2
- package/dist/{chunk-DKNVSQSV.mjs → chunk-CUAXRBKO.mjs} +12 -0
- package/dist/{chunk-E7OTDBI6.mjs → chunk-DECUASRW.mjs} +17 -19
- package/dist/{chunk-XMTEMBQV.mjs → chunk-EAAWB3CK.mjs} +16 -13
- package/dist/{chunk-D33BIMGK.mjs → chunk-EG7EMDKK.mjs} +12 -2
- package/dist/chunk-EW43YBPV.mjs +457 -0
- package/dist/{chunk-HOYBHB7B.mjs → chunk-FNK2VWPP.mjs} +1 -1
- package/dist/{chunk-RJPNBYK5.mjs → chunk-FQS24AUH.mjs} +12 -3
- package/dist/{chunk-LADKKOJT.mjs → chunk-GBEDWXLL.mjs} +16 -10
- package/dist/chunk-GR3Y3XWP.mjs +47 -0
- package/dist/{chunk-2ENQZECC.mjs → chunk-HAXRHSCN.mjs} +4 -3
- package/dist/{chunk-K4GIKSZE.mjs → chunk-I2BENK5X.mjs} +2 -1
- package/dist/chunk-IGBQGR6G.mjs +234 -0
- package/dist/chunk-J76R2S62.mjs +161 -0
- package/dist/{chunk-DNOPEJ5I.mjs → chunk-JZZPLKTW.mjs} +7 -4
- package/dist/{chunk-7KCQMXJA.mjs → chunk-KDURW5AS.mjs} +4 -3
- package/dist/{chunk-TFMEHUVZ.mjs → chunk-KKN7KLTB.mjs} +0 -1
- package/dist/{chunk-6MGQAJ62.mjs → chunk-KL6YJIZ3.mjs} +24 -7
- package/dist/chunk-KRDHM5KB.mjs +259 -0
- package/dist/{chunk-HHIW7V7B.mjs → chunk-M6ZPTGBV.mjs} +2 -10
- package/dist/chunk-MFPVVGNA.mjs +248 -0
- package/dist/{chunk-PXRZ6CKY.mjs → chunk-MJVSZ2UJ.mjs} +46 -16
- package/dist/{chunk-LZKBDQE4.mjs → chunk-MYI3FPG4.mjs} +23 -4
- package/dist/{chunk-OIGEBCAS.mjs → chunk-NADODEZX.mjs} +69 -1
- package/dist/{chunk-KMP5CVNK.mjs → chunk-NJWTZ5MO.mjs} +57 -45
- package/dist/chunk-NLGLBTSM.mjs +138 -0
- package/dist/chunk-NT7GW2FD.mjs +40 -0
- package/dist/{chunk-773LH7BK.mjs → chunk-O6VYD4E4.mjs} +24 -2
- package/dist/{chunk-G7D4QV7A.mjs → chunk-O7TV5OKS.mjs} +33 -6
- package/dist/{chunk-DPWRXXXW.mjs → chunk-OJ6SHHOZ.mjs} +3 -3
- package/dist/chunk-OKYMTHFQ.mjs +279 -0
- package/dist/{chunk-UYJJLHVA.mjs → chunk-PMQJ6AYT.mjs} +23 -21
- package/dist/chunk-PY2VUNEJ.mjs +494 -0
- package/dist/{chunk-BEJZPJIK.mjs → chunk-QOAOOD53.mjs} +10 -4
- package/dist/{chunk-2WGEHH5A.mjs → chunk-QU3QXUTC.mjs} +49 -23
- package/dist/{chunk-V6P7ZK6O.mjs → chunk-QXSUG7SN.mjs} +3 -3
- package/dist/{chunk-FYINJRYN.mjs → chunk-R7YZ6FKP.mjs} +27 -16
- package/dist/{chunk-YI6YWH66.mjs → chunk-RE5ZLA5D.mjs} +6 -6
- package/dist/{chunk-UCBW5RJN.mjs → chunk-RGVU4EMA.mjs} +11 -6
- package/dist/{chunk-IBSOUQGB.mjs → chunk-RRGPDFDI.mjs} +7 -4
- package/dist/{chunk-ZH5ZBLAN.mjs → chunk-RUQ3F3MV.mjs} +34 -7
- package/dist/chunk-SEOG5AGS.mjs +72 -0
- package/dist/{chunk-PGD5RPKF.mjs → chunk-SVIJ2UZA.mjs} +2 -1
- package/dist/chunk-SXWEFZOF.mjs +766 -0
- package/dist/{chunk-NCHUEGUW.mjs → chunk-TEVEXDY2.mjs} +27 -16
- package/dist/{chunk-DJOFM2VO.mjs → chunk-TO6MZFNQ.mjs} +52 -40
- package/dist/chunk-TQ6RIFWR.mjs +135 -0
- package/dist/chunk-U4M3DC2P.mjs +48 -0
- package/dist/{chunk-ZCGIZOMT.mjs → chunk-V7HJ5HLC.mjs} +6 -10
- package/dist/{chunk-SIDDYP3O.mjs → chunk-VJWSKJLJ.mjs} +1 -1
- package/dist/{chunk-ZG56T75O.mjs → chunk-WTHWLCRL.mjs} +51 -11
- package/dist/{chunk-KP6DEYWB.mjs → chunk-X4L3W7RQ.mjs} +1 -1
- package/dist/{chunk-ZMRTETN2.mjs → chunk-X6C6MNG5.mjs} +4 -3
- package/dist/chunk-XT43B7ZI.mjs +58 -0
- package/dist/{chunk-OGG2TQDG.mjs → chunk-XVHTJQ4T.mjs} +12 -1
- package/dist/{chunk-QJE3MZBO.mjs → chunk-Y6UH3EKE.mjs} +1 -1
- package/dist/chunk-YJ5T4XZN.mjs +81 -0
- package/dist/{chunk-VVNFXJMN.mjs → chunk-YNDPQVEK.mjs} +8 -1
- package/dist/{chunk-QGZ32NFQ.mjs → chunk-Z23KOLNU.mjs} +4 -3
- package/dist/{chunk-5CKMYMTS.mjs → chunk-ZATZRXMW.mjs} +27 -8
- package/dist/components/ActivityFeed.mjs +3 -3
- package/dist/components/Affix.mjs +1 -1
- package/dist/components/Anchor.mjs +1 -1
- package/dist/components/AreaChart.mjs +5 -4
- package/dist/components/AspectRatio.d.mts +10 -0
- package/dist/components/AspectRatio.mjs +8 -0
- package/dist/components/AutoComplete.mjs +1 -1
- package/dist/components/BarChart.mjs +5 -4
- package/dist/components/Calendar.mjs +1 -1
- package/dist/components/Cascader.mjs +1 -1
- package/dist/components/ChartCanvas.mjs +1 -1
- package/dist/components/ChatWindow.mjs +4 -4
- package/dist/components/Code.mjs +3 -1
- package/dist/components/CollapsePanel.mjs +1 -1
- package/dist/components/ColorPicker.mjs +1 -1
- package/dist/components/CommentThread.mjs +2 -2
- package/dist/components/ContextMenu.d.mts +36 -0
- package/dist/components/ContextMenu.mjs +17 -0
- package/dist/components/DataExport.mjs +2 -2
- package/dist/components/DataTableWithToolbar.mjs +7 -7
- package/dist/components/DonutChart.mjs +4 -4
- package/dist/components/Dropdown.mjs +1 -1
- package/dist/components/FileManager.mjs +2 -1
- package/dist/components/FloatButton.mjs +1 -1
- package/dist/components/FormItem.mjs +1 -1
- package/dist/components/FormWizard.mjs +1 -1
- package/dist/components/FunnelChart.mjs +3 -3
- package/dist/components/Gantt.d.mts +3 -1
- package/dist/components/Gantt.mjs +2 -2
- package/dist/components/GaugeChart.mjs +2 -2
- package/dist/components/HeatmapChart.mjs +3 -3
- package/dist/components/Highlight.d.mts +11 -0
- package/dist/components/Highlight.mjs +8 -0
- package/dist/components/Image.mjs +4 -4
- package/dist/components/ImageCompare.d.mts +15 -0
- package/dist/components/ImageCompare.mjs +8 -0
- package/dist/components/ImageGroup.mjs +2 -2
- package/dist/components/ImagePreview.mjs +1 -1
- package/dist/components/Input.mjs +1 -1
- package/dist/components/InputNumber.d.mts +1 -1
- package/dist/components/InputNumber.mjs +1 -1
- package/dist/components/InputOTP.d.mts +33 -0
- package/dist/components/InputOTP.mjs +12 -0
- package/dist/components/Kanban.mjs +2 -2
- package/dist/components/Kbd.d.mts +10 -0
- package/dist/components/Kbd.mjs +8 -0
- package/dist/components/LineChart.mjs +5 -4
- package/dist/components/List.mjs +2 -2
- package/dist/components/Loading.mjs +1 -1
- package/dist/components/LoadingBar.d.mts +8 -0
- package/dist/components/LoadingBar.mjs +138 -0
- package/dist/components/LoadingBarContainer.d.mts +8 -0
- package/dist/components/LoadingBarContainer.mjs +8 -0
- package/dist/components/LoadingBarRoot.d.mts +6 -0
- package/dist/components/LoadingBarRoot.mjs +6 -0
- package/dist/components/Marquee.d.mts +10 -0
- package/dist/components/Marquee.mjs +8 -0
- package/dist/components/MaskInput.d.mts +37 -0
- package/dist/components/MaskInput.mjs +10 -0
- package/dist/components/Masonry.d.mts +10 -0
- package/dist/components/Masonry.mjs +8 -0
- package/dist/components/NavigationMenu.d.mts +84 -0
- package/dist/components/NavigationMenu.mjs +23 -0
- package/dist/components/NotificationCenter.mjs +4 -4
- package/dist/components/OrgChart.mjs +2 -2
- package/dist/components/PageHeader.d.mts +34 -0
- package/dist/components/PageHeader.mjs +11 -0
- package/dist/components/Pagination.mjs +1 -1
- package/dist/components/PieChart.mjs +3 -3
- package/dist/components/Popconfirm.mjs +2 -2
- package/dist/components/Popover.mjs +2 -2
- package/dist/components/QRCode.d.mts +2 -2
- package/dist/components/QRCode.mjs +1 -1
- package/dist/components/RadarChart.mjs +4 -4
- package/dist/components/Rate.mjs +1 -1
- package/dist/components/ScatterChart.mjs +5 -4
- package/dist/components/ScrollArea.d.mts +10 -0
- package/dist/components/ScrollArea.mjs +8 -0
- package/dist/components/ScrollSpy.mjs +1 -1
- package/dist/components/Signature.mjs +1 -1
- package/dist/components/SplitButton.d.mts +38 -0
- package/dist/components/SplitButton.mjs +12 -0
- package/dist/components/Splitter.mjs +1 -1
- package/dist/components/Stepper.d.mts +2 -0
- package/dist/components/Stepper.mjs +2 -1
- package/dist/components/SunburstChart.mjs +3 -3
- package/dist/components/Switch.d.mts +5 -1
- package/dist/components/Switch.mjs +2 -1
- package/dist/components/Table.mjs +2 -2
- package/dist/components/TagsInput.d.mts +41 -0
- package/dist/components/TagsInput.mjs +13 -0
- package/dist/components/TaskBoard.mjs +1 -1
- package/dist/components/Textarea.mjs +1 -1
- package/dist/components/Tooltip.mjs +2 -2
- package/dist/components/Tour.mjs +1 -1
- package/dist/components/TreeMapChart.mjs +3 -3
- package/dist/components/TreeSelect.mjs +2 -1
- package/dist/components/Upload.mjs +1 -1
- package/dist/hooks/useChartInteraction.d.mts +5 -0
- package/dist/hooks/useChartInteraction.mjs +1 -1
- package/dist/index.d.mts +17 -1
- package/dist/index.mjs +406 -0
- package/package.json +117 -2
- package/dist/chunk-7AFRHC7P.mjs +0 -312
- package/dist/chunk-CB4SK5AU.mjs +0 -235
- package/dist/chunk-KPACLRQH.mjs +0 -55
- package/dist/chunk-YIB6ZXZF.mjs +0 -386
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@expcat/tigercat-react",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.1.1",
|
|
4
4
|
"description": "React components for Tigercat UI library",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"author": "Yizhe Wang",
|
|
@@ -59,6 +59,11 @@
|
|
|
59
59
|
"import": "./dist/components/AreaChart.mjs",
|
|
60
60
|
"default": "./dist/components/AreaChart.mjs"
|
|
61
61
|
},
|
|
62
|
+
"./AspectRatio": {
|
|
63
|
+
"types": "./dist/components/AspectRatio.d.mts",
|
|
64
|
+
"import": "./dist/components/AspectRatio.mjs",
|
|
65
|
+
"default": "./dist/components/AspectRatio.mjs"
|
|
66
|
+
},
|
|
62
67
|
"./AutoComplete": {
|
|
63
68
|
"types": "./dist/components/AutoComplete.d.mts",
|
|
64
69
|
"import": "./dist/components/AutoComplete.mjs",
|
|
@@ -229,6 +234,26 @@
|
|
|
229
234
|
"import": "./dist/components/Content.mjs",
|
|
230
235
|
"default": "./dist/components/Content.mjs"
|
|
231
236
|
},
|
|
237
|
+
"./ContextMenu": {
|
|
238
|
+
"types": "./dist/components/ContextMenu.d.mts",
|
|
239
|
+
"import": "./dist/components/ContextMenu.mjs",
|
|
240
|
+
"default": "./dist/components/ContextMenu.mjs"
|
|
241
|
+
},
|
|
242
|
+
"./ContextMenuItem": {
|
|
243
|
+
"types": "./dist/components/ContextMenu.d.mts",
|
|
244
|
+
"import": "./dist/components/ContextMenu.mjs",
|
|
245
|
+
"default": "./dist/components/ContextMenu.mjs"
|
|
246
|
+
},
|
|
247
|
+
"./ContextMenuMenu": {
|
|
248
|
+
"types": "./dist/components/ContextMenu.d.mts",
|
|
249
|
+
"import": "./dist/components/ContextMenu.mjs",
|
|
250
|
+
"default": "./dist/components/ContextMenu.mjs"
|
|
251
|
+
},
|
|
252
|
+
"./ContextMenuSub": {
|
|
253
|
+
"types": "./dist/components/ContextMenu.d.mts",
|
|
254
|
+
"import": "./dist/components/ContextMenu.mjs",
|
|
255
|
+
"default": "./dist/components/ContextMenu.mjs"
|
|
256
|
+
},
|
|
232
257
|
"./Countdown": {
|
|
233
258
|
"types": "./dist/components/Countdown.d.mts",
|
|
234
259
|
"import": "./dist/components/Countdown.mjs",
|
|
@@ -359,6 +384,11 @@
|
|
|
359
384
|
"import": "./dist/components/HeatmapChart.mjs",
|
|
360
385
|
"default": "./dist/components/HeatmapChart.mjs"
|
|
361
386
|
},
|
|
387
|
+
"./Highlight": {
|
|
388
|
+
"types": "./dist/components/Highlight.d.mts",
|
|
389
|
+
"import": "./dist/components/Highlight.mjs",
|
|
390
|
+
"default": "./dist/components/Highlight.mjs"
|
|
391
|
+
},
|
|
362
392
|
"./Icon": {
|
|
363
393
|
"types": "./dist/components/Icon.d.mts",
|
|
364
394
|
"import": "./dist/components/Icon.mjs",
|
|
@@ -374,6 +404,11 @@
|
|
|
374
404
|
"import": "./dist/components/ImageAnnotation.mjs",
|
|
375
405
|
"default": "./dist/components/ImageAnnotation.mjs"
|
|
376
406
|
},
|
|
407
|
+
"./ImageCompare": {
|
|
408
|
+
"types": "./dist/components/ImageCompare.d.mts",
|
|
409
|
+
"import": "./dist/components/ImageCompare.mjs",
|
|
410
|
+
"default": "./dist/components/ImageCompare.mjs"
|
|
411
|
+
},
|
|
377
412
|
"./ImageCropper": {
|
|
378
413
|
"types": "./dist/components/ImageCropper.d.mts",
|
|
379
414
|
"import": "./dist/components/ImageCropper.mjs",
|
|
@@ -419,11 +454,21 @@
|
|
|
419
454
|
"import": "./dist/components/InputNumber.mjs",
|
|
420
455
|
"default": "./dist/components/InputNumber.mjs"
|
|
421
456
|
},
|
|
457
|
+
"./InputOTP": {
|
|
458
|
+
"types": "./dist/components/InputOTP.d.mts",
|
|
459
|
+
"import": "./dist/components/InputOTP.mjs",
|
|
460
|
+
"default": "./dist/components/InputOTP.mjs"
|
|
461
|
+
},
|
|
422
462
|
"./Kanban": {
|
|
423
463
|
"types": "./dist/components/Kanban.d.mts",
|
|
424
464
|
"import": "./dist/components/Kanban.mjs",
|
|
425
465
|
"default": "./dist/components/Kanban.mjs"
|
|
426
466
|
},
|
|
467
|
+
"./Kbd": {
|
|
468
|
+
"types": "./dist/components/Kbd.d.mts",
|
|
469
|
+
"import": "./dist/components/Kbd.mjs",
|
|
470
|
+
"default": "./dist/components/Kbd.mjs"
|
|
471
|
+
},
|
|
427
472
|
"./Layout": {
|
|
428
473
|
"types": "./dist/components/Layout.d.mts",
|
|
429
474
|
"import": "./dist/components/Layout.mjs",
|
|
@@ -449,11 +494,36 @@
|
|
|
449
494
|
"import": "./dist/components/Loading.mjs",
|
|
450
495
|
"default": "./dist/components/Loading.mjs"
|
|
451
496
|
},
|
|
497
|
+
"./LoadingBar": {
|
|
498
|
+
"types": "./dist/components/LoadingBar.d.mts",
|
|
499
|
+
"import": "./dist/components/LoadingBar.mjs",
|
|
500
|
+
"default": "./dist/components/LoadingBar.mjs"
|
|
501
|
+
},
|
|
502
|
+
"./LoadingBarContainer": {
|
|
503
|
+
"types": "./dist/components/LoadingBarContainer.d.mts",
|
|
504
|
+
"import": "./dist/components/LoadingBarContainer.mjs",
|
|
505
|
+
"default": "./dist/components/LoadingBarContainer.mjs"
|
|
506
|
+
},
|
|
452
507
|
"./MarkdownEditor": {
|
|
453
508
|
"types": "./dist/components/MarkdownEditor.d.mts",
|
|
454
509
|
"import": "./dist/components/MarkdownEditor.mjs",
|
|
455
510
|
"default": "./dist/components/MarkdownEditor.mjs"
|
|
456
511
|
},
|
|
512
|
+
"./Marquee": {
|
|
513
|
+
"types": "./dist/components/Marquee.d.mts",
|
|
514
|
+
"import": "./dist/components/Marquee.mjs",
|
|
515
|
+
"default": "./dist/components/Marquee.mjs"
|
|
516
|
+
},
|
|
517
|
+
"./MaskInput": {
|
|
518
|
+
"types": "./dist/components/MaskInput.d.mts",
|
|
519
|
+
"import": "./dist/components/MaskInput.mjs",
|
|
520
|
+
"default": "./dist/components/MaskInput.mjs"
|
|
521
|
+
},
|
|
522
|
+
"./Masonry": {
|
|
523
|
+
"types": "./dist/components/Masonry.d.mts",
|
|
524
|
+
"import": "./dist/components/Masonry.mjs",
|
|
525
|
+
"default": "./dist/components/Masonry.mjs"
|
|
526
|
+
},
|
|
457
527
|
"./Mentions": {
|
|
458
528
|
"types": "./dist/components/Mentions.d.mts",
|
|
459
529
|
"import": "./dist/components/Mentions.mjs",
|
|
@@ -489,6 +559,31 @@
|
|
|
489
559
|
"import": "./dist/components/Modal.mjs",
|
|
490
560
|
"default": "./dist/components/Modal.mjs"
|
|
491
561
|
},
|
|
562
|
+
"./NavigationMenu": {
|
|
563
|
+
"types": "./dist/components/NavigationMenu.d.mts",
|
|
564
|
+
"import": "./dist/components/NavigationMenu.mjs",
|
|
565
|
+
"default": "./dist/components/NavigationMenu.mjs"
|
|
566
|
+
},
|
|
567
|
+
"./NavigationMenuContent": {
|
|
568
|
+
"types": "./dist/components/NavigationMenu.d.mts",
|
|
569
|
+
"import": "./dist/components/NavigationMenu.mjs",
|
|
570
|
+
"default": "./dist/components/NavigationMenu.mjs"
|
|
571
|
+
},
|
|
572
|
+
"./NavigationMenuItem": {
|
|
573
|
+
"types": "./dist/components/NavigationMenu.d.mts",
|
|
574
|
+
"import": "./dist/components/NavigationMenu.mjs",
|
|
575
|
+
"default": "./dist/components/NavigationMenu.mjs"
|
|
576
|
+
},
|
|
577
|
+
"./NavigationMenuLink": {
|
|
578
|
+
"types": "./dist/components/NavigationMenu.d.mts",
|
|
579
|
+
"import": "./dist/components/NavigationMenu.mjs",
|
|
580
|
+
"default": "./dist/components/NavigationMenu.mjs"
|
|
581
|
+
},
|
|
582
|
+
"./NavigationMenuTrigger": {
|
|
583
|
+
"types": "./dist/components/NavigationMenu.d.mts",
|
|
584
|
+
"import": "./dist/components/NavigationMenu.mjs",
|
|
585
|
+
"default": "./dist/components/NavigationMenu.mjs"
|
|
586
|
+
},
|
|
492
587
|
"./NotificationCenter": {
|
|
493
588
|
"types": "./dist/components/NotificationCenter.d.mts",
|
|
494
589
|
"import": "./dist/components/NotificationCenter.mjs",
|
|
@@ -509,6 +604,11 @@
|
|
|
509
604
|
"import": "./dist/components/OrgChart.mjs",
|
|
510
605
|
"default": "./dist/components/OrgChart.mjs"
|
|
511
606
|
},
|
|
607
|
+
"./PageHeader": {
|
|
608
|
+
"types": "./dist/components/PageHeader.d.mts",
|
|
609
|
+
"import": "./dist/components/PageHeader.mjs",
|
|
610
|
+
"default": "./dist/components/PageHeader.mjs"
|
|
611
|
+
},
|
|
512
612
|
"./Pagination": {
|
|
513
613
|
"types": "./dist/components/Pagination.d.mts",
|
|
514
614
|
"import": "./dist/components/Pagination.mjs",
|
|
@@ -594,6 +694,11 @@
|
|
|
594
694
|
"import": "./dist/components/ScatterChart.mjs",
|
|
595
695
|
"default": "./dist/components/ScatterChart.mjs"
|
|
596
696
|
},
|
|
697
|
+
"./ScrollArea": {
|
|
698
|
+
"types": "./dist/components/ScrollArea.d.mts",
|
|
699
|
+
"import": "./dist/components/ScrollArea.mjs",
|
|
700
|
+
"default": "./dist/components/ScrollArea.mjs"
|
|
701
|
+
},
|
|
597
702
|
"./ScrollSpy": {
|
|
598
703
|
"types": "./dist/components/ScrollSpy.d.mts",
|
|
599
704
|
"import": "./dist/components/ScrollSpy.mjs",
|
|
@@ -634,6 +739,11 @@
|
|
|
634
739
|
"import": "./dist/components/Space.mjs",
|
|
635
740
|
"default": "./dist/components/Space.mjs"
|
|
636
741
|
},
|
|
742
|
+
"./SplitButton": {
|
|
743
|
+
"types": "./dist/components/SplitButton.d.mts",
|
|
744
|
+
"import": "./dist/components/SplitButton.mjs",
|
|
745
|
+
"default": "./dist/components/SplitButton.mjs"
|
|
746
|
+
},
|
|
637
747
|
"./Splitter": {
|
|
638
748
|
"types": "./dist/components/Splitter.d.mts",
|
|
639
749
|
"import": "./dist/components/Splitter.mjs",
|
|
@@ -699,6 +809,11 @@
|
|
|
699
809
|
"import": "./dist/components/Tag.mjs",
|
|
700
810
|
"default": "./dist/components/Tag.mjs"
|
|
701
811
|
},
|
|
812
|
+
"./TagsInput": {
|
|
813
|
+
"types": "./dist/components/TagsInput.d.mts",
|
|
814
|
+
"import": "./dist/components/TagsInput.mjs",
|
|
815
|
+
"default": "./dist/components/TagsInput.mjs"
|
|
816
|
+
},
|
|
702
817
|
"./TaskBoard": {
|
|
703
818
|
"types": "./dist/components/TaskBoard.d.mts",
|
|
704
819
|
"import": "./dist/components/TaskBoard.mjs",
|
|
@@ -782,7 +897,7 @@
|
|
|
782
897
|
"access": "public"
|
|
783
898
|
},
|
|
784
899
|
"dependencies": {
|
|
785
|
-
"@expcat/tigercat-core": "2.
|
|
900
|
+
"@expcat/tigercat-core": "2.1.1"
|
|
786
901
|
},
|
|
787
902
|
"devDependencies": {
|
|
788
903
|
"@types/node": "^26.1.1",
|
package/dist/chunk-7AFRHC7P.mjs
DELETED
|
@@ -1,312 +0,0 @@
|
|
|
1
|
-
import {
|
|
2
|
-
renderOverlayPortal,
|
|
3
|
-
useAnchoredOverlay
|
|
4
|
-
} from "./chunk-HKAZXG74.mjs";
|
|
5
|
-
import {
|
|
6
|
-
useTigerConfig
|
|
7
|
-
} from "./chunk-YSIXURBW.mjs";
|
|
8
|
-
|
|
9
|
-
// src/components/TreeSelect.tsx
|
|
10
|
-
import { useState, useMemo, useRef, useId } from "react";
|
|
11
|
-
import {
|
|
12
|
-
resolveLocaleText,
|
|
13
|
-
mergeTigerLocale,
|
|
14
|
-
treeSelectBaseClasses,
|
|
15
|
-
treeSelectDropdownClasses,
|
|
16
|
-
treeSelectSearchClasses,
|
|
17
|
-
treeSelectEmptyClasses,
|
|
18
|
-
getTreeSelectTriggerClasses,
|
|
19
|
-
getTreeSelectNodeClasses,
|
|
20
|
-
getTreeSelectDisplayLabel,
|
|
21
|
-
getAllTreeSelectKeys,
|
|
22
|
-
flattenTreeSelectNodes,
|
|
23
|
-
filterTreeSelectNodes,
|
|
24
|
-
getPickerComboboxAria,
|
|
25
|
-
getPickerListboxAria,
|
|
26
|
-
getPickerOptionAria,
|
|
27
|
-
getPickerTriggerKeyAction,
|
|
28
|
-
classNames,
|
|
29
|
-
icon20ViewBox,
|
|
30
|
-
chevronDownSolidIcon20PathD,
|
|
31
|
-
chevronRightSolidIcon20PathD,
|
|
32
|
-
closeSolidIcon20PathD
|
|
33
|
-
} from "@expcat/tigercat-core";
|
|
34
|
-
import { jsx, jsxs } from "react/jsx-runtime";
|
|
35
|
-
var TREESELECT_KEYS = /* @__PURE__ */ new Set([
|
|
36
|
-
"value",
|
|
37
|
-
"treeData",
|
|
38
|
-
"placeholder",
|
|
39
|
-
"size",
|
|
40
|
-
"disabled",
|
|
41
|
-
"clearable",
|
|
42
|
-
"multiple",
|
|
43
|
-
"searchable",
|
|
44
|
-
"searchValue",
|
|
45
|
-
"defaultSearchValue",
|
|
46
|
-
"emptyText",
|
|
47
|
-
"defaultExpandAll",
|
|
48
|
-
"onChange",
|
|
49
|
-
"onSearchChange"
|
|
50
|
-
]);
|
|
51
|
-
var TreeSelect = (props) => {
|
|
52
|
-
const {
|
|
53
|
-
value,
|
|
54
|
-
treeData = [],
|
|
55
|
-
placeholder = "Please select",
|
|
56
|
-
size = "md",
|
|
57
|
-
disabled = false,
|
|
58
|
-
clearable = false,
|
|
59
|
-
multiple = false,
|
|
60
|
-
searchable = false,
|
|
61
|
-
searchValue,
|
|
62
|
-
defaultSearchValue = "",
|
|
63
|
-
emptyText,
|
|
64
|
-
defaultExpandAll = false,
|
|
65
|
-
className,
|
|
66
|
-
onChange,
|
|
67
|
-
onSearchChange,
|
|
68
|
-
locale,
|
|
69
|
-
...rest
|
|
70
|
-
} = props;
|
|
71
|
-
const config = useTigerConfig();
|
|
72
|
-
const mergedLocale = useMemo(
|
|
73
|
-
() => mergeTigerLocale(config.locale, locale),
|
|
74
|
-
[config.locale, locale]
|
|
75
|
-
);
|
|
76
|
-
const divProps = {};
|
|
77
|
-
for (const key of Object.keys(rest)) {
|
|
78
|
-
if (!TREESELECT_KEYS.has(key)) {
|
|
79
|
-
divProps[key] = rest[key];
|
|
80
|
-
}
|
|
81
|
-
}
|
|
82
|
-
const instanceId = useId();
|
|
83
|
-
const listboxId = `tiger-treeselect-listbox-${instanceId}`;
|
|
84
|
-
const [isOpen, setIsOpen] = useState(false);
|
|
85
|
-
const [uncontrolledSearchValue, setUncontrolledSearchValue] = useState(defaultSearchValue);
|
|
86
|
-
const searchQuery = searchValue ?? uncontrolledSearchValue;
|
|
87
|
-
const [expandedKeys, setExpandedKeys] = useState(
|
|
88
|
-
() => defaultExpandAll ? new Set(getAllTreeSelectKeys(treeData)) : /* @__PURE__ */ new Set()
|
|
89
|
-
);
|
|
90
|
-
const containerRef = useRef(null);
|
|
91
|
-
const triggerRef = useRef(null);
|
|
92
|
-
const dropdownRef = useRef(null);
|
|
93
|
-
const overlay = useAnchoredOverlay({
|
|
94
|
-
enabled: isOpen,
|
|
95
|
-
referenceRef: triggerRef,
|
|
96
|
-
floatingRef: dropdownRef,
|
|
97
|
-
containerRef,
|
|
98
|
-
placement: "bottom-start",
|
|
99
|
-
offset: 4,
|
|
100
|
-
matchReferenceWidth: true,
|
|
101
|
-
dismissOnOutside: true,
|
|
102
|
-
dismissOnEscape: true,
|
|
103
|
-
restoreFocusOnDismiss: true,
|
|
104
|
-
onDismiss: closeDropdown
|
|
105
|
-
});
|
|
106
|
-
const displayLabel = useMemo(() => getTreeSelectDisplayLabel(treeData, value), [treeData, value]);
|
|
107
|
-
const showClearButton = clearable && !disabled && value !== void 0 && (Array.isArray(value) ? value.length > 0 : value !== "");
|
|
108
|
-
const matchedKeys = useMemo(() => {
|
|
109
|
-
if (!searchQuery) return null;
|
|
110
|
-
return filterTreeSelectNodes(treeData, searchQuery);
|
|
111
|
-
}, [treeData, searchQuery]);
|
|
112
|
-
const effectiveExpandedKeys = matchedKeys ?? expandedKeys;
|
|
113
|
-
const flatNodes = useMemo(
|
|
114
|
-
() => flattenTreeSelectNodes(treeData, effectiveExpandedKeys),
|
|
115
|
-
[treeData, effectiveExpandedKeys]
|
|
116
|
-
);
|
|
117
|
-
const visibleNodes = useMemo(() => {
|
|
118
|
-
if (!matchedKeys) return flatNodes;
|
|
119
|
-
return flatNodes.filter((f) => matchedKeys.has(f.node.key));
|
|
120
|
-
}, [flatNodes, matchedKeys]);
|
|
121
|
-
function openDropdown() {
|
|
122
|
-
if (disabled) return;
|
|
123
|
-
setIsOpen(true);
|
|
124
|
-
}
|
|
125
|
-
function closeDropdown() {
|
|
126
|
-
setIsOpen(false);
|
|
127
|
-
updateSearchValue("");
|
|
128
|
-
}
|
|
129
|
-
function updateSearchValue(value2) {
|
|
130
|
-
if (searchValue === void 0) {
|
|
131
|
-
setUncontrolledSearchValue(value2);
|
|
132
|
-
}
|
|
133
|
-
onSearchChange?.(value2);
|
|
134
|
-
}
|
|
135
|
-
function toggleDropdown() {
|
|
136
|
-
if (isOpen) closeDropdown();
|
|
137
|
-
else openDropdown();
|
|
138
|
-
}
|
|
139
|
-
function toggleExpand(key, e) {
|
|
140
|
-
e.stopPropagation();
|
|
141
|
-
setExpandedKeys((prev) => {
|
|
142
|
-
const next = new Set(prev);
|
|
143
|
-
if (next.has(key)) next.delete(key);
|
|
144
|
-
else next.add(key);
|
|
145
|
-
return next;
|
|
146
|
-
});
|
|
147
|
-
}
|
|
148
|
-
function isSelected(key) {
|
|
149
|
-
if (multiple && Array.isArray(value)) {
|
|
150
|
-
return value.includes(key);
|
|
151
|
-
}
|
|
152
|
-
return value === key;
|
|
153
|
-
}
|
|
154
|
-
function handleNodeSelect(node) {
|
|
155
|
-
if (node.disabled) return;
|
|
156
|
-
if (multiple) {
|
|
157
|
-
const current = Array.isArray(value) ? [...value] : [];
|
|
158
|
-
const idx = current.indexOf(node.key);
|
|
159
|
-
if (idx >= 0) current.splice(idx, 1);
|
|
160
|
-
else current.push(node.key);
|
|
161
|
-
onChange?.(current);
|
|
162
|
-
} else {
|
|
163
|
-
onChange?.(node.key);
|
|
164
|
-
closeDropdown();
|
|
165
|
-
}
|
|
166
|
-
}
|
|
167
|
-
function handleClear(e) {
|
|
168
|
-
e.stopPropagation();
|
|
169
|
-
onChange?.(multiple ? [] : void 0);
|
|
170
|
-
}
|
|
171
|
-
function handleKeyDown(e) {
|
|
172
|
-
const action = getPickerTriggerKeyAction(e.key, isOpen);
|
|
173
|
-
if (action === "none") return;
|
|
174
|
-
e.preventDefault();
|
|
175
|
-
if (action === "toggle") {
|
|
176
|
-
if (isOpen) closeDropdown();
|
|
177
|
-
else openDropdown();
|
|
178
|
-
} else if (action === "open") {
|
|
179
|
-
openDropdown();
|
|
180
|
-
} else if (action === "close") {
|
|
181
|
-
closeDropdown();
|
|
182
|
-
}
|
|
183
|
-
}
|
|
184
|
-
return /* @__PURE__ */ jsxs("div", { ref: containerRef, className: classNames(treeSelectBaseClasses, className), ...divProps, children: [
|
|
185
|
-
/* @__PURE__ */ jsxs(
|
|
186
|
-
"button",
|
|
187
|
-
{
|
|
188
|
-
ref: triggerRef,
|
|
189
|
-
type: "button",
|
|
190
|
-
className: getTreeSelectTriggerClasses(size, disabled, isOpen),
|
|
191
|
-
...getPickerComboboxAria({ expanded: isOpen, listboxId }),
|
|
192
|
-
disabled,
|
|
193
|
-
onClick: toggleDropdown,
|
|
194
|
-
onKeyDown: handleKeyDown,
|
|
195
|
-
children: [
|
|
196
|
-
/* @__PURE__ */ jsx(
|
|
197
|
-
"span",
|
|
198
|
-
{
|
|
199
|
-
className: classNames(
|
|
200
|
-
"flex-1 truncate",
|
|
201
|
-
!displayLabel ? "text-[var(--tiger-treeselect-placeholder,var(--tiger-text-muted,#9ca3af))]" : ""
|
|
202
|
-
),
|
|
203
|
-
children: displayLabel || placeholder
|
|
204
|
-
}
|
|
205
|
-
),
|
|
206
|
-
showClearButton ? /* @__PURE__ */ jsx(
|
|
207
|
-
"span",
|
|
208
|
-
{
|
|
209
|
-
className: "absolute right-2 top-1/2 -translate-y-1/2 text-[var(--tiger-treeselect-clear,var(--tiger-text-muted,#9ca3af))] hover:text-[var(--tiger-treeselect-clear-hover,var(--tiger-text,#111827))]",
|
|
210
|
-
"aria-label": resolveLocaleText("Clear selection", mergedLocale?.common?.clearText),
|
|
211
|
-
onClick: handleClear,
|
|
212
|
-
children: /* @__PURE__ */ jsx(
|
|
213
|
-
"svg",
|
|
214
|
-
{
|
|
215
|
-
className: "w-4 h-4",
|
|
216
|
-
viewBox: icon20ViewBox,
|
|
217
|
-
fill: "currentColor",
|
|
218
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
219
|
-
children: /* @__PURE__ */ jsx("path", { d: closeSolidIcon20PathD, fillRule: "evenodd", clipRule: "evenodd" })
|
|
220
|
-
}
|
|
221
|
-
)
|
|
222
|
-
}
|
|
223
|
-
) : /* @__PURE__ */ jsx("span", { className: "absolute right-2 top-1/2 -translate-y-1/2 text-[var(--tiger-text-muted,#9ca3af)] pointer-events-none", children: /* @__PURE__ */ jsx(
|
|
224
|
-
"svg",
|
|
225
|
-
{
|
|
226
|
-
className: "w-4 h-4 transition-transform",
|
|
227
|
-
viewBox: icon20ViewBox,
|
|
228
|
-
fill: "currentColor",
|
|
229
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
230
|
-
children: /* @__PURE__ */ jsx("path", { d: chevronDownSolidIcon20PathD, fillRule: "evenodd", clipRule: "evenodd" })
|
|
231
|
-
}
|
|
232
|
-
) })
|
|
233
|
-
]
|
|
234
|
-
}
|
|
235
|
-
),
|
|
236
|
-
renderOverlayPortal(
|
|
237
|
-
isOpen ? /* @__PURE__ */ jsxs(
|
|
238
|
-
"div",
|
|
239
|
-
{
|
|
240
|
-
ref: dropdownRef,
|
|
241
|
-
...getPickerListboxAria({ id: listboxId }),
|
|
242
|
-
className: classNames(treeSelectDropdownClasses, overlay.floatingClasses),
|
|
243
|
-
style: overlay.floatingStyles,
|
|
244
|
-
"data-positioned": overlay.positioned,
|
|
245
|
-
children: [
|
|
246
|
-
searchable && /* @__PURE__ */ jsx(
|
|
247
|
-
"input",
|
|
248
|
-
{
|
|
249
|
-
type: "text",
|
|
250
|
-
className: treeSelectSearchClasses,
|
|
251
|
-
placeholder: resolveLocaleText(
|
|
252
|
-
"Search...",
|
|
253
|
-
mergedLocale?.common?.searchPlaceholder
|
|
254
|
-
),
|
|
255
|
-
value: searchQuery,
|
|
256
|
-
"aria-label": resolveLocaleText(
|
|
257
|
-
"Search tree",
|
|
258
|
-
mergedLocale?.common?.searchPlaceholder
|
|
259
|
-
),
|
|
260
|
-
onChange: (e) => updateSearchValue(e.target.value)
|
|
261
|
-
}
|
|
262
|
-
),
|
|
263
|
-
visibleNodes.length > 0 ? visibleNodes.map((flatNode) => {
|
|
264
|
-
const { node, level, hasChildren, isExpanded } = flatNode;
|
|
265
|
-
const selected = isSelected(node.key);
|
|
266
|
-
const indent = level * 20;
|
|
267
|
-
return /* @__PURE__ */ jsxs(
|
|
268
|
-
"div",
|
|
269
|
-
{
|
|
270
|
-
...getPickerOptionAria({ selected, disabled: !!node.disabled }),
|
|
271
|
-
className: getTreeSelectNodeClasses(selected, !!node.disabled, size),
|
|
272
|
-
style: { paddingLeft: `${indent + 8}px` },
|
|
273
|
-
onClick: (e) => {
|
|
274
|
-
e.stopPropagation();
|
|
275
|
-
handleNodeSelect(node);
|
|
276
|
-
},
|
|
277
|
-
children: [
|
|
278
|
-
hasChildren ? /* @__PURE__ */ jsx(
|
|
279
|
-
"span",
|
|
280
|
-
{
|
|
281
|
-
className: classNames(
|
|
282
|
-
"inline-flex items-center justify-center w-4 h-4 mr-1 transition-transform",
|
|
283
|
-
isExpanded ? "rotate-90" : ""
|
|
284
|
-
),
|
|
285
|
-
onClick: (e) => toggleExpand(node.key, e),
|
|
286
|
-
children: /* @__PURE__ */ jsx("svg", { className: "w-3 h-3", viewBox: icon20ViewBox, fill: "currentColor", children: /* @__PURE__ */ jsx(
|
|
287
|
-
"path",
|
|
288
|
-
{
|
|
289
|
-
d: chevronRightSolidIcon20PathD,
|
|
290
|
-
fillRule: "evenodd",
|
|
291
|
-
clipRule: "evenodd"
|
|
292
|
-
}
|
|
293
|
-
) })
|
|
294
|
-
}
|
|
295
|
-
) : /* @__PURE__ */ jsx("span", { className: "w-4 mr-1" }),
|
|
296
|
-
/* @__PURE__ */ jsx("span", { className: "flex-1 truncate", children: node.label })
|
|
297
|
-
]
|
|
298
|
-
},
|
|
299
|
-
String(node.key)
|
|
300
|
-
);
|
|
301
|
-
}) : /* @__PURE__ */ jsx("div", { className: treeSelectEmptyClasses, children: resolveLocaleText("No data", emptyText, mergedLocale?.common?.emptyText) })
|
|
302
|
-
]
|
|
303
|
-
}
|
|
304
|
-
) : null,
|
|
305
|
-
overlay.target
|
|
306
|
-
)
|
|
307
|
-
] });
|
|
308
|
-
};
|
|
309
|
-
|
|
310
|
-
export {
|
|
311
|
-
TreeSelect
|
|
312
|
-
};
|