@blockle/blocks-theme-momotaro 1.0.4 → 1.0.6

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.
@@ -1,4 +1,4 @@
1
- export declare const focusRingColor: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
1
+ export declare const focusRingColor: `var(--${string})`;
2
2
  /**
3
3
  * NOTE: When the original element has a transition, make sure to include
4
4
  * `box-shadow ${vars.transition.fast}` in the transition property for the
@@ -17,17 +17,25 @@ const popover = blocksCore.makeComponentTheme("popover", {
17
17
  {
18
18
  width: "max-content",
19
19
  selectors: {
20
- "&[data-open]": {
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
- transform: "scale(0.95)",
29
- transition: "opacity 80ms linear, transform 80ms",
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
- "&[data-open]": {
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
- transform: "scale(0.95)",
27
- transition: "opacity 80ms linear, transform 80ms",
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
  }
@@ -42,7 +42,7 @@ const select = blocksCore.makeComponentTheme("select", {
42
42
  solid: css.style({})
43
43
  }
44
44
  },
45
- icon: css.style({
45
+ icon: blocksCore.atoms({
46
46
  paddingInline: "large"
47
47
  }),
48
48
  defaultVariants: {
@@ -40,7 +40,7 @@ const select = makeComponentTheme("select", {
40
40
  solid: style({})
41
41
  }
42
42
  },
43
- icon: style({
43
+ icon: atoms({
44
44
  paddingInline: "large"
45
45
  }),
46
46
  defaultVariants: {
@@ -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: {
@@ -4,7 +4,6 @@ import { style } from "@vanilla-extract/css";
4
4
  setFileScope("src/components/tooltip.css.ts", "@blockle/blocks-theme-momotaro");
5
5
  const tooltip = makeComponentTheme("tooltip", {
6
6
  base: atoms({
7
- backgroundColor: "primary",
8
7
  padding: "small"
9
8
  }),
10
9
  variants: {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@blockle/blocks-theme-momotaro",
3
- "version": "1.0.4",
3
+ "version": "1.0.6",
4
4
  "description": "Momotaro theme for Blocks",
5
5
  "type": "module",
6
6
  "sideEffects": false,