@expcat/tigercat-react 0.0.65 → 0.0.67

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.
Files changed (196) hide show
  1. package/dist/styles/index.css +4 -0
  2. package/dist/styles/index.d.mts +2 -0
  3. package/package.json +12 -9
  4. package/dist/chunk-2DOPHSZP.js +0 -32
  5. package/dist/chunk-2TS6X5RA.js +0 -73
  6. package/dist/chunk-2Y327ZU4.js +0 -493
  7. package/dist/chunk-3OF7XPIQ.js +0 -90
  8. package/dist/chunk-3WPKVV4N.js +0 -140
  9. package/dist/chunk-5FRENLDC.js +0 -194
  10. package/dist/chunk-5QKMQRCW.js +0 -89
  11. package/dist/chunk-5ZVSFIZD.js +0 -50
  12. package/dist/chunk-6MGEGOYJ.js +0 -108
  13. package/dist/chunk-6PUSRC6S.js +0 -68
  14. package/dist/chunk-72ZRDBXN.js +0 -25
  15. package/dist/chunk-77D7VQMG.js +0 -43
  16. package/dist/chunk-7P6PHSFM.js +0 -548
  17. package/dist/chunk-AG6GVQ5O.js +0 -271
  18. package/dist/chunk-AQ6DHCP6.js +0 -53
  19. package/dist/chunk-AQQRWISY.js +0 -184
  20. package/dist/chunk-C5EFBJBR.js +0 -540
  21. package/dist/chunk-D3I2SY7X.js +0 -301
  22. package/dist/chunk-DZJUFU55.js +0 -300
  23. package/dist/chunk-EI2GHMQS.js +0 -37
  24. package/dist/chunk-ENR3RIMM.js +0 -205
  25. package/dist/chunk-EQWQXURG.js +0 -18
  26. package/dist/chunk-EUHWE7MN.js +0 -267
  27. package/dist/chunk-FAKTU64M.js +0 -67
  28. package/dist/chunk-FQ6UHRAO.js +0 -499
  29. package/dist/chunk-GX74TC62.js +0 -54
  30. package/dist/chunk-HDDBBZQH.js +0 -321
  31. package/dist/chunk-IFY46RWU.js +0 -25
  32. package/dist/chunk-IQINYCU6.js +0 -99
  33. package/dist/chunk-IY4LEJYF.js +0 -78
  34. package/dist/chunk-JW64IJP2.js +0 -210
  35. package/dist/chunk-KUCFT2OA.js +0 -43
  36. package/dist/chunk-LNKI6HQ3.js +0 -152
  37. package/dist/chunk-LXA2YBAO.js +0 -38
  38. package/dist/chunk-MKWXJZ3T.js +0 -74
  39. package/dist/chunk-NEULKOYJ.js +0 -48
  40. package/dist/chunk-NI2WNZRT.js +0 -38
  41. package/dist/chunk-OFCKGWTS.js +0 -12
  42. package/dist/chunk-OTRGVENC.js +0 -305
  43. package/dist/chunk-P273E6XE.js +0 -219
  44. package/dist/chunk-Q3DPJHNM.js +0 -407
  45. package/dist/chunk-QFVE7GKD.js +0 -109
  46. package/dist/chunk-QL6OBKEN.js +0 -84
  47. package/dist/chunk-QL6UEG3U.js +0 -27
  48. package/dist/chunk-QORSSZX4.js +0 -144
  49. package/dist/chunk-R4JSBXGG.js +0 -12
  50. package/dist/chunk-R5BQHZWB.js +0 -698
  51. package/dist/chunk-R7MS42PL.js +0 -90
  52. package/dist/chunk-TB2UHDOZ.js +0 -19
  53. package/dist/chunk-TBIEWDY5.js +0 -175
  54. package/dist/chunk-TJFS44SH.js +0 -48
  55. package/dist/chunk-TZ26HQAW.js +0 -85
  56. package/dist/chunk-U4ZVEPYD.js +0 -71
  57. package/dist/chunk-UFAXJVMD.js +0 -120
  58. package/dist/chunk-VJJ76I7U.js +0 -19
  59. package/dist/chunk-VO4WDK4K.js +0 -37
  60. package/dist/chunk-VSF4DF7N.js +0 -84
  61. package/dist/chunk-VVO4V4IK.js +0 -56
  62. package/dist/chunk-WK5HN4OH.js +0 -113
  63. package/dist/chunk-XZDJ5FRB.js +0 -333
  64. package/dist/chunk-YE2M2HNM.js +0 -168
  65. package/dist/chunk-YYGTJKP5.js +0 -39
  66. package/dist/chunk-ZREFCRX3.js +0 -52
  67. package/dist/components/Alert.d.ts +0 -24
  68. package/dist/components/Alert.js +0 -10
  69. package/dist/components/Avatar.d.ts +0 -12
  70. package/dist/components/Avatar.js +0 -10
  71. package/dist/components/Badge.d.ts +0 -12
  72. package/dist/components/Badge.js +0 -10
  73. package/dist/components/Breadcrumb.d.ts +0 -13
  74. package/dist/components/Breadcrumb.js +0 -14
  75. package/dist/components/BreadcrumbItem.d.ts +0 -21
  76. package/dist/components/BreadcrumbItem.js +0 -11
  77. package/dist/components/Button.d.ts +0 -8
  78. package/dist/components/Button.js +0 -10
  79. package/dist/components/Card.d.ts +0 -33
  80. package/dist/components/Card.js +0 -10
  81. package/dist/components/Checkbox.d.ts +0 -48
  82. package/dist/components/Checkbox.js +0 -11
  83. package/dist/components/CheckboxGroup.d.ts +0 -39
  84. package/dist/components/CheckboxGroup.js +0 -14
  85. package/dist/components/Code.d.ts +0 -9
  86. package/dist/components/Code.js +0 -16
  87. package/dist/components/Col.d.ts +0 -7
  88. package/dist/components/Col.js +0 -11
  89. package/dist/components/ConfigProvider.d.ts +0 -14
  90. package/dist/components/ConfigProvider.js +0 -14
  91. package/dist/components/Container.d.ts +0 -13
  92. package/dist/components/Container.js +0 -10
  93. package/dist/components/Content.d.ts +0 -9
  94. package/dist/components/Content.js +0 -10
  95. package/dist/components/DatePicker.d.ts +0 -24
  96. package/dist/components/DatePicker.js +0 -10
  97. package/dist/components/Descriptions.d.ts +0 -53
  98. package/dist/components/Descriptions.js +0 -16
  99. package/dist/components/Divider.d.ts +0 -12
  100. package/dist/components/Divider.js +0 -10
  101. package/dist/components/Drawer.d.ts +0 -19
  102. package/dist/components/Drawer.js +0 -11
  103. package/dist/components/Dropdown.d.ts +0 -22
  104. package/dist/components/Dropdown.js +0 -16
  105. package/dist/components/DropdownItem.d.ts +0 -17
  106. package/dist/components/DropdownItem.js +0 -13
  107. package/dist/components/DropdownMenu.d.ts +0 -13
  108. package/dist/components/DropdownMenu.js +0 -10
  109. package/dist/components/Footer.d.ts +0 -9
  110. package/dist/components/Footer.js +0 -10
  111. package/dist/components/Form.d.ts +0 -56
  112. package/dist/components/Form.js +0 -14
  113. package/dist/components/FormItem.d.ts +0 -16
  114. package/dist/components/FormItem.js +0 -11
  115. package/dist/components/Header.d.ts +0 -9
  116. package/dist/components/Header.js +0 -10
  117. package/dist/components/Icon.d.ts +0 -9
  118. package/dist/components/Icon.js +0 -10
  119. package/dist/components/Input.d.ts +0 -28
  120. package/dist/components/Input.js +0 -10
  121. package/dist/components/Layout.d.ts +0 -9
  122. package/dist/components/Layout.js +0 -10
  123. package/dist/components/Link.d.ts +0 -10
  124. package/dist/components/Link.js +0 -10
  125. package/dist/components/List.d.ts +0 -94
  126. package/dist/components/List.js +0 -12
  127. package/dist/components/Loading.d.ts +0 -8
  128. package/dist/components/Loading.js +0 -10
  129. package/dist/components/Menu.d.ts +0 -35
  130. package/dist/components/Menu.js +0 -14
  131. package/dist/components/MenuItem.d.ts +0 -20
  132. package/dist/components/MenuItem.js +0 -11
  133. package/dist/components/MenuItemGroup.d.ts +0 -16
  134. package/dist/components/MenuItemGroup.js +0 -12
  135. package/dist/components/Message.d.ts +0 -44
  136. package/dist/components/Message.js +0 -20
  137. package/dist/components/Modal.d.ts +0 -41
  138. package/dist/components/Modal.js +0 -11
  139. package/dist/components/Notification.d.ts +0 -40
  140. package/dist/components/Notification.js +0 -20
  141. package/dist/components/Pagination.d.ts +0 -11
  142. package/dist/components/Pagination.js +0 -16
  143. package/dist/components/Popconfirm.d.ts +0 -34
  144. package/dist/components/Popconfirm.js +0 -10
  145. package/dist/components/Popover.d.ts +0 -14
  146. package/dist/components/Popover.js +0 -10
  147. package/dist/components/Progress.d.ts +0 -8
  148. package/dist/components/Progress.js +0 -10
  149. package/dist/components/Radio.d.ts +0 -20
  150. package/dist/components/Radio.js +0 -11
  151. package/dist/components/RadioGroup.d.ts +0 -28
  152. package/dist/components/RadioGroup.js +0 -14
  153. package/dist/components/Row.d.ts +0 -11
  154. package/dist/components/Row.js +0 -14
  155. package/dist/components/Select.d.ts +0 -23
  156. package/dist/components/Select.js +0 -10
  157. package/dist/components/Sidebar.d.ts +0 -9
  158. package/dist/components/Sidebar.js +0 -10
  159. package/dist/components/Skeleton.d.ts +0 -7
  160. package/dist/components/Skeleton.js +0 -10
  161. package/dist/components/Slider.d.ts +0 -12
  162. package/dist/components/Slider.js +0 -10
  163. package/dist/components/Space.d.ts +0 -11
  164. package/dist/components/Space.js +0 -10
  165. package/dist/components/Steps.d.ts +0 -31
  166. package/dist/components/Steps.js +0 -14
  167. package/dist/components/StepsItem.d.ts +0 -36
  168. package/dist/components/StepsItem.js +0 -10
  169. package/dist/components/SubMenu.d.ts +0 -20
  170. package/dist/components/SubMenu.js +0 -13
  171. package/dist/components/Switch.d.ts +0 -12
  172. package/dist/components/Switch.js +0 -10
  173. package/dist/components/TabPane.d.ts +0 -42
  174. package/dist/components/TabPane.js +0 -10
  175. package/dist/components/Table.d.ts +0 -46
  176. package/dist/components/Table.js +0 -10
  177. package/dist/components/Tabs.d.ts +0 -43
  178. package/dist/components/Tabs.js +0 -14
  179. package/dist/components/Tag.d.ts +0 -16
  180. package/dist/components/Tag.js +0 -10
  181. package/dist/components/Text.d.ts +0 -9
  182. package/dist/components/Text.js +0 -10
  183. package/dist/components/Textarea.d.ts +0 -13
  184. package/dist/components/Textarea.js +0 -10
  185. package/dist/components/TimePicker.d.ts +0 -28
  186. package/dist/components/TimePicker.js +0 -10
  187. package/dist/components/Timeline.d.ts +0 -47
  188. package/dist/components/Timeline.js +0 -10
  189. package/dist/components/Tooltip.d.ts +0 -15
  190. package/dist/components/Tooltip.js +0 -10
  191. package/dist/components/Tree.d.ts +0 -154
  192. package/dist/components/Tree.js +0 -16
  193. package/dist/components/Upload.d.ts +0 -16
  194. package/dist/components/Upload.js +0 -11
  195. package/dist/index.d.ts +0 -77
  196. package/dist/index.js +0 -364
