@bigbinary/neeto-form-frontend 4.4.14 → 4.4.15
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/app/javascript/src/translations/ar.json +0 -2
- package/app/javascript/src/translations/bg.json +0 -2
- package/app/javascript/src/translations/ca.json +0 -2
- package/app/javascript/src/translations/cs.json +0 -2
- package/app/javascript/src/translations/da.json +0 -2
- package/app/javascript/src/translations/de.json +0 -2
- package/app/javascript/src/translations/en.json +0 -2
- package/app/javascript/src/translations/es-MX.json +0 -2
- package/app/javascript/src/translations/es.json +0 -2
- package/app/javascript/src/translations/et.json +0 -2
- package/app/javascript/src/translations/fi.json +0 -2
- package/app/javascript/src/translations/fil.json +0 -2
- package/app/javascript/src/translations/fr.json +0 -2
- package/app/javascript/src/translations/he.json +0 -2
- package/app/javascript/src/translations/hi.json +0 -2
- package/app/javascript/src/translations/hr.json +0 -2
- package/app/javascript/src/translations/hu.json +0 -2
- package/app/javascript/src/translations/id.json +0 -2
- package/app/javascript/src/translations/it.json +0 -2
- package/app/javascript/src/translations/ja.json +0 -2
- package/app/javascript/src/translations/ko.json +0 -2
- package/app/javascript/src/translations/nl.json +0 -2
- package/app/javascript/src/translations/pl.json +0 -2
- package/app/javascript/src/translations/pt-BR.json +0 -2
- package/app/javascript/src/translations/pt.json +0 -2
- package/app/javascript/src/translations/ro.json +0 -2
- package/app/javascript/src/translations/ru.json +0 -2
- package/app/javascript/src/translations/sk.json +0 -2
- package/app/javascript/src/translations/sl.json +0 -2
- package/app/javascript/src/translations/sv.json +0 -2
- package/app/javascript/src/translations/th.json +0 -2
- package/app/javascript/src/translations/tr.json +0 -2
- package/app/javascript/src/translations/uk.json +0 -2
- package/app/javascript/src/translations/vi.json +0 -2
- package/app/javascript/src/translations/zh-CN.json +0 -2
- package/app/javascript/src/translations/zh-TW.json +0 -2
- package/dist/.ready +1 -1
- package/dist/BuildForm.js +29 -29
- package/dist/BuildForm.js.map +1 -1
- package/dist/cjs/BuildForm.js +29 -29
- package/dist/cjs/BuildForm.js.map +1 -1
- package/package.json +5 -5
package/dist/cjs/BuildForm.js
CHANGED
|
@@ -856,29 +856,6 @@ var Properties = function Properties(_ref) {
|
|
|
856
856
|
});
|
|
857
857
|
};
|
|
858
858
|
|
|
859
|
-
var Block = function Block(_ref) {
|
|
860
|
-
var title = _ref.title,
|
|
861
|
-
children = _ref.children,
|
|
862
|
-
dataTestid = _ref.dataTestid;
|
|
863
|
-
return /*#__PURE__*/jsxRuntime.jsxs("div", {
|
|
864
|
-
className: "mt-4 space-y-3",
|
|
865
|
-
"data-testid": dataTestid,
|
|
866
|
-
children: [/*#__PURE__*/jsxRuntime.jsx("div", {
|
|
867
|
-
className: "flex items-center justify-between",
|
|
868
|
-
"data-testid": "properties-header",
|
|
869
|
-
children: /*#__PURE__*/jsxRuntime.jsx(Typography, {
|
|
870
|
-
lineHeight: "normal",
|
|
871
|
-
style: "body1",
|
|
872
|
-
weight: "semibold",
|
|
873
|
-
children: title
|
|
874
|
-
})
|
|
875
|
-
}), /*#__PURE__*/jsxRuntime.jsx("div", {
|
|
876
|
-
className: "space-y-4",
|
|
877
|
-
children: children
|
|
878
|
-
})]
|
|
879
|
-
});
|
|
880
|
-
};
|
|
881
|
-
|
|
882
859
|
var useUpdateEditorContent = function useUpdateEditorContent(_ref) {
|
|
883
860
|
var editorRef = _ref.editorRef,
|
|
884
861
|
fieldName = _ref.fieldName,
|
|
@@ -1181,15 +1158,15 @@ var Form$1 = function Form(_ref) {
|
|
|
1181
1158
|
}), yup.isRichTextQuestion(kind) ? /*#__PURE__*/jsxRuntime.jsx(Editor, {
|
|
1182
1159
|
isLabelDisabled: isLabelDisabled
|
|
1183
1160
|
}) : /*#__PURE__*/jsxRuntime.jsxs("div", {
|
|
1184
|
-
className: "space-y-
|
|
1161
|
+
className: "space-y-4",
|
|
1185
1162
|
children: [/*#__PURE__*/jsxRuntime.jsx(Properties, {
|
|
1186
1163
|
handleLabelChange: handleLabelChange,
|
|
1187
1164
|
isLabelDisabled: isLabelDisabled,
|
|
1188
1165
|
kind: kind,
|
|
1189
1166
|
questionProps: questionProps
|
|
1190
|
-
}), isSettingsBlockVisible && /*#__PURE__*/jsxRuntime.jsxs(
|
|
1191
|
-
|
|
1192
|
-
|
|
1167
|
+
}), isSettingsBlockVisible && /*#__PURE__*/jsxRuntime.jsxs("div", {
|
|
1168
|
+
className: "space-y-4",
|
|
1169
|
+
"data-testid": "settings-card",
|
|
1193
1170
|
children: [isBasicSettingsVisible && /*#__PURE__*/jsxRuntime.jsxs(jsxRuntime.Fragment, {
|
|
1194
1171
|
children: [!isImmutable && kind !== constants.QUESTION_TYPES.ADDRESS && kind !== constants.QUESTION_TYPES.SPOT && /*#__PURE__*/jsxRuntime.jsx(RequiredSwitch, {}), shouldShowHideSwitch && /*#__PURE__*/jsxRuntime.jsx(Switch, {
|
|
1195
1172
|
label: t("neetoForm.common.hideQuestion"),
|
|
@@ -1471,6 +1448,29 @@ var Edit = function Edit(_ref) {
|
|
|
1471
1448
|
});
|
|
1472
1449
|
};
|
|
1473
1450
|
|
|
1451
|
+
var Block = function Block(_ref) {
|
|
1452
|
+
var title = _ref.title,
|
|
1453
|
+
children = _ref.children,
|
|
1454
|
+
dataTestid = _ref.dataTestid;
|
|
1455
|
+
return /*#__PURE__*/jsxRuntime.jsxs("div", {
|
|
1456
|
+
className: "mt-4 space-y-3",
|
|
1457
|
+
"data-testid": dataTestid,
|
|
1458
|
+
children: [/*#__PURE__*/jsxRuntime.jsx("div", {
|
|
1459
|
+
className: "flex items-center justify-between",
|
|
1460
|
+
"data-testid": "properties-header",
|
|
1461
|
+
children: /*#__PURE__*/jsxRuntime.jsx(Typography, {
|
|
1462
|
+
lineHeight: "normal",
|
|
1463
|
+
style: "body1",
|
|
1464
|
+
weight: "semibold",
|
|
1465
|
+
children: title
|
|
1466
|
+
})
|
|
1467
|
+
}), /*#__PURE__*/jsxRuntime.jsx("div", {
|
|
1468
|
+
className: "space-y-4",
|
|
1469
|
+
children: children
|
|
1470
|
+
})]
|
|
1471
|
+
});
|
|
1472
|
+
};
|
|
1473
|
+
|
|
1474
1474
|
var VARIANTS = {
|
|
1475
1475
|
hidden: {
|
|
1476
1476
|
opacity: 0,
|
|
@@ -2466,8 +2466,8 @@ var Options = function Options(_ref) {
|
|
|
2466
2466
|
onChange: setOptionsAttributes
|
|
2467
2467
|
})
|
|
2468
2468
|
})]
|
|
2469
|
-
}), !isDropdown && isPictureChoiceEnabled && /*#__PURE__*/jsxRuntime.jsxs(
|
|
2470
|
-
|
|
2469
|
+
}), !isDropdown && isPictureChoiceEnabled && /*#__PURE__*/jsxRuntime.jsxs("div", {
|
|
2470
|
+
className: "space-y-4",
|
|
2471
2471
|
children: [/*#__PURE__*/jsxRuntime.jsx(Switch, {
|
|
2472
2472
|
name: "isPictureChoice",
|
|
2473
2473
|
label: t("neetoForm.questions.common.questionFields.field.addPicturesToOptions")
|