x-ui-design 0.2.58 → 0.2.60

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 (153) hide show
  1. package/dist/esm/types/components/Button/Button.d.ts +3 -6
  2. package/dist/esm/types/components/DatePicker/DatePicker.d.ts +9 -0
  3. package/dist/esm/types/components/DatePicker/RangePicker/RangePicker.d.ts +4 -0
  4. package/dist/esm/types/components/DatePicker/RangePicker/index.d.ts +1 -0
  5. package/dist/esm/types/components/DatePicker/TimePicker/TimePicker.d.ts +5 -0
  6. package/dist/esm/types/components/DatePicker/TimePicker/index.d.ts +1 -0
  7. package/dist/esm/types/components/DatePicker/index.d.ts +1 -0
  8. package/dist/esm/types/components/Empty/Empty.d.ts +4 -0
  9. package/dist/esm/types/components/Empty/index.d.ts +1 -0
  10. package/dist/esm/types/components/Form/Form.d.ts +7 -0
  11. package/dist/esm/types/components/Form/Item/Item.d.ts +7 -0
  12. package/dist/esm/types/components/Form/Item/index.d.ts +1 -0
  13. package/dist/esm/types/components/Form/index.d.ts +1 -0
  14. package/dist/esm/types/components/Icons/Icons.d.ts +16 -0
  15. package/dist/esm/types/components/Icons/index.d.ts +1 -0
  16. package/dist/esm/types/components/Input/Input.d.ts +28 -0
  17. package/dist/esm/types/components/Input/Textarea/Textarea.d.ts +27 -0
  18. package/dist/esm/types/components/Input/Textarea/index.d.ts +1 -0
  19. package/dist/esm/types/components/Input/index.d.ts +1 -0
  20. package/dist/esm/types/components/Radio/Button/Button.d.ts +4 -0
  21. package/dist/esm/types/components/Radio/Button/index.d.ts +1 -0
  22. package/dist/esm/types/components/Radio/Group/Group.d.ts +4 -0
  23. package/dist/esm/types/components/Radio/Group/index.d.ts +1 -0
  24. package/dist/esm/types/components/Radio/Radio.d.ts +30 -0
  25. package/dist/esm/types/components/Radio/index.d.ts +1 -0
  26. package/dist/esm/types/components/Select/Option/Option.d.ts +5 -0
  27. package/dist/esm/types/components/Select/Option/index.d.ts +1 -0
  28. package/dist/esm/types/components/Select/Select.d.ts +51 -0
  29. package/dist/esm/types/components/Select/Tag/Tag.d.ts +5 -0
  30. package/dist/esm/types/components/Select/Tag/index.d.ts +1 -0
  31. package/dist/esm/types/components/Select/index.d.ts +1 -0
  32. package/dist/esm/types/components/Skeleton/Avatar/Avatar.d.ts +8 -0
  33. package/dist/esm/types/components/Skeleton/Avatar/index.d.ts +1 -0
  34. package/dist/esm/types/components/Skeleton/Button/Button.d.ts +5 -0
  35. package/dist/esm/types/components/Skeleton/Button/index.d.ts +1 -0
  36. package/dist/esm/types/components/Skeleton/Image/Image.d.ts +5 -0
  37. package/dist/esm/types/components/Skeleton/Image/index.d.ts +1 -0
  38. package/dist/esm/types/components/Skeleton/Input/Input.d.ts +5 -0
  39. package/dist/esm/types/components/Skeleton/Input/index.d.ts +1 -0
  40. package/dist/esm/types/components/Skeleton/Skeleton.d.ts +11 -0
  41. package/dist/esm/types/components/Skeleton/index.d.ts +1 -0
  42. package/dist/esm/types/components/Upload/Upload.d.ts +4 -0
  43. package/dist/esm/types/components/Upload/index.d.ts +1 -0
  44. package/dist/esm/types/hooks/useForm.d.ts +4 -0
  45. package/dist/esm/types/hooks/useWatch.d.ts +9 -0
  46. package/dist/esm/types/index.d.ts +136 -1
  47. package/dist/esm/types/types/datepicker.d.ts +119 -0
  48. package/dist/esm/types/types/empty.d.ts +7 -0
  49. package/dist/esm/types/types/form.d.ts +107 -0
  50. package/dist/esm/types/types/input.d.ts +47 -0
  51. package/dist/esm/types/types/radio.d.ts +57 -0
  52. package/dist/esm/types/types/select.d.ts +97 -0
  53. package/dist/esm/types/types/skeleton.d.ts +50 -0
  54. package/dist/esm/types/types/upload.d.ts +54 -0
  55. package/dist/index.d.ts +600 -2
  56. package/dist/index.esm.js +2993 -25
  57. package/dist/index.esm.js.map +1 -1
  58. package/dist/index.js +3031 -27
  59. package/dist/index.js.map +1 -1
  60. package/lib/components/Button/Button.tsx +28 -11
  61. package/lib/components/DatePicker/RangePicker/index.ts +1 -0
  62. package/lib/components/DatePicker/TimePicker/index.ts +1 -0
  63. package/lib/components/DatePicker/index.ts +1 -0
  64. package/lib/components/Empty/index.ts +1 -0
  65. package/{src → lib}/components/Form/Form.tsx +2 -2
  66. package/{src → lib}/components/Form/Item/Item.tsx +3 -3
  67. package/{src → lib}/components/Input/Input.tsx +2 -2
  68. package/{src → lib}/components/Input/Textarea/Textarea.tsx +2 -2
  69. package/lib/components/Input/Textarea/index.ts +1 -0
  70. package/lib/components/Input/index.ts +1 -0
  71. package/lib/components/Radio/Button/index.ts +1 -0
  72. package/lib/components/Radio/Group/index.ts +1 -0
  73. package/lib/components/Radio/index.ts +1 -0
  74. package/{src → lib}/components/Select/Option/Option.tsx +2 -2
  75. package/lib/components/Select/Option/index.ts +1 -0
  76. package/{src → lib}/components/Select/Select.tsx +3 -3
  77. package/{src → lib}/components/Select/Tag/Tag.tsx +1 -1
  78. package/lib/components/Select/Tag/index.ts +1 -0
  79. package/lib/components/Select/index.ts +1 -0
  80. package/{src → lib}/components/Skeleton/Avatar/Avatar.tsx +2 -2
  81. package/{src → lib}/components/Skeleton/Button/Button.tsx +2 -2
  82. package/{src → lib}/components/Skeleton/Image/Image.tsx +1 -1
  83. package/{src → lib}/components/Skeleton/Input/Input.tsx +2 -2
  84. package/{src → lib}/components/Skeleton/Skeleton.tsx +2 -2
  85. package/lib/components/Upload/index.ts +1 -0
  86. package/{src → lib}/hooks/useForm.ts +2 -2
  87. package/{src → lib}/hooks/useWatch.ts +3 -3
  88. package/lib/index.ts +68 -12
  89. package/lib/types/input.ts +65 -0
  90. package/package.json +1 -1
  91. package/src/app/page.tsx +1 -1
  92. package/dist/esm/types/components/Button/Button.client.d.ts +0 -4
  93. package/lib/components/Button/Button.client.tsx +0 -39
  94. package/src/components/Checkbox/Checkbox.tsx +0 -115
  95. package/src/components/Checkbox/index.ts +0 -1
  96. package/src/components/Checkbox/style.css +0 -91
  97. package/src/components/DatePicker/RangePicker/index.ts +0 -1
  98. package/src/components/DatePicker/TimePicker/index.ts +0 -1
  99. package/src/components/DatePicker/index.ts +0 -1
  100. package/src/components/Empty/index.ts +0 -1
  101. package/src/components/Input/Textarea/index.ts +0 -1
  102. package/src/components/Input/index.ts +0 -1
  103. package/src/components/Radio/Button/index.ts +0 -1
  104. package/src/components/Radio/Group/index.ts +0 -1
  105. package/src/components/Radio/index.ts +0 -1
  106. package/src/components/Select/Option/index.ts +0 -1
  107. package/src/components/Select/Tag/index.ts +0 -1
  108. package/src/components/Select/index.ts +0 -1
  109. package/src/components/Upload/index.ts +0 -1
  110. package/src/types/index.ts +0 -27
  111. package/{src → lib}/components/DatePicker/DatePicker.tsx +1 -1
  112. /package/{src → lib}/components/DatePicker/RangePicker/RangePicker.tsx +0 -0
  113. /package/{src → lib}/components/DatePicker/RangePicker/style.css +0 -0
  114. /package/{src → lib}/components/DatePicker/TimePicker/TimePicker.tsx +0 -0
  115. /package/{src → lib}/components/DatePicker/TimePicker/style.css +0 -0
  116. /package/{src → lib}/components/DatePicker/style.css +0 -0
  117. /package/{src → lib}/components/Empty/Empty.tsx +0 -0
  118. /package/{src → lib}/components/Empty/style.css +0 -0
  119. /package/{src → lib}/components/Form/Item/index.ts +0 -0
  120. /package/{src → lib}/components/Form/Item/style.css +0 -0
  121. /package/{src → lib}/components/Form/index.ts +0 -0
  122. /package/{src → lib}/components/Icons/Icons.tsx +0 -0
  123. /package/{src → lib}/components/Icons/index.ts +0 -0
  124. /package/{src → lib}/components/Input/Textarea/style.css +0 -0
  125. /package/{src → lib}/components/Input/style.css +0 -0
  126. /package/{src → lib}/components/Radio/Button/Button.tsx +0 -0
  127. /package/{src → lib}/components/Radio/Button/style.css +0 -0
  128. /package/{src → lib}/components/Radio/Group/Group.tsx +0 -0
  129. /package/{src → lib}/components/Radio/Group/style.css +0 -0
  130. /package/{src → lib}/components/Radio/Radio.tsx +0 -0
  131. /package/{src → lib}/components/Radio/style.css +0 -0
  132. /package/{src → lib}/components/Select/Option/style.css +0 -0
  133. /package/{src → lib}/components/Select/Tag/style.css +0 -0
  134. /package/{src → lib}/components/Select/style.css +0 -0
  135. /package/{src → lib}/components/Skeleton/Avatar/index.ts +0 -0
  136. /package/{src → lib}/components/Skeleton/Avatar/style.css +0 -0
  137. /package/{src → lib}/components/Skeleton/Button/index.ts +0 -0
  138. /package/{src → lib}/components/Skeleton/Button/style.css +0 -0
  139. /package/{src → lib}/components/Skeleton/Image/index.ts +0 -0
  140. /package/{src → lib}/components/Skeleton/Image/style.css +0 -0
  141. /package/{src → lib}/components/Skeleton/Input/index.ts +0 -0
  142. /package/{src → lib}/components/Skeleton/Input/style.css +0 -0
  143. /package/{src → lib}/components/Skeleton/index.ts +0 -0
  144. /package/{src → lib}/components/Skeleton/style.css +0 -0
  145. /package/{src → lib}/components/Upload/Upload.tsx +0 -0
  146. /package/{src → lib}/components/Upload/style.css +0 -0
  147. /package/{src → lib}/types/datepicker.ts +0 -0
  148. /package/{src → lib}/types/empty.ts +0 -0
  149. /package/{src → lib}/types/form.ts +0 -0
  150. /package/{src → lib}/types/radio.ts +0 -0
  151. /package/{src → lib}/types/select.ts +0 -0
  152. /package/{src → lib}/types/skeleton.ts +0 -0
  153. /package/{src → lib}/types/upload.ts +0 -0
