@alfalab/core-components-universal-modal 3.0.7 → 3.1.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/components/content/base-content/index.css +1 -1
- package/components/content/base-content/index.module.css.js +1 -1
- package/components/content/desktop/desktop.css +2 -2
- package/components/content/desktop/desktop.module.css.js +1 -1
- package/components/content/mobile/mobile.css +3 -3
- package/components/content/mobile/mobile.module.css.js +1 -1
- package/components/footer/base-footer/index.css +3 -3
- package/components/footer/base-footer/index.module.css.js +1 -1
- package/components/footer/desktop/desktop.css +1 -1
- package/components/footer/desktop/desktop.module.css.js +1 -1
- package/components/footer/desktop/layout.css +9 -9
- package/components/footer/desktop/layout.module.css.js +1 -1
- package/components/footer/mobile/layout.mobile.css +8 -8
- package/components/footer/mobile/layout.mobile.module.css.js +1 -1
- package/components/footer/mobile/mobile.css +2 -2
- package/components/footer/mobile/mobile.module.css.js +1 -1
- package/components/header/base-header/index.css +4 -4
- package/components/header/base-header/index.module.css.js +1 -1
- package/components/header/desktop/desktop.css +5 -5
- package/components/header/desktop/desktop.module.css.js +1 -1
- package/components/header/mobile/mobile.css +3 -3
- package/components/header/mobile/mobile.module.css.js +1 -1
- package/cssm/desktop/components/center-modal/center-modal.js +13 -8
- package/cssm/desktop/components/center-modal/center-modal.js.map +1 -1
- package/cssm/desktop/components/center-modal/index.module.css +7 -3
- package/cssm/desktop/components/modal-content/modal-content.d.ts +3 -3
- package/cssm/desktop/components/modal-content/modal-content.js +1 -3
- package/cssm/desktop/components/modal-content/modal-content.js.map +1 -1
- package/cssm/desktop/components/side-modal/index.module.css +6 -2
- package/cssm/desktop/components/side-modal/side-modal.js +14 -9
- package/cssm/desktop/components/side-modal/side-modal.js.map +1 -1
- package/cssm/desktop/hooks/use-scrollable-container-ref.d.ts +10 -0
- package/cssm/desktop/hooks/use-scrollable-container-ref.js +27 -0
- package/cssm/desktop/hooks/use-scrollable-container-ref.js.map +1 -0
- package/desktop/components/center-modal/center-modal.js +13 -8
- package/desktop/components/center-modal/center-modal.js.map +1 -1
- package/desktop/components/center-modal/index.css +527 -523
- package/desktop/components/center-modal/index.module.css.js +1 -1
- package/desktop/components/center-modal/index.module.css.js.map +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/modal-content/modal-content.css +4 -4
- package/desktop/components/modal-content/modal-content.d.ts +3 -3
- package/desktop/components/modal-content/modal-content.js +1 -3
- 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 +529 -525
- package/desktop/components/side-modal/index.module.css.js +1 -1
- package/desktop/components/side-modal/index.module.css.js.map +1 -1
- package/desktop/components/side-modal/side-modal.js +14 -9
- 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/hooks/use-scrollable-container-ref.d.ts +10 -0
- package/desktop/hooks/use-scrollable-container-ref.js +27 -0
- package/desktop/hooks/use-scrollable-container-ref.js.map +1 -0
- 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/esm/components/content/base-content/index.css +1 -1
- package/esm/components/content/base-content/index.module.css.js +1 -1
- package/esm/components/content/desktop/desktop.css +2 -2
- package/esm/components/content/desktop/desktop.module.css.js +1 -1
- package/esm/components/content/mobile/mobile.css +3 -3
- package/esm/components/content/mobile/mobile.module.css.js +1 -1
- package/esm/components/footer/base-footer/index.css +3 -3
- package/esm/components/footer/base-footer/index.module.css.js +1 -1
- package/esm/components/footer/desktop/desktop.css +1 -1
- package/esm/components/footer/desktop/desktop.module.css.js +1 -1
- package/esm/components/footer/desktop/layout.css +9 -9
- package/esm/components/footer/desktop/layout.module.css.js +1 -1
- package/esm/components/footer/mobile/layout.mobile.css +8 -8
- package/esm/components/footer/mobile/layout.mobile.module.css.js +1 -1
- package/esm/components/footer/mobile/mobile.css +2 -2
- package/esm/components/footer/mobile/mobile.module.css.js +1 -1
- package/esm/components/header/base-header/index.css +4 -4
- package/esm/components/header/base-header/index.module.css.js +1 -1
- package/esm/components/header/desktop/desktop.css +5 -5
- package/esm/components/header/desktop/desktop.module.css.js +1 -1
- package/esm/components/header/mobile/mobile.css +3 -3
- package/esm/components/header/mobile/mobile.module.css.js +1 -1
- package/esm/desktop/components/center-modal/center-modal.js +13 -8
- package/esm/desktop/components/center-modal/center-modal.js.map +1 -1
- package/esm/desktop/components/center-modal/index.css +527 -523
- package/esm/desktop/components/center-modal/index.module.css.js +1 -1
- package/esm/desktop/components/center-modal/index.module.css.js.map +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/modal-content/modal-content.css +4 -4
- package/esm/desktop/components/modal-content/modal-content.d.ts +3 -3
- package/esm/desktop/components/modal-content/modal-content.js +1 -3
- 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 +529 -525
- package/esm/desktop/components/side-modal/index.module.css.js +1 -1
- package/esm/desktop/components/side-modal/index.module.css.js.map +1 -1
- package/esm/desktop/components/side-modal/side-modal.js +14 -9
- 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/hooks/use-scrollable-container-ref.d.ts +10 -0
- package/esm/desktop/hooks/use-scrollable-container-ref.js +23 -0
- package/esm/desktop/hooks/use-scrollable-container-ref.js.map +1 -0
- 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/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/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/modern/components/content/base-content/index.css +1 -1
- package/modern/components/content/base-content/index.module.css.js +1 -1
- package/modern/components/content/desktop/desktop.css +2 -2
- package/modern/components/content/desktop/desktop.module.css.js +1 -1
- package/modern/components/content/mobile/mobile.css +3 -3
- package/modern/components/content/mobile/mobile.module.css.js +1 -1
- package/modern/components/footer/base-footer/index.css +3 -3
- package/modern/components/footer/base-footer/index.module.css.js +1 -1
- package/modern/components/footer/desktop/desktop.css +1 -1
- package/modern/components/footer/desktop/desktop.module.css.js +1 -1
- package/modern/components/footer/desktop/layout.css +9 -9
- package/modern/components/footer/desktop/layout.module.css.js +1 -1
- package/modern/components/footer/mobile/layout.mobile.css +8 -8
- package/modern/components/footer/mobile/layout.mobile.module.css.js +1 -1
- package/modern/components/footer/mobile/mobile.css +2 -2
- package/modern/components/footer/mobile/mobile.module.css.js +1 -1
- package/modern/components/header/base-header/index.css +4 -4
- package/modern/components/header/base-header/index.module.css.js +1 -1
- package/modern/components/header/desktop/desktop.css +5 -5
- package/modern/components/header/desktop/desktop.module.css.js +1 -1
- package/modern/components/header/mobile/mobile.css +3 -3
- package/modern/components/header/mobile/mobile.module.css.js +1 -1
- package/modern/desktop/components/center-modal/center-modal.js +12 -8
- package/modern/desktop/components/center-modal/center-modal.js.map +1 -1
- package/modern/desktop/components/center-modal/index.css +527 -523
- package/modern/desktop/components/center-modal/index.module.css.js +1 -1
- package/modern/desktop/components/center-modal/index.module.css.js.map +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/modal-content/modal-content.css +4 -4
- package/modern/desktop/components/modal-content/modal-content.d.ts +3 -3
- package/modern/desktop/components/modal-content/modal-content.js +1 -3
- 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 +529 -525
- package/modern/desktop/components/side-modal/index.module.css.js +1 -1
- package/modern/desktop/components/side-modal/index.module.css.js.map +1 -1
- package/modern/desktop/components/side-modal/side-modal.js +12 -8
- 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/hooks/use-scrollable-container-ref.d.ts +10 -0
- package/modern/desktop/hooks/use-scrollable-container-ref.js +21 -0
- package/modern/desktop/hooks/use-scrollable-container-ref.js.map +1 -0
- 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/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/moderncssm/desktop/components/center-modal/center-modal.js +12 -8
- package/moderncssm/desktop/components/center-modal/center-modal.js.map +1 -1
- package/moderncssm/desktop/components/center-modal/index.module.css +9 -4
- package/moderncssm/desktop/components/modal-content/modal-content.d.ts +3 -3
- package/moderncssm/desktop/components/modal-content/modal-content.js +1 -3
- package/moderncssm/desktop/components/modal-content/modal-content.js.map +1 -1
- package/moderncssm/desktop/components/side-modal/index.module.css +7 -2
- package/moderncssm/desktop/components/side-modal/side-modal.js +12 -8
- package/moderncssm/desktop/components/side-modal/side-modal.js.map +1 -1
- package/moderncssm/desktop/hooks/use-scrollable-container-ref.d.ts +10 -0
- package/moderncssm/desktop/hooks/use-scrollable-container-ref.js +21 -0
- package/moderncssm/desktop/hooks/use-scrollable-container-ref.js.map +1 -0
- package/package.json +3 -3
- package/src/desktop/components/center-modal/center-modal.module.css +1 -5
- package/src/desktop/components/center-modal/center-modal.tsx +14 -14
- package/src/desktop/components/center-modal/index.module.css +2 -1
- package/src/desktop/components/modal-content/modal-content.tsx +8 -9
- package/src/desktop/components/side-modal/index.module.css +2 -1
- package/src/desktop/components/side-modal/side-modal.module.css +0 -4
- package/src/desktop/components/side-modal/side-modal.tsx +14 -14
- package/src/desktop/hooks/use-scrollable-container-ref.ts +29 -0
- package/src/desktop/styles/common.module.css +10 -0
- package/cssm/desktop/hooks/use-outside-scroll.d.ts +0 -8
- package/cssm/desktop/hooks/use-outside-scroll.js +0 -21
- package/cssm/desktop/hooks/use-outside-scroll.js.map +0 -1
- package/cssm/desktop/hooks/useModalWheel.d.ts +0 -5
- package/cssm/desktop/hooks/useModalWheel.js +0 -20
- package/cssm/desktop/hooks/useModalWheel.js.map +0 -1
- package/desktop/hooks/use-outside-scroll.d.ts +0 -8
- package/desktop/hooks/use-outside-scroll.js +0 -21
- package/desktop/hooks/use-outside-scroll.js.map +0 -1
- package/desktop/hooks/useModalWheel.d.ts +0 -5
- package/desktop/hooks/useModalWheel.js +0 -20
- package/desktop/hooks/useModalWheel.js.map +0 -1
- package/esm/desktop/hooks/use-outside-scroll.d.ts +0 -8
- package/esm/desktop/hooks/use-outside-scroll.js +0 -17
- package/esm/desktop/hooks/use-outside-scroll.js.map +0 -1
- package/esm/desktop/hooks/useModalWheel.d.ts +0 -5
- package/esm/desktop/hooks/useModalWheel.js +0 -16
- package/esm/desktop/hooks/useModalWheel.js.map +0 -1
- package/modern/desktop/hooks/use-outside-scroll.d.ts +0 -8
- package/modern/desktop/hooks/use-outside-scroll.js +0 -17
- package/modern/desktop/hooks/use-outside-scroll.js.map +0 -1
- package/modern/desktop/hooks/useModalWheel.d.ts +0 -5
- package/modern/desktop/hooks/useModalWheel.js +0 -16
- package/modern/desktop/hooks/useModalWheel.js.map +0 -1
- package/moderncssm/desktop/hooks/use-outside-scroll.d.ts +0 -8
- package/moderncssm/desktop/hooks/use-outside-scroll.js +0 -17
- package/moderncssm/desktop/hooks/use-outside-scroll.js.map +0 -1
- package/moderncssm/desktop/hooks/useModalWheel.d.ts +0 -5
- package/moderncssm/desktop/hooks/useModalWheel.js +0 -16
- package/moderncssm/desktop/hooks/useModalWheel.js.map +0 -1
- package/src/desktop/hooks/use-outside-scroll.ts +0 -20
- package/src/desktop/hooks/useModalWheel.ts +0 -16
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
require('./full-size-vertical-top-transitions.css');
|
|
4
4
|
|
|
5
|
-
var fullSizeVerticalTopTransitions = {"appear":"universal-
|
|
5
|
+
var fullSizeVerticalTopTransitions = {"appear":"universal-modal__appear_qhje1","enter":"universal-modal__enter_qhje1","appearActive":"universal-modal__appearActive_qhje1","enterActive":"universal-modal__enterActive_qhje1","exit":"universal-modal__exit_qhje1","exitActive":"universal-modal__exitActive_qhje1","exitDone":"universal-modal__exitDone_qhje1"};
|
|
6
6
|
|
|
7
7
|
module.exports = fullSizeVerticalTopTransitions;
|
|
8
8
|
//# sourceMappingURL=full-size-vertical-top-transitions.module.css.js.map
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
:root {
|
|
2
2
|
--gap-0: 0px;
|
|
3
3
|
}
|
|
4
|
-
.universal-
|
|
4
|
+
.universal-modal__content_1ft7o.universal-modal__withHeader_1ft7o {
|
|
5
5
|
padding-top: var(--gap-0);
|
|
6
6
|
}
|
|
7
|
-
.universal-
|
|
7
|
+
.universal-modal__content_1ft7o.universal-modal__withFooter_1ft7o {
|
|
8
8
|
padding-bottom: var(--gap-0);
|
|
9
9
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import './desktop.css';
|
|
2
2
|
|
|
3
|
-
var styles = {"content":"universal-
|
|
3
|
+
var styles = {"content":"universal-modal__content_1ft7o","withHeader":"universal-modal__withHeader_1ft7o","withFooter":"universal-modal__withFooter_1ft7o"};
|
|
4
4
|
|
|
5
5
|
export { styles as default };
|
|
6
6
|
//# sourceMappingURL=desktop.module.css.js.map
|
|
@@ -5,12 +5,12 @@
|
|
|
5
5
|
--gap-16: var(--gap-m);
|
|
6
6
|
--gap-20: var(--gap-l);
|
|
7
7
|
}
|
|
8
|
-
.universal-
|
|
8
|
+
.universal-modal__content_2atcj {
|
|
9
9
|
padding: var(--gap-16);
|
|
10
10
|
}
|
|
11
|
-
.universal-
|
|
11
|
+
.universal-modal__content_2atcj.universal-modal__withHeader_2atcj {
|
|
12
12
|
padding-top: var(--gap-0);
|
|
13
13
|
}
|
|
14
|
-
.universal-
|
|
14
|
+
.universal-modal__content_2atcj.universal-modal__withFooter_2atcj {
|
|
15
15
|
padding-bottom: var(--gap-20);
|
|
16
16
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import './mobile.css';
|
|
2
2
|
|
|
3
|
-
var styles = {"content":"universal-
|
|
3
|
+
var styles = {"content":"universal-modal__content_2atcj","withHeader":"universal-modal__withHeader_2atcj","withFooter":"universal-modal__withFooter_2atcj"};
|
|
4
4
|
|
|
5
5
|
export { styles as default };
|
|
6
6
|
//# sourceMappingURL=mobile.module.css.js.map
|
|
@@ -13,7 +13,7 @@
|
|
|
13
13
|
--universal-modal-footer-highlight-background: var(--color-light-modal-bg-primary);
|
|
14
14
|
--universal-modal-footer-highlight-box-shadow: 0 -1px 0 0 var(--color-light-neutral-300);
|
|
15
15
|
}
|
|
16
|
-
.universal-
|
|
16
|
+
.universal-modal__footer_1fel6 {
|
|
17
17
|
width: 100%;
|
|
18
18
|
box-sizing: border-box;
|
|
19
19
|
transition:
|
|
@@ -21,12 +21,12 @@
|
|
|
21
21
|
background 0.2s ease;
|
|
22
22
|
padding: var(--gap-16) var(--gap-32) var(--gap-32);
|
|
23
23
|
}
|
|
24
|
-
.universal-
|
|
24
|
+
.universal-modal__sticky_1fel6 {
|
|
25
25
|
background: var(--universal-modal-footer-background);
|
|
26
26
|
position: sticky;
|
|
27
27
|
z-index: 1;
|
|
28
28
|
}
|
|
29
|
-
.universal-
|
|
29
|
+
.universal-modal__highlighted_1fel6 {
|
|
30
30
|
background: var(--universal-modal-footer-highlight-background);
|
|
31
31
|
box-shadow: var(--universal-modal-footer-highlight-box-shadow);
|
|
32
32
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import './index.css';
|
|
2
2
|
|
|
3
|
-
var styles = {"footer":"universal-
|
|
3
|
+
var styles = {"footer":"universal-modal__footer_1fel6","sticky":"universal-modal__sticky_1fel6","highlighted":"universal-modal__highlighted_1fel6"};
|
|
4
4
|
|
|
5
5
|
export { styles as default };
|
|
6
6
|
//# sourceMappingURL=index.module.css.js.map
|
|
@@ -6,29 +6,29 @@
|
|
|
6
6
|
--gap-12: var(--gap-s);
|
|
7
7
|
--gap-16: var(--gap-m);
|
|
8
8
|
}
|
|
9
|
-
.universal-
|
|
9
|
+
.universal-modal__column_1s60g {
|
|
10
10
|
display: flex;
|
|
11
11
|
flex-direction: column;
|
|
12
12
|
gap: var(--gap-8);
|
|
13
13
|
}
|
|
14
|
-
.universal-
|
|
14
|
+
.universal-modal__column_1s60g.universal-modal__middle_1s60g {
|
|
15
15
|
gap: var(--gap-12);
|
|
16
16
|
}
|
|
17
|
-
.universal-
|
|
17
|
+
.universal-modal__start_1s60g {
|
|
18
18
|
justify-content: flex-start;
|
|
19
19
|
}
|
|
20
|
-
.universal-
|
|
20
|
+
.universal-modal__center_1s60g {
|
|
21
21
|
justify-content: center;
|
|
22
22
|
}
|
|
23
|
-
.universal-modal__space-
|
|
23
|
+
.universal-modal__space-between_1s60g {
|
|
24
24
|
justify-content: space-between;
|
|
25
25
|
}
|
|
26
|
-
.universal-modal__space-
|
|
26
|
+
.universal-modal__space-between_1s60g > * {
|
|
27
27
|
flex: 1;
|
|
28
28
|
}
|
|
29
|
-
.universal-
|
|
30
|
-
.universal-
|
|
31
|
-
.universal-modal__space-
|
|
29
|
+
.universal-modal__start_1s60g,
|
|
30
|
+
.universal-modal__center_1s60g,
|
|
31
|
+
.universal-modal__space-between_1s60g {
|
|
32
32
|
display: flex;
|
|
33
33
|
gap: var(--gap-16);
|
|
34
34
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import './layout.css';
|
|
2
2
|
|
|
3
|
-
var layoutStyles = {"column":"universal-
|
|
3
|
+
var layoutStyles = {"column":"universal-modal__column_1s60g","middle":"universal-modal__middle_1s60g","start":"universal-modal__start_1s60g","center":"universal-modal__center_1s60g","space-between":"universal-modal__space-between_1s60g"};
|
|
4
4
|
|
|
5
5
|
export { layoutStyles as default };
|
|
6
6
|
//# sourceMappingURL=layout.module.css.js.map
|
|
@@ -2,26 +2,26 @@
|
|
|
2
2
|
--gap-m: 16px;
|
|
3
3
|
--gap-16: var(--gap-m);
|
|
4
4
|
}
|
|
5
|
-
.universal-
|
|
5
|
+
.universal-modal__column_vy8ra {
|
|
6
6
|
display: flex;
|
|
7
7
|
flex-direction: column;
|
|
8
8
|
gap: var(--gap-16);
|
|
9
9
|
}
|
|
10
|
-
.universal-
|
|
10
|
+
.universal-modal__start_vy8ra {
|
|
11
11
|
justify-content: flex-start;
|
|
12
12
|
}
|
|
13
|
-
.universal-
|
|
13
|
+
.universal-modal__center_vy8ra {
|
|
14
14
|
justify-content: center;
|
|
15
15
|
}
|
|
16
|
-
.universal-modal__space-
|
|
16
|
+
.universal-modal__space-between_vy8ra {
|
|
17
17
|
justify-content: space-between;
|
|
18
18
|
}
|
|
19
|
-
.universal-modal__space-
|
|
19
|
+
.universal-modal__space-between_vy8ra > * {
|
|
20
20
|
flex: 1;
|
|
21
21
|
}
|
|
22
|
-
.universal-
|
|
23
|
-
.universal-
|
|
24
|
-
.universal-modal__space-
|
|
22
|
+
.universal-modal__start_vy8ra,
|
|
23
|
+
.universal-modal__center_vy8ra,
|
|
24
|
+
.universal-modal__space-between_vy8ra {
|
|
25
25
|
display: flex;
|
|
26
26
|
gap: var(--gap-16);
|
|
27
27
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import './layout.mobile.css';
|
|
2
2
|
|
|
3
|
-
var layoutStylesMobile = {"column":"universal-
|
|
3
|
+
var layoutStylesMobile = {"column":"universal-modal__column_vy8ra","start":"universal-modal__start_vy8ra","center":"universal-modal__center_vy8ra","space-between":"universal-modal__space-between_vy8ra"};
|
|
4
4
|
|
|
5
5
|
export { layoutStylesMobile as default };
|
|
6
6
|
//# sourceMappingURL=layout.mobile.module.css.js.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import './mobile.css';
|
|
2
2
|
|
|
3
|
-
var styles = {"footer":"universal-
|
|
3
|
+
var styles = {"footer":"universal-modal__footer_1a037","sticky":"universal-modal__sticky_1a037"};
|
|
4
4
|
|
|
5
5
|
export { styles as default };
|
|
6
6
|
//# sourceMappingURL=mobile.module.css.js.map
|
|
@@ -10,22 +10,22 @@
|
|
|
10
10
|
--universal-modal-header-highlight-background: var(--color-light-modal-bg-primary);
|
|
11
11
|
--universal-modal-header-highlight-box-shadow: 0 1px 0 0 var(--color-light-neutral-300);
|
|
12
12
|
}
|
|
13
|
-
.universal-
|
|
13
|
+
.universal-modal__header_pyhqc {
|
|
14
14
|
width: 100%;
|
|
15
15
|
box-sizing: border-box;
|
|
16
16
|
transition:
|
|
17
17
|
box-shadow 0.2s ease,
|
|
18
18
|
background 0.2s ease;
|
|
19
19
|
}
|
|
20
|
-
.universal-
|
|
20
|
+
.universal-modal__header_pyhqc.universal-modal__highlighted_pyhqc {
|
|
21
21
|
background: var(--universal-modal-header-highlight-background);
|
|
22
22
|
box-shadow: var(--universal-modal-header-highlight-box-shadow);
|
|
23
23
|
}
|
|
24
|
-
.universal-
|
|
24
|
+
.universal-modal__header_pyhqc.universal-modal__sticky_pyhqc {
|
|
25
25
|
position: sticky;
|
|
26
26
|
top: var(--gap-0);
|
|
27
27
|
z-index: 1;
|
|
28
28
|
}
|
|
29
|
-
.universal-
|
|
29
|
+
.universal-modal__header_pyhqc.universal-modal__sticky_pyhqc.universal-modal__hasContent_pyhqc {
|
|
30
30
|
background: var(--universal-modal-header-background);
|
|
31
31
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import './index.css';
|
|
2
2
|
|
|
3
|
-
var styles = {"header":"universal-
|
|
3
|
+
var styles = {"header":"universal-modal__header_pyhqc","highlighted":"universal-modal__highlighted_pyhqc","sticky":"universal-modal__sticky_pyhqc","hasContent":"universal-modal__hasContent_pyhqc"};
|
|
4
4
|
|
|
5
5
|
export { styles as default };
|
|
6
6
|
//# sourceMappingURL=index.module.css.js.map
|
|
@@ -11,31 +11,31 @@
|
|
|
11
11
|
--font-family-system:
|
|
12
12
|
system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Helvetica, sans-serif;
|
|
13
13
|
}
|
|
14
|
-
.universal-
|
|
14
|
+
.universal-modal__header_12i37 {
|
|
15
15
|
padding: var(--gap-20) var(--gap-20) 0;
|
|
16
16
|
}
|
|
17
|
-
.universal-
|
|
17
|
+
.universal-modal__header_12i37 .universal-modal__headerTitle_12i37 {
|
|
18
18
|
font-size: 22px;
|
|
19
19
|
line-height: 26px;
|
|
20
20
|
font-weight: 700;
|
|
21
21
|
font-family: var(--font-family-system);
|
|
22
22
|
padding: 11px var(--gap-12);
|
|
23
23
|
}
|
|
24
|
-
.universal-
|
|
24
|
+
.universal-modal__header_12i37 .universal-modal__bottomAddons_12i37 {
|
|
25
25
|
font-size: 22px;
|
|
26
26
|
line-height: 26px;
|
|
27
27
|
font-weight: 700;
|
|
28
28
|
font-family: var(--font-family-system);
|
|
29
29
|
padding: var(--gap-6) var(--gap-12) var(--gap-16);
|
|
30
30
|
}
|
|
31
|
-
.universal-
|
|
31
|
+
.universal-modal__header_12i37.universal-modal__medium_12i37 .universal-modal__headerTitle_12i37 {
|
|
32
32
|
font-size: 30px;
|
|
33
33
|
line-height: 36px;
|
|
34
34
|
font-weight: 700;
|
|
35
35
|
font-family: var(--font-family-system);
|
|
36
36
|
padding: var(--gap-6) var(--gap-12) var(--gap-16);
|
|
37
37
|
}
|
|
38
|
-
.universal-
|
|
38
|
+
.universal-modal__header_12i37.universal-modal__medium_12i37 .universal-modal__bottomAddons_12i37 {
|
|
39
39
|
font-size: 30px;
|
|
40
40
|
line-height: 36px;
|
|
41
41
|
font-weight: 700;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import './desktop.css';
|
|
2
2
|
|
|
3
|
-
var desktopStyles = {"header":"universal-
|
|
3
|
+
var desktopStyles = {"header":"universal-modal__header_12i37","headerTitle":"universal-modal__headerTitle_12i37","bottomAddons":"universal-modal__bottomAddons_12i37","medium":"universal-modal__medium_12i37"};
|
|
4
4
|
|
|
5
5
|
export { desktopStyles as default };
|
|
6
6
|
//# sourceMappingURL=desktop.module.css.js.map
|
|
@@ -13,10 +13,10 @@
|
|
|
13
13
|
--font-family-system:
|
|
14
14
|
system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Helvetica, sans-serif;
|
|
15
15
|
}
|
|
16
|
-
.universal-
|
|
16
|
+
.universal-modal__header_4gw09 {
|
|
17
17
|
padding: var(--gap-8) var(--gap-4);
|
|
18
18
|
}
|
|
19
|
-
.universal-
|
|
19
|
+
.universal-modal__content_4gw09 {
|
|
20
20
|
font-size: 20px;
|
|
21
21
|
line-height: 28px;
|
|
22
22
|
font-weight: 600;
|
|
@@ -25,7 +25,7 @@
|
|
|
25
25
|
min-height: 40px;
|
|
26
26
|
justify-content: center;
|
|
27
27
|
}
|
|
28
|
-
.universal-
|
|
28
|
+
.universal-modal__bottomAddons_4gw09 {
|
|
29
29
|
font-size: 20px;
|
|
30
30
|
line-height: 28px;
|
|
31
31
|
font-weight: 600;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import './mobile.css';
|
|
2
2
|
|
|
3
|
-
var mobileStyles = {"header":"universal-
|
|
3
|
+
var mobileStyles = {"header":"universal-modal__header_4gw09","content":"universal-modal__content_4gw09","bottomAddons":"universal-modal__bottomAddons_4gw09"};
|
|
4
4
|
|
|
5
5
|
export { mobileStyles as default };
|
|
6
6
|
//# sourceMappingURL=mobile.module.css.js.map
|
|
@@ -3,7 +3,7 @@ import React, { forwardRef, useRef } from 'react';
|
|
|
3
3
|
import cn from 'classnames';
|
|
4
4
|
import { BaseModal } from '@alfalab/core-components-base-modal/esm';
|
|
5
5
|
import { isMacOS, isSafari } from '@alfalab/core-components-shared/esm';
|
|
6
|
-
import {
|
|
6
|
+
import { useScrollableContainerRef } from '../../hooks/use-scrollable-container-ref.js';
|
|
7
7
|
import { getFullSizeModalTransitions } from '../../utils/get-full-size-modal-transitions.js';
|
|
8
8
|
import { getHeightStyle } from '../../utils/get-height-style.js';
|
|
9
9
|
import { getMarginStyles } from '../../utils/get-margin-styles.js';
|
|
@@ -16,19 +16,24 @@ import transitions from './transitions/transitions.module.css.js';
|
|
|
16
16
|
// в safari некорректно отрабатывает transform:scale (???), поэтому применяем немного другую анимацию
|
|
17
17
|
var transitionProps = isMacOS() && isSafari() ? safariTransitions : transitions;
|
|
18
18
|
var CenterModal = forwardRef(function (props, ref) {
|
|
19
|
-
var _a
|
|
20
|
-
var dataTestId = props.dataTestId, className = props.className, open = props.open, children = props.children,
|
|
19
|
+
var _a;
|
|
20
|
+
var dataTestId = props.dataTestId, className = props.className, open = props.open, children = props.children, _b = props.width, width = _b === void 0 ? 500 : _b, _c = props.height, height = _c === void 0 ? 'hugContent' : _c, _d = props.verticalAlign, verticalAlign = _d === void 0 ? 'center' : _d, _e = props.overlay, overlay = _e === void 0 ? true : _e, margin = props.margin, scrollableContainerRefProp = props.scrollableContainerRef, onClose = props.onClose, restProps = __rest(props, ["dataTestId", "className", "open", "children", "width", "height", "verticalAlign", "overlay", "margin", "scrollableContainerRef", "onClose"]);
|
|
21
21
|
var componentRef = useRef(null);
|
|
22
|
-
var
|
|
23
|
-
|
|
24
|
-
|
|
22
|
+
var _f = useScrollableContainerRef({
|
|
23
|
+
overlay: overlay,
|
|
24
|
+
refObject: scrollableContainerRefProp,
|
|
25
|
+
}), handleWheel = _f.handleWheel, scrollableContainerRef = _f.scrollableContainerRef;
|
|
26
|
+
var _g = getFullSizeModalTransitions({ verticalAlign: verticalAlign, width: width, height: height }), isFullSizeModal = _g.isFullSizeModal, fullSizeModalContentTransitions = _g.componentTransitions, fullSizeModalBackdropTransitions = _g.backdropTransitions;
|
|
27
|
+
var withoutOverlay = !overlay;
|
|
28
|
+
return (React.createElement(BaseModal, __assign({}, restProps, { open: open, dataTestId: dataTestId, ref: ref, componentRef: componentRef, scrollHandler: 'content', disableBlockingScroll: withoutOverlay, wrapperClassName: cn(styles.baseModalContainer, (_a = {},
|
|
25
29
|
_a[styles.wrapperJustifyStart] = verticalAlign === 'top',
|
|
26
30
|
_a[styles.wrapperJustifyCenter] = verticalAlign === 'center',
|
|
27
31
|
_a[styles.wrapperJustifyEnd] = verticalAlign === 'bottom',
|
|
28
|
-
_a
|
|
32
|
+
_a[styles.withoutOverlay] = withoutOverlay,
|
|
33
|
+
_a)), className: cn(styles.component, className, styles.baseModalComponent, __assign({}, getMarginStyles({ styles: styles, margin: margin }))), transitionProps: __assign(__assign({ classNames: transitionProps }, (isFullSizeModal && fullSizeModalContentTransitions)), restProps.transitionProps), backdropProps: __assign(__assign({ shouldRender: overlay }, (isFullSizeModal && fullSizeModalBackdropTransitions)), restProps.backdropProps), componentDivProps: {
|
|
29
34
|
style: __assign({ width: getWidthStyle(width, margin) }, getHeightStyle(height, margin)),
|
|
30
35
|
}, onWheel: handleWheel, onClose: onClose }),
|
|
31
|
-
React.createElement(ModalContent, { height: height,
|
|
36
|
+
React.createElement(ModalContent, { height: height, scrollableContainerRef: scrollableContainerRef }, children)));
|
|
32
37
|
});
|
|
33
38
|
|
|
34
39
|
export { CenterModal };
|
|
@@ -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 {
|
|
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 { getHeightStyle } from '../../utils/get-height-style';\nimport { getMarginStyles } from '../../utils/get-margin-styles';\nimport { getWidthStyle } from '../../utils/get-width-style';\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// в safari некорректно отрабатывает transform:scale (???), поэтому применяем немного другую анимацию\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='content'\n disableBlockingScroll={withoutOverlay}\n wrapperClassName={cn(styles.baseModalContainer, {\n [styles.wrapperJustifyStart]: verticalAlign === 'top',\n [styles.wrapperJustifyCenter]: verticalAlign === 'center',\n [styles.wrapperJustifyEnd]: verticalAlign === 'bottom',\n [styles.withoutOverlay]: withoutOverlay,\n })}\n className={cn(styles.component, className, styles.baseModalComponent, {\n ...getMarginStyles({ 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: getWidthStyle(width, margin),\n ...getHeightStyle(height, margin),\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":"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"}
|