@fluid-topics/ft-modal 1.3.46 → 1.3.48
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/build/ft-modal.d.ts +1 -0
- package/build/ft-modal.js +9 -2
- package/build/ft-modal.light.js +157 -96
- package/build/ft-modal.min.js +148 -87
- package/build/ft-modal.styles.js +61 -1
- package/package.json +4 -4
package/build/ft-modal.styles.js
CHANGED
|
@@ -23,6 +23,27 @@ export const FtModalCssVariables = {
|
|
|
23
23
|
};
|
|
24
24
|
// language=CSS
|
|
25
25
|
export const ftmodalStyles = css `
|
|
26
|
+
|
|
27
|
+
@keyframes slide-in-from-right {
|
|
28
|
+
0% {
|
|
29
|
+
transform: translateX(100%);
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
100% {
|
|
33
|
+
transform: translateX(0%);
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
@keyframes fade-in {
|
|
38
|
+
0% {
|
|
39
|
+
opacity: 0;
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
100% {
|
|
43
|
+
opacity: ${FtModalCssVariables.overlayOpacity};
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
|
|
26
47
|
[part=container] {
|
|
27
48
|
display: contents;
|
|
28
49
|
}
|
|
@@ -37,6 +58,10 @@ export const ftmodalStyles = css `
|
|
|
37
58
|
}
|
|
38
59
|
|
|
39
60
|
[part=overlay] {
|
|
61
|
+
animation-duration: 0.1s;
|
|
62
|
+
animation-name: fade-in;
|
|
63
|
+
animation-timing-function: ease-in-out;
|
|
64
|
+
|
|
40
65
|
position: absolute;
|
|
41
66
|
inset: 0;
|
|
42
67
|
background-color: ${FtModalCssVariables.overlayBackgroundColor};
|
|
@@ -64,7 +89,6 @@ export const ftmodalStyles = css `
|
|
|
64
89
|
}
|
|
65
90
|
}
|
|
66
91
|
|
|
67
|
-
|
|
68
92
|
[part=header] {
|
|
69
93
|
padding: ${FtModalCssVariables.headerPadding};
|
|
70
94
|
display: flex;
|
|
@@ -76,6 +100,7 @@ export const ftmodalStyles = css `
|
|
|
76
100
|
color: ${FtModalCssVariables.headerColor};
|
|
77
101
|
background-color: ${FtModalCssVariables.headerBackgroundColor};
|
|
78
102
|
border-radius: ${FtModalCssVariables.borderRadius} ${FtModalCssVariables.borderRadius} 0px 0px;
|
|
103
|
+
flex-shrink: 0;
|
|
79
104
|
}
|
|
80
105
|
|
|
81
106
|
[part=heading] {
|
|
@@ -101,10 +126,12 @@ export const ftmodalStyles = css `
|
|
|
101
126
|
color: ${FtModalCssVariables.contentColor};
|
|
102
127
|
background-color: ${FtModalCssVariables.contentBackgroundColor};
|
|
103
128
|
border-radius: 0px 0px ${FtModalCssVariables.borderRadius} ${FtModalCssVariables.borderRadius};
|
|
129
|
+
overflow: auto;
|
|
104
130
|
}
|
|
105
131
|
|
|
106
132
|
[part=content] {
|
|
107
133
|
flex-grow: 1;
|
|
134
|
+
overflow: auto;
|
|
108
135
|
}
|
|
109
136
|
|
|
110
137
|
[part=actions] {
|
|
@@ -116,4 +143,37 @@ export const ftmodalStyles = css `
|
|
|
116
143
|
[part=closing-button] {
|
|
117
144
|
color: ${FtModalCssVariables.closingButtonColor};
|
|
118
145
|
}
|
|
146
|
+
|
|
147
|
+
@media (max-width: 768px) {
|
|
148
|
+
[part=header],
|
|
149
|
+
[part=body] {
|
|
150
|
+
border-radius: 0;
|
|
151
|
+
}
|
|
152
|
+
}
|
|
153
|
+
|
|
154
|
+
[part=inner-container].drawer {
|
|
155
|
+
top: 0;
|
|
156
|
+
right: 0;
|
|
157
|
+
bottom: 0;
|
|
158
|
+
margin-right: 0;
|
|
159
|
+
max-height: 100%;
|
|
160
|
+
|
|
161
|
+
animation-duration: 0.2s;
|
|
162
|
+
animation-name: slide-in-from-right;
|
|
163
|
+
animation-timing-function: cubic-bezier(.46,0,.31,.95);
|
|
164
|
+
|
|
165
|
+
@media (min-width: 768px) {
|
|
166
|
+
transform: none;
|
|
167
|
+
height: 100%;
|
|
168
|
+
}
|
|
169
|
+
}
|
|
170
|
+
|
|
171
|
+
.drawer [part=header],
|
|
172
|
+
.drawer [part=body] {
|
|
173
|
+
border-radius: 0;
|
|
174
|
+
}
|
|
175
|
+
|
|
176
|
+
.drawer [part=header] {
|
|
177
|
+
flex-direction: row-reverse;
|
|
178
|
+
}
|
|
119
179
|
`;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@fluid-topics/ft-modal",
|
|
3
|
-
"version": "1.3.
|
|
3
|
+
"version": "1.3.48",
|
|
4
4
|
"description": "Modal for Design System V2",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"Lit"
|
|
@@ -19,11 +19,11 @@
|
|
|
19
19
|
"url": "ssh://git@scm.mrs.antidot.net:2222/fluidtopics/ft-web-components.git"
|
|
20
20
|
},
|
|
21
21
|
"dependencies": {
|
|
22
|
-
"@fluid-topics/ft-wc-utils": "1.3.
|
|
22
|
+
"@fluid-topics/ft-wc-utils": "1.3.48",
|
|
23
23
|
"lit": "3.1.0"
|
|
24
24
|
},
|
|
25
25
|
"devDependencies": {
|
|
26
|
-
"@fluid-topics/ft-wc-test-utils": "1.3.
|
|
26
|
+
"@fluid-topics/ft-wc-test-utils": "1.3.48"
|
|
27
27
|
},
|
|
28
|
-
"gitHead": "
|
|
28
|
+
"gitHead": "39b6d455dce42316360287db7fb6a16e0d3eeb93"
|
|
29
29
|
}
|