@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 +2 -1
- package/dist/index.js +2 -2
- package/dist/lib/card-classes.d.ts +1 -0
- package/dist/lib/overlay-classes.d.ts +1 -1
- package/dist/solid/index.d.ts +1 -1
- package/dist/solid/index.js +3983 -3863
- package/dist/solid/section-card.d.ts +41 -1
- package/dist/tokens/index.js +6 -6
- package/dist/{utils-CiJUMt2j.js → utils-CIwpbaOd.js} +638 -638
- package/package.json +1 -1
- package/scripts/check-ui-drift.mjs +5 -0
- package/src/lib/card-classes.ts +6 -0
- package/src/lib/overlay-classes.ts +4 -3
- package/src/styles/theme.css +51 -19
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
|
|
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,
|
|
2
|
-
export {
|
|
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-
|
|
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;
|
package/dist/solid/index.d.ts
CHANGED
|
@@ -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";
|