@glasshome/ui 1.37.2 → 1.39.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 -0
- package/dist/index.js +2 -2
- package/dist/lib/busy.d.ts +5 -0
- package/dist/lib/layers.d.ts +4 -0
- package/dist/solid/button.d.ts +4 -1
- package/dist/solid/dialog-parts.d.ts +4 -1
- package/dist/solid/index.js +4931 -4907
- package/dist/solid/input.d.ts +4 -1
- package/dist/solid/option-card.d.ts +2 -0
- package/dist/solid/radio-group.d.ts +1 -0
- package/dist/solid/switch.d.ts +1 -0
- package/dist/{utils-Duqv3Sgo.js → utils-DXEj_oXa.js} +637 -637
- package/package.json +4 -1
- package/src/lib/busy.ts +5 -0
- package/src/lib/button-variants.ts +1 -1
- package/src/lib/layers.ts +5 -0
- package/src/solid/button.tsx +9 -3
- package/src/solid/data-table.tsx +1 -6
- package/src/solid/dialog-parts.tsx +7 -2
- package/src/solid/dock.tsx +1 -1
- package/src/solid/image-picker.tsx +1 -3
- package/src/solid/input.tsx +12 -3
- package/src/solid/option-card.tsx +4 -1
- package/src/solid/popover.tsx +2 -1
- package/src/solid/radio-group.tsx +4 -3
- package/src/solid/select.tsx +2 -1
- package/src/solid/switch.tsx +6 -1
package/SPEC.md
CHANGED
|
@@ -186,6 +186,8 @@ role clears 4.5:1 against `--background`/`--card`/`--popover`/`--muted` (3:1 for
|
|
|
186
186
|
| a glyph | `<Icon icon="lucide:plus" width={16}>` (inline svg from the host's `provideIcons` source) | `<iconify-icon>`, `@iconify-icon/solid` |
|
|
187
187
|
| a status chip | `<Badge tone="var(--success)">` | `rounded-lg bg-green-500/10` |
|
|
188
188
|
| a callout | `<Alert tone="warning">` | `border-amber-500/30 bg-amber-500/10` |
|
|
189
|
+
| a button while the work its press started runs | `<Button busy={saving()}>`: keeps focus, so the popover or dialog around it stays open | `disabled={saving()}`, which drops focus to the page |
|
|
190
|
+
| a switch or text field while the work its change started runs | `<Switch busy={saving()}>` / `<Input busy={saving()}>`: keeps focus, ignores the press or edit | `disabled={saving()}` |
|
|
189
191
|
| a labelled group inside a card | `<SectionGroup icon label count action>` | a hand-rolled `SectionIcon` + `SectionSubtitle` header row |
|
|
190
192
|
| a titled group of form rows | `<FieldSet>` + `<FieldLegend>` (+ `<FieldDescription>`) | a tracked uppercase `SectionLabel` eyebrow |
|
|
191
193
|
| rows that belong to the row above them | `<FieldSubGroup>` | a bare `<Separator>` and a left pad |
|
package/dist/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { $ as e, $t as t, A as n,
|
|
1
|
+
import { $ as e, $t as t, A as n, B as r, Bt as i, C as a, D as ee, Dt as te, E as ne, Et as o, F as s, G as c, Gt as l, H as u, I as d, It as f, J as p, Jt as m, K as h, L as g, M as _, Mt as v, N as y, O as b, Ot as x, P as S, R as C, Rt as w, S as T, U as E, Ut as D, V as O, Vt as k, W as A, Wt as j, Xt as M, Yt as N, Z as P, Zt as F, _ as I, _t as L, at as R, b as z, c as B, cn as V, ct as H, d as U, dn as W, dt as G, en as K, et as q, f as J, ft as Y, g as X, gt as Z, h as re, ht as ie, i as ae, in as oe, it as se, j as ce, jt as le, k as ue, l as de, ln as fe, lt as pe, m as me, mt as he, n as ge, nn as _e, nt as ve, o as ye, on as be, ot as xe, p as Se, pt as Ce, q as we, qt as Te, r as Ee, rn as De, rt as Oe, s as ke, sn as Ae, st as je, t as Me, tn as Ne, tt as Pe, u as Fe, un as Q, ut as Ie, v as Le, w as Re, x as ze, y as Be, yt as Ve, z as He, zt as Ue } from "./utils-DXEj_oXa.js";
|
|
2
2
|
//#region src/lib/motion-window.ts
|
|
3
3
|
var $ = 3e4;
|
|
4
4
|
function We(e = $) {
|
|
@@ -17,4 +17,4 @@ function We(e = $) {
|
|
|
17
17
|
};
|
|
18
18
|
}
|
|
19
19
|
//#endregion
|
|
20
|
-
export {
|
|
20
|
+
export { t as ALERT_CLASS, K as ALERT_CONTENT_CLASS, Ne as ALERT_DESCRIPTION_CLASS, _e as ALERT_ICON_BG_CLASS, De as ALERT_ICON_CLASS, oe as ALERT_ICON_PATHS, be as ALERT_TITLE_CLASS, Ae as ALERT_TONES, Te as BUTTON_DEFAULT_CLASS, m as BUTTON_OUTLINE_CLASS, Ve as CARD_BLUR, o as CARD_SURFACE, te as CARD_SURFACE_BASE, x as CARD_SURFACE_OPAQUE, q as CAROUSEL_DOTS, Pe as CAROUSEL_VIEWPORT, me as CHIP, je as CONTROL_H, I as CONTROL_H_TOUCH, H as CONTROL_ON, pe as FIELD_CHROME, Ie as FIELD_CONTROL, f as FIELD_MOTION, G as FIELD_TEXT, z as FLOATING_PANEL, Y as FOCUS_RING, b as HOLD_GRACE_MS, ue as HOLD_MS, N as ICON_BUTTON_CLASS, re as ICON_PILL, X as ICON_PILL_TINT, Ce as INPUT_CLASS, he as INPUT_SURFACE, ie as INVALID_RING, g as LOGO_DEFAULT_SIZE, C as LOGO_DEFAULT_SRC, He as LOGO_DEFAULT_SUB, r as LOGO_MARK_CLASS, O as LOGO_MARK_PX, u as LOGO_NAME_CLASS, E as LOGO_ROOT_CLASS, A as LOGO_SIZES, c as LOGO_STACK_CLASS, h as LOGO_SUB_CLASS, _ as MENU_ITEM, y as MENU_ITEM_BASE, S as MENU_ITEM_X, s as MENU_LABEL, d as MENU_SEPARATOR, ge as MOBILE_BREAKPOINT, w as MODAL_MOTION, Ue as MORPH_MOTION, $ as MOTION_WINDOW_MS, M as OUTLINE_SURFACE, ze as OVERLAY_BLUR, i as OVERLAY_MOTION, T as OVERLAY_SURFACE, a as OVERLAY_SURFACE_BASE, Re as OVERLAY_SURFACE_OPAQUE, Le as PICKER_LIST, Be as PICKER_TRIGGER, R as POSITION_BAR, xe as POSITION_BAR_LIT, k as PRESS_DIP, ne as SCRIM_CLASS, D as SCRIM_MOTION, Fe as SECTION_INNER_RADIUS, U as SECTION_OUTER_RADIUS, J as SECTION_PADDING, Se as SECTION_ROW_CLASS, le as SECTION_ROW_SURFACE, de as SEGMENT_ITEM, j as SETTLE_MOTION, l as STAGGER, ae as THUMB_CLASS, ye as THUMB_RAIL_BLEED, ke as THUMB_RAIL_PAD, B as THUMB_SIZE, v as TRACK_SURFACE, we as Z, p as Z_CLASS, V as alertBorder, fe as alertFill, Q as alertIconBgStyle, W as alertIconFill, ee as anchorToTriggerTop, F as buttonVariants, ve as carouselDot, Oe as carouselItem, se as carouselTrack, Me as cn, Z as copyImage, L as copyText, n as createHold, Ee as createIsMobile, P as glassToneText, ce as spendLongPress, We as startMotionWindow, e as toneTextMix };
|
package/dist/lib/layers.d.ts
CHANGED
|
@@ -6,3 +6,7 @@ export declare const Z_CLASS: {
|
|
|
6
6
|
readonly sheet: "z-40";
|
|
7
7
|
readonly overlay: "z-50";
|
|
8
8
|
};
|
|
9
|
+
/** Kobalte's hide-outside of a modal below walks every portal that mounts later and hides it, a focused list included, unless the content carries its top-layer marker. */
|
|
10
|
+
export declare const nestedLayerAttrs: (modal: boolean) => {
|
|
11
|
+
"data-kb-top-layer": string | undefined;
|
|
12
|
+
};
|
package/dist/solid/button.d.ts
CHANGED
|
@@ -2,7 +2,10 @@ import { Button as KobalteButton } from "@kobalte/core/button";
|
|
|
2
2
|
import type { VariantProps } from "cva";
|
|
3
3
|
import { type ComponentProps, type JSX } from "solid-js";
|
|
4
4
|
import { buttonVariants } from "../lib/button-variants.js";
|
|
5
|
-
type ButtonProps = ComponentProps<typeof KobalteButton> & VariantProps<typeof buttonVariants
|
|
5
|
+
type ButtonProps = ComponentProps<typeof KobalteButton> & VariantProps<typeof buttonVariants> & {
|
|
6
|
+
/** Presses do nothing; unlike `disabled` it keeps focus, so the popover or dialog around it stays. */
|
|
7
|
+
busy?: boolean;
|
|
8
|
+
};
|
|
6
9
|
declare function Button(props: ButtonProps): JSX.Element;
|
|
7
10
|
declare function ButtonWell(props: {
|
|
8
11
|
icon?: string;
|
|
@@ -35,7 +35,10 @@ export declare function callEventHandler<T, E extends Event>(event: E & {
|
|
|
35
35
|
currentTarget: T;
|
|
36
36
|
target: Element;
|
|
37
37
|
}, handler: JSX.EventHandlerUnion<T, E> | undefined): void;
|
|
38
|
-
export type ModalDismissProps = ComponentProps<typeof KobalteButton
|
|
38
|
+
export type ModalDismissProps = ComponentProps<typeof KobalteButton> & {
|
|
39
|
+
/** Presses do nothing, the dialog stays open and focus stays put; see Button. */
|
|
40
|
+
busy?: boolean;
|
|
41
|
+
};
|
|
39
42
|
export declare function createModalDismiss(slot: string): ParentComponent<ModalDismissProps>;
|
|
40
43
|
/** Renderless. Mounted inside a portal that exists only while the modal is
|
|
41
44
|
* open, so the refcounted page lock follows the modal's real lifetime. */
|