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.
@@ -1,3 +1,3 @@
1
1
  import { ButtonProps } from '../../types/button';
2
- declare const MyButton: (props: ButtonProps) => import("react").JSX.Element;
2
+ declare const MyButton: (props: ButtonProps) => import("react/jsx-runtime").JSX.Element;
3
3
  export default MyButton;
@@ -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): react.JSX.Element;
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) => react.JSX.Element) & {
285
- RangePicker: ({ prefixCls, value, onChange, placeholder, disabled, error, format, prefix, allowClear, inputReadOnly, size, picker, locale, disabledDate, style, className, separator, defaultValue, bordered }: TRangePickerProps) => react.JSX.Element;
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) => react.JSX.Element;
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) => react.JSX.Element;
423
- Button: ({ prefixCls, className, checked, disabled, children, size, ...props }: RadioButtonProps) => react.JSX.Element;
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) => react.JSX.Element;
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) => react.JSX.Element;
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) => react.JSX.Element;
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) => react.JSX.Element;
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) => react.JSX.Element;
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: () => react.JSX.Element;
676
+ declare const ClearIcon: () => react_jsx_runtime.JSX.Element;
676
677
  declare const ArrowIcon: ({ isOpen }: {
677
678
  isOpen: boolean;
678
- }) => react.JSX.Element;
679
- declare const LoadingIcon: () => react.JSX.Element;
680
- declare const CheckIcon: () => react.JSX.Element;
681
- declare const SearchIcon: () => react.JSX.Element;
682
- declare const CalendarIcon: () => react.JSX.Element;
683
- declare const SuccessIcon: () => react.JSX.Element;
684
- declare const ErrorIcon: () => react.JSX.Element;
685
- declare const DateDistanceIcon: () => react.JSX.Element;
686
- declare const TimeIcon: () => react.JSX.Element;
687
- declare const StampleIcon: () => react.JSX.Element;
688
- declare const TrashIcon: () => react.JSX.Element;
689
- declare const SpinerIcon: () => react.JSX.Element;
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