@alfalab/core-components-modal 8.1.2 → 8.1.3

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 (100) hide show
  1. package/Component.js +5 -5
  2. package/components/content/Component.js +3 -3
  3. package/components/content/desktop.css +7 -7
  4. package/components/content/index.css +4 -4
  5. package/components/content/mobile.css +3 -3
  6. package/components/footer/Component.js +4 -4
  7. package/components/footer/desktop.css +9 -9
  8. package/components/footer/index.css +4 -4
  9. package/components/footer/layout.css +29 -29
  10. package/components/footer/mobile.css +3 -3
  11. package/components/header/Component.js +3 -3
  12. package/components/header/desktop.css +15 -15
  13. package/components/header/index.css +4 -4
  14. package/components/header/mobile.css +4 -4
  15. package/cssm/Component.js +2 -2
  16. package/cssm/Component.responsive.js +2 -2
  17. package/{Component.desktop.d.ts → cssm/desktop/Component.desktop.d.ts} +3 -3
  18. package/cssm/{Component.desktop.js → desktop/Component.desktop.js} +20 -20
  19. package/cssm/desktop/index.d.ts +1 -1
  20. package/cssm/desktop/index.js +9 -9
  21. package/cssm/index.js +2 -2
  22. package/cssm/mobile/Component.mobile.d.ts +9 -0
  23. package/cssm/{Component.mobile.js → mobile/Component.mobile.js} +20 -20
  24. package/cssm/mobile/index.d.ts +1 -1
  25. package/cssm/mobile/index.js +9 -9
  26. package/{cssm → desktop}/Component.desktop.d.ts +3 -3
  27. package/{Component.desktop.js → desktop/Component.desktop.js} +7 -7
  28. package/{modern → desktop}/desktop.css +9 -9
  29. package/desktop/index.d.ts +1 -1
  30. package/desktop/index.js +6 -6
  31. package/esm/Component.js +5 -5
  32. package/esm/components/content/Component.js +3 -3
  33. package/esm/components/content/desktop.css +7 -7
  34. package/esm/components/content/index.css +4 -4
  35. package/esm/components/content/mobile.css +3 -3
  36. package/esm/components/footer/Component.js +4 -4
  37. package/esm/components/footer/desktop.css +9 -9
  38. package/esm/components/footer/index.css +4 -4
  39. package/esm/components/footer/layout.css +29 -29
  40. package/esm/components/footer/mobile.css +3 -3
  41. package/esm/components/header/Component.js +3 -3
  42. package/esm/components/header/desktop.css +15 -15
  43. package/esm/components/header/index.css +4 -4
  44. package/esm/components/header/mobile.css +4 -4
  45. package/esm/{Component.desktop.d.ts → desktop/Component.desktop.d.ts} +3 -3
  46. package/esm/{Component.desktop.js → desktop/Component.desktop.js} +7 -7
  47. package/{desktop.css → esm/desktop/desktop.css} +9 -9
  48. package/esm/desktop/index.d.ts +1 -1
  49. package/esm/desktop/index.js +5 -5
  50. package/esm/mobile/Component.mobile.d.ts +9 -0
  51. package/esm/{Component.mobile.js → mobile/Component.mobile.js} +7 -7
  52. package/esm/mobile/index.d.ts +1 -1
  53. package/esm/mobile/index.js +5 -5
  54. package/{modern → esm/mobile}/mobile.css +2 -2
  55. package/esm/transitions.css +8 -8
  56. package/mobile/Component.mobile.d.ts +9 -0
  57. package/{Component.mobile.js → mobile/Component.mobile.js} +7 -7
  58. package/mobile/index.d.ts +1 -1
  59. package/mobile/index.js +6 -6
  60. package/{esm → mobile}/mobile.css +2 -2
  61. package/modern/Component.js +5 -5
  62. package/modern/components/content/Component.js +3 -3
  63. package/modern/components/content/desktop.css +7 -7
  64. package/modern/components/content/index.css +4 -4
  65. package/modern/components/content/mobile.css +3 -3
  66. package/modern/components/footer/Component.js +4 -4
  67. package/modern/components/footer/desktop.css +9 -9
  68. package/modern/components/footer/index.css +4 -4
  69. package/modern/components/footer/layout.css +29 -29
  70. package/modern/components/footer/mobile.css +3 -3
  71. package/modern/components/header/Component.js +3 -3
  72. package/modern/components/header/desktop.css +15 -15
  73. package/modern/components/header/index.css +4 -4
  74. package/modern/components/header/mobile.css +4 -4
  75. package/modern/{Component.desktop.d.ts → desktop/Component.desktop.d.ts} +3 -3
  76. package/modern/{Component.desktop.js → desktop/Component.desktop.js} +7 -7
  77. package/{esm → modern/desktop}/desktop.css +9 -9
  78. package/modern/desktop/index.d.ts +1 -1
  79. package/modern/desktop/index.js +5 -5
  80. package/modern/mobile/Component.mobile.d.ts +9 -0
  81. package/modern/{Component.mobile.js → mobile/Component.mobile.js} +7 -7
  82. package/modern/mobile/index.d.ts +1 -1
  83. package/modern/mobile/index.js +5 -5
  84. package/{mobile.css → modern/mobile/mobile.css} +2 -2
  85. package/modern/transitions.css +8 -8
  86. package/package.json +2 -2
  87. package/src/Component.tsx +2 -2
  88. package/src/{Component.desktop.tsx → desktop/Component.desktop.tsx} +5 -5
  89. package/src/{desktop.module.css → desktop/desktop.module.css} +1 -1
  90. package/src/desktop/index.ts +1 -1
  91. package/src/{Component.mobile.tsx → mobile/Component.mobile.tsx} +5 -5
  92. package/src/mobile/index.ts +1 -1
  93. package/src/{mobile.module.css → mobile/mobile.module.css} +1 -1
  94. package/transitions.css +8 -8
  95. package/Component.mobile.d.ts +0 -9
  96. package/cssm/Component.mobile.d.ts +0 -9
  97. package/esm/Component.mobile.d.ts +0 -9
  98. package/modern/Component.mobile.d.ts +0 -9
  99. /package/cssm/{desktop.module.css → desktop/desktop.module.css} +0 -0
  100. /package/cssm/{mobile.module.css → mobile/mobile.module.css} +0 -0
