dhre-ui-kit 0.0.194 → 0.0.196
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/lib/index.js +12 -6
- package/lib/index.js.map +1 -1
- package/lib/index.mjs +12 -6
- package/lib/index.mjs.map +1 -1
- package/package.json +1 -1
package/lib/index.js
CHANGED
|
@@ -981,14 +981,20 @@ const Checkbox = ({
|
|
|
981
981
|
onCheck && onCheck(!checked);
|
|
982
982
|
};
|
|
983
983
|
return /* @__PURE__ */ React__default["default"].createElement(reactNative.View, { testID, style: containerStyle }, /* @__PURE__ */ React__default["default"].createElement(
|
|
984
|
-
reactNative.
|
|
984
|
+
reactNative.View,
|
|
985
985
|
{
|
|
986
|
-
testID: "Checkbox-Press",
|
|
987
|
-
onPress: handlePress,
|
|
988
|
-
disabled: disable,
|
|
989
986
|
style: styles$w.directionStyle
|
|
990
987
|
},
|
|
991
|
-
/* @__PURE__ */ React__default["default"].createElement(
|
|
988
|
+
/* @__PURE__ */ React__default["default"].createElement(
|
|
989
|
+
reactNative.Pressable,
|
|
990
|
+
{
|
|
991
|
+
testID: "Checkbox-Press",
|
|
992
|
+
onPress: handlePress,
|
|
993
|
+
disabled: disable,
|
|
994
|
+
style: styles$w.checkboxContainer
|
|
995
|
+
},
|
|
996
|
+
React__default["default"].cloneElement(checked ? checkedIcon : uncheckedIcon)
|
|
997
|
+
),
|
|
992
998
|
/* @__PURE__ */ React__default["default"].createElement(
|
|
993
999
|
CustomTypography,
|
|
994
1000
|
{
|
|
@@ -4688,7 +4694,7 @@ const styles = reactNative.StyleSheet.create({
|
|
|
4688
4694
|
});
|
|
4689
4695
|
|
|
4690
4696
|
const RadioButtonGroup = ({ data, onSelect, containerStyle, labelStyle }) => {
|
|
4691
|
-
const [selectedOption, setSelectedOption] = React.useState(
|
|
4697
|
+
const [selectedOption, setSelectedOption] = React.useState(data[0]?.value);
|
|
4692
4698
|
const handleSelect = (item) => {
|
|
4693
4699
|
setSelectedOption(item.value);
|
|
4694
4700
|
onSelect(item);
|