@alphakits/ui 1.30.40 → 1.30.42

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 (673) hide show
  1. package/dist/__internal/utils/clear-text.d.ts +2 -0
  2. package/dist/__internal/utils/clear-text.js +1 -0
  3. package/dist/__internal/utils/getDataTestId.d.ts +2 -0
  4. package/dist/__internal/utils/getDataTestId.js +1 -0
  5. package/dist/__internal/utils/index.d.ts +2 -0
  6. package/dist/__internal/utils/index.js +1 -0
  7. package/dist/amount/component.d.ts +22 -0
  8. package/dist/amount/component.js +1 -0
  9. package/dist/amount/index.d.ts +1 -0
  10. package/dist/amount/index.js +1 -0
  11. package/dist/amount-input/component.d.ts +34 -0
  12. package/dist/amount-input/component.js +1 -0
  13. package/dist/amount-input/index.d.ts +1 -0
  14. package/dist/amount-input/index.js +1 -0
  15. package/dist/amount-input/utils/index.d.ts +3 -0
  16. package/dist/amount-input/utils/index.js +1 -0
  17. package/dist/avatar/component.d.ts +11 -0
  18. package/dist/avatar/component.js +1 -0
  19. package/dist/avatar/index.d.ts +1 -0
  20. package/dist/avatar/index.js +1 -0
  21. package/dist/back-button/component.d.ts +9 -0
  22. package/dist/back-button/component.js +1 -0
  23. package/dist/back-button/index.d.ts +1 -0
  24. package/dist/back-button/index.js +1 -0
  25. package/dist/badge/component.d.ts +14 -0
  26. package/dist/badge/component.js +1 -0
  27. package/dist/badge/index.d.ts +1 -0
  28. package/dist/badge/index.js +1 -0
  29. package/dist/base-card/component.d.ts +23 -0
  30. package/dist/base-card/component.js +1 -0
  31. package/dist/base-card/index.d.ts +1 -0
  32. package/dist/base-card/index.js +1 -0
  33. package/dist/bottom-sheet/component.d.ts +11 -0
  34. package/dist/bottom-sheet/component.js +1 -0
  35. package/dist/bottom-sheet/index.d.ts +1 -0
  36. package/dist/bottom-sheet/index.js +1 -0
  37. package/dist/box/component.d.ts +34 -0
  38. package/dist/box/component.js +1 -0
  39. package/dist/box/index.d.ts +1 -0
  40. package/dist/box/index.js +1 -0
  41. package/dist/button/component.d.ts +21 -0
  42. package/dist/button/component.js +1 -0
  43. package/dist/button/index.d.ts +1 -0
  44. package/dist/button/index.js +1 -0
  45. package/dist/button-arrow/component.d.ts +12 -0
  46. package/dist/button-arrow/component.js +1 -0
  47. package/dist/button-arrow/index.d.ts +1 -0
  48. package/dist/button-arrow/index.js +1 -0
  49. package/dist/calendar/component.d.ts +26 -0
  50. package/dist/calendar/component.js +1 -0
  51. package/dist/calendar/components/days-table/component.d.ts +15 -0
  52. package/dist/calendar/components/days-table/component.js +1 -0
  53. package/dist/calendar/components/days-table/index.d.ts +1 -0
  54. package/dist/calendar/components/days-table/index.js +1 -0
  55. package/dist/calendar/components/header/index.d.ts +1 -0
  56. package/dist/calendar/components/header/index.js +1 -0
  57. package/dist/calendar/components/header//321/201omponent.d.ts +17 -0
  58. package/dist/calendar/components/header//321/201omponent.js +1 -0
  59. package/dist/calendar/components/months-table/index.d.ts +1 -0
  60. package/dist/calendar/components/months-table/index.js +1 -0
  61. package/dist/calendar/components/months-table//321/201omponent.d.ts +11 -0
  62. package/dist/calendar/components/months-table//321/201omponent.js +1 -0
  63. package/dist/calendar/components/select-button/index.d.ts +1 -0
  64. package/dist/calendar/components/select-button/index.js +1 -0
  65. package/dist/calendar/components/select-button//321/201omponent.d.ts +12 -0
  66. package/dist/calendar/components/select-button//321/201omponent.js +1 -0
  67. package/dist/calendar/components/years-table/index.d.ts +1 -0
  68. package/dist/calendar/components/years-table/index.js +1 -0
  69. package/dist/calendar/components/years-table//321/201omponent.d.ts +9 -0
  70. package/dist/calendar/components/years-table//321/201omponent.js +1 -0
  71. package/dist/calendar/index.d.ts +4 -0
  72. package/dist/calendar/index.js +1 -0
  73. package/dist/calendar/typings.d.ts +16 -0
  74. package/dist/calendar/typings.js +1 -0
  75. package/dist/calendar/use-calendar.d.ts +57 -0
  76. package/dist/calendar/use-calendar.js +1 -0
  77. package/dist/calendar/use-period.d.ts +14 -0
  78. package/dist/calendar/use-period.js +1 -0
  79. package/dist/calendar/utils.d.ts +40 -0
  80. package/dist/calendar/utils.js +1 -0
  81. package/dist/calendar-input/component.d.ts +58 -0
  82. package/dist/calendar-input/component.js +1 -0
  83. package/dist/calendar-input/index.d.ts +2 -0
  84. package/dist/calendar-input/index.js +1 -0
  85. package/dist/calendar-input/utils.d.ts +9 -0
  86. package/dist/calendar-input/utils.js +1 -0
  87. package/dist/capitalize-a9bfbe29.js +1 -0
  88. package/dist/card/component.d.ts +14 -0
  89. package/dist/card/component.js +1 -0
  90. package/dist/card/images/index.d.ts +5 -0
  91. package/dist/card/images/index.js +1 -0
  92. package/dist/card/index.d.ts +1 -0
  93. package/dist/card/index.js +1 -0
  94. package/dist/cell/base/component.d.ts +13 -0
  95. package/dist/cell/base/component.js +1 -0
  96. package/dist/cell/component.d.ts +7 -0
  97. package/dist/cell/component.js +1 -0
  98. package/dist/cell/index.d.ts +1 -0
  99. package/dist/cell/index.js +1 -0
  100. package/dist/cell/pure/component.d.ts +15 -0
  101. package/dist/cell/pure/component.js +1 -0
  102. package/dist/cell/pure/index.d.ts +1 -0
  103. package/dist/cell/pure/index.js +1 -0
  104. package/dist/checkbox/component.d.ts +36 -0
  105. package/dist/checkbox/component.js +1 -0
  106. package/dist/checkbox/index.d.ts +1 -0
  107. package/dist/checkbox/index.js +1 -0
  108. package/dist/checkbox-group/component.d.ts +18 -0
  109. package/dist/checkbox-group/component.js +1 -0
  110. package/dist/checkbox-group/index.d.ts +1 -0
  111. package/dist/checkbox-group/index.js +1 -0
  112. package/dist/checkbox-lists/component.d.ts +21 -0
  113. package/dist/checkbox-lists/component.js +1 -0
  114. package/dist/checkbox-lists/index.d.ts +1 -0
  115. package/dist/checkbox-lists/index.js +1 -0
  116. package/dist/checkbox-lists/mock.d.ts +82 -0
  117. package/dist/checkbox-lists/mock.js +1 -0
  118. package/dist/collapsable-row/addons.d.ts +7 -0
  119. package/dist/collapsable-row/addons.js +1 -0
  120. package/dist/collapsable-row/component.d.ts +12 -0
  121. package/dist/collapsable-row/component.js +1 -0
  122. package/dist/collapsable-row/fixtures.d.ts +100 -0
  123. package/dist/collapsable-row/fixtures.js +1 -0
  124. package/dist/collapsable-row/index.d.ts +1 -0
  125. package/dist/collapsable-row/index.js +1 -0
  126. package/dist/collapse/component.d.ts +19 -0
  127. package/dist/collapse/component.js +1 -0
  128. package/dist/collapse/index.d.ts +1 -0
  129. package/dist/collapse/index.js +1 -0
  130. package/dist/colors.module-f96393ec.js +1 -0
  131. package/dist/contact-block-ed9cc9d3.d.ts +8 -0
  132. package/dist/contact-block-ed9cc9d3.js +1 -0
  133. package/dist/copy-button/component.d.ts +9 -0
  134. package/dist/copy-button/component.js +1 -0
  135. package/dist/copy-button/index.d.ts +1 -0
  136. package/dist/copy-button/index.js +1 -0
  137. package/dist/date/component.d.ts +13 -0
  138. package/dist/date/component.js +1 -0
  139. package/dist/date/index.d.ts +1 -0
  140. package/dist/date/index.js +1 -0
  141. package/dist/date-switcher/component.d.ts +11 -0
  142. package/dist/date-switcher/component.js +1 -0
  143. package/dist/date-switcher/index.d.ts +1 -0
  144. package/dist/date-switcher/index.js +1 -0
  145. package/dist/decorated-item/component.d.ts +13 -0
  146. package/dist/decorated-item/component.js +1 -0
  147. package/dist/decorated-item/index.d.ts +1 -0
  148. package/dist/decorated-item/index.js +1 -0
  149. package/dist/divider/component.d.ts +10 -0
  150. package/dist/divider/component.js +1 -0
  151. package/dist/divider/index.d.ts +1 -0
  152. package/dist/divider/index.js +1 -0
  153. package/dist/dot/component.d.ts +7 -0
  154. package/dist/dot/component.js +1 -0
  155. package/dist/dot/index.d.ts +1 -0
  156. package/dist/dot/index.js +1 -0
  157. package/dist/empty-page/component.d.ts +14 -0
  158. package/dist/empty-page/component.js +1 -0
  159. package/dist/empty-page/index.d.ts +1 -0
  160. package/dist/empty-page/index.js +1 -0
  161. package/dist/flex/component.d.ts +24 -0
  162. package/dist/flex/component.js +1 -0
  163. package/dist/flex/index.d.ts +1 -0
  164. package/dist/flex/index.js +1 -0
  165. package/dist/flex-columns/component.d.ts +11 -0
  166. package/dist/flex-columns/component.js +1 -0
  167. package/dist/flex-columns/index.d.ts +1 -0
  168. package/dist/flex-columns/index.js +1 -0
  169. package/dist/footer/component.d.ts +27 -0
  170. package/dist/footer/component.js +1 -0
  171. package/dist/footer/contact-block.d.ts +0 -0
  172. package/dist/footer/contact-block.js +1 -0
  173. package/dist/footer/index.d.ts +1 -0
  174. package/dist/footer/index.js +1 -0
  175. package/dist/form/component.d.ts +3 -0
  176. package/dist/form/component.js +1 -0
  177. package/dist/form/components/form-loading/index.d.ts +4 -0
  178. package/dist/form/components/form-loading/index.js +1 -0
  179. package/dist/form/index.d.ts +1 -0
  180. package/dist/form/index.js +1 -0
  181. package/dist/form/templates/base-form/index.d.ts +17 -0
  182. package/dist/form/templates/base-form/index.js +1 -0
  183. package/dist/form/templates/filters-form/index.d.ts +15 -0
  184. package/dist/form/templates/filters-form/index.js +1 -0
  185. package/dist/form/templates/rest-form/form.d.ts +6 -0
  186. package/dist/form/templates/rest-form/form.js +1 -0
  187. package/dist/form/templates/rest-form/index.d.ts +31 -0
  188. package/dist/form/templates/rest-form/index.js +1 -0
  189. package/dist/form/utils/get-default-values.d.ts +2 -0
  190. package/dist/form/utils/get-default-values.js +1 -0
  191. package/dist/form/utils/remove-undefined-from-object.d.ts +4 -0
  192. package/dist/form/utils/remove-undefined-from-object.js +1 -0
  193. package/dist/form-control/component.d.ts +44 -0
  194. package/dist/form-control/component.js +1 -0
  195. package/dist/form-control/index.d.ts +1 -0
  196. package/dist/form-control/index.js +1 -0
  197. package/dist/grid/col/component.d.ts +16 -0
  198. package/dist/grid/col/component.js +1 -0
  199. package/dist/grid/col/index.d.ts +1 -0
  200. package/dist/grid/col/index.js +1 -0
  201. package/dist/grid/component.d.ts +8 -0
  202. package/dist/grid/component.js +1 -0
  203. package/dist/grid/index.d.ts +1 -0
  204. package/dist/grid/index.js +1 -0
  205. package/dist/grid/row/component.d.ts +14 -0
  206. package/dist/grid/row/component.js +1 -0
  207. package/dist/grid/row/index.d.ts +1 -0
  208. package/dist/grid/row/index.js +1 -0
  209. package/dist/grid/typings.d.ts +16 -0
  210. package/dist/grid/typings.js +1 -0
  211. package/dist/grid/utils/index.d.ts +3 -0
  212. package/dist/grid/utils/index.js +1 -0
  213. package/dist/gutters.module-abc0a059.js +1 -0
  214. package/dist/header-search/component.d.ts +10 -0
  215. package/dist/header-search/component.js +1 -0
  216. package/dist/header-search/index.d.ts +1 -0
  217. package/dist/header-search/index.js +1 -0
  218. package/dist/hooks/index.d.ts +5 -0
  219. package/dist/hooks/index.js +1 -0
  220. package/dist/hooks/use-crud-form-requests/index.d.ts +17 -0
  221. package/dist/hooks/use-crud-form-requests/index.js +1 -0
  222. package/dist/hooks/use-get-one/index.d.ts +8 -0
  223. package/dist/hooks/use-get-one/index.js +1 -0
  224. package/dist/hooks/useClickOutside/index.d.ts +4 -0
  225. package/dist/hooks/useClickOutside/index.js +1 -0
  226. package/dist/hooks/useFocus/index.d.ts +5 -0
  227. package/dist/hooks/useFocus/index.js +1 -0
  228. package/dist/hooks/usePrevious/index.d.ts +2 -0
  229. package/dist/hooks/usePrevious/index.js +1 -0
  230. package/dist/icon-button/component.d.ts +20 -0
  231. package/dist/icon-button/component.js +1 -0
  232. package/dist/icon-button/index.d.ts +1 -0
  233. package/dist/icon-button/index.js +1 -0
  234. package/dist/image/component.d.ts +5 -0
  235. package/dist/image/component.js +1 -0
  236. package/dist/image/image-base.d.ts +6 -0
  237. package/dist/image/image-base.js +1 -0
  238. package/dist/image/index.d.ts +2 -0
  239. package/dist/image/index.js +1 -0
  240. package/dist/image/types.d.ts +27 -0
  241. package/dist/image/types.js +1 -0
  242. package/dist/image/use-image-render-component.d.ts +0 -0
  243. package/dist/image/use-image-render-component.js +1 -0
  244. package/dist/image/utils.d.ts +2 -0
  245. package/dist/image/utils.js +1 -0
  246. package/dist/image-gallery/component.d.ts +11 -0
  247. package/dist/image-gallery/component.js +1 -0
  248. package/dist/image-gallery/index.d.ts +1 -0
  249. package/dist/image-gallery/index.js +1 -0
  250. package/dist/image-uploader/component.d.ts +25 -0
  251. package/dist/image-uploader/component.js +1 -0
  252. package/dist/image-uploader/index.d.ts +1 -0
  253. package/dist/image-uploader/index.js +1 -0
  254. package/dist/index.css +1 -0
  255. package/dist/index.ts +93 -0
  256. package/dist/info-block-header/component.d.ts +8 -0
  257. package/dist/info-block-header/component.js +1 -0
  258. package/dist/info-block-header/index.d.ts +1 -0
  259. package/dist/info-block-header/index.js +1 -0
  260. package/dist/info-block-item/component.d.ts +12 -0
  261. package/dist/info-block-item/component.js +1 -0
  262. package/dist/info-block-item/index.d.ts +1 -0
  263. package/dist/info-block-item/index.js +1 -0
  264. package/dist/info-block-wrapper/component.d.ts +8 -0
  265. package/dist/info-block-wrapper/component.js +1 -0
  266. package/dist/info-block-wrapper/index.d.ts +1 -0
  267. package/dist/info-block-wrapper/index.js +1 -0
  268. package/dist/input/component.d.ts +68 -0
  269. package/dist/input/component.js +1 -0
  270. package/dist/input/index.d.ts +1 -0
  271. package/dist/input/index.js +1 -0
  272. package/dist/input-autocomplete/autocomplete-field/index.d.ts +6 -0
  273. package/dist/input-autocomplete/autocomplete-field/index.js +1 -0
  274. package/dist/input-autocomplete/component.d.ts +86 -0
  275. package/dist/input-autocomplete/component.js +1 -0
  276. package/dist/input-autocomplete/index.d.ts +1 -0
  277. package/dist/input-autocomplete/index.js +1 -0
  278. package/dist/input-ghost/component.d.ts +12 -0
  279. package/dist/input-ghost/component.js +1 -0
  280. package/dist/input-ghost/index.d.ts +1 -0
  281. package/dist/input-ghost/index.js +1 -0
  282. package/dist/isSymbol-98d98352.js +1 -0
  283. package/dist/link/component.d.ts +29 -0
  284. package/dist/link/component.js +1 -0
  285. package/dist/link/index.d.ts +1 -0
  286. package/dist/link/index.js +1 -0
  287. package/dist/list-allert/component.d.ts +10 -0
  288. package/dist/list-allert/component.js +1 -0
  289. package/dist/list-allert/index.d.ts +1 -0
  290. package/dist/list-allert/index.js +1 -0
  291. package/dist/loader/component.d.ts +8 -0
  292. package/dist/loader/component.js +1 -0
  293. package/dist/loader/index.d.ts +1 -0
  294. package/dist/loader/index.js +1 -0
  295. package/dist/masked-input/component.d.ts +45 -0
  296. package/dist/masked-input/component.js +1 -0
  297. package/dist/masked-input/index.d.ts +1 -0
  298. package/dist/masked-input/index.js +1 -0
  299. package/dist/menu/component.d.ts +25 -0
  300. package/dist/menu/component.js +1 -0
  301. package/dist/menu/components/content-header/index.d.ts +8 -0
  302. package/dist/menu/components/content-header/index.js +1 -0
  303. package/dist/menu/components/index.d.ts +5 -0
  304. package/dist/menu/components/index.js +1 -0
  305. package/dist/menu/components/menu-avatar/index.d.ts +10 -0
  306. package/dist/menu/components/menu-avatar/index.js +1 -0
  307. package/dist/menu/components/menu-back-button/index.d.ts +8 -0
  308. package/dist/menu/components/menu-back-button/index.js +1 -0
  309. package/dist/menu/components/menu-button/index.d.ts +13 -0
  310. package/dist/menu/components/menu-button/index.js +1 -0
  311. package/dist/menu/components/menu-buttons-list/index.d.ts +13 -0
  312. package/dist/menu/components/menu-buttons-list/index.js +1 -0
  313. package/dist/menu/components/user-button/index.d.ts +10 -0
  314. package/dist/menu/components/user-button/index.js +1 -0
  315. package/dist/menu/hooks/use-menu.d.ts +8 -0
  316. package/dist/menu/hooks/use-menu.js +1 -0
  317. package/dist/menu/index.d.ts +1 -0
  318. package/dist/menu/index.js +1 -0
  319. package/dist/message/component.d.ts +16 -0
  320. package/dist/message/component.js +1 -0
  321. package/dist/message/index.d.ts +1 -0
  322. package/dist/message/index.js +1 -0
  323. package/dist/modal/components/modals/index.d.ts +9 -0
  324. package/dist/modal/components/modals/index.js +1 -0
  325. package/dist/modal/components/modals/modal.d.ts +10 -0
  326. package/dist/modal/components/modals/modal.js +1 -0
  327. package/dist/modal/context.d.ts +10 -0
  328. package/dist/modal/context.js +1 -0
  329. package/dist/modal/hooks/use-modal.d.ts +12 -0
  330. package/dist/modal/hooks/use-modal.js +1 -0
  331. package/dist/modal/index.d.ts +2 -0
  332. package/dist/modal/index.js +1 -0
  333. package/dist/modal/types.d.ts +27 -0
  334. package/dist/modal/types.js +1 -0
  335. package/dist/modal/utils/delete-property-by-id.d.ts +4 -0
  336. package/dist/modal/utils/delete-property-by-id.js +1 -0
  337. package/dist/modal/utils/is-last.d.ts +2 -0
  338. package/dist/modal/utils/is-last.js +1 -0
  339. package/dist/mq/component.d.ts +11 -0
  340. package/dist/mq/component.js +1 -0
  341. package/dist/mq/index.d.ts +2 -0
  342. package/dist/mq/index.js +1 -0
  343. package/dist/mq/use-match-media.d.ts +2 -0
  344. package/dist/mq/use-match-media.js +1 -0
  345. package/dist/mq/utils.d.ts +5 -0
  346. package/dist/mq/utils.js +1 -0
  347. package/dist/notification/component.d.ts +35 -0
  348. package/dist/notification/component.js +1 -0
  349. package/dist/notification/index.d.ts +1 -0
  350. package/dist/notification/index.js +1 -0
  351. package/dist/notification/utils/index.d.ts +4 -0
  352. package/dist/notification/utils/index.js +1 -0
  353. package/dist/padding/component.d.ts +9 -0
  354. package/dist/padding/component.js +1 -0
  355. package/dist/padding/index.d.ts +1 -0
  356. package/dist/padding/index.js +1 -0
  357. package/dist/page-container/component.d.ts +15 -0
  358. package/dist/page-container/component.js +1 -0
  359. package/dist/page-container/index.d.ts +1 -0
  360. package/dist/page-container/index.js +1 -0
  361. package/dist/page-loading/component.d.ts +3 -0
  362. package/dist/page-loading/component.js +1 -0
  363. package/dist/page-loading/index.d.ts +1 -0
  364. package/dist/page-loading/index.js +1 -0
  365. package/dist/page-with-controls/component.d.ts +24 -0
  366. package/dist/page-with-controls/component.js +1 -0
  367. package/dist/page-with-controls/index.d.ts +1 -0
  368. package/dist/page-with-controls/index.js +1 -0
  369. package/dist/picker-button/common/index.d.ts +1 -0
  370. package/dist/picker-button/common/index.js +1 -0
  371. package/dist/picker-button/common/labeled-button/index.d.ts +12 -0
  372. package/dist/picker-button/common/labeled-button/index.js +1 -0
  373. package/dist/picker-button/component.d.ts +16 -0
  374. package/dist/picker-button/component.js +1 -0
  375. package/dist/picker-button/field/Component.d.ts +11 -0
  376. package/dist/picker-button/field/Component.js +1 -0
  377. package/dist/picker-button/field/index.d.ts +1 -0
  378. package/dist/picker-button/field/index.js +1 -0
  379. package/dist/picker-button/index.d.ts +2 -0
  380. package/dist/picker-button/index.js +1 -0
  381. package/dist/popover/component.d.ts +28 -0
  382. package/dist/popover/component.js +1 -0
  383. package/dist/popover/index.d.ts +1 -0
  384. package/dist/popover/index.js +1 -0
  385. package/dist/portal/component.d.ts +7 -0
  386. package/dist/portal/component.js +1 -0
  387. package/dist/portal/index.d.ts +1 -0
  388. package/dist/portal/index.js +1 -0
  389. package/dist/portal/utils.d.ts +5 -0
  390. package/dist/portal/utils.js +1 -0
  391. package/dist/progress-bar/component.d.ts +11 -0
  392. package/dist/progress-bar/component.js +1 -0
  393. package/dist/progress-bar/index.d.ts +1 -0
  394. package/dist/progress-bar/index.js +1 -0
  395. package/dist/progress-index/component.d.ts +11 -0
  396. package/dist/progress-index/component.js +1 -0
  397. package/dist/progress-index/index.d.ts +1 -0
  398. package/dist/progress-index/index.js +1 -0
  399. package/dist/radio/component.d.ts +40 -0
  400. package/dist/radio/component.js +1 -0
  401. package/dist/radio/index.d.ts +1 -0
  402. package/dist/radio/index.js +1 -0
  403. package/dist/radio-group/component.d.ts +18 -0
  404. package/dist/radio-group/component.js +1 -0
  405. package/dist/radio-group/index.d.ts +1 -0
  406. package/dist/radio-group/index.js +1 -0
  407. package/dist/radio-groups/component.d.ts +19 -0
  408. package/dist/radio-groups/component.js +1 -0
  409. package/dist/radio-groups/index.d.ts +1 -0
  410. package/dist/radio-groups/index.js +1 -0
  411. package/dist/radio-groups/mock.d.ts +10 -0
  412. package/dist/radio-groups/mock.js +1 -0
  413. package/dist/section-wrapper/component.d.ts +12 -0
  414. package/dist/section-wrapper/component.js +1 -0
  415. package/dist/section-wrapper/index.d.ts +1 -0
  416. package/dist/section-wrapper/index.js +1 -0
  417. package/dist/select/component.d.ts +32 -0
  418. package/dist/select/component.js +1 -0
  419. package/dist/select/components/arrow/component.d.ts +4 -0
  420. package/dist/select/components/arrow/component.js +1 -0
  421. package/dist/select/components/arrow/index.d.ts +1 -0
  422. package/dist/select/components/arrow/index.js +1 -0
  423. package/dist/select/components/base-select/component.d.ts +5 -0
  424. package/dist/select/components/base-select/component.js +1 -0
  425. package/dist/select/components/base-select/index.d.ts +1 -0
  426. package/dist/select/components/base-select/index.js +1 -0
  427. package/dist/select/components/checkmark/component.d.ts +4 -0
  428. package/dist/select/components/checkmark/component.js +1 -0
  429. package/dist/select/components/checkmark/index.d.ts +1 -0
  430. package/dist/select/components/checkmark/index.js +1 -0
  431. package/dist/select/components/field/component.d.ts +5 -0
  432. package/dist/select/components/field/component.js +1 -0
  433. package/dist/select/components/field/index.d.ts +1 -0
  434. package/dist/select/components/field/index.js +1 -0
  435. package/dist/select/components/index.d.ts +7 -0
  436. package/dist/select/components/index.js +1 -0
  437. package/dist/select/components/native-select/component.d.ts +13 -0
  438. package/dist/select/components/native-select/component.js +1 -0
  439. package/dist/select/components/native-select/index.d.ts +1 -0
  440. package/dist/select/components/native-select/index.js +1 -0
  441. package/dist/select/components/optgroup/component.d.ts +4 -0
  442. package/dist/select/components/optgroup/component.js +1 -0
  443. package/dist/select/components/optgroup/index.d.ts +1 -0
  444. package/dist/select/components/optgroup/index.js +1 -0
  445. package/dist/select/components/option/component.d.ts +4 -0
  446. package/dist/select/components/option/component.js +1 -0
  447. package/dist/select/components/option/index.d.ts +1 -0
  448. package/dist/select/components/option/index.js +1 -0
  449. package/dist/select/components/options-list/component.d.ts +5 -0
  450. package/dist/select/components/options-list/component.js +1 -0
  451. package/dist/select/components/options-list/index.d.ts +1 -0
  452. package/dist/select/components/options-list/index.js +1 -0
  453. package/dist/select/components/select-search/index.d.ts +11 -0
  454. package/dist/select/components/select-search/index.js +1 -0
  455. package/dist/select/components/virtual-options-list/component.d.ts +7 -0
  456. package/dist/select/components/virtual-options-list/component.js +1 -0
  457. package/dist/select/components/virtual-options-list/index.d.ts +1 -0
  458. package/dist/select/components/virtual-options-list/index.js +1 -0
  459. package/dist/select/index.d.ts +5 -0
  460. package/dist/select/index.js +1 -0
  461. package/dist/select/presets/index.d.ts +2 -0
  462. package/dist/select/presets/index.js +1 -0
  463. package/dist/select/presets/use-lazy-loading/index.d.ts +45 -0
  464. package/dist/select/presets/use-lazy-loading/index.js +1 -0
  465. package/dist/select/presets/use-select-with-loading/hook.d.ts +11 -0
  466. package/dist/select/presets/use-select-with-loading/hook.js +1 -0
  467. package/dist/select/typings.d.ts +159 -0
  468. package/dist/select/typings.js +1 -0
  469. package/dist/select/utils.d.ts +34 -0
  470. package/dist/select/utils.js +1 -0
  471. package/dist/sidepanel/component.d.ts +24 -0
  472. package/dist/sidepanel/component.js +1 -0
  473. package/dist/sidepanel/index.d.ts +1 -0
  474. package/dist/sidepanel/index.js +1 -0
  475. package/dist/sidepanel-header/component.d.ts +21 -0
  476. package/dist/sidepanel-header/component.js +1 -0
  477. package/dist/sidepanel-header/index.d.ts +1 -0
  478. package/dist/sidepanel-header/index.js +1 -0
  479. package/dist/skeleton/component.d.ts +11 -0
  480. package/dist/skeleton/component.js +1 -0
  481. package/dist/skeleton/index.d.ts +1 -0
  482. package/dist/skeleton/index.js +1 -0
  483. package/dist/space/Item.d.ts +16 -0
  484. package/dist/space/Item.js +1 -0
  485. package/dist/space/component.d.ts +17 -0
  486. package/dist/space/component.js +1 -0
  487. package/dist/space/index.d.ts +1 -0
  488. package/dist/space/index.js +1 -0
  489. package/dist/space/utils.d.ts +11 -0
  490. package/dist/space/utils.js +1 -0
  491. package/dist/spinner/component.d.ts +11 -0
  492. package/dist/spinner/component.js +1 -0
  493. package/dist/spinner/index.d.ts +1 -0
  494. package/dist/spinner/index.js +1 -0
  495. package/dist/stack/component.d.ts +7 -0
  496. package/dist/stack/component.js +1 -0
  497. package/dist/stack/context.d.ts +10 -0
  498. package/dist/stack/context.js +1 -0
  499. package/dist/stack/index.d.ts +2 -0
  500. package/dist/stack/index.js +1 -0
  501. package/dist/status/component.d.ts +11 -0
  502. package/dist/status/component.js +1 -0
  503. package/dist/status/index.d.ts +1 -0
  504. package/dist/status/index.js +1 -0
  505. package/dist/step-bar-35269c17.d.ts +8 -0
  506. package/dist/step-bar-35269c17.js +1 -0
  507. package/dist/stepped-progress-bar/components/step-bar.d.ts +0 -0
  508. package/dist/stepped-progress-bar/components/step-bar.js +1 -0
  509. package/dist/stepped-progress-bar/index.d.ts +23 -0
  510. package/dist/stepped-progress-bar/index.js +1 -0
  511. package/dist/sticker/component.d.ts +10 -0
  512. package/dist/sticker/component.js +1 -0
  513. package/dist/sticker/index.d.ts +1 -0
  514. package/dist/sticker/index.js +1 -0
  515. package/dist/suffix-input/component.d.ts +22 -0
  516. package/dist/suffix-input/component.js +1 -0
  517. package/dist/suffix-input/index.d.ts +1 -0
  518. package/dist/suffix-input/index.js +1 -0
  519. package/dist/super-list-header/component.d.ts +10 -0
  520. package/dist/super-list-header/component.js +1 -0
  521. package/dist/super-list-header/index.d.ts +1 -0
  522. package/dist/super-list-header/index.js +1 -0
  523. package/dist/super-list-item/component.d.ts +14 -0
  524. package/dist/super-list-item/component.js +1 -0
  525. package/dist/super-list-item/index.d.ts +1 -0
  526. package/dist/super-list-item/index.js +1 -0
  527. package/dist/switch/component.d.ts +33 -0
  528. package/dist/switch/component.js +1 -0
  529. package/dist/switch/index.d.ts +1 -0
  530. package/dist/switch/index.js +1 -0
  531. package/dist/table/columns.d.ts +7 -0
  532. package/dist/table/columns.js +1 -0
  533. package/dist/table/component.d.ts +7 -0
  534. package/dist/table/component.js +1 -0
  535. package/dist/table/components/cell/component.d.ts +18 -0
  536. package/dist/table/components/cell/component.js +1 -0
  537. package/dist/table/components/cell/index.d.ts +1 -0
  538. package/dist/table/components/cell/index.js +1 -0
  539. package/dist/table/components/cells/index.d.ts +10 -0
  540. package/dist/table/components/cells/index.js +1 -0
  541. package/dist/table/components/empty-list/index.d.ts +5 -0
  542. package/dist/table/components/empty-list/index.js +1 -0
  543. package/dist/table/components/error/index.d.ts +5 -0
  544. package/dist/table/components/error/index.js +1 -0
  545. package/dist/table/components/loading/index.d.ts +7 -0
  546. package/dist/table/components/loading/index.js +1 -0
  547. package/dist/table/components/pagination/index.d.ts +12 -0
  548. package/dist/table/components/pagination/index.js +1 -0
  549. package/dist/table/components/table-header/index.d.ts +20 -0
  550. package/dist/table/components/table-header/index.js +1 -0
  551. package/dist/table/hooks/use-table-data.d.ts +20 -0
  552. package/dist/table/hooks/use-table-data.js +1 -0
  553. package/dist/table/index.d.ts +2 -0
  554. package/dist/table/index.js +1 -0
  555. package/dist/table/languages/index.d.ts +2 -0
  556. package/dist/table/languages/index.js +1 -0
  557. package/dist/table/table.d.ts +39 -0
  558. package/dist/table/table.js +1 -0
  559. package/dist/table/types.d.ts +75 -0
  560. package/dist/table/types.js +1 -0
  561. package/dist/table/utils/add-query-param.d.ts +3 -0
  562. package/dist/table/utils/add-query-param.js +1 -0
  563. package/dist/table/utils/get-query-from-url.d.ts +3 -0
  564. package/dist/table/utils/get-query-from-url.js +1 -0
  565. package/dist/table/utils/get-tags.d.ts +10 -0
  566. package/dist/table/utils/get-tags.js +1 -0
  567. package/dist/table/utils/index.d.ts +8 -0
  568. package/dist/table/utils/index.js +1 -0
  569. package/dist/table/utils/is-object.d.ts +2 -0
  570. package/dist/table/utils/is-object.js +1 -0
  571. package/dist/table/utils/parse-query-params.d.ts +2 -0
  572. package/dist/table/utils/parse-query-params.js +1 -0
  573. package/dist/table/utils/prepare-rows.d.ts +12 -0
  574. package/dist/table/utils/prepare-rows.js +1 -0
  575. package/dist/table/utils/query-adapter.d.ts +2 -0
  576. package/dist/table/utils/query-adapter.js +1 -0
  577. package/dist/table/utils/remove-query-param.d.ts +2 -0
  578. package/dist/table/utils/remove-query-param.js +1 -0
  579. package/dist/table/utils/reset-query-param.d.ts +4 -0
  580. package/dist/table/utils/reset-query-param.js +1 -0
  581. package/dist/table/utils/serialize-data.d.ts +3 -0
  582. package/dist/table/utils/serialize-data.js +1 -0
  583. package/dist/table/utils/set-query-to-url.d.ts +2 -0
  584. package/dist/table/utils/set-query-to-url.js +1 -0
  585. package/dist/table/utils/sort-array.d.ts +2 -0
  586. package/dist/table/utils/sort-array.js +1 -0
  587. package/dist/table-status/component.d.ts +9 -0
  588. package/dist/table-status/component.js +1 -0
  589. package/dist/table-status/index.d.ts +1 -0
  590. package/dist/table-status/index.js +1 -0
  591. package/dist/tag/component.d.ts +17 -0
  592. package/dist/tag/component.js +1 -0
  593. package/dist/tag/index.d.ts +1 -0
  594. package/dist/tag/index.js +1 -0
  595. package/dist/tags-list/component.d.ts +10 -0
  596. package/dist/tags-list/component.js +1 -0
  597. package/dist/tags-list/index.d.ts +1 -0
  598. package/dist/tags-list/index.js +1 -0
  599. package/dist/textarea/component.d.ts +60 -0
  600. package/dist/textarea/component.js +1 -0
  601. package/dist/textarea/index.d.ts +1 -0
  602. package/dist/textarea/index.js +1 -0
  603. package/dist/theme-provider/component.d.ts +20 -0
  604. package/dist/theme-provider/component.js +1 -0
  605. package/dist/theme-provider/default-themes.d.ts +165 -0
  606. package/dist/theme-provider/default-themes.js +1 -0
  607. package/dist/theme-provider/index.d.ts +2 -0
  608. package/dist/theme-provider/index.js +1 -0
  609. package/dist/toast/component.d.ts +29 -0
  610. package/dist/toast/component.js +1 -0
  611. package/dist/toast/index.d.ts +1 -0
  612. package/dist/toast/index.js +1 -0
  613. package/dist/toast-notifier/component.d.ts +12 -0
  614. package/dist/toast-notifier/component.js +1 -0
  615. package/dist/toast-notifier/index.d.ts +1 -0
  616. package/dist/toast-notifier/index.js +1 -0
  617. package/dist/toast-notifier/use-timer.d.ts +7 -0
  618. package/dist/toast-notifier/use-timer.js +1 -0
  619. package/dist/toast-plate/component.d.ts +30 -0
  620. package/dist/toast-plate/component.js +1 -0
  621. package/dist/toast-plate/index.d.ts +1 -0
  622. package/dist/toast-plate/index.js +1 -0
  623. package/dist/tooltip/component.d.ts +23 -0
  624. package/dist/tooltip/component.js +1 -0
  625. package/dist/tooltip/index.d.ts +1 -0
  626. package/dist/tooltip/index.js +1 -0
  627. package/dist/typings/api.d.ts +18 -0
  628. package/dist/typings/api.js +1 -0
  629. package/dist/typography/colors.d.ts +3 -0
  630. package/dist/typography/colors.js +1 -0
  631. package/dist/typography/component.d.ts +8 -0
  632. package/dist/typography/component.js +1 -0
  633. package/dist/typography/index.d.ts +1 -0
  634. package/dist/typography/index.js +1 -0
  635. package/dist/typography/text/component.d.ts +17 -0
  636. package/dist/typography/text/component.js +1 -0
  637. package/dist/typography/text/index.d.ts +1 -0
  638. package/dist/typography/text/index.js +1 -0
  639. package/dist/typography/title/component.d.ts +22 -0
  640. package/dist/typography/title/component.js +1 -0
  641. package/dist/typography/title/index.d.ts +4 -0
  642. package/dist/typography/title/index.js +1 -0
  643. package/dist/use-image-render-component-5c5e30dc.d.ts +13 -0
  644. package/dist/use-image-render-component-5c5e30dc.js +1 -0
  645. package/dist/utils/data/currency-codes.d.ts +35 -0
  646. package/dist/utils/data/currency-codes.js +1 -0
  647. package/dist/utils/format-amount/util.d.ts +12 -0
  648. package/dist/utils/format-amount/util.js +1 -0
  649. package/dist/utils/format-date/index.d.ts +21 -0
  650. package/dist/utils/format-date/index.js +1 -0
  651. package/dist/utils/get-currency-symbol/util.d.ts +2 -0
  652. package/dist/utils/get-currency-symbol/util.js +1 -0
  653. package/dist/utils/get-service-error/index.d.ts +21 -0
  654. package/dist/utils/get-service-error/index.js +1 -0
  655. package/dist/utils/get-service-error/is-axios-error.d.ts +3 -0
  656. package/dist/utils/get-service-error/is-axios-error.js +1 -0
  657. package/dist/utils/get-service-error/is-network-error.d.ts +2 -0
  658. package/dist/utils/get-service-error/is-network-error.js +1 -0
  659. package/dist/utils/index.d.ts +4 -0
  660. package/dist/utils/index.js +1 -0
  661. package/dist/utils/show-toast/index.d.ts +3 -0
  662. package/dist/utils/show-toast/index.js +1 -0
  663. package/dist/utils/split-amount/util.d.ts +2 -0
  664. package/dist/utils/split-amount/util.js +1 -0
  665. package/dist/welcome-layout/component.d.ts +10 -0
  666. package/dist/welcome-layout/component.js +1 -0
  667. package/dist/welcome-layout/index.d.ts +1 -0
  668. package/dist/welcome-layout/index.js +1 -0
  669. package/dist/with-suffix/component.d.ts +44 -0
  670. package/dist/with-suffix/component.js +1 -0
  671. package/dist/with-suffix/index.d.ts +1 -0
  672. package/dist/with-suffix/index.js +1 -0
  673. package/package.json +1 -1
