@glasshome/ui 1.16.1 → 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 +7 -3
- package/dist/backgrounds/geometric-houses.d.ts +1 -0
- package/dist/backgrounds/index.d.ts +1 -0
- package/dist/backgrounds/index.js +4 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.js +20 -2
- package/dist/lib/button-variants.d.ts +1 -1
- package/dist/lib/motion-window.d.ts +5 -0
- 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 +8 -2
- package/src/backgrounds/geometric-houses.ts +103 -0
- package/src/backgrounds/index.ts +1 -0
- package/src/index.ts +1 -0
- package/src/lib/button-variants.ts +6 -4
- package/src/lib/motion-window.ts +34 -0
- 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 |
|
|
@@ -119,6 +119,8 @@ role clears 4.5:1 against `--background`/`--card`/`--popover`/`--muted` (3:1 for
|
|
|
119
119
|
| position inside a multi-step flow | `<StepIndicator count index>` | a hand-rolled row of dots |
|
|
120
120
|
| tinted text alone | `glassToneText(tone)` | ad-hoc color-mix |
|
|
121
121
|
| a metallic tier chip | `<TierBadge>` | gradients by hand |
|
|
122
|
+
| the ambient motion window | `startMotionWindow()` | an app-local timer writing `data-motion` |
|
|
123
|
+
| a built-in wallpaper | `GEOMETRIC_HOUSES_SVG` from `@glasshome/ui/backgrounds` | an app's own copy of the SVG |
|
|
122
124
|
|
|
123
125
|
Server-run `.astro` markup imports `@glasshome/ui/solid` too: the `solid`
|
|
124
126
|
export condition hands Astro the source, and a component with no `client:`
|
|
@@ -148,8 +150,10 @@ Motion is one system, not per-component flair. Four rules, all held by
|
|
|
148
150
|
the arrival time. Pressables dip (`PRESS_DIP`).
|
|
149
151
|
5. **Ambient motion is an event.** A wallpaper or decorative loop runs for a
|
|
150
152
|
window after mount or a touch, then freezes mid-phase; an idle screen
|
|
151
|
-
animates nothing.
|
|
152
|
-
|
|
153
|
+
animates nothing. `startMotionWindow()` (package root) holds
|
|
154
|
+
`html[data-motion="live"]` for the window: 30 s, woken by `pointerdown`,
|
|
155
|
+
frozen on tab hide. Dash wraps it as `createMotionWindow` for Solid's
|
|
156
|
+
lifecycle; hub calls it directly. Light-DOM loops gate on that attribute,
|
|
153
157
|
widget shadow roots on the inherited `--motion-ambient` (1 live, else 0)
|
|
154
158
|
or, for a loop that can only pause, `--motion-play` (`running` live, else
|
|
155
159
|
`paused`). A wrapper with `data-motion="still"` opts out: thumbnails are
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const GEOMETRIC_HOUSES_SVG = "<svg width=\"100%\" height=\"100%\" xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 100 100\" preserveAspectRatio=\"xMidYMid slice\">\n <style>\n .house-shape { opacity: 0.9; filter: blur(0.2px); transform: translate(var(--tx), var(--ty)) rotate(var(--rot)); }\n\n @keyframes pop {\n 0% { transform: scale(0.88); opacity: 0; }\n 100% { transform: scale(1); opacity: 1; }\n }\n\n .h1 { --tx: 12px; --ty: 20px; --rot: 12deg; }\n .h1 .house-pop { animation: pop 2.2s cubic-bezier(0.16, 1, 0.3, 1) 0.10s; }\n .h2 { --tx: 85px; --ty: 25px; --rot: -15deg; }\n .h2 .house-pop { animation: pop 2.2s cubic-bezier(0.16, 1, 0.3, 1) 0.40s; }\n .h3 { --tx: 15px; --ty: 75px; --rot: -8deg; }\n .h3 .house-pop { animation: pop 2.2s cubic-bezier(0.16, 1, 0.3, 1) 0.70s; }\n .h4 { --tx: 70px; --ty: 10px; --rot: 20deg; }\n .h4 .house-pop { animation: pop 2.2s cubic-bezier(0.16, 1, 0.3, 1) 1.00s; }\n .h5 { --tx: 35px; --ty: 8px; --rot: -25deg; }\n .h5 .house-pop { animation: pop 2.2s cubic-bezier(0.16, 1, 0.3, 1) 1.30s; }\n .h6 { --tx: 55px; --ty: 55px; --rot: 18deg; }\n .h6 .house-pop { animation: pop 2.2s cubic-bezier(0.16, 1, 0.3, 1) 1.60s; }\n\n .house-shape .house-pop { animation-play-state: paused; }\n [data-motion=\"live\"] .house-shape .house-pop { animation-play-state: running; }\n [data-motion=\"still\"] .house-shape .house-pop { animation-play-state: paused; }\n\n @media (prefers-reduced-motion: reduce) {\n .house-pop { animation: none; }\n }\n </style>\n\n <defs>\n <linearGradient id=\"grad1\" x1=\"0%\" y1=\"0%\" x2=\"100%\" y2=\"100%\">\n <stop offset=\"0%\" style=\"stop-color:var(--primary, oklch(0.48 0.2 215.221));stop-opacity:0.28\" />\n <stop offset=\"100%\" style=\"stop-color:var(--accent, oklch(0.6 0.2 195));stop-opacity:0.06\" />\n </linearGradient>\n <linearGradient id=\"grad2\" x1=\"0%\" y1=\"0%\" x2=\"100%\" y2=\"100%\">\n <stop offset=\"0%\" style=\"stop-color:var(--accent, oklch(0.6 0.2 195));stop-opacity:0.30\" />\n <stop offset=\"100%\" style=\"stop-color:var(--secondary, oklch(0.11 0.003 0));stop-opacity:0.08\" />\n </linearGradient>\n <linearGradient id=\"grad3\" x1=\"0%\" y1=\"0%\" x2=\"100%\" y2=\"100%\">\n <stop offset=\"0%\" style=\"stop-color:var(--primary, oklch(0.48 0.2 215.221));stop-opacity:0.35\" />\n <stop offset=\"100%\" style=\"stop-color:var(--accent, oklch(0.6 0.2 195));stop-opacity:0.10\" />\n </linearGradient>\n <linearGradient id=\"grad4\" x1=\"0%\" y1=\"0%\" x2=\"100%\" y2=\"100%\">\n <stop offset=\"0%\" style=\"stop-color:var(--secondary, oklch(0.11 0.003 0));stop-opacity:0.22\" />\n <stop offset=\"100%\" style=\"stop-color:var(--primary, oklch(0.48 0.2 215.221));stop-opacity:0.04\" />\n </linearGradient>\n <linearGradient id=\"grad5\" x1=\"0%\" y1=\"0%\" x2=\"100%\" y2=\"100%\">\n <stop offset=\"0%\" style=\"stop-color:var(--accent, oklch(0.6 0.2 195));stop-opacity:0.25\" />\n <stop offset=\"100%\" style=\"stop-color:var(--primary, oklch(0.48 0.2 215.221));stop-opacity:0.05\" />\n </linearGradient>\n <linearGradient id=\"grad6\" x1=\"0%\" y1=\"0%\" x2=\"100%\" y2=\"100%\">\n <stop offset=\"0%\" style=\"stop-color:var(--primary, oklch(0.48 0.2 215.221));stop-opacity:0.32\" />\n <stop offset=\"100%\" style=\"stop-color:var(--secondary, oklch(0.11 0.003 0));stop-opacity:0.07\" />\n </linearGradient>\n <linearGradient id=\"overlay\" x1=\"0%\" y1=\"100%\" x2=\"100%\" y2=\"0%\">\n <stop offset=\"0%\" style=\"stop-color:var(--primary, oklch(0.48 0.2 215.221));stop-opacity:0.20\" />\n <stop offset=\"50%\" style=\"stop-color:transparent;stop-opacity:0\" />\n <stop offset=\"100%\" style=\"stop-color:var(--accent, oklch(0.6 0.2 195));stop-opacity:0.40\" />\n </linearGradient>\n\n <path id=\"house\" d=\"M 50,4 C 52,4 53.5,4.7 54.5,6 L 86,38 C 88.8,40.2 90,43 90,46 L 90,90 C 90,93.8 87.8,96 84,96 L 16,96 C 12.2,96 10,93.8 10,90 L 10,46 C 10,43 11.2,40.2 14,38 L 45.5,6 C 46.5,4.7 48,4 50,4 Z\"/>\n </defs>\n\n <rect width=\"100%\" height=\"100%\" fill=\"var(--background, oklch(0.12 0.005 0))\"/>\n\n <g class=\"house-shape h1\">\n <g class=\"house-pop\">\n <use href=\"#house\" transform=\"translate(-15, -15) scale(0.31)\" fill=\"url(#grad1)\" stroke=\"var(--primary, oklch(0.48 0.2 215.221))\" stroke-opacity=\"0.35\" stroke-width=\"0.5\"/>\n </g>\n </g>\n <g class=\"house-shape h2\">\n <g class=\"house-pop\">\n <use href=\"#house\" transform=\"translate(-13, -12) scale(0.26)\" fill=\"url(#grad2)\" stroke=\"var(--accent, oklch(0.6 0.2 195))\" stroke-opacity=\"0.40\" stroke-width=\"0.5\"/>\n </g>\n </g>\n <g class=\"house-shape h3\">\n <g class=\"house-pop\">\n <use href=\"#house\" transform=\"translate(-8, -8) scale(0.16)\" fill=\"url(#grad3)\" stroke=\"var(--primary, oklch(0.48 0.2 215.221))\" stroke-opacity=\"0.45\" stroke-width=\"0.5\"/>\n </g>\n </g>\n <g class=\"house-shape h4\">\n <g class=\"house-pop\">\n <use href=\"#house\" transform=\"translate(-5, -5) scale(0.10)\" fill=\"url(#grad4)\" stroke=\"var(--secondary, oklch(0.11 0.003 0))\" stroke-opacity=\"0.28\" stroke-width=\"0.5\"/>\n </g>\n </g>\n <g class=\"house-shape h5\">\n <g class=\"house-pop\">\n <use href=\"#house\" transform=\"translate(-4, -4) scale(0.08)\" fill=\"url(#grad5)\" stroke=\"var(--accent, oklch(0.6 0.2 195))\" stroke-opacity=\"0.32\" stroke-width=\"0.5\"/>\n </g>\n </g>\n <g class=\"house-shape h6\">\n <g class=\"house-pop\">\n <use href=\"#house\" transform=\"translate(-9.5, -9.5) scale(0.19)\" fill=\"url(#grad6)\" stroke=\"var(--primary, oklch(0.48 0.2 215.221))\" stroke-opacity=\"0.38\" stroke-width=\"0.5\"/>\n </g>\n </g>\n\n <rect width=\"100%\" height=\"100%\" fill=\"url(#overlay)\" pointer-events=\"none\"/>\n</svg>";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { GEOMETRIC_HOUSES_SVG } from "./geometric-houses.js";
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
//#region src/backgrounds/geometric-houses.ts
|
|
2
|
+
var e = "<svg width=\"100%\" height=\"100%\" xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 100 100\" preserveAspectRatio=\"xMidYMid slice\">\n <style>\n .house-shape { opacity: 0.9; filter: blur(0.2px); transform: translate(var(--tx), var(--ty)) rotate(var(--rot)); }\n\n @keyframes pop {\n 0% { transform: scale(0.88); opacity: 0; }\n 100% { transform: scale(1); opacity: 1; }\n }\n\n .h1 { --tx: 12px; --ty: 20px; --rot: 12deg; }\n .h1 .house-pop { animation: pop 2.2s cubic-bezier(0.16, 1, 0.3, 1) 0.10s; }\n .h2 { --tx: 85px; --ty: 25px; --rot: -15deg; }\n .h2 .house-pop { animation: pop 2.2s cubic-bezier(0.16, 1, 0.3, 1) 0.40s; }\n .h3 { --tx: 15px; --ty: 75px; --rot: -8deg; }\n .h3 .house-pop { animation: pop 2.2s cubic-bezier(0.16, 1, 0.3, 1) 0.70s; }\n .h4 { --tx: 70px; --ty: 10px; --rot: 20deg; }\n .h4 .house-pop { animation: pop 2.2s cubic-bezier(0.16, 1, 0.3, 1) 1.00s; }\n .h5 { --tx: 35px; --ty: 8px; --rot: -25deg; }\n .h5 .house-pop { animation: pop 2.2s cubic-bezier(0.16, 1, 0.3, 1) 1.30s; }\n .h6 { --tx: 55px; --ty: 55px; --rot: 18deg; }\n .h6 .house-pop { animation: pop 2.2s cubic-bezier(0.16, 1, 0.3, 1) 1.60s; }\n\n .house-shape .house-pop { animation-play-state: paused; }\n [data-motion=\"live\"] .house-shape .house-pop { animation-play-state: running; }\n [data-motion=\"still\"] .house-shape .house-pop { animation-play-state: paused; }\n\n @media (prefers-reduced-motion: reduce) {\n .house-pop { animation: none; }\n }\n </style>\n\n <defs>\n <linearGradient id=\"grad1\" x1=\"0%\" y1=\"0%\" x2=\"100%\" y2=\"100%\">\n <stop offset=\"0%\" style=\"stop-color:var(--primary, oklch(0.48 0.2 215.221));stop-opacity:0.28\" />\n <stop offset=\"100%\" style=\"stop-color:var(--accent, oklch(0.6 0.2 195));stop-opacity:0.06\" />\n </linearGradient>\n <linearGradient id=\"grad2\" x1=\"0%\" y1=\"0%\" x2=\"100%\" y2=\"100%\">\n <stop offset=\"0%\" style=\"stop-color:var(--accent, oklch(0.6 0.2 195));stop-opacity:0.30\" />\n <stop offset=\"100%\" style=\"stop-color:var(--secondary, oklch(0.11 0.003 0));stop-opacity:0.08\" />\n </linearGradient>\n <linearGradient id=\"grad3\" x1=\"0%\" y1=\"0%\" x2=\"100%\" y2=\"100%\">\n <stop offset=\"0%\" style=\"stop-color:var(--primary, oklch(0.48 0.2 215.221));stop-opacity:0.35\" />\n <stop offset=\"100%\" style=\"stop-color:var(--accent, oklch(0.6 0.2 195));stop-opacity:0.10\" />\n </linearGradient>\n <linearGradient id=\"grad4\" x1=\"0%\" y1=\"0%\" x2=\"100%\" y2=\"100%\">\n <stop offset=\"0%\" style=\"stop-color:var(--secondary, oklch(0.11 0.003 0));stop-opacity:0.22\" />\n <stop offset=\"100%\" style=\"stop-color:var(--primary, oklch(0.48 0.2 215.221));stop-opacity:0.04\" />\n </linearGradient>\n <linearGradient id=\"grad5\" x1=\"0%\" y1=\"0%\" x2=\"100%\" y2=\"100%\">\n <stop offset=\"0%\" style=\"stop-color:var(--accent, oklch(0.6 0.2 195));stop-opacity:0.25\" />\n <stop offset=\"100%\" style=\"stop-color:var(--primary, oklch(0.48 0.2 215.221));stop-opacity:0.05\" />\n </linearGradient>\n <linearGradient id=\"grad6\" x1=\"0%\" y1=\"0%\" x2=\"100%\" y2=\"100%\">\n <stop offset=\"0%\" style=\"stop-color:var(--primary, oklch(0.48 0.2 215.221));stop-opacity:0.32\" />\n <stop offset=\"100%\" style=\"stop-color:var(--secondary, oklch(0.11 0.003 0));stop-opacity:0.07\" />\n </linearGradient>\n <linearGradient id=\"overlay\" x1=\"0%\" y1=\"100%\" x2=\"100%\" y2=\"0%\">\n <stop offset=\"0%\" style=\"stop-color:var(--primary, oklch(0.48 0.2 215.221));stop-opacity:0.20\" />\n <stop offset=\"50%\" style=\"stop-color:transparent;stop-opacity:0\" />\n <stop offset=\"100%\" style=\"stop-color:var(--accent, oklch(0.6 0.2 195));stop-opacity:0.40\" />\n </linearGradient>\n\n <path id=\"house\" d=\"M 50,4 C 52,4 53.5,4.7 54.5,6 L 86,38 C 88.8,40.2 90,43 90,46 L 90,90 C 90,93.8 87.8,96 84,96 L 16,96 C 12.2,96 10,93.8 10,90 L 10,46 C 10,43 11.2,40.2 14,38 L 45.5,6 C 46.5,4.7 48,4 50,4 Z\"/>\n </defs>\n\n <rect width=\"100%\" height=\"100%\" fill=\"var(--background, oklch(0.12 0.005 0))\"/>\n\n <g class=\"house-shape h1\">\n <g class=\"house-pop\">\n <use href=\"#house\" transform=\"translate(-15, -15) scale(0.31)\" fill=\"url(#grad1)\" stroke=\"var(--primary, oklch(0.48 0.2 215.221))\" stroke-opacity=\"0.35\" stroke-width=\"0.5\"/>\n </g>\n </g>\n <g class=\"house-shape h2\">\n <g class=\"house-pop\">\n <use href=\"#house\" transform=\"translate(-13, -12) scale(0.26)\" fill=\"url(#grad2)\" stroke=\"var(--accent, oklch(0.6 0.2 195))\" stroke-opacity=\"0.40\" stroke-width=\"0.5\"/>\n </g>\n </g>\n <g class=\"house-shape h3\">\n <g class=\"house-pop\">\n <use href=\"#house\" transform=\"translate(-8, -8) scale(0.16)\" fill=\"url(#grad3)\" stroke=\"var(--primary, oklch(0.48 0.2 215.221))\" stroke-opacity=\"0.45\" stroke-width=\"0.5\"/>\n </g>\n </g>\n <g class=\"house-shape h4\">\n <g class=\"house-pop\">\n <use href=\"#house\" transform=\"translate(-5, -5) scale(0.10)\" fill=\"url(#grad4)\" stroke=\"var(--secondary, oklch(0.11 0.003 0))\" stroke-opacity=\"0.28\" stroke-width=\"0.5\"/>\n </g>\n </g>\n <g class=\"house-shape h5\">\n <g class=\"house-pop\">\n <use href=\"#house\" transform=\"translate(-4, -4) scale(0.08)\" fill=\"url(#grad5)\" stroke=\"var(--accent, oklch(0.6 0.2 195))\" stroke-opacity=\"0.32\" stroke-width=\"0.5\"/>\n </g>\n </g>\n <g class=\"house-shape h6\">\n <g class=\"house-pop\">\n <use href=\"#house\" transform=\"translate(-9.5, -9.5) scale(0.19)\" fill=\"url(#grad6)\" stroke=\"var(--primary, oklch(0.48 0.2 215.221))\" stroke-opacity=\"0.38\" stroke-width=\"0.5\"/>\n </g>\n </g>\n\n <rect width=\"100%\" height=\"100%\" fill=\"url(#overlay)\" pointer-events=\"none\"/>\n</svg>";
|
|
3
|
+
//#endregion
|
|
4
|
+
export { e as GEOMETRIC_HOUSES_SVG };
|
package/dist/index.d.ts
CHANGED
|
@@ -8,6 +8,7 @@ export { Z, Z_CLASS } from "./lib/layers.js";
|
|
|
8
8
|
export { LOGO_DEFAULT_SIZE, LOGO_DEFAULT_SRC, LOGO_DEFAULT_SUB, LOGO_MARK_CLASS, LOGO_MARK_PX, LOGO_NAME_CLASS, LOGO_ROOT_CLASS, LOGO_SIZES, LOGO_STACK_CLASS, LOGO_SUB_CLASS, type LogoSize, } from "./lib/logo-lockup.js";
|
|
9
9
|
export { MENU_ITEM, MENU_ITEM_BASE, MENU_ITEM_X, MENU_LABEL, MENU_SEPARATOR, } from "./lib/menu-classes.js";
|
|
10
10
|
export { FIELD_MOTION, MODAL_MOTION, MORPH_MOTION, OVERLAY_MOTION, PRESS_DIP, SCRIM_MOTION, SETTLE_MOTION, STAGGER, } from "./lib/motion-classes.js";
|
|
11
|
+
export { MOTION_WINDOW_MS, startMotionWindow } from "./lib/motion-window.js";
|
|
11
12
|
export { anchorToTriggerTop, FLOATING_PANEL, OVERLAY_BLUR, OVERLAY_SURFACE, OVERLAY_SURFACE_BASE, OVERLAY_SURFACE_OPAQUE, SCRIM_CLASS, } from "./lib/overlay-classes.js";
|
|
12
13
|
export { CONTROL_H_TOUCH, PICKER_LIST, PICKER_TRIGGER } from "./lib/picker-classes.js";
|
|
13
14
|
export { CHIP, ICON_PILL, ICON_PILL_TINT } from "./lib/pill-classes.js";
|
package/dist/index.js
CHANGED
|
@@ -1,2 +1,20 @@
|
|
|
1
|
-
import { $ as e, A as t,
|
|
2
|
-
|
|
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
|
+
//#region src/lib/motion-window.ts
|
|
3
|
+
var $ = 3e4;
|
|
4
|
+
function Le(e = $) {
|
|
5
|
+
let t, n = document.documentElement, r = () => {
|
|
6
|
+
clearTimeout(t), t = void 0, delete n.dataset.motion;
|
|
7
|
+
}, i = () => {
|
|
8
|
+
clearTimeout(t), t = setTimeout(r, e), n.dataset.motion !== "live" && (n.dataset.motion = "live");
|
|
9
|
+
}, a = () => {
|
|
10
|
+
document.visibilityState === "hidden" ? r() : i();
|
|
11
|
+
};
|
|
12
|
+
return i(), document.addEventListener("pointerdown", i, {
|
|
13
|
+
passive: !0,
|
|
14
|
+
capture: !0
|
|
15
|
+
}), document.addEventListener("visibilitychange", a), () => {
|
|
16
|
+
r(), document.removeEventListener("pointerdown", i, { capture: !0 }), document.removeEventListener("visibilitychange", a);
|
|
17
|
+
};
|
|
18
|
+
}
|
|
19
|
+
//#endregion
|
|
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]";
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
export declare const MOTION_WINDOW_MS = 30000;
|
|
2
|
+
/** Ambient motion runs for a window after load or a touch, then freezes; `html[data-motion="live"]`
|
|
3
|
+
* is the one signal, which theme.css turns into `--motion-ambient` and the wallpapers gate on.
|
|
4
|
+
* Returns the stop function. */
|
|
5
|
+
export declare function startMotionWindow(windowMs?: number): () => void;
|
|
@@ -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`. */
|