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.js
CHANGED
|
@@ -6879,27 +6879,29 @@ var Tag = function (_a) {
|
|
|
6879
6879
|
React$3.useEffect(function () {
|
|
6880
6880
|
setActive(isActive);
|
|
6881
6881
|
}, [isActive]);
|
|
6882
|
-
return (React__default["default"].createElement(View, { row: true
|
|
6883
|
-
|
|
6884
|
-
|
|
6885
|
-
|
|
6886
|
-
|
|
6887
|
-
|
|
6888
|
-
|
|
6889
|
-
|
|
6890
|
-
|
|
6891
|
-
|
|
6892
|
-
|
|
6893
|
-
React__default["default"].createElement(
|
|
6894
|
-
|
|
6895
|
-
|
|
6896
|
-
|
|
6897
|
-
|
|
6898
|
-
|
|
6899
|
-
|
|
6900
|
-
|
|
6901
|
-
|
|
6902
|
-
|
|
6882
|
+
return (React__default["default"].createElement(View, { row: true, height: height, disabled: disabled, paddingHorizontal: CONSTANTS.SPACE_12, paddingVertical: CONSTANTS.SPACE_8, borderRadius: borderRadius, center: true, style: [
|
|
6883
|
+
disabled && {
|
|
6884
|
+
backgroundColor: colors.surfaceSecondaryDefault,
|
|
6885
|
+
borderColor: colors.surfaceSecondaryDefault,
|
|
6886
|
+
},
|
|
6887
|
+
style,
|
|
6888
|
+
], onPress: handlePressTag, backgroundColor: active
|
|
6889
|
+
? colors.surfaceBrandInversePressed
|
|
6890
|
+
: colors.surfaceBrandInverseDefault },
|
|
6891
|
+
leftIcon && React__default["default"].createElement(View, { paddingRight: CONSTANTS.SPACE_4 }, leftIcon),
|
|
6892
|
+
React__default["default"].createElement(View, null,
|
|
6893
|
+
React__default["default"].createElement(Text$1, { size: 14, numberOfLines: numberOfLines, ellipsizeMode: ellipsizeMode, style: [
|
|
6894
|
+
styles.textMedium,
|
|
6895
|
+
{
|
|
6896
|
+
lineHeight: 16,
|
|
6897
|
+
},
|
|
6898
|
+
disabled && {
|
|
6899
|
+
color: colors.textSecondary,
|
|
6900
|
+
},
|
|
6901
|
+
textStyle,
|
|
6902
|
+
] }, title)),
|
|
6903
|
+
rightIcon ? (React__default["default"].createElement(View, { paddingLeft: CONSTANTS.SPACE_4 }, rightIcon)) : hideRightIcon ? (React__default["default"].createElement(View, null)) : (React__default["default"].createElement(View, { paddingLeft: CONSTANTS.SPACE_4 },
|
|
6904
|
+
React__default["default"].createElement(Icon$1, { name: "IconClose", type: "Svg", size: 20, color: colors.iconBrandDefault })))));
|
|
6903
6905
|
};
|
|
6904
6906
|
var styles = reactNative.StyleSheet.create(__assign({}, containerStyles));
|
|
6905
6907
|
|