@blockquote-web-components/blockquote-dialog 1.4.2 → 1.4.4
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/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@blockquote-web-components/blockquote-dialog",
|
|
3
|
-
"version": "1.4.
|
|
3
|
+
"version": "1.4.4",
|
|
4
4
|
"description": "Webcomponent blockquote-dialog following open-wc recommendations",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"lit",
|
|
@@ -118,18 +118,18 @@
|
|
|
118
118
|
]
|
|
119
119
|
},
|
|
120
120
|
"dependencies": {
|
|
121
|
-
"@blockquote-web-components/blockquote-directive-ariaidref-slot": "^1.3.
|
|
121
|
+
"@blockquote-web-components/blockquote-directive-ariaidref-slot": "^1.3.4",
|
|
122
122
|
"@blockquote/frontend-utilities": "^1.1.0",
|
|
123
|
-
"lit": "^3.3.
|
|
123
|
+
"lit": "^3.3.1"
|
|
124
124
|
},
|
|
125
125
|
"devDependencies": {
|
|
126
|
-
"@blockquote-web-components/blockquote-base-common-dev-dependencies": "^1.12.
|
|
127
|
-
"@blockquote-web-components/blockquote-base-embedded-webview": "^1.13.
|
|
126
|
+
"@blockquote-web-components/blockquote-base-common-dev-dependencies": "^1.12.3",
|
|
127
|
+
"@blockquote-web-components/blockquote-base-embedded-webview": "^1.13.4",
|
|
128
128
|
"@blockquote-web-components/blockquote-foundations-sass": "^1.1.6"
|
|
129
129
|
},
|
|
130
130
|
"publishConfig": {
|
|
131
131
|
"access": "public"
|
|
132
132
|
},
|
|
133
133
|
"customElements": "custom-elements.json",
|
|
134
|
-
"gitHead": "
|
|
134
|
+
"gitHead": "13c87a3d8022cc2b9b46fcf2c0b5c3a719025070"
|
|
135
135
|
}
|
|
@@ -1,28 +1,31 @@
|
|
|
1
1
|
import {css} from 'lit';
|
|
2
2
|
|
|
3
3
|
export const styles = css`
|
|
4
|
-
/* Closed state of the dialog */
|
|
5
4
|
dialog {
|
|
6
5
|
opacity: 0;
|
|
7
6
|
transform: translateY(16%);
|
|
8
7
|
transition:
|
|
9
8
|
opacity 200ms ease-out,
|
|
10
|
-
transform 200ms ease-out
|
|
11
|
-
overlay 200ms ease-out allow-discrete,
|
|
12
|
-
display 200ms ease-out allow-discrete;
|
|
13
|
-
/* Equivalent to
|
|
14
|
-
transition: all 200ms allow-discrete; */
|
|
9
|
+
transform 200ms ease-out;
|
|
15
10
|
}
|
|
16
11
|
|
|
17
|
-
|
|
12
|
+
@supports (transition-behavior: allow-discrete) {
|
|
13
|
+
dialog {
|
|
14
|
+
transition:
|
|
15
|
+
opacity 200ms ease-out,
|
|
16
|
+
transform 200ms ease-out,
|
|
17
|
+
overlay 200ms ease-out allow-discrete,
|
|
18
|
+
display 200ms ease-out allow-discrete;
|
|
19
|
+
}
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
/* [open state] */
|
|
18
23
|
dialog[open] {
|
|
19
24
|
opacity: 1;
|
|
20
25
|
transform: translateY(0);
|
|
21
26
|
}
|
|
22
27
|
|
|
23
|
-
/* Before-open state
|
|
24
|
-
Needs to be after the previous dialog[open] rule to take effect,
|
|
25
|
-
as the specificity is the same */
|
|
28
|
+
/* Before - [open state] Needs to be after the previous dialog[open] rule to take effect, as the specificity is the same */
|
|
26
29
|
@starting-style {
|
|
27
30
|
dialog[open] {
|
|
28
31
|
opacity: 0;
|
|
@@ -33,23 +36,41 @@ export const styles = css`
|
|
|
33
36
|
/* Transition the :backdrop when the dialog modal is promoted to the top layer */
|
|
34
37
|
dialog::backdrop {
|
|
35
38
|
background-color: rgb(120, 120, 120, 0);
|
|
36
|
-
transition:
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
39
|
+
transition: background-color 190ms ease-in;
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
@supports (transition-behavior: allow-discrete) {
|
|
43
|
+
dialog::backdrop {
|
|
44
|
+
transition:
|
|
45
|
+
display 190ms ease-in allow-discrete,
|
|
46
|
+
overlay 190ms ease-in allow-discrete,
|
|
47
|
+
background-color 190ms ease-in;
|
|
48
|
+
}
|
|
42
49
|
}
|
|
43
50
|
|
|
44
51
|
dialog[open]::backdrop {
|
|
45
|
-
background-color: rgb(120, 120, 120, 0.
|
|
52
|
+
background-color: rgb(120, 120, 120, 0.2);
|
|
46
53
|
}
|
|
47
54
|
|
|
48
|
-
/* This starting-style rule cannot be nested inside the above selector
|
|
49
|
-
because the nesting selector cannot represent pseudo-elements. */
|
|
50
55
|
@starting-style {
|
|
51
56
|
dialog[open]::backdrop {
|
|
52
57
|
background-color: rgb(120, 120, 120, 0);
|
|
53
58
|
}
|
|
54
59
|
}
|
|
60
|
+
|
|
61
|
+
@media (prefers-reduced-motion: reduce) {
|
|
62
|
+
dialog {
|
|
63
|
+
transition: none !important;
|
|
64
|
+
transform: none !important;
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
dialog[open] {
|
|
68
|
+
transform: none !important;
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
dialog::backdrop,
|
|
72
|
+
dialog[open]::backdrop {
|
|
73
|
+
transition: none !important;
|
|
74
|
+
}
|
|
75
|
+
}
|
|
55
76
|
`;
|
|
@@ -11,16 +11,12 @@ export const styles = css`
|
|
|
11
11
|
box-sizing: border-box;
|
|
12
12
|
display: contents;
|
|
13
13
|
background-color: var(--_background-color);
|
|
14
|
-
margin: auto;
|
|
15
|
-
|
|
16
|
-
max-
|
|
17
|
-
|
|
18
|
-
min-
|
|
19
|
-
|
|
20
|
-
height: -moz-fit-content;
|
|
21
|
-
height: fit-content;
|
|
22
|
-
width: -moz-fit-content;
|
|
23
|
-
width: fit-content;
|
|
14
|
+
margin-block: auto;
|
|
15
|
+
margin-inline: auto;
|
|
16
|
+
max-block-size: var(--_max-height);
|
|
17
|
+
max-inline-size: var(--_max-width);
|
|
18
|
+
min-block-size: var(--_min-height);
|
|
19
|
+
min-inline-size: var(--_min-width);
|
|
24
20
|
}
|
|
25
21
|
|
|
26
22
|
:host([hidden]),
|
|
@@ -35,33 +31,35 @@ export const styles = css`
|
|
|
35
31
|
}
|
|
36
32
|
|
|
37
33
|
dialog {
|
|
34
|
+
inset: 0;
|
|
38
35
|
background: inherit;
|
|
39
36
|
border: none;
|
|
40
37
|
border-radius: inherit;
|
|
41
|
-
|
|
42
|
-
margin: inherit;
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
min-height: inherit;
|
|
48
|
-
min-width: inherit;
|
|
38
|
+
margin-block: inherit;
|
|
39
|
+
margin-inline: inherit;
|
|
40
|
+
max-block-size: inherit;
|
|
41
|
+
max-inline-size: inherit;
|
|
42
|
+
min-block-size: inherit;
|
|
43
|
+
min-inline-size: inherit;
|
|
49
44
|
outline: none;
|
|
50
45
|
overflow: visible;
|
|
51
46
|
padding: 0;
|
|
52
47
|
}
|
|
53
48
|
|
|
54
|
-
|
|
49
|
+
dialog[open],
|
|
50
|
+
.scroller,
|
|
51
|
+
.content {
|
|
55
52
|
display: flex;
|
|
53
|
+
flex-direction: column;
|
|
56
54
|
}
|
|
57
55
|
|
|
58
56
|
.scroller {
|
|
59
57
|
overflow-y: auto;
|
|
60
|
-
|
|
58
|
+
overflow-block: auto;
|
|
61
59
|
}
|
|
62
60
|
|
|
63
61
|
.content {
|
|
64
|
-
padding: var(--_padding);
|
|
65
|
-
|
|
62
|
+
padding-block: var(--_padding);
|
|
63
|
+
padding-inline: var(--_padding);
|
|
66
64
|
}
|
|
67
65
|
`;
|