@douyinfe/semi-ui 2.0.9-alpha.2 → 2.0.9-alpha.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.
@@ -47,12 +47,8 @@ class Collapse extends BaseComponent {
47
47
  }
48
48
 
49
49
  get adapter() {
50
- var _this = this;
51
-
52
50
  return _Object$assign(_Object$assign({}, super.adapter), {
53
- handleChange: function () {
54
- return _this.props.onChange(...arguments);
55
- },
51
+ handleChange: (activeKey, e) => this.props.onChange(activeKey, e),
56
52
  addActiveKey: activeSet => this.setState({
57
53
  activeSet
58
54
  })
@@ -24,7 +24,7 @@ export default class DateInput extends BaseComponent<DateInputProps, {}> {
24
24
  onFocus: PropTypes.Requireable<(...args: any[]) => any>;
25
25
  value: PropTypes.Requireable<any[]>;
26
26
  disabled: PropTypes.Requireable<boolean>;
27
- type: PropTypes.Requireable<"dateTime" | "date" | "month" | "dateRange" | "year" | "dateTimeRange">;
27
+ type: PropTypes.Requireable<"date" | "dateTime" | "month" | "dateRange" | "year" | "dateTimeRange">;
28
28
  multiple: PropTypes.Requireable<boolean>;
29
29
  showClear: PropTypes.Requireable<boolean>;
30
30
  format: PropTypes.Requireable<string>;
@@ -29,7 +29,7 @@ export declare type DatePickerState = DatePickerFoundationState;
29
29
  export default class DatePicker extends BaseComponent<DatePickerProps, DatePickerState> {
30
30
  static contextType: React.Context<import("../configProvider/context").ContextValue>;
31
31
  static propTypes: {
32
- type: PropTypes.Requireable<"dateTime" | "date" | "month" | "dateRange" | "year" | "dateTimeRange">;
32
+ type: PropTypes.Requireable<"date" | "dateTime" | "month" | "dateRange" | "year" | "dateTimeRange">;
33
33
  size: PropTypes.Requireable<"default" | "small" | "large">;
34
34
  density: PropTypes.Requireable<"default" | "compact">;
35
35
  defaultValue: PropTypes.Requireable<string | number | object>;
@@ -17,7 +17,7 @@ export interface MonthsGridProps extends MonthsGridFoundationProps, BaseProps {
17
17
  export declare type MonthsGridState = MonthsGridFoundationState;
18
18
  export default class MonthsGrid extends BaseComponent<MonthsGridProps, MonthsGridState> {
19
19
  static propTypes: {
20
- type: PropTypes.Requireable<"dateTime" | "date" | "month" | "dateRange" | "year" | "dateTimeRange">;
20
+ type: PropTypes.Requireable<"date" | "dateTime" | "month" | "dateRange" | "year" | "dateTimeRange">;
21
21
  defaultValue: PropTypes.Requireable<string | number | object>;
22
22
  defaultPickerValue: PropTypes.Requireable<string | number | object>;
23
23
  multiple: PropTypes.Requireable<boolean>;
@@ -65,7 +65,7 @@ declare class Radio extends BaseComponent<RadioProps, RadioState> {
65
65
  prefixCls?: string;
66
66
  name?: string;
67
67
  onChange?: (e: RadioChangeEvent) => void;
68
- buttonSize?: "small" | "middle" | "large";
68
+ buttonSize?: "small" | "large" | "middle";
69
69
  isCardRadio?: boolean;
70
70
  isPureCardRadio?: boolean;
71
71
  };
@@ -40,7 +40,7 @@ declare class RadioGroup extends BaseComponent<RadioGroupProps, RadioGroupState>
40
40
  disabled: PropTypes.Requireable<boolean>;
41
41
  name: PropTypes.Requireable<string>;
42
42
  options: PropTypes.Requireable<any[]>;
43
- buttonSize: PropTypes.Requireable<"small" | "middle" | "large">;
43
+ buttonSize: PropTypes.Requireable<"small" | "large" | "middle">;
44
44
  type: PropTypes.Requireable<"default" | "button" | "card" | "pureCard">;
45
45
  value: PropTypes.Requireable<any>;
46
46
  onChange: PropTypes.Requireable<(...args: any[]) => any>;
@@ -277,7 +277,7 @@ declare class Table<RecordType extends Record<string, any>> extends BaseComponen
277
277
  * Combine pagination and table paging processing functions
278
278
  */
279
279
  mergePagination: (pagination: TablePaginationProps) => {
280
- position?: "top" | "bottom" | "both";
280
+ position?: "both" | "top" | "bottom";
281
281
  formatPageText?: import("./interface").FormatPageText;
282
282
  style?: React.CSSProperties;
283
283
  className?: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@douyinfe/semi-ui",
3
- "version": "2.0.9-alpha.2",
3
+ "version": "2.0.9-alpha.3",
4
4
  "description": "",
5
5
  "main": "lib/es/index.js",
6
6
  "module": "lib/es/index.js",
@@ -20,10 +20,11 @@
20
20
  "dependencies": {
21
21
  "@babel/runtime-corejs3": "^7.15.4",
22
22
  "@douyinfe/semi-animation-react": "2.0.8",
23
- "@douyinfe/semi-foundation": "2.0.9-alpha.2",
24
- "@douyinfe/semi-icons": "2.0.9-alpha.0",
23
+ "@douyinfe/semi-foundation": "2.0.9-alpha.3",
24
+ "@douyinfe/semi-icons": "2.0.9-alpha.3",
25
25
  "@douyinfe/semi-illustrations": "2.0.9-alpha.0",
26
26
  "@douyinfe/semi-theme-default": "2.0.8",
27
+ "@types/react-window": "^1.8.2",
27
28
  "async-validator": "^3.5.0",
28
29
  "classnames": "^2.2.6",
29
30
  "copy-text-to-clipboard": "^2.1.1",
@@ -64,7 +65,7 @@
64
65
  ],
65
66
  "author": "",
66
67
  "license": "MIT",
67
- "gitHead": "7a4c4799d28e62f8f278d53bfa08a21ee591dc5d",
68
+ "gitHead": "a2979aeef086df38907d49174e6071c20cab6ae9",
68
69
  "devDependencies": {
69
70
  "@babel/plugin-proposal-decorators": "^7.15.8",
70
71
  "@babel/plugin-transform-runtime": "^7.15.8",