@hi-ui/check-select 5.0.0-canary.2 → 5.0.0-canary.4

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-select
2
2
 
3
+ ## 5.0.0-canary.4
4
+
5
+ ### Patch Changes
6
+
7
+ - a89b3b3ae: fix: 修改组件问题 (5.0)
8
+
9
+ ## 5.0.0-canary.3
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.2
4
23
 
5
24
  ### Minor Changes
@@ -178,7 +178,7 @@ var CheckSelect = /*#__PURE__*/React.forwardRef(function (_a, ref) {
178
178
  checked: node.checked,
179
179
  disabled: node.disabled
180
180
  }, /*#__PURE__*/React__default["default"].createElement(highlighter.Highlighter, {
181
- keyword: searchValue
181
+ keyword: new RegExp(searchValue, 'ig')
182
182
  }, node.title))) : true;
183
183
  return ret;
184
184
  }, [titleRender, searchValue, searchMode]);
@@ -12,7 +12,7 @@
12
12
  Object.defineProperty(exports, '__esModule', {
13
13
  value: true
14
14
  });
15
- var css_248z = ".hi-v5-check-select-option {-webkit-box-sizing: border-box;box-sizing: border-box;width: 100%;display: -webkit-box;display: -ms-flexbox;display: flex;-webkit-box-align: center;-ms-flex-align: center;align-items: center;position: relative;border-radius: var(--hi-v5-border-radius-lg, 6px);cursor: pointer;font-size: var(--hi-v5-text-size-md, 0.875rem);font-weight: var(--hi-v5-text-weight-normal, 400);color: var(--hi-v5-color-gray-700, #1a1d26);line-height: var(--hi-v5-text-lineheight-sm, 1.25rem);}.hi-v5-check-select-option__indent {display: inline-block;width: 16px;height: 100%;}.hi-v5-check-select-option__title {display: -webkit-box;display: -ms-flexbox;display: flex;-webkit-box-align: center;-ms-flex-align: center;align-items: center;-webkit-box-sizing: border-box;box-sizing: border-box;width: 100%;padding: var(--hi-v5-spacing-3, 6px) var(--hi-v5-spacing-3, 6px);font-size: inherit;-webkit-text-size-adjust: none;-moz-text-size-adjust: none;-ms-text-size-adjust: none;text-size-adjust: none;font-weight: inherit;color: inherit;line-height: inherit;}.hi-v5-check-select-option:hover {background-color: var(--hi-v5-color-gray-100, #ebeff5);}.hi-v5-check-select-option--focused {background-color: var(--hi-v5-color-gray-100, #ebeff5);}.hi-v5-check-select-option--disabled {cursor: not-allowed;color: var(--hi-v5-color-gray-500, #737680);}.hi-v5-check-select-option-group {display: inline-block;margin-top: var(--hi-v5-spacing-6, 12px);margin-bottom: var(--hi-v5-spacing-2, 4px);padding: var(--hi-v5-spacing-3, 6px) 0 var(--hi-v5-spacing-3, 6px) var(--hi-v5-spacing-3, 6px);font-size: var(--hi-v5-text-size-md, 0.875rem);font-weight: var(--hi-v5-text-weight-normal, 400);color: var(--hi-v5-color-gray-500, #737680);line-height: var(--hi-v5-text-lineheight-sm, 1.25rem);}.hi-v5-check-select-option-group:first-child {margin-top: var(--hi-v5-spacing-2, 4px);}";
15
+ var css_248z = ".hi-v5-check-select-option {-webkit-box-sizing: border-box;box-sizing: border-box;width: 100%;display: -webkit-box;display: -ms-flexbox;display: flex;-webkit-box-align: center;-ms-flex-align: center;align-items: center;position: relative;border-radius: var(--hi-v5-border-radius-md, 4px);cursor: pointer;font-size: var(--hi-v5-text-size-md, 0.875rem);font-weight: var(--hi-v5-text-weight-normal, 400);color: var(--hi-v5-color-gray-700, #1a1d26);line-height: var(--hi-v5-text-lineheight-sm, 1.25rem);}.hi-v5-check-select-option__indent {display: inline-block;width: 16px;height: 100%;}.hi-v5-check-select-option__title {display: -webkit-box;display: -ms-flexbox;display: flex;-webkit-box-align: center;-ms-flex-align: center;align-items: center;-webkit-box-sizing: border-box;box-sizing: border-box;width: 100%;padding: var(--hi-v5-spacing-3, 6px) var(--hi-v5-spacing-3, 6px);font-size: inherit;-webkit-text-size-adjust: none;-moz-text-size-adjust: none;-ms-text-size-adjust: none;text-size-adjust: none;font-weight: inherit;color: inherit;line-height: inherit;}.hi-v5-check-select-option:hover {background-color: var(--hi-v5-color-gray-100, #ebeff5);}.hi-v5-check-select-option--focused {background-color: var(--hi-v5-color-gray-100, #ebeff5);}.hi-v5-check-select-option--disabled {cursor: not-allowed;color: var(--hi-v5-color-gray-500, #737680);}.hi-v5-check-select-option-group {display: inline-block;margin-top: var(--hi-v5-spacing-6, 12px);margin-bottom: var(--hi-v5-spacing-2, 4px);padding: var(--hi-v5-spacing-3, 6px) 0 var(--hi-v5-spacing-3, 6px) var(--hi-v5-spacing-3, 6px);font-size: var(--hi-v5-text-size-md, 0.875rem);font-weight: var(--hi-v5-text-weight-normal, 400);color: var(--hi-v5-color-gray-500, #737680);line-height: var(--hi-v5-text-lineheight-sm, 1.25rem);}.hi-v5-check-select-option-group:first-child {margin-top: var(--hi-v5-spacing-2, 4px);}";
16
16
  var __styleInject__ = require('@hi-ui/style-inject')["default"];
