@alfalab/core-components-modal 9.0.1 → 9.1.1

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 (136) hide show
  1. package/Component.js +3 -3
  2. package/Component.responsive.js +0 -9
  3. package/components/content/Component.js +5 -7
  4. package/components/content/desktop.css +7 -7
  5. package/components/content/index.css +4 -4
  6. package/components/content/mobile.css +3 -3
  7. package/components/controls/Component.js +6 -7
  8. package/components/controls/index.css +2 -2
  9. package/components/controls/index.js +0 -6
  10. package/components/footer/Component.js +6 -8
  11. package/components/footer/desktop.css +9 -9
  12. package/components/footer/index.css +4 -4
  13. package/components/footer/layout.css +17 -17
  14. package/components/footer/mobile.css +3 -3
  15. package/components/header/Component.js +5 -7
  16. package/components/header/desktop.css +15 -15
  17. package/components/header/index.css +4 -4
  18. package/components/header/mobile.css +4 -4
  19. package/cssm/Component.responsive.js +0 -22
  20. package/cssm/components/content/Component.js +2 -4
  21. package/cssm/components/controls/Component.js +4 -5
  22. package/cssm/components/controls/index.js +0 -7
  23. package/cssm/components/footer/Component.js +2 -4
  24. package/cssm/components/header/Component.js +2 -4
  25. package/cssm/desktop/Component.desktop.js +0 -22
  26. package/cssm/desktop/index.js +0 -29
  27. package/cssm/index.js +0 -30
  28. package/cssm/mobile/Component.mobile.js +0 -22
  29. package/cssm/mobile/index.js +0 -29
  30. package/cssm/shared/index.d.ts +1 -0
  31. package/cssm/shared/index.js +2 -1
  32. package/cssm/utils.d.ts +11 -1
  33. package/cssm/utils.js +18 -0
  34. package/desktop/Component.desktop.js +0 -9
  35. package/desktop/desktop.css +9 -9
  36. package/desktop/index.js +0 -16
  37. package/esm/Component.js +3 -3
  38. package/esm/Component.responsive.js +0 -9
  39. package/esm/components/content/Component.js +4 -6
  40. package/esm/components/content/desktop.css +7 -7
  41. package/esm/components/content/index.css +4 -4
  42. package/esm/components/content/mobile.css +3 -3
  43. package/esm/components/controls/Component.js +5 -6
  44. package/esm/components/controls/index.css +2 -2
  45. package/esm/components/controls/index.js +0 -6
  46. package/esm/components/footer/Component.js +5 -7
  47. package/esm/components/footer/desktop.css +9 -9
  48. package/esm/components/footer/index.css +4 -4
  49. package/esm/components/footer/layout.css +17 -17
  50. package/esm/components/footer/mobile.css +3 -3
  51. package/esm/components/header/Component.js +5 -7
  52. package/esm/components/header/desktop.css +15 -15
  53. package/esm/components/header/index.css +4 -4
  54. package/esm/components/header/mobile.css +4 -4
  55. package/esm/desktop/Component.desktop.js +0 -9
  56. package/esm/desktop/desktop.css +9 -9
  57. package/esm/desktop/index.js +0 -16
  58. package/esm/index.js +0 -17
  59. package/esm/layout.module-4c70e469.js +4 -0
  60. package/esm/mobile/Component.mobile.js +0 -9
  61. package/esm/mobile/index.js +0 -16
  62. package/esm/mobile/mobile.css +2 -2
  63. package/esm/shared/index.d.ts +1 -0
  64. package/esm/shared/index.js +1 -1
  65. package/esm/transitions.css +8 -8
  66. package/esm/utils.d.ts +11 -1
  67. package/esm/utils.js +15 -0
  68. package/index.js +0 -17
  69. package/layout.module-fffa9cc4.js +6 -0
  70. package/mobile/Component.mobile.js +0 -9
  71. package/mobile/index.js +0 -16
  72. package/mobile/mobile.css +2 -2
  73. package/modern/Component.js +3 -3
  74. package/modern/Component.responsive.js +0 -9
  75. package/modern/components/content/Component.js +4 -6
  76. package/modern/components/content/desktop.css +7 -7
  77. package/modern/components/content/index.css +4 -4
  78. package/modern/components/content/mobile.css +3 -3
  79. package/modern/components/controls/Component.js +4 -5
  80. package/modern/components/controls/index.css +2 -2
  81. package/modern/components/controls/index.js +0 -6
  82. package/modern/components/footer/Component.js +5 -7
  83. package/modern/components/footer/desktop.css +9 -9
  84. package/modern/components/footer/index.css +4 -4
  85. package/modern/components/footer/layout.css +17 -17
  86. package/modern/components/footer/mobile.css +3 -3
  87. package/modern/components/header/Component.js +5 -7
  88. package/modern/components/header/desktop.css +15 -15
  89. package/modern/components/header/index.css +4 -4
  90. package/modern/components/header/mobile.css +4 -4
  91. package/modern/desktop/Component.desktop.js +0 -9
  92. package/modern/desktop/desktop.css +9 -9
  93. package/modern/desktop/index.js +0 -15
  94. package/modern/index.js +0 -16
  95. package/modern/layout.module-80dc989b.js +4 -0
  96. package/modern/mobile/Component.mobile.js +0 -9
  97. package/modern/mobile/index.js +0 -15
  98. package/modern/mobile/mobile.css +2 -2
  99. package/modern/shared/index.d.ts +1 -0
  100. package/modern/shared/index.js +1 -1
  101. package/modern/transitions.css +8 -8
  102. package/modern/utils.d.ts +11 -1
  103. package/modern/utils.js +15 -0
  104. package/package.json +4 -3
  105. package/shared/index.d.ts +1 -0
  106. package/shared/index.js +2 -1
  107. package/src/components/controls/Component.tsx +1 -1
  108. package/src/components/header/Component.tsx +1 -1
  109. package/src/shared/index.ts +1 -0
  110. package/src/utils.ts +14 -0
  111. package/transitions.css +8 -8
  112. package/utils.d.ts +11 -1
  113. package/utils.js +18 -0
  114. package/browser-a216f694.d.ts +0 -6
  115. package/cssm/browser-a216f694.d.ts +0 -6
  116. package/cssm/getDataTestId-5c876d98.d.ts +0 -2
  117. package/cssm/getDataTestId-5c876d98.js +0 -8
  118. package/cssm/index-a5b021bd.d.ts +0 -70
  119. package/cssm/useCustomWebkitScrollbar-a216f694.d.ts +0 -2
  120. package/esm/browser-a216f694.d.ts +0 -6
  121. package/esm/getDataTestId-143c099f.d.ts +0 -2
  122. package/esm/getDataTestId-143c099f.js +0 -6
  123. package/esm/index-a5b021bd.d.ts +0 -70
  124. package/esm/layout.module-9932f3ea.js +0 -4
  125. package/esm/useCustomWebkitScrollbar-a216f694.d.ts +0 -2
  126. package/getDataTestId-2c8d1d4f.d.ts +0 -2
  127. package/getDataTestId-2c8d1d4f.js +0 -8
  128. package/index-a5b021bd.d.ts +0 -70
  129. package/layout.module-61746462.js +0 -6
  130. package/modern/browser-a216f694.d.ts +0 -6
  131. package/modern/getDataTestId-a8aae71a.d.ts +0 -2
  132. package/modern/getDataTestId-a8aae71a.js +0 -6
  133. package/modern/index-a5b021bd.d.ts +0 -70
  134. package/modern/layout.module-bff97609.js +0 -4
  135. package/modern/useCustomWebkitScrollbar-a216f694.d.ts +0 -2
  136. package/useCustomWebkitScrollbar-a216f694.d.ts +0 -2
