@skbkontur/react-ui 5.1.6 → 5.2.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 (502) hide show
  1. package/CHANGELOG.md +40 -0
  2. package/cjs/components/Calendar/CalendarDay.js +18 -2
  3. package/cjs/components/Calendar/CalendarDay.js.map +1 -1
  4. package/cjs/components/Calendar/DayCellView.js +7 -15
  5. package/cjs/components/Calendar/DayCellView.js.map +1 -1
  6. package/cjs/components/CurrencyLabel/CurrencyLabel.d.ts +2 -8
  7. package/cjs/components/CurrencyLabel/CurrencyLabel.js +19 -15
  8. package/cjs/components/CurrencyLabel/CurrencyLabel.js.map +1 -1
  9. package/cjs/components/DateInput/DateInput.d.ts +1 -0
  10. package/cjs/components/DateInput/DateInput.js +25 -5
  11. package/cjs/components/DateInput/DateInput.js.map +1 -1
  12. package/cjs/components/DateInput/helpers/InternalDateMediator.d.ts +1 -1
  13. package/cjs/components/DateInput/helpers/InternalDateMediator.js +10 -1
  14. package/cjs/components/DateInput/helpers/InternalDateMediator.js.map +1 -1
  15. package/cjs/components/DateRangePicker/DateRangePicker.d.ts +1 -1
  16. package/cjs/components/DateRangePicker/DateRangePicker.js +19 -15
  17. package/cjs/components/DateRangePicker/DateRangePicker.js.map +1 -1
  18. package/cjs/components/DateRangePicker/DateRangePicker.styles.d.ts +0 -1
  19. package/cjs/components/DateRangePicker/DateRangePicker.styles.js +13 -18
  20. package/cjs/components/DateRangePicker/DateRangePicker.styles.js.map +1 -1
  21. package/cjs/components/Dropdown/Dropdown.d.ts +2 -4
  22. package/cjs/components/FxInput/FxInput.d.ts +1 -1
  23. package/cjs/components/FxInput/FxInput.js.map +1 -1
  24. package/cjs/components/MenuFooter/MenuFooter.d.ts +1 -6
  25. package/cjs/components/MenuFooter/MenuFooter.js +47 -40
  26. package/cjs/components/MenuFooter/MenuFooter.js.map +1 -1
  27. package/cjs/components/MenuHeader/MenuHeader.d.ts +1 -6
  28. package/cjs/components/MenuHeader/MenuHeader.js +49 -41
  29. package/cjs/components/MenuHeader/MenuHeader.js.map +1 -1
  30. package/cjs/components/MenuItem/MenuItem.js +3 -0
  31. package/cjs/components/MenuItem/MenuItem.js.map +1 -1
  32. package/cjs/components/MenuItem/MenuItem.styles.d.ts +1 -0
  33. package/cjs/components/MenuItem/MenuItem.styles.js +18 -13
  34. package/cjs/components/MenuItem/MenuItem.styles.js.map +1 -1
  35. package/cjs/components/MenuSeparator/MenuSeparator.d.ts +1 -6
  36. package/cjs/components/MenuSeparator/MenuSeparator.js +24 -22
  37. package/cjs/components/MenuSeparator/MenuSeparator.js.map +1 -1
  38. package/cjs/components/MiniModal/MiniModal.js +3 -3
  39. package/cjs/components/MiniModal/MiniModal.js.map +1 -1
  40. package/cjs/components/Modal/Modal.d.ts +20 -4
  41. package/cjs/components/Modal/Modal.js +79 -5
  42. package/cjs/components/Modal/Modal.js.map +1 -1
  43. package/cjs/components/Modal/Modal.styles.d.ts +19 -0
  44. package/cjs/components/Modal/Modal.styles.js +172 -42
  45. package/cjs/components/Modal/Modal.styles.js.map +1 -1
  46. package/cjs/components/Modal/ModalBody.js +8 -1
  47. package/cjs/components/Modal/ModalBody.js.map +1 -1
  48. package/cjs/components/Modal/ModalContext.d.ts +1 -0
  49. package/cjs/components/Modal/ModalContext.js +1 -0
  50. package/cjs/components/Modal/ModalContext.js.map +1 -1
  51. package/cjs/components/Modal/ModalFooter.js +17 -2
  52. package/cjs/components/Modal/ModalFooter.js.map +1 -1
  53. package/cjs/components/Modal/ModalHeader.js +21 -1
  54. package/cjs/components/Modal/ModalHeader.js.map +1 -1
  55. package/cjs/components/RadioGroup/RadioGroup.d.ts +1 -0
  56. package/cjs/components/RadioGroup/RadioGroup.js +18 -1
  57. package/cjs/components/RadioGroup/RadioGroup.js.map +1 -1
  58. package/cjs/components/RadioGroup/RadioGroup.styles.d.ts +1 -0
  59. package/cjs/components/RadioGroup/RadioGroup.styles.js +10 -4
  60. package/cjs/components/RadioGroup/RadioGroup.styles.js.map +1 -1
  61. package/cjs/components/Select/Select.d.ts +3 -0
  62. package/cjs/components/Select/Select.js +4 -1
  63. package/cjs/components/Select/Select.js.map +1 -1
  64. package/cjs/components/SidePage/SidePage.d.ts +3 -1
  65. package/cjs/components/SidePage/SidePage.js +11 -5
  66. package/cjs/components/SidePage/SidePage.js.map +1 -1
  67. package/cjs/components/SidePage/SidePage.styles.d.ts +0 -1
  68. package/cjs/components/SidePage/SidePage.styles.js +51 -57
  69. package/cjs/components/SidePage/SidePage.styles.js.map +1 -1
  70. package/cjs/components/Sticky/Sticky.js +1 -1
  71. package/cjs/components/Sticky/Sticky.js.map +1 -1
  72. package/cjs/components/Toast/Toast.d.ts +5 -5
  73. package/cjs/components/Toast/Toast.js +2 -2
  74. package/cjs/components/Toast/Toast.js.map +1 -1
  75. package/cjs/components/Toast/ToastStatic.d.ts +3 -2
  76. package/cjs/components/Toast/ToastStatic.js.map +1 -1
  77. package/cjs/components/Toast/ToastView.d.ts +1 -1
  78. package/cjs/components/Toast/ToastView.js.map +1 -1
  79. package/cjs/internal/DateSelect/DateSelect.js +13 -2
  80. package/cjs/internal/DateSelect/DateSelect.js.map +1 -1
  81. package/cjs/internal/Popup/Popup.d.ts +1 -0
  82. package/cjs/internal/Popup/Popup.js +11 -1
  83. package/cjs/internal/Popup/Popup.js.map +1 -1
  84. package/cjs/internal/ThemeShowcase/VariablesCollector.d.ts +1 -1
  85. package/cjs/internal/themes/BasicTheme.d.ts +4 -0
  86. package/cjs/internal/themes/BasicTheme.js +8 -2
  87. package/cjs/internal/themes/BasicTheme.js.map +1 -1
  88. package/cjs/internal/themes/DarkTheme5_2.d.ts +1 -0
  89. package/cjs/internal/themes/DarkTheme5_2.js +29 -0
  90. package/cjs/internal/themes/DarkTheme5_2.js.map +1 -0
  91. package/cjs/internal/themes/LightTheme5_2.d.ts +1 -0
  92. package/cjs/internal/themes/LightTheme5_2.js +27 -0
  93. package/cjs/internal/themes/LightTheme5_2.js.map +1 -0
  94. package/cjs/lib/ModalStack.d.ts +7 -1
  95. package/cjs/lib/ModalStack.js.map +1 -1
  96. package/cjs/lib/date/InternalDateGetter.d.ts +1 -1
  97. package/cjs/lib/date/InternalDateGetter.js +8 -1
  98. package/cjs/lib/date/InternalDateGetter.js.map +1 -1
  99. package/cjs/lib/featureFlagsContext/FeatureFlagsHelpers.d.ts +3 -0
  100. package/cjs/lib/featureFlagsContext/ReactUIFeatureFlagsContext.d.ts +3 -0
  101. package/cjs/lib/featureFlagsContext/ReactUIFeatureFlagsContext.js +7 -1
  102. package/cjs/lib/featureFlagsContext/ReactUIFeatureFlagsContext.js.map +1 -1
  103. package/cjs/lib/getMenuPositions.d.ts +21 -1
  104. package/cjs/lib/getMenuPositions.js +45 -8
  105. package/cjs/lib/getMenuPositions.js.map +1 -1
  106. package/cjs/lib/theming/ThemeVersions.d.ts +1 -1
  107. package/cjs/lib/theming/ThemeVersions.js.map +1 -1
  108. package/cjs/lib/theming/themes/DarkTheme.d.ts +1 -0
  109. package/cjs/lib/theming/themes/DarkTheme.js +4 -2
  110. package/cjs/lib/theming/themes/DarkTheme.js.map +1 -1
  111. package/cjs/lib/theming/themes/LightTheme.d.ts +1 -0
  112. package/cjs/lib/theming/themes/LightTheme.js +4 -2
  113. package/cjs/lib/theming/themes/LightTheme.js.map +1 -1
  114. package/components/Calendar/CalendarDay/CalendarDay.js +9 -2
  115. package/components/Calendar/CalendarDay/CalendarDay.js.map +1 -1
  116. package/components/Calendar/DayCellView/DayCellView.js +6 -10
  117. package/components/Calendar/DayCellView/DayCellView.js.map +1 -1
  118. package/components/CurrencyLabel/CurrencyLabel/CurrencyLabel.js +8 -6
  119. package/components/CurrencyLabel/CurrencyLabel/CurrencyLabel.js.map +1 -1
  120. package/components/CurrencyLabel/CurrencyLabel.d.ts +2 -8
  121. package/components/DateInput/DateInput/DateInput.js +13 -7
  122. package/components/DateInput/DateInput/DateInput.js.map +1 -1
  123. package/components/DateInput/DateInput.d.ts +1 -0
  124. package/components/DateInput/helpers/InternalDateMediator/InternalDateMediator.js +2 -2
  125. package/components/DateInput/helpers/InternalDateMediator/InternalDateMediator.js.map +1 -1
  126. package/components/DateInput/helpers/InternalDateMediator.d.ts +1 -1
  127. package/components/DateRangePicker/DateRangePicker/DateRangePicker.js +10 -11
  128. package/components/DateRangePicker/DateRangePicker/DateRangePicker.js.map +1 -1
  129. package/components/DateRangePicker/DateRangePicker.d.ts +1 -1
  130. package/components/DateRangePicker/DateRangePicker.styles/DateRangePicker.styles.js +12 -15
  131. package/components/DateRangePicker/DateRangePicker.styles/DateRangePicker.styles.js.map +1 -1
  132. package/components/DateRangePicker/DateRangePicker.styles.d.ts +0 -1
  133. package/components/Dropdown/Dropdown.d.ts +2 -4
  134. package/components/FxInput/FxInput/FxInput.js.map +1 -1
  135. package/components/FxInput/FxInput.d.ts +1 -1
  136. package/components/MenuFooter/MenuFooter/MenuFooter.js +7 -4
  137. package/components/MenuFooter/MenuFooter/MenuFooter.js.map +1 -1
  138. package/components/MenuFooter/MenuFooter.d.ts +1 -6
  139. package/components/MenuHeader/MenuHeader/MenuHeader.js +7 -4
  140. package/components/MenuHeader/MenuHeader/MenuHeader.js.map +1 -1
  141. package/components/MenuHeader/MenuHeader.d.ts +1 -6
  142. package/components/MenuItem/MenuItem/MenuItem.js +3 -1
  143. package/components/MenuItem/MenuItem/MenuItem.js.map +1 -1
  144. package/components/MenuItem/MenuItem.styles/MenuItem.styles.js +16 -13
  145. package/components/MenuItem/MenuItem.styles/MenuItem.styles.js.map +1 -1
  146. package/components/MenuItem/MenuItem.styles.d.ts +1 -0
  147. package/components/MenuSeparator/MenuSeparator/MenuSeparator.js +4 -4
  148. package/components/MenuSeparator/MenuSeparator/MenuSeparator.js.map +1 -1
  149. package/components/MenuSeparator/MenuSeparator.d.ts +1 -6
  150. package/components/MiniModal/MiniModal/MiniModal.js +3 -1
  151. package/components/MiniModal/MiniModal/MiniModal.js.map +1 -1
  152. package/components/Modal/Modal/Modal.js +51 -11
  153. package/components/Modal/Modal/Modal.js.map +1 -1
  154. package/components/Modal/Modal.d.ts +20 -4
  155. package/components/Modal/Modal.styles/Modal.styles.js +98 -41
  156. package/components/Modal/Modal.styles/Modal.styles.js.map +1 -1
  157. package/components/Modal/Modal.styles.d.ts +19 -0
  158. package/components/Modal/ModalBody/ModalBody.js +5 -1
  159. package/components/Modal/ModalBody/ModalBody.js.map +1 -1
  160. package/components/Modal/ModalContext/ModalContext.js.map +1 -1
  161. package/components/Modal/ModalContext.d.ts +1 -0
  162. package/components/Modal/ModalFooter/ModalFooter.js +14 -2
  163. package/components/Modal/ModalFooter/ModalFooter.js.map +1 -1
  164. package/components/Modal/ModalHeader/ModalHeader.js +12 -2
  165. package/components/Modal/ModalHeader/ModalHeader.js.map +1 -1
  166. package/components/RadioGroup/RadioGroup/RadioGroup.js +23 -17
  167. package/components/RadioGroup/RadioGroup/RadioGroup.js.map +1 -1
  168. package/components/RadioGroup/RadioGroup.d.ts +1 -0
  169. package/components/RadioGroup/RadioGroup.styles/RadioGroup.styles.js +7 -4
  170. package/components/RadioGroup/RadioGroup.styles/RadioGroup.styles.js.map +1 -1
  171. package/components/RadioGroup/RadioGroup.styles.d.ts +1 -0
  172. package/components/Select/Select/Select.js +3 -2
  173. package/components/Select/Select/Select.js.map +1 -1
  174. package/components/Select/Select.d.ts +3 -0
  175. package/components/SidePage/SidePage/SidePage.js +15 -8
  176. package/components/SidePage/SidePage/SidePage.js.map +1 -1
  177. package/components/SidePage/SidePage.d.ts +3 -1
  178. package/components/SidePage/SidePage.styles/SidePage.styles.js +51 -54
  179. package/components/SidePage/SidePage.styles/SidePage.styles.js.map +1 -1
  180. package/components/SidePage/SidePage.styles.d.ts +0 -1
  181. package/components/Sticky/Sticky/Sticky.js +1 -1
  182. package/components/Sticky/Sticky/Sticky.js.map +1 -1
  183. package/components/Toast/Toast/Toast.js +2 -2
  184. package/components/Toast/Toast/Toast.js.map +1 -1
  185. package/components/Toast/Toast.d.ts +5 -5
  186. package/components/Toast/ToastStatic/ToastStatic.js.map +1 -1
  187. package/components/Toast/ToastStatic.d.ts +3 -2
  188. package/components/Toast/ToastView/ToastView.js.map +1 -1
  189. package/components/Toast/ToastView.d.ts +1 -1
  190. package/internal/DateSelect/DateSelect/DateSelect.js +2 -0
  191. package/internal/DateSelect/DateSelect/DateSelect.js.map +1 -1
  192. package/internal/Popup/Popup/Popup.js +12 -1
  193. package/internal/Popup/Popup/Popup.js.map +1 -1
  194. package/internal/Popup/Popup.d.ts +1 -0
  195. package/internal/ThemeShowcase/VariablesCollector.d.ts +1 -1
  196. package/internal/themes/BasicTheme/BasicTheme.js +8 -0
  197. package/internal/themes/BasicTheme/BasicTheme.js.map +1 -1
  198. package/internal/themes/BasicTheme.d.ts +4 -0
  199. package/internal/themes/DarkTheme5_2/DarkTheme5_2.js +27 -0
  200. package/internal/themes/DarkTheme5_2/DarkTheme5_2.js.map +1 -0
  201. package/internal/themes/DarkTheme5_2/package.json +6 -0
  202. package/internal/themes/DarkTheme5_2.d.ts +1 -0
  203. package/internal/themes/LightTheme5_2/LightTheme5_2.js +27 -0
  204. package/internal/themes/LightTheme5_2/LightTheme5_2.js.map +1 -0
  205. package/internal/themes/LightTheme5_2/package.json +6 -0
  206. package/internal/themes/LightTheme5_2.d.ts +1 -0
  207. package/lib/ModalStack/ModalStack.js.map +1 -1
  208. package/lib/ModalStack.d.ts +7 -1
  209. package/lib/date/InternalDateGetter/InternalDateGetter.js +4 -1
  210. package/lib/date/InternalDateGetter/InternalDateGetter.js.map +1 -1
  211. package/lib/date/InternalDateGetter.d.ts +1 -1
  212. package/lib/featureFlagsContext/FeatureFlagsHelpers.d.ts +3 -0
  213. package/lib/featureFlagsContext/ReactUIFeatureFlagsContext/ReactUIFeatureFlagsContext.js +4 -1
  214. package/lib/featureFlagsContext/ReactUIFeatureFlagsContext/ReactUIFeatureFlagsContext.js.map +1 -1
  215. package/lib/featureFlagsContext/ReactUIFeatureFlagsContext.d.ts +3 -0
  216. package/lib/getMenuPositions/getMenuPositions.js +33 -4
  217. package/lib/getMenuPositions/getMenuPositions.js.map +1 -1
  218. package/lib/getMenuPositions.d.ts +21 -1
  219. package/lib/theming/ThemeVersions/ThemeVersions.js.map +1 -1
  220. package/lib/theming/ThemeVersions.d.ts +1 -1
  221. package/lib/theming/themes/DarkTheme/DarkTheme.js +3 -1
  222. package/lib/theming/themes/DarkTheme/DarkTheme.js.map +1 -1
  223. package/lib/theming/themes/DarkTheme.d.ts +1 -0
  224. package/lib/theming/themes/LightTheme/LightTheme.js +3 -1
  225. package/lib/theming/themes/LightTheme/LightTheme.js.map +1 -1
  226. package/lib/theming/themes/LightTheme.d.ts +1 -0
  227. package/package.json +10 -10
  228. package/cjs/components/Autocomplete/__creevey__/Autocomplete.creevey.mts +0 -239
  229. package/cjs/components/Autocomplete/__docs__/Autocomplete.mdx +0 -26
  230. package/cjs/components/Button/__creevey__/Button.creevey.mts +0 -251
  231. package/cjs/components/Button/__docs__/Button.mdx +0 -27
  232. package/cjs/components/Calendar/__creevey__/Calendar.creevey.mts +0 -74
  233. package/cjs/components/Calendar/__docs__/Calendar.mdx +0 -27
  234. package/cjs/components/Calendar/__docs__/CalendarDay.mdx +0 -23
  235. package/cjs/components/Center/__docs__/Center.mdx +0 -23
  236. package/cjs/components/Checkbox/__creevey__/Checkbox.creevey.mts +0 -243
  237. package/cjs/components/Checkbox/__docs__/Checkbox.mdx +0 -27
  238. package/cjs/components/ComboBox/__creevey__/ComboBox.creevey.mts +0 -541
  239. package/cjs/components/ComboBox/__docs__/ComboBox.mdx +0 -27
  240. package/cjs/components/CurrencyInput/__creevey__/CurrencyInput.creevey.mts +0 -81
  241. package/cjs/components/CurrencyInput/__docs__/CurrencyInput.mdx +0 -27
  242. package/cjs/components/CurrencyLabel/__docs__/CurrencyLabel.mdx +0 -23
  243. package/cjs/components/DateInput/__creevey__/DateInput.creevey.mts +0 -156
  244. package/cjs/components/DateInput/__docs__/DateInput.mdx +0 -23
  245. package/cjs/components/DatePicker/__creevey__/DatePicker.creevey.mts +0 -209
  246. package/cjs/components/DatePicker/__docs__/DatePicker.mdx +0 -27
  247. package/cjs/components/DateRangePicker/__creevey__/DateRangePicker.creevey.mts +0 -155
  248. package/cjs/components/DateRangePicker/__docs__/DateRangePicker.mdx +0 -123
  249. package/cjs/components/Dropdown/__creevey__/Dropdown.creevey.mts +0 -184
  250. package/cjs/components/Dropdown/__docs__/Dropdown.mdx +0 -27
  251. package/cjs/components/DropdownMenu/__creevey__/DropdownMenu.creevey.mts +0 -263
  252. package/cjs/components/DropdownMenu/__docs__/DropdownMenu.mdx +0 -27
  253. package/cjs/components/FileUploader/__docs__/FileUploader.mdx +0 -27
  254. package/cjs/components/FxInput/__creevey__/FxInput.creevey.mts +0 -21
  255. package/cjs/components/FxInput/__docs__/FxInput.mdx +0 -27
  256. package/cjs/components/Gapped/__docs__/Gapped.mdx +0 -23
  257. package/cjs/components/GlobalLoader/__docs__/GlobalLoader.mdx +0 -27
  258. package/cjs/components/Group/__creevey__/Group.creevey.mts +0 -19
  259. package/cjs/components/Group/__docs__/Group.mdx +0 -23
  260. package/cjs/components/Hint/__creevey__/Hint.creevey.mts +0 -68
  261. package/cjs/components/Hint/__docs__/Hint.mdx +0 -28
  262. package/cjs/components/Input/__creevey__/Input.creevey.mts +0 -239
  263. package/cjs/components/Input/__docs__/Input.mdx +0 -27
  264. package/cjs/components/Kebab/__creevey__/Kebab.creevey.mts +0 -147
  265. package/cjs/components/Kebab/__docs__/Kebab.mdx +0 -27
  266. package/cjs/components/Link/__creevey__/Link.creevey.mts +0 -162
  267. package/cjs/components/Link/__docs__/Link.mdx +0 -27
  268. package/cjs/components/Loader/__creevey__/Loader.creevey.mts +0 -35
  269. package/cjs/components/Loader/__docs__/Loader.mdx +0 -23
  270. package/cjs/components/MaskedInput/__creevey__/MaskedInput.creevey.mts +0 -216
  271. package/cjs/components/MaskedInput/__docs__/MaskedInput.mdx +0 -27
  272. package/cjs/components/MenuFooter/__docs__/MenuFooter.mdx +0 -23
  273. package/cjs/components/MenuHeader/__docs__/MenuHeader.mdx +0 -23
  274. package/cjs/components/MenuItem/__docs__/MenuItem.mdx +0 -23
  275. package/cjs/components/MenuSeparator/__docs__/MenuSeparator.mdx +0 -23
  276. package/cjs/components/MiniModal/__docs__/MiniModal.mdx +0 -27
  277. package/cjs/components/MiniModal/__docs__/MiniModalBody.mdx +0 -17
  278. package/cjs/components/MiniModal/__docs__/MiniModalFooter.mdx +0 -17
  279. package/cjs/components/MiniModal/__docs__/MiniModalHeader.mdx +0 -18
  280. package/cjs/components/MiniModal/__docs__/MiniModalIndent.mdx +0 -11
  281. package/cjs/components/Modal/__creevey__/Modal.creevey.mts +0 -295
  282. package/cjs/components/Modal/__docs__/Modal.mdx +0 -27
  283. package/cjs/components/Modal/__docs__/ModalBody.mdx +0 -15
  284. package/cjs/components/Modal/__docs__/ModalFooter.mdx +0 -15
  285. package/cjs/components/Modal/__docs__/ModalHeader.mdx +0 -15
  286. package/cjs/components/Modal/__docs__/ModalSeparator.mdx +0 -15
  287. package/cjs/components/Paging/__creevey__/Paging.creevey.mts +0 -97
  288. package/cjs/components/Paging/__docs__/Paging.mdx +0 -27
  289. package/cjs/components/PasswordInput/__creevey__/PasswordInput.creevey.mts +0 -46
  290. package/cjs/components/PasswordInput/__docs__/PasswordInput.mdx +0 -27
  291. package/cjs/components/Radio/__creevey__/Radio.creevey.mts +0 -28
  292. package/cjs/components/Radio/__docs__/Radio.mdx +0 -27
  293. package/cjs/components/RadioGroup/__creevey__/RadioGroup.creevey.mts +0 -86
  294. package/cjs/components/RadioGroup/__docs__/RadioGroup.mdx +0 -27
  295. package/cjs/components/ResponsiveLayout/__docs__/ResponsiveLayout.mdx +0 -96
  296. package/cjs/components/ScrollContainer/__creevey__/ScrollContainer.creevey.mts +0 -247
  297. package/cjs/components/ScrollContainer/__docs__/ScrollContainer.mdx +0 -23
  298. package/cjs/components/Select/__creevey__/Select.creevey.mts +0 -293
  299. package/cjs/components/Select/__docs__/Select.mdx +0 -27
  300. package/cjs/components/SidePage/__creevey__/SidePage.creevey.mts +0 -421
  301. package/cjs/components/SidePage/__docs__/SidePage.mdx +0 -27
  302. package/cjs/components/SidePage/__docs__/SidePageBody.mdx +0 -16
  303. package/cjs/components/SidePage/__docs__/SidePageContainer.mdx +0 -15
  304. package/cjs/components/SidePage/__docs__/SidePageFooter.mdx +0 -15
  305. package/cjs/components/SidePage/__docs__/SidePageHeader.mdx +0 -15
  306. package/cjs/components/SingleToast/__docs__/SingleToast.mdx +0 -27
  307. package/cjs/components/Spinner/__docs__/Spinner.mdx +0 -27
  308. package/cjs/components/Sticky/__creevey__/Sticky.creevey.mts +0 -98
  309. package/cjs/components/Sticky/__docs__/Sticky.mdx +0 -23
  310. package/cjs/components/Switcher/__creevey__/Switcher.creevey.mts +0 -24
  311. package/cjs/components/Switcher/__docs__/Switcher.mdx +0 -27
  312. package/cjs/components/Tabs/__creevey__/Tabs.creevey.mts +0 -239
  313. package/cjs/components/Tabs/__docs__/Tab.mdx +0 -27
  314. package/cjs/components/Tabs/__docs__/Tabs.mdx +0 -27
  315. package/cjs/components/Textarea/__creevey__/Textarea.creevey.mts +0 -177
  316. package/cjs/components/Textarea/__docs__/Textarea.mdx +0 -27
  317. package/cjs/components/Toast/__creevey__/Toast.creevey.mts +0 -77
  318. package/cjs/components/Toast/__docs__/Toast.mdx +0 -27
  319. package/cjs/components/Toggle/__creevey__/Toggle.creevey.mts +0 -89
  320. package/cjs/components/Toggle/__docs__/Toggle.mdx +0 -27
  321. package/cjs/components/Token/__docs__/Token.mdx +0 -27
  322. package/cjs/components/TokenInput/__creevey__/TokenInput.creevey.mts +0 -442
  323. package/cjs/components/TokenInput/__docs__/TokenInput.mdx +0 -27
  324. package/cjs/components/Tooltip/__creevey__/Tooltip.creevey.mts +0 -533
  325. package/cjs/components/Tooltip/__docs__/Tooltip.mdx +0 -27
  326. package/cjs/components/TooltipMenu/__creevey__/TooltipMenu.creevey.mts +0 -131
  327. package/cjs/components/TooltipMenu/__docs__/TooltipMenu.mdx +0 -23
  328. package/cjs/internal/ClearCrossIcon/__creevey__/ClearCrossIcon.creevey.mts +0 -44
  329. package/cjs/internal/CloseButtonIcon/__creevey__/CloseButtonIcon.creevey.mts +0 -48
  330. package/cjs/internal/CustomComboBox/__creevey__/ComboBoxView.creevey.mts +0 -30
  331. package/cjs/internal/FileUploaderControl/__creevey__/FileUploaderFile.creevey.mts +0 -25
  332. package/cjs/internal/HideBodyVerticalScroll/__creevey__/HideBodyVerticalScroll.creevey.mts +0 -83
  333. package/cjs/internal/Menu/__creevey__/Menu.creevey.mts +0 -90
  334. package/cjs/internal/PerformanceMetrics/PerformanceMetrics.d.ts +0 -7
  335. package/cjs/internal/PerformanceMetrics/PerformanceMetrics.js +0 -89
  336. package/cjs/internal/PerformanceMetrics/PerformanceMetrics.js.map +0 -1
  337. package/cjs/internal/PopupMenu/__creevey__/PopupMenu.creevey.mts +0 -37
  338. package/cjs/internal/ThemePlayground/__creevey__/Theme5_0.creevey.mts +0 -36
  339. package/cjs/internal/ThemePlayground/__creevey__/Theme5_0.stories.d.ts +0 -4
  340. package/cjs/internal/ThemePlayground/__creevey__/ThemeProvider.creevey.mts +0 -68
  341. package/cjs/internal/ZIndex/__creevey__/ZIndex.creevey.mts +0 -228
  342. package/components/Autocomplete/__creevey__/Autocomplete.creevey.d.mts +0 -1
  343. package/components/Autocomplete/__creevey__/Autocomplete.creevey.mts +0 -239
  344. package/components/Autocomplete/__docs__/Autocomplete.mdx +0 -26
  345. package/components/Button/__creevey__/Button.creevey.d.mts +0 -1
  346. package/components/Button/__creevey__/Button.creevey.mts +0 -251
  347. package/components/Button/__docs__/Button.mdx +0 -27
  348. package/components/Calendar/__creevey__/Calendar.creevey.d.mts +0 -1
  349. package/components/Calendar/__creevey__/Calendar.creevey.mts +0 -74
  350. package/components/Calendar/__docs__/Calendar.mdx +0 -27
  351. package/components/Calendar/__docs__/CalendarDay.mdx +0 -23
  352. package/components/Center/__docs__/Center.mdx +0 -23
  353. package/components/Checkbox/__creevey__/Checkbox.creevey.d.mts +0 -1
  354. package/components/Checkbox/__creevey__/Checkbox.creevey.mts +0 -243
  355. package/components/Checkbox/__docs__/Checkbox.mdx +0 -27
  356. package/components/ComboBox/__creevey__/ComboBox.creevey.d.mts +0 -1
  357. package/components/ComboBox/__creevey__/ComboBox.creevey.mts +0 -541
  358. package/components/ComboBox/__docs__/ComboBox.mdx +0 -27
  359. package/components/CurrencyInput/__creevey__/CurrencyInput.creevey.d.mts +0 -1
  360. package/components/CurrencyInput/__creevey__/CurrencyInput.creevey.mts +0 -81
  361. package/components/CurrencyInput/__docs__/CurrencyInput.mdx +0 -27
  362. package/components/CurrencyLabel/__docs__/CurrencyLabel.mdx +0 -23
  363. package/components/DateInput/__creevey__/DateInput.creevey.d.mts +0 -1
  364. package/components/DateInput/__creevey__/DateInput.creevey.mts +0 -156
  365. package/components/DateInput/__docs__/DateInput.mdx +0 -23
  366. package/components/DatePicker/__creevey__/DatePicker.creevey.d.mts +0 -1
  367. package/components/DatePicker/__creevey__/DatePicker.creevey.mts +0 -209
  368. package/components/DatePicker/__docs__/DatePicker.mdx +0 -27
  369. package/components/DateRangePicker/__creevey__/DateRangePicker.creevey.d.mts +0 -1
  370. package/components/DateRangePicker/__creevey__/DateRangePicker.creevey.mts +0 -155
  371. package/components/DateRangePicker/__docs__/DateRangePicker.mdx +0 -123
  372. package/components/Dropdown/__creevey__/Dropdown.creevey.d.mts +0 -1
  373. package/components/Dropdown/__creevey__/Dropdown.creevey.mts +0 -184
  374. package/components/Dropdown/__docs__/Dropdown.mdx +0 -27
  375. package/components/DropdownMenu/__creevey__/DropdownMenu.creevey.d.mts +0 -1
  376. package/components/DropdownMenu/__creevey__/DropdownMenu.creevey.mts +0 -263
  377. package/components/DropdownMenu/__docs__/DropdownMenu.mdx +0 -27
  378. package/components/FileUploader/__docs__/FileUploader.mdx +0 -27
  379. package/components/FxInput/__creevey__/FxInput.creevey.d.mts +0 -1
  380. package/components/FxInput/__creevey__/FxInput.creevey.mts +0 -21
  381. package/components/FxInput/__docs__/FxInput.mdx +0 -27
  382. package/components/Gapped/__docs__/Gapped.mdx +0 -23
  383. package/components/GlobalLoader/__docs__/GlobalLoader.mdx +0 -27
  384. package/components/Group/__creevey__/Group.creevey.d.mts +0 -1
  385. package/components/Group/__creevey__/Group.creevey.mts +0 -19
  386. package/components/Group/__docs__/Group.mdx +0 -23
  387. package/components/Hint/__creevey__/Hint.creevey.d.mts +0 -1
  388. package/components/Hint/__creevey__/Hint.creevey.mts +0 -68
  389. package/components/Hint/__docs__/Hint.mdx +0 -28
  390. package/components/Input/__creevey__/Input.creevey.d.mts +0 -1
  391. package/components/Input/__creevey__/Input.creevey.mts +0 -239
  392. package/components/Input/__docs__/Input.mdx +0 -27
  393. package/components/Kebab/__creevey__/Kebab.creevey.d.mts +0 -1
  394. package/components/Kebab/__creevey__/Kebab.creevey.mts +0 -147
  395. package/components/Kebab/__docs__/Kebab.mdx +0 -27
  396. package/components/Link/__creevey__/Link.creevey.d.mts +0 -1
  397. package/components/Link/__creevey__/Link.creevey.mts +0 -162
  398. package/components/Link/__docs__/Link.mdx +0 -27
  399. package/components/Loader/__creevey__/Loader.creevey.d.mts +0 -1
  400. package/components/Loader/__creevey__/Loader.creevey.mts +0 -35
  401. package/components/Loader/__docs__/Loader.mdx +0 -23
  402. package/components/MaskedInput/__creevey__/MaskedInput.creevey.d.mts +0 -1
  403. package/components/MaskedInput/__creevey__/MaskedInput.creevey.mts +0 -216
  404. package/components/MaskedInput/__docs__/MaskedInput.mdx +0 -27
  405. package/components/MenuFooter/__docs__/MenuFooter.mdx +0 -23
  406. package/components/MenuHeader/__docs__/MenuHeader.mdx +0 -23
  407. package/components/MenuItem/__docs__/MenuItem.mdx +0 -23
  408. package/components/MenuSeparator/__docs__/MenuSeparator.mdx +0 -23
  409. package/components/MiniModal/__docs__/MiniModal.mdx +0 -27
  410. package/components/MiniModal/__docs__/MiniModalBody.mdx +0 -17
  411. package/components/MiniModal/__docs__/MiniModalFooter.mdx +0 -17
  412. package/components/MiniModal/__docs__/MiniModalHeader.mdx +0 -18
  413. package/components/MiniModal/__docs__/MiniModalIndent.mdx +0 -11
  414. package/components/Modal/__creevey__/Modal.creevey.d.mts +0 -1
  415. package/components/Modal/__creevey__/Modal.creevey.mts +0 -295
  416. package/components/Modal/__docs__/Modal.mdx +0 -27
  417. package/components/Modal/__docs__/ModalBody.mdx +0 -15
  418. package/components/Modal/__docs__/ModalFooter.mdx +0 -15
  419. package/components/Modal/__docs__/ModalHeader.mdx +0 -15
  420. package/components/Modal/__docs__/ModalSeparator.mdx +0 -15
  421. package/components/Paging/__creevey__/Paging.creevey.d.mts +0 -1
  422. package/components/Paging/__creevey__/Paging.creevey.mts +0 -97
  423. package/components/Paging/__docs__/Paging.mdx +0 -27
  424. package/components/PasswordInput/__creevey__/PasswordInput.creevey.d.mts +0 -1
  425. package/components/PasswordInput/__creevey__/PasswordInput.creevey.mts +0 -46
  426. package/components/PasswordInput/__docs__/PasswordInput.mdx +0 -27
  427. package/components/Radio/__creevey__/Radio.creevey.d.mts +0 -1
  428. package/components/Radio/__creevey__/Radio.creevey.mts +0 -28
  429. package/components/Radio/__docs__/Radio.mdx +0 -27
  430. package/components/RadioGroup/__creevey__/RadioGroup.creevey.d.mts +0 -1
  431. package/components/RadioGroup/__creevey__/RadioGroup.creevey.mts +0 -86
  432. package/components/RadioGroup/__docs__/RadioGroup.mdx +0 -27
  433. package/components/ResponsiveLayout/__docs__/ResponsiveLayout.mdx +0 -96
  434. package/components/ScrollContainer/__creevey__/ScrollContainer.creevey.d.mts +0 -1
  435. package/components/ScrollContainer/__creevey__/ScrollContainer.creevey.mts +0 -247
  436. package/components/ScrollContainer/__docs__/ScrollContainer.mdx +0 -23
  437. package/components/Select/__creevey__/Select.creevey.d.mts +0 -1
  438. package/components/Select/__creevey__/Select.creevey.mts +0 -293
  439. package/components/Select/__docs__/Select.mdx +0 -27
  440. package/components/SidePage/__creevey__/SidePage.creevey.d.mts +0 -1
  441. package/components/SidePage/__creevey__/SidePage.creevey.mts +0 -421
  442. package/components/SidePage/__docs__/SidePage.mdx +0 -27
  443. package/components/SidePage/__docs__/SidePageBody.mdx +0 -16
  444. package/components/SidePage/__docs__/SidePageContainer.mdx +0 -15
  445. package/components/SidePage/__docs__/SidePageFooter.mdx +0 -15
  446. package/components/SidePage/__docs__/SidePageHeader.mdx +0 -15
  447. package/components/SingleToast/__docs__/SingleToast.mdx +0 -27
  448. package/components/Spinner/__docs__/Spinner.mdx +0 -27
  449. package/components/Sticky/__creevey__/Sticky.creevey.d.mts +0 -1
  450. package/components/Sticky/__creevey__/Sticky.creevey.mts +0 -98
  451. package/components/Sticky/__docs__/Sticky.mdx +0 -23
  452. package/components/Switcher/__creevey__/Switcher.creevey.d.mts +0 -1
  453. package/components/Switcher/__creevey__/Switcher.creevey.mts +0 -24
  454. package/components/Switcher/__docs__/Switcher.mdx +0 -27
  455. package/components/Tabs/__creevey__/Tabs.creevey.d.mts +0 -1
  456. package/components/Tabs/__creevey__/Tabs.creevey.mts +0 -239
  457. package/components/Tabs/__docs__/Tab.mdx +0 -27
  458. package/components/Tabs/__docs__/Tabs.mdx +0 -27
  459. package/components/Textarea/__creevey__/Textarea.creevey.d.mts +0 -1
  460. package/components/Textarea/__creevey__/Textarea.creevey.mts +0 -177
  461. package/components/Textarea/__docs__/Textarea.mdx +0 -27
  462. package/components/Toast/__creevey__/Toast.creevey.d.mts +0 -1
  463. package/components/Toast/__creevey__/Toast.creevey.mts +0 -77
  464. package/components/Toast/__docs__/Toast.mdx +0 -27
  465. package/components/Toggle/__creevey__/Toggle.creevey.d.mts +0 -1
  466. package/components/Toggle/__creevey__/Toggle.creevey.mts +0 -89
  467. package/components/Toggle/__docs__/Toggle.mdx +0 -27
  468. package/components/Token/__docs__/Token.mdx +0 -27
  469. package/components/TokenInput/__creevey__/TokenInput.creevey.d.mts +0 -1
  470. package/components/TokenInput/__creevey__/TokenInput.creevey.mts +0 -442
  471. package/components/TokenInput/__docs__/TokenInput.mdx +0 -27
  472. package/components/Tooltip/__creevey__/Tooltip.creevey.d.mts +0 -1
  473. package/components/Tooltip/__creevey__/Tooltip.creevey.mts +0 -533
  474. package/components/Tooltip/__docs__/Tooltip.mdx +0 -27
  475. package/components/TooltipMenu/__creevey__/TooltipMenu.creevey.d.mts +0 -1
  476. package/components/TooltipMenu/__creevey__/TooltipMenu.creevey.mts +0 -131
  477. package/components/TooltipMenu/__docs__/TooltipMenu.mdx +0 -23
  478. package/internal/ClearCrossIcon/__creevey__/ClearCrossIcon.creevey.d.mts +0 -1
  479. package/internal/ClearCrossIcon/__creevey__/ClearCrossIcon.creevey.mts +0 -44
  480. package/internal/CloseButtonIcon/__creevey__/CloseButtonIcon.creevey.d.mts +0 -1
  481. package/internal/CloseButtonIcon/__creevey__/CloseButtonIcon.creevey.mts +0 -48
  482. package/internal/CustomComboBox/__creevey__/ComboBoxView.creevey.d.mts +0 -1
  483. package/internal/CustomComboBox/__creevey__/ComboBoxView.creevey.mts +0 -30
  484. package/internal/FileUploaderControl/__creevey__/FileUploaderFile.creevey.d.mts +0 -1
  485. package/internal/FileUploaderControl/__creevey__/FileUploaderFile.creevey.mts +0 -25
  486. package/internal/HideBodyVerticalScroll/__creevey__/HideBodyVerticalScroll.creevey.d.mts +0 -1
  487. package/internal/HideBodyVerticalScroll/__creevey__/HideBodyVerticalScroll.creevey.mts +0 -83
  488. package/internal/Menu/__creevey__/Menu.creevey.d.mts +0 -1
  489. package/internal/Menu/__creevey__/Menu.creevey.mts +0 -90
  490. package/internal/PerformanceMetrics/PerformanceMetrics/PerformanceMetrics.js +0 -106
  491. package/internal/PerformanceMetrics/PerformanceMetrics/PerformanceMetrics.js.map +0 -1
  492. package/internal/PerformanceMetrics/PerformanceMetrics/package.json +0 -6
  493. package/internal/PerformanceMetrics/PerformanceMetrics.d.ts +0 -7
  494. package/internal/PopupMenu/__creevey__/PopupMenu.creevey.d.mts +0 -1
  495. package/internal/PopupMenu/__creevey__/PopupMenu.creevey.mts +0 -37
  496. package/internal/ThemePlayground/__creevey__/Theme5_0.creevey.d.mts +0 -1
  497. package/internal/ThemePlayground/__creevey__/Theme5_0.creevey.mts +0 -36
  498. package/internal/ThemePlayground/__creevey__/Theme5_0.stories.d.ts +0 -4
  499. package/internal/ThemePlayground/__creevey__/ThemeProvider.creevey.d.mts +0 -1
  500. package/internal/ThemePlayground/__creevey__/ThemeProvider.creevey.mts +0 -68
  501. package/internal/ZIndex/__creevey__/ZIndex.creevey.d.mts +0 -1
  502. package/internal/ZIndex/__creevey__/ZIndex.creevey.mts +0 -228
