@alfalab/core-components 45.9.0-beta.1 → 45.9.0-beta.3

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 (413) hide show
  1. package/base-modal/Component.js +1 -2
  2. package/base-modal/cssm/Component.js +1 -2
  3. package/base-modal/esm/Component.js +1 -2
  4. package/base-modal/esm/index.js +0 -1
  5. package/base-modal/modern/Component.js +1 -2
  6. package/base-modal/modern/index.js +0 -1
  7. package/confirmation/components/screens/initial/component.js +1 -1
  8. package/confirmation/components/screens/initial/countdown-section.js +1 -1
  9. package/confirmation/esm/component.responsive.js +1 -1
  10. package/confirmation/esm/components/base-confirmation/component.js +1 -1
  11. package/confirmation/esm/components/base-confirmation/index.js +1 -1
  12. package/confirmation/esm/components/index.js +1 -1
  13. package/confirmation/esm/components/screens/index.js +1 -1
  14. package/confirmation/esm/components/screens/initial/component.js +1 -1
  15. package/confirmation/esm/components/screens/initial/countdown-section.js +1 -1
  16. package/confirmation/esm/components/screens/initial/index.js +1 -1
  17. package/confirmation/esm/desktop/component.desktop.js +1 -1
  18. package/confirmation/esm/desktop/index.js +1 -1
  19. package/confirmation/esm/index.js +1 -1
  20. package/confirmation/esm/mobile/component.mobile.js +1 -1
  21. package/confirmation/esm/mobile/index.js +1 -1
  22. package/confirmation/esm/shared/index.js +1 -1
  23. package/confirmation/modern/component.responsive.js +1 -1
  24. package/confirmation/modern/components/base-confirmation/component.js +1 -1
  25. package/confirmation/modern/components/base-confirmation/index.js +1 -1
  26. package/confirmation/modern/components/index.js +1 -1
  27. package/confirmation/modern/components/screens/index.js +1 -1
  28. package/confirmation/modern/components/screens/initial/component.js +1 -1
  29. package/confirmation/modern/components/screens/initial/countdown-section.js +1 -1
  30. package/confirmation/modern/components/screens/initial/index.js +1 -1
  31. package/confirmation/modern/desktop/component.desktop.js +1 -1
  32. package/confirmation/modern/desktop/index.js +1 -1
  33. package/confirmation/modern/index.js +1 -1
  34. package/confirmation/modern/mobile/component.mobile.js +1 -1
  35. package/confirmation/modern/mobile/index.js +1 -1
  36. package/confirmation/modern/shared/index.js +1 -1
  37. package/gallery/components/header/Component.js +1 -1
  38. package/gallery/components/header/buttons.js +1 -1
  39. package/gallery/components/image-viewer/component.js +1 -1
  40. package/gallery/components/image-viewer/slide.js +1 -1
  41. package/gallery/esm/Component.js +2 -2
  42. package/gallery/esm/components/header/Component.js +1 -1
  43. package/gallery/esm/components/header/buttons.js +1 -1
  44. package/gallery/esm/components/header/index.js +1 -1
  45. package/gallery/esm/components/image-preview/Component.js +1 -1
  46. package/gallery/esm/components/image-preview/index.js +1 -1
  47. package/gallery/esm/components/image-viewer/component.js +1 -1
  48. package/gallery/esm/components/image-viewer/index.js +1 -1
  49. package/gallery/esm/components/image-viewer/slide.js +1 -1
  50. package/gallery/esm/components/index.js +2 -2
  51. package/gallery/esm/components/navigation-bar/Component.js +1 -1
  52. package/gallery/esm/components/navigation-bar/index.js +1 -1
  53. package/gallery/esm/index.js +2 -2
  54. package/gallery/modern/Component.js +2 -2
  55. package/gallery/modern/components/header/Component.js +1 -1
  56. package/gallery/modern/components/header/buttons.js +1 -1
  57. package/gallery/modern/components/header/index.js +1 -1
  58. package/gallery/modern/components/image-preview/Component.js +1 -1
  59. package/gallery/modern/components/image-preview/index.js +1 -1
  60. package/gallery/modern/components/image-viewer/component.js +1 -1
  61. package/gallery/modern/components/image-viewer/index.js +1 -1
  62. package/gallery/modern/components/image-viewer/slide.js +1 -1
  63. package/gallery/modern/components/index.js +2 -2
  64. package/gallery/modern/components/navigation-bar/Component.js +1 -1
  65. package/gallery/modern/components/navigation-bar/index.js +1 -1
  66. package/gallery/modern/index.js +2 -2
  67. package/international-phone-input/Component.responsive.d.ts +4 -4
  68. package/international-phone-input/components/base-international-phone-input/Component.d.ts +2 -2
  69. package/international-phone-input/cssm/index-136acbb1.d.ts +28 -0
  70. package/international-phone-input/data/country-data.d.ts +1 -9
  71. package/international-phone-input/data/country-data.js +19 -0
  72. package/international-phone-input/esm/index-136acbb1.d.ts +28 -0
  73. package/international-phone-input/index-136acbb1.d.ts +28 -0
  74. package/international-phone-input/modern/index-136acbb1.d.ts +28 -0
  75. package/international-phone-input/typings-57569e57.d.ts +2 -2
  76. package/modal/components/controls/Component.js +1 -1
  77. package/modal/components/footer/Component.js +1 -1
  78. package/modal/esm/Component.responsive.js +1 -1
  79. package/modal/esm/components/controls/Component.js +1 -1
  80. package/modal/esm/components/controls/index.js +1 -1
  81. package/modal/esm/components/footer/Component.js +1 -1
  82. package/modal/esm/desktop/Component.desktop.js +1 -1
  83. package/modal/esm/desktop/index.js +1 -1
  84. package/modal/esm/index.js +1 -1
  85. package/modal/esm/mobile/Component.mobile.js +1 -1
  86. package/modal/esm/mobile/index.js +1 -1
  87. package/modal/modern/Component.responsive.js +1 -1
  88. package/modal/modern/components/controls/Component.js +1 -1
  89. package/modal/modern/components/controls/index.js +1 -1
  90. package/modal/modern/components/footer/Component.js +1 -1
  91. package/modal/modern/desktop/Component.desktop.js +1 -1
  92. package/modal/modern/desktop/index.js +1 -1
  93. package/modal/modern/index.js +1 -1
  94. package/modal/modern/mobile/Component.mobile.js +1 -1
  95. package/modal/modern/mobile/index.js +1 -1
  96. package/notification/Component.js +1 -2
  97. package/notification/cssm/Component.js +1 -2
  98. package/notification/esm/Component.js +1 -2
  99. package/notification/esm/index.js +0 -1
  100. package/notification/modern/Component.js +1 -2
  101. package/notification/modern/index.js +0 -1
  102. package/notification-manager/component.js +1 -2
  103. package/notification-manager/cssm/component.js +1 -2
  104. package/notification-manager/esm/component.js +1 -2
  105. package/notification-manager/esm/index.js +0 -1
  106. package/notification-manager/modern/component.js +1 -2
  107. package/notification-manager/modern/index.js +0 -1
  108. package/package.json +1 -2
  109. package/picker-button/cssm/index-bdb4c6b9.d.ts +14 -5
  110. package/picker-button/{index-a5b021bd.d.ts → cssm/index-fe2bc9bb.d.ts} +3 -1
  111. package/picker-button/cssm/usePortalContainer-fe2bc9bb.d.ts +2 -0
  112. package/picker-button/cssm/utils-ed29dc0e.d.ts +5 -0
  113. package/picker-button/esm/index-bdb4c6b9.d.ts +14 -5
  114. package/picker-button/{modern/index-a5b021bd.d.ts → esm/index-fe2bc9bb.d.ts} +3 -1
  115. package/picker-button/esm/usePortalContainer-fe2bc9bb.d.ts +2 -0
  116. package/picker-button/esm/utils-ed29dc0e.d.ts +5 -0
  117. package/picker-button/index-bdb4c6b9.d.ts +14 -5
  118. package/picker-button/{esm/index-a5b021bd.d.ts → index-fe2bc9bb.d.ts} +3 -1
  119. package/picker-button/modern/index-bdb4c6b9.d.ts +14 -5
  120. package/picker-button/{cssm/index-a5b021bd.d.ts → modern/index-fe2bc9bb.d.ts} +3 -1
  121. package/picker-button/modern/usePortalContainer-fe2bc9bb.d.ts +2 -0
  122. package/picker-button/modern/utils-ed29dc0e.d.ts +5 -0
  123. package/picker-button/usePortalContainer-fe2bc9bb.d.ts +2 -0
  124. package/picker-button/utils-ed29dc0e.d.ts +5 -0
  125. package/popover/Component.js +1 -2
  126. package/popover/cssm/Component.js +1 -2
  127. package/popover/esm/Component.js +1 -2
  128. package/popover/esm/index.js +0 -1
  129. package/popover/modern/Component.js +1 -2
  130. package/popover/modern/index.js +0 -1
  131. package/portal/Component.js +6 -4
  132. package/portal/cssm/Component.js +6 -4
  133. package/portal/cssm/hooks/usePortalContainer.d.ts +2 -0
  134. package/portal/cssm/hooks/usePortalContainer.js +15 -0
  135. package/portal/esm/Component.js +8 -5
  136. package/portal/esm/hooks/usePortalContainer.d.ts +2 -0
  137. package/portal/esm/hooks/usePortalContainer.js +13 -0
  138. package/portal/esm/index.js +2 -0
  139. package/portal/hooks/usePortalContainer.d.ts +2 -0
  140. package/portal/hooks/usePortalContainer.js +15 -0
  141. package/portal/modern/Component.js +6 -2
  142. package/portal/modern/hooks/usePortalContainer.d.ts +2 -0
  143. package/portal/modern/hooks/usePortalContainer.js +13 -0
  144. package/portal/modern/index.js +2 -0
  145. package/pure-cell/component.js +1 -1
  146. package/pure-cell/components/addon/component.js +1 -1
  147. package/pure-cell/components/addon/index.d.ts +1 -1
  148. package/pure-cell/components/addon/index.js +1 -1
  149. package/pure-cell/components/amount/component.js +1 -1
  150. package/pure-cell/components/amount/index.d.ts +1 -1
  151. package/pure-cell/components/amount/index.js +1 -1
  152. package/pure-cell/components/amount-title/component.js +1 -1
  153. package/pure-cell/components/amount-title/index.d.ts +1 -1
  154. package/pure-cell/components/amount-title/index.js +1 -1
  155. package/pure-cell/components/category/component.js +1 -1
  156. package/pure-cell/components/category/index.d.ts +1 -1
  157. package/pure-cell/components/category/index.js +1 -1
  158. package/pure-cell/components/content/component.js +1 -1
  159. package/pure-cell/components/content/index.d.ts +1 -1
  160. package/pure-cell/components/content/index.js +1 -1
  161. package/pure-cell/components/footer/component.js +1 -1
  162. package/pure-cell/components/footer/index.d.ts +1 -1
  163. package/pure-cell/components/footer/index.js +1 -1
  164. package/pure-cell/components/footer-button/component.js +1 -1
  165. package/pure-cell/components/footer-button/index.d.ts +1 -1
  166. package/pure-cell/components/footer-button/index.js +1 -1
  167. package/pure-cell/components/footer-text/component.js +1 -1
  168. package/pure-cell/components/footer-text/index.d.ts +1 -1
  169. package/pure-cell/components/footer-text/index.js +1 -1
  170. package/pure-cell/components/graphics/component.js +1 -1
  171. package/pure-cell/components/graphics/index.d.ts +1 -1
  172. package/pure-cell/components/graphics/index.js +1 -1
  173. package/pure-cell/components/main/component.js +1 -1
  174. package/pure-cell/components/main/index.d.ts +1 -1
  175. package/pure-cell/components/main/index.js +1 -1
  176. package/pure-cell/components/text/component.js +1 -1
  177. package/pure-cell/components/text/index.d.ts +1 -1
  178. package/pure-cell/components/text/index.js +1 -1
  179. package/pure-cell/esm/component.js +1 -1
  180. package/pure-cell/esm/components/addon/component.js +1 -1
  181. package/pure-cell/esm/components/addon/index.d.ts +1 -1
  182. package/pure-cell/esm/components/addon/index.js +1 -1
  183. package/pure-cell/esm/components/amount/component.js +1 -1
  184. package/pure-cell/esm/components/amount/index.d.ts +1 -1
  185. package/pure-cell/esm/components/amount/index.js +1 -1
  186. package/pure-cell/esm/components/amount-title/component.js +1 -1
  187. package/pure-cell/esm/components/amount-title/index.d.ts +1 -1
  188. package/pure-cell/esm/components/amount-title/index.js +1 -1
  189. package/pure-cell/esm/components/category/component.js +1 -1
  190. package/pure-cell/esm/components/category/index.d.ts +1 -1
  191. package/pure-cell/esm/components/category/index.js +1 -1
  192. package/pure-cell/esm/components/content/component.js +1 -1
  193. package/pure-cell/esm/components/content/index.d.ts +1 -1
  194. package/pure-cell/esm/components/content/index.js +1 -1
  195. package/pure-cell/esm/components/footer/component.js +1 -1
  196. package/pure-cell/esm/components/footer/index.d.ts +1 -1
  197. package/pure-cell/esm/components/footer/index.js +1 -1
  198. package/pure-cell/esm/components/footer-button/component.js +1 -1
  199. package/pure-cell/esm/components/footer-button/index.d.ts +1 -1
  200. package/pure-cell/esm/components/footer-button/index.js +1 -1
  201. package/pure-cell/esm/components/footer-text/component.js +1 -1
  202. package/pure-cell/esm/components/footer-text/index.d.ts +1 -1
  203. package/pure-cell/esm/components/footer-text/index.js +1 -1
  204. package/pure-cell/esm/components/graphics/component.js +1 -1
  205. package/pure-cell/esm/components/graphics/index.d.ts +1 -1
  206. package/pure-cell/esm/components/graphics/index.js +1 -1
  207. package/pure-cell/esm/components/main/component.js +1 -1
  208. package/pure-cell/esm/components/main/index.d.ts +1 -1
  209. package/pure-cell/esm/components/main/index.js +1 -1
  210. package/pure-cell/esm/components/text/component.js +1 -1
  211. package/pure-cell/esm/components/text/index.d.ts +1 -1
  212. package/pure-cell/esm/components/text/index.js +1 -1
  213. package/pure-cell/esm/index.js +1 -1
  214. package/pure-cell/index.js +1 -1
  215. package/pure-cell/modern/component.js +1 -1
  216. package/pure-cell/modern/components/addon/component.js +1 -1
  217. package/pure-cell/modern/components/addon/index.d.ts +1 -1
  218. package/pure-cell/modern/components/addon/index.js +1 -1
  219. package/pure-cell/modern/components/amount/component.js +1 -1
  220. package/pure-cell/modern/components/amount/index.d.ts +1 -1
  221. package/pure-cell/modern/components/amount/index.js +1 -1
  222. package/pure-cell/modern/components/amount-title/component.js +1 -1
  223. package/pure-cell/modern/components/amount-title/index.d.ts +1 -1
  224. package/pure-cell/modern/components/amount-title/index.js +1 -1
  225. package/pure-cell/modern/components/category/component.js +1 -1
  226. package/pure-cell/modern/components/category/index.d.ts +1 -1
  227. package/pure-cell/modern/components/category/index.js +1 -1
  228. package/pure-cell/modern/components/content/component.js +1 -1
  229. package/pure-cell/modern/components/content/index.d.ts +1 -1
  230. package/pure-cell/modern/components/content/index.js +1 -1
  231. package/pure-cell/modern/components/footer/component.js +1 -1
  232. package/pure-cell/modern/components/footer/index.d.ts +1 -1
  233. package/pure-cell/modern/components/footer/index.js +1 -1
  234. package/pure-cell/modern/components/footer-button/component.js +1 -1
  235. package/pure-cell/modern/components/footer-button/index.d.ts +1 -1
  236. package/pure-cell/modern/components/footer-button/index.js +1 -1
  237. package/pure-cell/modern/components/footer-text/component.js +1 -1
  238. package/pure-cell/modern/components/footer-text/index.d.ts +1 -1
  239. package/pure-cell/modern/components/footer-text/index.js +1 -1
  240. package/pure-cell/modern/components/graphics/component.js +1 -1
  241. package/pure-cell/modern/components/graphics/index.d.ts +1 -1
  242. package/pure-cell/modern/components/graphics/index.js +1 -1
  243. package/pure-cell/modern/components/main/component.js +1 -1
  244. package/pure-cell/modern/components/main/index.d.ts +1 -1
  245. package/pure-cell/modern/components/main/index.js +1 -1
  246. package/pure-cell/modern/components/text/component.js +1 -1
  247. package/pure-cell/modern/components/text/index.d.ts +1 -1
  248. package/pure-cell/modern/components/text/index.js +1 -1
  249. package/pure-cell/modern/index.js +1 -1
  250. package/select/esm/Component.responsive.js +1 -1
  251. package/select/esm/index.js +1 -1
  252. package/select/esm/mobile/Component.mobile.js +1 -1
  253. package/select/esm/mobile/Component.modal.mobile.js +1 -1
  254. package/select/esm/mobile/index.js +1 -1
  255. package/select/esm/presets/index.js +1 -1
  256. package/select/esm/presets/useSelectWithApply/hook.js +1 -1
  257. package/select/esm/presets/useSelectWithApply/options-list-with-apply/Component.js +1 -1
  258. package/select/esm/presets/useSelectWithApply/options-list-with-apply/index.d.ts +1 -1
  259. package/select/esm/presets/useSelectWithApply/options-list-with-apply/index.js +1 -1
  260. package/select/esm/shared/index.js +1 -1
  261. package/select/mobile/Component.mobile.js +1 -1
  262. package/select/modern/Component.responsive.js +1 -1
  263. package/select/modern/index.js +1 -1
  264. package/select/modern/mobile/Component.mobile.js +1 -1
  265. package/select/modern/mobile/Component.modal.mobile.js +1 -1
  266. package/select/modern/mobile/index.js +1 -1
  267. package/select/modern/presets/index.js +1 -1
  268. package/select/modern/presets/useSelectWithApply/hook.js +1 -1
  269. package/select/modern/presets/useSelectWithApply/options-list-with-apply/Component.js +1 -1
  270. package/select/modern/presets/useSelectWithApply/options-list-with-apply/index.d.ts +1 -1
  271. package/select/modern/presets/useSelectWithApply/options-list-with-apply/index.js +1 -1
  272. package/select/modern/shared/index.js +1 -1
  273. package/select/presets/index.js +1 -1
  274. package/select/presets/useSelectWithApply/hook.js +1 -1
  275. package/select/presets/useSelectWithApply/options-list-with-apply/Component.js +1 -1
  276. package/select/presets/useSelectWithApply/options-list-with-apply/index.d.ts +1 -1
  277. package/select/presets/useSelectWithApply/options-list-with-apply/index.js +1 -1
  278. package/select/shared/index.js +1 -1
  279. package/shared/context/PortalContext/PortalContext.d.ts +4 -0
  280. package/shared/context/PortalContext/PortalContext.js +7 -0
  281. package/shared/context/PortalContext/index.d.ts +1 -0
  282. package/shared/context/PortalContext/index.js +7 -0
  283. package/shared/cssm/context/PortalContext/PortalContext.d.ts +4 -0
  284. package/shared/cssm/context/PortalContext/PortalContext.js +7 -0
  285. package/shared/cssm/context/PortalContext/index.d.ts +1 -0
  286. package/shared/cssm/context/PortalContext/index.js +7 -0
  287. package/shared/cssm/index.d.ts +1 -0
  288. package/shared/cssm/index.js +2 -0
  289. package/shared/esm/context/PortalContext/PortalContext.d.ts +4 -0
  290. package/shared/esm/context/PortalContext/PortalContext.js +5 -0
  291. package/shared/esm/context/PortalContext/index.d.ts +1 -0
  292. package/shared/esm/context/PortalContext/index.js +2 -0
  293. package/shared/esm/index.d.ts +1 -0
  294. package/shared/esm/index.js +1 -0
  295. package/shared/index.d.ts +1 -0
  296. package/shared/index.js +2 -0
  297. package/shared/modern/context/PortalContext/PortalContext.d.ts +4 -0
  298. package/shared/modern/context/PortalContext/PortalContext.js +5 -0
  299. package/shared/modern/context/PortalContext/index.d.ts +1 -0
  300. package/shared/modern/context/PortalContext/index.js +2 -0
  301. package/shared/modern/index.d.ts +1 -0
  302. package/shared/modern/index.js +1 -0
  303. package/side-panel/components/controls/Component.js +1 -1
  304. package/side-panel/components/footer/Component.js +1 -1
  305. package/side-panel/esm/Component.responsive.js +1 -1
  306. package/side-panel/esm/components/controls/Component.js +1 -1
  307. package/side-panel/esm/components/controls/index.js +1 -1
  308. package/side-panel/esm/components/footer/Component.desktop.js +1 -1
  309. package/side-panel/esm/components/footer/Component.js +1 -1
  310. package/side-panel/esm/components/footer/Component.mobile.js +1 -1
  311. package/side-panel/esm/desktop/Component.desktop.js +1 -1
  312. package/side-panel/esm/desktop/index.js +1 -1
  313. package/side-panel/esm/index.js +1 -1
  314. package/side-panel/esm/mobile/Component.mobile.js +1 -1
  315. package/side-panel/esm/mobile/index.js +1 -1
  316. package/side-panel/modern/Component.responsive.js +1 -1
  317. package/side-panel/modern/components/controls/Component.js +1 -1
  318. package/side-panel/modern/components/controls/index.js +1 -1
  319. package/side-panel/modern/components/footer/Component.desktop.js +1 -1
  320. package/side-panel/modern/components/footer/Component.js +1 -1
  321. package/side-panel/modern/components/footer/Component.mobile.js +1 -1
  322. package/side-panel/modern/desktop/Component.desktop.js +1 -1
  323. package/side-panel/modern/desktop/index.js +1 -1
  324. package/side-panel/modern/index.js +1 -1
  325. package/side-panel/modern/mobile/Component.mobile.js +1 -1
  326. package/side-panel/modern/mobile/index.js +1 -1
  327. package/stack/component.js +4 -4
  328. package/stack/context.d.ts +29 -0
  329. package/stack/context.js +34 -0
  330. package/stack/cssm/component.js +4 -4
  331. package/stack/cssm/context.d.ts +29 -0
  332. package/stack/cssm/context.js +34 -0
  333. package/stack/cssm/index.d.ts +1 -0
  334. package/stack/cssm/index.js +3 -0
  335. package/stack/esm/component.js +1 -1
  336. package/stack/esm/context.d.ts +29 -0
  337. package/stack/esm/context.js +31 -0
  338. package/stack/esm/index.d.ts +1 -0
  339. package/stack/esm/index.js +1 -1
  340. package/stack/index.d.ts +1 -0
  341. package/stack/index.js +3 -0
  342. package/stack/modern/component.js +1 -1
  343. package/stack/modern/context.d.ts +29 -0
  344. package/stack/modern/context.js +31 -0
  345. package/stack/modern/index.d.ts +1 -0
  346. package/stack/modern/index.js +1 -1
  347. package/themes/compiled/mobile-dark-bluetint.css +68 -68
  348. package/toast/components/base-toast/component.js +1 -2
  349. package/toast/cssm/components/base-toast/component.js +1 -2
  350. package/toast/esm/Component.responsive.js +0 -1
  351. package/toast/esm/components/base-toast/component.js +1 -2
  352. package/toast/esm/components/base-toast/index.js +0 -1
  353. package/toast/esm/desktop/Component.desktop.js +0 -1
  354. package/toast/esm/desktop/index.js +0 -1
  355. package/toast/esm/index.js +0 -1
  356. package/toast/esm/mobile/Component.mobile.js +0 -1
  357. package/toast/esm/mobile/index.js +0 -1
  358. package/toast/modern/Component.responsive.js +0 -1
  359. package/toast/modern/components/base-toast/component.js +1 -2
  360. package/toast/modern/components/base-toast/index.js +0 -1
  361. package/toast/modern/desktop/Component.desktop.js +0 -1
  362. package/toast/modern/desktop/index.js +0 -1
  363. package/toast/modern/index.js +0 -1
  364. package/toast/modern/mobile/Component.mobile.js +0 -1
  365. package/toast/modern/mobile/index.js +0 -1
  366. package/universal-date-input/cssm/index-5712fce2.d.ts +14 -1
  367. package/universal-date-input/esm/index-5712fce2.d.ts +14 -1
  368. package/universal-date-input/index-5712fce2.d.ts +14 -1
  369. package/universal-date-input/modern/index-5712fce2.d.ts +14 -1
  370. package/international-phone-input/cssm/index-7ca84eff.d.ts +0 -15
  371. package/international-phone-input/esm/index-7ca84eff.d.ts +0 -15
  372. package/international-phone-input/index-7ca84eff.d.ts +0 -15
  373. package/international-phone-input/modern/index-7ca84eff.d.ts +0 -15
  374. /package/confirmation/{countdown-section-e2c8e176.d.ts → countdown-section-89c39f08.d.ts} +0 -0
  375. /package/confirmation/{countdown-section-e2c8e176.js → countdown-section-89c39f08.js} +0 -0
  376. /package/confirmation/esm/{countdown-section-769ee0cc.d.ts → countdown-section-2900c91e.d.ts} +0 -0
  377. /package/confirmation/esm/{countdown-section-769ee0cc.js → countdown-section-2900c91e.js} +0 -0
  378. /package/confirmation/modern/{countdown-section-1be7a0e9.d.ts → countdown-section-1480ae8f.d.ts} +0 -0
  379. /package/confirmation/modern/{countdown-section-1be7a0e9.js → countdown-section-1480ae8f.js} +0 -0
  380. /package/gallery/{buttons-86aa9ca3.d.ts → buttons-157b97c5.d.ts} +0 -0
  381. /package/gallery/{buttons-86aa9ca3.js → buttons-157b97c5.js} +0 -0
  382. /package/gallery/esm/{buttons-044f4137.d.ts → buttons-81740edc.d.ts} +0 -0
  383. /package/gallery/esm/{buttons-044f4137.js → buttons-81740edc.js} +0 -0
  384. /package/gallery/esm/{slide-1c391682.d.ts → slide-823b5f0b.d.ts} +0 -0
  385. /package/gallery/esm/{slide-1c391682.js → slide-823b5f0b.js} +0 -0
  386. /package/gallery/modern/{buttons-ddcab41a.d.ts → buttons-6a4235ad.d.ts} +0 -0
  387. /package/gallery/modern/{buttons-ddcab41a.js → buttons-6a4235ad.js} +0 -0
  388. /package/gallery/modern/{slide-704f878b.d.ts → slide-5181bfc0.d.ts} +0 -0
  389. /package/gallery/modern/{slide-704f878b.js → slide-5181bfc0.js} +0 -0
  390. /package/gallery/{slide-aa977082.d.ts → slide-69352f22.d.ts} +0 -0
  391. /package/gallery/{slide-aa977082.js → slide-69352f22.js} +0 -0
  392. /package/modal/esm/{layout.module-435f9178.js → layout.module-cec54653.js} +0 -0
  393. /package/modal/{layout.module-982a9256.js → layout.module-3225f3fd.js} +0 -0
  394. /package/modal/modern/{layout.module-2e9bc486.js → layout.module-04f9c218.js} +0 -0
  395. /package/picker-button/{Component-a5b021bd.d.ts → Component-fe2bc9bb.d.ts} +0 -0
  396. /package/picker-button/cssm/{Component-a5b021bd.d.ts → Component-fe2bc9bb.d.ts} +0 -0
  397. /package/picker-button/esm/{Component-a5b021bd.d.ts → Component-fe2bc9bb.d.ts} +0 -0
  398. /package/picker-button/modern/{Component-a5b021bd.d.ts → Component-fe2bc9bb.d.ts} +0 -0
  399. /package/pure-cell/{component-d96a6334.d.ts → component-33c19d66.d.ts} +0 -0
  400. /package/pure-cell/{component-d96a6334.js → component-33c19d66.js} +0 -0
  401. /package/pure-cell/esm/{component-5e5c0f7d.d.ts → component-8efd06f2.d.ts} +0 -0
  402. /package/pure-cell/esm/{component-5e5c0f7d.js → component-8efd06f2.js} +0 -0
  403. /package/pure-cell/modern/{component-291832fd.d.ts → component-7c7694ce.d.ts} +0 -0
  404. /package/pure-cell/modern/{component-291832fd.js → component-7c7694ce.js} +0 -0
  405. /package/select/esm/{hook-a55955da.d.ts → hook-ffa189bd.d.ts} +0 -0
  406. /package/select/esm/{hook-a55955da.js → hook-ffa189bd.js} +0 -0
  407. /package/select/{hook-6702fbc2.d.ts → hook-d7dd4176.d.ts} +0 -0
  408. /package/select/{hook-6702fbc2.js → hook-d7dd4176.js} +0 -0
  409. /package/select/modern/{hook-9035d476.d.ts → hook-826a1bd6.d.ts} +0 -0
  410. /package/select/modern/{hook-9035d476.js → hook-826a1bd6.js} +0 -0
  411. /package/side-panel/esm/{layout.module-278dcd0c.js → layout.module-07fad522.js} +0 -0
  412. /package/side-panel/{layout.module-98726143.js → layout.module-f14de816.js} +0 -0
  413. /package/side-panel/modern/{layout.module-9d97095e.js → layout.module-7200d95f.js} +0 -0
