@glasshome/ui 1.17.0 → 1.18.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 +1 -1
- package/dist/index.js +2 -2
- package/dist/lib/button-variants.d.ts +1 -1
- package/dist/lib/pill-classes.d.ts +1 -1
- package/dist/lib/thumb-classes.d.ts +1 -0
- package/dist/lib/tier-badge.d.ts +1 -1
- package/dist/solid/index.js +4001 -4001
- package/dist/tokens/index.d.ts +2 -0
- package/dist/tokens/index.js +203 -7
- package/dist/tokens/readability.d.ts +21 -0
- package/dist/tokens/theme-recipe.d.ts +25 -0
- package/dist/{utils-DMaksjvy.js → utils-COITV1s9.js} +327 -327
- package/package.json +1 -1
- package/src/lib/button-variants.ts +6 -4
- package/src/lib/pill-classes.ts +4 -3
- package/src/lib/thumb-classes.ts +7 -0
- package/src/lib/tier-badge.ts +1 -1
- package/src/solid/carousel.tsx +2 -2
- package/src/solid/data-table.tsx +2 -2
- package/src/solid/icon-picker.tsx +1 -1
- package/src/solid/media-tile.tsx +1 -1
- package/src/solid/switch.tsx +5 -2
- package/src/styles/theme.css +9 -3
- package/src/tokens/index.ts +2 -0
- package/src/tokens/presets.ts +6 -6
- package/src/tokens/readability.ts +67 -0
- package/src/tokens/theme-recipe.ts +147 -0
package/SPEC.md
CHANGED
|
@@ -108,7 +108,7 @@ role clears 4.5:1 against `--background`/`--card`/`--popover`/`--muted` (3:1 for
|
|
|
108
108
|
| 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
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 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-
|
|
111
|
+
| a status chip | `<Badge tone="var(--success)">` | `rounded-lg bg-green-500/10` |
|
|
112
112
|
| a callout | `<Alert tone="warning">` | `border-amber-500/30 bg-amber-500/10` |
|
|
113
113
|
| a labelled group inside a card | `<SectionGroup icon label count action>` | a hand-rolled `SectionIcon` + `SectionSubtitle` header row |
|
|
114
114
|
| a titled group of form rows | `<FieldSet>` + `<FieldLegend>` (+ `<FieldDescription>`) | a tracked uppercase `SectionLabel` eyebrow |
|
package/dist/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { $ as e, A as t,
|
|
1
|
+
import { $ as e, A as t, At as n, B as r, C as i, Ct as a, D as ee, Dt as te, E as o, F as s, Ft as c, Gt as l, H as u, Ht as d, I as f, It as p, J as m, Jt as h, K as g, Kt as _, L as v, Lt as y, M as b, Mt as x, N as S, Nt as C, O as w, Ot as T, P as E, Pt as D, Q as O, Qt 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, Xt as H, Y as U, Yt as W, Z as G, Zt as K, _ as q, at as J, b as Y, bt as ne, c as X, ct as Z, d as re, dt as ie, et as ae, f as oe, g as se, h as ce, i as le, it as ue, j as de, k as fe, kt as pe, l as me, lt as he, m as ge, n as _e, nt as ve, ot as ye, p 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, v as Q, vt as ke, w as Ae, wt as je, x as Me, y as Ne, yt as Pe, z as Fe, zt as Ie } from "./utils-COITV1s9.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 {
|
|
20
|
+
export { R as ALERT_CLASS, d as ALERT_CONTENT_CLASS, I as ALERT_DESCRIPTION_CLASS, B as ALERT_ICON_BG_CLASS, l as ALERT_ICON_CLASS, _ as ALERT_ICON_PATHS, xe as ALERT_TITLE_CLASS, h as ALERT_TONES, c as BUTTON_DEFAULT_CLASS, p as BUTTON_OUTLINE_CLASS, ie as CARD_BLUR, ke as CARD_SURFACE, Pe as CARD_SURFACE_BASE, ne as CARD_SURFACE_OPAQUE, U as CAROUSEL_DOTS, V as CAROUSEL_VIEWPORT, ce as CHIP, ve as CONTROL_H, Q as CONTROL_H_TOUCH, Ce as FIELD_CHROME, ue as FIELD_CONTROL, P as FIELD_MOTION, J as FIELD_TEXT, Me as FLOATING_PANEL, ye as FOCUS_RING, y as ICON_BUTTON_CLASS, se as ICON_PILL, q as ICON_PILL_TINT, Te as INPUT_CLASS, Z as INPUT_SURFACE, he as INVALID_RING, S as LOGO_DEFAULT_SIZE, E as LOGO_DEFAULT_SRC, s as LOGO_DEFAULT_SUB, f as LOGO_MARK_CLASS, v as LOGO_MARK_PX, A as LOGO_NAME_CLASS, Fe as LOGO_ROOT_CLASS, r as LOGO_SIZES, L as LOGO_STACK_CLASS, u as LOGO_SUB_CLASS, w as MENU_ITEM, fe as MENU_ITEM_BASE, t as MENU_ITEM_X, de as MENU_LABEL, b as MENU_SEPARATOR, _e as MOBILE_BREAKPOINT, te as MODAL_MOTION, T as MORPH_MOTION, $ as MOTION_WINDOW_MS, j as OUTLINE_SURFACE, M as OVERLAY_BLUR, pe as OVERLAY_MOTION, i as OVERLAY_SURFACE, Ae as OVERLAY_SURFACE_BASE, N as OVERLAY_SURFACE_OPAQUE, Ne as PICKER_LIST, Y as PICKER_TRIGGER, ae as POSITION_BAR, De as POSITION_BAR_LIT, n as PRESS_DIP, o as SCRIM_CLASS, x as SCRIM_MOTION, re as SECTION_INNER_RADIUS, oe as SECTION_OUTER_RADIUS, be as SECTION_PADDING, ge as SECTION_ROW_CLASS, a as SECTION_ROW_SURFACE, Oe as SEGMENT_ITEM, C as SETTLE_MOTION, D as STAGGER, le as THUMB_CLASS, we as THUMB_RAIL_BLEED, X as THUMB_RAIL_PAD, me as THUMB_SIZE, je as TRACK_SURFACE, F as Z, z as Z_CLASS, W as alertBorder, H as alertFill, K as alertIconBgStyle, k as alertIconFill, ee as anchorToTriggerTop, Ie as buttonVariants, G as carouselDot, O as carouselItem, e as carouselTrack, Ee as cn, Se as createIsMobile, g as glassToneText, Le as startMotionWindow, m as toneTextMix };
|
|
@@ -63,4 +63,4 @@ export declare const buttonVariants: import("cva").CVAComponent<Omit<{
|
|
|
63
63
|
}>;
|
|
64
64
|
export declare const BUTTON_DEFAULT_CLASS: string;
|
|
65
65
|
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-
|
|
66
|
+
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,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-
|
|
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%]";
|
|
@@ -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";
|
package/dist/lib/tier-badge.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export declare const TIER_BADGE_CLASS = "inline-flex cursor-default select-none items-center rounded-
|
|
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`. */
|