@douyinfe/semi-ui 2.9.0-beta.1 → 2.9.0
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/anchor/__test__/anchor.test.js +1 -0
- package/anchor/_story/anchor.stories.js +23 -1
- package/cascader/_story/cascader.stories.js +17 -2
- package/cascader/index.tsx +1 -1
- package/checkbox/_story/checkbox.stories.js +1 -1
- package/collapse/item.tsx +2 -0
- package/datePicker/_story/datePicker.stories.js +37 -0
- package/dist/css/semi.css +1 -2
- package/dist/css/semi.min.css +1 -1
- package/dist/umd/semi-ui.js +27 -6
- 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/input/__test__/input.test.js +12 -3
- package/input/__test__/textArea.test.js +53 -0
- package/lib/cjs/cascader/index.js +1 -1
- package/lib/cjs/collapse/item.js +4 -2
- package/lib/cjs/modal/Modal.js +3 -0
- package/lib/cjs/scrollList/scrollItem.js +4 -0
- package/lib/cjs/tabs/TabPane.js +4 -0
- package/lib/cjs/tabs/index.js +2 -0
- package/lib/cjs/transfer/index.d.ts +1 -0
- package/lib/cjs/transfer/index.js +3 -1
- package/lib/es/cascader/index.js +1 -1
- package/lib/es/collapse/item.js +4 -2
- package/lib/es/modal/Modal.js +3 -0
- package/lib/es/scrollList/scrollItem.js +4 -0
- package/lib/es/tabs/TabPane.js +4 -0
- package/lib/es/tabs/index.js +2 -0
- package/lib/es/transfer/index.d.ts +1 -0
- package/lib/es/transfer/index.js +3 -1
- package/modal/Modal.tsx +2 -0
- package/modal/confirm.tsx +1 -1
- package/overflowList/_story/overflowList.stories.js +44 -0
- package/package.json +9 -9
- package/scrollList/_story/SingleWheelList/index.js +72 -0
- package/scrollList/_story/scrolllist.stories.js +7 -0
- package/scrollList/scrollItem.tsx +3 -0
- package/table/__test__/table.test.js +1 -0
- package/tabs/TabPane.tsx +2 -0
- package/tabs/_story/tabs.stories.js +72 -0
- package/tabs/index.tsx +1 -0
- package/tagInput/_story/tagInput.stories.js +14 -1
- package/tooltip/_story/tooltip.stories.js +127 -15
- package/transfer/index.tsx +4 -1
- package/typography/__test__/typography.test.js +1 -0
- package/upload/__test__/upload.test.js +2 -0
- package/upload/_story/upload.stories.js +2 -2
package/dist/umd/semi-ui.js
CHANGED
|
@@ -48776,8 +48776,12 @@ class foundation_TagInputFoundation extends foundation {
|
|
|
48776
48776
|
|
|
48777
48777
|
const code = e.keyCode;
|
|
48778
48778
|
|
|
48779
|
-
if (code === utils_keyCode.ENTER
|
|
48780
|
-
|
|
48779
|
+
if (code === utils_keyCode.ENTER) {
|
|
48780
|
+
e.preventDefault(); // prevent trigger submit when using in form
|
|
48781
|
+
|
|
48782
|
+
if (inputValue !== '') {
|
|
48783
|
+
this._handleAddTags(e);
|
|
48784
|
+
}
|
|
48781
48785
|
}
|
|
48782
48786
|
|
|
48783
48787
|
const {
|
|
@@ -49742,7 +49746,7 @@ class cascader_Cascader extends baseComponent_BaseComponent {
|
|
|
49742
49746
|
|
|
49743
49747
|
this.handleClearEnterPress = e => {
|
|
49744
49748
|
e && e.stopPropagation();
|
|
49745
|
-
this.foundation.handleClearEnterPress();
|
|
49749
|
+
this.foundation.handleClearEnterPress(e);
|
|
49746
49750
|
};
|
|
49747
49751
|
|
|
49748
49752
|
this.showClearBtn = () => {
|
|
@@ -50711,9 +50715,11 @@ class item_CollapsePanel extends external_root_React_commonjs2_react_commonjs_re
|
|
|
50711
50715
|
className,
|
|
50712
50716
|
children,
|
|
50713
50717
|
itemKey,
|
|
50714
|
-
reCalcKey
|
|
50718
|
+
reCalcKey,
|
|
50719
|
+
header,
|
|
50720
|
+
extra
|
|
50715
50721
|
} = _a,
|
|
50716
|
-
restProps = collapse_item_rest(_a, ["className", "children", "itemKey", "reCalcKey"]);
|
|
50722
|
+
restProps = collapse_item_rest(_a, ["className", "children", "itemKey", "reCalcKey", "header", "extra"]);
|
|
50717
50723
|
|
|
50718
50724
|
const {
|
|
50719
50725
|
keepDOM,
|
|
@@ -60539,6 +60545,8 @@ class scrollItem_ScrollItem extends baseComponent_BaseComponent {
|
|
|
60539
60545
|
this._cacheSelectorNode = selector => this._cacheNode('selector', selector);
|
|
60540
60546
|
|
|
60541
60547
|
this._cacheWrapperNode = wrapper => this._cacheNode('wrapper', wrapper);
|
|
60548
|
+
/* istanbul ignore next */
|
|
60549
|
+
|
|
60542
60550
|
|
|
60543
60551
|
this._isFirst = node => {
|
|
60544
60552
|
const {
|
|
@@ -60555,6 +60563,8 @@ class scrollItem_ScrollItem extends baseComponent_BaseComponent {
|
|
|
60555
60563
|
|
|
60556
60564
|
return false;
|
|
60557
60565
|
};
|
|
60566
|
+
/* istanbul ignore next */
|
|
60567
|
+
|
|
60558
60568
|
|
|
60559
60569
|
this._isLast = node => {
|
|
60560
60570
|
const {
|
|
@@ -65086,6 +65096,9 @@ class Modal_Modal extends baseComponent_BaseComponent {
|
|
|
65086
65096
|
this.props.onOk(e);
|
|
65087
65097
|
},
|
|
65088
65098
|
notifyClose: () => {
|
|
65099
|
+
var _a, _b;
|
|
65100
|
+
|
|
65101
|
+
(_b = (_a = this.props.motion) === null || _a === void 0 ? void 0 : _a.didLeave) === null || _b === void 0 ? void 0 : _b.call(_a);
|
|
65089
65102
|
this.props.afterClose();
|
|
65090
65103
|
},
|
|
65091
65104
|
toggleHidden: (hidden, callback) => {
|
|
@@ -91349,6 +91362,8 @@ class TabPane_TabPane extends external_root_React_commonjs2_react_commonjs_react
|
|
|
91349
91362
|
|
|
91350
91363
|
return false;
|
|
91351
91364
|
};
|
|
91365
|
+
/* istanbul ignore next */
|
|
91366
|
+
|
|
91352
91367
|
|
|
91353
91368
|
this.hideScroll = () => {
|
|
91354
91369
|
if (this.ref && this.ref.current) {
|
|
@@ -91356,6 +91371,8 @@ class TabPane_TabPane extends external_root_React_commonjs2_react_commonjs_react
|
|
|
91356
91371
|
this.isAnimating = true;
|
|
91357
91372
|
}
|
|
91358
91373
|
};
|
|
91374
|
+
/* istanbul ignore next */
|
|
91375
|
+
|
|
91359
91376
|
|
|
91360
91377
|
this.autoScroll = () => {
|
|
91361
91378
|
if (this.ref && this.ref.current) {
|
|
@@ -91490,6 +91507,8 @@ class tabs_Tabs extends baseComponent_BaseComponent {
|
|
|
91490
91507
|
this.onTabClick = (activeKey, event) => {
|
|
91491
91508
|
this.foundation.handleTabClick(activeKey, event);
|
|
91492
91509
|
};
|
|
91510
|
+
/* istanbul ignore next */
|
|
91511
|
+
|
|
91493
91512
|
|
|
91494
91513
|
this.rePosChildren = (children, activeKey) => {
|
|
91495
91514
|
const newChildren = [];
|
|
@@ -103753,7 +103772,8 @@ class transfer_Transfer extends baseComponent_BaseComponent {
|
|
|
103753
103772
|
loading,
|
|
103754
103773
|
type,
|
|
103755
103774
|
emptyContent,
|
|
103756
|
-
renderSourcePanel
|
|
103775
|
+
renderSourcePanel,
|
|
103776
|
+
dataSource
|
|
103757
103777
|
} = this.props;
|
|
103758
103778
|
const totalToken = locale.total;
|
|
103759
103779
|
const inSearchMode = inputValue !== '';
|
|
@@ -103811,6 +103831,7 @@ class transfer_Transfer extends baseComponent_BaseComponent {
|
|
|
103811
103831
|
noMatch,
|
|
103812
103832
|
filterData,
|
|
103813
103833
|
sourceData: data,
|
|
103834
|
+
propsDataSource: dataSource,
|
|
103814
103835
|
allChecked: !leftContainesNotInSelected,
|
|
103815
103836
|
showNumber,
|
|
103816
103837
|
inputValue,
|