@alfalab/core-components-modal 10.0.0 → 10.1.0-snapshot-92b8690

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 (191) hide show
  1. package/components/content/desktop.css +6 -6
  2. package/components/content/desktop.module.css.js +1 -1
  3. package/components/content/index.css +3 -3
  4. package/components/content/index.module.css.js +1 -1
  5. package/components/content/mobile.css +2 -2
  6. package/components/content/mobile.module.css.js +1 -1
  7. package/components/controls/index.css +1 -1
  8. package/components/controls/index.module.css.js +1 -1
  9. package/components/footer/desktop.css +8 -8
  10. package/components/footer/desktop.module.css.js +1 -1
  11. package/components/footer/index.css +3 -3
  12. package/components/footer/index.module.css.js +1 -1
  13. package/components/footer/layout.css +16 -16
  14. package/components/footer/layout.module.css.js +1 -1
  15. package/components/footer/mobile.css +3 -3
  16. package/components/footer/mobile.module.css.js +1 -1
  17. package/components/header/desktop.css +14 -14
  18. package/components/header/desktop.module.css.js +1 -1
  19. package/components/header/index.css +3 -3
  20. package/components/header/index.module.css.js +1 -1
  21. package/components/header/mobile.css +4 -4
  22. package/components/header/mobile.module.css.js +1 -1
  23. package/desktop/desktop.css +8 -8
  24. package/desktop/desktop.module.css.js +1 -1
  25. package/dynamic-mixins/Component.d.ts +11 -0
  26. package/dynamic-mixins/Component.js +65 -0
  27. package/dynamic-mixins/Component.js.map +1 -0
  28. package/dynamic-mixins/Component.responsive.d.ts +33 -0
  29. package/dynamic-mixins/Component.responsive.js +37 -0
  30. package/dynamic-mixins/Component.responsive.js.map +1 -0
  31. package/dynamic-mixins/Context.d.ts +3 -0
  32. package/dynamic-mixins/Context.js +10 -0
  33. package/dynamic-mixins/Context.js.map +1 -0
  34. package/dynamic-mixins/ResponsiveContext.d.ts +3 -0
  35. package/dynamic-mixins/ResponsiveContext.js +17 -0
  36. package/dynamic-mixins/ResponsiveContext.js.map +1 -0
  37. package/dynamic-mixins/components/content/Component.d.ts +3 -0
  38. package/dynamic-mixins/components/content/Component.js +34 -0
  39. package/dynamic-mixins/components/content/Component.js.map +1 -0
  40. package/dynamic-mixins/components/content/desktop.css +16 -0
  41. package/dynamic-mixins/components/content/desktop.module.css.js +8 -0
  42. package/dynamic-mixins/components/content/desktop.module.css.js.map +1 -0
  43. package/dynamic-mixins/components/content/index.css +12 -0
  44. package/dynamic-mixins/components/content/index.module.css.js +8 -0
  45. package/dynamic-mixins/components/content/index.module.css.js.map +1 -0
  46. package/dynamic-mixins/components/content/mobile.css +9 -0
  47. package/dynamic-mixins/components/content/mobile.module.css.js +8 -0
  48. package/dynamic-mixins/components/content/mobile.module.css.js.map +1 -0
  49. package/dynamic-mixins/components/controls/Component.d.ts +26 -0
  50. package/dynamic-mixins/components/controls/Component.js +30 -0
  51. package/dynamic-mixins/components/controls/Component.js.map +1 -0
  52. package/dynamic-mixins/components/controls/index.css +3 -0
  53. package/dynamic-mixins/components/controls/index.d.ts +1 -0
  54. package/dynamic-mixins/components/controls/index.js +10 -0
  55. package/dynamic-mixins/components/controls/index.js.map +1 -0
  56. package/dynamic-mixins/components/controls/index.module.css.js +8 -0
  57. package/dynamic-mixins/components/controls/index.module.css.js.map +1 -0
  58. package/dynamic-mixins/components/footer/Component.d.ts +24 -0
  59. package/dynamic-mixins/components/footer/Component.js +41 -0
  60. package/dynamic-mixins/components/footer/Component.js.map +1 -0
  61. package/dynamic-mixins/components/footer/desktop.css +27 -0
  62. package/dynamic-mixins/components/footer/desktop.module.css.js +8 -0
  63. package/dynamic-mixins/components/footer/desktop.module.css.js.map +1 -0
  64. package/dynamic-mixins/components/footer/index.css +18 -0
  65. package/dynamic-mixins/components/footer/index.module.css.js +8 -0
  66. package/dynamic-mixins/components/footer/index.module.css.js.map +1 -0
  67. package/dynamic-mixins/components/footer/layout.css +41 -0
  68. package/dynamic-mixins/components/footer/layout.module.css.js +8 -0
  69. package/dynamic-mixins/components/footer/layout.module.css.js.map +1 -0
  70. package/dynamic-mixins/components/footer/mobile.css +19 -0
  71. package/dynamic-mixins/components/footer/mobile.module.css.js +8 -0
  72. package/dynamic-mixins/components/footer/mobile.module.css.js.map +1 -0
  73. package/dynamic-mixins/components/header/Component.d.ts +4 -0
  74. package/dynamic-mixins/components/header/Component.js +59 -0
  75. package/dynamic-mixins/components/header/Component.js.map +1 -0
  76. package/dynamic-mixins/components/header/desktop.css +54 -0
  77. package/dynamic-mixins/components/header/desktop.module.css.js +8 -0
  78. package/dynamic-mixins/components/header/desktop.module.css.js.map +1 -0
  79. package/dynamic-mixins/components/header/index.css +16 -0
  80. package/dynamic-mixins/components/header/index.module.css.js +8 -0
  81. package/dynamic-mixins/components/header/index.module.css.js.map +1 -0
  82. package/dynamic-mixins/components/header/mobile.css +43 -0
  83. package/dynamic-mixins/components/header/mobile.module.css.js +8 -0
  84. package/dynamic-mixins/components/header/mobile.module.css.js.map +1 -0
  85. package/dynamic-mixins/consts.d.ts +11 -0
  86. package/dynamic-mixins/consts.js +18 -0
  87. package/dynamic-mixins/consts.js.map +1 -0
  88. package/dynamic-mixins/desktop/Component.desktop.d.ts +27 -0
  89. package/dynamic-mixins/desktop/Component.desktop.js +33 -0
  90. package/dynamic-mixins/desktop/Component.desktop.js.map +1 -0
  91. package/dynamic-mixins/desktop/desktop.css +38 -0
  92. package/dynamic-mixins/desktop/desktop.module.css.js +8 -0
  93. package/dynamic-mixins/desktop/desktop.module.css.js.map +1 -0
  94. package/dynamic-mixins/desktop/index.d.ts +2 -0
  95. package/dynamic-mixins/desktop/index.js +17 -0
  96. package/dynamic-mixins/desktop/index.js.map +1 -0
  97. package/dynamic-mixins/index.d.ts +2 -0
  98. package/dynamic-mixins/index.js +20 -0
  99. package/dynamic-mixins/index.js.map +1 -0
  100. package/dynamic-mixins/mobile/Component.mobile.d.ts +15 -0
  101. package/dynamic-mixins/mobile/Component.mobile.js +32 -0
  102. package/dynamic-mixins/mobile/Component.mobile.js.map +1 -0
  103. package/dynamic-mixins/mobile/index.d.ts +2 -0
  104. package/dynamic-mixins/mobile/index.js +18 -0
  105. package/dynamic-mixins/mobile/index.js.map +1 -0
  106. package/dynamic-mixins/mobile/mobile.css +15 -0
  107. package/dynamic-mixins/mobile/mobile.module.css.js +8 -0
  108. package/dynamic-mixins/mobile/mobile.module.css.js.map +1 -0
  109. package/dynamic-mixins/shared/index.d.ts +5 -0
  110. package/dynamic-mixins/shared/index.js +12 -0
  111. package/dynamic-mixins/shared/index.js.map +1 -0
  112. package/dynamic-mixins/transitions.css +24 -0
  113. package/dynamic-mixins/transitions.module.css.js +8 -0
  114. package/dynamic-mixins/transitions.module.css.js.map +1 -0
  115. package/dynamic-mixins/typings.d.ts +66 -0
  116. package/dynamic-mixins/typings.js +3 -0
  117. package/dynamic-mixins/typings.js.map +1 -0
  118. package/dynamic-mixins/utils.d.ts +10 -0
  119. package/dynamic-mixins/utils.js +21 -0
  120. package/dynamic-mixins/utils.js.map +1 -0
  121. package/esm/components/content/desktop.css +6 -6
  122. package/esm/components/content/desktop.module.css.js +1 -1
  123. package/esm/components/content/index.css +3 -3
  124. package/esm/components/content/index.module.css.js +1 -1
  125. package/esm/components/content/mobile.css +2 -2
  126. package/esm/components/content/mobile.module.css.js +1 -1
  127. package/esm/components/controls/index.css +1 -1
  128. package/esm/components/controls/index.module.css.js +1 -1
  129. package/esm/components/footer/desktop.css +8 -8
  130. package/esm/components/footer/desktop.module.css.js +1 -1
  131. package/esm/components/footer/index.css +3 -3
  132. package/esm/components/footer/index.module.css.js +1 -1
  133. package/esm/components/footer/layout.css +16 -16
  134. package/esm/components/footer/layout.module.css.js +1 -1
  135. package/esm/components/footer/mobile.css +3 -3
  136. package/esm/components/footer/mobile.module.css.js +1 -1
  137. package/esm/components/header/desktop.css +14 -14
  138. package/esm/components/header/desktop.module.css.js +1 -1
  139. package/esm/components/header/index.css +3 -3
  140. package/esm/components/header/index.module.css.js +1 -1
  141. package/esm/components/header/mobile.css +4 -4
  142. package/esm/components/header/mobile.module.css.js +1 -1
  143. package/esm/desktop/desktop.css +8 -8
  144. package/esm/desktop/desktop.module.css.js +1 -1
  145. package/esm/mobile/mobile.css +2 -2
  146. package/esm/mobile/mobile.module.css.js +1 -1
  147. package/esm/transitions.css +7 -7
  148. package/esm/transitions.module.css.js +1 -1
  149. package/mobile/mobile.css +2 -2
  150. package/mobile/mobile.module.css.js +1 -1
  151. package/modern/components/content/desktop.css +6 -6
  152. package/modern/components/content/desktop.module.css.js +1 -1
  153. package/modern/components/content/index.css +3 -3
  154. package/modern/components/content/index.module.css.js +1 -1
  155. package/modern/components/content/mobile.css +2 -2
  156. package/modern/components/content/mobile.module.css.js +1 -1
  157. package/modern/components/controls/index.css +1 -1
  158. package/modern/components/controls/index.module.css.js +1 -1
  159. package/modern/components/footer/desktop.css +8 -8
  160. package/modern/components/footer/desktop.module.css.js +1 -1
  161. package/modern/components/footer/index.css +3 -3
  162. package/modern/components/footer/index.module.css.js +1 -1
  163. package/modern/components/footer/layout.css +16 -16
  164. package/modern/components/footer/layout.module.css.js +1 -1
  165. package/modern/components/footer/mobile.css +3 -3
  166. package/modern/components/footer/mobile.module.css.js +1 -1
  167. package/modern/components/header/desktop.css +14 -14
  168. package/modern/components/header/desktop.module.css.js +1 -1
  169. package/modern/components/header/index.css +3 -3
  170. package/modern/components/header/index.module.css.js +1 -1
  171. package/modern/components/header/mobile.css +4 -4
  172. package/modern/components/header/mobile.module.css.js +1 -1
  173. package/modern/desktop/desktop.css +8 -8
  174. package/modern/desktop/desktop.module.css.js +1 -1
  175. package/modern/mobile/mobile.css +2 -2
  176. package/modern/mobile/mobile.module.css.js +1 -1
  177. package/modern/transitions.css +7 -7
  178. package/modern/transitions.module.css.js +1 -1
  179. package/moderncssm/components/content/desktop.module.css +2 -0
  180. package/moderncssm/components/content/index.module.css +2 -0
  181. package/moderncssm/components/content/mobile.module.css +2 -0
  182. package/moderncssm/components/footer/desktop.module.css +2 -0
  183. package/moderncssm/components/footer/index.module.css +2 -0
  184. package/moderncssm/components/footer/layout.module.css +2 -0
  185. package/moderncssm/components/header/desktop.module.css +2 -0
  186. package/moderncssm/components/header/index.module.css +2 -0
  187. package/moderncssm/desktop/desktop.module.css +2 -0
  188. package/package.json +7 -7
  189. package/src/vars.css +1 -1
  190. package/transitions.css +7 -7
  191. package/transitions.module.css.js +1 -1