@@ -1,8 +1,5 @@
1
- import { ReactElement, ReactNode } from 'react';
1
+ import { ReactElement } from 'react';
2
2
  import { ButtonProps } from '../../types/button';
3
3
  import './style.css';
4
- declare const Button: ({ type, variant, color, shape, size, htmlType, className, rootClassName, classNames: customClassNames, styles, prefixCls, iconPosition, disabled, ghost, danger, block, children, href, iconNode, isLoading, ...restProps }: ButtonProps & {
5
- iconNode?: ReactNode;
6
- isLoading?: boolean;
7
- }) => ReactElement;
8
- export default Button;
4
+ declare const ButtonComponent: ({ type, variant, color, shape, size, htmlType, className, rootClassName, classNames: customClassNames, styles, prefixCls, icon, iconPosition, loading, disabled, ghost, danger, block, children, href, ...restProps }: ButtonProps) => ReactElement;
5
+ export default ButtonComponent;
@@ -0,0 +1,9 @@
1
+ import { TDatePickerProps } from '../../types/datepicker';
2
+ import './style.css';
3
+ export declare const NUMBER_SIX = 6;
4
+ export declare const MONTH_LENGTH = 11;
5
+ export declare const NEXT_DAYS_COUNT_AS_CURRENT_MUNTH = 35;
6
+ declare const DatePicker: (({ value, onChange, onCalendarChange, disabled, error, placeholder, prefixCls, noStyle, feedbackIcons, locale, placement, defaultValue, size, format, getPopupContainer, showToday, allowClear, disabledDate, suffixIcon, picker, prefix, defaultOpen, inputReadOnly, bordered }: TDatePickerProps) => import("react").JSX.Element) & {
7
+ RangePicker: ({ prefixCls, value, onChange, placeholder, disabled, error, format, prefix, allowClear, inputReadOnly, size, picker, locale, disabledDate, style, className, separator, defaultValue, bordered }: import("../../types/datepicker").TRangePickerProps) => import("react").JSX.Element;
8
+ };
9
+ export default DatePicker;
@@ -0,0 +1,4 @@
1
+ import { TRangePickerProps } from '../../../types/datepicker';
2
+ import './style.css';
3
+ declare const RangePicker: ({ prefixCls, value, onChange, placeholder, disabled, error, format, prefix, allowClear, inputReadOnly, size, picker, locale, disabledDate, style, className, separator, defaultValue, bordered }: TRangePickerProps) => import("react").JSX.Element;
4
+ export default RangePicker;
@@ -0,0 +1 @@
1
+ export { default as RangePicker } from '../RangePicker/RangePicker';
@@ -0,0 +1,5 @@
1
+ import { FC } from 'react';
2
+ import { TimePickerProps } from '../../../types/datepicker';
3
+ import './style.css';
4
+ declare const TimePicker: FC<TimePickerProps>;
5
+ export default TimePicker;
@@ -0,0 +1 @@
1
+ export { default as TimePicker } from '../TimePicker/TimePicker';
@@ -0,0 +1 @@
1
+ export { default as DatePicker } from '../DatePicker/DatePicker';
@@ -0,0 +1,4 @@
1
+ import { EmptyContentProps } from '../../types/empty';
2
+ import './style.css';
3
+ declare const EmptyContent: ({ icon, style, className, title, description, prefixCls }: EmptyContentProps) => import("react").JSX.Element;
4
+ export default EmptyContent;
@@ -0,0 +1 @@
1
+ export { default as Empty } from '../Empty/Empty';
@@ -0,0 +1,7 @@
1
+ import { FC } from 'react';
2
+ import { FormInstance, FormItemProps, FormProps } from '../../types/form';
3
+ export declare const FormContext: import("react").Context<FormInstance | null>;
4
+ declare const Form: FC<FormProps> & {
5
+ Item: FC<FormItemProps>;
6
+ };
7
+ export default Form;
@@ -0,0 +1,7 @@
1
+ import { FormItemProps } from '../../../types/form';
2
+ import './style.css';
3
+ declare const FormItem: {
4
+ ({ prefixCls, name, label, rules, children, className, layout, style, valuePropName, dependencies, initialValue, feedbackIcons, ...props }: FormItemProps): import("react").JSX.Element;
5
+ displayName: string;
6
+ };
7
+ export default FormItem;
@@ -0,0 +1 @@
1
+ export { default as Item } from './Item';
@@ -0,0 +1 @@
1
+ export { default as Form } from './Form';
@@ -0,0 +1,16 @@
1
+ declare const ClearIcon: () => import("react").JSX.Element;
2
+ declare const ArrowIcon: ({ isOpen }: {
3
+ isOpen: boolean;
4
+ }) => import("react").JSX.Element;
5
+ declare const LoadingIcon: () => import("react").JSX.Element;
6
+ declare const CheckIcon: () => import("react").JSX.Element;
7
+ declare const SearchIcon: () => import("react").JSX.Element;
8
+ declare const CalendarIcon: () => import("react").JSX.Element;
9
+ declare const SuccessIcon: () => import("react").JSX.Element;
10
+ declare const ErrorIcon: () => import("react").JSX.Element;
11
+ declare const DateDistanceIcon: () => import("react").JSX.Element;
12
+ declare const TimeIcon: () => import("react").JSX.Element;
13
+ declare const StampleIcon: () => import("react").JSX.Element;
14
+ declare const TrashIcon: () => import("react").JSX.Element;
15
+ declare const SpinerIcon: () => import("react").JSX.Element;
16
+ export { ClearIcon, ArrowIcon, LoadingIcon, CheckIcon, SearchIcon, CalendarIcon, SuccessIcon, ErrorIcon, DateDistanceIcon, TimeIcon, StampleIcon, TrashIcon, SpinerIcon };
@@ -0,0 +1 @@
1
+ export { ClearIcon, ArrowIcon, LoadingIcon, CheckIcon, SearchIcon, CalendarIcon, SuccessIcon, ErrorIcon, DateDistanceIcon, TimeIcon, StampleIcon, TrashIcon, SpinerIcon } from './Icons';
@@ -0,0 +1,28 @@
1
+ import { KeyboardEvent } from 'react';
2
+ import { SyntheticBaseEvent } from '../../types';
3
+ import './style.css';
4
+ import Textarea from './Textarea/Textarea';
5
+ declare const InputComponent: import("react").ForwardRefExoticComponent<Omit<import("react").InputHTMLAttributes<HTMLInputElement>, "size" | "prefix"> & import("../../types").DefaultProps & {
6
+ addonBefore?: import("react").ReactNode;
7
+ addonAfter?: import("react").ReactNode;
8
+ size?: import("../../types").SizeType;
9
+ prefix?: import("react").ReactNode;
10
+ suffix?: import("react").ReactNode;
11
+ disabled?: boolean;
12
+ allowClear?: boolean;
13
+ error?: boolean;
14
+ bordered?: boolean;
15
+ iconRender?: (visible: boolean) => import("react").ReactElement;
16
+ onChange?: (event: SyntheticBaseEvent) => void;
17
+ onClick?: import("react").MouseEventHandler<HTMLElement>;
18
+ onMouseEnter?: import("react").MouseEventHandler<HTMLElement>;
19
+ onMouseLeave?: import("react").MouseEventHandler<HTMLElement>;
20
+ onKeyPress?: import("react").KeyboardEventHandler<HTMLElement>;
21
+ onKeyDown?: import("react").KeyboardEventHandler<HTMLElement>;
22
+ onPressEnter?: (event: KeyboardEvent<HTMLInputElement>) => void;
23
+ feedbackIcons?: boolean;
24
+ } & import("react").RefAttributes<HTMLInputElement>>;
25
+ declare const Input: typeof InputComponent & {
26
+ TextArea: typeof Textarea;
27
+ };
28
+ export default Input;
@@ -0,0 +1,27 @@
1
+ import './style.css';
2
+ declare const Textarea: import("react").ForwardRefExoticComponent<Omit<import("react").TextareaHTMLAttributes<HTMLTextAreaElement>, "onResize"> & import("../../../types").DefaultProps & {
3
+ value?: string;
4
+ className?: string;
5
+ style?: import("react").CSSProperties;
6
+ autoSize?: boolean | {
7
+ minRows?: number;
8
+ maxRows?: number;
9
+ };
10
+ onPressEnter?: import("react").KeyboardEventHandler<HTMLTextAreaElement>;
11
+ onResize?: (size: {
12
+ width: number;
13
+ height: number;
14
+ }) => void;
15
+ styles?: {
16
+ textarea?: import("react").CSSProperties;
17
+ count?: import("react").CSSProperties;
18
+ };
19
+ bordered?: boolean;
20
+ size?: import("../../../types").SizeType;
21
+ status?: "success" | "error";
22
+ rootClassName?: string;
23
+ variant?: "outlined" | "borderless" | "filled" | "underlined";
24
+ error?: boolean;
25
+ allowClear?: boolean;
26
+ } & import("react").RefAttributes<HTMLTextAreaElement>>;
27
+ export default Textarea;
@@ -0,0 +1 @@
1
+ export { default as Textarea } from '../Textarea/Textarea';
@@ -0,0 +1 @@
1
+ export { default as Input } from '../Input/Input';
@@ -0,0 +1,4 @@
1
+ import { RadioButtonProps } from '../../../types/radio';
2
+ import './style.css';
3
+ declare const RadioButton: ({ prefixCls, className, checked, disabled, children, size, ...props }: RadioButtonProps) => import("react").JSX.Element;
4
+ export default RadioButton;
@@ -0,0 +1 @@
1
+ export { default as RadioButton } from '../../Radio/Button/Button';
@@ -0,0 +1,4 @@
1
+ import { RadioGroupProps } from '../../../types/radio';
2
+ import './style.css';
3
+ declare const RadioGroup: ({ defaultValue, value, size, disabled, name, id, style, buttonStyle, block, prefixCls, className, options, children, ...props }: RadioGroupProps) => import("react").JSX.Element;
4
+ export default RadioGroup;
@@ -0,0 +1 @@
1
+ export { default as RadioGroup } from '../../Radio/Group/Group';
@@ -0,0 +1,30 @@
1
+ import './style.css';
2
+ declare const Radio: import("react").ForwardRefExoticComponent<import("../../types").DefaultProps & {
3
+ defaultChecked?: boolean;
4
+ checked?: boolean;
5
+ disabled?: boolean;
6
+ title?: string;
7
+ onChange?: (e: import("../../types").SyntheticBaseEvent) => void;
8
+ onClick?: import("react").MouseEventHandler<HTMLElement>;
9
+ onMouseEnter?: import("react").MouseEventHandler<HTMLElement>;
10
+ onMouseLeave?: import("react").MouseEventHandler<HTMLElement>;
11
+ onKeyPress?: import("react").KeyboardEventHandler<HTMLElement>;
12
+ onKeyDown?: import("react").KeyboardEventHandler<HTMLElement>;
13
+ onFocus?: import("react").FocusEventHandler<HTMLInputElement>;
14
+ onBlur?: import("react").FocusEventHandler<HTMLInputElement>;
15
+ value?: import("../../types").RuleType;
16
+ tabIndex?: number;
17
+ name?: string;
18
+ children?: import("react").ReactNode;
19
+ id?: string;
20
+ autoFocus?: boolean;
21
+ type?: string;
22
+ skipGroup?: boolean;
23
+ required?: boolean;
24
+ button?: boolean;
25
+ error?: boolean;
26
+ } & import("react").RefAttributes<HTMLLabelElement>> & {
27
+ Group: ({ defaultValue, value, size, disabled, name, id, style, buttonStyle, block, prefixCls, className, options, children, ...props }: import("../../types/radio").RadioGroupProps) => import("react").JSX.Element;
28
+ Button: ({ prefixCls, className, checked, disabled, children, size, ...props }: import("../../types/radio").RadioButtonProps) => import("react").JSX.Element;
29
+ };
30
+ export default Radio;
@@ -0,0 +1 @@
1
+ export { default as Radio } from '../Radio/Radio';
@@ -0,0 +1,5 @@
1
+ import { FC } from 'react';
2
+ import { OptionProps } from '../../../types/select';
3
+ import './style.css';
4
+ declare const Option: FC<OptionProps>;
5
+ export default Option;
@@ -0,0 +1 @@
1
+ export { default as Option } from '../../Select/Option/Option';
@@ -0,0 +1,51 @@
1
+ import { ReactElement } from 'react';
2
+ import { OptionType } from '../../types/select';
3
+ import './style.css';
4
+ declare const Select: import("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?: import("react").ReactNode;
15
+ defaultActiveFirstOption?: boolean;
16
+ listHeight?: number;
17
+ menuItemSelectedIcon?: import("react").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
+ disabled?: boolean;
24
+ loading?: boolean;
25
+ placeholder?: string;
26
+ allowClear?: boolean;
27
+ filterable?: boolean;
28
+ defaultOpen?: boolean;
29
+ size?: "small" | "middle" | "large";
30
+ onClear?: () => void;
31
+ error?: boolean;
32
+ showSearch?: boolean;
33
+ tagRender?: ((props: import("../../types/select").CustomTagProps) => ReactElement) | undefined;
34
+ maxTagPlaceholder?: import("react").ReactNode | ((omittedValues: import("../../types/select").DisplayValueType[]) => import("react").ReactNode);
35
+ dropdownClassName?: string;
36
+ showArrow?: boolean;
37
+ onBlur?: import("react").FocusEventHandler<HTMLElement> | undefined;
38
+ onDropdownVisibleChange?: ((open: boolean) => void) | undefined;
39
+ showAction?: ("click" | "focus")[] | undefined;
40
+ suffixIcon?: import("react").ReactNode;
41
+ open?: boolean;
42
+ notFoundContent?: import("react").ReactNode;
43
+ getPopupContainer?: (triggerNode: HTMLElement) => HTMLElement;
44
+ dropdownRender?: (menu: import("react").ReactNode) => import("react").ReactNode;
45
+ feedbackIcons?: boolean;
46
+ placement?: "bottomLeft" | "bottomRight" | "topLeft" | "topRight";
47
+ removeIcon?: import("react").ReactNode;
48
+ } & import("react").RefAttributes<HTMLDivElement>> & {
49
+ Option: import("react").FC<import("../../types/select").OptionProps>;
50
+ };
51
+ export default Select;
@@ -0,0 +1,5 @@
1
+ import { FC } from 'react';
2
+ import { CustomTagProps } from '../../../types/select';
3
+ import './style.css';
4
+ declare const Tag: FC<CustomTagProps>;
5
+ export default Tag;
@@ -0,0 +1 @@
1
+ export { default as Tag } from '../../Select/Tag/Tag';
@@ -0,0 +1 @@
1
+ export { default as Select } from '../Select/Select';
@@ -0,0 +1,8 @@
1
+ import { FC } from 'react';
2
+ import { SkeletonAvatarProps } from '../../../types/skeleton';
3
+ import './style.css';
4
+ export declare const AVATAR_DEFAULT_SIZE = 32;
5
+ export declare const AVATAR_GLOBAL_SIZE = 40;
6
+ export declare const GET_AVATAR_SKELETON_PROPS: (avatar: SkeletonAvatarProps | boolean) => SkeletonAvatarProps;
7
+ declare const SkeletonAvatar: FC<SkeletonAvatarProps>;
8
+ export default SkeletonAvatar;
@@ -0,0 +1 @@
1
+ export { default as SkeletonAvatar } from './Avatar';
@@ -0,0 +1,5 @@
1
+ import { FC } from 'react';
2
+ import { SkeletonButtonProps } from '../../../types/skeleton';
3
+ import './style.css';
4
+ declare const SkeletonButton: FC<SkeletonButtonProps>;
5
+ export default SkeletonButton;
@@ -0,0 +1 @@
1
+ export { default as SkeletonButton } from './Button';
@@ -0,0 +1,5 @@
1
+ import { FC } from 'react';
2
+ import { SkeletonImageProps } from '../../../types/skeleton';
3
+ import './style.css';
4
+ declare const SkeletonImage: FC<SkeletonImageProps>;
5
+ export default SkeletonImage;
@@ -0,0 +1 @@
1
+ export { default as SkeletonImage } from './Image';
@@ -0,0 +1,5 @@
1
+ import { FC } from 'react';
2
+ import { SkeletonInputProps } from '../../../types/skeleton';
3
+ import './style.css';
4
+ declare const SkeletonInput: FC<SkeletonInputProps>;
5
+ export default SkeletonInput;
@@ -0,0 +1 @@
1
+ export { default as SkeletonInput } from './Input';
@@ -0,0 +1,11 @@
1
+ import { ReactElement } from 'react';
2
+ import { SkeletonProps } from '../../types/skeleton';
3
+ import './style.css';
4
+ declare const Skeleton: {
5
+ ({ prefixCls, active, className, style, avatar, paragraph, round, title, teamLogo }: SkeletonProps): ReactElement;
6
+ Image: import("react").FC<import("../../types/skeleton").SkeletonImageProps>;
7
+ Input: import("react").FC<import("../../types/skeleton").SkeletonInputProps>;
8
+ Avatar: import("react").FC<import("../../types/skeleton").SkeletonAvatarProps>;
9
+ Button: import("react").FC<import("../../types/skeleton").SkeletonButtonProps>;
10
+ };
11
+ export default Skeleton;
@@ -0,0 +1 @@
1
+ export { default as Skeleton } from './Skeleton';
@@ -0,0 +1,4 @@
1
+ import { UploadProps } from '../../types/upload';
2
+ import './style.css';
3
+ declare const Upload: ({ prefixCls, multiple, style, className, onChange, action, name, method, headers, directory, beforeUpload, rootClassName, onRemove, disabled, withCredentials, openFileDialogOnClick, maxCount, fileList: controlledFileList, customRequest, accept, listType, showUploadList, children, noStyle, defaultFileList }: UploadProps) => import("react").JSX.Element;
4
+ export default Upload;
@@ -0,0 +1 @@
1
+ export { default as Upload } from '../Upload/Upload';
@@ -0,0 +1,4 @@
1
+ import { RuleTypes } from '../types';
2
+ import type { FieldData, FormInstance } from '../types/form';
3
+ declare const useForm: (initialValues?: Record<string, RuleTypes>, onFieldsChange?: (changedFields: FieldData[]) => void, onValuesChange?: (changedValues: Record<string, RuleTypes>, allValues: Record<string, RuleTypes>) => void) => FormInstance;
4
+ export { useForm };
@@ -0,0 +1,9 @@
1
+ import { RuleType } from '../types';
2
+ import { FormInstance } from '../types/form';
3
+ type UseWatchProps = {
4
+ name?: string;
5
+ defaultValue?: RuleType;
6
+ form?: FormInstance;
7
+ };
8
+ export declare const useWatch: ({ name, defaultValue, form }: UseWatchProps) => any;
9
+ export {};
@@ -1,4 +1,5 @@
1
1
  import './styles/global.css';