@@ -1,4 +1,4 @@
1
- /* hash: 1oi9h */
1
+ /* hash: zxa5z */
2
2
  :root {
3
3
  } /* deprecated */ :root { /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */
4
4
  } :root { /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */
@@ -28,8 +28,8 @@
28
28
  /* mobile */
29
29
 
30
30
  /* paddings */
31
- } .modal__footer_le3nn {
31
+ } .modal__footer_159cp {
32
32
  padding: var(--gap-m);
33
- } .modal__sticky_le3nn {
33
+ } .modal__sticky_159cp {
34
34
  bottom: 0;
35
35
  }
@@ -5,13 +5,13 @@ import { ModalContext } from '../../Context.js';
5
5
  import { ResponsiveContext } from '../../ResponsiveContext.js';
6
6
  import '@alfalab/core-components-base-modal/modern';
7
7
 
8
- const desktopStyles = {"header":"modal__header_12npl","content":"modal__content_12npl","s":"modal__s_12npl","m":"modal__m_12npl","l":"modal__l_12npl","xl":"modal__xl_12npl","fullscreen":"modal__fullscreen_12npl","sticky":"modal__sticky_12npl"};
8
+ const desktopStyles = {"header":"modal__header_1k8x9","content":"modal__content_1k8x9","s":"modal__s_1k8x9","m":"modal__m_1k8x9","l":"modal__l_1k8x9","xl":"modal__xl_1k8x9","fullscreen":"modal__fullscreen_1k8x9","sticky":"modal__sticky_1k8x9"};
9
9
  require('./desktop.css')
10
10
 
