@easyv/react-components 0.2.2 → 0.2.3
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/dist/Radio/index.d.ts +1 -1
- package/dist/Radio/index.js +3 -2
- package/package.json +1 -1
package/dist/Radio/index.d.ts
CHANGED
|
@@ -5,5 +5,5 @@ declare namespace XRadio {
|
|
|
5
5
|
var Group: typeof XRadioGroup;
|
|
6
6
|
}
|
|
7
7
|
export default XRadio;
|
|
8
|
-
declare function XRadioGroup({ buttonStyle, block, ...props }: RadioGroupProps): import("react/jsx-runtime").JSX.Element;
|
|
8
|
+
declare function XRadioGroup({ buttonStyle, block, className, ...props }: RadioGroupProps): import("react/jsx-runtime").JSX.Element;
|
|
9
9
|
export type * from './interface';
|
package/dist/Radio/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
var _excluded = ["buttonStyle", "block"];
|
|
1
|
+
var _excluded = ["buttonStyle", "block", "className"];
|
|
2
2
|
function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
|
|
3
3
|
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; }
|
|
4
4
|
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; }
|
|
@@ -19,9 +19,10 @@ function XRadioGroup(_ref) {
|
|
|
19
19
|
var _ref$buttonStyle = _ref.buttonStyle,
|
|
20
20
|
buttonStyle = _ref$buttonStyle === void 0 ? 'transparent' : _ref$buttonStyle,
|
|
21
21
|
block = _ref.block,
|
|
22
|
+
className = _ref.className,
|
|
22
23
|
props = _objectWithoutProperties(_ref, _excluded);
|
|
23
24
|
return /*#__PURE__*/_jsx(Radio.Group, _objectSpread({
|
|
24
|
-
className: classNames(
|
|
25
|
+
className: classNames(className, "arco-radio-button-".concat(buttonStyle), {
|
|
25
26
|
'arco-radio-button-block': block
|
|
26
27
|
})
|
|
27
28
|
}, props));
|