@@ -5,12 +5,12 @@
5
5
  } :root {
6
6
  --modal-s-content-paddings: var(--gap-40) var(--gap-40) var(--gap-0);
7
7
  --modal-s-content-only-bottom-padding: var(--gap-40);
8
- } .modal__size-500_4f1ow,
9
- .modal__size-600_4f1ow,
10
- .modal__size-800_4f1ow,
11
- .modal__size-1140_4f1ow,
12
- .modal__fullscreen_4f1ow {
8
+ } .modal__size-500_gfli7,
9
+ .modal__size-600_gfli7,
10
+ .modal__size-800_gfli7,
11
+ .modal__size-1140_gfli7,
12
+ .modal__fullscreen_gfli7 {
13
13
  padding: var(--modal-s-content-paddings)
14
- } .modal__size-500_4f1ow:last-child, .modal__size-600_4f1ow:last-child, .modal__size-800_4f1ow:last-child, .modal__size-1140_4f1ow:last-child, .modal__fullscreen_4f1ow:last-child {
14
+ } .modal__size-500_gfli7:last-child, .modal__size-600_gfli7:last-child, .modal__size-800_gfli7:last-child, .modal__size-1140_gfli7:last-child, .modal__fullscreen_gfli7:last-child {
15
15
  padding-bottom: var(--modal-s-content-only-bottom-padding);
16
16
  }
