@alfalab/core-components-modal 7.0.14 → 8.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (146) hide show
  1. package/Component.desktop.d.ts +0 -1
  2. package/Component.desktop.js +1 -2
  3. package/Component.js +3 -3
  4. package/Component.mobile.d.ts +0 -1
  5. package/Component.mobile.js +1 -2
  6. package/Component.responsive.d.ts +0 -1
  7. package/Component.responsive.js +1 -2
  8. package/components/content/Component.js +3 -3
  9. package/components/content/desktop.css +7 -7
  10. package/components/content/index.css +4 -4
  11. package/components/content/mobile.css +3 -3
  12. package/components/footer/Component.js +4 -4
  13. package/components/footer/desktop.css +9 -9
  14. package/components/footer/index.css +4 -4
  15. package/components/footer/layout.css +29 -29
  16. package/components/footer/mobile.css +3 -3
  17. package/components/header/Component.js +3 -3
  18. package/components/header/desktop.css +15 -15
  19. package/components/header/index.css +4 -4
  20. package/components/header/mobile.css +4 -4
  21. package/cssm/Component.desktop.d.ts +0 -1
  22. package/cssm/Component.desktop.js +1 -2
  23. package/cssm/Component.mobile.d.ts +0 -1
  24. package/cssm/Component.mobile.js +1 -2
  25. package/cssm/Component.responsive.d.ts +0 -1
  26. package/cssm/Component.responsive.js +1 -2
  27. package/cssm/desktop.d.ts +1 -1
  28. package/cssm/desktop.js +1 -1
  29. package/cssm/index.d.ts +2 -3
  30. package/cssm/index.js +4 -5
  31. package/cssm/mobile.d.ts +1 -1
  32. package/cssm/mobile.js +1 -1
  33. package/cssm/shared.d.ts +1 -0
  34. package/cssm/shared.js +10 -0
  35. package/desktop.css +9 -9
  36. package/desktop.d.ts +1 -1
  37. package/desktop.js +1 -1
  38. package/esm/Component.desktop.d.ts +0 -1
  39. package/esm/Component.desktop.js +1 -2
  40. package/esm/Component.js +3 -3
  41. package/esm/Component.mobile.d.ts +0 -1
  42. package/esm/Component.mobile.js +1 -2
  43. package/esm/Component.responsive.d.ts +0 -1
  44. package/esm/Component.responsive.js +1 -2
  45. package/esm/components/content/Component.js +3 -3
  46. package/esm/components/content/desktop.css +7 -7
  47. package/esm/components/content/index.css +4 -4
  48. package/esm/components/content/mobile.css +3 -3
  49. package/esm/components/footer/Component.js +4 -4
  50. package/esm/components/footer/desktop.css +9 -9
  51. package/esm/components/footer/index.css +4 -4
  52. package/esm/components/footer/layout.css +29 -29
  53. package/esm/components/footer/mobile.css +3 -3
  54. package/esm/components/header/Component.js +3 -3
  55. package/esm/components/header/desktop.css +15 -15
  56. package/esm/components/header/index.css +4 -4
  57. package/esm/components/header/mobile.css +4 -4
  58. package/esm/desktop.css +9 -9
  59. package/esm/desktop.d.ts +1 -1
  60. package/esm/desktop.js +1 -1
  61. package/esm/index.d.ts +2 -3
  62. package/esm/index.js +4 -4
  63. package/esm/mobile.css +2 -2
  64. package/esm/mobile.d.ts +1 -1
  65. package/esm/mobile.js +1 -1
  66. package/esm/shared.d.ts +1 -0
  67. package/esm/shared.js +2 -0
  68. package/esm/transitions.css +8 -8
  69. package/index.d.ts +2 -3
  70. package/index.js +4 -5
  71. package/mobile.css +2 -2
  72. package/mobile.d.ts +1 -1
  73. package/mobile.js +1 -1
  74. package/modern/Component.desktop.d.ts +0 -1
  75. package/modern/Component.desktop.js +1 -2
  76. package/modern/Component.js +3 -3
  77. package/modern/Component.mobile.d.ts +0 -1
  78. package/modern/Component.mobile.js +1 -2
  79. package/modern/Component.responsive.d.ts +0 -1
  80. package/modern/Component.responsive.js +1 -2
  81. package/modern/components/content/Component.js +3 -3
  82. package/modern/components/content/desktop.css +7 -7
  83. package/modern/components/content/index.css +4 -4
  84. package/modern/components/content/mobile.css +3 -3
  85. package/modern/components/footer/Component.js +4 -4
  86. package/modern/components/footer/desktop.css +9 -9
  87. package/modern/components/footer/index.css +4 -4
  88. package/modern/components/footer/layout.css +29 -29
  89. package/modern/components/footer/mobile.css +3 -3
  90. package/modern/components/header/Component.js +3 -3
  91. package/modern/components/header/desktop.css +15 -15
  92. package/modern/components/header/index.css +4 -4
  93. package/modern/components/header/mobile.css +4 -4
  94. package/modern/desktop.css +9 -9
  95. package/modern/desktop.d.ts +1 -1
  96. package/modern/desktop.js +1 -1
  97. package/modern/index.d.ts +2 -3
  98. package/modern/index.js +4 -4
  99. package/modern/mobile.css +2 -2
  100. package/modern/mobile.d.ts +1 -1
  101. package/modern/mobile.js +1 -1
  102. package/modern/shared.d.ts +1 -0
  103. package/modern/shared.js +2 -0
  104. package/modern/transitions.css +8 -8
  105. package/package.json +26 -5
  106. package/shared.d.ts +1 -0
  107. package/shared.js +10 -0
  108. package/src/Component.desktop.tsx +20 -0
  109. package/src/Component.mobile.tsx +17 -0
  110. package/src/Component.responsive.tsx +35 -0
  111. package/src/Component.tsx +93 -0
  112. package/src/Context.tsx +3 -0
  113. package/src/ResponsiveContext.tsx +8 -0
  114. package/src/components/content/Component.tsx +29 -0
  115. package/src/components/content/desktop.module.css +13 -0
  116. package/src/components/content/index.module.css +16 -0
  117. package/src/components/content/mobile.module.css +9 -0
  118. package/src/components/footer/Component.tsx +69 -0
  119. package/src/components/footer/desktop.module.css +22 -0
  120. package/src/components/footer/index.module.css +17 -0
  121. package/src/components/footer/layout.module.css +86 -0
  122. package/src/components/footer/mobile.module.css +9 -0
  123. package/src/components/header/Component.tsx +60 -0
  124. package/src/components/header/desktop.module.css +42 -0
  125. package/src/components/header/index.module.css +15 -0
  126. package/src/components/header/mobile.module.css +18 -0
  127. package/src/desktop.module.css +38 -0
  128. package/src/desktop.ts +2 -0
  129. package/src/index.ts +2 -0
  130. package/src/mobile.module.css +7 -0
  131. package/src/mobile.ts +2 -0
  132. package/src/shared.ts +1 -0
  133. package/src/transitions.module.css +24 -0
  134. package/src/typings.ts +63 -0
  135. package/src/utils.ts +90 -0
  136. package/src/vars.css +47 -0
  137. package/transitions.css +8 -8
  138. package/cssm/responsive.d.ts +0 -2
  139. package/cssm/responsive.js +0 -35
  140. package/esm/responsive.d.ts +0 -2
  141. package/esm/responsive.js +0 -14
  142. package/modern/responsive.d.ts +0 -2
  143. package/modern/responsive.js +0 -13
  144. package/responsive.d.ts +0 -2
  145. package/responsive.js +0 -22
  146. package/send-stats.js +0 -82
