@hi-ui/layout 4.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 (105) hide show
  1. package/README.md +11 -0
  2. package/lib/cjs/Content.js +48 -0
  3. package/lib/cjs/Layout.js +48 -0
  4. package/lib/cjs/SearchTrigger.js +55 -0
  5. package/lib/cjs/Sider.js +100 -0
  6. package/lib/cjs/_virtual/Draggable.js +16 -0
  7. package/lib/cjs/_virtual/DraggableCore.js +16 -0
  8. package/lib/cjs/_virtual/Resizable.js +16 -0
  9. package/lib/cjs/_virtual/ResizableBox.js +16 -0
  10. package/lib/cjs/_virtual/cjs.js +18 -0
  11. package/lib/cjs/_virtual/domFns.js +16 -0
  12. package/lib/cjs/_virtual/getPrefix.js +16 -0
  13. package/lib/cjs/_virtual/index.js +18 -0
  14. package/lib/cjs/_virtual/index2.js +18 -0
  15. package/lib/cjs/_virtual/index3.js +18 -0
  16. package/lib/cjs/_virtual/index4.js +18 -0
  17. package/lib/cjs/_virtual/log.js +16 -0
  18. package/lib/cjs/_virtual/positionFns.js +16 -0
  19. package/lib/cjs/_virtual/propTypes.js +16 -0
  20. package/lib/cjs/_virtual/react-is.development.js +16 -0
  21. package/lib/cjs/_virtual/react-is.production.min.js +16 -0
  22. package/lib/cjs/_virtual/shims.js +16 -0
  23. package/lib/cjs/_virtual/utils.js +16 -0
  24. package/lib/cjs/index.js +24 -0
  25. package/lib/cjs/node_modules/classnames/index.js +62 -0
  26. package/lib/cjs/node_modules/object-assign/index.js +94 -0
  27. package/lib/cjs/node_modules/prop-types/checkPropTypes.js +101 -0
  28. package/lib/cjs/node_modules/prop-types/factoryWithThrowingShims.js +68 -0
  29. package/lib/cjs/node_modules/prop-types/factoryWithTypeCheckers.js +553 -0
  30. package/lib/cjs/node_modules/prop-types/index.js +36 -0
  31. package/lib/cjs/node_modules/prop-types/lib/ReactPropTypesSecret.js +25 -0
  32. package/lib/cjs/node_modules/react-draggable/build/cjs/Draggable.js +655 -0
  33. package/lib/cjs/node_modules/react-draggable/build/cjs/DraggableCore.js +670 -0
  34. package/lib/cjs/node_modules/react-draggable/build/cjs/cjs.js +23 -0
  35. package/lib/cjs/node_modules/react-draggable/build/cjs/utils/domFns.js +366 -0
  36. package/lib/cjs/node_modules/react-draggable/build/cjs/utils/getPrefix.js +69 -0
  37. package/lib/cjs/node_modules/react-draggable/build/cjs/utils/log.js +19 -0
  38. package/lib/cjs/node_modules/react-draggable/build/cjs/utils/positionFns.js +176 -0
  39. package/lib/cjs/node_modules/react-draggable/build/cjs/utils/shims.js +57 -0
  40. package/lib/cjs/node_modules/react-is/cjs/react-is.development.js +182 -0
  41. package/lib/cjs/node_modules/react-is/cjs/react-is.production.min.js +132 -0
  42. package/lib/cjs/node_modules/react-is/index.js +21 -0
  43. package/lib/cjs/node_modules/react-resizable/build/Resizable.js +366 -0
  44. package/lib/cjs/node_modules/react-resizable/build/ResizableBox.js +244 -0
  45. package/lib/cjs/node_modules/react-resizable/build/propTypes.js +115 -0
  46. package/lib/cjs/node_modules/react-resizable/build/utils.js +86 -0
  47. package/lib/cjs/node_modules/react-resizable/index.js +25 -0
  48. package/lib/cjs/packages/icons/lib/esm/components/common/search-outlined.js +65 -0
  49. package/lib/cjs/packages/icons/lib/esm/styles/index.scss.js +35 -0
  50. package/lib/cjs/styles/index.scss.js +18 -0
  51. package/lib/esm/Content.js +36 -0
  52. package/lib/esm/Layout.js +36 -0
  53. package/lib/esm/SearchTrigger.js +43 -0
  54. package/lib/esm/Sider.js +88 -0
  55. package/lib/esm/_virtual/Draggable.js +11 -0
  56. package/lib/esm/_virtual/DraggableCore.js +11 -0
  57. package/lib/esm/_virtual/Resizable.js +11 -0
  58. package/lib/esm/_virtual/ResizableBox.js +11 -0
  59. package/lib/esm/_virtual/cjs.js +13 -0
  60. package/lib/esm/_virtual/domFns.js +11 -0
  61. package/lib/esm/_virtual/getPrefix.js +11 -0
  62. package/lib/esm/_virtual/index.js +13 -0
  63. package/lib/esm/_virtual/index2.js +13 -0
  64. package/lib/esm/_virtual/index3.js +13 -0
  65. package/lib/esm/_virtual/index4.js +13 -0
  66. package/lib/esm/_virtual/log.js +11 -0
  67. package/lib/esm/_virtual/positionFns.js +11 -0
  68. package/lib/esm/_virtual/propTypes.js +11 -0
  69. package/lib/esm/_virtual/react-is.development.js +11 -0
  70. package/lib/esm/_virtual/react-is.production.min.js +11 -0
  71. package/lib/esm/_virtual/shims.js +11 -0
  72. package/lib/esm/_virtual/utils.js +11 -0
  73. package/lib/esm/index.js +14 -0
  74. package/lib/esm/node_modules/classnames/index.js +60 -0
  75. package/lib/esm/node_modules/object-assign/index.js +88 -0
  76. package/lib/esm/node_modules/prop-types/checkPropTypes.js +96 -0
  77. package/lib/esm/node_modules/prop-types/factoryWithThrowingShims.js +63 -0
  78. package/lib/esm/node_modules/prop-types/factoryWithTypeCheckers.js +548 -0
  79. package/lib/esm/node_modules/prop-types/index.js +34 -0
  80. package/lib/esm/node_modules/prop-types/lib/ReactPropTypesSecret.js +19 -0
  81. package/lib/esm/node_modules/react-draggable/build/cjs/Draggable.js +645 -0
  82. package/lib/esm/node_modules/react-draggable/build/cjs/DraggableCore.js +660 -0
  83. package/lib/esm/node_modules/react-draggable/build/cjs/cjs.js +21 -0
  84. package/lib/esm/node_modules/react-draggable/build/cjs/utils/domFns.js +361 -0
  85. package/lib/esm/node_modules/react-draggable/build/cjs/utils/getPrefix.js +67 -0
  86. package/lib/esm/node_modules/react-draggable/build/cjs/utils/log.js +17 -0
  87. package/lib/esm/node_modules/react-draggable/build/cjs/utils/positionFns.js +171 -0
  88. package/lib/esm/node_modules/react-draggable/build/cjs/utils/shims.js +52 -0
  89. package/lib/esm/node_modules/react-is/cjs/react-is.development.js +177 -0
  90. package/lib/esm/node_modules/react-is/cjs/react-is.production.min.js +127 -0
  91. package/lib/esm/node_modules/react-is/index.js +19 -0
  92. package/lib/esm/node_modules/react-resizable/build/Resizable.js +358 -0
  93. package/lib/esm/node_modules/react-resizable/build/ResizableBox.js +236 -0
  94. package/lib/esm/node_modules/react-resizable/build/propTypes.js +110 -0
  95. package/lib/esm/node_modules/react-resizable/build/utils.js +74 -0
  96. package/lib/esm/node_modules/react-resizable/index.js +20 -0
  97. package/lib/esm/packages/icons/lib/esm/components/common/search-outlined.js +53 -0
  98. package/lib/esm/packages/icons/lib/esm/styles/index.scss.js +23 -0
  99. package/lib/esm/styles/index.scss.js +13 -0
  100. package/lib/types/Content.d.ts +8 -0
  101. package/lib/types/Layout.d.ts +8 -0
  102. package/lib/types/SearchTrigger.d.ts +10 -0
  103. package/lib/types/Sider.d.ts +10 -0
  104. package/lib/types/index.d.ts +6 -0
  105. package/package.json +61 -0
