@sheinx/base 3.9.4-beta.9 → 3.9.4

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":"radio-group.d.ts","sourceRoot":"","sources":["radio-group.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,oBAAoB,CAAC;AAarD,QAAA,MAAM,KAAK,wGAuIV,CAAC;AAEF,eAAe,KAAK,CAAC"}
1
+ {"version":3,"file":"radio-group.d.ts","sourceRoot":"","sources":["radio-group.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,oBAAoB,CAAC;AAarD,QAAA,MAAM,KAAK,wGAqIV,CAAC;AAEF,eAAe,KAAK,CAAC"}
@@ -91,20 +91,17 @@ var Group = function Group(props0) {
91
91
  disabled = info.disabled,
92
92
  wrapperProps = info.wrapperProps,
93
93
  inputProps = info.inputProps;
94
+ var isOutline = button === 'outline';
94
95
  var checkedProps = {
95
- mode: button === 'outline' ? 'outline' : undefined,
96
- type: 'primary'
97
- };
98
- var noCheckedProps = {
99
- mode: button === 'outline' ? 'outline' : undefined,
100
- type: 'secondary'
96
+ mode: isOutline ? 'outline' : undefined,
97
+ type: checked ? 'primary' : 'secondary'
101
98
  };
102
99
  if (button) {
103
- return /*#__PURE__*/(0, _jsxRuntime.jsxs)(_button.default, _objectSpread(_objectSpread(_objectSpread({
100
+ return /*#__PURE__*/(0, _jsxRuntime.jsxs)(_button.default, _objectSpread(_objectSpread(_objectSpread(_objectSpread({
104
101
  jssStyle: jssStyle,
105
102
  size: size,
106
103
  disabled: disabled
107
- }, checked ? checkedProps : noCheckedProps), wrapperProps), {}, {
104
+ }, _hooks.util.getDataAttribute(_defineProperty({}, 'outline', isOutline ? 'true' : undefined))), checkedProps), wrapperProps), {}, {
108
105
  children: [/*#__PURE__*/(0, _jsxRuntime.jsx)("input", _objectSpread({
109
106
  type: "radio"
110
107
  }, inputProps)), children]
@@ -1 +1 @@
1
- {"version":3,"file":"radio-group.d.ts","sourceRoot":"","sources":["radio-group.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,oBAAoB,CAAC;AAarD,QAAA,MAAM,KAAK,wGAuIV,CAAC;AAEF,eAAe,KAAK,CAAC"}
1
+ {"version":3,"file":"radio-group.d.ts","sourceRoot":"","sources":["radio-group.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,oBAAoB,CAAC;AAarD,QAAA,MAAM,KAAK,wGAqIV,CAAC;AAEF,eAAe,KAAK,CAAC"}
@@ -83,20 +83,17 @@ var Group = function Group(props0) {
83
83
  disabled = info.disabled,
84
84
  wrapperProps = info.wrapperProps,
85
85
  inputProps = info.inputProps;
86
+ var isOutline = button === 'outline';
86
87
  var checkedProps = {
87
- mode: button === 'outline' ? 'outline' : undefined,
88
- type: 'primary'
89
- };
90
- var noCheckedProps = {
91
- mode: button === 'outline' ? 'outline' : undefined,
92
- type: 'secondary'
88
+ mode: isOutline ? 'outline' : undefined,
89
+ type: checked ? 'primary' : 'secondary'
93
90
  };
94
91
  if (button) {
95
- return /*#__PURE__*/_jsxs(Button, _objectSpread(_objectSpread(_objectSpread({
92
+ return /*#__PURE__*/_jsxs(Button, _objectSpread(_objectSpread(_objectSpread(_objectSpread({
96
93
  jssStyle: jssStyle,
97
94
  size: size,
98
95
  disabled: disabled
99
- }, checked ? checkedProps : noCheckedProps), wrapperProps), {}, {
96
+ }, util.getDataAttribute(_defineProperty({}, 'outline', isOutline ? 'true' : undefined))), checkedProps), wrapperProps), {}, {
100
97
  children: [/*#__PURE__*/_jsx("input", _objectSpread({
101
98
  type: "radio"
102
99
  }, inputProps)), children]
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sheinx/base",
3
- "version": "3.9.4-beta.9",
3
+ "version": "3.9.4",
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.4-beta.9",
13
+ "@sheinx/hooks": "3.9.4",
14
14
  "immer": "^10.0.0",
15
15
  "classnames": "^2.0.0",
16
16
  "@shined/reactive": "^0.3.3"