2
+ declare const Button: import("react").ComponentType<import("./types/button").ButtonProps>;
2
3
  declare const Checkbox: import("react").ComponentType<import("./types").DefaultProps & {
3
4
  disabled?: boolean;
4
5
  onChange?: (e: import("react").MouseEvent<HTMLInputElement> & import("./types").TargetProps) => void;
@@ -19,4 +20,138 @@ declare const Checkbox: import("react").ComponentType<import("./types").DefaultP
19
20
  defaultChecked?: boolean;
20
21
  checked?: boolean;
21
22
  } & import("react").RefAttributes<HTMLDivElement>>;
22
- export { Checkbox };
23
+ declare const Empty: import("react").ComponentType<import("./types/empty").EmptyContentProps>;
24
+ declare const Upload: import("react").ComponentType<import("./types/upload").UploadProps>;
25
+ declare const DatePicker: import("react").ComponentType<import("./types/datepicker").TDatePickerProps>;
26
+ declare const RangePicker: import("react").ComponentType<import("./types/datepicker").TRangePickerProps>;
27
+ declare const TimePicker: import("react").ComponentType<import("./types/datepicker").TimePickerProps>;
28
+ declare const Form: import("react").ComponentType<import("./types/form").FormProps>;
29
+ declare const FormItem: import("react").ComponentType<import("./types/form").FormItemProps>;
30
+ declare const Input: import("react").ComponentType<Omit<import("react").InputHTMLAttributes<HTMLInputElement>, "size" | "prefix"> & import("./types").DefaultProps & {
31
+ addonBefore?: import("react").ReactNode;
32
+ addonAfter?: import("react").ReactNode;
33
+ size?: import("./types").SizeType;
34
+ prefix?: import("react").ReactNode;
35
+ suffix?: import("react").ReactNode;
36
+ disabled?: boolean;
37
+ allowClear?: boolean;
38
+ error?: boolean;
39
+ bordered?: boolean;
40
+ iconRender?: (visible: boolean) => import("react").ReactElement;
41
+ onChange?: (event: import("./types").SyntheticBaseEvent) => void;
42
+ onClick?: import("react").MouseEventHandler<HTMLElement>;
43
+ onMouseEnter?: import("react").MouseEventHandler<HTMLElement>;
44
+ onMouseLeave?: import("react").MouseEventHandler<HTMLElement>;
45
+ onKeyPress?: import("react").KeyboardEventHandler<HTMLElement>;
46
+ onKeyDown?: import("react").KeyboardEventHandler<HTMLElement>;
47
+ onPressEnter?: (event: import("react").KeyboardEvent<HTMLInputElement>) => void;
48
+ feedbackIcons?: boolean;
49
+ } & import("react").RefAttributes<HTMLInputElement>>;
50
+ declare const Textarea: import("react").ComponentType<Omit<import("react").TextareaHTMLAttributes<HTMLTextAreaElement>, "onResize"> & import("./types").DefaultProps & {
51
+ value?: string;
52
+ className?: string;
53
+ style?: import("react").CSSProperties;
54
+ autoSize?: boolean | {
55
+ minRows?: number;
56
+ maxRows?: number;
57
+ };
58
+ onPressEnter?: import("react").KeyboardEventHandler<HTMLTextAreaElement>;
59
+ onResize?: (size: {
60
+ width: number;
61
+ height: number;
62
+ }) => void;
63
+ styles?: {
64
+ textarea?: import("react").CSSProperties;
65
+ count?: import("react").CSSProperties;
66
+ };
67
+ bordered?: boolean;
68
+ size?: import("./types").SizeType;
69
+ status?: "success" | "error";
70
+ rootClassName?: string;
71
+ variant?: "outlined" | "borderless" | "filled" | "underlined";
72
+ error?: boolean;
73
+ allowClear?: boolean;
74
+ } & import("react").RefAttributes<HTMLTextAreaElement>>;
75
+ declare const Radio: import("react").ComponentType<import("./types").DefaultProps & {
76
+ defaultChecked?: boolean;
77
+ checked?: boolean;
78
+ disabled?: boolean;
79
+ title?: string;
80
+ onChange?: (e: import("./types").SyntheticBaseEvent) => void;
81
+ onClick?: import("react").MouseEventHandler<HTMLElement>;
82
+ onMouseEnter?: import("react").MouseEventHandler<HTMLElement>;
83
+ onMouseLeave?: import("react").MouseEventHandler<HTMLElement>;
84
+ onKeyPress?: import("react").KeyboardEventHandler<HTMLElement>;
85
+ onKeyDown?: import("react").KeyboardEventHandler<HTMLElement>;
86
+ onFocus?: import("react").FocusEventHandler<HTMLInputElement>;
87
+ onBlur?: import("react").FocusEventHandler<HTMLInputElement>;
88
+ value?: import("./types").RuleType;
89
+ tabIndex?: number;
90
+ name?: string;
91
+ children?: import("react").ReactNode;
92
+ id?: string;
93
+ autoFocus?: boolean;
94
+ type?: string;
95
+ skipGroup?: boolean;
96
+ required?: boolean;
97
+ button?: boolean;
98
+ error?: boolean;
99
+ } & import("react").RefAttributes<HTMLLabelElement>>;
100
+ declare const RadioButton: import("react").ComponentType<import("./types/radio").RadioButtonProps>;
101
+ declare const RadioGroup: import("react").ComponentType<import("./types/radio").RadioGroupProps>;
102
+ declare const Select: import("react").ComponentType<import("./types").DefaultProps & {
103
+ id?: string;
104
+ searchValue?: string;
105
+ onSearch?: (value: string) => void;
106
+ autoClearSearchValue?: boolean;
107
+ onSelect?: (value: import("./types").RuleTypes, option?: import("./types/select").OptionType) => void;
108
+ onDeselect?: (value: string, option?: import("./types/select").OptionType) => void;
109
+ filterOption?: boolean | ((input: string, option: import("./types/select").OptionType) => boolean);
110
+ optionFilterProp?: string;
111
+ options?: import("./types/select").OptionType[];
112
+ children?: import("react").ReactNode;
113
+ defaultActiveFirstOption?: boolean;
114
+ listHeight?: number;
115
+ menuItemSelectedIcon?: import("react").ReactNode;
116
+ mode?: "default" | "multiple" | "tags";
117
+ value?: import("./types").RuleTypes;
118
+ defaultValue?: import("./types").RuleTypes;
119
+ maxCount?: number;
120
+ onChange?: (e: import("./types").RuleTypes, option?: import("./types/select").OptionType) => void;
121
+ disabled?: boolean;
122
+ loading?: boolean;
123
+ placeholder?: string;
124
+ allowClear?: boolean;
125
+ filterable?: boolean;
126
+ defaultOpen?: boolean;
127
+ size?: "small" | "middle" | "large";
128
+ onClear?: () => void;
129
+ error?: boolean;
130
+ showSearch?: boolean;
131
+ tagRender?: ((props: import("./types/select").CustomTagProps) => import("react").ReactElement) | undefined;
132
+ maxTagPlaceholder?: import("react").ReactNode | ((omittedValues: import("./types/select").DisplayValueType[]) => import("react").ReactNode);
133
+ dropdownClassName?: string;
134
+ showArrow?: boolean;
135
+ onBlur?: import("react").FocusEventHandler<HTMLElement> | undefined;
136
+ onDropdownVisibleChange?: ((open: boolean) => void) | undefined;
137
+ showAction?: ("click" | "focus")[] | undefined;
138
+ suffixIcon?: import("react").ReactNode;
139
+ open?: boolean;
140
+ notFoundContent?: import("react").ReactNode;
141
+ getPopupContainer?: (triggerNode: HTMLElement) => HTMLElement;
142
+ dropdownRender?: (menu: import("react").ReactNode) => import("react").ReactNode;
143
+ feedbackIcons?: boolean;
144
+ placement?: "bottomLeft" | "bottomRight" | "topLeft" | "topRight";
145
+ removeIcon?: import("react").ReactNode;
146
+ } & import("react").RefAttributes<HTMLDivElement>>;
147
+ declare const Option: import("react").ComponentType<import("./types/select").OptionProps>;
148
+ declare const Tag: import("react").ComponentType<import("./types/select").CustomTagProps>;
149
+ declare const Skeleton: import("react").ComponentType<import("./types/skeleton").SkeletonProps>;
150
+ declare const SkeletonAvatar: import("react").ComponentType<import("./types/skeleton").SkeletonAvatarProps>;
151
+ declare const SkeletonButton: import("react").ComponentType<import("./types/skeleton").SkeletonButtonProps>;
152
+ declare const SkeletonImage: import("react").ComponentType<import("./types/skeleton").SkeletonImageProps>;
153
+ declare const SkeletonInput: import("react").ComponentType<import("./types/skeleton").SkeletonInputProps>;
154
+ export { Button, Checkbox, Empty, DatePicker, RangePicker, TimePicker, Form, FormItem, Input, Textarea, Radio, RadioButton, RadioGroup, Select, Option, Tag, Skeleton, SkeletonAvatar, SkeletonButton, SkeletonImage, SkeletonInput, Upload };
155
+ export { ClearIcon, ArrowIcon, LoadingIcon, CheckIcon, SearchIcon, CalendarIcon, SuccessIcon, ErrorIcon, DateDistanceIcon, TimeIcon, StampleIcon, TrashIcon, SpinerIcon } from '@/components/Icons';
156
+ export { useForm } from '@/hooks/useForm';
157
+ export { useWatch } from '@/hooks/useWatch';