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