x-ui-design 0.5.42 → 0.5.44

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.
@@ -1,24 +1,8 @@
1
- import React, { MouseEvent } from 'react';
1
+ import { ReactElement } from 'react';
2
+ import { CheckboxProps } from '../../types/checkbox';
2
3
  import './style.css';
3
- declare const Checkbox: React.ForwardRefExoticComponent<import("../../types").DefaultProps & {
4
- disabled?: boolean;
5
- onChange?: (e: MouseEvent<HTMLInputElement> & import("../../types").TargetProps) => void;
6
- onClick?: React.MouseEventHandler<HTMLElement>;
7
- onMouseEnter?: React.MouseEventHandler<HTMLElement>;
8
- onMouseLeave?: React.MouseEventHandler<HTMLElement>;
9
- onKeyPress?: React.KeyboardEventHandler<HTMLElement>;
10
- onKeyDown?: React.KeyboardEventHandler<HTMLElement>;
11
- value?: boolean;
12
- tabIndex?: number;
13
- name?: string;
14
- children?: React.ReactNode;
15
- id?: string;
16
- autoFocus?: boolean;
17
- type?: string;
18
- skipGroup?: boolean;
19
- required?: boolean;
20
- defaultChecked?: boolean;
21
- checked?: boolean;
22
- titleClick?: boolean;
23
- } & React.RefAttributes<HTMLDivElement>>;
4
+ declare const Checkbox: {
5
+ ({ prefixCls, className, defaultChecked, checked, style, disabled, onChange, onClick, onMouseEnter, onMouseLeave, onKeyPress, onKeyDown, tabIndex, name, children, id, autoFocus, type, value, required, noStyle, titleClick, ref }: CheckboxProps): ReactElement;
6
+ displayName: string;
7
+ };
24
8
  export default Checkbox;
@@ -1,31 +1,11 @@
1
- import React, { KeyboardEvent } from 'react';
2
- import { SyntheticBaseEvent } from '../../types';
1
+ import React from 'react';
2
+ import { InputProps } from '../../types/input';
3
3
  import Textarea from './Textarea/Textarea';
4
4
  import './style.css';
5
- declare const InputComponent: React.ForwardRefExoticComponent<Omit<React.InputHTMLAttributes<HTMLInputElement>, "size" | "prefix"> & import("../../types").DefaultProps & {
6
- addonBefore?: React.ReactNode;
7
- addonAfter?: React.ReactNode;
8
- size?: import("../../types").SizeType;
9
- prefix?: React.ReactNode;
10
- suffix?: React.ReactNode;
11
- disabled?: boolean;
12
- allowClear?: boolean;
13
- error?: boolean;
14
- bordered?: boolean;
15
- iconRender?: (visible: boolean) => React.ReactElement;
16
- onChange?: (event: SyntheticBaseEvent) => void;
17
- onClick?: React.MouseEventHandler<HTMLElement>;
18
- onMouseEnter?: React.MouseEventHandler<HTMLElement>;
19
- onMouseLeave?: React.MouseEventHandler<HTMLElement>;
20
- onKeyPress?: React.KeyboardEventHandler<HTMLElement>;
21
- onKeyDown?: React.KeyboardEventHandler<HTMLElement>;
22
- onPressEnter?: (event: KeyboardEvent<HTMLInputElement>) => void;
23
- feedbackIcons?: boolean;
24
- child?: React.ReactNode;
25
- mask?: string;
26
- maskChar?: string;
27
- maskRegex?: RegExp;
28
- } & React.RefAttributes<HTMLInputElement>>;
5
+ declare const InputComponent: {
6
+ ({ size, error, suffix, prefix, addonAfter, addonBefore, onPressEnter, disabled, allowClear, prefixCls, className, value, iconRender, noStyle, feedbackIcons, mask, maskChar, maskRegex, __injected, defaultValue, child, ref, ...props }: InputProps): React.JSX.Element;
7
+ displayName: string;
8
+ };
29
9
  declare const Input: typeof InputComponent & {
30
10
  TextArea: typeof Textarea;
31
11
  };
@@ -1,28 +1,8 @@
1
1
  import React from 'react';
2
+ import { TextareaProps } from '../../../types/input';
2
3
  import './style.css';
