@stigg/react-sdk 4.7.1 → 4.8.0
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/components/checkout/configurations/theme.d.ts +3 -0
- package/dist/react-sdk.cjs.development.js +15 -4
- package/dist/react-sdk.cjs.development.js.map +1 -1
- package/dist/react-sdk.cjs.production.min.js +1 -1
- package/dist/react-sdk.cjs.production.min.js.map +1 -1
- package/dist/react-sdk.esm.js +15 -4
- package/dist/react-sdk.esm.js.map +1 -1
- package/package.json +1 -1
- package/src/components/checkout/CheckoutContainer.tsx +10 -1
- package/src/components/checkout/configurations/theme.ts +6 -0
|
@@ -7,5 +7,8 @@ export declare type CheckoutTheme = {
|
|
|
7
7
|
backgroundColor: string;
|
|
8
8
|
borderColor: string;
|
|
9
9
|
summaryBackgroundColor: string;
|
|
10
|
+
paymentInputBackgroundColor?: string;
|
|
11
|
+
paymentInputBorderColor?: string;
|
|
12
|
+
paymentInputBorderRadius?: string;
|
|
10
13
|
};
|
|
11
14
|
export declare function getResolvedCheckoutTheme(globalTheme: StiggTheme, themeOverride?: DeepPartial<CheckoutTheme>, _remoteConfiguration?: CheckoutConfiguration | null): CheckoutTheme;
|
|
@@ -7319,7 +7319,10 @@ _remoteConfiguration) {
|
|
|
7319
7319
|
textColor: (themeOverride == null ? void 0 : themeOverride.textColor) || (globalPalette == null ? void 0 : globalPalette.text.primary) || defaultCheckoutTheme.textColor,
|
|
7320
7320
|
backgroundColor: (themeOverride == null ? void 0 : themeOverride.backgroundColor) || (globalPalette == null ? void 0 : globalPalette.backgroundPaper) || defaultCheckoutTheme.backgroundColor,
|
|
7321
7321
|
borderColor: (themeOverride == null ? void 0 : themeOverride.borderColor) || (globalPalette == null ? void 0 : globalPalette.outlinedBorder) || defaultCheckoutTheme.borderColor,
|
|
7322
|
-
summaryBackgroundColor: (themeOverride == null ? void 0 : themeOverride.summaryBackgroundColor) || (globalPalette == null ? void 0 : globalPalette.backgroundHighlight) || defaultCheckoutTheme.summaryBackgroundColor
|
|
7322
|
+
summaryBackgroundColor: (themeOverride == null ? void 0 : themeOverride.summaryBackgroundColor) || (globalPalette == null ? void 0 : globalPalette.backgroundHighlight) || defaultCheckoutTheme.summaryBackgroundColor,
|
|
7323
|
+
paymentInputBackgroundColor: themeOverride == null ? void 0 : themeOverride.paymentInputBackgroundColor,
|
|
7324
|
+
paymentInputBorderColor: themeOverride == null ? void 0 : themeOverride.paymentInputBorderColor,
|
|
7325
|
+
paymentInputBorderRadius: themeOverride == null ? void 0 : themeOverride.paymentInputBorderRadius
|
|
7323
7326
|
};
|
|
7324
7327
|
}
|
|
7325
7328
|
|
|
@@ -13667,7 +13670,8 @@ function CheckoutContainer(_ref2) {
|
|
|
13667
13670
|
var _useCheckoutContext = useCheckoutContext(),
|
|
13668
13671
|
_useCheckoutContext$ = _useCheckoutContext[0],
|
|
13669
13672
|
stiggTheme = _useCheckoutContext$.stiggTheme,
|
|
13670
|
-
widgetState = _useCheckoutContext$.widgetState
|
|
13673
|
+
widgetState = _useCheckoutContext$.widgetState,
|
|
13674
|
+
theme = _useCheckoutContext$.theme;
|
|
13671
13675
|
|
|
13672
13676
|
var _useProgressBarModel = useProgressBarModel(),
|
|
13673
13677
|
currentStep = _useProgressBarModel.currentStep;
|
|
@@ -13716,8 +13720,15 @@ function CheckoutContainer(_ref2) {
|
|
|
13716
13720
|
colorText: stiggTheme.palette.text.primary,
|
|
13717
13721
|
colorPrimaryText: stiggTheme.palette.text.primary,
|
|
13718
13722
|
colorTextPlaceholder: stiggTheme.palette.text.disabled,
|
|
13719
|
-
fontFamily: stiggTheme.typography.fontFamily
|
|
13720
|
-
|
|
13723
|
+
fontFamily: stiggTheme.typography.fontFamily,
|
|
13724
|
+
colorBackground: theme == null ? void 0 : theme.paymentInputBackgroundColor,
|
|
13725
|
+
borderRadius: theme == null ? void 0 : theme.paymentInputBorderRadius
|
|
13726
|
+
},
|
|
13727
|
+
rules: theme != null && theme.paymentInputBorderColor ? {
|
|
13728
|
+
'.Input': {
|
|
13729
|
+
borderColor: theme == null ? void 0 : theme.paymentInputBorderColor
|
|
13730
|
+
}
|
|
13731
|
+
} : undefined
|
|
13721
13732
|
}
|
|
13722
13733
|
})
|
|
13723
13734
|
}, React__default.createElement(CheckoutLayout, {
|