@glasshome/ui 1.17.0 → 1.19.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 (66) hide show
  1. package/SPEC.md +83 -2
  2. package/dist/index.js +2 -2
  3. package/dist/lib/button-variants.d.ts +4 -1
  4. package/dist/lib/card-classes.d.ts +4 -4
  5. package/dist/lib/motion-classes.d.ts +1 -0
  6. package/dist/lib/overlay-classes.d.ts +4 -2
  7. package/dist/lib/pill-classes.d.ts +1 -1
  8. package/dist/lib/spotlight-geometry.d.ts +22 -0
  9. package/dist/lib/thumb-classes.d.ts +1 -0
  10. package/dist/lib/tier-badge.d.ts +1 -1
  11. package/dist/solid/button.d.ts +8 -3
  12. package/dist/solid/dock.d.ts +9 -0
  13. package/dist/solid/docked-panel.d.ts +11 -0
  14. package/dist/solid/index.d.ts +6 -2
  15. package/dist/solid/index.js +4399 -4034
  16. package/dist/solid/option-card.d.ts +1 -1
  17. package/dist/solid/preview-tile.d.ts +33 -0
  18. package/dist/solid/spotlight.d.ts +14 -0
  19. package/dist/solid/swatch-picker.d.ts +12 -0
  20. package/dist/solid/tabs.d.ts +4 -1
  21. package/dist/solid/widget-identity.d.ts +2 -0
  22. package/dist/tokens/index.d.ts +3 -0
  23. package/dist/tokens/index.js +481 -67
  24. package/dist/tokens/material.d.ts +40 -0
  25. package/dist/tokens/presets.d.ts +3 -0
  26. package/dist/tokens/readability.d.ts +21 -0
  27. package/dist/tokens/theme-colors.d.ts +13 -3
  28. package/dist/tokens/theme-recipe.d.ts +33 -0
  29. package/dist/{utils-DMaksjvy.js → utils-CV6G6fr8.js} +343 -340
  30. package/package.json +2 -2
  31. package/src/lib/button-variants.ts +10 -7
  32. package/src/lib/card-classes.ts +4 -3
  33. package/src/lib/motion-classes.ts +5 -0
  34. package/src/lib/overlay-classes.ts +10 -2
  35. package/src/lib/pill-classes.ts +4 -3
  36. package/src/lib/spotlight-geometry.ts +90 -0
  37. package/src/lib/thumb-classes.ts +7 -0
  38. package/src/lib/tier-badge.ts +1 -1
  39. package/src/solid/button.tsx +17 -2
  40. package/src/solid/carousel.tsx +2 -2
  41. package/src/solid/data-table.tsx +2 -2
  42. package/src/solid/dock.tsx +67 -9
  43. package/src/solid/docked-panel.tsx +56 -0
  44. package/src/solid/hero-action.tsx +2 -2
  45. package/src/solid/icon-picker.tsx +1 -1
  46. package/src/solid/index.ts +11 -2
  47. package/src/solid/media-tile.tsx +1 -1
  48. package/src/solid/option-card.tsx +25 -31
  49. package/src/solid/preview-tile.tsx +79 -0
  50. package/src/solid/radio-group.tsx +7 -2
  51. package/src/solid/section-card.tsx +4 -2
  52. package/src/solid/sliding-indicator.tsx +13 -12
  53. package/src/solid/spotlight.tsx +179 -0
  54. package/src/solid/swatch-picker.tsx +47 -0
  55. package/src/solid/switch.tsx +5 -2
  56. package/src/solid/tabs.tsx +20 -4
  57. package/src/solid/toggle-group.tsx +1 -4
  58. package/src/solid/widget-identity.tsx +3 -1
  59. package/src/styles/globals.css +166 -14
  60. package/src/styles/theme.css +22 -3
  61. package/src/tokens/index.ts +3 -0
  62. package/src/tokens/material.ts +116 -0
  63. package/src/tokens/presets.ts +201 -62
  64. package/src/tokens/readability.ts +67 -0
  65. package/src/tokens/theme-colors.ts +15 -3
  66. package/src/tokens/theme-recipe.ts +161 -0
package/SPEC.md CHANGED
@@ -54,7 +54,7 @@ border/background/box-shadow on the element: `bg-*`, `border-*`, and `shadow-*`
54
54
  utilities on a glass element are no-ops. Tune via knobs instead.
55
55
 
56
56
  `backdrop-blur` is not part of the formula. Cards add `CARD_BLUR` and overlays
57
- `OVERLAY_BLUR` (both read the `--glass-blur` px knob); toasts and other
57
+ `OVERLAY_BLUR` (both read `--material-blur`, with an optional `--glass-blur` override); toasts and other
58
58
  transform-animated surfaces must not blur (Chromium renders black
59
59
  mid-animation), and a surface that skips the blur takes an opaque fill
60
60
  (`CARD_SURFACE_OPAQUE`, `OVERLAY_SURFACE_OPAQUE`) — a translucent fill with
@@ -64,6 +64,51 @@ Mixing rules: tone washes mix in **srgb** (oklch drags a tone mixed toward
64
64
  transparent down to mud); tinted text mixes in **oklab** (no hue channel, so a
65
65
  tone desaturates without swinging yellow — `glassToneText()`).
66
66
 
