@moysklad/uikit 28.1.0 → 31.20.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 (654) hide show
  1. package/README.md +11 -3
  2. package/dist/colorVariables.css +33 -1
  3. package/dist/components/AutoComplete/AutoComplete.d.ts +4 -2
  4. package/dist/components/AutoComplete/AutoComplete.js +47 -33
  5. package/dist/components/Badge/Badge.js +2 -3
  6. package/dist/components/Badge/Badge_module.css +2 -3
  7. package/dist/components/BentoBlock/BentoBlock.d.ts +15 -0
  8. package/dist/components/BentoBlock/BentoBlock.js +20 -0
  9. package/dist/components/BentoBlock/BentoBlock.module.js +9 -0
  10. package/dist/components/BentoBlock/BentoBlock_module.css +50 -0
  11. package/dist/components/BentoBlock/consts.d.ts +14 -0
  12. package/dist/components/BentoBlock/consts.js +15 -0
  13. package/dist/components/BottomSheet/BottomSheet.js +2 -2
  14. package/dist/components/Breadcrumbs/BreadcrumbItem.d.ts +5 -3
  15. package/dist/components/Breadcrumbs/BreadcrumbItem.js +39 -8
  16. package/dist/components/Breadcrumbs/Breadcrumbs.d.ts +4 -1
  17. package/dist/components/Breadcrumbs/Breadcrumbs.js +10 -6
  18. package/dist/components/Button/Button.d.ts +6 -2
  19. package/dist/components/Button/Button.js +29 -20
  20. package/dist/components/Button/Button.module.js +1 -0
  21. package/dist/components/Button/Button_module.css +20 -14
  22. package/dist/components/Carousel/Carousel.js +5 -4
  23. package/dist/components/Checkbox/Checkbox.d.ts +1 -1
  24. package/dist/components/Checkbox/Checkbox.js +1 -1
  25. package/dist/components/Chip/Chip.helpers.js +5 -2
  26. package/dist/components/Chip/Chip.js +9 -3
  27. package/dist/components/Chip/Chip.legacy_module.css +2 -2
  28. package/dist/components/Chip/Chip.types.d.ts +10 -4
  29. package/dist/components/Chip/Chip_module.css +5 -5
  30. package/dist/components/Chip/components/ChipLabel.d.ts +3 -1
  31. package/dist/components/Chip/components/ChipLabel.js +4 -2
  32. package/dist/components/Chip/components/ChipMainButton.d.ts +3 -4
  33. package/dist/components/Chip/components/ChipMainButton.js +2 -1
  34. package/dist/components/Chip/components/ChipRoot.d.ts +3 -2
  35. package/dist/components/Chip/components/ChipRoot.js +2 -1
  36. package/dist/components/DateRange/ArrowButton/ArrowButton.module.js +6 -0
  37. package/dist/components/DateRange/ArrowButton/ArrowButton_module.css +26 -0
  38. package/dist/components/DateRange/ArrowButton/index.d.ts +8 -0
  39. package/dist/components/DateRange/ArrowButton/index.js +23 -0
  40. package/dist/components/DateRange/Calendar/index.d.ts +12 -0
  41. package/dist/components/DateRange/Calendar/index.js +22 -0
  42. package/dist/components/DateRange/DateRange.d.ts +6 -0
  43. package/dist/components/DateRange/DateRange.js +51 -0
  44. package/dist/components/DateRange/DateRangeDefaultTrigger/DateRangeDefaultTrigger.d.ts +44 -0
  45. package/dist/components/DateRange/DateRangeDefaultTrigger/DateRangeDefaultTrigger.js +128 -0
  46. package/dist/components/DateRange/DateRangeDefaultTrigger/DateRangeDefaultTrigger.module.js +19 -0
  47. package/dist/components/DateRange/DateRangeDefaultTrigger/DateRangeDefaultTrigger_module.css +170 -0
  48. package/dist/components/DateRange/DateRangeDefaultTrigger.module.js +12 -0
  49. package/dist/components/DateRange/DateRangeDefaultTrigger_module.css +43 -0
  50. package/dist/components/DateRange/DateRangeInput/DateRangeInput.d.ts +4 -0
  51. package/dist/components/DateRange/DateRangeInput/DateRangeInput.js +69 -0
  52. package/dist/components/DateRange/Day/Day.module.js +16 -0
  53. package/dist/components/DateRange/Day/Day_module.css +80 -0
  54. package/dist/components/DateRange/Day/index.d.ts +12 -0
  55. package/dist/components/DateRange/Day/index.js +39 -0
  56. package/dist/components/DateRange/DropdownContent/DropdownContent.module.js +10 -0
  57. package/dist/components/DateRange/DropdownContent/DropdownContent_module.css +34 -0
  58. package/dist/components/DateRange/DropdownContent/index.d.ts +24 -0
  59. package/dist/components/DateRange/DropdownContent/index.js +132 -0
  60. package/dist/components/DateRange/InputContent/InputContent.module.js +9 -0
  61. package/dist/components/DateRange/InputContent/InputContent_module.css +31 -0
  62. package/dist/components/DateRange/InputContent/index.d.ts +12 -0
  63. package/dist/components/DateRange/InputContent/index.js +59 -0
  64. package/dist/components/DateRange/Month/Month.module.js +7 -0
  65. package/dist/components/DateRange/Month/Month_module.css +17 -0
  66. package/dist/components/DateRange/Month/index.d.ts +15 -0
  67. package/dist/components/DateRange/Month/index.js +158 -0
  68. package/dist/components/DateRange/Month/utils.d.ts +2 -0
  69. package/dist/components/DateRange/Month/utils.js +8 -0
  70. package/dist/components/DateRange/MonthHeader/MonthHeader.module.js +5 -0
  71. package/dist/components/DateRange/MonthHeader/MonthHeader_module.css +10 -0
  72. package/dist/components/DateRange/MonthHeader/index.d.ts +5 -0
  73. package/dist/components/DateRange/MonthHeader/index.js +26 -0
  74. package/dist/components/DateRange/MonthList/MonthList.module.js +7 -0
  75. package/dist/components/DateRange/MonthList/MonthList_module.css +25 -0
  76. package/dist/components/DateRange/MonthList/index.d.ts +11 -0
  77. package/dist/components/DateRange/MonthList/index.js +91 -0
  78. package/dist/components/DateRange/PeriodVariantList/PeriodVariantList.module.js +9 -0
  79. package/dist/components/DateRange/PeriodVariantList/PeriodVariantList_module.css +18 -0
  80. package/dist/components/DateRange/PeriodVariantList/index.d.ts +18 -0
  81. package/dist/components/DateRange/PeriodVariantList/index.js +83 -0
  82. package/dist/components/DateRange/SideMenu/SideMenu.module.js +6 -0
  83. package/dist/components/DateRange/SideMenu/SideMenu_module.css +18 -0
  84. package/dist/components/DateRange/SideMenu/index.d.ts +13 -0
  85. package/dist/components/DateRange/SideMenu/index.js +73 -0
  86. package/dist/components/DateRange/TooltipedText/index.d.ts +8 -0
  87. package/dist/components/DateRange/TooltipedText/index.js +30 -0
  88. package/dist/components/DateRange/Year/Year.module.js +11 -0
  89. package/dist/components/DateRange/Year/Year_module.css +60 -0
  90. package/dist/components/DateRange/Year/index.d.ts +8 -0
  91. package/dist/components/DateRange/Year/index.js +47 -0
  92. package/dist/components/DateRange/YearsList/YearsList.module.js +5 -0
  93. package/dist/components/DateRange/YearsList/YearsList_module.css +15 -0
  94. package/dist/components/DateRange/YearsList/index.d.ts +12 -0
  95. package/dist/components/DateRange/YearsList/index.js +47 -0
  96. package/dist/components/DateRange/consts.d.ts +20 -0
  97. package/dist/components/DateRange/consts.js +81 -0
  98. package/dist/components/DateRange/formatDateRangeValue.d.ts +24 -0
  99. package/dist/components/DateRange/formatDateRangeValue.js +116 -0
  100. package/dist/components/DateRange/hooks/useCalendar.d.ts +13 -0
  101. package/dist/components/DateRange/hooks/useCalendar.js +88 -0
  102. package/dist/components/DateRange/hooks/useDateRange.d.ts +392 -0
  103. package/dist/components/DateRange/hooks/useDateRange.js +36 -0
  104. package/dist/components/DateRange/hooks/useDateRangeDropdown.d.ts +47 -0
  105. package/dist/components/DateRange/hooks/useDateRangeDropdown.js +117 -0
  106. package/dist/components/DateRange/hooks/useDateRangeValue.d.ts +56 -0
  107. package/dist/components/DateRange/hooks/useDateRangeValue.js +173 -0
  108. package/dist/components/DateRange/hooks/useMaskInput.d.ts +18 -0
  109. package/dist/components/DateRange/hooks/useMaskInput.js +169 -0
  110. package/dist/components/DateRange/hooks/useMonthList.d.ts +12 -0
  111. package/dist/components/DateRange/hooks/useMonthList.js +80 -0
  112. package/dist/components/DateRange/hooks/useSideMenu.d.ts +14 -0
  113. package/dist/components/DateRange/hooks/useSideMenu.js +113 -0
  114. package/dist/components/DateRange/index.d.ts +1 -0
  115. package/dist/components/DateRange/index.js +1 -0
  116. package/dist/components/DateRange/locale/en-US.d.ts +2 -0
  117. package/dist/components/DateRange/locale/en-US.js +82 -0
  118. package/dist/components/DateRange/locale/index.d.ts +4 -0
  119. package/dist/components/DateRange/locale/index.js +3 -0
  120. package/dist/components/DateRange/locale/ru-RU.d.ts +2 -0
  121. package/dist/components/DateRange/locale/ru-RU.js +82 -0
  122. package/dist/components/DateRange/locale/types.d.ts +9 -0
  123. package/dist/components/DateRange/locale/types.js +7 -0
  124. package/dist/components/DateRange/locale/useLocale.d.ts +8 -0
  125. package/dist/components/DateRange/locale/useLocale.js +31 -0
  126. package/dist/components/DateRange/props.d.ts +39 -0
  127. package/dist/components/DateRange/props.js +0 -0
  128. package/dist/components/DateRange/types.d.ts +126 -0
  129. package/dist/components/DateRange/types.js +13 -0
  130. package/dist/components/DateRange/utils.d.ts +33 -0
  131. package/dist/components/DateRange/utils.js +105 -0
  132. package/dist/components/Datepicker/Datepicker.d.ts +3 -1
  133. package/dist/components/Datepicker/Datepicker.js +4 -2
  134. package/dist/components/Dropdown/Dropdown.d.ts +2 -0
  135. package/dist/components/Dropdown/Dropdown.js +7 -4
  136. package/dist/components/Dropdown/hooks/usePosition.d.ts +2 -1
  137. package/dist/components/Dropdown/hooks/usePosition.js +3 -3
  138. package/dist/components/EditableDate/DropdownContent/DropdownContent.d.ts +9 -0
  139. package/dist/components/EditableDate/DropdownContent/DropdownContent.js +36 -0
  140. package/dist/components/EditableDate/EditableDate.d.ts +9 -0
  141. package/dist/components/EditableDate/EditableDate.js +142 -0
  142. package/dist/components/EditableDate/EditableDate.module.js +7 -0
  143. package/dist/components/EditableDate/EditableDate_module.css +32 -0
  144. package/dist/components/EditableTitle/EditableTitle.d.ts +7 -2
  145. package/dist/components/EditableTitle/EditableTitle.js +64 -32
  146. package/dist/components/EditableTitle/EditableTitle.module.js +1 -0
  147. package/dist/components/EditableTitle/EditableTitle_module.css +6 -0
  148. package/dist/components/EmptyState/EmptyState.d.ts +1 -1
  149. package/dist/components/EmptyStateLarge/EmptyStateLarge_module.css +2 -2
  150. package/dist/components/FileUploader/FileUploader.helpers.d.ts +1 -0
  151. package/dist/components/FileUploader/FileUploader.helpers.js +4 -1
  152. package/dist/components/FileUploader/FileUploader.js +3 -1
  153. package/dist/components/FileUploader/FileUploader.types.d.ts +1 -0
  154. package/dist/components/FileUploader/components/FileUploaderPreview/FileUploaderPreview.js +4 -4
  155. package/dist/components/Help/Help.d.ts +12 -5
  156. package/dist/components/Help/Help.js +22 -7
  157. package/dist/components/Help/Help.module.js +6 -2
  158. package/dist/components/Help/Help_module.css +36 -8
  159. package/dist/components/Hint/Hint.js +4 -5
  160. package/dist/components/Hint/Hint.module.js +2 -3
  161. package/dist/components/Hint/Hint_module.css +0 -9
  162. package/dist/components/Informer/Informer.d.ts +37 -0
  163. package/dist/components/Informer/Informer.js +36 -0
  164. package/dist/components/Informer/Informer.module.js +7 -0
  165. package/dist/components/Informer/Informer_module.css +24 -0
  166. package/dist/components/Input/Input.d.ts +10 -0
  167. package/dist/components/Input/Input.js +99 -43
  168. package/dist/components/Input/Input.module.js +19 -3
  169. package/dist/components/Input/Input_module.css +156 -19
  170. package/dist/components/Input/components/InfoBlock.d.ts +14 -0
  171. package/dist/components/Input/components/InfoBlock.js +32 -0
  172. package/dist/components/InputUnit/InputUnit.d.ts +3 -0
  173. package/dist/components/InputUnit/InputUnit.js +45 -35
  174. package/dist/components/InputUnit/InputUnit.module.js +6 -1
  175. package/dist/components/InputUnit/InputUnit_module.css +27 -29
  176. package/dist/components/InputUnit/SelectUnit/SelectUnit.d.ts +1 -1
  177. package/dist/components/InputUnit/SelectUnit/SelectUnit.js +1 -4
  178. package/dist/components/InputUnit/SelectUnit/SelectUnit.module.js +1 -0
  179. package/dist/components/InputUnit/SelectUnit/SelectUnitVisible.d.ts +1 -1
  180. package/dist/components/InputUnit/SelectUnit/SelectUnitVisible.js +7 -2
  181. package/dist/components/InputUnit/SelectUnit/SelectUnit_module.css +29 -37
  182. package/dist/components/InputUnit/SelectUnit/type.d.ts +1 -0
  183. package/dist/components/InputUnit/Unit/Unit.js +1 -2
  184. package/dist/components/InputUnit/Unit/Unit_module.css +1 -0
  185. package/dist/components/Label/Label.d.ts +1 -0
  186. package/dist/components/LabelValue/LabelValue.d.ts +14 -10
  187. package/dist/components/LabelValue/LabelValue.js +59 -72
  188. package/dist/components/LabelValue/LabelValue.module.js +7 -4
  189. package/dist/components/LabelValue/LabelValue_module.css +36 -19
  190. package/dist/components/LabelValue/ValueBlock/ValueBlock.d.ts +2 -0
  191. package/dist/components/LabelValue/ValueBlock/ValueBlock.js +82 -0
  192. package/dist/components/LabelValue/ValueBlockWrapper.d.ts +5 -0
  193. package/dist/components/LabelValue/ValueBlockWrapper.js +13 -0
  194. package/dist/components/LabelValue/ValueIcon.d.ts +4 -0
  195. package/dist/components/LabelValue/ValueIcon.js +9 -0
  196. package/dist/components/LabelValue/ValueText.d.ts +10 -0
  197. package/dist/components/LabelValue/ValueText.js +24 -0
  198. package/dist/components/LabelValue/ValueTextWithHint.d.ts +12 -0
  199. package/dist/components/LabelValue/ValueTextWithHint.js +29 -0
  200. package/dist/components/LabelValue/hooks/useValueBlock.d.ts +29 -0
  201. package/dist/components/LabelValue/hooks/useValueBlock.js +72 -0
  202. package/dist/components/LabelValue/{ValueBlock/index.d.ts → types.d.ts} +8 -4
  203. package/dist/components/LabelValue/types.js +0 -0
  204. package/dist/components/LabelValueCheckbox/LabelValueCheckbox.d.ts +10 -0
  205. package/dist/components/LabelValueCheckbox/LabelValueCheckbox.js +22 -0
  206. package/dist/components/LabelValueCheckbox/LabelValueCheckbox.module.js +5 -0
  207. package/dist/components/LabelValueCheckbox/LabelValueCheckbox_module.css +5 -0
  208. package/dist/components/LabelValueDate/LabelValueDate.js +2 -2
  209. package/dist/components/LabelValueFile/DeleteButton/DeleteButton.d.ts +9 -0
  210. package/dist/components/LabelValueFile/DeleteButton/DeleteButton.js +17 -0
  211. package/dist/components/LabelValueFile/FilePreviewIcon/FilePreviewIcon.d.ts +7 -0
  212. package/dist/components/LabelValueFile/FilePreviewIcon/FilePreviewIcon.js +15 -0
  213. package/dist/components/LabelValueFile/FilePreviewIcon/FilePreviewIcon.module.js +6 -0
  214. package/dist/components/LabelValueFile/FilePreviewIcon/FilePreviewIcon_module.css +10 -0
  215. package/dist/components/LabelValueFile/ImagePreview/ImagePreview.d.ts +8 -0
  216. package/dist/components/LabelValueFile/ImagePreview/ImagePreview.js +53 -0
  217. package/dist/components/LabelValueFile/ImagePreview/ImagePreview.module.js +6 -0
  218. package/dist/components/LabelValueFile/ImagePreview/ImagePreview_module.css +13 -0
  219. package/dist/components/LabelValueFile/LabelValueFile.d.ts +7 -0
  220. package/dist/components/LabelValueFile/LabelValueFile.js +42 -0
  221. package/dist/components/LabelValueFile/LabelValueFile.module.js +12 -0
  222. package/dist/components/LabelValueFile/LabelValueFile_module.css +57 -0
  223. package/dist/components/LabelValueFile/ValueBlock/ValueBlock.d.ts +15 -0
  224. package/dist/components/LabelValueFile/ValueBlock/ValueBlock.js +130 -0
  225. package/dist/components/LabelValueFile/ValueBlock/ValueBlock.module.js +7 -0
  226. package/dist/components/LabelValueFile/ValueBlock/ValueBlock_module.css +17 -0
  227. package/dist/components/LabelValueInput/DropdownConnent/DropdownContent.d.ts +2 -0
  228. package/dist/components/LabelValueInput/DropdownConnent/DropdownContent.js +2 -0
  229. package/dist/components/LabelValueLink/LabelValueLink.d.ts +2 -0
  230. package/dist/components/LabelValueLink/LabelValueLink.js +76 -0
  231. package/dist/components/LabelValueLink/LabelValueLink.module.js +6 -0
  232. package/dist/components/LabelValueLink/LabelValueLink_module.css +11 -0
  233. package/dist/components/LabelValueLink/ValueBlock/LabelValueLinkValueBlock.d.ts +2 -0
  234. package/dist/components/LabelValueLink/ValueBlock/LabelValueLinkValueBlock.js +117 -0
  235. package/dist/components/LabelValueLink/ValueBlock/LabelValueLinkValueBlock.module.js +6 -0
  236. package/dist/components/LabelValueLink/ValueBlock/LabelValueLinkValueBlock_module.css +8 -0
  237. package/dist/components/LabelValueLink/normalizeLinkValue.d.ts +1 -0
  238. package/dist/components/LabelValueLink/normalizeLinkValue.js +10 -0
  239. package/dist/components/LabelValueLink/useLinkDropdownValue.d.ts +15 -0
  240. package/dist/components/LabelValueLink/useLinkDropdownValue.js +26 -0
  241. package/dist/components/LabelValueSelect/Input/Input_module.css +1 -3
  242. package/dist/components/LabelValueSelect/Input/index.js +1 -1
  243. package/dist/components/LabelValueSelect/LabelValueSelect.d.ts +4 -2
  244. package/dist/components/Layout/Layout.d.ts +13 -0
  245. package/dist/components/Layout/Layout.js +41 -0
  246. package/dist/components/Layout/Layout.module.js +15 -0
  247. package/dist/components/Layout/Layout_module.css +77 -0
  248. package/dist/components/Link/Link.d.ts +5 -6
  249. package/dist/components/Link/Link.js +35 -9
  250. package/dist/components/Link/Link.module.js +1 -0
  251. package/dist/components/Link/Link_module.css +9 -0
  252. package/dist/components/MentionsTextfield/Mentions/style.css +2 -6
  253. package/dist/components/MentionsTextfield/MentionsTextfield.d.ts +1 -1
  254. package/dist/components/MentionsTextfield/MentionsTextfield.js +42 -25
  255. package/dist/components/Multiselect/AllSelectedChip/AllSelectedChip.d.ts +8 -0
  256. package/dist/components/Multiselect/AllSelectedChip/AllSelectedChip.js +13 -0
  257. package/dist/components/Multiselect/AllSelectedChip/AllSelectedChip.module.js +5 -0
  258. package/dist/components/Multiselect/AllSelectedChip/AllSelectedChip_module.css +9 -0
  259. package/dist/components/Multiselect/DropdownContent/MultiselectDropdownContent.d.ts +12 -1
  260. package/dist/components/Multiselect/DropdownContent/MultiselectDropdownContent.js +25 -19
  261. package/dist/components/Multiselect/Input/Input.d.ts +6 -2
  262. package/dist/components/Multiselect/Input/Input.js +18 -4
  263. package/dist/components/Multiselect/Input/Input_module.css +1 -3
  264. package/dist/components/Multiselect/Multiselect.d.ts +8 -2
  265. package/dist/components/Multiselect/Multiselect.js +14 -2
  266. package/dist/components/Multiselect/ShortDropdownContent/ShortDropdownContent.js +2 -1
  267. package/dist/components/Multiselect/TextField/MultiselectTextField.d.ts +5 -1
  268. package/dist/components/Multiselect/TextField/MultiselectTextField.js +15 -2
  269. package/dist/components/Multiselect/lib/consts.d.ts +1 -1
  270. package/dist/components/Multiselect/lib/consts.js +1 -1
  271. package/dist/components/Multiselect/lib/helpers.d.ts +24 -0
  272. package/dist/components/Multiselect/lib/helpers.js +15 -0
  273. package/dist/components/Multiselect/types.d.ts +2 -0
  274. package/dist/components/Panel/Panel.d.ts +34 -0
  275. package/dist/components/Panel/Panel.js +39 -0
  276. package/dist/components/Panel/Panel.module.js +6 -0
  277. package/dist/components/Panel/Panel_module.css +17 -0
  278. package/dist/components/Radiobutton/Radiobutton.js +1 -1
  279. package/dist/components/Radiobutton/Radiobutton_module.css +5 -0
  280. package/dist/components/SearchInput/SearchInput_module.css +1 -1
  281. package/dist/components/Select/ArchivedInputValue/ArchivedInputValue.d.ts +3 -4
  282. package/dist/components/Select/ArchivedInputValue/ArchivedInputValue.js +19 -24
  283. package/dist/components/Select/ArchivedInputValue/ArchivedInputValue.module.js +1 -2
  284. package/dist/components/Select/ArchivedInputValue/ArchivedInputValue_module.css +5 -12
  285. package/dist/components/Select/Combobox/Combobox.d.ts +3 -1
  286. package/dist/components/Select/Combobox/Combobox.js +19 -8
  287. package/dist/components/Select/Combobox/Combobox.module.js +4 -3
  288. package/dist/components/Select/Combobox/Combobox_module.css +17 -15
  289. package/dist/components/Select/DropDownWithColors/DropDownWithColors.d.ts +1 -0
  290. package/dist/components/Select/DropDownWithColors/DropDownWithColors.js +2 -1
  291. package/dist/components/Select/DropdownActionsContainer/DropdownActionsContainer.d.ts +3 -0
  292. package/dist/components/Select/DropdownActionsContainer/DropdownActionsContainer.js +17 -0
  293. package/dist/components/Select/DropdownActionsContainer/DropdownActionsContainer.module.js +6 -0
  294. package/dist/components/Select/DropdownActionsContainer/DropdownActionsContainer_module.css +12 -0
  295. package/dist/components/Select/OptionsList/OptionsList.d.ts +4 -1
  296. package/dist/components/Select/OptionsList/OptionsList.js +39 -22
  297. package/dist/components/Select/OptionsList/OptionsList.module.js +2 -0
  298. package/dist/components/Select/OptionsList/OptionsList_module.css +19 -0
  299. package/dist/components/Select/Select.d.ts +10 -5
  300. package/dist/components/Select/Select.js +45 -40
  301. package/dist/components/Select/Select.module.js +1 -2
  302. package/dist/components/Select/Select_module.css +7 -14
  303. package/dist/components/Select/ShortVariant/ShortVariant.d.ts +5 -1
  304. package/dist/components/Select/ShortVariant/ShortVariant.js +6 -5
  305. package/dist/components/Select/ShortVariant/ShortVariant.module.js +1 -0
  306. package/dist/components/Select/ShortVariant/ShortVariant_module.css +5 -1
  307. package/dist/components/Select/types.d.ts +1 -0
  308. package/dist/components/Select/useDropdownPadding.d.ts +5 -0
  309. package/dist/components/Select/useDropdownPadding.js +22 -0
  310. package/dist/components/StatusBadge/StatusBadge.d.ts +28 -0
  311. package/dist/components/StatusBadge/StatusBadge.js +167 -0
  312. package/dist/components/StatusBadge/StatusBadge.module.js +37 -0
  313. package/dist/components/StatusBadge/StatusBadge_module.css +149 -0
  314. package/dist/components/StatusBadge/utils/StatusBadgeColor.d.ts +21 -0
  315. package/dist/components/StatusBadge/utils/StatusBadgeColor.js +20 -0
  316. package/dist/components/StatusBadge/utils/getStatusBadgeColor.d.ts +2 -0
  317. package/dist/components/StatusBadge/utils/getStatusBadgeColor.js +8 -0
  318. package/dist/components/Textfield/Textfield.d.ts +24 -3
  319. package/dist/components/Textfield/Textfield.js +38 -13
  320. package/dist/components/Textfield/Textfield.module.js +2 -1
  321. package/dist/components/Textfield/Textfield_module.css +95 -23
  322. package/dist/components/Textfield/components/ActionButton/ActionButton.d.ts +9 -0
  323. package/dist/components/Textfield/components/ActionButton/ActionButton.js +12 -0
  324. package/dist/components/Textfield/components/ActionButton/ActionButton.module.js +9 -0
  325. package/dist/components/Textfield/components/ActionButton/ActionButton_module.css +54 -0
  326. package/dist/components/Textfield/components/ActionButton/index.d.ts +1 -0
  327. package/dist/components/Textfield/components/ActionButton/index.js +1 -0
  328. package/dist/components/Textfield/components/Container/Container.d.ts +2 -0
  329. package/dist/components/Textfield/components/Container/Container.js +21 -7
  330. package/dist/components/Textfield/components/Container/Container.module.js +2 -1
  331. package/dist/components/Textfield/components/Container/Container_module.css +4 -0
  332. package/dist/components/Textfield/components/Counter/Counter.d.ts +3 -1
  333. package/dist/components/Textfield/components/Counter/Counter.js +5 -3
  334. package/dist/components/Textfield/components/Info/Info.d.ts +3 -1
  335. package/dist/components/Textfield/components/Info/Info.js +9 -4
  336. package/dist/components/Textfield/components/InnerContainer/InnerContainer.d.ts +3 -6
  337. package/dist/components/Textfield/components/InnerContainer/InnerContainer.js +2 -8
  338. package/dist/components/Textfield/components/InputContainer/InputContainer.d.ts +14 -3
  339. package/dist/components/Textfield/components/InputContainer/InputContainer.js +74 -5
  340. package/dist/components/Textfield/components/InputContainer/InputContainer.module.js +7 -1
  341. package/dist/components/Textfield/components/InputContainer/InputContainer_module.css +36 -7
  342. package/dist/components/Textfield/components/ResizeHandle/ResizeHandle.d.ts +10 -0
  343. package/dist/components/Textfield/components/ResizeHandle/ResizeHandle.js +50 -0
  344. package/dist/components/Textfield/components/ResizeHandle/ResizeHandle.module.js +7 -0
  345. package/dist/components/Textfield/components/ResizeHandle/ResizeHandle_module.css +21 -0
  346. package/dist/components/Textfield/components/ResizeHandle/index.d.ts +1 -0
  347. package/dist/components/Textfield/components/ResizeHandle/index.js +1 -0
  348. package/dist/components/Textfield/consts/index.d.ts +2 -0
  349. package/dist/components/Textfield/consts/index.js +3 -0
  350. package/dist/components/Textfield/types/index.d.ts +12 -0
  351. package/dist/components/Textfield/types/index.js +5 -0
  352. package/dist/components/Textfield/utils/index.d.ts +3 -0
  353. package/dist/components/Textfield/utils/index.js +8 -0
  354. package/dist/components/Toggle/Toggle.js +1 -1
  355. package/dist/components/Tooltip/Tooltip.d.ts +4 -1
  356. package/dist/components/Tooltip/Tooltip.js +9 -9
  357. package/dist/components/Tooltip/Tooltip.module.js +3 -1
  358. package/dist/components/Tooltip/Tooltip_module.css +13 -3
  359. package/dist/components/Tooltip/{consts.d.ts → constants/ArrowAlign.d.ts} +0 -2
  360. package/dist/components/Tooltip/constants/TooltipBodyColor.d.ts +4 -0
  361. package/dist/components/Tooltip/constants/TooltipBodyColor.js +5 -0
  362. package/dist/components/Tooltip/constants/index.d.ts +2 -0
  363. package/dist/components/Tooltip/constants/index.js +2 -0
  364. package/dist/components/Tooltip/hooks.d.ts +2 -2
  365. package/dist/components/Tooltip/hooks.js +1 -1
  366. package/dist/components/Tooltip/types.d.ts +4 -0
  367. package/dist/components/Tooltip/types.js +0 -0
  368. package/dist/components/ViewersStack/ViewersStack.d.ts +13 -0
  369. package/dist/components/ViewersStack/ViewersStack.js +79 -0
  370. package/dist/components/ViewersStack/ViewersStack.module.js +7 -0
  371. package/dist/components/ViewersStack/ViewersStack_module.css +18 -0
  372. package/dist/components/ViewersStack/components/Avatar/Avatar.d.ts +13 -0
  373. package/dist/components/ViewersStack/components/Avatar/Avatar.js +35 -0
  374. package/dist/components/ViewersStack/components/Avatar/Avatar.module.js +13 -0
  375. package/dist/components/ViewersStack/components/Avatar/Avatar_module.css +45 -0
  376. package/dist/components/ViewersStack/components/Counter/Counter.d.ts +9 -0
  377. package/dist/components/ViewersStack/components/Counter/Counter.js +27 -0
  378. package/dist/components/ViewersStack/components/Counter/Counter.module.js +5 -0
  379. package/dist/components/ViewersStack/components/Counter/Counter_module.css +20 -0
  380. package/dist/components/ViewersStack/components/ViewersTooltip/ViewersTooltip.d.ts +15 -0
  381. package/dist/components/ViewersStack/components/ViewersTooltip/ViewersTooltip.js +41 -0
  382. package/dist/components/ViewersStack/components/ViewersTooltip/ViewersTooltip.module.js +6 -0
  383. package/dist/components/ViewersStack/components/ViewersTooltip/ViewersTooltip_module.css +14 -0
  384. package/dist/components/ViewersStack/components/ViewersTooltipOverlayItem/ViewersTooltipOverlayItem.d.ts +6 -0
  385. package/dist/components/ViewersStack/components/ViewersTooltipOverlayItem/ViewersTooltipOverlayItem.js +53 -0
  386. package/dist/components/ViewersStack/components/ViewersTooltipOverlayItem/ViewersTooltipOverlayItem.module.js +7 -0
  387. package/dist/components/ViewersStack/components/ViewersTooltipOverlayItem/ViewersTooltipOverlayItem_module.css +18 -0
  388. package/dist/components/ViewersStack/components/common.module.js +7 -0
  389. package/dist/components/ViewersStack/components/common_module.css +27 -0
  390. package/dist/components/ViewersStack/types.d.ts +22 -0
  391. package/dist/components/ViewersStack/types.js +17 -0
  392. package/dist/components/ViewersStack/utils.d.ts +3 -0
  393. package/dist/components/ViewersStack/utils.js +17 -0
  394. package/dist/components/_shared/CustomDatepickerDropdownContent/CustomDatepickerDropdownContent.d.ts +12 -0
  395. package/dist/components/{LabelValueDate/DropdownContent/index.js → _shared/CustomDatepickerDropdownContent/CustomDatepickerDropdownContent.js} +10 -10
  396. package/dist/components/_shared/CustomDatepickerDropdownContent/CustomDatepickerDropdownContent.module.js +9 -0
  397. package/dist/components/{LabelValueDate/DropdownContent/DropdownContent_module.css → _shared/CustomDatepickerDropdownContent/CustomDatepickerDropdownContent_module.css} +6 -6
  398. package/dist/components/_shared/FieldLabel/FieldLabel.constants.d.ts +1 -0
  399. package/dist/components/_shared/FieldLabel/FieldLabel.constants.js +5 -0
  400. package/dist/components/_shared/FieldLabel/FieldLabel.d.ts +18 -0
  401. package/dist/components/_shared/FieldLabel/FieldLabel.js +83 -0
  402. package/dist/components/_shared/FieldLabel/FieldLabel.module.js +11 -0
  403. package/dist/components/_shared/FieldLabel/FieldLabel_module.css +42 -0
  404. package/dist/components/_shared/FieldLabel/components/HelpButton.d.ts +8 -0
  405. package/dist/components/_shared/FieldLabel/components/HelpButton.js +15 -0
  406. package/dist/components/_shared/FieldLabel/components/HelpButton.module.js +5 -0
  407. package/dist/components/_shared/FieldLabel/components/HelpButton_module.css +8 -0
  408. package/dist/components/_shared/FieldLabel/components/index.d.ts +1 -0
  409. package/dist/components/_shared/FieldLabel/components/index.js +1 -0
  410. package/dist/components/{FieldRow → _shared/FieldRow}/FieldRow.d.ts +1 -1
  411. package/dist/components/{FieldRow → _shared/FieldRow}/FieldRow.js +1 -1
  412. package/dist/components/{FieldRow → _shared/FieldRow}/FieldRow.module.js +3 -3
  413. package/dist/components/{FieldRow → _shared/FieldRow}/FieldRow_module.css +3 -3
  414. package/dist/components/{EditableTitle → _shared/HintWithSkip}/HintWithSkip.d.ts +1 -1
  415. package/dist/components/{EditableTitle → _shared/HintWithSkip}/HintWithSkip.js +1 -1
  416. package/dist/components/_shared/Info/Info.d.ts +12 -0
  417. package/dist/components/_shared/Info/Info.js +46 -0
  418. package/dist/components/_shared/Info/Info.module.js +9 -0
  419. package/dist/components/_shared/Info/Info_module.css +32 -0
  420. package/dist/components/_shared/Info/types/index.d.ts +6 -0
  421. package/dist/components/_shared/Info/types/index.js +5 -0
  422. package/dist/components/_shared/InputClear/InputClear.d.ts +14 -0
  423. package/dist/components/_shared/InputClear/InputClear.js +18 -0
  424. package/dist/components/{InputClear → _shared/InputClear}/InputClear.module.js +3 -1
  425. package/dist/components/_shared/InputClear/InputClear_module.css +34 -0
  426. package/dist/components/_shared/utils/polymorphicClickableTypes.d.ts +17 -0
  427. package/dist/components/_shared/utils/polymorphicClickableTypes.js +7 -0
  428. package/dist/data-grid/Filters/DateRangeFilter/DropdownContent/index.js +3 -3
  429. package/dist/data-grid/Filters/DateRangeFilter/InputContent/index.js +29 -26
  430. package/dist/data-grid/Filters/DateRangeFilter/PeriodVariantList/index.js +5 -3
  431. package/dist/data-grid/Filters/DateRangeFilter/Year/index.js +3 -3
  432. package/dist/data-grid/Filters/DateRangeFilter/consts.js +6 -6
  433. package/dist/data-grid/Filters/DateRangeFilter/hooks/useMaskInput.js +6 -6
  434. package/dist/data-grid/Filters/DateRangeFilter/hooks/useSideMenu.js +1 -4
  435. package/dist/data-grid/Filters/DateRangeFilter/types.d.ts +68 -56
  436. package/dist/data-grid/Filters/FiltersContainer/FiltersContainer.js +2 -1
  437. package/dist/data-grid/Filters/FiltersContainer/utils/useRenderParams.d.ts +1 -0
  438. package/dist/data-grid/Filters/FiltersContainer/utils/useRenderParams.js +14 -6
  439. package/dist/data-grid/Filters/MultiselectFilter/MultiselectFilter.js +2 -2
  440. package/dist/data-grid/Filters/OutlineInput/OutlineInput.js +2 -2
  441. package/dist/data-grid/Filters/OutlineInput/OutlineInput_module.css +1 -1
  442. package/dist/data-grid/Table/Table.d.ts +14 -22
  443. package/dist/data-grid/Table/Table.js +99 -61
  444. package/dist/data-grid/Table/Table.module.js +2 -0
  445. package/dist/data-grid/Table/Table_module.css +23 -1
  446. package/dist/data-grid/Table/components/Body/Body.d.ts +10 -14
  447. package/dist/data-grid/Table/components/Body/Body.js +11 -47
  448. package/dist/data-grid/Table/components/DraggableRow/DraggableRow.js +1 -1
  449. package/dist/data-grid/Table/components/Footer/Footer.module.js +0 -1
  450. package/dist/data-grid/Table/components/Footer/FooterContent.d.ts +9 -0
  451. package/dist/data-grid/Table/components/Footer/{Footer.js → FooterContent.js} +4 -5
  452. package/dist/data-grid/Table/components/Footer/Footer_module.css +0 -5
  453. package/dist/data-grid/Table/components/Header/Header.module.js +0 -1
  454. package/dist/data-grid/Table/components/Header/HeaderCell.js +3 -1
  455. package/dist/data-grid/Table/components/Header/HeaderContent.d.ts +1 -0
  456. package/dist/data-grid/Table/components/Header/{Header.js → HeaderContent.js} +8 -6
  457. package/dist/data-grid/Table/components/Header/Header_module.css +0 -15
  458. package/dist/data-grid/Table/components/Row/Row.d.ts +13 -0
  459. package/dist/data-grid/Table/components/Row/Row.js +40 -0
  460. package/dist/data-grid/Table/components/Row/Row.module.js +14 -0
  461. package/dist/data-grid/Table/components/{TableRow/TableRow_module.css → Row/Row_module.css} +7 -7
  462. package/dist/data-grid/Table/components/SubRows/SubRows.d.ts +5 -4
  463. package/dist/data-grid/Table/components/SubRows/SubRows.js +3 -3
  464. package/dist/data-grid/Table/components/TableCell/TableCell.js +2 -0
  465. package/dist/data-grid/Table/components/TableDragOverlay/TableDragOverlay.d.ts +5 -6
  466. package/dist/data-grid/Table/components/TableDragOverlay/TableDragOverlay.js +2 -2
  467. package/dist/data-grid/Table/components/TableRow/TableRow.d.ts +6 -14
  468. package/dist/data-grid/Table/components/TableRow/TableRow.js +34 -25
  469. package/dist/data-grid/Table/components/VirtualTable/VirtualTable.d.ts +10 -0
  470. package/dist/data-grid/Table/components/VirtualTable/VirtualTable.js +78 -0
  471. package/dist/data-grid/Table/components/VirtualTable/VirtualTableRow.d.ts +11 -0
  472. package/dist/data-grid/Table/components/VirtualTable/VirtualTableRow.js +18 -0
  473. package/dist/data-grid/Table/components/index.d.ts +3 -3
  474. package/dist/data-grid/Table/components/index.js +2 -2
  475. package/dist/data-grid/Table/constants.d.ts +2 -0
  476. package/dist/data-grid/Table/constants.js +3 -1
  477. package/dist/data-grid/Table/hooks/index.d.ts +1 -0
  478. package/dist/data-grid/Table/hooks/index.js +1 -0
  479. package/dist/data-grid/Table/hooks/useRowContext.d.ts +16 -0
  480. package/dist/data-grid/Table/hooks/useRowContext.js +44 -0
  481. package/dist/data-grid/Table/hooks/useTableContext.d.ts +7 -2
  482. package/dist/data-grid/Table/hooks/useTableContext.js +12 -2
  483. package/dist/data-grid/Table/index.d.ts +2 -2
  484. package/dist/data-grid/Table/types.d.ts +8 -1
  485. package/dist/data-grid/Table/types.js +5 -0
  486. package/dist/data-grid/Table/utils/compareColumnIds.d.ts +1 -0
  487. package/dist/data-grid/Table/utils/compareColumnIds.js +6 -0
  488. package/dist/data-grid/Table/utils/getColumnWidthStyles.d.ts +5 -0
  489. package/dist/data-grid/Table/utils/getColumnWidthStyles.js +4 -1
  490. package/dist/data-grid/Table/utils/getTableColumnIds.d.ts +3 -0
  491. package/dist/data-grid/Table/utils/getTableColumnIds.js +5 -0
  492. package/dist/data-grid/Table/utils/index.d.ts +2 -0
  493. package/dist/data-grid/Table/utils/index.js +2 -0
  494. package/dist/data-grid/Table/utils/withDnD.js +1 -1
  495. package/dist/data-grid/base/DropdownItem/DropdownItem.d.ts +3 -3
  496. package/dist/data-grid/base/DropdownItem/DropdownItem.js +3 -2
  497. package/dist/data-grid/base/OverflowHint/OverflowHint.d.ts +1 -0
  498. package/dist/data-grid/base/OverflowHint/OverflowHint.js +5 -3
  499. package/dist/data-grid/base/OverflowHint/utils.d.ts +1 -0
  500. package/dist/data-grid/base/OverflowHint/utils.js +7 -0
  501. package/dist/data-grid/cells/AutoCompleteCell/AutoCompleteCell.js +3 -4
  502. package/dist/data-grid/cells/DecimalCell/DecimalCell_module.css +1 -1
  503. package/dist/data-grid/cells/FileCell/FileCell_module.css +1 -1
  504. package/dist/data-grid/cells/ImageCell/ImageCell.d.ts +1 -0
  505. package/dist/data-grid/cells/ImageCell/ImageCell.js +5 -2
  506. package/dist/data-grid/cells/ImageCell/ImageMiniature/ImageMiniature_module.css +1 -1
  507. package/dist/data-grid/cells/IndexCheckboxDndCell/IndexCheckboxDndCell.d.ts +7 -2
  508. package/dist/data-grid/cells/IndexCheckboxDndCell/IndexCheckboxDndCell.js +6 -4
  509. package/dist/data-grid/cells/InputCell/InputCell.js +3 -4
  510. package/dist/data-grid/cells/IntegerCell/IntegerCell_module.css +1 -1
  511. package/dist/data-grid/cells/LinkCell/LinkCell_module.css +1 -1
  512. package/dist/data-grid/cells/NameCell/NameCell.js +3 -0
  513. package/dist/data-grid/cells/NameCell/NameCell_module.css +2 -2
  514. package/dist/data-grid/cells/NumberInputCell/NumberInputCell.js +19 -17
  515. package/dist/data-grid/cells/SelectCell/SelectCell.js +3 -4
  516. package/dist/data-grid/cells/TextCell/TextCell_module.css +1 -1
  517. package/dist/data-grid/cells/ToggleCell/ToggleCell_module.css +1 -1
  518. package/dist/data-grid/cells/components/EditableCellWrapper/EditableCellWrapper.d.ts +3 -0
  519. package/dist/data-grid/cells/components/EditableCellWrapper/EditableCellWrapper.js +9 -0
  520. package/dist/data-grid/cells/components/EditableCellWrapper/EditableCellWrapper.module.js +5 -0
  521. package/dist/data-grid/cells/{InputCell/InputCell_module.css → components/EditableCellWrapper/EditableCellWrapper_module.css} +2 -2
  522. package/dist/data-grid/cells/components/EditableCellWrapper/index.d.ts +1 -0
  523. package/dist/data-grid/cells/components/EditableCellWrapper/index.js +1 -0
  524. package/dist/data-grid/cells/components/RowActionsMenu/RowActionsMenu.d.ts +4 -3
  525. package/dist/data-grid/cells/components/RowActionsMenu/RowActionsMenu.js +13 -13
  526. package/dist/data-grid/cells/components/TableInput/TableInput.js +19 -3
  527. package/dist/data-grid/cells/components/TableInput/TableInput_module.css +1 -1
  528. package/dist/data-grid/cells/components/TableNumberInput/TableNumberInput.d.ts +5 -3
  529. package/dist/data-grid/cells/components/TableNumberInput/TableNumberInput.js +56 -55
  530. package/dist/data-grid/cells/components/TableSelect/ActionButton/ActionButton.d.ts +4 -1
  531. package/dist/data-grid/cells/components/TableSelect/ActionButton/ActionButton.js +4 -3
  532. package/dist/data-grid/cells/components/TableSelect/TableSelect.d.ts +15 -10
  533. package/dist/data-grid/cells/components/TableSelect/TableSelect.js +13 -8
  534. package/dist/data-grid/cells/components/index.d.ts +1 -0
  535. package/dist/data-grid/cells/components/index.js +1 -0
  536. package/dist/data-grid/cells/index.d.ts +1 -1
  537. package/dist/data-grid/cells/index.js +1 -1
  538. package/dist/data-grid/headers/PlainTextHeader.js +3 -2
  539. package/dist/data-grid/headers/components/Dropdown/Dropdown.d.ts +3 -0
  540. package/dist/data-grid/headers/components/Dropdown/DropdownArrowBtn/DropdownArrowBtn.js +5 -1
  541. package/dist/data-grid/headers/components/Dropdown/Option/Option.d.ts +1 -1
  542. package/dist/data-grid/headers/components/Dropdown/Option/Option.js +2 -2
  543. package/dist/data-grid/headers/components/Dropdown/Option/Option_module.css +10 -2
  544. package/dist/data-grid/headers/components/HeaderBuilder/HeaderBuilder.d.ts +13 -3
  545. package/dist/data-grid/headers/components/HeaderBuilder/HeaderBuilder.js +65 -83
  546. package/dist/data-grid/headers/components/HeaderBuilder/HeaderBuilder.module.js +2 -1
  547. package/dist/data-grid/headers/components/HeaderBuilder/HeaderBuilder_module.css +21 -0
  548. package/dist/data-grid/headers/components/HeaderSortGroups/components/SortByOption/SortByOption.js +7 -15
  549. package/dist/data-grid/headers/components/HideColumn/HideColumn.js +8 -13
  550. package/dist/data-grid/headers/components/ResetFilter/ResetFilter.js +7 -10
  551. package/dist/data-grid/headers/components/ResetFilter/ResetFilter.module.js +0 -1
  552. package/dist/data-grid/headers/components/ResetFilter/ResetFilter_module.css +1 -21
  553. package/dist/data-grid/headers/components/index.d.ts +1 -1
  554. package/dist/data-grid/headers/index.d.ts +1 -1
  555. package/dist/data-grid/headers/types/types.d.ts +1 -0
  556. package/dist/data-grid/index.d.ts +0 -4
  557. package/dist/data-grid/locale/en-US.js +68 -56
  558. package/dist/data-grid/locale/ru-RU.js +68 -56
  559. package/dist/data-grid/locale/useLocale.d.ts +6 -1
  560. package/dist/data-grid/locale/useLocale.js +14 -5
  561. package/dist/data-grid/types/index.d.ts +1 -0
  562. package/dist/data-grid/utils/isOverflowed.js +21 -1
  563. package/dist/hooks/useDebounceCallback/useDebounceCallback.d.ts +2 -0
  564. package/dist/hooks/useDebounceCallback/useDebounceCallback.js +21 -0
  565. package/dist/hooks/useDismissOnFocusOutside/index.d.ts +2 -1
  566. package/dist/hooks/useDismissOnFocusOutside/index.js +4 -3
  567. package/dist/hooks/useDismissOnOutsideClick/index.d.ts +2 -1
  568. package/dist/hooks/useDismissOnOutsideClick/index.js +4 -3
  569. package/dist/hooks/useIsElementOverflowing/index.d.ts +1 -0
  570. package/dist/hooks/useIsElementOverflowing/index.js +8 -2
  571. package/dist/hooks/useOverflowHint/index.d.ts +7 -0
  572. package/dist/hooks/useOverflowHint/index.js +16 -0
  573. package/dist/hooks/useTextField/useTextField.d.ts +5 -6
  574. package/dist/hooks/useTextField/useTextField.js +6 -24
  575. package/dist/hooks/useUnmount/useUnmount.d.ts +1 -0
  576. package/dist/hooks/useUnmount/useUnmount.js +9 -0
  577. package/dist/icon/components/MsLogo12Icon.d.ts +8 -0
  578. package/dist/icon/components/MsLogo12Icon.js +28 -0
  579. package/dist/icon/components/MsLogo16Icon.d.ts +8 -0
  580. package/dist/icon/components/MsLogo16Icon.js +26 -0
  581. package/dist/icon/components/MsLogo20Icon.d.ts +8 -0
  582. package/dist/icon/components/MsLogo20Icon.js +28 -0
  583. package/dist/icon/components/MyApps12Icon.d.ts +8 -0
  584. package/dist/icon/components/MyApps12Icon.js +18 -0
  585. package/dist/icon/components/MyApps16Icon.d.ts +8 -0
  586. package/dist/icon/components/MyApps16Icon.js +17 -0
  587. package/dist/icon/components/MyApps20Icon.d.ts +8 -0
  588. package/dist/icon/components/MyApps20Icon.js +18 -0
  589. package/dist/icon/components/Phone12Icon.d.ts +8 -0
  590. package/dist/icon/components/Phone12Icon.js +18 -0
  591. package/dist/icon/components/Phone16Icon.d.ts +8 -0
  592. package/dist/icon/components/Phone16Icon.js +17 -0
  593. package/dist/icon/components/Phone20Icon.d.ts +8 -0
  594. package/dist/icon/components/Phone20Icon.js +18 -0
  595. package/dist/icon/components/Smile12Icon.d.ts +8 -0
  596. package/dist/icon/components/Smile12Icon.js +17 -0
  597. package/dist/icon/components/Smile16Icon.d.ts +8 -0
  598. package/dist/icon/components/Smile16Icon.js +16 -0
  599. package/dist/icon/components/Smile20Icon.d.ts +8 -0
  600. package/dist/icon/components/Smile20Icon.js +17 -0
  601. package/dist/icon/index.d.ts +12 -0
  602. package/dist/icon/index.js +12 -0
  603. package/dist/index.d.ts +13 -5
  604. package/dist/index.js +11 -1
  605. package/dist/utils/checkIsArchivedValue.d.ts +2 -0
  606. package/dist/utils/checkIsArchivedValue.js +5 -0
  607. package/dist/utils/debounce/debounce.d.ts +10 -0
  608. package/dist/utils/debounce/debounce.js +73 -0
  609. package/dist/utils/isRecordEqual/isRecordEqual.d.ts +1 -0
  610. package/dist/utils/isRecordEqual/isRecordEqual.js +9 -0
  611. package/dist/utils/utils.d.ts +3 -0
  612. package/dist/utils/utils.js +3 -0
  613. package/package.json +88 -12
  614. package/dist/components/Info/Info.d.ts +0 -13
  615. package/dist/components/Info/Info.js +0 -20
  616. package/dist/components/Info/Info.module.js +0 -6
  617. package/dist/components/Info/Info_module.css +0 -11
  618. package/dist/components/InputClear/InputClear.d.ts +0 -11
  619. package/dist/components/InputClear/InputClear.js +0 -12
  620. package/dist/components/InputClear/InputClear_module.css +0 -21
  621. package/dist/components/LabelValue/HelpButton/HelpButton.module.js +0 -8
  622. package/dist/components/LabelValue/HelpButton/HelpButton_module.css +0 -44
  623. package/dist/components/LabelValue/HelpButton/index.d.ts +0 -8
  624. package/dist/components/LabelValue/HelpButton/index.js +0 -36
  625. package/dist/components/LabelValue/ValueBlock/index.js +0 -138
  626. package/dist/components/LabelValue/hooks/useTooltip.d.ts +0 -8
  627. package/dist/components/LabelValue/hooks/useTooltip.js +0 -16
  628. package/dist/components/LabelValueDate/DropdownContent/DropdownContent.module.js +0 -9
  629. package/dist/components/LabelValueDate/DropdownContent/index.d.ts +0 -12
  630. package/dist/components/Textfield/components/ClearIcon/ClearIcon.d.ts +0 -6
  631. package/dist/components/Textfield/components/ClearIcon/ClearIcon.js +0 -13
  632. package/dist/components/Textfield/components/ClearIcon/ClearIcon.module.js +0 -6
  633. package/dist/components/Textfield/components/ClearIcon/ClearIcon_module.css +0 -11
  634. package/dist/components/Textfield/components/Label/Label.d.ts +0 -9
  635. package/dist/components/Textfield/components/Label/Label.js +0 -32
  636. package/dist/components/Textfield/components/Label/Label.module.js +0 -7
  637. package/dist/components/Textfield/components/Label/Label_module.css +0 -17
  638. package/dist/components/Textfield/components/Label/index.d.ts +0 -1
  639. package/dist/components/Textfield/components/Label/index.js +0 -1
  640. package/dist/data-grid/Table/components/Footer/Footer.d.ts +0 -9
  641. package/dist/data-grid/Table/components/Header/Header.d.ts +0 -8
  642. package/dist/data-grid/Table/components/TableRow/TableRow.module.js +0 -14
  643. package/dist/data-grid/cells/AutoCompleteCell/AutoCompleteCell.module.js +0 -5
  644. package/dist/data-grid/cells/AutoCompleteCell/AutoCompleteCell_module.css +0 -8
  645. package/dist/data-grid/cells/InputCell/InputCell.module.js +0 -5
  646. package/dist/data-grid/cells/NumberInputCell/NumberInputCell.module.js +0 -5
  647. package/dist/data-grid/cells/NumberInputCell/NumberInputCell_module.css +0 -8
  648. package/dist/data-grid/cells/SelectCell/SelectCell.module.js +0 -8
  649. package/dist/data-grid/cells/SelectCell/SelectCell_module.css +0 -33
  650. package/dist/data-grid/headers/components/HeaderSortGroups/components/SortByOption/SortByOption.module.js +0 -7
  651. package/dist/data-grid/headers/components/HeaderSortGroups/components/SortByOption/SortByOption_module.css +0 -22
  652. package/dist/data-grid/headers/components/HideColumn/HideColumn.module.js +0 -6
  653. package/dist/data-grid/headers/components/HideColumn/HideColumn_module.css +0 -20
  654. /package/dist/components/Tooltip/{consts.js → constants/ArrowAlign.js} +0 -0
