@alfalab/core-components-universal-modal 3.2.5 → 3.2.6-alfasans
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/Context.d.ts +1 -1
- package/Context.js +1 -1
- package/Context.js.map +1 -1
- package/components/base-content/index.css +1 -1
- package/components/base-content/index.module.css.js +1 -1
- package/components/base-footer/index.css +3 -3
- package/components/base-footer/index.module.css.js +1 -1
- package/components/base-header/index.css +4 -4
- package/components/base-header/index.module.css.js +1 -1
- package/cssm/Context.d.ts +1 -1
- package/cssm/Context.js +1 -1
- package/cssm/Context.js.map +1 -1
- package/cssm/desktop/Component.desktop.d.ts +1 -1
- package/cssm/desktop/components/center-modal/center-modal.js +2 -2
- package/cssm/desktop/components/center-modal/center-modal.js.map +1 -1
- package/cssm/desktop/components/footer/index.d.ts +2 -7
- package/cssm/desktop/components/footer/index.js.map +1 -1
- package/cssm/desktop/components/header/desktop.module.css +11 -6
- package/cssm/desktop/components/modal-content/modal-content.js +2 -9
- package/cssm/desktop/components/modal-content/modal-content.js.map +1 -1
- package/cssm/desktop/components/side-modal/side-modal.js +2 -2
- package/cssm/desktop/components/side-modal/side-modal.js.map +1 -1
- package/cssm/desktop/types/props.d.ts +1 -1
- package/cssm/mobile/components/header/index.module.css +9 -6
- package/cssm/mobile/types/props.d.ts +1 -1
- package/desktop/Component.desktop.d.ts +1 -1
- package/desktop/components/center-modal/center-modal.js +2 -2
- package/desktop/components/center-modal/center-modal.js.map +1 -1
- package/desktop/components/center-modal/index.css +1104 -1104
- package/desktop/components/center-modal/index.module.css.js +1 -1
- package/desktop/components/center-modal/transitions/safari-transitions.css +7 -7
- package/desktop/components/center-modal/transitions/safari-transitions.module.css.js +1 -1
- package/desktop/components/center-modal/transitions/transitions.css +7 -7
- package/desktop/components/center-modal/transitions/transitions.module.css.js +1 -1
- package/desktop/components/footer/desktop.css +1 -1
- package/desktop/components/footer/desktop.module.css.js +1 -1
- package/desktop/components/footer/index.d.ts +2 -7
- package/desktop/components/footer/index.js.map +1 -1
- package/desktop/components/footer/layout.css +9 -9
- package/desktop/components/footer/layout.module.css.js +1 -1
- package/desktop/components/header/desktop.css +16 -11
- package/desktop/components/header/desktop.module.css.js +1 -1
- package/desktop/components/modal-content/modal-content.css +4 -4
- package/desktop/components/modal-content/modal-content.js +2 -9
- package/desktop/components/modal-content/modal-content.js.map +1 -1
- package/desktop/components/modal-content/modal-content.module.css.js +1 -1
- package/desktop/components/side-modal/index.css +1106 -1106
- package/desktop/components/side-modal/index.module.css.js +1 -1
- package/desktop/components/side-modal/side-modal.js +2 -2
- package/desktop/components/side-modal/side-modal.js.map +1 -1
- package/desktop/components/side-modal/transitions/transitions.css +71 -71
- package/desktop/components/side-modal/transitions/transitions.module.css.js +1 -1
- package/desktop/styles/transitions/full-size-backdrop-transitions.css +13 -13
- package/desktop/styles/transitions/full-size-backdrop-transitions.module.css.js +1 -1
- package/desktop/styles/transitions/full-size-vertical-bottom-transitions.css +7 -7
- package/desktop/styles/transitions/full-size-vertical-bottom-transitions.module.css.js +1 -1
- package/desktop/styles/transitions/full-size-vertical-center-transitions.css +7 -7
- package/desktop/styles/transitions/full-size-vertical-center-transitions.module.css.js +1 -1
- package/desktop/styles/transitions/full-size-vertical-top-transitions.css +7 -7
- package/desktop/styles/transitions/full-size-vertical-top-transitions.module.css.js +1 -1
- package/desktop/types/props.d.ts +1 -1
- package/esm/Context.d.ts +1 -1
- package/esm/Context.js +1 -1
- package/esm/Context.js.map +1 -1
- package/esm/components/base-content/index.css +1 -1
- package/esm/components/base-content/index.module.css.js +1 -1
- package/esm/components/base-footer/index.css +3 -3
- package/esm/components/base-footer/index.module.css.js +1 -1
- package/esm/components/base-header/index.css +4 -4
- package/esm/components/base-header/index.module.css.js +1 -1
- package/esm/desktop/Component.desktop.d.ts +1 -1
- package/esm/desktop/components/center-modal/center-modal.js +2 -2
- package/esm/desktop/components/center-modal/center-modal.js.map +1 -1
- package/esm/desktop/components/center-modal/index.css +1104 -1104
- package/esm/desktop/components/center-modal/index.module.css.js +1 -1
- package/esm/desktop/components/center-modal/transitions/safari-transitions.css +7 -7
- package/esm/desktop/components/center-modal/transitions/safari-transitions.module.css.js +1 -1
- package/esm/desktop/components/center-modal/transitions/transitions.css +7 -7
- package/esm/desktop/components/center-modal/transitions/transitions.module.css.js +1 -1
- package/esm/desktop/components/footer/desktop.css +1 -1
- package/esm/desktop/components/footer/desktop.module.css.js +1 -1
- package/esm/desktop/components/footer/index.d.ts +2 -7
- package/esm/desktop/components/footer/index.js.map +1 -1
- package/esm/desktop/components/footer/layout.css +9 -9
- package/esm/desktop/components/footer/layout.module.css.js +1 -1
- package/esm/desktop/components/header/desktop.css +16 -11
- package/esm/desktop/components/header/desktop.module.css.js +1 -1
- package/esm/desktop/components/modal-content/modal-content.css +4 -4
- package/esm/desktop/components/modal-content/modal-content.js +2 -8
- package/esm/desktop/components/modal-content/modal-content.js.map +1 -1
- package/esm/desktop/components/modal-content/modal-content.module.css.js +1 -1
- package/esm/desktop/components/side-modal/index.css +1106 -1106
- package/esm/desktop/components/side-modal/index.module.css.js +1 -1
- package/esm/desktop/components/side-modal/side-modal.js +2 -2
- package/esm/desktop/components/side-modal/side-modal.js.map +1 -1
- package/esm/desktop/components/side-modal/transitions/transitions.css +71 -71
- package/esm/desktop/components/side-modal/transitions/transitions.module.css.js +1 -1
- package/esm/desktop/styles/transitions/full-size-backdrop-transitions.css +13 -13
- package/esm/desktop/styles/transitions/full-size-backdrop-transitions.module.css.js +1 -1
- package/esm/desktop/styles/transitions/full-size-vertical-bottom-transitions.css +7 -7
- package/esm/desktop/styles/transitions/full-size-vertical-bottom-transitions.module.css.js +1 -1
- package/esm/desktop/styles/transitions/full-size-vertical-center-transitions.css +7 -7
- package/esm/desktop/styles/transitions/full-size-vertical-center-transitions.module.css.js +1 -1
- package/esm/desktop/styles/transitions/full-size-vertical-top-transitions.css +7 -7
- package/esm/desktop/styles/transitions/full-size-vertical-top-transitions.module.css.js +1 -1
- package/esm/desktop/types/props.d.ts +1 -1
- package/esm/mobile/components/content/index.css +3 -3
- package/esm/mobile/components/content/index.module.css.js +1 -1
- package/esm/mobile/components/footer/index.css +2 -2
- package/esm/mobile/components/footer/index.module.css.js +1 -1
- package/esm/mobile/components/footer/layout.mobile.css +9 -9
- package/esm/mobile/components/footer/layout.mobile.module.css.js +1 -1
- package/esm/mobile/components/header/index.css +12 -9
- package/esm/mobile/components/header/index.module.css.js +1 -1
- package/esm/mobile/mobile.css +3 -3
- package/esm/mobile/mobile.module.css.js +1 -1
- package/esm/mobile/transitions/right-side-transitions.mobile.css +7 -7
- package/esm/mobile/transitions/right-side-transitions.mobile.module.css.js +1 -1
- package/esm/mobile/transitions/transitions.mobile.css +7 -7
- package/esm/mobile/transitions/transitions.mobile.module.css.js +1 -1
- package/esm/mobile/types/props.d.ts +1 -1
- package/mobile/components/content/index.css +3 -3
- package/mobile/components/content/index.module.css.js +1 -1
- package/mobile/components/footer/index.css +2 -2
- package/mobile/components/footer/index.module.css.js +1 -1
- package/mobile/components/footer/layout.mobile.css +9 -9
- package/mobile/components/footer/layout.mobile.module.css.js +1 -1
- package/mobile/components/header/index.css +12 -9
- package/mobile/components/header/index.module.css.js +1 -1
- package/mobile/mobile.css +3 -3
- package/mobile/mobile.module.css.js +1 -1
- package/mobile/transitions/right-side-transitions.mobile.css +7 -7
- package/mobile/transitions/right-side-transitions.mobile.module.css.js +1 -1
- package/mobile/transitions/transitions.mobile.css +7 -7
- package/mobile/transitions/transitions.mobile.module.css.js +1 -1
- package/mobile/types/props.d.ts +1 -1
- package/modern/Context.d.ts +1 -1
- package/modern/Context.js +1 -1
- package/modern/Context.js.map +1 -1
- package/modern/components/base-content/index.css +1 -1
- package/modern/components/base-content/index.module.css.js +1 -1
- package/modern/components/base-footer/index.css +3 -3
- package/modern/components/base-footer/index.module.css.js +1 -1
- package/modern/components/base-header/index.css +4 -4
- package/modern/components/base-header/index.module.css.js +1 -1
- package/modern/desktop/Component.desktop.d.ts +1 -1
- package/modern/desktop/components/center-modal/center-modal.js +2 -2
- package/modern/desktop/components/center-modal/center-modal.js.map +1 -1
- package/modern/desktop/components/center-modal/index.css +1104 -1104
- package/modern/desktop/components/center-modal/index.module.css.js +1 -1
- package/modern/desktop/components/center-modal/transitions/safari-transitions.css +7 -7
- package/modern/desktop/components/center-modal/transitions/safari-transitions.module.css.js +1 -1
- package/modern/desktop/components/center-modal/transitions/transitions.css +7 -7
- package/modern/desktop/components/center-modal/transitions/transitions.module.css.js +1 -1
- package/modern/desktop/components/footer/desktop.css +1 -1
- package/modern/desktop/components/footer/desktop.module.css.js +1 -1
- package/modern/desktop/components/footer/index.d.ts +2 -7
- package/modern/desktop/components/footer/index.js.map +1 -1
- package/modern/desktop/components/footer/layout.css +9 -9
- package/modern/desktop/components/footer/layout.module.css.js +1 -1
- package/modern/desktop/components/header/desktop.css +16 -11
- package/modern/desktop/components/header/desktop.module.css.js +1 -1
- package/modern/desktop/components/modal-content/modal-content.css +4 -4
- package/modern/desktop/components/modal-content/modal-content.js +2 -8
- package/modern/desktop/components/modal-content/modal-content.js.map +1 -1
- package/modern/desktop/components/modal-content/modal-content.module.css.js +1 -1
- package/modern/desktop/components/side-modal/index.css +1106 -1106
- package/modern/desktop/components/side-modal/index.module.css.js +1 -1
- package/modern/desktop/components/side-modal/side-modal.js +2 -2
- package/modern/desktop/components/side-modal/side-modal.js.map +1 -1
- package/modern/desktop/components/side-modal/transitions/transitions.css +71 -71
- package/modern/desktop/components/side-modal/transitions/transitions.module.css.js +1 -1
- package/modern/desktop/styles/transitions/full-size-backdrop-transitions.css +13 -13
- package/modern/desktop/styles/transitions/full-size-backdrop-transitions.module.css.js +1 -1
- package/modern/desktop/styles/transitions/full-size-vertical-bottom-transitions.css +7 -7
- package/modern/desktop/styles/transitions/full-size-vertical-bottom-transitions.module.css.js +1 -1
- package/modern/desktop/styles/transitions/full-size-vertical-center-transitions.css +7 -7
- package/modern/desktop/styles/transitions/full-size-vertical-center-transitions.module.css.js +1 -1
- package/modern/desktop/styles/transitions/full-size-vertical-top-transitions.css +7 -7
- package/modern/desktop/styles/transitions/full-size-vertical-top-transitions.module.css.js +1 -1
- package/modern/desktop/types/props.d.ts +1 -1
- package/modern/mobile/components/content/index.css +3 -3
- package/modern/mobile/components/content/index.module.css.js +1 -1
- package/modern/mobile/components/footer/index.css +2 -2
- package/modern/mobile/components/footer/index.module.css.js +1 -1
- package/modern/mobile/components/footer/layout.mobile.css +9 -9
- package/modern/mobile/components/footer/layout.mobile.module.css.js +1 -1
- package/modern/mobile/components/header/index.css +12 -9
- package/modern/mobile/components/header/index.module.css.js +1 -1
- package/modern/mobile/mobile.css +3 -3
- package/modern/mobile/mobile.module.css.js +1 -1
- package/modern/mobile/transitions/right-side-transitions.mobile.css +7 -7
- package/modern/mobile/transitions/right-side-transitions.mobile.module.css.js +1 -1
- package/modern/mobile/transitions/transitions.mobile.css +7 -7
- package/modern/mobile/transitions/transitions.mobile.module.css.js +1 -1
- package/modern/mobile/types/props.d.ts +1 -1
- package/moderncssm/Context.d.ts +1 -1
- package/moderncssm/Context.js +1 -1
- package/moderncssm/Context.js.map +1 -1
- package/moderncssm/desktop/Component.desktop.d.ts +1 -1
- package/moderncssm/desktop/components/center-modal/center-modal.js +2 -2
- package/moderncssm/desktop/components/center-modal/center-modal.js.map +1 -1
- package/moderncssm/desktop/components/footer/index.d.ts +2 -7
- package/moderncssm/desktop/components/footer/index.js.map +1 -1
- package/moderncssm/desktop/components/header/desktop.module.css +8 -4
- package/moderncssm/desktop/components/modal-content/modal-content.js +2 -8
- package/moderncssm/desktop/components/modal-content/modal-content.js.map +1 -1
- package/moderncssm/desktop/components/side-modal/side-modal.js +2 -2
- package/moderncssm/desktop/components/side-modal/side-modal.js.map +1 -1
- package/moderncssm/desktop/types/props.d.ts +1 -1
- package/moderncssm/mobile/components/header/index.module.css +6 -4
- package/moderncssm/mobile/types/props.d.ts +1 -1
- package/package.json +9 -9
- package/src/Context.ts +1 -1
- package/src/desktop/components/center-modal/center-modal.tsx +5 -3
- package/src/desktop/components/footer/index.tsx +1 -6
- package/src/desktop/components/modal-content/modal-content.tsx +1 -9
- package/src/desktop/components/side-modal/side-modal.tsx +5 -3
- package/src/desktop/types/props.ts +1 -0
- package/src/mobile/types/props.ts +2 -0
- package/cssm/desktop/hooks/use-modal-highlighted.d.ts +0 -13
- package/cssm/desktop/hooks/use-modal-highlighted.js +0 -57
- package/cssm/desktop/hooks/use-modal-highlighted.js.map +0 -1
- package/desktop/hooks/use-modal-highlighted.d.ts +0 -13
- package/desktop/hooks/use-modal-highlighted.js +0 -57
- package/desktop/hooks/use-modal-highlighted.js.map +0 -1
- package/esm/desktop/hooks/use-modal-highlighted.d.ts +0 -13
- package/esm/desktop/hooks/use-modal-highlighted.js +0 -53
- package/esm/desktop/hooks/use-modal-highlighted.js.map +0 -1
- package/modern/desktop/hooks/use-modal-highlighted.d.ts +0 -13
- package/modern/desktop/hooks/use-modal-highlighted.js +0 -52
- package/modern/desktop/hooks/use-modal-highlighted.js.map +0 -1
- package/moderncssm/desktop/hooks/use-modal-highlighted.d.ts +0 -13
- package/moderncssm/desktop/hooks/use-modal-highlighted.js +0 -52
- package/moderncssm/desktop/hooks/use-modal-highlighted.js.map +0 -1
- package/src/desktop/hooks/use-modal-highlighted.ts +0 -75
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import './index.css';
|
|
2
2
|
|
|
3
|
-
const styles = {"footer":"universal-
|
|
3
|
+
const styles = {"footer":"universal-modal__footer_91cl4","sticky":"universal-modal__sticky_91cl4"};
|
|
4
4
|
|
|
5
5
|
export { styles as default };
|
|
6
6
|
//# sourceMappingURL=index.module.css.js.map
|
|
@@ -1,25 +1,25 @@
|
|
|
1
1
|
:root {
|
|
2
2
|
--gap-8: 8px;
|
|
3
3
|
}
|
|
4
|
-
.universal-
|
|
4
|
+
.universal-modal__column_4w2gm {
|
|
5
5
|
flex-direction: column;
|
|
6
6
|
}
|
|
7
|
-
.universal-
|
|
7
|
+
.universal-modal__start_4w2gm {
|
|
8
8
|
justify-content: flex-start;
|
|
9
9
|
}
|
|
10
|
-
.universal-
|
|
10
|
+
.universal-modal__center_4w2gm {
|
|
11
11
|
justify-content: center;
|
|
12
12
|
}
|
|
13
|
-
.universal-modal__space-
|
|
13
|
+
.universal-modal__space-between_4w2gm {
|
|
14
14
|
justify-content: space-between;
|
|
15
15
|
}
|
|
16
|
-
.universal-modal__space-
|
|
16
|
+
.universal-modal__space-between_4w2gm > * {
|
|
17
17
|
flex: 1;
|
|
18
18
|
}
|
|
19
|
-
.universal-
|
|
20
|
-
.universal-
|
|
21
|
-
.universal-modal__space-
|
|
22
|
-
.universal-
|
|
19
|
+
.universal-modal__start_4w2gm,
|
|
20
|
+
.universal-modal__center_4w2gm,
|
|
21
|
+
.universal-modal__space-between_4w2gm,
|
|
22
|
+
.universal-modal__column_4w2gm {
|
|
23
23
|
display: flex;
|
|
24
24
|
gap: var(--gap-8);
|
|
25
25
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import './layout.mobile.css';
|
|
2
2
|
|
|
3
|
-
const layoutStylesMobile = {"column":"universal-
|
|
3
|
+
const layoutStylesMobile = {"column":"universal-modal__column_4w2gm","start":"universal-modal__start_4w2gm","center":"universal-modal__center_4w2gm","space-between":"universal-modal__space-between_4w2gm"};
|
|
4
4
|
|
|
5
5
|
export { layoutStylesMobile as default };
|
|
6
6
|
//# sourceMappingURL=layout.mobile.module.css.js.map
|
|
@@ -6,25 +6,28 @@
|
|
|
6
6
|
--gap-16: 16px;
|
|
7
7
|
}
|
|
8
8
|
:root {
|
|
9
|
-
--font-family-
|
|
10
|
-
system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue',
|
|
9
|
+
--font-family-alfasans:
|
|
10
|
+
'Alfa Interface Sans', system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue',
|
|
11
|
+
Helvetica, sans-serif;
|
|
11
12
|
}
|
|
12
|
-
.universal-
|
|
13
|
+
.universal-modal__header_1wgoa {
|
|
13
14
|
padding: var(--gap-8) var(--gap-4);
|
|
14
15
|
}
|
|
15
|
-
.universal-
|
|
16
|
+
.universal-modal__content_1wgoa {
|
|
16
17
|
font-size: 20px;
|
|
17
18
|
line-height: 28px;
|
|
18
|
-
font-weight:
|
|
19
|
-
|
|
19
|
+
font-weight: 500;
|
|
20
|
+
letter-spacing: -0.15px;
|
|
21
|
+
font-family: var(--font-family-alfasans);
|
|
20
22
|
padding: 0 var(--gap-12);
|
|
21
23
|
min-height: 40px;
|
|
22
24
|
justify-content: center;
|
|
23
25
|
}
|
|
24
|
-
.universal-
|
|
26
|
+
.universal-modal__bottomAddons_1wgoa {
|
|
25
27
|
font-size: 20px;
|
|
26
28
|
line-height: 28px;
|
|
27
|
-
font-weight:
|
|
28
|
-
|
|
29
|
+
font-weight: 500;
|
|
30
|
+
letter-spacing: -0.15px;
|
|
31
|
+
font-family: var(--font-family-alfasans);
|
|
29
32
|
padding: var(--gap-6) var(--gap-16);
|
|
30
33
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import './index.css';
|
|
2
2
|
|
|
3
|
-
const mobileStyles = {"header":"universal-
|
|
3
|
+
const mobileStyles = {"header":"universal-modal__header_1wgoa","content":"universal-modal__content_1wgoa","bottomAddons":"universal-modal__bottomAddons_1wgoa"};
|
|
4
4
|
|
|
5
5
|
export { mobileStyles as default };
|
|
6
6
|
//# sourceMappingURL=index.module.css.js.map
|
package/modern/mobile/mobile.css
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
:root {
|
|
2
2
|
--gap-0: 0px;
|
|
3
3
|
}
|
|
4
|
-
.universal-
|
|
4
|
+
.universal-modal__component_1yulo {
|
|
5
5
|
top: var(--gap-0);
|
|
6
6
|
height: 100%;
|
|
7
7
|
width: 100%;
|
|
@@ -11,10 +11,10 @@
|
|
|
11
11
|
display: flex;
|
|
12
12
|
flex-direction: column;
|
|
13
13
|
}
|
|
14
|
-
.universal-
|
|
14
|
+
.universal-modal__component_1yulo .universal-modal__content_1yulo {
|
|
15
15
|
height: auto;
|
|
16
16
|
}
|
|
17
|
-
.universal-
|
|
17
|
+
.universal-modal__component_1yulo.universal-modal__component_1yulo {
|
|
18
18
|
position: fixed;
|
|
19
19
|
flex: 1;
|
|
20
20
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import './mobile.css';
|
|
2
2
|
|
|
3
|
-
const styles = {"component":"universal-
|
|
3
|
+
const styles = {"component":"universal-modal__component_1yulo","content":"universal-modal__content_1yulo"};
|
|
4
4
|
|
|
5
5
|
export { styles as default };
|
|
6
6
|
//# sourceMappingURL=mobile.module.css.js.map
|
|
@@ -1,18 +1,18 @@
|
|
|
1
|
-
.universal-
|
|
2
|
-
.universal-
|
|
1
|
+
.universal-modal__appear_1225a,
|
|
2
|
+
.universal-modal__enter_1225a {
|
|
3
3
|
transform: translateX(100%);
|
|
4
4
|
}
|
|
5
|
-
.universal-
|
|
6
|
-
.universal-
|
|
5
|
+
.universal-modal__appearActive_1225a,
|
|
6
|
+
.universal-modal__enterActive_1225a {
|
|
7
7
|
transform: translateX(0);
|
|
8
8
|
transition: transform 280ms ease-in-out;
|
|
9
9
|
transition-delay: 80ms;
|
|
10
10
|
}
|
|
11
|
-
.universal-
|
|
11
|
+
.universal-modal__exit_1225a {
|
|
12
12
|
transform: translateX(0);
|
|
13
13
|
}
|
|
14
|
-
.universal-
|
|
15
|
-
.universal-
|
|
14
|
+
.universal-modal__exitActive_1225a,
|
|
15
|
+
.universal-modal__exitDone_1225a {
|
|
16
16
|
transform: translateX(100%);
|
|
17
17
|
transition: transform 280ms ease-in-out;
|
|
18
18
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import './right-side-transitions.mobile.css';
|
|
2
2
|
|
|
3
|
-
const rightSideTransitions = {"appear":"universal-
|
|
3
|
+
const rightSideTransitions = {"appear":"universal-modal__appear_1225a","enter":"universal-modal__enter_1225a","appearActive":"universal-modal__appearActive_1225a","enterActive":"universal-modal__enterActive_1225a","exit":"universal-modal__exit_1225a","exitActive":"universal-modal__exitActive_1225a","exitDone":"universal-modal__exitDone_1225a"};
|
|
4
4
|
|
|
5
5
|
export { rightSideTransitions as default };
|
|
6
6
|
//# sourceMappingURL=right-side-transitions.mobile.module.css.js.map
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
.universal-
|
|
2
|
-
.universal-
|
|
1
|
+
.universal-modal__appear_mmw5o,
|
|
2
|
+
.universal-modal__enter_mmw5o {
|
|
3
3
|
opacity: 0;
|
|
4
4
|
transform: translateY(15px);
|
|
5
5
|
}
|
|
6
6
|
|
|
7
|
-
.universal-
|
|
8
|
-
.universal-
|
|
7
|
+
.universal-modal__appearActive_mmw5o,
|
|
8
|
+
.universal-modal__enterActive_mmw5o {
|
|
9
9
|
opacity: 1;
|
|
10
10
|
transform: translateY(0);
|
|
11
11
|
transition:
|
|
@@ -13,13 +13,13 @@
|
|
|
13
13
|
transform 200ms ease-in;
|
|
14
14
|
}
|
|
15
15
|
|
|
16
|
-
.universal-
|
|
16
|
+
.universal-modal__exit_mmw5o {
|
|
17
17
|
opacity: 1;
|
|
18
18
|
transform: translateY(0);
|
|
19
19
|
}
|
|
20
20
|
|
|
21
|
-
.universal-
|
|
22
|
-
.universal-
|
|
21
|
+
.universal-modal__exitActive_mmw5o,
|
|
22
|
+
.universal-modal__exitDone_mmw5o {
|
|
23
23
|
opacity: 0;
|
|
24
24
|
transform: translateY(15px);
|
|
25
25
|
transition:
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import './transitions.mobile.css';
|
|
2
2
|
|
|
3
|
-
const transitions = {"appear":"universal-
|
|
3
|
+
const transitions = {"appear":"universal-modal__appear_mmw5o","enter":"universal-modal__enter_mmw5o","appearActive":"universal-modal__appearActive_mmw5o","enterActive":"universal-modal__enterActive_mmw5o","exit":"universal-modal__exit_mmw5o","exitActive":"universal-modal__exitActive_mmw5o","exitDone":"universal-modal__exitDone_mmw5o"};
|
|
4
4
|
|
|
5
5
|
export { transitions as default };
|
|
6
6
|
//# sourceMappingURL=transitions.mobile.module.css.js.map
|
|
@@ -3,5 +3,5 @@ export interface BaseUniversalModalMobileProps {
|
|
|
3
3
|
/** Сторона с которой будет появляться модальное окно */
|
|
4
4
|
appearance?: 'bottom' | 'right';
|
|
5
5
|
}
|
|
6
|
-
export interface UniversalModalMobileProps extends BaseUniversalModalMobileProps, Pick<BaseModalProps, 'open'>, Partial<Pick<BaseModalProps, 'children' | 'dataTestId' | 'className' | 'wrapperClassName' | 'onMount' | 'onUnmount' | 'transitionProps' | 'backdropProps' | 'onClose' | 'disableFocusLock' | 'container' | 'disableAutoFocus'>> {
|
|
6
|
+
export interface UniversalModalMobileProps extends BaseUniversalModalMobileProps, Pick<BaseModalProps, 'open'>, Partial<Pick<BaseModalProps, 'children' | 'dataTestId' | 'className' | 'wrapperClassName' | 'onMount' | 'onUnmount' | 'transitionProps' | 'backdropProps' | 'onClose' | 'disableFocusLock' | 'container' | 'disableAutoFocus' | 'zIndex' | 'scrollLock'>> {
|
|
7
7
|
}
|
package/moderncssm/Context.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { BaseModalContext } from '@alfalab/core-components-base-modal/moderncssm';
|
|
2
2
|
/**
|
|
3
|
-
* @deprecated
|
|
3
|
+
* @deprecated В будущем контекст будет удалён. Обрабатывайте состояния компонента самостоятельно.
|
|
4
4
|
*/
|
|
5
5
|
export declare const ModalContext: import("react").Context<BaseModalContext>;
|
package/moderncssm/Context.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { BaseModalContext } from '@alfalab/core-components-base-modal/moderncssm';
|
|
2
2
|
|
|
3
3
|
/**
|
|
4
|
-
* @deprecated
|
|
4
|
+
* @deprecated В будущем контекст будет удалён. Обрабатывайте состояния компонента самостоятельно.
|
|
5
5
|
*/
|
|
6
6
|
const ModalContext = BaseModalContext;
|
|
7
7
|
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Context.js","sources":["../src/Context.ts"],"sourcesContent":["import { BaseModalContext } from '@alfalab/core-components-base-modal';\n\n/**\n * @deprecated
|
|
1
|
+
{"version":3,"file":"Context.js","sources":["../src/Context.ts"],"sourcesContent":["import { BaseModalContext } from '@alfalab/core-components-base-modal';\n\n/**\n * @deprecated В будущем контекст будет удалён. Обрабатывайте состояния компонента самостоятельно.\n */\nexport const ModalContext = BaseModalContext;\n"],"names":[],"mappings":";;AAEA;;AAEG;AACI,MAAM,YAAY,GAAG;;;;"}
|
|
@@ -4,5 +4,5 @@ export declare const UniversalModalDesktopComponent: React.ForwardRefExoticCompo
|
|
|
4
4
|
export declare const UniversalModalDesktop: React.ForwardRefExoticComponent<UniversalModalDesktopProps & React.RefAttributes<HTMLDivElement>> & {
|
|
5
5
|
Header: React.ForwardRefExoticComponent<import("./components/header").HeaderDesktopProps & React.RefAttributes<HTMLDivElement>>;
|
|
6
6
|
Content: React.FC<import("../components/base-content").ContentProps>;
|
|
7
|
-
Footer: React.ForwardRefExoticComponent<import("
|
|
7
|
+
Footer: React.ForwardRefExoticComponent<import("../components/base-footer").FooterProps & React.RefAttributes<HTMLDivElement>>;
|
|
8
8
|
};
|
|
@@ -19,7 +19,7 @@ import transitions from './transitions/transitions.module.css';
|
|
|
19
19
|
*/
|
|
20
20
|
const transitionProps = isMacOS() && isSafari() ? safariTransitions : transitions;
|
|
21
21
|
const CenterModal = forwardRef((props, ref) => {
|
|
22
|
-
const { dataTestId, className, open, children, width = 500, height = 'hugContent', verticalAlign = 'center', overlay = true, margin, scrollableContainerRef: scrollableContainerRefProp, onClose, ...restProps } = props;
|
|
22
|
+
const { dataTestId, className, open, children, width = 500, height = 'hugContent', verticalAlign = 'center', overlay = true, margin, scrollableContainerRef: scrollableContainerRefProp, onClose, wrapperClassName, ...restProps } = props;
|
|
23
23
|
const componentRef = useRef(null);
|
|
24
24
|
const { handleWheel, scrollableContainerRef } = useScrollableContainerRef({
|
|
25
25
|
overlay,
|
|
@@ -27,7 +27,7 @@ const CenterModal = forwardRef((props, ref) => {
|
|
|
27
27
|
});
|
|
28
28
|
const { isFullSizeModal, componentTransitions: fullSizeModalContentTransitions, backdropTransitions: fullSizeModalBackdropTransitions, } = getFullSizeModalTransitions({ verticalAlign, width, height });
|
|
29
29
|
const withoutOverlay = !overlay;
|
|
30
|
-
return (React.createElement(BaseModal, { ...restProps, open: open, dataTestId: dataTestId, ref: ref, componentRef: componentRef, scrollHandler:
|
|
30
|
+
return (React.createElement(BaseModal, { ...restProps, open: open, dataTestId: dataTestId, ref: ref, componentRef: componentRef, scrollHandler: scrollableContainerRef, scrollContainerFillsViewport: false, disableBlockingScroll: withoutOverlay, wrapperClassName: cn(styles.baseModalContainer, wrapperClassName, {
|
|
31
31
|
[styles.wrapperJustifyStart]: verticalAlign === 'top',
|
|
32
32
|
[styles.wrapperJustifyCenter]: verticalAlign === 'center',
|
|
33
33
|
[styles.wrapperJustifyEnd]: verticalAlign === 'bottom',
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"center-modal.js","sources":["../../../../src/desktop/components/center-modal/center-modal.tsx"],"sourcesContent":["import React, { forwardRef, useRef } from 'react';\nimport cn from 'classnames';\n\nimport { BaseModal } from '@alfalab/core-components-base-modal';\nimport { isMacOS, isSafari } from '@alfalab/core-components-shared';\n\nimport { useScrollableContainerRef } from '../../hooks/use-scrollable-container-ref';\nimport { type UniversalModalDesktopProps } from '../../types/props';\nimport { getFullSizeModalTransitions } from '../../utils/get-full-size-modal-transitions';\nimport { getHeightCapStyles } from '../../utils/get-height-cap-styles';\nimport { getHeightValue } from '../../utils/get-height-value';\nimport { getMarginStyles } from '../../utils/get-margin-styles';\nimport { getWidthCapStyles } from '../../utils/get-width-cap-styles';\nimport { ModalContent } from '../modal-content/modal-content';\n\nimport styles from './index.module.css';\nimport safariTransitions from './transitions/safari-transitions.module.css';\nimport transitions from './transitions/transitions.module.css';\n\n/*\n * в safari position:sticky некорректно синхронизируется с transform:scale на предке —\n * sticky-футер \"доезжает\" при анимации, поэтому применяем немного другую анимацию\n */\nconst transitionProps = isMacOS() && isSafari() ? safariTransitions : transitions;\n\nexport const CenterModal = forwardRef<HTMLDivElement, UniversalModalDesktopProps>((props, ref) => {\n const {\n dataTestId,\n className,\n open,\n children,\n width = 500,\n height = 'hugContent',\n verticalAlign = 'center',\n overlay = true,\n margin,\n scrollableContainerRef: scrollableContainerRefProp,\n onClose,\n ...restProps\n } = props;\n\n const componentRef = useRef<HTMLDivElement>(null);\n const { handleWheel, scrollableContainerRef } = useScrollableContainerRef({\n overlay,\n refObject: scrollableContainerRefProp,\n });\n\n const {\n isFullSizeModal,\n componentTransitions: fullSizeModalContentTransitions,\n backdropTransitions: fullSizeModalBackdropTransitions,\n } = getFullSizeModalTransitions({ verticalAlign, width, height });\n\n const withoutOverlay = !overlay;\n\n return (\n <BaseModal\n {...restProps}\n open={open}\n dataTestId={dataTestId}\n ref={ref}\n componentRef={componentRef}\n scrollHandler=
|
|
1
|
+
{"version":3,"file":"center-modal.js","sources":["../../../../src/desktop/components/center-modal/center-modal.tsx"],"sourcesContent":["import React, { forwardRef, type MutableRefObject, useRef } from 'react';\nimport cn from 'classnames';\n\nimport { BaseModal } from '@alfalab/core-components-base-modal';\nimport { isMacOS, isSafari } from '@alfalab/core-components-shared';\n\nimport { useScrollableContainerRef } from '../../hooks/use-scrollable-container-ref';\nimport { type UniversalModalDesktopProps } from '../../types/props';\nimport { getFullSizeModalTransitions } from '../../utils/get-full-size-modal-transitions';\nimport { getHeightCapStyles } from '../../utils/get-height-cap-styles';\nimport { getHeightValue } from '../../utils/get-height-value';\nimport { getMarginStyles } from '../../utils/get-margin-styles';\nimport { getWidthCapStyles } from '../../utils/get-width-cap-styles';\nimport { ModalContent } from '../modal-content/modal-content';\n\nimport styles from './index.module.css';\nimport safariTransitions from './transitions/safari-transitions.module.css';\nimport transitions from './transitions/transitions.module.css';\n\n/*\n * в safari position:sticky некорректно синхронизируется с transform:scale на предке —\n * sticky-футер \"доезжает\" при анимации, поэтому применяем немного другую анимацию\n */\nconst transitionProps = isMacOS() && isSafari() ? safariTransitions : transitions;\n\nexport const CenterModal = forwardRef<HTMLDivElement, UniversalModalDesktopProps>((props, ref) => {\n const {\n dataTestId,\n className,\n open,\n children,\n width = 500,\n height = 'hugContent',\n verticalAlign = 'center',\n overlay = true,\n margin,\n scrollableContainerRef: scrollableContainerRefProp,\n onClose,\n wrapperClassName,\n ...restProps\n } = props;\n\n const componentRef = useRef<HTMLDivElement>(null);\n const { handleWheel, scrollableContainerRef } = useScrollableContainerRef({\n overlay,\n refObject: scrollableContainerRefProp,\n });\n\n const {\n isFullSizeModal,\n componentTransitions: fullSizeModalContentTransitions,\n backdropTransitions: fullSizeModalBackdropTransitions,\n } = getFullSizeModalTransitions({ verticalAlign, width, height });\n\n const withoutOverlay = !overlay;\n\n return (\n <BaseModal\n {...restProps}\n open={open}\n dataTestId={dataTestId}\n ref={ref}\n componentRef={componentRef}\n scrollHandler={scrollableContainerRef as MutableRefObject<HTMLDivElement | null>}\n scrollContainerFillsViewport={false}\n disableBlockingScroll={withoutOverlay}\n wrapperClassName={cn(styles.baseModalContainer, wrapperClassName, {\n [styles.wrapperJustifyStart]: verticalAlign === 'top',\n [styles.wrapperJustifyCenter]: verticalAlign === 'center',\n [styles.wrapperJustifyEnd]: verticalAlign === 'bottom',\n [styles.withoutOverlay]: withoutOverlay,\n })}\n className={cn(\n styles.component,\n className,\n styles.baseModalComponent,\n getMarginStyles({ styles, margin }),\n getHeightCapStyles({ styles, margin }),\n getWidthCapStyles({ styles, margin }),\n )}\n transitionProps={{\n classNames: transitionProps,\n ...(isFullSizeModal && fullSizeModalContentTransitions),\n ...restProps.transitionProps,\n }}\n backdropProps={{\n shouldRender: overlay,\n ...(isFullSizeModal && fullSizeModalBackdropTransitions),\n ...restProps.backdropProps,\n }}\n componentDivProps={{\n style: {\n width: width === 'fullWidth' ? '100%' : width,\n height: getHeightValue(height),\n },\n }}\n onWheel={handleWheel}\n onClose={onClose}\n >\n <ModalContent height={height} scrollableContainerRef={scrollableContainerRef}>\n {children}\n </ModalContent>\n </BaseModal>\n );\n});\n"],"names":[],"mappings":";;;;;;;;;;;;;;;AAmBA;;;AAGG;AACH,MAAM,eAAe,GAAG,OAAO,EAAE,IAAI,QAAQ,EAAE,GAAG,iBAAiB,GAAG,WAAW;AAEpE,MAAA,WAAW,GAAG,UAAU,CAA6C,CAAC,KAAK,EAAE,GAAG,KAAI;AAC7F,IAAA,MAAM,EACF,UAAU,EACV,SAAS,EACT,IAAI,EACJ,QAAQ,EACR,KAAK,GAAG,GAAG,EACX,MAAM,GAAG,YAAY,EACrB,aAAa,GAAG,QAAQ,EACxB,OAAO,GAAG,IAAI,EACd,MAAM,EACN,sBAAsB,EAAE,0BAA0B,EAClD,OAAO,EACP,gBAAgB,EAChB,GAAG,SAAS,EACf,GAAG,KAAK;AAET,IAAA,MAAM,YAAY,GAAG,MAAM,CAAiB,IAAI,CAAC;AACjD,IAAA,MAAM,EAAE,WAAW,EAAE,sBAAsB,EAAE,GAAG,yBAAyB,CAAC;QACtE,OAAO;AACP,QAAA,SAAS,EAAE,0BAA0B;AACxC,KAAA,CAAC;IAEF,MAAM,EACF,eAAe,EACf,oBAAoB,EAAE,+BAA+B,EACrD,mBAAmB,EAAE,gCAAgC,GACxD,GAAG,2BAA2B,CAAC,EAAE,aAAa,EAAE,KAAK,EAAE,MAAM,EAAE,CAAC;AAEjE,IAAA,MAAM,cAAc,GAAG,CAAC,OAAO;AAE/B,IAAA,QACI,KAAC,CAAA,aAAA,CAAA,SAAS,OACF,SAAS,EACb,IAAI,EAAE,IAAI,EACV,UAAU,EAAE,UAAU,EACtB,GAAG,EAAE,GAAG,EACR,YAAY,EAAE,YAAY,EAC1B,aAAa,EAAE,sBAAiE,EAChF,4BAA4B,EAAE,KAAK,EACnC,qBAAqB,EAAE,cAAc,EACrC,gBAAgB,EAAE,EAAE,CAAC,MAAM,CAAC,kBAAkB,EAAE,gBAAgB,EAAE;AAC9D,YAAA,CAAC,MAAM,CAAC,mBAAmB,GAAG,aAAa,KAAK,KAAK;AACrD,YAAA,CAAC,MAAM,CAAC,oBAAoB,GAAG,aAAa,KAAK,QAAQ;AACzD,YAAA,CAAC,MAAM,CAAC,iBAAiB,GAAG,aAAa,KAAK,QAAQ;AACtD,YAAA,CAAC,MAAM,CAAC,cAAc,GAAG,cAAc;SAC1C,CAAC,EACF,SAAS,EAAE,EAAE,CACT,MAAM,CAAC,SAAS,EAChB,SAAS,EACT,MAAM,CAAC,kBAAkB,EACzB,eAAe,CAAC,EAAE,MAAM,EAAE,MAAM,EAAE,CAAC,EACnC,kBAAkB,CAAC,EAAE,MAAM,EAAE,MAAM,EAAE,CAAC,EACtC,iBAAiB,CAAC,EAAE,MAAM,EAAE,MAAM,EAAE,CAAC,CACxC,EACD,eAAe,EAAE;AACb,YAAA,UAAU,EAAE,eAAe;AAC3B,YAAA,IAAI,eAAe,IAAI,+BAA+B,CAAC;YACvD,GAAG,SAAS,CAAC,eAAe;AAC/B,SAAA,EACD,aAAa,EAAE;AACX,YAAA,YAAY,EAAE,OAAO;AACrB,YAAA,IAAI,eAAe,IAAI,gCAAgC,CAAC;YACxD,GAAG,SAAS,CAAC,aAAa;AAC7B,SAAA,EACD,iBAAiB,EAAE;AACf,YAAA,KAAK,EAAE;gBACH,KAAK,EAAE,KAAK,KAAK,WAAW,GAAG,MAAM,GAAG,KAAK;AAC7C,gBAAA,MAAM,EAAE,cAAc,CAAC,MAAM,CAAC;AACjC,aAAA;AACJ,SAAA,EACD,OAAO,EAAE,WAAW,EACpB,OAAO,EAAE,OAAO,EAAA;AAEhB,QAAA,KAAA,CAAA,aAAA,CAAC,YAAY,EAAA,EAAC,MAAM,EAAE,MAAM,EAAE,sBAAsB,EAAE,sBAAsB,EACvE,EAAA,QAAQ,CACE,CACP;AAEpB,CAAC;;;;"}
|
|
@@ -1,9 +1,4 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { type FooterProps } from '../../../components/base-footer';
|
|
3
|
-
export
|
|
4
|
-
|
|
5
|
-
* Размер (только для desktop версии компонента)
|
|
6
|
-
*/
|
|
7
|
-
size?: 's' | 500;
|
|
8
|
-
}
|
|
9
|
-
export declare const FooterDesktop: React.ForwardRefExoticComponent<FooterDesktopProps & React.RefAttributes<HTMLDivElement>>;
|
|
3
|
+
export type FooterDesktopProps = FooterProps;
|
|
4
|
+
export declare const FooterDesktop: React.ForwardRefExoticComponent<FooterProps & React.RefAttributes<HTMLDivElement>>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sources":["../../../../src/desktop/components/footer/index.tsx"],"sourcesContent":["import React, { forwardRef, useContext } from 'react';\nimport cn from 'classnames';\n\nimport { BaseFooter, type FooterProps } from '../../../components/base-footer';\nimport { ModalContext } from '../../../Context';\nimport { UniversalModalContext } from '../../context';\n\nimport styles from './desktop.module.css';\nimport layoutStyles from './layout.module.css';\n\nconst FOOTER_MEDIUM_BREAKPOINT = 800;\n\nexport
|
|
1
|
+
{"version":3,"file":"index.js","sources":["../../../../src/desktop/components/footer/index.tsx"],"sourcesContent":["import React, { forwardRef, useContext } from 'react';\nimport cn from 'classnames';\n\nimport { BaseFooter, type FooterProps } from '../../../components/base-footer';\nimport { ModalContext } from '../../../Context';\nimport { UniversalModalContext } from '../../context';\n\nimport styles from './desktop.module.css';\nimport layoutStyles from './layout.module.css';\n\nconst FOOTER_MEDIUM_BREAKPOINT = 800;\n\nexport type FooterDesktopProps = FooterProps;\n\nexport const FooterDesktop = forwardRef<HTMLDivElement, FooterDesktopProps>((props, ref) => {\n const { className, sticky, layout = 'start', ...restProps } = props;\n const { width: modalWidth } = useContext(UniversalModalContext);\n const { footerHighlighted: modalFooterHighlighted } = useContext(ModalContext);\n\n const isMiddle = modalWidth === 'fullWidth' || modalWidth >= FOOTER_MEDIUM_BREAKPOINT;\n\n return (\n <BaseFooter\n ref={ref}\n className={cn(layoutStyles[layout], className, {\n [styles.sticky]: sticky,\n [layoutStyles.middle]: isMiddle,\n })}\n sticky={sticky}\n layout={layout}\n isHighlighted={modalFooterHighlighted}\n {...restProps}\n />\n );\n});\n\nFooterDesktop.displayName = 'FooterDesktop';\n"],"names":[],"mappings":";;;;;;;;AAUA,MAAM,wBAAwB,GAAG,GAAG;AAIvB,MAAA,aAAa,GAAG,UAAU,CAAqC,CAAC,KAAK,EAAE,GAAG,KAAI;AACvF,IAAA,MAAM,EAAE,SAAS,EAAE,MAAM,EAAE,MAAM,GAAG,OAAO,EAAE,GAAG,SAAS,EAAE,GAAG,KAAK;IACnE,MAAM,EAAE,KAAK,EAAE,UAAU,EAAE,GAAG,UAAU,CAAC,qBAAqB,CAAC;IAC/D,MAAM,EAAE,iBAAiB,EAAE,sBAAsB,EAAE,GAAG,UAAU,CAAC,YAAY,CAAC;IAE9E,MAAM,QAAQ,GAAG,UAAU,KAAK,WAAW,IAAI,UAAU,IAAI,wBAAwB;AAErF,IAAA,QACI,KAAC,CAAA,aAAA,CAAA,UAAU,IACP,GAAG,EAAE,GAAG,EACR,SAAS,EAAE,EAAE,CAAC,YAAY,CAAC,MAAM,CAAC,EAAE,SAAS,EAAE;AAC3C,YAAA,CAAC,MAAM,CAAC,MAAM,GAAG,MAAM;AACvB,YAAA,CAAC,YAAY,CAAC,MAAM,GAAG,QAAQ;AAClC,SAAA,CAAC,EACF,MAAM,EAAE,MAAM,EACd,MAAM,EAAE,MAAM,EACd,aAAa,EAAE,sBAAsB,EAAA,GACjC,SAAS,EAAA,CACf;AAEV,CAAC;AAED,aAAa,CAAC,WAAW,GAAG,eAAe;;;;"}
|
|
@@ -8,7 +8,8 @@
|
|
|
8
8
|
font-size: 22px;
|
|
9
9
|
line-height: 26px;
|
|
10
10
|
font-weight: 700;
|
|
11
|
-
|
|
11
|
+
letter-spacing: 0.2px;
|
|
12
|
+
font-family: var(--font-family-alfasans);
|
|
12
13
|
padding: 11px var(--gap-12);
|
|
13
14
|
}
|
|
14
15
|
|
|
@@ -16,7 +17,8 @@
|
|
|
16
17
|
font-size: 22px;
|
|
17
18
|
line-height: 26px;
|
|
18
19
|
font-weight: 700;
|
|
19
|
-
|
|
20
|
+
letter-spacing: 0.2px;
|
|
21
|
+
font-family: var(--font-family-alfasans);
|
|
20
22
|
padding: var(--gap-6) var(--gap-12) var(--gap-16);
|
|
21
23
|
}
|
|
22
24
|
|
|
@@ -24,7 +26,8 @@
|
|
|
24
26
|
font-size: 30px;
|
|
25
27
|
line-height: 36px;
|
|
26
28
|
font-weight: 700;
|
|
27
|
-
|
|
29
|
+
letter-spacing: 0.1px;
|
|
30
|
+
font-family: var(--font-family-alfasans);
|
|
28
31
|
padding: var(--gap-6) var(--gap-12) var(--gap-16);
|
|
29
32
|
}
|
|
30
33
|
|
|
@@ -32,5 +35,6 @@
|
|
|
32
35
|
font-size: 30px;
|
|
33
36
|
line-height: 36px;
|
|
34
37
|
font-weight: 700;
|
|
35
|
-
|
|
38
|
+
letter-spacing: 0.1px;
|
|
39
|
+
font-family: var(--font-family-alfasans);
|
|
36
40
|
}
|
|
@@ -1,21 +1,16 @@
|
|
|
1
1
|
import React, { useRef } from 'react';
|
|
2
|
-
import mergeRefs from 'react-merge-refs';
|
|
3
2
|
import cn from 'classnames';
|
|
4
3
|
import { Scrollbar } from '@alfalab/core-components-scrollbar/moderncssm';
|
|
5
|
-
import { useModalHighlighted } from '../../hooks/use-modal-highlighted.js';
|
|
6
4
|
import { useSetScrollbarHeight } from '../../hooks/use-set-scrollbar-height.js';
|
|
7
5
|
import { setFooterAndHeaderRefs } from '../../utils/set-footer-and-header-refs.js';
|
|
8
6
|
import styles from './modal-content.module.css';
|
|
9
7
|
|
|
10
8
|
const ModalContent = (props) => {
|
|
11
9
|
const { children, height, scrollableContainerRef = null } = props;
|
|
12
|
-
const scrollableNodeRef = useRef(null);
|
|
13
|
-
const scrollbarContentNodeRef = useRef(null);
|
|
14
10
|
const scrollbarRef = useRef(null);
|
|
15
11
|
const verticalBarRef = useRef(null);
|
|
16
12
|
const headerElementRef = useRef(null);
|
|
17
13
|
const footerElementRef = useRef(null);
|
|
18
|
-
const { handleScroll } = useModalHighlighted({ scrollbarContentNodeRef, scrollableNodeRef });
|
|
19
14
|
const { enhancedChildren } = setFooterAndHeaderRefs({
|
|
20
15
|
children,
|
|
21
16
|
headerElementRef,
|
|
@@ -23,14 +18,13 @@ const ModalContent = (props) => {
|
|
|
23
18
|
});
|
|
24
19
|
useSetScrollbarHeight({ scrollbarRef, verticalBarRef, headerElementRef, footerElementRef });
|
|
25
20
|
return (React.createElement(Scrollbar, { className: styles.scrollable, ref: scrollbarRef, verticalBarRef: verticalBarRef, scrollableNodeProps: {
|
|
26
|
-
ref:
|
|
21
|
+
ref: scrollableContainerRef,
|
|
27
22
|
className: styles.scrollableNode,
|
|
28
23
|
}, contentNodeProps: {
|
|
29
|
-
ref: scrollbarContentNodeRef,
|
|
30
24
|
className: cn(styles.contentNode, {
|
|
31
25
|
[styles.hugContent]: height === 'hugContent',
|
|
32
26
|
}),
|
|
33
|
-
}
|
|
27
|
+
} }, enhancedChildren));
|
|
34
28
|
};
|
|
35
29
|
|
|
36
30
|
export { ModalContent };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"modal-content.js","sources":["../../../../src/desktop/components/modal-content/modal-content.tsx"],"sourcesContent":["import React, { type FC, useRef } from 'react';\nimport
|
|
1
|
+
{"version":3,"file":"modal-content.js","sources":["../../../../src/desktop/components/modal-content/modal-content.tsx"],"sourcesContent":["import React, { type FC, useRef } from 'react';\nimport cn from 'classnames';\n\nimport { type BaseModalProps } from '@alfalab/core-components-base-modal';\nimport { Scrollbar } from '@alfalab/core-components-scrollbar';\n\nimport { useSetScrollbarHeight } from '../../hooks/use-set-scrollbar-height';\nimport { type UniversalModalDesktopProps } from '../../types/props';\nimport { setFooterAndHeaderRefs } from '../../utils/set-footer-and-header-refs';\n\nimport styles from './modal-content.module.css';\n\ntype PickedBaseModalProps = Pick<BaseModalProps, 'children'>;\ntype PickedUniversalModalDesktopProps = Pick<\n UniversalModalDesktopProps,\n 'height' | 'scrollableContainerRef'\n>;\n\ntype Props = PickedBaseModalProps & PickedUniversalModalDesktopProps;\n\nexport const ModalContent: FC<Props> = (props) => {\n const { children, height, scrollableContainerRef = null } = props;\n\n const scrollbarRef = useRef<HTMLDivElement | null>(null);\n const verticalBarRef = useRef<HTMLDivElement>(null);\n const headerElementRef = useRef<HTMLDivElement>(null);\n const footerElementRef = useRef<HTMLDivElement | null>(null);\n\n const { enhancedChildren } = setFooterAndHeaderRefs({\n children,\n headerElementRef,\n footerElementRef,\n });\n\n useSetScrollbarHeight({ scrollbarRef, verticalBarRef, headerElementRef, footerElementRef });\n\n return (\n <Scrollbar\n className={styles.scrollable}\n ref={scrollbarRef}\n verticalBarRef={verticalBarRef}\n scrollableNodeProps={{\n ref: scrollableContainerRef,\n className: styles.scrollableNode,\n }}\n contentNodeProps={{\n className: cn(styles.contentNode, {\n [styles.hugContent]: height === 'hugContent',\n }),\n }}\n >\n {enhancedChildren}\n </Scrollbar>\n );\n};\n"],"names":[],"mappings":";;;;;;;AAoBa,MAAA,YAAY,GAAc,CAAC,KAAK,KAAI;IAC7C,MAAM,EAAE,QAAQ,EAAE,MAAM,EAAE,sBAAsB,GAAG,IAAI,EAAE,GAAG,KAAK;AAEjE,IAAA,MAAM,YAAY,GAAG,MAAM,CAAwB,IAAI,CAAC;AACxD,IAAA,MAAM,cAAc,GAAG,MAAM,CAAiB,IAAI,CAAC;AACnD,IAAA,MAAM,gBAAgB,GAAG,MAAM,CAAiB,IAAI,CAAC;AACrD,IAAA,MAAM,gBAAgB,GAAG,MAAM,CAAwB,IAAI,CAAC;AAE5D,IAAA,MAAM,EAAE,gBAAgB,EAAE,GAAG,sBAAsB,CAAC;QAChD,QAAQ;QACR,gBAAgB;QAChB,gBAAgB;AACnB,KAAA,CAAC;IAEF,qBAAqB,CAAC,EAAE,YAAY,EAAE,cAAc,EAAE,gBAAgB,EAAE,gBAAgB,EAAE,CAAC;AAE3F,IAAA,QACI,KAAC,CAAA,aAAA,CAAA,SAAS,IACN,SAAS,EAAE,MAAM,CAAC,UAAU,EAC5B,GAAG,EAAE,YAAY,EACjB,cAAc,EAAE,cAAc,EAC9B,mBAAmB,EAAE;AACjB,YAAA,GAAG,EAAE,sBAAsB;YAC3B,SAAS,EAAE,MAAM,CAAC,cAAc;AACnC,SAAA,EACD,gBAAgB,EAAE;AACd,YAAA,SAAS,EAAE,EAAE,CAAC,MAAM,CAAC,WAAW,EAAE;AAC9B,gBAAA,CAAC,MAAM,CAAC,UAAU,GAAG,MAAM,KAAK,YAAY;aAC/C,CAAC;SACL,EAEA,EAAA,gBAAgB,CACT;AAEpB;;;;"}
|
|
@@ -12,7 +12,7 @@ import { getDefaultTransitionProps } from './get-default-transition-props.js';
|
|
|
12
12
|
import styles from './index.module.css';
|
|
13
13
|
|
|
14
14
|
const SideModal = forwardRef((props, ref) => {
|
|
15
|
-
const { width = 500, height = 'fullHeight', horizontalAlign = 'center', verticalAlign = 'center', overlay = true, open, dataTestId, className, children, margin, scrollableContainerRef: scrollableContainerRefProp, onClose, ...restProps } = props;
|
|
15
|
+
const { width = 500, height = 'fullHeight', horizontalAlign = 'center', verticalAlign = 'center', overlay = true, open, dataTestId, className, children, margin, scrollableContainerRef: scrollableContainerRefProp, onClose, wrapperClassName, ...restProps } = props;
|
|
16
16
|
const componentRef = useRef(null);
|
|
17
17
|
const contentRef = useRef(null);
|
|
18
18
|
const { handleWheel, scrollableContainerRef } = useScrollableContainerRef({
|
|
@@ -21,7 +21,7 @@ const SideModal = forwardRef((props, ref) => {
|
|
|
21
21
|
});
|
|
22
22
|
const { isFullSizeModal, componentTransitions: fullSizeModalContentTransitions, backdropTransitions: fullSizeModalBackdropTransitions, } = getFullSizeModalTransitions({ verticalAlign, width, height });
|
|
23
23
|
const withoutOverlay = !overlay;
|
|
24
|
-
return (React.createElement(BaseModal, { ...restProps, open: open, dataTestId: dataTestId, ref: ref, componentRef: componentRef, contentElementRef: contentRef, scrollHandler:
|
|
24
|
+
return (React.createElement(BaseModal, { ...restProps, open: open, dataTestId: dataTestId, ref: ref, componentRef: componentRef, contentElementRef: contentRef, scrollHandler: scrollableContainerRef, scrollContainerFillsViewport: false, disableBlockingScroll: withoutOverlay, wrapperClassName: cn(styles.wrapper, styles.baseModalContainer, wrapperClassName, {
|
|
25
25
|
[styles.wrapperAlignStart]: horizontalAlign === 'start',
|
|
26
26
|
[styles.wrapperAlignEnd]: horizontalAlign === 'end',
|
|
27
27
|
[styles.wrapperJustifyCenter]: verticalAlign === 'center',
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"side-modal.js","sources":["../../../../src/desktop/components/side-modal/side-modal.tsx"],"sourcesContent":["import React, { forwardRef, useRef } from 'react';\nimport cn from 'classnames';\n\nimport { BaseModal } from '@alfalab/core-components-base-modal';\n\nimport { useScrollableContainerRef } from '../../hooks/use-scrollable-container-ref';\nimport { type UniversalModalDesktopProps } from '../../types/props';\nimport { getFullSizeModalTransitions } from '../../utils/get-full-size-modal-transitions';\nimport { getHeightCapStyles } from '../../utils/get-height-cap-styles';\nimport { getHeightValue } from '../../utils/get-height-value';\nimport { getMarginStyles } from '../../utils/get-margin-styles';\nimport { getWidthCapStyles } from '../../utils/get-width-cap-styles';\nimport { ModalContent } from '../modal-content/modal-content';\n\nimport { getDefaultTransitionProps } from './get-default-transition-props';\n\nimport styles from './index.module.css';\n\nexport const SideModal = forwardRef<HTMLDivElement, UniversalModalDesktopProps>((props, ref) => {\n const {\n width = 500,\n height = 'fullHeight',\n horizontalAlign = 'center',\n verticalAlign = 'center',\n overlay = true,\n open,\n dataTestId,\n className,\n children,\n margin,\n scrollableContainerRef: scrollableContainerRefProp,\n onClose,\n ...restProps\n } = props;\n const componentRef = useRef<HTMLDivElement>(null);\n const contentRef = useRef<HTMLDivElement>(null);\n const { handleWheel, scrollableContainerRef } = useScrollableContainerRef({\n overlay,\n refObject: scrollableContainerRefProp,\n });\n\n const {\n isFullSizeModal,\n componentTransitions: fullSizeModalContentTransitions,\n backdropTransitions: fullSizeModalBackdropTransitions,\n } = getFullSizeModalTransitions({ verticalAlign, width, height });\n\n const withoutOverlay = !overlay;\n\n return (\n <BaseModal\n {...restProps}\n open={open}\n dataTestId={dataTestId}\n ref={ref}\n componentRef={componentRef}\n contentElementRef={contentRef}\n scrollHandler=
|
|
1
|
+
{"version":3,"file":"side-modal.js","sources":["../../../../src/desktop/components/side-modal/side-modal.tsx"],"sourcesContent":["import React, { forwardRef, type MutableRefObject, useRef } from 'react';\nimport cn from 'classnames';\n\nimport { BaseModal } from '@alfalab/core-components-base-modal';\n\nimport { useScrollableContainerRef } from '../../hooks/use-scrollable-container-ref';\nimport { type UniversalModalDesktopProps } from '../../types/props';\nimport { getFullSizeModalTransitions } from '../../utils/get-full-size-modal-transitions';\nimport { getHeightCapStyles } from '../../utils/get-height-cap-styles';\nimport { getHeightValue } from '../../utils/get-height-value';\nimport { getMarginStyles } from '../../utils/get-margin-styles';\nimport { getWidthCapStyles } from '../../utils/get-width-cap-styles';\nimport { ModalContent } from '../modal-content/modal-content';\n\nimport { getDefaultTransitionProps } from './get-default-transition-props';\n\nimport styles from './index.module.css';\n\nexport const SideModal = forwardRef<HTMLDivElement, UniversalModalDesktopProps>((props, ref) => {\n const {\n width = 500,\n height = 'fullHeight',\n horizontalAlign = 'center',\n verticalAlign = 'center',\n overlay = true,\n open,\n dataTestId,\n className,\n children,\n margin,\n scrollableContainerRef: scrollableContainerRefProp,\n onClose,\n wrapperClassName,\n ...restProps\n } = props;\n const componentRef = useRef<HTMLDivElement>(null);\n const contentRef = useRef<HTMLDivElement>(null);\n const { handleWheel, scrollableContainerRef } = useScrollableContainerRef({\n overlay,\n refObject: scrollableContainerRefProp,\n });\n\n const {\n isFullSizeModal,\n componentTransitions: fullSizeModalContentTransitions,\n backdropTransitions: fullSizeModalBackdropTransitions,\n } = getFullSizeModalTransitions({ verticalAlign, width, height });\n\n const withoutOverlay = !overlay;\n\n return (\n <BaseModal\n {...restProps}\n open={open}\n dataTestId={dataTestId}\n ref={ref}\n componentRef={componentRef}\n contentElementRef={contentRef}\n scrollHandler={scrollableContainerRef as MutableRefObject<HTMLDivElement | null>}\n scrollContainerFillsViewport={false}\n disableBlockingScroll={withoutOverlay}\n wrapperClassName={cn(styles.wrapper, styles.baseModalContainer, wrapperClassName, {\n [styles.wrapperAlignStart]: horizontalAlign === 'start',\n [styles.wrapperAlignEnd]: horizontalAlign === 'end',\n [styles.wrapperJustifyCenter]: verticalAlign === 'center',\n [styles.wrapperJustifyEnd]: verticalAlign === 'bottom',\n [styles.withoutOverlay]: withoutOverlay,\n })}\n className={cn(\n styles.component,\n className,\n styles.baseModalComponent,\n getMarginStyles({ styles, margin }),\n getHeightCapStyles({ styles, margin }),\n getWidthCapStyles({ styles, margin }),\n )}\n contentClassName={styles.content}\n transitionProps={{\n ...getDefaultTransitionProps({\n horizontalAlign,\n margin,\n }),\n ...(isFullSizeModal && fullSizeModalContentTransitions),\n ...restProps.transitionProps,\n }}\n backdropProps={{\n shouldRender: overlay,\n ...(isFullSizeModal && fullSizeModalBackdropTransitions),\n ...restProps.backdropProps,\n }}\n componentDivProps={{\n style: {\n width: width === 'fullWidth' ? '100%' : width,\n height: getHeightValue(height),\n },\n }}\n onWheel={handleWheel}\n onClose={onClose}\n >\n <ModalContent height={height} scrollableContainerRef={scrollableContainerRef}>\n {children}\n </ModalContent>\n </BaseModal>\n );\n});\n"],"names":[],"mappings":";;;;;;;;;;;;;AAkBa,MAAA,SAAS,GAAG,UAAU,CAA6C,CAAC,KAAK,EAAE,GAAG,KAAI;IAC3F,MAAM,EACF,KAAK,GAAG,GAAG,EACX,MAAM,GAAG,YAAY,EACrB,eAAe,GAAG,QAAQ,EAC1B,aAAa,GAAG,QAAQ,EACxB,OAAO,GAAG,IAAI,EACd,IAAI,EACJ,UAAU,EACV,SAAS,EACT,QAAQ,EACR,MAAM,EACN,sBAAsB,EAAE,0BAA0B,EAClD,OAAO,EACP,gBAAgB,EAChB,GAAG,SAAS,EACf,GAAG,KAAK;AACT,IAAA,MAAM,YAAY,GAAG,MAAM,CAAiB,IAAI,CAAC;AACjD,IAAA,MAAM,UAAU,GAAG,MAAM,CAAiB,IAAI,CAAC;AAC/C,IAAA,MAAM,EAAE,WAAW,EAAE,sBAAsB,EAAE,GAAG,yBAAyB,CAAC;QACtE,OAAO;AACP,QAAA,SAAS,EAAE,0BAA0B;AACxC,KAAA,CAAC;IAEF,MAAM,EACF,eAAe,EACf,oBAAoB,EAAE,+BAA+B,EACrD,mBAAmB,EAAE,gCAAgC,GACxD,GAAG,2BAA2B,CAAC,EAAE,aAAa,EAAE,KAAK,EAAE,MAAM,EAAE,CAAC;AAEjE,IAAA,MAAM,cAAc,GAAG,CAAC,OAAO;IAE/B,QACI,oBAAC,SAAS,EAAA,EAAA,GACF,SAAS,EACb,IAAI,EAAE,IAAI,EACV,UAAU,EAAE,UAAU,EACtB,GAAG,EAAE,GAAG,EACR,YAAY,EAAE,YAAY,EAC1B,iBAAiB,EAAE,UAAU,EAC7B,aAAa,EAAE,sBAAiE,EAChF,4BAA4B,EAAE,KAAK,EACnC,qBAAqB,EAAE,cAAc,EACrC,gBAAgB,EAAE,EAAE,CAAC,MAAM,CAAC,OAAO,EAAE,MAAM,CAAC,kBAAkB,EAAE,gBAAgB,EAAE;AAC9E,YAAA,CAAC,MAAM,CAAC,iBAAiB,GAAG,eAAe,KAAK,OAAO;AACvD,YAAA,CAAC,MAAM,CAAC,eAAe,GAAG,eAAe,KAAK,KAAK;AACnD,YAAA,CAAC,MAAM,CAAC,oBAAoB,GAAG,aAAa,KAAK,QAAQ;AACzD,YAAA,CAAC,MAAM,CAAC,iBAAiB,GAAG,aAAa,KAAK,QAAQ;AACtD,YAAA,CAAC,MAAM,CAAC,cAAc,GAAG,cAAc;SAC1C,CAAC,EACF,SAAS,EAAE,EAAE,CACT,MAAM,CAAC,SAAS,EAChB,SAAS,EACT,MAAM,CAAC,kBAAkB,EACzB,eAAe,CAAC,EAAE,MAAM,EAAE,MAAM,EAAE,CAAC,EACnC,kBAAkB,CAAC,EAAE,MAAM,EAAE,MAAM,EAAE,CAAC,EACtC,iBAAiB,CAAC,EAAE,MAAM,EAAE,MAAM,EAAE,CAAC,CACxC,EACD,gBAAgB,EAAE,MAAM,CAAC,OAAO,EAChC,eAAe,EAAE;AACb,YAAA,GAAG,yBAAyB,CAAC;gBACzB,eAAe;gBACf,MAAM;aACT,CAAC;AACF,YAAA,IAAI,eAAe,IAAI,+BAA+B,CAAC;YACvD,GAAG,SAAS,CAAC,eAAe;AAC/B,SAAA,EACD,aAAa,EAAE;AACX,YAAA,YAAY,EAAE,OAAO;AACrB,YAAA,IAAI,eAAe,IAAI,gCAAgC,CAAC;YACxD,GAAG,SAAS,CAAC,aAAa;AAC7B,SAAA,EACD,iBAAiB,EAAE;AACf,YAAA,KAAK,EAAE;gBACH,KAAK,EAAE,KAAK,KAAK,WAAW,GAAG,MAAM,GAAG,KAAK;AAC7C,gBAAA,MAAM,EAAE,cAAc,CAAC,MAAM,CAAC;AACjC,aAAA;AACJ,SAAA,EACD,OAAO,EAAE,WAAW,EACpB,OAAO,EAAE,OAAO,EAAA;AAEhB,QAAA,KAAA,CAAA,aAAA,CAAC,YAAY,EAAA,EAAC,MAAM,EAAE,MAAM,EAAE,sBAAsB,EAAE,sBAAsB,EACvE,EAAA,QAAQ,CACE,CACP;AAEpB,CAAC;;;;"}
|
|
@@ -36,7 +36,7 @@ export interface BaseUniversalModalProps {
|
|
|
36
36
|
*/
|
|
37
37
|
margin?: Margin;
|
|
38
38
|
}
|
|
39
|
-
export interface UniversalModalDesktopProps extends BaseUniversalModalProps, Pick<BaseModalProps, 'open'>, Partial<Pick<BaseModalProps, 'children' | 'dataTestId' | 'className' | 'wrapperClassName' | 'onMount' | 'onUnmount' | 'transitionProps' | 'backdropProps' | 'disableBackdropClick' | 'onClose' | 'disableFocusLock' | 'container' | 'disableRestoreFocus' | 'disableAutoFocus'>> {
|
|
39
|
+
export interface UniversalModalDesktopProps extends BaseUniversalModalProps, Pick<BaseModalProps, 'open'>, Partial<Pick<BaseModalProps, 'children' | 'dataTestId' | 'className' | 'wrapperClassName' | 'onMount' | 'onUnmount' | 'transitionProps' | 'backdropProps' | 'disableBackdropClick' | 'onClose' | 'disableFocusLock' | 'container' | 'disableRestoreFocus' | 'disableAutoFocus' | 'zIndex'>> {
|
|
40
40
|
/**
|
|
41
41
|
* Реф контейнера на котором происходит scroll
|
|
42
42
|
*/
|
|
@@ -7,8 +7,9 @@
|
|
|
7
7
|
.content {
|
|
8
8
|
font-size: 20px;
|
|
9
9
|
line-height: 28px;
|
|
10
|
-
font-weight:
|
|
11
|
-
|
|
10
|
+
font-weight: 500;
|
|
11
|
+
letter-spacing: -0.15px;
|
|
12
|
+
font-family: var(--font-family-alfasans);
|
|
12
13
|
padding: 0 var(--gap-12);
|
|
13
14
|
min-height: 40px;
|
|
14
15
|
justify-content: center;
|
|
@@ -17,7 +18,8 @@
|
|
|
17
18
|
.bottomAddons {
|
|
18
19
|
font-size: 20px;
|
|
19
20
|
line-height: 28px;
|
|
20
|
-
font-weight:
|
|
21
|
-
|
|
21
|
+
font-weight: 500;
|
|
22
|
+
letter-spacing: -0.15px;
|
|
23
|
+
font-family: var(--font-family-alfasans);
|
|
22
24
|
padding: var(--gap-6) var(--gap-16);
|
|
23
25
|
}
|
|
@@ -3,5 +3,5 @@ export interface BaseUniversalModalMobileProps {
|
|
|
3
3
|
/** Сторона с которой будет появляться модальное окно */
|
|
4
4
|
appearance?: 'bottom' | 'right';
|
|
5
5
|
}
|
|
6
|
-
export interface UniversalModalMobileProps extends BaseUniversalModalMobileProps, Pick<BaseModalProps, 'open'>, Partial<Pick<BaseModalProps, 'children' | 'dataTestId' | 'className' | 'wrapperClassName' | 'onMount' | 'onUnmount' | 'transitionProps' | 'backdropProps' | 'onClose' | 'disableFocusLock' | 'container' | 'disableAutoFocus'>> {
|
|
6
|
+
export interface UniversalModalMobileProps extends BaseUniversalModalMobileProps, Pick<BaseModalProps, 'open'>, Partial<Pick<BaseModalProps, 'children' | 'dataTestId' | 'className' | 'wrapperClassName' | 'onMount' | 'onUnmount' | 'transitionProps' | 'backdropProps' | 'onClose' | 'disableFocusLock' | 'container' | 'disableAutoFocus' | 'zIndex' | 'scrollLock'>> {
|
|
7
7
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@alfalab/core-components-universal-modal",
|
|
3
|
-
"version": "3.2.
|
|
3
|
+
"version": "3.2.6-alfasans",
|
|
4
4
|
"description": "UniversalModal component",
|
|
5
5
|
"keywords": [],
|
|
6
6
|
"license": "MIT",
|
|
@@ -13,12 +13,12 @@
|
|
|
13
13
|
"build": "rollup -c ../../tools/rollup/rollup.config.mjs --silent"
|
|
14
14
|
},
|
|
15
15
|
"dependencies": {
|
|
16
|
-
"@alfalab/core-components-backdrop": "
|
|
17
|
-
"@alfalab/core-components-base-modal": "
|
|
18
|
-
"@alfalab/core-components-mq": "
|
|
19
|
-
"@alfalab/core-components-navigation-bar-private": "
|
|
20
|
-
"@alfalab/core-components-scrollbar": "
|
|
21
|
-
"@alfalab/core-components-shared": "
|
|
16
|
+
"@alfalab/core-components-backdrop": "5.0.2-alfasans",
|
|
17
|
+
"@alfalab/core-components-base-modal": "7.2.0-alfasans",
|
|
18
|
+
"@alfalab/core-components-mq": "6.0.7-alfasans",
|
|
19
|
+
"@alfalab/core-components-navigation-bar-private": "2.0.14-alfasans",
|
|
20
|
+
"@alfalab/core-components-scrollbar": "5.0.6-alfasans",
|
|
21
|
+
"@alfalab/core-components-shared": "2.2.3-alfasans",
|
|
22
22
|
"@types/react-transition-group": "^4.4.12",
|
|
23
23
|
"classnames": "^2.5.1",
|
|
24
24
|
"react-merge-refs": "^1.1.0",
|
|
@@ -33,6 +33,6 @@
|
|
|
33
33
|
"access": "public",
|
|
34
34
|
"directory": "dist"
|
|
35
35
|
},
|
|
36
|
-
"themesVersion": "15.2.1",
|
|
37
|
-
"varsVersion": "11.
|
|
36
|
+
"themesVersion": "15.2.1-alfasans",
|
|
37
|
+
"varsVersion": "11.3.0-alfasans"
|
|
38
38
|
}
|
package/src/Context.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { BaseModalContext } from '@alfalab/core-components-base-modal';
|
|
2
2
|
|
|
3
3
|
/**
|
|
4
|
-
* @deprecated
|
|
4
|
+
* @deprecated В будущем контекст будет удалён. Обрабатывайте состояния компонента самостоятельно.
|
|
5
5
|
*/
|
|
6
6
|
export const ModalContext = BaseModalContext;
|