package/README.md ADDED
@@ -0,0 +1,11 @@
1
+ # `@hi-ui/layout`
2
+
3
+ > TODO: description
4
+
5
+ ## Usage
6
+
7
+ ```
8
+ const Layout = require('@hi-ui/layout');
9
+
10
+ // TODO: DEMONSTRATE API
11
+ ```
@@ -0,0 +1,48 @@
1
+ /** @LICENSE
2
+ * @hi-ui/layout
3
+ * https://github.com/XiaoMi/hiui/tree/master/packages/ui/layout#readme
4
+ *
5
+ * Copyright (c) HiUI <mi-hiui@xiaomi.com>.
6
+ *
7
+ * This source code is licensed under the MIT license found in the
8
+ * LICENSE file in the root directory of this source tree.
9
+ */
10
+ 'use strict';
11
+
12
+ var _typeof = require("@babel/runtime/helpers/typeof");
13
+ Object.defineProperty(exports, '__esModule', {
14
+ value: true
15
+ });
16
+ var tslib = require('tslib');
17
+ var React = require('react');
18
+ var classname = require('@hi-ui/classname');
19
+ var env = require('@hi-ui/env');
20
+ function _interopDefaultCompat(e) {
21
+ return e && _typeof(e) === 'object' && 'default' in e ? e : {
22
+ 'default': e
23
+ };
24
+ }
25
+ var React__default = /*#__PURE__*/_interopDefaultCompat(React);
26
+ var CONTENT_PREFIX = classname.getPrefixCls('content');
27
+ /**
28
+ * 内容区域组件
29
+ */
30
+ var Content = /*#__PURE__*/React.forwardRef(function (_a, ref) {
31
+ var _a$prefixCls = _a.prefixCls,
32
+ prefixCls = _a$prefixCls === void 0 ? CONTENT_PREFIX : _a$prefixCls,
33
+ _a$role = _a.role,
34
+ role = _a$role === void 0 ? 'content' : _a$role,
35
+ className = _a.className,
36
+ children = _a.children,
37
+ rest = tslib.__rest(_a, ["prefixCls", "role", "className", "children"]);
38
+ var cls = classname.cx(prefixCls, className);
39
+ return /*#__PURE__*/React__default["default"].createElement("div", Object.assign({
40
+ ref: ref,
41
+ role: role,
42
+ className: cls
43
+ }, rest), children);
44
+ });
45
+ if (env.__DEV__) {
46
+ Content.displayName = 'Content';
47
+ }
48
+ exports.Content = Content;
@@ -0,0 +1,48 @@
1
+ /** @LICENSE
2
+ * @hi-ui/layout
3
+ * https://github.com/XiaoMi/hiui/tree/master/packages/ui/layout#readme
4
+ *
5
+ * Copyright (c) HiUI <mi-hiui@xiaomi.com>.
6
+ *
7
+ * This source code is licensed under the MIT license found in the
8
+ * LICENSE file in the root directory of this source tree.
9
+ */
10
+ 'use strict';
11
+
12
+ var _typeof = require("@babel/runtime/helpers/typeof");
13
+ Object.defineProperty(exports, '__esModule', {
14
+ value: true
15
+ });
16
+ var tslib = require('tslib');
17
+ var React = require('react');
18
+ var classname = require('@hi-ui/classname');
19
+ var env = require('@hi-ui/env');
20
+ function _interopDefaultCompat(e) {
21
+ return e && _typeof(e) === 'object' && 'default' in e ? e : {
22
+ 'default': e
23
+ };
24
+ }
25
+ var React__default = /*#__PURE__*/_interopDefaultCompat(React);
26
+ var LAYOUT_PREFIX = classname.getPrefixCls('layout');
27
+ /**
28
+ * 布局组件,用于布局页面结构
29
+ */
30
+ var Layout = /*#__PURE__*/React.forwardRef(function (_a, ref) {
31
+ var _a$prefixCls = _a.prefixCls,
32
+ prefixCls = _a$prefixCls === void 0 ? LAYOUT_PREFIX : _a$prefixCls,
33
+ _a$role = _a.role,
34
+ role = _a$role === void 0 ? 'layout' : _a$role,
35
+ className = _a.className,
36
+ children = _a.children,
37
+ rest = tslib.__rest(_a, ["prefixCls", "role", "className", "children"]);
38
+ var cls = classname.cx(prefixCls, className);
39
+ return /*#__PURE__*/React__default["default"].createElement("div", Object.assign({
40
+ ref: ref,
41
+ role: role,
42
+ className: cls
43
+ }, rest), children);
44
+ });
45
+ if (env.__DEV__) {
46
+ Layout.displayName = 'Layout';
47
+ }
48
+ exports.Layout = Layout;
@@ -0,0 +1,55 @@
1
+ /** @LICENSE
2
+ * @hi-ui/layout
3
+ * https://github.com/XiaoMi/hiui/tree/master/packages/ui/layout#readme
4
+ *
5
+ * Copyright (c) HiUI <mi-hiui@xiaomi.com>.
6
+ *
7
+ * This source code is licensed under the MIT license found in the
8
+ * LICENSE file in the root directory of this source tree.
9
+ */
10
+ 'use strict';
11
+
12
+ var _typeof = require("@babel/runtime/helpers/typeof");
13
+ Object.defineProperty(exports, '__esModule', {
14
+ value: true
15
+ });
16
+ var tslib = require('tslib');
17
+ var React = require('react');
18
+ var classname = require('@hi-ui/classname');
19
+ var env = require('@hi-ui/env');
20
+ require('./packages/icons/lib/esm/styles/index.scss.js');
21
+ var searchOutlined = require('./packages/icons/lib/esm/components/common/search-outlined.js');
22
+ function _interopDefaultCompat(e) {
23
+ return e && _typeof(e) === 'object' && 'default' in e ? e : {
24
+ 'default': e
25
+ };
26
+ }
27
+ var React__default = /*#__PURE__*/_interopDefaultCompat(React);
28
+ var SEARCH_TRIGGER_PREFIX = classname.getPrefixCls('search-trigger');
29
+ /**
30
+ * 搜索触发器组件
31
+ */
32
+ var SearchTrigger = /*#__PURE__*/React.forwardRef(function (_a, ref) {
33
+ var _cx;
34
+ var _a$prefixCls = _a.prefixCls,
35
+ prefixCls = _a$prefixCls === void 0 ? SEARCH_TRIGGER_PREFIX : _a$prefixCls,
36
+ _a$role = _a.role,
37
+ role = _a$role === void 0 ? 'search-trigger' : _a$role,
38
+ className = _a.className,
39
+ mini = _a.mini,
40
+ _a$placeholder = _a.placeholder,
41
+ placeholder = _a$placeholder === void 0 ? '搜索' : _a$placeholder,
42
+ rest = tslib.__rest(_a, ["prefixCls", "role", "className", "mini", "placeholder"]);
43
+ var cls = classname.cx(prefixCls, className, (_cx = {}, _cx[prefixCls + "--mini"] = mini, _cx));
44
+ return /*#__PURE__*/React__default["default"].createElement("div", Object.assign({
45
+ ref: ref,
46
+ role: role,
47
+ className: cls
48
+ }, rest), /*#__PURE__*/React__default["default"].createElement(searchOutlined.SearchOutlined, null), !mini && /*#__PURE__*/React__default["default"].createElement("span", {
49
+ className: prefixCls + "__placeholder"
50
+ }, placeholder));
51
+ });
52
+ if (env.__DEV__) {
53
+ SearchTrigger.displayName = 'SearchTrigger';
54
+ }
55
+ exports.SearchTrigger = SearchTrigger;
@@ -0,0 +1,100 @@
1
+ /** @LICENSE
2
+ * @hi-ui/layout
3
+ * https://github.com/XiaoMi/hiui/tree/master/packages/ui/layout#readme
4
+ *
5
+ * Copyright (c) HiUI <mi-hiui@xiaomi.com>.
6
+ *
7
+ * This source code is licensed under the MIT license found in the
8
+ * LICENSE file in the root directory of this source tree.
9
+ */
10
+ 'use strict';
11
+
12
+ var _typeof = require("@babel/runtime/helpers/typeof");
13
+ Object.defineProperty(exports, '__esModule', {
14
+ value: true
15
+ });
16
+ var tslib = require('tslib');
17
+ var React = require('react');
18
+ var classname = require('@hi-ui/classname');
19
+ var env = require('@hi-ui/env');
20
+ var useUncontrolledState = require('@hi-ui/use-uncontrolled-state');
21
+ var index = require('./node_modules/react-resizable/index.js');
22
+ function _interopDefaultCompat(e) {
23
+ return e && _typeof(e) === 'object' && 'default' in e ? e : {
24
+ 'default': e
25
+ };
26
+ }
27
+ var React__default = /*#__PURE__*/_interopDefaultCompat(React);
28
+ var SIDER_PREFIX = classname.getPrefixCls('sider');
29
+ /**
30
+ * 侧边栏组件
31
+ */
32
+ var Sider = /*#__PURE__*/React.forwardRef(function (_a, ref) {
33
+ var _cx;
34
+ var _a$prefixCls = _a.prefixCls,
35
+ prefixCls = _a$prefixCls === void 0 ? SIDER_PREFIX : _a$prefixCls,
36
+ _a$role = _a.role,
37
+ role = _a$role === void 0 ? 'sider' : _a$role,
38
+ className = _a.className,
39
+ collapsedProp = _a.collapsed,
40
+ onCollapse = _a.onCollapse,
41
+ children = _a.children,
42
+ rest = tslib.__rest(_a, ["prefixCls", "role", "className", "collapsed", "onCollapse", "children"]);
43
+ var _useUncontrolledState = useUncontrolledState.useUncontrolledState(false, collapsedProp, onCollapse),
44
+ collapsed = _useUncontrolledState[0],
45
+ setCollapsed = _useUncontrolledState[1];
46
+ var _useState = React.useState(collapsedProp ? 68 : 200),
47
+ width = _useState[0],
48
+ setWidth = _useState[1];
49
+ var handleResize = function handleResize(evt, options) {
50
+ var _a;
51
+ var width = (_a = options === null || options === void 0 ? void 0 : options.size) === null || _a === void 0 ? void 0 : _a.width;
52
+ if (!collapsed && width < 150) {
53
+ width = 68;
54
+ setCollapsed(true);
55
+ }
56
+ if (collapsed && width > 68) {
57
+ width = 200;
58
+ setTimeout(function () {
59
+ setCollapsed(false);
60
+ }, 300);
61
+ }
62
+ if (width < 68) {
63
+ width = 68;
64
+ }
65
+ setWidth(width);
66
+ };
67
+ var handleResizeStart = React.useCallback(function () {
68
+ document.body.style.userSelect = 'none';
69
+ }, []);
70
+ var handleResizeStop = React.useCallback(function () {
71
+ document.body.style.userSelect = 'auto';
72
+ }, []);
73
+ var cls = classname.cx(prefixCls, className, (_cx = {}, _cx[prefixCls + "--collapsed"] = collapsed, _cx));
74
+ return /*#__PURE__*/React__default["default"].createElement(index.Resizable, {
75
+ className: prefixCls + "__resizable",
76
+ draggableOpts: {
77
+ enableUserSelectHack: false
78
+ },
79
+ handle: /*#__PURE__*/React__default["default"].createElement("span", {
80
+ className: prefixCls + "__resizable-handler"
81
+ }),
82
+ height: 0,
83
+ width: width,
84
+ onResize: handleResize,
85
+ onResizeStart: handleResizeStart,
86
+ onResizeStop: handleResizeStop
87
+ }, /*#__PURE__*/React__default["default"].createElement("div", Object.assign({
88
+ ref: ref,
89
+ role: role,
90
+ className: cls
91
+ }, rest, {
92
+ style: Object.assign({
93
+ width: width
94
+ }, rest.style)
95
+ }), children));
96
+ });
97
+ if (env.__DEV__) {
98
+ Sider.displayName = 'Sider';
99
+ }
100
+ exports.Sider = Sider;
@@ -0,0 +1,16 @@
1
+ /** @LICENSE
2
+ * @hi-ui/layout
3
+ * https://github.com/XiaoMi/hiui/tree/master/packages/ui/layout#readme
4
+ *
5
+ * Copyright (c) HiUI <mi-hiui@xiaomi.com>.
6
+ *
7
+ * This source code is licensed under the MIT license found in the
8
+ * LICENSE file in the root directory of this source tree.
9
+ */
10
+ 'use strict';
11
+
12
+ Object.defineProperty(exports, '__esModule', {
13
+ value: true
14
+ });
15
+ var Draggable = {};
16
+ exports.__exports = Draggable;
@@ -0,0 +1,16 @@
1
+ /** @LICENSE
2
+ * @hi-ui/layout
3
+ * https://github.com/XiaoMi/hiui/tree/master/packages/ui/layout#readme
4
+ *
5
+ * Copyright (c) HiUI <mi-hiui@xiaomi.com>.
6
+ *
7
+ * This source code is licensed under the MIT license found in the
8
+ * LICENSE file in the root directory of this source tree.
9
+ */
10
+ 'use strict';
11
+
12
+ Object.defineProperty(exports, '__esModule', {
13
+ value: true
14
+ });
15
+ var DraggableCore = {};
16
+ exports.__exports = DraggableCore;
@@ -0,0 +1,16 @@
1
+ /** @LICENSE
2
+ * @hi-ui/layout
3
+ * https://github.com/XiaoMi/hiui/tree/master/packages/ui/layout#readme
4
+ *
5
+ * Copyright (c) HiUI <mi-hiui@xiaomi.com>.
6
+ *
7
+ * This source code is licensed under the MIT license found in the
8
+ * LICENSE file in the root directory of this source tree.
9
+ */
10
+ 'use strict';
11
+
12
+ Object.defineProperty(exports, '__esModule', {
13
+ value: true
14
+ });
15
+ var Resizable = {};
16
+ exports.__exports = Resizable;
@@ -0,0 +1,16 @@
1
+ /** @LICENSE
2
+ * @hi-ui/layout
3
+ * https://github.com/XiaoMi/hiui/tree/master/packages/ui/layout#readme
4
+ *
5
+ * Copyright (c) HiUI <mi-hiui@xiaomi.com>.
6
+ *
7
+ * This source code is licensed under the MIT license found in the
8
+ * LICENSE file in the root directory of this source tree.
9
+ */
10
+ 'use strict';
11
+
12
+ Object.defineProperty(exports, '__esModule', {
13
+ value: true
14
+ });
15
+ var ResizableBox = {};
16
+ exports.__exports = ResizableBox;
@@ -0,0 +1,18 @@
1
+ /** @LICENSE
2
+ * @hi-ui/layout
3
+ * https://github.com/XiaoMi/hiui/tree/master/packages/ui/layout#readme
4
+ *
5
+ * Copyright (c) HiUI <mi-hiui@xiaomi.com>.
6
+ *
7
+ * This source code is licensed under the MIT license found in the
8
+ * LICENSE file in the root directory of this source tree.
9
+ */
10
+ 'use strict';
11
+
12
+ Object.defineProperty(exports, '__esModule', {
13
+ value: true
14
+ });
15
+ var cjs = {
16
+ exports: {}
17
+ };
18
+ exports.cjs = cjs;
@@ -0,0 +1,16 @@
1
+ /** @LICENSE
2
+ * @hi-ui/layout
3
+ * https://github.com/XiaoMi/hiui/tree/master/packages/ui/layout#readme
4
+ *
5
+ * Copyright (c) HiUI <mi-hiui@xiaomi.com>.
6
+ *
7
+ * This source code is licensed under the MIT license found in the
8
+ * LICENSE file in the root directory of this source tree.
9
+ */
10
+ 'use strict';
11
+
12
+ Object.defineProperty(exports, '__esModule', {
13
+ value: true
14
+ });
15
+ var domFns = {};
16
+ exports.__exports = domFns;
@@ -0,0 +1,16 @@
1
+ /** @LICENSE
2
+ * @hi-ui/layout
3
+ * https://github.com/XiaoMi/hiui/tree/master/packages/ui/layout#readme
4
+ *
5
+ * Copyright (c) HiUI <mi-hiui@xiaomi.com>.
6
+ *
7
+ * This source code is licensed under the MIT license found in the
8
+ * LICENSE file in the root directory of this source tree.
9
+ */
10
+ 'use strict';
11
+
12
+ Object.defineProperty(exports, '__esModule', {
13
+ value: true
14
+ });
15
+ var getPrefix = {};
16
+ exports.__exports = getPrefix;
@@ -0,0 +1,18 @@
1
+ /** @LICENSE
2
+ * @hi-ui/layout
3
+ * https://github.com/XiaoMi/hiui/tree/master/packages/ui/layout#readme
4
+ *
5
+ * Copyright (c) HiUI <mi-hiui@xiaomi.com>.
6
+ *
7
+ * This source code is licensed under the MIT license found in the
8
+ * LICENSE file in the root directory of this source tree.
9
+ */
10
+ 'use strict';
11
+
12
+ Object.defineProperty(exports, '__esModule', {
13
+ value: true
14
+ });
15
+ var reactResizable = {
16
+ exports: {}
17
+ };
18
+ exports.reactResizable = reactResizable;
@@ -0,0 +1,18 @@
1
+ /** @LICENSE
2
+ * @hi-ui/layout
3
+ * https://github.com/XiaoMi/hiui/tree/master/packages/ui/layout#readme
4
+ *
5
+ * Copyright (c) HiUI <mi-hiui@xiaomi.com>.
6
+ *
7
+ * This source code is licensed under the MIT license found in the
8
+ * LICENSE file in the root directory of this source tree.
9
+ */
10
+ 'use strict';
11
+
12
+ Object.defineProperty(exports, '__esModule', {
13
+ value: true
14
+ });
15
+ var propTypes = {
16
+ exports: {}
17
+ };
18
+ exports.propTypes = propTypes;
@@ -0,0 +1,18 @@
1
+ /** @LICENSE
2
+ * @hi-ui/layout
3
+ * https://github.com/XiaoMi/hiui/tree/master/packages/ui/layout#readme
4
+ *
5
+ * Copyright (c) HiUI <mi-hiui@xiaomi.com>.
6
+ *
7
+ * This source code is licensed under the MIT license found in the
8
+ * LICENSE file in the root directory of this source tree.
9
+ */
10
+ 'use strict';
11
+
12
+ Object.defineProperty(exports, '__esModule', {
13
+ value: true
14
+ });
15
+ var reactIs = {
16
+ exports: {}
17
+ };
18
+ exports.reactIs = reactIs;
@@ -0,0 +1,18 @@
1
+ /** @LICENSE
2
+ * @hi-ui/layout
3
+ * https://github.com/XiaoMi/hiui/tree/master/packages/ui/layout#readme
4
+ *
5
+ * Copyright (c) HiUI <mi-hiui@xiaomi.com>.
6
+ *
7
+ * This source code is licensed under the MIT license found in the
8
+ * LICENSE file in the root directory of this source tree.
9
+ */
10
+ 'use strict';
11
+
12
+ Object.defineProperty(exports, '__esModule', {
13
+ value: true
14
+ });
15
+ var classnames = {
16
+ exports: {}
17
+ };
18
+ exports.classnames = classnames;
@@ -0,0 +1,16 @@
1
+ /** @LICENSE
2
+ * @hi-ui/layout
3
+ * https://github.com/XiaoMi/hiui/tree/master/packages/ui/layout#readme
4
+ *
5
+ * Copyright (c) HiUI <mi-hiui@xiaomi.com>.
6
+ *
7
+ * This source code is licensed under the MIT license found in the
8
+ * LICENSE file in the root directory of this source tree.
9
+ */
10
+ 'use strict';
11
+
12
+ Object.defineProperty(exports, '__esModule', {
13
+ value: true
14
+ });
15
+ var log = {};
16
+ exports.__exports = log;
@@ -0,0 +1,16 @@
1
+ /** @LICENSE
2
+ * @hi-ui/layout
3
+ * https://github.com/XiaoMi/hiui/tree/master/packages/ui/layout#readme
4
+ *
5
+ * Copyright (c) HiUI <mi-hiui@xiaomi.com>.
6
+ *
7
+ * This source code is licensed under the MIT license found in the
8
+ * LICENSE file in the root directory of this source tree.
9
+ */
10
+ 'use strict';
11
+
12
+ Object.defineProperty(exports, '__esModule', {
13
+ value: true
14
+ });
15
+ var positionFns = {};
16
+ exports.__exports = positionFns;
@@ -0,0 +1,16 @@
1
+ /** @LICENSE
2
+ * @hi-ui/layout
3
+ * https://github.com/XiaoMi/hiui/tree/master/packages/ui/layout#readme
4
+ *
5
+ * Copyright (c) HiUI <mi-hiui@xiaomi.com>.
6
+ *
7
+ * This source code is licensed under the MIT license found in the
8
+ * LICENSE file in the root directory of this source tree.
9
+ */
10
+ 'use strict';
11
+
12
+ Object.defineProperty(exports, '__esModule', {
13
+ value: true
14
+ });
15
+ var propTypes = {};
16
+ exports.__exports = propTypes;
@@ -0,0 +1,16 @@
1
+ /** @LICENSE
2
+ * @hi-ui/layout
3
+ * https://github.com/XiaoMi/hiui/tree/master/packages/ui/layout#readme
4
+ *
5
+ * Copyright (c) HiUI <mi-hiui@xiaomi.com>.
6
+ *
7
+ * This source code is licensed under the MIT license found in the
8
+ * LICENSE file in the root directory of this source tree.
9
+ */
10
+ 'use strict';
11
+
12
+ Object.defineProperty(exports, '__esModule', {
13
+ value: true
14
+ });
15
+ var reactIs_development = {};
16
+ exports.__exports = reactIs_development;
@@ -0,0 +1,16 @@
1
+ /** @LICENSE
2
+ * @hi-ui/layout
3
+ * https://github.com/XiaoMi/hiui/tree/master/packages/ui/layout#readme
4
+ *
5
+ * Copyright (c) HiUI <mi-hiui@xiaomi.com>.
6
+ *
7
+ * This source code is licensed under the MIT license found in the
8
+ * LICENSE file in the root directory of this source tree.
9
+ */
10
+ 'use strict';
11
+
12
+ Object.defineProperty(exports, '__esModule', {
13
+ value: true
14
+ });
15
+ var reactIs_production_min = {};
16
+ exports.__exports = reactIs_production_min;
@@ -0,0 +1,16 @@
1
+ /** @LICENSE
2
+ * @hi-ui/layout
3
+ * https://github.com/XiaoMi/hiui/tree/master/packages/ui/layout#readme
4
+ *
5
+ * Copyright (c) HiUI <mi-hiui@xiaomi.com>.
6
+ *
7
+ * This source code is licensed under the MIT license found in the
8
+ * LICENSE file in the root directory of this source tree.
9
+ */
10
+ 'use strict';
11
+
12
+ Object.defineProperty(exports, '__esModule', {
13
+ value: true
14
+ });
15
+ var shims = {};
16
+ exports.__exports = shims;
@@ -0,0 +1,16 @@
1
+ /** @LICENSE
2
+ * @hi-ui/layout
3
+ * https://github.com/XiaoMi/hiui/tree/master/packages/ui/layout#readme
4
+ *
5
+ * Copyright (c) HiUI <mi-hiui@xiaomi.com>.
6
+ *
7
+ * This source code is licensed under the MIT license found in the
8
+ * LICENSE file in the root directory of this source tree.
9
+ */
10
+ 'use strict';
11
+
12
+ Object.defineProperty(exports, '__esModule', {
13
+ value: true
14
+ });
15
+ var utils = {};
16
+ exports.__exports = utils;
@@ -0,0 +1,24 @@
1
+ /** @LICENSE
2
+ * @hi-ui/layout
3
+ * https://github.com/XiaoMi/hiui/tree/master/packages/ui/layout#readme
4
+ *
5
+ * Copyright (c) HiUI <mi-hiui@xiaomi.com>.
6
+ *
7
+ * This source code is licensed under the MIT license found in the
8
+ * LICENSE file in the root directory of this source tree.
9
+ */
10
+ 'use strict';
11
+
12
+ Object.defineProperty(exports, '__esModule', {
13
+ value: true
14
+ });
15
+ require('./styles/index.scss.js');
16
+ var Layout = require('./Layout.js');
17
+ var Sider = require('./Sider.js');
18
+ var Content = require('./Content.js');
19
+ var SearchTrigger = require('./SearchTrigger.js');
20
+ exports.Layout = Layout.Layout;
21
+ exports["default"] = Layout.Layout;
22
+ exports.Sider = Sider.Sider;
23
+ exports.Content = Content.Content;
24
+ exports.SearchTrigger = SearchTrigger.SearchTrigger;
@@ -0,0 +1,62 @@
1
+ /** @LICENSE
2
+ * @hi-ui/layout
3
+ * https://github.com/XiaoMi/hiui/tree/master/packages/ui/layout#readme
4
+ *
5
+ * Copyright (c) HiUI <mi-hiui@xiaomi.com>.
6
+ *
7
+ * This source code is licensed under the MIT license found in the
8
+ * LICENSE file in the root directory of this source tree.
9
+ */
10
+ 'use strict';
11
+
12
+ var _typeof = require("@babel/runtime/helpers/typeof");
13
+ var index = require('../../_virtual/index4.js');
14
+
15
+ /*!
16
+ Copyright (c) 2018 Jed Watson.
17
+ Licensed under the MIT License (MIT), see
18
+ http://jedwatson.github.io/classnames
19
+ */
20
+
21
+ (function (module) {
22
+ /* global define */
23
+
24
+ (function () {
25
+ var hasOwn = {}.hasOwnProperty;
26
+ function classNames() {
27
+ var classes = [];
28
+ for (var i = 0; i < arguments.length; i++) {
29
+ var arg = arguments[i];
30
+ if (!arg) continue;
31
+ var argType = _typeof(arg);
32
+ if (argType === 'string' || argType === 'number') {
33
+ classes.push(arg);
34
+ } else if (Array.isArray(arg)) {
35
+ if (arg.length) {
36
+ var inner = classNames.apply(null, arg);
37
+ if (inner) {
38
+ classes.push(inner);
39
+ }
40
+ }
41
+ } else if (argType === 'object') {
42
+ if (arg.toString === Object.prototype.toString) {
43
+ for (var key in arg) {
44
+ if (hasOwn.call(arg, key) && arg[key]) {
45
+ classes.push(key);
46
+ }
47
+ }
48
+ } else {
49
+ classes.push(arg.toString());
50
+ }
51
+ }
52
+ }
53
+ return classes.join(' ');
54
+ }
55
+ if (module.exports) {
56
+ classNames["default"] = classNames;
57
+ module.exports = classNames;
58
+ } else {
59
+ window.classNames = classNames;
60
+ }
61
+ })();
62
+ })(index.classnames);