17
17
  __styleInject__(css_248z);
18
18
  exports["default"] = css_248z;
@@ -164,7 +164,7 @@ var CheckSelect = /*#__PURE__*/forwardRef(function (_a, ref) {
164
164
  checked: node.checked,
165
165
  disabled: node.disabled
166
166
  }, /*#__PURE__*/React.createElement(Highlighter, {
167
- keyword: searchValue
167
+ keyword: new RegExp(searchValue, 'ig')
168
168
  }, node.title))) : true;
169
169
  return ret;
170
170
  }, [titleRender, searchValue, searchMode]);
@@ -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 = ".hi-v5-check-select-option {-webkit-box-sizing: border-box;box-sizing: border-box;width: 100%;display: -webkit-box;display: -ms-flexbox;display: flex;-webkit-box-align: center;-ms-flex-align: center;align-items: center;position: relative;border-radius: var(--hi-v5-border-radius-lg, 6px);cursor: pointer;font-size: var(--hi-v5-text-size-md, 0.875rem);font-weight: var(--hi-v5-text-weight-normal, 400);color: var(--hi-v5-color-gray-700, #1a1d26);line-height: var(--hi-v5-text-lineheight-sm, 1.25rem);}.hi-v5-check-select-option__indent {display: inline-block;width: 16px;height: 100%;}.hi-v5-check-select-option__title {display: -webkit-box;display: -ms-flexbox;display: flex;-webkit-box-align: center;-ms-flex-align: center;align-items: center;-webkit-box-sizing: border-box;box-sizing: border-box;width: 100%;padding: var(--hi-v5-spacing-3, 6px) var(--hi-v5-spacing-3, 6px);font-size: inherit;-webkit-text-size-adjust: none;-moz-text-size-adjust: none;-ms-text-size-adjust: none;text-size-adjust: none;font-weight: inherit;color: inherit;line-height: inherit;}.hi-v5-check-select-option:hover {background-color: var(--hi-v5-color-gray-100, #ebeff5);}.hi-v5-check-select-option--focused {background-color: var(--hi-v5-color-gray-100, #ebeff5);}.hi-v5-check-select-option--disabled {cursor: not-allowed;color: var(--hi-v5-color-gray-500, #737680);}.hi-v5-check-select-option-group {display: inline-block;margin-top: var(--hi-v5-spacing-6, 12px);margin-bottom: var(--hi-v5-spacing-2, 4px);padding: var(--hi-v5-spacing-3, 6px) 0 var(--hi-v5-spacing-3, 6px) var(--hi-v5-spacing-3, 6px);font-size: var(--hi-v5-text-size-md, 0.875rem);font-weight: var(--hi-v5-text-weight-normal, 400);color: var(--hi-v5-color-gray-500, #737680);line-height: var(--hi-v5-text-lineheight-sm, 1.25rem);}.hi-v5-check-select-option-group:first-child {margin-top: var(--hi-v5-spacing-2, 4px);}";
11
+ var css_248z = ".hi-v5-check-select-option {-webkit-box-sizing: border-box;box-sizing: border-box;width: 100%;display: -webkit-box;display: -ms-flexbox;display: flex;-webkit-box-align: center;-ms-flex-align: center;align-items: center;position: relative;border-radius: var(--hi-v5-border-radius-md, 4px);cursor: pointer;font-size: var(--hi-v5-text-size-md, 0.875rem);font-weight: var(--hi-v5-text-weight-normal, 400);color: var(--hi-v5-color-gray-700, #1a1d26);line-height: var(--hi-v5-text-lineheight-sm, 1.25rem);}.hi-v5-check-select-option__indent {display: inline-block;width: 16px;height: 100%;}.hi-v5-check-select-option__title {display: -webkit-box;display: -ms-flexbox;display: flex;-webkit-box-align: center;-ms-flex-align: center;align-items: center;-webkit-box-sizing: border-box;box-sizing: border-box;width: 100%;padding: var(--hi-v5-spacing-3, 6px) var(--hi-v5-spacing-3, 6px);font-size: inherit;-webkit-text-size-adjust: none;-moz-text-size-adjust: none;-ms-text-size-adjust: none;text-size-adjust: none;font-weight: inherit;color: inherit;line-height: inherit;}.hi-v5-check-select-option:hover {background-color: var(--hi-v5-color-gray-100, #ebeff5);}.hi-v5-check-select-option--focused {background-color: var(--hi-v5-color-gray-100, #ebeff5);}.hi-v5-check-select-option--disabled {cursor: not-allowed;color: var(--hi-v5-color-gray-500, #737680);}.hi-v5-check-select-option-group {display: inline-block;margin-top: var(--hi-v5-spacing-6, 12px);margin-bottom: var(--hi-v5-spacing-2, 4px);padding: var(--hi-v5-spacing-3, 6px) 0 var(--hi-v5-spacing-3, 6px) var(--hi-v5-spacing-3, 6px);font-size: var(--hi-v5-text-size-md, 0.875rem);font-weight: var(--hi-v5-text-weight-normal, 400);color: var(--hi-v5-color-gray-500, #737680);line-height: var(--hi-v5-text-lineheight-sm, 1.25rem);}.hi-v5-check-select-option-group:first-child {margin-top: var(--hi-v5-spacing-2, 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-select",
3
- "version": "5.0.0-canary.2",
3
+ "version": "5.0.0-canary.4",
4
4
  "description": "A sub-package for @hi-ui/hiui.",
