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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "sapo-components-ui-rn",
3
- "version": "1.1.21",
3
+ "version": "1.1.22",
4
4
  "description": "React Native UI Components Library",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.esm.js",
@@ -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
- <Icon
71
+ <SvgIcon
72
72
  name={isActive ? "IconCheckboxActive" : "IconCheckbox"}
73
- size={iconSize}
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
- <Icon
59
- name={
60
- disabled
61
- ? "IconRadioDisable"
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>