@moysklad/uikit 28.1.0 → 30.4.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 (372) hide show
  1. package/README.md +3 -0
  2. package/dist/colorVariables.css +10 -0
  3. package/dist/components/AutoComplete/AutoComplete.d.ts +4 -2
  4. package/dist/components/AutoComplete/AutoComplete.js +45 -31
  5. package/dist/components/Badge/Badge.js +2 -3
  6. package/dist/components/Badge/Badge_module.css +2 -3
  7. package/dist/components/BottomSheet/BottomSheet.js +2 -2
  8. package/dist/components/Breadcrumbs/BreadcrumbItem.d.ts +5 -3
  9. package/dist/components/Breadcrumbs/BreadcrumbItem.js +39 -8
  10. package/dist/components/Breadcrumbs/Breadcrumbs.d.ts +4 -1
  11. package/dist/components/Breadcrumbs/Breadcrumbs.js +10 -6
  12. package/dist/components/Button/Button.d.ts +1 -0
  13. package/dist/components/Button/Button.js +2 -2
  14. package/dist/components/Button/Button.module.js +1 -0
  15. package/dist/components/Button/Button_module.css +4 -0
  16. package/dist/components/Carousel/Carousel.js +5 -4
  17. package/dist/components/Checkbox/Checkbox.d.ts +1 -1
  18. package/dist/components/Chip/Chip.helpers.js +5 -2
  19. package/dist/components/Chip/Chip.js +9 -3
  20. package/dist/components/Chip/Chip.legacy_module.css +2 -2
  21. package/dist/components/Chip/Chip.types.d.ts +10 -4
  22. package/dist/components/Chip/Chip_module.css +5 -5
  23. package/dist/components/Chip/components/ChipLabel.d.ts +3 -1
  24. package/dist/components/Chip/components/ChipLabel.js +4 -2
  25. package/dist/components/Chip/components/ChipMainButton.d.ts +3 -4
  26. package/dist/components/Chip/components/ChipMainButton.js +2 -1
  27. package/dist/components/Chip/components/ChipRoot.d.ts +3 -2
  28. package/dist/components/Chip/components/ChipRoot.js +2 -1
  29. package/dist/components/Dropdown/Dropdown.d.ts +2 -0
  30. package/dist/components/Dropdown/Dropdown.js +7 -4
  31. package/dist/components/Dropdown/hooks/usePosition.d.ts +2 -1
  32. package/dist/components/Dropdown/hooks/usePosition.js +3 -3
  33. package/dist/components/EditableTitle/EditableTitle.js +1 -1
  34. package/dist/components/FieldLabel/FieldLabel.constants.d.ts +1 -0
  35. package/dist/components/FieldLabel/FieldLabel.constants.js +5 -0
  36. package/dist/components/FieldLabel/FieldLabel.d.ts +17 -0
  37. package/dist/components/FieldLabel/FieldLabel.js +76 -0
  38. package/dist/components/FieldLabel/FieldLabel.module.js +11 -0
  39. package/dist/components/FieldLabel/FieldLabel_module.css +42 -0
  40. package/dist/components/FieldLabel/components/HelpButton.d.ts +8 -0
  41. package/dist/components/FieldLabel/components/HelpButton.js +15 -0
  42. package/dist/components/FieldLabel/components/HelpButton.module.js +5 -0
  43. package/dist/components/FieldLabel/components/HelpButton_module.css +8 -0
  44. package/dist/components/FieldLabel/components/index.d.ts +1 -0
  45. package/dist/components/FieldLabel/components/index.js +1 -0
  46. package/dist/components/FileUploader/FileUploader.helpers.d.ts +1 -0
  47. package/dist/components/FileUploader/FileUploader.helpers.js +4 -1
  48. package/dist/components/FileUploader/FileUploader.js +3 -1
  49. package/dist/components/FileUploader/FileUploader.types.d.ts +1 -0
  50. package/dist/components/FileUploader/components/FileUploaderPreview/FileUploaderPreview.js +4 -4
  51. package/dist/components/Help/Help.d.ts +12 -5
  52. package/dist/components/Help/Help.js +22 -7
  53. package/dist/components/Help/Help.module.js +6 -2
  54. package/dist/components/Help/Help_module.css +36 -8
  55. package/dist/components/Hint/Hint.js +4 -5
  56. package/dist/components/Hint/Hint.module.js +2 -3
  57. package/dist/components/Hint/Hint_module.css +0 -9
  58. package/dist/components/Info/Info.d.ts +1 -4
  59. package/dist/components/Info/Info.js +27 -4
  60. package/dist/components/Info/Info.module.js +4 -1
  61. package/dist/components/Info/Info_module.css +21 -0
  62. package/dist/components/Input/Input.d.ts +10 -0
  63. package/dist/components/Input/Input.js +93 -42
  64. package/dist/components/Input/Input.module.js +19 -3
  65. package/dist/components/Input/Input_module.css +156 -19
  66. package/dist/components/Input/components/InfoBlock.d.ts +12 -0
  67. package/dist/components/Input/components/InfoBlock.js +29 -0
  68. package/dist/components/InputClear/InputClear.d.ts +5 -2
  69. package/dist/components/InputClear/InputClear.js +10 -4
  70. package/dist/components/InputClear/InputClear.module.js +3 -1
  71. package/dist/components/InputClear/InputClear_module.css +23 -10
  72. package/dist/components/InputUnit/InputUnit.d.ts +3 -0
  73. package/dist/components/InputUnit/InputUnit.js +42 -32
  74. package/dist/components/InputUnit/InputUnit.module.js +6 -1
  75. package/dist/components/InputUnit/InputUnit_module.css +27 -29
  76. package/dist/components/InputUnit/SelectUnit/SelectUnit.d.ts +1 -1
  77. package/dist/components/InputUnit/SelectUnit/SelectUnit.js +1 -4
  78. package/dist/components/InputUnit/SelectUnit/SelectUnit.module.js +1 -0
  79. package/dist/components/InputUnit/SelectUnit/SelectUnitVisible.d.ts +1 -1
  80. package/dist/components/InputUnit/SelectUnit/SelectUnitVisible.js +7 -2
  81. package/dist/components/InputUnit/SelectUnit/SelectUnit_module.css +29 -37
  82. package/dist/components/InputUnit/SelectUnit/type.d.ts +1 -0
  83. package/dist/components/InputUnit/Unit/Unit.js +1 -2
  84. package/dist/components/InputUnit/Unit/Unit_module.css +1 -0
  85. package/dist/components/Label/Label.d.ts +1 -0
  86. package/dist/components/LabelValue/LabelValue.js +18 -52
  87. package/dist/components/LabelValue/LabelValue.module.js +0 -3
  88. package/dist/components/LabelValue/LabelValue_module.css +0 -17
  89. package/dist/components/LabelValueCheckbox/LabelValueCheckbox.d.ts +10 -0
  90. package/dist/components/LabelValueCheckbox/LabelValueCheckbox.js +22 -0
  91. package/dist/components/LabelValueCheckbox/LabelValueCheckbox.module.js +5 -0
  92. package/dist/components/LabelValueCheckbox/LabelValueCheckbox_module.css +5 -0
  93. package/dist/components/LabelValueSelect/Input/Input_module.css +1 -3
  94. package/dist/components/MentionsTextfield/MentionsTextfield.d.ts +1 -1
  95. package/dist/components/MentionsTextfield/MentionsTextfield.js +41 -25
  96. package/dist/components/MentionsTextfield/OptionForStory/OptionForStory.d.ts +7 -0
  97. package/dist/components/MentionsTextfield/OptionForStory/OptionForStory.js +27 -0
  98. package/dist/components/MentionsTextfield/OptionForStory/OptionForStory.module.js +8 -0
  99. package/dist/components/MentionsTextfield/OptionForStory/OptionForStory_module.css +25 -0
  100. package/dist/components/MentionsTextfield/OptionForStory/index.d.ts +1 -0
  101. package/dist/components/MentionsTextfield/OptionForStory/index.js +1 -0
  102. package/dist/components/Multiselect/DropdownContent/MultiselectDropdownContent.js +5 -4
  103. package/dist/components/Multiselect/Input/Input_module.css +1 -3
  104. package/dist/components/Multiselect/Multiselect.d.ts +4 -0
  105. package/dist/components/Select/Combobox/Combobox_module.css +2 -6
  106. package/dist/components/Select/DropDownWithColors/DropDownWithColors.d.ts +1 -0
  107. package/dist/components/Select/DropDownWithColors/DropDownWithColors.js +2 -1
  108. package/dist/components/Select/DropdownActionsContainer/DropdownActionsContainer.d.ts +3 -0
  109. package/dist/components/Select/DropdownActionsContainer/DropdownActionsContainer.js +17 -0
  110. package/dist/components/Select/DropdownActionsContainer/DropdownActionsContainer.module.js +6 -0
  111. package/dist/components/Select/DropdownActionsContainer/DropdownActionsContainer_module.css +12 -0
  112. package/dist/components/Select/OptionsList/OptionsList.d.ts +2 -1
  113. package/dist/components/Select/OptionsList/OptionsList.js +3 -2
  114. package/dist/components/Select/OptionsList/OptionsList_module.css +4 -0
  115. package/dist/components/Select/Select.d.ts +8 -2
  116. package/dist/components/Select/Select.js +29 -34
  117. package/dist/components/Select/Select.module.js +1 -2
  118. package/dist/components/Select/Select_module.css +2 -14
  119. package/dist/components/Select/ShortVariant/ShortVariant.d.ts +5 -1
  120. package/dist/components/Select/ShortVariant/ShortVariant.js +5 -4
  121. package/dist/components/Select/ShortVariant/ShortVariant.module.js +1 -0
  122. package/dist/components/Select/ShortVariant/ShortVariant_module.css +5 -1
  123. package/dist/components/Select/types.d.ts +1 -0
  124. package/dist/components/Select/useDropdownPadding.d.ts +5 -0
  125. package/dist/components/Select/useDropdownPadding.js +22 -0
  126. package/dist/components/Textfield/Textfield.d.ts +18 -2
  127. package/dist/components/Textfield/Textfield.js +37 -13
  128. package/dist/components/Textfield/Textfield.module.js +2 -1
  129. package/dist/components/Textfield/Textfield_module.css +95 -23
  130. package/dist/components/Textfield/components/ActionButton/ActionButton.d.ts +9 -0
  131. package/dist/components/Textfield/components/ActionButton/ActionButton.js +12 -0
  132. package/dist/components/Textfield/components/ActionButton/ActionButton.module.js +9 -0
  133. package/dist/components/Textfield/components/ActionButton/ActionButton_module.css +54 -0
  134. package/dist/components/Textfield/components/ActionButton/index.d.ts +1 -0
  135. package/dist/components/Textfield/components/ActionButton/index.js +1 -0
  136. package/dist/components/Textfield/components/Container/Container.js +6 -3
  137. package/dist/components/Textfield/components/Counter/Counter.d.ts +3 -1
  138. package/dist/components/Textfield/components/Counter/Counter.js +5 -3
  139. package/dist/components/Textfield/components/Info/Info.d.ts +3 -1
  140. package/dist/components/Textfield/components/Info/Info.js +9 -4
  141. package/dist/components/Textfield/components/InnerContainer/InnerContainer.d.ts +3 -6
  142. package/dist/components/Textfield/components/InnerContainer/InnerContainer.js +2 -8
  143. package/dist/components/Textfield/components/InputContainer/InputContainer.d.ts +14 -3
  144. package/dist/components/Textfield/components/InputContainer/InputContainer.js +74 -5
  145. package/dist/components/Textfield/components/InputContainer/InputContainer.module.js +7 -1
  146. package/dist/components/Textfield/components/InputContainer/InputContainer_module.css +36 -7
  147. package/dist/components/Textfield/components/Label/Label.d.ts +2 -0
  148. package/dist/components/Textfield/components/Label/Label.js +11 -5
  149. package/dist/components/Textfield/components/Label/Label_module.css +1 -1
  150. package/dist/components/Textfield/components/ResizeHandle/ResizeHandle.d.ts +10 -0
  151. package/dist/components/Textfield/components/ResizeHandle/ResizeHandle.js +50 -0
  152. package/dist/components/Textfield/components/ResizeHandle/ResizeHandle.module.js +7 -0
  153. package/dist/components/Textfield/components/ResizeHandle/ResizeHandle_module.css +21 -0
  154. package/dist/components/Textfield/components/ResizeHandle/index.d.ts +1 -0
  155. package/dist/components/Textfield/components/ResizeHandle/index.js +1 -0
  156. package/dist/components/Textfield/consts/index.d.ts +2 -0
  157. package/dist/components/Textfield/consts/index.js +3 -0
  158. package/dist/components/Textfield/types/index.d.ts +12 -0
  159. package/dist/components/Textfield/types/index.js +5 -0
  160. package/dist/components/Textfield/utils/index.d.ts +3 -0
  161. package/dist/components/Textfield/utils/index.js +8 -0
  162. package/dist/components/Tooltip/Tooltip.d.ts +4 -1
  163. package/dist/components/Tooltip/Tooltip.js +9 -9
  164. package/dist/components/Tooltip/Tooltip.module.js +3 -1
  165. package/dist/components/Tooltip/Tooltip_module.css +13 -3
  166. package/dist/components/Tooltip/{consts.d.ts → constants/ArrowAlign.d.ts} +0 -2
  167. package/dist/components/Tooltip/constants/TooltipBodyColor.d.ts +4 -0
  168. package/dist/components/Tooltip/constants/TooltipBodyColor.js +5 -0
  169. package/dist/components/Tooltip/constants/index.d.ts +2 -0
  170. package/dist/components/Tooltip/constants/index.js +2 -0
  171. package/dist/components/Tooltip/hooks.d.ts +2 -2
  172. package/dist/components/Tooltip/hooks.js +1 -1
  173. package/dist/components/Tooltip/types.d.ts +4 -0
  174. package/dist/components/Tooltip/types.js +0 -0
  175. package/dist/components/ViewersStack/ViewersStack.d.ts +13 -0
  176. package/dist/components/ViewersStack/ViewersStack.js +77 -0
  177. package/dist/components/ViewersStack/ViewersStack.module.js +7 -0
  178. package/dist/components/ViewersStack/ViewersStack_module.css +18 -0
  179. package/dist/components/ViewersStack/components/Avatar/Avatar.d.ts +13 -0
  180. package/dist/components/ViewersStack/components/Avatar/Avatar.js +35 -0
  181. package/dist/components/ViewersStack/components/Avatar/Avatar.module.js +13 -0
  182. package/dist/components/ViewersStack/components/Avatar/Avatar_module.css +45 -0
  183. package/dist/components/ViewersStack/components/Counter/Counter.d.ts +9 -0
  184. package/dist/components/ViewersStack/components/Counter/Counter.js +27 -0
  185. package/dist/components/ViewersStack/components/Counter/Counter.module.js +5 -0
  186. package/dist/components/ViewersStack/components/Counter/Counter_module.css +20 -0
  187. package/dist/components/ViewersStack/components/ViewersTooltip/ViewersTooltip.d.ts +15 -0
  188. package/dist/components/ViewersStack/components/ViewersTooltip/ViewersTooltip.js +41 -0
  189. package/dist/components/ViewersStack/components/ViewersTooltip/ViewersTooltip.module.js +6 -0
  190. package/dist/components/ViewersStack/components/ViewersTooltip/ViewersTooltip_module.css +14 -0
  191. package/dist/components/ViewersStack/components/ViewersTooltipOverlayItem/ViewersTooltipOverlayItem.d.ts +6 -0
  192. package/dist/components/ViewersStack/components/ViewersTooltipOverlayItem/ViewersTooltipOverlayItem.js +53 -0
  193. package/dist/components/ViewersStack/components/ViewersTooltipOverlayItem/ViewersTooltipOverlayItem.module.js +7 -0
  194. package/dist/components/ViewersStack/components/ViewersTooltipOverlayItem/ViewersTooltipOverlayItem_module.css +18 -0
  195. package/dist/components/ViewersStack/components/common.module.js +7 -0
  196. package/dist/components/ViewersStack/components/common_module.css +27 -0
  197. package/dist/components/ViewersStack/types.d.ts +22 -0
  198. package/dist/components/ViewersStack/types.js +17 -0
  199. package/dist/components/ViewersStack/utils.d.ts +3 -0
  200. package/dist/components/ViewersStack/utils.js +17 -0
  201. package/dist/components/{EditableTitle → _shared/HintWithSkip}/HintWithSkip.d.ts +1 -1
  202. package/dist/components/{EditableTitle → _shared/HintWithSkip}/HintWithSkip.js +1 -1
  203. package/dist/data-grid/Table/Table.d.ts +14 -22
  204. package/dist/data-grid/Table/Table.js +99 -61
  205. package/dist/data-grid/Table/Table.module.js +2 -0
  206. package/dist/data-grid/Table/Table_module.css +23 -0
  207. package/dist/data-grid/Table/components/Body/Body.d.ts +10 -14
  208. package/dist/data-grid/Table/components/Body/Body.js +11 -47
  209. package/dist/data-grid/Table/components/DraggableRow/DraggableRow.js +1 -1
  210. package/dist/data-grid/Table/components/Footer/Footer.module.js +0 -1
  211. package/dist/data-grid/Table/components/Footer/FooterContent.d.ts +9 -0
  212. package/dist/data-grid/Table/components/Footer/{Footer.js → FooterContent.js} +4 -5
  213. package/dist/data-grid/Table/components/Footer/Footer_module.css +0 -5
  214. package/dist/data-grid/Table/components/Header/Header.module.js +0 -1
  215. package/dist/data-grid/Table/components/Header/HeaderCell.js +3 -1
  216. package/dist/data-grid/Table/components/Header/HeaderContent.d.ts +1 -0
  217. package/dist/data-grid/Table/components/Header/{Header.js → HeaderContent.js} +8 -6
  218. package/dist/data-grid/Table/components/Header/Header_module.css +0 -15
  219. package/dist/data-grid/Table/components/Row/Row.d.ts +13 -0
  220. package/dist/data-grid/Table/components/Row/Row.js +40 -0
  221. package/dist/data-grid/Table/components/Row/Row.module.js +14 -0
  222. package/dist/data-grid/Table/components/{TableRow/TableRow_module.css → Row/Row_module.css} +7 -7
  223. package/dist/data-grid/Table/components/SubRows/SubRows.d.ts +5 -4
  224. package/dist/data-grid/Table/components/SubRows/SubRows.js +3 -3
  225. package/dist/data-grid/Table/components/TableCell/TableCell.js +2 -0
  226. package/dist/data-grid/Table/components/TableDragOverlay/TableDragOverlay.d.ts +5 -6
  227. package/dist/data-grid/Table/components/TableDragOverlay/TableDragOverlay.js +2 -2
  228. package/dist/data-grid/Table/components/TableRow/TableRow.d.ts +6 -14
  229. package/dist/data-grid/Table/components/TableRow/TableRow.js +34 -25
  230. package/dist/data-grid/Table/components/VirtualTable/VirtualTable.d.ts +10 -0
  231. package/dist/data-grid/Table/components/VirtualTable/VirtualTable.js +78 -0
  232. package/dist/data-grid/Table/components/VirtualTable/VirtualTableRow.d.ts +11 -0
  233. package/dist/data-grid/Table/components/VirtualTable/VirtualTableRow.js +18 -0
  234. package/dist/data-grid/Table/components/index.d.ts +3 -3
  235. package/dist/data-grid/Table/components/index.js +2 -2
  236. package/dist/data-grid/Table/constants.d.ts +2 -0
  237. package/dist/data-grid/Table/constants.js +3 -1
  238. package/dist/data-grid/Table/hooks/index.d.ts +1 -0
  239. package/dist/data-grid/Table/hooks/index.js +1 -0
  240. package/dist/data-grid/Table/hooks/useRowContext.d.ts +16 -0
  241. package/dist/data-grid/Table/hooks/useRowContext.js +44 -0
  242. package/dist/data-grid/Table/hooks/useTableContext.d.ts +7 -2
  243. package/dist/data-grid/Table/hooks/useTableContext.js +12 -2
  244. package/dist/data-grid/Table/index.d.ts +2 -2
  245. package/dist/data-grid/Table/types.d.ts +8 -1
  246. package/dist/data-grid/Table/types.js +5 -0
  247. package/dist/data-grid/Table/utils/compareColumnIds.d.ts +1 -0
  248. package/dist/data-grid/Table/utils/compareColumnIds.js +6 -0
  249. package/dist/data-grid/Table/utils/getColumnWidthStyles.d.ts +5 -0
  250. package/dist/data-grid/Table/utils/getColumnWidthStyles.js +4 -1
  251. package/dist/data-grid/Table/utils/getTableColumnIds.d.ts +3 -0
  252. package/dist/data-grid/Table/utils/getTableColumnIds.js +5 -0
  253. package/dist/data-grid/Table/utils/index.d.ts +2 -0
  254. package/dist/data-grid/Table/utils/index.js +2 -0
  255. package/dist/data-grid/Table/utils/withDnD.js +1 -1
  256. package/dist/data-grid/base/DropdownItem/DropdownItem.d.ts +3 -3
  257. package/dist/data-grid/base/DropdownItem/DropdownItem.js +3 -2
  258. package/dist/data-grid/base/OverflowHint/OverflowHint.d.ts +1 -0
  259. package/dist/data-grid/base/OverflowHint/OverflowHint.js +5 -3
  260. package/dist/data-grid/base/OverflowHint/utils.d.ts +1 -0
  261. package/dist/data-grid/base/OverflowHint/utils.js +7 -0
  262. package/dist/data-grid/cells/AutoCompleteCell/AutoCompleteCell.js +3 -4
  263. package/dist/data-grid/cells/DecimalCell/DecimalCell_module.css +1 -1
  264. package/dist/data-grid/cells/FileCell/FileCell_module.css +1 -1
  265. package/dist/data-grid/cells/ImageCell/ImageCell.d.ts +1 -0
  266. package/dist/data-grid/cells/ImageCell/ImageCell.js +5 -2
  267. package/dist/data-grid/cells/IndexCheckboxDndCell/IndexCheckboxDndCell.d.ts +7 -2
  268. package/dist/data-grid/cells/IndexCheckboxDndCell/IndexCheckboxDndCell.js +6 -4
  269. package/dist/data-grid/cells/InputCell/InputCell.js +3 -4
  270. package/dist/data-grid/cells/IntegerCell/IntegerCell_module.css +1 -1
  271. package/dist/data-grid/cells/LinkCell/LinkCell_module.css +1 -1
  272. package/dist/data-grid/cells/NameCell/NameCell.js +3 -0
  273. package/dist/data-grid/cells/NameCell/NameCell_module.css +2 -2
  274. package/dist/data-grid/cells/NumberInputCell/NumberInputCell.js +19 -17
  275. package/dist/data-grid/cells/SelectCell/SelectCell.js +3 -4
  276. package/dist/data-grid/cells/TextCell/TextCell_module.css +1 -1
  277. package/dist/data-grid/cells/ToggleCell/ToggleCell_module.css +1 -1
  278. package/dist/data-grid/cells/components/EditableCellWrapper/EditableCellWrapper.d.ts +3 -0
  279. package/dist/data-grid/cells/components/EditableCellWrapper/EditableCellWrapper.js +9 -0
  280. package/dist/data-grid/cells/components/EditableCellWrapper/EditableCellWrapper.module.js +5 -0
  281. package/dist/data-grid/cells/{NumberInputCell/NumberInputCell_module.css → components/EditableCellWrapper/EditableCellWrapper_module.css} +2 -2
  282. package/dist/data-grid/cells/components/EditableCellWrapper/index.d.ts +1 -0
  283. package/dist/data-grid/cells/components/EditableCellWrapper/index.js +1 -0
  284. package/dist/data-grid/cells/components/RowActionsMenu/RowActionsMenu.d.ts +4 -3
  285. package/dist/data-grid/cells/components/RowActionsMenu/RowActionsMenu.js +13 -13
  286. package/dist/data-grid/cells/components/TableInput/TableInput.js +19 -3
  287. package/dist/data-grid/cells/components/TableInput/TableInput_module.css +1 -1
  288. package/dist/data-grid/cells/components/TableNumberInput/TableNumberInput.d.ts +4 -3
  289. package/dist/data-grid/cells/components/TableNumberInput/TableNumberInput.js +44 -55
  290. package/dist/data-grid/cells/components/TableSelect/ActionButton/ActionButton.d.ts +4 -1
  291. package/dist/data-grid/cells/components/TableSelect/ActionButton/ActionButton.js +4 -3
  292. package/dist/data-grid/cells/components/TableSelect/TableSelect.d.ts +15 -10
  293. package/dist/data-grid/cells/components/TableSelect/TableSelect.js +11 -7
  294. package/dist/data-grid/cells/components/index.d.ts +1 -0
  295. package/dist/data-grid/cells/components/index.js +1 -0
  296. package/dist/data-grid/cells/index.d.ts +1 -1
  297. package/dist/data-grid/cells/index.js +1 -1
  298. package/dist/data-grid/headers/PlainTextHeader.js +3 -2
  299. package/dist/data-grid/headers/components/Dropdown/DropdownArrowBtn/DropdownArrowBtn.js +5 -1
  300. package/dist/data-grid/headers/components/Dropdown/Option/Option.d.ts +1 -1
  301. package/dist/data-grid/headers/components/Dropdown/Option/Option.js +2 -2
  302. package/dist/data-grid/headers/components/Dropdown/Option/Option_module.css +10 -2
  303. package/dist/data-grid/headers/components/HeaderBuilder/HeaderBuilder.d.ts +13 -3
  304. package/dist/data-grid/headers/components/HeaderBuilder/HeaderBuilder.js +64 -83
  305. package/dist/data-grid/headers/components/HeaderBuilder/HeaderBuilder.module.js +2 -1
  306. package/dist/data-grid/headers/components/HeaderBuilder/HeaderBuilder_module.css +21 -0
  307. package/dist/data-grid/headers/components/HeaderSortGroups/components/SortByOption/SortByOption.js +7 -15
  308. package/dist/data-grid/headers/components/HideColumn/HideColumn.js +8 -13
  309. package/dist/data-grid/headers/components/ResetFilter/ResetFilter.js +7 -10
  310. package/dist/data-grid/headers/components/ResetFilter/ResetFilter.module.js +0 -1
  311. package/dist/data-grid/headers/components/ResetFilter/ResetFilter_module.css +1 -21
  312. package/dist/data-grid/headers/components/index.d.ts +1 -1
  313. package/dist/data-grid/headers/index.d.ts +1 -1
  314. package/dist/data-grid/headers/types/types.d.ts +1 -0
  315. package/dist/data-grid/types/index.d.ts +1 -0
  316. package/dist/data-grid/utils/isOverflowed.js +21 -1
  317. package/dist/hooks/useDebounceCallback/useDebounceCallback.d.ts +2 -0
  318. package/dist/hooks/useDebounceCallback/useDebounceCallback.js +21 -0
  319. package/dist/hooks/useDismissOnFocusOutside/index.d.ts +2 -1
  320. package/dist/hooks/useDismissOnFocusOutside/index.js +4 -3
  321. package/dist/hooks/useDismissOnOutsideClick/index.d.ts +2 -1
  322. package/dist/hooks/useDismissOnOutsideClick/index.js +4 -3
  323. package/dist/hooks/useTextField/useTextField.d.ts +4 -5
  324. package/dist/hooks/useTextField/useTextField.js +6 -24
  325. package/dist/hooks/useUnmount/useUnmount.d.ts +1 -0
  326. package/dist/hooks/useUnmount/useUnmount.js +9 -0
  327. package/dist/icon/components/MyApps12Icon.d.ts +8 -0
  328. package/dist/icon/components/MyApps12Icon.js +18 -0
  329. package/dist/icon/components/MyApps16Icon.d.ts +8 -0
  330. package/dist/icon/components/MyApps16Icon.js +17 -0
  331. package/dist/icon/components/MyApps20Icon.d.ts +8 -0
  332. package/dist/icon/components/MyApps20Icon.js +18 -0
  333. package/dist/icon/components/Smile12Icon.d.ts +8 -0
  334. package/dist/icon/components/Smile12Icon.js +17 -0
  335. package/dist/icon/components/Smile16Icon.d.ts +8 -0
  336. package/dist/icon/components/Smile16Icon.js +16 -0
  337. package/dist/icon/components/Smile20Icon.d.ts +8 -0
  338. package/dist/icon/components/Smile20Icon.js +17 -0
  339. package/dist/icon/index.d.ts +6 -0
  340. package/dist/icon/index.js +6 -0
  341. package/dist/index.d.ts +4 -4
  342. package/dist/index.js +3 -1
  343. package/dist/utils/debounce/debounce.d.ts +10 -0
  344. package/dist/utils/debounce/debounce.js +73 -0
  345. package/dist/utils/isRecordEqual/isRecordEqual.d.ts +1 -0
  346. package/dist/utils/isRecordEqual/isRecordEqual.js +9 -0
  347. package/dist/utils/utils.d.ts +2 -0
  348. package/dist/utils/utils.js +2 -0
  349. package/package.json +22 -3
  350. package/dist/components/LabelValue/HelpButton/HelpButton.module.js +0 -8
  351. package/dist/components/LabelValue/HelpButton/HelpButton_module.css +0 -44
  352. package/dist/components/LabelValue/HelpButton/index.d.ts +0 -8
  353. package/dist/components/LabelValue/HelpButton/index.js +0 -36
  354. package/dist/components/Textfield/components/ClearIcon/ClearIcon.d.ts +0 -6
  355. package/dist/components/Textfield/components/ClearIcon/ClearIcon.js +0 -13
  356. package/dist/components/Textfield/components/ClearIcon/ClearIcon.module.js +0 -6
  357. package/dist/components/Textfield/components/ClearIcon/ClearIcon_module.css +0 -11
  358. package/dist/data-grid/Table/components/Footer/Footer.d.ts +0 -9
  359. package/dist/data-grid/Table/components/Header/Header.d.ts +0 -8
  360. package/dist/data-grid/Table/components/TableRow/TableRow.module.js +0 -14
  361. package/dist/data-grid/cells/AutoCompleteCell/AutoCompleteCell.module.js +0 -5
  362. package/dist/data-grid/cells/AutoCompleteCell/AutoCompleteCell_module.css +0 -8
  363. package/dist/data-grid/cells/InputCell/InputCell.module.js +0 -5
  364. package/dist/data-grid/cells/InputCell/InputCell_module.css +0 -8
  365. package/dist/data-grid/cells/NumberInputCell/NumberInputCell.module.js +0 -5
  366. package/dist/data-grid/cells/SelectCell/SelectCell.module.js +0 -8
  367. package/dist/data-grid/cells/SelectCell/SelectCell_module.css +0 -33
  368. package/dist/data-grid/headers/components/HeaderSortGroups/components/SortByOption/SortByOption.module.js +0 -7
  369. package/dist/data-grid/headers/components/HeaderSortGroups/components/SortByOption/SortByOption_module.css +0 -22
  370. package/dist/data-grid/headers/components/HideColumn/HideColumn.module.js +0 -6
  371. package/dist/data-grid/headers/components/HideColumn/HideColumn_module.css +0 -20
  372. /package/dist/components/Tooltip/{consts.js → constants/ArrowAlign.js} +0 -0
