@douyinfe/semi-ui 2.21.0-beta.1 → 2.21.1
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 +7 -7
- package/dist/css/semi.min.css +1 -1
- package/dist/umd/semi-ui.js +22 -20
- 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/form/interface.d.ts +1 -1
- package/lib/cjs/image/image.d.ts +1 -1
- package/lib/cjs/image/image.js +2 -2
- package/lib/cjs/image/index.d.ts +1 -0
- package/lib/cjs/image/index.js +2 -0
- package/lib/cjs/image/preview.d.ts +1 -0
- package/lib/cjs/image/preview.js +2 -0
- package/lib/cjs/modal/ModalContent.js +2 -2
- package/lib/cjs/select/index.d.ts +2 -2
- package/lib/cjs/select/index.js +2 -2
- package/lib/es/form/interface.d.ts +1 -1
- package/lib/es/image/image.d.ts +1 -1
- package/lib/es/image/image.js +1 -1
- package/lib/es/image/index.d.ts +1 -0
- package/lib/es/image/index.js +1 -0
- package/lib/es/image/preview.d.ts +1 -0
- package/lib/es/image/preview.js +1 -0
- package/lib/es/modal/ModalContent.js +2 -2
- package/lib/es/select/index.d.ts +2 -2
- package/lib/es/select/index.js +2 -2
- package/package.json +7 -7
package/dist/umd/semi-ui.js
CHANGED
|
@@ -59423,6 +59423,18 @@ class modalFoundation_ModalFoundation extends foundation {
|
|
|
59423
59423
|
class modalContentFoundation_ModalContentFoundation extends foundation {
|
|
59424
59424
|
constructor(adapter) {
|
|
59425
59425
|
super(Object.assign(Object.assign({}, modalContentFoundation_ModalContentFoundation.defaultAdapter), adapter));
|
|
59426
|
+
|
|
59427
|
+
this.handleKeyDown = e => {
|
|
59428
|
+
const {
|
|
59429
|
+
closeOnEsc
|
|
59430
|
+
} = this.getProps();
|
|
59431
|
+
|
|
59432
|
+
if (closeOnEsc && e.keyCode === utils_keyCode.ESC) {
|
|
59433
|
+
e.stopPropagation();
|
|
59434
|
+
this.close(e);
|
|
59435
|
+
return;
|
|
59436
|
+
}
|
|
59437
|
+
};
|
|
59426
59438
|
}
|
|
59427
59439
|
|
|
59428
59440
|
destroy() {
|
|
@@ -59439,18 +59451,6 @@ class modalContentFoundation_ModalContentFoundation extends foundation {
|
|
|
59439
59451
|
this._adapter.notifyDialogMouseUp();
|
|
59440
59452
|
}
|
|
59441
59453
|
|
|
59442
|
-
handleKeyDown(e) {
|
|
59443
|
-
const {
|
|
59444
|
-
closeOnEsc
|
|
59445
|
-
} = this.getProps();
|
|
59446
|
-
|
|
59447
|
-
if (closeOnEsc && e.keyCode === utils_keyCode.ESC) {
|
|
59448
|
-
e.stopPropagation();
|
|
59449
|
-
this.close(e);
|
|
59450
|
-
return;
|
|
59451
|
-
}
|
|
59452
|
-
}
|
|
59453
|
-
|
|
59454
59454
|
handleKeyDownEventListenerMount() {
|
|
59455
59455
|
this._adapter.addKeyDownEventListener();
|
|
59456
59456
|
}
|
|
@@ -59886,12 +59886,12 @@ class ModalContent_ModalContent extends baseComponent_BaseComponent {
|
|
|
59886
59886
|
},
|
|
59887
59887
|
addKeyDownEventListener: () => {
|
|
59888
59888
|
if (this.props.closeOnEsc) {
|
|
59889
|
-
document.addEventListener('keydown', this.foundation.handleKeyDown
|
|
59889
|
+
document.addEventListener('keydown', this.foundation.handleKeyDown);
|
|
59890
59890
|
}
|
|
59891
59891
|
},
|
|
59892
59892
|
removeKeyDownEventListener: () => {
|
|
59893
59893
|
if (this.props.closeOnEsc) {
|
|
59894
|
-
document.removeEventListener('keydown', this.foundation.handleKeyDown
|
|
59894
|
+
document.removeEventListener('keydown', this.foundation.handleKeyDown);
|
|
59895
59895
|
}
|
|
59896
59896
|
},
|
|
59897
59897
|
getMouseState: () => this.state.dialogMouseDown,
|
|
@@ -71703,7 +71703,7 @@ const select_constants_strings = {
|
|
|
71703
71703
|
STATUS: VALIDATE_STATUS
|
|
71704
71704
|
};
|
|
71705
71705
|
const select_constants_numbers = {
|
|
71706
|
-
LIST_HEIGHT:
|
|
71706
|
+
LIST_HEIGHT: 270
|
|
71707
71707
|
};
|
|
71708
71708
|
|
|
71709
71709
|
// CONCATENATED MODULE: ./tag/group.tsx
|
|
@@ -72832,7 +72832,7 @@ class select_Select extends baseComponent_BaseComponent {
|
|
|
72832
72832
|
// eslint-disable-next-line jsx-a11y/no-static-element-interactions
|
|
72833
72833
|
external_root_React_commonjs2_react_commonjs_react_amd_react_default.a.createElement("div", {
|
|
72834
72834
|
id: "".concat(select_prefixcls, "-").concat(this.selectOptionListID),
|
|
72835
|
-
className: dropdownClassName,
|
|
72835
|
+
className: classnames_default()("".concat(select_prefixcls, "-option-list-wrapper"), dropdownClassName),
|
|
72836
72836
|
style: style,
|
|
72837
72837
|
ref: this.setOptionContainerEl,
|
|
72838
72838
|
onKeyDown: e => this.foundation.handleContainerKeyDown(e)
|
|
@@ -73344,7 +73344,7 @@ select_Select.defaultProps = {
|
|
|
73344
73344
|
onBlur: noop_default.a,
|
|
73345
73345
|
onClear: noop_default.a,
|
|
73346
73346
|
onListScroll: noop_default.a,
|
|
73347
|
-
maxHeight:
|
|
73347
|
+
maxHeight: select_constants_numbers.LIST_HEIGHT,
|
|
73348
73348
|
dropdownMatchSelectWidth: true,
|
|
73349
73349
|
defaultActiveFirstOption: true,
|
|
73350
73350
|
showArrow: true,
|
|
@@ -103143,9 +103143,6 @@ previewInner_PreviewInner.defaultProps = {
|
|
|
103143
103143
|
maskClosable: true,
|
|
103144
103144
|
viewerVisibleDelay: 10000
|
|
103145
103145
|
};
|
|
103146
|
-
// EXTERNAL MODULE: ../semi-foundation/image/image.scss
|
|
103147
|
-
var image_image = __webpack_require__("txvO");
|
|
103148
|
-
|
|
103149
103146
|
// CONCATENATED MODULE: ../semi-foundation/image/imageFoundation.ts
|
|
103150
103147
|
|
|
103151
103148
|
|
|
@@ -103223,6 +103220,9 @@ class imageFoundation_ImageFoundation extends foundation {
|
|
|
103223
103220
|
}
|
|
103224
103221
|
|
|
103225
103222
|
}
|
|
103223
|
+
// EXTERNAL MODULE: ../semi-foundation/image/image.scss
|
|
103224
|
+
var image_image = __webpack_require__("txvO");
|
|
103225
|
+
|
|
103226
103226
|
// CONCATENATED MODULE: ./image/image.tsx
|
|
103227
103227
|
|
|
103228
103228
|
|
|
@@ -103452,6 +103452,7 @@ image_Image.defaultProps = {
|
|
|
103452
103452
|
|
|
103453
103453
|
|
|
103454
103454
|
|
|
103455
|
+
|
|
103455
103456
|
/* harmony default export */ var image_0 = (image_Image);
|
|
103456
103457
|
|
|
103457
103458
|
|
|
@@ -103515,6 +103516,7 @@ var preview_rest = undefined && undefined.__rest || function (s, e) {
|
|
|
103515
103516
|
|
|
103516
103517
|
|
|
103517
103518
|
|
|
103519
|
+
|
|
103518
103520
|
const preview_prefixCls = image_constants_cssClasses.PREFIX;
|
|
103519
103521
|
class preview_Preview extends baseComponent_BaseComponent {
|
|
103520
103522
|
constructor(props) {
|