@alfalab/core-components-international-phone-input 1.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (389) hide show
  1. package/Component-4cd3936b.d.ts +19 -0
  2. package/Component-63dec22f.d.ts +184 -0
  3. package/Component-8b2c2707.d.ts +71 -0
  4. package/Component-9211a437.d.ts +38 -0
  5. package/Component-bdb4c6b9.d.ts +12 -0
  6. package/Component-c76d6398.d.ts +5 -0
  7. package/Component-d078a845.d.ts +7 -0
  8. package/Component-dd8ca091.d.ts +72 -0
  9. package/Component-ebda875c.d.ts +12 -0
  10. package/Component.desktop-2e2b2125.d.ts +6 -0
  11. package/Component.desktop-785df74d.d.ts +6 -0
  12. package/Component.desktop-d078a845.d.ts +73 -0
  13. package/Component.desktop-d873d97d.d.ts +6 -0
  14. package/Component.desktop.d.ts +5 -0
  15. package/Component.desktop.js +47 -0
  16. package/Component.mobile-4cd3936b.d.ts +98 -0
  17. package/Component.mobile-755fbaa3.d.ts +6 -0
  18. package/Component.mobile-ade26e99.d.ts +41 -0
  19. package/Component.mobile-d7e9f69d.d.ts +6 -0
  20. package/Component.mobile-ebda875c.d.ts +6 -0
  21. package/Component.mobile-f1f15074.d.ts +34 -0
  22. package/Component.mobile.d.ts +5 -0
  23. package/Component.mobile.js +82 -0
  24. package/Component.modal.mobile-4cd3936b.d.ts +91 -0
  25. package/Component.modal.mobile-dd8ca091.d.ts +60 -0
  26. package/Component.responsive-785df74d.d.ts +26 -0
  27. package/Component.responsive.d.ts +46 -0
  28. package/Component.responsive.js +43 -0
  29. package/Context-bdb4c6b9.d.ts +4 -0
  30. package/ResponsiveContext-baf4875b.d.ts +5 -0
  31. package/components/base-international-phone-input/Component.d.ts +26 -0
  32. package/components/base-international-phone-input/Component.js +98 -0
  33. package/components/base-international-phone-input/index.css +5 -0
  34. package/components/base-international-phone-input/index.d.ts +1 -0
  35. package/components/base-international-phone-input/index.js +26 -0
  36. package/components/country-select/Component.d.ts +21 -0
  37. package/components/country-select/Component.js +60 -0
  38. package/components/country-select/index.css +47 -0
  39. package/components/country-select/index.d.ts +1 -0
  40. package/components/country-select/index.js +20 -0
  41. package/components/flag-icon/component.d.ts +16 -0
  42. package/components/flag-icon/component.js +27 -0
  43. package/components/flag-icon/flagSprite.d.ts +2 -0
  44. package/components/flag-icon/flagSprite.js +233 -0
  45. package/components/flag-icon/index.css +30 -0
  46. package/components/flag-icon/index.d.ts +1 -0
  47. package/components/flag-icon/index.js +12 -0
  48. package/components/select-field/component.d.ts +8 -0
  49. package/components/select-field/component.js +43 -0
  50. package/components/select-field/index.css +53 -0
  51. package/components/select-field/index.d.ts +1 -0
  52. package/components/select-field/index.js +18 -0
  53. package/consts-f777ba1a.d.ts +2 -0
  54. package/consts.d.ts +2 -0
  55. package/consts.js +7 -0
  56. package/cssm/Component-4cd3936b.d.ts +7 -0
  57. package/cssm/Component-8b2c2707.d.ts +71 -0
  58. package/cssm/Component-9211a437.d.ts +38 -0
  59. package/cssm/Component-96988a65.d.ts +9 -0
  60. package/cssm/Component-aed0af6e.d.ts +11 -0
  61. package/cssm/Component-bdb4c6b9.d.ts +12 -0
  62. package/cssm/Component-c76d6398.d.ts +5 -0
  63. package/cssm/Component-dd8ca091.d.ts +5 -0
  64. package/cssm/Component-ebda875c.d.ts +101 -0
  65. package/cssm/Component-f12ee135.d.ts +72 -0
  66. package/cssm/Component.desktop-2e2b2125.d.ts +6 -0
  67. package/cssm/Component.desktop-4cd3936b.d.ts +73 -0
  68. package/cssm/Component.desktop-785df74d.d.ts +6 -0
  69. package/cssm/Component.desktop-d873d97d.d.ts +6 -0
  70. package/cssm/Component.desktop-ebda875c.d.ts +18 -0
  71. package/cssm/Component.desktop.d.ts +5 -0
  72. package/cssm/Component.desktop.js +51 -0
  73. package/cssm/Component.mobile-755fbaa3.d.ts +6 -0
  74. package/cssm/Component.mobile-ade26e99.d.ts +41 -0
  75. package/cssm/Component.mobile-d7e9f69d.d.ts +6 -0
  76. package/cssm/Component.mobile-f1f15074.d.ts +34 -0
  77. package/cssm/Component.mobile.d.ts +5 -0
  78. package/cssm/Component.mobile.js +86 -0
  79. package/cssm/Component.responsive-d7e9f69d.d.ts +26 -0
  80. package/cssm/Component.responsive.d.ts +46 -0
  81. package/cssm/Component.responsive.js +47 -0
  82. package/cssm/Context-bdb4c6b9.d.ts +4 -0
  83. package/cssm/ResponsiveContext-baf4875b.d.ts +5 -0
  84. package/cssm/components/base-international-phone-input/Component.d.ts +26 -0
  85. package/cssm/components/base-international-phone-input/Component.js +100 -0
  86. package/cssm/components/base-international-phone-input/index.d.ts +1 -0
  87. package/cssm/components/base-international-phone-input/index.js +30 -0
  88. package/cssm/components/base-international-phone-input/index.module.css +4 -0
  89. package/cssm/components/country-select/Component.d.ts +21 -0
  90. package/cssm/components/country-select/Component.js +61 -0
  91. package/cssm/components/country-select/index.d.ts +1 -0
  92. package/cssm/components/country-select/index.js +23 -0
  93. package/cssm/components/country-select/index.module.css +47 -0
  94. package/cssm/components/flag-icon/component.d.ts +16 -0
  95. package/cssm/components/flag-icon/component.js +26 -0
  96. package/cssm/components/flag-icon/flagSprite.d.ts +2 -0
  97. package/cssm/components/flag-icon/flagSprite.js +233 -0
  98. package/cssm/components/flag-icon/index.d.ts +1 -0
  99. package/cssm/components/flag-icon/index.js +13 -0
  100. package/cssm/components/flag-icon/index.module.css +29 -0
  101. package/cssm/components/select-field/component.d.ts +8 -0
  102. package/cssm/components/select-field/component.js +43 -0
  103. package/cssm/components/select-field/index.d.ts +1 -0
  104. package/cssm/components/select-field/index.js +20 -0
  105. package/cssm/components/select-field/index.module.css +52 -0
  106. package/cssm/consts-f777ba1a.d.ts +2 -0
  107. package/cssm/consts.d.ts +2 -0
  108. package/cssm/consts.js +7 -0
  109. package/cssm/data/country-data.d.ts +3 -0
  110. package/cssm/data/country-data.js +587 -0
  111. package/cssm/desktop-232828f7.d.ts +2 -0
  112. package/cssm/desktop-2e2b2125.d.ts +2 -0
  113. package/cssm/desktop-63dec22f.d.ts +2 -0
  114. package/cssm/desktop-785df74d.d.ts +2 -0
  115. package/cssm/desktop.d.ts +2 -0
  116. package/cssm/desktop.js +34 -0
  117. package/cssm/hook-8abfea97.d.ts +90 -0
  118. package/cssm/hook-ebda875c.d.ts +48 -0
  119. package/cssm/index-136acbb1.d.ts +28 -0
  120. package/cssm/index-72dda473.d.ts +12 -0
  121. package/cssm/index-8b2c2707.d.ts +6 -0
  122. package/cssm/index-bdb4c6b9.d.ts +180 -0
  123. package/cssm/index-c76d6398.d.ts +319 -0
  124. package/cssm/index-ebda875c.d.ts +3 -0
  125. package/cssm/index-f12ee135.d.ts +52 -0
  126. package/cssm/index.d.ts +2 -0
  127. package/cssm/index.js +40 -0
  128. package/cssm/mobile-45dc17c6.d.ts +47 -0
  129. package/cssm/mobile-4c19bc40.d.ts +121 -0
  130. package/cssm/mobile-96988a65.d.ts +3 -0
  131. package/cssm/mobile.d.ts +2 -0
  132. package/cssm/mobile.js +34 -0
  133. package/cssm/shared-4cd3936b.d.ts +7 -0
  134. package/cssm/types-1b036d4b.d.ts +13 -0
  135. package/cssm/types-72dda473.d.ts +276 -0
  136. package/cssm/types.d.ts +100 -0
  137. package/cssm/types.js +2 -0
  138. package/cssm/typings-9211a437.d.ts +95 -0
  139. package/cssm/typings-bdb4c6b9.d.ts +52 -0
  140. package/cssm/typings-dd8ca091.d.ts +572 -0
  141. package/cssm/useSkeleton-1b036d4b.d.ts +12 -0
  142. package/cssm/utils/index.d.ts +18 -0
  143. package/cssm/utils/index.js +201 -0
  144. package/cssm/utils-dd8ca091.d.ts +41 -0
  145. package/data/country-data.d.ts +3 -0
  146. package/data/country-data.js +587 -0
  147. package/desktop-232828f7.d.ts +2 -0
  148. package/desktop-2e2b2125.d.ts +2 -0
  149. package/desktop-63dec22f.d.ts +2 -0
  150. package/desktop.d.ts +2 -0
  151. package/desktop.js +30 -0
  152. package/esm/Component-4cd3936b.d.ts +19 -0
  153. package/esm/Component-63dec22f.d.ts +184 -0
  154. package/esm/Component-8b2c2707.d.ts +71 -0
  155. package/esm/Component-9211a437.d.ts +38 -0
  156. package/esm/Component-bdb4c6b9.d.ts +12 -0
  157. package/esm/Component-c76d6398.d.ts +5 -0
  158. package/esm/Component-d078a845.d.ts +7 -0
  159. package/esm/Component-dd8ca091.d.ts +72 -0
  160. package/esm/Component-ebda875c.d.ts +12 -0
  161. package/esm/Component.desktop-2e2b2125.d.ts +6 -0
  162. package/esm/Component.desktop-785df74d.d.ts +6 -0
  163. package/esm/Component.desktop-d078a845.d.ts +73 -0
  164. package/esm/Component.desktop-d873d97d.d.ts +6 -0
  165. package/esm/Component.desktop.d.ts +5 -0
  166. package/esm/Component.desktop.js +39 -0
  167. package/esm/Component.mobile-4cd3936b.d.ts +98 -0
  168. package/esm/Component.mobile-755fbaa3.d.ts +6 -0
  169. package/esm/Component.mobile-ade26e99.d.ts +41 -0
  170. package/esm/Component.mobile-d7e9f69d.d.ts +6 -0
  171. package/esm/Component.mobile-ebda875c.d.ts +6 -0
  172. package/esm/Component.mobile-f1f15074.d.ts +34 -0
  173. package/esm/Component.mobile.d.ts +5 -0
  174. package/esm/Component.mobile.js +74 -0
  175. package/esm/Component.modal.mobile-4cd3936b.d.ts +91 -0
  176. package/esm/Component.modal.mobile-dd8ca091.d.ts +60 -0
  177. package/esm/Component.responsive-785df74d.d.ts +26 -0
  178. package/esm/Component.responsive.d.ts +46 -0
  179. package/esm/Component.responsive.js +35 -0
  180. package/esm/Context-bdb4c6b9.d.ts +4 -0
  181. package/esm/ResponsiveContext-baf4875b.d.ts +5 -0
  182. package/esm/components/base-international-phone-input/Component.d.ts +26 -0
  183. package/esm/components/base-international-phone-input/Component.js +89 -0
  184. package/esm/components/base-international-phone-input/index.css +5 -0
  185. package/esm/components/base-international-phone-input/index.d.ts +1 -0
  186. package/esm/components/base-international-phone-input/index.js +18 -0
  187. package/esm/components/country-select/Component.d.ts +21 -0
  188. package/esm/components/country-select/Component.js +52 -0
  189. package/esm/components/country-select/index.css +47 -0
  190. package/esm/components/country-select/index.d.ts +1 -0
  191. package/esm/components/country-select/index.js +12 -0
  192. package/esm/components/flag-icon/component.d.ts +16 -0
  193. package/esm/components/flag-icon/component.js +18 -0
  194. package/esm/components/flag-icon/flagSprite.d.ts +2 -0
  195. package/esm/components/flag-icon/flagSprite.js +229 -0
  196. package/esm/components/flag-icon/index.css +30 -0
  197. package/esm/components/flag-icon/index.d.ts +1 -0
  198. package/esm/components/flag-icon/index.js +4 -0
  199. package/esm/components/select-field/component.d.ts +8 -0
  200. package/esm/components/select-field/component.js +32 -0
  201. package/esm/components/select-field/index.css +53 -0
  202. package/esm/components/select-field/index.d.ts +1 -0
  203. package/esm/components/select-field/index.js +9 -0
  204. package/esm/consts-f777ba1a.d.ts +2 -0
  205. package/esm/consts.d.ts +2 -0
  206. package/esm/consts.js +3 -0
  207. package/esm/data/country-data.d.ts +3 -0
  208. package/esm/data/country-data.js +583 -0
  209. package/esm/desktop-232828f7.d.ts +2 -0
  210. package/esm/desktop-2e2b2125.d.ts +2 -0
  211. package/esm/desktop-63dec22f.d.ts +2 -0
  212. package/esm/desktop.d.ts +2 -0
  213. package/esm/desktop.js +22 -0
  214. package/esm/hook-8abfea97.d.ts +90 -0
  215. package/esm/index-136acbb1.d.ts +28 -0
  216. package/esm/index-72dda473.d.ts +12 -0
  217. package/esm/index-8b2c2707.d.ts +6 -0
  218. package/esm/index-bdb4c6b9.d.ts +2 -0
  219. package/esm/index-c76d6398.d.ts +141 -0
  220. package/esm/index-ebda875c.d.ts +3 -0
  221. package/esm/index-f12ee135.d.ts +52 -0
  222. package/esm/index.d.ts +2 -0
  223. package/esm/index.js +28 -0
  224. package/esm/mobile-4c19bc40.d.ts +3 -0
  225. package/esm/mobile-755fbaa3.d.ts +2 -0
  226. package/esm/mobile-96988a65.d.ts +2 -0
  227. package/esm/mobile-ade26e99.d.ts +5 -0
  228. package/esm/mobile-d7e9f69d.d.ts +2 -0
  229. package/esm/mobile.d.ts +2 -0
  230. package/esm/mobile.js +22 -0
  231. package/esm/shared-4cd3936b.d.ts +65 -0
  232. package/esm/types-1b036d4b.d.ts +13 -0
  233. package/esm/types-72dda473.d.ts +276 -0
  234. package/esm/types.d.ts +100 -0
  235. package/esm/types.js +1 -0
  236. package/esm/typings-9211a437.d.ts +95 -0
  237. package/esm/typings-bdb4c6b9.d.ts +52 -0
  238. package/esm/typings-dd8ca091.d.ts +572 -0
  239. package/esm/useSkeleton-ebda875c.d.ts +12 -0
  240. package/esm/utils/index.d.ts +18 -0
  241. package/esm/utils/index.js +189 -0
  242. package/esm/utils-1574ad8b.d.ts +29 -0
  243. package/esm/utils-dd8ca091.d.ts +41 -0
  244. package/hook-8abfea97.d.ts +90 -0
  245. package/index-136acbb1.d.ts +28 -0
  246. package/index-72dda473.d.ts +12 -0
  247. package/index-8b2c2707.d.ts +6 -0
  248. package/index-bdb4c6b9.d.ts +2 -0
  249. package/index-c76d6398.d.ts +141 -0
  250. package/index-ebda875c.d.ts +3 -0
  251. package/index-f12ee135.d.ts +52 -0
  252. package/index.d.ts +2 -0
  253. package/index.js +36 -0
  254. package/mobile-4c19bc40.d.ts +3 -0
  255. package/mobile-755fbaa3.d.ts +2 -0
  256. package/mobile-96988a65.d.ts +2 -0
  257. package/mobile-ade26e99.d.ts +5 -0
  258. package/mobile-d7e9f69d.d.ts +2 -0
  259. package/mobile.d.ts +2 -0
  260. package/mobile.js +30 -0
  261. package/modern/Component-4cd3936b.d.ts +19 -0
  262. package/modern/Component-63dec22f.d.ts +184 -0
  263. package/modern/Component-8b2c2707.d.ts +71 -0
  264. package/modern/Component-9211a437.d.ts +38 -0
  265. package/modern/Component-bdb4c6b9.d.ts +12 -0
  266. package/modern/Component-c76d6398.d.ts +5 -0
  267. package/modern/Component-d078a845.d.ts +7 -0
  268. package/modern/Component-dd8ca091.d.ts +72 -0
  269. package/modern/Component-ebda875c.d.ts +12 -0
  270. package/modern/Component.desktop-2e2b2125.d.ts +6 -0
  271. package/modern/Component.desktop-785df74d.d.ts +6 -0
  272. package/modern/Component.desktop-d078a845.d.ts +73 -0
  273. package/modern/Component.desktop-d873d97d.d.ts +6 -0
  274. package/modern/Component.desktop.d.ts +5 -0
  275. package/modern/Component.desktop.js +35 -0
  276. package/modern/Component.mobile-4cd3936b.d.ts +98 -0
  277. package/modern/Component.mobile-755fbaa3.d.ts +6 -0
  278. package/modern/Component.mobile-ade26e99.d.ts +41 -0
  279. package/modern/Component.mobile-d7e9f69d.d.ts +6 -0
  280. package/modern/Component.mobile-ebda875c.d.ts +6 -0
  281. package/modern/Component.mobile-f1f15074.d.ts +34 -0
  282. package/modern/Component.mobile.d.ts +5 -0
  283. package/modern/Component.mobile.js +77 -0
  284. package/modern/Component.modal.mobile-4cd3936b.d.ts +91 -0
  285. package/modern/Component.modal.mobile-dd8ca091.d.ts +60 -0
  286. package/modern/Component.responsive-785df74d.d.ts +26 -0
  287. package/modern/Component.responsive.d.ts +46 -0
  288. package/modern/Component.responsive.js +33 -0
  289. package/modern/Context-bdb4c6b9.d.ts +4 -0
  290. package/modern/ResponsiveContext-baf4875b.d.ts +5 -0
  291. package/modern/components/base-international-phone-input/Component.d.ts +26 -0
  292. package/modern/components/base-international-phone-input/Component.js +91 -0
  293. package/modern/components/base-international-phone-input/index.css +5 -0
  294. package/modern/components/base-international-phone-input/index.d.ts +1 -0
  295. package/modern/components/base-international-phone-input/index.js +17 -0
  296. package/modern/components/country-select/Component.d.ts +21 -0
  297. package/modern/components/country-select/Component.js +47 -0
  298. package/modern/components/country-select/index.css +47 -0
  299. package/modern/components/country-select/index.d.ts +1 -0
  300. package/modern/components/country-select/index.js +11 -0
  301. package/modern/components/flag-icon/component.d.ts +16 -0
  302. package/modern/components/flag-icon/component.js +15 -0
  303. package/modern/components/flag-icon/flagSprite.d.ts +2 -0
  304. package/modern/components/flag-icon/flagSprite.js +229 -0
  305. package/modern/components/flag-icon/index.css +30 -0
  306. package/modern/components/flag-icon/index.d.ts +1 -0
  307. package/modern/components/flag-icon/index.js +4 -0
  308. package/modern/components/select-field/component.d.ts +8 -0
  309. package/modern/components/select-field/component.js +29 -0
  310. package/modern/components/select-field/index.css +53 -0
  311. package/modern/components/select-field/index.d.ts +1 -0
  312. package/modern/components/select-field/index.js +8 -0
  313. package/modern/consts-f777ba1a.d.ts +2 -0
  314. package/modern/consts.d.ts +2 -0
  315. package/modern/consts.js +3 -0
  316. package/modern/data/country-data.d.ts +3 -0
  317. package/modern/data/country-data.js +583 -0
  318. package/modern/desktop-232828f7.d.ts +2 -0
  319. package/modern/desktop-2e2b2125.d.ts +2 -0
  320. package/modern/desktop-63dec22f.d.ts +2 -0
  321. package/modern/desktop.d.ts +2 -0
  322. package/modern/desktop.js +21 -0
  323. package/modern/hook-8abfea97.d.ts +90 -0
  324. package/modern/index-136acbb1.d.ts +28 -0
  325. package/modern/index-72dda473.d.ts +12 -0
  326. package/modern/index-8b2c2707.d.ts +6 -0
  327. package/modern/index-bdb4c6b9.d.ts +2 -0
  328. package/modern/index-c76d6398.d.ts +141 -0
  329. package/modern/index-ebda875c.d.ts +3 -0
  330. package/modern/index-f12ee135.d.ts +52 -0
  331. package/modern/index.d.ts +2 -0
  332. package/modern/index.js +27 -0
  333. package/modern/mobile-4c19bc40.d.ts +3 -0
  334. package/modern/mobile-755fbaa3.d.ts +2 -0
  335. package/modern/mobile-96988a65.d.ts +2 -0
  336. package/modern/mobile-ade26e99.d.ts +5 -0
  337. package/modern/mobile-d7e9f69d.d.ts +2 -0
  338. package/modern/mobile.d.ts +2 -0
  339. package/modern/mobile.js +21 -0
  340. package/modern/shared-4cd3936b.d.ts +65 -0
  341. package/modern/types-1b036d4b.d.ts +13 -0
  342. package/modern/types-72dda473.d.ts +276 -0
  343. package/modern/types.d.ts +100 -0
  344. package/modern/types.js +1 -0
  345. package/modern/typings-9211a437.d.ts +95 -0
  346. package/modern/typings-bdb4c6b9.d.ts +52 -0
  347. package/modern/typings-dd8ca091.d.ts +572 -0
  348. package/modern/useSkeleton-ebda875c.d.ts +12 -0
  349. package/modern/utils/index.d.ts +18 -0
  350. package/modern/utils/index.js +183 -0
  351. package/modern/utils-1574ad8b.d.ts +29 -0
  352. package/modern/utils-dd8ca091.d.ts +41 -0
  353. package/package.json +30 -0
  354. package/shared-4cd3936b.d.ts +65 -0
  355. package/src/Component.desktop.tsx +68 -0
  356. package/src/Component.mobile.tsx +132 -0
  357. package/src/Component.responsive.tsx +20 -0
  358. package/src/components/base-international-phone-input/Component.tsx +174 -0
  359. package/src/components/base-international-phone-input/index.module.css +5 -0
  360. package/src/components/base-international-phone-input/index.ts +1 -0
  361. package/src/components/country-select/Component.tsx +120 -0
  362. package/src/components/country-select/index.module.css +40 -0
  363. package/src/components/country-select/index.ts +1 -0
  364. package/src/components/flag-icon/component.tsx +33 -0
  365. package/src/components/flag-icon/flagSprite.ts +228 -0
  366. package/src/components/flag-icon/index.module.css +15 -0
  367. package/src/components/flag-icon/index.ts +1 -0
  368. package/src/components/select-field/component.tsx +51 -0
  369. package/src/components/select-field/index.module.css +43 -0
  370. package/src/components/select-field/index.ts +1 -0
  371. package/src/consts.ts +1 -0
  372. package/src/data/country-data.ts +584 -0
  373. package/src/desktop.ts +2 -0
  374. package/src/index.ts +2 -0
  375. package/src/mobile.ts +2 -0
  376. package/src/types.ts +132 -0
  377. package/src/utils/index.ts +246 -0
  378. package/types-1b036d4b.d.ts +13 -0
  379. package/types-72dda473.d.ts +276 -0
  380. package/types.d.ts +100 -0
  381. package/types.js +2 -0
  382. package/typings-9211a437.d.ts +95 -0
  383. package/typings-bdb4c6b9.d.ts +52 -0
  384. package/typings-dd8ca091.d.ts +572 -0
  385. package/useSkeleton-ebda875c.d.ts +12 -0
  386. package/utils/index.d.ts +18 -0
  387. package/utils/index.js +201 -0
  388. package/utils-1574ad8b.d.ts +29 -0
  389. package/utils-dd8ca091.d.ts +41 -0
