@alfalab/core-components-modal 9.1.2 → 9.2.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.
- package/Component.d.ts +1 -1
- package/Component.js +6 -5
- package/Component.responsive.d.ts +1 -1
- package/ResponsiveContext.js +1 -1
- package/components/content/Component.js +5 -4
- package/components/content/desktop.css +8 -8
- package/components/content/index.css +5 -5
- package/components/content/mobile.css +4 -4
- package/components/controls/Component.js +2 -2
- package/components/controls/index.css +2 -2
- package/components/footer/Component.js +6 -5
- package/components/footer/desktop.css +10 -10
- package/components/footer/index.css +5 -5
- package/components/footer/layout.css +18 -18
- package/components/footer/mobile.css +4 -4
- package/components/header/Component.js +5 -4
- package/components/header/desktop.css +16 -16
- package/components/header/index.css +5 -5
- package/components/header/mobile.css +5 -5
- package/consts.d.ts +12 -0
- package/consts.js +17 -0
- package/cssm/Component.d.ts +1 -1
- package/cssm/Component.js +3 -2
- package/cssm/Component.responsive.d.ts +1 -1
- package/cssm/ResponsiveContext.js +1 -1
- package/cssm/components/content/Component.js +2 -1
- package/cssm/components/content/desktop.module.css +6 -6
- package/cssm/components/content/index.module.css +1 -1
- package/cssm/components/content/mobile.module.css +1 -1
- package/cssm/components/footer/Component.js +2 -1
- package/cssm/components/footer/desktop.module.css +5 -5
- package/cssm/components/footer/index.module.css +1 -1
- package/cssm/components/footer/layout.module.css +1 -1
- package/cssm/components/footer/mobile.module.css +1 -1
- package/cssm/components/header/Component.js +2 -1
- package/cssm/components/header/desktop.module.css +9 -9
- package/cssm/components/header/index.module.css +1 -1
- package/cssm/components/header/mobile.module.css +1 -1
- package/cssm/consts.d.ts +12 -0
- package/cssm/consts.js +17 -0
- package/cssm/desktop/Component.desktop.d.ts +1 -1
- package/cssm/desktop/desktop.module.css +5 -5
- package/cssm/mobile/mobile.module.css +1 -1
- package/cssm/typings.d.ts +3 -2
- package/cssm/vars.css +1 -1
- package/desktop/Component.desktop.d.ts +1 -1
- package/desktop/desktop.css +10 -10
- package/esm/Component.d.ts +1 -1
- package/esm/Component.js +6 -5
- package/esm/Component.responsive.d.ts +1 -1
- package/esm/ResponsiveContext.js +1 -1
- package/esm/components/content/Component.js +5 -4
- package/esm/components/content/desktop.css +8 -8
- package/esm/components/content/index.css +5 -5
- package/esm/components/content/mobile.css +4 -4
- package/esm/components/controls/Component.js +2 -2
- package/esm/components/controls/index.css +2 -2
- package/esm/components/footer/Component.js +6 -5
- package/esm/components/footer/desktop.css +10 -10
- package/esm/components/footer/index.css +5 -5
- package/esm/components/footer/layout.css +18 -18
- package/esm/components/footer/mobile.css +4 -4
- package/esm/components/header/Component.js +5 -4
- package/esm/components/header/desktop.css +16 -16
- package/esm/components/header/index.css +5 -5
- package/esm/components/header/mobile.css +5 -5
- package/esm/consts.d.ts +12 -0
- package/esm/consts.js +13 -0
- package/esm/desktop/Component.desktop.d.ts +1 -1
- package/esm/desktop/desktop.css +10 -10
- package/esm/layout.module-5f9fd885.js +4 -0
- package/esm/mobile/mobile.css +3 -3
- package/esm/transitions.css +8 -8
- package/esm/typings.d.ts +3 -2
- package/layout.module-48d3e9a8.js +6 -0
- package/mobile/mobile.css +3 -3
- package/modern/Component.d.ts +1 -1
- package/modern/Component.js +6 -5
- package/modern/Component.responsive.d.ts +1 -1
- package/modern/ResponsiveContext.js +1 -1
- package/modern/components/content/Component.js +5 -4
- package/modern/components/content/desktop.css +8 -8
- package/modern/components/content/index.css +5 -5
- package/modern/components/content/mobile.css +4 -4
- package/modern/components/controls/Component.js +2 -2
- package/modern/components/controls/index.css +2 -2
- package/modern/components/footer/Component.js +6 -5
- package/modern/components/footer/desktop.css +10 -10
- package/modern/components/footer/index.css +5 -5
- package/modern/components/footer/layout.css +18 -18
- package/modern/components/footer/mobile.css +4 -4
- package/modern/components/header/Component.js +5 -4
- package/modern/components/header/desktop.css +16 -16
- package/modern/components/header/index.css +5 -5
- package/modern/components/header/mobile.css +5 -5
- package/modern/consts.d.ts +12 -0
- package/modern/consts.js +13 -0
- package/modern/desktop/Component.desktop.d.ts +1 -1
- package/modern/desktop/desktop.css +10 -10
- package/modern/layout.module-8b353bc6.js +4 -0
- package/modern/mobile/mobile.css +3 -3
- package/modern/transitions.css +8 -8
- package/modern/typings.d.ts +3 -2
- package/package.json +2 -2
- package/src/Component.tsx +3 -2
- package/src/ResponsiveContext.tsx +1 -1
- package/src/components/content/Component.tsx +2 -1
- package/src/components/content/desktop.module.css +4 -4
- package/src/components/footer/Component.tsx +2 -1
- package/src/components/footer/desktop.module.css +4 -4
- package/src/components/header/Component.tsx +2 -1
- package/src/components/header/desktop.module.css +8 -8
- package/src/consts.ts +11 -0
- package/src/desktop/desktop.module.css +4 -4
- package/src/typings.ts +3 -2
- package/transitions.css +8 -8
- package/typings.d.ts +3 -2
- package/esm/layout.module-18d2351f.js +0 -4
- package/layout.module-fd9ac366.js +0 -6
- package/modern/layout.module-8196cddb.js +0 -4
package/modern/consts.js
ADDED
|
@@ -3,7 +3,7 @@ import React from 'react';
|
|
|
3
3
|
import { ControlsProps } from "../components/controls/index";
|
|
4
4
|
import { HeaderProps } from "../components/header/Component";
|
|
5
5
|
declare const ModalDesktop: React.ForwardRefExoticComponent<import("@alfalab/core-components-base-modal").BaseModalProps & {
|
|
6
|
-
size?: "s" | "m" | "l" | "xl" | "fullscreen" | undefined;
|
|
6
|
+
size?: "s" | "m" | "l" | "xl" | "fullscreen" | 500 | 600 | 800 | 1140 | undefined;
|
|
7
7
|
fullscreen?: boolean | undefined;
|
|
8
8
|
fixedPosition?: boolean | undefined;
|
|
9
9
|
hasCloser?: boolean | undefined;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
/* hash:
|
|
2
|
-
:root {
|
|
1
|
+
/* hash: a5mgv */
|
|
2
|
+
:root { /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */
|
|
3
3
|
} /* deprecated */ :root { /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */
|
|
4
4
|
} :root { /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */
|
|
5
5
|
} :root {
|
|
@@ -35,25 +35,25 @@
|
|
|
35
35
|
/* mobile */
|
|
36
36
|
|
|
37
37
|
/* paddings */
|
|
38
|
-
} .
|
|
38
|
+
} .modal__wrapper_n49hs {
|
|
39
39
|
padding-top: var(--modal-vertical-padding);
|
|
40
40
|
padding-bottom: var(--modal-vertical-padding);
|
|
41
|
-
} .
|
|
41
|
+
} .modal__component_n49hs {
|
|
42
42
|
width: 100%;
|
|
43
43
|
max-width: 100%;
|
|
44
44
|
border-radius: var(--modal-border-radius);
|
|
45
|
-
} .
|
|
45
|
+
} .modal__fullscreen_n49hs {
|
|
46
46
|
padding-top: 0;
|
|
47
47
|
padding-bottom: 0
|
|
48
|
-
} .
|
|
48
|
+
} .modal__fullscreen_n49hs .modal__component_n49hs {
|
|
49
49
|
flex: 1;
|
|
50
50
|
border-radius: 0;
|
|
51
|
-
} .
|
|
51
|
+
} .modal__size-500_n49hs {
|
|
52
52
|
width: var(--modal-s-width);
|
|
53
|
-
} .
|
|
53
|
+
} .modal__size-600_n49hs {
|
|
54
54
|
width: var(--modal-m-width);
|
|
55
|
-
} .
|
|
55
|
+
} .modal__size-800_n49hs {
|
|
56
56
|
width: var(--modal-l-width);
|
|
57
|
-
} .
|
|
57
|
+
} .modal__size-1140_n49hs {
|
|
58
58
|
width: var(--modal-xl-width);
|
|
59
59
|
}
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
const layoutStyles = {"column":"modal__column_1tj5a","gap-16":"modal__gap-16_1tj5a","gap-24":"modal__gap-24_1tj5a","gap-32":"modal__gap-32_1tj5a","start":"modal__start_1tj5a","center":"modal__center_1tj5a","space-between":"modal__space-between_1tj5a"};
|
|
2
|
+
require('./components/footer/layout.css')
|
|
3
|
+
|
|
4
|
+
export { layoutStyles as l };
|
package/modern/mobile/mobile.css
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
/* hash:
|
|
2
|
-
:root {
|
|
1
|
+
/* hash: 11fzb */
|
|
2
|
+
:root { /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */
|
|
3
3
|
} /* deprecated */ :root { /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */
|
|
4
4
|
} :root { /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */ /* deprecated */
|
|
5
5
|
} :root {
|
|
@@ -27,7 +27,7 @@
|
|
|
27
27
|
/* mobile */
|
|
28
28
|
|
|
29
29
|
/* paddings */
|
|
30
|
-
} .
|
|
30
|
+
} .modal__component_z5it3 {
|
|
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: yc4rg */
|
|
2
|
+
.modal__appear_1bxuk,
|
|
3
|
+
.modal__enter_1bxuk {
|
|
4
4
|
opacity: 0;
|
|
5
5
|
transform: translateY(15px);
|
|
6
6
|
}
|
|
7
7
|
|
|
8
|
-
.
|
|
9
|
-
.
|
|
8
|
+
.modal__appearActive_1bxuk,
|
|
9
|
+
.modal__enterActive_1bxuk {
|
|
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_1bxuk {
|
|
16
16
|
opacity: 1;
|
|
17
17
|
transform: translateY(0);
|
|
18
18
|
}
|
|
19
19
|
|
|
20
|
-
.
|
|
21
|
-
.
|
|
20
|
+
.modal__exitActive_1bxuk,
|
|
21
|
+
.modal__exitDone_1bxuk {
|
|
22
22
|
opacity: 0;
|
|
23
23
|
transform: translateY(15px);
|
|
24
24
|
transition: opacity 200ms ease-out, transform 200ms ease-out;
|
package/modern/typings.d.ts
CHANGED
|
@@ -3,9 +3,10 @@ import { BaseModalProps } from "@alfalab/core-components-base-modal";
|
|
|
3
3
|
type ModalDesktopProps = BaseModalProps & {
|
|
4
4
|
/**
|
|
5
5
|
* Ширина модального окна
|
|
6
|
-
* @default
|
|
6
|
+
* @default 600
|
|
7
|
+
* @description s, m, l, xl deprecated, используйте вместо них 500, 600, 800, 1140 соответственно
|
|
7
8
|
*/
|
|
8
|
-
size?: 's' | 'm' | 'l' | 'xl' | 'fullscreen';
|
|
9
|
+
size?: 's' | 'm' | 'l' | 'xl' | 'fullscreen' | 500 | 600 | 800 | 1140;
|
|
9
10
|
/**
|
|
10
11
|
* Растягивает модальное окно на весь экран
|
|
11
12
|
* @deprecated Используйте размер fullscreen
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@alfalab/core-components-modal",
|
|
3
|
-
"version": "9.
|
|
3
|
+
"version": "9.2.0",
|
|
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.7.2",
|
|
15
|
-
"@alfalab/core-components-navigation-bar": "^0.8.
|
|
15
|
+
"@alfalab/core-components-navigation-bar": "^0.8.4",
|
|
16
16
|
"@alfalab/core-components-shared": "^0.9.1",
|
|
17
17
|
"@alfalab/core-components-mq": "^4.2.0",
|
|
18
18
|
"classnames": "^2.3.1",
|
package/src/Component.tsx
CHANGED
|
@@ -4,6 +4,7 @@ import cn from 'classnames';
|
|
|
4
4
|
|
|
5
5
|
import { BaseModal } from '@alfalab/core-components-base-modal';
|
|
6
6
|
|
|
7
|
+
import { SIZE_TO_CLASSNAME_MAP } from './consts';
|
|
7
8
|
import { ResponsiveContext } from './ResponsiveContext';
|
|
8
9
|
import { ModalDesktopProps, View } from './typings';
|
|
9
10
|
|
|
@@ -14,7 +15,7 @@ import transitions from './transitions.module.css';
|
|
|
14
15
|
export const Modal = forwardRef<HTMLDivElement, ModalDesktopProps & { view: View }>(
|
|
15
16
|
(
|
|
16
17
|
{
|
|
17
|
-
size =
|
|
18
|
+
size = 500,
|
|
18
19
|
fixedPosition,
|
|
19
20
|
fullscreen,
|
|
20
21
|
children,
|
|
@@ -60,7 +61,7 @@ export const Modal = forwardRef<HTMLDivElement, ModalDesktopProps & { view: View
|
|
|
60
61
|
className: cn(
|
|
61
62
|
desktopStyles.component,
|
|
62
63
|
className,
|
|
63
|
-
desktopStyles[componentSize],
|
|
64
|
+
desktopStyles[SIZE_TO_CLASSNAME_MAP[componentSize]],
|
|
64
65
|
),
|
|
65
66
|
backdropProps: {
|
|
66
67
|
invisible: componentSize === 'fullscreen',
|
|
@@ -3,6 +3,7 @@ import cn from 'classnames';
|
|
|
3
3
|
|
|
4
4
|
import { getDataTestId } from '@alfalab/core-components-shared';
|
|
5
5
|
|
|
6
|
+
import { SIZE_TO_CLASSNAME_MAP } from '../../consts';
|
|
6
7
|
import { ModalContext } from '../../Context';
|
|
7
8
|
import { ResponsiveContext } from '../../ResponsiveContext';
|
|
8
9
|
import { ContentProps } from '../../typings';
|
|
@@ -20,7 +21,7 @@ export const Content: FC<ContentProps> = ({ children, flex, className }) => {
|
|
|
20
21
|
className={cn(styles.content, className, {
|
|
21
22
|
[styles.flex]: flex,
|
|
22
23
|
[styles.withHeader]: hasHeader,
|
|
23
|
-
[desktopStyles[size]]: view === 'desktop' && size,
|
|
24
|
+
[desktopStyles[SIZE_TO_CLASSNAME_MAP[size]]]: view === 'desktop' && size,
|
|
24
25
|
[mobileStyles.content]: view === 'mobile',
|
|
25
26
|
})}
|
|
26
27
|
ref={contentRef as Ref<HTMLDivElement>}
|
|
@@ -3,6 +3,7 @@ import cn from 'classnames';
|
|
|
3
3
|
|
|
4
4
|
import { getDataTestId } from '@alfalab/core-components-shared';
|
|
5
5
|
|
|
6
|
+
import { SIZE_TO_CLASSNAME_MAP } from '../../consts';
|
|
6
7
|
import { ModalContext } from '../../Context';
|
|
7
8
|
import { ResponsiveContext } from '../../ResponsiveContext';
|
|
8
9
|
|
|
@@ -59,7 +60,7 @@ export const Footer: FC<FooterProps> = ({ children, className, sticky, layout =
|
|
|
59
60
|
[styles.sticky]: sticky,
|
|
60
61
|
[desktopStyles.footer]: view === 'desktop',
|
|
61
62
|
[desktopStyles.sticky]: view === 'desktop' && sticky,
|
|
62
|
-
[desktopStyles[size]]: view === 'desktop',
|
|
63
|
+
[desktopStyles[SIZE_TO_CLASSNAME_MAP[size]]]: view === 'desktop',
|
|
63
64
|
[mobileStyles.footer]: view === 'mobile',
|
|
64
65
|
[mobileStyles.sticky]: view === 'mobile' && sticky,
|
|
65
66
|
},
|
|
@@ -4,6 +4,7 @@ import cn from 'classnames';
|
|
|
4
4
|
import { NavigationBar, NavigationBarProps } from '@alfalab/core-components-navigation-bar';
|
|
5
5
|
import { getDataTestId } from '@alfalab/core-components-shared';
|
|
6
6
|
|
|
7
|
+
import { SIZE_TO_CLASSNAME_MAP } from '../../consts';
|
|
7
8
|
import { ModalContext } from '../../Context';
|
|
8
9
|
import { ResponsiveContext } from '../../ResponsiveContext';
|
|
9
10
|
|
|
@@ -47,7 +48,7 @@ export const Header: FC<HeaderProps> = ({
|
|
|
47
48
|
[styles.hasContent]: hasContent,
|
|
48
49
|
[desktopStyles.header]: view === 'desktop',
|
|
49
50
|
[desktopStyles.sticky]: view === 'desktop' && sticky,
|
|
50
|
-
[desktopStyles[size]]: view === 'desktop',
|
|
51
|
+
[desktopStyles[SIZE_TO_CLASSNAME_MAP[size]]]: view === 'desktop',
|
|
51
52
|
[mobileStyles.header]: view === 'mobile',
|
|
52
53
|
[mobileStyles.sticky]: view === 'mobile' && sticky,
|
|
53
54
|
})}
|
|
@@ -10,25 +10,25 @@
|
|
|
10
10
|
font-family: var(--modal-header-desktop-font-family);
|
|
11
11
|
}
|
|
12
12
|
|
|
13
|
-
.
|
|
14
|
-
.
|
|
13
|
+
.size-500 .content,
|
|
14
|
+
.size-600 .content {
|
|
15
15
|
padding: var(--modal-s-header-desktop-content-paddings);
|
|
16
16
|
font-size: var(--modal-s-header-desktop-font-size);
|
|
17
17
|
line-height: var(--modal-s-header-desktop-line-height);
|
|
18
18
|
}
|
|
19
19
|
|
|
20
|
-
.
|
|
21
|
-
.
|
|
20
|
+
.size-800 .content,
|
|
21
|
+
.size-1140 .content,
|
|
22
22
|
.fullscreen .content {
|
|
23
23
|
padding: var(--modal-l-header-desktop-content-paddings);
|
|
24
24
|
font-size: var(--modal-l-header-desktop-font-size);
|
|
25
25
|
line-height: var(--modal-l-header-desktop-line-height);
|
|
26
26
|
}
|
|
27
27
|
|
|
28
|
-
.
|
|
29
|
-
.
|
|
30
|
-
.
|
|
31
|
-
.
|
|
28
|
+
.size-500,
|
|
29
|
+
.size-600,
|
|
30
|
+
.size-800,
|
|
31
|
+
.size-1140,
|
|
32
32
|
.fullscreen {
|
|
33
33
|
padding: var(--modal-s-header-paddings);
|
|
34
34
|
}
|
package/src/consts.ts
ADDED
|
@@ -21,18 +21,18 @@
|
|
|
21
21
|
}
|
|
22
22
|
}
|
|
23
23
|
|
|
24
|
-
.
|
|
24
|
+
.size-500 {
|
|
25
25
|
width: var(--modal-s-width);
|
|
26
26
|
}
|
|
27
27
|
|
|
28
|
-
.
|
|
28
|
+
.size-600 {
|
|
29
29
|
width: var(--modal-m-width);
|
|
30
30
|
}
|
|
31
31
|
|
|
32
|
-
.
|
|
32
|
+
.size-800 {
|
|
33
33
|
width: var(--modal-l-width);
|
|
34
34
|
}
|
|
35
35
|
|
|
36
|
-
.
|
|
36
|
+
.size-1140 {
|
|
37
37
|
width: var(--modal-xl-width);
|
|
38
38
|
}
|
package/src/typings.ts
CHANGED
|
@@ -5,9 +5,10 @@ import type { BaseModalProps } from '@alfalab/core-components-base-modal';
|
|
|
5
5
|
export type ModalDesktopProps = BaseModalProps & {
|
|
6
6
|
/**
|
|
7
7
|
* Ширина модального окна
|
|
8
|
-
* @default
|
|
8
|
+
* @default 600
|
|
9
|
+
* @description s, m, l, xl deprecated, используйте вместо них 500, 600, 800, 1140 соответственно
|
|
9
10
|
*/
|
|
10
|
-
size?: 's' | 'm' | 'l' | 'xl' | 'fullscreen';
|
|
11
|
+
size?: 's' | 'm' | 'l' | 'xl' | 'fullscreen' | 500 | 600 | 800 | 1140;
|
|
11
12
|
|
|
12
13
|
/**
|
|
13
14
|
* Растягивает модальное окно на весь экран
|
package/transitions.css
CHANGED
|
@@ -1,24 +1,24 @@
|
|
|
1
|
-
/* hash:
|
|
2
|
-
.
|
|
3
|
-
.
|
|
1
|
+
/* hash: yc4rg */
|
|
2
|
+
.modal__appear_1bxuk,
|
|
3
|
+
.modal__enter_1bxuk {
|
|
4
4
|
opacity: 0;
|
|
5
5
|
transform: translateY(15px);
|
|
6
6
|
}
|
|
7
7
|
|
|
8
|
-
.
|
|
9
|
-
.
|
|
8
|
+
.modal__appearActive_1bxuk,
|
|
9
|
+
.modal__enterActive_1bxuk {
|
|
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_1bxuk {
|
|
16
16
|
opacity: 1;
|
|
17
17
|
transform: translateY(0);
|
|
18
18
|
}
|
|
19
19
|
|
|
20
|
-
.
|
|
21
|
-
.
|
|
20
|
+
.modal__exitActive_1bxuk,
|
|
21
|
+
.modal__exitDone_1bxuk {
|
|
22
22
|
opacity: 0;
|
|
23
23
|
transform: translateY(15px);
|
|
24
24
|
transition: opacity 200ms ease-out, transform 200ms ease-out;
|
package/typings.d.ts
CHANGED
|
@@ -3,9 +3,10 @@ import { BaseModalProps } from "@alfalab/core-components-base-modal";
|
|
|
3
3
|
type ModalDesktopProps = BaseModalProps & {
|
|
4
4
|
/**
|
|
5
5
|
* Ширина модального окна
|
|
6
|
-
* @default
|
|
6
|
+
* @default 600
|
|
7
|
+
* @description s, m, l, xl deprecated, используйте вместо них 500, 600, 800, 1140 соответственно
|
|
7
8
|
*/
|
|
8
|
-
size?: 's' | 'm' | 'l' | 'xl' | 'fullscreen';
|
|
9
|
+
size?: 's' | 'm' | 'l' | 'xl' | 'fullscreen' | 500 | 600 | 800 | 1140;
|
|
9
10
|
/**
|
|
10
11
|
* Растягивает модальное окно на весь экран
|
|
11
12
|
* @deprecated Используйте размер fullscreen
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
var layoutStyles = {"column":"modal__column_1h82o","gap-16":"modal__gap-16_1h82o","gap-24":"modal__gap-24_1h82o","gap-32":"modal__gap-32_1h82o","start":"modal__start_1h82o","center":"modal__center_1h82o","space-between":"modal__space-between_1h82o"};
|
|
2
|
-
require('./components/footer/layout.css')
|
|
3
|
-
|
|
4
|
-
export { layoutStyles as l };
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
|
-
var layoutStyles = {"column":"modal__column_1h82o","gap-16":"modal__gap-16_1h82o","gap-24":"modal__gap-24_1h82o","gap-32":"modal__gap-32_1h82o","start":"modal__start_1h82o","center":"modal__center_1h82o","space-between":"modal__space-between_1h82o"};
|
|
4
|
-
require('./components/footer/layout.css')
|
|
5
|
-
|
|
6
|
-
exports.layoutStyles = layoutStyles;
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
const layoutStyles = {"column":"modal__column_1h82o","gap-16":"modal__gap-16_1h82o","gap-24":"modal__gap-24_1h82o","gap-32":"modal__gap-32_1h82o","start":"modal__start_1h82o","center":"modal__center_1h82o","space-between":"modal__space-between_1h82o"};
|
|
2
|
-
require('./components/footer/layout.css')
|
|
3
|
-
|
|
4
|
-
export { layoutStyles as l };
|