package/Component.js CHANGED
@@ -15,13 +15,13 @@ 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_1ccgp","component":"modal__component_1ccgp","fullscreen":"modal__fullscreen_1ccgp","s":"modal__s_1ccgp","m":"modal__m_1ccgp","l":"modal__l_1ccgp","xl":"modal__xl_1ccgp"};
18
+ var desktopStyles = {"wrapper":"modal__wrapper_3wrya","component":"modal__component_3wrya","fullscreen":"modal__fullscreen_3wrya","s":"modal__s_3wrya","m":"modal__m_3wrya","l":"modal__l_3wrya","xl":"modal__xl_3wrya"};
19
19
  require('./desktop/desktop.css')
20
20
 
21
- var mobileStyles = {"component":"modal__component_1odq1"};
21
+ var mobileStyles = {"component":"modal__component_1sigs"};
22
22
  require('./mobile/mobile.css')
23
23
 
24
- var transitions = {"appear":"modal__appear_24xq3","enter":"modal__enter_24xq3","appearActive":"modal__appearActive_24xq3","enterActive":"modal__enterActive_24xq3","exit":"modal__exit_24xq3","exitActive":"modal__exitActive_24xq3","exitDone":"modal__exitDone_24xq3"};
24
+ var transitions = {"appear":"modal__appear_1doyi","enter":"modal__enter_1doyi","appearActive":"modal__appearActive_1doyi","enterActive":"modal__enterActive_1doyi","exit":"modal__exit_1doyi","exitActive":"modal__exitActive_1doyi","exitDone":"modal__exitDone_1doyi"};
25
25
  require('./transitions.css')
26
26
 