@@ -0,0 +1,189 @@
1
+ import { __assign, __spreadArray } from 'tslib';
2
+ import { isGroup } from '@alfalab/core-components-select/esm/shared';
3
+ import { maskUtils } from '@alfalab/core-components-shared/esm';
4
+ import { DEFAULT_PHONE_FORMAT } from '../consts.js';
5
+ import { countriesData } from '../data/country-data.js';
6
+
7
+ function initCountries(iso2s) {
8
+ var filteredCountriesData = Array.isArray(iso2s)
9
+ ? countriesData.filter(function (country) { return iso2s.includes(country[2]); })
10
+ : countriesData;
11
+ return filteredCountriesData.map(function (country) {
12
+ var _a;
13
+ var countryItem = {
14
+ name: country[0],
15
+ regions: country[1],
16
+ iso2: country[2],
17
+ countryCode: country[3],
18
+ dialCode: country[3],
19
+ format: country[4],
20
+ priority: country[5] || 0,
21
+ };
22
+ var areaItems = [];
23
+ if (country[6]) {
24
+ (_a = country[6]) === null || _a === void 0 ? void 0 : _a.forEach(function (areaCode) {
25
+ var areaItem = __assign({}, countryItem);
26
+ areaItem.dialCode = country[3] + areaCode;
27
+ areaItem.isAreaCode = true;
28
+ areaItem.areaCodeLength = areaCode.length;
29
+ areaItems.push(areaItem);
30
+ });
31
+ }
32
+ if (areaItems.length > 0) {
33
+ countryItem.mainCode = true;
34
+ return __spreadArray([countryItem], areaItems, true);
35
+ }
36
+ return [countryItem];
37
+ });
38
+ }
39
+ function findCountry(countries, value, iso2, country) {
40
+ var _a;
41
+ if (country)
42
+ return country;
43
+ if (value) {
44
+ var inputNumber = clearMask(value);
45
+ var nextCountry = guessCountry(inputNumber, countries);
46
+ if (nextCountry)
47
+ return nextCountry;
48
+ }
49
+ if (!iso2)
50
+ return undefined;
51
+ return (_a = countries.find(function (c) { return c[0].iso2 === iso2; })) === null || _a === void 0 ? void 0 : _a[0];
52
+ }
53
+ function guessCountry(inputNumber, data) {
54
+ var _a;
55
+ var inputNumberDialCode = inputNumber.slice(0, 6);
56
+ var result = data.reduce(function (selectedCountry, countryData) {
57
+ var guess;
58
+ countryData.forEach(function (country) {
59
+ if (inputNumberDialCode.startsWith(country.dialCode)) {
60
+ var selectedCountryDialCode = (selectedCountry === null || selectedCountry === void 0 ? void 0 : selectedCountry.dialCode) || '';
61
+ var selectedCountryPriority = (selectedCountry === null || selectedCountry === void 0 ? void 0 : selectedCountry.priority) || 100;
62
+ if (country.dialCode.length > selectedCountryDialCode.length) {
63
+ guess = country;
64
+ }
65
+ if (country.dialCode.length === selectedCountryDialCode.length &&
66
+ country.priority < selectedCountryPriority) {
67
+ guess = country;
68
+ }
69
+ }
70
+ });
71
+ return guess || selectedCountry;
72
+ }, undefined);
73
+ if (!result && inputNumber.length > 5 && inputNumber.startsWith('8'))
74
+ return (_a = data.find(function (countryData) { return countryData[0].iso2 === 'ru'; })) === null || _a === void 0 ? void 0 : _a[0];
75
+ return result;
76
+ }
77
+ function clearMask(value) {
78
+ return value.replace(/\D/g, '');
79
+ }
80
+ function itemToMask(item) {
81
+ return item === '.' ? /\d/ : item;
82
+ }
83
+ function prepareDefaultFormat(countryCode, clearableCountryCode) {
84
+ if (!countryCode)
85
+ return __spreadArray(['+'], DEFAULT_PHONE_FORMAT.split('').map(itemToMask), true);
86
+ var removeDots = function (count) {
87
+ var removed = 0;
88
+ var res = DEFAULT_PHONE_FORMAT;
89
+ while (removed < count) {
90
+ res = res.replace(/\./, '');
91
+ removed += 1;
92
+ }
93
+ return res.trim();
94
+ };
95
+ if (clearableCountryCode) {
96
+ return __spreadArray(__spreadArray(__spreadArray([
97
+ '+'
98
+ ], countryCode.split('').map(function () { return /\d/; }), true), [
99
+ ' '
100
+ ], false), removeDots(countryCode.length).split('').map(itemToMask).reverse(), true);
101
+ }
102
+ return __spreadArray(__spreadArray(__spreadArray([
103
+ '+'
104
+ ], countryCode.split(''), true), [
105
+ ' '
106
+ ], false), removeDots(countryCode.length).split('').map(itemToMask).reverse(), true);
107
+ }
108
+ function createPhoneMaskExpression(country, clearableCountryCode) {
109
+ var _a = country || {}, countryCode = _a.countryCode, format = _a.format;
110
+ if (!countryCode || !format) {
111
+ return prepareDefaultFormat(countryCode, clearableCountryCode);
112
+ }
113
+ return __spreadArray(__spreadArray(__spreadArray([
114
+ '+'
115
+ ], (clearableCountryCode ? countryCode.split('').map(function () { return /\d/; }) : countryCode.split('')), true), [
116
+ ' '
117
+ ], false), format.split('').map(function (item) { return (item === '.' ? /\d/ : item); }), true);
118
+ }
119
+ function createMaskOptions(country, clearableCountryCode) {
120
+ var prefixLen = !clearableCountryCode && (country === null || country === void 0 ? void 0 : country.countryCode) ? country.countryCode.length + 1 : 0;
121
+ var mask = createPhoneMaskExpression(country, clearableCountryCode);
122
+ return {
123
+ mask: mask,
124
+ preprocessors: [
125
+ maskUtils.insertionPhonePreprocessor(mask, country === null || country === void 0 ? void 0 : country.countryCode, clearableCountryCode),
126
+ ],
127
+ postprocessors: [
128
+ maskUtils.prefixPostprocessor(prefixLen ? "+".concat(country === null || country === void 0 ? void 0 : country.countryCode) : ''),
129
+ ],
130
+ plugins: [
131
+ maskUtils.caretGuard(function (value, _a) {
132
+ var from = _a[0], to = _a[1];
133
+ return [
134
+ from === to ? prefixLen : 0,
135
+ value.length,
136
+ ];
137
+ }),
138
+ ],
139
+ };
140
+ }
141
+ function defaultFilterFn(value, option) {
142
+ if (value === void 0) { value = ''; }
143
+ return clearMask(option.key).includes(clearMask(value));
144
+ }
145
+ var filterPhones = function (value, options, filterFn) {
146
+ if (value === void 0) { value = ''; }
147
+ if (filterFn === void 0) { filterFn = defaultFilterFn; }
148
+ if (!options || options.length === 0)
149
+ return options;
150
+ var filteredOptions = [];
151
+ options.forEach(function (option) {
152
+ if (isGroup(option)) {
153
+ var group_1 = __assign(__assign({}, option), { options: [] });
154
+ option.options.forEach(function (groupOption) {
155
+ if (filterFn(value, groupOption))
156
+ group_1.options.push(groupOption);
157
+ });
158
+ if (group_1.options.length)
159
+ filteredOptions.push(group_1);
160
+ }
161
+ else if (filterFn(value, option))
162
+ filteredOptions.push(option);
163
+ });
164
+ return filteredOptions;
165
+ };
166
+ function getPhoneData(phone, countries, defaultIso2) {
167
+ var nextPhone = phone;
168
+ var inputNumber = clearMask(nextPhone);
169
+ var nextCountry = findCountry(countries, phone, defaultIso2);
170
+ if ((nextCountry === null || nextCountry === void 0 ? void 0 : nextCountry.iso2) === 'ru' && inputNumber.length > 5 && inputNumber.startsWith('8')) {
171
+ nextPhone = phone.replace(/\+?8/, '+7');
172
+ }
173
+ return {
174
+ nextPhone: nextPhone,
175
+ nextCountry: nextCountry,
176
+ };
177
+ }
178
+ function getClear(clear, clearableCountryCode, value, countryCode) {
179
+ if (value === void 0) { value = ''; }
180
+ if (countryCode === void 0) { countryCode = ''; }
181
+ if (!clear)
182
+ return clear;
183
+ var trimmedValue = value.trim();
184
+ return clearableCountryCode
185
+ ? trimmedValue !== '' && trimmedValue !== '+'
186
+ : trimmedValue.length > countryCode.length + 1;
187
+ }
188
+
189
+ export { clearMask, createMaskOptions, createPhoneMaskExpression, filterPhones, findCountry, getClear, getPhoneData, guessCountry, initCountries };
@@ -0,0 +1,29 @@
1
+ type SavedStyle = {
2
+ value: string;
3
+ key: string;
4
+ el: HTMLElement;
5
+ };
6
+ type RestoreStyle = {
7
+ container: HTMLElement;
8
+ modals: number;
9
+ styles: SavedStyle[];
10
+ };
11
+ declare class ModalStore {
12
+ private readonly restoreStyles;
13
+ constructor();
14
+ getRestoreStyles: () => RestoreStyle[];
15
+ }
16
+ declare const getModalStore: () => ModalStore;
17
+ declare class GlobalStore {
18
+ private readonly modalStore;
19
+ constructor();
20
+ getModalStore: () => ModalStore;
21
+ }
22
+ declare function isScrolledToTop(target: HTMLElement): boolean;
23
+ declare function isScrolledToBottom(target: HTMLElement): boolean;
24
+ declare function hasScrollbar(target: HTMLElement): boolean;
25
+ declare const getScrollbarSize: () => number;
26
+ declare const restoreContainerStyles: (container: HTMLElement) => void;
27
+ declare const handleContainer: (container?: HTMLElement) => void;
28
+ export type { SavedStyle };
29
+ export { getModalStore, GlobalStore, isScrolledToTop, isScrolledToBottom, hasScrollbar, getScrollbarSize, restoreContainerStyles, handleContainer };
@@ -0,0 +1,41 @@
1
+ import { ReactNode, RefObject } from 'react';
2
+ import { BaseSelectProps, GroupShape, OptionShape } from "./typings-dd8ca091";
3
+ declare const isGroup: (item: OptionShape | GroupShape) => item is GroupShape;
4
+ declare const isOptionShape: (item: OptionShape | string | 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'], filterFn?: (option: OptionShape) => boolean): {
10
+ filteredOptions: (OptionShape | GroupShape)[];
11
+ flatOptions: OptionShape[];
12
+ selectedOptions: OptionShape[];
13
+ };
14
+ type useVisibleOptionsArgs = {
15
+ /**
16
+ * Количество видимых пунктов
17
+ */
18
+ visibleOptions: number;
19
+ /**
20
+ * Реф на контейнер с пунтами меню
21
+ */
22
+ listRef: RefObject<HTMLElement>;
23
+ /**
24
+ * Реф на контейнер, которому нужно установить высоту
25
+ */
26
+ styleTargetRef?: RefObject<HTMLElement>;
27
+ /**
28
+ * Флаг открытия меню
29
+ */
30
+ open?: boolean;
31
+ /**
32
+ * Позволяет вызвать пересчет высоты
33
+ */
34
+ invalidate?: unknown;
35
+ };
36
+ declare function useVisibleOptions({ visibleOptions, listRef, styleTargetRef, open, invalidate, }: useVisibleOptionsArgs): void;
37
+ declare function defaultFilterFn(optionText: string, search: string): boolean;
38
+ declare function defaultAccessor(option: OptionShape): string;
39
+ declare function usePrevious<T>(value: T): T | undefined;
40
+ declare const lastIndexOf: <T>(array: T[], predicate: (item: T) => boolean) => number;
41
+ export { isGroup, isOptionShape, joinOptions, processOptions, useVisibleOptions, defaultFilterFn, defaultAccessor, usePrevious, lastIndexOf };
@@ -0,0 +1,90 @@
1
+ /// <reference types="react" />
2
+ import { BaseSelectProps, OptionShape } from "./typings-dd8ca091";
3
+ type UseSelectWithApplyProps = {
4
+ /**
5
+ * Список выбранных пунктов
6
+ */
7
+ selected: BaseSelectProps['selected'];
8
+ /**
9
+ * Список вариантов выбора
10
+ */
11
+ options: BaseSelectProps['options'];
12
+ /**
13
+ * Обработчик выбора
14
+ */
15
+ onChange: BaseSelectProps['onChange'];
16
+ /**
17
+ * Компонент выпадающего меню
18
+ */
19
+ OptionsList?: BaseSelectProps['OptionsList'];
20
+ /**
21
+ * Пропсы, которые будут прокинуты в компонент списка
22
+ */
23
+ optionsListProps?: BaseSelectProps['optionsListProps'];
24
+ /**
25
+ * Включает отображение поиска
26
+ */
27
+ showSearch?: BaseSelectProps['showSearch'];
28
+ /**
29
+ * Настройки поиска
30
+ */
31
+ searchProps?: BaseSelectProps['searchProps'];
32
+ /**
33
+ * Показывать кнопку очистки
34
+ */
35
+ showClear?: boolean;
36
+ /**
37
+ * Показывать пункт "Выбрать все"
38
+ */
39
+ showSelectAll?: boolean;
40
+ /**
41
+ * Показывать пункт "Выбрать все" в заголовке списка
42
+ */
43
+ showHeaderWithSelectAll?: boolean;
44
+ };
45
+ declare const SELECT_ALL_KEY = "select_all";
46
+ declare function useSelectWithApply({ options, selected, onChange, OptionsList, optionsListProps, showClear, showSelectAll, showHeaderWithSelectAll, showSearch, searchProps, }: UseSelectWithApplyProps): {
47
+ OptionsList: import("react").ForwardRefExoticComponent<import("./typings-dd8ca091").OptionsListProps & {
48
+ showClear?: boolean | undefined;
49
+ onClose?: (() => void) | undefined; /**
50
+ * Компонент выпадающего меню
51
+ */
52
+ selectedDraft?: OptionShape[] | undefined;
53
+ OptionsList?: import("react").FC<import("./typings-dd8ca091").OptionsListProps & import("react").RefAttributes<HTMLDivElement>> | undefined;
54
+ Footer?: import("react").FC<import("./Component-dd8ca091").FooterProps> | undefined;
55
+ Header?: import("react").FC<import("./Component-ebda875c").HeaderProps> | undefined;
56
+ headerProps?: import("./Component-ebda875c").HeaderProps | undefined;
57
+ showHeaderWithSelectAll?: boolean | undefined;
58
+ } & import("react").RefAttributes<HTMLDivElement>>;
59
+ optionsListProps: {
60
+ OptionsList: import("react").FC<import("./typings-dd8ca091").OptionsListProps & import("react").RefAttributes<HTMLDivElement>> | undefined;
61
+ showClear: boolean;
62
+ onClear: () => void;
63
+ onApply: () => void;
64
+ onClose: () => void;
65
+ selectedDraft: OptionShape[];
66
+ showHeaderWithSelectAll: boolean;
67
+ headerProps: {
68
+ indeterminate: boolean;
69
+ checked: boolean;
70
+ onChange: () => void;
71
+ };
72
+ };
73
+ allowUnselect: boolean;
74
+ multiple: boolean;
75
+ options: (OptionShape | import("./typings-dd8ca091").GroupShape | {
76
+ key: string;
77
+ content: string;
78
+ })[];
79
+ onChange: (payload: import("./typings-dd8ca091").BaseSelectChangePayload) => void;
80
+ selected: string | OptionShape | (string | OptionShape)[] | null | undefined;
81
+ showSearch: boolean | undefined;
82
+ searchProps: {
83
+ value: string;
84
+ onChange: import("react").Dispatch<import("react").SetStateAction<string>>;
85
+ componentProps?: import("packages/input/src").InputProps | undefined;
86
+ accessor?: ((option: OptionShape) => string) | undefined;
87
+ } | undefined;
88
+ };
89
+ export * from "./Component-dd8ca091";
90
+ export { UseSelectWithApplyProps, SELECT_ALL_KEY, useSelectWithApply };
@@ -0,0 +1,28 @@
1
+ /// <reference types="react" />
2
+ import { FC, ReactNode } from "react";
3
+ /**
4
+ * Набор констант для z-index соответствующих классов компонентов.
5
+ * Значения выбраны по приоритету.
6
+ */
7
+ declare const stackingOrder: {
8
+ FOCUSED: number;
9
+ DEFAULT: number;
10
+ POPOVER: number;
11
+ MODAL: number;
12
+ TOAST: number;
13
+ };
14
+ declare const StackingContext: import("react").Context<number>;
15
+ type StackProps = {
16
+ /**
17
+ * Render prop, в который передается функция.
18
+ * Функция принимает аргумент со значением z-index из текущего контекста.
19
+ */
20
+ children: (value: number) => ReactNode;
21
+ /**
22
+ * Исходное значение для z-index.
23
+ * @default 5
24
+ */
25
+ value?: number;
26
+ };
27
+ declare const Stack: FC<StackProps>;
28
+ export { stackingOrder, StackingContext, StackProps, Stack };
@@ -0,0 +1,12 @@
1
+ type BackgroundColorType = 'accent' | 'info' | 'attention-muted' | 'positive-muted' | 'negative-muted' | 'primary' | 'primary-inverted' | 'secondary' | 'secondary-inverted' | 'tertiary' | 'tertiary-inverted' | 'quaternary' | 'quaternary-inverted' | 'specialbg-component' | 'specialbg-component-inverted' | 'specialbg-primary-grouped' | 'specialbg-secondary-grouped' | 'specialbg-tertiary-grouped' | 'specialbg-secondary-transparent' | 'specialbg-secondary-transparent-inverted' | 'specialbg-tertiary-transparent' | 'specialbg-tertiary-transparent-inverted';
2
+ type BorderColorType = 'accent' | 'key' | 'key-inverted' | 'link' | 'primary' | 'primary-inverted' | 'secondary' | 'secondary-inverted' | 'tertiary' | 'tertiary-inverted' | 'underline' | 'underline-inverted' | 'graphic-attention' | 'graphic-link' | 'graphic-negative' | 'graphic-positive' | 'specialbg-secondary-transparent' | 'specialbg-secondary-transparent-inverted' | 'specialbg-tertiary-transparent' | 'specialbg-tertiary-transparent-inverted';
3
+ type GraphicColorType = 'accent' | 'link' | 'attention' | 'positive' | 'negative' | 'primary' | 'primary-inverted' | 'secondary' | 'secondary-inverted' | 'tertiary' | 'tertiary-inverted' | 'quaternary' | 'quaternary-inverted' | 'static-light' | 'static-accent' | 'static-dark';
4
+ type ShadowType = 'shadow-xs' | 'shadow-s' | 'shadow-m' | 'shadow-l' | 'shadow-xl' | 'shadow-xs-hard' | 'shadow-s-hard' | 'shadow-m-hard' | 'shadow-l-hard' | 'shadow-xl-hard' | 'shadow-xs-up' | 'shadow-s-up' | 'shadow-m-up' | 'shadow-l-up' | 'shadow-xl-up' | 'shadow-xs-hard-up' | 'shadow-s-hard-up' | 'shadow-m-hard-up' | 'shadow-l-hard-up' | 'shadow-xl-hard-up';
5
+ type GapType = '3xs' | '2xs' | 'xs' | 's' | 'm' | 'l' | 'xl' | '2xl' | '3xl' | '4xl' | '5xl' | '6xl' | '7xl' | '8xl';
6
+ type PaddingType = number | string | {
7
+ top?: number;
8
+ right?: number;
9
+ bottom?: number;
10
+ left?: number;
11
+ };
12
+ export { BackgroundColorType, BorderColorType, GraphicColorType, ShadowType, GapType, PaddingType };
@@ -0,0 +1,6 @@
1
+ /// <reference types="react" />
2
+ import React from "react";
3
+ import { ButtonProps } from "./typings-9211a437";
4
+ declare const Button: React.ForwardRefExoticComponent<ButtonProps & React.RefAttributes<HTMLAnchorElement | HTMLButtonElement>>;
5
+ export { Button };
6
+ export type { ButtonProps } from "./typings-9211a437";
@@ -0,0 +1,2 @@
1
+ export * from "./Component-ebda875c";
2
+ export * from "./utils-1574ad8b";
@@ -0,0 +1,141 @@
1
+ /// <reference types="react" />
2
+ /* eslint-disable complexity */
3
+ import React from "react";
4
+ import { ReactNode, ButtonHTMLAttributes, ElementType } from "react";
5
+ interface CloserProps extends ButtonHTMLAttributes<HTMLButtonElement> {
6
+ /**
7
+ * Вид компонента
8
+ */
9
+ view: "desktop" | "mobile";
10
+ /**
11
+ * Дополнительный класс
12
+ */
13
+ className?: string;
14
+ /**
15
+ * Позиция крестика
16
+ */
17
+ align?: "left" | "right";
18
+ /**
19
+ * Фиксирует крестик
20
+ */
21
+ sticky?: boolean;
22
+ /**
23
+ * Иконка
24
+ */
25
+ icon?: ElementType;
26
+ /**
27
+ * Идентификатор для систем автоматизированного тестирования
28
+ */
29
+ dataTestId?: string;
30
+ /**
31
+ * Коллбэк закрытия.
32
+ */
33
+ onClose?: (event: React.MouseEvent<HTMLElement> | React.KeyboardEvent<HTMLElement>, reason?: "backdropClick" | "escapeKeyDown" | "closerClick") => void;
34
+ }
35
+ type NavigationBarProps = {
36
+ /**
37
+ * Контент шапки
38
+ */
39
+ children?: ReactNode;
40
+ /**
41
+ * Заголовок шапки
42
+ */
43
+ title?: string;
44
+ /**
45
+ * Подзаголовок (доступен только в мобильной версии)
46
+ */
47
+ subtitle?: string;
48
+ /**
49
+ * Размер заголовка (compact доступен только в мобильной версии)
50
+ */
51
+ titleSize?: "default" | "compact";
52
+ /**
53
+ * Доп. класс для аддонов
54
+ */
55
+ addonClassName?: string;
56
+ /**
57
+ * Слот слева
58
+ */
59
+ leftAddons?: ReactNode;
60
+ /**
61
+ * Слот справа
62
+ */
63
+ rightAddons?: ReactNode;
64
+ /**
65
+ * Дополнительный класс для closer
66
+ */
67
+ closerClassName?: string;
68
+ /**
69
+ * Слот снизу
70
+ */
71
+ bottomAddons?: ReactNode;
72
+ /**
73
+ * Наличие компонента крестика
74
+ */
75
+ hasCloser?: boolean;
76
+ /**
77
+ * Наличие кнопки "Назад"
78
+ */
79
+ hasBackButton?: boolean;
80
+ /**
81
+ * Дополнительный класс для правого аддона
82
+ */
83
+ backButtonClassName?: string;
84
+ /**
85
+ * Дополнительный класс
86
+ */
87
+ className?: string;
88
+ /**
89
+ * Дополнительный класс для контента
90
+ */
91
+ contentClassName?: string;
92
+ /**
93
+ * Дополнительный класс для нижнего аддона
94
+ */
95
+ bottomAddonsClassName?: string;
96
+ /**
97
+ * Выравнивание заголовка
98
+ */
99
+ align?: "left" | "center";
100
+ /**
101
+ * Обрезать ли заголовок
102
+ */
103
+ trim?: boolean;
104
+ /**
105
+ * Фиксирует шапку
106
+ */
107
+ sticky?: boolean;
108
+ /**
109
+ * Идентификатор для систем автоматизированного тестирования
110
+ */
111
+ dataTestId?: string;
112
+ /**
113
+ * Фоновое изображение
114
+ */
115
+ imageUrl?: string;
116
+ /**
117
+ * Иконка closer.
118
+ */
119
+ closerIcon?: React.ElementType;
120
+ /**
121
+ * Обработчик закрытия
122
+ */
123
+ onClose?: CloserProps["onClose"];
124
+ /**
125
+ * обработчик клика по кнопке "назад"
126
+ */
127
+ onBack?: () => void;
128
+ /**
129
+ * Вид шапки - мобильный или десктоп
130
+ */
131
+ view: "desktop" | "mobile";
132
+ /**
133
+ * Ссылка на родительскую ноду overflow: auto
134
+ */
135
+ scrollableParentRef?: React.RefObject<HTMLDivElement>;
136
+ };
137
+ declare const NavigationBar: React.ForwardRefExoticComponent<NavigationBarProps & React.RefAttributes<HTMLDivElement>>;
138
+ export { NavigationBar };
139
+ export * from "./Component-63dec22f";
140
+ export * from "./Component-8b2c2707";
141
+ export type { NavigationBarProps };
@@ -0,0 +1,3 @@
1
+ /// <reference types="react" />
2
+ /// <reference types="react-transition-group" />
3
+ export * from "./Component-4cd3936b";
@@ -0,0 +1,52 @@
1
+ /// <reference types="react" />
2
+ import React from "react";
3
+ import { FC, ReactNode, RefObject } from "react";
4
+ import { BottomSheetProps } from "./types-72dda473";
5
+ import { NavigationBarProps } from "./index-c76d6398";
6
+ import { SwipeableHandlers } from "react-swipeable";
7
+ import { BackdropProps } from "./index-ebda875c";
8
+ declare const BottomSheet: React.ForwardRefExoticComponent<BottomSheetProps & React.RefAttributes<HTMLDivElement>>;
9
+ declare const TIMEOUT = 500;
10
+ declare const SWIPE_VELOCITY = 0.4;
11
+ declare const MARKER_HEIGHT = 24;
12
+ declare const CLOSE_OFFSET = 0.2;
13
+ declare const SCROLL_OFFSET = 1;
14
+ declare const HEADER_OFFSET = 24;
15
+ declare const convertPercentToNumber: (value: string | number, fullHeight: number, headerOffset?: number) => number;
16
+ type FooterProps = {
17
+ /**
18
+ * Контент футера
19
+ */
20
+ children?: ReactNode;
21
+ /**
22
+ * Фиксирует футер
23
+ */
24
+ sticky?: boolean;
25
+ /**
26
+ * Дополнительный класс
27
+ */
28
+ className?: string;
29
+ };
30
+ declare const Footer: FC<FooterProps>;
31
+ type HeaderProps = Omit<NavigationBarProps, "view" | "size"> & {
32
+ headerRef: RefObject<HTMLDivElement>;
33
+ headerOffset: number;
34
+ };
35
+ declare const Header: FC<HeaderProps>;
36
+ type SwipeableBackdropProps = BackdropProps & {
37
+ /**
38
+ * Прозрачность бэкдропа
39
+ */
40
+ opacity?: number;
41
+ /**
42
+ * Обработчики свайпа
43
+ */
44
+ handlers?: SwipeableHandlers;
45
+ /**
46
+ * Время анимации opacity
47
+ */
48
+ opacityTimeout?: number;
49
+ };
50
+ declare const SwipeableBackdrop: FC<SwipeableBackdropProps>;
51
+ export { BottomSheet, TIMEOUT, SWIPE_VELOCITY, MARKER_HEIGHT, CLOSE_OFFSET, SCROLL_OFFSET, HEADER_OFFSET, convertPercentToNumber, FooterProps, Footer, HeaderProps, Header, SwipeableBackdropProps, SwipeableBackdrop };
52
+ export type { BottomSheetProps, BottomSheetTitleAlign } from "./types-72dda473";
package/index.d.ts ADDED
@@ -0,0 +1,2 @@
1
+ export { InternationalPhoneInput } from "./Component.responsive";
2
+ export type { InternationalPhoneInputProps } from "./types";
package/index.js ADDED
@@ -0,0 +1,36 @@
1
+ 'use strict';
2
+
3
+ Object.defineProperty(exports, '__esModule', { value: true });
4
+
5
+ var Component_responsive = require('./Component.responsive.js');
6
+ require('tslib');
7
+ require('react');
8
+ require('@alfalab/core-components-mq');
9
+ require('./Component.desktop.js');
10
+ require('@alfalab/core-components-input/Component.desktop');
11
+ require('@alfalab/core-components-input-autocomplete/desktop');
12
+ require('@alfalab/core-components-select/desktop');
13
+ require('./components/base-international-phone-input/Component.js');
14
+ require('react-merge-refs');
15
+ require('@maskito/core');
16
+ require('@maskito/react');
17
+ require('@alfalab/core-components-select/shared');
18
+ require('./utils/index.js');
19
+ require('@alfalab/core-components-shared');
20
+ require('./consts.js');
21
+ require('./data/country-data.js');
22
+ require('./components/country-select/Component.js');
23
+ require('@alfalab/icons-glyph/WorldMagnifierMIcon');
24
+ require('./components/flag-icon/component.js');
25
+ require('classnames');
26
+ require('./components/flag-icon/flagSprite.js');
27
+ require('./components/select-field/component.js');
28
+ require('@alfalab/hooks');
29
+ require('./Component.mobile.js');
30
+ require('@alfalab/core-components-input/mobile');
31
+ require('@alfalab/core-components-input-autocomplete/mobile');
32
+ require('@alfalab/core-components-select/mobile');
33
+
34
+
35
+
36
+ exports.InternationalPhoneInput = Component_responsive.InternationalPhoneInput;
@@ -0,0 +1,3 @@
1
+ export { InputAutocompleteMobile, InputAutocompleteMobileProps } from "./Component.mobile-4cd3936b";
2
+ export { InputAutocompleteModalMobile, InputAutocompleteModalMobileProps } from "./Component.modal.mobile-4cd3936b";
3
+ export {};
@@ -0,0 +1,2 @@
1
+ export * from "./Component.mobile-755fbaa3";
2
+ export {};
@@ -0,0 +1,2 @@
1
+ export * from "./Component.mobile-ebda875c";
2
+ export {};
@@ -0,0 +1,5 @@
1
+ export { SelectMobile } from "./Component.mobile-ade26e99";
2
+ export { SelectModalMobile } from "./Component.modal.mobile-dd8ca091";
3
+ export type { SelectMobileProps } from "./Component.mobile-ade26e99";
4
+ export type { SelectModalMobileProps } from "./Component.modal.mobile-dd8ca091";
5
+ export {};
@@ -0,0 +1,2 @@
1
+ export * from "./Component.mobile-d7e9f69d";
2
+ export {};