67
+ ### The material tier
68
+
69
+ Five inheriting variables, the homeowner's dials, declared once in `theme.css` and
70
+ multiplied into every surface's knobs by the formula. A knob is a surface's
71
+ identity; the tier scales all of them at once, chrome and widgets alike.
72
+
73
+ | Variable | Type | Frosted | Multiplies |
74
+ | --- | --- | --- | --- |
75
+ | `--material-blur` | length | 24px | the backdrop radius (`--glass-blur` overrides it when set) |
76
+ | `--material-clarity` | % | 60% | the card fill's share of `--card` (the rest is wallpaper) |
77
+ | `--material-depth` | number | 1 | `--glass-light`, `--glass-shade`, `--glass-rim`, `--glass-lift` |
78
+ | `--material-tint` | number | 1 | `--glass-wash`, `--glass-wash-2` |
79
+ | `--material-glow` | length | 0px | an outer bloom in `--material-hue` (Neon 18px) |
80
+ | `--material-ink-level` | number | 0 | above 0, the Ink body: every surface hand-inked |
81
+
82
+ Four more are preset terms, inert at their defaults and never a homeowner dial.
83
+ Glow scales with `--glass-lift` (`--material-reach`), so a chip takes about a
84
+ third of what a card takes. `--material-hue` is the surface's own hue,
85
+ opaque: its tone when it has one, the accent otherwise.
86
+
87
+ | Variable | Type | Default | Turns on |
88
+ | --- | --- | --- | --- |
89
+ | `--material-edge-width` | length | 1px | the edge weight (Neon 1.5px) |
90
+ | `--material-edge-ink` | number | 0 | the edge's mix toward `--material-ink` (Paper 0.3) |
91
+ | `--material-ink-lift` | number | 0 | the Ink line's mix toward `--foreground` (Chalk 1) |
92
+ | `--material-edge-accent` | number | 0 | the edge's mix toward `--material-hue` (Neon 1) |
93
+
94
+ `--material-ink` is fixed per mode in theme.css: dark ink in light mode, a mid
95
+ grey in dark mode.
96
+
97
+ **Ink** is the second formula body, selected by a style query while
98
+ `--material-ink-level` is above 0. The surface paints nothing itself and takes
99
+ uneven radii scaled from `--radius`; `::before` lays the fill with its own radii
100
+ and a nudge, so it strays over and under the line, and `::after` draws the line
101
+ (opacity = the level) with two faint offset passes. No images or masks: it
102
+ renders the same in every browser with style queries.
103
+
104
+ A preset is a point in that space (`tokens/material.ts`: Frosted, Paper,
105
+ Neon, Chalk; `resolveMaterial` composes it with the host blur mode); a theme stores the
106
+ preset and any dial it moved, never the resolved values. A look these cannot
107
+ express adds another inert-by-default term here (a ui minor), then, if that is
108
+ not enough, a second formula body selected by a style query on a material
109
+ variable, as Ink is.
110
+ The class name never changes.
111
+
67
112
  ## Surfaces (the only sanctioned recipes)
68
113
 
69
114
  | Recipe | File | Wear it for |
