@bigbinary/neeto-form-frontend 4.4.54 → 4.4.56-beta1
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 +7 -1
- package/app/javascript/src/translations/bg.json +7 -1
- package/app/javascript/src/translations/ca.json +7 -1
- package/app/javascript/src/translations/cs.json +7 -1
- package/app/javascript/src/translations/da.json +7 -1
- package/app/javascript/src/translations/de.json +7 -1
- package/app/javascript/src/translations/es-MX.json +7 -1
- package/app/javascript/src/translations/es.json +7 -1
- package/app/javascript/src/translations/et.json +7 -1
- package/app/javascript/src/translations/fi.json +7 -1
- package/app/javascript/src/translations/fil.json +7 -1
- package/app/javascript/src/translations/fr.json +7 -1
- package/app/javascript/src/translations/he.json +7 -1
- package/app/javascript/src/translations/hi.json +7 -1
- package/app/javascript/src/translations/hr.json +7 -1
- package/app/javascript/src/translations/hu.json +7 -1
- package/app/javascript/src/translations/id.json +7 -1
- package/app/javascript/src/translations/it.json +7 -1
- package/app/javascript/src/translations/ja.json +7 -1
- package/app/javascript/src/translations/ko.json +7 -1
- package/app/javascript/src/translations/lv.json +7 -1
- package/app/javascript/src/translations/nl.json +7 -1
- package/app/javascript/src/translations/pl.json +7 -1
- package/app/javascript/src/translations/pt-BR.json +7 -1
- package/app/javascript/src/translations/pt.json +7 -1
- package/app/javascript/src/translations/ro.json +7 -1
- package/app/javascript/src/translations/ru.json +7 -1
- package/app/javascript/src/translations/sk.json +7 -1
- package/app/javascript/src/translations/sl.json +7 -1
- package/app/javascript/src/translations/sv.json +7 -1
- package/app/javascript/src/translations/th.json +7 -1
- package/app/javascript/src/translations/tr.json +7 -1
- package/app/javascript/src/translations/uk.json +7 -1
- package/app/javascript/src/translations/vi.json +7 -1
- package/app/javascript/src/translations/zh-CN.json +7 -1
- package/app/javascript/src/translations/zh-TW.json +7 -1
- package/dist/.ready +1 -1
- package/dist/BuildForm.js +0 -1
- package/dist/BuildForm.js.map +1 -1
- package/dist/cjs/BuildForm.js +0 -1
- package/dist/cjs/BuildForm.js.map +1 -1
- package/dist/cjs/v2/BuildForm.js +10 -4
- package/dist/cjs/v2/BuildForm.js.map +1 -1
- package/dist/v2/BuildForm.js +11 -5
- package/dist/v2/BuildForm.js.map +1 -1
- package/dist/v2/main.css +1 -1
- package/dist/v2/main.css.map +1 -1
- package/package.json +5 -5
package/dist/v2/BuildForm.js
CHANGED
|
@@ -17,7 +17,7 @@ import { useTranslation, Trans } from 'react-i18next';
|
|
|
17
17
|
import { jsx, jsxs, Fragment } from 'react/jsx-runtime';
|
|
18
18
|
import MoreDropdown from '@bigbinary/neeto-molecules/v2/MoreDropdown';
|
|
19
19
|
import _defineProperty from '@babel/runtime/helpers/defineProperty';
|
|
20
|
-
import { GripVertical, ListTodo } from 'lucide-react';
|
|
20
|
+
import { GripVertical, ListTodo, ChevronRight } from 'lucide-react';
|
|
21
21
|
import _toConsumableArray from '@babel/runtime/helpers/toConsumableArray';
|
|
22
22
|
import _objectWithoutProperties from '@babel/runtime/helpers/objectWithoutProperties';
|
|
23
23
|
import { t } from 'i18next';
|
|
@@ -1048,11 +1048,11 @@ var FieldCode = function FieldCode() {
|
|
|
1048
1048
|
label: t("neetoForm.questions.common.questionFields.field.fieldCode"),
|
|
1049
1049
|
name: "fieldCode",
|
|
1050
1050
|
rejectCharsRegex: FIELD_CODES_REJECT_CHARS_REGEX,
|
|
1051
|
+
size: "large",
|
|
1051
1052
|
helpText: helpDocUrl && /*#__PURE__*/jsx(Trans, {
|
|
1052
1053
|
i18nKey: "neetoForm.questions.common.questionFields.field.fieldCodeHelpDescription",
|
|
1053
1054
|
components: {
|
|
1054
1055
|
Link: /*#__PURE__*/jsx(Button, {
|
|
1055
|
-
className: "text-xs",
|
|
1056
1056
|
href: helpDocUrl,
|
|
1057
1057
|
target: "_blank",
|
|
1058
1058
|
variant: "link"
|
|
@@ -1274,7 +1274,7 @@ var Form$1 = function Form(_ref) {
|
|
|
1274
1274
|
kind: kind,
|
|
1275
1275
|
questionProps: questionProps
|
|
1276
1276
|
}), isSettingsBlockVisible && /*#__PURE__*/jsxs("div", {
|
|
1277
|
-
className: "
|
|
1277
|
+
className: "flex flex-col gap-6",
|
|
1278
1278
|
"data-testid": "settings-card",
|
|
1279
1279
|
children: [isBasicSettingsVisible && /*#__PURE__*/jsxs(Fragment, {
|
|
1280
1280
|
children: [shouldShowRequiredSwitch && /*#__PURE__*/jsx(RequiredSwitch, {}), shouldShowHideSwitch && /*#__PURE__*/jsx(Switch, {
|
|
@@ -1304,14 +1304,20 @@ var Form$1 = function Form(_ref) {
|
|
|
1304
1304
|
name: "allowDecimals"
|
|
1305
1305
|
}), isTextarea && enforceMinWordsInMultiLineTexts && /*#__PURE__*/jsx(Textarea, {})]
|
|
1306
1306
|
}), shouldShowFieldCode && /*#__PURE__*/jsx(Accordion, {
|
|
1307
|
+
collapsible: true,
|
|
1307
1308
|
className: "neeto-form-nano-advanced-properties-accordion",
|
|
1308
1309
|
"data-testid": "advanced-properties-card",
|
|
1309
1310
|
defaultActiveKey: isFieldCodeInvalid ? 0 : null // This is to open the accordion when field code is invalid
|
|
1310
1311
|
,
|
|
1311
1312
|
children: /*#__PURE__*/jsx(Accordion.Item, {
|
|
1312
|
-
title:
|
|
1313
|
+
title: /*#__PURE__*/jsxs("span", {
|
|
1314
|
+
className: "flex items-center gap-2",
|
|
1315
|
+
children: [t("neetoForm.common.advancedProperties"), /*#__PURE__*/jsx(ChevronRight, {
|
|
1316
|
+
className: "neeto-form-nano-advanced-properties-chevron size-4 shrink-0"
|
|
1317
|
+
})]
|
|
1318
|
+
}),
|
|
1313
1319
|
children: /*#__PURE__*/jsx("div", {
|
|
1314
|
-
className: "flex flex-col space-y-6",
|
|
1320
|
+
className: "flex flex-col space-y-6 pt-4",
|
|
1315
1321
|
children: shouldShowFieldCode && /*#__PURE__*/jsx(FieldCode, {})
|
|
1316
1322
|
})
|
|
1317
1323
|
})
|