@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
package/dist/umd/semi-ui.js
CHANGED
|
@@ -27095,65 +27095,28 @@ var icon_rest = undefined && undefined.__rest || function (s, e) {
|
|
|
27095
27095
|
};
|
|
27096
27096
|
/* eslint-disable no-unused-vars */
|
|
27097
27097
|
|
|
27098
|
-
|
|
27099
|
-
let _id = -1;
|
|
27100
27098
|
function icon_Icon() {
|
|
27101
27099
|
let props = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
|
|
27102
27100
|
const {
|
|
27103
|
-
id
|
|
27101
|
+
id,
|
|
27104
27102
|
className
|
|
27105
27103
|
} = props,
|
|
27106
27104
|
rest = icon_rest(props, ["id", "className"]);
|
|
27107
|
-
let _propsId = propsId;
|
|
27108
|
-
if (isNullOrUndefined(_propsId)) {
|
|
27109
|
-
_id++;
|
|
27110
|
-
_propsId = _id;
|
|
27111
|
-
}
|
|
27112
|
-
const id = `linearGradient-${_propsId}`;
|
|
27113
27105
|
return /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default().createElement("svg", Object.assign({}, rest, {
|
|
27114
27106
|
className: className,
|
|
27115
|
-
width: "
|
|
27116
|
-
height: "
|
|
27117
|
-
viewBox: "0 0
|
|
27118
|
-
|
|
27119
|
-
|
|
27120
|
-
"
|
|
27121
|
-
|
|
27122
|
-
|
|
27123
|
-
|
|
27124
|
-
|
|
27125
|
-
|
|
27126
|
-
|
|
27127
|
-
|
|
27128
|
-
}, /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default().createElement("stop", {
|
|
27129
|
-
stopColor: "currentColor",
|
|
27130
|
-
stopOpacity: "0",
|
|
27131
|
-
offset: "0%"
|
|
27132
|
-
}), /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default().createElement("stop", {
|
|
27133
|
-
stopColor: "currentColor",
|
|
27134
|
-
stopOpacity: "0.50",
|
|
27135
|
-
offset: "39.9430698%"
|
|
27136
|
-
}), /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default().createElement("stop", {
|
|
27137
|
-
stopColor: "currentColor",
|
|
27138
|
-
offset: "100%"
|
|
27139
|
-
}))), /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default().createElement("g", {
|
|
27140
|
-
stroke: "none",
|
|
27141
|
-
strokeWidth: "1",
|
|
27142
|
-
fill: "none",
|
|
27143
|
-
fillRule: "evenodd"
|
|
27144
|
-
}, /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default().createElement("rect", {
|
|
27145
|
-
fillOpacity: "0.01",
|
|
27146
|
-
fill: "none",
|
|
27147
|
-
x: "0",
|
|
27148
|
-
y: "0",
|
|
27149
|
-
width: "36",
|
|
27150
|
-
height: "36"
|
|
27151
|
-
}), /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default().createElement("path", {
|
|
27152
|
-
d: "M34,18 C34,9.163444 26.836556,2 18,2 C11.6597233,2 6.18078805,5.68784135 3.59122325,11.0354951",
|
|
27153
|
-
stroke: `url(#${id})`,
|
|
27154
|
-
strokeWidth: "4",
|
|
27155
|
-
strokeLinecap: "round"
|
|
27156
|
-
})));
|
|
27107
|
+
width: "100%",
|
|
27108
|
+
height: "100%",
|
|
27109
|
+
viewBox: "0 0 100 100"
|
|
27110
|
+
}), /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default().createElement("circle", {
|
|
27111
|
+
cx: "50",
|
|
27112
|
+
cy: "50",
|
|
27113
|
+
r: "35",
|
|
27114
|
+
stroke: "currentColor",
|
|
27115
|
+
strokeWidth: "11",
|
|
27116
|
+
strokeLinecap: "round",
|
|
27117
|
+
strokeMiterlimit: "10",
|
|
27118
|
+
fill: "none"
|
|
27119
|
+
}));
|
|
27157
27120
|
}
|
|
27158
27121
|
/* harmony default export */ const spin_icon = (icon_Icon);
|
|
27159
27122
|
// EXTERNAL MODULE: ../semi-foundation/spin/spin.scss
|
|
@@ -57178,20 +57141,21 @@ class ModalContent extends BaseComponent {
|
|
|
57178
57141
|
this.foundation.destroy();
|
|
57179
57142
|
}
|
|
57180
57143
|
render() {
|
|
57181
|
-
|
|
57144
|
+
var _a;
|
|
57145
|
+
const _b = this.props,
|
|
57182
57146
|
{
|
|
57183
57147
|
maskClosable,
|
|
57184
57148
|
className,
|
|
57185
57149
|
getPopupContainer,
|
|
57186
57150
|
maskFixed,
|
|
57187
57151
|
getContainerContext
|
|
57188
|
-
} =
|
|
57189
|
-
rest = ModalContent_rest(
|
|
57152
|
+
} = _b,
|
|
57153
|
+
rest = ModalContent_rest(_b, ["maskClosable", "className", "getPopupContainer", "maskFixed", "getContainerContext"]);
|
|
57190
57154
|
const {
|
|
57191
57155
|
direction
|
|
57192
57156
|
} = this.context;
|
|
57193
57157
|
const classList = classnames_default()(className, {
|
|
57194
|
-
[`${modal_constants_cssClasses.DIALOG}-popup`]: getPopupContainer && !maskFixed,
|
|
57158
|
+
[`${modal_constants_cssClasses.DIALOG}-popup`]: getPopupContainer && getPopupContainer() !== ((_a = globalThis === null || globalThis === void 0 ? void 0 : globalThis.document) === null || _a === void 0 ? void 0 : _a.body) && !maskFixed,
|
|
57195
57159
|
[`${modal_constants_cssClasses.DIALOG}-fixed`]: maskFixed,
|
|
57196
57160
|
[`${modal_constants_cssClasses.DIALOG}-rtl`]: direction === 'rtl'
|
|
57197
57161
|
});
|
|
@@ -57592,7 +57556,8 @@ class Modal extends BaseComponent {
|
|
|
57592
57556
|
// return <ModalContent {...restProps} footer={renderFooter} onClose={this.handleCancel}/>;
|
|
57593
57557
|
// };
|
|
57594
57558
|
this.renderDialog = () => {
|
|
57595
|
-
|
|
57559
|
+
var _a;
|
|
57560
|
+
let _b = this.props,
|
|
57596
57561
|
{
|
|
57597
57562
|
footer,
|
|
57598
57563
|
className,
|
|
@@ -57603,15 +57568,15 @@ class Modal extends BaseComponent {
|
|
|
57603
57568
|
zIndex,
|
|
57604
57569
|
getPopupContainer,
|
|
57605
57570
|
visible
|
|
57606
|
-
} =
|
|
57607
|
-
restProps = Modal_rest(
|
|
57571
|
+
} = _b,
|
|
57572
|
+
restProps = Modal_rest(_b, ["footer", "className", "motion", "maskStyle", "keepDOM", "style", "zIndex", "getPopupContainer", "visible"]);
|
|
57608
57573
|
let style = styleFromProps;
|
|
57609
57574
|
const maskStyle = maskStyleFromProps;
|
|
57610
57575
|
const renderFooter = 'footer' in this.props ? footer : this.renderFooter();
|
|
57611
57576
|
let wrapperStyle = {
|
|
57612
57577
|
zIndex
|
|
57613
57578
|
};
|
|
57614
|
-
if (getPopupContainer) {
|
|
57579
|
+
if (getPopupContainer && getPopupContainer() !== ((_a = globalThis === null || globalThis === void 0 ? void 0 : globalThis.document) === null || _a === void 0 ? void 0 : _a.body)) {
|
|
57615
57580
|
wrapperStyle = {
|
|
57616
57581
|
zIndex,
|
|
57617
57582
|
position: 'static'
|
|
@@ -57682,20 +57647,22 @@ class Modal extends BaseComponent {
|
|
|
57682
57647
|
return Object.assign(Object.assign({}, super.adapter), {
|
|
57683
57648
|
getProps: () => this.props,
|
|
57684
57649
|
disabledBodyScroll: () => {
|
|
57650
|
+
var _a;
|
|
57685
57651
|
const {
|
|
57686
57652
|
getPopupContainer
|
|
57687
57653
|
} = this.props;
|
|
57688
57654
|
this.bodyOverflow = document.body.style.overflow || '';
|
|
57689
|
-
if (!getPopupContainer && this.bodyOverflow !== 'hidden') {
|
|
57655
|
+
if ((!getPopupContainer || getPopupContainer() === ((_a = globalThis === null || globalThis === void 0 ? void 0 : globalThis.document) === null || _a === void 0 ? void 0 : _a.body)) && this.bodyOverflow !== 'hidden') {
|
|
57690
57656
|
document.body.style.overflow = 'hidden';
|
|
57691
57657
|
document.body.style.width = `calc(${this.originBodyWidth || '100%'} - ${this.scrollBarWidth}px)`;
|
|
57692
57658
|
}
|
|
57693
57659
|
},
|
|
57694
57660
|
enabledBodyScroll: () => {
|
|
57661
|
+
var _a;
|
|
57695
57662
|
const {
|
|
57696
57663
|
getPopupContainer
|
|
57697
57664
|
} = this.props;
|
|
57698
|
-
if (!getPopupContainer && this.bodyOverflow !== 'hidden') {
|
|
57665
|
+
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') {
|
|
57699
57666
|
document.body.style.overflow = this.bodyOverflow;
|
|
57700
57667
|
document.body.style.width = this.originBodyWidth;
|
|
57701
57668
|
}
|