@bigbinary/neeto-form-frontend 4.4.36 → 4.4.38

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.
Files changed (95) hide show
  1. package/app/javascript/src/translations/en.json +5 -1
  2. package/dist/.ready +1 -1
  3. package/dist/BuildForm.js +57 -7
  4. package/dist/BuildForm.js.map +1 -1
  5. package/dist/ExternalForm.js +5 -4
  6. package/dist/ExternalForm.js.map +1 -1
  7. package/dist/Submission.js +1 -1
  8. package/dist/UrlBuilder.js +5 -4
  9. package/dist/UrlBuilder.js.map +1 -1
  10. package/dist/{buildForm-Ds5d1DR8.js → buildForm-C5642_SF.js} +2 -2
  11. package/dist/{buildForm-Ds5d1DR8.js.map → buildForm-C5642_SF.js.map} +1 -1
  12. package/dist/cjs/BuildForm.js +57 -7
  13. package/dist/cjs/BuildForm.js.map +1 -1
  14. package/dist/cjs/ExternalForm.js +5 -4
  15. package/dist/cjs/ExternalForm.js.map +1 -1
  16. package/dist/cjs/Submission.js +1 -1
  17. package/dist/cjs/UrlBuilder.js +5 -4
  18. package/dist/cjs/UrlBuilder.js.map +1 -1
  19. package/dist/cjs/{buildForm-CtHZCSpo.js → buildForm-BO5Vcxv_.js} +2 -2
  20. package/dist/cjs/{buildForm-CtHZCSpo.js.map → buildForm-BO5Vcxv_.js.map} +1 -1
  21. package/dist/cjs/{constants-CUBwzMb-.js → constants-D3en9KhN.js} +2 -1
  22. package/dist/cjs/constants-D3en9KhN.js.map +1 -0
  23. package/dist/cjs/hooks.js +4 -4
  24. package/dist/cjs/{index-Bj56Ua86.js → index-B9L6Cdpy.js} +2 -2
  25. package/dist/cjs/{index-Bj56Ua86.js.map → index-B9L6Cdpy.js.map} +1 -1
  26. package/dist/cjs/index.js +10 -9
  27. package/dist/cjs/index.js.map +1 -1
  28. package/dist/cjs/{useFormSubmission-DGRHK3u9.js → useFormSubmission-CdbaJ9RK.js} +2 -2
  29. package/dist/cjs/{useFormSubmission-DGRHK3u9.js.map → useFormSubmission-CdbaJ9RK.js.map} +1 -1
  30. package/dist/cjs/{utils-Xnit8PUn.js → utils-ojUD_GO6.js} +188 -96
  31. package/dist/cjs/utils-ojUD_GO6.js.map +1 -0
  32. package/dist/cjs/v2/BuildForm.js +157 -134
  33. package/dist/cjs/v2/BuildForm.js.map +1 -1
  34. package/dist/cjs/v2/ExternalForm.js +16 -42
  35. package/dist/cjs/v2/ExternalForm.js.map +1 -1
  36. package/dist/cjs/v2/Submission.js +5 -4
  37. package/dist/cjs/v2/Submission.js.map +1 -1
  38. package/dist/cjs/v2/UrlBuilder.js +6 -33
  39. package/dist/cjs/v2/UrlBuilder.js.map +1 -1
  40. package/dist/cjs/v2/{constants-DIy-d-Pb.js → constants-DyPOVMyi.js} +2 -1
  41. package/dist/cjs/v2/constants-DyPOVMyi.js.map +1 -0
  42. package/dist/cjs/v2/index.js +27 -57
  43. package/dist/cjs/v2/index.js.map +1 -1
  44. package/dist/cjs/v2/{utils-DO12kVcq.js → utils-ChwdTdnN.js} +197 -110
  45. package/dist/cjs/v2/utils-ChwdTdnN.js.map +1 -0
  46. package/dist/cjs/v2/{yup-DH3aFnam.js → yup-CKeWnmJ3.js} +362 -84
  47. package/dist/cjs/v2/yup-CKeWnmJ3.js.map +1 -0
  48. package/dist/cjs/{yup-DZgfXVgs.js → yup-DvB9BGdG.js} +340 -39
  49. package/dist/cjs/yup-DvB9BGdG.js.map +1 -0
  50. package/dist/{constants-fjoeNdhb.js → constants-ClqQe4qZ.js} +2 -1
  51. package/dist/constants-ClqQe4qZ.js.map +1 -0
  52. package/dist/hooks.js +4 -4
  53. package/dist/{index-Cx0yvXwJ.js → index-CAR9-spo.js} +2 -2
  54. package/dist/{index-Cx0yvXwJ.js.map → index-CAR9-spo.js.map} +1 -1
  55. package/dist/index.js +10 -9
  56. package/dist/index.js.map +1 -1
  57. package/dist/main.css +1 -1
  58. package/dist/main.css.map +1 -1
  59. package/dist/{useFormSubmission-DMpf1msR.js → useFormSubmission-DMRpRRj4.js} +2 -2
  60. package/dist/{useFormSubmission-DMpf1msR.js.map → useFormSubmission-DMRpRRj4.js.map} +1 -1
  61. package/dist/{utils-Chj7ZOKi.js → utils-6l6j_LN6.js} +188 -96
  62. package/dist/utils-6l6j_LN6.js.map +1 -0
  63. package/dist/v2/BuildForm.js +157 -134
  64. package/dist/v2/BuildForm.js.map +1 -1
  65. package/dist/v2/ExternalForm.js +15 -41
  66. package/dist/v2/ExternalForm.js.map +1 -1
  67. package/dist/v2/Submission.js +5 -4
  68. package/dist/v2/Submission.js.map +1 -1
  69. package/dist/v2/UrlBuilder.js +6 -33
  70. package/dist/v2/UrlBuilder.js.map +1 -1
  71. package/dist/v2/{constants-CZ7swzMG.js → constants-BlY0KFT4.js} +2 -1
  72. package/dist/v2/constants-BlY0KFT4.js.map +1 -0
  73. package/dist/v2/index.js +22 -52
  74. package/dist/v2/index.js.map +1 -1
  75. package/dist/v2/main.css +1 -1
  76. package/dist/v2/main.css.map +1 -1
  77. package/dist/v2/{utils-CW12NXEG.js → utils-B8sTYkWG.js} +194 -107
  78. package/dist/v2/utils-B8sTYkWG.js.map +1 -0
  79. package/dist/v2/{yup-Cddsv0mm.js → yup-Cf-x7SqN.js} +355 -80
  80. package/dist/v2/yup-Cf-x7SqN.js.map +1 -0
  81. package/dist/{yup-CwN-8JrO.js → yup-7qmI_2fI.js} +338 -40
  82. package/dist/yup-7qmI_2fI.js.map +1 -0
  83. package/package.json +18 -16
  84. package/dist/cjs/constants-CUBwzMb-.js.map +0 -1
  85. package/dist/cjs/utils-Xnit8PUn.js.map +0 -1
  86. package/dist/cjs/v2/constants-DIy-d-Pb.js.map +0 -1
  87. package/dist/cjs/v2/utils-DO12kVcq.js.map +0 -1
  88. package/dist/cjs/v2/yup-DH3aFnam.js.map +0 -1
  89. package/dist/cjs/yup-DZgfXVgs.js.map +0 -1
  90. package/dist/constants-fjoeNdhb.js.map +0 -1
  91. package/dist/utils-Chj7ZOKi.js.map +0 -1
  92. package/dist/v2/constants-CZ7swzMG.js.map +0 -1
  93. package/dist/v2/utils-CW12NXEG.js.map +0 -1
  94. package/dist/v2/yup-Cddsv0mm.js.map +0 -1
  95. package/dist/yup-CwN-8JrO.js.map +0 -1
