x-ui-design 0.6.66 → 0.6.67

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (40) hide show
  1. package/dist/esm/types/components/Button/Button.d.ts +1 -1
  2. package/dist/esm/types/components/Checkbox/Checkbox.d.ts +1 -1
  3. package/dist/esm/types/components/Empty/Empty.d.ts +1 -1
  4. package/dist/esm/types/components/Form/Item/Item.d.ts +1 -1
  5. package/dist/esm/types/components/Input/Input.d.ts +1 -1
  6. package/dist/esm/types/components/Input/Textarea/Textarea.d.ts +1 -1
  7. package/dist/esm/types/components/Radio/Button/Button.d.ts +1 -1
  8. package/dist/esm/types/components/Radio/Group/Group.d.ts +1 -1
  9. package/dist/esm/types/components/Select/Select.d.ts +1 -1
  10. package/dist/esm/types/components/Switch/Switch.d.ts +1 -1
  11. package/dist/esm/types/components/Upload/Upload.d.ts +1 -1
  12. package/dist/esm/types/types/button.d.ts +1 -0
  13. package/dist/esm/types/types/index.d.ts +1 -0
  14. package/dist/esm/types/types/radio.d.ts +1 -0
  15. package/dist/esm/types/types/select.d.ts +1 -0
  16. package/dist/esm/types/utils/index.d.ts +15 -0
  17. package/dist/index.d.ts +1 -0
  18. package/dist/index.esm.js +122 -89
  19. package/dist/index.esm.js.map +1 -1
  20. package/dist/index.js +122 -89
  21. package/dist/index.js.map +1 -1
  22. package/lib/components/Button/Button.tsx +19 -7
  23. package/lib/components/Checkbox/Checkbox.tsx +9 -7
  24. package/lib/components/Empty/Empty.tsx +4 -3
  25. package/lib/components/Form/Form.tsx +3 -2
  26. package/lib/components/Form/Item/Item.tsx +8 -7
  27. package/lib/components/Input/Input.tsx +13 -12
  28. package/lib/components/Input/Textarea/Textarea.tsx +7 -6
  29. package/lib/components/Radio/Button/Button.tsx +6 -5
  30. package/lib/components/Radio/Group/Group.tsx +5 -4
  31. package/lib/components/Select/Option/Option.tsx +3 -2
  32. package/lib/components/Select/Select.tsx +38 -28
  33. package/lib/components/Switch/Switch.tsx +5 -4
  34. package/lib/components/Upload/Upload.tsx +15 -13
  35. package/lib/types/button.ts +1 -0
  36. package/lib/types/index.ts +1 -0
  37. package/lib/types/radio.ts +1 -0
  38. package/lib/types/select.ts +1 -0
  39. package/lib/utils/index.ts +18 -0
  40. package/package.json +1 -1
@@ -1,5 +1,5 @@
1
1
  import { ReactElement } from 'react';
2
2
  import { ButtonProps } from '../../types/button';
3
3
  import './style.css';
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, __injected, child, ...restProps }: ButtonProps) => ReactElement;
4
+ declare const ButtonComponent: ({ type, variant, color, shape, size, htmlType, className, rootClassName, classNames: customClassNames, styles, prefixCls, prefixClsV3, icon, iconPosition, loading, disabled, ghost, danger, block, children, href, __injected, child, ...restProps }: ButtonProps) => ReactElement;
5
5
  export default ButtonComponent;
@@ -2,7 +2,7 @@ import { ReactElement } from 'react';
2
2
  import { CheckboxProps } from '../../types/checkbox';
3
3
  import './style.css';
4
4
  declare const Checkbox: {
5
- ({ prefixCls, className, defaultChecked, checked, style, disabled, onChange, onClick, onMouseEnter, onMouseLeave, onKeyPress, onKeyDown, tabIndex, name, children, id, autoFocus, type, value, required, noStyle, titleClick, ref }: CheckboxProps): ReactElement;
5
+ ({ prefixCls, prefixClsV3, className, defaultChecked, checked, style, disabled, onChange, onClick, onMouseEnter, onMouseLeave, onKeyPress, onKeyDown, tabIndex, name, children, id, autoFocus, type, value, required, noStyle, titleClick, ref }: CheckboxProps): ReactElement;
6
6
  displayName: string;
7
7
  };
8
8
  export default Checkbox;
@@ -1,5 +1,5 @@
1
1
  import React from 'react';
2
2
  import { EmptyContentProps } from '../../types/empty';
3
3
  import './style.css';
4
- declare const EmptyContent: ({ icon, style, className, title, description, prefixCls }: EmptyContentProps) => React.JSX.Element;
4
+ declare const EmptyContent: ({ icon, style, className, title, description, prefixCls, prefixClsV3 }: EmptyContentProps) => React.JSX.Element;
5
5
  export default EmptyContent;
