@douyinfe/semi-ui 2.1.0-next.2 → 2.1.0-next.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.
@@ -51,7 +51,7 @@ declare class Form extends BaseComponent<BaseFormProps, BaseFormState> {
51
51
  };
52
52
  static Input: React.ComponentType<import("utility-types").Subtract<Omit<import("../input").InputProps, "forwardRef"> & React.RefAttributes<HTMLInputElement>, import("./interface").CommonexcludeType> & import("./interface").CommonFieldProps>;
53
53
  static TextArea: React.ComponentType<import("utility-types").Subtract<Omit<import("../input").TextAreaProps, "forwardRef"> & React.RefAttributes<HTMLTextAreaElement>, import("./interface").CommonexcludeType> & import("./interface").CommonFieldProps>;
54
- static InputNumber: React.ComponentType<import("utility-types").Subtract<any, import("./interface").CommonexcludeType> & import("./interface").CommonFieldProps>;
54
+ static InputNumber: React.ComponentType<import("utility-types").Subtract<import("../inputNumber").InputNumberProps & React.RefAttributes<HTMLInputElement>, import("./interface").CommonexcludeType> & import("./interface").CommonFieldProps>;
55
55
  static Select: React.ComponentType<import("utility-types").Subtract<{
56
56
  autoFocus?: boolean;
57
57
  arrowIcon?: React.ReactNode;
@@ -110,7 +110,7 @@ declare class Form extends BaseComponent<BaseFormProps, BaseFormState> {
110
110
  onBlur?: (e: React.FocusEvent<Element, Element>) => void;
111
111
  onListScroll?: (e: React.UIEvent<HTMLDivElement, UIEvent>) => void;
112
112
  children?: React.ReactNode;
113
- } & Pick<import("../tooltip").TooltipProps, "stopPropagation" | "getPopupContainer" | "spacing" | "mouseEnterDelay" | "autoAdjustOverflow" | "mouseLeaveDelay" | "motion"> & React.RefAttributes<any> & import("./interface").CommonFieldProps, import("./interface").CommonexcludeType>> & import("./interface").SelectStatic;
113
+ } & Pick<import("../tooltip").TooltipProps, "getPopupContainer" | "stopPropagation" | "spacing" | "mouseEnterDelay" | "autoAdjustOverflow" | "mouseLeaveDelay" | "motion"> & React.RefAttributes<any> & import("./interface").CommonFieldProps, import("./interface").CommonexcludeType>> & import("./interface").SelectStatic;
114
114
  static Checkbox: React.ComponentType<import("utility-types").Subtract<import("./interface").CommonFieldProps, import("./interface").RadioCheckboxExcludeProps> & import("../checkbox").CheckboxProps & import("./interface").RCIncludeType>;
115
115
  static CheckboxGroup: React.ComponentType<import("utility-types").Subtract<import("../checkbox").CheckboxGroupProps, import("./interface").CommonexcludeType> & import("./interface").CommonFieldProps>;
116
116
  static Radio: React.ComponentType<import("utility-types").Subtract<import("./interface").CommonFieldProps, import("./interface").RadioCheckboxExcludeProps> & import("../radio").RadioProps & import("./interface").RCIncludeType>;
@@ -1,6 +1,6 @@
1
1
  /// <reference types="react" />
2
2
  declare const FormInput: import("react").ComponentType<import("utility-types").Subtract<Omit<import("../input/index").InputProps, "forwardRef"> & import("react").RefAttributes<HTMLInputElement>, import("./interface").CommonexcludeType> & import("./interface").CommonFieldProps>;
3
- declare const FormInputNumber: import("react").ComponentType<import("utility-types").Subtract<any, import("./interface").CommonexcludeType> & import("./interface").CommonFieldProps>;
3
+ declare const FormInputNumber: import("react").ComponentType<import("utility-types").Subtract<import("../inputNumber/index").InputNumberProps & import("react").RefAttributes<HTMLInputElement>, import("./interface").CommonexcludeType> & import("./interface").CommonFieldProps>;
4
4
  declare const FormTextArea: import("react").ComponentType<import("utility-types").Subtract<Omit<import("../input/textarea").TextAreaProps, "forwardRef"> & import("react").RefAttributes<HTMLTextAreaElement>, import("./interface").CommonexcludeType> & import("./interface").CommonFieldProps>;
