@consta/uikit 3.24.0 → 3.24.2

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 (382) 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/BreadcrumbsCanary/package.json +1 -1
  8. package/Button/package.json +1 -1
  9. package/CHANGELOG.md +20 -16
  10. package/Calendar/package.json +1 -1
  11. package/Card/package.json +1 -1
  12. package/Checkbox/package.json +1 -1
  13. package/CheckboxGroup/package.json +1 -1
  14. package/CheckboxGroupCanary/package.json +1 -1
  15. package/ChoiceGroup/package.json +1 -1
  16. package/ChoiceGroupCanary/package.json +1 -1
  17. package/Collapse/package.json +1 -1
  18. package/CollapseGroup/package.json +1 -1
  19. package/Combobox/package.json +1 -1
  20. package/ComboboxDeprecated/package.json +1 -1
  21. package/ContextMenu/package.json +1 -1
  22. package/ContextMenuCanary/package.json +1 -1
  23. package/DatePickerCanary/package.json +1 -1
  24. package/DateTimeCanary/package.json +1 -1
  25. package/DragNDropField/package.json +1 -1
  26. package/EventInterceptor/package.json +1 -1
  27. package/FieldCaption/package.json +1 -1
  28. package/FieldLabel/package.json +1 -1
  29. package/File/package.json +1 -1
  30. package/FileField/package.json +1 -1
  31. package/FileIcon/package.json +1 -1
  32. package/FileIconAvi/package.json +1 -1
  33. package/FileIconBmp/package.json +1 -1
  34. package/FileIconCsv/package.json +1 -1
  35. package/FileIconDoc/package.json +1 -1
  36. package/FileIconExe/package.json +1 -1
  37. package/FileIconGif/package.json +1 -1
  38. package/FileIconJpg/package.json +1 -1
  39. package/FileIconJson/package.json +1 -1
  40. package/FileIconLoading/package.json +1 -1
  41. package/FileIconMov/package.json +1 -1
  42. package/FileIconMp3/package.json +1 -1
  43. package/FileIconMp4/package.json +1 -1
  44. package/FileIconPdf/package.json +1 -1
  45. package/FileIconPng/package.json +1 -1
  46. package/FileIconPpt/package.json +1 -1
  47. package/FileIconRar/package.json +1 -1
  48. package/FileIconRtf/package.json +1 -1
  49. package/FileIconTiff/package.json +1 -1
  50. package/FileIconTxt/package.json +1 -1
  51. package/FileIconUndefined/package.json +1 -1
  52. package/FileIconWav/package.json +1 -1
  53. package/FileIconXls/package.json +1 -1
  54. package/FileIconZip/package.json +1 -1
  55. package/Grid/package.json +1 -1
  56. package/Header/package.json +1 -1
  57. package/Icon/package.json +1 -1
  58. package/IconAdd/package.json +1 -1
  59. package/IconAddToComparison/package.json +1 -1
  60. package/IconAlert/package.json +1 -1
  61. package/IconAlignBlocksLeft/package.json +1 -1
  62. package/IconAlignBlocksRight/package.json +1 -1
  63. package/IconAlignCenter/package.json +1 -1
  64. package/IconAlignJustify/package.json +1 -1
  65. package/IconAlignLeft/package.json +1 -1
  66. package/IconAlignRight/package.json +1 -1
  67. package/IconAllDone/package.json +1 -1
  68. package/IconArrowDown/package.json +1 -1
  69. package/IconArrowLeft/package.json +1 -1
  70. package/IconArrowRight/package.json +1 -1
  71. package/IconArrowUp/package.json +1 -1
  72. package/IconArtBrush/package.json +1 -1
  73. package/IconAttach/package.json +1 -1
  74. package/IconBackward/package.json +1 -1
  75. package/IconBag/package.json +1 -1
  76. package/IconBarrier/package.json +1 -1
  77. package/IconBento/package.json +1 -1
  78. package/IconBold/package.json +1 -1
  79. package/IconBook/package.json +1 -1
  80. package/IconBookmarkFilled/package.json +1 -1
  81. package/IconBookmarkStroked/package.json +1 -1
  82. package/IconCalculator/package.json +1 -1
  83. package/IconCalendar/package.json +1 -1
  84. package/IconCamera/package.json +1 -1
  85. package/IconCancel/package.json +1 -1
  86. package/IconCards/package.json +1 -1
  87. package/IconChat/package.json +1 -1
  88. package/IconCheck/package.json +1 -1
  89. package/IconClose/package.json +1 -1
  90. package/IconCollapse/package.json +1 -1
  91. package/IconColorFill/package.json +1 -1
  92. package/IconColorText/package.json +1 -1
  93. package/IconColumns/package.json +1 -1
  94. package/IconComment/package.json +1 -1
  95. package/IconConnection/package.json +1 -1
  96. package/IconCopy/package.json +1 -1
  97. package/IconCrown/package.json +1 -1
  98. package/IconCursorMouse/package.json +1 -1
  99. package/IconDataNull/package.json +1 -1
  100. package/IconDiamond/package.json +1 -1
  101. package/IconDinosaur/package.json +1 -1
  102. package/IconDisconnection/package.json +1 -1
  103. package/IconDocAdd/package.json +1 -1
  104. package/IconDocBlank/package.json +1 -1
  105. package/IconDocDelete/package.json +1 -1
  106. package/IconDocExport/package.json +1 -1
  107. package/IconDocFilled/package.json +1 -1
  108. package/IconDown/package.json +1 -1
  109. package/IconDownload/package.json +1 -1
  110. package/IconDrag/package.json +1 -1
  111. package/IconDraggable/package.json +1 -1
  112. package/IconDrillingRig/package.json +1 -1
  113. package/IconDrop/package.json +1 -1
  114. package/IconEdit/package.json +1 -1
  115. package/IconExit/package.json +1 -1
  116. package/IconExpand/package.json +1 -1
  117. package/IconEye/package.json +1 -1
  118. package/IconEyeClose/package.json +1 -1
  119. package/IconFacebook/package.json +1 -1
  120. package/IconFavorite/package.json +1 -1
  121. package/IconFilter/package.json +1 -1
  122. package/IconFitToDefault/package.json +1 -1
  123. package/IconFlagFilled/package.json +1 -1
  124. package/IconFlagStroked/package.json +1 -1
  125. package/IconFolders/package.json +1 -1
  126. package/IconForward/package.json +1 -1
  127. package/IconFunnel/package.json +1 -1
  128. package/IconGas/package.json +1 -1
  129. package/IconGeo/package.json +1 -1
  130. package/IconGrouping/package.json +1 -1
  131. package/IconHamburger/package.json +1 -1
  132. package/IconHand/package.json +1 -1
  133. package/IconHealth/package.json +1 -1
  134. package/IconHome/package.json +1 -1
  135. package/IconInComparison/package.json +1 -1
  136. package/IconInfo/package.json +1 -1
  137. package/IconInstagram/package.json +1 -1
  138. package/IconIntroduction/package.json +1 -1
  139. package/IconIpad/package.json +1 -1
  140. package/IconItalic/package.json +1 -1
  141. package/IconKebab/package.json +1 -1
  142. package/IconLaptop/package.json +1 -1
  143. package/IconLayers/package.json +1 -1
  144. package/IconLeaf/package.json +1 -1
  145. package/IconLightningBolt/package.json +1 -1
  146. package/IconLineAndBarChart/package.json +1 -1
  147. package/IconLink/package.json +1 -1
  148. package/IconList/package.json +1 -1
  149. package/IconListNumbered/package.json +1 -1
  150. package/IconLock/package.json +1 -1
  151. package/IconLogicalElement/package.json +1 -1
  152. package/IconMBU/package.json +1 -1
  153. package/IconMGRP/package.json +1 -1
  154. package/IconMLSP/package.json +1 -1
  155. package/IconMMP/package.json +1 -1
  156. package/IconMail/package.json +1 -1
  157. package/IconMap/package.json +1 -1
  158. package/IconMaxHeight/package.json +1 -1
  159. package/IconMaxWidth/package.json +1 -1
  160. package/IconMeatball/package.json +1 -1
  161. package/IconMic/package.json +1 -1
  162. package/IconMolecules/package.json +1 -1
  163. package/IconMoon/package.json +1 -1
  164. package/IconNodeEnd/package.json +1 -1
  165. package/IconNodeStart/package.json +1 -1
  166. package/IconNodeStep/package.json +1 -1
  167. package/IconNodes/package.json +1 -1
  168. package/IconOpenInNew/package.json +1 -1
  169. package/IconOperators/package.json +1 -1
  170. package/IconPanelBottom/package.json +1 -1
  171. package/IconPanelLeft/package.json +1 -1
  172. package/IconPanelRight/package.json +1 -1
  173. package/IconPanelTop/package.json +1 -1
  174. package/IconPaste/package.json +1 -1
  175. package/IconPause/package.json +1 -1
  176. package/IconPhone/package.json +1 -1
  177. package/IconPhoto/package.json +1 -1
  178. package/IconPicture/package.json +1 -1
  179. package/IconPlay/package.json +1 -1
  180. package/IconPressure/package.json +1 -1
  181. package/IconPriceLabel/package.json +1 -1
  182. package/IconProcessing/package.json +1 -1
  183. package/IconQuestion/package.json +1 -1
  184. package/IconQuote/package.json +1 -1
  185. package/IconRUO/package.json +1 -1
  186. package/IconRUS/package.json +1 -1
  187. package/IconRecord/package.json +1 -1
  188. package/IconRemove/package.json +1 -1
  189. package/IconRemoveFromComparison/package.json +1 -1
  190. package/IconReply/package.json +1 -1
  191. package/IconResize/package.json +1 -1
  192. package/IconRestart/package.json +1 -1
  193. package/IconRevert/package.json +1 -1
  194. package/IconRing/package.json +1 -1
  195. package/IconRouble/package.json +1 -1
  196. package/IconRuler/package.json +1 -1
  197. package/IconSave/package.json +1 -1
  198. package/IconScreen/package.json +1 -1
  199. package/IconSearch/package.json +1 -1
  200. package/IconSelect/package.json +1 -1
  201. package/IconSelectOpen/package.json +1 -1
  202. package/IconSendMessage/package.json +1 -1
  203. package/IconSettings/package.json +1 -1
  204. package/IconShape/package.json +1 -1
  205. package/IconShuffle/package.json +1 -1
  206. package/IconSmile/package.json +1 -1
  207. package/IconSortDown/package.json +1 -1
  208. package/IconSortDownCenter/package.json +1 -1
  209. package/IconSortUp/package.json +1 -1
  210. package/IconSortUpCenter/package.json +1 -1
  211. package/IconStop/package.json +1 -1
  212. package/IconStorage/package.json +1 -1
  213. package/IconStrikethrough/package.json +1 -1
  214. package/IconSun/package.json +1 -1
  215. package/IconTable/package.json +1 -1
  216. package/IconTable2/package.json +1 -1
  217. package/IconTarget/package.json +1 -1
  218. package/IconTeam/package.json +1 -1
  219. package/IconTechResponse/package.json +1 -1
  220. package/IconTest/package.json +1 -1
  221. package/IconThumbUp/package.json +1 -1
  222. package/IconTie/package.json +1 -1
  223. package/IconTop/package.json +1 -1
  224. package/IconTrash/package.json +1 -1
  225. package/IconType/package.json +1 -1
  226. package/IconUnderline/package.json +1 -1
  227. package/IconUnlock/package.json +1 -1
  228. package/IconUnsort/package.json +1 -1
  229. package/IconUnsortCenter/package.json +1 -1
  230. package/IconUpload/package.json +1 -1
  231. package/IconUser/package.json +1 -1
  232. package/IconVZD/package.json +1 -1
  233. package/IconVideo/package.json +1 -1
  234. package/IconVkontakte/package.json +1 -1
  235. package/IconWarning/package.json +1 -1
  236. package/IconWatch/package.json +1 -1
  237. package/IconWideScreen/package.json +1 -1
  238. package/IconWorld/package.json +1 -1
  239. package/IconWrench/package.json +1 -1
  240. package/IconYandexDzen/package.json +1 -1
  241. package/IconYoutube/package.json +1 -1
  242. package/Informer/package.json +1 -1
  243. package/LayoutCanary/package.json +1 -1
  244. package/Loader/package.json +1 -1
  245. package/MixCard/package.json +1 -1
  246. package/MixFocus/package.json +1 -1
  247. package/MixPopoverAnimate/package.json +1 -1
  248. package/MixPopoverArrow/package.json +1 -1
  249. package/MixSpace/package.json +1 -1
  250. package/MixVisuallyHidden/package.json +1 -1
  251. package/Modal/package.json +1 -1
  252. package/MultiComboboxDeprecated/package.json +1 -1
  253. package/Pagination/package.json +1 -1
  254. package/Popover/package.json +1 -1
  255. package/PortalWithTheme/package.json +1 -1
  256. package/ProgressSpin/package.json +1 -1
  257. package/ProgressStepBarCanary/package.json +1 -1
  258. package/Radio/package.json +1 -1
  259. package/RadioGroup/package.json +1 -1
  260. package/Responses/package.json +1 -1
  261. package/Responses403/package.json +1 -1
  262. package/Responses404/package.json +1 -1
  263. package/Responses500/package.json +1 -1
  264. package/Responses503/package.json +1 -1
  265. package/ResponsesConnectionError/package.json +1 -1
  266. package/ResponsesDeleted/package.json +1 -1
  267. package/ResponsesEmptyBox/package.json +1 -1
  268. package/ResponsesEmptyPockets/package.json +1 -1
  269. package/ResponsesExit/package.json +1 -1
  270. package/ResponsesImage/package.json +1 -1
  271. package/ResponsesImage403/package.json +1 -1
  272. package/ResponsesImage404/package.json +1 -1
  273. package/ResponsesImage500/package.json +1 -1
  274. package/ResponsesImage503/package.json +1 -1
  275. package/ResponsesImageConnectionError/package.json +1 -1
  276. package/ResponsesImageDeleted/package.json +1 -1
  277. package/ResponsesImageEmptyBox/package.json +1 -1
  278. package/ResponsesImageEmptyPockets/package.json +1 -1
  279. package/ResponsesImageNothingFound/package.json +1 -1
  280. package/ResponsesImageSuccess/package.json +1 -1
  281. package/ResponsesNothingFound/package.json +1 -1
  282. package/ResponsesSuccess/package.json +1 -1
  283. package/Select/package.json +1 -1
  284. package/Sidebar/package.json +1 -1
  285. package/Skeleton/package.json +1 -1
  286. package/SliderCanary/package.json +1 -1
  287. package/SnackBar/package.json +1 -1
  288. package/Steps/package.json +1 -1
  289. package/StepsCanary/package.json +1 -1
  290. package/Switch/package.json +1 -1
  291. package/SwitchGroup/package.json +1 -1
  292. package/SwitchGroupCanary/package.json +1 -1
  293. package/Table/package.json +1 -1
  294. package/Tabs/package.json +1 -1
  295. package/TabsCanary/package.json +1 -1
  296. package/Tag/package.json +1 -1
  297. package/TagBase/package.json +1 -1
  298. package/Text/package.json +1 -1
  299. package/TextField/package.json +1 -1
  300. package/Theme/package.json +1 -1
  301. package/ThemeToggler/package.json +1 -1
  302. package/Timer/package.json +1 -1
  303. package/Tooltip/package.json +1 -1
  304. package/User/package.json +1 -1
  305. package/UserSelect/package.json +1 -1
  306. package/UserSelectDeprecated/package.json +1 -1
  307. package/__internal__/cjs-src/components/ContextMenuCanary/ContextMenu.css +4 -1
  308. package/__internal__/cjs-src/components/ContextMenuCanary/ContextMenuCanary.js +6 -2
  309. package/__internal__/cjs-src/components/DateTimeCanary/DateTimeItem/DateTimeItem.d.ts +1 -1
  310. package/__internal__/cjs-src/components/DragNDropField/DragNDropField.d.ts +2 -10
  311. package/__internal__/cjs-src/components/DragNDropField/DragNDropField.js +8 -3
  312. package/__internal__/cjs-src/components/DragNDropField/DragNDropFieldContent/DragNDropFieldContent.js +5 -6
  313. package/__internal__/cjs-src/components/DragNDropField/DragNDropFieldContent/formatFileRequirements.d.ts +2 -1
  314. package/__internal__/cjs-src/components/DragNDropField/DragNDropFieldContent/formatFileRequirements.js +8 -3
  315. package/__internal__/cjs-src/components/DragNDropField/formatFileSize.d.ts +2 -1
  316. package/__internal__/cjs-src/components/DragNDropField/formatFileSize.js +16 -13
  317. package/__internal__/cjs-src/components/DragNDropField/getErrorsList.d.ts +2 -1
  318. package/__internal__/cjs-src/components/DragNDropField/getErrorsList.js +26 -21
  319. package/__internal__/cjs-src/components/DragNDropField/locale.d.ts +30 -0
  320. package/__internal__/cjs-src/components/DragNDropField/locale.js +35 -0
  321. package/__internal__/cjs-src/components/DragNDropField/types.d.ts +28 -0
  322. package/__internal__/cjs-src/components/DragNDropField/types.js +2 -0
  323. package/__internal__/cjs-src/components/Popover/Popover.js +17 -17
  324. package/__internal__/cjs-src/components/Popover/usePopoverReposition.d.ts +1 -2
  325. package/__internal__/cjs-src/components/Popover/usePopoverReposition.js +17 -17
  326. package/__internal__/cjs-src/components/SelectComponents/SelectCreateButton/SelectCreateButton.d.ts +1 -0
  327. package/__internal__/cjs-src/components/SelectComponents/SelectCreateButton/SelectCreateButton.js +3 -3
  328. package/__internal__/cjs-src/components/SelectComponents/SelectLoader/SelectLoader.d.ts +1 -0
  329. package/__internal__/cjs-src/components/SelectComponents/SelectLoader/SelectLoader.js +4 -4
  330. package/__internal__/cjs-src/components/Table/RowsCollapse/TableRowsCollapse.js +1 -1
  331. package/__internal__/cjs-src/components/Table/Table.js +3 -3
  332. package/__internal__/src/components/ContextMenuCanary/ContextMenu.css +4 -1
  333. package/__internal__/src/components/ContextMenuCanary/ContextMenuCanary.js +6 -2
  334. package/__internal__/src/components/DateTimeCanary/DateTimeItem/DateTimeItem.d.ts +1 -1
  335. package/__internal__/src/components/DragNDropField/DragNDropField.d.ts +2 -10
  336. package/__internal__/src/components/DragNDropField/DragNDropField.js +8 -3
  337. package/__internal__/src/components/DragNDropField/DragNDropFieldContent/DragNDropFieldContent.js +5 -6
  338. package/__internal__/src/components/DragNDropField/DragNDropFieldContent/formatFileRequirements.d.ts +2 -1
  339. package/__internal__/src/components/DragNDropField/DragNDropFieldContent/formatFileRequirements.js +8 -3
  340. package/__internal__/src/components/DragNDropField/formatFileSize.d.ts +2 -1
  341. package/__internal__/src/components/DragNDropField/formatFileSize.js +16 -13
  342. package/__internal__/src/components/DragNDropField/getErrorsList.d.ts +2 -1
  343. package/__internal__/src/components/DragNDropField/getErrorsList.js +27 -22
  344. package/__internal__/src/components/DragNDropField/locale.d.ts +30 -0
  345. package/__internal__/src/components/DragNDropField/locale.js +32 -0
  346. package/__internal__/src/components/DragNDropField/types.d.ts +28 -0
  347. package/__internal__/src/components/DragNDropField/types.js +0 -0
  348. package/__internal__/src/components/Popover/Popover.js +18 -18
  349. package/__internal__/src/components/Popover/usePopoverReposition.d.ts +1 -2
  350. package/__internal__/src/components/Popover/usePopoverReposition.js +17 -16
  351. package/__internal__/src/components/SelectComponents/SelectCreateButton/SelectCreateButton.d.ts +1 -0
  352. package/__internal__/src/components/SelectComponents/SelectCreateButton/SelectCreateButton.js +1 -1
  353. package/__internal__/src/components/SelectComponents/SelectLoader/SelectLoader.d.ts +1 -0
  354. package/__internal__/src/components/SelectComponents/SelectLoader/SelectLoader.js +1 -1
  355. package/__internal__/src/components/Table/RowsCollapse/TableRowsCollapse.js +1 -1
  356. package/__internal__/src/components/Table/Table.js +4 -4
  357. package/createIcon/package.json +1 -1
  358. package/createResponsesImage/package.json +1 -1
  359. package/package.json +1 -1
  360. package/useBreakpoints/package.json +1 -1
  361. package/useChoiceGroup/package.json +1 -1
  362. package/useChoiceGroupIndexed/package.json +1 -1
  363. package/useClickOutside/package.json +1 -1
  364. package/useComponentSize/package.json +1 -1
  365. package/useDebounce/package.json +1 -1
  366. package/useFlag/package.json +1 -1
  367. package/useForkRef/package.json +1 -1
  368. package/useGlobalKeys/package.json +1 -1
  369. package/useHideElementsInLine/package.json +1 -1
  370. package/useKeys/package.json +1 -1
  371. package/useMutableRef/package.json +1 -1
  372. package/useOverflow/package.json +1 -1
  373. package/usePrevious/package.json +1 -1
  374. package/useRefs/package.json +1 -1
  375. package/useResizeObserved/package.json +1 -1
  376. package/useScrollElements/package.json +1 -1
  377. package/useScrollPosition/package.json +1 -1
  378. package/useSelect/package.json +1 -1
  379. package/useSortSteps/package.json +1 -1
  380. package/useThemeVars/package.json +1 -1
  381. package/useTimer/package.json +1 -1
  382. package/withTooltip/package.json +1 -1
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@consta/uikit/ResponsesExit",
3
- "version": "3.24.0",
3
+ "version": "3.24.2",
4
4
  "main": "index.js",
