@blockle/blocks-theme-momotaro 7.3.0 → 7.3.2

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 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/components/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,sBAAsB,CAAC;AA6BlE,eAAO,MAAM,UAAU,EAAE,qBA2BxB,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/components/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,sBAAsB,CAAC;AAkClE,eAAO,MAAM,UAAU,EAAE,qBA2BxB,CAAC"}
@@ -12,7 +12,7 @@ const link = makeComponentTheme("link", {
12
12
  border: "none",
13
13
  textDecoration: "none",
14
14
  background: "transparent",
15
- borderRadius: 1,
15
+ borderRadius: vars.borderRadius[1],
16
16
  ":hover": {
17
17
  textDecoration: "underline"
18
18
  },
@@ -1 +1 @@
1
- {"version":3,"file":"switch.css.d.ts","sourceRoot":"","sources":["../../src/components/switch.css.ts"],"names":[],"mappings":"AAAA,OAAO,EAGL,KAAK,qBAAqB,EAE3B,MAAM,sBAAsB,CAAC;AAO9B,eAAO,MAAM,WAAW,EAAE,qBAAqB,CAAC,QAAQ,CA6DvD,CAAC"}
1
+ {"version":3,"file":"switch.css.d.ts","sourceRoot":"","sources":["../../src/components/switch.css.ts"],"names":[],"mappings":"AAAA,OAAO,EAGL,KAAK,qBAAqB,EAE3B,MAAM,sBAAsB,CAAC;AAO9B,eAAO,MAAM,WAAW,EAAE,qBAAqB,CAAC,QAAQ,CA8DvD,CAAC"}
@@ -21,7 +21,7 @@ const switchTheme = makeComponentTheme(
21
21
  }
22
22
  },
23
23
  selectors: {
24
- '&[data-checked="true"]': {
24
+ "&:has(input:checked)": {
25
25
  backgroundColor: vars.colorRole.secondary.solid
26
26
  }
27
27
  },
@@ -52,7 +52,8 @@ const switchTheme = makeComponentTheme(
52
52
  // Deliberately fixed: the thumb is white in every mode
53
53
  backgroundColor: vars.color.white,
54
54
  selectors: {
55
- '&[data-checked="true"]': {
55
+ // The thumb follows the input, so it reads the input's own state
56
+ "input:checked ~ &": {
56
57
  transform: `translateX(20px) scale(${activeScaleFactor})`
57
58
  }
58
59
  },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@blockle/blocks-theme-momotaro",
3
- "version": "7.3.0",
3
+ "version": "7.3.2",
4
4
  "description": "Momotaro theme for Blocks",
5
5
  "type": "module",
6
6
  "sideEffects": false,
@@ -34,7 +34,7 @@
34
34
  "@vanilla-extract/css": "^1.18.0"
35
35
  },
36
36
  "peerDependencies": {
37
- "@blockle/blocks-core": ">=3.3.x",
37
+ "@blockle/blocks-core": ">=3.4.x",
38
38
  "@vanilla-extract/css": "^1.18.0"
39
39
  },
40
40
  "publishConfig": {