@glasshome/ui 1.7.0 → 1.9.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/SPEC.md CHANGED
@@ -109,6 +109,7 @@ role clears 4.5:1 against `--background`/`--card`/`--popover`/`--muted` (3:1 for
109
109
  | a form inside a modal | `<Body as="form" id="…">` + a footer button with `form="…"` | a `display: contents` form wrapper inside the Body |
110
110
  | a status chip | `<Badge tone="var(--success)">` | `rounded-full bg-green-500/10` |
111
111
  | a callout | `<Alert tone="warning">` | `border-amber-500/30 bg-amber-500/10` |
112
+ | a labelled group inside a card | `<SectionGroup icon label count action>` | a hand-rolled `SectionIcon` + `SectionSubtitle` header row |
112
113
  | a titled group of form rows | `<FieldSet>` + `<FieldLegend>` (+ `<FieldDescription>`) | a tracked uppercase `SectionLabel` eyebrow |
113
114
  | rows that belong to the row above them | `<FieldSubGroup>` | a bare `<Separator>` and a left pad |
114
115
  | picking one of a few described choices | `<OptionCardGroup>` + `<OptionCard>` | a hand-rolled `role="radio"` card list |
@@ -180,5 +181,5 @@ Checklist for a new component:
180
181
  around, cascade requirements, a11y invariants). One line each.
181
182
 
182
183
  Guards: `bun run check:tokens` (theme.css ↔ tokens/presets.ts sync) here;