5
5
  "keywords": [],
6
6
  "author": "HiUI <mi-hiui@xiaomi.com>",
@@ -53,9 +53,9 @@
53
53
  "@hi-ui/highlighter": "^5.0.0-canary.0",
54
54
  "@hi-ui/icons": "^5.0.0-canary.0",
55
55
  "@hi-ui/input": "^5.0.0-canary.2",
56
- "@hi-ui/picker": "^5.0.0-canary.2",
56
+ "@hi-ui/picker": "^5.0.0-canary.3",
57
57
  "@hi-ui/popper": "^5.0.0-canary.1",
58
- "@hi-ui/tag-input": "^5.0.0-canary.2",
58
+ "@hi-ui/tag-input": "^5.0.0-canary.4",
59
59
  "@hi-ui/times": "^5.0.0-canary.0",
60
60
  "@hi-ui/tree-utils": "^5.0.0-canary.0",
61
61
  "@hi-ui/type-assertion": "^5.0.0-canary.0",
@@ -76,7 +76,7 @@
76
76
  },
77
77
  "devDependencies": {
78
78
  "@hi-ui/core": "^5.0.0-canary.0",
79
- "@hi-ui/core-css": "^5.0.0-canary.0",
79
+ "@hi-ui/core-css": "^5.0.0-canary.4",
80
80
  "react": "^17.0.1",
81
81
  "react-dom": "^17.0.1"
82
82
  }