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

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 (1692) hide show
  1. package/CHANGELOG.md +284 -0
  2. package/README.md +0 -5
  3. package/cjs/components/Autocomplete/Autocomplete.d.ts +16 -17
  4. package/cjs/components/Autocomplete/Autocomplete.js +13 -2
  5. package/cjs/components/Autocomplete/Autocomplete.js.map +1 -1
  6. package/cjs/components/Autocomplete/Autocomplete.md +9 -7
  7. package/cjs/components/Autocomplete/__creevey__/Autocomplete.creevey.mts +239 -0
  8. package/cjs/components/Autocomplete/__docs__/Autocomplete.mdx +26 -0
  9. package/cjs/components/Button/Button.d.ts +23 -66
  10. package/cjs/components/Button/Button.js +7 -49
  11. package/cjs/components/Button/Button.js.map +1 -1
  12. package/cjs/components/Button/Button.md +40 -26
  13. package/cjs/components/Button/Button.styles.d.ts +0 -1
  14. package/cjs/components/Button/Button.styles.js +9 -21
  15. package/cjs/components/Button/Button.styles.js.map +1 -1
  16. package/cjs/components/Button/__creevey__/Button.creevey.mts +251 -0
  17. package/cjs/components/Button/__docs__/Button.mdx +28 -0
  18. package/cjs/components/Calendar/Calendar.d.ts +22 -45
  19. package/cjs/components/Calendar/Calendar.js +5 -16
  20. package/cjs/components/Calendar/Calendar.js.map +1 -1
  21. package/cjs/components/Calendar/Calendar.md +14 -13
  22. package/cjs/components/Calendar/CalendarDay.d.ts +7 -0
  23. package/cjs/components/Calendar/CalendarDay.js +11 -0
  24. package/cjs/components/Calendar/CalendarDay.js.map +1 -1
  25. package/cjs/components/Calendar/CalendarDay.md +32 -32
  26. package/cjs/components/Calendar/DayCellView.js +15 -8
  27. package/cjs/components/Calendar/DayCellView.js.map +1 -1
  28. package/cjs/components/Calendar/DayCellView.styles.js +17 -1
  29. package/cjs/components/Calendar/DayCellView.styles.js.map +1 -1
  30. package/cjs/components/Calendar/__creevey__/Calendar.creevey.mts +74 -0
  31. package/cjs/components/Calendar/__docs__/Calendar.mdx +28 -0
  32. package/cjs/components/Calendar/__docs__/CalendarDay.mdx +24 -0
  33. package/cjs/components/Center/Center.d.ts +4 -6
  34. package/cjs/components/Center/Center.js +3 -5
  35. package/cjs/components/Center/Center.js.map +1 -1
  36. package/cjs/components/Center/Center.md +1 -1
  37. package/cjs/components/Center/__docs__/Center.mdx +24 -0
  38. package/cjs/components/Checkbox/Checkbox.d.ts +20 -28
  39. package/cjs/components/Checkbox/Checkbox.js +7 -6
  40. package/cjs/components/Checkbox/Checkbox.js.map +1 -1
  41. package/cjs/components/Checkbox/Checkbox.md +6 -5
  42. package/cjs/components/Checkbox/__creevey__/Checkbox.creevey.mts +243 -0
  43. package/cjs/components/Checkbox/__docs__/Checkbox.mdx +28 -0
  44. package/cjs/components/ComboBox/ComboBox.d.ts +76 -88
  45. package/cjs/components/ComboBox/ComboBox.js +14 -14
  46. package/cjs/components/ComboBox/ComboBox.js.map +1 -1
  47. package/cjs/components/ComboBox/ComboBox.md +41 -40
  48. package/cjs/components/ComboBox/__creevey__/ComboBox.creevey.mts +541 -0
  49. package/cjs/components/ComboBox/__docs__/ComboBox.mdx +28 -0
  50. package/cjs/components/CurrencyInput/CurrencyHelper.d.ts +4 -0
  51. package/cjs/components/CurrencyInput/CurrencyHelper.js +7 -0
  52. package/cjs/components/CurrencyInput/CurrencyHelper.js.map +1 -1
  53. package/cjs/components/CurrencyInput/CurrencyInput.d.ts +13 -13
  54. package/cjs/components/CurrencyInput/CurrencyInput.js +8 -2
  55. package/cjs/components/CurrencyInput/CurrencyInput.js.map +1 -1
  56. package/cjs/components/CurrencyInput/CurrencyInput.md +3 -1
  57. package/cjs/components/CurrencyInput/CurrencyInputHelper.d.ts +3 -0
  58. package/cjs/components/CurrencyInput/CurrencyInputHelper.js +5 -0
  59. package/cjs/components/CurrencyInput/CurrencyInputHelper.js.map +1 -1
  60. package/cjs/components/CurrencyInput/__creevey__/CurrencyInput.creevey.mts +81 -0
  61. package/cjs/components/CurrencyInput/__docs__/CurrencyInput.mdx +28 -0
  62. package/cjs/components/CurrencyLabel/CurrencyLabel.d.ts +8 -5
  63. package/cjs/components/CurrencyLabel/CurrencyLabel.js +6 -0
  64. package/cjs/components/CurrencyLabel/CurrencyLabel.js.map +1 -1
  65. package/cjs/components/CurrencyLabel/CurrencyLabel.md +5 -5
  66. package/cjs/components/CurrencyLabel/__docs__/CurrencyLabel.mdx +24 -0
  67. package/cjs/components/DateInput/DateInput.d.ts +21 -29
  68. package/cjs/components/DateInput/DateInput.js +14 -2
  69. package/cjs/components/DateInput/DateInput.js.map +1 -1
  70. package/cjs/components/DateInput/DateInput.md +7 -2
  71. package/cjs/components/DateInput/__creevey__/DateInput.creevey.mts +156 -0
  72. package/cjs/components/DateInput/__docs__/DateInput.mdx +26 -0
  73. package/cjs/components/DatePicker/DatePicker.d.ts +35 -30
  74. package/cjs/components/DatePicker/DatePicker.js +63 -23
  75. package/cjs/components/DatePicker/DatePicker.js.map +1 -1
  76. package/cjs/components/DatePicker/DatePicker.md +2 -2
  77. package/cjs/components/DatePicker/MobilePicker.js +12 -24
  78. package/cjs/components/DatePicker/MobilePicker.js.map +1 -1
  79. package/cjs/components/DatePicker/__creevey__/DatePicker.creevey.mts +209 -0
  80. package/cjs/components/DatePicker/__docs__/DatePicker.mdx +28 -0
  81. package/cjs/components/DateRangePicker/DateRangePicker.d.ts +82 -0
  82. package/cjs/components/DateRangePicker/DateRangePicker.js +490 -0
  83. package/cjs/components/DateRangePicker/DateRangePicker.js.map +1 -0
  84. package/cjs/components/DateRangePicker/DateRangePicker.styles.d.ts +17 -0
  85. package/cjs/components/DateRangePicker/DateRangePicker.styles.js +125 -0
  86. package/cjs/components/DateRangePicker/DateRangePicker.styles.js.map +1 -0
  87. package/cjs/components/DateRangePicker/DateRangePickerContext.d.ts +31 -0
  88. package/cjs/components/DateRangePicker/DateRangePickerContext.js +37 -0
  89. package/cjs/components/DateRangePicker/DateRangePickerContext.js.map +1 -0
  90. package/cjs/components/DateRangePicker/DateRangePickerInput.d.ts +11 -0
  91. package/cjs/components/DateRangePicker/DateRangePickerInput.js +162 -0
  92. package/cjs/components/DateRangePicker/DateRangePickerInput.js.map +1 -0
  93. package/cjs/components/DateRangePicker/DateRangePickerSeparator.d.ts +2 -0
  94. package/cjs/components/DateRangePicker/DateRangePickerSeparator.js +3 -0
  95. package/cjs/components/DateRangePicker/DateRangePickerSeparator.js.map +1 -0
  96. package/cjs/components/DateRangePicker/DateRangePickerTheme.d.ts +3 -0
  97. package/cjs/components/DateRangePicker/DateRangePickerTheme.js +33 -0
  98. package/cjs/components/DateRangePicker/DateRangePickerTheme.js.map +1 -0
  99. package/cjs/components/DateRangePicker/__creevey__/DateRangePicker.creevey.mts +155 -0
  100. package/cjs/components/DateRangePicker/__docs__/DateRangePicker.mdx +127 -0
  101. package/cjs/components/DateRangePicker/helpers/getStateForValue.d.ts +9 -0
  102. package/cjs/components/DateRangePicker/helpers/getStateForValue.js +122 -0
  103. package/cjs/components/DateRangePicker/helpers/getStateForValue.js.map +1 -0
  104. package/cjs/components/DateRangePicker/helpers/validateDateRangePicker.d.ts +9 -0
  105. package/cjs/components/DateRangePicker/helpers/validateDateRangePicker.js +67 -0
  106. package/cjs/components/DateRangePicker/helpers/validateDateRangePicker.js.map +1 -0
  107. package/cjs/components/DateRangePicker/index.d.ts +1 -0
  108. package/cjs/components/DateRangePicker/index.js +1 -0
  109. package/cjs/components/DateRangePicker/index.js.map +1 -0
  110. package/cjs/components/DateRangePicker/locale/index.d.ts +4 -0
  111. package/cjs/components/DateRangePicker/locale/index.js +12 -0
  112. package/cjs/components/DateRangePicker/locale/index.js.map +1 -0
  113. package/cjs/components/DateRangePicker/locale/locales/en.d.ts +2 -0
  114. package/cjs/components/DateRangePicker/locale/locales/en.js +9 -0
  115. package/cjs/components/DateRangePicker/locale/locales/en.js.map +1 -0
  116. package/cjs/components/DateRangePicker/locale/locales/ru.d.ts +2 -0
  117. package/cjs/components/DateRangePicker/locale/locales/ru.js +9 -0
  118. package/cjs/components/DateRangePicker/locale/locales/ru.js.map +1 -0
  119. package/cjs/components/DateRangePicker/locale/types.d.ts +7 -0
  120. package/cjs/components/DateRangePicker/locale/types.js +1 -0
  121. package/cjs/components/DateRangePicker/locale/types.js.map +1 -0
  122. package/cjs/components/Dropdown/Dropdown.d.ts +29 -32
  123. package/cjs/components/Dropdown/Dropdown.js +20 -9
  124. package/cjs/components/Dropdown/Dropdown.js.map +1 -1
  125. package/cjs/components/Dropdown/Dropdown.md +2 -1
  126. package/cjs/components/Dropdown/__creevey__/Dropdown.creevey.mts +184 -0
  127. package/cjs/components/Dropdown/__docs__/Dropdown.mdx +28 -0
  128. package/cjs/components/DropdownMenu/DropdownMenu.d.ts +3 -1
  129. package/cjs/components/DropdownMenu/DropdownMenu.js +6 -2
  130. package/cjs/components/DropdownMenu/DropdownMenu.js.map +1 -1
  131. package/cjs/components/DropdownMenu/DropdownMenu.md +12 -10
  132. package/cjs/components/DropdownMenu/__creevey__/DropdownMenu.creevey.mts +263 -0
  133. package/cjs/components/DropdownMenu/__docs__/DropdownMenu.mdx +28 -0
  134. package/cjs/components/FileUploader/FileUploader.d.ts +17 -20
  135. package/cjs/components/FileUploader/FileUploader.js +8 -4
  136. package/cjs/components/FileUploader/FileUploader.js.map +1 -1
  137. package/cjs/components/FileUploader/FileUploader.md +32 -9
  138. package/cjs/components/FileUploader/__docs__/FileUploader.mdx +28 -0
  139. package/cjs/components/FxInput/FxInput.d.ts +17 -9
  140. package/cjs/components/FxInput/FxInput.js +21 -2
  141. package/cjs/components/FxInput/FxInput.js.map +1 -1
  142. package/cjs/components/FxInput/FxInput.md +2 -0
  143. package/cjs/components/FxInput/FxInputRestoreBtn.d.ts +2 -0
  144. package/cjs/components/FxInput/FxInputRestoreBtn.js +5 -1
  145. package/cjs/components/FxInput/FxInputRestoreBtn.js.map +1 -1
  146. package/cjs/components/FxInput/__creevey__/FxInput.creevey.mts +21 -0
  147. package/cjs/components/FxInput/__docs__/FxInput.mdx +28 -0
  148. package/cjs/components/Gapped/Gapped.d.ts +6 -17
  149. package/cjs/components/Gapped/Gapped.js +1 -8
  150. package/cjs/components/Gapped/Gapped.js.map +1 -1
  151. package/cjs/components/Gapped/Gapped.md +3 -2
  152. package/cjs/components/Gapped/__docs__/Gapped.mdx +24 -0
  153. package/cjs/components/GlobalLoader/GlobalLoader.d.ts +23 -32
  154. package/cjs/components/GlobalLoader/GlobalLoader.js +20 -16
  155. package/cjs/components/GlobalLoader/GlobalLoader.js.map +1 -1
  156. package/cjs/components/GlobalLoader/GlobalLoader.md +4 -5
  157. package/cjs/components/GlobalLoader/GlobalLoaderView.d.ts +4 -0
  158. package/cjs/components/GlobalLoader/GlobalLoaderView.js +7 -0
  159. package/cjs/components/GlobalLoader/GlobalLoaderView.js.map +1 -1
  160. package/cjs/components/GlobalLoader/__docs__/GlobalLoader.mdx +28 -0
  161. package/cjs/components/Group/Group.d.ts +6 -0
  162. package/cjs/components/Group/Group.js +31 -8
  163. package/cjs/components/Group/Group.js.map +1 -1
  164. package/cjs/components/Group/Group.md +1 -0
  165. package/cjs/components/Group/__creevey__/Group.creevey.mts +19 -0
  166. package/cjs/components/Group/__docs__/Group.mdx +24 -0
  167. package/cjs/components/Hint/Hint.d.ts +18 -40
  168. package/cjs/components/Hint/Hint.js +4 -16
  169. package/cjs/components/Hint/Hint.js.map +1 -1
  170. package/cjs/components/Hint/Hint.md +9 -8
  171. package/cjs/components/Hint/__creevey__/Hint.creevey.mts +68 -0
  172. package/cjs/components/Hint/__docs__/Hint.mdx +29 -0
  173. package/cjs/components/Input/Input.d.ts +72 -72
  174. package/cjs/components/Input/Input.js +144 -24
  175. package/cjs/components/Input/Input.js.map +1 -1
  176. package/cjs/components/Input/Input.md +11 -2
  177. package/cjs/components/Input/__creevey__/Input.creevey.mts +239 -0
  178. package/cjs/components/Input/__docs__/Input.mdx +28 -0
  179. package/cjs/components/Kebab/Kebab.d.ts +12 -16
  180. package/cjs/components/Kebab/Kebab.js +4 -2
  181. package/cjs/components/Kebab/Kebab.js.map +1 -1
  182. package/cjs/components/Kebab/Kebab.md +9 -9
  183. package/cjs/components/Kebab/__creevey__/Kebab.creevey.mts +147 -0
  184. package/cjs/components/Kebab/__docs__/Kebab.mdx +28 -0
  185. package/cjs/components/Link/Link.d.ts +16 -40
  186. package/cjs/components/Link/Link.js +28 -34
  187. package/cjs/components/Link/Link.js.map +1 -1
  188. package/cjs/components/Link/Link.md +12 -11
  189. package/cjs/components/Link/Link.styles.d.ts +6 -7
  190. package/cjs/components/Link/Link.styles.js +12 -24
  191. package/cjs/components/Link/Link.styles.js.map +1 -1
  192. package/cjs/components/Link/__creevey__/Link.creevey.mts +162 -0
  193. package/cjs/components/Link/__docs__/Link.mdx +28 -0
  194. package/cjs/components/Loader/Loader.d.ts +13 -25
  195. package/cjs/components/Loader/Loader.js +2 -8
  196. package/cjs/components/Loader/Loader.js.map +1 -1
  197. package/cjs/components/Loader/Loader.md +1 -0
  198. package/cjs/components/Loader/__creevey__/Loader.creevey.mts +35 -0
  199. package/cjs/components/Loader/__docs__/Loader.mdx +26 -0
  200. package/cjs/components/MaskedInput/ColorableInputElement/ColorableInputElement.d.ts +7 -0
  201. package/cjs/components/MaskedInput/ColorableInputElement/ColorableInputElement.js +170 -0
  202. package/cjs/components/MaskedInput/ColorableInputElement/ColorableInputElement.js.map +1 -0
  203. package/cjs/components/MaskedInput/ColorableInputElement/ColorableInputElement.styles.d.ts +3 -0
  204. package/cjs/components/MaskedInput/ColorableInputElement/ColorableInputElement.styles.js +8 -0
  205. package/cjs/components/MaskedInput/ColorableInputElement/ColorableInputElement.styles.js.map +1 -0
  206. package/cjs/components/MaskedInput/ColorableInputElement/index.d.ts +1 -0
  207. package/cjs/components/MaskedInput/ColorableInputElement/index.js +1 -0
  208. package/cjs/components/MaskedInput/ColorableInputElement/index.js.map +1 -0
  209. package/cjs/components/MaskedInput/FixedIMaskInput.d.ts +9 -0
  210. package/cjs/components/MaskedInput/FixedIMaskInput.js +228 -0
  211. package/cjs/components/MaskedInput/FixedIMaskInput.js.map +1 -0
  212. package/cjs/components/MaskedInput/MaskedInput.d.ts +27 -9
  213. package/cjs/components/MaskedInput/MaskedInput.helpers.d.ts +9 -0
  214. package/cjs/components/MaskedInput/MaskedInput.helpers.js +24 -0
  215. package/cjs/components/MaskedInput/MaskedInput.helpers.js.map +1 -0
  216. package/cjs/components/MaskedInput/MaskedInput.js +165 -24
  217. package/cjs/components/MaskedInput/MaskedInput.js.map +1 -1
  218. package/cjs/components/MaskedInput/MaskedInput.md +102 -9
  219. package/cjs/components/MaskedInput/MaskedInput.styles.d.ts +3 -0
  220. package/cjs/components/MaskedInput/MaskedInput.styles.js +5 -0
  221. package/cjs/components/MaskedInput/MaskedInput.styles.js.map +1 -0
  222. package/cjs/components/MaskedInput/__creevey__/MaskedInput.creevey.mts +216 -0
  223. package/cjs/components/MaskedInput/__docs__/MaskedInput.mdx +28 -0
  224. package/cjs/components/MenuFooter/MenuFooter.d.ts +6 -4
  225. package/cjs/components/MenuFooter/MenuFooter.js +7 -3
  226. package/cjs/components/MenuFooter/MenuFooter.js.map +1 -1
  227. package/cjs/components/MenuFooter/MenuFooter.md +2 -2
  228. package/cjs/components/MenuFooter/MenuFooter.mixins.d.ts +1 -1
  229. package/cjs/components/MenuFooter/MenuFooter.mixins.js +1 -4
  230. package/cjs/components/MenuFooter/MenuFooter.mixins.js.map +1 -1
  231. package/cjs/components/MenuFooter/MenuFooter.styles.js +0 -3
  232. package/cjs/components/MenuFooter/MenuFooter.styles.js.map +1 -1
  233. package/cjs/components/MenuFooter/__docs__/MenuFooter.mdx +24 -0
  234. package/cjs/components/MenuHeader/MenuHeader.d.ts +6 -4
  235. package/cjs/components/MenuHeader/MenuHeader.js +7 -3
  236. package/cjs/components/MenuHeader/MenuHeader.js.map +1 -1
  237. package/cjs/components/MenuHeader/MenuHeader.md +2 -2
  238. package/cjs/components/MenuHeader/MenuHeader.mixins.d.ts +1 -1
  239. package/cjs/components/MenuHeader/MenuHeader.mixins.js +1 -4
  240. package/cjs/components/MenuHeader/MenuHeader.mixins.js.map +1 -1
  241. package/cjs/components/MenuHeader/MenuHeader.styles.js +0 -3
  242. package/cjs/components/MenuHeader/MenuHeader.styles.js.map +1 -1
  243. package/cjs/components/MenuHeader/__docs__/MenuHeader.mdx +24 -0
  244. package/cjs/components/MenuItem/MenuItem.d.ts +23 -55
  245. package/cjs/components/MenuItem/MenuItem.js +26 -43
  246. package/cjs/components/MenuItem/MenuItem.js.map +1 -1
  247. package/cjs/components/MenuItem/MenuItem.md +34 -30
  248. package/cjs/components/MenuItem/MenuItem.mixins.d.ts +2 -2
  249. package/cjs/components/MenuItem/MenuItem.mixins.js +2 -10
  250. package/cjs/components/MenuItem/MenuItem.mixins.js.map +1 -1
  251. package/cjs/components/MenuItem/MenuItem.styles.d.ts +2 -2
  252. package/cjs/components/MenuItem/MenuItem.styles.js +9 -20
  253. package/cjs/components/MenuItem/MenuItem.styles.js.map +1 -1
  254. package/cjs/components/MenuItem/__docs__/MenuItem.mdx +24 -0
  255. package/cjs/components/MenuSeparator/MenuSeparator.d.ts +2 -2
  256. package/cjs/components/MenuSeparator/MenuSeparator.js +3 -2
  257. package/cjs/components/MenuSeparator/MenuSeparator.js.map +1 -1
  258. package/cjs/components/MenuSeparator/MenuSeparator.md +1 -1
  259. package/cjs/components/MenuSeparator/__docs__/MenuSeparator.mdx +24 -0
  260. package/cjs/components/MiniModal/MiniModal.d.ts +6 -0
  261. package/cjs/components/MiniModal/MiniModal.js +6 -0
  262. package/cjs/components/MiniModal/MiniModal.js.map +1 -1
  263. package/cjs/components/MiniModal/MiniModal.md +1 -3
  264. package/cjs/components/MiniModal/MiniModal.styles.d.ts +3 -6
  265. package/cjs/components/MiniModal/MiniModal.styles.js +9 -26
  266. package/cjs/components/MiniModal/MiniModal.styles.js.map +1 -1
  267. package/cjs/components/MiniModal/MiniModalFooter.d.ts +2 -7
  268. package/cjs/components/MiniModal/MiniModalFooter.js +3 -18
  269. package/cjs/components/MiniModal/MiniModalFooter.js.map +1 -1
  270. package/cjs/components/MiniModal/MiniModalHeader.d.ts +2 -5
  271. package/cjs/components/MiniModal/MiniModalHeader.js +0 -3
  272. package/cjs/components/MiniModal/MiniModalHeader.js.map +1 -1
  273. package/cjs/components/MiniModal/MiniModalIndent.js +1 -10
  274. package/cjs/components/MiniModal/MiniModalIndent.js.map +1 -1
  275. package/cjs/components/MiniModal/__docs__/MiniModal.mdx +28 -0
  276. package/cjs/components/MiniModal/__docs__/MiniModalBody.mdx +17 -0
  277. package/cjs/components/MiniModal/__docs__/MiniModalFooter.mdx +17 -0
  278. package/cjs/components/MiniModal/__docs__/MiniModalHeader.mdx +18 -0
  279. package/cjs/components/MiniModal/__docs__/MiniModalIndent.mdx +11 -0
  280. package/cjs/components/MiniModal/getMiniModalTheme.d.ts +1 -1
  281. package/cjs/components/Modal/Modal.d.ts +12 -33
  282. package/cjs/components/Modal/Modal.js +11 -34
  283. package/cjs/components/Modal/Modal.js.map +1 -1
  284. package/cjs/components/Modal/Modal.md +3 -1
  285. package/cjs/components/Modal/Modal.styles.d.ts +4 -1
  286. package/cjs/components/Modal/Modal.styles.js +73 -38
  287. package/cjs/components/Modal/Modal.styles.js.map +1 -1
  288. package/cjs/components/Modal/ModalBody.d.ts +2 -4
  289. package/cjs/components/Modal/ModalBody.js +1 -3
  290. package/cjs/components/Modal/ModalBody.js.map +1 -1
  291. package/cjs/components/Modal/ModalClose.js +7 -2
  292. package/cjs/components/Modal/ModalClose.js.map +1 -1
  293. package/cjs/components/Modal/ModalContext.d.ts +5 -3
  294. package/cjs/components/Modal/ModalContext.js +3 -0
  295. package/cjs/components/Modal/ModalContext.js.map +1 -1
  296. package/cjs/components/Modal/ModalFooter.d.ts +5 -15
  297. package/cjs/components/Modal/ModalFooter.js +2 -9
  298. package/cjs/components/Modal/ModalFooter.js.map +1 -1
  299. package/cjs/components/Modal/ModalHeader.d.ts +3 -1
  300. package/cjs/components/Modal/ModalHeader.js +5 -2
  301. package/cjs/components/Modal/ModalHeader.js.map +1 -1
  302. package/cjs/components/Modal/ModalSeparator.d.ts +1 -0
  303. package/cjs/components/Modal/ModalSeparator.js +1 -0
  304. package/cjs/components/Modal/ModalSeparator.js.map +1 -1
  305. package/cjs/components/Modal/__creevey__/Modal.creevey.mts +295 -0
  306. package/cjs/components/Modal/__docs__/Modal.mdx +28 -0
  307. package/cjs/components/Modal/__docs__/ModalBody.mdx +15 -0
  308. package/cjs/components/Modal/__docs__/ModalFooter.mdx +15 -0
  309. package/cjs/components/Modal/__docs__/ModalHeader.mdx +15 -0
  310. package/cjs/components/Modal/__docs__/ModalSeparator.mdx +15 -0
  311. package/cjs/components/Paging/Paging.d.ts +20 -15
  312. package/cjs/components/Paging/Paging.js +17 -1
  313. package/cjs/components/Paging/Paging.js.map +1 -1
  314. package/cjs/components/Paging/Paging.md +3 -2
  315. package/cjs/components/Paging/Paging.styles.js +1 -1
  316. package/cjs/components/Paging/Paging.styles.js.map +1 -1
  317. package/cjs/components/Paging/PagingDefaultComponent.d.ts +2 -0
  318. package/cjs/components/Paging/PagingDefaultComponent.js +3 -0
  319. package/cjs/components/Paging/PagingDefaultComponent.js.map +1 -1
  320. package/cjs/components/Paging/__creevey__/Paging.creevey.mts +97 -0
  321. package/cjs/components/Paging/__docs__/Paging.mdx +28 -0
  322. package/cjs/components/PasswordInput/PasswordInput.d.ts +11 -4
  323. package/cjs/components/PasswordInput/PasswordInput.js +39 -10
  324. package/cjs/components/PasswordInput/PasswordInput.js.map +1 -1
  325. package/cjs/components/PasswordInput/PasswordInput.md +3 -2
  326. package/cjs/components/PasswordInput/PasswordInput.styles.js +2 -1
  327. package/cjs/components/PasswordInput/PasswordInput.styles.js.map +1 -1
  328. package/cjs/components/PasswordInput/__creevey__/PasswordInput.creevey.mts +46 -0
  329. package/cjs/components/PasswordInput/__docs__/PasswordInput.mdx +28 -0
  330. package/cjs/components/Radio/Radio.d.ts +13 -28
  331. package/cjs/components/Radio/Radio.js +1 -8
  332. package/cjs/components/Radio/Radio.js.map +1 -1
  333. package/cjs/components/Radio/Radio.md +3 -2
  334. package/cjs/components/Radio/__creevey__/Radio.creevey.mts +28 -0
  335. package/cjs/components/Radio/__docs__/Radio.mdx +28 -0
  336. package/cjs/components/RadioGroup/RadioGroup.d.ts +28 -56
  337. package/cjs/components/RadioGroup/RadioGroup.js +6 -32
  338. package/cjs/components/RadioGroup/RadioGroup.js.map +1 -1
  339. package/cjs/components/RadioGroup/RadioGroup.md +1 -0
  340. package/cjs/components/RadioGroup/RadioGroup.styles.d.ts +1 -2
  341. package/cjs/components/RadioGroup/RadioGroup.styles.js +3 -4
  342. package/cjs/components/RadioGroup/RadioGroup.styles.js.map +1 -1
  343. package/cjs/components/RadioGroup/__creevey__/RadioGroup.creevey.mts +86 -0
  344. package/cjs/components/RadioGroup/__docs__/RadioGroup.mdx +28 -0
  345. package/cjs/components/ResponsiveLayout/ResponsiveLayout.d.ts +4 -1
  346. package/cjs/components/ResponsiveLayout/ResponsiveLayout.js +6 -2
  347. package/cjs/components/ResponsiveLayout/ResponsiveLayout.js.map +1 -1
  348. package/cjs/components/ResponsiveLayout/ResponsiveLayout.md +4 -3
  349. package/cjs/components/ResponsiveLayout/__docs__/ResponsiveLayout.mdx +97 -0
  350. package/cjs/components/ScrollContainer/ScrollBar.d.ts +7 -0
  351. package/cjs/components/ScrollContainer/ScrollBar.js +13 -0
  352. package/cjs/components/ScrollContainer/ScrollBar.js.map +1 -1
  353. package/cjs/components/ScrollContainer/ScrollContainer.d.ts +23 -29
  354. package/cjs/components/ScrollContainer/ScrollContainer.js +8 -1
  355. package/cjs/components/ScrollContainer/ScrollContainer.js.map +1 -1
  356. package/cjs/components/ScrollContainer/ScrollContainer.md +5 -3
  357. package/cjs/components/ScrollContainer/__creevey__/ScrollContainer.creevey.mts +247 -0
  358. package/cjs/components/ScrollContainer/__docs__/ScrollContainer.mdx +24 -0
  359. package/cjs/components/Select/Item.d.ts +2 -0
  360. package/cjs/components/Select/Item.js +3 -0
  361. package/cjs/components/Select/Item.js.map +1 -1
  362. package/cjs/components/Select/Select.d.ts +57 -44
  363. package/cjs/components/Select/Select.js +67 -10
  364. package/cjs/components/Select/Select.js.map +1 -1
  365. package/cjs/components/Select/Select.md +7 -6
  366. package/cjs/components/Select/__creevey__/Select.creevey.mts +293 -0
  367. package/cjs/components/Select/__docs__/Select.mdx +28 -0
  368. package/cjs/components/Select/tids.d.ts +5 -0
  369. package/cjs/components/Select/tids.js +5 -0
  370. package/cjs/components/Select/tids.js.map +1 -0
  371. package/cjs/components/SidePage/SidePage.d.ts +17 -38
  372. package/cjs/components/SidePage/SidePage.js +15 -28
  373. package/cjs/components/SidePage/SidePage.js.map +1 -1
  374. package/cjs/components/SidePage/SidePage.md +2 -1
  375. package/cjs/components/SidePage/SidePage.styles.d.ts +8 -1
  376. package/cjs/components/SidePage/SidePage.styles.js +84 -30
  377. package/cjs/components/SidePage/SidePage.styles.js.map +1 -1
  378. package/cjs/components/SidePage/SidePageCloseButton.d.ts +6 -1
  379. package/cjs/components/SidePage/SidePageCloseButton.js +14 -2
  380. package/cjs/components/SidePage/SidePageCloseButton.js.map +1 -1
  381. package/cjs/components/SidePage/SidePageFooter.d.ts +4 -9
  382. package/cjs/components/SidePage/SidePageFooter.js +0 -2
  383. package/cjs/components/SidePage/SidePageFooter.js.map +1 -1
  384. package/cjs/components/SidePage/SidePageHeader.d.ts +2 -1
  385. package/cjs/components/SidePage/SidePageHeader.js +14 -7
  386. package/cjs/components/SidePage/SidePageHeader.js.map +1 -1
  387. package/cjs/components/SidePage/__creevey__/SidePage.creevey.mts +421 -0
  388. package/cjs/components/SidePage/__docs__/SidePage.mdx +28 -0
  389. package/cjs/components/SidePage/__docs__/SidePageBody.mdx +15 -0
  390. package/cjs/components/SidePage/__docs__/SidePageContainer.mdx +15 -0
  391. package/cjs/components/SidePage/__docs__/SidePageFooter.mdx +15 -0
  392. package/cjs/components/SidePage/__docs__/SidePageHeader.mdx +15 -0
  393. package/cjs/components/SingleToast/SingleToast.d.ts +5 -1
  394. package/cjs/components/SingleToast/SingleToast.js +10 -2
  395. package/cjs/components/SingleToast/SingleToast.js.map +1 -1
  396. package/cjs/components/SingleToast/SingleToast.md +2 -1
  397. package/cjs/components/SingleToast/__docs__/SingleToast.mdx +28 -0
  398. package/cjs/components/Spinner/Spinner.d.ts +15 -20
  399. package/cjs/components/Spinner/Spinner.js +6 -7
  400. package/cjs/components/Spinner/Spinner.js.map +1 -1
  401. package/cjs/components/Spinner/Spinner.md +2 -1
  402. package/cjs/components/Spinner/__docs__/Spinner.mdx +28 -0
  403. package/cjs/components/Sticky/Sticky.d.ts +9 -4
  404. package/cjs/components/Sticky/Sticky.js +9 -1
  405. package/cjs/components/Sticky/Sticky.js.map +1 -1
  406. package/cjs/components/Sticky/Sticky.md +1 -0
  407. package/cjs/components/Sticky/__creevey__/Sticky.creevey.mts +98 -0
  408. package/cjs/components/Sticky/__docs__/Sticky.mdx +24 -0
  409. package/cjs/components/Switcher/Switcher.d.ts +18 -7
  410. package/cjs/components/Switcher/Switcher.js +14 -3
  411. package/cjs/components/Switcher/Switcher.js.map +1 -1
  412. package/cjs/components/Switcher/Switcher.md +6 -2
  413. package/cjs/components/Switcher/Switcher.styles.d.ts +1 -0
  414. package/cjs/components/Switcher/Switcher.styles.js +20 -1
  415. package/cjs/components/Switcher/Switcher.styles.js.map +1 -1
  416. package/cjs/components/Switcher/__creevey__/Switcher.creevey.mts +24 -0
  417. package/cjs/components/Switcher/__docs__/Switcher.mdx +28 -0
  418. package/cjs/components/Tabs/Tab.d.ts +12 -31
  419. package/cjs/components/Tabs/Tab.js +1 -20
  420. package/cjs/components/Tabs/Tab.js.map +1 -1
  421. package/cjs/components/Tabs/Tab.md +2 -0
  422. package/cjs/components/Tabs/Tabs.d.ts +14 -25
  423. package/cjs/components/Tabs/Tabs.js +6 -17
  424. package/cjs/components/Tabs/Tabs.js.map +1 -1
  425. package/cjs/components/Tabs/Tabs.md +3 -2
  426. package/cjs/components/Tabs/__creevey__/Tabs.creevey.mts +239 -0
  427. package/cjs/components/Tabs/__docs__/Tab.mdx +28 -0
  428. package/cjs/components/Tabs/__docs__/Tabs.mdx +28 -0
  429. package/cjs/components/Textarea/Textarea.d.ts +26 -52
  430. package/cjs/components/Textarea/Textarea.js +3 -23
  431. package/cjs/components/Textarea/Textarea.js.map +1 -1
  432. package/cjs/components/Textarea/Textarea.md +4 -2
  433. package/cjs/components/Textarea/__creevey__/Textarea.creevey.mts +177 -0
  434. package/cjs/components/Textarea/__docs__/Textarea.mdx +28 -0
  435. package/cjs/components/Toast/Toast.d.ts +12 -9
  436. package/cjs/components/Toast/Toast.js +13 -5
  437. package/cjs/components/Toast/Toast.js.map +1 -1
  438. package/cjs/components/Toast/Toast.md +4 -4
  439. package/cjs/components/Toast/ToastStatic.d.ts +2 -2
  440. package/cjs/components/Toast/ToastStatic.js +15 -5
  441. package/cjs/components/Toast/ToastStatic.js.map +1 -1
  442. package/cjs/components/Toast/ToastView.d.ts +3 -6
  443. package/cjs/components/Toast/ToastView.js +16 -10
  444. package/cjs/components/Toast/ToastView.js.map +1 -1
  445. package/cjs/components/Toast/ToastView.styles.js +4 -4
  446. package/cjs/components/Toast/ToastView.styles.js.map +1 -1
  447. package/cjs/components/Toast/__creevey__/Toast.creevey.mts +77 -0
  448. package/cjs/components/Toast/__docs__/Toast.mdx +28 -0
  449. package/cjs/components/Toggle/Toggle.d.ts +26 -51
  450. package/cjs/components/Toggle/Toggle.js +14 -13
  451. package/cjs/components/Toggle/Toggle.js.map +1 -1
  452. package/cjs/components/Toggle/Toggle.md +9 -9
  453. package/cjs/components/Toggle/__creevey__/Toggle.creevey.mts +87 -0
  454. package/cjs/components/Toggle/__docs__/Toggle.mdx +28 -0
  455. package/cjs/components/Token/Token.d.ts +17 -9
  456. package/cjs/components/Token/Token.js +10 -2
  457. package/cjs/components/Token/Token.js.map +1 -1
  458. package/cjs/components/Token/Token.md +86 -3
  459. package/cjs/components/Token/Token.styles.d.ts +1 -1
  460. package/cjs/components/Token/Token.styles.js +2 -3
  461. package/cjs/components/Token/Token.styles.js.map +1 -1
  462. package/cjs/components/Token/TokenView.d.ts +3 -0
  463. package/cjs/components/Token/TokenView.js +3 -0
  464. package/cjs/components/Token/TokenView.js.map +1 -1
  465. package/cjs/components/Token/__docs__/Token.mdx +28 -0
  466. package/cjs/components/TokenInput/TextWidthHelper.d.ts +3 -0
  467. package/cjs/components/TokenInput/TextWidthHelper.js +5 -0
  468. package/cjs/components/TokenInput/TextWidthHelper.js.map +1 -1
  469. package/cjs/components/TokenInput/TokenInput.d.ts +54 -97
  470. package/cjs/components/TokenInput/TokenInput.js +8 -18
  471. package/cjs/components/TokenInput/TokenInput.js.map +1 -1
  472. package/cjs/components/TokenInput/TokenInput.md +14 -12
  473. package/cjs/components/TokenInput/TokenInput.styles.d.ts +0 -1
  474. package/cjs/components/TokenInput/TokenInput.styles.js +4 -10
  475. package/cjs/components/TokenInput/TokenInput.styles.js.map +1 -1
  476. package/cjs/components/TokenInput/TokenInputMenu.d.ts +5 -5
  477. package/cjs/components/TokenInput/TokenInputMenu.js +2 -1
  478. package/cjs/components/TokenInput/TokenInputMenu.js.map +1 -1
  479. package/cjs/components/TokenInput/__creevey__/TokenInput.creevey.mts +414 -0
  480. package/cjs/components/TokenInput/__docs__/TokenInput.mdx +28 -0
  481. package/cjs/components/TokenInput/locale/locales/en.js +1 -1
  482. package/cjs/components/TokenInput/locale/locales/en.js.map +1 -1
  483. package/cjs/components/TokenInput/locale/locales/ru.js +1 -1
  484. package/cjs/components/TokenInput/locale/locales/ru.js.map +1 -1
  485. package/cjs/components/Tooltip/Tooltip.d.ts +28 -68
  486. package/cjs/components/Tooltip/Tooltip.js +9 -63
  487. package/cjs/components/Tooltip/Tooltip.js.map +1 -1
  488. package/cjs/components/Tooltip/Tooltip.md +5 -0
  489. package/cjs/components/Tooltip/__creevey__/Tooltip.creevey.mts +533 -0
  490. package/cjs/components/Tooltip/__docs__/Tooltip.mdx +28 -0
  491. package/cjs/components/TooltipMenu/TooltipMenu.d.ts +13 -28
  492. package/cjs/components/TooltipMenu/TooltipMenu.js +1 -16
  493. package/cjs/components/TooltipMenu/TooltipMenu.js.map +1 -1
  494. package/cjs/components/TooltipMenu/TooltipMenu.md +13 -10
  495. package/cjs/components/TooltipMenu/__creevey__/TooltipMenu.creevey.mts +131 -0
  496. package/cjs/components/TooltipMenu/__docs__/TooltipMenu.mdx +24 -0
  497. package/cjs/index.d.ts +3 -2
  498. package/cjs/index.js +3 -2
  499. package/cjs/index.js.map +1 -1
  500. package/cjs/internal/ClearCrossIcon/ClearCrossIcon.d.ts +9 -0
  501. package/cjs/internal/ClearCrossIcon/ClearCrossIcon.js +72 -0
  502. package/cjs/internal/ClearCrossIcon/ClearCrossIcon.js.map +1 -0
  503. package/cjs/internal/ClearCrossIcon/ClearCrossIcon.styles.d.ts +8 -0
  504. package/cjs/internal/ClearCrossIcon/ClearCrossIcon.styles.js +51 -0
  505. package/cjs/internal/ClearCrossIcon/ClearCrossIcon.styles.js.map +1 -0
  506. package/cjs/internal/ClearCrossIcon/CrossIcon.d.ts +3 -0
  507. package/cjs/internal/ClearCrossIcon/CrossIcon.js +15 -0
  508. package/cjs/internal/ClearCrossIcon/CrossIcon.js.map +1 -0
  509. package/cjs/internal/ClearCrossIcon/__creevey__/ClearCrossIcon.creevey.mts +44 -0
  510. package/cjs/internal/CloseButtonIcon/__creevey__/CloseButtonIcon.creevey.mts +48 -0
  511. package/cjs/internal/CustomComboBox/ComboBoxMenu.js +1 -1
  512. package/cjs/internal/CustomComboBox/ComboBoxMenu.js.map +1 -1
  513. package/cjs/internal/CustomComboBox/ComboBoxView.d.ts +6 -2
  514. package/cjs/internal/CustomComboBox/ComboBoxView.js +13 -3
  515. package/cjs/internal/CustomComboBox/ComboBoxView.js.map +1 -1
  516. package/cjs/internal/CustomComboBox/CustomComboBox.d.ts +8 -5
  517. package/cjs/internal/CustomComboBox/CustomComboBox.js +35 -9
  518. package/cjs/internal/CustomComboBox/CustomComboBox.js.map +1 -1
  519. package/cjs/internal/CustomComboBox/CustomComboBoxReducer.d.ts +5 -0
  520. package/cjs/internal/CustomComboBox/CustomComboBoxReducer.js +38 -19
  521. package/cjs/internal/CustomComboBox/CustomComboBoxReducer.js.map +1 -1
  522. package/cjs/internal/CustomComboBox/__creevey__/ComboBoxView.creevey.mts +30 -0
  523. package/cjs/internal/CustomComboBox/tids.d.ts +3 -0
  524. package/cjs/internal/CustomComboBox/tids.js +3 -0
  525. package/cjs/internal/CustomComboBox/tids.js.map +1 -0
  526. package/cjs/internal/FileUploaderControl/__creevey__/FileUploaderFile.creevey.mts +25 -0
  527. package/cjs/internal/HideBodyVerticalScroll/HideBodyVerticalScroll.d.ts +3 -3
  528. package/cjs/internal/HideBodyVerticalScroll/HideBodyVerticalScroll.js +29 -29
  529. package/cjs/internal/HideBodyVerticalScroll/HideBodyVerticalScroll.js.map +1 -1
  530. package/cjs/internal/HideBodyVerticalScroll/__creevey__/HideBodyVerticalScroll.creevey.mts +83 -0
  531. package/cjs/internal/InputLikeText/InputLikeText.d.ts +7 -2
  532. package/cjs/internal/InputLikeText/InputLikeText.js +90 -43
  533. package/cjs/internal/InputLikeText/InputLikeText.js.map +1 -1
  534. package/cjs/internal/InternalMaskedInput/InternalMaskedInput.js +1 -1
  535. package/cjs/internal/InternalMaskedInput/InternalMaskedInput.js.map +1 -1
  536. package/cjs/internal/Menu/Menu.d.ts +2 -1
  537. package/cjs/internal/Menu/Menu.js +4 -4
  538. package/cjs/internal/Menu/Menu.js.map +1 -1
  539. package/cjs/internal/Menu/__creevey__/Menu.creevey.mts +90 -0
  540. package/cjs/internal/MenuMessage/MenuMessage.styles.js +0 -2
  541. package/cjs/internal/MenuMessage/MenuMessage.styles.js.map +1 -1
  542. package/cjs/internal/Popup/Popup.js +4 -6
  543. package/cjs/internal/Popup/Popup.js.map +1 -1
  544. package/cjs/internal/PopupMenu/PopupMenu.d.ts +5 -5
  545. package/cjs/internal/PopupMenu/PopupMenu.js +15 -11
  546. package/cjs/internal/PopupMenu/PopupMenu.js.map +1 -1
  547. package/cjs/internal/PopupMenu/__creevey__/PopupMenu.creevey.mts +37 -0
  548. package/cjs/internal/PopupMenu/tids.d.ts +4 -0
  549. package/cjs/internal/PopupMenu/tids.js +4 -0
  550. package/cjs/internal/PopupMenu/tids.js.map +1 -0
  551. package/cjs/internal/ThemePlayground/Playground.styles.js +2 -1
  552. package/cjs/internal/ThemePlayground/Playground.styles.js.map +1 -1
  553. package/cjs/internal/ThemePlayground/UnlinkVarsPlayground.d.ts +2 -0
  554. package/cjs/internal/ThemePlayground/UnlinkVarsPlayground.js +32 -0
  555. package/cjs/internal/ThemePlayground/UnlinkVarsPlayground.js.map +1 -0
  556. package/cjs/internal/ThemePlayground/__creevey__/Theme5_0.creevey.mts +36 -0
  557. package/cjs/internal/ThemePlayground/__creevey__/Theme5_0.stories.d.ts +4 -0
  558. package/cjs/internal/ThemePlayground/__creevey__/ThemeProvider.creevey.mts +68 -0
  559. package/cjs/internal/ThemeShowcase/VariablesCollector.d.ts +1 -1
  560. package/cjs/internal/ThemeShowcase/VariablesCollector.js +1 -1
  561. package/cjs/internal/ThemeShowcase/VariablesCollector.js.map +1 -1
  562. package/cjs/internal/ZIndex/ZIndex.d.ts +1 -1
  563. package/cjs/internal/ZIndex/ZIndex.js +20 -8
  564. package/cjs/internal/ZIndex/ZIndex.js.map +1 -1
  565. package/cjs/internal/ZIndex/__creevey__/ZIndex.creevey.mts +228 -0
  566. package/cjs/internal/themes/BasicLightTheme.d.ts +5 -1208
  567. package/cjs/internal/themes/BasicLightTheme.js +2 -2534
  568. package/cjs/internal/themes/BasicLightTheme.js.map +1 -1
  569. package/cjs/internal/themes/BasicTheme.d.ts +1240 -0
  570. package/cjs/internal/themes/BasicTheme.js +2603 -0
  571. package/cjs/internal/themes/BasicTheme.js.map +1 -0
  572. package/cjs/internal/themes/DarkTheme5_0.d.ts +1 -0
  573. package/cjs/internal/themes/DarkTheme5_0.js +570 -0
  574. package/cjs/internal/themes/DarkTheme5_0.js.map +1 -0
  575. package/cjs/internal/themes/DarkTheme5_1.d.ts +1 -0
  576. package/cjs/internal/themes/DarkTheme5_1.js +41 -0
  577. package/cjs/internal/themes/DarkTheme5_1.js.map +1 -0
  578. package/cjs/internal/themes/LightTheme5_0.d.ts +1 -0
  579. package/cjs/internal/themes/LightTheme5_0.js +9 -0
  580. package/cjs/internal/themes/LightTheme5_0.js.map +1 -0
  581. package/cjs/internal/themes/LightTheme5_1.d.ts +1 -0
  582. package/cjs/internal/themes/LightTheme5_1.js +41 -0
  583. package/cjs/internal/themes/LightTheme5_1.js.map +1 -0
  584. package/cjs/lib/ModalStack.d.ts +1 -0
  585. package/cjs/lib/ModalStack.js +6 -4
  586. package/cjs/lib/ModalStack.js.map +1 -1
  587. package/cjs/lib/Upgrades.js +2 -2
  588. package/cjs/lib/Upgrades.js.map +1 -1
  589. package/cjs/lib/delay.d.ts +1 -0
  590. package/cjs/lib/delay.js +3 -0
  591. package/cjs/lib/delay.js.map +1 -0
  592. package/cjs/lib/dom/getParentOrShadowHost.d.ts +1 -0
  593. package/cjs/lib/dom/getParentOrShadowHost.js +3 -0
  594. package/cjs/lib/dom/getParentOrShadowHost.js.map +1 -0
  595. package/cjs/lib/dom/scrollYCenterIntoNearestScrollable.d.ts +2 -0
  596. package/cjs/lib/dom/scrollYCenterIntoNearestScrollable.js +48 -0
  597. package/cjs/lib/dom/scrollYCenterIntoNearestScrollable.js.map +1 -0
  598. package/cjs/lib/events/MouseDrag.d.ts +1 -1
  599. package/cjs/lib/events/MouseDrag.js.map +1 -1
  600. package/cjs/lib/events/keyboard/identifiers.d.ts +3 -0
  601. package/cjs/lib/events/keyboard/identifiers.js +5 -1
  602. package/cjs/lib/events/keyboard/identifiers.js.map +1 -1
  603. package/cjs/lib/featureFlagsContext/FEATUREFLAGSCONTEXT.md +25 -16
  604. package/cjs/lib/featureFlagsContext/FeatureFlagsHelpers.d.ts +3 -1
  605. package/cjs/lib/featureFlagsContext/ReactUIFeatureFlagsContext.d.ts +1 -0
  606. package/cjs/lib/featureFlagsContext/ReactUIFeatureFlagsContext.js +5 -1
  607. package/cjs/lib/featureFlagsContext/ReactUIFeatureFlagsContext.js.map +1 -1
  608. package/cjs/lib/mergeRefs.d.ts +23 -0
  609. package/cjs/lib/mergeRefs.js +76 -0
  610. package/cjs/lib/mergeRefs.js.map +1 -0
  611. package/cjs/lib/styles/UiFont.d.ts +4 -0
  612. package/cjs/lib/styles/UiFont.js +62 -0
  613. package/cjs/lib/styles/UiFont.js.map +1 -0
  614. package/cjs/lib/taskWithDelayAndMinimalDuration.js +4 -0
  615. package/cjs/lib/taskWithDelayAndMinimalDuration.js.map +1 -1
  616. package/cjs/lib/theming/Theme.d.ts +4 -3
  617. package/cjs/lib/theming/Theme.js +1 -1
  618. package/cjs/lib/theming/Theme.js.map +1 -1
  619. package/cjs/lib/theming/ThemeContext.d.ts +1 -1
  620. package/cjs/lib/theming/ThemeContext.js +2 -2
  621. package/cjs/lib/theming/ThemeContext.js.map +1 -1
  622. package/cjs/lib/theming/ThemeFactory.d.ts +9 -0
  623. package/cjs/lib/theming/ThemeFactory.js +28 -9
  624. package/cjs/lib/theming/ThemeFactory.js.map +1 -1
  625. package/cjs/lib/theming/ThemeHelpers.d.ts +55 -8
  626. package/cjs/lib/theming/ThemeHelpers.js +94 -22
  627. package/cjs/lib/theming/ThemeHelpers.js.map +1 -1
  628. package/cjs/lib/theming/ThemeVersions.d.ts +25 -0
  629. package/cjs/lib/theming/ThemeVersions.js +58 -0
  630. package/cjs/lib/theming/ThemeVersions.js.map +1 -0
  631. package/cjs/lib/theming/themes/DarkTheme.d.ts +3 -1
  632. package/cjs/lib/theming/themes/DarkTheme.js +6 -4
  633. package/cjs/lib/theming/themes/DarkTheme.js.map +1 -1
  634. package/cjs/lib/theming/themes/LightTheme.d.ts +3 -1
  635. package/cjs/lib/theming/themes/LightTheme.js +6 -4
  636. package/cjs/lib/theming/themes/LightTheme.js.map +1 -1
  637. package/cjs/lib/theming/themes/LightThemeMobile.d.ts +1 -1
  638. package/cjs/lib/theming/useTheme.d.ts +1 -1
  639. package/cjs/lib/typeGuards.d.ts +1 -0
  640. package/cjs/lib/typeGuards.js +6 -0
  641. package/cjs/lib/typeGuards.js.map +1 -0
  642. package/cjs/lib/types/button-link.d.ts +1 -0
  643. package/cjs/lib/types/button-link.js +1 -0
  644. package/cjs/lib/types/button-link.js.map +1 -0
  645. package/cjs/lib/types/polymorphic-component.d.ts +19 -0
  646. package/cjs/lib/types/polymorphic-component.js +1 -0
  647. package/cjs/lib/types/polymorphic-component.js.map +1 -0
  648. package/cjs/lib/utils.d.ts +21 -17
  649. package/cjs/lib/utils.js +20 -23
  650. package/cjs/lib/utils.js.map +1 -1
  651. package/components/Autocomplete/Autocomplete/Autocomplete.js +3 -2
  652. package/components/Autocomplete/Autocomplete/Autocomplete.js.map +1 -1
  653. package/components/Autocomplete/Autocomplete.d.ts +16 -17
  654. package/components/Autocomplete/Autocomplete.md +9 -7
  655. package/components/Autocomplete/__creevey__/Autocomplete.creevey.mts +239 -0
  656. package/components/Autocomplete/__docs__/Autocomplete.mdx +26 -0
  657. package/components/Button/Button/Button.js +7 -12
  658. package/components/Button/Button/Button.js.map +1 -1
  659. package/components/Button/Button.d.ts +23 -66
  660. package/components/Button/Button.md +40 -26
  661. package/components/Button/Button.styles/Button.styles.js +9 -12
  662. package/components/Button/Button.styles/Button.styles.js.map +1 -1
  663. package/components/Button/Button.styles.d.ts +0 -1
  664. package/components/Button/__creevey__/Button.creevey.mts +251 -0
  665. package/components/Button/__docs__/Button.mdx +28 -0
  666. package/components/Calendar/Calendar/Calendar.js +7 -5
  667. package/components/Calendar/Calendar/Calendar.js.map +1 -1
  668. package/components/Calendar/Calendar.d.ts +22 -45
  669. package/components/Calendar/Calendar.md +14 -13
  670. package/components/Calendar/CalendarDay/CalendarDay.js +2 -0
  671. package/components/Calendar/CalendarDay/CalendarDay.js.map +1 -1
  672. package/components/Calendar/CalendarDay.d.ts +7 -0
  673. package/components/Calendar/CalendarDay.md +32 -32
  674. package/components/Calendar/DayCellView/DayCellView.js +14 -11
  675. package/components/Calendar/DayCellView/DayCellView.js.map +1 -1
  676. package/components/Calendar/DayCellView.styles/DayCellView.styles.js +1 -1
  677. package/components/Calendar/DayCellView.styles/DayCellView.styles.js.map +1 -1
  678. package/components/Calendar/__creevey__/Calendar.creevey.mts +74 -0
  679. package/components/Calendar/__docs__/Calendar.mdx +28 -0
  680. package/components/Calendar/__docs__/CalendarDay.mdx +24 -0
  681. package/components/Center/Center/Center.js +3 -1
  682. package/components/Center/Center/Center.js.map +1 -1
  683. package/components/Center/Center.d.ts +4 -6
  684. package/components/Center/Center.md +1 -1
  685. package/components/Center/__docs__/Center.mdx +24 -0
  686. package/components/Checkbox/Checkbox/Checkbox.js +7 -0
  687. package/components/Checkbox/Checkbox/Checkbox.js.map +1 -1
  688. package/components/Checkbox/Checkbox.d.ts +20 -28
  689. package/components/Checkbox/Checkbox.md +6 -5
  690. package/components/Checkbox/__creevey__/Checkbox.creevey.mts +243 -0
  691. package/components/Checkbox/__docs__/Checkbox.mdx +28 -0
  692. package/components/ComboBox/ComboBox/ComboBox.js +15 -3
  693. package/components/ComboBox/ComboBox/ComboBox.js.map +1 -1
  694. package/components/ComboBox/ComboBox.d.ts +76 -88
  695. package/components/ComboBox/ComboBox.md +41 -40
  696. package/components/ComboBox/__creevey__/ComboBox.creevey.mts +541 -0
  697. package/components/ComboBox/__docs__/ComboBox.mdx +28 -0
  698. package/components/CurrencyInput/CurrencyHelper/CurrencyHelper.js.map +1 -1
  699. package/components/CurrencyInput/CurrencyHelper.d.ts +4 -0
  700. package/components/CurrencyInput/CurrencyInput/CurrencyInput.js +5 -2
  701. package/components/CurrencyInput/CurrencyInput/CurrencyInput.js.map +1 -1
  702. package/components/CurrencyInput/CurrencyInput.d.ts +13 -13
  703. package/components/CurrencyInput/CurrencyInput.md +3 -1
  704. package/components/CurrencyInput/CurrencyInputHelper/CurrencyInputHelper.js.map +1 -1
  705. package/components/CurrencyInput/CurrencyInputHelper.d.ts +3 -0
  706. package/components/CurrencyInput/__creevey__/CurrencyInput.creevey.mts +81 -0
  707. package/components/CurrencyInput/__docs__/CurrencyInput.mdx +28 -0
  708. package/components/CurrencyLabel/CurrencyLabel/CurrencyLabel.js +4 -0
  709. package/components/CurrencyLabel/CurrencyLabel/CurrencyLabel.js.map +1 -1
  710. package/components/CurrencyLabel/CurrencyLabel.d.ts +8 -5
  711. package/components/CurrencyLabel/CurrencyLabel.md +5 -5
  712. package/components/CurrencyLabel/__docs__/CurrencyLabel.mdx +24 -0
  713. package/components/DateInput/DateInput/DateInput.js +9 -2
  714. package/components/DateInput/DateInput/DateInput.js.map +1 -1
  715. package/components/DateInput/DateInput.d.ts +21 -29
  716. package/components/DateInput/DateInput.md +7 -2
  717. package/components/DateInput/__creevey__/DateInput.creevey.mts +156 -0
  718. package/components/DateInput/__docs__/DateInput.mdx +26 -0
  719. package/components/DatePicker/DatePicker/DatePicker.js +46 -29
  720. package/components/DatePicker/DatePicker/DatePicker.js.map +1 -1
  721. package/components/DatePicker/DatePicker.d.ts +35 -30
  722. package/components/DatePicker/DatePicker.md +2 -2
  723. package/components/DatePicker/MobilePicker/MobilePicker.js +12 -22
  724. package/components/DatePicker/MobilePicker/MobilePicker.js.map +1 -1
  725. package/components/DatePicker/__creevey__/DatePicker.creevey.mts +209 -0
  726. package/components/DatePicker/__docs__/DatePicker.mdx +28 -0
  727. package/components/DateRangePicker/DateRangePicker/DateRangePicker.js +454 -0
  728. package/components/DateRangePicker/DateRangePicker/DateRangePicker.js.map +1 -0
  729. package/components/DateRangePicker/DateRangePicker/package.json +6 -0
  730. package/components/DateRangePicker/DateRangePicker.d.ts +82 -0
  731. package/components/DateRangePicker/DateRangePicker.styles/DateRangePicker.styles.js +53 -0
  732. package/components/DateRangePicker/DateRangePicker.styles/DateRangePicker.styles.js.map +1 -0
  733. package/components/DateRangePicker/DateRangePicker.styles/package.json +6 -0
  734. package/components/DateRangePicker/DateRangePicker.styles.d.ts +17 -0
  735. package/components/DateRangePicker/DateRangePickerContext/DateRangePickerContext.js +3 -0
  736. package/components/DateRangePicker/DateRangePickerContext/DateRangePickerContext.js.map +1 -0
  737. package/components/DateRangePicker/DateRangePickerContext/package.json +6 -0
  738. package/components/DateRangePicker/DateRangePickerContext.d.ts +31 -0
  739. package/components/DateRangePicker/DateRangePickerInput/DateRangePickerInput.js +145 -0
  740. package/components/DateRangePicker/DateRangePickerInput/DateRangePickerInput.js.map +1 -0
  741. package/components/DateRangePicker/DateRangePickerInput/package.json +6 -0
  742. package/components/DateRangePicker/DateRangePickerInput.d.ts +11 -0
  743. package/components/DateRangePicker/DateRangePickerSeparator/DateRangePickerSeparator.js +4 -0
  744. package/components/DateRangePicker/DateRangePickerSeparator/DateRangePickerSeparator.js.map +1 -0
  745. package/components/DateRangePicker/DateRangePickerSeparator/package.json +6 -0
  746. package/components/DateRangePicker/DateRangePickerSeparator.d.ts +2 -0
  747. package/components/DateRangePicker/DateRangePickerTheme/DateRangePickerTheme.js +24 -0
  748. package/components/DateRangePicker/DateRangePickerTheme/DateRangePickerTheme.js.map +1 -0
  749. package/components/DateRangePicker/DateRangePickerTheme/package.json +6 -0
  750. package/components/DateRangePicker/DateRangePickerTheme.d.ts +3 -0
  751. package/components/DateRangePicker/__creevey__/DateRangePicker.creevey.mts +155 -0
  752. package/components/DateRangePicker/__docs__/DateRangePicker.mdx +127 -0
  753. package/components/DateRangePicker/helpers/getStateForValue/getStateForValue.js +108 -0
  754. package/components/DateRangePicker/helpers/getStateForValue/getStateForValue.js.map +1 -0
  755. package/components/DateRangePicker/helpers/getStateForValue/package.json +6 -0
  756. package/components/DateRangePicker/helpers/getStateForValue.d.ts +9 -0
  757. package/components/DateRangePicker/helpers/validateDateRangePicker/package.json +6 -0
  758. package/components/DateRangePicker/helpers/validateDateRangePicker/validateDateRangePicker.js +49 -0
  759. package/components/DateRangePicker/helpers/validateDateRangePicker/validateDateRangePicker.js.map +1 -0
  760. package/components/DateRangePicker/helpers/validateDateRangePicker.d.ts +9 -0
  761. package/components/DateRangePicker/index/index.js +1 -0
  762. package/components/DateRangePicker/index/index.js.map +1 -0
  763. package/components/DateRangePicker/index/package.json +6 -0
  764. package/components/DateRangePicker/index.d.ts +1 -0
  765. package/components/DateRangePicker/locale/index/index.js +8 -0
  766. package/components/DateRangePicker/locale/index/index.js.map +1 -0
  767. package/components/DateRangePicker/locale/index/package.json +6 -0
  768. package/components/DateRangePicker/locale/index.d.ts +4 -0
  769. package/components/DateRangePicker/locale/locales/en/en.js +8 -0
  770. package/components/DateRangePicker/locale/locales/en/en.js.map +1 -0
  771. package/components/DateRangePicker/locale/locales/en/package.json +6 -0
  772. package/components/DateRangePicker/locale/locales/en.d.ts +2 -0
  773. package/components/DateRangePicker/locale/locales/ru/package.json +6 -0
  774. package/components/DateRangePicker/locale/locales/ru/ru.js +8 -0
  775. package/components/DateRangePicker/locale/locales/ru/ru.js.map +1 -0
  776. package/components/DateRangePicker/locale/locales/ru.d.ts +2 -0
  777. package/components/DateRangePicker/locale/package.json +6 -0
  778. package/components/DateRangePicker/locale/types/package.json +6 -0
  779. package/components/DateRangePicker/locale/types/types.js +1 -0
  780. package/components/DateRangePicker/locale/types/types.js.map +1 -0
  781. package/components/DateRangePicker/locale/types.d.ts +7 -0
  782. package/components/DateRangePicker/package.json +6 -0
  783. package/components/Dropdown/Dropdown/Dropdown.js +19 -12
  784. package/components/Dropdown/Dropdown/Dropdown.js.map +1 -1
  785. package/components/Dropdown/Dropdown.d.ts +29 -32
  786. package/components/Dropdown/Dropdown.md +2 -1
  787. package/components/Dropdown/__creevey__/Dropdown.creevey.mts +184 -0
  788. package/components/Dropdown/__docs__/Dropdown.mdx +28 -0
  789. package/components/DropdownMenu/DropdownMenu/DropdownMenu.js +2 -1
  790. package/components/DropdownMenu/DropdownMenu/DropdownMenu.js.map +1 -1
  791. package/components/DropdownMenu/DropdownMenu.d.ts +3 -1
  792. package/components/DropdownMenu/DropdownMenu.md +12 -10
  793. package/components/DropdownMenu/__creevey__/DropdownMenu.creevey.mts +263 -0
  794. package/components/DropdownMenu/__docs__/DropdownMenu.mdx +28 -0
  795. package/components/FileUploader/FileUploader/FileUploader.js +8 -1
  796. package/components/FileUploader/FileUploader/FileUploader.js.map +1 -1
  797. package/components/FileUploader/FileUploader.d.ts +17 -20
  798. package/components/FileUploader/FileUploader.md +32 -9
  799. package/components/FileUploader/__docs__/FileUploader.mdx +28 -0
  800. package/components/FxInput/FxInput/FxInput.js +10 -3
  801. package/components/FxInput/FxInput/FxInput.js.map +1 -1
  802. package/components/FxInput/FxInput.d.ts +17 -9
  803. package/components/FxInput/FxInput.md +2 -0
  804. package/components/FxInput/FxInputRestoreBtn/FxInputRestoreBtn.js +1 -1
  805. package/components/FxInput/FxInputRestoreBtn/FxInputRestoreBtn.js.map +1 -1
  806. package/components/FxInput/FxInputRestoreBtn.d.ts +2 -0
  807. package/components/FxInput/__creevey__/FxInput.creevey.mts +21 -0
  808. package/components/FxInput/__docs__/FxInput.mdx +28 -0
  809. package/components/Gapped/Gapped/Gapped.js +1 -1
  810. package/components/Gapped/Gapped/Gapped.js.map +1 -1
  811. package/components/Gapped/Gapped.d.ts +6 -17
  812. package/components/Gapped/Gapped.md +3 -2
  813. package/components/Gapped/__docs__/Gapped.mdx +24 -0
  814. package/components/GlobalLoader/GlobalLoader/GlobalLoader.js +26 -5
  815. package/components/GlobalLoader/GlobalLoader/GlobalLoader.js.map +1 -1
  816. package/components/GlobalLoader/GlobalLoader.d.ts +23 -32
  817. package/components/GlobalLoader/GlobalLoader.md +4 -5
  818. package/components/GlobalLoader/GlobalLoaderView/GlobalLoaderView.js.map +1 -1
  819. package/components/GlobalLoader/GlobalLoaderView.d.ts +4 -0
  820. package/components/GlobalLoader/__docs__/GlobalLoader.mdx +28 -0
  821. package/components/Group/Group/Group.js +10 -10
  822. package/components/Group/Group/Group.js.map +1 -1
  823. package/components/Group/Group.d.ts +6 -0
  824. package/components/Group/Group.md +1 -0
  825. package/components/Group/__creevey__/Group.creevey.mts +19 -0
  826. package/components/Group/__docs__/Group.mdx +24 -0
  827. package/components/Hint/Hint/Hint.js +4 -1
  828. package/components/Hint/Hint/Hint.js.map +1 -1
  829. package/components/Hint/Hint.d.ts +18 -40
  830. package/components/Hint/Hint.md +9 -8
  831. package/components/Hint/__creevey__/Hint.creevey.mts +68 -0
  832. package/components/Hint/__docs__/Hint.mdx +29 -0
  833. package/components/Input/Input/Input.js +141 -20
  834. package/components/Input/Input/Input.js.map +1 -1
  835. package/components/Input/Input.d.ts +72 -72
  836. package/components/Input/Input.md +11 -2
  837. package/components/Input/__creevey__/Input.creevey.mts +239 -0
  838. package/components/Input/__docs__/Input.mdx +28 -0
  839. package/components/Kebab/Kebab/Kebab.js +4 -0
  840. package/components/Kebab/Kebab/Kebab.js.map +1 -1
  841. package/components/Kebab/Kebab.d.ts +12 -16
  842. package/components/Kebab/Kebab.md +9 -9
  843. package/components/Kebab/__creevey__/Kebab.creevey.mts +147 -0
  844. package/components/Kebab/__docs__/Kebab.mdx +28 -0
  845. package/components/Link/Link/Link.js +26 -9
  846. package/components/Link/Link/Link.js.map +1 -1
  847. package/components/Link/Link.d.ts +16 -40
  848. package/components/Link/Link.md +12 -11
  849. package/components/Link/Link.styles/Link.styles.js +10 -13
  850. package/components/Link/Link.styles/Link.styles.js.map +1 -1
  851. package/components/Link/Link.styles.d.ts +6 -7
  852. package/components/Link/__creevey__/Link.creevey.mts +162 -0
  853. package/components/Link/__docs__/Link.mdx +28 -0
  854. package/components/Loader/Loader/Loader.js +2 -2
  855. package/components/Loader/Loader/Loader.js.map +1 -1
  856. package/components/Loader/Loader.d.ts +13 -25
  857. package/components/Loader/Loader.md +1 -0
  858. package/components/Loader/__creevey__/Loader.creevey.mts +35 -0
  859. package/components/Loader/__docs__/Loader.mdx +26 -0
  860. package/components/MaskedInput/ColorableInputElement/ColorableInputElement/ColorableInputElement.js +136 -0
  861. package/components/MaskedInput/ColorableInputElement/ColorableInputElement/ColorableInputElement.js.map +1 -0
  862. package/components/MaskedInput/ColorableInputElement/ColorableInputElement/package.json +6 -0
  863. package/components/MaskedInput/ColorableInputElement/ColorableInputElement.d.ts +7 -0
  864. package/components/MaskedInput/ColorableInputElement/ColorableInputElement.styles/ColorableInputElement.styles.js +7 -0
  865. package/components/MaskedInput/ColorableInputElement/ColorableInputElement.styles/ColorableInputElement.styles.js.map +1 -0
  866. package/components/MaskedInput/ColorableInputElement/ColorableInputElement.styles/package.json +6 -0
  867. package/components/MaskedInput/ColorableInputElement/ColorableInputElement.styles.d.ts +3 -0
  868. package/components/MaskedInput/ColorableInputElement/index/index.js +1 -0
  869. package/components/MaskedInput/ColorableInputElement/index/index.js.map +1 -0
  870. package/components/MaskedInput/ColorableInputElement/index/package.json +6 -0
  871. package/components/MaskedInput/ColorableInputElement/index.d.ts +1 -0
  872. package/components/MaskedInput/ColorableInputElement/package.json +6 -0
  873. package/components/MaskedInput/FixedIMaskInput/FixedIMaskInput.js +197 -0
  874. package/components/MaskedInput/FixedIMaskInput/FixedIMaskInput.js.map +1 -0
  875. package/components/MaskedInput/FixedIMaskInput/package.json +6 -0
  876. package/components/MaskedInput/FixedIMaskInput.d.ts +9 -0
  877. package/components/MaskedInput/MaskedInput/MaskedInput.js +132 -27
  878. package/components/MaskedInput/MaskedInput/MaskedInput.js.map +1 -1
  879. package/components/MaskedInput/MaskedInput.d.ts +27 -9
  880. package/components/MaskedInput/MaskedInput.helpers/MaskedInput.helpers.js +20 -0
  881. package/components/MaskedInput/MaskedInput.helpers/MaskedInput.helpers.js.map +1 -0
  882. package/components/MaskedInput/MaskedInput.helpers/package.json +6 -0
  883. package/components/MaskedInput/MaskedInput.helpers.d.ts +9 -0
  884. package/components/MaskedInput/MaskedInput.md +102 -9
  885. package/components/MaskedInput/MaskedInput.styles/MaskedInput.styles.js +4 -0
  886. package/components/MaskedInput/MaskedInput.styles/MaskedInput.styles.js.map +1 -0
  887. package/components/MaskedInput/MaskedInput.styles/package.json +6 -0
  888. package/components/MaskedInput/MaskedInput.styles.d.ts +3 -0
  889. package/components/MaskedInput/__creevey__/MaskedInput.creevey.mts +216 -0
  890. package/components/MaskedInput/__docs__/MaskedInput.mdx +28 -0
  891. package/components/MenuFooter/MenuFooter/MenuFooter.js +3 -3
  892. package/components/MenuFooter/MenuFooter/MenuFooter.js.map +1 -1
  893. package/components/MenuFooter/MenuFooter.d.ts +6 -4
  894. package/components/MenuFooter/MenuFooter.md +2 -2
  895. package/components/MenuFooter/MenuFooter.mixins/MenuFooter.mixins.js +2 -3
  896. package/components/MenuFooter/MenuFooter.mixins/MenuFooter.mixins.js.map +1 -1
  897. package/components/MenuFooter/MenuFooter.mixins.d.ts +1 -1
  898. package/components/MenuFooter/MenuFooter.styles/MenuFooter.styles.js +3 -3
  899. package/components/MenuFooter/MenuFooter.styles/MenuFooter.styles.js.map +1 -1
  900. package/components/MenuFooter/__docs__/MenuFooter.mdx +24 -0
  901. package/components/MenuHeader/MenuHeader/MenuHeader.js +3 -3
  902. package/components/MenuHeader/MenuHeader/MenuHeader.js.map +1 -1
  903. package/components/MenuHeader/MenuHeader.d.ts +6 -4
  904. package/components/MenuHeader/MenuHeader.md +2 -2
  905. package/components/MenuHeader/MenuHeader.mixins/MenuHeader.mixins.js +2 -3
  906. package/components/MenuHeader/MenuHeader.mixins/MenuHeader.mixins.js.map +1 -1
  907. package/components/MenuHeader/MenuHeader.mixins.d.ts +1 -1
  908. package/components/MenuHeader/MenuHeader.styles/MenuHeader.styles.js +3 -3
  909. package/components/MenuHeader/MenuHeader.styles/MenuHeader.styles.js.map +1 -1
  910. package/components/MenuHeader/__docs__/MenuHeader.mdx +24 -0
  911. package/components/MenuItem/MenuItem/MenuItem.js +46 -43
  912. package/components/MenuItem/MenuItem/MenuItem.js.map +1 -1
  913. package/components/MenuItem/MenuItem.d.ts +23 -55
  914. package/components/MenuItem/MenuItem.md +34 -30
  915. package/components/MenuItem/MenuItem.mixins/MenuItem.mixins.js +3 -5
  916. package/components/MenuItem/MenuItem.mixins/MenuItem.mixins.js.map +1 -1
  917. package/components/MenuItem/MenuItem.mixins.d.ts +2 -2
  918. package/components/MenuItem/MenuItem.styles/MenuItem.styles.js +11 -15
  919. package/components/MenuItem/MenuItem.styles/MenuItem.styles.js.map +1 -1
  920. package/components/MenuItem/MenuItem.styles.d.ts +2 -2
  921. package/components/MenuItem/__docs__/MenuItem.mdx +24 -0
  922. package/components/MenuSeparator/MenuSeparator/MenuSeparator.js +3 -2
  923. package/components/MenuSeparator/MenuSeparator/MenuSeparator.js.map +1 -1
  924. package/components/MenuSeparator/MenuSeparator.d.ts +2 -2
  925. package/components/MenuSeparator/MenuSeparator.md +1 -1
  926. package/components/MenuSeparator/__docs__/MenuSeparator.mdx +24 -0
  927. package/components/MiniModal/MiniModal/MiniModal.js +7 -0
  928. package/components/MiniModal/MiniModal/MiniModal.js.map +1 -1
  929. package/components/MiniModal/MiniModal.d.ts +6 -0
  930. package/components/MiniModal/MiniModal.md +1 -3
  931. package/components/MiniModal/MiniModal.styles/MiniModal.styles.js +8 -17
  932. package/components/MiniModal/MiniModal.styles/MiniModal.styles.js.map +1 -1
  933. package/components/MiniModal/MiniModal.styles.d.ts +3 -6
  934. package/components/MiniModal/MiniModalFooter/MiniModalFooter.js +1 -5
  935. package/components/MiniModal/MiniModalFooter/MiniModalFooter.js.map +1 -1
  936. package/components/MiniModal/MiniModalFooter.d.ts +2 -7
  937. package/components/MiniModal/MiniModalHeader/MiniModalHeader.js.map +1 -1
  938. package/components/MiniModal/MiniModalHeader.d.ts +2 -5
  939. package/components/MiniModal/MiniModalIndent/MiniModalIndent.js +5 -9
  940. package/components/MiniModal/MiniModalIndent/MiniModalIndent.js.map +1 -1
  941. package/components/MiniModal/__docs__/MiniModal.mdx +28 -0
  942. package/components/MiniModal/__docs__/MiniModalBody.mdx +17 -0
  943. package/components/MiniModal/__docs__/MiniModalFooter.mdx +17 -0
  944. package/components/MiniModal/__docs__/MiniModalHeader.mdx +18 -0
  945. package/components/MiniModal/__docs__/MiniModalIndent.mdx +11 -0
  946. package/components/MiniModal/getMiniModalTheme.d.ts +1 -1
  947. package/components/Modal/Modal/Modal.js +8 -25
  948. package/components/Modal/Modal/Modal.js.map +1 -1
  949. package/components/Modal/Modal.d.ts +12 -33
  950. package/components/Modal/Modal.md +3 -1
  951. package/components/Modal/Modal.styles/Modal.styles.js +43 -36
  952. package/components/Modal/Modal.styles/Modal.styles.js.map +1 -1
  953. package/components/Modal/Modal.styles.d.ts +4 -1
  954. package/components/Modal/ModalBody/ModalBody.js +1 -1
  955. package/components/Modal/ModalBody/ModalBody.js.map +1 -1
  956. package/components/Modal/ModalBody.d.ts +2 -4
  957. package/components/Modal/ModalClose/ModalClose.js +3 -1
  958. package/components/Modal/ModalClose/ModalClose.js.map +1 -1
  959. package/components/Modal/ModalContext/ModalContext.js.map +1 -1
  960. package/components/Modal/ModalContext.d.ts +5 -3
  961. package/components/Modal/ModalFooter/ModalFooter.js +2 -2
  962. package/components/Modal/ModalFooter/ModalFooter.js.map +1 -1
  963. package/components/Modal/ModalFooter.d.ts +5 -15
  964. package/components/Modal/ModalHeader/ModalHeader.js +2 -2
  965. package/components/Modal/ModalHeader/ModalHeader.js.map +1 -1
  966. package/components/Modal/ModalHeader.d.ts +3 -1
  967. package/components/Modal/ModalSeparator/ModalSeparator.js.map +1 -1
  968. package/components/Modal/ModalSeparator.d.ts +1 -0
  969. package/components/Modal/__creevey__/Modal.creevey.mts +295 -0
  970. package/components/Modal/__docs__/Modal.mdx +28 -0
  971. package/components/Modal/__docs__/ModalBody.mdx +15 -0
  972. package/components/Modal/__docs__/ModalFooter.mdx +15 -0
  973. package/components/Modal/__docs__/ModalHeader.mdx +15 -0
  974. package/components/Modal/__docs__/ModalSeparator.mdx +15 -0
  975. package/components/Paging/Paging/Paging.js +4 -0
  976. package/components/Paging/Paging/Paging.js.map +1 -1
  977. package/components/Paging/Paging.d.ts +20 -15
  978. package/components/Paging/Paging.md +3 -2
  979. package/components/Paging/Paging.styles/Paging.styles.js +1 -1
  980. package/components/Paging/Paging.styles/Paging.styles.js.map +1 -1
  981. package/components/Paging/PagingDefaultComponent/PagingDefaultComponent.js.map +1 -1
  982. package/components/Paging/PagingDefaultComponent.d.ts +2 -0
  983. package/components/Paging/__creevey__/Paging.creevey.mts +97 -0
  984. package/components/Paging/__docs__/Paging.mdx +28 -0
  985. package/components/PasswordInput/PasswordInput/PasswordInput.js +33 -11
  986. package/components/PasswordInput/PasswordInput/PasswordInput.js.map +1 -1
  987. package/components/PasswordInput/PasswordInput.d.ts +11 -4
  988. package/components/PasswordInput/PasswordInput.md +3 -2
  989. package/components/PasswordInput/PasswordInput.styles/PasswordInput.styles.js +1 -1
  990. package/components/PasswordInput/PasswordInput.styles/PasswordInput.styles.js.map +1 -1
  991. package/components/PasswordInput/__creevey__/PasswordInput.creevey.mts +46 -0
  992. package/components/PasswordInput/__docs__/PasswordInput.mdx +28 -0
  993. package/components/Radio/Radio/Radio.js +1 -1
  994. package/components/Radio/Radio/Radio.js.map +1 -1
  995. package/components/Radio/Radio.d.ts +13 -28
  996. package/components/Radio/Radio.md +3 -2
  997. package/components/Radio/__creevey__/Radio.creevey.mts +28 -0
  998. package/components/Radio/__docs__/Radio.mdx +28 -0
  999. package/components/RadioGroup/RadioGroup/RadioGroup.js +5 -14
  1000. package/components/RadioGroup/RadioGroup/RadioGroup.js.map +1 -1
  1001. package/components/RadioGroup/RadioGroup.d.ts +28 -56
  1002. package/components/RadioGroup/RadioGroup.md +1 -0
  1003. package/components/RadioGroup/RadioGroup.styles/RadioGroup.styles.js +2 -2
  1004. package/components/RadioGroup/RadioGroup.styles/RadioGroup.styles.js.map +1 -1
  1005. package/components/RadioGroup/RadioGroup.styles.d.ts +1 -2
  1006. package/components/RadioGroup/__creevey__/RadioGroup.creevey.mts +86 -0
  1007. package/components/RadioGroup/__docs__/RadioGroup.mdx +28 -0
  1008. package/components/ResponsiveLayout/ResponsiveLayout/ResponsiveLayout.js +1 -2
  1009. package/components/ResponsiveLayout/ResponsiveLayout/ResponsiveLayout.js.map +1 -1
  1010. package/components/ResponsiveLayout/ResponsiveLayout.d.ts +4 -1
  1011. package/components/ResponsiveLayout/ResponsiveLayout.md +4 -3
  1012. package/components/ResponsiveLayout/__docs__/ResponsiveLayout.mdx +97 -0
  1013. package/components/ScrollContainer/ScrollBar/ScrollBar.js.map +1 -1
  1014. package/components/ScrollContainer/ScrollBar.d.ts +7 -0
  1015. package/components/ScrollContainer/ScrollContainer/ScrollContainer.js +4 -0
  1016. package/components/ScrollContainer/ScrollContainer/ScrollContainer.js.map +1 -1
  1017. package/components/ScrollContainer/ScrollContainer.d.ts +23 -29
  1018. package/components/ScrollContainer/ScrollContainer.md +5 -3
  1019. package/components/ScrollContainer/__creevey__/ScrollContainer.creevey.mts +247 -0
  1020. package/components/ScrollContainer/__docs__/ScrollContainer.mdx +24 -0
  1021. package/components/Select/Item/Item.js.map +1 -1
  1022. package/components/Select/Item.d.ts +2 -0
  1023. package/components/Select/Select/Select.js +14 -5
  1024. package/components/Select/Select/Select.js.map +1 -1
  1025. package/components/Select/Select.d.ts +57 -44
  1026. package/components/Select/Select.md +7 -6
  1027. package/components/Select/__creevey__/Select.creevey.mts +293 -0
  1028. package/components/Select/__docs__/Select.mdx +28 -0
  1029. package/components/Select/tids/package.json +6 -0
  1030. package/components/Select/tids/tids.js +5 -0
  1031. package/components/Select/tids/tids.js.map +1 -0
  1032. package/components/Select/tids.d.ts +5 -0
  1033. package/components/SidePage/SidePage/SidePage.js +28 -16
  1034. package/components/SidePage/SidePage/SidePage.js.map +1 -1
  1035. package/components/SidePage/SidePage.d.ts +17 -38
  1036. package/components/SidePage/SidePage.md +2 -1
  1037. package/components/SidePage/SidePage.styles/SidePage.styles.js +49 -27
  1038. package/components/SidePage/SidePage.styles/SidePage.styles.js.map +1 -1
  1039. package/components/SidePage/SidePage.styles.d.ts +8 -1
  1040. package/components/SidePage/SidePageCloseButton/SidePageCloseButton.js +6 -2
  1041. package/components/SidePage/SidePageCloseButton/SidePageCloseButton.js.map +1 -1
  1042. package/components/SidePage/SidePageCloseButton.d.ts +6 -1
  1043. package/components/SidePage/SidePageFooter/SidePageFooter.js.map +1 -1
  1044. package/components/SidePage/SidePageFooter.d.ts +4 -9
  1045. package/components/SidePage/SidePageHeader/SidePageHeader.js +13 -5
  1046. package/components/SidePage/SidePageHeader/SidePageHeader.js.map +1 -1
  1047. package/components/SidePage/SidePageHeader.d.ts +2 -1
  1048. package/components/SidePage/__creevey__/SidePage.creevey.mts +421 -0
  1049. package/components/SidePage/__docs__/SidePage.mdx +28 -0
  1050. package/components/SidePage/__docs__/SidePageBody.mdx +15 -0
  1051. package/components/SidePage/__docs__/SidePageContainer.mdx +15 -0
  1052. package/components/SidePage/__docs__/SidePageFooter.mdx +15 -0
  1053. package/components/SidePage/__docs__/SidePageHeader.mdx +15 -0
  1054. package/components/SingleToast/SingleToast/SingleToast.js +14 -5
  1055. package/components/SingleToast/SingleToast/SingleToast.js.map +1 -1
  1056. package/components/SingleToast/SingleToast.d.ts +5 -1
  1057. package/components/SingleToast/SingleToast.md +2 -1
  1058. package/components/SingleToast/__docs__/SingleToast.mdx +28 -0
  1059. package/components/Spinner/Spinner/Spinner.js +6 -2
  1060. package/components/Spinner/Spinner/Spinner.js.map +1 -1
  1061. package/components/Spinner/Spinner.d.ts +15 -20
  1062. package/components/Spinner/Spinner.md +2 -1
  1063. package/components/Spinner/__docs__/Spinner.mdx +28 -0
  1064. package/components/Sticky/Sticky/Sticky.js +5 -0
  1065. package/components/Sticky/Sticky/Sticky.js.map +1 -1
  1066. package/components/Sticky/Sticky.d.ts +9 -4
  1067. package/components/Sticky/Sticky.md +1 -0
  1068. package/components/Sticky/__creevey__/Sticky.creevey.mts +98 -0
  1069. package/components/Sticky/__docs__/Sticky.mdx +24 -0
  1070. package/components/Switcher/Switcher/Switcher.js +16 -6
  1071. package/components/Switcher/Switcher/Switcher.js.map +1 -1
  1072. package/components/Switcher/Switcher.d.ts +18 -7
  1073. package/components/Switcher/Switcher.md +6 -2
  1074. package/components/Switcher/Switcher.styles/Switcher.styles.js +4 -1
  1075. package/components/Switcher/Switcher.styles/Switcher.styles.js.map +1 -1
  1076. package/components/Switcher/Switcher.styles.d.ts +1 -0
  1077. package/components/Switcher/__creevey__/Switcher.creevey.mts +24 -0
  1078. package/components/Switcher/__docs__/Switcher.mdx +28 -0
  1079. package/components/Tabs/Tab/Tab.js +1 -1
  1080. package/components/Tabs/Tab/Tab.js.map +1 -1
  1081. package/components/Tabs/Tab.d.ts +12 -31
  1082. package/components/Tabs/Tab.md +2 -0
  1083. package/components/Tabs/Tabs/Tabs.js +6 -1
  1084. package/components/Tabs/Tabs/Tabs.js.map +1 -1
  1085. package/components/Tabs/Tabs.d.ts +14 -25
  1086. package/components/Tabs/Tabs.md +3 -2
  1087. package/components/Tabs/__creevey__/Tabs.creevey.mts +239 -0
  1088. package/components/Tabs/__docs__/Tab.mdx +28 -0
  1089. package/components/Tabs/__docs__/Tabs.mdx +28 -0
  1090. package/components/Textarea/Textarea/Textarea.js +3 -4
  1091. package/components/Textarea/Textarea/Textarea.js.map +1 -1
  1092. package/components/Textarea/Textarea.d.ts +26 -52
  1093. package/components/Textarea/Textarea.md +4 -2
  1094. package/components/Textarea/__creevey__/Textarea.creevey.mts +177 -0
  1095. package/components/Textarea/__docs__/Textarea.mdx +28 -0
  1096. package/components/Toast/Toast/Toast.js +17 -12
  1097. package/components/Toast/Toast/Toast.js.map +1 -1
  1098. package/components/Toast/Toast.d.ts +12 -9
  1099. package/components/Toast/Toast.md +4 -4
  1100. package/components/Toast/ToastStatic/ToastStatic.js +5 -5
  1101. package/components/Toast/ToastStatic/ToastStatic.js.map +1 -1
  1102. package/components/Toast/ToastStatic.d.ts +2 -2
  1103. package/components/Toast/ToastView/ToastView.js +18 -15
  1104. package/components/Toast/ToastView/ToastView.js.map +1 -1
  1105. package/components/Toast/ToastView.d.ts +3 -6
  1106. package/components/Toast/ToastView.styles/ToastView.styles.js +2 -2
  1107. package/components/Toast/ToastView.styles/ToastView.styles.js.map +1 -1
  1108. package/components/Toast/__creevey__/Toast.creevey.mts +77 -0
  1109. package/components/Toast/__docs__/Toast.mdx +28 -0
  1110. package/components/Toggle/Toggle/Toggle.js +6 -1
  1111. package/components/Toggle/Toggle/Toggle.js.map +1 -1
  1112. package/components/Toggle/Toggle.d.ts +26 -51
  1113. package/components/Toggle/Toggle.md +9 -9
  1114. package/components/Toggle/__creevey__/Toggle.creevey.mts +87 -0
  1115. package/components/Toggle/__docs__/Toggle.mdx +28 -0
  1116. package/components/Token/Token/Token.js +7 -1
  1117. package/components/Token/Token/Token.js.map +1 -1
  1118. package/components/Token/Token.d.ts +17 -9
  1119. package/components/Token/Token.md +86 -3
  1120. package/components/Token/Token.styles/Token.styles.js +2 -2
  1121. package/components/Token/Token.styles/Token.styles.js.map +1 -1
  1122. package/components/Token/Token.styles.d.ts +1 -1
  1123. package/components/Token/TokenView/TokenView.js.map +1 -1
  1124. package/components/Token/TokenView.d.ts +3 -0
  1125. package/components/Token/__docs__/Token.mdx +28 -0
  1126. package/components/TokenInput/TextWidthHelper/TextWidthHelper.js.map +1 -1
  1127. package/components/TokenInput/TextWidthHelper.d.ts +3 -0
  1128. package/components/TokenInput/TokenInput/TokenInput.js +8 -1
  1129. package/components/TokenInput/TokenInput/TokenInput.js.map +1 -1
  1130. package/components/TokenInput/TokenInput.d.ts +54 -97
  1131. package/components/TokenInput/TokenInput.md +14 -12
  1132. package/components/TokenInput/TokenInput.styles/TokenInput.styles.js +4 -7
  1133. package/components/TokenInput/TokenInput.styles/TokenInput.styles.js.map +1 -1
  1134. package/components/TokenInput/TokenInput.styles.d.ts +0 -1
  1135. package/components/TokenInput/TokenInputMenu/TokenInputMenu.js +1 -0
  1136. package/components/TokenInput/TokenInputMenu/TokenInputMenu.js.map +1 -1
  1137. package/components/TokenInput/TokenInputMenu.d.ts +5 -5
  1138. package/components/TokenInput/__creevey__/TokenInput.creevey.mts +414 -0
  1139. package/components/TokenInput/__docs__/TokenInput.mdx +28 -0
  1140. package/components/TokenInput/locale/locales/en/en.js +1 -1
  1141. package/components/TokenInput/locale/locales/en/en.js.map +1 -1
  1142. package/components/TokenInput/locale/locales/ru/ru.js +1 -1
  1143. package/components/TokenInput/locale/locales/ru/ru.js.map +1 -1
  1144. package/components/Tooltip/Tooltip/Tooltip.js +9 -0
  1145. package/components/Tooltip/Tooltip/Tooltip.js.map +1 -1
  1146. package/components/Tooltip/Tooltip.d.ts +28 -68
  1147. package/components/Tooltip/Tooltip.md +5 -0
  1148. package/components/Tooltip/__creevey__/Tooltip.creevey.mts +533 -0
  1149. package/components/Tooltip/__docs__/Tooltip.mdx +28 -0
  1150. package/components/TooltipMenu/TooltipMenu/TooltipMenu.js +1 -1
  1151. package/components/TooltipMenu/TooltipMenu/TooltipMenu.js.map +1 -1
  1152. package/components/TooltipMenu/TooltipMenu.d.ts +13 -28
  1153. package/components/TooltipMenu/TooltipMenu.md +13 -10
  1154. package/components/TooltipMenu/__creevey__/TooltipMenu.creevey.mts +131 -0
  1155. package/components/TooltipMenu/__docs__/TooltipMenu.mdx +24 -0
  1156. package/index.d.ts +3 -2
  1157. package/index.js +3 -2
  1158. package/index.js.map +1 -1
  1159. package/internal/ClearCrossIcon/ClearCrossIcon/ClearCrossIcon.js +63 -0
  1160. package/internal/ClearCrossIcon/ClearCrossIcon/ClearCrossIcon.js.map +1 -0
  1161. package/internal/ClearCrossIcon/ClearCrossIcon/package.json +6 -0
  1162. package/internal/ClearCrossIcon/ClearCrossIcon.d.ts +9 -0
  1163. package/internal/ClearCrossIcon/ClearCrossIcon.styles/ClearCrossIcon.styles.js +21 -0
  1164. package/internal/ClearCrossIcon/ClearCrossIcon.styles/ClearCrossIcon.styles.js.map +1 -0
  1165. package/internal/ClearCrossIcon/ClearCrossIcon.styles/package.json +6 -0
  1166. package/internal/ClearCrossIcon/ClearCrossIcon.styles.d.ts +8 -0
  1167. package/internal/ClearCrossIcon/CrossIcon/CrossIcon.js +22 -0
  1168. package/internal/ClearCrossIcon/CrossIcon/CrossIcon.js.map +1 -0
  1169. package/internal/ClearCrossIcon/CrossIcon/package.json +6 -0
  1170. package/internal/ClearCrossIcon/CrossIcon.d.ts +3 -0
  1171. package/internal/ClearCrossIcon/__creevey__/ClearCrossIcon.creevey.mts +44 -0
  1172. package/internal/CloseButtonIcon/__creevey__/CloseButtonIcon.creevey.mts +48 -0
  1173. package/internal/CustomComboBox/ComboBoxMenu/ComboBoxMenu.js +4 -4
  1174. package/internal/CustomComboBox/ComboBoxMenu/ComboBoxMenu.js.map +1 -1
  1175. package/internal/CustomComboBox/ComboBoxView/ComboBoxView.js +12 -5
  1176. package/internal/CustomComboBox/ComboBoxView/ComboBoxView.js.map +1 -1
  1177. package/internal/CustomComboBox/ComboBoxView.d.ts +6 -2
  1178. package/internal/CustomComboBox/CustomComboBox/CustomComboBox.js +28 -10
  1179. package/internal/CustomComboBox/CustomComboBox/CustomComboBox.js.map +1 -1
  1180. package/internal/CustomComboBox/CustomComboBox.d.ts +8 -5
  1181. package/internal/CustomComboBox/CustomComboBoxReducer/CustomComboBoxReducer.js +38 -19
  1182. package/internal/CustomComboBox/CustomComboBoxReducer/CustomComboBoxReducer.js.map +1 -1
  1183. package/internal/CustomComboBox/CustomComboBoxReducer.d.ts +5 -0
  1184. package/internal/CustomComboBox/__creevey__/ComboBoxView.creevey.mts +30 -0
  1185. package/internal/CustomComboBox/tids/package.json +6 -0
  1186. package/internal/CustomComboBox/tids/tids.js +3 -0
  1187. package/internal/CustomComboBox/tids/tids.js.map +1 -0
  1188. package/internal/CustomComboBox/tids.d.ts +3 -0
  1189. package/internal/FileUploaderControl/__creevey__/FileUploaderFile.creevey.mts +25 -0
  1190. package/internal/HideBodyVerticalScroll/HideBodyVerticalScroll/HideBodyVerticalScroll.js +32 -31
  1191. package/internal/HideBodyVerticalScroll/HideBodyVerticalScroll/HideBodyVerticalScroll.js.map +1 -1
  1192. package/internal/HideBodyVerticalScroll/HideBodyVerticalScroll.d.ts +3 -3
  1193. package/internal/HideBodyVerticalScroll/__creevey__/HideBodyVerticalScroll.creevey.mts +83 -0
  1194. package/internal/InputLikeText/InputLikeText/InputLikeText.js +65 -9
  1195. package/internal/InputLikeText/InputLikeText/InputLikeText.js.map +1 -1
  1196. package/internal/InputLikeText/InputLikeText.d.ts +7 -2
  1197. package/internal/InternalMaskedInput/InternalMaskedInput/InternalMaskedInput.js +2 -1
  1198. package/internal/InternalMaskedInput/InternalMaskedInput/InternalMaskedInput.js.map +1 -1
  1199. package/internal/Menu/Menu/Menu.js +6 -5
  1200. package/internal/Menu/Menu/Menu.js.map +1 -1
  1201. package/internal/Menu/Menu.d.ts +2 -1
  1202. package/internal/Menu/__creevey__/Menu.creevey.mts +90 -0
  1203. package/internal/MenuMessage/MenuMessage.styles/MenuMessage.styles.js +0 -2
  1204. package/internal/MenuMessage/MenuMessage.styles/MenuMessage.styles.js.map +1 -1
  1205. package/internal/Popup/Popup/Popup.js +15 -20
  1206. package/internal/Popup/Popup/Popup.js.map +1 -1
  1207. package/internal/PopupMenu/PopupMenu/PopupMenu.js +4 -5
  1208. package/internal/PopupMenu/PopupMenu/PopupMenu.js.map +1 -1
  1209. package/internal/PopupMenu/PopupMenu.d.ts +5 -5
  1210. package/internal/PopupMenu/__creevey__/PopupMenu.creevey.mts +37 -0
  1211. package/internal/PopupMenu/tids/package.json +6 -0
  1212. package/internal/PopupMenu/tids/tids.js +4 -0
  1213. package/internal/PopupMenu/tids/tids.js.map +1 -0
  1214. package/internal/PopupMenu/tids.d.ts +4 -0
  1215. package/internal/ThemePlayground/Playground.styles/Playground.styles.js +1 -1
  1216. package/internal/ThemePlayground/Playground.styles/Playground.styles.js.map +1 -1
  1217. package/internal/ThemePlayground/UnlinkVarsPlayground/UnlinkVarsPlayground.js +51 -0
  1218. package/internal/ThemePlayground/UnlinkVarsPlayground/UnlinkVarsPlayground.js.map +1 -0
  1219. package/internal/ThemePlayground/UnlinkVarsPlayground/package.json +6 -0
  1220. package/internal/ThemePlayground/UnlinkVarsPlayground.d.ts +2 -0
  1221. package/internal/ThemePlayground/__creevey__/Theme5_0.creevey.mts +36 -0
  1222. package/internal/ThemePlayground/__creevey__/Theme5_0.stories.d.ts +4 -0
  1223. package/internal/ThemePlayground/__creevey__/ThemeProvider.creevey.mts +68 -0
  1224. package/internal/ThemeShowcase/VariablesCollector/VariablesCollector.js +2 -0
  1225. package/internal/ThemeShowcase/VariablesCollector/VariablesCollector.js.map +1 -1
  1226. package/internal/ThemeShowcase/VariablesCollector.d.ts +1 -1
  1227. package/internal/ZIndex/ZIndex/ZIndex.js +14 -16
  1228. package/internal/ZIndex/ZIndex/ZIndex.js.map +1 -1
  1229. package/internal/ZIndex/ZIndex.d.ts +1 -1
  1230. package/internal/ZIndex/__creevey__/ZIndex.creevey.mts +228 -0
  1231. package/internal/themes/BasicLightTheme/BasicLightTheme.js +5 -3345
  1232. package/internal/themes/BasicLightTheme/BasicLightTheme.js.map +1 -1
  1233. package/internal/themes/BasicLightTheme.d.ts +5 -1208
  1234. package/internal/themes/BasicTheme/BasicTheme.js +3443 -0
  1235. package/internal/themes/BasicTheme/BasicTheme.js.map +1 -0
  1236. package/internal/themes/BasicTheme/package.json +6 -0
  1237. package/internal/themes/BasicTheme.d.ts +1240 -0
  1238. package/internal/themes/DarkTheme5_0/DarkTheme5_0.js +409 -0
  1239. package/internal/themes/DarkTheme5_0/DarkTheme5_0.js.map +1 -0
  1240. package/internal/themes/DarkTheme5_0/package.json +6 -0
  1241. package/internal/themes/DarkTheme5_0.d.ts +1 -0
  1242. package/internal/themes/DarkTheme5_1/DarkTheme5_1.js +52 -0
  1243. package/internal/themes/DarkTheme5_1/DarkTheme5_1.js.map +1 -0
  1244. package/internal/themes/DarkTheme5_1/package.json +6 -0
  1245. package/internal/themes/DarkTheme5_1.d.ts +1 -0
  1246. package/internal/themes/LightTheme5_0/LightTheme5_0.js +14 -0
  1247. package/internal/themes/LightTheme5_0/LightTheme5_0.js.map +1 -0
  1248. package/internal/themes/LightTheme5_0/package.json +6 -0
  1249. package/internal/themes/LightTheme5_0.d.ts +1 -0
  1250. package/internal/themes/LightTheme5_1/LightTheme5_1.js +52 -0
  1251. package/internal/themes/LightTheme5_1/LightTheme5_1.js.map +1 -0
  1252. package/internal/themes/LightTheme5_1/package.json +6 -0
  1253. package/internal/themes/LightTheme5_1.d.ts +1 -0
  1254. package/lib/ModalStack/ModalStack.js +8 -8
  1255. package/lib/ModalStack/ModalStack.js.map +1 -1
  1256. package/lib/ModalStack.d.ts +1 -0
  1257. package/lib/Upgrades/Upgrades.js +2 -2
  1258. package/lib/Upgrades/Upgrades.js.map +1 -1
  1259. package/lib/delay/delay.js +6 -0
  1260. package/lib/delay/delay.js.map +1 -0
  1261. package/lib/delay/package.json +6 -0
  1262. package/lib/delay.d.ts +1 -0
  1263. package/lib/dom/getParentOrShadowHost/getParentOrShadowHost.js +3 -0
  1264. package/lib/dom/getParentOrShadowHost/getParentOrShadowHost.js.map +1 -0
  1265. package/lib/dom/getParentOrShadowHost/package.json +6 -0
  1266. package/lib/dom/getParentOrShadowHost.d.ts +1 -0
  1267. package/lib/dom/scrollYCenterIntoNearestScrollable/package.json +6 -0
  1268. package/lib/dom/scrollYCenterIntoNearestScrollable/scrollYCenterIntoNearestScrollable.js +40 -0
  1269. package/lib/dom/scrollYCenterIntoNearestScrollable/scrollYCenterIntoNearestScrollable.js.map +1 -0
  1270. package/lib/dom/scrollYCenterIntoNearestScrollable.d.ts +2 -0
  1271. package/lib/events/MouseDrag/MouseDrag.js.map +1 -1
  1272. package/lib/events/MouseDrag.d.ts +1 -1
  1273. package/lib/events/keyboard/identifiers/identifiers.js +13 -0
  1274. package/lib/events/keyboard/identifiers/identifiers.js.map +1 -1
  1275. package/lib/events/keyboard/identifiers.d.ts +3 -0
  1276. package/lib/featureFlagsContext/FEATUREFLAGSCONTEXT.md +25 -16
  1277. package/lib/featureFlagsContext/FeatureFlagsHelpers.d.ts +3 -1
  1278. package/lib/featureFlagsContext/ReactUIFeatureFlagsContext/ReactUIFeatureFlagsContext.js +3 -1
  1279. package/lib/featureFlagsContext/ReactUIFeatureFlagsContext/ReactUIFeatureFlagsContext.js.map +1 -1
  1280. package/lib/featureFlagsContext/ReactUIFeatureFlagsContext.d.ts +1 -0
  1281. package/lib/mergeRefs/mergeRefs.js +68 -0
  1282. package/lib/mergeRefs/mergeRefs.js.map +1 -0
  1283. package/lib/mergeRefs/package.json +6 -0
  1284. package/lib/mergeRefs.d.ts +23 -0
  1285. package/lib/styles/UiFont/UiFont.js +22 -0
  1286. package/lib/styles/UiFont/UiFont.js.map +1 -0
  1287. package/lib/styles/UiFont/package.json +6 -0
  1288. package/lib/styles/UiFont.d.ts +4 -0
  1289. package/lib/taskWithDelayAndMinimalDuration/taskWithDelayAndMinimalDuration.js +3 -0
  1290. package/lib/taskWithDelayAndMinimalDuration/taskWithDelayAndMinimalDuration.js.map +1 -1
  1291. package/lib/theming/Theme/Theme.js +2 -1
  1292. package/lib/theming/Theme/Theme.js.map +1 -1
  1293. package/lib/theming/Theme.d.ts +4 -3
  1294. package/lib/theming/ThemeContext/ThemeContext.js +2 -2
  1295. package/lib/theming/ThemeContext/ThemeContext.js.map +1 -1
  1296. package/lib/theming/ThemeContext.d.ts +1 -1
  1297. package/lib/theming/ThemeFactory/ThemeFactory.js +21 -7
  1298. package/lib/theming/ThemeFactory/ThemeFactory.js.map +1 -1
  1299. package/lib/theming/ThemeFactory.d.ts +9 -0
  1300. package/lib/theming/ThemeHelpers/ThemeHelpers.js +85 -18
  1301. package/lib/theming/ThemeHelpers/ThemeHelpers.js.map +1 -1
  1302. package/lib/theming/ThemeHelpers.d.ts +55 -8
  1303. package/lib/theming/ThemeVersions/ThemeVersions.js +50 -0
  1304. package/lib/theming/ThemeVersions/ThemeVersions.js.map +1 -0
  1305. package/lib/theming/ThemeVersions/package.json +6 -0
  1306. package/lib/theming/ThemeVersions.d.ts +25 -0
  1307. package/lib/theming/themes/DarkTheme/DarkTheme.js +5 -4
  1308. package/lib/theming/themes/DarkTheme/DarkTheme.js.map +1 -1
  1309. package/lib/theming/themes/DarkTheme.d.ts +3 -1
  1310. package/lib/theming/themes/LightTheme/LightTheme.js +5 -4
  1311. package/lib/theming/themes/LightTheme/LightTheme.js.map +1 -1
  1312. package/lib/theming/themes/LightTheme.d.ts +3 -1
  1313. package/lib/theming/themes/LightThemeMobile.d.ts +1 -1
  1314. package/lib/theming/useTheme.d.ts +1 -1
  1315. package/lib/typeGuards/package.json +6 -0
  1316. package/lib/typeGuards/typeGuards.js +5 -0
  1317. package/lib/typeGuards/typeGuards.js.map +1 -0
  1318. package/lib/typeGuards.d.ts +1 -0
  1319. package/lib/types/button-link/button-link.js +1 -0
  1320. package/lib/types/button-link/button-link.js.map +1 -0
  1321. package/lib/types/button-link/package.json +6 -0
  1322. package/lib/types/button-link.d.ts +1 -0
  1323. package/lib/types/polymorphic-component/package.json +6 -0
  1324. package/lib/types/polymorphic-component/polymorphic-component.js +1 -0
  1325. package/lib/types/polymorphic-component/polymorphic-component.js.map +1 -0
  1326. package/lib/types/polymorphic-component.d.ts +19 -0
  1327. package/lib/utils/utils.js +13 -21
  1328. package/lib/utils/utils.js.map +1 -1
  1329. package/lib/utils.d.ts +21 -17
  1330. package/package.json +19 -12
  1331. package/cjs/components/Autocomplete/__creevey__/Autocomplete.creevey.js +0 -239
  1332. package/cjs/components/Autocomplete/__creevey__/Autocomplete.creevey.js.map +0 -1
  1333. package/cjs/components/Button/__creevey__/Button.creevey.js +0 -250
  1334. package/cjs/components/Button/__creevey__/Button.creevey.js.map +0 -1
  1335. package/cjs/components/Calendar/__creevey__/Calendar.creevey.js +0 -74
  1336. package/cjs/components/Calendar/__creevey__/Calendar.creevey.js.map +0 -1
  1337. package/cjs/components/Checkbox/__creevey__/Checkbox.creevey.js +0 -242
  1338. package/cjs/components/Checkbox/__creevey__/Checkbox.creevey.js.map +0 -1
  1339. package/cjs/components/ComboBox/__creevey__/ComboBox.creevey.js +0 -540
  1340. package/cjs/components/ComboBox/__creevey__/ComboBox.creevey.js.map +0 -1
  1341. package/cjs/components/CurrencyInput/__creevey__/CurrencyInput.creevey.js +0 -81
  1342. package/cjs/components/CurrencyInput/__creevey__/CurrencyInput.creevey.js.map +0 -1
  1343. package/cjs/components/DateInput/__creevey__/DateInput.creevey.js +0 -155
  1344. package/cjs/components/DateInput/__creevey__/DateInput.creevey.js.map +0 -1
  1345. package/cjs/components/DatePicker/__creevey__/DatePicker.creevey.js +0 -209
  1346. package/cjs/components/DatePicker/__creevey__/DatePicker.creevey.js.map +0 -1
  1347. package/cjs/components/Dropdown/__creevey__/Dropdown.creevey.js +0 -184
  1348. package/cjs/components/Dropdown/__creevey__/Dropdown.creevey.js.map +0 -1
  1349. package/cjs/components/DropdownMenu/__creevey__/DropdownMenu.creevey.js +0 -262
  1350. package/cjs/components/DropdownMenu/__creevey__/DropdownMenu.creevey.js.map +0 -1
  1351. package/cjs/components/FxInput/__creevey__/FxInput.creevey.js +0 -21
  1352. package/cjs/components/FxInput/__creevey__/FxInput.creevey.js.map +0 -1
  1353. package/cjs/components/Group/__creevey__/Group.creevey.js +0 -19
  1354. package/cjs/components/Group/__creevey__/Group.creevey.js.map +0 -1
  1355. package/cjs/components/Hint/__creevey__/Hint.creevey.js +0 -68
  1356. package/cjs/components/Hint/__creevey__/Hint.creevey.js.map +0 -1
  1357. package/cjs/components/Input/__creevey__/Input.creevey.js +0 -239
  1358. package/cjs/components/Input/__creevey__/Input.creevey.js.map +0 -1
  1359. package/cjs/components/Kebab/__creevey__/Kebab.creevey.js +0 -146
  1360. package/cjs/components/Kebab/__creevey__/Kebab.creevey.js.map +0 -1
  1361. package/cjs/components/Link/__creevey__/Link.creevey.js +0 -161
  1362. package/cjs/components/Link/__creevey__/Link.creevey.js.map +0 -1
  1363. package/cjs/components/Loader/__creevey__/Loader.creevey.js +0 -34
  1364. package/cjs/components/Loader/__creevey__/Loader.creevey.js.map +0 -1
  1365. package/cjs/components/MaskedInput/__creevey__/MaskedInput.creevey.js +0 -152
  1366. package/cjs/components/MaskedInput/__creevey__/MaskedInput.creevey.js.map +0 -1
  1367. package/cjs/components/Modal/__creevey__/Modal.creevey.js +0 -258
  1368. package/cjs/components/Modal/__creevey__/Modal.creevey.js.map +0 -1
  1369. package/cjs/components/Paging/__creevey__/Paging.creevey.js +0 -96
  1370. package/cjs/components/Paging/__creevey__/Paging.creevey.js.map +0 -1
  1371. package/cjs/components/PasswordInput/__creevey__/PasswordInput.creevey.js +0 -38
  1372. package/cjs/components/PasswordInput/__creevey__/PasswordInput.creevey.js.map +0 -1
  1373. package/cjs/components/Radio/__creevey__/Radio.creevey.js +0 -27
  1374. package/cjs/components/Radio/__creevey__/Radio.creevey.js.map +0 -1
  1375. package/cjs/components/RadioGroup/__creevey__/RadioGroup.creevey.js +0 -85
  1376. package/cjs/components/RadioGroup/__creevey__/RadioGroup.creevey.js.map +0 -1
  1377. package/cjs/components/ScrollContainer/__creevey__/ScrollContainer.creevey.js +0 -247
  1378. package/cjs/components/ScrollContainer/__creevey__/ScrollContainer.creevey.js.map +0 -1
  1379. package/cjs/components/Select/__creevey__/Select.creevey.js +0 -294
  1380. package/cjs/components/Select/__creevey__/Select.creevey.js.map +0 -1
  1381. package/cjs/components/SidePage/__creevey__/SidePage.creevey.js +0 -313
  1382. package/cjs/components/SidePage/__creevey__/SidePage.creevey.js.map +0 -1
  1383. package/cjs/components/Sticky/__creevey__/Sticky.creevey.js +0 -98
  1384. package/cjs/components/Sticky/__creevey__/Sticky.creevey.js.map +0 -1
  1385. package/cjs/components/Switcher/__creevey__/Switcher.creevey.js +0 -24
  1386. package/cjs/components/Switcher/__creevey__/Switcher.creevey.js.map +0 -1
  1387. package/cjs/components/Tabs/__creevey__/Tabs.creevey.js +0 -238
  1388. package/cjs/components/Tabs/__creevey__/Tabs.creevey.js.map +0 -1
  1389. package/cjs/components/Textarea/__creevey__/Textarea.creevey.js +0 -176
  1390. package/cjs/components/Textarea/__creevey__/Textarea.creevey.js.map +0 -1
  1391. package/cjs/components/Toast/__creevey__/Toast.creevey.js +0 -54
  1392. package/cjs/components/Toast/__creevey__/Toast.creevey.js.map +0 -1
  1393. package/cjs/components/Toggle/__creevey__/Toggle.creevey.js +0 -87
  1394. package/cjs/components/Toggle/__creevey__/Toggle.creevey.js.map +0 -1
  1395. package/cjs/components/TokenInput/__creevey__/TokenInput.creevey.js +0 -394
  1396. package/cjs/components/TokenInput/__creevey__/TokenInput.creevey.js.map +0 -1
  1397. package/cjs/components/Tooltip/__creevey__/Tooltip.creevey.js +0 -534
  1398. package/cjs/components/Tooltip/__creevey__/Tooltip.creevey.js.map +0 -1
  1399. package/cjs/components/TooltipMenu/__creevey__/TooltipMenu.creevey.js +0 -130
  1400. package/cjs/components/TooltipMenu/__creevey__/TooltipMenu.creevey.js.map +0 -1
  1401. package/cjs/internal/CloseButtonIcon/__creevey__/CloseButtonIcon.creevey.js +0 -47
  1402. package/cjs/internal/CloseButtonIcon/__creevey__/CloseButtonIcon.creevey.js.map +0 -1
  1403. package/cjs/internal/CustomComboBox/__creevey__/ComboBoxView.creevey.js +0 -30
  1404. package/cjs/internal/CustomComboBox/__creevey__/ComboBoxView.creevey.js.map +0 -1
  1405. package/cjs/internal/FileUploaderControl/__creevey__/FileUploaderFile.creevey.js +0 -25
  1406. package/cjs/internal/FileUploaderControl/__creevey__/FileUploaderFile.creevey.js.map +0 -1
  1407. package/cjs/internal/HideBodyVerticalScroll/__creevey__/HideBodyVerticalScroll.creevey.js +0 -57
  1408. package/cjs/internal/HideBodyVerticalScroll/__creevey__/HideBodyVerticalScroll.creevey.js.map +0 -1
  1409. package/cjs/internal/MaskedInputElement/MaskedInputElement.d.ts +0 -14
  1410. package/cjs/internal/MaskedInputElement/MaskedInputElement.helpers.d.ts +0 -16
  1411. package/cjs/internal/MaskedInputElement/MaskedInputElement.helpers.js +0 -52
  1412. package/cjs/internal/MaskedInputElement/MaskedInputElement.helpers.js.map +0 -1
  1413. package/cjs/internal/MaskedInputElement/MaskedInputElement.js +0 -197
  1414. package/cjs/internal/MaskedInputElement/MaskedInputElement.js.map +0 -1
  1415. package/cjs/internal/MaskedInputElement/MaskedInputElement.styles.d.ts +0 -6
  1416. package/cjs/internal/MaskedInputElement/MaskedInputElement.styles.js +0 -30
  1417. package/cjs/internal/MaskedInputElement/MaskedInputElement.styles.js.map +0 -1
  1418. package/cjs/internal/MaskedInputElement/index.d.ts +0 -1
  1419. package/cjs/internal/MaskedInputElement/index.js +0 -1
  1420. package/cjs/internal/MaskedInputElement/index.js.map +0 -1
  1421. package/cjs/internal/Menu/__creevey__/Menu.creevey.js +0 -90
  1422. package/cjs/internal/Menu/__creevey__/Menu.creevey.js.map +0 -1
  1423. package/cjs/internal/PopupMenu/__creevey__/PopupMenu.creevey.js +0 -37
  1424. package/cjs/internal/PopupMenu/__creevey__/PopupMenu.creevey.js.map +0 -1
  1425. package/cjs/internal/ThemePlayground/__creevey__/ThemeProvider.creevey.js +0 -58
  1426. package/cjs/internal/ThemePlayground/__creevey__/ThemeProvider.creevey.js.map +0 -1
  1427. package/cjs/internal/ZIndex/__creevey__/ZIndex.creevey.js +0 -228
  1428. package/cjs/internal/ZIndex/__creevey__/ZIndex.creevey.js.map +0 -1
  1429. package/cjs/internal/themes/BasicDarkTheme.d.ts +0 -287
  1430. package/cjs/internal/themes/BasicDarkTheme.js +0 -593
  1431. package/cjs/internal/themes/BasicDarkTheme.js.map +0 -1
  1432. package/cjs/lib/styles/HoldSelectionColor.js +0 -9
  1433. package/cjs/lib/styles/HoldSelectionColor.js.map +0 -1
  1434. package/cjs/lib/theming/themes/DarkTheme2022_0.d.ts +0 -1
  1435. package/cjs/lib/theming/themes/DarkTheme2022_0.js +0 -5
  1436. package/cjs/lib/theming/themes/DarkTheme2022_0.js.map +0 -1
  1437. package/cjs/lib/theming/themes/LightTheme2022_0.d.ts +0 -1
  1438. package/cjs/lib/theming/themes/LightTheme2022_0.js +0 -5
  1439. package/cjs/lib/theming/themes/LightTheme2022_0.js.map +0 -1
  1440. package/cjs/typings/button-link.d.ts +0 -1
  1441. package/cjs/typings/polymorphic-component.d.ts +0 -34
  1442. package/components/Autocomplete/__creevey__/Autocomplete.creevey/Autocomplete.creevey.js +0 -506
  1443. package/components/Autocomplete/__creevey__/Autocomplete.creevey/Autocomplete.creevey.js.map +0 -1
  1444. package/components/Autocomplete/__creevey__/Autocomplete.creevey/package.json +0 -6
  1445. package/components/Button/__creevey__/Button.creevey/Button.creevey.js +0 -396
  1446. package/components/Button/__creevey__/Button.creevey/Button.creevey.js.map +0 -1
  1447. package/components/Button/__creevey__/Button.creevey/package.json +0 -6
  1448. package/components/Calendar/__creevey__/Calendar.creevey/Calendar.creevey.js +0 -138
  1449. package/components/Calendar/__creevey__/Calendar.creevey/Calendar.creevey.js.map +0 -1
  1450. package/components/Calendar/__creevey__/Calendar.creevey/package.json +0 -6
  1451. package/components/Calendar/__creevey__/Calendar.creevey.d.ts +0 -1
  1452. package/components/Checkbox/__creevey__/Checkbox.creevey/Checkbox.creevey.js +0 -487
  1453. package/components/Checkbox/__creevey__/Checkbox.creevey/Checkbox.creevey.js.map +0 -1
  1454. package/components/Checkbox/__creevey__/Checkbox.creevey/package.json +0 -6
  1455. package/components/Checkbox/__creevey__/Checkbox.creevey.d.ts +0 -1
  1456. package/components/ComboBox/__creevey__/ComboBox.creevey/ComboBox.creevey.js +0 -1043
  1457. package/components/ComboBox/__creevey__/ComboBox.creevey/ComboBox.creevey.js.map +0 -1
  1458. package/components/ComboBox/__creevey__/ComboBox.creevey/package.json +0 -6
  1459. package/components/ComboBox/__creevey__/ComboBox.creevey.d.ts +0 -1
  1460. package/components/CurrencyInput/__creevey__/CurrencyInput.creevey/CurrencyInput.creevey.js +0 -114
  1461. package/components/CurrencyInput/__creevey__/CurrencyInput.creevey/CurrencyInput.creevey.js.map +0 -1
  1462. package/components/CurrencyInput/__creevey__/CurrencyInput.creevey/package.json +0 -6
  1463. package/components/CurrencyInput/__creevey__/CurrencyInput.creevey.d.ts +0 -1
  1464. package/components/DateInput/__creevey__/DateInput.creevey/DateInput.creevey.js +0 -367
  1465. package/components/DateInput/__creevey__/DateInput.creevey/DateInput.creevey.js.map +0 -1
  1466. package/components/DateInput/__creevey__/DateInput.creevey/package.json +0 -6
  1467. package/components/DateInput/__creevey__/DateInput.creevey.d.ts +0 -1
  1468. package/components/DatePicker/__creevey__/DatePicker.creevey/DatePicker.creevey.js +0 -395
  1469. package/components/DatePicker/__creevey__/DatePicker.creevey/DatePicker.creevey.js.map +0 -1
  1470. package/components/DatePicker/__creevey__/DatePicker.creevey/package.json +0 -6
  1471. package/components/DatePicker/__creevey__/DatePicker.creevey.d.ts +0 -1
  1472. package/components/Dropdown/__creevey__/Dropdown.creevey/Dropdown.creevey.js +0 -417
  1473. package/components/Dropdown/__creevey__/Dropdown.creevey/Dropdown.creevey.js.map +0 -1
  1474. package/components/Dropdown/__creevey__/Dropdown.creevey/package.json +0 -6
  1475. package/components/Dropdown/__creevey__/Dropdown.creevey.d.ts +0 -1
  1476. package/components/DropdownMenu/__creevey__/DropdownMenu.creevey/DropdownMenu.creevey.js +0 -534
  1477. package/components/DropdownMenu/__creevey__/DropdownMenu.creevey/DropdownMenu.creevey.js.map +0 -1
  1478. package/components/DropdownMenu/__creevey__/DropdownMenu.creevey/package.json +0 -6
  1479. package/components/DropdownMenu/__creevey__/DropdownMenu.creevey.d.ts +0 -1
  1480. package/components/FxInput/__creevey__/FxInput.creevey/FxInput.creevey.js +0 -62
  1481. package/components/FxInput/__creevey__/FxInput.creevey/FxInput.creevey.js.map +0 -1
  1482. package/components/FxInput/__creevey__/FxInput.creevey/package.json +0 -6
  1483. package/components/FxInput/__creevey__/FxInput.creevey.d.ts +0 -1
  1484. package/components/Group/__creevey__/Group.creevey/Group.creevey.js +0 -48
  1485. package/components/Group/__creevey__/Group.creevey/Group.creevey.js.map +0 -1
  1486. package/components/Group/__creevey__/Group.creevey/package.json +0 -6
  1487. package/components/Group/__creevey__/Group.creevey.d.ts +0 -1
  1488. package/components/Hint/__creevey__/Hint.creevey/Hint.creevey.js +0 -127
  1489. package/components/Hint/__creevey__/Hint.creevey/Hint.creevey.js.map +0 -1
  1490. package/components/Hint/__creevey__/Hint.creevey/package.json +0 -6
  1491. package/components/Hint/__creevey__/Hint.creevey.d.ts +0 -1
  1492. package/components/Input/__creevey__/Input.creevey/Input.creevey.js +0 -517
  1493. package/components/Input/__creevey__/Input.creevey/Input.creevey.js.map +0 -1
  1494. package/components/Input/__creevey__/Input.creevey/package.json +0 -6
  1495. package/components/Input/__creevey__/Input.creevey.d.ts +0 -1
  1496. package/components/Kebab/__creevey__/Kebab.creevey/Kebab.creevey.js +0 -278
  1497. package/components/Kebab/__creevey__/Kebab.creevey/Kebab.creevey.js.map +0 -1
  1498. package/components/Kebab/__creevey__/Kebab.creevey/package.json +0 -6
  1499. package/components/Kebab/__creevey__/Kebab.creevey.d.ts +0 -1
  1500. package/components/Link/__creevey__/Link.creevey/Link.creevey.js +0 -238
  1501. package/components/Link/__creevey__/Link.creevey/Link.creevey.js.map +0 -1
  1502. package/components/Link/__creevey__/Link.creevey/package.json +0 -6
  1503. package/components/Link/__creevey__/Link.creevey.d.ts +0 -1
  1504. package/components/Loader/__creevey__/Loader.creevey/Loader.creevey.js +0 -129
  1505. package/components/Loader/__creevey__/Loader.creevey/Loader.creevey.js.map +0 -1
  1506. package/components/Loader/__creevey__/Loader.creevey/package.json +0 -6
  1507. package/components/Loader/__creevey__/Loader.creevey.d.ts +0 -1
  1508. package/components/MaskedInput/__creevey__/MaskedInput.creevey/MaskedInput.creevey.js +0 -324
  1509. package/components/MaskedInput/__creevey__/MaskedInput.creevey/MaskedInput.creevey.js.map +0 -1
  1510. package/components/MaskedInput/__creevey__/MaskedInput.creevey/package.json +0 -6
  1511. package/components/MaskedInput/__creevey__/MaskedInput.creevey.d.ts +0 -1
  1512. package/components/Modal/__creevey__/Modal.creevey/Modal.creevey.js +0 -565
  1513. package/components/Modal/__creevey__/Modal.creevey/Modal.creevey.js.map +0 -1
  1514. package/components/Modal/__creevey__/Modal.creevey/package.json +0 -6
  1515. package/components/Modal/__creevey__/Modal.creevey.d.ts +0 -1
  1516. package/components/Paging/__creevey__/Paging.creevey/Paging.creevey.js +0 -190
  1517. package/components/Paging/__creevey__/Paging.creevey/Paging.creevey.js.map +0 -1
  1518. package/components/Paging/__creevey__/Paging.creevey/package.json +0 -6
  1519. package/components/Paging/__creevey__/Paging.creevey.d.ts +0 -1
  1520. package/components/PasswordInput/__creevey__/PasswordInput.creevey/PasswordInput.creevey.js +0 -83
  1521. package/components/PasswordInput/__creevey__/PasswordInput.creevey/PasswordInput.creevey.js.map +0 -1
  1522. package/components/PasswordInput/__creevey__/PasswordInput.creevey/package.json +0 -6
  1523. package/components/PasswordInput/__creevey__/PasswordInput.creevey.d.ts +0 -1
  1524. package/components/Radio/__creevey__/Radio.creevey/Radio.creevey.js +0 -56
  1525. package/components/Radio/__creevey__/Radio.creevey/Radio.creevey.js.map +0 -1
  1526. package/components/Radio/__creevey__/Radio.creevey/package.json +0 -6
  1527. package/components/Radio/__creevey__/Radio.creevey.d.ts +0 -1
  1528. package/components/RadioGroup/__creevey__/RadioGroup.creevey/RadioGroup.creevey.js +0 -167
  1529. package/components/RadioGroup/__creevey__/RadioGroup.creevey/RadioGroup.creevey.js.map +0 -1
  1530. package/components/RadioGroup/__creevey__/RadioGroup.creevey/package.json +0 -6
  1531. package/components/RadioGroup/__creevey__/RadioGroup.creevey.d.ts +0 -1
  1532. package/components/ScrollContainer/__creevey__/ScrollContainer.creevey/ScrollContainer.creevey.js +0 -488
  1533. package/components/ScrollContainer/__creevey__/ScrollContainer.creevey/ScrollContainer.creevey.js.map +0 -1
  1534. package/components/ScrollContainer/__creevey__/ScrollContainer.creevey/package.json +0 -6
  1535. package/components/ScrollContainer/__creevey__/ScrollContainer.creevey.d.ts +0 -1
  1536. package/components/Select/__creevey__/Select.creevey/Select.creevey.js +0 -578
  1537. package/components/Select/__creevey__/Select.creevey/Select.creevey.js.map +0 -1
  1538. package/components/Select/__creevey__/Select.creevey/package.json +0 -6
  1539. package/components/Select/__creevey__/Select.creevey.d.ts +0 -1
  1540. package/components/SidePage/__creevey__/SidePage.creevey/SidePage.creevey.js +0 -697
  1541. package/components/SidePage/__creevey__/SidePage.creevey/SidePage.creevey.js.map +0 -1
  1542. package/components/SidePage/__creevey__/SidePage.creevey/package.json +0 -6
  1543. package/components/SidePage/__creevey__/SidePage.creevey.d.ts +0 -1
  1544. package/components/Sticky/__creevey__/Sticky.creevey/Sticky.creevey.js +0 -215
  1545. package/components/Sticky/__creevey__/Sticky.creevey/Sticky.creevey.js.map +0 -1
  1546. package/components/Sticky/__creevey__/Sticky.creevey/package.json +0 -6
  1547. package/components/Sticky/__creevey__/Sticky.creevey.d.ts +0 -1
  1548. package/components/Switcher/__creevey__/Switcher.creevey/Switcher.creevey.js +0 -58
  1549. package/components/Switcher/__creevey__/Switcher.creevey/Switcher.creevey.js.map +0 -1
  1550. package/components/Switcher/__creevey__/Switcher.creevey/package.json +0 -6
  1551. package/components/Switcher/__creevey__/Switcher.creevey.d.ts +0 -1
  1552. package/components/Tabs/__creevey__/Tabs.creevey/Tabs.creevey.js +0 -391
  1553. package/components/Tabs/__creevey__/Tabs.creevey/Tabs.creevey.js.map +0 -1
  1554. package/components/Tabs/__creevey__/Tabs.creevey/package.json +0 -6
  1555. package/components/Tabs/__creevey__/Tabs.creevey.d.ts +0 -1
  1556. package/components/Textarea/__creevey__/Textarea.creevey/Textarea.creevey.js +0 -404
  1557. package/components/Textarea/__creevey__/Textarea.creevey/Textarea.creevey.js.map +0 -1
  1558. package/components/Textarea/__creevey__/Textarea.creevey/package.json +0 -6
  1559. package/components/Textarea/__creevey__/Textarea.creevey.d.ts +0 -1
  1560. package/components/Toast/__creevey__/Toast.creevey/Toast.creevey.js +0 -70
  1561. package/components/Toast/__creevey__/Toast.creevey/Toast.creevey.js.map +0 -1
  1562. package/components/Toast/__creevey__/Toast.creevey/package.json +0 -6
  1563. package/components/Toast/__creevey__/Toast.creevey.d.ts +0 -1
  1564. package/components/Toggle/__creevey__/Toggle.creevey/Toggle.creevey.js +0 -195
  1565. package/components/Toggle/__creevey__/Toggle.creevey/Toggle.creevey.js.map +0 -1
  1566. package/components/Toggle/__creevey__/Toggle.creevey/package.json +0 -6
  1567. package/components/Toggle/__creevey__/Toggle.creevey.d.ts +0 -1
  1568. package/components/TokenInput/__creevey__/TokenInput.creevey/TokenInput.creevey.js +0 -589
  1569. package/components/TokenInput/__creevey__/TokenInput.creevey/TokenInput.creevey.js.map +0 -1
  1570. package/components/TokenInput/__creevey__/TokenInput.creevey/package.json +0 -6
  1571. package/components/TokenInput/__creevey__/TokenInput.creevey.d.ts +0 -1
  1572. package/components/Tooltip/__creevey__/Tooltip.creevey/Tooltip.creevey.js +0 -1171
  1573. package/components/Tooltip/__creevey__/Tooltip.creevey/Tooltip.creevey.js.map +0 -1
  1574. package/components/Tooltip/__creevey__/Tooltip.creevey/package.json +0 -6
  1575. package/components/Tooltip/__creevey__/Tooltip.creevey.d.ts +0 -1
  1576. package/components/TooltipMenu/__creevey__/TooltipMenu.creevey/TooltipMenu.creevey.js +0 -277
  1577. package/components/TooltipMenu/__creevey__/TooltipMenu.creevey/TooltipMenu.creevey.js.map +0 -1
  1578. package/components/TooltipMenu/__creevey__/TooltipMenu.creevey/package.json +0 -6
  1579. package/components/TooltipMenu/__creevey__/TooltipMenu.creevey.d.ts +0 -1
  1580. package/internal/CloseButtonIcon/__creevey__/CloseButtonIcon.creevey/CloseButtonIcon.creevey.js +0 -78
  1581. package/internal/CloseButtonIcon/__creevey__/CloseButtonIcon.creevey/CloseButtonIcon.creevey.js.map +0 -1
  1582. package/internal/CloseButtonIcon/__creevey__/CloseButtonIcon.creevey/package.json +0 -6
  1583. package/internal/CloseButtonIcon/__creevey__/CloseButtonIcon.creevey.d.ts +0 -1
  1584. package/internal/CustomComboBox/__creevey__/ComboBoxView.creevey/ComboBoxView.creevey.js +0 -58
  1585. package/internal/CustomComboBox/__creevey__/ComboBoxView.creevey/ComboBoxView.creevey.js.map +0 -1
  1586. package/internal/CustomComboBox/__creevey__/ComboBoxView.creevey/package.json +0 -6
  1587. package/internal/CustomComboBox/__creevey__/ComboBoxView.creevey.d.ts +0 -1
  1588. package/internal/FileUploaderControl/__creevey__/FileUploaderFile.creevey/FileUploaderFile.creevey.js +0 -41
  1589. package/internal/FileUploaderControl/__creevey__/FileUploaderFile.creevey/FileUploaderFile.creevey.js.map +0 -1
  1590. package/internal/FileUploaderControl/__creevey__/FileUploaderFile.creevey/package.json +0 -6
  1591. package/internal/FileUploaderControl/__creevey__/FileUploaderFile.creevey.d.ts +0 -1
  1592. package/internal/HideBodyVerticalScroll/__creevey__/HideBodyVerticalScroll.creevey/HideBodyVerticalScroll.creevey.js +0 -118
  1593. package/internal/HideBodyVerticalScroll/__creevey__/HideBodyVerticalScroll.creevey/HideBodyVerticalScroll.creevey.js.map +0 -1
  1594. package/internal/HideBodyVerticalScroll/__creevey__/HideBodyVerticalScroll.creevey/package.json +0 -6
  1595. package/internal/HideBodyVerticalScroll/__creevey__/HideBodyVerticalScroll.creevey.d.ts +0 -1
  1596. package/internal/MaskedInputElement/MaskedInputElement/MaskedInputElement.js +0 -189
  1597. package/internal/MaskedInputElement/MaskedInputElement/MaskedInputElement.js.map +0 -1
  1598. package/internal/MaskedInputElement/MaskedInputElement/package.json +0 -6
  1599. package/internal/MaskedInputElement/MaskedInputElement.d.ts +0 -14
  1600. package/internal/MaskedInputElement/MaskedInputElement.helpers/MaskedInputElement.helpers.js +0 -36
  1601. package/internal/MaskedInputElement/MaskedInputElement.helpers/MaskedInputElement.helpers.js.map +0 -1
  1602. package/internal/MaskedInputElement/MaskedInputElement.helpers/package.json +0 -6
  1603. package/internal/MaskedInputElement/MaskedInputElement.helpers.d.ts +0 -16
  1604. package/internal/MaskedInputElement/MaskedInputElement.styles/MaskedInputElement.styles.js +0 -14
  1605. package/internal/MaskedInputElement/MaskedInputElement.styles/MaskedInputElement.styles.js.map +0 -1
  1606. package/internal/MaskedInputElement/MaskedInputElement.styles/package.json +0 -6
  1607. package/internal/MaskedInputElement/MaskedInputElement.styles.d.ts +0 -6
  1608. package/internal/MaskedInputElement/index/index.js +0 -1
  1609. package/internal/MaskedInputElement/index/index.js.map +0 -1
  1610. package/internal/MaskedInputElement/index/package.json +0 -6
  1611. package/internal/MaskedInputElement/index.d.ts +0 -1
  1612. package/internal/MaskedInputElement/package.json +0 -6
  1613. package/internal/Menu/__creevey__/Menu.creevey/Menu.creevey.js +0 -196
  1614. package/internal/Menu/__creevey__/Menu.creevey/Menu.creevey.js.map +0 -1
  1615. package/internal/Menu/__creevey__/Menu.creevey/package.json +0 -6
  1616. package/internal/Menu/__creevey__/Menu.creevey.d.ts +0 -1
  1617. package/internal/PopupMenu/__creevey__/PopupMenu.creevey/PopupMenu.creevey.js +0 -69
  1618. package/internal/PopupMenu/__creevey__/PopupMenu.creevey/PopupMenu.creevey.js.map +0 -1
  1619. package/internal/PopupMenu/__creevey__/PopupMenu.creevey/package.json +0 -6
  1620. package/internal/PopupMenu/__creevey__/PopupMenu.creevey.d.ts +0 -1
  1621. package/internal/ThemePlayground/__creevey__/ThemeProvider.creevey/ThemeProvider.creevey.js +0 -135
  1622. package/internal/ThemePlayground/__creevey__/ThemeProvider.creevey/ThemeProvider.creevey.js.map +0 -1
  1623. package/internal/ThemePlayground/__creevey__/ThemeProvider.creevey/package.json +0 -6
  1624. package/internal/ThemePlayground/__creevey__/ThemeProvider.creevey.d.ts +0 -1
  1625. package/internal/ZIndex/__creevey__/ZIndex.creevey/ZIndex.creevey.js +0 -550
  1626. package/internal/ZIndex/__creevey__/ZIndex.creevey/ZIndex.creevey.js.map +0 -1
  1627. package/internal/ZIndex/__creevey__/ZIndex.creevey/package.json +0 -6
  1628. package/internal/ZIndex/__creevey__/ZIndex.creevey.d.ts +0 -1
  1629. package/internal/themes/BasicDarkTheme/BasicDarkTheme.js +0 -635
  1630. package/internal/themes/BasicDarkTheme/BasicDarkTheme.js.map +0 -1
  1631. package/internal/themes/BasicDarkTheme/package.json +0 -6
  1632. package/internal/themes/BasicDarkTheme.d.ts +0 -287
  1633. package/lib/styles/HoldSelectionColor/HoldSelectionColor.js +0 -8
  1634. package/lib/styles/HoldSelectionColor/HoldSelectionColor.js.map +0 -1
  1635. package/lib/styles/HoldSelectionColor/package.json +0 -6
  1636. package/lib/styles/HoldSelectionColor.d.ts +0 -1
  1637. package/lib/theming/themes/DarkTheme2022_0/DarkTheme2022_0.js +0 -3
  1638. package/lib/theming/themes/DarkTheme2022_0/DarkTheme2022_0.js.map +0 -1
  1639. package/lib/theming/themes/DarkTheme2022_0/package.json +0 -6
  1640. package/lib/theming/themes/DarkTheme2022_0.d.ts +0 -1
  1641. package/lib/theming/themes/LightTheme2022_0/LightTheme2022_0.js +0 -3
  1642. package/lib/theming/themes/LightTheme2022_0/LightTheme2022_0.js.map +0 -1
  1643. package/lib/theming/themes/LightTheme2022_0/package.json +0 -6
  1644. package/lib/theming/themes/LightTheme2022_0.d.ts +0 -1
  1645. package/typings/button-link.d.ts +0 -1
  1646. package/typings/polymorphic-component.d.ts +0 -34
  1647. /package/{cjs/components/Autocomplete/__creevey__/Autocomplete.creevey.d.ts → components/Autocomplete/__creevey__/Autocomplete.creevey.d.mts} +0 -0
  1648. /package/{cjs/components/Button/__creevey__/Button.creevey.d.ts → components/Button/__creevey__/Button.creevey.d.mts} +0 -0
  1649. /package/{cjs/components/Calendar/__creevey__/Calendar.creevey.d.ts → components/Calendar/__creevey__/Calendar.creevey.d.mts} +0 -0
  1650. /package/{cjs/components/Checkbox/__creevey__/Checkbox.creevey.d.ts → components/Checkbox/__creevey__/Checkbox.creevey.d.mts} +0 -0
  1651. /package/{cjs/components/ComboBox/__creevey__/ComboBox.creevey.d.ts → components/ComboBox/__creevey__/ComboBox.creevey.d.mts} +0 -0
  1652. /package/{cjs/components/CurrencyInput/__creevey__/CurrencyInput.creevey.d.ts → components/CurrencyInput/__creevey__/CurrencyInput.creevey.d.mts} +0 -0
  1653. /package/{cjs/components/DateInput/__creevey__/DateInput.creevey.d.ts → components/DateInput/__creevey__/DateInput.creevey.d.mts} +0 -0
  1654. /package/{cjs/components/DatePicker/__creevey__/DatePicker.creevey.d.ts → components/DatePicker/__creevey__/DatePicker.creevey.d.mts} +0 -0
  1655. /package/{cjs/components/Dropdown/__creevey__/Dropdown.creevey.d.ts → components/DateRangePicker/__creevey__/DateRangePicker.creevey.d.mts} +0 -0
  1656. /package/{cjs/components/DropdownMenu/__creevey__/DropdownMenu.creevey.d.ts → components/Dropdown/__creevey__/Dropdown.creevey.d.mts} +0 -0
  1657. /package/{cjs/components/FxInput/__creevey__/FxInput.creevey.d.ts → components/DropdownMenu/__creevey__/DropdownMenu.creevey.d.mts} +0 -0
  1658. /package/{cjs/components/Group/__creevey__/Group.creevey.d.ts → components/FxInput/__creevey__/FxInput.creevey.d.mts} +0 -0
  1659. /package/{cjs/components/Hint/__creevey__/Hint.creevey.d.ts → components/Group/__creevey__/Group.creevey.d.mts} +0 -0
  1660. /package/{cjs/components/Input/__creevey__/Input.creevey.d.ts → components/Hint/__creevey__/Hint.creevey.d.mts} +0 -0
  1661. /package/{cjs/components/Kebab/__creevey__/Kebab.creevey.d.ts → components/Input/__creevey__/Input.creevey.d.mts} +0 -0
  1662. /package/{cjs/components/Link/__creevey__/Link.creevey.d.ts → components/Kebab/__creevey__/Kebab.creevey.d.mts} +0 -0
  1663. /package/{cjs/components/Loader/__creevey__/Loader.creevey.d.ts → components/Link/__creevey__/Link.creevey.d.mts} +0 -0
  1664. /package/{cjs/components/MaskedInput/__creevey__/MaskedInput.creevey.d.ts → components/Loader/__creevey__/Loader.creevey.d.mts} +0 -0
  1665. /package/{cjs/components/Modal/__creevey__/Modal.creevey.d.ts → components/MaskedInput/__creevey__/MaskedInput.creevey.d.mts} +0 -0
  1666. /package/{cjs/components/Paging/__creevey__/Paging.creevey.d.ts → components/Modal/__creevey__/Modal.creevey.d.mts} +0 -0
  1667. /package/{cjs/components/PasswordInput/__creevey__/PasswordInput.creevey.d.ts → components/Paging/__creevey__/Paging.creevey.d.mts} +0 -0
  1668. /package/{cjs/components/Radio/__creevey__/Radio.creevey.d.ts → components/PasswordInput/__creevey__/PasswordInput.creevey.d.mts} +0 -0
  1669. /package/{cjs/components/RadioGroup/__creevey__/RadioGroup.creevey.d.ts → components/Radio/__creevey__/Radio.creevey.d.mts} +0 -0
  1670. /package/{cjs/components/ScrollContainer/__creevey__/ScrollContainer.creevey.d.ts → components/RadioGroup/__creevey__/RadioGroup.creevey.d.mts} +0 -0
  1671. /package/{cjs/components/Select/__creevey__/Select.creevey.d.ts → components/ScrollContainer/__creevey__/ScrollContainer.creevey.d.mts} +0 -0
  1672. /package/{cjs/components/SidePage/__creevey__/SidePage.creevey.d.ts → components/Select/__creevey__/Select.creevey.d.mts} +0 -0
  1673. /package/{cjs/components/Sticky/__creevey__/Sticky.creevey.d.ts → components/SidePage/__creevey__/SidePage.creevey.d.mts} +0 -0
  1674. /package/{cjs/components/Switcher/__creevey__/Switcher.creevey.d.ts → components/Sticky/__creevey__/Sticky.creevey.d.mts} +0 -0
  1675. /package/{cjs/components/Tabs/__creevey__/Tabs.creevey.d.ts → components/Switcher/__creevey__/Switcher.creevey.d.mts} +0 -0
  1676. /package/{cjs/components/Textarea/__creevey__/Textarea.creevey.d.ts → components/Tabs/__creevey__/Tabs.creevey.d.mts} +0 -0
  1677. /package/{cjs/components/Toast/__creevey__/Toast.creevey.d.ts → components/Textarea/__creevey__/Textarea.creevey.d.mts} +0 -0
  1678. /package/{cjs/components/Toggle/__creevey__/Toggle.creevey.d.ts → components/Toast/__creevey__/Toast.creevey.d.mts} +0 -0
  1679. /package/{cjs/components/TokenInput/__creevey__/TokenInput.creevey.d.ts → components/Toggle/__creevey__/Toggle.creevey.d.mts} +0 -0
  1680. /package/{cjs/components/Tooltip/__creevey__/Tooltip.creevey.d.ts → components/TokenInput/__creevey__/TokenInput.creevey.d.mts} +0 -0
  1681. /package/{cjs/components/TooltipMenu/__creevey__/TooltipMenu.creevey.d.ts → components/Tooltip/__creevey__/Tooltip.creevey.d.mts} +0 -0
  1682. /package/{cjs/internal/CloseButtonIcon/__creevey__/CloseButtonIcon.creevey.d.ts → components/TooltipMenu/__creevey__/TooltipMenu.creevey.d.mts} +0 -0
  1683. /package/{cjs/internal/CustomComboBox/__creevey__/ComboBoxView.creevey.d.ts → internal/ClearCrossIcon/__creevey__/ClearCrossIcon.creevey.d.mts} +0 -0
  1684. /package/{cjs/internal/FileUploaderControl/__creevey__/FileUploaderFile.creevey.d.ts → internal/CloseButtonIcon/__creevey__/CloseButtonIcon.creevey.d.mts} +0 -0
  1685. /package/{cjs/internal/HideBodyVerticalScroll/__creevey__/HideBodyVerticalScroll.creevey.d.ts → internal/CustomComboBox/__creevey__/ComboBoxView.creevey.d.mts} +0 -0
  1686. /package/{cjs/internal/Menu/__creevey__/Menu.creevey.d.ts → internal/FileUploaderControl/__creevey__/FileUploaderFile.creevey.d.mts} +0 -0
  1687. /package/{cjs/internal/PopupMenu/__creevey__/PopupMenu.creevey.d.ts → internal/HideBodyVerticalScroll/__creevey__/HideBodyVerticalScroll.creevey.d.mts} +0 -0
  1688. /package/{cjs/internal/ThemePlayground/__creevey__/ThemeProvider.creevey.d.ts → internal/Menu/__creevey__/Menu.creevey.d.mts} +0 -0
  1689. /package/{cjs/internal/ZIndex/__creevey__/ZIndex.creevey.d.ts → internal/PopupMenu/__creevey__/PopupMenu.creevey.d.mts} +0 -0
  1690. /package/{cjs/lib/styles/HoldSelectionColor.d.ts → internal/ThemePlayground/__creevey__/Theme5_0.creevey.d.mts} +0 -0
  1691. /package/{components/Autocomplete/__creevey__/Autocomplete.creevey.d.ts → internal/ThemePlayground/__creevey__/ThemeProvider.creevey.d.mts} +0 -0
  1692. /package/{components/Button/__creevey__/Button.creevey.d.ts → internal/ZIndex/__creevey__/ZIndex.creevey.d.mts} +0 -0
