@douyinfe/semi-ui 2.38.3-alpha.0 → 2.38.3-alpha.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.
@@ -31,7 +31,7 @@ export default class DateInput extends BaseComponent<DateInputProps, {}> {
31
31
  onFocus: PropTypes.Requireable<(...args: any[]) => any>;
32
32
  value: PropTypes.Requireable<any[]>;
33
33
  disabled: PropTypes.Requireable<boolean>;
34
- type: PropTypes.Requireable<"date" | "month" | "dateTime" | "dateRange" | "year" | "monthRange" | "dateTimeRange">;
34
+ type: PropTypes.Requireable<"dateTime" | "date" | "month" | "dateRange" | "year" | "monthRange" | "dateTimeRange">;
35
35
  showClear: PropTypes.Requireable<boolean>;
36
36
  format: PropTypes.Requireable<string>;
37
37
  inputStyle: PropTypes.Requireable<object>;
@@ -58,7 +58,7 @@ export default class DatePicker extends BaseComponent<DatePickerProps, DatePicke
58
58
  'aria-labelledby': PropTypes.Requireable<string>;
59
59
  'aria-required': PropTypes.Requireable<boolean>;
60
60
  borderless: PropTypes.Requireable<boolean>;
61
- type: PropTypes.Requireable<"date" | "month" | "dateTime" | "dateRange" | "year" | "monthRange" | "dateTimeRange">;
61
+ type: PropTypes.Requireable<"dateTime" | "date" | "month" | "dateRange" | "year" | "monthRange" | "dateTimeRange">;
62
62
  size: PropTypes.Requireable<"default" | "small" | "large">;
63
63
  clearIcon: PropTypes.Requireable<PropTypes.ReactNodeLike>;
64
64
  density: PropTypes.Requireable<"default" | "compact">;
@@ -19,7 +19,7 @@ export interface MonthsGridProps extends MonthsGridFoundationProps, BaseProps {
19
19
  export type MonthsGridState = MonthsGridFoundationState;
20
20
  export default class MonthsGrid extends BaseComponent<MonthsGridProps, MonthsGridState> {
21
21
  static propTypes: {
22
- type: PropTypes.Requireable<"date" | "month" | "dateTime" | "dateRange" | "year" | "monthRange" | "dateTimeRange">;
22
+ type: PropTypes.Requireable<"dateTime" | "date" | "month" | "dateRange" | "year" | "monthRange" | "dateTimeRange">;
23
23
  defaultValue: PropTypes.Requireable<any[]>;
24
24
  defaultPickerValue: PropTypes.Requireable<NonNullable<string | number | object>>;
25
25
  multiple: PropTypes.Requireable<boolean>;
@@ -24,7 +24,7 @@ declare class YearAndMonth extends BaseComponent<YearAndMonthProps, YearAndMonth
24
24
  presetPosition: PropTypes.Requireable<"left" | "top" | "right" | "bottom">;
25
25
  renderQuickControls: PropTypes.Requireable<PropTypes.ReactNodeLike>;
26
26
  renderDateInput: PropTypes.Requireable<PropTypes.ReactNodeLike>;
27
- type: PropTypes.Requireable<"date" | "month" | "dateTime" | "dateRange" | "year" | "monthRange" | "dateTimeRange">;
27
+ type: PropTypes.Requireable<"dateTime" | "date" | "month" | "dateRange" | "year" | "monthRange" | "dateTimeRange">;
28
28
  startYear: PropTypes.Requireable<number>;
29
29
  endYear: PropTypes.Requireable<number>;
30
30
  };
@@ -44,7 +44,17 @@ class DropdownItem extends _baseComponent.default {
44
44
  const events = {};
45
45
  if (!disabled) {
46
46
  ['onClick', 'onMouseEnter', 'onMouseLeave', 'onContextMenu'].forEach(eventName => {
47
- events[eventName] = this.props[eventName];
47
+ const isInAnotherDropdown = this.context.level !== 1;
48
+ if (isInAnotherDropdown && eventName === "onClick") {
49
+ events["onMouseDown"] = e => {
50
+ var _a, _b;
51
+ if (e.button === 0) {
52
+ (_b = (_a = this.props)[eventName]) === null || _b === void 0 ? void 0 : _b.call(_a, e);
53
+ }
54
+ };
55
+ } else {
56
+ events[eventName] = this.props[eventName];
57
+ }
48
58
  });
49
59
  }
50
60
  let tick = null;
@@ -138,7 +138,7 @@ declare class Form<Values extends Record<string, any> = any> extends BaseCompone
138
138
  preventScroll?: boolean;
139
139
  showRestTagsPopover?: boolean;
140
140
  restTagsPopoverProps?: import("../popover").PopoverProps;
141
- } & Pick<import("../tooltip").TooltipProps, "getPopupContainer" | "stopPropagation" | "motion" | "spacing" | "mouseEnterDelay" | "autoAdjustOverflow" | "mouseLeaveDelay"> & React.RefAttributes<any> & import("./interface").CommonFieldProps, import("./interface").CommonexcludeType>> & import("./interface").SelectStatic;
141
+ } & Pick<import("../tooltip").TooltipProps, "stopPropagation" | "motion" | "getPopupContainer" | "spacing" | "mouseEnterDelay" | "autoAdjustOverflow" | "mouseLeaveDelay"> & React.RefAttributes<any> & import("./interface").CommonFieldProps, import("./interface").CommonexcludeType>> & import("./interface").SelectStatic;
142
142
  static Checkbox: React.ComponentType<import("utility-types").Subtract<import("./interface").CommonFieldProps, import("./interface").RadioCheckboxExcludeProps> & import("../checkbox").CheckboxProps & import("./interface").RCIncludeType>;
143
143
  static CheckboxGroup: React.ComponentType<import("utility-types").Subtract<import("../checkbox").CheckboxGroupProps, import("./interface").CommonexcludeType> & import("./interface").CommonFieldProps & React.RefAttributes<any>>;
144
144
  static Radio: React.ComponentType<import("utility-types").Subtract<import("./interface").CommonFieldProps, import("./interface").RadioCheckboxExcludeProps> & import("../radio").RadioProps & import("./interface").RCIncludeType>;
@@ -86,7 +86,7 @@ declare const FormSelect: import("react").ComponentType<import("utility-types").
86
86
  preventScroll?: boolean;
87
87
  showRestTagsPopover?: boolean;
88
88
  restTagsPopoverProps?: import("../popover").PopoverProps;
89
- } & Pick<import("../tooltip").TooltipProps, "getPopupContainer" | "stopPropagation" | "motion" | "spacing" | "mouseEnterDelay" | "autoAdjustOverflow" | "mouseLeaveDelay"> & import("react").RefAttributes<any> & import("./interface").CommonFieldProps, import("./interface").CommonexcludeType>> & import("./interface").SelectStatic;
89
+ } & Pick<import("../tooltip").TooltipProps, "stopPropagation" | "motion" | "getPopupContainer" | "spacing" | "mouseEnterDelay" | "autoAdjustOverflow" | "mouseLeaveDelay"> & import("react").RefAttributes<any> & import("./interface").CommonFieldProps, import("./interface").CommonexcludeType>> & import("./interface").SelectStatic;
90
90
  declare const FormCheckboxGroup: import("react").ComponentType<import("utility-types").Subtract<import("../checkbox/checkboxGroup").CheckboxGroupProps, import("./interface").CommonexcludeType> & import("./interface").CommonFieldProps & import("react").RefAttributes<any>>;
