@motion-proto/live-tokens 0.29.0 → 0.30.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@motion-proto/live-tokens",
3
- "version": "0.29.0",
3
+ "version": "0.30.0",
4
4
  "type": "module",
5
5
  "description": "Design token editor with live CSS variable editing. Svelte 5 + Vite 8.",
6
6
  "keywords": [
@@ -154,6 +154,10 @@
154
154
  font-size: var(--card-default-title-font-size);
155
155
  font-weight: var(--card-default-title-font-weight);
156
156
  line-height: var(--card-default-title-line-height);
157
+ min-width: 0;
158
+ overflow: hidden;
159
+ white-space: nowrap;
160
+ text-overflow: ellipsis;
157
161
  }
158
162
 
159
163
  .card.compact .card-title {
@@ -7,6 +7,11 @@
7
7
  /** Zoom the contents on hover (frame stays fixed). `undefined` inherits the editor's
8
8
  global "Use zoom" default; `true`/`false` force this instance on/off. */
9
9
  zoom?: boolean | undefined;
10
+ srcset?: string | undefined;
11
+ sizes?: string | undefined;
12
+ /** Content images default to lazy; pass `'eager'` for above-the-fold heroes. */
13
+ loading?: 'lazy' | 'eager';
14
+ decoding?: 'async' | 'sync' | 'auto';
10
15
  }
11
16
 
12
17
  let {
@@ -14,7 +19,11 @@
14
19
  alt,
15
20
  variant = 'default',
16
21
  height = undefined,
17
- zoom = undefined
22
+ zoom = undefined,
23
+ srcset = undefined,
24
+ sizes = undefined,
25
+ loading = 'lazy',
26
+ decoding = 'async'
18
27
  }: Props = $props();
19
28
 
20
29
  const variantHeights: Record<string, string | undefined> = {
@@ -33,7 +42,7 @@
33
42
  </script>
34
43
 
35
44
  <div class="image" style:height={resolvedHeight} style:--image-zoom-hover={zoomOverride}>
36
- <img {src} {alt} />
45
+ <img {src} {alt} {srcset} {sizes} {loading} {decoding} />
37
46
  </div>
38
47
 
39
48
  <style>