@@ -2,7 +2,7 @@ import React from 'react';
2
2
  import { FormItemProps } from '../../../types/form';
3
3
  import './style.css';
4
4
  declare const FormItem: {
5
- ({ prefixCls, name, label, rules, children, className, layout, style, dependencies, initialValue, feedbackIcons, extra, hideLabel, removeErrorMessageHeight, ...props }: FormItemProps): React.JSX.Element;
5
+ ({ prefixCls, prefixClsV3, name, label, rules, children, className, layout, style, dependencies, initialValue, feedbackIcons, extra, hideLabel, removeErrorMessageHeight, ...props }: FormItemProps): React.JSX.Element;
6
6
  displayName: string;
7
7
  };
8
8
  export default FormItem;
@@ -3,7 +3,7 @@ import { InputProps } from '../../types/input';
3
3
  import Textarea from './Textarea/Textarea';
4
4
  import './style.css';
5
5
  declare const InputComponent: {
6
- ({ size, error, suffix, prefix, addonAfter, addonBefore, onPressEnter, disabled, allowClear, prefixCls, className, value, iconRender, noStyle, feedbackIcons, mask, maskChar, maskRegex, __injected, defaultValue, child, ref, ...props }: InputProps): React.JSX.Element;
6
+ ({ size, error, suffix, prefix, addonAfter, addonBefore, onPressEnter, disabled, allowClear, prefixCls, prefixClsV3, className, value, iconRender, noStyle, feedbackIcons, mask, maskChar, maskRegex, __injected, defaultValue, child, ref, ...props }: InputProps): React.JSX.Element;
7
7
  displayName: string;
8
8
  };
