sapo-components-ui-rn 1.0.40 → 1.0.42
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/dist/index.esm.js +24 -20
- package/dist/index.esm.js.map +1 -1
- package/dist/index.js +24 -20
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
- package/src/components/Tag/index.tsx +57 -52
package/dist/index.esm.js
CHANGED
|
@@ -6846,26 +6846,30 @@ var Tag = function (_a) {
|
|
|
6846
6846
|
useEffect(function () {
|
|
6847
6847
|
setActive(isActive);
|
|
6848
6848
|
}, [isActive]);
|
|
6849
|
-
return (React__default.createElement(View, { row: true
|
|
6850
|
-
|
|
6851
|
-
|
|
6852
|
-
|
|
6853
|
-
|
|
6854
|
-
|
|
6855
|
-
|
|
6856
|
-
|
|
6857
|
-
|
|
6858
|
-
|
|
6859
|
-
|
|
6860
|
-
React__default.createElement(
|
|
6861
|
-
|
|
6862
|
-
|
|
6863
|
-
|
|
6864
|
-
|
|
6865
|
-
|
|
6866
|
-
|
|
6867
|
-
|
|
6868
|
-
|
|
6849
|
+
return (React__default.createElement(View, { row: true },
|
|
6850
|
+
React__default.createElement(View, { row: true, height: height, disabled: disabled, paddingHorizontal: CONSTANTS.SPACE_12, paddingVertical: CONSTANTS.SPACE_8, borderRadius: borderRadius, center: true, style: [
|
|
6851
|
+
disabled && {
|
|
6852
|
+
backgroundColor: colors.surfaceSecondaryDefault,
|
|
6853
|
+
borderColor: colors.surfaceSecondaryDefault,
|
|
6854
|
+
},
|
|
6855
|
+
style,
|
|
6856
|
+
], onPress: handlePressTag, backgroundColor: active
|
|
6857
|
+
? colors.surfaceBrandInversePressed
|
|
6858
|
+
: colors.surfaceBrandInverseDefault },
|
|
6859
|
+
leftIcon && React__default.createElement(View, { paddingRight: CONSTANTS.SPACE_4 }, leftIcon),
|
|
6860
|
+
React__default.createElement(View, null,
|
|
6861
|
+
React__default.createElement(Text$1, { size: 14, numberOfLines: numberOfLines, ellipsizeMode: ellipsizeMode, style: [
|
|
6862
|
+
styles.textMedium,
|
|
6863
|
+
{
|
|
6864
|
+
lineHeight: 16,
|
|
6865
|
+
},
|
|
6866
|
+
disabled && {
|
|
6867
|
+
color: colors.textSecondary,
|
|
6868
|
+
},
|
|
6869
|
+
textStyle,
|
|
6870
|
+
] }, title)),
|
|
6871
|
+
rightIcon ? (React__default.createElement(View, { paddingLeft: CONSTANTS.SPACE_4 }, rightIcon)) : hideRightIcon ? (React__default.createElement(View, null)) : (React__default.createElement(View, { paddingLeft: CONSTANTS.SPACE_4 },
|
|
6872
|
+
React__default.createElement(Icon$1, { name: "IconClose", type: "Svg", size: 20, color: colors.iconBrandDefault }))))));
|
|
6869
6873
|
};
|
|
6870
6874
|
var styles = StyleSheet.create(__assign({}, containerStyles));
|
|
6871
6875
|
|