@@ -1,13 +0,0 @@
1
- import React from 'react';
2
- import { ContainerProps as ContainerProps$1 } from '@expcat/tigercat-core';
3
-
4
- interface ContainerProps extends ContainerProps$1, React.HTMLAttributes<HTMLElement> {
5
- /**
6
- * HTML element to render as
7
- * @default 'div'
8
- */
9
- as?: React.ElementType;
10
- }
11
- declare const Container: React.FC<ContainerProps>;
12
-
13
- export { Container, type ContainerProps };
@@ -1,10 +0,0 @@
1
- 'use strict';
2
-
3
- var chunk72ZRDBXN_js = require('../chunk-72ZRDBXN.js');
4
-
5
-
6
-
7
- Object.defineProperty(exports, "Container", {
8
- enumerable: true,
9
- get: function () { return chunk72ZRDBXN_js.Container; }
10
- });
@@ -1,9 +0,0 @@
1
- import React from 'react';
2
- import { ContentProps } from '@expcat/tigercat-core';
3
-
4
- interface ReactContentProps extends ContentProps, Omit<React.HTMLAttributes<HTMLElement>, 'children'> {
5
- children?: React.ReactNode;
6
- }
7
- declare const Content: React.FC<ReactContentProps>;
8
-
9
- export { Content, type ReactContentProps };
@@ -1,10 +0,0 @@
1
- 'use strict';
2
-
3
- var chunkOFCKGWTS_js = require('../chunk-OFCKGWTS.js');
4
-
5
-
6
-
7
- Object.defineProperty(exports, "Content", {
8
- enumerable: true,
9
- get: function () { return chunkOFCKGWTS_js.Content; }
10
- });
@@ -1,24 +0,0 @@
1
- import React from 'react';
2
- import { DatePickerProps as DatePickerProps$1, DatePickerSingleModelValue, DatePickerRangeModelValue, DatePickerRangeValue } from '@expcat/tigercat-core';
3
-
4
- type DatePickerDivProps = Omit<React.HTMLAttributes<HTMLDivElement>, 'defaultValue' | 'value' | 'onChange'>;
5
- interface DatePickerBaseProps extends Omit<DatePickerProps$1, 'value' | 'defaultValue' | 'range'>, DatePickerDivProps {
6
- className?: string;
7
- onClear?: () => void;
8
- }
9
- interface DatePickerSingleProps extends DatePickerBaseProps {
10
- range?: false;
11
- value?: DatePickerSingleModelValue;
12
- defaultValue?: DatePickerSingleModelValue;
13
- onChange?: (date: Date | null) => void;
14
- }
15
- interface DatePickerRangeProps extends DatePickerBaseProps {
16
- range: true;
17
- value?: DatePickerRangeModelValue | null;
18
- defaultValue?: DatePickerRangeModelValue | null;
19
- onChange?: (range: DatePickerRangeValue) => void;
20
- }
21
- type DatePickerProps = DatePickerSingleProps | DatePickerRangeProps;
22
- declare const DatePicker: React.FC<DatePickerProps>;
23
-
24
- export { DatePicker, type DatePickerBaseProps, type DatePickerProps, type DatePickerRangeProps, type DatePickerSingleProps };
@@ -1,10 +0,0 @@
1
- 'use strict';
2
-
3
- var chunk2Y327ZU4_js = require('../chunk-2Y327ZU4.js');
4
-
5
-
6
-
7
- Object.defineProperty(exports, "DatePicker", {
8
- enumerable: true,
9
- get: function () { return chunk2Y327ZU4_js.DatePicker; }
10
- });
@@ -1,53 +0,0 @@
1
- import React from 'react';
2
- import { DescriptionsSize, DescriptionsLayout, DescriptionsItem } from '@expcat/tigercat-core';
3
-
4
- interface DescriptionsProps extends Omit<React.HTMLAttributes<HTMLDivElement>, 'title'> {
5
- /**
6
- * Descriptions title
7
- */
8
- title?: React.ReactNode;
9
- /**
10
- * Extra content (actions, links, etc.)
11
- */
12
- extra?: React.ReactNode;
13
- /**
14
- * Whether to show border
15
- * @default false
16
- */
17
- bordered?: boolean;
18
- /**
19
- * Number of columns per row
20
- * @default 3
21
- */
22
- column?: number;
23
- /**
24
- * Descriptions size
25
- * @default 'md'
26
- */
27
- size?: DescriptionsSize;
28
- /**
29
- * Descriptions layout
30
- * @default 'horizontal'
31
- */
32
- layout?: DescriptionsLayout;
33
- /**
34
- * Whether to show colon after label
35
- * @default true
36
- */
37
- colon?: boolean;
38
- /**
39
- * Label style
40
- */
41
- labelStyle?: React.CSSProperties;
42
- /**
43
- * Content style
44
- */
45
- contentStyle?: React.CSSProperties;
46
- /**
47
- * Items data source
48
- */
49
- items?: DescriptionsItem[];
50
- }
51
- declare const Descriptions: React.FC<DescriptionsProps>;
52
-
53
- export { Descriptions, type DescriptionsProps, Descriptions as default };
@@ -1,16 +0,0 @@
1
- 'use strict';
2
-
3
- Object.defineProperty(exports, '__esModule', { value: true });
4
-
5
- var chunkUFAXJVMD_js = require('../chunk-UFAXJVMD.js');
6
-
7
-
8
-
9
- Object.defineProperty(exports, "Descriptions", {
10
- enumerable: true,
11
- get: function () { return chunkUFAXJVMD_js.Descriptions; }
12
- });
13
- Object.defineProperty(exports, "default", {
14
- enumerable: true,
15
- get: function () { return chunkUFAXJVMD_js.Descriptions_default; }
16
- });
@@ -1,12 +0,0 @@
1
- import React from 'react';
2
- import { DividerProps as DividerProps$1 } from '@expcat/tigercat-core';
3
-
4
- interface DividerProps extends DividerProps$1 {
5
- /**
6
- * Additional CSS classes
7
- */
8
- className?: string;
9
- }
10
- declare const Divider: React.FC<DividerProps>;
11
-
12
- export { Divider, type DividerProps };
@@ -1,10 +0,0 @@
1
- 'use strict';
2
-
3
- var chunkZREFCRX3_js = require('../chunk-ZREFCRX3.js');
4
-
5
-
6
-
7
- Object.defineProperty(exports, "Divider", {
8
- enumerable: true,
9
- get: function () { return chunkZREFCRX3_js.Divider; }
10
- });
@@ -1,19 +0,0 @@
1
- import React from 'react';
2
- import { DrawerProps as DrawerProps$1 } from '@expcat/tigercat-core';
3
-
4
- interface DrawerProps extends DrawerProps$1, Omit<React.HTMLAttributes<HTMLDivElement>, 'title' | 'children'> {
5
- onClose?: () => void;
6
- onAfterEnter?: () => void;
7
- onAfterLeave?: () => void;
8
- header?: React.ReactNode;
9
- children?: React.ReactNode;
10
- footer?: React.ReactNode;
11
- /**
12
- * Close button aria-label
13
- * @default 'Close drawer'
14
- */
15
- closeAriaLabel?: string;
16
- }
17
- declare const Drawer: React.FC<DrawerProps>;
18
-
19
- export { Drawer, type DrawerProps };
@@ -1,11 +0,0 @@
1
- 'use strict';
2
-
3
- var chunk5FRENLDC_js = require('../chunk-5FRENLDC.js');
4
- require('../chunk-NEULKOYJ.js');
5
-
6
-
7
-
8
- Object.defineProperty(exports, "Drawer", {
9
- enumerable: true,
10
- get: function () { return chunk5FRENLDC_js.Drawer; }
11
- });
@@ -1,22 +0,0 @@
1
- import React from 'react';
2
- import { DropdownProps as DropdownProps$1 } from '@expcat/tigercat-core';
3
-
4
- interface DropdownContextValue {
5
- closeOnClick: boolean;
6
- handleItemClick: () => void;
7
- }
8
- declare const DropdownContext: React.Context<DropdownContextValue | null>;
9
- interface DropdownProps extends Omit<DropdownProps$1, 'style'>, Omit<React.HTMLAttributes<HTMLDivElement>, 'style'> {
10
- style?: React.CSSProperties;
11
- /**
12
- * Visibility change event handler
13
- */
14
- onVisibleChange?: (visible: boolean) => void;
15
- /**
16
- * Dropdown content (trigger and menu)
17
- */
18
- children?: React.ReactNode;
19
- }
20
- declare const Dropdown: React.FC<DropdownProps>;
21
-
22
- export { Dropdown, DropdownContext, type DropdownContextValue, type DropdownProps };
@@ -1,16 +0,0 @@
1
- 'use strict';
2
-
3
- var chunkLNKI6HQ3_js = require('../chunk-LNKI6HQ3.js');
4
- require('../chunk-NEULKOYJ.js');
5
- require('../chunk-EQWQXURG.js');
6
-
7
-
8
-
9
- Object.defineProperty(exports, "Dropdown", {
10
- enumerable: true,
11
- get: function () { return chunkLNKI6HQ3_js.Dropdown; }
12
- });
13
- Object.defineProperty(exports, "DropdownContext", {
14
- enumerable: true,
15
- get: function () { return chunkLNKI6HQ3_js.DropdownContext; }
16
- });
@@ -1,17 +0,0 @@
1
- import React from 'react';
2
- import { DropdownItemProps as DropdownItemProps$1 } from '@expcat/tigercat-core';
3
-
4
- interface DropdownItemProps extends Omit<DropdownItemProps$1, 'className'>, Omit<React.ButtonHTMLAttributes<HTMLButtonElement>, 'onClick' | 'disabled'> {
5
- className?: string;
6
- /**
7
- * Click event handler
8
- */
9
- onClick?: (event: React.MouseEvent<HTMLButtonElement>) => void;
10
- /**
11
- * Item content
12
- */
13
- children?: React.ReactNode;
14
- }
15
- declare const DropdownItem: React.FC<DropdownItemProps>;
16
-
17
- export { DropdownItem, type DropdownItemProps };
@@ -1,13 +0,0 @@
1
- 'use strict';
2
-
3
- var chunk77D7VQMG_js = require('../chunk-77D7VQMG.js');
4
- require('../chunk-LNKI6HQ3.js');
5
- require('../chunk-NEULKOYJ.js');
6
- require('../chunk-EQWQXURG.js');
7
-
8
-
9
-
10
- Object.defineProperty(exports, "DropdownItem", {
11
- enumerable: true,
12
- get: function () { return chunk77D7VQMG_js.DropdownItem; }
13
- });
@@ -1,13 +0,0 @@
1
- import React from 'react';
2
- import { DropdownMenuProps as DropdownMenuProps$1 } from '@expcat/tigercat-core';
3
-
4
- interface DropdownMenuProps extends Omit<DropdownMenuProps$1, 'style'>, Omit<React.HTMLAttributes<HTMLDivElement>, 'style'> {
5
- style?: React.CSSProperties;
6
- /**
7
- * Menu content
8
- */
9
- children?: React.ReactNode;
10
- }
11
- declare const DropdownMenu: React.FC<DropdownMenuProps>;
12
-
13
- export { DropdownMenu, type DropdownMenuProps };
@@ -1,10 +0,0 @@
1
- 'use strict';
2
-
3
- var chunkEQWQXURG_js = require('../chunk-EQWQXURG.js');
4
-
5
-
6
-
7
- Object.defineProperty(exports, "DropdownMenu", {
8
- enumerable: true,
9
- get: function () { return chunkEQWQXURG_js.DropdownMenu; }
10
- });
@@ -1,9 +0,0 @@
1
- import React from 'react';
2
- import { FooterProps } from '@expcat/tigercat-core';
3
-
4
- interface ReactFooterProps extends FooterProps, Omit<React.HTMLAttributes<HTMLElement>, 'children' | 'height'> {
5
- children?: React.ReactNode;
6
- }
7
- declare const Footer: React.FC<ReactFooterProps>;
8
-
9
- export { Footer, type ReactFooterProps };
@@ -1,10 +0,0 @@
1
- 'use strict';
2
-
3
- var chunkTB2UHDOZ_js = require('../chunk-TB2UHDOZ.js');
4
-
5
-
6
-
7
- Object.defineProperty(exports, "Footer", {
8
- enumerable: true,
9
- get: function () { return chunkTB2UHDOZ_js.Footer; }
10
- });
@@ -1,56 +0,0 @@
1
- import React from 'react';
2
- import { FormProps as FormProps$1, FormValues, FormError, FormRule, FormRuleTrigger, FormRules, FormLabelPosition, FormLabelAlign, FormSize } from '@expcat/tigercat-core';
3
-
4
- interface FormContextValue {
5
- model: FormValues;
6
- rules?: FormRules;
7
- labelWidth?: string | number;
8
- labelPosition: FormLabelPosition;
9
- labelAlign: FormLabelAlign;
10
- size: FormSize;
11
- inlineMessage: boolean;
12
- showRequiredAsterisk: boolean;
13
- disabled: boolean;
14
- errors: FormError[];
15
- registerFieldRules: (fieldName: string, rules?: FormRule | FormRule[]) => void;
16
- validateField: (fieldName: string, rulesOverride?: FormRule | FormRule[], trigger?: FormRuleTrigger) => Promise<void>;
17
- clearValidate: (fieldNames?: string | string[]) => void;
18
- updateValue: (fieldName: string, value: unknown) => void;
19
- }
20
- declare const useFormContext: () => FormContextValue | null;
21
- interface FormHandle {
22
- validate: () => Promise<boolean>;
23
- validateField: (fieldName: string, rulesOverride?: FormRule | FormRule[], trigger?: FormRuleTrigger) => Promise<void>;
24
- clearValidate: (fieldNames?: string | string[]) => void;
25
- resetFields: () => void;
26
- }
27
- interface FormSubmitEvent {
28
- valid: boolean;
29
- values: FormValues;
30
- errors: FormError[];
31
- }
32
- interface FormProps extends FormProps$1 {
33
- /**
34
- * Form content
35
- */
36
- children?: React.ReactNode;
37
- /**
38
- * Submit handler
39
- */
40
- onSubmit?: (event: FormSubmitEvent) => void;
41
- /**
42
- * Validation handler
43
- */
44
- onValidate?: (fieldName: string, valid: boolean, error?: string | null) => void;
45
- /**
46
- * Value change handler
47
- */
48
- onChange?: (values: FormValues) => void;
49
- /**
50
- * Additional CSS classes
51
- */
52
- className?: string;
53
- }
54
- declare const Form: React.ForwardRefExoticComponent<FormProps & React.RefAttributes<FormHandle>>;
55
-
56
- export { Form, type FormContextValue, type FormHandle, type FormProps, type FormSubmitEvent, useFormContext };
@@ -1,14 +0,0 @@
1
- 'use strict';
2
-
3
- var chunkJW64IJP2_js = require('../chunk-JW64IJP2.js');
4
-
5
-
6
-
7
- Object.defineProperty(exports, "Form", {
8
- enumerable: true,
9
- get: function () { return chunkJW64IJP2_js.Form; }
10
- });
11
- Object.defineProperty(exports, "useFormContext", {
12
- enumerable: true,
13
- get: function () { return chunkJW64IJP2_js.useFormContext; }
14
- });
@@ -1,16 +0,0 @@
1
- import React from 'react';
2
- import { FormItemProps as FormItemProps$1 } from '@expcat/tigercat-core';
3
-
4
- interface FormItemProps extends FormItemProps$1 {
5
- /**
6
- * Form item content
7
- */
8
- children?: React.ReactNode;
9
- /**
10
- * Additional CSS classes
11
- */
12
- className?: string;
13
- }
14
- declare const FormItem: React.FC<FormItemProps>;
15
-
16
- export { FormItem, type FormItemProps };
@@ -1,11 +0,0 @@
1
- 'use strict';
2
-
3
- var chunkP273E6XE_js = require('../chunk-P273E6XE.js');
4
- require('../chunk-JW64IJP2.js');
5
-
6
-
7
-
8
- Object.defineProperty(exports, "FormItem", {
9
- enumerable: true,
10
- get: function () { return chunkP273E6XE_js.FormItem; }
11
- });
@@ -1,9 +0,0 @@
1
- import React from 'react';
2
- import { HeaderProps } from '@expcat/tigercat-core';
3
-
4
- interface ReactHeaderProps extends HeaderProps, Omit<React.HTMLAttributes<HTMLElement>, 'children' | 'height'> {
5
- children?: React.ReactNode;
6
- }
7
- declare const Header: React.FC<ReactHeaderProps>;
8
-
9
- export { Header, type ReactHeaderProps };
@@ -1,10 +0,0 @@
1
- 'use strict';
2
-
3
- var chunkVJJ76I7U_js = require('../chunk-VJJ76I7U.js');
4
-
5
-
6
-
7
- Object.defineProperty(exports, "Header", {
8
- enumerable: true,
9
- get: function () { return chunkVJJ76I7U_js.Header; }
10
- });
@@ -1,9 +0,0 @@
1
- import React from 'react';
2
- import { IconProps as IconProps$1 } from '@expcat/tigercat-core';
3
-
4
- interface IconProps extends IconProps$1, React.HTMLAttributes<HTMLSpanElement> {
5
- children?: React.ReactNode;
6
- }
7
- declare const Icon: React.FC<IconProps>;
8
-
9
- export { Icon, type IconProps };
@@ -1,10 +0,0 @@
1
- 'use strict';
2
-
3
- var chunkAQ6DHCP6_js = require('../chunk-AQ6DHCP6.js');
4
-
5
-
6
-
7
- Object.defineProperty(exports, "Icon", {
8
- enumerable: true,
9
- get: function () { return chunkAQ6DHCP6_js.Icon; }
10
- });
@@ -1,28 +0,0 @@
1
- import React from 'react';
2
- import { InputProps as InputProps$1 } from '@expcat/tigercat-core';
3
-
4
- interface InputProps extends InputProps$1, Omit<React.InputHTMLAttributes<HTMLInputElement>, 'size' | 'type' | 'value' | 'defaultValue' | 'autoComplete' | 'onInput' | 'onChange' | 'onFocus' | 'onBlur' | 'readOnly'> {
5
- /**
6
- * Input event handler
7
- */
8
- onInput?: (event: React.FormEvent<HTMLInputElement>) => void;
9
- /**
10
- * Change event handler
11
- */
12
- onChange?: (event: React.ChangeEvent<HTMLInputElement>) => void;
13
- /**
14
- * Focus event handler
15
- */
16
- onFocus?: (event: React.FocusEvent<HTMLInputElement>) => void;
17
- /**
18
- * Blur event handler
19
- */
20
- onBlur?: (event: React.FocusEvent<HTMLInputElement>) => void;
21
- /**
22
- * Additional CSS classes
23
- */
24
- className?: string;
25
- }
26
- declare const Input: React.FC<InputProps>;
27
-
28
- export { Input, type InputProps };
@@ -1,10 +0,0 @@
1
- 'use strict';
2
-
3
- var chunkQL6OBKEN_js = require('../chunk-QL6OBKEN.js');
4
-
5
-
6
-
7
- Object.defineProperty(exports, "Input", {
8
- enumerable: true,
9
- get: function () { return chunkQL6OBKEN_js.Input; }
10
- });
@@ -1,9 +0,0 @@
1
- import React from 'react';
2
- import { LayoutProps } from '@expcat/tigercat-core';
3
-
4
- interface ReactLayoutProps extends LayoutProps, Omit<React.HTMLAttributes<HTMLDivElement>, 'children'> {
5
- children?: React.ReactNode;
6
- }
7
- declare const Layout: React.FC<ReactLayoutProps>;
8
-
9
- export { Layout, type ReactLayoutProps };
@@ -1,10 +0,0 @@
1
- 'use strict';
2
-
3
- var chunkR4JSBXGG_js = require('../chunk-R4JSBXGG.js');
4
-
5
-
6
-
7
- Object.defineProperty(exports, "Layout", {
8
- enumerable: true,
9
- get: function () { return chunkR4JSBXGG_js.Layout; }
10
- });
@@ -1,10 +0,0 @@
1
- import React from 'react';
2
- import { LinkProps as LinkProps$1 } from '@expcat/tigercat-core';
3
-
4
- interface LinkProps extends LinkProps$1, Omit<React.AnchorHTMLAttributes<HTMLAnchorElement>, 'href' | 'target' | 'rel' | 'onClick' | 'children'> {
5
- onClick?: React.MouseEventHandler<HTMLAnchorElement>;
6
- children?: React.ReactNode;
7
- }
8
- declare const Link: React.FC<LinkProps>;
9
-
10
- export { Link, type LinkProps };
@@ -1,10 +0,0 @@
1
- 'use strict';
2
-
3
- var chunkMKWXJZ3T_js = require('../chunk-MKWXJZ3T.js');
4
-
5
-
6
-
7
- Object.defineProperty(exports, "Link", {
8
- enumerable: true,
9
- get: function () { return chunkMKWXJZ3T_js.Link; }
10
- });
@@ -1,94 +0,0 @@
1
- import * as react_jsx_runtime from 'react/jsx-runtime';
2
- import React from 'react';
3
- import { ListItem, ListSize, ListBorderStyle, ListItemLayout, ListPaginationConfig } from '@expcat/tigercat-core';
4
-
5
- interface ListProps<T extends ListItem = ListItem> extends React.HTMLAttributes<HTMLDivElement> {
6
- /**
7
- * List data source
8
- */
9
- dataSource?: T[];
10
- /**
11
- * List size
12
- * @default 'md'
13
- */
14
- size?: ListSize;
15
- /**
16
- * Border style
17
- * @default 'divided'
18
- */
19
- bordered?: ListBorderStyle;
20
- /**
21
- * Loading state
22
- * @default false
23
- */
24
- loading?: boolean;
25
- /**
26
- * Empty state text
27
- * @default 'No data'
28
- */
29
- emptyText?: string;
30
- /**
31
- * Whether to show split line between items
32
- * @default true
33
- */
34
- split?: boolean;
35
- /**
36
- * Item layout
37
- * @default 'horizontal'
38
- */
39
- itemLayout?: ListItemLayout;
40
- /**
41
- * List header content
42
- */
43
- header?: React.ReactNode;
44
- /**
45
- * List footer content
46
- */
47
- footer?: React.ReactNode;
48
- /**
49
- * Pagination configuration, set to false to disable
50
- * @default false
51
- */
52
- pagination?: ListPaginationConfig | false;
53
- /**
54
- * Grid configuration
55
- */
56
- grid?: {
57
- gutter?: number;
58
- column?: number;
59
- xs?: number;
60
- sm?: number;
61
- md?: number;
62
- lg?: number;
63
- xl?: number;
64
- xxl?: number;
65
- };
66
- /**
67
- * Function to get item key
68
- */
69
- rowKey?: string | ((item: T, index: number) => string | number);
70
- /**
71
- * Whether items are hoverable
72
- * @default false
73
- */
74
- hoverable?: boolean;
75
- /**
76
- * Custom render function for list items
77
- */
78
- renderItem?: (item: T, index: number) => React.ReactNode;
79
- /**
80
- * Item click handler
81
- */
82
- onItemClick?: (item: T, index: number) => void;
83
- /**
84
- * Page change handler
85
- */
86
- onPageChange?: (page: {
87
- current: number;
88
- pageSize: number;
89
- }) => void;
90
- className?: string;
91
- }
92
- declare const List: <T extends ListItem = ListItem>({ dataSource, size, bordered, loading, emptyText, split, itemLayout, header, footer, pagination, grid, rowKey, hoverable, renderItem, onItemClick, onPageChange, className, ...divProps }: ListProps<T>) => react_jsx_runtime.JSX.Element;
93
-
94
- export { List, type ListProps };