@alfalab/core-components-modal 9.0.0 → 9.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (145) hide show
  1. package/Component.js +6 -6
  2. package/Component.responsive.js +3 -1
  3. package/browser-a216f694.d.ts +6 -0
  4. package/components/content/Component.js +7 -5
  5. package/components/content/desktop.css +7 -7
  6. package/components/content/index.css +4 -4
  7. package/components/content/mobile.css +3 -3
  8. package/components/controls/Component.js +7 -5
  9. package/components/controls/index.css +2 -2
  10. package/components/controls/index.js +3 -1
  11. package/components/footer/Component.js +8 -6
  12. package/components/footer/desktop.css +9 -9
  13. package/components/footer/index.css +4 -4
  14. package/components/footer/layout.css +17 -17
  15. package/components/footer/mobile.css +3 -3
  16. package/components/header/Component.js +7 -5
  17. package/components/header/desktop.css +15 -15
  18. package/components/header/index.css +4 -4
  19. package/components/header/mobile.css +4 -4
  20. package/cssm/Component.js +3 -3
  21. package/cssm/Component.responsive.js +2 -0
  22. package/cssm/browser-a216f694.d.ts +6 -0
  23. package/cssm/components/content/Component.js +4 -2
  24. package/cssm/components/controls/Component.js +5 -3
  25. package/cssm/components/controls/index.js +2 -0
  26. package/cssm/components/footer/Component.js +4 -2
  27. package/cssm/components/header/Component.js +4 -2
  28. package/cssm/desktop/Component.desktop.js +2 -0
  29. package/cssm/desktop/index.js +2 -0
  30. package/cssm/getDataTestId-73ea38f8.d.ts +3 -0
  31. package/cssm/getDataTestId-73ea38f8.js +8 -0
  32. package/cssm/index-a5b021bd.d.ts +70 -0
  33. package/cssm/index.js +2 -0
  34. package/cssm/mobile/Component.mobile.js +2 -0
  35. package/cssm/mobile/index.js +2 -0
  36. package/cssm/shared/index.d.ts +1 -0
  37. package/cssm/shared/index.js +5 -0
  38. package/cssm/typings.d.ts +1 -0
  39. package/cssm/useCustomWebkitScrollbar-a216f694.d.ts +2 -0
  40. package/cssm/utils.d.ts +11 -1
  41. package/cssm/utils.js +20 -0
  42. package/desktop/Component.desktop.js +3 -1
  43. package/desktop/desktop.css +9 -9
  44. package/desktop/index.js +3 -1
  45. package/esm/Component.js +6 -6
  46. package/esm/Component.responsive.js +3 -1
  47. package/esm/browser-a216f694.d.ts +6 -0
  48. package/esm/components/content/Component.js +7 -5
  49. package/esm/components/content/desktop.css +7 -7
  50. package/esm/components/content/index.css +4 -4
  51. package/esm/components/content/mobile.css +3 -3
  52. package/esm/components/controls/Component.js +7 -5
  53. package/esm/components/controls/index.css +2 -2
  54. package/esm/components/controls/index.js +3 -1
  55. package/esm/components/footer/Component.js +8 -6
  56. package/esm/components/footer/desktop.css +9 -9
  57. package/esm/components/footer/index.css +4 -4
  58. package/esm/components/footer/layout.css +17 -17
  59. package/esm/components/footer/mobile.css +3 -3
  60. package/esm/components/header/Component.js +7 -5
  61. package/esm/components/header/desktop.css +15 -15
  62. package/esm/components/header/index.css +4 -4
  63. package/esm/components/header/mobile.css +4 -4
  64. package/esm/desktop/Component.desktop.js +3 -1
  65. package/esm/desktop/desktop.css +9 -9
  66. package/esm/desktop/index.js +3 -1
  67. package/esm/getDataTestId-2d1786d3.d.ts +3 -0
  68. package/esm/getDataTestId-2d1786d3.js +6 -0
  69. package/esm/index-a5b021bd.d.ts +70 -0
  70. package/esm/index.js +3 -1
  71. package/esm/layout.module-efa3674d.js +4 -0
  72. package/esm/mobile/Component.mobile.js +3 -1
  73. package/esm/mobile/index.js +3 -1
  74. package/esm/mobile/mobile.css +2 -2
  75. package/esm/shared/index.d.ts +1 -0
  76. package/esm/shared/index.js +4 -0
  77. package/esm/transitions.css +8 -8
  78. package/esm/typings.d.ts +1 -0
  79. package/esm/useCustomWebkitScrollbar-a216f694.d.ts +2 -0
  80. package/esm/utils.d.ts +11 -1
  81. package/esm/utils.js +17 -0
  82. package/getDataTestId-2aafdd4d.d.ts +3 -0
  83. package/getDataTestId-2aafdd4d.js +8 -0
  84. package/index-a5b021bd.d.ts +70 -0
  85. package/index.js +3 -1
  86. package/layout.module-b10563a0.js +6 -0
  87. package/mobile/Component.mobile.js +3 -1
  88. package/mobile/index.js +3 -1
  89. package/mobile/mobile.css +2 -2
  90. package/modern/Component.js +6 -6
  91. package/modern/Component.responsive.js +3 -1
  92. package/modern/browser-a216f694.d.ts +6 -0
  93. package/modern/components/content/Component.js +7 -5
  94. package/modern/components/content/desktop.css +7 -7
  95. package/modern/components/content/index.css +4 -4
  96. package/modern/components/content/mobile.css +3 -3
  97. package/modern/components/controls/Component.js +7 -5
  98. package/modern/components/controls/index.css +2 -2
  99. package/modern/components/controls/index.js +3 -1
  100. package/modern/components/footer/Component.js +8 -6
  101. package/modern/components/footer/desktop.css +9 -9
  102. package/modern/components/footer/index.css +4 -4
  103. package/modern/components/footer/layout.css +17 -17
  104. package/modern/components/footer/mobile.css +3 -3
  105. package/modern/components/header/Component.js +7 -5
  106. package/modern/components/header/desktop.css +15 -15
  107. package/modern/components/header/index.css +4 -4
  108. package/modern/components/header/mobile.css +4 -4
  109. package/modern/desktop/Component.desktop.js +3 -1
  110. package/modern/desktop/desktop.css +9 -9
  111. package/modern/desktop/index.js +3 -1
  112. package/modern/getDataTestId-d97458b3.d.ts +3 -0
  113. package/modern/getDataTestId-d97458b3.js +6 -0
  114. package/modern/index-a5b021bd.d.ts +70 -0
  115. package/modern/index.js +3 -1
  116. package/modern/layout.module-ddcf2052.js +4 -0
  117. package/modern/mobile/Component.mobile.js +3 -1
  118. package/modern/mobile/index.js +3 -1
  119. package/modern/mobile/mobile.css +2 -2
  120. package/modern/shared/index.d.ts +1 -0
  121. package/modern/shared/index.js +4 -0
  122. package/modern/transitions.css +8 -8
  123. package/modern/typings.d.ts +1 -0
  124. package/modern/useCustomWebkitScrollbar-a216f694.d.ts +2 -0
  125. package/modern/utils.d.ts +11 -1
  126. package/modern/utils.js +17 -0
  127. package/package.json +3 -3
  128. package/shared/index.d.ts +1 -0
  129. package/shared/index.js +5 -0
  130. package/src/Component.tsx +6 -2
  131. package/src/components/content/Component.tsx +4 -1
  132. package/src/components/controls/Component.tsx +5 -2
  133. package/src/components/footer/Component.tsx +4 -1
  134. package/src/components/header/Component.tsx +3 -1
  135. package/src/shared/index.ts +1 -0
  136. package/src/typings.ts +1 -0
  137. package/src/utils.ts +14 -0
  138. package/transitions.css +8 -8
  139. package/typings.d.ts +1 -0
  140. package/useCustomWebkitScrollbar-a216f694.d.ts +2 -0
  141. package/utils.d.ts +11 -1
  142. package/utils.js +20 -0
  143. package/esm/layout.module-9ffd30f9.js +0 -4
  144. package/layout.module-57c7b9be.js +0 -6
  145. package/modern/layout.module-29d4c7c9.js +0 -4
