x-ui-design 0.4.86 → 0.4.89

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