@hi-ui/check-cascader 5.0.0-experimental.2 → 5.0.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.
Files changed (24) hide show
  1. package/CHANGELOG.md +86 -137
  2. package/lib/cjs/CheckCascader.js +4 -1
  3. package/lib/cjs/CheckCascaderMenu.js +2 -5
  4. package/lib/cjs/icons/index.js +7 -2
  5. package/lib/cjs/ui/virtual-list/lib/esm/node_modules/rc-resize-observer/node_modules/rc-util/es/Children/toArray.js +1 -1
  6. package/lib/cjs/ui/virtual-list/lib/esm/node_modules/rc-resize-observer/node_modules/rc-util/es/ref.js +1 -1
  7. package/lib/cjs/ui/virtual-list/lib/esm/node_modules/{rc-resize-observer/node_modules/react-is → react-is}/cjs/react-is.development.js +1 -1
  8. package/lib/cjs/ui/virtual-list/lib/esm/node_modules/{rc-resize-observer/node_modules/react-is → react-is}/cjs/react-is.production.min.js +1 -1
  9. package/lib/cjs/ui/virtual-list/lib/esm/node_modules/{rc-resize-observer/node_modules/react-is → react-is}/index.js +3 -3
  10. package/lib/esm/CheckCascader.js +4 -1
  11. package/lib/esm/CheckCascaderMenu.js +3 -6
  12. package/lib/esm/icons/index.js +8 -3
  13. package/lib/esm/ui/virtual-list/lib/esm/node_modules/rc-resize-observer/node_modules/rc-util/es/Children/toArray.js +1 -1
  14. package/lib/esm/ui/virtual-list/lib/esm/node_modules/rc-resize-observer/node_modules/rc-util/es/ref.js +1 -1
  15. package/lib/esm/ui/virtual-list/lib/esm/node_modules/{rc-resize-observer/node_modules/react-is → react-is}/cjs/react-is.development.js +1 -1
  16. package/lib/esm/ui/virtual-list/lib/esm/node_modules/{rc-resize-observer/node_modules/react-is → react-is}/cjs/react-is.production.min.js +1 -1
  17. package/lib/esm/ui/virtual-list/lib/esm/node_modules/{rc-resize-observer/node_modules/react-is → react-is}/index.js +3 -3
  18. package/lib/types/CheckCascader.d.ts +4 -4
  19. package/lib/types/hooks/use-async-switch.d.ts +1 -1
  20. package/lib/types/hooks/use-check.d.ts +2 -2
  21. package/lib/types/icons/index.d.ts +1 -1
  22. package/lib/types/types.d.ts +2 -2
  23. package/lib/types/utils/index.d.ts +4 -4
  24. package/package.json +27 -27
package/CHANGELOG.md CHANGED
@@ -1,168 +1,117 @@
1
1
  # @hi-ui/check-cascader
2
2
 