@@ -6,7 +6,6 @@ var reactTransitionGroup = require('react-transition-group');
6
6
  var cn = require('classnames');
7
7
  var coreComponentsPortal = require('../portal');
8
8
  var coreComponentsStack = require('../stack');
9
- var stackContext = require('@alfalab/stack-context');
10
9
  var components_notification_component = require('./components/notification/component.js');
11
10
 
12
11
  function _interopDefaultCompat (e) { return e && typeof e === 'object' && 'default' in e ? e : { default: e }; }
@@ -26,7 +25,7 @@ var TIMEOUT = {
26
25
  enter: 400,
27
26
  };
28
27
  var NotificationManager = React.forwardRef(function (_a, ref) {
29
- var notifications = _a.notifications, className = _a.className, dataTestId = _a.dataTestId, _b = _a.zIndex, zIndex = _b === void 0 ? stackContext.stackingOrder.TOAST : _b, _c = _a.style, style = _c === void 0 ? {} : _c, offset = _a.offset, onRemoveNotification = _a.onRemoveNotification, container = _a.container, restProps = tslib.__rest(_a, ["notifications", "className", "dataTestId", "zIndex", "style", "offset", "onRemoveNotification", "container"]);
28
+ var notifications = _a.notifications, className = _a.className, dataTestId = _a.dataTestId, _b = _a.zIndex, zIndex = _b === void 0 ? coreComponentsStack.stackingOrder.TOAST : _b, _c = _a.style, style = _c === void 0 ? {} : _c, offset = _a.offset, onRemoveNotification = _a.onRemoveNotification, container = _a.container, restProps = tslib.__rest(_a, ["notifications", "className", "dataTestId", "zIndex", "style", "offset", "onRemoveNotification", "container"]);
30
29
  return (React__default.default.createElement(coreComponentsStack.Stack, { value: zIndex }, function (computedZIndex) { return (React__default.default.createElement(coreComponentsPortal.Portal, { getPortalContainer: container },
31
30
  React__default.default.createElement("div", tslib.__assign({ className: cn__default.default(styles.component, className), ref: ref, "data-test-id": dataTestId, style: tslib.__assign({ zIndex: computedZIndex, top: offset }, style) }, restProps),
32
31
  React__default.default.createElement(reactTransitionGroup.TransitionGroup, null, notifications.map(function (element, index) {
@@ -6,7 +6,6 @@ var reactTransitionGroup = require('react-transition-group');
6
6
  var cn = require('classnames');
7
7
  var coreComponentsPortal = require('../../portal/cssm');
8
8
  var coreComponentsStack = require('../../stack/cssm');
9
- var stackContext = require('@alfalab/stack-context');
10
9
  var components_notification_component = require('./components/notification/component.js');
11
10
  var styles = require('./index.module.css');
12
11
 
@@ -25,7 +24,7 @@ var TIMEOUT = {
25
24
  enter: 400,
26
25
  };
27
26
  var NotificationManager = React.forwardRef(function (_a, ref) {
28
- var notifications = _a.notifications, className = _a.className, dataTestId = _a.dataTestId, _b = _a.zIndex, zIndex = _b === void 0 ? stackContext.stackingOrder.TOAST : _b, _c = _a.style, style = _c === void 0 ? {} : _c, offset = _a.offset, onRemoveNotification = _a.onRemoveNotification, container = _a.container, restProps = tslib.__rest(_a, ["notifications", "className", "dataTestId", "zIndex", "style", "offset", "onRemoveNotification", "container"]);
27
+ var notifications = _a.notifications, className = _a.className, dataTestId = _a.dataTestId, _b = _a.zIndex, zIndex = _b === void 0 ? coreComponentsStack.stackingOrder.TOAST : _b, _c = _a.style, style = _c === void 0 ? {} : _c, offset = _a.offset, onRemoveNotification = _a.onRemoveNotification, container = _a.container, restProps = tslib.__rest(_a, ["notifications", "className", "dataTestId", "zIndex", "style", "offset", "onRemoveNotification", "container"]);
29
28
  return (React__default.default.createElement(coreComponentsStack.Stack, { value: zIndex }, function (computedZIndex) { return (React__default.default.createElement(coreComponentsPortal.Portal, { getPortalContainer: container },
30
29
  React__default.default.createElement("div", tslib.__assign({ className: cn__default.default(styles__default.default.component, className), ref: ref, "data-test-id": dataTestId, style: tslib.__assign({ zIndex: computedZIndex, top: offset }, style) }, restProps),
31
30
  React__default.default.createElement(reactTransitionGroup.TransitionGroup, null, notifications.map(function (element, index) {
@@ -3,8 +3,7 @@ import React, { forwardRef } from 'react';
3
3
  import { TransitionGroup, CSSTransition } from 'react-transition-group';
4
4
  import cn from 'classnames';
5
5
  import { Portal } from '../../portal/esm';
6
- import { Stack } from '../../stack/esm';
7
- import { stackingOrder } from '@alfalab/stack-context';
6
+ import { stackingOrder, Stack } from '../../stack/esm';
8
7
  import { Notification } from './components/notification/component.js';
9
8
 
10
9
  var styles = {"component":"notification-manager__component_19o99","notification":"notification-manager__notification_19o99","withoutMargin":"notification-manager__withoutMargin_19o99","enter":"notification-manager__enter_19o99","enterActive":"notification-manager__enterActive_19o99"};
@@ -5,5 +5,4 @@ import 'react-transition-group';
5
5
  import 'classnames';
6
6
  import '../../portal/esm';
7
7
  import '../../stack/esm';
8
- import '@alfalab/stack-context';
9
8
  import './components/notification/component.js';
@@ -2,8 +2,7 @@ import React, { forwardRef } from 'react';
2
2
  import { TransitionGroup, CSSTransition } from 'react-transition-group';
3
3
  import cn from 'classnames';
4
4
  import { Portal } from '../../portal/modern';
5
- import { Stack } from '../../stack/modern';
6
- import { stackingOrder } from '@alfalab/stack-context';
5
+ import { Stack, stackingOrder } from '../../stack/modern';
7
6
  import { Notification } from './components/notification/component.js';
8
7
 
9
8
  const styles = {"component":"notification-manager__component_19o99","notification":"notification-manager__notification_19o99","withoutMargin":"notification-manager__withoutMargin_19o99","enter":"notification-manager__enter_19o99","enterActive":"notification-manager__enterActive_19o99"};
@@ -4,5 +4,4 @@ import 'react-transition-group';
4
4
  import 'classnames';
5
5
  import '../../portal/modern';
6
6
  import '../../stack/modern';
7
- import '@alfalab/stack-context';
8
7
  import './components/notification/component.js';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@alfalab/core-components",
3
- "version": "45.9.0-beta.1",
3
+ "version": "45.9.0-beta.3",
4
4
  "license": "MIT",
5
5
  "repository": {
6
6
  "type": "git",
@@ -56,7 +56,6 @@
56
56
  "@alfalab/hooks": "^1.13.0",
57
57
  "@alfalab/icons-glyph": "^2.139.0",
58
58
  "@alfalab/icons-logotype": "^2.27.0",
59
- "@alfalab/stack-context": "^1.15.0",
60
59
  "@alfalab/utils": "^1.15.2",
61
60
  "@dnd-kit/core": "^6.0.7",
62
61
  "@dnd-kit/sortable": "^7.0.2",
@@ -2,7 +2,7 @@
2
2
  /// <reference types="react-transition-group" />
3
3
  /* eslint-disable jsx-a11y/no-noninteractive-element-interactions */
4
4
  import React from "react";
5
- import { FC, KeyboardEvent, MouseEvent, MutableRefObject, ReactNode, Ref, RefObject } from "react";
5
+ import { FC, KeyboardEvent, MouseEvent, MutableRefObject, ReactNode, Ref } from "react";
6
6
  import { TransitionProps } from "react-transition-group/Transition";
7
7
  import { BackdropProps } from "./index-ebda875c";
8
8
  type PortalProps = {
@@ -170,6 +170,18 @@ declare function isScrolledToBottom(target: HTMLElement): boolean;
170
170
  declare function hasScrollbar(target: HTMLElement): boolean;
171
171
  declare const restoreContainerStyles: (container: HTMLElement) => void;
172
172
  declare const handleContainer: (container?: HTMLElement) => void;
173
+ /**
174
+ * Набор констант для z-index соответствующих классов компонентов.
175
+ * Значения выбраны по приоритету.
176
+ */
177
+ declare const stackingOrder: {
178
+ FOCUSED: number;
179
+ DEFAULT: number;
180
+ POPOVER: number;
181
+ MODAL: number;
182
+ TOAST: number;
183
+ };
184
+ declare const StackingContext: import("react").Context<number>;
173
185
  type StackProps = {
174
186
  /**
175
187
  * Render prop, в который передается функция.
@@ -183,9 +195,6 @@ type StackProps = {
183
195
  value?: number;
184
196
  };
185
197
  declare const Stack: FC<StackProps>;
186
- declare const PORTAL_CONTAINER_ATTRIBUTE = "alfa-portal-container";
187
- declare const getDefaultPortalContainer: () => Element;
188
- declare function setRef<T>(ref: RefObject<T> | ((instance: T | null) => void) | null | undefined, value: T | null): void;
189
198
  type SavedStyle = {
190
199
  value: string;
191
200
  key: string;
@@ -207,5 +216,5 @@ declare class GlobalStore {
207
216
  constructor();
208
217
  getModalStore: () => ModalStore;
209
218
  }
210
- export { BaseModalProps, BaseModalContext, BaseModal, isScrolledToTop, isScrolledToBottom, hasScrollbar, restoreContainerStyles, handleContainer, StackProps, Stack, PORTAL_CONTAINER_ATTRIBUTE, getDefaultPortalContainer, setRef, getModalStore, GlobalStore };
219
+ export { BaseModalProps, BaseModalContext, BaseModal, isScrolledToTop, isScrolledToBottom, hasScrollbar, restoreContainerStyles, handleContainer, stackingOrder, StackingContext, StackProps, Stack, getModalStore, GlobalStore };
211
220
  export type { SavedStyle };
@@ -62,5 +62,7 @@ declare function preventDefault(e: React.UIEvent): void;
62
62
  declare const dom: {
63
63
  preventDefault: typeof preventDefault;
64
64
  };
65
- export { isClient, os, getDataTestId, createPaddingStyle, easingFns, fnUtils, maskUtils, hooks, dom };
65
+ type PortalContextType = () => Element | null;
66
+ declare const PortalContext: import("react").Context<PortalContextType>;
67
+ export { isClient, os, getDataTestId, createPaddingStyle, easingFns, fnUtils, maskUtils, hooks, dom, PortalContext };
66
68
  export * from "./browser-a216f694";
@@ -0,0 +1,2 @@
1
+ declare const usePortalContainer: () => () => Element | null;
2
+ export { usePortalContainer };
@@ -0,0 +1,5 @@
1
+ import { RefObject } from 'react';
2
+ declare const PORTAL_CONTAINER_ATTRIBUTE = "alfa-portal-container";
3
+ declare const getDefaultPortalContainer: () => Element;
4
+ declare function setRef<T>(ref: RefObject<T> | ((instance: T | null) => void) | null | undefined, value: T | null): void;
5
+ export { PORTAL_CONTAINER_ATTRIBUTE, getDefaultPortalContainer, setRef };
@@ -2,7 +2,7 @@
2
2
  /// <reference types="react-transition-group" />
3
3
  /* eslint-disable jsx-a11y/no-noninteractive-element-interactions */
4
4
  import React from "react";
5
- import { FC, KeyboardEvent, MouseEvent, MutableRefObject, ReactNode, Ref, RefObject } from "react";
5
+ import { FC, KeyboardEvent, MouseEvent, MutableRefObject, ReactNode, Ref } from "react";
6
6
  import { TransitionProps } from "react-transition-group/Transition";
7
7
  import { BackdropProps } from "./index-ebda875c";
8
8
  type PortalProps = {
@@ -170,6 +170,18 @@ declare function isScrolledToBottom(target: HTMLElement): boolean;
170
170
  declare function hasScrollbar(target: HTMLElement): boolean;
171
171
  declare const restoreContainerStyles: (container: HTMLElement) => void;
172
172
  declare const handleContainer: (container?: HTMLElement) => void;
173
+ /**
174
+ * Набор констант для z-index соответствующих классов компонентов.
175
+ * Значения выбраны по приоритету.
176
+ */
177
+ declare const stackingOrder: {
178
+ FOCUSED: number;
179
+ DEFAULT: number;
180
+ POPOVER: number;
181
+ MODAL: number;
182
+ TOAST: number;
183
+ };
184
+ declare const StackingContext: import("react").Context<number>;
173
185
  type StackProps = {
174
186
  /**
175
187
  * Render prop, в который передается функция.
@@ -183,9 +195,6 @@ type StackProps = {
183
195
  value?: number;
184
196
  };
185
197
  declare const Stack: FC<StackProps>;
186
- declare const PORTAL_CONTAINER_ATTRIBUTE = "alfa-portal-container";
187
- declare const getDefaultPortalContainer: () => Element;
188
- declare function setRef<T>(ref: RefObject<T> | ((instance: T | null) => void) | null | undefined, value: T | null): void;
189
198
  type SavedStyle = {
190
199
  value: string;
191
200
  key: string;
@@ -207,5 +216,5 @@ declare class GlobalStore {
207
216
  constructor();
208
217
  getModalStore: () => ModalStore;
209
218
  }
210
- export { BaseModalProps, BaseModalContext, BaseModal, isScrolledToTop, isScrolledToBottom, hasScrollbar, restoreContainerStyles, handleContainer, StackProps, Stack, PORTAL_CONTAINER_ATTRIBUTE, getDefaultPortalContainer, setRef, getModalStore, GlobalStore };
219
+ export { BaseModalProps, BaseModalContext, BaseModal, isScrolledToTop, isScrolledToBottom, hasScrollbar, restoreContainerStyles, handleContainer, stackingOrder, StackingContext, StackProps, Stack, getModalStore, GlobalStore };
211
220
  export type { SavedStyle };
@@ -62,5 +62,7 @@ declare function preventDefault(e: React.UIEvent): void;
62
62
  declare const dom: {
63
63
  preventDefault: typeof preventDefault;
64
64
  };
65
- export { isClient, os, getDataTestId, createPaddingStyle, easingFns, fnUtils, maskUtils, hooks, dom };
65
+ type PortalContextType = () => Element | null;
66
+ declare const PortalContext: import("react").Context<PortalContextType>;
67
+ export { isClient, os, getDataTestId, createPaddingStyle, easingFns, fnUtils, maskUtils, hooks, dom, PortalContext };
66
68
  export * from "./browser-a216f694";
@@ -0,0 +1,2 @@
1
+ declare const usePortalContainer: () => () => Element | null;
2
+ export { usePortalContainer };
@@ -0,0 +1,5 @@
1
+ import { RefObject } from 'react';
2
+ declare const PORTAL_CONTAINER_ATTRIBUTE = "alfa-portal-container";
3
+ declare const getDefaultPortalContainer: () => Element;
4
+ declare function setRef<T>(ref: RefObject<T> | ((instance: T | null) => void) | null | undefined, value: T | null): void;
5
+ export { PORTAL_CONTAINER_ATTRIBUTE, getDefaultPortalContainer, setRef };
@@ -2,7 +2,7 @@
2
2
  /// <reference types="react-transition-group" />
3
3
  /* eslint-disable jsx-a11y/no-noninteractive-element-interactions */
4
4
  import React from "react";
5
- import { FC, KeyboardEvent, MouseEvent, MutableRefObject, ReactNode, Ref, RefObject } from "react";
5
+ import { FC, KeyboardEvent, MouseEvent, MutableRefObject, ReactNode, Ref } from "react";
6
6
  import { TransitionProps } from "react-transition-group/Transition";
7
7
  import { BackdropProps } from "./index-ebda875c";
8
8
  type PortalProps = {
@@ -170,6 +170,18 @@ declare function isScrolledToBottom(target: HTMLElement): boolean;
170
170
  declare function hasScrollbar(target: HTMLElement): boolean;
171
171
  declare const restoreContainerStyles: (container: HTMLElement) => void;
172
172
  declare const handleContainer: (container?: HTMLElement) => void;
173
+ /**
174
+ * Набор констант для z-index соответствующих классов компонентов.
175
+ * Значения выбраны по приоритету.
176
+ */
177
+ declare const stackingOrder: {
178
+ FOCUSED: number;
179
+ DEFAULT: number;
180
+ POPOVER: number;
181
+ MODAL: number;
182
+ TOAST: number;
183
+ };
184
+ declare const StackingContext: import("react").Context<number>;
173
185
  type StackProps = {
174
186
  /**
175
187
  * Render prop, в который передается функция.
@@ -183,9 +195,6 @@ type StackProps = {
183
195
  value?: number;
184
196
  };
185
197
  declare const Stack: FC<StackProps>;
186
- declare const PORTAL_CONTAINER_ATTRIBUTE = "alfa-portal-container";
187
- declare const getDefaultPortalContainer: () => Element;
188
- declare function setRef<T>(ref: RefObject<T> | ((instance: T | null) => void) | null | undefined, value: T | null): void;
189
198
  type SavedStyle = {
190
199
  value: string;
191
200
  key: string;
@@ -207,5 +216,5 @@ declare class GlobalStore {
207
216
  constructor();
208
217
  getModalStore: () => ModalStore;
209
218
  }
210
- export { BaseModalProps, BaseModalContext, BaseModal, isScrolledToTop, isScrolledToBottom, hasScrollbar, restoreContainerStyles, handleContainer, StackProps, Stack, PORTAL_CONTAINER_ATTRIBUTE, getDefaultPortalContainer, setRef, getModalStore, GlobalStore };
219
+ export { BaseModalProps, BaseModalContext, BaseModal, isScrolledToTop, isScrolledToBottom, hasScrollbar, restoreContainerStyles, handleContainer, stackingOrder, StackingContext, StackProps, Stack, getModalStore, GlobalStore };
211
220
  export type { SavedStyle };
@@ -62,5 +62,7 @@ declare function preventDefault(e: React.UIEvent): void;
62
62
  declare const dom: {
63
63
  preventDefault: typeof preventDefault;
64
64
  };
65
- export { isClient, os, getDataTestId, createPaddingStyle, easingFns, fnUtils, maskUtils, hooks, dom };
65
+ type PortalContextType = () => Element | null;
66
+ declare const PortalContext: import("react").Context<PortalContextType>;
67
+ export { isClient, os, getDataTestId, createPaddingStyle, easingFns, fnUtils, maskUtils, hooks, dom, PortalContext };
66
68
  export * from "./browser-a216f694";
@@ -2,7 +2,7 @@
2
2
  /// <reference types="react-transition-group" />
3
3
  /* eslint-disable jsx-a11y/no-noninteractive-element-interactions */
4
4
  import React from "react";
5
- import { FC, KeyboardEvent, MouseEvent, MutableRefObject, ReactNode, Ref, RefObject } from "react";
5
+ import { FC, KeyboardEvent, MouseEvent, MutableRefObject, ReactNode, Ref } from "react";
6
6
  import { TransitionProps } from "react-transition-group/Transition";
7
7
  import { BackdropProps } from "./index-ebda875c";
8
8
  type PortalProps = {
@@ -170,6 +170,18 @@ declare function isScrolledToBottom(target: HTMLElement): boolean;
170
170
  declare function hasScrollbar(target: HTMLElement): boolean;
171
171
  declare const restoreContainerStyles: (container: HTMLElement) => void;
172
172
  declare const handleContainer: (container?: HTMLElement) => void;
173
+ /**
174
+ * Набор констант для z-index соответствующих классов компонентов.
175
+ * Значения выбраны по приоритету.
176
+ */
177
+ declare const stackingOrder: {
178
+ FOCUSED: number;
179
+ DEFAULT: number;
180
+ POPOVER: number;
181
+ MODAL: number;
182
+ TOAST: number;
183
+ };
184
+ declare const StackingContext: import("react").Context<number>;
173
185
  type StackProps = {
174
186
  /**
175
187
  * Render prop, в который передается функция.
@@ -183,9 +195,6 @@ type StackProps = {
183
195
  value?: number;
184
196
  };
185
197
  declare const Stack: FC<StackProps>;
186
- declare const PORTAL_CONTAINER_ATTRIBUTE = "alfa-portal-container";
187
- declare const getDefaultPortalContainer: () => Element;
188
- declare function setRef<T>(ref: RefObject<T> | ((instance: T | null) => void) | null | undefined, value: T | null): void;
189
198
  type SavedStyle = {
190
199
  value: string;
191
200
  key: string;
@@ -207,5 +216,5 @@ declare class GlobalStore {
207
216
  constructor();
208
217
  getModalStore: () => ModalStore;
209
218
  }
210
- export { BaseModalProps, BaseModalContext, BaseModal, isScrolledToTop, isScrolledToBottom, hasScrollbar, restoreContainerStyles, handleContainer, StackProps, Stack, PORTAL_CONTAINER_ATTRIBUTE, getDefaultPortalContainer, setRef, getModalStore, GlobalStore };
219
+ export { BaseModalProps, BaseModalContext, BaseModal, isScrolledToTop, isScrolledToBottom, hasScrollbar, restoreContainerStyles, handleContainer, stackingOrder, StackingContext, StackProps, Stack, getModalStore, GlobalStore };
211
220
  export type { SavedStyle };
@@ -62,5 +62,7 @@ declare function preventDefault(e: React.UIEvent): void;
62
62
  declare const dom: {
63
63
  preventDefault: typeof preventDefault;
64
64
  };
65
- export { isClient, os, getDataTestId, createPaddingStyle, easingFns, fnUtils, maskUtils, hooks, dom };
65
+ type PortalContextType = () => Element | null;
66
+ declare const PortalContext: import("react").Context<PortalContextType>;
67
+ export { isClient, os, getDataTestId, createPaddingStyle, easingFns, fnUtils, maskUtils, hooks, dom, PortalContext };
66
68
  export * from "./browser-a216f694";
@@ -0,0 +1,2 @@
1
+ declare const usePortalContainer: () => () => Element | null;
2
+ export { usePortalContainer };
@@ -0,0 +1,5 @@
1
+ import { RefObject } from 'react';
2
+ declare const PORTAL_CONTAINER_ATTRIBUTE = "alfa-portal-container";
3
+ declare const getDefaultPortalContainer: () => Element;
4
+ declare function setRef<T>(ref: RefObject<T> | ((instance: T | null) => void) | null | undefined, value: T | null): void;
5
+ export { PORTAL_CONTAINER_ATTRIBUTE, getDefaultPortalContainer, setRef };
@@ -0,0 +1,2 @@
1
+ declare const usePortalContainer: () => () => Element | null;
2
+ export { usePortalContainer };
@@ -0,0 +1,5 @@
1
+ import { RefObject } from 'react';
2
+ declare const PORTAL_CONTAINER_ATTRIBUTE = "alfa-portal-container";
3
+ declare const getDefaultPortalContainer: () => Element;
4
+ declare function setRef<T>(ref: RefObject<T> | ((instance: T | null) => void) | null | undefined, value: T | null): void;
5
+ export { PORTAL_CONTAINER_ATTRIBUTE, getDefaultPortalContainer, setRef };
@@ -11,7 +11,6 @@ var maxSize = require('popper-max-size-modifier');
11
11
  var coreComponentsPortal = require('../portal');
12
12
  var coreComponentsStack = require('../stack');
13
13
  var hooks = require('@alfalab/hooks');
14
- var stackContext = require('@alfalab/stack-context');
15
14
 
16
15
  function _interopDefaultCompat (e) { return e && typeof e === 'object' && 'default' in e ? e : { default: e }; }
17
16
 
@@ -66,7 +65,7 @@ function getArrowPadding(_a) {
66
65
  return 0;
67
66
  }
68
67
  var Popover = React.forwardRef(function (_a, ref) {
69
- var children = _a.children, getPortalContainer = _a.getPortalContainer, _b = _a.transition, transition = _b === void 0 ? DEFAULT_TRANSITION : _b, anchorElement = _a.anchorElement, useAnchorWidth = _a.useAnchorWidth, _c = _a.offset, offset = _c === void 0 ? DEFAULT_OFFSET : _c, _d = _a.withArrow, withArrow = _d === void 0 ? false : _d, _e = _a.withTransition, withTransition = _e === void 0 ? true : _e, _f = _a.position, position = _f === void 0 ? 'left' : _f, preventFlip = _a.preventFlip, popperClassName = _a.popperClassName, arrowClassName = _a.arrowClassName, className = _a.className, open = _a.open, dataTestId = _a.dataTestId, update = _a.update, _g = _a.transitionDuration, transitionDuration = _g === void 0 ? "".concat(transition.timeout, "ms") : _g, _h = _a.zIndex, zIndex = _h === void 0 ? stackContext.stackingOrder.POPOVER : _h, fallbackPlacements = _a.fallbackPlacements, _j = _a.preventOverflow, preventOverflow = _j === void 0 ? true : _j, _k = _a.availableHeight, availableHeight = _k === void 0 ? false : _k;
68
+ var children = _a.children, getPortalContainer = _a.getPortalContainer, _b = _a.transition, transition = _b === void 0 ? DEFAULT_TRANSITION : _b, anchorElement = _a.anchorElement, useAnchorWidth = _a.useAnchorWidth, _c = _a.offset, offset = _c === void 0 ? DEFAULT_OFFSET : _c, _d = _a.withArrow, withArrow = _d === void 0 ? false : _d, _e = _a.withTransition, withTransition = _e === void 0 ? true : _e, _f = _a.position, position = _f === void 0 ? 'left' : _f, preventFlip = _a.preventFlip, popperClassName = _a.popperClassName, arrowClassName = _a.arrowClassName, className = _a.className, open = _a.open, dataTestId = _a.dataTestId, update = _a.update, _g = _a.transitionDuration, transitionDuration = _g === void 0 ? "".concat(transition.timeout, "ms") : _g, _h = _a.zIndex, zIndex = _h === void 0 ? coreComponentsStack.stackingOrder.POPOVER : _h, fallbackPlacements = _a.fallbackPlacements, _j = _a.preventOverflow, preventOverflow = _j === void 0 ? true : _j, _k = _a.availableHeight, availableHeight = _k === void 0 ? false : _k;
70
69
  var _l = React.useState(anchorElement), referenceElement = _l[0], setReferenceElement = _l[1];
71
70
  var _m = React.useState(null), popperElement = _m[0], setPopperElement = _m[1];
72
71
  var _o = React.useState(null), arrowElement = _o[0], setArrowElement = _o[1];
@@ -11,7 +11,6 @@ var maxSize = require('popper-max-size-modifier');
11
11
  var coreComponentsPortal = require('../../portal/cssm');
12
12
  var coreComponentsStack = require('../../stack/cssm');
13
13
  var hooks = require('@alfalab/hooks');
14
- var stackContext = require('@alfalab/stack-context');
15
14
  var styles = require('./index.module.css');
16
15
 
17
16
  function _interopDefaultCompat (e) { return e && typeof e === 'object' && 'default' in e ? e : { default: e }; }
@@ -65,7 +64,7 @@ function getArrowPadding(_a) {
65
64
  return 0;
66
65
  }
67
66
  var Popover = React.forwardRef(function (_a, ref) {
68
- var children = _a.children, getPortalContainer = _a.getPortalContainer, _b = _a.transition, transition = _b === void 0 ? DEFAULT_TRANSITION : _b, anchorElement = _a.anchorElement, useAnchorWidth = _a.useAnchorWidth, _c = _a.offset, offset = _c === void 0 ? DEFAULT_OFFSET : _c, _d = _a.withArrow, withArrow = _d === void 0 ? false : _d, _e = _a.withTransition, withTransition = _e === void 0 ? true : _e, _f = _a.position, position = _f === void 0 ? 'left' : _f, preventFlip = _a.preventFlip, popperClassName = _a.popperClassName, arrowClassName = _a.arrowClassName, className = _a.className, open = _a.open, dataTestId = _a.dataTestId, update = _a.update, _g = _a.transitionDuration, transitionDuration = _g === void 0 ? "".concat(transition.timeout, "ms") : _g, _h = _a.zIndex, zIndex = _h === void 0 ? stackContext.stackingOrder.POPOVER : _h, fallbackPlacements = _a.fallbackPlacements, _j = _a.preventOverflow, preventOverflow = _j === void 0 ? true : _j, _k = _a.availableHeight, availableHeight = _k === void 0 ? false : _k;
67
+ var children = _a.children, getPortalContainer = _a.getPortalContainer, _b = _a.transition, transition = _b === void 0 ? DEFAULT_TRANSITION : _b, anchorElement = _a.anchorElement, useAnchorWidth = _a.useAnchorWidth, _c = _a.offset, offset = _c === void 0 ? DEFAULT_OFFSET : _c, _d = _a.withArrow, withArrow = _d === void 0 ? false : _d, _e = _a.withTransition, withTransition = _e === void 0 ? true : _e, _f = _a.position, position = _f === void 0 ? 'left' : _f, preventFlip = _a.preventFlip, popperClassName = _a.popperClassName, arrowClassName = _a.arrowClassName, className = _a.className, open = _a.open, dataTestId = _a.dataTestId, update = _a.update, _g = _a.transitionDuration, transitionDuration = _g === void 0 ? "".concat(transition.timeout, "ms") : _g, _h = _a.zIndex, zIndex = _h === void 0 ? coreComponentsStack.stackingOrder.POPOVER : _h, fallbackPlacements = _a.fallbackPlacements, _j = _a.preventOverflow, preventOverflow = _j === void 0 ? true : _j, _k = _a.availableHeight, availableHeight = _k === void 0 ? false : _k;
69
68
  var _l = React.useState(anchorElement), referenceElement = _l[0], setReferenceElement = _l[1];
70
69
  var _m = React.useState(null), popperElement = _m[0], setPopperElement = _m[1];
71
70
  var _o = React.useState(null), arrowElement = _o[0], setArrowElement = _o[1];
@@ -7,9 +7,8 @@ import { ResizeObserver } from '@juggle/resize-observer';
7
7
  import cn from 'classnames';
8
8
  import maxSize from 'popper-max-size-modifier';
9
9
  import { Portal } from '../../portal/esm';
10
- import { Stack } from '../../stack/esm';
10
+ import { stackingOrder, Stack } from '../../stack/esm';
11
11
  import { useLayoutEffect_SAFE_FOR_SSR } from '@alfalab/hooks';
12
- import { stackingOrder } from '@alfalab/stack-context';
13
12
 
14
13
  var styles = {"component":"popover__component_10vxr","inner":"popover__inner_10vxr","scrollableContent":"popover__scrollableContent_10vxr","arrow":"popover__arrow_10vxr","enter":"popover__enter_10vxr","enterActive":"popover__enterActive_10vxr","exit":"popover__exit_10vxr","exitActive":"popover__exitActive_10vxr"};
15
14
  require('./index.css');
@@ -10,4 +10,3 @@ import 'popper-max-size-modifier';
10
10
  import '../../portal/esm';
11
11
  import '../../stack/esm';
12
12
  import '@alfalab/hooks';
13
- import '@alfalab/stack-context';
@@ -6,9 +6,8 @@ import { ResizeObserver } from '@juggle/resize-observer';
6
6
  import cn from 'classnames';
7
7
  import maxSize from 'popper-max-size-modifier';
8
8
  import { Portal } from '../../portal/modern';
9
- import { Stack } from '../../stack/modern';
9
+ import { Stack, stackingOrder } from '../../stack/modern';
10
10
  import { useLayoutEffect_SAFE_FOR_SSR } from '@alfalab/hooks';
11
- import { stackingOrder } from '@alfalab/stack-context';
12
11
 
13
12
  const styles = {"component":"popover__component_10vxr","inner":"popover__inner_10vxr","scrollableContent":"popover__scrollableContent_10vxr","arrow":"popover__arrow_10vxr","enter":"popover__enter_10vxr","enterActive":"popover__enterActive_10vxr","exit":"popover__exit_10vxr","exitActive":"popover__exitActive_10vxr"};
14
13
  require('./index.css');
@@ -9,4 +9,3 @@ import 'popper-max-size-modifier';
9
9
  import '../../portal/modern';
10
10
  import '../../stack/modern';
11
11
  import '@alfalab/hooks';
12
- import '@alfalab/stack-context';
@@ -2,13 +2,15 @@ Object.defineProperty(exports, '__esModule', { value: true });
2
2
 
3
3
  var react = require('react');
4
4
  var reactDom = require('react-dom');
5
+ var hooks_usePortalContainer = require('./hooks/usePortalContainer.js');
5
6
  var utils = require('./utils.js');
6
7
 
7
- var Portal = react.forwardRef(function (_a, ref) {
8
- var _b = _a.getPortalContainer, getPortalContainer = _b === void 0 ? utils.getDefaultPortalContainer : _b, _c = _a.immediateMount, immediateMount = _c === void 0 ? false : _c, children = _a.children;
9
- var _d = react.useState(function () {
8
+ var Portal = react.forwardRef(function (props, ref) {
9
+ var portalContainer = hooks_usePortalContainer.usePortalContainer();
10
+ var _a = props.getPortalContainer, getPortalContainer = _a === void 0 ? portalContainer : _a, _b = props.immediateMount, immediateMount = _b === void 0 ? false : _b, children = props.children;
11
+ var _c = react.useState(function () {
10
12
  return typeof window !== 'undefined' && immediateMount ? getPortalContainer() : null;
11
- }), mountNode = _d[0], setMountNode = _d[1];
13
+ }), mountNode = _c[0], setMountNode = _c[1];
12
14
  react.useEffect(function () {
13
15
  setMountNode(getPortalContainer());
14
16
  }, [getPortalContainer]);
@@ -2,13 +2,15 @@ Object.defineProperty(exports, '__esModule', { value: true });
2
2
 
3
3
  var react = require('react');
4
4
  var reactDom = require('react-dom');
5
+ var hooks_usePortalContainer = require('./hooks/usePortalContainer.js');
5
6
  var utils = require('./utils.js');
6
7
 
7
- var Portal = react.forwardRef(function (_a, ref) {
8
- var _b = _a.getPortalContainer, getPortalContainer = _b === void 0 ? utils.getDefaultPortalContainer : _b, _c = _a.immediateMount, immediateMount = _c === void 0 ? false : _c, children = _a.children;
9
- var _d = react.useState(function () {
8
+ var Portal = react.forwardRef(function (props, ref) {
9
+ var portalContainer = hooks_usePortalContainer.usePortalContainer();
10
+ var _a = props.getPortalContainer, getPortalContainer = _a === void 0 ? portalContainer : _a, _b = props.immediateMount, immediateMount = _b === void 0 ? false : _b, children = props.children;
11
+ var _c = react.useState(function () {
10
12
  return typeof window !== 'undefined' && immediateMount ? getPortalContainer() : null;
11
- }), mountNode = _d[0], setMountNode = _d[1];
13
+ }), mountNode = _c[0], setMountNode = _c[1];
12
14
  react.useEffect(function () {
13
15
  setMountNode(getPortalContainer());
14
16
  }, [getPortalContainer]);
@@ -0,0 +1,2 @@
1
+ declare const usePortalContainer: () => () => Element | null;
2
+ export { usePortalContainer };
@@ -0,0 +1,15 @@
1
+ Object.defineProperty(exports, '__esModule', { value: true });
2
+
3
+ var react = require('react');
4
+ var coreComponentsShared = require('../../../shared/cssm');
5
+ var utils = require('../utils.js');
6
+
7
+ var usePortalContainer = function () {
8
+ var getContextPortalContainer = react.useContext(coreComponentsShared.PortalContext);
9
+ if (getContextPortalContainer()) {
10
+ return getContextPortalContainer;
11
+ }
12
+ return utils.getDefaultPortalContainer;
13
+ };
14
+
15
+ exports.usePortalContainer = usePortalContainer;
@@ -1,12 +1,15 @@
1
1
  import { forwardRef, useState, useEffect } from 'react';
2
2
  import { createPortal } from 'react-dom';
3
- import { setRef, getDefaultPortalContainer } from './utils.js';
3
+ import { usePortalContainer } from './hooks/usePortalContainer.js';
4
+ import { setRef } from './utils.js';
5
+ import '../../shared/esm';
4
6
 
5
- var Portal = forwardRef(function (_a, ref) {
6
- var _b = _a.getPortalContainer, getPortalContainer = _b === void 0 ? getDefaultPortalContainer : _b, _c = _a.immediateMount, immediateMount = _c === void 0 ? false : _c, children = _a.children;
7
- var _d = useState(function () {
7
+ var Portal = forwardRef(function (props, ref) {
8
+ var portalContainer = usePortalContainer();
9
+ var _a = props.getPortalContainer, getPortalContainer = _a === void 0 ? portalContainer : _a, _b = props.immediateMount, immediateMount = _b === void 0 ? false : _b, children = props.children;
10
+ var _c = useState(function () {
8
11
  return typeof window !== 'undefined' && immediateMount ? getPortalContainer() : null;
9
- }), mountNode = _d[0], setMountNode = _d[1];
12
+ }), mountNode = _c[0], setMountNode = _c[1];
10
13
  useEffect(function () {
11
14
  setMountNode(getPortalContainer());
12
15
  }, [getPortalContainer]);
@@ -0,0 +1,2 @@
1
+ declare const usePortalContainer: () => () => Element | null;
2
+ export { usePortalContainer };
@@ -0,0 +1,13 @@
1
+ import { useContext } from 'react';
2
+ import { PortalContext } from '../../../shared/esm';
3
+ import { getDefaultPortalContainer } from '../utils.js';
4
+
5
+ var usePortalContainer = function () {
6
+ var getContextPortalContainer = useContext(PortalContext);
7
+ if (getContextPortalContainer()) {
8
+ return getContextPortalContainer;
9
+ }
10
+ return getDefaultPortalContainer;
11
+ };
12
+
13
+ export { usePortalContainer };
@@ -1,4 +1,6 @@
1
1
  export { Portal } from './Component.js';
2
2
  import 'react';
3
3
  import 'react-dom';
4
+ import './hooks/usePortalContainer.js';
5
+ import '../../shared/esm';
4
6
  import './utils.js';
@@ -0,0 +1,2 @@
1
+ declare const usePortalContainer: () => () => Element | null;
2
+ export { usePortalContainer };
@@ -0,0 +1,15 @@
1
+ Object.defineProperty(exports, '__esModule', { value: true });
2
+
3
+ var react = require('react');
4
+ var coreComponentsShared = require('../../shared');
5
+ var utils = require('../utils.js');
6
+
7
+ var usePortalContainer = function () {
8
+ var getContextPortalContainer = react.useContext(coreComponentsShared.PortalContext);
9
+ if (getContextPortalContainer()) {
10
+ return getContextPortalContainer;
11
+ }
12
+ return utils.getDefaultPortalContainer;
13
+ };
14
+
15
+ exports.usePortalContainer = usePortalContainer;
@@ -1,8 +1,12 @@
1
1
  import { forwardRef, useState, useEffect } from 'react';
2
2
  import { createPortal } from 'react-dom';
3
- import { setRef, getDefaultPortalContainer } from './utils.js';
3
+ import { usePortalContainer } from './hooks/usePortalContainer.js';
4
+ import { setRef } from './utils.js';
5
+ import '../../shared/modern';
4
6
 
5
- const Portal = forwardRef(({ getPortalContainer = getDefaultPortalContainer, immediateMount = false, children }, ref) => {
7
+ const Portal = forwardRef((props, ref) => {
8
+ const portalContainer = usePortalContainer();
9
+ const { getPortalContainer = portalContainer, immediateMount = false, children } = props;
6
10
  const [mountNode, setMountNode] = useState(() => typeof window !== 'undefined' && immediateMount ? getPortalContainer() : null);
7
11
  useEffect(() => {
8
12
  setMountNode(getPortalContainer());
@@ -0,0 +1,2 @@
1
+ declare const usePortalContainer: () => () => Element | null;
2
+ export { usePortalContainer };
@@ -0,0 +1,13 @@
1
+ import { useContext } from 'react';
2
+ import { PortalContext } from '../../../shared/modern';
3
+ import { getDefaultPortalContainer } from '../utils.js';
4
+
5
+ const usePortalContainer = () => {
6
+ const getContextPortalContainer = useContext(PortalContext);
7
+ if (getContextPortalContainer()) {
8
+ return getContextPortalContainer;
9
+ }
10
+ return getDefaultPortalContainer;
11
+ };
12
+
13
+ export { usePortalContainer };
@@ -1,4 +1,6 @@
1
1
  export { Portal } from './Component.js';
2
2
  import 'react';
3
3
  import 'react-dom';
4
+ import './hooks/usePortalContainer.js';
5
+ import '../../shared/modern';
4
6
  import './utils.js';