@zengenti/contensis-react-base 3.2.1-beta.5 → 3.2.1-beta.6

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/cjs/forms.js CHANGED
@@ -10,7 +10,6 @@ var React = require('react');
10
10
  var PropTypes = require('prop-types');
11
11
  var reactRedux = require('react-redux');
12
12
  var styled = require('styled-components');
13
- var Markdown = require('markdown-to-jsx');
14
13
  var _commonjsHelpers = require('./_commonjsHelpers-b3309d7b.js');
15
14
 
16
15
  function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
@@ -18,7 +17,6 @@ function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'defau
18
17
  var React__default = /*#__PURE__*/_interopDefaultLegacy(React);
19
18
  var PropTypes__default = /*#__PURE__*/_interopDefaultLegacy(PropTypes);
20
19
  var styled__default = /*#__PURE__*/_interopDefaultLegacy(styled);
21
- var Markdown__default = /*#__PURE__*/_interopDefaultLegacy(Markdown);
22
20
 
23
21
  const ACTION_PREFIX = '@FORM2/';
24
22
  const SET_FORM_DATA = `${ACTION_PREFIX}SET_FORM_DATA`;
@@ -1022,6 +1020,8 @@ CharacterLimit.propTypes = {
1022
1020
  useDefaultTheme: PropTypes__default["default"].bool
1023
1021
  };
1024
1022
 
1023
+ // import Markdown from 'markdown-to-jsx';
1024
+
1025
1025
  const TextfieldStyled = styled__default["default"].div.withConfig({
1026
1026
  displayName: "textfield__TextfieldStyled",
1027
1027
  componentId: "sc-whkw86-0"
@@ -1121,9 +1121,7 @@ const Textfield = ({
1121
1121
  }, /*#__PURE__*/React__default["default"].createElement("path", {
1122
1122
  fill: "#333",
1123
1123
  d: "m2 8 4.418 4.667L14 4.659l-1.246-1.326-6.336 6.692-3.18-3.332L2 8Z"
1124
- }))), instructions && /*#__PURE__*/React__default["default"].createElement(Markdown__default["default"], {
1125
- className: "text-field__input--markdown"
1126
- }, instructions), id === 'password' && /*#__PURE__*/React__default["default"].createElement("button", {
1124
+ }))), id === 'password' && /*#__PURE__*/React__default["default"].createElement("button", {
1127
1125
  className: "text-input__button--pw",
1128
1126
  type: "button",
1129
1127
  onClick: () => setVisible(!isVisible),
@@ -5130,6 +5128,8 @@ const CountrySelectStyled = styled__default["default"].div.withConfig({
5130
5128
  return styled.css(["display:flex;flex-direction:column;--semantic-type-1:#01010c;--semantic-background-1:#fff;--semantic-active-background-1:#efefef;--semantic-border-1:#949494;.input__label{margin-bottom:4px;}.input__wrapper{position:relative;}.input__listbox{display:none;position:absolute;top:40px;left:0;width:100%;padding:8px;background:var(--semantic-background-1);z-index:99;text-align:left;overflow-y:auto;border:1px solid var(--semantic-border-1);max-height:400px;}.input__listbox.open{display:block;}.input__listbox .option{padding:8px;cursor:default;display:flex;align-items:center;border:none;width:100%;}.input__listbox .option.selected{color:var(--semantic-type-1);background-color:var(--semantic-active-background-1);}.input__listbox .option.active{color:var(--semantic-type-1);background-color:var(--semantic-active-background-1);}"]);
5131
5129
  });
5132
5130
 
5131
+ // import Markdown from 'markdown-to-jsx';
5132
+
5133
5133
  const FormComposer = ({
5134
5134
  fields,
5135
5135
  formData,
@@ -5306,7 +5306,7 @@ const FormComposer = ({
5306
5306
  name,
5307
5307
  editor
5308
5308
  } = field || {};
5309
- const instructions = editor === null || editor === void 0 ? void 0 : (_editor$instructions = editor.instructions) === null || _editor$instructions === void 0 ? void 0 : _editor$instructions[defaultLanguage];
5309
+ editor === null || editor === void 0 ? void 0 : (_editor$instructions = editor.instructions) === null || _editor$instructions === void 0 ? void 0 : _editor$instructions[defaultLanguage];
5310
5310
  return /*#__PURE__*/React__default["default"].createElement("span", {
5311
5311
  className: "form__content",
5312
5312
  "data-form": "title",
@@ -5316,9 +5316,7 @@ const FormComposer = ({
5316
5316
  key: `${field.id}-${idx}`
5317
5317
  }, /*#__PURE__*/React__default["default"].createElement("span", {
5318
5318
  className: "form__content--title"
5319
- }, name === null || name === void 0 ? void 0 : name[defaultLanguage]), instructions && /*#__PURE__*/React__default["default"].createElement(Markdown__default["default"], {
5320
- className: "form__content--markdown"
5321
- }, instructions));
5319
+ }, name === null || name === void 0 ? void 0 : name[defaultLanguage]));
5322
5320
  }
5323
5321
  }
5324
5322
  });