@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 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-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);}";
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-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);}";
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?: 'sm' | 'md' | 'lg';
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": "4.6.3",
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": "^4.0.5",
47
- "@hi-ui/checkbox": "^4.0.10",
48
- "@hi-ui/classname": "^4.0.5",
49
- "@hi-ui/dom-utils": "^4.0.7",
50
- "@hi-ui/env": "^4.0.7",
51
- "@hi-ui/func-utils": "^4.0.4",
52
- "@hi-ui/highlighter": "^4.1.0",
53
- "@hi-ui/icons": "^4.0.19",
54
- "@hi-ui/input": "^4.3.0",
55
- "@hi-ui/picker": "^4.1.6",
56
- "@hi-ui/popper": "^4.1.6",
57
- "@hi-ui/tag-input": "^4.1.3",
58
- "@hi-ui/times": "^4.0.4",
59
- "@hi-ui/tree-utils": "^4.1.6",
60
- "@hi-ui/type-assertion": "^4.0.4",
61
- "@hi-ui/use-check": "^4.0.5",
62
- "@hi-ui/use-children": "^4.0.4",
63
- "@hi-ui/use-data-source": "^4.0.4",
64
- "@hi-ui/use-latest": "^4.0.4",
65
- "@hi-ui/use-search-mode": "^4.2.0",
66
- "@hi-ui/use-toggle": "^4.0.4",
67
- "@hi-ui/use-uncontrolled-state": "^4.0.4",
68
- "@hi-ui/virtual-list": "^4.0.8"
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": ">=4.0.8",
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": "^4.0.8",
77
- "@hi-ui/core-css": "^4.1.5",
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
  }