dhre-ui-kit 0.0.211 → 0.0.213
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.d.ts +1 -0
- package/lib/index.js +3 -3
- package/lib/index.js.map +1 -1
- package/lib/index.mjs +3 -3
- package/lib/index.mjs.map +1 -1
- package/package.json +1 -1
package/lib/index.d.ts
CHANGED
|
@@ -1110,6 +1110,7 @@ interface RadioButtonGroupProps {
|
|
|
1110
1110
|
onSelect: (item: RadioButtonItem) => void;
|
|
1111
1111
|
containerStyle?: ViewStyle;
|
|
1112
1112
|
labelStyle?: ViewStyle;
|
|
1113
|
+
optionContainerStyle?: ViewStyle;
|
|
1113
1114
|
}
|
|
1114
1115
|
|
|
1115
1116
|
declare const RadioButtonGroup: React$1.FC<RadioButtonGroupProps>;
|
package/lib/index.js
CHANGED
|
@@ -2256,7 +2256,7 @@ const styles$j = reactNative.StyleSheet.create({
|
|
|
2256
2256
|
flexDirection: "row",
|
|
2257
2257
|
justifyContent: "space-between",
|
|
2258
2258
|
paddingHorizontal: horizontalScale(16),
|
|
2259
|
-
paddingTop: verticalScale(
|
|
2259
|
+
paddingTop: reactNative.Platform.OS === "ios" ? verticalScale(60) : verticalScale(44),
|
|
2260
2260
|
paddingBottom: verticalScale(16),
|
|
2261
2261
|
borderBottomWidth: 1
|
|
2262
2262
|
},
|
|
@@ -4746,7 +4746,7 @@ const styles = reactNative.StyleSheet.create({
|
|
|
4746
4746
|
}
|
|
4747
4747
|
});
|
|
4748
4748
|
|
|
4749
|
-
const RadioButtonGroup = ({ data, onSelect, containerStyle, labelStyle }) => {
|
|
4749
|
+
const RadioButtonGroup = ({ data, onSelect, containerStyle, labelStyle, optionContainerStyle }) => {
|
|
4750
4750
|
const [selectedOption, setSelectedOption] = React.useState(data[0]?.value);
|
|
4751
4751
|
const handleSelect = (item) => {
|
|
4752
4752
|
setSelectedOption(item.value);
|
|
@@ -4756,7 +4756,7 @@ const RadioButtonGroup = ({ data, onSelect, containerStyle, labelStyle }) => {
|
|
|
4756
4756
|
reactNative.TouchableOpacity,
|
|
4757
4757
|
{
|
|
4758
4758
|
key: item.value,
|
|
4759
|
-
style: styles.optionContainer,
|
|
4759
|
+
style: [styles.optionContainer, optionContainerStyle],
|
|
4760
4760
|
onPress: () => handleSelect(item)
|
|
4761
4761
|
},
|
|
4762
4762
|
/* @__PURE__ */ React__default["default"].createElement(
|