uiw 5.0.0-bate-2 → 5.0.0-bate-5

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 (3) hide show
  1. package/dist/uiw.js +113 -69
  2. package/dist/uiw.min.js +1 -1
  3. package/package.json +60 -60
package/dist/uiw.js CHANGED
@@ -86,6 +86,42 @@ return /******/ (() => { // webpackBootstrap
86
86
  //# sourceMappingURL=copy-to-clipboard.umd.js.map
87
87
 
88
88
 
89
+ /***/ }),
90
+
91
+ /***/ 394:
92
+ /***/ ((__unused_webpack_module, exports, __webpack_require__) => {
93
+
94
+ "use strict";
95
+ var __webpack_unused_export__;
96
+
97
+
98
+ var _interopRequireDefault = (__webpack_require__(600)["default"]);
99
+
100
+ __webpack_unused_export__ = ({
101
+ value: true
102
+ });
103
+ exports.T = void 0;
104
+
105
+ var _objectSpread2 = _interopRequireDefault(__webpack_require__(814));
106
+
107
+ var _react = _interopRequireDefault(__webpack_require__(787));
108
+
109
+ var _jsxRuntime = __webpack_require__(664);
110
+
111
+ var CaretRight = function CaretRight(props) {
112
+ return /*#__PURE__*/(0, _jsxRuntime.jsx)("svg", (0, _objectSpread2["default"])((0, _objectSpread2["default"])({
113
+ viewBox: "0 0 20 20"
114
+ }, props), {}, {
115
+ children: /*#__PURE__*/(0, _jsxRuntime.jsx)("path", {
116
+ d: "M4.99997298,2.64282227 L4.99997298,17.4082642 C5.09237787,17.7285055 5.29866028,17.9191895 5.61882019,17.9803162 C5.9389801,18.0414429 6.25233968,17.9564514 6.55889893,17.7253418 L14.6656665,10.7321242 C14.8885375,10.5329849 14.999973,10.2889901 14.999973,10.0001397 C14.999973,9.71128923 14.8885375,9.46773884 14.6656665,9.26948848 C11.7588863,6.76244709 9.06373939,4.43805189 6.58022575,2.29630288 C6.3482666,2.09913635 5.94128418,1.91293335 5.51852417,2.04302979 C5.23668416,2.12976074 5.06383377,2.32969157 4.99997298,2.64282227 Z",
117
+ fillRule: "evenodd"
118
+ })
119
+ }));
120
+ };
121
+
122
+ exports.T = CaretRight;
123
+
124
+
89
125
  /***/ }),
90
126
 
91
127
  /***/ 809:
