@uncinc/uncinc-react-kitchen-sink 2.8.14 → 2.8.16
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.
|
@@ -95,7 +95,9 @@ var CookieCompliancePopup = function CookieCompliancePopup(props) {
|
|
|
95
95
|
_props$manualHeader = props.manualHeader,
|
|
96
96
|
manualHeader = _props$manualHeader === void 0 ? '' : _props$manualHeader,
|
|
97
97
|
_props$manualButtonCl = props.manualButtonClassname,
|
|
98
|
-
manualButtonClassname = _props$manualButtonCl === void 0 ? 'Button' : _props$manualButtonCl
|
|
98
|
+
manualButtonClassname = _props$manualButtonCl === void 0 ? 'Button' : _props$manualButtonCl,
|
|
99
|
+
_props$necessaryButto = props.necessaryButtonInverted,
|
|
100
|
+
necessaryButtonInverted = _props$necessaryButto === void 0 ? true : _props$necessaryButto;
|
|
99
101
|
if (!window.dataLayer) {
|
|
100
102
|
window.dataLayer = window.dataLayer || [];
|
|
101
103
|
}
|
|
@@ -310,7 +312,7 @@ var CookieCompliancePopup = function CookieCompliancePopup(props) {
|
|
|
310
312
|
}, acceptAllText), showAcceptOnlyNeeded && /*#__PURE__*/React.createElement(Button, {
|
|
311
313
|
id: "only-necessary-agree",
|
|
312
314
|
className: "Button--cta",
|
|
313
|
-
inverted:
|
|
315
|
+
inverted: necessaryButtonInverted,
|
|
314
316
|
onClick: onConsent(true)
|
|
315
317
|
}, onlyNecessaryText), /*#__PURE__*/React.createElement("button", {
|
|
316
318
|
type: "button",
|
|
@@ -332,7 +334,7 @@ var CookieCompliancePopup = function CookieCompliancePopup(props) {
|
|
|
332
334
|
onClick: onConsent(false)
|
|
333
335
|
}, acceptSelectionText), /*#__PURE__*/React.createElement(Button, {
|
|
334
336
|
className: "Button--cta",
|
|
335
|
-
inverted:
|
|
337
|
+
inverted: necessaryButtonInverted,
|
|
336
338
|
onClick: onConsentAll
|
|
337
339
|
}, acceptAllText))))));
|
|
338
340
|
};
|
|
@@ -59,6 +59,7 @@ export interface CookieCompliancePopupProps {
|
|
|
59
59
|
onAgree?: Function;
|
|
60
60
|
showAcceptOnlyNeeded?: boolean;
|
|
61
61
|
manualButtonClassname?: string;
|
|
62
|
+
necessaryButtonInverted?: boolean;
|
|
62
63
|
cookieLevels?: Array<CookieLevel>;
|
|
63
64
|
defaultValues?: CategoryDefaultValues;
|
|
64
65
|
cookieDomain?: string;
|