5
5
  declare const FormSelect: import("react").ComponentType<import("utility-types").Subtract<{
6
6
  autoFocus?: boolean;
@@ -60,7 +60,7 @@ declare const FormSelect: import("react").ComponentType<import("utility-types").
60
60
  onBlur?: (e: import("react").FocusEvent<Element, Element>) => void;
61
61
  onListScroll?: (e: import("react").UIEvent<HTMLDivElement, UIEvent>) => void;
62
62
  children?: import("react").ReactNode;
63
- } & Pick<import("../tooltip").TooltipProps, "stopPropagation" | "getPopupContainer" | "spacing" | "mouseEnterDelay" | "autoAdjustOverflow" | "mouseLeaveDelay" | "motion"> & import("react").RefAttributes<any> & import("./interface").CommonFieldProps, import("./interface").CommonexcludeType>> & import("./interface").SelectStatic;
63
+ } & Pick<import("../tooltip").TooltipProps, "getPopupContainer" | "stopPropagation" | "spacing" | "mouseEnterDelay" | "autoAdjustOverflow" | "mouseLeaveDelay" | "motion"> & import("react").RefAttributes<any> & import("./interface").CommonFieldProps, import("./interface").CommonexcludeType>> & import("./interface").SelectStatic;
64
64
  declare const FormCheckboxGroup: import("react").ComponentType<import("utility-types").Subtract<import("../checkbox/checkboxGroup").CheckboxGroupProps, import("./interface").CommonexcludeType> & import("./interface").CommonFieldProps>;
65
65
  declare const FormCheckbox: import("react").ComponentType<import("utility-types").Subtract<import("./interface").CommonFieldProps, import("./interface").RadioCheckboxExcludeProps> & import("../checkbox/checkbox").CheckboxProps & import("./interface").RCIncludeType>;
66
66
  declare const FormRadioGroup: import("react").ComponentType<import("utility-types").Subtract<import("../radio/radioGroup").RadioGroupProps, import("./interface").CommonexcludeType> & import("./interface").CommonFieldProps>;
@@ -7,7 +7,6 @@ import { strings } from '@douyinfe/semi-foundation/lib/cjs/inputNumber/constants
7
7
  import '@douyinfe/semi-foundation/lib/cjs/inputNumber/inputNumber.css';
8
8
  import { ArrayElement } from '../_base/base';
9
9
  export interface InputNumberProps extends InputProps {
10
- [x: string]: any;
11
10
  autofocus?: boolean;
12
11
  className?: string;
13
12
  defaultValue?: number | string;
@@ -104,6 +103,6 @@ declare class InputNumber extends BaseComponent<InputNumberProps, InputNumberSta
104
103
  renderSuffix: () => React.ReactNode;
105
104
  render(): JSX.Element;
106
105
  }
107
- declare const _default: React.ForwardRefExoticComponent<Pick<InputNumberProps, keyof InputNumberProps> & React.RefAttributes<HTMLInputElement>>;
106
+ declare const _default: React.ForwardRefExoticComponent<InputNumberProps & React.RefAttributes<HTMLInputElement>>;
108
107
  export default _default;
109
108
  export { InputNumber };
@@ -8,7 +8,7 @@ export interface PlainTab {
8
8
  icon?: ReactNode;
9
9
  itemKey: string;
10
10
  tab?: ReactNode;
11
- closable: boolean;
11
+ closable?: boolean;
12
12
  }
