@alfalab/core-components 46.0.0-beta.3 → 46.0.0-beta.5

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 (296) 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/bottom-sheet/component.js +9 -3
  8. package/bottom-sheet/cssm/component.js +9 -3
  9. package/bottom-sheet/esm/component.js +10 -4
  10. package/bottom-sheet/modern/component.js +9 -4
  11. package/confirmation/components/screens/initial/component.js +1 -1
  12. package/confirmation/components/screens/initial/countdown-section.js +1 -1
  13. package/confirmation/esm/component.responsive.js +1 -1
  14. package/confirmation/esm/components/base-confirmation/component.js +1 -1
  15. package/confirmation/esm/components/base-confirmation/index.js +1 -1
  16. package/confirmation/esm/components/index.js +1 -1
  17. package/confirmation/esm/components/screens/index.js +1 -1
  18. package/confirmation/esm/components/screens/initial/component.js +1 -1
  19. package/confirmation/esm/components/screens/initial/countdown-section.js +1 -1
  20. package/confirmation/esm/components/screens/initial/index.js +1 -1
  21. package/confirmation/esm/desktop/component.desktop.js +1 -1
  22. package/confirmation/esm/desktop/index.js +1 -1
  23. package/confirmation/esm/index.js +1 -1
  24. package/confirmation/esm/mobile/component.mobile.js +1 -1
  25. package/confirmation/esm/mobile/index.js +1 -1
  26. package/confirmation/esm/shared/index.js +1 -1
  27. package/confirmation/modern/component.responsive.js +1 -1
  28. package/confirmation/modern/components/base-confirmation/component.js +1 -1
  29. package/confirmation/modern/components/base-confirmation/index.js +1 -1
  30. package/confirmation/modern/components/index.js +1 -1
  31. package/confirmation/modern/components/screens/index.js +1 -1
  32. package/confirmation/modern/components/screens/initial/component.js +1 -1
  33. package/confirmation/modern/components/screens/initial/countdown-section.js +1 -1
  34. package/confirmation/modern/components/screens/initial/index.js +1 -1
  35. package/confirmation/modern/desktop/component.desktop.js +1 -1
  36. package/confirmation/modern/desktop/index.js +1 -1
  37. package/confirmation/modern/index.js +1 -1
  38. package/confirmation/modern/mobile/component.mobile.js +1 -1
  39. package/confirmation/modern/mobile/index.js +1 -1
  40. package/confirmation/modern/shared/index.js +1 -1
  41. package/gallery/components/header/Component.js +1 -1
  42. package/gallery/components/header/buttons.js +1 -1
  43. package/gallery/components/image-viewer/component.js +1 -1
  44. package/gallery/components/image-viewer/slide.js +1 -1
  45. package/gallery/esm/Component.js +2 -2
  46. package/gallery/esm/components/header/Component.js +1 -1
  47. package/gallery/esm/components/header/buttons.js +1 -1
  48. package/gallery/esm/components/header/index.js +1 -1
  49. package/gallery/esm/components/image-preview/Component.js +1 -1
  50. package/gallery/esm/components/image-preview/index.js +1 -1
  51. package/gallery/esm/components/image-viewer/component.js +1 -1
  52. package/gallery/esm/components/image-viewer/index.js +1 -1
  53. package/gallery/esm/components/image-viewer/slide.js +1 -1
  54. package/gallery/esm/components/index.js +2 -2
  55. package/gallery/esm/components/navigation-bar/Component.js +1 -1
  56. package/gallery/esm/components/navigation-bar/index.js +1 -1
  57. package/gallery/esm/index.js +2 -2
  58. package/gallery/modern/Component.js +2 -2
  59. package/gallery/modern/components/header/Component.js +1 -1
  60. package/gallery/modern/components/header/buttons.js +1 -1
  61. package/gallery/modern/components/header/index.js +1 -1
  62. package/gallery/modern/components/image-preview/Component.js +1 -1
  63. package/gallery/modern/components/image-preview/index.js +1 -1
  64. package/gallery/modern/components/image-viewer/component.js +1 -1
  65. package/gallery/modern/components/image-viewer/index.js +1 -1
  66. package/gallery/modern/components/image-viewer/slide.js +1 -1
  67. package/gallery/modern/components/index.js +2 -2
  68. package/gallery/modern/components/navigation-bar/Component.js +1 -1
  69. package/gallery/modern/components/navigation-bar/index.js +1 -1
  70. package/gallery/modern/index.js +2 -2
  71. package/international-phone-input/cssm/index-136acbb1.d.ts +28 -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/modal/components/controls/Component.js +1 -1
  76. package/modal/components/footer/Component.js +1 -1
  77. package/modal/esm/Component.responsive.js +1 -1
  78. package/modal/esm/components/controls/Component.js +1 -1
  79. package/modal/esm/components/controls/index.js +1 -1
  80. package/modal/esm/components/footer/Component.js +1 -1
  81. package/modal/esm/desktop/Component.desktop.js +1 -1
  82. package/modal/esm/desktop/index.js +1 -1
  83. package/modal/esm/index.js +1 -1
  84. package/modal/esm/mobile/Component.mobile.js +1 -1
  85. package/modal/esm/mobile/index.js +1 -1
  86. package/modal/modern/Component.responsive.js +1 -1
  87. package/modal/modern/components/controls/Component.js +1 -1
  88. package/modal/modern/components/controls/index.js +1 -1
  89. package/modal/modern/components/footer/Component.js +1 -1
  90. package/modal/modern/desktop/Component.desktop.js +1 -1
  91. package/modal/modern/desktop/index.js +1 -1
  92. package/modal/modern/index.js +1 -1
  93. package/modal/modern/mobile/Component.mobile.js +1 -1
  94. package/modal/modern/mobile/index.js +1 -1
  95. package/notification/Component.js +1 -2
  96. package/notification/cssm/Component.js +1 -2
  97. package/notification/esm/Component.js +1 -2
  98. package/notification/esm/index.js +0 -1
  99. package/notification/modern/Component.js +1 -2
  100. package/notification/modern/index.js +0 -1
  101. package/notification-manager/component.js +1 -2
  102. package/notification-manager/cssm/component.js +1 -2
  103. package/notification-manager/esm/component.js +1 -2
  104. package/notification-manager/esm/index.js +0 -1
  105. package/notification-manager/modern/component.js +1 -2
  106. package/notification-manager/modern/index.js +0 -1
  107. package/package.json +1 -2
  108. package/picker-button/cssm/index-bdb4c6b9.d.ts +13 -1
  109. package/picker-button/esm/index-bdb4c6b9.d.ts +13 -1
  110. package/picker-button/index-bdb4c6b9.d.ts +13 -1
  111. package/picker-button/modern/index-bdb4c6b9.d.ts +13 -1
  112. package/popover/Component.js +1 -2
  113. package/popover/cssm/Component.js +1 -2
  114. package/popover/esm/Component.js +1 -2
  115. package/popover/esm/index.js +0 -1
  116. package/popover/modern/Component.js +1 -2
  117. package/popover/modern/index.js +0 -1
  118. package/select/esm/Component.responsive.js +1 -1
  119. package/select/esm/index.js +1 -1
  120. package/select/esm/mobile/Component.mobile.js +1 -1
  121. package/select/esm/mobile/Component.modal.mobile.js +1 -1
  122. package/select/esm/mobile/index.js +1 -1
  123. package/select/esm/presets/index.js +1 -1
  124. package/select/esm/presets/useSelectWithApply/hook.js +1 -1
  125. package/select/esm/presets/useSelectWithApply/options-list-with-apply/Component.js +1 -1
  126. package/select/esm/presets/useSelectWithApply/options-list-with-apply/index.d.ts +1 -1
  127. package/select/esm/presets/useSelectWithApply/options-list-with-apply/index.js +1 -1
  128. package/select/esm/shared/index.js +1 -1
  129. package/select/mobile/Component.mobile.js +1 -1
  130. package/select/modern/Component.responsive.js +1 -1
  131. package/select/modern/index.js +1 -1
  132. package/select/modern/mobile/Component.mobile.js +1 -1
  133. package/select/modern/mobile/Component.modal.mobile.js +1 -1
  134. package/select/modern/mobile/index.js +1 -1
  135. package/select/modern/presets/index.js +1 -1
  136. package/select/modern/presets/useSelectWithApply/hook.js +1 -1
  137. package/select/modern/presets/useSelectWithApply/options-list-with-apply/Component.js +1 -1
  138. package/select/modern/presets/useSelectWithApply/options-list-with-apply/index.d.ts +1 -1
  139. package/select/modern/presets/useSelectWithApply/options-list-with-apply/index.js +1 -1
  140. package/select/modern/shared/index.js +1 -1
  141. package/select/presets/index.js +1 -1
  142. package/select/presets/useSelectWithApply/hook.js +1 -1
  143. package/select/presets/useSelectWithApply/options-list-with-apply/Component.js +1 -1
  144. package/select/presets/useSelectWithApply/options-list-with-apply/index.d.ts +1 -1
  145. package/select/presets/useSelectWithApply/options-list-with-apply/index.js +1 -1
  146. package/select/shared/index.js +1 -1
  147. package/side-panel/components/controls/Component.js +1 -1
  148. package/side-panel/components/footer/Component.js +1 -1
  149. package/side-panel/esm/Component.responsive.js +1 -1
  150. package/side-panel/esm/components/controls/Component.js +1 -1
  151. package/side-panel/esm/components/controls/index.js +1 -1
  152. package/side-panel/esm/components/footer/Component.desktop.js +1 -1
  153. package/side-panel/esm/components/footer/Component.js +1 -1
  154. package/side-panel/esm/components/footer/Component.mobile.js +1 -1
  155. package/side-panel/esm/desktop/Component.desktop.js +1 -1
  156. package/side-panel/esm/desktop/index.js +1 -1
  157. package/side-panel/esm/index.js +1 -1
  158. package/side-panel/esm/mobile/Component.mobile.js +1 -1
  159. package/side-panel/esm/mobile/index.js +1 -1
  160. package/side-panel/modern/Component.responsive.js +1 -1
  161. package/side-panel/modern/components/controls/Component.js +1 -1
  162. package/side-panel/modern/components/controls/index.js +1 -1
  163. package/side-panel/modern/components/footer/Component.desktop.js +1 -1
  164. package/side-panel/modern/components/footer/Component.js +1 -1
  165. package/side-panel/modern/components/footer/Component.mobile.js +1 -1
  166. package/side-panel/modern/desktop/Component.desktop.js +1 -1
  167. package/side-panel/modern/desktop/index.js +1 -1
  168. package/side-panel/modern/index.js +1 -1
  169. package/side-panel/modern/mobile/Component.mobile.js +1 -1
  170. package/side-panel/modern/mobile/index.js +1 -1
  171. package/stack/component.js +4 -4
  172. package/stack/context.d.ts +29 -0
  173. package/stack/context.js +34 -0
  174. package/stack/cssm/component.js +4 -4
  175. package/stack/cssm/context.d.ts +29 -0
  176. package/stack/cssm/context.js +34 -0
  177. package/stack/cssm/index.d.ts +1 -0
  178. package/stack/cssm/index.js +3 -0
  179. package/stack/esm/component.js +1 -1
  180. package/stack/esm/context.d.ts +29 -0
  181. package/stack/esm/context.js +31 -0
  182. package/stack/esm/index.d.ts +1 -0
  183. package/stack/esm/index.js +1 -1
  184. package/stack/index.d.ts +1 -0
  185. package/stack/index.js +3 -0
  186. package/stack/modern/component.js +1 -1
  187. package/stack/modern/context.d.ts +29 -0
  188. package/stack/modern/context.js +31 -0
  189. package/stack/modern/index.d.ts +1 -0
  190. package/stack/modern/index.js +1 -1
  191. package/textarea/Component.js +1 -1
  192. package/textarea/components/PseudoTextArea.js +1 -1
  193. package/textarea/components/index.d.ts +1 -1
  194. package/textarea/components/index.js +1 -1
  195. package/textarea/esm/Component.js +1 -1
  196. package/textarea/esm/components/PseudoTextArea.js +1 -1
  197. package/textarea/esm/components/index.d.ts +1 -1
  198. package/textarea/esm/components/index.js +1 -1
  199. package/textarea/esm/index.js +1 -1
  200. package/textarea/modern/Component.js +1 -1
  201. package/textarea/modern/components/PseudoTextArea.js +1 -1
  202. package/textarea/modern/components/index.d.ts +1 -1
  203. package/textarea/modern/components/index.js +1 -1
  204. package/textarea/modern/index.js +1 -1
  205. package/themes/compiled/mobile-dark-bluetint.css +76 -215
  206. package/toast/components/base-toast/component.js +1 -2
  207. package/toast/cssm/components/base-toast/component.js +1 -2
  208. package/toast/esm/Component.responsive.js +0 -1
  209. package/toast/esm/components/base-toast/component.js +1 -2
  210. package/toast/esm/components/base-toast/index.js +0 -1
  211. package/toast/esm/desktop/Component.desktop.js +0 -1
  212. package/toast/esm/desktop/index.js +0 -1
  213. package/toast/esm/index.js +0 -1
  214. package/toast/esm/mobile/Component.mobile.js +0 -1
  215. package/toast/esm/mobile/index.js +0 -1
  216. package/toast/modern/Component.responsive.js +0 -1
  217. package/toast/modern/components/base-toast/component.js +1 -2
  218. package/toast/modern/components/base-toast/index.js +0 -1
  219. package/toast/modern/desktop/Component.desktop.js +0 -1
  220. package/toast/modern/desktop/index.js +0 -1
  221. package/toast/modern/index.js +0 -1
  222. package/toast/modern/mobile/Component.mobile.js +0 -1
  223. package/toast/modern/mobile/index.js +0 -1
  224. package/toast-plate/components/base-toast-plate/component.js +1 -1
  225. package/toast-plate/components/base-toast-plate/utils/getBaseToastPlateTestIds.js +1 -1
  226. package/toast-plate/esm/Component.responsive.js +1 -1
  227. package/toast-plate/esm/components/base-toast-plate/component.js +1 -1
  228. package/toast-plate/esm/components/base-toast-plate/index.js +1 -1
  229. package/toast-plate/esm/components/base-toast-plate/utils/getBaseToastPlateTestIds.js +1 -1
  230. package/toast-plate/esm/desktop/Component.desktop.js +1 -1
  231. package/toast-plate/esm/desktop/index.js +1 -1
  232. package/toast-plate/esm/index-307da6d7.d.ts +1 -1
  233. package/toast-plate/esm/index.js +1 -1
  234. package/toast-plate/esm/mobile/Component.mobile.js +1 -1
  235. package/toast-plate/esm/mobile/index.js +1 -1
  236. package/toast-plate/index-307da6d7.d.ts +1 -1
  237. package/toast-plate/modern/Component.responsive.js +1 -1
  238. package/toast-plate/modern/components/base-toast-plate/component.js +1 -1
  239. package/toast-plate/modern/components/base-toast-plate/index.js +1 -1
  240. package/toast-plate/modern/components/base-toast-plate/utils/getBaseToastPlateTestIds.js +1 -1
  241. package/toast-plate/modern/desktop/Component.desktop.js +1 -1
  242. package/toast-plate/modern/desktop/index.js +1 -1
  243. package/toast-plate/modern/index-307da6d7.d.ts +1 -1
  244. package/toast-plate/modern/index.js +1 -1
  245. package/toast-plate/modern/mobile/Component.mobile.js +1 -1
  246. package/toast-plate/modern/mobile/index.js +1 -1
  247. package/universal-date-input/cssm/index-5712fce2.d.ts +13 -1
  248. package/universal-date-input/esm/index-5712fce2.d.ts +13 -1
  249. package/universal-date-input/index-5712fce2.d.ts +13 -1
  250. package/universal-date-input/modern/index-5712fce2.d.ts +13 -1
  251. package/international-phone-input/cssm/index-7ca84eff.d.ts +0 -15
  252. package/international-phone-input/esm/index-7ca84eff.d.ts +0 -15
  253. package/international-phone-input/index-7ca84eff.d.ts +0 -15
  254. package/international-phone-input/modern/index-7ca84eff.d.ts +0 -15
  255. /package/confirmation/{countdown-section-80b2f871.d.ts → countdown-section-f9e4f884.d.ts} +0 -0
  256. /package/confirmation/{countdown-section-80b2f871.js → countdown-section-f9e4f884.js} +0 -0
  257. /package/confirmation/esm/{countdown-section-acc1051f.d.ts → countdown-section-540da1e3.d.ts} +0 -0
  258. /package/confirmation/esm/{countdown-section-acc1051f.js → countdown-section-540da1e3.js} +0 -0
  259. /package/confirmation/modern/{countdown-section-91463948.d.ts → countdown-section-d3385b29.d.ts} +0 -0
  260. /package/confirmation/modern/{countdown-section-91463948.js → countdown-section-d3385b29.js} +0 -0
  261. /package/gallery/{buttons-2d32d0ff.d.ts → buttons-0e0683d9.d.ts} +0 -0
  262. /package/gallery/{buttons-2d32d0ff.js → buttons-0e0683d9.js} +0 -0
  263. /package/gallery/esm/{buttons-7f3fd122.d.ts → buttons-eabdb51b.d.ts} +0 -0
  264. /package/gallery/esm/{buttons-7f3fd122.js → buttons-eabdb51b.js} +0 -0
  265. /package/gallery/esm/{slide-296478be.d.ts → slide-a8f6ccc1.d.ts} +0 -0
  266. /package/gallery/esm/{slide-296478be.js → slide-a8f6ccc1.js} +0 -0
  267. /package/gallery/modern/{buttons-efa9898e.d.ts → buttons-062ff167.d.ts} +0 -0
  268. /package/gallery/modern/{buttons-efa9898e.js → buttons-062ff167.js} +0 -0
  269. /package/gallery/modern/{slide-7d442501.d.ts → slide-b5566e19.d.ts} +0 -0
  270. /package/gallery/modern/{slide-7d442501.js → slide-b5566e19.js} +0 -0
  271. /package/gallery/{slide-4fbf6ff4.d.ts → slide-3d8ed06b.d.ts} +0 -0
  272. /package/gallery/{slide-4fbf6ff4.js → slide-3d8ed06b.js} +0 -0
  273. /package/modal/esm/{layout.module-8c2ad581.js → layout.module-ed84e654.js} +0 -0
  274. /package/modal/{layout.module-9c7f42a7.js → layout.module-74d56d9e.js} +0 -0
  275. /package/modal/modern/{layout.module-7b9f84d6.js → layout.module-169c9cd4.js} +0 -0
  276. /package/select/esm/{hook-74e64a0c.d.ts → hook-43f97773.d.ts} +0 -0
  277. /package/select/esm/{hook-74e64a0c.js → hook-43f97773.js} +0 -0
  278. /package/select/{hook-0bb52889.d.ts → hook-47df637e.d.ts} +0 -0
  279. /package/select/{hook-0bb52889.js → hook-47df637e.js} +0 -0
  280. /package/select/modern/{hook-6af684e1.d.ts → hook-72d63281.d.ts} +0 -0
  281. /package/select/modern/{hook-6af684e1.js → hook-72d63281.js} +0 -0
  282. /package/side-panel/esm/{layout.module-42bf261d.js → layout.module-72cc1a7a.js} +0 -0
  283. /package/side-panel/{layout.module-2ea47a88.js → layout.module-cfb65ab1.js} +0 -0
  284. /package/side-panel/modern/{layout.module-39651e51.js → layout.module-3503b091.js} +0 -0
  285. /package/textarea/{PseudoTextArea-53ba3572.d.ts → PseudoTextArea-7681334c.d.ts} +0 -0
  286. /package/textarea/{PseudoTextArea-53ba3572.js → PseudoTextArea-7681334c.js} +0 -0
  287. /package/textarea/esm/{PseudoTextArea-278ebb87.d.ts → PseudoTextArea-850a55b5.d.ts} +0 -0
  288. /package/textarea/esm/{PseudoTextArea-278ebb87.js → PseudoTextArea-850a55b5.js} +0 -0
  289. /package/textarea/modern/{PseudoTextArea-0d65e973.d.ts → PseudoTextArea-c51ed577.d.ts} +0 -0
  290. /package/textarea/modern/{PseudoTextArea-0d65e973.js → PseudoTextArea-c51ed577.js} +0 -0
  291. /package/toast-plate/esm/{getDataTestId-32d52205.d.ts → getDataTestId-f4dc32c7.d.ts} +0 -0
  292. /package/toast-plate/esm/{getDataTestId-32d52205.js → getDataTestId-f4dc32c7.js} +0 -0
  293. /package/toast-plate/{getDataTestId-1de39d74.d.ts → getDataTestId-442368bd.d.ts} +0 -0
  294. /package/toast-plate/{getDataTestId-1de39d74.js → getDataTestId-442368bd.js} +0 -0
  295. /package/toast-plate/modern/{getDataTestId-dd00ab19.d.ts → getDataTestId-16038735.d.ts} +0 -0
  296. /package/toast-plate/modern/{getDataTestId-dd00ab19.js → getDataTestId-16038735.js} +0 -0
