@consta/uikit 3.21.2 → 3.22.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (371) 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 +17 -12
  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/ChoiceGroup/package.json +1 -1
  15. package/Collapse/package.json +1 -1
  16. package/CollapseGroup/package.json +1 -1
  17. package/Combobox/package.json +1 -1
  18. package/ComboboxDeprecated/package.json +1 -1
  19. package/ContextMenu/package.json +1 -1
  20. package/ContextMenuCanary/package.json +1 -1
  21. package/DatePickerCanary/package.json +1 -1
  22. package/DateTimeCanary/package.json +1 -1
  23. package/DragNDropField/package.json +1 -1
  24. package/EventInterceptor/package.json +1 -1
  25. package/FieldCaption/package.json +1 -1
  26. package/FieldLabel/package.json +1 -1
  27. package/File/package.json +1 -1
  28. package/FileField/package.json +1 -1
  29. package/FileIcon/package.json +1 -1
  30. package/FileIconAvi/package.json +1 -1
  31. package/FileIconBmp/package.json +1 -1
  32. package/FileIconCsv/package.json +1 -1
  33. package/FileIconDoc/package.json +1 -1
  34. package/FileIconExe/package.json +1 -1
  35. package/FileIconGif/package.json +1 -1
  36. package/FileIconJpg/package.json +1 -1
  37. package/FileIconJson/package.json +1 -1
  38. package/FileIconLoading/package.json +1 -1
  39. package/FileIconMov/package.json +1 -1
  40. package/FileIconMp3/package.json +1 -1
  41. package/FileIconMp4/package.json +1 -1
  42. package/FileIconPdf/package.json +1 -1
  43. package/FileIconPng/package.json +1 -1
  44. package/FileIconPtt/package.json +1 -1
  45. package/FileIconRar/package.json +1 -1
  46. package/FileIconRtf/package.json +1 -1
  47. package/FileIconTiff/package.json +1 -1
  48. package/FileIconTxt/package.json +1 -1
  49. package/FileIconUndefined/package.json +1 -1
  50. package/FileIconWav/package.json +1 -1
  51. package/FileIconXls/package.json +1 -1
  52. package/FileIconZip/package.json +1 -1
  53. package/Grid/package.json +1 -1
  54. package/Header/package.json +1 -1
  55. package/Icon/package.json +1 -1
  56. package/IconAdd/package.json +1 -1
  57. package/IconAddToComparison/package.json +1 -1
  58. package/IconAlert/package.json +1 -1
  59. package/IconAlignBlocksLeft/package.json +1 -1
  60. package/IconAlignBlocksRight/package.json +1 -1
  61. package/IconAlignCenter/package.json +1 -1
  62. package/IconAlignJustify/package.json +1 -1
  63. package/IconAlignLeft/package.json +1 -1
  64. package/IconAlignRight/package.json +1 -1
  65. package/IconAllDone/package.json +1 -1
  66. package/IconArrowDown/package.json +1 -1
  67. package/IconArrowLeft/package.json +1 -1
  68. package/IconArrowRight/package.json +1 -1
  69. package/IconArrowUp/package.json +1 -1
  70. package/IconArtBrush/package.json +1 -1
  71. package/IconAttach/package.json +1 -1
  72. package/IconBackward/package.json +1 -1
  73. package/IconBag/package.json +1 -1
  74. package/IconBarrier/package.json +1 -1
  75. package/IconBento/package.json +1 -1
  76. package/IconBold/package.json +1 -1
  77. package/IconBook/package.json +1 -1
  78. package/IconBookmarkFilled/package.json +1 -1
  79. package/IconBookmarkStroked/package.json +1 -1
  80. package/IconCalculator/package.json +1 -1
  81. package/IconCalendar/package.json +1 -1
  82. package/IconCamera/package.json +1 -1
  83. package/IconCancel/package.json +1 -1
  84. package/IconCards/package.json +1 -1
  85. package/IconChat/package.json +1 -1
  86. package/IconCheck/package.json +1 -1
  87. package/IconClose/package.json +1 -1
  88. package/IconCollapse/package.json +1 -1
  89. package/IconColorFill/package.json +1 -1
  90. package/IconColorText/package.json +1 -1
  91. package/IconColumns/package.json +1 -1
  92. package/IconComment/package.json +1 -1
  93. package/IconConnection/package.json +1 -1
  94. package/IconCopy/package.json +1 -1
  95. package/IconCrown/package.json +1 -1
  96. package/IconCursorMouse/package.json +1 -1
  97. package/IconDataNull/package.json +1 -1
  98. package/IconDiamond/package.json +1 -1
  99. package/IconDinosaur/package.json +1 -1
  100. package/IconDisconnection/package.json +1 -1
  101. package/IconDocAdd/package.json +1 -1
  102. package/IconDocBlank/package.json +1 -1
  103. package/IconDocDelete/package.json +1 -1
  104. package/IconDocExport/package.json +1 -1
  105. package/IconDocFilled/package.json +1 -1
  106. package/IconDown/package.json +1 -1
  107. package/IconDownload/package.json +1 -1
  108. package/IconDrag/package.json +1 -1
  109. package/IconDraggable/package.json +1 -1
  110. package/IconDrillingRig/package.json +1 -1
  111. package/IconDrop/package.json +1 -1
  112. package/IconEdit/package.json +1 -1
  113. package/IconExit/package.json +1 -1
  114. package/IconExpand/package.json +1 -1
  115. package/IconEye/package.json +1 -1
  116. package/IconEyeClose/package.json +1 -1
  117. package/IconFacebook/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/IconHome/package.json +1 -1
  133. package/IconInComparison/package.json +1 -1
  134. package/IconInfo/package.json +1 -1
  135. package/IconInstagram/package.json +1 -1
  136. package/IconIntroduction/package.json +1 -1
  137. package/IconIpad/package.json +1 -1
  138. package/IconItalic/package.json +1 -1
  139. package/IconKebab/package.json +1 -1
  140. package/IconLaptop/package.json +1 -1
  141. package/IconLayers/package.json +1 -1
  142. package/IconLeaf/package.json +1 -1
  143. package/IconLightningBolt/package.json +1 -1
  144. package/IconLineAndBarChart/package.json +1 -1
  145. package/IconLink/package.json +1 -1
  146. package/IconList/package.json +1 -1
  147. package/IconListNumbered/package.json +1 -1
  148. package/IconLock/package.json +1 -1
  149. package/IconLogicalElement/package.json +1 -1
  150. package/IconMBU/package.json +1 -1
  151. package/IconMGRP/package.json +1 -1
  152. package/IconMLSP/package.json +1 -1
  153. package/IconMMP/package.json +1 -1
  154. package/IconMail/package.json +1 -1
  155. package/IconMap/package.json +1 -1
  156. package/IconMaxHeight/package.json +1 -1
  157. package/IconMaxWidth/package.json +1 -1
  158. package/IconMeatball/package.json +1 -1
  159. package/IconMic/package.json +1 -1
  160. package/IconMolecules/package.json +1 -1
  161. package/IconMoon/package.json +1 -1
  162. package/IconNodeEnd/package.json +1 -1
  163. package/IconNodeStart/package.json +1 -1
  164. package/IconNodeStep/package.json +1 -1
  165. package/IconNodes/package.json +1 -1
  166. package/IconOpenInNew/package.json +1 -1
  167. package/IconOperators/package.json +1 -1
  168. package/IconPanelBottom/package.json +1 -1
  169. package/IconPanelLeft/package.json +1 -1
  170. package/IconPanelRight/package.json +1 -1
  171. package/IconPanelTop/package.json +1 -1
  172. package/IconPaste/package.json +1 -1
  173. package/IconPause/package.json +1 -1
  174. package/IconPhone/package.json +1 -1
  175. package/IconPhoto/package.json +1 -1
  176. package/IconPicture/package.json +1 -1
  177. package/IconPlay/package.json +1 -1
  178. package/IconPressure/package.json +1 -1
  179. package/IconPriceLabel/package.json +1 -1
  180. package/IconProcessing/package.json +1 -1
  181. package/IconQuestion/package.json +1 -1
  182. package/IconQuote/package.json +1 -1
  183. package/IconRUO/package.json +1 -1
  184. package/IconRUS/package.json +1 -1
  185. package/IconRecord/package.json +1 -1
  186. package/IconRemove/package.json +1 -1
  187. package/IconRemoveFromComparison/package.json +1 -1
  188. package/IconReply/package.json +1 -1
  189. package/IconResize/package.json +1 -1
  190. package/IconRestart/package.json +1 -1
  191. package/IconRevert/package.json +1 -1
  192. package/IconRing/package.json +1 -1
  193. package/IconRouble/package.json +1 -1
  194. package/IconRuler/package.json +1 -1
  195. package/IconSave/package.json +1 -1
  196. package/IconScreen/package.json +1 -1
  197. package/IconSearch/package.json +1 -1
  198. package/IconSelect/package.json +1 -1
  199. package/IconSelectOpen/package.json +1 -1
  200. package/IconSendMessage/package.json +1 -1
  201. package/IconSettings/package.json +1 -1
  202. package/IconShape/package.json +1 -1
  203. package/IconShuffle/package.json +1 -1
  204. package/IconSmile/package.json +1 -1
  205. package/IconSortDown/package.json +1 -1
  206. package/IconSortDownCenter/package.json +1 -1
  207. package/IconSortUp/package.json +1 -1
  208. package/IconSortUpCenter/package.json +1 -1
  209. package/IconStop/package.json +1 -1
  210. package/IconStorage/package.json +1 -1
  211. package/IconStrikethrough/package.json +1 -1
  212. package/IconSun/package.json +1 -1
  213. package/IconTable/package.json +1 -1
  214. package/IconTable2/package.json +1 -1
  215. package/IconTarget/package.json +1 -1
  216. package/IconTeam/package.json +1 -1
  217. package/IconTechResponse/package.json +1 -1
  218. package/IconTest/package.json +1 -1
  219. package/IconThumbUp/package.json +1 -1
  220. package/IconTie/package.json +1 -1
  221. package/IconTop/package.json +1 -1
  222. package/IconTrash/package.json +1 -1
  223. package/IconType/package.json +1 -1
  224. package/IconUnderline/package.json +1 -1
  225. package/IconUnlock/package.json +1 -1
  226. package/IconUnsort/package.json +1 -1
  227. package/IconUnsortCenter/package.json +1 -1
  228. package/IconUpload/package.json +1 -1
  229. package/IconUser/package.json +1 -1
  230. package/IconVZD/package.json +1 -1
  231. package/IconVideo/package.json +1 -1
  232. package/IconVkontakte/package.json +1 -1
  233. package/IconWarning/package.json +1 -1
  234. package/IconWatch/package.json +1 -1
  235. package/IconWideScreen/package.json +1 -1
  236. package/IconWorld/package.json +1 -1
  237. package/IconWrench/package.json +1 -1
  238. package/IconYandexDzen/package.json +1 -1
  239. package/IconYoutube/package.json +1 -1
  240. package/Informer/package.json +1 -1
  241. package/LayoutCanary/package.json +1 -1
  242. package/Loader/package.json +1 -1
  243. package/MixCard/package.json +1 -1
  244. package/MixFocus/package.json +1 -1
  245. package/MixPopoverAnimate/package.json +1 -1
  246. package/MixPopoverArrow/package.json +1 -1
  247. package/MixSpace/package.json +1 -1
  248. package/MixVisuallyHidden/package.json +1 -1
  249. package/Modal/package.json +1 -1
  250. package/MultiComboboxDeprecated/package.json +1 -1
  251. package/Pagination/package.json +1 -1
  252. package/Popover/package.json +1 -1
  253. package/PortalWithTheme/package.json +1 -1
  254. package/ProgressSpin/package.json +1 -1
  255. package/ProgressStepBarCanary/package.json +1 -1
  256. package/Radio/package.json +1 -1
  257. package/RadioGroup/package.json +1 -1
  258. package/Responses/package.json +1 -1
  259. package/Responses403/package.json +1 -1
  260. package/Responses404/package.json +1 -1
  261. package/Responses500/package.json +1 -1
  262. package/Responses503/package.json +1 -1
  263. package/ResponsesConnectionError/package.json +1 -1
  264. package/ResponsesDeleted/package.json +1 -1
  265. package/ResponsesEmptyBox/package.json +1 -1
  266. package/ResponsesEmptyPockets/package.json +1 -1
  267. package/ResponsesExit/package.json +1 -1
  268. package/ResponsesImage/package.json +1 -1
  269. package/ResponsesImage403/package.json +1 -1
  270. package/ResponsesImage404/package.json +1 -1
  271. package/ResponsesImage500/package.json +1 -1
  272. package/ResponsesImage503/package.json +1 -1
  273. package/ResponsesImageConnectionError/package.json +1 -1
  274. package/ResponsesImageDeleted/package.json +1 -1
  275. package/ResponsesImageEmptyBox/package.json +1 -1
  276. package/ResponsesImageEmptyPockets/package.json +1 -1
  277. package/ResponsesImageNothingFound/package.json +1 -1
  278. package/ResponsesImageSuccess/package.json +1 -1
  279. package/ResponsesNothingFound/package.json +1 -1
  280. package/ResponsesSuccess/package.json +1 -1
  281. package/Select/package.json +1 -1
  282. package/Sidebar/package.json +1 -1
  283. package/Skeleton/package.json +1 -1
  284. package/SliderCanary/package.json +1 -1
  285. package/SnackBar/package.json +1 -1
  286. package/Steps/package.json +1 -1
  287. package/Switch/package.json +1 -1
  288. package/SwitchGroup/package.json +1 -1
  289. package/Table/package.json +1 -1
  290. package/Tabs/package.json +1 -1
  291. package/Tag/package.json +1 -1
  292. package/TagBase/package.json +1 -1
  293. package/Text/package.json +1 -1
  294. package/TextField/package.json +1 -1
  295. package/Theme/package.json +1 -1
  296. package/ThemeToggler/package.json +1 -1
  297. package/Timer/package.json +1 -1
  298. package/Tooltip/package.json +1 -1
  299. package/User/package.json +1 -1
  300. package/UserSelect/package.json +1 -1
  301. package/UserSelectDeprecated/package.json +1 -1
  302. package/__internal__/cjs-src/components/Combobox/Combobox.js +1 -1
  303. package/__internal__/cjs-src/components/DatePickerCanary/DatePickerCanary.js +5 -1
  304. package/__internal__/cjs-src/components/DatePickerCanary/DatePickerFieldTypeMonth/DatePickerFieldTypeMonth.d.ts +45 -0
  305. package/__internal__/cjs-src/components/DatePickerCanary/DatePickerFieldTypeMonth/DatePickerFieldTypeMonth.js +76 -0
  306. package/__internal__/cjs-src/components/DatePickerCanary/DatePickerFieldTypeMonth/helpers.d.ts +46 -0
  307. package/__internal__/cjs-src/components/DatePickerCanary/DatePickerFieldTypeMonth/helpers.js +61 -0
  308. package/__internal__/cjs-src/components/DatePickerCanary/DatePickerFieldTypeMonthRange/DatePickerFieldTypeMonthRange.d.ts +82 -0
  309. package/__internal__/cjs-src/components/DatePickerCanary/DatePickerFieldTypeMonthRange/DatePickerFieldTypeMonthRange.js +98 -0
  310. package/__internal__/cjs-src/components/DatePickerCanary/DatePickerFieldTypeMonthRange/helpers.d.ts +32 -0
  311. package/__internal__/cjs-src/components/DatePickerCanary/DatePickerFieldTypeMonthRange/helpers.js +2 -0
  312. package/__internal__/cjs-src/components/DatePickerCanary/DatePickerTypeMonth/DatePickerTypeMonth.d.ts +2 -0
  313. package/__internal__/cjs-src/components/DatePickerCanary/DatePickerTypeMonth/DatePickerTypeMonth.js +61 -0
  314. package/__internal__/cjs-src/components/DatePickerCanary/DatePickerTypeMonthRange/DatePickerTypeMonthRange.d.ts +2 -0
  315. package/__internal__/cjs-src/components/DatePickerCanary/DatePickerTypeMonthRange/DatePickerTypeMonthRange.js +107 -0
  316. package/__internal__/cjs-src/components/DatePickerCanary/helpers.d.ts +2 -0
  317. package/__internal__/cjs-src/components/DatePickerCanary/helpers.js +3 -1
  318. package/__internal__/cjs-src/components/DatePickerCanary/types.d.ts +2 -2
  319. package/__internal__/cjs-src/components/DatePickerCanary/types.js +2 -0
  320. package/__internal__/cjs-src/components/SelectComponents/Select.css +50 -1
  321. package/__internal__/cjs-src/components/SelectComponents/SelectContainer/SelectContainer.d.ts +3 -1
  322. package/__internal__/cjs-src/components/SelectComponents/SelectContainer/SelectContainer.js +2 -2
  323. package/__internal__/cjs-src/components/UserSelect/UserSelect.js +1 -1
  324. package/__internal__/src/components/Combobox/Combobox.js +1 -1
  325. package/__internal__/src/components/DatePickerCanary/DatePickerCanary.js +5 -1
  326. package/__internal__/src/components/DatePickerCanary/DatePickerFieldTypeMonth/DatePickerFieldTypeMonth.d.ts +45 -0
  327. package/__internal__/src/components/DatePickerCanary/DatePickerFieldTypeMonth/DatePickerFieldTypeMonth.js +73 -0
  328. package/__internal__/src/components/DatePickerCanary/DatePickerFieldTypeMonth/helpers.d.ts +46 -0
  329. package/__internal__/src/components/DatePickerCanary/DatePickerFieldTypeMonth/helpers.js +58 -0
  330. package/__internal__/src/components/DatePickerCanary/DatePickerFieldTypeMonthRange/DatePickerFieldTypeMonthRange.d.ts +82 -0
  331. package/__internal__/src/components/DatePickerCanary/DatePickerFieldTypeMonthRange/DatePickerFieldTypeMonthRange.js +95 -0
  332. package/__internal__/src/components/DatePickerCanary/DatePickerFieldTypeMonthRange/helpers.d.ts +32 -0
  333. package/__internal__/src/components/DatePickerCanary/DatePickerFieldTypeMonthRange/helpers.js +0 -0
  334. package/__internal__/src/components/DatePickerCanary/DatePickerTypeMonth/DatePickerTypeMonth.d.ts +2 -0
  335. package/__internal__/src/components/DatePickerCanary/DatePickerTypeMonth/DatePickerTypeMonth.js +58 -0
  336. package/__internal__/src/components/DatePickerCanary/DatePickerTypeMonthRange/DatePickerTypeMonthRange.d.ts +2 -0
  337. package/__internal__/src/components/DatePickerCanary/DatePickerTypeMonthRange/DatePickerTypeMonthRange.js +104 -0
  338. package/__internal__/src/components/DatePickerCanary/helpers.d.ts +2 -0
  339. package/__internal__/src/components/DatePickerCanary/helpers.js +2 -0
  340. package/__internal__/src/components/DatePickerCanary/types.d.ts +2 -2
  341. package/__internal__/src/components/DatePickerCanary/types.js +2 -0
  342. package/__internal__/src/components/SelectComponents/Select.css +50 -1
  343. package/__internal__/src/components/SelectComponents/SelectContainer/SelectContainer.d.ts +3 -1
  344. package/__internal__/src/components/SelectComponents/SelectContainer/SelectContainer.js +2 -2
  345. package/__internal__/src/components/UserSelect/UserSelect.js +1 -1
  346. package/createIcon/package.json +1 -1
  347. package/createResponsesImage/package.json +1 -1
  348. package/package.json +1 -1
  349. package/useBreakpoints/package.json +1 -1
  350. package/useChoiceGroup/package.json +1 -1
  351. package/useChoiceGroupIndexed/package.json +1 -1
  352. package/useClickOutside/package.json +1 -1
  353. package/useComponentSize/package.json +1 -1
  354. package/useDebounce/package.json +1 -1
  355. package/useFlag/package.json +1 -1
  356. package/useForkRef/package.json +1 -1
  357. package/useGlobalKeys/package.json +1 -1
  358. package/useHideElementsInLine/package.json +1 -1
  359. package/useKeys/package.json +1 -1
  360. package/useMutableRef/package.json +1 -1
  361. package/useOverflow/package.json +1 -1
  362. package/usePrevious/package.json +1 -1
  363. package/useRefs/package.json +1 -1
  364. package/useResizeObserved/package.json +1 -1
  365. package/useScrollElements/package.json +1 -1
  366. package/useScrollPosition/package.json +1 -1
  367. package/useSelect/package.json +1 -1
  368. package/useSortSteps/package.json +1 -1
  369. package/useThemeVars/package.json +1 -1
  370. package/useTimer/package.json +1 -1
  371. package/withTooltip/package.json +1 -1
