dhre-ui-kit 0.0.322 → 0.0.323
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 +13 -3
- package/lib/index.js.map +1 -1
- package/lib/index.mjs +13 -3
- package/lib/index.mjs.map +1 -1
- package/package.json +1 -1
package/lib/index.d.ts
CHANGED
|
@@ -1164,6 +1164,7 @@ interface RadioButtonGroupProps {
|
|
|
1164
1164
|
containerStyle?: ViewStyle;
|
|
1165
1165
|
labelStyle?: ViewStyle;
|
|
1166
1166
|
optionContainerStyle?: ViewStyle;
|
|
1167
|
+
selectedValue?: string;
|
|
1167
1168
|
}
|
|
1168
1169
|
|
|
1169
1170
|
declare const RadioButtonGroup: React$1.FC<RadioButtonGroupProps>;
|
package/lib/index.js
CHANGED
|
@@ -20,6 +20,7 @@ var reactNativeElementDropdown = require('react-native-element-dropdown');
|
|
|
20
20
|
var DocumentPicker = require('react-native-document-picker');
|
|
21
21
|
var RNFS = require('react-native-fs');
|
|
22
22
|
var OTPVerify = require('react-native-otp-verify');
|
|
23
|
+
var appEnum = require('src/utils/appEnum');
|
|
23
24
|
|
|
24
25
|
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
|
|
25
26
|
|
|
@@ -5000,8 +5001,17 @@ const styles = reactNative.StyleSheet.create({
|
|
|
5000
5001
|
}
|
|
5001
5002
|
});
|
|
5002
5003
|
|
|
5003
|
-
const RadioButtonGroup = ({
|
|
5004
|
-
|
|
5004
|
+
const RadioButtonGroup = ({
|
|
5005
|
+
data,
|
|
5006
|
+
onSelect,
|
|
5007
|
+
containerStyle,
|
|
5008
|
+
labelStyle,
|
|
5009
|
+
optionContainerStyle,
|
|
5010
|
+
selectedValue
|
|
5011
|
+
}) => {
|
|
5012
|
+
const [selectedOption, setSelectedOption] = React.useState(
|
|
5013
|
+
selectedValue ?? data[0]?.value
|
|
5014
|
+
);
|
|
5005
5015
|
const handleSelect = (item) => {
|
|
5006
5016
|
setSelectedOption(item.value);
|
|
5007
5017
|
onSelect(item);
|
|
@@ -5025,7 +5035,7 @@ const RadioButtonGroup = ({ data, onSelect, containerStyle, labelStyle, optionCo
|
|
|
5025
5035
|
/* @__PURE__ */ React__default["default"].createElement(
|
|
5026
5036
|
CustomTypography,
|
|
5027
5037
|
{
|
|
5028
|
-
variant: FontStyle.L1_REGULAR,
|
|
5038
|
+
variant: appEnum.FontStyle.L1_REGULAR,
|
|
5029
5039
|
text: item.label,
|
|
5030
5040
|
style: [styles.label, labelStyle]
|
|
5031
5041
|
}
|