@hi-ui/menu 5.0.0-experimental.3 → 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.
package/CHANGELOG.md CHANGED
@@ -1,168 +1,82 @@
1
1
  # @hi-ui/menu
2
2
 
3
- ## 5.0.0-experimental.3
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
- - d49302358: feat(menu): title 支持显示 2 行 (5.0)
11
+ - [#3516](https://github.com/XiaoMi/hiui/pull/3516) [`d49302358`](https://github.com/XiaoMi/hiui/commit/d49302358d61de6307ae5cc74035616caeda48c1) Thanks [@zyprepare](https://github.com/zyprepare)! - feat(menu): title 支持显示 2 行 (5.0)
8
12
 
9
- ### Patch Changes
13
+ - [#3532](https://github.com/XiaoMi/hiui/pull/3532) [`5828ae8ab`](https://github.com/XiaoMi/hiui/commit/5828ae8ab46e955e09644e6c702476f143258f92) Thanks [@zyprepare](https://github.com/zyprepare)! - feat(menu): 增加 GroupMenu 和 SideMenu 组件 (5.0)
10
14
 
11
- - Updated dependencies [3a7186e4b]
12
- - @hi-ui/use-merge-semantic@5.0.0-experimental.1
15
+ - [#3532](https://github.com/XiaoMi/hiui/pull/3532) [`c38e6e4bf`](https://github.com/XiaoMi/hiui/commit/c38e6e4bf7ba0c626a2cb9ada4a0d34ac7c3714e) Thanks [@zyprepare](https://github.com/zyprepare)! - feat(menu): GroupMenu 组件增加 titleRender 参数 (5.0)
13
16
 
14
- ## 5.0.0-experimental.2
17
+ - [#3532](https://github.com/XiaoMi/hiui/pull/3532) [`a5937df94`](https://github.com/XiaoMi/hiui/commit/a5937df9464d0243b23f52fc09e9724489543018) Thanks [@zyprepare](https://github.com/zyprepare)! - feat(menu): add showTitleOnMini api (5.0)
15
18
 
16
- ### Minor Changes
19
+ - [#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)
17
20
 
18
- - 59cef699f: feat: 组件语义化样式改造,增加 styles classNames 属性 (5.0)
21
+ - [#3532](https://github.com/XiaoMi/hiui/pull/3532) [`bfc1cb7c8`](https://github.com/XiaoMi/hiui/commit/bfc1cb7c807ebc2be0c80f8f2e9d1ec08d357f12) Thanks [@zyprepare](https://github.com/zyprepare)! - chore(menu): 增加变更记录文件 (5.0)
19
22
 
20
23
  ### Patch Changes
21
24
 
22
- - eb17c4697: style: 修复 UI/样式问题 (5.0)
23
- - Updated dependencies [7f204c892]
24
- - Updated dependencies [66bc9c3e2]
25
- - Updated dependencies [eb17c4697]
26
- - Updated dependencies [eb17c4697]
27
- - Updated dependencies [c407744fe]
28
- - Updated dependencies [59cef699f]
29
- - @hi-ui/icons@5.0.0-experimental.1
30
- - @hi-ui/ellipsis-tooltip@5.0.0-experimental.1
31
- - @hi-ui/core@5.0.0-experimental.1
32
- - @hi-ui/button@5.0.0-experimental.1
33
- - @hi-ui/highlighter@5.0.0-experimental.1
34
- - @hi-ui/icon-button@5.0.0-experimental.1
35
- - @hi-ui/input@5.0.0-experimental.2
36
- - @hi-ui/picker@5.0.0-experimental.2
37
- - @hi-ui/popper@5.0.0-experimental.1
38
- - @hi-ui/scrollbar@5.0.0-experimental.1
39
- - @hi-ui/tooltip@5.0.0-experimental.1
40
- - @hi-ui/use-merge-semantic@5.0.0-experimental.0
41
-
42
- ## 5.0.0-experimental.1
25
+ - [#3532](https://github.com/XiaoMi/hiui/pull/3532) [`1e226cd66`](https://github.com/XiaoMi/hiui/commit/1e226cd66413cea8eb1e63b1cb83c1bfbf5f0a41) Thanks [@zyprepare](https://github.com/zyprepare)! - chore: 修改 react-compat 依赖管理方式 & 更新 react-transition-group 依赖 (5.0)
43
26
 
44
- ### Patch Changes
27
+ - [#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)
45
28
 
46
- - ec6005193: style(layout,menu): 样式和示例调整 (5.0)
47
- - 发布 hiui experimental 版本
48
- - Updated dependencies [8f23e9322]
49
- - Updated dependencies [b27483796]
50
- - Updated dependencies [900c6c2f0]
51
- - Updated dependencies
52
- - @hi-ui/input@5.0.0-experimental.1
53
- - @hi-ui/picker@5.0.0-experimental.1
29
+ - [#3532](https://github.com/XiaoMi/hiui/pull/3532) [`e785237b1`](https://github.com/XiaoMi/hiui/commit/e785237b13e6bc9e3780274960a128085c1af07d) Thanks [@zyprepare](https://github.com/zyprepare)! - <br />
54
30
 
55
- ## 5.0.0-experimental.0
31
+ - perf(layout): 优化导航菜单交互体验 (5.0)
32
+ - perf(menu): 优化搜索菜单组件的样式和交互逻辑 & 修改分组菜单样式问题 (5.0)
56
33
 
57
- ### Major Changes
34
+ - [#3532](https://github.com/XiaoMi/hiui/pull/3532) [`8c0ee78f0`](https://github.com/XiaoMi/hiui/commit/8c0ee78f013dcd9ced94cef13a69933e039621aa) Thanks [@zyprepare](https://github.com/zyprepare)! - perf: 优化全局 size 配置,对于组件中没有的 size 值,取最接近的尺寸展示 (5.0)
58
35
 
59
- - 8f3aa85e4: feat: 组件的 package.json 中的 exports 统一加上 types 配置 (5.0)
36
+ - [#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)
60
37
 
61
- ### Minor Changes
38
+ - [#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)
62
39
 
63
- - 5828ae8ab: feat(menu): 增加 GroupMenu SideMenu 组件 (5.0)
64
- - c38e6e4bf: feat(menu): GroupMenu 组件增加 titleRender 参数 (5.0)
65
- - a5937df94: feat(menu): add showTitleOnMini api (5.0)
66
- - bfc1cb7c8: chore(menu): 增加变更记录文件 (5.0)
40
+ - [#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)
67
41
 
68
- ### Patch Changes
42
+ - [#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)
69
43
 
70
- - 6fb223e3a: style: fix ui bug (5.0)
71
- - 1e226cd66: chore: 修改 react-compat 依赖管理方式 & 更新 react-transition-group 依赖 (5.0)
72
- - 9b34d99bc: chore: 将代码中 v4 改为 v5 (5.0)
73
- - 1662753e0: style: fix ui bug (5.0)
74
- - e785237b1: <br />
75
- - perf(layout): 优化导航菜单交互体验 (5.0)
76
- - perf(menu): 优化搜索菜单组件的样式和交互逻辑 & 修改分组菜单样式问题 (5.0)
77
- - 8c0ee78f0: perf: 优化全局 size 配置,对于组件中没有的 size 值,取最接近的尺寸展示 (5.0)
78
- - c021539a3: style: fix ui bug (5.0)
79
- - be5a59325: style: 修改样式问题 (5.0)
80
- - 79ea480f3: feat(global-context): 增加 size api 全局配置 (5.0)
81
- - 2b6cfd655: style: fix ui bug (5.0)
82
- - 2e56529f7: styles: 主题定制功能完善&&样式变量化写法改造&&兼容 RTL (5.0)
83
- - 95abba983: fix: 修改 UI 问题 (5.0)
84
- - c2e765ada: style(layout): 修改 Sider 收起时宽度为 60px & 增加 width 参数 (5.0)
85
- - 52d25f630: perf(layout&menu): 优化 FloatMenuContainer 组件的折叠逻辑 & 修改 SideMenu 组件 hover 样式 (5.0)
86
- - 1b824c9ad: style(menu): 优化 GroupMenu 组件的样式和交互逻辑 (5.0)
87
- - 33da3144e: build: 将 package.json 中 exports 配置中的 types 配置放在最上面 (5.0)
88
- - 7f3abee55: style: fix ui bug (5.0)
89
- - a0f0c9d6b: style: 修改 UI 问题 (5.0)
90
- - Updated dependencies [0b34e1c15]
91
- - Updated dependencies [6fb223e3a]
92
- - Updated dependencies [da2e63a14]
93
- - Updated dependencies [1e226cd66]
94
- - Updated dependencies [eea29eade]
95
- - Updated dependencies [b9989e482]
96
- - Updated dependencies [1662753e0]
97
- - Updated dependencies [122d1d859]
98
- - Updated dependencies [f1ab51725]
99
- - Updated dependencies [41552be0b]
100
- - Updated dependencies [8c0ee78f0]
101
- - Updated dependencies [9b34d99bc]
102
- - Updated dependencies [8f3aa85e4]
103
- - Updated dependencies [f4fc0ef30]
104
- - Updated dependencies [c021539a3]
105
- - Updated dependencies [ec4c7faa2]
106
- - Updated dependencies [29cae09ea]
107
- - Updated dependencies [95dd766b9]
108
- - Updated dependencies [fd4c20bbd]
109
- - Updated dependencies [be5a59325]
110
- - Updated dependencies [71fc15e5c]
111
- - Updated dependencies [79ea480f3]
112
- - Updated dependencies [fa5a60b56]
113
- - Updated dependencies [2e56529f7]
114
- - Updated dependencies [277c5033a]
115
- - Updated dependencies [95abba983]
116
- - Updated dependencies [8a92ec660]
117
- - Updated dependencies [4a31cea53]
118
- - Updated dependencies [1429eced2]
119
- - Updated dependencies [9b34d99bc]
120
- - Updated dependencies [976ec929d]
121
- - Updated dependencies [d021b4fa6]
122
- - Updated dependencies [f1ab51725]
123
- - Updated dependencies [6dca7795c]
124
- - Updated dependencies [5210770d9]
125
- - Updated dependencies [e2d184e74]
126
- - Updated dependencies [77d969c2e]
127
- - Updated dependencies [4006b2c8c]
128
- - Updated dependencies [e42e2badf]
129
- - Updated dependencies [33da3144e]
130
- - Updated dependencies [0a8cc07a7]
131
- - Updated dependencies [7f3abee55]
132
- - Updated dependencies [6fcda9bf2]
133
- - Updated dependencies [0a4e90dbd]
134
- - Updated dependencies [58ad82e94]
135
- - Updated dependencies [a0f0c9d6b]
136
- - Updated dependencies [0f4794deb]
137
- - Updated dependencies [f2be367e9]
138
- - Updated dependencies [1972fd16a]
139
- - Updated dependencies [99801c2d1]
140
- - Updated dependencies [86910f5e2]
141
- - Updated dependencies [cb7b794d0]
142
- - @hi-ui/picker@5.0.0-experimental.0
143
- - @hi-ui/tooltip@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/button@5.0.0-experimental.0
147
- - @hi-ui/icons@5.0.0-experimental.0
148
- - @hi-ui/icon-button@5.0.0-experimental.0
149
- - @hi-ui/core@5.0.0-experimental.0
150
- - @hi-ui/use-id@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-resize-observer@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/ellipsis-tooltip@5.0.0-experimental.0
158
- - @hi-ui/highlighter@5.0.0-experimental.0
159
- - @hi-ui/scrollbar@5.0.0-experimental.0
160
- - @hi-ui/array-utils@5.0.0-experimental.0
161
- - @hi-ui/classname@5.0.0-experimental.0
162
- - @hi-ui/env@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
44
+ - [#3532](https://github.com/XiaoMi/hiui/pull/3532) [`c2e765ada`](https://github.com/XiaoMi/hiui/commit/c2e765ada8cd0b283f213a2324c5a81725ea08bf) Thanks [@zyprepare](https://github.com/zyprepare)! - style(layout): 修改 Sider 收起时宽度为 60px & 增加 width 参数 (5.0)
45
+
46
+ - [#3532](https://github.com/XiaoMi/hiui/pull/3532) [`52d25f630`](https://github.com/XiaoMi/hiui/commit/52d25f630b88f89270f94161e79d5c274b97338c) Thanks [@zyprepare](https://github.com/zyprepare)! - perf(layout&menu): 优化 FloatMenuContainer 组件的折叠逻辑 & 修改 SideMenu 组件 hover 样式 (5.0)
47
+
48
+ - [#3532](https://github.com/XiaoMi/hiui/pull/3532) [`1b824c9ad`](https://github.com/XiaoMi/hiui/commit/1b824c9ad35890df3727a4b3ed91d18e7a9a8b62) Thanks [@zyprepare](https://github.com/zyprepare)! - style(menu): 优化 GroupMenu 组件的样式和交互逻辑 (5.0)
49
+
50
+ - [#3488](https://github.com/XiaoMi/hiui/pull/3488) [`ec6005193`](https://github.com/XiaoMi/hiui/commit/ec6005193681b77d6ffc3c7ece4a2a1f8a8aa05e) Thanks [@zyprepare](https://github.com/zyprepare)! - style(layout,menu): 样式和示例调整 (5.0)
51
+
52
+ - [#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)
53
+
54
+ - 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), [`eea29eade`](https://github.com/XiaoMi/hiui/commit/eea29eade364317198270daa62d7454279f9068a), [`b9989e482`](https://github.com/XiaoMi/hiui/commit/b9989e48214dbbf8a938a788d3a415d9bb94b1b2), [`7f204c892`](https://github.com/XiaoMi/hiui/commit/7f204c892156ea8a4fb95d218db9d59c8c4e0c49), [`66bc9c3e2`](https://github.com/XiaoMi/hiui/commit/66bc9c3e24b2c8d20875a07c5305fb37f10ac5ac), [`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), [`ec4c7faa2`](https://github.com/XiaoMi/hiui/commit/ec4c7faa29cb7812664d866260c7a59dc76cb983), [`29cae09ea`](https://github.com/XiaoMi/hiui/commit/29cae09ea3d7a61781c3c4a9f51355a83229bd97), [`95dd766b9`](https://github.com/XiaoMi/hiui/commit/95dd766b919af5c02d0d29d8b99a61261183da2f), [`fd4c20bbd`](https://github.com/XiaoMi/hiui/commit/fd4c20bbd30e18bc4c1a2eb078acaa4790f7b2eb), [`79ea480f3`](https://github.com/XiaoMi/hiui/commit/79ea480f33bb8f692dda1e6252a9d2a75c3ac30d), [`fa5a60b56`](https://github.com/XiaoMi/hiui/commit/fa5a60b5627c18128f949387b3a21dec0734c424), [`2e56529f7`](https://github.com/XiaoMi/hiui/commit/2e56529f7ea8c74e2fac8b6061628d4fd0d862ac), [`3a7186e4b`](https://github.com/XiaoMi/hiui/commit/3a7186e4b4e7ce351c3856f3e1ba574b9f6df22f), [`277c5033a`](https://github.com/XiaoMi/hiui/commit/277c5033aacd43ef3d6b8e0b9e818a09ebe21875), [`95abba983`](https://github.com/XiaoMi/hiui/commit/95abba98391a31c3cd79704fa0a63f64f437601f), [`8f23e9322`](https://github.com/XiaoMi/hiui/commit/8f23e9322e8aa117608d42898cce1f9d74414629), [`8a92ec660`](https://github.com/XiaoMi/hiui/commit/8a92ec660d7622768574dfe2e799b24d14e052a7), [`4a31cea53`](https://github.com/XiaoMi/hiui/commit/4a31cea53a1ec48c6e31b1703315ba5838ad883f), [`b27483796`](https://github.com/XiaoMi/hiui/commit/b2748379661e2e7a4c18e94c478dc2554405c7dd), [`1429eced2`](https://github.com/XiaoMi/hiui/commit/1429eced2c79d22b6973229af3860b5dc48ad4a9), [`eb17c4697`](https://github.com/XiaoMi/hiui/commit/eb17c46978dfcb5e8ec0a0e3b3dcffabae8d31fe), [`9b34d99bc`](https://github.com/XiaoMi/hiui/commit/9b34d99bc2aa8b78b9e3281e08afc086ac4afea1), [`976ec929d`](https://github.com/XiaoMi/hiui/commit/976ec929da088830d4d4bfa5438aa679676f71ca), [`d021b4fa6`](https://github.com/XiaoMi/hiui/commit/d021b4fa6440faa7a09140c2c35dda10d51a35b3), [`f1ab51725`](https://github.com/XiaoMi/hiui/commit/f1ab517258599ee2dfad183e4a8c7b855ef409c1), [`6dca7795c`](https://github.com/XiaoMi/hiui/commit/6dca7795c71123f941d91b991ecd17ce26b6a2da), [`900c6c2f0`](https://github.com/XiaoMi/hiui/commit/900c6c2f0b397bb2a6c2a5b2cc0c0f83442813ec), [`5210770d9`](https://github.com/XiaoMi/hiui/commit/5210770d9d6bf9c83e84a28229f2007202d2d3b8), [`c407744fe`](https://github.com/XiaoMi/hiui/commit/c407744fea78d93da66b73eed0b62d18e5b3a011), [`d91a8bb0f`](https://github.com/XiaoMi/hiui/commit/d91a8bb0f887fa886215aa596852eef3c2ce8519), [`77d969c2e`](https://github.com/XiaoMi/hiui/commit/77d969c2e4f6db55f6cc154c1803971ac3e3f085), [`4006b2c8c`](https://github.com/XiaoMi/hiui/commit/4006b2c8cabba5ec553b69a17e4bf3fb53fe9180), [`e42e2badf`](https://github.com/XiaoMi/hiui/commit/e42e2badfd099ced93eaf8414513d7a49d1e66c0), [`33da3144e`](https://github.com/XiaoMi/hiui/commit/33da3144e916edd75ee0669ca9e5090edc681193), [`6fcda9bf2`](https://github.com/XiaoMi/hiui/commit/6fcda9bf23e6e16c593fd4d9e3db8d08bcb6b9b5), [`0a4e90dbd`](https://github.com/XiaoMi/hiui/commit/0a4e90dbd7398e69511e7505b1fd6093eca48cee), [`58ad82e94`](https://github.com/XiaoMi/hiui/commit/58ad82e9441e76bf6090e6a0f4e36a04342c25f0), [`0f4794deb`](https://github.com/XiaoMi/hiui/commit/0f4794debde4e42468c1cf46d1130c21372bff05), [`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)]:
55
+ - @hi-ui/picker@5.0.0
56
+ - @hi-ui/input@5.0.0
57
+ - @hi-ui/popper@5.0.0
58
+ - @hi-ui/tooltip@5.0.0
59
+ - @hi-ui/button@5.0.0
60
+ - @hi-ui/icons@5.0.0
61
+ - @hi-ui/ellipsis-tooltip@5.0.0
62
+ - @hi-ui/core@5.0.0
63
+ - @hi-ui/use-id@5.0.0
64
+ - @hi-ui/use-latest@5.0.0
65
+ - @hi-ui/use-merge-refs@5.0.0
66
+ - @hi-ui/use-outside-click@5.0.0
67
+ - @hi-ui/use-resize-observer@5.0.0
68
+ - @hi-ui/use-toggle@5.0.0
69
+ - @hi-ui/use-uncontrolled-state@5.0.0
70
+ - @hi-ui/highlighter@5.0.0
71
+ - @hi-ui/icon-button@5.0.0
72
+ - @hi-ui/scrollbar@5.0.0
73
+ - @hi-ui/array-utils@5.0.0
74
+ - @hi-ui/classname@5.0.0
75
+ - @hi-ui/env@5.0.0
76
+ - @hi-ui/times@5.0.0
77
+ - @hi-ui/tree-utils@5.0.0
78
+ - @hi-ui/type-assertion@5.0.0
79
+ - @hi-ui/use-merge-semantic@5.0.0
166
80
 
167
81
  ## 4.3.2
168
82
 
@@ -6,10 +6,10 @@ import { MenuDataItem } from './types';
6
6
  * 分组菜单
7
7
  */
8
8
  export declare const GroupMenu: React.ForwardRefExoticComponent<GroupMenuProps & React.RefAttributes<HTMLDivElement | null>>;
9
- export type GroupMenuSemanticName = 'root' | 'wrapper' | 'item' | 'itemContent' | 'itemIcon' | 'itemTitle';
10
- export type GroupMenuSemanticClassNames = SemanticClassNamesType<GroupMenuProps, GroupMenuSemanticName>;
11
- export type GroupMenuSemanticStyles = SemanticStylesType<GroupMenuProps, GroupMenuSemanticName>;
12
- export type GroupMenuSemantic = ComponentSemantic<GroupMenuSemanticClassNames, GroupMenuSemanticStyles>;
9
+ export declare type GroupMenuSemanticName = 'root' | 'wrapper' | 'item' | 'itemContent' | 'itemIcon' | 'itemTitle';
10
+ export declare type GroupMenuSemanticClassNames = SemanticClassNamesType<GroupMenuProps, GroupMenuSemanticName>;
11
+ export declare type GroupMenuSemanticStyles = SemanticStylesType<GroupMenuProps, GroupMenuSemanticName>;
12
+ export declare type GroupMenuSemantic = ComponentSemantic<GroupMenuSemanticClassNames, GroupMenuSemanticStyles>;
13
13
  export interface GroupMenuProps extends Omit<HiBaseHTMLProps<'div'>, 'onClick'>, GroupMenuSemantic {
14
14
  /**
15
15
  * 菜单项数据列表
@@ -6,10 +6,10 @@ import { MenuDataItem, MenuFooterRenderProps } from './types';
6
6
  * 菜单
7
7
  */
8
8
  export declare const Menu: React.ForwardRefExoticComponent<MenuProps & React.RefAttributes<HTMLDivElement | null>>;
9
- export type MenuSemanticName = 'root' | 'wrapper' | 'footer' | 'toggle' | 'item' | 'itemInner' | 'itemIcon' | 'itemContent' | 'itemArrow' | 'submenu' | 'popmenu';
10
- export type MenuSemanticClassNames = SemanticClassNamesType<MenuProps, MenuSemanticName>;
11
- export type MenuSemanticStyles = SemanticStylesType<MenuProps, MenuSemanticName>;
12
- export type MenuSemantic = ComponentSemantic<MenuSemanticClassNames, MenuSemanticStyles>;
9
+ export declare type MenuSemanticName = 'root' | 'wrapper' | 'footer' | 'toggle' | 'item' | 'itemInner' | 'itemIcon' | 'itemContent' | 'itemArrow' | 'submenu' | 'popmenu';
10
+ export declare type MenuSemanticClassNames = SemanticClassNamesType<MenuProps, MenuSemanticName>;
11
+ export declare type MenuSemanticStyles = SemanticStylesType<MenuProps, MenuSemanticName>;
12
+ export declare type MenuSemantic = ComponentSemantic<MenuSemanticClassNames, MenuSemanticStyles>;
13
13
  export interface MenuProps extends Omit<HiBaseHTMLProps<'div'>, 'onClick'>, MenuSemantic {
14
14
  /**
15
15
  * 菜单项数据列表
@@ -8,10 +8,10 @@ export interface MenuSearchHelper {
8
8
  hide: () => void;
9
9
  focus: () => void;
10
10
  }
11
- export type MenuSearchSemanticName = 'root' | 'inputWrapper' | 'input' | 'inputClear' | 'close' | 'content' | 'header' | 'list' | 'listItem' | 'listItemTitle' | 'empty' | 'footer' | 'footerItem' | 'footerItemIcon' | 'footerItemText';
12
- export type MenuSearchSemanticClassNames = SemanticClassNamesType<MenuSearchProps, MenuSearchSemanticName>;
13
- export type MenuSearchSemanticStyles = SemanticStylesType<MenuSearchProps, MenuSearchSemanticName>;
14
- export type MenuSearchSemantic = ComponentSemantic<MenuSearchSemanticClassNames, MenuSearchSemanticStyles>;
11
+ export declare type MenuSearchSemanticName = 'root' | 'inputWrapper' | 'input' | 'inputClear' | 'close' | 'content' | 'header' | 'list' | 'listItem' | 'listItemTitle' | 'empty' | 'footer' | 'footerItem' | 'footerItemIcon' | 'footerItemText';
12
+ export declare type MenuSearchSemanticClassNames = SemanticClassNamesType<MenuSearchProps, MenuSearchSemanticName>;
13
+ export declare type MenuSearchSemanticStyles = SemanticStylesType<MenuSearchProps, MenuSearchSemanticName>;
14
+ export declare type MenuSearchSemantic = ComponentSemantic<MenuSearchSemanticClassNames, MenuSearchSemanticStyles>;
15
15
  export interface MenuSearchProps extends HiBaseHTMLProps<'div'>, MenuSearchSemantic {
16
16
  innerRef?: React.RefObject<MenuSearchHelper>;
17
17
  clearText?: React.ReactNode;
@@ -31,14 +31,14 @@ export interface MenuSearchProps extends HiBaseHTMLProps<'div'>, MenuSearchSeman
31
31
  }
32
32
  export declare const MenuSearchInput: React.ForwardRefExoticComponent<{
33
33
  prefixCls: string;
34
- placeholder?: string;
35
- inputRef?: React.Dispatch<React.SetStateAction<HTMLInputElement | null>>;
36
- width?: React.CSSProperties["width"];
37
- value?: string;
38
- onChange?: (value: string) => void;
39
- onClear?: () => void;
40
- onClose?: () => void;
41
- onKeyDown?: (e: React.KeyboardEvent<HTMLInputElement>) => void;
42
- semanticClassNames?: Record<string, string | undefined>;
43
- semanticStyles?: Record<string, React.CSSProperties | undefined>;
34
+ placeholder?: string | undefined;
35
+ inputRef?: React.Dispatch<React.SetStateAction<HTMLInputElement | null>> | undefined;
36
+ width?: React.CSSProperties['width'];
37
+ value?: string | undefined;
38
+ onChange?: ((value: string) => void) | undefined;
39
+ onClear?: (() => void) | undefined;
40
+ onClose?: (() => void) | undefined;
41
+ onKeyDown?: ((e: React.KeyboardEvent<HTMLInputElement>) => void) | undefined;
42
+ semanticClassNames?: Record<string, string | undefined> | undefined;
43
+ semanticStyles?: Record<string, React.CSSProperties | undefined> | undefined;
44
44
  } & React.RefAttributes<HTMLInputElement>>;
@@ -6,10 +6,10 @@ import { MenuDataItem } from './types';
6
6
  * 侧边菜单组件
7
7
  */
8
8
  export declare const SideMenu: React.ForwardRefExoticComponent<SideMenuProps & React.RefAttributes<HTMLDivElement | null>>;
9
- export type SideMenuSemanticName = 'root' | 'wrapper' | 'itemWrapper' | 'item' | 'itemIcon' | 'itemTitle';
10
- export type SideMenuSemanticClassNames = SemanticClassNamesType<SideMenuProps, SideMenuSemanticName>;
11
- export type SideMenuSemanticStyles = SemanticStylesType<SideMenuProps, SideMenuSemanticName>;
12
- export type SideMenuSemantic = ComponentSemantic<SideMenuSemanticClassNames, SideMenuSemanticStyles>;
9
+ export declare type SideMenuSemanticName = 'root' | 'wrapper' | 'itemWrapper' | 'item' | 'itemIcon' | 'itemTitle';
10
+ export declare type SideMenuSemanticClassNames = SemanticClassNamesType<SideMenuProps, SideMenuSemanticName>;
11
+ export declare type SideMenuSemanticStyles = SemanticStylesType<SideMenuProps, SideMenuSemanticName>;
12
+ export declare type SideMenuSemantic = ComponentSemantic<SideMenuSemanticClassNames, SideMenuSemanticStyles>;
13
13
  export interface SideMenuProps extends Omit<HiBaseHTMLProps<'div'>, 'onClick' | 'onMouseEnter' | 'onMouseLeave'>, SideMenuSemantic {
14
14
  /**
15
15
  * 侧边菜单宽度
@@ -6,18 +6,18 @@ export interface MenuSemanticContext {
6
6
  semanticStyles?: Record<string, React.CSSProperties | undefined>;
7
7
  }
8
8
  declare const MenuContext: React.Context<{
9
- placement?: "vertical" | "horizontal";
10
- expandedType?: "collapse" | "pop";
11
- showAllSubMenus?: boolean;
12
- mini?: boolean;
13
- showTitleOnMini?: boolean;
14
- expandedIds?: React.ReactText[];
15
- activeId?: React.ReactText;
16
- activeParents?: React.ReactText[];
17
- overlayClassName?: string;
18
- clickMenu?: (id: React.ReactText, raw: MenuDataItem) => void;
19
- clickSubMenu?: (id: React.ReactText) => void;
20
- closePopper?: (id: React.ReactText) => void;
21
- closeAllPopper?: () => void;
9
+ placement?: "horizontal" | "vertical" | undefined;
10
+ expandedType?: "collapse" | "pop" | undefined;
11
+ showAllSubMenus?: boolean | undefined;
12
+ mini?: boolean | undefined;
13
+ showTitleOnMini?: boolean | undefined;
14
+ expandedIds?: React.ReactText[] | undefined;
15
+ activeId?: React.ReactText | undefined;
16
+ activeParents?: React.ReactText[] | undefined;
17
+ overlayClassName?: string | undefined;
18
+ clickMenu?: ((id: React.ReactText, raw: MenuDataItem) => void) | undefined;
19
+ clickSubMenu?: ((id: React.ReactText) => void) | undefined;
20
+ closePopper?: ((id: React.ReactText) => void) | undefined;
21
+ closeAllPopper?: (() => void) | undefined;
22
22
  } & MenuSemanticContext>;
23
23
  export default MenuContext;
@@ -5,7 +5,7 @@ export declare const getParentId: (id: string | number, data: Record<string, any
5
5
  export declare const getAncestorIds: (id: string | number, data: Record<string, any>[], arr?: (string | number)[]) => (string | number)[];
6
6
  export declare const getIdsWithChildren: (treeData: MenuDataItem[]) => React.ReactText[];
7
7
  export declare const filterTreeData: (treeData: MenuDataItem[], searchKey: string, activeId: string | number) => MenuDataItem[];
8
- export declare const transformTreeData: (data: MenuDataItem[], fieldNames?: HiBaseFieldNames) => MenuDataItem[];
8
+ export declare const transformTreeData: (data: MenuDataItem[], fieldNames?: HiBaseFieldNames | undefined) => MenuDataItem[];
9
9
  /**
10
10
  * 根据关键字匹配菜单数据的算法
11
11
  * @param data 菜单数据数组
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hi-ui/menu",
3
- "version": "5.0.0-experimental.3",
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>",
@@ -44,40 +44,40 @@
44
44
  "url": "https://github.com/XiaoMi/hiui/issues"
45
45
  },
46
46
  "dependencies": {
47
- "@hi-ui/array-utils": "^5.0.0-experimental.0",
48
- "@hi-ui/button": "^5.0.0-experimental.1",
49
- "@hi-ui/classname": "^5.0.0-experimental.0",
50
- "@hi-ui/ellipsis-tooltip": "^5.0.0-experimental.1",
51
- "@hi-ui/env": "^5.0.0-experimental.0",
52
- "@hi-ui/highlighter": "^5.0.0-experimental.1",
53
- "@hi-ui/icon-button": "^5.0.0-experimental.1",
54
- "@hi-ui/icons": "^5.0.0-experimental.1",
55
- "@hi-ui/input": "^5.0.0-experimental.2",
56
- "@hi-ui/picker": "^5.0.0-experimental.2",
57
- "@hi-ui/popper": "^5.0.0-experimental.1",
58
- "@hi-ui/scrollbar": "^5.0.0-experimental.1",
59
- "@hi-ui/times": "^5.0.0-experimental.0",
60
- "@hi-ui/tooltip": "^5.0.0-experimental.1",
61
- "@hi-ui/tree-utils": "^5.0.0-experimental.0",
62
- "@hi-ui/type-assertion": "^5.0.0-experimental.0",
63
- "@hi-ui/use-id": "^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-resize-observer": "^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
- "react-transition-group": "^4.4.5",
71
- "@hi-ui/use-merge-semantic": "^5.0.0-experimental.1"
47
+ "@hi-ui/array-utils": "^5.0.0",
48
+ "@hi-ui/button": "^5.0.0",
49
+ "@hi-ui/classname": "^5.0.0",
50
+ "@hi-ui/ellipsis-tooltip": "^5.0.0",
51
+ "@hi-ui/env": "^5.0.0",
52
+ "@hi-ui/highlighter": "^5.0.0",
53
+ "@hi-ui/icon-button": "^5.0.0",
54
+ "@hi-ui/icons": "^5.0.0",
55
+ "@hi-ui/input": "^5.0.0",
56
+ "@hi-ui/picker": "^5.0.0",
57
+ "@hi-ui/popper": "^5.0.0",
58
+ "@hi-ui/scrollbar": "^5.0.0",
59
+ "@hi-ui/times": "^5.0.0",
60
+ "@hi-ui/tooltip": "^5.0.0",
61
+ "@hi-ui/tree-utils": "^5.0.0",
62
+ "@hi-ui/type-assertion": "^5.0.0",
63
+ "@hi-ui/use-id": "^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-resize-observer": "^5.0.0",
69
+ "@hi-ui/use-toggle": "^5.0.0",
70
+ "@hi-ui/use-uncontrolled-state": "^5.0.0",
71
+ "react-transition-group": "^4.4.5"
72
72
  },
73
73
  "peerDependencies": {
74
- "@hi-ui/core": ">=5.0.0-experimental.1",
74
+ "@hi-ui/core": ">=5.0.0",
75
75
  "react": ">=16.8.6",
76
76
  "react-dom": ">=16.8.6"
77
77
  },
78
78
  "devDependencies": {
79
- "@hi-ui/core": "^5.0.0-experimental.1",
80
- "@hi-ui/core-css": "^5.0.0-experimental.2",
79
+ "@hi-ui/core": "^5.0.0",
80
+ "@hi-ui/core-css": "^5.0.0",
81
81
  "react": "^17.0.1",
82
82
  "react-dom": "^17.0.1"
83
83
  }