@alfalab/core-components-modal 9.1.2 → 9.2.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 (120) hide show
  1. package/Component.d.ts +1 -1
  2. package/Component.js +6 -5
  3. package/Component.responsive.d.ts +1 -1
  4. package/ResponsiveContext.js +1 -1
  5. package/components/content/Component.js +5 -4
  6. package/components/content/desktop.css +8 -8
  7. package/components/content/index.css +5 -5
  8. package/components/content/mobile.css +4 -4
  9. package/components/controls/Component.js +2 -2
  10. package/components/controls/index.css +2 -2
  11. package/components/footer/Component.js +6 -5
  12. package/components/footer/desktop.css +10 -10
  13. package/components/footer/index.css +5 -5
  14. package/components/footer/layout.css +18 -18
  15. package/components/footer/mobile.css +4 -4
  16. package/components/header/Component.js +5 -4
  17. package/components/header/desktop.css +16 -16
  18. package/components/header/index.css +5 -5
  19. package/components/header/mobile.css +5 -5
  20. package/consts.d.ts +12 -0
  21. package/consts.js +17 -0
  22. package/cssm/Component.d.ts +1 -1
  23. package/cssm/Component.js +3 -2
  24. package/cssm/Component.responsive.d.ts +1 -1
  25. package/cssm/ResponsiveContext.js +1 -1
  26. package/cssm/components/content/Component.js +2 -1
  27. package/cssm/components/content/desktop.module.css +6 -6
  28. package/cssm/components/content/index.module.css +1 -1
  29. package/cssm/components/content/mobile.module.css +1 -1
  30. package/cssm/components/footer/Component.js +2 -1
  31. package/cssm/components/footer/desktop.module.css +5 -5
  32. package/cssm/components/footer/index.module.css +1 -1
  33. package/cssm/components/footer/layout.module.css +1 -1
  34. package/cssm/components/footer/mobile.module.css +1 -1
  35. package/cssm/components/header/Component.js +2 -1
  36. package/cssm/components/header/desktop.module.css +9 -9
  37. package/cssm/components/header/index.module.css +1 -1
  38. package/cssm/components/header/mobile.module.css +1 -1
  39. package/cssm/consts.d.ts +12 -0
  40. package/cssm/consts.js +17 -0
  41. package/cssm/desktop/Component.desktop.d.ts +1 -1
  42. package/cssm/desktop/desktop.module.css +5 -5
  43. package/cssm/mobile/mobile.module.css +1 -1
  44. package/cssm/typings.d.ts +3 -2
  45. package/cssm/vars.css +1 -1
  46. package/desktop/Component.desktop.d.ts +1 -1
  47. package/desktop/desktop.css +10 -10
  48. package/esm/Component.d.ts +1 -1
  49. package/esm/Component.js +6 -5
  50. package/esm/Component.responsive.d.ts +1 -1
  51. package/esm/ResponsiveContext.js +1 -1
  52. package/esm/components/content/Component.js +5 -4
  53. package/esm/components/content/desktop.css +8 -8
  54. package/esm/components/content/index.css +5 -5
  55. package/esm/components/content/mobile.css +4 -4
  56. package/esm/components/controls/Component.js +2 -2
  57. package/esm/components/controls/index.css +2 -2
  58. package/esm/components/footer/Component.js +6 -5
  59. package/esm/components/footer/desktop.css +10 -10
  60. package/esm/components/footer/index.css +5 -5
  61. package/esm/components/footer/layout.css +18 -18
  62. package/esm/components/footer/mobile.css +4 -4
  63. package/esm/components/header/Component.js +5 -4
  64. package/esm/components/header/desktop.css +16 -16
  65. package/esm/components/header/index.css +5 -5
  66. package/esm/components/header/mobile.css +5 -5
  67. package/esm/consts.d.ts +12 -0
  68. package/esm/consts.js +13 -0
  69. package/esm/desktop/Component.desktop.d.ts +1 -1
  70. package/esm/desktop/desktop.css +10 -10
  71. package/esm/layout.module-a1fa9754.js +4 -0
  72. package/esm/mobile/mobile.css +3 -3
  73. package/esm/transitions.css +8 -8
  74. package/esm/typings.d.ts +3 -2
  75. package/layout.module-fe843796.js +6 -0
  76. package/mobile/mobile.css +3 -3
  77. package/modern/Component.d.ts +1 -1
  78. package/modern/Component.js +6 -5
  79. package/modern/Component.responsive.d.ts +1 -1
  80. package/modern/ResponsiveContext.js +1 -1
  81. package/modern/components/content/Component.js +5 -4
  82. package/modern/components/content/desktop.css +8 -8
  83. package/modern/components/content/index.css +5 -5
  84. package/modern/components/content/mobile.css +4 -4
  85. package/modern/components/controls/Component.js +2 -2
  86. package/modern/components/controls/index.css +2 -2
  87. package/modern/components/footer/Component.js +6 -5
  88. package/modern/components/footer/desktop.css +10 -10
  89. package/modern/components/footer/index.css +5 -5
  90. package/modern/components/footer/layout.css +18 -18
  91. package/modern/components/footer/mobile.css +4 -4
  92. package/modern/components/header/Component.js +5 -4
  93. package/modern/components/header/desktop.css +16 -16
  94. package/modern/components/header/index.css +5 -5
  95. package/modern/components/header/mobile.css +5 -5
  96. package/modern/consts.d.ts +12 -0
  97. package/modern/consts.js +13 -0
  98. package/modern/desktop/Component.desktop.d.ts +1 -1
  99. package/modern/desktop/desktop.css +10 -10
  100. package/modern/layout.module-6ffd48ba.js +4 -0
  101. package/modern/mobile/mobile.css +3 -3
  102. package/modern/transitions.css +8 -8
  103. package/modern/typings.d.ts +3 -2
  104. package/package.json +2 -2
  105. package/src/Component.tsx +3 -2
  106. package/src/ResponsiveContext.tsx +1 -1
  107. package/src/components/content/Component.tsx +2 -1
  108. package/src/components/content/desktop.module.css +4 -4
  109. package/src/components/footer/Component.tsx +2 -1
  110. package/src/components/footer/desktop.module.css +4 -4
  111. package/src/components/header/Component.tsx +2 -1
  112. package/src/components/header/desktop.module.css +8 -8
  113. package/src/consts.ts +11 -0
  114. package/src/desktop/desktop.module.css +4 -4
  115. package/src/typings.ts +3 -2
  116. package/transitions.css +8 -8
  117. package/typings.d.ts +3 -2
  118. package/esm/layout.module-18d2351f.js +0 -4
  119. package/layout.module-fd9ac366.js +0 -6
  120. package/modern/layout.module-8196cddb.js +0 -4
