@bigbinary/neeto-form-frontend 1.2.53 → 1.2.54
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.
|
@@ -38,7 +38,9 @@
|
|
|
38
38
|
"addAdditionalGuests": "Add additional guests",
|
|
39
39
|
"unanswered": "Unanswered",
|
|
40
40
|
"hobbies": "Hobbies",
|
|
41
|
-
"country": "Country"
|
|
41
|
+
"country": "Country",
|
|
42
|
+
"addGuests": "Add guests",
|
|
43
|
+
"addGuestsHelper": "Enter emails separated by comma."
|
|
42
44
|
},
|
|
43
45
|
"fields": {
|
|
44
46
|
"mcf": "Multiple choice",
|
package/dist/index.cjs.js
CHANGED
|
@@ -16002,6 +16002,7 @@ var validateFieldValue = function validateFieldValue(_ref12) {
|
|
|
16002
16002
|
};
|
|
16003
16003
|
|
|
16004
16004
|
var MultipleEmailInput = function MultipleEmailInput(_ref) {
|
|
16005
|
+
var _React$createElement;
|
|
16005
16006
|
var question = _ref.question,
|
|
16006
16007
|
customValidator = _ref.customValidator;
|
|
16007
16008
|
var name = question.id,
|
|
@@ -16009,6 +16010,8 @@ var MultipleEmailInput = function MultipleEmailInput(_ref) {
|
|
|
16009
16010
|
isRequired = question.isRequired,
|
|
16010
16011
|
nodeId = question.nodeId;
|
|
16011
16012
|
var label = fieldWithFallback(question, "label");
|
|
16013
|
+
var _useTranslation = reactI18next.useTranslation(),
|
|
16014
|
+
t = _useTranslation.t;
|
|
16012
16015
|
var _useField = formik.useField({
|
|
16013
16016
|
name: name || nodeId,
|
|
16014
16017
|
validate: validateFieldValue({
|
|
@@ -16036,6 +16039,7 @@ var MultipleEmailInput = function MultipleEmailInput(_ref) {
|
|
|
16036
16039
|
isRequired: isRequired,
|
|
16037
16040
|
label: label,
|
|
16038
16041
|
error: meta.touched ? meta.error : "",
|
|
16042
|
+
helpText: t("neetoForm.common.addGuestsHelper"),
|
|
16039
16043
|
name: field.name,
|
|
16040
16044
|
placeholder: fieldWithFallback(question, "placeholder"),
|
|
16041
16045
|
value: field.value,
|
|
@@ -16043,13 +16047,11 @@ var MultipleEmailInput = function MultipleEmailInput(_ref) {
|
|
|
16043
16047
|
return setTouched(true);
|
|
16044
16048
|
},
|
|
16045
16049
|
onChange: setValue
|
|
16046
|
-
}) : /*#__PURE__*/React__default["default"].createElement(neetoui.Button, {
|
|
16047
|
-
label: label
|
|
16048
|
-
|
|
16049
|
-
|
|
16050
|
-
|
|
16051
|
-
}
|
|
16052
|
-
})));
|
|
16050
|
+
}) : /*#__PURE__*/React__default["default"].createElement(neetoui.Button, (_React$createElement = {
|
|
16051
|
+
label: label
|
|
16052
|
+
}, _defineProperty$6(_React$createElement, "label", t("neetoForm.common.addGuests")), _defineProperty$6(_React$createElement, "style", "secondary"), _defineProperty$6(_React$createElement, "onClick", function onClick() {
|
|
16053
|
+
return setIsInputVisible(true);
|
|
16054
|
+
}), _React$createElement))));
|
|
16053
16055
|
};
|
|
16054
16056
|
|
|
16055
16057
|
function ownKeys$8(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|