@uncinc/uncinc-react-kitchen-sink 2.21.0 → 2.21.1

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.
@@ -48,10 +48,11 @@ var GenericFormElement = function GenericFormElement(props) {
48
48
  property: "schema:text",
49
49
  html: description,
50
50
  className: "FormElement__description ".concat(className, "__description")
51
- }), error && touched ? /*#__PURE__*/React.createElement("div", {
51
+ }), /*#__PURE__*/React.createElement("div", {
52
52
  "aria-live": "assertive",
53
- id: errorId,
53
+ id: errorId
54
+ }, error && touched ? /*#__PURE__*/React.createElement("div", {
54
55
  className: "FormElement__error ".concat(className, "__error")
55
- }, error) : null);
56
+ }, error) : null));
56
57
  };
57
58
  export default withMapping(GenericFormElement);
@@ -104,6 +104,7 @@ var CookieCompliancePopup = function CookieCompliancePopup(props) {
104
104
  defaultValues = _props$defaultValues === void 0 ? categoryDefaultValues : _props$defaultValues,
105
105
  _props$manualHeader = props.manualHeader,
106
106
  manualHeader = _props$manualHeader === void 0 ? '' : _props$manualHeader,
107
+ manualBody = props.manualBody,
107
108
  _props$manualButtonCl = props.manualButtonClassname,
108
109
  manualButtonClassname = _props$manualButtonCl === void 0 ? 'Button' : _props$manualButtonCl,
109
110
  _props$necessaryButto = props.necessaryButtonInverted,
@@ -297,7 +298,9 @@ var CookieCompliancePopup = function CookieCompliancePopup(props) {
297
298
  // This function renders the different options of checkboxes,
298
299
  // allowing us to add more checkboxes eventually.
299
300
  var renderChoices = function renderChoices() {
300
- return /*#__PURE__*/React.createElement("fieldset", {
301
+ return /*#__PURE__*/React.createElement(React.Fragment, null, manualBody && /*#__PURE__*/React.createElement("p", {
302
+ className: "GoogleConsentCookieBanner__manual-body"
303
+ }, manualBody), /*#__PURE__*/React.createElement("fieldset", {
301
304
  className: "GoogleConsentCookieBanner__choices"
302
305
  }, manualHeader && /*#__PURE__*/React.createElement("legend", {
303
306
  className: "manualHeader"
@@ -326,7 +329,7 @@ var CookieCompliancePopup = function CookieCompliancePopup(props) {
326
329
  }, /*#__PURE__*/React.createElement("div", {
327
330
  className: "GoogleConsentCookieBanner__category__description"
328
331
  }, choice.contents()))));
329
- }));
332
+ })));
330
333
  };
331
334
  return /*#__PURE__*/React.createElement("div", {
332
335
  className: classes,
@@ -58,6 +58,7 @@ export interface CookieCompliancePopupProps {
58
58
  cookieContentsShowLess?: string;
59
59
  manualText?: string;
60
60
  manualHeader?: string;
61
+ manualBody?: string;
61
62
  onAgree?: Function;
62
63
  showAcceptOnlyNeeded?: boolean;
63
64
  showAcceptOnlyNeededSelections?: boolean;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@uncinc/uncinc-react-kitchen-sink",
3
- "version": "2.21.0",
3
+ "version": "2.21.1",
4
4
  "description": "Default React components that are easily extended.",
5
5
  "author": "uncinc",
6
6
  "license": "MIT",