package/Component.d.ts CHANGED
@@ -2,7 +2,7 @@
2
2
  import React from 'react';
3
3
  import { View } from "./typings";
4
4
  declare const Modal: React.ForwardRefExoticComponent<import("@alfalab/core-components-base-modal").BaseModalProps & {
5
- size?: "s" | "m" | "l" | "xl" | "fullscreen" | undefined;
5
+ size?: "s" | "m" | "l" | "xl" | "fullscreen" | 500 | 600 | 800 | 1140 | undefined;
6
6
  fullscreen?: boolean | undefined;
7
7
  fixedPosition?: boolean | undefined;
8
8
  hasCloser?: boolean | undefined;
package/Component.js CHANGED
@@ -7,6 +7,7 @@ var React = require('react');
7
7
  var mergeRefs = require('react-merge-refs');
8
8
  var cn = require('classnames');
9
9
  var coreComponentsBaseModal = require('@alfalab/core-components-base-modal');
10
+ var consts = require('./consts.js');
10
11
  var ResponsiveContext = require('./ResponsiveContext.js');
11
12
 
12
13
  function _interopDefaultCompat (e) { return e && typeof e === 'object' && 'default' in e ? e : { default: e }; }
@@ -15,18 +16,18 @@ var React__default = /*#__PURE__*/_interopDefaultCompat(React);
15
16
  var mergeRefs__default = /*#__PURE__*/_interopDefaultCompat(mergeRefs);
16
17
  var cn__default = /*#__PURE__*/_interopDefaultCompat(cn);
17
18
 
18
- var desktopStyles = {"wrapper":"modal__wrapper_1m94n","component":"modal__component_1m94n","fullscreen":"modal__fullscreen_1m94n","s":"modal__s_1m94n","m":"modal__m_1m94n","l":"modal__l_1m94n","xl":"modal__xl_1m94n"};
19
+ var desktopStyles = {"wrapper":"modal__wrapper_ll7xa","component":"modal__component_ll7xa","fullscreen":"modal__fullscreen_ll7xa","size-500":"modal__size-500_ll7xa","size-600":"modal__size-600_ll7xa","size-800":"modal__size-800_ll7xa","size-1140":"modal__size-1140_ll7xa"};
19
20
  require('./desktop/desktop.css')
20
21
 
21
- var mobileStyles = {"component":"modal__component_mug7j"};
22
+ var mobileStyles = {"component":"modal__component_1rwpn"};
22
23
  require('./mobile/mobile.css')
23
24
 
24
- var transitions = {"appear":"modal__appear_5m9j3","enter":"modal__enter_5m9j3","appearActive":"modal__appearActive_5m9j3","enterActive":"modal__enterActive_5m9j3","exit":"modal__exit_5m9j3","exitActive":"modal__exitActive_5m9j3","exitDone":"modal__exitDone_5m9j3"};
25
+ var transitions = {"appear":"modal__appear_f0ejj","enter":"modal__enter_f0ejj","appearActive":"modal__appearActive_f0ejj","enterActive":"modal__enterActive_f0ejj","exit":"modal__exit_f0ejj","exitActive":"modal__exitActive_f0ejj","exitDone":"modal__exitDone_f0ejj"};
25
26
  require('./transitions.css')
26
27
 
27
28
  var Modal = React.forwardRef(function (_a, ref) {
28
29
  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, dataTestId = _a.dataTestId, restProps = tslib.__rest(_a, ["size", "fixedPosition", "fullscreen", "children", "className", "wrapperClassName", "transitionProps", "view", "dataTestId"]);
30
+ var _c = _a.size, size = _c === void 0 ? 500 : _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
31
  // TODO: удалить, после удаления пропсы fullscreen
31
32
  var componentSize = fullscreen ? 'fullscreen' : size;
32
33
  var modalRef = React.useRef(null);
@@ -48,7 +49,7 @@ var Modal = React.forwardRef(function (_a, ref) {
48
49
  wrapperClassName: cn__default.default(desktopStyles.wrapper, wrapperClassName, (_b = {},
49
50
  _b[desktopStyles.fullscreen] = componentSize === 'fullscreen',
50
51
  _b)),
51
- className: cn__default.default(desktopStyles.component, className, desktopStyles[componentSize]),
52
+ className: cn__default.default(desktopStyles.component, className, desktopStyles[consts.SIZE_TO_CLASSNAME_MAP[componentSize]]),
52
53
  backdropProps: tslib.__assign({ invisible: componentSize === 'fullscreen' }, restProps.backdropProps),
53
54
  transitionProps: tslib.__assign(tslib.__assign({ classNames: transitions }, transitionProps), { onEntered: handleEntered }),
54
55
  }
@@ -1,7 +1,7 @@
1
1
  /// <reference types="react" />
2
2
  import React from 'react';
3
3
  declare const ModalResponsive: React.ForwardRefExoticComponent<import("@alfalab/core-components-base-modal").BaseModalProps & {
4
- size?: "s" | "m" | "l" | "xl" | "fullscreen" | undefined;
4
+ size?: "s" | "m" | "l" | "xl" | "fullscreen" | 500 | 600 | 800 | 1140 | undefined;
5
5
  fullscreen?: boolean | undefined;
6
6
  fixedPosition?: boolean | undefined;
7
7
  hasCloser?: boolean | undefined;
@@ -10,7 +10,7 @@ var React__default = /*#__PURE__*/_interopDefaultCompat(React);
10
10
 
11
11
  var ResponsiveContext = React__default.default.createContext({
12
12
  view: 'desktop',
13
- size: 's',
13
+ size: 500,
14
14
  });
15
15
 
16
16
  exports.ResponsiveContext = ResponsiveContext;
@@ -5,6 +5,7 @@ Object.defineProperty(exports, '__esModule', { value: true });
5
5
  var React = require('react');
6
6
  var cn = require('classnames');
7
7
  var coreComponentsShared = require('@alfalab/core-components-shared');
8
+ var consts = require('../../consts.js');
8
9
  var Context = require('../../Context.js');
9
10
  var ResponsiveContext = require('../../ResponsiveContext.js');
10
11
 
@@ -13,13 +14,13 @@ function _interopDefaultCompat (e) { return e && typeof e === 'object' && 'defau
13
14
  var React__default = /*#__PURE__*/_interopDefaultCompat(React);
14
15
  var cn__default = /*#__PURE__*/_interopDefaultCompat(cn);
15
16
 
16
- var desktopStyles = {"s":"modal__s_1mjwu","m":"modal__m_1mjwu","l":"modal__l_1mjwu","xl":"modal__xl_1mjwu","fullscreen":"modal__fullscreen_1mjwu"};
17
+ var desktopStyles = {"size-500":"modal__size-500_sl27z","size-600":"modal__size-600_sl27z","size-800":"modal__size-800_sl27z","size-1140":"modal__size-1140_sl27z","fullscreen":"modal__fullscreen_sl27z"};
17
18
  require('./desktop.css')
18
19
 
19
- var styles = {"content":"modal__content_1tap6","withHeader":"modal__withHeader_1tap6","flex":"modal__flex_1tap6"};
20
+ var styles = {"content":"modal__content_1jwk6","withHeader":"modal__withHeader_1jwk6","flex":"modal__flex_1jwk6"};
20
21
  require('./index.css')
21
22
 
22
- var mobileStyles = {"content":"modal__content_w90gx"};
23
+ var mobileStyles = {"content":"modal__content_1um7s"};
23
24
  require('./mobile.css')
24
25
 
25
26
  var Content = function (_a) {
@@ -30,7 +31,7 @@ var Content = function (_a) {
30
31
  return (React__default.default.createElement("div", { className: cn__default.default(styles.content, className, (_b = {},
31
32
  _b[styles.flex] = flex,
32
33
  _b[styles.withHeader] = hasHeader,
33
- _b[desktopStyles[size]] = view === 'desktop' && size,
34
+ _b[desktopStyles[consts.SIZE_TO_CLASSNAME_MAP[size]]] = view === 'desktop' && size,
34
35
  _b[mobileStyles.content] = view === 'mobile',
35
36
  _b)), ref: contentRef, "data-test-id": coreComponentsShared.getDataTestId(dataTestId, 'content') }, children));
36
37
  };
@@ -1,5 +1,5 @@
1
- /* hash: mkh5r */
2
- :root {
1
+ /* hash: vugqw */
2
+ :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 */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */
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 */
5
5
  } :root {
@@ -30,12 +30,12 @@
30
30
  /* mobile */
31
31
 
32
32
  /* paddings */
33
- } .modal__s_1mjwu,
34
- .modal__m_1mjwu,
35
- .modal__l_1mjwu,
36
- .modal__xl_1mjwu,
37
- .modal__fullscreen_1mjwu {
33
+ } .modal__size-500_sl27z,
34
+ .modal__size-600_sl27z,
35
+ .modal__size-800_sl27z,
36
+ .modal__size-1140_sl27z,
37
+ .modal__fullscreen_sl27z {
38
38
  padding: var(--modal-s-content-paddings)
39
- } .modal__s_1mjwu:last-child, .modal__m_1mjwu:last-child, .modal__l_1mjwu:last-child, .modal__xl_1mjwu:last-child, .modal__fullscreen_1mjwu:last-child {
39
+ } .modal__size-500_sl27z:last-child, .modal__size-600_sl27z:last-child, .modal__size-800_sl27z:last-child, .modal__size-1140_sl27z:last-child, .modal__fullscreen_sl27z:last-child {
40
40
  padding-bottom: var(--modal-s-content-only-bottom-padding);
41
41
  }
@@ -1,5 +1,5 @@
1
- /* hash: 4smbj */
2
- :root {
1
+ /* hash: e2lwo */
2
+ :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 */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */
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 */
5
5
  } :root {
@@ -27,13 +27,13 @@
27
27
  /* mobile */
28
28
 
29
29
  /* paddings */
30
- } .modal__content_1tap6 {
30
+ } .modal__content_1jwk6 {
31
31
  position: relative;
32
32
  box-sizing: border-box;
33
33
  width: 100%;
34
34
  z-index: 0
35
- } .modal__content_1tap6.modal__withHeader_1tap6 {
35
+ } .modal__content_1jwk6.modal__withHeader_1jwk6 {
36
36
  padding-top: 0;
37
- } .modal__flex_1tap6 {
37
+ } .modal__flex_1jwk6 {
38
38
  flex: 1;
39
39
  }
@@ -1,5 +1,5 @@
1
- /* hash: 1fytn */
2
- :root {
1
+ /* hash: zm859 */
2
+ :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 */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */
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 */
5
5
  } :root {
@@ -28,8 +28,8 @@
28
28
  /* mobile */
29
29
 
30
30
  /* paddings */
31
- } .modal__content_w90gx {
31
+ } .modal__content_1um7s {
32
32
  padding: var(--gap-m) var(--gap-m) 0
33
- } .modal__content_w90gx:last-child {
33
+ } .modal__content_1um7s:last-child {
34
34
  padding-bottom: var(--gap-m);
35
35
  }
@@ -6,14 +6,14 @@ var React = require('react');
6
6
  var cn = require('classnames');
7
7
  var coreComponentsShared = require('@alfalab/core-components-shared');
8
8
  var ResponsiveContext = require('../../ResponsiveContext.js');
9
- var layout_module = require('../../layout.module-fd9ac366.js');
9
+ var layout_module = require('../../layout.module-fe843796.js');
10
10
 
11
11
  function _interopDefaultCompat (e) { return e && typeof e === 'object' && 'default' in e ? e : { default: e }; }
12
12
 
13
13
  var React__default = /*#__PURE__*/_interopDefaultCompat(React);
14
14
  var cn__default = /*#__PURE__*/_interopDefaultCompat(cn);
15
15
 
16
- var styles = {"component":"modal__component_xoyvt"};
16
+ var styles = {"component":"modal__component_1ds60"};
17
17
  require('./index.css')
18
18
 
19
19
  var Controls = function (_a) {
@@ -1,4 +1,4 @@
1
- /* hash: 1hxqe */
2
- .modal__component_xoyvt {
1
+ /* hash: 1fdy2 */
2
+ .modal__component_1ds60 {
3
3
  width: 100%;
4
4
  }
@@ -5,22 +5,23 @@ Object.defineProperty(exports, '__esModule', { value: true });
5
5
  var React = require('react');
6
6
  var cn = require('classnames');
7
7
  var coreComponentsShared = require('@alfalab/core-components-shared');
8
+ var consts = require('../../consts.js');
8
9
  var Context = require('../../Context.js');
9
10
  var ResponsiveContext = require('../../ResponsiveContext.js');
10
- var layout_module = require('../../layout.module-fd9ac366.js');
11
+ var layout_module = require('../../layout.module-fe843796.js');
11
12
 
12
13
  function _interopDefaultCompat (e) { return e && typeof e === 'object' && 'default' in e ? e : { default: e }; }
13
14
 
14
15
  var React__default = /*#__PURE__*/_interopDefaultCompat(React);
15
16
  var cn__default = /*#__PURE__*/_interopDefaultCompat(cn);
16
17
 
17
- var desktopStyles = {"footer":"modal__footer_l42dv","sticky":"modal__sticky_l42dv","fullscreen":"modal__fullscreen_l42dv","s":"modal__s_l42dv","m":"modal__m_l42dv","l":"modal__l_l42dv","xl":"modal__xl_l42dv"};
18
+ var desktopStyles = {"footer":"modal__footer_bpxdf","sticky":"modal__sticky_bpxdf","fullscreen":"modal__fullscreen_bpxdf","size-500":"modal__size-500_bpxdf","size-600":"modal__size-600_bpxdf","size-800":"modal__size-800_bpxdf","size-1140":"modal__size-1140_bpxdf"};
18
19
  require('./desktop.css')
19
20
 
20
- var styles = {"footer":"modal__footer_bic9i","sticky":"modal__sticky_bic9i","highlighted":"modal__highlighted_bic9i"};
21
+ var styles = {"footer":"modal__footer_1gklo","sticky":"modal__sticky_1gklo","highlighted":"modal__highlighted_1gklo"};
21
22
  require('./index.css')
22
23
 
23
- var mobileStyles = {"footer":"modal__footer_x2f2b","sticky":"modal__sticky_x2f2b"};
24
+ var mobileStyles = {"footer":"modal__footer_gz7y4","sticky":"modal__sticky_gz7y4"};
24
25
  require('./mobile.css')
25
26
 
26
27
  var Footer = function (_a) {
@@ -36,7 +37,7 @@ var Footer = function (_a) {
36
37
  _b[styles.sticky] = sticky,
37
38
  _b[desktopStyles.footer] = view === 'desktop',
38
39
  _b[desktopStyles.sticky] = view === 'desktop' && sticky,
39
- _b[desktopStyles[size]] = view === 'desktop',
40
+ _b[desktopStyles[consts.SIZE_TO_CLASSNAME_MAP[size]]] = view === 'desktop',
40
41
  _b[mobileStyles.footer] = view === 'mobile',
41
42
  _b[mobileStyles.sticky] = view === 'mobile' && sticky,
42
43
  _b)) }, children));
@@ -1,5 +1,5 @@
1
- /* hash: 1xey0 */
2
- :root {
1
+ /* hash: 1nd48 */
2
+ :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 */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */
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 */
5
5
  } :root {
@@ -33,17 +33,17 @@
33
33
  /* mobile */
34
34
 
35
35
  /* paddings */
36
- } .modal__footer_l42dv {
36
+ } .modal__footer_bpxdf {
37
37
  border-bottom-left-radius: var(--modal-border-radius);
38
38
  border-bottom-right-radius: var(--modal-border-radius);
39
- } .modal__sticky_l42dv {
39
+ } .modal__sticky_bpxdf {
40
40
  bottom: calc(var(--modal-vertical-padding) * -1)
41
- } .modal__sticky_l42dv.modal__fullscreen_l42dv {
41
+ } .modal__sticky_bpxdf.modal__fullscreen_bpxdf {
42
42
  bottom: 0;
43
- } .modal__s_l42dv,
44
- .modal__m_l42dv,
45
- .modal__l_l42dv,
46
- .modal__xl_l42dv,
47
- .modal__fullscreen_l42dv {
43
+ } .modal__size-500_bpxdf,
44
+ .modal__size-600_bpxdf,
45
+ .modal__size-800_bpxdf,
46
+ .modal__size-1140_bpxdf,
47
+ .modal__fullscreen_bpxdf {
48
48
  padding: var(--modal-s-footer-paddings);
49
49
  }
@@ -1,5 +1,5 @@
1
- /* hash: i822i */
2
- :root {
1
+ /* hash: 868an */
2
+ :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 */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */
3
3
  } /* deprecated */ :root {
4
4
  --color-light-modal-bg-primary: #fff;
5
5
  --color-light-neutral-300: #e7e8eb; /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */
@@ -32,14 +32,14 @@
32
32
  /* mobile */
33
33
 
34
34
  /* paddings */
35
- } .modal__footer_bic9i {
35
+ } .modal__footer_1gklo {
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_bic9i {
39
+ } .modal__sticky_1gklo {
40
40
  background: var(--modal-footer-background);
41
41
  position: sticky;
42
- } .modal__highlighted_bic9i {
42
+ } .modal__highlighted_1gklo {
43
43
  background: var(--modal-footer-highlight-background);
44
44
  box-shadow: var(--modal-footer-highlight-box-shadow);
45
45
  }
@@ -1,5 +1,5 @@
1
- /* hash: aevv7 */
2
- :root {
1
+ /* hash: d23cf */
2
+ :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 */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */
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 */
5
5
  } :root {
@@ -31,35 +31,35 @@
31
31
  /* mobile */
32
32
 
33
33
  /* paddings */
34
- } .modal__column_1h82o {
34
+ } .modal__column_17txo {
35
35
  display: flex;
36
36
  flex-direction: column
37
- } .modal__column_1h82o > *:not(:last-child):not(:only-child) {
37
+ } .modal__column_17txo > *:not(:last-child):not(:only-child) {
38
38
  margin-bottom: var(--modal-footer-default-gap);
39
- } .modal__column_1h82o.modal__gap-16_1h82o > *:not(:last-child):not(:only-child) {
39
+ } .modal__column_17txo.modal__gap-16_17txo > *:not(:last-child):not(:only-child) {
40
40
  margin-bottom: var(--gap-m);
41
- } .modal__column_1h82o.modal__gap-24_1h82o > *:not(:last-child):not(:only-child) {
41
+ } .modal__column_17txo.modal__gap-24_17txo > *:not(:last-child):not(:only-child) {
42
42
  margin-bottom: var(--gap-xl);
43
- } .modal__column_1h82o.modal__gap-32_1h82o > *:not(:last-child):not(:only-child) {
43
+ } .modal__column_17txo.modal__gap-32_17txo > *:not(:last-child):not(:only-child) {
44
44
  margin-bottom: var(--gap-2xl);
45
- } .modal__start_1h82o {
45
+ } .modal__start_17txo {
46
46
  justify-content: flex-start;
47
- } .modal__center_1h82o {
47
+ } .modal__center_17txo {
48
48
  justify-content: center;
49
- } .modal__space-between_1h82o {
49
+ } .modal__space-between_17txo {
50
50
  justify-content: space-between
51
- } .modal__space-between_1h82o > * {
51
+ } .modal__space-between_17txo > * {
52
52
  flex: 1;
53
- } .modal__start_1h82o,
54
- .modal__center_1h82o,
55
- .modal__space-between_1h82o {
53
+ } .modal__start_17txo,
54
+ .modal__center_17txo,
55
+ .modal__space-between_17txo {
56
56
  display: flex
57
- } .modal__start_1h82o > *:not(:last-child):not(:only-child), .modal__center_1h82o > *:not(:last-child):not(:only-child), .modal__space-between_1h82o > *:not(:last-child):not(:only-child) {
57
+ } .modal__start_17txo > *:not(:last-child):not(:only-child), .modal__center_17txo > *:not(:last-child):not(:only-child), .modal__space-between_17txo > *:not(:last-child):not(:only-child) {
58
58
  margin-right: var(--modal-footer-default-gap);
59
- } .modal__start_1h82o.modal__gap-16_1h82o > *:not(:last-child):not(:only-child), .modal__center_1h82o.modal__gap-16_1h82o > *:not(:last-child):not(:only-child), .modal__space-between_1h82o.modal__gap-16_1h82o > *:not(:last-child):not(:only-child) {
59
+ } .modal__start_17txo.modal__gap-16_17txo > *:not(:last-child):not(:only-child), .modal__center_17txo.modal__gap-16_17txo > *:not(:last-child):not(:only-child), .modal__space-between_17txo.modal__gap-16_17txo > *:not(:last-child):not(:only-child) {
60
60
  margin-right: var(--gap-m);
61
- } .modal__start_1h82o.modal__gap-24_1h82o > *:not(:last-child):not(:only-child), .modal__center_1h82o.modal__gap-24_1h82o > *:not(:last-child):not(:only-child), .modal__space-between_1h82o.modal__gap-24_1h82o > *:not(:last-child):not(:only-child) {
61
+ } .modal__start_17txo.modal__gap-24_17txo > *:not(:last-child):not(:only-child), .modal__center_17txo.modal__gap-24_17txo > *:not(:last-child):not(:only-child), .modal__space-between_17txo.modal__gap-24_17txo > *:not(:last-child):not(:only-child) {
62
62
  margin-right: var(--gap-xl);
63
- } .modal__start_1h82o.modal__gap-32_1h82o > *:not(:last-child):not(:only-child), .modal__center_1h82o.modal__gap-32_1h82o > *:not(:last-child):not(:only-child), .modal__space-between_1h82o.modal__gap-32_1h82o > *:not(:last-child):not(:only-child) {
63
+ } .modal__start_17txo.modal__gap-32_17txo > *:not(:last-child):not(:only-child), .modal__center_17txo.modal__gap-32_17txo > *:not(:last-child):not(:only-child), .modal__space-between_17txo.modal__gap-32_17txo > *:not(:last-child):not(:only-child) {
64
64
  margin-right: var(--gap-2xl);
65
65
  }
@@ -1,5 +1,5 @@
1
- /* hash: vfik2 */
2
- :root {
1
+ /* hash: xzavo */
2
+ :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 */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */
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 */
5
5
  } :root {
@@ -28,8 +28,8 @@
28
28
  /* mobile */
29
29
 
30
30
  /* paddings */
31
- } .modal__footer_x2f2b {
31
+ } .modal__footer_gz7y4 {
32
32
  padding: var(--gap-m);
33
- } .modal__sticky_x2f2b {
33
+ } .modal__sticky_gz7y4 {
34
34
  bottom: 0;
35
35
  }
@@ -7,6 +7,7 @@ var React = require('react');
7
7
  var cn = require('classnames');
8
8
  var coreComponentsNavigationBar = require('@alfalab/core-components-navigation-bar');
9
9
  var coreComponentsShared = require('@alfalab/core-components-shared');
10
+ var consts = require('../../consts.js');
10
11
  var Context = require('../../Context.js');
11
12
  var ResponsiveContext = require('../../ResponsiveContext.js');
12
13
 
@@ -15,13 +16,13 @@ function _interopDefaultCompat (e) { return e && typeof e === 'object' && 'defau
15
16
  var React__default = /*#__PURE__*/_interopDefaultCompat(React);
16
17
  var cn__default = /*#__PURE__*/_interopDefaultCompat(cn);
17
18
 
18
- var desktopStyles = {"header":"modal__header_pzls4","content":"modal__content_pzls4","s":"modal__s_pzls4","m":"modal__m_pzls4","l":"modal__l_pzls4","xl":"modal__xl_pzls4","fullscreen":"modal__fullscreen_pzls4","sticky":"modal__sticky_pzls4"};
19
+ var desktopStyles = {"header":"modal__header_glgro","content":"modal__content_glgro","size-500":"modal__size-500_glgro","size-600":"modal__size-600_glgro","size-800":"modal__size-800_glgro","size-1140":"modal__size-1140_glgro","fullscreen":"modal__fullscreen_glgro","sticky":"modal__sticky_glgro"};
19
20
  require('./desktop.css')
20
21
 
21
- var styles = {"highlighted":"modal__highlighted_vvxel","sticky":"modal__sticky_vvxel","hasContent":"modal__hasContent_vvxel"};
22
+ var styles = {"highlighted":"modal__highlighted_1x2s2","sticky":"modal__sticky_1x2s2","hasContent":"modal__hasContent_1x2s2"};
22
23
  require('./index.css')
23
24
 
24
- var mobileStyles = {"header":"modal__header_1xat9","sticky":"modal__sticky_1xat9","content":"modal__content_1xat9"};
25
+ var mobileStyles = {"header":"modal__header_1h7m4","sticky":"modal__sticky_1h7m4","content":"modal__content_1h7m4"};
25
26
  require('./mobile.css')
26
27
 
27
28
  var Header = function (_a) {
@@ -39,7 +40,7 @@ var Header = function (_a) {
39
40
  _b[styles.hasContent] = hasContent,
40
41
  _b[desktopStyles.header] = view === 'desktop',
41
42
  _b[desktopStyles.sticky] = view === 'desktop' && sticky,
42
- _b[desktopStyles[size]] = view === 'desktop',
43
+ _b[desktopStyles[consts.SIZE_TO_CLASSNAME_MAP[size]]] = view === 'desktop',
43
44
  _b[mobileStyles.header] = view === 'mobile',
44
45
  _b[mobileStyles.sticky] = view === 'mobile' && sticky,
45
46
  _b)), contentClassName: cn__default.default(contentClassName, (_c = {},
@@ -1,5 +1,5 @@
1
- /* hash: fabkh */
2
- :root {
1
+ /* hash: 19ose */
2
+ :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 */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */
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 */
5
5
  } :root {
@@ -44,31 +44,31 @@
44
44
  /* mobile */
45
45
 
46
46
  /* paddings */
47
- } .modal__header_pzls4 {
47
+ } .modal__header_glgro {
48
48
  border-top-left-radius: var(--modal-border-radius);
49
49
  border-top-right-radius: var(--modal-border-radius);
50
- } .modal__content_pzls4 {
50
+ } .modal__content_glgro {
51
51
  font-weight: var(--modal-header-desktop-font-weight);
52
52
  font-family: var(--modal-header-desktop-font-family);
53
- } .modal__s_pzls4 .modal__content_pzls4,
54
- .modal__m_pzls4 .modal__content_pzls4 {
53
+ } .modal__size-500_glgro .modal__content_glgro,
54
+ .modal__size-600_glgro .modal__content_glgro {
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_pzls4 .modal__content_pzls4,
59
- .modal__xl_pzls4 .modal__content_pzls4,
60
- .modal__fullscreen_pzls4 .modal__content_pzls4 {
58
+ } .modal__size-800_glgro .modal__content_glgro,
59
+ .modal__size-1140_glgro .modal__content_glgro,
60
+ .modal__fullscreen_glgro .modal__content_glgro {
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_pzls4,
65
- .modal__m_pzls4,
66
- .modal__l_pzls4,
67
- .modal__xl_pzls4,
68
- .modal__fullscreen_pzls4 {
64
+ } .modal__size-500_glgro,
65
+ .modal__size-600_glgro,
66
+ .modal__size-800_glgro,
67
+ .modal__size-1140_glgro,
68
+ .modal__fullscreen_glgro {
69
69
  padding: var(--modal-s-header-paddings);
70
- } .modal__sticky_pzls4 {
70
+ } .modal__sticky_glgro {
71
71
  top: calc(var(--modal-vertical-padding) * -1)
72
- } .modal__sticky_pzls4.modal__fullscreen_pzls4 {
72
+ } .modal__sticky_glgro.modal__fullscreen_glgro {
73
73
  top: 0;
74
74
  }
@@ -1,5 +1,5 @@
1
- /* hash: 13b9r */
2
- :root {
1
+ /* hash: 1xpql */
2
+ :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 */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */
3
3
  } /* deprecated */ :root {
4
4
  --color-light-modal-bg-primary: #fff;
5
5
  --color-light-neutral-300: #e7e8eb; /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */
@@ -32,12 +32,12 @@
32
32
  /* mobile */
33
33
 
34
34
  /* paddings */
35
- } .modal__highlighted_vvxel {
35
+ } .modal__highlighted_1x2s2 {
36
36
  background: var(--modal-header-highlight-background);
37
37
  box-shadow: var(--modal-header-highlight-box-shadow);
38
- } .modal__sticky_vvxel {
38
+ } .modal__sticky_1x2s2 {
39
39
  position: sticky;
40
40
  z-index: 1
41
- } .modal__sticky_vvxel.modal__hasContent_vvxel {
41
+ } .modal__sticky_1x2s2.modal__hasContent_1x2s2 {
42
42
  background: var(--modal-header-background);
43
43
  }
@@ -1,5 +1,5 @@
1
- /* hash: 1l0ez */
2
- :root {
1
+ /* hash: jjc83 */
2
+ :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 */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */
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 */
5
5
  } :root {
@@ -38,11 +38,11 @@
38
38
 
39
39
  /* paddings */
40
40
  --modal-header-mobile-paddings: var(--gap-2xs) var(--gap-xs);
41
- } .modal__header_1xat9 {
41
+ } .modal__header_1h7m4 {
42
42
  padding: var(--modal-header-mobile-paddings);
43
- } .modal__sticky_1xat9 {
43
+ } .modal__sticky_1h7m4 {
44
44
  top: 0;
45
- } .modal__content_1xat9 {
45
+ } .modal__content_1h7m4 {
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/consts.d.ts ADDED
@@ -0,0 +1,12 @@
1
+ declare const SIZE_TO_CLASSNAME_MAP: {
2
+ s: string;
3
+ m: string;
4
+ l: string;
5
+ xl: string;
6
+ fullscreen: string;
7
+ 500: string;
8
+ 600: string;
9
+ 800: string;
10
+ 1140: string;
11
+ };
12
+ export { SIZE_TO_CLASSNAME_MAP };