@hi-ui/layout 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,119 +1,56 @@
1
1
  # @hi-ui/layout
2
2
 
3
- ## 5.0.0-experimental.3
3
+ ## 5.0.0
4
4
 
5
- ### Patch Changes
5
+ ### Major Changes
6
6
 
7
- - 5561e8e2b: style(layout): Sider menu-item 加上间距 & Profile 加渐变背景 (5.0)
8
- - Updated dependencies [3a7186e4b]
9
- - Updated dependencies [d49302358]
10
- - @hi-ui/use-merge-semantic@5.0.0-experimental.1
11
- - @hi-ui/menu@5.0.0-experimental.3
7
+ - [#3532](https://github.com/XiaoMi/hiui/pull/3532) [`e8fd3543d`](https://github.com/XiaoMi/hiui/commit/e8fd3543d0626a78e1d7bdb46271741eb882ce66) Thanks [@zyprepare](https://github.com/zyprepare)! - feat(layout): 添加 AppListPopover 组件并更新布局样式和示例 (5.0)
12
8
 
13
- ## 5.0.0-experimental.2
9
+ - [#3532](https://github.com/XiaoMi/hiui/pull/3532) [`5828ae8ab`](https://github.com/XiaoMi/hiui/commit/5828ae8ab46e955e09644e6c702476f143258f92) Thanks [@zyprepare](https://github.com/zyprepare)! - feat(layout): 增加 FloatMenuContainer 组件 (5.0)
14
10
 
15
- ### Patch Changes
11
+ - [#3532](https://github.com/XiaoMi/hiui/pull/3532) [`df8232a61`](https://github.com/XiaoMi/hiui/commit/df8232a6139778011c65f66c4bdfb95c965256ed) Thanks [@zyprepare](https://github.com/zyprepare)! - feat(layout): 增加 Profile 组件 (5.0)
16
12
 
17
- - eb17c4697: style: 修复 UI/样式问题 (5.0)
18
- - Updated dependencies [7f204c892]
19
- - Updated dependencies [eb17c4697]
20
- - Updated dependencies [eb17c4697]
21
- - Updated dependencies [45f59fb86]
22
- - Updated dependencies [c407744fe]
23
- - Updated dependencies [59cef699f]
24
- - @hi-ui/icons@5.0.0-experimental.1
25
- - @hi-ui/core@5.0.0-experimental.1
26
- - @hi-ui/menu@5.0.0-experimental.2
27
- - @hi-ui/popover@5.0.0-experimental.1
28
- - @hi-ui/popper@5.0.0-experimental.1
29
- - @hi-ui/use-merge-semantic@5.0.0-experimental.0
30
-
31
- ## 5.0.0-experimental.1
13
+ - [#3532](https://github.com/XiaoMi/hiui/pull/3532) [`22ef60263`](https://github.com/XiaoMi/hiui/commit/22ef6026322909175e21cb0a2ebe48c2cffe4f91) Thanks [@zyprepare](https://github.com/zyprepare)! - feat(layout): 新增 Layout 组件 (5.0)
14
+
15
+ - [#3532](https://github.com/XiaoMi/hiui/pull/3532) [`3c3e077b9`](https://github.com/XiaoMi/hiui/commit/3c3e077b976ee22e5da623f25d5de64132b207cc) Thanks [@zyprepare](https://github.com/zyprepare)! - feat(layout): 增加 Header 和 Footer 组件 & 完善示例 (5.0)
16
+
17
+ ### Minor Changes
18
+
19
+ - [#3532](https://github.com/XiaoMi/hiui/pull/3532) [`c91b57c00`](https://github.com/XiaoMi/hiui/commit/c91b57c0034b2fb142b48d029726e0ba65396f19) Thanks [@zyprepare](https://github.com/zyprepare)! - feat(search-trigger): 继承 MenuSearch 组件参数 (5.0)
20
+
21
+ - [#3532](https://github.com/XiaoMi/hiui/pull/3532) [`25cea5f36`](https://github.com/XiaoMi/hiui/commit/25cea5f366550067c595f9d3e47ebfdecf1e97ca) Thanks [@zyprepare](https://github.com/zyprepare)! - - feat(layout): Sider 组件支持宽度能力增强,新增 `maxWidth` 和 `resizable` 参数 (5.0)
22
+ - style(layout): Sider 组件默认宽度改为 180px,并优化菜单项间距与 Profile 渐变背景 (5.0)
23
+ - style(layout): 折叠状态下为 FloatMenuContainer 增加 `z-index`,并支持 `zIndex` 参数配置 (5.0)
32
24
 
33
25
  ### Patch Changes
34
26
 
35
- - ec6005193: style(layout,menu): 样式和示例调整 (5.0)
36
- - 发布 hiui experimental 版本
37
- - Updated dependencies [ec6005193]
38
- - Updated dependencies
39
- - @hi-ui/menu@5.0.0-experimental.1
27
+ - [#3532](https://github.com/XiaoMi/hiui/pull/3532) [`e785237b1`](https://github.com/XiaoMi/hiui/commit/e785237b13e6bc9e3780274960a128085c1af07d) Thanks [@zyprepare](https://github.com/zyprepare)! - <br />
40
28
 
41
- ## 5.0.0-experimental.0
29
+ - perf(layout): 优化导航菜单交互体验 (5.0)
30
+ - perf(menu): 优化搜索菜单组件的样式和交互逻辑 & 修改分组菜单样式问题 (5.0)
42
31
 
43
- ### Major Changes
32
+ - [#3532](https://github.com/XiaoMi/hiui/pull/3532) [`4c767623f`](https://github.com/XiaoMi/hiui/commit/4c767623f8498c539d0cdaf9057dfade2d93352a) Thanks [@zyprepare](https://github.com/zyprepare)! - fix(layout&page-header): add types export to package.json for layout and page-header
44
33
 
45
- - e8fd3543d: feat(layout): 添加 AppListPopover 组件并更新布局样式和示例 (5.0)
34
+ - [#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)
46
35
 
47
- ### Minor Changes
36
+ - [#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)
48
37
 
49
- - c91b57c00: feat(search-trigger): 继承 MenuSearch 组件参数 (5.0)
50
- - 5828ae8ab: feat(layout): 增加 FloatMenuContainer 组件 (5.0)
51
- - df8232a61: feat(layout): 增加 Profile 组件 (5.0)
52
- - 22ef60263: feat(layout): 新增 Layout 组件 (5.0)
53
- - 3c3e077b9: feat(layout): 增加 Header 和 Footer 组件 & 完善示例 (5.0)
54
- - 25cea5f36: feat(layout): Sider 组件增加 maxWidth 参数 & FloatMenuContainer 组件增加 zIndex 参数 (5.0)
55
- - 95abba983: feat(layout): Sider 增加 resizable 参数,控制是否可改变宽度 (5.0)
38
+ - [#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)
56
39
 
57
- ### Patch Changes
40
+ - [#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)
58
41
 
59
- - 1662753e0: style: fix ui bug (5.0)
60
- - e785237b1: <br />
61
- - perf(layout): 优化导航菜单交互体验 (5.0)
62
- - perf(menu): 优化搜索菜单组件的样式和交互逻辑 & 修改分组菜单样式问题 (5.0)
63
- - c021539a3: style: fix ui bug (5.0)
64
- - 4c767623f: fix(layout&page-header): add types export to package.json for layout and page-header
65
- - be5a59325: style: 修改样式问题 (5.0)
66
- - 2b6cfd655: style: fix ui bug (5.0)
67
- - 2e56529f7: styles: 主题定制功能完善&&样式变量化写法改造&&兼容 RTL (5.0)
68
- - 95abba983: fix: 修改 UI 问题 (5.0)
69
- - c2e765ada: style(layout): 修改 Sider 收起时宽度为 60px & 增加 width 参数 (5.0)
70
- - 52d25f630: perf(layout&menu): 优化 FloatMenuContainer 组件的折叠逻辑 & 修改 SideMenu 组件 hover 样式 (5.0)
71
- - 7f3abee55: style: fix ui bug (5.0)
72
- - 872761f65: style(layout): 在折叠状态下为 FloatMenuContainer 组件添加 z-index 属性 (5.0)
73
- - 72f5dada0: style(layout): Sider 组件默认宽度改为 180px (5.0)
74
- - Updated dependencies [6fb223e3a]
75
- - Updated dependencies [1e226cd66]
76
- - Updated dependencies [9b34d99bc]
77
- - Updated dependencies [1662753e0]
78
- - Updated dependencies [e785237b1]
79
- - Updated dependencies [122d1d859]
80
- - Updated dependencies [8c0ee78f0]
81
- - Updated dependencies [8f3aa85e4]
82
- - Updated dependencies [c021539a3]
83
- - Updated dependencies [fd4c20bbd]
84
- - Updated dependencies [be5a59325]
85
- - Updated dependencies [79ea480f3]
86
- - Updated dependencies [2b6cfd655]
87
- - Updated dependencies [2e56529f7]
88
- - Updated dependencies [277c5033a]
89
- - Updated dependencies [95abba983]
90
- - Updated dependencies [c2e765ada]
91
- - Updated dependencies [976ec929d]
92
- - Updated dependencies [52d25f630]
93
- - Updated dependencies [d021b4fa6]
94
- - Updated dependencies [f1ab51725]
95
- - Updated dependencies [6f4b13151]
96
- - Updated dependencies [1b824c9ad]
97
- - Updated dependencies [5828ae8ab]
98
- - Updated dependencies [542076e55]
99
- - Updated dependencies [e42e2badf]
100
- - Updated dependencies [33da3144e]
101
- - Updated dependencies [7f3abee55]
102
- - Updated dependencies [c38e6e4bf]
103
- - Updated dependencies [a5937df94]
104
- - Updated dependencies [58ad82e94]
105
- - Updated dependencies [a0f0c9d6b]
106
- - Updated dependencies [f2be367e9]
107
- - Updated dependencies [1972fd16a]
108
- - Updated dependencies [86910f5e2]
109
- - Updated dependencies [bfc1cb7c8]
110
- - @hi-ui/menu@5.0.0-experimental.0
111
- - @hi-ui/popover@5.0.0-experimental.0
112
- - @hi-ui/popper@5.0.0-experimental.0
113
- - @hi-ui/icons@5.0.0-experimental.0
114
- - @hi-ui/core@5.0.0-experimental.0
115
- - @hi-ui/use-toggle@5.0.0-experimental.0
116
- - @hi-ui/use-uncontrolled-state@5.0.0-experimental.0
117
- - @hi-ui/classname@5.0.0-experimental.0
118
- - @hi-ui/env@5.0.0-experimental.0
119
- - @hi-ui/react-utils@5.0.0-experimental.0
42
+ - [#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)
43
+
44
+ - [#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)
45
+
46
+ - Updated dependencies [[`1e226cd66`](https://github.com/XiaoMi/hiui/commit/1e226cd66413cea8eb1e63b1cb83c1bfbf5f0a41), [`7f204c892`](https://github.com/XiaoMi/hiui/commit/7f204c892156ea8a4fb95d218db9d59c8c4e0c49), [`9b34d99bc`](https://github.com/XiaoMi/hiui/commit/9b34d99bc2aa8b78b9e3281e08afc086ac4afea1), [`e785237b1`](https://github.com/XiaoMi/hiui/commit/e785237b13e6bc9e3780274960a128085c1af07d), [`122d1d859`](https://github.com/XiaoMi/hiui/commit/122d1d859bb92379fbe109fe9a5581259e6bb9a1), [`eb17c4697`](https://github.com/XiaoMi/hiui/commit/eb17c46978dfcb5e8ec0a0e3b3dcffabae8d31fe), [`8c0ee78f0`](https://github.com/XiaoMi/hiui/commit/8c0ee78f013dcd9ced94cef13a69933e039621aa), [`1afb72ae0`](https://github.com/XiaoMi/hiui/commit/1afb72ae01eb615d42e85da1775644cb60060452), [`8f3aa85e4`](https://github.com/XiaoMi/hiui/commit/8f3aa85e4e1977854cecdf2864498a77e959bc39), [`fd4c20bbd`](https://github.com/XiaoMi/hiui/commit/fd4c20bbd30e18bc4c1a2eb078acaa4790f7b2eb), [`79ea480f3`](https://github.com/XiaoMi/hiui/commit/79ea480f33bb8f692dda1e6252a9d2a75c3ac30d), [`2e56529f7`](https://github.com/XiaoMi/hiui/commit/2e56529f7ea8c74e2fac8b6061628d4fd0d862ac), [`277c5033a`](https://github.com/XiaoMi/hiui/commit/277c5033aacd43ef3d6b8e0b9e818a09ebe21875), [`95abba983`](https://github.com/XiaoMi/hiui/commit/95abba98391a31c3cd79704fa0a63f64f437601f), [`eb17c4697`](https://github.com/XiaoMi/hiui/commit/eb17c46978dfcb5e8ec0a0e3b3dcffabae8d31fe), [`c2e765ada`](https://github.com/XiaoMi/hiui/commit/c2e765ada8cd0b283f213a2324c5a81725ea08bf), [`d49302358`](https://github.com/XiaoMi/hiui/commit/d49302358d61de6307ae5cc74035616caeda48c1), [`976ec929d`](https://github.com/XiaoMi/hiui/commit/976ec929da088830d4d4bfa5438aa679676f71ca), [`52d25f630`](https://github.com/XiaoMi/hiui/commit/52d25f630b88f89270f94161e79d5c274b97338c), [`45f59fb86`](https://github.com/XiaoMi/hiui/commit/45f59fb867019ad22b86e4056ba2cd71922fe0d7), [`d021b4fa6`](https://github.com/XiaoMi/hiui/commit/d021b4fa6440faa7a09140c2c35dda10d51a35b3), [`f1ab51725`](https://github.com/XiaoMi/hiui/commit/f1ab517258599ee2dfad183e4a8c7b855ef409c1), [`6f4b13151`](https://github.com/XiaoMi/hiui/commit/6f4b13151e5fb7155fca101ba9c8065afcbfeef7), [`1b824c9ad`](https://github.com/XiaoMi/hiui/commit/1b824c9ad35890df3727a4b3ed91d18e7a9a8b62), [`5828ae8ab`](https://github.com/XiaoMi/hiui/commit/5828ae8ab46e955e09644e6c702476f143258f92), [`ec6005193`](https://github.com/XiaoMi/hiui/commit/ec6005193681b77d6ffc3c7ece4a2a1f8a8aa05e), [`d91a8bb0f`](https://github.com/XiaoMi/hiui/commit/d91a8bb0f887fa886215aa596852eef3c2ce8519), [`542076e55`](https://github.com/XiaoMi/hiui/commit/542076e5505965fbe73c48da1ccd0e6961c29e1c), [`e42e2badf`](https://github.com/XiaoMi/hiui/commit/e42e2badfd099ced93eaf8414513d7a49d1e66c0), [`33da3144e`](https://github.com/XiaoMi/hiui/commit/33da3144e916edd75ee0669ca9e5090edc681193), [`c38e6e4bf`](https://github.com/XiaoMi/hiui/commit/c38e6e4bf7ba0c626a2cb9ada4a0d34ac7c3714e), [`a5937df94`](https://github.com/XiaoMi/hiui/commit/a5937df9464d0243b23f52fc09e9724489543018), [`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), [`bfc1cb7c8`](https://github.com/XiaoMi/hiui/commit/bfc1cb7c807ebc2be0c80f8f2e9d1ec08d357f12)]:
47
+ - @hi-ui/menu@5.0.0
48
+ - @hi-ui/popover@5.0.0
49
+ - @hi-ui/popper@5.0.0
50
+ - @hi-ui/icons@5.0.0
51
+ - @hi-ui/core@5.0.0
52
+ - @hi-ui/use-toggle@5.0.0
53
+ - @hi-ui/use-uncontrolled-state@5.0.0
54
+ - @hi-ui/classname@5.0.0
55
+ - @hi-ui/env@5.0.0
56
+ - @hi-ui/react-utils@5.0.0
@@ -17,6 +17,7 @@ var tslib = require('tslib');
17
17
  var React = require('react');
18
18
  var classname = require('@hi-ui/classname');
19
19
  var env = require('@hi-ui/env');
20
+ var core = require('@hi-ui/core');
20
21
  var Popover = require('@hi-ui/popover');
21
22
  var icons = require('@hi-ui/icons');
22
23
  var useToggle = require('@hi-ui/use-toggle');
@@ -41,6 +42,8 @@ var Profile = /*#__PURE__*/React.forwardRef(function (_a, ref) {
41
42
  settings = _a.settings,
42
43
  rest = tslib.__rest(_a, ["prefixCls", "role", "className", "children", "header", "footer", "settings"]);
43
44
  var cls = classname.cx(prefixCls, className);
45
+ var _useGlobalContext = core.useGlobalContext(),
46
+ direction = _useGlobalContext.direction;
44
47
  var _useUncontrolledState = useUncontrolledState.useUncontrolledState((_b = settings === null || settings === void 0 ? void 0 : settings.value) !== null && _b !== void 0 ? _b : {}, settings === null || settings === void 0 ? void 0 : settings.value),
45
48
  value = _useUncontrolledState[0],
46
49
  setValue = _useUncontrolledState[1];
@@ -105,7 +108,7 @@ var Profile = /*#__PURE__*/React.forwardRef(function (_a, ref) {
105
108
  className: prefixCls + "__settings-item__subtitle"
106
109
  }, item.subtitle)) : null), ((_d = item.children) === null || _d === void 0 ? void 0 : _d.length) ? ( /*#__PURE__*/React__default["default"].createElement("div", {
107
110
  className: prefixCls + "__settings-item__arrow"
108
- }, /*#__PURE__*/React__default["default"].createElement(icons.RightOutlined, null))) : null));
111
+ }, direction === 'rtl' ? /*#__PURE__*/React__default["default"].createElement(icons.LeftOutlined, null) : /*#__PURE__*/React__default["default"].createElement(icons.RightOutlined, null))) : null));
109
112
  })), /*#__PURE__*/React__default["default"].createElement("div", {
110
113
  className: prefixCls + "__footer"
111
114
  }, /*#__PURE__*/React__default["default"].createElement("div", {
@@ -13,7 +13,7 @@ var _typeof = require("@babel/runtime/helpers/typeof");
13
13
  Object.defineProperty(exports, '__esModule', {
14
14
  value: true
15
15
  });
16
- require('./node_modules/react-is/index.js');
16
+ require('../react-is/index.js');
17
17
  var index$1 = require('../object-assign/index.js');
18
18
  var ReactPropTypesSecret$1 = require('./lib/ReactPropTypesSecret.js');
19
19
  var checkPropTypes$1 = require('./checkPropTypes.js');
@@ -10,7 +10,7 @@
10
10
  'use strict';
11
11
 
12
12
  var index = require('../../_virtual/index2.js');
13
- require('./node_modules/react-is/index.js');
13
+ require('../react-is/index.js');
14
14
  var factoryWithTypeCheckers = require('./factoryWithTypeCheckers.js');
15
15
  var factoryWithThrowingShims = require('./factoryWithThrowingShims.js');
16
16
  var index$1 = require('../../_virtual/index3.js');
@@ -13,7 +13,7 @@ var _typeof = require("@babel/runtime/helpers/typeof");
13
13
  Object.defineProperty(exports, '__esModule', {
14
14
  value: true
15
15
  });
16
- var reactIs_development = require('../../../../../_virtual/react-is.development.js');
16
+ var reactIs_development = require('../../../_virtual/react-is.development.js');
17
17
 
18
18
  /** @license React v16.13.1
19
19
  * react-is.development.js
@@ -13,7 +13,7 @@ var _typeof = require("@babel/runtime/helpers/typeof");
13
13
  Object.defineProperty(exports, '__esModule', {
14
14
  value: true
15
15
  });
16
- var reactIs_production_min = require('../../../../../_virtual/react-is.production.min.js');
16
+ var reactIs_production_min = require('../../../_virtual/react-is.production.min.js');
17
17
 
18
18
  /** @license React v16.13.1
19
19
  * react-is.production.min.js
@@ -9,11 +9,11 @@
9
9
  */
10
10
  'use strict';
11
11
 
12
- var index = require('../../../../_virtual/index3.js');
12
+ var index = require('../../_virtual/index3.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
  if (process.env.NODE_ENV === 'production') {
18
18
  index.reactIs.exports = reactIs_production_min.__exports;
19
19
  } else {
@@ -11,8 +11,9 @@ import { __rest } from 'tslib';
11
11
  import React, { forwardRef, useCallback } from 'react';
12
12
  import { getPrefixCls, cx } from '@hi-ui/classname';
13
13
  import { __DEV__ } from '@hi-ui/env';
14
+ import { useGlobalContext } from '@hi-ui/core';
14
15
  import Popover from '@hi-ui/popover';
15
- import { CheckOutlined, RightOutlined } from '@hi-ui/icons';
16
+ import { CheckOutlined, LeftOutlined, RightOutlined } from '@hi-ui/icons';
16
17
  import { useUncontrolledToggle } from '@hi-ui/use-toggle';
17
18
  import { useUncontrolledState } from '@hi-ui/use-uncontrolled-state';
18
19
  var PROFILE_PREFIX = getPrefixCls('profile');
@@ -28,6 +29,8 @@ var Profile = /*#__PURE__*/forwardRef(function (_a, ref) {
28
29
  settings = _a.settings,
29
30
  rest = __rest(_a, ["prefixCls", "role", "className", "children", "header", "footer", "settings"]);
30
31
  var cls = cx(prefixCls, className);
32
+ var _useGlobalContext = useGlobalContext(),
33
+ direction = _useGlobalContext.direction;
31
34
  var _useUncontrolledState = useUncontrolledState((_b = settings === null || settings === void 0 ? void 0 : settings.value) !== null && _b !== void 0 ? _b : {}, settings === null || settings === void 0 ? void 0 : settings.value),
32
35
  value = _useUncontrolledState[0],
33
36
  setValue = _useUncontrolledState[1];
@@ -92,7 +95,7 @@ var Profile = /*#__PURE__*/forwardRef(function (_a, ref) {
92
95
  className: prefixCls + "__settings-item__subtitle"
93
96
  }, item.subtitle)) : null), ((_d = item.children) === null || _d === void 0 ? void 0 : _d.length) ? ( /*#__PURE__*/React.createElement("div", {
94
97
  className: prefixCls + "__settings-item__arrow"
95
- }, /*#__PURE__*/React.createElement(RightOutlined, null))) : null));
98
+ }, direction === 'rtl' ? /*#__PURE__*/React.createElement(LeftOutlined, null) : /*#__PURE__*/React.createElement(RightOutlined, null))) : null));
96
99
  })), /*#__PURE__*/React.createElement("div", {
97
100
  className: prefixCls + "__footer"
98
101
  }, /*#__PURE__*/React.createElement("div", {
@@ -8,7 +8,7 @@ import _typeof from "@babel/runtime/helpers/esm/typeof";
8
8
  * This source code is licensed under the MIT license found in the
9
9
  * LICENSE file in the root directory of this source tree.
10
10
  */
11
- import './node_modules/react-is/index.js';
11
+ import '../react-is/index.js';
12
12
  import objectAssign from '../object-assign/index.js';
13
13
  import ReactPropTypesSecret_1 from './lib/ReactPropTypesSecret.js';
14
14
  import checkPropTypes_1 from './checkPropTypes.js';
@@ -8,7 +8,7 @@
8
8
  * LICENSE file in the root directory of this source tree.
9
9
  */
10
10
  import { p as propTypes } from '../../_virtual/index2.js';
11
- import './node_modules/react-is/index.js';
11
+ import '../react-is/index.js';
12
12
  import factoryWithTypeCheckers from './factoryWithTypeCheckers.js';
13
13
  import factoryWithThrowingShims from './factoryWithThrowingShims.js';
14
14
  import { r as reactIs } from '../../_virtual/index3.js';
@@ -8,7 +8,7 @@ import _typeof from "@babel/runtime/helpers/esm/typeof";
8
8
  * This source code is licensed under the MIT license found in the
9
9
  * LICENSE file in the root directory of this source tree.
10
10
  */
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 @@ import _typeof from "@babel/runtime/helpers/esm/typeof";
8
8
  * This source code is licensed under the MIT license found in the
9
9
  * LICENSE file in the root directory of this source tree.
10
10
  */
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/index3.js';
10
+ import { r as reactIs } from '../../_virtual/index3.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
  if (process.env.NODE_ENV === 'production') {
16
16
  reactIs.exports = reactIs_production_min;
17
17
  } else {
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import './styles/index.scss';
2
3
  declare const Layout: import("react").ForwardRefExoticComponent<import("./Layout").LayoutProps & import("react").RefAttributes<HTMLDivElement | null>> & {
3
4
  Header: import("react").ForwardRefExoticComponent<import("./Header").HeaderProps & import("react").RefAttributes<HTMLDivElement | null>>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hi-ui/layout",
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,25 +44,24 @@
44
44
  "url": "https://github.com/XiaoMi/hiui/issues"
45
45
  },
46
46
  "dependencies": {
47
- "@hi-ui/classname": "^5.0.0-experimental.0",
48
- "@hi-ui/env": "^5.0.0-experimental.0",
49
- "@hi-ui/icons": "^5.0.0-experimental.1",
50
- "@hi-ui/menu": "^5.0.0-experimental.3",
51
- "@hi-ui/popper": "^5.0.0-experimental.1",
52
- "@hi-ui/popover": "^5.0.0-experimental.1",
53
- "@hi-ui/react-utils": "^5.0.0-experimental.0",
54
- "@hi-ui/use-toggle": "^5.0.0-experimental.0",
55
- "@hi-ui/use-uncontrolled-state": "^5.0.0-experimental.0",
56
- "@hi-ui/use-merge-semantic": "^5.0.0-experimental.1"
47
+ "@hi-ui/classname": "^5.0.0",
48
+ "@hi-ui/env": "^5.0.0",
49
+ "@hi-ui/icons": "^5.0.0",
50
+ "@hi-ui/menu": "^5.0.0",
51
+ "@hi-ui/popper": "^5.0.0",
52
+ "@hi-ui/popover": "^5.0.0",
53
+ "@hi-ui/react-utils": "^5.0.0",
54
+ "@hi-ui/use-toggle": "^5.0.0",
55
+ "@hi-ui/use-uncontrolled-state": "^5.0.0"
57
56
  },
58
57
  "peerDependencies": {
59
- "@hi-ui/core": ">=5.0.0-experimental.1",
58
+ "@hi-ui/core": ">=5.0.0",
60
59
  "react": ">=16.8.6",
61
60
  "react-dom": ">=16.8.6"
62
61
  },
63
62
  "devDependencies": {
64
- "@hi-ui/core": "^5.0.0-experimental.1",
65
- "@hi-ui/core-css": "^5.0.0-experimental.2",
63
+ "@hi-ui/core": "^5.0.0",
64
+ "@hi-ui/core-css": "^5.0.0",
66
65
  "react": "^17.0.1",
67
66
  "react-dom": "^17.0.1"
68
67
  }