@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.
- package/dist/styles/index.css +4 -0
- package/dist/styles/index.d.mts +2 -0
- package/package.json +12 -9
- package/dist/chunk-2DOPHSZP.js +0 -32
- package/dist/chunk-2TS6X5RA.js +0 -73
- package/dist/chunk-2Y327ZU4.js +0 -493
- package/dist/chunk-3OF7XPIQ.js +0 -90
- package/dist/chunk-3WPKVV4N.js +0 -140
- package/dist/chunk-5FRENLDC.js +0 -194
- package/dist/chunk-5QKMQRCW.js +0 -89
- package/dist/chunk-5ZVSFIZD.js +0 -50
- package/dist/chunk-6MGEGOYJ.js +0 -108
- package/dist/chunk-6PUSRC6S.js +0 -68
- package/dist/chunk-72ZRDBXN.js +0 -25
- package/dist/chunk-77D7VQMG.js +0 -43
- package/dist/chunk-7P6PHSFM.js +0 -548
- package/dist/chunk-AG6GVQ5O.js +0 -271
- package/dist/chunk-AQ6DHCP6.js +0 -53
- package/dist/chunk-AQQRWISY.js +0 -184
- package/dist/chunk-C5EFBJBR.js +0 -540
- package/dist/chunk-D3I2SY7X.js +0 -301
- package/dist/chunk-DZJUFU55.js +0 -300
- package/dist/chunk-EI2GHMQS.js +0 -37
- package/dist/chunk-ENR3RIMM.js +0 -205
- package/dist/chunk-EQWQXURG.js +0 -18
- package/dist/chunk-EUHWE7MN.js +0 -267
- package/dist/chunk-FAKTU64M.js +0 -67
- package/dist/chunk-FQ6UHRAO.js +0 -499
- package/dist/chunk-GX74TC62.js +0 -54
- package/dist/chunk-HDDBBZQH.js +0 -321
- package/dist/chunk-IFY46RWU.js +0 -25
- package/dist/chunk-IQINYCU6.js +0 -99
- package/dist/chunk-IY4LEJYF.js +0 -78
- package/dist/chunk-JW64IJP2.js +0 -210
- package/dist/chunk-KUCFT2OA.js +0 -43
- package/dist/chunk-LNKI6HQ3.js +0 -152
- package/dist/chunk-LXA2YBAO.js +0 -38
- package/dist/chunk-MKWXJZ3T.js +0 -74
- package/dist/chunk-NEULKOYJ.js +0 -48
- package/dist/chunk-NI2WNZRT.js +0 -38
- package/dist/chunk-OFCKGWTS.js +0 -12
- package/dist/chunk-OTRGVENC.js +0 -305
- package/dist/chunk-P273E6XE.js +0 -219
- package/dist/chunk-Q3DPJHNM.js +0 -407
- package/dist/chunk-QFVE7GKD.js +0 -109
- package/dist/chunk-QL6OBKEN.js +0 -84
- package/dist/chunk-QL6UEG3U.js +0 -27
- package/dist/chunk-QORSSZX4.js +0 -144
- package/dist/chunk-R4JSBXGG.js +0 -12
- package/dist/chunk-R5BQHZWB.js +0 -698
- package/dist/chunk-R7MS42PL.js +0 -90
- package/dist/chunk-TB2UHDOZ.js +0 -19
- package/dist/chunk-TBIEWDY5.js +0 -175
- package/dist/chunk-TJFS44SH.js +0 -48
- package/dist/chunk-TZ26HQAW.js +0 -85
- package/dist/chunk-U4ZVEPYD.js +0 -71
- package/dist/chunk-UFAXJVMD.js +0 -120
- package/dist/chunk-VJJ76I7U.js +0 -19
- package/dist/chunk-VO4WDK4K.js +0 -37
- package/dist/chunk-VSF4DF7N.js +0 -84
- package/dist/chunk-VVO4V4IK.js +0 -56
- package/dist/chunk-WK5HN4OH.js +0 -113
- package/dist/chunk-XZDJ5FRB.js +0 -333
- package/dist/chunk-YE2M2HNM.js +0 -168
- package/dist/chunk-YYGTJKP5.js +0 -39
- package/dist/chunk-ZREFCRX3.js +0 -52
- package/dist/components/Alert.d.ts +0 -24
- package/dist/components/Alert.js +0 -10
- package/dist/components/Avatar.d.ts +0 -12
- package/dist/components/Avatar.js +0 -10
- package/dist/components/Badge.d.ts +0 -12
- package/dist/components/Badge.js +0 -10
- package/dist/components/Breadcrumb.d.ts +0 -13
- package/dist/components/Breadcrumb.js +0 -14
- package/dist/components/BreadcrumbItem.d.ts +0 -21
- package/dist/components/BreadcrumbItem.js +0 -11
- package/dist/components/Button.d.ts +0 -8
- package/dist/components/Button.js +0 -10
- package/dist/components/Card.d.ts +0 -33
- package/dist/components/Card.js +0 -10
- package/dist/components/Checkbox.d.ts +0 -48
- package/dist/components/Checkbox.js +0 -11
- package/dist/components/CheckboxGroup.d.ts +0 -39
- package/dist/components/CheckboxGroup.js +0 -14
- package/dist/components/Code.d.ts +0 -9
- package/dist/components/Code.js +0 -16
- package/dist/components/Col.d.ts +0 -7
- package/dist/components/Col.js +0 -11
- package/dist/components/ConfigProvider.d.ts +0 -14
- package/dist/components/ConfigProvider.js +0 -14
- package/dist/components/Container.d.ts +0 -13
- package/dist/components/Container.js +0 -10
- package/dist/components/Content.d.ts +0 -9
- package/dist/components/Content.js +0 -10
- package/dist/components/DatePicker.d.ts +0 -24
- package/dist/components/DatePicker.js +0 -10
- package/dist/components/Descriptions.d.ts +0 -53
- package/dist/components/Descriptions.js +0 -16
- package/dist/components/Divider.d.ts +0 -12
- package/dist/components/Divider.js +0 -10
- package/dist/components/Drawer.d.ts +0 -19
- package/dist/components/Drawer.js +0 -11
- package/dist/components/Dropdown.d.ts +0 -22
- package/dist/components/Dropdown.js +0 -16
- package/dist/components/DropdownItem.d.ts +0 -17
- package/dist/components/DropdownItem.js +0 -13
- package/dist/components/DropdownMenu.d.ts +0 -13
- package/dist/components/DropdownMenu.js +0 -10
- package/dist/components/Footer.d.ts +0 -9
- package/dist/components/Footer.js +0 -10
- package/dist/components/Form.d.ts +0 -56
- package/dist/components/Form.js +0 -14
- package/dist/components/FormItem.d.ts +0 -16
- package/dist/components/FormItem.js +0 -11
- package/dist/components/Header.d.ts +0 -9
- package/dist/components/Header.js +0 -10
- package/dist/components/Icon.d.ts +0 -9
- package/dist/components/Icon.js +0 -10
- package/dist/components/Input.d.ts +0 -28
- package/dist/components/Input.js +0 -10
- package/dist/components/Layout.d.ts +0 -9
- package/dist/components/Layout.js +0 -10
- package/dist/components/Link.d.ts +0 -10
- package/dist/components/Link.js +0 -10
- package/dist/components/List.d.ts +0 -94
- package/dist/components/List.js +0 -12
- package/dist/components/Loading.d.ts +0 -8
- package/dist/components/Loading.js +0 -10
- package/dist/components/Menu.d.ts +0 -35
- package/dist/components/Menu.js +0 -14
- package/dist/components/MenuItem.d.ts +0 -20
- package/dist/components/MenuItem.js +0 -11
- package/dist/components/MenuItemGroup.d.ts +0 -16
- package/dist/components/MenuItemGroup.js +0 -12
- package/dist/components/Message.d.ts +0 -44
- package/dist/components/Message.js +0 -20
- package/dist/components/Modal.d.ts +0 -41
- package/dist/components/Modal.js +0 -11
- package/dist/components/Notification.d.ts +0 -40
- package/dist/components/Notification.js +0 -20
- package/dist/components/Pagination.d.ts +0 -11
- package/dist/components/Pagination.js +0 -16
- package/dist/components/Popconfirm.d.ts +0 -34
- package/dist/components/Popconfirm.js +0 -10
- package/dist/components/Popover.d.ts +0 -14
- package/dist/components/Popover.js +0 -10
- package/dist/components/Progress.d.ts +0 -8
- package/dist/components/Progress.js +0 -10
- package/dist/components/Radio.d.ts +0 -20
- package/dist/components/Radio.js +0 -11
- package/dist/components/RadioGroup.d.ts +0 -28
- package/dist/components/RadioGroup.js +0 -14
- package/dist/components/Row.d.ts +0 -11
- package/dist/components/Row.js +0 -14
- package/dist/components/Select.d.ts +0 -23
- package/dist/components/Select.js +0 -10
- package/dist/components/Sidebar.d.ts +0 -9
- package/dist/components/Sidebar.js +0 -10
- package/dist/components/Skeleton.d.ts +0 -7
- package/dist/components/Skeleton.js +0 -10
- package/dist/components/Slider.d.ts +0 -12
- package/dist/components/Slider.js +0 -10
- package/dist/components/Space.d.ts +0 -11
- package/dist/components/Space.js +0 -10
- package/dist/components/Steps.d.ts +0 -31
- package/dist/components/Steps.js +0 -14
- package/dist/components/StepsItem.d.ts +0 -36
- package/dist/components/StepsItem.js +0 -10
- package/dist/components/SubMenu.d.ts +0 -20
- package/dist/components/SubMenu.js +0 -13
- package/dist/components/Switch.d.ts +0 -12
- package/dist/components/Switch.js +0 -10
- package/dist/components/TabPane.d.ts +0 -42
- package/dist/components/TabPane.js +0 -10
- package/dist/components/Table.d.ts +0 -46
- package/dist/components/Table.js +0 -10
- package/dist/components/Tabs.d.ts +0 -43
- package/dist/components/Tabs.js +0 -14
- package/dist/components/Tag.d.ts +0 -16
- package/dist/components/Tag.js +0 -10
- package/dist/components/Text.d.ts +0 -9
- package/dist/components/Text.js +0 -10
- package/dist/components/Textarea.d.ts +0 -13
- package/dist/components/Textarea.js +0 -10
- package/dist/components/TimePicker.d.ts +0 -28
- package/dist/components/TimePicker.js +0 -10
- package/dist/components/Timeline.d.ts +0 -47
- package/dist/components/Timeline.js +0 -10
- package/dist/components/Tooltip.d.ts +0 -15
- package/dist/components/Tooltip.js +0 -10
- package/dist/components/Tree.d.ts +0 -154
- package/dist/components/Tree.js +0 -16
- package/dist/components/Upload.d.ts +0 -16
- package/dist/components/Upload.js +0 -11
- package/dist/index.d.ts +0 -77
- 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,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,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,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,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,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,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,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 };
|
package/dist/components/Form.js
DELETED
|
@@ -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,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,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 };
|
package/dist/components/Icon.js
DELETED
|
@@ -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 };
|
package/dist/components/Input.js
DELETED
|
@@ -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
|
-
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 };
|
package/dist/components/Link.js
DELETED
|
@@ -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 };
|