@true-engineering/true-react-common-ui-kit 4.0.0-alpha42 → 4.0.0-alpha43
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/components/RadioButton/RadioButton.d.ts +3 -1
- package/dist/components/RadioButton/RadioButton.styles.d.ts +2 -1
- package/dist/components/RadioButton/types.d.ts +3 -0
- package/dist/true-react-common-ui-kit.js +3 -3
- package/dist/true-react-common-ui-kit.js.map +1 -1
- package/dist/true-react-common-ui-kit.umd.cjs +3 -3
- package/dist/true-react-common-ui-kit.umd.cjs.map +1 -1
- package/package.json +1 -1
- package/src/components/RadioButton/RadioButton.stories.tsx +13 -0
- package/src/components/RadioButton/RadioButton.styles.ts +2 -1
- package/src/components/RadioButton/RadioButton.tsx +12 -5
- package/src/components/RadioButton/types.ts +4 -0
- package/src/components/TextButton/TextButton.stories.tsx +1 -1
|
@@ -28675,15 +28675,15 @@
|
|
|
28675
28675
|
return target;
|
|
28676
28676
|
}
|
|
28677
28677
|
function RadioButton(param) {
|
|
28678
|
-
var children = param.children, value = param.value, groupName = param.groupName, isChecked = param.isChecked, _param_isDisabled = param.isDisabled, isDisabled = _param_isDisabled === void 0 ? false : _param_isDisabled, _param_isInvalid = param.isInvalid, isInvalid = _param_isInvalid === void 0 ? false : _param_isInvalid, data = param.data, testId = param.testId, tweakStyles = param.tweakStyles, onChange = param.onChange;
|
|
28678
|
+
var children = param.children, value = param.value, groupName = param.groupName, size = param.size, isChecked = param.isChecked, _param_isDisabled = param.isDisabled, isDisabled = _param_isDisabled === void 0 ? false : _param_isDisabled, _param_isInvalid = param.isInvalid, isInvalid = _param_isInvalid === void 0 ? false : _param_isInvalid, data = param.data, testId = param.testId, tweakStyles = param.tweakStyles, onChange = param.onChange;
|
|
28679
28679
|
var classes = useStyles$8({
|
|
28680
28680
|
theme: tweakStyles
|
|
28681
28681
|
});
|
|
28682
28682
|
var _obj2;
|
|
28683
28683
|
return /* @__PURE__ */ jsxs("label", _object_spread_props$c(_object_spread$c({
|
|
28684
|
-
className: clsx(classes.label,
|
|
28684
|
+
className: clsx(classes.label, trueReactPlatformHelpers.isNotEmpty(size) && classes[size], _define_property$c({}, classes.isDisabled, isDisabled)),
|
|
28685
28685
|
htmlFor: "".concat(groupName, "--").concat(value)
|
|
28686
|
-
}, trueReactPlatformHelpers.
|
|
28686
|
+
}, trueReactPlatformHelpers.addDataAttributes(data, testId)), {
|
|
28687
28687
|
children: [
|
|
28688
28688
|
/* @__PURE__ */ jsx("input", {
|
|
28689
28689
|
id: "".concat(groupName, "--").concat(value),
|