@consta/uikit 3.9.0 → 3.10.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 (409) hide show
  1. package/Attach/package.json +1 -1
  2. package/Attachment/package.json +1 -1
  3. package/Avatar/package.json +1 -1
  4. package/Badge/package.json +1 -1
  5. package/BasicSelectDeprecated/package.json +1 -1
  6. package/Breadcrumbs/package.json +1 -1
  7. package/Button/package.json +1 -1
  8. package/CHANGELOG.md +68 -35
  9. package/Calendar/package.json +1 -1
  10. package/Card/package.json +1 -1
  11. package/Checkbox/package.json +1 -1
  12. package/CheckboxGroup/package.json +1 -1
  13. package/ChoiceGroup/package.json +1 -1
  14. package/Collapse/package.json +1 -1
  15. package/CollapseGroup/package.json +1 -1
  16. package/Combobox/package.json +1 -1
  17. package/ComboboxDeprecated/package.json +1 -1
  18. package/ContextMenu/package.json +1 -1
  19. package/DatePickerCanary/package.json +1 -1
  20. package/DateTimeCanary/package.json +1 -1
  21. package/DragNDropField/package.json +1 -1
  22. package/EventInterceptor/package.json +1 -1
  23. package/FieldCaption/package.json +1 -1
  24. package/FieldLabel/package.json +1 -1
  25. package/File/package.json +1 -1
  26. package/FileField/package.json +1 -1
  27. package/FileIcon/package.json +1 -1
  28. package/FileIconAvi/package.json +1 -1
  29. package/FileIconBmp/package.json +1 -1
  30. package/FileIconCsv/package.json +1 -1
  31. package/FileIconDoc/package.json +1 -1
  32. package/FileIconExe/package.json +1 -1
  33. package/FileIconGif/package.json +1 -1
  34. package/FileIconJpg/package.json +1 -1
  35. package/FileIconJson/package.json +1 -1
  36. package/FileIconLoading/package.json +1 -1
  37. package/FileIconMov/package.json +1 -1
  38. package/FileIconMp3/package.json +1 -1
  39. package/FileIconMp4/package.json +1 -1
  40. package/FileIconPdf/package.json +1 -1
  41. package/FileIconPng/package.json +1 -1
  42. package/FileIconPtt/package.json +1 -1
  43. package/FileIconRar/package.json +1 -1
  44. package/FileIconRtf/package.json +1 -1
  45. package/FileIconTiff/package.json +1 -1
  46. package/FileIconTxt/package.json +1 -1
  47. package/FileIconUndefined/package.json +1 -1
  48. package/FileIconWav/package.json +1 -1
  49. package/FileIconXls/package.json +1 -1
  50. package/FileIconZip/package.json +1 -1
  51. package/Grid/package.json +1 -1
  52. package/Header/package.json +1 -1
  53. package/Icon/package.json +1 -1
  54. package/IconAdd/package.json +1 -1
  55. package/IconAddToComparison/package.json +1 -1
  56. package/IconAlert/package.json +1 -1
  57. package/IconAlignBlocksLeft/package.json +1 -1
  58. package/IconAlignBlocksRight/package.json +1 -1
  59. package/IconAlignCenter/package.json +1 -1
  60. package/IconAlignJustify/package.json +1 -1
  61. package/IconAlignLeft/package.json +1 -1
  62. package/IconAlignRight/package.json +1 -1
  63. package/IconAllDone/package.json +1 -1
  64. package/IconArrowDown/package.json +1 -1
  65. package/IconArrowLeft/package.json +1 -1
  66. package/IconArrowRight/package.json +1 -1
  67. package/IconArrowUp/package.json +1 -1
  68. package/IconArtBrush/package.json +1 -1
  69. package/IconAttach/package.json +1 -1
  70. package/IconBackward/package.json +1 -1
  71. package/IconBag/package.json +1 -1
  72. package/IconBarrier/package.json +1 -1
  73. package/IconBento/package.json +1 -1
  74. package/IconBold/package.json +1 -1
  75. package/IconBook/package.json +1 -1
  76. package/IconBookmarkFilled/package.json +1 -1
  77. package/IconBookmarkStroked/package.json +1 -1
  78. package/IconCalculator/package.json +1 -1
  79. package/IconCalendar/package.json +1 -1
  80. package/IconCamera/package.json +1 -1
  81. package/IconCancel/package.json +1 -1
  82. package/IconCards/package.json +1 -1
  83. package/IconChat/package.json +1 -1
  84. package/IconCheck/package.json +1 -1
  85. package/IconClose/package.json +1 -1
  86. package/IconCollapse/package.json +1 -1
  87. package/IconColorFill/package.json +1 -1
  88. package/IconColorText/package.json +1 -1
  89. package/IconColumns/package.json +1 -1
  90. package/IconComment/package.json +1 -1
  91. package/IconConnection/package.json +1 -1
  92. package/IconCopy/package.json +1 -1
  93. package/IconCrown/package.json +1 -1
  94. package/IconCursorMouse/package.json +1 -1
  95. package/IconDataNull/package.json +1 -1
  96. package/IconDiamond/package.json +1 -1
  97. package/IconDinosaur/package.json +1 -1
  98. package/IconDisconnection/package.json +1 -1
  99. package/IconDocAdd/package.json +1 -1
  100. package/IconDocBlank/package.json +1 -1
  101. package/IconDocDelete/package.json +1 -1
  102. package/IconDocExport/package.json +1 -1
  103. package/IconDocFilled/package.json +1 -1
  104. package/IconDown/package.json +1 -1
  105. package/IconDownload/package.json +1 -1
  106. package/IconDrag/package.json +1 -1
  107. package/IconDraggable/package.json +1 -1
  108. package/IconDrillingRig/package.json +1 -1
  109. package/IconDrop/package.json +1 -1
  110. package/IconEdit/package.json +1 -1
  111. package/IconExit/package.json +1 -1
  112. package/IconExpand/package.json +1 -1
  113. package/IconEye/package.json +1 -1
  114. package/IconEyeClose/package.json +1 -1
  115. package/IconFavorite/package.json +1 -1
  116. package/IconFilter/package.json +1 -1
  117. package/IconFitToDefault/package.json +1 -1
  118. package/IconFlagFilled/package.json +1 -1
  119. package/IconFlagStroked/package.json +1 -1
  120. package/IconFolders/package.json +1 -1
  121. package/IconForward/package.json +1 -1
  122. package/IconFunnel/package.json +1 -1
  123. package/IconGas/package.json +1 -1
  124. package/IconGeo/package.json +1 -1
  125. package/IconGrouping/package.json +1 -1
  126. package/IconHamburger/package.json +1 -1
  127. package/IconHand/package.json +1 -1
  128. package/IconHealth/package.json +1 -1
  129. package/IconInComparison/package.json +1 -1
  130. package/IconInfo/package.json +1 -1
  131. package/IconIntroduction/package.json +1 -1
  132. package/IconIpad/package.json +1 -1
  133. package/IconItalic/package.json +1 -1
  134. package/IconKebab/package.json +1 -1
  135. package/IconLaptop/package.json +1 -1
  136. package/IconLayers/package.json +1 -1
  137. package/IconLeaf/package.json +1 -1
  138. package/IconLightningBolt/package.json +1 -1
  139. package/IconLineAndBarChart/package.json +1 -1
  140. package/IconLink/package.json +1 -1
  141. package/IconList/package.json +1 -1
  142. package/IconListNumbered/package.json +1 -1
  143. package/IconLock/package.json +1 -1
  144. package/IconLogicalElement/package.json +1 -1
  145. package/IconMBU/package.json +1 -1
  146. package/IconMGRP/package.json +1 -1
  147. package/IconMLSP/package.json +1 -1
  148. package/IconMMP/package.json +1 -1
  149. package/IconMail/package.json +1 -1
  150. package/IconMap/package.json +1 -1
  151. package/IconMaxHeight/package.json +1 -1
  152. package/IconMaxWidth/package.json +1 -1
  153. package/IconMeatball/package.json +1 -1
  154. package/IconMic/package.json +1 -1
  155. package/IconMolecules/package.json +1 -1
  156. package/IconMoon/package.json +1 -1
  157. package/IconNodeEnd/package.json +1 -1
  158. package/IconNodeStart/package.json +1 -1
  159. package/IconNodeStep/package.json +1 -1
  160. package/IconNodes/package.json +1 -1
  161. package/IconOpenInNew/package.json +1 -1
  162. package/IconPanelBottom/package.json +1 -1
  163. package/IconPanelLeft/package.json +1 -1
  164. package/IconPanelRight/package.json +1 -1
  165. package/IconPanelTop/package.json +1 -1
  166. package/IconPaste/package.json +1 -1
  167. package/IconPause/package.json +1 -1
  168. package/IconPhone/package.json +1 -1
  169. package/IconPhoto/package.json +1 -1
  170. package/IconPlay/package.json +1 -1
  171. package/IconPressure/package.json +1 -1
  172. package/IconProcessing/package.json +1 -1
  173. package/IconQuestion/package.json +1 -1
  174. package/IconQuote/package.json +1 -1
  175. package/IconRUO/package.json +1 -1
  176. package/IconRUS/package.json +1 -1
  177. package/IconRecord/package.json +1 -1
  178. package/IconRemove/package.json +1 -1
  179. package/IconRemoveFromComparison/package.json +1 -1
  180. package/IconReply/package.json +1 -1
  181. package/IconResize/package.json +1 -1
  182. package/IconRestart/package.json +1 -1
  183. package/IconRevert/package.json +1 -1
  184. package/IconRing/package.json +1 -1
  185. package/IconRouble/package.json +1 -1
  186. package/IconRuler/package.json +1 -1
  187. package/IconScreen/package.json +1 -1
  188. package/IconSearch/package.json +1 -1
  189. package/IconSelect/package.json +1 -1
  190. package/IconSelectOpen/package.json +1 -1
  191. package/IconSettings/package.json +1 -1
  192. package/IconShape/package.json +1 -1
  193. package/IconShuffle/package.json +1 -1
  194. package/IconSmile/package.json +1 -1
  195. package/IconSortDown/package.json +1 -1
  196. package/IconSortDownCenter/package.json +1 -1
  197. package/IconSortUp/package.json +1 -1
  198. package/IconSortUpCenter/package.json +1 -1
  199. package/IconStop/package.json +1 -1
  200. package/IconStorage/package.json +1 -1
  201. package/IconStrikethrough/package.json +1 -1
  202. package/IconSun/package.json +1 -1
  203. package/IconTable/package.json +1 -1
  204. package/IconTarget/package.json +1 -1
  205. package/IconTeam/package.json +1 -1
  206. package/IconTest/package.json +1 -1
  207. package/IconThumbUp/package.json +1 -1
  208. package/IconTie/package.json +1 -1
  209. package/IconTop/package.json +1 -1
  210. package/IconTrash/package.json +1 -1
  211. package/IconType/package.json +1 -1
  212. package/IconUnderline/package.json +1 -1
  213. package/IconUnlock/package.json +1 -1
  214. package/IconUnsort/package.json +1 -1
  215. package/IconUnsortCenter/package.json +1 -1
  216. package/IconUpload/package.json +1 -1
  217. package/IconUser/package.json +1 -1
  218. package/IconVZD/package.json +1 -1
  219. package/IconVideo/package.json +1 -1
  220. package/IconWarning/package.json +1 -1
  221. package/IconWatch/package.json +1 -1
  222. package/IconWideScreen/package.json +1 -1
  223. package/IconWorld/package.json +1 -1
  224. package/Informer/package.json +1 -1
  225. package/LayoutCanary/package.json +1 -1
  226. package/Loader/package.json +1 -1
  227. package/MixCard/package.json +1 -1
  228. package/MixFocus/package.json +1 -1
  229. package/MixSpace/es.js +1 -0
  230. package/MixSpace/index.d.ts +1 -0
  231. package/MixSpace/index.js +4 -0
  232. package/MixSpace/package.json +9 -0
  233. package/MixVisuallyHidden/package.json +1 -1
  234. package/Modal/package.json +1 -1
  235. package/MultiComboboxDeprecated/package.json +1 -1
  236. package/Pagination/package.json +1 -1
  237. package/Popover/package.json +1 -1
  238. package/PortalWithTheme/package.json +1 -1
  239. package/ProgressSpin/package.json +1 -1
  240. package/ProgressStepBarCanary/package.json +1 -1
  241. package/Radio/package.json +1 -1
  242. package/RadioGroup/package.json +1 -1
  243. package/Responses/package.json +1 -1
  244. package/Responses403/package.json +1 -1
  245. package/Responses404/package.json +1 -1
  246. package/Responses500/package.json +1 -1
  247. package/Responses503/package.json +1 -1
  248. package/ResponsesConnectionError/package.json +1 -1
  249. package/ResponsesDeleted/package.json +1 -1
  250. package/ResponsesEmptyBox/package.json +1 -1
  251. package/ResponsesEmptyPockets/package.json +1 -1
  252. package/ResponsesImage/package.json +1 -1
  253. package/ResponsesImage403/package.json +1 -1
  254. package/ResponsesImage404/package.json +1 -1
  255. package/ResponsesImage500/package.json +1 -1
  256. package/ResponsesImage503/package.json +1 -1
  257. package/ResponsesImageConnectionError/package.json +1 -1
  258. package/ResponsesImageDeleted/package.json +1 -1
  259. package/ResponsesImageEmptyBox/package.json +1 -1
  260. package/ResponsesImageEmptyPockets/package.json +1 -1
  261. package/ResponsesImageNothingFound/package.json +1 -1
  262. package/ResponsesImageSuccess/package.json +1 -1
  263. package/ResponsesNothingFound/package.json +1 -1
  264. package/ResponsesSuccess/package.json +1 -1
  265. package/Select/package.json +1 -1
  266. package/Sidebar/package.json +1 -1
  267. package/Skeleton/package.json +1 -1
  268. package/SnackBar/package.json +1 -1
  269. package/Steps/package.json +1 -1
  270. package/Switch/package.json +1 -1
  271. package/SwitchGroup/package.json +1 -1
  272. package/Table/package.json +1 -1
  273. package/Tabs/package.json +1 -1
  274. package/Tag/package.json +1 -1
  275. package/TagBase/package.json +1 -1
  276. package/Text/package.json +1 -1
  277. package/TextField/package.json +1 -1
  278. package/Theme/package.json +1 -1
  279. package/ThemeToggler/package.json +1 -1
  280. package/Timer/package.json +1 -1
  281. package/Tooltip/package.json +1 -1
  282. package/User/package.json +1 -1
  283. package/UserSelect/package.json +1 -1
  284. package/UserSelectDeprecated/package.json +1 -1
  285. package/__internal__/cjs-src/components/Avatar/Avatar.css +15 -12
  286. package/__internal__/cjs-src/components/Avatar/Avatar.d.ts +1 -1
  287. package/__internal__/cjs-src/components/Avatar/Avatar.js +1 -1
  288. package/__internal__/cjs-src/components/Breadcrumbs/Breadcrumbs.js +2 -2
  289. package/__internal__/cjs-src/components/Button/Button.js +8 -6
  290. package/__internal__/cjs-src/components/Calendar/Calendar.js +2 -2
  291. package/__internal__/cjs-src/components/ChoiceGroup/ChoiceGroup.d.ts +13 -24
  292. package/__internal__/cjs-src/components/ChoiceGroup/ChoiceGroup.js +2 -2
  293. package/__internal__/cjs-src/components/Collapse/Collapse.js +2 -2
  294. package/__internal__/cjs-src/components/ContextMenu/ContextMenuGroupHeader/ContextMenuGroupHeader.js +2 -2
  295. package/__internal__/cjs-src/components/ContextMenu/ContextMenuLevel/ContextMenuLevel.js +16 -3
  296. package/__internal__/cjs-src/components/ContextMenu/helpers.d.ts +7 -2
  297. package/__internal__/cjs-src/components/DatePickerCanary/DatePickerFieldTypeDateRange/DatePickerFieldTypeDateRange.js +3 -3
  298. package/__internal__/cjs-src/components/DateTimeCanary/DateTimeCanary.js +2 -2
  299. package/__internal__/cjs-src/components/EventInterceptor/eventInterceptorMap.d.ts +2 -2
  300. package/__internal__/cjs-src/components/EventInterceptor/propsHandlers/useButtonEventHandler.js +2 -1
  301. package/__internal__/cjs-src/components/EventInterceptor/propsHandlers/useCheckboxEventsHandler.js +2 -1
  302. package/__internal__/cjs-src/components/EventInterceptor/propsHandlers/useSelectEventsHandler.js +2 -1
  303. package/__internal__/cjs-src/components/EventInterceptor/propsHandlers/useSnackBarEventsHandler.js +2 -1
  304. package/__internal__/cjs-src/components/EventInterceptor/propsHandlers/useTextFieldEventsHandler.d.ts +2 -2
  305. package/__internal__/cjs-src/components/EventInterceptor/propsHandlers/useTextFieldEventsHandler.js +2 -1
  306. package/__internal__/cjs-src/components/ProgressSpin/ProgressSpin.js +3 -3
  307. package/__internal__/cjs-src/components/ProgressStepBarCanary/ProgressStepBarLine/ProgressStepBarLine.js +2 -2
  308. package/__internal__/cjs-src/components/Select/Select.js +1 -1
  309. package/__internal__/cjs-src/components/SelectComponents/SelectItem/SelectItem.js +2 -2
  310. package/__internal__/cjs-src/components/SelectComponentsDeprecated/SelectItem/SelectItem.js +2 -2
  311. package/__internal__/cjs-src/components/SnackBar/SnackBar.css +6 -0
  312. package/__internal__/cjs-src/components/Steps/StepsStep/StepsStep.js +2 -2
  313. package/__internal__/cjs-src/components/Table/Cell/TableCell.css +9 -2
  314. package/__internal__/cjs-src/components/Table/Cell/TableCell.js +1 -0
  315. package/__internal__/cjs-src/components/Table/ChoiceGroupFilter/TableChoiceGroupFilter.js +1 -1
  316. package/__internal__/cjs-src/components/Table/Header/TableHeader.js +8 -1
  317. package/__internal__/cjs-src/components/Table/Table.d.ts +7 -1
  318. package/__internal__/cjs-src/components/Table/Table.js +12 -12
  319. package/__internal__/cjs-src/components/Table/helpers.d.ts +4 -0
  320. package/__internal__/cjs-src/components/Table/helpers.js +4 -1
  321. package/__internal__/cjs-src/components/Tabs/Tab/TabsTab.js +2 -2
  322. package/__internal__/cjs-src/components/TagBase/TagBase.js +3 -3
  323. package/__internal__/cjs-src/components/TextField/TextField.js +14 -8
  324. package/__internal__/cjs-src/components/TextField/helpers.d.ts +2 -3
  325. package/__internal__/cjs-src/components/Theme/_color/Theme_color_gpnDark.css +3 -2
  326. package/__internal__/cjs-src/components/Theme/_color/Theme_color_gpnDefault.css +4 -2
  327. package/__internal__/cjs-src/components/Theme/_color/Theme_color_gpnDisplay.css +4 -2
  328. package/__internal__/cjs-src/components/ThemeToggler/ThemeToggler.js +4 -4
  329. package/__internal__/cjs-src/components/User/User.js +6 -6
  330. package/__internal__/cjs-src/hooks/useSelect/useSelect.js +3 -6
  331. package/__internal__/cjs-src/mixs/MixSpace/MixSpace.css +400 -0
  332. package/__internal__/cjs-src/mixs/MixSpace/MixSpace.d.ts +21 -0
  333. package/__internal__/cjs-src/mixs/MixSpace/MixSpace.js +19 -0
  334. package/__internal__/cjs-src/utils/getByMap.d.ts +1 -0
  335. package/__internal__/cjs-src/utils/getByMap.js +10 -0
  336. package/__internal__/src/components/Avatar/Avatar.css +15 -12
  337. package/__internal__/src/components/Avatar/Avatar.d.ts +1 -1
  338. package/__internal__/src/components/Avatar/Avatar.js +1 -1
  339. package/__internal__/src/components/Breadcrumbs/Breadcrumbs.js +2 -2
  340. package/__internal__/src/components/Button/Button.js +8 -6
  341. package/__internal__/src/components/Calendar/Calendar.js +2 -2
  342. package/__internal__/src/components/ChoiceGroup/ChoiceGroup.d.ts +13 -24
  343. package/__internal__/src/components/ChoiceGroup/ChoiceGroup.js +2 -2
  344. package/__internal__/src/components/Collapse/Collapse.js +2 -2
  345. package/__internal__/src/components/ContextMenu/ContextMenuGroupHeader/ContextMenuGroupHeader.js +2 -2
  346. package/__internal__/src/components/ContextMenu/ContextMenuLevel/ContextMenuLevel.js +16 -3
  347. package/__internal__/src/components/ContextMenu/helpers.d.ts +7 -2
  348. package/__internal__/src/components/DatePickerCanary/DatePickerFieldTypeDateRange/DatePickerFieldTypeDateRange.js +3 -3
  349. package/__internal__/src/components/DateTimeCanary/DateTimeCanary.js +2 -2
  350. package/__internal__/src/components/EventInterceptor/eventInterceptorMap.d.ts +2 -2
  351. package/__internal__/src/components/EventInterceptor/propsHandlers/useButtonEventHandler.js +2 -1
  352. package/__internal__/src/components/EventInterceptor/propsHandlers/useCheckboxEventsHandler.js +2 -1
  353. package/__internal__/src/components/EventInterceptor/propsHandlers/useSelectEventsHandler.js +2 -1
  354. package/__internal__/src/components/EventInterceptor/propsHandlers/useSnackBarEventsHandler.js +2 -1
  355. package/__internal__/src/components/EventInterceptor/propsHandlers/useTextFieldEventsHandler.d.ts +2 -2
  356. package/__internal__/src/components/EventInterceptor/propsHandlers/useTextFieldEventsHandler.js +2 -1
  357. package/__internal__/src/components/ProgressSpin/ProgressSpin.js +3 -3
  358. package/__internal__/src/components/ProgressStepBarCanary/ProgressStepBarLine/ProgressStepBarLine.js +2 -2
  359. package/__internal__/src/components/Select/Select.js +1 -1
  360. package/__internal__/src/components/SelectComponents/SelectItem/SelectItem.js +2 -2
  361. package/__internal__/src/components/SelectComponentsDeprecated/SelectItem/SelectItem.js +2 -2
  362. package/__internal__/src/components/SnackBar/SnackBar.css +6 -0
  363. package/__internal__/src/components/Steps/StepsStep/StepsStep.js +2 -2
  364. package/__internal__/src/components/Table/Cell/TableCell.css +9 -2
  365. package/__internal__/src/components/Table/Cell/TableCell.js +1 -0
  366. package/__internal__/src/components/Table/ChoiceGroupFilter/TableChoiceGroupFilter.js +1 -1
  367. package/__internal__/src/components/Table/Header/TableHeader.js +8 -1
  368. package/__internal__/src/components/Table/Table.d.ts +7 -1
  369. package/__internal__/src/components/Table/Table.js +12 -12
  370. package/__internal__/src/components/Table/helpers.d.ts +4 -0
  371. package/__internal__/src/components/Table/helpers.js +4 -1
  372. package/__internal__/src/components/Tabs/Tab/TabsTab.js +2 -2
  373. package/__internal__/src/components/TagBase/TagBase.js +3 -3
  374. package/__internal__/src/components/TextField/TextField.js +14 -8
  375. package/__internal__/src/components/TextField/helpers.d.ts +2 -3
  376. package/__internal__/src/components/Theme/_color/Theme_color_gpnDark.css +3 -2
  377. package/__internal__/src/components/Theme/_color/Theme_color_gpnDefault.css +4 -2
  378. package/__internal__/src/components/Theme/_color/Theme_color_gpnDisplay.css +4 -2
  379. package/__internal__/src/components/ThemeToggler/ThemeToggler.js +4 -4
  380. package/__internal__/src/components/User/User.js +6 -6
  381. package/__internal__/src/hooks/useSelect/useSelect.js +3 -6
  382. package/__internal__/src/mixs/MixSpace/MixSpace.css +400 -0
  383. package/__internal__/src/mixs/MixSpace/MixSpace.d.ts +21 -0
  384. package/__internal__/src/mixs/MixSpace/MixSpace.js +16 -0
  385. package/__internal__/src/utils/getByMap.d.ts +1 -0
  386. package/__internal__/src/utils/{getSizeByMap.js → getByMap.js} +1 -1
  387. package/createIcon/package.json +1 -1
  388. package/createResponsesImage/package.json +1 -1
  389. package/package.json +4 -3
  390. package/useChoiceGroup/package.json +1 -1
  391. package/useChoiceGroupIndexed/package.json +1 -1
  392. package/useClickOutside/package.json +1 -1
  393. package/useComponentSize/package.json +1 -1
  394. package/useDebounce/package.json +1 -1
  395. package/useFlag/package.json +1 -1
  396. package/useForkRef/package.json +1 -1
  397. package/useGlobalKeys/package.json +1 -1
  398. package/useKeys/package.json +1 -1
  399. package/useMutableRef/package.json +1 -1
  400. package/usePrevious/package.json +1 -1
  401. package/useResizeObserved/package.json +1 -1
  402. package/useScrollPosition/package.json +1 -1
  403. package/useSelect/package.json +1 -1
  404. package/useThemeVars/package.json +1 -1
  405. package/useTimer/package.json +1 -1
  406. package/withTooltip/package.json +1 -1
  407. package/__internal__/cjs-src/utils/getSizeByMap.d.ts +0 -1
  408. package/__internal__/cjs-src/utils/getSizeByMap.js +0 -10
  409. package/__internal__/src/utils/getSizeByMap.d.ts +0 -1
