@hi-ui/check-select 4.6.3 → 5.0.0-canary.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 +43 -0
- package/lib/cjs/styles/index.scss.js +1 -1
- package/lib/esm/styles/index.scss.js +1 -1
- package/lib/types/CheckSelect.d.ts +2 -2
- package/package.json +29 -28
package/CHANGELOG.md
CHANGED
@@ -1,5 +1,48 @@
|
|
1
1
|
# @hi-ui/check-select
|
2
2
|
|
3
|
+
## 5.0.0-canary.0
|
4
|
+
|
5
|
+
### Major Changes
|
6
|
+
|
7
|
+
- 225ebaa51: feat: 组件的 package.json 中的 exports 统一加上 types 配置 (5.0)
|
8
|
+
|
9
|
+
### Minor Changes
|
10
|
+
|
11
|
+
- 428716024: <br>
|
12
|
+
- feat(picker): 下拉选择类组件增加 xs 尺寸 (5.0)
|
13
|
+
- feat(input): 输入框组件增加 xs 尺寸 (5.0)
|
14
|
+
|
15
|
+
### Patch Changes
|
16
|
+
|
17
|
+
- Updated dependencies [428716024]
|
18
|
+
- Updated dependencies [225ebaa51]
|
19
|
+
- Updated dependencies [192de8767]
|
20
|
+
- Updated dependencies [428716024]
|
21
|
+
- @hi-ui/input@5.0.0-canary.0
|
22
|
+
- @hi-ui/picker@5.0.0-canary.0
|
23
|
+
- @hi-ui/tag-input@5.0.0-canary.0
|
24
|
+
- @hi-ui/core@5.0.0-canary.0
|
25
|
+
- @hi-ui/use-check@5.0.0-canary.0
|
26
|
+
- @hi-ui/use-children@5.0.0-canary.0
|
27
|
+
- @hi-ui/use-data-source@5.0.0-canary.0
|
28
|
+
- @hi-ui/use-latest@5.0.0-canary.0
|
29
|
+
- @hi-ui/use-search-mode@5.0.0-canary.0
|
30
|
+
- @hi-ui/use-toggle@5.0.0-canary.0
|
31
|
+
- @hi-ui/use-uncontrolled-state@5.0.0-canary.0
|
32
|
+
- @hi-ui/icons@5.0.0-canary.0
|
33
|
+
- @hi-ui/checkbox@5.0.0-canary.0
|
34
|
+
- @hi-ui/highlighter@5.0.0-canary.0
|
35
|
+
- @hi-ui/popper@5.0.0-canary.0
|
36
|
+
- @hi-ui/virtual-list@5.0.0-canary.0
|
37
|
+
- @hi-ui/array-utils@5.0.0-canary.0
|
38
|
+
- @hi-ui/classname@5.0.0-canary.0
|
39
|
+
- @hi-ui/dom-utils@5.0.0-canary.0
|
40
|
+
- @hi-ui/env@5.0.0-canary.0
|
41
|
+
- @hi-ui/func-utils@5.0.0-canary.0
|
42
|
+
- @hi-ui/times@5.0.0-canary.0
|
43
|
+
- @hi-ui/tree-utils@5.0.0-canary.0
|
44
|
+
- @hi-ui/type-assertion@5.0.0-canary.0
|
45
|
+
|
3
46
|
## 4.6.3
|
4
47
|
|
5
48
|
### Patch Changes
|
@@ -12,7 +12,7 @@
|
|
12
12
|
Object.defineProperty(exports, '__esModule', {
|
13
13
|
value: true
|
14
14
|
});
|
15
|
-
var css_248z = ".hi-
|
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);}";
|
16
16
|
var __styleInject__ = require('@hi-ui/style-inject')["default"];
|
17
17
|
__styleInject__(css_248z);
|
18
18
|
exports["default"] = css_248z;
|
@@ -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-
|
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);}";
|
12
12
|
__styleInject__(css_248z);
|
13
13
|
export { css_248z as default };
|
@@ -1,6 +1,6 @@
|
|
1
1
|
import React from 'react';
|
2
2
|
import { UseCheckSelectProps } from './use-check-select';
|
3
|
-
import type { HiBaseHTMLProps } from '@hi-ui/core';
|
3
|
+
import type { HiBaseHTMLProps, HiBaseSizeEnum } from '@hi-ui/core';
|
4
4
|
import { CheckSelectAppearanceEnum, CheckSelectDataItem, CheckSelectItemEventData, CheckSelectMergedItem } from './types';
|
5
5
|
import { TagInputMockProps } from '@hi-ui/tag-input';
|
6
6
|
import { PickerProps } from '@hi-ui/picker';
|
@@ -39,7 +39,7 @@ export interface CheckSelectProps extends Omit<PickerProps, 'trigger' | 'scrolla
|
|
39
39
|
/**
|
40
40
|
* 自定义尺寸
|
41
41
|
*/
|
42
|
-
size?:
|
42
|
+
size?: HiBaseSizeEnum;
|
43
43
|
/**
|
44
44
|
* 自定义渲染节点的 title 内容
|
45
45
|
*/
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@hi-ui/check-select",
|
3
|
-
"version": "
|
3
|
+
"version": "5.0.0-canary.0",
|
4
4
|
"description": "A sub-package for @hi-ui/hiui.",
|
5
5
|
"keywords": [],
|
6
6
|
"author": "HiUI <mi-hiui@xiaomi.com>",
|
@@ -20,7 +20,8 @@
|
|
20
20
|
"exports": {
|
21
21
|
".": {
|
22
22
|
"require": "./lib/cjs/index.js",
|
23
|
-
"default": "./lib/esm/index.js"
|
23
|
+
"default": "./lib/esm/index.js",
|
24
|
+
"types": "./lib/types/index.d.ts"
|
24
25
|
}
|
25
26
|
},
|
26
27
|
"publishConfig": {
|
@@ -43,38 +44,38 @@
|
|
43
44
|
"url": "https://github.com/XiaoMi/hiui/issues"
|
44
45
|
},
|
45
46
|
"dependencies": {
|
46
|
-
"@hi-ui/array-utils": "^
|
47
|
-
"@hi-ui/checkbox": "^
|
48
|
-
"@hi-ui/classname": "^
|
49
|
-
"@hi-ui/dom-utils": "^
|
50
|
-
"@hi-ui/env": "^
|
51
|
-
"@hi-ui/func-utils": "^
|
52
|
-
"@hi-ui/highlighter": "^
|
53
|
-
"@hi-ui/icons": "^
|
54
|
-
"@hi-ui/input": "^
|
55
|
-
"@hi-ui/picker": "^
|
56
|
-
"@hi-ui/popper": "^
|
57
|
-
"@hi-ui/tag-input": "^
|
58
|
-
"@hi-ui/times": "^
|
59
|
-
"@hi-ui/tree-utils": "^
|
60
|
-
"@hi-ui/type-assertion": "^
|
61
|
-
"@hi-ui/use-check": "^
|
62
|
-
"@hi-ui/use-children": "^
|
63
|
-
"@hi-ui/use-data-source": "^
|
64
|
-
"@hi-ui/use-latest": "^
|
65
|
-
"@hi-ui/use-search-mode": "^
|
66
|
-
"@hi-ui/use-toggle": "^
|
67
|
-
"@hi-ui/use-uncontrolled-state": "^
|
68
|
-
"@hi-ui/virtual-list": "^
|
47
|
+
"@hi-ui/array-utils": "^5.0.0-canary.0",
|
48
|
+
"@hi-ui/checkbox": "^5.0.0-canary.0",
|
49
|
+
"@hi-ui/classname": "^5.0.0-canary.0",
|
50
|
+
"@hi-ui/dom-utils": "^5.0.0-canary.0",
|
51
|
+
"@hi-ui/env": "^5.0.0-canary.0",
|
52
|
+
"@hi-ui/func-utils": "^5.0.0-canary.0",
|
53
|
+
"@hi-ui/highlighter": "^5.0.0-canary.0",
|
54
|
+
"@hi-ui/icons": "^5.0.0-canary.0",
|
55
|
+
"@hi-ui/input": "^5.0.0-canary.0",
|
56
|
+
"@hi-ui/picker": "^5.0.0-canary.0",
|
57
|
+
"@hi-ui/popper": "^5.0.0-canary.0",
|
58
|
+
"@hi-ui/tag-input": "^5.0.0-canary.0",
|
59
|
+
"@hi-ui/times": "^5.0.0-canary.0",
|
60
|
+
"@hi-ui/tree-utils": "^5.0.0-canary.0",
|
61
|
+
"@hi-ui/type-assertion": "^5.0.0-canary.0",
|
62
|
+
"@hi-ui/use-check": "^5.0.0-canary.0",
|
63
|
+
"@hi-ui/use-children": "^5.0.0-canary.0",
|
64
|
+
"@hi-ui/use-data-source": "^5.0.0-canary.0",
|
65
|
+
"@hi-ui/use-latest": "^5.0.0-canary.0",
|
66
|
+
"@hi-ui/use-search-mode": "^5.0.0-canary.0",
|
67
|
+
"@hi-ui/use-toggle": "^5.0.0-canary.0",
|
68
|
+
"@hi-ui/use-uncontrolled-state": "^5.0.0-canary.0",
|
69
|
+
"@hi-ui/virtual-list": "^5.0.0-canary.0"
|
69
70
|
},
|
70
71
|
"peerDependencies": {
|
71
|
-
"@hi-ui/core": ">=
|
72
|
+
"@hi-ui/core": ">=5.0.0-canary.0",
|
72
73
|
"react": ">=16.8.6",
|
73
74
|
"react-dom": ">=16.8.6"
|
74
75
|
},
|
75
76
|
"devDependencies": {
|
76
|
-
"@hi-ui/core": "^
|
77
|
-
"@hi-ui/core-css": "^
|
77
|
+
"@hi-ui/core": "^5.0.0-canary.0",
|
78
|
+
"@hi-ui/core-css": "^5.0.0-canary.0",
|
78
79
|
"react": "^17.0.1",
|
79
80
|
"react-dom": "^17.0.1"
|
80
81
|
}
|