sapo-components-ui-rn 1.1.57 → 1.1.58

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.
@@ -22,7 +22,7 @@ export interface ButtonProps extends TouchableOpacityProps {
22
22
  onPress?: (res?: any) => void;
23
23
  full?: boolean;
24
24
  theme?: ThemeProp;
25
- buttonSize?: "normal" | "small";
25
+ buttonSize?: "normal" | "small" | "large";
26
26
  type?: "default" | "text";
27
27
  critical?: boolean;
28
28
  width?: number;
package/dist/index.esm.js CHANGED
@@ -6479,6 +6479,26 @@ var Button = function (_a) {
6479
6479
  ];
6480
6480
  }
6481
6481
  };
6482
+ var renderButtonSize = function () {
6483
+ switch (buttonSize) {
6484
+ case "small":
6485
+ return {
6486
+ height: 36,
6487
+ };
6488
+ case "normal":
6489
+ return {
6490
+ height: 48,
6491
+ };
6492
+ case "large":
6493
+ return {
6494
+ height: 56,
6495
+ };
6496
+ default:
6497
+ return {
6498
+ height: 48,
6499
+ };
6500
+ }
6501
+ };
6482
6502
  var renderTextColor = function () {
6483
6503
  switch (mode) {
6484
6504
  case "outlined":
@@ -6535,7 +6555,7 @@ var Button = function (_a) {
6535
6555
  renderButtonStyle(),
6536
6556
  borderColor && { borderColor: borderColor },
6537
6557
  backgroundColor && { backgroundColor: backgroundColor },
6538
- buttonSize === "small" && styles$b.small,
6558
+ renderButtonSize(),
6539
6559
  disabled &&
6540
6560
  !isLoading && [
6541
6561
  styles$b.disabled,