183
- `bun run ui:check` in the apps (deny-by-default drift scan; escape with a
184
+ `bun gov check --only ui-drift` in dash (deny-by-default drift scan for every app; escape with a
184
185
  `ui-drift-ok <reason>` line comment only for genuinely bespoke art).
package/dist/index.js CHANGED
@@ -1,2 +1,2 @@
1
- import { $ as e, A as t, At as n, B as r, Bt as i, C as a, D as o, Dt as s, E as c, Et as l, F as u, Ft as d, G as f, Gt as p, H as m, Ht as h, I as g, J as _, Jt as v, K as y, Kt as b, L as x, Lt as S, M as C, Mt as w, N as T, Nt as E, O as D, P as O, Pt as k, R as A, Rt as j, S as M, T as N, Tt as P, U as F, Ut as I, V as L, Vt as R, W as z, Wt as B, X as V, Y as H, Z as U, _ as W, at as G, b as K, c as q, ct as J, d as Y, dt as X, f as Z, ft as Q, g as $, gt as ee, h as te, ht as ne, i as re, it as ie, j as ae, jt as oe, k as se, kt as ce, l as le, lt as ue, m as de, mt as fe, n as pe, nt as me, o as he, ot as ge, p as _e, pt 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 ke, vt as Ae, w as je, x as Me, y as Ne, z as Pe, zt as Fe } from "./utils-CiJUMt2j.js";
2
- export { S as ALERT_CLASS, j as ALERT_CONTENT_CLASS, Fe as ALERT_DESCRIPTION_CLASS, i as ALERT_ICON_BG_CLASS, R as ALERT_ICON_CLASS, h as ALERT_ICON_PATHS, I as ALERT_TITLE_CLASS, B as ALERT_TONES, oe as BUTTON_DEFAULT_CLASS, w as BUTTON_OUTLINE_CLASS, Ae as CARD_BLUR, P as CARD_SURFACE, l as CARD_SURFACE_BASE, s as CARD_SURFACE_OPAQUE, me as CAROUSEL_DOTS, Se as CAROUSEL_VIEWPORT, de as CHIP, ue as CONTROL_H, W as CONTROL_H_TOUCH, Oe as FIELD_CHROME, X as FIELD_CONTROL, o as FIELD_MOTION, Q as FIELD_TEXT, K as FLOATING_PANEL, ve as FOCUS_RING, E as ICON_BUTTON_CLASS, te as ICON_PILL, $ as ICON_PILL_TINT, fe as INPUT_CLASS, ne as INPUT_SURFACE, ee as INVALID_RING, r as LOGO_DEFAULT_SIZE, L as LOGO_DEFAULT_SRC, m as LOGO_DEFAULT_SUB, F as LOGO_MARK_CLASS, z as LOGO_MARK_PX, f as LOGO_NAME_CLASS, y as LOGO_ROOT_CLASS, ye as LOGO_SIZES, _ as LOGO_STACK_CLASS, H as LOGO_SUB_CLASS, u as MENU_ITEM, g as MENU_ITEM_BASE, x as MENU_ITEM_X, A as MENU_LABEL, Pe as MENU_SEPARATOR, pe as MOBILE_BREAKPOINT, D as MODAL_MOTION, se as MORPH_MOTION, k as OUTLINE_SURFACE, Me as OVERLAY_BLUR, t as OVERLAY_MOTION, M as OVERLAY_SURFACE, a as OVERLAY_SURFACE_BASE, je as OVERLAY_SURFACE_OPAQUE, ke as PICKER_LIST, Ne as PICKER_TRIGGER, we as POSITION_BAR, J as POSITION_BAR_LIT, ae as PRESS_DIP, N as SCRIM_CLASS, C as SCRIM_MOTION, De as SECTION_INNER_RADIUS, Y as SECTION_OUTER_RADIUS, Z as SECTION_PADDING, _e as SECTION_ROW_CLASS, ce as SECTION_ROW_SURFACE, le as SEGMENT_ITEM, T as SETTLE_MOTION, O as STAGGER, re as THUMB_CLASS, he as THUMB_RAIL_BLEED, Ce as THUMB_RAIL_PAD, q as THUMB_SIZE, n as TRACK_SURFACE, V as Z, U as Z_CLASS, p as alertBorder, b as alertFill, be as alertIconBgStyle, v as alertIconFill, c as anchorToTriggerTop, d as buttonVariants, ie as carouselDot, G as carouselItem, ge as carouselTrack, Te as cn, xe as createIsMobile, e as glassToneText, Ee as toneTextMix };
1
+ import { $ as e, A as t, At as n, B as r, Bt as i, C as a, Ct as o, D as s, Dt as c, E as l, Et as u, F as d, Ft as f, G as p, Gt as m, H as h, Ht as g, I as _, It as v, J as y, Jt as b, Kt as x, L as S, M as C, Mt as w, N as T, Nt as E, O as D, Ot as O, P as k, Pt as A, Q as j, R as M, Rt as N, S as P, St as F, T as I, Tt as L, U as R, Ut as z, V as B, Vt as V, Wt as H, X as U, Y as W, Yt as G, Z as K, _ as q, _t as J, at as Y, b as X, c as Z, ct as Q, d as $, et as ee, f as te, g as ne, h as re, i as ie, it as ae, j as oe, jt as se, k as ce, kt as le, l as ue, m as de, n as fe, nt as pe, o as me, ot as he, p as ge, q as _e, qt as ve, r as ye, rt as be, s as xe, st as Se, t as Ce, tt as we, u as Te, ut as Ee, v as De, vt as Oe, w as ke, wt as Ae, x as je, y as Me, yt as Ne, z as Pe, zt as Fe } from "./utils-CIwpbaOd.js";
2
+ export { N as ALERT_CLASS, Fe as ALERT_CONTENT_CLASS, i as ALERT_DESCRIPTION_CLASS, V as ALERT_ICON_BG_CLASS, g as ALERT_ICON_CLASS, z as ALERT_ICON_PATHS, H as ALERT_TITLE_CLASS, m as ALERT_TONES, w as BUTTON_DEFAULT_CLASS, E as BUTTON_OUTLINE_CLASS, Ee as CARD_BLUR, J as CARD_SURFACE, Oe as CARD_SURFACE_BASE, Ne as CARD_SURFACE_OPAQUE, y as CAROUSEL_DOTS, W as CAROUSEL_VIEWPORT, de as CHIP, we as CONTROL_H, q as CONTROL_H_TOUCH, pe as FIELD_CHROME, be as FIELD_CONTROL, Ae as FIELD_MOTION, ae as FIELD_TEXT, X as FLOATING_PANEL, Y as FOCUS_RING, A as ICON_BUTTON_CLASS, re as ICON_PILL, ne as ICON_PILL_TINT, he as INPUT_CLASS, Se as INPUT_SURFACE, Q as INVALID_RING, C as LOGO_DEFAULT_SIZE, T as LOGO_DEFAULT_SRC, k as LOGO_DEFAULT_SUB, d as LOGO_MARK_CLASS, _ as LOGO_MARK_PX, S as LOGO_NAME_CLASS, M as LOGO_ROOT_CLASS, Pe as LOGO_SIZES, r as LOGO_STACK_CLASS, B as LOGO_SUB_CLASS, s as MENU_ITEM, D as MENU_ITEM_BASE, ce as MENU_ITEM_X, t as MENU_LABEL, oe as MENU_SEPARATOR, fe as MOBILE_BREAKPOINT, L as MODAL_MOTION, u as MORPH_MOTION, f as OUTLINE_SURFACE, je as OVERLAY_BLUR, c as OVERLAY_MOTION, P as OVERLAY_SURFACE, a as OVERLAY_SURFACE_BASE, ke as OVERLAY_SURFACE_OPAQUE, De as PICKER_LIST, Me as PICKER_TRIGGER, e as POSITION_BAR, ee as POSITION_BAR_LIT, O as PRESS_DIP, I as SCRIM_CLASS, le as SCRIM_MOTION, Te as SECTION_INNER_RADIUS, $ as SECTION_OUTER_RADIUS, te as SECTION_PADDING, ge as SECTION_ROW_CLASS, F as SECTION_ROW_SURFACE, ue as SEGMENT_ITEM, n as SETTLE_MOTION, se as STAGGER, ie as THUMB_CLASS, me as THUMB_RAIL_BLEED, xe as THUMB_RAIL_PAD, Z as THUMB_SIZE, o as TRACK_SURFACE, h as Z, R as Z_CLASS, x as alertBorder, ve as alertFill, b as alertIconBgStyle, G as alertIconFill, l as anchorToTriggerTop, v as buttonVariants, U as carouselDot, K as carouselItem, j as carouselTrack, Ce as cn, ye as createIsMobile, p as glassToneText, _e as toneTextMix };
@@ -12,6 +12,7 @@ export declare const CARD_PADDING: {
12
12
  };
13
13
  export type CardPadding = keyof typeof CARD_PADDING;
14
14
  export declare const CARD_INTERACTIVE = "cursor-pointer transition-glass hover:[--glass-light:0.09] focus-within:[--glass-edge:var(--border)]";
15
+ export declare const SECTION_ROW_INTERACTIVE = "cursor-pointer transition-glass hover:[--glass-light:0.09] focus-within:[--glass-edge:var(--border)] active:scale-[0.97] outline-none focus-visible:ring-[3px] focus-visible:ring-ring/50 has-[:focus-visible]:ring-[3px] has-[:focus-visible]:ring-ring/50";
15
16
  export declare const CARD_HEADER_CLASS = "@container/card-header grid auto-rows-min grid-rows-[auto_auto] items-start gap-1.5 has-data-[slot=card-action]:grid-cols-[1fr_auto]";
16
17
  export declare const CARD_TITLE_CLASS = "font-semibold leading-none";
17
18
  export declare const CARD_DESCRIPTION_CLASS = "text-muted-foreground text-sm";
@@ -2,7 +2,7 @@ export declare const OVERLAY_BLUR = "backdrop-blur-[var(--glass-blur,24px)] back
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
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]";
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
- export declare const SCRIM_CLASS = "bg-background/70 backdrop-blur-md";
5
+ export declare const SCRIM_CLASS = "bg-scrim backdrop-blur-md";
6
6
  export declare const FLOATING_PANEL: string;