package/Component.js CHANGED
@@ -15,18 +15,18 @@ var React__default = /*#__PURE__*/_interopDefaultCompat(React);
15
15
  var mergeRefs__default = /*#__PURE__*/_interopDefaultCompat(mergeRefs);
16
16
  var cn__default = /*#__PURE__*/_interopDefaultCompat(cn);
17
17
 
18
- var desktopStyles = {"wrapper":"modal__wrapper_1hhc8","component":"modal__component_1hhc8","fullscreen":"modal__fullscreen_1hhc8","s":"modal__s_1hhc8","m":"modal__m_1hhc8","l":"modal__l_1hhc8","xl":"modal__xl_1hhc8"};
18
+ var desktopStyles = {"wrapper":"modal__wrapper_1uxi5","component":"modal__component_1uxi5","fullscreen":"modal__fullscreen_1uxi5","s":"modal__s_1uxi5","m":"modal__m_1uxi5","l":"modal__l_1uxi5","xl":"modal__xl_1uxi5"};
19
19
  require('./desktop/desktop.css')
20
20
 
21
- var mobileStyles = {"component":"modal__component_odxlq"};
21
+ var mobileStyles = {"component":"modal__component_9mx07"};
22
22
  require('./mobile/mobile.css')
23
23
 
24
- var transitions = {"appear":"modal__appear_4gu03","enter":"modal__enter_4gu03","appearActive":"modal__appearActive_4gu03","enterActive":"modal__enterActive_4gu03","exit":"modal__exit_4gu03","exitActive":"modal__exitActive_4gu03","exitDone":"modal__exitDone_4gu03"};
24
+ var transitions = {"appear":"modal__appear_xje8z","enter":"modal__enter_xje8z","appearActive":"modal__appearActive_xje8z","enterActive":"modal__enterActive_xje8z","exit":"modal__exit_xje8z","exitActive":"modal__exitActive_xje8z","exitDone":"modal__exitDone_xje8z"};
25
25
  require('./transitions.css')
26
26
 
27
27
  var Modal = React.forwardRef(function (_a, ref) {
28
28
  var _b;
29
- var _c = _a.size, size = _c === void 0 ? 's' : _c, fixedPosition = _a.fixedPosition, fullscreen = _a.fullscreen, children = _a.children, className = _a.className, wrapperClassName = _a.wrapperClassName, _d = _a.transitionProps, transitionProps = _d === void 0 ? {} : _d, view = _a.view, restProps = tslib.__rest(_a, ["size", "fixedPosition", "fullscreen", "children", "className", "wrapperClassName", "transitionProps", "view"]);
29
+ var _c = _a.size, size = _c === void 0 ? 's' : _c, fixedPosition = _a.fixedPosition, fullscreen = _a.fullscreen, children = _a.children, className = _a.className, wrapperClassName = _a.wrapperClassName, _d = _a.transitionProps, transitionProps = _d === void 0 ? {} : _d, view = _a.view, dataTestId = _a.dataTestId, restProps = tslib.__rest(_a, ["size", "fixedPosition", "fullscreen", "children", "className", "wrapperClassName", "transitionProps", "view", "dataTestId"]);
30
30
  // TODO: удалить, после удаления пропсы fullscreen
31
31
  var componentSize = fullscreen ? 'fullscreen' : size;
32
32
  var modalRef = React.useRef(null);
@@ -58,9 +58,9 @@ var Modal = React.forwardRef(function (_a, ref) {
58
58
  transitionProps: tslib.__assign({ classNames: transitions }, transitionProps),
59
59
  className: cn__default.default(className, mobileStyles.component),
60
60
  };
61
- var contextValue = React.useMemo(function () { return ({ size: componentSize, view: view }); }, [componentSize, view]);
61
+ var contextValue = React.useMemo(function () { return ({ size: componentSize, view: view, dataTestId: dataTestId }); }, [componentSize, view, dataTestId]);
62
62
  return (React__default.default.createElement(ResponsiveContext.ResponsiveContext.Provider, { value: contextValue },
63
- React__default.default.createElement(coreComponentsBaseModal.BaseModal, tslib.__assign({}, restProps, baseModalProps), children)));
63
+ React__default.default.createElement(coreComponentsBaseModal.BaseModal, tslib.__assign({}, restProps, baseModalProps, { dataTestId: dataTestId }), children)));
64
64
  });
