sapo-components-ui-rn 1.1.1 → 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 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
- styles$a.button,
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,
@@ -6313,13 +6317,11 @@ var Button = function (_a) {
6313
6317
  isLoading && { justifyContent: "center" },
6314
6318
  style,
6315
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 },
6316
- React__default.createElement(Spacer, { width: left ? CONSTANTS.SPACE_12 : CONSTANTS.SPACE_16 }),
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 }),