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

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,160 +1,189 @@
1
1
  # @hi-ui/check-tree-select
2
2
 
3
- ## 5.0.0-canary.9
3
+ ## 5.0.0-experimental.1
4
4
 
5
5
  ### Patch Changes
6
6
 
7
- - 643c0e09f: style(picker): 移除 picker 组件中的 \_\_text 样式定义 (5.0)
8
- - Updated dependencies [d7d87fb57]
9
- - Updated dependencies [b8c19048f]
10
- - @hi-ui/tag-input@5.0.0-canary.11
7
+ - 8f23e9322: style: 表单类组件统一调整后缀颜色、placeholder 颜色 (5.0)
8
+ - 发布 hiui experimental 版本
9
+ - fe579e212: style(tree): update class names for tree node elements in SCSS (5.0)
10
+ - Updated dependencies [8f23e9322]
11
+ - Updated dependencies [b27483796]
12
+ - Updated dependencies [900c6c2f0]
13
+ - Updated dependencies
14
+ - Updated dependencies [fe579e212]
15
+ - @hi-ui/picker@5.0.0-experimental.1
16
+ - @hi-ui/tag-input@5.0.0-experimental.1
17
+ - @hi-ui/tree@5.0.0-experimental.1
11
18
 
12
- ## 5.0.0-canary.8
19
+ ## 5.0.0-experimental.0
13
20
 
14
- ### Patch Changes
21
+ ### Major Changes
15
22
 
