@glasshome/ui 1.11.0 → 1.12.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/SPEC.md CHANGED
@@ -149,8 +149,10 @@ Motion is one system, not per-component flair. Four rules, all held by
149
149
  window after mount or a touch, then freezes mid-phase; an idle screen
150
150
  animates nothing. The host holds `html[data-motion="live"]` for the window
151
151
  (dash: `createMotionWindow`, 30 s); light-DOM loops gate on that attribute,
152
- widget shadow roots on the inherited `--motion-ambient` (1 live, else 0).
153
- A wrapper with `data-motion="still"` opts out: thumbnails are stills.
152
+ widget shadow roots on the inherited `--motion-ambient` (1 live, else 0)
153
+ or, for a loop that can only pause, `--motion-play` (`running` live, else
154
+ `paused`). A wrapper with `data-motion="still"` opts out: thumbnails are
155
+ stills.
154
156
 
155
157
  A new component with an open, pick or reveal state uses these doors before it
156
158
  gets any motion of its own; a motion need none of them covers is added to
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@glasshome/ui",
3
- "version": "1.11.0",
3
+ "version": "1.12.0",
4
4
  "description": "SolidJS component library for GlassHome, built on Kobalte",
5
5
  "type": "module",
6
6
  "homepage": "https://github.com/glasshome/ui#readme",
@@ -261,12 +261,15 @@
261
261
  --duration-expand: 200ms;
262
262
  /* Ambient motion is an event (SPEC motion rule 5): 1 while the host holds
263
263
  * html[data-motion="live"], else 0. Inherits into widget shadow roots, so a
264
- * loop multiplies its duration by it: calc(var(--motion-ambient, 0) * 1s). */
264
+ * loop multiplies its duration by it: calc(var(--motion-ambient, 0) * 1s).
265
+ * --motion-play is its keyword twin for a loop that can only pause. */
265
266
  --motion-ambient: 0;
267
+ --motion-play: paused;
266
268
  }
267
269
 
268
270
  html[data-motion="live"] {
269
271
  --motion-ambient: 1;
272
+ --motion-play: running;
270
273
  }
271
274
 
272
275
  .dark {