@@ -2,7 +2,7 @@
2
2
 
3
3
  require('./desktop.css');
4
4
 
5
- var desktopStyles = {"size-500":"modal__size-500_4f1ow","size-600":"modal__size-600_4f1ow","size-800":"modal__size-800_4f1ow","size-1140":"modal__size-1140_4f1ow","fullscreen":"modal__fullscreen_4f1ow"};
5
+ var desktopStyles = {"size-500":"modal__size-500_gfli7","size-600":"modal__size-600_gfli7","size-800":"modal__size-800_gfli7","size-1140":"modal__size-1140_gfli7","fullscreen":"modal__fullscreen_gfli7"};
6
6
 
7
7
  module.exports = desktopStyles;
8
8
  //# sourceMappingURL=desktop.module.css.js.map
@@ -1,12 +1,12 @@
1
1
  :root {
2
2
  --gap-0: 0px;
3
- } .modal__content_5ft1z {
3
+ } .modal__content_zjji7 {
4
4
  position: relative;
5
5
  box-sizing: border-box;
6
6
  width: 100%;
7
7
  z-index: 0
8
- } .modal__content_5ft1z.modal__withHeader_5ft1z {
8
+ } .modal__content_zjji7.modal__withHeader_zjji7 {
9
9
  padding-top: var(--gap-0);
10
- } .modal__flex_5ft1z {
10
+ } .modal__flex_zjji7 {
11
11
  flex: 1;
12
12
  }
@@ -2,7 +2,7 @@
2
2
 
3
3
  require('./index.css');
4
4
 
5
- var styles = {"content":"modal__content_5ft1z","withHeader":"modal__withHeader_5ft1z","flex":"modal__flex_5ft1z"};
5
+ var styles = {"content":"modal__content_zjji7","withHeader":"modal__withHeader_zjji7","flex":"modal__flex_zjji7"};
6
6
 
7
7
  module.exports = styles;
8
8
  //# sourceMappingURL=index.module.css.js.map
@@ -2,8 +2,8 @@
2
2
  --gap-m: 16px;
3
3
  --gap-0: 0px;
4
4
  --gap-16: var(--gap-m);
5
- } .modal__content_fpsio {
5
+ } .modal__content_1lo1f {
6
6
  padding: var(--gap-16) var(--gap-16) var(--gap-0)
7
- } .modal__content_fpsio:last-child {
7
+ } .modal__content_1lo1f:last-child {
8
8
  padding-bottom: var(--gap-16);
9
9
  }
@@ -2,7 +2,7 @@
2
2
 
3
3
  require('./mobile.css');
4
4
 
5
- var mobileStyles = {"content":"modal__content_fpsio"};
5
+ var mobileStyles = {"content":"modal__content_1lo1f"};
6
6
 
7
7
  module.exports = mobileStyles;
8
8
  //# sourceMappingURL=mobile.module.css.js.map
@@ -1,3 +1,3 @@
1
- .modal__component_1gf73 {
1
+ .modal__component_1g6x3 {
2
2
  width: 100%;
3
3
  }
@@ -2,7 +2,7 @@
2
2
 
3
3
  require('./index.css');
4
4
 
5
- var styles = {"component":"modal__component_1gf73"};
5
+ var styles = {"component":"modal__component_1g6x3"};
6
6
 
7
7
  module.exports = styles;
8
8
  //# sourceMappingURL=index.module.css.js.map
@@ -11,17 +11,17 @@
11
11
  --modal-border-radius: var(--border-radius-24);
12
12
  --modal-vertical-padding: var(--gap-40);
13
13
  --modal-s-footer-paddings: var(--gap-24) var(--gap-40) var(--gap-40);
14
- } .modal__footer_1wvsi {
14
+ } .modal__footer_131qk {
15
15
  border-bottom-left-radius: var(--modal-border-radius);
16
16
  border-bottom-right-radius: var(--modal-border-radius);
17
- } .modal__sticky_1wvsi {
17
+ } .modal__sticky_131qk {
18
18
  bottom: calc(var(--modal-vertical-padding) * -1)
19
- } .modal__sticky_1wvsi.modal__fullscreen_1wvsi {
19
+ } .modal__sticky_131qk.modal__fullscreen_131qk {
20
20
  bottom: var(--gap-0);
21
- } .modal__size-500_1wvsi,
22
- .modal__size-600_1wvsi,
23
- .modal__size-800_1wvsi,
24
- .modal__size-1140_1wvsi,
25
- .modal__fullscreen_1wvsi {
21
+ } .modal__size-500_131qk,
22
+ .modal__size-600_131qk,
23
+ .modal__size-800_131qk,
24
+ .modal__size-1140_131qk,
25
+ .modal__fullscreen_131qk {
26
26
  padding: var(--modal-s-footer-paddings);
27
27
  }
@@ -2,7 +2,7 @@
2
2
 
3
3
  require('./desktop.css');
4
4
 
5
- var desktopStyles = {"footer":"modal__footer_1wvsi","sticky":"modal__sticky_1wvsi","fullscreen":"modal__fullscreen_1wvsi","size-500":"modal__size-500_1wvsi","size-600":"modal__size-600_1wvsi","size-800":"modal__size-800_1wvsi","size-1140":"modal__size-1140_1wvsi"};
5
+ var desktopStyles = {"footer":"modal__footer_131qk","sticky":"modal__sticky_131qk","fullscreen":"modal__fullscreen_131qk","size-500":"modal__size-500_131qk","size-600":"modal__size-600_131qk","size-800":"modal__size-800_131qk","size-1140":"modal__size-1140_131qk"};
6
6
 
7
7
  module.exports = desktopStyles;
8
8
  //# sourceMappingURL=desktop.module.css.js.map
@@ -5,14 +5,14 @@
5
5
  --modal-footer-background: var(--color-light-modal-bg-primary);
6
6
  --modal-footer-highlight-background: var(--color-light-modal-bg-primary);
7
7
  --modal-footer-highlight-box-shadow: 0 -1px 0 0 var(--color-light-neutral-300);
8
- } .modal__footer_1t03d {
8
+ } .modal__footer_m95t4 {
9
9
  width: 100%;
10
10
  box-sizing: border-box;
11
11
  transition: box-shadow 0.2s ease, background 0.2s ease;
12
- } .modal__sticky_1t03d {
12
+ } .modal__sticky_m95t4 {
13
13
  background: var(--modal-footer-background);
14
14
  position: sticky;
15
- } .modal__highlighted_1t03d {
15
+ } .modal__highlighted_m95t4 {
16
16
  background: var(--modal-footer-highlight-background);
17
17
  box-shadow: var(--modal-footer-highlight-box-shadow);
18
18
  }
