x-ui-design 0.2.2 → 0.2.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/esm/types/index.d.ts +0 -25
- package/dist/index.d.ts +2 -655
- package/dist/index.esm.js +9 -2962
- package/dist/index.esm.js.map +1 -1
- package/dist/index.js +5 -2994
- package/dist/index.js.map +1 -1
- package/lib/index.ts +0 -52
- package/package.json +1 -1
- package/{lib → src}/components/Checkbox/Checkbox.tsx +2 -2
- package/{lib → src}/components/Form/Form.tsx +1 -1
- package/{lib → src}/components/Form/Item/Item.tsx +2 -2
- package/{lib → src}/components/Input/Input.tsx +2 -2
- package/{lib → src}/components/Input/Textarea/Textarea.tsx +2 -2
- package/{lib → src}/components/Select/Option/Option.tsx +2 -2
- package/{lib → src}/components/Select/Select.tsx +2 -2
- package/{lib → src}/components/Select/Tag/Tag.tsx +1 -1
- package/{lib → src}/components/Skeleton/Avatar/Avatar.tsx +2 -2
- package/{lib → src}/components/Skeleton/Button/Button.tsx +2 -2
- package/{lib → src}/components/Skeleton/Image/Image.tsx +1 -1
- package/{lib → src}/components/Skeleton/Input/Input.tsx +2 -2
- package/{lib → src}/components/Skeleton/Skeleton.tsx +2 -2
- package/{lib → src}/hooks/useForm.ts +2 -2
- package/{lib → src}/hooks/useWatch.ts +2 -2
- package/{lib → src}/types/checkbox.ts +1 -1
- package/src/types/index.ts +27 -0
- package/dist/esm/types/components/Checkbox/Checkbox.d.ts +0 -23
- package/dist/esm/types/components/Checkbox/index.d.ts +0 -1
- package/dist/esm/types/components/DatePicker/DatePicker.d.ts +0 -9
- package/dist/esm/types/components/DatePicker/RangePicker/RangePicker.d.ts +0 -4
- package/dist/esm/types/components/DatePicker/RangePicker/index.d.ts +0 -1
- package/dist/esm/types/components/DatePicker/TimePicker/TimePicker.d.ts +0 -5
- package/dist/esm/types/components/DatePicker/TimePicker/index.d.ts +0 -1
- package/dist/esm/types/components/DatePicker/index.d.ts +0 -1
- package/dist/esm/types/components/Empty/Empty.d.ts +0 -4
- package/dist/esm/types/components/Empty/index.d.ts +0 -1
- package/dist/esm/types/components/Form/Form.d.ts +0 -7
- package/dist/esm/types/components/Form/Item/Item.d.ts +0 -7
- package/dist/esm/types/components/Form/Item/index.d.ts +0 -1
- package/dist/esm/types/components/Form/index.d.ts +0 -1
- package/dist/esm/types/components/Icons/Icons.d.ts +0 -16
- package/dist/esm/types/components/Icons/index.d.ts +0 -1
- package/dist/esm/types/components/Input/Input.d.ts +0 -28
- package/dist/esm/types/components/Input/Textarea/Textarea.d.ts +0 -27
- package/dist/esm/types/components/Input/Textarea/index.d.ts +0 -1
- package/dist/esm/types/components/Input/index.d.ts +0 -1
- package/dist/esm/types/components/Radio/Button/Button.d.ts +0 -4
- package/dist/esm/types/components/Radio/Button/index.d.ts +0 -1
- package/dist/esm/types/components/Radio/Group/Group.d.ts +0 -4
- package/dist/esm/types/components/Radio/Group/index.d.ts +0 -1
- package/dist/esm/types/components/Radio/Radio.d.ts +0 -30
- package/dist/esm/types/components/Radio/index.d.ts +0 -1
- package/dist/esm/types/components/Select/Option/Option.d.ts +0 -5
- package/dist/esm/types/components/Select/Option/index.d.ts +0 -1
- package/dist/esm/types/components/Select/Select.d.ts +0 -51
- package/dist/esm/types/components/Select/Tag/Tag.d.ts +0 -5
- package/dist/esm/types/components/Select/Tag/index.d.ts +0 -1
- package/dist/esm/types/components/Select/index.d.ts +0 -1
- package/dist/esm/types/components/Skeleton/Avatar/Avatar.d.ts +0 -8
- package/dist/esm/types/components/Skeleton/Avatar/index.d.ts +0 -1
- package/dist/esm/types/components/Skeleton/Button/Button.d.ts +0 -5
- package/dist/esm/types/components/Skeleton/Button/index.d.ts +0 -1
- package/dist/esm/types/components/Skeleton/Image/Image.d.ts +0 -5
- package/dist/esm/types/components/Skeleton/Image/index.d.ts +0 -1
- package/dist/esm/types/components/Skeleton/Input/Input.d.ts +0 -5
- package/dist/esm/types/components/Skeleton/Input/index.d.ts +0 -1
- package/dist/esm/types/components/Skeleton/Skeleton.d.ts +0 -11
- package/dist/esm/types/components/Skeleton/index.d.ts +0 -1
- package/dist/esm/types/components/Upload/Upload.d.ts +0 -4
- package/dist/esm/types/components/Upload/index.d.ts +0 -1
- package/dist/esm/types/hooks/useForm.d.ts +0 -4
- package/dist/esm/types/hooks/useWatch.d.ts +0 -9
- package/dist/esm/types/types/checkbox.d.ts +0 -22
- package/dist/esm/types/types/datepicker.d.ts +0 -119
- package/dist/esm/types/types/empty.d.ts +0 -7
- package/dist/esm/types/types/form.d.ts +0 -107
- package/dist/esm/types/types/input.d.ts +0 -47
- package/dist/esm/types/types/radio.d.ts +0 -57
- package/dist/esm/types/types/select.d.ts +0 -97
- package/dist/esm/types/types/skeleton.d.ts +0 -50
- package/dist/esm/types/types/upload.d.ts +0 -54
- /package/{lib → src}/components/Checkbox/index.ts +0 -0
- /package/{lib → src}/components/Checkbox/style.css +0 -0
- /package/{lib → src}/components/DatePicker/DatePicker.tsx +0 -0
- /package/{lib → src}/components/DatePicker/RangePicker/RangePicker.tsx +0 -0
- /package/{lib → src}/components/DatePicker/RangePicker/index.ts +0 -0
- /package/{lib → src}/components/DatePicker/RangePicker/style.css +0 -0
- /package/{lib → src}/components/DatePicker/TimePicker/TimePicker.tsx +0 -0
- /package/{lib → src}/components/DatePicker/TimePicker/index.ts +0 -0
- /package/{lib → src}/components/DatePicker/TimePicker/style.css +0 -0
- /package/{lib → src}/components/DatePicker/index.ts +0 -0
- /package/{lib → src}/components/DatePicker/style.css +0 -0
- /package/{lib → src}/components/Empty/Empty.tsx +0 -0
- /package/{lib → src}/components/Empty/index.ts +0 -0
- /package/{lib → src}/components/Empty/style.css +0 -0
- /package/{lib → src}/components/Form/Item/index.ts +0 -0
- /package/{lib → src}/components/Form/Item/style.css +0 -0
- /package/{lib → src}/components/Form/index.ts +0 -0
- /package/{lib → src}/components/Icons/Icons.tsx +0 -0
- /package/{lib → src}/components/Icons/index.ts +0 -0
- /package/{lib → src}/components/Input/Textarea/index.ts +0 -0
- /package/{lib → src}/components/Input/Textarea/style.css +0 -0
- /package/{lib → src}/components/Input/index.ts +0 -0
- /package/{lib → src}/components/Input/style.css +0 -0
- /package/{lib → src}/components/Radio/Button/Button.tsx +0 -0
- /package/{lib → src}/components/Radio/Button/index.ts +0 -0
- /package/{lib → src}/components/Radio/Button/style.css +0 -0
- /package/{lib → src}/components/Radio/Group/Group.tsx +0 -0
- /package/{lib → src}/components/Radio/Group/index.ts +0 -0
- /package/{lib → src}/components/Radio/Group/style.css +0 -0
- /package/{lib → src}/components/Radio/Radio.tsx +0 -0
- /package/{lib → src}/components/Radio/index.ts +0 -0
- /package/{lib → src}/components/Radio/style.css +0 -0
- /package/{lib → src}/components/Select/Option/index.ts +0 -0
- /package/{lib → src}/components/Select/Option/style.css +0 -0
- /package/{lib → src}/components/Select/Tag/index.ts +0 -0
- /package/{lib → src}/components/Select/Tag/style.css +0 -0
- /package/{lib → src}/components/Select/index.ts +0 -0
- /package/{lib → src}/components/Select/style.css +0 -0
- /package/{lib → src}/components/Skeleton/Avatar/index.ts +0 -0
- /package/{lib → src}/components/Skeleton/Avatar/style.css +0 -0
- /package/{lib → src}/components/Skeleton/Button/index.ts +0 -0
- /package/{lib → src}/components/Skeleton/Button/style.css +0 -0
- /package/{lib → src}/components/Skeleton/Image/index.ts +0 -0
- /package/{lib → src}/components/Skeleton/Image/style.css +0 -0
- /package/{lib → src}/components/Skeleton/Input/index.ts +0 -0
- /package/{lib → src}/components/Skeleton/Input/style.css +0 -0
- /package/{lib → src}/components/Skeleton/index.ts +0 -0
- /package/{lib → src}/components/Skeleton/style.css +0 -0
- /package/{lib → src}/components/Upload/Upload.tsx +0 -0
- /package/{lib → src}/components/Upload/index.ts +0 -0
- /package/{lib → src}/components/Upload/style.css +0 -0
- /package/{lib → src}/types/datepicker.ts +0 -0
- /package/{lib → src}/types/empty.ts +0 -0
- /package/{lib → src}/types/form.ts +0 -0
- /package/{lib → src}/types/input.ts +0 -0
- /package/{lib → src}/types/radio.ts +0 -0
- /package/{lib → src}/types/select.ts +0 -0
- /package/{lib → src}/types/skeleton.ts +0 -0
- /package/{lib → src}/types/upload.ts +0 -0
package/lib/index.ts
CHANGED
|
@@ -2,56 +2,4 @@
|
|
|
2
2
|
import './styles/global.css';
|
|
3
3
|
|
|
4
4
|
// Components
|
|
5
|
-
export { default as Form } from "./components/Form/Form";
|
|
6
|
-
export { default as FormItem } from "./components/Form/Item/Item";
|
|
7
|
-
|
|
8
|
-
export { default as DatePicker } from "./components/DatePicker/DatePicker";
|
|
9
|
-
export { default as TimePicker } from "./components/DatePicker/TimePicker/TimePicker";
|
|
10
|
-
export { default as RangePicker } from "./components/DatePicker/RangePicker/RangePicker";
|
|
11
|
-
|
|
12
|
-
export { default as Input } from "./components/Input/Input";
|
|
13
|
-
export { default as Textarea } from "./components/Input/Textarea/Textarea";
|
|
14
|
-
|
|
15
|
-
export { default as Radio } from "./components/Radio/Radio";
|
|
16
|
-
export { default as RadioGroup } from "./components/Radio/Group/Group";
|
|
17
|
-
export { default as RadioButton } from "./components/Radio/Button/Button";
|
|
18
|
-
|
|
19
|
-
export { default as Select } from "./components/Select/Select";
|
|
20
|
-
export { default as Tag } from "./components/Select/Tag/Tag";
|
|
21
|
-
export { default as Option } from "./components/Select/Option/Option";
|
|
22
|
-
|
|
23
|
-
export { default as Skeleton } from "./components/Skeleton/Skeleton";
|
|
24
|
-
export { default as SkeletonImage } from "./components/Skeleton/Image/Image";
|
|
25
|
-
export { default as SkeletonInput } from "./components/Skeleton/Input/Input";
|
|
26
|
-
export { default as SkeletonAvatar } from "./components/Skeleton/Avatar/Avatar";
|
|
27
|
-
export { default as SkeletonButton } from "./components/Skeleton/Button/Button";
|
|
28
|
-
|
|
29
|
-
export { default as Empty } from "./components/Empty/Empty";
|
|
30
5
|
export { default as Button } from "./components/Button/Button.client";
|
|
31
|
-
export { default as Upload } from "./components/Upload/Upload";
|
|
32
|
-
export { default as Checkbox } from "./components/Checkbox/Checkbox";
|
|
33
|
-
|
|
34
|
-
export {
|
|
35
|
-
ClearIcon,
|
|
36
|
-
ArrowIcon,
|
|
37
|
-
LoadingIcon,
|
|
38
|
-
CheckIcon,
|
|
39
|
-
SearchIcon,
|
|
40
|
-
CalendarIcon,
|
|
41
|
-
SuccessIcon,
|
|
42
|
-
ErrorIcon,
|
|
43
|
-
DateDistanceIcon,
|
|
44
|
-
TimeIcon,
|
|
45
|
-
StampleIcon,
|
|
46
|
-
TrashIcon,
|
|
47
|
-
SpinerIcon
|
|
48
|
-
} from './components/Icons/Icons'
|
|
49
|
-
|
|
50
|
-
// Hooks
|
|
51
|
-
import { useForm } from './hooks/useForm';
|
|
52
|
-
import { useWatch } from './hooks/useWatch';
|
|
53
|
-
|
|
54
|
-
export {
|
|
55
|
-
useForm,
|
|
56
|
-
useWatch
|
|
57
|
-
}
|
package/package.json
CHANGED
|
@@ -8,10 +8,10 @@ import {
|
|
|
8
8
|
useEffect,
|
|
9
9
|
useState
|
|
10
10
|
} from 'react';
|
|
11
|
-
import { clsx } from '
|
|
11
|
+
import { clsx } from '../../../lib/helpers';
|
|
12
12
|
import { SyntheticBaseEvent } from '../../types';
|
|
13
13
|
import { CheckboxProps } from '../../types/checkbox';
|
|
14
|
-
import { prefixClsCheckbox } from '
|
|
14
|
+
import { prefixClsCheckbox } from '../../../lib/utils';
|
|
15
15
|
import './style.css';
|
|
16
16
|
|
|
17
17
|
const Checkbox = forwardRef<HTMLDivElement, CheckboxProps>(
|
|
@@ -13,7 +13,7 @@ import {
|
|
|
13
13
|
} from 'react';
|
|
14
14
|
import { useForm } from '@/hooks/useForm';
|
|
15
15
|
import { FormInstance, FormItemProps, FormProps } from '../../types/form';
|
|
16
|
-
import { prefixClsForm } from '
|
|
16
|
+
import { prefixClsForm } from '../../../lib/utils';
|
|
17
17
|
import FormItem from './Item/Item';
|
|
18
18
|
|
|
19
19
|
export const FormContext = createContext<FormInstance | null>(null);
|
|
@@ -10,14 +10,14 @@ import {
|
|
|
10
10
|
useRef,
|
|
11
11
|
useState
|
|
12
12
|
} from 'react';
|
|
13
|
-
import { clsx } from '
|
|
13
|
+
import { clsx } from '../../../../lib/helpers';
|
|
14
14
|
import { RuleType, SyntheticBaseEvent } from '../../../types';
|
|
15
15
|
import {
|
|
16
16
|
FormItemChildComponentProps,
|
|
17
17
|
FormItemProps
|
|
18
18
|
} from '../../../types/form';
|
|
19
19
|
import { OptionProps } from '../../../types/select';
|
|
20
|
-
import { prefixClsFormItem } from '
|
|
20
|
+
import { prefixClsFormItem } from '../../../../lib/utils';
|
|
21
21
|
import './style.css';
|
|
22
22
|
import { FormContext } from '../Form';
|
|
23
23
|
|
|
@@ -9,10 +9,10 @@ import {
|
|
|
9
9
|
useRef,
|
|
10
10
|
useState
|
|
11
11
|
} from 'react';
|
|
12
|
-
import { clsx } from '
|
|
12
|
+
import { clsx } from '../../../lib/helpers';
|
|
13
13
|
import { SyntheticBaseEvent, TargetProps } from '../../types';
|
|
14
14
|
import { InputProps } from '../../types/input';
|
|
15
|
-
import { prefixClsInput } from '
|
|
15
|
+
import { prefixClsInput } from '../../../lib/utils';
|
|
16
16
|
import './style.css';
|
|
17
17
|
import Textarea from './Textarea/Textarea';
|
|
18
18
|
import { ErrorIcon } from '../Icons/Icons';
|
|
@@ -10,9 +10,9 @@ import {
|
|
|
10
10
|
useRef,
|
|
11
11
|
useState
|
|
12
12
|
} from 'react';
|
|
13
|
-
import { clsx } from '
|
|
13
|
+
import { clsx } from '../../../../lib/helpers';
|
|
14
14
|
import { TextareaProps } from '../../../types/input';
|
|
15
|
-
import { prefixClsTextArea } from '
|
|
15
|
+
import { prefixClsTextArea } from '../../../../lib/utils';
|
|
16
16
|
import './style.css';
|
|
17
17
|
|
|
18
18
|
const Textarea = forwardRef<HTMLTextAreaElement, TextareaProps>(
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { FC, MouseEventHandler } from 'react';
|
|
2
|
-
import { clsx } from '
|
|
2
|
+
import { clsx } from '../../../../lib/helpers';
|
|
3
3
|
import { OptionProps } from '../../../types/select';
|
|
4
|
-
import { prefixClsSelect } from '
|
|
4
|
+
import { prefixClsSelect } from '../../../../lib/utils';
|
|
5
5
|
import './style.css';
|
|
6
6
|
|
|
7
7
|
const Option: FC<OptionProps> = ({
|
|
@@ -22,10 +22,10 @@ import {
|
|
|
22
22
|
LoadingIcon,
|
|
23
23
|
SearchIcon
|
|
24
24
|
} from '@/components/Icons/Icons';
|
|
25
|
-
import { clsx } from '
|
|
25
|
+
import { clsx } from '../../../lib/helpers';
|
|
26
26
|
import { MouseEventHandlerSelect, SyntheticBaseEvent } from '../../types';
|
|
27
27
|
import { OptionType, SelectProps } from '../../types/select';
|
|
28
|
-
import { prefixClsSelect } from '
|
|
28
|
+
import { prefixClsSelect } from '../../../lib/utils';
|
|
29
29
|
import Option from './Option/Option';
|
|
30
30
|
import Tag from './Tag/Tag';
|
|
31
31
|
import { Empty } from '../Empty';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { FC, MouseEvent } from 'react';
|
|
2
2
|
import { TargetProps } from '../../../types';
|
|
3
3
|
import { CustomTagProps } from '../../../types/select';
|
|
4
|
-
import { prefixClsSelect } from '
|
|
4
|
+
import { prefixClsSelect } from '../../../../lib/utils';
|
|
5
5
|
import './style.css';
|
|
6
6
|
|
|
7
7
|
const Tag: FC<CustomTagProps> = ({
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { FC, ReactElement } from 'react';
|
|
2
|
-
import { clsx } from '
|
|
2
|
+
import { clsx } from '../../../../lib/helpers';
|
|
3
3
|
import { SkeletonAvatarProps } from '../../../types/skeleton';
|
|
4
|
-
import { prefixClsSkeleton } from '
|
|
4
|
+
import { prefixClsSkeleton } from '../../../../lib/utils';
|
|
5
5
|
import './style.css';
|
|
6
6
|
|
|
7
7
|
export const AVATAR_DEFAULT_SIZE = 32;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { FC, ReactElement } from 'react';
|
|
2
|
-
import { clsx } from '
|
|
2
|
+
import { clsx } from '../../../../lib/helpers';
|
|
3
3
|
import { SkeletonButtonProps } from '../../../types/skeleton';
|
|
4
|
-
import { prefixClsSkeleton } from '
|
|
4
|
+
import { prefixClsSkeleton } from '../../../../lib/utils';
|
|
5
5
|
import './style.css';
|
|
6
6
|
|
|
7
7
|
const BUTTON_SKELETON_SIZE = {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { FC, ReactElement } from 'react';
|
|
2
2
|
import { SkeletonImageProps } from '../../../types/skeleton';
|
|
3
|
-
import { prefixClsSkeleton } from '
|
|
3
|
+
import { prefixClsSkeleton } from '../../../../lib/utils';
|
|
4
4
|
import './style.css';
|
|
5
5
|
|
|
6
6
|
const CUSTOm_ICON_SIZE = 48;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { FC, ReactElement } from 'react';
|
|
2
|
-
import { clsx } from '
|
|
2
|
+
import { clsx } from '../../../../lib/helpers';
|
|
3
3
|
import { SkeletonInputProps } from '../../../types/skeleton';
|
|
4
|
-
import { prefixClsSkeleton } from '
|
|
4
|
+
import { prefixClsSkeleton } from '../../../../lib/utils';
|
|
5
5
|
import './style.css';
|
|
6
6
|
|
|
7
7
|
const INPUT_SKELETON_SIZE = {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { ReactElement } from 'react';
|
|
2
|
-
import { clsx, createArray } from '
|
|
2
|
+
import { clsx, createArray } from '../../../lib/helpers';
|
|
3
3
|
import { SkeletonProps } from '../../types/skeleton';
|
|
4
|
-
import { prefixClsSkeleton } from '
|
|
4
|
+
import { prefixClsSkeleton } from '../../../lib/utils';
|
|
5
5
|
import { SkeletonButton } from './Button';
|
|
6
6
|
import { SkeletonAvatar } from './Avatar';
|
|
7
7
|
import { GET_AVATAR_SKELETON_PROPS } from './Avatar/Avatar';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
'use client';
|
|
2
2
|
|
|
3
3
|
import { useRef, useState } from 'react';
|
|
4
|
-
import { RuleTypes } from '
|
|
4
|
+
import { RuleTypes } from '../../src/types';
|
|
5
5
|
import type {
|
|
6
6
|
FieldData,
|
|
7
7
|
FieldError,
|
|
@@ -9,7 +9,7 @@ import type {
|
|
|
9
9
|
FormInstance,
|
|
10
10
|
RuleObject,
|
|
11
11
|
RuleRender
|
|
12
|
-
} from '
|
|
12
|
+
} from '../../src/types/form';
|
|
13
13
|
|
|
14
14
|
const useForm = (
|
|
15
15
|
initialValues: Record<string, RuleTypes> = {},
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { useContext, useEffect, useState } from 'react';
|
|
2
2
|
import { FormContext } from '@/components/Form/Form';
|
|
3
|
-
import { RuleType } from '
|
|
4
|
-
import { FormInstance } from '
|
|
3
|
+
import { RuleType } from '../../src/types';
|
|
4
|
+
import { FormInstance } from '../../src/types/form';
|
|
5
5
|
|
|
6
6
|
type UseWatchProps = {
|
|
7
7
|
name?: string;
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { CSSProperties, MouseEvent } from 'react';
|
|
2
|
+
|
|
3
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
4
|
+
export type RuleType = any;
|
|
5
|
+
export type RuleTypes = RuleType | RuleType[];
|
|
6
|
+
export type SizeType = 'small' | 'middle' | 'large';
|
|
7
|
+
export type MouseEventHandlerSelect = MouseEvent<HTMLDivElement> & TargetProps;
|
|
8
|
+
export interface DefaultProps {
|
|
9
|
+
prefixCls?: string;
|
|
10
|
+
className?: string;
|
|
11
|
+
style?: CSSProperties;
|
|
12
|
+
noStyle?: boolean;
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
export type TargetProps = {
|
|
16
|
+
target: {
|
|
17
|
+
value: RuleType;
|
|
18
|
+
};
|
|
19
|
+
};
|
|
20
|
+
|
|
21
|
+
export type SyntheticBaseEvent = {
|
|
22
|
+
target: EventTarget & {
|
|
23
|
+
value: RuleType;
|
|
24
|
+
};
|
|
25
|
+
nativeEvent?: Event & { data?: string | null };
|
|
26
|
+
currentTarget: EventTarget;
|
|
27
|
+
};
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
import { MouseEvent } from 'react';
|
|
2
|
-
import './style.css';
|
|
3
|
-
declare const Checkbox: import("react").ForwardRefExoticComponent<import("../../types").DefaultProps & {
|
|
4
|
-
disabled?: boolean;
|
|
5
|
-
onChange?: (e: 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>>;
|
|
23
|
-
export default Checkbox;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { default as Checkbox } from '@/components/Checkbox/Checkbox';
|
|
@@ -1,9 +0,0 @@
|
|
|
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-runtime").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-runtime").JSX.Element;
|
|
8
|
-
};
|
|
9
|
-
export default DatePicker;
|
|
@@ -1,4 +0,0 @@
|
|
|
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-runtime").JSX.Element;
|
|
4
|
-
export default RangePicker;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { default as RangePicker } from '@/components/DatePicker/RangePicker/RangePicker';
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { default as TimePicker } from '@/components/DatePicker/TimePicker/TimePicker';
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { default as DatePicker } from '@/components/DatePicker/DatePicker';
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { default as Empty } from '@/components/Empty/Empty';
|
|
@@ -1,7 +0,0 @@
|
|
|
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;
|
|
@@ -1,7 +0,0 @@
|
|
|
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-runtime").JSX.Element;
|
|
5
|
-
displayName: string;
|
|
6
|
-
};
|
|
7
|
-
export default FormItem;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { default as Item } from './Item';
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { default as Form } from './Form';
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
declare const ClearIcon: () => import("react/jsx-runtime").JSX.Element;
|
|
2
|
-
declare const ArrowIcon: ({ isOpen }: {
|
|
3
|
-
isOpen: boolean;
|
|
4
|
-
}) => import("react/jsx-runtime").JSX.Element;
|
|
5
|
-
declare const LoadingIcon: () => import("react/jsx-runtime").JSX.Element;
|
|
6
|
-
declare const CheckIcon: () => import("react/jsx-runtime").JSX.Element;
|
|
7
|
-
declare const SearchIcon: () => import("react/jsx-runtime").JSX.Element;
|
|
8
|
-
declare const CalendarIcon: () => import("react/jsx-runtime").JSX.Element;
|
|
9
|
-
declare const SuccessIcon: () => import("react/jsx-runtime").JSX.Element;
|
|
10
|
-
declare const ErrorIcon: () => import("react/jsx-runtime").JSX.Element;
|
|
11
|
-
declare const DateDistanceIcon: () => import("react/jsx-runtime").JSX.Element;
|
|
12
|
-
declare const TimeIcon: () => import("react/jsx-runtime").JSX.Element;
|
|
13
|
-
declare const StampleIcon: () => import("react/jsx-runtime").JSX.Element;
|
|
14
|
-
declare const TrashIcon: () => import("react/jsx-runtime").JSX.Element;
|
|
15
|
-
declare const SpinerIcon: () => import("react/jsx-runtime").JSX.Element;
|
|
16
|
-
export { ClearIcon, ArrowIcon, LoadingIcon, CheckIcon, SearchIcon, CalendarIcon, SuccessIcon, ErrorIcon, DateDistanceIcon, TimeIcon, StampleIcon, TrashIcon, SpinerIcon };
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { ClearIcon, ArrowIcon, LoadingIcon, CheckIcon, SearchIcon, CalendarIcon, SuccessIcon, ErrorIcon, DateDistanceIcon, TimeIcon, StampleIcon, TrashIcon, SpinerIcon } from './Icons';
|
|
@@ -1,28 +0,0 @@
|
|
|
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;
|
|
@@ -1,27 +0,0 @@
|
|
|
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;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { default as Textarea } from '@/components/Input/Textarea/Textarea';
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { default as Input } from '@/components/Input/Input';
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { default as RadioButton } from '@/components/Radio/Button/Button';
|
|
@@ -1,4 +0,0 @@
|
|
|
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-runtime").JSX.Element;
|
|
4
|
-
export default RadioGroup;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { default as RadioGroup } from '@/components/Radio/Group/Group';
|
|
@@ -1,30 +0,0 @@
|
|
|
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-runtime").JSX.Element;
|
|
28
|
-
Button: ({ prefixCls, className, checked, disabled, children, size, ...props }: import("../../types/radio").RadioButtonProps) => import("react/jsx-runtime").JSX.Element;
|
|
29
|
-
};
|
|
30
|
-
export default Radio;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { default as Radio } from '@/components/Radio/Radio';
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { default as Option } from '@/components/Select/Option/Option';
|
|
@@ -1,51 +0,0 @@
|
|
|
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;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { default as Tag } from '@/components/Select/Tag/Tag';
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { default as Select } from '@/components/Select/Select';
|
|
@@ -1,8 +0,0 @@
|
|
|
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;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { default as SkeletonAvatar } from './Avatar';
|