65
65
 
66
66
  exports.Modal = Modal;
@@ -11,10 +11,12 @@ var components_footer_Component = require('./components/footer/Component.js');
11
11
  var components_header_Component = require('./components/header/Component.js');
12
12
  var Component = require('./Component.js');
13
13
  require('classnames');
14
+ require('./getDataTestId-2aafdd4d.js');
15
+ require('@alfalab/hooks');
14
16
  require('./Context.js');
15
17
  require('@alfalab/core-components-base-modal');
16
18
  require('./ResponsiveContext.js');
17
- require('./layout.module-57c7b9be.js');
19
+ require('./layout.module-b10563a0.js');
18
20
  require('@alfalab/core-components-navigation-bar');
19
21
  require('react-merge-refs');
20
22
 
@@ -0,0 +1,6 @@
1
+ declare function isWebkitBased(): boolean;
2
+ declare const browser: {
3
+ getScrollbarSize: () => number;
4
+ isWebkitBased: typeof isWebkitBased;
5
+ };
6
+ export { browser };
@@ -4,6 +4,8 @@ Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
5
  var React = require('react');
6
6
  var cn = require('classnames');
7
+ var getDataTestId = require('../../getDataTestId-2aafdd4d.js');
8
+ require('@alfalab/hooks');
7
9
  var Context = require('../../Context.js');
8
10
  var ResponsiveContext = require('../../ResponsiveContext.js');
9
11
  require('@alfalab/core-components-base-modal');
@@ -13,26 +15,26 @@ function _interopDefaultCompat (e) { return e && typeof e === 'object' && 'defau
13
15
  var React__default = /*#__PURE__*/_interopDefaultCompat(React);
14
16
  var cn__default = /*#__PURE__*/_interopDefaultCompat(cn);
15
17
 
16
- var desktopStyles = {"s":"modal__s_1ps95","m":"modal__m_1ps95","l":"modal__l_1ps95","xl":"modal__xl_1ps95","fullscreen":"modal__fullscreen_1ps95"};
18
+ var desktopStyles = {"s":"modal__s_ums4m","m":"modal__m_ums4m","l":"modal__l_ums4m","xl":"modal__xl_ums4m","fullscreen":"modal__fullscreen_ums4m"};
17
19
  require('./desktop.css')
18
20
 
19
- var styles = {"content":"modal__content_1ug4p","withHeader":"modal__withHeader_1ug4p","flex":"modal__flex_1ug4p"};
21
+ var styles = {"content":"modal__content_11dkh","withHeader":"modal__withHeader_11dkh","flex":"modal__flex_11dkh"};
20
22
  require('./index.css')
21
23
 
22
- var mobileStyles = {"content":"modal__content_y4sbt"};
24
+ var mobileStyles = {"content":"modal__content_nkmyt"};
23
25
  require('./mobile.css')
24
26
 
25
27
  var Content = function (_a) {
26
28
  var _b;
27
29
  var children = _a.children, flex = _a.flex, className = _a.className;
28
30
  var _c = React.useContext(Context.ModalContext), contentRef = _c.contentRef, hasHeader = _c.hasHeader;
29
- var _d = React.useContext(ResponsiveContext.ResponsiveContext), size = _d.size, view = _d.view;
31
+ var _d = React.useContext(ResponsiveContext.ResponsiveContext), size = _d.size, view = _d.view, dataTestId = _d.dataTestId;
30
32
  return (React__default.default.createElement("div", { className: cn__default.default(styles.content, className, (_b = {},
31
33
  _b[styles.flex] = flex,
32
34
  _b[styles.withHeader] = hasHeader,
33
35
  _b[desktopStyles[size]] = view === 'desktop' && size,
34
36
  _b[mobileStyles.content] = view === 'mobile',
35
- _b)), ref: contentRef }, children));
37
+ _b)), ref: contentRef, "data-test-id": getDataTestId.getDataTestId(dataTestId, 'content') }, children));
36
38
  };
37
39
 
38
40
  exports.Content = Content;
@@ -1,4 +1,4 @@
1
- /* hash: vsqki */
1
+ /* hash: 1ppdn */
2
2
  :root {
3
3
  } /* deprecated */ :root { /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */
4
4
  } :root { /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */
@@ -30,12 +30,12 @@
30
30
  /* mobile */
31
31
 
32
32
  /* paddings */
33
- } .modal__s_1ps95,
34
- .modal__m_1ps95,
35
- .modal__l_1ps95,
36
- .modal__xl_1ps95,
37
- .modal__fullscreen_1ps95 {
33
+ } .modal__s_ums4m,
34
+ .modal__m_ums4m,
35
+ .modal__l_ums4m,
36
+ .modal__xl_ums4m,
37
+ .modal__fullscreen_ums4m {
38
38
  padding: var(--modal-s-content-paddings)
39
- } .modal__s_1ps95:last-child, .modal__m_1ps95:last-child, .modal__l_1ps95:last-child, .modal__xl_1ps95:last-child, .modal__fullscreen_1ps95:last-child {
39
+ } .modal__s_ums4m:last-child, .modal__m_ums4m:last-child, .modal__l_ums4m:last-child, .modal__xl_ums4m:last-child, .modal__fullscreen_ums4m:last-child {
40
40
  padding-bottom: var(--modal-s-content-only-bottom-padding);
41
41
  }
