@douyinfe/semi-ui 2.8.0-beta.0 → 2.8.0-beta.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@douyinfe/semi-ui",
3
- "version": "2.8.0-beta.0",
3
+ "version": "2.8.0-beta.1",
4
4
  "description": "",
5
5
  "main": "lib/cjs/index.js",
6
6
  "module": "lib/es/index.js",
@@ -14,12 +14,12 @@
14
14
  },
15
15
  "dependencies": {
16
16
  "@babel/runtime-corejs3": "^7.15.4",
17
- "@douyinfe/semi-animation": "2.8.0-beta.0",
18
- "@douyinfe/semi-animation-react": "2.8.0-beta.0",
19
- "@douyinfe/semi-foundation": "2.8.0-beta.0",
20
- "@douyinfe/semi-icons": "2.8.0-beta.0",
21
- "@douyinfe/semi-illustrations": "2.8.0-beta.0",
22
- "@douyinfe/semi-theme-default": "2.8.0-beta.0",
17
+ "@douyinfe/semi-animation": "2.8.0-beta.1",
18
+ "@douyinfe/semi-animation-react": "2.8.0-beta.1",
19
+ "@douyinfe/semi-foundation": "2.8.0-beta.1",
20
+ "@douyinfe/semi-icons": "2.8.0-beta.1",
21
+ "@douyinfe/semi-illustrations": "2.8.0-beta.1",
22
+ "@douyinfe/semi-theme-default": "2.8.0-beta.1",
23
23
  "@types/react-window": "^1.8.2",
24
24
  "async-validator": "^3.5.0",
25
25
  "classnames": "^2.2.6",
@@ -69,13 +69,13 @@
69
69
  ],
70
70
  "author": "",
71
71
  "license": "MIT",
72
- "gitHead": "05140034ad843d6a8d3a4a205e71f02b429f78fe",
72
+ "gitHead": "1d03945ec34f2ebd37ab7cc67c4b11786b46cb1f",
73
73
  "devDependencies": {
74
74
  "@babel/plugin-proposal-decorators": "^7.15.8",
75
75
  "@babel/plugin-transform-runtime": "^7.15.8",
76
76
  "@babel/preset-env": "^7.15.8",
77
77
  "@babel/preset-react": "^7.14.5",
78
- "@douyinfe/semi-scss-compile": "2.8.0-beta.0",
78
+ "@douyinfe/semi-scss-compile": "2.8.0-beta.1",
79
79
  "@storybook/addon-knobs": "^6.3.1",
80
80
  "@types/lodash": "^4.14.176",
81
81
  "babel-loader": "^8.2.2",
@@ -504,6 +504,22 @@ describe('Select', () => {
504
504
  expect(optionList.at(0).text()).toEqual('Abc');
505
505
  });
506
506
 
507
+ it('filter = true,label includes regex special character and key it at first', () => {
508
+ let props = {
509
+ filter: true,
510
+ optionList: [{label: 'label++',value: ''}]
511
+ };
512
+ const select = getSelect(props);
513
+ // click to show input
514
+ select.find(`.${BASE_CLASS_PREFIX}-select`).simulate('click', {});
515
+ let inputValue = '+';
516
+ let event = { target: { value: inputValue } };
517
+ select.find('input').simulate('change', event);
518
+ let optionList = select.find(`.${BASE_CLASS_PREFIX}-select-option-list`).children();
519
+ expect(optionList.length).toEqual(1);
520
+ expect(optionList.at(0).text()).toEqual('label++');
521
+ });
522
+
507
523
  it('filter = custom function', () => {
508
524
  let customFilter = (sugInput, option) => {
509
525
  return option.label == 'Hotsoon';