16
- - dc1311a91: fix(check-tree-select): 完善 dataSource 功能,支持搜索结果高亮和展开 (#3247)
17
- - Updated dependencies [dc1311a91]
18
- - @hi-ui/use-search-mode@5.0.0-canary.3
23
+ - 8f3aa85e4: feat: 组件的 package.json 中的 exports 统一加上 types 配置 (5.0)
19
24
 
20
- ## 5.0.0-canary.7
25
+ ### Minor Changes
21
26
 
22
- ### Patch Changes
27
+ - b9989e482: feat(picker): 增加 clearSearchOnClosed api 默认是 false (5.0)
28
+ - f1ab51725: <br>
29
+ - feat(picker): 下拉选择类组件增加 xs 尺寸 (5.0)
30
+ - feat(input): 输入框组件增加 xs 尺寸 (5.0)
31
+ - 6dca7795c: feat: 下拉选择组件增加 showIndicator 参数 & 修改 appearance 中的 unset 样式 (5.0)
32
+ - 77d969c2e: feat: 下拉选择类组件 appearance 参数增加 contained 类型 (5.0)
33
+ - 58ad82e94: feat: 输入框和选择器组件增加 borderless 形态 (5.0)
23
34
 
24
- - 807b7c644: fix(tag-input): 修复 contained 模式下 displayRender 设置无效问题 (5.0)
25
- - Updated dependencies [807b7c644]
26
- - @hi-ui/tag-input@5.0.0-canary.10
35
+ ### Patch Changes
27
36
 
28
- ## 5.0.0-canary.6
37
+ - 1662753e0: style: fix ui bug (5.0)
38
+ - cf89262c7: style(picker): 移除 picker 组件中的 \_\_text 样式定义 (5.0)
39
+ - cb9d8f6db: fix(tag-input): 修复 contained 模式下 displayRender 设置无效问题 (5.0)
40
+ - be5a59325: style: 修改样式问题 (5.0)
41
+ - 79ea480f3: feat(global-context): 增加 size api 全局配置 (5.0)
42
+ - 2e56529f7: styles: 主题定制功能完善&&样式变量化写法改造&&兼容 RTL (5.0)
43
+ - eb718e940: fix: 修改组件问题 (5.0)
44
+ - de8d058dc: perf: 对下拉选择类组件的 customRender 的内容增加 memoization 以优化性能 (5.0)
45
+ - 5210770d9: feat(picker): add header api (5.0)
46
+ - 33da3144e: build: 将 package.json 中 exports 配置中的 types 配置放在最上面 (5.0)
47
+ - e7b64347e: style(tag-input): 增加 flex-wrap 属性以优化标签换行展示 (5.0)
48
+ - 0a4e90dbd: <br>
49
+ - style(tag-input): 间距调整 (5.0)
50
+ - style(select): 选择类组件选项圆角改为 4px (5.0)
51
+ - style(picker): 搜索框样式调整 (5.0)
52
+ - 99801c2d1: fix: 修复 UI 问题 (5.0)
53
+ - Updated dependencies [0b34e1c15]
54
+ - Updated dependencies [4a31cea53]
55
+ - Updated dependencies [1e226cd66]
56
+ - Updated dependencies [cce71cdfa]
57
+ - Updated dependencies [b9989e482]
58
+ - Updated dependencies [9b34d99bc]
59
+ - Updated dependencies [1662753e0]
60
+ - Updated dependencies [122d1d859]
61
+ - Updated dependencies [f1ab51725]
62
+ - Updated dependencies [41552be0b]
63
+ - Updated dependencies [8c0ee78f0]
64
+ - Updated dependencies [9b34d99bc]
65
+ - Updated dependencies [8f3aa85e4]
66
+ - Updated dependencies [f4fc0ef30]
67
+ - Updated dependencies [cb9d8f6db]
68
+ - Updated dependencies [29cae09ea]
69
+ - Updated dependencies [fd4c20bbd]
70
+ - Updated dependencies [be5a59325]
71
+ - Updated dependencies [71fc15e5c]
72
+ - Updated dependencies [f8acad4e1]
73
+ - Updated dependencies [79ea480f3]
74
+ - Updated dependencies [2e56529f7]
75
+ - Updated dependencies [277c5033a]
76
+ - Updated dependencies [4e0ed3a31]
77
+ - Updated dependencies [95abba983]
78
+ - Updated dependencies [4a31cea53]
79
+ - Updated dependencies [98df634ac]
80
+ - Updated dependencies [976ec929d]
81
+ - Updated dependencies [223bd1397]
82
+ - Updated dependencies [f1ab51725]
83
+ - Updated dependencies [6dca7795c]
84
+ - Updated dependencies [7b956b1eb]
85
+ - Updated dependencies [5210770d9]
86
+ - Updated dependencies [e2d184e74]
87
+ - Updated dependencies [77d969c2e]
88
+ - Updated dependencies [9ecf354ba]
89
+ - Updated dependencies [e42e2badf]
90
+ - Updated dependencies [33da3144e]
91
+ - Updated dependencies [e7b64347e]
92
+ - Updated dependencies [7f3abee55]
93
+ - Updated dependencies [6fcda9bf2]
94
+ - Updated dependencies [0a4e90dbd]
95
+ - Updated dependencies [58ad82e94]
96
+ - Updated dependencies [a0f0c9d6b]
97
+ - Updated dependencies [4a31cea53]
98
+ - Updated dependencies [f2be367e9]
99
+ - Updated dependencies [1fae66f2d]
100
+ - Updated dependencies [1972fd16a]
101
+ - Updated dependencies [99801c2d1]
102
+ - Updated dependencies [86910f5e2]
103
+ - Updated dependencies [cb7b794d0]
104
+ - @hi-ui/picker@5.0.0-experimental.0
105
+ - @hi-ui/tree@5.0.0-experimental.0
106
+ - @hi-ui/popper@5.0.0-experimental.0
107
+ - @hi-ui/tag-input@5.0.0-experimental.0
108
+ - @hi-ui/icons@5.0.0-experimental.0
109
+ - @hi-ui/core@5.0.0-experimental.0
110
+ - @hi-ui/use-check@5.0.0-experimental.0
111
+ - @hi-ui/use-data-source@5.0.0-experimental.0
112
+ - @hi-ui/use-search-mode@5.0.0-experimental.0
113
+ - @hi-ui/use-toggle@5.0.0-experimental.0
114
+ - @hi-ui/use-uncontrolled-state@5.0.0-experimental.0
115
+ - @hi-ui/checkbox@5.0.0-experimental.0
116
+ - @hi-ui/highlighter@5.0.0-experimental.0
117
+ - @hi-ui/array-utils@5.0.0-experimental.0
118
+ - @hi-ui/classname@5.0.0-experimental.0
119
+ - @hi-ui/env@5.0.0-experimental.0
120
+ - @hi-ui/func-utils@5.0.0-experimental.0
121
+ - @hi-ui/tree-utils@5.0.0-experimental.0
122
+ - @hi-ui/type-assertion@5.0.0-experimental.0
123
+
124
+ ## 4.7.6
29
125
 
30
126
  ### Patch Changes
31
127
 
32
- - chore: rebase master (5.0)
33
- - Updated dependencies
34
- - @hi-ui/core@5.0.0-canary.2
35
- - @hi-ui/use-check@5.0.0-canary.2
36
- - @hi-ui/use-data-source@5.0.0-canary.2
37
- - @hi-ui/use-search-mode@5.0.0-canary.2
38
- - @hi-ui/use-toggle@5.0.0-canary.2
39
- - @hi-ui/use-uncontrolled-state@5.0.0-canary.2
40
- - @hi-ui/icons@5.0.0-canary.2
41
- - @hi-ui/checkbox@5.0.0-canary.2
42
- - @hi-ui/highlighter@5.0.0-canary.2
43
- - @hi-ui/picker@5.0.0-canary.8
44
- - @hi-ui/popper@5.0.0-canary.3
45
- - @hi-ui/tag-input@5.0.0-canary.8
46
- - @hi-ui/tree@5.0.0-canary.3
47
- - @hi-ui/array-utils@5.0.0-canary.2
48
- - @hi-ui/classname@5.0.0-canary.2
49
- - @hi-ui/env@5.0.0-canary.2
50
- - @hi-ui/func-utils@5.0.0-canary.2
51
- - @hi-ui/tree-utils@5.0.0-canary.2
52
- - @hi-ui/type-assertion@5.0.0-canary.2
53
-
54
- ## 5.0.0-canary.5
128
+ - [#3409](https://github.com/XiaoMi/hiui/pull/3409) [`467701f`](https://github.com/XiaoMi/hiui/commit/467701f925d0bb0709e3fd17ca6e178fa1ca01c6) Thanks [@zyprepare](https://github.com/zyprepare)! - refactor(check-tree-select): 搜索和全选勾选逻辑调整,过滤后的结果勾选态还是按照全量数据进行计算,全选态根据过滤后的数据进行计算 (#3398)
55
129
 
56
- ### Patch Changes
130
+ - Updated dependencies [[`b2de718e9`](https://github.com/XiaoMi/hiui/commit/b2de718e9fd12dbe8fa1d762c6924696c19bc924)]:
131
+ - @hi-ui/core@4.0.11
57
132
 
58
- - 4b09e728b: build: 将 package.json 中 exports 配置中的 types 配置放在最上面 (5.0)
59
- - Updated dependencies [ba7c324c2]
60
- - Updated dependencies [ba7c324c2]
61
- - Updated dependencies [4b09e728b]
62
- - Updated dependencies [ba7c324c2]
63
- - @hi-ui/tree@5.0.0-canary.2
64
- - @hi-ui/picker@5.0.0-canary.7
65
- - @hi-ui/core@5.0.0-canary.1
66
- - @hi-ui/use-check@5.0.0-canary.1
67
- - @hi-ui/use-data-source@5.0.0-canary.1
68
- - @hi-ui/use-search-mode@5.0.0-canary.1
69
- - @hi-ui/use-toggle@5.0.0-canary.1
70
- - @hi-ui/use-uncontrolled-state@5.0.0-canary.1
71
- - @hi-ui/icons@5.0.0-canary.1
72
- - @hi-ui/checkbox@5.0.0-canary.1
73
- - @hi-ui/highlighter@5.0.0-canary.1
74
- - @hi-ui/popper@5.0.0-canary.2
75
- - @hi-ui/tag-input@5.0.0-canary.7
76
- - @hi-ui/array-utils@5.0.0-canary.1
77
- - @hi-ui/classname@5.0.0-canary.1
78
- - @hi-ui/env@5.0.0-canary.1
79
- - @hi-ui/func-utils@5.0.0-canary.1
80
- - @hi-ui/tree-utils@5.0.0-canary.1
81
- - @hi-ui/type-assertion@5.0.0-canary.1
82
-
83
- ## 5.0.0-canary.4
133
+ ## 4.7.5
84
134
 
85
135
  ### Patch Changes
86
136
 
87
- - 40f819417: fix: 修复 UI 问题 (5.0)
88
- - Updated dependencies [40f819417]
89
- - @hi-ui/tag-input@5.0.0-canary.6
137
+ - [#3364](https://github.com/XiaoMi/hiui/pull/3364) [`06d6dcf`](https://github.com/XiaoMi/hiui/commit/06d6dcff5282bb702791ab87e0690edc3828da5c) Thanks [@fcppddl](https://github.com/fcppddl)! - feat(check-tree-select): 支持自定义下拉菜单底部渲染 (#3363)
90
138
 
91
- ## 5.0.0-canary.3
139
+ ## 4.7.4
92
140
 
93
141
  ### Patch Changes
94
142
 
95
- - a89b3b3ae: fix: 修改组件问题 (5.0)
143
+ - [#3336](https://github.com/XiaoMi/hiui/pull/3336) [`9356e8c`](https://github.com/XiaoMi/hiui/commit/9356e8ca43ae75f2886bd5225723ee9afad501a6) Thanks [@zyprepare](https://github.com/zyprepare)! - fix(use-search-mode): 优化初次搜索逻辑 (#3335)
96
144
 
97
- ## 5.0.0-canary.2
145
+ - Updated dependencies [[`9356e8c`](https://github.com/XiaoMi/hiui/commit/9356e8ca43ae75f2886bd5225723ee9afad501a6)]:
146
+ - @hi-ui/use-search-mode@4.2.3
98
147
 
99
- ### Patch Changes
148
+ ## 4.7.3
100
149
 
101
- - df3615e78: <br>
102
- - style(tag-input): 间距调整 (5.0)
103
- - style(select): 选择类组件选项圆角改为 4px (5.0)
104
- - style(picker): 搜索框样式调整 (5.0)
105
- - Updated dependencies [3cb3377dc]
106
- - Updated dependencies [df3615e78]
107
- - @hi-ui/picker@5.0.0-canary.3
108
- - @hi-ui/tag-input@5.0.0-canary.4
150
+ ### Patch Changes
109
151
 
110
- ## 5.0.0-canary.1
152
+ - [#3324](https://github.com/XiaoMi/hiui/pull/3324) [`8db6414b6`](https://github.com/XiaoMi/hiui/commit/8db6414b635ef561c7487a6f713c21a388d85739) Thanks [@zyprepare](https://github.com/zyprepare)! - fix(check-tree-select): 更新全选逻辑,使用 dataMemo 替代 flattedData,确保状态正确 (#3323)
111
153
 
112
- ### Minor Changes
154
+ - Updated dependencies [[`8db6414b6`](https://github.com/XiaoMi/hiui/commit/8db6414b635ef561c7487a6f713c21a388d85739)]:
155
+ - @hi-ui/use-search-mode@4.2.2
113
156
 
114
- - 6c4bf35af: feat: 下拉选择类组件 appearance 参数增加 contained 类型 (5.0)
157
+ ## 4.7.2
115
158
 
116
159
  ### Patch Changes
117
160
 
118
- - Updated dependencies [6c4bf35af]
119
- - @hi-ui/tag-input@5.0.0-canary.2
161
+ - [#3249](https://github.com/XiaoMi/hiui/pull/3249) [`dc1311a91`](https://github.com/XiaoMi/hiui/commit/dc1311a917518bc5debef755a9fcd4e33fb58790) Thanks [@zyprepare](https://github.com/zyprepare)! - fix(check-tree-select): 完善 dataSource 功能,支持搜索结果高亮和展开 (#3247)
120
162
 
121
- ## 5.0.0-canary.0
163
+ - Updated dependencies [[`dc1311a91`](https://github.com/XiaoMi/hiui/commit/dc1311a917518bc5debef755a9fcd4e33fb58790), [`b8c19048f`](https://github.com/XiaoMi/hiui/commit/b8c19048fe25147f344be4cd951740593aee8d12)]:
164
+ - @hi-ui/use-search-mode@4.2.1
165
+ - @hi-ui/tag-input@4.1.4
122
166
 
123
- ### Major Changes
167
+ ## 4.7.1
124
168
 
125
- - 225ebaa51: feat: 组件的 package.json 中的 exports 统一加上 types 配置 (5.0)
169
+ ### Patch Changes
170
+
171
+ - [#3196](https://github.com/XiaoMi/hiui/pull/3196) [`80a909d2d`](https://github.com/XiaoMi/hiui/commit/80a909d2dae99d68d71f2ec6f4b210080d032ec0) Thanks [@KEH3](https://github.com/KEH3)! - fix(popper): ref 中增加更新位置方法解决上游组件弹窗被遮挡问题 (#3195)
172
+
173
+ - Updated dependencies [[`80a909d2d`](https://github.com/XiaoMi/hiui/commit/80a909d2dae99d68d71f2ec6f4b210080d032ec0)]:
174
+ - @hi-ui/picker@4.1.8
175
+ - @hi-ui/popper@4.1.7
176
+
177
+ ## 4.7.0
126
178
 
127
179
  ### Minor Changes
128
180
 
129
- - 428716024: <br>
130
- - feat(picker): 下拉选择类组件增加 xs 尺寸 (5.0)
131
- - feat(input): 输入框组件增加 xs 尺寸 (5.0)
181
+ - [#3172](https://github.com/XiaoMi/hiui/pull/3172) [`a883d8e19`](https://github.com/XiaoMi/hiui/commit/a883d8e197446ef0e7cefcc5cc44d21ed1d0807f) Thanks [@zyprepare](https://github.com/zyprepare)! - feat(mock-input): 增加 onClear 参数 (#3171)
132
182
 
133
183
  ### Patch Changes
134
184
 
135
- - Updated dependencies [428716024]
136
- - Updated dependencies [225ebaa51]
137
- - Updated dependencies [192de8767]
138
- - Updated dependencies [428716024]
139
- - @hi-ui/picker@5.0.0-canary.0
140
- - @hi-ui/tag-input@5.0.0-canary.0
141
- - @hi-ui/core@5.0.0-canary.0
142
- - @hi-ui/use-check@5.0.0-canary.0
143
- - @hi-ui/use-data-source@5.0.0-canary.0
144
- - @hi-ui/use-search-mode@5.0.0-canary.0
145
- - @hi-ui/use-toggle@5.0.0-canary.0
146
- - @hi-ui/use-uncontrolled-state@5.0.0-canary.0
147
- - @hi-ui/icons@5.0.0-canary.0
148
- - @hi-ui/checkbox@5.0.0-canary.0
149
- - @hi-ui/highlighter@5.0.0-canary.0
150
- - @hi-ui/popper@5.0.0-canary.0
151
- - @hi-ui/tree@5.0.0-canary.0
152
- - @hi-ui/array-utils@5.0.0-canary.0
153
- - @hi-ui/classname@5.0.0-canary.0
154
- - @hi-ui/env@5.0.0-canary.0
155
- - @hi-ui/func-utils@5.0.0-canary.0
156
- - @hi-ui/tree-utils@5.0.0-canary.0
157
- - @hi-ui/type-assertion@5.0.0-canary.0
185
+ - Updated dependencies [[`7bf0630`](https://github.com/XiaoMi/hiui/commit/7bf063053a73923af41c33370c31371325206276)]:
186
+ - @hi-ui/highlighter@4.1.2
158
187
 
159
188
  ## 4.6.2
160
189
 
@@ -49,6 +49,7 @@ var DEFAULT_EXPANDED_IDS = [];
49
49
  * 多项树形选择器
50
50
  */
51
51
  var CheckTreeSelect = /*#__PURE__*/React.forwardRef(function (_a, ref) {
52
+ var _b;
52
53
  var _a$prefixCls = _a.prefixCls,
53
54
  prefixCls = _a$prefixCls === void 0 ? TREE_SELECT_PREFIX : _a$prefixCls,
54
55
  className = _a.className,
@@ -81,6 +82,7 @@ var CheckTreeSelect = /*#__PURE__*/React.forwardRef(function (_a, ref) {
81
82
  filterOption = _a.filterOption,
82
83
  keywordProp = _a.keyword,
83
84
  onSearchProp = _a.onSearch,
85
+ clearSearchOnClosed = _a.clearSearchOnClosed,
84
86
  clearable = _a.clearable,
85
87
  onClear = _a.onClear,
86
88
  invalid = _a.invalid,
@@ -94,13 +96,19 @@ var CheckTreeSelect = /*#__PURE__*/React.forwardRef(function (_a, ref) {
94
96
  _a$showOnlyShowChecke = _a.showOnlyShowChecked,
95
97
  showOnlyShowChecked = _a$showOnlyShowChecke === void 0 ? false : _a$showOnlyShowChecke,
96
98
  tagInputProps = _a.tagInputProps,
97
- _a$size = _a.size,
98
- size = _a$size === void 0 ? 'md' : _a$size,
99
+ sizeProp = _a.size,
99
100
  customRender = _a.customRender,
100
101
  prefix = _a.prefix,
101
102
  suffix = _a.suffix,
102
103
  label = _a.label,
103
- rest = tslib.__rest(_a, ["prefixCls", "role", "className", "data", "dataSource", "disabled", "visible", "onOpen", "onClose", "fieldNames", "checkedMode", "defaultExpandAll", "expandedIds", "defaultExpandedIds", "onExpand", "defaultValue", "value", "onChange", "searchable", "searchMode", "onLoadChildren", "render", "filterOption", "keyword", "onSearch", "clearable", "onClear", "invalid", "displayRender", "placeholder", "appearance", "virtual", "itemHeight", "height", "showCheckAll", "showOnlyShowChecked", "tagInputProps", "size", "customRender", "prefix", "suffix", "label"]);
104
+ _a$showIndicator = _a.showIndicator,
105
+ showIndicator = _a$showIndicator === void 0 ? true : _a$showIndicator,
106
+ renderExtraHeader = _a.renderExtraHeader,
107
+ renderExtraFooter = _a.renderExtraFooter,
108
+ rest = tslib.__rest(_a, ["prefixCls", "role", "className", "data", "dataSource", "disabled", "visible", "onOpen", "onClose", "fieldNames", "checkedMode", "defaultExpandAll", "expandedIds", "defaultExpandedIds", "onExpand", "defaultValue", "value", "onChange", "searchable", "searchMode", "onLoadChildren", "render", "filterOption", "keyword", "onSearch", "clearSearchOnClosed", "clearable", "onClear", "invalid", "displayRender", "placeholder", "appearance", "virtual", "itemHeight", "height", "showCheckAll", "showOnlyShowChecked", "tagInputProps", "size", "customRender", "prefix", "suffix", "label", "showIndicator", "renderExtraHeader", "renderExtraFooter"]);
109
+ var _useGlobalContext = core.useGlobalContext(),
110
+ globalSize = _useGlobalContext.size;
111
+ var size = (_b = sizeProp !== null && sizeProp !== void 0 ? sizeProp : globalSize) !== null && _b !== void 0 ? _b : 'md';
104
112
  var i18n = core.useLocaleContext();
105
113
  var pickerInnerRef = React.useRef(null);
106
114
  var placeholder = typeAssertion.isUndef(placeholderProp) ? i18n.get('checkTreeSelect.placeholder') : placeholderProp;
@@ -159,13 +167,13 @@ var CheckTreeSelect = /*#__PURE__*/React.forwardRef(function (_a, ref) {
159
167
  tryChangeExpandedIds = _useUncontrolledState[1];
160
168
  // ************************** 异步搜索 ************************* //
161
169
  // const { loading, hasError, loadRemoteData } = useDataSource({ dataSource, validate: isArray })
162
- var _b = useSearchMode.useAsyncSearch({
170
+ var _c = useSearchMode.useAsyncSearch({
163
171
  dataSource: dataSource,
164
172
  expandAll: true
165
173
  }),
166
- loading = _b.loading,
167
- hasError = _b.hasError,
168
- dataSourceStrategy = tslib.__rest(_b, ["loading", "hasError"]);
174
+ loading = _c.loading,
175
+ hasError = _c.hasError,
176
+ dataSourceStrategy = tslib.__rest(_c, ["loading", "hasError"]);
169
177
  var customSearchStrategy = useSearchMode.useTreeCustomSearch({
170
178
  data: data,
171
179
  filterOption: filterOption
@@ -192,11 +200,7 @@ var CheckTreeSelect = /*#__PURE__*/React.forwardRef(function (_a, ref) {
192
200
  searchMode = _useSearchMode.searchMode,
193
201
  onSearch = _useSearchMode.onSearch,
194
202
  searchValue = _useSearchMode.keyword;
195
- var dataMemo = React.useMemo(function () {
196
- var flattedStateData = flatData(stateInSearch.data);
197
- return typeAssertion.isArrayNonEmpty(flattedStateData) ? flattedStateData : flattedData;
198
- }, [flatData, stateInSearch.data, flattedData]);
199
- var _useCheck = useCheck.useCheck(checkedMode, disabled, dataMemo, defaultValue, valueProp, onChange),
203
+ var _useCheck = useCheck.useCheck(checkedMode, disabled, flattedData, defaultValue, valueProp, onChange),
200
204
  value = _useCheck[0],
201
205
  tryChangeValue = _useCheck[1],
202
206
  onNodeCheck = _useCheck[2],
@@ -224,8 +228,10 @@ var CheckTreeSelect = /*#__PURE__*/React.forwardRef(function (_a, ref) {
224
228
  }
225
229
  // 本地搜索执行默认高亮规则
226
230
  var highlight = !!searchValue && (searchMode === 'highlight' || searchMode === 'filter' || dataSource);
231
+ // 转义正则表达式特殊字符,避免 searchValue 包含 [ 等特殊字符时报错
232
+ var escapedSearchValue = searchValue.replace(/[.*+?^${}()|[\]\\]/g, '\\$&');
227
233
  var ret = highlight ? ( /*#__PURE__*/React__default["default"].createElement(highlighter.Highlighter, {
228
- keyword: new RegExp(searchValue, 'ig')
234
+ keyword: new RegExp(escapedSearchValue, 'ig')
229
235
  }, node.title)) : true;
230
236
  return ret;
231
237
  }, [titleRender, searchValue, searchMode, dataSource]);
@@ -249,6 +255,7 @@ var CheckTreeSelect = /*#__PURE__*/React.forwardRef(function (_a, ref) {
249
255
  return arrayUtils.uniqBy(nextData, 'id');
250
256
  }, [checkedNodes, flattedData]);
251
257
  var toggleCheckAll = React.useCallback(function () {
258
+ var flattedData = flatData(showData);
252
259
  var _getAllCheckedStatus = index.getAllCheckedStatus(flattedData, parsedCheckedIds),
253
260
  currentAllChecked = _getAllCheckedStatus[0],
254
261
  hasCheckedAll = _getAllCheckedStatus[2];
@@ -274,21 +281,27 @@ var CheckTreeSelect = /*#__PURE__*/React.forwardRef(function (_a, ref) {
274
281
  } else {
275
282
  tryChangeValue([], null, shouldChecked, []);
276
283
  }
277
- }, [checkedMode, flattedData, parsedCheckedIds, tryChangeValue]);
284
+ }, [checkedMode, flatData, parsedCheckedIds, showData, tryChangeValue]);
278
285
  var _useMemo = React.useMemo(function () {
286
+ var flattedData = flatData(showData);
279
287
  return index.getAllCheckedStatus(flattedData, parsedCheckedIds);
280
- }, [flattedData, parsedCheckedIds]),
288
+ }, [flatData, parsedCheckedIds, showData]),
281
289
  showAllChecked = _useMemo[0],
282
290
  showIndeterminate = _useMemo[1];
283
291
  var renderDefaultFooter = function renderDefaultFooter() {
292
+ var extra = renderExtraFooter ? renderExtraFooter() : null;
284
293
  if (showCheckAll) {
285
294
  return /*#__PURE__*/React__default["default"].createElement(React__default["default"].Fragment, null, /*#__PURE__*/React__default["default"].createElement(Checkbox__default["default"], {
286
295
  indeterminate: showIndeterminate,
287
296
  checked: showAllChecked,
288
297
  onChange: toggleCheckAll
289
- }, i18n.get('checkSelect.checkAll')));
298
+ }, i18n.get('checkSelect.checkAll')), extra);
290
299
  }
300
+ return extra;
291
301
  };
302
+ var customRenderContent = React.useMemo(function () {
303
+ return customRender ? typeof customRender === 'function' ? customRender(checkedNodes) : customRender : null;
304
+ }, [customRender, checkedNodes]);
292
305
  var cls = classname.cx(prefixCls, className);
293
306
  // 过滤掉未选中的数据
294
307
  // const tagList = useMemo(() => {
@@ -322,9 +335,11 @@ var CheckTreeSelect = /*#__PURE__*/React.forwardRef(function (_a, ref) {
322
335
  searchable: searchable,
323
336
  keyword: keywordProp,
324
337
  onSearch: funcUtils.callAllFuncs(onSearchProp, onSearch),
338
+ clearSearchOnClosed: clearSearchOnClosed,
325
339
  footer: renderDefaultFooter(),
326
340
  loading: rest.loading !== undefined ? rest.loading : loading,
327
- trigger: customRender ? typeof customRender === 'function' ? customRender(checkedNodes) : customRender : ( /*#__PURE__*/React__default["default"].createElement(tagInput.TagInputMock, Object.assign({
341
+ header: renderExtraHeader === null || renderExtraHeader === void 0 ? void 0 : renderExtraHeader(),
342
+ trigger: customRender ? customRenderContent : ( /*#__PURE__*/React__default["default"].createElement(tagInput.TagInputMock, Object.assign({
328
343
  style: {
329
344
  maxWidth: appearance === 'contained' ? '360px' : undefined
330
345
  }
@@ -340,6 +355,7 @@ var CheckTreeSelect = /*#__PURE__*/React.forwardRef(function (_a, ref) {
340
355
  // @ts-ignore
341
356
  displayRender: displayRender,
342
357
  prefix: prefix,
358
+ showIndicator: showIndicator,
343
359
  suffix: [menuVisible ? /*#__PURE__*/React__default["default"].createElement(icons.UpOutlined, null) : /*#__PURE__*/React__default["default"].createElement(icons.DownOutlined, null), suffix],
344
360
  focused: menuVisible,
345
361
  appearance: appearance,
@@ -21,7 +21,7 @@ import { uniqBy } from '@hi-ui/array-utils';
21
21
  import { Highlighter } from '@hi-ui/highlighter';
22
22
  import { TagInputMock } from '@hi-ui/tag-input';
23
23
  import { UpOutlined, DownOutlined } from '@hi-ui/icons';
24
- import { useLocaleContext } from '@hi-ui/core';
24
+ import { useGlobalContext, useLocaleContext } from '@hi-ui/core';
25
25
  import { callAllFuncs } from '@hi-ui/func-utils';
26
26
  import Checkbox from '@hi-ui/checkbox';
27
27
  import { useAsyncSearch, useTreeCustomSearch, useFilterSearch, useHighlightSearch, useSearchMode } from '@hi-ui/use-search-mode';
@@ -36,6 +36,7 @@ var DEFAULT_EXPANDED_IDS = [];
36
36
  * 多项树形选择器
37
37
  */
38
38
  var CheckTreeSelect = /*#__PURE__*/forwardRef(function (_a, ref) {
39
+ var _b;
39
40
  var _a$prefixCls = _a.prefixCls,
40
41
  prefixCls = _a$prefixCls === void 0 ? TREE_SELECT_PREFIX : _a$prefixCls,
41
42
  className = _a.className,
@@ -68,6 +69,7 @@ var CheckTreeSelect = /*#__PURE__*/forwardRef(function (_a, ref) {
68
69
  filterOption = _a.filterOption,
69
70
  keywordProp = _a.keyword,
70
71
  onSearchProp = _a.onSearch,
72
+ clearSearchOnClosed = _a.clearSearchOnClosed,
71
73
  clearable = _a.clearable,
72
74
  onClear = _a.onClear,
73
75
  invalid = _a.invalid,
@@ -81,13 +83,19 @@ var CheckTreeSelect = /*#__PURE__*/forwardRef(function (_a, ref) {
81
83
  _a$showOnlyShowChecke = _a.showOnlyShowChecked,
82
84
  showOnlyShowChecked = _a$showOnlyShowChecke === void 0 ? false : _a$showOnlyShowChecke,
83
85
  tagInputProps = _a.tagInputProps,
84
- _a$size = _a.size,
85
- size = _a$size === void 0 ? 'md' : _a$size,
86
+ sizeProp = _a.size,
86
87
  customRender = _a.customRender,
87
88
  prefix = _a.prefix,
88
89
  suffix = _a.suffix,
89
90
  label = _a.label,
90
- rest = __rest(_a, ["prefixCls", "role", "className", "data", "dataSource", "disabled", "visible", "onOpen", "onClose", "fieldNames", "checkedMode", "defaultExpandAll", "expandedIds", "defaultExpandedIds", "onExpand", "defaultValue", "value", "onChange", "searchable", "searchMode", "onLoadChildren", "render", "filterOption", "keyword", "onSearch", "clearable", "onClear", "invalid", "displayRender", "placeholder", "appearance", "virtual", "itemHeight", "height", "showCheckAll", "showOnlyShowChecked", "tagInputProps", "size", "customRender", "prefix", "suffix", "label"]);
91
+ _a$showIndicator = _a.showIndicator,
92
+ showIndicator = _a$showIndicator === void 0 ? true : _a$showIndicator,
93
+ renderExtraHeader = _a.renderExtraHeader,
94
+ renderExtraFooter = _a.renderExtraFooter,
95
+ rest = __rest(_a, ["prefixCls", "role", "className", "data", "dataSource", "disabled", "visible", "onOpen", "onClose", "fieldNames", "checkedMode", "defaultExpandAll", "expandedIds", "defaultExpandedIds", "onExpand", "defaultValue", "value", "onChange", "searchable", "searchMode", "onLoadChildren", "render", "filterOption", "keyword", "onSearch", "clearSearchOnClosed", "clearable", "onClear", "invalid", "displayRender", "placeholder", "appearance", "virtual", "itemHeight", "height", "showCheckAll", "showOnlyShowChecked", "tagInputProps", "size", "customRender", "prefix", "suffix", "label", "showIndicator", "renderExtraHeader", "renderExtraFooter"]);
96
+ var _useGlobalContext = useGlobalContext(),
97
+ globalSize = _useGlobalContext.size;
98
+ var size = (_b = sizeProp !== null && sizeProp !== void 0 ? sizeProp : globalSize) !== null && _b !== void 0 ? _b : 'md';
91
99
  var i18n = useLocaleContext();
92
100
  var pickerInnerRef = useRef(null);
93
101
  var placeholder = isUndef(placeholderProp) ? i18n.get('checkTreeSelect.placeholder') : placeholderProp;
@@ -146,13 +154,13 @@ var CheckTreeSelect = /*#__PURE__*/forwardRef(function (_a, ref) {
146
154
  tryChangeExpandedIds = _useUncontrolledState[1];
147
155
  // ************************** 异步搜索 ************************* //
148
156
  // const { loading, hasError, loadRemoteData } = useDataSource({ dataSource, validate: isArray })
149
- var _b = useAsyncSearch({
157
+ var _c = useAsyncSearch({
150
158
  dataSource: dataSource,
151
159
  expandAll: true
152
160
  }),
153
- loading = _b.loading,
154
- hasError = _b.hasError,
155
- dataSourceStrategy = __rest(_b, ["loading", "hasError"]);
161
+ loading = _c.loading,
162
+ hasError = _c.hasError,
163
+ dataSourceStrategy = __rest(_c, ["loading", "hasError"]);
156
164
  var customSearchStrategy = useTreeCustomSearch({
157
165
  data: data,
158
166
  filterOption: filterOption
@@ -179,11 +187,7 @@ var CheckTreeSelect = /*#__PURE__*/forwardRef(function (_a, ref) {
179
187
  searchMode = _useSearchMode.searchMode,
180
188
  onSearch = _useSearchMode.onSearch,
181
189
  searchValue = _useSearchMode.keyword;
182
- var dataMemo = useMemo(function () {
183
- var flattedStateData = flatData(stateInSearch.data);
184
- return isArrayNonEmpty(flattedStateData) ? flattedStateData : flattedData;
185
- }, [flatData, stateInSearch.data, flattedData]);
186
- var _useCheck = useCheck(checkedMode, disabled, dataMemo, defaultValue, valueProp, onChange),
190
+ var _useCheck = useCheck(checkedMode, disabled, flattedData, defaultValue, valueProp, onChange),
187
191
  value = _useCheck[0],
188
192
  tryChangeValue = _useCheck[1],
189
193
  onNodeCheck = _useCheck[2],
@@ -211,8 +215,10 @@ var CheckTreeSelect = /*#__PURE__*/forwardRef(function (_a, ref) {
211
215
  }
212
216
  // 本地搜索执行默认高亮规则
213
217
  var highlight = !!searchValue && (searchMode === 'highlight' || searchMode === 'filter' || dataSource);
218
+ // 转义正则表达式特殊字符,避免 searchValue 包含 [ 等特殊字符时报错
219
+ var escapedSearchValue = searchValue.replace(/[.*+?^${}()|[\]\\]/g, '\\$&');
214
220
  var ret = highlight ? ( /*#__PURE__*/React.createElement(Highlighter, {
215
- keyword: new RegExp(searchValue, 'ig')
221
+ keyword: new RegExp(escapedSearchValue, 'ig')
216
222
  }, node.title)) : true;
217
223
  return ret;
218
224
  }, [titleRender, searchValue, searchMode, dataSource]);
@@ -236,6 +242,7 @@ var CheckTreeSelect = /*#__PURE__*/forwardRef(function (_a, ref) {
236
242
  return uniqBy(nextData, 'id');
237
243
  }, [checkedNodes, flattedData]);
238
244
  var toggleCheckAll = useCallback(function () {
245
+ var flattedData = flatData(showData);
239
246
  var _getAllCheckedStatus = getAllCheckedStatus(flattedData, parsedCheckedIds),
240
247
  currentAllChecked = _getAllCheckedStatus[0],
241
248
  hasCheckedAll = _getAllCheckedStatus[2];
@@ -261,21 +268,27 @@ var CheckTreeSelect = /*#__PURE__*/forwardRef(function (_a, ref) {
261
268
  } else {
262
269
  tryChangeValue([], null, shouldChecked, []);
263
270
  }
264
- }, [checkedMode, flattedData, parsedCheckedIds, tryChangeValue]);
271
+ }, [checkedMode, flatData, parsedCheckedIds, showData, tryChangeValue]);
265
272
  var _useMemo = useMemo(function () {
273
+ var flattedData = flatData(showData);
266
274
  return getAllCheckedStatus(flattedData, parsedCheckedIds);
267
- }, [flattedData, parsedCheckedIds]),
275
+ }, [flatData, parsedCheckedIds, showData]),
268
276
  showAllChecked = _useMemo[0],
269
277
  showIndeterminate = _useMemo[1];
270
278
  var renderDefaultFooter = function renderDefaultFooter() {
279
+ var extra = renderExtraFooter ? renderExtraFooter() : null;
271
280
  if (showCheckAll) {
272
281
  return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(Checkbox, {
273
282
  indeterminate: showIndeterminate,
274
283
  checked: showAllChecked,
275
284
  onChange: toggleCheckAll
276
- }, i18n.get('checkSelect.checkAll')));
285
+ }, i18n.get('checkSelect.checkAll')), extra);
277
286
  }
287
+ return extra;
278
288
  };
289
+ var customRenderContent = useMemo(function () {
290
+ return customRender ? typeof customRender === 'function' ? customRender(checkedNodes) : customRender : null;
291
+ }, [customRender, checkedNodes]);
279
292
  var cls = cx(prefixCls, className);
280
293
  // 过滤掉未选中的数据
281
294
  // const tagList = useMemo(() => {
@@ -309,9 +322,11 @@ var CheckTreeSelect = /*#__PURE__*/forwardRef(function (_a, ref) {
309
322
  searchable: searchable,
310
323
  keyword: keywordProp,
311
324
  onSearch: callAllFuncs(onSearchProp, onSearch),
325
+ clearSearchOnClosed: clearSearchOnClosed,
312
326
  footer: renderDefaultFooter(),
313
327
  loading: rest.loading !== undefined ? rest.loading : loading,
314
- trigger: customRender ? typeof customRender === 'function' ? customRender(checkedNodes) : customRender : ( /*#__PURE__*/React.createElement(TagInputMock, Object.assign({
328
+ header: renderExtraHeader === null || renderExtraHeader === void 0 ? void 0 : renderExtraHeader(),
329
+ trigger: customRender ? customRenderContent : ( /*#__PURE__*/React.createElement(TagInputMock, Object.assign({
315
330
  style: {
316
331
  maxWidth: appearance === 'contained' ? '360px' : undefined
317
332
  }
@@ -327,6 +342,7 @@ var CheckTreeSelect = /*#__PURE__*/forwardRef(function (_a, ref) {
327
342
  // @ts-ignore
328
343
  displayRender: displayRender,
329
344
  prefix: prefix,
345
+ showIndicator: showIndicator,
330
346
  suffix: [menuVisible ? /*#__PURE__*/React.createElement(UpOutlined, null) : /*#__PURE__*/React.createElement(DownOutlined, null), suffix],
331
347
  focused: menuVisible,
332
348
  appearance: appearance,
@@ -9,7 +9,7 @@ import { UseDataSource } from '@hi-ui/use-data-source';
9
9
  * 多项树形选择器
10
10
  */
11
11
  export declare const CheckTreeSelect: React.ForwardRefExoticComponent<CheckTreeSelectProps & React.RefAttributes<HTMLDivElement | null>>;
12
- export interface CheckTreeSelectProps extends Omit<PickerProps, 'data' | 'onChange' | 'value' | 'trigger' | 'scrollable'> {
12
+ export interface CheckTreeSelectProps extends Omit<PickerProps, 'data' | 'onChange' | 'value' | 'trigger' | 'scrollable' | 'header' | 'footer'> {
13
13
  /**
14
14
  * 展示数据
15
15
  */
@@ -171,6 +171,18 @@ export interface CheckTreeSelectProps extends Omit<PickerProps, 'data' | 'onChan
171
171
  * 选择框后置内容
172
172
  */
173
173
  suffix?: React.ReactNode;
174
+ /**
175
+ * 是否展示箭头
176
+ */
177
+ showIndicator?: boolean;
178
+ /**
179
+ * 自定义下拉菜单顶部渲染
180
+ */
181
+ renderExtraHeader?: () => React.ReactNode;
182
+ /**
183
+ * 自定义下拉菜单底部渲染
184
+ */
185
+ renderExtraFooter?: () => React.ReactNode;
174
186
  }
175
187
  /**
176
188
  * 在 checkedIdsSet 为数据合法的情况下,查找所有的半选中态的节点 ids
@@ -3,9 +3,9 @@ import { FlattedCheckTreeSelectDataItem, CheckTreeSelectItemEventData, CheckTree
3
3
  /**
4
4
  * 用于 tree 组件复选的 hook
5
5
  */
6
- export declare const useCheck: (checkedMode: string, disabled: boolean, flattedData: FlattedCheckTreeSelectDataItem[], defaultCheckedIds: React.ReactText[], checkedIdsProp?: React.ReactText[] | undefined, onCheck?: ((checkedIds: React.ReactText[], options: {
6
+ export declare const useCheck: (checkedMode: string, disabled: boolean, flattedData: FlattedCheckTreeSelectDataItem[], defaultCheckedIds: React.ReactText[], checkedIdsProp?: React.ReactText[], onCheck?: (checkedIds: React.ReactText[], options: {
7
7
  checkedNodes: CheckTreeSelectDataItem[];
8
8
  semiCheckedIds: React.ReactText[];
9
9
  targetNode: CheckTreeSelectItemEventData;
10
10
  checked: boolean;
11
- }) => void) | undefined) => readonly [React.ReactText[], (stateOrFunction: React.SetStateAction<React.ReactText[]>, ...args: any[]) => void, (target: FlattedCheckTreeSelectDataItem, shouldChecked: boolean) => void, FlattedCheckTreeSelectDataItem[], React.ReactText[]];
11
+ }) => void) => readonly [React.ReactText[], (stateOrFunction: React.SetStateAction<React.ReactText[]>, ...args: any[]) => void, (target: FlattedCheckTreeSelectDataItem, shouldChecked: boolean) => void, FlattedCheckTreeSelectDataItem[], React.ReactText[]];
@@ -77,4 +77,4 @@ export interface CheckTreeSelectDataSource<T = any> {
77
77
  }
78
78
  export interface CheckTreeSelectItemEventData extends TreeNodeEventData {
79
79
  }
80
- export declare type CheckTreeSelectAppearanceEnum = HiBaseAppearanceEnum | 'contained' | undefined;
80
+ export type CheckTreeSelectAppearanceEnum = HiBaseAppearanceEnum | 'contained' | undefined;
@@ -10,5 +10,5 @@ export declare const processCheckedIds: (type: string, checkedIds: React.ReactTe
10
10
  /**
11
11
  * 根据传入的 checkedIds 解析全选/半选数据
12
12
  */
13
- export declare const parseCheckDataDirty: (type: string, checkedIds: React.ReactText[], flattenData: any, allowCheck?: ((node: any) => boolean) | undefined) => React.ReactText[];
13
+ export declare const parseCheckDataDirty: (type: string, checkedIds: React.ReactText[], flattenData: any, allowCheck?: (node: any) => boolean) => React.ReactText[];
14
14
  export declare const getAllCheckedStatus: (flattedData: any[], values: React.ReactText[]) => boolean[];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hi-ui/check-tree-select",
3
- "version": "5.0.0-canary.9",
3
+ "version": "5.0.0-experimental.1",
4
4
  "description": "A sub-package for @hi-ui/hiui.",
5
5
  "keywords": [],
6
6
  "author": "HiUI <mi-hiui@xiaomi.com>",
@@ -44,33 +44,33 @@
44
44
  "url": "https://github.com/XiaoMi/hiui/issues"
45
45
  },
46
46
  "dependencies": {
47
- "@hi-ui/array-utils": "^5.0.0-canary.2",
48
- "@hi-ui/checkbox": "^5.0.0-canary.2",
49
- "@hi-ui/classname": "^5.0.0-canary.2",
50
- "@hi-ui/env": "^5.0.0-canary.2",
51
- "@hi-ui/func-utils": "^5.0.0-canary.2",
52
- "@hi-ui/highlighter": "^5.0.0-canary.2",
53
- "@hi-ui/icons": "^5.0.0-canary.2",
54
- "@hi-ui/picker": "^5.0.0-canary.8",
55
- "@hi-ui/popper": "^5.0.0-canary.3",
56
- "@hi-ui/tag-input": "^5.0.0-canary.11",
57
- "@hi-ui/tree": "^5.0.0-canary.3",
58
- "@hi-ui/tree-utils": "^5.0.0-canary.2",
59
- "@hi-ui/type-assertion": "^5.0.0-canary.2",
60
- "@hi-ui/use-check": "^5.0.0-canary.2",
61
- "@hi-ui/use-data-source": "^5.0.0-canary.2",
62
- "@hi-ui/use-search-mode": "^5.0.0-canary.3",
63
- "@hi-ui/use-toggle": "^5.0.0-canary.2",
64
- "@hi-ui/use-uncontrolled-state": "^5.0.0-canary.2"
47
+ "@hi-ui/array-utils": "^5.0.0-experimental.0",
48
+ "@hi-ui/checkbox": "^5.0.0-experimental.0",
49
+ "@hi-ui/classname": "^5.0.0-experimental.0",
50
+ "@hi-ui/env": "^5.0.0-experimental.0",
51
+ "@hi-ui/func-utils": "^5.0.0-experimental.0",
52
+ "@hi-ui/highlighter": "^5.0.0-experimental.0",
53
+ "@hi-ui/icons": "^5.0.0-experimental.0",
54
+ "@hi-ui/picker": "^5.0.0-experimental.1",
55
+ "@hi-ui/popper": "^5.0.0-experimental.0",
56
+ "@hi-ui/tag-input": "^5.0.0-experimental.1",
57
+ "@hi-ui/tree": "^5.0.0-experimental.1",
58
+ "@hi-ui/tree-utils": "^5.0.0-experimental.0",
59
+ "@hi-ui/type-assertion": "^5.0.0-experimental.0",
60
+ "@hi-ui/use-check": "^5.0.0-experimental.0",
61
+ "@hi-ui/use-data-source": "^5.0.0-experimental.0",
62
+ "@hi-ui/use-search-mode": "^5.0.0-experimental.0",
63
+ "@hi-ui/use-toggle": "^5.0.0-experimental.0",
64
+ "@hi-ui/use-uncontrolled-state": "^5.0.0-experimental.0"
65
65
  },
66
66
  "peerDependencies": {
67
- "@hi-ui/core": ">=5.0.0-canary.2",
67
+ "@hi-ui/core": ">=5.0.0-experimental.0",
68
68
  "react": ">=16.8.6",
69
69
  "react-dom": ">=16.8.6"
70
70
  },
71
71
  "devDependencies": {
72
- "@hi-ui/core": "^5.0.0-canary.2",
73
- "@hi-ui/core-css": "^5.0.0-canary.6",
72
+ "@hi-ui/core": "^5.0.0-experimental.0",
73
+ "@hi-ui/core-css": "^5.0.0-experimental.1",
74
74
  "react": "^17.0.1",
75
75
  "react-dom": "^17.0.1"
76
76
  }