@skbkontur/react-ui 0.0.0-3dbb8bef27 → 0.0.0-3e9dfb16e9

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 (1969) hide show
  1. package/CHANGELOG.md +55 -0
  2. package/cjs/components/Autocomplete/Autocomplete.d.ts +6 -5
  3. package/cjs/components/Autocomplete/Autocomplete.js +6 -1
  4. package/cjs/components/Autocomplete/Autocomplete.js.map +1 -1
  5. package/cjs/components/Autocomplete/Autocomplete.styles.d.ts +1 -1
  6. package/cjs/components/Autocomplete/Autocomplete.styles.js.map +1 -1
  7. package/cjs/components/Autocomplete/__docs__/Autocomplete.mdx +5 -5
  8. package/cjs/components/Autocomplete/getAutocompleteTheme.d.ts +1 -1
  9. package/cjs/components/Autocomplete/getAutocompleteTheme.js.map +1 -1
  10. package/cjs/components/Autocomplete/locale/index.d.ts +1 -1
  11. package/cjs/components/Autocomplete/locale/index.js.map +1 -1
  12. package/cjs/components/Autocomplete/locale/locales/en.d.ts +1 -1
  13. package/cjs/components/Autocomplete/locale/locales/en.js.map +1 -1
  14. package/cjs/components/Autocomplete/locale/locales/ru.d.ts +1 -1
  15. package/cjs/components/Autocomplete/locale/locales/ru.js.map +1 -1
  16. package/cjs/components/Button/Button.d.ts +5 -5
  17. package/cjs/components/Button/Button.js +5 -1
  18. package/cjs/components/Button/Button.js.map +1 -1
  19. package/cjs/components/Button/Button.styles.d.ts +1 -1
  20. package/cjs/components/Button/Button.styles.js +2 -1
  21. package/cjs/components/Button/Button.styles.js.map +1 -1
  22. package/cjs/components/Button/ButtonArrow.d.ts +2 -2
  23. package/cjs/components/Button/ButtonArrow.js +1 -0
  24. package/cjs/components/Button/ButtonArrow.js.map +1 -1
  25. package/cjs/components/Button/ButtonIcon.d.ts +3 -3
  26. package/cjs/components/Button/ButtonIcon.js.map +1 -1
  27. package/cjs/components/Button/ButtonIcon.styles.d.ts +1 -1
  28. package/cjs/components/Button/ButtonIcon.styles.js.map +1 -1
  29. package/cjs/components/Button/LoadingButtonIcon.d.ts +1 -1
  30. package/cjs/components/Button/LoadingButtonIcon.js.map +1 -1
  31. package/cjs/components/Button/__docs__/Button.mdx +8 -9
  32. package/cjs/components/Button/getInnerLinkTheme.d.ts +1 -1
  33. package/cjs/components/Button/getInnerLinkTheme.js.map +1 -1
  34. package/cjs/components/Calendar/Calendar.d.ts +3 -3
  35. package/cjs/components/Calendar/Calendar.js +6 -0
  36. package/cjs/components/Calendar/Calendar.js.map +1 -1
  37. package/cjs/components/Calendar/Calendar.styles.d.ts +1 -1
  38. package/cjs/components/Calendar/Calendar.styles.js.map +1 -1
  39. package/cjs/components/Calendar/CalendarContext.d.ts +2 -2
  40. package/cjs/components/Calendar/CalendarContext.js.map +1 -1
  41. package/cjs/components/Calendar/CalendarDateShape.d.ts +1 -1
  42. package/cjs/components/Calendar/CalendarDateShape.js.map +1 -1
  43. package/cjs/components/Calendar/CalendarDay.d.ts +2 -1
  44. package/cjs/components/Calendar/CalendarDay.js +2 -1
  45. package/cjs/components/Calendar/CalendarDay.js.map +1 -1
  46. package/cjs/components/Calendar/CalendarUtils.d.ts +4 -4
  47. package/cjs/components/Calendar/CalendarUtils.js +1 -0
  48. package/cjs/components/Calendar/CalendarUtils.js.map +1 -1
  49. package/cjs/components/Calendar/DayCellView.d.ts +1 -1
  50. package/cjs/components/Calendar/DayCellView.js +3 -1
  51. package/cjs/components/Calendar/DayCellView.js.map +1 -1
  52. package/cjs/components/Calendar/DayCellView.styles.d.ts +1 -1
  53. package/cjs/components/Calendar/DayCellView.styles.js.map +1 -1
  54. package/cjs/components/Calendar/Month.d.ts +1 -1
  55. package/cjs/components/Calendar/Month.js.map +1 -1
  56. package/cjs/components/Calendar/MonthView.d.ts +1 -1
  57. package/cjs/components/Calendar/MonthView.js.map +1 -1
  58. package/cjs/components/Calendar/MonthView.styles.d.ts +1 -1
  59. package/cjs/components/Calendar/MonthView.styles.js.map +1 -1
  60. package/cjs/components/Calendar/MonthViewModel.d.ts +1 -1
  61. package/cjs/components/Calendar/MonthViewModel.js.map +1 -1
  62. package/cjs/components/Calendar/__docs__/Calendar.mdx +8 -9
  63. package/cjs/components/Calendar/__docs__/CalendarDay.mdx +4 -5
  64. package/cjs/components/Calendar/config.d.ts +1 -1
  65. package/cjs/components/Calendar/config.js.map +1 -1
  66. package/cjs/components/Calendar/locale/index.d.ts +1 -1
  67. package/cjs/components/Calendar/locale/index.js.map +1 -1
  68. package/cjs/components/Calendar/locale/locales/en.d.ts +1 -1
  69. package/cjs/components/Calendar/locale/locales/en.js.map +1 -1
  70. package/cjs/components/Calendar/locale/locales/ru.d.ts +1 -1
  71. package/cjs/components/Calendar/locale/locales/ru.js.map +1 -1
  72. package/cjs/components/Center/Center.d.ts +2 -2
  73. package/cjs/components/Center/Center.js +3 -0
  74. package/cjs/components/Center/Center.js.map +1 -1
  75. package/cjs/components/Center/__docs__/Center.mdx +4 -5
  76. package/cjs/components/Checkbox/Checkbox.d.ts +5 -4
  77. package/cjs/components/Checkbox/Checkbox.js +4 -1
  78. package/cjs/components/Checkbox/Checkbox.js.map +1 -1
  79. package/cjs/components/Checkbox/Checkbox.styles.d.ts +1 -1
  80. package/cjs/components/Checkbox/Checkbox.styles.js.map +1 -1
  81. package/cjs/components/Checkbox/__docs__/Checkbox.mdx +8 -9
  82. package/cjs/components/ComboBox/ComboBox.d.ts +7 -6
  83. package/cjs/components/ComboBox/ComboBox.js +3 -1
  84. package/cjs/components/ComboBox/ComboBox.js.map +1 -1
  85. package/cjs/components/ComboBox/ComboBox.md +2 -2
  86. package/cjs/components/ComboBox/__docs__/ComboBox.mdx +8 -9
  87. package/cjs/components/CurrencyInput/CurrencyHelper.d.ts +3 -3
  88. package/cjs/components/CurrencyInput/CurrencyHelper.js.map +1 -1
  89. package/cjs/components/CurrencyInput/CurrencyInput.d.ts +6 -5
  90. package/cjs/components/CurrencyInput/CurrencyInput.js +6 -1
  91. package/cjs/components/CurrencyInput/CurrencyInput.js.map +1 -1
  92. package/cjs/components/CurrencyInput/CurrencyInputHelper.d.ts +2 -2
  93. package/cjs/components/CurrencyInput/CurrencyInputHelper.js.map +1 -1
  94. package/cjs/components/CurrencyInput/CursorHelper.d.ts +1 -1
  95. package/cjs/components/CurrencyInput/CursorHelper.js.map +1 -1
  96. package/cjs/components/CurrencyInput/__docs__/CurrencyInput.mdx +8 -9
  97. package/cjs/components/CurrencyLabel/CurrencyLabel.d.ts +3 -2
  98. package/cjs/components/CurrencyLabel/CurrencyLabel.js +3 -1
  99. package/cjs/components/CurrencyLabel/CurrencyLabel.js.map +1 -1
  100. package/cjs/components/CurrencyLabel/__docs__/CurrencyLabel.mdx +4 -5
  101. package/cjs/components/DateInput/DateFragmentsView.d.ts +2 -1
  102. package/cjs/components/DateInput/DateFragmentsView.js +1 -0
  103. package/cjs/components/DateInput/DateFragmentsView.js.map +1 -1
  104. package/cjs/components/DateInput/DateFragmentsView.styles.d.ts +1 -1
  105. package/cjs/components/DateInput/DateFragmentsView.styles.js.map +1 -1
  106. package/cjs/components/DateInput/DateInput.d.ts +4 -3
  107. package/cjs/components/DateInput/DateInput.js +5 -1
  108. package/cjs/components/DateInput/DateInput.js.map +1 -1
  109. package/cjs/components/DateInput/DateInput.styles.d.ts +1 -1
  110. package/cjs/components/DateInput/DateInput.styles.js.map +1 -1
  111. package/cjs/components/DateInput/__docs__/DateInput.mdx +4 -7
  112. package/cjs/components/DateInput/helpers/DateInputKeyboardActions.d.ts +1 -1
  113. package/cjs/components/DateInput/helpers/DateInputKeyboardActions.js.map +1 -1
  114. package/cjs/components/DateInput/helpers/InternalDateMediator.d.ts +4 -3
  115. package/cjs/components/DateInput/helpers/InternalDateMediator.js +1 -5
  116. package/cjs/components/DateInput/helpers/InternalDateMediator.js.map +1 -1
  117. package/cjs/components/DateInput/helpers/inputNumber.d.ts +2 -1
  118. package/cjs/components/DateInput/helpers/inputNumber.js +1 -0
  119. package/cjs/components/DateInput/helpers/inputNumber.js.map +1 -1
  120. package/cjs/components/DatePicker/DatePicker.d.ts +6 -5
  121. package/cjs/components/DatePicker/DatePicker.js +5 -0
  122. package/cjs/components/DatePicker/DatePicker.js.map +1 -1
  123. package/cjs/components/DatePicker/DatePicker.styles.d.ts +1 -1
  124. package/cjs/components/DatePicker/DatePicker.styles.js.map +1 -1
  125. package/cjs/components/DatePicker/DatePickerHelpers.d.ts +1 -1
  126. package/cjs/components/DatePicker/DatePickerHelpers.js.map +1 -1
  127. package/cjs/components/DatePicker/MobilePicker.d.ts +1 -1
  128. package/cjs/components/DatePicker/MobilePicker.js.map +1 -1
  129. package/cjs/components/DatePicker/__docs__/DatePicker.mdx +8 -9
  130. package/cjs/components/DatePicker/getMobilePickerTheme.d.ts +1 -1
  131. package/cjs/components/DatePicker/getMobilePickerTheme.js.map +1 -1
  132. package/cjs/components/DatePicker/locale/index.d.ts +1 -1
  133. package/cjs/components/DatePicker/locale/index.js.map +1 -1
  134. package/cjs/components/DatePicker/locale/locales/en.d.ts +1 -1
  135. package/cjs/components/DatePicker/locale/locales/en.js.map +1 -1
  136. package/cjs/components/DatePicker/locale/locales/ru.d.ts +1 -1
  137. package/cjs/components/DatePicker/locale/locales/ru.js.map +1 -1
  138. package/cjs/components/DatePicker/locale/types.d.ts +3 -3
  139. package/cjs/components/DatePicker/locale/types.js.map +1 -1
  140. package/cjs/components/DateRangePicker/DateRangePicker.d.ts +4 -2
  141. package/cjs/components/DateRangePicker/DateRangePicker.js +46 -8
  142. package/cjs/components/DateRangePicker/DateRangePicker.js.map +1 -1
  143. package/cjs/components/DateRangePicker/DateRangePicker.styles.d.ts +2 -2
  144. package/cjs/components/DateRangePicker/DateRangePicker.styles.js.map +1 -1
  145. package/cjs/components/DateRangePicker/DateRangePickerInput.d.ts +2 -1
  146. package/cjs/components/DateRangePicker/DateRangePickerInput.js +7 -9
  147. package/cjs/components/DateRangePicker/DateRangePickerInput.js.map +1 -1
  148. package/cjs/components/DateRangePicker/DateRangePickerTheme.d.ts +1 -1
  149. package/cjs/components/DateRangePicker/DateRangePickerTheme.js.map +1 -1
  150. package/cjs/components/DateRangePicker/__docs__/DateRangePicker.mdx +8 -12
  151. package/cjs/components/DateRangePicker/helpers/getStateForValue.d.ts +2 -2
  152. package/cjs/components/DateRangePicker/helpers/getStateForValue.js +10 -18
  153. package/cjs/components/DateRangePicker/helpers/getStateForValue.js.map +1 -1
  154. package/cjs/components/DateRangePicker/helpers/validateDateRangePicker.d.ts +1 -1
  155. package/cjs/components/DateRangePicker/helpers/validateDateRangePicker.js +17 -17
  156. package/cjs/components/DateRangePicker/helpers/validateDateRangePicker.js.map +1 -1
  157. package/cjs/components/DateRangePicker/locale/index.d.ts +1 -1
  158. package/cjs/components/DateRangePicker/locale/index.js.map +1 -1
  159. package/cjs/components/DateRangePicker/locale/locales/en.d.ts +1 -1
  160. package/cjs/components/DateRangePicker/locale/locales/en.js.map +1 -1
  161. package/cjs/components/DateRangePicker/locale/locales/ru.d.ts +1 -1
  162. package/cjs/components/DateRangePicker/locale/locales/ru.js.map +1 -1
  163. package/cjs/components/DateRangePicker/locale/types.d.ts +1 -1
  164. package/cjs/components/DateRangePicker/locale/types.js.map +1 -1
  165. package/cjs/components/Dropdown/Dropdown.d.ts +5 -4
  166. package/cjs/components/Dropdown/Dropdown.js +4 -1
  167. package/cjs/components/Dropdown/Dropdown.js.map +1 -1
  168. package/cjs/components/Dropdown/__docs__/Dropdown.mdx +8 -9
  169. package/cjs/components/Dropdown/getDropdownTheme.d.ts +1 -1
  170. package/cjs/components/Dropdown/getDropdownTheme.js.map +1 -1
  171. package/cjs/components/DropdownMenu/DropdownMenu.d.ts +5 -4
  172. package/cjs/components/DropdownMenu/DropdownMenu.js +5 -1
  173. package/cjs/components/DropdownMenu/DropdownMenu.js.map +1 -1
  174. package/cjs/components/DropdownMenu/DropdownMenu.md +8 -8
  175. package/cjs/components/DropdownMenu/__docs__/DropdownMenu.mdx +8 -9
  176. package/cjs/components/DropdownMenu/getDropdownMenuTheme.d.ts +1 -1
  177. package/cjs/components/DropdownMenu/getDropdownMenuTheme.js.map +1 -1
  178. package/cjs/components/FileUploader/FileUploader.d.ts +6 -6
  179. package/cjs/components/FileUploader/FileUploader.js +39 -17
  180. package/cjs/components/FileUploader/FileUploader.js.map +1 -1
  181. package/cjs/components/FileUploader/FileUploader.styles.d.ts +1 -1
  182. package/cjs/components/FileUploader/FileUploader.styles.js.map +1 -1
  183. package/cjs/components/FileUploader/__docs__/FileUploader.mdx +8 -9
  184. package/cjs/components/FileUploader/index.d.ts +1 -1
  185. package/cjs/components/FileUploader/index.js.map +1 -1
  186. package/cjs/components/FileUploader/locale/index.d.ts +1 -1
  187. package/cjs/components/FileUploader/locale/index.js.map +1 -1
  188. package/cjs/components/FileUploader/locale/locales/en.d.ts +1 -1
  189. package/cjs/components/FileUploader/locale/locales/en.js.map +1 -1
  190. package/cjs/components/FileUploader/locale/locales/ru.d.ts +1 -1
  191. package/cjs/components/FileUploader/locale/locales/ru.js.map +1 -1
  192. package/cjs/components/FxInput/FxInput.d.ts +9 -6
  193. package/cjs/components/FxInput/FxInput.js +7 -1
  194. package/cjs/components/FxInput/FxInput.js.map +1 -1
  195. package/cjs/components/FxInput/FxInputRestoreBtn.d.ts +3 -2
  196. package/cjs/components/FxInput/FxInputRestoreBtn.js +2 -1
  197. package/cjs/components/FxInput/FxInputRestoreBtn.js.map +1 -1
  198. package/cjs/components/FxInput/__docs__/FxInput.mdx +8 -9
  199. package/cjs/components/Gapped/Gapped.d.ts +1 -1
  200. package/cjs/components/Gapped/Gapped.js +2 -0
  201. package/cjs/components/Gapped/Gapped.js.map +1 -1
  202. package/cjs/components/Gapped/__docs__/Gapped.mdx +4 -5
  203. package/cjs/components/GlobalLoader/GlobalLoader.js +2 -0
  204. package/cjs/components/GlobalLoader/GlobalLoader.js.map +1 -1
  205. package/cjs/components/GlobalLoader/GlobalLoaderView.d.ts +1 -1
  206. package/cjs/components/GlobalLoader/GlobalLoaderView.js +1 -0
  207. package/cjs/components/GlobalLoader/GlobalLoaderView.js.map +1 -1
  208. package/cjs/components/GlobalLoader/GlobalLoaderView.styles.d.ts +1 -1
  209. package/cjs/components/GlobalLoader/GlobalLoaderView.styles.js.map +1 -1
  210. package/cjs/components/GlobalLoader/__docs__/GlobalLoader.mdx +8 -9
  211. package/cjs/components/GlobalLoader/useParams.d.ts +1 -1
  212. package/cjs/components/GlobalLoader/useParams.js.map +1 -1
  213. package/cjs/components/Group/Group.d.ts +1 -1
  214. package/cjs/components/Group/Group.js +2 -0
  215. package/cjs/components/Group/Group.js.map +1 -1
  216. package/cjs/components/Group/Group.md +4 -4
  217. package/cjs/components/Group/__docs__/Group.mdx +4 -5
  218. package/cjs/components/Hint/Hint.d.ts +5 -5
  219. package/cjs/components/Hint/Hint.js +4 -0
  220. package/cjs/components/Hint/Hint.js.map +1 -1
  221. package/cjs/components/Hint/Hint.styles.d.ts +1 -1
  222. package/cjs/components/Hint/Hint.styles.js.map +1 -1
  223. package/cjs/components/Hint/__docs__/Hint.mdx +8 -9
  224. package/cjs/components/Input/Input.d.ts +6 -5
  225. package/cjs/components/Input/Input.js +4 -0
  226. package/cjs/components/Input/Input.js.map +1 -1
  227. package/cjs/components/Input/Input.md +4 -5
  228. package/cjs/components/Input/Input.styles.d.ts +1 -1
  229. package/cjs/components/Input/Input.styles.js.map +1 -1
  230. package/cjs/components/Input/Input.typings.d.ts +1 -1
  231. package/cjs/components/Input/Input.typings.js.map +1 -1
  232. package/cjs/components/Input/InputLayout/InputLayout.d.ts +3 -3
  233. package/cjs/components/Input/InputLayout/InputLayout.js +3 -0
  234. package/cjs/components/Input/InputLayout/InputLayout.js.map +1 -1
  235. package/cjs/components/Input/InputLayout/InputLayout.styles.d.ts +1 -1
  236. package/cjs/components/Input/InputLayout/InputLayout.styles.js.map +1 -1
  237. package/cjs/components/Input/InputLayout/InputLayoutAside.d.ts +1 -1
  238. package/cjs/components/Input/InputLayout/InputLayoutAside.js.map +1 -1
  239. package/cjs/components/Input/InputLayout/InputLayoutAsideIcon.d.ts +1 -1
  240. package/cjs/components/Input/InputLayout/InputLayoutAsideIcon.js +2 -1
  241. package/cjs/components/Input/InputLayout/InputLayoutAsideIcon.js.map +1 -1
  242. package/cjs/components/Input/InputLayout/InputLayoutAsideText.d.ts +1 -1
  243. package/cjs/components/Input/InputLayout/InputLayoutAsideText.js.map +1 -1
  244. package/cjs/components/Input/InputLayout/InputLayoutContext.d.ts +1 -1
  245. package/cjs/components/Input/InputLayout/InputLayoutContext.js.map +1 -1
  246. package/cjs/components/Input/InputLayout/PolyfillPlaceholder.d.ts +1 -1
  247. package/cjs/components/Input/InputLayout/PolyfillPlaceholder.js.map +1 -1
  248. package/cjs/components/Input/__docs__/Input.mdx +8 -9
  249. package/cjs/components/Kebab/Kebab.d.ts +7 -6
  250. package/cjs/components/Kebab/Kebab.js +5 -1
  251. package/cjs/components/Kebab/Kebab.js.map +1 -1
  252. package/cjs/components/Kebab/Kebab.md +32 -32
  253. package/cjs/components/Kebab/Kebab.styles.d.ts +1 -1
  254. package/cjs/components/Kebab/Kebab.styles.js.map +1 -1
  255. package/cjs/components/Kebab/__docs__/Kebab.mdx +8 -9
  256. package/cjs/components/Link/Link.d.ts +4 -4
  257. package/cjs/components/Link/Link.js +3 -0
  258. package/cjs/components/Link/Link.js.map +1 -1
  259. package/cjs/components/Link/Link.styles.d.ts +1 -1
  260. package/cjs/components/Link/Link.styles.js.map +1 -1
  261. package/cjs/components/Link/LinkIcon.d.ts +1 -1
  262. package/cjs/components/Link/LinkIcon.js.map +1 -1
  263. package/cjs/components/Link/__docs__/Link.mdx +8 -9
  264. package/cjs/components/Loader/Loader.d.ts +3 -3
  265. package/cjs/components/Loader/Loader.js +3 -0
  266. package/cjs/components/Loader/Loader.js.map +1 -1
  267. package/cjs/components/Loader/Loader.styles.d.ts +1 -1
  268. package/cjs/components/Loader/Loader.styles.js.map +1 -1
  269. package/cjs/components/Loader/__docs__/Loader.mdx +4 -7
  270. package/cjs/components/Loader/__stories__/LoaderAndButton.js.map +1 -1
  271. package/cjs/components/MaskedInput/ColorableInputElement/ColorableInputElement.d.ts +1 -1
  272. package/cjs/components/MaskedInput/ColorableInputElement/ColorableInputElement.js +1 -0
  273. package/cjs/components/MaskedInput/ColorableInputElement/ColorableInputElement.js.map +1 -1
  274. package/cjs/components/MaskedInput/FixedIMaskInput.d.ts +2 -2
  275. package/cjs/components/MaskedInput/FixedIMaskInput.js +2 -1
  276. package/cjs/components/MaskedInput/FixedIMaskInput.js.map +1 -1
  277. package/cjs/components/MaskedInput/MaskedInput.d.ts +3 -2
  278. package/cjs/components/MaskedInput/MaskedInput.helpers.d.ts +1 -1
  279. package/cjs/components/MaskedInput/MaskedInput.helpers.js.map +1 -1
  280. package/cjs/components/MaskedInput/MaskedInput.js +9 -2
  281. package/cjs/components/MaskedInput/MaskedInput.js.map +1 -1
  282. package/cjs/components/MaskedInput/MaskedInput.styles.d.ts +4 -0
  283. package/cjs/components/MaskedInput/MaskedInput.styles.js +12 -1
  284. package/cjs/components/MaskedInput/MaskedInput.styles.js.map +1 -1
  285. package/cjs/components/MaskedInput/__docs__/MaskedInput.mdx +8 -9
  286. package/cjs/components/MenuFooter/MenuFooter.d.ts +4 -3
  287. package/cjs/components/MenuFooter/MenuFooter.js +3 -1
  288. package/cjs/components/MenuFooter/MenuFooter.js.map +1 -1
  289. package/cjs/components/MenuFooter/MenuFooter.styles.d.ts +1 -1
  290. package/cjs/components/MenuFooter/MenuFooter.styles.js.map +1 -1
  291. package/cjs/components/MenuFooter/__docs__/MenuFooter.mdx +4 -5
  292. package/cjs/components/MenuHeader/MenuHeader.d.ts +4 -3
  293. package/cjs/components/MenuHeader/MenuHeader.js +3 -1
  294. package/cjs/components/MenuHeader/MenuHeader.js.map +1 -1
  295. package/cjs/components/MenuHeader/MenuHeader.styles.d.ts +1 -1
  296. package/cjs/components/MenuHeader/MenuHeader.styles.js.map +1 -1
  297. package/cjs/components/MenuHeader/__docs__/MenuHeader.mdx +4 -5
  298. package/cjs/components/MenuItem/MenuItem.d.ts +5 -4
  299. package/cjs/components/MenuItem/MenuItem.js +6 -2
  300. package/cjs/components/MenuItem/MenuItem.js.map +1 -1
  301. package/cjs/components/MenuItem/MenuItem.md +6 -6
  302. package/cjs/components/MenuItem/MenuItem.styles.d.ts +1 -1
  303. package/cjs/components/MenuItem/MenuItem.styles.js.map +1 -1
  304. package/cjs/components/MenuItem/__docs__/MenuItem.mdx +4 -5
  305. package/cjs/components/MenuSeparator/MenuSeparator.d.ts +1 -1
  306. package/cjs/components/MenuSeparator/MenuSeparator.js +1 -0
  307. package/cjs/components/MenuSeparator/MenuSeparator.js.map +1 -1
  308. package/cjs/components/MenuSeparator/MenuSeparator.styles.d.ts +1 -1
  309. package/cjs/components/MenuSeparator/MenuSeparator.styles.js.map +1 -1
  310. package/cjs/components/MenuSeparator/__docs__/MenuSeparator.mdx +4 -5
  311. package/cjs/components/MiniModal/MiniModal.d.ts +2 -1
  312. package/cjs/components/MiniModal/MiniModal.js +1 -0
  313. package/cjs/components/MiniModal/MiniModal.js.map +1 -1
  314. package/cjs/components/MiniModal/MiniModal.styles.d.ts +1 -1
  315. package/cjs/components/MiniModal/MiniModal.styles.js.map +1 -1
  316. package/cjs/components/MiniModal/MiniModalBody.d.ts +1 -1
  317. package/cjs/components/MiniModal/MiniModalBody.js +1 -0
  318. package/cjs/components/MiniModal/MiniModalBody.js.map +1 -1
  319. package/cjs/components/MiniModal/MiniModalFooter.d.ts +1 -1
  320. package/cjs/components/MiniModal/MiniModalFooter.js +1 -0
  321. package/cjs/components/MiniModal/MiniModalFooter.js.map +1 -1
  322. package/cjs/components/MiniModal/MiniModalHeader.d.ts +2 -2
  323. package/cjs/components/MiniModal/MiniModalHeader.js +3 -1
  324. package/cjs/components/MiniModal/MiniModalHeader.js.map +1 -1
  325. package/cjs/components/MiniModal/__docs__/MiniModal.mdx +8 -9
  326. package/cjs/components/MiniModal/getMiniModalTheme.d.ts +1 -1
  327. package/cjs/components/MiniModal/getMiniModalTheme.js.map +1 -1
  328. package/cjs/components/Modal/Modal.d.ts +4 -3
  329. package/cjs/components/Modal/Modal.js +5 -1
  330. package/cjs/components/Modal/Modal.js.map +1 -1
  331. package/cjs/components/Modal/Modal.styles.d.ts +1 -1
  332. package/cjs/components/Modal/Modal.styles.js.map +1 -1
  333. package/cjs/components/Modal/ModalBody.d.ts +1 -1
  334. package/cjs/components/Modal/ModalBody.js +2 -0
  335. package/cjs/components/Modal/ModalBody.js.map +1 -1
  336. package/cjs/components/Modal/ModalClose.d.ts +1 -1
  337. package/cjs/components/Modal/ModalClose.js.map +1 -1
  338. package/cjs/components/Modal/ModalContext.d.ts +1 -1
  339. package/cjs/components/Modal/ModalContext.js.map +1 -1
  340. package/cjs/components/Modal/ModalFooter.d.ts +4 -3
  341. package/cjs/components/Modal/ModalFooter.js +4 -1
  342. package/cjs/components/Modal/ModalFooter.js.map +1 -1
  343. package/cjs/components/Modal/ModalHeader.d.ts +3 -2
  344. package/cjs/components/Modal/ModalHeader.js +3 -1
  345. package/cjs/components/Modal/ModalHeader.js.map +1 -1
  346. package/cjs/components/Modal/ModalSeparator.d.ts +1 -1
  347. package/cjs/components/Modal/ModalSeparator.js.map +1 -1
  348. package/cjs/components/Modal/__docs__/Modal.mdx +8 -9
  349. package/cjs/components/Modal/getModalBodyTheme.d.ts +1 -1
  350. package/cjs/components/Modal/getModalBodyTheme.js.map +1 -1
  351. package/cjs/components/Modal/getModalTheme.d.ts +1 -1
  352. package/cjs/components/Modal/getModalTheme.js.map +1 -1
  353. package/cjs/components/Modal/locale/index.d.ts +1 -1
  354. package/cjs/components/Modal/locale/index.js.map +1 -1
  355. package/cjs/components/Modal/locale/locales/en.d.ts +1 -1
  356. package/cjs/components/Modal/locale/locales/en.js.map +1 -1
  357. package/cjs/components/Modal/locale/locales/ru.d.ts +1 -1
  358. package/cjs/components/Modal/locale/locales/ru.js.map +1 -1
  359. package/cjs/components/Paging/NavigationHelper.d.ts +1 -1
  360. package/cjs/components/Paging/NavigationHelper.js.map +1 -1
  361. package/cjs/components/Paging/Paging.d.ts +2 -2
  362. package/cjs/components/Paging/Paging.js +3 -0
  363. package/cjs/components/Paging/Paging.js.map +1 -1
  364. package/cjs/components/Paging/Paging.styles.d.ts +1 -1
  365. package/cjs/components/Paging/Paging.styles.js.map +1 -1
  366. package/cjs/components/Paging/PagingDefaultComponent.d.ts +1 -1
  367. package/cjs/components/Paging/PagingDefaultComponent.js.map +1 -1
  368. package/cjs/components/Paging/PagingHelper.d.ts +1 -1
  369. package/cjs/components/Paging/PagingHelper.js.map +1 -1
  370. package/cjs/components/Paging/__docs__/Paging.mdx +8 -9
  371. package/cjs/components/Paging/locale/index.d.ts +1 -1
  372. package/cjs/components/Paging/locale/index.js.map +1 -1
  373. package/cjs/components/Paging/locale/locales/en.d.ts +1 -1
  374. package/cjs/components/Paging/locale/locales/en.js.map +1 -1
  375. package/cjs/components/Paging/locale/locales/ru.d.ts +1 -1
  376. package/cjs/components/Paging/locale/locales/ru.js.map +1 -1
  377. package/cjs/components/PasswordInput/PasswordInput.d.ts +4 -3
  378. package/cjs/components/PasswordInput/PasswordInput.js +6 -1
  379. package/cjs/components/PasswordInput/PasswordInput.js.map +1 -1
  380. package/cjs/components/PasswordInput/PasswordInput.styles.d.ts +1 -1
  381. package/cjs/components/PasswordInput/PasswordInput.styles.js.map +1 -1
  382. package/cjs/components/PasswordInput/PasswordInputIcon.d.ts +1 -1
  383. package/cjs/components/PasswordInput/PasswordInputIcon.js.map +1 -1
  384. package/cjs/components/PasswordInput/__docs__/PasswordInput.mdx +8 -9
  385. package/cjs/components/PasswordInput/locale/index.d.ts +1 -1
  386. package/cjs/components/PasswordInput/locale/index.js.map +1 -1
  387. package/cjs/components/PasswordInput/locale/locales/en.d.ts +1 -1
  388. package/cjs/components/PasswordInput/locale/locales/en.js.map +1 -1
  389. package/cjs/components/PasswordInput/locale/locales/ru.d.ts +1 -1
  390. package/cjs/components/PasswordInput/locale/locales/ru.js.map +1 -1
  391. package/cjs/components/Radio/Radio.d.ts +6 -5
  392. package/cjs/components/Radio/Radio.js +5 -1
  393. package/cjs/components/Radio/Radio.js.map +1 -1
  394. package/cjs/components/Radio/Radio.styles.d.ts +1 -1
  395. package/cjs/components/Radio/Radio.styles.js.map +1 -1
  396. package/cjs/components/Radio/__docs__/Radio.mdx +8 -9
  397. package/cjs/components/RadioGroup/RadioGroup.d.ts +3 -2
  398. package/cjs/components/RadioGroup/RadioGroup.js +5 -1
  399. package/cjs/components/RadioGroup/RadioGroup.js.map +1 -1
  400. package/cjs/components/RadioGroup/__docs__/RadioGroup.mdx +8 -9
  401. package/cjs/components/ResponsiveLayout/ResponsiveLayout.d.ts +1 -1
  402. package/cjs/components/ResponsiveLayout/ResponsiveLayout.js.map +1 -1
  403. package/cjs/components/ResponsiveLayout/__docs__/ResponsiveLayout.mdx +4 -5
  404. package/cjs/components/ResponsiveLayout/decorator.d.ts +1 -1
  405. package/cjs/components/ResponsiveLayout/decorator.js.map +1 -1
  406. package/cjs/components/ResponsiveLayout/useResponsiveLayout.d.ts +1 -1
  407. package/cjs/components/ResponsiveLayout/useResponsiveLayout.js +2 -1
  408. package/cjs/components/ResponsiveLayout/useResponsiveLayout.js.map +1 -1
  409. package/cjs/components/ScrollContainer/ScrollBar.d.ts +2 -2
  410. package/cjs/components/ScrollContainer/ScrollBar.js.map +1 -1
  411. package/cjs/components/ScrollContainer/ScrollContainer.constants.d.ts +1 -1
  412. package/cjs/components/ScrollContainer/ScrollContainer.constants.js.map +1 -1
  413. package/cjs/components/ScrollContainer/ScrollContainer.d.ts +3 -3
  414. package/cjs/components/ScrollContainer/ScrollContainer.helpers.d.ts +2 -2
  415. package/cjs/components/ScrollContainer/ScrollContainer.helpers.js.map +1 -1
  416. package/cjs/components/ScrollContainer/ScrollContainer.js +3 -0
  417. package/cjs/components/ScrollContainer/ScrollContainer.js.map +1 -1
  418. package/cjs/components/ScrollContainer/ScrollContainer.styles.d.ts +1 -1
  419. package/cjs/components/ScrollContainer/ScrollContainer.styles.js.map +1 -1
  420. package/cjs/components/ScrollContainer/__docs__/ScrollContainer.mdx +4 -5
  421. package/cjs/components/Select/Select.d.ts +7 -6
  422. package/cjs/components/Select/Select.js +7 -1
  423. package/cjs/components/Select/Select.js.map +1 -1
  424. package/cjs/components/Select/Select.md +3 -3
  425. package/cjs/components/Select/Select.styles.d.ts +1 -1
  426. package/cjs/components/Select/Select.styles.js.map +1 -1
  427. package/cjs/components/Select/__docs__/Select.mdx +8 -9
  428. package/cjs/components/Select/locale/index.d.ts +1 -1
  429. package/cjs/components/Select/locale/index.js.map +1 -1
  430. package/cjs/components/Select/locale/locales/en.d.ts +1 -1
  431. package/cjs/components/Select/locale/locales/en.js.map +1 -1
  432. package/cjs/components/Select/locale/locales/ru.d.ts +1 -1
  433. package/cjs/components/Select/locale/locales/ru.js.map +1 -1
  434. package/cjs/components/Select/locale/types.d.ts +1 -1
  435. package/cjs/components/Select/locale/types.js.map +1 -1
  436. package/cjs/components/Select/selectTheme.d.ts +2 -2
  437. package/cjs/components/Select/selectTheme.js.map +1 -1
  438. package/cjs/components/SidePage/SidePage.d.ts +3 -2
  439. package/cjs/components/SidePage/SidePage.js +5 -1
  440. package/cjs/components/SidePage/SidePage.js.map +1 -1
  441. package/cjs/components/SidePage/SidePage.styles.d.ts +1 -1
  442. package/cjs/components/SidePage/SidePage.styles.js.map +1 -1
  443. package/cjs/components/SidePage/SidePageBody.d.ts +2 -2
  444. package/cjs/components/SidePage/SidePageBody.js +3 -0
  445. package/cjs/components/SidePage/SidePageBody.js.map +1 -1
  446. package/cjs/components/SidePage/SidePageCloseButton.d.ts +1 -1
  447. package/cjs/components/SidePage/SidePageCloseButton.js.map +1 -1
  448. package/cjs/components/SidePage/SidePageContainer.d.ts +1 -1
  449. package/cjs/components/SidePage/SidePageContainer.js +2 -0
  450. package/cjs/components/SidePage/SidePageContainer.js.map +1 -1
  451. package/cjs/components/SidePage/SidePageContext.d.ts +2 -2
  452. package/cjs/components/SidePage/SidePageContext.js.map +1 -1
  453. package/cjs/components/SidePage/SidePageFooter.d.ts +3 -3
  454. package/cjs/components/SidePage/SidePageFooter.js +4 -0
  455. package/cjs/components/SidePage/SidePageFooter.js.map +1 -1
  456. package/cjs/components/SidePage/SidePageHeader.d.ts +2 -2
  457. package/cjs/components/SidePage/SidePageHeader.js +3 -0
  458. package/cjs/components/SidePage/SidePageHeader.js.map +1 -1
  459. package/cjs/components/SidePage/__docs__/SidePage.mdx +8 -9
  460. package/cjs/components/SidePage/__docs__/SidePageBody.mdx +1 -0
  461. package/cjs/components/SidePage/locale/index.d.ts +1 -1
  462. package/cjs/components/SidePage/locale/index.js.map +1 -1
  463. package/cjs/components/SidePage/locale/locales/en.d.ts +1 -1
  464. package/cjs/components/SidePage/locale/locales/en.js.map +1 -1
  465. package/cjs/components/SidePage/locale/locales/ru.d.ts +1 -1
  466. package/cjs/components/SidePage/locale/locales/ru.js.map +1 -1
  467. package/cjs/components/SingleToast/SingleToast.d.ts +4 -3
  468. package/cjs/components/SingleToast/SingleToast.js +1 -0
  469. package/cjs/components/SingleToast/SingleToast.js.map +1 -1
  470. package/cjs/components/SingleToast/__docs__/SingleToast.mdx +8 -9
  471. package/cjs/components/Spinner/Spinner.d.ts +1 -1
  472. package/cjs/components/Spinner/Spinner.js +2 -0
  473. package/cjs/components/Spinner/Spinner.js.map +1 -1
  474. package/cjs/components/Spinner/Spinner.styles.d.ts +1 -1
  475. package/cjs/components/Spinner/Spinner.styles.js.map +1 -1
  476. package/cjs/components/Spinner/__docs__/Spinner.mdx +8 -9
  477. package/cjs/components/Sticky/Sticky.d.ts +2 -2
  478. package/cjs/components/Sticky/Sticky.js +2 -0
  479. package/cjs/components/Sticky/Sticky.js.map +1 -1
  480. package/cjs/components/Sticky/__docs__/Sticky.mdx +4 -5
  481. package/cjs/components/Switcher/Switcher.d.ts +6 -5
  482. package/cjs/components/Switcher/Switcher.js +5 -1
  483. package/cjs/components/Switcher/Switcher.js.map +1 -1
  484. package/cjs/components/Switcher/Switcher.styles.d.ts +1 -1
  485. package/cjs/components/Switcher/Switcher.styles.js.map +1 -1
  486. package/cjs/components/Switcher/__docs__/Switcher.mdx +8 -9
  487. package/cjs/components/Switcher/switcherTheme.d.ts +1 -1
  488. package/cjs/components/Switcher/switcherTheme.js.map +1 -1
  489. package/cjs/components/Tabs/Indicator.d.ts +1 -1
  490. package/cjs/components/Tabs/Indicator.js +2 -0
  491. package/cjs/components/Tabs/Indicator.js.map +1 -1
  492. package/cjs/components/Tabs/Indicator.styles.d.ts +1 -1
  493. package/cjs/components/Tabs/Indicator.styles.js.map +1 -1
  494. package/cjs/components/Tabs/Tab.d.ts +5 -4
  495. package/cjs/components/Tabs/Tab.js +5 -1
  496. package/cjs/components/Tabs/Tab.js.map +1 -1
  497. package/cjs/components/Tabs/Tab.styles.d.ts +1 -1
  498. package/cjs/components/Tabs/Tab.styles.js.map +1 -1
  499. package/cjs/components/Tabs/Tabs.d.ts +4 -3
  500. package/cjs/components/Tabs/Tabs.js +5 -1
  501. package/cjs/components/Tabs/Tabs.js.map +1 -1
  502. package/cjs/components/Tabs/Tabs.styles.d.ts +1 -1
  503. package/cjs/components/Tabs/Tabs.styles.js.map +1 -1
  504. package/cjs/components/Tabs/TabsContext.d.ts +2 -2
  505. package/cjs/components/Tabs/TabsContext.js.map +1 -1
  506. package/cjs/components/Tabs/__docs__/Tab.mdx +8 -9
  507. package/cjs/components/Tabs/__docs__/Tabs.mdx +8 -9
  508. package/cjs/components/Tabs/helpers.d.ts +2 -2
  509. package/cjs/components/Tabs/helpers.js.map +1 -1
  510. package/cjs/components/Textarea/Textarea.d.ts +5 -4
  511. package/cjs/components/Textarea/Textarea.js +5 -1
  512. package/cjs/components/Textarea/Textarea.js.map +1 -1
  513. package/cjs/components/Textarea/Textarea.styles.d.ts +1 -1
  514. package/cjs/components/Textarea/Textarea.styles.js.map +1 -1
  515. package/cjs/components/Textarea/TextareaCounter.d.ts +2 -2
  516. package/cjs/components/Textarea/TextareaCounter.js +3 -1
  517. package/cjs/components/Textarea/TextareaCounter.js.map +1 -1
  518. package/cjs/components/Textarea/__docs__/Textarea.mdx +8 -9
  519. package/cjs/components/Toast/Toast.d.ts +9 -6
  520. package/cjs/components/Toast/Toast.js +22 -3
  521. package/cjs/components/Toast/Toast.js.map +1 -1
  522. package/cjs/components/Toast/ToastStatic.d.ts +2 -2
  523. package/cjs/components/Toast/ToastStatic.js +1 -0
  524. package/cjs/components/Toast/ToastStatic.js.map +1 -1
  525. package/cjs/components/Toast/ToastView.d.ts +5 -4
  526. package/cjs/components/Toast/ToastView.js +6 -1
  527. package/cjs/components/Toast/ToastView.js.map +1 -1
  528. package/cjs/components/Toast/ToastView.styles.d.ts +1 -1
  529. package/cjs/components/Toast/ToastView.styles.js.map +1 -1
  530. package/cjs/components/Toast/__docs__/Toast.mdx +8 -9
  531. package/cjs/components/Toast/locale/index.d.ts +1 -1
  532. package/cjs/components/Toast/locale/index.js.map +1 -1
  533. package/cjs/components/Toast/locale/locales/en.d.ts +1 -1
  534. package/cjs/components/Toast/locale/locales/en.js.map +1 -1
  535. package/cjs/components/Toast/locale/locales/ru.d.ts +1 -1
  536. package/cjs/components/Toast/locale/locales/ru.js.map +1 -1
  537. package/cjs/components/Toggle/Toggle.d.ts +4 -3
  538. package/cjs/components/Toggle/Toggle.js +3 -0
  539. package/cjs/components/Toggle/Toggle.js.map +1 -1
  540. package/cjs/components/Toggle/Toggle.styles.d.ts +1 -1
  541. package/cjs/components/Toggle/Toggle.styles.js.map +1 -1
  542. package/cjs/components/Toggle/__creevey__/Toggle.creevey.mts +6 -4
  543. package/cjs/components/Toggle/__docs__/Toggle.mdx +8 -9
  544. package/cjs/components/Token/Token.d.ts +4 -3
  545. package/cjs/components/Token/Token.js +5 -1
  546. package/cjs/components/Token/Token.js.map +1 -1
  547. package/cjs/components/Token/Token.md +0 -83
  548. package/cjs/components/Token/Token.styles.d.ts +1 -1
  549. package/cjs/components/Token/Token.styles.js.map +1 -1
  550. package/cjs/components/Token/TokenView.d.ts +3 -2
  551. package/cjs/components/Token/TokenView.js +2 -1
  552. package/cjs/components/Token/TokenView.js.map +1 -1
  553. package/cjs/components/Token/__docs__/Token.mdx +8 -9
  554. package/cjs/components/Token/locale/index.d.ts +1 -1
  555. package/cjs/components/Token/locale/index.js.map +1 -1
  556. package/cjs/components/Token/locale/locales/en.d.ts +1 -1
  557. package/cjs/components/Token/locale/locales/en.js.map +1 -1
  558. package/cjs/components/Token/locale/locales/ru.d.ts +1 -1
  559. package/cjs/components/Token/locale/locales/ru.js.map +1 -1
  560. package/cjs/components/TokenInput/TextWidthHelper.d.ts +2 -2
  561. package/cjs/components/TokenInput/TextWidthHelper.js.map +1 -1
  562. package/cjs/components/TokenInput/TokenInput.d.ts +7 -6
  563. package/cjs/components/TokenInput/TokenInput.js +11 -2
  564. package/cjs/components/TokenInput/TokenInput.js.map +1 -1
  565. package/cjs/components/TokenInput/TokenInput.md +2 -33
  566. package/cjs/components/TokenInput/TokenInput.styles.d.ts +1 -1
  567. package/cjs/components/TokenInput/TokenInput.styles.js.map +1 -1
  568. package/cjs/components/TokenInput/TokenInputMenu.d.ts +17 -8
  569. package/cjs/components/TokenInput/TokenInputMenu.js +26 -1
  570. package/cjs/components/TokenInput/TokenInputMenu.js.map +1 -1
  571. package/cjs/components/TokenInput/TokenInputReducer.d.ts +1 -1
  572. package/cjs/components/TokenInput/TokenInputReducer.js +2 -1
  573. package/cjs/components/TokenInput/TokenInputReducer.js.map +1 -1
  574. package/cjs/components/TokenInput/__creevey__/TokenInput.creevey.mts +28 -0
  575. package/cjs/components/TokenInput/__docs__/TokenInput.mdx +8 -9
  576. package/cjs/components/TokenInput/locale/index.d.ts +1 -1
  577. package/cjs/components/TokenInput/locale/index.js.map +1 -1
  578. package/cjs/components/TokenInput/locale/locales/en.d.ts +1 -1
  579. package/cjs/components/TokenInput/locale/locales/en.js.map +1 -1
  580. package/cjs/components/TokenInput/locale/locales/ru.d.ts +1 -1
  581. package/cjs/components/TokenInput/locale/locales/ru.js.map +1 -1
  582. package/cjs/components/Tooltip/Tooltip.d.ts +5 -5
  583. package/cjs/components/Tooltip/Tooltip.js +6 -4
  584. package/cjs/components/Tooltip/Tooltip.js.map +1 -1
  585. package/cjs/components/Tooltip/Tooltip.md +8 -8
  586. package/cjs/components/Tooltip/Tooltip.styles.d.ts +1 -1
  587. package/cjs/components/Tooltip/Tooltip.styles.js.map +1 -1
  588. package/cjs/components/Tooltip/__docs__/Tooltip.mdx +8 -9
  589. package/cjs/components/TooltipMenu/TooltipMenu.d.ts +7 -6
  590. package/cjs/components/TooltipMenu/TooltipMenu.js +5 -1
  591. package/cjs/components/TooltipMenu/TooltipMenu.js.map +1 -1
  592. package/cjs/components/TooltipMenu/TooltipMenu.md +12 -12
  593. package/cjs/components/TooltipMenu/__docs__/TooltipMenu.mdx +4 -5
  594. package/cjs/hooks/useDrop.d.ts +1 -1
  595. package/cjs/hooks/useDrop.js +3 -1
  596. package/cjs/hooks/useDrop.js.map +1 -1
  597. package/cjs/hooks/useEffectWithoutInitCall.d.ts +1 -1
  598. package/cjs/hooks/useEffectWithoutInitCall.js +2 -1
  599. package/cjs/hooks/useEffectWithoutInitCall.js.map +1 -1
  600. package/cjs/hooks/useMemoObject.d.ts +1 -1
  601. package/cjs/hooks/useMemoObject.js.map +1 -1
  602. package/cjs/internal/ClearCrossIcon/ClearCrossIcon.d.ts +4 -3
  603. package/cjs/internal/ClearCrossIcon/ClearCrossIcon.js +3 -1
  604. package/cjs/internal/ClearCrossIcon/ClearCrossIcon.js.map +1 -1
  605. package/cjs/internal/ClearCrossIcon/ClearCrossIcon.styles.d.ts +1 -1
  606. package/cjs/internal/ClearCrossIcon/ClearCrossIcon.styles.js.map +1 -1
  607. package/cjs/internal/CloseButtonIcon/CloseButtonIcon.d.ts +3 -2
  608. package/cjs/internal/CloseButtonIcon/CloseButtonIcon.js +3 -1
  609. package/cjs/internal/CloseButtonIcon/CloseButtonIcon.js.map +1 -1
  610. package/cjs/internal/CloseButtonIcon/CloseButtonIcon.styles.d.ts +1 -1
  611. package/cjs/internal/CloseButtonIcon/CloseButtonIcon.styles.js.map +1 -1
  612. package/cjs/internal/CommonWrapper/CommonWrapper.js +1 -0
  613. package/cjs/internal/CommonWrapper/CommonWrapper.js.map +1 -1
  614. package/cjs/internal/CommonWrapper/types.d.ts +1 -1
  615. package/cjs/internal/CommonWrapper/types.js.map +1 -1
  616. package/cjs/internal/CommonWrapper/utils/getCommonVisualStateDataAttributes.d.ts +1 -1
  617. package/cjs/internal/CommonWrapper/utils/getCommonVisualStateDataAttributes.js +2 -1
  618. package/cjs/internal/CommonWrapper/utils/getCommonVisualStateDataAttributes.js.map +1 -1
  619. package/cjs/internal/CommonWrapper/utils/getVisualStateDataAttributes.d.ts +1 -1
  620. package/cjs/internal/CommonWrapper/utils/getVisualStateDataAttributes.js.map +1 -1
  621. package/cjs/internal/ComponentCombinator.d.ts +2 -2
  622. package/cjs/internal/ComponentCombinator.js +1 -0
  623. package/cjs/internal/ComponentCombinator.js.map +1 -1
  624. package/cjs/internal/ComponentTable.d.ts +1 -1
  625. package/cjs/internal/ComponentTable.js +1 -0
  626. package/cjs/internal/ComponentTable.js.map +1 -1
  627. package/cjs/internal/CustomComboBox/ComboBoxMenu.d.ts +4 -4
  628. package/cjs/internal/CustomComboBox/ComboBoxMenu.js +2 -0
  629. package/cjs/internal/CustomComboBox/ComboBoxMenu.js.map +1 -1
  630. package/cjs/internal/CustomComboBox/ComboBoxView.d.ts +10 -8
  631. package/cjs/internal/CustomComboBox/ComboBoxView.js +7 -2
  632. package/cjs/internal/CustomComboBox/ComboBoxView.js.map +1 -1
  633. package/cjs/internal/CustomComboBox/CustomComboBox.d.ts +10 -9
  634. package/cjs/internal/CustomComboBox/CustomComboBox.js +6 -5
  635. package/cjs/internal/CustomComboBox/CustomComboBox.js.map +1 -1
  636. package/cjs/internal/CustomComboBox/CustomComboBoxReducer.d.ts +4 -4
  637. package/cjs/internal/CustomComboBox/CustomComboBoxReducer.js +10 -5
  638. package/cjs/internal/CustomComboBox/CustomComboBoxReducer.js.map +1 -1
  639. package/cjs/internal/CustomComboBox/getComboBoxTheme.d.ts +1 -1
  640. package/cjs/internal/CustomComboBox/getComboBoxTheme.js.map +1 -1
  641. package/cjs/internal/CustomComboBox/locale/index.d.ts +1 -1
  642. package/cjs/internal/CustomComboBox/locale/index.js.map +1 -1
  643. package/cjs/internal/CustomComboBox/locale/locales/en.d.ts +1 -1
  644. package/cjs/internal/CustomComboBox/locale/locales/en.js.map +1 -1
  645. package/cjs/internal/CustomComboBox/locale/locales/ru.d.ts +1 -1
  646. package/cjs/internal/CustomComboBox/locale/locales/ru.js.map +1 -1
  647. package/cjs/internal/DateSelect/DateSelect.js +2 -0
  648. package/cjs/internal/DateSelect/DateSelect.js.map +1 -1
  649. package/cjs/internal/DateSelect/DateSelect.styles.d.ts +1 -1
  650. package/cjs/internal/DateSelect/DateSelect.styles.js.map +1 -1
  651. package/cjs/internal/DateSelect/locale/index.d.ts +1 -1
  652. package/cjs/internal/DateSelect/locale/index.js.map +1 -1
  653. package/cjs/internal/DateSelect/locale/locales/en.d.ts +1 -1
  654. package/cjs/internal/DateSelect/locale/locales/en.js.map +1 -1
  655. package/cjs/internal/DateSelect/locale/locales/ru.d.ts +1 -1
  656. package/cjs/internal/DateSelect/locale/locales/ru.js.map +1 -1
  657. package/cjs/internal/FileUploaderControl/FileUploaderControlContext.d.ts +2 -2
  658. package/cjs/internal/FileUploaderControl/FileUploaderControlContext.js.map +1 -1
  659. package/cjs/internal/FileUploaderControl/FileUploaderControlProvider.d.ts +4 -3
  660. package/cjs/internal/FileUploaderControl/FileUploaderControlProvider.js +3 -1
  661. package/cjs/internal/FileUploaderControl/FileUploaderControlProvider.js.map +1 -1
  662. package/cjs/internal/FileUploaderControl/FileUploaderFile/FileUploaderFile.d.ts +2 -2
  663. package/cjs/internal/FileUploaderControl/FileUploaderFile/FileUploaderFile.js +2 -1
  664. package/cjs/internal/FileUploaderControl/FileUploaderFile/FileUploaderFile.js.map +1 -1
  665. package/cjs/internal/FileUploaderControl/FileUploaderFile/FileUploaderFile.styles.d.ts +1 -1
  666. package/cjs/internal/FileUploaderControl/FileUploaderFile/FileUploaderFile.styles.js.map +1 -1
  667. package/cjs/internal/FileUploaderControl/FileUploaderFile/FileUploaderFileStatusIcon.d.ts +1 -1
  668. package/cjs/internal/FileUploaderControl/FileUploaderFile/FileUploaderFileStatusIcon.js.map +1 -1
  669. package/cjs/internal/FileUploaderControl/FileUploaderFileList/FileUploaderFileList.d.ts +2 -2
  670. package/cjs/internal/FileUploaderControl/FileUploaderFileList/FileUploaderFileList.js.map +1 -1
  671. package/cjs/internal/FileUploaderControl/FileUploaderFileList/FileUploaderFileList.styles.d.ts +1 -1
  672. package/cjs/internal/FileUploaderControl/FileUploaderFileList/FileUploaderFileList.styles.js.map +1 -1
  673. package/cjs/internal/FileUploaderControl/hooks/useFileUploaderSize.d.ts +1 -1
  674. package/cjs/internal/FileUploaderControl/hooks/useFileUploaderSize.js.map +1 -1
  675. package/cjs/internal/FileUploaderControl/hooks/useUpload.d.ts +2 -2
  676. package/cjs/internal/FileUploaderControl/hooks/useUpload.js +1 -0
  677. package/cjs/internal/FileUploaderControl/hooks/useUpload.js.map +1 -1
  678. package/cjs/internal/FileUploaderControl/withFileUploaderControlProvider.d.ts +4 -3
  679. package/cjs/internal/FileUploaderControl/withFileUploaderControlProvider.js +3 -1
  680. package/cjs/internal/FileUploaderControl/withFileUploaderControlProvider.js.map +1 -1
  681. package/cjs/internal/FocusControlWrapper/FocusControlWrapper.d.ts +2 -1
  682. package/cjs/internal/FocusControlWrapper/FocusControlWrapper.js +2 -1
  683. package/cjs/internal/FocusControlWrapper/FocusControlWrapper.js.map +1 -1
  684. package/cjs/internal/FocusControlWrapper/useFocusControl.d.ts +1 -1
  685. package/cjs/internal/FocusControlWrapper/useFocusControl.js +2 -1
  686. package/cjs/internal/FocusControlWrapper/useFocusControl.js.map +1 -1
  687. package/cjs/internal/FocusTrap/FocusTrap.d.ts +1 -1
  688. package/cjs/internal/FocusTrap/FocusTrap.js +2 -0
  689. package/cjs/internal/FocusTrap/FocusTrap.js.map +1 -1
  690. package/cjs/internal/IgnoreLayerClick/IgnoreLayerClick.js +1 -0
  691. package/cjs/internal/IgnoreLayerClick/IgnoreLayerClick.js.map +1 -1
  692. package/cjs/internal/InputLikeText/InputLikeText.d.ts +3 -3
  693. package/cjs/internal/InputLikeText/InputLikeText.js +5 -0
  694. package/cjs/internal/InputLikeText/InputLikeText.js.map +1 -1
  695. package/cjs/internal/InternalMaskedInput/InternalMaskedInput.js +1 -0
  696. package/cjs/internal/InternalMaskedInput/InternalMaskedInput.js.map +1 -1
  697. package/cjs/internal/InternalMaskedInput/InternalMaskedInput.styles.d.ts +1 -1
  698. package/cjs/internal/InternalMaskedInput/InternalMaskedInput.styles.js.map +1 -1
  699. package/cjs/internal/Menu/Menu.d.ts +4 -3
  700. package/cjs/internal/Menu/Menu.js +6 -1
  701. package/cjs/internal/Menu/Menu.js.map +1 -1
  702. package/cjs/internal/Menu/Menu.styles.d.ts +1 -1
  703. package/cjs/internal/Menu/Menu.styles.js.map +1 -1
  704. package/cjs/internal/Menu/MenuContext.d.ts +2 -2
  705. package/cjs/internal/Menu/MenuContext.js.map +1 -1
  706. package/cjs/internal/Menu/MenuNavigation.d.ts +2 -1
  707. package/cjs/internal/Menu/MenuNavigation.js +1 -0
  708. package/cjs/internal/Menu/MenuNavigation.js.map +1 -1
  709. package/cjs/internal/Menu/isActiveElement.d.ts +2 -2
  710. package/cjs/internal/Menu/isActiveElement.js +1 -0
  711. package/cjs/internal/Menu/isActiveElement.js.map +1 -1
  712. package/cjs/internal/MenuMessage/MenuMessage.d.ts +2 -2
  713. package/cjs/internal/MenuMessage/MenuMessage.js.map +1 -1
  714. package/cjs/internal/MenuMessage/MenuMessage.styles.d.ts +1 -1
  715. package/cjs/internal/MenuMessage/MenuMessage.styles.js.map +1 -1
  716. package/cjs/internal/MobilePopup/MobilePopup.d.ts +2 -1
  717. package/cjs/internal/MobilePopup/MobilePopup.js +3 -1
  718. package/cjs/internal/MobilePopup/MobilePopup.js.map +1 -1
  719. package/cjs/internal/MobilePopup/MobilePopup.styles.d.ts +1 -1
  720. package/cjs/internal/MobilePopup/MobilePopup.styles.js.map +1 -1
  721. package/cjs/internal/MobilePopup/MobilePopupFooter/MobilePopupFooter.js.map +1 -1
  722. package/cjs/internal/MobilePopup/MobilePopupFooter/MobilePopupFooter.styles.d.ts +1 -1
  723. package/cjs/internal/MobilePopup/MobilePopupFooter/MobilePopupFooter.styles.js.map +1 -1
  724. package/cjs/internal/MobilePopup/MobilePopupHeader/MobilePopupHeader.js.map +1 -1
  725. package/cjs/internal/MobilePopup/MobilePopupHeader/MobilePopupHeader.styles.d.ts +1 -1
  726. package/cjs/internal/MobilePopup/MobilePopupHeader/MobilePopupHeader.styles.js.map +1 -1
  727. package/cjs/internal/NativeDateInput/NativeDateInput.d.ts +1 -1
  728. package/cjs/internal/NativeDateInput/NativeDateInput.js.map +1 -1
  729. package/cjs/internal/NativeDateInput/utils.d.ts +2 -2
  730. package/cjs/internal/NativeDateInput/utils.js.map +1 -1
  731. package/cjs/internal/PerformanceMetrics/PerformanceMetrics.js.map +1 -1
  732. package/cjs/internal/Popup/Popup.d.ts +9 -7
  733. package/cjs/internal/Popup/Popup.js +13 -8
  734. package/cjs/internal/Popup/Popup.js.map +1 -1
  735. package/cjs/internal/Popup/Popup.styles.d.ts +1 -1
  736. package/cjs/internal/Popup/Popup.styles.js.map +1 -1
  737. package/cjs/internal/Popup/PopupHelper.d.ts +1 -1
  738. package/cjs/internal/Popup/PopupHelper.js.map +1 -1
  739. package/cjs/internal/Popup/PopupPin.d.ts +1 -1
  740. package/cjs/internal/Popup/PopupPin.js +1 -0
  741. package/cjs/internal/Popup/PopupPin.js.map +1 -1
  742. package/cjs/internal/Popup/types.d.ts +1 -1
  743. package/cjs/internal/Popup/types.js.map +1 -1
  744. package/cjs/internal/PopupMenu/PopupMenu.d.ts +6 -5
  745. package/cjs/internal/PopupMenu/PopupMenu.js +6 -1
  746. package/cjs/internal/PopupMenu/PopupMenu.js.map +1 -1
  747. package/cjs/internal/PopupMenu/validatePositions.d.ts +1 -1
  748. package/cjs/internal/PopupMenu/validatePositions.js +1 -0
  749. package/cjs/internal/PopupMenu/validatePositions.js.map +1 -1
  750. package/cjs/internal/RenderContainer/RenderContainer.d.ts +1 -1
  751. package/cjs/internal/RenderContainer/RenderContainer.js.map +1 -1
  752. package/cjs/internal/RenderContainer/RenderContainerTypes.d.ts +3 -3
  753. package/cjs/internal/RenderContainer/RenderContainerTypes.js.map +1 -1
  754. package/cjs/internal/RenderContainer/RenderInnerContainer.d.ts +2 -2
  755. package/cjs/internal/RenderContainer/RenderInnerContainer.js.map +1 -1
  756. package/cjs/internal/RenderLayer/RenderLayer.d.ts +2 -2
  757. package/cjs/internal/RenderLayer/RenderLayer.js +2 -0
  758. package/cjs/internal/RenderLayer/RenderLayer.js.map +1 -1
  759. package/cjs/internal/ThemePlayground/AnotherInputsPlayground.d.ts +2 -2
  760. package/cjs/internal/ThemePlayground/AnotherInputsPlayground.js +1 -0
  761. package/cjs/internal/ThemePlayground/AnotherInputsPlayground.js.map +1 -1
  762. package/cjs/internal/ThemePlayground/CheckboxPlayground.js +1 -0
  763. package/cjs/internal/ThemePlayground/CheckboxPlayground.js.map +1 -1
  764. package/cjs/internal/ThemePlayground/ComponentsGroup.d.ts +1 -1
  765. package/cjs/internal/ThemePlayground/ComponentsGroup.js.map +1 -1
  766. package/cjs/internal/ThemePlayground/CurrencyInputPlayground.d.ts +2 -2
  767. package/cjs/internal/ThemePlayground/CurrencyInputPlayground.js +1 -0
  768. package/cjs/internal/ThemePlayground/CurrencyInputPlayground.js.map +1 -1
  769. package/cjs/internal/ThemePlayground/Playground.js +19 -16
  770. package/cjs/internal/ThemePlayground/Playground.js.map +1 -1
  771. package/cjs/internal/ThemePlayground/Playground.styles.d.ts +1 -1
  772. package/cjs/internal/ThemePlayground/Playground.styles.js.map +1 -1
  773. package/cjs/internal/ThemePlayground/RadioPlayground.js +1 -0
  774. package/cjs/internal/ThemePlayground/RadioPlayground.js.map +1 -1
  775. package/cjs/internal/ThemePlayground/SelectPlayground.d.ts +1 -1
  776. package/cjs/internal/ThemePlayground/SelectPlayground.js +1 -0
  777. package/cjs/internal/ThemePlayground/SelectPlayground.js.map +1 -1
  778. package/cjs/internal/ThemePlayground/SizesGroup.d.ts +1 -1
  779. package/cjs/internal/ThemePlayground/SizesGroup.js +4 -4
  780. package/cjs/internal/ThemePlayground/SizesGroup.js.map +1 -1
  781. package/cjs/internal/ThemePlayground/SwitcherPlayground.d.ts +1 -1
  782. package/cjs/internal/ThemePlayground/SwitcherPlayground.js +1 -0
  783. package/cjs/internal/ThemePlayground/SwitcherPlayground.js.map +1 -1
  784. package/cjs/internal/ThemePlayground/ThemeContextPlayground.d.ts +4 -3
  785. package/cjs/internal/ThemePlayground/ThemeContextPlayground.js +2 -1
  786. package/cjs/internal/ThemePlayground/ThemeContextPlayground.js.map +1 -1
  787. package/cjs/internal/ThemePlayground/ThemeEditor.d.ts +2 -2
  788. package/cjs/internal/ThemePlayground/ThemeEditor.js.map +1 -1
  789. package/cjs/internal/ThemePlayground/UnlinkVarsPlayground.js +1 -0
  790. package/cjs/internal/ThemePlayground/UnlinkVarsPlayground.js.map +1 -1
  791. package/cjs/internal/ThemePlayground/VariableValue.d.ts +1 -1
  792. package/cjs/internal/ThemePlayground/VariableValue.js +4 -4
  793. package/cjs/internal/ThemePlayground/VariableValue.js.map +1 -1
  794. package/cjs/internal/ThemePlayground/__creevey__/Theme5_0.stories.d.ts +1 -1
  795. package/cjs/internal/ThemePlayground/constants.d.ts +1 -1
  796. package/cjs/internal/ThemePlayground/constants.js.map +1 -1
  797. package/cjs/internal/ThemeShowcase/ThemeShowcase.d.ts +1 -1
  798. package/cjs/internal/ThemeShowcase/ThemeShowcase.js +2 -2
  799. package/cjs/internal/ThemeShowcase/ThemeShowcase.js.map +1 -1
  800. package/cjs/internal/ThemeShowcase/ThemeShowcase.styles.d.ts +1 -1
  801. package/cjs/internal/ThemeShowcase/ThemeShowcase.styles.js.map +1 -1
  802. package/cjs/internal/ThemeShowcase/VariablesCollector.d.ts +2 -2
  803. package/cjs/internal/ThemeShowcase/VariablesCollector.js.map +1 -1
  804. package/cjs/internal/ZIndex/ZIndex.d.ts +1 -1
  805. package/cjs/internal/ZIndex/ZIndex.js +2 -0
  806. package/cjs/internal/ZIndex/ZIndex.js.map +1 -1
  807. package/cjs/internal/icons2022/ArrowALeftIcon/ArrowALeftIcon16Light.d.ts +1 -1
  808. package/cjs/internal/icons2022/ArrowALeftIcon/ArrowALeftIcon16Light.js +1 -0
  809. package/cjs/internal/icons2022/ArrowALeftIcon/ArrowALeftIcon16Light.js.map +1 -1
  810. package/cjs/internal/icons2022/ArrowALeftIcon/ArrowALeftIcon20Light.d.ts +1 -1
  811. package/cjs/internal/icons2022/ArrowALeftIcon/ArrowALeftIcon20Light.js +1 -0
  812. package/cjs/internal/icons2022/ArrowALeftIcon/ArrowALeftIcon20Light.js.map +1 -1
  813. package/cjs/internal/icons2022/ArrowALeftIcon/ArrowALeftIcon24Regular.d.ts +1 -1
  814. package/cjs/internal/icons2022/ArrowALeftIcon/ArrowALeftIcon24Regular.js +1 -0
  815. package/cjs/internal/icons2022/ArrowALeftIcon/ArrowALeftIcon24Regular.js.map +1 -1
  816. package/cjs/internal/icons2022/ArrowARightIcon/ArrowARightIcon16Light.d.ts +1 -1
  817. package/cjs/internal/icons2022/ArrowARightIcon/ArrowARightIcon16Light.js +1 -0
  818. package/cjs/internal/icons2022/ArrowARightIcon/ArrowARightIcon16Light.js.map +1 -1
  819. package/cjs/internal/icons2022/ArrowARightIcon/ArrowARightIcon20Light.d.ts +1 -1
  820. package/cjs/internal/icons2022/ArrowARightIcon/ArrowARightIcon20Light.js +1 -0
  821. package/cjs/internal/icons2022/ArrowARightIcon/ArrowARightIcon20Light.js.map +1 -1
  822. package/cjs/internal/icons2022/ArrowARightIcon/ArrowARightIcon24Regular.d.ts +1 -1
  823. package/cjs/internal/icons2022/ArrowARightIcon/ArrowARightIcon24Regular.js +1 -0
  824. package/cjs/internal/icons2022/ArrowARightIcon/ArrowARightIcon24Regular.js.map +1 -1
  825. package/cjs/internal/icons2022/ArrowAUpIcon/ArrowAUp16Light.d.ts +1 -1
  826. package/cjs/internal/icons2022/ArrowAUpIcon/ArrowAUp16Light.js +1 -0
  827. package/cjs/internal/icons2022/ArrowAUpIcon/ArrowAUp16Light.js.map +1 -1
  828. package/cjs/internal/icons2022/ArrowCDownIcon/ArrowCDownIcon16Regular.d.ts +1 -1
  829. package/cjs/internal/icons2022/ArrowCDownIcon/ArrowCDownIcon16Regular.js +1 -0
  830. package/cjs/internal/icons2022/ArrowCDownIcon/ArrowCDownIcon16Regular.js.map +1 -1
  831. package/cjs/internal/icons2022/ArrowCDownIcon/ArrowCDownIcon20Regular.d.ts +1 -1
  832. package/cjs/internal/icons2022/ArrowCDownIcon/ArrowCDownIcon20Regular.js +1 -0
  833. package/cjs/internal/icons2022/ArrowCDownIcon/ArrowCDownIcon20Regular.js.map +1 -1
  834. package/cjs/internal/icons2022/ArrowCDownIcon/ArrowCDownIcon24Regular.d.ts +1 -1
  835. package/cjs/internal/icons2022/ArrowCDownIcon/ArrowCDownIcon24Regular.js +1 -0
  836. package/cjs/internal/icons2022/ArrowCDownIcon/ArrowCDownIcon24Regular.js.map +1 -1
  837. package/cjs/internal/icons2022/ArrowCRightIcon/ArrowCRightIcon16Light.d.ts +1 -1
  838. package/cjs/internal/icons2022/ArrowCRightIcon/ArrowCRightIcon16Light.js +1 -0
  839. package/cjs/internal/icons2022/ArrowCRightIcon/ArrowCRightIcon16Light.js.map +1 -1
  840. package/cjs/internal/icons2022/ArrowCRightIcon/ArrowCRightIcon20Light.d.ts +1 -1
  841. package/cjs/internal/icons2022/ArrowCRightIcon/ArrowCRightIcon20Light.js +1 -0
  842. package/cjs/internal/icons2022/ArrowCRightIcon/ArrowCRightIcon20Light.js.map +1 -1
  843. package/cjs/internal/icons2022/ArrowCRightIcon/ArrowCRightIcon24Regular.d.ts +1 -1
  844. package/cjs/internal/icons2022/ArrowCRightIcon/ArrowCRightIcon24Regular.js +1 -0
  845. package/cjs/internal/icons2022/ArrowCRightIcon/ArrowCRightIcon24Regular.js.map +1 -1
  846. package/cjs/internal/icons2022/ArrowCUpIcon/ArrowCUpIcon16Regular.d.ts +1 -1
  847. package/cjs/internal/icons2022/ArrowCUpIcon/ArrowCUpIcon16Regular.js +1 -0
  848. package/cjs/internal/icons2022/ArrowCUpIcon/ArrowCUpIcon16Regular.js.map +1 -1
  849. package/cjs/internal/icons2022/ArrowCollapseCVOpenIcon/ArrowCollapseCVOpenIcon16Regular.d.ts +1 -1
  850. package/cjs/internal/icons2022/ArrowCollapseCVOpenIcon/ArrowCollapseCVOpenIcon16Regular.js +1 -0
  851. package/cjs/internal/icons2022/ArrowCollapseCVOpenIcon/ArrowCollapseCVOpenIcon16Regular.js.map +1 -1
  852. package/cjs/internal/icons2022/ArrowShapeDRadiusUpLeftIcon/ArrowShapeDRadiusUpLeftIcon16Light.d.ts +1 -1
  853. package/cjs/internal/icons2022/ArrowShapeDRadiusUpLeftIcon/ArrowShapeDRadiusUpLeftIcon16Light.js +1 -0
  854. package/cjs/internal/icons2022/ArrowShapeDRadiusUpLeftIcon/ArrowShapeDRadiusUpLeftIcon16Light.js.map +1 -1
  855. package/cjs/internal/icons2022/ArrowShapeDRadiusUpLeftIcon/ArrowShapeDRadiusUpLeftIcon20Light.d.ts +1 -1
  856. package/cjs/internal/icons2022/ArrowShapeDRadiusUpLeftIcon/ArrowShapeDRadiusUpLeftIcon20Light.js +1 -0
  857. package/cjs/internal/icons2022/ArrowShapeDRadiusUpLeftIcon/ArrowShapeDRadiusUpLeftIcon20Light.js.map +1 -1
  858. package/cjs/internal/icons2022/ArrowShapeDRadiusUpLeftIcon/ArrowShapeDRadiusUpLeftIcon24Regular.d.ts +1 -1
  859. package/cjs/internal/icons2022/ArrowShapeDRadiusUpLeftIcon/ArrowShapeDRadiusUpLeftIcon24Regular.js +1 -0
  860. package/cjs/internal/icons2022/ArrowShapeDRadiusUpLeftIcon/ArrowShapeDRadiusUpLeftIcon24Regular.js.map +1 -1
  861. package/cjs/internal/icons2022/BaseIcon.d.ts +1 -1
  862. package/cjs/internal/icons2022/BaseIcon.js +1 -0
  863. package/cjs/internal/icons2022/BaseIcon.js.map +1 -1
  864. package/cjs/internal/icons2022/CalendarIcon/CalendarIcon16Light.d.ts +1 -1
  865. package/cjs/internal/icons2022/CalendarIcon/CalendarIcon16Light.js +1 -0
  866. package/cjs/internal/icons2022/CalendarIcon/CalendarIcon16Light.js.map +1 -1
  867. package/cjs/internal/icons2022/CalendarIcon/CalendarIcon20Light.d.ts +1 -1
  868. package/cjs/internal/icons2022/CalendarIcon/CalendarIcon20Light.js +1 -0
  869. package/cjs/internal/icons2022/CalendarIcon/CalendarIcon20Light.js.map +1 -1
  870. package/cjs/internal/icons2022/CalendarIcon/CalendarIcon24Regular.d.ts +1 -1
  871. package/cjs/internal/icons2022/CalendarIcon/CalendarIcon24Regular.js +1 -0
  872. package/cjs/internal/icons2022/CalendarIcon/CalendarIcon24Regular.js.map +1 -1
  873. package/cjs/internal/icons2022/CheckAIcon/CheckAIcon16Light.d.ts +1 -1
  874. package/cjs/internal/icons2022/CheckAIcon/CheckAIcon16Light.js +1 -0
  875. package/cjs/internal/icons2022/CheckAIcon/CheckAIcon16Light.js.map +1 -1
  876. package/cjs/internal/icons2022/CheckAIcon/CheckAIcon16Regular.d.ts +1 -1
  877. package/cjs/internal/icons2022/CheckAIcon/CheckAIcon16Regular.js +1 -0
  878. package/cjs/internal/icons2022/CheckAIcon/CheckAIcon16Regular.js.map +1 -1
  879. package/cjs/internal/icons2022/CheckAIcon/CheckAIcon16Solid.d.ts +1 -1
  880. package/cjs/internal/icons2022/CheckAIcon/CheckAIcon16Solid.js +1 -0
  881. package/cjs/internal/icons2022/CheckAIcon/CheckAIcon16Solid.js.map +1 -1
  882. package/cjs/internal/icons2022/CheckAIcon/CheckAIcon20Light.d.ts +1 -1
  883. package/cjs/internal/icons2022/CheckAIcon/CheckAIcon20Light.js +1 -0
  884. package/cjs/internal/icons2022/CheckAIcon/CheckAIcon20Light.js.map +1 -1
  885. package/cjs/internal/icons2022/CheckAIcon/CheckAIcon20Solid.d.ts +1 -1
  886. package/cjs/internal/icons2022/CheckAIcon/CheckAIcon20Solid.js +1 -0
  887. package/cjs/internal/icons2022/CheckAIcon/CheckAIcon20Solid.js.map +1 -1
  888. package/cjs/internal/icons2022/CheckAIcon/CheckAIcon24Regular.d.ts +1 -1
  889. package/cjs/internal/icons2022/CheckAIcon/CheckAIcon24Regular.js +1 -0
  890. package/cjs/internal/icons2022/CheckAIcon/CheckAIcon24Regular.js.map +1 -1
  891. package/cjs/internal/icons2022/EyeClosedIcon/EyeClosedIcon16Light.d.ts +1 -1
  892. package/cjs/internal/icons2022/EyeClosedIcon/EyeClosedIcon16Light.js +1 -0
  893. package/cjs/internal/icons2022/EyeClosedIcon/EyeClosedIcon16Light.js.map +1 -1
  894. package/cjs/internal/icons2022/EyeClosedIcon/EyeClosedIcon20Light.d.ts +1 -1
  895. package/cjs/internal/icons2022/EyeClosedIcon/EyeClosedIcon20Light.js +1 -0
  896. package/cjs/internal/icons2022/EyeClosedIcon/EyeClosedIcon20Light.js.map +1 -1
  897. package/cjs/internal/icons2022/EyeClosedIcon/EyeClosedIcon24Regular.d.ts +1 -1
  898. package/cjs/internal/icons2022/EyeClosedIcon/EyeClosedIcon24Regular.js +1 -0
  899. package/cjs/internal/icons2022/EyeClosedIcon/EyeClosedIcon24Regular.js.map +1 -1
  900. package/cjs/internal/icons2022/EyeOpenIcon/EyeOpenIcon16Light.d.ts +1 -1
  901. package/cjs/internal/icons2022/EyeOpenIcon/EyeOpenIcon16Light.js +1 -0
  902. package/cjs/internal/icons2022/EyeOpenIcon/EyeOpenIcon16Light.js.map +1 -1
  903. package/cjs/internal/icons2022/EyeOpenIcon/EyeOpenIcon20Light.d.ts +1 -1
  904. package/cjs/internal/icons2022/EyeOpenIcon/EyeOpenIcon20Light.js +1 -0
  905. package/cjs/internal/icons2022/EyeOpenIcon/EyeOpenIcon20Light.js.map +1 -1
  906. package/cjs/internal/icons2022/EyeOpenIcon/EyeOpenIcon24Regular.d.ts +1 -1
  907. package/cjs/internal/icons2022/EyeOpenIcon/EyeOpenIcon24Regular.js +1 -0
  908. package/cjs/internal/icons2022/EyeOpenIcon/EyeOpenIcon24Regular.js.map +1 -1
  909. package/cjs/internal/icons2022/InfoCircleIcon/InfoCircleIcon64Regular.d.ts +1 -1
  910. package/cjs/internal/icons2022/InfoCircleIcon/InfoCircleIcon64Regular.js +1 -0
  911. package/cjs/internal/icons2022/InfoCircleIcon/InfoCircleIcon64Regular.js.map +1 -1
  912. package/cjs/internal/icons2022/LoadingIcon.d.ts +1 -1
  913. package/cjs/internal/icons2022/LoadingIcon.js +1 -0
  914. package/cjs/internal/icons2022/LoadingIcon.js.map +1 -1
  915. package/cjs/internal/icons2022/MathFunctionIcon/MathFunctionIcon16Light.d.ts +1 -1
  916. package/cjs/internal/icons2022/MathFunctionIcon/MathFunctionIcon16Light.js +1 -0
  917. package/cjs/internal/icons2022/MathFunctionIcon/MathFunctionIcon16Light.js.map +1 -1
  918. package/cjs/internal/icons2022/MathFunctionIcon/MathFunctionIcon20Light.d.ts +1 -1
  919. package/cjs/internal/icons2022/MathFunctionIcon/MathFunctionIcon20Light.js +1 -0
  920. package/cjs/internal/icons2022/MathFunctionIcon/MathFunctionIcon20Light.js.map +1 -1
  921. package/cjs/internal/icons2022/MathFunctionIcon/MathFunctionIcon24Regular.d.ts +1 -1
  922. package/cjs/internal/icons2022/MathFunctionIcon/MathFunctionIcon24Regular.js +1 -0
  923. package/cjs/internal/icons2022/MathFunctionIcon/MathFunctionIcon24Regular.js.map +1 -1
  924. package/cjs/internal/icons2022/MinusCircleIcon/MinusCircleIcon16Light.d.ts +1 -1
  925. package/cjs/internal/icons2022/MinusCircleIcon/MinusCircleIcon16Light.js +1 -0
  926. package/cjs/internal/icons2022/MinusCircleIcon/MinusCircleIcon16Light.js.map +1 -1
  927. package/cjs/internal/icons2022/MinusCircleIcon/MinusCircleIcon16Regular.d.ts +1 -1
  928. package/cjs/internal/icons2022/MinusCircleIcon/MinusCircleIcon16Regular.js +1 -0
  929. package/cjs/internal/icons2022/MinusCircleIcon/MinusCircleIcon16Regular.js.map +1 -1
  930. package/cjs/internal/icons2022/MinusCircleIcon/MinusCircleIcon20Light.d.ts +1 -1
  931. package/cjs/internal/icons2022/MinusCircleIcon/MinusCircleIcon20Light.js +1 -0
  932. package/cjs/internal/icons2022/MinusCircleIcon/MinusCircleIcon20Light.js.map +1 -1
  933. package/cjs/internal/icons2022/MinusCircleIcon/MinusCircleIcon24Regular.d.ts +1 -1
  934. package/cjs/internal/icons2022/MinusCircleIcon/MinusCircleIcon24Regular.js +1 -0
  935. package/cjs/internal/icons2022/MinusCircleIcon/MinusCircleIcon24Regular.js.map +1 -1
  936. package/cjs/internal/icons2022/NetUploadIcon/NetUploadIcon16Light.d.ts +1 -1
  937. package/cjs/internal/icons2022/NetUploadIcon/NetUploadIcon16Light.js +1 -0
  938. package/cjs/internal/icons2022/NetUploadIcon/NetUploadIcon16Light.js.map +1 -1
  939. package/cjs/internal/icons2022/NetUploadIcon/NetUploadIcon20Light.d.ts +1 -1
  940. package/cjs/internal/icons2022/NetUploadIcon/NetUploadIcon20Light.js +1 -0
  941. package/cjs/internal/icons2022/NetUploadIcon/NetUploadIcon20Light.js.map +1 -1
  942. package/cjs/internal/icons2022/NetUploadIcon/NetUploadIcon24Regular.d.ts +1 -1
  943. package/cjs/internal/icons2022/NetUploadIcon/NetUploadIcon24Regular.js +1 -0
  944. package/cjs/internal/icons2022/NetUploadIcon/NetUploadIcon24Regular.js.map +1 -1
  945. package/cjs/internal/icons2022/QuestionCircleIcon/QuestionCircleIcon16Solid.d.ts +1 -1
  946. package/cjs/internal/icons2022/QuestionCircleIcon/QuestionCircleIcon16Solid.js +1 -0
  947. package/cjs/internal/icons2022/QuestionCircleIcon/QuestionCircleIcon16Solid.js.map +1 -1
  948. package/cjs/internal/icons2022/SearchLoupeIcon/SearchLoupeIcon16Regular.d.ts +1 -1
  949. package/cjs/internal/icons2022/SearchLoupeIcon/SearchLoupeIcon16Regular.js +1 -0
  950. package/cjs/internal/icons2022/SearchLoupeIcon/SearchLoupeIcon16Regular.js.map +1 -1
  951. package/cjs/internal/icons2022/ShapeSquareIcon/ShapeSquareIcon16Solid.d.ts +1 -1
  952. package/cjs/internal/icons2022/ShapeSquareIcon/ShapeSquareIcon16Solid.js +1 -0
  953. package/cjs/internal/icons2022/ShapeSquareIcon/ShapeSquareIcon16Solid.js.map +1 -1
  954. package/cjs/internal/icons2022/UiMenuDotsThreeVIcon/UiMenuDotsThreeVIcon16Light.d.ts +1 -1
  955. package/cjs/internal/icons2022/UiMenuDotsThreeVIcon/UiMenuDotsThreeVIcon16Light.js +1 -0
  956. package/cjs/internal/icons2022/UiMenuDotsThreeVIcon/UiMenuDotsThreeVIcon16Light.js.map +1 -1
  957. package/cjs/internal/icons2022/UiMenuDotsThreeVIcon/UiMenuDotsThreeVIcon20Regular.d.ts +1 -1
  958. package/cjs/internal/icons2022/UiMenuDotsThreeVIcon/UiMenuDotsThreeVIcon20Regular.js +1 -0
  959. package/cjs/internal/icons2022/UiMenuDotsThreeVIcon/UiMenuDotsThreeVIcon20Regular.js.map +1 -1
  960. package/cjs/internal/icons2022/UiMenuDotsThreeVIcon/UiMenuDotsThreeVIcon24Regular.d.ts +1 -1
  961. package/cjs/internal/icons2022/UiMenuDotsThreeVIcon/UiMenuDotsThreeVIcon24Regular.js +1 -0
  962. package/cjs/internal/icons2022/UiMenuDotsThreeVIcon/UiMenuDotsThreeVIcon24Regular.js.map +1 -1
  963. package/cjs/internal/icons2022/XIcon/XIcon16Light.d.ts +1 -1
  964. package/cjs/internal/icons2022/XIcon/XIcon16Light.js +1 -0
  965. package/cjs/internal/icons2022/XIcon/XIcon16Light.js.map +1 -1
  966. package/cjs/internal/icons2022/XIcon/XIcon16Regular.d.ts +1 -1
  967. package/cjs/internal/icons2022/XIcon/XIcon16Regular.js +1 -0
  968. package/cjs/internal/icons2022/XIcon/XIcon16Regular.js.map +1 -1
  969. package/cjs/internal/icons2022/XIcon/XIcon20Light.d.ts +1 -1
  970. package/cjs/internal/icons2022/XIcon/XIcon20Light.js +1 -0
  971. package/cjs/internal/icons2022/XIcon/XIcon20Light.js.map +1 -1
  972. package/cjs/internal/icons2022/XIcon/XIcon20Regular.d.ts +1 -1
  973. package/cjs/internal/icons2022/XIcon/XIcon20Regular.js +1 -0
  974. package/cjs/internal/icons2022/XIcon/XIcon20Regular.js.map +1 -1
  975. package/cjs/internal/icons2022/XIcon/XIcon24Regular.d.ts +1 -1
  976. package/cjs/internal/icons2022/XIcon/XIcon24Regular.js +1 -0
  977. package/cjs/internal/icons2022/XIcon/XIcon24Regular.js.map +1 -1
  978. package/cjs/internal/icons2022/iconSizer.d.ts +2 -2
  979. package/cjs/internal/icons2022/iconSizer.js +1 -0
  980. package/cjs/internal/icons2022/iconSizer.js.map +1 -1
  981. package/cjs/internal/themes/BasicTheme.d.ts +1 -0
  982. package/cjs/internal/themes/BasicTheme.js +2 -1
  983. package/cjs/internal/themes/BasicTheme.js.map +1 -1
  984. package/cjs/lib/InstanceWithAnchorElement.d.ts +1 -1
  985. package/cjs/lib/InstanceWithAnchorElement.js.map +1 -1
  986. package/cjs/lib/ModalStack.d.ts +1 -1
  987. package/cjs/lib/ModalStack.js.map +1 -1
  988. package/cjs/lib/callChildRef/callChildRef.d.ts +2 -2
  989. package/cjs/lib/callChildRef/callChildRef.js.map +1 -1
  990. package/cjs/lib/createPropsGetter.d.ts +1 -1
  991. package/cjs/lib/createPropsGetter.js.map +1 -1
  992. package/cjs/lib/date/InternalDate.d.ts +2 -1
  993. package/cjs/lib/date/InternalDate.js +3 -1
  994. package/cjs/lib/date/InternalDate.js.map +1 -1
  995. package/cjs/lib/date/InternalDateCalculator.d.ts +2 -1
  996. package/cjs/lib/date/InternalDateCalculator.js +1 -5
  997. package/cjs/lib/date/InternalDateCalculator.js.map +1 -1
  998. package/cjs/lib/date/InternalDateGetter.d.ts +3 -2
  999. package/cjs/lib/date/InternalDateGetter.js +1 -5
  1000. package/cjs/lib/date/InternalDateGetter.js.map +1 -1
  1001. package/cjs/lib/date/InternalDateSetter.d.ts +3 -2
  1002. package/cjs/lib/date/InternalDateSetter.js +1 -5
  1003. package/cjs/lib/date/InternalDateSetter.js.map +1 -1
  1004. package/cjs/lib/date/InternalDateTransformer.d.ts +2 -1
  1005. package/cjs/lib/date/InternalDateTransformer.js +1 -3
  1006. package/cjs/lib/date/InternalDateTransformer.js.map +1 -1
  1007. package/cjs/lib/date/InternalDateValidator.d.ts +3 -2
  1008. package/cjs/lib/date/InternalDateValidator.js +1 -5
  1009. package/cjs/lib/date/InternalDateValidator.js.map +1 -1
  1010. package/cjs/lib/date/localeSets.d.ts +1 -1
  1011. package/cjs/lib/date/localeSets.js +1 -6
  1012. package/cjs/lib/date/localeSets.js.map +1 -1
  1013. package/cjs/lib/date/types.d.ts +1 -1
  1014. package/cjs/lib/date/types.js.map +1 -1
  1015. package/cjs/lib/dom/getDOMRect.d.ts +1 -1
  1016. package/cjs/lib/dom/getDOMRect.js.map +1 -1
  1017. package/cjs/lib/dom/tabbableHelpers.d.ts +2 -2
  1018. package/cjs/lib/dom/tabbableHelpers.js +2 -1
  1019. package/cjs/lib/dom/tabbableHelpers.js.map +1 -1
  1020. package/cjs/lib/events/fixFirefoxModifiedClickOnLabel.d.ts +1 -1
  1021. package/cjs/lib/events/fixFirefoxModifiedClickOnLabel.js.map +1 -1
  1022. package/cjs/lib/events/keyboard/extractCode.js +1 -0
  1023. package/cjs/lib/events/keyboard/extractCode.js.map +1 -1
  1024. package/cjs/lib/extractKeyboardAction.d.ts +1 -1
  1025. package/cjs/lib/extractKeyboardAction.js.map +1 -1
  1026. package/cjs/lib/featureFlagsContext/FeatureFlagsHelpers.d.ts +1 -1
  1027. package/cjs/lib/featureFlagsContext/FeatureFlagsHelpers.js +2 -1
  1028. package/cjs/lib/featureFlagsContext/FeatureFlagsHelpers.js.map +1 -1
  1029. package/cjs/lib/getDisplayName.d.ts +2 -2
  1030. package/cjs/lib/getDisplayName.js.map +1 -1
  1031. package/cjs/lib/locale/LocaleContext.d.ts +1 -1
  1032. package/cjs/lib/locale/LocaleContext.js.map +1 -1
  1033. package/cjs/lib/locale/LocaleHelper.d.ts +1 -1
  1034. package/cjs/lib/locale/LocaleHelper.js.map +1 -1
  1035. package/cjs/lib/locale/decorators.d.ts +3 -3
  1036. package/cjs/lib/locale/decorators.js.map +1 -1
  1037. package/cjs/lib/locale/types.d.ts +10 -10
  1038. package/cjs/lib/locale/types.js.map +1 -1
  1039. package/cjs/lib/locale/useLocaleForControl.d.ts +2 -2
  1040. package/cjs/lib/locale/useLocaleForControl.js.map +1 -1
  1041. package/cjs/lib/mergeRefs.d.ts +1 -1
  1042. package/cjs/lib/mergeRefs.js.map +1 -1
  1043. package/cjs/lib/rootNode/getRootNode.d.ts +2 -2
  1044. package/cjs/lib/rootNode/getRootNode.js +5 -12
  1045. package/cjs/lib/rootNode/getRootNode.js.map +1 -1
  1046. package/cjs/lib/rootNode/rootNodeDecorator.d.ts +2 -2
  1047. package/cjs/lib/rootNode/rootNodeDecorator.js.map +1 -1
  1048. package/cjs/lib/styles/ColorFactory.js +1 -0
  1049. package/cjs/lib/styles/ColorFactory.js.map +1 -1
  1050. package/cjs/lib/styles/ColorFunctions.js.map +1 -1
  1051. package/cjs/lib/styles/ColorObject.d.ts +1 -1
  1052. package/cjs/lib/styles/ColorObject.js.map +1 -1
  1053. package/cjs/lib/styles/UiFont.d.ts +1 -4
  1054. package/cjs/lib/styles/UiFont.js +5 -47
  1055. package/cjs/lib/styles/UiFont.js.map +1 -1
  1056. package/cjs/lib/taskWithDelayAndMinimalDuration.js +2 -1
  1057. package/cjs/lib/taskWithDelayAndMinimalDuration.js.map +1 -1
  1058. package/cjs/lib/theming/AnimationKeyframes.d.ts +1 -1
  1059. package/cjs/lib/theming/AnimationKeyframes.js.map +1 -1
  1060. package/cjs/lib/theming/Emotion.d.ts +1 -1
  1061. package/cjs/lib/theming/Emotion.js.map +1 -1
  1062. package/cjs/lib/theming/Theme.d.ts +2 -1
  1063. package/cjs/lib/theming/Theme.js +2 -1
  1064. package/cjs/lib/theming/Theme.js.map +1 -1
  1065. package/cjs/lib/theming/ThemeFactory.d.ts +2 -2
  1066. package/cjs/lib/theming/ThemeFactory.js +2 -1
  1067. package/cjs/lib/theming/ThemeFactory.js.map +1 -1
  1068. package/cjs/lib/theming/ThemeHelpers.d.ts +2 -2
  1069. package/cjs/lib/theming/ThemeHelpers.js +1 -0
  1070. package/cjs/lib/theming/ThemeHelpers.js.map +1 -1
  1071. package/cjs/lib/types/polymorphic-component.d.ts +2 -2
  1072. package/cjs/lib/types/polymorphic-component.js.map +1 -1
  1073. package/cjs/lib/utils.d.ts +1 -0
  1074. package/cjs/lib/utils.js +5 -1
  1075. package/cjs/lib/utils.js.map +1 -1
  1076. package/cjs/lib/withClassWrapper.d.ts +1 -1
  1077. package/cjs/lib/withClassWrapper.js.map +1 -1
  1078. package/components/Autocomplete/Autocomplete/Autocomplete.js.map +1 -1
  1079. package/components/Autocomplete/Autocomplete.d.ts +6 -5
  1080. package/components/Autocomplete/Autocomplete.styles/Autocomplete.styles.js.map +1 -1
  1081. package/components/Autocomplete/Autocomplete.styles.d.ts +1 -1
  1082. package/components/Autocomplete/__docs__/Autocomplete.mdx +5 -5
  1083. package/components/Autocomplete/getAutocompleteTheme/getAutocompleteTheme.js.map +1 -1
  1084. package/components/Autocomplete/getAutocompleteTheme.d.ts +1 -1
  1085. package/components/Autocomplete/locale/index/index.js.map +1 -1
  1086. package/components/Autocomplete/locale/index.d.ts +1 -1
  1087. package/components/Autocomplete/locale/locales/en/en.js.map +1 -1
  1088. package/components/Autocomplete/locale/locales/en.d.ts +1 -1
  1089. package/components/Autocomplete/locale/locales/ru/ru.js.map +1 -1
  1090. package/components/Autocomplete/locale/locales/ru.d.ts +1 -1
  1091. package/components/Button/Button/Button.js.map +1 -1
  1092. package/components/Button/Button.d.ts +5 -5
  1093. package/components/Button/Button.styles/Button.styles.js +1 -1
  1094. package/components/Button/Button.styles/Button.styles.js.map +1 -1
  1095. package/components/Button/Button.styles.d.ts +1 -1
  1096. package/components/Button/ButtonArrow/ButtonArrow.js.map +1 -1
  1097. package/components/Button/ButtonArrow.d.ts +2 -2
  1098. package/components/Button/ButtonIcon/ButtonIcon.js.map +1 -1
  1099. package/components/Button/ButtonIcon.d.ts +3 -3
  1100. package/components/Button/ButtonIcon.styles/ButtonIcon.styles.js.map +1 -1
  1101. package/components/Button/ButtonIcon.styles.d.ts +1 -1
  1102. package/components/Button/LoadingButtonIcon/LoadingButtonIcon.js.map +1 -1
  1103. package/components/Button/LoadingButtonIcon.d.ts +1 -1
  1104. package/components/Button/__docs__/Button.mdx +8 -9
  1105. package/components/Button/getInnerLinkTheme/getInnerLinkTheme.js.map +1 -1
  1106. package/components/Button/getInnerLinkTheme.d.ts +1 -1
  1107. package/components/Calendar/Calendar/Calendar.js.map +1 -1
  1108. package/components/Calendar/Calendar.d.ts +3 -3
  1109. package/components/Calendar/Calendar.styles/Calendar.styles.js.map +1 -1
  1110. package/components/Calendar/Calendar.styles.d.ts +1 -1
  1111. package/components/Calendar/CalendarContext/CalendarContext.js.map +1 -1
  1112. package/components/Calendar/CalendarContext.d.ts +2 -2
  1113. package/components/Calendar/CalendarDateShape/CalendarDateShape.js.map +1 -1
  1114. package/components/Calendar/CalendarDateShape.d.ts +1 -1
  1115. package/components/Calendar/CalendarDay/CalendarDay.js.map +1 -1
  1116. package/components/Calendar/CalendarDay.d.ts +2 -1
  1117. package/components/Calendar/CalendarUtils/CalendarUtils.js.map +1 -1
  1118. package/components/Calendar/CalendarUtils.d.ts +4 -4
  1119. package/components/Calendar/DayCellView/DayCellView.js.map +1 -1
  1120. package/components/Calendar/DayCellView.d.ts +1 -1
  1121. package/components/Calendar/DayCellView.styles/DayCellView.styles.js.map +1 -1
  1122. package/components/Calendar/DayCellView.styles.d.ts +1 -1
  1123. package/components/Calendar/Month/Month.js.map +1 -1
  1124. package/components/Calendar/Month.d.ts +1 -1
  1125. package/components/Calendar/MonthView/MonthView.js.map +1 -1
  1126. package/components/Calendar/MonthView.d.ts +1 -1
  1127. package/components/Calendar/MonthView.styles/MonthView.styles.js.map +1 -1
  1128. package/components/Calendar/MonthView.styles.d.ts +1 -1
  1129. package/components/Calendar/MonthViewModel/MonthViewModel.js.map +1 -1
  1130. package/components/Calendar/MonthViewModel.d.ts +1 -1
  1131. package/components/Calendar/__docs__/Calendar.mdx +8 -9
  1132. package/components/Calendar/__docs__/CalendarDay.mdx +4 -5
  1133. package/components/Calendar/config/config.js.map +1 -1
  1134. package/components/Calendar/config.d.ts +1 -1
  1135. package/components/Calendar/locale/index/index.js.map +1 -1
  1136. package/components/Calendar/locale/index.d.ts +1 -1
  1137. package/components/Calendar/locale/locales/en/en.js.map +1 -1
  1138. package/components/Calendar/locale/locales/en.d.ts +1 -1
  1139. package/components/Calendar/locale/locales/ru/ru.js.map +1 -1
  1140. package/components/Calendar/locale/locales/ru.d.ts +1 -1
  1141. package/components/Center/Center/Center.js.map +1 -1
  1142. package/components/Center/Center.d.ts +2 -2
  1143. package/components/Center/__docs__/Center.mdx +4 -5
  1144. package/components/Checkbox/Checkbox/Checkbox.js.map +1 -1
  1145. package/components/Checkbox/Checkbox.d.ts +5 -4
  1146. package/components/Checkbox/Checkbox.styles/Checkbox.styles.js.map +1 -1
  1147. package/components/Checkbox/Checkbox.styles.d.ts +1 -1
  1148. package/components/Checkbox/__docs__/Checkbox.mdx +8 -9
  1149. package/components/ComboBox/ComboBox/ComboBox.js.map +1 -1
  1150. package/components/ComboBox/ComboBox.d.ts +7 -6
  1151. package/components/ComboBox/ComboBox.md +2 -2
  1152. package/components/ComboBox/__docs__/ComboBox.mdx +8 -9
  1153. package/components/CurrencyInput/CurrencyHelper/CurrencyHelper.js.map +1 -1
  1154. package/components/CurrencyInput/CurrencyHelper.d.ts +3 -3
  1155. package/components/CurrencyInput/CurrencyInput/CurrencyInput.js.map +1 -1
  1156. package/components/CurrencyInput/CurrencyInput.d.ts +6 -5
  1157. package/components/CurrencyInput/CurrencyInputHelper/CurrencyInputHelper.js.map +1 -1
  1158. package/components/CurrencyInput/CurrencyInputHelper.d.ts +2 -2
  1159. package/components/CurrencyInput/CursorHelper/CursorHelper.js.map +1 -1
  1160. package/components/CurrencyInput/CursorHelper.d.ts +1 -1
  1161. package/components/CurrencyInput/__docs__/CurrencyInput.mdx +8 -9
  1162. package/components/CurrencyLabel/CurrencyLabel/CurrencyLabel.js.map +1 -1
  1163. package/components/CurrencyLabel/CurrencyLabel.d.ts +3 -2
  1164. package/components/CurrencyLabel/__docs__/CurrencyLabel.mdx +4 -5
  1165. package/components/DateInput/DateFragmentsView/DateFragmentsView.js.map +1 -1
  1166. package/components/DateInput/DateFragmentsView.d.ts +2 -1
  1167. package/components/DateInput/DateFragmentsView.styles/DateFragmentsView.styles.js.map +1 -1
  1168. package/components/DateInput/DateFragmentsView.styles.d.ts +1 -1
  1169. package/components/DateInput/DateInput/DateInput.js.map +1 -1
  1170. package/components/DateInput/DateInput.d.ts +4 -3
  1171. package/components/DateInput/DateInput.styles/DateInput.styles.js.map +1 -1
  1172. package/components/DateInput/DateInput.styles.d.ts +1 -1
  1173. package/components/DateInput/__docs__/DateInput.mdx +4 -7
  1174. package/components/DateInput/helpers/DateInputKeyboardActions/DateInputKeyboardActions.js.map +1 -1
  1175. package/components/DateInput/helpers/DateInputKeyboardActions.d.ts +1 -1
  1176. package/components/DateInput/helpers/InternalDateMediator/InternalDateMediator.js.map +1 -1
  1177. package/components/DateInput/helpers/InternalDateMediator.d.ts +4 -3
  1178. package/components/DateInput/helpers/inputNumber/inputNumber.js.map +1 -1
  1179. package/components/DateInput/helpers/inputNumber.d.ts +2 -1
  1180. package/components/DatePicker/DatePicker/DatePicker.js.map +1 -1
  1181. package/components/DatePicker/DatePicker.d.ts +6 -5
  1182. package/components/DatePicker/DatePicker.styles/DatePicker.styles.js.map +1 -1
  1183. package/components/DatePicker/DatePicker.styles.d.ts +1 -1
  1184. package/components/DatePicker/DatePickerHelpers/DatePickerHelpers.js.map +1 -1
  1185. package/components/DatePicker/DatePickerHelpers.d.ts +1 -1
  1186. package/components/DatePicker/MobilePicker/MobilePicker.js.map +1 -1
  1187. package/components/DatePicker/MobilePicker.d.ts +1 -1
  1188. package/components/DatePicker/__docs__/DatePicker.mdx +8 -9
  1189. package/components/DatePicker/getMobilePickerTheme/getMobilePickerTheme.js.map +1 -1
  1190. package/components/DatePicker/getMobilePickerTheme.d.ts +1 -1
  1191. package/components/DatePicker/locale/index/index.js.map +1 -1
  1192. package/components/DatePicker/locale/index.d.ts +1 -1
  1193. package/components/DatePicker/locale/locales/en/en.js.map +1 -1
  1194. package/components/DatePicker/locale/locales/en.d.ts +1 -1
  1195. package/components/DatePicker/locale/locales/ru/ru.js.map +1 -1
  1196. package/components/DatePicker/locale/locales/ru.d.ts +1 -1
  1197. package/components/DatePicker/locale/types/types.js.map +1 -1
  1198. package/components/DatePicker/locale/types.d.ts +3 -3
  1199. package/components/DateRangePicker/DateRangePicker/DateRangePicker.js +31 -11
  1200. package/components/DateRangePicker/DateRangePicker/DateRangePicker.js.map +1 -1
  1201. package/components/DateRangePicker/DateRangePicker.d.ts +4 -2
  1202. package/components/DateRangePicker/DateRangePicker.styles/DateRangePicker.styles.js.map +1 -1
  1203. package/components/DateRangePicker/DateRangePicker.styles.d.ts +2 -2
  1204. package/components/DateRangePicker/DateRangePickerInput/DateRangePickerInput.js +5 -8
  1205. package/components/DateRangePicker/DateRangePickerInput/DateRangePickerInput.js.map +1 -1
  1206. package/components/DateRangePicker/DateRangePickerInput.d.ts +2 -1
  1207. package/components/DateRangePicker/DateRangePickerTheme/DateRangePickerTheme.js.map +1 -1
  1208. package/components/DateRangePicker/DateRangePickerTheme.d.ts +1 -1
  1209. package/components/DateRangePicker/__docs__/DateRangePicker.mdx +8 -12
  1210. package/components/DateRangePicker/helpers/getStateForValue/getStateForValue.js +11 -19
  1211. package/components/DateRangePicker/helpers/getStateForValue/getStateForValue.js.map +1 -1
  1212. package/components/DateRangePicker/helpers/getStateForValue.d.ts +2 -2
  1213. package/components/DateRangePicker/helpers/validateDateRangePicker/validateDateRangePicker.js +16 -15
  1214. package/components/DateRangePicker/helpers/validateDateRangePicker/validateDateRangePicker.js.map +1 -1
  1215. package/components/DateRangePicker/helpers/validateDateRangePicker.d.ts +1 -1
  1216. package/components/DateRangePicker/locale/index/index.js.map +1 -1
  1217. package/components/DateRangePicker/locale/index.d.ts +1 -1
  1218. package/components/DateRangePicker/locale/locales/en/en.js.map +1 -1
  1219. package/components/DateRangePicker/locale/locales/en.d.ts +1 -1
  1220. package/components/DateRangePicker/locale/locales/ru/ru.js.map +1 -1
  1221. package/components/DateRangePicker/locale/locales/ru.d.ts +1 -1
  1222. package/components/DateRangePicker/locale/types/types.js.map +1 -1
  1223. package/components/DateRangePicker/locale/types.d.ts +1 -1
  1224. package/components/Dropdown/Dropdown/Dropdown.js.map +1 -1
  1225. package/components/Dropdown/Dropdown.d.ts +5 -4
  1226. package/components/Dropdown/__docs__/Dropdown.mdx +8 -9
  1227. package/components/Dropdown/getDropdownTheme/getDropdownTheme.js.map +1 -1
  1228. package/components/Dropdown/getDropdownTheme.d.ts +1 -1
  1229. package/components/DropdownMenu/DropdownMenu/DropdownMenu.js.map +1 -1
  1230. package/components/DropdownMenu/DropdownMenu.d.ts +5 -4
  1231. package/components/DropdownMenu/DropdownMenu.md +8 -8
  1232. package/components/DropdownMenu/__docs__/DropdownMenu.mdx +8 -9
  1233. package/components/DropdownMenu/getDropdownMenuTheme/getDropdownMenuTheme.js.map +1 -1
  1234. package/components/DropdownMenu/getDropdownMenuTheme.d.ts +1 -1
  1235. package/components/FileUploader/FileUploader/FileUploader.js +21 -13
  1236. package/components/FileUploader/FileUploader/FileUploader.js.map +1 -1
  1237. package/components/FileUploader/FileUploader.d.ts +6 -6
  1238. package/components/FileUploader/FileUploader.styles/FileUploader.styles.js.map +1 -1
  1239. package/components/FileUploader/FileUploader.styles.d.ts +1 -1
  1240. package/components/FileUploader/__docs__/FileUploader.mdx +8 -9
  1241. package/components/FileUploader/index/index.js.map +1 -1
  1242. package/components/FileUploader/index.d.ts +1 -1
  1243. package/components/FileUploader/locale/index/index.js.map +1 -1
  1244. package/components/FileUploader/locale/index.d.ts +1 -1
  1245. package/components/FileUploader/locale/locales/en/en.js.map +1 -1
  1246. package/components/FileUploader/locale/locales/en.d.ts +1 -1
  1247. package/components/FileUploader/locale/locales/ru/ru.js.map +1 -1
  1248. package/components/FileUploader/locale/locales/ru.d.ts +1 -1
  1249. package/components/FxInput/FxInput/FxInput.js.map +1 -1
  1250. package/components/FxInput/FxInput.d.ts +9 -6
  1251. package/components/FxInput/FxInputRestoreBtn/FxInputRestoreBtn.js.map +1 -1
  1252. package/components/FxInput/FxInputRestoreBtn.d.ts +3 -2
  1253. package/components/FxInput/__docs__/FxInput.mdx +8 -9
  1254. package/components/Gapped/Gapped/Gapped.js.map +1 -1
  1255. package/components/Gapped/Gapped.d.ts +1 -1
  1256. package/components/Gapped/__docs__/Gapped.mdx +4 -5
  1257. package/components/GlobalLoader/GlobalLoader/GlobalLoader.js.map +1 -1
  1258. package/components/GlobalLoader/GlobalLoaderView/GlobalLoaderView.js.map +1 -1
  1259. package/components/GlobalLoader/GlobalLoaderView.d.ts +1 -1
  1260. package/components/GlobalLoader/GlobalLoaderView.styles/GlobalLoaderView.styles.js.map +1 -1
  1261. package/components/GlobalLoader/GlobalLoaderView.styles.d.ts +1 -1
  1262. package/components/GlobalLoader/__docs__/GlobalLoader.mdx +8 -9
  1263. package/components/GlobalLoader/useParams/useParams.js.map +1 -1
  1264. package/components/GlobalLoader/useParams.d.ts +1 -1
  1265. package/components/Group/Group/Group.js.map +1 -1
  1266. package/components/Group/Group.d.ts +1 -1
  1267. package/components/Group/Group.md +4 -4
  1268. package/components/Group/__docs__/Group.mdx +4 -5
  1269. package/components/Hint/Hint/Hint.js.map +1 -1
  1270. package/components/Hint/Hint.d.ts +5 -5
  1271. package/components/Hint/Hint.styles/Hint.styles.js.map +1 -1
  1272. package/components/Hint/Hint.styles.d.ts +1 -1
  1273. package/components/Hint/__docs__/Hint.mdx +8 -9
  1274. package/components/Input/Input/Input.js.map +1 -1
  1275. package/components/Input/Input.d.ts +6 -5
  1276. package/components/Input/Input.md +4 -5
  1277. package/components/Input/Input.styles/Input.styles.js.map +1 -1
  1278. package/components/Input/Input.styles.d.ts +1 -1
  1279. package/components/Input/Input.typings/Input.typings.js.map +1 -1
  1280. package/components/Input/Input.typings.d.ts +1 -1
  1281. package/components/Input/InputLayout/InputLayout/InputLayout.js.map +1 -1
  1282. package/components/Input/InputLayout/InputLayout.d.ts +3 -3
  1283. package/components/Input/InputLayout/InputLayout.styles/InputLayout.styles.js.map +1 -1
  1284. package/components/Input/InputLayout/InputLayout.styles.d.ts +1 -1
  1285. package/components/Input/InputLayout/InputLayoutAside/InputLayoutAside.js.map +1 -1
  1286. package/components/Input/InputLayout/InputLayoutAside.d.ts +1 -1
  1287. package/components/Input/InputLayout/InputLayoutAsideIcon/InputLayoutAsideIcon.js.map +1 -1
  1288. package/components/Input/InputLayout/InputLayoutAsideIcon.d.ts +1 -1
  1289. package/components/Input/InputLayout/InputLayoutAsideText/InputLayoutAsideText.js.map +1 -1
  1290. package/components/Input/InputLayout/InputLayoutAsideText.d.ts +1 -1
  1291. package/components/Input/InputLayout/InputLayoutContext/InputLayoutContext.js.map +1 -1
  1292. package/components/Input/InputLayout/InputLayoutContext.d.ts +1 -1
  1293. package/components/Input/InputLayout/PolyfillPlaceholder/PolyfillPlaceholder.js.map +1 -1
  1294. package/components/Input/InputLayout/PolyfillPlaceholder.d.ts +1 -1
  1295. package/components/Input/__docs__/Input.mdx +8 -9
  1296. package/components/Kebab/Kebab/Kebab.js.map +1 -1
  1297. package/components/Kebab/Kebab.d.ts +7 -6
  1298. package/components/Kebab/Kebab.md +32 -32
  1299. package/components/Kebab/Kebab.styles/Kebab.styles.js.map +1 -1
  1300. package/components/Kebab/Kebab.styles.d.ts +1 -1
  1301. package/components/Kebab/__docs__/Kebab.mdx +8 -9
  1302. package/components/Link/Link/Link.js.map +1 -1
  1303. package/components/Link/Link.d.ts +4 -4
  1304. package/components/Link/Link.styles/Link.styles.js.map +1 -1
  1305. package/components/Link/Link.styles.d.ts +1 -1
  1306. package/components/Link/LinkIcon/LinkIcon.js.map +1 -1
  1307. package/components/Link/LinkIcon.d.ts +1 -1
  1308. package/components/Link/__docs__/Link.mdx +8 -9
  1309. package/components/Loader/Loader/Loader.js.map +1 -1
  1310. package/components/Loader/Loader.d.ts +3 -3
  1311. package/components/Loader/Loader.styles/Loader.styles.js.map +1 -1
  1312. package/components/Loader/Loader.styles.d.ts +1 -1
  1313. package/components/Loader/__docs__/Loader.mdx +4 -7
  1314. package/components/Loader/__stories__/LoaderAndButton/LoaderAndButton.js.map +1 -1
  1315. package/components/MaskedInput/ColorableInputElement/ColorableInputElement/ColorableInputElement.js +1 -0
  1316. package/components/MaskedInput/ColorableInputElement/ColorableInputElement/ColorableInputElement.js.map +1 -1
  1317. package/components/MaskedInput/ColorableInputElement/ColorableInputElement.d.ts +1 -1
  1318. package/components/MaskedInput/FixedIMaskInput/FixedIMaskInput.js +1 -1
  1319. package/components/MaskedInput/FixedIMaskInput/FixedIMaskInput.js.map +1 -1
  1320. package/components/MaskedInput/FixedIMaskInput.d.ts +2 -2
  1321. package/components/MaskedInput/MaskedInput/MaskedInput.js +9 -4
  1322. package/components/MaskedInput/MaskedInput/MaskedInput.js.map +1 -1
  1323. package/components/MaskedInput/MaskedInput.d.ts +3 -2
  1324. package/components/MaskedInput/MaskedInput.helpers/MaskedInput.helpers.js.map +1 -1
  1325. package/components/MaskedInput/MaskedInput.helpers.d.ts +1 -1
  1326. package/components/MaskedInput/MaskedInput.styles/MaskedInput.styles.js +9 -1
  1327. package/components/MaskedInput/MaskedInput.styles/MaskedInput.styles.js.map +1 -1
  1328. package/components/MaskedInput/MaskedInput.styles.d.ts +4 -0
  1329. package/components/MaskedInput/__docs__/MaskedInput.mdx +8 -9
  1330. package/components/MenuFooter/MenuFooter/MenuFooter.js.map +1 -1
  1331. package/components/MenuFooter/MenuFooter.d.ts +4 -3
  1332. package/components/MenuFooter/MenuFooter.styles/MenuFooter.styles.js.map +1 -1
  1333. package/components/MenuFooter/MenuFooter.styles.d.ts +1 -1
  1334. package/components/MenuFooter/__docs__/MenuFooter.mdx +4 -5
  1335. package/components/MenuHeader/MenuHeader/MenuHeader.js.map +1 -1
  1336. package/components/MenuHeader/MenuHeader.d.ts +4 -3
  1337. package/components/MenuHeader/MenuHeader.styles/MenuHeader.styles.js.map +1 -1
  1338. package/components/MenuHeader/MenuHeader.styles.d.ts +1 -1
  1339. package/components/MenuHeader/__docs__/MenuHeader.mdx +4 -5
  1340. package/components/MenuItem/MenuItem/MenuItem.js.map +1 -1
  1341. package/components/MenuItem/MenuItem.d.ts +5 -4
  1342. package/components/MenuItem/MenuItem.md +6 -6
  1343. package/components/MenuItem/MenuItem.styles/MenuItem.styles.js.map +1 -1
  1344. package/components/MenuItem/MenuItem.styles.d.ts +1 -1
  1345. package/components/MenuItem/__docs__/MenuItem.mdx +4 -5
  1346. package/components/MenuSeparator/MenuSeparator/MenuSeparator.js.map +1 -1
  1347. package/components/MenuSeparator/MenuSeparator.d.ts +1 -1
  1348. package/components/MenuSeparator/MenuSeparator.styles/MenuSeparator.styles.js.map +1 -1
  1349. package/components/MenuSeparator/MenuSeparator.styles.d.ts +1 -1
  1350. package/components/MenuSeparator/__docs__/MenuSeparator.mdx +4 -5
  1351. package/components/MiniModal/MiniModal/MiniModal.js.map +1 -1
  1352. package/components/MiniModal/MiniModal.d.ts +2 -1
  1353. package/components/MiniModal/MiniModal.styles/MiniModal.styles.js.map +1 -1
  1354. package/components/MiniModal/MiniModal.styles.d.ts +1 -1
  1355. package/components/MiniModal/MiniModalBody/MiniModalBody.js.map +1 -1
  1356. package/components/MiniModal/MiniModalBody.d.ts +1 -1
  1357. package/components/MiniModal/MiniModalFooter/MiniModalFooter.js.map +1 -1
  1358. package/components/MiniModal/MiniModalFooter.d.ts +1 -1
  1359. package/components/MiniModal/MiniModalHeader/MiniModalHeader.js.map +1 -1
  1360. package/components/MiniModal/MiniModalHeader.d.ts +2 -2
  1361. package/components/MiniModal/__docs__/MiniModal.mdx +8 -9
  1362. package/components/MiniModal/getMiniModalTheme/getMiniModalTheme.js.map +1 -1
  1363. package/components/MiniModal/getMiniModalTheme.d.ts +1 -1
  1364. package/components/Modal/Modal/Modal.js.map +1 -1
  1365. package/components/Modal/Modal.d.ts +4 -3
  1366. package/components/Modal/Modal.styles/Modal.styles.js.map +1 -1
  1367. package/components/Modal/Modal.styles.d.ts +1 -1
  1368. package/components/Modal/ModalBody/ModalBody.js.map +1 -1
  1369. package/components/Modal/ModalBody.d.ts +1 -1
  1370. package/components/Modal/ModalClose/ModalClose.js.map +1 -1
  1371. package/components/Modal/ModalClose.d.ts +1 -1
  1372. package/components/Modal/ModalContext/ModalContext.js.map +1 -1
  1373. package/components/Modal/ModalContext.d.ts +1 -1
  1374. package/components/Modal/ModalFooter/ModalFooter.js.map +1 -1
  1375. package/components/Modal/ModalFooter.d.ts +4 -3
  1376. package/components/Modal/ModalHeader/ModalHeader.js.map +1 -1
  1377. package/components/Modal/ModalHeader.d.ts +3 -2
  1378. package/components/Modal/ModalSeparator/ModalSeparator.js.map +1 -1
  1379. package/components/Modal/ModalSeparator.d.ts +1 -1
  1380. package/components/Modal/__docs__/Modal.mdx +8 -9
  1381. package/components/Modal/getModalBodyTheme/getModalBodyTheme.js.map +1 -1
  1382. package/components/Modal/getModalBodyTheme.d.ts +1 -1
  1383. package/components/Modal/getModalTheme/getModalTheme.js.map +1 -1
  1384. package/components/Modal/getModalTheme.d.ts +1 -1
  1385. package/components/Modal/locale/index/index.js.map +1 -1
  1386. package/components/Modal/locale/index.d.ts +1 -1
  1387. package/components/Modal/locale/locales/en/en.js.map +1 -1
  1388. package/components/Modal/locale/locales/en.d.ts +1 -1
  1389. package/components/Modal/locale/locales/ru/ru.js.map +1 -1
  1390. package/components/Modal/locale/locales/ru.d.ts +1 -1
  1391. package/components/Paging/NavigationHelper/NavigationHelper.js.map +1 -1
  1392. package/components/Paging/NavigationHelper.d.ts +1 -1
  1393. package/components/Paging/Paging/Paging.js.map +1 -1
  1394. package/components/Paging/Paging.d.ts +2 -2
  1395. package/components/Paging/Paging.styles/Paging.styles.js.map +1 -1
  1396. package/components/Paging/Paging.styles.d.ts +1 -1
  1397. package/components/Paging/PagingDefaultComponent/PagingDefaultComponent.js.map +1 -1
  1398. package/components/Paging/PagingDefaultComponent.d.ts +1 -1
  1399. package/components/Paging/PagingHelper/PagingHelper.js.map +1 -1
  1400. package/components/Paging/PagingHelper.d.ts +1 -1
  1401. package/components/Paging/__docs__/Paging.mdx +8 -9
  1402. package/components/Paging/locale/index/index.js.map +1 -1
  1403. package/components/Paging/locale/index.d.ts +1 -1
  1404. package/components/Paging/locale/locales/en/en.js.map +1 -1
  1405. package/components/Paging/locale/locales/en.d.ts +1 -1
  1406. package/components/Paging/locale/locales/ru/ru.js.map +1 -1
  1407. package/components/Paging/locale/locales/ru.d.ts +1 -1
  1408. package/components/PasswordInput/PasswordInput/PasswordInput.js.map +1 -1
  1409. package/components/PasswordInput/PasswordInput.d.ts +4 -3
  1410. package/components/PasswordInput/PasswordInput.styles/PasswordInput.styles.js.map +1 -1
  1411. package/components/PasswordInput/PasswordInput.styles.d.ts +1 -1
  1412. package/components/PasswordInput/PasswordInputIcon/PasswordInputIcon.js.map +1 -1
  1413. package/components/PasswordInput/PasswordInputIcon.d.ts +1 -1
  1414. package/components/PasswordInput/__docs__/PasswordInput.mdx +8 -9
  1415. package/components/PasswordInput/locale/index/index.js.map +1 -1
  1416. package/components/PasswordInput/locale/index.d.ts +1 -1
  1417. package/components/PasswordInput/locale/locales/en/en.js.map +1 -1
  1418. package/components/PasswordInput/locale/locales/en.d.ts +1 -1
  1419. package/components/PasswordInput/locale/locales/ru/ru.js.map +1 -1
  1420. package/components/PasswordInput/locale/locales/ru.d.ts +1 -1
  1421. package/components/Radio/Radio/Radio.js.map +1 -1
  1422. package/components/Radio/Radio.d.ts +6 -5
  1423. package/components/Radio/Radio.styles/Radio.styles.js.map +1 -1
  1424. package/components/Radio/Radio.styles.d.ts +1 -1
  1425. package/components/Radio/__docs__/Radio.mdx +8 -9
  1426. package/components/RadioGroup/RadioGroup/RadioGroup.js.map +1 -1
  1427. package/components/RadioGroup/RadioGroup.d.ts +3 -2
  1428. package/components/RadioGroup/__docs__/RadioGroup.mdx +8 -9
  1429. package/components/ResponsiveLayout/ResponsiveLayout/ResponsiveLayout.js.map +1 -1
  1430. package/components/ResponsiveLayout/ResponsiveLayout.d.ts +1 -1
  1431. package/components/ResponsiveLayout/__docs__/ResponsiveLayout.mdx +4 -5
  1432. package/components/ResponsiveLayout/decorator/decorator.js.map +1 -1
  1433. package/components/ResponsiveLayout/decorator.d.ts +1 -1
  1434. package/components/ResponsiveLayout/useResponsiveLayout/useResponsiveLayout.js.map +1 -1
  1435. package/components/ResponsiveLayout/useResponsiveLayout.d.ts +1 -1
  1436. package/components/ScrollContainer/ScrollBar/ScrollBar.js.map +1 -1
  1437. package/components/ScrollContainer/ScrollBar.d.ts +2 -2
  1438. package/components/ScrollContainer/ScrollContainer/ScrollContainer.js.map +1 -1
  1439. package/components/ScrollContainer/ScrollContainer.constants/ScrollContainer.constants.js.map +1 -1
  1440. package/components/ScrollContainer/ScrollContainer.constants.d.ts +1 -1
  1441. package/components/ScrollContainer/ScrollContainer.d.ts +3 -3
  1442. package/components/ScrollContainer/ScrollContainer.helpers/ScrollContainer.helpers.js.map +1 -1
  1443. package/components/ScrollContainer/ScrollContainer.helpers.d.ts +2 -2
  1444. package/components/ScrollContainer/ScrollContainer.styles/ScrollContainer.styles.js.map +1 -1
  1445. package/components/ScrollContainer/ScrollContainer.styles.d.ts +1 -1
  1446. package/components/ScrollContainer/__docs__/ScrollContainer.mdx +4 -5
  1447. package/components/Select/Select/Select.js.map +1 -1
  1448. package/components/Select/Select.d.ts +7 -6
  1449. package/components/Select/Select.md +3 -3
  1450. package/components/Select/Select.styles/Select.styles.js.map +1 -1
  1451. package/components/Select/Select.styles.d.ts +1 -1
  1452. package/components/Select/__docs__/Select.mdx +8 -9
  1453. package/components/Select/locale/index/index.js.map +1 -1
  1454. package/components/Select/locale/index.d.ts +1 -1
  1455. package/components/Select/locale/locales/en/en.js.map +1 -1
  1456. package/components/Select/locale/locales/en.d.ts +1 -1
  1457. package/components/Select/locale/locales/ru/ru.js.map +1 -1
  1458. package/components/Select/locale/locales/ru.d.ts +1 -1
  1459. package/components/Select/locale/types/types.js.map +1 -1
  1460. package/components/Select/locale/types.d.ts +1 -1
  1461. package/components/Select/selectTheme/selectTheme.js.map +1 -1
  1462. package/components/Select/selectTheme.d.ts +2 -2
  1463. package/components/SidePage/SidePage/SidePage.js.map +1 -1
  1464. package/components/SidePage/SidePage.d.ts +3 -2
  1465. package/components/SidePage/SidePage.styles/SidePage.styles.js.map +1 -1
  1466. package/components/SidePage/SidePage.styles.d.ts +1 -1
  1467. package/components/SidePage/SidePageBody/SidePageBody.js.map +1 -1
  1468. package/components/SidePage/SidePageBody.d.ts +2 -2
  1469. package/components/SidePage/SidePageCloseButton/SidePageCloseButton.js.map +1 -1
  1470. package/components/SidePage/SidePageCloseButton.d.ts +1 -1
  1471. package/components/SidePage/SidePageContainer/SidePageContainer.js.map +1 -1
  1472. package/components/SidePage/SidePageContainer.d.ts +1 -1
  1473. package/components/SidePage/SidePageContext/SidePageContext.js.map +1 -1
  1474. package/components/SidePage/SidePageContext.d.ts +2 -2
  1475. package/components/SidePage/SidePageFooter/SidePageFooter.js.map +1 -1
  1476. package/components/SidePage/SidePageFooter.d.ts +3 -3
  1477. package/components/SidePage/SidePageHeader/SidePageHeader.js.map +1 -1
  1478. package/components/SidePage/SidePageHeader.d.ts +2 -2
  1479. package/components/SidePage/__docs__/SidePage.mdx +8 -9
  1480. package/components/SidePage/__docs__/SidePageBody.mdx +1 -0
  1481. package/components/SidePage/locale/index/index.js.map +1 -1
  1482. package/components/SidePage/locale/index.d.ts +1 -1
  1483. package/components/SidePage/locale/locales/en/en.js.map +1 -1
  1484. package/components/SidePage/locale/locales/en.d.ts +1 -1
  1485. package/components/SidePage/locale/locales/ru/ru.js.map +1 -1
  1486. package/components/SidePage/locale/locales/ru.d.ts +1 -1
  1487. package/components/SingleToast/SingleToast/SingleToast.js.map +1 -1
  1488. package/components/SingleToast/SingleToast.d.ts +4 -3
  1489. package/components/SingleToast/__docs__/SingleToast.mdx +8 -9
  1490. package/components/Spinner/Spinner/Spinner.js.map +1 -1
  1491. package/components/Spinner/Spinner.d.ts +1 -1
  1492. package/components/Spinner/Spinner.styles/Spinner.styles.js.map +1 -1
  1493. package/components/Spinner/Spinner.styles.d.ts +1 -1
  1494. package/components/Spinner/__docs__/Spinner.mdx +8 -9
  1495. package/components/Sticky/Sticky/Sticky.js.map +1 -1
  1496. package/components/Sticky/Sticky.d.ts +2 -2
  1497. package/components/Sticky/__docs__/Sticky.mdx +4 -5
  1498. package/components/Switcher/Switcher/Switcher.js.map +1 -1
  1499. package/components/Switcher/Switcher.d.ts +6 -5
  1500. package/components/Switcher/Switcher.styles/Switcher.styles.js.map +1 -1
  1501. package/components/Switcher/Switcher.styles.d.ts +1 -1
  1502. package/components/Switcher/__docs__/Switcher.mdx +8 -9
  1503. package/components/Switcher/switcherTheme/switcherTheme.js.map +1 -1
  1504. package/components/Switcher/switcherTheme.d.ts +1 -1
  1505. package/components/Tabs/Indicator/Indicator.js.map +1 -1
  1506. package/components/Tabs/Indicator.d.ts +1 -1
  1507. package/components/Tabs/Indicator.styles/Indicator.styles.js.map +1 -1
  1508. package/components/Tabs/Indicator.styles.d.ts +1 -1
  1509. package/components/Tabs/Tab/Tab.js.map +1 -1
  1510. package/components/Tabs/Tab.d.ts +5 -4
  1511. package/components/Tabs/Tab.styles/Tab.styles.js.map +1 -1
  1512. package/components/Tabs/Tab.styles.d.ts +1 -1
  1513. package/components/Tabs/Tabs/Tabs.js.map +1 -1
  1514. package/components/Tabs/Tabs.d.ts +4 -3
  1515. package/components/Tabs/Tabs.styles/Tabs.styles.js.map +1 -1
  1516. package/components/Tabs/Tabs.styles.d.ts +1 -1
  1517. package/components/Tabs/TabsContext/TabsContext.js.map +1 -1
  1518. package/components/Tabs/TabsContext.d.ts +2 -2
  1519. package/components/Tabs/__docs__/Tab.mdx +8 -9
  1520. package/components/Tabs/__docs__/Tabs.mdx +8 -9
  1521. package/components/Tabs/helpers/helpers.js.map +1 -1
  1522. package/components/Tabs/helpers.d.ts +2 -2
  1523. package/components/Textarea/Textarea/Textarea.js.map +1 -1
  1524. package/components/Textarea/Textarea.d.ts +5 -4
  1525. package/components/Textarea/Textarea.styles/Textarea.styles.js.map +1 -1
  1526. package/components/Textarea/Textarea.styles.d.ts +1 -1
  1527. package/components/Textarea/TextareaCounter/TextareaCounter.js.map +1 -1
  1528. package/components/Textarea/TextareaCounter.d.ts +2 -2
  1529. package/components/Textarea/__docs__/Textarea.mdx +8 -9
  1530. package/components/Toast/Toast/Toast.js +6 -8
  1531. package/components/Toast/Toast/Toast.js.map +1 -1
  1532. package/components/Toast/Toast.d.ts +9 -6
  1533. package/components/Toast/ToastStatic/ToastStatic.js.map +1 -1
  1534. package/components/Toast/ToastStatic.d.ts +2 -2
  1535. package/components/Toast/ToastView/ToastView.js.map +1 -1
  1536. package/components/Toast/ToastView.d.ts +5 -4
  1537. package/components/Toast/ToastView.styles/ToastView.styles.js.map +1 -1
  1538. package/components/Toast/ToastView.styles.d.ts +1 -1
  1539. package/components/Toast/__docs__/Toast.mdx +8 -9
  1540. package/components/Toast/locale/index/index.js.map +1 -1
  1541. package/components/Toast/locale/index.d.ts +1 -1
  1542. package/components/Toast/locale/locales/en/en.js.map +1 -1
  1543. package/components/Toast/locale/locales/en.d.ts +1 -1
  1544. package/components/Toast/locale/locales/ru/ru.js.map +1 -1
  1545. package/components/Toast/locale/locales/ru.d.ts +1 -1
  1546. package/components/Toggle/Toggle/Toggle.js.map +1 -1
  1547. package/components/Toggle/Toggle.d.ts +4 -3
  1548. package/components/Toggle/Toggle.styles/Toggle.styles.js.map +1 -1
  1549. package/components/Toggle/Toggle.styles.d.ts +1 -1
  1550. package/components/Toggle/__creevey__/Toggle.creevey.mts +6 -4
  1551. package/components/Toggle/__docs__/Toggle.mdx +8 -9
  1552. package/components/Token/Token/Token.js.map +1 -1
  1553. package/components/Token/Token.d.ts +4 -3
  1554. package/components/Token/Token.md +0 -83
  1555. package/components/Token/Token.styles/Token.styles.js.map +1 -1
  1556. package/components/Token/Token.styles.d.ts +1 -1
  1557. package/components/Token/TokenView/TokenView.js.map +1 -1
  1558. package/components/Token/TokenView.d.ts +3 -2
  1559. package/components/Token/__docs__/Token.mdx +8 -9
  1560. package/components/Token/locale/index/index.js.map +1 -1
  1561. package/components/Token/locale/index.d.ts +1 -1
  1562. package/components/Token/locale/locales/en/en.js.map +1 -1
  1563. package/components/Token/locale/locales/en.d.ts +1 -1
  1564. package/components/Token/locale/locales/ru/ru.js.map +1 -1
  1565. package/components/Token/locale/locales/ru.d.ts +1 -1
  1566. package/components/TokenInput/TextWidthHelper/TextWidthHelper.js.map +1 -1
  1567. package/components/TokenInput/TextWidthHelper.d.ts +2 -2
  1568. package/components/TokenInput/TokenInput/TokenInput.js +2 -1
  1569. package/components/TokenInput/TokenInput/TokenInput.js.map +1 -1
  1570. package/components/TokenInput/TokenInput.d.ts +7 -6
  1571. package/components/TokenInput/TokenInput.md +2 -33
  1572. package/components/TokenInput/TokenInput.styles/TokenInput.styles.js.map +1 -1
  1573. package/components/TokenInput/TokenInput.styles.d.ts +1 -1
  1574. package/components/TokenInput/TokenInputMenu/TokenInputMenu.js +16 -6
  1575. package/components/TokenInput/TokenInputMenu/TokenInputMenu.js.map +1 -1
  1576. package/components/TokenInput/TokenInputMenu.d.ts +17 -8
  1577. package/components/TokenInput/TokenInputReducer/TokenInputReducer.js.map +1 -1
  1578. package/components/TokenInput/TokenInputReducer.d.ts +1 -1
  1579. package/components/TokenInput/__creevey__/TokenInput.creevey.mts +28 -0
  1580. package/components/TokenInput/__docs__/TokenInput.mdx +8 -9
  1581. package/components/TokenInput/locale/index/index.js.map +1 -1
  1582. package/components/TokenInput/locale/index.d.ts +1 -1
  1583. package/components/TokenInput/locale/locales/en/en.js.map +1 -1
  1584. package/components/TokenInput/locale/locales/en.d.ts +1 -1
  1585. package/components/TokenInput/locale/locales/ru/ru.js.map +1 -1
  1586. package/components/TokenInput/locale/locales/ru.d.ts +1 -1
  1587. package/components/Tooltip/Tooltip/Tooltip.js.map +1 -1
  1588. package/components/Tooltip/Tooltip.d.ts +5 -5
  1589. package/components/Tooltip/Tooltip.md +8 -8
  1590. package/components/Tooltip/Tooltip.styles/Tooltip.styles.js.map +1 -1
  1591. package/components/Tooltip/Tooltip.styles.d.ts +1 -1
  1592. package/components/Tooltip/__docs__/Tooltip.mdx +8 -9
  1593. package/components/TooltipMenu/TooltipMenu/TooltipMenu.js.map +1 -1
  1594. package/components/TooltipMenu/TooltipMenu.d.ts +7 -6
  1595. package/components/TooltipMenu/TooltipMenu.md +12 -12
  1596. package/components/TooltipMenu/__docs__/TooltipMenu.mdx +4 -5
  1597. package/hooks/useDrop/useDrop.js.map +1 -1
  1598. package/hooks/useDrop.d.ts +1 -1
  1599. package/hooks/useEffectWithoutInitCall/useEffectWithoutInitCall.js.map +1 -1
  1600. package/hooks/useEffectWithoutInitCall.d.ts +1 -1
  1601. package/hooks/useMemoObject/useMemoObject.js.map +1 -1
  1602. package/hooks/useMemoObject.d.ts +1 -1
  1603. package/internal/ClearCrossIcon/ClearCrossIcon/ClearCrossIcon.js.map +1 -1
  1604. package/internal/ClearCrossIcon/ClearCrossIcon.d.ts +4 -3
  1605. package/internal/ClearCrossIcon/ClearCrossIcon.styles/ClearCrossIcon.styles.js.map +1 -1
  1606. package/internal/ClearCrossIcon/ClearCrossIcon.styles.d.ts +1 -1
  1607. package/internal/CloseButtonIcon/CloseButtonIcon/CloseButtonIcon.js.map +1 -1
  1608. package/internal/CloseButtonIcon/CloseButtonIcon.d.ts +3 -2
  1609. package/internal/CloseButtonIcon/CloseButtonIcon.styles/CloseButtonIcon.styles.js.map +1 -1
  1610. package/internal/CloseButtonIcon/CloseButtonIcon.styles.d.ts +1 -1
  1611. package/internal/CommonWrapper/CommonWrapper/CommonWrapper.js.map +1 -1
  1612. package/internal/CommonWrapper/types/types.js.map +1 -1
  1613. package/internal/CommonWrapper/types.d.ts +1 -1
  1614. package/internal/CommonWrapper/utils/getCommonVisualStateDataAttributes/getCommonVisualStateDataAttributes.js.map +1 -1
  1615. package/internal/CommonWrapper/utils/getCommonVisualStateDataAttributes.d.ts +1 -1
  1616. package/internal/CommonWrapper/utils/getVisualStateDataAttributes/getVisualStateDataAttributes.js.map +1 -1
  1617. package/internal/CommonWrapper/utils/getVisualStateDataAttributes.d.ts +1 -1
  1618. package/internal/ComponentCombinator/ComponentCombinator.js.map +1 -1
  1619. package/internal/ComponentCombinator.d.ts +2 -2
  1620. package/internal/ComponentTable/ComponentTable.js.map +1 -1
  1621. package/internal/ComponentTable.d.ts +1 -1
  1622. package/internal/CustomComboBox/ComboBoxMenu/ComboBoxMenu.js.map +1 -1
  1623. package/internal/CustomComboBox/ComboBoxMenu.d.ts +4 -4
  1624. package/internal/CustomComboBox/ComboBoxView/ComboBoxView.js +2 -0
  1625. package/internal/CustomComboBox/ComboBoxView/ComboBoxView.js.map +1 -1
  1626. package/internal/CustomComboBox/ComboBoxView.d.ts +10 -8
  1627. package/internal/CustomComboBox/CustomComboBox/CustomComboBox.js.map +1 -1
  1628. package/internal/CustomComboBox/CustomComboBox.d.ts +10 -9
  1629. package/internal/CustomComboBox/CustomComboBoxReducer/CustomComboBoxReducer.js +9 -5
  1630. package/internal/CustomComboBox/CustomComboBoxReducer/CustomComboBoxReducer.js.map +1 -1
  1631. package/internal/CustomComboBox/CustomComboBoxReducer.d.ts +4 -4
  1632. package/internal/CustomComboBox/getComboBoxTheme/getComboBoxTheme.js.map +1 -1
  1633. package/internal/CustomComboBox/getComboBoxTheme.d.ts +1 -1
  1634. package/internal/CustomComboBox/locale/index/index.js.map +1 -1
  1635. package/internal/CustomComboBox/locale/index.d.ts +1 -1
  1636. package/internal/CustomComboBox/locale/locales/en/en.js.map +1 -1
  1637. package/internal/CustomComboBox/locale/locales/en.d.ts +1 -1
  1638. package/internal/CustomComboBox/locale/locales/ru/ru.js.map +1 -1
  1639. package/internal/CustomComboBox/locale/locales/ru.d.ts +1 -1
  1640. package/internal/DateSelect/DateSelect/DateSelect.js.map +1 -1
  1641. package/internal/DateSelect/DateSelect.styles/DateSelect.styles.js.map +1 -1
  1642. package/internal/DateSelect/DateSelect.styles.d.ts +1 -1
  1643. package/internal/DateSelect/locale/index/index.js.map +1 -1
  1644. package/internal/DateSelect/locale/index.d.ts +1 -1
  1645. package/internal/DateSelect/locale/locales/en/en.js.map +1 -1
  1646. package/internal/DateSelect/locale/locales/en.d.ts +1 -1
  1647. package/internal/DateSelect/locale/locales/ru/ru.js.map +1 -1
  1648. package/internal/DateSelect/locale/locales/ru.d.ts +1 -1
  1649. package/internal/FileUploaderControl/FileUploaderControlContext/FileUploaderControlContext.js.map +1 -1
  1650. package/internal/FileUploaderControl/FileUploaderControlContext.d.ts +2 -2
  1651. package/internal/FileUploaderControl/FileUploaderControlProvider/FileUploaderControlProvider.js.map +1 -1
  1652. package/internal/FileUploaderControl/FileUploaderControlProvider.d.ts +4 -3
  1653. package/internal/FileUploaderControl/FileUploaderFile/FileUploaderFile/FileUploaderFile.js.map +1 -1
  1654. package/internal/FileUploaderControl/FileUploaderFile/FileUploaderFile.d.ts +2 -2
  1655. package/internal/FileUploaderControl/FileUploaderFile/FileUploaderFile.styles/FileUploaderFile.styles.js.map +1 -1
  1656. package/internal/FileUploaderControl/FileUploaderFile/FileUploaderFile.styles.d.ts +1 -1
  1657. package/internal/FileUploaderControl/FileUploaderFile/FileUploaderFileStatusIcon/FileUploaderFileStatusIcon.js.map +1 -1
  1658. package/internal/FileUploaderControl/FileUploaderFile/FileUploaderFileStatusIcon.d.ts +1 -1
  1659. package/internal/FileUploaderControl/FileUploaderFileList/FileUploaderFileList/FileUploaderFileList.js.map +1 -1
  1660. package/internal/FileUploaderControl/FileUploaderFileList/FileUploaderFileList.d.ts +2 -2
  1661. package/internal/FileUploaderControl/FileUploaderFileList/FileUploaderFileList.styles/FileUploaderFileList.styles.js.map +1 -1
  1662. package/internal/FileUploaderControl/FileUploaderFileList/FileUploaderFileList.styles.d.ts +1 -1
  1663. package/internal/FileUploaderControl/hooks/useFileUploaderSize/useFileUploaderSize.js.map +1 -1
  1664. package/internal/FileUploaderControl/hooks/useFileUploaderSize.d.ts +1 -1
  1665. package/internal/FileUploaderControl/hooks/useUpload/useUpload.js.map +1 -1
  1666. package/internal/FileUploaderControl/hooks/useUpload.d.ts +2 -2
  1667. package/internal/FileUploaderControl/withFileUploaderControlProvider/withFileUploaderControlProvider.js.map +1 -1
  1668. package/internal/FileUploaderControl/withFileUploaderControlProvider.d.ts +4 -3
  1669. package/internal/FocusControlWrapper/FocusControlWrapper/FocusControlWrapper.js.map +1 -1
  1670. package/internal/FocusControlWrapper/FocusControlWrapper.d.ts +2 -1
  1671. package/internal/FocusControlWrapper/useFocusControl/useFocusControl.js.map +1 -1
  1672. package/internal/FocusControlWrapper/useFocusControl.d.ts +1 -1
  1673. package/internal/FocusTrap/FocusTrap/FocusTrap.js.map +1 -1
  1674. package/internal/FocusTrap/FocusTrap.d.ts +1 -1
  1675. package/internal/IgnoreLayerClick/IgnoreLayerClick/IgnoreLayerClick.js.map +1 -1
  1676. package/internal/InputLikeText/InputLikeText/InputLikeText.js.map +1 -1
  1677. package/internal/InputLikeText/InputLikeText.d.ts +3 -3
  1678. package/internal/InternalMaskedInput/InternalMaskedInput/InternalMaskedInput.js.map +1 -1
  1679. package/internal/InternalMaskedInput/InternalMaskedInput.styles/InternalMaskedInput.styles.js.map +1 -1
  1680. package/internal/InternalMaskedInput/InternalMaskedInput.styles.d.ts +1 -1
  1681. package/internal/Menu/Menu/Menu.js.map +1 -1
  1682. package/internal/Menu/Menu.d.ts +4 -3
  1683. package/internal/Menu/Menu.styles/Menu.styles.js.map +1 -1
  1684. package/internal/Menu/Menu.styles.d.ts +1 -1
  1685. package/internal/Menu/MenuContext/MenuContext.js.map +1 -1
  1686. package/internal/Menu/MenuContext.d.ts +2 -2
  1687. package/internal/Menu/MenuNavigation/MenuNavigation.js.map +1 -1
  1688. package/internal/Menu/MenuNavigation.d.ts +2 -1
  1689. package/internal/Menu/isActiveElement/isActiveElement.js.map +1 -1
  1690. package/internal/Menu/isActiveElement.d.ts +2 -2
  1691. package/internal/MenuMessage/MenuMessage/MenuMessage.js.map +1 -1
  1692. package/internal/MenuMessage/MenuMessage.d.ts +2 -2
  1693. package/internal/MenuMessage/MenuMessage.styles/MenuMessage.styles.js.map +1 -1
  1694. package/internal/MenuMessage/MenuMessage.styles.d.ts +1 -1
  1695. package/internal/MobilePopup/MobilePopup/MobilePopup.js.map +1 -1
  1696. package/internal/MobilePopup/MobilePopup.d.ts +2 -1
  1697. package/internal/MobilePopup/MobilePopup.styles/MobilePopup.styles.js.map +1 -1
  1698. package/internal/MobilePopup/MobilePopup.styles.d.ts +1 -1
  1699. package/internal/MobilePopup/MobilePopupFooter/MobilePopupFooter/MobilePopupFooter.js.map +1 -1
  1700. package/internal/MobilePopup/MobilePopupFooter/MobilePopupFooter.styles/MobilePopupFooter.styles.js.map +1 -1
  1701. package/internal/MobilePopup/MobilePopupFooter/MobilePopupFooter.styles.d.ts +1 -1
  1702. package/internal/MobilePopup/MobilePopupHeader/MobilePopupHeader/MobilePopupHeader.js.map +1 -1
  1703. package/internal/MobilePopup/MobilePopupHeader/MobilePopupHeader.styles/MobilePopupHeader.styles.js.map +1 -1
  1704. package/internal/MobilePopup/MobilePopupHeader/MobilePopupHeader.styles.d.ts +1 -1
  1705. package/internal/NativeDateInput/NativeDateInput/NativeDateInput.js.map +1 -1
  1706. package/internal/NativeDateInput/NativeDateInput.d.ts +1 -1
  1707. package/internal/NativeDateInput/utils/utils.js.map +1 -1
  1708. package/internal/NativeDateInput/utils.d.ts +2 -2
  1709. package/internal/PerformanceMetrics/PerformanceMetrics/PerformanceMetrics.js.map +1 -1
  1710. package/internal/Popup/Popup/Popup.js +9 -5
  1711. package/internal/Popup/Popup/Popup.js.map +1 -1
  1712. package/internal/Popup/Popup.d.ts +9 -7
  1713. package/internal/Popup/Popup.styles/Popup.styles.js.map +1 -1
  1714. package/internal/Popup/Popup.styles.d.ts +1 -1
  1715. package/internal/Popup/PopupHelper/PopupHelper.js.map +1 -1
  1716. package/internal/Popup/PopupHelper.d.ts +1 -1
  1717. package/internal/Popup/PopupPin/PopupPin.js.map +1 -1
  1718. package/internal/Popup/PopupPin.d.ts +1 -1
  1719. package/internal/Popup/types/types.js.map +1 -1
  1720. package/internal/Popup/types.d.ts +1 -1
  1721. package/internal/PopupMenu/PopupMenu/PopupMenu.js.map +1 -1
  1722. package/internal/PopupMenu/PopupMenu.d.ts +6 -5
  1723. package/internal/PopupMenu/validatePositions/validatePositions.js.map +1 -1
  1724. package/internal/PopupMenu/validatePositions.d.ts +1 -1
  1725. package/internal/RenderContainer/RenderContainer/RenderContainer.js.map +1 -1
  1726. package/internal/RenderContainer/RenderContainer.d.ts +1 -1
  1727. package/internal/RenderContainer/RenderContainerTypes/RenderContainerTypes.js.map +1 -1
  1728. package/internal/RenderContainer/RenderContainerTypes.d.ts +3 -3
  1729. package/internal/RenderContainer/RenderInnerContainer/RenderInnerContainer.js.map +1 -1
  1730. package/internal/RenderContainer/RenderInnerContainer.d.ts +2 -2
  1731. package/internal/RenderLayer/RenderLayer/RenderLayer.js.map +1 -1
  1732. package/internal/RenderLayer/RenderLayer.d.ts +2 -2
  1733. package/internal/ThemePlayground/AnotherInputsPlayground/AnotherInputsPlayground.js.map +1 -1
  1734. package/internal/ThemePlayground/AnotherInputsPlayground.d.ts +2 -2
  1735. package/internal/ThemePlayground/CheckboxPlayground/CheckboxPlayground.js.map +1 -1
  1736. package/internal/ThemePlayground/ComponentsGroup/ComponentsGroup.js.map +1 -1
  1737. package/internal/ThemePlayground/ComponentsGroup.d.ts +1 -1
  1738. package/internal/ThemePlayground/CurrencyInputPlayground/CurrencyInputPlayground.js.map +1 -1
  1739. package/internal/ThemePlayground/CurrencyInputPlayground.d.ts +2 -2
  1740. package/internal/ThemePlayground/Playground/Playground.js +13 -13
  1741. package/internal/ThemePlayground/Playground/Playground.js.map +1 -1
  1742. package/internal/ThemePlayground/Playground.styles/Playground.styles.js.map +1 -1
  1743. package/internal/ThemePlayground/Playground.styles.d.ts +1 -1
  1744. package/internal/ThemePlayground/RadioPlayground/RadioPlayground.js.map +1 -1
  1745. package/internal/ThemePlayground/SelectPlayground/SelectPlayground.js.map +1 -1
  1746. package/internal/ThemePlayground/SelectPlayground.d.ts +1 -1
  1747. package/internal/ThemePlayground/SizesGroup/SizesGroup.js +4 -4
  1748. package/internal/ThemePlayground/SizesGroup/SizesGroup.js.map +1 -1
  1749. package/internal/ThemePlayground/SizesGroup.d.ts +1 -1
  1750. package/internal/ThemePlayground/SwitcherPlayground/SwitcherPlayground.js.map +1 -1
  1751. package/internal/ThemePlayground/SwitcherPlayground.d.ts +1 -1
  1752. package/internal/ThemePlayground/ThemeContextPlayground/ThemeContextPlayground.js.map +1 -1
  1753. package/internal/ThemePlayground/ThemeContextPlayground.d.ts +4 -3
  1754. package/internal/ThemePlayground/ThemeEditor/ThemeEditor.js.map +1 -1
  1755. package/internal/ThemePlayground/ThemeEditor.d.ts +2 -2
  1756. package/internal/ThemePlayground/UnlinkVarsPlayground/UnlinkVarsPlayground.js.map +1 -1
  1757. package/internal/ThemePlayground/VariableValue/VariableValue.js +4 -4
  1758. package/internal/ThemePlayground/VariableValue/VariableValue.js.map +1 -1
  1759. package/internal/ThemePlayground/VariableValue.d.ts +1 -1
  1760. package/internal/ThemePlayground/__creevey__/Theme5_0.stories.d.ts +1 -1
  1761. package/internal/ThemePlayground/constants/constants.js.map +1 -1
  1762. package/internal/ThemePlayground/constants.d.ts +1 -1
  1763. package/internal/ThemeShowcase/ThemeShowcase/ThemeShowcase.js.map +1 -1
  1764. package/internal/ThemeShowcase/ThemeShowcase.d.ts +1 -1
  1765. package/internal/ThemeShowcase/ThemeShowcase.styles/ThemeShowcase.styles.js.map +1 -1
  1766. package/internal/ThemeShowcase/ThemeShowcase.styles.d.ts +1 -1
  1767. package/internal/ThemeShowcase/VariablesCollector/VariablesCollector.js.map +1 -1
  1768. package/internal/ThemeShowcase/VariablesCollector.d.ts +2 -2
  1769. package/internal/ZIndex/ZIndex/ZIndex.js.map +1 -1
  1770. package/internal/ZIndex/ZIndex.d.ts +1 -1
  1771. package/internal/icons2022/ArrowALeftIcon/ArrowALeftIcon16Light/ArrowALeftIcon16Light.js.map +1 -1
  1772. package/internal/icons2022/ArrowALeftIcon/ArrowALeftIcon16Light.d.ts +1 -1
  1773. package/internal/icons2022/ArrowALeftIcon/ArrowALeftIcon20Light/ArrowALeftIcon20Light.js.map +1 -1
  1774. package/internal/icons2022/ArrowALeftIcon/ArrowALeftIcon20Light.d.ts +1 -1
  1775. package/internal/icons2022/ArrowALeftIcon/ArrowALeftIcon24Regular/ArrowALeftIcon24Regular.js.map +1 -1
  1776. package/internal/icons2022/ArrowALeftIcon/ArrowALeftIcon24Regular.d.ts +1 -1
  1777. package/internal/icons2022/ArrowARightIcon/ArrowARightIcon16Light/ArrowARightIcon16Light.js.map +1 -1
  1778. package/internal/icons2022/ArrowARightIcon/ArrowARightIcon16Light.d.ts +1 -1
  1779. package/internal/icons2022/ArrowARightIcon/ArrowARightIcon20Light/ArrowARightIcon20Light.js.map +1 -1
  1780. package/internal/icons2022/ArrowARightIcon/ArrowARightIcon20Light.d.ts +1 -1
  1781. package/internal/icons2022/ArrowARightIcon/ArrowARightIcon24Regular/ArrowARightIcon24Regular.js.map +1 -1
  1782. package/internal/icons2022/ArrowARightIcon/ArrowARightIcon24Regular.d.ts +1 -1
  1783. package/internal/icons2022/ArrowAUpIcon/ArrowAUp16Light/ArrowAUp16Light.js.map +1 -1
  1784. package/internal/icons2022/ArrowAUpIcon/ArrowAUp16Light.d.ts +1 -1
  1785. package/internal/icons2022/ArrowCDownIcon/ArrowCDownIcon16Regular/ArrowCDownIcon16Regular.js.map +1 -1
  1786. package/internal/icons2022/ArrowCDownIcon/ArrowCDownIcon16Regular.d.ts +1 -1
  1787. package/internal/icons2022/ArrowCDownIcon/ArrowCDownIcon20Regular/ArrowCDownIcon20Regular.js.map +1 -1
  1788. package/internal/icons2022/ArrowCDownIcon/ArrowCDownIcon20Regular.d.ts +1 -1
  1789. package/internal/icons2022/ArrowCDownIcon/ArrowCDownIcon24Regular/ArrowCDownIcon24Regular.js.map +1 -1
  1790. package/internal/icons2022/ArrowCDownIcon/ArrowCDownIcon24Regular.d.ts +1 -1
  1791. package/internal/icons2022/ArrowCRightIcon/ArrowCRightIcon16Light/ArrowCRightIcon16Light.js.map +1 -1
  1792. package/internal/icons2022/ArrowCRightIcon/ArrowCRightIcon16Light.d.ts +1 -1
  1793. package/internal/icons2022/ArrowCRightIcon/ArrowCRightIcon20Light/ArrowCRightIcon20Light.js.map +1 -1
  1794. package/internal/icons2022/ArrowCRightIcon/ArrowCRightIcon20Light.d.ts +1 -1
  1795. package/internal/icons2022/ArrowCRightIcon/ArrowCRightIcon24Regular/ArrowCRightIcon24Regular.js.map +1 -1
  1796. package/internal/icons2022/ArrowCRightIcon/ArrowCRightIcon24Regular.d.ts +1 -1
  1797. package/internal/icons2022/ArrowCUpIcon/ArrowCUpIcon16Regular/ArrowCUpIcon16Regular.js.map +1 -1
  1798. package/internal/icons2022/ArrowCUpIcon/ArrowCUpIcon16Regular.d.ts +1 -1
  1799. package/internal/icons2022/ArrowCollapseCVOpenIcon/ArrowCollapseCVOpenIcon16Regular/ArrowCollapseCVOpenIcon16Regular.js.map +1 -1
  1800. package/internal/icons2022/ArrowCollapseCVOpenIcon/ArrowCollapseCVOpenIcon16Regular.d.ts +1 -1
  1801. package/internal/icons2022/ArrowShapeDRadiusUpLeftIcon/ArrowShapeDRadiusUpLeftIcon16Light/ArrowShapeDRadiusUpLeftIcon16Light.js.map +1 -1
  1802. package/internal/icons2022/ArrowShapeDRadiusUpLeftIcon/ArrowShapeDRadiusUpLeftIcon16Light.d.ts +1 -1
  1803. package/internal/icons2022/ArrowShapeDRadiusUpLeftIcon/ArrowShapeDRadiusUpLeftIcon20Light/ArrowShapeDRadiusUpLeftIcon20Light.js.map +1 -1
  1804. package/internal/icons2022/ArrowShapeDRadiusUpLeftIcon/ArrowShapeDRadiusUpLeftIcon20Light.d.ts +1 -1
  1805. package/internal/icons2022/ArrowShapeDRadiusUpLeftIcon/ArrowShapeDRadiusUpLeftIcon24Regular/ArrowShapeDRadiusUpLeftIcon24Regular.js.map +1 -1
  1806. package/internal/icons2022/ArrowShapeDRadiusUpLeftIcon/ArrowShapeDRadiusUpLeftIcon24Regular.d.ts +1 -1
  1807. package/internal/icons2022/BaseIcon/BaseIcon.js.map +1 -1
  1808. package/internal/icons2022/BaseIcon.d.ts +1 -1
  1809. package/internal/icons2022/CalendarIcon/CalendarIcon16Light/CalendarIcon16Light.js.map +1 -1
  1810. package/internal/icons2022/CalendarIcon/CalendarIcon16Light.d.ts +1 -1
  1811. package/internal/icons2022/CalendarIcon/CalendarIcon20Light/CalendarIcon20Light.js.map +1 -1
  1812. package/internal/icons2022/CalendarIcon/CalendarIcon20Light.d.ts +1 -1
  1813. package/internal/icons2022/CalendarIcon/CalendarIcon24Regular/CalendarIcon24Regular.js.map +1 -1
  1814. package/internal/icons2022/CalendarIcon/CalendarIcon24Regular.d.ts +1 -1
  1815. package/internal/icons2022/CheckAIcon/CheckAIcon16Light/CheckAIcon16Light.js.map +1 -1
  1816. package/internal/icons2022/CheckAIcon/CheckAIcon16Light.d.ts +1 -1
  1817. package/internal/icons2022/CheckAIcon/CheckAIcon16Regular/CheckAIcon16Regular.js.map +1 -1
  1818. package/internal/icons2022/CheckAIcon/CheckAIcon16Regular.d.ts +1 -1
  1819. package/internal/icons2022/CheckAIcon/CheckAIcon16Solid/CheckAIcon16Solid.js.map +1 -1
  1820. package/internal/icons2022/CheckAIcon/CheckAIcon16Solid.d.ts +1 -1
  1821. package/internal/icons2022/CheckAIcon/CheckAIcon20Light/CheckAIcon20Light.js.map +1 -1
  1822. package/internal/icons2022/CheckAIcon/CheckAIcon20Light.d.ts +1 -1
  1823. package/internal/icons2022/CheckAIcon/CheckAIcon20Solid/CheckAIcon20Solid.js.map +1 -1
  1824. package/internal/icons2022/CheckAIcon/CheckAIcon20Solid.d.ts +1 -1
  1825. package/internal/icons2022/CheckAIcon/CheckAIcon24Regular/CheckAIcon24Regular.js.map +1 -1
  1826. package/internal/icons2022/CheckAIcon/CheckAIcon24Regular.d.ts +1 -1
  1827. package/internal/icons2022/EyeClosedIcon/EyeClosedIcon16Light/EyeClosedIcon16Light.js.map +1 -1
  1828. package/internal/icons2022/EyeClosedIcon/EyeClosedIcon16Light.d.ts +1 -1
  1829. package/internal/icons2022/EyeClosedIcon/EyeClosedIcon20Light/EyeClosedIcon20Light.js.map +1 -1
  1830. package/internal/icons2022/EyeClosedIcon/EyeClosedIcon20Light.d.ts +1 -1
  1831. package/internal/icons2022/EyeClosedIcon/EyeClosedIcon24Regular/EyeClosedIcon24Regular.js.map +1 -1
  1832. package/internal/icons2022/EyeClosedIcon/EyeClosedIcon24Regular.d.ts +1 -1
  1833. package/internal/icons2022/EyeOpenIcon/EyeOpenIcon16Light/EyeOpenIcon16Light.js.map +1 -1
  1834. package/internal/icons2022/EyeOpenIcon/EyeOpenIcon16Light.d.ts +1 -1
  1835. package/internal/icons2022/EyeOpenIcon/EyeOpenIcon20Light/EyeOpenIcon20Light.js.map +1 -1
  1836. package/internal/icons2022/EyeOpenIcon/EyeOpenIcon20Light.d.ts +1 -1
  1837. package/internal/icons2022/EyeOpenIcon/EyeOpenIcon24Regular/EyeOpenIcon24Regular.js.map +1 -1
  1838. package/internal/icons2022/EyeOpenIcon/EyeOpenIcon24Regular.d.ts +1 -1
  1839. package/internal/icons2022/InfoCircleIcon/InfoCircleIcon64Regular/InfoCircleIcon64Regular.js.map +1 -1
  1840. package/internal/icons2022/InfoCircleIcon/InfoCircleIcon64Regular.d.ts +1 -1
  1841. package/internal/icons2022/LoadingIcon/LoadingIcon.js.map +1 -1
  1842. package/internal/icons2022/LoadingIcon.d.ts +1 -1
  1843. package/internal/icons2022/MathFunctionIcon/MathFunctionIcon16Light/MathFunctionIcon16Light.js.map +1 -1
  1844. package/internal/icons2022/MathFunctionIcon/MathFunctionIcon16Light.d.ts +1 -1
  1845. package/internal/icons2022/MathFunctionIcon/MathFunctionIcon20Light/MathFunctionIcon20Light.js.map +1 -1
  1846. package/internal/icons2022/MathFunctionIcon/MathFunctionIcon20Light.d.ts +1 -1
  1847. package/internal/icons2022/MathFunctionIcon/MathFunctionIcon24Regular/MathFunctionIcon24Regular.js.map +1 -1
  1848. package/internal/icons2022/MathFunctionIcon/MathFunctionIcon24Regular.d.ts +1 -1
  1849. package/internal/icons2022/MinusCircleIcon/MinusCircleIcon16Light/MinusCircleIcon16Light.js.map +1 -1
  1850. package/internal/icons2022/MinusCircleIcon/MinusCircleIcon16Light.d.ts +1 -1
  1851. package/internal/icons2022/MinusCircleIcon/MinusCircleIcon16Regular/MinusCircleIcon16Regular.js.map +1 -1
  1852. package/internal/icons2022/MinusCircleIcon/MinusCircleIcon16Regular.d.ts +1 -1
  1853. package/internal/icons2022/MinusCircleIcon/MinusCircleIcon20Light/MinusCircleIcon20Light.js.map +1 -1
  1854. package/internal/icons2022/MinusCircleIcon/MinusCircleIcon20Light.d.ts +1 -1
  1855. package/internal/icons2022/MinusCircleIcon/MinusCircleIcon24Regular/MinusCircleIcon24Regular.js.map +1 -1
  1856. package/internal/icons2022/MinusCircleIcon/MinusCircleIcon24Regular.d.ts +1 -1
  1857. package/internal/icons2022/NetUploadIcon/NetUploadIcon16Light/NetUploadIcon16Light.js.map +1 -1
  1858. package/internal/icons2022/NetUploadIcon/NetUploadIcon16Light.d.ts +1 -1
  1859. package/internal/icons2022/NetUploadIcon/NetUploadIcon20Light/NetUploadIcon20Light.js.map +1 -1
  1860. package/internal/icons2022/NetUploadIcon/NetUploadIcon20Light.d.ts +1 -1
  1861. package/internal/icons2022/NetUploadIcon/NetUploadIcon24Regular/NetUploadIcon24Regular.js.map +1 -1
  1862. package/internal/icons2022/NetUploadIcon/NetUploadIcon24Regular.d.ts +1 -1
  1863. package/internal/icons2022/QuestionCircleIcon/QuestionCircleIcon16Solid/QuestionCircleIcon16Solid.js.map +1 -1
  1864. package/internal/icons2022/QuestionCircleIcon/QuestionCircleIcon16Solid.d.ts +1 -1
  1865. package/internal/icons2022/SearchLoupeIcon/SearchLoupeIcon16Regular/SearchLoupeIcon16Regular.js.map +1 -1
  1866. package/internal/icons2022/SearchLoupeIcon/SearchLoupeIcon16Regular.d.ts +1 -1
  1867. package/internal/icons2022/ShapeSquareIcon/ShapeSquareIcon16Solid/ShapeSquareIcon16Solid.js.map +1 -1
  1868. package/internal/icons2022/ShapeSquareIcon/ShapeSquareIcon16Solid.d.ts +1 -1
  1869. package/internal/icons2022/UiMenuDotsThreeVIcon/UiMenuDotsThreeVIcon16Light/UiMenuDotsThreeVIcon16Light.js.map +1 -1
  1870. package/internal/icons2022/UiMenuDotsThreeVIcon/UiMenuDotsThreeVIcon16Light.d.ts +1 -1
  1871. package/internal/icons2022/UiMenuDotsThreeVIcon/UiMenuDotsThreeVIcon20Regular/UiMenuDotsThreeVIcon20Regular.js.map +1 -1
  1872. package/internal/icons2022/UiMenuDotsThreeVIcon/UiMenuDotsThreeVIcon20Regular.d.ts +1 -1
  1873. package/internal/icons2022/UiMenuDotsThreeVIcon/UiMenuDotsThreeVIcon24Regular/UiMenuDotsThreeVIcon24Regular.js.map +1 -1
  1874. package/internal/icons2022/UiMenuDotsThreeVIcon/UiMenuDotsThreeVIcon24Regular.d.ts +1 -1
  1875. package/internal/icons2022/XIcon/XIcon16Light/XIcon16Light.js.map +1 -1
  1876. package/internal/icons2022/XIcon/XIcon16Light.d.ts +1 -1
  1877. package/internal/icons2022/XIcon/XIcon16Regular/XIcon16Regular.js.map +1 -1
  1878. package/internal/icons2022/XIcon/XIcon16Regular.d.ts +1 -1
  1879. package/internal/icons2022/XIcon/XIcon20Light/XIcon20Light.js.map +1 -1
  1880. package/internal/icons2022/XIcon/XIcon20Light.d.ts +1 -1
  1881. package/internal/icons2022/XIcon/XIcon20Regular/XIcon20Regular.js.map +1 -1
  1882. package/internal/icons2022/XIcon/XIcon20Regular.d.ts +1 -1
  1883. package/internal/icons2022/XIcon/XIcon24Regular/XIcon24Regular.js.map +1 -1
  1884. package/internal/icons2022/XIcon/XIcon24Regular.d.ts +1 -1
  1885. package/internal/icons2022/iconSizer/iconSizer.js.map +1 -1
  1886. package/internal/icons2022/iconSizer.d.ts +2 -2
  1887. package/internal/themes/BasicTheme/BasicTheme.js +1 -0
  1888. package/internal/themes/BasicTheme/BasicTheme.js.map +1 -1
  1889. package/internal/themes/BasicTheme.d.ts +1 -0
  1890. package/lib/InstanceWithAnchorElement/InstanceWithAnchorElement.js.map +1 -1
  1891. package/lib/InstanceWithAnchorElement.d.ts +1 -1
  1892. package/lib/ModalStack/ModalStack.js.map +1 -1
  1893. package/lib/ModalStack.d.ts +1 -1
  1894. package/lib/callChildRef/callChildRef/callChildRef.js.map +1 -1
  1895. package/lib/callChildRef/callChildRef.d.ts +2 -2
  1896. package/lib/createPropsGetter/createPropsGetter.js.map +1 -1
  1897. package/lib/createPropsGetter.d.ts +1 -1
  1898. package/lib/date/InternalDate/InternalDate.js.map +1 -1
  1899. package/lib/date/InternalDate.d.ts +2 -1
  1900. package/lib/date/InternalDateCalculator/InternalDateCalculator.js.map +1 -1
  1901. package/lib/date/InternalDateCalculator.d.ts +2 -1
  1902. package/lib/date/InternalDateGetter/InternalDateGetter.js.map +1 -1
  1903. package/lib/date/InternalDateGetter.d.ts +3 -2
  1904. package/lib/date/InternalDateSetter/InternalDateSetter.js.map +1 -1
  1905. package/lib/date/InternalDateSetter.d.ts +3 -2
  1906. package/lib/date/InternalDateTransformer/InternalDateTransformer.js.map +1 -1
  1907. package/lib/date/InternalDateTransformer.d.ts +2 -1
  1908. package/lib/date/InternalDateValidator/InternalDateValidator.js.map +1 -1
  1909. package/lib/date/InternalDateValidator.d.ts +3 -2
  1910. package/lib/date/localeSets/localeSets.js.map +1 -1
  1911. package/lib/date/localeSets.d.ts +1 -1
  1912. package/lib/date/types/types.js.map +1 -1
  1913. package/lib/date/types.d.ts +1 -1
  1914. package/lib/dom/getDOMRect/getDOMRect.js.map +1 -1
  1915. package/lib/dom/getDOMRect.d.ts +1 -1
  1916. package/lib/dom/tabbableHelpers/tabbableHelpers.js.map +1 -1
  1917. package/lib/dom/tabbableHelpers.d.ts +2 -2
  1918. package/lib/events/fixFirefoxModifiedClickOnLabel/fixFirefoxModifiedClickOnLabel.js.map +1 -1
  1919. package/lib/events/fixFirefoxModifiedClickOnLabel.d.ts +1 -1
  1920. package/lib/events/keyboard/extractCode/extractCode.js.map +1 -1
  1921. package/lib/extractKeyboardAction/extractKeyboardAction.js.map +1 -1
  1922. package/lib/extractKeyboardAction.d.ts +1 -1
  1923. package/lib/featureFlagsContext/FeatureFlagsHelpers/FeatureFlagsHelpers.js.map +1 -1
  1924. package/lib/featureFlagsContext/FeatureFlagsHelpers.d.ts +1 -1
  1925. package/lib/getDisplayName/getDisplayName.js.map +1 -1
  1926. package/lib/getDisplayName.d.ts +2 -2
  1927. package/lib/locale/LocaleContext/LocaleContext.js.map +1 -1
  1928. package/lib/locale/LocaleContext.d.ts +1 -1
  1929. package/lib/locale/LocaleHelper/LocaleHelper.js.map +1 -1
  1930. package/lib/locale/LocaleHelper.d.ts +1 -1
  1931. package/lib/locale/decorators/decorators.js.map +1 -1
  1932. package/lib/locale/decorators.d.ts +3 -3
  1933. package/lib/locale/types/types.js.map +1 -1
  1934. package/lib/locale/types.d.ts +10 -10
  1935. package/lib/locale/useLocaleForControl/useLocaleForControl.js.map +1 -1
  1936. package/lib/locale/useLocaleForControl.d.ts +2 -2
  1937. package/lib/mergeRefs/mergeRefs.js.map +1 -1
  1938. package/lib/mergeRefs.d.ts +1 -1
  1939. package/lib/rootNode/getRootNode/getRootNode.js +5 -12
  1940. package/lib/rootNode/getRootNode/getRootNode.js.map +1 -1
  1941. package/lib/rootNode/getRootNode.d.ts +2 -2
  1942. package/lib/rootNode/rootNodeDecorator/rootNodeDecorator.js.map +1 -1
  1943. package/lib/rootNode/rootNodeDecorator.d.ts +2 -2
  1944. package/lib/styles/ColorFactory/ColorFactory.js.map +1 -1
  1945. package/lib/styles/ColorFunctions/ColorFunctions.js.map +1 -1
  1946. package/lib/styles/ColorObject/ColorObject.js.map +1 -1
  1947. package/lib/styles/ColorObject.d.ts +1 -1
  1948. package/lib/styles/UiFont/UiFont.js +4 -20
  1949. package/lib/styles/UiFont/UiFont.js.map +1 -1
  1950. package/lib/styles/UiFont.d.ts +1 -4
  1951. package/lib/taskWithDelayAndMinimalDuration/taskWithDelayAndMinimalDuration.js.map +1 -1
  1952. package/lib/theming/AnimationKeyframes/AnimationKeyframes.js.map +1 -1
  1953. package/lib/theming/AnimationKeyframes.d.ts +1 -1
  1954. package/lib/theming/Emotion/Emotion.js.map +1 -1
  1955. package/lib/theming/Emotion.d.ts +1 -1
  1956. package/lib/theming/Theme/Theme.js.map +1 -1
  1957. package/lib/theming/Theme.d.ts +2 -1
  1958. package/lib/theming/ThemeFactory/ThemeFactory.js.map +1 -1
  1959. package/lib/theming/ThemeFactory.d.ts +2 -2
  1960. package/lib/theming/ThemeHelpers/ThemeHelpers.js.map +1 -1
  1961. package/lib/theming/ThemeHelpers.d.ts +2 -2
  1962. package/lib/types/polymorphic-component/polymorphic-component.js.map +1 -1
  1963. package/lib/types/polymorphic-component.d.ts +2 -2
  1964. package/lib/utils/utils.js +3 -0
  1965. package/lib/utils/utils.js.map +1 -1
  1966. package/lib/utils.d.ts +1 -0
  1967. package/lib/withClassWrapper/withClassWrapper.js.map +1 -1
  1968. package/lib/withClassWrapper.d.ts +1 -1
  1969. package/package.json +3 -4
