@glasshome/widget-sdk 1.20.0 → 1.21.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/guide/widgets.md CHANGED
@@ -57,6 +57,7 @@ Render `<WidgetDialog>` next to `<Widget>`, spreading the dialog parts (`Respons
57
57
 
58
58
  - No hand-rolling what the SDK has: sliders, steppers, dialogs, sheets, hold gestures, loading/error states.
59
59
  - Theme vars only (`--foreground`, `--muted-foreground`, `--card`, `--primary`, `--border`, `--success`, `--warning`, `--destructive`, `--radius`). Never declare them on `:host`; no own colour/radius tokens; no `--color-*`.
60
+ - Material: a part you draw follows the home's material through `--material-*` (`--material-accent`, `--material-face`, `--material-well`, `--material-raised`, `--material-pressed`, `--material-control-track|fill|knob`, `--material-blur`, `--material-clarity`, `--material-tint`, `--material-glow`) and its own color through `--surface-tone`, `--surface-wash`. `useMaterial()` to decide (`terms.face`, `terms.glow`), never to paint. Never read `--glass-*` or `--_*`; the build warns, and names the retired `--material-*` ones.
60
61
  - Own CSS = layout and bespoke art. No custom panel/row/chip/button chrome.
61
62
  - Tailwind classes literal in source, never concatenated. `dark:` works; `isDark()` for the boolean.
62
63
  - No dot status lamps. No thin vertical bars (read as a text caret). No all-caps. Separator ` · `.
@@ -71,4 +72,4 @@ Render `<WidgetDialog>` next to `<Widget>`, spreading the dialog parts (`Respons
71
72
 
72
73
  ## More
73
74
 
74
- Docs as markdown: https://glasshome.app/llms.txt, `https://glasshome.app/md/widgets/<page>` (`widget-sheets`, `widget-styling`, `widget-sdk`, `widget-api-reference`, `widget-capabilities`, `widget-previews`). Official widgets as worked examples: https://github.com/glasshome/widgets (`src/button`, `src/sensor`); where they differ from this guide, the guide wins.
75
+ Docs as markdown: https://glasshome.app/llms.txt, `https://glasshome.app/md/widgets/<page>` (`widget-sheets`, `widget-styling`, `widget-sdk`, `widget-sdk/materials`, `widget-api-reference`, `widget-capabilities`, `widget-previews`). Official widgets as worked examples: https://github.com/glasshome/widgets (`src/button`, `src/sensor`); where they differ from this guide, the guide wins.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@glasshome/widget-sdk",
3
- "version": "1.20.0",
3
+ "version": "1.21.0",
4
4
  "description": "SDK for building GlassHome dashboard widgets with SolidJS",
5
5
  "keywords": [
6
6
  "dashboard",
@@ -85,7 +85,7 @@
85
85
  "zod": "^4.1.13"
86
86
  },
87
87
  "devDependencies": {
88
- "@glasshome/ui": "1.21.1",
88
+ "@glasshome/ui": "1.25.0",
89
89
  "@solidjs/testing-library": "^0.8.10",
90
90
  "@types/bun": "^1.4.0",
91
91
  "@types/node": "^25.2.2",
@@ -100,7 +100,7 @@
100
100
  },
101
101
  "peerDependencies": {
102
102
  "@glasshome/sync-layer": "0.9.1",
103
- "@glasshome/ui": "1.21.1",
103
+ "@glasshome/ui": "1.25.0",
104
104
  "solid-js": "^1.9.11"
105
105
  },
106
106
  "engines": {