@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
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import {
|
|
2
2
|
FunnelChart
|
|
3
|
-
} from "../chunk-
|
|
4
|
-
import "../chunk-
|
|
3
|
+
} from "../chunk-KDURW5AS.mjs";
|
|
4
|
+
import "../chunk-JZZPLKTW.mjs";
|
|
5
5
|
import "../chunk-YORCCCQX.mjs";
|
|
6
|
-
import "../chunk-
|
|
6
|
+
import "../chunk-CUAXRBKO.mjs";
|
|
7
7
|
import "../chunk-F2ITBDUS.mjs";
|
|
8
8
|
export {
|
|
9
9
|
FunnelChart
|
|
@@ -7,8 +7,10 @@ interface GanttProps extends Omit<GanttProps$1, 'className'> {
|
|
|
7
7
|
onTaskClick?: (task: GanttTask) => void;
|
|
8
8
|
onTaskHover?: (task: GanttTask | null) => void;
|
|
9
9
|
onSelectedIdChange?: (id: string | number | null) => void;
|
|
10
|
+
onTaskChange?: (task: GanttTask) => void;
|
|
11
|
+
onDataChange?: (data: GanttTask[]) => void;
|
|
10
12
|
}
|
|
11
|
-
declare function Gantt({ data, width, height, padding, scale, rowHeight, barHeight, taskLabelWidth, timelineHeight, minDate, maxDate, minBarWidth, showToday, showProgress, showDependencies, hoverable, selectable, selectedId, activeOpacity, inactiveOpacity, dateFormatter, colors, title, desc, ariaLabel, className, onTaskClick, onTaskHover, onSelectedIdChange }: GanttProps): React__default.ReactElement;
|
|
13
|
+
declare function Gantt({ data, width, height, padding, scale, rowHeight, barHeight, taskLabelWidth, timelineHeight, minDate, maxDate, minBarWidth, showToday, showProgress, showDependencies, hoverable, selectable, selectedId, activeOpacity, inactiveOpacity, dateFormatter, colors, title, desc, ariaLabel, className, onTaskClick, onTaskHover, onSelectedIdChange, onTaskChange, onDataChange }: GanttProps): React__default.ReactElement;
|
|
12
14
|
declare namespace Gantt {
|
|
13
15
|
var displayName: string;
|
|
14
16
|
}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import {
|
|
2
2
|
HeatmapChart
|
|
3
|
-
} from "../chunk-
|
|
4
|
-
import "../chunk-
|
|
3
|
+
} from "../chunk-32MCQMBJ.mjs";
|
|
4
|
+
import "../chunk-JZZPLKTW.mjs";
|
|
5
5
|
import "../chunk-YORCCCQX.mjs";
|
|
6
|
-
import "../chunk-
|
|
6
|
+
import "../chunk-CUAXRBKO.mjs";
|
|
7
7
|
export {
|
|
8
8
|
HeatmapChart
|
|
9
9
|
};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import React__default from 'react';
|
|
2
|
+
import { HighlightProps as HighlightProps$1 } from '@expcat/tigercat-core';
|
|
3
|
+
|
|
4
|
+
interface HighlightProps extends Omit<HighlightProps$1, 'style' | 'highlightStyle'>, Omit<React__default.ComponentPropsWithoutRef<'span'>, keyof HighlightProps$1> {
|
|
5
|
+
children?: React__default.ReactNode;
|
|
6
|
+
style?: React__default.CSSProperties;
|
|
7
|
+
highlightStyle?: React__default.CSSProperties;
|
|
8
|
+
}
|
|
9
|
+
declare const Highlight: React__default.ForwardRefExoticComponent<HighlightProps & React__default.RefAttributes<HTMLSpanElement>>;
|
|
10
|
+
|
|
11
|
+
export { Highlight, type HighlightProps, Highlight as default };
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import {
|
|
2
2
|
Image
|
|
3
|
-
} from "../chunk-
|
|
4
|
-
import "../chunk-
|
|
5
|
-
import "../chunk-
|
|
6
|
-
import "../chunk-
|
|
3
|
+
} from "../chunk-OJ6SHHOZ.mjs";
|
|
4
|
+
import "../chunk-3LACOSJQ.mjs";
|
|
5
|
+
import "../chunk-V7HJ5HLC.mjs";
|
|
6
|
+
import "../chunk-WTHWLCRL.mjs";
|
|
7
7
|
import "../chunk-HKAZXG74.mjs";
|
|
8
8
|
import "../chunk-YSIXURBW.mjs";
|
|
9
9
|
import "../chunk-TGXBCKOU.mjs";
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import React__default from 'react';
|
|
2
|
+
import { ImageCompareProps as ImageCompareProps$1 } from '@expcat/tigercat-core';
|
|
3
|
+
|
|
4
|
+
interface ImageCompareProps extends Omit<ImageCompareProps$1, 'style'>, Omit<React__default.ComponentPropsWithoutRef<'div'>, keyof ImageCompareProps$1 | 'onChange'> {
|
|
5
|
+
/** Before pane content. Takes precedence over `beforeSrc`. */
|
|
6
|
+
before?: React__default.ReactNode;
|
|
7
|
+
/** After pane content. Takes precedence over `afterSrc`. */
|
|
8
|
+
after?: React__default.ReactNode;
|
|
9
|
+
style?: React__default.CSSProperties;
|
|
10
|
+
/** Called when the handle position changes */
|
|
11
|
+
onChange?: (position: number) => void;
|
|
12
|
+
}
|
|
13
|
+
declare const ImageCompare: React__default.ForwardRefExoticComponent<ImageCompareProps & React__default.RefAttributes<HTMLDivElement>>;
|
|
14
|
+
|
|
15
|
+
export { ImageCompare, type ImageCompareProps, ImageCompare as default };
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import {
|
|
2
2
|
ImageGroup,
|
|
3
3
|
ImageGroupContext
|
|
4
|
-
} from "../chunk-
|
|
5
|
-
import "../chunk-
|
|
4
|
+
} from "../chunk-3LACOSJQ.mjs";
|
|
5
|
+
import "../chunk-V7HJ5HLC.mjs";
|
|
6
6
|
import "../chunk-HKAZXG74.mjs";
|
|
7
7
|
import "../chunk-YSIXURBW.mjs";
|
|
8
8
|
import "../chunk-TGXBCKOU.mjs";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React__default from 'react';
|
|
2
2
|
import { InputNumberProps as InputNumberProps$1 } from '@expcat/tigercat-core';
|
|
3
3
|
|
|
4
|
-
interface InputNumberProps extends InputNumberProps$1 {
|
|
4
|
+
interface InputNumberProps extends InputNumberProps$1, Omit<React__default.InputHTMLAttributes<HTMLInputElement>, 'size' | 'value' | 'defaultValue' | 'onChange' | 'onFocus' | 'onBlur' | 'min' | 'max' | 'step' | 'readOnly'> {
|
|
5
5
|
/**
|
|
6
6
|
* Change handler (called with committed value)
|
|
7
7
|
*/
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import React__default from 'react';
|
|
2
|
+
import { InputOTPProps as InputOTPProps$1 } from '@expcat/tigercat-core';
|
|
3
|
+
|
|
4
|
+
interface InputOTPProps extends InputOTPProps$1, Omit<React__default.HTMLAttributes<HTMLDivElement>, 'onChange' | 'onFocus' | 'onBlur' | 'defaultValue' | 'id'> {
|
|
5
|
+
/**
|
|
6
|
+
* Additional CSS classes
|
|
7
|
+
*/
|
|
8
|
+
className?: string;
|
|
9
|
+
/**
|
|
10
|
+
* Internal shake trigger counter (used by FormItem)
|
|
11
|
+
* @internal
|
|
12
|
+
*/
|
|
13
|
+
_shakeTrigger?: number;
|
|
14
|
+
/**
|
|
15
|
+
* Change event handler, called with the joined value
|
|
16
|
+
*/
|
|
17
|
+
onChange?: (value: string) => void;
|
|
18
|
+
/**
|
|
19
|
+
* Called when every slot is filled, with the complete value
|
|
20
|
+
*/
|
|
21
|
+
onComplete?: (value: string) => void;
|
|
22
|
+
/**
|
|
23
|
+
* Focus event handler (fires when focus enters the group)
|
|
24
|
+
*/
|
|
25
|
+
onFocus?: (event: React__default.FocusEvent<HTMLDivElement>) => void;
|
|
26
|
+
/**
|
|
27
|
+
* Blur event handler (fires when focus leaves the group)
|
|
28
|
+
*/
|
|
29
|
+
onBlur?: (event: React__default.FocusEvent<HTMLDivElement>) => void;
|
|
30
|
+
}
|
|
31
|
+
declare const InputOTP: React__default.FC<InputOTPProps>;
|
|
32
|
+
|
|
33
|
+
export { InputOTP, type InputOTPProps, InputOTP as default };
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import {
|
|
2
|
+
InputOTP,
|
|
3
|
+
InputOTP_default
|
|
4
|
+
} from "../chunk-IGBQGR6G.mjs";
|
|
5
|
+
import "../chunk-F6T3OLTQ.mjs";
|
|
6
|
+
import "../chunk-MEFARVQI.mjs";
|
|
7
|
+
import "../chunk-YSIXURBW.mjs";
|
|
8
|
+
import "../chunk-TGXBCKOU.mjs";
|
|
9
|
+
export {
|
|
10
|
+
InputOTP,
|
|
11
|
+
InputOTP_default as default
|
|
12
|
+
};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import React__default from 'react';
|
|
2
|
+
import { KbdProps as KbdProps$1 } from '@expcat/tigercat-core';
|
|
3
|
+
|
|
4
|
+
interface KbdProps extends Omit<KbdProps$1, 'style'>, Omit<React__default.ComponentPropsWithoutRef<'kbd'>, keyof KbdProps$1> {
|
|
5
|
+
children?: React__default.ReactNode;
|
|
6
|
+
style?: React__default.CSSProperties;
|
|
7
|
+
}
|
|
8
|
+
declare const Kbd: React__default.ForwardRefExoticComponent<KbdProps & React__default.RefAttributes<HTMLElement>>;
|
|
9
|
+
|
|
10
|
+
export { Kbd, type KbdProps, Kbd as default };
|
|
@@ -1,14 +1,15 @@
|
|
|
1
1
|
import {
|
|
2
2
|
LineChart,
|
|
3
3
|
LineChart_default
|
|
4
|
-
} from "../chunk-
|
|
5
|
-
import "../chunk-
|
|
4
|
+
} from "../chunk-TEVEXDY2.mjs";
|
|
5
|
+
import "../chunk-5JETWHLJ.mjs";
|
|
6
|
+
import "../chunk-JZZPLKTW.mjs";
|
|
7
|
+
import "../chunk-SDLMB34Y.mjs";
|
|
6
8
|
import "../chunk-YORCCCQX.mjs";
|
|
7
9
|
import "../chunk-RQSQXQN6.mjs";
|
|
8
|
-
import "../chunk-
|
|
10
|
+
import "../chunk-CUAXRBKO.mjs";
|
|
9
11
|
import "../chunk-677VSTPW.mjs";
|
|
10
12
|
import "../chunk-F2ITBDUS.mjs";
|
|
11
|
-
import "../chunk-SDLMB34Y.mjs";
|
|
12
13
|
export {
|
|
13
14
|
LineChart,
|
|
14
15
|
LineChart_default as default
|
package/dist/components/List.mjs
CHANGED
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { LoadingBarApi, LoadingBarOptions } from '@expcat/tigercat-core';
|
|
2
|
+
export { LoadingBarContainer, LoadingBarContainerProps } from './LoadingBarContainer.mjs';
|
|
3
|
+
import 'react';
|
|
4
|
+
|
|
5
|
+
type LoadingBarProps = LoadingBarOptions;
|
|
6
|
+
declare const LoadingBar: LoadingBarApi;
|
|
7
|
+
|
|
8
|
+
export { LoadingBar, type LoadingBarProps, LoadingBar as default };
|
|
@@ -0,0 +1,138 @@
|
|
|
1
|
+
import {
|
|
2
|
+
LoadingBarContainer
|
|
3
|
+
} from "../chunk-XT43B7ZI.mjs";
|
|
4
|
+
import {
|
|
5
|
+
getGlobalTigerLocale
|
|
6
|
+
} from "../chunk-TGXBCKOU.mjs";
|
|
7
|
+
|
|
8
|
+
// src/components/LoadingBar.tsx
|
|
9
|
+
import { useEffect, useState } from "react";
|
|
10
|
+
import { flushSync } from "react-dom";
|
|
11
|
+
import { createRoot } from "react-dom/client";
|
|
12
|
+
import {
|
|
13
|
+
createLoadingBarController,
|
|
14
|
+
isBrowser,
|
|
15
|
+
LOADING_BAR_CONTAINER_ROOT_ID,
|
|
16
|
+
resolveLoadingBarMountTarget
|
|
17
|
+
} from "@expcat/tigercat-core";
|
|
18
|
+
import { jsx } from "react/jsx-runtime";
|
|
19
|
+
var containerRoot = null;
|
|
20
|
+
var updateCallback = null;
|
|
21
|
+
var controller = null;
|
|
22
|
+
function getDefaultAriaLabel() {
|
|
23
|
+
return getGlobalTigerLocale()?.common?.loadingText;
|
|
24
|
+
}
|
|
25
|
+
function getController() {
|
|
26
|
+
if (!controller) {
|
|
27
|
+
controller = createLoadingBarController();
|
|
28
|
+
controller.subscribe(() => {
|
|
29
|
+
updateCallback?.();
|
|
30
|
+
});
|
|
31
|
+
}
|
|
32
|
+
return controller;
|
|
33
|
+
}
|
|
34
|
+
var LoadingBarHost = () => {
|
|
35
|
+
const [state, setState] = useState(() => getController().getState());
|
|
36
|
+
useEffect(() => {
|
|
37
|
+
updateCallback = () => {
|
|
38
|
+
setState(getController().getState());
|
|
39
|
+
};
|
|
40
|
+
setState(getController().getState());
|
|
41
|
+
return () => {
|
|
42
|
+
updateCallback = null;
|
|
43
|
+
};
|
|
44
|
+
}, []);
|
|
45
|
+
if (!state.visible) return null;
|
|
46
|
+
return /* @__PURE__ */ jsx(
|
|
47
|
+
LoadingBarContainer,
|
|
48
|
+
{
|
|
49
|
+
percentage: state.percentage,
|
|
50
|
+
status: state.status,
|
|
51
|
+
color: state.color,
|
|
52
|
+
height: state.height,
|
|
53
|
+
className: state.className,
|
|
54
|
+
style: state.style,
|
|
55
|
+
ariaLabel: state.ariaLabel
|
|
56
|
+
}
|
|
57
|
+
);
|
|
58
|
+
};
|
|
59
|
+
function ensureContainer(container) {
|
|
60
|
+
if (!isBrowser()) {
|
|
61
|
+
return;
|
|
62
|
+
}
|
|
63
|
+
const existingRootEl = document.getElementById(LOADING_BAR_CONTAINER_ROOT_ID);
|
|
64
|
+
if (containerRoot && !existingRootEl) {
|
|
65
|
+
containerRoot = null;
|
|
66
|
+
updateCallback = null;
|
|
67
|
+
}
|
|
68
|
+
if (containerRoot) {
|
|
69
|
+
return;
|
|
70
|
+
}
|
|
71
|
+
let rootEl = existingRootEl;
|
|
72
|
+
if (!rootEl) {
|
|
73
|
+
rootEl = document.createElement("div");
|
|
74
|
+
rootEl.id = LOADING_BAR_CONTAINER_ROOT_ID;
|
|
75
|
+
const mountTarget = resolveLoadingBarMountTarget(container) ?? document.body;
|
|
76
|
+
mountTarget.appendChild(rootEl);
|
|
77
|
+
}
|
|
78
|
+
containerRoot = createRoot(rootEl);
|
|
79
|
+
flushSync(() => {
|
|
80
|
+
containerRoot?.render(/* @__PURE__ */ jsx(LoadingBarHost, {}));
|
|
81
|
+
});
|
|
82
|
+
}
|
|
83
|
+
function teardownContainer() {
|
|
84
|
+
if (containerRoot) {
|
|
85
|
+
containerRoot.unmount();
|
|
86
|
+
containerRoot = null;
|
|
87
|
+
}
|
|
88
|
+
updateCallback = null;
|
|
89
|
+
if (isBrowser()) {
|
|
90
|
+
const rootEl = document.getElementById(LOADING_BAR_CONTAINER_ROOT_ID);
|
|
91
|
+
if (rootEl?.parentNode) {
|
|
92
|
+
rootEl.parentNode.removeChild(rootEl);
|
|
93
|
+
}
|
|
94
|
+
}
|
|
95
|
+
}
|
|
96
|
+
function withAriaLabel(options) {
|
|
97
|
+
if (options?.ariaLabel) return options;
|
|
98
|
+
const localeLabel = getDefaultAriaLabel();
|
|
99
|
+
if (!localeLabel && !options) return options;
|
|
100
|
+
return { ...options, ariaLabel: options?.ariaLabel ?? localeLabel };
|
|
101
|
+
}
|
|
102
|
+
var LoadingBar = {
|
|
103
|
+
start(options) {
|
|
104
|
+
const resolved = withAriaLabel(options);
|
|
105
|
+
const shouldUpdateExistingContainer = isBrowser() && containerRoot !== null && document.getElementById(LOADING_BAR_CONTAINER_ROOT_ID) !== null;
|
|
106
|
+
getController().start(resolved);
|
|
107
|
+
ensureContainer(resolved?.container);
|
|
108
|
+
if (shouldUpdateExistingContainer && updateCallback) {
|
|
109
|
+
updateCallback();
|
|
110
|
+
}
|
|
111
|
+
},
|
|
112
|
+
finish() {
|
|
113
|
+
getController().finish();
|
|
114
|
+
if (updateCallback) {
|
|
115
|
+
updateCallback();
|
|
116
|
+
} else if (getController().getState().visible) {
|
|
117
|
+
ensureContainer();
|
|
118
|
+
}
|
|
119
|
+
},
|
|
120
|
+
error() {
|
|
121
|
+
getController().error();
|
|
122
|
+
if (updateCallback) {
|
|
123
|
+
updateCallback();
|
|
124
|
+
} else {
|
|
125
|
+
ensureContainer();
|
|
126
|
+
}
|
|
127
|
+
},
|
|
128
|
+
clear() {
|
|
129
|
+
getController().clear();
|
|
130
|
+
teardownContainer();
|
|
131
|
+
}
|
|
132
|
+
};
|
|
133
|
+
var LoadingBar_default = LoadingBar;
|
|
134
|
+
export {
|
|
135
|
+
LoadingBar,
|
|
136
|
+
LoadingBarContainer,
|
|
137
|
+
LoadingBar_default as default
|
|
138
|
+
};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import React__default from 'react';
|
|
2
|
+
import { LoadingBarContainerProps as LoadingBarContainerProps$1 } from '@expcat/tigercat-core';
|
|
3
|
+
|
|
4
|
+
interface LoadingBarContainerProps extends LoadingBarContainerProps$1, Omit<React__default.HTMLAttributes<HTMLDivElement>, keyof LoadingBarContainerProps$1> {
|
|
5
|
+
}
|
|
6
|
+
declare const LoadingBarContainer: React__default.FC<LoadingBarContainerProps>;
|
|
7
|
+
|
|
8
|
+
export { LoadingBarContainer, type LoadingBarContainerProps, LoadingBarContainer as default };
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import React__default from 'react';
|
|
2
|
+
import { MarqueeProps as MarqueeProps$1 } from '@expcat/tigercat-core';
|
|
3
|
+
|
|
4
|
+
interface MarqueeProps extends Omit<MarqueeProps$1, 'style'>, Omit<React__default.ComponentPropsWithoutRef<'div'>, keyof MarqueeProps$1> {
|
|
5
|
+
children?: React__default.ReactNode;
|
|
6
|
+
style?: React__default.CSSProperties;
|
|
7
|
+
}
|
|
8
|
+
declare const Marquee: React__default.ForwardRefExoticComponent<MarqueeProps & React__default.RefAttributes<HTMLDivElement>>;
|
|
9
|
+
|
|
10
|
+
export { Marquee, type MarqueeProps, Marquee as default };
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import React__default from 'react';
|
|
2
|
+
import { MaskInputProps as MaskInputProps$1, MaskInputChangeDetail } from '@expcat/tigercat-core';
|
|
3
|
+
|
|
4
|
+
interface MaskInputProps extends MaskInputProps$1, Omit<React__default.InputHTMLAttributes<HTMLInputElement>, 'size' | 'value' | 'defaultValue' | 'autoComplete' | 'onChange' | 'onInput' | 'onFocus' | 'onBlur' | 'readOnly'> {
|
|
5
|
+
/**
|
|
6
|
+
* Additional CSS classes
|
|
7
|
+
*/
|
|
8
|
+
className?: string;
|
|
9
|
+
/**
|
|
10
|
+
* Internal shake trigger counter (used by FormItem)
|
|
11
|
+
* @internal
|
|
12
|
+
*/
|
|
13
|
+
_shakeTrigger?: number;
|
|
14
|
+
/**
|
|
15
|
+
* Change event handler, called with the raw (unmasked) value and detail
|
|
16
|
+
*/
|
|
17
|
+
onChange?: (value: string, detail: MaskInputChangeDetail) => void;
|
|
18
|
+
/**
|
|
19
|
+
* Called when every token slot is filled
|
|
20
|
+
*/
|
|
21
|
+
onComplete?: (value: string, maskedValue: string) => void;
|
|
22
|
+
/**
|
|
23
|
+
* Focus event handler
|
|
24
|
+
*/
|
|
25
|
+
onFocus?: (event: React__default.FocusEvent<HTMLInputElement>) => void;
|
|
26
|
+
/**
|
|
27
|
+
* Blur event handler
|
|
28
|
+
*/
|
|
29
|
+
onBlur?: (event: React__default.FocusEvent<HTMLInputElement>) => void;
|
|
30
|
+
/**
|
|
31
|
+
* Clear event handler
|
|
32
|
+
*/
|
|
33
|
+
onClear?: () => void;
|
|
34
|
+
}
|
|
35
|
+
declare const MaskInput: React__default.FC<MaskInputProps>;
|
|
36
|
+
|
|
37
|
+
export { MaskInput, type MaskInputProps, MaskInput as default };
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import React__default from 'react';
|
|
2
|
+
import { MasonryProps as MasonryProps$1, MasonryLayoutDetail, MasonryInstance } from '@expcat/tigercat-core';
|
|
3
|
+
|
|
4
|
+
interface MasonryProps extends MasonryProps$1, Omit<React__default.HTMLAttributes<HTMLDivElement>, 'className'> {
|
|
5
|
+
/** Fired after the layout is (re)computed */
|
|
6
|
+
onLayout?: (detail: MasonryLayoutDetail) => void;
|
|
7
|
+
}
|
|
8
|
+
declare const Masonry: React__default.ForwardRefExoticComponent<MasonryProps & React__default.RefAttributes<MasonryInstance>>;
|
|
9
|
+
|
|
10
|
+
export { Masonry, type MasonryProps, Masonry as default };
|