@glasshome/ui 1.35.3 → 1.35.4

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.
@@ -18737,7 +18737,7 @@ var BO = /*#__PURE__*/ K("<span data-slot=password-input-leading aria-hidden=tru
18737
18737
  Ft(["click"]);
18738
18738
  //#endregion
18739
18739
  //#region src/solid/preview-tile.tsx
18740
- var KO = /*#__PURE__*/ K("<div data-slot=preview-tile-face>"), qO = /*#__PURE__*/ K("<span data-slot=preview-tile-caption class=\"text-foreground @container/source-marks flex min-w-0 items-center gap-1 text-xs font-medium\"><span class=truncate>"), JO = /*#__PURE__*/ K("<span data-slot=preview-tile-meta class=\"text-muted-foreground -mt-1 truncate text-[11px] leading-tight\">"), YO = /*#__PURE__*/ K("<span class=sr-only>"), XO = {
18740
+ var KO = /*#__PURE__*/ K("<div data-slot=preview-tile-face aria-hidden=true>"), qO = /*#__PURE__*/ K("<span data-slot=preview-tile-caption class=\"text-foreground @container/source-marks flex min-w-0 items-center gap-1 text-xs font-medium\"><span class=truncate>"), JO = /*#__PURE__*/ K("<span data-slot=preview-tile-meta class=\"text-muted-foreground -mt-1 truncate text-[11px] leading-tight\">"), YO = /*#__PURE__*/ K("<span class=sr-only>"), XO = {
18741
18741
  2: "grid-cols-2",
18742
18742
  3: "grid-cols-3",
18743
18743
  4: "grid-cols-4"
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@glasshome/ui",
3
- "version": "1.35.3",
3
+ "version": "1.35.4",
4
4
  "description": "SolidJS component library for GlassHome, built on Kobalte",
5
5
  "keywords": [
6
6
  "components",
@@ -67,7 +67,11 @@ export function PreviewTile(props: {
67
67
  props.class,
68
68
  )}
69
69
  >
70
- <div data-slot="preview-tile-face" class={cn(TILE_FACE, SHAPE[props.shape ?? "wide"])}>
70
+ <div
71
+ data-slot="preview-tile-face"
72
+ aria-hidden="true"
73
+ class={cn(TILE_FACE, SHAPE[props.shape ?? "wide"])}
74
+ >
71
75
  {props.children}
72
76
  </div>
73
77
  <Show when={props.caption ?? true} fallback={<span class="sr-only">{props.label}</span>}>
@@ -83,7 +83,7 @@
83
83
  inherits: false;
84
84
  initial-value: 0;
85
85
  }
86
- /* 1 when a .glass-halo beside the surface draws its outer glow instead. */
86
+ /* 1 when a .glass-halo beside the surface draws its outer glow and lift shadow instead. */
87
87
  @property --glass-halo {
88
88
  syntax: "<number>";
89
89
  inherits: false;
@@ -365,15 +365,18 @@
365
365
  --material-reach: calc(0.35 + var(--glass-lift) * 1.45);
366
366
  --_glass-bloom: calc(var(--material-glow) * var(--material-reach) * var(--_material-glow-out));
367
367
  }
368
- /* A surface's outer glow as its own layer, laid over the surface's box with the
369
- * same tone and lift. Its z-index lifts the glow over neighbouring surfaces;
370
- * the surface itself sets --glass-halo: 1 so the glow is not drawn twice. */
368
+ /* A surface's outer glow and lift shadow as their own layer, laid over the surface's
369
+ * box with the same tone and lift. Its z-index lifts the glow over neighbouring surfaces;
370
+ * the surface itself sets --glass-halo: 1 so neither is drawn twice. */
371
371
  :where(.glass-halo) {
372
372
  position: absolute;
373
373
  inset: 0;
374
374
  z-index: 1;
375
375
  pointer-events: none;
376
- box-shadow: 0 0 var(--_glass-bloom) oklch(from var(--material-hue) l c h / 0.65);
376
+ box-shadow:
377
+ calc(-10px * var(--_material-light-sin)) calc(10px * var(--_material-light-cos)) 30px -16px
378
+ oklch(0 0 0 / calc(var(--glass-lift) * var(--_material-shadow))),
379
+ 0 0 var(--_glass-bloom) oklch(from var(--material-hue) l c h / 0.65);
377
380
  }
378
381
 
379
382
  /* The ONE glass formula. Neutral by default (--glass-tone transparent makes
@@ -452,7 +455,7 @@
452
455
  inset 0 -2px 4px color-mix(in srgb, var(--glass-tone) var(--glass-glow), transparent),
453
456
  0 1px 3px color-mix(in srgb, var(--glass-tone) var(--glass-drop), transparent),
454
457
  calc(-10px * var(--_material-light-sin)) calc(10px * var(--_material-light-cos)) 30px -16px
455
- oklch(0 0 0 / calc(var(--glass-lift) * var(--_material-shadow))),
458
+ oklch(0 0 0 / calc(var(--glass-lift) * var(--_material-shadow) * (1 - var(--glass-halo)))),
456
459
  0 0 calc(var(--_glass-bloom) * (1 - var(--glass-halo)))
457
460
  oklch(from var(--material-hue) l c h / 0.65),
458
461
  inset 0 0 calc(var(--material-glow) * 0.9 * var(--_material-glow-in))