@sheinx/base 3.1.1 → 3.1.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.
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"button.d.ts","sourceRoot":"","sources":["button.tsx"],"names":[],"mappings":";AAIA,OAAO,EAAiB,WAAW,EAAE,MAAM,eAAe,CAAC;AAI3D,QAAA,MAAM,MAAM;YAAW,WAAW;;
|
|
1
|
+
{"version":3,"file":"button.d.ts","sourceRoot":"","sources":["button.tsx"],"names":[],"mappings":";AAIA,OAAO,EAAiB,WAAW,EAAE,MAAM,eAAe,CAAC;AAI3D,QAAA,MAAM,MAAM;YAAW,WAAW;;CAmHjC,CAAC;AAIF,eAAe,MAAM,CAAC"}
|
package/cjs/button/button.js
CHANGED
|
@@ -25,7 +25,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
|
|
|
25
25
|
function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
|
|
26
26
|
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; }
|
|
27
27
|
var Button = function Button(props) {
|
|
28
|
-
var _jssStyle$button;
|
|
28
|
+
var _jssStyle$button, _React$Children$map;
|
|
29
29
|
var jssStyle = props.jssStyle,
|
|
30
30
|
className = props.className,
|
|
31
31
|
style = props.style,
|
|
@@ -81,8 +81,11 @@ var Button = function Button(props) {
|
|
|
81
81
|
}
|
|
82
82
|
return 12;
|
|
83
83
|
};
|
|
84
|
-
var childrenEl = _react.default.Children.map(getSpaceChildren(children, space), function (item) {
|
|
84
|
+
var childrenEl = (_React$Children$map = _react.default.Children.map(getSpaceChildren(children, space), function (item) {
|
|
85
85
|
if (loading && /*#__PURE__*/(0, _react.isValidElement)(item) && item.type.isShineoutIcon) return null;
|
|
86
|
+
return item;
|
|
87
|
+
})) === null || _React$Children$map === void 0 ? void 0 : _React$Children$map.filter(function (item) {
|
|
88
|
+
return item !== null;
|
|
86
89
|
});
|
|
87
90
|
var buttonInnerEl = childrenEl;
|
|
88
91
|
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"button.d.ts","sourceRoot":"","sources":["button.tsx"],"names":[],"mappings":";AAIA,OAAO,EAAiB,WAAW,EAAE,MAAM,eAAe,CAAC;AAI3D,QAAA,MAAM,MAAM;YAAW,WAAW;;
|
|
1
|
+
{"version":3,"file":"button.d.ts","sourceRoot":"","sources":["button.tsx"],"names":[],"mappings":";AAIA,OAAO,EAAiB,WAAW,EAAE,MAAM,eAAe,CAAC;AAI3D,QAAA,MAAM,MAAM;YAAW,WAAW;;CAmHjC,CAAC;AAIF,eAAe,MAAM,CAAC"}
|
package/esm/button/button.js
CHANGED
|
@@ -17,7 +17,7 @@ import Spin from "../spin";
|
|
|
17
17
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
18
18
|
import { jsxs as _jsxs } from "react/jsx-runtime";
|
|
19
19
|
var Button = function Button(props) {
|
|
20
|
-
var _jssStyle$button;
|
|
20
|
+
var _jssStyle$button, _React$Children$map;
|
|
21
21
|
var jssStyle = props.jssStyle,
|
|
22
22
|
className = props.className,
|
|
23
23
|
style = props.style,
|
|
@@ -73,8 +73,11 @@ var Button = function Button(props) {
|
|
|
73
73
|
}
|
|
74
74
|
return 12;
|
|
75
75
|
};
|
|
76
|
-
var childrenEl = React.Children.map(getSpaceChildren(children, space), function (item) {
|
|
76
|
+
var childrenEl = (_React$Children$map = React.Children.map(getSpaceChildren(children, space), function (item) {
|
|
77
77
|
if (loading && /*#__PURE__*/isValidElement(item) && item.type.isShineoutIcon) return null;
|
|
78
|
+
return item;
|
|
79
|
+
})) === null || _React$Children$map === void 0 ? void 0 : _React$Children$map.filter(function (item) {
|
|
80
|
+
return item !== null;
|
|
78
81
|
});
|
|
79
82
|
var buttonInnerEl = childrenEl;
|
|
80
83
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sheinx/base",
|
|
3
|
-
"version": "3.1.
|
|
3
|
+
"version": "3.1.2",
|
|
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.
|
|
13
|
+
"@sheinx/hooks": "3.1.2",
|
|
14
14
|
"immer": "^10.0.0",
|
|
15
15
|
"classnames": "^2.0.0",
|
|
16
16
|
"@shined/reactive": "^0.1.2"
|