@@ -4,20 +4,20 @@ import classnames from 'classnames';
4
4
  import { isPresent, truncate, findBy, isNotPresent, slugify, existsBy, findById, findIndexById, hyphenate, noop, nullSafe, modifyBy, removeBy } from '@bigbinary/neeto-cist';
5
5
  import { equals, path, when, assoc, includes, isEmpty, reject, keys, pick, omit, evolve, map, mergeLeft, prop, pipe, filter, isNotNil, values, uniq, join, pathSatisfies, assocPath, dissoc, isNil, append, pluck, test, paths, difference, startsWith, split, last, either, F, T } from 'ramda';
6
6
  import { j as useDeleteQuestion, b as useForm, k as useCreateQuestion, l as useUpdateQuestion, m as useReorderQuestions, Q as QUERY_KEYS } from './useFormApi-B5a0zkAT.js';
7
- import { n as QUESTION_ACTIONS, o as INDEPENDENT_LABELS_MAP, q as buildDisplayLabel, r as isElementOverflowing, c as isFunction, s as SELECTABLE_KINDS, t as isAutoGeneratedQuestion, g as fieldWithFallback, u as isRichTextQuestion, v as SPOT_QUESTION_FIELD_CODE, w as isNameQuestion, N as NON_BASIC_LATIN_CHARACTERS_REGEX, x as RESERVED_FIELD_CODES, y as renameKey, j as LABEL_FIELDS, z as isDefaultLanguage, B as buildAddQuestionButtonProps, F as validateEditorContent, G as FIELD_CODES_REJECT_CHARS_REGEX, M as MIN_WORDS_SWITCH_LABEL_PROPS, H as MIN_WORDS, J as isImmutableField, a as QUESTIONS_WITHOUT_FIELD_CODE, K as NON_HIDEABLE_FIELDS, O as NON_READ_ONLY_FIELDS, T as OPINION_LABEL_MAX_LENGTH, U as RICH_TEXT_QUESTIONS, h as ADDRESS_FIELD_WIDTHS, A as ADDRESS_FIELD_TYPES, V as generateDefaultOptions, W as MINIMUM_ADDRESS_FIELDS, X as getDeletedRecords, Y as randomId, Z as getActiveRecords, _ as FILE_TYPES_MAP, $ as FILE_GROUPS, a0 as OPINION_SCALE_MIN_VALUE_OPTIONS, a1 as OPINION_SCALE_MAX_VALUE_OPTIONS, D as DEFAULT_CHOICE_QUESTION_ATTRIBUTES, a2 as MINIMUM_OPTIONS, a3 as IMAGE_HEIGHT_SLIDER_DEFAULTS, a4 as RATING_OPTIONS, a5 as STAR_RATING_MIN_VALUE_OPTIONS, a6 as STAR_RATING_MAX_VALUE_OPTIONS, a7 as STAR_RATING_ICONS_MAP, a8 as buildDisabledAddButtonHelpPopoverProps, a9 as buildReorderPayload, aa as QUESTIONS_INITIAL_VALUE, ab as isMandatoryField, ac as QUESTION_KINDS, Q as QUESTION_KIND, ad as getActiveQuestionKindDetails, ae as DEFAULT_AVAILABLE_LANGUAGES, af as DEFAULT_ADVANCED_FEATURES } from './yup-Cddsv0mm.js';
7
+ import { o as QUESTION_ACTIONS, q as INDEPENDENT_LABELS_MAP, r as buildDisplayLabel, s as isElementOverflowing, c as isFunction, t as SELECTABLE_KINDS, u as isAutoGeneratedQuestion, g as fieldWithFallback, v as isRichTextQuestion, w as SPOT_QUESTION_FIELD_CODE, x as isNameQuestion, N as NON_BASIC_LATIN_CHARACTERS_REGEX, y as RESERVED_FIELD_CODES, z as renameKey, j as LABEL_FIELDS, B as isDefaultLanguage, F as buildAddQuestionButtonProps, G as validateEditorContent, H as FIELD_CODES_REJECT_CHARS_REGEX, M as MIN_WORDS_SWITCH_LABEL_PROPS, J as MIN_WORDS, K as isImmutableField, a as QUESTIONS_WITHOUT_FIELD_CODE, O as NON_HIDEABLE_FIELDS, T as NON_READ_ONLY_FIELDS, U as OPINION_LABEL_MAX_LENGTH, V as RICH_TEXT_QUESTIONS, h as ADDRESS_FIELD_WIDTHS, A as ADDRESS_FIELD_TYPES, W as generateDefaultOptions, X as MINIMUM_ADDRESS_FIELDS, Z as getDeletedRecords, _ as randomId, $ as getActiveRecords, a0 as FILE_TYPES_MAP, a1 as FILE_GROUPS, a2 as OPINION_SCALE_MIN_VALUE_OPTIONS, a3 as OPINION_SCALE_MAX_VALUE_OPTIONS, D as DEFAULT_CHOICE_QUESTION_ATTRIBUTES, a4 as MINIMUM_OPTIONS, a5 as IMAGE_HEIGHT_SLIDER_DEFAULTS, a6 as RATING_OPTIONS, a7 as STAR_RATING_MIN_VALUE_OPTIONS, a8 as STAR_RATING_MAX_VALUE_OPTIONS, a9 as STAR_RATING_ICONS_MAP, aa as YES_NO_ICONS_MAP, ab as buildDisabledAddButtonHelpPopoverProps, ac as buildReorderPayload, ad as QUESTIONS_INITIAL_VALUE, ae as isMandatoryField, af as QUESTION_KINDS, Q as QUESTION_KIND, ag as getActiveQuestionKindDetails, ah as DEFAULT_AVAILABLE_LANGUAGES, ai as DEFAULT_ADVANCED_FEATURES } from './yup-Cf-x7SqN.js';
8
8
  import _slicedToArray from '@babel/runtime/helpers/slicedToArray';