91
91
  declare const FormCheckbox: import("react").ComponentType<import("utility-types").Subtract<import("./interface").CommonFieldProps, import("./interface").RadioCheckboxExcludeProps> & import("../checkbox/checkbox").CheckboxProps & import("./interface").RCIncludeType>;
92
92
  declare const FormRadioGroup: import("react").ComponentType<import("utility-types").Subtract<import("../radio/radioGroup").RadioGroupProps, import("./interface").CommonexcludeType> & import("./interface").CommonFieldProps & import("react").RefAttributes<any>>;
@@ -140,22 +140,23 @@ export declare function withWarning(props: ModalReactProps): {
140
140
  type: "warning";
141
141
  };
142
142
  export declare function withError(props: ModalReactProps): {
143
+ title?: React.ReactNode;
143
144
  children?: React.ReactNode;
145
+ size?: import("@douyinfe/semi-foundation/lib/cjs/modal/modalFoundation").Size;
144
146
  style?: React.CSSProperties;
145
147
  className?: string;
148
+ motion?: boolean;
146
149
  getPopupContainer?: () => HTMLElement;
147
150
  footer?: React.ReactNode;
148
151
  header?: React.ReactNode;
149
- title?: React.ReactNode;
150
152
  direction?: any;
151
- size?: import("@douyinfe/semi-foundation/lib/cjs/modal/modalFoundation").Size;
152
- motion?: boolean;
153
153
  width?: string | number;
154
154
  height?: string | number;
155
155
  mask?: boolean;
156
156
  visible?: boolean;
157
157
  content?: React.ReactNode;
158
158
  icon: string | number | boolean | React.ReactFragment | JSX.Element;
159
+ onCancel?: (e: React.MouseEvent<Element, MouseEvent>) => void | Promise<any>;
159
160
  zIndex?: number;
160
161
  closeOnEsc?: boolean;
161
162
  preventScroll?: boolean;
@@ -163,7 +164,6 @@ export declare function withError(props: ModalReactProps): {
163
164
  keepDOM?: boolean;
164
165
  cancelText?: string;
165
166
  okText?: string;
166
- onCancel?: (e: React.MouseEvent<Element, MouseEvent>) => void | Promise<any>;
167
167
  closeIcon?: React.ReactNode;
168
168
  bodyStyle?: React.CSSProperties;
169
169
  closable?: boolean;
@@ -201,22 +201,32 @@ export declare function withError(props: ModalReactProps): {
201
201
  onMouseEnter?: React.MouseEventHandler<HTMLButtonElement>;
202
202
  onMouseLeave?: React.MouseEventHandler<HTMLButtonElement>;
203
203
  'aria-label'?: string;
204
- value?: string | number | readonly string[];
205
- form?: string;
206
- slot?: string;
207
204
  title?: string;
208
205
  name?: string;
206
+ value?: string | number | readonly string[];
209
207
  onAnimationStart?: React.AnimationEventHandler<HTMLButtonElement>;
210
208
  onAnimationEnd?: React.AnimationEventHandler<HTMLButtonElement>;
209
+ form?: string;
210
+ slot?: string;
211
211
  hidden?: boolean;
212
212
  color?: string;
213
213
  content?: string;
214
+ onChange?: React.FormEventHandler<HTMLButtonElement>;
215
+ defaultChecked?: boolean;
214
216
  defaultValue?: string | number | readonly string[];
217
+ suppressContentEditableWarning?: boolean;
218
+ suppressHydrationWarning?: boolean;
215
219
  accessKey?: string;
220
+ autoFocus?: boolean;
221
+ formAction?: string;
222
+ formEncType?: string;
223
+ formMethod?: string;
224
+ formNoValidate?: boolean;
225
+ formTarget?: string;
216
226
  dir?: string;
217
227
  draggable?: boolean | "false" | "true";
218
228
  lang?: string;
219
- translate?: "yes" | "no";
229
+ translate?: "no" | "yes";
220
230
  prefix?: string;
221
231
  role?: React.AriaRole;
222
232
  contentEditable?: "inherit" | (boolean | "false" | "true");
@@ -232,10 +242,6 @@ export declare function withError(props: ModalReactProps): {
232
242
  'aria-haspopup'?: boolean | "dialog" | "menu" | "listbox" | "grid" | "false" | "true" | "tree";
233
243
  'aria-controls'?: string;
234
244
  'aria-describedby'?: string;
235
- defaultChecked?: boolean;
236
- suppressContentEditableWarning?: boolean;
237
- suppressHydrationWarning?: boolean;
238
- autoFocus?: boolean;
239
245
  contextMenu?: string;
240
246
  placeholder?: string;
241
247
  spellCheck?: boolean | "false" | "true";
@@ -321,7 +327,6 @@ export declare function withError(props: ModalReactProps): {
321
327
  onCompositionUpdateCapture?: React.CompositionEventHandler<HTMLButtonElement>;
322
328
  onFocusCapture?: React.FocusEventHandler<HTMLButtonElement>;
323
329
  onBlurCapture?: React.FocusEventHandler<HTMLButtonElement>;
324
- onChange?: React.FormEventHandler<HTMLButtonElement>;
325
330
  onChangeCapture?: React.FormEventHandler<HTMLButtonElement>;
326
331
  onBeforeInput?: React.FormEventHandler<HTMLButtonElement>;
327
332
  onBeforeInputCapture?: React.FormEventHandler<HTMLButtonElement>;
@@ -458,11 +463,6 @@ export declare function withError(props: ModalReactProps): {
458
463
  onAnimationIterationCapture?: React.AnimationEventHandler<HTMLButtonElement>;
459
464
  onTransitionEnd?: React.TransitionEventHandler<HTMLButtonElement>;
460
465
  onTransitionEndCapture?: React.TransitionEventHandler<HTMLButtonElement>;
461
- formAction?: string;
462
- formEncType?: string;
463
- formMethod?: string;
464
- formNoValidate?: boolean;
465
- formTarget?: string;
466
466
  };
467
467
  };
468
468
  export declare function withConfirm(props: ModalReactProps): {
@@ -112,7 +112,8 @@ class Option extends _react.PureComponent {
112
112
  value,
113
113
  label,
114
114
  children
115
- }, rest), e)
115
+ }, rest), e),
116
+ className
116
117
  }, rest));
