dhre-ui-kit 0.0.212 → 0.0.214
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
|
@@ -286,7 +286,7 @@ const ThemeContext = React.createContext(void 0);
|
|
|
286
286
|
const ThemeProvider = ({ children }) => {
|
|
287
287
|
const mode = reactRedux.useSelector((state) => state.theme.currentTheme);
|
|
288
288
|
const filteredTheme = Object.keys(theme).reduce((acc, key) => {
|
|
289
|
-
acc[key] = theme[key]
|
|
289
|
+
acc[key] = theme[key];
|
|
290
290
|
return acc;
|
|
291
291
|
}, {});
|
|
292
292
|
return /* @__PURE__ */ React__default["default"].createElement(ThemeContext.Provider, { value: { theme: filteredTheme, mode } }, children);
|
|
@@ -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(
|