@itcase/forms 1.1.27 → 1.1.28

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.
@@ -1,5 +1,5 @@
1
1
  import { isPossiblePhoneNumber } from 'libphonenumber-js';
2
- import React$1, { useMemo, useEffect, useState, useCallback } from 'react';
2
+ import React, { useMemo, useEffect, useState, useCallback } from 'react';
3
3
  import { setIn, FORM_ERROR, getIn } from 'final-form';
4
4
  import { useForm, Field, Form, FormSpy } from 'react-final-form';
5
5
  export { Field, useForm, useFormState } from 'react-final-form';
@@ -339,56 +339,56 @@ function FieldWrapperBase(props) {
339
339
  const errorTextSize = props[`${errorKey}MessageTextSize`];
340
340
  const errorTextColor = props[`${errorKey}MessageTextColor`];
341
341
  const errorTextWeight = props[`${errorKey}MessageTextWeight`];
342
- return /*#__PURE__*/React$1.createElement(Tag, {
342
+ return /*#__PURE__*/React.createElement(Tag, {
343
343
  dataTestId: `${inputName}Field`,
344
344
  dataTour: dataTour,
345
345
  className: clsx(formFieldClass, 'form__item', 'form-field', type && `form-field_type_${type}`, sizeClass, fillClass, shapeClass, isDisabled && `form-field_state_disabled`, isHidden && `form-field_state_hidden`, directionClass, widthClass),
346
346
  style: formFieldStyles
347
- }, before, (label || labelHidden) && /*#__PURE__*/React$1.createElement("div", {
347
+ }, before, (label || labelHidden) && /*#__PURE__*/React.createElement("div", {
348
348
  dataTestId: `${inputName}FieldLabel`,
349
349
  className: clsx('form-field__label'),
350
350
  htmlFor: id
351
- }, /*#__PURE__*/React$1.createElement(Text, {
351
+ }, /*#__PURE__*/React.createElement(Text, {
352
352
  size: labelTextSize,
353
353
  textColor: labelTextColor,
354
354
  textWeight: labelTextWeight,
355
355
  sizeMobile: labelTextSizeMobile,
356
356
  sizeTablet: labelTextSizeTablet
357
- }, label, labelHidden && '\u00A0')), desc && /*#__PURE__*/React$1.createElement("div", {
357
+ }, label, labelHidden && '\u00A0')), desc && /*#__PURE__*/React.createElement("div", {
358
358
  className: "form-field__desc",
359
359
  dataTestId: `${inputName}FieldDesc`
360
- }, /*#__PURE__*/React$1.createElement(Text, {
360
+ }, /*#__PURE__*/React.createElement(Text, {
361
361
  size: descTextSize,
362
362
  textColor: descTextColor,
363
363
  textWeight: descTextWeight
364
- }, desc)), /*#__PURE__*/React$1.createElement("div", {
364
+ }, desc)), /*#__PURE__*/React.createElement("div", {
365
365
  className: clsx('form-field__content', inputFillClass, inputShapeClass)
366
- }, /*#__PURE__*/React$1.createElement("div", {
366
+ }, /*#__PURE__*/React.createElement("div", {
367
367
  className: clsx('form-field__content-inner', fieldClass)
368
- }, beforeItem, children, afterItem), showDivider && /*#__PURE__*/React$1.createElement(Divider, {
368
+ }, beforeItem, children, afterItem), showDivider && /*#__PURE__*/React.createElement(Divider, {
369
369
  className: "form-field__item-divider",
370
370
  width: dividerWidth,
371
371
  direction: dividerDirection,
372
372
  size: dividerSize,
373
373
  fill: dividerFill
374
- })), showMessage && /*#__PURE__*/React$1.createElement("div", {
374
+ })), showMessage && /*#__PURE__*/React.createElement("div", {
375
375
  dataTestId: `${inputName}FieldMessage`,
376
376
  className: "form-field__message"
377
- }, isErrorState && errorMessage && /*#__PURE__*/React$1.createElement(Text, {
377
+ }, isErrorState && errorMessage && /*#__PURE__*/React.createElement(Text, {
378
378
  id: `${inputName}-error`,
379
379
  dataTestId: `${inputName}FieldMessageError`,
380
380
  className: "form-field__message-item form-field__message-item_type-error",
381
381
  size: errorTextSize,
382
382
  textColor: errorTextColor,
383
383
  textWeight: errorTextWeight
384
- }, errorMessage), Boolean(helpText) && (!isErrorState || !errorMessage) && /*#__PURE__*/React$1.createElement(Text, {
384
+ }, errorMessage), Boolean(helpText) && (!isErrorState || !errorMessage) && /*#__PURE__*/React.createElement(Text, {
385
385
  dataTestId: `${inputName}FieldMessageHelpText`,
386
386
  className: "form-field__message-item form-field__message-item_type_help-text",
387
387
  size: helpTextSize,
388
388
  textColor: isValidState ? helpTextColorSuccess : helpTextColor,
389
389
  textWeight: helpTextWeight,
390
390
  sizeMobile: helpTextSizeMobile
391
- }, helpText), (!isErrorState && !helpText || isErrorState && !helpText && !errorMessage) && /*#__PURE__*/React$1.createElement(Text, {
391
+ }, helpText), (!isErrorState && !helpText || isErrorState && !helpText && !errorMessage) && /*#__PURE__*/React.createElement(Text, {
392
392
  dataTestId: `${inputName}FieldMessageHelpText`,
393
393
  className: "form-field__message-item form-field__message-item_type_help-text",
394
394
  size: messageTextSize
@@ -407,7 +407,7 @@ function FieldWrapper(props) {
407
407
  change(inputName, undefined);
408
408
  };
409
409
  }, []);
410
- return /*#__PURE__*/React$1.createElement(FieldWrapperBase, props);
410
+ return /*#__PURE__*/React.createElement(FieldWrapperBase, props);
411
411
  }
412
412
 
413
413
  const defaultDropzoneProps = {
@@ -431,7 +431,7 @@ const defaultDropzoneProps = {
431
431
  isPreviews: true
432
432
  };
433
433
 
434
- const FileInputDropzone = /*#__PURE__*/React$1.memo(function FileInputDropzone(props) {
434
+ const FileInputDropzone = /*#__PURE__*/React.memo(function FileInputDropzone(props) {
435
435
  const {
436
436
  className,
437
437
  maxFiles,
@@ -614,85 +614,85 @@ const FileInputDropzone = /*#__PURE__*/React$1.memo(function FileInputDropzone(p
614
614
  thumbNameTextWeight,
615
615
  thumbNameTextWrap
616
616
  } = propsGenerator;
617
- return /*#__PURE__*/React$1.createElement(React$1.Fragment, null, /*#__PURE__*/React$1.createElement("div", getRootProps({
617
+ return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement("div", getRootProps({
618
618
  className: `form-dropzone__dropzone dropzone ${className} form-dropzone__dropzone_size_${size} ${shapeClass}`
619
- }), /*#__PURE__*/React$1.createElement("input", Object.assign({}, getInputProps(), {
619
+ }), /*#__PURE__*/React.createElement("input", Object.assign({}, getInputProps(), {
620
620
  name: inputName
621
- })), /*#__PURE__*/React$1.createElement("div", {
621
+ })), /*#__PURE__*/React.createElement("div", {
622
622
  className: clsx('form-dropzone__dropzone-wrapper', thumbColumn && `form-dropzone__dropzone-wrapper_column_${thumbColumn}`, fillClass, fillHoverClass, borderWidthClass, borderColorClass, borderColorHoverClass, borderTypeClass)
623
- }, filesList.map((file, index) => /*#__PURE__*/React$1.createElement("aside", {
623
+ }, filesList.map((file, index) => /*#__PURE__*/React.createElement("aside", {
624
624
  className: clsx('form-dropzone__thumb', fillClass, thumbDirectionClass, thumbBorderWidthClass, thumbBorderColorClass, thumbBorderColorHoverClass, thumbBorderTypeClass),
625
625
  key: file.id || `${file.name}_${index}`
626
- }, isPreviews && !file.error && /*#__PURE__*/React$1.createElement("div", {
626
+ }, isPreviews && !file.error && /*#__PURE__*/React.createElement("div", {
627
627
  className: "form-dropzone__thumb-image"
628
- }, /*#__PURE__*/React$1.createElement("img", {
628
+ }, /*#__PURE__*/React.createElement("img", {
629
629
  className: "form-dropzone__thumb-image-inner",
630
630
  src: file.preview || file.image,
631
631
  onLoad: () => {
632
632
  // Revoke data uri after image is loaded
633
633
  URL.revokeObjectURL(file.preview);
634
634
  }
635
- })), file.error && /*#__PURE__*/React$1.createElement("div", null, /*#__PURE__*/React$1.createElement(Text, {
635
+ })), file.error && /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement(Text, {
636
636
  size: thumbNameTextSize,
637
637
  textColor: thumbNameTextColor,
638
638
  textWeight: thumbNameTextWeight,
639
639
  textWrap: thumbNameTextWrap
640
- }, fileErrorText || file.error)), showFilename && /*#__PURE__*/React$1.createElement("div", {
640
+ }, fileErrorText || file.error)), showFilename && /*#__PURE__*/React.createElement("div", {
641
641
  className: "form-dropzone__thumb-name"
642
- }, /*#__PURE__*/React$1.createElement(Text, {
642
+ }, /*#__PURE__*/React.createElement(Text, {
643
643
  className: "form-dropzone__thumb-name-inner",
644
644
  size: thumbNameTextSize,
645
645
  textColor: thumbNameTextColor,
646
646
  textWeight: thumbNameTextWeight,
647
647
  textWrap: thumbNameTextWrap
648
- }, file.name)), fileIsLoading && /*#__PURE__*/React$1.createElement("div", {
648
+ }, file.name)), fileIsLoading && /*#__PURE__*/React.createElement("div", {
649
649
  className: "form-dropzone__thumb-loader"
650
- }, /*#__PURE__*/React$1.createElement(Loader, {
650
+ }, /*#__PURE__*/React.createElement(Loader, {
651
651
  width: "fill",
652
652
  height: "fill",
653
653
  fill: "surfacePrimary",
654
654
  itemFill: "surfaceItemAccent",
655
655
  set: "simple"
656
- })), /*#__PURE__*/React$1.createElement("div", {
656
+ })), /*#__PURE__*/React.createElement("div", {
657
657
  className: clsx('form-dropzone__thumb-remove')
658
- }, /*#__PURE__*/React$1.createElement(Button, {
658
+ }, /*#__PURE__*/React.createElement(Button, {
659
659
  className: "form-dropzone__thumb-remove-text",
660
660
  appearance: removeThumbAppearance,
661
661
  label: removeThumbText || 'Удалить',
662
662
  labelTextWeight: removeThumbTextWeight,
663
663
  shape: removeThumbShape,
664
664
  onClick: event => removeFile(event, index)
665
- })))), !filesList.length ? /*#__PURE__*/React$1.createElement("div", {
665
+ })))), !filesList.length ? /*#__PURE__*/React.createElement("div", {
666
666
  className: "form-dropzone__hint"
667
- }, /*#__PURE__*/React$1.createElement(Text, {
667
+ }, /*#__PURE__*/React.createElement(Text, {
668
668
  className: "form-dropzone__hint-title",
669
669
  size: hintTitleTextSize,
670
670
  textColor: hintTitleTextColor,
671
671
  textWeight: hintTitleTextWeight,
672
672
  textWrap: hintTitleTextWrap
673
- }, hintTitle || 'Select a file or drag in form'), hintDescription && /*#__PURE__*/React$1.createElement(Text, {
673
+ }, hintTitle || 'Select a file or drag in form'), hintDescription && /*#__PURE__*/React.createElement(Text, {
674
674
  className: "form-dropzone__hint-text",
675
675
  size: hintDescriptionTextSize,
676
676
  textColor: hintDescriptionTextColor,
677
677
  textWeight: hintDescriptionTextWeight,
678
678
  textWrap: hintDescriptionTextWrap
679
- }, hintDescription)) : /*#__PURE__*/React$1.createElement("div", {
679
+ }, hintDescription)) : /*#__PURE__*/React.createElement("div", {
680
680
  className: "form-dropzone__hint form-dropzone__hint_type_add-more"
681
- }, /*#__PURE__*/React$1.createElement(Text, {
681
+ }, /*#__PURE__*/React.createElement(Text, {
682
682
  className: "form-dropzone__hint-title",
683
683
  size: hintTitleTextSize,
684
684
  textColor: hintTitleTextColor,
685
685
  textWeight: hintTitleTextWeight,
686
686
  textWrap: hintTitleTextWrap
687
- }, hintTitle || 'Select a file or drag in form'), hintDescription && /*#__PURE__*/React$1.createElement(Text, {
687
+ }, hintTitle || 'Select a file or drag in form'), hintDescription && /*#__PURE__*/React.createElement(Text, {
688
688
  className: "form-dropzone__hint-text",
689
689
  size: hintDescriptionTextSize,
690
690
  textColor: hintDescriptionTextColor,
691
691
  textWeight: hintDescriptionTextWeight,
692
692
  textWrap: hintDescriptionTextWrap
693
- }, hintDescription)))), fileError && /*#__PURE__*/React$1.createElement("div", {
693
+ }, hintDescription)))), fileError && /*#__PURE__*/React.createElement("div", {
694
694
  className: "form-field__message"
695
- }, /*#__PURE__*/React$1.createElement(Text, {
695
+ }, /*#__PURE__*/React.createElement(Text, {
696
696
  className: "form-field__message-item form-field__message-item_type_message",
697
697
  size: errorMessageTextSize,
698
698
  textColor: errorMessageTextColor,
@@ -771,7 +771,7 @@ function setFileDataURL(file, resolve) {
771
771
  }
772
772
  }
773
773
 
774
- const FileInput = /*#__PURE__*/React$1.memo(function FileInput(props) {
774
+ const FileInput = /*#__PURE__*/React.memo(function FileInput(props) {
775
775
  const {
776
776
  className,
777
777
  name,
@@ -828,7 +828,7 @@ const FileInput = /*#__PURE__*/React$1.memo(function FileInput(props) {
828
828
  thumbNameTextWeight,
829
829
  thumbNameTextWrap
830
830
  } = propsGenerator;
831
- return /*#__PURE__*/React$1.createElement(Field, {
831
+ return /*#__PURE__*/React.createElement(Field, {
832
832
  name: name
833
833
  }, function Render({
834
834
  input,
@@ -859,7 +859,7 @@ const FileInput = /*#__PURE__*/React$1.memo(function FileInput(props) {
859
859
  /** TODO:
860
860
  * REFACTOR PROPERTIES
861
861
  */
862
- return /*#__PURE__*/React$1.createElement(FieldWrapper, Object.assign({
862
+ return /*#__PURE__*/React.createElement(FieldWrapper, Object.assign({
863
863
  className: clsx('form-field_type_dropzone', 'form__item_type_dropzone', classNameGroupItem),
864
864
  width: width,
865
865
  label: label,
@@ -876,7 +876,7 @@ const FileInput = /*#__PURE__*/React$1.memo(function FileInput(props) {
876
876
  showMessage: showMessage,
877
877
  isRequired: isRequired,
878
878
  isValidState: isValidState
879
- }, fieldProps), /*#__PURE__*/React$1.createElement(FileInputDropzone, {
879
+ }, fieldProps), /*#__PURE__*/React.createElement(FileInputDropzone, {
880
880
  className: className,
881
881
  maxFiles: maxFiles,
882
882
  maxSize: maxSize,
@@ -936,7 +936,7 @@ const defaultGroupProps = {
936
936
  labelTextWeight: 500
937
937
  };
938
938
 
939
- const FormBlockGroup = /*#__PURE__*/React$1.memo(function Group(props) {
939
+ const FormBlockGroup = /*#__PURE__*/React.memo(function Group(props) {
940
940
  const {
941
941
  className,
942
942
  name,
@@ -960,7 +960,7 @@ const FormBlockGroup = /*#__PURE__*/React$1.memo(function Group(props) {
960
960
  isHidden,
961
961
  children
962
962
  } = props;
963
- return /*#__PURE__*/React$1.createElement(Field, {
963
+ return /*#__PURE__*/React.createElement(Field, {
964
964
  name: name
965
965
  }, function Render({
966
966
  input,
@@ -986,37 +986,37 @@ const FormBlockGroup = /*#__PURE__*/React$1.memo(function Group(props) {
986
986
  inputProps: props,
987
987
  validationStateKey: isErrorState ? errorKey : 'success'
988
988
  });
989
- return /*#__PURE__*/React$1.createElement("div", {
989
+ return /*#__PURE__*/React.createElement("div", {
990
990
  className: clsx('form__group', className, isHidden && 'form__group_hidden', column && `form__group_column_${column}`),
991
991
  "data-tour": dataTour
992
- }, /*#__PURE__*/React$1.createElement("div", {
992
+ }, /*#__PURE__*/React.createElement("div", {
993
993
  className: "form__group-wrapper"
994
- }, before, title && /*#__PURE__*/React$1.createElement("div", {
994
+ }, before, title && /*#__PURE__*/React.createElement("div", {
995
995
  className: "form__group-title"
996
- }, /*#__PURE__*/React$1.createElement(Title, {
996
+ }, /*#__PURE__*/React.createElement(Title, {
997
997
  size: titleTextSize,
998
998
  textColor: titleTextColor,
999
999
  textWeight: titleTextWeight
1000
- }, title)), label && /*#__PURE__*/React$1.createElement("div", {
1000
+ }, title)), label && /*#__PURE__*/React.createElement("div", {
1001
1001
  className: "form__group-label"
1002
- }, /*#__PURE__*/React$1.createElement(Text, {
1002
+ }, /*#__PURE__*/React.createElement(Text, {
1003
1003
  size: labelTextSize,
1004
1004
  textColor: labelTextColor,
1005
1005
  textWeight: labelTextWeight
1006
- }, label)), /*#__PURE__*/React$1.createElement("div", {
1006
+ }, label)), /*#__PURE__*/React.createElement("div", {
1007
1007
  className: "form__group-items"
1008
- }, children), after), showGroupMessage && /*#__PURE__*/React$1.createElement(React$1.Fragment, null, isErrorState && errorMessage && /*#__PURE__*/React$1.createElement(Text, {
1008
+ }, children), after), showGroupMessage && /*#__PURE__*/React.createElement(React.Fragment, null, isErrorState && errorMessage && /*#__PURE__*/React.createElement(Text, {
1009
1009
  className: `form__group-message form__group-message_type-${errorKey}`,
1010
1010
  id: `${name}-error`,
1011
1011
  size: updatedProps.messageTextSize,
1012
1012
  textColor: updatedProps.messageTextColor,
1013
1013
  textWeight: updatedProps.messageTextWeight
1014
- }, errorMessage), Boolean(message) && (!isErrorState || !errorMessage) && /*#__PURE__*/React$1.createElement(Text, {
1014
+ }, errorMessage), Boolean(message) && (!isErrorState || !errorMessage) && /*#__PURE__*/React.createElement(Text, {
1015
1015
  className: "form__group-message",
1016
1016
  size: messageTextSize,
1017
1017
  textColor: messageTextColor,
1018
1018
  textWeight: messageTextWeight
1019
- }, message), !isErrorState && !message && /*#__PURE__*/React$1.createElement(Text, {
1019
+ }, message), !isErrorState && !message && /*#__PURE__*/React.createElement(Text, {
1020
1020
  className: "form__group-message",
1021
1021
  size: messageTextSize
1022
1022
  }, '\u00A0')));
@@ -1035,7 +1035,7 @@ const defaultCheckboxProps = {
1035
1035
  requiredBorderColor: 'warningBorderSecondary'
1036
1036
  };
1037
1037
 
1038
- const FormFieldCheckbox = /*#__PURE__*/React$1.memo(function FormFieldCheckbox(props) {
1038
+ const FormFieldCheckbox = /*#__PURE__*/React.memo(function FormFieldCheckbox(props) {
1039
1039
  const {
1040
1040
  name,
1041
1041
  initialValue,
@@ -1047,7 +1047,7 @@ const FormFieldCheckbox = /*#__PURE__*/React$1.memo(function FormFieldCheckbox(p
1047
1047
  isRequired,
1048
1048
  onChange
1049
1049
  } = props;
1050
- return /*#__PURE__*/React$1.createElement(Field, {
1050
+ return /*#__PURE__*/React.createElement(Field, {
1051
1051
  type: "checkbox",
1052
1052
  name: name,
1053
1053
  initialValue: initialValue
@@ -1082,7 +1082,7 @@ const FormFieldCheckbox = /*#__PURE__*/React$1.memo(function FormFieldCheckbox(p
1082
1082
  inputProps: inputProps,
1083
1083
  validationStateKey: isErrorState ? errorKey : 'success'
1084
1084
  });
1085
- return /*#__PURE__*/React$1.createElement(FieldWrapper, Object.assign({
1085
+ return /*#__PURE__*/React.createElement(FieldWrapper, Object.assign({
1086
1086
  className: clsx('form-field_type_checkbox', 'form__item_type_checkbox', classNameGroupItem),
1087
1087
  errorKey: errorKey,
1088
1088
  errorMessage: errorMessage,
@@ -1097,7 +1097,7 @@ const FormFieldCheckbox = /*#__PURE__*/React$1.memo(function FormFieldCheckbox(p
1097
1097
  tag: "label",
1098
1098
  isRequired: isRequired,
1099
1099
  isValidState: isValidState
1100
- }, fieldProps), /*#__PURE__*/React$1.createElement(Checkbox, Object.assign({
1100
+ }, fieldProps), /*#__PURE__*/React.createElement(Checkbox, Object.assign({
1101
1101
  type: "checkbox",
1102
1102
  name: input.name,
1103
1103
  isDisabled: isDisabled,
@@ -1148,7 +1148,7 @@ function FormFieldChips(props) {
1148
1148
  // update the form value only when the initialValue changes, so use disable eslint to ignore the warning
1149
1149
  // eslint-disable-next-line react-hooks/exhaustive-deps
1150
1150
  }, [initialValue]);
1151
- return /*#__PURE__*/React$1.createElement(Field, {
1151
+ return /*#__PURE__*/React.createElement(Field, {
1152
1152
  name: name,
1153
1153
  initialValue: initialValue
1154
1154
  }, function Render({
@@ -1180,7 +1180,7 @@ function FormFieldChips(props) {
1180
1180
  }
1181
1181
  return emptyOptionsList;
1182
1182
  }, [input.value]);
1183
- return /*#__PURE__*/React$1.createElement(FieldWrapper, Object.assign({
1183
+ return /*#__PURE__*/React.createElement(FieldWrapper, Object.assign({
1184
1184
  className: clsx('form-field_type_chips', 'form__item_type_chips', classNameGroupItem),
1185
1185
  errorKey: errorKey,
1186
1186
  errorMessage: errorMessage,
@@ -1194,11 +1194,11 @@ function FormFieldChips(props) {
1194
1194
  showMessage: showMessage,
1195
1195
  isRequired: isRequired,
1196
1196
  isValidState: isValidState
1197
- }, fieldProps), options.length ? /*#__PURE__*/React$1.createElement(ChipsGroup, {
1197
+ }, fieldProps), options.length ? /*#__PURE__*/React.createElement(ChipsGroup, {
1198
1198
  direction: "horizontal",
1199
1199
  gap: "1m",
1200
1200
  wrap: "wrap"
1201
- }, options.map(option => /*#__PURE__*/React$1.createElement(Chips, Object.assign({
1201
+ }, options.map(option => /*#__PURE__*/React.createElement(Chips, Object.assign({
1202
1202
  className: clsx(meta.active && 'form-chips_state_focus', meta.error && meta.touched && `form-chips_state_${errorKey}`),
1203
1203
  key: option.value,
1204
1204
  label: option.label,
@@ -1206,7 +1206,7 @@ function FormFieldChips(props) {
1206
1206
  value: option.value,
1207
1207
  isActive: activeOptionsList.some(activeOption => activeOption.value === option.value),
1208
1208
  onClick: () => onChangeSomeInput(input.value, option.value)
1209
- }, updatedInputProps)))) : /*#__PURE__*/React$1.createElement(Text, {
1209
+ }, updatedInputProps)))) : /*#__PURE__*/React.createElement(Text, {
1210
1210
  size: emptyMessageTextSize,
1211
1211
  textColor: emptyMessageTextColor
1212
1212
  }, emptyMessage));
@@ -1220,7 +1220,7 @@ const defaultChoiceProps = {
1220
1220
  requiredBorderColor: 'warningBorderPrimary'
1221
1221
  };
1222
1222
 
1223
- const FormFieldChoice = /*#__PURE__*/React$1.memo(function FormFieldChoice(props) {
1223
+ const FormFieldChoice = /*#__PURE__*/React.memo(function FormFieldChoice(props) {
1224
1224
  const {
1225
1225
  name,
1226
1226
  initialValue,
@@ -1246,7 +1246,7 @@ const FormFieldChoice = /*#__PURE__*/React$1.memo(function FormFieldChoice(props
1246
1246
  onChange(option.value, name, isChecked);
1247
1247
  }
1248
1248
  }, [change, onChange]);
1249
- return /*#__PURE__*/React$1.createElement(Field, {
1249
+ return /*#__PURE__*/React.createElement(Field, {
1250
1250
  initialValue: initialValue,
1251
1251
  name: name
1252
1252
  }, function Render({
@@ -1284,7 +1284,7 @@ const FormFieldChoice = /*#__PURE__*/React$1.memo(function FormFieldChoice(props
1284
1284
  inputProps: inputProps,
1285
1285
  validationStateKey: isErrorState ? errorKey : 'success'
1286
1286
  });
1287
- return /*#__PURE__*/React$1.createElement(FieldWrapper, Object.assign({
1287
+ return /*#__PURE__*/React.createElement(FieldWrapper, Object.assign({
1288
1288
  className: clsx('form-field_type_choice', 'form__item_type_choice', classNameGroupItem),
1289
1289
  label: label,
1290
1290
  errorKey: errorKey,
@@ -1300,7 +1300,7 @@ const FormFieldChoice = /*#__PURE__*/React$1.memo(function FormFieldChoice(props
1300
1300
  showMessage: showMessage,
1301
1301
  isRequired: isRequired,
1302
1302
  isValidState: isValidState
1303
- }, fieldProps), /*#__PURE__*/React$1.createElement(Choice, Object.assign({
1303
+ }, fieldProps), /*#__PURE__*/React.createElement(Choice, Object.assign({
1304
1304
  className: clsx(meta.active && 'form-choice_state_focus', meta.error && meta.touched && `form-choice_state_${errorKey}`),
1305
1305
  name: input.name,
1306
1306
  isDisabled: isDisabled,
@@ -1319,7 +1319,7 @@ const defaultCodeProps = {
1319
1319
  appearance: 'defaultPrimary sizeL solid rounded'
1320
1320
  };
1321
1321
 
1322
- const FormFieldCode = /*#__PURE__*/React$1.memo(function FormFieldCode(props) {
1322
+ const FormFieldCode = /*#__PURE__*/React.memo(function FormFieldCode(props) {
1323
1323
  const {
1324
1324
  name,
1325
1325
  initialValue,
@@ -1330,7 +1330,7 @@ const FormFieldCode = /*#__PURE__*/React$1.memo(function FormFieldCode(props) {
1330
1330
  showMessage,
1331
1331
  isRequired
1332
1332
  } = props;
1333
- return /*#__PURE__*/React$1.createElement(Field, {
1333
+ return /*#__PURE__*/React.createElement(Field, {
1334
1334
  name: name,
1335
1335
  initialValue: initialValue
1336
1336
  }, function Render({
@@ -1356,7 +1356,7 @@ const FormFieldCode = /*#__PURE__*/React$1.memo(function FormFieldCode(props) {
1356
1356
  inputProps: inputProps,
1357
1357
  validationStateKey: isErrorState ? errorKey : 'success'
1358
1358
  });
1359
- return /*#__PURE__*/React$1.createElement(FieldWrapper, Object.assign({
1359
+ return /*#__PURE__*/React.createElement(FieldWrapper, Object.assign({
1360
1360
  className: clsx('form-field_type_code', 'form__item_type_code', classNameGroupItem),
1361
1361
  fieldClassName: 'form-code',
1362
1362
  inputName: input.name,
@@ -1365,7 +1365,7 @@ const FormFieldCode = /*#__PURE__*/React$1.memo(function FormFieldCode(props) {
1365
1365
  showMessage: showMessage,
1366
1366
  isRequired: isRequired,
1367
1367
  isValidState: isValidState
1368
- }, fieldProps), /*#__PURE__*/React$1.createElement(Code, Object.assign({
1368
+ }, fieldProps), /*#__PURE__*/React.createElement(Code, Object.assign({
1369
1369
  name: input.name,
1370
1370
  isDisabled: isDisabled,
1371
1371
  autoComplete: "nope",
@@ -1377,7 +1377,7 @@ const FormFieldCode = /*#__PURE__*/React$1.memo(function FormFieldCode(props) {
1377
1377
  });
1378
1378
  });
1379
1379
 
1380
- const FormFieldCustom = /*#__PURE__*/React$1.memo(function FormFieldCustom(props) {
1380
+ const FormFieldCustom = /*#__PURE__*/React.memo(function FormFieldCustom(props) {
1381
1381
  const {
1382
1382
  Component,
1383
1383
  isDisabled,
@@ -1394,7 +1394,7 @@ const FormFieldCustom = /*#__PURE__*/React$1.memo(function FormFieldCustom(props
1394
1394
  clearIconSize,
1395
1395
  onClickClearIcon
1396
1396
  } = props;
1397
- return /*#__PURE__*/React$1.createElement(Field, {
1397
+ return /*#__PURE__*/React.createElement(Field, {
1398
1398
  initialValue: initialValue,
1399
1399
  name: name
1400
1400
  }, function Render({
@@ -1423,7 +1423,7 @@ const FormFieldCustom = /*#__PURE__*/React$1.memo(function FormFieldCustom(props
1423
1423
  // For "Custom" field we pass all props. Can contain some special props, we don't known.
1424
1424
  inputProps: props
1425
1425
  });
1426
- return /*#__PURE__*/React$1.createElement(FieldWrapper, Object.assign({
1426
+ return /*#__PURE__*/React.createElement(FieldWrapper, Object.assign({
1427
1427
  className: clsx('form-field_type_custom', 'form__item_type_custom', classNameGroupItem),
1428
1428
  errorKey: errorKey,
1429
1429
  errorMessage: errorMessage,
@@ -1437,11 +1437,11 @@ const FormFieldCustom = /*#__PURE__*/React$1.memo(function FormFieldCustom(props
1437
1437
  metaActive: meta.active,
1438
1438
  metaError: meta.error,
1439
1439
  showMessage: showMessage
1440
- }, fieldProps), /*#__PURE__*/React$1.createElement(Component, Object.assign({}, updatedInputProps, {
1440
+ }, fieldProps), /*#__PURE__*/React.createElement(Component, Object.assign({}, updatedInputProps, {
1441
1441
  input: input,
1442
1442
  isDisabled: isDisabled,
1443
1443
  meta: meta
1444
- })), clearIcon && /*#__PURE__*/React$1.createElement(Icon, {
1444
+ })), clearIcon && /*#__PURE__*/React.createElement(Icon, {
1445
1445
  className: "form-field__icon",
1446
1446
  iconFill: clearIconFill,
1447
1447
  iconFillHover: clearIconFillHover,
@@ -1479,7 +1479,7 @@ function FormFieldDatePicker(props) {
1479
1479
  isRequired,
1480
1480
  onChange
1481
1481
  } = props;
1482
- return /*#__PURE__*/React$1.createElement(Field, {
1482
+ return /*#__PURE__*/React.createElement(Field, {
1483
1483
  name: name
1484
1484
  }, function Render({
1485
1485
  input,
@@ -1522,7 +1522,7 @@ function FormFieldDatePicker(props) {
1522
1522
  inputProps: inputProps,
1523
1523
  validationStateKey: isErrorState ? errorKey : 'success'
1524
1524
  });
1525
- return /*#__PURE__*/React$1.createElement(FieldWrapper, Object.assign({
1525
+ return /*#__PURE__*/React.createElement(FieldWrapper, Object.assign({
1526
1526
  className: clsx('form-field_type_datepicker', 'form__item_type_datepicker', classNameGroupItem),
1527
1527
  errorKey: errorKey,
1528
1528
  errorMessage: errorMessage,
@@ -1536,7 +1536,7 @@ function FormFieldDatePicker(props) {
1536
1536
  showMessage: showMessage,
1537
1537
  isRequired: isRequired,
1538
1538
  isValidState: isValidState
1539
- }, fieldProps), /*#__PURE__*/React$1.createElement(DatePickerInput, {
1539
+ }, fieldProps), /*#__PURE__*/React.createElement(DatePickerInput, {
1540
1540
  name: input.name,
1541
1541
  isDisabled: isDisabled,
1542
1542
  datePickerProps: datePickerProps,
@@ -1557,7 +1557,7 @@ const defaultInputProps = {
1557
1557
  requiredBorderColor: 'warningBorderSecondary'
1558
1558
  };
1559
1559
 
1560
- const FormFieldInput = /*#__PURE__*/React$1.memo(function FormFieldInput(props) {
1560
+ const FormFieldInput = /*#__PURE__*/React.memo(function FormFieldInput(props) {
1561
1561
  const {
1562
1562
  name,
1563
1563
  initialValue,
@@ -1579,7 +1579,7 @@ const FormFieldInput = /*#__PURE__*/React$1.memo(function FormFieldInput(props)
1579
1579
  onChange,
1580
1580
  onClickClearIcon
1581
1581
  } = props;
1582
- return /*#__PURE__*/React$1.createElement(Field, {
1582
+ return /*#__PURE__*/React.createElement(Field, {
1583
1583
  name: name,
1584
1584
  initialValue: initialValue,
1585
1585
  parse: parse
@@ -1614,7 +1614,7 @@ const FormFieldInput = /*#__PURE__*/React$1.memo(function FormFieldInput(props)
1614
1614
  inputProps: inputProps,
1615
1615
  validationStateKey: isErrorState ? errorKey : 'success'
1616
1616
  });
1617
- return /*#__PURE__*/React$1.createElement(FieldWrapper, Object.assign({
1617
+ return /*#__PURE__*/React.createElement(FieldWrapper, Object.assign({
1618
1618
  className: clsx('form-field_type_input', 'form__item_type_input', classNameGroupItem),
1619
1619
  errorKey: errorKey,
1620
1620
  errorMessage: errorMessage,
@@ -1628,7 +1628,7 @@ const FormFieldInput = /*#__PURE__*/React$1.memo(function FormFieldInput(props)
1628
1628
  showMessage: showMessage,
1629
1629
  isRequired: isRequired,
1630
1630
  isValidState: isValidState
1631
- }, fieldProps), /*#__PURE__*/React$1.createElement(Input, Object.assign({
1631
+ }, fieldProps), /*#__PURE__*/React.createElement(Input, Object.assign({
1632
1632
  dataTestId: `${input.name}FieldInput`,
1633
1633
  className: clsx(meta.active && 'input_state_focus', meta.error && meta.touched && `input_state_${errorKey}`),
1634
1634
  type: "text",
@@ -1639,7 +1639,7 @@ const FormFieldInput = /*#__PURE__*/React$1.memo(function FormFieldInput(props)
1639
1639
  onBlur: input.onBlur,
1640
1640
  onChange: onChangeField,
1641
1641
  onFocus: input.onFocus
1642
- }, updatedInputProps)), clearIcon && /*#__PURE__*/React$1.createElement(Icon, {
1642
+ }, updatedInputProps)), clearIcon && /*#__PURE__*/React.createElement(Icon, {
1643
1643
  className: "form-field__icon",
1644
1644
  size: clearIconSize,
1645
1645
  iconFill: clearIconFill,
@@ -1659,7 +1659,7 @@ const defaultPasswordProps = {
1659
1659
  iconFill: 'surfaceItemQuaternary'
1660
1660
  };
1661
1661
 
1662
- const FormFieldPassword = /*#__PURE__*/React$1.memo(function FormFieldPassword(props) {
1662
+ const FormFieldPassword = /*#__PURE__*/React.memo(function FormFieldPassword(props) {
1663
1663
  const {
1664
1664
  name,
1665
1665
  initialValue,
@@ -1686,7 +1686,7 @@ const FormFieldPassword = /*#__PURE__*/React$1.memo(function FormFieldPassword(p
1686
1686
  event.preventDefault();
1687
1687
  setIsRevealed(prev => !prev);
1688
1688
  }, []);
1689
- return /*#__PURE__*/React$1.createElement(Field, {
1689
+ return /*#__PURE__*/React.createElement(Field, {
1690
1690
  name: name,
1691
1691
  initialValue: initialValue,
1692
1692
  parse: parse
@@ -1721,7 +1721,7 @@ const FormFieldPassword = /*#__PURE__*/React$1.memo(function FormFieldPassword(p
1721
1721
  inputProps: inputProps,
1722
1722
  validationStateKey: isErrorState ? errorKey : 'success'
1723
1723
  });
1724
- return /*#__PURE__*/React$1.createElement(FieldWrapper, Object.assign({
1724
+ return /*#__PURE__*/React.createElement(FieldWrapper, Object.assign({
1725
1725
  className: clsx('form-field_type_input', 'form__item_type_input', classNameGroupItem),
1726
1726
  errorKey: errorKey,
1727
1727
  errorMessage: errorMessage,
@@ -1735,7 +1735,7 @@ const FormFieldPassword = /*#__PURE__*/React$1.memo(function FormFieldPassword(p
1735
1735
  showMessage: showMessage,
1736
1736
  isRequired: isRequired,
1737
1737
  isValidState: isValidState
1738
- }, fieldProps), /*#__PURE__*/React$1.createElement(Input, Object.assign({
1738
+ }, fieldProps), /*#__PURE__*/React.createElement(Input, Object.assign({
1739
1739
  dataTestId: `${input.name}FieldInputPassword`,
1740
1740
  className: clsx(meta.active && 'input_state_focus', meta.error && meta.touched && `input_state_${errorKey}`),
1741
1741
  type: inputType,
@@ -1746,7 +1746,7 @@ const FormFieldPassword = /*#__PURE__*/React$1.memo(function FormFieldPassword(p
1746
1746
  onBlur: input.onBlur,
1747
1747
  onChange: onChangeField,
1748
1748
  onFocus: input.onFocus
1749
- }, updatedInputProps)), /*#__PURE__*/React$1.createElement(Icon, {
1749
+ }, updatedInputProps)), /*#__PURE__*/React.createElement(Icon, {
1750
1750
  className: "form-field__icon",
1751
1751
  size: inputProps.iconSize,
1752
1752
  iconFill: inputProps.iconFill,
@@ -1779,7 +1779,7 @@ function FormFieldSegmented(props) {
1779
1779
  const setActiveSegment = useCallback(option => {
1780
1780
  change(name, option.value);
1781
1781
  }, [change]);
1782
- return /*#__PURE__*/React$1.createElement(Field, {
1782
+ return /*#__PURE__*/React.createElement(Field, {
1783
1783
  name: name
1784
1784
  }, function Render({
1785
1785
  input,
@@ -1817,7 +1817,7 @@ function FormFieldSegmented(props) {
1817
1817
  inputProps: inputProps,
1818
1818
  validationStateKey: isErrorState ? errorKey : 'success'
1819
1819
  });
1820
- return /*#__PURE__*/React$1.createElement(FieldWrapper, Object.assign({
1820
+ return /*#__PURE__*/React.createElement(FieldWrapper, Object.assign({
1821
1821
  className: clsx('form-field_type_segmented', 'form__item_type_segmented'),
1822
1822
  errorKey: errorKey,
1823
1823
  errorMessage: errorMessage,
@@ -1831,7 +1831,7 @@ function FormFieldSegmented(props) {
1831
1831
  showMessage: showMessage,
1832
1832
  isRequired: isRequired,
1833
1833
  isValidState: isValidState
1834
- }, fieldProps), /*#__PURE__*/React$1.createElement(Segmented, Object.assign({
1834
+ }, fieldProps), /*#__PURE__*/React.createElement(Segmented, Object.assign({
1835
1835
  isDisabled: isDisabled,
1836
1836
  activeSegment: activeOption,
1837
1837
  segments: options,
@@ -1862,7 +1862,7 @@ function getDefaultValue(options, selectValue) {
1862
1862
  });
1863
1863
  return result;
1864
1864
  }
1865
- const FormFieldSelect = /*#__PURE__*/React$1.memo(function FormFieldSelect(props) {
1865
+ const FormFieldSelect = /*#__PURE__*/React.memo(function FormFieldSelect(props) {
1866
1866
  const {
1867
1867
  isDisabled,
1868
1868
  isRequired,
@@ -1877,7 +1877,7 @@ const FormFieldSelect = /*#__PURE__*/React$1.memo(function FormFieldSelect(props
1877
1877
  onChange,
1878
1878
  onInputChange
1879
1879
  } = props;
1880
- return /*#__PURE__*/React$1.createElement(Field, {
1880
+ return /*#__PURE__*/React.createElement(Field, {
1881
1881
  name: name,
1882
1882
  initialValue: initialValue
1883
1883
  }, function Render({
@@ -1929,7 +1929,7 @@ const FormFieldSelect = /*#__PURE__*/React$1.memo(function FormFieldSelect(props
1929
1929
  inputProps: selectProps,
1930
1930
  validationStateKey: isErrorState ? errorKey : 'success'
1931
1931
  });
1932
- return /*#__PURE__*/React$1.createElement(FieldWrapper, Object.assign({
1932
+ return /*#__PURE__*/React.createElement(FieldWrapper, Object.assign({
1933
1933
  className: clsx('form-field_type_select', 'form__item_type_select', classNameGroupItem),
1934
1934
  errorKey: errorKey,
1935
1935
  errorMessage: errorMessage,
@@ -1943,7 +1943,7 @@ const FormFieldSelect = /*#__PURE__*/React$1.memo(function FormFieldSelect(props
1943
1943
  showMessage: showMessage,
1944
1944
  isRequired: isRequired,
1945
1945
  isValidState: isValidState
1946
- }, fieldProps), /*#__PURE__*/React$1.createElement(Select, Object.assign({
1946
+ }, fieldProps), /*#__PURE__*/React.createElement(Select, Object.assign({
1947
1947
  className: "form-select-item",
1948
1948
  ref: selectRef,
1949
1949
  isDisabled: isDisabled,
@@ -1960,7 +1960,7 @@ const defaultSwitchProps = {
1960
1960
  appearance: 'defaultPrimary sizeL solid rounded'
1961
1961
  };
1962
1962
 
1963
- const FormFieldSwitch = /*#__PURE__*/React$1.memo(function FormFieldSwitch(props) {
1963
+ const FormFieldSwitch = /*#__PURE__*/React.memo(function FormFieldSwitch(props) {
1964
1964
  const {
1965
1965
  name,
1966
1966
  isDisabled,
@@ -1971,7 +1971,7 @@ const FormFieldSwitch = /*#__PURE__*/React$1.memo(function FormFieldSwitch(props
1971
1971
  isRequired,
1972
1972
  onChange
1973
1973
  } = props;
1974
- return /*#__PURE__*/React$1.createElement(Field, {
1974
+ return /*#__PURE__*/React.createElement(Field, {
1975
1975
  type: "checkbox",
1976
1976
  name: name
1977
1977
  }, function Render({
@@ -2005,7 +2005,7 @@ const FormFieldSwitch = /*#__PURE__*/React$1.memo(function FormFieldSwitch(props
2005
2005
  inputProps: inputProps,
2006
2006
  validationStateKey: isErrorState ? errorKey : 'success'
2007
2007
  });
2008
- return /*#__PURE__*/React$1.createElement(FieldWrapper, Object.assign({
2008
+ return /*#__PURE__*/React.createElement(FieldWrapper, Object.assign({
2009
2009
  className: clsx('form-field_type_switch', 'form__item_type_switch', classNameGroupItem),
2010
2010
  errorKey: errorKey,
2011
2011
  errorMessage: errorMessage,
@@ -2020,7 +2020,7 @@ const FormFieldSwitch = /*#__PURE__*/React$1.memo(function FormFieldSwitch(props
2020
2020
  tag: "label",
2021
2021
  isRequired: isRequired,
2022
2022
  isValidState: isValidState
2023
- }, fieldProps), /*#__PURE__*/React$1.createElement(Switch, Object.assign({
2023
+ }, fieldProps), /*#__PURE__*/React.createElement(Switch, Object.assign({
2024
2024
  type: "checkbox",
2025
2025
  name: input.name,
2026
2026
  isDisabled: isDisabled,
@@ -2039,7 +2039,7 @@ const defaultTextareaProps = {
2039
2039
  requiredBorderColor: 'warningBorderSecondary'
2040
2040
  };
2041
2041
 
2042
- const FormFieldTextarea = /*#__PURE__*/React$1.memo(function FormFieldTextarea(props) {
2042
+ const FormFieldTextarea = /*#__PURE__*/React.memo(function FormFieldTextarea(props) {
2043
2043
  const {
2044
2044
  name,
2045
2045
  isDisabled,
@@ -2049,7 +2049,7 @@ const FormFieldTextarea = /*#__PURE__*/React$1.memo(function FormFieldTextarea(p
2049
2049
  showMessage,
2050
2050
  isRequired
2051
2051
  } = props;
2052
- return /*#__PURE__*/React$1.createElement(Field, {
2052
+ return /*#__PURE__*/React.createElement(Field, {
2053
2053
  name: name
2054
2054
  }, function Render({
2055
2055
  input,
@@ -2076,7 +2076,7 @@ const FormFieldTextarea = /*#__PURE__*/React$1.memo(function FormFieldTextarea(p
2076
2076
  inputProps: inputProps,
2077
2077
  validationStateKey: isErrorState ? errorKey : 'success'
2078
2078
  });
2079
- return /*#__PURE__*/React$1.createElement(FieldWrapper, Object.assign({
2079
+ return /*#__PURE__*/React.createElement(FieldWrapper, Object.assign({
2080
2080
  className: clsx('form-field_type_textarea', 'form__item_type_textarea', classNameGroupItem),
2081
2081
  errorKey: errorKey,
2082
2082
  errorMessage: errorMessage,
@@ -2090,7 +2090,7 @@ const FormFieldTextarea = /*#__PURE__*/React$1.memo(function FormFieldTextarea(p
2090
2090
  showMessage: showMessage,
2091
2091
  isRequired: isRequired,
2092
2092
  isValidState: isValidState
2093
- }, fieldProps), /*#__PURE__*/React$1.createElement(Textarea, Object.assign({
2093
+ }, fieldProps), /*#__PURE__*/React.createElement(Textarea, Object.assign({
2094
2094
  dataTestId: `${input.name}FieldTextarea`,
2095
2095
  className: clsx(meta.active && 'textarea_state_focus', meta.error && meta.touched && `textarea_state_${errorKey}`),
2096
2096
  name: input.name,
@@ -2104,7 +2104,7 @@ const FormFieldTextarea = /*#__PURE__*/React$1.memo(function FormFieldTextarea(p
2104
2104
  });
2105
2105
  });
2106
2106
 
2107
- const FormFieldMaskedInput = /*#__PURE__*/React$1.memo(function FormFieldMaskedInput(props) {
2107
+ const FormFieldMaskedInput = /*#__PURE__*/React.memo(function FormFieldMaskedInput(props) {
2108
2108
  const {
2109
2109
  name,
2110
2110
  initialValue,
@@ -2123,7 +2123,7 @@ const FormFieldMaskedInput = /*#__PURE__*/React$1.memo(function FormFieldMaskedI
2123
2123
  isRequired,
2124
2124
  onClickClearIcon
2125
2125
  } = props;
2126
- return /*#__PURE__*/React$1.createElement(Field, {
2126
+ return /*#__PURE__*/React.createElement(Field, {
2127
2127
  name: name,
2128
2128
  initialValue: initialValue
2129
2129
  }, function Render({
@@ -2168,7 +2168,7 @@ const FormFieldMaskedInput = /*#__PURE__*/React$1.memo(function FormFieldMaskedI
2168
2168
  inputProps: inputProps,
2169
2169
  validationStateKey: isErrorState ? errorKey : 'success'
2170
2170
  });
2171
- return /*#__PURE__*/React$1.createElement(FieldWrapper, Object.assign({
2171
+ return /*#__PURE__*/React.createElement(FieldWrapper, Object.assign({
2172
2172
  className: clsx('form-field_type_maskedInput', 'form__item_type_maskedInput', classNameGroupItem),
2173
2173
  errorKey: errorKey,
2174
2174
  errorMessage: errorMessage,
@@ -2182,13 +2182,13 @@ const FormFieldMaskedInput = /*#__PURE__*/React$1.memo(function FormFieldMaskedI
2182
2182
  showMessage: showMessage,
2183
2183
  isRequired: isRequired,
2184
2184
  isValidState: isValidState
2185
- }, fieldProps), /*#__PURE__*/React$1.createElement(Input, Object.assign({
2185
+ }, fieldProps), /*#__PURE__*/React.createElement(Input, Object.assign({
2186
2186
  className: clsx(meta.active && 'input_state_focus', meta.error && meta.touched && `input_state_${errorKey}`),
2187
2187
  ref: ref,
2188
2188
  value: value,
2189
2189
  onBlur: input.onBlur,
2190
2190
  onFocus: input.onFocus
2191
- }, updatedInputProps)), clearIcon && /*#__PURE__*/React$1.createElement(Icon, {
2191
+ }, updatedInputProps)), clearIcon && /*#__PURE__*/React.createElement(Icon, {
2192
2192
  className: "form-field__icon",
2193
2193
  size: clearIconSize,
2194
2194
  iconFill: clearIconFill,
@@ -2296,7 +2296,7 @@ function RadioGroupList(props) {
2296
2296
  setEditableValue(value);
2297
2297
  onChangeSomeInput(value);
2298
2298
  }, [onChangeSomeInput]);
2299
- return /*#__PURE__*/React$1.createElement(React$1.Fragment, null, options.map(option => option.editable ? /*#__PURE__*/React$1.createElement(RadioGroupInput, {
2299
+ return /*#__PURE__*/React.createElement(React.Fragment, null, options.map(option => option.editable ? /*#__PURE__*/React.createElement(RadioGroupInput, {
2300
2300
  key: option.label,
2301
2301
  editableProps: editableProps,
2302
2302
  input: input,
@@ -2304,7 +2304,7 @@ function RadioGroupList(props) {
2304
2304
  option: option,
2305
2305
  value: editableValue,
2306
2306
  onChange: onChangeEditable
2307
- }) : /*#__PURE__*/React$1.createElement(RadioGroupItem, {
2307
+ }) : /*#__PURE__*/React.createElement(RadioGroupItem, {
2308
2308
  key: option.value,
2309
2309
  input: input,
2310
2310
  inputProps: inputProps,
@@ -2313,7 +2313,7 @@ function RadioGroupList(props) {
2313
2313
  })));
2314
2314
  }
2315
2315
 
2316
- const RadioGroup = /*#__PURE__*/React$1.memo(function RadioGroup(props) {
2316
+ const RadioGroup = /*#__PURE__*/React.memo(function RadioGroup(props) {
2317
2317
  const {
2318
2318
  name,
2319
2319
  isDisabled,
@@ -2326,7 +2326,7 @@ const RadioGroup = /*#__PURE__*/React$1.memo(function RadioGroup(props) {
2326
2326
  isRequired,
2327
2327
  onChange
2328
2328
  } = props;
2329
- return /*#__PURE__*/React$1.createElement(Field, {
2329
+ return /*#__PURE__*/React.createElement(Field, {
2330
2330
  name: name
2331
2331
  }, function Render({
2332
2332
  input,
@@ -2353,7 +2353,7 @@ const RadioGroup = /*#__PURE__*/React$1.memo(function RadioGroup(props) {
2353
2353
  inputProps: inputProps,
2354
2354
  validationStateKey: isErrorState ? errorKey : 'success'
2355
2355
  });
2356
- return /*#__PURE__*/React$1.createElement(FieldWrapper, Object.assign({
2356
+ return /*#__PURE__*/React.createElement(FieldWrapper, Object.assign({
2357
2357
  className: clsx('form-field_type_radio', 'form__item_type_radio"', classNameGroupItem),
2358
2358
  errorKey: errorKey,
2359
2359
  errorMessage: errorMessage,
@@ -2367,7 +2367,7 @@ const RadioGroup = /*#__PURE__*/React$1.memo(function RadioGroup(props) {
2367
2367
  showMessage: showMessage,
2368
2368
  isRequired: isRequired,
2369
2369
  isValidState: isValidState
2370
- }, fieldProps), /*#__PURE__*/React$1.createElement(RadioGroupList, {
2370
+ }, fieldProps), /*#__PURE__*/React.createElement(RadioGroupList, {
2371
2371
  isDisabled: isDisabled,
2372
2372
  editableProps: editableProps,
2373
2373
  input: input,
@@ -2400,97 +2400,97 @@ function generateField(field, config, props) {
2400
2400
  switch (field.type) {
2401
2401
  case formTypes.checkbox:
2402
2402
  {
2403
- return /*#__PURE__*/React$1.createElement(FormFieldCheckbox, Object.assign({
2403
+ return /*#__PURE__*/React.createElement(FormFieldCheckbox, Object.assign({
2404
2404
  key: config.key
2405
2405
  }, field, props));
2406
2406
  }
2407
2407
  case formTypes.choice:
2408
2408
  {
2409
- return /*#__PURE__*/React$1.createElement(FormFieldChoice, Object.assign({
2409
+ return /*#__PURE__*/React.createElement(FormFieldChoice, Object.assign({
2410
2410
  key: config.key
2411
2411
  }, field, props));
2412
2412
  }
2413
2413
  case formTypes.chips:
2414
2414
  {
2415
- return /*#__PURE__*/React$1.createElement(FormFieldChips, Object.assign({
2415
+ return /*#__PURE__*/React.createElement(FormFieldChips, Object.assign({
2416
2416
  key: config.key
2417
2417
  }, field, props));
2418
2418
  }
2419
2419
  case formTypes.code:
2420
2420
  {
2421
- return /*#__PURE__*/React$1.createElement(FormFieldCode, Object.assign({
2421
+ return /*#__PURE__*/React.createElement(FormFieldCode, Object.assign({
2422
2422
  key: config.key
2423
2423
  }, field, props));
2424
2424
  }
2425
2425
  case formTypes.switch:
2426
2426
  {
2427
- return /*#__PURE__*/React$1.createElement(FormFieldSwitch, Object.assign({
2427
+ return /*#__PURE__*/React.createElement(FormFieldSwitch, Object.assign({
2428
2428
  key: config.key
2429
2429
  }, field, props));
2430
2430
  }
2431
2431
  case formTypes.segmented:
2432
2432
  {
2433
- return /*#__PURE__*/React$1.createElement(FormFieldSegmented, Object.assign({
2433
+ return /*#__PURE__*/React.createElement(FormFieldSegmented, Object.assign({
2434
2434
  key: config.key
2435
2435
  }, field, props));
2436
2436
  }
2437
2437
  case formTypes.datePicker:
2438
2438
  {
2439
- return /*#__PURE__*/React$1.createElement(FormFieldDatePicker, Object.assign({
2439
+ return /*#__PURE__*/React.createElement(FormFieldDatePicker, Object.assign({
2440
2440
  key: config.key
2441
2441
  }, field, props));
2442
2442
  }
2443
2443
  case formTypes.fileInput:
2444
2444
  {
2445
- return /*#__PURE__*/React$1.createElement(FileInput, Object.assign({
2445
+ return /*#__PURE__*/React.createElement(FileInput, Object.assign({
2446
2446
  key: config.key
2447
2447
  }, field, props));
2448
2448
  }
2449
2449
  case formTypes.radioGroup:
2450
2450
  {
2451
- return /*#__PURE__*/React$1.createElement(RadioGroup, Object.assign({
2451
+ return /*#__PURE__*/React.createElement(RadioGroup, Object.assign({
2452
2452
  key: config.key
2453
2453
  }, field, props));
2454
2454
  }
2455
2455
  case formTypes.select:
2456
2456
  {
2457
- return /*#__PURE__*/React$1.createElement(FormFieldSelect, Object.assign({
2457
+ return /*#__PURE__*/React.createElement(FormFieldSelect, Object.assign({
2458
2458
  key: config.key
2459
2459
  }, field, props));
2460
2460
  }
2461
2461
  case formTypes.text:
2462
2462
  {
2463
- return /*#__PURE__*/React$1.createElement(FormFieldInput, Object.assign({
2463
+ return /*#__PURE__*/React.createElement(FormFieldInput, Object.assign({
2464
2464
  key: config.key
2465
2465
  }, field, props));
2466
2466
  }
2467
2467
  case formTypes.password:
2468
2468
  {
2469
- return /*#__PURE__*/React$1.createElement(FormFieldPassword, Object.assign({
2469
+ return /*#__PURE__*/React.createElement(FormFieldPassword, Object.assign({
2470
2470
  key: config.key
2471
2471
  }, field, props));
2472
2472
  }
2473
2473
  case formTypes.textarea:
2474
2474
  {
2475
- return /*#__PURE__*/React$1.createElement(FormFieldTextarea, Object.assign({
2475
+ return /*#__PURE__*/React.createElement(FormFieldTextarea, Object.assign({
2476
2476
  key: config.key
2477
2477
  }, field, props));
2478
2478
  }
2479
2479
  case formTypes.maskedInput:
2480
2480
  {
2481
- return /*#__PURE__*/React$1.createElement(FormFieldMaskedInput, Object.assign({
2481
+ return /*#__PURE__*/React.createElement(FormFieldMaskedInput, Object.assign({
2482
2482
  key: config.key
2483
2483
  }, field, props));
2484
2484
  }
2485
2485
  case formTypes.custom:
2486
2486
  {
2487
- return /*#__PURE__*/React$1.createElement(FormFieldCustom, Object.assign({
2487
+ return /*#__PURE__*/React.createElement(FormFieldCustom, Object.assign({
2488
2488
  key: config.key
2489
2489
  }, field, props));
2490
2490
  }
2491
2491
  case formTypes.group:
2492
2492
  {
2493
- return /*#__PURE__*/React$1.createElement(FormBlockGroup, Object.assign({
2493
+ return /*#__PURE__*/React.createElement(FormBlockGroup, Object.assign({
2494
2494
  key: config.key
2495
2495
  }, field, props), Object.entries(field.group).map(([key, value]) => {
2496
2496
  const groupProps = {
@@ -2616,7 +2616,7 @@ const sendFormDataToServer = async (url, data) => {
2616
2616
  }
2617
2617
  };
2618
2618
 
2619
- const FinalForm = /*#__PURE__*/React$1.forwardRef(function FinalForm(props, ref) {
2619
+ const FinalForm = /*#__PURE__*/React.forwardRef(function FinalForm(props, ref) {
2620
2620
  const {
2621
2621
  className,
2622
2622
  type,
@@ -2722,7 +2722,7 @@ const FinalForm = /*#__PURE__*/React$1.forwardRef(function FinalForm(props, ref)
2722
2722
  styles: formStyles,
2723
2723
  wrapper: wrapperStyles
2724
2724
  } = useStyles(props);
2725
- return /*#__PURE__*/React$1.createElement(Form, {
2725
+ return /*#__PURE__*/React.createElement(Form, {
2726
2726
  initialValues: initialValues,
2727
2727
  initialValuesEqual: initialValuesEqual,
2728
2728
  render: ({
@@ -2731,7 +2731,7 @@ const FinalForm = /*#__PURE__*/React$1.forwardRef(function FinalForm(props, ref)
2731
2731
  handleSubmit,
2732
2732
  modifiedSinceLastSubmit
2733
2733
  }) => {
2734
- return /*#__PURE__*/React$1.createElement("form", {
2734
+ return /*#__PURE__*/React.createElement("form", {
2735
2735
  className: clsx(className, 'form', type && `form_type_${type}`, buttonPosition && `form_button-position_${buttonPosition}`, directionClass, fillClass, shapeClass, elevationClass),
2736
2736
  name: formName,
2737
2737
  autoCapitalize: disableFieldsAutoComplete ? 'off' : undefined,
@@ -2745,39 +2745,39 @@ const FinalForm = /*#__PURE__*/React$1.forwardRef(function FinalForm(props, ref)
2745
2745
  spellCheck: disableFieldsAutoComplete ? 'false' : undefined,
2746
2746
  style: formStyles,
2747
2747
  onSubmit: handleSubmit
2748
- }, before, title && /*#__PURE__*/React$1.createElement(Title, {
2748
+ }, before, title && /*#__PURE__*/React.createElement(Title, {
2749
2749
  className: "form__title",
2750
2750
  size: titleTextSize,
2751
2751
  fill: titleFill,
2752
2752
  textColor: titleTextColor,
2753
2753
  textWeight: titleTextWeight
2754
- }, title), desc && /*#__PURE__*/React$1.createElement(Text, {
2754
+ }, title), desc && /*#__PURE__*/React.createElement(Text, {
2755
2755
  className: "form__desc",
2756
2756
  size: descSize,
2757
2757
  textColor: descTextColor,
2758
2758
  textWeight: descTextWeight
2759
- }, desc), submitError && !modifiedSinceLastSubmit && /*#__PURE__*/React$1.createElement("div", {
2759
+ }, desc), submitError && !modifiedSinceLastSubmit && /*#__PURE__*/React.createElement("div", {
2760
2760
  className: clsx('notification', 'form-notification', notificationType ? `form-notification_${notificationType}` : 'form-notification_global')
2761
- }, /*#__PURE__*/React$1.createElement(Notification, {
2761
+ }, /*#__PURE__*/React.createElement(Notification, {
2762
2762
  className: "form-notification__item",
2763
2763
  appearance: "errorPrimary",
2764
2764
  title: form.getState().submitError,
2765
2765
  titleTextSize: "h6",
2766
2766
  status: "error",
2767
2767
  closeButton: notificationCloseButton
2768
- })), onChangeFormValues && /*#__PURE__*/React$1.createElement(FormSpy, {
2768
+ })), onChangeFormValues && /*#__PURE__*/React.createElement(FormSpy, {
2769
2769
  subscription: {
2770
2770
  values: true
2771
2771
  },
2772
2772
  onChange: onChangeFormValues
2773
- }), Boolean(Object.keys(config).length) && /*#__PURE__*/React$1.createElement(React$1.Fragment, null, renderFieldsWrapper(/*#__PURE__*/React$1.createElement(Group, {
2773
+ }), Boolean(Object.keys(config).length) && /*#__PURE__*/React.createElement(React.Fragment, null, renderFieldsWrapper(/*#__PURE__*/React.createElement(Group, {
2774
2774
  className: "form__wrapper",
2775
2775
  direction: "vertical",
2776
2776
  gap: fieldsGap || groupGap,
2777
2777
  style: wrapperStyles
2778
2778
  }, Object.keys(config).map(key => generateField(config[key], {
2779
2779
  key
2780
- }, additionalProps[config[key].name])), isLoading && (loader || /*#__PURE__*/React$1.createElement(Loader, {
2780
+ }, additionalProps[config[key].name])), isLoading && (loader || /*#__PURE__*/React.createElement(Loader, {
2781
2781
  className: "form__loader",
2782
2782
  type: loaderType,
2783
2783
  appearance: loaderAppearance,
@@ -2786,7 +2786,7 @@ const FinalForm = /*#__PURE__*/React$1.forwardRef(function FinalForm(props, ref)
2786
2786
  text: loaderText,
2787
2787
  itemFill: loaderItemFill,
2788
2788
  shape: loaderShape
2789
- }))))), (primaryButtonLabel || primaryButton || secondaryButtonLabel || secondaryButton || tertiaryButton || tertiaryButtonLabel) && /*#__PURE__*/React$1.createElement(Group, {
2789
+ }))))), (primaryButtonLabel || primaryButton || secondaryButtonLabel || secondaryButton || tertiaryButton || tertiaryButtonLabel) && /*#__PURE__*/React.createElement(Group, {
2790
2790
  className: "form__button",
2791
2791
  direction: buttonDirection,
2792
2792
  justifyContent: buttonJustifyContent,
@@ -2795,7 +2795,7 @@ const FinalForm = /*#__PURE__*/React$1.forwardRef(function FinalForm(props, ref)
2795
2795
  gap: buttonGap,
2796
2796
  dataTestId: dataTestIdButtons,
2797
2797
  dataTour: dataTourButtons
2798
- }, primaryButtonLabel ? /*#__PURE__*/React$1.createElement(Button, {
2798
+ }, primaryButtonLabel ? /*#__PURE__*/React.createElement(Button, {
2799
2799
  className: "form__button-item",
2800
2800
  appearance: primaryButtonAppearance,
2801
2801
  width: "fill",
@@ -2810,7 +2810,7 @@ const FinalForm = /*#__PURE__*/React$1.forwardRef(function FinalForm(props, ref)
2810
2810
  dataTestId: dataTestIdPrimaryButton,
2811
2811
  dataTour: dataTourPrimaryButton,
2812
2812
  loading: primaryButtonIsLoading
2813
- }) : primaryButton, secondaryButtonLabel ? /*#__PURE__*/React$1.createElement(Button, {
2813
+ }) : primaryButton, secondaryButtonLabel ? /*#__PURE__*/React.createElement(Button, {
2814
2814
  className: "form__button-item",
2815
2815
  appearance: secondaryButtonAppearance,
2816
2816
  width: "fill",
@@ -2826,7 +2826,7 @@ const FinalForm = /*#__PURE__*/React$1.forwardRef(function FinalForm(props, ref)
2826
2826
  dataTour: dataTourSecondaryButton,
2827
2827
  loading: secondaryButtonIsLoading,
2828
2828
  onClick: onClickSecondaryButton
2829
- }) : secondaryButton, tertiaryButtonLabel ? /*#__PURE__*/React$1.createElement(Button, {
2829
+ }) : secondaryButton, tertiaryButtonLabel ? /*#__PURE__*/React.createElement(Button, {
2830
2830
  className: "form__button-item",
2831
2831
  width: "fill",
2832
2832
  size: tertiaryButtonSize,