@uncinc/uncinc-react-kitchen-sink 2.8.14 → 2.8.15

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,8 +312,10 @@ 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: true,
314
- onClick: onConsent(true)
315
+ inverted: necessaryButtonInverted,
316
+ onClick: function onClick() {
317
+ return onConsent(true);
318
+ }
315
319
  }, onlyNecessaryText), /*#__PURE__*/React.createElement("button", {
316
320
  type: "button",
317
321
  className: "GoogleConsentCookieBanner__content__buttons__manual GoogleConsentCookieBanner__content__buttons__manual-agree ".concat(manualButtonClassname),
@@ -329,10 +333,12 @@ var CookieCompliancePopup = function CookieCompliancePopup(props) {
329
333
  }, /*#__PURE__*/React.createElement(Button, {
330
334
  className: "Button--cta",
331
335
  primary: true,
332
- onClick: onConsent(false)
336
+ onClick: function onClick() {
337
+ return onConsent(false);
338
+ }
333
339
  }, acceptSelectionText), /*#__PURE__*/React.createElement(Button, {
334
340
  className: "Button--cta",
335
- inverted: true,
341
+ inverted: necessaryButtonInverted,
336
342
  onClick: onConsentAll
337
343
  }, acceptAllText))))));
338
344
  };
@@ -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;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@uncinc/uncinc-react-kitchen-sink",
3
- "version": "2.8.14",
3
+ "version": "2.8.15",
4
4
  "description": "Default React components that are easily extended.",
5
5
  "author": "uncinc",
6
6
  "license": "MIT",