sapo-components-ui-rn 1.0.39 → 1.0.40

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.0.39",
3
+ "version": "1.0.40",
4
4
  "description": "React Native UI Components Library",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.esm.js",
@@ -5,7 +5,6 @@ import { CONSTANTS } from "../../styles/themes/tokens";
5
5
  import Text from "../Text";
6
6
  import { useInternalTheme } from "../../core/theming";
7
7
  import containerStyles from "../../theme/container-styles";
8
- import SvgIcon from "../IconSvg";
9
8
  import Icon from "../Icon";
10
9
 
11
10
  interface TagProps {
@@ -53,61 +52,59 @@ const Tag = ({
53
52
  }, [isActive]);
54
53
 
55
54
  return (
56
- <View row>
57
- <View
58
- row
59
- height={height}
60
- disabled={disabled}
61
- paddingHorizontal={CONSTANTS.SPACE_12}
62
- paddingVertical={CONSTANTS.SPACE_8}
63
- borderRadius={borderRadius}
64
- center
65
- style={[
66
- disabled && {
67
- backgroundColor: colors.surfaceSecondaryDefault,
68
- borderColor: colors.surfaceSecondaryDefault,
69
- },
70
- style,
71
- ]}
72
- onPress={handlePressTag}
73
- backgroundColor={
74
- active
75
- ? colors.surfaceBrandInversePressed
76
- : colors.surfaceBrandInverseDefault
77
- }
78
- >
79
- {leftIcon && <View paddingRight={CONSTANTS.SPACE_4}>{leftIcon}</View>}
80
- <View>
81
- <Text
82
- size={14}
83
- numberOfLines={numberOfLines}
84
- ellipsizeMode={ellipsizeMode}
85
- style={[
86
- styles.textMedium,
87
- disabled && {
88
- color: colors.textSecondary,
89
- },
90
- textStyle,
91
- ]}
92
- >
93
- {title}
94
- </Text>
95
- </View>
96
- {rightIcon ? (
97
- <View paddingLeft={CONSTANTS.SPACE_4}>{rightIcon}</View>
98
- ) : hideRightIcon ? (
99
- <View />
100
- ) : (
101
- <View paddingLeft={CONSTANTS.SPACE_4}>
102
- <Icon
103
- name={"IconClose"}
104
- type="Svg"
105
- size={20}
106
- color={colors.iconBrandDefault}
107
- />
108
- </View>
109
- )}
55
+ <View
56
+ row
57
+ height={height}
58
+ disabled={disabled}
59
+ paddingHorizontal={CONSTANTS.SPACE_12}
60
+ paddingVertical={CONSTANTS.SPACE_8}
61
+ borderRadius={borderRadius}
62
+ center
63
+ style={[
64
+ disabled && {
65
+ backgroundColor: colors.surfaceSecondaryDefault,
66
+ borderColor: colors.surfaceSecondaryDefault,
67
+ },
68
+ style,
69
+ ]}
70
+ onPress={handlePressTag}
71
+ backgroundColor={
72
+ active
73
+ ? colors.surfaceBrandInversePressed
74
+ : colors.surfaceBrandInverseDefault
75
+ }
76
+ >
77
+ {leftIcon && <View paddingRight={CONSTANTS.SPACE_4}>{leftIcon}</View>}
78
+ <View>
79
+ <Text
80
+ size={14}
81
+ numberOfLines={numberOfLines}
82
+ ellipsizeMode={ellipsizeMode}
83
+ style={[
84
+ styles.textMedium,
85
+ disabled && {
86
+ color: colors.textSecondary,
87
+ },
88
+ textStyle,
89
+ ]}
90
+ >
91
+ {title}
92
+ </Text>
110
93
  </View>
94
+ {rightIcon ? (
95
+ <View paddingLeft={CONSTANTS.SPACE_4}>{rightIcon}</View>
96
+ ) : hideRightIcon ? (
97
+ <View />
98
+ ) : (
99
+ <View paddingLeft={CONSTANTS.SPACE_4}>
100
+ <Icon
101
+ name={"IconClose"}
102
+ type="Svg"
103
+ size={20}
104
+ color={colors.iconBrandDefault}
105
+ />
106
+ </View>
107
+ )}
111
108
  </View>
112
109
  );
113
110
  };