@hi-ui/check-select 4.4.0 → 4.4.2-alpha.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/CHANGELOG.md +28 -0
- package/lib/cjs/CheckSelect.js +4 -1
- package/lib/cjs/styles/index.scss.js +1 -1
- package/lib/esm/CheckSelect.js +4 -1
- package/lib/esm/styles/index.scss.js +1 -1
- package/package.json +17 -17
package/CHANGELOG.md
CHANGED
@@ -1,5 +1,33 @@
|
|
1
1
|
# @hi-ui/check-select
|
2
2
|
|
3
|
+
## 4.4.2-alpha.0
|
4
|
+
|
5
|
+
### Patch Changes
|
6
|
+
|
7
|
+
- 1a00f9fc4: build: style-inject(node 环境下有问题) 替换为 @hi-ui/style-inject
|
8
|
+
- Updated dependencies [1a00f9fc4]
|
9
|
+
- @hi-ui/env@4.0.5-alpha.0
|
10
|
+
- @hi-ui/icons@4.0.19-alpha.0
|
11
|
+
- @hi-ui/checkbox@4.0.10-alpha.0
|
12
|
+
- @hi-ui/highlighter@4.0.9-alpha.0
|
13
|
+
- @hi-ui/input@4.1.1-alpha.0
|
14
|
+
- @hi-ui/picker@4.1.6-alpha.0
|
15
|
+
- @hi-ui/popper@4.1.5-alpha.0
|
16
|
+
- @hi-ui/tag-input@4.1.1-alpha.0
|
17
|
+
- @hi-ui/virtual-list@4.0.8-alpha.0
|
18
|
+
- @hi-ui/array-utils@4.0.5-alpha.0
|
19
|
+
- @hi-ui/classname@4.0.5-alpha.0
|
20
|
+
- @hi-ui/use-search-mode@4.1.5-alpha.0
|
21
|
+
- @hi-ui/dom-utils@4.0.8-alpha.0
|
22
|
+
- @hi-ui/core@4.0.9-alpha.0
|
23
|
+
- @hi-ui/func-utils@4.0.5-alpha.0
|
24
|
+
|
25
|
+
## 4.4.1
|
26
|
+
|
27
|
+
### Patch Changes
|
28
|
+
|
29
|
+
- [#2771](https://github.com/XiaoMi/hiui/pull/2771) [`eee27bd5f`](https://github.com/XiaoMi/hiui/commit/eee27bd5f81a89169c1c2dc993b9100731cafcbd) Thanks [@zyprepare](https://github.com/zyprepare)! - fix: 修复 keyword 受控时搜索结果有误的问题
|
30
|
+
|
3
31
|
## 4.4.0
|
4
32
|
|
5
33
|
### Minor Changes
|
package/lib/cjs/CheckSelect.js
CHANGED
@@ -92,7 +92,8 @@ var CheckSelect = /*#__PURE__*/React.forwardRef(function (_a, ref) {
|
|
92
92
|
prefix = _a.prefix,
|
93
93
|
suffix = _a.suffix,
|
94
94
|
onKeyDownProp = _a.onKeyDown,
|
95
|
-
|
95
|
+
keywordProp = _a.keyword,
|
96
|
+
rest = tslib.__rest(_a, ["prefixCls", "role", "className", "children", "disabled", "clearable", "showCheckAll", "showOnlyShowChecked", "placeholder", "displayRender", "onSelect", "height", "itemHeight", "virtual", "visible", "onOpen", "onClose", "appearance", "invalid", "dataSource", "filterOption", "searchable", "render", "renderExtraFooter", "onSearch", "fieldNames", "customRender", "tagInputProps", "size", "prefix", "suffix", "onKeyDown", "keyword"]);
|
96
97
|
var i18n = core.useLocaleContext();
|
97
98
|
var placeholder = typeAssertion.isUndef(placeholderProp) ? i18n.get('checkSelect.placeholder') : placeholderProp;
|
98
99
|
// ************************** Picker ************************* //
|
@@ -147,6 +148,7 @@ var CheckSelect = /*#__PURE__*/React.forwardRef(function (_a, ref) {
|
|
147
148
|
});
|
148
149
|
var _useSearchMode = useSearchMode.useSearchMode({
|
149
150
|
searchable: searchableProp,
|
151
|
+
keyword: keywordProp,
|
150
152
|
strategies: [dataSourceStrategy, customSearchStrategy, filterSearchStrategy]
|
151
153
|
}),
|
152
154
|
stateInSearch = _useSearchMode.state,
|
@@ -286,6 +288,7 @@ var CheckSelect = /*#__PURE__*/React.forwardRef(function (_a, ref) {
|
|
286
288
|
onOpen: menuVisibleAction.on,
|
287
289
|
onClose: menuVisibleAction.off,
|
288
290
|
onKeyDown: domUtils.mockDefaultHandlers(handleKeyDown, onKeyDownProp),
|
291
|
+
keyword: keywordProp,
|
289
292
|
searchable: searchable,
|
290
293
|
scrollable: !inVirtual,
|
291
294
|
onSearch: funcUtils.callAllFuncs(onSearchProp, onSearch),
|
@@ -13,6 +13,6 @@ Object.defineProperty(exports, '__esModule', {
|
|
13
13
|
value: true
|
14
14
|
});
|
15
15
|
var css_248z = ".hi-v4-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-v4-border-radius-md, 4px);cursor: pointer;font-size: var(--hi-v4-text-size-md, 0.875rem);font-weight: var(--hi-v4-text-weight-normal, 400);color: var(--hi-v4-color-gray-700, #1f2733);line-height: var(--hi-v4-text-lineheight-sm, 1.25rem);}.hi-v4-check-select-option__indent {display: inline-block;width: 16px;height: 100%;}.hi-v4-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-v4-spacing-3, 6px) var(--hi-v4-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-v4-check-select-option:hover {background-color: var(--hi-v4-color-gray-100, #f2f4f7);}.hi-v4-check-select-option--focused {background-color: var(--hi-v4-color-gray-100, #f2f4f7);}.hi-v4-check-select-option--disabled {cursor: not-allowed;color: var(--hi-v4-color-gray-500, #929aa6);}.hi-v4-check-select-option-group {display: inline-block;margin-top: var(--hi-v4-spacing-6, 12px);margin-bottom: var(--hi-v4-spacing-2, 4px);padding: var(--hi-v4-spacing-3, 6px) 0 var(--hi-v4-spacing-3, 6px) var(--hi-v4-spacing-3, 6px);font-size: var(--hi-v4-text-size-md, 0.875rem);font-weight: var(--hi-v4-text-weight-normal, 400);color: var(--hi-v4-color-gray-500, #929aa6);line-height: var(--hi-v4-text-lineheight-sm, 1.25rem);}.hi-v4-check-select-option-group:first-child {margin-top: var(--hi-v4-spacing-2, 4px);}";
|
16
|
-
var __styleInject__ = require('style-inject')["default"];
|
16
|
+
var __styleInject__ = require('@hi-ui/style-inject')["default"];
|
17
17
|
__styleInject__(css_248z);
|
18
18
|
exports["default"] = css_248z;
|
package/lib/esm/CheckSelect.js
CHANGED
@@ -78,7 +78,8 @@ var CheckSelect = /*#__PURE__*/forwardRef(function (_a, ref) {
|
|
78
78
|
prefix = _a.prefix,
|
79
79
|
suffix = _a.suffix,
|
80
80
|
onKeyDownProp = _a.onKeyDown,
|
81
|
-
|
81
|
+
keywordProp = _a.keyword,
|
82
|
+
rest = __rest(_a, ["prefixCls", "role", "className", "children", "disabled", "clearable", "showCheckAll", "showOnlyShowChecked", "placeholder", "displayRender", "onSelect", "height", "itemHeight", "virtual", "visible", "onOpen", "onClose", "appearance", "invalid", "dataSource", "filterOption", "searchable", "render", "renderExtraFooter", "onSearch", "fieldNames", "customRender", "tagInputProps", "size", "prefix", "suffix", "onKeyDown", "keyword"]);
|
82
83
|
var i18n = useLocaleContext();
|
83
84
|
var placeholder = isUndef(placeholderProp) ? i18n.get('checkSelect.placeholder') : placeholderProp;
|
84
85
|
// ************************** Picker ************************* //
|
@@ -133,6 +134,7 @@ var CheckSelect = /*#__PURE__*/forwardRef(function (_a, ref) {
|
|
133
134
|
});
|
134
135
|
var _useSearchMode = useSearchMode({
|
135
136
|
searchable: searchableProp,
|
137
|
+
keyword: keywordProp,
|
136
138
|
strategies: [dataSourceStrategy, customSearchStrategy, filterSearchStrategy]
|
137
139
|
}),
|
138
140
|
stateInSearch = _useSearchMode.state,
|
@@ -272,6 +274,7 @@ var CheckSelect = /*#__PURE__*/forwardRef(function (_a, ref) {
|
|
272
274
|
onOpen: menuVisibleAction.on,
|
273
275
|
onClose: menuVisibleAction.off,
|
274
276
|
onKeyDown: mockDefaultHandlers(handleKeyDown, onKeyDownProp),
|
277
|
+
keyword: keywordProp,
|
275
278
|
searchable: searchable,
|
276
279
|
scrollable: !inVirtual,
|
277
280
|
onSearch: callAllFuncs(onSearchProp, onSearch),
|
@@ -7,7 +7,7 @@
|
|
7
7
|
* This source code is licensed under the MIT license found in the
|
8
8
|
* LICENSE file in the root directory of this source tree.
|
9
9
|
*/
|
10
|
-
import __styleInject__ from 'style-inject';
|
10
|
+
import __styleInject__ from '@hi-ui/style-inject';
|
11
11
|
var css_248z = ".hi-v4-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-v4-border-radius-md, 4px);cursor: pointer;font-size: var(--hi-v4-text-size-md, 0.875rem);font-weight: var(--hi-v4-text-weight-normal, 400);color: var(--hi-v4-color-gray-700, #1f2733);line-height: var(--hi-v4-text-lineheight-sm, 1.25rem);}.hi-v4-check-select-option__indent {display: inline-block;width: 16px;height: 100%;}.hi-v4-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-v4-spacing-3, 6px) var(--hi-v4-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-v4-check-select-option:hover {background-color: var(--hi-v4-color-gray-100, #f2f4f7);}.hi-v4-check-select-option--focused {background-color: var(--hi-v4-color-gray-100, #f2f4f7);}.hi-v4-check-select-option--disabled {cursor: not-allowed;color: var(--hi-v4-color-gray-500, #929aa6);}.hi-v4-check-select-option-group {display: inline-block;margin-top: var(--hi-v4-spacing-6, 12px);margin-bottom: var(--hi-v4-spacing-2, 4px);padding: var(--hi-v4-spacing-3, 6px) 0 var(--hi-v4-spacing-3, 6px) var(--hi-v4-spacing-3, 6px);font-size: var(--hi-v4-text-size-md, 0.875rem);font-weight: var(--hi-v4-text-weight-normal, 400);color: var(--hi-v4-color-gray-500, #929aa6);line-height: var(--hi-v4-text-lineheight-sm, 1.25rem);}.hi-v4-check-select-option-group:first-child {margin-top: var(--hi-v4-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": "4.4.0",
|
3
|
+
"version": "4.4.2-alpha.0",
|
4
4
|
"description": "A sub-package for @hi-ui/hiui.",
|
5
5
|
"keywords": [],
|
6
6
|
"author": "HiUI <mi-hiui@xiaomi.com>",
|
@@ -43,18 +43,18 @@
|
|
43
43
|
"url": "https://github.com/XiaoMi/hiui/issues"
|
44
44
|
},
|
45
45
|
"dependencies": {
|
46
|
-
"@hi-ui/array-utils": "^4.0.
|
47
|
-
"@hi-ui/checkbox": "^4.0.
|
48
|
-
"@hi-ui/classname": "^4.0.
|
49
|
-
"@hi-ui/dom-utils": "^4.0.
|
50
|
-
"@hi-ui/env": "^4.0.
|
51
|
-
"@hi-ui/func-utils": "^4.0.
|
52
|
-
"@hi-ui/highlighter": "^4.0.
|
53
|
-
"@hi-ui/icons": "^4.0.
|
54
|
-
"@hi-ui/input": "^4.1.0",
|
55
|
-
"@hi-ui/picker": "^4.1.
|
56
|
-
"@hi-ui/popper": "^4.1.
|
57
|
-
"@hi-ui/tag-input": "^4.1.0",
|
46
|
+
"@hi-ui/array-utils": "^4.0.5-alpha.0",
|
47
|
+
"@hi-ui/checkbox": "^4.0.10-alpha.0",
|
48
|
+
"@hi-ui/classname": "^4.0.5-alpha.0",
|
49
|
+
"@hi-ui/dom-utils": "^4.0.8-alpha.0",
|
50
|
+
"@hi-ui/env": "^4.0.5-alpha.0",
|
51
|
+
"@hi-ui/func-utils": "^4.0.5-alpha.0",
|
52
|
+
"@hi-ui/highlighter": "^4.0.9-alpha.0",
|
53
|
+
"@hi-ui/icons": "^4.0.19-alpha.0",
|
54
|
+
"@hi-ui/input": "^4.1.1-alpha.0",
|
55
|
+
"@hi-ui/picker": "^4.1.6-alpha.0",
|
56
|
+
"@hi-ui/popper": "^4.1.5-alpha.0",
|
57
|
+
"@hi-ui/tag-input": "^4.1.1-alpha.0",
|
58
58
|
"@hi-ui/times": "^4.0.4",
|
59
59
|
"@hi-ui/tree-utils": "^4.1.6",
|
60
60
|
"@hi-ui/type-assertion": "^4.0.4",
|
@@ -62,18 +62,18 @@
|
|
62
62
|
"@hi-ui/use-children": "^4.0.4",
|
63
63
|
"@hi-ui/use-data-source": "^4.0.4",
|
64
64
|
"@hi-ui/use-latest": "^4.0.4",
|
65
|
-
"@hi-ui/use-search-mode": "^4.1.
|
65
|
+
"@hi-ui/use-search-mode": "^4.1.5-alpha.0",
|
66
66
|
"@hi-ui/use-toggle": "^4.0.4",
|
67
67
|
"@hi-ui/use-uncontrolled-state": "^4.0.4",
|
68
|
-
"@hi-ui/virtual-list": "^4.0.
|
68
|
+
"@hi-ui/virtual-list": "^4.0.8-alpha.0"
|
69
69
|
},
|
70
70
|
"peerDependencies": {
|
71
|
-
"@hi-ui/core": ">=4.0.
|
71
|
+
"@hi-ui/core": ">=4.0.9-alpha.0",
|
72
72
|
"react": ">=16.8.6",
|
73
73
|
"react-dom": ">=16.8.6"
|
74
74
|
},
|
75
75
|
"devDependencies": {
|
76
|
-
"@hi-ui/core": "^4.0.
|
76
|
+
"@hi-ui/core": "^4.0.9-alpha.0",
|
77
77
|
"@hi-ui/core-css": "^4.1.5",
|
78
78
|
"react": "^17.0.1",
|
79
79
|
"react-dom": "^17.0.1"
|