117
118
  }
118
119
  const config = {
@@ -39,7 +39,7 @@ export default class Title extends PureComponent<TitleProps> {
39
39
  underline: PropTypes.Requireable<boolean>;
40
40
  strong: PropTypes.Requireable<boolean>;
41
41
  type: PropTypes.Requireable<"warning" | "success" | "primary" | "tertiary" | "secondary" | "danger" | "quaternary">;
42
- heading: PropTypes.Requireable<4 | 2 | 1 | 3 | 5 | 6>;
42
+ heading: PropTypes.Requireable<1 | 2 | 3 | 4 | 5 | 6>;
43
43
  style: PropTypes.Requireable<object>;
44
44
  className: PropTypes.Requireable<string>;
45
45
  component: PropTypes.Requireable<string>;
@@ -31,7 +31,7 @@ export default class DateInput extends BaseComponent<DateInputProps, {}> {
31
31
  onFocus: PropTypes.Requireable<(...args: any[]) => any>;
32
32
  value: PropTypes.Requireable<any[]>;
33
33
  disabled: PropTypes.Requireable<boolean>;
34
- type: PropTypes.Requireable<"date" | "month" | "dateTime" | "dateRange" | "year" | "monthRange" | "dateTimeRange">;
34
+ type: PropTypes.Requireable<"dateTime" | "date" | "month" | "dateRange" | "year" | "monthRange" | "dateTimeRange">;
35
35
  showClear: PropTypes.Requireable<boolean>;
36
36
  format: PropTypes.Requireable<string>;
37
37
  inputStyle: PropTypes.Requireable<object>;
@@ -58,7 +58,7 @@ export default class DatePicker extends BaseComponent<DatePickerProps, DatePicke
58
58
  'aria-labelledby': PropTypes.Requireable<string>;
59
59
  'aria-required': PropTypes.Requireable<boolean>;
60
60
  borderless: PropTypes.Requireable<boolean>;
61
- type: PropTypes.Requireable<"date" | "month" | "dateTime" | "dateRange" | "year" | "monthRange" | "dateTimeRange">;
61
+ type: PropTypes.Requireable<"dateTime" | "date" | "month" | "dateRange" | "year" | "monthRange" | "dateTimeRange">;
62
62
  size: PropTypes.Requireable<"default" | "small" | "large">;
63
63
  clearIcon: PropTypes.Requireable<PropTypes.ReactNodeLike>;
64
64
  density: PropTypes.Requireable<"default" | "compact">;
@@ -19,7 +19,7 @@ export interface MonthsGridProps extends MonthsGridFoundationProps, BaseProps {
19
19
  export type MonthsGridState = MonthsGridFoundationState;
20
20
  export default class MonthsGrid extends BaseComponent<MonthsGridProps, MonthsGridState> {
21
21
  static propTypes: {
22
- type: PropTypes.Requireable<"date" | "month" | "dateTime" | "dateRange" | "year" | "monthRange" | "dateTimeRange">;
22
+ type: PropTypes.Requireable<"dateTime" | "date" | "month" | "dateRange" | "year" | "monthRange" | "dateTimeRange">;
23
23
  defaultValue: PropTypes.Requireable<any[]>;
24
24
  defaultPickerValue: PropTypes.Requireable<NonNullable<string | number | object>>;
25
25
  multiple: PropTypes.Requireable<boolean>;
@@ -24,7 +24,7 @@ declare class YearAndMonth extends BaseComponent<YearAndMonthProps, YearAndMonth
24
24
  presetPosition: PropTypes.Requireable<"left" | "top" | "right" | "bottom">;
25
25
  renderQuickControls: PropTypes.Requireable<PropTypes.ReactNodeLike>;
26
26
  renderDateInput: PropTypes.Requireable<PropTypes.ReactNodeLike>;
27
- type: PropTypes.Requireable<"date" | "month" | "dateTime" | "dateRange" | "year" | "monthRange" | "dateTimeRange">;
27
+ type: PropTypes.Requireable<"dateTime" | "date" | "month" | "dateRange" | "year" | "monthRange" | "dateTimeRange">;
28
28
  startYear: PropTypes.Requireable<number>;
29
29
  endYear: PropTypes.Requireable<number>;
30
30
  };
@@ -37,7 +37,17 @@ class DropdownItem extends BaseComponent {
37
37
  const events = {};
38
38
  if (!disabled) {
39
39
  ['onClick', 'onMouseEnter', 'onMouseLeave', 'onContextMenu'].forEach(eventName => {
40
- events[eventName] = this.props[eventName];
40
+ const isInAnotherDropdown = this.context.level !== 1;
41
+ if (isInAnotherDropdown && eventName === "onClick") {
42
+ events["onMouseDown"] = e => {
43
+ var _a, _b;
44
+ if (e.button === 0) {
45
+ (_b = (_a = this.props)[eventName]) === null || _b === void 0 ? void 0 : _b.call(_a, e);
46
+ }
47
+ };
48
+ } else {
49
+ events[eventName] = this.props[eventName];
50
+ }
41
51
  });
42
52
  }
43
53
  let tick = null;
@@ -138,7 +138,7 @@ declare class Form<Values extends Record<string, any> = any> extends BaseCompone
138
138
  preventScroll?: boolean;
139
139
  showRestTagsPopover?: boolean;
140
140
  restTagsPopoverProps?: import("../popover").PopoverProps;
141
- } & Pick<import("../tooltip").TooltipProps, "getPopupContainer" | "stopPropagation" | "motion" | "spacing" | "mouseEnterDelay" | "autoAdjustOverflow" | "mouseLeaveDelay"> & React.RefAttributes<any> & import("./interface").CommonFieldProps, import("./interface").CommonexcludeType>> & import("./interface").SelectStatic;
141
+ } & Pick<import("../tooltip").TooltipProps, "stopPropagation" | "motion" | "getPopupContainer" | "spacing" | "mouseEnterDelay" | "autoAdjustOverflow" | "mouseLeaveDelay"> & React.RefAttributes<any> & import("./interface").CommonFieldProps, import("./interface").CommonexcludeType>> & import("./interface").SelectStatic;
142
142
  static Checkbox: React.ComponentType<import("utility-types").Subtract<import("./interface").CommonFieldProps, import("./interface").RadioCheckboxExcludeProps> & import("../checkbox").CheckboxProps & import("./interface").RCIncludeType>;
143
143
  static CheckboxGroup: React.ComponentType<import("utility-types").Subtract<import("../checkbox").CheckboxGroupProps, import("./interface").CommonexcludeType> & import("./interface").CommonFieldProps & React.RefAttributes<any>>;
144
144
  static Radio: React.ComponentType<import("utility-types").Subtract<import("./interface").CommonFieldProps, import("./interface").RadioCheckboxExcludeProps> & import("../radio").RadioProps & import("./interface").RCIncludeType>;
@@ -86,7 +86,7 @@ declare const FormSelect: import("react").ComponentType<import("utility-types").
86
86
  preventScroll?: boolean;
87
87
  showRestTagsPopover?: boolean;
88
88
  restTagsPopoverProps?: import("../popover").PopoverProps;
89
- } & Pick<import("../tooltip").TooltipProps, "getPopupContainer" | "stopPropagation" | "motion" | "spacing" | "mouseEnterDelay" | "autoAdjustOverflow" | "mouseLeaveDelay"> & import("react").RefAttributes<any> & import("./interface").CommonFieldProps, import("./interface").CommonexcludeType>> & import("./interface").SelectStatic;
89
+ } & Pick<import("../tooltip").TooltipProps, "stopPropagation" | "motion" | "getPopupContainer" | "spacing" | "mouseEnterDelay" | "autoAdjustOverflow" | "mouseLeaveDelay"> & import("react").RefAttributes<any> & import("./interface").CommonFieldProps, import("./interface").CommonexcludeType>> & import("./interface").SelectStatic;
90
90
  declare const FormCheckboxGroup: import("react").ComponentType<import("utility-types").Subtract<import("../checkbox/checkboxGroup").CheckboxGroupProps, import("./interface").CommonexcludeType> & import("./interface").CommonFieldProps & import("react").RefAttributes<any>>;
91
91
  declare const FormCheckbox: import("react").ComponentType<import("utility-types").Subtract<import("./interface").CommonFieldProps, import("./interface").RadioCheckboxExcludeProps> & import("../checkbox/checkbox").CheckboxProps & import("./interface").RCIncludeType>;
92
92
  declare const FormRadioGroup: import("react").ComponentType<import("utility-types").Subtract<import("../radio/radioGroup").RadioGroupProps, import("./interface").CommonexcludeType> & import("./interface").CommonFieldProps & import("react").RefAttributes<any>>;
@@ -140,22 +140,23 @@ export declare function withWarning(props: ModalReactProps): {
140
140
  type: "warning";
141
141
  };
142
142
  export declare function withError(props: ModalReactProps): {
143
+ title?: React.ReactNode;
143
144
  children?: React.ReactNode;
145
+ size?: import("@douyinfe/semi-foundation/lib/es/modal/modalFoundation").Size;
144
146
  style?: React.CSSProperties;
145
147
  className?: string;
148
+ motion?: boolean;
146
149
  getPopupContainer?: () => HTMLElement;
147
150
  footer?: React.ReactNode;
148
151
  header?: React.ReactNode;
149
- title?: React.ReactNode;
150
152
  direction?: any;
151
- size?: import("@douyinfe/semi-foundation/lib/es/modal/modalFoundation").Size;
152
- motion?: boolean;
153
153
  width?: string | number;
154
154
  height?: string | number;
155
155
  mask?: boolean;
156
156
  visible?: boolean;
157
157
  content?: React.ReactNode;
158
158
  icon: string | number | boolean | React.ReactFragment | JSX.Element;
159
+ onCancel?: (e: React.MouseEvent<Element, MouseEvent>) => void | Promise<any>;
159
160
  zIndex?: number;
160
161
  closeOnEsc?: boolean;
161
162
  preventScroll?: boolean;
@@ -163,7 +164,6 @@ export declare function withError(props: ModalReactProps): {
163
164
  keepDOM?: boolean;
164
165
  cancelText?: string;
165
166
  okText?: string;
166
- onCancel?: (e: React.MouseEvent<Element, MouseEvent>) => void | Promise<any>;
167
167
  closeIcon?: React.ReactNode;
168
168
  bodyStyle?: React.CSSProperties;
169
169
  closable?: boolean;
@@ -201,22 +201,32 @@ export declare function withError(props: ModalReactProps): {
201
201
  onMouseEnter?: React.MouseEventHandler<HTMLButtonElement>;
202
202
  onMouseLeave?: React.MouseEventHandler<HTMLButtonElement>;
203
203
  'aria-label'?: string;
204
- value?: string | number | readonly string[];
205
- form?: string;
206
- slot?: string;
207
204
  title?: string;
208
205
  name?: string;
206
+ value?: string | number | readonly string[];
209
207
  onAnimationStart?: React.AnimationEventHandler<HTMLButtonElement>;
210
208
  onAnimationEnd?: React.AnimationEventHandler<HTMLButtonElement>;
209
+ form?: string;
210
+ slot?: string;
211
211
  hidden?: boolean;
212
212
  color?: string;
213
213
  content?: string;
214
+ onChange?: React.FormEventHandler<HTMLButtonElement>;
215
+ defaultChecked?: boolean;
214
216
  defaultValue?: string | number | readonly string[];
217
+ suppressContentEditableWarning?: boolean;
218
+ suppressHydrationWarning?: boolean;
215
219
  accessKey?: string;
220
+ autoFocus?: boolean;
221
+ formAction?: string;
222
+ formEncType?: string;
223
+ formMethod?: string;
224
+ formNoValidate?: boolean;
225
+ formTarget?: string;
216
226
  dir?: string;
217
227
  draggable?: boolean | "false" | "true";
218
228
  lang?: string;
219
- translate?: "yes" | "no";
229
+ translate?: "no" | "yes";
220
230
  prefix?: string;
221
231
  role?: React.AriaRole;
222
232
  contentEditable?: "inherit" | (boolean | "false" | "true");
@@ -232,10 +242,6 @@ export declare function withError(props: ModalReactProps): {
232
242
  'aria-haspopup'?: boolean | "dialog" | "menu" | "listbox" | "grid" | "false" | "true" | "tree";
233
243
  'aria-controls'?: string;
234
244
  'aria-describedby'?: string;
235
- defaultChecked?: boolean;
236
- suppressContentEditableWarning?: boolean;
237
- suppressHydrationWarning?: boolean;
238
- autoFocus?: boolean;
239
245
  contextMenu?: string;
240
246
  placeholder?: string;
241
247
  spellCheck?: boolean | "false" | "true";
@@ -321,7 +327,6 @@ export declare function withError(props: ModalReactProps): {
321
327
  onCompositionUpdateCapture?: React.CompositionEventHandler<HTMLButtonElement>;
322
328
  onFocusCapture?: React.FocusEventHandler<HTMLButtonElement>;
323
329
  onBlurCapture?: React.FocusEventHandler<HTMLButtonElement>;
324
- onChange?: React.FormEventHandler<HTMLButtonElement>;
325
330
  onChangeCapture?: React.FormEventHandler<HTMLButtonElement>;
326
331
  onBeforeInput?: React.FormEventHandler<HTMLButtonElement>;
327
332
  onBeforeInputCapture?: React.FormEventHandler<HTMLButtonElement>;
@@ -458,11 +463,6 @@ export declare function withError(props: ModalReactProps): {
458
463
  onAnimationIterationCapture?: React.AnimationEventHandler<HTMLButtonElement>;
459
464
  onTransitionEnd?: React.TransitionEventHandler<HTMLButtonElement>;
460
465
  onTransitionEndCapture?: React.TransitionEventHandler<HTMLButtonElement>;
461
- formAction?: string;
462
- formEncType?: string;
463
- formMethod?: string;
464
- formNoValidate?: boolean;
465
- formTarget?: string;
466
466
  };
467
467
  };
468
468
  export declare function withConfirm(props: ModalReactProps): {
@@ -102,7 +102,8 @@ class Option extends PureComponent {
102
102
  value,
103
103
  label,
104
104
  children
105
- }, rest), e)
105
+ }, rest), e),
106
+ className
106
107
  }, rest));