@@ -9,7 +9,6 @@ var elementClosest = require('element-closest');
9
9
  var coreComponentsPortal = require('../portal');
10
10
  var coreComponentsStack = require('../stack');
11
11
  var desktop = require('../toast-plate/desktop');
12
- var stackContext = require('@alfalab/stack-context');
13
12
  var utils_index = require('./utils/index.js');
14
13
 
15
14
  function _interopDefaultCompat (e) { return e && typeof e === 'object' && 'default' in e ? e : { default: e }; }
@@ -24,7 +23,7 @@ require('./index.css');
24
23
 
25
24
  var notificationClassNameSelector = ".".concat(styles.notificationComponent);
26
25
  var Notification = React.forwardRef(function (_a, ref) {
27
- var className = _a.className, actionSectionClassName = _a.actionSectionClassName, children = _a.children, visible = _a.visible, _b = _a.offset, offset = _b === void 0 ? 108 : _b, _c = _a.hasCloser, hasCloser = _c === void 0 ? true : _c, _d = _a.autoCloseDelay, autoCloseDelay = _d === void 0 ? 5000 : _d, _e = _a.usePortal, usePortal = _e === void 0 ? true : _e, _f = _a.zIndex, zIndex = _f === void 0 ? stackContext.stackingOrder.TOAST : _f, style = _a.style, onClose = _a.onClose, onCloseTimeout = _a.onCloseTimeout, onMouseEnter = _a.onMouseEnter, onMouseLeave = _a.onMouseLeave, onClickOutside = _a.onClickOutside, restProps = tslib.__rest(_a, ["className", "actionSectionClassName", "children", "visible", "offset", "hasCloser", "autoCloseDelay", "usePortal", "zIndex", "style", "onClose", "onCloseTimeout", "onMouseEnter", "onMouseLeave", "onClickOutside"]);
26
+ var className = _a.className, actionSectionClassName = _a.actionSectionClassName, children = _a.children, visible = _a.visible, _b = _a.offset, offset = _b === void 0 ? 108 : _b, _c = _a.hasCloser, hasCloser = _c === void 0 ? true : _c, _d = _a.autoCloseDelay, autoCloseDelay = _d === void 0 ? 5000 : _d, _e = _a.usePortal, usePortal = _e === void 0 ? true : _e, _f = _a.zIndex, zIndex = _f === void 0 ? coreComponentsStack.stackingOrder.TOAST : _f, style = _a.style, onClose = _a.onClose, onCloseTimeout = _a.onCloseTimeout, onMouseEnter = _a.onMouseEnter, onMouseLeave = _a.onMouseLeave, onClickOutside = _a.onClickOutside, restProps = tslib.__rest(_a, ["className", "actionSectionClassName", "children", "visible", "offset", "hasCloser", "autoCloseDelay", "usePortal", "zIndex", "style", "onClose", "onCloseTimeout", "onMouseEnter", "onMouseLeave", "onClickOutside"]);
28
27
  var notificationRef = React.useRef(null);
29
28
  var autoCloseTimeoutRef = React.useRef(0);
30
29
  var closeTimeoutRef = React.useRef(0);
@@ -9,7 +9,6 @@ var elementClosest = require('element-closest');
9
9
  var coreComponentsPortal = require('../../portal/cssm');
10
10
  var coreComponentsStack = require('../../stack/cssm');
11
11
  var desktop = require('../../toast-plate/cssm/desktop');
12
- var stackContext = require('@alfalab/stack-context');
13
12
  var utils_index = require('./utils/index.js');
14
13
  var styles = require('./index.module.css');
15
14
 
@@ -23,7 +22,7 @@ var styles__default = /*#__PURE__*/_interopDefaultCompat(styles);
23
22
 
24
23
  var notificationClassNameSelector = ".".concat(styles__default.default.notificationComponent);
25
24
  var Notification = React.forwardRef(function (_a, ref) {
26
- var className = _a.className, actionSectionClassName = _a.actionSectionClassName, children = _a.children, visible = _a.visible, _b = _a.offset, offset = _b === void 0 ? 108 : _b, _c = _a.hasCloser, hasCloser = _c === void 0 ? true : _c, _d = _a.autoCloseDelay, autoCloseDelay = _d === void 0 ? 5000 : _d, _e = _a.usePortal, usePortal = _e === void 0 ? true : _e, _f = _a.zIndex, zIndex = _f === void 0 ? stackContext.stackingOrder.TOAST : _f, style = _a.style, onClose = _a.onClose, onCloseTimeout = _a.onCloseTimeout, onMouseEnter = _a.onMouseEnter, onMouseLeave = _a.onMouseLeave, onClickOutside = _a.onClickOutside, restProps = tslib.__rest(_a, ["className", "actionSectionClassName", "children", "visible", "offset", "hasCloser", "autoCloseDelay", "usePortal", "zIndex", "style", "onClose", "onCloseTimeout", "onMouseEnter", "onMouseLeave", "onClickOutside"]);
25
+ var className = _a.className, actionSectionClassName = _a.actionSectionClassName, children = _a.children, visible = _a.visible, _b = _a.offset, offset = _b === void 0 ? 108 : _b, _c = _a.hasCloser, hasCloser = _c === void 0 ? true : _c, _d = _a.autoCloseDelay, autoCloseDelay = _d === void 0 ? 5000 : _d, _e = _a.usePortal, usePortal = _e === void 0 ? true : _e, _f = _a.zIndex, zIndex = _f === void 0 ? coreComponentsStack.stackingOrder.TOAST : _f, style = _a.style, onClose = _a.onClose, onCloseTimeout = _a.onCloseTimeout, onMouseEnter = _a.onMouseEnter, onMouseLeave = _a.onMouseLeave, onClickOutside = _a.onClickOutside, restProps = tslib.__rest(_a, ["className", "actionSectionClassName", "children", "visible", "offset", "hasCloser", "autoCloseDelay", "usePortal", "zIndex", "style", "onClose", "onCloseTimeout", "onMouseEnter", "onMouseLeave", "onClickOutside"]);
27
26
  var notificationRef = React.useRef(null);
28
27
  var autoCloseTimeoutRef = React.useRef(0);
29
28
  var closeTimeoutRef = React.useRef(0);
@@ -5,9 +5,8 @@ import { useSwipeable } from 'react-swipeable';
5
5
  import cn from 'classnames';
6
6
  import elementClosest from 'element-closest';
7
7
  import { Portal } from '../../portal/esm';
8
- import { Stack } from '../../stack/esm';
8
+ import { stackingOrder, Stack } from '../../stack/esm';
9
9
  import { ToastPlateDesktop } from '../../toast-plate/esm/desktop';
10
- import { stackingOrder } from '@alfalab/stack-context';
11
10
  import { useClickOutside } from './utils/index.js';
12
11
 
13
12
  var styles = {"notificationComponent":"notification__notificationComponent_x5voa","isVisible":"notification__isVisible_x5voa","isClosing":"notification__isClosing_x5voa","toastContent":"notification__toastContent_x5voa","actionSection":"notification__actionSection_x5voa"};
@@ -8,5 +8,4 @@ import 'element-closest';
8
8
  import '../../portal/esm';
9
9
  import '../../stack/esm';
10
10
  import '../../toast-plate/esm/desktop';
11
- import '@alfalab/stack-context';
12
11
  import './utils/index.js';
@@ -4,9 +4,8 @@ import { useSwipeable } from 'react-swipeable';
4
4
  import cn from 'classnames';
5
5
  import elementClosest from 'element-closest';
6
6
  import { Portal } from '../../portal/modern';
7
- import { Stack } from '../../stack/modern';
7
+ import { Stack, stackingOrder } from '../../stack/modern';
8
8
  import { ToastPlateDesktop } from '../../toast-plate/modern/desktop';
9
- import { stackingOrder } from '@alfalab/stack-context';
10
9
  import { useClickOutside } from './utils/index.js';
11
10
 
12
11
  const styles = {"notificationComponent":"notification__notificationComponent_x5voa","isVisible":"notification__isVisible_x5voa","isClosing":"notification__isClosing_x5voa","toastContent":"notification__toastContent_x5voa","actionSection":"notification__actionSection_x5voa"};
@@ -7,5 +7,4 @@ import 'element-closest';
7
7
  import '../../portal/modern';
8
8
  import '../../stack/modern';
9
9
  import '../../toast-plate/modern/desktop';
10
- import '@alfalab/stack-context';
11
10
  import './utils/index.js';
@@ -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_1xrx7","notification":"notification-manager__notification_1xrx7","withoutMargin":"notification-manager__withoutMargin_1xrx7","enter":"notification-manager__enter_1xrx7","enterActive":"notification-manager__enterActive_1xrx7"};
@@ -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_1xrx7","notification":"notification-manager__notification_1xrx7","withoutMargin":"notification-manager__withoutMargin_1xrx7","enter":"notification-manager__enter_1xrx7","enterActive":"notification-manager__enterActive_1xrx7"};
@@ -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": "46.0.0-beta.3",
3
+ "version": "46.0.0-beta.5",
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.16.0",
60
59
  "@alfalab/utils": "^1.15.2",
61
60
  "@dnd-kit/core": "^6.0.7",
62
61
  "@dnd-kit/sortable": "^7.0.2",
@@ -174,6 +174,18 @@ declare function isScrolledToBottom(target: HTMLElement): boolean;
174
174
  declare function hasScrollbar(target: HTMLElement): boolean;
175
175
  declare const restoreContainerStyles: (container: HTMLElement) => void;
176
176
  declare const handleContainer: (container?: HTMLElement, shouldIOSLock?: boolean) => void;
177
+ /**
178
+ * Набор констант для z-index соответствующих классов компонентов.
179
+ * Значения выбраны по приоритету.
180
+ */
181
+ declare const stackingOrder: {
182
+ FOCUSED: number;
183
+ DEFAULT: number;
184
+ POPOVER: number;
185
+ MODAL: number;
186
+ TOAST: number;
187
+ };
188
+ declare const StackingContext: import("react").Context<number>;
177
189
  type StackProps = {
178
190
  /**
179
191
  * Render prop, в который передается функция.
@@ -214,5 +226,5 @@ declare class GlobalStore {
214
226
  constructor();
215
227
  getModalStore: () => ModalStore;
216
228
  }
217
- export { BaseModalProps, BaseModalContext, BaseModal, isScrolledToTop, isScrolledToBottom, hasScrollbar, restoreContainerStyles, handleContainer, StackProps, Stack, lockScroll, unlockScroll, syncHeight, PORTAL_CONTAINER_ATTRIBUTE, getDefaultPortalContainer, setRef, getModalStore, GlobalStore };
229
+ export { BaseModalProps, BaseModalContext, BaseModal, isScrolledToTop, isScrolledToBottom, hasScrollbar, restoreContainerStyles, handleContainer, stackingOrder, StackingContext, StackProps, Stack, lockScroll, unlockScroll, syncHeight, PORTAL_CONTAINER_ATTRIBUTE, getDefaultPortalContainer, setRef, getModalStore, GlobalStore };
218
230
  export type { SavedStyle };
@@ -174,6 +174,18 @@ declare function isScrolledToBottom(target: HTMLElement): boolean;
174
174
  declare function hasScrollbar(target: HTMLElement): boolean;
175
175
  declare const restoreContainerStyles: (container: HTMLElement) => void;
176
176
  declare const handleContainer: (container?: HTMLElement, shouldIOSLock?: boolean) => void;
177
+ /**
178
+ * Набор констант для z-index соответствующих классов компонентов.
179
+ * Значения выбраны по приоритету.
180
+ */
181
+ declare const stackingOrder: {
182
+ FOCUSED: number;
183
+ DEFAULT: number;
184
+ POPOVER: number;
185
+ MODAL: number;
186
+ TOAST: number;
187
+ };
188
+ declare const StackingContext: import("react").Context<number>;
177
189
  type StackProps = {
178
190
  /**
179
191
  * Render prop, в который передается функция.
@@ -214,5 +226,5 @@ declare class GlobalStore {
214
226
  constructor();
215
227
  getModalStore: () => ModalStore;
216
228
  }
217
- export { BaseModalProps, BaseModalContext, BaseModal, isScrolledToTop, isScrolledToBottom, hasScrollbar, restoreContainerStyles, handleContainer, StackProps, Stack, lockScroll, unlockScroll, syncHeight, PORTAL_CONTAINER_ATTRIBUTE, getDefaultPortalContainer, setRef, getModalStore, GlobalStore };
229
+ export { BaseModalProps, BaseModalContext, BaseModal, isScrolledToTop, isScrolledToBottom, hasScrollbar, restoreContainerStyles, handleContainer, stackingOrder, StackingContext, StackProps, Stack, lockScroll, unlockScroll, syncHeight, PORTAL_CONTAINER_ATTRIBUTE, getDefaultPortalContainer, setRef, getModalStore, GlobalStore };
218
230
  export type { SavedStyle };
@@ -174,6 +174,18 @@ declare function isScrolledToBottom(target: HTMLElement): boolean;
174
174
  declare function hasScrollbar(target: HTMLElement): boolean;
175
175
  declare const restoreContainerStyles: (container: HTMLElement) => void;
176
176
  declare const handleContainer: (container?: HTMLElement, shouldIOSLock?: boolean) => void;
177
+ /**
178
+ * Набор констант для z-index соответствующих классов компонентов.
179
+ * Значения выбраны по приоритету.
180
+ */
181
+ declare const stackingOrder: {
182
+ FOCUSED: number;
183
+ DEFAULT: number;
184
+ POPOVER: number;
185
+ MODAL: number;
186
+ TOAST: number;
187
+ };
188
+ declare const StackingContext: import("react").Context<number>;
177
189
  type StackProps = {
178
190
  /**
179
191
  * Render prop, в который передается функция.
@@ -214,5 +226,5 @@ declare class GlobalStore {
214
226
  constructor();
215
227
  getModalStore: () => ModalStore;
216
228
  }
217
- export { BaseModalProps, BaseModalContext, BaseModal, isScrolledToTop, isScrolledToBottom, hasScrollbar, restoreContainerStyles, handleContainer, StackProps, Stack, lockScroll, unlockScroll, syncHeight, PORTAL_CONTAINER_ATTRIBUTE, getDefaultPortalContainer, setRef, getModalStore, GlobalStore };
229
+ export { BaseModalProps, BaseModalContext, BaseModal, isScrolledToTop, isScrolledToBottom, hasScrollbar, restoreContainerStyles, handleContainer, stackingOrder, StackingContext, StackProps, Stack, lockScroll, unlockScroll, syncHeight, PORTAL_CONTAINER_ATTRIBUTE, getDefaultPortalContainer, setRef, getModalStore, GlobalStore };
218
230
  export type { SavedStyle };
@@ -174,6 +174,18 @@ declare function isScrolledToBottom(target: HTMLElement): boolean;
174
174
  declare function hasScrollbar(target: HTMLElement): boolean;
175
175
  declare const restoreContainerStyles: (container: HTMLElement) => void;
176
176
  declare const handleContainer: (container?: HTMLElement, shouldIOSLock?: boolean) => void;
177
+ /**
178
+ * Набор констант для z-index соответствующих классов компонентов.
179
+ * Значения выбраны по приоритету.
180
+ */
181
+ declare const stackingOrder: {
182
+ FOCUSED: number;
183
+ DEFAULT: number;
184
+ POPOVER: number;
185
+ MODAL: number;
186
+ TOAST: number;
187
+ };
188
+ declare const StackingContext: import("react").Context<number>;
177
189
  type StackProps = {
178
190
  /**
179
191
  * Render prop, в который передается функция.
@@ -214,5 +226,5 @@ declare class GlobalStore {
214
226
  constructor();
215
227
  getModalStore: () => ModalStore;
216
228
  }
217
- export { BaseModalProps, BaseModalContext, BaseModal, isScrolledToTop, isScrolledToBottom, hasScrollbar, restoreContainerStyles, handleContainer, StackProps, Stack, lockScroll, unlockScroll, syncHeight, PORTAL_CONTAINER_ATTRIBUTE, getDefaultPortalContainer, setRef, getModalStore, GlobalStore };
229
+ export { BaseModalProps, BaseModalContext, BaseModal, isScrolledToTop, isScrolledToBottom, hasScrollbar, restoreContainerStyles, handleContainer, stackingOrder, StackingContext, StackProps, Stack, lockScroll, unlockScroll, syncHeight, PORTAL_CONTAINER_ATTRIBUTE, getDefaultPortalContainer, setRef, getModalStore, GlobalStore };
218
230
  export type { SavedStyle };
@@ -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_6dkfc","inner":"popover__inner_6dkfc","scrollableContent":"popover__scrollableContent_6dkfc","arrow":"popover__arrow_6dkfc","enter":"popover__enter_6dkfc","enterActive":"popover__enterActive_6dkfc","exit":"popover__exit_6dkfc","exitActive":"popover__exitActive_6dkfc"};
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_6dkfc","inner":"popover__inner_6dkfc","scrollableContent":"popover__scrollableContent_6dkfc","arrow":"popover__arrow_6dkfc","enter":"popover__enter_6dkfc","enterActive":"popover__enterActive_6dkfc","exit":"popover__exit_6dkfc","exitActive":"popover__exitActive_6dkfc"};
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';
@@ -41,7 +41,7 @@ import '../../base-modal/esm';
41
41
  import '../../button/esm/mobile';
42
42
  import './components/virtual-options-list/Component.js';
43
43
  import 'react-virtual';
44
- import './hook-74e64a0c.js';
44
+ import './hook-43f97773.js';
45
45
  import './presets/useSelectWithApply/options-list-with-apply/footer/Component.js';
46
46
  import '../../button/esm/desktop';
47
47
  import './presets/useSelectWithApply/options-list-with-apply/header/Component.js';
@@ -41,7 +41,7 @@ import '../../base-modal/esm';
41
41
  import '../../button/esm/mobile';
42
42
  import './components/virtual-options-list/Component.js';
43
43
  import 'react-virtual';
44
- import './hook-74e64a0c.js';
44
+ import './hook-43f97773.js';
45
45
  import './presets/useSelectWithApply/options-list-with-apply/footer/Component.js';
46
46
  import '../../button/esm/desktop';
47
47
  import './presets/useSelectWithApply/options-list-with-apply/header/Component.js';
@@ -12,7 +12,7 @@ import { Option } from '../components/option/Component.js';
12
12
  import { OptionsList } from '../components/options-list/Component.js';
13
13
  import { Search } from '../components/search/Component.js';
14
14
  import { VirtualOptionsList } from '../components/virtual-options-list/Component.js';
15
- import { u as useSelectWithApply } from '../hook-74e64a0c.js';
15
+ import { u as useSelectWithApply } from '../hook-43f97773.js';
16
16
  import { Header } from '../presets/useSelectWithApply/options-list-with-apply/header/Component.js';
17
17
  import 'classnames';
18
18
  import '@alfalab/icons-glyph/ChevronDownMIcon';
@@ -37,7 +37,7 @@ import '../../../input/esm';
37
37
  import '@alfalab/icons-glyph/MagnifierMIcon';
38
38
  import '../components/virtual-options-list/Component.js';
39
39
  import 'react-virtual';
40
- import '../hook-74e64a0c.js';
40
+ import '../hook-43f97773.js';
41
41
  import '../presets/useSelectWithApply/options-list-with-apply/footer/Component.js';
42
42
  import '../../../button/esm/desktop';
43
43
  import '../presets/useSelectWithApply/options-list-with-apply/header/Component.js';
@@ -38,7 +38,7 @@ import '../../../input/esm';
38
38
  import '@alfalab/icons-glyph/MagnifierMIcon';
39
39
  import '../components/virtual-options-list/Component.js';
40
40
  import 'react-virtual';
41
- import '../hook-74e64a0c.js';
41
+ import '../hook-43f97773.js';
42
42
  import '../presets/useSelectWithApply/options-list-with-apply/footer/Component.js';
43
43
  import '../../../button/esm/desktop';
44
44
  import '../presets/useSelectWithApply/options-list-with-apply/header/Component.js';
@@ -1,6 +1,6 @@
1
1
  export { useSelectWithLoading } from './useSelectWithLoading/hook.js';
2
2
  export { useLazyLoading } from './useLazyLoading/hook.js';
3
- export { S as SELECT_ALL_KEY, u as useSelectWithApply } from '../hook-74e64a0c.js';
3
+ export { S as SELECT_ALL_KEY, u as useSelectWithApply } from '../hook-43f97773.js';
4
4
  import 'tslib';
5
5
  import 'react';
6
6
  import '../../../skeleton/esm';
@@ -1,7 +1,7 @@
1
1
  import 'tslib';
2
2
  import 'react';
3
3
  import '../../../../shared/esm';
4
- export { S as SELECT_ALL_KEY, u as useSelectWithApply } from '../../hook-74e64a0c.js';
4
+ export { S as SELECT_ALL_KEY, u as useSelectWithApply } from '../../hook-43f97773.js';
5
5
  import '../../utils.js';
6
6
  import '../../components/options-list/Component.js';
7
7
  import 'react-merge-refs';
@@ -1,7 +1,7 @@
1
1
  import 'tslib';
2
2
  import 'react';
3
3
  import '../../../components/options-list/Component.js';
4
- export { O as OptionsListWithApply } from '../../../hook-74e64a0c.js';
4
+ export { O as OptionsListWithApply } from '../../../hook-43f97773.js';
5
5
  import './footer/Component.js';
6
6
  import './header/Component.js';
7
7
  import 'react-merge-refs';
@@ -1 +1 @@
1
- export * from "../../../hook-74e64a0c";
1
+ export * from "../../../hook-43f97773";
@@ -1,4 +1,4 @@
1
- export { O as OptionsListWithApply } from '../../../hook-74e64a0c.js';
1
+ export { O as OptionsListWithApply } from '../../../hook-43f97773.js';
2
2
  import 'tslib';
3
3
  import 'react';
4
4
  import '../../../utils.js';
@@ -1,6 +1,6 @@
1
1
  export { useSelectWithLoading } from '../presets/useSelectWithLoading/hook.js';
2
2
  export { useLazyLoading } from '../presets/useLazyLoading/hook.js';
3
- export { S as SELECT_ALL_KEY, u as useSelectWithApply } from '../hook-74e64a0c.js';
3
+ export { S as SELECT_ALL_KEY, u as useSelectWithApply } from '../hook-43f97773.js';
4
4
  export { defaultAccessor, defaultFilterFn, getSelectTestIds, isGroup, isOptionShape, joinOptions, lastIndexOf, processOptions, usePrevious, useVisibleOptions } from '../utils.js';
5
5
  export { Option } from '../components/option/Component.js';
6
6
  export { BaseOption } from '../components/base-option/Component.js';
@@ -14,7 +14,7 @@ var components_option_Component = require('../components/option/Component.js');
14
14
  var components_optionsList_Component = require('../components/options-list/Component.js');
15
15
  var components_search_Component = require('../components/search/Component.js');
16
16
  var components_virtualOptionsList_Component = require('../components/virtual-options-list/Component.js');
17
- var presets_useSelectWithApply_optionsListWithApply_Component = require('../hook-0bb52889.js');
17
+ var presets_useSelectWithApply_optionsListWithApply_Component = require('../hook-47df637e.js');
18
18
  var presets_useSelectWithApply_optionsListWithApply_header_Component = require('../presets/useSelectWithApply/options-list-with-apply/header/Component.js');
19
19
 
20
20
  function _interopDefaultCompat (e) { return e && typeof e === 'object' && 'default' in e ? e : { default: e }; }
@@ -40,7 +40,7 @@ import '../../base-modal/modern';
40
40
  import '../../button/modern/mobile';
41
41
  import './components/virtual-options-list/Component.js';
42
42
  import 'react-virtual';
43
- import './hook-6af684e1.js';
43
+ import './hook-72d63281.js';
44
44
  import './presets/useSelectWithApply/options-list-with-apply/footer/Component.js';
45
45
  import '../../button/modern/desktop';
46
46
  import './presets/useSelectWithApply/options-list-with-apply/header/Component.js';
@@ -40,7 +40,7 @@ import '../../base-modal/modern';
40
40
  import '../../button/modern/mobile';
41
41
  import './components/virtual-options-list/Component.js';
42
42
  import 'react-virtual';
43
- import './hook-6af684e1.js';
43
+ import './hook-72d63281.js';
44
44
  import './presets/useSelectWithApply/options-list-with-apply/footer/Component.js';
45
45
  import '../../button/modern/desktop';
46
46
  import './presets/useSelectWithApply/options-list-with-apply/header/Component.js';
@@ -11,7 +11,7 @@ import { Option } from '../components/option/Component.js';
11
11
  import { OptionsList } from '../components/options-list/Component.js';
12
12
  import { Search } from '../components/search/Component.js';
13
13
  import { VirtualOptionsList } from '../components/virtual-options-list/Component.js';
14
- import { u as useSelectWithApply } from '../hook-6af684e1.js';
14
+ import { u as useSelectWithApply } from '../hook-72d63281.js';
15
15
  import { Header } from '../presets/useSelectWithApply/options-list-with-apply/header/Component.js';
16
16
  import 'classnames';
17
17
  import '@alfalab/icons-glyph/ChevronDownMIcon';
@@ -36,7 +36,7 @@ import '../../../input/modern';
36
36
  import '@alfalab/icons-glyph/MagnifierMIcon';
37
37
  import '../components/virtual-options-list/Component.js';
38
38
  import 'react-virtual';
39
- import '../hook-6af684e1.js';
39
+ import '../hook-72d63281.js';
40
40
  import '../presets/useSelectWithApply/options-list-with-apply/footer/Component.js';
41
41
  import '../../../button/modern/desktop';
42
42
  import '../presets/useSelectWithApply/options-list-with-apply/header/Component.js';
@@ -37,7 +37,7 @@ import '../../../input/modern';
37
37
  import '@alfalab/icons-glyph/MagnifierMIcon';
38
38
  import '../components/virtual-options-list/Component.js';
39
39
  import 'react-virtual';
40
- import '../hook-6af684e1.js';
40
+ import '../hook-72d63281.js';
41
41
  import '../presets/useSelectWithApply/options-list-with-apply/footer/Component.js';
42
42
  import '../../../button/modern/desktop';
43
43
  import '../presets/useSelectWithApply/options-list-with-apply/header/Component.js';
@@ -1,6 +1,6 @@
1
1
  export { useSelectWithLoading } from './useSelectWithLoading/hook.js';
2
2
  export { useLazyLoading } from './useLazyLoading/hook.js';
3
- export { S as SELECT_ALL_KEY, u as useSelectWithApply } from '../hook-6af684e1.js';
3
+ export { S as SELECT_ALL_KEY, u as useSelectWithApply } from '../hook-72d63281.js';
4
4
  import 'react';
5
5
  import '../../../skeleton/modern';
6
6
  import '../components/option/Component.js';
@@ -1,6 +1,6 @@
1
1
  import 'react';
2
2
  import '../../../../shared/modern';
3
- export { S as SELECT_ALL_KEY, u as useSelectWithApply } from '../../hook-6af684e1.js';
3
+ export { S as SELECT_ALL_KEY, u as useSelectWithApply } from '../../hook-72d63281.js';
4
4
  import '../../utils.js';
5
5
  import '../../components/options-list/Component.js';
6
6
  import 'react-merge-refs';
@@ -1,6 +1,6 @@
1
1
  import 'react';
2
2
  import '../../../components/options-list/Component.js';
3
- export { O as OptionsListWithApply } from '../../../hook-6af684e1.js';
3
+ export { O as OptionsListWithApply } from '../../../hook-72d63281.js';
4
4
  import './footer/Component.js';
5
5
  import './header/Component.js';
6
6
  import 'react-merge-refs';
@@ -1 +1 @@
1
- export * from "../../../hook-6af684e1";
1
+ export * from "../../../hook-72d63281";
@@ -1,4 +1,4 @@
1
- export { O as OptionsListWithApply } from '../../../hook-6af684e1.js';
1
+ export { O as OptionsListWithApply } from '../../../hook-72d63281.js';
2
2
  import 'react';
3
3
  import '../../../utils.js';
4
4
  import '../../../../../shared/modern';
@@ -1,6 +1,6 @@
1
1
  export { useSelectWithLoading } from '../presets/useSelectWithLoading/hook.js';
2
2
  export { useLazyLoading } from '../presets/useLazyLoading/hook.js';
3
- export { S as SELECT_ALL_KEY, u as useSelectWithApply } from '../hook-6af684e1.js';
3
+ export { S as SELECT_ALL_KEY, u as useSelectWithApply } from '../hook-72d63281.js';
4
4
  export { defaultAccessor, defaultFilterFn, getSelectTestIds, isGroup, isOptionShape, joinOptions, lastIndexOf, processOptions, usePrevious, useVisibleOptions } from '../utils.js';
5
5
  export { Option } from '../components/option/Component.js';
6
6
  export { BaseOption } from '../components/base-option/Component.js';
@@ -2,7 +2,7 @@ Object.defineProperty(exports, '__esModule', { value: true });
2
2
 
3
3
  var presets_useSelectWithLoading_hook = require('./useSelectWithLoading/hook.js');
4
4
  var presets_useLazyLoading_hook = require('./useLazyLoading/hook.js');
5
- var presets_useSelectWithApply_optionsListWithApply_Component = require('../hook-0bb52889.js');
5
+ var presets_useSelectWithApply_optionsListWithApply_Component = require('../hook-47df637e.js');
6
6
 
7
7
 
8
8
 
@@ -3,7 +3,7 @@ Object.defineProperty(exports, '__esModule', { value: true });
3
3
  require('tslib');
4
4
  require('react');
5
5
  require('../../utils.js');
6
- var presets_useSelectWithApply_optionsListWithApply_Component = require('../../hook-0bb52889.js');
6
+ var presets_useSelectWithApply_optionsListWithApply_Component = require('../../hook-47df637e.js');
7
7
 
8
8
 
9
9