@@ -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,11 @@
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 { TextfieldSize } from "../../types/index.js";
4
5
  import { Info } from "../Info/Info.js";
5
6
  import { Label } from "../Label/Label.js";
6
7
  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 })=>{
8
+ const Container = /*#__PURE__*/ memo(({ children, testId, className, label, textfieldId, required = false, limit, showCounterLimit, value, disabled, error, info = '', hasHelp, size = TextfieldSize.M, ...otherProps })=>{
8
9
  const hasInfo = info.length > 0;
9
10
  const hasCounter = (!showCounterLimit || value.toString().length >= showCounterLimit) && limit > 0;
10
11
  return /*#__PURE__*/ jsxs("div", {
@@ -16,7 +17,8 @@ const Container = /*#__PURE__*/ memo(({ children, testId, className, label, text
16
17
  testId: testId,
17
18
  label: label,
18
19
  required: required,
19
- htmlFor: textfieldId
20
+ htmlFor: textfieldId,
21
+ size: size
20
22
  }),
21
23
  children,
22
24
  hasInfo || hasCounter ? /*#__PURE__*/ jsx(Info, {
@@ -27,7 +29,8 @@ const Container = /*#__PURE__*/ memo(({ children, testId, className, label, text
27
29
  error: error,
28
30
  info: info,
29
31
  hasHelp: hasHelp,
30
- testId: testId
32
+ testId: testId,
33
+ size: size
31
34
  }) : null
32
35
  ]
33
36
  });
@@ -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;
@@ -10,9 +10,7 @@
10
10
  }
11
11
 
12
12
  .inputContainer-gy10zl:focus-visible {
13
- --input-shadow: var(--invert-accent-normal, #7eb4ff);
14
- box-shadow: 0 0 4px 0 var(--input-shadow);
15
- border: 1px solid var(--border-accent, #036ce5);
13
+ border: 1px solid var(--border-focused, #091739);
16
14
  }
17
15
 
18
16
  .inputContainer-gy10zl {
@@ -22,9 +20,7 @@
22
20
  }
23
21
 
24
22
  .inputContainer-gy10zl.focused-ORhBSR {
25
- --input-shadow: var(--invert-accent-normal, #7eb4ff);
26
- box-shadow: 0 0 4px 0 var(--input-shadow);
27
- border: 1px solid var(--border-accent, #036ce5);
23
+ border: 1px solid var(--border-focused, #091739);
28
24
  }
29
25
 
30
26
  .inputContainer-gy10zl.disabled-NuqWEY {
@@ -37,7 +33,7 @@
37
33
  }
38
34
 
39
35
  .inputContainer-gy10zl.error-BWY9xH, .inputContainer-gy10zl.error-BWY9xH:hover {
40
- border-color: var(--colorful-red-600);
36
+ border-color: var(--border-critical);
41
37
  }
42
38
 
43
39
  .actionsBar-hEerOT {
@@ -45,3 +41,36 @@
45
41
  padding-inline: 12px;
46
42
  }
47
43
 
44
+ .files-dNxdJy {
45
+ padding-inline: 12px;
46
+ }
47
+
48
+ .actions-U6Jj6H {
49
+ justify-content: flex-end;
50
+ align-items: center;
51
+ column-gap: 4px;
52
+ margin-bottom: 8px;
53
+ padding-left: 12px;
54
+ padding-right: 8px;
55
+ display: flex;
56
+ }
57
+
58
+ .actionsL-y4vtZP {
59
+ column-gap: 8px;
60
+ }
61
+
62
+ .mainBtnDivider-omXg1b {
63
+ background-color: var(--border-normal);
64
+ width: 1px;
65
+ height: 16px;
66
+ margin: 0 4px;
67
+ }
68
+
69
+ .mainBtnDividerLarge-hXiU5u {
70
+ height: 20px;
71
+ }
72
+
73
+ .fileUploader-AHKIZK {
74
+ padding: 4px 0;
75
+ }
76
+
@@ -1,9 +1,11 @@
1
1
  import { type FC } from 'react';
2
2
  import { type IHasTestId } from '../../../../common/types';
3
+ import { type TextfieldSizeValue } from '../../types';
3
4
  interface Props extends IHasTestId {
4
5
  label?: string;
5
6
  required?: boolean;
6
7
  htmlFor: string;
8
+ size?: TextfieldSizeValue;
7
9
  }
8
10
  export declare const Label: FC<Props>;
9
11
  export {};
@@ -1,16 +1,21 @@
1
1
  import { jsx, jsxs } from "react/jsx-runtime";
2
2
  import { memo } from "react";
3
- import { Text, TextColor, TextTag } from "../../../Text/Text.js";
3
+ import { Text, TextTag, TextVariant } from "../../../Text/Text.js";
4
+ import { TextAtom } from "../../../Text/Text.atom.js";
4
5
  import { useIsElementOverflowing } from "../../../../hooks/useIsElementOverflowing/index.js";
6
+ import { TextfieldSize } from "../../types/index.js";
7
+ import { isSizeM } from "../../utils/index.js";
5
8
  import Label_module from "./Label.module.js";
6
- const Label = /*#__PURE__*/ memo(({ label, htmlFor, required, testId })=>{
9
+ const Label = /*#__PURE__*/ memo(({ label, htmlFor, required, testId, size = TextfieldSize.M })=>{
7
10
  const { ref: labelRef, isOverflowing: isOverflowingLabel } = useIsElementOverflowing([
8
11
  label
9
12
  ]);
13
+ const isM = isSizeM(size);
14
+ const TextComponent = isM ? Text.Body : Text.BodyL;
10
15
  return /*#__PURE__*/ jsxs("span", {
11
16
  className: Label_module.wrapper,
12
17
  children: [
13
- /*#__PURE__*/ jsx(Text.Body, {
18
+ /*#__PURE__*/ jsx(TextComponent, {
14
19
  ref: labelRef,
15
20
  title: isOverflowingLabel ? label : void 0,
16
21
  className: Label_module.label,
@@ -19,10 +24,11 @@ const Label = /*#__PURE__*/ memo(({ label, htmlFor, required, testId })=>{
19
24
  "data-test-id": testId ? `${testId}-label` : '',
20
25
  children: label
21
26
  }),
22
- required && /*#__PURE__*/ jsx(Text, {
27
+ required && /*#__PURE__*/ jsx(TextAtom, {
23
28
  "data-test-id": testId ? `${testId}-required` : void 0,
24
29
  as: TextTag.span,
25
- colorToken: TextColor.critical,
30
+ variant: isM ? TextVariant.body : TextVariant.bodyL,
31
+ className: Label_module.required,
26
32
  children: "*"
27
33
  })
28
34
  ]
@@ -12,6 +12,6 @@
12
12
  }
13
13
 
14
14
  .required-mCIeFq {
15
- display: inline;
15
+ color: var(--elements-critical);
16
16
  }
17
17
 
@@ -0,0 +1,10 @@
1
+ import { type FC } from 'react';
2
+ interface ResizeHandleProps {
3
+ direction: 'top' | 'bottom';
4
+ minHeight: number;
5
+ maxHeight?: number;
6
+ startHeight: number;
7
+ onHeightChange: (height: number) => void;
8
+ }
9
+ export declare const ResizeHandle: FC<ResizeHandleProps>;
10
+ export {};
@@ -0,0 +1,50 @@
1
+ import { jsx } from "react/jsx-runtime";
2
+ import { useCallback, useEffect, useRef } from "react";
3
+ import { cn } from "../../../../common/css/cn.js";
4
+ import { Drag12Icon } from "../../../../icon/index.js";
5
+ import ResizeHandle_module from "./ResizeHandle.module.js";
6
+ const getDelta = (direction, startY, clientY)=>{
7
+ if ('top' === direction) return startY - clientY;
8
+ return clientY - startY;
9
+ };
10
+ const ResizeHandle = ({ direction, onHeightChange, startHeight, minHeight, maxHeight })=>{
11
+ const mouseMoveListenerRef = useRef(null);
12
+ const mouseUpListenerRef = useRef(null);
13
+ useEffect(()=>()=>{
14
+ if (mouseMoveListenerRef.current) window.removeEventListener('mousemove', mouseMoveListenerRef.current);
15
+ if (mouseUpListenerRef.current) window.removeEventListener('mouseup', mouseUpListenerRef.current);
16
+ }, []);
17
+ const handleMouseDown = useCallback((e)=>{
18
+ e.preventDefault();
19
+ const startY = e.clientY;
20
+ const handleMouseMove = (moveEvent)=>{
21
+ const delta = getDelta(direction, startY, moveEvent.clientY);
22
+ let next = Math.max(minHeight, startHeight + delta);
23
+ if (maxHeight) next = Math.min(maxHeight, next);
24
+ onHeightChange(next);
25
+ };
26
+ const handleMouseUp = ()=>{
27
+ window.removeEventListener('mousemove', handleMouseMove);
28
+ window.removeEventListener('mouseup', handleMouseUp);
29
+ mouseMoveListenerRef.current = null;
30
+ mouseUpListenerRef.current = null;
31
+ };
32
+ mouseMoveListenerRef.current = handleMouseMove;
33
+ mouseUpListenerRef.current = handleMouseUp;
34
+ window.addEventListener('mousemove', handleMouseMove);
35
+ window.addEventListener('mouseup', handleMouseUp);
36
+ }, [
37
+ direction,
38
+ minHeight,
39
+ maxHeight,
40
+ startHeight,
41
+ onHeightChange
42
+ ]);
43
+ return /*#__PURE__*/ jsx("div", {
44
+ className: cn(ResizeHandle_module.handle, ResizeHandle_module[direction]),
45
+ onMouseDown: handleMouseDown,
46
+ children: /*#__PURE__*/ jsx(Drag12Icon, {})
47
+ });
48
+ };
49
+ ResizeHandle.displayName = 'ResizeHandle';
50
+ export { ResizeHandle };
@@ -0,0 +1,7 @@
1
+ import "./ResizeHandle_module.css";
2
+ const ResizeHandle_module = {
3
+ handle: "handle-KOfccF",
4
+ top: "top-i74sAn",
5
+ bottom: "bottom-O20AqX"
6
+ };
7
+ export default ResizeHandle_module;
@@ -0,0 +1,21 @@
1
+ .handle-KOfccF {
2
+ cursor: ns-resize;
3
+ width: 12px;
4
+ height: 12px;
5
+ color: var(--elements-normal);
6
+ justify-content: center;
7
+ align-items: center;
8
+ display: flex;
9
+ position: absolute;
10
+ right: 1px;
11
+ }
12
+
13
+ .top-i74sAn {
14
+ top: 1px;
15
+ transform: rotate(270deg);
16
+ }
17
+
18
+ .bottom-O20AqX {
19
+ bottom: 1px;
20
+ }
21
+
@@ -0,0 +1 @@
1
+ export { ResizeHandle } from './ResizeHandle';
@@ -0,0 +1 @@
1
+ export { ResizeHandle } from "./ResizeHandle.js";
@@ -0,0 +1,2 @@
1
+ export declare const MIN_HEIGHT_M = 96;
2
+ export declare const MIN_HEIGHT_L = 146;
@@ -0,0 +1,3 @@
1
+ const MIN_HEIGHT_M = 96;
2
+ const MIN_HEIGHT_L = 146;
3
+ export { MIN_HEIGHT_L, MIN_HEIGHT_M };
@@ -0,0 +1,12 @@
1
+ import type { ValueOf } from '../../../common';
2
+ import type { IFileUploaderProps, IUseFileUploaderOptions } from '../../FileUploader/FileUploader.types';
3
+ export declare const TextfieldSize: {
4
+ readonly M: "m";
5
+ readonly L: "l";
6
+ };
7
+ export type TextfieldSizeValue = ValueOf<typeof TextfieldSize>;
8
+ export type ITextfieldUseFileUploaderOptions = Omit<IUseFileUploaderOptions, 'onDrop'>;
9
+ export interface ITextfieldFileUploaderProps extends Omit<IFileUploaderProps, 'testId'> {
10
+ handleOpen: () => void;
11
+ getInputProps: () => object;
12
+ }
@@ -0,0 +1,5 @@
1
+ const TextfieldSize = {
2
+ M: 'm',
3
+ L: 'l'
4
+ };
5
+ export { TextfieldSize };
@@ -0,0 +1,3 @@
1
+ import { type TextfieldSizeValue } from '../types';
2
+ export declare const isSizeM: (size: TextfieldSizeValue) => size is "m";
3
+ export declare const getMinHeight: (minHeightProp?: number, size?: TextfieldSizeValue) => number;
@@ -0,0 +1,8 @@
1
+ import { MIN_HEIGHT_L, MIN_HEIGHT_M } from "../consts/index.js";
2
+ import { TextfieldSize } from "../types/index.js";
3
+ const isSizeM = (size)=>size === TextfieldSize.M;
4
+ const getMinHeight = (minHeightProp, size = TextfieldSize.M)=>{
5
+ if (void 0 !== minHeightProp && minHeightProp >= 0) return minHeightProp;
6
+ return isSizeM(size) ? MIN_HEIGHT_M : MIN_HEIGHT_L;
7
+ };
8
+ export { getMinHeight, isSizeM };
@@ -1,5 +1,6 @@
1
1
  import { type TooltipProps as RcTooltipProps } from 'rc-tooltip/es/Tooltip';
2
2
  import type { IHasTestId, ValueOf } from '../../common/types';
3
+ import type { TTooltipBodyColorToken } from './types';
3
4
  export declare const Placement: {
4
5
  readonly TOP: "top";
5
6
  readonly TOP_LEFT: "topLeft";
@@ -22,5 +23,7 @@ export interface TooltipProps extends IHasTestId, RcTooltipProps {
22
23
  afterHide?: () => void;
23
24
  offset: [number, number];
24
25
  hideCloseButton?: boolean;
26
+ arrowClassName?: string;
27
+ colorToken?: TTooltipBodyColorToken;
25
28
  }
26
- export declare const Tooltip: (props: TooltipProps) => import("react/jsx-runtime").JSX.Element;
29
+ export declare const Tooltip: ({ testId, id, overlay, offset, visible, onVisibleChange, placement, trigger, children, afterHide, getTooltipContainer, zIndex, hideCloseButton, overlayClassName, arrowClassName, colorToken, arrowContent, ...restProps }: TooltipProps) => import("react/jsx-runtime").JSX.Element;