@scbt-ecom/ui 0.166.1 → 0.168.0

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 (192) hide show
  1. package/dist/lib/configs/index.js +1 -1
  2. package/dist/lib/exports/config.js +1 -1
  3. package/dist/lib/exports/hooks.js +1 -1
  4. package/dist/lib/exports/next.js +1 -1
  5. package/dist/lib/exports/ui.js +1 -1
  6. package/dist/lib/exports/utils.js +1 -1
  7. package/dist/lib/exports/validation.js +1 -1
  8. package/dist/lib/exports/widget.js +1 -1
  9. package/dist/lib/next/index.js +1 -1
  10. package/dist/lib/shared/hooks/useMount.js +1 -1
  11. package/dist/lib/shared/style.css +1 -1
  12. package/dist/lib/shared/ui/button/Button.js +1 -1
  13. package/dist/lib/shared/ui/calendar/ui/Navigation.js +1 -1
  14. package/dist/lib/shared/ui/calendar/ui/selectDate/ui/SelectList.js +1 -1
  15. package/dist/lib/shared/ui/carousel/Carousel.js +1 -1
  16. package/dist/lib/shared/ui/carousel/model/index.js +1 -1
  17. package/dist/lib/shared/ui/carousel/ui/ArrowNavigationButton.js +1 -1
  18. package/dist/lib/shared/ui/carousel/ui/RenderSlides.js +1 -1
  19. package/dist/lib/shared/ui/carousel/ui/index.js +1 -1
  20. package/dist/lib/shared/ui/carouselBase/index.js +1 -1
  21. package/dist/lib/shared/ui/carouselBase/model/index.js +1 -1
  22. package/dist/lib/shared/ui/carouselBase/ui/ArrowNavigationButton.js +1 -1
  23. package/dist/lib/shared/ui/carouselBase/ui/CarouselSlide.js +1 -1
  24. package/dist/lib/shared/ui/carouselBase/ui/index.js +1 -1
  25. package/dist/lib/shared/ui/customLink/CustomLink.js +1 -1
  26. package/dist/lib/shared/ui/dropdownList/DropdownList.js +1 -1
  27. package/dist/lib/shared/ui/dropdownList/index.js +1 -1
  28. package/dist/lib/shared/ui/floatButton/FloatButton.js +1 -1
  29. package/dist/lib/shared/ui/formElements/controlled/autocomplete/AutocompleteControl.js +1 -1
  30. package/dist/lib/shared/ui/formElements/controlled/checkbox/CheckboxControl.js +1 -1
  31. package/dist/lib/shared/ui/formElements/controlled/combobox/ComboboxControl.js +1 -1
  32. package/dist/lib/shared/ui/formElements/controlled/dadata/index.js +1 -1
  33. package/dist/lib/shared/ui/formElements/controlled/dayPickerControl/range.js +1 -1
  34. package/dist/lib/shared/ui/formElements/controlled/dayPickerControl/single.js +1 -1
  35. package/dist/lib/shared/ui/formElements/controlled/editor/EditorControl.js +1 -1
  36. package/dist/lib/shared/ui/formElements/controlled/editor/EditorControl.js.map +1 -1
  37. package/dist/lib/shared/ui/formElements/controlled/editor/ui/Editor.js +1 -1
  38. package/dist/lib/shared/ui/formElements/controlled/editor/ui/Editor.js.map +1 -1
  39. package/dist/lib/shared/ui/formElements/controlled/editor/ui/EditorModal.js +1 -1
  40. package/dist/lib/shared/ui/formElements/controlled/editor/ui/EditorModal.js.map +1 -1
  41. package/dist/lib/shared/ui/formElements/controlled/editor/ui/EditorWithModal.js +2 -0
  42. package/dist/lib/shared/ui/formElements/controlled/editor/ui/EditorWithModal.js.map +1 -0
  43. package/dist/lib/shared/ui/formElements/controlled/input/InputControl.js +1 -1
  44. package/dist/lib/shared/ui/formElements/controlled/input/MaskInputControl.js +1 -1
  45. package/dist/lib/shared/ui/formElements/controlled/inputCurrency/InputCurrencyControl.js +1 -1
  46. package/dist/lib/shared/ui/formElements/controlled/inputOtp/InputOtpControl.js +1 -1
  47. package/dist/lib/shared/ui/formElements/controlled/radio/RadioGroupCardControl.js +1 -1
  48. package/dist/lib/shared/ui/formElements/controlled/radio/RadioGroupTabControl.js +1 -1
  49. package/dist/lib/shared/ui/formElements/controlled/slider/SliderControl.js +1 -1
  50. package/dist/lib/shared/ui/formElements/controlled/switch/SwitchControl.js +1 -1
  51. package/dist/lib/shared/ui/formElements/controlled/textarea/TextareaControl.js +1 -1
  52. package/dist/lib/shared/ui/formElements/controlled/uploader/UploaderControl.js +1 -1
  53. package/dist/lib/shared/ui/formElements/index.js +1 -1
  54. package/dist/lib/shared/ui/formElements/ui/fieldAttachment/FieldAttachment.js +1 -1
  55. package/dist/lib/shared/ui/formElements/uncontrolled/combobox/combobox.js +1 -1
  56. package/dist/lib/shared/ui/formElements/uncontrolled/dayPicker/DayPicker.js +1 -1
  57. package/dist/lib/shared/ui/formElements/uncontrolled/inputCurrency/InputCurrency.js +1 -1
  58. package/dist/lib/shared/ui/formElements/uncontrolled/inputOtp/InputOtpBase.js +1 -1
  59. package/dist/lib/shared/ui/formElements/uncontrolled/radio/RadioGroup.js +1 -1
  60. package/dist/lib/shared/ui/formElements/uncontrolled/radio/RadioGroup.js.map +1 -1
  61. package/dist/lib/shared/ui/formElements/uncontrolled/radio/ui/AdditionalContent.js +1 -1
  62. package/dist/lib/shared/ui/formElements/uncontrolled/radio/ui/AdditionalContent.js.map +1 -1
  63. package/dist/lib/shared/ui/formElements/uncontrolled/radio/ui/RadioItem.js +1 -1
  64. package/dist/lib/shared/ui/formElements/uncontrolled/radio/ui/RadioItem.js.map +1 -1
  65. package/dist/lib/shared/ui/formElements/uncontrolled/radio/ui/RadioItemCard.js +1 -1
  66. package/dist/lib/shared/ui/formElements/uncontrolled/radio/ui/RadioItemCard.js.map +1 -1
  67. package/dist/lib/shared/ui/formElements/uncontrolled/slider/ui/sliderAlgorithmic/SliderAlgorithmic.js +1 -1
  68. package/dist/lib/shared/ui/formElements/uncontrolled/slider/ui/sliderAlgorithmic/hooks/useSliderAlgorithmic.js +1 -1
  69. package/dist/lib/shared/ui/formElements/uncontrolled/slider/ui/sliderAlgorithmic/hooks/useSliderAlgorithmic.js.map +1 -1
  70. package/dist/lib/shared/ui/formElements/uncontrolled/uploader/UploaderBase.js +1 -1
  71. package/dist/lib/shared/ui/formElements/uncontrolled/uploader/ui/UploaderInput.js +1 -1
  72. package/dist/lib/shared/ui/index.js +1 -1
  73. package/dist/lib/shared/ui/modal/ui/ModalHeader.js +1 -1
  74. package/dist/lib/shared/ui/modal/ui/ModalHeader.js.map +1 -1
  75. package/dist/lib/shared/ui/pagination/Pagination.js +1 -1
  76. package/dist/lib/shared/ui/tabSwitcher/ui/TabContent.js +1 -1
  77. package/dist/lib/shared/ui/table/Desktop.js +1 -1
  78. package/dist/lib/shared/ui/table/index.js +1 -1
  79. package/dist/lib/shared/ui/table/ui/index.js +1 -1
  80. package/dist/lib/shared/utils/index.js +1 -1
  81. package/dist/lib/shared/utils/variableHolder/variableContextHolder.js.map +1 -1
  82. package/dist/lib/shared/utils/variables/variableResolver.js.map +1 -1
  83. package/dist/lib/shared/validation/index.js +1 -1
  84. package/dist/lib/widgets/banner/ui/index.js +1 -1
  85. package/dist/lib/widgets/calculator/Calculator.js +1 -1
  86. package/dist/lib/widgets/calculator/Calculator.js.map +1 -1
  87. package/dist/lib/widgets/calculator/CalculatorView.js +1 -1
  88. package/dist/lib/widgets/calculator/CalculatorView.js.map +1 -1
  89. package/dist/lib/widgets/calculator/model/helpers.js +1 -1
  90. package/dist/lib/widgets/calculator/model/helpers.js.map +1 -1
  91. package/dist/lib/widgets/calculator/model/index.js +1 -1
  92. package/dist/lib/widgets/calculator/model/utils.js +1 -1
  93. package/dist/lib/widgets/calculator/model/utils.js.map +1 -1
  94. package/dist/lib/widgets/calculator/ui/calculatorFields/CalculatorFields.js +1 -1
  95. package/dist/lib/widgets/calculator/ui/calculatorFields/CalculatorFields.js.map +1 -1
  96. package/dist/lib/widgets/calculator/ui/calculatorFields/ui/CalculatorModal.js +1 -1
  97. package/dist/lib/widgets/calculator/ui/calculatorInfo/CalculatorInfo.js +1 -1
  98. package/dist/lib/widgets/calculator/ui/calculatorInfo/CalculatorInfo.js.map +1 -1
  99. package/dist/lib/widgets/calculator/ui/calculatorInfo/index.js +1 -1
  100. package/dist/lib/widgets/calculator/ui/calculatorInfo/ui/CalculatedBlock.js.map +1 -1
  101. package/dist/lib/widgets/calculator/ui/calculatorInfo/ui/CalculatorInfoBody.js +1 -1
  102. package/dist/lib/widgets/calculator/ui/calculatorInfo/ui/CalculatorInfoBody.js.map +1 -1
  103. package/dist/lib/widgets/calculator/ui/calculatorInfo/ui/InfoListItem.js +1 -1
  104. package/dist/lib/widgets/calculator/ui/calculatorInfo/ui/InfoListItem.js.map +1 -1
  105. package/dist/lib/widgets/calculator/ui/index.js +1 -1
  106. package/dist/lib/widgets/carouselBlock/CarouselBlock.js +1 -1
  107. package/dist/lib/widgets/dynamicFormDialog/DynamicFormDialog.js +1 -1
  108. package/dist/lib/widgets/esia/Esia.js +1 -1
  109. package/dist/lib/widgets/fallbacksView/model/helpers.js +1 -1
  110. package/dist/lib/widgets/footer/Footer.js +1 -1
  111. package/dist/lib/widgets/footer/ui/SocialLinks.js +1 -1
  112. package/dist/lib/widgets/header/Header.js +1 -1
  113. package/dist/lib/widgets/index.js +1 -1
  114. package/dist/lib/widgets/infoBlock/InfoBlock.js +1 -1
  115. package/dist/lib/widgets/interLinking/InterLinking.js +1 -1
  116. package/dist/lib/widgets/interLinking/ui/ColumnGroup.js +1 -1
  117. package/dist/lib/widgets/longBanner/LongBanner.js +1 -1
  118. package/dist/lib/widgets/model/helpers.js +2 -2
  119. package/dist/lib/widgets/seoHeader/SeoHeader.js +1 -1
  120. package/dist/lib/widgets/seoHeader/hooks/index.js +1 -1
  121. package/dist/lib/widgets/seoHeader/ui/desktop/tab/Tab.js +1 -1
  122. package/dist/lib/widgets/seoHeader/ui/desktop/tab/ui/content/TabContent.js +1 -1
  123. package/dist/lib/widgets/seoHeader/ui/mobile/menu/Menu.js +1 -1
  124. package/dist/lib/widgets/seoHeader/ui/mobile/menu/MenuItem.js +1 -1
  125. package/dist/lib/widgets/usefulInfo/ui/subEntities/documents/Documents.js +1 -1
  126. package/dist/lib/widgets/usefulInfo/ui/subEntities/index.js +1 -1
  127. package/dist/node_modules/.pnpm/{@babel_runtime@7.28.4 → @babel_runtime@7.28.6}/node_modules/@babel/runtime/helpers/esm/arrayLikeToArray.js.map +1 -1
  128. package/dist/node_modules/.pnpm/{@babel_runtime@7.28.4 → @babel_runtime@7.28.6}/node_modules/@babel/runtime/helpers/esm/arrayWithHoles.js.map +1 -1
  129. package/dist/node_modules/.pnpm/{@babel_runtime@7.28.4 → @babel_runtime@7.28.6}/node_modules/@babel/runtime/helpers/esm/arrayWithoutHoles.js.map +1 -1
  130. package/dist/node_modules/.pnpm/{@babel_runtime@7.28.4 → @babel_runtime@7.28.6}/node_modules/@babel/runtime/helpers/esm/defineProperty.js.map +1 -1
  131. package/dist/node_modules/.pnpm/{@babel_runtime@7.28.4 → @babel_runtime@7.28.6}/node_modules/@babel/runtime/helpers/esm/extends.js.map +1 -1
  132. package/dist/node_modules/.pnpm/{@babel_runtime@7.28.4 → @babel_runtime@7.28.6}/node_modules/@babel/runtime/helpers/esm/iterableToArray.js.map +1 -1
  133. package/dist/node_modules/.pnpm/{@babel_runtime@7.28.4 → @babel_runtime@7.28.6}/node_modules/@babel/runtime/helpers/esm/iterableToArrayLimit.js.map +1 -1
  134. package/dist/node_modules/.pnpm/{@babel_runtime@7.28.4 → @babel_runtime@7.28.6}/node_modules/@babel/runtime/helpers/esm/nonIterableRest.js.map +1 -1
  135. package/dist/node_modules/.pnpm/{@babel_runtime@7.28.4 → @babel_runtime@7.28.6}/node_modules/@babel/runtime/helpers/esm/nonIterableSpread.js.map +1 -1
  136. package/dist/node_modules/.pnpm/{@babel_runtime@7.28.4 → @babel_runtime@7.28.6}/node_modules/@babel/runtime/helpers/esm/objectSpread2.js.map +1 -1
  137. package/dist/node_modules/.pnpm/{@babel_runtime@7.28.4 → @babel_runtime@7.28.6}/node_modules/@babel/runtime/helpers/esm/objectWithoutProperties.js.map +1 -1
  138. package/dist/node_modules/.pnpm/{@babel_runtime@7.28.4 → @babel_runtime@7.28.6}/node_modules/@babel/runtime/helpers/esm/objectWithoutPropertiesLoose.js.map +1 -1
  139. package/dist/node_modules/.pnpm/{@babel_runtime@7.28.4 → @babel_runtime@7.28.6}/node_modules/@babel/runtime/helpers/esm/slicedToArray.js.map +1 -1
  140. package/dist/node_modules/.pnpm/{@babel_runtime@7.28.4 → @babel_runtime@7.28.6}/node_modules/@babel/runtime/helpers/esm/toConsumableArray.js.map +1 -1
  141. package/dist/node_modules/.pnpm/{@babel_runtime@7.28.4 → @babel_runtime@7.28.6}/node_modules/@babel/runtime/helpers/esm/toPrimitive.js.map +1 -1
  142. package/dist/node_modules/.pnpm/{@babel_runtime@7.28.4 → @babel_runtime@7.28.6}/node_modules/@babel/runtime/helpers/esm/toPropertyKey.js.map +1 -1
  143. package/dist/node_modules/.pnpm/{@babel_runtime@7.28.4 → @babel_runtime@7.28.6}/node_modules/@babel/runtime/helpers/esm/typeof.js.map +1 -1
  144. package/dist/node_modules/.pnpm/{@babel_runtime@7.28.4 → @babel_runtime@7.28.6}/node_modules/@babel/runtime/helpers/esm/unsupportedIterableToArray.js.map +1 -1
  145. package/dist/node_modules/.pnpm/rc-slider@11.1.8_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/rc-slider/es/Handles/Handle.js +1 -1
  146. package/dist/node_modules/.pnpm/rc-slider@11.1.8_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/rc-slider/es/Handles/index.js +1 -1
  147. package/dist/node_modules/.pnpm/rc-slider@11.1.8_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/rc-slider/es/Marks/Mark.js +1 -1
  148. package/dist/node_modules/.pnpm/rc-slider@11.1.8_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/rc-slider/es/Slider.js +1 -1
  149. package/dist/node_modules/.pnpm/rc-slider@11.1.8_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/rc-slider/es/Slider.js.map +1 -1
  150. package/dist/node_modules/.pnpm/rc-slider@11.1.8_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/rc-slider/es/Steps/Dot.js +1 -1
  151. package/dist/node_modules/.pnpm/rc-slider@11.1.8_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/rc-slider/es/Tracks/Track.js +1 -1
  152. package/dist/node_modules/.pnpm/rc-slider@11.1.8_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/rc-slider/es/Tracks/index.js +1 -1
  153. package/dist/node_modules/.pnpm/rc-slider@11.1.8_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/rc-slider/es/hooks/useDrag.js +1 -1
  154. package/dist/node_modules/.pnpm/rc-slider@11.1.8_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/rc-slider/es/hooks/useOffset.js +1 -1
  155. package/dist/node_modules/.pnpm/rc-util@5.44.4_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/rc-util/es/hooks/useMergedState.js +1 -1
  156. package/dist/node_modules/.pnpm/rc-util@5.44.4_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/rc-util/es/hooks/useState.js +1 -1
  157. package/dist/node_modules/.pnpm/rc-util@5.44.4_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/rc-util/es/isEqual.js +1 -1
  158. package/dist/node_modules/.pnpm/rc-util@5.44.4_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/rc-util/es/isEqual.js.map +1 -1
  159. package/dist/stats.html +1 -1
  160. package/dist/types/lib/shared/ui/formElements/controlled/editor/EditorControl.d.ts +6 -9
  161. package/dist/types/lib/shared/ui/formElements/controlled/editor/ui/Editor.d.ts +16 -12
  162. package/dist/types/lib/shared/ui/formElements/controlled/editor/ui/EditorWithModal.d.ts +9 -0
  163. package/dist/types/lib/shared/ui/formElements/uncontrolled/radio/ui/RadioItem.d.ts +4 -2
  164. package/dist/types/lib/shared/utils/variableHolder/variableContextHolder.d.ts +3 -0
  165. package/dist/types/lib/shared/utils/variables/variableResolver.d.ts +4 -3
  166. package/dist/types/lib/widgets/calculator/CalculatorView.d.ts +3 -2
  167. package/dist/types/lib/widgets/calculator/model/helpers.d.ts +2 -2
  168. package/dist/types/lib/widgets/calculator/model/types.d.ts +1 -4
  169. package/dist/types/lib/widgets/calculator/model/utils.d.ts +1 -2
  170. package/dist/types/lib/widgets/calculator/ui/calculatorInfo/CalculatorInfo.d.ts +2 -1
  171. package/dist/types/lib/widgets/calculator/ui/calculatorInfo/ui/CalculatedBlock.d.ts +4 -2
  172. package/dist/types/lib/widgets/calculator/ui/calculatorInfo/ui/CalculatorInfoBody.d.ts +2 -2
  173. package/dist/types/lib/widgets/calculator/ui/calculatorInfo/ui/InfoListItem.d.ts +5 -9
  174. package/package.json +1 -1
  175. /package/dist/node_modules/.pnpm/{@babel_runtime@7.28.4 → @babel_runtime@7.28.6}/node_modules/@babel/runtime/helpers/esm/arrayLikeToArray.js +0 -0
  176. /package/dist/node_modules/.pnpm/{@babel_runtime@7.28.4 → @babel_runtime@7.28.6}/node_modules/@babel/runtime/helpers/esm/arrayWithHoles.js +0 -0
  177. /package/dist/node_modules/.pnpm/{@babel_runtime@7.28.4 → @babel_runtime@7.28.6}/node_modules/@babel/runtime/helpers/esm/arrayWithoutHoles.js +0 -0
  178. /package/dist/node_modules/.pnpm/{@babel_runtime@7.28.4 → @babel_runtime@7.28.6}/node_modules/@babel/runtime/helpers/esm/defineProperty.js +0 -0
  179. /package/dist/node_modules/.pnpm/{@babel_runtime@7.28.4 → @babel_runtime@7.28.6}/node_modules/@babel/runtime/helpers/esm/extends.js +0 -0
  180. /package/dist/node_modules/.pnpm/{@babel_runtime@7.28.4 → @babel_runtime@7.28.6}/node_modules/@babel/runtime/helpers/esm/iterableToArray.js +0 -0
  181. /package/dist/node_modules/.pnpm/{@babel_runtime@7.28.4 → @babel_runtime@7.28.6}/node_modules/@babel/runtime/helpers/esm/iterableToArrayLimit.js +0 -0
  182. /package/dist/node_modules/.pnpm/{@babel_runtime@7.28.4 → @babel_runtime@7.28.6}/node_modules/@babel/runtime/helpers/esm/nonIterableRest.js +0 -0
  183. /package/dist/node_modules/.pnpm/{@babel_runtime@7.28.4 → @babel_runtime@7.28.6}/node_modules/@babel/runtime/helpers/esm/nonIterableSpread.js +0 -0
  184. /package/dist/node_modules/.pnpm/{@babel_runtime@7.28.4 → @babel_runtime@7.28.6}/node_modules/@babel/runtime/helpers/esm/objectSpread2.js +0 -0
  185. /package/dist/node_modules/.pnpm/{@babel_runtime@7.28.4 → @babel_runtime@7.28.6}/node_modules/@babel/runtime/helpers/esm/objectWithoutProperties.js +0 -0
  186. /package/dist/node_modules/.pnpm/{@babel_runtime@7.28.4 → @babel_runtime@7.28.6}/node_modules/@babel/runtime/helpers/esm/objectWithoutPropertiesLoose.js +0 -0
  187. /package/dist/node_modules/.pnpm/{@babel_runtime@7.28.4 → @babel_runtime@7.28.6}/node_modules/@babel/runtime/helpers/esm/slicedToArray.js +0 -0
  188. /package/dist/node_modules/.pnpm/{@babel_runtime@7.28.4 → @babel_runtime@7.28.6}/node_modules/@babel/runtime/helpers/esm/toConsumableArray.js +0 -0
  189. /package/dist/node_modules/.pnpm/{@babel_runtime@7.28.4 → @babel_runtime@7.28.6}/node_modules/@babel/runtime/helpers/esm/toPrimitive.js +0 -0
  190. /package/dist/node_modules/.pnpm/{@babel_runtime@7.28.4 → @babel_runtime@7.28.6}/node_modules/@babel/runtime/helpers/esm/toPropertyKey.js +0 -0
  191. /package/dist/node_modules/.pnpm/{@babel_runtime@7.28.4 → @babel_runtime@7.28.6}/node_modules/@babel/runtime/helpers/esm/typeof.js +0 -0
  192. /package/dist/node_modules/.pnpm/{@babel_runtime@7.28.4 → @babel_runtime@7.28.6}/node_modules/@babel/runtime/helpers/esm/unsupportedIterableToArray.js +0 -0
