uiw 4.12.1 → 4.12.2

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/README.md CHANGED
@@ -7,27 +7,24 @@
7
7
  <a href="https://github.com/uiwjs/uiw/actions">
8
8
  <img alt="Github Actions" src="https://github.com/uiwjs/uiw/workflows/Build%20uiw/badge.svg">
9
9
  </a>
10
- <a href="https://github.com/uiwjs/uiw/issues">
11
- <img alt="Github Issues" src="https://img.shields.io/github/issues/uiwjs/uiw.svg">
10
+ <a href="https://github.com/uiwjs/uiw">
11
+ <img alt="License MIT" src="https://img.shields.io/dub/l/vibe-d.svg">
12
12
  </a>
13
- <a href="https://github.com/uiwjs/uiw/network">
14
- <img alt="Github Forks" src="https://img.shields.io/github/forks/uiwjs/uiw.svg">
13
+ <a href="https://github.com/facebook/jest">
14
+ <img alt="jest" src="https://facebook.github.io/jest/img/jest-badge.svg">
15
15
  </a>
16
- <a href="https://github.com/uiwjs/uiw/stargazers">
17
- <img alt="Github Stars" src="https://img.shields.io/github/stars/uiwjs/uiw.svg">
16
+ <a href="https://gitpod.io/#https://github.com/uiwjs/uiw">
17
+ <img alt="Open in Gitpod" src="https://shields.io/badge/Open%20in-Gitpod-green?logo=Gitpod">
18
18
  </a>
19
19
  <br>
20
20
  <a href="https://github.com/uiwjs/uiw/releases">
21
21
  <img alt="Github Releases" src="https://img.shields.io/github/release/uiwjs/uiw.svg">
22
22
  </a>
23
- <a href="https://github.com/uiwjs/uiw">
24
- <img alt="License MIT" src="https://img.shields.io/dub/l/vibe-d.svg">
25
- </a>
26
23
  <a href="https://www.npmjs.com/package/uiw">
27
24
  <img alt="npm version" src="https://img.shields.io/npm/v/uiw.svg">
28
25
  </a>
29
- <a href="https://github.com/facebook/jest">
30
- <img alt="jest" src="https://facebook.github.io/jest/img/jest-badge.svg">
26
+ <a href="https://github.com/uiwjs/uiw/stargazers">
27
+ <img alt="Github Stars" src="https://img.shields.io/github/stars/uiwjs/uiw.svg">
31
28
  </a>
32
29
  </p>
33
30
 