5
5
  "module": "es.js",
6
6
  "sideEffects": [
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@consta/uikit/ResponsesImage",
3
- "version": "3.24.0",
3
+ "version": "3.24.2",
4
4
  "main": "index.js",
5
5
  "module": "es.js",
6
6
  "sideEffects": [
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@consta/uikit/ResponsesImage403",
3
- "version": "3.24.0",
3
+ "version": "3.24.2",
4
4
  "main": "index.js",
5
5
  "module": "es.js",
6
6
  "sideEffects": [
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@consta/uikit/ResponsesImage404",
3
- "version": "3.24.0",
3
+ "version": "3.24.2",
4
4
  "main": "index.js",
5
5
  "module": "es.js",
6
6
  "sideEffects": [
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@consta/uikit/ResponsesImage500",
3
- "version": "3.24.0",
3
+ "version": "3.24.2",
4
4
  "main": "index.js",
5
5
  "module": "es.js",
6
6
  "sideEffects": [
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@consta/uikit/ResponsesImage503",
3
- "version": "3.24.0",
3
+ "version": "3.24.2",
4
4
  "main": "index.js",
5
5
  "module": "es.js",
6
6
  "sideEffects": [
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@consta/uikit/ResponsesImageConnectionError",
3
- "version": "3.24.0",
3
+ "version": "3.24.2",
4
4
  "main": "index.js",
5
5
  "module": "es.js",
6
6
  "sideEffects": [
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@consta/uikit/ResponsesImageDeleted",
3
- "version": "3.24.0",
3
+ "version": "3.24.2",
4
4
  "main": "index.js",
5
5
  "module": "es.js",
6
6
  "sideEffects": [
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@consta/uikit/ResponsesImageEmptyBox",
3
- "version": "3.24.0",
3
+ "version": "3.24.2",
4
4
  "main": "index.js",
5
5
  "module": "es.js",
6
6
  "sideEffects": [
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@consta/uikit/ResponsesImageEmptyPockets",
3
- "version": "3.24.0",
3
+ "version": "3.24.2",
4
4
  "main": "index.js",
5
5
  "module": "es.js",
6
6
  "sideEffects": [
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@consta/uikit/ResponsesImageNothingFound",
3
- "version": "3.24.0",
3
+ "version": "3.24.2",
4
4
  "main": "index.js",
5
5
  "module": "es.js",
6
6
  "sideEffects": [
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@consta/uikit/ResponsesImageSuccess",
3
- "version": "3.24.0",
3
+ "version": "3.24.2",
4
4
  "main": "index.js",
5
5
  "module": "es.js",
6
6
  "sideEffects": [
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@consta/uikit/ResponsesNothingFound",
3
- "version": "3.24.0",
3
+ "version": "3.24.2",
4
4
  "main": "index.js",
5
5
  "module": "es.js",
6
6
  "sideEffects": [
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@consta/uikit/ResponsesSuccess",
3
- "version": "3.24.0",
3
+ "version": "3.24.2",
4
4
  "main": "index.js",
5
5
  "module": "es.js",
6
6
  "sideEffects": [
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@consta/uikit/Select",
3
- "version": "3.24.0",
3
+ "version": "3.24.2",
4
4
  "main": "index.js",
5
5
  "module": "es.js",
6
6
  "sideEffects": [
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@consta/uikit/Sidebar",
3
- "version": "3.24.0",
3
+ "version": "3.24.2",
4
4
  "main": "index.js",
5
5
  "module": "es.js",
6
6
  "sideEffects": [
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@consta/uikit/Skeleton",
3
- "version": "3.24.0",
3
+ "version": "3.24.2",
4
4
  "main": "index.js",
5
5
  "module": "es.js",
6
6
  "sideEffects": [
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@consta/uikit/SliderCanary",
3
- "version": "3.24.0",
3
+ "version": "3.24.2",
4
4
  "main": "index.js",
5
5
  "module": "es.js",
6
6
  "sideEffects": [
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@consta/uikit/SnackBar",
3
- "version": "3.24.0",
3
+ "version": "3.24.2",
4
4
  "main": "index.js",
5
5
  "module": "es.js",
6
6
  "sideEffects": [
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@consta/uikit/Steps",
3
- "version": "3.24.0",
3
+ "version": "3.24.2",
4
4
  "main": "index.js",
5
5
  "module": "es.js",
6
6
  "sideEffects": [
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@consta/uikit/StepsCanary",
3
- "version": "3.24.0",
3
+ "version": "3.24.2",
4
4
  "main": "index.js",
5
5
  "module": "es.js",
6
6
  "sideEffects": [
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@consta/uikit/Switch",
3
- "version": "3.24.0",
3
+ "version": "3.24.2",
4
4
  "main": "index.js",
5
5
  "module": "es.js",
6
6
  "sideEffects": [
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@consta/uikit/SwitchGroup",
3
- "version": "3.24.0",
3
+ "version": "3.24.2",
4
4
  "main": "index.js",
5
5
  "module": "es.js",
6
6
  "sideEffects": [
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@consta/uikit/SwitchGroupCanary",
3
- "version": "3.24.0",
3
+ "version": "3.24.2",
4
4
  "main": "index.js",
5
5
  "module": "es.js",
6
6
  "sideEffects": [
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@consta/uikit/Table",
3
- "version": "3.24.0",
3
+ "version": "3.24.2",
4
4
  "main": "index.js",
5
5
  "module": "es.js",
6
6
  "sideEffects": [
package/Tabs/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@consta/uikit/Tabs",
3
- "version": "3.24.0",
3
+ "version": "3.24.2",
4
4
  "main": "index.js",
5
5
  "module": "es.js",
6
6
  "sideEffects": [
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@consta/uikit/TabsCanary",
3
- "version": "3.24.0",
3
+ "version": "3.24.2",
4
4
  "main": "index.js",
5
5
  "module": "es.js",
6
6
  "sideEffects": [
package/Tag/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@consta/uikit/Tag",
3
- "version": "3.24.0",
3
+ "version": "3.24.2",
4
4
  "main": "index.js",
5
5
  "module": "es.js",
6
6
  "sideEffects": [
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@consta/uikit/TagBase",
3
- "version": "3.24.0",
3
+ "version": "3.24.2",
4
4
  "main": "index.js",
5
5
  "module": "es.js",
6
6
  "sideEffects": [
package/Text/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@consta/uikit/Text",
3
- "version": "3.24.0",
3
+ "version": "3.24.2",
4
4
  "main": "index.js",
5
5
  "module": "es.js",
6
6
  "sideEffects": [
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@consta/uikit/TextField",
3
- "version": "3.24.0",
3
+ "version": "3.24.2",
4
4
  "main": "index.js",
5
5
  "module": "es.js",
6
6
  "sideEffects": [
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@consta/uikit/Theme",
3
- "version": "3.24.0",
3
+ "version": "3.24.2",
4
4
  "main": "index.js",
5
5
  "module": "es.js",
6
6
  "sideEffects": [
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@consta/uikit/ThemeToggler",
3
- "version": "3.24.0",
3
+ "version": "3.24.2",
4
4
  "main": "index.js",
5
5
  "module": "es.js",
6
6
  "sideEffects": [
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@consta/uikit/Timer",
3
- "version": "3.24.0",
3
+ "version": "3.24.2",
4
4
  "main": "index.js",
5
5
  "module": "es.js",
6
6
  "sideEffects": [
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@consta/uikit/Tooltip",
3
- "version": "3.24.0",
3
+ "version": "3.24.2",
4
4
  "main": "index.js",
5
5
  "module": "es.js",
6
6
  "sideEffects": [
package/User/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@consta/uikit/User",
3
- "version": "3.24.0",
3
+ "version": "3.24.2",
4
4
  "main": "index.js",
5
5
  "module": "es.js",
6
6
  "sideEffects": [
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@consta/uikit/UserSelect",
3
- "version": "3.24.0",
3
+ "version": "3.24.2",
4
4
  "main": "index.js",
5
5
  "module": "es.js",
6
6
  "sideEffects": [
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@consta/uikit/UserSelectDeprecated",
3
- "version": "3.24.0",
3
+ "version": "3.24.2",
4
4
  "main": "index.js",
5
5
  "module": "es.js",
6
6
  "sideEffects": [
@@ -8,7 +8,6 @@
8
8
 
9
9
  .ContextMenuCanary-Level_playAnimation.MixPopoverAnimate {
10
10
  opacity: 0 !important;
11
- pointer-events: none;
12
11
  -webkit-transition: opacity 0.2s, -webkit-transform 0.2s !important;
13
12
  transition: opacity 0.2s, -webkit-transform 0.2s !important;
14
13
  transition: opacity 0.2s, transform 0.2s !important;
@@ -16,3 +15,7 @@
16
15
  -webkit-transform: var(--mix-dropdown-animate-transform) !important;
17
16
  transform: var(--mix-dropdown-animate-transform) !important;
18
17
  }
18
+
19
+ .ContextMenuCanary-Level_eventsNone.MixPopoverAnimate {
20
+ pointer-events: none;
21
+ }
@@ -18,12 +18,16 @@ function ContextMenuRender(props, ref) {
18
18
  var levelRef = useForkRef_1.useForkRef([ref, nodeRef]);
19
19
  var _a = usePropsHandler_1.usePropsHandler(exports.COMPONENT_NAME, props, levelRef), isOpen = _a.isOpen, className = _a.className, onSetDirection = _a.onSetDirection, otherProps = tslib_1.__rest(_a, ["isOpen", "className", "onSetDirection"]);
20
20
  var _b = tslib_1.__read(useFlag_1.useFlag(), 2), playAnimation = _b[0], setPlayAnimation = _b[1];
21
- var _c = tslib_1.__read(react_1.useState(props.direction), 2), direction = _c[0], setDirection = _c[1];
21
+ var _c = tslib_1.__read(useFlag_1.useFlag(true), 2), eventsNone = _c[0], setEventsNone = _c[1];
22
+ var _d = tslib_1.__read(react_1.useState(props.direction), 2), direction = _d[0], setDirection = _d[1];
22
23
  var handleSetDirection = function (d) {
23
24
  setDirection(d);
24
25
  onSetDirection === null || onSetDirection === void 0 ? void 0 : onSetDirection(d);
25
26
  };
26
- return (react_1["default"].createElement(react_transition_group_1.Transition, { "in": isOpen, unmountOnExit: true, timeout: MixPopoverAnimate_1.animateTimeout, onEnter: setPlayAnimation.off, onExit: setPlayAnimation.on, nodeRef: nodeRef }, function (animate) { return (react_1["default"].createElement(ContextMenuLevels_1.ContextMenuLevels, tslib_1.__assign({}, otherProps, { ref: levelRef, onSetDirection: handleSetDirection, className: cnContextMenu('Level', { playAnimation: playAnimation }, [
27
+ return (react_1["default"].createElement(react_transition_group_1.Transition, { "in": isOpen, unmountOnExit: true, timeout: MixPopoverAnimate_1.animateTimeout, onEntered: setEventsNone.off, onEnter: setPlayAnimation.off, onExit: function () {
28
+ setPlayAnimation.on();
29
+ setEventsNone.on();
30
+ }, nodeRef: nodeRef }, function (animate) { return (react_1["default"].createElement(ContextMenuLevels_1.ContextMenuLevels, tslib_1.__assign({}, otherProps, { ref: levelRef, onSetDirection: handleSetDirection, className: cnContextMenu('Level', { playAnimation: playAnimation, eventsNone: eventsNone }, [
27
31
  className,
28
32
  MixPopoverAnimate_1.cnMixPopoverAnimate({ animate: animate, direction: direction }),
29
33
  ]) }))); }));
@@ -19,4 +19,4 @@ export declare const DateTimeItem: React.ForwardRefExoticComponent<Pick<Pick<{
19
19
  event?: boolean | undefined;
20
20
  role?: undefined;
21
21
  children?: undefined;
22
- } & Pick<React.DetailedHTMLProps<React.ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, "css" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "className" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "hidden" | "id" | "lang" | "placeholder" | "slot" | "spellCheck" | "style" | "tabIndex" | "title" | "translate" | "radioGroup" | "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" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChange" | "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" | "ref" | "key" | "form" | "name" | "type" | "autoFocus" | "formAction" | "formEncType" | "formMethod" | "formNoValidate" | "formTarget" | "value">, "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "className" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "hidden" | "id" | "lang" | "placeholder" | "slot" | "spellCheck" | "style" | "tabIndex" | "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" | "children" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChange" | "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" | "ref" | "disabled" | "key" | "form" | "label" | "name" | "type" | "autoFocus" | "formAction" | "formEncType" | "formMethod" | "formNoValidate" | "formTarget" | "value" | "selected" | "current" | "event">, "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "className" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "hidden" | "id" | "lang" | "placeholder" | "slot" | "spellCheck" | "style" | "tabIndex" | "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" | "children" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChange" | "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" | "disabled" | "key" | "form" | "label" | "name" | "type" | "autoFocus" | "formAction" | "formEncType" | "formMethod" | "formNoValidate" | "formTarget" | "value" | "selected" | "current" | "event"> & React.RefAttributes<HTMLButtonElement>>;
22
+ } & Pick<React.DetailedHTMLProps<React.ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, "css" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "className" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "hidden" | "id" | "lang" | "placeholder" | "slot" | "spellCheck" | "style" | "tabIndex" | "title" | "translate" | "radioGroup" | "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" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChange" | "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" | "ref" | "key" | "form" | "name" | "type" | "autoFocus" | "formAction" | "formEncType" | "formMethod" | "formNoValidate" | "formTarget" | "value">, "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "className" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "hidden" | "id" | "lang" | "placeholder" | "slot" | "spellCheck" | "style" | "tabIndex" | "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" | "children" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChange" | "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" | "ref" | "disabled" | "key" | "form" | "label" | "name" | "type" | "autoFocus" | "formAction" | "formEncType" | "formMethod" | "formNoValidate" | "formTarget" | "value" | "selected" | "event" | "current">, "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "className" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "hidden" | "id" | "lang" | "placeholder" | "slot" | "spellCheck" | "style" | "tabIndex" | "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" | "children" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChange" | "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" | "disabled" | "key" | "form" | "label" | "name" | "type" | "autoFocus" | "formAction" | "formEncType" | "formMethod" | "formNoValidate" | "formTarget" | "value" | "selected" | "event" | "current"> & React.RefAttributes<HTMLButtonElement>>;
@@ -1,14 +1,6 @@
1
1
  import './DragNDropField.css';
2
2
  import React from 'react';
3
- export declare type DragNDropFieldProps = {
4
- accept?: string | string[];
5
- maxSize?: number;
6
- multiple?: boolean;
7
- onDropFiles: (files: File[]) => void;
8
- children?: React.ReactNode | DragNDropFieldChildrenRenderProp;
9
- };
10
- export declare type DragNDropFieldChildrenRenderProp = (props: {
11
- openFileDialog: () => void;
12
- } & Pick<DragNDropFieldProps, 'accept' | 'maxSize' | 'multiple'>) => React.ReactNode;
3
+ import { DragNDropFieldProps } from './types';
13
4
  export declare const COMPONENT_NAME: "DragNDropField";
14
5
  export declare const DragNDropField: React.ForwardRefExoticComponent<DragNDropFieldProps & React.RefAttributes<HTMLDivElement>>;
6
+ export * from './types';
@@ -12,11 +12,13 @@ var Text_1 = require("../Text/Text");
12
12
  var DragNDropFieldContent_1 = require("./DragNDropFieldContent/DragNDropFieldContent");
13
13
  var DragNDropFieldTooltip_1 = require("./DragNDropFieldTooltip/DragNDropFieldTooltip");
14
14
  var getErrorsList_1 = require("./getErrorsList");
15
+ var locale_1 = require("./locale");
15
16
  var cnDragNDropField = bem_1.cn('DragNDropField');
16
17
  exports.COMPONENT_NAME = 'DragNDropField';
17
18
  exports.DragNDropField = react_1["default"].forwardRef(function (props, ref) {
18
19
  var dragNDropFieldRef = react_1.useRef(null);
19
- var _a = usePropsHandler_1.usePropsHandler(exports.COMPONENT_NAME, props, dragNDropFieldRef), accept = _a.accept, maxSize = _a.maxSize, _b = _a.multiple, multiple = _b === void 0 ? false : _b, onDropFiles = _a.onDropFiles, _c = _a.children, children = _c === void 0 ? DragNDropFieldContent_1.DragNDropFieldContent : _c;
20
+ var _a = usePropsHandler_1.usePropsHandler(exports.COMPONENT_NAME, props, dragNDropFieldRef), accept = _a.accept, maxSize = _a.maxSize, _b = _a.multiple, multiple = _b === void 0 ? false : _b, onDropFiles = _a.onDropFiles, _c = _a.children, children = _c === void 0 ? DragNDropFieldContent_1.DragNDropFieldContent : _c, localeProp = _a.locale;
21
+ var locale = locale_1.withdefaultLocale(localeProp);
20
22
  var handleDrop = react_1["default"].useCallback(function (acceptedFiles) { return acceptedFiles.length > 0 && onDropFiles(acceptedFiles); }, [onDropFiles]);
21
23
  var _d = react_dropzone_1.useDropzone({
22
24
  accept: (accept === null || accept === void 0 ? void 0 : accept.length) ? accept : undefined,
@@ -35,9 +37,11 @@ exports.DragNDropField = react_1["default"].forwardRef(function (props, ref) {
35
37
  onClick: handleRootClick
36
38
  });
37
39
  var content = isRenderProp(children)
38
- ? children({ accept: accept, maxSize: maxSize, multiple: multiple, openFileDialog: open })
40
+ ? children({ accept: accept, maxSize: maxSize, multiple: multiple, openFileDialog: open, locale: locale })
39
41
  : children;
40
- var errors = react_1["default"].useMemo(function () { return getErrorsList_1.getErrorsList(fileRejections); }, [fileRejections]);
42
+ var errors = react_1["default"].useMemo(function () { return getErrorsList_1.getErrorsList(fileRejections, { maxSize: maxSize }, locale); }, [
43
+ fileRejections,
44
+ ]);
41
45
  return (react_1["default"].createElement(react_1["default"].Fragment, null,
42
46
  react_1["default"].createElement("div", tslib_1.__assign({}, rootProps, { ref: useForkRef_1.useForkRef([ref, rootRef, dragNDropFieldRef]) }),
43
47
  react_1["default"].createElement("input", tslib_1.__assign({}, getInputProps())),
@@ -45,3 +49,4 @@ exports.DragNDropField = react_1["default"].forwardRef(function (props, ref) {
45
49
  react_1["default"].createElement(DragNDropFieldTooltip_1.DragNDropFieldTooltip, { anchorRef: rootRef, errors: errors })));
46
50
  });
47
51
  var isRenderProp = function (children) { return typeof children === 'function'; };
52
+ tslib_1.__exportStar(require("./types"), exports);
@@ -8,19 +8,18 @@ var IconAttach_1 = require("../../../icons/IconAttach/IconAttach");
8
8
  var bem_1 = require("../../../utils/bem");
9
9
  var Button_1 = require("../../Button/Button");
10
10
  var Text_1 = require("../../Text/Text");
11
+ var locale_1 = require("../locale");
11
12
  var formatFileRequirements_1 = require("./formatFileRequirements");
12
13
  var cnDragNDropFieldContent = bem_1.cn('DragNDropFieldContent');
13
14
  exports.DragNDropFieldContent = function (_a) {
14
- var accept = _a.accept, maxSize = _a.maxSize, multiple = _a.multiple, openFileDialog = _a.openFileDialog;
15
+ var accept = _a.accept, maxSize = _a.maxSize, multiple = _a.multiple, openFileDialog = _a.openFileDialog, locale = _a.locale;
15
16
  var requirements = formatFileRequirements_1.formatFileRequirements(accept, maxSize);
16
- var fileText = multiple ? 'файлы' : 'файл';
17
+ var fileText = multiple ? locale.files : locale.file;
17
18
  return (react_1["default"].createElement(react_1["default"].Fragment, null,
18
19
  react_1["default"].createElement(Text_1.Text, { view: "secondary", size: "s", lineHeight: "s", align: "center" },
19
- "\u041F\u0435\u0440\u0435\u0442\u0430\u0449\u0438\u0442\u0435 ",
20
- fileText,
21
- " \u0441\u044E\u0434\u0430 \u0438\u043B\u0438\u00A0\u0437\u0430\u0433\u0440\u0443\u0437\u0438\u0442\u0435 \u043F\u043E\u00A0\u043A\u043D\u043E\u043F\u043A\u0435",
20
+ locale_1.getText(locale['call-to-action'], { fileText: fileText }),
22
21
  requirements && (react_1["default"].createElement(react_1["default"].Fragment, null,
23
22
  react_1["default"].createElement("br", null),
24
23
  requirements))),
25
- react_1["default"].createElement(Button_1.Button, { className: cnDragNDropFieldContent('Button'), label: "\u0412\u044B\u0431\u0440\u0430\u0442\u044C " + fileText, iconLeft: IconAttach_1.IconAttach, view: "ghost", size: "s", onClick: openFileDialog })));
24
+ react_1["default"].createElement(Button_1.Button, { className: cnDragNDropFieldContent('Button'), label: locale_1.getText(locale['action-button'], { fileText: fileText }), iconLeft: IconAttach_1.IconAttach, view: "ghost", size: "s", onClick: openFileDialog })));
26
25
  };
@@ -1,2 +1,3 @@
1
1
  import { DragNDropFieldProps } from '../DragNDropField';
2
- export declare const formatFileRequirements: (accept: DragNDropFieldProps['accept'], maxSize: DragNDropFieldProps['maxSize']) => string | undefined;
2
+ import { Locale } from '../locale';
3
+ export declare const formatFileRequirements: (accept: DragNDropFieldProps['accept'], maxSize: DragNDropFieldProps['maxSize'], locale?: Required<Locale>) => string | undefined;
@@ -3,15 +3,20 @@ exports.__esModule = true;
3
3
  exports.formatFileRequirements = void 0;
4
4
  var type_guards_1 = require("../../../utils/type-guards");
5
5
  var formatFileSize_1 = require("../formatFileSize");
6
- exports.formatFileRequirements = function (accept, maxSize) {
6
+ var locale_1 = require("../locale");
7
+ exports.formatFileRequirements = function (accept, maxSize, locale) {
8
+ if (locale === void 0) { locale = locale_1.defaultLocale; }
7
9
  if (accept === null || accept === void 0 ? void 0 : accept.length) {
8
10
  var formattedAccept = Array.isArray(accept) ? accept.join(', ') : accept;
9
- return ["\u041F\u043E\u0434\u0445\u043E\u0434\u044F\u0442 \u0444\u0430\u0439\u043B\u044B " + formattedAccept, maxSize ? "\u0434\u043E " + formatFileSize_1.formatFileSize(maxSize) : null]
11
+ return [
12
+ locale['fit-files'] + " " + formattedAccept,
13
+ maxSize ? locale.before + " " + formatFileSize_1.formatFileSize(maxSize, locale) : null,
14
+ ]
10
15
  .filter(type_guards_1.isNotNil)
11
16
  .join(', ');
12
17
  }
13
18
  if (maxSize) {
14
- return "\u041C\u0430\u043A\u0441\u0438\u043C\u0443\u043C " + formatFileSize_1.formatFileSize(maxSize);
19
+ return locale.max + " " + formatFileSize_1.formatFileSize(maxSize, locale);
15
20
  }
16
21
  return undefined;
17
22
  };
@@ -1 +1,2 @@
1
- export declare const formatFileSize: (sizeInBytes: number) => string | undefined;
1
+ import { Locale } from './locale';
2
+ export declare const formatFileSize: (sizeInBytes: number, locale: Required<Locale>) => string | undefined;