@@ -69,11 +69,11 @@ export declare const eventInterceptorMap: {
69
69
  caption?: string | undefined;
70
70
  labelPosition?: "left" | "top" | undefined;
71
71
  focused?: boolean | undefined;
72
- } & {
72
+ } & Pick<import("react").HTMLAttributes<HTMLDivElement>, "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "hidden" | "lang" | "slot" | "spellCheck" | "style" | "title" | "translate" | "radioGroup" | "role" | "about" | "datatype" | "inlist" | "prefix" | "property" | "resource" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "color" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocusCapture" | "onBlurCapture" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClick" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture"> & {
73
73
  rows?: undefined;
74
74
  minRows?: undefined;
75
75
  maxRows?: undefined;
76
76
  } & {
77
77
  rightSide?: string | import("react").FC<import("../../utils/types/PropsWithHTMLAttributes").PropsWithHTMLAttributes<import("../../icons/Icon/Icon").Props, HTMLSpanElement>> | undefined;
78
- } & Pick<import("react").HTMLAttributes<HTMLDivElement>, "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "hidden" | "lang" | "slot" | "spellCheck" | "style" | "title" | "translate" | "radioGroup" | "role" | "about" | "datatype" | "inlist" | "prefix" | "property" | "resource" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "color" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocusCapture" | "onBlurCapture" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClick" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture"> & import("react").RefAttributes<HTMLElement>>(props: P_2, handler: import("./EventInterceptor").EventInterceptorHandler, textFieldRef: import("react").RefObject<HTMLDivElement>) => P_2;
78
+ } & import("react").RefAttributes<HTMLElement>>(props: P_2, handler: import("./EventInterceptor").EventInterceptorHandler, textFieldRef: import("react").RefObject<HTMLDivElement>) => P_2;
79
79
  };
