sapo-components-ui-rn 1.0.84 → 1.0.85
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 +3 -3
- package/dist/index.esm.js.map +1 -1
- package/dist/index.js +3 -3
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
- package/src/components/Button/index.tsx +15 -3
package/dist/index.esm.js
CHANGED
|
@@ -6324,10 +6324,10 @@ var Button = function (_a) {
|
|
|
6324
6324
|
], disabled: isLoading },
|
|
6325
6325
|
React__default.createElement(Spacer, { width: left ? CONSTANTS.SPACE_12 : CONSTANTS.SPACE_16 }),
|
|
6326
6326
|
!isLoading && left,
|
|
6327
|
-
left && React__default.createElement(Spacer, { width: CONSTANTS.SPACE_8 }),
|
|
6327
|
+
left && (React__default.createElement(Spacer, { width: buttonSize === "small" ? CONSTANTS.SPACE_4 : CONSTANTS.SPACE_8 })),
|
|
6328
6328
|
isLoading ? (React__default.createElement(ActivityIndicator, { color: (textStyle === null || textStyle === void 0 ? void 0 : textStyle.color) || renderTextColor() })) : (React__default.createElement(View, { full: true, center: true },
|
|
6329
6329
|
React__default.createElement(Text$1, __assign({ numberOfLines: 1, color: textColor || renderTextColor(), size: size, bold: bold, medium: medium, style: [disabled && disabledTextStyle, textStyle] }, textProps), title))),
|
|
6330
|
-
right && React__default.createElement(Spacer, { width: CONSTANTS.SPACE_8 }),
|
|
6330
|
+
right && (React__default.createElement(Spacer, { width: buttonSize === "small" ? CONSTANTS.SPACE_4 : CONSTANTS.SPACE_8 })),
|
|
6331
6331
|
!isLoading && right,
|
|
6332
6332
|
React__default.createElement(Spacer, { width: right ? CONSTANTS.SPACE_12 : CONSTANTS.SPACE_16 })))));
|
|
6333
6333
|
};
|
|
@@ -6337,7 +6337,7 @@ var styles$a = StyleSheet.create({
|
|
|
6337
6337
|
height: CONSTANTS.BUTTON_HEIGHT,
|
|
6338
6338
|
flexDirection: "row",
|
|
6339
6339
|
alignItems: "center",
|
|
6340
|
-
justifyContent: "
|
|
6340
|
+
justifyContent: "center",
|
|
6341
6341
|
minWidth: CONSTANTS.DEVICE_WIDTH / 4.5,
|
|
6342
6342
|
},
|
|
6343
6343
|
border: {
|