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

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;
@@ -1,25 +1,3 @@
1
- export default WysiwygField;
2
- declare function WysiwygField({ html, customElementHandler, className, ...props }: {
3
- [x: string]: any;
4
- html: any;
5
- customElementHandler?: (() => void) | undefined;
6
- className?: string | undefined;
7
- }): React.JSX.Element;
8
- declare namespace WysiwygField {
9
- namespace propTypes {
10
- let html: PropTypes.Validator<string>;
11
- let customElementHandler: PropTypes.Requireable<(...args: any[]) => any>;
12
- let className: PropTypes.Requireable<string>;
13
- let id: PropTypes.Requireable<string>;
14
- }
15
- namespace defaultProps {
16
- export function customElementHandler_1(): void;
17
- export { customElementHandler_1 as customElementHandler };
18
- let className_1: string;
19
- export { className_1 as className };
20
- let id_1: null;
21
- export { id_1 as id };
22
- }
23
- }
1
+ declare const _default: (props: any) => React.JSX.Element;
2
+ export default _default;
24
3
  import React from 'react';
25
- import PropTypes from 'prop-types';
@@ -6,6 +6,7 @@ import React from 'react';
6
6
  import PropTypes from 'prop-types';
7
7
  import ReactHtmlParser from 'react-html-parser';
8
8
  import c from 'classnames';
9
+ import withMapping from '../../Context/withMapping';
9
10
  import Button from '../Button';
10
11
  var WysiwygField = function WysiwygField(_ref) {
11
12
  var html = _ref.html,
@@ -60,4 +61,4 @@ WysiwygField.defaultProps = {
60
61
  className: '',
61
62
  id: null
62
63
  };
63
- export default WysiwygField;
64
+ export default withMapping(WysiwygField);
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.2",
4
4
  "description": "Default React components that are easily extended.",
5
5
  "author": "uncinc",
6
6
  "license": "MIT",