@@ -18,7 +18,8 @@ exports.useButtonEventHandler = function (props, handler, ref) {
18
18
  options: {
19
19
  text: e.currentTarget.innerText,
20
20
  pageURL: e.currentTarget.baseURI,
21
- DOMRef: ref.current
21
+ DOMRef: ref.current,
22
+ props: newProps
22
23
  }
23
24
  };
24
25
  handler(value);
@@ -19,7 +19,8 @@ exports.useCheckboxEventsHandler = function (props, handler, checkboxRef) {
19
19
  label: newProps.label,
20
20
  checked: checked,
21
21
  pageURL: window.location.href,
22
- DOMRef: checkboxRef.current
22
+ DOMRef: checkboxRef.current,
23
+ props: newProps
23
24
  }
24
25
  };
25
26
  handler(value);
@@ -19,7 +19,8 @@ exports.useSelectEventsHandler = function (props, handler, controlRef) {
19
19
  : helpers_1.defaultGetItemLabel(newProps.value),
20
20
  value: newProps.value,
21
21
  pageURL: window.location.href,
22
- DOMRef: controlRef.current
22
+ DOMRef: controlRef.current,
23
+ props: newProps
23
24
  }
24
25
  };
25
26
  handler(value);
@@ -14,7 +14,8 @@ exports.useSnackBarEventsHandler = function (props, handler) {
14
14
  options: {
15
15
  pageURL: window.location.href,
16
16
  DOMRef: document.getElementsByClassName(SnackBar_1.COMPONENT_NAME)[0],
17
- items: newProps.items
17
+ items: newProps.items,
18
+ props: newProps
18
19
  }
19
20
  };