@@ -1055,7 +1091,7 @@ __webpack_require__.d(__webpack_exports__, {
1055
1091
  "DateTimeStylePanelUl": () => (/* reexport */ DateTimeStylePanelUl),
1056
1092
  "DayRect": () => (/* reexport */ DayRect),
1057
1093
  "Descriptions": () => (/* reexport */ react_descriptions_esm),
1058
- "DescriptionsStyleItem": () => (/* reexport */ style_DescriptionsStyleItem),
1094
+ "DescriptionsStyleItem": () => (/* reexport */ DescriptionsStyleItem),
1059
1095
  "DescriptionsStyleTable": () => (/* reexport */ DescriptionsStyleTable),
1060
1096
  "DescriptionsStyleTableCaption": () => (/* reexport */ DescriptionsStyleTableCaption),
1061
1097
  "DescriptionsStyleTableRow": () => (/* reexport */ DescriptionsStyleTableRow),
@@ -3505,7 +3541,7 @@ var style_templateObject, style_templateObject2, style_templateObject3, style_te
3505
3541
 
3506
3542
 
3507
3543
  var loadingCircle = Ue(style_templateObject || (style_templateObject = _taggedTemplateLiteralLoose(["\n 0% {\n transform: rotate(0deg);\n }\n 100% {\n transform: rotate(360deg);\n }\n"])));
3508
- var IconStyleBase = styled_components_browser_esm.span(style_templateObject2 || (style_templateObject2 = _taggedTemplateLiteralLoose(["\n height: 1em;\n width: 1em;\n & svg {\n height: 1em;\n width: 1em;\n }\n display: inline-flex;\n align-self: center;\n position: relative;\n transition: color 0.3s;\n box-sizing: inherit;\n ", "\n ", "\n"])), props => {
3544
+ var IconStyleBase = styled_components_browser_esm.span(style_templateObject2 || (style_templateObject2 = _taggedTemplateLiteralLoose(["\n height: 1em;\n width: 1em;\n fill: currentColor;\n & svg {\n height: 1em;\n width: 1em;\n fill: currentColor;\n }\n display: inline-flex;\n align-self: center;\n position: relative;\n transition: color 0.3s;\n box-sizing: inherit;\n ", "\n ", "\n"])), props => {
3509
3545
  var _props$params;
3510
3546
 
3511
3547
  return (props.verticalAlign === 'baseline' || ((_props$params = props.params) == null ? void 0 : _props$params.verticalAlign) === 'baseline') && Ce(style_templateObject3 || (style_templateObject3 = _taggedTemplateLiteralLoose(["\n top: 0.125em;\n "])));
@@ -7325,7 +7361,7 @@ var MenuStyleTheme = {
7325
7361
  };
7326
7362
  var MenuDividerBase = styled_components_browser_esm.li(react_menu_esm_style_templateObject || (react_menu_esm_style_templateObject = _taggedTemplateLiteralLoose([""]))); // export interface MenuStyleItemBaseProps extends Omit<MenuItemProps<'a'>, 'theme'>, ThemeVar {
7327
7363
 
7328
- var MenuStyleItemIcon = styled_components_browser_esm(Icon)(react_menu_esm_style_templateObject2 || (react_menu_esm_style_templateObject2 = _taggedTemplateLiteralLoose([""])));
7364
+ var MenuStyleItemIcon = styled_components_browser_esm(IconStyleBase)(react_menu_esm_style_templateObject2 || (react_menu_esm_style_templateObject2 = _taggedTemplateLiteralLoose([""])));
7329
7365
  var MenuItemStyleTextBase = styled_components_browser_esm.div(react_menu_esm_style_templateObject3 || (react_menu_esm_style_templateObject3 = _taggedTemplateLiteralLoose(["\n ", "\n ", "\n"])), props => {
7330
7366
  var _props$params;
7331
7367
 
@@ -7363,7 +7399,7 @@ var MenuStyleItemBase = styled_components_browser_esm.a(react_menu_esm_style_tem
7363
7399
  MenuStyleItemBase.defaultProps = {
7364
7400
  defaultTheme: MenuStyleTheme
7365
7401
  };
7366
- var SubItemCollapseIcon = styled_components_browser_esm(Icon)(react_menu_esm_style_templateObject12 || (react_menu_esm_style_templateObject12 = _taggedTemplateLiteralLoose(["\n ", "\n ", "\n"])), props => {
7402
+ var SubItemCollapseIcon = styled_components_browser_esm(IconStyleBase)(react_menu_esm_style_templateObject12 || (react_menu_esm_style_templateObject12 = _taggedTemplateLiteralLoose(["\n ", "\n ", "\n"])), props => {
7367
7403
  var _props$params8;
7368
7404
 
7369
7405
  return ((_props$params8 = props.params) == null ? void 0 : _props$params8.prefixCls) && Ce(react_menu_esm_style_templateObject13 || (react_menu_esm_style_templateObject13 = _taggedTemplateLiteralLoose(["\n transform: scale(0.79);\n "])));
@@ -7471,7 +7507,7 @@ function Internal(props, ref) {
7471
7507
  }), /*#__PURE__*/(0,jsx_runtime.jsxs)(external_root_React_commonjs2_react_commonjs_react_amd_react_.Fragment, {
7472
7508
  children: [/*#__PURE__*/(0,jsx_runtime.jsx)(MenuStyleItemIcon, {
7473
7509
  className: prefixCls + "-icon",
7474
- type: icon
7510
+ children: icon
7475
7511
  }), /*#__PURE__*/(0,jsx_runtime.jsx)(MenuItemStyleTextBase, {
7476
7512
  params: {
7477
7513
  multiline,
@@ -7563,6 +7599,8 @@ var useMenuContext = () => {
7563
7599
  };
7564
7600
  };
7565
7601
 
7602
+ // EXTERNAL MODULE: ../../node_modules/@uiw/icons/lib/CaretRight.js
7603
+ var CaretRight = __webpack_require__(394);
7566
7604
  ;// CONCATENATED MODULE: ../react-menu/esm/SubMenu.js
7567
7605
 
7568
7606
 
@@ -7574,6 +7612,7 @@ var SubMenu_excluded = ["prefixCls", "className", "disabled", "overlayProps", "c
7574
7612
 
7575
7613
 
7576
7614
 
7615
+
7577
7616
  function checkedMenuItem(node) {
7578
7617
  var isCheck = false;
7579
7618
 
@@ -7600,13 +7639,17 @@ function IconView(_ref) {
7600
7639
  isOpen
7601
7640
  } = _ref;
7602
7641
  return (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useMemo)(() => /*#__PURE__*/(0,jsx_runtime.jsx)(SubItemCollapseIcon, {
7603
- type: "caret-right",
7604
7642
  params: {
7605
7643
  prefixCls,
7606
7644
  collapse,
7607
7645
  isOpen
7608
7646
  },
7609
- className: [prefixCls ? prefixCls + "-collapse-icon" : null, !collapse && isOpen ? 'w-open' : null, !collapse && !isOpen ? 'w-close' : null].filter(Boolean).join(' ').trim()
7647
+ className: [prefixCls ? prefixCls + "-collapse-icon" : null, !collapse && isOpen ? 'w-open' : null, !collapse && !isOpen ? 'w-close' : null].filter(Boolean).join(' ').trim(),
7648
+ children: /*#__PURE__*/(0,jsx_runtime.jsx)(CaretRight/* CaretRight */.T, {
7649
+ style: {
7650
+ fill: 'currentColor'
7651
+ }
7652
+ })
7610
7653
  }), [prefixCls, collapse, isOpen]);
7611
7654
  }
7612
7655
 
@@ -7753,7 +7796,8 @@ var Menu_excluded = ["prefixCls", "className", "children", "bordered", "theme",
7753
7796
 
7754
7797
 
7755
7798
 
7756
- var Menu = /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default().forwardRef((props, ref) => {
7799
+
7800
+ var Menu = (props, ref) => {
7757
7801
  var {
7758
7802
  prefixCls = 'w-menu',
7759
7803
  className,
@@ -7794,12 +7838,14 @@ var Menu = /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_r
7794
7838
  })
7795
7839
  }))
7796
7840
  });
7797
- });
7841
+ };
7842
+
7798
7843
  Menu.displayName = 'uiw.Menu';
7799
- Menu.Item = MenuItem;
7800
- Menu.SubMenu = SubMenu;
7801
- Menu.Divider = MenuDivider;
7802
- /* harmony default export */ const esm_Menu = (Menu);
7844
+ var ContextMenu = /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default().forwardRef(Menu);
7845
+ ContextMenu.Item = MenuItem;
7846
+ ContextMenu.SubMenu = SubMenu;
7847
+ ContextMenu.Divider = MenuDivider;
7848
+ /* harmony default export */ const esm_Menu = (ContextMenu);
7803
7849
 
7804
7850
  ;// CONCATENATED MODULE: ../react-menu/esm/index.js
7805
7851
 
@@ -8718,6 +8764,7 @@ function InternalCollapse(props, ref) {
8718
8764
  }
8719
8765
 
8720
8766
  var Collapse = /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default().forwardRef(InternalCollapse);
8767
+ Collapse.displayName = 'Collapse';
8721
8768
  Collapse.Panel = Panel;
8722
8769
  /* harmony default export */ const esm_Collapse = (Collapse);
8723
8770
 
@@ -9008,14 +9055,14 @@ function DateInput(props) {
9008
9055
  }
9009
9056
 
9010
9057
  ;// CONCATENATED MODULE: ../react-descriptions/esm/DescriptionsItem.js
9011
- var DescriptionsStyleItem = _ref => {
9058
+ var DescriptionsItem = _ref => {
9012
9059
  var {
9013
9060
  children
9014
9061
  } = _ref;
9015
9062
  return children;
9016
9063
  };
9017
9064
 
9018
- /* harmony default export */ const DescriptionsItem = (DescriptionsStyleItem);
9065
+ /* harmony default export */ const esm_DescriptionsItem = (DescriptionsItem);
9019
9066
 
9020
9067
  ;// CONCATENATED MODULE: ../react-descriptions/esm/style/index.js
9021
9068
 
@@ -9046,11 +9093,11 @@ var react_descriptions_esm_style_propsTheme = {
9046
9093
  defaultTheme: extends_extends({}, DescriptionsStyleTheme)
9047
9094
  };
9048
9095
  var DescriptionsStyleWarp = styled_components_browser_esm.div(react_descriptions_esm_style_templateObject || (react_descriptions_esm_style_templateObject = _taggedTemplateLiteralLoose(["\n background: ", ";\n ", "\n"])), props => getThemeVariantValue(extends_extends({}, props, react_descriptions_esm_style_propsTheme), 'backgroundColorBase'), props => props.bordered && Ce(react_descriptions_esm_style_templateObject2 || (react_descriptions_esm_style_templateObject2 = _taggedTemplateLiteralLoose(["\n & {\n overflow: hidden;\n border-radius: 3px;\n border: 1px solid ", ";\n }\n "])), props => getThemeVariantValue(extends_extends({}, props, react_descriptions_esm_style_propsTheme), 'borderColorDescriptions')));
9049
- var style_DescriptionsStyleItem = styled_components_browser_esm.th(react_descriptions_esm_style_templateObject3 || (react_descriptions_esm_style_templateObject3 = _taggedTemplateLiteralLoose(["\n ", "\n\n ", "\n ", "\n ", "\n"])), props => props.isLabel && Ce(react_descriptions_esm_style_templateObject4 || (react_descriptions_esm_style_templateObject4 = _taggedTemplateLiteralLoose(["\n & {\n font-size: 14px;\n font-weight: normal;\n &::after {\n position: relative;\n top: -0.5px;\n margin: 0 8px 0 2px;\n content: ' ';\n }\n }\n "]))), props => props.isColon && Ce(react_descriptions_esm_style_templateObject5 || (react_descriptions_esm_style_templateObject5 = _taggedTemplateLiteralLoose(["\n &::after {\n content: ':';\n }\n & {\n color: ", ";\n }\n "])), props => getThemeVariantValue(extends_extends({}, props, react_descriptions_esm_style_propsTheme), 'colorDescriptionsColon')), props => props.isContent && Ce(react_descriptions_esm_style_templateObject6 || (react_descriptions_esm_style_templateObject6 = _taggedTemplateLiteralLoose(["\n & {\n font-size: ", ";\n color: ", ";\n }\n "])), props => getThemeVariantValue(extends_extends({}, props, react_descriptions_esm_style_propsTheme), 'fontSizeDefault'), props => getThemeVariantValue(extends_extends({}, props, react_descriptions_esm_style_propsTheme), 'colorDescriptionsConent')), props => props.bordered && (props.isContent || props.isLabel) && Ce(react_descriptions_esm_style_templateObject7 || (react_descriptions_esm_style_templateObject7 = _taggedTemplateLiteralLoose(["\n &&:last-child {\n border-right: none;\n }\n "]))));
9096
+ var DescriptionsStyleItem = styled_components_browser_esm.th(react_descriptions_esm_style_templateObject3 || (react_descriptions_esm_style_templateObject3 = _taggedTemplateLiteralLoose(["\n ", "\n\n ", "\n ", "\n ", "\n"])), props => props.isLabel && Ce(react_descriptions_esm_style_templateObject4 || (react_descriptions_esm_style_templateObject4 = _taggedTemplateLiteralLoose(["\n & {\n font-size: 14px;\n font-weight: normal;\n &::after {\n position: relative;\n top: -0.5px;\n margin: 0 8px 0 2px;\n content: ' ';\n }\n }\n "]))), props => props.isColon && Ce(react_descriptions_esm_style_templateObject5 || (react_descriptions_esm_style_templateObject5 = _taggedTemplateLiteralLoose(["\n &::after {\n content: ':';\n }\n & {\n color: ", ";\n }\n "])), props => getThemeVariantValue(extends_extends({}, props, react_descriptions_esm_style_propsTheme), 'colorDescriptionsColon')), props => props.isContent && Ce(react_descriptions_esm_style_templateObject6 || (react_descriptions_esm_style_templateObject6 = _taggedTemplateLiteralLoose(["\n & {\n font-size: ", ";\n color: ", ";\n }\n "])), props => getThemeVariantValue(extends_extends({}, props, react_descriptions_esm_style_propsTheme), 'fontSizeDefault'), props => getThemeVariantValue(extends_extends({}, props, react_descriptions_esm_style_propsTheme), 'colorDescriptionsConent')), props => props.bordered && (props.isContent || props.isLabel) && Ce(react_descriptions_esm_style_templateObject7 || (react_descriptions_esm_style_templateObject7 = _taggedTemplateLiteralLoose(["\n &&:last-child {\n border-right: none;\n }\n "]))));
9050
9097
  var DescriptionsStyleTable = styled_components_browser_esm.table(react_descriptions_esm_style_templateObject8 || (react_descriptions_esm_style_templateObject8 = _taggedTemplateLiteralLoose(["\n display: table !important;\n margin-bottom: 0 !important;\n margin: 0;\n border-spacing: 0;\n border-collapse: collapse;\n table-layout: fixed;\n width: 100%;\n"])));
9051
9098
  var DescriptionsStyleTableCaption = styled_components_browser_esm.caption(react_descriptions_esm_style_templateObject9 || (react_descriptions_esm_style_templateObject9 = _taggedTemplateLiteralLoose(["\n font-weight: bold;\n text-align: left;\n margin-bottom: 8px;\n color: ", ";\n font-size: ", ";\n line-height: 1.5;\n ", "\n"])), props => getThemeVariantValue(extends_extends({}, props, react_descriptions_esm_style_propsTheme), 'colorDescriptionsHead'), props => getThemeVariantValue(extends_extends({}, props, react_descriptions_esm_style_propsTheme), 'fontSizeLarge'), props => props.bordered && Ce(react_descriptions_esm_style_templateObject10 || (react_descriptions_esm_style_templateObject10 = _taggedTemplateLiteralLoose(["\n & {\n margin-bottom: 0;\n padding: 7px 12px;\n }\n "]))));
9052
9099
  var DescriptionsStyleTableRow = styled_components_browser_esm.tr(react_descriptions_esm_style_templateObject11 || (react_descriptions_esm_style_templateObject11 = _taggedTemplateLiteralLoose(["\n &&:nth-child(2n) {\n background-color: transparent;\n }\n ", "\n ", "\n"])), props => props.bordered && Ce(react_descriptions_esm_style_templateObject12 || (react_descriptions_esm_style_templateObject12 = _taggedTemplateLiteralLoose(["\n & td {\n padding: 8px 12px;\n }\n "]))), props => !props.bordered && Ce(react_descriptions_esm_style_templateObject13 || (react_descriptions_esm_style_templateObject13 = _taggedTemplateLiteralLoose(["\n & td {\n padding-bottom: 8px;\n }\n "]))));
9053
- var DescriptionsStyleTableTbody = styled_components_browser_esm.tbody(react_descriptions_esm_style_templateObject14 || (react_descriptions_esm_style_templateObject14 = _taggedTemplateLiteralLoose(["\n word-wrap: break-word;\n ", "\n ", "\n ", "\n"])), props => props.bordered && Ce(react_descriptions_esm_style_templateObject15 || (react_descriptions_esm_style_templateObject15 = _taggedTemplateLiteralLoose(["\n & {\n tr th {\n padding: 8px 12px;\n background-color: ", ";\n font-weight: normal;\n }\n tr th,\n tr td {\n border-top: 1px solid\n ", ";\n border-right: 1px solid\n ", ";\n }\n &:first-child tr:first-child th,\n &:first-child tr:first-child td {\n border-top: 0;\n }\n }\n "])), props => getThemeVariantValue(extends_extends({}, props, react_descriptions_esm_style_propsTheme), 'borderColorDescriptionsTh'), props => getThemeVariantValue(extends_extends({}, props, react_descriptions_esm_style_propsTheme), 'borderColorDescriptions'), props => getThemeVariantValue(extends_extends({}, props, react_descriptions_esm_style_propsTheme), 'borderColorDescriptions')), props => props.size === 'small' && props.bordered && Ce(react_descriptions_esm_style_templateObject16 || (react_descriptions_esm_style_templateObject16 = _taggedTemplateLiteralLoose(["\n & ", " td,\n & ", " th {\n padding: 4px 8px;\n }\n "])), DescriptionsStyleTableRow, DescriptionsStyleTableRow), props => props.size === 'large' && props.bordered && Ce(style_templateObject17 || (style_templateObject17 = _taggedTemplateLiteralLoose(["\n & ", " ", " {\n padding: 14px 16px;\n }\n "])), DescriptionsStyleTableRow, style_DescriptionsStyleItem));
9100
+ var DescriptionsStyleTableTbody = styled_components_browser_esm.tbody(react_descriptions_esm_style_templateObject14 || (react_descriptions_esm_style_templateObject14 = _taggedTemplateLiteralLoose(["\n word-wrap: break-word;\n ", "\n ", "\n ", "\n"])), props => props.bordered && Ce(react_descriptions_esm_style_templateObject15 || (react_descriptions_esm_style_templateObject15 = _taggedTemplateLiteralLoose(["\n & {\n tr th {\n padding: 8px 12px;\n background-color: ", ";\n font-weight: normal;\n }\n tr th,\n tr td {\n border-top: 1px solid\n ", ";\n border-right: 1px solid\n ", ";\n }\n &:first-child tr:first-child th,\n &:first-child tr:first-child td {\n border-top: 0;\n }\n }\n "])), props => getThemeVariantValue(extends_extends({}, props, react_descriptions_esm_style_propsTheme), 'borderColorDescriptionsTh'), props => getThemeVariantValue(extends_extends({}, props, react_descriptions_esm_style_propsTheme), 'borderColorDescriptions'), props => getThemeVariantValue(extends_extends({}, props, react_descriptions_esm_style_propsTheme), 'borderColorDescriptions')), props => props.size === 'small' && props.bordered && Ce(react_descriptions_esm_style_templateObject16 || (react_descriptions_esm_style_templateObject16 = _taggedTemplateLiteralLoose(["\n & ", " td,\n & ", " th {\n padding: 4px 8px;\n }\n "])), DescriptionsStyleTableRow, DescriptionsStyleTableRow), props => props.size === 'large' && props.bordered && Ce(style_templateObject17 || (style_templateObject17 = _taggedTemplateLiteralLoose(["\n & ", " ", " {\n padding: 14px 16px;\n }\n "])), DescriptionsStyleTableRow, DescriptionsStyleItem));
9054
9101
 
9055
9102
  ;// CONCATENATED MODULE: ../react-descriptions/esm/Cell.js
9056
9103
 
@@ -9085,17 +9132,17 @@ function Cell(props) {
9085
9132
 
9086
9133
  if (layout === 'horizontal') {
9087
9134
  if (!bordered) {
9088
- return /*#__PURE__*/(0,jsx_runtime.jsxs)(style_DescriptionsStyleItem, extends_extends({
9135
+ return /*#__PURE__*/(0,jsx_runtime.jsxs)(DescriptionsStyleItem, extends_extends({
9089
9136
  as: TagName
9090
9137
  }, other, {
9091
9138
  colSpan: span,
9092
- children: [/*#__PURE__*/(0,jsx_runtime.jsx)(style_DescriptionsStyleItem, extends_extends({
9139
+ children: [/*#__PURE__*/(0,jsx_runtime.jsx)(DescriptionsStyleItem, extends_extends({
9093
9140
  as: "span"
9094
9141
  }, labelProps, {
9095
9142
  isColon: colon,
9096
9143
  isLabel: !!label,
9097
9144
  children: label
9098
- })), /*#__PURE__*/(0,jsx_runtime.jsx)(style_DescriptionsStyleItem, {
9145
+ })), /*#__PURE__*/(0,jsx_runtime.jsx)(DescriptionsStyleItem, {
9099
9146
  as: "span",
9100
9147
  isContent: !!prefixCls,
9101
9148
  className: prefixCls ? prefixCls + "-item-content" : '',
@@ -9105,14 +9152,14 @@ function Cell(props) {
9105
9152
  }
9106
9153
 
9107
9154
  return /*#__PURE__*/(0,jsx_runtime.jsxs)(external_root_React_commonjs2_react_commonjs_react_amd_react_.Fragment, {
9108
- children: [/*#__PURE__*/(0,jsx_runtime.jsx)(style_DescriptionsStyleItem, extends_extends({
9155
+ children: [/*#__PURE__*/(0,jsx_runtime.jsx)(DescriptionsStyleItem, extends_extends({
9109
9156
  as: "th"
9110
9157
  }, labelProps, {
9111
9158
  bordered: bordered,
9112
9159
  isColon: colon,
9113
9160
  isLabel: !!label,
9114
9161
  children: label
9115
- })), /*#__PURE__*/(0,jsx_runtime.jsx)(style_DescriptionsStyleItem, extends_extends({}, other, {
9162
+ })), /*#__PURE__*/(0,jsx_runtime.jsx)(DescriptionsStyleItem, extends_extends({}, other, {
9116
9163
  as: TagName,
9117
9164
  isContent: !!prefixCls,
9118
9165
  bordered: bordered,
@@ -9123,7 +9170,7 @@ function Cell(props) {
9123
9170
  });
9124
9171
  }
9125
9172
 
9126
- return /*#__PURE__*/(0,jsx_runtime.jsx)(style_DescriptionsStyleItem, {
9173
+ return /*#__PURE__*/(0,jsx_runtime.jsx)(DescriptionsStyleItem, {
9127
9174
  bordered: bordered,
9128
9175
  isLabel: TagName === 'th',
9129
9176
  isContent: TagName === 'td',
@@ -9274,10 +9321,15 @@ function InternalDescriptions(props, ref) {
9274
9321
  })]
9275
9322
  }))
9276
9323
  });
9277
- }
9324
+ } // const Descriptions = React.forwardRef<HTMLDivElement, DescriptionsProps>(InternalDescriptions);
9325
+ // type Descriptions = typeof Descriptions & {
9326
+ // Item: typeof DescriptionsItem;
9327
+ // };
9328
+ // (Descriptions as Descriptions).Item = DescriptionsItem;
9329
+
9278
9330
 
9279
9331
  var Descriptions = /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default().forwardRef(InternalDescriptions);
9280
- Descriptions.Item = DescriptionsItem;
9332
+ Descriptions.Item = esm_DescriptionsItem;
9281
9333
  /* harmony default export */ const react_descriptions_esm = (Descriptions);
9282
9334
 
9283
9335
  ;// CONCATENATED MODULE: ../react-divider/esm/style/index.js
@@ -9986,7 +10038,7 @@ var CaretLeft = props => /*#__PURE__*/_jsx("svg", _extends({
9986
10038
 
9987
10039
 
9988
10040
 
9989
- var CaretRight = props => /*#__PURE__*/_jsx("svg", _extends({
10041
+ var CaretRight_CaretRight = props => /*#__PURE__*/_jsx("svg", _extends({
9990
10042
  viewBox: "0 0 20 20"
9991
10043
  }, props, {
9992
10044
  children: /*#__PURE__*/_jsx("path", {
@@ -12890,7 +12942,7 @@ var FileList = props => {
12890
12942
  var [fileList, setFileList] = (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useState)([]);
12891
12943
  (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useEffect)(() => {
12892
12944
  setFileList(inValue);
12893
- }, []);
12945
+ }, [value]);
12894
12946
  var handleClickInput = (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useCallback)(() => openFileDialog(inputRef), [inputRef]);
12895
12947
  var onFileUpload = (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useCallback)(() => {
12896
12948
  if (inputRef.current) inputRef.current.value = '';
@@ -13145,16 +13197,10 @@ var SelectStyleTheme = {
13145
13197
  // 阴影
13146
13198
  boxShadowSelectBase: 'inset 0 0 0 1px rgba(16, 22, 26, 0.2), inset 0 -1px 0 rgba(16, 22, 26, 0.1);',
13147
13199
  boxShadowSelectDisabled: 'none',
13148
- // 鼠标移入
13149
- cursorSelectDefault: 'pointer',
13150
- cursorSelectDisabled: 'not-allowed',
13151
- //
13152
13200
  borderRadiusDefault: '3px',
13153
13201
  backgroundImageSelectUrl: "url(" + selectArrow + ")"
13154
13202
  };
13155
- var SelectStyleWarp = styled_components_browser_esm.select(react_select_esm_style_templateObject || (react_select_esm_style_templateObject = _taggedTemplateLiteralLoose(["\n display: inline-flex;\n appearance: none;\n cursor: ", ";\n color: ", ";\n padding: ", ";\n font-size: ", ";\n width: 100%;\n max-width: 100%;\n margin: 0;\n line-height: 18px;\n vertical-align: middle;\n box-sizing: border-box;\n border: none;\n box-shadow: ", ";\n border-radius: ", ";\n background-color: ", ";\n background-image: ", ",\n linear-gradient(180deg, hsla(0, 0%, 100%, 0.8), hsla(0, 0%, 100%, 0));\n background-repeat: no-repeat, repeat;\n background-position: right 0.7em top 50%, 0 0;\n background-size: 0.62em auto, 100%;\n &:focus {\n outline: none !important;\n }\n &:hover {\n box-shadow: ", ";\n background-clip: padding-box;\n background-color: ", ";\n }\n &:disabled {\n box-shadow: ", ";\n background-image: ", ";\n background-size: 0.52em auto, 100%;\n background-color: ", ";\n opacity: 0.75;\n color: ", ";\n cursor: ", ";\n resize: none;\n }\n ", "\n ", "\n"])), props => getThemeVariantValue(extends_extends({}, props, {
13156
- defaultTheme: SelectStyleTheme
13157
- }), 'cursorSelectDefault'), props => getThemeVariantValue(extends_extends({}, props, {
13203
+ var SelectStyleWarp = styled_components_browser_esm.select(react_select_esm_style_templateObject || (react_select_esm_style_templateObject = _taggedTemplateLiteralLoose(["\n display: inline-flex;\n appearance: none;\n cursor: pointer;\n color: ", ";\n padding: ", ";\n font-size: ", ";\n width: 100%;\n max-width: 100%;\n margin: 0;\n line-height: 18px;\n vertical-align: middle;\n box-sizing: border-box;\n border: none;\n box-shadow: ", ";\n border-radius: ", ";\n background-color: ", ";\n background-image: ", ",\n linear-gradient(180deg, hsla(0, 0%, 100%, 0.8), hsla(0, 0%, 100%, 0));\n background-repeat: no-repeat, repeat;\n background-position: right 0.7em top 50%, 0 0;\n background-size: 0.62em auto, 100%;\n &:focus {\n outline: none !important;\n }\n &:hover {\n box-shadow: ", ";\n background-clip: padding-box;\n background-color: ", ";\n }\n &:disabled {\n box-shadow: ", ";\n background-image: ", ";\n background-size: 0.52em auto, 100%;\n background-color: ", ";\n opacity: 0.75;\n color: ", ";\n cursor: not-allowed;\n resize: none;\n }\n ", "\n ", "\n"])), props => getThemeVariantValue(extends_extends({}, props, {
13158
13204
  defaultTheme: SelectStyleTheme
13159
13205
  }), 'colorSelectBase'), props => getThemeVariantValue(extends_extends({}, props, {
13160
13206
  defaultTheme: SelectStyleTheme
@@ -13180,9 +13226,7 @@ var SelectStyleWarp = styled_components_browser_esm.select(react_select_esm_styl
13180
13226
  defaultTheme: SelectStyleTheme
13181
13227
  }), 'backgroundColorSelectDisabled'), props => getThemeVariantValue(extends_extends({}, props, {
13182
13228
  defaultTheme: SelectStyleTheme
13183
- }), 'colorSelectDisabled'), props => getThemeVariantValue(extends_extends({}, props, {
13184
- defaultTheme: SelectStyleTheme
13185
- }), 'cursorSelectDisabled'), props => props.params.size === 'large' && Ce(react_select_esm_style_templateObject2 || (react_select_esm_style_templateObject2 = _taggedTemplateLiteralLoose(["\n padding: ", ";\n font-size: ", ";\n "])), props => getThemeVariantValue(extends_extends({}, props, {
13229
+ }), 'colorSelectDisabled'), props => props.params.size === 'large' && Ce(react_select_esm_style_templateObject2 || (react_select_esm_style_templateObject2 = _taggedTemplateLiteralLoose(["\n padding: ", ";\n font-size: ", ";\n "])), props => getThemeVariantValue(extends_extends({}, props, {
13186
13230
  defaultTheme: SelectStyleTheme
13187
13231
  }), 'paddingSelectLarge'), props => getThemeVariantValue(extends_extends({}, props, {
13188
13232
  defaultTheme: SelectStyleTheme
@@ -13204,7 +13248,8 @@ var react_select_esm_excluded = ["prefixCls", "className", "size"];
13204
13248
 
13205
13249
 
13206
13250
 
13207
- var Select = /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default().forwardRef((props, ref) => {
13251
+
13252
+ var InternalSelect = (props, ref) => {
13208
13253
  var {
13209
13254
  prefixCls = 'w-select',
13210
13255
  className,
@@ -13220,7 +13265,9 @@ var Select = /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd
13220
13265
  size
13221
13266
  }
13222
13267
  }));
13223
- });
13268
+ };
13269
+
13270
+ var Select = /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default().forwardRef(InternalSelect);
13224
13271
  Select.Option = Option;
13225
13272
  Select.Group = Group;
13226
13273
  /* harmony default export */ const react_select_esm = (Select);
@@ -13445,6 +13492,7 @@ var Form_excluded = ["prefixCls", "className", "fields", "children", "resetOnSub
13445
13492
 
13446
13493
 
13447
13494
 
13495
+
13448
13496
  function newFormState(fields, cb) {
13449
13497
  var state = {
13450
13498
  initial: {},
@@ -13475,8 +13523,7 @@ function newInitialValue(value) {
13475
13523
 
13476
13524
  var isPromise = promise => promise && typeof promise.then === 'function';
13477
13525
 
13478
- function Form(_ref, ref //| React.RefObject<FormRefType>,
13479
- ) {
13526
+ function Form(props, ref) {
13480
13527
  var {
13481
13528
  prefixCls = 'w-form',
13482
13529
  className,
@@ -13487,13 +13534,13 @@ function Form(_ref, ref //| React.RefObject<FormRefType>,
13487
13534
  onChange,
13488
13535
  onSubmit,
13489
13536
  afterSubmit
13490
- } = _ref,
13491
- others = _objectWithoutPropertiesLoose(_ref, Form_excluded);
13537
+ } = props,
13538
+ others = _objectWithoutPropertiesLoose(props, Form_excluded);
13492
13539
 
13493
- var initData = (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useMemo)(() => newFormState(fields, _ref2 => {
13540
+ var initData = (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useMemo)(() => newFormState(fields, _ref => {
13494
13541
  var {
13495
13542
  initialValue
13496
- } = _ref2;
13543
+ } = _ref;
13497
13544
  initialValue = newInitialValue(initialValue);
13498
13545
  return {
13499
13546
  initialValue,
@@ -13512,28 +13559,27 @@ function Form(_ref, ref //| React.RefObject<FormRefType>,
13512
13559
  var formUnits = {};
13513
13560
 
13514
13561
  for (var name in fields) {
13515
- var props = fields[name];
13516
- if (!props) continue;
13562
+ var itemProps = fields[name];
13563
+ if (!itemProps) continue;
13517
13564
  var error = data.errors[name];
13518
13565
 
13519
- if (typeof props.initialValue === 'boolean') {
13520
- props.checked = props.initialValue;
13566
+ if (typeof itemProps.initialValue === 'boolean') {
13567
+ itemProps.checked = itemProps.initialValue;
13521
13568
  }
13522
13569
 
13523
- var childField = controlField(extends_extends({}, props, {
13570
+ var childField = controlField(extends_extends({}, itemProps, {
13524
13571
  name
13525
13572
  }));
13526
- var help = error || props.help;
13527
- var labelFor = props.labelFor;
13528
- formUnits[name] = /*#__PURE__*/(0,jsx_runtime.jsx)(FormItem, extends_extends({}, extends_extends({}, props, {
13573
+ var help = error || itemProps.help;
13574
+ var labelFor = itemProps.labelFor;
13575
+ formUnits[name] = /*#__PURE__*/(0,external_root_React_commonjs2_react_commonjs_react_amd_react_.createElement)(FormItem, extends_extends({}, itemProps, {
13529
13576
  key: name,
13530
13577
  children: childField,
13531
- help,
13532
- labelFor,
13533
- state: data,
13534
- name,
13578
+ help: help,
13579
+ labelFor: labelFor,
13580
+ name: name,
13535
13581
  hasError: !!error
13536
- })));
13582
+ }));
13537
13583
  }
13538
13584
 
13539
13585
  function setFields(fields) {
@@ -13670,8 +13716,8 @@ function Form(_ref, ref //| React.RefObject<FormRefType>,
13670
13716
 
13671
13717
  var initials = extends_extends({}, initial);
13672
13718
 
13673
- Object.entries(initials).map(_ref3 => {
13674
- var [key, value] = _ref3;
13719
+ Object.entries(initials).map(_ref2 => {
13720
+ var [key, value] = _ref2;
13675
13721
 
13676
13722
  if (Array.isArray(value)) {
13677
13723
  initials[key] = [...value];
@@ -13684,13 +13730,13 @@ function Form(_ref, ref //| React.RefObject<FormRefType>,
13684
13730
  }));
13685
13731
  }
13686
13732
 
13687
- function controlField(_ref4) {
13733
+ function controlField(_ref3) {
13688
13734
  var {
13689
13735
  children,
13690
13736
  validator,
13691
13737
  name
13692
- } = _ref4,
13693
- other = _objectWithoutPropertiesLoose(_ref4, Form_excluded2);
13738
+ } = _ref3,
13739
+ other = _objectWithoutPropertiesLoose(_ref3, Form_excluded2);
13694
13740
 
13695
13741
  var element = typeof children !== 'function' ? children : children({
13696
13742
  onChange: handleChange(name, validator),
@@ -13718,10 +13764,9 @@ function Form(_ref, ref //| React.RefObject<FormRefType>,
13718
13764
  return /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default().cloneElement(element, props);
13719
13765
  }
13720
13766
 
13721
- return /*#__PURE__*/(0,jsx_runtime.jsx)(FormStyleWarp, extends_extends({}, extends_extends({}, others, {
13767
+ return /*#__PURE__*/(0,jsx_runtime.jsx)(FormStyleWarp, extends_extends({}, others, {
13722
13768
  className: [prefixCls, className].filter(Boolean).join(' ').trim(),
13723
- onSubmit: handleSubmit
13724
- }), {
13769
+ onSubmit: handleSubmit,
13725
13770
  children: /*#__PURE__*/(0,jsx_runtime.jsx)(FormStyleFieldset, {
13726
13771
  disabled: data.submitting,
13727
13772
  children: typeof children === 'function' ? children({
@@ -13832,7 +13877,6 @@ var react_list_esm_excluded = ["prefixCls", "bordered", "striped", "noHover", "a
13832
13877
 
13833
13878
 
13834
13879
 
13835
-
13836
13880
  function InternalList(props, ref) {
13837
13881
  var {
13838
13882
  prefixCls = 'w-list',
@@ -13841,7 +13885,7 @@ function InternalList(props, ref) {
13841
13885
  noHover = false,
13842
13886
  active = false,
13843
13887
  size = 'default',
13844
- renderItem = noop,
13888
+ renderItem,
13845
13889
  className,
13846
13890
  children,
13847
13891
  header,
@@ -13853,7 +13897,7 @@ function InternalList(props, ref) {
13853
13897
  var items;
13854
13898
 
13855
13899
  if (dataSource && dataSource.length > 0) {
13856
- items = dataSource.map((item, index) => renderItem(item, index));
13900
+ items = dataSource.map((item, index) => renderItem && renderItem(item, index));
13857
13901
  } else {
13858
13902
  items = children;
13859
13903
  }