@lemonadejs/modal 2.3.3 → 2.3.5
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 +118 -118
- package/dist/index.d.ts +73 -65
- package/dist/index.js +490 -413
- package/dist/style.css +124 -120
- package/package.json +21 -21
package/dist/style.css
CHANGED
|
@@ -1,121 +1,125 @@
|
|
|
1
|
-
.lm-modal {
|
|
2
|
-
position: absolute;
|
|
3
|
-
min-width: 300px;
|
|
4
|
-
min-height: 240px;
|
|
5
|
-
border-radius: 5px;
|
|
6
|
-
z-index:
|
|
7
|
-
background-color: #fff;
|
|
8
|
-
box-sizing: border-box;
|
|
9
|
-
box-shadow:
|
|
10
|
-
opacity: 1;
|
|
11
|
-
transition: opacity 0.5s ease;
|
|
12
|
-
will-change: transform;
|
|
13
|
-
border: 1px solid #
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
}
|
|
34
|
-
|
|
35
|
-
.lm-modal
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
}
|
|
48
|
-
|
|
49
|
-
.lm-modal-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
}
|
|
93
|
-
|
|
94
|
-
.lm-modal[
|
|
95
|
-
display: none
|
|
96
|
-
}
|
|
97
|
-
|
|
98
|
-
.lm-modal[
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
}
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
1
|
+
.lm-modal {
|
|
2
|
+
position: absolute;
|
|
3
|
+
min-width: 300px;
|
|
4
|
+
min-height: 240px;
|
|
5
|
+
border-radius: 5px;
|
|
6
|
+
z-index: 15;
|
|
7
|
+
background-color: #fff;
|
|
8
|
+
box-sizing: border-box;
|
|
9
|
+
box-shadow: 0 0 12px rgb(0 0 0 / 22%);
|
|
10
|
+
opacity: 1;
|
|
11
|
+
transition: opacity 0.5s ease;
|
|
12
|
+
will-change: transform;
|
|
13
|
+
border: 1px solid #bbb;
|
|
14
|
+
outline: none;
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
.lm-modal[center] {
|
|
18
|
+
position: fixed;
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
.lm-modal-backdrop {
|
|
22
|
+
position: fixed;
|
|
23
|
+
top: 0;
|
|
24
|
+
left: 0;
|
|
25
|
+
width: 100vw;
|
|
26
|
+
height: 100vh;
|
|
27
|
+
background-color: #00000020;
|
|
28
|
+
z-index: 999;
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
.lm-modal-layers:focus {
|
|
32
|
+
z-index: 999;
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
.lm-modal-animation {
|
|
36
|
+
transform: none;
|
|
37
|
+
animation: slide-bottom-in 0.4s forwards;
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
.lm-modal[data-responsive].fullscreen {
|
|
41
|
+
top: 0;
|
|
42
|
+
height: 100% !important;
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
.lm-modal.moving {
|
|
46
|
+
cursor: move !important;
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
.lm-modal-picker {
|
|
50
|
+
width: 100% !important;
|
|
51
|
+
height: 260px !important;
|
|
52
|
+
left: 0;
|
|
53
|
+
bottom: 0;
|
|
54
|
+
border: 0;
|
|
55
|
+
border-radius: 0;
|
|
56
|
+
transform: none;
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
.lm-modal[title]::before {
|
|
60
|
+
content: attr(title);
|
|
61
|
+
display: block;
|
|
62
|
+
position: relative;
|
|
63
|
+
width: 100%;
|
|
64
|
+
border-bottom: 1px solid #e9e9e9;
|
|
65
|
+
padding: 10px;
|
|
66
|
+
box-sizing: border-box;
|
|
67
|
+
font-size: 1.2em;
|
|
68
|
+
line-height: 24px;
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
.lm-modal::after {
|
|
72
|
+
font-family: 'Material Icons';
|
|
73
|
+
cursor: pointer;
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
.lm-modal[closable="true"]::after {
|
|
77
|
+
content: 'close';
|
|
78
|
+
display: block;
|
|
79
|
+
position: absolute;
|
|
80
|
+
top: 10px;
|
|
81
|
+
right: 10px;
|
|
82
|
+
font-size: 24px;
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
.lm-modal[minimizable="true"]::after {
|
|
86
|
+
content: '\2500';
|
|
87
|
+
display: block;
|
|
88
|
+
position: absolute;
|
|
89
|
+
top: 10px;
|
|
90
|
+
right: 10px;
|
|
91
|
+
font-size: 24px;
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
.lm-modal[title=""]::before {
|
|
95
|
+
display: none;
|
|
96
|
+
}
|
|
97
|
+
|
|
98
|
+
.lm-modal[closed="true"] {
|
|
99
|
+
display: none !important;
|
|
100
|
+
}
|
|
101
|
+
|
|
102
|
+
.lm-modal[minimized="true"] {
|
|
103
|
+
bottom: 0;
|
|
104
|
+
top: initial !important;
|
|
105
|
+
left: initial !important;
|
|
106
|
+
width: 200px !important;
|
|
107
|
+
height: 45px !important;
|
|
108
|
+
min-width: initial;
|
|
109
|
+
min-height: initial;
|
|
110
|
+
overflow: hidden;
|
|
111
|
+
transition: margin 0.2s ease-in-out;
|
|
112
|
+
}
|
|
113
|
+
|
|
114
|
+
.lm-modal[minimized="true"]::after {
|
|
115
|
+
content: 'open_in_full';
|
|
116
|
+
}
|
|
117
|
+
|
|
118
|
+
@keyframes slide-bottom-in {
|
|
119
|
+
0% { transform: translateY(100%); }
|
|
120
|
+
100% { transform: translateY(0%); }
|
|
121
|
+
}
|
|
122
|
+
|
|
123
|
+
.lm-modal.hide {
|
|
124
|
+
opacity: 0;
|
|
121
125
|
}
|
package/package.json
CHANGED
|
@@ -1,21 +1,21 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "@lemonadejs/modal",
|
|
3
|
-
"title": "JavaScript Modal",
|
|
4
|
-
"description": "LemonadeJS modal is a JavaScript component to create floating modals.",
|
|
5
|
-
"author": {
|
|
6
|
-
"name": "Contact <contact@lemonadejs.net>",
|
|
7
|
-
"url": "https://lemonadejs.net"
|
|
8
|
-
},
|
|
9
|
-
"keywords": [
|
|
10
|
-
"javascript modal",
|
|
11
|
-
"lemonadejs modal",
|
|
12
|
-
"js modal",
|
|
13
|
-
"modal js"
|
|
14
|
-
],
|
|
15
|
-
"dependencies": {
|
|
16
|
-
"lemonadejs": "^3.4.0"
|
|
17
|
-
},
|
|
18
|
-
"main": "dist/index.js",
|
|
19
|
-
"types": "dist/index.d.ts",
|
|
20
|
-
"version": "2.3.
|
|
21
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"name": "@lemonadejs/modal",
|
|
3
|
+
"title": "JavaScript Modal",
|
|
4
|
+
"description": "LemonadeJS modal is a JavaScript component to create floating modals.",
|
|
5
|
+
"author": {
|
|
6
|
+
"name": "Contact <contact@lemonadejs.net>",
|
|
7
|
+
"url": "https://lemonadejs.net"
|
|
8
|
+
},
|
|
9
|
+
"keywords": [
|
|
10
|
+
"javascript modal",
|
|
11
|
+
"lemonadejs modal",
|
|
12
|
+
"js modal",
|
|
13
|
+
"modal js"
|
|
14
|
+
],
|
|
15
|
+
"dependencies": {
|
|
16
|
+
"lemonadejs": "^3.4.0"
|
|
17
|
+
},
|
|
18
|
+
"main": "dist/index.js",
|
|
19
|
+
"types": "dist/index.d.ts",
|
|
20
|
+
"version": "2.3.5"
|
|
21
|
+
}
|