7
7
  export declare const anchorToTriggerTop: (anchor?: HTMLElement) => {
8
8
  x: number;
@@ -66,7 +66,7 @@ export { ResponsiveDialog, ResponsiveDialogBody, ResponsiveDialogClose, Responsi
66
66
  export { type ExtendedJSONSchema, SCHEMA_FORM_FORM_TYPES, SchemaForm, } from "./schema-form.js";
67
67
  export { ScopeIndicator } from "./scope-indicator.js";
68
68
  export { ScrollArea, ScrollBar } from "./scroll-area.js";
69
- export { type GlassSurface, NOOP_GLASS, SectionCard, SectionIcon, SectionLabel, SectionMeta, SectionRow, SectionRowSkeleton, SectionRowSkeletons, SectionSubtitle, SectionTitle, } from "./section-card.js";
69
+ export { type GlassSurface, ListRow, NOOP_GLASS, SectionCard, SectionGroup, SectionIcon, SectionLabel, SectionMeta, SectionRow, SectionRowSkeleton, SectionRowSkeletons, SectionSubtitle, SectionTitle, } from "./section-card.js";
70
70
  export { Select, SelectContent, SelectGroup, SelectItem, SelectLabel, SelectSeparator, SelectTrigger, SelectValue, } from "./select.js";
71
71
  export { Separator } from "./separator.js";
72
72
  export { LabeledField, LabeledIconPicker, LabeledInput, RowActions, SectionAddButton, SectionEmpty, SwitchRow, } from "./settings-row.js";