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.mjs
CHANGED
|
@@ -948,14 +948,20 @@ const Checkbox = ({
|
|
|
948
948
|
onCheck && onCheck(!checked);
|
|
949
949
|
};
|
|
950
950
|
return /* @__PURE__ */ React.createElement(View, { testID, style: containerStyle }, /* @__PURE__ */ React.createElement(
|
|
951
|
-
|
|
951
|
+
View,
|
|
952
952
|
{
|
|
953
|
-
testID: "Checkbox-Press",
|
|
954
|
-
onPress: handlePress,
|
|
955
|
-
disabled: disable,
|
|
956
953
|
style: styles$w.directionStyle
|
|
957
954
|
},
|
|
958
|
-
/* @__PURE__ */ React.createElement(
|
|
955
|
+
/* @__PURE__ */ React.createElement(
|
|
956
|
+
Pressable,
|
|
957
|
+
{
|
|
958
|
+
testID: "Checkbox-Press",
|
|
959
|
+
onPress: handlePress,
|
|
960
|
+
disabled: disable,
|
|
961
|
+
style: styles$w.checkboxContainer
|
|
962
|
+
},
|
|
963
|
+
React.cloneElement(checked ? checkedIcon : uncheckedIcon)
|
|
964
|
+
),
|
|
959
965
|
/* @__PURE__ */ React.createElement(
|
|
960
966
|
CustomTypography,
|
|
961
967
|
{
|
|
@@ -4655,7 +4661,7 @@ const styles = StyleSheet.create({
|
|
|
4655
4661
|
});
|
|
4656
4662
|
|
|
4657
4663
|
const RadioButtonGroup = ({ data, onSelect, containerStyle, labelStyle }) => {
|
|
4658
|
-
const [selectedOption, setSelectedOption] = useState(
|
|
4664
|
+
const [selectedOption, setSelectedOption] = useState(data[0]?.value);
|
|
4659
4665
|
const handleSelect = (item) => {
|
|
4660
4666
|
setSelectedOption(item.value);
|
|
4661
4667
|
onSelect(item);
|