@tapcart/mobile-components 0.8.20 → 0.8.21
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/lib/utils.d.ts +4 -4
- package/dist/lib/utils.js +1 -1
- package/package.json +1 -1
package/dist/lib/utils.d.ts
CHANGED
|
@@ -308,7 +308,7 @@ export declare const getLoyaltyButtonProps: (buttonConfig: TextStyle & Backgroun
|
|
|
308
308
|
};
|
|
309
309
|
style: {
|
|
310
310
|
backgroundColor: string | undefined;
|
|
311
|
-
|
|
311
|
+
borderColor: string | undefined;
|
|
312
312
|
boxShadow: string;
|
|
313
313
|
borderRadius: string | undefined;
|
|
314
314
|
width: string;
|
|
@@ -323,7 +323,7 @@ export declare const getLoyaltyButtonProps: (buttonConfig: TextStyle & Backgroun
|
|
|
323
323
|
paddingRight?: undefined;
|
|
324
324
|
} | {
|
|
325
325
|
backgroundColor: string | undefined;
|
|
326
|
-
|
|
326
|
+
borderColor: string | undefined;
|
|
327
327
|
boxShadow: string;
|
|
328
328
|
borderRadius: string | undefined;
|
|
329
329
|
width: string;
|
|
@@ -338,7 +338,7 @@ export declare const getLoyaltyButtonProps: (buttonConfig: TextStyle & Backgroun
|
|
|
338
338
|
paddingRight?: undefined;
|
|
339
339
|
} | {
|
|
340
340
|
backgroundColor: string | undefined;
|
|
341
|
-
|
|
341
|
+
borderColor: string | undefined;
|
|
342
342
|
boxShadow: string;
|
|
343
343
|
borderRadius: string | undefined;
|
|
344
344
|
width: string;
|
|
@@ -353,7 +353,7 @@ export declare const getLoyaltyButtonProps: (buttonConfig: TextStyle & Backgroun
|
|
|
353
353
|
paddingRight: string | undefined;
|
|
354
354
|
} | {
|
|
355
355
|
backgroundColor: string | undefined;
|
|
356
|
-
|
|
356
|
+
borderColor: string | undefined;
|
|
357
357
|
boxShadow: string;
|
|
358
358
|
borderRadius: string | undefined;
|
|
359
359
|
width: string;
|
package/dist/lib/utils.js
CHANGED
|
@@ -565,7 +565,7 @@ export const getLoyaltyButtonProps = (buttonConfig, state) => {
|
|
|
565
565
|
const borderSides = buttonConfig[`${state}BorderSides`];
|
|
566
566
|
return {
|
|
567
567
|
labelStyle: Object.assign(Object.assign({}, getTextStyle(buttonConfig)), { color: getColor(textColor) }),
|
|
568
|
-
style: Object.assign(Object.assign(Object.assign({}, getPaddingStyle(buttonConfig.padding)), getBorderSidesStyle(borderSides)), { backgroundColor: getColor(backgroundColor),
|
|
568
|
+
style: Object.assign(Object.assign(Object.assign({}, getPaddingStyle(buttonConfig.padding)), getBorderSidesStyle(borderSides)), { backgroundColor: getColor(backgroundColor), borderColor: getColor(borderColor), boxShadow: buttonConfig.backgroundShadow
|
|
569
569
|
? "0px 4px 6px rgba(0,0,0,0.1)"
|
|
570
570
|
: "none", borderRadius: buttonConfig.cornerRadius !== undefined
|
|
571
571
|
? `${buttonConfig.cornerRadius}px`
|