@douyinfe/semi-ui 2.38.3-alpha.2-patch-3006 → 2.38.3-alpha.2-patch-modal
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.
- package/dist/umd/semi-ui.js +14 -10
- package/dist/umd/semi-ui.js.map +1 -1
- package/dist/umd/semi-ui.min.js +1 -1
- package/dist/umd/semi-ui.min.js.map +1 -1
- package/lib/cjs/anchor/index.d.ts +1 -1
- package/lib/cjs/autoComplete/index.d.ts +1 -1
- package/lib/cjs/button/Button.d.ts +1 -1
- package/lib/cjs/button/buttonGroup.d.ts +1 -1
- package/lib/cjs/button/index.d.ts +1 -1
- package/lib/cjs/carousel/CarouselIndicator.d.ts +1 -1
- package/lib/cjs/carousel/index.d.ts +1 -1
- package/lib/cjs/cascader/index.d.ts +1 -1
- package/lib/cjs/cascader/item.d.ts +1 -1
- package/lib/cjs/datePicker/dateInput.d.ts +1 -1
- package/lib/cjs/datePicker/datePicker.d.ts +2 -2
- package/lib/cjs/datePicker/monthsGrid.d.ts +1 -1
- package/lib/cjs/datePicker/yearAndMonth.d.ts +1 -1
- package/lib/cjs/form/baseForm.d.ts +1 -1
- package/lib/cjs/form/field.d.ts +1 -1
- package/lib/cjs/input/index.d.ts +1 -1
- package/lib/cjs/input/inputGroup.d.ts +1 -1
- package/lib/cjs/modal/Modal.js +9 -6
- package/lib/cjs/modal/ModalContent.js +5 -4
- package/lib/cjs/modal/confirm.d.ts +20 -20
- package/lib/cjs/popover/index.d.ts +1 -1
- package/lib/cjs/rating/index.d.ts +1 -1
- package/lib/cjs/rating/item.d.ts +1 -1
- package/lib/cjs/switch/index.d.ts +1 -1
- package/lib/cjs/table/Table.d.ts +2 -2
- package/lib/cjs/table/index.d.ts +1 -1
- package/lib/cjs/tagInput/index.d.ts +1 -1
- package/lib/cjs/timePicker/TimePicker.d.ts +1 -1
- package/lib/cjs/timePicker/index.d.ts +1 -1
- package/lib/cjs/tooltip/index.d.ts +1 -1
- package/lib/cjs/typography/title.d.ts +1 -1
- package/lib/es/anchor/index.d.ts +1 -1
- package/lib/es/autoComplete/index.d.ts +1 -1
- package/lib/es/button/Button.d.ts +1 -1
- package/lib/es/button/buttonGroup.d.ts +1 -1
- package/lib/es/button/index.d.ts +1 -1
- package/lib/es/carousel/CarouselIndicator.d.ts +1 -1
- package/lib/es/carousel/index.d.ts +1 -1
- package/lib/es/cascader/index.d.ts +1 -1
- package/lib/es/cascader/item.d.ts +1 -1
- package/lib/es/datePicker/dateInput.d.ts +1 -1
- package/lib/es/datePicker/datePicker.d.ts +2 -2
- package/lib/es/datePicker/monthsGrid.d.ts +1 -1
- package/lib/es/datePicker/yearAndMonth.d.ts +1 -1
- package/lib/es/form/baseForm.d.ts +1 -1
- package/lib/es/form/field.d.ts +1 -1
- package/lib/es/input/index.d.ts +1 -1
- package/lib/es/input/inputGroup.d.ts +1 -1
- package/lib/es/modal/Modal.js +9 -6
- package/lib/es/modal/ModalContent.js +5 -4
- package/lib/es/modal/confirm.d.ts +20 -20
- package/lib/es/popover/index.d.ts +1 -1
- package/lib/es/rating/index.d.ts +1 -1
- package/lib/es/rating/item.d.ts +1 -1
- package/lib/es/switch/index.d.ts +1 -1
- package/lib/es/table/Table.d.ts +2 -2
- package/lib/es/table/index.d.ts +1 -1
- package/lib/es/tagInput/index.d.ts +1 -1
- package/lib/es/timePicker/TimePicker.d.ts +1 -1
- package/lib/es/timePicker/index.d.ts +1 -1
- package/lib/es/tooltip/index.d.ts +1 -1
- package/lib/es/typography/title.d.ts +1 -1
- package/package.json +8 -8
|
@@ -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<"
|
|
34
|
+
type: PropTypes.Requireable<"date" | "month" | "dateTime" | "dateRange" | "year" | "monthRange" | "dateTimeRange">;
|
|
35
35
|
showClear: PropTypes.Requireable<boolean>;
|
|
36
36
|
format: PropTypes.Requireable<string>;
|
|
37
37
|
inputStyle: PropTypes.Requireable<object>;
|
|
@@ -58,8 +58,8 @@ 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<"
|
|
62
|
-
size: PropTypes.Requireable<"
|
|
61
|
+
type: PropTypes.Requireable<"date" | "month" | "dateTime" | "dateRange" | "year" | "monthRange" | "dateTimeRange">;
|
|
62
|
+
size: PropTypes.Requireable<"small" | "default" | "large">;
|
|
63
63
|
clearIcon: PropTypes.Requireable<PropTypes.ReactNodeLike>;
|
|
64
64
|
density: PropTypes.Requireable<"default" | "compact">;
|
|
65
65
|
defaultValue: PropTypes.Requireable<NonNullable<string | number | object>>;
|
|
@@ -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<"
|
|
22
|
+
type: PropTypes.Requireable<"date" | "month" | "dateTime" | "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<"
|
|
27
|
+
type: PropTypes.Requireable<"date" | "month" | "dateTime" | "dateRange" | "year" | "monthRange" | "dateTimeRange">;
|
|
28
28
|
startYear: PropTypes.Requireable<number>;
|
|
29
29
|
endYear: PropTypes.Requireable<number>;
|
|
30
30
|
};
|
|
@@ -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, "
|
|
141
|
+
} & Pick<import("../tooltip").TooltipProps, "motion" | "stopPropagation" | "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>;
|
package/lib/es/form/field.d.ts
CHANGED
|
@@ -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, "
|
|
89
|
+
} & Pick<import("../tooltip").TooltipProps, "motion" | "stopPropagation" | "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>>;
|
package/lib/es/input/index.d.ts
CHANGED
|
@@ -86,7 +86,7 @@ declare class Input extends BaseComponent<InputProps, InputState> {
|
|
|
86
86
|
showClear: PropTypes.Requireable<boolean>;
|
|
87
87
|
hideSuffix: PropTypes.Requireable<boolean>;
|
|
88
88
|
placeholder: PropTypes.Requireable<any>;
|
|
89
|
-
size: PropTypes.Requireable<"
|
|
89
|
+
size: PropTypes.Requireable<"small" | "default" | "large">;
|
|
90
90
|
className: PropTypes.Requireable<string>;
|
|
91
91
|
style: PropTypes.Requireable<object>;
|
|
92
92
|
validateStatus: PropTypes.Requireable<"default" | "error" | "warning" | "success">;
|
|
@@ -21,7 +21,7 @@ export default class inputGroup extends BaseComponent<InputGroupProps, InputGrou
|
|
|
21
21
|
static propTypes: {
|
|
22
22
|
className: PropTypes.Requireable<string>;
|
|
23
23
|
children: PropTypes.Requireable<PropTypes.ReactNodeLike>;
|
|
24
|
-
size: PropTypes.Requireable<"
|
|
24
|
+
size: PropTypes.Requireable<"small" | "default" | "large">;
|
|
25
25
|
style: PropTypes.Requireable<object>;
|
|
26
26
|
onBlur: PropTypes.Requireable<(...args: any[]) => any>;
|
|
27
27
|
onFocus: PropTypes.Requireable<(...args: any[]) => any>;
|
package/lib/es/modal/Modal.js
CHANGED
|
@@ -83,7 +83,8 @@ class Modal extends BaseComponent {
|
|
|
83
83
|
// return <ModalContent {...restProps} footer={renderFooter} onClose={this.handleCancel}/>;
|
|
84
84
|
// };
|
|
85
85
|
this.renderDialog = () => {
|
|
86
|
-
|
|
86
|
+
var _a;
|
|
87
|
+
let _b = this.props,
|
|
87
88
|
{
|
|
88
89
|
footer,
|
|
89
90
|
className,
|
|
@@ -94,15 +95,15 @@ class Modal extends BaseComponent {
|
|
|
94
95
|
zIndex,
|
|
95
96
|
getPopupContainer,
|
|
96
97
|
visible
|
|
97
|
-
} =
|
|
98
|
-
restProps = __rest(
|
|
98
|
+
} = _b,
|
|
99
|
+
restProps = __rest(_b, ["footer", "className", "motion", "maskStyle", "keepDOM", "style", "zIndex", "getPopupContainer", "visible"]);
|
|
99
100
|
let style = styleFromProps;
|
|
100
101
|
const maskStyle = maskStyleFromProps;
|
|
101
102
|
const renderFooter = 'footer' in this.props ? footer : this.renderFooter();
|
|
102
103
|
let wrapperStyle = {
|
|
103
104
|
zIndex
|
|
104
105
|
};
|
|
105
|
-
if (getPopupContainer) {
|
|
106
|
+
if (getPopupContainer && getPopupContainer() !== ((_a = globalThis === null || globalThis === void 0 ? void 0 : globalThis.document) === null || _a === void 0 ? void 0 : _a.body)) {
|
|
106
107
|
wrapperStyle = {
|
|
107
108
|
zIndex,
|
|
108
109
|
position: 'static'
|
|
@@ -173,20 +174,22 @@ class Modal extends BaseComponent {
|
|
|
173
174
|
return Object.assign(Object.assign({}, super.adapter), {
|
|
174
175
|
getProps: () => this.props,
|
|
175
176
|
disabledBodyScroll: () => {
|
|
177
|
+
var _a;
|
|
176
178
|
const {
|
|
177
179
|
getPopupContainer
|
|
178
180
|
} = this.props;
|
|
179
181
|
this.bodyOverflow = document.body.style.overflow || '';
|
|
180
|
-
if (!getPopupContainer && this.bodyOverflow !== 'hidden') {
|
|
182
|
+
if ((!getPopupContainer || getPopupContainer() === ((_a = globalThis === null || globalThis === void 0 ? void 0 : globalThis.document) === null || _a === void 0 ? void 0 : _a.body)) && this.bodyOverflow !== 'hidden') {
|
|
181
183
|
document.body.style.overflow = 'hidden';
|
|
182
184
|
document.body.style.width = `calc(${this.originBodyWidth || '100%'} - ${this.scrollBarWidth}px)`;
|
|
183
185
|
}
|
|
184
186
|
},
|
|
185
187
|
enabledBodyScroll: () => {
|
|
188
|
+
var _a;
|
|
186
189
|
const {
|
|
187
190
|
getPopupContainer
|
|
188
191
|
} = this.props;
|
|
189
|
-
if (!getPopupContainer && this.bodyOverflow !== 'hidden') {
|
|
192
|
+
if ((!getPopupContainer || getPopupContainer() === ((_a = globalThis === null || globalThis === void 0 ? void 0 : globalThis.document) === null || _a === void 0 ? void 0 : _a.body)) && this.bodyOverflow !== null && this.bodyOverflow !== 'hidden') {
|
|
190
193
|
document.body.style.overflow = this.bodyOverflow;
|
|
191
194
|
document.body.style.width = this.originBodyWidth;
|
|
192
195
|
}
|
|
@@ -278,20 +278,21 @@ export default class ModalContent extends BaseComponent {
|
|
|
278
278
|
this.foundation.destroy();
|
|
279
279
|
}
|
|
280
280
|
render() {
|
|
281
|
-
|
|
281
|
+
var _a;
|
|
282
|
+
const _b = this.props,
|
|
282
283
|
{
|
|
283
284
|
maskClosable,
|
|
284
285
|
className,
|
|
285
286
|
getPopupContainer,
|
|
286
287
|
maskFixed,
|
|
287
288
|
getContainerContext
|
|
288
|
-
} =
|
|
289
|
-
rest = __rest(
|
|
289
|
+
} = _b,
|
|
290
|
+
rest = __rest(_b, ["maskClosable", "className", "getPopupContainer", "maskFixed", "getContainerContext"]);
|
|
290
291
|
const {
|
|
291
292
|
direction
|
|
292
293
|
} = this.context;
|
|
293
294
|
const classList = cls(className, {
|
|
294
|
-
[`${cssClasses.DIALOG}-popup`]: getPopupContainer && !maskFixed,
|
|
295
|
+
[`${cssClasses.DIALOG}-popup`]: getPopupContainer && getPopupContainer() !== ((_a = globalThis === null || globalThis === void 0 ? void 0 : globalThis.document) === null || _a === void 0 ? void 0 : _a.body) && !maskFixed,
|
|
295
296
|
[`${cssClasses.DIALOG}-fixed`]: maskFixed,
|
|
296
297
|
[`${cssClasses.DIALOG}-rtl`]: direction === 'rtl'
|
|
297
298
|
});
|
|
@@ -140,8 +140,9 @@ export declare function withWarning(props: ModalReactProps): {
|
|
|
140
140
|
type: "warning";
|
|
141
141
|
};
|
|
142
142
|
export declare function withError(props: ModalReactProps): {
|
|
143
|
-
title?: React.ReactNode;
|
|
144
143
|
children?: React.ReactNode;
|
|
144
|
+
motion?: boolean;
|
|
145
|
+
title?: React.ReactNode;
|
|
145
146
|
size?: import("@douyinfe/semi-foundation/lib/es/modal/modalFoundation").Size;
|
|
146
147
|
style?: React.CSSProperties;
|
|
147
148
|
className?: string;
|
|
@@ -149,14 +150,12 @@ export declare function withError(props: ModalReactProps): {
|
|
|
149
150
|
footer?: React.ReactNode;
|
|
150
151
|
header?: React.ReactNode;
|
|
151
152
|
direction?: any;
|
|
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>;
|
|
160
159
|
zIndex?: number;
|
|
161
160
|
closeOnEsc?: boolean;
|
|
162
161
|
preventScroll?: boolean;
|
|
@@ -164,6 +163,7 @@ export declare function withError(props: ModalReactProps): {
|
|
|
164
163
|
keepDOM?: boolean;
|
|
165
164
|
cancelText?: string;
|
|
166
165
|
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,38 +201,29 @@ export declare function withError(props: ModalReactProps): {
|
|
|
201
201
|
onMouseEnter?: React.MouseEventHandler<HTMLButtonElement>;
|
|
202
202
|
onMouseLeave?: React.MouseEventHandler<HTMLButtonElement>;
|
|
203
203
|
'aria-label'?: string;
|
|
204
|
+
onAnimationStart?: React.AnimationEventHandler<HTMLButtonElement>;
|
|
205
|
+
onAnimationEnd?: React.AnimationEventHandler<HTMLButtonElement>;
|
|
204
206
|
title?: string;
|
|
205
207
|
name?: string;
|
|
206
208
|
value?: string | number | readonly string[];
|
|
207
209
|
form?: string;
|
|
208
210
|
slot?: string;
|
|
209
|
-
onAnimationStart?: React.AnimationEventHandler<HTMLButtonElement>;
|
|
210
|
-
onAnimationEnd?: React.AnimationEventHandler<HTMLButtonElement>;
|
|
211
211
|
hidden?: boolean;
|
|
212
212
|
color?: string;
|
|
213
213
|
content?: string;
|
|
214
|
-
|
|
215
|
-
defaultChecked?: boolean;
|
|
216
|
-
defaultValue?: string | number | readonly string[];
|
|
217
|
-
suppressContentEditableWarning?: boolean;
|
|
218
|
-
suppressHydrationWarning?: boolean;
|
|
214
|
+
onError?: React.ReactEventHandler<HTMLButtonElement>;
|
|
219
215
|
accessKey?: string;
|
|
220
|
-
autoFocus?: boolean;
|
|
221
|
-
formAction?: string;
|
|
222
|
-
formEncType?: string;
|
|
223
|
-
formMethod?: string;
|
|
224
|
-
formNoValidate?: boolean;
|
|
225
|
-
formTarget?: string;
|
|
226
216
|
dir?: string;
|
|
227
217
|
draggable?: boolean | "false" | "true";
|
|
228
218
|
lang?: string;
|
|
229
|
-
translate?: "
|
|
219
|
+
translate?: "yes" | "no";
|
|
230
220
|
prefix?: string;
|
|
231
221
|
role?: React.AriaRole;
|
|
232
222
|
contentEditable?: "inherit" | (boolean | "false" | "true");
|
|
233
|
-
inputMode?: "
|
|
223
|
+
inputMode?: "none" | "search" | "text" | "tel" | "url" | "email" | "numeric" | "decimal";
|
|
234
224
|
nonce?: string;
|
|
235
225
|
tabIndex?: number;
|
|
226
|
+
defaultValue?: string | number | readonly string[];
|
|
236
227
|
onMouseOut?: React.MouseEventHandler<HTMLButtonElement>;
|
|
237
228
|
onMouseOver?: React.MouseEventHandler<HTMLButtonElement>;
|
|
238
229
|
onFocus?: React.FocusEventHandler<HTMLButtonElement>;
|
|
@@ -242,6 +233,10 @@ export declare function withError(props: ModalReactProps): {
|
|
|
242
233
|
'aria-haspopup'?: boolean | "dialog" | "menu" | "listbox" | "grid" | "false" | "true" | "tree";
|
|
243
234
|
'aria-controls'?: string;
|
|
244
235
|
'aria-describedby'?: string;
|
|
236
|
+
defaultChecked?: boolean;
|
|
237
|
+
suppressContentEditableWarning?: boolean;
|
|
238
|
+
suppressHydrationWarning?: boolean;
|
|
239
|
+
autoFocus?: boolean;
|
|
245
240
|
contextMenu?: string;
|
|
246
241
|
placeholder?: string;
|
|
247
242
|
spellCheck?: boolean | "false" | "true";
|
|
@@ -278,7 +273,7 @@ export declare function withError(props: ModalReactProps): {
|
|
|
278
273
|
'aria-current'?: boolean | "time" | "page" | "false" | "true" | "location" | "step" | "date";
|
|
279
274
|
'aria-details'?: string;
|
|
280
275
|
'aria-disabled'?: boolean | "false" | "true";
|
|
281
|
-
'aria-dropeffect'?: "
|
|
276
|
+
'aria-dropeffect'?: "none" | "link" | "copy" | "move" | "execute" | "popup";
|
|
282
277
|
'aria-errormessage'?: string;
|
|
283
278
|
'aria-flowto'?: string;
|
|
284
279
|
'aria-grabbed'?: boolean | "false" | "true";
|
|
@@ -327,6 +322,7 @@ export declare function withError(props: ModalReactProps): {
|
|
|
327
322
|
onCompositionUpdateCapture?: React.CompositionEventHandler<HTMLButtonElement>;
|
|
328
323
|
onFocusCapture?: React.FocusEventHandler<HTMLButtonElement>;
|
|
329
324
|
onBlurCapture?: React.FocusEventHandler<HTMLButtonElement>;
|
|
325
|
+
onChange?: React.FormEventHandler<HTMLButtonElement>;
|
|
330
326
|
onChangeCapture?: React.FormEventHandler<HTMLButtonElement>;
|
|
331
327
|
onBeforeInput?: React.FormEventHandler<HTMLButtonElement>;
|
|
332
328
|
onBeforeInputCapture?: React.FormEventHandler<HTMLButtonElement>;
|
|
@@ -340,7 +336,6 @@ export declare function withError(props: ModalReactProps): {
|
|
|
340
336
|
onInvalidCapture?: React.FormEventHandler<HTMLButtonElement>;
|
|
341
337
|
onLoad?: React.ReactEventHandler<HTMLButtonElement>;
|
|
342
338
|
onLoadCapture?: React.ReactEventHandler<HTMLButtonElement>;
|
|
343
|
-
onError?: React.ReactEventHandler<HTMLButtonElement>;
|
|
344
339
|
onErrorCapture?: React.ReactEventHandler<HTMLButtonElement>;
|
|
345
340
|
onKeyDownCapture?: React.KeyboardEventHandler<HTMLButtonElement>;
|
|
346
341
|
onKeyPress?: React.KeyboardEventHandler<HTMLButtonElement>;
|
|
@@ -463,6 +458,11 @@ export declare function withError(props: ModalReactProps): {
|
|
|
463
458
|
onAnimationIterationCapture?: React.AnimationEventHandler<HTMLButtonElement>;
|
|
464
459
|
onTransitionEnd?: React.TransitionEventHandler<HTMLButtonElement>;
|
|
465
460
|
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): {
|
|
@@ -59,7 +59,7 @@ declare class Popover extends React.PureComponent<PopoverProps, PopoverState> {
|
|
|
59
59
|
margin: PropTypes.Requireable<NonNullable<number | object>>;
|
|
60
60
|
mouseEnterDelay: PropTypes.Requireable<number>;
|
|
61
61
|
mouseLeaveDelay: PropTypes.Requireable<number>;
|
|
62
|
-
trigger: PropTypes.Validator<NonNullable<"
|
|
62
|
+
trigger: PropTypes.Validator<NonNullable<"click" | "focus" | "hover" | "custom">>;
|
|
63
63
|
contentClassName: PropTypes.Requireable<NonNullable<string | any[]>>;
|
|
64
64
|
onVisibleChange: PropTypes.Requireable<(...args: any[]) => any>;
|
|
65
65
|
onClickOutSide: PropTypes.Requireable<(...args: any[]) => any>;
|
package/lib/es/rating/index.d.ts
CHANGED
|
@@ -69,7 +69,7 @@ export default class Rating extends BaseComponent<RatingProps, RatingState> {
|
|
|
69
69
|
onBlur: PropTypes.Requireable<(...args: any[]) => any>;
|
|
70
70
|
onKeyDown: PropTypes.Requireable<(...args: any[]) => any>;
|
|
71
71
|
autoFocus: PropTypes.Requireable<boolean>;
|
|
72
|
-
size: PropTypes.Requireable<NonNullable<number | "
|
|
72
|
+
size: PropTypes.Requireable<NonNullable<number | "small" | "default">>;
|
|
73
73
|
tooltips: PropTypes.Requireable<string[]>;
|
|
74
74
|
id: PropTypes.Requireable<string>;
|
|
75
75
|
preventScroll: PropTypes.Requireable<boolean>;
|
package/lib/es/rating/item.d.ts
CHANGED
|
@@ -40,7 +40,7 @@ export default class Item extends BaseComponent<RatingItemProps, RatingItemState
|
|
|
40
40
|
disabled: PropTypes.Requireable<boolean>;
|
|
41
41
|
count: PropTypes.Requireable<number>;
|
|
42
42
|
ariaLabelPrefix: PropTypes.Requireable<string>;
|
|
43
|
-
size: PropTypes.Requireable<NonNullable<number | "
|
|
43
|
+
size: PropTypes.Requireable<NonNullable<number | "small" | "default">>;
|
|
44
44
|
'aria-describedby': PropTypes.Requireable<string>;
|
|
45
45
|
onFocus: PropTypes.Requireable<(...args: any[]) => any>;
|
|
46
46
|
onBlur: PropTypes.Requireable<(...args: any[]) => any>;
|
package/lib/es/switch/index.d.ts
CHANGED
|
@@ -45,7 +45,7 @@ declare class Switch extends BaseComponent<SwitchProps, SwitchState> {
|
|
|
45
45
|
onMouseEnter: PropTypes.Requireable<(...args: any[]) => any>;
|
|
46
46
|
onMouseLeave: PropTypes.Requireable<(...args: any[]) => any>;
|
|
47
47
|
style: PropTypes.Requireable<object>;
|
|
48
|
-
size: PropTypes.Requireable<"
|
|
48
|
+
size: PropTypes.Requireable<"small" | "default" | "large">;
|
|
49
49
|
uncheckedText: PropTypes.Requireable<PropTypes.ReactNodeLike>;
|
|
50
50
|
id: PropTypes.Requireable<string>;
|
|
51
51
|
};
|
package/lib/es/table/Table.d.ts
CHANGED
|
@@ -60,7 +60,7 @@ declare class Table<RecordType extends Record<string, any>> extends BaseComponen
|
|
|
60
60
|
components: PropTypes.Requireable<any>;
|
|
61
61
|
bordered: PropTypes.Requireable<boolean>;
|
|
62
62
|
loading: PropTypes.Requireable<boolean>;
|
|
63
|
-
size: PropTypes.Requireable<"
|
|
63
|
+
size: PropTypes.Requireable<"small" | "default" | "middle">;
|
|
64
64
|
tableLayout: PropTypes.Requireable<"" | "fixed" | "auto">;
|
|
65
65
|
columns: PropTypes.Requireable<PropTypes.InferProps<{
|
|
66
66
|
align: PropTypes.Requireable<"left" | "right" | "center">;
|
|
@@ -297,7 +297,7 @@ declare class Table<RecordType extends Record<string, any>> extends BaseComponen
|
|
|
297
297
|
showTotal?: boolean;
|
|
298
298
|
pageSize?: number;
|
|
299
299
|
pageSizeOpts?: number[];
|
|
300
|
-
size?: "
|
|
300
|
+
size?: "small" | "default";
|
|
301
301
|
currentPage?: number;
|
|
302
302
|
defaultCurrentPage?: number;
|
|
303
303
|
onPageChange?: (currentPage: number) => void;
|
package/lib/es/table/index.d.ts
CHANGED
|
@@ -16,7 +16,7 @@ declare class Table<RecordType extends Record<string, any> = Data> extends React
|
|
|
16
16
|
components: PropTypes.Requireable<any>;
|
|
17
17
|
bordered: PropTypes.Requireable<boolean>;
|
|
18
18
|
loading: PropTypes.Requireable<boolean>;
|
|
19
|
-
size: PropTypes.Requireable<"
|
|
19
|
+
size: PropTypes.Requireable<"small" | "default" | "middle">;
|
|
20
20
|
tableLayout: PropTypes.Requireable<"" | "fixed" | "auto">;
|
|
21
21
|
columns: PropTypes.Requireable<PropTypes.InferProps<{
|
|
22
22
|
align: PropTypes.Requireable<"left" | "right" | "center">;
|
|
@@ -96,7 +96,7 @@ declare class TagInput extends BaseComponent<TagInputProps, TagInputState> {
|
|
|
96
96
|
onAdd: PropTypes.Requireable<(...args: any[]) => any>;
|
|
97
97
|
onRemove: PropTypes.Requireable<(...args: any[]) => any>;
|
|
98
98
|
onKeyDown: PropTypes.Requireable<(...args: any[]) => any>;
|
|
99
|
-
size: PropTypes.Requireable<"
|
|
99
|
+
size: PropTypes.Requireable<"small" | "default" | "large">;
|
|
100
100
|
validateStatus: PropTypes.Requireable<"default" | "error" | "warning" | "success">;
|
|
101
101
|
prefix: PropTypes.Requireable<NonNullable<PropTypes.ReactNodeLike>>;
|
|
102
102
|
suffix: PropTypes.Requireable<NonNullable<PropTypes.ReactNodeLike>>;
|
|
@@ -132,7 +132,7 @@ export default class TimePicker extends BaseComponent<TimePickerProps, TimePicke
|
|
|
132
132
|
secondStep: PropTypes.Requireable<number>;
|
|
133
133
|
focusOnOpen: PropTypes.Requireable<boolean>;
|
|
134
134
|
autoFocus: PropTypes.Requireable<boolean>;
|
|
135
|
-
size: PropTypes.Requireable<"
|
|
135
|
+
size: PropTypes.Requireable<"small" | "default" | "large">;
|
|
136
136
|
panels: PropTypes.Requireable<PropTypes.InferProps<{
|
|
137
137
|
panelHeader: PropTypes.Requireable<NonNullable<PropTypes.ReactNodeLike>>;
|
|
138
138
|
panelFooter: PropTypes.Requireable<NonNullable<PropTypes.ReactNodeLike>>;
|
|
@@ -49,7 +49,7 @@ export default class LocaleTimePicker extends React.PureComponent<LocalePickerPr
|
|
|
49
49
|
secondStep: import("prop-types").Requireable<number>;
|
|
50
50
|
focusOnOpen: import("prop-types").Requireable<boolean>;
|
|
51
51
|
autoFocus: import("prop-types").Requireable<boolean>;
|
|
52
|
-
size: import("prop-types").Requireable<"
|
|
52
|
+
size: import("prop-types").Requireable<"small" | "default" | "large">;
|
|
53
53
|
panels: import("prop-types").Requireable<import("prop-types").InferProps<{
|
|
54
54
|
panelHeader: import("prop-types").Requireable<NonNullable<import("prop-types").ReactNodeLike>>;
|
|
55
55
|
panelFooter: import("prop-types").Requireable<NonNullable<import("prop-types").ReactNodeLike>>;
|
|
@@ -92,7 +92,7 @@ export default class Tooltip extends BaseComponent<TooltipProps, TooltipState> {
|
|
|
92
92
|
getPopupContainer: PropTypes.Requireable<(...args: any[]) => any>;
|
|
93
93
|
mouseEnterDelay: PropTypes.Requireable<number>;
|
|
94
94
|
mouseLeaveDelay: PropTypes.Requireable<number>;
|
|
95
|
-
trigger: PropTypes.Validator<NonNullable<"
|
|
95
|
+
trigger: PropTypes.Validator<NonNullable<"click" | "focus" | "hover" | "custom">>;
|
|
96
96
|
className: PropTypes.Requireable<string>;
|
|
97
97
|
wrapperClassName: PropTypes.Requireable<string>;
|
|
98
98
|
clickToHide: PropTypes.Requireable<boolean>;
|
|
@@ -43,7 +43,7 @@ export default class Title extends PureComponent<TitleProps> {
|
|
|
43
43
|
style: PropTypes.Requireable<object>;
|
|
44
44
|
className: PropTypes.Requireable<string>;
|
|
45
45
|
component: PropTypes.Requireable<string>;
|
|
46
|
-
weight: PropTypes.Requireable<NonNullable<number | "
|
|
46
|
+
weight: PropTypes.Requireable<NonNullable<number | "bold" | "default" | "medium" | "light" | "regular" | "semibold">>;
|
|
47
47
|
};
|
|
48
48
|
static defaultProps: {
|
|
49
49
|
copyable: boolean;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@douyinfe/semi-ui",
|
|
3
|
-
"version": "2.38.3-alpha.2-patch-
|
|
3
|
+
"version": "2.38.3-alpha.2-patch-modal",
|
|
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.2-patch-
|
|
21
|
-
"@douyinfe/semi-animation-react": "2.38.3-alpha.2-patch-
|
|
22
|
-
"@douyinfe/semi-foundation": "2.38.3-alpha.2-patch-
|
|
23
|
-
"@douyinfe/semi-icons": "2.38.3-alpha.2-patch-
|
|
24
|
-
"@douyinfe/semi-illustrations": "2.38.3-alpha.2-patch-
|
|
25
|
-
"@douyinfe/semi-theme-default": "2.38.3-alpha.2-patch-
|
|
20
|
+
"@douyinfe/semi-animation": "2.38.3-alpha.2-patch-modal",
|
|
21
|
+
"@douyinfe/semi-animation-react": "2.38.3-alpha.2-patch-modal",
|
|
22
|
+
"@douyinfe/semi-foundation": "2.38.3-alpha.2-patch-modal",
|
|
23
|
+
"@douyinfe/semi-icons": "2.38.3-alpha.2-patch-modal",
|
|
24
|
+
"@douyinfe/semi-illustrations": "2.38.3-alpha.2-patch-modal",
|
|
25
|
+
"@douyinfe/semi-theme-default": "2.38.3-alpha.2-patch-modal",
|
|
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": "
|
|
72
|
+
"gitHead": "7fe24e6347b1b4ca706ccce160e2b7e3c7f10c4a",
|
|
73
73
|
"devDependencies": {
|
|
74
74
|
"@babel/plugin-proposal-decorators": "^7.15.8",
|
|
75
75
|
"@babel/plugin-transform-runtime": "^7.15.8",
|