@@ -1 +1 @@
1
- {"version":3,"names":["React","PropTypes","debounce","globalObject","isBrowser","LayoutEvents","Spinner","ThemeContext","ZIndex","CommonWrapper","cx","isTestEnv","TaskWithDelayAndMinimalDuration","getTabbableElements","rootNode","getDOMRect","createPropsGetter","styles","types","LoaderDataTids","veil","spinner","Loader","_class","_Loader","_React$Component","props","_this","call","getProps","defaultProps","childrenRef","element","childrenContainerNode","spinnerRef","spinnerContainerNode","checkSpinnerPosition","_getDOMRect","containerTop","top","containerRight","right","containerBottom","bottom","containerLeft","left","containerHeight","height","containerWidth","width","windowHeight","innerHeight","windowWidth","innerWidth","setState","isStickySpinner","spinnerStyle","Math","abs","spinnerHeight","spinnerNode","disableChildrenFocus","childrenObserver","makeObservable","tabbableElements","forEach","el","hasAttribute","setAttribute","tabIndex","toString","enableChildrenFocus","_globalObject$documen","_globalObject$documen2","makeUnobservable","Array","from","document","querySelectorAll","_el$getAttribute","getAttribute","removeAttribute","target","MutationObserver","config","childList","subtree","observer","observe","_this$childrenObserve","disconnect","state","isSpinnerVisible","isLoaderActive","spinnerTask","delayBeforeTaskStart","delayBeforeSpinnerShow","durationOfTask","minimalDelayBeforeSpinnerHide","taskStartCallback","taskStopCallback","_inheritsLoose","_proto","prototype","componentDidMount","active","start","layoutEvents","addListener","componentDidUpdate","prevProps","prevState","component","_this$getProps","update","stop","componentWillUnmount","remove","clearTask","getDerivedStateFromProps","render","_this2","createElement","Consumer","theme","renderMain","_cx","_this$props","caption","type","_extends","rootNodeRef","setRootNode","className","loader","applyZIndex","coverChildren","style","wrapperRef","children","renderSpinner","_cx2","_this3","spinnerContainer","spinnerContainerSticky","spinnerComponentWrapper","ref","undefined","Component","__KONTUR_REACT_UI__","displayName","propTypes","bool","node","string","oneOf","number"],"sources":["Loader.tsx"],"sourcesContent":["import React from 'react';\nimport PropTypes from 'prop-types';\nimport debounce from 'lodash.debounce';\nimport { globalObject, isBrowser } from '@skbkontur/global-object';\n\nimport { AnyObject } from '../../lib/utils';\nimport * as LayoutEvents from '../../lib/LayoutEvents';\nimport { Spinner, SpinnerProps } from '../Spinner';\nimport { Nullable } from '../../typings/utility-types';\nimport { ThemeContext } from '../../lib/theming/ThemeContext';\nimport { Theme } from '../../lib/theming/Theme';\nimport { ZIndex } from '../../internal/ZIndex';\nimport { CommonWrapper, CommonProps } from '../../internal/CommonWrapper';\nimport { cx } from '../../lib/theming/Emotion';\nimport { isTestEnv } from '../../lib/currentEnvironment';\nimport { TaskWithDelayAndMinimalDuration } from '../../lib/taskWithDelayAndMinimalDuration';\nimport { getTabbableElements } from '../../lib/dom/tabbableHelpers';\nimport { rootNode, TSetRootNode } from '../../lib/rootNode';\nimport { getDOMRect } from '../../lib/dom/getDOMRect';\nimport { createPropsGetter } from '../../lib/createPropsGetter';\n\nimport { styles } from './Loader.styles';\n\nconst types = ['mini', 'normal', 'big'] as const;\n\nexport type LoaderType = (typeof types)[number];\n\nexport interface LoaderProps extends CommonProps {\n /** @ignore */\n children?: React.ReactNode;\n\n /** Задает состояние лоадера.\n * @default false */\n active?: boolean;\n\n /** Задает подпись под спиннером. */\n caption?: SpinnerProps['caption'];\n\n /** Задает компонент, заменяющий спиннер. */\n component?: React.ReactNode;\n\n /** Задает размер спиннера и текста.\n * @default normal. */\n type?: LoaderType;\n\n /** Устанавливает время в миллисекундах для показа вуали без спиннера.\n * @default 30.0 */\n delayBeforeSpinnerShow?: number;\n\n /** Устанавливает минимальное время в миллисекундах для показа спиннера.\n * @default 1000. */\n minimalDelayBeforeSpinnerHide?: number;\n}\n\nexport interface LoaderState {\n isStickySpinner: boolean;\n isSpinnerVisible: boolean;\n isLoaderActive: boolean;\n spinnerStyle?: AnyObject;\n}\n\nexport const LoaderDataTids = {\n veil: 'Loader__Veil',\n spinner: 'Loader__Spinner',\n} as const;\n\ntype DefaultProps = Required<\n Pick<LoaderProps, 'type' | 'active' | 'delayBeforeSpinnerShow' | 'minimalDelayBeforeSpinnerHide'>\n>;\n\n/**\n * Компонент `Loader` принимает внутрь себя контент, поверх которого в активном состоянии `Loader`'а будет отрисован спиннер.\n *\n * Если вам нужен только сам спиннер без дополнительного функционала - используйте компонент Spinner.\n */\n@rootNode\nexport class Loader extends React.Component<LoaderProps, LoaderState> {\n public static __KONTUR_REACT_UI__ = 'Loader';\n public static displayName = 'Loader';\n\n public static defaultProps: DefaultProps = {\n type: 'normal',\n active: false,\n delayBeforeSpinnerShow: isTestEnv ? 0 : 300,\n minimalDelayBeforeSpinnerHide: isTestEnv ? 0 : 1000,\n };\n\n private getProps = createPropsGetter(Loader.defaultProps);\n\n public static propTypes = {\n /**\n * показываем лоадер или нет\n */\n active: PropTypes.bool,\n\n /**\n * Текст рядом с лоадером.\n *\n * @default \"Загрузка\"\n */\n caption: Spinner.propTypes.caption,\n\n component: PropTypes.node,\n\n /**\n * Класс для обертки\n */\n className: PropTypes.string,\n\n /**\n * Тип спиннера: mini, normal, big\n *\n * @default normal\n */\n type: PropTypes.oneOf(types),\n /**\n * Время в миллисекундах для показа вуали без спиннера.\n * @default 300\n */\n delayBeforeSpinnerShow: PropTypes.number,\n /**\n * Минимальное время в миллисекундах для показа спиннера\n * @default 1000\n */\n minimalDelayBeforeSpinnerHide: PropTypes.number,\n };\n\n private theme!: Theme;\n private setRootNode!: TSetRootNode;\n private spinnerContainerNode: Nullable<HTMLDivElement>;\n private childrenContainerNode: Nullable<HTMLDivElement>;\n private spinnerNode: Nullable<HTMLDivElement>;\n private layoutEvents: Nullable<{ remove: () => void }>;\n private spinnerTask: TaskWithDelayAndMinimalDuration;\n private childrenObserver: Nullable<MutationObserver>;\n\n constructor(props: LoaderProps) {\n super(props);\n\n this.spinnerContainerNode = null;\n this.childrenContainerNode = null;\n this.childrenObserver = null;\n this.spinnerNode = null;\n\n this.state = {\n isStickySpinner: false,\n isSpinnerVisible: false,\n isLoaderActive: false,\n };\n\n this.spinnerTask = new TaskWithDelayAndMinimalDuration({\n delayBeforeTaskStart: this.getProps().delayBeforeSpinnerShow,\n durationOfTask: this.getProps().minimalDelayBeforeSpinnerHide,\n taskStartCallback: () => this.setState({ isSpinnerVisible: true }),\n taskStopCallback: () => this.setState({ isSpinnerVisible: false }),\n });\n }\n\n public componentDidMount() {\n const active = this.getProps().active;\n this.checkSpinnerPosition();\n active && this.spinnerTask.start();\n this.layoutEvents = LayoutEvents.addListener(debounce(this.checkSpinnerPosition, 10));\n\n if (active) {\n this.disableChildrenFocus();\n }\n }\n\n public componentDidUpdate(prevProps: Readonly<LoaderProps>, prevState: Readonly<LoaderState>) {\n const { component } = this.props;\n const { active, delayBeforeSpinnerShow, minimalDelayBeforeSpinnerHide } = this.getProps();\n const { isLoaderActive } = this.state;\n\n if ((active && !prevProps.active) || prevProps.component !== component) {\n this.checkSpinnerPosition();\n }\n\n if (\n delayBeforeSpinnerShow !== prevProps.delayBeforeSpinnerShow ||\n minimalDelayBeforeSpinnerHide !== prevProps.minimalDelayBeforeSpinnerHide\n ) {\n this.spinnerTask.update({\n delayBeforeTaskStart: delayBeforeSpinnerShow,\n durationOfTask: minimalDelayBeforeSpinnerHide,\n });\n }\n\n if (active !== prevProps.active) {\n active ? this.spinnerTask.start() : this.spinnerTask.stop();\n }\n\n if (isLoaderActive !== prevState.isLoaderActive) {\n if (isLoaderActive) {\n this.disableChildrenFocus();\n } else {\n this.enableChildrenFocus();\n }\n }\n }\n\n public componentWillUnmount() {\n this.makeUnobservable();\n if (this.layoutEvents) {\n this.layoutEvents.remove();\n }\n this.spinnerTask.clearTask();\n }\n\n public static getDerivedStateFromProps(props: LoaderProps, state: LoaderState): Partial<LoaderState> {\n if (props.active && !state.isLoaderActive) {\n return {\n isLoaderActive: true,\n };\n }\n if (state.isLoaderActive && !(props.active || state.isSpinnerVisible)) {\n return {\n isLoaderActive: false,\n };\n }\n\n return state;\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 { caption, component } = this.props;\n const type = this.getProps().type;\n const { isLoaderActive } = this.state;\n\n return (\n <CommonWrapper rootNodeRef={this.setRootNode} {...this.props}>\n <div className={styles.loader()} data-tid={isLoaderActive ? LoaderDataTids.veil : ''}>\n <ZIndex\n applyZIndex={isLoaderActive}\n coverChildren={isLoaderActive}\n style={{ height: '100%' }}\n wrapperRef={this.childrenRef}\n >\n {this.props.children}\n </ZIndex>\n {isLoaderActive && (\n <ZIndex\n wrapperRef={this.spinnerRef}\n className={cx({\n [styles.active(this.theme)]: isLoaderActive,\n })}\n >\n {this.state.isSpinnerVisible && this.renderSpinner(type, caption, component)}\n </ZIndex>\n )}\n </div>\n </CommonWrapper>\n );\n }\n\n private childrenRef = (element: HTMLDivElement | null) => {\n this.childrenContainerNode = element;\n };\n\n private spinnerRef = (element: HTMLDivElement | null) => {\n this.spinnerContainerNode = element;\n };\n\n private renderSpinner(type?: LoaderType, caption?: React.ReactNode, component?: React.ReactNode) {\n return (\n <span\n data-tid={LoaderDataTids.spinner}\n className={cx(styles.spinnerContainer(), { [styles.spinnerContainerSticky()]: this.state.isStickySpinner })}\n style={this.state.spinnerStyle}\n >\n <div\n className={styles.spinnerComponentWrapper()}\n ref={(element) => {\n this.spinnerNode = element;\n }}\n >\n {component !== undefined ? component : <Spinner type={type} caption={caption} />}\n </div>\n </span>\n );\n }\n\n private checkSpinnerPosition = () => {\n if (!this.spinnerContainerNode || !isBrowser(globalObject)) {\n return;\n }\n\n const {\n top: containerTop,\n right: containerRight,\n bottom: containerBottom,\n left: containerLeft,\n height: containerHeight,\n width: containerWidth,\n } = getDOMRect(this.spinnerContainerNode);\n\n const windowHeight = globalObject.innerHeight;\n const windowWidth = globalObject.innerWidth;\n\n // Если контейнер не больше высоты и не шире окна,\n // то просто выравниваем по центру\n if (windowHeight >= containerHeight && windowWidth >= containerWidth) {\n this.setState({\n isStickySpinner: false,\n spinnerStyle: {},\n });\n return;\n }\n\n const spinnerStyle: {\n top?: number;\n right: number;\n bottom: number;\n left: number;\n } = {\n top: 30,\n right: 0,\n bottom: 30,\n left: 0,\n };\n\n // ПО ВЕРТИКАЛИ\n // Если верхний край контейнера ниже верхнего края окна,\n // то сдвигаем и лоадер\n if (containerTop > 0) {\n spinnerStyle.top = containerTop + 30;\n }\n\n // Если нижний край контейнера выше нижнего края окна,\n // то сдвигаем и лоадер\n if (containerBottom < windowHeight) {\n spinnerStyle.bottom = Math.abs(windowHeight - containerBottom) + 30;\n }\n\n // Если знаем высоту спиннера и нижний край контейнера поднимается\n // выше отступа на высоту спиннера, то убираем верхнюю позицию лоадера\n\n const spinnerHeight = getDOMRect(this.spinnerNode).height;\n\n if (spinnerHeight && spinnerStyle.bottom >= windowHeight - spinnerHeight) {\n delete spinnerStyle.top;\n }\n\n // ПО ГОРИЗОНТАЛИ\n // Если левый край контейнера правее левого края окна,\n // то сдвигаем и лоадер\n if (containerLeft > 0) {\n spinnerStyle.left = containerLeft;\n }\n\n // Если правый край контейнера левее правого края окна,\n // то сдвигаем и лоадер\n if (containerRight < windowWidth) {\n spinnerStyle.right = windowWidth - containerRight;\n }\n\n this.setState({\n isStickySpinner: true,\n spinnerStyle,\n });\n };\n\n private disableChildrenFocus = () => {\n if (!this.childrenObserver) {\n this.makeObservable();\n }\n const tabbableElements = getTabbableElements(this.childrenContainerNode);\n tabbableElements.forEach((el) => {\n if (!el.hasAttribute('origin-tabindex')) {\n el.setAttribute('origin-tabindex', el.tabIndex.toString());\n }\n el.tabIndex = -1;\n });\n };\n\n private enableChildrenFocus = () => {\n this.makeUnobservable();\n // NOTE: NodeList doesn't support 'forEach' method in IE11 and other older browsers\n Array.from(globalObject.document?.querySelectorAll('[origin-tabindex]') ?? []).forEach((el) => {\n el.setAttribute('tabindex', el.getAttribute('origin-tabindex') ?? '0');\n el.removeAttribute('origin-tabindex');\n });\n };\n\n private makeObservable = () => {\n const target = this.childrenContainerNode;\n if (!target || !globalObject.MutationObserver) {\n return;\n }\n const config = {\n childList: true,\n subtree: true,\n };\n const observer = new globalObject.MutationObserver(this.disableChildrenFocus);\n observer.observe(target, config);\n this.childrenObserver = observer;\n };\n\n private makeUnobservable = () => {\n this.childrenObserver?.disconnect();\n this.childrenObserver = null;\n };\n}\n"],"mappings":"oJAAA,OAAOA,KAAK,MAAM,OAAO;AACzB,OAAOC,SAAS,MAAM,YAAY;AAClC,OAAOC,QAAQ,MAAM,iBAAiB;AACtC,SAASC,YAAY,EAAEC,SAAS,QAAQ,0BAA0B;;;AAGlE,OAAO,KAAKC,YAAY,MAAM,wBAAwB;AACtD,SAASC,OAAO,QAAsB,YAAY;;AAElD,SAASC,YAAY,QAAQ,gCAAgC;;AAE7D,SAASC,MAAM,QAAQ,uBAAuB;AAC9C,SAASC,aAAa,QAAqB,8BAA8B;AACzE,SAASC,EAAE,QAAQ,2BAA2B;AAC9C,SAASC,SAAS,QAAQ,8BAA8B;AACxD,SAASC,+BAA+B,QAAQ,2CAA2C;AAC3F,SAASC,mBAAmB,QAAQ,+BAA+B;AACnE,SAASC,QAAQ,QAAsB,oBAAoB;AAC3D,SAASC,UAAU,QAAQ,0BAA0B;AACrD,SAASC,iBAAiB,QAAQ,6BAA6B;;AAE/D,SAASC,MAAM,QAAQ,iBAAiB;;AAExC,IAAMC,KAAK,GAAG,CAAC,MAAM,EAAE,QAAQ,EAAE,KAAK,CAAU;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAsChD,OAAO,IAA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AK,EACbT,sBAAsB,EAAErF,SAAS,GAAG,CAAC,GAAG,GAAG,EAC3CuF,6BAA6B,EAAEvF,SAAS,GAAG,CAAC,GAAG,IAAI,CACrD,CAAC,EAAAa,OAAA,CAIa+H,SAAS,GAAG,EACxB;AACJ;AACA,KACI9C,MAAM,EAAExG,SAAS,CAACuJ,IAAI,EAEtB;AACJ;AACA;AACA;AACA,KACIxB,OAAO,EAAE1H,OAAO,CAACiJ,SAAS,CAACvB,OAAO,EAElChB,SAAS,EAAE/G,SAAS,CAACwJ,IAAI,EAEzB;AACJ;AACA,KACIpB,SAAS,EAAEpI,SAAS,CAACyJ,MAAM,EAE3B;AACJ;AACA;AACA;AACA,KACIzB,IAAI,EAAEhI,SAAS,CAAC0J,KAAK,CAACzI,KAAK,CAAC,EAC5B;AACJ;AACA;AACA,KACI8E,sBAAsB,EAAE/F,SAAS,CAAC2J,MAAM,EACxC;AACJ;AACA;AACA,KACI1D,6BAA6B,EAAEjG,SAAS,CAAC2J,MAAM,CACjD,CAAC,EAAApI,OAAA,MAAAD,MAAA","ignoreList":[]}
1
+ {"version":3,"names":["React","PropTypes","debounce","globalObject","isBrowser","LayoutEvents","Spinner","ThemeContext","ZIndex","CommonWrapper","cx","isTestEnv","TaskWithDelayAndMinimalDuration","getTabbableElements","rootNode","getDOMRect","createPropsGetter","styles","types","LoaderDataTids","veil","spinner","Loader","_class","_Loader","_React$Component","props","_this","call","getProps","defaultProps","childrenRef","element","childrenContainerNode","spinnerRef","spinnerContainerNode","checkSpinnerPosition","_getDOMRect","containerTop","top","containerRight","right","containerBottom","bottom","containerLeft","left","containerHeight","height","containerWidth","width","windowHeight","innerHeight","windowWidth","innerWidth","setState","isStickySpinner","spinnerStyle","Math","abs","spinnerHeight","spinnerNode","disableChildrenFocus","childrenObserver","makeObservable","tabbableElements","forEach","el","hasAttribute","setAttribute","tabIndex","toString","enableChildrenFocus","_globalObject$documen","_globalObject$documen2","makeUnobservable","Array","from","document","querySelectorAll","_el$getAttribute","getAttribute","removeAttribute","target","MutationObserver","config","childList","subtree","observer","observe","_this$childrenObserve","disconnect","state","isSpinnerVisible","isLoaderActive","spinnerTask","delayBeforeTaskStart","delayBeforeSpinnerShow","durationOfTask","minimalDelayBeforeSpinnerHide","taskStartCallback","taskStopCallback","_inheritsLoose","_proto","prototype","componentDidMount","active","start","layoutEvents","addListener","componentDidUpdate","prevProps","prevState","component","_this$getProps","update","stop","componentWillUnmount","remove","clearTask","getDerivedStateFromProps","render","_this2","createElement","Consumer","theme","renderMain","_cx","_this$props","caption","type","_extends","rootNodeRef","setRootNode","className","loader","applyZIndex","coverChildren","style","wrapperRef","children","renderSpinner","_cx2","_this3","spinnerContainer","spinnerContainerSticky","spinnerComponentWrapper","ref","undefined","Component","__KONTUR_REACT_UI__","displayName","propTypes","bool","node","string","oneOf","number"],"sources":["Loader.tsx"],"sourcesContent":["import React from 'react';\nimport PropTypes from 'prop-types';\nimport debounce from 'lodash.debounce';\nimport { globalObject, isBrowser } from '@skbkontur/global-object';\n\nimport type { AnyObject } from '../../lib/utils';\nimport * as LayoutEvents from '../../lib/LayoutEvents';\nimport type { SpinnerProps } from '../Spinner';\nimport { Spinner } from '../Spinner';\nimport type { Nullable } from '../../typings/utility-types';\nimport { ThemeContext } from '../../lib/theming/ThemeContext';\nimport type { Theme } from '../../lib/theming/Theme';\nimport { ZIndex } from '../../internal/ZIndex';\nimport type { CommonProps } from '../../internal/CommonWrapper';\nimport { CommonWrapper } from '../../internal/CommonWrapper';\nimport { cx } from '../../lib/theming/Emotion';\nimport { isTestEnv } from '../../lib/currentEnvironment';\nimport { TaskWithDelayAndMinimalDuration } from '../../lib/taskWithDelayAndMinimalDuration';\nimport { getTabbableElements } from '../../lib/dom/tabbableHelpers';\nimport type { TSetRootNode } from '../../lib/rootNode';\nimport { rootNode } from '../../lib/rootNode';\nimport { getDOMRect } from '../../lib/dom/getDOMRect';\nimport { createPropsGetter } from '../../lib/createPropsGetter';\n\nimport { styles } from './Loader.styles';\n\nconst types = ['mini', 'normal', 'big'] as const;\n\nexport type LoaderType = (typeof types)[number];\n\nexport interface LoaderProps extends CommonProps {\n /** @ignore */\n children?: React.ReactNode;\n\n /** Задает состояние лоадера.\n * @default false */\n active?: boolean;\n\n /** Задает подпись под спиннером. */\n caption?: SpinnerProps['caption'];\n\n /** Задает компонент, заменяющий спиннер. */\n component?: React.ReactNode;\n\n /** Задает размер спиннера и текста.\n * @default normal. */\n type?: LoaderType;\n\n /** Устанавливает время в миллисекундах для показа вуали без спиннера.\n * @default 30.0 */\n delayBeforeSpinnerShow?: number;\n\n /** Устанавливает минимальное время в миллисекундах для показа спиннера.\n * @default 1000. */\n minimalDelayBeforeSpinnerHide?: number;\n}\n\nexport interface LoaderState {\n isStickySpinner: boolean;\n isSpinnerVisible: boolean;\n isLoaderActive: boolean;\n spinnerStyle?: AnyObject;\n}\n\nexport const LoaderDataTids = {\n veil: 'Loader__Veil',\n spinner: 'Loader__Spinner',\n} as const;\n\ntype DefaultProps = Required<\n Pick<LoaderProps, 'type' | 'active' | 'delayBeforeSpinnerShow' | 'minimalDelayBeforeSpinnerHide'>\n>;\n\n/**\n * Компонент `Loader` принимает внутрь себя контент, поверх которого в активном состоянии `Loader`'а будет отрисован спиннер.\n *\n * Если вам нужен только сам спиннер без дополнительного функционала - используйте компонент Spinner.\n */\n@rootNode\nexport class Loader extends React.Component<LoaderProps, LoaderState> {\n public static __KONTUR_REACT_UI__ = 'Loader';\n public static displayName = 'Loader';\n\n public static defaultProps: DefaultProps = {\n type: 'normal',\n active: false,\n delayBeforeSpinnerShow: isTestEnv ? 0 : 300,\n minimalDelayBeforeSpinnerHide: isTestEnv ? 0 : 1000,\n };\n\n private getProps = createPropsGetter(Loader.defaultProps);\n\n public static propTypes = {\n /**\n * показываем лоадер или нет\n */\n active: PropTypes.bool,\n\n /**\n * Текст рядом с лоадером.\n *\n * @default \"Загрузка\"\n */\n caption: Spinner.propTypes.caption,\n\n component: PropTypes.node,\n\n /**\n * Класс для обертки\n */\n className: PropTypes.string,\n\n /**\n * Тип спиннера: mini, normal, big\n *\n * @default normal\n */\n type: PropTypes.oneOf(types),\n /**\n * Время в миллисекундах для показа вуали без спиннера.\n * @default 300\n */\n delayBeforeSpinnerShow: PropTypes.number,\n /**\n * Минимальное время в миллисекундах для показа спиннера\n * @default 1000\n */\n minimalDelayBeforeSpinnerHide: PropTypes.number,\n };\n\n private theme!: Theme;\n private setRootNode!: TSetRootNode;\n private spinnerContainerNode: Nullable<HTMLDivElement>;\n private childrenContainerNode: Nullable<HTMLDivElement>;\n private spinnerNode: Nullable<HTMLDivElement>;\n private layoutEvents: Nullable<{ remove: () => void }>;\n private spinnerTask: TaskWithDelayAndMinimalDuration;\n private childrenObserver: Nullable<MutationObserver>;\n\n constructor(props: LoaderProps) {\n super(props);\n\n this.spinnerContainerNode = null;\n this.childrenContainerNode = null;\n this.childrenObserver = null;\n this.spinnerNode = null;\n\n this.state = {\n isStickySpinner: false,\n isSpinnerVisible: false,\n isLoaderActive: false,\n };\n\n this.spinnerTask = new TaskWithDelayAndMinimalDuration({\n delayBeforeTaskStart: this.getProps().delayBeforeSpinnerShow,\n durationOfTask: this.getProps().minimalDelayBeforeSpinnerHide,\n taskStartCallback: () => this.setState({ isSpinnerVisible: true }),\n taskStopCallback: () => this.setState({ isSpinnerVisible: false }),\n });\n }\n\n public componentDidMount() {\n const active = this.getProps().active;\n this.checkSpinnerPosition();\n active && this.spinnerTask.start();\n this.layoutEvents = LayoutEvents.addListener(debounce(this.checkSpinnerPosition, 10));\n\n if (active) {\n this.disableChildrenFocus();\n }\n }\n\n public componentDidUpdate(prevProps: Readonly<LoaderProps>, prevState: Readonly<LoaderState>) {\n const { component } = this.props;\n const { active, delayBeforeSpinnerShow, minimalDelayBeforeSpinnerHide } = this.getProps();\n const { isLoaderActive } = this.state;\n\n if ((active && !prevProps.active) || prevProps.component !== component) {\n this.checkSpinnerPosition();\n }\n\n if (\n delayBeforeSpinnerShow !== prevProps.delayBeforeSpinnerShow ||\n minimalDelayBeforeSpinnerHide !== prevProps.minimalDelayBeforeSpinnerHide\n ) {\n this.spinnerTask.update({\n delayBeforeTaskStart: delayBeforeSpinnerShow,\n durationOfTask: minimalDelayBeforeSpinnerHide,\n });\n }\n\n if (active !== prevProps.active) {\n active ? this.spinnerTask.start() : this.spinnerTask.stop();\n }\n\n if (isLoaderActive !== prevState.isLoaderActive) {\n if (isLoaderActive) {\n this.disableChildrenFocus();\n } else {\n this.enableChildrenFocus();\n }\n }\n }\n\n public componentWillUnmount() {\n this.makeUnobservable();\n if (this.layoutEvents) {\n this.layoutEvents.remove();\n }\n this.spinnerTask.clearTask();\n }\n\n public static getDerivedStateFromProps(props: LoaderProps, state: LoaderState): Partial<LoaderState> {\n if (props.active && !state.isLoaderActive) {\n return {\n isLoaderActive: true,\n };\n }\n if (state.isLoaderActive && !(props.active || state.isSpinnerVisible)) {\n return {\n isLoaderActive: false,\n };\n }\n\n return state;\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 { caption, component } = this.props;\n const type = this.getProps().type;\n const { isLoaderActive } = this.state;\n\n return (\n <CommonWrapper rootNodeRef={this.setRootNode} {...this.props}>\n <div className={styles.loader()} data-tid={isLoaderActive ? LoaderDataTids.veil : ''}>\n <ZIndex\n applyZIndex={isLoaderActive}\n coverChildren={isLoaderActive}\n style={{ height: '100%' }}\n wrapperRef={this.childrenRef}\n >\n {this.props.children}\n </ZIndex>\n {isLoaderActive && (\n <ZIndex\n wrapperRef={this.spinnerRef}\n className={cx({\n [styles.active(this.theme)]: isLoaderActive,\n })}\n >\n {this.state.isSpinnerVisible && this.renderSpinner(type, caption, component)}\n </ZIndex>\n )}\n </div>\n </CommonWrapper>\n );\n }\n\n private childrenRef = (element: HTMLDivElement | null) => {\n this.childrenContainerNode = element;\n };\n\n private spinnerRef = (element: HTMLDivElement | null) => {\n this.spinnerContainerNode = element;\n };\n\n private renderSpinner(type?: LoaderType, caption?: React.ReactNode, component?: React.ReactNode) {\n return (\n <span\n data-tid={LoaderDataTids.spinner}\n className={cx(styles.spinnerContainer(), { [styles.spinnerContainerSticky()]: this.state.isStickySpinner })}\n style={this.state.spinnerStyle}\n >\n <div\n className={styles.spinnerComponentWrapper()}\n ref={(element) => {\n this.spinnerNode = element;\n }}\n >\n {component !== undefined ? component : <Spinner type={type} caption={caption} />}\n </div>\n </span>\n );\n }\n\n private checkSpinnerPosition = () => {\n if (!this.spinnerContainerNode || !isBrowser(globalObject)) {\n return;\n }\n\n const {\n top: containerTop,\n right: containerRight,\n bottom: containerBottom,\n left: containerLeft,\n height: containerHeight,\n width: containerWidth,\n } = getDOMRect(this.spinnerContainerNode);\n\n const windowHeight = globalObject.innerHeight;\n const windowWidth = globalObject.innerWidth;\n\n // Если контейнер не больше высоты и не шире окна,\n // то просто выравниваем по центру\n if (windowHeight >= containerHeight && windowWidth >= containerWidth) {\n this.setState({\n isStickySpinner: false,\n spinnerStyle: {},\n });\n return;\n }\n\n const spinnerStyle: {\n top?: number;\n right: number;\n bottom: number;\n left: number;\n } = {\n top: 30,\n right: 0,\n bottom: 30,\n left: 0,\n };\n\n // ПО ВЕРТИКАЛИ\n // Если верхний край контейнера ниже верхнего края окна,\n // то сдвигаем и лоадер\n if (containerTop > 0) {\n spinnerStyle.top = containerTop + 30;\n }\n\n // Если нижний край контейнера выше нижнего края окна,\n // то сдвигаем и лоадер\n if (containerBottom < windowHeight) {\n spinnerStyle.bottom = Math.abs(windowHeight - containerBottom) + 30;\n }\n\n // Если знаем высоту спиннера и нижний край контейнера поднимается\n // выше отступа на высоту спиннера, то убираем верхнюю позицию лоадера\n\n const spinnerHeight = getDOMRect(this.spinnerNode).height;\n\n if (spinnerHeight && spinnerStyle.bottom >= windowHeight - spinnerHeight) {\n delete spinnerStyle.top;\n }\n\n // ПО ГОРИЗОНТАЛИ\n // Если левый край контейнера правее левого края окна,\n // то сдвигаем и лоадер\n if (containerLeft > 0) {\n spinnerStyle.left = containerLeft;\n }\n\n // Если правый край контейнера левее правого края окна,\n // то сдвигаем и лоадер\n if (containerRight < windowWidth) {\n spinnerStyle.right = windowWidth - containerRight;\n }\n\n this.setState({\n isStickySpinner: true,\n spinnerStyle,\n });\n };\n\n private disableChildrenFocus = () => {\n if (!this.childrenObserver) {\n this.makeObservable();\n }\n const tabbableElements = getTabbableElements(this.childrenContainerNode);\n tabbableElements.forEach((el) => {\n if (!el.hasAttribute('origin-tabindex')) {\n el.setAttribute('origin-tabindex', el.tabIndex.toString());\n }\n el.tabIndex = -1;\n });\n };\n\n private enableChildrenFocus = () => {\n this.makeUnobservable();\n // NOTE: NodeList doesn't support 'forEach' method in IE11 and other older browsers\n Array.from(globalObject.document?.querySelectorAll('[origin-tabindex]') ?? []).forEach((el) => {\n el.setAttribute('tabindex', el.getAttribute('origin-tabindex') ?? '0');\n el.removeAttribute('origin-tabindex');\n });\n };\n\n private makeObservable = () => {\n const target = this.childrenContainerNode;\n if (!target || !globalObject.MutationObserver) {\n return;\n }\n const config = {\n childList: true,\n subtree: true,\n };\n const observer = new globalObject.MutationObserver(this.disableChildrenFocus);\n observer.observe(target, config);\n this.childrenObserver = observer;\n };\n\n private makeUnobservable = () => {\n this.childrenObserver?.disconnect();\n this.childrenObserver = null;\n };\n}\n"],"mappings":"oJAAA,OAAOA,KAAK,MAAM,OAAO;AACzB,OAAOC,SAAS,MAAM,YAAY;AAClC,OAAOC,QAAQ,MAAM,iBAAiB;AACtC,SAASC,YAAY,EAAEC,SAAS,QAAQ,0BAA0B;;;AAGlE,OAAO,KAAKC,YAAY,MAAM,wBAAwB;;AAEtD,SAASC,OAAO,QAAQ,YAAY;;AAEpC,SAASC,YAAY,QAAQ,gCAAgC;;AAE7D,SAASC,MAAM,QAAQ,uBAAuB;;AAE9C,SAASC,aAAa,QAAQ,8BAA8B;AAC5D,SAASC,EAAE,QAAQ,2BAA2B;AAC9C,SAASC,S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,GAAGnC,SAAS,gBAAGhH,KAAA,CAAA0H,aAAA,CAACpH,OAAO,IAAC2H,IAAI,EAAEA,IAAK,EAACD,OAAO,EAAEA,OAAQ,EAAE,CAC5E,CACD,CAAC,CAEX,CAAC,QAAA1G,MAAA,GAvNyBtB,KAAK,CAACoJ,SAAS,GAAA5H,OAAA,CAC3B6H,mBAAmB,GAAG,QAAQ,EAAA7H,OAAA,CAC9B8H,WAAW,GAAG,QAAQ,EAAA9H,OAAA,CAEtBM,YAAY,GAAiB,EACzCmG,IAAI,EAAE,QAAQ,EACdxB,MAAM,EAAE,KAAK,EACbT,sBAAsB,EAAErF,SAAS,GAAG,CAAC,GAAG,GAAG,EAC3CuF,6BAA6B,EAAEvF,SAAS,GAAG,CAAC,GAAG,IAAI,CACrD,CAAC,EAAAa,OAAA,CAIa+H,SAAS,GAAG,EACxB;AACJ;AACA,KACI9C,MAAM,EAAExG,SAAS,CAACuJ,IAAI,EAEtB;AACJ;AACA;AACA;AACA,KACIxB,OAAO,EAAE1H,OAAO,CAACiJ,SAAS,CAACvB,OAAO,EAElChB,SAAS,EAAE/G,SAAS,CAACwJ,IAAI,EAEzB;AACJ;AACA,KACIpB,SAAS,EAAEpI,SAAS,CAACyJ,MAAM,EAE3B;AACJ;AACA;AACA;AACA,KACIzB,IAAI,EAAEhI,SAAS,CAAC0J,KAAK,CAACzI,KAAK,CAAC,EAC5B;AACJ;AACA;AACA,KACI8E,sBAAsB,EAAE/F,SAAS,CAAC2J,MAAM,EACxC;AACJ;AACA;AACA,KACI1D,6BAA6B,EAAEjG,SAAS,CAAC2J,MAAM,CACjD,CAAC,EAAApI,OAAA,MAAAD,MAAA","ignoreList":[]}
@@ -1,8 +1,8 @@
1
1
  import React from 'react';
