sapo-components-ui-rn 1.1.6 → 1.1.7
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 +6 -1
- package/dist/index.esm.js.map +1 -1
- package/dist/index.js +6 -1
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
- package/src/components/Badge/index.tsx +9 -1
package/dist/index.esm.js
CHANGED
|
@@ -6851,6 +6851,7 @@ var Badge = React__default.memo(function (_a) {
|
|
|
6851
6851
|
success: {
|
|
6852
6852
|
default: {
|
|
6853
6853
|
borderWidth: 0,
|
|
6854
|
+
borderColor: borderColor || colors.borderSuccessDefault,
|
|
6854
6855
|
backgroundColor: backgroundColor || colors.surfaceSuccessDefault,
|
|
6855
6856
|
},
|
|
6856
6857
|
outline: {
|
|
@@ -6861,6 +6862,7 @@ var Badge = React__default.memo(function (_a) {
|
|
|
6861
6862
|
error: {
|
|
6862
6863
|
default: {
|
|
6863
6864
|
borderWidth: 0,
|
|
6865
|
+
borderColor: borderColor || colors.borderErrorDefault,
|
|
6864
6866
|
backgroundColor: backgroundColor || colors.surfaceCriticalDefault,
|
|
6865
6867
|
},
|
|
6866
6868
|
outline: {
|
|
@@ -6871,6 +6873,7 @@ var Badge = React__default.memo(function (_a) {
|
|
|
6871
6873
|
info: {
|
|
6872
6874
|
default: {
|
|
6873
6875
|
borderWidth: 0,
|
|
6876
|
+
borderColor: borderColor || colors.borderPrimaryDefault,
|
|
6874
6877
|
backgroundColor: backgroundColor || colors.surfacePrimaryInverseDefault,
|
|
6875
6878
|
},
|
|
6876
6879
|
outline: {
|
|
@@ -6881,6 +6884,7 @@ var Badge = React__default.memo(function (_a) {
|
|
|
6881
6884
|
warning: {
|
|
6882
6885
|
default: {
|
|
6883
6886
|
borderWidth: 0,
|
|
6887
|
+
borderColor: borderColor || colors.borderWarningDefault,
|
|
6884
6888
|
backgroundColor: backgroundColor || colors.surfaceWarningDefault,
|
|
6885
6889
|
},
|
|
6886
6890
|
outline: {
|
|
@@ -6891,6 +6895,7 @@ var Badge = React__default.memo(function (_a) {
|
|
|
6891
6895
|
default: {
|
|
6892
6896
|
default: {
|
|
6893
6897
|
borderWidth: 0,
|
|
6898
|
+
borderColor: borderColor || colors.borderInfoDefault,
|
|
6894
6899
|
backgroundColor: backgroundColor || colors.surfaceInfoDefault,
|
|
6895
6900
|
},
|
|
6896
6901
|
outline: {
|
|
@@ -6939,7 +6944,7 @@ var Badge = React__default.memo(function (_a) {
|
|
|
6939
6944
|
return (React__default.createElement(View, { row: true },
|
|
6940
6945
|
React__default.createElement(View, { row: true, center: true, borderRadius: 999, borderWidth: CONSTANTS.BORDER_WIDTH_1, style: [sizeStyles, typeStyles, style] },
|
|
6941
6946
|
leftIcon && React__default.createElement(View, { paddingRight: CONSTANTS.SPACE_4 }, leftIcon),
|
|
6942
|
-
progressType !== "none" && (React__default.createElement(ProgressCircle, { progress: progressType, color:
|
|
6947
|
+
progressType !== "none" && (React__default.createElement(ProgressCircle, { progress: progressType, color: typeStyles.borderColor })),
|
|
6943
6948
|
React__default.createElement(View, { paddingLeft: progressType !== "none" ? CONSTANTS.SPACE_4 : 0 },
|
|
6944
6949
|
React__default.createElement(Text$1, { size: finalTextSize, color: textColor || textColorStyle, style: [styles$8.textMedium, textStyle] }, value)))));
|
|
6945
6950
|
});
|