@sheinx/base 3.1.18 → 3.1.20

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.
@@ -35,7 +35,7 @@ var processEnv = typeof process !== 'undefined' ? (_process = process) === null
35
35
  var config = exports.config = {
36
36
  prefix: 'soui',
37
37
  locale: processEnv.LOCALE || 'en-US',
38
- delay: 0,
38
+ delay: 400,
39
39
  trim: undefined,
40
40
  spin: 'ring',
41
41
  direction: 'ltr',
@@ -169,10 +169,7 @@ var _default = exports.default = function _default(props) {
169
169
  style: fixedStyle,
170
170
  dir: config.direction,
171
171
  children: [showSelectAll && /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
172
- style: {
173
- lineHeight: 1,
174
- verticalAlign: 'middle'
175
- },
172
+ className: tableClasses === null || tableClasses === void 0 ? void 0 : tableClasses.iconWrapper,
176
173
  children: props.radio ? null : /*#__PURE__*/(0, _jsxRuntime.jsx)(_checkbox.default, {
177
174
  disabled: props.disabled === true,
178
175
  checked: props.datum.getCheckedStatus(props.treeCheckAll ? props.treeColumnsName : undefined),
@@ -1 +1 @@
1
- {"version":3,"file":"tag.d.ts","sourceRoot":"","sources":["tag.tsx"],"names":[],"mappings":";AACA,OAAO,EAAc,QAAQ,EAAE,MAAM,YAAY,CAAC;AAOlD,QAAA,MAAM,GAAG;YAAW,QAAQ;;CAgI3B,CAAC;AAIF,eAAe,GAAG,CAAC"}
1
+ {"version":3,"file":"tag.d.ts","sourceRoot":"","sources":["tag.tsx"],"names":[],"mappings":";AACA,OAAO,EAAc,QAAQ,EAAE,MAAM,YAAY,CAAC;AAQlD,QAAA,MAAM,GAAG;YAAW,QAAQ;;CAgI3B,CAAC;AAIF,eAAe,GAAG,CAAC"}
package/cjs/tag/tag.js CHANGED
@@ -7,6 +7,7 @@ Object.defineProperty(exports, "__esModule", {
7
7
  exports.default = void 0;
8
8
  var _classnames = _interopRequireDefault(require("classnames"));
9
9
  var _useTag2 = _interopRequireDefault(require("./use-tag"));
10
+ var _hooks = require("@sheinx/hooks");
10
11
  var _tagInput = _interopRequireDefault(require("./tag-input"));
11
12
  var _jsxRuntime = require("react/jsx-runtime");
12
13
  var _excluded = ["jssStyle", "className", "type", "color", "size", "disabled", "mode", "shape", "children", "onClick", "onClose", "style", "backgroundColor", "inlineStyle", "onKeyUp", "onCompleted", "onEnterPress", "closable"];
@@ -79,15 +80,15 @@ var Tag = function Tag(props) {
79
80
  if (onClose) {
80
81
  return /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
81
82
  className: (0, _classnames.default)(tagStyle.wrapper, inlineStyle && tagStyle.inline),
82
- children: /*#__PURE__*/(0, _jsxRuntime.jsx)("span", {
83
+ children: /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
83
84
  className: tagStyle.container,
84
- children: children
85
+ children: _hooks.util.wrapSpan(children)
85
86
  })
86
87
  });
87
88
  }
88
- return /*#__PURE__*/(0, _jsxRuntime.jsx)("span", {
89
+ return /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
89
90
  className: (0, _classnames.default)(tagStyle.wrapper, inlineStyle && tagStyle.inline),
90
- children: children
91
+ children: _hooks.util.wrapSpan(children)
91
92
  });
92
93
  };
93
94
  var renderInput = function renderInput() {
@@ -1 +1 @@
1
- {"version":3,"file":"transfer-list.d.ts","sourceRoot":"","sources":["transfer-list.tsx"],"names":[],"mappings":";AACA,OAAO,EAAQ,YAAY,EAAE,MAAM,eAAe,CAAC;AAGnD,OAAO,EAAE,iBAAiB,EAAE,MAAM,sBAAsB,CAAC;AASzD,QAAA,MAAM,YAAY,oGAgMjB,CAAC;AAEF,eAAe,YAAY,CAAC"}
1
+ {"version":3,"file":"transfer-list.d.ts","sourceRoot":"","sources":["transfer-list.tsx"],"names":[],"mappings":";AACA,OAAO,EAAQ,YAAY,EAAE,MAAM,eAAe,CAAC;AAGnD,OAAO,EAAE,iBAAiB,EAAE,MAAM,sBAAsB,CAAC;AASzD,QAAA,MAAM,YAAY,oGAoMjB,CAAC;AAEF,eAAe,YAAY,CAAC"}
@@ -157,7 +157,13 @@ var TransferList = function TransferList(props) {
157
157
  value: value,
158
158
  onSelected: onSelectChange
159
159
  });
160
- if (custom) return custom;
160
+ if (custom) return /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
161
+ className: listClass,
162
+ style: _objectSpread(_objectSpread({}, listStyle), {}, {
163
+ height: listHeight
164
+ }),
165
+ children: custom
166
+ });
161
167
  }
162
168
  if (data && data.length === 0) {
163
169
  return /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
@@ -158,7 +158,7 @@ var Transfer = function Transfer(props) {
158
158
  simple: simple,
159
159
  disabled: disabled,
160
160
  value: listValue,
161
- selectedKeys: selectedKeys,
161
+ selectedKeys: listValue,
162
162
  itemClass: itemClass,
163
163
  customRender: children,
164
164
  searchPlaceholder: placeholder,
@@ -13,7 +13,7 @@ var processEnv = typeof process !== 'undefined' ? (_process = process) === null
13
13
  export var config = {
14
14
  prefix: 'soui',
15
15
  locale: processEnv.LOCALE || 'en-US',
16
- delay: 0,
16
+ delay: 400,
17
17
  trim: undefined,
18
18
  spin: 'ring',
19
19
  direction: 'ltr',
@@ -162,10 +162,7 @@ export default (function (props) {
162
162
  style: fixedStyle,
163
163
  dir: config.direction,
164
164
  children: [showSelectAll && /*#__PURE__*/_jsx("div", {
165
- style: {
166
- lineHeight: 1,
167
- verticalAlign: 'middle'
168
- },
165
+ className: tableClasses === null || tableClasses === void 0 ? void 0 : tableClasses.iconWrapper,
169
166
  children: props.radio ? null : /*#__PURE__*/_jsx(Checkbox, {
170
167
  disabled: props.disabled === true,
171
168
  checked: props.datum.getCheckedStatus(props.treeCheckAll ? props.treeColumnsName : undefined),
@@ -1 +1 @@
1
- {"version":3,"file":"tag.d.ts","sourceRoot":"","sources":["tag.tsx"],"names":[],"mappings":";AACA,OAAO,EAAc,QAAQ,EAAE,MAAM,YAAY,CAAC;AAOlD,QAAA,MAAM,GAAG;YAAW,QAAQ;;CAgI3B,CAAC;AAIF,eAAe,GAAG,CAAC"}
1
+ {"version":3,"file":"tag.d.ts","sourceRoot":"","sources":["tag.tsx"],"names":[],"mappings":";AACA,OAAO,EAAc,QAAQ,EAAE,MAAM,YAAY,CAAC;AAQlD,QAAA,MAAM,GAAG;YAAW,QAAQ;;CAgI3B,CAAC;AAIF,eAAe,GAAG,CAAC"}
package/esm/tag/tag.js CHANGED
@@ -9,6 +9,7 @@ function _objectWithoutProperties(source, excluded) { if (source == null) return
9
9
  function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
10
10
  import classNames from 'classnames';
11
11
  import useTag from "./use-tag";
12
+ import { util } from '@sheinx/hooks';
12
13
  import TagInput from "./tag-input";
13
14
  import { jsx as _jsx } from "react/jsx-runtime";
14
15
  import { jsxs as _jsxs } from "react/jsx-runtime";
@@ -73,15 +74,15 @@ var Tag = function Tag(props) {
73
74
  if (onClose) {
74
75
  return /*#__PURE__*/_jsx("div", {
75
76
  className: classNames(tagStyle.wrapper, inlineStyle && tagStyle.inline),
76
- children: /*#__PURE__*/_jsx("span", {
77
+ children: /*#__PURE__*/_jsx("div", {
77
78
  className: tagStyle.container,
78
- children: children
79
+ children: util.wrapSpan(children)
79
80
  })
80
81
  });
81
82
  }
82
- return /*#__PURE__*/_jsx("span", {
83
+ return /*#__PURE__*/_jsx("div", {
83
84
  className: classNames(tagStyle.wrapper, inlineStyle && tagStyle.inline),
84
- children: children
85
+ children: util.wrapSpan(children)
85
86
  });
86
87
  };
87
88
  var renderInput = function renderInput() {
@@ -1 +1 @@
1
- {"version":3,"file":"transfer-list.d.ts","sourceRoot":"","sources":["transfer-list.tsx"],"names":[],"mappings":";AACA,OAAO,EAAQ,YAAY,EAAE,MAAM,eAAe,CAAC;AAGnD,OAAO,EAAE,iBAAiB,EAAE,MAAM,sBAAsB,CAAC;AASzD,QAAA,MAAM,YAAY,oGAgMjB,CAAC;AAEF,eAAe,YAAY,CAAC"}
1
+ {"version":3,"file":"transfer-list.d.ts","sourceRoot":"","sources":["transfer-list.tsx"],"names":[],"mappings":";AACA,OAAO,EAAQ,YAAY,EAAE,MAAM,eAAe,CAAC;AAGnD,OAAO,EAAE,iBAAiB,EAAE,MAAM,sBAAsB,CAAC;AASzD,QAAA,MAAM,YAAY,oGAoMjB,CAAC;AAEF,eAAe,YAAY,CAAC"}
@@ -151,7 +151,13 @@ var TransferList = function TransferList(props) {
151
151
  value: value,
152
152
  onSelected: onSelectChange
153
153
  });
154
- if (custom) return custom;
154
+ if (custom) return /*#__PURE__*/_jsx("div", {
155
+ className: listClass,
156
+ style: _objectSpread(_objectSpread({}, listStyle), {}, {
157
+ height: listHeight
158
+ }),
159
+ children: custom
160
+ });
155
161
  }
156
162
  if (data && data.length === 0) {
157
163
  return /*#__PURE__*/_jsx("div", {
@@ -152,7 +152,7 @@ var Transfer = function Transfer(props) {
152
152
  simple: simple,
153
153
  disabled: disabled,
154
154
  value: listValue,
155
- selectedKeys: selectedKeys,
155
+ selectedKeys: listValue,
156
156
  itemClass: itemClass,
157
157
  customRender: children,
158
158
  searchPlaceholder: placeholder,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sheinx/base",
3
- "version": "3.1.18",
3
+ "version": "3.1.20",
4
4
  "description": "",
5
5
  "keywords": [],
6
6
  "license": "MIT",
@@ -10,7 +10,7 @@
10
10
  "module": "./esm/index.js",
11
11
  "typings": "./cjs/index.d.ts",
12
12
  "dependencies": {
13
- "@sheinx/hooks": "3.1.18",
13
+ "@sheinx/hooks": "3.1.20",
14
14
  "immer": "^10.0.0",
15
15
  "classnames": "^2.0.0",
16
16
  "@shined/reactive": "^0.1.3-alpha.0"