@@ -2,7 +2,7 @@
2
2
 
3
3
  require('./index.css');
4
4
 
5
- var styles = {"footer":"modal__footer_1t03d","sticky":"modal__sticky_1t03d","highlighted":"modal__highlighted_1t03d"};
5
+ var styles = {"footer":"modal__footer_m95t4","sticky":"modal__sticky_m95t4","highlighted":"modal__highlighted_m95t4"};
6
6
 
7
7
  module.exports = styles;
8
8
  //# sourceMappingURL=index.module.css.js.map
@@ -7,35 +7,35 @@
7
7
  --gap-32: var(--gap-2xl);
8
8
  } :root {
9
9
  --modal-footer-default-gap: var(--gap-16);
10
- } .modal__column_tyorv {
10
+ } .modal__column_7cmot {
11
11
  display: flex;
12
12
  flex-direction: column
13
- } .modal__column_tyorv > *:not(:last-child):not(:only-child) {
13
+ } .modal__column_7cmot > *:not(:last-child):not(:only-child) {
14
14
  margin-bottom: var(--modal-footer-default-gap);
15
- } .modal__column_tyorv.modal__gap-16_tyorv > *:not(:last-child):not(:only-child) {
15
+ } .modal__column_7cmot.modal__gap-16_7cmot > *:not(:last-child):not(:only-child) {
16
16
  margin-bottom: var(--gap-16);
17
- } .modal__column_tyorv.modal__gap-24_tyorv > *:not(:last-child):not(:only-child) {
17
+ } .modal__column_7cmot.modal__gap-24_7cmot > *:not(:last-child):not(:only-child) {
18
18
  margin-bottom: var(--gap-24);
19
- } .modal__column_tyorv.modal__gap-32_tyorv > *:not(:last-child):not(:only-child) {
19
+ } .modal__column_7cmot.modal__gap-32_7cmot > *:not(:last-child):not(:only-child) {
20
20
  margin-bottom: var(--gap-32);
21
- } .modal__start_tyorv {
21
+ } .modal__start_7cmot {
22
22
  justify-content: flex-start;
23
- } .modal__center_tyorv {
23
+ } .modal__center_7cmot {
24
24
  justify-content: center;
25
- } .modal__space-between_tyorv {
25
+ } .modal__space-between_7cmot {
26
26
  justify-content: space-between
27
- } .modal__space-between_tyorv > * {
27
+ } .modal__space-between_7cmot > * {
28
28
  flex: 1;
29
- } .modal__start_tyorv,
30
- .modal__center_tyorv,
31
- .modal__space-between_tyorv {
29
+ } .modal__start_7cmot,
30
+ .modal__center_7cmot,
31
+ .modal__space-between_7cmot {
32
32
  display: flex
33
- } .modal__start_tyorv > *:not(:last-child):not(:only-child), .modal__center_tyorv > *:not(:last-child):not(:only-child), .modal__space-between_tyorv > *:not(:last-child):not(:only-child) {
33
+ } .modal__start_7cmot > *:not(:last-child):not(:only-child), .modal__center_7cmot > *:not(:last-child):not(:only-child), .modal__space-between_7cmot > *:not(:last-child):not(:only-child) {
34
34
  margin-right: var(--modal-footer-default-gap);
35
- } .modal__start_tyorv.modal__gap-16_tyorv > *:not(:last-child):not(:only-child), .modal__center_tyorv.modal__gap-16_tyorv > *:not(:last-child):not(:only-child), .modal__space-between_tyorv.modal__gap-16_tyorv > *:not(:last-child):not(:only-child) {
35
+ } .modal__start_7cmot.modal__gap-16_7cmot > *:not(:last-child):not(:only-child), .modal__center_7cmot.modal__gap-16_7cmot > *:not(:last-child):not(:only-child), .modal__space-between_7cmot.modal__gap-16_7cmot > *:not(:last-child):not(:only-child) {
36
36
  margin-right: var(--gap-16);
37
- } .modal__start_tyorv.modal__gap-24_tyorv > *:not(:last-child):not(:only-child), .modal__center_tyorv.modal__gap-24_tyorv > *:not(:last-child):not(:only-child), .modal__space-between_tyorv.modal__gap-24_tyorv > *:not(:last-child):not(:only-child) {
37
+ } .modal__start_7cmot.modal__gap-24_7cmot > *:not(:last-child):not(:only-child), .modal__center_7cmot.modal__gap-24_7cmot > *:not(:last-child):not(:only-child), .modal__space-between_7cmot.modal__gap-24_7cmot > *:not(:last-child):not(:only-child) {
38
38
  margin-right: var(--gap-24);
39
- } .modal__start_tyorv.modal__gap-32_tyorv > *:not(:last-child):not(:only-child), .modal__center_tyorv.modal__gap-32_tyorv > *:not(:last-child):not(:only-child), .modal__space-between_tyorv.modal__gap-32_tyorv > *:not(:last-child):not(:only-child) {
39
+ } .modal__start_7cmot.modal__gap-32_7cmot > *:not(:last-child):not(:only-child), .modal__center_7cmot.modal__gap-32_7cmot > *:not(:last-child):not(:only-child), .modal__space-between_7cmot.modal__gap-32_7cmot > *:not(:last-child):not(:only-child) {
40
40
  margin-right: var(--gap-32);
41
41
  }
@@ -2,7 +2,7 @@
2
2
 
3
3
  require('./layout.css');
4
4
 
5
- var layoutStyles = {"column":"modal__column_tyorv","gap-16":"modal__gap-16_tyorv","gap-24":"modal__gap-24_tyorv","gap-32":"modal__gap-32_tyorv","start":"modal__start_tyorv","center":"modal__center_tyorv","space-between":"modal__space-between_tyorv"};
5
+ var layoutStyles = {"column":"modal__column_7cmot","gap-16":"modal__gap-16_7cmot","gap-24":"modal__gap-24_7cmot","gap-32":"modal__gap-32_7cmot","start":"modal__start_7cmot","center":"modal__center_7cmot","space-between":"modal__space-between_7cmot"};
6
6
 
7
7
  module.exports = layoutStyles;
8
8
  //# sourceMappingURL=layout.module.css.js.map
@@ -6,14 +6,14 @@
6
6
  --gap-0: 0px;
7
7
  --gap-16: var(--gap-m);
8
8
  }