27
27
  var Modal = React.forwardRef(function (_a, ref) {
@@ -10,15 +10,6 @@ var components_controls_Component = require('./components/controls/Component.js'
10
10
  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
- require('classnames');
14
- require('./getDataTestId-2c8d1d4f.js');
15
- require('@alfalab/hooks');
16
- require('./Context.js');
17
- require('@alfalab/core-components-base-modal');
18
- require('./ResponsiveContext.js');
19
- require('./layout.module-61746462.js');
20
- require('@alfalab/core-components-navigation-bar');
21
- require('react-merge-refs');
22
13
 
23
14
  function _interopDefaultCompat (e) { return e && typeof e === 'object' && 'default' in e ? e : { default: e }; }
24
15
 
@@ -4,24 +4,22 @@ 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-2c8d1d4f.js');
8
- require('@alfalab/hooks');
7
+ var coreComponentsShared = require('@alfalab/core-components-shared');
9
8
  var Context = require('../../Context.js');
10
9
  var ResponsiveContext = require('../../ResponsiveContext.js');
11
- require('@alfalab/core-components-base-modal');
12
10
 
13
11
  function _interopDefaultCompat (e) { return e && typeof e === 'object' && 'default' in e ? e : { default: e }; }
14
12
 
15
13
  var React__default = /*#__PURE__*/_interopDefaultCompat(React);
16
14
  var cn__default = /*#__PURE__*/_interopDefaultCompat(cn);
17
15
 
18
- var desktopStyles = {"s":"modal__s_15gj1","m":"modal__m_15gj1","l":"modal__l_15gj1","xl":"modal__xl_15gj1","fullscreen":"modal__fullscreen_15gj1"};
16
+ var desktopStyles = {"s":"modal__s_eh7uu","m":"modal__m_eh7uu","l":"modal__l_eh7uu","xl":"modal__xl_eh7uu","fullscreen":"modal__fullscreen_eh7uu"};
19
17
  require('./desktop.css')
20
18
 
21
- var styles = {"content":"modal__content_1ws0z","withHeader":"modal__withHeader_1ws0z","flex":"modal__flex_1ws0z"};
19
+ var styles = {"content":"modal__content_l807a","withHeader":"modal__withHeader_l807a","flex":"modal__flex_l807a"};
22
20
  require('./index.css')
23
21
 
24
- var mobileStyles = {"content":"modal__content_yw1nl"};
22
+ var mobileStyles = {"content":"modal__content_vl0td"};
25
23
  require('./mobile.css')
26
24
 
27
25
  var Content = function (_a) {
@@ -34,7 +32,7 @@ var Content = function (_a) {
34
32
  _b[styles.withHeader] = hasHeader,
35
33
  _b[desktopStyles[size]] = view === 'desktop' && size,
36
34
  _b[mobileStyles.content] = view === 'mobile',
37
- _b)), ref: contentRef, "data-test-id": getDataTestId.getDataTestId(dataTestId, 'content') }, children));
35
+ _b)), ref: contentRef, "data-test-id": coreComponentsShared.getDataTestId(dataTestId, 'content') }, children));
38
36
  };
39
37
 
40
38
  exports.Content = Content;
@@ -1,4 +1,4 @@
1
- /* hash: 1w9cp */
1
+ /* hash: 10d55 */
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_15gj1,
34
- .modal__m_15gj1,
35
- .modal__l_15gj1,
36
- .modal__xl_15gj1,
37
- .modal__fullscreen_15gj1 {
33
+ } .modal__s_eh7uu,
34
+ .modal__m_eh7uu,
35
+ .modal__l_eh7uu,
36
+ .modal__xl_eh7uu,
37
+ .modal__fullscreen_eh7uu {
38
38
  padding: var(--modal-s-content-paddings)
39
- } .modal__s_15gj1:last-child, .modal__m_15gj1:last-child, .modal__l_15gj1:last-child, .modal__xl_15gj1:last-child, .modal__fullscreen_15gj1:last-child {
39
+ } .modal__s_eh7uu:last-child, .modal__m_eh7uu:last-child, .modal__l_eh7uu:last-child, .modal__xl_eh7uu:last-child, .modal__fullscreen_eh7uu:last-child {
40
40
  padding-bottom: var(--modal-s-content-only-bottom-padding);
41
41
  }
@@ -1,4 +1,4 @@
1
- /* hash: 1ehhv */
1
+ /* hash: ilabg */
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_1ws0z {
30
+ } .modal__content_l807a {
31
31
  position: relative;
32
32
  box-sizing: border-box;
33
33
  width: 100%;
34
34
  z-index: 0
35
- } .modal__content_1ws0z.modal__withHeader_1ws0z {
35
+ } .modal__content_l807a.modal__withHeader_l807a {
36
36
  padding-top: 0;
37
- } .modal__flex_1ws0z {
37
+ } .modal__flex_l807a {
38
38
  flex: 1;
39
39
  }
