@sinco/react 1.1.2-rc.87 → 1.1.2-rc.89

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.
package/index.esm.js CHANGED
@@ -14503,7 +14503,9 @@ var CardRadio = function CardRadio(_ref) {
14503
14503
  _ref$heightPosition = _ref.heightPosition,
14504
14504
  heightPosition = _ref$heightPosition === void 0 ? 'top' : _ref$heightPosition,
14505
14505
  _ref$color = _ref.color,
14506
- color = _ref$color === void 0 ? 'primary' : _ref$color;
14506
+ color = _ref$color === void 0 ? 'primary' : _ref$color,
14507
+ _ref$width = _ref.width,
14508
+ width = _ref$width === void 0 ? 180 : _ref$width;
14507
14509
  var _useState = useState(states === 'active'),
14508
14510
  _useState2 = _slicedToArray(_useState, 2),
14509
14511
  isChecked = _useState2[0],
@@ -14529,6 +14531,8 @@ var CardRadio = function CardRadio(_ref) {
14529
14531
  return isActive ? color === 'primary' ? '#2063A0' : '#00BCD4' : '#0000001F';
14530
14532
  };
14531
14533
  return React__default.createElement(React__default.Fragment, null, React__default.createElement(Stack$1, {
14534
+ minWidth: 160,
14535
+ width: width,
14532
14536
  "data-testid": "card-radio",
14533
14537
  padding: '8px 16px',
14534
14538
  borderRadius: 1,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sinco/react",
3
- "version": "1.1.2-rc.87",
3
+ "version": "1.1.2-rc.89",
4
4
  "description": "package for the configuration of mui react sinco",
5
5
  "private": false,
6
6
  "license": "MIT",
@@ -11,6 +11,7 @@ export interface CardRadioProps {
11
11
  slotHeader?: React.ReactNode | string;
12
12
  slotContent?: React.ReactNode | string;
13
13
  color?: RadioColors;
14
+ width?: number;
14
15
  }
15
16
  export declare const CardRadio: FC<CardRadioProps>;
16
17
  export {};