@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.
- package/Component.js +5 -5
- package/components/content/Component.js +3 -3
- package/components/content/desktop.css +7 -7
- package/components/content/index.css +4 -4
- package/components/content/mobile.css +3 -3
- package/components/footer/Component.js +4 -4
- package/components/footer/desktop.css +9 -9
- package/components/footer/index.css +4 -4
- package/components/footer/layout.css +29 -29
- package/components/footer/mobile.css +3 -3
- package/components/header/Component.js +3 -3
- package/components/header/desktop.css +15 -15
- package/components/header/index.css +4 -4
- package/components/header/mobile.css +4 -4
- package/cssm/Component.js +2 -2
- package/cssm/Component.responsive.js +2 -2
- package/{Component.desktop.d.ts → cssm/desktop/Component.desktop.d.ts} +3 -3
- package/cssm/{Component.desktop.js → desktop/Component.desktop.js} +20 -20
- package/cssm/desktop/index.d.ts +1 -1
- package/cssm/desktop/index.js +9 -9
- package/cssm/index.js +2 -2
- package/cssm/mobile/Component.mobile.d.ts +9 -0
- package/cssm/{Component.mobile.js → mobile/Component.mobile.js} +20 -20
- package/cssm/mobile/index.d.ts +1 -1
- package/cssm/mobile/index.js +9 -9
- package/{cssm → desktop}/Component.desktop.d.ts +3 -3
- package/{Component.desktop.js → desktop/Component.desktop.js} +7 -7
- package/{modern → desktop}/desktop.css +9 -9
- package/desktop/index.d.ts +1 -1
- package/desktop/index.js +6 -6
- package/esm/Component.js +5 -5
- package/esm/components/content/Component.js +3 -3
- package/esm/components/content/desktop.css +7 -7
- package/esm/components/content/index.css +4 -4
- package/esm/components/content/mobile.css +3 -3
- package/esm/components/footer/Component.js +4 -4
- package/esm/components/footer/desktop.css +9 -9
- package/esm/components/footer/index.css +4 -4
- package/esm/components/footer/layout.css +29 -29
- package/esm/components/footer/mobile.css +3 -3
- package/esm/components/header/Component.js +3 -3
- package/esm/components/header/desktop.css +15 -15
- package/esm/components/header/index.css +4 -4
- package/esm/components/header/mobile.css +4 -4
- package/esm/{Component.desktop.d.ts → desktop/Component.desktop.d.ts} +3 -3
- package/esm/{Component.desktop.js → desktop/Component.desktop.js} +7 -7
- package/{desktop.css → esm/desktop/desktop.css} +9 -9
- package/esm/desktop/index.d.ts +1 -1
- package/esm/desktop/index.js +5 -5
- package/esm/mobile/Component.mobile.d.ts +9 -0
- package/esm/{Component.mobile.js → mobile/Component.mobile.js} +7 -7
- package/esm/mobile/index.d.ts +1 -1
- package/esm/mobile/index.js +5 -5
- package/{modern → esm/mobile}/mobile.css +2 -2
- package/esm/transitions.css +8 -8
- package/mobile/Component.mobile.d.ts +9 -0
- package/{Component.mobile.js → mobile/Component.mobile.js} +7 -7
- package/mobile/index.d.ts +1 -1
- package/mobile/index.js +6 -6
- package/{esm → mobile}/mobile.css +2 -2
- package/modern/Component.js +5 -5
- package/modern/components/content/Component.js +3 -3
- package/modern/components/content/desktop.css +7 -7
- package/modern/components/content/index.css +4 -4
- package/modern/components/content/mobile.css +3 -3
- package/modern/components/footer/Component.js +4 -4
- package/modern/components/footer/desktop.css +9 -9
- package/modern/components/footer/index.css +4 -4
- package/modern/components/footer/layout.css +29 -29
- package/modern/components/footer/mobile.css +3 -3
- package/modern/components/header/Component.js +3 -3
- package/modern/components/header/desktop.css +15 -15
- package/modern/components/header/index.css +4 -4
- package/modern/components/header/mobile.css +4 -4
- package/modern/{Component.desktop.d.ts → desktop/Component.desktop.d.ts} +3 -3
- package/modern/{Component.desktop.js → desktop/Component.desktop.js} +7 -7
- package/{esm → modern/desktop}/desktop.css +9 -9
- package/modern/desktop/index.d.ts +1 -1
- package/modern/desktop/index.js +5 -5
- package/modern/mobile/Component.mobile.d.ts +9 -0
- package/modern/{Component.mobile.js → mobile/Component.mobile.js} +7 -7
- package/modern/mobile/index.d.ts +1 -1
- package/modern/mobile/index.js +5 -5
- package/{mobile.css → modern/mobile/mobile.css} +2 -2
- package/modern/transitions.css +8 -8
- package/package.json +2 -2
- package/src/Component.tsx +2 -2
- package/src/{Component.desktop.tsx → desktop/Component.desktop.tsx} +5 -5
- package/src/{desktop.module.css → desktop/desktop.module.css} +1 -1
- package/src/desktop/index.ts +1 -1
- package/src/{Component.mobile.tsx → mobile/Component.mobile.tsx} +5 -5
- package/src/mobile/index.ts +1 -1
- package/src/{mobile.module.css → mobile/mobile.module.css} +1 -1
- package/transitions.css +8 -8
- package/Component.mobile.d.ts +0 -9
- package/cssm/Component.mobile.d.ts +0 -9
- package/esm/Component.mobile.d.ts +0 -9
- package/modern/Component.mobile.d.ts +0 -9
- /package/cssm/{desktop.module.css → desktop/desktop.module.css} +0 -0
- /package/cssm/{mobile.module.css → mobile/mobile.module.css} +0 -0
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* hash:
|
|
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
|
-
} .
|
|
31
|
+
} .modal__footer_159cp {
|
|
32
32
|
padding: var(--gap-m);
|
|
33
|
-
} .
|
|
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":"
|
|
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":"
|
|
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":"
|
|
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:
|
|
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
|
-
} .
|
|
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
|
-
} .
|
|
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
|
-
} .
|
|
54
|
-
.
|
|
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
|
-
} .
|
|
59
|
-
.
|
|
60
|
-
.
|
|
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
|
-
} .
|
|
65
|
-
.
|
|
66
|
-
.
|
|
67
|
-
.
|
|
68
|
-
.
|
|
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
|
-
} .
|
|
70
|
+
} .modal__sticky_1k8x9 {
|
|
71
71
|
top: calc(var(--modal-vertical-padding) * -1)
|
|
72
|
-
} .
|
|
72
|
+
} .modal__sticky_1k8x9.modal__fullscreen_1k8x9 {
|
|
73
73
|
top: 0;
|
|
74
74
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* hash:
|
|
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
|
-
} .
|
|
35
|
+
} .modal__highlighted_1s85n {
|
|
36
36
|
background: var(--modal-header-highlight-background);
|
|
37
37
|
box-shadow: var(--modal-header-highlight-box-shadow);
|
|
38
|
-
} .
|
|
38
|
+
} .modal__sticky_1s85n {
|
|
39
39
|
position: sticky;
|
|
40
40
|
z-index: 1
|
|
41
|
-
} .
|
|
41
|
+
} .modal__sticky_1s85n.modal__hasContent_1s85n {
|
|
42
42
|
background: var(--modal-header-background);
|
|
43
43
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* hash:
|
|
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
|
-
} .
|
|
41
|
+
} .modal__header_vulyt {
|
|
42
42
|
padding: var(--modal-header-mobile-paddings);
|
|
43
|
-
} .
|
|
43
|
+
} .modal__sticky_vulyt {
|
|
44
44
|
top: 0;
|
|
45
|
-
} .
|
|
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("
|
|
11
|
-
Header: React.FC<import("
|
|
12
|
-
Footer: React.FC<import("
|
|
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 {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
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 '
|
|
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:
|
|
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
|
-
} .
|
|
38
|
+
} .modal__wrapper_6hdpw {
|
|
39
39
|
padding-top: var(--modal-vertical-padding);
|
|
40
40
|
padding-bottom: var(--modal-vertical-padding);
|
|
41
|
-
} .
|
|
41
|
+
} .modal__component_6hdpw {
|
|
42
42
|
width: 100%;
|
|
43
43
|
max-width: 100%;
|
|
44
44
|
border-radius: var(--modal-border-radius);
|
|
45
|
-
} .
|
|
45
|
+
} .modal__fullscreen_6hdpw {
|
|
46
46
|
padding-top: 0;
|
|
47
47
|
padding-bottom: 0
|
|
48
|
-
} .
|
|
48
|
+
} .modal__fullscreen_6hdpw .modal__component_6hdpw {
|
|
49
49
|
flex: 1;
|
|
50
50
|
border-radius: 0;
|
|
51
|
-
} .
|
|
51
|
+
} .modal__s_6hdpw {
|
|
52
52
|
width: var(--modal-s-width);
|
|
53
|
-
} .
|
|
53
|
+
} .modal__m_6hdpw {
|
|
54
54
|
width: var(--modal-m-width);
|
|
55
|
-
} .
|
|
55
|
+
} .modal__l_6hdpw {
|
|
56
56
|
width: var(--modal-l-width);
|
|
57
|
-
} .
|
|
57
|
+
} .modal__xl_6hdpw {
|
|
58
58
|
width: var(--modal-xl-width);
|
|
59
59
|
}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export * from "
|
|
1
|
+
export * from "./Component.desktop";
|
|
2
2
|
export { ModalDesktopProps } from "../typings";
|
package/modern/desktop/index.js
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
export { ModalDesktop } from '
|
|
1
|
+
export { ModalDesktop } from './Component.desktop.js';
|
|
2
2
|
import 'react';
|
|
3
|
-
import '../
|
|
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 {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
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 '
|
|
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, {
|
package/modern/mobile/index.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export * from "
|
|
1
|
+
export * from "./Component.mobile";
|
|
2
2
|
export { ModalMobileProps } from "../typings";
|
package/modern/mobile/index.js
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
export { ModalMobile } from '
|
|
1
|
+
export { ModalMobile } from './Component.mobile.js';
|
|
2
2
|
import 'react';
|
|
3
|
-
import '../
|
|
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:
|
|
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
|
-
} .
|
|
30
|
+
} .modal__component_o9513 {
|
|
31
31
|
flex: 1;
|
|
32
32
|
width: 100%;
|
|
33
33
|
max-width: 600px;
|
package/modern/transitions.css
CHANGED
|
@@ -1,24 +1,24 @@
|
|
|
1
|
-
/* hash:
|
|
2
|
-
.
|
|
3
|
-
.
|
|
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
|
-
.
|
|
9
|
-
.
|
|
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
|
-
.
|
|
15
|
+
.modal__exit_4lmkq {
|
|
16
16
|
opacity: 1;
|
|
17
17
|
transform: translateY(0);
|
|
18
18
|
}
|
|
19
19
|
|
|
20
|
-
.
|
|
21
|
-
.
|
|
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.
|
|
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.
|
|
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 {
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
10
|
-
import type { ModalDesktopProps } from '
|
|
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' />
|
package/src/desktop/index.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export * from '
|
|
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 {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import type { ModalMobileProps } from '
|
|
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' />
|
package/src/mobile/index.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export * from '
|
|
1
|
+
export * from './Component.mobile';
|
|
2
2
|
export { ModalMobileProps } from '../typings';
|
package/transitions.css
CHANGED
|
@@ -1,24 +1,24 @@
|
|
|
1
|
-
/* hash:
|
|
2
|
-
.
|
|
3
|
-
.
|
|
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
|
-
.
|
|
9
|
-
.
|
|
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
|
-
.
|
|
15
|
+
.modal__exit_4lmkq {
|
|
16
16
|
opacity: 1;
|
|
17
17
|
transform: translateY(0);
|
|
18
18
|
}
|
|
19
19
|
|
|
20
|
-
.
|
|
21
|
-
.
|
|
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/Component.mobile.d.ts
DELETED
|
@@ -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 };
|
|
File without changes
|
|
File without changes
|