@glasshome/ui 1.26.2 → 1.28.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/dist/index.d.ts +1 -1
- package/dist/index.js +3 -3
- package/dist/lib/hold.d.ts +3 -0
- package/dist/solid/icon-picker.d.ts +1 -6
- package/dist/solid/icon.d.ts +3 -0
- package/dist/solid/index.d.ts +1 -1
- package/dist/solid/index.js +4185 -4182
- package/dist/solid/schema-form.d.ts +1 -1
- package/dist/solid/settings-row.d.ts +1 -0
- package/dist/{utils-C1h9S08F.js → utils-DcRd0bwQ.js} +115 -101
- package/package.json +1 -1
- package/src/index.ts +1 -1
- package/src/lib/hold.ts +21 -0
- package/src/solid/icon-picker.tsx +12 -10
- package/src/solid/icon.tsx +6 -0
- package/src/solid/index.ts +1 -1
- package/src/solid/schema-form.tsx +1 -1
- package/src/solid/settings-row.tsx +1 -0
package/dist/index.d.ts
CHANGED
|
@@ -8,7 +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 { HOLD_GRACE_MS, HOLD_MS } from "./lib/hold.js";
|
|
11
|
+
export { HOLD_GRACE_MS, HOLD_MS, spendLongPress } from "./lib/hold.js";
|
|
12
12
|
export { MOTION_WINDOW_MS, startMotionWindow } from "./lib/motion-window.js";
|
|
13
13
|
export { anchorToTriggerTop, FLOATING_PANEL, OVERLAY_BLUR, OVERLAY_SURFACE, OVERLAY_SURFACE_BASE, OVERLAY_SURFACE_OPAQUE, SCRIM_CLASS, } from "./lib/overlay-classes.js";
|
|
14
14
|
export { CONTROL_H_TOUCH, PICKER_LIST, PICKER_TRIGGER } from "./lib/picker-classes.js";
|
package/dist/index.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { $ as e,
|
|
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 ne, F as o, Ft as s, G as c, Gt as l, H as u, Ht as d, I as f, Jt as p, K as m, L as h, Lt as g, M as _, Mt as v, N as y, Nt as b, O as x, Ot as S, P as C, Pt as w, Q as T, Qt as E, R as D, Rt as O, S as k, St as A, U as j, Ut as M, V as N, Vt as P, W as F, Wt as I, Xt as L, Y as R, Yt as z, Z as B, Zt as V, _ as H, an as U, at as W, b as G, c as K, ct as q, d as J, dt as Y, en as X, et as Z, f as re, ft as ie, g as ae, h as oe, ht as se, i as ce, in as le, it as ue, j as de, k as fe, l as pe, lt as me, m as he, n as ge, nn as _e, nt as ve, o as ye, ot as be, p as xe, pt as Se, q as Ce, qt as we, r as Te, rn as Ee, rt as De, s as Oe, st as ke, t as Ae, tn as je, tt as Me, u as Ne, ut as Pe, v as Fe, w as Q, wt as Ie, x as Le, y as Re, z as ze, zt as Be } from "./utils-DcRd0bwQ.js";
|
|
2
2
|
//#region src/lib/motion-window.ts
|
|
3
3
|
var $ = 3e4;
|
|
4
|
-
function
|
|
4
|
+
function Ve(e = $) {
|
|
5
5
|
let t, n = document.documentElement, r = () => {
|
|
6
6
|
clearTimeout(t), t = void 0, delete n.dataset.motion;
|
|
7
7
|
}, i = () => {
|
|
@@ -17,4 +17,4 @@ function Be(e = $) {
|
|
|
17
17
|
};
|
|
18
18
|
}
|
|
19
19
|
//#endregion
|
|
20
|
-
export {
|
|
20
|
+
export { we as ALERT_CLASS, p as ALERT_CONTENT_CLASS, z as ALERT_DESCRIPTION_CLASS, L as ALERT_ICON_BG_CLASS, V as ALERT_ICON_CLASS, E as ALERT_ICON_PATHS, X as ALERT_TITLE_CLASS, je as ALERT_TONES, P as BUTTON_DEFAULT_CLASS, d as BUTTON_OUTLINE_CLASS, se as CARD_BLUR, A as CARD_SURFACE, a as CARD_SURFACE_BASE, Ie as CARD_SURFACE_OPAQUE, T as CAROUSEL_DOTS, e as CAROUSEL_VIEWPORT, he as CHIP, W as CONTROL_H, H as CONTROL_H_TOUCH, be as CONTROL_ON, ke as FIELD_CHROME, q as FIELD_CONTROL, n as FIELD_MOTION, me as FIELD_TEXT, G as FLOATING_PANEL, Pe as FOCUS_RING, x as HOLD_GRACE_MS, fe as HOLD_MS, M as ICON_BUTTON_CLASS, oe as ICON_PILL, ae as ICON_PILL_TINT, Y as INPUT_CLASS, ie as INPUT_SURFACE, Se as INVALID_RING, f as LOGO_DEFAULT_SIZE, h as LOGO_DEFAULT_SRC, D as LOGO_DEFAULT_SUB, ze as LOGO_MARK_CLASS, r as LOGO_MARK_PX, N as LOGO_NAME_CLASS, u as LOGO_ROOT_CLASS, j as LOGO_SIZES, F as LOGO_STACK_CLASS, c as LOGO_SUB_CLASS, de as MENU_ITEM, _ as MENU_ITEM_BASE, y as MENU_ITEM_X, C as MENU_LABEL, o as MENU_SEPARATOR, ge as MOBILE_BREAKPOINT, v as MODAL_MOTION, b as MORPH_MOTION, $ as MOTION_WINDOW_MS, I as OUTLINE_SURFACE, Le as OVERLAY_BLUR, w as OVERLAY_MOTION, k as OVERLAY_SURFACE, i as OVERLAY_SURFACE_BASE, Q as OVERLAY_SURFACE_OPAQUE, Fe as PICKER_LIST, Re as PICKER_TRIGGER, De as POSITION_BAR, ue as POSITION_BAR_LIT, s as PRESS_DIP, ne as SCRIM_CLASS, g as SCRIM_MOTION, Ne as SECTION_INNER_RADIUS, J as SECTION_OUTER_RADIUS, re as SECTION_PADDING, xe as SECTION_ROW_CLASS, te as SECTION_ROW_SURFACE, pe as SEGMENT_ITEM, O as SETTLE_MOTION, Be as STAGGER, ce as THUMB_CLASS, ye as THUMB_RAIL_BLEED, Oe as THUMB_RAIL_PAD, K as THUMB_SIZE, S as TRACK_SURFACE, m as Z, Ce as Z_CLASS, _e as alertBorder, Ee as alertFill, le as alertIconBgStyle, U as alertIconFill, ee as anchorToTriggerTop, l as buttonVariants, Z as carouselDot, Me as carouselItem, ve as carouselTrack, Ae as cn, Te as createIsMobile, R as glassToneText, t as spendLongPress, Ve as startMotionWindow, B as toneTextMix };
|
package/dist/lib/hold.d.ts
CHANGED
|
@@ -4,3 +4,6 @@ export declare const HOLD_MS = 350;
|
|
|
4
4
|
/** A tap ends inside this window, so it never shows the hold fill. The fill then grows on
|
|
5
5
|
* --duration-hold, which is HOLD_MS - HOLD_GRACE_MS. */
|
|
6
6
|
export declare const HOLD_GRACE_MS = 100;
|
|
7
|
+
/** A fired hold spends the press: the browser's own long press (text selection, context menu)
|
|
8
|
+
* must not land on what the hold opened under the finger. Lasts until the release. */
|
|
9
|
+
export declare function spendLongPress(): void;
|
|
@@ -3,12 +3,7 @@ export interface IconPickerProps {
|
|
|
3
3
|
onChange: (value: string) => void;
|
|
4
4
|
placeholder?: string;
|
|
5
5
|
class?: string;
|
|
6
|
-
/**
|
|
7
|
-
* Host-provided icon search. The design system carries no network or CSP
|
|
8
|
-
* policy of its own: dash proxies the Iconify API same-origin so its
|
|
9
|
-
* connect-src allowlist stays free of third-party origins. Without this the
|
|
10
|
-
* picker still works, showing the curated set only.
|
|
11
|
-
*/
|
|
6
|
+
/** @deprecated Pass `search` to `provideIcons` once; removed in 2.0.0. */
|
|
12
7
|
searchIcons?: (query: string, prefix: string) => Promise<string[]>;
|
|
13
8
|
/** Id of the element naming the trigger, for forms that label it outside. */
|
|
14
9
|
"aria-labelledby"?: string;
|
package/dist/solid/icon.d.ts
CHANGED
|
@@ -6,9 +6,12 @@ export interface IconSource {
|
|
|
6
6
|
bundled: Record<string, IconData>;
|
|
7
7
|
/** Resolves the rest in one batch; a name the source does not have maps to null. */
|
|
8
8
|
load?: (names: string[]) => Promise<Record<string, IconData | null>>;
|
|
9
|
+
/** `prefix:name` matches for `query` across `prefixes`; powers every IconPicker. */
|
|
10
|
+
search?: (query: string, prefixes: string[]) => Promise<string[]>;
|
|
9
11
|
}
|
|
10
12
|
/** Host apps call this once at startup; every mounted Icon re-resolves. */
|
|
11
13
|
export declare function provideIcons(next: IconSource): void;
|
|
14
|
+
export declare function iconSearch(): IconSource["search"];
|
|
12
15
|
export interface IconProps extends Omit<JSX.SvgSVGAttributes<SVGSVGElement>, "width" | "height" | "children"> {
|
|
13
16
|
/** `prefix:name`, e.g. `lucide:plus`. */
|
|
14
17
|
icon: string;
|
package/dist/solid/index.d.ts
CHANGED
|
@@ -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 { HOLD_GRACE_MS, HOLD_MS } from "../lib/hold.js";
|
|
3
|
+
export { HOLD_GRACE_MS, HOLD_MS, spendLongPress } from "../lib/hold.js";
|
|
4
4
|
export { RISE_MOTION, SETTLE_MOTION, TRAVEL_MOTION } from "../lib/motion-classes.js";
|
|
5
5
|
export { OVERLAY_SURFACE } from "../lib/overlay-classes.js";
|
|
6
6
|
export { SECTION_INNER_RADIUS, SECTION_OUTER_RADIUS, SECTION_PADDING, SECTION_ROW_CLASS, } from "../lib/section-tokens.js";
|