3
- ## 5.0.0-experimental.2
3
+ ## 5.0.0
4
+
5
+ ### Major Changes
6
+
7
+ - [#3532](https://github.com/XiaoMi/hiui/pull/3532) [`8f3aa85e4`](https://github.com/XiaoMi/hiui/commit/8f3aa85e4e1977854cecdf2864498a77e959bc39) Thanks [@zyprepare](https://github.com/zyprepare)! - feat: 组件的 package.json 中的 exports 统一加上 types 配置 (5.0)
4
8
 
5
9
  ### Minor Changes
6
10
 
7
- - 59cef699f: feat: 组件语义化样式改造,增加 styles classNames 属性 (5.0)
11
+ - [#3532](https://github.com/XiaoMi/hiui/pull/3532) [`b9989e482`](https://github.com/XiaoMi/hiui/commit/b9989e48214dbbf8a938a788d3a415d9bb94b1b2) Thanks [@zyprepare](https://github.com/zyprepare)! - feat(picker): 增加 clearSearchOnClosed api 默认是 false (5.0)
8
12
 
9
- ### Patch Changes
13
+ - [#3532](https://github.com/XiaoMi/hiui/pull/3532) [`f1ab51725`](https://github.com/XiaoMi/hiui/commit/f1ab517258599ee2dfad183e4a8c7b855ef409c1) Thanks [@zyprepare](https://github.com/zyprepare)! - <br>
14
+
15
+ - feat(picker): 下拉选择类组件增加 xs 尺寸 (5.0)
16
+ - feat(input): 输入框组件增加 xs 尺寸 (5.0)
17
+
18
+ - [#3532](https://github.com/XiaoMi/hiui/pull/3532) [`f8acad4e1`](https://github.com/XiaoMi/hiui/commit/f8acad4e1299acbcad9ccf5991dbf1cfa918a1ac) Thanks [@zyprepare](https://github.com/zyprepare)! - feat(check-cascader): 增加 checkbox 级联禁用功能和相关样式调整 (5.0)
19
+
20
+ - [#3532](https://github.com/XiaoMi/hiui/pull/3532) [`a4c48b19e`](https://github.com/XiaoMi/hiui/commit/a4c48b19e65d8d3bbd41dc14e1097ac6d7c94d69) Thanks [@zyprepare](https://github.com/zyprepare)! - feat(check-cascader): add showOnlyShowChecked api (5.0)
10
21
 
11
- - eb17c4697: style: 修复 UI/样式问题 (5.0)
12
- - Updated dependencies [7f204c892]
13
- - Updated dependencies [eb17c4697]
14
- - Updated dependencies [eb17c4697]
15
- - Updated dependencies [c407744fe]
16
- - Updated dependencies [59cef699f]
17
- - @hi-ui/icons@5.0.0-experimental.1
18
- - @hi-ui/core@5.0.0-experimental.1
19
- - @hi-ui/checkbox@5.0.0-experimental.1
20
- - @hi-ui/input@5.0.0-experimental.2
21
- - @hi-ui/picker@5.0.0-experimental.2
22
- - @hi-ui/popper@5.0.0-experimental.1
23
- - @hi-ui/tag-input@5.0.0-experimental.2
24
- - @hi-ui/use-merge-semantic@5.0.0-experimental.0
25
- - @hi-ui/spinner@5.0.0-experimental.1
26
-
27
- ## 5.0.0-experimental.1
22
+ - [#3532](https://github.com/XiaoMi/hiui/pull/3532) [`6dca7795c`](https://github.com/XiaoMi/hiui/commit/6dca7795c71123f941d91b991ecd17ce26b6a2da) Thanks [@zyprepare](https://github.com/zyprepare)! - feat: 下拉选择组件增加 showIndicator 参数 & 修改 appearance 中的 unset 样式 (5.0)
23
+
24
+ - [#3532](https://github.com/XiaoMi/hiui/pull/3532) [`77d969c2e`](https://github.com/XiaoMi/hiui/commit/77d969c2e4f6db55f6cc154c1803971ac3e3f085) Thanks [@zyprepare](https://github.com/zyprepare)! - feat: 下拉选择类组件 appearance 参数增加 contained 类型 (5.0)
25
+
26
+ - [#3532](https://github.com/XiaoMi/hiui/pull/3532) [`58ad82e94`](https://github.com/XiaoMi/hiui/commit/58ad82e9441e76bf6090e6a0f4e36a04342c25f0) Thanks [@zyprepare](https://github.com/zyprepare)! - feat: 输入框和选择器组件增加 borderless 形态 (5.0)
27
+
28
+ - [#3502](https://github.com/XiaoMi/hiui/pull/3502) [`59cef699f`](https://github.com/XiaoMi/hiui/commit/59cef699f96f56d4f68fae7f9dadb960c487b5de) Thanks [@zyprepare](https://github.com/zyprepare)! - feat: 组件语义化样式改造,增加 styles 和 classNames 属性 (5.0)
28
29
 
29
30
  ### Patch Changes
30
31
 
31
- - 8f23e9322: style: 表单类组件统一调整后缀颜色、placeholder 颜色 (5.0)
32
- - 发布 hiui experimental 版本
33
- - Updated dependencies [8f23e9322]
34
- - Updated dependencies [b27483796]
35
- - Updated dependencies [900c6c2f0]
36
- - Updated dependencies
37
- - @hi-ui/input@5.0.0-experimental.1
38
- - @hi-ui/picker@5.0.0-experimental.1
39
- - @hi-ui/tag-input@5.0.0-experimental.1
32
+ - [#3532](https://github.com/XiaoMi/hiui/pull/3532) [`9b34d99bc`](https://github.com/XiaoMi/hiui/commit/9b34d99bc2aa8b78b9e3281e08afc086ac4afea1) Thanks [@zyprepare](https://github.com/zyprepare)! - chore: 将代码中 v4 改为 v5 (5.0)
40
33
 
41
- ## 5.0.0-experimental.0
34
+ - [#3532](https://github.com/XiaoMi/hiui/pull/3532) [`cf89262c7`](https://github.com/XiaoMi/hiui/commit/cf89262c72b03fa0a00c154164b68482c3a8ac98) Thanks [@zyprepare](https://github.com/zyprepare)! - style(picker): 移除 picker 组件中的 \_\_text 样式定义 (5.0)
42
35
 
43
- ### Major Changes
36
+ - [#3532](https://github.com/XiaoMi/hiui/pull/3532) [`68dccedb1`](https://github.com/XiaoMi/hiui/commit/68dccedb1715570504338abc8a1554b1517a7ba9) Thanks [@zyprepare](https://github.com/zyprepare)! - fix(check-cascader): 修复非平铺展示搜索结果时显示出层级问题 (5.0)
44
37
 
45
- - 8f3aa85e4: feat: 组件的 package.json 中的 exports 统一加上 types 配置 (5.0)
38
+ - [#3532](https://github.com/XiaoMi/hiui/pull/3532) [`9b34d99bc`](https://github.com/XiaoMi/hiui/commit/9b34d99bc2aa8b78b9e3281e08afc086ac4afea1) Thanks [@zyprepare](https://github.com/zyprepare)! - fix: 修复 5.0 UI 问题 (5.0)
46
39
 
47
- ### Minor Changes
40
+ - [#3532](https://github.com/XiaoMi/hiui/pull/3532) [`1dbc23ca5`](https://github.com/XiaoMi/hiui/commit/1dbc23ca5eaa29f1a695f5c560d49befd5672d0f) Thanks [@zyprepare](https://github.com/zyprepare)! - feat(check-cascader): 增加全选功能
48
41
 
49
- - b9989e482: feat(picker): 增加 clearSearchOnClosed api 默认是 false (5.0)
50
- - f1ab51725: <br>
51
- - feat(picker): 下拉选择类组件增加 xs 尺寸 (5.0)
52
- - feat(input): 输入框组件增加 xs 尺寸 (5.0)
53
- - f8acad4e1: feat(check-cascader): 增加 checkbox 级联禁用功能和相关样式调整 (5.0)
54
- - a4c48b19e: feat(check-cascader): add showOnlyShowChecked api (5.0)
55
- - 6dca7795c: feat: 下拉选择组件增加 showIndicator 参数 & 修改 appearance 中的 unset 样式 (5.0)
56
- - 77d969c2e: feat: 下拉选择类组件 appearance 参数增加 contained 类型 (5.0)
57
- - 58ad82e94: feat: 输入框和选择器组件增加 borderless 形态 (5.0)
42
+ - [#3532](https://github.com/XiaoMi/hiui/pull/3532) [`cb9d8f6db`](https://github.com/XiaoMi/hiui/commit/cb9d8f6db18ef3322502ae2da93c8266aa3114d5) Thanks [@zyprepare](https://github.com/zyprepare)! - fix(tag-input): 修复 contained 模式下 displayRender 设置无效问题 (5.0)
58
43
 
59
- ### Patch Changes
44
+ - [#3532](https://github.com/XiaoMi/hiui/pull/3532) [`79ea480f3`](https://github.com/XiaoMi/hiui/commit/79ea480f33bb8f692dda1e6252a9d2a75c3ac30d) Thanks [@zyprepare](https://github.com/zyprepare)! - feat(global-context): 增加 size api 全局配置 (5.0)
45
+
46
+ - [#3532](https://github.com/XiaoMi/hiui/pull/3532) [`2e56529f7`](https://github.com/XiaoMi/hiui/commit/2e56529f7ea8c74e2fac8b6061628d4fd0d862ac) Thanks [@zyprepare](https://github.com/zyprepare)! - styles: 主题定制功能完善&&样式变量化写法改造&&兼容 RTL (5.0)
47
+
48
+ - [#3532](https://github.com/XiaoMi/hiui/pull/3532) [`95abba983`](https://github.com/XiaoMi/hiui/commit/95abba98391a31c3cd79704fa0a63f64f437601f) Thanks [@zyprepare](https://github.com/zyprepare)! - fix: 修改 UI 问题 (5.0)
49
+
50
+ - [#3489](https://github.com/XiaoMi/hiui/pull/3489) [`8f23e9322`](https://github.com/XiaoMi/hiui/commit/8f23e9322e8aa117608d42898cce1f9d74414629) Thanks [@zyprepare](https://github.com/zyprepare)! - style: 表单类组件统一调整后缀颜色、placeholder 颜色 (5.0)
51
+
52
+ - [#3504](https://github.com/XiaoMi/hiui/pull/3504) [`eb17c4697`](https://github.com/XiaoMi/hiui/commit/eb17c46978dfcb5e8ec0a0e3b3dcffabae8d31fe) Thanks [@zyprepare](https://github.com/zyprepare)! - style: 修复 UI/样式问题 (5.0)
53
+
54
+ - [#3532](https://github.com/XiaoMi/hiui/pull/3532) [`de8d058dc`](https://github.com/XiaoMi/hiui/commit/de8d058dc8b8fcd3acd6792ba71eac47475496ed) Thanks [@zyprepare](https://github.com/zyprepare)! - perf: 对下拉选择类组件的 customRender 的内容增加 memoization 以优化性能 (5.0)
55
+
56
+ - [#3532](https://github.com/XiaoMi/hiui/pull/3532) [`5210770d9`](https://github.com/XiaoMi/hiui/commit/5210770d9d6bf9c83e84a28229f2007202d2d3b8) Thanks [@zyprepare](https://github.com/zyprepare)! - feat(picker): add header api (5.0)
57
+
58
+ - [#3532](https://github.com/XiaoMi/hiui/pull/3532) [`424700fc5`](https://github.com/XiaoMi/hiui/commit/424700fc51f0b23332faebeb7ebdb4979c1db0b7) Thanks [@zyprepare](https://github.com/zyprepare)! - style(cascader&check-cascader): 调整下拉框样式,增加搜索框宽度设置 (5.0)
59
+
60
+ - [#3532](https://github.com/XiaoMi/hiui/pull/3532) [`9ecf354ba`](https://github.com/XiaoMi/hiui/commit/9ecf354bae5030438967f4723c601b01fa718572) Thanks [@zyprepare](https://github.com/zyprepare)! - perf(cascader): 性能优化 (5.0)
61
+
62
+ - [#3532](https://github.com/XiaoMi/hiui/pull/3532) [`4b2596538`](https://github.com/XiaoMi/hiui/commit/4b25965386693fc1dc3768e77eb802f25990b2ad) Thanks [@zyprepare](https://github.com/zyprepare)! - <br>
60
63
 
61
- - 6fb223e3a: style: fix ui bug (5.0)
62
- - 9b34d99bc: chore: 将代码中 v4 改为 v5 (5.0)
63
- - 1662753e0: style: fix ui bug (5.0)
64
- - cf89262c7: style(picker): 移除 picker 组件中的 \_\_text 样式定义 (5.0)
65
- - 68dccedb1: fix(check-cascader): 修复非平铺展示搜索结果时显示出层级问题 (5.0)
66
- - 9b34d99bc: fix: 修复 5.0 UI 问题 (5.0)
67
- - 1dbc23ca5: feat(check-cascader): 增加全选功能
68
- - cb9d8f6db: fix(tag-input): 修复 contained 模式下 displayRender 设置无效问题 (5.0)
69
- - be5a59325: style: 修改样式问题 (5.0)
70
- - 79ea480f3: feat(global-context): 增加 size api 全局配置 (5.0)
71
- - 2e56529f7: styles: 主题定制功能完善&&样式变量化写法改造&&兼容 RTL (5.0)
72
- - 95abba983: fix: 修改 UI 问题 (5.0)
73
- - de8d058dc: perf: 对下拉选择类组件的 customRender 的内容增加 memoization 以优化性能 (5.0)
74
- - 5210770d9: feat(picker): add header api (5.0)
75
- - 424700fc5: style(cascader&check-cascader): 调整下拉框样式,增加搜索框宽度设置 (5.0)
76
- - 9ecf354ba: perf(cascader): 性能优化 (5.0)
77
- - 4b2596538: <br>
78
64
  - style(cascader&check-cascader): 增加 white-space: nowrap; 样式以防止文本换行 (5.0)
79
65
  - style(cascader&check-cascader): 调整搜索框默认宽度为 100px (5.0)
80
66
  - feat(check-cascader): 增加 flattedSearchResult 属性,用于控制搜索结果的展现形式 (5.0)
81
67
  - fix(cascader): 修复当搜索结果为空时,下拉框没有显示空状态问题 (5.0)
82
- - 33da3144e: build: 将 package.json 中 exports 配置中的 types 配置放在最上面 (5.0)
83
- - e7b64347e: style(tag-input): 增加 flex-wrap 属性以优化标签换行展示 (5.0)
84
- - 0a4e90dbd: <br>
68
+
69
+ - [#3532](https://github.com/XiaoMi/hiui/pull/3532) [`33da3144e`](https://github.com/XiaoMi/hiui/commit/33da3144e916edd75ee0669ca9e5090edc681193) Thanks [@zyprepare](https://github.com/zyprepare)! - build: 将 package.json 中 exports 配置中的 types 配置放在最上面 (5.0)
70
+
71
+ - [#3532](https://github.com/XiaoMi/hiui/pull/3532) [`e7b64347e`](https://github.com/XiaoMi/hiui/commit/e7b64347e578c3a674c63f30341d87d358a4cd7b) Thanks [@zyprepare](https://github.com/zyprepare)! - style(tag-input): 增加 flex-wrap 属性以优化标签换行展示 (5.0)
72
+
73
+ - [#3532](https://github.com/XiaoMi/hiui/pull/3532) [`0a4e90dbd`](https://github.com/XiaoMi/hiui/commit/0a4e90dbd7398e69511e7505b1fd6093eca48cee) Thanks [@zyprepare](https://github.com/zyprepare)! - <br>
74
+
85
75
  - style(tag-input): 间距调整 (5.0)
86
76
  - style(select): 选择类组件选项圆角改为 4px (5.0)
87
77
  - style(picker): 搜索框样式调整 (5.0)
88
- - 79739ed82: <br>
78
+
79
+ - [#3532](https://github.com/XiaoMi/hiui/pull/3532) [`79739ed82`](https://github.com/XiaoMi/hiui/commit/79739ed82a9e28a39bf5af7c8e7e47f03afa7e82) Thanks [@zyprepare](https://github.com/zyprepare)! - <br>
80
+
89
81
  - fix(cascader): 处理当 value 为空时清空选项的选中态(5.0)
90
82
  - style(cascader&check-cascader): 调整选项容器最小宽度为 160px (5.0)
91
83
  - style(cascader&check-cascader): 优化下拉框宽度,让内容和搜索框默认宽度对齐 (5.0)
92
84
  - perf(cascader&check-cascader): 优化 customRender 函数,支持传递选中项和当前值 (5.0)
93
- - 4a31cea53: style: 统一调整选择类组件 hover 时的背景色 (5.0)
94
- - 99801c2d1: fix: 修复 UI 问题 (5.0)
95
- - Updated dependencies [0b34e1c15]
96
- - Updated dependencies [da2e63a14]
97
- - Updated dependencies [1e226cd66]
98
- - Updated dependencies [cce71cdfa]
99
- - Updated dependencies [b9989e482]
100
- - Updated dependencies [1662753e0]
101
- - Updated dependencies [122d1d859]
102
- - Updated dependencies [f1ab51725]
103
- - Updated dependencies [41552be0b]
104
- - Updated dependencies [8c0ee78f0]
105
- - Updated dependencies [9b34d99bc]
106
- - Updated dependencies [8f3aa85e4]
107
- - Updated dependencies [f4fc0ef30]
108
- - Updated dependencies [cb9d8f6db]
109
- - Updated dependencies [ec4c7faa2]
110
- - Updated dependencies [29cae09ea]
111
- - Updated dependencies [fd4c20bbd]
112
- - Updated dependencies [be5a59325]
113
- - Updated dependencies [71fc15e5c]
114
- - Updated dependencies [f8acad4e1]
115
- - Updated dependencies [79ea480f3]
116
- - Updated dependencies [2e56529f7]
117
- - Updated dependencies [277c5033a]
118
- - Updated dependencies [4e0ed3a31]
119
- - Updated dependencies [95abba983]
120
- - Updated dependencies [4a31cea53]
121
- - Updated dependencies [976ec929d]
122
- - Updated dependencies [f1ab51725]
123
- - Updated dependencies [6dca7795c]
124
- - Updated dependencies [7b956b1eb]
125
- - Updated dependencies [5210770d9]
126
- - Updated dependencies [e2d184e74]
127
- - Updated dependencies [4006b2c8c]
128
- - Updated dependencies [77d969c2e]
129
- - Updated dependencies [9ecf354ba]
130
- - Updated dependencies [e42e2badf]
131
- - Updated dependencies [33da3144e]
132
- - Updated dependencies [e7b64347e]
133
- - Updated dependencies [7f3abee55]
134
- - Updated dependencies [6fcda9bf2]
135
- - Updated dependencies [0a4e90dbd]
136
- - Updated dependencies [58ad82e94]
137
- - Updated dependencies [a0f0c9d6b]
138
- - Updated dependencies [f2be367e9]
139
- - Updated dependencies [1972fd16a]
140
- - Updated dependencies [99801c2d1]
141
- - Updated dependencies [86910f5e2]
142
- - Updated dependencies [cb7b794d0]
143
- - @hi-ui/picker@5.0.0-experimental.0
144
- - @hi-ui/input@5.0.0-experimental.0
145
- - @hi-ui/popper@5.0.0-experimental.0
146
- - @hi-ui/tag-input@5.0.0-experimental.0
147
- - @hi-ui/icons@5.0.0-experimental.0
148
- - @hi-ui/core@5.0.0-experimental.0
149
- - @hi-ui/use-check@5.0.0-experimental.0
150
- - @hi-ui/use-data-source@5.0.0-experimental.0
151
- - @hi-ui/use-latest@5.0.0-experimental.0
152
- - @hi-ui/use-merge-refs@5.0.0-experimental.0
153
- - @hi-ui/use-outside-click@5.0.0-experimental.0
154
- - @hi-ui/use-search-mode@5.0.0-experimental.0
155
- - @hi-ui/use-toggle@5.0.0-experimental.0
156
- - @hi-ui/use-uncontrolled-state@5.0.0-experimental.0
157
- - @hi-ui/checkbox@5.0.0-experimental.0
158
- - @hi-ui/spinner@5.0.0-experimental.0
159
- - @hi-ui/array-utils@5.0.0-experimental.0
160
- - @hi-ui/classname@5.0.0-experimental.0
161
- - @hi-ui/env@5.0.0-experimental.0
162
- - @hi-ui/func-utils@5.0.0-experimental.0
163
- - @hi-ui/times@5.0.0-experimental.0
164
- - @hi-ui/tree-utils@5.0.0-experimental.0
165
- - @hi-ui/type-assertion@5.0.0-experimental.0
85
+
86
+ - [#3532](https://github.com/XiaoMi/hiui/pull/3532) [`4a31cea53`](https://github.com/XiaoMi/hiui/commit/4a31cea53a1ec48c6e31b1703315ba5838ad883f) Thanks [@zyprepare](https://github.com/zyprepare)! - style: 统一调整选择类组件 hover 时的背景色 (5.0)
87
+
88
+ - [#3532](https://github.com/XiaoMi/hiui/pull/3532) [`99801c2d1`](https://github.com/XiaoMi/hiui/commit/99801c2d12628c194657579eccd09a86aedea22b) Thanks [@zyprepare](https://github.com/zyprepare)! - fix: 修复 UI 问题 (5.0)
89
+
90
+ - Updated dependencies [[`0b34e1c15`](https://github.com/XiaoMi/hiui/commit/0b34e1c15bbf98c9e44f6d249366bb2a97cad218), [`da2e63a14`](https://github.com/XiaoMi/hiui/commit/da2e63a1478db819ec87d720fbfbf537319620c2), [`1e226cd66`](https://github.com/XiaoMi/hiui/commit/1e226cd66413cea8eb1e63b1cb83c1bfbf5f0a41), [`cce71cdfa`](https://github.com/XiaoMi/hiui/commit/cce71cdfaded860c0420be6d3de2a3534cfdb9bd), [`b9989e482`](https://github.com/XiaoMi/hiui/commit/b9989e48214dbbf8a938a788d3a415d9bb94b1b2), [`7f204c892`](https://github.com/XiaoMi/hiui/commit/7f204c892156ea8a4fb95d218db9d59c8c4e0c49), [`122d1d859`](https://github.com/XiaoMi/hiui/commit/122d1d859bb92379fbe109fe9a5581259e6bb9a1), [`f1ab51725`](https://github.com/XiaoMi/hiui/commit/f1ab517258599ee2dfad183e4a8c7b855ef409c1), [`41552be0b`](https://github.com/XiaoMi/hiui/commit/41552be0b42df7c47b481cf8aacc8be76fc3f277), [`eb17c4697`](https://github.com/XiaoMi/hiui/commit/eb17c46978dfcb5e8ec0a0e3b3dcffabae8d31fe), [`8c0ee78f0`](https://github.com/XiaoMi/hiui/commit/8c0ee78f013dcd9ced94cef13a69933e039621aa), [`9b34d99bc`](https://github.com/XiaoMi/hiui/commit/9b34d99bc2aa8b78b9e3281e08afc086ac4afea1), [`8f3aa85e4`](https://github.com/XiaoMi/hiui/commit/8f3aa85e4e1977854cecdf2864498a77e959bc39), [`cb9d8f6db`](https://github.com/XiaoMi/hiui/commit/cb9d8f6db18ef3322502ae2da93c8266aa3114d5), [`ec4c7faa2`](https://github.com/XiaoMi/hiui/commit/ec4c7faa29cb7812664d866260c7a59dc76cb983), [`29cae09ea`](https://github.com/XiaoMi/hiui/commit/29cae09ea3d7a61781c3c4a9f51355a83229bd97), [`fd4c20bbd`](https://github.com/XiaoMi/hiui/commit/fd4c20bbd30e18bc4c1a2eb078acaa4790f7b2eb), [`f8acad4e1`](https://github.com/XiaoMi/hiui/commit/f8acad4e1299acbcad9ccf5991dbf1cfa918a1ac), [`79ea480f3`](https://github.com/XiaoMi/hiui/commit/79ea480f33bb8f692dda1e6252a9d2a75c3ac30d), [`2e56529f7`](https://github.com/XiaoMi/hiui/commit/2e56529f7ea8c74e2fac8b6061628d4fd0d862ac), [`3a7186e4b`](https://github.com/XiaoMi/hiui/commit/3a7186e4b4e7ce351c3856f3e1ba574b9f6df22f), [`277c5033a`](https://github.com/XiaoMi/hiui/commit/277c5033aacd43ef3d6b8e0b9e818a09ebe21875), [`4e0ed3a31`](https://github.com/XiaoMi/hiui/commit/4e0ed3a310b29cfc0bde1a3103189129cc4e59d7), [`95abba983`](https://github.com/XiaoMi/hiui/commit/95abba98391a31c3cd79704fa0a63f64f437601f), [`8f23e9322`](https://github.com/XiaoMi/hiui/commit/8f23e9322e8aa117608d42898cce1f9d74414629), [`4a31cea53`](https://github.com/XiaoMi/hiui/commit/4a31cea53a1ec48c6e31b1703315ba5838ad883f), [`b27483796`](https://github.com/XiaoMi/hiui/commit/b2748379661e2e7a4c18e94c478dc2554405c7dd), [`eb17c4697`](https://github.com/XiaoMi/hiui/commit/eb17c46978dfcb5e8ec0a0e3b3dcffabae8d31fe), [`976ec929d`](https://github.com/XiaoMi/hiui/commit/976ec929da088830d4d4bfa5438aa679676f71ca), [`f1ab51725`](https://github.com/XiaoMi/hiui/commit/f1ab517258599ee2dfad183e4a8c7b855ef409c1), [`6dca7795c`](https://github.com/XiaoMi/hiui/commit/6dca7795c71123f941d91b991ecd17ce26b6a2da), [`900c6c2f0`](https://github.com/XiaoMi/hiui/commit/900c6c2f0b397bb2a6c2a5b2cc0c0f83442813ec), [`7b956b1eb`](https://github.com/XiaoMi/hiui/commit/7b956b1eb6ba711b05412e4fc1e413bf17f648a6), [`5210770d9`](https://github.com/XiaoMi/hiui/commit/5210770d9d6bf9c83e84a28229f2007202d2d3b8), [`4006b2c8c`](https://github.com/XiaoMi/hiui/commit/4006b2c8cabba5ec553b69a17e4bf3fb53fe9180), [`c407744fe`](https://github.com/XiaoMi/hiui/commit/c407744fea78d93da66b73eed0b62d18e5b3a011), [`d91a8bb0f`](https://github.com/XiaoMi/hiui/commit/d91a8bb0f887fa886215aa596852eef3c2ce8519), [`77d969c2e`](https://github.com/XiaoMi/hiui/commit/77d969c2e4f6db55f6cc154c1803971ac3e3f085), [`9ecf354ba`](https://github.com/XiaoMi/hiui/commit/9ecf354bae5030438967f4723c601b01fa718572), [`e42e2badf`](https://github.com/XiaoMi/hiui/commit/e42e2badfd099ced93eaf8414513d7a49d1e66c0), [`33da3144e`](https://github.com/XiaoMi/hiui/commit/33da3144e916edd75ee0669ca9e5090edc681193), [`e7b64347e`](https://github.com/XiaoMi/hiui/commit/e7b64347e578c3a674c63f30341d87d358a4cd7b), [`6fcda9bf2`](https://github.com/XiaoMi/hiui/commit/6fcda9bf23e6e16c593fd4d9e3db8d08bcb6b9b5), [`0a4e90dbd`](https://github.com/XiaoMi/hiui/commit/0a4e90dbd7398e69511e7505b1fd6093eca48cee), [`58ad82e94`](https://github.com/XiaoMi/hiui/commit/58ad82e9441e76bf6090e6a0f4e36a04342c25f0), [`95d930354`](https://github.com/XiaoMi/hiui/commit/95d930354a1ab4291e98a9abccb9525d6c210795), [`f2be367e9`](https://github.com/XiaoMi/hiui/commit/f2be367e959d42506953fe9d57cf677ccb79305e), [`1972fd16a`](https://github.com/XiaoMi/hiui/commit/1972fd16ae1971690412192bce03d6860af8efdd), [`59cef699f`](https://github.com/XiaoMi/hiui/commit/59cef699f96f56d4f68fae7f9dadb960c487b5de), [`99801c2d1`](https://github.com/XiaoMi/hiui/commit/99801c2d12628c194657579eccd09a86aedea22b), [`cb7b794d0`](https://github.com/XiaoMi/hiui/commit/cb7b794d07d56c74f7972f05440632335631b9e0)]:
91
+ - @hi-ui/picker@5.0.0
92
+ - @hi-ui/input@5.0.0
93
+ - @hi-ui/popper@5.0.0
94
+ - @hi-ui/tag-input@5.0.0
95
+ - @hi-ui/icons@5.0.0
96
+ - @hi-ui/core@5.0.0
97
+ - @hi-ui/use-check@5.0.0
98
+ - @hi-ui/use-data-source@5.0.0
99
+ - @hi-ui/use-latest@5.0.0
100
+ - @hi-ui/use-merge-refs@5.0.0
101
+ - @hi-ui/use-outside-click@5.0.0
102
+ - @hi-ui/use-search-mode@5.0.0
103
+ - @hi-ui/use-toggle@5.0.0
104
+ - @hi-ui/use-uncontrolled-state@5.0.0
105
+ - @hi-ui/checkbox@5.0.0
106
+ - @hi-ui/spinner@5.0.0
107
+ - @hi-ui/array-utils@5.0.0
108
+ - @hi-ui/classname@5.0.0
109
+ - @hi-ui/env@5.0.0
110
+ - @hi-ui/func-utils@5.0.0
111
+ - @hi-ui/times@5.0.0
112
+ - @hi-ui/tree-utils@5.0.0
113
+ - @hi-ui/type-assertion@5.0.0
114
+ - @hi-ui/use-merge-semantic@5.0.0
166
115
 
167
116
  ## 4.5.2
168
117
 
@@ -108,6 +108,8 @@ var CheckCascader = /*#__PURE__*/React.forwardRef(function (_a, ref) {
108
108
  globalSize = _useGlobalContext.size,
109
109
  checkCascaderConfig = _useGlobalContext.checkCascader;
110
110
  var size = (_b = sizeProp !== null && sizeProp !== void 0 ? sizeProp : globalSize) !== null && _b !== void 0 ? _b : 'md';
111
+ var _useGlobalContext2 = core.useGlobalContext(),
112
+ direction = _useGlobalContext2.direction;
111
113
  var i18n = core.useLocaleContext();
112
114
  var _useMergeSemantic = useMergeSemantic.useMergeSemantic({
113
115
  classNamesList: [checkCascaderConfig === null || checkCascaderConfig === void 0 ? void 0 : checkCascaderConfig.classNames, classNamesProp],
@@ -332,7 +334,8 @@ var CheckCascader = /*#__PURE__*/React.forwardRef(function (_a, ref) {
332
334
  }, rest, {
333
335
  // 这种展现形式宽度是不固定的,关掉宽度匹配策略
334
336
  overlay: Object.assign({
335
- matchWidth: false
337
+ matchWidth: false,
338
+ placement: direction === 'rtl' ? 'bottom-end' : 'bottom-start'
336
339
  }, rest.overlay),
337
340
  visible: menuVisible,
338
341
  onOpen: function onOpen() {
@@ -181,11 +181,8 @@ var renderSuffix = function renderSuffix(prefixCls, node, loading, onLoadChildre
181
181
  var canLoadChildren = onLoadChildren && !node.children && !node.isLeaf;
182
182
  if (hasChildren || canLoadChildren) {
183
183
  return /*#__PURE__*/React__default["default"].createElement("span", {
184
- className: classname.cx(prefixCls + "-switcher"),
185
- style: {
186
- transform: "rotate(-90deg)"
187
- }
188
- }, index$1.defaultSuffixIcon);
184
+ className: classname.cx(prefixCls + "-switcher")
185
+ }, /*#__PURE__*/React__default["default"].createElement(index$1.DefaultSuffixIcon, null));
189
186
  }
190
187
  return /*#__PURE__*/React__default["default"].createElement("span", {
191
188
  className: classname.cx(prefixCls + "-switcher", prefixCls + "-switcher--noop")
@@ -16,17 +16,22 @@ Object.defineProperty(exports, '__esModule', {
16
16
  var React = require('react');
17
17
  var icons = require('@hi-ui/icons');
18
18
  var spinner = require('@hi-ui/spinner');
19
+ var core = require('@hi-ui/core');
19
20
  function _interopDefaultCompat(e) {
20
21
  return e && _typeof(e) === 'object' && 'default' in e ? e : {
21
22
  'default': e
22
23
  };
23
24
  }
24
25
  var React__default = /*#__PURE__*/_interopDefaultCompat(React);
25
- var defaultSuffixIcon = /*#__PURE__*/React__default["default"].createElement(icons.DownOutlined, null);
26
+ var DefaultSuffixIcon = function DefaultSuffixIcon() {
27
+ var _useGlobalContext = core.useGlobalContext(),
28
+ direction = _useGlobalContext.direction;
29
+ return direction === 'rtl' ? /*#__PURE__*/React__default["default"].createElement(icons.LeftOutlined, null) : /*#__PURE__*/React__default["default"].createElement(icons.RightOutlined, null);
30
+ };
26
31
  var defaultLeafIcon = null;
27
32
  var defaultLoadingIcon = /*#__PURE__*/React__default["default"].createElement(spinner.Spinner, {
28
33
  size: "sm"
29
34
  });
35
+ exports.DefaultSuffixIcon = DefaultSuffixIcon;
30
36
  exports.defaultLeafIcon = defaultLeafIcon;
31
37
  exports.defaultLoadingIcon = defaultLoadingIcon;
32
- exports.defaultSuffixIcon = defaultSuffixIcon;
@@ -14,7 +14,7 @@ Object.defineProperty(exports, '__esModule', {
14
14
  value: true
15
15
  });
16
16
  var React = require('react');
17
- require('../../../react-is/index.js');
17
+ require('../../../../../react-is/index.js');
18
18
  var index2 = require('../../../../../../_virtual/index2.js');
19
19
  function _interopDefaultCompat(e) {
20
20
  return e && _typeof(e) === 'object' && 'default' in e ? e : {
@@ -14,7 +14,7 @@ Object.defineProperty(exports, '__esModule', {
14
14
  value: true
15
15
  });
16
16
  var _typeof = require('@babel/runtime/helpers/esm/typeof');
17
- require('../../react-is/index.js');
17
+ require('../../../../react-is/index.js');
18
18
  var index2 = require('../../../../../_virtual/index2.js');
19
19
  function _interopDefaultCompat(e) {
20
20
  return e && _typeof2(e) === 'object' && 'default' in e ? e : {
@@ -14,7 +14,7 @@ Object.defineProperty(exports, '__esModule', {
14
14
  value: true
15
15
  });
16
16
  var _typeof = require('@babel/runtime/helpers/esm/typeof');
17
- var reactIs_development = require('../../../../../_virtual/react-is.development.js');
17
+ var reactIs_development = require('../../../_virtual/react-is.development.js');
18
18
  function _interopDefaultCompat(e) {
19
19
  return e && _typeof2(e) === 'object' && 'default' in e ? e : {
20
20
  'default': e
@@ -14,7 +14,7 @@ Object.defineProperty(exports, '__esModule', {
14
14
  value: true
15
15
  });
16
16
  var _typeof = require('@babel/runtime/helpers/esm/typeof');
17
- var reactIs_production_min = require('../../../../../_virtual/react-is.production.min.js');
17
+ var reactIs_production_min = require('../../../_virtual/react-is.production.min.js');
18
18
  function _interopDefaultCompat(e) {
19
19
  return e && _typeof2(e) === 'object' && 'default' in e ? e : {
20
20
  'default': e
@@ -9,11 +9,11 @@
9
9
  */
10
10
  'use strict';
11
11
 
12
- var index2 = require('../../../../_virtual/index2.js');
12
+ var index2 = require('../../_virtual/index2.js');
13
13
  require('./cjs/react-is.production.min.js');
14
14
  require('./cjs/react-is.development.js');
15
- var reactIs_production_min = require('../../../../_virtual/react-is.production.min.js');
16
- var reactIs_development = require('../../../../_virtual/react-is.development.js');
15
+ var reactIs_production_min = require('../../_virtual/react-is.production.min.js');
16
+ var reactIs_development = require('../../_virtual/react-is.development.js');
17
17
 
18
18
  /** @LICENSE
19
19
  * @hi-ui/virtual-list
@@ -95,6 +95,8 @@ var CheckCascader = /*#__PURE__*/forwardRef(function (_a, ref) {
95
95
  globalSize = _useGlobalContext.size,
96
96
  checkCascaderConfig = _useGlobalContext.checkCascader;
97
97
  var size = (_b = sizeProp !== null && sizeProp !== void 0 ? sizeProp : globalSize) !== null && _b !== void 0 ? _b : 'md';
98
+ var _useGlobalContext2 = useGlobalContext(),
99
+ direction = _useGlobalContext2.direction;
98
100
  var i18n = useLocaleContext();
99
101
  var _useMergeSemantic = useMergeSemantic({
100
102
  classNamesList: [checkCascaderConfig === null || checkCascaderConfig === void 0 ? void 0 : checkCascaderConfig.classNames, classNamesProp],
@@ -319,7 +321,8 @@ var CheckCascader = /*#__PURE__*/forwardRef(function (_a, ref) {
319
321
  }, rest, {
320
322
  // 这种展现形式宽度是不固定的,关掉宽度匹配策略
321
323
  overlay: Object.assign({
322
- matchWidth: false
324
+ matchWidth: false,
325
+ placement: direction === 'rtl' ? 'bottom-end' : 'bottom-start'
323
326
  }, rest.overlay),
324
327
  visible: menuVisible,
325
328
  onOpen: function onOpen() {
@@ -9,7 +9,7 @@
9
9
  */
10
10
  import React__default, { forwardRef, useCallback } from 'react';
11
11
  import { getPrefixCls, cx } from '@hi-ui/classname';
12
- import { defaultLoadingIcon, defaultSuffixIcon, defaultLeafIcon } from './icons/index.js';
12
+ import { defaultLoadingIcon, DefaultSuffixIcon, defaultLeafIcon } from './icons/index.js';
13
13
  import Checkbox from '@hi-ui/checkbox';
14
14
  import { useCheckCascaderContext } from './context.js';
15
15
  import { getCascaderItemEventData } from './utils/index.js';
@@ -168,11 +168,8 @@ var renderSuffix = function renderSuffix(prefixCls, node, loading, onLoadChildre
168
168
  var canLoadChildren = onLoadChildren && !node.children && !node.isLeaf;
169
169
  if (hasChildren || canLoadChildren) {
170
170
  return /*#__PURE__*/React__default.createElement("span", {
171
- className: cx(prefixCls + "-switcher"),
172
- style: {
173
- transform: "rotate(-90deg)"
174
- }
175
- }, defaultSuffixIcon);
171
+ className: cx(prefixCls + "-switcher")
172
+ }, /*#__PURE__*/React__default.createElement(DefaultSuffixIcon, null));
176
173
  }
177
174
  return /*#__PURE__*/React__default.createElement("span", {
178
175
  className: cx(prefixCls + "-switcher", prefixCls + "-switcher--noop")
@@ -8,11 +8,16 @@
8
8
  * LICENSE file in the root directory of this source tree.
9
9
  */
10
10
  import React__default from 'react';
11
- import { DownOutlined } from '@hi-ui/icons';
11
+ import { LeftOutlined, RightOutlined } from '@hi-ui/icons';
12
12
  import { Spinner } from '@hi-ui/spinner';
13
- var defaultSuffixIcon = /*#__PURE__*/React__default.createElement(DownOutlined, null);
13
+ import { useGlobalContext } from '@hi-ui/core';
14
+ var DefaultSuffixIcon = function DefaultSuffixIcon() {
15
+ var _useGlobalContext = useGlobalContext(),
16
+ direction = _useGlobalContext.direction;
17
+ return direction === 'rtl' ? /*#__PURE__*/React__default.createElement(LeftOutlined, null) : /*#__PURE__*/React__default.createElement(RightOutlined, null);
18
+ };
14
19
  var defaultLeafIcon = null;
15
20
  var defaultLoadingIcon = /*#__PURE__*/React__default.createElement(Spinner, {
16
21
  size: "sm"
17
22
  });
18
- export { defaultLeafIcon, defaultLoadingIcon, defaultSuffixIcon };
23
+ export { DefaultSuffixIcon, defaultLeafIcon, defaultLoadingIcon };
@@ -8,7 +8,7 @@
8
8
  * LICENSE file in the root directory of this source tree.
9
9
  */
10
10
  import React__default from 'react';
11
- import '../../../react-is/index.js';
11
+ import '../../../../../react-is/index.js';
12
12
  import { r as reactIs } from '../../../../../../_virtual/index2.js';
13
13
 
14
14
  /** @LICENSE
@@ -8,7 +8,7 @@
8
8
  * LICENSE file in the root directory of this source tree.
9
9
  */
10
10
  import _typeof from '@babel/runtime/helpers/esm/typeof';
11
- import '../../react-is/index.js';
11
+ import '../../../../react-is/index.js';
12
12
  import { r as reactIs } from '../../../../../_virtual/index2.js';
13
13
 
14
14
  /** @LICENSE
@@ -8,7 +8,7 @@
8
8
  * LICENSE file in the root directory of this source tree.
9
9
  */
10
10
  import _typeof from '@babel/runtime/helpers/esm/typeof';
11
- import { __exports as reactIs_development } from '../../../../../_virtual/react-is.development.js';
11
+ import { __exports as reactIs_development } from '../../../_virtual/react-is.development.js';
12
12
 
13
13
  /** @license React v16.13.1
14
14
  * react-is.development.js
@@ -8,7 +8,7 @@
8
8
  * LICENSE file in the root directory of this source tree.
9
9
  */
10
10
  import _typeof from '@babel/runtime/helpers/esm/typeof';
11
- import { __exports as reactIs_production_min } from '../../../../../_virtual/react-is.production.min.js';
11
+ import { __exports as reactIs_production_min } from '../../../_virtual/react-is.production.min.js';
12
12
 
13
13
  /** @license React v16.13.1
14
14
  * react-is.production.min.js
@@ -7,11 +7,11 @@
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 { r as reactIs } from '../../../../_virtual/index2.js';
10
+ import { r as reactIs } from '../../_virtual/index2.js';
11
11
  import './cjs/react-is.production.min.js';
12
12
  import './cjs/react-is.development.js';
13
- import { __exports as reactIs_production_min } from '../../../../_virtual/react-is.production.min.js';
14
- import { __exports as reactIs_development } from '../../../../_virtual/react-is.development.js';
13
+ import { __exports as reactIs_production_min } from '../../_virtual/react-is.production.min.js';
14
+ import { __exports as reactIs_development } from '../../_virtual/react-is.development.js';
15
15
 
16
16
  /** @LICENSE
17
17
  * @hi-ui/virtual-list
@@ -8,10 +8,10 @@ import { HiBaseFieldNames, HiBaseSizeEnum } from '@hi-ui/core';
8
8
  * 多项级联选择器
9
9
  */
10
10
  export declare const CheckCascader: React.ForwardRefExoticComponent<CheckCascaderProps & React.RefAttributes<HTMLDivElement | null>>;
11
- export type CheckCascaderSemanticName = PickerSemanticName | 'menuList' | 'menu' | 'option';
12
- export type CheckCascaderSemanticClassNames = SemanticClassNamesType<CheckCascaderProps, CheckCascaderSemanticName>;
13
- export type CheckCascaderSemanticStyles = SemanticStylesType<CheckCascaderProps, CheckCascaderSemanticName>;
14
- export type CheckCascaderSemantic = ComponentSemantic<CheckCascaderSemanticClassNames, CheckCascaderSemanticStyles>;
11
+ export declare type CheckCascaderSemanticName = PickerSemanticName | 'menuList' | 'menu' | 'option';
12
+ export declare type CheckCascaderSemanticClassNames = SemanticClassNamesType<CheckCascaderProps, CheckCascaderSemanticName>;
13
+ export declare type CheckCascaderSemanticStyles = SemanticStylesType<CheckCascaderProps, CheckCascaderSemanticName>;
14
+ export declare type CheckCascaderSemantic = ComponentSemantic<CheckCascaderSemanticClassNames, CheckCascaderSemanticStyles>;
15
15
  export interface CheckCascaderProps extends Omit<PickerProps, 'trigger' | 'scrollable' | 'header' | 'footer' | 'classNames' | 'styles'>, CheckCascaderSemantic {
16
16
  /**
17
17
  * 设置选择项数据源
@@ -1,3 +1,3 @@
1
1
  import React from 'react';
2
2
  import { CheckCascaderDataItem, CheckCascaderItemEventData } from '../types';
3
- export declare const useAsyncSwitch: (setCascaderData: React.Dispatch<React.SetStateAction<CheckCascaderDataItem[]>>, onExpand?: (selectedOption: CheckCascaderItemEventData) => void, onLoadChildren?: (item: CheckCascaderItemEventData, idPaths: React.ReactText[]) => Promise<CheckCascaderDataItem[] | void> | void) => readonly [(id: React.ReactText) => boolean, (node: CheckCascaderItemEventData) => Promise<void>];
3
+ export declare const useAsyncSwitch: (setCascaderData: React.Dispatch<React.SetStateAction<CheckCascaderDataItem[]>>, onExpand?: ((selectedOption: CheckCascaderItemEventData) => void) | undefined, onLoadChildren?: ((item: CheckCascaderItemEventData, idPaths: React.ReactText[]) => Promise<CheckCascaderDataItem[] | void> | void) | undefined) => readonly [(id: React.ReactText) => boolean, (node: CheckCascaderItemEventData) => Promise<void>];
@@ -1,6 +1,6 @@
1
1
  import React from 'react';
2
2
  import { CheckCascaderItemEventData, FlattedCheckCascaderDataItem } from '../types';
3
- export declare const useCheck: (checkedMode: string, disabled: boolean, flattedData: FlattedCheckCascaderDataItem[], defaultCheckedIds?: React.ReactText[], checkedIdsProp?: React.ReactText[], onCheck?: (checkedInfo: {
3
+ export declare const useCheck: (checkedMode: string, disabled: boolean, flattedData: FlattedCheckCascaderDataItem[], defaultCheckedIds?: React.ReactText[], checkedIdsProp?: React.ReactText[] | undefined, onCheck?: ((checkedInfo: {
4
4
  checkedIds: React.ReactText[];
5
5
  semiCheckedIds: React.ReactText[];
6
- }, node: CheckCascaderItemEventData, checked: boolean) => void) => readonly [(targetItem: import("@hi-ui/use-check").UseCascadeCheckItem, shouldChecked: boolean) => void, (id: React.ReactText) => boolean, (id: React.ReactText) => boolean];
6
+ }, node: CheckCascaderItemEventData, checked: boolean) => void) | undefined) => readonly [(targetItem: import("@hi-ui/use-check").UseCascadeCheckItem, shouldChecked: boolean) => void, (id: React.ReactText) => boolean, (id: React.ReactText) => boolean];
@@ -1,3 +1,3 @@
1
- export declare const defaultSuffixIcon: JSX.Element;
1
+ export declare const DefaultSuffixIcon: () => JSX.Element;
2
2
  export declare const defaultLeafIcon: null;
3
3
  export declare const defaultLoadingIcon: JSX.Element;
@@ -63,5 +63,5 @@ export interface CheckCascaderDataItemRequiredProps {
63
63
  }
64
64
  export interface CheckCascaderItemEventData extends FlattedCheckCascaderDataItem, CheckCascaderDataItemRequiredProps {
65
65
  }
66
- export type CheckCascaderExpandTriggerEnum = 'click' | 'hover';
67
- export type CheckCascaderAppearanceEnum = HiBaseAppearanceEnum | 'contained' | undefined;
66
+ export declare type CheckCascaderExpandTriggerEnum = 'click' | 'hover';
67
+ export declare type CheckCascaderAppearanceEnum = HiBaseAppearanceEnum | 'contained' | undefined;
@@ -7,10 +7,10 @@ import { CheckCascaderDataItemRequiredProps, CheckCascaderItemEventData, CheckCa
7
7
  * @param treeData
8
8
  * @returns
9
9
  */
10
- export declare const flattenTreeData: (treeData: CheckCascaderDataItem[], fieldNames?: HiBaseFieldNames) => FlattedCheckCascaderDataItem[];
11
- export declare const getActiveMenus: (data: FlattedCheckCascaderDataItem[], selectedIds?: React.ReactText) => FlattedCheckCascaderDataItem[][];
10
+ export declare const flattenTreeData: (treeData: CheckCascaderDataItem[], fieldNames?: HiBaseFieldNames | undefined) => FlattedCheckCascaderDataItem[];
11
+ export declare const getActiveMenus: (data: FlattedCheckCascaderDataItem[], selectedIds?: React.ReactText | undefined) => FlattedCheckCascaderDataItem[][];
12
12
  export declare const getFlattedMenus: (data: FlattedCheckCascaderDataItem[]) => FlattedCheckCascaderDataItem[][];
13
- export declare const getActiveMenuIds: (data: FlattedCheckCascaderDataItem[], selectedIds?: React.ReactText) => React.ReactText[];
13
+ export declare const getActiveMenuIds: (data: FlattedCheckCascaderDataItem[], selectedIds?: React.ReactText | undefined) => React.ReactText[];
14
14
  export declare function getCascaderItemEventData(node: FlattedCheckCascaderDataItem, requiredProps: CheckCascaderDataItemRequiredProps): CheckCascaderItemEventData;
15
15
  /**
16
16
  * 处理选中的回显数据
@@ -23,7 +23,7 @@ export declare const processCheckedIds: (type: string, checkedIds: React.ReactTe
23
23
  /**
24
24
  * 根据传入的 checkedIds 解析全选/半选数据
25
25
  */
26
- export declare const parseCheckDataDirty: (type: string, checkedIds: React.ReactText[], flattenData: any, allowCheck?: (node: any) => boolean) => React.ReactText[];
26
+ export declare const parseCheckDataDirty: (type: string, checkedIds: React.ReactText[], flattenData: any, allowCheck?: ((node: any) => boolean) | undefined) => React.ReactText[];
27
27
  export declare const allowCheck: (targetItem: CheckCascaderItemEventData) => boolean;
28
28
  export declare const getAllCheckedStatus: (flattedData: any[], values: React.ReactText[]) => boolean[];
29
29
  export declare const getFilteredMenuList: (menuList: FlattedCheckCascaderDataItem[][], searchedData: any[]) => any[];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hi-ui/check-cascader",
3
- "version": "5.0.0-experimental.2",
3
+ "version": "5.0.0",
4
4
  "description": "A sub-package for @hi-ui/hiui.",
5
5
  "keywords": [],
6
6
  "author": "HiUI <mi-hiui@xiaomi.com>",
@@ -45,38 +45,38 @@
45
45
  "url": "https://github.com/XiaoMi/hiui/issues"
46
46
  },
47
47
  "dependencies": {
48
- "@hi-ui/array-utils": "^5.0.0-experimental.0",
49
- "@hi-ui/checkbox": "^5.0.0-experimental.1",
50
- "@hi-ui/classname": "^5.0.0-experimental.0",
51
- "@hi-ui/env": "^5.0.0-experimental.0",
52
- "@hi-ui/func-utils": "^5.0.0-experimental.0",
53
- "@hi-ui/icons": "^5.0.0-experimental.1",
54
- "@hi-ui/input": "^5.0.0-experimental.2",
55
- "@hi-ui/picker": "^5.0.0-experimental.2",
56
- "@hi-ui/popper": "^5.0.0-experimental.1",
57
- "@hi-ui/spinner": "^5.0.0-experimental.1",
58
- "@hi-ui/tag-input": "^5.0.0-experimental.2",
59
- "@hi-ui/times": "^5.0.0-experimental.0",
60
- "@hi-ui/tree-utils": "^5.0.0-experimental.0",
61
- "@hi-ui/type-assertion": "^5.0.0-experimental.0",
62
- "@hi-ui/use-check": "^5.0.0-experimental.0",
63
- "@hi-ui/use-data-source": "^5.0.0-experimental.0",
64
- "@hi-ui/use-latest": "^5.0.0-experimental.0",
65
- "@hi-ui/use-merge-refs": "^5.0.0-experimental.0",
66
- "@hi-ui/use-outside-click": "^5.0.0-experimental.0",
67
- "@hi-ui/use-search-mode": "^5.0.0-experimental.0",
68
- "@hi-ui/use-toggle": "^5.0.0-experimental.0",
69
- "@hi-ui/use-uncontrolled-state": "^5.0.0-experimental.0",
70
- "@hi-ui/use-merge-semantic": "^5.0.0-experimental.0"
48
+ "@hi-ui/array-utils": "^5.0.0",
49
+ "@hi-ui/checkbox": "^5.0.0",
50
+ "@hi-ui/classname": "^5.0.0",
51
+ "@hi-ui/env": "^5.0.0",
52
+ "@hi-ui/func-utils": "^5.0.0",
53
+ "@hi-ui/icons": "^5.0.0",
54
+ "@hi-ui/input": "^5.0.0",
55
+ "@hi-ui/picker": "^5.0.0",
56
+ "@hi-ui/popper": "^5.0.0",
57
+ "@hi-ui/spinner": "^5.0.0",
58
+ "@hi-ui/tag-input": "^5.0.0",
59
+ "@hi-ui/times": "^5.0.0",
60
+ "@hi-ui/tree-utils": "^5.0.0",
61
+ "@hi-ui/type-assertion": "^5.0.0",
62
+ "@hi-ui/use-check": "^5.0.0",
63
+ "@hi-ui/use-data-source": "^5.0.0",
64
+ "@hi-ui/use-latest": "^5.0.0",
65
+ "@hi-ui/use-merge-refs": "^5.0.0",
66
+ "@hi-ui/use-merge-semantic": "^5.0.0",
67
+ "@hi-ui/use-outside-click": "^5.0.0",
68
+ "@hi-ui/use-search-mode": "^5.0.0",
69
+ "@hi-ui/use-toggle": "^5.0.0",
70
+ "@hi-ui/use-uncontrolled-state": "^5.0.0"
71
71
  },
72
72
  "peerDependencies": {
73
- "@hi-ui/core": ">=5.0.0-experimental.1",
73
+ "@hi-ui/core": ">=5.0.0",
74
74
  "react": ">=16.8.6",
75
75
  "react-dom": ">=16.8.6"
76
76
  },
77
77
  "devDependencies": {
78
- "@hi-ui/core": "^5.0.0-experimental.1",
79
- "@hi-ui/core-css": "^5.0.0-experimental.2",
78
+ "@hi-ui/core": "^5.0.0",
79
+ "@hi-ui/core-css": "^5.0.0",
80
80
  "react": "^17.0.1",
81
81
  "react-dom": "^17.0.1"
82
82
  }