@matteoaliano/forest-ui 1.1.0 → 1.2.0

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/bin/sync.mjs CHANGED
@@ -11,7 +11,7 @@
11
11
  * skill source to the dogfood `.claude/skills/` copy and the plugin bundle.
12
12
  */
13
13
 
14
- import { mkdirSync, readdirSync, cpSync } from "node:fs";
14
+ import { mkdirSync, readdirSync, cpSync, readFileSync, writeFileSync } from "node:fs";
15
15
  import { resolve, dirname } from "node:path";
16
16
  import { fileURLToPath } from "node:url";
17
17
 
@@ -58,4 +58,18 @@ for (const target of targets) {
58
58
  }
59
59
  }
60
60
 
61
+ // Stamp the plugin version from package.json — the plugin's version is what
62
+ // Claude Code compares to surface "Update available", so it must move with
63
+ // every release that changes the bundled skill/hooks.
64
+ const pkgVersion = JSON.parse(
65
+ readFileSync(resolve(__dirname, "..", "package.json"), "utf-8")
66
+ ).version;
67
+ const pluginJsonPath = resolve(repoRoot, "plugins", "forest-ui", ".claude-plugin", "plugin.json");
68
+ const pluginJson = JSON.parse(readFileSync(pluginJsonPath, "utf-8"));
69
+ if (pluginJson.version !== pkgVersion) {
70
+ pluginJson.version = pkgVersion;
71
+ writeFileSync(pluginJsonPath, JSON.stringify(pluginJson, null, 2) + "\n");
72
+ console.log(` ✅ plugins/forest-ui/.claude-plugin/plugin.json → version ${pkgVersion}`);
73
+ }
74
+
61
75
  console.log(`\n Synced ${skillFolders.length} skill(s) to ${targets.length} target(s) (${synced} copies).\n`);
@@ -953,7 +953,19 @@ function buildComponents(tokens2) {
953
953
  root: {
954
954
  width: 44,
955
955
  height: 24,
956
- padding: 0
956
+ padding: 0,
957
+ // MUI's `size="small"` variant only half-applies here: the theme pins
958
+ // the track at the wide 44px medium geometry, but MUI still shrinks the
959
+ // thumb (16px), bumps switchBase padding (4px), and cuts the checked
960
+ // travel to 16px — leaving the thumb parked mid-track. Forest ships a
961
+ // single calibrated 24px switch, so neutralize `small` back to it.
962
+ "&.MuiSwitch-sizeSmall": {
963
+ "& .MuiSwitch-switchBase": {
964
+ padding: 2,
965
+ "&.Mui-checked": { transform: "translateX(20px)" }
966
+ },
967
+ "& .MuiSwitch-thumb": { width: 20, height: 20 }
968
+ }
957
969
  },
958
970
  switchBase: {
959
971
  padding: 2,
@@ -2051,8 +2063,11 @@ function buildComponents(tokens2) {
2051
2063
  }
2052
2064
  },
2053
2065
  staticTooltipLabel: {
2066
+ // Match MuiTooltip: inverted face (charcoal in light, near-white in
2067
+ // dark) with on-solid fg that inverts WITH it. text.white is
2068
+ // mode-invariant and vanished on the dark-mode light face.
2054
2069
  backgroundColor: bg4.primarySolid,
2055
- color: text4.white,
2070
+ color: buttonColors4.primary.fg,
2056
2071
  fontSize: 12,
2057
2072
  fontWeight: 600,
2058
2073
  borderRadius: radius4.md,
@@ -3973,4 +3988,4 @@ export {
3973
3988
  forestTheme,
3974
3989
  forestThemeOptions
3975
3990
  };
3976
- //# sourceMappingURL=chunk-XJYBU6LC.mjs.map
3991
+ //# sourceMappingURL=chunk-VIQ5IYUZ.mjs.map