@fluid-topics/ft-modal 1.3.31 → 1.3.32
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 +6 -3
- package/build/ft-modal.js +36 -10
- package/build/ft-modal.light.js +146 -140
- package/build/ft-modal.min.js +160 -154
- package/build/ft-modal.styles.js +16 -8
- package/package.json +4 -4
package/build/ft-modal.styles.js
CHANGED
|
@@ -1,27 +1,31 @@
|
|
|
1
1
|
import { css } from "lit";
|
|
2
2
|
import { designSystemVariables, FtCssVariableFactory } from "@fluid-topics/ft-wc-utils";
|
|
3
3
|
export const FtModalCssVariables = {
|
|
4
|
-
shadow: FtCssVariableFactory.
|
|
4
|
+
shadow: FtCssVariableFactory.extend("--ft-modal-shadow", "", designSystemVariables.elevation03),
|
|
5
5
|
borderRadius: FtCssVariableFactory.extend("--ft-modal-border-radius", "", designSystemVariables.borderRadiusM),
|
|
6
6
|
width: FtCssVariableFactory.create("--ft-modal-width", "", "SIZE", "800px"),
|
|
7
|
-
headerPadding: FtCssVariableFactory.create("--ft-modal-header-padding", "", "SIZE", "8px"),
|
|
7
|
+
headerPadding: FtCssVariableFactory.create("--ft-modal-header-padding", "", "SIZE", "8px 16px"),
|
|
8
8
|
headerGap: FtCssVariableFactory.create("--ft-modal-header-gap", "", "SIZE", "8px"),
|
|
9
9
|
headerBorderColor: FtCssVariableFactory.extend("--ft-modal-header-border-color", "", designSystemVariables.colorOutline),
|
|
10
10
|
headerBorderWidth: FtCssVariableFactory.create("--ft-modal-header-border-width", "", "SIZE", "1px"),
|
|
11
|
-
headerBackgroundColor: FtCssVariableFactory.
|
|
11
|
+
headerBackgroundColor: FtCssVariableFactory.extend("--ft-modal-header-background-color", "", designSystemVariables.colorSurface),
|
|
12
12
|
headerColor: FtCssVariableFactory.extend("--ft-modal-header-color", "", designSystemVariables.colorOnSurfaceHigh),
|
|
13
13
|
headerIconColor: FtCssVariableFactory.extend("--ft-modal-header-icon-color", "", designSystemVariables.colorOnSurfaceHigh),
|
|
14
14
|
contentMargin: FtCssVariableFactory.create("--ft-modal-content-margin", "", "SIZE", "16px"),
|
|
15
15
|
contentPadding: FtCssVariableFactory.create("--ft-modal-content-padding", "", "SIZE", "16px"),
|
|
16
16
|
contentGap: FtCssVariableFactory.create("--ft-modal-content-gap", "", "SIZE", "16px"),
|
|
17
17
|
contentBackgroundColor: FtCssVariableFactory.extend("--ft-modal-content-background-color", "", designSystemVariables.colorSurface),
|
|
18
|
-
contentColor: FtCssVariableFactory.extend("--ft-modal-content-color", "", designSystemVariables.
|
|
18
|
+
contentColor: FtCssVariableFactory.extend("--ft-modal-content-color", "", designSystemVariables.colorOnSurfaceMedium),
|
|
19
19
|
actionsGap: FtCssVariableFactory.create("--ft-modal-action-gap", "", "SIZE", "8px"),
|
|
20
20
|
overlayBackgroundColor: FtCssVariableFactory.create("--ft-modal-overlay-background-color", "", "COLOR", "rgba(10, 10, 13, 0.4)"),
|
|
21
21
|
closingButtonColor: FtCssVariableFactory.extend("--ft-modal-closing-button-color", "", designSystemVariables.colorOnSurfaceMedium),
|
|
22
22
|
};
|
|
23
23
|
// language=CSS
|
|
24
24
|
export const ftmodalStyles = css `
|
|
25
|
+
[part=container] {
|
|
26
|
+
display: contents;
|
|
27
|
+
}
|
|
28
|
+
|
|
25
29
|
[part=dialog] {
|
|
26
30
|
width: 100%;
|
|
27
31
|
height: 100%;
|
|
@@ -43,6 +47,9 @@ export const ftmodalStyles = css `
|
|
|
43
47
|
background-color: ${FtModalCssVariables.contentBackgroundColor};
|
|
44
48
|
display: flex;
|
|
45
49
|
flex-direction: column;
|
|
50
|
+
overflow: hidden;
|
|
51
|
+
max-height: 100%;
|
|
52
|
+
max-width: 100%;
|
|
46
53
|
|
|
47
54
|
@media (min-width: 768px) {
|
|
48
55
|
top: 50%;
|
|
@@ -52,10 +59,9 @@ export const ftmodalStyles = css `
|
|
|
52
59
|
border-radius: ${FtModalCssVariables.borderRadius};
|
|
53
60
|
overflow: hidden;
|
|
54
61
|
width: ${FtModalCssVariables.width};
|
|
55
|
-
margin: auto
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
);
|
|
62
|
+
margin: auto;
|
|
63
|
+
max-height: calc(100% - 24px);
|
|
64
|
+
max-width: calc(100% - 24px);
|
|
59
65
|
}
|
|
60
66
|
}
|
|
61
67
|
|
|
@@ -85,7 +91,9 @@ export const ftmodalStyles = css `
|
|
|
85
91
|
}
|
|
86
92
|
|
|
87
93
|
[part=body] {
|
|
94
|
+
flex-shrink: 1;
|
|
88
95
|
flex-grow: 1;
|
|
96
|
+
overflow: auto;
|
|
89
97
|
padding: ${FtModalCssVariables.contentPadding};
|
|
90
98
|
display: flex;
|
|
91
99
|
flex-direction: column;
|
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.32",
|
|
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.32",
|
|
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.32"
|
|
27
27
|
},
|
|
28
|
-
"gitHead": "
|
|
28
|
+
"gitHead": "60fe73e7ae4d0815116abe89d2c4315cf454f626"
|
|
29
29
|
}
|