@@ -0,0 +1,104 @@
1
+ import { __assign, __read, __rest } from "tslib";
2
+ import React, { forwardRef, useEffect, useRef, useState } from 'react';
3
+ import { addMonths, startOfYear } from 'date-fns';
4
+ import { useClickOutside } from '../../../hooks/useClickOutside/useClickOutside';
5
+ import { useFlag } from '../../../hooks/useFlag/useFlag';
6
+ import { useForkRef } from '../../../hooks/useForkRef/useForkRef';
7
+ import { DatePickerDropdown, } from '../DatePickerDropdown/DatePickerDropdown';
8
+ import { DatePickerFieldTypeMonthRange } from '../DatePickerFieldTypeMonthRange/DatePickerFieldTypeMonthRange';
9
+ import { normalizeRangeValue } from '../helpers';
10
+ import { useCurrentVisibleDate } from '../useCurrentVisibleDate';
11
+ export var DatePickerTypeMonthRange = forwardRef(function (props, ref) {
12
+ var _a, _b, _c, _d;
13
+ var events = props.events, dateTimeView = props.dateTimeView, locale = props.locale, dropdownForm = props.dropdownForm, onFocus = props.onFocus, onBlur = props.onBlur, leftSide = props.leftSide, rightSide = props.rightSide, style = props.style, currentVisibleDateProp = props.currentVisibleDate, onChangeCurrentVisibleDateProp = props.onChangeCurrentVisibleDate, renderAdditionalControls = props.renderAdditionalControls, inputRef = props.inputRef, name = props.name, fieldProps = __rest(props, ["events", "dateTimeView", "locale", "dropdownForm", "onFocus", "onBlur", "leftSide", "rightSide", "style", "currentVisibleDate", "onChangeCurrentVisibleDate", "renderAdditionalControls", "inputRef", "name"]);
14
+ var startFieldRef = useRef(null);
15
+ var endFieldRef = useRef(null);
16
+ var startFieldInputRef = useRef(null);
17
+ var endFieldInputRef = useRef(null);
18
+ var calendarRef = useRef(null);
19
+ var _e = __read(useState(false), 2), fieldFocused = _e[0], setFieldFocused = _e[1];
20
+ var startFocused = fieldFocused === 'start';
21
+ var endFocused = fieldFocused === 'end';
22
+ var hadleChange = function (_a) {
23
+ var _b, _c, _d, _e;
24
+ var e = _a.e, value = _a.value;
25
+ if (startFocused) {
26
+ (_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]]) });
27
+ }
28
+ if (endFocused) {
29
+ (_d = props.onChange) === null || _d === void 0 ? void 0 : _d.call(props, { e: e, value: normalizeRangeValue([(_e = props === null || props === void 0 ? void 0 : props.value) === null || _e === void 0 ? void 0 : _e[0], value]) });
30
+ }
31
+ };
32
+ var _f = __read(useFlag(false), 2), calendarVisible = _f[0], setCalendarVisible = _f[1];
33
+ var _g = __read(useCurrentVisibleDate(currentVisibleDateProp, onChangeCurrentVisibleDateProp), 2), currentVisibleDate = _g[0], setCurrentVisibleDate = _g[1];
34
+ var startFieldOnBlurHandler = function (e) { var _a; return Array.isArray(onBlur) ? (_a = onBlur[0]) === null || _a === void 0 ? void 0 : _a.call(onBlur, e) : onBlur === null || onBlur === void 0 ? void 0 : onBlur(e); };
35
+ var endFieldOnBlurHandler = function (e) { var _a; return Array.isArray(onBlur) ? (_a = onBlur[1]) === null || _a === void 0 ? void 0 : _a.call(onBlur, e) : onBlur === null || onBlur === void 0 ? void 0 : onBlur(e); };
36
+ var startFieldOnFocusHandler = function (e) {
37
+ var _a;
38
+ setFieldFocused('start');
39
+ setCalendarVisible.on();
40
+ Array.isArray(onFocus) ? (_a = onFocus[0]) === null || _a === void 0 ? void 0 : _a.call(onFocus, e) : onFocus === null || onFocus === void 0 ? void 0 : onFocus(e);
41
+ };
42
+ var endFieldOnFocusHandler = function (e) {
43
+ var _a;
44
+ setFieldFocused('end');
45
+ setCalendarVisible.on();
46
+ Array.isArray(onFocus) ? (_a = onFocus[1]) === null || _a === void 0 ? void 0 : _a.call(onFocus, e) : onFocus === null || onFocus === void 0 ? void 0 : onFocus(e);
47
+ };
48
+ // эфект для того чтобы календарь переключался при вводе с клавиатуры
49
+ useEffect(function () {
50
+ var _a, _b, _c;
51
+ if (((_a = props.value) === null || _a === void 0 ? void 0 : _a[0]) && props.dateTimeView === 'classic' && startFocused) {
52
+ var newVisibleDate = startOfYear(props.value[0]);
53
+ if (newVisibleDate.getTime() !== (currentVisibleDate === null || currentVisibleDate === void 0 ? void 0 : currentVisibleDate.getTime())) {
54
+ setCurrentVisibleDate(newVisibleDate);
55
+ }
56
+ return;
57
+ }
58
+ if (((_b = props.value) === null || _b === void 0 ? void 0 : _b[0]) && props.dateTimeView !== 'classic' && startFocused) {
59
+ var newVisibleDate = startOfYear(props.value[0]);
60
+ if (newVisibleDate.getTime() !== (currentVisibleDate === null || currentVisibleDate === void 0 ? void 0 : currentVisibleDate.getTime()) &&
61
+ newVisibleDate.getTime() !==
62
+ (currentVisibleDate && addMonths(currentVisibleDate, 1).getTime())) {
63
+ setCurrentVisibleDate(newVisibleDate);
64
+ }
65
+ return;
66
+ }
67
+ if (!((_c = props.value) === null || _c === void 0 ? void 0 : _c[0]) && startFocused) {
68
+ setCurrentVisibleDate(currentVisibleDateProp);
69
+ }
70
+ }, [(_b = (_a = props.value) === null || _a === void 0 ? void 0 : _a[0]) === null || _b === void 0 ? void 0 : _b.getTime(), calendarVisible, startFocused]);
71
+ useEffect(function () {
72
+ var _a, _b, _c;
73
+ if (((_a = props.value) === null || _a === void 0 ? void 0 : _a[1]) && props.dateTimeView === 'classic' && endFocused) {
74
+ var newVisibleDate = startOfYear(props.value[1]);
75
+ if (newVisibleDate.getTime() !== (currentVisibleDate === null || currentVisibleDate === void 0 ? void 0 : currentVisibleDate.getTime())) {
76
+ setCurrentVisibleDate(newVisibleDate);
77
+ }
78
+ return;
79
+ }
80
+ if (((_b = props.value) === null || _b === void 0 ? void 0 : _b[1]) && props.dateTimeView !== 'classic' && endFocused) {
81
+ var newVisibleDate = startOfYear(props.value[1]);
82
+ if (newVisibleDate.getTime() !== (currentVisibleDate === null || currentVisibleDate === void 0 ? void 0 : currentVisibleDate.getTime()) &&
83
+ newVisibleDate.getTime() !==
84
+ (currentVisibleDate && addMonths(currentVisibleDate, 1).getTime())) {
85
+ setCurrentVisibleDate(addMonths(newVisibleDate, -1));
86
+ }
87
+ return;
88
+ }
89
+ if (!((_c = props.value) === null || _c === void 0 ? void 0 : _c[1]) && endFocused) {
90
+ setCurrentVisibleDate(currentVisibleDateProp);
91
+ }
92
+ }, [(_d = (_c = props.value) === null || _c === void 0 ? void 0 : _c[1]) === null || _d === void 0 ? void 0 : _d.getTime(), calendarVisible, endFocused]);
93
+ useClickOutside({
94
+ isActive: calendarVisible,
95
+ ignoreClicksInsideRefs: [startFieldRef, endFieldRef, calendarRef],
96
+ handler: function () {
97
+ setFieldFocused(false);
98
+ setCalendarVisible.off();
99
+ }
100
+ });
101
+ return (React.createElement(React.Fragment, null,
102
+ React.createElement(DatePickerFieldTypeMonthRange, __assign({}, fieldProps, { style: style, ref: ref, startFieldRef: startFieldRef, endFieldRef: endFieldRef, startFieldInputRef: useForkRef([startFieldInputRef, inputRef === null || inputRef === void 0 ? void 0 : inputRef[0]]), endFieldInputRef: useForkRef([endFieldInputRef, inputRef === null || inputRef === void 0 ? void 0 : inputRef[1]]), startFieldOnFocus: startFieldOnFocusHandler, endFieldOnFocus: endFieldOnFocusHandler, startFieldLeftSide: Array.isArray(leftSide) ? leftSide === null || leftSide === void 0 ? void 0 : leftSide[0] : leftSide, startFieldRightSide: Array.isArray(rightSide) ? rightSide === null || rightSide === void 0 ? void 0 : rightSide[0] : undefined, endFieldLeftSide: Array.isArray(leftSide) ? leftSide === null || leftSide === void 0 ? void 0 : leftSide[1] : undefined, endFieldRightSide: Array.isArray(rightSide) ? rightSide === null || rightSide === void 0 ? void 0 : rightSide[1] : rightSide, startFieldOnBlur: startFieldOnBlurHandler, endFieldOnBlur: endFieldOnBlurHandler, startFocused: startFocused, endFocused: endFocused, startFieldName: Array.isArray(name) ? name[0] : name + "_start", endFieldName: Array.isArray(name) ? name[1] : name + "_end" })),
103
+ React.createElement(DatePickerDropdown, { type: "month", ref: calendarRef, anchorRef: startFieldRef, isOpen: calendarVisible, onChangeCurrentVisibleDate: setCurrentVisibleDate, currentVisibleDate: currentVisibleDate, value: props.value || undefined, view: dateTimeView, events: events, locale: locale, minDate: props.minDate, maxDate: props.maxDate, form: dropdownForm, onChange: hadleChange, renderAdditionalControls: renderAdditionalControls, zIndex: typeof (style === null || style === void 0 ? void 0 : style.zIndex) === 'number' ? style.zIndex + 1 : undefined })));
104
+ });
@@ -10,6 +10,8 @@ export declare const datePickerPropFormatTypeDateTime: string;
10
10
  export declare const datePickerPropPlaceholderTypeDateTime: string;