@@ -1,72 +1,144 @@
1
1
  .textarea-V0PDbc {
2
- color: var(--text-primary, #091739);
2
+ scrollbar-color: var(--border-normal) #0000;
3
+ }
4
+
5
+ .textarea-V0PDbc.m-d5lyS7 {
6
+ letter-spacing: 0;
7
+ text-transform: none;
8
+ font-feature-settings: "tnum" on,"lnum" on;
9
+ -webkit-font-smoothing: antialiased;
10
+ color: var(--body-text-color, var(--text-primary, #091739));
3
11
  box-sizing: border-box;
4
12
  width: 100%;
5
13
  resize: inherit;
6
14
  background-color: #0000;
7
15
  border: none;
8
- border-radius: 8px;
9
16
  outline: none;
10
- padding: 6px 12px;
17
+ margin: 0;
18
+ padding: 8px 8px 8px 12px;
11
19
  font-family: ALS Hauss, sans-serif;
12
20
  font-size: 14px;
13
- font-style: normal;
14
21
  font-weight: 400;
15
22
  line-height: 20px;
16
23
  display: block;
17
24
  }
18
25
 
19
- .textarea-V0PDbc.clearable-c3zLgM {
20
- padding-right: 36px;
21
- }
22
-
23
- .textarea-V0PDbc:disabled, .textarea-V0PDbc:disabled:hover, .textarea-V0PDbc:disabled:focus {
26
+ .textarea-V0PDbc.m-d5lyS7:disabled, .textarea-V0PDbc.m-d5lyS7:disabled:hover, .textarea-V0PDbc.m-d5lyS7:disabled:focus {
24
27
  color: var(--text-secondary, #5f6d79);
25
28
  }
26
29
 
27
- .textarea-V0PDbc::placeholder {
30
+ .textarea-V0PDbc.m-d5lyS7::placeholder {
28
31
  color: var(--text-tertiary, #9fa7af);
29
32
  }
30
33
 
31
- .textarea-V0PDbc:focus-within, .textarea-V0PDbc:focus-visible, .textarea-V0PDbc:focus {
34
+ .textarea-V0PDbc.m-d5lyS7:focus-within, .textarea-V0PDbc.m-d5lyS7:focus-visible, .textarea-V0PDbc.m-d5lyS7:focus {
35
+ outline: none;
36
+ }
37
+
38
+ .textarea-V0PDbc.l-ZsiQBg {
39
+ letter-spacing: 0;
40
+ text-transform: none;
41
+ font-feature-settings: "tnum" on,"lnum" on;
42
+ -webkit-font-smoothing: antialiased;
43
+ color: #091739;
44
+ box-sizing: border-box;
45
+ width: 100%;
46
+ resize: inherit;
47
+ background-color: #0000;
48
+ border: none;
32
49
  outline: none;
50
+ margin: 0;
51
+ padding: 8px 8px 8px 12px;
52
+ font-family: ALS Hauss, sans-serif;
53
+ font-size: 16px;
54
+ font-weight: 400;
55
+ line-height: 24px;
56
+ display: block;
33
57
  }
34
58
 
35
- .input-tESIWx.clearable-c3zLgM textarea {
36
- padding-right: 36px;
59
+ .textarea-V0PDbc.l-ZsiQBg:disabled, .textarea-V0PDbc.l-ZsiQBg:disabled:hover, .textarea-V0PDbc.l-ZsiQBg:disabled:focus {
60
+ color: var(--text-secondary, #5f6d79);
61
+ }
62
+
63
+ .textarea-V0PDbc.l-ZsiQBg::placeholder {
64
+ color: var(--text-tertiary, #9fa7af);
65
+ }
66
+
67
+ .textarea-V0PDbc.l-ZsiQBg:focus-within, .textarea-V0PDbc.l-ZsiQBg:focus-visible, .textarea-V0PDbc.l-ZsiQBg:focus {
68
+ outline: none;
37
69
  }
38
70
 
39
- .input-tESIWx textarea {
40
- color: var(--text-primary, #091739);
71
+ .input-tESIWx.m-d5lyS7 textarea {
72
+ letter-spacing: 0;
73
+ text-transform: none;
74
+ font-feature-settings: "tnum" on,"lnum" on;
75
+ -webkit-font-smoothing: antialiased;
76
+ color: var(--body-text-color, var(--text-primary, #091739));
41
77
  box-sizing: border-box;
42
78
  width: 100%;
43
79
  resize: inherit;
44
80
  background-color: #0000;
45
81
  border: none;
46
- border-radius: 8px;
47
82
  outline: none;
48
- padding: 6px 12px;
83
+ margin: 0;
84
+ padding: 8px 8px 8px 12px;
49
85
  font-family: ALS Hauss, sans-serif;
50
86
  font-size: 14px;
51
- font-style: normal;
52
87
  font-weight: 400;
53
88
  line-height: 20px;
54
89
  display: block;
55
90
  }
56
91
 
57
- .input-tESIWx textarea.clearable-c3zLgM {
58
- padding-right: 36px;
92
+ .input-tESIWx.m-d5lyS7 textarea:disabled, .input-tESIWx.m-d5lyS7 textarea:disabled:hover, .input-tESIWx.m-d5lyS7 textarea:disabled:focus {
93
+ color: var(--text-secondary, #5f6d79);
94
+ }
95
+
96
+ .input-tESIWx.m-d5lyS7 textarea::placeholder {
97
+ color: var(--text-tertiary, #9fa7af);
98
+ }
99
+
100
+ .input-tESIWx.m-d5lyS7 textarea:focus-within, .input-tESIWx.m-d5lyS7 textarea:focus-visible, .input-tESIWx.m-d5lyS7 textarea:focus {
101
+ outline: none;
102
+ }
103
+
104
+ .input-tESIWx.m-d5lyS7 textarea {
105
+ scrollbar-color: var(--border-normal) #0000;
106
+ }
107
+
108
+ .input-tESIWx.l-ZsiQBg textarea {
109
+ letter-spacing: 0;
110
+ text-transform: none;
111
+ font-feature-settings: "tnum" on,"lnum" on;
112
+ -webkit-font-smoothing: antialiased;
113
+ color: #091739;
114
+ box-sizing: border-box;
115
+ width: 100%;
116
+ resize: inherit;
117
+ background-color: #0000;
118
+ border: none;
119
+ outline: none;
120
+ margin: 0;
121
+ padding: 8px 8px 8px 12px;
122
+ font-family: ALS Hauss, sans-serif;
123
+ font-size: 16px;
124
+ font-weight: 400;
125
+ line-height: 24px;
126
+ display: block;
59
127
  }
60
128
 
61
- .input-tESIWx textarea:disabled, .input-tESIWx textarea:disabled:hover, .input-tESIWx textarea:disabled:focus {
129
+ .input-tESIWx.l-ZsiQBg textarea:disabled, .input-tESIWx.l-ZsiQBg textarea:disabled:hover, .input-tESIWx.l-ZsiQBg textarea:disabled:focus {
62
130
  color: var(--text-secondary, #5f6d79);
63
131
  }
64
132
 
65
- .input-tESIWx textarea::placeholder {
133
+ .input-tESIWx.l-ZsiQBg textarea::placeholder {
66
134
  color: var(--text-tertiary, #9fa7af);
67
135
  }
68
136
 
69
- .input-tESIWx textarea:focus-within, .input-tESIWx textarea:focus-visible, .input-tESIWx textarea:focus {
137
+ .input-tESIWx.l-ZsiQBg textarea:focus-within, .input-tESIWx.l-ZsiQBg textarea:focus-visible, .input-tESIWx.l-ZsiQBg textarea:focus {
70
138
  outline: none;
71
139
  }
72
140
 
141
+ .input-tESIWx.l-ZsiQBg textarea {
142
+ scrollbar-color: var(--border-normal) #0000;
143
+ }
144
+
@@ -0,0 +1,9 @@
1
+ import { type ButtonHTMLAttributes, type FC, type ReactNode } from 'react';
2
+ import { type TextfieldSizeValue } from '../../types';
3
+ export interface ActionButtonProps extends Omit<ButtonHTMLAttributes<HTMLButtonElement>, 'children'> {
4
+ size?: TextfieldSizeValue;
5
+ iconOverride?: ReactNode;
6
+ icon?: ReactNode;
7
+ variant?: 'primary' | 'filled';
8
+ }
9
+ export declare const ActionButton: FC<ActionButtonProps>;
@@ -0,0 +1,12 @@
1
+ import { jsx } from "react/jsx-runtime";
2
+ import { memo } from "react";
3
+ import { cn } from "../../../../common/index.js";
4
+ import { TextfieldSize } from "../../types/index.js";
5
+ import ActionButton_module from "./ActionButton.module.js";
6
+ const ActionButton = /*#__PURE__*/ memo(({ size = TextfieldSize.M, iconOverride, icon, variant = 'primary', ...otherProps })=>/*#__PURE__*/ jsx("button", {
7
+ className: cn(ActionButton_module.button, ActionButton_module[size], ActionButton_module[variant]),
8
+ ...otherProps,
9
+ children: iconOverride ? iconOverride : icon
10
+ }));
11
+ ActionButton.displayName = 'ActionButton';
12
+ export { ActionButton };
@@ -0,0 +1,9 @@
1
+ import "./ActionButton_module.css";
2
+ const ActionButton_module = {
3
+ button: "button-crrsl4",
4
+ m: "m-yAtFJ1",
5
+ l: "l-uexXPu",
6
+ primary: "primary-ByhgOy",
7
+ filled: "filled-VBblHB"
8
+ };
9
+ export default ActionButton_module;
@@ -0,0 +1,54 @@
1
+ .button-crrsl4 {
2
+ color: var(--elements-normal);
3
+ cursor: pointer;
4
+ background-color: #0000;
5
+ border: none;
6
+ border-radius: 4px;
7
+ outline: none;
8
+ justify-content: center;
9
+ align-items: center;
10
+ margin: 0;
11
+ padding: 0;
12
+ display: flex;
13
+ }
14
+
15
+ .button-crrsl4:disabled {
16
+ color: var(--text-tertiary);
17
+ cursor: not-allowed;
18
+ }
19
+
20
+ .m-yAtFJ1 {
21
+ width: 20px;
22
+ height: 20px;
23
+ }
24
+
25
+ .l-uexXPu {
26
+ width: 28px;
27
+ height: 28px;
28
+ }
29
+
30
+ .primary-ByhgOy:hover:not(:disabled), .primary-ByhgOy:active:not(:disabled) {
31
+ color: var(--elements-hover);
32
+ }
33
+
34
+ .primary-ByhgOy:focus-visible:not(:disabled) {
35
+ color: var(--elements-hover);
36
+ outline: 1px solid var(--border-focused);
37
+ }
38
+
39
+ .filled-VBblHB:hover:not(:disabled) {
40
+ color: var(--elements-hover);
41
+ background-color: var(--elements-chips-regular-hover);
42
+ }
43
+
44
+ .filled-VBblHB:active:not(:disabled) {
45
+ color: var(--elements-hover);
46
+ background-color: var(--elements-chips-regular-pressed);
47
+ }
48
+
49
+ .filled-VBblHB:focus-visible:not(:disabled) {
50
+ color: var(--elements-hover);
51
+ outline: 1px solid var(--border-focused);
52
+ background-color: var(--elements-chips-regular-hover);
53
+ }
54
+
@@ -0,0 +1 @@
1
+ export { ActionButton, type ActionButtonProps } from './ActionButton';
@@ -0,0 +1 @@
1
+ export { ActionButton } from "./ActionButton.js";
@@ -1,10 +1,12 @@
1
1
  import { type FC, type HTMLAttributes } from 'react';
2
2
  import { type IHasTestId } from '../../../../common/types';
3
+ import { type HelpProps } from '../../../Help/Help';
3
4
  import { type InfoProps } from '../Info/Info';
4
5
  interface Props extends HTMLAttributes<HTMLDivElement>, IHasTestId, InfoProps {
5
6
  label?: string;
6
7
  textfieldId: string;
7
8
  required?: boolean;
9
+ helpProps?: Omit<HelpProps, 'testId'>;
8
10
  }
9
11
  export declare const Container: FC<Props>;
10
12
  export {};
@@ -1,22 +1,35 @@
1
1
  import { jsx, jsxs } from "react/jsx-runtime";
2
2
  import { memo } from "react";
3
3
  import { cn } from "../../../../common/css/cn.js";
4
+ import { FieldLabel } from "../../../_shared/FieldLabel/FieldLabel.js";
5
+ import { TextVariant } from "../../../Text/Text.js";
6
+ import { Placement } from "../../../Help/Help.js";
7
+ import { TextfieldSize } from "../../types/index.js";
8
+ import { isSizeM } from "../../utils/index.js";
4
9
  import { Info } from "../Info/Info.js";
5
- import { Label } from "../Label/Label.js";
6
10
  import Container_module from "./Container.module.js";
7
- const Container = /*#__PURE__*/ memo(({ children, testId, className, label, textfieldId, required = false, limit, showCounterLimit, value, disabled, error, info = '', hasHelp, ...otherProps })=>{
11
+ const Container = /*#__PURE__*/ memo(({ children, testId, className, label, textfieldId, required = false, limit, showCounterLimit, value, disabled, error, info = '', hasHelp, size = TextfieldSize.M, helpProps, ...otherProps })=>{
8
12
  const hasInfo = info.length > 0;
9
- const hasCounter = (!showCounterLimit || value.toString().length >= showCounterLimit) && limit > 0;
13
+ const hasCounter = (!showCounterLimit || value.toString().length >= showCounterLimit) && Boolean(limit);
14
+ const labelVariant = isSizeM(size) ? TextVariant.body : TextVariant.bodyL;
10
15
  return /*#__PURE__*/ jsxs("div", {
11
16
  "data-test-id": testId,
12
17
  className: cn(Container_module.wrapper, className),
13
18
  ...otherProps,
14
19
  children: [
15
- label && /*#__PURE__*/ jsx(Label, {
16
- testId: testId,
20
+ /*#__PURE__*/ jsx(FieldLabel, {
17
21
  label: label,
18
22
  required: required,
19
- htmlFor: textfieldId
23
+ helpSize: size,
24
+ helpProps: {
25
+ placement: Placement.TOP,
26
+ popup: null,
27
+ ...helpProps
28
+ },
29
+ testId: testId,
30
+ htmlFor: textfieldId,
31
+ className: hasHelp ? Container_module.withHelp : '',
32
+ variant: labelVariant
20
33
  }),
21
34
  children,
22
35
  hasInfo || hasCounter ? /*#__PURE__*/ jsx(Info, {
@@ -27,7 +40,8 @@ const Container = /*#__PURE__*/ memo(({ children, testId, className, label, text
27
40
  error: error,
28
41
  info: info,
29
42
  hasHelp: hasHelp,
30
- testId: testId
43
+ testId: testId,
44
+ size: size
31
45
  }) : null
32
46
  ]
33
47
  });
@@ -1,5 +1,6 @@
1
1
  import "./Container_module.css";
2
2
  const Container_module = {
3
- wrapper: "wrapper-wNRCDh"
3
+ wrapper: "wrapper-wNRCDh",
4
+ withHelp: "withHelp-Qh12kf"
4
5
  };
5
6
  export default Container_module;
@@ -5,3 +5,7 @@
5
5
  display: flex;
6
6
  }
7
7
 
8
+ .withHelp-Qh12kf {
9
+ padding-right: 32px;
10
+ }
11
+
@@ -1,9 +1,11 @@
1
1
  import { type TextareaHTMLAttributes } from 'react';
2
2
  import { type IHasTestId } from '../../../../common/types';
3
+ import { type TextfieldSizeValue } from '../../types';
3
4
  interface Props extends IHasTestId {
4
5
  hasHelp: boolean;
5
6
  limit?: number;
6
7
  value: TextareaHTMLAttributes<HTMLTextAreaElement>['value'];
8
+ size?: TextfieldSizeValue;
7
9
  }
8
- export declare const Counter: import("react").MemoExoticComponent<({ hasHelp, value, limit, testId }: Props) => import("react/jsx-runtime").JSX.Element | null>;
10
+ export declare const Counter: import("react").MemoExoticComponent<({ hasHelp, value, limit, testId, size }: Props) => import("react/jsx-runtime").JSX.Element | null>;
9
11
  export {};
@@ -1,12 +1,14 @@
1
1
  import { jsxs } from "react/jsx-runtime";
2
2
  import { memo } from "react";
3
- import { cn } from "../../../../common/css/cn.js";
3
+ import { cn } from "../../../../common/index.js";
4
4
  import { Text, TextColor } from "../../../Text/Text.js";
5
+ import { TextfieldSize } from "../../types/index.js";
5
6
  import Counter_module from "./Counter.module.js";
6
- const Counter = /*#__PURE__*/ memo(({ hasHelp, value, limit, testId })=>{
7
+ const Counter = /*#__PURE__*/ memo(({ hasHelp, value = '', limit, testId, size = TextfieldSize.M })=>{
7
8
  if (!limit) return null;
8
9
  const isError = limit ? value.toString().length > limit : false;
9
- return /*#__PURE__*/ jsxs(Text.Caption, {
10
+ const TextComponent = size === TextfieldSize.M ? Text.Caption : Text.Body;
11
+ return /*#__PURE__*/ jsxs(TextComponent, {
10
12
  className: cn(Counter_module.counter, hasHelp && Counter_module.withHelp),
11
13
  colorToken: isError ? TextColor.critical : TextColor.secondary,
12
14
  "data-test-id": testId ? `${testId}-counter` : '',
@@ -1,5 +1,6 @@
1
1
  import { type TextareaHTMLAttributes } from 'react';
2
2
  import { type IHasTestId } from '../../../../common/types';
3
+ import { type TextfieldSizeValue } from '../../types';
3
4
  export interface InfoProps extends IHasTestId {
4
5
  info?: string;
5
6
  limit?: number;
@@ -8,5 +9,6 @@ export interface InfoProps extends IHasTestId {
8
9
  error?: boolean;
9
10
  value: string;
10
11
  hasHelp?: boolean;
12
+ size?: TextfieldSizeValue;
11
13
  }
12
- export declare const Info: import("react").MemoExoticComponent<({ info, limit, showCounterLimit, disabled, error, value, hasHelp, testId, }: InfoProps) => import("react/jsx-runtime").JSX.Element>;
14
+ export declare const Info: import("react").MemoExoticComponent<({ info, limit, showCounterLimit, disabled, error, value, hasHelp, testId, size, }: InfoProps) => import("react/jsx-runtime").JSX.Element>;
@@ -1,12 +1,15 @@
1
1
  import { jsx, jsxs } from "react/jsx-runtime";
2
2
  import { memo } from "react";
3
3
  import { Text, TextColor } from "../../../Text/Text.js";
4
+ import { TextfieldSize } from "../../types/index.js";
4
5
  import { Counter } from "../Counter/Counter.js";
5
6
  import Info_module from "./Info.module.js";
6
- const Info = /*#__PURE__*/ memo(({ info, limit, showCounterLimit, disabled, error, value, hasHelp, testId })=>/*#__PURE__*/ jsxs("div", {
7
+ const Info = /*#__PURE__*/ memo(({ info, limit, showCounterLimit, disabled, error, value, hasHelp = false, testId, size = TextfieldSize.M })=>{
8
+ const TextComponent = size === TextfieldSize.M ? Text.Caption : Text.Body;
9
+ return /*#__PURE__*/ jsxs("div", {
7
10
  className: Info_module.container,
8
11
  children: [
9
- info && /*#__PURE__*/ jsx(Text.Caption, {
12
+ info && /*#__PURE__*/ jsx(TextComponent, {
10
13
  colorToken: !disabled && error ? TextColor.critical : TextColor.secondary,
11
14
  "data-test-id": testId ? `${testId}-info` : '',
12
15
  children: info
@@ -15,9 +18,11 @@ const Info = /*#__PURE__*/ memo(({ info, limit, showCounterLimit, disabled, erro
15
18
  testId: testId,
16
19
  limit: limit,
17
20
  hasHelp: hasHelp,
18
- value: value
21
+ value: value,
22
+ size: size
19
23
  }) : null
20
24
  ]
21
- }));
25
+ });
26
+ });
22
27
  Info.displayName = 'Info';
23
28
  export { Info };
@@ -1,10 +1,7 @@
1
1
  import { type PropsWithChildren } from 'react';
2
2
  import { type HelpProps } from '../../../Help/Help';
3
- import { type ClearIconProps } from '../ClearIcon/ClearIcon';
4
- interface Props extends HelpProps, ClearIconProps {
5
- clearable?: boolean;
6
- value?: string;
7
- disabled?: HTMLTextAreaElement['disabled'];
3
+ interface Props extends HelpProps {
4
+ withHelp?: boolean;
8
5
  }
9
- export declare const InnerContainer: import("react").MemoExoticComponent<({ children, testId, onClear, withHelp, value, disabled, clearable, popup, }: PropsWithChildren<Props>) => import("react/jsx-runtime").JSX.Element>;
6
+ export declare const InnerContainer: import("react").MemoExoticComponent<({ children, testId, withHelp, popup }: PropsWithChildren<Props>) => import("react/jsx-runtime").JSX.Element>;
10
7
  export {};
@@ -1,18 +1,12 @@
1
1
  import { jsx, jsxs } from "react/jsx-runtime";
2
2
  import { memo } from "react";
3
- import { cn } from "../../../../common/css/cn.js";
3
+ import { cn } from "../../../../common/index.js";
4
4
  import { Help } from "../../../Help/Help.js";
5
- import { ClearIcon } from "../ClearIcon/ClearIcon.js";
6
5
  import InnerContainer_module from "./InnerContainer.module.js";
7
- const InnerContainer = /*#__PURE__*/ memo(({ children, testId, onClear, withHelp, value, disabled, clearable, popup })=>/*#__PURE__*/ jsxs("div", {
6
+ const InnerContainer = /*#__PURE__*/ memo(({ children, testId, withHelp = false, popup })=>/*#__PURE__*/ jsxs("div", {
8
7
  className: cn(InnerContainer_module.innerContainer, withHelp && InnerContainer_module.withHelp),
9
8
  children: [
10
9
  children,
11
- clearable && value && !disabled && /*#__PURE__*/ jsx(ClearIcon, {
12
- withHelp: withHelp,
13
- testId: testId,
14
- onClear: onClear
15
- }),
16
10
  popup && /*#__PURE__*/ jsx(Help, {
17
11
  testId: testId ? `${testId}-help` : void 0,
18
12
  popup: popup,
@@ -1,10 +1,21 @@
1
1
  import { type PropsWithChildren, type ReactNode } from 'react';
2
- interface Props {
3
- clearable?: boolean;
2
+ import type { IHasTestId } from '../../../../common';
3
+ import { type ITextfieldFileUploaderProps, type TextfieldSizeValue } from '../../types';
4
+ interface Props extends IHasTestId {
4
5
  disabled?: boolean;
5
6
  focused?: boolean;
6
7
  error?: boolean;
7
8
  actionsBar?: ReactNode;
9
+ size?: TextfieldSizeValue;
10
+ mainBtnIcon?: ReactNode;
11
+ emojiBtnIcon?: ReactNode;
12
+ onMainBtnClick?: () => void;
13
+ onEmojiBtnClick?: () => void;
14
+ fileBtnIcon?: ReactNode;
15
+ isFileBtnVisible?: boolean;
16
+ fileUploaderProps?: ITextfieldFileUploaderProps;
17
+ resizeTopSlot?: ReactNode;
18
+ resizeBottomSlot?: ReactNode;
8
19
  }
9
- export declare const InputContainer: import("react").MemoExoticComponent<({ children, clearable, disabled, focused, error, actionsBar, }: PropsWithChildren<Props>) => import("react/jsx-runtime").JSX.Element>;
20
+ export declare const InputContainer: import("react").MemoExoticComponent<({ testId, children, disabled, focused, error, actionsBar, size, mainBtnIcon, emojiBtnIcon, fileBtnIcon, onMainBtnClick, onEmojiBtnClick, isFileBtnVisible, fileUploaderProps, resizeTopSlot, resizeBottomSlot, }: PropsWithChildren<Props>) => import("react/jsx-runtime").JSX.Element>;
10
21
  export {};
@@ -1,16 +1,85 @@
1
- import { jsx, jsxs } from "react/jsx-runtime";
1
+ import { Fragment, jsx, jsxs } from "react/jsx-runtime";
2
2
  import { memo } from "react";
3
3
  import { cn } from "../../../../common/css/cn.js";
4
+ import { FileUploader } from "../../../FileUploader/FileUploader.js";
5
+ import { AddFile12Icon, AddFile16Icon, SendMessage12Icon, SendMessage16Icon, Smile12Icon, Smile16Icon } from "../../../../icon/index.js";
6
+ import { TextfieldSize } from "../../types/index.js";
7
+ import { isSizeM } from "../../utils/index.js";
8
+ import { ActionButton } from "../ActionButton/index.js";
4
9
  import InputContainer_module from "./InputContainer.module.js";
5
- const InputContainer = /*#__PURE__*/ memo(({ children, clearable, disabled, focused, error, actionsBar })=>/*#__PURE__*/ jsxs("div", {
6
- className: cn(InputContainer_module.inputContainer, clearable && InputContainer_module.clearable, disabled && InputContainer_module.disabled, focused && InputContainer_module.focused, error && InputContainer_module.error),
10
+ const InputContainer = /*#__PURE__*/ memo(({ testId, children, disabled, focused, error, actionsBar, size = TextfieldSize.M, mainBtnIcon, emojiBtnIcon, fileBtnIcon, onMainBtnClick, onEmojiBtnClick, isFileBtnVisible = false, fileUploaderProps, resizeTopSlot, resizeBottomSlot })=>{
11
+ const showActions = !!onMainBtnClick || !!onEmojiBtnClick || isFileBtnVisible;
12
+ const showDivider = !!onEmojiBtnClick || isFileBtnVisible;
13
+ const hasResizeHandles = resizeTopSlot || resizeBottomSlot;
14
+ const isM = isSizeM(size);
15
+ const dndProps = fileUploaderProps?.enableDndSorting ? {
16
+ enableDndSorting: true,
17
+ onReorder: fileUploaderProps?.onReorder
18
+ } : {
19
+ enableDndSorting: false
20
+ };
21
+ return /*#__PURE__*/ jsxs("div", {
22
+ className: cn(InputContainer_module.inputContainer, disabled && InputContainer_module.disabled, focused && InputContainer_module.focused, error && !disabled ? InputContainer_module.error : '', hasResizeHandles && InputContainer_module.hasResizeHandles),
7
23
  children: [
24
+ resizeTopSlot,
8
25
  children,
9
26
  actionsBar && /*#__PURE__*/ jsx("div", {
10
27
  className: InputContainer_module.actionsBar,
11
28
  children: actionsBar
12
- })
29
+ }),
30
+ /*#__PURE__*/ jsx("div", {
31
+ className: InputContainer_module.files,
32
+ children: /*#__PURE__*/ jsx(FileUploader, {
33
+ ...fileUploaderProps,
34
+ ...dndProps,
35
+ testId: testId ? `${testId}-file-uploader` : '',
36
+ files: fileUploaderProps?.files ?? [],
37
+ className: InputContainer_module.fileUploader
38
+ })
39
+ }),
40
+ showActions && /*#__PURE__*/ jsxs("div", {
41
+ className: cn(InputContainer_module.actions, !isM && InputContainer_module.actionsL),
42
+ children: [
43
+ onEmojiBtnClick && /*#__PURE__*/ jsx(ActionButton, {
44
+ onClick: onEmojiBtnClick,
45
+ iconOverride: emojiBtnIcon,
46
+ icon: isM ? /*#__PURE__*/ jsx(Smile12Icon, {}) : /*#__PURE__*/ jsx(Smile16Icon, {}),
47
+ size: size,
48
+ disabled: disabled,
49
+ "data-test-id": testId ? `${testId}-emoji-btn` : ''
50
+ }),
51
+ isFileBtnVisible && /*#__PURE__*/ jsx(FileUploader.Trigger, {
52
+ ...fileUploaderProps?.getInputProps(),
53
+ children: /*#__PURE__*/ jsx(ActionButton, {
54
+ onClick: fileUploaderProps?.handleOpen,
55
+ iconOverride: fileBtnIcon,
56
+ icon: isM ? /*#__PURE__*/ jsx(AddFile12Icon, {}) : /*#__PURE__*/ jsx(AddFile16Icon, {}),
57
+ size: size,
58
+ disabled: disabled,
59
+ "data-test-id": testId ? `${testId}-file-btn` : ''
60
+ })
61
+ }),
62
+ onMainBtnClick && /*#__PURE__*/ jsxs(Fragment, {
63
+ children: [
64
+ showDivider && /*#__PURE__*/ jsx("div", {
65
+ className: cn(InputContainer_module.mainBtnDivider, isM ? '' : InputContainer_module.mainBtnDividerLarge)
66
+ }),
67
+ /*#__PURE__*/ jsx(ActionButton, {
68
+ onClick: onMainBtnClick,
69
+ iconOverride: mainBtnIcon,
70
+ icon: isM ? /*#__PURE__*/ jsx(SendMessage12Icon, {}) : /*#__PURE__*/ jsx(SendMessage16Icon, {}),
71
+ size: size,
72
+ disabled: disabled,
73
+ "data-test-id": testId ? `${testId}-main-btn` : '',
74
+ variant: "filled"
75
+ })
76
+ ]
77
+ })
78
+ ]
79
+ }),
80
+ resizeBottomSlot
13
81
  ]
14
- }));
82
+ });
83
+ });
15
84
  InputContainer.displayName = 'InputContainer';
16
85
  export { InputContainer };
@@ -4,6 +4,12 @@ const InputContainer_module = {
4
4
  focused: "focused-ORhBSR",
5
5
  disabled: "disabled-NuqWEY",
6
6
  error: "error-BWY9xH",
7
- actionsBar: "actionsBar-hEerOT"
7
+ actionsBar: "actionsBar-hEerOT",
8
+ files: "files-dNxdJy",
9
+ actions: "actions-U6Jj6H",
10
+ actionsL: "actionsL-y4vtZP",
11
+ mainBtnDivider: "mainBtnDivider-omXg1b",
12
+ mainBtnDividerLarge: "mainBtnDividerLarge-hXiU5u",
13
+ fileUploader: "fileUploader-AHKIZK"
8
14
  };
9
15
  export default InputContainer_module;