9
- .modal__footer_s2uzq {
9
+ .modal__footer_128tn {
10
10
  padding: var(--gap-16)
11
11
  }
12
12
  @media (display-mode: standalone) {
13
- .modal__footer_s2uzq {
13
+ .modal__footer_128tn {
14
14
  padding-bottom: calc(var(--sab) + var(--gap-16))
15
15
  }
16
16
  }
17
- .modal__sticky_s2uzq {
17
+ .modal__sticky_128tn {
18
18
  bottom: var(--gap-0);
19
19
  }
@@ -2,7 +2,7 @@
2
2
 
3
3
  require('./mobile.css');
4
4
 
5
- var mobileStyles = {"footer":"modal__footer_s2uzq","sticky":"modal__sticky_s2uzq"};
5
+ var mobileStyles = {"footer":"modal__footer_128tn","sticky":"modal__sticky_128tn"};
6
6
 
7
7
  module.exports = mobileStyles;
8
8
  //# sourceMappingURL=mobile.module.css.js.map
@@ -24,31 +24,31 @@
24
24
  --modal-l-header-desktop-line-height: 36px;
25
25
  --modal-header-desktop-font-weight: bold;
26
26
  --modal-header-desktop-font-family: var(--font-family-system);
27
- } .modal__header_79dke {
27
+ } .modal__header_18p55 {
28
28
  border-top-left-radius: var(--modal-border-radius);
29
29
  border-top-right-radius: var(--modal-border-radius);
30
- } .modal__content_79dke {
30
+ } .modal__content_18p55 {
31
31
  font-weight: var(--modal-header-desktop-font-weight);
32
32
  font-family: var(--modal-header-desktop-font-family);
33
- } .modal__size-500_79dke .modal__content_79dke,
34
- .modal__size-600_79dke .modal__content_79dke {
33
+ } .modal__size-500_18p55 .modal__content_18p55,
34
+ .modal__size-600_18p55 .modal__content_18p55 {
35
35
  padding: var(--modal-s-header-desktop-content-paddings);
36
36
  font-size: var(--modal-s-header-desktop-font-size);
37
37
  line-height: var(--modal-s-header-desktop-line-height);
38
- } .modal__size-800_79dke .modal__content_79dke,
39
- .modal__size-1140_79dke .modal__content_79dke,
40
- .modal__fullscreen_79dke .modal__content_79dke {
38
+ } .modal__size-800_18p55 .modal__content_18p55,
39
+ .modal__size-1140_18p55 .modal__content_18p55,
40
+ .modal__fullscreen_18p55 .modal__content_18p55 {
41
41
  padding: var(--modal-l-header-desktop-content-paddings);
42
42
  font-size: var(--modal-l-header-desktop-font-size);
43
43
  line-height: var(--modal-l-header-desktop-line-height);
44
- } .modal__size-500_79dke,
45
- .modal__size-600_79dke,
46
- .modal__size-800_79dke,
47
- .modal__size-1140_79dke,
48
- .modal__fullscreen_79dke {
44
+ } .modal__size-500_18p55,
45
+ .modal__size-600_18p55,
46
+ .modal__size-800_18p55,
47
+ .modal__size-1140_18p55,
48
+ .modal__fullscreen_18p55 {
49
49
  padding: var(--modal-s-header-paddings);
50
- } .modal__sticky_79dke {
50
+ } .modal__sticky_18p55 {
51
51
  top: calc(var(--modal-vertical-padding) * -1)
52
- } .modal__sticky_79dke.modal__fullscreen_79dke {
52
+ } .modal__sticky_18p55.modal__fullscreen_18p55 {
53
53
  top: var(--gap-0);
54
54
  }
@@ -2,7 +2,7 @@
2
2
 
3
3
  require('./desktop.css');
4
4
 
5
- var desktopStyles = {"header":"modal__header_79dke","content":"modal__content_79dke","size-500":"modal__size-500_79dke","size-600":"modal__size-600_79dke","size-800":"modal__size-800_79dke","size-1140":"modal__size-1140_79dke","fullscreen":"modal__fullscreen_79dke","sticky":"modal__sticky_79dke"};
5
+ var desktopStyles = {"header":"modal__header_18p55","content":"modal__content_18p55","size-500":"modal__size-500_18p55","size-600":"modal__size-600_18p55","size-800":"modal__size-800_18p55","size-1140":"modal__size-1140_18p55","fullscreen":"modal__fullscreen_18p55","sticky":"modal__sticky_18p55"};
6
6
 
7
7
  module.exports = desktopStyles;
8
8
  //# sourceMappingURL=desktop.module.css.js.map
@@ -5,12 +5,12 @@
5
5
  --modal-header-background: var(--color-light-modal-bg-primary);
6
6
  --modal-header-highlight-background: var(--color-light-modal-bg-primary);
7
7
  --modal-header-highlight-box-shadow: 0 1px 0 0 var(--color-light-neutral-300);
8
- } .modal__highlighted_ivq68 {
8
+ } .modal__highlighted_14ofc {
9
9
  background: var(--modal-header-highlight-background);
10
10
  box-shadow: var(--modal-header-highlight-box-shadow);
11
- } .modal__sticky_ivq68 {
11
+ } .modal__sticky_14ofc {
12
12
  position: sticky;
13
13
  z-index: 1
14
- } .modal__sticky_ivq68.modal__hasContent_ivq68 {
14
+ } .modal__sticky_14ofc.modal__hasContent_14ofc {
15
15
  background: var(--modal-header-background);
16
16
  }
@@ -2,7 +2,7 @@
2
2
 
3
3
  require('./index.css');
4
4
 
5
- var styles = {"highlighted":"modal__highlighted_ivq68","sticky":"modal__sticky_ivq68","hasContent":"modal__hasContent_ivq68"};
5
+ var styles = {"highlighted":"modal__highlighted_14ofc","sticky":"modal__sticky_14ofc","hasContent":"modal__hasContent_14ofc"};
6
6
 
7
7
  module.exports = styles;
8
8
  //# sourceMappingURL=index.module.css.js.map
@@ -22,18 +22,18 @@
22
22
  --modal-header-mobile-paddings: var(--modal-header-mobile-top-padding) var(--gap-8) var(--gap-4)
23
23
  var(--gap-8);
24
24
  }
