@consta/uikit 3.6.0 → 3.9.1

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 (456) 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 +49 -41
  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/es.js +1 -0
  20. package/DatePickerCanary/index.d.ts +1 -0
  21. package/DatePickerCanary/index.js +4 -0
  22. package/DatePickerCanary/package.json +9 -0
  23. package/DateTimeCanary/package.json +1 -1
  24. package/DragNDropField/package.json +1 -1
  25. package/EventInterceptor/package.json +1 -1
  26. package/FieldCaption/package.json +1 -1
  27. package/FieldLabel/package.json +1 -1
  28. package/File/package.json +1 -1
  29. package/FileField/package.json +1 -1
  30. package/FileIcon/package.json +1 -1
  31. package/FileIconAvi/package.json +1 -1
  32. package/FileIconBmp/package.json +1 -1
  33. package/FileIconCsv/package.json +1 -1
  34. package/FileIconDoc/package.json +1 -1
  35. package/FileIconExe/package.json +1 -1
  36. package/FileIconGif/package.json +1 -1
  37. package/FileIconJpg/package.json +1 -1
  38. package/FileIconJson/package.json +1 -1
  39. package/FileIconLoading/package.json +1 -1
  40. package/FileIconMov/package.json +1 -1
  41. package/FileIconMp3/package.json +1 -1
  42. package/FileIconMp4/package.json +1 -1
  43. package/FileIconPdf/package.json +1 -1
  44. package/FileIconPng/package.json +1 -1
  45. package/FileIconPtt/package.json +1 -1
  46. package/FileIconRar/package.json +1 -1
  47. package/FileIconRtf/package.json +1 -1
  48. package/FileIconTiff/package.json +1 -1
  49. package/FileIconTxt/package.json +1 -1
  50. package/FileIconUndefined/package.json +1 -1
  51. package/FileIconWav/package.json +1 -1
  52. package/FileIconXls/package.json +1 -1
  53. package/FileIconZip/package.json +1 -1
  54. package/Grid/package.json +1 -1
  55. package/Header/package.json +1 -1
  56. package/Icon/package.json +1 -1
  57. package/IconAdd/package.json +1 -1
  58. package/IconAddToComparison/package.json +1 -1
  59. package/IconAlert/package.json +1 -1
  60. package/IconAlignBlocksLeft/package.json +1 -1
  61. package/IconAlignBlocksRight/package.json +1 -1
  62. package/IconAlignCenter/package.json +1 -1
  63. package/IconAlignJustify/package.json +1 -1
  64. package/IconAlignLeft/package.json +1 -1
  65. package/IconAlignRight/package.json +1 -1
  66. package/IconAllDone/package.json +1 -1
  67. package/IconArrowDown/package.json +1 -1
  68. package/IconArrowLeft/package.json +1 -1
  69. package/IconArrowRight/package.json +1 -1
  70. package/IconArrowUp/package.json +1 -1
  71. package/IconArtBrush/package.json +1 -1
  72. package/IconAttach/package.json +1 -1
  73. package/IconBackward/package.json +1 -1
  74. package/IconBag/package.json +1 -1
  75. package/IconBarrier/package.json +1 -1
  76. package/IconBento/package.json +1 -1
  77. package/IconBold/package.json +1 -1
  78. package/IconBook/package.json +1 -1
  79. package/IconBookmarkFilled/package.json +1 -1
  80. package/IconBookmarkStroked/package.json +1 -1
  81. package/IconCalculator/package.json +1 -1
  82. package/IconCalendar/package.json +1 -1
  83. package/IconCamera/package.json +1 -1
  84. package/IconCancel/package.json +1 -1
  85. package/IconCards/package.json +1 -1
  86. package/IconChat/package.json +1 -1
  87. package/IconCheck/package.json +1 -1
  88. package/IconClose/package.json +1 -1
  89. package/IconCollapse/package.json +1 -1
  90. package/IconColorFill/package.json +1 -1
  91. package/IconColorText/package.json +1 -1
  92. package/IconColumns/package.json +1 -1
  93. package/IconComment/package.json +1 -1
  94. package/IconConnection/package.json +1 -1
  95. package/IconCopy/package.json +1 -1
  96. package/IconCrown/package.json +1 -1
  97. package/IconCursorMouse/package.json +1 -1
  98. package/IconDataNull/package.json +1 -1
  99. package/IconDiamond/package.json +1 -1
  100. package/IconDinosaur/package.json +1 -1
  101. package/IconDisconnection/package.json +1 -1
  102. package/IconDocAdd/package.json +1 -1
  103. package/IconDocBlank/package.json +1 -1
  104. package/IconDocDelete/package.json +1 -1
  105. package/IconDocExport/package.json +1 -1
  106. package/IconDocFilled/package.json +1 -1
  107. package/IconDown/package.json +1 -1
  108. package/IconDownload/package.json +1 -1
  109. package/IconDrag/package.json +1 -1
  110. package/IconDraggable/package.json +1 -1
  111. package/IconDrillingRig/package.json +1 -1
  112. package/IconDrop/package.json +1 -1
  113. package/IconEdit/package.json +1 -1
  114. package/IconExit/package.json +1 -1
  115. package/IconExpand/package.json +1 -1
  116. package/IconEye/package.json +1 -1
  117. package/IconEyeClose/package.json +1 -1
  118. package/IconFavorite/package.json +1 -1
  119. package/IconFilter/package.json +1 -1
  120. package/IconFitToDefault/package.json +1 -1
  121. package/IconFlagFilled/package.json +1 -1
  122. package/IconFlagStroked/package.json +1 -1
  123. package/IconFolders/package.json +1 -1
  124. package/IconForward/package.json +1 -1
  125. package/IconFunnel/package.json +1 -1
  126. package/IconGas/package.json +1 -1
  127. package/IconGeo/package.json +1 -1
  128. package/IconGrouping/package.json +1 -1
  129. package/IconHamburger/package.json +1 -1
  130. package/IconHand/package.json +1 -1
  131. package/IconHealth/package.json +1 -1
  132. package/IconInComparison/package.json +1 -1
  133. package/IconInfo/package.json +1 -1
  134. package/IconIntroduction/package.json +1 -1
  135. package/IconIpad/package.json +1 -1
  136. package/IconItalic/package.json +1 -1
  137. package/IconKebab/package.json +1 -1
  138. package/IconLaptop/package.json +1 -1
  139. package/IconLayers/package.json +1 -1
  140. package/IconLeaf/package.json +1 -1
  141. package/IconLightningBolt/package.json +1 -1
  142. package/IconLineAndBarChart/package.json +1 -1
  143. package/IconLink/package.json +1 -1
  144. package/IconList/package.json +1 -1
  145. package/IconListNumbered/package.json +1 -1
  146. package/IconLock/package.json +1 -1
  147. package/IconLogicalElement/package.json +1 -1
  148. package/IconMBU/package.json +1 -1
  149. package/IconMGRP/package.json +1 -1
  150. package/IconMLSP/package.json +1 -1
  151. package/IconMMP/package.json +1 -1
  152. package/IconMail/package.json +1 -1
  153. package/IconMap/package.json +1 -1
  154. package/IconMaxHeight/package.json +1 -1
  155. package/IconMaxWidth/package.json +1 -1
  156. package/IconMeatball/package.json +1 -1
  157. package/IconMic/package.json +1 -1
  158. package/IconMolecules/package.json +1 -1
  159. package/IconMoon/package.json +1 -1
  160. package/IconNodeEnd/package.json +1 -1
  161. package/IconNodeStart/package.json +1 -1
  162. package/IconNodeStep/package.json +1 -1
  163. package/IconNodes/package.json +1 -1
  164. package/IconOpenInNew/package.json +1 -1
  165. package/IconPanelBottom/package.json +1 -1
  166. package/IconPanelLeft/package.json +1 -1
  167. package/IconPanelRight/package.json +1 -1
  168. package/IconPanelTop/package.json +1 -1
  169. package/IconPaste/package.json +1 -1
  170. package/IconPause/package.json +1 -1
  171. package/IconPhone/package.json +1 -1
  172. package/IconPhoto/package.json +1 -1
  173. package/IconPlay/package.json +1 -1
  174. package/IconPressure/package.json +1 -1
  175. package/IconProcessing/package.json +1 -1
  176. package/IconQuestion/package.json +1 -1
  177. package/IconQuote/package.json +1 -1
  178. package/IconRUO/package.json +1 -1
  179. package/IconRUS/package.json +1 -1
  180. package/IconRecord/package.json +1 -1
  181. package/IconRemove/package.json +1 -1
  182. package/IconRemoveFromComparison/package.json +1 -1
  183. package/IconReply/package.json +1 -1
  184. package/IconResize/package.json +1 -1
  185. package/IconRestart/package.json +1 -1
  186. package/IconRevert/package.json +1 -1
  187. package/IconRing/package.json +1 -1
  188. package/IconRouble/package.json +1 -1
  189. package/IconRuler/package.json +1 -1
  190. package/IconScreen/package.json +1 -1
  191. package/IconSearch/package.json +1 -1
  192. package/IconSelect/package.json +1 -1
  193. package/IconSelectOpen/package.json +1 -1
  194. package/IconSettings/package.json +1 -1
  195. package/IconShape/package.json +1 -1
  196. package/IconShuffle/package.json +1 -1
  197. package/IconSmile/package.json +1 -1
  198. package/IconSortDown/package.json +1 -1
  199. package/IconSortDownCenter/package.json +1 -1
  200. package/IconSortUp/package.json +1 -1
  201. package/IconSortUpCenter/package.json +1 -1
  202. package/IconStop/package.json +1 -1
  203. package/IconStorage/package.json +1 -1
  204. package/IconStrikethrough/package.json +1 -1
  205. package/IconSun/package.json +1 -1
  206. package/IconTable/package.json +1 -1
  207. package/IconTarget/package.json +1 -1
  208. package/IconTeam/package.json +1 -1
  209. package/IconTest/package.json +1 -1
  210. package/IconThumbUp/package.json +1 -1
  211. package/IconTie/package.json +1 -1
  212. package/IconTop/package.json +1 -1
  213. package/IconTrash/package.json +1 -1
  214. package/IconType/package.json +1 -1
  215. package/IconUnderline/package.json +1 -1
  216. package/IconUnlock/package.json +1 -1
  217. package/IconUnsort/package.json +1 -1
  218. package/IconUnsortCenter/package.json +1 -1
  219. package/IconUpload/package.json +1 -1
  220. package/IconUser/package.json +1 -1
  221. package/IconVZD/package.json +1 -1
  222. package/IconVideo/package.json +1 -1
  223. package/IconWarning/package.json +1 -1
  224. package/IconWatch/package.json +1 -1
  225. package/IconWideScreen/package.json +1 -1
  226. package/IconWorld/package.json +1 -1
  227. package/Informer/package.json +1 -1
  228. package/LayoutCanary/package.json +1 -1
  229. package/Loader/package.json +1 -1
  230. package/MixCard/package.json +1 -1
  231. package/MixFocus/package.json +1 -1
  232. package/MixVisuallyHidden/package.json +1 -1
  233. package/Modal/package.json +1 -1
  234. package/MultiComboboxDeprecated/package.json +1 -1
  235. package/Pagination/package.json +1 -1
  236. package/Popover/package.json +1 -1
  237. package/PortalWithTheme/package.json +1 -1
  238. package/ProgressSpin/package.json +1 -1
  239. package/ProgressStepBarCanary/es.js +1 -0
  240. package/ProgressStepBarCanary/index.d.ts +1 -0
  241. package/ProgressStepBarCanary/index.js +4 -0
  242. package/ProgressStepBarCanary/package.json +9 -0
  243. package/Radio/package.json +1 -1
  244. package/RadioGroup/package.json +1 -1
  245. package/Responses/package.json +1 -1
  246. package/Responses403/package.json +1 -1
  247. package/Responses404/package.json +1 -1
  248. package/Responses500/package.json +1 -1
  249. package/Responses503/package.json +1 -1
  250. package/ResponsesConnectionError/package.json +1 -1
  251. package/ResponsesDeleted/package.json +1 -1
  252. package/ResponsesEmptyBox/package.json +1 -1
  253. package/ResponsesEmptyPockets/package.json +1 -1
  254. package/ResponsesImage/package.json +1 -1
  255. package/ResponsesImage403/package.json +1 -1
  256. package/ResponsesImage404/package.json +1 -1
  257. package/ResponsesImage500/package.json +1 -1
  258. package/ResponsesImage503/package.json +1 -1
  259. package/ResponsesImageConnectionError/package.json +1 -1
  260. package/ResponsesImageDeleted/package.json +1 -1
  261. package/ResponsesImageEmptyBox/package.json +1 -1
  262. package/ResponsesImageEmptyPockets/package.json +1 -1
  263. package/ResponsesImageNothingFound/package.json +1 -1
  264. package/ResponsesImageSuccess/package.json +1 -1
  265. package/ResponsesNothingFound/package.json +1 -1
  266. package/ResponsesSuccess/package.json +1 -1
  267. package/Select/package.json +1 -1
  268. package/Sidebar/package.json +1 -1
  269. package/Skeleton/package.json +1 -1
  270. package/SnackBar/package.json +1 -1
  271. package/Steps/package.json +1 -1
  272. package/Switch/package.json +1 -1
  273. package/SwitchGroup/package.json +1 -1
  274. package/Table/package.json +1 -1
  275. package/Tabs/package.json +1 -1
  276. package/Tag/package.json +1 -1
  277. package/TagBase/package.json +1 -1
  278. package/Text/package.json +1 -1
  279. package/TextField/package.json +1 -1
  280. package/Theme/package.json +1 -1
  281. package/ThemeToggler/package.json +1 -1
  282. package/Timer/package.json +1 -1
  283. package/Tooltip/package.json +1 -1
  284. package/User/package.json +1 -1
  285. package/UserSelect/package.json +1 -1
  286. package/UserSelectDeprecated/package.json +1 -1
  287. package/__internal__/cjs-src/components/Calendar/CalendarDay/CalendarDay.d.ts +1 -1
  288. package/__internal__/cjs-src/components/Combobox/Combobox.js +4 -4
  289. package/__internal__/cjs-src/components/Combobox/helpers.d.ts +2 -0
  290. package/__internal__/cjs-src/components/DatePickerCanary/DatePickerCanary.d.ts +3 -0
  291. package/__internal__/cjs-src/components/DatePickerCanary/DatePickerCanary.js +20 -0
  292. package/__internal__/cjs-src/components/DatePickerCanary/DatePickerDropdown/DatePickerDropdown.css +68 -0
  293. package/__internal__/cjs-src/components/DatePickerCanary/DatePickerDropdown/DatePickerDropdown.d.ts +26 -0
  294. package/__internal__/cjs-src/components/DatePickerCanary/DatePickerDropdown/DatePickerDropdown.js +22 -0
  295. package/__internal__/cjs-src/components/DatePickerCanary/DatePickerFieldTypeDate/DatePickerFieldTypeDate.d.ts +36 -0
  296. package/__internal__/cjs-src/components/DatePickerCanary/DatePickerFieldTypeDate/DatePickerFieldTypeDate.js +144 -0
  297. package/__internal__/cjs-src/components/DatePickerCanary/DatePickerFieldTypeDate/helpers.d.ts +43 -0
  298. package/__internal__/cjs-src/components/DatePickerCanary/DatePickerFieldTypeDate/helpers.js +16 -0
  299. package/__internal__/cjs-src/components/DatePickerCanary/DatePickerFieldTypeDateRange/DatePickerFieldTypeDateRange.css +11 -0
  300. package/__internal__/cjs-src/components/DatePickerCanary/DatePickerFieldTypeDateRange/DatePickerFieldTypeDateRange.d.ts +58 -0
  301. package/__internal__/cjs-src/components/DatePickerCanary/DatePickerFieldTypeDateRange/DatePickerFieldTypeDateRange.js +96 -0
  302. package/__internal__/cjs-src/components/DatePickerCanary/DatePickerFieldTypeDateRange/helpers.d.ts +31 -0
  303. package/__internal__/cjs-src/components/DatePickerCanary/DatePickerFieldTypeDateRange/helpers.js +35 -0
  304. package/__internal__/cjs-src/components/DatePickerCanary/DatePickerTypeDate/DatePickerTypeDate.d.ts +2 -0
  305. package/__internal__/cjs-src/components/DatePickerCanary/DatePickerTypeDate/DatePickerTypeDate.js +60 -0
  306. package/__internal__/cjs-src/components/DatePickerCanary/DatePickerTypeDateRange/DatePickerTypeDateRange.d.ts +2 -0
  307. package/__internal__/cjs-src/components/DatePickerCanary/DatePickerTypeDateRange/DatePickerTypeDateRange.js +126 -0
  308. package/__internal__/cjs-src/components/DatePickerCanary/helpers.d.ts +185 -0
  309. package/__internal__/cjs-src/components/DatePickerCanary/helpers.js +28 -0
  310. package/__internal__/cjs-src/components/DateTimeCanary/DateTimeItem/DateTimeItem.d.ts +1 -1
  311. package/__internal__/cjs-src/components/DateTimeCanary/DateTimeTypeDate/DateTimeTypeDate.js +4 -4
  312. package/__internal__/cjs-src/components/DateTimeCanary/helpers/getDaysOfMonth.js +1 -1
  313. package/__internal__/cjs-src/components/DateTimeCanary/helpers/getMonthsOfYear.js +1 -1
  314. package/__internal__/cjs-src/components/DateTimeCanary/helpers/getYearsOfDecade.js +1 -1
  315. package/__internal__/cjs-src/components/DateTimeCanary/helpers/isDateInRange.d.ts +1 -1
  316. package/__internal__/cjs-src/components/DateTimeCanary/helpers/isDateInRange.js +7 -2
  317. package/__internal__/cjs-src/components/EventInterceptor/eventInterceptorMap.d.ts +41 -1
  318. package/__internal__/cjs-src/components/EventInterceptor/propsHandlers/useTextFieldEventsHandler.d.ts +41 -1
  319. package/__internal__/cjs-src/components/FieldLabel/FieldLabel.css +4 -0
  320. package/__internal__/cjs-src/components/FieldLabel/FieldLabel.d.ts +2 -0
  321. package/__internal__/cjs-src/components/FieldLabel/FieldLabel.js +5 -2
  322. package/__internal__/cjs-src/components/Header/Login/HeaderLogin.d.ts +1 -1
  323. package/__internal__/cjs-src/components/Modal/Modal.css +5 -0
  324. package/__internal__/cjs-src/components/Modal/Modal.js +1 -1
  325. package/__internal__/cjs-src/components/ProgressSpin/ProgressSpin.d.ts +1 -1
  326. package/__internal__/cjs-src/components/ProgressSpin/ProgressSpin.js +14 -4
  327. package/__internal__/cjs-src/components/ProgressStepBarCanary/ProgressStepBar.css +25 -0
  328. package/__internal__/cjs-src/components/ProgressStepBarCanary/ProgressStepBarCanary.d.ts +3 -0
  329. package/__internal__/cjs-src/components/ProgressStepBarCanary/ProgressStepBarCanary.js +59 -0
  330. package/__internal__/cjs-src/components/ProgressStepBarCanary/ProgressStepBarItem/ProgressStepBarItem.css +170 -0
  331. package/__internal__/cjs-src/components/ProgressStepBarCanary/ProgressStepBarItem/ProgressStepBarItem.d.ts +3 -0
  332. package/__internal__/cjs-src/components/ProgressStepBarCanary/ProgressStepBarItem/ProgressStepBarItem.js +69 -0
  333. package/__internal__/cjs-src/components/ProgressStepBarCanary/ProgressStepBarLine/ProgressStepBarLine.css +54 -0
  334. package/__internal__/cjs-src/components/ProgressStepBarCanary/ProgressStepBarLine/ProgressStepBarLine.d.ts +11 -0
  335. package/__internal__/cjs-src/components/ProgressStepBarCanary/ProgressStepBarLine/ProgressStepBarLine.js +45 -0
  336. package/__internal__/cjs-src/components/ProgressStepBarCanary/helpers.d.ts +121 -0
  337. package/__internal__/cjs-src/components/ProgressStepBarCanary/helpers.js +51 -0
  338. package/__internal__/cjs-src/components/Select/Select.js +4 -4
  339. package/__internal__/cjs-src/components/Select/helpers.d.ts +2 -0
  340. package/__internal__/cjs-src/components/SelectComponents/SelectContainer/SelectContainer.d.ts +3 -1
  341. package/__internal__/cjs-src/components/SelectComponents/SelectContainer/SelectContainer.js +2 -2
  342. package/__internal__/cjs-src/components/SelectComponents/SelectDropdown/SelectDropdown.d.ts +1 -0
  343. package/__internal__/cjs-src/components/SelectComponents/SelectDropdown/SelectDropdown.js +2 -2
  344. package/__internal__/cjs-src/components/Table/Header/TableHeader.js +8 -1
  345. package/__internal__/cjs-src/components/Table/Table.d.ts +5 -1
  346. package/__internal__/cjs-src/components/Table/TextFilter/TableTextFilter.js +2 -1
  347. package/__internal__/cjs-src/components/Table/helpers.d.ts +2 -0
  348. package/__internal__/cjs-src/components/TextField/TextField.css +85 -0
  349. package/__internal__/cjs-src/components/TextField/TextField.js +45 -9
  350. package/__internal__/cjs-src/components/TextField/helpers.d.ts +11 -4
  351. package/__internal__/cjs-src/components/Timer/Timer.css +18 -1
  352. package/__internal__/cjs-src/components/Timer/Timer.d.ts +2 -2
  353. package/__internal__/cjs-src/components/Timer/Timer.js +2 -2
  354. package/__internal__/cjs-src/components/UserSelect/UserSelect.js +4 -4
  355. package/__internal__/cjs-src/components/UserSelect/helpers.d.ts +2 -0
  356. package/__internal__/cjs-src/hooks/useSelect/useSelect.d.ts +1 -0
  357. package/__internal__/cjs-src/hooks/useSelect/useSelect.js +13 -1
  358. package/__internal__/cjs-src/icons/Icon/Icon.css +4 -0
  359. package/__internal__/cjs-src/icons/Icon/Icon.d.ts +1 -1
  360. package/__internal__/cjs-src/utils/date/index.d.ts +5 -0
  361. package/__internal__/cjs-src/utils/date/index.js +9 -0
  362. package/__internal__/src/components/Calendar/CalendarDay/CalendarDay.d.ts +1 -1
  363. package/__internal__/src/components/Combobox/Combobox.js +4 -4
  364. package/__internal__/src/components/Combobox/helpers.d.ts +2 -0
  365. package/__internal__/src/components/DatePickerCanary/DatePickerCanary.d.ts +3 -0
  366. package/__internal__/src/components/DatePickerCanary/DatePickerCanary.js +17 -0
  367. package/__internal__/src/components/DatePickerCanary/DatePickerDropdown/DatePickerDropdown.css +68 -0
  368. package/__internal__/src/components/DatePickerCanary/DatePickerDropdown/DatePickerDropdown.d.ts +26 -0
  369. package/__internal__/src/components/DatePickerCanary/DatePickerDropdown/DatePickerDropdown.js +19 -0
  370. package/__internal__/src/components/DatePickerCanary/DatePickerFieldTypeDate/DatePickerFieldTypeDate.d.ts +36 -0
  371. package/__internal__/src/components/DatePickerCanary/DatePickerFieldTypeDate/DatePickerFieldTypeDate.js +141 -0
  372. package/__internal__/src/components/DatePickerCanary/DatePickerFieldTypeDate/helpers.d.ts +43 -0
  373. package/__internal__/src/components/DatePickerCanary/DatePickerFieldTypeDate/helpers.js +13 -0
  374. package/__internal__/src/components/DatePickerCanary/DatePickerFieldTypeDateRange/DatePickerFieldTypeDateRange.css +11 -0
  375. package/__internal__/src/components/DatePickerCanary/DatePickerFieldTypeDateRange/DatePickerFieldTypeDateRange.d.ts +58 -0
  376. package/__internal__/src/components/DatePickerCanary/DatePickerFieldTypeDateRange/DatePickerFieldTypeDateRange.js +93 -0
  377. package/__internal__/src/components/DatePickerCanary/DatePickerFieldTypeDateRange/helpers.d.ts +31 -0
  378. package/__internal__/src/components/DatePickerCanary/DatePickerFieldTypeDateRange/helpers.js +32 -0
  379. package/__internal__/src/components/DatePickerCanary/DatePickerTypeDate/DatePickerTypeDate.d.ts +2 -0
  380. package/__internal__/src/components/DatePickerCanary/DatePickerTypeDate/DatePickerTypeDate.js +57 -0
  381. package/__internal__/src/components/DatePickerCanary/DatePickerTypeDateRange/DatePickerTypeDateRange.d.ts +2 -0
  382. package/__internal__/src/components/DatePickerCanary/DatePickerTypeDateRange/DatePickerTypeDateRange.js +123 -0
  383. package/__internal__/src/components/DatePickerCanary/helpers.d.ts +185 -0
  384. package/__internal__/src/components/DatePickerCanary/helpers.js +25 -0
  385. package/__internal__/src/components/DateTimeCanary/DateTimeItem/DateTimeItem.d.ts +1 -1
  386. package/__internal__/src/components/DateTimeCanary/DateTimeTypeDate/DateTimeTypeDate.js +4 -4
  387. package/__internal__/src/components/DateTimeCanary/helpers/getDaysOfMonth.js +1 -1
  388. package/__internal__/src/components/DateTimeCanary/helpers/getMonthsOfYear.js +1 -1
  389. package/__internal__/src/components/DateTimeCanary/helpers/getYearsOfDecade.js +1 -1
  390. package/__internal__/src/components/DateTimeCanary/helpers/isDateInRange.d.ts +1 -1
  391. package/__internal__/src/components/DateTimeCanary/helpers/isDateInRange.js +7 -2
  392. package/__internal__/src/components/EventInterceptor/eventInterceptorMap.d.ts +41 -1
  393. package/__internal__/src/components/EventInterceptor/propsHandlers/useTextFieldEventsHandler.d.ts +41 -1
  394. package/__internal__/src/components/FieldLabel/FieldLabel.css +4 -0
  395. package/__internal__/src/components/FieldLabel/FieldLabel.d.ts +2 -0
  396. package/__internal__/src/components/FieldLabel/FieldLabel.js +5 -2
  397. package/__internal__/src/components/Header/Login/HeaderLogin.d.ts +1 -1
  398. package/__internal__/src/components/Modal/Modal.css +5 -0
  399. package/__internal__/src/components/Modal/Modal.js +1 -1
  400. package/__internal__/src/components/ProgressSpin/ProgressSpin.d.ts +1 -1
  401. package/__internal__/src/components/ProgressSpin/ProgressSpin.js +14 -4
  402. package/__internal__/src/components/ProgressStepBarCanary/ProgressStepBar.css +25 -0
  403. package/__internal__/src/components/ProgressStepBarCanary/ProgressStepBarCanary.d.ts +3 -0
  404. package/__internal__/src/components/ProgressStepBarCanary/ProgressStepBarCanary.js +56 -0
  405. package/__internal__/src/components/ProgressStepBarCanary/ProgressStepBarItem/ProgressStepBarItem.css +170 -0
  406. package/__internal__/src/components/ProgressStepBarCanary/ProgressStepBarItem/ProgressStepBarItem.d.ts +3 -0
  407. package/__internal__/src/components/ProgressStepBarCanary/ProgressStepBarItem/ProgressStepBarItem.js +66 -0
  408. package/__internal__/src/components/ProgressStepBarCanary/ProgressStepBarLine/ProgressStepBarLine.css +54 -0
  409. package/__internal__/src/components/ProgressStepBarCanary/ProgressStepBarLine/ProgressStepBarLine.d.ts +11 -0
  410. package/__internal__/src/components/ProgressStepBarCanary/ProgressStepBarLine/ProgressStepBarLine.js +42 -0
  411. package/__internal__/src/components/ProgressStepBarCanary/helpers.d.ts +121 -0
  412. package/__internal__/src/components/ProgressStepBarCanary/helpers.js +47 -0
  413. package/__internal__/src/components/Select/Select.js +4 -4
  414. package/__internal__/src/components/Select/helpers.d.ts +2 -0
  415. package/__internal__/src/components/SelectComponents/SelectContainer/SelectContainer.d.ts +3 -1
  416. package/__internal__/src/components/SelectComponents/SelectContainer/SelectContainer.js +2 -2
  417. package/__internal__/src/components/SelectComponents/SelectDropdown/SelectDropdown.d.ts +1 -0
  418. package/__internal__/src/components/SelectComponents/SelectDropdown/SelectDropdown.js +2 -2
  419. package/__internal__/src/components/Table/Header/TableHeader.js +8 -1
  420. package/__internal__/src/components/Table/Table.d.ts +5 -1
  421. package/__internal__/src/components/Table/TextFilter/TableTextFilter.js +2 -1
  422. package/__internal__/src/components/Table/helpers.d.ts +2 -0
  423. package/__internal__/src/components/TextField/TextField.css +85 -0
  424. package/__internal__/src/components/TextField/TextField.js +45 -9
  425. package/__internal__/src/components/TextField/helpers.d.ts +11 -4
  426. package/__internal__/src/components/Timer/Timer.css +18 -1
  427. package/__internal__/src/components/Timer/Timer.d.ts +2 -2
  428. package/__internal__/src/components/Timer/Timer.js +2 -2
  429. package/__internal__/src/components/UserSelect/UserSelect.js +4 -4
  430. package/__internal__/src/components/UserSelect/helpers.d.ts +2 -0
  431. package/__internal__/src/hooks/useSelect/useSelect.d.ts +1 -0
  432. package/__internal__/src/hooks/useSelect/useSelect.js +13 -1
  433. package/__internal__/src/icons/Icon/Icon.css +4 -0
  434. package/__internal__/src/icons/Icon/Icon.d.ts +1 -1
  435. package/__internal__/src/utils/date/index.d.ts +5 -0
  436. package/__internal__/src/utils/date/index.js +8 -0
  437. package/createIcon/package.json +1 -1
  438. package/createResponsesImage/package.json +1 -1
  439. package/package.json +4 -1
  440. package/useChoiceGroup/package.json +1 -1
  441. package/useChoiceGroupIndexed/package.json +1 -1
  442. package/useClickOutside/package.json +1 -1
  443. package/useComponentSize/package.json +1 -1
  444. package/useDebounce/package.json +1 -1
  445. package/useFlag/package.json +1 -1
  446. package/useForkRef/package.json +1 -1
  447. package/useGlobalKeys/package.json +1 -1
  448. package/useKeys/package.json +1 -1
  449. package/useMutableRef/package.json +1 -1
  450. package/usePrevious/package.json +1 -1
  451. package/useResizeObserved/package.json +1 -1
  452. package/useScrollPosition/package.json +1 -1
  453. package/useSelect/package.json +1 -1
  454. package/useThemeVars/package.json +1 -1
  455. package/useTimer/package.json +1 -1
  456. package/withTooltip/package.json +1 -1
