sapo-components-ui-rn 1.0.89 → 1.1.2
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 +8 -7
- package/dist/index.esm.js.map +1 -1
- package/dist/index.js +8 -7
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
- package/src/components/Button/index.tsx +7 -6
package/dist/index.esm.js
CHANGED
|
@@ -6303,7 +6303,11 @@ var Button = function (_a) {
|
|
|
6303
6303
|
if (type === "text") {
|
|
6304
6304
|
return (React__default.createElement(ScaleButton$1, __assign({ activeOpacity: 0.8, onPress: onPress }, props, { disabled: disabled || isLoading }),
|
|
6305
6305
|
React__default.createElement(View, { width: width, margin: margin, style: [
|
|
6306
|
-
|
|
6306
|
+
{
|
|
6307
|
+
height: CONSTANTS.BUTTON_HEIGHT,
|
|
6308
|
+
alignItems: "center",
|
|
6309
|
+
minWidth: CONSTANTS.DEVICE_WIDTH / 4.5,
|
|
6310
|
+
},
|
|
6307
6311
|
{
|
|
6308
6312
|
borderRadius: CONSTANTS.BORDER_RADIUS_6,
|
|
6309
6313
|
paddingHorizontal: 0,
|
|
@@ -6312,14 +6316,12 @@ var Button = function (_a) {
|
|
|
6312
6316
|
disabled && !isLoading && [styles$a.disabled],
|
|
6313
6317
|
isLoading && { justifyContent: "center" },
|
|
6314
6318
|
style,
|
|
6315
|
-
], disabled: isLoading }, isLoading ? (React__default.createElement(ActivityIndicator, { color: (textStyle === null || textStyle === void 0 ? void 0 : textStyle.color) || colors.textBrandDefault })) : (React__default.createElement(View, { row: true
|
|
6316
|
-
React__default.createElement(Spacer, { width: left ? CONSTANTS.SPACE_12 : CONSTANTS.SPACE_16 }),
|
|
6319
|
+
], disabled: isLoading }, isLoading ? (React__default.createElement(ActivityIndicator, { color: (textStyle === null || textStyle === void 0 ? void 0 : textStyle.color) || colors.textBrandDefault })) : (React__default.createElement(View, { row: true },
|
|
6317
6320
|
!isLoading && left,
|
|
6318
6321
|
left && React__default.createElement(Spacer, { width: CONSTANTS.SPACE_4 }),
|
|
6319
6322
|
React__default.createElement(Text$1, __assign({ numberOfLines: 1, color: textColor || colors.textBrandDefault, size: size, bold: bold, medium: medium, style: [disabled && disabledTextStyle, textStyle] }, textProps), title),
|
|
6320
6323
|
right && React__default.createElement(Spacer, { width: CONSTANTS.SPACE_4 }),
|
|
6321
|
-
!isLoading && right
|
|
6322
|
-
React__default.createElement(Spacer, { width: right ? CONSTANTS.SPACE_12 : CONSTANTS.SPACE_16 }))))));
|
|
6324
|
+
!isLoading && right)))));
|
|
6323
6325
|
}
|
|
6324
6326
|
return (React__default.createElement(View, { row: !full },
|
|
6325
6327
|
React__default.createElement(ScaleButton$1, __assign({ activeOpacity: 0.8, onPress: onPress }, props, { disabled: disabled || isLoading }),
|
|
@@ -6345,7 +6347,7 @@ var Button = function (_a) {
|
|
|
6345
6347
|
],
|
|
6346
6348
|
isLoading && { justifyContent: "center" },
|
|
6347
6349
|
style,
|
|
6348
|
-
], disabled: isLoading }, isLoading ? (React__default.createElement(ActivityIndicator, { color: (textStyle === null || textStyle === void 0 ? void 0 : textStyle.color) || renderTextColor() })) : (React__default.createElement(View, { row: true
|
|
6350
|
+
], disabled: isLoading }, isLoading ? (React__default.createElement(ActivityIndicator, { color: (textStyle === null || textStyle === void 0 ? void 0 : textStyle.color) || renderTextColor() })) : (React__default.createElement(View, { row: true },
|
|
6349
6351
|
React__default.createElement(Spacer, { width: left ? CONSTANTS.SPACE_12 : CONSTANTS.SPACE_16 }),
|
|
6350
6352
|
!isLoading && left,
|
|
6351
6353
|
left && (React__default.createElement(Spacer, { width: buttonSize === "small"
|
|
@@ -6366,7 +6368,6 @@ var styles$a = StyleSheet.create({
|
|
|
6366
6368
|
alignItems: "center",
|
|
6367
6369
|
justifyContent: "center",
|
|
6368
6370
|
minWidth: CONSTANTS.DEVICE_WIDTH / 4.5,
|
|
6369
|
-
// paddingHorizontal: CONSTANTS.SPACE_12,
|
|
6370
6371
|
},
|
|
6371
6372
|
border: {
|
|
6372
6373
|
borderWidth: CONSTANTS.BORDER_WIDTH_1,
|