@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.
package/dist/index.js
CHANGED
|
@@ -15964,6 +15964,7 @@ var validateFieldValue = function validateFieldValue(_ref12) {
|
|
|
15964
15964
|
};
|
|
15965
15965
|
|
|
15966
15966
|
var MultipleEmailInput = function MultipleEmailInput(_ref) {
|
|
15967
|
+
var _React$createElement;
|
|
15967
15968
|
var question = _ref.question,
|
|
15968
15969
|
customValidator = _ref.customValidator;
|
|
15969
15970
|
var name = question.id,
|
|
@@ -15971,6 +15972,8 @@ var MultipleEmailInput = function MultipleEmailInput(_ref) {
|
|
|
15971
15972
|
isRequired = question.isRequired,
|
|
15972
15973
|
nodeId = question.nodeId;
|
|
15973
15974
|
var label = fieldWithFallback(question, "label");
|
|
15975
|
+
var _useTranslation = useTranslation(),
|
|
15976
|
+
t = _useTranslation.t;
|
|
15974
15977
|
var _useField = useField({
|
|
15975
15978
|
name: name || nodeId,
|
|
15976
15979
|
validate: validateFieldValue({
|
|
@@ -15998,6 +16001,7 @@ var MultipleEmailInput = function MultipleEmailInput(_ref) {
|
|
|
15998
16001
|
isRequired: isRequired,
|
|
15999
16002
|
label: label,
|
|
16000
16003
|
error: meta.touched ? meta.error : "",
|
|
16004
|
+
helpText: t("neetoForm.common.addGuestsHelper"),
|
|
16001
16005
|
name: field.name,
|
|
16002
16006
|
placeholder: fieldWithFallback(question, "placeholder"),
|
|
16003
16007
|
value: field.value,
|
|
@@ -16005,13 +16009,11 @@ var MultipleEmailInput = function MultipleEmailInput(_ref) {
|
|
|
16005
16009
|
return setTouched(true);
|
|
16006
16010
|
},
|
|
16007
16011
|
onChange: setValue
|
|
16008
|
-
}) : /*#__PURE__*/React__default.createElement(Button$1, {
|
|
16009
|
-
label: label
|
|
16010
|
-
|
|
16011
|
-
|
|
16012
|
-
|
|
16013
|
-
}
|
|
16014
|
-
})));
|
|
16012
|
+
}) : /*#__PURE__*/React__default.createElement(Button$1, (_React$createElement = {
|
|
16013
|
+
label: label
|
|
16014
|
+
}, _defineProperty$6(_React$createElement, "label", t("neetoForm.common.addGuests")), _defineProperty$6(_React$createElement, "style", "secondary"), _defineProperty$6(_React$createElement, "onClick", function onClick() {
|
|
16015
|
+
return setIsInputVisible(true);
|
|
16016
|
+
}), _React$createElement))));
|
|
16015
16017
|
};
|
|
16016
16018
|
|
|
16017
16019
|
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; }
|