@@ -1,4 +1,4 @@
1
- /* hash: 5hjdu */
1
+ /* hash: uw9pb */
2
2
  :root {
3
3
  } /* deprecated */ :root { /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */
4
4
  } :root { /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */
@@ -44,31 +44,31 @@
44
44
  /* mobile */
45
45
 
46
46
  /* paddings */
47
- } .modal__header_17m3b {
47
+ } .modal__header_1lae7 {
48
48
  border-top-left-radius: var(--modal-border-radius);
49
49
  border-top-right-radius: var(--modal-border-radius);
50
- } .modal__content_17m3b {
50
+ } .modal__content_1lae7 {
51
51
  font-weight: var(--modal-header-desktop-font-weight);
52
52
  font-family: var(--modal-header-desktop-font-family);
53
- } .modal__s_17m3b .modal__content_17m3b,
54
- .modal__m_17m3b .modal__content_17m3b {
53
+ } .modal__s_1lae7 .modal__content_1lae7,
54
+ .modal__m_1lae7 .modal__content_1lae7 {
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_17m3b .modal__content_17m3b,
59
- .modal__xl_17m3b .modal__content_17m3b,
60
- .modal__fullscreen_17m3b .modal__content_17m3b {
58
+ } .modal__l_1lae7 .modal__content_1lae7,
59
+ .modal__xl_1lae7 .modal__content_1lae7,
60
+ .modal__fullscreen_1lae7 .modal__content_1lae7 {
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_17m3b,
65
- .modal__m_17m3b,
66
- .modal__l_17m3b,
67
- .modal__xl_17m3b,
68
- .modal__fullscreen_17m3b {
64
+ } .modal__s_1lae7,
65
+ .modal__m_1lae7,
66
+ .modal__l_1lae7,
67
+ .modal__xl_1lae7,
68
+ .modal__fullscreen_1lae7 {
69
69
  padding: var(--modal-s-header-paddings);
70
- } .modal__sticky_17m3b {
70
+ } .modal__sticky_1lae7 {
71
71
  top: calc(var(--modal-vertical-padding) * -1)
72
- } .modal__sticky_17m3b.modal__fullscreen_17m3b {
72
+ } .modal__sticky_1lae7.modal__fullscreen_1lae7 {
73
73
  top: 0;
74
74
  }
@@ -1,4 +1,4 @@
1
- /* hash: eb8h9 */
1
+ /* hash: 7h38i */
2
2
  :root {
3
3
  } /* deprecated */ :root {
4
4
  --color-light-bg-primary: #fff;
@@ -32,12 +32,12 @@
32
32
  /* mobile */
33
33
 
34
34
  /* paddings */
35
- } .modal__highlighted_1ntav {
35
+ } .modal__highlighted_bfuci {
36
36
  background: var(--modal-header-highlight-background);
37
37
  box-shadow: var(--modal-header-highlight-box-shadow);
38
- } .modal__sticky_1ntav {
38
+ } .modal__sticky_bfuci {
39
39
  position: sticky;
40
40
  z-index: 1
41
- } .modal__sticky_1ntav.modal__hasContent_1ntav {
41
+ } .modal__sticky_bfuci.modal__hasContent_bfuci {
42
42
  background: var(--modal-header-background);
43
43
  }
@@ -1,4 +1,4 @@
1
- /* hash: ve5dg */
1
+ /* hash: 1o47b */
2
2
  :root {
3
3
  } /* deprecated */ :root { /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */
4
4
  } :root { /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */
@@ -38,11 +38,11 @@
38
38
 
39
39
  /* paddings */
40
40
  --modal-header-mobile-paddings: var(--gap-2xs) var(--gap-xs);
41
- } .modal__header_9qfdg {
41
+ } .modal__header_1060z {
42
42
  padding: var(--modal-header-mobile-paddings);
43
- } .modal__sticky_9qfdg {
43
+ } .modal__sticky_1060z {
44
44
  top: 0;
45
- } .modal__content_9qfdg {
45
+ } .modal__content_1060z {
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/esm/desktop.css CHANGED
@@ -1,4 +1,4 @@
1
- /* hash: jdbrk */
1
+ /* hash: 1on2u */
2
2
  :root {
3
3
  } /* deprecated */ :root { /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */
4
4
  } :root { /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */
@@ -35,25 +35,25 @@
35
35
  /* mobile */
36
36
 
37
37
  /* paddings */
38
- } .modal__wrapper_f3bnb {
38
+ } .modal__wrapper_1rgs6 {
39
39
  padding-top: var(--modal-vertical-padding);
40
40
  padding-bottom: var(--modal-vertical-padding);
41
- } .modal__component_f3bnb {
41
+ } .modal__component_1rgs6 {
42
42
  width: 100%;
43
43
  max-width: 100%;
44
44
  border-radius: var(--modal-border-radius);
45
- } .modal__fullscreen_f3bnb {
45
+ } .modal__fullscreen_1rgs6 {
46
46
  padding-top: 0;
47
47
  padding-bottom: 0
48
- } .modal__fullscreen_f3bnb .modal__component_f3bnb {
48
+ } .modal__fullscreen_1rgs6 .modal__component_1rgs6 {
49
49
  flex: 1;
50
50
  border-radius: 0;
51
- } .modal__s_f3bnb {
51
+ } .modal__s_1rgs6 {
52
52
  width: var(--modal-s-width);
53
- } .modal__m_f3bnb {
53
+ } .modal__m_1rgs6 {
54
54
  width: var(--modal-m-width);
55
- } .modal__l_f3bnb {
55
+ } .modal__l_1rgs6 {
56
56
  width: var(--modal-l-width);
57
- } .modal__xl_f3bnb {
57
+ } .modal__xl_1rgs6 {
58
58
  width: var(--modal-xl-width);
59
59
  }
package/esm/desktop.d.ts CHANGED
@@ -1,2 +1,2 @@
1
1
  export * from "./Component.desktop";
2
- export {};
2
+ export { ModalDesktopProps } from "./typings";
package/esm/desktop.js CHANGED
@@ -1,7 +1,6 @@
1
1
  export { ModalDesktop } from './Component.desktop.js';
2
2
  import 'tslib';
3
3
  import 'react';
4
- import '@alfalab/core-components-navigation-bar/esm';
5
4
  import './components/content/Component.js';
6
5
  import 'classnames';
7
6
  import './Context.js';
@@ -9,5 +8,6 @@ import '@alfalab/core-components-base-modal/esm';
9
8
  import './ResponsiveContext.js';
10
9
  import './components/footer/Component.js';
11
10
  import './components/header/Component.js';
11
+ import '@alfalab/core-components-navigation-bar/esm';
12
12
  import './Component.js';
13
13
  import 'react-merge-refs';
package/esm/index.d.ts CHANGED
@@ -1,3 +1,2 @@
1
- export * from "./responsive";
2
- export * from "./Context";
3
- export * from "./typings";
1
+ export { ModalResponsive as Modal } from "./Component.responsive";
2
+ export { ModalResponsiveProps as ModalProps } from "./typings";
package/esm/index.js CHANGED
@@ -1,14 +1,14 @@
1
- export { ModalResponsive } from './Component.responsive.js';
2
- export { ModalContext } from './Context.js';
1
+ export { ModalResponsive as Modal } from './Component.responsive.js';
3
2
  import 'tslib';
4
3
  import 'react';
5
- import '@alfalab/core-components-navigation-bar/esm';
6
4
  import '@alfalab/hooks';
7
5
  import './components/content/Component.js';
8
6
  import 'classnames';
7
+ import './Context.js';
8
+ import '@alfalab/core-components-base-modal/esm';
9
9
  import './ResponsiveContext.js';
10
10
  import './components/footer/Component.js';
11
11
  import './components/header/Component.js';
12
+ import '@alfalab/core-components-navigation-bar/esm';
12
13
  import './Component.js';
13
14
  import 'react-merge-refs';
14
- import '@alfalab/core-components-base-modal/esm';
package/esm/mobile.css CHANGED
@@ -1,4 +1,4 @@
1
- /* hash: 1r5x7 */
1
+ /* hash: w94zz */
2
2
  :root {
3
3
  } /* deprecated */ :root { /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */
4
4
  } :root { /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */
@@ -27,7 +27,7 @@
27
27
  /* mobile */
28
28
 
29
29
  /* paddings */
30
- } .modal__component_8lzj1 {
30
+ } .modal__component_tiju5 {
31
31
  flex: 1;
32
32
  width: 100%;
33
33
  max-width: 600px;
package/esm/mobile.d.ts CHANGED
@@ -1,2 +1,2 @@
1
1
  export * from "./Component.mobile";
2
- export {};
2
+ export { ModalMobileProps } from "./typings";
package/esm/mobile.js CHANGED
@@ -1,7 +1,6 @@
1
1
  export { ModalMobile } from './Component.mobile.js';
2
2
  import 'tslib';
3
3
  import 'react';
4
- import '@alfalab/core-components-navigation-bar/esm';
5
4
  import './components/content/Component.js';
6
5
  import 'classnames';
7
6
  import './Context.js';
@@ -9,5 +8,6 @@ import '@alfalab/core-components-base-modal/esm';
9
8
  import './ResponsiveContext.js';
10
9
  import './components/footer/Component.js';
11
10
  import './components/header/Component.js';
11
+ import '@alfalab/core-components-navigation-bar/esm';
12
12
  import './Component.js';
13
13
  import 'react-merge-refs';
@@ -0,0 +1 @@
1
+ export { ModalContext } from "./Context";
package/esm/shared.js ADDED
@@ -0,0 +1,2 @@
1
+ export { ModalContext } from './Context.js';
2
+ import '@alfalab/core-components-base-modal/esm';
@@ -1,24 +1,24 @@
1
- /* hash: wsmwb */
2
- .modal__appear_1j6wr,
3
- .modal__enter_1j6wr {
1
+ /* hash: 14o36 */
2
+ .modal__appear_e1pnc,
3
+ .modal__enter_e1pnc {
4
4
  opacity: 0;
5
5
  transform: translateY(15px);
6
6
  }
7
7
 
8
- .modal__appearActive_1j6wr,
9
- .modal__enterActive_1j6wr {
8
+ .modal__appearActive_e1pnc,
9
+ .modal__enterActive_e1pnc {
10
10
  opacity: 1;
11
11
  transform: translateY(0);
12
12
  transition: opacity 200ms ease-in, transform 200ms ease-in;
13
13
  }
14
14
 
15
- .modal__exit_1j6wr {
15
+ .modal__exit_e1pnc {
16
16
  opacity: 1;
17
17
  transform: translateY(0);
18
18
  }
19
19
 
20
- .modal__exitActive_1j6wr,
21
- .modal__exitDone_1j6wr {
20
+ .modal__exitActive_e1pnc,
21
+ .modal__exitDone_e1pnc {
22
22
  opacity: 0;
23
23
  transform: translateY(15px);
24
24
  transition: opacity 200ms ease-out, transform 200ms ease-out;
package/index.d.ts CHANGED
@@ -1,3 +1,2 @@
1
- export * from "./responsive";
2
- export * from "./Context";
3
- export * from "./typings";
1
+ export { ModalResponsive as Modal } from "./Component.responsive";
2
+ export { ModalResponsiveProps as ModalProps } from "./typings";
package/index.js CHANGED
@@ -3,21 +3,20 @@
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
5
  var Component_responsive = require('./Component.responsive.js');
6
- var Context = require('./Context.js');
7
6
  require('tslib');
8
7
  require('react');
9
- require('@alfalab/core-components-navigation-bar');
10
8
  require('@alfalab/hooks');
11
9
  require('./components/content/Component.js');
12
10
  require('classnames');
11
+ require('./Context.js');
12
+ require('@alfalab/core-components-base-modal');
13
13
  require('./ResponsiveContext.js');
14
14
  require('./components/footer/Component.js');
15
15
  require('./components/header/Component.js');
16
+ require('@alfalab/core-components-navigation-bar');
16
17
  require('./Component.js');
17
18
  require('react-merge-refs');
18
- require('@alfalab/core-components-base-modal');
19
19
 
20
20
 
21
21
 
22
- exports.ModalResponsive = Component_responsive.ModalResponsive;
23
- exports.ModalContext = Context.ModalContext;
22
+ exports.Modal = Component_responsive.ModalResponsive;
package/mobile.css CHANGED
@@ -1,4 +1,4 @@
1
- /* hash: 1r5x7 */
1
+ /* hash: w94zz */
2
2
  :root {
3
3
  } /* deprecated */ :root { /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */
4
4
  } :root { /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */
@@ -27,7 +27,7 @@
27
27
  /* mobile */
28
28
 
29
29
  /* paddings */
30
- } .modal__component_8lzj1 {
30
+ } .modal__component_tiju5 {
31
31
  flex: 1;
32
32
  width: 100%;
33
33
  max-width: 600px;
package/mobile.d.ts CHANGED
@@ -1,2 +1,2 @@
1
1
  export * from "./Component.mobile";
2
- export {};
2
+ export { ModalMobileProps } from "./typings";
package/mobile.js CHANGED
@@ -5,7 +5,6 @@ Object.defineProperty(exports, '__esModule', { value: true });
5
5
  var Component_mobile = require('./Component.mobile.js');
6
6
  require('tslib');
7
7
  require('react');
8
- require('@alfalab/core-components-navigation-bar');
9
8
  require('./components/content/Component.js');
10
9
  require('classnames');
11
10
  require('./Context.js');
@@ -13,6 +12,7 @@ require('@alfalab/core-components-base-modal');
13
12
  require('./ResponsiveContext.js');
14
13
  require('./components/footer/Component.js');
15
14
  require('./components/header/Component.js');
15
+ require('@alfalab/core-components-navigation-bar');
16
16
  require('./Component.js');
17
17
  require('react-merge-refs');
18
18
 
@@ -10,6 +10,5 @@ declare const ModalDesktop: React.ForwardRefExoticComponent<BaseModalProps & {
10
10
  Content: React.FC<import("./typings").ContentProps>;
11
11
  Header: React.FC<import("./components/header/Component").HeaderProps>;
12
12
  Footer: React.FC<import("./components/footer/Component").FooterProps>;
13
- Closer: React.FC<import("@alfalab/core-components-navigation-bar").CloserProps>;
14
13
  };
15
14
  export { ModalDesktop };
@@ -1,5 +1,4 @@
1
1
  import React, { forwardRef } from 'react';
2
- import { Closer } from '@alfalab/core-components-navigation-bar/modern';
3
2
  import { Content } from './components/content/Component.js';
4
3
  import { Footer } from './components/footer/Component.js';
5
4
  import { Header } from './components/header/Component.js';
@@ -8,6 +7,7 @@ import 'classnames';
8
7
  import './Context.js';
9
8
  import '@alfalab/core-components-base-modal/modern';
10
9
  import './ResponsiveContext.js';
10
+ import '@alfalab/core-components-navigation-bar/modern';
11
11
  import 'react-merge-refs';
12
12
 
13
13
  const ModalDesktopComponent = forwardRef((props, ref) => (React.createElement(Modal, { ...props, ref: ref, view: 'desktop' })));
@@ -15,7 +15,6 @@ const ModalDesktop = Object.assign(ModalDesktopComponent, {
15
15
  Content,
16
16
  Header,
17
17
  Footer,
18
- Closer,
19
18
  });
20
19
 
21
20
  export { ModalDesktop };
@@ -4,13 +4,13 @@ import cn from 'classnames';
4
4
  import { BaseModal } from '@alfalab/core-components-base-modal/modern';
5
5
  import { ResponsiveContext } from './ResponsiveContext.js';
6
6
 
7
- const desktopStyles = {"wrapper":"modal__wrapper_f3bnb","component":"modal__component_f3bnb","fullscreen":"modal__fullscreen_f3bnb","s":"modal__s_f3bnb","m":"modal__m_f3bnb","l":"modal__l_f3bnb","xl":"modal__xl_f3bnb"};
7
+ const desktopStyles = {"wrapper":"modal__wrapper_1rgs6","component":"modal__component_1rgs6","fullscreen":"modal__fullscreen_1rgs6","s":"modal__s_1rgs6","m":"modal__m_1rgs6","l":"modal__l_1rgs6","xl":"modal__xl_1rgs6"};
8
8
  require('./desktop.css')
9
9
 
10
- const mobileStyles = {"component":"modal__component_8lzj1"};
10
+ const mobileStyles = {"component":"modal__component_tiju5"};
11
11
  require('./mobile.css')
12
12
 
13
- const transitions = {"appear":"modal__appear_1j6wr","enter":"modal__enter_1j6wr","appearActive":"modal__appearActive_1j6wr","enterActive":"modal__enterActive_1j6wr","exit":"modal__exit_1j6wr","exitActive":"modal__exitActive_1j6wr","exitDone":"modal__exitDone_1j6wr"};
13
+ const transitions = {"appear":"modal__appear_e1pnc","enter":"modal__enter_e1pnc","appearActive":"modal__appearActive_e1pnc","enterActive":"modal__enterActive_e1pnc","exit":"modal__exit_e1pnc","exitActive":"modal__exitActive_e1pnc","exitDone":"modal__exitDone_e1pnc"};
14
14
  require('./transitions.css')
15
15
 
16
16
  const Modal = forwardRef(({ size = 's', fixedPosition, fullscreen, children, className, wrapperClassName, transitionProps = {}, view, ...restProps }, ref) => {
@@ -5,6 +5,5 @@ declare const ModalMobile: React.ForwardRefExoticComponent<ModalMobileProps & Re
5
5
  Content: React.FC<import("./typings").ContentProps>;
6
6
  Header: React.FC<import("./components/header/Component").HeaderProps>;
7
7
  Footer: React.FC<import("./components/footer/Component").FooterProps>;
8
- Closer: React.FC<import("@alfalab/core-components-navigation-bar").CloserProps>;
9
8
  };
10
9
  export { ModalMobile };
@@ -1,5 +1,4 @@
1
1
  import React, { forwardRef } from 'react';
2
- import { Closer } from '@alfalab/core-components-navigation-bar/modern';
3
2
  import { Content } from './components/content/Component.js';
4
3
  import { Footer } from './components/footer/Component.js';
5
4
  import { Header } from './components/header/Component.js';
@@ -8,6 +7,7 @@ import 'classnames';
8
7
  import './Context.js';
9
8
  import '@alfalab/core-components-base-modal/modern';
10
9
  import './ResponsiveContext.js';
10
+ import '@alfalab/core-components-navigation-bar/modern';
11
11
  import 'react-merge-refs';
12
12
 
13
13
  const ModalMobileComponent = forwardRef((props, ref) => (React.createElement(Modal, { ...props, ref: ref, view: 'mobile' })));
@@ -15,7 +15,6 @@ const ModalMobile = Object.assign(ModalMobileComponent, {
15
15
  Content,
16
16
  Header,
17
17
  Footer,
18
- Closer,
19
18
  });
20
19
 
21
20
  export { ModalMobile };
@@ -12,6 +12,5 @@ declare const ModalResponsive: React.ForwardRefExoticComponent<BaseModalProps &
12
12
  Header: React.FC<import("./components/header/Component").HeaderProps>;
13
13
  Content: React.FC<import("./typings").ContentProps>;
14
14
  Footer: React.FC<import("./components/footer/Component").FooterProps>;
15
- Closer: React.FC<import("@alfalab/core-components-navigation-bar").CloserProps>;
16
15
  };
17
16
  export { ModalResponsive };
@@ -1,5 +1,4 @@
1
1
  import React, { forwardRef } from 'react';
2
- import { Closer } from '@alfalab/core-components-navigation-bar/modern';
3
2
  import { useMedia } from '@alfalab/hooks';
4
3
  import { Content } from './components/content/Component.js';
5
4
  import { Footer } from './components/footer/Component.js';
@@ -9,6 +8,7 @@ import 'classnames';
9
8
  import './Context.js';
10
9
  import '@alfalab/core-components-base-modal/modern';
11
10
  import './ResponsiveContext.js';
11
+ import '@alfalab/core-components-navigation-bar/modern';
12
12
  import 'react-merge-refs';
13
13
 
14
14
  const ModalResponsiveComponent = forwardRef(({ children, breakpoint = 1024, ...restProps }, ref) => {
@@ -22,7 +22,6 @@ const ModalResponsive = Object.assign(ModalResponsiveComponent, {
22
22
  Header,
23
23
  Content,
24
24
  Footer,
25
- Closer,
26
25
  });
27
26
 
28
27
  export { ModalResponsive };
@@ -4,13 +4,13 @@ import { ModalContext } from '../../Context.js';
4
4
  import { ResponsiveContext } from '../../ResponsiveContext.js';
5
5
  import '@alfalab/core-components-base-modal/modern';
6
6
 
7
- const desktopStyles = {"s":"modal__s_73dmk","m":"modal__m_73dmk","l":"modal__l_73dmk","xl":"modal__xl_73dmk","fullscreen":"modal__fullscreen_73dmk"};
7
+ const desktopStyles = {"s":"modal__s_lvfv7","m":"modal__m_lvfv7","l":"modal__l_lvfv7","xl":"modal__xl_lvfv7","fullscreen":"modal__fullscreen_lvfv7"};
8
8
  require('./desktop.css')
9
9
 
10
- const styles = {"content":"modal__content_svmb6","withHeader":"modal__withHeader_svmb6","flex":"modal__flex_svmb6"};
10
+ const styles = {"content":"modal__content_yobxh","withHeader":"modal__withHeader_yobxh","flex":"modal__flex_yobxh"};
11
11
  require('./index.css')
12
12
 
13
- const mobileStyles = {"content":"modal__content_1k2dz"};
13
+ const mobileStyles = {"content":"modal__content_171ey"};
14
14
  require('./mobile.css')
15
15
 
16
16
  const Content = ({ children, flex, className }) => {
@@ -1,4 +1,4 @@
1
- /* hash: ic7tb */
1
+ /* hash: 1d901 */
2
2
  :root {
3
3
  } /* deprecated */ :root { /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */
4
4
  } :root { /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */
@@ -30,12 +30,12 @@
30
30
  /* mobile */
31
31
 
32
32
  /* paddings */
33
- } .modal__s_73dmk,
34
- .modal__m_73dmk,
35
- .modal__l_73dmk,
36
- .modal__xl_73dmk,
37
- .modal__fullscreen_73dmk {
33
+ } .modal__s_lvfv7,
34
+ .modal__m_lvfv7,
35
+ .modal__l_lvfv7,
36
+ .modal__xl_lvfv7,
37
+ .modal__fullscreen_lvfv7 {
38
38
  padding: var(--modal-s-content-paddings)
39
- } .modal__s_73dmk:last-child, .modal__m_73dmk:last-child, .modal__l_73dmk:last-child, .modal__xl_73dmk:last-child, .modal__fullscreen_73dmk:last-child {
39
+ } .modal__s_lvfv7:last-child, .modal__m_lvfv7:last-child, .modal__l_lvfv7:last-child, .modal__xl_lvfv7:last-child, .modal__fullscreen_lvfv7:last-child {
40
40
  padding-bottom: var(--modal-s-content-only-bottom-padding);
41
41
  }
@@ -1,4 +1,4 @@
1
- /* hash: na8y0 */
1
+ /* hash: feso8 */
2
2
  :root {
3
3
  } /* deprecated */ :root { /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */
4
4
  } :root { /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */
@@ -27,13 +27,13 @@
27
27
  /* mobile */
28
28
 
29
29
  /* paddings */
30
- } .modal__content_svmb6 {
30
+ } .modal__content_yobxh {
31
31
  position: relative;
32
32
  box-sizing: border-box;
33
33
  width: 100%;
34
34
  z-index: 0
35
- } .modal__content_svmb6.modal__withHeader_svmb6 {
35
+ } .modal__content_yobxh.modal__withHeader_yobxh {
36
36
  padding-top: 0;
37
- } .modal__flex_svmb6 {
37
+ } .modal__flex_yobxh {
38
38
  flex: 1;
39
39
  }
@@ -1,4 +1,4 @@
1
- /* hash: j7jfn */
1
+ /* hash: 1cywe */
2
2
  :root {
3
3
  } /* deprecated */ :root { /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */
4
4
  } :root { /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */
@@ -28,8 +28,8 @@
28
28
  /* mobile */
29
29
 
30
30
  /* paddings */
31
- } .modal__content_1k2dz {
31
+ } .modal__content_171ey {
32
32
  padding: var(--gap-m) var(--gap-m) 0
33
- } .modal__content_1k2dz:last-child {
33
+ } .modal__content_171ey:last-child {
34
34
  padding-bottom: var(--gap-m);
35
35
  }
@@ -4,16 +4,16 @@ import { ModalContext } from '../../Context.js';
4
4
  import { ResponsiveContext } from '../../ResponsiveContext.js';
5
5
  import '@alfalab/core-components-base-modal/modern';
6
6
 
7
- const desktopStyles = {"footer":"modal__footer_19dtk","sticky":"modal__sticky_19dtk","fullscreen":"modal__fullscreen_19dtk","s":"modal__s_19dtk","m":"modal__m_19dtk","l":"modal__l_19dtk","xl":"modal__xl_19dtk"};
7
+ const desktopStyles = {"footer":"modal__footer_fvoww","sticky":"modal__sticky_fvoww","fullscreen":"modal__fullscreen_fvoww","s":"modal__s_fvoww","m":"modal__m_fvoww","l":"modal__l_fvoww","xl":"modal__xl_fvoww"};
8
8
  require('./desktop.css')
9
9
 
10
- const styles = {"footer":"modal__footer_9qcsi","sticky":"modal__sticky_9qcsi","highlighted":"modal__highlighted_9qcsi"};
10
+ const styles = {"footer":"modal__footer_1es2d","sticky":"modal__sticky_1es2d","highlighted":"modal__highlighted_1es2d"};
11
11
  require('./index.css')
12
12
 
13
- const layoutStyles = {"column":"modal__column_g3nzy","gap-16":"modal__gap-16_g3nzy","gap-24":"modal__gap-24_g3nzy","gap-32":"modal__gap-32_g3nzy","column-mobile":"modal__column-mobile_g3nzy","start":"modal__start_g3nzy","center":"modal__center_g3nzy","space-between":"modal__space-between_g3nzy"};
13
+ const layoutStyles = {"column":"modal__column_1lmne","gap-16":"modal__gap-16_1lmne","gap-24":"modal__gap-24_1lmne","gap-32":"modal__gap-32_1lmne","column-mobile":"modal__column-mobile_1lmne","start":"modal__start_1lmne","center":"modal__center_1lmne","space-between":"modal__space-between_1lmne"};
14
14
  require('./layout.css')
15
15
 
16
- const mobileStyles = {"footer":"modal__footer_1sis9","sticky":"modal__sticky_1sis9"};
16
+ const mobileStyles = {"footer":"modal__footer_1r3pc","sticky":"modal__sticky_1r3pc"};
17
17
  require('./mobile.css')
18
18
 
19
19
  const Footer = ({ children, className, sticky, layout = 'start', gap }) => {
@@ -1,4 +1,4 @@
1
- /* hash: eegei */
1
+ /* hash: l8ln9 */
2
2
  :root {
3
3
  } /* deprecated */ :root { /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */
4
4
  } :root { /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */
@@ -33,17 +33,17 @@
33
33
  /* mobile */
34
34
 
35
35
  /* paddings */
36
- } .modal__footer_19dtk {
36
+ } .modal__footer_fvoww {
37
37
  border-bottom-left-radius: var(--modal-border-radius);
38
38
  border-bottom-right-radius: var(--modal-border-radius);
39
- } .modal__sticky_19dtk {
39
+ } .modal__sticky_fvoww {
40
40
  bottom: calc(var(--modal-vertical-padding) * -1)
41
- } .modal__sticky_19dtk.modal__fullscreen_19dtk {
41
+ } .modal__sticky_fvoww.modal__fullscreen_fvoww {
42
42
  bottom: 0;
43
- } .modal__s_19dtk,
44
- .modal__m_19dtk,
45
- .modal__l_19dtk,
46
- .modal__xl_19dtk,
47
- .modal__fullscreen_19dtk {
43
+ } .modal__s_fvoww,
44
+ .modal__m_fvoww,
45
+ .modal__l_fvoww,
46
+ .modal__xl_fvoww,
47
+ .modal__fullscreen_fvoww {
48
48
  padding: var(--modal-s-footer-paddings);
49
49
  }