9
9
  declare const Input: typeof InputComponent & {
@@ -2,7 +2,7 @@ import React from 'react';
2
2
  import { TextareaProps } from '../../../types/input';
3
3
  import './style.css';
4
4
  declare const Textarea: {
5
- ({ prefixCls, value, className, style, autoSize, onPressEnter, onResize, styles, bordered, size, status, rootClassName, variant, error, allowClear, ref, ...props }: TextareaProps): React.JSX.Element;
5
+ ({ prefixCls, prefixClsV3, value, className, style, autoSize, onPressEnter, onResize, styles, bordered, size, status, rootClassName, variant, error, allowClear, ref, ...props }: TextareaProps): React.JSX.Element;
6
6
  displayName: string;
7
7
  };
8
8
  export default Textarea;
@@ -1,5 +1,5 @@
1
1
  import React from 'react';
2
2
  import { RadioButtonProps } from '../../../types/radio';
3
3
  import './style.css';
4
- declare const RadioButton: ({ prefixCls, className, checked, disabled, children, size, ...props }: RadioButtonProps) => React.JSX.Element;
4
+ declare const RadioButton: ({ prefixCls, prefixClsV3, className, checked, disabled, children, size, ...props }: RadioButtonProps) => React.JSX.Element;
5
5
  export default RadioButton;
@@ -1,5 +1,5 @@
1
1
  import React from 'react';
2
2
  import { RadioGroupProps } from '../../../types/radio';
3
3
  import './style.css';
4
- declare const RadioGroup: ({ defaultValue, value, size, disabled, name, id, style, buttonStyle, block, prefixCls, className, options, children, ...props }: RadioGroupProps) => React.JSX.Element;
4
+ declare const RadioGroup: ({ defaultValue, value, size, disabled, name, id, style, buttonStyle, block, prefixCls, prefixClsV3, className, options, children, ...props }: RadioGroupProps) => React.JSX.Element;
5
5
  export default RadioGroup;
@@ -2,7 +2,7 @@ import { ReactElement } from 'react';
2
2
  import { SelectProps } from '../../types/select';
3
3
  import './style.css';
4
4
  declare const Select: {
5
- ({ prefixCls, id, searchValue, autoClearSearchValue, filterOption, optionFilterProp, children, options, listHeight, menuItemSelectedIcon, mode, value, defaultValue, maxCount, disabled, loading, placeholder, allowClear, filterable, defaultOpen, size, error, dropdownClassName, className, suffixIcon, searchIcon, style, showSearch, open, closeFromParent, showArrow, notFoundContent, noStyle, feedbackIcons, placement, removeIcon, maxTagCount, onSearch, onSelect, onDeselect, onClear, onChange, onClose, tagRender, getPopupContainer, dropdownRender, onDropdownVisibleChange, ref }: SelectProps): ReactElement;
5
+ ({ prefixCls, prefixClsV3, id, searchValue, autoClearSearchValue, filterOption, optionFilterProp, children, options, listHeight, menuItemSelectedIcon, mode, value, defaultValue, maxCount, disabled, loading, placeholder, allowClear, filterable, defaultOpen, size, error, dropdownClassName, className, suffixIcon, searchIcon, style, showSearch, open, closeFromParent, showArrow, notFoundContent, noStyle, feedbackIcons, placement, removeIcon, maxTagCount, onSearch, onSelect, onDeselect, onClear, onChange, onClose, tagRender, getPopupContainer, dropdownRender, onDropdownVisibleChange, ref }: SelectProps): ReactElement;
6
6
  displayName: string;
7
7
  };
8
8
  export default Select;
@@ -2,7 +2,7 @@ import React from 'react';
2
2
  import { SwitchProps } from '../../types/switch';
3
3
  import './index.css';
4
4
  declare const Switch: {
5
- ({ prefixCls, checked, onChange, onClick, disabled, className, style, defaultChecked, value }: SwitchProps): React.JSX.Element;
5
+ ({ prefixCls, prefixClsV3, checked, onChange, onClick, disabled, className, style, defaultChecked, value }: SwitchProps): React.JSX.Element;
6
6
  displayName: string;
7
7
  };
8
8
  export default Switch;
@@ -1,5 +1,5 @@
1
1
  import React from 'react';
2
2
  import { UploadProps } from '../../types/upload';
3
3
  import './style.css';
4
- 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;
4
+ declare const Upload: ({ prefixCls, prefixClsV3, 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;
5
5
  export default Upload;
@@ -23,6 +23,7 @@ export interface BaseButtonProps {
23
23
  icon?: ReactNode;
24
24
  };
25
25
  prefixCls?: string;
26
+ prefixClsV3?: string;
26
27
  className?: string;
27
28
  rootClassName?: string;
28
29
  ghost?: boolean;
@@ -5,6 +5,7 @@ export type SizeType = 'small' | 'middle' | 'large';
5
5
  export type MouseEventHandlerSelect = MouseEvent<HTMLDivElement> & TargetProps;
6
6
  export interface DefaultProps {
7
7
  prefixCls?: string;
8
+ prefixClsV3?: string;
8
9
  className?: string;
9
10
  style?: CSSProperties;
10
11
  noStyle?: boolean;
@@ -18,6 +18,7 @@ export interface RadioGroupProps {
18
18
  onBlur?: FocusEventHandler<HTMLDivElement>;
19
19
  block?: boolean;
20
20
  prefixCls?: string;
21
+ prefixClsV3?: string;
21
22
  className?: string;
22
23
  options?: Array<{
23
24
  label: ReactNode;
@@ -97,6 +97,7 @@ export interface OptionProps {
97
97
  render?: (label: string) => ReactNode;
98
98
  onMouseEnter?: MouseEventHandler<HTMLDivElement>;
99
99
  prefixCls?: string;
100
+ prefixClsV3?: string;
100
101
  selected?: boolean;
101
102
  title?: string;
102
103
  }
@@ -13,3 +13,18 @@ export declare const prefixClsRangePicker = "xUi-rangepicker";
13
13
  export declare const prefixClsTimePicker = "xUi-timepicker";
14
14
  export declare const prefixClsButton = "xUi-button";
15
15
  export declare const prefixClsSkeleton = "xUi-skeleton";
16
+ export declare const prefixClsFormV3 = "v3-form";
17
+ export declare const prefixClsFormItemV3 = "v3-form-item";
18
+ export declare const prefixClsEmptyV3 = "v3-empty";
19
+ export declare const prefixClsInputV3 = "v3-input";
20
+ export declare const prefixClsSelectV3 = "v3-select";
21
+ export declare const prefixClsCheckboxV3 = "v3-checkbox-input";
22
+ export declare const prefixClsSwitchV3 = "v3-switch";
23
+ export declare const prefixClsRadioV3 = "v3-radio";
24
+ export declare const prefixClsTextAreaV3 = "v3-textarea";
25
+ export declare const prefixClsButtonV3 = "v3-btn";
26
+ export declare const prefixClsUploadV3 = "v3-upload";
27
+ export declare const prefixClsSkeletonV3 = "v3-skeleton";
28
+ export declare const prefixClsDatePickerV3 = "v3-datepicker";
29
+ export declare const prefixClsRangePickerV3 = "v3-rangepicker";
30
+ export declare const prefixClsTimePickerV3 = "v3-timepicker";
package/dist/index.d.ts CHANGED
@@ -26,6 +26,7 @@ export { flattenChildren } from '@/helpers/flatten';
26
26
 
27
27
  interface DefaultProps {
28
28
  prefixCls?: string;
29
+ prefixClsV3?: string;
29
30
  className?: string;
30
31
  style?: CSSProperties;
31
32
  noStyle?: boolean;