jb-modal 1.1.0 → 1.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +7 -1
- package/dist/JBModal.js +1 -1
- package/dist/JBModal.umd.js +1 -1
- package/lib/JBModal.scss +27 -2
- package/package.json +1 -1
package/README.md
CHANGED
package/dist/JBModal.js
CHANGED
|
@@ -28,7 +28,7 @@ function __classPrivateFieldSet(receiver, state, value, kind, f) {
|
|
|
28
28
|
|
|
29
29
|
var HTML = "<div class=\"jb-modal-web-component --closed\">\r\n <div class=\"modal-background\"></div>\r\n <div class=\"modal-content-wrapper\">\r\n <div class=\"modal-content\">\r\n <slot name=\"content\"></slot>\r\n </div>\r\n </div>\r\n</div>";
|
|
30
30
|
|
|
31
|
-
var css_248z = ".jb-modal-web-component {\n position: fixed;\n top: 0;\n left: 0;\n z-index: var(--jb-modal-z-index, 1);\n width: 100%;\n height: 100%;\n}\n.jb-modal-web-component.--closed {\n display: none;\n}\n.jb-modal-web-component.--opened {\n display: block;\n}\n.jb-modal-web-component .modal-background {\n position: absolute;\n top: 0;\n left: 0;\n background-color: rgba(255, 255, 255, 0.1);\n backdrop-filter: blur(10px);\n z-index: 2;\n width: 100%;\n height: 100%;\n}\n.jb-modal-web-component .modal-content-wrapper {\n position: absolute;\n top: 0;\n left: 0;\n z-index:
|
|
31
|
+
var css_248z = ".jb-modal-web-component {\n position: fixed;\n top: 0;\n left: 0;\n z-index: var(--jb-modal-z-index, 1);\n width: 100%;\n height: 100%;\n}\n.jb-modal-web-component.--closed {\n display: none;\n}\n@media (min-width: 320px) and (max-width: 767px) {\n .jb-modal-web-component.--closed .modal-content-wrapper {\n transform: translateY(100%);\n }\n}\n.jb-modal-web-component.--opened {\n display: block;\n}\n@media (min-width: 320px) and (max-width: 767px) {\n .jb-modal-web-component.--opened .modal-content-wrapper {\n transform: translateY(0%);\n }\n}\n.jb-modal-web-component .modal-background {\n position: absolute;\n top: 0;\n left: 0;\n background-color: rgba(255, 255, 255, 0.1);\n backdrop-filter: blur(10px);\n z-index: 2;\n width: 100%;\n height: 100%;\n}\n.jb-modal-web-component .modal-content-wrapper {\n position: absolute;\n top: 0;\n left: 0;\n z-index: 3;\n width: 100%;\n height: 100%;\n display: flex;\n align-items: center;\n justify-content: center;\n pointer-events: none;\n}\n@media (min-width: 320px) and (max-width: 767px) {\n .jb-modal-web-component .modal-content-wrapper {\n bottom: 0;\n top: initial;\n align-items: flex-end;\n transition: all 0.5s 0s ease;\n }\n}\n.jb-modal-web-component .modal-content-wrapper .modal-content {\n pointer-events: all;\n width: auto;\n height: auto;\n background-color: var(--jb-modal-bg-color, #fff);\n border-radius: 24px;\n}\n@media (min-width: 320px) and (max-width: 767px) {\n .jb-modal-web-component .modal-content-wrapper .modal-content {\n width: 100%;\n height: auto;\n max-height: calc(100% - 80px);\n min-height: 32px;\n }\n}";
|
|
32
32
|
|
|
33
33
|
var _JBModalWebComponent_instances, _JBModalWebComponent_isOpen, _JBModalWebComponent_id, _JBModalWebComponent_onBrowserBack;
|
|
34
34
|
class JBModalWebComponent extends HTMLElement {
|
package/dist/JBModal.umd.js
CHANGED
|
@@ -33,7 +33,7 @@
|
|
|
33
33
|
|
|
34
34
|
var HTML = "<div class=\"jb-modal-web-component --closed\">\r\n <div class=\"modal-background\"></div>\r\n <div class=\"modal-content-wrapper\">\r\n <div class=\"modal-content\">\r\n <slot name=\"content\"></slot>\r\n </div>\r\n </div>\r\n</div>";
|
|
35
35
|
|
|
36
|
-
var css_248z = ".jb-modal-web-component {\n position: fixed;\n top: 0;\n left: 0;\n z-index: var(--jb-modal-z-index, 1);\n width: 100%;\n height: 100%;\n}\n.jb-modal-web-component.--closed {\n display: none;\n}\n.jb-modal-web-component.--opened {\n display: block;\n}\n.jb-modal-web-component .modal-background {\n position: absolute;\n top: 0;\n left: 0;\n background-color: rgba(255, 255, 255, 0.1);\n backdrop-filter: blur(10px);\n z-index: 2;\n width: 100%;\n height: 100%;\n}\n.jb-modal-web-component .modal-content-wrapper {\n position: absolute;\n top: 0;\n left: 0;\n z-index:
|
|
36
|
+
var css_248z = ".jb-modal-web-component {\n position: fixed;\n top: 0;\n left: 0;\n z-index: var(--jb-modal-z-index, 1);\n width: 100%;\n height: 100%;\n}\n.jb-modal-web-component.--closed {\n display: none;\n}\n@media (min-width: 320px) and (max-width: 767px) {\n .jb-modal-web-component.--closed .modal-content-wrapper {\n transform: translateY(100%);\n }\n}\n.jb-modal-web-component.--opened {\n display: block;\n}\n@media (min-width: 320px) and (max-width: 767px) {\n .jb-modal-web-component.--opened .modal-content-wrapper {\n transform: translateY(0%);\n }\n}\n.jb-modal-web-component .modal-background {\n position: absolute;\n top: 0;\n left: 0;\n background-color: rgba(255, 255, 255, 0.1);\n backdrop-filter: blur(10px);\n z-index: 2;\n width: 100%;\n height: 100%;\n}\n.jb-modal-web-component .modal-content-wrapper {\n position: absolute;\n top: 0;\n left: 0;\n z-index: 3;\n width: 100%;\n height: 100%;\n display: flex;\n align-items: center;\n justify-content: center;\n pointer-events: none;\n}\n@media (min-width: 320px) and (max-width: 767px) {\n .jb-modal-web-component .modal-content-wrapper {\n bottom: 0;\n top: initial;\n align-items: flex-end;\n transition: all 0.5s 0s ease;\n }\n}\n.jb-modal-web-component .modal-content-wrapper .modal-content {\n pointer-events: all;\n width: auto;\n height: auto;\n background-color: var(--jb-modal-bg-color, #fff);\n border-radius: 24px;\n}\n@media (min-width: 320px) and (max-width: 767px) {\n .jb-modal-web-component .modal-content-wrapper .modal-content {\n width: 100%;\n height: auto;\n max-height: calc(100% - 80px);\n min-height: 32px;\n }\n}";
|
|
37
37
|
|
|
38
38
|
var _JBModalWebComponent_instances, _JBModalWebComponent_isOpen, _JBModalWebComponent_id, _JBModalWebComponent_onBrowserBack;
|
|
39
39
|
class JBModalWebComponent extends HTMLElement {
|
package/lib/JBModal.scss
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
@import '../../../common/scss/Medias.scss';
|
|
1
2
|
.jb-modal-web-component {
|
|
2
3
|
position: fixed;
|
|
3
4
|
top: 0;
|
|
@@ -7,9 +8,21 @@
|
|
|
7
8
|
height: 100%;
|
|
8
9
|
&.--closed{
|
|
9
10
|
display: none;
|
|
11
|
+
.modal-content-wrapper{
|
|
12
|
+
@include mobile-tablet{
|
|
13
|
+
transform: translateY(100%);
|
|
14
|
+
|
|
15
|
+
}
|
|
16
|
+
}
|
|
10
17
|
}
|
|
11
18
|
&.--opened{
|
|
12
19
|
display: block;
|
|
20
|
+
.modal-content-wrapper{
|
|
21
|
+
@include mobile-tablet{
|
|
22
|
+
transform: translateY(0%);
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
|
|
13
26
|
}
|
|
14
27
|
.modal-background {
|
|
15
28
|
position: absolute;
|
|
@@ -25,19 +38,31 @@
|
|
|
25
38
|
position: absolute;
|
|
26
39
|
top: 0;
|
|
27
40
|
left: 0;
|
|
28
|
-
z-index:
|
|
41
|
+
z-index: 3;
|
|
29
42
|
width: 100%;
|
|
30
43
|
height: 100%;
|
|
31
44
|
display: flex;
|
|
32
45
|
align-items: center;
|
|
33
46
|
justify-content: center;
|
|
34
47
|
pointer-events: none;
|
|
48
|
+
@include mobile-tablet{
|
|
49
|
+
bottom: 0;
|
|
50
|
+
top:initial;
|
|
51
|
+
align-items: flex-end;
|
|
52
|
+
transition: all 0.5s 0s ease;
|
|
53
|
+
}
|
|
35
54
|
.modal-content{
|
|
36
55
|
pointer-events: all;
|
|
37
56
|
width: auto;
|
|
38
57
|
height: auto;
|
|
39
|
-
background-color: #fff;
|
|
58
|
+
background-color: var(--jb-modal-bg-color, #fff);
|
|
40
59
|
border-radius: 24px;
|
|
60
|
+
@include mobile-tablet{
|
|
61
|
+
width: 100%;
|
|
62
|
+
height: auto;
|
|
63
|
+
max-height: calc(100% - 80px);
|
|
64
|
+
min-height: 32px;
|
|
65
|
+
}
|
|
41
66
|
}
|
|
42
67
|
}
|
|
43
68
|
|