@sheinx/base 3.9.10-beta.4 → 3.9.10-beta.6

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;AAO3D,QAAA,MAAM,MAAM;YAAW,WAAW;;CA6HjC,CAAC;AAIF,eAAe,MAAM,CAAC"}
1
+ {"version":3,"file":"button.d.ts","sourceRoot":"","sources":["button.tsx"],"names":[],"mappings":"AAIA,OAAO,EAAiB,WAAW,EAAE,MAAM,eAAe,CAAC;AAO3D,QAAA,MAAM,MAAM;YAAW,WAAW;;CAmHjC,CAAC;AAIF,eAAe,MAAM,CAAC"}
@@ -79,15 +79,6 @@ var Button = function Button(props) {
79
79
  var htmlType = rootProps.htmlType,
80
80
  onRef = rootProps.onRef,
81
81
  buttonProps = _objectWithoutProperties(rootProps, _excluded2);
82
- var getSpinSize = function getSpinSize() {
83
- if (size === 'small') {
84
- return 10;
85
- }
86
- if (size === 'large') {
87
- return 14;
88
- }
89
- return 12;
90
- };
91
82
  var childrenEl = (_React$Children$map = _react.default.Children.map(getSpaceChildren(children, space), function (item, index) {
92
83
  // 仅隐藏前置的icon
93
84
  if (loading && index === 0 && /*#__PURE__*/(0, _react.isValidElement)(item) && item.type.isShineoutIcon) return null;
@@ -104,7 +95,7 @@ var Button = function Button(props) {
104
95
  var loadingEl = /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
105
96
  className: buttonStyle.spin,
106
97
  children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_spin.default, {
107
- size: getSpinSize(),
98
+ size: '1em',
108
99
  jssStyle: jssStyle,
109
100
  name: "ring",
110
101
  ignoreConfig: true
@@ -1 +1 @@
1
- {"version":3,"file":"spins.d.ts","sourceRoot":"","sources":["spins.tsx"],"names":[],"mappings":"AACA,OAAO,EAAgC,SAAS,EAAE,MAAM,aAAa,CAAC;;;;;;;;;;;;;;;;AAmOtE,wBAcE"}
1
+ {"version":3,"file":"spins.d.ts","sourceRoot":"","sources":["spins.tsx"],"names":[],"mappings":"AACA,OAAO,EAAgC,SAAS,EAAE,MAAM,aAAa,CAAC;;;;;;;;;;;;;;;;AAkOtE,wBAcE"}
package/cjs/spin/spins.js CHANGED
@@ -210,8 +210,7 @@ var Ring = function Ring(props) {
210
210
  borderWidth: value / 10 + unit,
211
211
  borderLeftColor: color,
212
212
  borderRightColor: color,
213
- borderBottomColor: color,
214
- fontSize: value / 10 + unit
213
+ borderBottomColor: color
215
214
  });
216
215
  return /*#__PURE__*/(0, _jsxRuntime.jsx)(_base.default, _objectSpread(_objectSpread({}, props), {}, {
217
216
  count: 0,
@@ -1 +1 @@
1
- {"version":3,"file":"button.d.ts","sourceRoot":"","sources":["button.tsx"],"names":[],"mappings":"AAIA,OAAO,EAAiB,WAAW,EAAE,MAAM,eAAe,CAAC;AAO3D,QAAA,MAAM,MAAM;YAAW,WAAW;;CA6HjC,CAAC;AAIF,eAAe,MAAM,CAAC"}
1
+ {"version":3,"file":"button.d.ts","sourceRoot":"","sources":["button.tsx"],"names":[],"mappings":"AAIA,OAAO,EAAiB,WAAW,EAAE,MAAM,eAAe,CAAC;AAO3D,QAAA,MAAM,MAAM;YAAW,WAAW;;CAmHjC,CAAC;AAIF,eAAe,MAAM,CAAC"}
@@ -72,15 +72,6 @@ var Button = function Button(props) {
72
72
  var htmlType = rootProps.htmlType,
73
73
  onRef = rootProps.onRef,
74
74
  buttonProps = _objectWithoutProperties(rootProps, _excluded2);
75
- var getSpinSize = function getSpinSize() {
76
- if (size === 'small') {
77
- return 10;
78
- }
79
- if (size === 'large') {
80
- return 14;
81
- }
82
- return 12;
83
- };
84
75
  var childrenEl = (_React$Children$map = React.Children.map(getSpaceChildren(children, space), function (item, index) {
85
76
  // 仅隐藏前置的icon
86
77
  if (loading && index === 0 && /*#__PURE__*/isValidElement(item) && item.type.isShineoutIcon) return null;
@@ -97,7 +88,7 @@ var Button = function Button(props) {
97
88
  var loadingEl = /*#__PURE__*/_jsx("div", {
98
89
  className: buttonStyle.spin,
99
90
  children: /*#__PURE__*/_jsx(Spin, {
100
- size: getSpinSize(),
91
+ size: '1em',
101
92
  jssStyle: jssStyle,
102
93
  name: "ring",
103
94
  ignoreConfig: true
@@ -1 +1 @@
1
- {"version":3,"file":"spins.d.ts","sourceRoot":"","sources":["spins.tsx"],"names":[],"mappings":"AACA,OAAO,EAAgC,SAAS,EAAE,MAAM,aAAa,CAAC;;;;;;;;;;;;;;;;AAmOtE,wBAcE"}
1
+ {"version":3,"file":"spins.d.ts","sourceRoot":"","sources":["spins.tsx"],"names":[],"mappings":"AACA,OAAO,EAAgC,SAAS,EAAE,MAAM,aAAa,CAAC;;;;;;;;;;;;;;;;AAkOtE,wBAcE"}
package/esm/spin/spins.js CHANGED
@@ -203,8 +203,7 @@ var Ring = function Ring(props) {
203
203
  borderWidth: value / 10 + unit,
204
204
  borderLeftColor: color,
205
205
  borderRightColor: color,
206
- borderBottomColor: color,
207
- fontSize: value / 10 + unit
206
+ borderBottomColor: color
208
207
  });
209
208
  return /*#__PURE__*/_jsx(BaseSpin, _objectSpread(_objectSpread({}, props), {}, {
210
209
  count: 0,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sheinx/base",
3
- "version": "3.9.10-beta.4",
3
+ "version": "3.9.10-beta.6",
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.9.10-beta.4",
13
+ "@sheinx/hooks": "3.9.10-beta.6",
14
14
  "immer": "^10.0.0",
15
15
  "classnames": "^2.0.0",
16
16
  "@shined/reactive": "^0.3.3"