@sheinx/base 3.9.0-beta.5 → 3.9.0-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":"input-group.d.ts","sourceRoot":"","sources":["input-group.tsx"],"names":[],"mappings":"AAIA,OAAO,EAAE,eAAe,EAAE,MAAM,oBAAoB,CAAC;gCAK9B,eAAe;AAAtC,wBA0EE"}
1
+ {"version":3,"file":"input-group.d.ts","sourceRoot":"","sources":["input-group.tsx"],"names":[],"mappings":"AAIA,OAAO,EAAE,eAAe,EAAE,MAAM,oBAAoB,CAAC;gCAK9B,eAAe;AAAtC,wBAyEE"}
@@ -88,7 +88,8 @@ var _default = exports.default = function _default(props) {
88
88
  var shouldSeparate = separate !== null && separate !== void 0 ? separate : seperate;
89
89
  var rootClass = (0, _classnames.default)(className, inputStyle === null || inputStyle === void 0 ? void 0 : inputStyle.group, shouldSeparate && (inputStyle === null || inputStyle === void 0 ? void 0 : inputStyle.groupSeparate), size === 'small' && (inputStyle === null || inputStyle === void 0 ? void 0 : inputStyle.groupSmall), size === 'large' && (inputStyle === null || inputStyle === void 0 ? void 0 : inputStyle.groupLarge), !!disabled && (inputStyle === null || inputStyle === void 0 ? void 0 : inputStyle.groupDisabled), !!focus && (inputStyle === null || inputStyle === void 0 ? void 0 : inputStyle.groupFocus), (status === 'error' || error) && (inputStyle === null || inputStyle === void 0 ? void 0 : inputStyle.groupError));
90
90
  return /*#__PURE__*/(0, _jsxRuntime.jsx)("div", _objectSpread(_objectSpread({}, _hooks.util.getDataAttribute({
91
- role: shouldSeparate ? 'input-group-separate' : 'input-group'
91
+ role: shouldSeparate ? 'input-group-separate' : 'input-group',
92
+ border: props.seamless ? 'false' : undefined
92
93
  })), {}, {
93
94
  className: rootClass,
94
95
  style: _objectSpread({
@@ -104,8 +105,7 @@ var _default = exports.default = function _default(props) {
104
105
  if ( /*#__PURE__*/React.isValidElement(child)) {
105
106
  return /*#__PURE__*/(0, _react.cloneElement)(child, _objectSpread(_objectSpread({}, getProps(child)), {}, {
106
107
  disabled: child.props.disabled || disabled,
107
- size: child.props.size || size,
108
- border: props.seamless ? false : child.props.border
108
+ size: child.props.size || size
109
109
  }));
110
110
  }
111
111
  return /*#__PURE__*/(0, _jsxRuntime.jsx)("span", {
@@ -1 +1 @@
1
- {"version":3,"file":"input-group.d.ts","sourceRoot":"","sources":["input-group.tsx"],"names":[],"mappings":"AAIA,OAAO,EAAE,eAAe,EAAE,MAAM,oBAAoB,CAAC;gCAK9B,eAAe;AAAtC,wBA0EE"}
1
+ {"version":3,"file":"input-group.d.ts","sourceRoot":"","sources":["input-group.tsx"],"names":[],"mappings":"AAIA,OAAO,EAAE,eAAe,EAAE,MAAM,oBAAoB,CAAC;gCAK9B,eAAe;AAAtC,wBAyEE"}
@@ -80,7 +80,8 @@ export default (function (props) {
80
80
  var shouldSeparate = separate !== null && separate !== void 0 ? separate : seperate;
81
81
  var rootClass = classNames(className, inputStyle === null || inputStyle === void 0 ? void 0 : inputStyle.group, shouldSeparate && (inputStyle === null || inputStyle === void 0 ? void 0 : inputStyle.groupSeparate), size === 'small' && (inputStyle === null || inputStyle === void 0 ? void 0 : inputStyle.groupSmall), size === 'large' && (inputStyle === null || inputStyle === void 0 ? void 0 : inputStyle.groupLarge), !!disabled && (inputStyle === null || inputStyle === void 0 ? void 0 : inputStyle.groupDisabled), !!focus && (inputStyle === null || inputStyle === void 0 ? void 0 : inputStyle.groupFocus), (status === 'error' || error) && (inputStyle === null || inputStyle === void 0 ? void 0 : inputStyle.groupError));
82
82
  return /*#__PURE__*/_jsx("div", _objectSpread(_objectSpread({}, util.getDataAttribute({
83
- role: shouldSeparate ? 'input-group-separate' : 'input-group'
83
+ role: shouldSeparate ? 'input-group-separate' : 'input-group',
84
+ border: props.seamless ? 'false' : undefined
84
85
  })), {}, {
85
86
  className: rootClass,
86
87
  style: _objectSpread({
@@ -96,8 +97,7 @@ export default (function (props) {
96
97
  if ( /*#__PURE__*/React.isValidElement(child)) {
97
98
  return /*#__PURE__*/cloneElement(child, _objectSpread(_objectSpread({}, getProps(child)), {}, {
98
99
  disabled: child.props.disabled || disabled,
99
- size: child.props.size || size,
100
- border: props.seamless ? false : child.props.border
100
+ size: child.props.size || size
101
101
  }));
102
102
  }
103
103
  return /*#__PURE__*/_jsx("span", {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sheinx/base",
3
- "version": "3.9.0-beta.5",
3
+ "version": "3.9.0-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.0-beta.5",
13
+ "@sheinx/hooks": "3.9.0-beta.6",
14
14
  "immer": "^10.0.0",
15
15
  "classnames": "^2.0.0",
16
16
  "@shined/reactive": "^0.1.3-alpha.0"