25
- .modal__header_1lm73 {
25
+ .modal__header_2jiit {
26
26
  padding: var(--modal-header-mobile-paddings)
27
27
  }
28
28
  @media (display-mode: standalone) {
29
- .modal__header_1lm73 {
29
+ .modal__header_2jiit {
30
30
  padding-top: calc(var(--sat) + var(--modal-header-mobile-top-padding))
31
31
  }
32
32
  }
33
- .modal__sticky_1lm73 {
33
+ .modal__sticky_2jiit {
34
34
  top: var(--gap-0);
35
35
  }
36
- .modal__content_1lm73 {
36
+ .modal__content_2jiit {
37
37
  font-size: var(--modal-header-mobile-font-size);
38
38
  line-height: var(--modal-header-mobile-line-height);
39
39
  font-family: var(--modal-header-mobile-font-family);
@@ -2,7 +2,7 @@
2
2
 
3
3
  require('./mobile.css');
4
4
 
5
- var mobileStyles = {"header":"modal__header_1lm73","sticky":"modal__sticky_1lm73","content":"modal__content_1lm73"};
5
+ var mobileStyles = {"header":"modal__header_2jiit","sticky":"modal__sticky_2jiit","content":"modal__content_2jiit"};
6
6
 
7
7
  module.exports = mobileStyles;
8
8
  //# sourceMappingURL=mobile.module.css.js.map
@@ -12,27 +12,27 @@
12
12
  --modal-m-width: 600px;
13
13
  --modal-l-width: 800px;
14
14
  --modal-xl-width: 1140px;
15
- } .modal__wrapper_116r0 {
15
+ } .modal__wrapper_1oadu {
16
16
  padding-top: var(--modal-vertical-padding);
17
17
  padding-bottom: var(--modal-vertical-padding);
18
- } .modal__component_116r0 {
18
+ } .modal__component_1oadu {
19
19
  width: 100%;
20
20
  max-width: 100%;
21
21
  border-radius: var(--modal-border-radius);
22
- } .modal__fullscreen_116r0 {
22
+ } .modal__fullscreen_1oadu {
23
23
  padding-top: var(--gap-0);
24
24
  padding-bottom: var(--gap-0);
25
25
  overflow: hidden
26
- } .modal__fullscreen_116r0 .modal__component_116r0 {
26
+ } .modal__fullscreen_1oadu .modal__component_1oadu {
27
27
  flex: 1;
28
28
  border-radius: 0;
29
29
  overflow: auto;
30
- } .modal__size-500_116r0 {
30
+ } .modal__size-500_1oadu {
31
31
  width: var(--modal-s-width);
32
- } .modal__size-600_116r0 {
32
+ } .modal__size-600_1oadu {
33
33
  width: var(--modal-m-width);
34
- } .modal__size-800_116r0 {
34
+ } .modal__size-800_1oadu {
35
35
  width: var(--modal-l-width);
36
- } .modal__size-1140_116r0 {
36
+ } .modal__size-1140_1oadu {
37
37
  width: var(--modal-xl-width);
38
38
  }
@@ -2,7 +2,7 @@
2
2
 
3
3
  require('./desktop.css');
4
4
 
5
- var desktopStyles = {"wrapper":"modal__wrapper_116r0","component":"modal__component_116r0","fullscreen":"modal__fullscreen_116r0","size-500":"modal__size-500_116r0","size-600":"modal__size-600_116r0","size-800":"modal__size-800_116r0","size-1140":"modal__size-1140_116r0"};
5
+ var desktopStyles = {"wrapper":"modal__wrapper_1oadu","component":"modal__component_1oadu","fullscreen":"modal__fullscreen_1oadu","size-500":"modal__size-500_1oadu","size-600":"modal__size-600_1oadu","size-800":"modal__size-800_1oadu","size-1140":"modal__size-1140_1oadu"};
6
6
 
7
7
  module.exports = desktopStyles;
8
8
  //# sourceMappingURL=desktop.module.css.js.map
@@ -0,0 +1,11 @@
1
+ import React from 'react';
2
+ import { View } from './typings';
3
+ export declare const Modal: React.ForwardRefExoticComponent<import("@alfalab/core-components-base-modal").BaseModalProps & {
4
+ size?: "fullscreen" | "s" | "m" | "l" | "xl" | 500 | 600 | 800 | 1140 | undefined;
5
+ fullscreen?: boolean | undefined;
6
+ fixedPosition?: boolean | undefined;
7
+ hasCloser?: boolean | undefined;
8
+ iOSLock?: boolean | undefined;
9
+ } & {
10
+ view: View;
11
+ } & React.RefAttributes<HTMLDivElement>>;
@@ -0,0 +1,65 @@
1
+ 'use strict';
2
+
3
+ Object.defineProperty(exports, '__esModule', { value: true });
4
+
5
+ var tslib = require('tslib');
6
+ var React = require('react');
7
+ var mergeRefs = require('react-merge-refs');
8
+ var cn = require('classnames');
9
+ var dynamicMixins = require('@alfalab/core-components-base-modal/dynamic-mixins');
10
+ var consts = require('./consts.js');
11
+ var ResponsiveContext = require('./ResponsiveContext.js');
12
+ var desktop_module = require('./desktop/desktop.module.css.js');
13
+ var mobile_module = require('./mobile/mobile.module.css.js');
14
+ var transitions_module = require('./transitions.module.css.js');
15
+
16
+ function _interopDefaultCompat (e) { return e && typeof e === 'object' && 'default' in e ? e : { default: e }; }
17
+
18
+ var React__default = /*#__PURE__*/_interopDefaultCompat(React);
19
+ var mergeRefs__default = /*#__PURE__*/_interopDefaultCompat(mergeRefs);
20
+ var cn__default = /*#__PURE__*/_interopDefaultCompat(cn);
21
+
22
+ var Modal = React.forwardRef(function (_a, ref) {
23
+ var _b;
24
+ var _c;
25
+ var _d = _a.size, size = _d === void 0 ? 500 : _d, fixedPosition = _a.fixedPosition, fullscreen = _a.fullscreen, children = _a.children, className = _a.className, wrapperClassName = _a.wrapperClassName, _e = _a.transitionProps, transitionProps = _e === void 0 ? {} : _e, view = _a.view, dataTestId = _a.dataTestId, restProps = tslib.__rest(_a, ["size", "fixedPosition", "fullscreen", "children", "className", "wrapperClassName", "transitionProps", "view", "dataTestId"]);
26
+ // TODO: удалить, после удаления пропсы fullscreen
27
+ var componentSize = fullscreen ? 'fullscreen' : size;
28
+ var modalRef = React.useRef(null);
29
+ var handleEntered = function (node, isAppearing) {
30
+ if (fixedPosition && modalRef.current) {
31
+ var content = modalRef.current.querySelector(".".concat(desktop_module.component));
32
+ if (content) {
33
+ var marginTop = window.getComputedStyle(content).marginTop;
34
+ content.style.marginTop = marginTop;
35
+ }
36
+ }
37
+ if (transitionProps.onEntered) {
38
+ transitionProps.onEntered(node, isAppearing);
39
+ }
40
+ };
41
+ var baseModalProps = view === 'desktop'
42
+ ? {
43
+ ref: mergeRefs__default.default([ref, modalRef]),
44
+ wrapperClassName: cn__default.default(desktop_module.wrapper, wrapperClassName, (_b = {},
45
+ _b[desktop_module.fullscreen] = componentSize === 'fullscreen',
46
+ _b)),
47
+ className: cn__default.default(desktop_module.component, className, desktop_module[consts.SIZE_TO_CLASSNAME_MAP[componentSize]]),
48
+ backdropProps: tslib.__assign({ invisible: componentSize === 'fullscreen' }, restProps.backdropProps),
49
+ transitionProps: tslib.__assign(tslib.__assign({ classNames: transitions_module }, transitionProps), { onEntered: handleEntered }),
50
+ }
51
+ : {
52
+ wrapperClassName: wrapperClassName,
53
+ ref: ref,
54
+ transitionProps: tslib.__assign({ classNames: transitions_module }, transitionProps),
55
+ className: cn__default.default(className, mobile_module.component),
56
+ contentProps: tslib.__assign(tslib.__assign({}, restProps.contentProps), { className: cn__default.default(mobile_module.content, (_c = restProps.contentProps) === null || _c === void 0 ? void 0 : _c.className) }),
57
+ };
58
+ var contextValue = React.useMemo(function () { return ({ size: componentSize, view: view, dataTestId: dataTestId }); }, [componentSize, view, dataTestId]);
59
+ return (React__default.default.createElement(ResponsiveContext.ResponsiveContext.Provider, { value: contextValue },
60
+ React__default.default.createElement(dynamicMixins.BaseModal, tslib.__assign({}, restProps, baseModalProps, { dataTestId: dataTestId }), children)));
61
+ });
62
+ Modal.displayName = 'Modal';
63
+
64
+ exports.Modal = Modal;
65
+ //# sourceMappingURL=Component.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Component.js","sources":["../src/Component.tsx"],"sourcesContent":["import React, { forwardRef, useMemo, useRef } from 'react';\nimport mergeRefs from 'react-merge-refs';\nimport cn from 'classnames';\n\nimport { BaseModal } from '@alfalab/core-components-base-modal';\n\nimport { SIZE_TO_CLASSNAME_MAP } from './consts';\nimport { ResponsiveContext } from './ResponsiveContext';\nimport { ModalDesktopProps, View } from './typings';\n\nimport desktopStyles from './desktop/desktop.module.css';\nimport mobileStyles from './mobile/mobile.module.css';\nimport transitions from './transitions.module.css';\n\nexport const Modal = forwardRef<HTMLDivElement, ModalDesktopProps & { view: View }>(\n (\n {\n size = 500,\n fixedPosition,\n fullscreen,\n children,\n className,\n wrapperClassName,\n transitionProps = {},\n view,\n dataTestId,\n ...restProps\n },\n ref,\n ) => {\n // TODO: удалить, после удаления пропсы fullscreen\n const componentSize = fullscreen ? 'fullscreen' : size;\n\n const modalRef = useRef<HTMLElement>(null);\n\n const handleEntered = (node: HTMLElement, isAppearing: boolean) => {\n if (fixedPosition && modalRef.current) {\n const content = modalRef.current.querySelector<HTMLElement>(\n `.${desktopStyles.component}`,\n );\n\n if (content) {\n const { marginTop } = window.getComputedStyle(content);\n\n content.style.marginTop = marginTop;\n }\n }\n\n if (transitionProps.onEntered) {\n transitionProps.onEntered(node, isAppearing);\n }\n };\n\n const baseModalProps =\n view === 'desktop'\n ? {\n ref: mergeRefs([ref, modalRef]),\n wrapperClassName: cn(desktopStyles.wrapper, wrapperClassName, {\n [desktopStyles.fullscreen]: componentSize === 'fullscreen',\n }),\n className: cn(\n desktopStyles.component,\n className,\n desktopStyles[SIZE_TO_CLASSNAME_MAP[componentSize]],\n ),\n backdropProps: {\n invisible: componentSize === 'fullscreen',\n ...restProps.backdropProps,\n },\n transitionProps: {\n classNames: transitions,\n ...transitionProps,\n onEntered: handleEntered,\n },\n }\n : {\n wrapperClassName,\n ref,\n transitionProps: {\n classNames: transitions,\n ...transitionProps,\n },\n className: cn(className, mobileStyles.component),\n contentProps: {\n ...restProps.contentProps,\n className: cn(mobileStyles.content, restProps.contentProps?.className),\n },\n };\n\n const contextValue = useMemo(\n () => ({ size: componentSize, view, dataTestId }),\n [componentSize, view, dataTestId],\n );\n\n return (\n <ResponsiveContext.Provider value={contextValue}>\n <BaseModal {...restProps} {...baseModalProps} dataTestId={dataTestId}>\n {children}\n </BaseModal>\n </ResponsiveContext.Provider>\n );\n },\n);\n\nModal.displayName = 'Modal';\n"],"names":["forwardRef","__rest","useRef","desktopStyles","mergeRefs","cn","SIZE_TO_CLASSNAME_MAP","__assign","transitions","mobileStyles","useMemo","React","ResponsiveContext","BaseModal"],"mappings":"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"}
@@ -0,0 +1,33 @@
1
+ import React from 'react';
2
+ import { Content } from './components/content/Component';
3
+ import { Controls } from './components/controls';
4
+ import { Footer } from './components/footer/Component';
5
+ import { Header } from './components/header/Component';
6
+ declare const ModalResponsiveComponent: React.ForwardRefExoticComponent<import("@alfalab/core-components-base-modal").BaseModalProps & {
7
+ size?: "fullscreen" | "s" | "m" | "l" | "xl" | 500 | 600 | 800 | 1140 | undefined;
8
+ fullscreen?: boolean | undefined;
9
+ fixedPosition?: boolean | undefined;
10
+ hasCloser?: boolean | undefined;
11
+ iOSLock?: boolean | undefined;
12
+ } & {
13
+ breakpoint?: number | undefined;
14
+ client?: "desktop" | "mobile" | undefined;
15
+ defaultMatchMediaValue?: boolean | (() => boolean) | undefined;
16
+ } & React.RefAttributes<HTMLDivElement>>;
17
+ export declare const ModalResponsive: React.ForwardRefExoticComponent<import("@alfalab/core-components-base-modal").BaseModalProps & {
18
+ size?: "fullscreen" | "s" | "m" | "l" | "xl" | 500 | 600 | 800 | 1140 | undefined;
19
+ fullscreen?: boolean | undefined;
20
+ fixedPosition?: boolean | undefined;
21
+ hasCloser?: boolean | undefined;
22
+ iOSLock?: boolean | undefined;
23
+ } & {
24
+ breakpoint?: number | undefined;
25
+ client?: "desktop" | "mobile" | undefined;
26
+ defaultMatchMediaValue?: boolean | (() => boolean) | undefined;
27
+ } & React.RefAttributes<HTMLDivElement>> & {
28
+ Header: React.FC<import("./components/header/Component").HeaderProps>;
29
+ Content: React.FC<import("./typings").ContentProps>;
30
+ Footer: React.FC<import("./components/footer/Component").FooterProps>;
31
+ Controls: React.FC<import("./components/controls").ControlsProps>;
32
+ };
33
+ export { ModalResponsiveComponent as ModalComponentResponsive, Header as HeaderResponsive, Content as ContentResponsive, Footer as FooterResponsive, Controls as ControlsResponsive, };
@@ -0,0 +1,37 @@
1
+ 'use strict';
2
+
3
+ Object.defineProperty(exports, '__esModule', { value: true });
4
+
5
+ var tslib = require('tslib');
6
+ var React = require('react');
7
+ var dynamicMixins = require('@alfalab/core-components-mq/dynamic-mixins');
8
+ var Component$1 = require('./components/content/Component.js');
9
+ var Component$3 = require('./components/controls/Component.js');
10
+ var Component$2 = require('./components/footer/Component.js');
11
+ var Component = require('./components/header/Component.js');
12
+ var Component$4 = require('./Component.js');
13
+
14
+ function _interopDefaultCompat (e) { return e && typeof e === 'object' && 'default' in e ? e : { default: e }; }
15
+
16
+ var React__default = /*#__PURE__*/_interopDefaultCompat(React);
17
+
18
+ var ModalResponsiveComponent = React.forwardRef(function (_a, ref) {
19
+ var children = _a.children, breakpoint = _a.breakpoint, client = _a.client, _b = _a.defaultMatchMediaValue, defaultMatchMediaValue = _b === void 0 ? client === undefined ? undefined : client === 'desktop' : _b, restProps = tslib.__rest(_a, ["children", "breakpoint", "client", "defaultMatchMediaValue"]);
20
+ var isDesktop = dynamicMixins.useIsDesktop(breakpoint, defaultMatchMediaValue);
21
+ return (React__default.default.createElement(Component$4.Modal, tslib.__assign({ ref: ref }, restProps, { view: isDesktop ? 'desktop' : 'mobile' }), children));
22
+ });
23
+ var ModalResponsive = Object.assign(ModalResponsiveComponent, {
24
+ Header: Component.Header,
25
+ Content: Component$1.Content,
26
+ Footer: Component$2.Footer,
27
+ Controls: Component$3.Controls,
28
+ });
29
+ ModalResponsiveComponent.displayName = 'ModalResponsiveComponent';
30
+
31
+ exports.ContentResponsive = Component$1.Content;
32
+ exports.ControlsResponsive = Component$3.Controls;
33
+ exports.FooterResponsive = Component$2.Footer;
34
+ exports.HeaderResponsive = Component.Header;
35
+ exports.ModalComponentResponsive = ModalResponsiveComponent;
36
+ exports.ModalResponsive = ModalResponsive;
37
+ //# sourceMappingURL=Component.responsive.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Component.responsive.js","sources":["../src/Component.responsive.tsx"],"sourcesContent":["import React, { forwardRef } from 'react';\n\nimport { useIsDesktop } from '@alfalab/core-components-mq';\n\nimport { Content } from './components/content/Component';\nimport { Controls } from './components/controls';\nimport { Footer } from './components/footer/Component';\nimport { Header } from './components/header/Component';\nimport { Modal } from './Component';\nimport type { ModalResponsiveProps } from './typings';\n\nconst ModalResponsiveComponent = forwardRef<HTMLDivElement, ModalResponsiveProps>(\n (\n {\n children,\n breakpoint,\n client,\n defaultMatchMediaValue = client === undefined ? undefined : client === 'desktop',\n ...restProps\n },\n ref,\n ) => {\n const isDesktop = useIsDesktop(breakpoint, defaultMatchMediaValue);\n\n return (\n <Modal ref={ref} {...restProps} view={isDesktop ? 'desktop' : 'mobile'}>\n {children}\n </Modal>\n );\n },\n);\n\nexport const ModalResponsive = Object.assign(ModalResponsiveComponent, {\n Header,\n Content,\n Footer,\n Controls,\n});\n\nModalResponsiveComponent.displayName = 'ModalResponsiveComponent';\n\nexport {\n ModalResponsiveComponent as ModalComponentResponsive,\n Header as HeaderResponsive,\n Content as ContentResponsive,\n Footer as FooterResponsive,\n Controls as ControlsResponsive,\n};\n"],"names":["forwardRef","__rest","useIsDesktop","React","Modal","__assign","Header","Content","Footer","Controls"],"mappings":";;;;;;;;;;;;;;;;;AAWA,IAAM,wBAAwB,GAAGA,gBAAU,CACvC,UACI,EAMC,EACD,GAAG,EAAA;AANC,IAAA,IAAA,QAAQ,GAAA,EAAA,CAAA,QAAA,EACR,UAAU,GAAA,EAAA,CAAA,UAAA,EACV,MAAM,GAAA,EAAA,CAAA,MAAA,EACN,EAAA,GAAA,EAAA,CAAA,sBAAgF,EAAhF,sBAAsB,mBAAG,MAAM,KAAK,SAAS,GAAG,SAAS,GAAG,MAAM,KAAK,SAAS,GAAA,EAAA,EAC7E,SAAS,GAAAC,YAAA,CAAA,EAAA,EALhB,8DAMC,CADe;IAIhB,IAAM,SAAS,GAAGC,0BAAY,CAAC,UAAU,EAAE,sBAAsB,CAAC;IAElE,QACIC,sBAAC,CAAA,aAAA,CAAAC,iBAAK,EAACC,cAAA,CAAA,EAAA,GAAG,EAAE,GAAG,EAAA,EAAM,SAAS,EAAA,EAAE,IAAI,EAAE,SAAS,GAAG,SAAS,GAAG,QAAQ,EACjE,CAAA,EAAA,QAAQ,CACL;AAEhB,CAAC;IAGQ,eAAe,GAAG,MAAM,CAAC,MAAM,CAAC,wBAAwB,EAAE;AACnE,IAAA,MAAM,EAAAC,gBAAA;AACN,IAAA,OAAO,EAAAC,mBAAA;AACP,IAAA,MAAM,EAAAC,kBAAA;AACN,IAAA,QAAQ,EAAAC,oBAAA;AACX,CAAA;AAED,wBAAwB,CAAC,WAAW,GAAG,0BAA0B;;;;;;;;;"}
@@ -0,0 +1,3 @@
1
+ /// <reference types="react" />
2
+ import { BaseModalContext } from '@alfalab/core-components-base-modal';
3
+ export declare const ModalContext: import("react").Context<BaseModalContext>;
@@ -0,0 +1,10 @@
1
+ 'use strict';
2
+
3
+ Object.defineProperty(exports, '__esModule', { value: true });
4
+
5
+ var dynamicMixins = require('@alfalab/core-components-base-modal/dynamic-mixins');
6
+
7
+ var ModalContext = dynamicMixins.BaseModalContext;
8
+
9
+ exports.ModalContext = ModalContext;
10
+ //# sourceMappingURL=Context.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Context.js","sources":["../src/Context.tsx"],"sourcesContent":["import { BaseModalContext } from '@alfalab/core-components-base-modal';\n\nexport const ModalContext = BaseModalContext;\n"],"names":["BaseModalContext"],"mappings":";;;;;;AAEO,IAAM,YAAY,GAAGA;;;;"}