uiw 4.9.11 → 4.10.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/LICENSE +21 -0
- package/dist/uiw.js +47 -43
- package/dist/uiw.min.js +1 -1
- package/package.json +55 -55
package/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2017-present, 小弟调调
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
package/dist/uiw.js
CHANGED
|
@@ -202,6 +202,7 @@ module.exports = shouldUseNative() ? Object.assign : function (target, source) {
|
|
|
202
202
|
/***/ (function(__unused_webpack_module, exports, __webpack_require__) {
|
|
203
203
|
|
|
204
204
|
"use strict";
|
|
205
|
+
var __webpack_unused_export__;
|
|
205
206
|
/** @license React v17.0.2
|
|
206
207
|
* react-jsx-runtime.production.min.js
|
|
207
208
|
*
|
|
@@ -217,12 +218,12 @@ __webpack_require__(115);
|
|
|
217
218
|
var f = __webpack_require__(787),
|
|
218
219
|
g = 60103;
|
|
219
220
|
|
|
220
|
-
|
|
221
|
+
__webpack_unused_export__ = 60107;
|
|
221
222
|
|
|
222
223
|
if ("function" === typeof Symbol && Symbol.for) {
|
|
223
224
|
var h = Symbol.for;
|
|
224
225
|
g = h("react.element");
|
|
225
|
-
|
|
226
|
+
__webpack_unused_export__ = h("react.fragment");
|
|
226
227
|
}
|
|
227
228
|
|
|
228
229
|
var m = f.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,
|
|
@@ -1050,8 +1051,11 @@ __webpack_require__.d(__webpack_exports__, {
|
|
|
1050
1051
|
"Layout": function() { return /* reexport */ react_layout_esm; },
|
|
1051
1052
|
"LayoutContext": function() { return /* reexport */ LayoutContext; },
|
|
1052
1053
|
"List": function() { return /* reexport */ react_list_esm; },
|
|
1054
|
+
"ListItem": function() { return /* reexport */ ListItem; },
|
|
1053
1055
|
"Loader": function() { return /* reexport */ react_loader_esm; },
|
|
1054
1056
|
"Menu": function() { return /* reexport */ react_menu_esm; },
|
|
1057
|
+
"MenuDivider": function() { return /* reexport */ MenuDivider; },
|
|
1058
|
+
"MenuItem": function() { return /* reexport */ MenuItem; },
|
|
1055
1059
|
"Message": function() { return /* reexport */ Message; },
|
|
1056
1060
|
"Modal": function() { return /* reexport */ react_modal_esm; },
|
|
1057
1061
|
"MonthPicker": function() { return /* reexport */ MonthPicker; },
|
|
@@ -1073,6 +1077,7 @@ __webpack_require__.d(__webpack_exports__, {
|
|
|
1073
1077
|
"Slider": function() { return /* reexport */ Slider; },
|
|
1074
1078
|
"Split": function() { return /* reexport */ Split; },
|
|
1075
1079
|
"Steps": function() { return /* reexport */ react_steps_esm; },
|
|
1080
|
+
"SubMenu": function() { return /* reexport */ SubMenu; },
|
|
1076
1081
|
"Switch": function() { return /* reexport */ react_switch_esm; },
|
|
1077
1082
|
"Table": function() { return /* reexport */ react_table_esm; },
|
|
1078
1083
|
"Tabs": function() { return /* reexport */ Tabs; },
|
|
@@ -3684,7 +3689,11 @@ function getStyle(options) {
|
|
|
3684
3689
|
usePortal = _ref.usePortal,
|
|
3685
3690
|
autoAdjustOverflow = _ref.autoAdjustOverflow;
|
|
3686
3691
|
|
|
3687
|
-
var sty = {
|
|
3692
|
+
var sty = {
|
|
3693
|
+
left: 0,
|
|
3694
|
+
top: 0,
|
|
3695
|
+
placement: placement
|
|
3696
|
+
};
|
|
3688
3697
|
|
|
3689
3698
|
if (!triggerDom || !popupDom || !document) {
|
|
3690
3699
|
return sty;
|
|
@@ -6693,8 +6702,7 @@ var esm_Item_excluded = ["prefixCls", "className", "children", "extra", "tagName
|
|
|
6693
6702
|
|
|
6694
6703
|
|
|
6695
6704
|
|
|
6696
|
-
|
|
6697
|
-
var Item_Item = /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default().forwardRef(function (props, ref) {
|
|
6705
|
+
var ListItem = /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default().forwardRef(function (props, ref) {
|
|
6698
6706
|
var _props$prefixCls = props.prefixCls,
|
|
6699
6707
|
prefixCls = _props$prefixCls === void 0 ? 'w-list-item' : _props$prefixCls,
|
|
6700
6708
|
className = props.className,
|
|
@@ -6711,20 +6719,17 @@ var Item_Item = /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_
|
|
|
6711
6719
|
return /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default().createElement(TagName, _extends({}, resetProps, {
|
|
6712
6720
|
className: cls,
|
|
6713
6721
|
ref: ref
|
|
6714
|
-
}), /*#__PURE__*/(0,jsx_runtime.
|
|
6715
|
-
children:
|
|
6716
|
-
|
|
6717
|
-
|
|
6718
|
-
|
|
6719
|
-
|
|
6720
|
-
|
|
6721
|
-
|
|
6722
|
-
})]
|
|
6723
|
-
})
|
|
6722
|
+
}), !extra || resetProps.href ? children : /*#__PURE__*/(0,jsx_runtime.jsxs)(external_root_React_commonjs2_react_commonjs_react_amd_react_.Fragment, {
|
|
6723
|
+
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("div", {
|
|
6724
|
+
className: prefixCls + "-main",
|
|
6725
|
+
children: children
|
|
6726
|
+
}), /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
|
|
6727
|
+
className: prefixCls + "-extra",
|
|
6728
|
+
children: extra
|
|
6729
|
+
})]
|
|
6724
6730
|
}));
|
|
6725
6731
|
});
|
|
6726
|
-
|
|
6727
|
-
/* harmony default export */ var esm_Item = (Item_Item);
|
|
6732
|
+
ListItem.displayName = 'List.Item';
|
|
6728
6733
|
;// CONCATENATED MODULE: ../react-list/esm/style/index.css
|
|
6729
6734
|
// extracted by mini-css-extract-plugin
|
|
6730
6735
|
/* harmony default export */ var react_list_esm_style = ({});
|
|
@@ -6794,7 +6799,7 @@ function InternalList(props, ref) {
|
|
|
6794
6799
|
}
|
|
6795
6800
|
|
|
6796
6801
|
var List = /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default().forwardRef(InternalList);
|
|
6797
|
-
List.Item =
|
|
6802
|
+
List.Item = ListItem;
|
|
6798
6803
|
/* harmony default export */ var react_list_esm = (List);
|
|
6799
6804
|
;// CONCATENATED MODULE: ../../node_modules/@uiw/react-layout/esm/Layout.js
|
|
6800
6805
|
|
|
@@ -7159,7 +7164,8 @@ var disabledProps = {
|
|
|
7159
7164
|
onMouseLeave: undefined,
|
|
7160
7165
|
tabIndex: -1
|
|
7161
7166
|
};
|
|
7162
|
-
|
|
7167
|
+
|
|
7168
|
+
function Internal(props, ref) {
|
|
7163
7169
|
var _props$prefixCls = props.prefixCls,
|
|
7164
7170
|
prefixCls = _props$prefixCls === void 0 ? 'w-menu-item' : _props$prefixCls,
|
|
7165
7171
|
className = props.className,
|
|
@@ -7198,47 +7204,42 @@ var MenuItem = /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_a
|
|
|
7198
7204
|
return /*#__PURE__*/(0,jsx_runtime.jsxs)("li", {
|
|
7199
7205
|
children: [" ", tagComp, " "]
|
|
7200
7206
|
});
|
|
7201
|
-
}
|
|
7207
|
+
}
|
|
7208
|
+
|
|
7209
|
+
var MenuItem = /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default().forwardRef(Internal);
|
|
7202
7210
|
MenuItem.displayName = 'uiw.MenuItem';
|
|
7203
|
-
/* harmony default export */ var esm_MenuItem = (MenuItem);
|
|
7204
7211
|
;// CONCATENATED MODULE: ../react-menu/esm/Divider.js
|
|
7205
7212
|
|
|
7206
7213
|
|
|
7207
7214
|
var Divider_excluded = ["prefixCls", "className", "title"];
|
|
7208
7215
|
|
|
7209
7216
|
|
|
7210
|
-
|
|
7211
|
-
|
|
7212
|
-
if (props === void 0) {
|
|
7213
|
-
props = {};
|
|
7214
|
-
}
|
|
7215
|
-
|
|
7216
|
-
var _props = props,
|
|
7217
|
-
_props$prefixCls = _props.prefixCls,
|
|
7217
|
+
var MenuDivider = /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default().forwardRef(function (props, ref) {
|
|
7218
|
+
var _props$prefixCls = props.prefixCls,
|
|
7218
7219
|
prefixCls = _props$prefixCls === void 0 ? 'w-menu-divider' : _props$prefixCls,
|
|
7219
|
-
className =
|
|
7220
|
-
title =
|
|
7220
|
+
className = props.className,
|
|
7221
|
+
title = props.title,
|
|
7221
7222
|
htmlProps = _objectWithoutPropertiesLoose(props, Divider_excluded);
|
|
7222
7223
|
|
|
7223
7224
|
var cls = [prefixCls, className].filter(Boolean).join(' ').trim();
|
|
7224
7225
|
|
|
7225
7226
|
if (!title) {
|
|
7226
7227
|
return /*#__PURE__*/(0,jsx_runtime.jsx)("li", _extends({}, htmlProps, {
|
|
7228
|
+
ref: ref,
|
|
7227
7229
|
className: cls
|
|
7228
7230
|
}));
|
|
7229
7231
|
}
|
|
7230
7232
|
|
|
7231
7233
|
return /*#__PURE__*/(0,jsx_runtime.jsx)("li", _extends({}, htmlProps, {
|
|
7234
|
+
ref: ref,
|
|
7232
7235
|
className: cls,
|
|
7233
7236
|
"data-menu": "divider",
|
|
7234
7237
|
children: /*#__PURE__*/(0,jsx_runtime.jsx)("strong", {
|
|
7235
7238
|
children: title
|
|
7236
7239
|
})
|
|
7237
7240
|
}));
|
|
7238
|
-
}
|
|
7239
|
-
|
|
7240
|
-
Divider.displayName = 'uiw.MenuDivider';
|
|
7241
|
-
/* harmony default export */ var esm_Divider = (Divider);
|
|
7241
|
+
});
|
|
7242
|
+
MenuDivider.displayName = 'uiw.MenuDivider';
|
|
7242
7243
|
;// CONCATENATED MODULE: ../react-menu/esm/style/submenu.css
|
|
7243
7244
|
// extracted by mini-css-extract-plugin
|
|
7244
7245
|
/* harmony default export */ var submenu = ({});
|
|
@@ -7390,7 +7391,7 @@ var SubMenu = /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_am
|
|
|
7390
7391
|
paddingLeft: inlineIndent
|
|
7391
7392
|
} : {}
|
|
7392
7393
|
})),
|
|
7393
|
-
children: /*#__PURE__*/(0,jsx_runtime.jsx)(
|
|
7394
|
+
children: /*#__PURE__*/(0,jsx_runtime.jsx)(MenuItem, _extends({}, other, {
|
|
7394
7395
|
ref: null,
|
|
7395
7396
|
disabled: disabled,
|
|
7396
7397
|
isSubMenuItem: true,
|
|
@@ -7405,7 +7406,6 @@ var SubMenu = /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_am
|
|
|
7405
7406
|
});
|
|
7406
7407
|
});
|
|
7407
7408
|
SubMenu.displayName = 'uiw.SubMenu';
|
|
7408
|
-
/* harmony default export */ var esm_SubMenu = (SubMenu);
|
|
7409
7409
|
;// CONCATENATED MODULE: ../react-menu/esm/style/menu.css
|
|
7410
7410
|
// extracted by mini-css-extract-plugin
|
|
7411
7411
|
/* harmony default export */ var menu = ({});
|
|
@@ -7443,7 +7443,7 @@ var Menu = /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_r
|
|
|
7443
7443
|
if (! /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default().isValidElement(child)) return child;
|
|
7444
7444
|
var props = {}; // Sub Menu
|
|
7445
7445
|
|
|
7446
|
-
if (child.props.children && child.type ===
|
|
7446
|
+
if (child.props.children && child.type === SubMenu) {
|
|
7447
7447
|
props.inlineIndent = inlineIndent;
|
|
7448
7448
|
}
|
|
7449
7449
|
|
|
@@ -7453,10 +7453,10 @@ var Menu = /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_r
|
|
|
7453
7453
|
})
|
|
7454
7454
|
}));
|
|
7455
7455
|
});
|
|
7456
|
-
Menu.Item = esm_MenuItem;
|
|
7457
|
-
Menu.SubMenu = esm_SubMenu;
|
|
7458
|
-
Menu.Divider = esm_Divider;
|
|
7459
7456
|
Menu.displayName = 'uiw.Menu';
|
|
7457
|
+
Menu.Item = MenuItem;
|
|
7458
|
+
Menu.SubMenu = SubMenu;
|
|
7459
|
+
Menu.Divider = MenuDivider;
|
|
7460
7460
|
/* harmony default export */ var esm_Menu = (Menu);
|
|
7461
7461
|
;// CONCATENATED MODULE: ../react-menu/esm/index.js
|
|
7462
7462
|
|
|
@@ -7984,12 +7984,13 @@ function NotificationCreate(props, type) {
|
|
|
7984
7984
|
|
|
7985
7985
|
|
|
7986
7986
|
|
|
7987
|
-
var react_pagination_esm_excluded = ["className", "prefixCls", "alignment", "size", "total", "pageSize", "current", "onChange", "divider"];
|
|
7987
|
+
var react_pagination_esm_excluded = ["className", "style", "prefixCls", "alignment", "size", "total", "pageSize", "current", "onChange", "divider"];
|
|
7988
7988
|
|
|
7989
7989
|
|
|
7990
7990
|
|
|
7991
7991
|
function Pagination(props) {
|
|
7992
7992
|
var className = props.className,
|
|
7993
|
+
style = props.style,
|
|
7993
7994
|
_props$prefixCls = props.prefixCls,
|
|
7994
7995
|
prefixCls = _props$prefixCls === void 0 ? 'w-pagination' : _props$prefixCls,
|
|
7995
7996
|
_props$alignment = props.alignment,
|
|
@@ -8134,7 +8135,10 @@ function Pagination(props) {
|
|
|
8134
8135
|
}
|
|
8135
8136
|
|
|
8136
8137
|
return /*#__PURE__*/(0,jsx_runtime.jsx)("ul", _extends({
|
|
8137
|
-
className: cls
|
|
8138
|
+
className: cls,
|
|
8139
|
+
style: _extends({}, style, {
|
|
8140
|
+
textAlign: alignment
|
|
8141
|
+
})
|
|
8138
8142
|
}, other, {
|
|
8139
8143
|
children: initPageSoure.map(function (item, idx) {
|
|
8140
8144
|
// eslint-disable-next-line jsx-a11y/anchor-is-valid
|