@@ -1,5 +1,6 @@
1
- import { ReactElement } from 'react';
2
- import { FieldValues, Path, UseControllerProps } from 'react-hook-form';
1
+ import { FieldValues, UseControllerProps } from 'react-hook-form';
2
+ import { ModalProps } from '../../../modal';
3
+ import { BaseEditorProps } from './ui/Editor';
3
4
  export type EditorControlClasses = {
4
5
  root?: string;
5
6
  editor?: string;
@@ -7,12 +8,8 @@ export type EditorControlClasses = {
7
8
  message?: string;
8
9
  label?: string;
9
10
  };
10
- export type EditorControlProps<TFieldValues extends FieldValues, TName extends Path<TFieldValues> = Path<TFieldValues>> = UseControllerProps<TFieldValues, TName> & {
11
+ export type EditorControlProps<T extends FieldValues> = UseControllerProps<T> & BaseEditorProps & {
11
12
  editable?: boolean;
12
- classes?: EditorControlClasses;
13
- helperText?: string | ReactElement;
14
- label: string;
15
- limit?: number;
16
- small?: boolean;
13
+ modalClasses?: ModalProps['classes'];
17
14
  };
18
- export declare const EditorControl: <T extends FieldValues>({ control, label, helperText, editable, classes, defaultValue, disabled, rules, shouldUnregister, name, small, ...props }: EditorControlProps<T>) => import("react/jsx-runtime").JSX.Element;
15
+ export declare const EditorControl: <T extends FieldValues>({ control, label, helperText, editable, classes, defaultValue, disabled, rules, shouldUnregister, name, small, isModal, modalClasses, ...props }: EditorControlProps<T>) => import("react/jsx-runtime").JSX.Element;
@@ -1,26 +1,30 @@
1
1
  import { ReactElement } from 'react';
2
2
  import { FieldError } from 'react-hook-form';
3
3
  import { EditorEvents, UseEditorOptions } from '@tiptap/react';
4
+ import { DeepPartial } from '../../../../../types';
4
5
  import { EditorControlClasses } from '../../../..';
6
+ import { FieldAttachment } from '../../../ui';
5
7
  type ExternalHandlers = {
6
8
  onUpdate?: (editor: EditorEvents['update']) => void;
7
9
  };
8
- interface EditorProps extends Partial<UseEditorOptions> {
9
- onChange: (value: string) => void;
10
- value: string;
10
+ type FieldAttachmentProps = React.ComponentPropsWithoutRef<typeof FieldAttachment>;
11
+ export type BaseEditorProps = {
11
12
  error?: FieldError;
12
13
  classes?: EditorControlClasses;
13
14
  externalHandlers?: ExternalHandlers;
14
- label?: string;
15
+ label: string;
15
16
  helperText?: string | ReactElement;
16
- /**
17
- * Лимит символов
18
- */
19
17
  limit?: number;
20
- /**
21
- * Сделать текстовый редактор маленьким
22
- */
23
18
  small?: boolean;
24
- }
25
- export declare const Editor: import('react').ForwardRefExoticComponent<EditorProps & import('react').RefAttributes<HTMLDivElement>>;
19
+ isModal?: boolean;
20
+ attachmentProps?: DeepPartial<FieldAttachmentProps>;
21
+ };
22
+ export type EditorProps = Partial<UseEditorOptions> & BaseEditorProps & {
23
+ onChange: (value: string) => void;
24
+ value: string;
25
+ };
26
+ export declare const Editor: import('react').ForwardRefExoticComponent<Partial<UseEditorOptions> & BaseEditorProps & {
27
+ onChange: (value: string) => void;
28
+ value: string;
29
+ } & import('react').RefAttributes<HTMLDivElement>>;
26
30
  export {};
@@ -0,0 +1,9 @@
1
+ import { ControllerRenderProps, FieldError, FieldValues } from 'react-hook-form';
2
+ import { EditorControlProps } from '../EditorControl';
3
+ import { ModalProps } from '../../../..';
4
+ export interface EditorWithModalProps<T extends FieldValues> extends Pick<EditorControlProps<T>, 'label' | 'classes' | 'editable' | 'helperText'> {
5
+ field: ControllerRenderProps<T>;
6
+ error?: FieldError;
7
+ modalClasses?: ModalProps['classes'];
8
+ }
9
+ export declare const EditorWithModal: <T extends FieldValues>({ label, classes, editable, helperText, field, error, modalClasses, ...props }: EditorWithModalProps<T>) => import("react/jsx-runtime").JSX.Element;
@@ -4,6 +4,7 @@ export type RadioOption = {
4
4
  id: number | string;
5
5
  value: string;
6
6
  label: string;
7
+ index?: number;
7
8
  disabled?: boolean;
8
9
  additionalContent?: AdditionalContentProps;
9
10
  };
@@ -26,7 +27,7 @@ export type RadioItemProps = Omit<RadioGroupItemProps, 'value'> & {
26
27
  /**
27
28
  * Функция для управления возвращаемым значением
28
29
  */
29
- returnValue?: (option: RadioOption) => string;
30
+ returnValue?: (option: RadioOption, index?: number) => string;
30
31
  /**
31
32
  * Дополнительные стили внутренних компонентов
32
33
  */
@@ -35,5 +36,6 @@ export type RadioItemProps = Omit<RadioGroupItemProps, 'value'> & {
35
36
  * Свойство для отображения не валидного поля
36
37
  */
37
38
  invalid?: boolean;
39
+ index?: number;
38
40
  };
39
- export declare const RadioItem: import('react').MemoExoticComponent<({ item, disabled, displayValue, returnValue, classes, className, invalid, ...props }: RadioItemProps) => import("react/jsx-runtime").JSX.Element>;
41
+ export declare const RadioItem: import('react').MemoExoticComponent<({ item, disabled, displayValue, returnValue, classes, className, invalid, index, ...props }: RadioItemProps) => import("react/jsx-runtime").JSX.Element>;
@@ -152,6 +152,9 @@ export interface VariableStore {
152
152
  * const processedString = transformVariable(stringWithVariables)
153
153
  * ```
154
154
  */
155
+ /**
156
+ * @deprecated dont use
157
+ */
155
158
  export declare class VariableContextHolder<Key extends string = string, Value = string> implements IVariableContextHolder<Key, Value> {
156
159
  private _store;
157
160
  private _variables;
@@ -1,10 +1,11 @@
1
1
  import { AllowedVariablePrefix, Resolved, VariablePattern, VariableType } from './types';
2
2
  export declare const defaultAllowedPrefixes: AllowedVariablePrefix[];
3
- export declare const variableResolver: <Variable extends VariableType>() => {
4
- addPattern: (start: VariablePattern["start"], end: VariablePattern["end"]) => /*elided*/ any;
5
- addVariables: (vars: Variable[]) => /*elided*/ any;
3
+ export type VariableResolver<Variable extends VariableType> = {
4
+ addPattern: (start: VariablePattern['start'], end: VariablePattern['end']) => VariableResolver<Variable>;
5
+ addVariables: (vars: Variable[]) => VariableResolver<Variable>;
6
6
  unwrapVariable: (string: string, allowedPrefixes?: AllowedVariablePrefix[]) => string;
7
7
  wrapVariable: (string: string, allowedPrefixes?: AllowedVariablePrefix[]) => string;
8
8
  escapeVariable: (string: string) => string;
9
9
  resolve: <T>(data: T) => Resolved<T>;
10
10
  };
11
+ export declare const variableResolver: <Variable extends VariableType>() => VariableResolver<Variable>;
@@ -6,9 +6,10 @@ export type CalculatorViewClasses = {
6
6
  calculatorInfo?: CalculatorInfoClasses;
7
7
  };
8
8
  export interface CalculatorViewProps<T extends FieldValues = FieldValues> extends CalculatorTab {
9
- calculatorInfoConfig: CalculatorInfoProps;
9
+ calculatorInfoConfigs: CalculatorInfoProps[];
10
10
  calculatorFieldsConfig: CalculatorFieldsProps<T>;
11
11
  classes?: CalculatorViewClasses;
12
12
  headline?: string;
13
+ radioCardsDefaultValue?: string;
13
14
  }
14
- export declare const CalculatorView: <T extends FieldValues>({ calculatorInfoConfig, calculatorFieldsConfig, classes, headline }: CalculatorViewProps<T>) => import("react/jsx-runtime").JSX.Element;
15
+ export declare const CalculatorView: <T extends FieldValues>({ calculatorInfoConfigs, calculatorFieldsConfig, classes, headline, radioCardsDefaultValue }: CalculatorViewProps<T>) => import("react/jsx-runtime").JSX.Element;
@@ -1,4 +1,4 @@
1
- import { InfoListItemDTO, InfoListItemProps } from '../ui';
1
+ import { InfoListItemProps } from '../ui';
2
2
  import { CalculatorVariables } from './types';
3
3
  export declare const evaluateFormula: (formula: string, variables: CalculatorVariables) => string;
4
- export declare const formatInfoList: (list: InfoListItemDTO[], variables: CalculatorVariables) => InfoListItemProps[];
4
+ export declare const formatInfoList: (list: InfoListItemProps[], variables: CalculatorVariables) => InfoListItemProps[];
@@ -1,9 +1,6 @@
1
1
  import { getCalculatorSchema } from './utils';
2
2
  export type CalculatorVariables = Record<string, any>;
3
3
  export type CalculatorSuffix = 'percent' | 'currency';
4
- export type ValueWithFormula = {
5
- formula: string;
6
- };
7
- export type CalculatorValue = ValueWithFormula | string;
4
+ export type CalculatorRootValue = string;
8
5
  export type ModalContentVariant = 'content1' | 'content2';
9
6
  export type CalculatorSchema = ReturnType<typeof getCalculatorSchema>;
@@ -1,9 +1,8 @@
1
1
  import { FieldValues } from 'react-hook-form';
2
2
  import { z } from 'zod';
3
3
  import { CalculatorViewProps } from '../..';
4
- import { CalculatorSuffix, ValueWithFormula } from './types';
4
+ import { CalculatorSuffix } from './types';
5
5
  import { InfoListItemMode } from '../ui';
6
- export declare const isFormula: (value: ValueWithFormula | string) => value is ValueWithFormula;
7
6
  export declare const formatWithIntl: (suffix: CalculatorSuffix, value: number) => string | null;
8
7
  export declare const formatValueToRenderInfoItem: (renderMode: InfoListItemMode, value: string) => string | null;
9
8
  export declare const getCalculatorSchema: <T extends FieldValues>(props: CalculatorViewProps<T>["calculatorFieldsConfig"]["fieldsGroup"]) => z.ZodObject<any, z.UnknownKeysParam, z.ZodTypeAny, {
@@ -9,5 +9,6 @@ export type CalculatorInfoClasses = {
9
9
  export interface CalculatorInfoProps extends Omit<CalculatedBlockProps, 'classes'>, Omit<CalculatorInfoHeadProps, 'classes'>, Omit<CalculatedInfoBodyProps, 'classes'>, Omit<CalculatorInfoFooterProps, 'classes'> {
10
10
  classes?: CalculatorInfoClasses;
11
11
  headline?: string;
12
+ showCalculatedBlock?: boolean;
12
13
  }
13
- export declare const CalculatorInfo: ({ rootDescription, bottomDescription, rootValue, title, subtitle, buttonsConfig, infoList, suffix, assistHint, headline, classes }: CalculatorInfoProps) => import("react/jsx-runtime").JSX.Element;
14
+ export declare const CalculatorInfo: ({ rootDescription, bottomDescription, rootValue, title, subtitle, buttonsConfig, infoList, suffix, assistHint, headline, isFormula, classes, showCalculatedBlock }: CalculatorInfoProps) => import("react/jsx-runtime").JSX.Element;
@@ -1,4 +1,4 @@
1
- import { CalculatorSuffix, CalculatorValue } from '../../../model';
1
+ import { CalculatorRootValue, CalculatorSuffix } from '../../../model';
2
2
  export type CalculatedBlockClasses = {
3
3
  wrapper?: string;
4
4
  description?: string;
@@ -6,8 +6,10 @@ export type CalculatedBlockClasses = {
6
6
  };
7
7
  export interface CalculatedBlockProps {
8
8
  rootDescription: string;
9
- rootValue: CalculatorValue;
9
+ rootValue: CalculatorRootValue;
10
+ isFormula: boolean;
10
11
  suffix: CalculatorSuffix;
11
12
  classes?: CalculatedBlockClasses;
13
+ showCalculatedBlock?: boolean;
12
14
  }
13
15
  export declare const CalculatedBlock: ({ rootDescription, rootValue, suffix, classes }: CalculatedBlockProps) => import("react/jsx-runtime").JSX.Element;
@@ -1,9 +1,9 @@
1
- import { InfoListItemDTO } from '../..';
1
+ import { InfoListItemProps } from '../..';
2
2
  export type CalculatorInfoBodyClasses = {
3
3
  wrapper?: string;
4
4
  };
5
5
  export interface CalculatedInfoBodyProps {
6
- infoList: InfoListItemDTO[];
6
+ infoList: InfoListItemProps[];
7
7
  classes?: CalculatorInfoBodyClasses;
8
8
  withoutDivider?: boolean;
9
9
  }
@@ -1,18 +1,14 @@
1
- import { CalculatorSuffix, CalculatorValue } from '../../../model';
1
+ import { CalculatorSuffix } from '../../../model';
2
2
  export type InfoListItemMode = CalculatorSuffix | 'text';
3
3
  export type InfoListItemColor = 'dark' | 'blue';
4
- export interface InfoListItemCommon {
4
+ export type InfoListItemValue = string;
5
+ export interface InfoListItemProps {
5
6
  label: string;
6
7
  mode: InfoListItemMode;
7
8
  hint?: string;
8
9
  accent?: boolean;
9
10
  color?: InfoListItemColor;
10
- withFormula?: boolean;
11
- }
12
- export interface InfoListItemDTO extends InfoListItemCommon {
13
- value: CalculatorValue;
14
- }
15
- export interface InfoListItemProps extends InfoListItemCommon {
16
- value: string;
11
+ isFormula: boolean;
12
+ value: InfoListItemValue;
17
13
  }
18
14
  export declare const InfoListItem: ({ hint, value, label, mode, color, accent }: InfoListItemProps) => import("react/jsx-runtime").JSX.Element;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@scbt-ecom/ui",
3
- "version": "0.166.1",
3
+ "version": "0.168.0",
4
4
  "type": "module",
5
5
  "exports": {
6
6
  ".": {