9
9
  import { useState, useRef, useEffect, createElement } from 'react';
10
10
  import { Droppable, Draggable, DragDropContext } from '@hello-pangea/dnd';
11
11
  import { withT, isMetaKeyPressed, useStateWithDependency, useFuncDebounce, useOnClickOutside } from '@bigbinary/neeto-commons-frontend/v2/react-utils';
12
12
  import { showThumbsUpToastr, withEventTargetValue, hyphenize } from '@bigbinary/neeto-commons-frontend/v2/utils';
13
13
  import { a as useBuildFormStore } from './buildForm-CpdYPz4r.js';
14
- import { Q as QUESTION_TYPES, C as CAPTCHA_TYPES } from './constants-CZ7swzMG.js';
14
+ import { Q as QUESTION_TYPES, C as CAPTCHA_TYPES } from './constants-BlY0KFT4.js';
15
15
  import { shallow } from 'zustand/shallow';
16
16
  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 Equals from '@bigbinary/neeto-icons/Equals';
20
+ import { GripVertical, ListTodo, X } 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';
@@ -31,7 +31,6 @@ import OptionFields from '@bigbinary/neeto-molecules/v2/OptionFields';
31
31
  import { AnimatePresence, motion } from 'framer-motion';
32
32
  import CreatableSelect from 'react-select/creatable';
33
33
  import _toArray from '@babel/runtime/helpers/toArray';
34
- import Close from '@bigbinary/neeto-icons/Close';
35
34
  import { components } from 'react-select';
36
35
  import _asyncToGenerator from '@babel/runtime/helpers/asyncToGenerator';
37
36
  import _regeneratorRuntime from '@babel/runtime/regenerator';
@@ -40,31 +39,8 @@ import '@bigbinary/neeto-commons-frontend/constants';
40
39
  import '@bigbinary/neeto-commons-frontend/react-utils';
41
40
  import 'axios';
42
41
  import '@bigbinary/neeto-commons-frontend/utils';
43
- import '@bigbinary/neeto-icons/Address';
44
- import '@bigbinary/neeto-icons/Calendar';
45
- import '@bigbinary/neeto-icons/Captcha';
46
- import '@bigbinary/neeto-icons/Checkbox';
47
- import '@bigbinary/neeto-icons/DropdownClosed';
48
- import '@bigbinary/neeto-icons/Email';
49
- import '@bigbinary/neeto-icons/FileUpload';
50
- import '@bigbinary/neeto-icons/Group';
51
- import '@bigbinary/neeto-icons/Hash';
52
- import '@bigbinary/neeto-icons/Header';
53
- import '@bigbinary/neeto-icons/Location';
54
- import '@bigbinary/neeto-icons/LongText';
55
- import '@bigbinary/neeto-icons/MessageSquare';
56
- import '@bigbinary/neeto-icons/NeetoInvisible';
57
- import '@bigbinary/neeto-icons/PhoneRing';
58
- import '@bigbinary/neeto-icons/Radio';
59
- import '@bigbinary/neeto-icons/Rating';
60
- import '@bigbinary/neeto-icons/Scale';
61
- import '@bigbinary/neeto-icons/Sms';
62
- import '@bigbinary/neeto-icons/Terms';
63
- import '@bigbinary/neeto-icons/TextLines';
64
- import '@bigbinary/neeto-icons/UserRoundedRect';
65
42
  import 'dompurify';
66
43
  import '@babel/runtime/helpers/typeof';
67
- import '@bigbinary/neeto-icons/Plus';
68
44
  import 'zustand';
69
45
  import './index-CUrkh_zd.js';
70
46
  import '@bigbinary/neeto-editor/utils';
