@expcat/tigercat-react 1.3.4 → 1.4.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{chunk-3SV6J7I5.mjs → chunk-2L7QEOFD.mjs} +34 -25
- package/dist/{chunk-FNJDBFKM.mjs → chunk-2LYV6NBJ.mjs} +6 -1
- package/dist/{chunk-EEWHWEYO.js → chunk-2RBHQBSG.js} +2 -2
- package/dist/{chunk-Y5RQN5BO.mjs → chunk-376X7SDZ.mjs} +2 -2
- package/dist/{chunk-UXUYCWQC.js → chunk-3EDASNTG.js} +5 -5
- package/dist/{chunk-NPTXXUXF.mjs → chunk-3RBRWBUG.mjs} +9 -7
- package/dist/{chunk-PUZDW7NR.js → chunk-4AMSYFYC.js} +134 -20
- package/dist/{chunk-IG75YSX3.mjs → chunk-4MONGWU5.mjs} +4 -6
- package/dist/{chunk-3CJFNG54.mjs → chunk-56CTXEJS.mjs} +1 -1
- package/dist/{chunk-TMON4MPO.js → chunk-5ALMTE35.js} +9 -7
- package/dist/{chunk-MSHCPJIJ.mjs → chunk-6BOSSZM3.mjs} +8 -9
- package/dist/{chunk-SIY6FDKJ.js → chunk-7CHTTM6D.js} +339 -314
- package/dist/{chunk-RF2BA2N6.js → chunk-7PXALKLM.js} +4 -4
- package/dist/{chunk-DLKUDB2R.js → chunk-AF2AEZKM.js} +15 -3
- package/dist/{chunk-FB34UWF7.mjs → chunk-AVLIUHOS.mjs} +101 -40
- package/dist/{chunk-TSJYAEFZ.js → chunk-B63GEB2Y.js} +358 -305
- package/dist/{chunk-6I6X255M.js → chunk-BA6TJQZL.js} +12 -12
- package/dist/{chunk-LMTUM3J3.js → chunk-BEM7XG2L.js} +2 -4
- package/dist/{chunk-MB6U72CI.js → chunk-BEZO5IE4.js} +2 -2
- package/dist/{chunk-5OHVTGHS.mjs → chunk-BN4ZKCAI.mjs} +368 -315
- package/dist/{chunk-UHFHOTNI.js → chunk-BRA3PO53.js} +6 -7
- package/dist/{chunk-M7HBWFQO.js → chunk-BROIZ266.js} +11 -1
- package/dist/{chunk-SDZOVRVR.mjs → chunk-CAQPYJFA.mjs} +350 -325
- package/dist/{chunk-BFAZZUD6.js → chunk-CC5GFX6F.js} +5 -22
- package/dist/{chunk-LQT6ZGME.mjs → chunk-CME2IFUT.mjs} +15 -3
- package/dist/{chunk-KQ5I7PRM.js → chunk-CNNEUJR2.js} +28 -14
- package/dist/{chunk-EF5ZTNHX.js → chunk-D5MQBUP2.js} +16 -4
- package/dist/{chunk-RQXY2MGX.mjs → chunk-D7UR526A.mjs} +231 -184
- package/dist/{chunk-CBYJXDW4.js → chunk-DBMC6FPU.js} +16 -4
- package/dist/{chunk-WQ4FOHOU.mjs → chunk-DEIVWO2D.mjs} +3 -5
- package/dist/{chunk-7QZ4XT2P.mjs → chunk-DVEK5SO6.mjs} +3 -8
- package/dist/{chunk-TC6JLEGZ.js → chunk-EJKOUI26.js} +24 -7
- package/dist/{chunk-4GITZKAH.mjs → chunk-EPJ6W4VI.mjs} +14 -2
- package/dist/{chunk-KYP7U6FK.js → chunk-FZHBVHQ6.js} +34 -25
- package/dist/{chunk-WVVXZKNI.js → chunk-GDPU5MYA.js} +3 -8
- package/dist/{chunk-2GQCFTD7.mjs → chunk-H4MPPCTB.mjs} +23 -4
- package/dist/{chunk-YOAYDEWW.mjs → chunk-HHMYERHY.mjs} +3 -20
- package/dist/{chunk-LRPPXU74.mjs → chunk-I7FEGKX2.mjs} +19 -5
- package/dist/{chunk-F6IXIH6B.mjs → chunk-IZGXDHPB.mjs} +24 -5
- package/dist/{chunk-GQFVVAEF.js → chunk-J6OZWT3P.js} +5 -5
- package/dist/{chunk-IGAMV6ML.mjs → chunk-KDXKF6B2.mjs} +1 -1
- package/dist/{chunk-A42OLED6.mjs → chunk-KED5S2WG.mjs} +13 -2
- package/dist/{chunk-BJQIYELW.mjs → chunk-KGMVRIYC.mjs} +5 -5
- package/dist/{chunk-6GYT3EZD.mjs → chunk-KXT2TP6A.mjs} +3 -4
- package/dist/{chunk-BBLVRLXT.js → chunk-KYNWNTGO.js} +230 -146
- package/dist/{chunk-M73NMNZX.js → chunk-L24PPXLV.js} +17 -5
- package/dist/chunk-L3WPA2RP.js +25 -0
- package/dist/{chunk-V4JIZN3E.mjs → chunk-L6KSO66F.mjs} +4 -12
- package/dist/{chunk-4LX5UGPQ.js → chunk-LJRCEB7F.js} +168 -121
- package/dist/{chunk-F7H4ALKN.js → chunk-LZG24TDB.js} +8 -9
- package/dist/{chunk-ZYJTHGQW.js → chunk-M3FVPPMM.js} +9 -13
- package/dist/{chunk-GN3TSQWW.mjs → chunk-M6YXUNOU.mjs} +2 -2
- package/dist/{chunk-I373B74W.js → chunk-MC26ORSN.js} +102 -41
- package/dist/{chunk-5HFHHFQS.mjs → chunk-MTIGGMHG.mjs} +17 -5
- package/dist/{chunk-DKT2EYVM.mjs → chunk-MV2JQ6XQ.mjs} +3 -6
- package/dist/{chunk-HR5GBE3P.js → chunk-NDGA3N6H.js} +19 -7
- package/dist/{chunk-PU7KEYLP.mjs → chunk-NEZ445D4.mjs} +9 -9
- package/dist/{chunk-4U5HSR2H.js → chunk-NVI2P7VH.js} +3 -4
- package/dist/{chunk-NVEIVIAW.mjs → chunk-OFRKYQOZ.mjs} +133 -19
- package/dist/{chunk-AW5M3EL4.js → chunk-OS6M3IZF.js} +62 -12
- package/dist/{chunk-3ZNZLGQO.mjs → chunk-OXQOKKTP.mjs} +6 -7
- package/dist/{chunk-NMEVQPOD.js → chunk-PHAJXRGE.js} +2 -4
- package/dist/{chunk-WG3YS2QV.js → chunk-PT5T5F4H.js} +13 -2
- package/dist/{chunk-WNLUUD5N.mjs → chunk-QIL24WZD.mjs} +8 -12
- package/dist/{chunk-ZFMMAYSX.js → chunk-QLATA4UB.js} +4 -6
- package/dist/{chunk-2TZ3SBMU.mjs → chunk-RVLV63SI.mjs} +16 -11
- package/dist/{chunk-3QPCQH62.mjs → chunk-RYNLPRUM.mjs} +1 -1
- package/dist/{chunk-6GIJ7NFV.mjs → chunk-SDZKL3IB.mjs} +3 -5
- package/dist/{chunk-G5USITWF.js → chunk-SH4BZYXO.js} +27 -8
- package/dist/{chunk-L5AMVEQL.mjs → chunk-SLEXEH7R.mjs} +60 -10
- package/dist/{chunk-JLRRXRZO.js → chunk-SQONS5PH.js} +4 -7
- package/dist/chunk-SQTOVSDU.mjs +692 -0
- package/dist/{chunk-ITRYKHQJ.js → chunk-TEYL5X56.js} +19 -14
- package/dist/{chunk-KGSDDVRC.mjs → chunk-TNTOSFGN.mjs} +4 -4
- package/dist/{chunk-CY5GRTAX.js → chunk-UAM3RQY4.js} +24 -5
- package/dist/{chunk-XRNKHQTL.js → chunk-UEAXYZSE.js} +3 -2
- package/dist/{chunk-7ISEWLA3.js → chunk-UKQMF3JV.js} +21 -6
- package/dist/{chunk-ITVLIR7T.mjs → chunk-ULWT6W6M.mjs} +13 -20
- package/dist/{chunk-M5GSLKUX.mjs → chunk-VAIWWELW.mjs} +15 -3
- package/dist/{chunk-4SO4LANY.js → chunk-VC26SAXB.js} +340 -274
- package/dist/{chunk-SKMZTW3K.js → chunk-WCTNQYXO.js} +16 -23
- package/dist/{chunk-KXNWY2Q7.mjs → chunk-WFWEMXO7.mjs} +241 -157
- package/dist/chunk-WHYHLUXG.mjs +25 -0
- package/dist/{chunk-ONTRGV5T.js → chunk-WZUADPYB.js} +6 -14
- package/dist/{chunk-N4PP3ENO.js → chunk-XTQUPDRI.js} +2 -2
- package/dist/{chunk-XATXFVKR.mjs → chunk-Y7K27DVV.mjs} +4 -3
- package/dist/{chunk-WI4N5DD3.mjs → chunk-YH57D4AV.mjs} +16 -4
- package/dist/{chunk-3MRP3XYI.js → chunk-YRVAF2ID.js} +7 -2
- package/dist/{chunk-5XE5VBDS.mjs → chunk-YSGM22AH.mjs} +11 -1
- package/dist/{chunk-6TR7JB6C.js → chunk-ZDNQGS4O.js} +4 -4
- package/dist/{chunk-CHBUNQIJ.mjs → chunk-ZQSMJS2Q.mjs} +23 -6
- package/dist/{chunk-QQFLRNI3.mjs → chunk-ZRZB3C5J.mjs} +18 -3
- package/dist/components/ActivityFeed.js +4 -3
- package/dist/components/ActivityFeed.mjs +3 -2
- package/dist/components/Cascader.d.mts +3 -1
- package/dist/components/Cascader.d.ts +3 -1
- package/dist/components/Cascader.js +3 -2
- package/dist/components/Cascader.mjs +2 -1
- package/dist/components/ChatWindow.js +5 -5
- package/dist/components/ChatWindow.mjs +4 -4
- package/dist/components/Checkbox.js +4 -4
- package/dist/components/Checkbox.mjs +3 -3
- package/dist/components/CheckboxGroup.js +3 -3
- package/dist/components/CheckboxGroup.mjs +2 -2
- package/dist/components/CommentThread.js +4 -4
- package/dist/components/CommentThread.mjs +3 -3
- package/dist/components/CropUpload.js +4 -4
- package/dist/components/CropUpload.mjs +3 -3
- package/dist/components/DataTableWithToolbar.d.mts +2 -2
- package/dist/components/DataTableWithToolbar.d.ts +2 -2
- package/dist/components/DataTableWithToolbar.js +11 -11
- package/dist/components/DataTableWithToolbar.mjs +10 -10
- package/dist/components/DatePicker.d.mts +1 -0
- package/dist/components/DatePicker.d.ts +1 -0
- package/dist/components/DatePicker.js +3 -2
- package/dist/components/DatePicker.mjs +2 -1
- package/dist/components/Drawer.js +3 -3
- package/dist/components/Drawer.mjs +2 -2
- package/dist/components/FileManager.d.mts +2 -1
- package/dist/components/FileManager.d.ts +2 -1
- package/dist/components/FileManager.js +3 -2
- package/dist/components/FileManager.mjs +2 -1
- package/dist/components/Form.js +3 -2
- package/dist/components/Form.mjs +2 -1
- package/dist/components/FormItem.js +4 -3
- package/dist/components/FormItem.mjs +3 -2
- package/dist/components/FormWizard.js +4 -4
- package/dist/components/FormWizard.mjs +3 -3
- package/dist/components/Image.js +4 -4
- package/dist/components/Image.mjs +3 -3
- package/dist/components/ImageGroup.js +3 -3
- package/dist/components/ImageGroup.mjs +2 -2
- package/dist/components/ImagePreview.js +2 -2
- package/dist/components/ImagePreview.mjs +1 -1
- package/dist/components/ImageViewer.d.mts +1 -1
- package/dist/components/ImageViewer.d.ts +1 -1
- package/dist/components/ImageViewer.js +2 -2
- package/dist/components/ImageViewer.mjs +1 -1
- package/dist/components/InfiniteScroll.d.mts +2 -0
- package/dist/components/InfiniteScroll.d.ts +2 -0
- package/dist/components/InfiniteScroll.js +3 -2
- package/dist/components/InfiniteScroll.mjs +2 -1
- package/dist/components/Input.js +3 -2
- package/dist/components/Input.mjs +2 -1
- package/dist/components/InputNumber.js +3 -2
- package/dist/components/InputNumber.mjs +2 -1
- package/dist/components/List.d.mts +6 -2
- package/dist/components/List.d.ts +6 -2
- package/dist/components/List.js +3 -2
- package/dist/components/List.mjs +2 -1
- package/dist/components/Loading.js +3 -2
- package/dist/components/Loading.mjs +2 -1
- package/dist/components/MarkdownEditor.js +3 -3
- package/dist/components/MarkdownEditor.mjs +2 -2
- package/dist/components/Mentions.js +2 -2
- package/dist/components/Mentions.mjs +1 -1
- package/dist/components/Menu.d.mts +8 -80
- package/dist/components/Menu.d.ts +8 -80
- package/dist/components/Menu.js +2 -2
- package/dist/components/Menu.mjs +1 -1
- package/dist/components/MenuItem.d.mts +6 -2
- package/dist/components/MenuItem.d.ts +6 -2
- package/dist/components/MenuItem.js +2 -2
- package/dist/components/MenuItem.mjs +1 -1
- package/dist/components/MenuItemGroup.d.mts +6 -2
- package/dist/components/MenuItemGroup.d.ts +6 -2
- package/dist/components/MenuItemGroup.js +2 -2
- package/dist/components/MenuItemGroup.mjs +1 -1
- package/dist/components/Message.js +2 -2
- package/dist/components/Message.mjs +1 -1
- package/dist/components/Modal.js +3 -3
- package/dist/components/Modal.mjs +2 -2
- package/dist/components/Notification.js +2 -2
- package/dist/components/Notification.mjs +1 -1
- package/dist/components/NotificationCenter.js +5 -4
- package/dist/components/NotificationCenter.mjs +4 -3
- package/dist/components/NumberKeyboard.js +3 -2
- package/dist/components/NumberKeyboard.mjs +2 -1
- package/dist/components/Radio.js +4 -4
- package/dist/components/Radio.mjs +3 -3
- package/dist/components/RadioGroup.js +3 -3
- package/dist/components/RadioGroup.mjs +2 -2
- package/dist/components/RichTextEditor.js +3 -3
- package/dist/components/RichTextEditor.mjs +2 -2
- package/dist/components/Select.d.mts +3 -1
- package/dist/components/Select.d.ts +3 -1
- package/dist/components/Select.js +3 -2
- package/dist/components/Select.mjs +2 -1
- package/dist/components/Signature.d.mts +1 -0
- package/dist/components/Signature.d.ts +1 -0
- package/dist/components/Signature.js +3 -2
- package/dist/components/Signature.mjs +2 -1
- package/dist/components/Spotlight.js +4 -2
- package/dist/components/Spotlight.mjs +3 -1
- package/dist/components/Steps.js +2 -2
- package/dist/components/Steps.mjs +1 -1
- package/dist/components/StepsItem.js +2 -2
- package/dist/components/StepsItem.mjs +1 -1
- package/dist/components/SubMenu.d.mts +6 -2
- package/dist/components/SubMenu.d.ts +6 -2
- package/dist/components/SubMenu.js +2 -2
- package/dist/components/SubMenu.mjs +1 -1
- package/dist/components/Table.d.mts +2 -2
- package/dist/components/Table.d.ts +2 -2
- package/dist/components/Table.js +9 -9
- package/dist/components/Table.mjs +8 -8
- package/dist/components/Textarea.js +3 -3
- package/dist/components/Textarea.mjs +2 -2
- package/dist/components/TimePicker.d.mts +1 -0
- package/dist/components/TimePicker.d.ts +1 -0
- package/dist/components/TimePicker.js +4 -2
- package/dist/components/TimePicker.mjs +3 -1
- package/dist/components/Tour.js +3 -2
- package/dist/components/Tour.mjs +2 -1
- package/dist/components/Transfer.d.mts +3 -1
- package/dist/components/Transfer.d.ts +3 -1
- package/dist/components/Transfer.js +3 -2
- package/dist/components/Transfer.mjs +2 -1
- package/dist/components/Tree.d.mts +3 -1
- package/dist/components/Tree.d.ts +3 -1
- package/dist/components/Tree.js +3 -2
- package/dist/components/Tree.mjs +2 -1
- package/dist/components/TreeSelect.d.mts +3 -1
- package/dist/components/TreeSelect.d.ts +3 -1
- package/dist/components/TreeSelect.js +3 -2
- package/dist/components/TreeSelect.mjs +2 -1
- package/dist/components/Upload.js +3 -2
- package/dist/components/Upload.mjs +2 -1
- package/dist/components/VirtualTable.d.mts +3 -2
- package/dist/components/VirtualTable.d.ts +3 -2
- package/dist/components/VirtualTable.js +3 -2
- package/dist/components/VirtualTable.mjs +2 -1
- package/dist/index.d.mts +33 -7
- package/dist/index.d.ts +33 -7
- package/dist/index.js +54 -54
- package/dist/index.mjs +53 -53
- package/dist/{types-CHmCMNEM.d.mts → types-0oVwMXtR.d.mts} +1 -1
- package/dist/{types-CHmCMNEM.d.ts → types-0oVwMXtR.d.ts} +1 -1
- package/dist/types-DaC4a0Ny.d.mts +80 -0
- package/dist/types-DaC4a0Ny.d.ts +80 -0
- package/package.json +2 -2
- package/dist/chunk-UKGQ7256.js +0 -12
- package/dist/chunk-UQMPEMY7.mjs +0 -12
- package/dist/chunk-VNVGSPBI.mjs +0 -626
- package/dist/{chunk-OZD75CLT.js → chunk-ANBNSUSR.js} +3 -3
- package/dist/{chunk-I2AUOICV.mjs → chunk-M3MOSUZO.mjs} +3 -3
- package/dist/{chunk-UMZ3PMUJ.js → chunk-SXHCMZ6U.js} +2 -2
- package/dist/{chunk-BWDQZSAB.mjs → chunk-WTSG7QXK.mjs} +3 -3
|
@@ -1,8 +1,10 @@
|
|
|
1
1
|
import {
|
|
2
2
|
Spotlight,
|
|
3
3
|
Spotlight_default
|
|
4
|
-
} from "../chunk-
|
|
4
|
+
} from "../chunk-2L7QEOFD.mjs";
|
|
5
|
+
import "../chunk-WHYHLUXG.mjs";
|
|
5
6
|
import "../chunk-SEWNVIHH.mjs";
|
|
7
|
+
import "../chunk-QAIBQHIO.mjs";
|
|
6
8
|
export {
|
|
7
9
|
Spotlight,
|
|
8
10
|
Spotlight_default as default
|
package/dist/components/Steps.js
CHANGED
|
@@ -2,9 +2,9 @@
|
|
|
2
2
|
|
|
3
3
|
|
|
4
4
|
|
|
5
|
-
var
|
|
5
|
+
var _chunkBROIZ266js = require('../chunk-BROIZ266.js');
|
|
6
6
|
|
|
7
7
|
|
|
8
8
|
|
|
9
9
|
|
|
10
|
-
exports.Steps =
|
|
10
|
+
exports.Steps = _chunkBROIZ266js.Steps; exports.StepsItem = _chunkBROIZ266js.StepsItem; exports.useStepsContext = _chunkBROIZ266js.useStepsContext;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var _chunkBROIZ266js = require('../chunk-BROIZ266.js');
|
|
4
4
|
|
|
5
5
|
|
|
6
|
-
exports.StepsItem =
|
|
6
|
+
exports.StepsItem = _chunkBROIZ266js.StepsItem;
|
|
@@ -1,3 +1,7 @@
|
|
|
1
|
-
|
|
2
|
-
import 'react';
|
|
1
|
+
import { S as SubMenuProps } from '../types-DaC4a0Ny.mjs';
|
|
2
|
+
import React from 'react';
|
|
3
3
|
import '@expcat/tigercat-core';
|
|
4
|
+
|
|
5
|
+
declare const SubMenu: React.FC<SubMenuProps>;
|
|
6
|
+
|
|
7
|
+
export { SubMenu, SubMenuProps, SubMenu as default };
|
|
@@ -1,3 +1,7 @@
|
|
|
1
|
-
|
|
2
|
-
import 'react';
|
|
1
|
+
import { S as SubMenuProps } from '../types-DaC4a0Ny.js';
|
|
2
|
+
import React from 'react';
|
|
3
3
|
import '@expcat/tigercat-core';
|
|
4
|
+
|
|
5
|
+
declare const SubMenu: React.FC<SubMenuProps>;
|
|
6
|
+
|
|
7
|
+
export { SubMenu, SubMenuProps, SubMenu as default };
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var _chunkLJRCEB7Fjs = require('../chunk-LJRCEB7F.js');
|
|
4
4
|
require('../chunk-STTQ5LXX.js');
|
|
5
5
|
|
|
6
6
|
|
|
7
7
|
|
|
8
|
-
exports.SubMenu =
|
|
8
|
+
exports.SubMenu = _chunkLJRCEB7Fjs.SubMenu; exports.default = _chunkLJRCEB7Fjs.SubMenu;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
|
-
import { T as TableProps } from '../types-
|
|
2
|
+
import { T as TableProps } from '../types-0oVwMXtR.mjs';
|
|
3
3
|
import '@expcat/tigercat-core';
|
|
4
4
|
|
|
5
|
-
declare function Table<T extends Record<string, unknown> = Record<string, unknown>>({ columns, columnLockable, dataSource, hiddenColumnKeys, defaultHiddenColumnKeys, sort, defaultSort, filters, defaultFilters, size, bordered, striped, hoverable, loading, locale, labels, emptyText, pagination, rowSelection, expandable, rowKey, rowClassName, stickyHeader, maxHeight, tableLayout, responsiveMode, cardBreakpoint, cardClassName, renderCard, cardLayout, cardSelectionPosition, cardPadding, cardFieldGap, virtual, autoVirtual, virtualHeight, virtualItemHeight: _virtualItemHeight, autoVirtualThreshold, virtualThreshold, editable, editableCells, filterMode, advancedFilterRules, columnDraggable, rowDraggable, summaryRow, groupBy, exportable, exportFormat, exportFilename, onChange, onRowClick, onSelectionChange, onSortChange, onFilterChange,
|
|
5
|
+
declare function Table<T extends Record<string, unknown> = Record<string, unknown>>({ columns, columnLockable, dataSource, hiddenColumnKeys, defaultHiddenColumnKeys, sort, defaultSort, filters, defaultFilters, size, bordered, striped, hoverable, loading, locale, labels, emptyText, pagination, rowSelection, expandable, rowKey, rowClassName, stickyHeader, maxHeight, tableLayout, responsiveMode, cardBreakpoint, cardClassName, renderCard, cardLayout, cardSelectionPosition, cardPadding, cardFieldGap, virtual, autoVirtual, virtualHeight, virtualItemHeight: _virtualItemHeight, autoVirtualThreshold, virtualThreshold, editable, editableCells, filterMode, advancedFilterRules, columnDraggable, rowDraggable, summaryRow, groupBy, exportable, exportFormat, exportFilename, onChange, onRowClick, onSelectionChange, onSortChange, onFilterChange, onHiddenColumnKeysChange, onPageChange, onExpandChange, onCellChange, onColumnOrderChange, onRowOrderChange, onExport, className, ...props }: TableProps<T>): react_jsx_runtime.JSX.Element;
|
|
6
6
|
|
|
7
7
|
export { Table, TableProps };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
|
-
import { T as TableProps } from '../types-
|
|
2
|
+
import { T as TableProps } from '../types-0oVwMXtR.js';
|
|
3
3
|
import '@expcat/tigercat-core';
|
|
4
4
|
|
|
5
|
-
declare function Table<T extends Record<string, unknown> = Record<string, unknown>>({ columns, columnLockable, dataSource, hiddenColumnKeys, defaultHiddenColumnKeys, sort, defaultSort, filters, defaultFilters, size, bordered, striped, hoverable, loading, locale, labels, emptyText, pagination, rowSelection, expandable, rowKey, rowClassName, stickyHeader, maxHeight, tableLayout, responsiveMode, cardBreakpoint, cardClassName, renderCard, cardLayout, cardSelectionPosition, cardPadding, cardFieldGap, virtual, autoVirtual, virtualHeight, virtualItemHeight: _virtualItemHeight, autoVirtualThreshold, virtualThreshold, editable, editableCells, filterMode, advancedFilterRules, columnDraggable, rowDraggable, summaryRow, groupBy, exportable, exportFormat, exportFilename, onChange, onRowClick, onSelectionChange, onSortChange, onFilterChange,
|
|
5
|
+
declare function Table<T extends Record<string, unknown> = Record<string, unknown>>({ columns, columnLockable, dataSource, hiddenColumnKeys, defaultHiddenColumnKeys, sort, defaultSort, filters, defaultFilters, size, bordered, striped, hoverable, loading, locale, labels, emptyText, pagination, rowSelection, expandable, rowKey, rowClassName, stickyHeader, maxHeight, tableLayout, responsiveMode, cardBreakpoint, cardClassName, renderCard, cardLayout, cardSelectionPosition, cardPadding, cardFieldGap, virtual, autoVirtual, virtualHeight, virtualItemHeight: _virtualItemHeight, autoVirtualThreshold, virtualThreshold, editable, editableCells, filterMode, advancedFilterRules, columnDraggable, rowDraggable, summaryRow, groupBy, exportable, exportFormat, exportFilename, onChange, onRowClick, onSelectionChange, onSortChange, onFilterChange, onHiddenColumnKeysChange, onPageChange, onExpandChange, onCellChange, onColumnOrderChange, onRowOrderChange, onExport, className, ...props }: TableProps<T>): react_jsx_runtime.JSX.Element;
|
|
6
6
|
|
|
7
7
|
export { Table, TableProps };
|
package/dist/components/Table.js
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
2
|
|
|
3
|
-
var
|
|
4
|
-
require('../chunk-
|
|
5
|
-
require('../chunk-
|
|
6
|
-
require('../chunk-
|
|
7
|
-
require('../chunk-TDODFBBO.js');
|
|
3
|
+
var _chunkTEYL5X56js = require('../chunk-TEYL5X56.js');
|
|
4
|
+
require('../chunk-KYNWNTGO.js');
|
|
5
|
+
require('../chunk-5ALMTE35.js');
|
|
6
|
+
require('../chunk-QLATA4UB.js');
|
|
8
7
|
require('../chunk-ZRHDNGWO.js');
|
|
9
|
-
require('../chunk-
|
|
10
|
-
require('../chunk-
|
|
11
|
-
require('../chunk-
|
|
8
|
+
require('../chunk-LZG24TDB.js');
|
|
9
|
+
require('../chunk-SQONS5PH.js');
|
|
10
|
+
require('../chunk-L3WPA2RP.js');
|
|
11
|
+
require('../chunk-TDODFBBO.js');
|
|
12
12
|
|
|
13
13
|
|
|
14
|
-
exports.Table =
|
|
14
|
+
exports.Table = _chunkTEYL5X56js.Table;
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import {
|
|
2
2
|
Table
|
|
3
|
-
} from "../chunk-
|
|
4
|
-
import "../chunk-
|
|
5
|
-
import "../chunk-
|
|
6
|
-
import "../chunk-
|
|
7
|
-
import "../chunk-QAIBQHIO.mjs";
|
|
3
|
+
} from "../chunk-RVLV63SI.mjs";
|
|
4
|
+
import "../chunk-WFWEMXO7.mjs";
|
|
5
|
+
import "../chunk-3RBRWBUG.mjs";
|
|
6
|
+
import "../chunk-4MONGWU5.mjs";
|
|
8
7
|
import "../chunk-WIWTY74F.mjs";
|
|
9
|
-
import "../chunk-
|
|
10
|
-
import "../chunk-
|
|
11
|
-
import "../chunk-
|
|
8
|
+
import "../chunk-6BOSSZM3.mjs";
|
|
9
|
+
import "../chunk-MV2JQ6XQ.mjs";
|
|
10
|
+
import "../chunk-WHYHLUXG.mjs";
|
|
11
|
+
import "../chunk-QAIBQHIO.mjs";
|
|
12
12
|
export {
|
|
13
13
|
Table
|
|
14
14
|
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
2
|
|
|
3
|
-
var
|
|
4
|
-
require('../chunk-
|
|
3
|
+
var _chunkGDPU5MYAjs = require('../chunk-GDPU5MYA.js');
|
|
4
|
+
require('../chunk-L3WPA2RP.js');
|
|
5
5
|
|
|
6
6
|
|
|
7
|
-
exports.Textarea =
|
|
7
|
+
exports.Textarea = _chunkGDPU5MYAjs.Textarea;
|
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var _chunkVC26SAXBjs = require('../chunk-VC26SAXB.js');
|
|
4
|
+
require('../chunk-L3WPA2RP.js');
|
|
5
|
+
require('../chunk-TDODFBBO.js');
|
|
4
6
|
|
|
5
7
|
|
|
6
|
-
exports.TimePicker =
|
|
8
|
+
exports.TimePicker = _chunkVC26SAXBjs.TimePicker;
|
package/dist/components/Tour.js
CHANGED
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var _chunkCNNEUJR2js = require('../chunk-CNNEUJR2.js');
|
|
4
|
+
require('../chunk-TDODFBBO.js');
|
|
4
5
|
require('../chunk-HQ3QOT7H.js');
|
|
5
6
|
|
|
6
7
|
|
|
7
|
-
exports.Tour =
|
|
8
|
+
exports.Tour = _chunkCNNEUJR2js.Tour;
|
package/dist/components/Tour.mjs
CHANGED
|
@@ -1,11 +1,13 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { TransferProps as TransferProps$1 } from '@expcat/tigercat-core';
|
|
2
|
+
import { TransferProps as TransferProps$1, TigerLocale } from '@expcat/tigercat-core';
|
|
3
3
|
|
|
4
4
|
interface TransferProps extends TransferProps$1, Omit<React.HTMLAttributes<HTMLDivElement>, 'onChange'> {
|
|
5
5
|
/** Controlled target keys */
|
|
6
6
|
value?: (string | number)[];
|
|
7
7
|
/** Called when target keys change */
|
|
8
8
|
onChange?: (targetKeys: (string | number)[], direction: 'left' | 'right', movedKeys: (string | number)[]) => void;
|
|
9
|
+
/** Locale overrides merged on top of ConfigProvider locale */
|
|
10
|
+
locale?: Partial<TigerLocale>;
|
|
9
11
|
}
|
|
10
12
|
declare const Transfer: React.FC<TransferProps>;
|
|
11
13
|
|
|
@@ -1,11 +1,13 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { TransferProps as TransferProps$1 } from '@expcat/tigercat-core';
|
|
2
|
+
import { TransferProps as TransferProps$1, TigerLocale } from '@expcat/tigercat-core';
|
|
3
3
|
|
|
4
4
|
interface TransferProps extends TransferProps$1, Omit<React.HTMLAttributes<HTMLDivElement>, 'onChange'> {
|
|
5
5
|
/** Controlled target keys */
|
|
6
6
|
value?: (string | number)[];
|
|
7
7
|
/** Called when target keys change */
|
|
8
8
|
onChange?: (targetKeys: (string | number)[], direction: 'left' | 'right', movedKeys: (string | number)[]) => void;
|
|
9
|
+
/** Locale overrides merged on top of ConfigProvider locale */
|
|
10
|
+
locale?: Partial<TigerLocale>;
|
|
9
11
|
}
|
|
10
12
|
declare const Transfer: React.FC<TransferProps>;
|
|
11
13
|
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var _chunkD5MQBUP2js = require('../chunk-D5MQBUP2.js');
|
|
4
|
+
require('../chunk-TDODFBBO.js');
|
|
4
5
|
|
|
5
6
|
|
|
6
|
-
exports.Transfer =
|
|
7
|
+
exports.Transfer = _chunkD5MQBUP2js.Transfer;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { TreeNode, TreeSelectionMode, TreeCheckedState, TreeCheckStrategy, TreeLoadDataFn, TreeFilterFn } from '@expcat/tigercat-core';
|
|
2
|
+
import { TreeNode, TreeSelectionMode, TreeCheckedState, TreeCheckStrategy, TreeLoadDataFn, TreeFilterFn, TigerLocale } from '@expcat/tigercat-core';
|
|
3
3
|
|
|
4
4
|
interface TreeProps {
|
|
5
5
|
/**
|
|
@@ -185,7 +185,9 @@ interface TreeProps {
|
|
|
185
185
|
* @since 1.x
|
|
186
186
|
*/
|
|
187
187
|
itemHeight?: number;
|
|
188
|
+
locale?: Partial<TigerLocale>;
|
|
188
189
|
}
|
|
190
|
+
|
|
189
191
|
declare const Tree: React.FC<TreeProps>;
|
|
190
192
|
|
|
191
193
|
export { Tree, type TreeProps, Tree as default };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { TreeNode, TreeSelectionMode, TreeCheckedState, TreeCheckStrategy, TreeLoadDataFn, TreeFilterFn } from '@expcat/tigercat-core';
|
|
2
|
+
import { TreeNode, TreeSelectionMode, TreeCheckedState, TreeCheckStrategy, TreeLoadDataFn, TreeFilterFn, TigerLocale } from '@expcat/tigercat-core';
|
|
3
3
|
|
|
4
4
|
interface TreeProps {
|
|
5
5
|
/**
|
|
@@ -185,7 +185,9 @@ interface TreeProps {
|
|
|
185
185
|
* @since 1.x
|
|
186
186
|
*/
|
|
187
187
|
itemHeight?: number;
|
|
188
|
+
locale?: Partial<TigerLocale>;
|
|
188
189
|
}
|
|
190
|
+
|
|
189
191
|
declare const Tree: React.FC<TreeProps>;
|
|
190
192
|
|
|
191
193
|
export { Tree, type TreeProps, Tree as default };
|
package/dist/components/Tree.js
CHANGED
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
2
|
|
|
3
3
|
|
|
4
|
-
var
|
|
4
|
+
var _chunk7CHTTM6Djs = require('../chunk-7CHTTM6D.js');
|
|
5
5
|
require('../chunk-P36GX65N.js');
|
|
6
|
+
require('../chunk-TDODFBBO.js');
|
|
6
7
|
|
|
7
8
|
|
|
8
9
|
|
|
9
|
-
exports.Tree =
|
|
10
|
+
exports.Tree = _chunk7CHTTM6Djs.Tree; exports.default = _chunk7CHTTM6Djs.Tree_default;
|
package/dist/components/Tree.mjs
CHANGED
|
@@ -1,11 +1,13 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { TreeSelectProps as TreeSelectProps$1, TreeSelectValue } from '@expcat/tigercat-core';
|
|
2
|
+
import { TreeSelectProps as TreeSelectProps$1, TreeSelectValue, TigerLocale } from '@expcat/tigercat-core';
|
|
3
3
|
|
|
4
4
|
interface TreeSelectProps extends TreeSelectProps$1, Omit<React.HTMLAttributes<HTMLDivElement>, 'onChange'> {
|
|
5
5
|
/** Controlled value */
|
|
6
6
|
value?: TreeSelectValue;
|
|
7
7
|
/** Called when value changes */
|
|
8
8
|
onChange?: (value: TreeSelectValue) => void;
|
|
9
|
+
/** Locale overrides merged on top of ConfigProvider locale */
|
|
10
|
+
locale?: Partial<TigerLocale>;
|
|
9
11
|
}
|
|
10
12
|
declare const TreeSelect: React.FC<TreeSelectProps>;
|
|
11
13
|
|
|
@@ -1,11 +1,13 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { TreeSelectProps as TreeSelectProps$1, TreeSelectValue } from '@expcat/tigercat-core';
|
|
2
|
+
import { TreeSelectProps as TreeSelectProps$1, TreeSelectValue, TigerLocale } from '@expcat/tigercat-core';
|
|
3
3
|
|
|
4
4
|
interface TreeSelectProps extends TreeSelectProps$1, Omit<React.HTMLAttributes<HTMLDivElement>, 'onChange'> {
|
|
5
5
|
/** Controlled value */
|
|
6
6
|
value?: TreeSelectValue;
|
|
7
7
|
/** Called when value changes */
|
|
8
8
|
onChange?: (value: TreeSelectValue) => void;
|
|
9
|
+
/** Locale overrides merged on top of ConfigProvider locale */
|
|
10
|
+
locale?: Partial<TigerLocale>;
|
|
9
11
|
}
|
|
10
12
|
declare const TreeSelect: React.FC<TreeSelectProps>;
|
|
11
13
|
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var _chunkDBMC6FPUjs = require('../chunk-DBMC6FPU.js');
|
|
4
|
+
require('../chunk-TDODFBBO.js');
|
|
4
5
|
|
|
5
6
|
|
|
6
|
-
exports.TreeSelect =
|
|
7
|
+
exports.TreeSelect = _chunkDBMC6FPUjs.TreeSelect;
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var _chunkBRA3PO53js = require('../chunk-BRA3PO53.js');
|
|
4
|
+
require('../chunk-L3WPA2RP.js');
|
|
4
5
|
require('../chunk-TDODFBBO.js');
|
|
5
6
|
|
|
6
7
|
|
|
7
|
-
exports.Upload =
|
|
8
|
+
exports.Upload = _chunkBRA3PO53js.Upload;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
2
|
import React from 'react';
|
|
3
|
-
import { TableColumn } from '@expcat/tigercat-core';
|
|
3
|
+
import { TableColumn, TigerLocale } from '@expcat/tigercat-core';
|
|
4
4
|
|
|
5
5
|
interface VirtualTableProps<T = Record<string, unknown>> {
|
|
6
6
|
data?: T[];
|
|
@@ -12,6 +12,7 @@ interface VirtualTableProps<T = Record<string, unknown>> {
|
|
|
12
12
|
rowKey?: keyof T | ((row: T, index: number) => string | number);
|
|
13
13
|
loading?: boolean;
|
|
14
14
|
emptyText?: string;
|
|
15
|
+
locale?: Partial<TigerLocale>;
|
|
15
16
|
selectable?: boolean;
|
|
16
17
|
selectedKeys?: (string | number)[];
|
|
17
18
|
striped?: boolean;
|
|
@@ -21,6 +22,6 @@ interface VirtualTableProps<T = Record<string, unknown>> {
|
|
|
21
22
|
onSelect?: (key: string | number, row: T, index: number) => void;
|
|
22
23
|
renderCell?: (value: unknown, row: T, column: TableColumn<T>) => React.ReactNode;
|
|
23
24
|
}
|
|
24
|
-
declare const VirtualTable: <T extends Record<string, unknown> = Record<string, unknown>>({ data, columns, rowHeight, height, overscan, stickyHeader, rowKey, loading, emptyText, selectable, selectedKeys, striped, bordered, className, onRowClick, onSelect, renderCell, ...rest }: VirtualTableProps<T>) => react_jsx_runtime.JSX.Element;
|
|
25
|
+
declare const VirtualTable: <T extends Record<string, unknown> = Record<string, unknown>>({ data, columns, rowHeight, height, overscan, stickyHeader, rowKey, loading, emptyText, locale, selectable, selectedKeys, striped, bordered, className, onRowClick, onSelect, renderCell, ...rest }: VirtualTableProps<T>) => react_jsx_runtime.JSX.Element;
|
|
25
26
|
|
|
26
27
|
export { VirtualTable, type VirtualTableProps, VirtualTable as default };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
2
|
import React from 'react';
|
|
3
|
-
import { TableColumn } from '@expcat/tigercat-core';
|
|
3
|
+
import { TableColumn, TigerLocale } from '@expcat/tigercat-core';
|
|
4
4
|
|
|
5
5
|
interface VirtualTableProps<T = Record<string, unknown>> {
|
|
6
6
|
data?: T[];
|
|
@@ -12,6 +12,7 @@ interface VirtualTableProps<T = Record<string, unknown>> {
|
|
|
12
12
|
rowKey?: keyof T | ((row: T, index: number) => string | number);
|
|
13
13
|
loading?: boolean;
|
|
14
14
|
emptyText?: string;
|
|
15
|
+
locale?: Partial<TigerLocale>;
|
|
15
16
|
selectable?: boolean;
|
|
16
17
|
selectedKeys?: (string | number)[];
|
|
17
18
|
striped?: boolean;
|
|
@@ -21,6 +22,6 @@ interface VirtualTableProps<T = Record<string, unknown>> {
|
|
|
21
22
|
onSelect?: (key: string | number, row: T, index: number) => void;
|
|
22
23
|
renderCell?: (value: unknown, row: T, column: TableColumn<T>) => React.ReactNode;
|
|
23
24
|
}
|
|
24
|
-
declare const VirtualTable: <T extends Record<string, unknown> = Record<string, unknown>>({ data, columns, rowHeight, height, overscan, stickyHeader, rowKey, loading, emptyText, selectable, selectedKeys, striped, bordered, className, onRowClick, onSelect, renderCell, ...rest }: VirtualTableProps<T>) => react_jsx_runtime.JSX.Element;
|
|
25
|
+
declare const VirtualTable: <T extends Record<string, unknown> = Record<string, unknown>>({ data, columns, rowHeight, height, overscan, stickyHeader, rowKey, loading, emptyText, locale, selectable, selectedKeys, striped, bordered, className, onRowClick, onSelect, renderCell, ...rest }: VirtualTableProps<T>) => react_jsx_runtime.JSX.Element;
|
|
25
26
|
|
|
26
27
|
export { VirtualTable, type VirtualTableProps, VirtualTable as default };
|
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
2
|
|
|
3
3
|
|
|
4
|
-
var
|
|
4
|
+
var _chunkAF2AEZKMjs = require('../chunk-AF2AEZKM.js');
|
|
5
|
+
require('../chunk-TDODFBBO.js');
|
|
5
6
|
|
|
6
7
|
|
|
7
8
|
|
|
8
|
-
exports.VirtualTable =
|
|
9
|
+
exports.VirtualTable = _chunkAF2AEZKMjs.VirtualTable; exports.default = _chunkAF2AEZKMjs.VirtualTable_default;
|
package/dist/index.d.mts
CHANGED
|
@@ -58,7 +58,7 @@ export { Skeleton, SkeletonProps } from './components/Skeleton.mjs';
|
|
|
58
58
|
export { Progress, ProgressProps } from './components/Progress.mjs';
|
|
59
59
|
export { default as Collapse, CollapseContextValue, CollapseProps, useCollapseContext } from './components/Collapse.mjs';
|
|
60
60
|
export { default as CollapsePanel, CollapsePanelProps } from './components/CollapsePanel.mjs';
|
|
61
|
-
export { Menu,
|
|
61
|
+
export { Menu, useMenuContext } from './components/Menu.mjs';
|
|
62
62
|
export { TabPane, TabPaneProps, Tabs, TabsContextValue, TabsProps, useTabsContext } from './components/Tabs.mjs';
|
|
63
63
|
export { Breadcrumb, BreadcrumbContextValue, BreadcrumbItem, BreadcrumbItemProps, BreadcrumbProps, useBreadcrumbContext } from './components/Breadcrumb.mjs';
|
|
64
64
|
export { Steps, StepsContextValue, StepsItem, StepsItemProps, StepsProps, useStepsContext } from './components/Steps.mjs';
|
|
@@ -136,7 +136,11 @@ export { Gantt, GanttProps } from './components/Gantt.mjs';
|
|
|
136
136
|
export { InputGroup, InputGroupAddon, InputGroupAddonProps, InputGroupProps } from './components/InputGroup.mjs';
|
|
137
137
|
export { PrintLayout, PrintLayoutProps, PrintPageBreak, PrintPageBreakProps } from './components/PrintLayout.mjs';
|
|
138
138
|
export { ImageViewer, ImageViewerProps } from './components/ImageViewer.mjs';
|
|
139
|
-
export { T as TableProps } from './types-
|
|
139
|
+
export { T as TableProps } from './types-0oVwMXtR.mjs';
|
|
140
|
+
export { M as MenuContextValue, c as MenuItemGroupProps, b as MenuItemProps, a as MenuProps, S as SubMenuProps } from './types-DaC4a0Ny.mjs';
|
|
141
|
+
export { MenuItem } from './components/MenuItem.mjs';
|
|
142
|
+
export { SubMenu } from './components/SubMenu.mjs';
|
|
143
|
+
export { MenuItemGroup } from './components/MenuItemGroup.mjs';
|
|
140
144
|
import 'react';
|
|
141
145
|
import 'react/jsx-runtime';
|
|
142
146
|
|
|
@@ -280,14 +284,36 @@ interface UseDragReturn {
|
|
|
280
284
|
declare function useDrag(options?: UseDragOptions): UseDragReturn;
|
|
281
285
|
|
|
282
286
|
/**
|
|
283
|
-
*
|
|
284
|
-
*
|
|
287
|
+
* Setter returned by {@link useControlledState}.
|
|
288
|
+
*
|
|
289
|
+
* Accepts either the next value or an updater `(prev) => next`. When the
|
|
290
|
+
* component is uncontrolled the internal state is updated; in both controlled
|
|
291
|
+
* and uncontrolled modes the `onChange` callback (if provided) is always
|
|
292
|
+
* invoked with the resolved value followed by any forwarded extra arguments.
|
|
293
|
+
*/
|
|
294
|
+
type SetControlledState<T, Args extends unknown[] = []> = (next: T | ((prev: T) => T), ...args: Args) => void;
|
|
295
|
+
/**
|
|
296
|
+
* Hook for the controlled/uncontrolled component state pattern, modeled after
|
|
297
|
+
* Ant Design's `useMergedState` / Radix's `useControllableState`.
|
|
298
|
+
*
|
|
299
|
+
* Unlike a bare `useState`, the returned setter merges the `onChange`
|
|
300
|
+
* callback: it writes internal state only when uncontrolled and always fires
|
|
301
|
+
* `onChange`, removing the `const isControlled = value !== undefined` +
|
|
302
|
+
* `if (!isControlled) setInternal(...)` + `onChange?.()` boilerplate that was
|
|
303
|
+
* otherwise repeated across components.
|
|
304
|
+
*
|
|
305
|
+
* `Args` lets callers forward extra arguments (e.g. the originating DOM event)
|
|
306
|
+
* to `onChange`: `setValue(nextChecked, event)` calls `onChange(nextChecked, event)`.
|
|
285
307
|
*
|
|
286
308
|
* @param controlledValue - The controlled value (from props). Pass `undefined` for uncontrolled.
|
|
287
309
|
* @param defaultValue - The initial value for uncontrolled mode.
|
|
288
|
-
* @
|
|
310
|
+
* @param onChange - Optional change callback, always invoked by the returned setter.
|
|
311
|
+
* @returns A tuple of `[currentValue, setValue]`.
|
|
312
|
+
*
|
|
313
|
+
* @remarks The setter treats a function argument as an updater (mirroring
|
|
314
|
+
* `useState`), so it cannot store a function as the value `T` directly.
|
|
289
315
|
*/
|
|
290
|
-
declare function useControlledState<T>(controlledValue: T | undefined, defaultValue: T): [T,
|
|
316
|
+
declare function useControlledState<T, Args extends unknown[] = []>(controlledValue: T | undefined, defaultValue: T, onChange?: (value: T, ...args: Args) => void): [T, SetControlledState<T, Args>];
|
|
291
317
|
|
|
292
318
|
/**
|
|
293
319
|
* Tigercat React
|
|
@@ -295,6 +321,6 @@ declare function useControlledState<T>(controlledValue: T | undefined, defaultVa
|
|
|
295
321
|
* React components for Tigercat UI library
|
|
296
322
|
*/
|
|
297
323
|
|
|
298
|
-
declare const version = "1.
|
|
324
|
+
declare const version = "1.4.0";
|
|
299
325
|
|
|
300
326
|
export { type UseChartInteractionOptions, type UseChartInteractionReturn, type UseDragOptions, type UseDragReturn, useChartInteraction, useControlledState, useDrag, useFormController, version };
|