@fluid-topics/ft-modal 1.3.54 → 1.3.56
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 -1
- package/build/ft-modal.js +13 -16
- package/build/ft-modal.light.js +125 -159
- package/build/ft-modal.min.js +147 -181
- package/build/ft-modal.styles.d.ts +1 -0
- package/build/ft-modal.styles.js +4 -38
- package/package.json +4 -4
|
@@ -18,5 +18,6 @@ export declare const FtModalCssVariables: {
|
|
|
18
18
|
overlayBackgroundColor: import("@fluid-topics/ft-wc-utils").FtCssVariable;
|
|
19
19
|
overlayOpacity: import("@fluid-topics/ft-wc-utils").FtCssVariable;
|
|
20
20
|
closingButtonColor: import("@fluid-topics/ft-wc-utils").FtCssVariable;
|
|
21
|
+
contentOverflow: import("@fluid-topics/ft-wc-utils").FtCssVariable;
|
|
21
22
|
};
|
|
22
23
|
export declare const ftmodalStyles: import("lit").CSSResult;
|
package/build/ft-modal.styles.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { css } from "lit";
|
|
2
|
-
import { designSystemVariables, FtCssVariableFactory } from "@fluid-topics/ft-wc-utils";
|
|
2
|
+
import { designSystemVariables, FtCssVariableFactory, } from "@fluid-topics/ft-wc-utils";
|
|
3
3
|
export const FtModalCssVariables = {
|
|
4
4
|
shadow: FtCssVariableFactory.extend("--ft-modal-shadow", "", designSystemVariables.elevation03),
|
|
5
5
|
borderRadius: FtCssVariableFactory.extend("--ft-modal-border-radius", "", designSystemVariables.borderRadiusM),
|
|
@@ -20,20 +20,11 @@ export const FtModalCssVariables = {
|
|
|
20
20
|
overlayBackgroundColor: FtCssVariableFactory.create("--ft-modal-overlay-background-color", "", "COLOR", "rgb(10, 10, 13)"),
|
|
21
21
|
overlayOpacity: FtCssVariableFactory.create("--ft-modal-overlay-opacity", "", "NUMBER", "0.4"),
|
|
22
22
|
closingButtonColor: FtCssVariableFactory.extend("--ft-modal-closing-button-color", "", designSystemVariables.colorOnSurfaceMedium),
|
|
23
|
+
contentOverflow: FtCssVariableFactory.create("--ft-modal-content-overflow", "", "UNKNOWN", "visible"),
|
|
23
24
|
};
|
|
24
25
|
// language=CSS
|
|
25
26
|
export const ftmodalStyles = css `
|
|
26
27
|
|
|
27
|
-
@keyframes slide-in-from-right {
|
|
28
|
-
0% {
|
|
29
|
-
transform: translateX(100%);
|
|
30
|
-
}
|
|
31
|
-
|
|
32
|
-
100% {
|
|
33
|
-
transform: translateX(0%);
|
|
34
|
-
}
|
|
35
|
-
}
|
|
36
|
-
|
|
37
28
|
@keyframes fade-in {
|
|
38
29
|
0% {
|
|
39
30
|
opacity: 0;
|
|
@@ -127,12 +118,12 @@ export const ftmodalStyles = css `
|
|
|
127
118
|
color: ${FtModalCssVariables.contentColor};
|
|
128
119
|
background-color: ${FtModalCssVariables.contentBackgroundColor};
|
|
129
120
|
border-radius: 0px 0px ${FtModalCssVariables.borderRadius} ${FtModalCssVariables.borderRadius};
|
|
130
|
-
overflow:
|
|
121
|
+
overflow: ${FtModalCssVariables.contentOverflow};
|
|
131
122
|
}
|
|
132
123
|
|
|
133
124
|
[part=content] {
|
|
134
125
|
flex-grow: 1;
|
|
135
|
-
overflow:
|
|
126
|
+
overflow: ${FtModalCssVariables.contentOverflow};
|
|
136
127
|
}
|
|
137
128
|
|
|
138
129
|
[part=actions] {
|
|
@@ -152,29 +143,4 @@ export const ftmodalStyles = css `
|
|
|
152
143
|
}
|
|
153
144
|
}
|
|
154
145
|
|
|
155
|
-
[part=inner-container].drawer {
|
|
156
|
-
top: 0;
|
|
157
|
-
right: 0;
|
|
158
|
-
bottom: 0;
|
|
159
|
-
margin-right: 0;
|
|
160
|
-
max-height: 100%;
|
|
161
|
-
|
|
162
|
-
animation-duration: 0.2s;
|
|
163
|
-
animation-name: slide-in-from-right;
|
|
164
|
-
animation-timing-function: cubic-bezier(.46,0,.31,.95);
|
|
165
|
-
|
|
166
|
-
@media (min-width: 768px) {
|
|
167
|
-
transform: none;
|
|
168
|
-
height: 100%;
|
|
169
|
-
}
|
|
170
|
-
}
|
|
171
|
-
|
|
172
|
-
.drawer [part=header],
|
|
173
|
-
.drawer [part=body] {
|
|
174
|
-
border-radius: 0;
|
|
175
|
-
}
|
|
176
|
-
|
|
177
|
-
.drawer [part=header] {
|
|
178
|
-
flex-direction: row-reverse;
|
|
179
|
-
}
|
|
180
146
|
`;
|
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.56",
|
|
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.56",
|
|
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.56"
|
|
27
27
|
},
|
|
28
|
-
"gitHead": "
|
|
28
|
+
"gitHead": "01868f9694982c27cc22b788567208da17c855e2"
|
|
29
29
|
}
|