package/CHANGELOG.md CHANGED
@@ -3,6 +3,46 @@
3
3
  All notable changes to this project will be documented in this file.
4
4
  See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
5
 
6
+ # [5.2.0](https://github.com/skbkontur/retail-ui/compare/@skbkontur/react-ui@5.1.7...@skbkontur/react-ui@5.2.0) (2025-07-16)
7
+
8
+
9
+ ### Bug Fixes
10
+
11
+ * **DateInput,DatePicker:** input same number after blur and refocus (feature flag `dateInputFixSameNumberTypingOnRefocus`) ([fc068d8](https://github.com/skbkontur/retail-ui/commit/fc068d8d09852764a4d41543bbd3a9caa7e1f110))
12
+ * **RadioGroup:** fix baseline spacer (feature flag `radioGroupRemoveBaselineSpacer`) ([c7ca31a](https://github.com/skbkontur/retail-ui/commit/c7ca31a9d00385d14223f090ad9f731456cf122a))
13
+ * **Toast:** extend notification type to ReactNode ([a58ec5a](https://github.com/skbkontur/retail-ui/commit/a58ec5af1ac75e860f058bdf597d5160097fb334))
14
+ * **Kebab:** update colors in DarkTheme ([79fa1f5](https://github.com/skbkontur/retail-ui/commit/79fa1f51ee9ecebee7371c2308ee01ad3744eb5e))
15
+ * **MenuItem:** use default cursor for nonselectable items ([b260ef9](https://github.com/skbkontur/retail-ui/commit/b260ef9db12d0b004f0e46e3686127325e0bd8fb))
16
+ * **FxInput:** inline deprecated React.ReactText type ([790ab0b](https://github.com/skbkontur/retail-ui/commit/790ab0b3036d0592bac022bdb7484b4022fbfe07))
17
+
18
+
19
+ ### Features
20
+
21
+ * **Modal, MiniModal, SidePage:** update mobile versions ([6bebba9](https://github.com/skbkontur/retail-ui/commit/6bebba9118e8bf0ffdd5797cd3c26b2a5bee6e28))
22
+ * **DateInput,DatePicker:** allow invalid values in days (feature flag `dateInputAllowInvalidValuesInDays`) ([cc35707](https://github.com/skbkontur/retail-ui/commit/cc357071a20364875851ecf37130b5c81548c80b))
23
+
24
+
25
+
26
+
27
+
28
+
29
+ ## [5.1.7](https://github.com/skbkontur/retail-ui/compare/@skbkontur/react-ui@5.1.6...@skbkontur/react-ui@5.1.7) (2025-07-11)
30
+
31
+
32
+ ### Bug Fixes
33
+
34
+ * **Calendar,DateSelect:** always show Select in the viewport ([67f8925](https://github.com/skbkontur/retail-ui/commit/67f8925117913159c13865078828679d7a086711))
35
+ * **CalendarDay:** fix day click handler ([6082b4d](https://github.com/skbkontur/retail-ui/commit/6082b4d38621f3a9fe435594c067167d193df715))
36
+
37
+
38
+ ### Features
39
+
40
+ * **DateRangePicker:** add width prop, remove extra wrap ([6bfd6c3](https://github.com/skbkontur/retail-ui/commit/6bfd6c3ab8781b76d3bbdf836c85a4d2f843bb4f))
41
+
42
+
43
+
44
+
45
+
6
46
  ## [5.1.6](https://github.com/skbkontur/retail-ui/compare/@skbkontur/react-ui@5.1.5...@skbkontur/react-ui@5.1.6) (2025-07-02)
7
47
 
8
48
 
@@ -11,7 +11,12 @@ var _getVisualStateDataAttributes = require("../../internal/CommonWrapper/utils/
11
11
  var _forwardRefAndName = require("../../lib/forwardRefAndName");
12
12
 
13
13
  var _DayCellView = require("./DayCellView.styles");
14
- var _Calendar = require("./Calendar");var _excluded = ["isToday", "isSelected", "isDisabled", "isWeekend", "date", "children", "className"];
14
+ var _Calendar = require("./Calendar");var _excluded = ["isToday", "isSelected", "isDisabled", "isWeekend", "date", "onDayClick", "onClick", "children", "className"];
15
+
16
+
17
+
18
+
19
+
15
20
 
16
21
 
17
22
 
@@ -49,8 +54,10 @@ var CalendarDay = exports.CalendarDay = /*#__PURE__*/(0, _react.memo)(
49
54
 
50
55
 
51
56
 
57
+
58
+
52
59
  ref)
53
- {var _cx, _cx2;var isToday = _ref.isToday,isSelected = _ref.isSelected,isDisabled = _ref.isDisabled,isWeekend = _ref.isWeekend,date = _ref.date,children = _ref.children,className = _ref.className,rest = (0, _objectWithoutPropertiesLoose2.default)(_ref, _excluded);
60
+ {var _cx, _cx2;var isToday = _ref.isToday,isSelected = _ref.isSelected,isDisabled = _ref.isDisabled,isWeekend = _ref.isWeekend,date = _ref.date,onDayClick = _ref.onDayClick,onClick = _ref.onClick,children = _ref.children,className = _ref.className,rest = (0, _objectWithoutPropertiesLoose2.default)(_ref, _excluded);
54
61
  var theme = (0, _react.useContext)(_ThemeContext.ThemeContext);
55
62
 
56
63
  var _useContext = (0, _react.useContext)(_locale2.LocaleContext),langCode = _useContext.langCode;
@@ -59,6 +66,14 @@ var CalendarDay = exports.CalendarDay = /*#__PURE__*/(0, _react.memo)(
59
66
  var locale = (0, _useLocaleForControl.useLocaleForControl)('Calendar', _locale.DatePickerLocaleHelper);
60
67
  var ariaLabel = locale.dayCellChooseDateAriaLabel + ": " + internalDate.toA11YFormat();
61
68
 
69
+ var handleClick = (0, _react.useCallback)(
70
+ function (e) {
71
+ onDayClick();
72
+ onClick == null || onClick(e);
73
+ },
74
+ [onDayClick, onClick]
75
+ );
76
+
62
77
  var _internalDate$getComp = internalDate.getComponentsLikeNumber(),day = _internalDate$getComp.date;
63
78
  var caption = children != null ? children : day;
64
79
 
@@ -69,6 +84,7 @@ var CalendarDay = exports.CalendarDay = /*#__PURE__*/(0, _react.memo)(
69
84
  "aria-label": ariaLabel,
70
85
  tabIndex: -1,
71
86
  disabled: isDisabled,
87
+ onClick: handleClick,
72
88
  className: (0, _Emotion.cx)((_cx = {}, _cx[
73
89
 
74
90
  _DayCellView.styles.day(theme)] = true, _cx[
@@ -1 +1 @@
1
- {"version":3,"names":["_react","_interopRequireWildcard","require","_useLocaleForControl","_ThemeContext","_Emotion","_locale","_InternalDate","_locale2","_getVisualStateDataAttributes","_forwardRefAndName","_DayCellView","_Calendar","_excluded","CalendarDay","exports","memo","forwardRefAndName","_ref","ref","_cx","_cx2","isToday","isSelected","isDisabled","isWeekend","date","children","className","rest","_objectWithoutPropertiesLoose2","default","theme","useContext","ThemeContext","_useContext","LocaleContext","langCode","internalDate","InternalDate","value","locale","useLocaleForControl","DatePickerLocaleHelper","ariaLabel","dayCellChooseDateAriaLabel","toA11YFormat","_internalDate$getComp","getComponentsLikeNumber","day","caption","createElement","_extends2","CalendarDataTids","dayCell","tabIndex","disabled","cx","styles","selected","weekend","getVisualStateDataAttributes","todayCaption"],"sources":["CalendarDay.tsx"],"sourcesContent":["import type { PropsWithChildren } from 'react';\nimport React, { useContext, memo } from 'react';\n\nimport { useLocaleForControl } from '../../lib/locale/useLocaleForControl';\nimport { ThemeContext } from '../../lib/theming/ThemeContext';\nimport { cx } from '../../lib/theming/Emotion';\nimport { DatePickerLocaleHelper } from '../DatePicker/locale';\nimport { InternalDate } from '../../lib/date/InternalDate';\nimport { LocaleContext } from '../../lib/locale';\nimport { getVisualStateDataAttributes } from '../../internal/CommonWrapper/utils/getVisualStateDataAttributes';\nimport { forwardRefAndName } from '../../lib/forwardRefAndName';\n\nimport { styles } from './DayCellView.styles';\nimport { CalendarDataTids } from './Calendar';\n\nexport interface CalendarDayProps extends React.HTMLAttributes<HTMLButtonElement> {\n /** Устанавливает, является ли день текущим. */\n isToday?: boolean;\n\n /** Устанавливает, является ли день выбранным. */\n isSelected?: boolean;\n\n /** Устанавливает, является ли день недоступным. */\n isDisabled?: boolean;\n\n /** Устанавливает, является ли день выходным. */\n isWeekend?: boolean;\n\n /** Задает день. */\n date: string;\n}\n\n/**\n * Компонент дня `CalendarDay` из Calendar.\n *\n * @visibleName Calendar.Day\n */\nexport const CalendarDay = memo(\n forwardRefAndName(\n 'CalendarDay',\n function CalendarDay(\n {\n isToday,\n isSelected,\n isDisabled,\n isWeekend,\n date,\n children,\n className,\n ...rest\n }: PropsWithChildren<CalendarDayProps>,\n ref: React.Ref<HTMLButtonElement>,\n ) {\n const theme = useContext(ThemeContext);\n\n const { langCode } = useContext(LocaleContext);\n const internalDate = new InternalDate({ langCode, value: date });\n\n const locale = useLocaleForControl('Calendar', DatePickerLocaleHelper);\n const ariaLabel = `${locale.dayCellChooseDateAriaLabel}: ${internalDate.toA11YFormat()}`;\n\n const { date: day } = internalDate.getComponentsLikeNumber();\n const caption = children ?? day;\n\n return (\n <button\n ref={ref}\n data-tid={CalendarDataTids.dayCell}\n aria-label={ariaLabel}\n tabIndex={-1}\n disabled={isDisabled}\n className={cx(\n {\n [styles.day(theme)]: true,\n [styles.selected(theme)]: isSelected,\n [styles.weekend(theme)]: isWeekend,\n },\n className,\n )}\n {...getVisualStateDataAttributes({ selected: isSelected })}\n {...rest}\n >\n <span className={cx({ [styles.todayCaption(theme)]: isToday })}>{caption}</span>\n </button>\n );\n },\n ),\n);\n"],"mappings":";AACA,IAAAA,MAAA,GAAAC,uBAAA,CAAAC,OAAA;;AAEA,IAAAC,oBAAA,GAAAD,OAAA;AACA,IAAAE,aAAA,GAAAF,OAAA;AACA,IAAAG,QAAA,GAAAH,OAAA;AACA,IAAAI,OAAA,GAAAJ,OAAA;AACA,IAAAK,aAAA,GAAAL,OAAA;AACA,IAAAM,QAAA,GAAAN,OAAA;AACA,IAAAO,6BAAA,GAAAP,OAAA;AACA,IAAAQ,kBAAA,GAAAR,OAAA;;AAEA,IAAAS,YAAA,GAAAT,OAAA;AACA,IAAAU,SAAA,GAAAV,OAAA,eAA8C,IAAAW,SAAA;;;;;;;;;;;;;;;;;;;AAmB9C;AACA;AACA;AACA;AACA;AACO,IAAMC,WAAW,GAAAC,OAAA,CAAAD,WAAA,gBAAG,IAAAE,WAAI;EAC7B,IAAAC,oCAAiB;IACf,aAAa;IACb,SAAS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AAQ,EAAEhC,UAAW;UACrBI,SAAS,EAAE,IAAA6B,WAAE,GAAArC,GAAA,OAAAA,GAAA;;UAERsC,mBAAM,CAACT,GAAG,CAACjB,KAAK,CAAC,IAAG,IAAI,EAAAZ,GAAA;UACxBsC,mBAAM,CAACC,QAAQ,CAAC3B,KAAK,CAAC,IAAGT,UAAU,EAAAH,GAAA;UACnCsC,mBAAM,CAACE,OAAO,CAAC5B,KAAK,CAAC,IAAGP,SAAS,EAAAL,GAAA;;UAEpCQ;UACF,CAAE;QACE,IAAAiC,0DAA4B,EAAC,EAAEF,QAAQ,EAAEpC,UAAU,CAAC,CAAC,CAAC;QACtDM,IAAI;;QAER7B,MAAA,CAAA+B,OAAA,CAAAoB,aAAA,WAAMvB,SAAS,EAAE,IAAA6B,WAAE,GAAApC,IAAA,OAAAA,IAAA,CAAIqC,mBAAM,CAACI,YAAY,CAAC9B,KAAK,CAAC,IAAGV,OAAO,EAAAD,IAAA,CAAE,CAAE,IAAE6B,OAAc;QACzE,CAAC;;IAEb;EACF;AACF,CAAC","ignoreList":[]}
1
+ {"version":3,"names":["_react","_interopRequireWildcard","require","_useLocaleForControl","_ThemeContext","_Emotion","_locale","_InternalDate","_locale2","_getVisualStateDataAttributes","_forwardRefAndName","_DayCellView","_Calendar","_excluded","CalendarDay","exports","memo","forwardRefAndName","_ref","ref","_cx","_cx2","isToday","isSelected","isDisabled","isWeekend","date","onDayClick","onClick","children","className","rest","_objectWithoutPropertiesLoose2","default","theme","useContext","ThemeContext","_useContext","LocaleContext","langCode","internalDate","InternalDate","value","locale","useLocaleForControl","DatePickerLocaleHelper","ariaLabel","dayCellChooseDateAriaLabel","toA11YFormat","handleClick","useCallback","e","_internalDate$getComp","getComponentsLikeNumber","day","caption","createElement","_extends2","CalendarDataTids","dayCell","tabIndex","disabled","cx","styles","selected","weekend","getVisualStateDataAttributes","todayCaption"],"sources":["CalendarDay.tsx"],"sourcesContent":["import type { PropsWithChildren } from 'react';\nimport React, { useContext, memo, useCallback } from 'react';\n\nimport { useLocaleForControl } from '../../lib/locale/useLocaleForControl';\nimport { ThemeContext } from '../../lib/theming/ThemeContext';\nimport { cx } from '../../lib/theming/Emotion';\nimport { DatePickerLocaleHelper } from '../DatePicker/locale';\nimport { InternalDate } from '../../lib/date/InternalDate';\nimport { LocaleContext } from '../../lib/locale';\nimport { getVisualStateDataAttributes } from '../../internal/CommonWrapper/utils/getVisualStateDataAttributes';\nimport { forwardRefAndName } from '../../lib/forwardRefAndName';\n\nimport { styles } from './DayCellView.styles';\nimport { CalendarDataTids } from './Calendar';\n\nexport interface CalendarDayProps extends React.HTMLAttributes<HTMLButtonElement> {\n /** Устанавливает, является ли день текущим. */\n isToday?: boolean;\n\n /** Устанавливает, является ли день выбранным. */\n isSelected?: boolean;\n\n /** Устанавливает, является ли день недоступным. */\n isDisabled?: boolean;\n\n /** Устанавливает, является ли день выходным. */\n isWeekend?: boolean;\n\n /** Задает день. */\n date: string;\n\n /** Задает функцию, которая вызывается при клике на день. Необходима для внутренней работы Calendar. Не предназначена для переопределения. Вместо этого, следует использовать стандартный `onClick`.\n * @internal @ignore\n */\n onDayClick: () => void;\n}\n\n/**\n * Компонент дня `CalendarDay` из Calendar.\n *\n * @visibleName Calendar.Day\n */\nexport const CalendarDay = memo(\n forwardRefAndName(\n 'CalendarDay',\n function CalendarDay(\n {\n isToday,\n isSelected,\n isDisabled,\n isWeekend,\n date,\n onDayClick,\n onClick,\n children,\n className,\n ...rest\n }: PropsWithChildren<CalendarDayProps>,\n ref: React.Ref<HTMLButtonElement>,\n ) {\n const theme = useContext(ThemeContext);\n\n const { langCode } = useContext(LocaleContext);\n const internalDate = new InternalDate({ langCode, value: date });\n\n const locale = useLocaleForControl('Calendar', DatePickerLocaleHelper);\n const ariaLabel = `${locale.dayCellChooseDateAriaLabel}: ${internalDate.toA11YFormat()}`;\n\n const handleClick = useCallback<React.MouseEventHandler<HTMLButtonElement>>(\n (e) => {\n onDayClick();\n onClick?.(e);\n },\n [onDayClick, onClick],\n );\n\n const { date: day } = internalDate.getComponentsLikeNumber();\n const caption = children ?? day;\n\n return (\n <button\n ref={ref}\n data-tid={CalendarDataTids.dayCell}\n aria-label={ariaLabel}\n tabIndex={-1}\n disabled={isDisabled}\n onClick={handleClick}\n className={cx(\n {\n [styles.day(theme)]: true,\n [styles.selected(theme)]: isSelected,\n [styles.weekend(theme)]: isWeekend,\n },\n className,\n )}\n {...getVisualStateDataAttributes({ selected: isSelected })}\n {...rest}\n >\n <span className={cx({ [styles.todayCaption(theme)]: isToday })}>{caption}</span>\n </button>\n );\n },\n ),\n);\n"],"mappings":";AACA,IAAAA,MAAA,GAAAC,uBAAA,CAAAC,OAAA;;AAEA,IAAAC,oBAAA,GAAAD,OAAA;AACA,IAAAE,aAAA,GAAAF,OAAA;AACA,IAAAG,QAAA,GAAAH,OAAA;AACA,IAAAI,OAAA,GAAAJ,OAAA;AACA,IAAAK,aAAA,GAAAL,OAAA;AACA,IAAAM,QAAA,GAAAN,OAAA;AACA,IAAAO,6BAAA,GAAAP,OAAA;AACA,IAAAQ,kBAAA,GAAAR,OAAA;;AAEA,IAAAS,YAAA,GAAAT,OAAA;AACA,IAAAU,SAAA,GAAAV,OAAA,eAA8C,IAAAW,SAAA;;;;;;;;;;;;;;;;;;;;;;;;AAwB9C;AACA;AACA;AACA;AACA;AACO,IAAMC,WAAW,GAAAC,OAAA,CAAAD,WAAA,gBAAG,IAAAE,WAAI;EAC7B,IAAAC,oCAAiB;IACf,aAAa;IACb,SAASH,WAAWA,CAAAI,IAAA;;;;;;;;;;;;;IAalBC,GAAiC;IACjC,KAAAC,GAAA,EAAAC,IAAA,KAZEC,OAAO,GAAAJ,IAAA,CAAPI,OAAO,CACPC,UAAU,GAAAL,IAAA,CAAVK,UAAU,CACVC,UAAU,GAAAN,IAAA,CAAVM,UAAU,CACVC,SAAS,GAAAP,IAAA,CAATO,SAAS,CACTC,IAAI,GAAAR,IAAA,CAAJQ,IAAI,CACJC,UAAU,GAAAT,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BI,OAAO,EAAEqB,WAAY;UACrBnB,SAAS,EAAE,IAAAgC,WAAE,GAAA1C,GAAA,OAAAA,GAAA;;UAER2C,mBAAM,CAACT,GAAG,CAACpB,KAAK,CAAC,IAAG,IAAI,EAAAd,GAAA;UACxB2C,mBAAM,CAACC,QAAQ,CAAC9B,KAAK,CAAC,IAAGX,UAAU,EAAAH,GAAA;UACnC2C,mBAAM,CAACE,OAAO,CAAC/B,KAAK,CAAC,IAAGT,SAAS,EAAAL,GAAA;;UAEpCU;UACF,CAAE;QACE,IAAAoC,0DAA4B,EAAC,EAAEF,QAAQ,EAAEzC,UAAU,CAAC,CAAC,CAAC;QACtDQ,IAAI;;QAER/B,MAAA,CAAAiC,OAAA,CAAAuB,aAAA,WAAM1B,SAAS,EAAE,IAAAgC,WAAE,GAAAzC,IAAA,OAAAA,IAAA,CAAI0C,mBAAM,CAACI,YAAY,CAACjC,KAAK,CAAC,IAAGZ,OAAO,EAAAD,IAAA,CAAE,CAAE,IAAEkC,OAAc;QACzE,CAAC;;IAEb;EACF;AACF,CAAC","ignoreList":[]}
@@ -24,28 +24,20 @@ var DayCellView = exports.DayCellView = function DayCellView(props) {var _isHoli
24
24
 
25
25
  var humanDateString = _InternalDateTransformer.InternalDateTransformer.dateToHumanString(date);
26
26
 
27
+ var dayClickHandler = (0, _react.useCallback)(function () {
28
+ onDateClick == null || onDateClick(date);
29
+ }, [onDateClick, date]);
30
+
27
31
  var dayProps = {
28
32
  isToday: Boolean(today && CDS.isEqual(date, today)),
29
33
  isSelected: Boolean(value && CDS.isEqual(date, value)),
30
34
  isDisabled: isDisabled,
31
35
  isWeekend: (_isHoliday = isHoliday == null ? void 0 : isHoliday(humanDateString, date.isWeekend)) != null ? _isHoliday : date.isWeekend,
32
- date: humanDateString
36
+ date: humanDateString,
37
+ onDayClick: dayClickHandler
33
38
  };
34
39
 
35
40
  var dayElement = (_renderDay = renderDay == null ? void 0 : renderDay(dayProps)) != null ? _renderDay : /*#__PURE__*/_react.default.createElement(_CalendarDay.CalendarDay, dayProps);
36
- var customDayClickHandler = dayElement.props.onClick;
37
-
38
- var dayClickHandler = (0, _react.useCallback)(
39
- function (e) {
40
- customDayClickHandler == null || customDayClickHandler(e);
41
- onDateClick == null || onDateClick(date);
42
- },
43
- [customDayClickHandler, onDateClick, date]
44
- );
45
-
46
- var dayElementWithClickHandler = /*#__PURE__*/_react.default.cloneElement(dayElement, {
47
- onClick: dayClickHandler
48
- });
49
41
 
50
- return /*#__PURE__*/_react.default.createElement("div", { className: _DayCellView.styles.cell(theme) }, dayElementWithClickHandler);
42
+ return /*#__PURE__*/_react.default.createElement("div", { className: _DayCellView.styles.cell(theme) }, dayElement);
51
43
  };
@@ -1 +1 @@
1
- {"version":3,"names":["_react","_interopRequireWildcard","require","_ThemeContext","_InternalDateTransformer","_DayCellView","_CalendarContext","CDS","_CalendarDay","DayCellView","exports","props","_isHoliday","_renderDay","date","_useContext","useContext","CalendarContext","value","minDate","maxDate","isHoliday","renderDay","today","onDateClick","theme","ThemeContext","isDisabled","isBetween","humanDateString","InternalDateTransformer","dateToHumanString","dayProps","isToday","Boolean","isEqual","isSelected","isWeekend","dayElement","default","createElement","CalendarDay","customDayClickHandler","onClick","dayClickHandler","useCallback","e","dayElementWithClickHandler","React","cloneElement","className","styles","cell"],"sources":["DayCellView.tsx"],"sourcesContent":["import type { ReactElement } from 'react';\nimport React, { useCallback, useContext } from 'react';\n\nimport { ThemeContext } from '../../lib/theming/ThemeContext';\nimport { InternalDateTransformer } from '../../lib/date/InternalDateTransformer';\n\nimport { styles } from './DayCellView.styles';\nimport { CalendarContext } from './CalendarContext';\nimport type { DayCellViewModel } from './DayCellViewModel';\nimport * as CDS from './CalendarDateShape';\nimport type { CalendarDayProps } from './CalendarDay';\nimport { CalendarDay } from './CalendarDay';\n\nexport interface DayCellViewProps {\n date: DayCellViewModel;\n}\n\nexport const DayCellView = (props: DayCellViewProps) => {\n const { date } = props;\n const { value, minDate, maxDate, isHoliday, renderDay, today, onDateClick } = useContext(CalendarContext);\n const theme = useContext(ThemeContext);\n\n const isDisabled = !CDS.isBetween(date, minDate, maxDate);\n\n const humanDateString = InternalDateTransformer.dateToHumanString(date);\n\n const dayProps: CalendarDayProps = {\n isToday: Boolean(today && CDS.isEqual(date, today)),\n isSelected: Boolean(value && CDS.isEqual(date, value)),\n isDisabled,\n isWeekend: isHoliday?.(humanDateString, date.isWeekend) ?? date.isWeekend,\n date: humanDateString,\n };\n\n const dayElement: ReactElement<CalendarDayProps> = renderDay?.(dayProps) ?? <CalendarDay {...dayProps} />;\n const customDayClickHandler = dayElement.props.onClick;\n\n const dayClickHandler = useCallback<NonNullable<typeof customDayClickHandler>>(\n (e) => {\n customDayClickHandler?.(e);\n onDateClick?.(date);\n },\n [customDayClickHandler, onDateClick, date],\n );\n\n const dayElementWithClickHandler = React.cloneElement<CalendarDayProps>(dayElement, {\n onClick: dayClickHandler,\n });\n\n return <div className={styles.cell(theme)}>{dayElementWithClickHandler}</div>;\n};\n"],"mappings":";AACA,IAAAA,MAAA,GAAAC,uBAAA,CAAAC,OAAA;;AAEA,IAAAC,aAAA,GAAAD,OAAA;AACA,IAAAE,wBAAA,GAAAF,OAAA;;AAEA,IAAAG,YAAA,GAAAH,OAAA;AACA,IAAAI,gBAAA,GAAAJ,OAAA;;AAEA,IAAAK,GAAA,GAAAN,uBAAA,CAAAC,OAAA;;AAEA,IAAAM,YAAA,GAAAN,OAAA;;;;;;AAMO,IAAMO,WAAW,GAAAC,OAAA,CAAAD,WAAA,GAAG,SAAdA,WAAWA,CAAIE,KAAuB,EAAK,KAAAC,UAAA,EAAAC,UAAA;EACtD,IAAQC,IAAI,GAAKH,KAAK,CAAdG,IAAI;EACZ,IAAAC,WAAA,GAA8E,IAAAC,iBAAU,EAACC,gCAAe,CAAC,CAAjGC,KAAK,GAAAH,WAAA,CAALG,KAAK,CAAEC,OAAO,GAAAJ,WAAA,CAAPI,OAAO,CAAEC,OAAO,GAAAL,WAAA,CAAPK,OAAO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,CAAC;IACrB,CAAC;IACD,CAAC4B,qBAAqB,EAAElB,WAAW,EAAEV,IAAI;EAC3C,CAAC;;EAED,IAAMiC,0BAA0B,gBAAGC,cAAK,CAACC,YAAY,CAAmBX,UAAU,EAAE;IAClFK,OAAO,EAAEC;EACX,CAAC,CAAC;;EAEF,oBAAO5C,MAAA,CAAAuC,OAAA,CAAAC,aAAA,UAAKU,SAAS,EAAEC,mBAAM,CAACC,IAAI,CAAC3B,KAAK,CAAE,IAAEsB,0BAAgC,CAAC;AAC/E,CAAC","ignoreList":[]}
1
+ {"version":3,"names":["_react","_interopRequireWildcard","require","_ThemeContext","_InternalDateTransformer","_DayCellView","_CalendarContext","CDS","_CalendarDay","DayCellView","exports","props","_isHoliday","_renderDay","date","_useContext","useContext","CalendarContext","value","minDate","maxDate","isHoliday","renderDay","today","onDateClick","theme","ThemeContext","isDisabled","isBetween","humanDateString","InternalDateTransformer","dateToHumanString","dayClickHandler","useCallback","dayProps","isToday","Boolean","isEqual","isSelected","isWeekend","onDayClick","dayElement","default","createElement","CalendarDay","className","styles","cell"],"sources":["DayCellView.tsx"],"sourcesContent":["import type { ReactElement } from 'react';\nimport React, { useCallback, useContext } from 'react';\n\nimport { ThemeContext } from '../../lib/theming/ThemeContext';\nimport { InternalDateTransformer } from '../../lib/date/InternalDateTransformer';\n\nimport { styles } from './DayCellView.styles';\nimport { CalendarContext } from './CalendarContext';\nimport type { DayCellViewModel } from './DayCellViewModel';\nimport * as CDS from './CalendarDateShape';\nimport type { CalendarDayProps } from './CalendarDay';\nimport { CalendarDay } from './CalendarDay';\n\nexport interface DayCellViewProps {\n date: DayCellViewModel;\n}\n\nexport const DayCellView = (props: DayCellViewProps) => {\n const { date } = props;\n const { value, minDate, maxDate, isHoliday, renderDay, today, onDateClick } = useContext(CalendarContext);\n const theme = useContext(ThemeContext);\n\n const isDisabled = !CDS.isBetween(date, minDate, maxDate);\n\n const humanDateString = InternalDateTransformer.dateToHumanString(date);\n\n const dayClickHandler = useCallback(() => {\n onDateClick?.(date);\n }, [onDateClick, date]);\n\n const dayProps: CalendarDayProps = {\n isToday: Boolean(today && CDS.isEqual(date, today)),\n isSelected: Boolean(value && CDS.isEqual(date, value)),\n isDisabled,\n isWeekend: isHoliday?.(humanDateString, date.isWeekend) ?? date.isWeekend,\n date: humanDateString,\n onDayClick: dayClickHandler,\n };\n\n const dayElement: ReactElement<CalendarDayProps> = renderDay?.(dayProps) ?? <CalendarDay {...dayProps} />;\n\n return <div className={styles.cell(theme)}>{dayElement}</div>;\n};\n"],"mappings":";AACA,IAAAA,MAAA,GAAAC,uBAAA,CAAAC,OAAA;;AAEA,IAAAC,aAAA,GAAAD,OAAA;AACA,IAAAE,wBAAA,GAAAF,OAAA;;AAEA,IAAAG,YAAA,GAAAH,OAAA;AACA,IAAAI,gBAAA,GAAAJ,OAAA;;AAEA,IAAAK,GAAA,GAAAN,uBAAA,CAAAC,OAAA;;AAEA,IAAAM,YAAA,GAAAN,OAAA;;;;;;AAMO,IAAMO,WAAW,GAAAC,OAAA,CAAAD,WAAA,GAAG,SAAdA,WAAWA,CAAIE,KAAuB,EAAK,KAAAC,UAAA,EAAAC,UAAA;EACtD,IAAQC,IAAI,GAAKH,KAAK,CAAdG,IAAI;EACZ,IAAAC,WAAA,GAA8E,IAAAC,iBAAU,EAACC,gCAAe,CAAC,CAAjGC,KAAK,GAAAH,WAAA,CAALG,KAAK,CAAEC,OAAO,GAAAJ,WAAA,CAAPI,OAAO,CAAEC,OAAO,GAAAL,WAAA,CAAPK,OAAO,CAAEC,SAAS,GAAAN,WAAA,CAATM,SAAS,CAAEC,SAAS,GAAAP,WAAA,CAATO,SAAS,CAAEC,KAAK,GAAAR,WAAA,CAALQ,KAAK,CAAEC,WAAW,GAAAT,WAAA,CAAXS,WAAW;EACzE,IAAMC,KAAK,GAAG,IAAAT,iBAAU,EAACU,0BAAY,CAAC;;EAEtC,IAAMC,UAAU,GAAG,CAACpB,GAAG,CAACqB,SAAS,CAACd,IAAI,EAAEK,OAAO,EAAEC,OAAO,CAAC;;EAEzD,IAAMS,eAAe,GAAGC,gDAAuB,CAACC,iBAAiB,CAACjB,IAAI,CAAC;;EAEvE,IAAMkB,eAAe,GAAG,IAAAC,kBAAW,EAAC,YAAM;IACxCT,WAAW,YAAXA,WAAW,CAAGV,IAAI,CAAC;EACrB,CAAC,EAAE,CAACU,WAAW,EAAEV,IAAI,CAAC,CAAC;;EAEvB,IAAMoB,QAA0B,GAAG;IACjCC,OAAO,EAAEC,OAAO,CAACb,KAAK,IAAIhB,GAAG,CAAC8B,OAAO,CAACvB,IAAI,EAAES,KAAK,CAAC,CAAC;IACnDe,UAAU,EAAEF,OAAO,CAAClB,KAAK,IAAIX,GAAG,CAAC8B,OAAO,CAACvB,IAAI,EAAEI,KAAK,CAAC,CAAC;IACtDS,UAAU,EAAVA,UAAU;IACVY,SAAS,GAAA3B,UAAA,GAAES,SAAS,oBAATA,SAAS,CAAGQ,eAAe,EAAEf,IAAI,CAACyB,SAAS,CAAC,YAAA3B,UAAA,GAAIE,IAAI,CAACyB,SAAS;IACzEzB,IAAI,EAAEe,eAAe;IACrBW,UAAU,EAAER;EACd,CAAC;;EAED,IAAMS,UAA0C,IAAA5B,UAAA,GAAGS,SAAS,oBAATA,SAAS,CAAGY,QAAQ,CAAC,YAAArB,UAAA,gBAAIb,MAAA,CAAA0C,OAAA,CAAAC,aAAA,CAACnC,YAAA,CAAAoC,WAAW,EAAKV,QAAW,CAAC;;EAEzG,oBAAOlC,MAAA,CAAA0C,OAAA,CAAAC,aAAA,UAAKE,SAAS,EAAEC,mBAAM,CAACC,IAAI,CAACtB,KAAK,CAAE,IAAEgB,UAAgB,CAAC;AAC/D,CAAC","ignoreList":[]}
@@ -18,11 +18,5 @@ export declare const CurrencyLabelDataTids: {
18
18
  /**
19
19
  * `CurrencyLabel` — подпись для денежных сумм (и других числовых значений).
20
20
  */
21
- export declare const CurrencyLabel: {
22
- ({ id, value, fractionDigits, currencySymbol, hideTrailingZeros, ...rest }: CurrencyLabelProps): JSX.Element;
23
- __KONTUR_REACT_UI__: string;
24
- displayName: string;
25
- propTypes: {
26
- fractionDigits: ({ fractionDigits, value }: CurrencyLabelProps) => Error | null;
27
- };
28
- };
21
+ declare const CurrencyLabel: import("../../lib/forwardRefAndName").ReactUIComponentWithRef<HTMLDivElement, CurrencyLabelProps> & Record<never, never>;
22
+ export { CurrencyLabel };
@@ -4,7 +4,8 @@ var _react = _interopRequireDefault(require("react"));
4
4
  var _constants = require("../CurrencyInput/constants");
5
5
  var _CurrencyHelper = require("../CurrencyInput/CurrencyHelper");
6
6
 
7
- var _CommonWrapper = require("../../internal/CommonWrapper");var _excluded = ["id", "value", "fractionDigits", "currencySymbol", "hideTrailingZeros"];
7
+ var _CommonWrapper = require("../../internal/CommonWrapper");
8
+ var _forwardRefAndName = require("../../lib/forwardRefAndName");var _excluded = ["id", "value", "fractionDigits", "currencySymbol", "hideTrailingZeros"];
8
9
 
9
10
 
10
11
 
@@ -30,29 +31,33 @@ var CurrencyLabelDataTids = exports.CurrencyLabelDataTids = {
30
31
  /**
31
32
  * `CurrencyLabel` — подпись для денежных сумм (и других числовых значений).
32
33
  */
33
- var CurrencyLabel = exports.CurrencyLabel = function CurrencyLabel(_ref)
34
+ var CurrencyLabel = exports.CurrencyLabel = (0, _forwardRefAndName.forwardRefAndName)(
35
+ 'CurrencyLabel',
36
+ function CurrencyLabel(_ref,
34
37
 
35
38
 
36
39
 
37
40
 
38
41
 
39
42
 
40
- {var id = _ref.id,value = _ref.value,_ref$fractionDigits = _ref.fractionDigits,fractionDigits = _ref$fractionDigits === void 0 ? FRACTION_DIGITS_DEFAULT : _ref$fractionDigits,currencySymbol = _ref.currencySymbol,_ref$hideTrailingZero = _ref.hideTrailingZeros,hideTrailingZeros = _ref$hideTrailingZero === void 0 ? false : _ref$hideTrailingZero,rest = (0, _objectWithoutPropertiesLoose2.default)(_ref, _excluded);
41
- return /*#__PURE__*/(
42
- _react.default.createElement(_CommonWrapper.CommonWrapper, rest, /*#__PURE__*/
43
- _react.default.createElement("span", { id: id, "data-tid": CurrencyLabelDataTids.root },
44
- _CurrencyHelper.CurrencyHelper.format(value, { fractionDigits: fractionDigits, hideTrailingZeros: hideTrailingZeros }),
45
- currencySymbol && String.fromCharCode(0xa0) /* &nbsp; */,
46
- currencySymbol
47
- )
48
- ));
49
43
 
50
- };
51
44
 
52
- CurrencyLabel.__KONTUR_REACT_UI__ = 'CurrencyLabel';
53
- CurrencyLabel.displayName = 'CurrencyLabel';
45
+ ref)
46
+ {var id = _ref.id,value = _ref.value,_ref$fractionDigits = _ref.fractionDigits,fractionDigits = _ref$fractionDigits === void 0 ? FRACTION_DIGITS_DEFAULT : _ref$fractionDigits,currencySymbol = _ref.currencySymbol,_ref$hideTrailingZero = _ref.hideTrailingZeros,hideTrailingZeros = _ref$hideTrailingZero === void 0 ? false : _ref$hideTrailingZero,rest = (0, _objectWithoutPropertiesLoose2.default)(_ref, _excluded);
47
+ return /*#__PURE__*/(
48
+ _react.default.createElement(_CommonWrapper.CommonWrapper, rest, /*#__PURE__*/
49
+ _react.default.createElement("span", { id: id, "data-tid": CurrencyLabelDataTids.root, ref: ref },
50
+ _CurrencyHelper.CurrencyHelper.format(value, { fractionDigits: fractionDigits, hideTrailingZeros: hideTrailingZeros }),
51
+ currencySymbol && String.fromCharCode(0xa0) /* &nbsp; */,
52
+ currencySymbol
53
+ )
54
+ ));
55
+
56
+ }
57
+ );
54
58
 
55
59
  CurrencyLabel.propTypes = {
60
+ // @ts-ignore
56
61
  fractionDigits: function fractionDigits(_ref2) {var _ref2$fractionDigits = _ref2.fractionDigits,_fractionDigits = _ref2$fractionDigits === void 0 ? FRACTION_DIGITS_DEFAULT : _ref2$fractionDigits,value = _ref2.value;
57
62
  if (_fractionDigits > _constants.MAX_SAFE_DIGITS) {
58
63
  return new Error(
@@ -74,7 +79,6 @@ CurrencyLabel.propTypes = {
74
79
 
75
80
  );
76
81
  }
77
-
78
82
  return null;
79
83
  }
80
84
  };
@@ -1 +1 @@
1
- {"version":3,"names":["_react","_interopRequireDefault","require","_constants","_CurrencyHelper","_CommonWrapper","_excluded","FRACTION_DIGITS_DEFAULT","CurrencyLabelDataTids","exports","root","CurrencyLabel","_ref","id","value","_ref$fractionDigits","fractionDigits","currencySymbol","_ref$hideTrailingZero","hideTrailingZeros","rest","_objectWithoutPropertiesLoose2","default","createElement","CommonWrapper","CurrencyHelper","format","String","fromCharCode","__KONTUR_REACT_UI__","displayName","propTypes","_ref2","_ref2$fractionDigits","MAX_SAFE_DIGITS","Error","_ref3","destructString","fraction","length","Number","isInteger"],"sources":["CurrencyLabel.tsx"],"sourcesContent":["import type { HTMLAttributes } from 'react';\nimport React from 'react';\n\nimport { MAX_SAFE_DIGITS } from '../CurrencyInput/constants';\nimport { CurrencyHelper } from '../CurrencyInput/CurrencyHelper';\nimport type { CommonProps } from '../../internal/CommonWrapper';\nimport { CommonWrapper } from '../../internal/CommonWrapper';\n\nexport interface CurrencyLabelProps extends CommonProps, Pick<HTMLAttributes<HTMLElement>, 'id'> {\n /** Устанавливает минимальное количество отображаемых знаков после запятой.\n * @default 2 */\n fractionDigits?: number;\n\n /** Устанавливает значение. */\n value: number;\n\n /** Задает символ валюты. */\n currencySymbol?: React.ReactNode;\n\n /** Убирает лишние нули после запятой. */\n hideTrailingZeros?: boolean;\n}\n\nconst FRACTION_DIGITS_DEFAULT = 2;\n\nexport const CurrencyLabelDataTids = {\n root: 'CurrencyLabel__root',\n} as const;\n\n/**\n * `CurrencyLabel` — подпись для денежных сумм (и других числовых значений).\n */\nexport const CurrencyLabel = ({\n id,\n value,\n fractionDigits = FRACTION_DIGITS_DEFAULT,\n currencySymbol,\n hideTrailingZeros = false,\n ...rest\n}: CurrencyLabelProps): JSX.Element => {\n return (\n <CommonWrapper {...rest}>\n <span id={id} data-tid={CurrencyLabelDataTids.root}>\n {CurrencyHelper.format(value, { fractionDigits, hideTrailingZeros })}\n {currencySymbol && String.fromCharCode(0xa0) /* &nbsp; */}\n {currencySymbol}\n </span>\n </CommonWrapper>\n );\n};\n\nCurrencyLabel.__KONTUR_REACT_UI__ = 'CurrencyLabel';\nCurrencyLabel.displayName = 'CurrencyLabel';\n\nCurrencyLabel.propTypes = {\n fractionDigits: ({ fractionDigits = FRACTION_DIGITS_DEFAULT, value }: CurrencyLabelProps) => {\n if (fractionDigits > MAX_SAFE_DIGITS) {\n return new Error(\n `[CurrencyLabel]: Prop 'fractionDigits' exceeds ${MAX_SAFE_DIGITS}.` +\n `\\nSee https://tech.skbkontur.ru/react-ui/#/CurrencyInput?id=why15`,\n );\n }\n\n const { fraction } = CurrencyHelper.destructString(String(value)) || { fraction: '' };\n if (fraction.length > fractionDigits) {\n return new Error(\n `[CurrencyLabel]: Prop 'fractionDigits' less than fractional part of the 'value' property,` +\n `'value' will not be cutted`,\n );\n }\n\n if (!Number.isInteger(fractionDigits)) {\n return new Error(\n `[CurrencyLabel]: Prop 'fractionDigits' is not integer, fraction part of these property will not be used`,\n );\n }\n\n return null;\n },\n};\n"],"mappings":";AACA,IAAAA,MAAA,GAAAC,sBAAA,CAAAC,OAAA;;AAEA,IAAAC,UAAA,GAAAD,OAAA;AACA,IAAAE,eAAA,GAAAF,OAAA;;AAEA,IAAAG,cAAA,GAAAH,OAAA,iCAA6D,IAAAI,SAAA;;;;;;;;;;;;;;;;;AAiB7D,IAAMC,uBAAuB,GAAG,CAAC;;AAE1B,IAAMC,qBAAqB,GAAAC,OAAA,CAAAD,qBAAA,GAAG;EACnCE,IAAI,EAAE;AACR,CAAU;;AAEV;AACA;AACA;AACO,IAAMC,aAAa,GAAAF,OAAA,CAAAE,aAAA,GAAG,SAAhBA,aAAaA,CAAAC,IAAA;;;;;;;AAOa,KANrCC,EAAE,GAAAD,IAAA,CAAFC,EAAE,CACFC,KAAK,GAAAF,IAAA,CAALE,KAAK,CAAAC,mBAAA,GAAAH,IAAA,CACLI,cAAc,CAAdA,cAAc,GAAAD,mBAAA,cAAGR,uBAAuB,GAAA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AIA,QAAQ,CAACC,MAAM,GAAGvB,eAAc,EAAE;MACpC,OAAO,IAAImB,KAAK;QACd;;MAEF,CAAC;IACH;;IAEA,IAAI,CAACK,MAAM,CAACC,SAAS,CAACzB,eAAc,CAAC,EAAE;MACrC,OAAO,IAAImB,KAAK;;MAEhB,CAAC;IACH;;IAEA,OAAO,IAAI;EACb;AACF,CAAC","ignoreList":[]}
1
+ {"version":3,"names":["_react","_interopRequireDefault","require","_constants","_CurrencyHelper","_CommonWrapper","_forwardRefAndName","_excluded","FRACTION_DIGITS_DEFAULT","CurrencyLabelDataTids","exports","root","CurrencyLabel","forwardRefAndName","_ref","ref","id","value","_ref$fractionDigits","fractionDigits","currencySymbol","_ref$hideTrailingZero","hideTrailingZeros","rest","_objectWithoutPropertiesLoose2","default","createElement","CommonWrapper","CurrencyHelper","format","String","fromCharCode","propTypes","_ref2","_ref2$fractionDigits","MAX_SAFE_DIGITS","Error","_ref3","destructString","fraction","length","Number","isInteger"],"sources":["CurrencyLabel.tsx"],"sourcesContent":["import type { HTMLAttributes } from 'react';\nimport React from 'react';\n\nimport { MAX_SAFE_DIGITS } from '../CurrencyInput/constants';\nimport { CurrencyHelper } from '../CurrencyInput/CurrencyHelper';\nimport type { CommonProps } from '../../internal/CommonWrapper';\nimport { CommonWrapper } from '../../internal/CommonWrapper';\nimport { forwardRefAndName } from '../../lib/forwardRefAndName';\n\nexport interface CurrencyLabelProps extends CommonProps, Pick<HTMLAttributes<HTMLElement>, 'id'> {\n /** Устанавливает минимальное количество отображаемых знаков после запятой.\n * @default 2 */\n fractionDigits?: number;\n\n /** Устанавливает значение. */\n value: number;\n\n /** Задает символ валюты. */\n currencySymbol?: React.ReactNode;\n\n /** Убирает лишние нули после запятой. */\n hideTrailingZeros?: boolean;\n}\n\nconst FRACTION_DIGITS_DEFAULT = 2;\n\nexport const CurrencyLabelDataTids = {\n root: 'CurrencyLabel__root',\n} as const;\n\n/**\n * `CurrencyLabel` — подпись для денежных сумм (и других числовых значений).\n */\nconst CurrencyLabel = forwardRefAndName(\n 'CurrencyLabel',\n function CurrencyLabel(\n {\n id,\n value,\n fractionDigits = FRACTION_DIGITS_DEFAULT,\n currencySymbol,\n hideTrailingZeros = false,\n ...rest\n }: CurrencyLabelProps,\n ref: React.Ref<HTMLDivElement>,\n ) {\n return (\n <CommonWrapper {...rest}>\n <span id={id} data-tid={CurrencyLabelDataTids.root} ref={ref}>\n {CurrencyHelper.format(value, { fractionDigits, hideTrailingZeros })}\n {currencySymbol && String.fromCharCode(0xa0) /* &nbsp; */}\n {currencySymbol}\n </span>\n </CommonWrapper>\n );\n },\n);\n\nCurrencyLabel.propTypes = {\n // @ts-ignore\n fractionDigits: ({ fractionDigits = FRACTION_DIGITS_DEFAULT, value }: CurrencyLabelProps) => {\n if (fractionDigits > MAX_SAFE_DIGITS) {\n return new Error(\n `[CurrencyLabel]: Prop 'fractionDigits' exceeds ${MAX_SAFE_DIGITS}.` +\n `\\nSee https://tech.skbkontur.ru/react-ui/#/CurrencyInput?id=why15`,\n );\n }\n\n const { fraction } = CurrencyHelper.destructString(String(value)) || { fraction: '' };\n if (fraction.length > fractionDigits) {\n return new Error(\n `[CurrencyLabel]: Prop 'fractionDigits' less than fractional part of the 'value' property,` +\n `'value' will not be cutted`,\n );\n }\n\n if (!Number.isInteger(fractionDigits)) {\n return new Error(\n `[CurrencyLabel]: Prop 'fractionDigits' is not integer, fraction part of these property will not be used`,\n );\n }\n return null;\n },\n};\n\nexport { CurrencyLabel };\n"],"mappings":";AACA,IAAAA,MAAA,GAAAC,sBAAA,CAAAC,OAAA;;AAEA,IAAAC,UAAA,GAAAD,OAAA;AACA,IAAAE,eAAA,GAAAF,OAAA;;AAEA,IAAAG,cAAA,GAAAH,OAAA;AACA,IAAAI,kBAAA,GAAAJ,OAAA,gCAAgE,IAAAK,SAAA;;;;;;;;;;;;;;;;;AAiBhE,IAAMC,uBAAuB,GAAG,CAAC;;AAE1B,IAAMC,qBAAqB,GAAAC,OAAA,CAA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AK,GAAAgB,KAAA,CAALhB,KAAK;IAChE,IAAIE,eAAc,GAAGgB,0BAAe,EAAE;MACpC,OAAO,IAAIC,KAAK;QACd,oDAAkDD,0BAAe;;MAEnE,CAAC;IACH;;IAEA,IAAAE,KAAA,GAAqBT,8BAAc,CAACU,cAAc,CAACR,MAAM,CAACb,KAAK,CAAC,CAAC,IAAI,EAAEsB,QAAQ,EAAE,EAAE,CAAC,CAAC,CAA7EA,QAAQ,GAAAF,KAAA,CAARE,QAAQ;IAChB,IAAIA,QAAQ,CAACC,MAAM,GAAGrB,eAAc,EAAE;MACpC,OAAO,IAAIiB,KAAK;QACd;;MAEF,CAAC;IACH;;IAEA,IAAI,CAACK,MAAM,CAACC,SAAS,CAACvB,eAAc,CAAC,EAAE;MACrC,OAAO,IAAIiB,KAAK;;MAEhB,CAAC;IACH;IACA,OAAO,IAAI;EACb;AACF,CAAC","ignoreList":[]}
@@ -66,6 +66,7 @@ export declare class DateInput extends React.Component<DateInputProps, DateInput
66
66
  private theme;
67
67
  private setRootNode;
68
68
  private conditionalHandler;
69
+ private featureFlags;
69
70
  constructor(props: DateInputProps);
70
71
  componentDidUpdate(prevProps: DateInputProps): void;
71
72
  selectNode: () => void;
@@ -3,6 +3,8 @@ var _react = _interopRequireDefault(require("react"));
3
3
  var _reactDom = _interopRequireDefault(require("react-dom"));
4
4
  var _globalObject = require("@skbkontur/global-object");
5
5
 
6
+
7
+ var _featureFlagsContext = require("../../lib/featureFlagsContext");
6
8
  var _ConditionalHandler = require("../../lib/ConditionalHandler");
7
9
  var _constants = require("../../lib/date/constants");
8
10
  var _types = require("../../lib/date/types");
@@ -133,6 +135,8 @@ DateInput = exports.DateInput = (_dec = (0, _decorators.locale)('DatePicker', _l
133
135
 
134
136
 
135
137
 
138
+
139
+
136
140
 
137
141
 
138
142
 
@@ -253,6 +257,13 @@ DateInput = exports.DateInput = (_dec = (0, _decorators.locale)('DatePicker', _l
253
257
 
254
258
 
255
259
 
260
+
261
+
262
+
263
+
264
+
265
+
266
+
256
267
 
257
268
 
258
269
 
@@ -480,10 +491,19 @@ DateInput = exports.DateInput = (_dec = (0, _decorators.locale)('DatePicker', _l
480
491
  _this.iDateMediator.clear(_types.InternalDateComponentType.All);
481
492
  _this.setState({ selected: selected });
482
493
  }
483
- var _this$iDateMediator$i = _this.iDateMediator.inputKey(event.key, selected, _this.state.inputMode),inputMode = _this$iDateMediator$i.inputMode,changed = _this$iDateMediator$i.changed;
484
- if (!changed) {
485
- _this.blink();
486
- return;
494
+
495
+ var _this$iDateMediator$i = _this.iDateMediator.inputKey(
496
+ event.key,
497
+ selected,
498
+ _this.state.inputMode,
499
+ _this.featureFlags.dateInputAllowInvalidValuesInDays
500
+ ),inputMode = _this$iDateMediator$i.inputMode,changed = _this$iDateMediator$i.changed;
501
+
502
+ if (!_this.featureFlags.dateInputFixSameNumberTypingOnRefocus) {
503
+ if (!changed) {
504
+ _this.blink();
505
+ return;
506
+ }
487
507
  }
488
508
 
489
509
  if (!inputMode) {
@@ -491,4 +511,4 @@ DateInput = exports.DateInput = (_dec = (0, _decorators.locale)('DatePicker', _l
491
511
  _this.shiftSelection(1);
492
512
  }
493
513
  _this.updateValue({ inputMode: inputMode });
494
- };_this.state = { valueFormatted: '', selected: null, inputMode: false, focused: false, dragged: false };return _this;}(0, _inheritsLoose2.default)(DateInput, _React$Component);var _proto = DateInput.prototype;_proto.componentDidUpdate = function componentDidUpdate(prevProps) {var _this$getProps = this.getProps(),value = _this$getProps.value,minDate = _this$getProps.minDate,maxDate = _this$getProps.maxDate;if (prevProps.value !== value || prevProps.minDate !== minDate || prevProps.maxDate !== maxDate || this.iDateMediator.isChangedLocale(this.locale)) {this.updateFromProps(false);}!this.props.disabled && this.selectNode();};_proto.componentDidMount = function componentDidMount() {this.updateFromProps(false);if (this.props.autoFocus) {this.focus();}};_proto.blur = function blur() {if (this.inputLikeText) {this.inputLikeText.blur();}};_proto.focus = function focus() {if (this.inputLikeText) {this.inputLikeText.focus();}};_proto.blink = function blink() {if (this.inputLikeText) {this.inputLikeText.blink();}};_proto.render = function render() {var _this2 = this;return /*#__PURE__*/_react.default.createElement(_ThemeContext.ThemeContext.Consumer, null, function (theme) {_this2.theme = theme;return _this2.renderMain();});};_proto.renderMain = function renderMain() {var _cx2;var _this$state2 = this.state,focused = _this$state2.focused,selected = _this$state2.selected,inputMode = _this$state2.inputMode,valueFormatted = _this$state2.valueFormatted;var showValue = Boolean(focused || valueFormatted);var _this$getProps2 = this.getProps(),width = _this$getProps2.width,size = _this$getProps2.size;return /*#__PURE__*/_react.default.createElement(_CommonWrapper.CommonWrapper, (0, _extends2.default)({ rootNodeRef: this.setRootNode }, this.props), /*#__PURE__*/_react.default.createElement(_FocusControlWrapper.FocusControlWrapper, { onBlurWhenDisabled: this.resetFocus }, /*#__PURE__*/_react.default.createElement(_InputLikeText.InputLikeText, { id: this.props.id, width: width, ref: this.inputLikeTextRef, size: size, disabled: this.props.disabled, error: this.props.error, warning: this.props.warning, onBlur: this.handleBlur, onFocus: this.handleFocus, onClick: this.props.onClick, onKeyDown: this.handleKeyDown, onMouseDownCapture: this.handleMouseDownCapture, onPaste: this.handlePaste, rightIcon: this.renderIcon(), onDoubleClickCapture: this.handleDoubleClick, onMouseDragStart: this.handleMouseDragStart, onMouseDragEnd: this.handleMouseDragEnd, value: this.iDateMediator.getInternalString(), inputMode: 'numeric', takeContentWidth: true, "aria-describedby": this.props['aria-describedby'], "aria-label": this.props['aria-label'], "aria-labelledby": this.props['aria-labelledby'] }, /*#__PURE__*/_react.default.createElement("span", { className: (0, _Emotion.cx)(_DateInput2.styles.value(), (_cx2 = {}, _cx2[_DateInput2.styles.valueVisible()] = showValue, _cx2)) }, /*#__PURE__*/_react.default.createElement(_DateFragmentsView.DateFragmentsView, { ref: this.dateFragmentsViewRef, fragments: this.iDateMediator.getFragments(), onSelectDateComponent: this.handleSelectDateComponent, selected: selected, inputMode: inputMode })))));};return DateInput;}(_react.default.Component), _DateInput.__KONTUR_REACT_UI__ = 'DateInput', _DateInput.displayName = 'DateInput', _DateInput.defaultProps = { value: '', minDate: _constants.MIN_FULLDATE, maxDate: _constants.MAX_FULLDATE, size: 'small', width: 125 }, _DateInput)) || _class) || _class);
514
+ };_this.state = { valueFormatted: '', selected: null, inputMode: false, focused: false, dragged: false };return _this;}(0, _inheritsLoose2.default)(DateInput, _React$Component);var _proto = DateInput.prototype;_proto.componentDidUpdate = function componentDidUpdate(prevProps) {var _this$getProps = this.getProps(),value = _this$getProps.value,minDate = _this$getProps.minDate,maxDate = _this$getProps.maxDate;if (prevProps.value !== value || prevProps.minDate !== minDate || prevProps.maxDate !== maxDate || this.iDateMediator.isChangedLocale(this.locale)) {this.updateFromProps(false);}!this.props.disabled && this.selectNode();};_proto.componentDidMount = function componentDidMount() {this.updateFromProps(false);if (this.props.autoFocus) {this.focus();}};_proto.blur = function blur() {if (this.inputLikeText) {this.inputLikeText.blur();}};_proto.focus = function focus() {if (this.inputLikeText) {this.inputLikeText.focus();}};_proto.blink = function blink() {if (this.inputLikeText) {this.inputLikeText.blink();}};_proto.render = function render() {var _this2 = this;return /*#__PURE__*/_react.default.createElement(_featureFlagsContext.ReactUIFeatureFlagsContext.Consumer, null, function (flags) {_this2.featureFlags = (0, _featureFlagsContext.getFullReactUIFlagsContext)(flags);return /*#__PURE__*/_react.default.createElement(_ThemeContext.ThemeContext.Consumer, null, function (theme) {_this2.theme = theme;return _this2.renderMain();});});};_proto.renderMain = function renderMain() {var _cx2;var _this$state2 = this.state,focused = _this$state2.focused,selected = _this$state2.selected,inputMode = _this$state2.inputMode,valueFormatted = _this$state2.valueFormatted;var showValue = Boolean(focused || valueFormatted);var _this$getProps2 = this.getProps(),width = _this$getProps2.width,size = _this$getProps2.size;return /*#__PURE__*/_react.default.createElement(_CommonWrapper.CommonWrapper, (0, _extends2.default)({ rootNodeRef: this.setRootNode }, this.props), /*#__PURE__*/_react.default.createElement(_FocusControlWrapper.FocusControlWrapper, { onBlurWhenDisabled: this.resetFocus }, /*#__PURE__*/_react.default.createElement(_InputLikeText.InputLikeText, { id: this.props.id, width: width, ref: this.inputLikeTextRef, size: size, disabled: this.props.disabled, error: this.props.error, warning: this.props.warning, onBlur: this.handleBlur, onFocus: this.handleFocus, onClick: this.props.onClick, onKeyDown: this.handleKeyDown, onMouseDownCapture: this.handleMouseDownCapture, onPaste: this.handlePaste, rightIcon: this.renderIcon(), onDoubleClickCapture: this.handleDoubleClick, onMouseDragStart: this.handleMouseDragStart, onMouseDragEnd: this.handleMouseDragEnd, value: this.iDateMediator.getInternalString(), inputMode: 'numeric', takeContentWidth: true, "aria-describedby": this.props['aria-describedby'], "aria-label": this.props['aria-label'], "aria-labelledby": this.props['aria-labelledby'] }, /*#__PURE__*/_react.default.createElement("span", { className: (0, _Emotion.cx)(_DateInput2.styles.value(), (_cx2 = {}, _cx2[_DateInput2.styles.valueVisible()] = showValue, _cx2)) }, /*#__PURE__*/_react.default.createElement(_DateFragmentsView.DateFragmentsView, { ref: this.dateFragmentsViewRef, fragments: this.iDateMediator.getFragments(), onSelectDateComponent: this.handleSelectDateComponent, selected: selected, inputMode: inputMode })))));};return DateInput;}(_react.default.Component), _DateInput.__KONTUR_REACT_UI__ = 'DateInput', _DateInput.displayName = 'DateInput', _DateInput.defaultProps = { value: '', minDate: _constants.MIN_FULLDATE, maxDate: _constants.MAX_FULLDATE, size: 'small', width: 125 }, _DateInput)) || _class) || _class);
@@ -1 +1 @@
1
- {"version":3,"names":["_react","_interopRequireDefault","require","_reactDom","_globalObject","_ConditionalHandler","_constants","_types","_locale","_InputLikeText","_decorators","_ThemeContext","_CommonWrapper","_Emotion","_rootNode","_createPropsGetter","_FocusControlWrapper","_CalendarIcon","_DateFragmentsView","_DateInput2","_DateInputKeyboardActions","_InternalDateMediator","_dec","_class","_DateInput","DateInputDataTids","exports","icon","DateInput","locale","DatePickerLocaleHelper","rootNode","_React$Component","props","_this","call","getProps","createPropsGetter","defaultProps","iDateMediator","InternalDateMediator","inputLikeText","dateFragmentsView","isMouseDown","isMouseFocus","ignoringDelimiter","blurEvent","conditionalHandler","ConditionalHandler","add","Actions","MoveSelectionLeft","shiftSelection","MoveSelectionRight","Separator","pressDelimiter","MoveSelectionFirst","selectDateComponent","getLeftmostType","MoveSelectionLast","getRightmostType","Increment","shiftDateComponent","Decrement","Digit","e","inputValue","ClearSelection","clearSelected","ClearOneChar","clearOneChar","FullSelection","fullSelection","WrongInput","blink","build","selectNode","type","state","selected","getRootNode","InternalDateComponentType","All","selectInnerNode","index","getTypesOrder","indexOf","renderIcon","_this$props","withIcon","_this$props$disabled","disabled","size","_cx","theme","default","createElement","CalendarIcon","iconStyles","cx","styles","iconSmall","iconMedium","iconLarge","iconDisabled","className","handleFocus","setState","prevState","focused","onFocus","resetFocus","updateValue","inputMode","handleBlur","onBlur","restored","restore","persist","handleMouseDownCapture","isFragment","target","preventDefault","handleSelectDateComponent","isEmpty","handleMouseDragStart","dragged","handleMouseDragEnd","selection","globalObject","getSelection","toString","length","LENGTH_FULLDATE","handleKeyDown","extractAction","onKeyDown","handlePaste","pasted","clipboardData","getData","trim","validateString","paste","handleDoubleClick","inputLikeTextRef","el","dateFragmentsViewRef","sync","valueFormatted","getString","update","_extends2","emitChange","React","version","search","ReactDOM","flushSync","updateFromProps","value","get","onValueChange","getInternalString","setTimeout","clear","_this$state","nextType","isNull","deleteOneCharRight","step","changed","getShiftedType","event","_this$iDateMediator$i","inputKey","key","_inheritsLoose2","_proto","prototype","componentDidUpdate","prevProps","_this$getProps","minDate","maxDate","isChangedLocale","componentDidMount","autoFocus","focus","blur","render","_this2","ThemeContext","Consumer","renderMain","_cx2","_this$state2","showValue","Boolean","_this$getProps2","width","CommonWrapper","rootNodeRef","setRootNode","FocusControlWrapper","onBlurWhenDisabled","InputLikeText","id","ref","error","warning","onClick","onMouseDownCapture","onPaste","rightIcon","onDoubleClickCapture","onMouseDragStart","onMouseDragEnd","takeContentWidth","valueVisible","DateFragmentsView","fragments","getFragments","onSelectDateComponent","Component","__KONTUR_REACT_UI__","displayName","MIN_FULLDATE","MAX_FULLDATE"],"sources":["DateInput.tsx"],"sourcesContent":["import type { AriaAttributes, HTMLAttributes } from 'react';\nimport React from 'react';\nimport ReactDOM from 'react-dom';\nimport { globalObject } from '@skbkontur/global-object';\n\nimport { ConditionalHandler } from '../../lib/ConditionalHandler';\nimport { LENGTH_FULLDATE, MAX_FULLDATE, MIN_FULLDATE } from '../../lib/date/constants';\nimport { InternalDateComponentType } from '../../lib/date/types';\nimport type { Theme } from '../../lib/theming/Theme';\nimport type { DatePickerLocale } from '../DatePicker/locale';\nimport { DatePickerLocaleHelper } from '../DatePicker/locale';\nimport { InputLikeText } from '../../internal/InputLikeText';\nimport { locale } from '../../lib/locale/decorators';\nimport { ThemeContext } from '../../lib/theming/ThemeContext';\nimport type { CommonProps } from '../../internal/CommonWrapper';\nimport { CommonWrapper } from '../../internal/CommonWrapper';\nimport { cx } from '../../lib/theming/Emotion';\nimport type { TSetRootNode } from '../../lib/rootNode';\nimport { rootNode } from '../../lib/rootNode';\nimport { createPropsGetter } from '../../lib/createPropsGetter';\nimport type { SizeProp } from '../../lib/types/props';\nimport { FocusControlWrapper } from '../../internal/FocusControlWrapper';\n\nimport { CalendarIcon } from './CalendarIcon';\nimport { DateFragmentsView } from './DateFragmentsView';\nimport { styles } from './DateInput.styles';\nimport { Actions, extractAction } from './helpers/DateInputKeyboardActions';\nimport { InternalDateMediator } from './helpers/InternalDateMediator';\n\nexport interface DateInputState {\n selected: InternalDateComponentType | null;\n valueFormatted: string;\n inputMode: boolean;\n focused: boolean;\n dragged: boolean;\n}\n\nexport const DateInputDataTids = {\n icon: 'DateInput__icon',\n} as const;\n\nexport interface DateInputProps\n extends CommonProps,\n Pick<AriaAttributes, 'aria-describedby' | 'aria-label' | 'aria-labelledby'>,\n Pick<HTMLAttributes<HTMLElement>, 'id'> {\n /** Устанавливает фокус на контроле после окончания загрузки страницы. */\n autoFocus?: boolean;\n\n /** Устанавливает значение датаинпута. */\n value?: string;\n\n /** Переводит контрол в состояние валидации \"ошибка\". */\n error?: boolean;\n\n /** Переводит контрол в состояние валидации \"предупреждение\". */\n warning?: boolean;\n\n /** Делает компонент недоступным. */\n disabled?: boolean;\n\n /** Задает минимальную возможную дату в формате `dd.mm.yyyy`. */\n minDate?: string;\n\n /** Задает максимальную возможную дату в формате `dd.mm.yyyy` */\n maxDate?: string;\n\n /** Задает ширину поля. */\n width?: string | number;\n\n /** Добавляет иконку календаря. */\n withIcon?: boolean;\n\n /** Задает размер поля. */\n size?: SizeProp;\n\n /** Задает функцию, которая вызывается при потере датаинпутом фокуса. */\n onBlur?: (x0: React.FocusEvent<HTMLElement>) => void;\n\n /** Задает функцию, которая вызывается при клике на датаинпут. */\n onClick?: (x0: React.MouseEvent<HTMLElement>) => void;\n\n /** Задает функцию, которая вызывается при получении датаинпутом фокуса. */\n onFocus?: (x0: React.FocusEvent<HTMLElement>) => void;\n\n /** Задает функцию, которая вызывается при изменении value.\n * @param value - строка в формате `dd.mm.yyyy`. */\n onValueChange?: (value: string) => void;\n\n /** Задает функцию, которая вызывается при нажатии кнопки на клавиатуре. */\n onKeyDown?: (x0: React.KeyboardEvent<HTMLElement>) => void;\n}\n\ntype DefaultProps = Required<Pick<DateInputProps, 'value' | 'minDate' | 'maxDate' | 'size' | 'width'>>;\n\n/**\n * Компонент поля `DateInput` из DatePicker'а помогает выбирать дату с клавиатуры.\n */\n@rootNode\n@locale('DatePicker', DatePickerLocaleHelper)\nexport class DateInput extends React.Component<DateInputProps, DateInputState> {\n public static __KONTUR_REACT_UI__ = 'DateInput';\n public static displayName = 'DateInput';\n\n public static defaultProps: DefaultProps = {\n value: '',\n minDate: MIN_FULLDATE,\n maxDate: MAX_FULLDATE,\n size: 'small',\n width: 125,\n };\n\n private getProps = createPropsGetter(DateInput.defaultProps);\n\n private iDateMediator: InternalDateMediator = new InternalDateMediator();\n private inputLikeText: InputLikeText | null = null;\n private dateFragmentsView: DateFragmentsView | null = null;\n private isMouseDown = false;\n private isMouseFocus = false;\n private ignoringDelimiter = false;\n private locale!: DatePickerLocale;\n private blurEvent: React.FocusEvent<HTMLElement> | null = null;\n private theme!: Theme;\n private setRootNode!: TSetRootNode;\n private conditionalHandler = new ConditionalHandler<Actions, [React.KeyboardEvent<HTMLElement>]>()\n .add(Actions.MoveSelectionLeft, () => this.shiftSelection(-1))\n .add(Actions.MoveSelectionRight, () => this.shiftSelection(1))\n .add(Actions.Separator, () => this.pressDelimiter())\n .add(Actions.MoveSelectionFirst, () => this.selectDateComponent(this.iDateMediator.getLeftmostType()))\n .add(Actions.MoveSelectionLast, () => this.selectDateComponent(this.iDateMediator.getRightmostType()))\n .add(Actions.Increment, () => this.shiftDateComponent(1))\n .add(Actions.Decrement, () => this.shiftDateComponent(-1))\n .add(Actions.Digit, (e) => this.inputValue(e))\n .add(Actions.ClearSelection, () => this.clearSelected())\n .add(Actions.ClearOneChar, () => this.clearOneChar())\n .add(Actions.FullSelection, () => this.fullSelection())\n .add(Actions.WrongInput, () => this.blink())\n .build();\n\n constructor(props: DateInputProps) {\n super(props);\n\n this.state = {\n valueFormatted: '',\n selected: null,\n inputMode: false,\n focused: false,\n dragged: false,\n };\n }\n\n public componentDidUpdate(prevProps: DateInputProps) {\n const { value, minDate, maxDate } = this.getProps();\n if (\n prevProps.value !== value ||\n prevProps.minDate !== minDate ||\n prevProps.maxDate !== maxDate ||\n this.iDateMediator.isChangedLocale(this.locale)\n ) {\n this.updateFromProps(false);\n }\n !this.props.disabled && this.selectNode();\n }\n\n public selectNode = () => {\n const type = this.state.selected;\n const dateFragmentsView = this.dateFragmentsView && this.dateFragmentsView.getRootNode();\n if (type === null || !this.inputLikeText || !dateFragmentsView) {\n return;\n }\n if (type === InternalDateComponentType.All) {\n this.inputLikeText.selectInnerNode(dateFragmentsView, 0, 5);\n return;\n }\n const index = this.iDateMediator.getTypesOrder().indexOf(type);\n if (index > -1) {\n this.inputLikeText.selectInnerNode(dateFragmentsView, index * 2, index * 2 + 1);\n }\n };\n\n public componentDidMount(): void {\n this.updateFromProps(false);\n if (this.props.autoFocus) {\n this.focus();\n }\n }\n\n public blur() {\n if (this.inputLikeText) {\n this.inputLikeText.blur();\n }\n }\n\n public focus() {\n if (this.inputLikeText) {\n this.inputLikeText.focus();\n }\n }\n\n public blink() {\n if (this.inputLikeText) {\n this.inputLikeText.blink();\n }\n }\n\n public render() {\n return (\n <ThemeContext.Consumer>\n {(theme) => {\n this.theme = theme;\n return this.renderMain();\n }}\n </ThemeContext.Consumer>\n );\n }\n\n private renderMain() {\n const { focused, selected, inputMode, valueFormatted } = this.state;\n const showValue = Boolean(focused || valueFormatted);\n const { width, size } = this.getProps();\n\n return (\n <CommonWrapper rootNodeRef={this.setRootNode} {...this.props}>\n <FocusControlWrapper onBlurWhenDisabled={this.resetFocus}>\n <InputLikeText\n id={this.props.id}\n width={width}\n ref={this.inputLikeTextRef}\n size={size}\n disabled={this.props.disabled}\n error={this.props.error}\n warning={this.props.warning}\n onBlur={this.handleBlur}\n onFocus={this.handleFocus}\n onClick={this.props.onClick}\n onKeyDown={this.handleKeyDown}\n onMouseDownCapture={this.handleMouseDownCapture}\n onPaste={this.handlePaste}\n rightIcon={this.renderIcon()}\n onDoubleClickCapture={this.handleDoubleClick}\n onMouseDragStart={this.handleMouseDragStart}\n onMouseDragEnd={this.handleMouseDragEnd}\n value={this.iDateMediator.getInternalString()}\n inputMode={'numeric'}\n takeContentWidth\n aria-describedby={this.props['aria-describedby']}\n aria-label={this.props['aria-label']}\n aria-labelledby={this.props['aria-labelledby']}\n >\n <span className={cx(styles.value(), { [styles.valueVisible()]: showValue })}>\n <DateFragmentsView\n ref={this.dateFragmentsViewRef}\n fragments={this.iDateMediator.getFragments()}\n onSelectDateComponent={this.handleSelectDateComponent}\n selected={selected}\n inputMode={inputMode}\n />\n </span>\n </InputLikeText>\n </FocusControlWrapper>\n </CommonWrapper>\n );\n }\n\n private renderIcon = () => {\n const { withIcon, disabled = false } = this.props;\n const size = this.getProps().size;\n\n if (withIcon) {\n const theme = this.theme;\n const icon = <CalendarIcon size={size} />;\n const iconStyles = cx({\n [styles.icon(theme)]: true,\n [styles.iconSmall(theme)]: size === 'small',\n [styles.iconMedium(theme)]: size === 'medium',\n [styles.iconLarge(theme)]: size === 'large',\n [styles.iconDisabled(theme)]: disabled,\n });\n return (\n <span className={iconStyles} data-tid={DateInputDataTids.icon}>\n {icon}\n </span>\n );\n }\n return null;\n };\n\n private handleFocus = (e: React.FocusEvent<HTMLElement>) => {\n this.setState((prevState) => ({\n focused: true,\n selected: this.isMouseDown && !prevState.focused ? prevState.selected : this.iDateMediator.getLeftmostType(),\n }));\n\n if (this.props.onFocus) {\n this.props.onFocus(e);\n }\n };\n\n private resetFocus = () => this.updateValue({ focused: false, selected: null, inputMode: false });\n\n private handleBlur = (e: React.FocusEvent<HTMLElement>) => {\n this.resetFocus();\n\n if (this.props.onBlur) {\n const restored = this.iDateMediator.restore();\n if (restored) {\n e.persist();\n this.blurEvent = e;\n } else {\n this.props.onBlur(e);\n }\n }\n };\n\n private handleMouseDownCapture = (e: React.MouseEvent<HTMLSpanElement>) => {\n const isFragment = this.dateFragmentsView ? this.dateFragmentsView.isFragment(e.target) : false;\n if (this.state.focused && !isFragment) {\n e.preventDefault();\n }\n this.isMouseFocus = !this.state.focused;\n this.isMouseDown = isFragment;\n };\n\n private handleSelectDateComponent = (type: InternalDateComponentType) => {\n if (!(this.isMouseFocus && this.iDateMediator.isEmpty())) {\n this.selectDateComponent(type);\n }\n this.isMouseFocus = false;\n this.isMouseDown = false;\n };\n\n private handleMouseDragStart = () => {\n this.setState({ dragged: true, selected: null });\n };\n\n private handleMouseDragEnd = () => {\n const selection = globalObject.getSelection?.();\n if (\n selection &&\n selection.toString().length === LENGTH_FULLDATE &&\n this.state.selected !== InternalDateComponentType.All\n ) {\n this.selectDateComponent(InternalDateComponentType.All);\n }\n };\n\n private handleKeyDown = (e: React.KeyboardEvent<HTMLElement>) => {\n if (this.conditionalHandler(extractAction(e), e)) {\n e.preventDefault();\n }\n if (this.props.onKeyDown) {\n this.props.onKeyDown(e);\n }\n };\n\n private handlePaste = (e: React.ClipboardEvent<HTMLElement>) => {\n const pasted = e && e.clipboardData.getData('text').trim();\n if (pasted && this.iDateMediator.validateString(pasted)) {\n this.iDateMediator.paste(pasted);\n this.updateValue();\n }\n };\n\n private handleDoubleClick = () => {\n this.selectDateComponent(InternalDateComponentType.All);\n };\n\n private inputLikeTextRef = (el: InputLikeText | null) => {\n this.inputLikeText = el;\n };\n\n private dateFragmentsViewRef = (el: DateFragmentsView | null) => {\n this.dateFragmentsView = el;\n };\n\n private selectDateComponent = (selected: InternalDateComponentType | null): void => {\n this.setState({ selected, inputMode: false });\n };\n\n private updateValue = (state: Partial<DateInputState> = {}, sync = true): void => {\n const valueFormatted = this.iDateMediator.getString();\n\n const update = () => this.setState({ ...state, valueFormatted } as DateInputState, this.emitChange);\n\n if (sync && React.version.search('18') === 0) {\n ReactDOM.flushSync(update);\n } else {\n update();\n }\n };\n\n private updateFromProps = (sync: boolean): void => {\n this.iDateMediator.update(this.props, this.locale);\n\n this.updateValue({}, sync);\n };\n\n private fullSelection = (): void => {\n this.selectDateComponent(InternalDateComponentType.All);\n };\n\n private pressDelimiter = (): void => {\n const value = this.iDateMediator.get(this.state.selected);\n if (value !== null && value !== '') {\n if (!this.ignoringDelimiter) {\n this.shiftSelection(1);\n }\n this.ignoringDelimiter = false;\n }\n };\n\n private emitChange = (): void => {\n if (this.props.onValueChange) {\n const value = this.iDateMediator.getInternalString();\n if (this.props.value !== value) {\n this.props.onValueChange(value);\n }\n }\n\n // `this.blurEvent` is always null in `flushSync` without `setTimeout` due to sync update\n setTimeout(() => {\n if (this.blurEvent && this.props.onBlur) {\n this.props.onBlur(this.blurEvent);\n this.blurEvent = null;\n }\n });\n };\n\n private clearSelected = (): void => {\n const selected = this.state.selected === null ? this.iDateMediator.getLeftmostType() : this.state.selected;\n this.iDateMediator.clear(selected);\n this.updateValue({\n inputMode: false,\n selected: selected === InternalDateComponentType.All ? this.iDateMediator.getLeftmostType() : selected,\n });\n };\n\n private clearOneChar = (): void => {\n const { selected, inputMode } = this.state;\n const nextType = selected === null ? this.iDateMediator.getRightmostType() : selected;\n if (this.iDateMediator.isNull(nextType)) {\n this.shiftSelection(-1);\n return;\n }\n if (selected === InternalDateComponentType.All) {\n this.iDateMediator.clear(InternalDateComponentType.All);\n this.updateValue({ selected: this.iDateMediator.getLeftmostType() });\n return;\n }\n this.iDateMediator.deleteOneCharRight(nextType, inputMode);\n this.updateValue({\n inputMode: this.iDateMediator.get(nextType) !== null,\n selected: nextType,\n });\n };\n\n private shiftDateComponent = (step: number): void => {\n const { selected } = this.state;\n const changed = this.iDateMediator.shiftDateComponent(selected, step);\n if (!changed) {\n this.blink();\n return;\n }\n this.updateValue({\n inputMode: false,\n selected: selected === InternalDateComponentType.All ? this.iDateMediator.getLeftmostType() : selected,\n });\n };\n\n private shiftSelection = (step: number): void => {\n const selected = this.iDateMediator.getShiftedType(this.state.selected, step);\n if (selected !== this.state.selected) {\n this.setState({ selected, inputMode: false });\n }\n };\n\n private inputValue = (event: React.KeyboardEvent<HTMLElement>): void => {\n let selected = this.state.selected;\n if (selected === InternalDateComponentType.All) {\n selected = this.iDateMediator.getLeftmostType();\n this.iDateMediator.clear(InternalDateComponentType.All);\n this.setState({ selected });\n }\n const { inputMode, changed } = this.iDateMediator.inputKey(event.key, selected, this.state.inputMode);\n if (!changed) {\n this.blink();\n return;\n }\n\n if (!inputMode) {\n this.ignoringDelimiter = true;\n this.shiftSelection(1);\n }\n this.updateValue({ inputMode });\n };\n}\n"],"mappings":";AACA,IAAAA,MAAA,GAAAC,sBAAA,CAAAC,OAAA;AACA,IAAAC,SAAA,GAAAF,sBAAA,CAAAC,OAAA;AACA,IAAAE,aAAA,GAAAF,OAAA;;AAEA,IAAAG,mBAAA,GAAAH,OAAA;AACA,IAAAI,UAAA,GAAAJ,OAAA;AACA,IAAAK,MAAA,GAAAL,OAAA;;;AAGA,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,SAAS,EAAE,SAAU,EACrByG,gBAAgB,QAChB,oBAAkB,IAAI,CAACzL,KAAK,CAAC,kBAAkB,CAAE,EACjD,cAAY,IAAI,CAACA,KAAK,CAAC,YAAY,CAAE,EACrC,mBAAiB,IAAI,CAACA,KAAK,CAAC,iBAAiB,CAAE,iBAE/CjC,MAAA,CAAA+F,OAAA,CAAAC,aAAA,WAAMS,SAAS,EAAE,IAAAN,WAAE,EAACC,kBAAM,CAAC4D,KAAK,CAAC,CAAC,GAAAmC,IAAA,OAAAA,IAAA,CAAK/F,kBAAM,CAACuH,YAAY,CAAC,CAAC,IAAGtB,SAAS,EAAAF,IAAA,CAAE,CAAE,iBAC1EnM,MAAA,CAAA+F,OAAA,CAAAC,aAAA,CAAC9E,kBAAA,CAAA0M,iBAAiB,IAChBZ,GAAG,EAAE,IAAI,CAAC7D,oBAAqB,EAC/B0E,SAAS,EAAE,IAAI,CAACtL,aAAa,CAACuL,YAAY,CAAC,CAAE,EAC7CC,qBAAqB,EAAE,IAAI,CAACpG,yBAA0B,EACtD5C,QAAQ,EAAEA,QAAS,EACnBkC,SAAS,EAAEA,SAAU,EACtB,CACG,CACO,CACI,CACR,CAAC,CAEpB,CAAC,QAAArF,SAAA,GAlK4B8H,cAAK,CAACsE,SAAS,GAAAxM,UAAA,CAC9ByM,mBAAmB,GAAG,WAAW,EAAAzM,UAAA,CACjC0M,WAAW,GAAG,WAAW,EAAA1M,UAAA,CAEzBc,YAAY,GAAiB,EACzC0H,KAAK,EAAE,EAAE,EACTuB,OAAO,EAAE4C,uBAAY,EACrB3C,OAAO,EAAE4C,uBAAY,EACrBxI,IAAI,EAAE,OAAO,EACb4G,KAAK,EAAE,GAAG,CACZ,CAAC,EAAAhL,UAAA,MAAAD,MAAA,KAAAA,MAAA","ignoreList":[]}
1
+ {"version":3,"names":["_react","_interopRequireDefault","require","_reactDom","_globalObject","_featureFlagsContext","_ConditionalHandler","_constants","_types","_locale","_InputLikeText","_decorators","_ThemeContext","_CommonWrapper","_Emotion","_rootNode","_createPropsGetter","_FocusControlWrapper","_CalendarIcon","_DateFragmentsView","_DateInput2","_DateInputKeyboardActions","_InternalDateMediator","_dec","_class","_DateInput","DateInputDataTids","exports","icon","DateInput","locale","DatePickerLocaleHelper","rootNode","_React$Component","props","_this","call","getProps","createPropsGetter","defaultProps","iDateMediator","InternalDateMediator","inputLikeText","dateFragmentsView","isMouseDown","isMouseFocus","ignoringDelimiter","blurEvent","conditionalHandler","ConditionalHandler","add","Actions","MoveSelectionLeft","shiftSelection","MoveSelectionRight","Separator","pressDelimiter","MoveSelectionFirst","selectDateComponent","getLeftmostType","MoveSelectionLast","getRightmostType","Increment","shiftDateComponent","Decrement","Digit","e","inputValue","ClearSelection","clearSelected","ClearOneChar","clearOneChar","FullSelection","fullSelection","WrongInput","blink","build","selectNode","type","state","selected","getRootNode","InternalDateComponentType","All","selectInnerNode","index","getTypesOrder","indexOf","renderIcon","_this$props","withIcon","_this$props$disabled","disabled","size","_cx","theme","default","createElement","CalendarIcon","iconStyles","cx","styles","iconSmall","iconMedium","iconLarge","iconDisabled","className","handleFocus","setState","prevState","focused","onFocus","resetFocus","updateValue","inputMode","handleBlur","onBlur","restored","restore","persist","handleMouseDownCapture","isFragment","target","preventDefault","handleSelectDateComponent","isEmpty","handleMouseDragStart","dragged","handleMouseDragEnd","selection","globalObject","getSelection","toString","length","LENGTH_FULLDATE","handleKeyDown","extractAction","onKeyDown","handlePaste","pasted","clipboardData","getData","trim","validateString","paste","handleDoubleClick","inputLikeTextRef","el","dateFragmentsViewRef","sync","valueFormatted","getString","update","_extends2","emitChange","React","version","search","ReactDOM","flushSync","updateFromProps","value","get","onValueChange","getInternalString","setTimeout","clear","_this$state","nextType","isNull","deleteOneCharRight","step","changed","getShiftedType","event","_this$iDateMediator$i","inputKey","key","featureFlags","dateInputAllowInvalidValuesInDays","dateInputFixSameNumberTypingOnRefocus","_inheritsLoose2","_proto","prototype","componentDidUpdate","prevProps","_this$getProps","minDate","maxDate","isChangedLocale","componentDidMount","autoFocus","focus","blur","render","_this2","ReactUIFeatureFlagsContext","Consumer","flags","getFullReactUIFlagsContext","ThemeContext","renderMain","_cx2","_this$state2","showValue","Boolean","_this$getProps2","width","CommonWrapper","rootNodeRef","setRootNode","FocusControlWrapper","onBlurWhenDisabled","InputLikeText","id","ref","error","warning","onClick","onMouseDownCapture","onPaste","rightIcon","onDoubleClickCapture","onMouseDragStart","onMouseDragEnd","takeContentWidth","valueVisible","DateFragmentsView","fragments","getFragments","onSelectDateComponent","Component","__KONTUR_REACT_UI__","displayName","MIN_FULLDATE","MAX_FULLDATE"],"sources":["DateInput.tsx"],"sourcesContent":["import type { AriaAttributes, HTMLAttributes } from 'react';\nimport React from 'react';\nimport ReactDOM from 'react-dom';\nimport { globalObject } from '@skbkontur/global-object';\n\nimport type { ReactUIFeatureFlags } from '../../lib/featureFlagsContext';\nimport { getFullReactUIFlagsContext, ReactUIFeatureFlagsContext } from '../../lib/featureFlagsContext';\nimport { ConditionalHandler } from '../../lib/ConditionalHandler';\nimport { LENGTH_FULLDATE, MAX_FULLDATE, MIN_FULLDATE } from '../../lib/date/constants';\nimport { InternalDateComponentType } from '../../lib/date/types';\nimport type { Theme } from '../../lib/theming/Theme';\nimport type { DatePickerLocale } from '../DatePicker/locale';\nimport { DatePickerLocaleHelper } from '../DatePicker/locale';\nimport { InputLikeText } from '../../internal/InputLikeText';\nimport { locale } from '../../lib/locale/decorators';\nimport { ThemeContext } from '../../lib/theming/ThemeContext';\nimport type { CommonProps } from '../../internal/CommonWrapper';\nimport { CommonWrapper } from '../../internal/CommonWrapper';\nimport { cx } from '../../lib/theming/Emotion';\nimport type { TSetRootNode } from '../../lib/rootNode';\nimport { rootNode } from '../../lib/rootNode';\nimport { createPropsGetter } from '../../lib/createPropsGetter';\nimport type { SizeProp } from '../../lib/types/props';\nimport { FocusControlWrapper } from '../../internal/FocusControlWrapper';\n\nimport { CalendarIcon } from './CalendarIcon';\nimport { DateFragmentsView } from './DateFragmentsView';\nimport { styles } from './DateInput.styles';\nimport { Actions, extractAction } from './helpers/DateInputKeyboardActions';\nimport { InternalDateMediator } from './helpers/InternalDateMediator';\n\nexport interface DateInputState {\n selected: InternalDateComponentType | null;\n valueFormatted: string;\n inputMode: boolean;\n focused: boolean;\n dragged: boolean;\n}\n\nexport const DateInputDataTids = {\n icon: 'DateInput__icon',\n} as const;\n\nexport interface DateInputProps\n extends CommonProps,\n Pick<AriaAttributes, 'aria-describedby' | 'aria-label' | 'aria-labelledby'>,\n Pick<HTMLAttributes<HTMLElement>, 'id'> {\n /** Устанавливает фокус на контроле после окончания загрузки страницы. */\n autoFocus?: boolean;\n\n /** Устанавливает значение датаинпута. */\n value?: string;\n\n /** Переводит контрол в состояние валидации \"ошибка\". */\n error?: boolean;\n\n /** Переводит контрол в состояние валидации \"предупреждение\". */\n warning?: boolean;\n\n /** Делает компонент недоступным. */\n disabled?: boolean;\n\n /** Задает минимальную возможную дату в формате `dd.mm.yyyy`. */\n minDate?: string;\n\n /** Задает максимальную возможную дату в формате `dd.mm.yyyy` */\n maxDate?: string;\n\n /** Задает ширину поля. */\n width?: string | number;\n\n /** Добавляет иконку календаря. */\n withIcon?: boolean;\n\n /** Задает размер поля. */\n size?: SizeProp;\n\n /** Задает функцию, которая вызывается при потере датаинпутом фокуса. */\n onBlur?: (x0: React.FocusEvent<HTMLElement>) => void;\n\n /** Задает функцию, которая вызывается при клике на датаинпут. */\n onClick?: (x0: React.MouseEvent<HTMLElement>) => void;\n\n /** Задает функцию, которая вызывается при получении датаинпутом фокуса. */\n onFocus?: (x0: React.FocusEvent<HTMLElement>) => void;\n\n /** Задает функцию, которая вызывается при изменении value.\n * @param value - строка в формате `dd.mm.yyyy`. */\n onValueChange?: (value: string) => void;\n\n /** Задает функцию, которая вызывается при нажатии кнопки на клавиатуре. */\n onKeyDown?: (x0: React.KeyboardEvent<HTMLElement>) => void;\n}\n\ntype DefaultProps = Required<Pick<DateInputProps, 'value' | 'minDate' | 'maxDate' | 'size' | 'width'>>;\n\n/**\n * Компонент поля `DateInput` из DatePicker'а помогает выбирать дату с клавиатуры.\n */\n@rootNode\n@locale('DatePicker', DatePickerLocaleHelper)\nexport class DateInput extends React.Component<DateInputProps, DateInputState> {\n public static __KONTUR_REACT_UI__ = 'DateInput';\n public static displayName = 'DateInput';\n\n public static defaultProps: DefaultProps = {\n value: '',\n minDate: MIN_FULLDATE,\n maxDate: MAX_FULLDATE,\n size: 'small',\n width: 125,\n };\n\n private getProps = createPropsGetter(DateInput.defaultProps);\n\n private iDateMediator: InternalDateMediator = new InternalDateMediator();\n private inputLikeText: InputLikeText | null = null;\n private dateFragmentsView: DateFragmentsView | null = null;\n private isMouseDown = false;\n private isMouseFocus = false;\n private ignoringDelimiter = false;\n private locale!: DatePickerLocale;\n private blurEvent: React.FocusEvent<HTMLElement> | null = null;\n private theme!: Theme;\n private setRootNode!: TSetRootNode;\n private conditionalHandler = new ConditionalHandler<Actions, [React.KeyboardEvent<HTMLElement>]>()\n .add(Actions.MoveSelectionLeft, () => this.shiftSelection(-1))\n .add(Actions.MoveSelectionRight, () => this.shiftSelection(1))\n .add(Actions.Separator, () => this.pressDelimiter())\n .add(Actions.MoveSelectionFirst, () => this.selectDateComponent(this.iDateMediator.getLeftmostType()))\n .add(Actions.MoveSelectionLast, () => this.selectDateComponent(this.iDateMediator.getRightmostType()))\n .add(Actions.Increment, () => this.shiftDateComponent(1))\n .add(Actions.Decrement, () => this.shiftDateComponent(-1))\n .add(Actions.Digit, (e) => this.inputValue(e))\n .add(Actions.ClearSelection, () => this.clearSelected())\n .add(Actions.ClearOneChar, () => this.clearOneChar())\n .add(Actions.FullSelection, () => this.fullSelection())\n .add(Actions.WrongInput, () => this.blink())\n .build();\n\n private featureFlags!: ReactUIFeatureFlags;\n\n constructor(props: DateInputProps) {\n super(props);\n\n this.state = {\n valueFormatted: '',\n selected: null,\n inputMode: false,\n focused: false,\n dragged: false,\n };\n }\n\n public componentDidUpdate(prevProps: DateInputProps) {\n const { value, minDate, maxDate } = this.getProps();\n if (\n prevProps.value !== value ||\n prevProps.minDate !== minDate ||\n prevProps.maxDate !== maxDate ||\n this.iDateMediator.isChangedLocale(this.locale)\n ) {\n this.updateFromProps(false);\n }\n !this.props.disabled && this.selectNode();\n }\n\n public selectNode = () => {\n const type = this.state.selected;\n const dateFragmentsView = this.dateFragmentsView && this.dateFragmentsView.getRootNode();\n if (type === null || !this.inputLikeText || !dateFragmentsView) {\n return;\n }\n if (type === InternalDateComponentType.All) {\n this.inputLikeText.selectInnerNode(dateFragmentsView, 0, 5);\n return;\n }\n const index = this.iDateMediator.getTypesOrder().indexOf(type);\n if (index > -1) {\n this.inputLikeText.selectInnerNode(dateFragmentsView, index * 2, index * 2 + 1);\n }\n };\n\n public componentDidMount(): void {\n this.updateFromProps(false);\n if (this.props.autoFocus) {\n this.focus();\n }\n }\n\n public blur() {\n if (this.inputLikeText) {\n this.inputLikeText.blur();\n }\n }\n\n public focus() {\n if (this.inputLikeText) {\n this.inputLikeText.focus();\n }\n }\n\n public blink() {\n if (this.inputLikeText) {\n this.inputLikeText.blink();\n }\n }\n\n public render() {\n return (\n <ReactUIFeatureFlagsContext.Consumer>\n {(flags) => {\n this.featureFlags = getFullReactUIFlagsContext(flags);\n return (\n <ThemeContext.Consumer>\n {(theme) => {\n this.theme = theme;\n return this.renderMain();\n }}\n </ThemeContext.Consumer>\n );\n }}\n </ReactUIFeatureFlagsContext.Consumer>\n );\n }\n\n private renderMain() {\n const { focused, selected, inputMode, valueFormatted } = this.state;\n const showValue = Boolean(focused || valueFormatted);\n const { width, size } = this.getProps();\n\n return (\n <CommonWrapper rootNodeRef={this.setRootNode} {...this.props}>\n <FocusControlWrapper onBlurWhenDisabled={this.resetFocus}>\n <InputLikeText\n id={this.props.id}\n width={width}\n ref={this.inputLikeTextRef}\n size={size}\n disabled={this.props.disabled}\n error={this.props.error}\n warning={this.props.warning}\n onBlur={this.handleBlur}\n onFocus={this.handleFocus}\n onClick={this.props.onClick}\n onKeyDown={this.handleKeyDown}\n onMouseDownCapture={this.handleMouseDownCapture}\n onPaste={this.handlePaste}\n rightIcon={this.renderIcon()}\n onDoubleClickCapture={this.handleDoubleClick}\n onMouseDragStart={this.handleMouseDragStart}\n onMouseDragEnd={this.handleMouseDragEnd}\n value={this.iDateMediator.getInternalString()}\n inputMode={'numeric'}\n takeContentWidth\n aria-describedby={this.props['aria-describedby']}\n aria-label={this.props['aria-label']}\n aria-labelledby={this.props['aria-labelledby']}\n >\n <span className={cx(styles.value(), { [styles.valueVisible()]: showValue })}>\n <DateFragmentsView\n ref={this.dateFragmentsViewRef}\n fragments={this.iDateMediator.getFragments()}\n onSelectDateComponent={this.handleSelectDateComponent}\n selected={selected}\n inputMode={inputMode}\n />\n </span>\n </InputLikeText>\n </FocusControlWrapper>\n </CommonWrapper>\n );\n }\n\n private renderIcon = () => {\n const { withIcon, disabled = false } = this.props;\n const size = this.getProps().size;\n\n if (withIcon) {\n const theme = this.theme;\n const icon = <CalendarIcon size={size} />;\n const iconStyles = cx({\n [styles.icon(theme)]: true,\n [styles.iconSmall(theme)]: size === 'small',\n [styles.iconMedium(theme)]: size === 'medium',\n [styles.iconLarge(theme)]: size === 'large',\n [styles.iconDisabled(theme)]: disabled,\n });\n return (\n <span className={iconStyles} data-tid={DateInputDataTids.icon}>\n {icon}\n </span>\n );\n }\n return null;\n };\n\n private handleFocus = (e: React.FocusEvent<HTMLElement>) => {\n this.setState((prevState) => ({\n focused: true,\n selected: this.isMouseDown && !prevState.focused ? prevState.selected : this.iDateMediator.getLeftmostType(),\n }));\n\n if (this.props.onFocus) {\n this.props.onFocus(e);\n }\n };\n\n private resetFocus = () => this.updateValue({ focused: false, selected: null, inputMode: false });\n\n private handleBlur = (e: React.FocusEvent<HTMLElement>) => {\n this.resetFocus();\n\n if (this.props.onBlur) {\n const restored = this.iDateMediator.restore();\n if (restored) {\n e.persist();\n this.blurEvent = e;\n } else {\n this.props.onBlur(e);\n }\n }\n };\n\n private handleMouseDownCapture = (e: React.MouseEvent<HTMLSpanElement>) => {\n const isFragment = this.dateFragmentsView ? this.dateFragmentsView.isFragment(e.target) : false;\n if (this.state.focused && !isFragment) {\n e.preventDefault();\n }\n this.isMouseFocus = !this.state.focused;\n this.isMouseDown = isFragment;\n };\n\n private handleSelectDateComponent = (type: InternalDateComponentType) => {\n if (!(this.isMouseFocus && this.iDateMediator.isEmpty())) {\n this.selectDateComponent(type);\n }\n this.isMouseFocus = false;\n this.isMouseDown = false;\n };\n\n private handleMouseDragStart = () => {\n this.setState({ dragged: true, selected: null });\n };\n\n private handleMouseDragEnd = () => {\n const selection = globalObject.getSelection?.();\n if (\n selection &&\n selection.toString().length === LENGTH_FULLDATE &&\n this.state.selected !== InternalDateComponentType.All\n ) {\n this.selectDateComponent(InternalDateComponentType.All);\n }\n };\n\n private handleKeyDown = (e: React.KeyboardEvent<HTMLElement>) => {\n if (this.conditionalHandler(extractAction(e), e)) {\n e.preventDefault();\n }\n if (this.props.onKeyDown) {\n this.props.onKeyDown(e);\n }\n };\n\n private handlePaste = (e: React.ClipboardEvent<HTMLElement>) => {\n const pasted = e && e.clipboardData.getData('text').trim();\n if (pasted && this.iDateMediator.validateString(pasted)) {\n this.iDateMediator.paste(pasted);\n this.updateValue();\n }\n };\n\n private handleDoubleClick = () => {\n this.selectDateComponent(InternalDateComponentType.All);\n };\n\n private inputLikeTextRef = (el: InputLikeText | null) => {\n this.inputLikeText = el;\n };\n\n private dateFragmentsViewRef = (el: DateFragmentsView | null) => {\n this.dateFragmentsView = el;\n };\n\n private selectDateComponent = (selected: InternalDateComponentType | null): void => {\n this.setState({ selected, inputMode: false });\n };\n\n private updateValue = (state: Partial<DateInputState> = {}, sync = true): void => {\n const valueFormatted = this.iDateMediator.getString();\n\n const update = () => this.setState({ ...state, valueFormatted } as DateInputState, this.emitChange);\n\n if (sync && React.version.search('18') === 0) {\n ReactDOM.flushSync(update);\n } else {\n update();\n }\n };\n\n private updateFromProps = (sync: boolean): void => {\n this.iDateMediator.update(this.props, this.locale);\n\n this.updateValue({}, sync);\n };\n\n private fullSelection = (): void => {\n this.selectDateComponent(InternalDateComponentType.All);\n };\n\n private pressDelimiter = (): void => {\n const value = this.iDateMediator.get(this.state.selected);\n if (value !== null && value !== '') {\n if (!this.ignoringDelimiter) {\n this.shiftSelection(1);\n }\n this.ignoringDelimiter = false;\n }\n };\n\n private emitChange = (): void => {\n if (this.props.onValueChange) {\n const value = this.iDateMediator.getInternalString();\n if (this.props.value !== value) {\n this.props.onValueChange(value);\n }\n }\n\n // `this.blurEvent` is always null in `flushSync` without `setTimeout` due to sync update\n setTimeout(() => {\n if (this.blurEvent && this.props.onBlur) {\n this.props.onBlur(this.blurEvent);\n this.blurEvent = null;\n }\n });\n };\n\n private clearSelected = (): void => {\n const selected = this.state.selected === null ? this.iDateMediator.getLeftmostType() : this.state.selected;\n this.iDateMediator.clear(selected);\n this.updateValue({\n inputMode: false,\n selected: selected === InternalDateComponentType.All ? this.iDateMediator.getLeftmostType() : selected,\n });\n };\n\n private clearOneChar = (): void => {\n const { selected, inputMode } = this.state;\n const nextType = selected === null ? this.iDateMediator.getRightmostType() : selected;\n if (this.iDateMediator.isNull(nextType)) {\n this.shiftSelection(-1);\n return;\n }\n if (selected === InternalDateComponentType.All) {\n this.iDateMediator.clear(InternalDateComponentType.All);\n this.updateValue({ selected: this.iDateMediator.getLeftmostType() });\n return;\n }\n this.iDateMediator.deleteOneCharRight(nextType, inputMode);\n this.updateValue({\n inputMode: this.iDateMediator.get(nextType) !== null,\n selected: nextType,\n });\n };\n\n private shiftDateComponent = (step: number): void => {\n const { selected } = this.state;\n const changed = this.iDateMediator.shiftDateComponent(selected, step);\n if (!changed) {\n this.blink();\n return;\n }\n this.updateValue({\n inputMode: false,\n selected: selected === InternalDateComponentType.All ? this.iDateMediator.getLeftmostType() : selected,\n });\n };\n\n private shiftSelection = (step: number): void => {\n const selected = this.iDateMediator.getShiftedType(this.state.selected, step);\n if (selected !== this.state.selected) {\n this.setState({ selected, inputMode: false });\n }\n };\n\n private inputValue = (event: React.KeyboardEvent<HTMLElement>): void => {\n let selected = this.state.selected;\n if (selected === InternalDateComponentType.All) {\n selected = this.iDateMediator.getLeftmostType();\n this.iDateMediator.clear(InternalDateComponentType.All);\n this.setState({ selected });\n }\n\n const { inputMode, changed } = this.iDateMediator.inputKey(\n event.key,\n selected,\n this.state.inputMode,\n this.featureFlags.dateInputAllowInvalidValuesInDays,\n );\n\n if (!this.featureFlags.dateInputFixSameNumberTypingOnRefocus) {\n if (!changed) {\n this.blink();\n return;\n }\n }\n\n if (!inputMode) {\n this.ignoringDelimiter = true;\n this.shiftSelection(1);\n }\n this.updateValue({ inputMode });\n };\n}\n"],"mappings":";AACA,IAAAA,MAAA,GAAAC,sBAAA,CAAAC,OAAA;AACA,IAAAC,SAAA,GAAAF,sBAAA,CAAAC,OAAA;AACA,IAAAE,aAAA,GAAAF,OAAA;;;AAGA,IAAAG,oBAAA,GAAAH,OAAA;AACA,IAAAI,mBAAA,GAAAJ,OAAA;AACA,IAAAK,UAAA,GAAAL,OAAA;AACA,IAAAM,MAAA,GAAAN,OAAA;;;AAGA,IAAAO,OAAA,GAAAP,OAAA;AACA,IAAAQ,cAAA,GAAAR,OAAA;AACA,IAAAS,WAAA,GAAAT,OAAA;AACA,IAAAU,aAAA,GAAAV,OAAA;;AAEA,IAAAW,cAAA,GAAAX,OAAA;AACA,IAAAY,QAAA,GAAAZ,OAAA;;AAEA,IAAAa,SAAA,GAAAb,OAAA;AACA,IAAAc,kBAAA,GAAAd,OAAA;;AAEA,IAAAe,oBAAA,GAAAf,OAAA;;AAEA,IAAAgB,aAAA,GAAAhB,OAAA;AACA,IAAAiB,kBAAA,GAAAjB,OAAA;AACA,IAAAkB,WAAA,GAAAlB,OAAA;AACA,IAAAmB,yBAAA,GAAAnB,OAAA;AACA,IAAAoB,qBAAA,GAAApB,OAAA,mCAAsE,IAAAqB,IAAA,EAAAC,MAAA,EAAAC,UAAA;;;;;;;;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A,CAAAgG,OAAA,CAAAC,aAAA,WAAMS,SAAS,EAAE,IAAAN,WAAE,EAACC,kBAAM,CAAC4D,KAAK,CAAC,CAAC,GAAAyC,IAAA,OAAAA,IAAA,CAAKrG,kBAAM,CAAC6H,YAAY,CAAC,CAAC,IAAGtB,SAAS,EAAAF,IAAA,CAAE,CAAE,iBAC1E1M,MAAA,CAAAgG,OAAA,CAAAC,aAAA,CAAC9E,kBAAA,CAAAgN,iBAAiB,IAChBZ,GAAG,EAAE,IAAI,CAACnE,oBAAqB,EAC/BgF,SAAS,EAAE,IAAI,CAAC5L,aAAa,CAAC6L,YAAY,CAAC,CAAE,EAC7CC,qBAAqB,EAAE,IAAI,CAAC1G,yBAA0B,EACtD5C,QAAQ,EAAEA,QAAS,EACnBkC,SAAS,EAAEA,SAAU,EACtB,CACG,CACO,CACI,CACR,CAAC,CAEpB,CAAC,QAAArF,SAAA,GA3K4B8H,cAAK,CAAC4E,SAAS,GAAA9M,UAAA,CAC9B+M,mBAAmB,GAAG,WAAW,EAAA/M,UAAA,CACjCgN,WAAW,GAAG,WAAW,EAAAhN,UAAA,CAEzBc,YAAY,GAAiB,EACzC0H,KAAK,EAAE,EAAE,EACT0B,OAAO,EAAE+C,uBAAY,EACrB9C,OAAO,EAAE+C,uBAAY,EACrB9I,IAAI,EAAE,OAAO,EACbkH,KAAK,EAAE,GAAG,CACZ,CAAC,EAAAtL,UAAA,MAAAD,MAAA,KAAAA,MAAA","ignoreList":[]}
@@ -6,7 +6,7 @@ import type { DateInputProps } from '../DateInput';
6
6
  export declare class InternalDateMediator {
7
7
  iDate: InternalDate;
8
8
  update: (props: DateInputProps, locale: DatePickerLocale) => InternalDateMediator;
9
- inputKey(key: string, type: InternalDateComponentType | null, inputMode: boolean): InputKeyResult;
9
+ inputKey(key: string, type: InternalDateComponentType | null, inputMode: boolean, dateInputAllowInvalidValuesInDays?: boolean): InputKeyResult;
10
10
  paste: (pasted: string) => InternalDateMediator;
11
11
  restore: () => boolean;
12
12
  shiftDateComponent(type: InternalDateComponentType | null, step: number): boolean;