sapo-components-ui-rn 1.1.21 → 1.1.22
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/package.json
CHANGED
|
@@ -6,7 +6,7 @@ import Text from "../Text";
|
|
|
6
6
|
import { useInternalTheme } from "../../core/theming";
|
|
7
7
|
import containerStyles from "../../theme/container-styles";
|
|
8
8
|
import Icon from "../Icon";
|
|
9
|
-
|
|
9
|
+
import SvgIcon from "../IconSvg";
|
|
10
10
|
interface CheckboxProps {
|
|
11
11
|
style?: StyleProp<ViewStyle>;
|
|
12
12
|
content: string;
|
|
@@ -68,9 +68,10 @@ const Checkbox = ({
|
|
|
68
68
|
<View paddingRight={CONSTANTS.SPACE_8}>{leftIcon}</View>
|
|
69
69
|
) : (
|
|
70
70
|
<View paddingRight={CONSTANTS.SPACE_8}>
|
|
71
|
-
<
|
|
71
|
+
<SvgIcon
|
|
72
72
|
name={isActive ? "IconCheckboxActive" : "IconCheckbox"}
|
|
73
|
-
|
|
73
|
+
width={iconSize}
|
|
74
|
+
height={iconSize}
|
|
74
75
|
color={checkboxColor}
|
|
75
76
|
/>
|
|
76
77
|
</View>
|
|
@@ -6,6 +6,7 @@ import Text from "../Text";
|
|
|
6
6
|
import { useInternalTheme } from "../../core/theming";
|
|
7
7
|
import containerStyles from "../../theme/container-styles";
|
|
8
8
|
import Icon from "../Icon";
|
|
9
|
+
import SvgIcon from "../IconSvg";
|
|
9
10
|
|
|
10
11
|
interface RadioButtonProps {
|
|
11
12
|
style?: StyleProp<ViewStyle>;
|
|
@@ -55,15 +56,10 @@ const RadioButton = ({
|
|
|
55
56
|
<View paddingRight={CONSTANTS.SPACE_8}>{leftIcon}</View>
|
|
56
57
|
) : (
|
|
57
58
|
<View paddingRight={CONSTANTS.SPACE_8}>
|
|
58
|
-
<
|
|
59
|
-
name={
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
: checked
|
|
63
|
-
? "IconRadioActive"
|
|
64
|
-
: "IconRadio"
|
|
65
|
-
}
|
|
66
|
-
size={24}
|
|
59
|
+
<SvgIcon
|
|
60
|
+
name={checked ? "IconRadioActive" : "IconRadio"}
|
|
61
|
+
width={24}
|
|
62
|
+
height={24}
|
|
67
63
|
color={getColorCheckbox}
|
|
68
64
|
/>
|
|
69
65
|
</View>
|