20
21
  handler(value);
@@ -73,10 +73,10 @@ export declare const useTextFieldEventsHandler: <P extends {
73
73
  caption?: string | undefined;
74
74
  labelPosition?: "left" | "top" | undefined;
75
75
  focused?: boolean | undefined;
76
- } & {
76
+ } & Pick<React.HTMLAttributes<HTMLDivElement>, "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "hidden" | "lang" | "slot" | "spellCheck" | "style" | "title" | "translate" | "radioGroup" | "role" | "about" | "datatype" | "inlist" | "prefix" | "property" | "resource" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "color" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocusCapture" | "onBlurCapture" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClick" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture"> & {
77
77
  rows?: undefined;
78
78
  minRows?: undefined;
79
79
  maxRows?: undefined;
80
80
  } & {
81
81
  rightSide?: string | React.FC<import("../../../utils/types/PropsWithHTMLAttributes").PropsWithHTMLAttributes<import("../../../icons/Icon/Icon").Props, HTMLSpanElement>> | undefined;
82
- } & Pick<React.HTMLAttributes<HTMLDivElement>, "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "hidden" | "lang" | "slot" | "spellCheck" | "style" | "title" | "translate" | "radioGroup" | "role" | "about" | "datatype" | "inlist" | "prefix" | "property" | "resource" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "color" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocusCapture" | "onBlurCapture" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClick" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture"> & React.RefAttributes<HTMLElement>>(props: P, handler: EventInterceptorHandler, textFieldRef: React.RefObject<HTMLDivElement>) => P;
82
+ } & React.RefAttributes<HTMLElement>>(props: P, handler: EventInterceptorHandler, textFieldRef: React.RefObject<HTMLDivElement>) => P;
@@ -32,7 +32,8 @@ exports.useTextFieldEventsHandler = function (props, handler, textFieldRef) {
32
32
  placeholder: newProps.placeholder,
33
33
  pageURL: window.location.href,
34
34
  DOMRef: textFieldRef.current,
35
- value: newProps.value
35
+ value: newProps.value,
36
+ props: newProps
36
37
  }
37
38
  };
