@bigbinary/neeto-form-frontend 4.4.55 → 4.4.56

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.
@@ -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: "space-y-6",
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: t("neetoForm.common.advancedProperties"),
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
  })