2
2
  import PropTypes from 'prop-types';
3
- import { AnyObject } from '../../lib/utils';
4
- import { SpinnerProps } from '../Spinner';
5
- import { CommonProps } from '../../internal/CommonWrapper';
3
+ import type { AnyObject } from '../../lib/utils';
4
+ import type { SpinnerProps } from '../Spinner';
5
+ import type { CommonProps } from '../../internal/CommonWrapper';
6
6
  declare const types: readonly ["mini", "normal", "big"];
7
7
  export type LoaderType = (typeof types)[number];
8
8
  export interface LoaderProps extends CommonProps {
@@ -1 +1 @@
1
- {"version":3,"names":["css","memoizeStyle","styles","active","t","_templateObject","_taggedTemplateLiteralLoose","loaderBorderRadius","loaderBg","loader","_templateObject2","spinnerContainer","_templateObject3","spinnerContainerSticky","_templateObject4","spinnerComponentWrapper","_templateObject5"],"sources":["Loader.styles.ts"],"sourcesContent":["import { css, memoizeStyle } from '../../lib/theming/Emotion';\nimport { Theme } from '../../lib/theming/Theme';\n\nexport const styles = memoizeStyle({\n active(t: Theme) {\n return css`\n border-radius: ${t.loaderBorderRadius};\n position: absolute;\n bottom: 0;\n left: 0;\n right: 0;\n top: 0;\n\n background: ${t.loaderBg};\n `;\n },\n\n loader() {\n return css`\n box-sizing: border-box;\n display: inline-block;\n position: relative;\n width: 100%;\n z-index: inherit;\n `;\n },\n\n spinnerContainer() {\n return css`\n display: block;\n margin: auto;\n text-align: center;\n\n position: absolute;\n bottom: 0;\n left: 0;\n right: 0;\n top: 0;\n\n &::before {\n content: ' ';\n display: inline-block;\n height: 100%;\n min-height: 100%;\n vertical-align: middle;\n }\n `;\n },\n\n spinnerContainerSticky() {\n return css`\n position: fixed;\n `;\n },\n\n spinnerComponentWrapper() {\n return css`\n display: inline-block;\n `;\n },\n});\n"],"mappings":"4LAAA,SAASA,GAAG,EAAEC,YAAY,QAAQ,2BAA2B;;;AAG7D,OAAO,IAAMC,MAAM,GAAGD,YAAY,CAAC;EACjCE,MAAM,WAAAA,OAACC,CAAQ,EAAE;IACf,OAAOJ,GAAG,CAAAK,eAAA,KAAAA,eAAA,GAAAC,2BAAA;IACSF,CAAC,CAACG,kBAAkB;;;;;;;IAOvBH,CAAC,CAACI,QAAQ;;EAE5B,CAAC;;EAEDC,MAAM,WAAAA,OAAA,EAAG;IACP,OAAOT,GAAG,CAAAU,gBAAA,KAAAA,gBAAA,GAAAJ,2BAAA;;;;;;;EAOZ,CAAC;;EAEDK,gBAAgB,WAAAA,iBAAA,EAAG;IACjB,OAAOX,GAAG,CAAAY,gBAAA,KAAAA,gBAAA,GAAAN,2BAAA;;;;;;;;;;;;;;;;;;;EAmBZ,CAAC;;EAEDO,sBAAsB,WAAAA,uBAAA,EAAG;IACvB,OAAOb,GAAG,CAAAc,gBAAA,KAAAA,gBAAA,GAAAR,2BAAA;;;EAGZ,CAAC;;EAEDS,uBAAuB,WAAAA,wBAAA,EAAG;IACxB,OAAOf,GAAG,CAAAgB,gBAAA,KAAAA,gBAAA,GAAAV,2BAAA;;;EAGZ;AACF,CAAC,CAAC","ignoreList":[]}
1
+ {"version":3,"names":["css","memoizeStyle","styles","active","t","_templateObject","_taggedTemplateLiteralLoose","loaderBorderRadius","loaderBg","loader","_templateObject2","spinnerContainer","_templateObject3","spinnerContainerSticky","_templateObject4","spinnerComponentWrapper","_templateObject5"],"sources":["Loader.styles.ts"],"sourcesContent":["import { css, memoizeStyle } from '../../lib/theming/Emotion';\nimport type { Theme } from '../../lib/theming/Theme';\n\nexport const styles = memoizeStyle({\n active(t: Theme) {\n return css`\n border-radius: ${t.loaderBorderRadius};\n position: absolute;\n bottom: 0;\n left: 0;\n right: 0;\n top: 0;\n\n background: ${t.loaderBg};\n `;\n },\n\n loader() {\n return css`\n box-sizing: border-box;\n display: inline-block;\n position: relative;\n width: 100%;\n z-index: inherit;\n `;\n },\n\n spinnerContainer() {\n return css`\n display: block;\n margin: auto;\n text-align: center;\n\n position: absolute;\n bottom: 0;\n left: 0;\n right: 0;\n top: 0;\n\n &::before {\n content: ' ';\n display: inline-block;\n height: 100%;\n min-height: 100%;\n vertical-align: middle;\n }\n `;\n },\n\n spinnerContainerSticky() {\n return css`\n position: fixed;\n `;\n },\n\n spinnerComponentWrapper() {\n return css`\n display: inline-block;\n `;\n },\n});\n"],"mappings":"4LAAA,SAASA,GAAG,EAAEC,YAAY,QAAQ,2BAA2B;;;AAG7D,OAAO,IAAMC,MAAM,GAAGD,YAAY,CAAC;EACjCE,MAAM,WAAAA,OAACC,CAAQ,EAAE;IACf,OAAOJ,GAAG,CAAAK,eAAA,KAAAA,eAAA,GAAAC,2BAAA;IACSF,CAAC,CAACG,kBAAkB;;;;;;;IAOvBH,CAAC,CAACI,QAAQ;;EAE5B,CAAC;;EAEDC,MAAM,WAAAA,OAAA,EAAG;IACP,OAAOT,GAAG,CAAAU,gBAAA,KAAAA,gBAAA,GAAAJ,2BAAA;;;;;;;EAOZ,CAAC;;EAEDK,gBAAgB,WAAAA,iBAAA,EAAG;IACjB,OAAOX,GAAG,CAAAY,gBAAA,KAAAA,gBAAA,GAAAN,2BAAA;;;;;;;;;;;;;;;;;;;EAmBZ,CAAC;;EAEDO,sBAAsB,WAAAA,uBAAA,EAAG;IACvB,OAAOb,GAAG,CAAAc,gBAAA,KAAAA,gBAAA,GAAAR,2BAAA;;;EAGZ,CAAC;;EAEDS,uBAAuB,WAAAA,wBAAA,EAAG;IACxB,OAAOf,GAAG,CAAAgB,gBAAA,KAAAA,gBAAA,GAAAV,2BAAA;;;EAGZ;AACF,CAAC,CAAC","ignoreList":[]}
@@ -1,4 +1,4 @@
1
- import { Theme } from '../../lib/theming/Theme';
1
+ import type { Theme } from '../../lib/theming/Theme';
2
2
  export declare const styles: {
3
3
  active(t: Theme): string;
4
4
  loader(): string;
@@ -1,12 +1,12 @@
1
1
  import * as LoaderStories from './Loader.docs.stories.tsx';
2
2
  import { Primary, ArgTypes, Stories, Description } from '@storybook/blocks';
3
3
  import { Meta } from '../../../.storybook/Meta';
4
+ import { Header } from '../../../.storybook/Header';
5
+ import { PropsTable } from '../../../.storybook/PropsTable';
4
6
 
5
7
  <Meta of={LoaderStories} />
6
8
 
7
- # Loader
8
-
9
- [Компонент в Контур.Гайдах](https://guides.kontur.ru/components/progress-indicators/spinner/)
9
+ <Header component="Loader" guides="https://guides.kontur.ru/components/progress-indicators/spinner/" />
10
10
 
11
11
  <Description />
12
12
 
@@ -16,10 +16,7 @@ import { Meta } from '../../../.storybook/Meta';
16
16
 
17
17
  ## Пропы
18
18
 
19
- <details>
20
- <summary>Открыть таблицу с пропами</summary>
21
- <ArgTypes />
22
- </details>
19
+ <PropsTable />
23
20
 
24
21
  ## Примеры использования
25
22
 
@@ -1 +1 @@
1
- {"version":3,"names":["React","Tooltip","Button","Loader","LoaderAndButton","_React$Component","_this","_len","arguments","length","args","Array","_key","call","apply","concat","state","isTooltipOpened","_inheritsLoose","_proto","prototype","render","_this2","createElement","active","props","type","trigger","onClick","setState","isActive","Component"],"sources":["LoaderAndButton.tsx"],"sourcesContent":["import React from 'react';\n\nimport { Tooltip } from '../../Tooltip';\nimport { Button } from '../../Button';\nimport { Loader } from '../Loader';\nimport { LoaderProps } from '..';\n\ntype LoaderAndButtonProps = Pick<LoaderProps, 'active'>;\ninterface LoaderAndButtonState {\n isTooltipOpened: boolean;\n isActive?: boolean;\n}\nexport class LoaderAndButton extends React.Component<LoaderAndButtonProps, LoaderAndButtonState> {\n public state: LoaderAndButtonState = {\n isTooltipOpened: false,\n };\n\n public render() {\n return (\n <Loader active={this.props.active} type={'big'}>\n <h1>\n Yeah, and if you were the pope they&apos;d be all, &quot;Straighten your pope hat.&quot; And &quot;Put on your\n good vestments.&quot;\n </h1>\n <Tooltip render={() => 'Yes, you can!'} trigger={this.state.isTooltipOpened ? 'opened' : 'closed'}>\n <Button\n onClick={() => {\n this.setState({ isActive: true, isTooltipOpened: true });\n }}\n >\n Can you click me?\n </Button>\n </Tooltip>\n <p>\n No, I&apos;m Santa Claus! I guess if you want children beaten, you have to do it yourself. We&apos;re also\n Santa Claus! Leela, Bender, we&apos;re going grave robbing.\n </p>\n <p>\n Are you crazy? I can&apos;t swallow that. Large bet on myself in round one. Hey, whatcha watching?{' '}\n <strong> Moving along… I guess if you want children beaten, you have to do it yourself.</strong>\n <em>It&apos;s okay, Bender.</em> I like cooking too.\n </p>\n <h2>Oh, I think we should just stay friends.</h2>\n <p>\n No argument here. And when we woke up, we had these bodies. You guys go on without me! I&apos;m going to go…\n look for more stuff to steal! Oh, how awful. Did he at least die painlessly? …To shreds, you say. Well, how is\n his wife holding up? …To shreds, you say.\n </p>\n <ol>\n <li>No! The kind with looting and maybe starting a few fires!</li>\n <li>You are the last hope of the universe.</li>\n <li>Hey, guess what you&apos;re accessories to.</li>\n </ol>\n </Loader>\n );\n }\n}\n"],"mappings":"sEAAA,OAAOA,KAAK,MAAM,OAAO;;AAEzB,SAASC,OAAO,QAAQ,eAAe;AACvC,SAASC,MAAM,QAAQ,cAAc;AACrC,SAASC,MAAM,QAAQ,WAAW;;;;;;;;AAQlC,WAAaC,eAAe,0BAAAC,gBAAA,YAAAD,gBAAA,OAAAE,KAAA,UAAAC,IAAA,GAAAC,SAAA,CAAAC,MAAA,EAAAC,IAAA,OAAAC,KAAA,CAAAJ,IAAA,GAAAK,IAAA,MAAAA,IAAA,GAAAL,IAAA,EAAAK,IAAA,KAAAF,IAAA,CAAAE,IAAA,IAAAJ,SAAA,CAAAI,IAAA,GAAAN,KAAA,GAAAD,gBAAA,CAAAQ,IAAA,CAAAC,KAAA,CAAAT,gBAAA,SAAAU,MAAA,CAAAL,IAAA,WAAAJ,KAAA;IACnBU,KAAK,GAAyB;MACnCC,eAAe,EAAE;IACnB,CAAC,QAAAX,KAAA,EAAAY,cAAA,CAAAd,eAAA,EAAAC,gBAAA,MAAAc,MAAA,GAAAf,eAAA,CAAAgB,SAAA,CAAAD,MAAA;;EAEME,MAAM,GAAb,SAAAA,OAAA,EAAgB,KAAAC,MAAA;IACd;MACEtB,KAAA,CAAAuB,aAAA,CAACpB,MAAM,IAACqB,MAAM,EAAE,IAAI,CAACC,KAAK,CAACD,MAAO,EAACE,IAAI,EAAE,KAAM;MAC7C1B,KAAA,CAAAuB,aAAA,aAAI;;;MAGA,CAAC;MACLvB,KAAA,CAAAuB,aAAA,CAACtB,OAAO,IAACoB,MAAM,EAAE,SAAAA,OAAA,UAAM,eAAe,EAAC,EAACM,OAAO,EAAE,IAAI,CAACX,KAAK,CAACC,eAAe,GAAG,QAAQ,GAAG,QAAS;MAChGjB,KAAA,CAAAuB,aAAA,CAACrB,MAAM;QACL0B,OAAO,EAAE,SAAAA,QAAA,EAAM;UACbN,MAAI,CAACO,QAAQ,CAAC,EAAEC,QAAQ,EAAE,IAAI,EAAEb,eAAe,EAAE,IAAI,CAAC,CAAC,CAAC;QAC1D,CAAE;MACH;;MAEO;MACD,CAAC;MACVjB,KAAA,CAAAuB,aAAA,YAAG;;;MAGA,CAAC;MACJvB,KAAA,CAAAuB,aAAA,YAAG,+FACiG;MAAC,GAAG;MACtGvB,KAAA,CAAAuB,aAAA,iBAAQ,sFAAuF,CAAC;MAChGvB,KAAA,CAAAuB,aAAA,aAAI,oBAA2B,CAAC;MAC/B,CAAC;MACJvB,KAAA,CAAAuB,aAAA,aAAI,0CAA4C,CAAC;MACjDvB,KAAA,CAAAuB,aAAA,YAAG;;;;MAIA,CAAC;MACJvB,KAAA,CAAAuB,aAAA;MACEvB,KAAA,CAAAuB,aAAA,aAAI,2DAA6D,CAAC;MAClEvB,KAAA,CAAAuB,aAAA,aAAI,wCAA0C,CAAC;MAC/CvB,KAAA,CAAAuB,aAAA,aAAI,wCAA+C;MACjD;MACE,CAAC;;EAEb,CAAC,QAAAnB,eAAA,GA3CkCJ,KAAK,CAAC+B,SAAS","ignoreList":[]}
1
+ {"version":3,"names":["React","Tooltip","Button","Loader","LoaderAndButton","_React$Component","_this","_len","arguments","length","args","Array","_key","call","apply","concat","state","isTooltipOpened","_inheritsLoose","_proto","prototype","render","_this2","createElement","active","props","type","trigger","onClick","setState","isActive","Component"],"sources":["LoaderAndButton.tsx"],"sourcesContent":["import React from 'react';\n\nimport { Tooltip } from '../../Tooltip';\nimport { Button } from '../../Button';\nimport { Loader } from '../Loader';\nimport type { LoaderProps } from '..';\n\ntype LoaderAndButtonProps = Pick<LoaderProps, 'active'>;\ninterface LoaderAndButtonState {\n isTooltipOpened: boolean;\n isActive?: boolean;\n}\nexport class LoaderAndButton extends React.Component<LoaderAndButtonProps, LoaderAndButtonState> {\n public state: LoaderAndButtonState = {\n isTooltipOpened: false,\n };\n\n public render() {\n return (\n <Loader active={this.props.active} type={'big'}>\n <h1>\n Yeah, and if you were the pope they&apos;d be all, &quot;Straighten your pope hat.&quot; And &quot;Put on your\n good vestments.&quot;\n </h1>\n <Tooltip render={() => 'Yes, you can!'} trigger={this.state.isTooltipOpened ? 'opened' : 'closed'}>\n <Button\n onClick={() => {\n this.setState({ isActive: true, isTooltipOpened: true });\n }}\n >\n Can you click me?\n </Button>\n </Tooltip>\n <p>\n No, I&apos;m Santa Claus! I guess if you want children beaten, you have to do it yourself. We&apos;re also\n Santa Claus! Leela, Bender, we&apos;re going grave robbing.\n </p>\n <p>\n Are you crazy? I can&apos;t swallow that. Large bet on myself in round one. Hey, whatcha watching?{' '}\n <strong> Moving along… I guess if you want children beaten, you have to do it yourself.</strong>\n <em>It&apos;s okay, Bender.</em> I like cooking too.\n </p>\n <h2>Oh, I think we should just stay friends.</h2>\n <p>\n No argument here. And when we woke up, we had these bodies. You guys go on without me! I&apos;m going to go…\n look for more stuff to steal! Oh, how awful. Did he at least die painlessly? …To shreds, you say. Well, how is\n his wife holding up? …To shreds, you say.\n </p>\n <ol>\n <li>No! The kind with looting and maybe starting a few fires!</li>\n <li>You are the last hope of the universe.</li>\n <li>Hey, guess what you&apos;re accessories to.</li>\n </ol>\n </Loader>\n );\n }\n}\n"],"mappings":"sEAAA,OAAOA,KAAK,MAAM,OAAO;;AAEzB,SAASC,OAAO,QAAQ,eAAe;AACvC,SAASC,MAAM,QAAQ,cAAc;AACrC,SAASC,MAAM,QAAQ,WAAW;;;;;;;;AAQlC,WAAaC,eAAe,0BAAAC,gBAAA,YAAAD,gBAAA,OAAAE,KAAA,UAAAC,IAAA,GAAAC,SAAA,CAAAC,MAAA,EAAAC,IAAA,OAAAC,KAAA,CAAAJ,IAAA,GAAAK,IA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AAC;MACjDvB,KAAA,CAAAuB,aAAA,YAAG;;;;MAIA,CAAC;MACJvB,KAAA,CAAAuB,aAAA;MACEvB,KAAA,CAAAuB,aAAA,aAAI,2DAA6D,CAAC;MAClEvB,KAAA,CAAAuB,aAAA,aAAI,wCAA0C,CAAC;MAC/CvB,KAAA,CAAAuB,aAAA,aAAI,wCAA+C;MACjD;MACE,CAAC;;EAEb,CAAC,QAAAnB,eAAA,GA3CkCJ,KAAK,CAAC+B,SAAS","ignoreList":[]}
@@ -1,6 +1,7 @@
1
1
  import _extends from "@babel/runtime/helpers/esm/extends";
2
2
  import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/esm/objectWithoutPropertiesLoose";
3
3
  var _excluded = ["children", "onInput", "onFocus", "onBlur", "showOnFocus"]; /* eslint react-hooks/exhaustive-deps: 2 */
4
+
4
5
  import React, { useContext, useEffect, useImperativeHandle, useRef, useCallback, useState } from 'react';
5
6
  import { globalObject, isBrowser } from '@skbkontur/global-object';
6
7
  import debounce from 'lodash.debounce';
@@ -1 +1 @@
1
- {"version":3,"names":["React","useContext","useEffect","useImperativeHandle","useRef","useCallback","useState","globalObject","isBrowser","debounce","ThemeContext","forwardRefAndName","cx","globalClasses","ColorableInputElement","props","ref","inputRef","spanRef","focused","inputStyle","theme","_useState","active","setActive","children","onInput","onFocus","onBlur","showOnFocus","inputProps","_objectWithoutPropertiesLoose","_excluded","input","current","getRootNode","updateActive","paintText","_inputRef$current","_shadow","classList","add","shadow","shadowRoot","typedValueElement","getElementById","attachShadow","mode","document","createElement","setAttribute","appendChild","style","textContent","getAttribute","inputRect","getBoundingClientRect","filledRect","threshold","width","degree","fontStyle","typedValueColor","inputTextColor","maskColor","inputPlaceholderColor","disabled","inputTextColorDisabled","backgroundImage","debouncedPaintText","activation","_inputRef$current2","cancel","remove","value","defaultValue","getComputedStyle","Fragment","cloneElement","_extends","handleInput","handleFocus","handleBlur","className","visibility","position","whiteSpace","e","_inputRef$current3","isActive","parentElement","querySelector","setTimeout","_inputRef$current4"],"sources":["ColorableInputElement.tsx"],"sourcesContent":["/* eslint react-hooks/exhaustive-deps: 2 */\nimport React, { ForwardedRef, useContext, useEffect, useImperativeHandle, useRef, useCallback, useState } from 'react';\nimport { globalObject, isBrowser } from '@skbkontur/global-object';\nimport debounce from 'lodash.debounce';\n\nimport { ThemeContext } from '../../../lib/theming/ThemeContext';\nimport { InputElement, InputElementProps } from '../../Input';\nimport { forwardRefAndName } from '../../../lib/forwardRefAndName';\nimport { cx } from '../../../lib/theming/Emotion';\n\nimport { globalClasses } from './ColorableInputElement.styles';\n\nexport type ColorableInputElementProps = InputElementProps & {\n showOnFocus?: boolean;\n children: React.ReactElement;\n};\n\n// Возможно придётся включить.\n// Иногда, на тяжёлых страницах, текст рендерится итеративно.\n// Из-за этого могут оставаться артефакты при покраске компонента, которые пропадут только после фокуса.\n// setInterval(() => window.requestAnimationFrame(() => dictionary.forEach((paint) => paint())), 1000);\n\nexport const ColorableInputElement = forwardRefAndName(\n 'ColorableInputElement',\n function ColorableInputElement(props: ColorableInputElementProps, ref: ForwardedRef<InputElement>) {\n const inputRef = useRef<HTMLInputElement | null>(null);\n const spanRef = useRef<HTMLSpanElement | null>(null);\n const focused = useRef(false);\n const inputStyle = React.useRef<CSSStyleDeclaration>();\n const theme = useContext(ThemeContext);\n const [active, setActive] = useState(true);\n\n const { children, onInput, onFocus, onBlur, showOnFocus, ...inputProps } = props;\n\n useImperativeHandle(\n ref,\n () => ({\n input: inputRef.current,\n getRootNode: () => inputRef.current,\n }),\n [],\n );\n\n useEffect(updateActive, []);\n\n const paintText = useCallback(() => {\n if (!spanRef.current || !inputRef.current || !inputStyle.current || !isBrowser(globalObject)) {\n return;\n }\n\n inputRef.current?.classList.add(globalClasses.input);\n\n let shadow = spanRef.current.shadowRoot;\n let typedValueElement = shadow?.getElementById('span');\n\n if (!typedValueElement) {\n shadow = spanRef.current.attachShadow({ mode: 'open' });\n\n typedValueElement = globalObject.document.createElement('span');\n typedValueElement.setAttribute('id', 'span');\n\n shadow.appendChild(typedValueElement);\n }\n\n const style = inputStyle.current;\n\n typedValueElement.textContent =\n ((inputRef.current.getAttribute('data-unmasked-value') || focused.current) &&\n inputRef.current.getAttribute('data-typed-value')) ||\n '';\n\n const inputRect = inputRef.current.getBoundingClientRect();\n const filledRect = spanRef.current.getBoundingClientRect();\n\n const threshold = filledRect.width / (inputRect.width / 100);\n const degree = style.fontStyle === 'italic' ? 100 : 90;\n\n let typedValueColor = theme.inputTextColor;\n let maskColor = theme.inputPlaceholderColor;\n if (props.disabled) {\n typedValueColor = theme.inputTextColorDisabled;\n maskColor = theme.inputTextColorDisabled;\n }\n if (props.showOnFocus) {\n maskColor = focused.current ? maskColor : 'transparent';\n }\n\n inputRef.current.style.backgroundImage = `\n linear-gradient(\n ${degree}deg,\n ${typedValueColor} ${threshold}%,\n ${maskColor} ${threshold}%\n )`;\n }, [\n props.showOnFocus,\n props.disabled,\n theme.inputTextColor,\n theme.inputPlaceholderColor,\n theme.inputTextColorDisabled,\n ]);\n\n const debouncedPaintText = useCallback(() => debounce(paintText), [paintText])();\n\n const activation = useCallback(() => {\n if (active) {\n debouncedPaintText();\n } else {\n debouncedPaintText.cancel();\n inputRef.current && (inputRef.current.style.backgroundImage = '');\n inputRef.current?.classList.remove(globalClasses.input);\n }\n }, [debouncedPaintText, active]);\n\n useEffect(() => {\n activation();\n updateActive();\n }, [props.value, props.defaultValue, theme, activation]);\n\n useEffect(() => {\n if (inputRef.current) {\n inputStyle.current = getComputedStyle(inputRef.current);\n }\n });\n\n return (\n <>\n {React.cloneElement(children, {\n ...inputProps,\n onInput: handleInput,\n onFocus: handleFocus,\n onBlur: handleBlur,\n inputRef,\n className: cx(props.className, active && globalClasses.input),\n })}\n {active && <span style={{ visibility: 'hidden', position: 'absolute', whiteSpace: 'pre' }} ref={spanRef} />}\n </>\n );\n\n function handleInput(e: React.ChangeEvent<HTMLInputElement>) {\n const isActive = !inputRef.current?.parentElement?.querySelector(':placeholder-shown');\n setActive(isActive);\n\n activation();\n\n onInput?.(e);\n }\n\n function handleFocus(e: React.FocusEvent<HTMLInputElement>) {\n setTimeout(updateActive);\n\n focused.current = true;\n\n onFocus?.(e);\n }\n\n function handleBlur(e: React.FocusEvent<HTMLInputElement>) {\n updateActive();\n\n focused.current = false;\n\n onBlur?.(e);\n }\n\n function updateActive() {\n setTimeout(() => {\n setActive(!inputRef.current?.parentElement?.querySelector(':placeholder-shown'));\n });\n }\n },\n);\n"],"mappings":"2OAAA;AACA,OAAOA,KAAK,IAAkBC,UAAU,EAAEC,SAAS,EAAEC,mBAAmB,EAAEC,MAAM,EAAEC,WAAW,EAAEC,QAAQ,QAAQ,OAAO;AACtH,SAASC,YAAY,EAAEC,SAAS,QAAQ,0BAA0B;AAClE,OAAOC,QAAQ,MAAM,iBAAiB;;AAEtC,SAASC,YAAY,QAAQ,mCAAmC;;AAEhE,SAASC,iBAAiB,QAAQ,gCAAgC;AAClE,SAASC,EAAE,QAAQ,8BAA8B;;AAEjD,SAASC,aAAa,QAAQ,gCAAgC;;;;;;;AAO9D;AACA;AACA;AACA;;AAEA,OAAO,IAAMC,qBAAqB,GAAGH,iBAAiB;EACpD,uBAAuB;EACvB,SAASG,qBAAqBA,CAACC,KAAiC,EAAEC,GAA+B,EAAE;IACjG,IAAMC,QAAQ,GAAGb,MAAM,CAA0B,IAAI,CAAC;IACtD,IAAMc,OAAO,GAAGd,MAAM,CAAyB,IAAI,CAAC;IACpD,IAAMe,OAAO,GAAGf,MAAM,CAAC,KAAK,CAAC;IAC7B,IAAMgB,UAAU,GAAGpB,KAAK,CAACI,MAAM,CAAsB,CAAC;IACtD,IAAMiB,KAAK,GAAGpB,UAAU,CAACS,YAAY,CAAC;IACtC,IAAAY,SAAA,GAA4BhB,QAAQ,CAAC,IAAI,CAAC,CAAnCiB,MAAM,GAAAD,SAAA,IAAEE,SAAS,GAAAF,SAAA;;IAExB,IAAQG,QAAQ,GAA2DV,KAAK,CAAxEU,QAAQ,CAA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CAAC,oBAAoB,CAAC,EAAC;MAClF,CAAC,CAAC;IACJ;EACF;AACF,CAAC","ignoreList":[]}
1
+ {"version":3,"names":["React","useContext","useEffect","useImperativeHandle","useRef","useCallback","useState","globalObject","isBrowser","debounce","ThemeContext","forwardRefAndName","cx","globalClasses","ColorableInputElement","props","ref","inputRef","spanRef","focused","inputStyle","theme","_useState","active","setActive","children","onInput","onFocus","onBlur","showOnFocus","inputProps","_objectWithoutPropertiesLoose","_excluded","input","current","getRootNode","updateActive","paintText","_inputRef$current","_shadow","classList","add","shadow","shadowRoot","typedValueElement","getElementById","attachShadow","mode","document","createElement","setAttribute","appendChild","style","textContent","getAttribute","inputRect","getBoundingClientRect","filledRect","threshold","width","degree","fontStyle","typedValueColor","inputTextColor","maskColor","inputPlaceholderColor","disabled","inputTextColorDisabled","backgroundImage","debouncedPaintText","activation","_inputRef$current2","cancel","remove","value","defaultValue","getComputedStyle","Fragment","cloneElement","_extends","handleInput","handleFocus","handleBlur","className","visibility","position","whiteSpace","e","_inputRef$current3","isActive","parentElement","querySelector","setTimeout","_inputRef$current4"],"sources":["ColorableInputElement.tsx"],"sourcesContent":["/* eslint react-hooks/exhaustive-deps: 2 */\nimport type { ForwardedRef } from 'react';\nimport React, { useContext, useEffect, useImperativeHandle, useRef, useCallback, useState } from 'react';\nimport { globalObject, isBrowser } from '@skbkontur/global-object';\nimport debounce from 'lodash.debounce';\n\nimport { ThemeContext } from '../../../lib/theming/ThemeContext';\nimport type { InputElement, InputElementProps } from '../../Input';\nimport { forwardRefAndName } from '../../../lib/forwardRefAndName';\nimport { cx } from '../../../lib/theming/Emotion';\n\nimport { globalClasses } from './ColorableInputElement.styles';\n\nexport type ColorableInputElementProps = InputElementProps & {\n showOnFocus?: boolean;\n children: React.ReactElement;\n};\n\n// Возможно придётся включить.\n// Иногда, на тяжёлых страницах, текст рендерится итеративно.\n// Из-за этого могут оставаться артефакты при покраске компонента, которые пропадут только после фокуса.\n// setInterval(() => window.requestAnimationFrame(() => dictionary.forEach((paint) => paint())), 1000);\n\nexport const ColorableInputElement = forwardRefAndName(\n 'ColorableInputElement',\n function ColorableInputElement(props: ColorableInputElementProps, ref: ForwardedRef<InputElement>) {\n const inputRef = useRef<HTMLInputElement | null>(null);\n const spanRef = useRef<HTMLSpanElement | null>(null);\n const focused = useRef(false);\n const inputStyle = React.useRef<CSSStyleDeclaration>();\n const theme = useContext(ThemeContext);\n const [active, setActive] = useState(true);\n\n const { children, onInput, onFocus, onBlur, showOnFocus, ...inputProps } = props;\n\n useImperativeHandle(\n ref,\n () => ({\n input: inputRef.current,\n getRootNode: () => inputRef.current,\n }),\n [],\n );\n\n useEffect(updateActive, []);\n\n const paintText = useCallback(() => {\n if (!spanRef.current || !inputRef.current || !inputStyle.current || !isBrowser(globalObject)) {\n return;\n }\n\n inputRef.current?.classList.add(globalClasses.input);\n\n let shadow = spanRef.current.shadowRoot;\n let typedValueElement = shadow?.getElementById('span');\n\n if (!typedValueElement) {\n shadow = spanRef.current.attachShadow({ mode: 'open' });\n\n typedValueElement = globalObject.document.createElement('span');\n typedValueElement.setAttribute('id', 'span');\n\n shadow.appendChild(typedValueElement);\n }\n\n const style = inputStyle.current;\n\n typedValueElement.textContent =\n ((inputRef.current.getAttribute('data-unmasked-value') || focused.current) &&\n inputRef.current.getAttribute('data-typed-value')) ||\n '';\n\n const inputRect = inputRef.current.getBoundingClientRect();\n const filledRect = spanRef.current.getBoundingClientRect();\n\n const threshold = filledRect.width / (inputRect.width / 100);\n const degree = style.fontStyle === 'italic' ? 100 : 90;\n\n let typedValueColor = theme.inputTextColor;\n let maskColor = theme.inputPlaceholderColor;\n if (props.disabled) {\n typedValueColor = theme.inputTextColorDisabled;\n maskColor = theme.inputTextColorDisabled;\n }\n if (props.showOnFocus) {\n maskColor = focused.current ? maskColor : 'transparent';\n }\n\n inputRef.current.style.backgroundImage = `\n linear-gradient(\n ${degree}deg,\n ${typedValueColor} ${threshold}%,\n ${maskColor} ${threshold}%\n )`;\n }, [\n props.showOnFocus,\n props.disabled,\n theme.inputTextColor,\n theme.inputPlaceholderColor,\n theme.inputTextColorDisabled,\n ]);\n\n const debouncedPaintText = useCallback(() => debounce(paintText), [paintText])();\n\n const activation = useCallback(() => {\n if (active) {\n debouncedPaintText();\n } else {\n debouncedPaintText.cancel();\n inputRef.current && (inputRef.current.style.backgroundImage = '');\n inputRef.current?.classList.remove(globalClasses.input);\n }\n }, [debouncedPaintText, active]);\n\n useEffect(() => {\n activation();\n updateActive();\n }, [props.value, props.defaultValue, theme, activation]);\n\n useEffect(() => {\n if (inputRef.current) {\n inputStyle.current = getComputedStyle(inputRef.current);\n }\n });\n\n return (\n <>\n {React.cloneElement(children, {\n ...inputProps,\n onInput: handleInput,\n onFocus: handleFocus,\n onBlur: handleBlur,\n inputRef,\n className: cx(props.className, active && globalClasses.input),\n })}\n {active && <span style={{ visibility: 'hidden', position: 'absolute', whiteSpace: 'pre' }} ref={spanRef} />}\n </>\n );\n\n function handleInput(e: React.ChangeEvent<HTMLInputElement>) {\n const isActive = !inputRef.current?.parentElement?.querySelector(':placeholder-shown');\n setActive(isActive);\n\n activation();\n\n onInput?.(e);\n }\n\n function handleFocus(e: React.FocusEvent<HTMLInputElement>) {\n setTimeout(updateActive);\n\n focused.current = true;\n\n onFocus?.(e);\n }\n\n function handleBlur(e: React.FocusEvent<HTMLInputElement>) {\n updateActive();\n\n focused.current = false;\n\n onBlur?.(e);\n }\n\n function updateActive() {\n setTimeout(() => {\n setActive(!inputRef.current?.parentElement?.querySelector(':placeholder-shown'));\n });\n }\n },\n);\n"],"mappings":"2OAAA;;AAEA,OAAOA,KAAK,IAAIC,UAAU,EAAEC,SAAS,EAAEC,mBAAmB,EAAEC,MAAM,EAAEC,WAAW,EAAEC,QAAQ,QAAQ,OAAO;AACxG,SAASC,YAAY,EAAEC,SAAS,QAAQ,0BAA0B;AAClE,OAAOC,QAAQ,MAAM,iBAAiB;;AAEtC,SAASC,YAAY,QAAQ,mCAAmC;;AAEhE,S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C,oBAAoB,CAAC;MACtFnE,SAAS,CAACiE,QAAQ,CAAC;;MAEnBnB,UAAU,CAAC,CAAC;;MAEZ5C,OAAO,YAAPA,OAAO,CAAG6D,CAAC,CAAC;IACd;;IAEA,SAASN,WAAWA,CAACM,CAAqC,EAAE;MAC1DK,UAAU,CAACxD,YAAY,CAAC;;MAExBjB,OAAO,CAACe,OAAO,GAAG,IAAI;;MAEtBP,OAAO,YAAPA,OAAO,CAAG4D,CAAC,CAAC;IACd;;IAEA,SAASL,UAAUA,CAACK,CAAqC,EAAE;MACzDnD,YAAY,CAAC,CAAC;;MAEdjB,OAAO,CAACe,OAAO,GAAG,KAAK;;MAEvBN,MAAM,YAANA,MAAM,CAAG2D,CAAC,CAAC;IACb;;IAEA,SAASnD,YAAYA,CAAA,EAAG;MACtBwD,UAAU,CAAC,YAAM,KAAAC,kBAAA;QACfrE,SAAS,CAAC,GAAAqE,kBAAA,GAAC5E,QAAQ,CAACiB,OAAO,cAAA2D,kBAAA,GAAhBA,kBAAA,CAAkBH,aAAa,aAA/BG,kBAAA,CAAiCF,aAAa,CAAC,oBAAoB,CAAC,EAAC;MAClF,CAAC,CAAC;IACJ;EACF;AACF,CAAC","ignoreList":[]}
@@ -1,5 +1,5 @@
1
1
  import React from 'react';
2
- import { InputElement, InputElementProps } from '../../Input';
2
+ import type { InputElement, InputElementProps } from '../../Input';
3
3
  export type ColorableInputElementProps = InputElementProps & {
4
4
  showOnFocus?: boolean;
5
5
  children: React.ReactElement;
@@ -2,7 +2,7 @@ import _extends from "@babel/runtime/helpers/esm/extends";
2
2
  import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/esm/objectWithoutPropertiesLoose";
3
3
  var _excluded = ["inputRef"];
4
4
  import React, { useEffect, useImperativeHandle, useRef } from 'react';
5
- import { IMaskInput } from 'react-imask';
5
+ import { IMaskInput } from '@skbkontur/react-imask';
6
6
  import { forwardRefAndName } from "../../../lib/forwardRefAndName";
7
7
  import { isKeyArrow, isKeyArrowHorizontal, isKeyArrowLeft, isKeyArrowUp, isKeyEnd, isKeyHome, isModShift, isShortcutJumpCaret, isShortcutSelectAll, someKeys } from "../../../lib/events/keyboard/identifiers";
8
8
  import { MouseDrag } from "../../../lib/events/MouseDrag";
@@ -1 +1 @@
1
- {"version":3,"names":["React","useEffect","useImperativeHandle","useRef","IMaskInput","forwardRefAndName","isKeyArrow","isKeyArrowHorizontal","isKeyArrowLeft","isKeyArrowUp","isKeyEnd","isKeyHome","isModShift","isShortcutJumpCaret","isShortcutSelectAll","someKeys","MouseDrag","FixedIMaskInput","props","ref","inputRef","restProps","_objectWithoutPropertiesLoose","_excluded","imaskRef","focused","_imaskRef$current","current","element","fillTypedValue","mouseDrag","listen","onMouseDragEnd","e","_imaskRef$current2","_imaskRef$current3","direction","mouseDragStartEvent","selectionStart","selectionEnd","pageX","_getSelection","getSelection","start","end","setSelection","createElement","_extends","onKeyDown","handleKeyDown","onFocus","handleFocus","onBlur","handleBlur","onMouseUp","handleMouseUp","onAccept","handleAccept","onInput","handleInput","getTypedValue","_imaskRef$current4","_ref","maskRef","masked","_ref$_value","_value","_ref$displayValue","displayValue","getMaxCaretPosition","value","slice","_imaskRef$current5","_imaskRef$current6","_imaskRef$current7","setAttribute","unmaskedValue","maskChars","push","placeholderChar","blocks","Object","values","forEach","_ref2","split","RegExp","join","length","Infinity","normalizeSelection","_getSelection2","max","getNormalizedRange","calc","Math","min","selectionDirection","_imaskRef$current8","_len","arguments","_ref3","Array","_key","setSelectionRange","jumpCaret","prev","headDirection","_imaskRef$current9","word","valueOf","wordRegExp","next","match","reduce","s","a","pos","concat","calcSelection","_getSelection3","isSelectionMode","tail","head","step","increment","setTimeout","_len2","args","_key2","apply","_imaskRef$current10","unmask","rawInputValue","nativeEvent","nearest","preventDefault","_calcSelection"],"sources":["FixedIMaskInput.tsx"],"sourcesContent":["import React, { useEffect, useImperativeHandle, useRef } from 'react';\nimport { InputMask, MaskedPatternOptions } from 'imask';\nimport { IMaskInput, IMaskInputProps } from 'react-imask';\n\nimport { forwardRefAndName } from '../../lib/forwardRefAndName';\nimport {\n isKeyArrow,\n isKeyArrowHorizontal,\n isKeyArrowLeft,\n isKeyArrowUp,\n isKeyEnd,\n isKeyHome,\n isModShift,\n isShortcutJumpCaret,\n isShortcutSelectAll,\n someKeys,\n} from '../../lib/events/keyboard/identifiers';\nimport { MouseDrag } from '../../lib/events/MouseDrag';\n\nexport type FixedIMaskInputProps = IMaskInputProps<HTMLInputElement>;\n\ntype HeadDirection = 'left' | 'right';\ntype SelectionDirection = 'forward' | 'backward' | 'none';\ntype SelectionSet = [number, number, SelectionDirection];\n\ninterface IMaskRefType {\n maskRef: InputMask<MaskedPatternOptions>;\n element: HTMLInputElement;\n}\n\nexport const FixedIMaskInput = forwardRefAndName(\n 'FixedIMaskInput',\n function FixedIMaskInput(props: FixedIMaskInputProps, ref: React.Ref<IMaskRefType | null>) {\n const { inputRef, ...restProps } = props;\n const imaskRef = useRef<IMaskRefType>(null);\n const focused = useRef(false);\n\n useEffect(() => {\n if (imaskRef.current?.element) {\n fillTypedValue();\n const mouseDrag = MouseDrag.listen(imaskRef.current.element).onMouseDragEnd((e) => {\n let direction: SelectionDirection = 'none';\n\n if (\n mouseDrag.mouseDragStartEvent &&\n imaskRef.current?.element.selectionStart !== imaskRef.current?.element.selectionEnd\n ) {\n direction = mouseDrag.mouseDragStartEvent.pageX > e.pageX ? 'backward' : 'forward';\n }\n\n const [start, end] = getSelection();\n setSelection(start, end, direction);\n });\n }\n }, []);\n\n useImperativeHandle(ref, () => imaskRef.current, []);\n\n return (\n <IMaskInput\n {...restProps}\n ref={imaskRef}\n inputRef={inputRef}\n onKeyDown={handleKeyDown}\n onFocus={handleFocus}\n onBlur={handleBlur}\n onMouseUp={handleMouseUp}\n onAccept={handleAccept}\n onInput={handleInput}\n />\n );\n\n function getTypedValue() {\n const { _value = '', displayValue = '' } = imaskRef.current?.maskRef.masked || {};\n const end = getMaxCaretPosition();\n const value = _value !== '' || focused.current === true ? displayValue : '';\n\n return value.slice(0, end);\n }\n\n function fillTypedValue() {\n imaskRef.current?.element.setAttribute('data-typed-value', getTypedValue());\n imaskRef.current?.element.setAttribute('data-unmasked-value', imaskRef.current?.maskRef.unmaskedValue);\n }\n\n function getMaxCaretPosition(): number {\n const maskChars = [];\n if (imaskRef.current) {\n maskChars.push(imaskRef.current.maskRef.masked.placeholderChar);\n if (imaskRef.current.maskRef.masked.blocks) {\n (Object.values(imaskRef.current.maskRef.masked.blocks) as Array<{ placeholderChar?: string }>).forEach(\n ({ placeholderChar }) => placeholderChar && maskChars.push(placeholderChar),\n );\n }\n return imaskRef.current.element.value.split(new RegExp(maskChars.join('|')))[0].length;\n }\n\n return Infinity;\n }\n\n function normalizeSelection() {\n const [start, end] = getSelection();\n const max = getMaxCaretPosition();\n if (end > max) {\n setSelection(start, max);\n }\n }\n\n function getNormalizedRange(calc: number | unknown) {\n return typeof calc === 'number' ? Math.min(getMaxCaretPosition(), Math.max(0, calc)) : 0;\n }\n\n function getSelection(): SelectionSet {\n if (imaskRef.current) {\n return [\n imaskRef.current.element.selectionStart || 0,\n imaskRef.current.element.selectionEnd || 0,\n imaskRef.current.element.selectionDirection || 'none',\n ];\n }\n return [0, 0, 'none'];\n }\n\n function setSelection(...[start, end, direction]: Parameters<HTMLInputElement['setSelectionRange']>) {\n imaskRef.current?.element.setSelectionRange(\n getNormalizedRange(start),\n getNormalizedRange(end),\n direction || 'none',\n );\n }\n\n function jumpCaret(prev: number, headDirection: HeadDirection) {\n const word = /а-яa-z0-9_/.valueOf();\n const wordRegExp = new RegExp(`([${word}])+[\\\\s]*|([^${word}])+`, 'gi');\n let next = headDirection === 'right' ? prev : 0;\n imaskRef.current?.element.value.match(wordRegExp)?.reduce<number[]>((s, a) => {\n const pos = a.length + (s.slice(-1)[0] || 0);\n if (headDirection === 'right' && next === prev && next < pos) {\n next = getNormalizedRange(pos);\n } else if (headDirection === 'left' && prev > pos) {\n next = getNormalizedRange(pos);\n }\n return [...s, pos];\n }, []);\n return next;\n }\n\n /**\n * Вычислят положение каретки при управлении клавишами\n * @param e\n */\n function calcSelection(e: React.KeyboardEvent<HTMLInputElement>): SelectionSet {\n const [start, end, direction] = getSelection();\n const isSelectionMode = isModShift()(e);\n let tail = start !== end && direction === 'backward' ? end : start;\n let head = start !== end && direction === 'backward' ? start : end;\n const headDirection: HeadDirection = someKeys(isKeyArrowLeft, isKeyArrowUp, isKeyHome)(e) ? 'left' : 'right';\n const step = isKeyArrowHorizontal(e) ? 1 : Infinity;\n const increment = headDirection === 'left' ? -step : step;\n if (isShortcutJumpCaret(e)) {\n head = jumpCaret(head, headDirection);\n } else if (head !== tail && !isSelectionMode && isKeyArrowHorizontal(e)) {\n head = headDirection === 'right' ? Math.max(tail, head) : Math.min(tail, head);\n } else {\n head = head + increment;\n }\n if (isSelectionMode) {\n const start = Math.min(tail, head);\n const end = Math.max(tail, head);\n return [getNormalizedRange(start), getNormalizedRange(end), end === head ? 'forward' : 'backward'];\n }\n tail = head;\n return [getNormalizedRange(tail), getNormalizedRange(head), 'none'];\n }\n\n function handleMouseUp(e: React.MouseEvent<HTMLInputElement>) {\n normalizeSelection();\n\n props.onMouseUp?.(e);\n }\n\n function handleFocus(e: React.FocusEvent<HTMLInputElement>) {\n focused.current = true;\n fillTypedValue();\n\n setTimeout(normalizeSelection);\n\n props.onFocus?.(e);\n }\n\n function handleBlur(e: React.FocusEvent<HTMLInputElement>) {\n focused.current = false;\n fillTypedValue();\n\n props.onBlur?.(e);\n }\n\n function handleAccept(...args: Parameters<Required<IMaskInputProps<HTMLInputElement>>['onAccept']>) {\n fillTypedValue();\n\n props.onAccept?.(...args);\n }\n\n function handleInput(e: React.ChangeEvent<HTMLInputElement>) {\n const maskRef = imaskRef.current?.maskRef;\n if (restProps.unmask && maskRef && maskRef.rawInputValue === '' && maskRef.unmaskedValue !== '') {\n // Для случаев, когда в value остаются только зафиксированные - {} - очищаем value полностью\n props.onAccept?.('', maskRef, e.nativeEvent as InputEvent);\n }\n\n props.onInput?.(e);\n }\n\n function handleKeyDown(e: React.KeyboardEvent<HTMLInputElement>) {\n const nearest = getMaxCaretPosition();\n if (isShortcutSelectAll(e)) {\n e.preventDefault();\n setSelection(0, nearest);\n } else if (isKeyArrow(e) || isKeyEnd(e) || isKeyHome(e)) {\n e.preventDefault();\n const [start, end, direction] = calcSelection(e);\n setSelection(start, end, direction);\n }\n\n props.onKeyDown?.(e);\n }\n },\n);\n"],"mappings":"2LAAA,OAAOA,KAAK,IAAIC,SAAS,EAAEC,mBAAmB,EAAEC,MAAM,QAAQ,OAAO;;AAErE,SAASC,UAAU,QAAyB,aAAa;;AAEzD,SAASC,iBAAiB,QAAQ,6BAA6B;AAC/D;EACEC,UAAU;EACVC,oBAAoB;EACpBC,cAAc;EACdC,YAAY;EACZC,QAAQ;EACRC,SAAS;EACTC,UAAU;EACVC,mBAAmB;EACnBC,mBAAmB;EACnBC,QAAQ;AACH,uCAAuC;AAC9C,SAASC,SAAS,QAAQ,4BAA4B;;;;;;;;;;;;;AAatD,OAAO,IAAMC,eAAe,GAAGZ,iBAAiB;EAC9C,iBAAiB;EACjB,SAASY,eAAeA,CAACC,KAA2B,EAAEC,GAAmC,EAAE;IACzF,IAAQC,QAAQ,GAAmBF,KAAK,CAAhCE,QAAQ,CAAKC,SAAS,GAAAC,6BAAA,CAAKJ,KAAK,EAAAK,SAAA;IACxC,IAAMC,QAAQ,GAAGrB,MAAM,CAAe,IAAI,CAAC;IAC3C,IAAMsB,OAAO,GAAGtB,MAAM,CAAC,KAAK,CAAC;;IAE7BF,SAAS,CAAC,YAAM,KAAAyB,iBAAA;MACd,KAAAA,iBAAA,GAAIF,QAAQ,CAACG,OAAO,aAAhBD,iBAAA,CAAkBE,OAAO,EAAE;QAC7BC,cAAc,CAAC,CAAC;QAChB,IAAMC,SAAS,GAAGd,SAAS,CAACe,MAAM,CAACP,QAAQ,CAACG,OAAO,CAACC,OAAO,CAAC,CAACI,cAAc,CAAC,UAACC,CAAC,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C,CAACuG,cAAc,CAAC,CAAC;QAClB,IAAAC,cAAA,GAAgClB,aAAa,CAACtF,CAAC,CAAC,CAAzCU,KAAK,GAAA8F,cAAA,IAAE7F,GAAG,GAAA6F,cAAA,IAAErG,SAAS,GAAAqG,cAAA;QAC5B5F,YAAY,CAACF,KAAK,EAAEC,GAAG,EAAER,SAAS,CAAC;MACrC;;MAEAlB,KAAK,CAAC8B,SAAS,YAAf9B,KAAK,CAAC8B,SAAS,CAAGf,CAAC,CAAC;IACtB;EACF;AACF,CAAC","ignoreList":[]}
1
+ {"version":3,"names":["React","useEffect","useImperativeHandle","useRef","IMaskInput","forwardRefAndName","isKeyArrow","isKeyArrowHorizontal","isKeyArrowLeft","isKeyArrowUp","isKeyEnd","isKeyHome","isModShift","isShortcutJumpCaret","isShortcutSelectAll","someKeys","MouseDrag","FixedIMaskInput","props","ref","inputRef","restProps","_objectWithoutPropertiesLoose","_excluded","imaskRef","focused","_imaskRef$current","current","element","fillTypedValue","mouseDrag","listen","onMouseDragEnd","e","_imaskRef$current2","_imaskRef$current3","direction","mouseDragStartEvent","selectionStart","selectionEnd","pageX","_getSelection","getSelection","start","end","setSelection","createElement","_extends","onKeyDown","handleKeyDown","onFocus","handleFocus","onBlur","handleBlur","onMouseUp","handleMouseUp","onAccept","handleAccept","onInput","handleInput","getTypedValue","_imaskRef$current4","_ref","maskRef","masked","_ref$_value","_value","_ref$displayValue","displayValue","getMaxCaretPosition","value","slice","_imaskRef$current5","_imaskRef$current6","_imaskRef$current7","setAttribute","unmaskedValue","maskChars","push","placeholderChar","blocks","Object","values","forEach","_ref2","split","RegExp","join","length","Infinity","normalizeSelection","_getSelection2","max","getNormalizedRange","calc","Math","min","selectionDirection","_imaskRef$current8","_len","arguments","_ref3","Array","_key","setSelectionRange","jumpCaret","prev","headDirection","_imaskRef$current9","word","valueOf","wordRegExp","next","match","reduce","s","a","pos","concat","calcSelection","_getSelection3","isSelectionMode","tail","head","step","increment","setTimeout","_len2","args","_key2","apply","_imaskRef$current10","unmask","rawInputValue","nativeEvent","nearest","preventDefault","_calcSelection"],"sources":["FixedIMaskInput.tsx"],"sourcesContent":["import React, { useEffect, useImperativeHandle, useRef } from 'react';\nimport type { InputMask, MaskedPatternOptions } from '@skbkontur/imask';\nimport type { IMaskInputProps } from '@skbkontur/react-imask';\nimport { IMaskInput } from '@skbkontur/react-imask';\n\nimport { forwardRefAndName } from '../../lib/forwardRefAndName';\nimport {\n isKeyArrow,\n isKeyArrowHorizontal,\n isKeyArrowLeft,\n isKeyArrowUp,\n isKeyEnd,\n isKeyHome,\n isModShift,\n isShortcutJumpCaret,\n isShortcutSelectAll,\n someKeys,\n} from '../../lib/events/keyboard/identifiers';\nimport { MouseDrag } from '../../lib/events/MouseDrag';\n\nexport type FixedIMaskInputProps = IMaskInputProps<HTMLInputElement>;\n\ntype HeadDirection = 'left' | 'right';\ntype SelectionDirection = 'forward' | 'backward' | 'none';\ntype SelectionSet = [number, number, SelectionDirection];\n\ninterface IMaskRefType {\n maskRef: InputMask<MaskedPatternOptions>;\n element: HTMLInputElement;\n}\n\nexport const FixedIMaskInput = forwardRefAndName(\n 'FixedIMaskInput',\n function FixedIMaskInput(props: FixedIMaskInputProps, ref: React.Ref<IMaskRefType | null>) {\n const { inputRef, ...restProps } = props;\n const imaskRef = useRef<IMaskRefType>(null);\n const focused = useRef(false);\n\n useEffect(() => {\n if (imaskRef.current?.element) {\n fillTypedValue();\n const mouseDrag = MouseDrag.listen(imaskRef.current.element).onMouseDragEnd((e) => {\n let direction: SelectionDirection = 'none';\n\n if (\n mouseDrag.mouseDragStartEvent &&\n imaskRef.current?.element.selectionStart !== imaskRef.current?.element.selectionEnd\n ) {\n direction = mouseDrag.mouseDragStartEvent.pageX > e.pageX ? 'backward' : 'forward';\n }\n\n const [start, end] = getSelection();\n setSelection(start, end, direction);\n });\n }\n }, []);\n\n useImperativeHandle(ref, () => imaskRef.current, []);\n\n return (\n <IMaskInput\n {...restProps}\n ref={imaskRef}\n inputRef={inputRef}\n onKeyDown={handleKeyDown}\n onFocus={handleFocus}\n onBlur={handleBlur}\n onMouseUp={handleMouseUp}\n onAccept={handleAccept}\n onInput={handleInput}\n />\n );\n\n function getTypedValue() {\n const { _value = '', displayValue = '' } = imaskRef.current?.maskRef.masked || {};\n const end = getMaxCaretPosition();\n const value = _value !== '' || focused.current === true ? displayValue : '';\n\n return value.slice(0, end);\n }\n\n function fillTypedValue() {\n imaskRef.current?.element.setAttribute('data-typed-value', getTypedValue());\n imaskRef.current?.element.setAttribute('data-unmasked-value', imaskRef.current?.maskRef.unmaskedValue);\n }\n\n function getMaxCaretPosition(): number {\n const maskChars = [];\n if (imaskRef.current) {\n maskChars.push(imaskRef.current.maskRef.masked.placeholderChar);\n if (imaskRef.current.maskRef.masked.blocks) {\n (Object.values(imaskRef.current.maskRef.masked.blocks) as Array<{ placeholderChar?: string }>).forEach(\n ({ placeholderChar }) => placeholderChar && maskChars.push(placeholderChar),\n );\n }\n return imaskRef.current.element.value.split(new RegExp(maskChars.join('|')))[0].length;\n }\n\n return Infinity;\n }\n\n function normalizeSelection() {\n const [start, end] = getSelection();\n const max = getMaxCaretPosition();\n if (end > max) {\n setSelection(start, max);\n }\n }\n\n function getNormalizedRange(calc: number | unknown) {\n return typeof calc === 'number' ? Math.min(getMaxCaretPosition(), Math.max(0, calc)) : 0;\n }\n\n function getSelection(): SelectionSet {\n if (imaskRef.current) {\n return [\n imaskRef.current.element.selectionStart || 0,\n imaskRef.current.element.selectionEnd || 0,\n imaskRef.current.element.selectionDirection || 'none',\n ];\n }\n return [0, 0, 'none'];\n }\n\n function setSelection(...[start, end, direction]: Parameters<HTMLInputElement['setSelectionRange']>) {\n imaskRef.current?.element.setSelectionRange(\n getNormalizedRange(start),\n getNormalizedRange(end),\n direction || 'none',\n );\n }\n\n function jumpCaret(prev: number, headDirection: HeadDirection) {\n const word = /а-яa-z0-9_/.valueOf();\n const wordRegExp = new RegExp(`([${word}])+[\\\\s]*|([^${word}])+`, 'gi');\n let next = headDirection === 'right' ? prev : 0;\n imaskRef.current?.element.value.match(wordRegExp)?.reduce<number[]>((s, a) => {\n const pos = a.length + (s.slice(-1)[0] || 0);\n if (headDirection === 'right' && next === prev && next < pos) {\n next = getNormalizedRange(pos);\n } else if (headDirection === 'left' && prev > pos) {\n next = getNormalizedRange(pos);\n }\n return [...s, pos];\n }, []);\n return next;\n }\n\n /**\n * Вычислят положение каретки при управлении клавишами\n * @param e\n */\n function calcSelection(e: React.KeyboardEvent<HTMLInputElement>): SelectionSet {\n const [start, end, direction] = getSelection();\n const isSelectionMode = isModShift()(e);\n let tail = start !== end && direction === 'backward' ? end : start;\n let head = start !== end && direction === 'backward' ? start : end;\n const headDirection: HeadDirection = someKeys(isKeyArrowLeft, isKeyArrowUp, isKeyHome)(e) ? 'left' : 'right';\n const step = isKeyArrowHorizontal(e) ? 1 : Infinity;\n const increment = headDirection === 'left' ? -step : step;\n if (isShortcutJumpCaret(e)) {\n head = jumpCaret(head, headDirection);\n } else if (head !== tail && !isSelectionMode && isKeyArrowHorizontal(e)) {\n head = headDirection === 'right' ? Math.max(tail, head) : Math.min(tail, head);\n } else {\n head = head + increment;\n }\n if (isSelectionMode) {\n const start = Math.min(tail, head);\n const end = Math.max(tail, head);\n return [getNormalizedRange(start), getNormalizedRange(end), end === head ? 'forward' : 'backward'];\n }\n tail = head;\n return [getNormalizedRange(tail), getNormalizedRange(head), 'none'];\n }\n\n function handleMouseUp(e: React.MouseEvent<HTMLInputElement>) {\n normalizeSelection();\n\n props.onMouseUp?.(e);\n }\n\n function handleFocus(e: React.FocusEvent<HTMLInputElement>) {\n focused.current = true;\n fillTypedValue();\n\n setTimeout(normalizeSelection);\n\n props.onFocus?.(e);\n }\n\n function handleBlur(e: React.FocusEvent<HTMLInputElement>) {\n focused.current = false;\n fillTypedValue();\n\n props.onBlur?.(e);\n }\n\n function handleAccept(...args: Parameters<Required<IMaskInputProps<HTMLInputElement>>['onAccept']>) {\n fillTypedValue();\n\n props.onAccept?.(...args);\n }\n\n function handleInput(e: React.ChangeEvent<HTMLInputElement>) {\n const maskRef = imaskRef.current?.maskRef;\n if (restProps.unmask && maskRef && maskRef.rawInputValue === '' && maskRef.unmaskedValue !== '') {\n // Для случаев, когда в value остаются только зафиксированные - {} - очищаем value полностью\n props.onAccept?.('', maskRef, e.nativeEvent as InputEvent);\n }\n\n props.onInput?.(e);\n }\n\n function handleKeyDown(e: React.KeyboardEvent<HTMLInputElement>) {\n const nearest = getMaxCaretPosition();\n if (isShortcutSelectAll(e)) {\n e.preventDefault();\n setSelection(0, nearest);\n } else if (isKeyArrow(e) || isKeyEnd(e) || isKeyHome(e)) {\n e.preventDefault();\n const [start, end, direction] = calcSelection(e);\n setSelection(start, end, direction);\n }\n\n props.onKeyDown?.(e);\n }\n },\n);\n"],"mappings":"2LAAA,OAAOA,KAAK,IAAIC,SAAS,EAAEC,mBAAmB,EAAEC,MAAM,QAAQ,OAAO;;;AAGrE,SAASC,UAAU,QAAQ,wBAAwB;;AAEnD,SAASC,iBAAiB,QAAQ,6BAA6B;AAC/D;EACEC,UAAU;EACVC,oBAAoB;EACpBC,cAAc;EACdC,YAAY;EACZC,QAAQ;EACRC,SAAS;EACTC,UAAU;EACVC,mBAAmB;EACnBC,mBAAmB;EACnBC,QAAQ;AACH,uCAAuC;AAC9C,SAASC,SAAS,QAAQ,4BAA4B;;;;;;;;;;;;;AAatD,OAAO,IAAMC,eAAe,GAAGZ,iBAAiB;EAC9C,iBAAiB;EACjB,SAASY,eAAeA,CAACC,KAA2B,EAAEC,GAAmC,EAAE;IACzF,IAAQC,QAAQ,GAAmBF,KAAK,CAAhCE,QAAQ,CAAKC,SAAS,GAAAC,6BAAA,CAAKJ,KAAK,EAAAK,SAAA;IACxC,IAAMC,QAAQ,GAAGrB,MAAM,CAAe,IAAI,CAAC;IAC3C,IAAMsB,OAAO,GAAGtB,MAAM,CAAC,KAAK,CAAC;;IAE7BF,SAAS,CAAC,YAAM,KAAAyB,iBAAA;MACd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C1BA,CAAC,CAACuG,cAAc,CAAC,CAAC;QAClB3F,YAAY,CAAC,CAAC,EAAE0F,OAAO,CAAC;MAC1B,CAAC,MAAM,IAAIjI,UAAU,CAAC2B,CAAC,CAAC,IAAIvB,QAAQ,CAACuB,CAAC,CAAC,IAAItB,SAAS,CAACsB,CAAC,CAAC,EAAE;QACvDA,CAAC,CAACuG,cAAc,CAAC,CAAC;QAClB,IAAAC,cAAA,GAAgClB,aAAa,CAACtF,CAAC,CAAC,CAAzCU,KAAK,GAAA8F,cAAA,IAAE7F,GAAG,GAAA6F,cAAA,IAAErG,SAAS,GAAAqG,cAAA;QAC5B5F,YAAY,CAACF,KAAK,EAAEC,GAAG,EAAER,SAAS,CAAC;MACrC;;MAEAlB,KAAK,CAAC8B,SAAS,YAAf9B,KAAK,CAAC8B,SAAS,CAAGf,CAAC,CAAC;IACtB;EACF;AACF,CAAC","ignoreList":[]}
@@ -1,5 +1,5 @@
1
- import { InputMask, MaskedPatternOptions } from 'imask';
2
- import { IMaskInputProps } from 'react-imask';
1
+ import type { InputMask, MaskedPatternOptions } from '@skbkontur/imask';
2
+ import type { IMaskInputProps } from '@skbkontur/react-imask';
3
3
  export type FixedIMaskInputProps = IMaskInputProps<HTMLInputElement>;
4
4
  interface IMaskRefType {
5
5
  maskRef: InputMask<MaskedPatternOptions>;
@@ -1,13 +1,13 @@
1
1
  import _extends from "@babel/runtime/helpers/esm/extends";
2
2
  import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/esm/objectWithoutPropertiesLoose";
3
3
  var _excluded = ["mask", "maskChar", "formatChars", "alwaysShowMask", "colored", "imaskProps", "unmask", "onValueChange", "onUnexpectedInput", "onChange", "element", "className"];
4
- import React, { useImperativeHandle, useRef, useState, useEffect } from 'react';
4
+ import React, { useImperativeHandle, useRef, useState, useEffect, useContext } from 'react';
5
5
  import { forwardRefAndName } from "../../../lib/forwardRefAndName";
6
6
  import { cx } from "../../../lib/theming/Emotion";
7
- import { uiFontGlobalClasses } from "../../../lib/styles/UiFont";
8
7
  import { Input } from "../../Input";
9
8
  import { isKeyBackspace, isKeyDelete } from "../../../lib/events/keyboard/identifiers";
10
- import { globalClasses } from "../MaskedInput.styles";
9
+ import { ThemeContext } from "../../../lib/theming/ThemeContext";
10
+ import { globalClasses, styles } from "../MaskedInput.styles";
11
11
  import { getDefinitions, getMaskChar } from "../MaskedInput.helpers";
12
12
  import { ColorableInputElement } from "../ColorableInputElement";
13
13
  import { FixedIMaskInput } from "../FixedIMaskInput";
@@ -34,6 +34,7 @@ export var MaskedInput = forwardRefAndName('MaskedInput', function MaskedInput(p
34
34
  element = props.element,
35
35
  className = props.className,
36
36
  inputProps = _objectWithoutPropertiesLoose(props, _excluded);
37
+ var theme = useContext(ThemeContext);
37
38
  var inputRef = useRef(null);
38
39
  var _useState = useState(false),
39
40
  focused = _useState[0],
@@ -60,6 +61,10 @@ export var MaskedInput = forwardRefAndName('MaskedInput', function MaskedInput(p
60
61
  }
61
62
  }, []);
62
63
  var imaskProps = getCompatibleIMaskProps();
64
+
65
+ // TODO: Удалить в следующем мажоре
66
+ // Селекторы могут ожидать определённый порядок классов
67
+ var uiFontGlobalClassesRoot = 'react-ui-ui-font-root';
63
68
  return /*#__PURE__*/(
64
69
  React.createElement(Input, _extends({
65
70
  ref: inputRef
@@ -68,7 +73,7 @@ export var MaskedInput = forwardRefAndName('MaskedInput', function MaskedInput(p
68
73
  onBlur: handleBlur,
69
74
  onInput: handleInput,
70
75
  onKeyDown: handleKeyDown,
71
- className: cx(globalClasses.root, uiFontGlobalClasses.root, className),
76
+ className: cx(globalClasses.root, uiFontGlobalClassesRoot, className, styles.root(theme)),
72
77
  element: colored ? /*#__PURE__*/
73
78
  React.createElement(ColorableInputElement, {
74
79
  showOnFocus: false
@@ -1 +1 @@
1
- {"version":3,"names":["React","useImperativeHandle","useRef","useState","useEffect","forwardRefAndName","cx","uiFontGlobalClasses","Input","isKeyBackspace","isKeyDelete","globalClasses","getDefinitions","getMaskChar","ColorableInputElement","FixedIMaskInput","MaskedInput","props","ref","mask","maskChar","formatChars","_props$alwaysShowMask","alwaysShowMask","_props$colored","colored","_props$imaskProps","imaskProps","customIMaskProps","_props$unmask","unmask","onValueChange","onUnexpectedInput","onChange","element","className","inputProps","_objectWithoutPropertiesLoose","_excluded","inputRef","_useState","focused","setFocused","prevValue","value","String","defaultValue","prevSelectionStart","current","Object","assign","selectAll","_inputRef$current","_inputRef$current2","focus","delaySelectAll","_inputRef$current3","input","selectionStart","getCompatibleIMaskProps","createElement","_extends","onFocus","handleFocus","onBlur","handleBlur","onInput","handleInput","onKeyDown","handleKeyDown","root","showOnFocus","onAccept","handleAccept","replace","placeholderChar","definitions","eager","overwrite","lazy","disabled","_len","arguments","length","args","Array","_key","e","_e$currentTarget","currentTarget","handleUnexpectedInput","_inputRef$current4","selectAllOnFocus","_inputRef$current5","blink","bind","undefined","_e$currentTarget2","selectionEnd"],"sources":["MaskedInput.tsx"],"sourcesContent":["import React, { Ref, useImperativeHandle, useRef, useState, useEffect } from 'react';\nimport { IMaskInputProps } from 'react-imask';\n\nimport { forwardRefAndName } from '../../lib/forwardRefAndName';\nimport { cx } from '../../lib/theming/Emotion';\nimport { uiFontGlobalClasses } from '../../lib/styles/UiFont';\nimport { Input, InputProps, InputType } from '../Input';\nimport { isKeyBackspace, isKeyDelete } from '../../lib/events/keyboard/identifiers';\n\nimport { globalClasses } from './MaskedInput.styles';\nimport { getDefinitions, getMaskChar } from './MaskedInput.helpers';\nimport { ColorableInputElement } from './ColorableInputElement';\nimport { FixedIMaskInput } from './FixedIMaskInput';\n\nexport interface MaskedProps {\n /** Паттерн маски */\n mask: string;\n\n /** Устанавливает символ маски\n * @default _ */\n maskChar?: string;\n\n /** Задает словарь символов-регулярок для задания маски.\n * @default { '9': '[0-9]', 'a': '[A-Za-z]', '*': '[A-Za-z0-9]' } */\n formatChars?: Record<string, string>;\n\n /** Включает показ символов маски.\n * @default false */\n alwaysShowMask?: boolean;\n\n /** Задает обработчик неправильного ввода.\n * Вторым агрументом будет передан метод вспыхивания акцентным цветом.\n *\n * Если обработчик не задан, то инпут вспыхивает по-умолчанию.\n * @param value значение инпута.\n * @param blink вспыхнуть акцентным цвтетом.\n */\n onUnexpectedInput?: (value: string, blink: () => void) => void;\n\n /** Убирает из value символы, не введённые пользователем\n * @default false */\n unmask?: boolean;\n\n /** Раскрашивает символы маски.\n * @default true\n * @ignore */\n colored?: boolean;\n\n /** Задает пропы для компонента `IMaskInput`. Необходимы для юнит-тестов\n * @ignore */\n imaskProps?: IMaskInputProps<HTMLInputElement>;\n}\n\nexport type MaskInputType = Exclude<InputType, 'number' | 'date' | 'time' | 'password'>;\n\nexport interface MaskedInputProps\n extends MaskedProps,\n Omit<\n InputProps,\n 'showClearIcon' | 'mask' | 'maxLength' | 'type' | 'alwaysShowMask' | 'onUnexpectedInput' | 'maskChar'\n > {\n type?: MaskInputType;\n}\n\n/**\n * Интерфейс пропсов наследуется от `Input`.\n * Из пропсов `Input` исключены некоторые не применимые к полю с маской пропсы и сокращен список возможных значений в type.\n */\nexport const MaskedInput = forwardRefAndName(\n 'MaskedInput',\n function MaskedInput(props: MaskedInputProps, ref: Ref<Input | null>) {\n const {\n mask,\n maskChar,\n formatChars,\n alwaysShowMask = false,\n colored = true,\n imaskProps: customIMaskProps = {},\n unmask = false,\n onValueChange,\n onUnexpectedInput,\n onChange,\n element,\n className,\n ...inputProps\n } = props;\n\n const inputRef = useRef<Input>(null);\n\n const [focused, setFocused] = useState(false);\n const prevValue = useRef<string>(props.value || String(props.defaultValue) || '');\n const prevSelectionStart = useRef<number | null>(null);\n\n useImperativeHandle(\n ref,\n () =>\n inputRef.current &&\n Object.assign(inputRef.current, {\n selectAll: () => {\n inputRef.current?.focus();\n inputRef.current?.delaySelectAll();\n },\n }),\n [],\n );\n\n useEffect(() => {\n // Для корректной работы onUnexpectedInput надо знать предыдущий value,\n // но imask при монтировании не вызывает onAccept, если value невалиден или laze=false.\n // Поэтому актуальный value при монтировании надо получать вручную\n if (inputRef.current?.input) {\n prevValue.current = inputRef.current.input.value;\n prevSelectionStart.current = inputRef.current.input.selectionStart;\n }\n }, []);\n\n const imaskProps = getCompatibleIMaskProps();\n\n return (\n <Input\n ref={inputRef}\n {...inputProps}\n onFocus={handleFocus}\n onBlur={handleBlur}\n onInput={handleInput}\n onKeyDown={handleKeyDown}\n className={cx(globalClasses.root, uiFontGlobalClasses.root, className)}\n element={\n colored ? (\n <ColorableInputElement showOnFocus={false}>\n <FixedIMaskInput {...imaskProps} onAccept={handleAccept} />\n </ColorableInputElement>\n ) : (\n <FixedIMaskInput {...imaskProps} onAccept={handleAccept} />\n )\n }\n />\n );\n\n function getCompatibleIMaskProps(): IMaskInputProps<HTMLInputElement> {\n return {\n mask: mask.replace(/0/g, '{\\\\0}') as any,\n placeholderChar: getMaskChar(maskChar),\n definitions: getDefinitions(formatChars),\n // FIXME: Должно быть eager=true, но в imask ломается удаление по delete\n eager: 'append',\n overwrite: 'shift',\n lazy: !alwaysShowMask && (props.disabled || !focused),\n unmask,\n ...customIMaskProps,\n } as IMaskInputProps<HTMLInputElement>;\n }\n\n function handleAccept(...args: Parameters<Required<IMaskInputProps<HTMLInputElement>>['onAccept']>) {\n const [value, , e] = args;\n\n // Метод onAccept может вызываться при монтировании, если не задан проп defaultValue.\n // Но нативный input никогда не вызывает onChange при монтировании.\n // Наше событие onValueChange в Input вывается в тех же случаях, что и нативный onChange,\n // поэтому чтобы сохранить консинстентность будем ориентироваться на наличие аргумента e.\n // Он содержит нативное событие, вызвавшее изменение.\n e && onValueChange?.(value);\n !e && (prevValue.current = value);\n }\n\n /**\n * Отслеживаем неожиданные нажатия\n * handleAccept не вызывается когда значение с маской не меняется\n * Сначала вызывается handleAccept, затем handleInput\n */\n function handleInput(e: React.ChangeEvent<HTMLInputElement>) {\n const { value, selectionStart } = e.currentTarget;\n\n // При вводе неожиданных символов или удалении каретка может перепрыгивать фиксированные символы.\n // Такие случаи не расцениваем как неожиданный ввод, т.к. пользователь может намеренно их вводить.\n if (prevValue.current === value && selectionStart === prevSelectionStart.current) {\n handleUnexpectedInput(value);\n }\n prevValue.current = value;\n prevSelectionStart.current = selectionStart;\n\n props.onInput?.(e);\n }\n\n function handleFocus(e: React.FocusEvent<HTMLInputElement>) {\n setFocused(true);\n props.onFocus?.(e);\n\n // Если value из пропов отличается от value, которое получит input после обработки,\n // то imask будет ставить каретку за последним валидным символом.\n props.selectAllOnFocus && inputRef.current?.delaySelectAll();\n }\n\n function handleUnexpectedInput(value: string) {\n const blink = inputRef.current?.blink.bind(inputRef.current) || (() => undefined);\n onUnexpectedInput ? onUnexpectedInput(value, blink) : blink();\n }\n\n function handleBlur(e: React.FocusEvent<HTMLInputElement>) {\n setFocused(false);\n props.onBlur?.(e);\n }\n\n function handleKeyDown(e: React.KeyboardEvent<HTMLInputElement>) {\n const { value, selectionStart, selectionEnd } = e.currentTarget;\n\n if (\n (isKeyBackspace(e) && selectionStart === 0 && selectionEnd === 0) ||\n (isKeyDelete(e) && prevSelectionStart.current === value.length)\n ) {\n // Случаи, когда нажатие клавиш не тригерит `onInput`\n handleUnexpectedInput(value);\n prevValue.current = e.currentTarget.value;\n }\n prevSelectionStart.current = selectionStart;\n\n props.onKeyDown?.(e);\n }\n },\n);\n"],"mappings":"iVAAA,OAAOA,KAAK,IAASC,mBAAmB,EAAEC,MAAM,EAAEC,QAAQ,EAAEC,SAAS,QAAQ,OAAO;;;AAGpF,SAASC,iBAAiB,QAAQ,6BAA6B;AAC/D,SAASC,EAAE,QAAQ,2BAA2B;AAC9C,SAASC,mBAAmB,QAAQ,yBAAyB;AAC7D,SAASC,KAAK,QAA+B,UAAU;AACvD,SAASC,cAAc,EAAEC,WAAW,QAAQ,uCAAuC;;AAEnF,SAASC,aAAa,QAAQ,sBAAsB;AACpD,SAASC,cAAc,EAAEC,WAAW,QAAQ,uBAAuB;AACnE,SAASC,qBAAqB,QAAQ,yBAAyB;AAC/D,SAASC,eAAe,QAAQ,mBAAmB;;;;;;;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AC;IACnB;;IAEA,SAASlB,aAAaA,CAACkB,CAAwC,EAAE;MAC/D,IAAAU,iBAAA,GAAgDV,CAAC,CAACE,aAAa,CAAvD7C,KAAK,GAAAqD,iBAAA,CAALrD,KAAK,CAAEc,cAAc,GAAAuC,iBAAA,CAAdvC,cAAc,CAAEwC,YAAY,GAAAD,iBAAA,CAAZC,YAAY;;MAE3C;MACGzF,cAAc,CAAC8E,CAAC,CAAC,IAAI7B,cAAc,KAAK,CAAC,IAAIwC,YAAY,KAAK,CAAC;MAC/DxF,WAAW,CAAC6E,CAAC,CAAC,IAAIxC,kBAAkB,CAACC,OAAO,KAAKJ,KAAK,CAACuC,MAAO;MAC/D;QACA;QACAO,qBAAqB,CAAC9C,KAAK,CAAC;QAC5BD,SAAS,CAACK,OAAO,GAAGuC,CAAC,CAACE,aAAa,CAAC7C,KAAK;MAC3C;MACAG,kBAAkB,CAACC,OAAO,GAAGU,cAAc;;MAE3CzC,KAAK,CAACmD,SAAS,YAAfnD,KAAK,CAACmD,SAAS,CAAGmB,CAAC,CAAC;IACtB;EACF;AACF,CAAC","ignoreList":[]}
1
+ {"version":3,"names":["React","useImperativeHandle","useRef","useState","useEffect","useContext","forwardRefAndName","cx","Input","isKeyBackspace","isKeyDelete","ThemeContext","globalClasses","styles","getDefinitions","getMaskChar","ColorableInputElement","FixedIMaskInput","MaskedInput","props","ref","mask","maskChar","formatChars","_props$alwaysShowMask","alwaysShowMask","_props$colored","colored","_props$imaskProps","imaskProps","customIMaskProps","_props$unmask","unmask","onValueChange","onUnexpectedInput","onChange","element","className","inputProps","_objectWithoutPropertiesLoose","_excluded","theme","inputRef","_useState","focused","setFocused","prevValue","value","String","defaultValue","prevSelectionStart","current","Object","assign","selectAll","_inputRef$current","_inputRef$current2","focus","delaySelectAll","_inputRef$current3","input","selectionStart","getCompatibleIMaskProps","uiFontGlobalClassesRoot","createElement","_extends","onFocus","handleFocus","onBlur","handleBlur","onInput","handleInput","onKeyDown","handleKeyDown","root","showOnFocus","onAccept","handleAccept","replace","placeholderChar","definitions","eager","overwrite","lazy","disabled","_len","arguments","length","args","Array","_key","e","_e$currentTarget","currentTarget","handleUnexpectedInput","_inputRef$current4","selectAllOnFocus","_inputRef$current5","blink","bind","undefined","_e$currentTarget2","selectionEnd"],"sources":["MaskedInput.tsx"],"sourcesContent":["import React, { useImperativeHandle, useRef, useState, useEffect, useContext } from 'react';\nimport type { IMaskInputProps } from '@skbkontur/react-imask';\nimport type { Ref } from 'react';\n\nimport { forwardRefAndName } from '../../lib/forwardRefAndName';\nimport { cx } from '../../lib/theming/Emotion';\nimport type { InputProps, InputType } from '../Input';\nimport { Input } from '../Input';\nimport { isKeyBackspace, isKeyDelete } from '../../lib/events/keyboard/identifiers';\nimport { ThemeContext } from '../../lib/theming/ThemeContext';\n\nimport { globalClasses, styles } from './MaskedInput.styles';\nimport { getDefinitions, getMaskChar } from './MaskedInput.helpers';\nimport { ColorableInputElement } from './ColorableInputElement';\nimport { FixedIMaskInput } from './FixedIMaskInput';\n\nexport interface MaskedProps {\n /** Паттерн маски */\n mask: string;\n\n /** Устанавливает символ маски\n * @default _ */\n maskChar?: string;\n\n /** Задает словарь символов-регулярок для задания маски.\n * @default { '9': '[0-9]', 'a': '[A-Za-z]', '*': '[A-Za-z0-9]' } */\n formatChars?: Record<string, string>;\n\n /** Включает показ символов маски.\n * @default false */\n alwaysShowMask?: boolean;\n\n /** Задает обработчик неправильного ввода.\n * Вторым агрументом будет передан метод вспыхивания акцентным цветом.\n *\n * Если обработчик не задан, то инпут вспыхивает по-умолчанию.\n * @param value значение инпута.\n * @param blink вспыхнуть акцентным цвтетом.\n */\n onUnexpectedInput?: (value: string, blink: () => void) => void;\n\n /** Убирает из value символы, не введённые пользователем\n * @default false */\n unmask?: boolean;\n\n /** Раскрашивает символы маски.\n * @default true\n * @ignore */\n colored?: boolean;\n\n /** Задает пропы для компонента `IMaskInput`. Необходимы для юнит-тестов\n * @ignore */\n imaskProps?: IMaskInputProps<HTMLInputElement>;\n}\n\nexport type MaskInputType = Exclude<InputType, 'number' | 'date' | 'time' | 'password'>;\n\nexport interface MaskedInputProps\n extends MaskedProps,\n Omit<\n InputProps,\n 'showClearIcon' | 'mask' | 'maxLength' | 'type' | 'alwaysShowMask' | 'onUnexpectedInput' | 'maskChar'\n > {\n type?: MaskInputType;\n}\n\n/**\n * Интерфейс пропсов наследуется от `Input`.\n * Из пропсов `Input` исключены некоторые не применимые к полю с маской пропсы и сокращен список возможных значений в type.\n */\nexport const MaskedInput = forwardRefAndName(\n 'MaskedInput',\n function MaskedInput(props: MaskedInputProps, ref: Ref<Input | null>) {\n const {\n mask,\n maskChar,\n formatChars,\n alwaysShowMask = false,\n colored = true,\n imaskProps: customIMaskProps = {},\n unmask = false,\n onValueChange,\n onUnexpectedInput,\n onChange,\n element,\n className,\n ...inputProps\n } = props;\n const theme = useContext(ThemeContext);\n\n const inputRef = useRef<Input>(null);\n\n const [focused, setFocused] = useState(false);\n const prevValue = useRef<string>(props.value || String(props.defaultValue) || '');\n const prevSelectionStart = useRef<number | null>(null);\n\n useImperativeHandle(\n ref,\n () =>\n inputRef.current &&\n Object.assign(inputRef.current, {\n selectAll: () => {\n inputRef.current?.focus();\n inputRef.current?.delaySelectAll();\n },\n }),\n [],\n );\n\n useEffect(() => {\n // Для корректной работы onUnexpectedInput надо знать предыдущий value,\n // но imask при монтировании не вызывает onAccept, если value невалиден или laze=false.\n // Поэтому актуальный value при монтировании надо получать вручную\n if (inputRef.current?.input) {\n prevValue.current = inputRef.current.input.value;\n prevSelectionStart.current = inputRef.current.input.selectionStart;\n }\n }, []);\n\n const imaskProps = getCompatibleIMaskProps();\n\n // TODO: Удалить в следующем мажоре\n // Селекторы могут ожидать определённый порядок классов\n const uiFontGlobalClassesRoot = 'react-ui-ui-font-root';\n\n return (\n <Input\n ref={inputRef}\n {...inputProps}\n onFocus={handleFocus}\n onBlur={handleBlur}\n onInput={handleInput}\n onKeyDown={handleKeyDown}\n className={cx(globalClasses.root, uiFontGlobalClassesRoot, className, styles.root(theme))}\n element={\n colored ? (\n <ColorableInputElement showOnFocus={false}>\n <FixedIMaskInput {...imaskProps} onAccept={handleAccept} />\n </ColorableInputElement>\n ) : (\n <FixedIMaskInput {...imaskProps} onAccept={handleAccept} />\n )\n }\n />\n );\n\n function getCompatibleIMaskProps(): IMaskInputProps<HTMLInputElement> {\n return {\n mask: mask.replace(/0/g, '{\\\\0}') as any,\n placeholderChar: getMaskChar(maskChar),\n definitions: getDefinitions(formatChars),\n // FIXME: Должно быть eager=true, но в imask ломается удаление по delete\n eager: 'append',\n overwrite: 'shift',\n lazy: !alwaysShowMask && (props.disabled || !focused),\n unmask,\n ...customIMaskProps,\n } as IMaskInputProps<HTMLInputElement>;\n }\n\n function handleAccept(...args: Parameters<Required<IMaskInputProps<HTMLInputElement>>['onAccept']>) {\n const [value, , e] = args;\n\n // Метод onAccept может вызываться при монтировании, если не задан проп defaultValue.\n // Но нативный input никогда не вызывает onChange при монтировании.\n // Наше событие onValueChange в Input вывается в тех же случаях, что и нативный onChange,\n // поэтому чтобы сохранить консинстентность будем ориентироваться на наличие аргумента e.\n // Он содержит нативное событие, вызвавшее изменение.\n e && onValueChange?.(value);\n !e && (prevValue.current = value);\n }\n\n /**\n * Отслеживаем неожиданные нажатия\n * handleAccept не вызывается когда значение с маской не меняется\n * Сначала вызывается handleAccept, затем handleInput\n */\n function handleInput(e: React.ChangeEvent<HTMLInputElement>) {\n const { value, selectionStart } = e.currentTarget;\n\n // При вводе неожиданных символов или удалении каретка может перепрыгивать фиксированные символы.\n // Такие случаи не расцениваем как неожиданный ввод, т.к. пользователь может намеренно их вводить.\n if (prevValue.current === value && selectionStart === prevSelectionStart.current) {\n handleUnexpectedInput(value);\n }\n prevValue.current = value;\n prevSelectionStart.current = selectionStart;\n\n props.onInput?.(e);\n }\n\n function handleFocus(e: React.FocusEvent<HTMLInputElement>) {\n setFocused(true);\n props.onFocus?.(e);\n\n // Если value из пропов отличается от value, которое получит input после обработки,\n // то imask будет ставить каретку за последним валидным символом.\n props.selectAllOnFocus && inputRef.current?.delaySelectAll();\n }\n\n function handleUnexpectedInput(value: string) {\n const blink = inputRef.current?.blink.bind(inputRef.current) || (() => undefined);\n onUnexpectedInput ? onUnexpectedInput(value, blink) : blink();\n }\n\n function handleBlur(e: React.FocusEvent<HTMLInputElement>) {\n setFocused(false);\n props.onBlur?.(e);\n }\n\n function handleKeyDown(e: React.KeyboardEvent<HTMLInputElement>) {\n const { value, selectionStart, selectionEnd } = e.currentTarget;\n\n if (\n (isKeyBackspace(e) && selectionStart === 0 && selectionEnd === 0) ||\n (isKeyDelete(e) && prevSelectionStart.current === value.length)\n ) {\n // Случаи, когда нажатие клавиш не тригерит `onInput`\n handleUnexpectedInput(value);\n prevValue.current = e.currentTarget.value;\n }\n prevSelectionStart.current = selectionStart;\n\n props.onKeyDown?.(e);\n }\n },\n);\n"],"mappings":"iVAAA,OAAOA,KAAK,IAAIC,mBAAmB,EAAEC,MAAM,EAAEC,QAAQ,EAAEC,SAAS,EAAEC,UAAU,QAAQ,OAAO;;;;AAI3F,SAASC,iBAAiB,QAAQ,6BAA6B;AAC/D,SAASC,EAAE,QAAQ,2BAA2B;;AAE9C,SAASC,KAAK,QAAQ,UAAU;AAChC,SAASC,cAAc,EAAEC,WAAW,QAAQ,uCAAuC;AACnF,SAASC,YAAY,QAAQ,gCAAgC;;AAE7D,SAASC,aAAa,EAAEC,MAAM,QAAQ,sBAAsB;AAC5D,SAASC,cAAc,EAAEC,WAAW,QAAQ,uBAAuB;AACnE,SAASC,qBAAqB,QAAQ,yBAAyB;AAC/D,SAASC,eAAe,QAAQ,mBAAmB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAoDnD;AACA;AACA;AACA;AACA,OAAO,IAAMC,WAAW,GAAGZ,iBAAiB;EAC1C,aAAa;EACb,SAASY,WAAWA,CAACC,KAAuB,EAAEC,GAAsB,EAAE;IACpE;MACEC,IAAI;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,iBAAA,GAAgDV,CAAC,CAACE,aAAa,CAAvD9C,KAAK,GAAAsD,iBAAA,CAALtD,KAAK,CAAEc,cAAc,GAAAwC,iBAAA,CAAdxC,cAAc,CAAEyC,YAAY,GAAAD,iBAAA,CAAZC,YAAY;;MAE3C;MACG7F,cAAc,CAACkF,CAAC,CAAC,IAAI9B,cAAc,KAAK,CAAC,IAAIyC,YAAY,KAAK,CAAC;MAC/D5F,WAAW,CAACiF,CAAC,CAAC,IAAIzC,kBAAkB,CAACC,OAAO,KAAKJ,KAAK,CAACwC,MAAO;MAC/D;QACA;QACAO,qBAAqB,CAAC/C,KAAK,CAAC;QAC5BD,SAAS,CAACK,OAAO,GAAGwC,CAAC,CAACE,aAAa,CAAC9C,KAAK;MAC3C;MACAG,kBAAkB,CAACC,OAAO,GAAGU,cAAc;;MAE3C1C,KAAK,CAACqD,SAAS,YAAfrD,KAAK,CAACqD,SAAS,CAAGmB,CAAC,CAAC;IACtB;EACF;AACF,CAAC","ignoreList":[]}
@@ -1,5 +1,6 @@
1
- import { IMaskInputProps } from 'react-imask';
2
- import { Input, InputProps, InputType } from '../Input';
1
+ import type { IMaskInputProps } from '@skbkontur/react-imask';
2
+ import type { InputProps, InputType } from '../Input';
3
+ import { Input } from '../Input';
3
4
  export interface MaskedProps {
4
5
  /** Паттерн маски */
5
6
  mask: string;
@@ -1 +1 @@
1
- {"version":3,"names":["isNonNullable","DEFAULT_MASK_CHAR","DEFINITIONS","Object","freeze","a","getDefinitions","formatChars","chars","key","RegExp","getMaskChar","maskChar"],"sources":["MaskedInput.helpers.ts"],"sourcesContent":["import { Definitions } from 'imask';\n\nimport { isNonNullable } from '../../lib/utils';\n\nexport const DEFAULT_MASK_CHAR = '_';\nexport const DEFINITIONS = Object.freeze({ '9': /[0-9]/, a: /[A-Za-z]/, '*': /[A-Za-z0-9]/ });\n\nexport function getDefinitions(formatChars: Record<string, string> | undefined): Definitions {\n if (isNonNullable(formatChars)) {\n const chars: Record<string, RegExp> = {};\n\n for (const key in formatChars) {\n chars[key] = new RegExp(formatChars[key]);\n }\n\n return chars;\n }\n\n return DEFINITIONS;\n}\n\nexport function getMaskChar(maskChar: string | undefined): string {\n return !maskChar ? DEFAULT_MASK_CHAR : maskChar;\n}\n"],"mappings":";;AAEA,SAASA,aAAa,QAAQ,iBAAiB;;AAE/C,OAAO,IAAMC,iBAAiB,GAAG,GAAG;AACpC,OAAO,IAAMC,WAAW,GAAGC,MAAM,CAACC,MAAM,CAAC,EAAE,GAAG,EAAE,OAAO,EAAEC,CAAC,EAAE,UAAU,EAAE,GAAG,EAAE,aAAa,CAAC,CAAC,CAAC;;AAE7F,OAAO,SAASC,cAAcA,CAACC,WAA+C,EAAe;EAC3F,IAAIP,aAAa,CAACO,WAAW,CAAC,EAAE;IAC9B,IAAMC,KAA6B,GAAG,CAAC,CAAC;;IAExC,KAAK,IAAMC,GAAG,IAAIF,WAAW,EAAE;MAC7BC,KAAK,CAACC,GAAG,CAAC,GAAG,IAAIC,MAAM,CAACH,WAAW,CAACE,GAAG,CAAC,CAAC;IAC3C;;IAEA,OAAOD,KAAK;EACd;;EAEA,OAAON,WAAW;AACpB;;AAEA,OAAO,SAASS,WAAWA,CAACC,QAA4B,EAAU;EAChE,OAAO,CAACA,QAAQ,GAAGX,iBAAiB,GAAGW,QAAQ;AACjD","ignoreList":[]}
1
+ {"version":3,"names":["isNonNullable","DEFAULT_MASK_CHAR","DEFINITIONS","Object","freeze","a","getDefinitions","formatChars","chars","key","RegExp","getMaskChar","maskChar"],"sources":["MaskedInput.helpers.ts"],"sourcesContent":["import { type Definitions } from '@skbkontur/imask';\n\nimport { isNonNullable } from '../../lib/utils';\n\nexport const DEFAULT_MASK_CHAR = '_';\nexport const DEFINITIONS = Object.freeze({ '9': /[0-9]/, a: /[A-Za-z]/, '*': /[A-Za-z0-9]/ });\n\nexport function getDefinitions(formatChars: Record<string, string> | undefined): Definitions {\n if (isNonNullable(formatChars)) {\n const chars: Record<string, RegExp> = {};\n\n for (const key in formatChars) {\n chars[key] = new RegExp(formatChars[key]);\n }\n\n return chars;\n }\n\n return DEFINITIONS;\n}\n\nexport function getMaskChar(maskChar: string | undefined): string {\n return !maskChar ? DEFAULT_MASK_CHAR : maskChar;\n}\n"],"mappings":";;AAEA,SAASA,aAAa,QAAQ,iBAAiB;;AAE/C,OAAO,IAAMC,iBAAiB,GAAG,GAAG;AACpC,OAAO,IAAMC,WAAW,GAAGC,MAAM,CAACC,MAAM,CAAC,EAAE,GAAG,EAAE,OAAO,EAAEC,CAAC,EAAE,UAAU,EAAE,GAAG,EAAE,aAAa,CAAC,CAAC,CAAC;;AAE7F,OAAO,SAASC,cAAcA,CAACC,WAA+C,EAAe;EAC3F,IAAIP,aAAa,CAACO,WAAW,CAAC,EAAE;IAC9B,IAAMC,KAA6B,GAAG,CAAC,CAAC;;IAExC,KAAK,IAAMC,GAAG,IAAIF,WAAW,EAAE;MAC7BC,KAAK,CAACC,GAAG,CAAC,GAAG,IAAIC,MAAM,CAACH,WAAW,CAACE,GAAG,CAAC,CAAC;IAC3C;;IAEA,OAAOD,KAAK;EACd;;EAEA,OAAON,WAAW;AACpB;;AAEA,OAAO,SAASS,WAAWA,CAACC,QAA4B,EAAU;EAChE,OAAO,CAACA,QAAQ,GAAGX,iBAAiB,GAAGW,QAAQ;AACjD","ignoreList":[]}
@@ -1,4 +1,4 @@
1
- import { Definitions } from 'imask';
1
+ import { type Definitions } from '@skbkontur/imask';
2
2
  export declare const DEFAULT_MASK_CHAR = "_";
3
3
  export declare const DEFINITIONS: Readonly<{
4
4
  '9': RegExp;