@glasshome/ui 1.35.4 → 1.37.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.
Files changed (40) hide show
  1. package/SPEC.md +11 -1
  2. package/dist/index.d.ts +2 -1
  3. package/dist/index.js +3 -3
  4. package/dist/lib/balance-rows.d.ts +7 -0
  5. package/dist/lib/dock-slot-classes.d.ts +1 -0
  6. package/dist/lib/hold.d.ts +33 -1
  7. package/dist/lib/motion-classes.d.ts +2 -0
  8. package/dist/solid/dock-edit.d.ts +28 -0
  9. package/dist/solid/dock-paging.d.ts +13 -0
  10. package/dist/solid/dock.d.ts +18 -1
  11. package/dist/solid/face-toggle.d.ts +17 -0
  12. package/dist/solid/glyph-tile.d.ts +18 -0
  13. package/dist/solid/icon-picker.d.ts +4 -0
  14. package/dist/solid/index.d.ts +8 -4
  15. package/dist/solid/index.js +5894 -5224
  16. package/dist/solid/media-store.d.ts +14 -3
  17. package/dist/solid/preview-tile.d.ts +14 -0
  18. package/dist/solid/slot-button.d.ts +9 -0
  19. package/dist/{utils-BhU5YZKh.js → utils-Duqv3Sgo.js} +680 -624
  20. package/package.json +1 -1
  21. package/src/index.ts +2 -1
  22. package/src/lib/balance-rows.ts +62 -0
  23. package/src/lib/dock-slot-classes.ts +4 -0
  24. package/src/lib/hold.ts +154 -3
  25. package/src/lib/motion-classes.ts +11 -0
  26. package/src/solid/dashboard-preview.tsx +21 -4
  27. package/src/solid/dock-edit.tsx +267 -0
  28. package/src/solid/dock-paging.ts +37 -0
  29. package/src/solid/dock.tsx +254 -73
  30. package/src/solid/face-toggle.tsx +93 -0
  31. package/src/solid/glyph-tile.tsx +77 -0
  32. package/src/solid/icon-picker.tsx +40 -21
  33. package/src/solid/image-picker.tsx +39 -15
  34. package/src/solid/index.ts +10 -3
  35. package/src/solid/media-store.ts +28 -8
  36. package/src/solid/preview-tile.tsx +75 -4
  37. package/src/solid/schema-form.tsx +4 -6
  38. package/src/solid/slot-button.tsx +45 -0
  39. package/src/solid/toggle-group.tsx +14 -6
  40. package/src/styles/theme.css +31 -0
@@ -82,6 +82,29 @@
82
82
  --animate-morph-out: morph-out calc(var(--duration-morph) / 2) var(--ease-contract) both;
83
83
  /* Unfilled once done, so the anchored panel's clip lets go and its shadow shows. */
84
84
  --animate-anchored-in: morph-in var(--duration-morph) var(--ease-morph) backwards;
85
+
86
+ /* A newcomer's glow: shown at once, gone by the end, nothing left behind. */
87
+ --animate-dock-arrive: dock-arrive var(--duration-arrive) var(--ease-emphasis) both;
88
+ /* Edit mode's sway: a loop that lasts exactly as long as the mode. */
89
+ --animate-dock-jiggle: dock-jiggle var(--duration-jiggle) ease-in-out infinite alternate;
90
+ }
91
+
92
+ @keyframes dock-jiggle {
93
+ from {
94
+ rotate: -1.4deg;
95
+ }
96
+ to {
97
+ rotate: 1.4deg;
98
+ }
99
+ }
100
+
101
+ @keyframes dock-arrive {
102
+ from {
103
+ opacity: 1;
104
+ }
105
+ to {
106
+ opacity: 0;
107
+ }
85
108
  }
86
109
 
87
110
  @keyframes collapsible-down {
@@ -294,6 +317,10 @@
294
317
  --duration-slide: 220ms;
295
318
  /* The hold fill: HOLD_MS - HOLD_GRACE_MS (lib/hold.ts), so it completes as the hold fires. */
296
319
  --duration-hold: 250ms;
320
+ /* How long a newcomer in the dock glows (DOCK_ARRIVE_MOTION). */
321
+ --duration-arrive: 2400ms;
322
+ /* One sway of the dock's edit mode (DOCK_EDIT_MOTION). */
323
+ --duration-jiggle: 140ms;
297
324
  /* Ambient motion is an event (SPEC motion rule 5): 1 while the host holds
298
325
  * html[data-motion="live"], else 0. Inherits into widget shadow roots, so a
299
326
  * loop multiplies its duration by it: calc(var(--motion-ambient, 0) * 1s).
@@ -583,6 +610,8 @@ html[data-motion="live"] {
583
610
  --duration-expand: 0ms;
584
611
  --duration-morph: 0ms;
585
612
  --duration-hold: 0ms;
613
+ --duration-arrive: 0ms;
614
+ --duration-jiggle: 0ms;
586
615
  --duration-slide: 0ms;
587
616
  }
588
617
  /* tw-animate enter/exit classes carry their own fallback duration. */
@@ -612,6 +641,8 @@ html[data-motion="live"] {
612
641
  --duration-expand: 0ms;
613
642
  --duration-morph: 0ms;
614
643
  --duration-hold: 0ms;
644
+ --duration-arrive: 0ms;
645
+ --duration-jiggle: 0ms;
615
646
  --duration-slide: 0ms;
616
647
  }
617
648
  .reduce-motion,