107
108
  }
108
109
  const config = {
@@ -39,7 +39,7 @@ export default class Title extends PureComponent<TitleProps> {
39
39
  underline: PropTypes.Requireable<boolean>;
40
40
  strong: PropTypes.Requireable<boolean>;
41
41
  type: PropTypes.Requireable<"warning" | "success" | "primary" | "tertiary" | "secondary" | "danger" | "quaternary">;
42
- heading: PropTypes.Requireable<4 | 2 | 1 | 3 | 5 | 6>;
42
+ heading: PropTypes.Requireable<1 | 2 | 3 | 4 | 5 | 6>;
43
43
  style: PropTypes.Requireable<object>;
44
44
  className: PropTypes.Requireable<string>;
45
45
  component: PropTypes.Requireable<string>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@douyinfe/semi-ui",
3
- "version": "2.38.3-alpha.0",
3
+ "version": "2.38.3-alpha.2",
4
4
  "description": "",
5
5
  "main": "lib/cjs/index.js",
6
6
  "module": "lib/es/index.js",
@@ -17,12 +17,12 @@
17
17
  "lib/*"
18
18
  ],
19
19
  "dependencies": {
20
- "@douyinfe/semi-animation": "2.38.3-alpha.0",
21
- "@douyinfe/semi-animation-react": "2.38.3-alpha.0",
22
- "@douyinfe/semi-foundation": "2.38.3-alpha.0",
23
- "@douyinfe/semi-icons": "2.38.3-alpha.0",
24
- "@douyinfe/semi-illustrations": "2.38.3-alpha.0",
25
- "@douyinfe/semi-theme-default": "2.38.3-alpha.0",
20
+ "@douyinfe/semi-animation": "2.38.3-alpha.2",
21
+ "@douyinfe/semi-animation-react": "2.38.3-alpha.2",
22
+ "@douyinfe/semi-foundation": "2.38.3-alpha.2",
23
+ "@douyinfe/semi-icons": "2.38.3-alpha.2",
24
+ "@douyinfe/semi-illustrations": "2.38.3-alpha.2",
25
+ "@douyinfe/semi-theme-default": "2.38.3-alpha.2",
26
26
  "async-validator": "^3.5.0",
27
27
  "classnames": "^2.2.6",
28
28
  "copy-text-to-clipboard": "^2.1.1",
@@ -69,7 +69,7 @@
69
69
  ],
70
70
  "author": "",
71
71
  "license": "MIT",
72
- "gitHead": "bc27ec006245606dd4fefaec5eb81217c1063d06",
72
+ "gitHead": "2b95b13c9f2ddd1205647aef6f25ce70ea6e17a2",
73
73
  "devDependencies": {
74
74
  "@babel/plugin-proposal-decorators": "^7.15.8",
75
75
  "@babel/plugin-transform-runtime": "^7.15.8",