13
13
  export interface TabsProps {
14
14
  activeKey?: string;
@@ -37,7 +37,7 @@ export default class Title extends PureComponent<TitleProps> {
37
37
  underline: PropTypes.Requireable<boolean>;
38
38
  strong: PropTypes.Requireable<boolean>;
39
39
  type: PropTypes.Requireable<"warning" | "success" | "primary" | "tertiary" | "secondary" | "danger" | "quaternary">;
40
- heading: PropTypes.Requireable<1 | 2 | 3 | 4 | 5 | 6>;
40
+ heading: PropTypes.Requireable<4 | 2 | 1 | 3 | 5 | 6>;
41
41
  style: PropTypes.Requireable<object>;
42
42
  className: PropTypes.Requireable<string>;
43
43
  component: PropTypes.Requireable<string>;
@@ -51,7 +51,7 @@ declare class Form extends BaseComponent<BaseFormProps, BaseFormState> {
51
51
  };
52
52
  static Input: React.ComponentType<import("utility-types").Subtract<Omit<import("../input").InputProps, "forwardRef"> & React.RefAttributes<HTMLInputElement>, import("./interface").CommonexcludeType> & import("./interface").CommonFieldProps>;
53
53
  static TextArea: React.ComponentType<import("utility-types").Subtract<Omit<import("../input").TextAreaProps, "forwardRef"> & React.RefAttributes<HTMLTextAreaElement>, import("./interface").CommonexcludeType> & import("./interface").CommonFieldProps>;
54
- static InputNumber: React.ComponentType<import("utility-types").Subtract<any, import("./interface").CommonexcludeType> & import("./interface").CommonFieldProps>;
54
+ static InputNumber: React.ComponentType<import("utility-types").Subtract<import("../inputNumber").InputNumberProps & React.RefAttributes<HTMLInputElement>, import("./interface").CommonexcludeType> & import("./interface").CommonFieldProps>;
55
55
  static Select: React.ComponentType<import("utility-types").Subtract<{
56
56
  autoFocus?: boolean;
57
57
  arrowIcon?: React.ReactNode;
@@ -110,7 +110,7 @@ declare class Form extends BaseComponent<BaseFormProps, BaseFormState> {
110
110
  onBlur?: (e: React.FocusEvent<Element, Element>) => void;
111
111
  onListScroll?: (e: React.UIEvent<HTMLDivElement, UIEvent>) => void;
112
112
  children?: React.ReactNode;
113
- } & Pick<import("../tooltip").TooltipProps, "stopPropagation" | "getPopupContainer" | "spacing" | "mouseEnterDelay" | "autoAdjustOverflow" | "mouseLeaveDelay" | "motion"> & React.RefAttributes<any> & import("./interface").CommonFieldProps, import("./interface").CommonexcludeType>> & import("./interface").SelectStatic;
113
+ } & Pick<import("../tooltip").TooltipProps, "getPopupContainer" | "stopPropagation" | "spacing" | "mouseEnterDelay" | "autoAdjustOverflow" | "mouseLeaveDelay" | "motion"> & React.RefAttributes<any> & import("./interface").CommonFieldProps, import("./interface").CommonexcludeType>> & import("./interface").SelectStatic;
114
114
  static Checkbox: React.ComponentType<import("utility-types").Subtract<import("./interface").CommonFieldProps, import("./interface").RadioCheckboxExcludeProps> & import("../checkbox").CheckboxProps & import("./interface").RCIncludeType>;
115
115
  static CheckboxGroup: React.ComponentType<import("utility-types").Subtract<import("../checkbox").CheckboxGroupProps, import("./interface").CommonexcludeType> & import("./interface").CommonFieldProps>;
116
116
  static Radio: React.ComponentType<import("utility-types").Subtract<import("./interface").CommonFieldProps, import("./interface").RadioCheckboxExcludeProps> & import("../radio").RadioProps & import("./interface").RCIncludeType>;
@@ -1,6 +1,6 @@
1
1
  /// <reference types="react" />
2
2
  declare const FormInput: import("react").ComponentType<import("utility-types").Subtract<Omit<import("../input/index").InputProps, "forwardRef"> & import("react").RefAttributes<HTMLInputElement>, import("./interface").CommonexcludeType> & import("./interface").CommonFieldProps>;
3
- declare const FormInputNumber: import("react").ComponentType<import("utility-types").Subtract<any, import("./interface").CommonexcludeType> & import("./interface").CommonFieldProps>;
3
+ declare const FormInputNumber: import("react").ComponentType<import("utility-types").Subtract<import("../inputNumber/index").InputNumberProps & import("react").RefAttributes<HTMLInputElement>, import("./interface").CommonexcludeType> & import("./interface").CommonFieldProps>;
4
4
  declare const FormTextArea: import("react").ComponentType<import("utility-types").Subtract<Omit<import("../input/textarea").TextAreaProps, "forwardRef"> & import("react").RefAttributes<HTMLTextAreaElement>, import("./interface").CommonexcludeType> & import("./interface").CommonFieldProps>;
5
5
  declare const FormSelect: import("react").ComponentType<import("utility-types").Subtract<{
6
6
  autoFocus?: boolean;
@@ -60,7 +60,7 @@ declare const FormSelect: import("react").ComponentType<import("utility-types").
60
60
  onBlur?: (e: import("react").FocusEvent<Element, Element>) => void;
61
61
  onListScroll?: (e: import("react").UIEvent<HTMLDivElement, UIEvent>) => void;
62
62
  children?: import("react").ReactNode;
63
- } & Pick<import("../tooltip").TooltipProps, "stopPropagation" | "getPopupContainer" | "spacing" | "mouseEnterDelay" | "autoAdjustOverflow" | "mouseLeaveDelay" | "motion"> & import("react").RefAttributes<any> & import("./interface").CommonFieldProps, import("./interface").CommonexcludeType>> & import("./interface").SelectStatic;
63
+ } & Pick<import("../tooltip").TooltipProps, "getPopupContainer" | "stopPropagation" | "spacing" | "mouseEnterDelay" | "autoAdjustOverflow" | "mouseLeaveDelay" | "motion"> & import("react").RefAttributes<any> & import("./interface").CommonFieldProps, import("./interface").CommonexcludeType>> & import("./interface").SelectStatic;
64
64
  declare const FormCheckboxGroup: import("react").ComponentType<import("utility-types").Subtract<import("../checkbox/checkboxGroup").CheckboxGroupProps, import("./interface").CommonexcludeType> & import("./interface").CommonFieldProps>;
65
65
  declare const FormCheckbox: import("react").ComponentType<import("utility-types").Subtract<import("./interface").CommonFieldProps, import("./interface").RadioCheckboxExcludeProps> & import("../checkbox/checkbox").CheckboxProps & import("./interface").RCIncludeType>;
66
66
  declare const FormRadioGroup: import("react").ComponentType<import("utility-types").Subtract<import("../radio/radioGroup").RadioGroupProps, import("./interface").CommonexcludeType> & import("./interface").CommonFieldProps>;
@@ -7,7 +7,6 @@ import { strings } from '@douyinfe/semi-foundation/lib/es/inputNumber/constants'
7
7
  import '@douyinfe/semi-foundation/lib/es/inputNumber/inputNumber.css';
8
8
  import { ArrayElement } from '../_base/base';
9
9
  export interface InputNumberProps extends InputProps {
10
- [x: string]: any;
11
10
  autofocus?: boolean;
12
11
  className?: string;
13
12
  defaultValue?: number | string;
@@ -104,6 +103,6 @@ declare class InputNumber extends BaseComponent<InputNumberProps, InputNumberSta
104
103
  renderSuffix: () => React.ReactNode;
105
104
  render(): JSX.Element;
106
105
  }
107
- declare const _default: React.ForwardRefExoticComponent<Pick<InputNumberProps, keyof InputNumberProps> & React.RefAttributes<HTMLInputElement>>;
106
+ declare const _default: React.ForwardRefExoticComponent<InputNumberProps & React.RefAttributes<HTMLInputElement>>;
108
107
  export default _default;
109
108
  export { InputNumber };
@@ -8,7 +8,7 @@ export interface PlainTab {
8
8
  icon?: ReactNode;
9
9
  itemKey: string;
10
10
  tab?: ReactNode;
11
- closable: boolean;
11
+ closable?: boolean;
12
12
  }
13
13
  export interface TabsProps {
14
14
  activeKey?: string;
@@ -37,7 +37,7 @@ export default class Title extends PureComponent<TitleProps> {
37
37
  underline: PropTypes.Requireable<boolean>;
38
38
  strong: PropTypes.Requireable<boolean>;
39
39
  type: PropTypes.Requireable<"warning" | "success" | "primary" | "tertiary" | "secondary" | "danger" | "quaternary">;
40
- heading: PropTypes.Requireable<1 | 2 | 3 | 4 | 5 | 6>;
40
+ heading: PropTypes.Requireable<4 | 2 | 1 | 3 | 5 | 6>;
41
41
  style: PropTypes.Requireable<object>;
42
42
  className: PropTypes.Requireable<string>;
43
43
  component: PropTypes.Requireable<string>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@douyinfe/semi-ui",
3
- "version": "2.1.0-next.2",
3
+ "version": "2.1.0-next.3",
4
4
  "description": "",
5
5
  "main": "lib/cjs/index.js",
6
6
  "module": "lib/es/index.js",
@@ -19,10 +19,10 @@
19
19
  },
20
20
  "dependencies": {
21
21
  "@babel/runtime-corejs3": "^7.15.4",
22
- "@douyinfe/semi-animation-react": "2.1.0-next.1",
23
- "@douyinfe/semi-foundation": "2.1.0-next.2",
24
- "@douyinfe/semi-icons": "2.1.0-next.1",
25
- "@douyinfe/semi-illustrations": "2.1.0-next.1",
22
+ "@douyinfe/semi-animation-react": "2.1.0-next.3",
23
+ "@douyinfe/semi-foundation": "2.1.0-next.3",
24
+ "@douyinfe/semi-icons": "2.1.0-next.3",
25
+ "@douyinfe/semi-illustrations": "2.1.0-next.3",
26
26
  "@douyinfe/semi-theme-default": "2.1.1",
27
27
  "@types/react-window": "^1.8.2",
28
28
  "async-validator": "^3.5.0",
@@ -65,13 +65,13 @@
65
65
  ],
66
66
  "author": "",
67
67
  "license": "MIT",
68
- "gitHead": "512cc7428375c2e219875b94bade171f87a24d67",
68
+ "gitHead": "50aa044c27ed5a02ab046324eb5a1b7bc39ef945",
69
69
  "devDependencies": {
70
70
  "@babel/plugin-proposal-decorators": "^7.15.8",
71
71
  "@babel/plugin-transform-runtime": "^7.15.8",
72
72
  "@babel/preset-env": "^7.15.8",
73
73
  "@babel/preset-react": "^7.14.5",
74
- "@douyinfe/semi-scss-compile": "2.1.0-next.1",
74
+ "@douyinfe/semi-scss-compile": "2.1.0-next.3",
75
75
  "@storybook/addon-knobs": "^6.3.1",
76
76
  "@types/lodash": "^4.14.176",
77
77
  "babel-loader": "^8.2.2",