@@ -1,4 +1,4 @@
1
- /* hash: yi6fv */
1
+ /* hash: 7j6c1 */
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_yw1nl {
31
+ } .modal__content_vl0td {
32
32
  padding: var(--gap-m) var(--gap-m) 0
33
- } .modal__content_yw1nl:last-child {
33
+ } .modal__content_vl0td:last-child {
34
34
  padding-bottom: var(--gap-m);
35
35
  }
@@ -4,25 +4,24 @@ 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-2c8d1d4f.js');
8
- require('@alfalab/hooks');
7
+ var coreComponentsShared = require('@alfalab/core-components-shared');
9
8
  var ResponsiveContext = require('../../ResponsiveContext.js');
10
- var layout_module = require('../../layout.module-61746462.js');
9
+ var layout_module = require('../../layout.module-fffa9cc4.js');
11
10
 
12
11
  function _interopDefaultCompat (e) { return e && typeof e === 'object' && 'default' in e ? e : { default: e }; }
13
12
 
14
13
  var React__default = /*#__PURE__*/_interopDefaultCompat(React);
15
14
  var cn__default = /*#__PURE__*/_interopDefaultCompat(cn);
16
15
 
17
- var styles = {"component":"modal__component_1t3vp"};
16
+ var styles = {"component":"modal__component_ycyjd"};
18
17
  require('./index.css')
19
18
 