38
39
  if (inputChanged) {
@@ -5,7 +5,7 @@ var tslib_1 = require("tslib");
5
5
  require("./ProgressSpin.css");
6
6
  var react_1 = tslib_1.__importStar(require("react"));
7
7
  var bem_1 = require("../../utils/bem");
8
- var getSizeByMap_1 = require("../../utils/getSizeByMap");
8
+ var getByMap_1 = require("../../utils/getByMap");
9
9
  var type_guards_1 = require("../../utils/type-guards");
10
10
  exports.progressSpinPropSize = ['m', 's', 'l', 'xl', '2xl'];
11
11
  exports.progressSpinPropSizeDefault = exports.progressSpinPropSize[0];
@@ -25,8 +25,8 @@ var strokeWidthMap = {
25
25
  '2xl': 3.5
26
26
  };
27
27
  function getSvgParamsBySize(size) {
28
- var sizeOfPixels = getSizeByMap_1.getSizeByMap(sizeMap, size);
29
- var strokeWidth = getSizeByMap_1.getSizeByMap(strokeWidthMap, size);
28
+ var sizeOfPixels = getByMap_1.getByMap(sizeMap, size);
29
+ var strokeWidth = getByMap_1.getByMap(strokeWidthMap, size);
30
30
  var radius = (sizeOfPixels - strokeWidth) / 2;
31
31
  var strokeDasharray = radius * 2 * Math.PI;
32
32
  return [sizeOfPixels, strokeWidth, radius, strokeDasharray];
@@ -5,7 +5,7 @@ var tslib_1 = require("tslib");
5
5
  require("./ProgressStepBarLine.css");
6
6
  var react_1 = tslib_1.__importDefault(require("react"));
7
7
  var bem_1 = require("../../../utils/bem");
8
- var getSizeByMap_1 = require("../../../utils/getSizeByMap");
8
+ var getByMap_1 = require("../../../utils/getByMap");
9
9
  var cnProgressStepBarLine = bem_1.cn('ProgressStepBarLine');
10
10
  var mapVarsByStatus = {
11
11
  normal: 'var(--color-bg-normal)',
@@ -18,7 +18,7 @@ var backgroundGenerate = function (lines, direction) {
18
18
  var length = lines.length;
19
19
  for (var index = 0; index < length; index++) {
20
20
  var line = lines[index];
21
- var color = getSizeByMap_1.getSizeByMap(mapVarsByStatus, line.status || 'normal');
21
+ var color = getByMap_1.getByMap(mapVarsByStatus, line.status || 'normal');
22
22
  var from = lines[index - 1] ? lines[index - 1].size : 0;
23
23
  var to = line.size;
24
24
  background += color + " " + from + "px, " + color + " " + to + "px" + (index < length - 1 ? ', ' : ')');
@@ -52,7 +52,7 @@ function SelectRender(props, ref) {
52
52
  react_1["default"].createElement("div", { className: cnSelect_1.cnSelect('ControlValueContainer') },
53
53
  react_1["default"].createElement("input", tslib_1.__assign({}, getKeyProps(), { type: "button", name: name, onFocus: handleInputFocus, onBlur: handleInputBlur, "aria-label": ariaLabel, onClick: handleInputClick, ref: useForkRef_1.useForkRef([inputRef, inputRefProp]), className: cnSelect_1.cnSelect('FakeField'), readOnly: true })),
54
54
  value && renderValue({ item: value }),
55
- !value && placeholder && (react_1["default"].createElement("span", { className: cnSelect_1.cnSelect('Placeholder'), title: "placeholder" }, placeholder)))),
55
+ (typeof value === 'undefined' || value === null) && placeholder && (react_1["default"].createElement("span", { className: cnSelect_1.cnSelect('Placeholder'), title: "placeholder" }, placeholder)))),
56
56
  react_1["default"].createElement("span", { className: cnSelect_1.cnSelect('Indicators') },
57
57
  react_1["default"].createElement("button", { type: "button", className: cnSelect_1.cnSelect('IndicatorsDropdown'), tabIndex: -1, onClick: handleToggleDropdown },
58
58
  react_1["default"].createElement(IconSelect_1.IconSelect, { size: "xs", className: cnSelect_1.cnSelect('DropdownIndicatorIcon') })))),
@@ -5,7 +5,7 @@ var tslib_1 = require("tslib");
5
5
  require("./SelectItem.css");
6
6
  var react_1 = tslib_1.__importDefault(require("react"));
7
7
  var bem_1 = require("../../../utils/bem");
8
- var getSizeByMap_1 = require("../../../utils/getSizeByMap");
8
+ var getByMap_1 = require("../../../utils/getByMap");
9
9
  var Checkbox_1 = require("../../Checkbox/Checkbox");
10
10
  exports.cnSelectItem = bem_1.cn('SelectItem');
11
11
  var sizeCheckboxMap = {
@@ -17,6 +17,6 @@ var sizeCheckboxMap = {
17
17
  exports.SelectItem = function (props) {
18
18
  var className = props.className, label = props.label, active = props.active, hovered = props.hovered, multiple = props.multiple, size = props.size, indent = props.indent, disabled = props.disabled, otherProps = tslib_1.__rest(props, ["className", "label", "active", "hovered", "multiple", "size", "indent", "disabled"]);
19
19
  return (react_1["default"].createElement("div", tslib_1.__assign({}, otherProps, { className: exports.cnSelectItem({ active: active, hovered: hovered, multiple: multiple, size: size, indent: indent, disabled: disabled }, [className]), "aria-selected": active, "aria-disabled": disabled, role: "option" }),
20
- multiple && (react_1["default"].createElement(Checkbox_1.Checkbox, { className: exports.cnSelectItem('Checkbox'), checked: active, size: getSizeByMap_1.getSizeByMap(sizeCheckboxMap, size) })),
20
+ multiple && (react_1["default"].createElement(Checkbox_1.Checkbox, { className: exports.cnSelectItem('Checkbox'), checked: active, size: getByMap_1.getByMap(sizeCheckboxMap, size) })),
21
21
  label));
22
22
  };
@@ -5,7 +5,7 @@ var tslib_1 = require("tslib");
5
5
  require("./SelectItem.css");
6
6
  var react_1 = tslib_1.__importDefault(require("react"));
7
7
  var bem_1 = require("../../../utils/bem");
8
- var getSizeByMap_1 = require("../../../utils/getSizeByMap");
8
+ var getByMap_1 = require("../../../utils/getByMap");
9
9
  var Checkbox_1 = require("../../Checkbox/Checkbox");
10
10
  exports.cnSelectItem = bem_1.cn('SelectItemDeprecated');
11
11
  // в дальнейшем уберем обязательность onChange у Checkbox
@@ -20,6 +20,6 @@ var sizeCheckboxMap = {
20
20
  exports.SelectItem = function (props) {
21
21
  var className = props.className, label = props.label, active = props.active, hovered = props.hovered, multiple = props.multiple, size = props.size, indent = props.indent, otherProps = tslib_1.__rest(props, ["className", "label", "active", "hovered", "multiple", "size", "indent"]);
22
22
  return (react_1["default"].createElement("div", tslib_1.__assign({}, otherProps, { className: exports.cnSelectItem({ active: active, hovered: hovered, multiple: multiple, size: size, indent: indent }, [className]), "aria-selected": active, role: "option" }),
23
- multiple && (react_1["default"].createElement(Checkbox_1.Checkbox, { className: exports.cnSelectItem('Checkbox'), checked: active, onChange: emptyFunction, size: getSizeByMap_1.getSizeByMap(sizeCheckboxMap, size) })),
23
+ multiple && (react_1["default"].createElement(Checkbox_1.Checkbox, { className: exports.cnSelectItem('Checkbox'), checked: active, onChange: emptyFunction, size: getByMap_1.getByMap(sizeCheckboxMap, size) })),
24
24
  label));
25
25
  };
@@ -6,6 +6,12 @@
6
6
  -webkit-box-direction: reverse;
7
7
  -ms-flex-direction: column-reverse;
8
8
  flex-direction: column-reverse;
9
+ -webkit-box-sizing: border-box;
10
+ box-sizing: border-box;
11
+ width: 100%;
12
+ max-width: calc(400px + var(--space-xs) * 2);
13
+ padding-right: var(--space-xs);
14
+ padding-left: var(--space-xs);
9
15
  }
10
16
 
11
17
  .SnackBar-Item_animate_appear,
@@ -6,7 +6,7 @@ require("./StepsStep.css");
6
6
  var react_1 = tslib_1.__importDefault(require("react"));
7
7
  var IconCheck_1 = require("../../../icons/IconCheck/IconCheck");
8
8
  var bem_1 = require("../../../utils/bem");
9
- var getSizeByMap_1 = require("../../../utils/getSizeByMap");
9
+ var getByMap_1 = require("../../../utils/getByMap");
10
10
  exports.cnStepsStep = bem_1.cn('StepsStep');
11
11
  var sizeMap = {
12
12
  m: 'xs',
@@ -17,7 +17,7 @@ exports.StepsStep = react_1["default"].forwardRef(function (props, ref) {
17
17
  var clickHandler = function (e) {
18
18
  !active && !disabled && (onChange === null || onChange === void 0 ? void 0 : onChange(e));
19
19
  };
20
- var iconSize = getSizeByMap_1.getSizeByMap(sizeMap, size);
20
+ var iconSize = getByMap_1.getByMap(sizeMap, size);
21
21
  return (react_1["default"].createElement("button", { ref: ref, className: exports.cnStepsStep({ size: size, active: active, disabled: disabled, completed: completed, skipped: skipped }, [className]), type: "button", title: label, onClick: clickHandler },
22
22
  completed && react_1["default"].createElement(IconCheck_1.IconCheck, { className: exports.cnStepsStep('Icon'), size: iconSize }),
23
23
  label));
@@ -36,14 +36,21 @@
36
36
  }
37
37
 
38
38
  .TableCell_isSortable,
39
- .TableCell_isFilterable {
39
+ .TableCell_isFilterable,
40
+ .TableCell_isControl {
40
41
  --buttons-wrapper-size: var(--space-xl);
41
42
  }
42
43
 
43
- .TableCell_isSortable.TableCell_isFilterable {
44
+ .TableCell_isSortable.TableCell_isFilterable,
45
+ .TableCell_isSortable.TableCell_isControl,
46
+ .TableCell_isFilterable.TableCell_isControl {
44
47
  --buttons-wrapper-size: var(--space-4xl);
45
48
  }
46
49
 
50
+ .TableCell_isSortable.TableCell_isFilterable.TableCell_isControl {
51
+ --buttons-wrapper-size: var(--space-5xl);
52
+ }
53
+
47
54
  .TableCell_stickyOnTop,
48
55
  .TableCell_stickyOnLeft {
49
56
  position: -webkit-sticky;
@@ -20,6 +20,7 @@ var getCellClasses = function (props) {
20
20
  stickyOnTop: (props.type === 'header' && props.isSticky) || props.type === 'resizer',
21
21
  stickyOnLeft: column.isSticky,
22
22
  isFilterable: column.filterable,
23
+ isControl: Boolean(column.control),
23
24
  withoutBorder: props.type === 'resizer',
24
25
  isClickable: 'isClickable' in props && props.isClickable,
25
26
  isBorderTop: 'isBorderTop' in props && props.isBorderTop,
@@ -21,5 +21,5 @@ exports.TableChoiceGroupFilter = function (_a) {
21
21
  setValue(value);
22
22
  };
23
23
  return (react_1["default"].createElement(TableFilterContainer_1.TableFilterContainer, { title: title, onCancel: onCancel, onConfirm: confirmHandler },
24
- react_1["default"].createElement(ChoiceGroup_1.ChoiceGroup, { size: "s", items: choiceGroupItems, getLabel: function (item) { return item.name; }, name: "choiceGroup", onChange: onChange, value: (value === null || value === void 0 ? void 0 : value.value) ? value : defaultValue, multiple: false, className: cnChoiceGroupFilter() })));
24
+ react_1["default"].createElement(ChoiceGroup_1.ChoiceGroup, { size: "s", items: choiceGroupItems, getLabel: function (item) { return item.name; }, name: "choiceGroup", onChange: onChange, value: (value === null || value === void 0 ? void 0 : value.value) ? value : defaultValue, className: cnChoiceGroupFilter() })));
25
25
  };
@@ -61,6 +61,12 @@ exports.TableHeader = function (_a) {
61
61
  };
62
62
  return column.filterable ? (react_1["default"].createElement(TableFilterTooltip_1.TableFilterTooltip, { field: column.accessor, isOpened: visibleFilter === column.accessor, options: filtering_1.getOptionsForFilters(filters, column.accessor), values: selectedFilters[column.accessor].selected || [], onChange: handleTooltipSave, onToggle: handleFilterTogglerClick(column.accessor), className: cnTableHeader('Icon', { type: 'filter' }) }, FilterComponent && (react_1["default"].createElement(FilterComponent, tslib_1.__assign({}, filterComponentProps, { onConfirm: handleFilterSave, filterValue: (_d = selectedFilters[column.accessor]) === null || _d === void 0 ? void 0 : _d.value, onCancel: handleFilterTogglerClick(column.accessor) }))))) : null;
63
63
  };
64
+ var control = function (column) {
65
+ if (column.control) {
66
+ return react_1["default"].createElement("div", { className: cnTableHeader('Сontrol') }, column.control({ column: column }));
67
+ }
68
+ return null;
69
+ };
64
70
  return (react_1["default"].createElement(react_1["default"].Fragment, null,
65
71
  react_1["default"].createElement("div", { className: cnTableHeader('Row', { withVerticalBorder: borderBetweenColumns }) }, headersWithMetaData.map(function (column, columnIdx) {
66
72
  var _a, _b, _c;
@@ -94,7 +100,8 @@ exports.TableHeader = function (_a) {
94
100
  verticalAlign: headerVerticalAlign
95
101
  }) },
96
102
  column.sortable && (react_1["default"].createElement(Button_1.Button, { size: "xs", iconSize: "s", view: "clear", onlyIcon: true, onClick: function () { return handleSortClick(column); }, iconLeft: getSortIcon(column), className: cnTableHeader('Icon', { type: 'sort' }) })),
97
- getFilterPopover(column))));
103
+ getFilterPopover(column),
104
+ control(column))));
98
105
  })),
