@blockle/blocks-theme-momotaro 1.0.4 → 1.0.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.
|
@@ -17,17 +17,25 @@ const popover = blocksCore.makeComponentTheme("popover", {
|
|
|
17
17
|
{
|
|
18
18
|
width: "max-content",
|
|
19
19
|
selectors: {
|
|
20
|
-
"
|
|
21
|
-
transform: "scale(1)",
|
|
22
|
-
opacity: 1
|
|
20
|
+
"&:popover-open": {
|
|
21
|
+
transform: "translateY(0) scale(1)",
|
|
22
|
+
opacity: 1,
|
|
23
|
+
// @ts-expect-error - Vanilla Extract does not support @starting-style (yet)
|
|
24
|
+
"@starting-style": {
|
|
25
|
+
transform: "translateY(12px) scale(0.8)",
|
|
26
|
+
opacity: 0
|
|
27
|
+
}
|
|
23
28
|
}
|
|
24
29
|
},
|
|
25
30
|
// Apply the animation only if the user has not requested reduced motion
|
|
26
31
|
"@media": {
|
|
27
32
|
"(prefers-reduced-motion: no-preference)": {
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
opacity: 0
|
|
33
|
+
// Ending style
|
|
34
|
+
transform: "translateY(12px) scale(0.8)",
|
|
35
|
+
opacity: 0,
|
|
36
|
+
transitionBehavior: "allow-discrete",
|
|
37
|
+
transitionProperty: "opacity, transform, overlay, display",
|
|
38
|
+
transitionDuration: "100ms"
|
|
31
39
|
}
|
|
32
40
|
}
|
|
33
41
|
}
|
|
@@ -15,17 +15,25 @@ const popover = makeComponentTheme("popover", {
|
|
|
15
15
|
{
|
|
16
16
|
width: "max-content",
|
|
17
17
|
selectors: {
|
|
18
|
-
"
|
|
19
|
-
transform: "scale(1)",
|
|
20
|
-
opacity: 1
|
|
18
|
+
"&:popover-open": {
|
|
19
|
+
transform: "translateY(0) scale(1)",
|
|
20
|
+
opacity: 1,
|
|
21
|
+
// @ts-expect-error - Vanilla Extract does not support @starting-style (yet)
|
|
22
|
+
"@starting-style": {
|
|
23
|
+
transform: "translateY(12px) scale(0.8)",
|
|
24
|
+
opacity: 0
|
|
25
|
+
}
|
|
21
26
|
}
|
|
22
27
|
},
|
|
23
28
|
// Apply the animation only if the user has not requested reduced motion
|
|
24
29
|
"@media": {
|
|
25
30
|
"(prefers-reduced-motion: no-preference)": {
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
opacity: 0
|
|
31
|
+
// Ending style
|
|
32
|
+
transform: "translateY(12px) scale(0.8)",
|
|
33
|
+
opacity: 0,
|
|
34
|
+
transitionBehavior: "allow-discrete",
|
|
35
|
+
transitionProperty: "opacity, transform, overlay, display",
|
|
36
|
+
transitionDuration: "100ms"
|
|
29
37
|
}
|
|
30
38
|
}
|
|
31
39
|
}
|
|
@@ -6,7 +6,6 @@ const css = require("@vanilla-extract/css");
|
|
|
6
6
|
fileScope.setFileScope("src/components/tooltip.css.ts", "@blockle/blocks-theme-momotaro");
|
|
7
7
|
const tooltip = blocksCore.makeComponentTheme("tooltip", {
|
|
8
8
|
base: blocksCore.atoms({
|
|
9
|
-
backgroundColor: "primary",
|
|
10
9
|
padding: "small"
|
|
11
10
|
}),
|
|
12
11
|
variants: {
|