20
19
  var Controls = function (_a) {
21
- 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;
22
- var _e = React.useContext(ResponsiveContext.ResponsiveContext), view = _e.view, dataTestId = _e.dataTestId;
20
+ 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;
21
+ var _d = React.useContext(ResponsiveContext.ResponsiveContext), view = _d.view, dataTestId = _d.dataTestId;
23
22
  var layout = view === 'mobile' ? mobileLayout : layoutProp;
24
23
  var shouldReverse = view === 'mobile' && layout !== 'column';
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
+ return (React__default.default.createElement("div", { "data-test-id": coreComponentsShared.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,
26
25
  secondary,
27
26
  primary)) : (React__default.default.createElement(React__default.default.Fragment, null,
28
27
  primary,
@@ -1,4 +1,4 @@
1
- /* hash: d9khk */
2
- .modal__component_1t3vp {
1
+ /* hash: 5gcyu */
2
+ .modal__component_ycyjd {
3
3
  width: 100%;
4
4
  }
@@ -3,12 +3,6 @@
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
5
  var components_controls_Component = require('./Component.js');
6
- require('react');
7
- require('classnames');
8
- require('../../getDataTestId-2c8d1d4f.js');
9
- require('@alfalab/hooks');
10
- require('../../ResponsiveContext.js');
11
- require('../../layout.module-61746462.js');
12
6
 
13
7
 
14
8
 
@@ -4,25 +4,23 @@ 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-2c8d1d4f.js');
8
- require('@alfalab/hooks');
7
+ var coreComponentsShared = require('@alfalab/core-components-shared');
9
8
  var Context = require('../../Context.js');
10
9
  var ResponsiveContext = require('../../ResponsiveContext.js');
11
- var layout_module = require('../../layout.module-61746462.js');
12
- require('@alfalab/core-components-base-modal');
10
+ var layout_module = require('../../layout.module-fffa9cc4.js');
13
11
 
14
12
  function _interopDefaultCompat (e) { return e && typeof e === 'object' && 'default' in e ? e : { default: e }; }
15
13
 
16
14
  var React__default = /*#__PURE__*/_interopDefaultCompat(React);
17
15
  var cn__default = /*#__PURE__*/_interopDefaultCompat(cn);
18
16
 
19
- var desktopStyles = {"footer":"modal__footer_86xrg","sticky":"modal__sticky_86xrg","fullscreen":"modal__fullscreen_86xrg","s":"modal__s_86xrg","m":"modal__m_86xrg","l":"modal__l_86xrg","xl":"modal__xl_86xrg"};
17
+ var desktopStyles = {"footer":"modal__footer_1qs2y","sticky":"modal__sticky_1qs2y","fullscreen":"modal__fullscreen_1qs2y","s":"modal__s_1qs2y","m":"modal__m_1qs2y","l":"modal__l_1qs2y","xl":"modal__xl_1qs2y"};
20
18
  require('./desktop.css')
21
19
 
22
- var styles = {"footer":"modal__footer_1d1m3","sticky":"modal__sticky_1d1m3","highlighted":"modal__highlighted_1d1m3"};
20
+ var styles = {"footer":"modal__footer_1h6cu","sticky":"modal__sticky_1h6cu","highlighted":"modal__highlighted_1h6cu"};
23
21
  require('./index.css')
24
22
 
25
- var mobileStyles = {"footer":"modal__footer_1o4x5","sticky":"modal__sticky_1o4x5"};
23
+ var mobileStyles = {"footer":"modal__footer_juqaa","sticky":"modal__sticky_juqaa"};
26
24
  require('./mobile.css')
27
25
 
28
26
  var Footer = function (_a) {
@@ -33,7 +31,7 @@ var Footer = function (_a) {
33
31
  React.useEffect(function () {
34
32
  setHasFooter(true);
35
33
  }, [setHasFooter]);
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 = {},
34
+ return (React__default.default.createElement("div", { "data-test-id": coreComponentsShared.getDataTestId(dataTestId, 'footer'), className: cn__default.default(styles.footer, className, layout_module.layoutStyles[layout], gap && layout_module.layoutStyles["gap-".concat(gap)], (_b = {},
37
35
  _b[styles.highlighted] = sticky && footerHighlighted,
38
36
  _b[styles.sticky] = sticky,
39
37
  _b[desktopStyles.footer] = view === 'desktop',
@@ -1,4 +1,4 @@
1
- /* hash: 182pi */
1
+ /* hash: eqlak */
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_86xrg {
36
+ } .modal__footer_1qs2y {
37
37
  border-bottom-left-radius: var(--modal-border-radius);
38
38
  border-bottom-right-radius: var(--modal-border-radius);
39
- } .modal__sticky_86xrg {
39
+ } .modal__sticky_1qs2y {
40
40
  bottom: calc(var(--modal-vertical-padding) * -1)
41
- } .modal__sticky_86xrg.modal__fullscreen_86xrg {
41
+ } .modal__sticky_1qs2y.modal__fullscreen_1qs2y {
42
42
  bottom: 0;
43
- } .modal__s_86xrg,
44
- .modal__m_86xrg,
45
- .modal__l_86xrg,
46
- .modal__xl_86xrg,
47
- .modal__fullscreen_86xrg {
43
+ } .modal__s_1qs2y,
44
+ .modal__m_1qs2y,
45
+ .modal__l_1qs2y,
46
+ .modal__xl_1qs2y,
47
+ .modal__fullscreen_1qs2y {
48
48
  padding: var(--modal-s-footer-paddings);
49
49
  }
@@ -1,4 +1,4 @@
1
- /* hash: 1rwxm */
1
+ /* hash: yktex */
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_1d1m3 {
35
+ } .modal__footer_1h6cu {
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_1d1m3 {
39
+ } .modal__sticky_1h6cu {
40
40
  background: var(--modal-footer-background);
41
41
  position: sticky;
42
- } .modal__highlighted_1d1m3 {
42
+ } .modal__highlighted_1h6cu {
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: 1k3rf */
1
+ /* hash: qrn7m */
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_14ay2 {
34
+ } .modal__column_nuz7o {
35
35
  display: flex;
36
36
  flex-direction: column
37
- } .modal__column_14ay2 > *:not(:last-child):not(:only-child) {
37
+ } .modal__column_nuz7o > *:not(:last-child):not(:only-child) {
38
38
  margin-bottom: var(--modal-footer-default-gap);
39
- } .modal__column_14ay2.modal__gap-16_14ay2 > *:not(:last-child):not(:only-child) {
39
+ } .modal__column_nuz7o.modal__gap-16_nuz7o > *:not(:last-child):not(:only-child) {
40
40
  margin-bottom: var(--gap-m);
41
- } .modal__column_14ay2.modal__gap-24_14ay2 > *:not(:last-child):not(:only-child) {
41
+ } .modal__column_nuz7o.modal__gap-24_nuz7o > *:not(:last-child):not(:only-child) {
42
42
  margin-bottom: var(--gap-xl);
43
- } .modal__column_14ay2.modal__gap-32_14ay2 > *:not(:last-child):not(:only-child) {
43
+ } .modal__column_nuz7o.modal__gap-32_nuz7o > *:not(:last-child):not(:only-child) {
44
44
  margin-bottom: var(--gap-2xl);
45
- } .modal__start_14ay2 {
45
+ } .modal__start_nuz7o {
46
46
  justify-content: flex-start;
47
- } .modal__center_14ay2 {
47
+ } .modal__center_nuz7o {
48
48
  justify-content: center;
49
- } .modal__space-between_14ay2 {
49
+ } .modal__space-between_nuz7o {
50
50
  justify-content: space-between
51
- } .modal__space-between_14ay2 > * {
51
+ } .modal__space-between_nuz7o > * {
52
52
  flex: 1;
53
- } .modal__start_14ay2,
54
- .modal__center_14ay2,
55
- .modal__space-between_14ay2 {
53
+ } .modal__start_nuz7o,
54
+ .modal__center_nuz7o,
55
+ .modal__space-between_nuz7o {
56
56
  display: flex
57
- } .modal__start_14ay2 > *:not(:last-child):not(:only-child), .modal__center_14ay2 > *:not(:last-child):not(:only-child), .modal__space-between_14ay2 > *:not(:last-child):not(:only-child) {
57
+ } .modal__start_nuz7o > *:not(:last-child):not(:only-child), .modal__center_nuz7o > *:not(:last-child):not(:only-child), .modal__space-between_nuz7o > *:not(:last-child):not(:only-child) {
58
58
  margin-right: var(--modal-footer-default-gap);
59
- } .modal__start_14ay2.modal__gap-16_14ay2 > *:not(:last-child):not(:only-child), .modal__center_14ay2.modal__gap-16_14ay2 > *:not(:last-child):not(:only-child), .modal__space-between_14ay2.modal__gap-16_14ay2 > *:not(:last-child):not(:only-child) {
59
+ } .modal__start_nuz7o.modal__gap-16_nuz7o > *:not(:last-child):not(:only-child), .modal__center_nuz7o.modal__gap-16_nuz7o > *:not(:last-child):not(:only-child), .modal__space-between_nuz7o.modal__gap-16_nuz7o > *:not(:last-child):not(:only-child) {
60
60
  margin-right: var(--gap-m);
61
- } .modal__start_14ay2.modal__gap-24_14ay2 > *:not(:last-child):not(:only-child), .modal__center_14ay2.modal__gap-24_14ay2 > *:not(:last-child):not(:only-child), .modal__space-between_14ay2.modal__gap-24_14ay2 > *:not(:last-child):not(:only-child) {
61
+ } .modal__start_nuz7o.modal__gap-24_nuz7o > *:not(:last-child):not(:only-child), .modal__center_nuz7o.modal__gap-24_nuz7o > *:not(:last-child):not(:only-child), .modal__space-between_nuz7o.modal__gap-24_nuz7o > *:not(:last-child):not(:only-child) {
62
62
  margin-right: var(--gap-xl);
63
- } .modal__start_14ay2.modal__gap-32_14ay2 > *:not(:last-child):not(:only-child), .modal__center_14ay2.modal__gap-32_14ay2 > *:not(:last-child):not(:only-child), .modal__space-between_14ay2.modal__gap-32_14ay2 > *:not(:last-child):not(:only-child) {
63
+ } .modal__start_nuz7o.modal__gap-32_nuz7o > *:not(:last-child):not(:only-child), .modal__center_nuz7o.modal__gap-32_nuz7o > *:not(:last-child):not(:only-child), .modal__space-between_nuz7o.modal__gap-32_nuz7o > *:not(:last-child):not(:only-child) {
64
64
  margin-right: var(--gap-2xl);
65
65
  }
@@ -1,4 +1,4 @@
1
- /* hash: dyvc4 */
1
+ /* hash: 8vrxr */
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_1o4x5 {
31
+ } .modal__footer_juqaa {
32
32
  padding: var(--gap-m);
33
- } .modal__sticky_1o4x5 {
33
+ } .modal__sticky_juqaa {
34
34
  bottom: 0;
35
35
  }
@@ -6,24 +6,22 @@ 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-2c8d1d4f.js');
10
- require('@alfalab/hooks');
9
+ var coreComponentsShared = require('@alfalab/core-components-shared');
11
10
  var Context = require('../../Context.js');
12
11
  var ResponsiveContext = require('../../ResponsiveContext.js');
13
- require('@alfalab/core-components-base-modal');
14
12
 
15
13
  function _interopDefaultCompat (e) { return e && typeof e === 'object' && 'default' in e ? e : { default: e }; }
16
14
 
17
15
  var React__default = /*#__PURE__*/_interopDefaultCompat(React);
18
16
  var cn__default = /*#__PURE__*/_interopDefaultCompat(cn);
19
17
 
20
- var desktopStyles = {"header":"modal__header_d2h5p","content":"modal__content_d2h5p","s":"modal__s_d2h5p","m":"modal__m_d2h5p","l":"modal__l_d2h5p","xl":"modal__xl_d2h5p","fullscreen":"modal__fullscreen_d2h5p","sticky":"modal__sticky_d2h5p"};
18
+ var desktopStyles = {"header":"modal__header_n1kpp","content":"modal__content_n1kpp","s":"modal__s_n1kpp","m":"modal__m_n1kpp","l":"modal__l_n1kpp","xl":"modal__xl_n1kpp","fullscreen":"modal__fullscreen_n1kpp","sticky":"modal__sticky_n1kpp"};
21
19
  require('./desktop.css')
22
20
 
23
- var styles = {"highlighted":"modal__highlighted_1xf78","sticky":"modal__sticky_1xf78","hasContent":"modal__hasContent_1xf78"};
21
+ var styles = {"highlighted":"modal__highlighted_sxwc6","sticky":"modal__sticky_sxwc6","hasContent":"modal__hasContent_sxwc6"};
24
22
  require('./index.css')
25
23
 
26
- var mobileStyles = {"header":"modal__header_11vwf","sticky":"modal__sticky_11vwf","content":"modal__content_11vwf"};
24
+ var mobileStyles = {"header":"modal__header_ri5oc","sticky":"modal__sticky_ri5oc","content":"modal__content_ri5oc"};
27
25
  require('./mobile.css')
28
26
 
29
27
  var Header = function (_a) {
@@ -35,7 +33,7 @@ var Header = function (_a) {
35
33
  setHasHeader(true);
36
34
  }, [setHasHeader]);
37
35
  var hasContent = Boolean(title || children);
38
- return (React__default.default.createElement(coreComponentsNavigationBar.NavigationBar, tslib.__assign({}, restProps, { dataTestId: getDataTestId.getDataTestId(dataTestId, 'header'), scrollableParentRef: parentRef, hasCloser: hasCloser, sticky: sticky, view: view, title: title, onClose: onClose, className: cn__default.default(className, (_b = {},
36
+ return (React__default.default.createElement(coreComponentsNavigationBar.NavigationBar, tslib.__assign({ dataTestId: coreComponentsShared.getDataTestId(dataTestId, 'header') }, restProps, { scrollableParentRef: parentRef, hasCloser: hasCloser, sticky: sticky, view: view, title: title, onClose: onClose, className: cn__default.default(className, (_b = {},
39
37
  _b[styles.highlighted] = hasContent && sticky && headerHighlighted,
40
38
  _b[styles.sticky] = sticky,
41
39
  _b[styles.hasContent] = hasContent,
@@ -1,4 +1,4 @@
1
- /* hash: 1oz74 */
1
+ /* hash: 1eyw9 */
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_d2h5p {
47
+ } .modal__header_n1kpp {
48
48
  border-top-left-radius: var(--modal-border-radius);
49
49
  border-top-right-radius: var(--modal-border-radius);
50
- } .modal__content_d2h5p {
50
+ } .modal__content_n1kpp {
51
51
  font-weight: var(--modal-header-desktop-font-weight);
52
52
  font-family: var(--modal-header-desktop-font-family);
53
- } .modal__s_d2h5p .modal__content_d2h5p,
54
- .modal__m_d2h5p .modal__content_d2h5p {
53
+ } .modal__s_n1kpp .modal__content_n1kpp,
54
+ .modal__m_n1kpp .modal__content_n1kpp {
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_d2h5p .modal__content_d2h5p,
59
- .modal__xl_d2h5p .modal__content_d2h5p,
60
- .modal__fullscreen_d2h5p .modal__content_d2h5p {
58
+ } .modal__l_n1kpp .modal__content_n1kpp,
59
+ .modal__xl_n1kpp .modal__content_n1kpp,
60
+ .modal__fullscreen_n1kpp .modal__content_n1kpp {
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_d2h5p,
65
- .modal__m_d2h5p,
66
- .modal__l_d2h5p,
67
- .modal__xl_d2h5p,
68
- .modal__fullscreen_d2h5p {
64
+ } .modal__s_n1kpp,
65
+ .modal__m_n1kpp,
66
+ .modal__l_n1kpp,
67
+ .modal__xl_n1kpp,
68
+ .modal__fullscreen_n1kpp {
69
69
  padding: var(--modal-s-header-paddings);
70
- } .modal__sticky_d2h5p {
70
+ } .modal__sticky_n1kpp {
71
71
  top: calc(var(--modal-vertical-padding) * -1)
72
- } .modal__sticky_d2h5p.modal__fullscreen_d2h5p {
72
+ } .modal__sticky_n1kpp.modal__fullscreen_n1kpp {
73
73
  top: 0;
74
74
  }
@@ -1,4 +1,4 @@
1
- /* hash: dz19m */
1
+ /* hash: 3yqex */
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_1xf78 {
35
+ } .modal__highlighted_sxwc6 {
36
36
  background: var(--modal-header-highlight-background);
37
37
  box-shadow: var(--modal-header-highlight-box-shadow);
38
- } .modal__sticky_1xf78 {
38
+ } .modal__sticky_sxwc6 {
39
39
  position: sticky;
40
40
  z-index: 1
41
- } .modal__sticky_1xf78.modal__hasContent_1xf78 {
41
+ } .modal__sticky_sxwc6.modal__hasContent_sxwc6 {
42
42
  background: var(--modal-header-background);
43
43
  }
@@ -1,4 +1,4 @@
1
- /* hash: 13jrr */
1
+ /* hash: ygodb */
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_11vwf {
41
+ } .modal__header_ri5oc {
42
42
  padding: var(--modal-header-mobile-paddings);
43
- } .modal__sticky_11vwf {
43
+ } .modal__sticky_ri5oc {
44
44
  top: 0;
45
- } .modal__content_11vwf {
45
+ } .modal__content_ri5oc {
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);
@@ -10,28 +10,6 @@ var components_controls_Component = require('./components/controls/Component.js'
10
10
  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
- require('classnames');
14
- require('./getDataTestId-5c876d98.js');
15
- require('@alfalab/hooks');
16
- require('./Context.js');
17
- require('@alfalab/core-components-base-modal/cssm');
18
- require('./ResponsiveContext.js');
19
- require('./components/content/desktop.module.css');
20
- require('./components/content/index.module.css');
21
- require('./components/content/mobile.module.css');
22
- require('./components/footer/layout.module.css');
23
- require('./components/controls/index.module.css');
24
- require('./components/footer/desktop.module.css');
25
- require('./components/footer/index.module.css');
26
- require('./components/footer/mobile.module.css');
27
- require('@alfalab/core-components-navigation-bar/cssm');
28
- require('./components/header/desktop.module.css');
29
- require('./components/header/index.module.css');
30
- require('./components/header/mobile.module.css');
31
- require('react-merge-refs');
32
- require('./desktop/desktop.module.css');
33
- require('./mobile/mobile.module.css');
34
- require('./transitions.module.css');
35
13
 
36
14
  function _interopDefaultCompat (e) { return e && typeof e === 'object' && 'default' in e ? e : { default: e }; }
37
15
 
@@ -4,14 +4,12 @@ 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-5c876d98.js');
8
- require('@alfalab/hooks');
7
+ var coreComponentsShared = require('@alfalab/core-components-shared/cssm');
9
8
  var Context = require('../../Context.js');
10
9
  var ResponsiveContext = require('../../ResponsiveContext.js');
11
10
  var desktopStyles = require('./desktop.module.css');
12
11
  var styles = require('./index.module.css');
13
12
  var mobileStyles = require('./mobile.module.css');
14
- require('@alfalab/core-components-base-modal/cssm');
15
13
 
16
14
  function _interopDefaultCompat (e) { return e && typeof e === 'object' && 'default' in e ? e : { default: e }; }
17
15
 
@@ -31,7 +29,7 @@ var Content = function (_a) {
31
29
  _b[styles__default.default.withHeader] = hasHeader,
32
30
  _b[desktopStyles__default.default[size]] = view === 'desktop' && size,
33
31
  _b[mobileStyles__default.default.content] = view === 'mobile',
34
- _b)), ref: contentRef, "data-test-id": getDataTestId.getDataTestId(dataTestId, 'content') }, children));
32
+ _b)), ref: contentRef, "data-test-id": coreComponentsShared.getDataTestId(dataTestId, 'content') }, children));
35
33
  };
36
34
 
37
35
  exports.Content = Content;
@@ -4,8 +4,7 @@ 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-5c876d98.js');
8
- require('@alfalab/hooks');
7
+ var coreComponentsShared = require('@alfalab/core-components-shared/cssm');
9
8
  var ResponsiveContext = require('../../ResponsiveContext.js');
10
9
  var layoutStyles = require('../footer/layout.module.css');
11
10
  var styles = require('./index.module.css');
@@ -18,11 +17,11 @@ var layoutStyles__default = /*#__PURE__*/_interopDefaultCompat(layoutStyles);
18
17
  var styles__default = /*#__PURE__*/_interopDefaultCompat(styles);
19
18
 
20
19
  var Controls = function (_a) {
21
- 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;
22
- var _e = React.useContext(ResponsiveContext.ResponsiveContext), view = _e.view, dataTestId = _e.dataTestId;
20
+ 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;
21
+ var _d = React.useContext(ResponsiveContext.ResponsiveContext), view = _d.view, dataTestId = _d.dataTestId;
23
22
  var layout = view === 'mobile' ? mobileLayout : layoutProp;
24
23
  var shouldReverse = view === 'mobile' && layout !== 'column';
25
- return (React__default.default.createElement("div", { "data-test-id": getDataTestId.getDataTestId(dataTestId, 'controls'), className: cn__default.default(styles__default.default.component, layoutStyles__default.default[layout], gap && layoutStyles__default.default["gap-".concat(gap)]) }, shouldReverse ? (React__default.default.createElement(React__default.default.Fragment, null,
24
+ return (React__default.default.createElement("div", { "data-test-id": coreComponentsShared.getDataTestId(dataTestId, 'controls'), className: cn__default.default(styles__default.default.component, layoutStyles__default.default[layout], gap && layoutStyles__default.default["gap-".concat(gap)]) }, shouldReverse ? (React__default.default.createElement(React__default.default.Fragment, null,
26
25
  secondary,
27
26
  primary)) : (React__default.default.createElement(React__default.default.Fragment, null,
28
27
  primary,