99
106
  react_1["default"].createElement("div", { className: cnTableHeader('ShadowWrapper'), style: tableHeaderStyle },
100
107
  react_1["default"].createElement("div", { className: cnTableHeader('Shadow', { show: showHorizontalCellShadow && isStickyHeader }) }))));
@@ -3,7 +3,7 @@ import React from 'react';
3
3
  import { HorizontalAlign, VerticalAlign } from './Cell/TableCell';
4
4
  import { GetTagLabel } from './SelectedOptionsList/TableSelectedOptionsList';
5
5
  import { Filters, onSortBy, SelectedFilters } from './filtering';
6
- import { OrderType, Position } from './helpers';
6
+ import { Header, OrderType, Position } from './helpers';
7
7
  export { TableTextFilter } from './TextFilter/TableTextFilter';
8
8
  export { TableFilterContainer } from './FilterContainer/TableFilterContainer';
9
9
  export { TableNumberFilter } from './NumberFilter/TableNumberFilter';
@@ -69,6 +69,9 @@ declare type GroupColumnAddition<T extends TableRow> = {
69
69
  } & {
70
70
  [K in keyof ColumnBase<T>]?: never;
71
71
  };
72
+ export interface TableControl<T extends TableRow> {
73
+ column: Header<T> & ColumnMetaData;
74
+ }
72
75
  export declare type TableColumn<T extends TableRow> = {
73
76
  title: React.ReactNode;
74
77
  align?: HorizontalAlign;
@@ -76,6 +79,8 @@ export declare type TableColumn<T extends TableRow> = {
76
79
  width?: ColumnWidth;
77
80
  mergeCells?: boolean;
78
81
  position?: Position;
82
+ hidden?: boolean;
83
+ control?: ({ column }: TableControl<T>) => React.ReactNode;
79
84
  } & (GroupColumnAddition<T> | SingleColumnAddition<T>);
80
85
  export declare type TableProps<T extends TableRow> = {
81
86
  columns: TableColumn<T>[];
@@ -85,6 +90,7 @@ export declare type TableProps<T extends TableRow> = {
85
90
  size?: Size;
86
91
  stickyHeader?: boolean;
87
92
  stickyColumns?: number;
93
+ minColumnWidth?: number;
88
94
  isResizable?: boolean;
89
95
  activeRow?: ActiveRow;
90
96
  verticalAlign?: VerticalAlign;
@@ -59,26 +59,26 @@ var sortingData = function (rows, sorting, onSortBy) {
59
59
  var defaultEmptyRowsPlaceholder = (react_1["default"].createElement(Text_1.Text, { as: "span", view: "primary", size: "s", lineHeight: "s" }, "\u041D\u0435\u0442 \u0434\u0430\u043D\u043D\u044B\u0445"));
60
60
  var InternalTable = function (props, ref) {
61
61
  var _a, _b, _c, _d;
62
- var columns = props.columns, rows = props.rows, _e = props.size, size = _e === void 0 ? 'l' : _e, rawFilters = props.filters, _f = props.isResizable, isResizable = _f === void 0 ? false : _f, _g = props.stickyHeader, stickyHeader = _g === void 0 ? false : _g, _h = props.stickyColumns, stickyColumns = _h === void 0 ? 0 : _h, activeRow = props.activeRow, _j = props.verticalAlign, verticalAlign = _j === void 0 ? 'top' : _j, _k = props.headerVerticalAlign, headerVerticalAlign = _k === void 0 ? 'center' : _k, zebraStriped = props.zebraStriped, _l = props.borderBetweenRows, borderBetweenRows = _l === void 0 ? false : _l, _m = props.borderBetweenColumns, borderBetweenColumns = _m === void 0 ? false : _m, _o = props.emptyRowsPlaceholder, emptyRowsPlaceholder = _o === void 0 ? defaultEmptyRowsPlaceholder : _o, className = props.className, onRowHover = props.onRowHover, onRowClick = props.onRowClick, onRowCreate = props.onRowCreate, _p = props.rowCreateText, rowCreateText = _p === void 0 ? '+ Добавить строку' : _p, lazyLoad = props.lazyLoad, onSortBy = props.onSortBy, onFiltersUpdated = props.onFiltersUpdated, getTagLabel = props.getTagLabel, _q = props.isExpandedRowsByDefault, isExpandedRowsByDefault = _q === void 0 ? false : _q;
63
- var _r = helpers_1.useHeaderData(columns), headers = _r.headers, flattenedHeaders = _r.flattenedHeaders, lowHeaders = _r.lowHeaders, headerRowsRefs = _r.headerRowsRefs, headerRowsHeights = _r.headerRowsHeights, resizerTopOffsets = _r.resizerTopOffsets;
62
+ var columns = props.columns, rows = props.rows, _e = props.size, size = _e === void 0 ? 'l' : _e, rawFilters = props.filters, _f = props.isResizable, isResizable = _f === void 0 ? false : _f, _g = props.stickyHeader, stickyHeader = _g === void 0 ? false : _g, _h = props.stickyColumns, stickyColumns = _h === void 0 ? 0 : _h, _j = props.minColumnWidth, minColumnWidth = _j === void 0 ? 150 : _j, activeRow = props.activeRow, _k = props.verticalAlign, verticalAlign = _k === void 0 ? 'top' : _k, _l = props.headerVerticalAlign, headerVerticalAlign = _l === void 0 ? 'center' : _l, zebraStriped = props.zebraStriped, _m = props.borderBetweenRows, borderBetweenRows = _m === void 0 ? false : _m, _o = props.borderBetweenColumns, borderBetweenColumns = _o === void 0 ? false : _o, _p = props.emptyRowsPlaceholder, emptyRowsPlaceholder = _p === void 0 ? defaultEmptyRowsPlaceholder : _p, className = props.className, onRowHover = props.onRowHover, onRowClick = props.onRowClick, onRowCreate = props.onRowCreate, _q = props.rowCreateText, rowCreateText = _q === void 0 ? '+ Добавить строку' : _q, lazyLoad = props.lazyLoad, onSortBy = props.onSortBy, onFiltersUpdated = props.onFiltersUpdated, getTagLabel = props.getTagLabel, _r = props.isExpandedRowsByDefault, isExpandedRowsByDefault = _r === void 0 ? false : _r;
63
+ var _s = helpers_1.useHeaderData(columns), headers = _s.headers, flattenedHeaders = _s.flattenedHeaders, lowHeaders = _s.lowHeaders, headerRowsRefs = _s.headerRowsRefs, headerRowsHeights = _s.headerRowsHeights, resizerTopOffsets = _s.resizerTopOffsets;
64
64
  var stickyColumnsGrid = ((_a = headers[0][stickyColumns - 1]) === null || _a === void 0 ? void 0 : _a.position.gridIndex) +
65
65
  (((_b = headers[0][stickyColumns - 1]) === null || _b === void 0 ? void 0 : _b.position.colSpan) || 1);
66
66
  var getColumnsWidth = function () { return lowHeaders.map(function (column) { return column.width; }); };
67
- var _s = tslib_1.__read(react_1["default"].useState(getColumnsWidth()), 2), resizedColumnWidths = _s[0], setResizedColumnWidths = _s[1];
67
+ var _t = tslib_1.__read(react_1["default"].useState(getColumnsWidth()), 2), resizedColumnWidths = _t[0], setResizedColumnWidths = _t[1];
68
68
  var filters = react_1["default"].useMemo(function () {
69
69
  return rawFilters && rawFilters.filter(function (filter) { return filter.id && filter.field; });
70
70
  }, [rawFilters]);
71
71
  react_1["default"].useEffect(function () {
72
72
  setResizedColumnWidths(getColumnsWidth());
73
73
  }, [lowHeaders.length]);
74
- var _t = tslib_1.__read(react_1["default"].useState([]), 2), initialColumnWidths = _t[0], setInitialColumnWidths = _t[1];
75
- var _u = tslib_1.__read(react_1["default"].useState(null), 2), sorting = _u[0], setSorting = _u[1];
76
- var _v = tslib_1.__read(react_1["default"].useState(null), 2), visibleFilter = _v[0], setVisibleFilter = _v[1];
77
- var _w = tslib_1.__read(react_1["default"].useState({ top: 0, left: 0 }), 2), tableScroll = _w[0], setTableScroll = _w[1];
74
+ var _u = tslib_1.__read(react_1["default"].useState([]), 2), initialColumnWidths = _u[0], setInitialColumnWidths = _u[1];
75
+ var _v = tslib_1.__read(react_1["default"].useState(null), 2), sorting = _v[0], setSorting = _v[1];
76
+ var _w = tslib_1.__read(react_1["default"].useState(null), 2), visibleFilter = _w[0], setVisibleFilter = _w[1];
77
+ var _x = tslib_1.__read(react_1["default"].useState({ top: 0, left: 0 }), 2), tableScroll = _x[0], setTableScroll = _x[1];
78
78
  var tableRef = react_1["default"].useRef(null);
79
79
  var columnsRefs = react_1["default"].useRef({});
80
- var _x = filtering_1.useSelectedFilters(filters, onFiltersUpdated), selectedFilters = _x.selectedFilters, updateSelectedFilters = _x.updateSelectedFilters, removeOneSelectedFilter = _x.removeOneSelectedFilter, removeAllSelectedFilters = _x.removeAllSelectedFilters;
81
- var _y = tslib_1.__read(react_1["default"].useState([]), 2), expandedRowIds = _y[0], setExpandedRowIds = _y[1];
80
+ var _y = filtering_1.useSelectedFilters(filters, onFiltersUpdated), selectedFilters = _y.selectedFilters, updateSelectedFilters = _y.updateSelectedFilters, removeOneSelectedFilter = _y.removeOneSelectedFilter, removeAllSelectedFilters = _y.removeAllSelectedFilters;
81
+ var _z = tslib_1.__read(react_1["default"].useState([]), 2), expandedRowIds = _z[0], setExpandedRowIds = _z[1];
82
82
  // установка сортировки по умолчанию
83
83
  react_1["default"].useEffect(function () {
84
84
  var sortingColumn = columns.find(function (col) { return type_guards_1.isString(col.order) && Object.prototype.hasOwnProperty.call(helpers_1.Order, col.order); });
@@ -184,7 +184,7 @@ var InternalTable = function (props, ref) {
184
184
  return onRowCreate && onRowCreate({ e: e, id: id, index: index });
185
185
  }; };
186
186
  var handleColumnResize = function (idx, delta) {
187
- var columnMinWidth = Math.min(150, initialColumnWidths[idx]);
187
+ var columnMinWidth = Math.min(minColumnWidth, initialColumnWidths[idx]);
188
188
  var prevColumnWidth = resizedColumnWidths[idx] || initialColumnWidths[idx];
189
189
  var newColumnWidth = Math.max(columnMinWidth, prevColumnWidth + delta);
190
190
  updateColumnWidth(idx, newColumnWidth);
@@ -234,8 +234,8 @@ var InternalTable = function (props, ref) {
234
234
  selectedFilters: selectedFilters
235
235
  })
236
236
  : sortedTableData;
237
- var _z = lazyLoad || {}, _0 = _z.maxVisibleRows, maxVisibleRows = _0 === void 0 ? 210 : _0, _1 = _z.scrollableEl, scrollableEl = _1 === void 0 ? tableRef.current : _1;
238
- var _2 = helpers_1.useLazyLoadData(maxVisibleRows, scrollableEl, !!lazyLoad), getSlicedRows = _2.getSlicedRows, setBoundaryRef = _2.setBoundaryRef;
237
+ var _0 = lazyLoad || {}, _1 = _0.maxVisibleRows, maxVisibleRows = _1 === void 0 ? 210 : _1, _2 = _0.scrollableEl, scrollableEl = _2 === void 0 ? tableRef.current : _2;
238
+ var _3 = helpers_1.useLazyLoadData(maxVisibleRows, scrollableEl, !!lazyLoad), getSlicedRows = _3.getSlicedRows, setBoundaryRef = _3.setBoundaryRef;
239
239
  var flatRowsData = helpers_1.transformRows(filteredData, expandedRowIds, isExpandedRowsByDefault);
240
240
  var rowsData = getSlicedRows(flatRowsData);
241
241
  var tableStyle = {
@@ -44,6 +44,8 @@ export declare const transformColumns: <T extends TableRow>(columns: TableColumn
44
44
  width?: number | undefined;
45
45
  mergeCells?: boolean | undefined;
46
46
  position?: Position | undefined;
47
+ hidden?: boolean | undefined;
48
+ control?: (({ column }: import("./Table").TableControl<T>) => React.ReactNode) | undefined;
47
49
  } & {
48
50
  columns: TableColumn<T>[];
49
51
  } & { [K_1 in keyof import("./Table").ValueOf<{ [K in keyof T]: {
@@ -63,6 +65,8 @@ export declare const transformColumns: <T extends TableRow>(columns: TableColumn
63
65
  width?: number | undefined;
64
66
  mergeCells?: boolean | undefined;
65
67
  position?: Position | undefined;
68
+ hidden?: boolean | undefined;
69
+ control?: (({ column }: import("./Table").TableControl<T>) => React.ReactNode) | undefined;
66
70
  } & import("./Table").ValueOf<{ [K in keyof T]: {
67
71
  accessor: K extends string ? K : never;
68
72
  sortable?: boolean | undefined;
@@ -135,7 +135,10 @@ exports.useHeaderData = function (columns) {
135
135
  var headerColumnsHeights = Object.values(headerRowsRefs.current)
136
136
  .filter(type_guards_1.isNotNil)
137
137
  .map(function (ref) { return ref.getBoundingClientRect().height; });
138
- var flattenedHeaders = headers.flat().map(function (column, index) { return (tslib_1.__assign(tslib_1.__assign({}, column), { position: tslib_1.__assign(tslib_1.__assign({}, column.position), { smallTextSize: headers.length > 1 && column.position.level === headers.length - 1, height: headerColumnsHeights[index] || 0 }) })); });
138
+ var flattenedHeaders = headers
139
+ .flat()
140
+ .filter(function (column) { return !column.hidden; })
141
+ .map(function (column, index) { return (tslib_1.__assign(tslib_1.__assign({}, column), { position: tslib_1.__assign(tslib_1.__assign({}, column.position), { smallTextSize: headers.length > 1 && column.position.level === headers.length - 1, height: headerColumnsHeights[index] || 0 }) })); });
139
142
  var headerRowsHeights = headers.map(function (arr, index) {
140
143
  return Math.min.apply(null, flattenedHeaders
141
144
  .filter(function (col) { return col.position.level === index; })
@@ -6,7 +6,7 @@ require("./TabsTab.css");
6
6
  var react_1 = tslib_1.__importStar(require("react"));
7
7
  var MixFocus_1 = require("../../../mixs/MixFocus/MixFocus");
8
8
  var bem_1 = require("../../../utils/bem");
9
- var getSizeByMap_1 = require("../../../utils/getSizeByMap");
9
+ var getByMap_1 = require("../../../utils/getByMap");
10
10
  exports.cnTabsTab = bem_1.cn('TabsTab');
11
11
  var sizeMap = {
12
12
  s: 'xs',
@@ -14,7 +14,7 @@ var sizeMap = {
14
14
  };
15
15
  exports.TabsTab = react_1.forwardRef(function (props, ref) {
16
16
  var label = props.label, onChange = props.onChange, checked = props.checked, size = props.size, onlyIcon = props.onlyIcon, Icon = props.icon, iconSizeProp = props.iconSize, className = props.className;
17
- var iconSize = getSizeByMap_1.getSizeByMap(sizeMap, size, iconSizeProp);
17
+ var iconSize = getByMap_1.getByMap(sizeMap, size, iconSizeProp);
18
18
  return (react_1["default"].createElement("button", { className: exports.cnTabsTab({ size: size, checked: checked, onlyIcon: onlyIcon }, [MixFocus_1.cnMixFocus({ before: true }), className]), onClick: checked ? undefined : onChange, ref: ref, role: "tab", type: "button", title: onlyIcon ? label : undefined },
19
19
  Icon && react_1["default"].createElement(Icon, { className: exports.cnTabsTab('Icon'), size: iconSize }),
20
20
  !onlyIcon && label));
@@ -6,7 +6,7 @@ require("./TagBase.css");
6
6
  var react_1 = tslib_1.__importDefault(require("react"));
7
7
  var IconClose_1 = require("../../icons/IconClose/IconClose");
8
8
  var bem_1 = require("../../utils/bem");
9
- var getSizeByMap_1 = require("../../utils/getSizeByMap");
9
+ var getByMap_1 = require("../../utils/getByMap");
10
10
  var PropsWithAsAttributes_1 = require("../../utils/types/PropsWithAsAttributes");
11
11
  exports.tagBasePropSize = ['m', 'xs', 's', 'l'];
12
12
  exports.tagBasePropSizeDefault = exports.tagBasePropSize[0];
@@ -27,8 +27,8 @@ exports.TagBase = PropsWithAsAttributes_1.forwardRefWithAs(function (props, ref)
27
27
  var Tag = as;
28
28
  var withCancel = typeof onCancel === 'function';
29
29
  var withIcon = !!Icon;
30
- var IconCloseSize = getSizeByMap_1.getSizeByMap(sizeMap, size);
31
- var IconSize = getSizeByMap_1.getSizeByMap(sizeMap, size, iconSize);
30
+ var IconCloseSize = getByMap_1.getByMap(sizeMap, size);
31
+ var IconSize = getByMap_1.getByMap(sizeMap, size, iconSize);
32
32
  return (react_1["default"].createElement(Tag, tslib_1.__assign({}, otherProps, { className: exports.cnTagBase({
33
33
  size: size,
34
34
  view: view,
@@ -10,7 +10,7 @@ var IconClose_1 = require("../../icons/IconClose/IconClose");
10
10
  var IconSelect_1 = require("../../icons/IconSelect/IconSelect");
11
11
  var IconSelectOpen_1 = require("../../icons/IconSelectOpen/IconSelectOpen");
12
12
  var bem_1 = require("../../utils/bem");
13
- var getSizeByMap_1 = require("../../utils/getSizeByMap");
13
+ var getByMap_1 = require("../../utils/getByMap");
14
14
  var usePropsHandler_1 = require("../EventInterceptor/usePropsHandler");
15
15
  var FieldCaption_1 = require("../FieldCaption/FieldCaption");
16
16
  var FieldLabel_1 = require("../FieldLabel/FieldLabel");
@@ -20,14 +20,14 @@ exports.cnTextField = bem_1.cn(exports.COMPONENT_NAME);
20
20
  function TextFieldRender(props, ref) {
21
21
  var textFieldRef = react_1["default"].useRef(null);
22
22
  var inputRef = react_1["default"].useRef(null);
23
- var _a = usePropsHandler_1.usePropsHandler(exports.COMPONENT_NAME, props, textFieldRef), className = _a.className, _b = _a.type, type = _b === void 0 ? 'text' : _b, value = _a.value, onChange = _a.onChange, id = _a.id, name = _a.name, rows = _a.rows, cols = _a.cols, minRows = _a.minRows, maxRows = _a.maxRows, inputRefProp = _a.inputRef, maxLength = _a.maxLength, disabled = _a.disabled, _c = _a.size, size = _c === void 0 ? helpers_1.textFieldPropSizeDefault : _c, _d = _a.view, view = _d === void 0 ? helpers_1.textFieldPropViewDefault : _d, _e = _a.form, form = _e === void 0 ? helpers_1.textFieldPropFormDefault : _e, state = _a.state, status = _a.status, _f = _a.width, width = _f === void 0 ? helpers_1.textFieldPropWidthDefault : _f, onBlur = _a.onBlur, onFocus = _a.onFocus, _g = _a.autoFocus, autoFocus = _g === void 0 ? false : _g, placeholder = _a.placeholder, leftSide = _a.leftSide, rightSide = _a.rightSide, autoComplete = _a.autoComplete, withClearButton = _a.withClearButton, max = _a.max, min = _a.min, readOnly = _a.readOnly, required = _a.required, _h = _a.step, step = _h === void 0 ? 1 : _h, tabIndex = _a.tabIndex, ariaLabel = _a.ariaLabel, label = _a.label, _j = _a.labelPosition, labelPosition = _j === void 0 ? 'top' : _j, caption = _a.caption, iconSizeProp = _a.iconSize, focused = _a.focused, otherProps = tslib_1.__rest(_a, ["className", "type", "value", "onChange", "id", "name", "rows", "cols", "minRows", "maxRows", "inputRef", "maxLength", "disabled", "size", "view", "form", "state", "status", "width", "onBlur", "onFocus", "autoFocus", "placeholder", "leftSide", "rightSide", "autoComplete", "withClearButton", "max", "min", "readOnly", "required", "step", "tabIndex", "ariaLabel", "label", "labelPosition", "caption", "iconSize", "focused"]);
23
+ var _a = usePropsHandler_1.usePropsHandler(exports.COMPONENT_NAME, props, textFieldRef), className = _a.className, _b = _a.type, type = _b === void 0 ? 'text' : _b, value = _a.value, onChange = _a.onChange, id = _a.id, name = _a.name, rows = _a.rows, cols = _a.cols, minRows = _a.minRows, maxRows = _a.maxRows, inputRefProp = _a.inputRef, maxLength = _a.maxLength, disabled = _a.disabled, _c = _a.size, size = _c === void 0 ? helpers_1.textFieldPropSizeDefault : _c, _d = _a.view, view = _d === void 0 ? helpers_1.textFieldPropViewDefault : _d, _e = _a.form, form = _e === void 0 ? helpers_1.textFieldPropFormDefault : _e, state = _a.state, status = _a.status, _f = _a.width, width = _f === void 0 ? helpers_1.textFieldPropWidthDefault : _f, onBlur = _a.onBlur, onFocus = _a.onFocus, _g = _a.autoFocus, autoFocus = _g === void 0 ? false : _g, placeholder = _a.placeholder, leftSide = _a.leftSide, rightSide = _a.rightSide, autoComplete = _a.autoComplete, withClearButton = _a.withClearButton, max = _a.max, min = _a.min, readOnly = _a.readOnly, required = _a.required, _h = _a.step, step = _h === void 0 ? 1 : _h, tabIndex = _a.tabIndex, ariaLabel = _a.ariaLabel, label = _a.label, _j = _a.labelPosition, labelPosition = _j === void 0 ? 'top' : _j, caption = _a.caption, iconSizeProp = _a.iconSize, focused = _a.focused, onClick = _a.onClick, otherProps = tslib_1.__rest(_a, ["className", "type", "value", "onChange", "id", "name", "rows", "cols", "minRows", "maxRows", "inputRef", "maxLength", "disabled", "size", "view", "form", "state", "status", "width", "onBlur", "onFocus", "autoFocus", "placeholder", "leftSide", "rightSide", "autoComplete", "withClearButton", "max", "min", "readOnly", "required", "step", "tabIndex", "ariaLabel", "label", "labelPosition", "caption", "iconSize", "focused", "onClick"]);
24
24
  var _k = tslib_1.__read(react_1.useState(autoFocus), 2), focus = _k[0], setFocus = _k[1];
25
25
  var textarea = type === 'textarea';
26
26
  var LeftIcon = leftSide;
27
27
  var RightIcon = rightSide;
28
28
  var leftSideIsString = typeof leftSide === 'string';
29
29
  var rightSideIsString = typeof rightSide === 'string';
30
- var iconSize = getSizeByMap_1.getSizeByMap(helpers_1.sizeMap, size, iconSizeProp);
30
+ var iconSize = getByMap_1.getByMap(helpers_1.sizeMap, size, iconSizeProp);
31
31
  var handleChange = function (e) {
32
32
  var value = e.target.value;
33
33
  !disabled && (onChange === null || onChange === void 0 ? void 0 : onChange({ e: e, id: id, name: name, value: value || null }));
@@ -73,12 +73,10 @@ function TextFieldRender(props, ref) {
73
73
  ref: useForkRef_1.useForkRef([inputRef, inputRefProp])
74
74
  };
75
75
  var handleClear = function (e) {
76
- var _a;
77
76
  onChange === null || onChange === void 0 ? void 0 : onChange({
78
77
  e: e,
79
78
  value: ''
80
79
  });
81
- (_a = inputRef.current) === null || _a === void 0 ? void 0 : _a.focus();
82
80
  };
83
81
  var changeNumberValue = function (e, isIncrement) {
84
82
  var _a;
@@ -90,7 +88,7 @@ function TextFieldRender(props, ref) {
90
88
  onChange === null || onChange === void 0 ? void 0 : onChange({
91
89
  e: e,
92
90
  value: currentValue.toFixed(Number((_a =
93
- /* Необходимо для того чтобы избежать ситуации, когда по нажатию
91
+ /* Необходимо для того, чтобы избежать ситуации, когда по нажатию
94
92
  на кнопку прибавляется число с погрешностью.
95
93
  Здесь мы берем разрядность дробной части шага и ограничиваем
96
94
  результирующее число этой разрядностью */
@@ -99,7 +97,15 @@ function TextFieldRender(props, ref) {
99
97
  .split('.')[1]) === null || _a === void 0 ? void 0 : _a.length) || 0)
100
98
  });
101
99
  };
102
- return (react_1["default"].createElement("div", tslib_1.__assign({ className: exports.cnTextField({ labelPosition: labelPosition, size: size, view: view, width: width }, [className]) }, otherProps),
100
+ var rootProps = {
101
+ // для того чтобы любые клики во внутренним элементам фокусили инпут
102
+ onClick: function (e) {
103
+ var _a;
104
+ (_a = inputRef.current) === null || _a === void 0 ? void 0 : _a.focus();
105
+ onClick === null || onClick === void 0 ? void 0 : onClick(e);
106
+ }
107
+ };
108
+ return (react_1["default"].createElement("div", tslib_1.__assign({ className: exports.cnTextField({ labelPosition: labelPosition, size: size, view: view, width: width }, [className]), ref: useForkRef_1.useForkRef([ref, textFieldRef]) }, rootProps, otherProps),
103
109
  label && (react_1["default"].createElement(FieldLabel_1.FieldLabel, { required: required, className: exports.cnTextField('Label', { labelPosition: labelPosition }), size: size }, label)),
104
110
  react_1["default"].createElement("div", { className: exports.cnTextField('Body') },
105
111
  react_1["default"].createElement("div", { className: exports.cnTextField('InputContainer', {
@@ -110,7 +116,7 @@ function TextFieldRender(props, ref) {
110
116
  type: type,
111
117
  focus: focus || focused,
112
118
  withValue: !!value
113
- }), ref: useForkRef_1.useForkRef([ref, textFieldRef]) },
119
+ }) },
114
120
  LeftIcon && (react_1["default"].createElement("div", { className: exports.cnTextField('Side', {
115
121
  position: 'left',
116
122
  type: leftSideIsString ? 'string' : 'icon'