@glasshome/ui 1.23.0 → 1.24.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.
@@ -5,6 +5,7 @@
5
5
  export { type Color, parseColor } from "@kobalte/core/colors";
6
6
  // Floating glass panel + its shared surface token.
7
7
  export { SECTION_ROW_SURFACE } from "../lib/card-classes.js";
8
+ export { HOLD_GRACE_MS, HOLD_MS } from "../lib/hold.js";
8
9
  export { RISE_MOTION, SETTLE_MOTION, TRAVEL_MOTION } from "../lib/motion-classes.js";
9
10
  export { OVERLAY_SURFACE } from "../lib/overlay-classes.js";
10
11
  // Section tokens re-exported from the Solid entry for convenience.
@@ -275,11 +275,13 @@
275
275
  --ease-contract: cubic-bezier(0.4, 0, 1, 1);
276
276
  /* A morph is a shape becoming another shape: slower than an arrival, and it
277
277
  * leaves the start shape gently instead of snapping out of it. */
278
- --duration-morph: 400ms;
278
+ --duration-morph: 300ms;
279
279
  --ease-morph: cubic-bezier(0.32, 0.72, 0, 1);
280
280
  --duration-micro: 120ms;
281
281
  --duration-state: 160ms;
282
282
  --duration-expand: 200ms;
283
+ /* The hold fill: HOLD_MS - HOLD_GRACE_MS (lib/hold.ts), so it completes as the hold fires. */
284
+ --duration-hold: 250ms;
283
285
  /* Ambient motion is an event (SPEC motion rule 5): 1 while the host holds
284
286
  * html[data-motion="live"], else 0. Inherits into widget shadow roots, so a
285
287
  * loop multiplies its duration by it: calc(var(--motion-ambient, 0) * 1s).
@@ -573,6 +575,7 @@ html[data-motion="live"] {
573
575
  --duration-state: 0ms;
574
576
  --duration-expand: 0ms;
575
577
  --duration-morph: 0ms;
578
+ --duration-hold: 0ms;
576
579
  }
577
580
  /* tw-animate enter/exit classes carry their own fallback duration. */
578
581
  .animate-in,