@hi-ui/check-tree-select 5.0.0-canary.1 → 5.0.0-canary.3

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/CHANGELOG.md CHANGED
@@ -1,5 +1,24 @@
1
1
  # @hi-ui/check-tree-select
2
2
 
3
+ ## 5.0.0-canary.3
4
+
5
+ ### Patch Changes
6
+
7
+ - a89b3b3ae: fix: 修改组件问题 (5.0)
8
+
9
+ ## 5.0.0-canary.2
10
+
11
+ ### Patch Changes
12
+
13
+ - df3615e78: <br>
14
+ - style(tag-input): 间距调整 (5.0)
15
+ - style(select): 选择类组件选项圆角改为 4px (5.0)
16
+ - style(picker): 搜索框样式调整 (5.0)
17
+ - Updated dependencies [3cb3377dc]
18
+ - Updated dependencies [df3615e78]
19
+ - @hi-ui/picker@5.0.0-canary.3
20
+ - @hi-ui/tag-input@5.0.0-canary.4
21
+
3
22
  ## 5.0.0-canary.1
4
23
 
5
24
  ### Minor Changes
@@ -214,9 +214,9 @@ var CheckTreeSelect = /*#__PURE__*/React.forwardRef(function (_a, ref) {
214
214
  }
215
215
  // 本地搜索执行默认高亮规则
216
216
  var highlight = !!searchValue && (searchMode === 'highlight' || searchMode === 'filter');
217
- var ret = highlight ? /*#__PURE__*/React__default["default"].createElement(highlighter.Highlighter, {
218
- keyword: searchValue
219
- }, node.title) : true;
217
+ var ret = highlight ? ( /*#__PURE__*/React__default["default"].createElement(highlighter.Highlighter, {
218
+ keyword: new RegExp(searchValue, 'ig')
219
+ }, node.title)) : true;
220
220
  return ret;
221
221
  }, [titleRender, searchValue, searchMode]);
222
222
  var shouldUseSearch = !!searchValue && !hasError;
@@ -12,7 +12,7 @@
12
12
  Object.defineProperty(exports, '__esModule', {
13
13
  value: true
14
14
  });
15
- var css_248z = "";
15
+ var css_248z = ".hi-v5-check-tree-select__tree .hi-v5-tree-node__wrap {border-radius: var(--hi-v5-border-radius-md, 4px);}";
16
16
  var __styleInject__ = require('@hi-ui/style-inject')["default"];
17
17
  __styleInject__(css_248z);
18
18
  exports["default"] = css_248z;
@@ -201,9 +201,9 @@ var CheckTreeSelect = /*#__PURE__*/forwardRef(function (_a, ref) {
201
201
  }
202
202
  // 本地搜索执行默认高亮规则
203
203
  var highlight = !!searchValue && (searchMode === 'highlight' || searchMode === 'filter');
204
- var ret = highlight ? /*#__PURE__*/React.createElement(Highlighter, {
205
- keyword: searchValue
206
- }, node.title) : true;
204
+ var ret = highlight ? ( /*#__PURE__*/React.createElement(Highlighter, {
205
+ keyword: new RegExp(searchValue, 'ig')
206
+ }, node.title)) : true;
207
207
  return ret;
208
208
  }, [titleRender, searchValue, searchMode]);
209
209
  var shouldUseSearch = !!searchValue && !hasError;
@@ -8,6 +8,6 @@
8
8
  * LICENSE file in the root directory of this source tree.
9
9
  */
10
10
  import __styleInject__ from '@hi-ui/style-inject';
11
- var css_248z = "";
11
+ var css_248z = ".hi-v5-check-tree-select__tree .hi-v5-tree-node__wrap {border-radius: var(--hi-v5-border-radius-md, 4px);}";
12
12
  __styleInject__(css_248z);
13
13
  export { css_248z as default };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hi-ui/check-tree-select",
3
- "version": "5.0.0-canary.1",
3
+ "version": "5.0.0-canary.3",
4
4
  "description": "A sub-package for @hi-ui/hiui.",
5
5
  "keywords": [],
6
6
  "author": "HiUI <mi-hiui@xiaomi.com>",
@@ -51,9 +51,9 @@
51
51
  "@hi-ui/func-utils": "^5.0.0-canary.0",
52
52
  "@hi-ui/highlighter": "^5.0.0-canary.0",
53
53
  "@hi-ui/icons": "^5.0.0-canary.0",
54
- "@hi-ui/picker": "^5.0.0-canary.0",
54
+ "@hi-ui/picker": "^5.0.0-canary.3",
55
55
  "@hi-ui/popper": "^5.0.0-canary.0",
56
- "@hi-ui/tag-input": "^5.0.0-canary.2",
56
+ "@hi-ui/tag-input": "^5.0.0-canary.4",
57
57
  "@hi-ui/tree": "^5.0.0-canary.0",
58
58
  "@hi-ui/tree-utils": "^5.0.0-canary.0",
59
59
  "@hi-ui/type-assertion": "^5.0.0-canary.0",
@@ -70,7 +70,7 @@
70
70
  },
71
71
  "devDependencies": {
72
72
  "@hi-ui/core": "^5.0.0-canary.0",
73
- "@hi-ui/core-css": "^5.0.0-canary.0",
73
+ "@hi-ui/core-css": "^5.0.0-canary.4",
74
74
  "react": "^17.0.1",
75
75
  "react-dom": "^17.0.1"
76
76
  }