@@ -1,4 +1,4 @@
1
- /* hash: e0vq9 */
1
+ /* hash: 17xit */
2
2
  :root {
3
3
  } /* deprecated */ :root { /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */
4
4
  } :root { /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */
@@ -27,13 +27,13 @@
27
27
  /* mobile */
28
28
 
29
29
  /* paddings */
30
- } .modal__content_1ug4p {
30
+ } .modal__content_11dkh {
31
31
  position: relative;
32
32
  box-sizing: border-box;
33
33
  width: 100%;
34
34
  z-index: 0
35
- } .modal__content_1ug4p.modal__withHeader_1ug4p {
35
+ } .modal__content_11dkh.modal__withHeader_11dkh {
36
36
  padding-top: 0;
37
- } .modal__flex_1ug4p {
37
+ } .modal__flex_11dkh {
38
38
  flex: 1;
39
39
  }
@@ -1,4 +1,4 @@
1
- /* hash: pcf58 */
1
+ /* hash: oztjz */
2
2
  :root {
3
3
  } /* deprecated */ :root { /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */
4
4
  } :root { /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */
@@ -28,8 +28,8 @@
28
28
  /* mobile */
29
29
 
30
30
  /* paddings */
31
- } .modal__content_y4sbt {
31
+ } .modal__content_nkmyt {
32
32
  padding: var(--gap-m) var(--gap-m) 0
33
- } .modal__content_y4sbt:last-child {
33
+ } .modal__content_nkmyt:last-child {
34
34
  padding-bottom: var(--gap-m);
35
35
  }
@@ -4,23 +4,25 @@ Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
5
  var React = require('react');
6
6
  var cn = require('classnames');
7
+ var getDataTestId = require('../../getDataTestId-2aafdd4d.js');
8
+ require('@alfalab/hooks');
7
9
  var ResponsiveContext = require('../../ResponsiveContext.js');
8
- var layout_module = require('../../layout.module-57c7b9be.js');
10
+ var layout_module = require('../../layout.module-b10563a0.js');
9
11
 
10
12
  function _interopDefaultCompat (e) { return e && typeof e === 'object' && 'default' in e ? e : { default: e }; }
11
13
 
12
14
  var React__default = /*#__PURE__*/_interopDefaultCompat(React);
13
15
  var cn__default = /*#__PURE__*/_interopDefaultCompat(cn);
14
16
 
15
- var styles = {"component":"modal__component_hhndl"};
17
+ var styles = {"component":"modal__component_16dcd"};
16
18
  require('./index.css')
17
19
 
