@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,159 @@
1
+ /// <reference types="react" />
2
+ import { AriaAttributes, FC, FocusEvent, MouseEvent, ReactElement, ReactNode, RefAttributes, UIEvent } from 'react';
3
+ import { InputProps } from "../input/index";
4
+ import { PopoverProps } from "../popover/index";
5
+ type OptionShape = {
6
+ key: number | string;
7
+ content?: ReactNode;
8
+ disabled?: boolean;
9
+ loading?: boolean;
10
+ value?: any;
11
+ };
12
+ type GroupShape = {
13
+ label?: string;
14
+ options: OptionShape[];
15
+ };
16
+ type BaseSelectProps = {
17
+ dataTestId?: string;
18
+ className?: string;
19
+ offset?: PopoverProps['offset'];
20
+ withArrow?: boolean;
21
+ popoverOuterClassname?: string;
22
+ required?: boolean;
23
+ fieldClassName?: string;
24
+ optionsListClassName?: string;
25
+ optionClassName?: string;
26
+ options: Array<OptionShape | GroupShape>;
27
+ actionButton?: {
28
+ label: string;
29
+ onClick: () => void;
30
+ };
31
+ id?: string;
32
+ name?: string;
33
+ disabled?: boolean;
34
+ defaultOpen?: boolean;
35
+ open?: boolean;
36
+ multiple?: boolean;
37
+ size?: 's' | 'm' | 'l' | 'xl' | 'xs';
38
+ optionsSize?: 's' | 'm' | 'l' | 'xl' | 'xs';
39
+ block?: boolean;
40
+ optionsListWidth?: 'content' | 'field';
41
+ label?: ReactNode;
42
+ placeholder?: string;
43
+ error?: string | boolean;
44
+ hint?: string;
45
+ autocomplete?: boolean;
46
+ allowUnselect?: boolean;
47
+ closeOnSelect?: boolean;
48
+ circularNavigation?: boolean;
49
+ preventFlip?: boolean;
50
+ selected?: Array<string | number | OptionShape> | string | number | OptionShape | null;
51
+ nativeSelect?: boolean;
52
+ popoverPosition?: PopoverProps['position'];
53
+ visibleOptions?: number;
54
+ valueRenderer?: ({ selected, selectedMultiple, }: {
55
+ selected?: OptionShape;
56
+ selectedMultiple: OptionShape[];
57
+ }) => ReactNode;
58
+ Arrow?: FC<ArrowProps> | null | false;
59
+ Field?: FC<FieldProps>;
60
+ fieldProps?: Record<string, unknown>;
61
+ optionsListProps?: Record<string, unknown>;
62
+ optionProps?: Record<string, unknown>;
63
+ OptionsList?: FC<OptionsListProps>;
64
+ Optgroup?: FC<OptgroupProps>;
65
+ Option?: FC<OptionProps>;
66
+ onChange?: (payload: {
67
+ selected: OptionShape | null;
68
+ selectedMultiple: OptionShape[];
69
+ name?: string;
70
+ }) => void;
71
+ onOpen?: (payload: {
72
+ open?: boolean;
73
+ name?: string;
74
+ }) => void;
75
+ onBlur?: (event: FocusEvent<HTMLDivElement | HTMLInputElement>) => void;
76
+ onFocus?: (event: FocusEvent<HTMLDivElement | HTMLInputElement>) => void;
77
+ onScroll?: (event: UIEvent<HTMLDivElement>) => void;
78
+ updatePopover?: PopoverProps['update'];
79
+ zIndexPopover?: PopoverProps['zIndex'];
80
+ showEmptyOptionsList?: boolean;
81
+ };
82
+ type FieldProps = {
83
+ className?: string;
84
+ size?: 's' | 'm' | 'l' | 'xl' | 'xs';
85
+ selected?: OptionShape;
86
+ selectedMultiple?: OptionShape[];
87
+ multiple?: boolean;
88
+ open?: boolean;
89
+ disabled?: boolean;
90
+ label?: ReactNode;
91
+ placeholder?: string;
92
+ error?: string | boolean;
93
+ success?: boolean;
94
+ hint?: string;
95
+ Arrow?: ReactElement | false | null;
96
+ valueRenderer?: BaseSelectProps['valueRenderer'];
97
+ innerProps: {
98
+ onBlur?: (event: FocusEvent<HTMLDivElement | HTMLInputElement>) => void;
99
+ onFocus?: (event: FocusEvent<HTMLDivElement | HTMLInputElement>) => void;
100
+ onClick?: (event: MouseEvent<HTMLDivElement | HTMLInputElement>) => void;
101
+ tabIndex: number;
102
+ id: string;
103
+ } & RefAttributes<HTMLDivElement | HTMLInputElement> & AriaAttributes;
104
+ dataTestId?: string;
105
+ };
106
+ type ArrowProps = {
107
+ className?: string;
108
+ open?: boolean;
109
+ };
110
+ type OptionsListProps = {
111
+ className?: string;
112
+ size?: 's' | 'm' | 'l' | 'xl' | 'xs';
113
+ Option: (props: {
114
+ option: OptionShape;
115
+ index: number;
116
+ }) => JSX.Element | null;
117
+ options?: Array<OptionShape | GroupShape>;
118
+ flatOptions?: OptionShape[];
119
+ actionButton?: {
120
+ label: string;
121
+ onClick: () => void;
122
+ };
123
+ highlightedIndex?: number;
124
+ open?: boolean;
125
+ Optgroup?: BaseSelectProps['Optgroup'];
126
+ emptyPlaceholder?: string | ReactNode;
127
+ visibleOptions?: number;
128
+ onScroll?: (event: UIEvent<HTMLDivElement>) => void;
129
+ dataTestId?: string;
130
+ inputProps?: InputProps;
131
+ toggleMenu: () => void;
132
+ };
133
+ type OptgroupProps = {
134
+ size?: 's' | 'm' | 'l' | 'xl' | 'xs';
135
+ label?: string;
136
+ children?: ReactNode;
137
+ };
138
+ type OptionProps = {
139
+ className?: string;
140
+ size?: 's' | 'm' | 'l' | 'xl' | 'xs';
141
+ children?: ReactNode;
142
+ option: OptionShape;
143
+ index: number;
144
+ selected?: boolean;
145
+ highlighted?: boolean;
146
+ disabled?: boolean;
147
+ Checkmark?: FC<CheckmarkProps>;
148
+ innerProps?: {
149
+ id?: string;
150
+ onClick?: (event: MouseEvent<HTMLDivElement>) => void;
151
+ onMouseDown?: (event: MouseEvent<HTMLDivElement>) => void;
152
+ onMouseMove?: (event: MouseEvent<HTMLDivElement>) => void;
153
+ role?: string;
154
+ } & RefAttributes<HTMLDivElement> & AriaAttributes;
155
+ };
156
+ type CheckmarkProps = {
157
+ selected?: boolean;
158
+ };
159
+ export { OptionShape, GroupShape, BaseSelectProps, FieldProps, ArrowProps, OptionsListProps, OptgroupProps, OptionProps, CheckmarkProps };
@@ -0,0 +1 @@
1
+
@@ -0,0 +1,34 @@
1
+ import { ReactNode, RefObject } from 'react';
2
+ import { BaseSelectProps, GroupShape, OptionShape } from "./typings";
3
+ declare const isGroup: (item: OptionShape | GroupShape) => item is GroupShape;
4
+ declare const isOptionShape: (item: OptionShape | string | number | null) => item is OptionShape;
5
+ declare const joinOptions: ({ selected, selectedMultiple, }: {
6
+ selected?: OptionShape | undefined;
7
+ selectedMultiple?: OptionShape[] | undefined;
8
+ }) => ReactNode[] | null;
9
+ declare function processOptions(options: BaseSelectProps['options'], selected?: BaseSelectProps['selected']): {
10
+ flatOptions: OptionShape[];
11
+ selectedOptions: OptionShape[];
12
+ };
13
+ type useVisibleOptionsArgs = {
14
+ visibleOptions: number;
15
+ listRef: RefObject<HTMLElement>;
16
+ styleTargetRef?: RefObject<HTMLElement>;
17
+ open?: boolean;
18
+ invalidate?: unknown;
19
+ };
20
+ declare function useVisibleOptions({ visibleOptions, listRef, styleTargetRef, open, invalidate, }: useVisibleOptionsArgs): void;
21
+ declare const lastIndexOf: <T>(array: T[], predicate: (item: T) => boolean) => number;
22
+ type OptionsType<T> = Array<{
23
+ key: T;
24
+ content: any;
25
+ }>;
26
+ type ConvertToOptions = <T extends {
27
+ id: string | number;
28
+ [field: string]: any;
29
+ }>(data: T[], field?: string) => Array<{
30
+ key: T['id'];
31
+ content: any;
32
+ }>;
33
+ declare const convertToOptions: ConvertToOptions;
34
+ export { isGroup, isOptionShape, joinOptions, processOptions, useVisibleOptions, lastIndexOf, OptionsType, convertToOptions };
@@ -0,0 +1 @@
1
+ import{isValidElement as t,cloneElement as n,useEffect as e}from"react";var r=function(t){return Object.prototype.hasOwnProperty.call(t,"options")},i=function(t){return!!t&&Object.prototype.hasOwnProperty.call(t,"key")},o=function(e){var r=e.selected,i=e.selectedMultiple||(r?[r]:[]);return i.length?i.reduce((function(e,r,o){return t(r.content)?e.push(n(r.content,{key:r.key})):e.push(r.content),o<i.length-1&&e.push(", "),e}),[]):null};function c(t,n){void 0===n&&(n=[]);var e=[],o=Array.isArray(n)?n:[n],c=o.filter(i),u=o.filter((function(t){return"string"==typeof t||"number"==typeof t})),l=function(t){e.push(t),function(t){return u.includes(t.key)}(t)&&c.push(t)};return t.forEach((function(t){r(t)?t.options.forEach(l):l(t)})),{flatOptions:e,selectedOptions:c}}function u(t){var n=t.visibleOptions,r=t.listRef,i=t.styleTargetRef,o=void 0===i?r:i,c=t.open,u=t.invalidate;e((function(){var t=r.current,e=o.current;if(c&&t&&e){var i=[].slice.call(t.children,0,n+1),u=i.slice(0,n).reduce((function(t,n){return t+n.clientHeight}),0);n<t.children.length&&(u+=Math.round(i[i.length-1].clientHeight/2)),e.style.height=u+"px"}}),[r,c,o,n,u])}var l=function(t,n){for(var e=t.length-1;e>=0;e--)if(n(t[e]))return e;return-1},f=function(t,n){return t.map((function(t){return{key:t.id,content:n&&t[n]||t.title||t.name}}))};export{f as convertToOptions,r as isGroup,i as isOptionShape,o as joinOptions,l as lastIndexOf,c as processOptions,u as useVisibleOptions};
@@ -0,0 +1,24 @@
1
+ /// <reference types="react" />
2
+ import React from 'react';
3
+ import { TFunction } from "../modal/index";
4
+ type Back = {
5
+ back?: () => void;
6
+ t: TFunction;
7
+ } | {
8
+ back?: never;
9
+ t?: never;
10
+ };
11
+ type SidepanelProps = {
12
+ title?: string;
13
+ loading?: boolean;
14
+ subtitle?: string;
15
+ headerRightAddons?: React.ReactNode;
16
+ headerBottomAddons?: React.ReactNode;
17
+ bottomAddons?: React.ReactNode;
18
+ dataTestId?: string;
19
+ noCloser?: boolean;
20
+ noStickyFooter?: boolean;
21
+ noStickyHeader?: boolean;
22
+ } & Back;
23
+ declare const Sidepanel: React.FC<SidepanelProps>;
24
+ export { SidepanelProps, Sidepanel };
@@ -0,0 +1 @@
1
+ import{__rest as e,__assign as t}from"tslib";import o from"react";import n from"classnames";import{FlexColumns as r}from"../flex-columns/component.js";import{SidepanelHeader as m}from"../sidepanel-header/component.js";import{Skeleton as i}from"../skeleton/component.js";import"../back-button/component.js";import"../button-arrow/component.js";import"@alphakits/icons";import"../typography/component.js";import"../typography/text/component.js";import"../colors.module-f96393ec.js";import"../typography/title/index.js";import"../typography/title/component.js";var d="index-module_header__mPZ5T",a="index-module_loader__AwSf2",l="index-module_input__4qiE9",s="index-module_footer__gMIpz",c="index-module_noSticky__LgClY",p="index-module_content__3wIEH",u=function(u){var _,h=u.dataTestId,y=u.title,f=u.loading,g=u.headerRightAddons,b=u.subtitle,j=u.noCloser,x=u.headerBottomAddons,A=u.noStickyFooter,k=u.noStickyHeader,E=u.bottomAddons,v=u.children,S=e(u,["dataTestId","title","loading","headerRightAddons","subtitle","noCloser","headerBottomAddons","noStickyFooter","noStickyHeader","bottomAddons","children"]);return o.createElement(o.Fragment,null,f?o.createElement(r,{className:a,columns:1,gr:20},new Array(7).fill("").map((function(e,t){return o.createElement(i,{key:t,animate:!0,visible:!0,className:l})}))):o.createElement("div",null,o.createElement(m,t({title:y,className:k?void 0:d,subtitle:b,noCloser:j,dataTestId:h,rightAddons:g,bottomAddons:x},S)),o.createElement("div",{className:p},v),E&&o.createElement("div",{className:n(s,(_={},_[c]=A,_))},E)))};export{u as Sidepanel};
@@ -0,0 +1 @@
1
+ export * from "./component";
@@ -0,0 +1 @@
1
+ export{Sidepanel}from"./component.js";import"tslib";import"react";import"classnames";import"../flex-columns/component.js";import"../sidepanel-header/component.js";import"../back-button/component.js";import"../button-arrow/component.js";import"@alphakits/icons";import"../typography/component.js";import"../typography/text/component.js";import"../colors.module-f96393ec.js";import"../typography/title/index.js";import"../typography/title/component.js";import"../skeleton/component.js";
@@ -0,0 +1,21 @@
1
+ /// <reference types="react" />
2
+ import React from 'react';
3
+ import { TFunction } from "../modal/index";
4
+ type Back = {
5
+ back?: () => void;
6
+ t: TFunction;
7
+ } | {
8
+ back?: never;
9
+ t?: never;
10
+ };
11
+ type SidepanelHeaderProps = {
12
+ className?: string;
13
+ title?: string;
14
+ rightAddons?: React.ReactNode;
15
+ bottomAddons?: React.ReactNode;
16
+ noCloser?: boolean;
17
+ dataTestId?: string;
18
+ subtitle?: string;
19
+ } & Back;
20
+ declare const SidepanelHeader: React.FC<SidepanelHeaderProps>;
21
+ export { SidepanelHeaderProps, SidepanelHeader };
@@ -0,0 +1 @@
1
+ import e from"react";import t from"classnames";import{BackButton as o}from"../back-button/component.js";import{FlexColumns as r}from"../flex-columns/component.js";import{Typography as m}from"../typography/component.js";import"../button-arrow/component.js";import"@alphakits/icons";import"../typography/text/component.js";import"../colors.module-f96393ec.js";import"../typography/title/index.js";import"tslib";import"../typography/title/component.js";var i="index-module_wrapper__QxqDy",l="index-module_heading__XGDyC",a="index-module_title__jwxcv",n="index-module_bottomAddons__3yzd0",s="index-module_rightAddons__aZFaJ",c="index-module_noCloser__O7u0p",d=function(t){var o=t.title,i=t.subtitle;return e.createElement(r,{columns:1,gr:4,className:a},e.createElement(m.Title,{color:"primary",tag:"div",view:"small",weight:"bold"},o),i&&e.createElement(m.Text,{view:"title",weight:"regular",color:"secondary"},i))},p=function(r){var m,a=r.className,p=r.dataTestId,u=r.title,_=r.rightAddons,x=r.back,y=r.subtitle,b=r.t,g=r.bottomAddons,v=r.noCloser;return e.createElement("div",{"data-test-id":p,className:t(i,a)},(x||u||_)&&e.createElement("div",{className:l},x&&b&&e.createElement(o,{onClick:x,t:b}),!x&&u&&e.createElement(d,{title:u,subtitle:y}),_&&e.createElement("div",{className:t(s,(m={},m[c]=!!v,m))},_)),!!x&&u&&e.createElement(d,{title:u,subtitle:y}),!!g&&e.createElement("div",{className:n},g))};export{p as SidepanelHeader};
@@ -0,0 +1 @@
1
+ export * from "./component";
@@ -0,0 +1 @@
1
+ export{SidepanelHeader}from"./component.js";import"react";import"classnames";import"../back-button/component.js";import"../button-arrow/component.js";import"@alphakits/icons";import"../flex-columns/component.js";import"../typography/component.js";import"../typography/text/component.js";import"../colors.module-f96393ec.js";import"../typography/title/index.js";import"tslib";import"../typography/title/component.js";
@@ -0,0 +1,11 @@
1
+ /// <reference types="react" />
2
+ import React from 'react';
3
+ type SkeletonProps = {
4
+ children?: React.ReactNode;
5
+ visible?: boolean;
6
+ animate?: boolean;
7
+ className?: string;
8
+ dataTestId?: string;
9
+ };
10
+ declare const Skeleton: React.FC<SkeletonProps>;
11
+ export { SkeletonProps, Skeleton };
@@ -0,0 +1 @@
1
+ import e from"react";import a from"classnames";var t="index-module_component__-McTc",m="index-module_animate__-bLCJ",n=function(n){var r,i=n.visible,c=n.animate,d=void 0===c||c,l=n.className,o=n.dataTestId,s=n.children;return i?e.createElement("div",{className:a(t,(r={},r[m]=d,r),l),"data-test-id":o},s):e.createElement(e.Fragment,null,s)};export{n as Skeleton};
@@ -0,0 +1 @@
1
+ export * from "./component";
@@ -0,0 +1 @@
1
+ export{Skeleton}from"./component.js";import"react";import"classnames";
@@ -0,0 +1,16 @@
1
+ /// <reference types="react" />
2
+ import React from 'react';
3
+ import { Direction } from "./utils";
4
+ interface ItemProps {
5
+ className: string;
6
+ horizontalSize: number;
7
+ verticalSize: number;
8
+ length: number;
9
+ children: React.ReactNode;
10
+ index: number;
11
+ direction?: Direction;
12
+ divider?: string | React.ReactNode;
13
+ wrap?: boolean;
14
+ }
15
+ declare const Item: (props: ItemProps) => JSX.Element | null;
16
+ export { Item as default, ItemProps };
@@ -0,0 +1 @@
1
+ import{__assign as e}from"tslib";import t from"react";var r=function(r){var a=r.className,i=r.horizontalSize,l=r.verticalSize,n=r.length,m=r.direction,o=r.index,c=r.children,d=r.divider,s=r.wrap,g={};return"vertical"===m?o<n&&(g={marginBottom:i/(d?2:1)}):g=e(e({},o<n&&{marginRight:i/(d?2:1)}),s&&{paddingBottom:l}),null==c?null:t.createElement(t.Fragment,null,t.createElement("div",{className:a,style:g},c),o<n-1&&d&&t.createElement("span",{style:e({width:"100%"},g)},d))};export{r as default};
@@ -0,0 +1,17 @@
1
+ /// <reference types="react" />
2
+ import React from 'react';
3
+ import { ReactNode } from "react";
4
+ import { Direction, Align, Size } from "./utils";
5
+ type SpaceProps = {
6
+ align?: Align;
7
+ direction?: Direction;
8
+ size?: Size | [Size, Size];
9
+ className?: string;
10
+ children: ReactNode;
11
+ dataTestId?: string;
12
+ wrap?: boolean;
13
+ divider?: string | ReactNode;
14
+ fullWidth?: boolean;
15
+ };
16
+ declare const Space: React.ForwardRefExoticComponent<SpaceProps & React.RefAttributes<HTMLDivElement>>;
17
+ export { SpaceProps, Space };
@@ -0,0 +1 @@
1
+ import{__assign as e}from"tslib";import t,{forwardRef as i,Children as r}from"react";import n from"classnames";import a from"./Item.js";var l={spaceContainer:"index-module_spaceContainer__Onnxn",spaceContainerFullWidth:"index-module_spaceContainerFullWidth__W7-9v",vertical:"index-module_vertical__EjIme",center:"index-module_center__VDiFi",start:"index-module_start__WKuO-",end:"index-module_end__FzVWP",spaceItemFullWidth:"index-module_spaceItemFullWidth__C58tA",spaceItem:"index-module_spaceItem__oUYtC"},o={s:12,m:16,l:20},d=i((function(i,d){var m,c,s=i.children,u=i.className,p=i.align,_=void 0===p?"start":p,v=i.direction,f=void 0===v?"vertical":v,h=i.size,x=void 0===h?"m":h,W=i.wrap,C=void 0!==W&&W,F=i.divider,I=void 0!==F&&F,g=i.fullWidth,y=void 0!==g&&g,z=t.useMemo((function(){return(Array.isArray(x)?x:[x,x]).map((function(e){return function(e){return"string"==typeof e?o[e]:e||0}(e)}))}),[x]),A=z[0],w=z[1],E=r.toArray(s);if(0===E.length)return null;var N=n(l.spaceContainer,l[f],((m={})[l[_]]=_,m[l.spaceContainerFullWidth]=y,m),u),j=n(l.spaceItem,((c={})[l.spaceItemFullWidth]=y,c)),O=E.map((function(e,i){return t.createElement(a,{className:j,key:j+"-"+i,direction:f,horizontalSize:A,verticalSize:w,length:E.length,index:i,wrap:C,divider:I},e)}));return t.createElement("div",{className:N,style:e({},C&&{flexWrap:"wrap",marginBottom:-w}),ref:d},O)}));export{d as Space};
@@ -0,0 +1 @@
1
+ export * from "./component";
@@ -0,0 +1 @@
1
+ export{Space}from"./component.js";import"tslib";import"react";import"classnames";import"./Item.js";
@@ -0,0 +1,11 @@
1
+ /// <reference types="react" />
2
+ import React from 'react';
3
+ type Align = 'start' | 'end' | 'center';
4
+ type Direction = 'horizontal' | 'vertical';
5
+ type Size = 's' | 'm' | 'l' | number;
6
+ declare const SpaceContext: React.Context<{
7
+ length: number;
8
+ horizontalSize: number;
9
+ verticalSize: number;
10
+ }>;
11
+ export { Align, Direction, Size, SpaceContext };
@@ -0,0 +1 @@
1
+ import e from"react";var t=e.createContext({length:0,horizontalSize:0,verticalSize:0});export{t as SpaceContext};
@@ -0,0 +1,11 @@
1
+ import { FC } from 'react';
2
+ type SpinnerProps = {
3
+ visible?: boolean;
4
+ size?: 's' | 'm';
5
+ className?: string;
6
+ id?: string;
7
+ view?: 'default' | 'dark' | 'invert';
8
+ dataTestId?: string;
9
+ };
10
+ declare const Spinner: FC<SpinnerProps>;
11
+ export { SpinnerProps, Spinner };
@@ -0,0 +1 @@
1
+ import e from"react";import r from"classnames";var d={s:"index-module_s__Xi4z8",m:"index-module_m__ZpMyr",spinnerWrapper:"index-module_spinnerWrapper__VE6YF",spinner:"index-module_spinner__QP-ux",rotate:"index-module_rotate__Qv2Ic",path:"index-module_path__SQCAA",dash:"index-module_dash__PurJL",default:"index-module_default__nPp3J",dark:"index-module_dark__QnOjR",invert:"index-module_invert__6bSD5"},i=function(i){var n=i.size,a=void 0===n?"s":n,t=i.id,_=i.view,s=void 0===_?"default":_,m=i.className,l=i.dataTestId;return e.createElement("div",{id:t,"data-test-id":l,className:r(d.spinnerWrapper,d[a],m)},e.createElement("svg",{className:r(d.spinner,d[a]),preserveAspectRatio:"xMinYMin meet",viewBox:"0 0 50 50"},e.createElement("circle",{className:r(d.path,d[s]),cx:"25",cy:"25",r:"20",fill:"none",strokeWidth:"5"})))};export{i as Spinner};
@@ -0,0 +1 @@
1
+ export * from "./component";
@@ -0,0 +1 @@
1
+ export{Spinner}from"./component.js";import"react";import"classnames";
@@ -0,0 +1,7 @@
1
+ import { FC, ReactNode } from 'react';
2
+ type StackProps = {
3
+ children: (value: number) => ReactNode;
4
+ value?: number;
5
+ };
6
+ declare const Stack: FC<StackProps>;
7
+ export { StackProps, Stack };
@@ -0,0 +1 @@
1
+ import r,{useContext as e}from"react";import{stackingOrder as t,StackingContext as o}from"./context.js";var a=function(a){var i=a.children,m=a.value,n=void 0===m?t.DEFAULT:m,v=e(o),c=Math.max(n,v),l=c+1;return r.createElement(o.Provider,{value:l},i(c))};export{a as Stack};
@@ -0,0 +1,10 @@
1
+ /// <reference types="react" />
2
+ declare const stackingOrder: {
3
+ FOCUSED: number;
4
+ DEFAULT: number;
5
+ POPOVER: number;
6
+ MODAL: number;
7
+ TOAST: number;
8
+ };
9
+ declare const StackingContext: import("react").Context<number>;
10
+ export { stackingOrder, StackingContext };
@@ -0,0 +1 @@
1
+ import{createContext as r}from"react";var O={FOCUSED:2,DEFAULT:10,POPOVER:999999999,MODAL:9e4,TOAST:9999999999},A=r(O.DEFAULT);export{A as StackingContext,O as stackingOrder};
@@ -0,0 +1,2 @@
1
+ export * from "./context";
2
+ export * from "./component";
@@ -0,0 +1 @@
1
+ export{StackingContext,stackingOrder}from"./context.js";export{Stack}from"./component.js";import"react";
@@ -0,0 +1,11 @@
1
+ import { FC } from 'react';
2
+ type StatusProps = {
3
+ className?: string;
4
+ upperCase?: boolean;
5
+ view: 'contrast' | 'soft';
6
+ size?: 's' | 'm';
7
+ color: 'green' | 'orange' | 'red' | 'blue' | 'grey' | 'teal' | 'purple';
8
+ dataTestId?: string;
9
+ };
10
+ declare const Status: FC<StatusProps>;
11
+ export { StatusProps, Status };
@@ -0,0 +1 @@
1
+ import e from"react";import _ from"classnames";var o={component:"index-module_component__ow7Aw",upper_case:"index-module_upper_case__qm11K",m:"index-module_m__oJfGX",s:"index-module_s__caYRs",soft:"index-module_soft__BdoFt",green:"index-module_green__KVuFt",orange:"index-module_orange__RhVjy",red:"index-module_red__tLzKj",blue:"index-module_blue__Z-Cce",grey:"index-module_grey__0taE9",teal:"index-module_teal__wjFjP",purple:"index-module_purple__xJsve",contrast:"index-module_contrast__Y6fKB"},d=function(d){var n,r=d.className,t=d.view,a=d.color,m=d.children,l=d.dataTestId,s=d.upperCase,u=d.size,i=void 0===u?"s":u;return e.createElement("span",{className:_(o.component,o[a],o[i],o[t],r,(n={},n[o.upper_case]=s,n)),"data-test-id":l},m)};export{d as Status};
@@ -0,0 +1 @@
1
+ export * from "./component";
@@ -0,0 +1 @@
1
+ export{Status}from"./component.js";import"react";import"classnames";
@@ -0,0 +1,8 @@
1
+ import { FC } from 'react';
2
+ type SteppedProgressBarView = 'positive' | 'negative' | 'attention' | 'link' | 'tertiary' | 'secondary' | 'primary' | 'accent';
3
+ type StepBarProps = {
4
+ isDone: boolean;
5
+ view?: SteppedProgressBarView;
6
+ };
7
+ declare const StepBar: FC<StepBarProps>;
8
+ export { SteppedProgressBarView, StepBar };
@@ -0,0 +1 @@
1
+ import e,{memo as i}from"react";import n from"classnames";var o={bar:"index-module_bar__SJw07",positive:"index-module_positive__BV6AP",attention:"index-module_attention__yBWsh",negative:"index-module_negative__JYzop",link:"index-module_link__3hGbM",tertiary:"index-module_tertiary__4dElX",secondary:"index-module_secondary__J2aM7",primary:"index-module_primary__9D-Nm",accent:"index-module_accent__NXKi2",component:"index-module_component__bJPtL",stepsContainer:"index-module_stepsContainer__o8tZI",description:"index-module_description__JRG5S"},t=i((function(i){var t=i.isDone,_=i.view,d=void 0===_?"positive":_;return e.createElement("span",{"data-test-id":t?"on":"off",className:n(o.bar,t&&o[d])})}));export{t as S,o as s};
@@ -0,0 +1 @@
1
+ import"react";import"classnames";export{S as StepBar}from"../../step-bar-35269c17.js";
@@ -0,0 +1,23 @@
1
+ /// <reference types="react" />
2
+ import React from 'react';
3
+ import { FC } from "react";
4
+ import { SteppedProgressBarView } from "../step-bar-35269c17";
5
+ type SteppedProgressBarProps = {
6
+ maxStep: number;
7
+ description?: string;
8
+ step?: number;
9
+ view?: SteppedProgressBarView | SteppedProgressBarView[];
10
+ dataTestId?: string;
11
+ className?: string;
12
+ };
13
+ declare const SteppedProgressBar: FC<SteppedProgressBarProps>;
14
+ declare const useSteps: ({ maxStep, initialStep, }: {
15
+ maxStep: number;
16
+ initialStep?: number | undefined;
17
+ }) => {
18
+ step: number;
19
+ setStep: React.Dispatch<React.SetStateAction<number>>;
20
+ nextStep: () => void;
21
+ prevStep: () => void;
22
+ };
23
+ export { SteppedProgressBarProps, SteppedProgressBar, useSteps };
@@ -0,0 +1 @@
1
+ import t,{useState as e}from"react";import r from"classnames";import{Typography as o}from"../typography/component.js";import{s as a,S as i}from"../step-bar-35269c17.js";import"../typography/text/component.js";import"../colors.module-f96393ec.js";import"../typography/title/index.js";import"tslib";import"../typography/title/component.js";var n=function(e){var n=e.maxStep,p=e.description,s=e.step,m=void 0===s?0:s,c=e.view,l=e.dataTestId,d=e.className,y=n<=0?1:n,v="string"==typeof c;return t.createElement("div",{className:r(a.component,d),"data-test-id":l},t.createElement("div",{className:a.stepsContainer},Array.from(Array(y),(function(e,r){return t.createElement(i,{key:r,isDone:r<m,view:v?c:null==c?void 0:c[r]})}))),p&&t.createElement(o.Text,{color:"secondary",tag:"div",className:a.description,view:"primary-small"},p))},p=function(t){var r=t.maxStep,o=t.initialStep,a=e(void 0===o?1:o),i=a[0],n=a[1];return{step:i,setStep:n,nextStep:function(){n(i<r?i+1:r)},prevStep:function(){n(1===i?i:i-1)}}};export{n as SteppedProgressBar,p as useSteps};
@@ -0,0 +1,10 @@
1
+ /// <reference types="react" />
2
+ import React from 'react';
3
+ interface StickerProps {
4
+ className?: string;
5
+ color: 'yellow' | 'green' | 'white' | 'gray';
6
+ text: string;
7
+ dataTestId?: string;
8
+ }
9
+ declare const Sticker: React.FC<StickerProps>;
10
+ export { StickerProps, Sticker };
@@ -0,0 +1 @@
1
+ import e from"react";import n from"classnames";var t={component:"index-module_component__yE8Fi",yellow:"index-module_yellow__e9HEA",white:"index-module_white__vq66g",green:"index-module_green__YtEMp",blue:"index-module_blue__B76YL",gray:"index-module_gray__nmJqT"},o=function(o){var l=o.className,m=o.text,a=o.color,_=o.dataTestId;return e.createElement("div",{className:n(t.component,t[a],l),"data-test-id":_},e.createElement("span",null,m))};export{o as Sticker};
@@ -0,0 +1 @@
1
+ export * from "./component";
@@ -0,0 +1 @@
1
+ export{Sticker}from"./component.js";import"react";import"classnames";
@@ -0,0 +1,22 @@
1
+ /// <reference types="react" />
2
+ import React from 'react';
3
+ import { InputProps } from "../input/index";
4
+ type SuffixInputProps = Omit<InputProps, 'value' | 'onChange' | 'type'> & {
5
+ value: number | undefined | null;
6
+ suffix?: string;
7
+ required?: boolean;
8
+ bold?: boolean;
9
+ onChange: (e: React.ChangeEvent<HTMLInputElement>, payload: {
10
+ value: number | undefined | null;
11
+ }) => void;
12
+ };
13
+ declare const SuffixInput: React.ForwardRefExoticComponent<Omit<InputProps, "type" | "onChange" | "value"> & {
14
+ value: number | undefined | null;
15
+ suffix?: string | undefined;
16
+ required?: boolean | undefined;
17
+ bold?: boolean | undefined;
18
+ onChange: (e: React.ChangeEvent<HTMLInputElement>, payload: {
19
+ value: number | undefined | null;
20
+ }) => void;
21
+ } & React.RefAttributes<HTMLInputElement>>;
22
+ export { SuffixInputProps, SuffixInput };
@@ -0,0 +1 @@
1
+ import{__rest as e,__assign as o}from"tslib";import n,{forwardRef as r,useState as t,useEffect as a,useCallback as i,Fragment as l}from"react";import m from"classnames";import{Input as s}from"../input/component.js";import{withSuffix as u}from"../with-suffix/component.js";import"react-merge-refs";import"../button/component.js";import"../hooks/useFocus/index.js";import"../loader/component.js";import"../form-control/component.js";import"../portal/component.js";import"react-dom";import"../portal/utils.js";var d={container:"index-module_container__tczFF",minorPartAndCurrency:"index-module_minorPartAndCurrency__0K7XF",suffixContainer:"index-module_suffixContainer__8eIxg",filled:"index-module_filled__nKrpt",input:"index-module_input__SIj3W"},c=u(s),f=r((function(r,s){var u,f=r.value,p=r.suffix,C=r.placeholder,v=void 0===C?"":C,x=r.bold,_=void 0===x||x,N=r.className,j=r.focusedClassName,b=r.required,g=r.dataTestId,h=r.clear,I=void 0!==h&&h,y=r.onChange,E=r.onClear,F=e(r,["value","suffix","placeholder","bold","className","focusedClassName","required","dataTestId","clear","onChange","onClear"]),q=t(f),A=q[0],P=q[1];a((function(){return A!==f?P(f):function(){}}),[f]);var T=i((function(e){P(void 0),E&&E(e)}),[E]);return n.createElement("div",{className:m(d.container,(u={},u[d.bold]=_,u[d.filled]=Boolean(A),u))},n.createElement(c,o({},F,{suffix:n.createElement(l,null,A,n.createElement("span",{className:d.minorPartAndCurrency}," ",p)),suffixContainerClassName:d.suffixContainer,clear:I,required:b,placeholder:v,value:Number.isInteger(f)?""+f:void 0,type:"number",className:m(d.component,N),focusedClassName:j,inputClassName:d.input,onChange:function(e){var o=e.target.value;y&&y(e,{value:Number.isInteger(+o)?+o:void 0})},onClear:T,dataTestId:g,ref:s})))}));export{f as SuffixInput};
@@ -0,0 +1 @@
1
+ export * from "./component";
@@ -0,0 +1 @@
1
+ export{SuffixInput}from"./component.js";import"tslib";import"react";import"classnames";import"../input/component.js";import"react-merge-refs";import"../button/component.js";import"../hooks/useFocus/index.js";import"../loader/component.js";import"../form-control/component.js";import"../with-suffix/component.js";import"../portal/component.js";import"react-dom";import"../portal/utils.js";
@@ -0,0 +1,10 @@
1
+ /// <reference types="react" />
2
+ import React from 'react';
3
+ interface SuperListHeaderProps {
4
+ text: string;
5
+ handleClick?: () => void;
6
+ rightAddons?: React.ReactNode;
7
+ leftAddons?: React.ReactNode;
8
+ }
9
+ declare const SuperListHeader: React.FC<SuperListHeaderProps>;
10
+ export { SuperListHeaderProps, SuperListHeader };
@@ -0,0 +1 @@
1
+ import e from"react";import{Typography as t}from"../typography/component.js";import"../typography/text/component.js";import"classnames";import"../colors.module-f96393ec.js";import"../typography/title/index.js";import"tslib";import"../typography/title/component.js";var o="index-module_component__cofLq",m="index-module_leftSide__qNA7Y",r="index-module_leftAddons__l-m-3",n="index-module_rightAddons__m-u4n",i=function(i){var a=i.text,l=i.leftAddons,d=i.rightAddons;return e.createElement("div",{className:o},e.createElement("div",{className:m},e.createElement(t.Text,{color:"primary",weight:"bold",tag:"span"},a),l&&e.createElement("div",{className:r},l)),d&&e.createElement("div",{className:n},d))};export{i as SuperListHeader};
@@ -0,0 +1 @@
1
+ export * from "./component";
@@ -0,0 +1 @@
1
+ export{SuperListHeader}from"./component.js";import"react";import"../typography/component.js";import"../typography/text/component.js";import"classnames";import"../colors.module-f96393ec.js";import"../typography/title/index.js";import"tslib";import"../typography/title/component.js";
@@ -0,0 +1,14 @@
1
+ /// <reference types="react" />
2
+ import React from 'react';
3
+ interface SuperListItemProps {
4
+ text: string;
5
+ rightAddons?: React.ReactNode | string;
6
+ leftAddons?: React.ReactNode;
7
+ color?: 'primary' | 'negative';
8
+ weight?: 'bold' | 'regular' | 'medium';
9
+ disabled?: boolean;
10
+ hint?: string;
11
+ className?: string;
12
+ }
13
+ declare const SuperListItem: React.FC<SuperListItemProps>;
14
+ export { SuperListItemProps, SuperListItem };
@@ -0,0 +1 @@
1
+ import e from"react";import t from"classnames";import{Dot as o}from"../dot/component.js";import{Typography as r}from"../typography/component.js";import"../typography/text/component.js";import"../colors.module-f96393ec.js";import"../typography/title/index.js";import"tslib";import"../typography/title/component.js";var i="index-module_component__exnSI",m="index-module_leftSide__t9PJZ",a="index-module_content__Z53Wl",l="index-module_leftAddons__AhXk-",n="index-module_rightAddons__UjV9O",d=function(d){var c=d.text,s=d.rightAddons,p=d.leftAddons,v=d.color,g=void 0===v?"primary":v,_=d.disabled,x=d.className,y=d.weight,h=void 0===y?"regular":y,f=d.hint;return e.createElement("div",{className:t(i,x)},e.createElement("div",{className:m},p&&!_&&e.createElement("div",{className:l},p),_&&e.createElement("div",{className:l},e.createElement(o,{size:"sm",color:"grey"})),e.createElement("div",{className:a},e.createElement(r.Text,{weight:h,color:g,view:"title",tag:"div"},c),f&&e.createElement(r.Text,{color:"secondary",view:"caps",tag:"div"},f))),s&&e.createElement("div",{className:n},"string"==typeof s?e.createElement(r.Text,{weight:h,color:g,view:"title",tag:"div"},s):s))};export{d as SuperListItem};
@@ -0,0 +1 @@
1
+ export * from "./component";
@@ -0,0 +1 @@
1
+ export{SuperListItem}from"./component.js";import"react";import"classnames";import"../dot/component.js";import"../typography/component.js";import"../typography/text/component.js";import"../colors.module-f96393ec.js";import"../typography/title/index.js";import"tslib";import"../typography/title/component.js";