3
- declare const Textarea: React.ForwardRefExoticComponent<Omit<React.TextareaHTMLAttributes<HTMLTextAreaElement>, "onResize"> & import("../../..").DefaultProps & {
4
- value?: string;
5
- className?: string;
6
- style?: React.CSSProperties;
7
- autoSize?: boolean | {
8
- minRows?: number;
9
- maxRows?: number;
10
- };
11
- onPressEnter?: React.KeyboardEventHandler<HTMLTextAreaElement>;
12
- onResize?: (size: {
13
- width: number;
14
- height: number;
15
- }) => void;
16
- styles?: {
17
- textarea?: React.CSSProperties;
18
- count?: React.CSSProperties;
19
- };
20
- bordered?: boolean;
21
- size?: import("../../../types").SizeType;
22
- status?: "success" | "error";
23
- rootClassName?: string;
24
- variant?: "outlined" | "borderless" | "filled" | "underlined";
25
- error?: boolean;
26
- allowClear?: boolean;
27
- } & React.RefAttributes<HTMLTextAreaElement>>;
4
+ declare const Textarea: {
5
+ ({ prefixCls, value, className, style, autoSize, onPressEnter, onResize, styles, bordered, size, status, rootClassName, variant, error, allowClear, ref, ...props }: TextareaProps): React.JSX.Element;
6
+ displayName: string;
7
+ };
28
8
  export default Textarea;
@@ -1,28 +1,8 @@
1
1
  import React from 'react';
2
+ import { RadioProps } from '../../types/radio';
2
3
  import './style.css';
3
- declare const Radio: React.ForwardRefExoticComponent<import("../..").DefaultProps & {
4
- defaultChecked?: boolean;
5
- checked?: boolean;
6
- disabled?: boolean;
7
- title?: string;
8
- onChange?: (e: import("../..").SyntheticBaseEvent) => void;
9
- onClick?: React.MouseEventHandler<HTMLElement>;
10
- onMouseEnter?: React.MouseEventHandler<HTMLElement>;
11
- onMouseLeave?: React.MouseEventHandler<HTMLElement>;
12
- onKeyPress?: React.KeyboardEventHandler<HTMLElement>;
13
- onKeyDown?: React.KeyboardEventHandler<HTMLElement>;
14
- onFocus?: React.FocusEventHandler<HTMLInputElement>;
15
- onBlur?: React.FocusEventHandler<HTMLInputElement>;
16
- value?: import("../..").RuleType;
17
- tabIndex?: number;
18
- name?: string;
19
- children?: React.ReactNode;
20
- id?: string;
21
- autoFocus?: boolean;
22
- type?: string;
23
- skipGroup?: boolean;
24
- required?: boolean;
25
- button?: boolean;
26
- error?: boolean;
27
- } & React.RefAttributes<HTMLLabelElement>>;
4
+ declare const Radio: {
5
+ ({ prefixCls, className, value, onChange, onClick, disabled, children, name, title, defaultChecked, checked, onBlur, onFocus, onMouseEnter, onMouseLeave, noStyle, ref }: RadioProps): React.JSX.Element;
6
+ displayName: string;
7
+ };
28
8
  export default Radio;
@@ -1,54 +1,10 @@
1
- import React, { ReactElement, ReactNode } from 'react';
2
- import { OptionType } from '../../types/select';
1
+ import React, { ReactElement } from 'react';
2
+ import { SelectProps } from '../../types/select';
3
3
  import './style.css';