@@ -108,12 +153,16 @@ role clears 4.5:1 against `--background`/`--card`/`--popover`/`--muted` (3:1 for
108
153
  | a tab row in a modal header | `<Tabs layout="split">` around the parts, `<Header wrap action={<TabsList class="w-auto">…}>` | `class="contents"` on `Tabs` and `flex-wrap` by hand |
109
154
  | a form inside a modal | `<Body as="form" id="…">` + a footer button with `form="…"` | a `display: contents` form wrapper inside the Body |
110
155
  | a glyph | `<Icon icon="lucide:plus" width={16}>` (inline svg from the host's `provideIcons` source) | `<iconify-icon>`, `@iconify-icon/solid` |
111
- | a status chip | `<Badge tone="var(--success)">` | `rounded-full bg-green-500/10` |
156
+ | a status chip | `<Badge tone="var(--success)">` | `rounded-lg bg-green-500/10` |
112
157
  | a callout | `<Alert tone="warning">` | `border-amber-500/30 bg-amber-500/10` |
113
158
  | a labelled group inside a card | `<SectionGroup icon label count action>` | a hand-rolled `SectionIcon` + `SectionSubtitle` header row |
114
159
  | a titled group of form rows | `<FieldSet>` + `<FieldLegend>` (+ `<FieldDescription>`) | a tracked uppercase `SectionLabel` eyebrow |
115
160
  | rows that belong to the row above them | `<FieldSubGroup>` | a bare `<Separator>` and a left pad |
116
161
  | picking one of a few described choices | `<OptionCardGroup>` + `<OptionCard>` | a hand-rolled `role="radio"` card list |
162
+ | picking one of a few results you can see (pictures, shapes, previews) | `<PreviewTileGroup>` + `<PreviewTile>` | a grid of `aria-pressed` buttons by hand |
163
+ | one colour out of a few | `<SwatchPicker>` (+ a picker as its child) | round buttons by hand |
164
+ | an editor that leaves the page live behind it | `<DockedPanel>` + its Header, Body, Footer | a `<Sheet>` with its scrim hidden |
165
+ | tabs above a stack of toggle groups | `<TabsTrigger icon>` | an `<Icon>` placed inside the trigger by hand |
117
166
  | picking one area, or several | `<AreaPicker>` (`values` + `onValuesChange` for multi) | a hand-rolled checkbox list of areas |
118
167
  | a field-shaped picker's trigger | `<PickerTrigger>` (chevron, clear button, expanded state) | a `PICKER_TRIGGER` button with its own chevron |
119
168
  | position inside a multi-step flow | `<StepIndicator count index>` | a hand-rolled row of dots |
@@ -121,11 +170,41 @@ role clears 4.5:1 against `--background`/`--card`/`--popover`/`--muted` (3:1 for
121
170
  | a metallic tier chip | `<TierBadge>` | gradients by hand |
122
171
  | the ambient motion window | `startMotionWindow()` | an app-local timer writing `data-motion` |
123
172
  | a built-in wallpaper | `GEOMETRIC_HOUSES_SVG` from `@glasshome/ui/backgrounds` | an app's own copy of the SVG |
173
+ | pointing at a control while the user operates it | `<Spotlight>` (`blocking` on a targetless veil so the action inside the bubble is the only press that lands; a target taller than half the viewport places the bubble inside it, near the top, instead of above or below; the bubble carries a tail toward its `anchor`, which defaults to `target` and may point at a different element than the hole) | a hand-rolled fixed overlay with a cutout |
124
174
 
125
175
  Server-run `.astro` markup imports `@glasshome/ui/solid` too: the `solid`
126
176
  export condition hands Astro the source, and a component with no `client:`
127
177
  directive renders to static HTML with no runtime shipped.
128
178
 
179
+ ## Composition (the pillar)
180
+
181
+ Nobody reads a screen. A homeowner arrives with one question and hunts for the
182
+ answer; every rule here makes that hunt shorter.
183
+
184
+ 1. **Edges place things.** Every element sits on at least two edges: a side of
185
+ its surface, or an edge another element makes (an avatar's bottom, the row
186
+ above). Text leads on the left, values and actions trail on the right;
187
+ centre only what nobody needs to read. Empty space is resolved by moving
188
+ content onto an edge or making a new edge (a `Separator`, an aligned row),
189
+ never by adding content to fill it or hiding actions in an overflow menu.
190
+ 2. **Density is fixed by difference.** A long uniform list is
191
+ grouped by what the homeowner looks for (area, day, person) under
192
+ `SectionGroup` / `FieldSet`, and its rows vary with the visual of what they
193
+ name. More spacing only makes the same wall longer.
194
+ 3. **Show before you tell.** A concept with a recognizable visual wears it: a
195
+ person is their `Avatar`, an area its icon, a state a `Badge`, a level a
196
+ fill. One visual per concept everywhere, rendered by one component. A label,
197
+ helper line or tooltip added to explain something is the last resort: it
198
+ makes the screen harder to scan, and touch has no hover.
199
+ 4. **Emphasis is contrast with neighbours.** A value at its default is quiet
200
+ (`--muted-foreground`, no fill); a changed or active one earns the tone. One
201
+ accent per view. To lift one thing, quiet what surrounds it.
202
+ 5. **Glass means a unit.** A glass surface says "this floats on its own". Page
203
+ sections are cards; inside a surface that is already glass (dialog, sheet,
204
+ popover, card), group with `SectionGroup`, `FieldSet` and `Separator`, and
205
+ stop at one bordered row layer (`SectionRow`, `OptionCard`). A `Card` or
206
+ `SectionCard` never goes inside another glass surface.
207
+
129
208
  ## Motion (the pillar)
130
209
 
131
210
  Motion is one system, not per-component flair. Four rules, all held by
@@ -165,6 +244,8 @@ Motion is one system, not per-component flair. Four rules, all held by
165
244
 
166
245
  `RISE_MOTION`: `MODAL_MOTION`'s twin for a surface that stays mounted; its closed state is a resting style, since a mount door's exit ends and leaves the element showing.
167
246
 
247
+ `TRAVEL_MOTION`: a mounted surface that follows its subject from place to place, transitioning translate and clip-path (the spotlight's hole and bubble as the target changes).
248
+
168
249
  A new component with an open, pick or reveal state uses these doors before it
169
250
  gets any motion of its own; a motion need none of them covers is added to
170
251
  `motion-classes.ts`, not written inline.
package/dist/index.js CHANGED
@@ -1,4 +1,4 @@
1
- import { $ as e, A as t, B as n, Bt as r, C as i, Ct as a, D as ee, Dt as te, E as o, Et as s, F as c, Ft as l, G as u, Gt as d, H as f, Ht as p, I as m, It as h, J as g, Jt as _, Kt as v, L as y, Lt as b, M as x, Mt as S, N as C, Nt as w, O as T, Ot as E, P as D, Pt as O, Q as k, R as A, Rt as j, S as M, St as N, T as P, U as F, Ut as I, V as L, Vt as R, Wt as z, X as B, Xt as V, Y as H, Yt as U, Z as W, Zt as G, _ as K, _t as q, at as J, b as Y, c as ne, ct as X, d as Z, et as re, f as ie, g as ae, h as oe, i as se, it as ce, j as le, jt as ue, k as de, kt as fe, l as pe, m as me, n as he, nt as ge, o as _e, ot as ve, p as ye, q as be, qt as xe, r as Se, rt as Ce, s as we, st as Te, t as Ee, tt as De, u as Oe, ut as Q, v as ke, vt as Ae, w as je, wt as Me, x as Ne, y as Pe, yt as Fe, z as Ie } from "./utils-DMaksjvy.js";
1
+ import { $ as e, $t as t, A as n, At as r, B as i, Bt as a, C as ee, D as te, Et as o, F as s, Ft as c, G as l, Gt as u, H as d, I as f, Jt as p, Kt as m, L as h, Lt as g, M as _, N as v, Nt as y, O as b, Ot as x, P as S, Pt as C, Q as w, Qt as T, R as E, Rt as D, S as O, T as k, Tt as A, U as j, Ut as M, V as N, Vt as P, W as F, Wt as I, X as L, Xt as R, Y as z, Yt as B, Z as V, Zt as H, _ as U, at as W, b as G, bt as K, c as q, ct as J, d as Y, en as ne, et as X, f as Z, ft as re, g as ie, h as ae, i as oe, it as se, j as ce, jt as le, k as ue, kt as de, l as fe, lt as pe, m as me, n as he, nt as ge, ot as _e, p as ve, q as ye, qt as be, r as xe, rt as Se, s as Ce, st as we, t as Te, tt as Ee, u as De, ut as Oe, v as Q, w as ke, wt as Ae, x as je, xt as Me, y as Ne, yt as Pe, z as Fe, zt as Ie } from "./utils-CV6G6fr8.js";
2
2
  //#region src/lib/motion-window.ts
3
3
  var $ = 3e4;
4
4
  function Le(e = $) {
@@ -17,4 +17,4 @@ function Le(e = $) {
17
17
  };
18
18
  }
19
19
  //#endregion
20
- export { r as ALERT_CLASS, R as ALERT_CONTENT_CLASS, p as ALERT_DESCRIPTION_CLASS, I as ALERT_ICON_BG_CLASS, z as ALERT_ICON_CLASS, d as ALERT_ICON_PATHS, v as ALERT_TITLE_CLASS, xe as ALERT_TONES, O as BUTTON_DEFAULT_CLASS, l as BUTTON_OUTLINE_CLASS, Q as CARD_BLUR, q as CARD_SURFACE, Ae as CARD_SURFACE_BASE, Fe as CARD_SURFACE_OPAQUE, g as CAROUSEL_DOTS, H as CAROUSEL_VIEWPORT, me as CHIP, De as CONTROL_H, K as CONTROL_H_TOUCH, ge as FIELD_CHROME, Ce as FIELD_CONTROL, Me as FIELD_MOTION, ce as FIELD_TEXT, Y as FLOATING_PANEL, J as FOCUS_RING, h as ICON_BUTTON_CLASS, oe as ICON_PILL, ae as ICON_PILL_TINT, ve as INPUT_CLASS, Te as INPUT_SURFACE, X as INVALID_RING, x as LOGO_DEFAULT_SIZE, C as LOGO_DEFAULT_SRC, D as LOGO_DEFAULT_SUB, c as LOGO_MARK_CLASS, m as LOGO_MARK_PX, y as LOGO_NAME_CLASS, A as LOGO_ROOT_CLASS, Ie as LOGO_SIZES, n as LOGO_STACK_CLASS, L as LOGO_SUB_CLASS, ee as MENU_ITEM, T as MENU_ITEM_BASE, de as MENU_ITEM_X, t as MENU_LABEL, le as MENU_SEPARATOR, he as MOBILE_BREAKPOINT, s as MODAL_MOTION, te as MORPH_MOTION, $ as MOTION_WINDOW_MS, b as OUTLINE_SURFACE, Ne as OVERLAY_BLUR, E as OVERLAY_MOTION, M as OVERLAY_SURFACE, i as OVERLAY_SURFACE_BASE, je as OVERLAY_SURFACE_OPAQUE, ke as PICKER_LIST, Pe as PICKER_TRIGGER, e as POSITION_BAR, re as POSITION_BAR_LIT, fe as PRESS_DIP, P as SCRIM_CLASS, ue as SCRIM_MOTION, Oe as SECTION_INNER_RADIUS, Z as SECTION_OUTER_RADIUS, ie as SECTION_PADDING, ye as SECTION_ROW_CLASS, N as SECTION_ROW_SURFACE, pe as SEGMENT_ITEM, S as SETTLE_MOTION, w as STAGGER, se as THUMB_CLASS, _e as THUMB_RAIL_BLEED, we as THUMB_RAIL_PAD, ne as THUMB_SIZE, a as TRACK_SURFACE, f as Z, F as Z_CLASS, _ as alertBorder, U as alertFill, V as alertIconBgStyle, G as alertIconFill, o as anchorToTriggerTop, j as buttonVariants, B as carouselDot, W as carouselItem, k as carouselTrack, Ee as cn, Se as createIsMobile, u as glassToneText, Le as startMotionWindow, be as toneTextMix };
20
+ export { M as ALERT_CLASS, I as ALERT_CONTENT_CLASS, u as ALERT_DESCRIPTION_CLASS, m as ALERT_ICON_BG_CLASS, be as ALERT_ICON_CLASS, p as ALERT_ICON_PATHS, B as ALERT_TITLE_CLASS, R as ALERT_TONES, g as BUTTON_DEFAULT_CLASS, D as BUTTON_OUTLINE_CLASS, re as CARD_BLUR, Pe as CARD_SURFACE, K as CARD_SURFACE_BASE, Me as CARD_SURFACE_OPAQUE, L as CAROUSEL_DOTS, V as CAROUSEL_VIEWPORT, ae as CHIP, Se as CONTROL_H, Q as CONTROL_H_TOUCH, se as FIELD_CHROME, W as FIELD_CONTROL, o as FIELD_MOTION, _e as FIELD_TEXT, je as FLOATING_PANEL, we as FOCUS_RING, Ie as ICON_BUTTON_CLASS, ie as ICON_PILL, U as ICON_PILL_TINT, J as INPUT_CLASS, pe as INPUT_SURFACE, Oe as INVALID_RING, S as LOGO_DEFAULT_SIZE, s as LOGO_DEFAULT_SRC, f as LOGO_DEFAULT_SUB, h as LOGO_MARK_CLASS, E as LOGO_MARK_PX, Fe as LOGO_NAME_CLASS, i as LOGO_ROOT_CLASS, N as LOGO_SIZES, d as LOGO_STACK_CLASS, j as LOGO_SUB_CLASS, ue as MENU_ITEM, n as MENU_ITEM_BASE, ce as MENU_ITEM_X, _ as MENU_LABEL, v as MENU_SEPARATOR, he as MOBILE_BREAKPOINT, x as MODAL_MOTION, de as MORPH_MOTION, $ as MOTION_WINDOW_MS, a as OUTLINE_SURFACE, O as OVERLAY_BLUR, r as OVERLAY_MOTION, ee as OVERLAY_SURFACE, ke as OVERLAY_SURFACE_BASE, k as OVERLAY_SURFACE_OPAQUE, Ne as PICKER_LIST, G as PICKER_TRIGGER, Ee as POSITION_BAR, ge as POSITION_BAR_LIT, le as PRESS_DIP, te as SCRIM_CLASS, y as SCRIM_MOTION, Y as SECTION_INNER_RADIUS, Z as SECTION_OUTER_RADIUS, ve as SECTION_PADDING, me as SECTION_ROW_CLASS, Ae as SECTION_ROW_SURFACE, De as SEGMENT_ITEM, C as SETTLE_MOTION, c as STAGGER, oe as THUMB_CLASS, Ce as THUMB_RAIL_BLEED, q as THUMB_RAIL_PAD, fe as THUMB_SIZE, A as TRACK_SURFACE, F as Z, l as Z_CLASS, H as alertBorder, T as alertFill, t as alertIconBgStyle, ne as alertIconFill, b as anchorToTriggerTop, P as buttonVariants, w as carouselDot, e as carouselItem, X as carouselTrack, Te as cn, xe as createIsMobile, ye as glassToneText, Le as startMotionWindow, z as toneTextMix };
@@ -15,6 +15,7 @@ export declare const buttonVariants: import("cva").CVAComponent<Omit<{
15
15
  sm: string;
16
16
  lg: string;
17
17
  icon: string;
18
+ xl: string;
18
19
  none: string;
19
20
  };
20
21
  };
@@ -37,6 +38,7 @@ export declare const buttonVariants: import("cva").CVAComponent<Omit<{
37
38
  sm: string;
38
39
  lg: string;
39
40
  icon: string;
41
+ xl: string;
40
42
  none: string;
41
43
  };
42
44
  };
@@ -58,9 +60,10 @@ export declare const buttonVariants: import("cva").CVAComponent<Omit<{
58
60
  sm: string;
59
61
  lg: string;
60
62
  icon: string;
63
+ xl: string;
61
64
  none: string;
62
65
  };
63
66
  }>;
64
67
  export declare const BUTTON_DEFAULT_CLASS: string;
65
68
  export declare const BUTTON_OUTLINE_CLASS: string;
66
- export declare const ICON_BUTTON_CLASS = "inline-flex shrink-0 cursor-pointer items-center justify-center rounded-full transition-glass duration-150 hover:bg-primary/10 active:scale-[0.97]";
69
+ export declare const ICON_BUTTON_CLASS = "inline-flex shrink-0 cursor-pointer items-center justify-center rounded-lg transition-glass duration-150 hover:bg-primary/10 active:scale-[0.97]";
@@ -1,8 +1,8 @@
1
- export declare const CARD_SURFACE_BASE = "glass [--glass-wash:20%] [--glass-rim:0.3] [--glass-lift:0.45] [--glass-shade:0.05] dark:[--glass-shade:0] [--glass-base:color-mix(in_srgb,var(--card)_60%,transparent)]";
2
- export declare const CARD_BLUR = "backdrop-blur-[var(--glass-blur,24px)] backdrop-saturate-[1.8]";
3
- export declare const CARD_SURFACE = "glass [--glass-wash:20%] [--glass-rim:0.3] [--glass-lift:0.45] [--glass-shade:0.05] dark:[--glass-shade:0] [--glass-base:color-mix(in_srgb,var(--card)_60%,transparent)] backdrop-blur-[var(--glass-blur,24px)] backdrop-saturate-[1.8]";
1
+ export declare const CARD_SURFACE_BASE = "glass [--glass-wash:20%] [--glass-rim:0.3] [--glass-lift:0.45] [--glass-shade:0.05] dark:[--glass-shade:0] [--glass-base:color-mix(in_srgb,var(--card)_var(--material-clarity),transparent)]";
2
+ export declare const CARD_BLUR = "backdrop-blur-[var(--glass-blur,var(--material-blur,24px))] backdrop-saturate-[1.8]";
3
+ export declare const CARD_SURFACE = "glass [--glass-wash:20%] [--glass-rim:0.3] [--glass-lift:0.45] [--glass-shade:0.05] dark:[--glass-shade:0] [--glass-base:color-mix(in_srgb,var(--card)_var(--material-clarity),transparent)] backdrop-blur-[var(--glass-blur,var(--material-blur,24px))] backdrop-saturate-[1.8]";
4
4
  export declare const CARD_SURFACE_OPAQUE = "glass [--glass-wash:20%] [--glass-rim:0.3] [--glass-lift:0.45] [--glass-shade:0.05] dark:[--glass-shade:0]";
5
- export declare const SECTION_ROW_SURFACE = "glass [--glass-rim:0.3] [--glass-base:color-mix(in_srgb,var(--card)_60%,transparent)]";
5
+ export declare const SECTION_ROW_SURFACE = "glass [--glass-rim:0.3] [--glass-base:color-mix(in_srgb,var(--card)_var(--material-clarity),transparent)]";
6
6
  export declare const TRACK_SURFACE = "border border-border/50 bg-card/40 backdrop-blur-sm";
7
7
  export declare const CARD_PADDING: {
8
8
  readonly slots: "flex flex-col gap-3 p-3 md:gap-4 md:p-4";
@@ -8,3 +8,4 @@ export declare const SETTLE_MOTION = "animate-in fade-in-0 slide-in-from-bottom-
8
8
  export declare const PRESS_DIP = "active:scale-[0.97]";
9
9
  export declare const HOLD_MOTION = "scale-0 opacity-0 transition-[scale,opacity] duration-(--duration-state) ease-(--ease-contract) data-[hold]:scale-100 data-[hold]:opacity-100 data-[hold]:duration-(--duration-morph) data-[hold]:ease-linear data-[fired]:scale-100 data-[fired]:opacity-0";
10
10
  export declare const RISE_MOTION = "origin-bottom transition-[opacity,scale,translate] data-[expanded]:duration-(--duration-expand) data-[expanded]:ease-(--ease-expand) data-[closed]:duration-(--duration-micro) data-[closed]:ease-(--ease-contract) data-[closed]:pointer-events-none data-[closed]:translate-y-2 data-[closed]:scale-95 data-[closed]:opacity-0";
11
+ export declare const TRAVEL_MOTION = "transition-[translate,clip-path] duration-(--duration-morph) ease-(--ease-expand)";
@@ -1,8 +1,10 @@
1
- export declare const OVERLAY_BLUR = "backdrop-blur-[var(--glass-blur,24px)] backdrop-saturate-[1.2]";
1
+ export declare const OVERLAY_BLUR = "backdrop-blur-[var(--glass-blur,var(--material-blur,24px))] backdrop-saturate-[1.2]";
2
2
  export declare const OVERLAY_SURFACE_BASE = "glass glass-frost [--glass-rim:0.5] [--glass-lift:0.6] [--glass-light:0] [--glass-edge:color-mix(in_srgb,var(--border)_90%,transparent)] [--glass-base:color-mix(in_srgb,var(--popover)_92%,transparent)]";
3
- export declare const OVERLAY_SURFACE = "glass glass-frost [--glass-rim:0.5] [--glass-lift:0.6] [--glass-light:0] [--glass-edge:color-mix(in_srgb,var(--border)_90%,transparent)] [--glass-base:color-mix(in_srgb,var(--popover)_92%,transparent)] backdrop-blur-[var(--glass-blur,24px)] backdrop-saturate-[1.2]";
3
+ export declare const OVERLAY_SURFACE = "glass glass-frost [--glass-rim:0.5] [--glass-lift:0.6] [--glass-light:0] [--glass-edge:color-mix(in_srgb,var(--border)_90%,transparent)] [--glass-base:color-mix(in_srgb,var(--popover)_92%,transparent)] backdrop-blur-[var(--glass-blur,var(--material-blur,24px))] backdrop-saturate-[1.2]";
4
4
  export declare const OVERLAY_SURFACE_OPAQUE = "glass glass-frost [--glass-rim:0.5] [--glass-lift:0.6] [--glass-light:0] [--glass-edge:color-mix(in_srgb,var(--border)_90%,transparent)] [--glass-base:var(--popover)]";
5
5
  export declare const SCRIM_CLASS = "bg-scrim backdrop-blur-md";
6
+ export declare const PANEL_TAIL: string;
7
+ export declare const FLOATING_PANEL_SURFACE: string;
6
8
  export declare const FLOATING_PANEL: string;
7
9
  export declare const anchorToTriggerTop: (anchor?: HTMLElement) => {
8
10
  x: number;
@@ -1,3 +1,3 @@
1
- export declare const CHIP = "glass glass-tint inline-flex w-fit shrink-0 select-none items-center gap-1.5 whitespace-nowrap rounded-full px-2.5 py-0.5 font-medium text-xs";
1
+ export declare const CHIP = "glass glass-tint inline-flex w-fit shrink-0 select-none items-center gap-1.5 whitespace-nowrap rounded-lg px-2.5 py-0.5 font-medium text-xs";
2
2
  export declare const ICON_PILL = "glass flex shrink-0 items-center justify-center [--glass-rim:0.4] [--glass-light:0.08] [--glass-base:color-mix(in_srgb,var(--foreground)_10%,transparent)]";
3
3
  export declare const ICON_PILL_TINT = "glass glass-tint flex shrink-0 items-center justify-center [--glass-rim:0.4] [--glass-wash:18%]";
@@ -0,0 +1,22 @@
1
+ export interface Box {
2
+ x: number;
3
+ y: number;
4
+ width: number;
5
+ height: number;
6
+ }
7
+ export interface Viewport {
8
+ width: number;
9
+ height: number;
10
+ }
11
+ export declare function holePath(viewport: Viewport, target: Box | null, pad: number, radius: number): string;
12
+ export declare function placeBubble(viewport: Viewport, target: Box | null, bubble: {
13
+ width: number;
14
+ height: number;
15
+ }, gap: number, margin: number): {
16
+ x: number;
17
+ y: number;
18
+ side: "above" | "below" | "center" | "inside";
19
+ tail: {
20
+ x: number;
21
+ } | null;
22
+ };
@@ -1,5 +1,6 @@
1
1
  export declare const THUMB_SIZE = 31;
2
2
  export declare const THUMB_CLASS = "block size-7 shrink-0 rounded-xl shadow-[0_2px_5px_oklch(0_0_0/0.35),inset_0_1px_0_oklch(1_0_0/0.35),inset_0_-2px_3px_oklch(0_0_0/0.2)]";
3
+ export declare const THUMB_FACE_ON = "oklch(from var(--primary) var(--thumb-on-l) min(c, var(--thumb-on-c)) h)";
3
4
  export declare const THUMB_COLOR_RING = "border-2 border-white/90";
4
5
  export declare const THUMB_RAIL_PAD = "px-3.5";
5
6
  export declare const THUMB_RAIL_BLEED = "-mx-3.5";
@@ -1,4 +1,4 @@
1
- export declare const TIER_BADGE_CLASS = "inline-flex cursor-default select-none items-center rounded-full px-2 py-0.5 font-black text-[10px] tracking-wide";
1
+ export declare const TIER_BADGE_CLASS = "inline-flex cursor-default select-none items-center rounded-lg px-2 py-0.5 font-black text-[10px] tracking-wide";
2
2
  /** Optional sweep shaping. Default is the symmetric brushed look (both ends
3
3
  * `hi`, dipping to `lo` at the midpoint). The collectible/license golds are a
4
4
  * lit bevel instead: they dip early and land on a darker `end`. */
@@ -1,7 +1,12 @@
1
1
  import { Button as KobalteButton } from "@kobalte/core/button";
2
2
  import type { VariantProps } from "cva";
3
- import { type ComponentProps } from "solid-js";
3
+ import { type ComponentProps, type JSX } from "solid-js";
4
4
  import { buttonVariants } from "../lib/button-variants.js";
5
5
  type ButtonProps = ComponentProps<typeof KobalteButton> & VariantProps<typeof buttonVariants>;
6
- declare function Button(props: ButtonProps): import("solid-js").JSX.Element;
7
- export { Button, buttonVariants };
6
+ declare function Button(props: ButtonProps): JSX.Element;
7
+ declare function ButtonWell(props: {
8
+ icon?: string;
9
+ children?: JSX.Element;
10
+ class?: string;
11
+ }): JSX.Element;
12
+ export { Button, ButtonWell, buttonVariants };
@@ -9,6 +9,8 @@ interface DockItem {
9
9
  isActive?: boolean;
10
10
  /** Optional count badge on the item (e.g. pending updates). */
11
11
  badge?: number;
12
+ /** Something dragged is held over this item and will land here on release. */
13
+ isDropTarget?: boolean;
12
14
  }
13
15
  interface DockProps extends ComponentProps<"div"> {
14
16
  items: DockItem[];
@@ -21,6 +23,11 @@ interface DockProps extends ComponentProps<"div"> {
21
23
  } | null;
22
24
  /** A rim light that orbits for as long as a mode is on. */
23
25
  glow?: boolean;
26
+ /** Where a drag from outside the dock is pointing, in client coordinates. */
27
+ dragPoint?: {
28
+ x: number;
29
+ y: number;
30
+ } | null;
24
31
  }
25
32
  interface DockIconButtonProps extends ComponentProps<"button"> {
26
33
  icon: Component<{
@@ -28,6 +35,8 @@ interface DockIconButtonProps extends ComponentProps<"button"> {
28
35
  }> | JSX.Element;
29
36
  label: string;
30
37
  isActive?: boolean;
38
+ /** Sits on the sliding pill: the active item, or the one a drag would land on. */
39
+ lit?: boolean;
31
40
  badge?: number;
32
41
  }
33
42
  declare const Dock: Component<DockProps>;
@@ -0,0 +1,11 @@
1
+ import type { JSX } from "solid-js";
2
+ export declare function DockedPanel(props: {
3
+ open: boolean;
4
+ ariaLabel: string;
5
+ collapsed?: boolean;
6
+ onCollapsedChange?: (collapsed: boolean) => void;
7
+ class?: string;
8
+ children: JSX.Element;
9
+ }): JSX.Element;
10
+ declare const DockedPanelHeader: import("solid-js").Component<import("./dialog-parts.js").ModalHeaderProps>, DockedPanelBody: import("solid-js").Component<import("./dialog-parts.js").ModalBodyProps>, DockedPanelFooter: import("solid-js").Component<JSX.HTMLAttributes<HTMLDivElement>>;
11
+ export { DockedPanelBody, DockedPanelFooter, DockedPanelHeader };
@@ -1,6 +1,6 @@
1
1
  export { type Color, parseColor } from "@kobalte/core/colors";
2
2
  export { SECTION_ROW_SURFACE } from "../lib/card-classes.js";
3
- export { RISE_MOTION } from "../lib/motion-classes.js";
3
+ export { RISE_MOTION, SETTLE_MOTION, TRAVEL_MOTION } from "../lib/motion-classes.js";
4
4
  export { OVERLAY_SURFACE } from "../lib/overlay-classes.js";
5
5
  export { SECTION_INNER_RADIUS, SECTION_OUTER_RADIUS, SECTION_PADDING, SECTION_ROW_CLASS, } from "../lib/section-tokens.js";
6
6
  export { Accordion, AccordionContent, AccordionItem, AccordionTrigger, } from "./accordion.js";
@@ -12,7 +12,7 @@ export { Avatar, AvatarFallback, AvatarImage } from "./avatar.js";
12
12
  export { Badge, TierBadge } from "./badge.js";
13
13
  export { BottomSheet, BottomSheetBody, BottomSheetClose, BottomSheetContent, BottomSheetDescription, BottomSheetFooter, BottomSheetHandle, BottomSheetHeader, BottomSheetOverlay, BottomSheetPortal, BottomSheetTitle, BottomSheetTrigger, } from "./bottom-sheet/index.js";
14
14
  export { Breadcrumb, BreadcrumbEllipsis, BreadcrumbItem, BreadcrumbLink, BreadcrumbList, BreadcrumbPage, BreadcrumbSeparator, } from "./breadcrumb.js";
15
- export { Button, buttonVariants } from "./button.js";
15
+ export { Button, ButtonWell, buttonVariants } from "./button.js";
16
16
  export { ButtonGroup, ButtonGroupSeparator, ButtonGroupText, buttonGroupVariants, } from "./button-group.js";
17
17
  export { Card, CardAction, CardContent, CardDescription, CardFooter, CardHeader, CardTitle, } from "./card.js";
18
18
  export type { CarouselApi, CarouselTransition } from "./carousel.js";
@@ -30,6 +30,7 @@ export { Dialog, DialogBody, DialogClose, DialogContent, DialogDescription, Dial
30
30
  export type { ModalSize } from "./dialog-parts.js";
31
31
  export type { DockIconButtonProps, DockItem, DockProps } from "./dock.js";
32
32
  export { Dock } from "./dock.js";
33
+ export { DockedPanel, DockedPanelBody, DockedPanelFooter, DockedPanelHeader, } from "./docked-panel.js";
33
34
  export { DropdownMenu, DropdownMenuCheckboxItem, DropdownMenuContent, DropdownMenuGroup, DropdownMenuItem, DropdownMenuLabel, DropdownMenuRadioGroup, DropdownMenuRadioItem, DropdownMenuSeparator, DropdownMenuShortcut, DropdownMenuSub, DropdownMenuSubContent, DropdownMenuSubTrigger, DropdownMenuTrigger, } from "./dropdown-menu.js";
34
35
  export { Empty, EmptyContent, EmptyDescription, EmptyHeader, EmptyMedia, EmptyTitle, } from "./empty.js";
35
36
  export { type AreaViewLike, type EntityDataAdapter, EntityDataContext, type EntityViewLike, provideEntityData, useEntityData, } from "./entity-data.js";
@@ -62,6 +63,7 @@ export { PICKER_ROW_HEIGHT, PickerRow } from "./picker-row.js";
62
63
  export { PickerSearch, type PickerSearchProps } from "./picker-search.js";
63
64
  export { PickerTrigger, type PickerTriggerProps } from "./picker-trigger.js";
64
65
  export { Popover, PopoverAnchor, PopoverContent, PopoverTrigger, } from "./popover.js";
66
+ export { PreviewTile, PreviewTileGroup } from "./preview-tile.js";
65
67
  export { Progress } from "./progress.js";
66
68
  export { RadioGroup, RadioGroupItem } from "./radio-group.js";
67
69
  export { ResizableHandle, ResizablePanel, ResizablePanelGroup, } from "./resizable.js";
@@ -79,7 +81,9 @@ export { Slider } from "./slider.js";
79
81
  export { SlidingIndicator } from "./sliding-indicator.js";
80
82
  export { GlassToast, Toaster, toast } from "./sonner.js";
81
83
  export { Spinner } from "./spinner.js";
84
+ export { Spotlight } from "./spotlight.js";
82
85
  export { StepIndicator } from "./step-indicator.js";
86
+ export { SwatchPicker } from "./swatch-picker.js";
83
87
  export { Switch } from "./switch.js";
84
88
  export { TABLE_CELL_INSET, Table, TableBody, TableCaption, TableCell, TableFooter, TableHead, TableHeader, TableRow, } from "./table.js";
85
89
  export { Tabs, TabsContent, TabsList, TabsTrigger } from "./tabs.js";