@@ -0,0 +1,28 @@
1
+ import * as ComboBoxStories from './ComboBox.docs.stories.tsx';
2
+ import { Primary, ArgTypes, Stories, Description } from '@storybook/blocks';
3
+ import { Meta } from '../../../.storybook/Meta';
4
+
5
+ <Meta of={ComboBoxStories} />
6
+
7
+ # ComboBox
8
+
9
+ [Компонент в Контур.Гайдах](https://guides.kontur.ru/components/input-fields/combobox/)
10
+
11
+ [Компонент в Figma](https://www.figma.com/file/87ScqxPzJpF9DcVBNYWOjM/%E2%9A%A1-Kontur-UI-Modern-Layout?node-id=203%3A1602)
12
+
13
+ <Description />
14
+
15
+ ## Базовый пример
16
+
17
+ <Primary />
18
+
19
+ ## Пропы
20
+
21
+ <details>
22
+ <summary>Открыть таблицу с пропами</summary>
23
+ <ArgTypes />
24
+ </details>
25
+
26
+ ## Примеры использования
27
+
28
+ <Stories title="" includePrimary={false} />
@@ -2,9 +2,13 @@ import { Nullable } from '../../typings/utility-types';
2
2
  import { DecimalOptions } from './CurrencyInputHelper';
3
3
  import { CursorMap } from './CursorHelper';
4
4
  export interface DecimalFormattingOptions {
5
+ /** Устанавливает минимальное количество отображаемых знаков после запятой. */
5
6
  fractionDigits?: Nullable<number>;
7
+ /** Убирает лишние нули после запятой. */
6
8
  hideTrailingZeros?: boolean;
9
+ /** Устанавливает разделители для тысячных разрядов. */
7
10
  thousandsDelimiter?: string;
11
+ /** Устанавливает знак минуса. */
8
12
  minusSign?: string;
9
13
  }
10
14
  type DecimalFormattingOptionsInternal = Required<DecimalFormattingOptions>;
@@ -18,6 +18,13 @@ var _constants = require("./constants");var _CurrencyHelper;var
18
18
 
19
19
 
20
20
 
21
+
22
+
23
+
24
+
25
+
26
+
27
+
21
28
 
22
29
 
23
30
 
@@ -1 +1 @@
1
- {"version":3,"names":["_utils","require","_client","_constants","_CurrencyHelper","CurrencyHelper","exports","getOptions","options","_extends2","default","defaultOptions","getInfo","value","raw","unformatString","formatted","formatString","cursorMap","getCursorMap","formattingOptions","regexp","RegExp","thousandsDelimiter","index","length","cursor","skip","ignoredSymbol","exec","format","isNullable","toDecimalString","parse","cleaned","destructed","destructString","result","sign","integer","delimiter","fraction","parseFloat","replace","formatForClipboard","unformattedValue","fractionDigits","hideTrailingZeros","parts","blockSize","start","i","push","substring","Math","max","join","padEnd","min","MAX_SAFE_DIGITS","minusSign","isValidString","unsigned","integerDigits","isNonNullable","extractValid","match","token","substr","MAX_ALLOWED_CHARS","_match$","_match$2","_match$3","_match$4","_match$5","exponent","isSafari","SPACE","THIN_SPACE","MINUS_SIGN","number","toString","includes","toExponential","_destructed$sign","intExponent","parseInt","repeat"],"sources":["CurrencyHelper.tsx"],"sourcesContent":["import { isNonNullable, isNullable } from '../../lib/utils';\nimport { Nullable } from '../../typings/utility-types';\nimport { isSafari } from '../../lib/client';\n\nimport { DecimalOptions } from './CurrencyInputHelper';\nimport { CursorMap } from './CursorHelper';\nimport { MAX_ALLOWED_CHARS, MAX_SAFE_DIGITS, MINUS_SIGN, SPACE, THIN_SPACE } from './constants';\n\nexport interface DecimalFormattingOptions {\n fractionDigits?: Nullable<number>;\n hideTrailingZeros?: boolean;\n thousandsDelimiter?: string;\n minusSign?: string;\n}\n\ntype DecimalFormattingOptionsInternal = Required<DecimalFormattingOptions>;\n\nexport interface FormattingInfo {\n raw: string;\n formatted: string;\n cursorMap: CursorMap;\n}\n\nexport class CurrencyHelper {\n public static defaultOptions: DecimalFormattingOptionsInternal = {\n fractionDigits: null,\n hideTrailingZeros: false,\n thousandsDelimiter: isSafari ? SPACE : THIN_SPACE,\n minusSign: MINUS_SIGN,\n };\n\n public static getOptions(options?: Nullable<DecimalFormattingOptions>): DecimalFormattingOptionsInternal {\n return { ...CurrencyHelper.defaultOptions, ...options };\n }\n\n public static getInfo(value: string, options?: Nullable<DecimalFormattingOptions>): FormattingInfo {\n const raw = CurrencyHelper.unformatString(value);\n const formatted = CurrencyHelper.formatString(value, options);\n const cursorMap = CurrencyHelper.getCursorMap(formatted, options);\n\n return { raw, formatted, cursorMap };\n }\n\n public static getCursorMap(formatted: string, formattingOptions?: Nullable<DecimalFormattingOptions>): CursorMap {\n const options = CurrencyHelper.getOptions(formattingOptions);\n const regexp = new RegExp(options.thousandsDelimiter);\n const cursorMap: CursorMap = [];\n\n let index = formatted.length;\n let cursor = formatted.length;\n let skip = 0;\n\n while (index >= 0) {\n cursorMap[index] = cursor;\n\n const ignoredSymbol = regexp.exec(formatted[index - 1]);\n if (ignoredSymbol) {\n ++skip;\n } else {\n cursor = cursor - skip - 1;\n skip = 0;\n }\n --index;\n }\n return cursorMap;\n }\n\n public static format(value: Nullable<number>, options?: Nullable<DecimalFormattingOptions>): string {\n if (isNullable(value)) {\n return '';\n }\n return CurrencyHelper.formatString(this.toDecimalString(value), options);\n }\n\n public static parse(value: string): Nullable<number> {\n const cleaned = CurrencyHelper.unformatString(value);\n if (!cleaned) {\n return null;\n }\n\n const destructed = CurrencyHelper.destructString(cleaned);\n if (!destructed) {\n return null;\n }\n\n const result =\n destructed.sign + (destructed.integer || '0') + (destructed.delimiter || '.') + (destructed.fraction || '0');\n\n return parseFloat(result);\n }\n\n public static unformatString(value: string): string {\n return value\n .replace(/\\s/g, '')\n .replace(',', '.')\n .replace(/[\\u2212\\u002D\\uFE63\\uFF0D\\u2012\\u2013\\u2014\\u2015]/g, '-');\n }\n\n public static formatForClipboard(value: string): string {\n return CurrencyHelper.unformatString(value).replace('.', ',');\n }\n\n public static formatString(value: string, formattingOptions?: Nullable<DecimalFormattingOptions>): string {\n const unformattedValue = CurrencyHelper.unformatString(value);\n const destructed = CurrencyHelper.destructString(unformattedValue) || {\n sign: '',\n integer: '',\n delimiter: '',\n fraction: '',\n };\n\n const { sign, integer, delimiter } = destructed;\n let fraction = destructed.fraction;\n let fractionDigits = fraction.length;\n\n const options = CurrencyHelper.getOptions(formattingOptions);\n if (options.hideTrailingZeros) {\n fraction = fraction.replace(/0+$/, '');\n fractionDigits = fraction.length;\n } else if (options.fractionDigits !== null) {\n fractionDigits = options.fractionDigits;\n }\n\n const parts = [];\n\n const blockSize = 3;\n const start = ((integer.length - 1) % blockSize) - blockSize + 1;\n for (let i = start; i < integer.length; i += blockSize) {\n parts.push(integer.substring(Math.max(i, 0), i + blockSize));\n }\n\n let result = parts.join(options.thousandsDelimiter);\n\n if (delimiter || fractionDigits) {\n result += ',';\n result += fraction.padEnd(Math.min(fractionDigits, MAX_SAFE_DIGITS), '0');\n }\n\n if (sign) {\n result = options.minusSign + result;\n }\n\n return result;\n }\n\n public static isValidString(value: string, options: DecimalOptions) {\n const unformattedValue = CurrencyHelper.unformatString(value);\n const destructed = CurrencyHelper.destructString(unformattedValue);\n\n if (!destructed) {\n return false;\n }\n\n const { sign, integer, delimiter, fraction } = destructed;\n\n if (options.unsigned && sign) {\n return false;\n }\n\n if (options.fractionDigits === 0 && delimiter) {\n return false;\n }\n\n const integerDigits = integer === '0' ? 0 : integer.length;\n const fractionDigits = fraction.length;\n\n if (isNonNullable(options.integerDigits) && integerDigits > options.integerDigits) {\n return false;\n }\n\n if (isNullable(options.integerDigits) && integerDigits > MAX_SAFE_DIGITS - (options.fractionDigits || 0)) {\n return false;\n }\n\n if (isNonNullable(options.fractionDigits) && fractionDigits > options.fractionDigits) {\n return false;\n }\n\n return integerDigits + fractionDigits <= MAX_SAFE_DIGITS;\n }\n\n public static extractValid(value: string, options: DecimalOptions): string {\n const unformattedValue = CurrencyHelper.unformatString(value);\n\n const match = /[-.\\d]+/.exec(unformattedValue);\n\n if (!match) {\n return '';\n }\n\n const token = match[0].substr(0, MAX_ALLOWED_CHARS);\n\n for (let i = token.length; i >= 0; --i) {\n const result = token.substr(0, i);\n if (CurrencyHelper.isValidString(result, options)) {\n return result;\n }\n }\n\n return '';\n }\n\n public static destructString(value: string) {\n const match = /^(-)?(\\d*)?(\\.)?(\\d*)?(e)?([-+]?\\d+)?$/.exec(value);\n if (!match) {\n return null;\n }\n const [, sign = '', integer = '', delimiter = '', fraction = '', , exponent = ''] = match;\n return { sign, integer, delimiter, fraction, exponent };\n }\n\n private static toDecimalString = (number: number) => {\n if (!number.toString().includes('e')) {\n return number.toString();\n }\n const destructed = this.destructString(number.toExponential());\n if (destructed === null) {\n return '';\n }\n const { sign = '', integer, fraction, exponent } = destructed;\n const intExponent = parseInt(exponent || '0');\n if (intExponent > 0) {\n return [sign, integer, fraction, '0'.repeat(intExponent - fraction.length)].join('');\n }\n return [sign, '0.', ' 0'.repeat(-intExponent - 1), integer, fraction].join('');\n };\n}\n"],"mappings":"sPAAA,IAAAA,MAAA,GAAAC,OAAA;;AAEA,IAAAC,OAAA,GAAAD,OAAA;;;;AAIA,IAAAE,UAAA,GAAAF,OAAA,gBAAgG,IAAAG,eAAA;;;;;;;;;;;;;;;;;AAiBnFC,cAAc,GAAAC,OAAA,CAAAD,cAAA,sCAAAA,eAAA,IAAAA,cAAA;;;;;;;;EAQXE,UAAU,GAAxB,SAAAA,WAAyBC,OAA4C,EAAoC;IACvG,WAAAC,SAAA,CAAAC,OAAA,MAAYL,cAAc,CAACM,cAAc,EAAKH,OAAO;EACvD,CAAC,CAAAH,cAAA;;EAEaO,OAAO,GAArB,SAAAA,QAAsBC,KAAa,EAAEL,OAA4C,EAAkB;IACjG,IAAMM,GAAG,GAAGT,cAAc,CAACU,cAAc,CAACF,KAAK,CAAC;IAChD,IAAMG,SAAS,GAAGX,cAAc,CAACY,YAAY,CAACJ,KAAK,EAAEL,OAAO,CAAC;IAC7D,IAAMU,SAAS,GAAGb,cAAc,CAACc,YAAY,CAACH,SAAS,EAAER,OAAO,CAAC;;IAEjE,OAAO,EAAEM,GAAG,EAAHA,GAAG,EAAEE,SAAS,EAATA,SAAS,EAAEE,SAAS,EAATA,SAAS,CAAC,CAAC;EACtC,CAAC,CAAAb,cAAA;;EAEac,YAAY,GAA1B,SAAAA,aAA2BH,SAAiB,EAAEI,iBAAsD,EAAa;IAC/G,IAAM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CAAClB,IAAI,EAAE,IAAI,EAAE,IAAI,CAACiD,MAAM,CAAC,CAACF,WAAW,GAAG,CAAC,CAAC,EAAE9C,OAAO,EAAEE,QAAQ,CAAC,CAACe,IAAI,CAAC,EAAE,CAAC;AAChF,CAAC","ignoreList":[]}
1
+ {"version":3,"names":["_utils","require","_client","_constants","_CurrencyHelper","CurrencyHelper","exports","getOptions","options","_extends2","default","defaultOptions","getInfo","value","raw","unformatString","formatted","formatString","cursorMap","getCursorMap","formattingOptions","regexp","RegExp","thousandsDelimiter","index","length","cursor","skip","ignoredSymbol","exec","format","isNullable","toDecimalString","parse","cleaned","destructed","destructString","result","sign","integer","delimiter","fraction","parseFloat","replace","formatForClipboard","unformattedValue","fractionDigits","hideTrailingZeros","parts","blockSize","start","i","push","substring","Math","max","join","padEnd","min","MAX_SAFE_DIGITS","minusSign","isValidString","unsigned","integerDigits","isNonNullable","extractValid","match","token","substr","MAX_ALLOWED_CHARS","_match$","_match$2","_match$3","_match$4","_match$5","exponent","isSafari","SPACE","THIN_SPACE","MINUS_SIGN","number","toString","includes","toExponential","_destructed$sign","intExponent","parseInt","repeat"],"sources":["CurrencyHelper.tsx"],"sourcesContent":["import { isNonNullable, isNullable } from '../../lib/utils';\nimport { Nullable } from '../../typings/utility-types';\nimport { isSafari } from '../../lib/client';\n\nimport { DecimalOptions } from './CurrencyInputHelper';\nimport { CursorMap } from './CursorHelper';\nimport { MAX_ALLOWED_CHARS, MAX_SAFE_DIGITS, MINUS_SIGN, SPACE, THIN_SPACE } from './constants';\n\nexport interface DecimalFormattingOptions {\n /** Устанавливает минимальное количество отображаемых знаков после запятой. */\n fractionDigits?: Nullable<number>;\n\n /** Убирает лишние нули после запятой. */\n hideTrailingZeros?: boolean;\n\n /** Устанавливает разделители для тысячных разрядов. */\n thousandsDelimiter?: string;\n\n /** Устанавливает знак минуса. */\n minusSign?: string;\n}\n\ntype DecimalFormattingOptionsInternal = Required<DecimalFormattingOptions>;\n\nexport interface FormattingInfo {\n raw: string;\n formatted: string;\n cursorMap: CursorMap;\n}\n\nexport class CurrencyHelper {\n public static defaultOptions: DecimalFormattingOptionsInternal = {\n fractionDigits: null,\n hideTrailingZeros: false,\n thousandsDelimiter: isSafari ? SPACE : THIN_SPACE,\n minusSign: MINUS_SIGN,\n };\n\n public static getOptions(options?: Nullable<DecimalFormattingOptions>): DecimalFormattingOptionsInternal {\n return { ...CurrencyHelper.defaultOptions, ...options };\n }\n\n public static getInfo(value: string, options?: Nullable<DecimalFormattingOptions>): FormattingInfo {\n const raw = CurrencyHelper.unformatString(value);\n const formatted = CurrencyHelper.formatString(value, options);\n const cursorMap = CurrencyHelper.getCursorMap(formatted, options);\n\n return { raw, formatted, cursorMap };\n }\n\n public static getCursorMap(formatted: string, formattingOptions?: Nullable<DecimalFormattingOptions>): CursorMap {\n const options = CurrencyHelper.getOptions(formattingOptions);\n const regexp = new RegExp(options.thousandsDelimiter);\n const cursorMap: CursorMap = [];\n\n let index = formatted.length;\n let cursor = formatted.length;\n let skip = 0;\n\n while (index >= 0) {\n cursorMap[index] = cursor;\n\n const ignoredSymbol = regexp.exec(formatted[index - 1]);\n if (ignoredSymbol) {\n ++skip;\n } else {\n cursor = cursor - skip - 1;\n skip = 0;\n }\n --index;\n }\n return cursorMap;\n }\n\n public static format(value: Nullable<number>, options?: Nullable<DecimalFormattingOptions>): string {\n if (isNullable(value)) {\n return '';\n }\n return CurrencyHelper.formatString(this.toDecimalString(value), options);\n }\n\n public static parse(value: string): Nullable<number> {\n const cleaned = CurrencyHelper.unformatString(value);\n if (!cleaned) {\n return null;\n }\n\n const destructed = CurrencyHelper.destructString(cleaned);\n if (!destructed) {\n return null;\n }\n\n const result =\n destructed.sign + (destructed.integer || '0') + (destructed.delimiter || '.') + (destructed.fraction || '0');\n\n return parseFloat(result);\n }\n\n public static unformatString(value: string): string {\n return value\n .replace(/\\s/g, '')\n .replace(',', '.')\n .replace(/[\\u2212\\u002D\\uFE63\\uFF0D\\u2012\\u2013\\u2014\\u2015]/g, '-');\n }\n\n public static formatForClipboard(value: string): string {\n return CurrencyHelper.unformatString(value).replace('.', ',');\n }\n\n public static formatString(value: string, formattingOptions?: Nullable<DecimalFormattingOptions>): string {\n const unformattedValue = CurrencyHelper.unformatString(value);\n const destructed = CurrencyHelper.destructString(unformattedValue) || {\n sign: '',\n integer: '',\n delimiter: '',\n fraction: '',\n };\n\n const { sign, integer, delimiter } = destructed;\n let fraction = destructed.fraction;\n let fractionDigits = fraction.length;\n\n const options = CurrencyHelper.getOptions(formattingOptions);\n if (options.hideTrailingZeros) {\n fraction = fraction.replace(/0+$/, '');\n fractionDigits = fraction.length;\n } else if (options.fractionDigits !== null) {\n fractionDigits = options.fractionDigits;\n }\n\n const parts = [];\n\n const blockSize = 3;\n const start = ((integer.length - 1) % blockSize) - blockSize + 1;\n for (let i = start; i < integer.length; i += blockSize) {\n parts.push(integer.substring(Math.max(i, 0), i + blockSize));\n }\n\n let result = parts.join(options.thousandsDelimiter);\n\n if (delimiter || fractionDigits) {\n result += ',';\n result += fraction.padEnd(Math.min(fractionDigits, MAX_SAFE_DIGITS), '0');\n }\n\n if (sign) {\n result = options.minusSign + result;\n }\n\n return result;\n }\n\n public static isValidString(value: string, options: DecimalOptions) {\n const unformattedValue = CurrencyHelper.unformatString(value);\n const destructed = CurrencyHelper.destructString(unformattedValue);\n\n if (!destructed) {\n return false;\n }\n\n const { sign, integer, delimiter, fraction } = destructed;\n\n if (options.unsigned && sign) {\n return false;\n }\n\n if (options.fractionDigits === 0 && delimiter) {\n return false;\n }\n\n const integerDigits = integer === '0' ? 0 : integer.length;\n const fractionDigits = fraction.length;\n\n if (isNonNullable(options.integerDigits) && integerDigits > options.integerDigits) {\n return false;\n }\n\n if (isNullable(options.integerDigits) && integerDigits > MAX_SAFE_DIGITS - (options.fractionDigits || 0)) {\n return false;\n }\n\n if (isNonNullable(options.fractionDigits) && fractionDigits > options.fractionDigits) {\n return false;\n }\n\n return integerDigits + fractionDigits <= MAX_SAFE_DIGITS;\n }\n\n public static extractValid(value: string, options: DecimalOptions): string {\n const unformattedValue = CurrencyHelper.unformatString(value);\n\n const match = /[-.\\d]+/.exec(unformattedValue);\n\n if (!match) {\n return '';\n }\n\n const token = match[0].substr(0, MAX_ALLOWED_CHARS);\n\n for (let i = token.length; i >= 0; --i) {\n const result = token.substr(0, i);\n if (CurrencyHelper.isValidString(result, options)) {\n return result;\n }\n }\n\n return '';\n }\n\n public static destructString(value: string) {\n const match = /^(-)?(\\d*)?(\\.)?(\\d*)?(e)?([-+]?\\d+)?$/.exec(value);\n if (!match) {\n return null;\n }\n const [, sign = '', integer = '', delimiter = '', fraction = '', , exponent = ''] = match;\n return { sign, integer, delimiter, fraction, exponent };\n }\n\n private static toDecimalString = (number: number) => {\n if (!number.toString().includes('e')) {\n return number.toString();\n }\n const destructed = this.destructString(number.toExponential());\n if (destructed === null) {\n return '';\n }\n const { sign = '', integer, fraction, exponent } = destructed;\n const intExponent = parseInt(exponent || '0');\n if (intExponent > 0) {\n return [sign, integer, fraction, '0'.repeat(intExponent - fraction.length)].join('');\n }\n return [sign, '0.', ' 0'.repeat(-intExponent - 1), integer, fraction].join('');\n };\n}\n"],"mappings":"sPAAA,IAAAA,MAAA,GAAAC,OAAA;;AAEA,IAAAC,OAAA,GAAAD,OAAA;;;;AAIA,IAAAE,UAAA,GAAAF,OAAA,gBAAgG,IAAAG,eAAA;;;;;;;;;;;;;;;;;;;;;;;;AAwBnFC,cAAc,GAAAC,OAAA,CAAAD,cAAA,sCAAAA,eAAA,IAAAA,cAAA;;;;;;;;EAQXE,UAAU,GAAxB,SAAAA,WAAyBC,OAA4C,EAAoC;IACvG,WAAAC,SAAA,CAAAC,OAAA,MAAYL,cAAc,CAACM,cAAc,EAAKH,OAAO;EACvD,CAAC,CAAAH,cAAA;;EAEaO,OAAO,GAArB,SAAAA,QAAsBC,KAAa,EAAEL,OAA4C,EAAkB;IACjG,IAAMM,GAAG,GAAGT,cAAc,CAACU,cAAc,CAACF,KA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AQ,GAAeN,UAAU,CAAjCM,QAAQ,CAAEkC,QAAQ,GAAKxC,UAAU,CAAvBwC,QAAQ;EAC9C,IAAMU,WAAW,GAAGC,QAAQ,CAACX,QAAQ,IAAI,GAAG,CAAC;EAC7C,IAAIU,WAAW,GAAG,CAAC,EAAE;IACnB,OAAO,CAAC/C,IAAI,EAAEC,OAAO,EAAEE,QAAQ,EAAE,GAAG,CAAC8C,MAAM,CAACF,WAAW,GAAG5C,QAAQ,CAAChB,MAAM,CAAC,CAAC,CAAC+B,IAAI,CAAC,EAAE,CAAC;EACtF;EACA,OAAO,CAAClB,IAAI,EAAE,IAAI,EAAE,IAAI,CAACiD,MAAM,CAAC,CAACF,WAAW,GAAG,CAAC,CAAC,EAAE9C,OAAO,EAAEE,QAAQ,CAAC,CAACe,IAAI,CAAC,EAAE,CAAC;AAChF,CAAC","ignoreList":[]}
@@ -4,23 +4,20 @@ import { InputProps } from '../Input';
4
4
  import { Nullable, Override } from '../../typings/utility-types';
5
5
  import { CommonProps, CommonWrapperRestProps } from '../../internal/CommonWrapper';
6
6
  import { Selection } from './SelectionHelper';
7
- export interface CurrencyInputProps extends Pick<AriaAttributes, 'aria-label'>, CommonProps, Override<InputProps, {
8
- /** Значение */
7
+ export interface CurrencyInputProps extends Pick<AriaAttributes, 'aria-label'>, CommonProps, Override<Omit<InputProps, 'showClearIcon'>, {
8
+ /** Задает значение инпута. */
9
9
  value?: Nullable<number>;
10
- /** Убрать лишние нули после запятой */
10
+ /** Убирает лишние нули после запятой. */
11
11
  hideTrailingZeros?: boolean;
12
- /** Кол-во цифр после запятой */
12
+ /** Устанавливает минимальное количество отображаемых знаков после запятой. */
13
13
  fractionDigits?: Nullable<number>;
14
- /** Отрицательные значения */
14
+ /** Разрешает отрицательные значения. */
15
15
  signed?: boolean;
16
- /**
17
- * Допустимое кол-во цифр целой части.
18
- * Если передан **0**, или `fractionDigits=15`, то и в целой части допускается только **0**.
19
- */
16
+ /** Задает допустимое количество цифр целой части. Если передан **0**, или fractionDigits=15, то и в целой части допускается только **0**. */
20
17
  integerDigits?: Nullable<number>;
21
- /** Вызывается при изменении `value` */
18
+ /** Задает функцию, которая вызывается при изменении `value`. */
22
19
  onValueChange: (value: Nullable<number>) => void;
23
- /** onSubmit */
20
+ /** Задает функцию, которая вызывается при отправке формы. */
24
21
  onSubmit?: () => void;
25
22
  }> {
26
23
  }
@@ -34,11 +31,14 @@ export declare const CurrencyInputDataTids: {
34
31
  };
35
32
  type DefaultProps = Required<Pick<CurrencyInputProps, 'align' | 'fractionDigits' | 'hideTrailingZeros' | 'value' | 'inputMode'>>;
36
33
  /**
37
- * Поле для денежных сумм (и других числовых значений).
34
+ * `CurrencyInput` — поле для денежных сумм (и других числовых значений).
38
35
  * Принимает любые свойства `Input`.
39
36
  *
37
+ * Используйте такое поле, когда нужно вводить значение в рублях, долларах или другой валюте.
38
+ * Оно форматирует введенное значение и помогает пользователю не ошибиться при вводе.
39
+ *
40
40
  * Максимальная длина числа - **15 цифр** (с десятичным разделителем в любом месте).
41
- * <br/>
41
+ *
42
42
  * Если `fractionDigits=15`, то в целой части допускается **0**.
43
43
  */
44
44
  export declare class CurrencyInput extends React.PureComponent<CurrencyInputProps, CurrencyInputState> {
@@ -48,6 +48,9 @@ var _CurrencyInputKeyboardActions = require("./CurrencyInputKeyboardActions");va
48
48
 
49
49
 
50
50
 
51
+
52
+
53
+
51
54
 
52
55
 
53
56
 
@@ -61,11 +64,14 @@ var CurrencyInputDataTids = exports.CurrencyInputDataTids = {
61
64
 
62
65
 
63
66
  /**
64
- * Поле для денежных сумм (и других числовых значений).
67
+ * `CurrencyInput` — поле для денежных сумм (и других числовых значений).
65
68
  * Принимает любые свойства `Input`.
66
69
  *
70
+ * Используйте такое поле, когда нужно вводить значение в рублях, долларах или другой валюте.
71
+ * Оно форматирует введенное значение и помогает пользователю не ошибиться при вводе.
72
+ *
67
73
  * Максимальная длина числа - **15 цифр** (с десятичным разделителем в любом месте).
68
- * <br/>
74
+ *
69
75
  * Если `fractionDigits=15`, то в целой части допускается **0**.
70
76
  */var
71
77
 
@@ -1 +1 @@
1
- {"version":3,"names":["_react","_interopRequireDefault","require","_propTypes","_warning","_lodash","_globalObject","_utils","_client","_Input","_CommonWrapper","_rootNode","_createPropsGetter","_isInstanceOf","_FocusControlWrapper","_constants","_SelectionHelper","_CurrencyHelper","_CurrencyInputHelper","_CurrencyInputKeyboardActions","_excluded","_class","_CurrencyInput","CurrencyInputDataTids","exports","root","CurrencyInput","rootNode","_React$PureComponent","_this","_len","arguments","length","args","Array","_key","call","apply","concat","getProps","createPropsGetter","defaultProps","state","_extends2","default","getState","value","fractionDigits","hideTrailingZeros","focused","tempSelectionForOnChange","SelectionHelper","fromPosition","renderMain","props","signed","onSubmit","integerDigits","rest","_objectWithoutPropertiesLoose2","createElement","FocusControlWrapper","onBlurWhenDisabled","resetFocus","Input","align","formatted","onBlur","handleBlur","onFocus","handleFocus","onMouseUp","handleMouseUp","onKeyDown","handleKeyDown","onValueChange","handleValueChange","onPaste","handlePaste","onCopy","handleCopy","onCut","handleCut","onMouseEnter","onMouseLeave","onMouseOver","ref","refInput","placeholder","getPlaceholder","focus","input","blur","debouncedSetSelectionFromEvent","debounce","setSelectionFromEvent","event","isIE11","persist","selection","getSelection","target","defaultPrevented","action","extractAction","CURRENCY_INPUT_ACTIONS","Ignore","Unknown","preventDefault","Submit","Backspace","inputValue","CurrencyInputHelper","moveCursor","end","Delete","start","MoveCursorLeft","MoveCursorRight","Home","setState","End","ExtendSelectionLeft","extendSelection","ExtendSelectionRight","FullSelection","forward","ExtendSelectionToStart","backward","ExtendSelectionToEnd","inputEnd","Comma","scrollInput","_this$input","node","getNode","scrollWidth","clientWidth","PAD","SHIFT","selected","position","direction","charsCount","charWidth","frame","Math","ceil","frameStart","scrollLeft","frameEnd","getInputSelectionFromEvent","step","extended","result","safeInsert","unsigned","parsedValue","CurrencyHelper","parse","blink","getOnChangeDelta","oldValue","substring","substr","delta","isNonNullable","data","clipboardData","getData","formatForClipboard","setData","_event$target","selectionStart","selectionEnd","selectionDirection","valueLength","element","_inheritsLoose2","_proto","prototype","componentDidMount","_this$props","maxLength","warning","undefined","MAX_SAFE_DIGITS","componentDidUpdate","prevProps","prevState","_this$getProps","isValidNumber","isNumeric","Number","isNullable","_this$state$selection","setSelectionRange","render","CommonWrapper","rootNodeRef","setRootNode","format","normilized","normalizeSelection","React","PureComponent","__KONTUR_REACT_UI__","displayName","propTypes","PropTypes","oneOf","autoFocus","bool","borderless","disabled","error","number","leftIcon","string","size","width","oneOfType","func","isRequired","inputMode","_input$selectionStart","_input$selectionEnd","isInstanceOf","globalObject","HTMLInputElement","Error","isNaN","parseFloat","isFinite"],"sources":["CurrencyInput.tsx"],"sourcesContent":["import React, { AriaAttributes } from 'react';\nimport PropTypes from 'prop-types';\nimport warning from 'warning';\nimport debounce from 'lodash.debounce';\nimport { globalObject } from '@skbkontur/global-object';\n\nimport { isNonNullable, isNullable } from '../../lib/utils';\nimport { isIE11 } from '../../lib/client';\nimport { Input, InputProps } from '../Input';\nimport { Nullable, Override } from '../../typings/utility-types';\nimport { CommonProps, CommonWrapper, CommonWrapperRestProps } from '../../internal/CommonWrapper';\nimport { rootNode, TSetRootNode } from '../../lib/rootNode';\nimport { createPropsGetter } from '../../lib/createPropsGetter';\nimport { isInstanceOf } from '../../lib/isInstanceOf';\nimport { FocusControlWrapper } from '../../internal/FocusControlWrapper';\n\nimport { MAX_SAFE_DIGITS } from './constants';\nimport { Selection, SelectionDirection, SelectionHelper } from './SelectionHelper';\nimport { CurrencyHelper } from './CurrencyHelper';\nimport { CurrencyInputHelper } from './CurrencyInputHelper';\nimport { CURRENCY_INPUT_ACTIONS, extractAction } from './CurrencyInputKeyboardActions';\n\nexport interface CurrencyInputProps\n extends Pick<AriaAttributes, 'aria-label'>,\n CommonProps,\n Override<\n InputProps,\n {\n /** Значение */\n value?: Nullable<number>;\n /** Убрать лишние нули после запятой */\n hideTrailingZeros?: boolean;\n /** Кол-во цифр после запятой */\n fractionDigits?: Nullable<number>;\n /** Отрицательные значения */\n signed?: boolean;\n /**\n * Допустимое кол-во цифр целой части.\n * Если передан **0**, или `fractionDigits=15`, то и в целой части допускается только **0**.\n */\n integerDigits?: Nullable<number>;\n /** Вызывается при изменении `value` */\n onValueChange: (value: Nullable<number>) => void;\n /** onSubmit */\n onSubmit?: () => void;\n }\n > {}\n\nexport interface CurrencyInputState {\n formatted: string;\n selection: Selection;\n focused: boolean;\n}\n\nexport const CurrencyInputDataTids = {\n root: 'CurrencyInput__root',\n} as const;\n\ntype DefaultProps = Required<\n Pick<CurrencyInputProps, 'align' | 'fractionDigits' | 'hideTrailingZeros' | 'value' | 'inputMode'>\n>;\n\n/**\n * Поле для денежных сумм (и других числовых значений).\n * Принимает любые свойства `Input`.\n *\n * Максимальная длина числа - **15 цифр** (с десятичным разделителем в любом месте).\n * <br/>\n * Если `fractionDigits=15`, то в целой части допускается **0**.\n */\n@rootNode\nexport class CurrencyInput extends React.PureComponent<CurrencyInputProps, CurrencyInputState> {\n public static __KONTUR_REACT_UI__ = 'CurrencyInput';\n public static displayName = 'CurrencyInput';\n\n public static propTypes = {\n align: PropTypes.oneOf(['left', 'center', 'right']),\n autoFocus: PropTypes.bool,\n borderless: PropTypes.bool,\n disabled: PropTypes.bool,\n error: PropTypes.bool,\n fractionDigits: PropTypes.number,\n hideTrailingZeros: PropTypes.bool,\n leftIcon: PropTypes.element,\n placeholder: PropTypes.string,\n signed: PropTypes.bool,\n size: PropTypes.oneOf(['small', 'medium', 'large']),\n value: (props: CurrencyInputProps) => {\n warning(isValidNumber(props.value), '[CurrencyInput]: Prop `value` is not a valid number');\n },\n warning: PropTypes.bool,\n width: PropTypes.oneOfType([PropTypes.number, PropTypes.string]),\n onBlur: PropTypes.func,\n onValueChange: PropTypes.func.isRequired,\n onFocus: PropTypes.func,\n onMouseEnter: PropTypes.func,\n onMouseLeave: PropTypes.func,\n onMouseOver: PropTypes.func,\n onSubmit: PropTypes.func,\n };\n\n public static defaultProps: DefaultProps = {\n align: 'right',\n fractionDigits: 2,\n hideTrailingZeros: false,\n value: null,\n inputMode: 'decimal',\n };\n\n private getProps = createPropsGetter(CurrencyInput.defaultProps);\n\n public state: CurrencyInputState = {\n ...this.getState(this.getProps().value, this.getProps().fractionDigits, this.getProps().hideTrailingZeros),\n focused: false,\n };\n\n private input: Nullable<Input>;\n private tempSelectionForOnChange: Selection = SelectionHelper.fromPosition(0);\n private setRootNode!: TSetRootNode;\n\n public componentDidMount(): void {\n const { maxLength, integerDigits } = this.props;\n const fractionDigits = this.getProps().fractionDigits;\n warning(\n maxLength === undefined,\n `[CurrencyInput]: Prop 'maxLength' has been deprecated. See 'integerDigits' and 'fractionDigits'`,\n );\n warning(\n (integerDigits || 0) + (fractionDigits || 0) <= MAX_SAFE_DIGITS,\n `[CurrencyInput]: Sum of 'integerDigits' and 'fractionDigits' exceeds ${MAX_SAFE_DIGITS}.` +\n `\\nSee https://tech.skbkontur.ru/react-ui/#/CurrencyInput?id=why15`,\n );\n }\n\n public componentDidUpdate(prevProps: CurrencyInputProps, prevState: CurrencyInputState) {\n const { value, fractionDigits, hideTrailingZeros } = this.getProps();\n if (\n (isValidNumber(value) && isNumeric(value) && Number(value) !== CurrencyHelper.parse(prevState.formatted)) ||\n prevProps.fractionDigits !== fractionDigits\n ) {\n this.setState(this.getState(value, fractionDigits, hideTrailingZeros));\n }\n if (isNonNullable(prevProps.value) && isNullable(value)) {\n this.setState({ formatted: '' });\n }\n if (this.state.focused && this.input) {\n const { start, end } = this.state.selection;\n\n this.input.setSelectionRange(start, end);\n }\n if (prevState.selection !== this.state.selection) {\n this.scrollInput();\n }\n }\n\n public render() {\n return (\n <CommonWrapper rootNodeRef={this.setRootNode} {...this.getProps()}>\n {this.renderMain}\n </CommonWrapper>\n );\n }\n\n public renderMain = (props: CommonWrapperRestProps<CurrencyInputProps>) => {\n const { fractionDigits, signed, onSubmit, integerDigits, hideTrailingZeros, ...rest } = props;\n\n return (\n <FocusControlWrapper onBlurWhenDisabled={this.resetFocus}>\n <Input\n data-tid={CurrencyInputDataTids.root}\n {...rest}\n align={this.getProps().align}\n value={this.state.formatted}\n onBlur={this.handleBlur}\n onFocus={this.handleFocus}\n onMouseUp={this.handleMouseUp}\n onKeyDown={this.handleKeyDown}\n onValueChange={this.handleValueChange}\n onPaste={this.handlePaste}\n onCopy={this.handleCopy}\n onCut={this.handleCut}\n aria-label={this.props['aria-label']}\n onMouseEnter={this.props.onMouseEnter}\n onMouseLeave={this.props.onMouseLeave}\n onMouseOver={this.props.onMouseOver}\n ref={this.refInput}\n placeholder={this.state.focused ? '' : getPlaceholder(props)}\n />\n </FocusControlWrapper>\n );\n };\n\n /**\n * @public\n */\n public focus = () => {\n if (this.input) {\n this.input.focus();\n }\n };\n\n /**\n * @public\n */\n public blur = () => {\n if (this.input) {\n this.input.blur();\n }\n };\n\n private getState(value: Nullable<number>, fractionDigits: Nullable<number>, hideTrailingZeros: boolean) {\n return {\n formatted: CurrencyHelper.format(value, { fractionDigits, hideTrailingZeros }),\n selection: SelectionHelper.fromPosition(0),\n };\n }\n\n private setSelectionFromEvent(event: React.MouseEvent<HTMLInputElement>) {\n const selection = getInputSelectionFromEvent(event.target);\n const normilized = CurrencyInputHelper.normalizeSelection(this.state.formatted, selection);\n this.setState({ selection: normilized });\n }\n\n // for IE11\n private readonly debouncedSetSelectionFromEvent = debounce(this.setSelectionFromEvent, 300);\n\n private handleMouseUp = (event: React.MouseEvent<HTMLInputElement>) => {\n if (isIE11) {\n event.persist();\n this.debouncedSetSelectionFromEvent(event);\n } else {\n this.setSelectionFromEvent(event);\n }\n };\n\n private handleKeyDown = (event: React.KeyboardEvent<HTMLInputElement>) => {\n const selection = this.getSelection(event.target);\n this.tempSelectionForOnChange = selection;\n\n if (this.props.onKeyDown) {\n this.props.onKeyDown(event);\n if (event.defaultPrevented) {\n return;\n }\n }\n\n const action = extractAction(event);\n\n if (action === CURRENCY_INPUT_ACTIONS.Ignore) {\n return;\n }\n\n if (action !== CURRENCY_INPUT_ACTIONS.Unknown) {\n event.preventDefault();\n }\n\n switch (action) {\n case CURRENCY_INPUT_ACTIONS.Submit: {\n if (this.props.onSubmit) {\n this.props.onSubmit();\n }\n return;\n }\n case CURRENCY_INPUT_ACTIONS.Backspace: {\n this.inputValue(CurrencyInputHelper.moveCursor(this.state.formatted, selection, -1), selection.end, '');\n return;\n }\n case CURRENCY_INPUT_ACTIONS.Delete: {\n this.inputValue(selection.start, CurrencyInputHelper.moveCursor(this.state.formatted, selection, +1), '');\n return;\n }\n case CURRENCY_INPUT_ACTIONS.MoveCursorLeft: {\n this.moveCursor(selection, -1);\n return;\n }\n case CURRENCY_INPUT_ACTIONS.MoveCursorRight: {\n this.moveCursor(selection, +1);\n return;\n }\n case CURRENCY_INPUT_ACTIONS.Home: {\n this.setState({ selection: SelectionHelper.fromPosition(0) });\n return;\n }\n case CURRENCY_INPUT_ACTIONS.End: {\n const end = this.state.formatted.length;\n this.setState({ selection: SelectionHelper.fromPosition(end) });\n return;\n }\n case CURRENCY_INPUT_ACTIONS.ExtendSelectionLeft: {\n this.extendSelection(selection, -1);\n return;\n }\n case CURRENCY_INPUT_ACTIONS.ExtendSelectionRight: {\n this.extendSelection(selection, +1);\n return;\n }\n case CURRENCY_INPUT_ACTIONS.FullSelection: {\n this.setState({\n selection: SelectionHelper.forward(0, this.state.formatted.length),\n });\n return;\n }\n case CURRENCY_INPUT_ACTIONS.ExtendSelectionToStart: {\n this.setState({\n selection: SelectionHelper.backward(0, selection.start),\n });\n return;\n }\n case CURRENCY_INPUT_ACTIONS.ExtendSelectionToEnd: {\n const inputEnd = this.state.formatted.length;\n this.setState({\n selection: SelectionHelper.forward(selection.start, inputEnd),\n });\n return;\n }\n case CURRENCY_INPUT_ACTIONS.Comma: {\n this.inputValue(selection.start, selection.end, ',');\n return;\n }\n }\n };\n\n private scrollInput = () => {\n const node = this.input?.getNode();\n if (!node || node.scrollWidth === node.clientWidth) {\n return;\n }\n const PAD = 1;\n const SHIFT = 3;\n\n const selection = this.state.selection;\n const selected = selection.start !== selection.end;\n const position = selected && selection.direction === 'forward' ? selection.end : selection.start;\n const charsCount = this.state.formatted.length;\n const charWidth = node.scrollWidth / charsCount;\n const frame = Math.ceil(node.clientWidth / charWidth);\n const frameStart = Math.ceil(node.scrollLeft / charWidth);\n const frameEnd = frameStart + frame;\n\n if (position < frameStart + PAD) {\n node.scrollLeft = (position - SHIFT) * charWidth;\n }\n if (position > frameEnd - PAD) {\n node.scrollLeft = (position - frame + SHIFT) * charWidth;\n }\n };\n\n private getSelection = (input: EventTarget): Selection => {\n const selection = getInputSelectionFromEvent(input);\n return {\n start: selection.start,\n end: selection.end,\n direction: this.state.selection.direction,\n };\n };\n\n private moveCursor = (selection: Selection, step: number) => {\n const position = CurrencyInputHelper.moveCursor(this.state.formatted, selection, step);\n this.setState({ selection: SelectionHelper.fromPosition(position) });\n };\n\n private extendSelection = (selection: Selection, step: number) => {\n const extended = CurrencyInputHelper.extendSelection(this.state.formatted, selection, step);\n this.setState({ selection: extended });\n };\n\n private inputValue = (start: number, end: number, value: string) => {\n const result = CurrencyInputHelper.safeInsert(this.state.formatted, start, end, value, {\n integerDigits: this.props.integerDigits,\n fractionDigits: this.getProps().fractionDigits,\n unsigned: !this.props.signed,\n });\n if (result) {\n const formatted = result.value;\n const selection = SelectionHelper.fromPosition(result.position);\n this.setState({ formatted, selection }, () => {\n const parsedValue = CurrencyHelper.parse(formatted);\n if (this.props.value !== parsedValue) {\n this.props.onValueChange(parsedValue);\n }\n });\n return true;\n }\n\n if (this.input) {\n this.input.blink();\n }\n return false;\n };\n\n private getOnChangeDelta = (value: string) => {\n const selection = this.tempSelectionForOnChange;\n const oldValue = this.state.formatted;\n if (selection.start !== selection.end) {\n return value.substring(selection.start, value.length - (oldValue.length - selection.end));\n } else if (value.length > oldValue.length) {\n return value.substr(selection.start, value.length - oldValue.length);\n }\n return null;\n };\n\n private handleValueChange = (value: string): void => {\n const selection = this.tempSelectionForOnChange;\n const delta = this.getOnChangeDelta(value);\n if (isNonNullable(delta) && !this.inputValue(selection.start, selection.end, delta)) {\n this.setState({ selection });\n }\n };\n\n private handlePaste = (event: React.ClipboardEvent<HTMLInputElement>) => {\n const data = event.clipboardData.getData('text');\n const selection = this.getSelection(event.target);\n this.inputValue(selection.start, selection.end, data);\n event.preventDefault();\n };\n\n private handleCopy = (event: React.ClipboardEvent<HTMLInputElement>) => {\n const selection = this.getSelection(event.target);\n if (selection.start !== selection.end) {\n const substring = this.state.formatted.substring(selection.start, selection.end);\n const data = CurrencyHelper.formatForClipboard(substring);\n event.clipboardData.setData('text', data);\n }\n event.preventDefault();\n };\n\n private handleCut = (event: React.ClipboardEvent<HTMLInputElement>) => {\n const selection = this.getSelection(event.target);\n if (selection.start !== selection.end) {\n const substring = this.state.formatted.substring(selection.start, selection.end);\n const data = CurrencyHelper.formatForClipboard(substring);\n event.clipboardData.setData('text', data);\n this.inputValue(selection.start, selection.end, '');\n }\n event.preventDefault();\n };\n\n private handleFocus = (event: React.FocusEvent<HTMLInputElement>) => {\n const { selectionStart, selectionEnd, selectionDirection } = event.target;\n const valueLength = event.target.value.length;\n\n const selection = {\n start: selectionStart !== selectionEnd ? selectionStart || 0 : selectionStart || valueLength,\n end: selectionEnd !== selectionStart ? selectionEnd || 0 : selectionEnd || valueLength,\n direction: (selectionDirection as SelectionDirection) || 'none',\n };\n\n this.setState({\n focused: true,\n selection,\n });\n\n if (this.props.onFocus) {\n this.props.onFocus(event);\n }\n };\n\n private resetFocus = () => {\n const value = CurrencyHelper.parse(this.state.formatted);\n\n this.setState({\n ...this.getState(value, this.getProps().fractionDigits, this.getProps().hideTrailingZeros),\n focused: false,\n });\n };\n\n private handleBlur = (event: React.FocusEvent<HTMLInputElement>) => {\n this.resetFocus();\n this.props.onBlur?.(event);\n };\n\n private refInput = (element: Nullable<Input>) => {\n this.input = element;\n };\n}\n\nfunction getInputSelectionFromEvent(input: EventTarget): Selection {\n if (!isInstanceOf(input, globalObject.HTMLInputElement)) {\n throw new Error('input is not HTMLInputElement');\n }\n\n return {\n start: input.selectionStart ?? 0,\n end: input.selectionEnd ?? 0,\n direction: input.selectionDirection as SelectionDirection,\n };\n}\n\nfunction isNumeric(value: unknown): value is number | string {\n return !isNaN(parseFloat(value as string)) && isFinite(value as number);\n}\n\nfunction isValidNumber(value: unknown): boolean {\n return !isNaN(Number(value));\n}\n\nconst getPlaceholder = (props: CurrencyInputProps) => {\n if (isNullable(props.placeholder)) {\n return CurrencyHelper.format(0, {\n fractionDigits: props.fractionDigits,\n hideTrailingZeros: props.hideTrailingZeros,\n });\n }\n\n return props.placeholder;\n};\n"],"mappings":"+eAAA,IAAAA,MAAA,GAAAC,sBAAA,CAAAC,OAAA;AACA,IAAAC,UAAA,GAAAF,sBAAA,CAAAC,OAAA;AACA,IAAAE,QAAA,GAAAH,sBAAA,CAAAC,OAAA;AACA,IAAAG,OAAA,GAAAJ,sBAAA,CAAAC,OAAA;AACA,IAAAI,aAAA,GAAAJ,OAAA;;AAEA,IAAAK,MAAA,GAAAL,OAAA;AACA,IAAAM,OAAA,GAAAN,OAAA;AACA,IAAAO,MAAA,GAAAP,OAAA;;AAEA,IAAAQ,cAAA,GAAAR,OAAA;AACA,IAAAS,SAAA,GAAAT,OAAA;AACA,IAAAU,kBAAA,GAAAV,OAAA;AACA,IAAAW,aAAA,GAAAX,OAAA;AACA,IAAAY,oBAAA,GAAAZ,OAAA;;AAEA,IAAAa,UAAA,GAAAb,OAAA;AACA,IAAAc,gBAAA,GAAAd,OAAA;AACA,IAAAe,eAAA,GAAAf,OAAA;AACA,IAAAgB,oBAAA,GAAAhB,OAAA;AACA,IAAAiB,6BAAA,GAAAjB,OAAA,mCAAuF,IAAAkB,SAAA,sFAAAC,MAAA,EAAAC,cAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAkChF,IAAMC,qBAAqB,GAAAC,OAAA,CAAAD,qBAAA,GAAG;EACnCE,IAAI,EAAE;AACR,CA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C,MAAM,CAACnJ,KAAK,CAAC,CAAC;AAC9B;;AAEA,IAAM2C,cAAc,GAAG,SAAjBA,cAAcA,CAAInC,KAAyB,EAAK;EACpD,IAAI,IAAA4I,iBAAU,EAAC5I,KAAK,CAACkC,WAAW,CAAC,EAAE;IACjC,OAAOsE,8BAAc,CAAC2C,MAAM,CAAC,CAAC,EAAE;MAC9B1J,cAAc,EAAEO,KAAK,CAACP,cAAc;MACpCC,iBAAiB,EAAEM,KAAK,CAACN;IAC3B,CAAC,CAAC;EACJ;;EAEA,OAAOM,KAAK,CAACkC,WAAW;AAC1B,CAAC","ignoreList":[]}
1
+ {"version":3,"names":["_react","_interopRequireDefault","require","_propTypes","_warning","_lodash","_globalObject","_utils","_client","_Input","_CommonWrapper","_rootNode","_createPropsGetter","_isInstanceOf","_FocusControlWrapper","_constants","_SelectionHelper","_CurrencyHelper","_CurrencyInputHelper","_CurrencyInputKeyboardActions","_excluded","_class","_CurrencyInput","CurrencyInputDataTids","exports","root","CurrencyInput","rootNode","_React$PureComponent","_this","_len","arguments","length","args","Array","_key","call","apply","concat","getProps","createPropsGetter","defaultProps","state","_extends2","default","getState","value","fractionDigits","hideTrailingZeros","focused","tempSelectionForOnChange","SelectionHelper","fromPosition","renderMain","props","signed","onSubmit","integerDigits","rest","_objectWithoutPropertiesLoose2","createElement","FocusControlWrapper","onBlurWhenDisabled","resetFocus","Input","align","formatted","onBlur","handleBlur","onFocus","handleFocus","onMouseUp","handleMouseUp","onKeyDown","handleKeyDown","onValueChange","handleValueChange","onPaste","handlePaste","onCopy","handleCopy","onCut","handleCut","onMouseEnter","onMouseLeave","onMouseOver","ref","refInput","placeholder","getPlaceholder","focus","input","blur","debouncedSetSelectionFromEvent","debounce","setSelectionFromEvent","event","isIE11","persist","selection","getSelection","target","defaultPrevented","action","extractAction","CURRENCY_INPUT_ACTIONS","Ignore","Unknown","preventDefault","Submit","Backspace","inputValue","CurrencyInputHelper","moveCursor","end","Delete","start","MoveCursorLeft","MoveCursorRight","Home","setState","End","ExtendSelectionLeft","extendSelection","ExtendSelectionRight","FullSelection","forward","ExtendSelectionToStart","backward","ExtendSelectionToEnd","inputEnd","Comma","scrollInput","_this$input","node","getNode","scrollWidth","clientWidth","PAD","SHIFT","selected","position","direction","charsCount","charWidth","frame","Math","ceil","frameStart","scrollLeft","frameEnd","getInputSelectionFromEvent","step","extended","result","safeInsert","unsigned","parsedValue","CurrencyHelper","parse","blink","getOnChangeDelta","oldValue","substring","substr","delta","isNonNullable","data","clipboardData","getData","formatForClipboard","setData","_event$target","selectionStart","selectionEnd","selectionDirection","valueLength","element","_inheritsLoose2","_proto","prototype","componentDidMount","_this$props","maxLength","warning","undefined","MAX_SAFE_DIGITS","componentDidUpdate","prevProps","prevState","_this$getProps","isValidNumber","isNumeric","Number","isNullable","_this$state$selection","setSelectionRange","render","CommonWrapper","rootNodeRef","setRootNode","format","normilized","normalizeSelection","React","PureComponent","__KONTUR_REACT_UI__","displayName","propTypes","PropTypes","oneOf","autoFocus","bool","borderless","disabled","error","number","leftIcon","string","size","width","oneOfType","func","isRequired","inputMode","_input$selectionStart","_input$selectionEnd","isInstanceOf","globalObject","HTMLInputElement","Error","isNaN","parseFloat","isFinite"],"sources":["CurrencyInput.tsx"],"sourcesContent":["import React, { AriaAttributes } from 'react';\nimport PropTypes from 'prop-types';\nimport warning from 'warning';\nimport debounce from 'lodash.debounce';\nimport { globalObject } from '@skbkontur/global-object';\n\nimport { isNonNullable, isNullable } from '../../lib/utils';\nimport { isIE11 } from '../../lib/client';\nimport { Input, InputProps } from '../Input';\nimport { Nullable, Override } from '../../typings/utility-types';\nimport { CommonProps, CommonWrapper, CommonWrapperRestProps } from '../../internal/CommonWrapper';\nimport { rootNode, TSetRootNode } from '../../lib/rootNode';\nimport { createPropsGetter } from '../../lib/createPropsGetter';\nimport { isInstanceOf } from '../../lib/isInstanceOf';\nimport { FocusControlWrapper } from '../../internal/FocusControlWrapper';\n\nimport { MAX_SAFE_DIGITS } from './constants';\nimport { Selection, SelectionDirection, SelectionHelper } from './SelectionHelper';\nimport { CurrencyHelper } from './CurrencyHelper';\nimport { CurrencyInputHelper } from './CurrencyInputHelper';\nimport { CURRENCY_INPUT_ACTIONS, extractAction } from './CurrencyInputKeyboardActions';\n\nexport interface CurrencyInputProps\n extends Pick<AriaAttributes, 'aria-label'>,\n CommonProps,\n Override<\n Omit<InputProps, 'showClearIcon'>,\n {\n /** Задает значение инпута. */\n value?: Nullable<number>;\n\n /** Убирает лишние нули после запятой. */\n hideTrailingZeros?: boolean;\n\n /** Устанавливает минимальное количество отображаемых знаков после запятой. */\n fractionDigits?: Nullable<number>;\n\n /** Разрешает отрицательные значения. */\n signed?: boolean;\n\n /** Задает допустимое количество цифр целой части. Если передан **0**, или fractionDigits=15, то и в целой части допускается только **0**. */\n integerDigits?: Nullable<number>;\n\n /** Задает функцию, которая вызывается при изменении `value`. */\n onValueChange: (value: Nullable<number>) => void;\n\n /** Задает функцию, которая вызывается при отправке формы. */\n onSubmit?: () => void;\n }\n > {}\n\nexport interface CurrencyInputState {\n formatted: string;\n selection: Selection;\n focused: boolean;\n}\n\nexport const CurrencyInputDataTids = {\n root: 'CurrencyInput__root',\n} as const;\n\ntype DefaultProps = Required<\n Pick<CurrencyInputProps, 'align' | 'fractionDigits' | 'hideTrailingZeros' | 'value' | 'inputMode'>\n>;\n\n/**\n * `CurrencyInput` — поле для денежных сумм (и других числовых значений).\n * Принимает любые свойства `Input`.\n *\n * Используйте такое поле, когда нужно вводить значение в рублях, долларах или другой валюте.\n * Оно форматирует введенное значение и помогает пользователю не ошибиться при вводе.\n *\n * Максимальная длина числа - **15 цифр** (с десятичным разделителем в любом месте).\n *\n * Если `fractionDigits=15`, то в целой части допускается **0**.\n */\n@rootNode\nexport class CurrencyInput extends React.PureComponent<CurrencyInputProps, CurrencyInputState> {\n public static __KONTUR_REACT_UI__ = 'CurrencyInput';\n public static displayName = 'CurrencyInput';\n\n public static propTypes = {\n align: PropTypes.oneOf(['left', 'center', 'right']),\n autoFocus: PropTypes.bool,\n borderless: PropTypes.bool,\n disabled: PropTypes.bool,\n error: PropTypes.bool,\n fractionDigits: PropTypes.number,\n hideTrailingZeros: PropTypes.bool,\n leftIcon: PropTypes.element,\n placeholder: PropTypes.string,\n signed: PropTypes.bool,\n size: PropTypes.oneOf(['small', 'medium', 'large']),\n value: (props: CurrencyInputProps) => {\n warning(isValidNumber(props.value), '[CurrencyInput]: Prop `value` is not a valid number');\n },\n warning: PropTypes.bool,\n width: PropTypes.oneOfType([PropTypes.number, PropTypes.string]),\n onBlur: PropTypes.func,\n onValueChange: PropTypes.func.isRequired,\n onFocus: PropTypes.func,\n onMouseEnter: PropTypes.func,\n onMouseLeave: PropTypes.func,\n onMouseOver: PropTypes.func,\n onSubmit: PropTypes.func,\n };\n\n public static defaultProps: DefaultProps = {\n align: 'right',\n fractionDigits: 2,\n hideTrailingZeros: false,\n value: null,\n inputMode: 'decimal',\n };\n\n private getProps = createPropsGetter(CurrencyInput.defaultProps);\n\n public state: CurrencyInputState = {\n ...this.getState(this.getProps().value, this.getProps().fractionDigits, this.getProps().hideTrailingZeros),\n focused: false,\n };\n\n private input: Nullable<Input>;\n private tempSelectionForOnChange: Selection = SelectionHelper.fromPosition(0);\n private setRootNode!: TSetRootNode;\n\n public componentDidMount(): void {\n const { maxLength, integerDigits } = this.props;\n const fractionDigits = this.getProps().fractionDigits;\n warning(\n maxLength === undefined,\n `[CurrencyInput]: Prop 'maxLength' has been deprecated. See 'integerDigits' and 'fractionDigits'`,\n );\n warning(\n (integerDigits || 0) + (fractionDigits || 0) <= MAX_SAFE_DIGITS,\n `[CurrencyInput]: Sum of 'integerDigits' and 'fractionDigits' exceeds ${MAX_SAFE_DIGITS}.` +\n `\\nSee https://tech.skbkontur.ru/react-ui/#/CurrencyInput?id=why15`,\n );\n }\n\n public componentDidUpdate(prevProps: CurrencyInputProps, prevState: CurrencyInputState) {\n const { value, fractionDigits, hideTrailingZeros } = this.getProps();\n if (\n (isValidNumber(value) && isNumeric(value) && Number(value) !== CurrencyHelper.parse(prevState.formatted)) ||\n prevProps.fractionDigits !== fractionDigits\n ) {\n this.setState(this.getState(value, fractionDigits, hideTrailingZeros));\n }\n if (isNonNullable(prevProps.value) && isNullable(value)) {\n this.setState({ formatted: '' });\n }\n if (this.state.focused && this.input) {\n const { start, end } = this.state.selection;\n\n this.input.setSelectionRange(start, end);\n }\n if (prevState.selection !== this.state.selection) {\n this.scrollInput();\n }\n }\n\n public render() {\n return (\n <CommonWrapper rootNodeRef={this.setRootNode} {...this.getProps()}>\n {this.renderMain}\n </CommonWrapper>\n );\n }\n\n public renderMain = (props: CommonWrapperRestProps<CurrencyInputProps>) => {\n const { fractionDigits, signed, onSubmit, integerDigits, hideTrailingZeros, ...rest } = props;\n\n return (\n <FocusControlWrapper onBlurWhenDisabled={this.resetFocus}>\n <Input\n data-tid={CurrencyInputDataTids.root}\n {...rest}\n align={this.getProps().align}\n value={this.state.formatted}\n onBlur={this.handleBlur}\n onFocus={this.handleFocus}\n onMouseUp={this.handleMouseUp}\n onKeyDown={this.handleKeyDown}\n onValueChange={this.handleValueChange}\n onPaste={this.handlePaste}\n onCopy={this.handleCopy}\n onCut={this.handleCut}\n aria-label={this.props['aria-label']}\n onMouseEnter={this.props.onMouseEnter}\n onMouseLeave={this.props.onMouseLeave}\n onMouseOver={this.props.onMouseOver}\n ref={this.refInput}\n placeholder={this.state.focused ? '' : getPlaceholder(props)}\n />\n </FocusControlWrapper>\n );\n };\n\n /**\n * @public\n */\n public focus = () => {\n if (this.input) {\n this.input.focus();\n }\n };\n\n /**\n * @public\n */\n public blur = () => {\n if (this.input) {\n this.input.blur();\n }\n };\n\n private getState(value: Nullable<number>, fractionDigits: Nullable<number>, hideTrailingZeros: boolean) {\n return {\n formatted: CurrencyHelper.format(value, { fractionDigits, hideTrailingZeros }),\n selection: SelectionHelper.fromPosition(0),\n };\n }\n\n private setSelectionFromEvent(event: React.MouseEvent<HTMLInputElement>) {\n const selection = getInputSelectionFromEvent(event.target);\n const normilized = CurrencyInputHelper.normalizeSelection(this.state.formatted, selection);\n this.setState({ selection: normilized });\n }\n\n // for IE11\n private readonly debouncedSetSelectionFromEvent = debounce(this.setSelectionFromEvent, 300);\n\n private handleMouseUp = (event: React.MouseEvent<HTMLInputElement>) => {\n if (isIE11) {\n event.persist();\n this.debouncedSetSelectionFromEvent(event);\n } else {\n this.setSelectionFromEvent(event);\n }\n };\n\n private handleKeyDown = (event: React.KeyboardEvent<HTMLInputElement>) => {\n const selection = this.getSelection(event.target);\n this.tempSelectionForOnChange = selection;\n\n if (this.props.onKeyDown) {\n this.props.onKeyDown(event);\n if (event.defaultPrevented) {\n return;\n }\n }\n\n const action = extractAction(event);\n\n if (action === CURRENCY_INPUT_ACTIONS.Ignore) {\n return;\n }\n\n if (action !== CURRENCY_INPUT_ACTIONS.Unknown) {\n event.preventDefault();\n }\n\n switch (action) {\n case CURRENCY_INPUT_ACTIONS.Submit: {\n if (this.props.onSubmit) {\n this.props.onSubmit();\n }\n return;\n }\n case CURRENCY_INPUT_ACTIONS.Backspace: {\n this.inputValue(CurrencyInputHelper.moveCursor(this.state.formatted, selection, -1), selection.end, '');\n return;\n }\n case CURRENCY_INPUT_ACTIONS.Delete: {\n this.inputValue(selection.start, CurrencyInputHelper.moveCursor(this.state.formatted, selection, +1), '');\n return;\n }\n case CURRENCY_INPUT_ACTIONS.MoveCursorLeft: {\n this.moveCursor(selection, -1);\n return;\n }\n case CURRENCY_INPUT_ACTIONS.MoveCursorRight: {\n this.moveCursor(selection, +1);\n return;\n }\n case CURRENCY_INPUT_ACTIONS.Home: {\n this.setState({ selection: SelectionHelper.fromPosition(0) });\n return;\n }\n case CURRENCY_INPUT_ACTIONS.End: {\n const end = this.state.formatted.length;\n this.setState({ selection: SelectionHelper.fromPosition(end) });\n return;\n }\n case CURRENCY_INPUT_ACTIONS.ExtendSelectionLeft: {\n this.extendSelection(selection, -1);\n return;\n }\n case CURRENCY_INPUT_ACTIONS.ExtendSelectionRight: {\n this.extendSelection(selection, +1);\n return;\n }\n case CURRENCY_INPUT_ACTIONS.FullSelection: {\n this.setState({\n selection: SelectionHelper.forward(0, this.state.formatted.length),\n });\n return;\n }\n case CURRENCY_INPUT_ACTIONS.ExtendSelectionToStart: {\n this.setState({\n selection: SelectionHelper.backward(0, selection.start),\n });\n return;\n }\n case CURRENCY_INPUT_ACTIONS.ExtendSelectionToEnd: {\n const inputEnd = this.state.formatted.length;\n this.setState({\n selection: SelectionHelper.forward(selection.start, inputEnd),\n });\n return;\n }\n case CURRENCY_INPUT_ACTIONS.Comma: {\n this.inputValue(selection.start, selection.end, ',');\n return;\n }\n }\n };\n\n private scrollInput = () => {\n const node = this.input?.getNode();\n if (!node || node.scrollWidth === node.clientWidth) {\n return;\n }\n const PAD = 1;\n const SHIFT = 3;\n\n const selection = this.state.selection;\n const selected = selection.start !== selection.end;\n const position = selected && selection.direction === 'forward' ? selection.end : selection.start;\n const charsCount = this.state.formatted.length;\n const charWidth = node.scrollWidth / charsCount;\n const frame = Math.ceil(node.clientWidth / charWidth);\n const frameStart = Math.ceil(node.scrollLeft / charWidth);\n const frameEnd = frameStart + frame;\n\n if (position < frameStart + PAD) {\n node.scrollLeft = (position - SHIFT) * charWidth;\n }\n if (position > frameEnd - PAD) {\n node.scrollLeft = (position - frame + SHIFT) * charWidth;\n }\n };\n\n private getSelection = (input: EventTarget): Selection => {\n const selection = getInputSelectionFromEvent(input);\n return {\n start: selection.start,\n end: selection.end,\n direction: this.state.selection.direction,\n };\n };\n\n private moveCursor = (selection: Selection, step: number) => {\n const position = CurrencyInputHelper.moveCursor(this.state.formatted, selection, step);\n this.setState({ selection: SelectionHelper.fromPosition(position) });\n };\n\n private extendSelection = (selection: Selection, step: number) => {\n const extended = CurrencyInputHelper.extendSelection(this.state.formatted, selection, step);\n this.setState({ selection: extended });\n };\n\n private inputValue = (start: number, end: number, value: string) => {\n const result = CurrencyInputHelper.safeInsert(this.state.formatted, start, end, value, {\n integerDigits: this.props.integerDigits,\n fractionDigits: this.getProps().fractionDigits,\n unsigned: !this.props.signed,\n });\n if (result) {\n const formatted = result.value;\n const selection = SelectionHelper.fromPosition(result.position);\n this.setState({ formatted, selection }, () => {\n const parsedValue = CurrencyHelper.parse(formatted);\n if (this.props.value !== parsedValue) {\n this.props.onValueChange(parsedValue);\n }\n });\n return true;\n }\n\n if (this.input) {\n this.input.blink();\n }\n return false;\n };\n\n private getOnChangeDelta = (value: string) => {\n const selection = this.tempSelectionForOnChange;\n const oldValue = this.state.formatted;\n if (selection.start !== selection.end) {\n return value.substring(selection.start, value.length - (oldValue.length - selection.end));\n } else if (value.length > oldValue.length) {\n return value.substr(selection.start, value.length - oldValue.length);\n }\n return null;\n };\n\n private handleValueChange = (value: string): void => {\n const selection = this.tempSelectionForOnChange;\n const delta = this.getOnChangeDelta(value);\n if (isNonNullable(delta) && !this.inputValue(selection.start, selection.end, delta)) {\n this.setState({ selection });\n }\n };\n\n private handlePaste = (event: React.ClipboardEvent<HTMLInputElement>) => {\n const data = event.clipboardData.getData('text');\n const selection = this.getSelection(event.target);\n this.inputValue(selection.start, selection.end, data);\n event.preventDefault();\n };\n\n private handleCopy = (event: React.ClipboardEvent<HTMLInputElement>) => {\n const selection = this.getSelection(event.target);\n if (selection.start !== selection.end) {\n const substring = this.state.formatted.substring(selection.start, selection.end);\n const data = CurrencyHelper.formatForClipboard(substring);\n event.clipboardData.setData('text', data);\n }\n event.preventDefault();\n };\n\n private handleCut = (event: React.ClipboardEvent<HTMLInputElement>) => {\n const selection = this.getSelection(event.target);\n if (selection.start !== selection.end) {\n const substring = this.state.formatted.substring(selection.start, selection.end);\n const data = CurrencyHelper.formatForClipboard(substring);\n event.clipboardData.setData('text', data);\n this.inputValue(selection.start, selection.end, '');\n }\n event.preventDefault();\n };\n\n private handleFocus = (event: React.FocusEvent<HTMLInputElement>) => {\n const { selectionStart, selectionEnd, selectionDirection } = event.target;\n const valueLength = event.target.value.length;\n\n const selection = {\n start: selectionStart !== selectionEnd ? selectionStart || 0 : selectionStart || valueLength,\n end: selectionEnd !== selectionStart ? selectionEnd || 0 : selectionEnd || valueLength,\n direction: (selectionDirection as SelectionDirection) || 'none',\n };\n\n this.setState({\n focused: true,\n selection,\n });\n\n if (this.props.onFocus) {\n this.props.onFocus(event);\n }\n };\n\n private resetFocus = () => {\n const value = CurrencyHelper.parse(this.state.formatted);\n\n this.setState({\n ...this.getState(value, this.getProps().fractionDigits, this.getProps().hideTrailingZeros),\n focused: false,\n });\n };\n\n private handleBlur = (event: React.FocusEvent<HTMLInputElement>) => {\n this.resetFocus();\n this.props.onBlur?.(event);\n };\n\n private refInput = (element: Nullable<Input>) => {\n this.input = element;\n };\n}\n\nfunction getInputSelectionFromEvent(input: EventTarget): Selection {\n if (!isInstanceOf(input, globalObject.HTMLInputElement)) {\n throw new Error('input is not HTMLInputElement');\n }\n\n return {\n start: input.selectionStart ?? 0,\n end: input.selectionEnd ?? 0,\n direction: input.selectionDirection as SelectionDirection,\n };\n}\n\nfunction isNumeric(value: unknown): value is number | string {\n return !isNaN(parseFloat(value as string)) && isFinite(value as number);\n}\n\nfunction isValidNumber(value: unknown): boolean {\n return !isNaN(Number(value));\n}\n\nconst getPlaceholder = (props: CurrencyInputProps) => {\n if (isNullable(props.placeholder)) {\n return CurrencyHelper.format(0, {\n fractionDigits: props.fractionDigits,\n hideTrailingZeros: props.hideTrailingZeros,\n });\n }\n\n return props.placeholder;\n};\n"],"mappings":"+eAAA,IAAAA,MAAA,GAAAC,sBAAA,CAAAC,OAAA;AACA,IAAAC,UAAA,GAAAF,sBAAA,CAAAC,OAAA;AACA,IAAAE,QAAA,GAAAH,sBAAA,CAAAC,OAAA;AACA,IAAAG,OAAA,GAAAJ,sBAAA,CAAAC,OAAA;AACA,IAAAI,aAAA,GAAAJ,OAAA;;AAEA,IAAAK,MAAA,GAAAL,OAAA;AACA,IAAAM,OAAA,GAAAN,OAAA;AACA,IAAAO,MAAA,GAAAP,OAAA;;AAEA,IA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;IACvD,MAAM,IAAIC,KAAK,CAAC,+BAA+B,CAAC;EAClD;;EAEA,OAAO;IACLlH,KAAK,GAAA6G,qBAAA,GAAEtI,KAAK,CAACkF,cAAc,YAAAoD,qBAAA,GAAI,CAAC;IAChC/G,GAAG,GAAAgH,mBAAA,GAAEvI,KAAK,CAACmF,YAAY,YAAAoD,mBAAA,GAAI,CAAC;IAC5BpF,SAAS,EAAEnD,KAAK,CAACoF;EACnB,CAAC;AACH;;AAEA,SAASiB,SAASA,CAAClJ,KAAc,EAA4B;EAC3D,OAAO,CAACyL,KAAK,CAACC,UAAU,CAAC1L,KAAe,CAAC,CAAC,IAAI2L,QAAQ,CAAC3L,KAAe,CAAC;AACzE;;AAEA,SAASiJ,aAAaA,CAACjJ,KAAc,EAAW;EAC9C,OAAO,CAACyL,KAAK,CAACtC,MAAM,CAACnJ,KAAK,CAAC,CAAC;AAC9B;;AAEA,IAAM2C,cAAc,GAAG,SAAjBA,cAAcA,CAAInC,KAAyB,EAAK;EACpD,IAAI,IAAA4I,iBAAU,EAAC5I,KAAK,CAACkC,WAAW,CAAC,EAAE;IACjC,OAAOsE,8BAAc,CAAC2C,MAAM,CAAC,CAAC,EAAE;MAC9B1J,cAAc,EAAEO,KAAK,CAACP,cAAc;MACpCC,iBAAiB,EAAEM,KAAK,CAACN;IAC3B,CAAC,CAAC;EACJ;;EAEA,OAAOM,KAAK,CAACkC,WAAW;AAC1B,CAAC","ignoreList":[]}
@@ -1,9 +1,11 @@
1
+ ### Базовый пример
1
2
  ```jsx harmony
2
3
  const [value, setValue] = React.useState();
3
4
 
4
5
  <CurrencyInput value={value} fractionDigits={3} onValueChange={setValue} />
5
6
  ```
6
7
 
8
+ ### Очистка значения
7
9
  Очистить значение в `CurrencyInput` можно с помощью `null` или `undefined`
8
10
  ```jsx harmony
9
11
  import { Button, Group } from '@skbkontur/react-ui';
@@ -17,7 +19,7 @@ const [value, setValue] = React.useState();
17
19
  </Group>
18
20
  ```
19
21
 
20
- `fractionDigits={15}`
22
+ ### fractionDigits={15}
21
23
 
22
24
  ```jsx harmony
23
25
  const [value, setValue] = React.useState();
@@ -1,8 +1,11 @@
1
1
  import { Nullable } from '../../typings/utility-types';
2
2
  import { Selection } from './SelectionHelper';
3
3
  export interface DecimalOptions {
4
+ /** Задает допустимое количество цифр целой части. Если передан 0, или fractionDigits=15, то и в целой части допускается только 0. */
4
5
  integerDigits?: Nullable<number>;
6
+ /** Устанавливает минимальное количество отображаемых знаков после запятой. */
5
7
  fractionDigits?: Nullable<number>;
8
+ /** Определяет, является ли число беззнаковым. */
6
9
  unsigned?: boolean;
7
10
  }
8
11
  export declare class CurrencyInputHelper {
@@ -10,6 +10,11 @@ var _CursorHelper = require("./CursorHelper");var
10
10
 
11
11
 
12
12
 
13
+
14
+
15
+
16
+
17
+
13
18
  CurrencyInputHelper = exports.CurrencyInputHelper = /*#__PURE__*/function () {function CurrencyInputHelper() {}CurrencyInputHelper.
14
19
  moveCursor = function moveCursor(value, selection, step) {
15
20
  if (selection.start === selection.end) {
@@ -1 +1 @@
1
- {"version":3,"names":["_CurrencyHelper","require","_CursorHelper","CurrencyInputHelper","exports","moveCursor","value","selection","step","start","end","CursorHelper","calculatePosition","CurrencyHelper","getInfo","cursorMap","extendSelection","info","normalizeSelection","safeInsert","input","options","length","extracted","extractValid","insert","prefix","substring","suffix","combined","isValidString","raw","toRawPosition","info2","formattedPosition","toFormattedPosition","formatted","position"],"sources":["CurrencyInputHelper.tsx"],"sourcesContent":["import { Nullable } from '../../typings/utility-types';\n\nimport { Selection } from './SelectionHelper';\nimport { CurrencyHelper } from './CurrencyHelper';\nimport { CursorHelper } from './CursorHelper';\n\nexport interface DecimalOptions {\n integerDigits?: Nullable<number>;\n fractionDigits?: Nullable<number>;\n unsigned?: boolean;\n}\n\nexport class CurrencyInputHelper {\n public static moveCursor(value: string, selection: Selection, step: number): number {\n if (selection.start === selection.end) {\n return CursorHelper.calculatePosition(CurrencyHelper.getInfo(value).cursorMap, selection.start, step);\n } else if (step < 0) {\n return selection.start;\n }\n\n return selection.end;\n }\n\n public static extendSelection(value: string, selection: Selection, step: number) {\n const info = CurrencyHelper.getInfo(value);\n return CursorHelper.extendSelection(info.cursorMap, selection, step);\n }\n\n public static normalizeSelection(value: string, selection: Selection): Selection {\n const info = CurrencyHelper.getInfo(value);\n return CursorHelper.normalizeSelection(info.cursorMap, selection);\n }\n\n public static safeInsert(value: string, start: number, end: number, input: string, options: DecimalOptions) {\n if (input && start === 0 && end === value.length) {\n const extracted = CurrencyHelper.extractValid(input, options);\n if (!extracted) {\n return null;\n }\n return CurrencyInputHelper.insert(value, start, end, extracted);\n }\n\n const prefix = value.substring(0, start);\n const suffix = value.substring(end);\n\n const combined = prefix + input + suffix;\n if (CurrencyHelper.isValidString(combined, options)) {\n return CurrencyInputHelper.insert(value, start, end, input);\n }\n return null;\n }\n\n public static insert(value: string, start: number, end: number, input: string) {\n const prefix = value.substring(0, start);\n const suffix = value.substring(end);\n\n const info = CurrencyHelper.getInfo(value);\n const raw = CursorHelper.toRawPosition(info.cursorMap, start);\n const info2 = CurrencyHelper.getInfo(prefix + input + suffix);\n const formattedPosition = CursorHelper.toFormattedPosition(info2.cursorMap, raw + input.length);\n\n return { value: info2.formatted, position: formattedPosition };\n }\n}\n"],"mappings":";;;AAGA,IAAAA,eAAA,GAAAC,OAAA;AACA,IAAAC,aAAA,GAAAD,OAAA,mBAA8C;;;;;;;;AAQjCE,mBAAmB,GAAAC,OAAA,CAAAD,mBAAA,sCAAAA,oBAAA,IAAAA,mBAAA;EAChBE,UAAU,GAAxB,SAAAA,WAAyBC,KAAa,EAAEC,SAAoB,EAAEC,IAAY,EAAU;IAClF,IAAID,SAAS,CAACE,KAAK,KAAKF,SAAS,CAACG,GAAG,EAAE;MACrC,OAAOC,0BAAY,CAACC,iBAAiB,CAACC,8BAAc,CAACC,OAAO,CAACR,KAAK,CAAC,CAACS,SAAS,EAAER,SAAS,CAACE,KAAK,EAAED,IAAI,CAAC;IACvG,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Q,GAAGH,MAAM,GAAGN,KAAK,GAAGQ,MAAM;IACxC,IAAIf,8BAAc,CAACiB,aAAa,CAACD,QAAQ,EAAER,OAAO,CAAC,EAAE;MACnD,OAAOlB,mBAAmB,CAACsB,MAAM,CAACnB,KAAK,EAAEG,KAAK,EAAEC,GAAG,EAAEU,KAAK,CAAC;IAC7D;IACA,OAAO,IAAI;EACb,CAAC,CAAAjB,mBAAA;;EAEasB,MAAM,GAApB,SAAAA,OAAqBnB,KAAa,EAAEG,KAAa,EAAEC,GAAW,EAAEU,KAAa,EAAE;IAC7E,IAAMM,MAAM,GAAGpB,KAAK,CAACqB,SAAS,CAAC,CAAC,EAAElB,KAAK,CAAC;IACxC,IAAMmB,MAAM,GAAGtB,KAAK,CAACqB,SAAS,CAACjB,GAAG,CAAC;;IAEnC,IAAMO,IAAI,GAAGJ,8BAAc,CAACC,OAAO,CAACR,KAAK,CAAC;IAC1C,IAAMyB,GAAG,GAAGpB,0BAAY,CAACqB,aAAa,CAACf,IAAI,CAACF,SAAS,EAAEN,KAAK,CAAC;IAC7D,IAAMwB,KAAK,GAAGpB,8BAAc,CAACC,OAAO,CAACY,MAAM,GAAGN,KAAK,GAAGQ,MAAM,CAAC;IAC7D,IAAMM,iBAAiB,GAAGvB,0BAAY,CAACwB,mBAAmB,CAACF,KAAK,CAAClB,SAAS,EAAEgB,GAAG,GAAGX,KAAK,CAACE,MAAM,CAAC;;IAE/F,OAAO,EAAEhB,KAAK,EAAE2B,KAAK,CAACG,SAAS,EAAEC,QAAQ,EAAEH,iBAAiB,CAAC,CAAC;EAChE,CAAC,QAAA/B,mBAAA","ignoreList":[]}
1
+ {"version":3,"names":["_CurrencyHelper","require","_CursorHelper","CurrencyInputHelper","exports","moveCursor","value","selection","step","start","end","CursorHelper","calculatePosition","CurrencyHelper","getInfo","cursorMap","extendSelection","info","normalizeSelection","safeInsert","input","options","length","extracted","extractValid","insert","prefix","substring","suffix","combined","isValidString","raw","toRawPosition","info2","formattedPosition","toFormattedPosition","formatted","position"],"sources":["CurrencyInputHelper.tsx"],"sourcesContent":["import { Nullable } from '../../typings/utility-types';\n\nimport { Selection } from './SelectionHelper';\nimport { CurrencyHelper } from './CurrencyHelper';\nimport { CursorHelper } from './CursorHelper';\n\nexport interface DecimalOptions {\n /** Задает допустимое количество цифр целой части. Если передан 0, или fractionDigits=15, то и в целой части допускается только 0. */\n integerDigits?: Nullable<number>;\n\n /** Устанавливает минимальное количество отображаемых знаков после запятой. */\n fractionDigits?: Nullable<number>;\n\n /** Определяет, является ли число беззнаковым. */\n unsigned?: boolean;\n}\n\nexport class CurrencyInputHelper {\n public static moveCursor(value: string, selection: Selection, step: number): number {\n if (selection.start === selection.end) {\n return CursorHelper.calculatePosition(CurrencyHelper.getInfo(value).cursorMap, selection.start, step);\n } else if (step < 0) {\n return selection.start;\n }\n\n return selection.end;\n }\n\n public static extendSelection(value: string, selection: Selection, step: number) {\n const info = CurrencyHelper.getInfo(value);\n return CursorHelper.extendSelection(info.cursorMap, selection, step);\n }\n\n public static normalizeSelection(value: string, selection: Selection): Selection {\n const info = CurrencyHelper.getInfo(value);\n return CursorHelper.normalizeSelection(info.cursorMap, selection);\n }\n\n public static safeInsert(value: string, start: number, end: number, input: string, options: DecimalOptions) {\n if (input && start === 0 && end === value.length) {\n const extracted = CurrencyHelper.extractValid(input, options);\n if (!extracted) {\n return null;\n }\n return CurrencyInputHelper.insert(value, start, end, extracted);\n }\n\n const prefix = value.substring(0, start);\n const suffix = value.substring(end);\n\n const combined = prefix + input + suffix;\n if (CurrencyHelper.isValidString(combined, options)) {\n return CurrencyInputHelper.insert(value, start, end, input);\n }\n return null;\n }\n\n public static insert(value: string, start: number, end: number, input: string) {\n const prefix = value.substring(0, start);\n const suffix = value.substring(end);\n\n const info = CurrencyHelper.getInfo(value);\n const raw = CursorHelper.toRawPosition(info.cursorMap, start);\n const info2 = CurrencyHelper.getInfo(prefix + input + suffix);\n const formattedPosition = CursorHelper.toFormattedPosition(info2.cursorMap,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Q,MAAM,CAAC;IAC7D,IAAMM,iBAAiB,GAAGvB,0BAAY,CAACwB,mBAAmB,CAACF,KAAK,CAAClB,SAAS,EAAEgB,GAAG,GAAGX,KAAK,CAACE,MAAM,CAAC;;IAE/F,OAAO,EAAEhB,KAAK,EAAE2B,KAAK,CAACG,SAAS,EAAEC,QAAQ,EAAEH,iBAAiB,CAAC,CAAC;EAChE,CAAC,QAAA/B,mBAAA","ignoreList":[]}
@@ -0,0 +1,81 @@
1
+ import { story, kind, test } from 'creevey';
2
+
3
+ kind('CurrencyInput', () => {
4
+ story('SampleStory', ({ setStoryParameters }) => {
5
+ setStoryParameters({
6
+ skip: {
7
+ 'flacky visible(?!) cursor': {
8
+ in: ['chromeDark'],
9
+ tests: ['Focus', 'Input value', 'External focus and input'],
10
+ },
11
+ 'flaky pixels in the bottom left corner': {
12
+ in: ['chrome2022'],
13
+ tests: ['External focus and input'],
14
+ },
15
+ },
16
+ });
17
+
18
+ test('Plain', async (context) => {
19
+ await context.matchImage(await context.takeScreenshot(), 'Plain');
20
+ });
21
+
22
+ test('Focus', async (context) => {
23
+ await context.webdriver
24
+ .actions({
25
+ bridge: true,
26
+ })
27
+ .click(
28
+ context.webdriver.findElement({
29
+ css: '[data-comp-name*="CurrencyInput"] input',
30
+ }),
31
+ )
32
+ .perform();
33
+ await context.matchImage(await context.takeScreenshot(), 'Focus');
34
+ });
35
+
36
+ test('Input value', async (context) => {
37
+ await context.webdriver
38
+ .actions({
39
+ bridge: true,
40
+ })
41
+ .click(
42
+ context.webdriver.findElement({
43
+ css: '[data-comp-name*="CurrencyInput"] input',
44
+ }),
45
+ )
46
+ .sendKeys('1')
47
+ .pause(500)
48
+ .sendKeys('2')
49
+ .pause(500)
50
+ .sendKeys('3')
51
+ .pause(500)
52
+ .sendKeys('4')
53
+ .pause(500)
54
+ .perform();
55
+ await context.matchImage(await context.takeScreenshot(), 'Input value');
56
+ });
57
+
58
+ test('External focus and input', async (context) => {
59
+ await context.webdriver
60
+ .actions({
61
+ bridge: true,
62
+ })
63
+ .click(context.webdriver.findElement({ css: '[data-tid~="focus-input"]' }))
64
+ .perform();
65
+ await context.webdriver
66
+ .actions({
67
+ bridge: true,
68
+ })
69
+ .sendKeys('1')
70
+ .pause(500)
71
+ .sendKeys('2')
72
+ .pause(500)
73
+ .sendKeys('3')
74
+ .pause(500)
75
+ .sendKeys('4')
76
+ .pause(500)
77
+ .perform();
78
+ await context.matchImage(await context.takeScreenshot(), 'External focus and input');
79
+ });
80
+ });
81
+ });
@@ -0,0 +1,28 @@
1
+ import * as CurrencyInputStories from './CurrencyInput.docs.stories.tsx';
2
+ import { Primary, ArgTypes, Stories, Description } from '@storybook/blocks';
3
+ import { Meta } from '../../../.storybook/Meta';
4
+
5
+ <Meta of={CurrencyInputStories} />
6
+
7
+ # CurrencyInput
8
+
9
+ [Компонент в Контур.Гайдах](https://guides.kontur.ru/components/input-fields/currency/)
10
+
11
+ [Компонент в Figma](https://www.figma.com/file/87ScqxPzJpF9DcVBNYWOjM/%E2%9A%A1-Kontur-UI-Modern-Layout?node-id=203%3A1602)
12
+
13
+ <Description />
14
+
15
+ ## Базовый пример
16
+
17
+ <Primary />
18
+
19
+ ## Пропы
20
+
21
+ <details>
22
+ <summary>Открыть таблицу с пропами</summary>
23
+ <ArgTypes />
24
+ </details>
25
+
26
+ ## Примеры использования
27
+
28
+ <Stories title="" includePrimary={false} />