@douyinfe/semi-ui 2.38.3-alpha.2-path-settimeout → 2.38.3-alpha.2-patch-2395
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/css/semi.css +45 -2
- package/dist/css/semi.min.css +1 -1
- package/dist/umd/semi-ui.js +28 -61
- 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/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 +18 -18
- package/lib/cjs/rating/index.d.ts +1 -1
- package/lib/cjs/rating/item.d.ts +1 -1
- package/lib/cjs/spin/icon.js +14 -51
- 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/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/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 +18 -18
- package/lib/es/rating/index.d.ts +1 -1
- package/lib/es/rating/item.d.ts +1 -1
- package/lib/es/spin/icon.js +14 -51
- 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/typography/title.d.ts +1 -1
- package/package.json +8 -8
|
@@ -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<"dateTime" | "date" | "month" | "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, "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>;
|
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, "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>>;
|
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<"default" | "small" | "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<"default" | "small" | "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,12 +140,12 @@ export declare function withWarning(props: ModalReactProps): {
|
|
|
140
140
|
type: "warning";
|
|
141
141
|
};
|
|
142
142
|
export declare function withError(props: ModalReactProps): {
|
|
143
|
-
children?: React.ReactNode;
|
|
144
|
-
motion?: boolean;
|
|
145
143
|
title?: React.ReactNode;
|
|
144
|
+
children?: React.ReactNode;
|
|
146
145
|
size?: import("@douyinfe/semi-foundation/lib/es/modal/modalFoundation").Size;
|
|
147
146
|
style?: React.CSSProperties;
|
|
148
147
|
className?: string;
|
|
148
|
+
motion?: boolean;
|
|
149
149
|
getPopupContainer?: () => HTMLElement;
|
|
150
150
|
footer?: React.ReactNode;
|
|
151
151
|
header?: React.ReactNode;
|
|
@@ -156,6 +156,7 @@ export declare function withError(props: ModalReactProps): {
|
|
|
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,26 +201,36 @@ 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>;
|
|
206
204
|
title?: string;
|
|
207
205
|
name?: string;
|
|
208
206
|
value?: string | number | readonly string[];
|
|
207
|
+
onAnimationStart?: React.AnimationEventHandler<HTMLButtonElement>;
|
|
208
|
+
onAnimationEnd?: React.AnimationEventHandler<HTMLButtonElement>;
|
|
209
209
|
form?: string;
|
|
210
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?: "
|
|
229
|
+
translate?: "no" | "yes";
|
|
220
230
|
prefix?: string;
|
|
221
231
|
role?: React.AriaRole;
|
|
222
232
|
contentEditable?: "inherit" | (boolean | "false" | "true");
|
|
223
|
-
inputMode?: "
|
|
233
|
+
inputMode?: "search" | "none" | "text" | "tel" | "url" | "email" | "numeric" | "decimal";
|
|
224
234
|
nonce?: string;
|
|
225
235
|
tabIndex?: number;
|
|
226
236
|
onMouseOut?: React.MouseEventHandler<HTMLButtonElement>;
|
|
@@ -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";
|
|
@@ -272,7 +278,7 @@ export declare function withError(props: ModalReactProps): {
|
|
|
272
278
|
'aria-current'?: boolean | "time" | "page" | "false" | "true" | "location" | "step" | "date";
|
|
273
279
|
'aria-details'?: string;
|
|
274
280
|
'aria-disabled'?: boolean | "false" | "true";
|
|
275
|
-
'aria-dropeffect'?: "
|
|
281
|
+
'aria-dropeffect'?: "link" | "none" | "copy" | "move" | "execute" | "popup";
|
|
276
282
|
'aria-errormessage'?: string;
|
|
277
283
|
'aria-flowto'?: string;
|
|
278
284
|
'aria-grabbed'?: 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): {
|
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 | "default" | "small">>;
|
|
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 | "default" | "small">>;
|
|
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/spin/icon.js
CHANGED
|
@@ -8,64 +8,27 @@ var __rest = this && this.__rest || function (s, e) {
|
|
|
8
8
|
};
|
|
9
9
|
/* eslint-disable no-unused-vars */
|
|
10
10
|
import React from 'react';
|
|
11
|
-
import isNullOrUndefined from '@douyinfe/semi-foundation/lib/es/utils/isNullOrUndefined';
|
|
12
|
-
let _id = -1;
|
|
13
11
|
function Icon() {
|
|
14
12
|
let props = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
|
|
15
13
|
const {
|
|
16
|
-
id
|
|
14
|
+
id,
|
|
17
15
|
className
|
|
18
16
|
} = props,
|
|
19
17
|
rest = __rest(props, ["id", "className"]);
|
|
20
|
-
let _propsId = propsId;
|
|
21
|
-
if (isNullOrUndefined(_propsId)) {
|
|
22
|
-
_id++;
|
|
23
|
-
_propsId = _id;
|
|
24
|
-
}
|
|
25
|
-
const id = `linearGradient-${_propsId}`;
|
|
26
18
|
return /*#__PURE__*/React.createElement("svg", Object.assign({}, rest, {
|
|
27
19
|
className: className,
|
|
28
|
-
width: "
|
|
29
|
-
height: "
|
|
30
|
-
viewBox: "0 0
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
"
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
}, /*#__PURE__*/React.createElement("stop", {
|
|
42
|
-
stopColor: "currentColor",
|
|
43
|
-
stopOpacity: "0",
|
|
44
|
-
offset: "0%"
|
|
45
|
-
}), /*#__PURE__*/React.createElement("stop", {
|
|
46
|
-
stopColor: "currentColor",
|
|
47
|
-
stopOpacity: "0.50",
|
|
48
|
-
offset: "39.9430698%"
|
|
49
|
-
}), /*#__PURE__*/React.createElement("stop", {
|
|
50
|
-
stopColor: "currentColor",
|
|
51
|
-
offset: "100%"
|
|
52
|
-
}))), /*#__PURE__*/React.createElement("g", {
|
|
53
|
-
stroke: "none",
|
|
54
|
-
strokeWidth: "1",
|
|
55
|
-
fill: "none",
|
|
56
|
-
fillRule: "evenodd"
|
|
57
|
-
}, /*#__PURE__*/React.createElement("rect", {
|
|
58
|
-
fillOpacity: "0.01",
|
|
59
|
-
fill: "none",
|
|
60
|
-
x: "0",
|
|
61
|
-
y: "0",
|
|
62
|
-
width: "36",
|
|
63
|
-
height: "36"
|
|
64
|
-
}), /*#__PURE__*/React.createElement("path", {
|
|
65
|
-
d: "M34,18 C34,9.163444 26.836556,2 18,2 C11.6597233,2 6.18078805,5.68784135 3.59122325,11.0354951",
|
|
66
|
-
stroke: `url(#${id})`,
|
|
67
|
-
strokeWidth: "4",
|
|
68
|
-
strokeLinecap: "round"
|
|
69
|
-
})));
|
|
20
|
+
width: "100%",
|
|
21
|
+
height: "100%",
|
|
22
|
+
viewBox: "0 0 100 100"
|
|
23
|
+
}), /*#__PURE__*/React.createElement("circle", {
|
|
24
|
+
cx: "50",
|
|
25
|
+
cy: "50",
|
|
26
|
+
r: "35",
|
|
27
|
+
stroke: "currentColor",
|
|
28
|
+
strokeWidth: "11",
|
|
29
|
+
strokeLinecap: "round",
|
|
30
|
+
strokeMiterlimit: "10",
|
|
31
|
+
fill: "none"
|
|
32
|
+
}));
|
|
70
33
|
}
|
|
71
34
|
export default Icon;
|
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<"default" | "small" | "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<"default" | "small" | "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?: "default" | "small";
|
|
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<"default" | "small" | "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<"default" | "small" | "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<"default" | "small" | "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<"default" | "small" | "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>>;
|
|
@@ -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 | "default" | "bold" | "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-
|
|
3
|
+
"version": "2.38.3-alpha.2-patch-2395",
|
|
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-
|
|
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-
|
|
20
|
+
"@douyinfe/semi-animation": "2.38.3-alpha.2-patch-2395",
|
|
21
|
+
"@douyinfe/semi-animation-react": "2.38.3-alpha.2-patch-2395",
|
|
22
|
+
"@douyinfe/semi-foundation": "2.38.3-alpha.2-patch-2395",
|
|
23
|
+
"@douyinfe/semi-icons": "2.38.3-alpha.2-patch-2395",
|
|
24
|
+
"@douyinfe/semi-illustrations": "2.38.3-alpha.2-patch-2395",
|
|
25
|
+
"@douyinfe/semi-theme-default": "2.38.3-alpha.2-patch-2395",
|
|
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": "0f229469b42b6f684a9c618153993896a438e303",
|
|
73
73
|
"devDependencies": {
|
|
74
74
|
"@babel/plugin-proposal-decorators": "^7.15.8",
|
|
75
75
|
"@babel/plugin-transform-runtime": "^7.15.8",
|