11
11
  export declare const datePickerPropFormatTypeYear = "yyyy";
12
12
  export declare const datePickerPropPlaceholderTypeYear = "\u0413\u0413\u0413\u0413";
13
+ export declare const datePickerPropFormatTypeMonth: string;
14
+ export declare const datePickerPropPlaceholderTypeMonth: string;
13
15
  export declare const normalizeRangeValue: (dateRange: DateRange) => DateRange;
14
16
  export declare const getMultiplicityTime: (format: string, multiplicityHours: number | undefined, multiplicityMinutes: number | undefined, multiplicitySeconds: number | undefined) => (number | undefined)[];
15
17
  export declare const getTimeEnum: (length: number, multiplicity: number | undefined, startOfUnits: (date: Date) => Date, addUnits: (date: Date, amount: number) => Date, getItemLabel: (date: Date) => string) => string[];
@@ -11,6 +11,8 @@ export var datePickerPropFormatTypeDateTime = datePickerPropFormatTypeDate + " "
11
11
  export var datePickerPropPlaceholderTypeDateTime = datePickerPropPlaceholderTypeDate + " " + datePickerPropPlaceholderTypeTime;
12
12
  export var datePickerPropFormatTypeYear = "yyyy";
13
13
  export var datePickerPropPlaceholderTypeYear = "\u0413\u0413\u0413\u0413";