@@ -0,0 +1,31 @@
1
+ /// <reference types="react" />
2
+ import { IconProps } from '../../../icons/Icon/Icon';
3
+ import { DateRange } from '../../../utils/types/Date';
4
+ import { TextFieldPropForm } from '../../TextField/TextField';
5
+ import { DatePickerFieldTypeDateProps } from '../DatePickerFieldTypeDate/helpers';
6
+ declare type DatePickerFieldTypeDateRangePropOnChange = (props: {
7
+ e: Event;
8
+ value: DateRange | null;
9
+ }) => void;
10
+ export declare type DatePickerFieldTypeDateRangeProps = Omit<DatePickerFieldTypeDateProps, 'onChange' | 'value' | 'inputRef' | 'leftSide' | 'rightSide' | 'id' | 'onFocus' | 'onBlur'> & {
11
+ onChange?: DatePickerFieldTypeDateRangePropOnChange;
12
+ value?: DateRange | null;
13
+ startFieldInputRef?: React.Ref<HTMLInputElement>;
14
+ endFieldInputRef?: React.Ref<HTMLInputElement>;
15
+ startFieldLeftSide?: string | React.FC<IconProps>;
16
+ startFieldRightSide?: string | React.FC<IconProps>;
17
+ endFieldLeftSide?: string | React.FC<IconProps>;
18
+ endFieldRightSide?: string | React.FC<IconProps>;
19
+ startFieldRef?: React.Ref<HTMLDivElement>;
20
+ endFieldRef?: React.Ref<HTMLDivElement>;
21
+ startFieldOnFocus?: React.FocusEventHandler<HTMLElement>;
22
+ endFieldOnFocus?: React.FocusEventHandler<HTMLElement>;
23
+ startFieldOnBlur?: React.FocusEventHandler<HTMLElement>;
24
+ endFieldOnBlur?: React.FocusEventHandler<HTMLElement>;
25
+ startFocused?: boolean;
26
+ endFocused?: boolean;
27
+ id?: string;
28
+ };
29
+ export declare const mapFormForStart: Record<TextFieldPropForm, TextFieldPropForm>;
30
+ export declare const mapFormForEnd: Record<TextFieldPropForm, TextFieldPropForm>;
31
+ export {};
@@ -0,0 +1,32 @@
1
+ export var mapFormForStart = {
2
+ "default": 'defaultClear',
3
+ defaultClear: 'defaultClear',
4
+ defaultBrick: 'defaultClear',
5
+ brick: 'brickClear',
6
+ brickDefault: 'brickClear',
7
+ brickClear: 'brickClear',
8
+ brickRound: 'brickClear',
9
+ round: 'roundClear',
10
+ roundClear: 'roundClear',
11
+ roundBrick: 'roundClear',
12
+ clearRound: 'clearClear',
13
+ clearDefault: 'clearClear',
14
+ clearBrick: 'clearClear',
15
+ clearClear: 'clearClear'
16
+ };
17
+ export var mapFormForEnd = {
18
+ "default": 'brickDefault',
19
+ defaultClear: 'brickClear',
20
+ defaultBrick: 'brick',
21
+ brick: 'brick',
22
+ brickDefault: 'brickDefault',
23
+ brickClear: 'brickClear',
24
+ brickRound: 'brickRound',
25
+ round: 'brickRound',
26
+ roundClear: 'brickClear',
27
+ roundBrick: 'brick',
28
+ clearRound: 'brickRound',
29
+ clearDefault: 'brickDefault',
30
+ clearBrick: 'brick',
31
+ clearClear: 'brickClear'
32
+ };
@@ -0,0 +1,2 @@
1
+ import { DatePickerTypeDateComponent } from '../helpers';
2
+ export declare const DatePickerTypeDate: DatePickerTypeDateComponent;
@@ -0,0 +1,57 @@
1
+ import { __assign, __read, __rest } from "tslib";
2
+ import React, { forwardRef, useEffect, useRef, useState } from 'react';
3
+ import addMonths from 'date-fns/addMonths';
4
+ import startOfMonth from 'date-fns/startOfMonth';
5
+ import { useClickOutside } from '../../../hooks/useClickOutside/useClickOutside';
6
+ import { setRef } from '../../../utils/setRef';
7
+ import { DatePickerDropdown } from '../DatePickerDropdown/DatePickerDropdown';
8
+ import { DatePickerFieldTypeDate } from '../DatePickerFieldTypeDate/DatePickerFieldTypeDate';
9
+ export var DatePickerTypeDate = forwardRef(function (props, ref) {
10
+ var events = props.events, dateTimeView = props.dateTimeView, locale = props.locale, dropdownForm = props.dropdownForm, onFocus = props.onFocus, otherProps = __rest(props, ["events", "dateTimeView", "locale", "dropdownForm", "onFocus"]);
11
+ var fieldRef = useRef(null);
12
+ var calendarRef = useRef(null);
13
+ var _a = __read(useState(false), 2), calendarVisible = _a[0], setCalendarVisible = _a[1];
14
+ var _b = __read(useState(), 2), currentVisibleDate = _b[0], setCurrentVisibleDate = _b[1];
15
+ var _c = __read(useState(), 2), calendarVisibleDate = _c[0], setCalendarVisibleDate = _c[1];
16
+ var onFocusHandler = function (e) {
17
+ onFocus && onFocus(e);
18
+ setCalendarVisible(true);
19
+ };
20
+ useEffect(function () {
21
+ if (ref) {
22
+ setRef(ref, fieldRef.current);
23
+ }
24
+ }, [ref, fieldRef]);
25
+ useEffect(function () {
26
+ if (props.value && props.dateTimeView === 'classic' && calendarVisibleDate) {
27
+ var newVisibleDate = startOfMonth(props.value);
28
+ if (newVisibleDate.getTime() !== calendarVisibleDate.getTime()) {
29
+ setCurrentVisibleDate(newVisibleDate);
30
+ }
31
+ return;
32
+ }
33
+ if (props.value && props.dateTimeView !== 'classic' && calendarVisibleDate) {
34
+ var newVisibleDate = startOfMonth(props.value);
35
+ if (newVisibleDate.getTime() !== calendarVisibleDate.getTime() &&
36
+ newVisibleDate.getTime() !== addMonths(calendarVisibleDate, 1).getTime()) {
37
+ setCurrentVisibleDate(newVisibleDate);
38
+ }
39
+ }
40
+ }, [props.value]);
41
+ var handleClose = function () {
42
+ setCalendarVisible(false);
43
+ setCurrentVisibleDate(undefined);
44
+ };
45
+ useClickOutside({
46
+ isActive: calendarVisible,
47
+ ignoreClicksInsideRefs: [fieldRef, calendarRef],
48
+ handler: handleClose
49
+ });
50
+ return (React.createElement(React.Fragment, null,
51
+ React.createElement(DatePickerFieldTypeDate, __assign({}, otherProps, { ref: fieldRef, onFocus: onFocusHandler })),
52
+ React.createElement(DatePickerDropdown, { ref: calendarRef, anchorRef: fieldRef, isOpen: calendarVisible, value: props.value || undefined, type: props.type, view: dateTimeView, events: events, locale: locale, minDate: props.minDate, maxDate: props.maxDate, currentVisibleDate: currentVisibleDate, form: dropdownForm, onChange: function (params) {
53
+ var _a;
54
+ (_a = props.onChange) === null || _a === void 0 ? void 0 : _a.call(props, params);
55
+ handleClose();
56
+ }, onChangeCurrentVisibleDate: function (date) { return setCalendarVisibleDate(date); } })));
57
+ });
@@ -0,0 +1,2 @@
1
+ import { DatePickerTypeDateRangeComponent } from '../helpers';
2
+ export declare const DatePickerTypeDateRange: DatePickerTypeDateRangeComponent;
@@ -0,0 +1,123 @@
1
+ import { __assign, __read, __rest } from "tslib";
2
+ import React, { forwardRef, useEffect, useRef, useState } from 'react';
3
+ import addMonths from 'date-fns/addMonths';
4
+ import startOfMonth from 'date-fns/startOfMonth';
5
+ import { useClickOutside } from '../../../hooks/useClickOutside/useClickOutside';
6
+ import { useForkRef } from '../../../hooks/useForkRef/useForkRef';
7
+ import { DatePickerDropdown, } from '../DatePickerDropdown/DatePickerDropdown';
8
+ import { DatePickerFieldTypeDateRange } from '../DatePickerFieldTypeDateRange/DatePickerFieldTypeDateRange';
9
+ import { normalizeRangeValue } from '../helpers';
10
+ export var DatePickerTypeDateRange = forwardRef(function (props, ref) {
11
+ var _a, _b, _c, _d;
12
+ var events = props.events, dateTimeView = props.dateTimeView, locale = props.locale, dropdownForm = props.dropdownForm, startFieldRightSide = props.startFieldRightSide, startFieldLeftSide = props.startFieldLeftSide, startFieldOnBlur = props.startFieldOnBlur, startFieldOnFocus = props.startFieldOnFocus, endFieldRightSide = props.endFieldRightSide, endFieldLeftSide = props.endFieldLeftSide, endFieldOnBlur = props.endFieldOnBlur, endFieldOnFocus = props.endFieldOnFocus, onFocus = props.onFocus, onBlur = props.onBlur, leftSide = props.leftSide, rightSide = props.rightSide, endFieldInputRefProp = props.endFieldInputRef, startFieldInputRefProp = props.startFieldInputRef, fieldProps = __rest(props, ["events", "dateTimeView", "locale", "dropdownForm", "startFieldRightSide", "startFieldLeftSide", "startFieldOnBlur", "startFieldOnFocus", "endFieldRightSide", "endFieldLeftSide", "endFieldOnBlur", "endFieldOnFocus", "onFocus", "onBlur", "leftSide", "rightSide", "endFieldInputRef", "startFieldInputRef"]);
13
+ var startFieldRef = useRef(null);
14
+ var endFieldRef = useRef(null);
15
+ var startFieldInputRef = useRef(null);
16
+ var endFieldInputRef = useRef(null);
17
+ var calendarRef = useRef(null);
18
+ var _e = __read(useState(false), 2), fieldFocused = _e[0], setFieldFocused = _e[1];
19
+ var startFocused = fieldFocused === 'start';
20
+ var endFocused = fieldFocused === 'end';
21
+ var hadleChange = function (_a) {
22
+ var _b, _c, _d, _e, _f, _g;
23
+ var e = _a.e, value = _a.value;
24
+ if (startFocused) {
25
+ (_b = props.onChange) === null || _b === void 0 ? void 0 : _b.call(props, { e: e, value: normalizeRangeValue([value, (_c = props === null || props === void 0 ? void 0 : props.value) === null || _c === void 0 ? void 0 : _c[1]]) });
26
+ (_d = endFieldInputRef.current) === null || _d === void 0 ? void 0 : _d.focus();
27
+ }
28
+ if (endFocused) {
29
+ (_e = props.onChange) === null || _e === void 0 ? void 0 : _e.call(props, { e: e, value: normalizeRangeValue([(_f = props === null || props === void 0 ? void 0 : props.value) === null || _f === void 0 ? void 0 : _f[0], value]) });
30
+ (_g = startFieldInputRef.current) === null || _g === void 0 ? void 0 : _g.focus();
31
+ }
32
+ };
33
+ var _f = __read(useState(false), 2), calendarVisible = _f[0], setCalendarVisible = _f[1];
34
+ var _g = __read(useState(), 2), currentVisibleDate = _g[0], setCurrentVisibleDate = _g[1];
35
+ var commonProps = {
36
+ value: props.value || undefined,
37
+ view: dateTimeView,
38
+ events: events,
39
+ locale: locale,
40
+ minDate: props.minDate,
41
+ maxDate: props.maxDate,
42
+ form: dropdownForm,
43
+ onChange: hadleChange
44
+ };
45
+ var startFieldOnBlurHandler = function (e) {
46
+ onBlur && onBlur(e);
47
+ startFieldOnBlur && startFieldOnBlur(e);
48
+ };
49
+ var endFieldOnBlurHandler = function (e) {
50
+ onBlur && onBlur(e);
51
+ endFieldOnBlur && endFieldOnBlur(e);
52
+ };
53
+ var startFieldOnFocusHandler = function (e) {
54
+ setFieldFocused('start');
55
+ setCalendarVisible(true);
56
+ onFocus && onFocus(e);
57
+ startFieldOnFocus && startFieldOnFocus(e);
58
+ };
59
+ var endFieldOnFocusHandler = function (e) {
60
+ setFieldFocused('end');
61
+ setCalendarVisible(true);
62
+ onFocus && onFocus(e);
63
+ endFieldOnFocus && endFieldOnFocus(e);
64
+ };
65
+ // эфект для того чтобы календарь переключался при вводе с клавиатуры
66
+ useEffect(function () {
67
+ var _a, _b;
68
+ if (((_a = props.value) === null || _a === void 0 ? void 0 : _a[0]) &&
69
+ props.dateTimeView === 'classic' &&
70
+ currentVisibleDate &&
71
+ startFocused) {
72
+ var newVisibleDate = startOfMonth(props.value[0]);
73
+ if (newVisibleDate.getTime() !== currentVisibleDate.getTime()) {
74
+ setCurrentVisibleDate(newVisibleDate);
75
+ }
76
+ return;
77
+ }
78
+ if (((_b = props.value) === null || _b === void 0 ? void 0 : _b[0]) &&
79
+ props.dateTimeView !== 'classic' &&
80
+ currentVisibleDate &&
81
+ startFocused) {
82
+ var newVisibleDate = startOfMonth(props.value[0]);
83
+ if (newVisibleDate.getTime() !== currentVisibleDate.getTime() &&
84
+ newVisibleDate.getTime() !== addMonths(currentVisibleDate, 1).getTime()) {
85
+ setCurrentVisibleDate(newVisibleDate);
86
+ }
87
+ }
88
+ }, [(_b = (_a = props.value) === null || _a === void 0 ? void 0 : _a[0]) === null || _b === void 0 ? void 0 : _b.getTime(), calendarVisible]);
89
+ useEffect(function () {
90
+ var _a, _b;
91
+ if (((_a = props.value) === null || _a === void 0 ? void 0 : _a[1]) &&
92
+ props.dateTimeView === 'classic' &&
93
+ currentVisibleDate &&
94
+ endFocused) {
95
+ var newVisibleDate = startOfMonth(props.value[1]);
96
+ if (newVisibleDate.getTime() !== currentVisibleDate.getTime()) {
97
+ setCurrentVisibleDate(newVisibleDate);
98
+ }
99
+ return;
100
+ }
101
+ if (((_b = props.value) === null || _b === void 0 ? void 0 : _b[1]) &&
102
+ props.dateTimeView !== 'classic' &&
103
+ currentVisibleDate &&
104
+ endFocused) {
105
+ var newVisibleDate = startOfMonth(props.value[1]);
106
+ if (newVisibleDate.getTime() !== currentVisibleDate.getTime() &&
107
+ newVisibleDate.getTime() !== addMonths(currentVisibleDate, 1).getTime()) {
108
+ setCurrentVisibleDate(addMonths(newVisibleDate, -1));
109
+ }
110
+ }
111
+ }, [(_d = (_c = props.value) === null || _c === void 0 ? void 0 : _c[1]) === null || _d === void 0 ? void 0 : _d.getTime(), calendarVisible]);
112
+ useClickOutside({
113
+ isActive: calendarVisible,
114
+ ignoreClicksInsideRefs: [startFieldRef, endFieldRef, calendarRef],
115
+ handler: function () {
116
+ setFieldFocused(false);
117
+ setCalendarVisible(false);
118
+ }
119
+ });
120
+ return (React.createElement(React.Fragment, null,
121
+ React.createElement(DatePickerFieldTypeDateRange, __assign({}, fieldProps, { ref: ref, startFieldRef: startFieldRef, endFieldRef: endFieldRef, startFieldInputRef: useForkRef([startFieldInputRef, startFieldInputRefProp]), endFieldInputRef: useForkRef([endFieldInputRef, endFieldInputRefProp]), startFieldOnFocus: startFieldOnFocusHandler, endFieldOnFocus: endFieldOnFocusHandler, startFieldRightSide: startFieldRightSide, startFieldLeftSide: startFieldLeftSide || leftSide, endFieldRightSide: endFieldRightSide || rightSide, endFieldLeftSide: endFieldLeftSide, startFieldOnBlur: startFieldOnBlurHandler, endFieldOnBlur: endFieldOnBlurHandler, startFocused: startFocused, endFocused: endFocused })),
122
+ React.createElement(DatePickerDropdown, __assign({}, commonProps, { ref: calendarRef, anchorRef: startFieldRef, isOpen: calendarVisible, onChangeCurrentVisibleDate: function (date) { return setCurrentVisibleDate(date); }, currentVisibleDate: currentVisibleDate }))));
123
+ });
@@ -0,0 +1,185 @@
1
+ /// <reference types="react" />
2
+ import { Locale } from 'date-fns';
3
+ import { IconProps, IconPropSize } from '../../icons/Icon/Icon';
4
+ import { DateRange } from '../../utils/types/Date';
5
+ import { PropsWithHTMLAttributesAndRef } from '../../utils/types/PropsWithHTMLAttributes';
6
+ import { DateTimePropView } from '../DateTimeCanary/helpers';
7
+ import { TextFieldPropForm, TextFieldPropSize, TextFieldPropStatus, TextFieldPropView, TextFieldPropWidth } from '../TextField/TextField';
8
+ export declare const datePickerPropType: readonly ["date", "date-range"];
9
+ export declare type DatePickerPropType = typeof datePickerPropType[number];
10
+ export declare const datePickerPropTypeDefault: "date";
11
+ export declare type DatePickerPropDateTimeView = DateTimePropView;
12
+ export declare const datePickerErrorTypes: readonly ["outOfRange", "invalidInputAttempt", "startDateIsGreaterThanEndDate"];
13
+ export declare type DatePickerPropValue<TYPE extends DatePickerPropType> = (TYPE extends 'date' ? Date : DateRange) | null;
14
+ export declare type DatePickerPropOnChange<TYPE extends DatePickerPropType> = (props: {
15
+ value: DatePickerPropValue<TYPE>;
16
+ e: React.MouseEvent<HTMLButtonElement, MouseEvent> | Event;
17
+ }) => void;
18
+ export declare const datePickerPropDropdownForm: readonly ["default", "brick", "round"];
19
+ export declare type DatePickerPropDropdownForm = typeof datePickerPropDropdownForm[number];
20
+ export declare const datePickerPropDropdownFormDefault: "default";
21
+ declare type DatePickerPropCalendarWidth<TYPE> = TYPE extends 'date' ? TextFieldPropWidth : never;
22
+ declare type DatePickerPropCalendarInputRef<TYPE> = TYPE extends 'date' ? React.Ref<HTMLInputElement> : never;
23
+ declare type DatePickerPropCalendarStartInputRef<TYPE> = TYPE extends 'date-range' ? React.Ref<HTMLInputElement> : never;
24
+ declare type DatePickerPropCalendarStartLeftSide<TYPE> = TYPE extends 'date-range' ? string | React.FC<IconProps> : never;
25
+ declare type DatePickerPropCalendarStartOnFocus<TYPE> = TYPE extends 'date-range' ? React.FocusEventHandler<HTMLElement> : never;
26
+ export declare type DatePickerProps<TYPE extends DatePickerPropType = 'date'> = PropsWithHTMLAttributesAndRef<{
27
+ type?: TYPE;
28
+ value?: DatePickerPropValue<TYPE>;
29
+ onChange?: DatePickerPropOnChange<TYPE>;
30
+ minDate?: Date;
31
+ maxDate?: Date;
32
+ events?: Date[];
33
+ dateTimeView?: DatePickerPropDateTimeView;
34
+ locale?: Locale;
35
+ children?: never;
36
+ onError?: DatePickerPropOnError;
37
+ id?: string;
38
+ name?: string;
39
+ disabled?: boolean;
40
+ size?: TextFieldPropSize;
41
+ view?: TextFieldPropView;
42
+ form?: TextFieldPropForm;
43
+ status?: TextFieldPropStatus;
44
+ onFocus?: React.FocusEventHandler<HTMLElement>;
45
+ onBlur?: React.FocusEventHandler<HTMLElement>;
46
+ autoFocus?: boolean;
47
+ placeholder?: string;
48
+ readOnly?: boolean;
49
+ required?: boolean;
50
+ tabIndex?: number;
51
+ inputRef?: DatePickerPropCalendarInputRef<TYPE>;
52
+ ariaLabel?: string;
53
+ iconSize?: IconPropSize;
54
+ format?: string;
55
+ separator?: string;
56
+ dropdownForm?: DatePickerPropDropdownForm;
57
+ width?: DatePickerPropCalendarWidth<TYPE>;
58
+ leftSide?: string | React.FC<IconProps>;
59
+ rightSide?: string | React.FC<IconProps>;
60
+ startFieldInputRef?: DatePickerPropCalendarStartInputRef<TYPE>;
61
+ endFieldInputRef?: DatePickerPropCalendarStartInputRef<TYPE>;
62
+ startFieldLeftSide?: DatePickerPropCalendarStartLeftSide<TYPE>;
63
+ startFieldRightSide?: DatePickerPropCalendarStartLeftSide<TYPE>;
64
+ endFieldLeftSide?: DatePickerPropCalendarStartLeftSide<TYPE>;
65
+ endFieldRightSide?: DatePickerPropCalendarStartLeftSide<TYPE>;
66
+ startFieldOnFocus?: DatePickerPropCalendarStartOnFocus<TYPE>;
67
+ endFieldOnFocus?: DatePickerPropCalendarStartOnFocus<TYPE>;
68
+ startFieldOnBlur?: DatePickerPropCalendarStartOnFocus<TYPE>;
69
+ endFieldOnBlur?: DatePickerPropCalendarStartOnFocus<TYPE>;
70
+ }, HTMLDivElement>;
71
+ export declare type DatePickerComponent = <TYPE extends DatePickerPropType = 'date'>(props: DatePickerProps<TYPE>) => React.ReactElement | null;
72
+ export declare type DatePickerTypeDateComponent = (props: DatePickerProps<'date'>) => React.ReactElement | null;
73
+ export declare type DatePickerTypeDateRangeComponent = (props: DatePickerProps<'date-range'>) => React.ReactElement | null;
74
+ export declare type DatePickerPropOnError = (props: {
75
+ type: typeof datePickerErrorTypes[0];
76
+ stringValue: string;
77
+ dd?: string;
78
+ MM?: string;
79
+ yyyy?: string;
80
+ date: Date;
81
+ } | {
82
+ type: typeof datePickerErrorTypes[1];
83
+ stringValue: string;
84
+ dd?: string;
85
+ MM?: string;
86
+ yyyy?: string;
87
+ } | {
88
+ type: typeof datePickerErrorTypes[2];
89
+ date: [Date, Date];
90
+ }) => void;
91
+ export declare const isDateRangeParams: (params: DatePickerProps<DatePickerPropType>) => params is PropsWithHTMLAttributesAndRef<{
92
+ type?: "date-range" | undefined;
93
+ value?: DateRange | null | undefined;
94
+ onChange?: DatePickerPropOnChange<"date-range"> | undefined;
95
+ minDate?: Date | undefined;
96
+ maxDate?: Date | undefined;
97
+ events?: Date[] | undefined;
98
+ dateTimeView?: "slider" | "classic" | "book" | undefined;
99
+ locale?: globalThis.Locale | undefined;
100
+ children?: undefined;
101
+ onError?: DatePickerPropOnError | undefined;
102
+ id?: string | undefined;
103
+ name?: string | undefined;
104
+ disabled?: boolean | undefined;
105
+ size?: "xs" | "s" | "m" | "l" | undefined;
106
+ view?: "default" | "clear" | undefined;
107
+ form?: "default" | "round" | "brick" | "clearRound" | "roundClear" | "clearDefault" | "defaultClear" | "defaultBrick" | "brickDefault" | "brickClear" | "clearBrick" | "clearClear" | "brickRound" | "roundBrick" | undefined;
108
+ status?: "alert" | "success" | "warning" | undefined;
109
+ onFocus?: ((event: import("react").FocusEvent<HTMLElement>) => void) | undefined;
110
+ onBlur?: ((event: import("react").FocusEvent<HTMLElement>) => void) | undefined;
111
+ autoFocus?: boolean | undefined;
112
+ placeholder?: string | undefined;
113
+ readOnly?: boolean | undefined;
114
+ required?: boolean | undefined;
115
+ tabIndex?: number | undefined;
116
+ inputRef?: undefined;
117
+ ariaLabel?: string | undefined;
118
+ iconSize?: "xs" | "s" | "m" | undefined;
119
+ format?: string | undefined;
120
+ separator?: string | undefined;
121
+ dropdownForm?: "default" | "round" | "brick" | undefined;
122
+ width?: undefined;
123
+ leftSide?: string | import("react").FC<import("../../utils/types/PropsWithHTMLAttributes").PropsWithHTMLAttributes<import("../../icons/Icon/Icon").Props, HTMLSpanElement>> | undefined;
124
+ rightSide?: string | import("react").FC<import("../../utils/types/PropsWithHTMLAttributes").PropsWithHTMLAttributes<import("../../icons/Icon/Icon").Props, HTMLSpanElement>> | undefined;
125
+ startFieldInputRef?: ((instance: HTMLInputElement | null) => void) | import("react").RefObject<HTMLInputElement> | null | undefined;
126
+ endFieldInputRef?: ((instance: HTMLInputElement | null) => void) | import("react").RefObject<HTMLInputElement> | null | undefined;
127
+ startFieldLeftSide?: string | import("react").FC<import("../../utils/types/PropsWithHTMLAttributes").PropsWithHTMLAttributes<import("../../icons/Icon/Icon").Props, HTMLSpanElement>> | undefined;
128
+ startFieldRightSide?: string | import("react").FC<import("../../utils/types/PropsWithHTMLAttributes").PropsWithHTMLAttributes<import("../../icons/Icon/Icon").Props, HTMLSpanElement>> | undefined;
129
+ endFieldLeftSide?: string | import("react").FC<import("../../utils/types/PropsWithHTMLAttributes").PropsWithHTMLAttributes<import("../../icons/Icon/Icon").Props, HTMLSpanElement>> | undefined;
130
+ endFieldRightSide?: string | import("react").FC<import("../../utils/types/PropsWithHTMLAttributes").PropsWithHTMLAttributes<import("../../icons/Icon/Icon").Props, HTMLSpanElement>> | undefined;
131
+ startFieldOnFocus?: ((event: import("react").FocusEvent<HTMLElement>) => void) | undefined;
132
+ endFieldOnFocus?: ((event: import("react").FocusEvent<HTMLElement>) => void) | undefined;
133
+ startFieldOnBlur?: ((event: import("react").FocusEvent<HTMLElement>) => void) | undefined;
134
+ endFieldOnBlur?: ((event: import("react").FocusEvent<HTMLElement>) => void) | undefined;
135
+ }, HTMLDivElement>;
136
+ export declare const isNotDateRangeParams: (params: DatePickerProps<DatePickerPropType>) => params is PropsWithHTMLAttributesAndRef<{
137
+ type?: "date" | undefined;
138
+ value?: Date | null | undefined;
139
+ onChange?: DatePickerPropOnChange<"date"> | undefined;
140
+ minDate?: Date | undefined;
141
+ maxDate?: Date | undefined;
142
+ events?: Date[] | undefined;
143
+ dateTimeView?: "slider" | "classic" | "book" | undefined;
144
+ locale?: globalThis.Locale | undefined;
145
+ children?: undefined;
146
+ onError?: DatePickerPropOnError | undefined;
147
+ id?: string | undefined;
148
+ name?: string | undefined;
149
+ disabled?: boolean | undefined;
150
+ size?: "xs" | "s" | "m" | "l" | undefined;
151
+ view?: "default" | "clear" | undefined;
152
+ form?: "default" | "round" | "brick" | "clearRound" | "roundClear" | "clearDefault" | "defaultClear" | "defaultBrick" | "brickDefault" | "brickClear" | "clearBrick" | "clearClear" | "brickRound" | "roundBrick" | undefined;
153
+ status?: "alert" | "success" | "warning" | undefined;
154
+ onFocus?: ((event: import("react").FocusEvent<HTMLElement>) => void) | undefined;
155
+ onBlur?: ((event: import("react").FocusEvent<HTMLElement>) => void) | undefined;
156
+ autoFocus?: boolean | undefined;
157
+ placeholder?: string | undefined;
158
+ readOnly?: boolean | undefined;
159
+ required?: boolean | undefined;
160
+ tabIndex?: number | undefined;
161
+ inputRef?: ((instance: HTMLInputElement | null) => void) | import("react").RefObject<HTMLInputElement> | null | undefined;
162
+ ariaLabel?: string | undefined;
163
+ iconSize?: "xs" | "s" | "m" | undefined;
164
+ format?: string | undefined;
165
+ separator?: string | undefined;
166
+ dropdownForm?: "default" | "round" | "brick" | undefined;
167
+ width?: "default" | "full" | undefined;
168
+ leftSide?: string | import("react").FC<import("../../utils/types/PropsWithHTMLAttributes").PropsWithHTMLAttributes<import("../../icons/Icon/Icon").Props, HTMLSpanElement>> | undefined;
169
+ rightSide?: string | import("react").FC<import("../../utils/types/PropsWithHTMLAttributes").PropsWithHTMLAttributes<import("../../icons/Icon/Icon").Props, HTMLSpanElement>> | undefined;
170
+ startFieldInputRef?: undefined;
171
+ endFieldInputRef?: undefined;
172
+ startFieldLeftSide?: undefined;
173
+ startFieldRightSide?: undefined;
174
+ endFieldLeftSide?: undefined;
175
+ endFieldRightSide?: undefined;
176
+ startFieldOnFocus?: undefined;
177
+ endFieldOnFocus?: undefined;
178
+ startFieldOnBlur?: undefined;
179
+ endFieldOnBlur?: undefined;
180
+ }, HTMLDivElement>;
181
+ export declare const datePickerPropSeparatorDefault = ".";
182
+ export declare const datePickerPropFormatDefault: string;
183
+ export declare const datePickerPropPlaceholderDefault: string;
184
+ export declare const normalizeRangeValue: (dateRange: DateRange) => DateRange;
185
+ export {};
@@ -0,0 +1,25 @@
1
+ export var datePickerPropType = ['date', 'date-range'];
2
+ export var datePickerPropTypeDefault = datePickerPropType[0];
3
+ export var datePickerErrorTypes = [
4
+ 'outOfRange',
5
+ 'invalidInputAttempt',
6
+ 'startDateIsGreaterThanEndDate',
7
+ ];
8
+ export var datePickerPropDropdownForm = ['default', 'brick', 'round'];
9
+ export var datePickerPropDropdownFormDefault = datePickerPropDropdownForm[0];
10
+ export var isDateRangeParams = function (params) {
11
+ return params.type === datePickerPropType[1];
12
+ };
13
+ export var isNotDateRangeParams = function (params) {
14
+ return params.type === datePickerPropType[0];
15
+ };
16
+ export var datePickerPropSeparatorDefault = '.';
17
+ export var datePickerPropFormatDefault = "dd" + datePickerPropSeparatorDefault + "MM" + datePickerPropSeparatorDefault + "yyyy";
18
+ export var datePickerPropPlaceholderDefault = "\u0414\u0414" + datePickerPropSeparatorDefault + "\u041C\u041C" + datePickerPropSeparatorDefault + "\u0413\u0413\u0413\u0413";
19
+ export var normalizeRangeValue = function (dateRange) {
20
+ var _a, _b;
21
+ if (dateRange[0] && dateRange[1] && ((_a = dateRange[0]) === null || _a === void 0 ? void 0 : _a.getTime()) > ((_b = dateRange[1]) === null || _b === void 0 ? void 0 : _b.getTime())) {
22
+ return [dateRange[1], dateRange[0]];
23
+ }
24
+ return dateRange;
25
+ };
@@ -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" | "form" | "key" | "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" | "form" | "label" | "key" | "name" | "type" | "autoFocus" | "disabled" | "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" | "form" | "label" | "key" | "name" | "type" | "autoFocus" | "disabled" | "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" | "form" | "key" | "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" | "form" | "label" | "key" | "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" | "form" | "label" | "key" | "name" | "type" | "autoFocus" | "formAction" | "formEncType" | "formMethod" | "formNoValidate" | "formTarget" | "value" | "selected" | "current" | "event"> & React.RefAttributes<HTMLButtonElement>>;
@@ -12,19 +12,19 @@ import { getDaysOfMonth, getDaysOfWeek, getHandleSelectDate, getMouthLabelWithYe
12
12
  import { dateTimePropView, dateTimePropViewDefault } from '../helpers/types';
13
13
  import { cnDateTimeMixLayout } from '../mixs';
14
14
  export var DateTimeTypeDate = forwardRef(function (props, ref) {
15
- var className = props.className, minDate = props.minDate, maxDate = props.maxDate, value = props.value, onChange = props.onChange, onChangeRange = props.onChangeRange, _a = props.currentVisibleDate, currentVisibleDateProp = _a === void 0 ? new Date() : _a, events = props.events, _b = props.locale, locale = _b === void 0 ? ruLocale : _b, _c = props.view, view = _c === void 0 ? dateTimePropViewDefault : _c, onMove = props.onMove, onChangeCurrentVisibleDate = props.onChangeCurrentVisibleDate, otherProps = __rest(props, ["className", "minDate", "maxDate", "value", "onChange", "onChangeRange", "currentVisibleDate", "events", "locale", "view", "onMove", "onChangeCurrentVisibleDate"]);
16
- var _d = __read(useFlag(), 2), changeMonth = _d[0], _e = _d[1], on = _e.on, off = _e.off;
15
+ var className = props.className, minDate = props.minDate, maxDate = props.maxDate, value = props.value, onChange = props.onChange, onChangeRange = props.onChangeRange, currentVisibleDateProp = props.currentVisibleDate, events = props.events, _a = props.locale, locale = _a === void 0 ? ruLocale : _a, _b = props.view, view = _b === void 0 ? dateTimePropViewDefault : _b, onMove = props.onMove, onChangeCurrentVisibleDate = props.onChangeCurrentVisibleDate, otherProps = __rest(props, ["className", "minDate", "maxDate", "value", "onChange", "onChangeRange", "currentVisibleDate", "events", "locale", "view", "onMove", "onChangeCurrentVisibleDate"]);
16
+ var _c = __read(useFlag(), 2), changeMonth = _c[0], _d = _c[1], on = _d.on, off = _d.off;
17
17
  useEffect(function () {
18
18
  !changeMonth && (onMove === null || onMove === void 0 ? void 0 : onMove(moveTypes[2]));
19
19
  }, [changeMonth]);
20
- var _f = __read(useCurrentVisibleDate({
20
+ var _e = __read(useCurrentVisibleDate({
21
21
  currentVisibleDate: currentVisibleDateProp,
22
22
  maxDate: maxDate,
23
23
  minDate: minDate,
24
24
  value: value,
25
25
  startOfUnit: startOfMonth,
26
26
  onChangeCurrentVisibleDate: onChangeCurrentVisibleDate
27
- }), 2), currentVisibleDate = _f[0], setCurrentVisibleDate = _f[1];
27
+ }), 2), currentVisibleDate = _e[0], setCurrentVisibleDate = _e[1];
28
28
  if (changeMonth) {
29
29
  return (React.createElement(DateTimeTypeMonth, __assign({}, otherProps, { ref: ref, className: className, minDate: minDate, maxDate: maxDate, locale: locale, events: events, currentVisibleDate: currentVisibleDate, view: view, onChange: function (_a) {
30
30
  var value = _a.value;
@@ -35,7 +35,7 @@ export var getDaysOfMonth = function (props) {
35
35
  label: label,
36
36
  onClick: onClick,
37
37
  selected: isSelected({ date: date, value: value }),
38
- range: Array.isArray(value) && isDateInRange(date, value),
38
+ range: Array.isArray(value) && isDateInRange(date, value, startOfDay),
39
39
  event: events && hasEvent(date, events),
40
40
  current: isToday(date),
41
41
  disabled: disabled
@@ -34,7 +34,7 @@ export var getMonthsOfYear = function (props) {
34
34
  label: label,
35
35
  onClick: onClick,
36
36
  selected: isSelected({ date: date, value: value }),
37
- range: Array.isArray(value) && isDateInRange(date, value),
37
+ range: Array.isArray(value) && isDateInRange(date, value, startOfMonth),
38
38
  event: events && hasEvent(date, events),
39
39
  current: isCurrent(date),
40
40
  disabled: disabled