@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
@@ -1,7 +1,7 @@
1
1
  import { jsx } from "react/jsx-runtime";
2
2
  import { useEffect, useState } from "react";
3
3
  import { cn } from "../../common/css/cn.js";
4
- import { ArrowIcon } from "../Tooltip/ArrowIcon.js";
4
+ import { TooltipBodyColor } from "../Tooltip/constants/index.js";
5
5
  import { Placement, Tooltip } from "../Tooltip/Tooltip.js";
6
6
  import Hint_module from "./Hint.module.js";
7
7
  const HintVariant = {
@@ -28,13 +28,12 @@ const Hint = ({ testId = 'hint', children, placement = Placement.TOP, variant =
28
28
  },
29
29
  placement: placement,
30
30
  hideCloseButton: true,
31
- overlayClassName: cn(Hint_module.overlay, variant === HintVariant.Alert ? Hint_module.alertOverlay : Hint_module.defaultOverlay, overlayClassName),
31
+ colorToken: TooltipBodyColor.dark,
32
+ overlayClassName: cn(Hint_module.overlay, variant === HintVariant.Alert && Hint_module.alertOverlay, overlayClassName),
33
+ arrowClassName: Hint_module.arrow,
32
34
  trigger: [
33
35
  'hover'
34
36
  ],
35
- arrowContent: /*#__PURE__*/ jsx(ArrowIcon, {
36
- className: Hint_module.arrow
37
- }),
38
37
  offset: offset,
39
38
  ...otherProps,
40
39
  children: children
@@ -1,8 +1,7 @@
1
1
  import "./Hint_module.css";
2
2
  const Hint_module = {
3
3
  overlay: "overlay-r3djAa",
4
- defaultOverlay: "defaultOverlay-xUUlq1",
5
- arrow: "arrow-h8Epuo",
6
- alertOverlay: "alertOverlay-CnGnJX"
4
+ alertOverlay: "alertOverlay-CnGnJX",
5
+ arrow: "arrow-h8Epuo"
7
6
  };
8
7
  export default Hint_module;
@@ -5,15 +5,6 @@
5
5
  padding: 8px;
6
6
  }
7
7
 
8
- .defaultOverlay-xUUlq1 {
9
- background: var(--invert-background, #131d36f0);
10
- color: var(--invert-text, #fff);
11
- }
12
-
13
- .defaultOverlay-xUUlq1 .arrow-h8Epuo {
14
- fill: var(--invert-background, #131d36f0);
15
- }
16
-
17
8
  .alertOverlay-CnGnJX {
18
9
  background: var(--status-red-01-bg, #ffdcdc);
19
10
  color: var(--text-critical, #e50347);
@@ -7,7 +7,4 @@ export interface InfoProps extends IHasTestId {
7
7
  isEllipsis?: boolean;
8
8
  className?: string;
9
9
  }
10
- export declare const Info: {
11
- ({ info, error, warning, disabled, className, testId, isEllipsis, }: InfoProps): import("react/jsx-runtime").JSX.Element | null;
12
- displayName: string;
13
- };
10
+ export declare const Info: import("react").ForwardRefExoticComponent<InfoProps & import("react").RefAttributes<HTMLElement>>;
@@ -1,20 +1,43 @@
1
1
  import { jsx } from "react/jsx-runtime";
2
+ import { forwardRef, useState } from "react";
2
3
  import { cn } from "../../common/css/cn.js";
4
+ import { Hint } from "../Hint/Hint.js";
3
5
  import { Text, TextColor } from "../Text/Text.js";
6
+ import { useIsElementOverflowing } from "../../hooks/useIsElementOverflowing/index.js";
4
7
  import Info_module from "./Info.module.js";
5
- const Info = ({ info, error, warning, disabled, className, testId = '', isEllipsis })=>{
8
+ const Info = /*#__PURE__*/ forwardRef(({ info, error, warning, disabled, testId, isEllipsis, className }, ref)=>{
9
+ const { ref: infoRef, isOverflowing: isOverflowingInfo } = useIsElementOverflowing([
10
+ info
11
+ ], isEllipsis ? ref : null);
12
+ const [isHintVisible, setIsHintVisible] = useState(false);
6
13
  if (!info) return null;
7
14
  const getColor = ()=>{
8
15
  if (!disabled && error) return TextColor.critical;
9
16
  if (!disabled && warning) return TextColor.attention;
10
17
  return TextColor.secondary;
11
18
  };
12
- return /*#__PURE__*/ jsx(Text.Caption, {
13
- className: cn(Info_module.info, isEllipsis && Info_module.ellipsis, className),
19
+ const caption = /*#__PURE__*/ jsx(Text.Caption, {
20
+ ref: isEllipsis ? infoRef : void 0,
21
+ className: cn(Info_module.info, isEllipsis ? Info_module.ellipsis : Info_module.wrap, className),
14
22
  colorToken: getColor(),
15
23
  testId: `${testId}-info`,
16
24
  children: info
17
25
  });
18
- };
26
+ if (!isEllipsis) return caption;
27
+ return /*#__PURE__*/ jsx(Hint, {
28
+ visible: isHintVisible,
29
+ placement: "bottom",
30
+ onVisibleChange: setIsHintVisible,
31
+ overlay: /*#__PURE__*/ jsx(Text.Body, {
32
+ testId: `${testId}-info`,
33
+ colorToken: "invert",
34
+ className: Info_module.hintText,
35
+ children: info
36
+ }),
37
+ trigger: isOverflowingInfo ? 'hover' : [],
38
+ overlayClassName: Info_module.hint,
39
+ children: caption
40
+ });
41
+ });
19
42
  Info.displayName = 'Info';
20
43
  export { Info };
@@ -1,6 +1,9 @@
1
1
  import "./Info_module.css";
2
2
  const Info_module = {
3
3
  info: "info-DBaBLp",
4
- ellipsis: "ellipsis-DTZwRA"
4
+ wrap: "wrap-RDQclO",
5
+ ellipsis: "ellipsis-DTZwRA",
6
+ hint: "hint-x4Dujm",
7
+ hintText: "hintText-VkgCkI"
5
8
  };
6
9
  export default Info_module;
@@ -3,9 +3,30 @@
3
3
  position: relative;
4
4
  }
5
5
 
6
+ .wrap-RDQclO {
7
+ overflow-wrap: break-word;
8
+ }
9
+
6
10
  .ellipsis-DTZwRA {
7
11
  text-overflow: ellipsis;
8
12
  white-space: nowrap;
13
+ max-width: 100%;
14
+ display: block;
9
15
  overflow: hidden;
10
16
  }
11
17
 
18
+ .ellipsis-DTZwRA:after {
19
+ content: "";
20
+ display: block;
21
+ }
22
+
23
+ .hint-x4Dujm {
24
+ box-sizing: border-box;
25
+ overflow-wrap: break-word;
26
+ max-width: 300px;
27
+ }
28
+
29
+ .hintText-VkgCkI {
30
+ overflow-wrap: break-word;
31
+ }
32
+
@@ -1,5 +1,6 @@
1
1
  import React, { type InputHTMLAttributes, type ReactNode } from 'react';
2
2
  import { type IHasTabIndex, type IHasTestId } from '../../common/types';
3
+ import type { HelpProps } from '../Help/Help';
3
4
  export interface InputProps extends InputHTMLAttributes<HTMLInputElement>, IHasTestId, IHasTabIndex {
4
5
  name: string;
5
6
  className?: string;
@@ -11,6 +12,15 @@ export interface InputProps extends InputHTMLAttributes<HTMLInputElement>, IHasT
11
12
  disabled?: boolean;
12
13
  clearable?: boolean;
13
14
  onClear?: () => void;
15
+ textActionIcon?: ReactNode;
16
+ onTextActionClick?: () => void;
17
+ trailingActionIcon?: ReactNode;
18
+ onTrailingActionClick?: () => void;
19
+ helpProps?: Omit<HelpProps, 'testId'>;
20
+ /** @deprecated Используйте `helpProps` */
14
21
  helpComponent?: ReactNode;
22
+ inputSize?: 'M' | 'L';
23
+ showCounterLimit?: boolean;
24
+ isInfoEllipsis?: boolean;
15
25
  }
16
26
  export declare const Input: React.ForwardRefExoticComponent<InputProps & React.RefAttributes<HTMLInputElement>>;
@@ -2,37 +2,59 @@ import { jsx, jsxs } from "react/jsx-runtime";
2
2
  import { forwardRef, useRef } from "react";
3
3
  import { cn } from "../../common/css/cn.js";
4
4
  import { createSyntheticEvent } from "../../common/react/createSyntheticEvent.js";
5
+ import { FieldLabel } from "../FieldLabel/FieldLabel.js";
5
6
  import { FieldRow } from "../FieldRow/FieldRow.js";
6
- import { Text, TextColor } from "../Text/Text.js";
7
+ import { InfoBlock } from "./components/InfoBlock.js";
8
+ import { InputClear } from "../InputClear/InputClear.js";
7
9
  import { useId } from "../../hooks/useId/index.js";
8
10
  import { useIsElementOverflowing } from "../../hooks/useIsElementOverflowing/index.js";
9
- import { RemoveClose12Icon } from "../../icon/index.js";
10
11
  import Input_module from "./Input.module.js";
11
- const Input = /*#__PURE__*/ forwardRef(({ testId, tabIndex, className, inputClassName, label, info, required, error, disabled, clearable, onClear, onBlur, helpComponent, ...inputProps }, ref)=>{
12
- const inputId = useId(inputProps.id);
12
+ const getActionsPaddingClass = (size, showTextAction, showClear, showTrailing)=>{
13
+ const isLarge = 'L' === size;
14
+ if (showTextAction && showClear && showTrailing) return isLarge ? Input_module.actionsPaddingFullL : Input_module.actionsPaddingFullM;
15
+ if (showClear && showTrailing) return isLarge ? Input_module.actionsPaddingClearTrailL : Input_module.actionsPaddingClearTrailM;
16
+ if (showTextAction && showClear) return isLarge ? Input_module.actionsPaddingTwoL : Input_module.actionsPaddingTwoM;
17
+ if (showTextAction || showClear || showTrailing) return isLarge ? Input_module.actionsPaddingOneL : Input_module.actionsPaddingOneM;
18
+ };
19
+ const Input = /*#__PURE__*/ forwardRef(({ testId, tabIndex, className, inputClassName, label, info, required, error, disabled, clearable, onClear, textActionIcon, onTextActionClick, trailingActionIcon, onTrailingActionClick, onBlur, helpProps, helpComponent, inputSize = 'M', showCounterLimit, isInfoEllipsis, ...inputProps }, ref)=>{
20
+ const { maxLength, onChange, value, ...restInputProps } = inputProps;
21
+ const inputId = useId(restInputProps.id);
13
22
  const ignoreBlurRef = useRef(false);
23
+ const largeStyle = 'L' === inputSize && Input_module.large;
24
+ const inputValue = String(value ?? '');
25
+ const handleChange = (e)=>{
26
+ onChange?.(e);
27
+ };
14
28
  const handleClear = ()=>{
15
- if (inputProps.onChange) {
29
+ if (onChange) {
16
30
  const nativeEvent = new Event('change');
17
31
  Object.defineProperty(nativeEvent, 'target', {
18
32
  writable: false,
19
33
  value: ''
20
34
  });
21
35
  const event = createSyntheticEvent(nativeEvent);
22
- inputProps.onChange(event);
36
+ onChange(event);
23
37
  }
24
38
  onClear?.();
25
39
  };
26
- const handleClearMouseDown = ()=>{
40
+ const handleActionMouseDown = ()=>{
27
41
  ignoreBlurRef.current = true;
28
42
  };
29
- const { ref: labelRef, isOverflowing: isOverflowingLabel } = useIsElementOverflowing([
30
- label
31
- ]);
43
+ const handleActionKeyDown = (e)=>{
44
+ if ('Enter' === e.key || ' ' === e.key) ignoreBlurRef.current = true;
45
+ };
32
46
  const { ref: inputRef, isOverflowing: isOverflowingInput } = useIsElementOverflowing([
33
- inputProps.value,
34
- clearable
47
+ value,
48
+ clearable,
49
+ textActionIcon,
50
+ trailingActionIcon
35
51
  ], ref);
52
+ const showClear = Boolean(clearable && value && !disabled);
53
+ const showTextAction = Boolean(textActionIcon && !disabled);
54
+ const showTrailing = Boolean(trailingActionIcon && !disabled);
55
+ const showActions = showTextAction || showClear || showTrailing;
56
+ const actionsPaddingClass = getActionsPaddingClass(inputSize, showTextAction, showClear, showTrailing);
57
+ const paddingClass = actionsPaddingClass ?? ('L' === inputSize ? Input_module.inputPaddingL : Input_module.inputPaddingM);
36
58
  const handleBlur = (e)=>{
37
59
  if (ignoreBlurRef.current) {
38
60
  ignoreBlurRef.current = false;
@@ -43,23 +65,13 @@ const Input = /*#__PURE__*/ forwardRef(({ testId, tabIndex, className, inputClas
43
65
  "data-test-id": testId,
44
66
  className: cn(Input_module.wrapper, className),
45
67
  children: [
46
- label && /*#__PURE__*/ jsx("label", {
47
- className: Input_module.labelWrapper,
68
+ /*#__PURE__*/ jsx(FieldLabel, {
69
+ label: label,
70
+ required: required,
48
71
  htmlFor: inputId,
49
- children: /*#__PURE__*/ jsxs(Text.Body, {
50
- ref: labelRef,
51
- title: isOverflowingLabel ? label : void 0,
52
- className: Input_module.label,
53
- as: "label",
54
- htmlFor: inputId,
55
- children: [
56
- label,
57
- required && /*#__PURE__*/ jsx("span", {
58
- className: Input_module.required,
59
- children: "*"
60
- })
61
- ]
62
- })
72
+ testId: testId,
73
+ className: Input_module.label,
74
+ helpProps: helpProps
63
75
  }),
64
76
  /*#__PURE__*/ jsx(FieldRow, {
65
77
  helpComponent: helpComponent,
@@ -67,35 +79,74 @@ const Input = /*#__PURE__*/ forwardRef(({ testId, tabIndex, className, inputClas
67
79
  className: cn(Input_module.inputWrapper),
68
80
  children: [
69
81
  /*#__PURE__*/ jsx("input", {
70
- ...inputProps,
71
- title: isOverflowingInput ? inputProps.value?.toString() : void 0,
82
+ ...restInputProps,
83
+ ...void 0 === value ? {} : {
84
+ value
85
+ },
86
+ maxLength: maxLength,
87
+ onChange: handleChange,
88
+ title: isOverflowingInput ? inputValue : void 0,
72
89
  tabIndex: tabIndex,
73
90
  id: inputId,
74
91
  ref: inputRef,
75
92
  "data-test-id": testId ? `${testId}-input` : null,
76
93
  type: "text",
77
- className: cn(Input_module.input, clearable && Input_module.clearable, error && Input_module.error, inputClassName),
94
+ className: cn(Input_module.input, largeStyle, paddingClass, error && Input_module.error, inputClassName),
78
95
  disabled: disabled,
79
96
  onBlur: handleBlur,
80
97
  ...error ? {
81
98
  'data-error': true
82
99
  } : {}
83
100
  }),
84
- clearable && inputProps.value && !disabled && /*#__PURE__*/ jsx("span", {
85
- "data-test-id": testId ? `${testId}-input-clear` : null,
86
- className: Input_module.clearIcon,
87
- onMouseDown: handleClearMouseDown,
88
- onClick: handleClear,
89
- children: /*#__PURE__*/ jsx(RemoveClose12Icon, {})
101
+ showActions && /*#__PURE__*/ jsxs("div", {
102
+ className: cn(Input_module.actions, largeStyle),
103
+ children: [
104
+ /*#__PURE__*/ jsxs("div", {
105
+ className: cn(Input_module.textActions, largeStyle),
106
+ children: [
107
+ showTextAction && /*#__PURE__*/ jsx("button", {
108
+ type: "button",
109
+ "data-test-id": testId ? `${testId}-text-action` : null,
110
+ className: Input_module.iconActionButton,
111
+ onMouseDown: handleActionMouseDown,
112
+ onKeyDown: handleActionKeyDown,
113
+ onClick: onTextActionClick,
114
+ children: textActionIcon
115
+ }),
116
+ showClear && /*#__PURE__*/ jsx(InputClear, {
117
+ testId: testId,
118
+ onClick: handleClear,
119
+ onMouseDown: handleActionMouseDown,
120
+ size: inputSize
121
+ })
122
+ ]
123
+ }),
124
+ showTrailing && /*#__PURE__*/ jsx("div", {
125
+ className: cn(Input_module.divider, largeStyle)
126
+ }),
127
+ showTrailing && /*#__PURE__*/ jsx("button", {
128
+ type: "button",
129
+ "data-test-id": testId ? `${testId}-trailing-action` : null,
130
+ className: Input_module.trailingActionButton,
131
+ onMouseDown: handleActionMouseDown,
132
+ onKeyDown: handleActionKeyDown,
133
+ onClick: onTrailingActionClick,
134
+ children: trailingActionIcon
135
+ })
136
+ ]
90
137
  })
91
138
  ]
92
139
  })
93
140
  }),
94
- info && /*#__PURE__*/ jsx(Text.Caption, {
95
- className: Input_module.info,
96
- colorToken: !disabled && error ? TextColor.critical : TextColor.secondary,
97
- testId: testId ? `${testId}-info` : void 0,
98
- children: info
141
+ /*#__PURE__*/ jsx(InfoBlock, {
142
+ info: info,
143
+ isInfoEllipsis: isInfoEllipsis,
144
+ testId: testId,
145
+ value: inputValue,
146
+ maxLength: maxLength,
147
+ disabled: disabled,
148
+ showCounterLimit: showCounterLimit,
149
+ error: error
99
150
  })
100
151
  ]
101
152
  });
@@ -6,10 +6,26 @@ const Input_module = {
6
6
  required: "required-tL_0P7",
7
7
  inputWrapper: "inputWrapper-Z2MHzj",
8
8
  input: "input-abYkhJ",
9
- clearable: "clearable-RaD0Fg",
9
+ large: "large-byNK0a",
10
10
  error: "error-LvRHQc",
11
- clearIcon: "clearIcon-IsS0xJ",
11
+ actions: "actions-mGn9Sv",
12
+ iconActionButton: "iconActionButton-G0JpZw",
13
+ trailingActionButton: "trailingActionButton-anvK7V",
14
+ textActions: "textActions-wjiHob",
15
+ divider: "divider-MSupsj",
12
16
  label: "label-LenERt",
13
- help: "help-i_fDqu"
17
+ help: "help-i_fDqu",
18
+ helpIcon: "helpIcon-MR3GpI",
19
+ infoBlock: "infoBlock-KVlxEN",
20
+ inputPaddingM: "inputPaddingM-vHiTSa",
21
+ inputPaddingL: "inputPaddingL-N8VHsb",
22
+ actionsPaddingOneM: "actionsPaddingOneM-ZKwigm",
23
+ actionsPaddingTwoM: "actionsPaddingTwoM-WD5Jt3",
24
+ actionsPaddingClearTrailM: "actionsPaddingClearTrailM-Lp4qkT",
25
+ actionsPaddingFullM: "actionsPaddingFullM-nwz6aQ",
26
+ actionsPaddingOneL: "actionsPaddingOneL-vxw7Bt",
27
+ actionsPaddingTwoL: "actionsPaddingTwoL-MIUbac",
28
+ actionsPaddingClearTrailL: "actionsPaddingClearTrailL-vQgKWL",
29
+ actionsPaddingFullL: "actionsPaddingFullL-b6pU4F"
14
30
  };
15
31
  export default Input_module;
@@ -10,6 +10,7 @@
10
10
  .wrapper-oFEm9y .info-VucqZW {
11
11
  margin: 0;
12
12
  position: relative;
13
+ overflow: hidden;
13
14
  }
14
15
 
15
16
  .wrapper-oFEm9y .labelWrapper-VXBpmH {
@@ -19,7 +20,7 @@
19
20
  }
20
21
 
21
22
  .wrapper-oFEm9y .required-tL_0P7 {
22
- color: var(--text-critical, #e50347);
23
+ color: var(--elements-critical, #e50347);
23
24
  }
24
25
 
25
26
  .wrapper-oFEm9y .inputWrapper-Z2MHzj {
@@ -45,9 +46,7 @@
45
46
  }
46
47
 
47
48
  .wrapper-oFEm9y .input-abYkhJ:focus-visible {
48
- --input-shadow: var(--invert-accent-normal, #7eb4ff);
49
- box-shadow: 0 0 4px 0 var(--input-shadow);
50
- border: 1px solid var(--border-accent, #036ce5);
49
+ border: 1px solid var(--border-focused, #091739);
51
50
  }
52
51
 
53
52
  .wrapper-oFEm9y .input-abYkhJ {
@@ -56,15 +55,20 @@
56
55
  outline: none;
57
56
  width: 100%;
58
57
  height: 32px;
59
- padding: 4px 10px 4px 11px;
60
58
  }
61
59
 
62
60
  .wrapper-oFEm9y .input-abYkhJ + span {
63
61
  color: var(--text-primary, #091739);
64
62
  }
65
63
 
66
- .wrapper-oFEm9y .input-abYkhJ.clearable-RaD0Fg {
67
- padding: 4px 36px 4px 11px;
64
+ .wrapper-oFEm9y .input-abYkhJ.large-byNK0a {
65
+ color: var(--text-primary, #091739);
66
+ height: 40px;
67
+ font-family: ALS Hauss, sans-serif;
68
+ font-size: 16px;
69
+ font-style: normal;
70
+ font-weight: 400;
71
+ line-height: 24px;
68
72
  }
69
73
 
70
74
  .wrapper-oFEm9y .input-abYkhJ.error-LvRHQc, .wrapper-oFEm9y .input-abYkhJ.error-LvRHQc:hover, .wrapper-oFEm9y .input-abYkhJ.error-LvRHQc:focus {
@@ -92,23 +96,101 @@
92
96
  color: var(--text-tertiary, #9fa7af);
93
97
  }
94
98
 
95
- .wrapper-oFEm9y .clearIcon-IsS0xJ {
96
- cursor: pointer;
97
- height: 12px;
98
- line-height: 12px;
99
+ .wrapper-oFEm9y .actions-mGn9Sv {
100
+ align-items: center;
101
+ gap: 8px;
102
+ display: flex;
99
103
  position: absolute;
100
104
  top: 50%;
101
- right: 16px;
102
- transform: translate(0, -50%);
105
+ right: 8px;
106
+ transform: translateY(-50%);
107
+ }
108
+
109
+ .wrapper-oFEm9y .actions-mGn9Sv.large-byNK0a {
110
+ gap: 12px;
111
+ }
112
+
113
+ .wrapper-oFEm9y .actions-mGn9Sv.large-byNK0a .iconActionButton-G0JpZw, .wrapper-oFEm9y .actions-mGn9Sv.large-byNK0a .trailingActionButton-anvK7V {
114
+ padding: 5px;
115
+ }
116
+
117
+ .wrapper-oFEm9y .textActions-wjiHob {
118
+ gap: 4px;
119
+ display: flex;
120
+ }
121
+
122
+ .wrapper-oFEm9y .textActions-wjiHob.large-byNK0a {
123
+ gap: 8px;
124
+ }
125
+
126
+ .wrapper-oFEm9y .iconActionButton-G0JpZw {
127
+ box-sizing: border-box;
128
+ cursor: pointer;
129
+ color: var(--elements-normal, #5f6d79);
130
+ background: none;
131
+ border: 1px solid #0000;
132
+ border-radius: 4px;
133
+ outline: none;
134
+ justify-content: center;
135
+ align-items: center;
136
+ margin: 0;
137
+ padding: 3px;
138
+ line-height: 0;
139
+ display: flex;
140
+ }
141
+
142
+ .wrapper-oFEm9y .iconActionButton-G0JpZw:hover, .wrapper-oFEm9y .iconActionButton-G0JpZw:active {
143
+ color: var(--elements-hover, #091739);
144
+ }
145
+
146
+ .wrapper-oFEm9y .iconActionButton-G0JpZw:focus-visible {
147
+ border-color: var(--border-focused, #091739);
148
+ color: var(--elements-hover, #091739);
149
+ }
150
+
151
+ .wrapper-oFEm9y .trailingActionButton-anvK7V {
152
+ box-sizing: border-box;
153
+ cursor: pointer;
154
+ color: var(--elements-normal, #5f6d79);
155
+ background: none;
156
+ border: 1px solid #0000;
157
+ border-radius: 4px;
158
+ outline: none;
159
+ justify-content: center;
160
+ align-items: center;
161
+ margin: 0;
162
+ padding: 3px;
163
+ line-height: 0;
164
+ display: flex;
165
+ }
166
+
167
+ .wrapper-oFEm9y .trailingActionButton-anvK7V:hover {
168
+ background-color: var(--elements-chips-regular-hover, #d3d8ddb3);
169
+ }
170
+
171
+ .wrapper-oFEm9y .trailingActionButton-anvK7V:active {
172
+ background-color: var(--elements-chips-regular-pressed, #55607359);
173
+ }
174
+
175
+ .wrapper-oFEm9y .trailingActionButton-anvK7V:focus-visible {
176
+ border-color: var(--border-focused, #091739);
177
+ background-color: var(--elements-chips-regular-hover, #d3d8ddb3);
178
+ color: var(--elements-hover, #091739);
179
+ }
180
+
181
+ .wrapper-oFEm9y .divider-MSupsj {
182
+ background-color: var(--light-grey-400);
183
+ flex-shrink: 0;
184
+ width: 1px;
185
+ height: 16px;
186
+ }
187
+
188
+ .wrapper-oFEm9y .divider-MSupsj.large-byNK0a {
189
+ height: 20px;
103
190
  }
104
191
 
105
192
  .wrapper-oFEm9y .label-LenERt {
106
- color: var(--text-primary, #091739);
107
- text-overflow: ellipsis;
108
- white-space: nowrap;
109
- margin-bottom: 0;
110
- display: inline-block;
111
- overflow: hidden;
193
+ width: 100%;
112
194
  }
113
195
 
114
196
  .wrapper-oFEm9y .help-i_fDqu {
@@ -117,3 +199,58 @@
117
199
  right: -1px;
118
200
  }
119
201
 
202
+ .wrapper-oFEm9y .helpIcon-MR3GpI {
203
+ flex-direction: column;
204
+ justify-content: center;
205
+ align-items: flex-end;
206
+ margin-left: 4px;
207
+ display: flex;
208
+ }
209
+
210
+ .wrapper-oFEm9y .infoBlock-KVlxEN {
211
+ justify-content: space-between;
212
+ gap: 4px;
213
+ width: 100%;
214
+ display: flex;
215
+ }
216
+
217
+ .inputPaddingM-vHiTSa {
218
+ padding: 4px 8px 4px 12px;
219
+ }
220
+
221
+ .inputPaddingL-N8VHsb {
222
+ padding: 8px 8px 8px 12px;
223
+ }
224
+
225
+ .actionsPaddingOneM-ZKwigm {
226
+ padding: 4px 36px 4px 12px;
227
+ }
228
+
229
+ .actionsPaddingTwoM-WD5Jt3 {
230
+ padding: 4px 60px 4px 12px;
231
+ }
232
+
233
+ .actionsPaddingClearTrailM-Lp4qkT {
234
+ padding: 4px 73px 4px 12px;
235
+ }
236
+
237
+ .actionsPaddingFullM-nwz6aQ {
238
+ padding: 4px 97px 4px 12px;
239
+ }
240
+
241
+ .actionsPaddingOneL-vxw7Bt {
242
+ padding: 8px 48px 8px 12px;
243
+ }
244
+
245
+ .actionsPaddingTwoL-MIUbac {
246
+ padding: 8px 84px 8px 12px;
247
+ }
248
+
249
+ .actionsPaddingClearTrailL-vQgKWL {
250
+ padding: 8px 101px 8px 12px;
251
+ }
252
+
253
+ .actionsPaddingFullL-b6pU4F {
254
+ padding: 8px 137px 8px 12px;
255
+ }
256
+
@@ -0,0 +1,12 @@
1
+ type InfoBlockProps = {
2
+ info?: string;
3
+ error?: boolean;
4
+ disabled?: boolean;
5
+ isInfoEllipsis?: boolean;
6
+ testId?: string;
7
+ showCounterLimit?: boolean;
8
+ maxLength?: number;
9
+ value?: string;
10
+ };
11
+ export declare const InfoBlock: ({ info, error, disabled, isInfoEllipsis, testId, maxLength, showCounterLimit, value, }: InfoBlockProps) => import("react/jsx-runtime").JSX.Element | null;
12
+ export {};
@@ -0,0 +1,29 @@
1
+ import { jsx, jsxs } from "react/jsx-runtime";
2
+ import { Info } from "../../Info/Info.js";
3
+ import { Counter } from "../../Textfield/components/Counter/Counter.js";
4
+ import Input_module from "../Input.module.js";
5
+ const InfoBlock = ({ info, error, disabled, isInfoEllipsis, testId, maxLength, showCounterLimit, value })=>{
6
+ if (!info && !showCounterLimit && !maxLength) return null;
7
+ return /*#__PURE__*/ jsxs("div", {
8
+ className: Input_module.infoBlock,
9
+ children: [
10
+ info && /*#__PURE__*/ jsx("div", {
11
+ className: Input_module.info,
12
+ children: /*#__PURE__*/ jsx(Info, {
13
+ info: info,
14
+ error: error,
15
+ disabled: disabled,
16
+ isEllipsis: isInfoEllipsis,
17
+ testId: testId
18
+ })
19
+ }),
20
+ showCounterLimit && maxLength && /*#__PURE__*/ jsx(Counter, {
21
+ testId: testId,
22
+ value: value,
23
+ hasHelp: false,
24
+ limit: maxLength
25
+ })
26
+ ]
27
+ });
28
+ };
29
+ export { InfoBlock };