x-ui-design 0.1.62 → 0.1.63
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/components/Checkbox/Checkbox.d.ts +23 -0
- package/dist/esm/types/components/Checkbox/index.d.ts +1 -0
- package/dist/esm/types/components/DatePicker/DatePicker.d.ts +9 -0
- package/dist/esm/types/components/DatePicker/RangePicker/RangePicker.d.ts +4 -0
- package/dist/esm/types/components/DatePicker/RangePicker/index.d.ts +1 -0
- package/dist/esm/types/components/DatePicker/TimePicker/TimePicker.d.ts +5 -0
- package/dist/esm/types/components/DatePicker/TimePicker/index.d.ts +1 -0
- package/dist/esm/types/components/DatePicker/index.d.ts +1 -0
- package/dist/esm/types/components/Empty/Empty.d.ts +4 -0
- package/dist/esm/types/components/Empty/index.d.ts +1 -0
- package/dist/esm/types/components/Input/Input.d.ts +28 -0
- package/dist/esm/types/components/Input/Textarea/Textarea.d.ts +27 -0
- package/dist/esm/types/components/Input/Textarea/index.d.ts +1 -0
- package/dist/esm/types/components/Input/index.d.ts +1 -0
- package/dist/esm/types/components/Radio/Button/Button.d.ts +4 -0
- package/dist/esm/types/components/Radio/Button/index.d.ts +1 -0
- package/dist/esm/types/components/Radio/Group/Group.d.ts +4 -0
- package/dist/esm/types/components/Radio/Group/index.d.ts +1 -0
- package/dist/esm/types/components/Radio/Radio.d.ts +30 -0
- package/dist/esm/types/components/Radio/index.d.ts +1 -0
- package/dist/esm/types/components/Select/Option/Option.d.ts +5 -0
- package/dist/esm/types/components/Select/Option/index.d.ts +1 -0
- package/dist/esm/types/components/Select/Select.d.ts +51 -0
- package/dist/esm/types/components/Select/Tag/Tag.d.ts +5 -0
- package/dist/esm/types/components/Select/Tag/index.d.ts +1 -0
- package/dist/esm/types/components/Select/index.d.ts +1 -0
- package/dist/esm/types/components/Upload/Upload.d.ts +4 -0
- package/dist/esm/types/components/Upload/index.d.ts +1 -0
- package/dist/esm/types/components/icons/index.d.ts +16 -0
- package/dist/esm/types/index.d.ts +1 -1
- package/dist/index.d.ts +1 -6
- package/dist/index.esm.js +1 -1
- package/dist/index.esm.js.map +1 -1
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/lib/{Checkbox/index.tsx → components/Checkbox/Checkbox.tsx} +1 -1
- package/lib/components/Checkbox/index.ts +1 -0
- package/lib/{DatePicker/index.tsx → components/DatePicker/DatePicker.tsx} +2 -4
- package/lib/{DatePicker/RangePicker/index.tsx → components/DatePicker/RangePicker/RangePicker.tsx} +2 -4
- package/lib/components/DatePicker/RangePicker/index.ts +1 -0
- package/lib/{DatePicker/TimePicker/index.tsx → components/DatePicker/TimePicker/TimePicker.tsx} +1 -3
- package/lib/components/DatePicker/TimePicker/index.ts +1 -0
- package/lib/components/DatePicker/index.ts +1 -0
- package/lib/components/Empty/index.ts +1 -0
- package/lib/{Input/index.tsx → components/Input/Input.tsx} +2 -2
- package/lib/{Input/Textarea/index.tsx → components/Input/Textarea/Textarea.tsx} +1 -1
- package/lib/components/Input/Textarea/index.ts +1 -0
- package/lib/components/Input/index.ts +1 -0
- package/lib/{Radio/Button/index.tsx → components/Radio/Button/Button.tsx} +2 -2
- package/lib/components/Radio/Button/index.ts +1 -0
- package/lib/{Radio/Group/index.tsx → components/Radio/Group/Group.tsx} +3 -3
- package/lib/components/Radio/Group/index.ts +1 -0
- package/lib/{Radio/index.tsx → components/Radio/Radio.tsx} +3 -3
- package/lib/components/Radio/index.ts +1 -0
- package/lib/{Select/Option/index.tsx → components/Select/Option/Option.tsx} +1 -1
- package/lib/components/Select/Option/index.ts +1 -0
- package/lib/{Select/index.tsx → components/Select/Select.tsx} +5 -5
- package/lib/{Select/Tag/index.tsx → components/Select/Tag/Tag.tsx} +1 -1
- package/lib/components/Select/Tag/index.ts +1 -0
- package/lib/components/Select/index.ts +1 -0
- package/lib/{Upload/index.tsx → components/Upload/Upload.tsx} +1 -3
- package/lib/components/Upload/index.ts +1 -0
- package/lib/index.ts +1 -0
- package/package.json +1 -2
- package/rollup.config.js +3 -6
- package/src/app/page.tsx +1 -4
- package/tsconfig.json +3 -3
- package/dist/esm/types/app/layout.d.ts +0 -5
- package/dist/esm/types/app/page.d.ts +0 -1
- package/src/index.ts +0 -1
- /package/{src → lib}/components/Button/Button.tsx +0 -0
- /package/{src → lib}/components/Button/index.ts +0 -0
- /package/{src → lib}/components/Button/style.css +0 -0
- /package/lib/{Checkbox → components/Checkbox}/style.css +0 -0
- /package/lib/{DatePicker → components/DatePicker}/RangePicker/style.css +0 -0
- /package/lib/{DatePicker → components/DatePicker}/TimePicker/style.css +0 -0
- /package/lib/{DatePicker → components/DatePicker}/style.css +0 -0
- /package/lib/{Empty/index.tsx → components/Empty/Empty.tsx} +0 -0
- /package/lib/{Empty → components/Empty}/style.css +0 -0
- /package/{src → lib}/components/Form/Form.tsx +0 -0
- /package/{src → lib}/components/Form/Item/index.tsx +0 -0
- /package/{src → lib}/components/Form/Item/style.css +0 -0
- /package/{src → lib}/components/Form/index.ts +0 -0
- /package/lib/{Input → components/Input}/Textarea/style.css +0 -0
- /package/lib/{Input → components/Input}/style.css +0 -0
- /package/lib/{Radio → components/Radio}/Button/style.css +0 -0
- /package/lib/{Radio → components/Radio}/Group/style.css +0 -0
- /package/lib/{Radio → components/Radio}/style.css +0 -0
- /package/lib/{Select → components/Select}/Option/style.css +0 -0
- /package/lib/{Select → components/Select}/Tag/style.css +0 -0
- /package/lib/{Select → components/Select}/style.css +0 -0
- /package/lib/{Upload → components/Upload}/style.css +0 -0
- /package/lib/{icons → components/icons}/index.tsx +0 -0
- /package/{src → lib}/helpers/index.ts +0 -0
- /package/{src → lib}/hooks/useForm.ts +0 -0
- /package/{src → lib}/hooks/useWatch.ts +0 -0
- /package/{src → lib}/types/button.ts +0 -0
- /package/{src → lib}/types/checkbox.ts +0 -0
- /package/{src → lib}/types/datepicker.ts +0 -0
- /package/{src → lib}/types/empty.ts +0 -0
- /package/{src → lib}/types/form.ts +0 -0
- /package/{src → lib}/types/index.ts +0 -0
- /package/{src → lib}/types/input.ts +0 -0
- /package/{src → lib}/types/radio.ts +0 -0
- /package/{src → lib}/types/select.ts +0 -0
- /package/{src → lib}/types/skeleton.ts +0 -0
- /package/{src → lib}/types/upload.ts +0 -0
- /package/{src → lib}/utils/index.ts +0 -0
- /package/{lib → src/app}/Skeleton/Avatar/index.tsx +0 -0
- /package/{lib → src/app}/Skeleton/Avatar/style.css +0 -0
- /package/{lib → src/app}/Skeleton/Button/index.tsx +0 -0
- /package/{lib → src/app}/Skeleton/Button/style.css +0 -0
- /package/{lib → src/app}/Skeleton/Image/index.tsx +0 -0
- /package/{lib → src/app}/Skeleton/Image/style.css +0 -0
- /package/{lib → src/app}/Skeleton/Input/index.tsx +0 -0
- /package/{lib → src/app}/Skeleton/Input/style.css +0 -0
- /package/{lib → src/app}/Skeleton/index.tsx +0 -0
- /package/{lib → src/app}/Skeleton/style.css +0 -0
|
@@ -0,0 +1,23 @@
|
|
|
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;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default as Checkbox } from '@/components/Checkbox/Checkbox';
|
|
@@ -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-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;
|
|
@@ -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-runtime").JSX.Element;
|
|
4
|
+
export default RangePicker;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default as RangePicker } from '@/components/DatePicker/RangePicker/RangePicker';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default as TimePicker } from '@/components/DatePicker/TimePicker/TimePicker';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default as DatePicker } from '@/components/DatePicker/DatePicker';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default as Empty } from '@/components/Empty/Empty';
|
|
@@ -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>, "prefix" | "size"> & 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 '@/components/Input/Textarea/Textarea';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default as Input } from '@/components/Input/Input';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default as RadioButton } from '@/components/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-runtime").JSX.Element;
|
|
4
|
+
export default RadioGroup;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default as RadioGroup } from '@/components/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-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;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default as Radio } from '@/components/Radio/Radio';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default as Option } from '@/components/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 @@
|
|
|
1
|
+
export { default as Tag } from '@/components/Select/Tag/Tag';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default as Select } from '@/components/Select/Select';
|
|
@@ -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-runtime").JSX.Element;
|
|
4
|
+
export default Upload;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default as Upload } from '@/components/Upload/Upload';
|
|
@@ -0,0 +1,16 @@
|
|
|
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 +1 @@
|
|
|
1
|
-
export { default as Button } from "
|
|
1
|
+
export { default as Button } from "@/components/Button/Button";
|
package/dist/index.d.ts
CHANGED
|
@@ -1,6 +1 @@
|
|
|
1
|
-
|
|
2
|
-
import { ButtonProps } from '@/types/button';
|
|
3
|
-
|
|
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
|
-
|
|
6
|
-
export { ButtonComponent as Button };
|
|
1
|
+
export { default as Button } from '@/components/Button/Button';
|
package/dist/index.esm.js
CHANGED
|
@@ -1257,7 +1257,7 @@ function styleInject(css, ref) {
|
|
|
1257
1257
|
}
|
|
1258
1258
|
}
|
|
1259
1259
|
|
|
1260
|
-
var css_248z = ".style_xUi-
|
|
1260
|
+
var css_248z = ".style_xUi-button__edKfw {\n display: inline-flex;\n align-items: center;\n justify-content: center;\n font-weight: 400;\n white-space: nowrap;\n vertical-align: middle;\n user-select: none;\n border: 1px solid transparent;\n cursor: pointer;\n transition: all 0.3s ease;\n border-radius: 6px;\n line-height: 1.5715;\n}\n\n.style_xUi-button-content__46byE {\n display: inline-flex;\n align-items: center;\n justify-content: center;\n}\n\n.style_xUi-button-icon__oIgui {\n display: inline-flex;\n align-items: center;\n justify-content: center;\n line-height: 0;\n margin-right: 0.5em;\n}\n\n.style_xUi-button-icon__oIgui:last-child {\n margin-right: 0;\n margin-left: 0.5em;\n}\n\n.style_xUi-button-spinner__Q-QET {\n width: 1em;\n height: 1em;\n border: 1px solid transparent;\n border-top-color: var(--xui-text-color);\n border-radius: 50%;\n animation: style_xUi-spin__vKmxN 1s linear infinite;\n}\n\n@keyframes style_xUi-spin__vKmxN {\n 0% {\n transform: rotate(0deg);\n }\n 100% {\n transform: rotate(360deg);\n }\n}\n\n.style_xUi-button-size-small__51-1n {\n padding: 4px 12px;\n font-size: 12px;\n height: 24px;\n}\n\n.style_xUi-button-size-middle__UT-p3 {\n padding: 0 16px;\n font-size: 14px;\n height: 32px;\n}\n\n.style_xUi-button-size-large__wo8-O {\n padding: 8px 20px;\n font-size: 16px;\n height: 40px;\n}\n\n.style_xUi-button-circle__nWwng {\n padding: 0;\n border-radius: 50%;\n justify-content: center;\n}\n\n.style_xUi-button-circle__nWwng.style_xUi-button-size-small__51-1n {\n width: 24px;\n height: 24px;\n}\n\n.style_xUi-button-circle__nWwng.style_xUi-button-size-large__wo8-O {\n width: 40px;\n height: 40px;\n}\n\n.style_xUi-button-round__uPTiJ {\n border-radius: 9999px;\n}\n\n.style_xUi-button-default__8uctI {\n background-color: #fff;\n border-color: var(--xui-border-color);\n color: rgba(0, 0, 0, 0.85);\n}\n\n.style_xUi-button-default__8uctI:hover {\n border-color: var(--xui-primary-color);\n color: var(--xui-primary-color);\n}\n\n.style_xUi-button-primary__-qJaX {\n background-color: var(--xui-primary-color);\n border-color: var(--xui-primary-color);\n color: #fff;\n}\n\n.style_xUi-button-primary__-qJaX:hover {\n background-color: var(--xui-primary-color-light);\n border-color: var(--xui-primary-color-light);\n color: #fff;\n}\n\n.style_xUi-button-dashed__8fdyy {\n border-style: dashed;\n background-color: #fff;\n color: rgba(0, 0, 0, 0.85);\n border-color: var(--xui-border-color);\n}\n\n.style_xUi-button-dashed__8fdyy:hover {\n border-color: var(--xui-primary-color);\n color: var(--xui-primary-color);\n}\n\n.style_xUi-button-text__NPqnZ {\n background-color: transparent;\n border-color: transparent !important;\n color: rgba(0, 0, 0, 0.88);\n}\n\n.style_xUi-button-text__NPqnZ:hover {\n color: rgba(0, 0, 0, 0.88);\n border-color: transparent;\n background-color: rgba(0, 0, 0, 0.04);\n}\n\n.style_xUi-button-link__KzTUL {\n background-color: transparent;\n border-color: transparent !important;\n color: var(--xui-primary-color);\n}\n\n.style_xUi-button-link__KzTUL:hover {\n border-color: transparent;\n color: var(--xui-primary-color-light);\n}\n\n.style_xUi-button-outlined__oBIa6 {\n background-color: transparent;\n border-color: var(--xui-border-color);\n color: #fff;\n}\n\n.style_xUi-button-filled__wEzVC {\n background-color: transparent;\n color: var(--xui-text-color);\n border-color: var(--xui-border-color);\n}\n\n.style_xUi-button-danger__iGDQj {\n background-color: transparent;\n border-color: var(--xui-error-color);\n color: var(--xui-error-color);\n}\n\n.style_xUi-button-danger__iGDQj:hover {\n color: var(--xui-error-color-light);\n border-color: var(--xui-error-color-light);\n}\n\n.style_xUi-button-ghost__jiw2N {\n opacity: 0;\n}\n\n.style_xUi-button-ghost__jiw2N:hover {\n opacity: 1;\n}\n\n.style_xUi-button-block__r9QnP {\n display: flex;\n width: 100%;\n}\n\n.style_xUi-button-disabled__1VyFK,\n.style_xUi-button-loading__h8HrL {\n cursor: not-allowed;\n opacity: 0.5;\n color: var(--xui-text-color);\n border-color: var(--xui-border-color);\n background-color: var(--xui-color-disabled);\n pointer-events: none;\n}\n\n.style_xUi-button-loading__h8HrL {\n background-color: transparent\n}";
|
|
1261
1261
|
styleInject(css_248z);
|
|
1262
1262
|
|
|
1263
1263
|
const ButtonComponent = ({
|