x-ui-design 0.2.0 → 0.2.2
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/Button/Button.client.d.ts +1 -1
- package/dist/esm/types/components/DatePicker/DatePicker.d.ts +2 -2
- package/dist/esm/types/components/DatePicker/RangePicker/RangePicker.d.ts +1 -1
- package/dist/esm/types/components/Empty/Empty.d.ts +1 -1
- package/dist/esm/types/components/Form/Item/Item.d.ts +1 -1
- package/dist/esm/types/components/Icons/Icons.d.ts +13 -13
- package/dist/esm/types/components/Radio/Button/Button.d.ts +1 -1
- package/dist/esm/types/components/Radio/Group/Group.d.ts +1 -1
- package/dist/esm/types/components/Radio/Radio.d.ts +2 -2
- package/dist/esm/types/components/Upload/Upload.d.ts +1 -1
- package/dist/index.d.ts +25 -24
- package/dist/index.esm.js +1045 -888
- package/dist/index.esm.js.map +1 -1
- package/dist/index.js +1044 -887
- package/dist/index.js.map +1 -1
- package/package.json +3 -3
- package/tsconfig.json +1 -1
|
@@ -3,7 +3,7 @@ import './style.css';
|
|
|
3
3
|
export declare const NUMBER_SIX = 6;
|
|
4
4
|
export declare const MONTH_LENGTH = 11;
|
|
5
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;
|
|
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
8
|
};
|
|
9
9
|
export default DatePicker;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import { TRangePickerProps } from '../../../types/datepicker';
|
|
2
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;
|
|
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
4
|
export default RangePicker;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import { EmptyContentProps } from '../../types/empty';
|
|
2
2
|
import './style.css';
|
|
3
|
-
declare const EmptyContent: ({ icon, style, className, title, description, prefixCls }: EmptyContentProps) => import("react").JSX.Element;
|
|
3
|
+
declare const EmptyContent: ({ icon, style, className, title, description, prefixCls }: EmptyContentProps) => import("react/jsx-runtime").JSX.Element;
|
|
4
4
|
export default EmptyContent;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { FormItemProps } from '../../../types/form';
|
|
2
2
|
import './style.css';
|
|
3
3
|
declare const FormItem: {
|
|
4
|
-
({ prefixCls, name, label, rules, children, className, layout, style, valuePropName, dependencies, initialValue, feedbackIcons, ...props }: FormItemProps): import("react").JSX.Element;
|
|
4
|
+
({ prefixCls, name, label, rules, children, className, layout, style, valuePropName, dependencies, initialValue, feedbackIcons, ...props }: FormItemProps): import("react/jsx-runtime").JSX.Element;
|
|
5
5
|
displayName: string;
|
|
6
6
|
};
|
|
7
7
|
export default FormItem;
|
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
declare const ClearIcon: () => import("react").JSX.Element;
|
|
1
|
+
declare const ClearIcon: () => import("react/jsx-runtime").JSX.Element;
|
|
2
2
|
declare const ArrowIcon: ({ isOpen }: {
|
|
3
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;
|
|
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
16
|
export { ClearIcon, ArrowIcon, LoadingIcon, CheckIcon, SearchIcon, CalendarIcon, SuccessIcon, ErrorIcon, DateDistanceIcon, TimeIcon, StampleIcon, TrashIcon, SpinerIcon };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import { RadioButtonProps } from '../../../types/radio';
|
|
2
2
|
import './style.css';
|
|
3
|
-
declare const RadioButton: ({ prefixCls, className, checked, disabled, children, size, ...props }: RadioButtonProps) => import("react").JSX.Element;
|
|
3
|
+
declare const RadioButton: ({ prefixCls, className, checked, disabled, children, size, ...props }: RadioButtonProps) => import("react/jsx-runtime").JSX.Element;
|
|
4
4
|
export default RadioButton;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import { RadioGroupProps } from '../../../types/radio';
|
|
2
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;
|
|
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
4
|
export default RadioGroup;
|
|
@@ -24,7 +24,7 @@ declare const Radio: import("react").ForwardRefExoticComponent<import("../../typ
|
|
|
24
24
|
button?: boolean;
|
|
25
25
|
error?: boolean;
|
|
26
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;
|
|
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
29
|
};
|
|
30
30
|
export default Radio;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import { UploadProps } from '../../types/upload';
|
|
2
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;
|
|
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
4
|
export default Upload;
|
package/dist/index.d.ts
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import * as react from 'react';
|
|
2
2
|
import { CSSProperties, ReactNode, MouseEventHandler, MouseEvent, ReactEventHandler, Key, FC, ComponentClass, FormEvent, ReactElement, FocusEvent, KeyboardEvent, FocusEventHandler, KeyboardEventHandler, ButtonHTMLAttributes } from 'react';
|
|
3
|
+
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
3
4
|
|
|
4
5
|
type RuleType = any;
|
|
5
6
|
type RuleTypes = RuleType | RuleType[];
|
|
@@ -163,7 +164,7 @@ declare const Form: FC<FormProps> & {
|
|
|
163
164
|
};
|
|
164
165
|
|
|
165
166
|
declare const FormItem: {
|
|
166
|
-
({ prefixCls, name, label, rules, children, className, layout, style, valuePropName, dependencies, initialValue, feedbackIcons, ...props }: FormItemProps):
|
|
167
|
+
({ prefixCls, name, label, rules, children, className, layout, style, valuePropName, dependencies, initialValue, feedbackIcons, ...props }: FormItemProps): react_jsx_runtime.JSX.Element;
|
|
167
168
|
displayName: string;
|
|
168
169
|
};
|
|
169
170
|
|
|
@@ -281,13 +282,13 @@ type TimePickerProps = DefaultProps & {
|
|
|
281
282
|
placeholder?: string;
|
|
282
283
|
};
|
|
283
284
|
|
|
284
|
-
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) =>
|
|
285
|
-
RangePicker: ({ prefixCls, value, onChange, placeholder, disabled, error, format, prefix, allowClear, inputReadOnly, size, picker, locale, disabledDate, style, className, separator, defaultValue, bordered }: TRangePickerProps) =>
|
|
285
|
+
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) => react_jsx_runtime.JSX.Element) & {
|
|
286
|
+
RangePicker: ({ prefixCls, value, onChange, placeholder, disabled, error, format, prefix, allowClear, inputReadOnly, size, picker, locale, disabledDate, style, className, separator, defaultValue, bordered }: TRangePickerProps) => react_jsx_runtime.JSX.Element;
|
|
286
287
|
};
|
|
287
288
|
|
|
288
289
|
declare const TimePicker: FC<TimePickerProps>;
|
|
289
290
|
|
|
290
|
-
declare const RangePicker: ({ prefixCls, value, onChange, placeholder, disabled, error, format, prefix, allowClear, inputReadOnly, size, picker, locale, disabledDate, style, className, separator, defaultValue, bordered }: TRangePickerProps) =>
|
|
291
|
+
declare const RangePicker: ({ prefixCls, value, onChange, placeholder, disabled, error, format, prefix, allowClear, inputReadOnly, size, picker, locale, disabledDate, style, className, separator, defaultValue, bordered }: TRangePickerProps) => react_jsx_runtime.JSX.Element;
|
|
291
292
|
|
|
292
293
|
declare const Textarea: react.ForwardRefExoticComponent<Omit<react.TextareaHTMLAttributes<HTMLTextAreaElement>, "onResize"> & DefaultProps & {
|
|
293
294
|
value?: string;
|
|
@@ -419,13 +420,13 @@ declare const Radio: react.ForwardRefExoticComponent<DefaultProps & {
|
|
|
419
420
|
button?: boolean;
|
|
420
421
|
error?: boolean;
|
|
421
422
|
} & react.RefAttributes<HTMLLabelElement>> & {
|
|
422
|
-
Group: ({ defaultValue, value, size, disabled, name, id, style, buttonStyle, block, prefixCls, className, options, children, ...props }: RadioGroupProps) =>
|
|
423
|
-
Button: ({ prefixCls, className, checked, disabled, children, size, ...props }: RadioButtonProps) =>
|
|
423
|
+
Group: ({ defaultValue, value, size, disabled, name, id, style, buttonStyle, block, prefixCls, className, options, children, ...props }: RadioGroupProps) => react_jsx_runtime.JSX.Element;
|
|
424
|
+
Button: ({ prefixCls, className, checked, disabled, children, size, ...props }: RadioButtonProps) => react_jsx_runtime.JSX.Element;
|
|
424
425
|
};
|
|
425
426
|
|
|
426
|
-
declare const RadioGroup: ({ defaultValue, value, size, disabled, name, id, style, buttonStyle, block, prefixCls, className, options, children, ...props }: RadioGroupProps) =>
|
|
427
|
+
declare const RadioGroup: ({ defaultValue, value, size, disabled, name, id, style, buttonStyle, block, prefixCls, className, options, children, ...props }: RadioGroupProps) => react_jsx_runtime.JSX.Element;
|
|
427
428
|
|
|
428
|
-
declare const RadioButton: ({ prefixCls, className, checked, disabled, children, size, ...props }: RadioButtonProps) =>
|
|
429
|
+
declare const RadioButton: ({ prefixCls, className, checked, disabled, children, size, ...props }: RadioButtonProps) => react_jsx_runtime.JSX.Element;
|
|
429
430
|
|
|
430
431
|
declare const Select: react.ForwardRefExoticComponent<DefaultProps & {
|
|
431
432
|
id?: string;
|
|
@@ -549,7 +550,7 @@ type EmptyContentProps = DefaultProps & {
|
|
|
549
550
|
icon?: ReactNode;
|
|
550
551
|
};
|
|
551
552
|
|
|
552
|
-
declare const EmptyContent: ({ icon, style, className, title, description, prefixCls }: EmptyContentProps) =>
|
|
553
|
+
declare const EmptyContent: ({ icon, style, className, title, description, prefixCls }: EmptyContentProps) => react_jsx_runtime.JSX.Element;
|
|
553
554
|
|
|
554
555
|
declare const ButtonTypes: readonly ["default", "primary", "dashed", "link", "text", "ghost"];
|
|
555
556
|
declare const ButtonShapes: readonly ["default", "circle", "round"];
|
|
@@ -593,7 +594,7 @@ interface ButtonProps extends BaseButtonProps, Omit<ButtonHTMLAttributes<HTMLBut
|
|
|
593
594
|
htmlType?: ButtonHTMLType;
|
|
594
595
|
}
|
|
595
596
|
|
|
596
|
-
declare const MyButton: (props: ButtonProps) =>
|
|
597
|
+
declare const MyButton: (props: ButtonProps) => react_jsx_runtime.JSX.Element;
|
|
597
598
|
|
|
598
599
|
interface RcFile extends File {
|
|
599
600
|
uid: string;
|
|
@@ -649,7 +650,7 @@ type UploadProps = DefaultProps & {
|
|
|
649
650
|
children?: React.ReactNode;
|
|
650
651
|
};
|
|
651
652
|
|
|
652
|
-
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) =>
|
|
653
|
+
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) => react_jsx_runtime.JSX.Element;
|
|
653
654
|
|
|
654
655
|
declare const Checkbox: react.ForwardRefExoticComponent<DefaultProps & {
|
|
655
656
|
disabled?: boolean;
|
|
@@ -672,21 +673,21 @@ declare const Checkbox: react.ForwardRefExoticComponent<DefaultProps & {
|
|
|
672
673
|
checked?: boolean;
|
|
673
674
|
} & react.RefAttributes<HTMLDivElement>>;
|
|
674
675
|
|
|
675
|
-
declare const ClearIcon: () =>
|
|
676
|
+
declare const ClearIcon: () => react_jsx_runtime.JSX.Element;
|
|
676
677
|
declare const ArrowIcon: ({ isOpen }: {
|
|
677
678
|
isOpen: boolean;
|
|
678
|
-
}) =>
|
|
679
|
-
declare const LoadingIcon: () =>
|
|
680
|
-
declare const CheckIcon: () =>
|
|
681
|
-
declare const SearchIcon: () =>
|
|
682
|
-
declare const CalendarIcon: () =>
|
|
683
|
-
declare const SuccessIcon: () =>
|
|
684
|
-
declare const ErrorIcon: () =>
|
|
685
|
-
declare const DateDistanceIcon: () =>
|
|
686
|
-
declare const TimeIcon: () =>
|
|
687
|
-
declare const StampleIcon: () =>
|
|
688
|
-
declare const TrashIcon: () =>
|
|
689
|
-
declare const SpinerIcon: () =>
|
|
679
|
+
}) => react_jsx_runtime.JSX.Element;
|
|
680
|
+
declare const LoadingIcon: () => react_jsx_runtime.JSX.Element;
|
|
681
|
+
declare const CheckIcon: () => react_jsx_runtime.JSX.Element;
|
|
682
|
+
declare const SearchIcon: () => react_jsx_runtime.JSX.Element;
|
|
683
|
+
declare const CalendarIcon: () => react_jsx_runtime.JSX.Element;
|
|
684
|
+
declare const SuccessIcon: () => react_jsx_runtime.JSX.Element;
|
|
685
|
+
declare const ErrorIcon: () => react_jsx_runtime.JSX.Element;
|
|
686
|
+
declare const DateDistanceIcon: () => react_jsx_runtime.JSX.Element;
|
|
687
|
+
declare const TimeIcon: () => react_jsx_runtime.JSX.Element;
|
|
688
|
+
declare const StampleIcon: () => react_jsx_runtime.JSX.Element;
|
|
689
|
+
declare const TrashIcon: () => react_jsx_runtime.JSX.Element;
|
|
690
|
+
declare const SpinerIcon: () => react_jsx_runtime.JSX.Element;
|
|
690
691
|
|
|
691
692
|
declare const useForm: (initialValues?: Record<string, RuleTypes>, onFieldsChange?: (changedFields: FieldData[]) => void, onValuesChange?: (changedValues: Record<string, RuleTypes>, allValues: Record<string, RuleTypes>) => void) => FormInstance;
|
|
692
693
|
|