@@ -0,0 +1,13 @@
1
+ /// <reference types="react" />
2
+ import React from 'react';
3
+ import { ComponentSizes, ImageProps } from "./image/types";
4
+ type UseImageRenderComponent = {
5
+ src?: string;
6
+ size: ComponentSizes;
7
+ alt?: string;
8
+ text?: string;
9
+ icon?: React.ReactNode;
10
+ color?: ImageProps['color'];
11
+ };
12
+ declare const useImageRenderComponent: ({ src, size, color, alt, text, icon, }: UseImageRenderComponent) => {};
13
+ export { UseImageRenderComponent, useImageRenderComponent };
@@ -0,0 +1 @@
1
+ import e,{useRef as o,useEffect as n}from"react";import d from"@alphakits/icons/dist/PhotoM";import t from"@alphakits/icons/dist/PhotoS";import i from"classnames";import{Spinner as _}from"./spinner/component.js";import{Typography as l}from"./typography/component.js";import{textSizes as a}from"./image/types.js";import{getCharsFromText as r}from"./image/utils.js";var m={container:"index-module_container__bgmJ2",component:"index-module_component__Jf39Y",border:"index-module_border__3eTFR",addon:"index-module_addon__fLNNt",filled:"index-module_filled__-OKoH",default:"index-module_default__7yCk8",primary:"index-module_primary__NmfOf",secondary:"index-module_secondary__mFC44",thirdly:"index-module_thirdly__QoVoR",positive:"index-module_positive__KObTG",negative:"index-module_negative__JSntK",attention:"index-module_attention__xn0w7",accent:"index-module_accent__OKgO0",broken:"index-module_broken__U-IUD",image:"index-module_image__m6QQ3",hint:"index-module_hint__U93qq",hint_text:"index-module_hint_text__iACDk",textContent:"index-module_textContent__zwpfH",xs:"index-module_xs__WMoNb",s:"index-module_s__Hg5M9",m:"index-module_m__C8KqW",l:"index-module_l__bAVTF",xl:"index-module_xl__4V4rQ",auto:"index-module_auto__UzBuJ",xxl:"index-module_xxl__CbPtC",circle:"index-module_circle__a7zSR",ellipse:"index-module_ellipse__omc91",defs:"index-module_defs__-U1g-",textS:"index-module_textS__rn-Mq",textXs:"index-module_textXs__qpkPR",textM:"index-module_textM__mXb7s",textL:"index-module_textL__jV-69","addon-positive":"index-module_addon-positive__YNhNe","addon-negative":"index-module_addon-negative__XjAPo","addon-attention":"index-module_addon-attention__zeb5R","addon-accent":"index-module_addon-accent__pBWXg","addon-primary":"index-module_addon-primary__p-a27","addon-secondary":"index-module_addon-secondary__PYOhn","addon-thirdly":"index-module_addon-thirdly__0zlRh"},x={xs:"300x300",s:"300x300",m:"300x300",l:"300x300",xl:"300x300",xxl:"640x640",auto:"640x640"},s=function(s){var u=s.src,c=void 0===u?"":u,p=s.size,f=s.color,g=s.alt,v=s.text,h=s.icon,y=e.useState("loading"),b=y[0],w=y[1],z=o(0),C=function(e){var o=e.src,n=e.size;if((null==o?void 0:o.includes("escapenavigator-images.s3"))&&n){var d=o.split("amazonaws.com/")[1];return"https://d2z3luly8bezbw.cloudfront.net/fit-in/"+x[n]+"/"+d}return o}({src:c,size:p});return n((function(){if(C){z.current=Date.now(),w("loading");var e=new Image;e.src=C,e.onload=function(){w("loaded")},e.onerror=function(){Date.now()-z.current<2e3?setTimeout((function(){e.src=C}),500):w("error")}}else w("error")}),[C,p]),h||("loading"===b?e.createElement(_,{className:m.spinner,size:"s",view:"dark"}):"error"===b&&v?e.createElement(l.Text,{className:i(m.textContent,m[a[p]]),view:"caps",color:f,weight:"bold"},r(v.toUpperCase())):"error"===b?e.createElement(l.Text,{className:m.broken,tag:"div",view:"caps",color:f,weight:"bold"},"xs"===p?e.createElement(t,null):e.createElement(d,null)):e.createElement("img",{className:m.image,src:C,alt:g}))};export{m as s,s as u};
@@ -0,0 +1,35 @@
1
+ declare const CURRENCY_SYMBOLS: {
2
+ EUR: string;
3
+ RUR: string;
4
+ RUB: string;
5
+ USD: string;
6
+ GBP: string;
7
+ CHF: string;
8
+ SEK: string;
9
+ DKK: string;
10
+ NOK: string;
11
+ CZK: string;
12
+ PLN: string;
13
+ HUF: string;
14
+ RSD: string;
15
+ BGN: string;
16
+ HRK: string;
17
+ RON: string;
18
+ MKD: string;
19
+ BAM: string;
20
+ ALL: string;
21
+ ISK: string;
22
+ UAH: string;
23
+ BYN: string;
24
+ MDL: string;
25
+ GEL: string;
26
+ TRY: string;
27
+ CAD: string;
28
+ AUD: string;
29
+ ILS: string;
30
+ };
31
+ type CurrencyCodes = keyof typeof CURRENCY_SYMBOLS;
32
+ declare const currency: {
33
+ CURRENCY_SYMBOLS: typeof CURRENCY_SYMBOLS;
34
+ };
35
+ export { CurrencyCodes, currency };
@@ -0,0 +1 @@
1
+ var K={CURRENCY_SYMBOLS:{EUR:"€",RUR:"₽",RUB:"₽",USD:"$",GBP:"£",CHF:"CHF",SEK:"kr",DKK:"kr",NOK:"kr",CZK:"Kč",PLN:"zł",HUF:"Ft",RSD:"Дин",BGN:"лв",HRK:"kn",RON:"lei",MKD:"ден",BAM:"KM",ALL:"L",ISK:"kr",UAH:"₴",BYN:"Br",MDL:"L",GEL:"₾",TRY:"₺",CAD:"C$",AUD:"$",ILS:"₪"}};export{K as currency};
@@ -0,0 +1,12 @@
1
+ import { AmountProps } from "../../amount/index";
2
+ declare const THINSP: string;
3
+ declare const AMOUNT_MAJOR_MINOR_PARTS_SEPARATOR = ",";
4
+ type AmountValueType = 'default' | 'decimal';
5
+ declare const formatAmount: ({ value, currency, showMinorPart, type, }: Pick<AmountProps, 'value' | 'currency' | 'showMinorPart' | 'type'>) => {
6
+ majorPart: string;
7
+ minorPart: string | null;
8
+ currencySymbol: string | undefined;
9
+ formatted: string;
10
+ formattedWithCurrency: string;
11
+ };
12
+ export { THINSP, AMOUNT_MAJOR_MINOR_PARTS_SEPARATOR, AmountValueType, formatAmount };
@@ -0,0 +1 @@
1
+ import{currency as r}from"../data/currency-codes.js";import{getCurrencySymbol as t}from"../get-currency-symbol/util.js";import{splitAmount as e}from"../split-amount/util.js";var n=String.fromCharCode(8201),o=",",a=function(r,t,e){var n=function(r){return r?r.length>2?r.slice(0,2):r.length<2?r+"0":r:"00"}(r);return e||"00"!==n?e||"0"!==n[1]?"00"!==n||t?n:null:n.slice(0,1):null},u=function(o){var u=o.value,i=o.currency,l=o.showMinorPart,c=o.type,m=!!i&&!!r.CURRENCY_SYMBOLS[i],f=m?t(i):i;if(null===u)return{majorPart:"",minorPart:"",formatted:"",currencySymbol:f,formattedWithCurrency:n+f};var s="default"===c?(""+u).split("."):[(""+u).slice(0,-2),(""+u).slice(-2)],y=s[0],d=s[1],h=e(""+Math.abs(+y||0),3,n,4),p=u<0?"−"+h:h,C=d?p+","+d:p;return{majorPart:p,minorPart:a(d,l,m),currencySymbol:f,formatted:C,formattedWithCurrency:C+n+f}};export{o as AMOUNT_MAJOR_MINOR_PARTS_SEPARATOR,n as THINSP,u as formatAmount};
@@ -0,0 +1,21 @@
1
+ type FormatDateOptions = {
2
+ time?: string;
3
+ format?: string;
4
+ lang?: any;
5
+ };
6
+ declare const locales: {
7
+ readonly ru: Locale;
8
+ readonly de: Locale;
9
+ readonly en: Locale;
10
+ readonly pl: Locale;
11
+ readonly et: Locale;
12
+ readonly fr: Locale;
13
+ readonly it: Locale;
14
+ readonly pt: Locale;
15
+ readonly es: Locale;
16
+ readonly el: Locale;
17
+ readonly nl: Locale;
18
+ readonly cs: Locale;
19
+ };
20
+ declare const formatDate: (date: Date | number | string, { time, format, lang }: FormatDateOptions) => string;
21
+ export { locales, formatDate };
@@ -0,0 +1 @@
1
+ import{parse as e,format as t}from"date-fns";import o from"date-fns/esm/locale/cs";import l from"date-fns/esm/locale/de";import r from"date-fns/esm/locale/en-GB";import m from"date-fns/esm/locale/pl";import a from"date-fns/esm/locale/ru";import f from"date-fns/locale/el";import n from"date-fns/locale/es";import i from"date-fns/locale/et";import d from"date-fns/locale/fr";import s from"date-fns/locale/it";import p from"date-fns/locale/nl";import c from"date-fns/locale/pt";var y={ru:a,de:l,en:r,pl:m,et:i,fr:d,it:s,pt:c,es:n,el:f,nl:p,cs:o},u=function(o,l){var r,m,a=l.time,f=l.format,n=void 0===f?"dd MMMM yyyy, HH:mm":f,i=l.lang;if(!o)return"-";try{if("number"==typeof o||"object"==typeof o||o.includes("Z"))m=new Date(o);else{var d=3===o.split("-").length?"yyyy-MM-dd":"dd.MM.yyyy",s=a?" "+a.split(":")[0]+":"+a.split(":")[1]:"";s&&(d+=" HH:mm"),m=e(o+s,d,new Date)}return t(m,n,{locale:y[null===(r=null==i?void 0:i.split("-"))||void 0===r?void 0:r[0]]||y.en})}catch(e){return"Invalid date "+o}};export{u as formatDate,y as locales};
@@ -0,0 +1,2 @@
1
+ declare const getCurrencySymbol: (currencyCode?: "CHF" | "EUR" | "RUR" | "RUB" | "USD" | "GBP" | "SEK" | "DKK" | "NOK" | "CZK" | "PLN" | "HUF" | "RSD" | "BGN" | "HRK" | "RON" | "MKD" | "BAM" | "ALL" | "ISK" | "UAH" | "BYN" | "MDL" | "GEL" | "TRY" | "CAD" | "AUD" | "ILS" | undefined) => string;
2
+ export { getCurrencySymbol };
@@ -0,0 +1 @@
1
+ import{currency as r}from"../data/currency-codes.js";var o=function(o){return o?r.CURRENCY_SYMBOLS[o]:""};export{o as getCurrencySymbol};
@@ -0,0 +1,21 @@
1
+ import { AxiosError } from 'axios';
2
+ type ErrorData = {
3
+ errorId: string;
4
+ application: string;
5
+ errorCode: string;
6
+ message: string;
7
+ originalErrorCode?: string;
8
+ };
9
+ declare enum ErrorType {
10
+ NETWORK = "NETWORK",
11
+ BUSINESS = "BUSINESS",
12
+ INTERNAL = "INTERNAL"
13
+ }
14
+ type ServiceError = {
15
+ code: string;
16
+ message: string;
17
+ errorType: ErrorType;
18
+ originalError: unknown | AxiosError<ErrorData>;
19
+ };
20
+ declare function getServiceError(error: unknown): ServiceError;
21
+ export { ErrorData, ErrorType, ServiceError, getServiceError };
@@ -0,0 +1 @@
1
+ import{isAxiosError as r}from"./is-axios-error.js";import{isNetworkError as e}from"./is-network-error.js";var o,E,R;!function(r){r.NETWORK="NETWORK",r.BUSINESS="BUSINESS",r.INTERNAL="INTERNAL"}(R||(R={}));var N=((o={})[R.INTERNAL]="INTERNAL_ERROR",o[R.NETWORK]="NETWORK_ERROR",o),a=((E={})[R.INTERNAL]="Please, try again later",E[R.NETWORK]="Please, check internet connection and try again later",E),n=["BAD_REQUEST","INTERNAL_SERVER_ERROR","INTERNAL_ERROR","WS_ERROR","DEFAULT"];function i(o){if(e(o))return{code:N[R.NETWORK],message:a[R.NETWORK],errorType:R.NETWORK,originalError:o};if(r(o)){var E=o.response?o.response.data:{errorCode:"500",originalErrorCode:"500",message:"Unhandled error"},i=E.errorCode,T=E.originalErrorCode,s=E.message,t=i,I=R.BUSINESS;return n.includes(t)&&(void 0===T?I=R.INTERNAL:t=T),{code:t,message:s,errorType:I,originalError:o}}return{code:N[R.INTERNAL],message:a[R.INTERNAL],errorType:R.INTERNAL,originalError:o}}export{R as ErrorType,i as getServiceError};
@@ -0,0 +1,3 @@
1
+ import { AxiosError } from 'axios';
2
+ declare function isAxiosError<T>(error: unknown): error is AxiosError<T>;
3
+ export { isAxiosError };
@@ -0,0 +1 @@
1
+ function o(o){return Boolean(o.isAxiosError)}export{o as isAxiosError};
@@ -0,0 +1,2 @@
1
+ declare function isNetworkError(error: unknown): boolean;
2
+ export { isNetworkError };
@@ -0,0 +1 @@
1
+ import{isAxiosError as r}from"./is-axios-error.js";var e=["ENETUNREACH","ECONNABORTED","ENOTCONN"];function o(o){if(r(o)){var s=o.response,N=o.code,i=o.message;return void 0===s&&(e.includes(N||"")||"Network Error"===i)}return!1}export{o as isNetworkError};
@@ -0,0 +1,4 @@
1
+ export * from "./format-amount/util";
2
+ export * from "./show-toast/index";
3
+ export * from "./split-amount/util";
4
+ export * from "./format-date/index";
@@ -0,0 +1 @@
1
+ export{AMOUNT_MAJOR_MINOR_PARTS_SEPARATOR,THINSP,formatAmount}from"./format-amount/util.js";export{showError,showSuccess}from"./show-toast/index.js";export{splitAmount}from"./split-amount/util.js";export{formatDate,locales}from"./format-date/index.js";import"./data/currency-codes.js";import"./get-currency-symbol/util.js";import"../toast-notifier/component.js";import"tslib";import"react";import"react-dom";import"classnames";import"../toast-plate/component.js";import"@alphakits/icons/dist/AlertCircleM";import"@alphakits/icons/dist/CheckmarkCircleM";import"@alphakits/icons/dist/ClockCircleM";import"@alphakits/icons/dist/CloseS";import"../button/component.js";import"react-merge-refs";import"../hooks/useFocus/index.js";import"../loader/component.js";import"../toast-notifier/use-timer.js";import"date-fns";import"date-fns/esm/locale/cs";import"date-fns/esm/locale/de";import"date-fns/esm/locale/en-GB";import"date-fns/esm/locale/pl";import"date-fns/esm/locale/ru";import"date-fns/locale/el";import"date-fns/locale/es";import"date-fns/locale/et";import"date-fns/locale/fr";import"date-fns/locale/it";import"date-fns/locale/nl";import"date-fns/locale/pt";
@@ -0,0 +1,3 @@
1
+ declare const showSuccess: (text: string, title?: string, offset?: number) => void;
2
+ declare const showError: (text: string, title?: string, offset?: number) => void;
3
+ export { showSuccess, showError };
@@ -0,0 +1 @@
1
+ import{ToastNotifier as t}from"../../toast-notifier/component.js";import"tslib";import"react";import"react-dom";import"classnames";import"../../toast-plate/component.js";import"@alphakits/icons/dist/AlertCircleM";import"@alphakits/icons/dist/CheckmarkCircleM";import"@alphakits/icons/dist/ClockCircleM";import"@alphakits/icons/dist/CloseS";import"../../button/component.js";import"react-merge-refs";import"../../hooks/useFocus/index.js";import"../../loader/component.js";import"../../toast-notifier/use-timer.js";var o=function(o,i,e){void 0===i&&(i="Success"),void 0===e&&(e=30),t({view:"positive",title:i,text:o,offset:e})},i=function(o,i,e){void 0===i&&(i="Error"),void 0===e&&(e=30),t({view:"negative",title:i,text:o,offset:e})};export{i as showError,o as showSuccess};
@@ -0,0 +1,2 @@
1
+ declare const splitAmount: (amount: string, partSize: number | undefined, splitter: string, splitFrom?: number) => string;
2
+ export { splitAmount };
@@ -0,0 +1 @@
1
+ var e=function(e,n,o,p){void 0===n&&(n=3),void 0===p&&(p=4);var r="\\B(?=(\\d{"+n+"})+(?!\\d))";return e.length<p?e:(console.log({pp:e.replace(new RegExp(r,"g"),o)}),e.replace(new RegExp(r,"g"),o))};export{e as splitAmount};
@@ -0,0 +1,10 @@
1
+ /// <reference types="react" />
2
+ import React from 'react';
3
+ type Props = {
4
+ children?: React.ReactNode;
5
+ image: string;
6
+ color?: 'navigator' | 'loverocket' | 'default';
7
+ reversed?: boolean;
8
+ };
9
+ declare const WelcomeContainer: React.FC<Props>;
10
+ export { WelcomeContainer };
@@ -0,0 +1 @@
1
+ import e from"react";import i from"classnames";var r={container:"index-module_container__OmIEF",reversed:"index-module_reversed__oDLY2",left_side:"index-module_left_side__4-uKL",left_side_inner:"index-module_left_side_inner__-Lvbn",right_side:"index-module_right_side__iFk7C",navigator:"index-module_navigator__O-rxg",loverocket:"index-module_loverocket__DMLiT",default:"index-module_default__yQU6t"},d=function(d){var t,_=d.children,n=d.image,l=d.color,a=void 0===l?"default":l,o=d.reversed;return e.createElement("div",{className:i(r.container,(t={},t[r.reversed]=o,t))},e.createElement("div",{className:r.left_side},e.createElement("div",{className:r.left_side_inner},_)),e.createElement("div",{className:i(r.right_side,r[a])},e.createElement("img",{src:n,alt:"right_side_image"})))};export{d as WelcomeContainer};
@@ -0,0 +1 @@
1
+ export * from "./component";
@@ -0,0 +1 @@
1
+ export{WelcomeContainer}from"./component.js";import"react";import"classnames";
@@ -0,0 +1,44 @@
1
+ /// <reference types="react" />
2
+ import React from 'react';
3
+ import { FC, ReactNode, RefAttributes } from "react";
4
+ import { InputProps } from "../input/index";
5
+ type WithSuffixProps = InputProps & {
6
+ suffix?: ReactNode;
7
+ suffixContainerClassName?: string;
8
+ };
9
+ declare const withSuffix: (Input: FC<InputProps & RefAttributes<HTMLInputElement>>) => React.ForwardRefExoticComponent<Omit<React.InputHTMLAttributes<HTMLInputElement>, "size" | "type" | "defaultValue" | "onChange" | "onClick" | "onMouseDown" | "value"> & {
10
+ value?: string | undefined;
11
+ defaultValue?: string | undefined;
12
+ block?: boolean | undefined;
13
+ required?: boolean | undefined;
14
+ clear?: boolean | undefined;
15
+ size?: "s" | "m" | "l" | undefined;
16
+ error?: string | boolean | undefined;
17
+ success?: boolean | undefined;
18
+ hint?: string | undefined;
19
+ label?: React.ReactNode;
20
+ type?: "number" | "text" | "tel" | "email" | "card" | "money" | "password" | undefined;
21
+ wrapperRef?: React.Ref<HTMLDivElement> | undefined;
22
+ leftAddons?: React.ReactNode;
23
+ rightAddons?: React.ReactNode;
24
+ bottomAddons?: React.ReactNode;
25
+ className?: string | undefined;
26
+ fieldClassName?: string | undefined;
27
+ inputClassName?: string | undefined;
28
+ labelClassName?: string | undefined;
29
+ addonsClassName?: string | undefined;
30
+ focusedClassName?: string | undefined;
31
+ filledClassName?: string | undefined;
32
+ onChange?: ((event: React.ChangeEvent<HTMLInputElement>, payload: {
33
+ value: string;
34
+ }) => void) | undefined;
35
+ onClear?: ((event: React.MouseEvent<HTMLButtonElement, MouseEvent>) => void) | undefined;
36
+ onClick?: ((event: React.MouseEvent<HTMLDivElement, MouseEvent>) => void) | undefined;
37
+ onMouseDown?: ((event: React.MouseEvent<HTMLDivElement, MouseEvent>) => void) | undefined;
38
+ onMouseUp?: ((event: React.MouseEvent<HTMLDivElement, MouseEvent>) => void) | undefined;
39
+ dataTestId?: string | undefined;
40
+ } & {
41
+ suffix?: ReactNode;
42
+ suffixContainerClassName?: string | undefined;
43
+ } & React.RefAttributes<HTMLInputElement>>;
44
+ export { WithSuffixProps, withSuffix };
@@ -0,0 +1 @@
1
+ import{__rest as e,__assign as a}from"tslib";import l,{forwardRef as n,useRef as r,useState as t,useCallback as o,Fragment as i}from"react";import m from"react-merge-refs";import s from"classnames";import{Portal as d}from"../portal/component.js";import"react-dom";import"../portal/utils.js";var u="index-module_suffixContainer__L2XY5",f="index-module_suffixVisible__Yc0TG",c="index-module_hasSuffix__k5IuB",_="index-module_spacer__ylEiI",p="index-module_suffix__rQNLe",x="index-module_disabled__tntct",C="index-module_readOnly__tm8U3",v=function(v){return n((function(n,N){var E,h,b=n.value,g=n.defaultValue,y=n.onChange,O=n.onClear,V=n.suffix,j=void 0===V?"":V,B=n.placeholder,I=n.className,L=n.disabled,Y=n.readOnly,k=n.suffixContainerClassName,G=e(n,["value","defaultValue","onChange","onClear","suffix","placeholder","className","disabled","readOnly","suffixContainerClassName"]),P=void 0===b,Q=r(null),S=t(g||""),T=S[0],U=S[1],X=o((function(e,a){y&&y(e,a),P&&U(a.value)}),[y,P]),q=o((function(e){P&&U(""),O&&O(e)}),[O,P]),w=o((function(){return Q.current.parentElement}),[]),z=P?T:b;return l.createElement(i,null,l.createElement(v,a({ref:m([N,Q]),value:z,disabled:L,readOnly:Y,onChange:X,onClear:q,placeholder:B,className:s(I,(E={},E[f]=Boolean(z),E[c]=j,E))},G)),l.createElement(d,{getPortalContainer:w},l.createElement("div",{className:s(u,k)},l.createElement("span",{className:_},z),j&&l.createElement("div",{className:s(p,(h={},h[x]=L,h[C]=Y,h))},j))))}))};export{v as withSuffix};
@@ -0,0 +1 @@
1
+ export * from "./component";
@@ -0,0 +1 @@
1
+ export{withSuffix}from"./component.js";import"tslib";import"react";import"react-merge-refs";import"classnames";import"../portal/component.js";import"react-dom";import"../portal/utils.js";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@alphakits/ui",
3
- "version": "1.30.40",
3
+ "version": "1.30.42",
4
4
  "files": [
5
5
  "dist"
6
6
  ],