18
20
  var Controls = function (_a) {
19
- var primary = _a.primary, secondary = _a.secondary, _b = _a.gap, gap = _b === void 0 ? 16 : _b, _c = _a.layout, layoutProp = _c === void 0 ? 'start' : _c, _d = _a.mobileLayout, mobileLayout = _d === void 0 ? layoutProp : _d;
20
- var view = React.useContext(ResponsiveContext.ResponsiveContext).view;
21
+ var primary = _a.primary, secondary = _a.secondary, gap = _a.gap, _b = _a.layout, layoutProp = _b === void 0 ? 'start' : _b, _c = _a.mobileLayout, mobileLayout = _c === void 0 ? layoutProp : _c;
22
+ var _d = React.useContext(ResponsiveContext.ResponsiveContext), view = _d.view, dataTestId = _d.dataTestId;
21
23
  var layout = view === 'mobile' ? mobileLayout : layoutProp;
22
24
  var shouldReverse = view === 'mobile' && layout !== 'column';
23
- return (React__default.default.createElement("div", { className: cn__default.default(styles.component, layout_module.layoutStyles[layout], gap && layout_module.layoutStyles["gap-".concat(gap)]) }, shouldReverse ? (React__default.default.createElement(React__default.default.Fragment, null,
25
+ return (React__default.default.createElement("div", { "data-test-id": getDataTestId.getDataTestId(dataTestId, 'controls'), className: cn__default.default(styles.component, layout_module.layoutStyles[layout], gap && layout_module.layoutStyles["gap-".concat(gap)]) }, shouldReverse ? (React__default.default.createElement(React__default.default.Fragment, null,
24
26
  secondary,
25
27
  primary)) : (React__default.default.createElement(React__default.default.Fragment, null,
26
28
  primary,
@@ -1,4 +1,4 @@
1
- /* hash: 13rud */
2
- .modal__component_hhndl {
1
+ /* hash: 1n0ts */
2
+ .modal__component_16dcd {
3
3
  width: 100%;
4
4
  }
@@ -5,8 +5,10 @@ Object.defineProperty(exports, '__esModule', { value: true });
5
5
  var components_controls_Component = require('./Component.js');
6
6
  require('react');
7
7
  require('classnames');
8
+ require('../../getDataTestId-2aafdd4d.js');
9
+ require('@alfalab/hooks');
8
10
  require('../../ResponsiveContext.js');
9
- require('../../layout.module-57c7b9be.js');
11
+ require('../../layout.module-b10563a0.js');
10
12
 
11
13
 
12
14
 
@@ -4,9 +4,11 @@ Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
5
  var React = require('react');
6
6
  var cn = require('classnames');
7
+ var getDataTestId = require('../../getDataTestId-2aafdd4d.js');
8
+ require('@alfalab/hooks');
7
9
  var Context = require('../../Context.js');
8
10
  var ResponsiveContext = require('../../ResponsiveContext.js');
9
- var layout_module = require('../../layout.module-57c7b9be.js');
11
+ var layout_module = require('../../layout.module-b10563a0.js');
10
12
  require('@alfalab/core-components-base-modal');
11
13
 
12
14
  function _interopDefaultCompat (e) { return e && typeof e === 'object' && 'default' in e ? e : { default: e }; }
@@ -14,24 +16,24 @@ function _interopDefaultCompat (e) { return e && typeof e === 'object' && 'defau
14
16
  var React__default = /*#__PURE__*/_interopDefaultCompat(React);
15
17
  var cn__default = /*#__PURE__*/_interopDefaultCompat(cn);
16
18
 
17
- var desktopStyles = {"footer":"modal__footer_kkmzz","sticky":"modal__sticky_kkmzz","fullscreen":"modal__fullscreen_kkmzz","s":"modal__s_kkmzz","m":"modal__m_kkmzz","l":"modal__l_kkmzz","xl":"modal__xl_kkmzz"};
19
+ var desktopStyles = {"footer":"modal__footer_7wj6i","sticky":"modal__sticky_7wj6i","fullscreen":"modal__fullscreen_7wj6i","s":"modal__s_7wj6i","m":"modal__m_7wj6i","l":"modal__l_7wj6i","xl":"modal__xl_7wj6i"};
18
20
  require('./desktop.css')
19
21
 
20
- var styles = {"footer":"modal__footer_d1tnp","sticky":"modal__sticky_d1tnp","highlighted":"modal__highlighted_d1tnp"};
22
+ var styles = {"footer":"modal__footer_1xbx4","sticky":"modal__sticky_1xbx4","highlighted":"modal__highlighted_1xbx4"};
21
23
  require('./index.css')
22
24
 
23
- var mobileStyles = {"footer":"modal__footer_1d9qk","sticky":"modal__sticky_1d9qk"};
25
+ var mobileStyles = {"footer":"modal__footer_bucfp","sticky":"modal__sticky_bucfp"};
24
26
  require('./mobile.css')
25
27
 
26
28
  var Footer = function (_a) {
27
29
  var _b;
28
30
  var children = _a.children, className = _a.className, sticky = _a.sticky, _c = _a.layout, layout = _c === void 0 ? 'start' : _c, gap = _a.gap;
29
31
  var _d = React.useContext(Context.ModalContext), footerHighlighted = _d.footerHighlighted, setHasFooter = _d.setHasFooter;
30
- var _e = React.useContext(ResponsiveContext.ResponsiveContext), size = _e.size, view = _e.view;
32
+ var _e = React.useContext(ResponsiveContext.ResponsiveContext), size = _e.size, view = _e.view, dataTestId = _e.dataTestId;
31
33
  React.useEffect(function () {
32
34
  setHasFooter(true);
33
35
  }, [setHasFooter]);
34
- return (React__default.default.createElement("div", { className: cn__default.default(styles.footer, className, layout_module.layoutStyles[layout], gap && layout_module.layoutStyles["gap-".concat(gap)], (_b = {},
36
+ return (React__default.default.createElement("div", { "data-test-id": getDataTestId.getDataTestId(dataTestId, 'footer'), className: cn__default.default(styles.footer, className, layout_module.layoutStyles[layout], gap && layout_module.layoutStyles["gap-".concat(gap)], (_b = {},
35
37
  _b[styles.highlighted] = sticky && footerHighlighted,
36
38
  _b[styles.sticky] = sticky,
37
39
  _b[desktopStyles.footer] = view === 'desktop',
@@ -1,4 +1,4 @@
1
- /* hash: ti02d */
1
+ /* hash: 142ts */
2
2
  :root {
3
3
  } /* deprecated */ :root { /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */
4
4
  } :root { /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */
@@ -33,17 +33,17 @@
33
33
  /* mobile */
34
34
 
35
35
  /* paddings */
36
- } .modal__footer_kkmzz {
36
+ } .modal__footer_7wj6i {
37
37
  border-bottom-left-radius: var(--modal-border-radius);
38
38
  border-bottom-right-radius: var(--modal-border-radius);
39
- } .modal__sticky_kkmzz {
39
+ } .modal__sticky_7wj6i {
40
40
  bottom: calc(var(--modal-vertical-padding) * -1)
41
- } .modal__sticky_kkmzz.modal__fullscreen_kkmzz {
41
+ } .modal__sticky_7wj6i.modal__fullscreen_7wj6i {
42
42
  bottom: 0;
43
- } .modal__s_kkmzz,
44
- .modal__m_kkmzz,
45
- .modal__l_kkmzz,
46
- .modal__xl_kkmzz,
47
- .modal__fullscreen_kkmzz {
43
+ } .modal__s_7wj6i,
44
+ .modal__m_7wj6i,
45
+ .modal__l_7wj6i,
46
+ .modal__xl_7wj6i,
47
+ .modal__fullscreen_7wj6i {
48
48
  padding: var(--modal-s-footer-paddings);
49
49
  }
@@ -1,4 +1,4 @@
1
- /* hash: 1dc86 */
1
+ /* hash: 1nx1w */
2
2
  :root {
3
3
  } /* deprecated */ :root {
4
4
  --color-light-modal-bg-primary: #fff;
@@ -32,14 +32,14 @@
32
32
  /* mobile */
33
33
 
34
34
  /* paddings */
35
- } .modal__footer_d1tnp {
35
+ } .modal__footer_1xbx4 {
36
36
  width: 100%;
37
37
  box-sizing: border-box;
38
38
  transition: box-shadow 0.2s ease, background 0.2s ease;
39
- } .modal__sticky_d1tnp {
39
+ } .modal__sticky_1xbx4 {
40
40
  background: var(--modal-footer-background);
41
41
  position: sticky;
42
- } .modal__highlighted_d1tnp {
42
+ } .modal__highlighted_1xbx4 {
43
43
  background: var(--modal-footer-highlight-background);
44
44
  box-shadow: var(--modal-footer-highlight-box-shadow);
45
45
  }
@@ -1,4 +1,4 @@
1
- /* hash: 15j1z */
1
+ /* hash: 1g3vp */
2
2
  :root {
3
3
  } /* deprecated */ :root { /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */
4
4
  } :root { /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */
@@ -31,35 +31,35 @@
31
31
  /* mobile */
32
32
 
33
33
  /* paddings */
34
- } .modal__column_1gona {
34
+ } .modal__column_140jh {
35
35
  display: flex;
36
36
  flex-direction: column
37
- } .modal__column_1gona > *:not(:last-child):not(:only-child) {
37
+ } .modal__column_140jh > *:not(:last-child):not(:only-child) {
38
38
  margin-bottom: var(--modal-footer-default-gap);
39
- } .modal__column_1gona.modal__gap-16_1gona > *:not(:last-child):not(:only-child) {
39
+ } .modal__column_140jh.modal__gap-16_140jh > *:not(:last-child):not(:only-child) {
40
40
  margin-bottom: var(--gap-m);
41
- } .modal__column_1gona.modal__gap-24_1gona > *:not(:last-child):not(:only-child) {
41
+ } .modal__column_140jh.modal__gap-24_140jh > *:not(:last-child):not(:only-child) {
42
42
  margin-bottom: var(--gap-xl);
43
- } .modal__column_1gona.modal__gap-32_1gona > *:not(:last-child):not(:only-child) {
43
+ } .modal__column_140jh.modal__gap-32_140jh > *:not(:last-child):not(:only-child) {
44
44
  margin-bottom: var(--gap-2xl);
45
- } .modal__start_1gona {
45
+ } .modal__start_140jh {
46
46
  justify-content: flex-start;
47
- } .modal__center_1gona {
47
+ } .modal__center_140jh {
48
48
  justify-content: center;
49
- } .modal__space-between_1gona {
49
+ } .modal__space-between_140jh {
50
50
  justify-content: space-between
51
- } .modal__space-between_1gona > * {
51
+ } .modal__space-between_140jh > * {
52
52
  flex: 1;
53
- } .modal__start_1gona,
54
- .modal__center_1gona,
55
- .modal__space-between_1gona {
53
+ } .modal__start_140jh,
54
+ .modal__center_140jh,
55
+ .modal__space-between_140jh {
56
56
  display: flex
57
- } .modal__start_1gona > *:not(:last-child):not(:only-child), .modal__center_1gona > *:not(:last-child):not(:only-child), .modal__space-between_1gona > *:not(:last-child):not(:only-child) {
57
+ } .modal__start_140jh > *:not(:last-child):not(:only-child), .modal__center_140jh > *:not(:last-child):not(:only-child), .modal__space-between_140jh > *:not(:last-child):not(:only-child) {
58
58
  margin-right: var(--modal-footer-default-gap);
59
- } .modal__start_1gona.modal__gap-16_1gona > *:not(:last-child):not(:only-child), .modal__center_1gona.modal__gap-16_1gona > *:not(:last-child):not(:only-child), .modal__space-between_1gona.modal__gap-16_1gona > *:not(:last-child):not(:only-child) {
59
+ } .modal__start_140jh.modal__gap-16_140jh > *:not(:last-child):not(:only-child), .modal__center_140jh.modal__gap-16_140jh > *:not(:last-child):not(:only-child), .modal__space-between_140jh.modal__gap-16_140jh > *:not(:last-child):not(:only-child) {
60
60
  margin-right: var(--gap-m);
61
- } .modal__start_1gona.modal__gap-24_1gona > *:not(:last-child):not(:only-child), .modal__center_1gona.modal__gap-24_1gona > *:not(:last-child):not(:only-child), .modal__space-between_1gona.modal__gap-24_1gona > *:not(:last-child):not(:only-child) {
61
+ } .modal__start_140jh.modal__gap-24_140jh > *:not(:last-child):not(:only-child), .modal__center_140jh.modal__gap-24_140jh > *:not(:last-child):not(:only-child), .modal__space-between_140jh.modal__gap-24_140jh > *:not(:last-child):not(:only-child) {
62
62
  margin-right: var(--gap-xl);
63
- } .modal__start_1gona.modal__gap-32_1gona > *:not(:last-child):not(:only-child), .modal__center_1gona.modal__gap-32_1gona > *:not(:last-child):not(:only-child), .modal__space-between_1gona.modal__gap-32_1gona > *:not(:last-child):not(:only-child) {
63
+ } .modal__start_140jh.modal__gap-32_140jh > *:not(:last-child):not(:only-child), .modal__center_140jh.modal__gap-32_140jh > *:not(:last-child):not(:only-child), .modal__space-between_140jh.modal__gap-32_140jh > *:not(:last-child):not(:only-child) {
64
64
  margin-right: var(--gap-2xl);
65
65
  }
@@ -1,4 +1,4 @@
1
- /* hash: 19lel */
1
+ /* hash: qcf5p */
2
2
  :root {
3
3
  } /* deprecated */ :root { /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */
4
4
  } :root { /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */
@@ -28,8 +28,8 @@
28
28
  /* mobile */
29
29
 
30
30
  /* paddings */
31
- } .modal__footer_1d9qk {
31
+ } .modal__footer_bucfp {
32
32
  padding: var(--gap-m);
33
- } .modal__sticky_1d9qk {
33
+ } .modal__sticky_bucfp {
34
34
  bottom: 0;
35
35
  }
@@ -6,6 +6,8 @@ var tslib = require('tslib');
6
6
  var React = require('react');
7
7
  var cn = require('classnames');
8
8
  var coreComponentsNavigationBar = require('@alfalab/core-components-navigation-bar');
9
+ var getDataTestId = require('../../getDataTestId-2aafdd4d.js');
10
+ require('@alfalab/hooks');
9
11
  var Context = require('../../Context.js');
10
12
  var ResponsiveContext = require('../../ResponsiveContext.js');
11
13
  require('@alfalab/core-components-base-modal');
@@ -15,25 +17,25 @@ function _interopDefaultCompat (e) { return e && typeof e === 'object' && 'defau
15
17
  var React__default = /*#__PURE__*/_interopDefaultCompat(React);
16
18
  var cn__default = /*#__PURE__*/_interopDefaultCompat(cn);
17
19
 
18
- var desktopStyles = {"header":"modal__header_he560","content":"modal__content_he560","s":"modal__s_he560","m":"modal__m_he560","l":"modal__l_he560","xl":"modal__xl_he560","fullscreen":"modal__fullscreen_he560","sticky":"modal__sticky_he560"};
20
+ var desktopStyles = {"header":"modal__header_1374z","content":"modal__content_1374z","s":"modal__s_1374z","m":"modal__m_1374z","l":"modal__l_1374z","xl":"modal__xl_1374z","fullscreen":"modal__fullscreen_1374z","sticky":"modal__sticky_1374z"};
19
21
  require('./desktop.css')
20
22
 
21
- var styles = {"highlighted":"modal__highlighted_pddkj","sticky":"modal__sticky_pddkj","hasContent":"modal__hasContent_pddkj"};
23
+ var styles = {"highlighted":"modal__highlighted_193gl","sticky":"modal__sticky_193gl","hasContent":"modal__hasContent_193gl"};
22
24
  require('./index.css')
23
25
 
24
- var mobileStyles = {"header":"modal__header_7tgf4","sticky":"modal__sticky_7tgf4","content":"modal__content_7tgf4"};
26
+ var mobileStyles = {"header":"modal__header_jhrts","sticky":"modal__sticky_jhrts","content":"modal__content_jhrts"};
25
27
  require('./mobile.css')
26
28
 
27
29
  var Header = function (_a) {
28
30
  var _b, _c;
29
31
  var className = _a.className, sticky = _a.sticky, title = _a.title, children = _a.children, contentClassName = _a.contentClassName, _d = _a.hasCloser, hasCloser = _d === void 0 ? true : _d, restProps = tslib.__rest(_a, ["className", "sticky", "title", "children", "contentClassName", "hasCloser"]);
30
32
  var _e = React.useContext(Context.ModalContext), setHasHeader = _e.setHasHeader, headerHighlighted = _e.headerHighlighted, parentRef = _e.parentRef, onClose = _e.onClose;
31
- var _f = React.useContext(ResponsiveContext.ResponsiveContext), view = _f.view, size = _f.size;
33
+ var _f = React.useContext(ResponsiveContext.ResponsiveContext), view = _f.view, size = _f.size, dataTestId = _f.dataTestId;
32
34
  React.useEffect(function () {
33
35
  setHasHeader(true);
34
36
  }, [setHasHeader]);
35
37
  var hasContent = Boolean(title || children);
36
- return (React__default.default.createElement(coreComponentsNavigationBar.NavigationBar, tslib.__assign({}, restProps, { scrollableParentRef: parentRef, hasCloser: hasCloser, sticky: sticky, view: view, title: title, onClose: onClose, className: cn__default.default(className, (_b = {},
38
+ return (React__default.default.createElement(coreComponentsNavigationBar.NavigationBar, tslib.__assign({ dataTestId: getDataTestId.getDataTestId(dataTestId, 'header') }, restProps, { scrollableParentRef: parentRef, hasCloser: hasCloser, sticky: sticky, view: view, title: title, onClose: onClose, className: cn__default.default(className, (_b = {},
37
39
  _b[styles.highlighted] = hasContent && sticky && headerHighlighted,
38
40
  _b[styles.sticky] = sticky,
39
41
  _b[styles.hasContent] = hasContent,
@@ -1,4 +1,4 @@
1
- /* hash: 1wpi3 */
1
+ /* hash: 5a0ps */
2
2
  :root {
3
3
  } /* deprecated */ :root { /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */
4
4
  } :root { /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */
@@ -44,31 +44,31 @@
44
44
  /* mobile */
45
45
 
46
46
  /* paddings */
47
- } .modal__header_he560 {
47
+ } .modal__header_1374z {
48
48
  border-top-left-radius: var(--modal-border-radius);
49
49
  border-top-right-radius: var(--modal-border-radius);
50
- } .modal__content_he560 {
50
+ } .modal__content_1374z {
51
51
  font-weight: var(--modal-header-desktop-font-weight);
52
52
  font-family: var(--modal-header-desktop-font-family);
53
- } .modal__s_he560 .modal__content_he560,
54
- .modal__m_he560 .modal__content_he560 {
53
+ } .modal__s_1374z .modal__content_1374z,
54
+ .modal__m_1374z .modal__content_1374z {
55
55
  padding: var(--modal-s-header-desktop-content-paddings);
56
56
  font-size: var(--modal-s-header-desktop-font-size);
57
57
  line-height: var(--modal-s-header-desktop-line-height);
58
- } .modal__l_he560 .modal__content_he560,
59
- .modal__xl_he560 .modal__content_he560,
60
- .modal__fullscreen_he560 .modal__content_he560 {
58
+ } .modal__l_1374z .modal__content_1374z,
59
+ .modal__xl_1374z .modal__content_1374z,
60
+ .modal__fullscreen_1374z .modal__content_1374z {
61
61
  padding: var(--modal-l-header-desktop-content-paddings);
62
62
  font-size: var(--modal-l-header-desktop-font-size);
63
63
  line-height: var(--modal-l-header-desktop-line-height);
64
- } .modal__s_he560,
65
- .modal__m_he560,
66
- .modal__l_he560,
67
- .modal__xl_he560,
68
- .modal__fullscreen_he560 {
64
+ } .modal__s_1374z,
65
+ .modal__m_1374z,
66
+ .modal__l_1374z,
67
+ .modal__xl_1374z,
68
+ .modal__fullscreen_1374z {
69
69
  padding: var(--modal-s-header-paddings);
70
- } .modal__sticky_he560 {
70
+ } .modal__sticky_1374z {
71
71
  top: calc(var(--modal-vertical-padding) * -1)
72
- } .modal__sticky_he560.modal__fullscreen_he560 {
72
+ } .modal__sticky_1374z.modal__fullscreen_1374z {
73
73
  top: 0;
74
74
  }
@@ -1,4 +1,4 @@
1
- /* hash: lpc8u */
1
+ /* hash: tayws */
2
2
  :root {
3
3
  } /* deprecated */ :root {
4
4
  --color-light-modal-bg-primary: #fff;
@@ -32,12 +32,12 @@
32
32
  /* mobile */
33
33
 
34
34
  /* paddings */
35
- } .modal__highlighted_pddkj {
35
+ } .modal__highlighted_193gl {
36
36
  background: var(--modal-header-highlight-background);
37
37
  box-shadow: var(--modal-header-highlight-box-shadow);
38
- } .modal__sticky_pddkj {
38
+ } .modal__sticky_193gl {
39
39
  position: sticky;
40
40
  z-index: 1
41
- } .modal__sticky_pddkj.modal__hasContent_pddkj {
41
+ } .modal__sticky_193gl.modal__hasContent_193gl {
42
42
  background: var(--modal-header-background);
43
43
  }
@@ -1,4 +1,4 @@
1
- /* hash: tywre */
1
+ /* hash: 1fxbl */
2
2
  :root {
3
3
  } /* deprecated */ :root { /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */
4
4
  } :root { /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */
@@ -38,11 +38,11 @@
38
38
 
39
39
  /* paddings */
40
40
  --modal-header-mobile-paddings: var(--gap-2xs) var(--gap-xs);
41
- } .modal__header_7tgf4 {
41
+ } .modal__header_jhrts {
42
42
  padding: var(--modal-header-mobile-paddings);
43
- } .modal__sticky_7tgf4 {
43
+ } .modal__sticky_jhrts {
44
44
  top: 0;
45
- } .modal__content_7tgf4 {
45
+ } .modal__content_jhrts {
46
46
  font-size: var(--modal-header-mobile-font-size);
47
47
  line-height: var(--modal-header-mobile-line-height);
48
48
  font-family: var(--modal-header-mobile-font-family);
package/cssm/Component.js CHANGED
@@ -23,7 +23,7 @@ var transitions__default = /*#__PURE__*/_interopDefaultCompat(transitions);
23
23
 
24
24
  var Modal = React.forwardRef(function (_a, ref) {
25
25
  var _b;
26
- var _c = _a.size, size = _c === void 0 ? 's' : _c, fixedPosition = _a.fixedPosition, fullscreen = _a.fullscreen, children = _a.children, className = _a.className, wrapperClassName = _a.wrapperClassName, _d = _a.transitionProps, transitionProps = _d === void 0 ? {} : _d, view = _a.view, restProps = tslib.__rest(_a, ["size", "fixedPosition", "fullscreen", "children", "className", "wrapperClassName", "transitionProps", "view"]);
26
+ var _c = _a.size, size = _c === void 0 ? 's' : _c, fixedPosition = _a.fixedPosition, fullscreen = _a.fullscreen, children = _a.children, className = _a.className, wrapperClassName = _a.wrapperClassName, _d = _a.transitionProps, transitionProps = _d === void 0 ? {} : _d, view = _a.view, dataTestId = _a.dataTestId, restProps = tslib.__rest(_a, ["size", "fixedPosition", "fullscreen", "children", "className", "wrapperClassName", "transitionProps", "view", "dataTestId"]);
27
27
  // TODO: удалить, после удаления пропсы fullscreen
28
28
  var componentSize = fullscreen ? 'fullscreen' : size;
29
29
  var modalRef = React.useRef(null);
@@ -55,9 +55,9 @@ var Modal = React.forwardRef(function (_a, ref) {
55
55
  transitionProps: tslib.__assign({ classNames: transitions__default.default }, transitionProps),
56
56
  className: cn__default.default(className, mobileStyles__default.default.component),
57
57
  };
58
- var contextValue = React.useMemo(function () { return ({ size: componentSize, view: view }); }, [componentSize, view]);
58
+ var contextValue = React.useMemo(function () { return ({ size: componentSize, view: view, dataTestId: dataTestId }); }, [componentSize, view, dataTestId]);
59
59
  return (React__default.default.createElement(ResponsiveContext.ResponsiveContext.Provider, { value: contextValue },
60
- React__default.default.createElement(coreComponentsBaseModal.BaseModal, tslib.__assign({}, restProps, baseModalProps), children)));
60
+ React__default.default.createElement(coreComponentsBaseModal.BaseModal, tslib.__assign({}, restProps, baseModalProps, { dataTestId: dataTestId }), children)));
61
61
  });
62
62
 
63
63
  exports.Modal = Modal;
@@ -11,6 +11,8 @@ var components_footer_Component = require('./components/footer/Component.js');
11
11
  var components_header_Component = require('./components/header/Component.js');
12
12
  var Component = require('./Component.js');
13
13
  require('classnames');
14
+ require('./getDataTestId-73ea38f8.js');
15
+ require('@alfalab/hooks');
14
16
  require('./Context.js');
15
17
  require('@alfalab/core-components-base-modal/cssm');
16
18
  require('./ResponsiveContext.js');
@@ -0,0 +1,6 @@
1
+ declare function isWebkitBased(): boolean;
2
+ declare const browser: {
3
+ getScrollbarSize: () => number;
4
+ isWebkitBased: typeof isWebkitBased;
5
+ };
6
+ export { browser };