14
+ export var datePickerPropFormatTypeMonth = "MM" + datePickerPropSeparatorDefault + "yyyy";
15
+ export var datePickerPropPlaceholderTypeMonth = "MM" + datePickerPropSeparatorDefault + "\u0413\u0413\u0413\u0413";
14
16
  export var normalizeRangeValue = function (dateRange) {
15
17
  var _a, _b;
16
18
  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())) {
@@ -5,11 +5,11 @@ import { DateRange } from '../../utils/types/Date';
5
5
  import { PropsWithHTMLAttributesAndRef } from '../../utils/types/PropsWithHTMLAttributes';
6
6
  import { DateTimeAdditionalControlRenderProp, DateTimePropView } from '../DateTimeCanary/helpers';
7
7
  import { TextFieldPropForm, TextFieldPropSize, TextFieldPropStatus, TextFieldPropView, TextFieldPropWidth } from '../TextField/TextField';
8
- export declare const datePickerPropType: readonly ["date", "date-range", "date-time", "date-time-range", "time", "year", "year-range"];
8
+ export declare const datePickerPropType: readonly ["date", "date-range", "date-time", "date-time-range", "time", "year", "year-range", "month", "month-range"];
9
9
  export declare type DatePickerPropType = typeof datePickerPropType[number];
10
10
  export declare const datePickerPropTypeDefault: "date";
11
11
  export declare type DatePickerPropDateTimeView = DateTimePropView;
12
- declare type Range = 'date-range' | 'date-time-range' | 'year-range';
12
+ declare type Range = 'date-range' | 'date-time-range' | 'year-range' | 'month-range';
13
13
  export declare const datePickerErrorTypes: readonly ["outOfRange", "invalidInputAttempt", "startDateIsGreaterThanEndDate"];
14
14
  export declare type DatePickerPropValue<TYPE extends DatePickerPropType> = (TYPE extends Range ? DateRange : Date) | null;
15
15
  export declare type DatePickerPropOnChange<TYPE extends DatePickerPropType> = (props: {
@@ -6,6 +6,8 @@ export var datePickerPropType = [
6
6
  'time',
7
7
  'year',
8
8
  'year-range',
9
+ 'month',
10
+ 'month-range',
9
11
  ];
10
12
  export var datePickerPropTypeDefault = datePickerPropType[0];
11
13
  export var datePickerErrorTypes = [
@@ -13,6 +13,42 @@
13
13
  width: 100%;
14
14
  }
15
15
 
16
+ .Select_type_userselect.Select_size_s {
17
+ --select-element-height: var(--space-xl);
18
+ }
19
+
20
+ .Select_type_userselect.Select_size_m {
21
+ --select-element-height: calc(var(--space-2xl) - var(--space-3xs));
22
+ }
23
+
24
+ .Select_type_userselect.Select_size_l {
25
+ --select-element-height: calc(var(--space-3xl) - var(--space-2xs));
26
+ }
27
+
28
+ .Select_type_combobox.Select_size_s {
29
+ --select-element-height: var(--space-xl);
30
+ }
31
+
32
+ .Select_type_combobox.Select_size_m {
33
+ --select-element-height: calc(var(--space-2xl) - var(--space-2xs));
34
+ }
35
+
36
+ .Select_type_combobox.Select_size_l {
37
+ --select-element-height: var(--space-2xl);
38
+ }
39
+
40
+ .Select_type_select.Select_size_s {
41
+ --select-element-height: var(--space-xl);
42
+ }
43
+
44
+ .Select_type_select.Select_size_m {
45
+ --select-element-height: calc(var(--space-2xl) - var(--space-2xs));
46
+ }
47
+
48
+ .Select_type_select.Select_size_l {
49
+ --select-element-height: var(--space-2xl);
50
+ }
51
+
16
52
  .Select_size_xs {
17
53
  --input-height: var(--control-height-xs);
18
54
  --input-space: calc(var(--control-space-xs) * 0.5);
@@ -24,6 +60,7 @@
24
60
  --input-space: calc(var(--control-space-s) * 0.5);
25
61
  --input-font-size: var(--control-text-size-s);
26
62
  --tag-space: calc(var(--space-xs) / 2 - var(--control-border-width));
63
+ --input-max-height: calc(4 * var(--tag-space) + 4.5 * var(--select-element-height));
27
64
  }
28
65
 
29
66
  .Select_size_m {
@@ -31,6 +68,9 @@
31
68
  --input-space: calc(var(--control-space-m) * 0.5);
32
69
  --input-font-size: var(--control-text-size-m);
33
70
  --tag-space: calc(var(--space-s) / 2 - var(--control-border-width));
71
+ --input-max-height: calc(
72
+ 4 * var(--tag-space) + 4.5 * calc(var(--space-2xl) - var(--space-2xs))
73
+ );
34
74
  }
35
75
 
36
76
  .Select_size_l {
@@ -38,6 +78,7 @@
38
78
  --input-space: calc(var(--control-space-l) * 0.5);
39
79
  --input-font-size: var(--control-text-size-l);
40
80
  --tag-space: calc(var(--space-m) / 2 - var(--control-border-width));
81
+ --input-max-height: calc(4 * var(--tag-space) + 4.5 * var(--space-2xl));
41
82
  }
42
83
 
43
84
  .Select_labelPosition_top {
@@ -280,11 +321,19 @@
280
321
  }
281
322
 
282
323
  .Select-SelectContainer_multiple .Select-ControlValue {
283
- overflow: visible;
324
+ overflow-x: visible;
325
+ overflow-y: auto;
326
+ max-height: calc(4 * var(--tag-space) + 4.5 * var(--select-element-height));
284
327
  padding-top: calc(var(--tag-space) - var(--control-border-width));
285
328
  white-space: normal;
329
+ -ms-overflow-style: none;
330
+ scrollbar-width: none;
286
331
  }
287
332
 
333
+ .Select-SelectContainer_multiple .Select-ControlValue::-webkit-scrollbar {
334
+ display: none;
335
+ }
336
+
288
337
  .Select-SelectContainer_multiple .Select-ControlValue_isUserSelect {
289
338
  display: -webkit-box;
290
339
  display: -ms-flexbox;
@@ -11,6 +11,7 @@ export declare type SelectContainerProps = PropsWithHTMLAttributesAndRef<{
11
11
  required?: boolean;
12
12
  status?: PropStatus;
13
13
  label?: string;
14
+ type?: 'select' | 'combobox' | 'userselect';
14
15
  labelPosition?: 'top' | 'left';
15
16
  caption?: string;
16
17
  }, HTMLDivElement>;
@@ -24,6 +25,7 @@ export declare const SelectContainer: React.ForwardRefExoticComponent<Pick<Props
24
25
  required?: boolean | undefined;
25
26
  status?: "alert" | "success" | "warning" | undefined;
26
27
  label?: string | undefined;
28
+ type?: "select" | "combobox" | "userselect" | undefined;
27
29
  labelPosition?: "left" | "top" | undefined;
28
30
  caption?: string | undefined;
29
- }, HTMLDivElement>, "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" | "view" | "size" | "key" | "caption" | "form" | "label" | "multiple" | "required" | "status" | "focused" | "labelPosition"> & React.RefAttributes<HTMLDivElement>>;
31
+ }, HTMLDivElement>, "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" | "view" | "size" | "key" | "caption" | "form" | "label" | "type" | "multiple" | "required" | "status" | "focused" | "labelPosition"> & React.RefAttributes<HTMLDivElement>>;
@@ -5,8 +5,8 @@ import { FieldLabel } from '../../FieldLabel/FieldLabel';
5
5
  import { cnSelect } from '../cnSelect';
6
6
  import { defaultPropForm, defaultPropSize, defaultPropView, } from '../types';
7
7
  export var SelectContainer = forwardRef(function (props, ref) {
8
- var _a = props.size, size = _a === void 0 ? defaultPropSize : _a, _b = props.form, form = _b === void 0 ? defaultPropForm : _b, _c = props.view, view = _c === void 0 ? defaultPropView : _c, className = props.className, disabled = props.disabled, required = props.required, children = props.children, status = props.status, focused = props.focused, multiple = props.multiple, _d = props.labelPosition, labelPosition = _d === void 0 ? 'top' : _d, label = props.label, caption = props.caption, otherProps = __rest(props, ["size", "form", "view", "className", "disabled", "required", "children", "status", "focused", "multiple", "labelPosition", "label", "caption"]);
9
- return (React.createElement("div", __assign({ className: cnSelect({ labelPosition: labelPosition, size: size, view: view }, [className]) }, otherProps),
8
+ var _a = props.size, size = _a === void 0 ? defaultPropSize : _a, _b = props.form, form = _b === void 0 ? defaultPropForm : _b, _c = props.view, view = _c === void 0 ? defaultPropView : _c, className = props.className, disabled = props.disabled, required = props.required, children = props.children, status = props.status, focused = props.focused, multiple = props.multiple, _d = props.type, type = _d === void 0 ? 'select' : _d, _e = props.labelPosition, labelPosition = _e === void 0 ? 'top' : _e, label = props.label, caption = props.caption, otherProps = __rest(props, ["size", "form", "view", "className", "disabled", "required", "children", "status", "focused", "multiple", "type", "labelPosition", "label", "caption"]);
9
+ return (React.createElement("div", __assign({ className: cnSelect({ labelPosition: labelPosition, size: size, view: view, type: type }, [className]) }, otherProps),
10
10
  label && (React.createElement(FieldLabel, { required: required, className: cnSelect('Label', { labelPosition: labelPosition }), size: size }, label)),
11
11
  React.createElement("div", { className: cnSelect('Body') },
12
12
  React.createElement("div", { className: cnSelect('SelectContainer', {
@@ -76,7 +76,7 @@ function UserSelectRender(props, ref) {
76
76
  isUserSelect: true
77
77
  }), value: searchValue, style: { width: width } }))));
78
78
  };
79
- return (React.createElement(SelectContainer, __assign({ focused: isFocused, disabled: disabled, size: size, required: required, view: view, form: form, multiple: true, ref: ref, style: style }, restProps),
79
+ return (React.createElement(SelectContainer, __assign({ focused: isFocused, disabled: disabled, size: size, required: required, view: view, type: "userselect", form: form, multiple: true, ref: ref, style: style }, restProps),
80
80
  React.createElement("div", { className: cnSelect('Control', { hasInput: true }), ref: controlRef, "aria-expanded": isOpen, "aria-haspopup": "listbox", id: id },
81
81
  React.createElement("div", { className: cnSelect('ControlInner'), onClick: handleInputClick, role: "button", ref: controlInnerRef, "aria-hidden": "true" },
82
82
  React.createElement("div", { className: cnSelect('ControlValueContainer') }, multiple ? (React.createElement("div", { className: cnSelect('ControlValue', { isUserSelect: true }) }, renderControlValue())) : (renderControlValue()))),
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@consta/uikit/createIcon",
3
- "version": "3.21.2",
3
+ "version": "3.22.0",
4
4
  "main": "index.js",
5
5
  "module": "es.js",
6
6
  "sideEffects": [
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@consta/uikit/createResponsesImage",
3
- "version": "3.21.2",
3
+ "version": "3.22.0",
4
4
  "main": "index.js",
5
5
  "module": "es.js",
6
6
  "sideEffects": [
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@consta/uikit",
3
- "version": "3.21.2",
3
+ "version": "3.22.0",
4
4
  "keywords": [
5
5
  "ui-kit",
6
6
  "design-system",
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@consta/uikit/useBreakpoints",
3
- "version": "3.21.2",
3
+ "version": "3.22.0",
4
4
  "main": "index.js",
5
5
  "module": "es.js",
6
6
  "sideEffects": [
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@consta/uikit/useChoiceGroup",
3
- "version": "3.21.2",
3
+ "version": "3.22.0",
4
4
  "main": "index.js",
5
5
  "module": "es.js",
6
6
  "sideEffects": [
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@consta/uikit/useChoiceGroupIndexed",
3
- "version": "3.21.2",
3
+ "version": "3.22.0",
4
4
  "main": "index.js",
5
5
  "module": "es.js",
6
6
  "sideEffects": [
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@consta/uikit/useClickOutside",
3
- "version": "3.21.2",
3
+ "version": "3.22.0",
4
4
  "main": "index.js",
5
5
  "module": "es.js",
6
6
  "sideEffects": [
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@consta/uikit/useComponentSize",
3
- "version": "3.21.2",
3
+ "version": "3.22.0",
4
4
  "main": "index.js",
5
5
  "module": "es.js",
6
6
  "sideEffects": [
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@consta/uikit/useDebounce",
3
- "version": "3.21.2",
3
+ "version": "3.22.0",
4
4
  "main": "index.js",
5
5
  "module": "es.js",
6
6
  "sideEffects": [
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@consta/uikit/useFlag",
3
- "version": "3.21.2",
3
+ "version": "3.22.0",
4
4
  "main": "index.js",
5
5
  "module": "es.js",
6
6
  "sideEffects": [
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@consta/uikit/useForkRef",
3
- "version": "3.21.2",
3
+ "version": "3.22.0",
4
4
  "main": "index.js",
5
5
  "module": "es.js",
6
6
  "sideEffects": [
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@consta/uikit/useGlobalKeys",
3
- "version": "3.21.2",
3
+ "version": "3.22.0",
4
4
  "main": "index.js",
5
5
  "module": "es.js",
6
6
  "sideEffects": [
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@consta/uikit/useHideElementsInLine",
3
- "version": "3.21.2",
3
+ "version": "3.22.0",
4
4
  "main": "index.js",
5
5
  "module": "es.js",
6
6
  "sideEffects": [
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@consta/uikit/useKeys",
3
- "version": "3.21.2",
3
+ "version": "3.22.0",
4
4
  "main": "index.js",
5
5
  "module": "es.js",
6
6
  "sideEffects": [
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@consta/uikit/useMutableRef",
3
- "version": "3.21.2",
3
+ "version": "3.22.0",
4
4
  "main": "index.js",
5
5
  "module": "es.js",
6
6
  "sideEffects": [
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@consta/uikit/useOverflow",
3
- "version": "3.21.2",
3
+ "version": "3.22.0",
4
4
  "main": "index.js",
5
5
  "module": "es.js",
6
6
  "sideEffects": [
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@consta/uikit/usePrevious",
3
- "version": "3.21.2",
3
+ "version": "3.22.0",
4
4
  "main": "index.js",
5
5
  "module": "es.js",
6
6
  "sideEffects": [
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@consta/uikit/useRefs",
3
- "version": "3.21.2",
3
+ "version": "3.22.0",
4
4
  "main": "index.js",
5
5
  "module": "es.js",
6
6
  "sideEffects": [
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@consta/uikit/useResizeObserved",
3
- "version": "3.21.2",
3
+ "version": "3.22.0",
4
4
  "main": "index.js",
5
5
  "module": "es.js",
6
6
  "sideEffects": [
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@consta/uikit/useScrollElements",
3
- "version": "3.21.2",
3
+ "version": "3.22.0",
4
4
  "main": "index.js",
5
5
  "module": "es.js",
6
6
  "sideEffects": [
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@consta/uikit/useScrollPosition",
3
- "version": "3.21.2",
3
+ "version": "3.22.0",
4
4
  "main": "index.js",
5
5
  "module": "es.js",
6
6
  "sideEffects": [
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@consta/uikit/useSelect",
3
- "version": "3.21.2",
3
+ "version": "3.22.0",
4
4
  "main": "index.js",
5
5
  "module": "es.js",
6
6
  "sideEffects": [
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@consta/uikit/useSortSteps",
3
- "version": "3.21.2",
3
+ "version": "3.22.0",
4
4
  "main": "index.js",
5
5
  "module": "es.js",
6
6
  "sideEffects": [
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@consta/uikit/useThemeVars",
3
- "version": "3.21.2",
3
+ "version": "3.22.0",
4
4
  "main": "index.js",
5
5
  "module": "es.js",
6
6
  "sideEffects": [
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@consta/uikit/useTimer",
3
- "version": "3.21.2",
3
+ "version": "3.22.0",
4
4
  "main": "index.js",
5
5
  "module": "es.js",
6
6
  "sideEffects": [
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@consta/uikit/withTooltip",
3
- "version": "3.21.2",
3
+ "version": "3.22.0",
4
4
  "main": "index.js",
5
5
  "module": "es.js",
6
6
  "sideEffects": [