@@ -149,15 +125,12 @@ var DeleteSmsReminderModal = function DeleteSmsReminderModal(_ref) {
149
125
  onClose: onClose,
150
126
  children: [/*#__PURE__*/jsx(Dialog.Header, {
151
127
  children: /*#__PURE__*/jsx(Dialog.Title, {
152
- children: /*#__PURE__*/jsx(Typography, {
153
- "data-testid": "delete-sms-reminder-modal-header",
154
- variant: "h2",
155
- weight: "medium",
156
- children: path(["smsReminder", "deleteModal", "title"], hostSpecificData)
157
- })
128
+ "data-testid": "delete-sms-reminder-modal-header",
129
+ children: path(["smsReminder", "deleteModal", "title"], hostSpecificData)
158
130
  })
159
131
  }), /*#__PURE__*/jsx(Dialog.Body, {
160
132
  children: /*#__PURE__*/jsx(Typography, {
133
+ color: "muted",
161
134
  "data-testid": "delete-sms-reminder-modal-description",
162
135
  variant: "body2",
163
136
  children: path(["smsReminder", "deleteModal", "description"], hostSpecificData)
@@ -183,6 +156,7 @@ var DeleteSpotModal = function DeleteSpotModal(_ref) {
183
156
  })
184
157
  }), /*#__PURE__*/jsx(Dialog.Body, {
185
158
  children: /*#__PURE__*/jsx(Typography, {
159
+ color: "muted",
186
160
  "data-testid": "delete-spot-modal-description",
187
161
  variant: "body2",
188
162
  children: description
@@ -218,6 +192,9 @@ var ChangeLanguageDropdown = function ChangeLanguageDropdown(_ref) {
218
192
  variant: "outline"
219
193
  },
220
194
  disabled: isReorderingQuestions,
195
+ dropdownProps: {
196
+ className: "w-max"
197
+ },
221
198
  label: selectedLanguageName,
222
199
  children: /*#__PURE__*/jsx(DropdownMenu.Menu, {
223
200
  children: availableLanguages.map(function (_ref2) {
@@ -248,9 +225,7 @@ var Overview = function Overview(_ref) {
248
225
  className: "flex items-center justify-between",
249
226
  children: [/*#__PURE__*/jsx(Typography, {
250
227
  "data-testid": "neeto-form-engine-overview-title",
251
- lineHeight: "leading-normal",
252
- variant: "h2",
253
- weight: "semibold",
228
+ variant: "h4",
254
229
  children: title
255
230
  }), /*#__PURE__*/jsxs("div", {
256
231
  className: "flex shrink-0 items-center justify-between space-x-1",
@@ -262,13 +237,14 @@ var Overview = function Overview(_ref) {
262
237
  variant: "outline"
263
238
  },
264
239
  dropdownProps: {
265
- strategy: "fixed",
240
+ className: "w-max",
266
241
  position: "bottom-start"
267
242
  },
268
243
  menuItems: additionalActionOptions
269
244
  })]
270
245
  })]
271
246
  }), /*#__PURE__*/jsx(Typography, {
247
+ color: "muted",
272
248
  "data-testid": "neeto-form-engine-overview-description",
273
249
  variant: "body2",
274
250
  children: description
@@ -310,8 +286,8 @@ var Card = function Card(_ref) {
310
286
  }, [questionLabel]);
311
287
  return /*#__PURE__*/jsxs("div", {
312
288
  "data-testid": "neeto-form-engine-".concat(slugify(questionLabel)),
313
- className: classnames("neeto-ui-rounded neeto-ui-border-gray-300 neeto-ui-bg-white neeto-form-nano-form__card flex h-10 w-full items-center justify-between gap-2 overflow-hidden border p-2", {
314
- "border-primary-500 neeto-form-nano-form__card--active": isActive
289
+ className: classnames("border-border bg-card neeto-form-nano-form__card flex h-10 w-full items-center justify-between gap-2 overflow-hidden rounded-md border p-2", {
290
+ "border-primary neeto-form-nano-form__card--active": isActive
315
291
  }),
316
292
  onClick: function onClick() {
317
293
  return onSelect(question);
@@ -319,7 +295,7 @@ var Card = function Card(_ref) {
319
295
  children: [/*#__PURE__*/jsxs("div", {
320
296
  className: "flex min-w-0 grow items-center gap-2",
321
297
  children: [KindIcon && /*#__PURE__*/jsx(KindIcon, {
322
- className: "neeto-ui-text-gray-600 shrink-0",
298
+ className: "text-muted-foreground shrink-0",
323
299
  "data-testid": "question-card-kind-icon",
324
300
  size: 16
325
301
  }), /*#__PURE__*/jsx(Tooltip, {
@@ -329,7 +305,6 @@ var Card = function Card(_ref) {
329
305
  children: /*#__PURE__*/jsx(Typography, {
330
306
  className: "min-w-0 grow truncate",
331
307
  "data-testid": "".concat(slugify(questionLabel), "-question-card-label"),
332
- lineHeight: "snug",
333
308
  ref: questionLabelRef,
334
309
  variant: "body2",
335
310
  weight: "medium",
@@ -341,7 +316,7 @@ var Card = function Card(_ref) {
341
316
  className: "shrink-0"
342
317
  },
343
318
  dropdownProps: {
344
- strategy: "fixed"
319
+ className: "w-max"
345
320
  },
346
321
  menuItems: [{
347
322
  "data-testid": "edit-question",
@@ -411,9 +386,9 @@ var Questions = function Questions(_ref) {
411
386
  className: "flex items-center gap-1",
412
387
  ref: innerRef,
413
388
  children: [canManageQuestions && /*#__PURE__*/jsx("span", _objectSpread$j(_objectSpread$j({}, dragHandleProps), {}, {
414
- className: "neeto-ui-text-gray-400 hover:neeto-ui-text-gray-500 shrink-0 cursor-grab transition-all duration-300 ease-in-out",
389
+ className: "text-muted-foreground hover:text-foreground shrink-0 cursor-grab transition-all duration-300 ease-in-out",
415
390
  "data-testid": "question-card-drag-handle",
416
- children: /*#__PURE__*/jsx(Equals, {
391
+ children: /*#__PURE__*/jsx(GripVertical, {
417
392
  size: 16
418
393
  })
419
394
  })), /*#__PURE__*/jsx("div", {
@@ -654,6 +629,7 @@ var AddFirstQuestion = function AddFirstQuestion(_ref) {
654
629
  helpText: isPresent(href) ? /*#__PURE__*/jsx(HelpText, {
655
630
  href: href
656
631
  }) : null,
632
+ icon: ListTodo,
657
633
  primaryButtonProps: buildAddQuestionButtonProps(onAdd, isDisabled),
658
634
  title: t("neetoForm.questions.common.noData")
659
635
  })
@@ -676,8 +652,9 @@ var NAME = QUESTION_TYPES.NAME,
676
652
  FILE_UPLOAD$1 = QUESTION_TYPES.FILE_UPLOAD,
677
653
  CAPTCHA$1 = QUESTION_TYPES.CAPTCHA,
678
654
  SMS_REMINDER = QUESTION_TYPES.SMS_REMINDER,
679
- ADDRESS$1 = QUESTION_TYPES.ADDRESS;
680
- var QUESTIONS_WITH_ADDITIONAL_DATA = [].concat(_toConsumableArray(SELECTABLE_KINDS), [STAR_RATING$1, OPINION_SCALE$1, RATING$1, FILE_UPLOAD$1, CAPTCHA$1, EMAIL$1, ADDRESS$1]);
655
+ ADDRESS$1 = QUESTION_TYPES.ADDRESS,
656
+ YES_NO$1 = QUESTION_TYPES.YES_NO;
657
+ var QUESTIONS_WITH_ADDITIONAL_DATA = [].concat(_toConsumableArray(SELECTABLE_KINDS), [STAR_RATING$1, OPINION_SCALE$1, RATING$1, FILE_UPLOAD$1, CAPTCHA$1, EMAIL$1, ADDRESS$1, YES_NO$1]);
681
658
  var QUESTIONS_WITH_PLACEHOLDERS = [NAME, PHONE, EMAIL$1, ADDITIONAL_GUESTS, TEXT, TEXTAREA, RICH_TEXT, INTEGER, DECIMAL, DATE, SMS_REMINDER];
682
659
  var DEFAULT_PLACEHOLDERS = {
683
660
  CHECKBOX: t("neetoForm.questions.common.questionFields.field.labelExample", {
@@ -712,7 +689,7 @@ var KindOption = function KindOption(_ref) {
712
689
  return /*#__PURE__*/jsxs("div", {
713
690
  className: "flex items-start gap-2",
714
691
  children: [Icon && /*#__PURE__*/jsx(Icon, {
715
- className: "neeto-ui-text-gray-700 mt-0.5 shrink-0",
692
+ className: "text-foreground mt-0.5 shrink-0",
716
693
  "data-testid": "kind-option-icon",
717
694
  size: 16
718
695
  }), /*#__PURE__*/jsxs("div", {
@@ -721,7 +698,8 @@ var KindOption = function KindOption(_ref) {
721
698
  variant: "body2",
722
699
  children: label
723
700
  }), description && /*#__PURE__*/jsx(Typography, {
724
- className: "text-muted-foreground mt-0.5",
701
+ className: "mt-0.5",
702
+ color: "muted",
725
703
  "data-testid": "kind-option-description",
726
704
  variant: "body3",
727
705
  children: description
@@ -814,7 +792,8 @@ var Name = function Name(_ref) {
814
792
  className: "space-y-4",
815
793
  children: [!usesCustomSubmissionComponent && /*#__PURE__*/jsx(Switch, {
816
794
  label: t("neetoForm.common.splitAsFirstAndLastNames"),
817
- name: "isSplitMode"
795
+ name: "isSplitMode",
796
+ size: "lg"
818
797
  }), isSplitMode && !usesCustomSubmissionComponent ? /*#__PURE__*/jsxs(Fragment, {
819
798
  children: [/*#__PURE__*/jsx(LabelWithPlaceholder, _objectSpread$f(_objectSpread$f({}, commonProps), {}, {
820
799
  handleLabelChange: function handleLabelChange(value) {
@@ -980,7 +959,8 @@ var RequiredSwitch = withT(function (_ref) {
980
959
  className: "w-full",
981
960
  children: /*#__PURE__*/jsx(Switch, {
982
961
  label: t("neetoForm.common.required"),
983
- name: "isRequired"
962
+ name: "isRequired",
963
+ size: "lg"
984
964
  })
985
965
  });
986
966
  });
@@ -1050,6 +1030,7 @@ var Textarea = function Textarea() {
1050
1030
  checked: isMinWordsEnabled,
1051
1031
  label: t("neetoForm.questions.textarea.minimumWords"),
1052
1032
  labelProps: MIN_WORDS_SWITCH_LABEL_PROPS,
1033
+ size: "lg",
1053
1034
  onCheckedChange: handleToggleChange
1054
1035
  }), isMinWordsEnabled && /*#__PURE__*/jsx(Input, {
1055
1036
  className: "w-42 ms-14",
@@ -1227,20 +1208,24 @@ var Form$1 = function Form(_ref) {
1227
1208
  children: [shouldShowRequiredSwitch && /*#__PURE__*/jsx(RequiredSwitch, {}), shouldShowHideSwitch && /*#__PURE__*/jsx(Switch, {
1228
1209
  label: t("neetoForm.common.hideQuestion"),
1229
1210
  name: "isHidden",
1211
+ size: "lg",
1230
1212
  labelProps: hideSwitchLabelProps(hideQuestionHelpDocUrl)
1231
1213
  }), canRestrictResponseVisibilityToHost && /*#__PURE__*/jsx(Switch, {
1232
1214
  label: t("neetoForm.common.responseVisibleOnlyToHost"),
1233
1215
  name: "isResponseVisibleOnlyToHost",
1216
+ size: "lg",
1234
1217
  labelProps: responseVisibleOnlyToHostSwitchLabelProps(responseVisibleOnlyToHostHelpDocUrl)
1235
1218
  })]
1236
1219
  }), canMarkResponsesAsReadOnly && /*#__PURE__*/jsx(Switch, {
1237
1220
  label: t("neetoForm.common.readOnly"),
1238
1221
  labelProps: readOnlySwitchLabelProps(readOnlyHelpDocUrl),
1239
- name: "isReadOnly"
1222
+ name: "isReadOnly",
1223
+ size: "lg"
1240
1224
  }), shouldShowSendSmsUpdatesSwitch && /*#__PURE__*/jsx(Switch, {
1241
1225
  disabled: isSmsUpdatesDisabled,
1242
1226
  label: t("neetoForm.common.sendSmsUpdates"),
1243
1227
  name: "sendSmsUpdates",
1228
+ size: "lg",
1244
1229
  labelProps: sendSmsUpdatesSwitchLabelProps(sendSmsUpdatesHelpDocUrl)
1245
1230
  }), isTextarea && enforceMinWordsInMultiLineTexts && /*#__PURE__*/jsx(Textarea, {})]
1246
1231
  }), shouldShowFieldCode && /*#__PURE__*/jsx(Accordion, {
@@ -1398,30 +1383,27 @@ var Add = function Add(_ref) {
1398
1383
  }
1399
1384
  });
1400
1385
  };
1401
- return /*#__PURE__*/jsxs(Fragment, {
1386
+ return /*#__PURE__*/jsxs(Form$2, {
1387
+ className: "flex min-h-0 flex-1 flex-col gap-4",
1388
+ formikProps: {
1389
+ initialValues: INITIAL_VALUES,
1390
+ validationSchema: formValidationSchema(INITIAL_VALUES, isFieldCodeEnabled),
1391
+ onSubmit: handleSubmit
1392
+ },
1402
1393
  children: [/*#__PURE__*/jsx(Sheet.Header, {
1403
1394
  children: /*#__PURE__*/jsx(Sheet.Title, {
1404
1395
  "data-testid": "add-question-pane-header",
1405
1396
  children: t("neetoForm.questions.common.primaryPanel.addQuestion")
1406
1397
  })
1407
- }), /*#__PURE__*/jsx(Form$2, {
1408
- formikProps: {
1409
- initialValues: INITIAL_VALUES,
1410
- validationSchema: formValidationSchema(INITIAL_VALUES, isFieldCodeEnabled),
1411
- onSubmit: handleSubmit
1412
- },
1413
- children: /*#__PURE__*/jsxs(Fragment, {
1414
- children: [/*#__PURE__*/jsx(Form$1, _objectSpread$c({}, _objectSpread$c(_objectSpread$c({}, props), {}, {
1415
- question: question,
1416
- questions: questions
1417
- }))), /*#__PURE__*/jsx(Sheet.Footer, {
1418
- children: /*#__PURE__*/jsx(ActionBlock, {
1419
- cancelButtonProps: {
1420
- onClick: onClose
1421
- },
1422
- isSubmitting: isCreating
1423
- })
1424
- })]
1398
+ }), /*#__PURE__*/jsx(Form$1, _objectSpread$c({}, _objectSpread$c(_objectSpread$c({}, props), {}, {
1399
+ question: question,
1400
+ questions: questions
1401
+ }))), /*#__PURE__*/jsx(Sheet.Footer, {
1402
+ children: /*#__PURE__*/jsx(ActionBlock, {
1403
+ cancelButtonProps: {
1404
+ onClick: onClose
1405
+ },
1406
+ isSubmitting: isCreating
1425
1407
  })
1426
1408
  })]
1427
1409
  });
@@ -1474,42 +1456,33 @@ var Edit = function Edit(_ref) {
1474
1456
  }
1475
1457
  });
1476
1458
  };
1477
- return /*#__PURE__*/jsxs(Fragment, {
1459
+ return /*#__PURE__*/jsxs(Form$2, {
1460
+ className: "flex min-h-0 flex-1 flex-col gap-4",
1461
+ formikProps: {
1462
+ // Sheet keeps children mounted, so this renders once before a
1463
+ // question is selected; without this those empty values stick.
1464
+ enableReinitialize: true,
1465
+ initialValues: _objectSpread$b(_objectSpread$b({}, question), {}, {
1466
+ isMinWordsEnabled: isPresent(question.minWords)
1467
+ }),
1468
+ validationSchema: formValidationSchema(question, isFieldCodeEnabled),
1469
+ onSubmit: handleSubmit
1470
+ },
1478
1471
  children: [/*#__PURE__*/jsx(Sheet.Header, {
1479
1472
  children: /*#__PURE__*/jsx(Sheet.Title, {
1480
- asChild: true,
1481
- children: /*#__PURE__*/jsx(Typography, {
1482
- "data-testid": "edit-question-pane-header",
1483
- variant: "h2",
1484
- children: t("neetoForm.questions.common.editQuestion")
1485
- })
1473
+ "data-testid": "edit-question-pane-header",
1474
+ children: t("neetoForm.questions.common.editQuestion")
1486
1475
  })
1487
- }), /*#__PURE__*/jsx(Form$2, {
1488
- formikProps: {
1489
- // Sheet keeps children mounted, so this renders once before a
1490
- // question is selected; without this those empty values stick.
1491
- enableReinitialize: true,
1492
- initialValues: _objectSpread$b(_objectSpread$b({}, question), {}, {
1493
- isMinWordsEnabled: isPresent(question.minWords)
1494
- }),
1495
- validationSchema: formValidationSchema(question, isFieldCodeEnabled),
1496
- onSubmit: handleSubmit
1497
- },
1498
- children: /*#__PURE__*/jsxs(Fragment, {
1499
- children: [/*#__PURE__*/jsx(Sheet.Body, {
1500
- children: /*#__PURE__*/jsx(Form$1, _objectSpread$b(_objectSpread$b({}, _objectSpread$b({
1501
- question: question
1502
- }, props)), {}, {
1503
- isEdit: true
1504
- }))
1505
- }), /*#__PURE__*/jsx(Sheet.Footer, {
1506
- children: /*#__PURE__*/jsx(ActionBlock, {
1507
- cancelButtonProps: {
1508
- onClick: onClose
1509
- },
1510
- isSubmitting: isUpdating
1511
- })
1512
- })]
1476
+ }), /*#__PURE__*/jsx(Form$1, _objectSpread$b(_objectSpread$b({}, _objectSpread$b({
1477
+ question: question
1478
+ }, props)), {}, {
1479
+ isEdit: true
1480
+ })), /*#__PURE__*/jsx(Sheet.Footer, {
1481
+ children: /*#__PURE__*/jsx(ActionBlock, {
1482
+ cancelButtonProps: {
1483
+ onClick: onClose
1484
+ },
1485
+ isSubmitting: isUpdating
1513
1486
  })
1514
1487
  })]
1515
1488
  });
@@ -1526,8 +1499,7 @@ var Block = function Block(_ref) {
1526
1499
  className: "flex items-center justify-between",
1527
1500
  "data-testid": "properties-header",
1528
1501
  children: /*#__PURE__*/jsx(Typography, {
1529
- variant: "body1",
1530
- weight: "semibold",
1502
+ variant: "h6",
1531
1503
  children: title
1532
1504
  })
1533
1505
  }), /*#__PURE__*/jsx("div", {
@@ -1702,20 +1674,12 @@ var ManagePane = function ManagePane(_ref) {
1702
1674
  }
1703
1675
  };
1704
1676
  };
1705
- return /*#__PURE__*/jsxs(Sheet, {
1677
+ return /*#__PURE__*/jsx(Sheet, {
1706
1678
  initialFocusRef: initialFocusRef,
1707
1679
  isOpen: isOpen,
1708
1680
  onClose: onClose,
1709
- children: [/*#__PURE__*/jsx(Sheet.Header, {
1710
- children: /*#__PURE__*/jsx(Sheet.Title, {
1711
- children: /*#__PURE__*/jsx(Typography, {
1712
- "data-testid": "add-address-field-title",
1713
- variant: "h2",
1714
- weight: "semibold",
1715
- children: title
1716
- })
1717
- })
1718
- }), /*#__PURE__*/jsx(Form$2, {
1681
+ children: /*#__PURE__*/jsx(Form$2, {
1682
+ className: "flex min-h-0 flex-1 flex-col gap-4",
1719
1683
  formikProps: {
1720
1684
  initialValues: initialValues,
1721
1685
  validationSchema: ADDRESS_FIELD_FORM_VALIDATION_SCHEMA,
@@ -1726,7 +1690,12 @@ var ManagePane = function ManagePane(_ref) {
1726
1690
  var values = _ref3.values,
1727
1691
  setFieldValue = _ref3.setFieldValue;
1728
1692
  return /*#__PURE__*/jsxs(Fragment, {
1729
- children: [/*#__PURE__*/jsx(Sheet.Body, {
1693
+ children: [/*#__PURE__*/jsx(Sheet.Header, {
1694
+ children: /*#__PURE__*/jsx(Sheet.Title, {
1695
+ "data-testid": "add-address-field-title",
1696
+ children: title
1697
+ })
1698
+ }), /*#__PURE__*/jsx(Sheet.Body, {
1730
1699
  children: /*#__PURE__*/jsxs("div", {
1731
1700
  className: "w-full space-y-6",
1732
1701
  children: [/*#__PURE__*/jsx(Input, {
@@ -1760,7 +1729,8 @@ var ManagePane = function ManagePane(_ref) {
1760
1729
  className: "flex items-center gap-4",
1761
1730
  children: /*#__PURE__*/jsx(Switch, {
1762
1731
  label: t("neetoForm.common.required"),
1763
- name: "isRequired"
1732
+ name: "isRequired",
1733
+ size: "lg"
1764
1734
  })
1765
1735
  })]
1766
1736
  })
@@ -1782,7 +1752,7 @@ var ManagePane = function ManagePane(_ref) {
1782
1752
  })]
1783
1753
  });
1784
1754
  }
1785
- })]
1755
+ })
1786
1756
  });
1787
1757
  };
1788
1758
 
@@ -1922,7 +1892,9 @@ var SwitchBlock = function SwitchBlock(_ref) {
1922
1892
  return /*#__PURE__*/jsxs(Label, {
1923
1893
  className: classnames("flex items-center justify-start gap-2 ", className),
1924
1894
  "data-testid": "neeto-form-engine-".concat(hyphenate(title && name), "-toggle-label"),
1925
- children: [/*#__PURE__*/jsx(Switch, _objectSpread$7(_objectSpread$7({}, _objectSpread$7(_objectSpread$7({}, otherProps), {}, {
1895
+ children: [/*#__PURE__*/jsx(Switch, _objectSpread$7(_objectSpread$7({
1896
+ size: "lg"
1897
+ }, _objectSpread$7(_objectSpread$7({}, otherProps), {}, {
1926
1898
  name: name
1927
1899
  })), {}, {
1928
1900
  "data-testid": "neeto-form-engine-".concat(hyphenate(title && name), "-switch")
@@ -1956,18 +1928,18 @@ function ownKeys$6(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymb
1956
1928
  function _objectSpread$6(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$6(Object(t), true).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$6(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
1957
1929
  var STYLES = {
1958
1930
  border: {
1959
- "default": "1px solid rgb(var(--neeto-ui-gray-400))",
1960
- error: "1px solid rgb(var(--neeto-ui-error-800)) !important"
1931
+ "default": "1px solid var(--input)",
1932
+ error: "1px solid var(--error-solid) !important"
1961
1933
  },
1962
1934
  color: {
1963
- "default": "rgb(var(--neeto-ui-gray-800))",
1964
- error: "rgb(var(--neeto-ui-error-800)) !important"
1935
+ "default": "var(--foreground)",
1936
+ error: "var(--error-foreground) !important"
1965
1937
  }
1966
1938
  };
1967
1939
  var MultiValueRemove = function MultiValueRemove(props) {
1968
1940
  return /*#__PURE__*/jsx(components.MultiValueRemove, _objectSpread$6(_objectSpread$6({}, props), {}, {
1969
1941
  innerProps: _objectSpread$6(_objectSpread$6({}, props.innerProps), {}, _defineProperty({}, "data-testid", "".concat(hyphenize(props.data.label), "-remove-icon"))),
1970
- children: /*#__PURE__*/jsx(Close, {
1942
+ children: /*#__PURE__*/jsx(X, {
1971
1943
  size: 16
1972
1944
  })
1973
1945
  }));
@@ -1999,7 +1971,7 @@ var ValueContainer = function ValueContainer(_ref) {
1999
1971
  var ClearIndicator = function ClearIndicator(props) {
2000
1972
  return /*#__PURE__*/jsx(components.ClearIndicator, _objectSpread$6(_objectSpread$6({}, props), {}, {
2001
1973
  innerProps: _objectSpread$6(_objectSpread$6({}, props.innerProps), {}, _defineProperty({}, "data-testid", "clear-all-button")),
2002
- children: /*#__PURE__*/jsx(Close, {
1974
+ children: /*#__PURE__*/jsx(X, {
2003
1975
  className: "cursor-pointer",
2004
1976
  size: 16
2005
1977
  })
@@ -2293,7 +2265,8 @@ var VerifyEmails = function VerifyEmails() {
2293
2265
  children: /*#__PURE__*/jsx(Switch, {
2294
2266
  label: title,
2295
2267
  labelProps: buildHelpPopoverLabelProps(popoverDescription, helpLink),
2296
- name: "isVerificationEnabled"
2268
+ name: "isVerificationEnabled",
2269
+ size: "lg"
2297
2270
  })
2298
2271
  });
2299
2272
  };
@@ -2385,8 +2358,7 @@ var FileUpload = function FileUpload() {
2385
2358
  }), /*#__PURE__*/jsxs("div", {
2386
2359
  className: "flex flex-col space-y-3",
2387
2360
  children: [/*#__PURE__*/jsx(Typography, {
2388
- variant: "body1",
2389
- weight: "semibold",
2361
+ variant: "h6",
2390
2362
  children: t("neetoForm.fileUpload.fileTypes")
2391
2363
  }), /*#__PURE__*/jsx("div", {
2392
2364
  className: "flex space-x-4",
@@ -2438,7 +2410,8 @@ var OpinionScale = function OpinionScale() {
2438
2410
  }), /*#__PURE__*/jsx(Switch, {
2439
2411
  "data-testid": "neeto-form-engine-opinion-scale-show-labels-switch",
2440
2412
  label: t("neetoForm.questions.opinionScale.showLabels"),
2441
- name: "hasOpinionLabels"
2413
+ name: "hasOpinionLabels",
2414
+ size: "lg"
2442
2415
  }), hasOpinionLabels && /*#__PURE__*/jsxs("div", {
2443
2416
  className: "flex space-x-4",
2444
2417
  children: [/*#__PURE__*/jsx(Input, {
@@ -2538,10 +2511,12 @@ var Options = function Options(_ref) {
2538
2511
  className: "space-y-4",
2539
2512
  children: [/*#__PURE__*/jsx(Switch, {
2540
2513
  name: "isPictureChoice",
2514
+ size: "lg",
2541
2515
  label: t("neetoForm.questions.common.questionFields.field.addPicturesToOptions")
2542
2516
  }), isPictureChoice && /*#__PURE__*/jsxs(Fragment, {
2543
2517
  children: [/*#__PURE__*/jsx(Switch, {
2544
2518
  name: "shouldFitImages",
2519
+ size: "lg",
2545
2520
  label: t("neetoForm.questions.common.questionFields.field.fitImages"),
2546
2521
  labelProps: {
2547
2522
  helpIconProps: {
@@ -2646,9 +2621,9 @@ var StarRating = function StarRating() {
2646
2621
  var isActive = name === iconType;
2647
2622
  return /*#__PURE__*/jsx("div", {
2648
2623
  "data-testid": "neeto-form-engine-star-rating-icon-".concat(name),
2649
- className: classnames("flex h-10 w-10 items-center justify-center gap-2", "neeto-ui-border-gray-800 neeto-ui-rounded-full cursor-pointer border", "transition-all duration-300 ease-in-out", {
2650
- "text-foreground neeto-ui-bg-gray-200": !isActive,
2651
- "neeto-ui-text-white neeto-ui-bg-gray-800": isActive
2624
+ className: classnames("flex h-10 w-10 items-center justify-center gap-2", "border-foreground cursor-pointer rounded-full border", "transition-all duration-300 ease-in-out", {
2625
+ "text-foreground bg-muted": !isActive,
2626
+ "text-background bg-foreground": isActive
2652
2627
  }),
2653
2628
  onClick: function onClick() {
2654
2629
  return setIconType(name);
@@ -2660,6 +2635,51 @@ var StarRating = function StarRating() {
2660
2635
  });
2661
2636
  };
2662
2637
 
2638
+ var YesNo = function YesNo() {
2639
+ var _useTranslation = useTranslation(),
2640
+ t = _useTranslation.t;
2641
+ var _useField = useField("isIconEnabled"),
2642
+ _useField2 = _slicedToArray(_useField, 1),
2643
+ isIconEnabled = _useField2[0].value;
2644
+ var _useField3 = useField("iconType"),
2645
+ _useField4 = _slicedToArray(_useField3, 3),
2646
+ iconType = _useField4[0].value;
2647
+ _useField4[1];
2648
+ var setIconType = _useField4[2].setValue;
2649
+ return /*#__PURE__*/jsxs(Fragment, {
2650
+ children: [/*#__PURE__*/jsx(Switch, {
2651
+ "data-testid": "neeto-form-engine-yes-no-show-icons",
2652
+ label: t("neetoForm.questions.yesNo.showIcons"),
2653
+ name: "isIconEnabled"
2654
+ }), isIconEnabled && /*#__PURE__*/jsxs(Fragment, {
2655
+ children: [/*#__PURE__*/jsx(Label, {
2656
+ children: t("neetoForm.common.shape")
2657
+ }), /*#__PURE__*/jsx("div", {
2658
+ className: "flex gap-2",
2659
+ children: Object.entries(YES_NO_ICONS_MAP).map(function (_ref) {
2660
+ var _ref2 = _slicedToArray(_ref, 2),
2661
+ name = _ref2[0],
2662
+ _ref2$ = _ref2[1],
2663
+ Yes = _ref2$.Yes,
2664
+ No = _ref2$.No;
2665
+ var isActive = name === iconType;
2666
+ return /*#__PURE__*/jsxs("div", {
2667
+ "data-testid": "neeto-form-engine-yes-no-icon-".concat(name),
2668
+ className: classnames("flex items-center justify-center gap-2 px-3 py-2", "border-foreground cursor-pointer rounded-full border", "transition-all duration-300 ease-in-out", {
2669
+ "text-foreground bg-muted": !isActive,
2670
+ "text-background bg-foreground": isActive
2671
+ }),
2672
+ onClick: function onClick() {
2673
+ return setIconType(name);
2674
+ },
2675
+ children: [/*#__PURE__*/jsx(Yes, {}), /*#__PURE__*/jsx(No, {})]
2676
+ }, name);
2677
+ })
2678
+ })]
2679
+ })]
2680
+ });
2681
+ };
2682
+
2663
2683
  var _excluded$1 = ["minWords"],
2664
2684
  _excluded2 = ["fields"];
2665
2685
  function ownKeys$2(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; }
@@ -2673,7 +2693,8 @@ var CHECKBOX = QUESTION_TYPES.CHECKBOX,
2673
2693
  FILE_UPLOAD = QUESTION_TYPES.FILE_UPLOAD,
2674
2694
  CAPTCHA = QUESTION_TYPES.CAPTCHA,
2675
2695
  EMAIL = QUESTION_TYPES.EMAIL,
2676
- ADDRESS = QUESTION_TYPES.ADDRESS;
2696
+ ADDRESS = QUESTION_TYPES.ADDRESS,
2697
+ YES_NO = QUESTION_TYPES.YES_NO;
2677
2698
  var transformValueForOption = function transformValueForOption(_ref) {
2678
2699
  var label = _ref.label,
2679
2700
  type = _ref.type;
@@ -2699,6 +2720,8 @@ var renderAdditionalData = function renderAdditionalData(_ref2) {
2699
2720
  return /*#__PURE__*/jsx(StarRating, {});
2700
2721
  case OPINION_SCALE:
2701
2722
  return /*#__PURE__*/jsx(OpinionScale, {});
2723
+ case YES_NO:
2724
+ return /*#__PURE__*/jsx(YesNo, {});
2702
2725
  case FILE_UPLOAD:
2703
2726
  return /*#__PURE__*/jsx(FileUpload, {});
2704
2727
  case CAPTCHA: