@bigbinary/neeto-molecules 1.0.81 → 1.0.83

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.
@@ -13,6 +13,110 @@ import { prop } from 'ramda';
13
13
  import * as yup from 'yup';
14
14
  import { string } from 'yup';
15
15
 
16
+ function _typeof$1(obj) {
17
+ "@babel/helpers - typeof";
18
+
19
+ return _typeof$1 = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) {
20
+ return typeof obj;
21
+ } : function (obj) {
22
+ return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj;
23
+ }, _typeof$1(obj);
24
+ }
25
+
26
+ function _toPrimitive(input, hint) {
27
+ if (_typeof$1(input) !== "object" || input === null) return input;
28
+ var prim = input[Symbol.toPrimitive];
29
+ if (prim !== undefined) {
30
+ var res = prim.call(input, hint || "default");
31
+ if (_typeof$1(res) !== "object") return res;
32
+ throw new TypeError("@@toPrimitive must return a primitive value.");
33
+ }
34
+ return (hint === "string" ? String : Number)(input);
35
+ }
36
+
37
+ function _toPropertyKey(arg) {
38
+ var key = _toPrimitive(arg, "string");
39
+ return _typeof$1(key) === "symbol" ? key : String(key);
40
+ }
41
+
42
+ function _defineProperty(obj, key, value) {
43
+ key = _toPropertyKey(key);
44
+ if (key in obj) {
45
+ Object.defineProperty(obj, key, {
46
+ value: value,
47
+ enumerable: true,
48
+ configurable: true,
49
+ writable: true
50
+ });
51
+ } else {
52
+ obj[key] = value;
53
+ }
54
+ return obj;
55
+ }
56
+
57
+ var commonjsGlobal = typeof globalThis !== 'undefined' ? globalThis : typeof window !== 'undefined' ? window : typeof global !== 'undefined' ? global : typeof self !== 'undefined' ? self : {};
58
+
59
+ var classnames$1 = {exports: {}};
60
+
61
+ /*!
62
+ Copyright (c) 2018 Jed Watson.
63
+ Licensed under the MIT License (MIT), see
64
+ http://jedwatson.github.io/classnames
65
+ */
66
+
67
+ (function (module) {
68
+ /* global define */
69
+
70
+ (function () {
71
+
72
+ var hasOwn = {}.hasOwnProperty;
73
+
74
+ function classNames() {
75
+ var classes = [];
76
+
77
+ for (var i = 0; i < arguments.length; i++) {
78
+ var arg = arguments[i];
79
+ if (!arg) continue;
80
+
81
+ var argType = typeof arg;
82
+
83
+ if (argType === 'string' || argType === 'number') {
84
+ classes.push(arg);
85
+ } else if (Array.isArray(arg)) {
86
+ if (arg.length) {
87
+ var inner = classNames.apply(null, arg);
88
+ if (inner) {
89
+ classes.push(inner);
90
+ }
91
+ }
92
+ } else if (argType === 'object') {
93
+ if (arg.toString !== Object.prototype.toString && !arg.toString.toString().includes('[native code]')) {
94
+ classes.push(arg.toString());
95
+ continue;
96
+ }
97
+
98
+ for (var key in arg) {
99
+ if (hasOwn.call(arg, key) && arg[key]) {
100
+ classes.push(key);
101
+ }
102
+ }
103
+ }
104
+ }
105
+
106
+ return classes.join(' ');
107
+ }
108
+
109
+ if (module.exports) {
110
+ classNames.default = classNames;
111
+ module.exports = classNames;
112
+ } else {
113
+ window.classNames = classNames;
114
+ }
115
+ }());
116
+ } (classnames$1));
117
+
118
+ var classnames = classnames$1.exports;
119
+
16
120
  var MemoizedEditorContent = /*#__PURE__*/React.memo(EditorContent);
17
121
  var EmailPreview = function EmailPreview(_ref) {
18
122
  var _ref$to = _ref.to,
@@ -22,13 +126,15 @@ var EmailPreview = function EmailPreview(_ref) {
22
126
  body = _ref.body,
23
127
  productName = _ref.productName,
24
128
  actionButtonText = _ref.actionButtonText,
25
- logo = _ref.logo;
129
+ logo = _ref.logo,
130
+ _ref$className = _ref.className,
131
+ className = _ref$className === void 0 ? "" : _ref$className;
26
132
  var _useTranslation = useTranslation(),
27
133
  t = _useTranslation.t;
28
134
  return /*#__PURE__*/React.createElement("div", {
29
- className: "neeto-ui-border-gray-300 neeto-ui-shadow-m neeto-ui-bg-white flex flex-1 flex-col border",
30
135
  "data-cy": "email-preview-card",
31
- "data-testid": "email-preview"
136
+ "data-testid": "email-preview",
137
+ className: classnames("neeto-ui-border-gray-300 neeto-ui-shadow-m neeto-ui-bg-white flex flex-1 flex-col border", _defineProperty({}, className, className))
32
138
  }, /*#__PURE__*/React.createElement("div", {
33
139
  className: "neeto-ui-border-gray-300 space-y-3 divide-y divide-gray-200 border-b p-6"
34
140
  }, /*#__PURE__*/React.createElement("div", {
@@ -189,11 +295,9 @@ function _asyncToGenerator(fn) {
189
295
  };
190
296
  }
191
297
 
192
- var commonjsGlobal = typeof globalThis !== 'undefined' ? globalThis : typeof window !== 'undefined' ? window : typeof global !== 'undefined' ? global : typeof self !== 'undefined' ? self : {};
193
-
194
298
  var regeneratorRuntime$1 = {exports: {}};
195
299
 
196
- var _typeof$1 = {exports: {}};
300
+ var _typeof = {exports: {}};
197
301
 
198
302
  (function (module) {
199
303
  function _typeof(obj) {
@@ -206,10 +310,10 @@ var _typeof$1 = {exports: {}};
206
310
  }, module.exports.__esModule = true, module.exports["default"] = module.exports), _typeof(obj);
207
311
  }
208
312
  module.exports = _typeof, module.exports.__esModule = true, module.exports["default"] = module.exports;
209
- } (_typeof$1));
313
+ } (_typeof));
210
314
 
211
315
  (function (module) {
212
- var _typeof = _typeof$1.exports["default"];
316
+ var _typeof$1 = _typeof.exports["default"];
213
317
  function _regeneratorRuntime() {
214
318
  module.exports = _regeneratorRuntime = function _regeneratorRuntime() {
215
319
  return exports;
@@ -286,7 +390,7 @@ var _typeof$1 = {exports: {}};
286
390
  if ("throw" !== record.type) {
287
391
  var result = record.arg,
288
392
  value = result.value;
289
- return value && "object" == _typeof(value) && hasOwn.call(value, "__await") ? PromiseImpl.resolve(value.__await).then(function (value) {
393
+ return value && "object" == _typeof$1(value) && hasOwn.call(value, "__await") ? PromiseImpl.resolve(value.__await).then(function (value) {
290
394
  invoke("next", value, resolve, reject);
291
395
  }, function (err) {
292
396
  invoke("throw", err, resolve, reject);
@@ -530,67 +634,6 @@ try {
530
634
  }
531
635
  }
532
636
 
533
- var classnames$1 = {exports: {}};
534
-
535
- /*!
536
- Copyright (c) 2018 Jed Watson.
537
- Licensed under the MIT License (MIT), see
538
- http://jedwatson.github.io/classnames
539
- */
540
-
541
- (function (module) {
542
- /* global define */
543
-
544
- (function () {
545
-
546
- var hasOwn = {}.hasOwnProperty;
547
-
548
- function classNames() {
549
- var classes = [];
550
-
551
- for (var i = 0; i < arguments.length; i++) {
552
- var arg = arguments[i];
553
- if (!arg) continue;
554
-
555
- var argType = typeof arg;
556
-
557
- if (argType === 'string' || argType === 'number') {
558
- classes.push(arg);
559
- } else if (Array.isArray(arg)) {
560
- if (arg.length) {
561
- var inner = classNames.apply(null, arg);
562
- if (inner) {
563
- classes.push(inner);
564
- }
565
- }
566
- } else if (argType === 'object') {
567
- if (arg.toString !== Object.prototype.toString && !arg.toString.toString().includes('[native code]')) {
568
- classes.push(arg.toString());
569
- continue;
570
- }
571
-
572
- for (var key in arg) {
573
- if (hasOwn.call(arg, key) && arg[key]) {
574
- classes.push(key);
575
- }
576
- }
577
- }
578
- }
579
-
580
- return classes.join(' ');
581
- }
582
-
583
- if (module.exports) {
584
- classNames.default = classNames;
585
- module.exports = classNames;
586
- } else {
587
- window.classNames = classNames;
588
- }
589
- }());
590
- } (classnames$1));
591
-
592
- var classnames = classnames$1.exports;
593
-
594
637
  var INITIAL_VALUES = {
595
638
  sendFromEmail: "",
596
639
  replyToEmail: "",
@@ -741,47 +784,6 @@ var FormikDatePicker = function FormikDatePicker(_ref) {
741
784
  }));
742
785
  };
743
786
 
744
- function _typeof(obj) {
745
- "@babel/helpers - typeof";
746
-
747
- return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) {
748
- return typeof obj;
749
- } : function (obj) {
750
- return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj;
751
- }, _typeof(obj);
752
- }
753
-
754
- function _toPrimitive(input, hint) {
755
- if (_typeof(input) !== "object" || input === null) return input;
756
- var prim = input[Symbol.toPrimitive];
757
- if (prim !== undefined) {
758
- var res = prim.call(input, hint || "default");
759
- if (_typeof(res) !== "object") return res;
760
- throw new TypeError("@@toPrimitive must return a primitive value.");
761
- }
762
- return (hint === "string" ? String : Number)(input);
763
- }
764
-
765
- function _toPropertyKey(arg) {
766
- var key = _toPrimitive(arg, "string");
767
- return _typeof(key) === "symbol" ? key : String(key);
768
- }
769
-
770
- function _defineProperty(obj, key, value) {
771
- key = _toPropertyKey(key);
772
- if (key in obj) {
773
- Object.defineProperty(obj, key, {
774
- value: value,
775
- enumerable: true,
776
- configurable: true,
777
- writable: true
778
- });
779
- } else {
780
- obj[key] = value;
781
- }
782
- return obj;
783
- }
784
-
785
787
  var papaparse = {exports: {}};
786
788
 
787
789
  /* @license