4
- declare const Select: React.ForwardRefExoticComponent<import("../../types").DefaultProps & {
5
- id?: string;
6
- searchValue?: string;
7
- onSearch?: (value: string) => void;
8
- autoClearSearchValue?: boolean;
9
- onSelect?: (value: import("../../types").RuleTypes, option?: OptionType) => void;
10
- onDeselect?: (value: string, option?: OptionType) => void;
11
- filterOption?: boolean | ((input: string, option: OptionType) => boolean);
12
- optionFilterProp?: string;
13
- options?: OptionType[];
14
- children?: ReactNode;
15
- defaultActiveFirstOption?: boolean;
16
- listHeight?: number;
17
- menuItemSelectedIcon?: ReactNode;
18
- mode?: "default" | "multiple" | "tags";
19
- value?: import("../../types").RuleTypes;
20
- defaultValue?: import("../../types").RuleTypes;
21
- maxCount?: number;
22
- onChange?: (e: import("../../types").RuleTypes, option?: OptionType) => void;
23
- onClose?: () => void;
24
- disabled?: boolean;
25
- loading?: boolean;
26
- placeholder?: string;
27
- allowClear?: boolean;
28
- filterable?: boolean;
29
- defaultOpen?: boolean;
30
- size?: "small" | "middle" | "large";
31
- onClear?: () => void;
32
- error?: boolean;
33
- showSearch?: boolean;
34
- tagRender?: ((props: import("../../types/select").CustomTagProps) => ReactElement) | undefined;
35
- maxTagPlaceholder?: ReactNode | ((omittedValues: import("../../types/select").DisplayValueType[]) => ReactNode);
36
- dropdownClassName?: string;
37
- showArrow?: boolean;
38
- onBlur?: React.FocusEventHandler<HTMLElement> | undefined;
39
- onDropdownVisibleChange?: ((open: boolean, selected: import("../../types").RuleType) => void) | undefined;
40
- showAction?: ("click" | "focus")[] | undefined;
41
- suffixIcon?: ReactNode;
42
- searchIcon?: ReactNode;
43
- open?: boolean;
44
- notFoundContent?: ReactNode;
45
- getPopupContainer?: (triggerNode: HTMLElement) => HTMLElement;
46
- dropdownRender?: (menu: ReactNode) => ReactNode;
47
- feedbackIcons?: boolean;
48
- placement?: "bottomLeft" | "bottomRight" | "topLeft" | "topRight";
49
- removeIcon?: ReactNode;
50
- maxTagCount?: number | "responsive";
51
- } & React.RefAttributes<HTMLDivElement>> & {
4
+ declare const Select: {
5
+ ({ prefixCls, id, searchValue, autoClearSearchValue, filterOption, optionFilterProp, children, options, listHeight, menuItemSelectedIcon, mode, value, defaultValue, maxCount, disabled, loading, placeholder, allowClear, filterable, defaultOpen, size, error, dropdownClassName, className, suffixIcon, searchIcon, style, showSearch, open, showArrow, notFoundContent, noStyle, feedbackIcons, placement, removeIcon, maxTagCount, onSearch, onSelect, onDeselect, onClear, onChange, onClose, tagRender, getPopupContainer, dropdownRender, onDropdownVisibleChange, ref }: SelectProps): ReactElement;
6
+ displayName: string;
7
+ } & {
52
8
  Option: React.FC<import("../../types/select").OptionProps>;
53
9
  };
54
10
  export default Select;
@@ -1,26 +1,6 @@
1
1
  import './styles/global.css';
2
2
  declare const Button: import("react").ComponentType<import("@/types/button").ButtonProps>;
3
- declare const Checkbox: import("react").ComponentType<import("@/types").DefaultProps & {
4
- disabled?: boolean;
5
- onChange?: (e: import("react").MouseEvent<HTMLInputElement> & import("@/types").TargetProps) => void;
6
- onClick?: import("react").MouseEventHandler<HTMLElement>;
7
- onMouseEnter?: import("react").MouseEventHandler<HTMLElement>;
8
- onMouseLeave?: import("react").MouseEventHandler<HTMLElement>;
9
- onKeyPress?: import("react").KeyboardEventHandler<HTMLElement>;
10
- onKeyDown?: import("react").KeyboardEventHandler<HTMLElement>;
11
- value?: boolean;
12
- tabIndex?: number;
13
- name?: string;
14
- children?: import("react").ReactNode;
15
- id?: string;
16
- autoFocus?: boolean;
17
- type?: string;
18
- skipGroup?: boolean;
19
- required?: boolean;
20
- defaultChecked?: boolean;
21
- checked?: boolean;
22
- titleClick?: boolean;
23
- } & import("react").RefAttributes<HTMLDivElement>>;
3
+ declare const Checkbox: import("react").ComponentType<import("@/types/checkbox").CheckboxProps>;
24
4
  declare const Switch: import("react").ComponentType<import("./types/switch").SwitchProps>;
25
5
  declare const Empty: import("react").ComponentType<import("./types/empty").EmptyContentProps>;
26
6
  declare const Upload: import("react").ComponentType<import("@/types/upload").UploadProps>;
@@ -29,130 +9,12 @@ declare const RangePicker: import("react").ComponentType<import("@/types/datepic
29
9
  declare const TimePicker: import("react").ComponentType<import("@/types/datepicker").TimePickerProps>;
30
10
  declare const Form: import("react").ComponentType<import("@/types/form").FormProps>;
31
11
  declare const FormItem: import("react").ComponentType<import("@/types/form").FormItemProps>;
32
- declare const Input: import("react").ComponentType<Omit<import("react").InputHTMLAttributes<HTMLInputElement>, "size" | "prefix"> & import("@/types").DefaultProps & {
33
- addonBefore?: import("react").ReactNode;
34
- addonAfter?: import("react").ReactNode;
35
- size?: import("@/types").SizeType;
36
- prefix?: import("react").ReactNode;
37
- suffix?: import("react").ReactNode;
38
- disabled?: boolean;
39
- allowClear?: boolean;
40
- error?: boolean;
41
- bordered?: boolean;
42
- iconRender?: (visible: boolean) => import("react").ReactElement;
43
- onChange?: (event: import("@/types").SyntheticBaseEvent) => void;
44
- onClick?: import("react").MouseEventHandler<HTMLElement>;
45
- onMouseEnter?: import("react").MouseEventHandler<HTMLElement>;
46
- onMouseLeave?: import("react").MouseEventHandler<HTMLElement>;
47
- onKeyPress?: import("react").KeyboardEventHandler<HTMLElement>;
48
- onKeyDown?: import("react").KeyboardEventHandler<HTMLElement>;
49
- onPressEnter?: (event: import("react").KeyboardEvent<HTMLInputElement>) => void;
50
- feedbackIcons?: boolean;
51
- child?: import("react").ReactNode;
52
- mask?: string;
53
- maskChar?: string;
54
- maskRegex?: RegExp;
55
- } & import("react").RefAttributes<HTMLInputElement>>;
56
- declare const Textarea: import("react").ComponentType<Omit<import("react").TextareaHTMLAttributes<HTMLTextAreaElement>, "onResize"> & import("@/types").DefaultProps & {
57
- value?: string;
58
- className?: string;
59
- style?: import("react").CSSProperties;
60
- autoSize?: boolean | {
61
- minRows?: number;
62
- maxRows?: number;
63
- };
64
- onPressEnter?: import("react").KeyboardEventHandler<HTMLTextAreaElement>;
65
- onResize?: (size: {
66
- width: number;
67
- height: number;
68
- }) => void;
69
- styles?: {
70
- textarea?: import("react").CSSProperties;
71
- count?: import("react").CSSProperties;
72
- };
73
- bordered?: boolean;
74
- size?: import("@/types").SizeType;
75
- status?: "success" | "error";
76
- rootClassName?: string;
77
- variant?: "outlined" | "borderless" | "filled" | "underlined";
78
- error?: boolean;
79
- allowClear?: boolean;
80
- } & import("react").RefAttributes<HTMLTextAreaElement>>;
81
- declare const Radio: import("react").ComponentType<import("@/types").DefaultProps & {
82
- defaultChecked?: boolean;
83
- checked?: boolean;
84
- disabled?: boolean;
85
- title?: string;
86
- onChange?: (e: import("@/types").SyntheticBaseEvent) => void;
87
- onClick?: import("react").MouseEventHandler<HTMLElement>;
88
- onMouseEnter?: import("react").MouseEventHandler<HTMLElement>;
89
- onMouseLeave?: import("react").MouseEventHandler<HTMLElement>;
90
- onKeyPress?: import("react").KeyboardEventHandler<HTMLElement>;
91
- onKeyDown?: import("react").KeyboardEventHandler<HTMLElement>;
92
- onFocus?: import("react").FocusEventHandler<HTMLInputElement>;
93
- onBlur?: import("react").FocusEventHandler<HTMLInputElement>;
94
- value?: import("@/types").RuleType;
95
- tabIndex?: number;
96
- name?: string;
97
- children?: import("react").ReactNode;
98
- id?: string;
99
- autoFocus?: boolean;
100
- type?: string;
101
- skipGroup?: boolean;
102
- required?: boolean;
103
- button?: boolean;
104
- error?: boolean;
105
- } & import("react").RefAttributes<HTMLLabelElement>>;
12
+ declare const Input: import("react").ComponentType<import("@/types/input").InputProps>;
13
+ declare const Textarea: import("react").ComponentType<import("@/types/input").TextareaProps>;
14
+ declare const Radio: import("react").ComponentType<import("@/types/radio").RadioProps>;
106
15
  declare const RadioButton: import("react").ComponentType<import("@/types/radio").RadioButtonProps>;
107
16
  declare const RadioGroup: import("react").ComponentType<import("@/types/radio").RadioGroupProps>;
108
- declare const Select: import("react").ComponentType<import("@/types").DefaultProps & {
109
- id?: string;
110
- searchValue?: string;
111
- onSearch?: (value: string) => void;
112
- autoClearSearchValue?: boolean;
113
- onSelect?: (value: import("@/types").RuleTypes, option?: import("@/types/select").OptionType) => void;
114
- onDeselect?: (value: string, option?: import("@/types/select").OptionType) => void;
115
- filterOption?: boolean | ((input: string, option: import("@/types/select").OptionType) => boolean);
116
- optionFilterProp?: string;
117
- options?: import("@/types/select").OptionType[];
118
- children?: import("react").ReactNode;
119
- defaultActiveFirstOption?: boolean;
120
- listHeight?: number;
121
- menuItemSelectedIcon?: import("react").ReactNode;
122
- mode?: "default" | "multiple" | "tags";
123
- value?: import("@/types").RuleTypes;
124
- defaultValue?: import("@/types").RuleTypes;
125
- maxCount?: number;
126
- onChange?: (e: import("@/types").RuleTypes, option?: import("@/types/select").OptionType) => void;
127
- onClose?: () => void;
128
- disabled?: boolean;
129
- loading?: boolean;
130
- placeholder?: string;
131
- allowClear?: boolean;
132
- filterable?: boolean;
133
- defaultOpen?: boolean;
134
- size?: "small" | "middle" | "large";
135
- onClear?: () => void;
136
- error?: boolean;
137
- showSearch?: boolean;
138
- tagRender?: ((props: import("@/types/select").CustomTagProps) => import("react").ReactElement) | undefined;
139
- maxTagPlaceholder?: import("react").ReactNode | ((omittedValues: import("@/types/select").DisplayValueType[]) => import("react").ReactNode);
140
- dropdownClassName?: string;
141
- showArrow?: boolean;
142
- onBlur?: import("react").FocusEventHandler<HTMLElement> | undefined;
143
- onDropdownVisibleChange?: ((open: boolean, selected: import("@/types").RuleType) => void) | undefined;
144
- showAction?: ("click" | "focus")[] | undefined;
145
- suffixIcon?: import("react").ReactNode;
146
- searchIcon?: import("react").ReactNode;
147
- open?: boolean;
148
- notFoundContent?: import("react").ReactNode;
149
- getPopupContainer?: (triggerNode: HTMLElement) => HTMLElement;
150
- dropdownRender?: (menu: import("react").ReactNode) => import("react").ReactNode;
151
- feedbackIcons?: boolean;
152
- placement?: "bottomLeft" | "bottomRight" | "topLeft" | "topRight";
153
- removeIcon?: import("react").ReactNode;
154
- maxTagCount?: number | "responsive";
155
- } & import("react").RefAttributes<HTMLDivElement>>;
17
+ declare const Select: import("react").ComponentType<import("@/types/select").SelectProps>;
156
18
  declare const Option: import("react").ComponentType<import("@/types/select").OptionProps>;
157
19
  declare const Tag: import("react").ComponentType<import("@/types/select").CustomTagProps>;
158
20
  declare const Skeleton: import("react").ComponentType<import("./types/skeleton").SkeletonProps>;
@@ -1,4 +1,4 @@
1
- import { KeyboardEventHandler, MouseEvent, MouseEventHandler, ReactNode } from 'react';
1
+ import { ForwardedRef, KeyboardEventHandler, MouseEvent, MouseEventHandler, ReactNode } from 'react';
2
2
  import { DefaultProps, TargetProps } from '.';
3
3
  export type CheckboxProps = DefaultProps & {
4
4
  disabled?: boolean;
@@ -20,4 +20,5 @@ export type CheckboxProps = DefaultProps & {
20
20
  defaultChecked?: boolean;
21
21
  checked?: boolean;
22
22
  titleClick?: boolean;
23
+ ref?: ForwardedRef<HTMLDivElement>;
23
24
  };
@@ -1,4 +1,4 @@
1
- import { CSSProperties, InputHTMLAttributes, KeyboardEvent, KeyboardEventHandler, MouseEventHandler, ReactElement, ReactNode, TextareaHTMLAttributes } from 'react';
1
+ import { CSSProperties, ForwardedRef, InputHTMLAttributes, KeyboardEvent, KeyboardEventHandler, MouseEventHandler, ReactElement, ReactNode, TextareaHTMLAttributes } from 'react';
2
2
  import { DefaultProps, SizeType, SyntheticBaseEvent } from '.';
3
3
  export type InputProps = Omit<InputHTMLAttributes<HTMLInputElement>, 'size' | 'prefix'> & DefaultProps & {
4
4
  addonBefore?: ReactNode;
@@ -23,6 +23,7 @@ export type InputProps = Omit<InputHTMLAttributes<HTMLInputElement>, 'size' | 'p
23
23
  mask?: string;
24
24
  maskChar?: string;
25
25
  maskRegex?: RegExp;
26
+ ref?: ForwardedRef<HTMLInputElement>;
26
27
  };
27
28
  export type TextareaProps = Omit<TextareaHTMLAttributes<HTMLTextAreaElement>, 'onResize'> & DefaultProps & {
28
29
  value?: string;
@@ -48,4 +49,5 @@ export type TextareaProps = Omit<TextareaHTMLAttributes<HTMLTextAreaElement>, 'o
48
49
  variant?: 'outlined' | 'borderless' | 'filled' | 'underlined';
49
50
  error?: boolean;
50
51
  allowClear?: boolean;
52
+ ref?: ForwardedRef<HTMLTextAreaElement>;
51
53
  };
@@ -1,4 +1,4 @@
1
- import { CSSProperties, FocusEventHandler, KeyboardEventHandler, MouseEventHandler, ReactNode } from 'react';
1
+ import { CSSProperties, FocusEventHandler, ForwardedRef, KeyboardEventHandler, MouseEventHandler, ReactNode } from 'react';
2
2
  import { DefaultProps, RuleType, SizeType, SyntheticBaseEvent } from '.';
3
3
  export type RadioValueType = string | number | readonly string[] | undefined;
4
4
  export interface RadioGroupProps {
@@ -50,6 +50,7 @@ export type RadioProps = DefaultProps & {
50
50
  required?: boolean;
51
51
  button?: boolean;
52
52
  error?: boolean;
53
+ ref?: ForwardedRef<HTMLLabelElement>;
53
54
  };
54
55
  export type RadioButtonProps = RadioProps & {
55
56
  children?: ReactNode;
@@ -1,4 +1,4 @@
1
- import { ChangeEventHandler, CSSProperties, FocusEventHandler, Key, KeyboardEventHandler, MouseEvent, MouseEventHandler, ReactElement, ReactEventHandler, ReactNode } from 'react';
1
+ import { ChangeEventHandler, CSSProperties, FocusEventHandler, ForwardedRef, Key, KeyboardEventHandler, MouseEvent, MouseEventHandler, ReactElement, ReactEventHandler, ReactNode } from 'react';
2
2
  import { DefaultProps, RuleType, RuleTypes, TargetProps } from '.';
3
3
  export type SelectProps = DefaultProps & {
4
4
  id?: string;
@@ -47,6 +47,7 @@ export type SelectProps = DefaultProps & {
47
47
  placement?: 'bottomLeft' | 'bottomRight' | 'topLeft' | 'topRight';
48
48
  removeIcon?: ReactNode;
49
49
  maxTagCount?: number | 'responsive';
50
+ ref?: ForwardedRef<HTMLDivElement>;
50
51
  };
51
52
  export interface OptionType {
52
53
  value: RuleType;
package/dist/index.d.ts CHANGED
@@ -4,21 +4,22 @@ import * as __types_select from '@/types/select';
4
4
  export { CustomTagProps, DisplayValueType, OptionProps, OptionType, SelectProps, TagProps } from '@/types/select';
5
5
  import * as __types_radio from '@/types/radio';
6
6
  export { RadioButtonProps, RadioGroupProps, RadioProps } from '@/types/radio';
7
+ import * as __types_input from '@/types/input';
8
+ export { InputProps, TextareaProps } from '@/types/input';
7
9
  import * as __types_form from '@/types/form';
8
10
  export { FieldData, FieldError, FieldInstancesInputRef, FormInstance, FormItemChildComponentProps, FormProps, RuleObject, RuleRender } from '@/types/form';
9
11
  import * as __types_datepicker from '@/types/datepicker';
10
12
  export { TDatePickerProps, TRangePickerProps, TimePickerProps } from '@/types/datepicker';
11
13
  import * as __types_upload from '@/types/upload';
12
14
  export { RcFile, UploadChangeParam, UploadFile, UploadProps } from '@/types/upload';
13
- import * as __types from '@/types';
14
- export { DefaultProps, MouseEventHandlerSelect, RuleType, RuleTypes, SyntheticBaseEvent, TargetProps } from '@/types';
15
+ import * as __types_checkbox from '@/types/checkbox';
16
+ export { CheckboxProps } from '@/types/checkbox';
15
17
  import * as __types_button from '@/types/button';
16
18
  export { BaseButtonProps, ButtonProps, ButtonType } from '@/types/button';
17
19
  export { ArrowIcon, CalendarIcon, CheckIcon, ClearIcon, DateDistanceIcon, ErrorIcon, LoadingIcon, SearchIcon, SpinerIcon, StampleIcon, SuccessIcon, TimeIcon, TrashIcon } from '@/components/Icons';
18
20
  export { useForm } from '@/hooks/useForm';
19
21
  export { useWatch } from '@/hooks/useWatch';
20
- export { CheckboxProps } from '@/types/checkbox';
21
- export { InputProps, TextareaProps } from '@/types/input';
22
+ export { DefaultProps, MouseEventHandlerSelect, RuleType, RuleTypes, SyntheticBaseEvent, TargetProps } from '@/types';
22
23
  export { FormContext } from '@/components/Form/Form';
23
24
  export { clsx, createArray, parseValue } from '@/helpers';
24
25
  export { flattenChildren } from '@/helpers/flatten';
@@ -102,27 +103,7 @@ type SwitchProps = DefaultProps & {
102
103
  };
103
104
 
104
105
  declare const Button: react.ComponentType<__types_button.ButtonProps>;
105
- declare const Checkbox: react.ComponentType<__types.DefaultProps & {
106
- disabled?: boolean;
107
- onChange?: (e: react.MouseEvent<HTMLInputElement> & __types.TargetProps) => void;
108
- onClick?: react.MouseEventHandler<HTMLElement>;
109
- onMouseEnter?: react.MouseEventHandler<HTMLElement>;
110
- onMouseLeave?: react.MouseEventHandler<HTMLElement>;
111
- onKeyPress?: react.KeyboardEventHandler<HTMLElement>;
112
- onKeyDown?: react.KeyboardEventHandler<HTMLElement>;
113
- value?: boolean;
114
- tabIndex?: number;
115
- name?: string;
116
- children?: react.ReactNode;
117
- id?: string;
118
- autoFocus?: boolean;
119
- type?: string;
120
- skipGroup?: boolean;
121
- required?: boolean;
122
- defaultChecked?: boolean;
123
- checked?: boolean;
124
- titleClick?: boolean;
125
- } & react.RefAttributes<HTMLDivElement>>;
106
+ declare const Checkbox: react.ComponentType<__types_checkbox.CheckboxProps>;
126
107
  declare const Switch: react.ComponentType<SwitchProps>;
127
108
  declare const Empty: react.ComponentType<EmptyContentProps>;
128
109
  declare const Upload: react.ComponentType<__types_upload.UploadProps>;
@@ -131,130 +112,12 @@ declare const RangePicker: react.ComponentType<__types_datepicker.TRangePickerPr
131
112
  declare const TimePicker: react.ComponentType<__types_datepicker.TimePickerProps>;
132
113
  declare const Form: react.ComponentType<__types_form.FormProps>;
133
114
  declare const FormItem: react.ComponentType<__types_form.FormItemProps>;
134
- declare const Input: react.ComponentType<Omit<react.InputHTMLAttributes<HTMLInputElement>, "size" | "prefix"> & __types.DefaultProps & {
135
- addonBefore?: react.ReactNode;
136
- addonAfter?: react.ReactNode;
137
- size?: __types.SizeType;
138
- prefix?: react.ReactNode;
139
- suffix?: react.ReactNode;
140
- disabled?: boolean;
141
- allowClear?: boolean;
142
- error?: boolean;
143
- bordered?: boolean;
144
- iconRender?: (visible: boolean) => react.ReactElement;
145
- onChange?: (event: __types.SyntheticBaseEvent) => void;
146
- onClick?: react.MouseEventHandler<HTMLElement>;
147
- onMouseEnter?: react.MouseEventHandler<HTMLElement>;
148
- onMouseLeave?: react.MouseEventHandler<HTMLElement>;
149
- onKeyPress?: react.KeyboardEventHandler<HTMLElement>;
150
- onKeyDown?: react.KeyboardEventHandler<HTMLElement>;
151
- onPressEnter?: (event: react.KeyboardEvent<HTMLInputElement>) => void;
152
- feedbackIcons?: boolean;
153
- child?: react.ReactNode;
154
- mask?: string;
155
- maskChar?: string;
156
- maskRegex?: RegExp;
157
- } & react.RefAttributes<HTMLInputElement>>;
158
- declare const Textarea: react.ComponentType<Omit<react.TextareaHTMLAttributes<HTMLTextAreaElement>, "onResize"> & __types.DefaultProps & {
159
- value?: string;
160
- className?: string;
161
- style?: react.CSSProperties;
162
- autoSize?: boolean | {
163
- minRows?: number;
164
- maxRows?: number;
165
- };
166
- onPressEnter?: react.KeyboardEventHandler<HTMLTextAreaElement>;
167
- onResize?: (size: {
168
- width: number;
169
- height: number;
170
- }) => void;
171
- styles?: {
172
- textarea?: react.CSSProperties;
173
- count?: react.CSSProperties;
174
- };
175
- bordered?: boolean;
176
- size?: __types.SizeType;
177
- status?: "success" | "error";
178
- rootClassName?: string;
179
- variant?: "outlined" | "borderless" | "filled" | "underlined";
180
- error?: boolean;
181
- allowClear?: boolean;
182
- } & react.RefAttributes<HTMLTextAreaElement>>;
183
- declare const Radio: react.ComponentType<__types.DefaultProps & {
184
- defaultChecked?: boolean;
185
- checked?: boolean;
186
- disabled?: boolean;
187
- title?: string;
188
- onChange?: (e: __types.SyntheticBaseEvent) => void;
189
- onClick?: react.MouseEventHandler<HTMLElement>;
190
- onMouseEnter?: react.MouseEventHandler<HTMLElement>;
191
- onMouseLeave?: react.MouseEventHandler<HTMLElement>;
192
- onKeyPress?: react.KeyboardEventHandler<HTMLElement>;
193
- onKeyDown?: react.KeyboardEventHandler<HTMLElement>;
194
- onFocus?: react.FocusEventHandler<HTMLInputElement>;
195
- onBlur?: react.FocusEventHandler<HTMLInputElement>;
196
- value?: __types.RuleType;
197
- tabIndex?: number;
198
- name?: string;
199
- children?: react.ReactNode;
200
- id?: string;
201
- autoFocus?: boolean;
202
- type?: string;
203
- skipGroup?: boolean;
204
- required?: boolean;
205
- button?: boolean;
206
- error?: boolean;
207
- } & react.RefAttributes<HTMLLabelElement>>;
115
+ declare const Input: react.ComponentType<__types_input.InputProps>;
116
+ declare const Textarea: react.ComponentType<__types_input.TextareaProps>;
117
+ declare const Radio: react.ComponentType<__types_radio.RadioProps>;
208
118
  declare const RadioButton: react.ComponentType<__types_radio.RadioButtonProps>;
209
119
  declare const RadioGroup: react.ComponentType<__types_radio.RadioGroupProps>;
210
- declare const Select: react.ComponentType<__types.DefaultProps & {
211
- id?: string;
212
- searchValue?: string;
213
- onSearch?: (value: string) => void;
214
- autoClearSearchValue?: boolean;
215
- onSelect?: (value: __types.RuleTypes, option?: __types_select.OptionType) => void;
216
- onDeselect?: (value: string, option?: __types_select.OptionType) => void;
217
- filterOption?: boolean | ((input: string, option: __types_select.OptionType) => boolean);
218
- optionFilterProp?: string;
219
- options?: __types_select.OptionType[];
220
- children?: react.ReactNode;
221
- defaultActiveFirstOption?: boolean;
222
- listHeight?: number;
223
- menuItemSelectedIcon?: react.ReactNode;
224
- mode?: "default" | "multiple" | "tags";
225
- value?: __types.RuleTypes;
226
- defaultValue?: __types.RuleTypes;
227
- maxCount?: number;
228
- onChange?: (e: __types.RuleTypes, option?: __types_select.OptionType) => void;
229
- onClose?: () => void;
230
- disabled?: boolean;
231
- loading?: boolean;
232
- placeholder?: string;
233
- allowClear?: boolean;
234
- filterable?: boolean;
235
- defaultOpen?: boolean;
236
- size?: "small" | "middle" | "large";
237
- onClear?: () => void;
238
- error?: boolean;
239
- showSearch?: boolean;
240
- tagRender?: ((props: __types_select.CustomTagProps) => react.ReactElement) | undefined;
241
- maxTagPlaceholder?: react.ReactNode | ((omittedValues: __types_select.DisplayValueType[]) => react.ReactNode);
242
- dropdownClassName?: string;
243
- showArrow?: boolean;
244
- onBlur?: react.FocusEventHandler<HTMLElement> | undefined;
245
- onDropdownVisibleChange?: ((open: boolean, selected: __types.RuleType) => void) | undefined;
246
- showAction?: ("click" | "focus")[] | undefined;
247
- suffixIcon?: react.ReactNode;
248
- searchIcon?: react.ReactNode;
249
- open?: boolean;
250
- notFoundContent?: react.ReactNode;
251
- getPopupContainer?: (triggerNode: HTMLElement) => HTMLElement;
252
- dropdownRender?: (menu: react.ReactNode) => react.ReactNode;
253
- feedbackIcons?: boolean;
254
- placement?: "bottomLeft" | "bottomRight" | "topLeft" | "topRight";
255
- removeIcon?: react.ReactNode;
256
- maxTagCount?: number | "responsive";
257
- } & react.RefAttributes<HTMLDivElement>>;
120
+ declare const Select: react.ComponentType<__types_select.SelectProps>;
258
121
  declare const Option: react.ComponentType<__types_select.OptionProps>;
259
122
  declare const Tag: react.ComponentType<__types_select.CustomTagProps>;
260
123
  declare const Skeleton: react.ComponentType<SkeletonProps>;