@@ -107,7 +104,7 @@ Package | Version | Description
107
104
  [`@uiw/react-grid`](/packages/react-grid)| [![npm version](https://img.shields.io/npm/v/@uiw/react-grid.svg?maxAge=3600)](https://www.npmjs.com/package/@uiw/react-grid) | -
108
105
  [`@uiw/react-icon`](/packages/react-icon)| [![npm version](https://img.shields.io/npm/v/@uiw/react-icon.svg?maxAge=3600)](https://www.npmjs.com/package/@uiw/react-icon) | -
109
106
  [`@uiw/react-input`](/packages/react-input)| [![npm version](https://img.shields.io/npm/v/@uiw/react-input.svg?maxAge=3600)](https://www.npmjs.com/package/@uiw/react-input) | -
110
- [`@uiw/react-layout`](/packages/react-layout)| [![npm version](https://img.shields.io/npm/v/@uiw/react-layout.svg?maxAge=3600)](https://www.npmjs.com/package/@uiw/react-layout) | -
107
+ [`@uiw/react-layout`](https://github.com/uiwjs/react-layout)| [![npm version](https://img.shields.io/npm/v/@uiw/react-layout.svg?maxAge=3600)](https://www.npmjs.com/package/@uiw/react-layout) | -
111
108
  [`@uiw/react-list`](/packages/react-list)| [![npm version](https://img.shields.io/npm/v/@uiw/react-list.svg?maxAge=3600)](https://www.npmjs.com/package/@uiw/react-list) | -
112
109
  [`@uiw/react-loader`](/packages/react-loader)| [![npm version](https://img.shields.io/npm/v/@uiw/react-loader.svg?maxAge=3600)](https://www.npmjs.com/package/@uiw/react-loader) | -
113
110
  [`@uiw/react-menu`](/packages/react-menu)| [![npm version](https://img.shields.io/npm/v/@uiw/react-menu.svg?maxAge=3600)](https://www.npmjs.com/package/@uiw/react-menu) | -
@@ -124,7 +121,8 @@ Package | Version | Description
124
121
  [`@uiw/react-progress`](/packages/react-progress)| [![npm version](https://img.shields.io/npm/v/@uiw/react-progress.svg?maxAge=3600)](https://www.npmjs.com/package/@uiw/react-progress) | -
125
122
  [`@uiw/react-radio`](/packages/react-radio)| [![npm version](https://img.shields.io/npm/v/@uiw/react-radio.svg?maxAge=3600)](https://www.npmjs.com/package/@uiw/react-radio) | -
126
123
  [`@uiw/react-rate`](/packages/react-rate)| [![npm version](https://img.shields.io/npm/v/@uiw/react-rate.svg?maxAge=3600)](https://www.npmjs.com/package/@uiw/react-rate) | -
127
- [`@uiw/react-search-select`](/packages/react-search-select)| [![npm version](https://img.shields.io/npm/v/@uiw/react-search-select.svg?maxAge=3600)](https://www.npmjs.com/package/@uiw/react-search-select) | -
124
+ [`@uiw/react-search-select`](/packages/react-search-select)| [![npm version](https://img.shields.io/npm/v/@uiw/react-search-select.svg?maxAge=3600)](https://www.npmjs.com/package/@uiw/react-search-select) | -
125
+ [`@uiw/react-search-tree`](/packages/react-search-tree)| [![npm version](https://img.shields.io/npm/v/@uiw/react-search-tree.svg?maxAge=3600)](https://www.npmjs.com/package/@uiw/react-search-tree) | -
128
126
  [`@uiw/react-select`](/packages/react-select)| [![npm version](https://img.shields.io/npm/v/@uiw/react-select.svg?maxAge=3600)](https://www.npmjs.com/package/@uiw/react-select) | -
129
127
  [`@uiw/react-split`](https://github.com/uiwjs/react-split)| [![npm version](https://img.shields.io/npm/v/@uiw/react-split.svg?maxAge=3600)](https://www.npmjs.com/package/@uiw/react-split) | -
130
128
  [`@uiw/react-slider`](/packages/react-slider)| [![npm version](https://img.shields.io/npm/v/@uiw/react-slider.svg?maxAge=3600)](https://www.npmjs.com/package/@uiw/react-slider) | -
@@ -149,7 +147,7 @@ Use Gitpod, a free online dev environment for GitHub.
149
147
  Or clone locally:
150
148
 
151
149
  ```bash
152
- $ git clone https://github.com/uiwjs/uiwjs.github.io.git --recurse-submodules
150
+ $ git clone git@github.com:uiwjs/uiw.git
153
151
  ```
154
152
 
155
153
  Install dependencies & compile component code.
package/dist/uiw.js CHANGED
@@ -345,7 +345,11 @@ __webpack_require__.d(__webpack_exports__, {
345
345
  "Icon": () => (/* reexport */ Icon),
346
346
  "Input": () => (/* reexport */ react_input_esm),
347
347
  "Layout": () => (/* reexport */ react_layout_esm),
348
+ "LayoutContent": () => (/* reexport */ LayoutContent),
348
349
  "LayoutContext": () => (/* reexport */ LayoutContext),
350
+ "LayoutFooter": () => (/* reexport */ LayoutFooter),
351
+ "LayoutHeader": () => (/* reexport */ LayoutHeader),
352
+ "LayoutSider": () => (/* reexport */ LayoutSider),
349
353
  "List": () => (/* reexport */ react_list_esm),
350
354
  "ListItem": () => (/* reexport */ ListItem),
351
355
  "Loader": () => (/* reexport */ react_loader_esm),
@@ -5907,7 +5911,7 @@ class Layout extends (external_root_React_commonjs2_react_commonjs_react_amd_rea
5907
5911
  siderHook: this.getSiderHook()
5908
5912
  },
5909
5913
  children: /*#__PURE__*/(0,jsx_runtime.jsx)("section", _extends({
5910
- className: [prefixCls, className, (typeof hasSider === 'boolean' ? hasSider : this.state.siders.length > 0) ? prefixCls + "-has-sider" : null].filter(Boolean).join(' ').trim()
5914
+ className: [prefixCls, className, typeof hasSider === 'boolean' && hasSider || this.state.siders.length > 0 ? prefixCls + "-has-sider" : null].filter(Boolean).join(' ').trim()
5911
5915
  }, other, {
5912
5916
  children: children
5913
5917
  }))
@@ -5929,24 +5933,21 @@ Layout.defaultProps = {
5929
5933
  var Header_excluded = ["prefixCls", "className", "children"];
5930
5934
 
5931
5935
 
5932
- /* harmony default export */ const Header = (function (props) {
5933
- if (props === void 0) {
5934
- props = {};
5935
- }
5936
-
5937
- var {
5936
+ function LayoutHeader(props) {
5937
+ var _ref = props || {},
5938
+ {
5938
5939
  prefixCls = 'w-layout-header',
5939
5940
  className,
5940
5941
  children
5941
- } = props,
5942
- other = _objectWithoutPropertiesLoose(props, Header_excluded);
5942
+ } = _ref,
5943
+ other = _objectWithoutPropertiesLoose(_ref, Header_excluded);
5943
5944
 
5944
5945
  return /*#__PURE__*/(0,jsx_runtime.jsx)("header", _extends({
5945
5946
  className: [prefixCls, className].filter(Boolean).join(' ').trim()
5946
5947
  }, other, {
5947
5948
  children: children
5948
5949
  }));
5949
- });
5950
+ }
5950
5951
 
5951
5952
  ;// CONCATENATED MODULE: ../../node_modules/@uiw/react-layout/esm/Footer.js
5952
5953
 
@@ -5954,11 +5955,7 @@ var Header_excluded = ["prefixCls", "className", "children"];
5954
5955
  var Footer_excluded = ["prefixCls", "className", "children"];
5955
5956
 
5956
5957
 
5957
- /* harmony default export */ const Footer = (function (props) {
5958
- if (props === void 0) {
5959
- props = {};
5960
- }
5961
-
5958
+ function LayoutFooter(props) {
5962
5959
  var {
5963
5960
  prefixCls = 'w-layout-footer',
5964
5961
  className,
@@ -5971,7 +5968,7 @@ var Footer_excluded = ["prefixCls", "className", "children"];
5971
5968
  }, other, {
5972
5969
  children: children
5973
5970
  }));
5974
- });
5971
+ }
5975
5972
 
5976
5973
  ;// CONCATENATED MODULE: ../../node_modules/@uiw/react-layout/esm/Sider.js
5977
5974
 
@@ -6031,15 +6028,11 @@ function Sider(props) {
6031
6028
  }));
6032
6029
  }
6033
6030
 
6034
- /* harmony default export */ const esm_Sider = (function (props) {
6035
- if (props === void 0) {
6036
- props = {};
6037
- }
6038
-
6031
+ function LayoutSider(props) {
6039
6032
  return /*#__PURE__*/(0,jsx_runtime.jsx)(LayoutContext.Consumer, {
6040
6033
  children: context => /*#__PURE__*/(0,jsx_runtime.jsx)(Sider, _extends({}, props, context))
6041
6034
  });
6042
- });
6035
+ }
6043
6036
 
6044
6037
  ;// CONCATENATED MODULE: ../../node_modules/@uiw/react-layout/esm/Content.js
6045
6038
 
@@ -6047,11 +6040,7 @@ function Sider(props) {
6047
6040
  var Content_excluded = ["prefixCls", "className", "children"];
6048
6041
 
6049
6042
 
6050
- /* harmony default export */ const Content = (function (props) {
6051
- if (props === void 0) {
6052
- props = {};
6053
- }
6054
-
6043
+ function LayoutContent(props) {
6055
6044
  var {
6056
6045
  prefixCls = 'w-layout-content',
6057
6046
  className,
@@ -6064,7 +6053,7 @@ var Content_excluded = ["prefixCls", "className", "children"];
6064
6053
  }, other, {
6065
6054
  children: children
6066
6055
  }));
6067
- });
6056
+ }
6068
6057
 
6069
6058
  ;// CONCATENATED MODULE: ../../node_modules/@uiw/react-layout/esm/style/index.css
6070
6059
  // extracted by mini-css-extract-plugin
@@ -6076,10 +6065,10 @@ var Content_excluded = ["prefixCls", "className", "children"];
6076
6065
 
6077
6066
 
6078
6067
 
6079
- Layout.Header = Header;
6080
- Layout.Footer = Footer;
6081
- Layout.Sider = esm_Sider;
6082
- Layout.Content = Content;
6068
+ Layout.Header = LayoutHeader;
6069
+ Layout.Footer = LayoutFooter;
6070
+ Layout.Sider = LayoutSider;
6071
+ Layout.Content = LayoutContent;
6083
6072
 
6084
6073
 
6085
6074
 
@@ -8158,7 +8147,7 @@ class Split extends (external_root_React_commonjs2_react_commonjs_react_amd_reac
8158
8147
 
8159
8148
  return /*#__PURE__*/(0,jsx_runtime.jsxs)((external_root_React_commonjs2_react_commonjs_react_amd_react_default()).Fragment, {
8160
8149
  children: [BarCom, /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default().cloneElement(element, _extends({}, props))]
8161
- });
8150
+ }, idx);
8162
8151
  })
8163
8152
  }));
8164
8153
  }