11
- const styles = {"highlighted":"modal__highlighted_1amy0","sticky":"modal__sticky_1amy0","hasContent":"modal__hasContent_1amy0"};
11
+ const styles = {"highlighted":"modal__highlighted_1s85n","sticky":"modal__sticky_1s85n","hasContent":"modal__hasContent_1s85n"};
12
12
  require('./index.css')
13
13
 
14
- const mobileStyles = {"header":"modal__header_zp3c0","sticky":"modal__sticky_zp3c0","content":"modal__content_zp3c0"};
14
+ const mobileStyles = {"header":"modal__header_vulyt","sticky":"modal__sticky_vulyt","content":"modal__content_vulyt"};
15
15
  require('./mobile.css')
16
16
 
17
17
  const Header = ({ className, sticky, title, children, contentClassName, hasCloser = true, ...restProps }) => {
@@ -1,4 +1,4 @@
1
- /* hash: 1v7wk */
1
+ /* hash: juq5o */
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_12npl {
47
+ } .modal__header_1k8x9 {
48
48
  border-top-left-radius: var(--modal-border-radius);
49
49
  border-top-right-radius: var(--modal-border-radius);
50
- } .modal__content_12npl {
50
+ } .modal__content_1k8x9 {
51
51
  font-weight: var(--modal-header-desktop-font-weight);
52
52
  font-family: var(--modal-header-desktop-font-family);
53
- } .modal__s_12npl .modal__content_12npl,
54
- .modal__m_12npl .modal__content_12npl {
53
+ } .modal__s_1k8x9 .modal__content_1k8x9,
54
+ .modal__m_1k8x9 .modal__content_1k8x9 {
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_12npl .modal__content_12npl,
59
- .modal__xl_12npl .modal__content_12npl,
60
- .modal__fullscreen_12npl .modal__content_12npl {
58
+ } .modal__l_1k8x9 .modal__content_1k8x9,
59
+ .modal__xl_1k8x9 .modal__content_1k8x9,
60
+ .modal__fullscreen_1k8x9 .modal__content_1k8x9 {
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_12npl,
65
- .modal__m_12npl,
66
- .modal__l_12npl,
67
- .modal__xl_12npl,
68
- .modal__fullscreen_12npl {
64
+ } .modal__s_1k8x9,
65
+ .modal__m_1k8x9,
66
+ .modal__l_1k8x9,
67
+ .modal__xl_1k8x9,
68
+ .modal__fullscreen_1k8x9 {
69
69
  padding: var(--modal-s-header-paddings);
70
- } .modal__sticky_12npl {
70
+ } .modal__sticky_1k8x9 {
71
71
  top: calc(var(--modal-vertical-padding) * -1)
72
- } .modal__sticky_12npl.modal__fullscreen_12npl {
72
+ } .modal__sticky_1k8x9.modal__fullscreen_1k8x9 {
73
73
  top: 0;
74
74
  }
@@ -1,4 +1,4 @@
1
- /* hash: k7qps */
1
+ /* hash: 17voc */
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_1amy0 {
35
+ } .modal__highlighted_1s85n {
36
36
  background: var(--modal-header-highlight-background);
37
37
  box-shadow: var(--modal-header-highlight-box-shadow);
38
- } .modal__sticky_1amy0 {
38
+ } .modal__sticky_1s85n {
39
39
  position: sticky;
40
40
  z-index: 1
41
- } .modal__sticky_1amy0.modal__hasContent_1amy0 {
41
+ } .modal__sticky_1s85n.modal__hasContent_1s85n {
42
42
  background: var(--modal-header-background);
43
43
  }
@@ -1,4 +1,4 @@
1
- /* hash: f21v1 */
1
+ /* hash: kasc9 */
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_zp3c0 {
41
+ } .modal__header_vulyt {
42
42
  padding: var(--modal-header-mobile-paddings);
43
- } .modal__sticky_zp3c0 {
43
+ } .modal__sticky_vulyt {
44
44
  top: 0;
45
- } .modal__content_zp3c0 {
45
+ } .modal__content_vulyt {
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);
@@ -7,8 +7,8 @@ declare const ModalDesktop: React.ForwardRefExoticComponent<BaseModalProps & {
7
7
  fixedPosition?: boolean | undefined;
8
8
  hasCloser?: boolean | undefined;
9
9
  } & React.RefAttributes<HTMLDivElement>> & {
10
- Content: React.FC<import("./typings").ContentProps>;
11
- Header: React.FC<import("./components/header/Component").HeaderProps>;
12
- Footer: React.FC<import("./components/footer/Component").FooterProps>;
10
+ Content: React.FC<import("../typings").ContentProps>;
11
+ Header: React.FC<import("../components/header/Component").HeaderProps>;
12
+ Footer: React.FC<import("../components/footer/Component").FooterProps>;
13
13
  };
14
14
  export { ModalDesktop };
@@ -1,14 +1,14 @@
1
1
  import React, { forwardRef } from 'react';
2
- import { Content } from './components/content/Component.js';
3
- import { Footer } from './components/footer/Component.js';
4
- import { Header } from './components/header/Component.js';
5
- import { Modal } from './Component.js';
2
+ import { Modal } from '../Component.js';
3
+ import { Content } from '../components/content/Component.js';
4
+ import { Footer } from '../components/footer/Component.js';
5
+ import { Header } from '../components/header/Component.js';
6
+ import 'react-merge-refs';
6
7
  import 'classnames';
7
- import './Context.js';
8
8
  import '@alfalab/core-components-base-modal/modern';
9
- import './ResponsiveContext.js';
9
+ import '../ResponsiveContext.js';
10
+ import '../Context.js';
10
11
  import '@alfalab/core-components-navigation-bar/modern';
11
- import 'react-merge-refs';
12
12
 
13
13
  const ModalDesktopComponent = forwardRef((props, ref) => (React.createElement(Modal, { ...props, ref: ref, view: 'desktop' })));
14
14
  const ModalDesktop = Object.assign(ModalDesktopComponent, {
@@ -1,4 +1,4 @@
1
- /* hash: 15fvb */
1
+ /* hash: 2ys8x */
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_oyxvg {
38
+ } .modal__wrapper_6hdpw {
39
39
  padding-top: var(--modal-vertical-padding);
40
40
  padding-bottom: var(--modal-vertical-padding);
41
- } .modal__component_oyxvg {
41
+ } .modal__component_6hdpw {
42
42
  width: 100%;
43
43
  max-width: 100%;
44
44
  border-radius: var(--modal-border-radius);
45
- } .modal__fullscreen_oyxvg {
45
+ } .modal__fullscreen_6hdpw {
46
46
  padding-top: 0;
47
47
  padding-bottom: 0
48
- } .modal__fullscreen_oyxvg .modal__component_oyxvg {
48
+ } .modal__fullscreen_6hdpw .modal__component_6hdpw {
49
49
  flex: 1;
50
50
  border-radius: 0;
51
- } .modal__s_oyxvg {
51
+ } .modal__s_6hdpw {
52
52
  width: var(--modal-s-width);
53
- } .modal__m_oyxvg {
53
+ } .modal__m_6hdpw {
54
54
  width: var(--modal-m-width);
55
- } .modal__l_oyxvg {
55
+ } .modal__l_6hdpw {
56
56
  width: var(--modal-l-width);
57
- } .modal__xl_oyxvg {
57
+ } .modal__xl_6hdpw {
58
58
  width: var(--modal-xl-width);
59
59
  }
@@ -1,2 +1,2 @@
1
- export * from "../Component.desktop";
1
+ export * from "./Component.desktop";
2
2
  export { ModalDesktopProps } from "../typings";
@@ -1,12 +1,12 @@
1
- export { ModalDesktop } from '../Component.desktop.js';
1
+ export { ModalDesktop } from './Component.desktop.js';
2
2
  import 'react';
3
- import '../components/content/Component.js';
3
+ import '../Component.js';
4
+ import 'react-merge-refs';
4
5
  import 'classnames';
5
- import '../Context.js';
6
6
  import '@alfalab/core-components-base-modal/modern';
7
7
  import '../ResponsiveContext.js';
8
+ import '../components/content/Component.js';
9
+ import '../Context.js';
8
10
  import '../components/footer/Component.js';
9
11
  import '../components/header/Component.js';
10
12
  import '@alfalab/core-components-navigation-bar/modern';
11
- import '../Component.js';
12
- import 'react-merge-refs';
@@ -0,0 +1,9 @@
1
+ /// <reference types="react" />
2
+ import React from 'react';
3
+ import { ModalMobileProps } from "../typings";
4
+ declare const ModalMobile: React.ForwardRefExoticComponent<ModalMobileProps & React.RefAttributes<HTMLDivElement>> & {
5
+ Content: React.FC<import("../typings").ContentProps>;
6
+ Header: React.FC<import("../components/header/Component").HeaderProps>;
7
+ Footer: React.FC<import("../components/footer/Component").FooterProps>;
8
+ };
9
+ export { ModalMobile };
@@ -1,14 +1,14 @@
1
1
  import React, { forwardRef } from 'react';
2
- import { Content } from './components/content/Component.js';
3
- import { Footer } from './components/footer/Component.js';
4
- import { Header } from './components/header/Component.js';
5
- import { Modal } from './Component.js';
2
+ import { Modal } from '../Component.js';
3
+ import { Content } from '../components/content/Component.js';
4
+ import { Footer } from '../components/footer/Component.js';
5
+ import { Header } from '../components/header/Component.js';
6
+ import 'react-merge-refs';
6
7
  import 'classnames';
7
- import './Context.js';
8
8
  import '@alfalab/core-components-base-modal/modern';
9
- import './ResponsiveContext.js';
9
+ import '../ResponsiveContext.js';
10
+ import '../Context.js';
10
11
  import '@alfalab/core-components-navigation-bar/modern';
11
- import 'react-merge-refs';
12
12
 
13
13
  const ModalMobileComponent = forwardRef((props, ref) => (React.createElement(Modal, { ...props, ref: ref, view: 'mobile' })));
14
14
  const ModalMobile = Object.assign(ModalMobileComponent, {
@@ -1,2 +1,2 @@
1
- export * from "../Component.mobile";
1
+ export * from "./Component.mobile";
2
2
  export { ModalMobileProps } from "../typings";
@@ -1,12 +1,12 @@
1
- export { ModalMobile } from '../Component.mobile.js';
1
+ export { ModalMobile } from './Component.mobile.js';
2
2
  import 'react';
3
- import '../components/content/Component.js';
3
+ import '../Component.js';
4
+ import 'react-merge-refs';
4
5
  import 'classnames';
5
- import '../Context.js';
6
6
  import '@alfalab/core-components-base-modal/modern';
7
7
  import '../ResponsiveContext.js';
8
+ import '../components/content/Component.js';
9
+ import '../Context.js';
8
10
  import '../components/footer/Component.js';
9
11
  import '../components/header/Component.js';
10
12
  import '@alfalab/core-components-navigation-bar/modern';
11
- import '../Component.js';
12
- import 'react-merge-refs';
@@ -1,4 +1,4 @@
1
- /* hash: is6wj */
1
+ /* hash: 1kjid */
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_153xo {
30
+ } .modal__component_o9513 {
31
31
  flex: 1;
32
32
  width: 100%;
33
33
  max-width: 600px;
@@ -1,24 +1,24 @@
1
- /* hash: glixi */
2
- .modal__appear_b0sx6,
3
- .modal__enter_b0sx6 {
1
+ /* hash: 1sdt2 */
2
+ .modal__appear_4lmkq,
3
+ .modal__enter_4lmkq {
4
4
  opacity: 0;
5
5
  transform: translateY(15px);
6
6
  }
7
7
 
8
- .modal__appearActive_b0sx6,
9
- .modal__enterActive_b0sx6 {
8
+ .modal__appearActive_4lmkq,
9
+ .modal__enterActive_4lmkq {
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_b0sx6 {
15
+ .modal__exit_4lmkq {
16
16
  opacity: 1;
17
17
  transform: translateY(0);
18
18
  }
19
19
 
20
- .modal__exitActive_b0sx6,
21
- .modal__exitDone_b0sx6 {
20
+ .modal__exitActive_4lmkq,
21
+ .modal__exitDone_4lmkq {
22
22
  opacity: 0;
23
23
  transform: translateY(15px);
24
24
  transition: opacity 200ms ease-out, transform 200ms ease-out;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@alfalab/core-components-modal",
3
- "version": "8.1.2",
3
+ "version": "8.1.3",
4
4
  "description": "Modal component",
5
5
  "keywords": [],
6
6
  "license": "MIT",
@@ -12,7 +12,7 @@
12
12
  },
13
13
  "dependencies": {
14
14
  "@alfalab/core-components-base-modal": "^5.6.0",
15
- "@alfalab/core-components-navigation-bar": "^0.5.11",
15
+ "@alfalab/core-components-navigation-bar": "^0.6.0",
16
16
  "@alfalab/hooks": "^1.13.0",
17
17
  "classnames": "^2.3.1",
18
18
  "react-merge-refs": "^1.1.0",
package/src/Component.tsx CHANGED
@@ -7,8 +7,8 @@ import { BaseModal } from '@alfalab/core-components-base-modal';
7
7
  import { ResponsiveContext } from './ResponsiveContext';
8
8
  import { ModalDesktopProps, View } from './typings';
9
9
 
10
- import desktopStyles from './desktop.module.css';
11
- import mobileStyles from './mobile.module.css';
10
+ import desktopStyles from './desktop/desktop.module.css';
11
+ import mobileStyles from './mobile/mobile.module.css';
12
12
  import transitions from './transitions.module.css';
13
13
 
14
14
  export const Modal = forwardRef<HTMLDivElement, ModalDesktopProps & { view: View }>(
@@ -3,11 +3,11 @@ import React, { forwardRef } from 'react';
3
3
  // eslint-disable-next-line @typescript-eslint/no-unused-vars
4
4
  import type { BaseModalProps } from '@alfalab/core-components-base-modal';
5
5
 
6
- import { Content } from './components/content/Component';
7
- import { Footer } from './components/footer/Component';
8
- import { Header } from './components/header/Component';
9
- import { Modal } from './Component';
10
- import type { ModalDesktopProps } from './typings';
6
+ import { Modal } from '../Component';
7
+ import { Content } from '../components/content/Component';
8
+ import { Footer } from '../components/footer/Component';
9
+ import { Header } from '../components/header/Component';
10
+ import type { ModalDesktopProps } from '../typings';
11
11
 
12
12
  const ModalDesktopComponent = forwardRef<HTMLDivElement, ModalDesktopProps>((props, ref) => (
13
13
  <Modal {...props} ref={ref} view='desktop' />
@@ -1,4 +1,4 @@
1
- @import './vars.css';
1
+ @import '../vars.css';
2
2
 
3
3
  .wrapper {
4
4
  padding-top: var(--modal-vertical-padding);
@@ -1,2 +1,2 @@
1
- export * from '../Component.desktop';
1
+ export * from './Component.desktop';
2
2
  export { ModalDesktopProps } from '../typings';
@@ -1,10 +1,10 @@
1
1
  import React, { forwardRef } from 'react';
2
2
 
3
- import { Content } from './components/content/Component';
4
- import { Footer } from './components/footer/Component';
5
- import { Header } from './components/header/Component';
6
- import { Modal } from './Component';
7
- import type { ModalMobileProps } from './typings';
3
+ import { Modal } from '../Component';
4
+ import { Content } from '../components/content/Component';
5
+ import { Footer } from '../components/footer/Component';
6
+ import { Header } from '../components/header/Component';
7
+ import type { ModalMobileProps } from '../typings';
8
8
 
9
9
  const ModalMobileComponent = forwardRef<HTMLDivElement, ModalMobileProps>((props, ref) => (
10
10
  <Modal {...props} ref={ref} view='mobile' />
@@ -1,2 +1,2 @@
1
- export * from '../Component.mobile';
1
+ export * from './Component.mobile';
2
2
  export { ModalMobileProps } from '../typings';
@@ -1,4 +1,4 @@
1
- @import './vars.css';
1
+ @import '../vars.css';
2
2
 
3
3
  .component {
4
4
  flex: 1;
package/transitions.css CHANGED
@@ -1,24 +1,24 @@
1
- /* hash: glixi */
2
- .modal__appear_b0sx6,
3
- .modal__enter_b0sx6 {
1
+ /* hash: 1sdt2 */
2
+ .modal__appear_4lmkq,
3
+ .modal__enter_4lmkq {
4
4
  opacity: 0;
5
5
  transform: translateY(15px);
6
6
  }
7
7
 
8
- .modal__appearActive_b0sx6,
9
- .modal__enterActive_b0sx6 {
8
+ .modal__appearActive_4lmkq,
9
+ .modal__enterActive_4lmkq {
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_b0sx6 {
15
+ .modal__exit_4lmkq {
16
16
  opacity: 1;
17
17
  transform: translateY(0);
18
18
  }
19
19
 
20
- .modal__exitActive_b0sx6,
21
- .modal__exitDone_b0sx6 {
20
+ .modal__exitActive_4lmkq,
21
+ .modal__exitDone_4lmkq {
22
22
  opacity: 0;
23
23
  transform: translateY(15px);
24
24
  transition: opacity 200ms ease-out, transform 200ms ease-out;
@@ -1,9 +0,0 @@
1
- /// <reference types="react" />
2
- import React from 'react';
3
- import { ModalMobileProps } from "./typings";
4
- declare const ModalMobile: React.ForwardRefExoticComponent<ModalMobileProps & React.RefAttributes<HTMLDivElement>> & {
5
- Content: React.FC<import("./typings").ContentProps>;
6
- Header: React.FC<import("./components/header/Component").HeaderProps>;
7
- Footer: React.FC<import("./components/footer/Component").FooterProps>;
8
- };
9
- export { ModalMobile };
@@ -1,9 +0,0 @@
1
- /// <reference types="react" />
2
- import React from 'react';
3
- import { ModalMobileProps } from "./typings";
4
- declare const ModalMobile: React.ForwardRefExoticComponent<ModalMobileProps & React.RefAttributes<HTMLDivElement>> & {
5
- Content: React.FC<import("./typings").ContentProps>;
6
- Header: React.FC<import("./components/header/Component").HeaderProps>;
7
- Footer: React.FC<import("./components/footer/Component").FooterProps>;
8
- };
9
- export { ModalMobile };
@@ -1,9 +0,0 @@
1
- /// <reference types="react" />
2
- import React from 'react';
3
- import { ModalMobileProps } from "./typings";
4
- declare const ModalMobile: React.ForwardRefExoticComponent<ModalMobileProps & React.RefAttributes<HTMLDivElement>> & {
5
- Content: React.FC<import("./typings").ContentProps>;
6
- Header: React.FC<import("./components/header/Component").HeaderProps>;
7
- Footer: React.FC<import("./components/footer/Component").FooterProps>;
8
- };
9
- export { ModalMobile };
@@ -1,9 +0,0 @@
1
- /// <reference types="react" />
2
- import React from 'react';
3
- import { ModalMobileProps } from "./typings";
4
- declare const ModalMobile: React.ForwardRefExoticComponent<ModalMobileProps & React.RefAttributes<HTMLDivElement>> & {
5
- Content: React.FC<import("./typings").ContentProps>;
6
- Header: React.FC<import("./components/header/Component").HeaderProps>;
7
- Footer: React.FC<import("./components/footer/Component").FooterProps>;
8
- };
9
- export { ModalMobile };