@glasshome/ui 1.39.0 → 1.41.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.
Files changed (41) hide show
  1. package/SPEC.md +26 -4
  2. package/dist/index.js +1 -1
  3. package/dist/lib/overlay-classes.d.ts +1 -1
  4. package/dist/solid/alert-dialog.d.ts +10 -9
  5. package/dist/solid/bottom-sheet/bottom-sheet.d.ts +1 -5
  6. package/dist/solid/confirm-dialog.d.ts +22 -0
  7. package/dist/solid/dialog-parts.d.ts +27 -1
  8. package/dist/solid/dialog.d.ts +3 -6
  9. package/dist/solid/dock-edit.d.ts +1 -1
  10. package/dist/solid/dock.d.ts +6 -1
  11. package/dist/solid/docked-panel.d.ts +1 -5
  12. package/dist/solid/icon-nodes.d.ts +13 -0
  13. package/dist/solid/index.d.ts +6 -4
  14. package/dist/solid/index.js +5080 -4841
  15. package/dist/solid/responsive-dialog.d.ts +3 -6
  16. package/dist/solid/sheet.d.ts +1 -5
  17. package/dist/solid/tabs.d.ts +3 -1
  18. package/dist/solid/term.d.ts +14 -0
  19. package/dist/{utils-DXEj_oXa.js → utils-CGN4X-2O.js} +1 -1
  20. package/package.json +14 -3
  21. package/scripts/check-gallery.ts +22 -4
  22. package/src/lib/overlay-classes.ts +2 -4
  23. package/src/solid/alert-dialog.tsx +13 -0
  24. package/src/solid/alert.tsx +1 -1
  25. package/src/solid/confirm-dialog.tsx +62 -0
  26. package/src/solid/dialog-parts.tsx +51 -1
  27. package/src/solid/dialog.tsx +4 -0
  28. package/src/solid/dock-edit.tsx +11 -16
  29. package/src/solid/dock.tsx +115 -25
  30. package/src/solid/icon-nodes.ts +71 -0
  31. package/src/solid/icon.tsx +44 -39
  32. package/src/solid/image-picker.tsx +9 -9
  33. package/src/solid/index.ts +6 -1
  34. package/src/solid/option-card.tsx +1 -1
  35. package/src/solid/responsive-dialog.tsx +8 -1
  36. package/src/solid/select.tsx +7 -2
  37. package/src/solid/tabs.tsx +11 -10
  38. package/src/solid/term.tsx +51 -0
  39. package/src/solid/toggle-group.tsx +12 -5
  40. package/src/styles/globals.css +6 -2
  41. package/src/styles/theme.css +7 -5
package/SPEC.md CHANGED
@@ -180,7 +180,9 @@ role clears 4.5:1 against `--background`/`--card`/`--popover`/`--muted` (3:1 for
180
180
  | a panel | `<Card>` | `border bg-card/NN backdrop-blur` |
181
181
  | a floating panel | `<Overlay>` / the overlay-wearing primitive | raw `bg-popover shadow` |
182
182
  | a modal | `<ResponsiveDialog>` (desktop dialog + mobile bottom sheet), `<Dialog>` for desktop-only; `anchor={el}` on the content opens the desktop panel beside the element that opened it | `<Sheet side="bottom">` as a modal; a popover restyled or repositioned as a modal |
183
- | an avatar or icon beside a modal title | `<Header media={…}>` | a hand-rolled row inside the header |
183
+ | the top of a modal: what it is about and what it asks | `<ResponsiveDialogHead icon tone title line>` (or `DialogHead`, `AlertDialogHead`; `avatar` for a dialog about a person): media, a few-word title, one line, no free children | `*Header` with a title, a paragraph and a hand-rolled media row; a title and a paragraph with no media |
184
+ | a yes/no on one object | `<ConfirmDialog icon title line actionLabel onConfirm>`; `children` shows the thing | a hand-written `AlertDialogContent` with a header and a paragraph |
185
+ | a word a homeowner may not know (an account kind, a feature name) | `<Term term={…}>`: tap opens an icon, one line and a docs link in place; the app keeps one glossary of definitions | a helper paragraph or a hover-only tooltip explaining it |
184
186
  | 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 |
185
187
  | a form inside a modal | `<Body as="form" id="…">` + a footer button with `form="…"` | a `display: contents` form wrapper inside the Body |
186
188
  | a glyph | `<Icon icon="lucide:plus" width={16}>` (inline svg from the host's `provideIcons` source) | `<iconify-icon>`, `@iconify-icon/solid` |
@@ -200,6 +202,7 @@ role clears 4.5:1 against `--background`/`--card`/`--popover`/`--muted` (3:1 for
200
202
  | one colour out of a few | `<SwatchPicker>` (+ a picker as its child) | round buttons by hand |
201
203
  | an editor that leaves the page live behind it | `<DockedPanel>` + its Header, Body, Footer | a `<Sheet>` with its scrim hidden |
202
204
  | tabs above a stack of toggle groups | `<TabsTrigger icon>` | an `<Icon>` placed inside the trigger by hand |
205
+ | a tab row on its own, a glyph beside each word | `<TabsTrigger icon inline>` | an `<Icon>` placed inside the trigger by hand |
203
206
  | picking one area, or several | `<AreaPicker>` (`values` + `onValuesChange` for multi) | a hand-rolled checkbox list of areas |
204
207
  | a field-shaped picker's trigger | `<PickerTrigger>` (chevron, clear button, expanded state) | a `PICKER_TRIGGER` button with its own chevron |
205
208
  | a table that can grow past a screenful | `createTableWindow(rows, { resetOn })` + `<TableLoadMore>` at its end | every row rendered at once; an `IntersectionObserver` by hand |
@@ -210,8 +213,10 @@ role clears 4.5:1 against `--background`/`--card`/`--popover`/`--muted` (3:1 for
210
213
  | a press-and-hold | `createHold({ onHold, onArm, onDisarm })`, its `down`, `move`, `up`, `cancel` on the pointer handlers (it spends the press and its release) | a `setTimeout` beside a `pointerdown`; `HOLD_MS` or `spendLongPress` by hand |
211
214
  | copying text or an image | `<CopyButton>`, `useCopyText()`, `copyText()` / `copyImage()` (from the click; text still loading goes in as a promise) | `navigator.clipboard`, `document.execCommand("copy")` |
212
215
  | a built-in wallpaper | `GEOMETRIC_HOUSES_SVG` from `@glasshome/ui/backgrounds` | an app's own copy of the SVG |
213
- | the app's navigation dock on any viewport edge, with paging and an arrival glow for newcomers | `<Dock placement="bottom\|left\|right" arrivedIds>`; a side edge pages vertically with the dots on the inner edge | a second dock component for the side, a glow keyframe in the app |
216
+ | the app's navigation dock on any viewport edge, with paging and an arrival glow for newcomers | `<Dock placement="bottom\|left\|right" arrivedIds>`; a side edge pages vertically with the dots behind the icons on the outer side, taking no width; while editing, a six-dot grip at the start of the dock (top of a side dock, left end of a bottom one) carries it to another edge | a second dock component for the side, a glow keyframe in the app |
214
217
  | editing the dock in place: remove badges, an add slot, drag to reorder, carry the dock to another edge | `<Dock editing onRemove onAdd onReorder onMovePlacement>` and `DockItem.removable`; reorder reports the full id order once on release (Alt+arrows move the focused item) | a separate edit screen, drag handlers or a jiggle keyframe in the app |
218
+ | tools beside the dock while a mode is on, or a control that belongs to the dock but is no item | `<Dock companion companionOpen>`: a second glass unit that grows out of the dock, above a bottom dock and under a side dock (so a side dock keeps its width), and adds to its measured size; `<Dock lead>`: inside the glass before the strip, never paged away | a bar positioned against `--dock-height` in the app, a chip that pages with the items |
219
+ | a segmented pick in a column | `<ToggleGroup orientation="vertical">` | a column of buttons with a hand-drawn selection |
215
220
  | pointing at a control while the user operates it | `<Spotlight>` (`blocking` on a targetless veil so the action inside the bubble is the only press that lands; a target taller than half the viewport places the bubble inside it, near the top, instead of above or below; the bubble carries a tail toward its `anchor`, which defaults to `target` and may point at a different element than the hole) | a hand-rolled fixed overlay with a cutout |
216
221
 
217
222
  Server-run `.astro` markup imports `@glasshome/ui/solid` too: the `solid`
@@ -247,6 +252,20 @@ answer; every rule here makes that hunt shorter.
247
252
  stop at one bordered row layer (`SectionRow`, `OptionCard`). A `Card` or
248
253
  `SectionCard` never goes inside another glass surface.
249
254
 
255
+ ## Dialog anatomy
256
+
257
+ A homeowner opens a dialog with one question: what is this asking me? The head answers it before any line is read.
258
+
259
+ 1. **Head.** `*Head`: media (a toned icon per state, or the avatar when the dialog is about a person), a title of at most six words that names the outcome or the question ("Same person?", "Remove Anna?"), and at most one line of at most 90 characters and one sentence. No free children.
260
+ 2. **Body shows the thing.** Avatars, a code, a preview, the choices. A paragraph of help becomes the thing itself, or a `Term` in the line.
261
+ 3. **Left-aligned.** No `text-center`, `self-center`, `mx-auto` or a centred `flex-col` stack. A code or a QR may centre with a `dialog-anatomy-ok` reason.
262
+ 4. **Actions live in the Footer**, right-aligned, primary last. A Body holds no `Button` except an icon button, a `CopyButton`, a link, an `Alert` action and a button inside a row (`SectionRow`, `li`, `OptionCard`, input group). A Head `action` is a step indicator, tabs, a close or a link, never the work.
263
+ 5. **The Footer holds buttons**: no sentence, no `mr-auto`, no `justify-*`. A confirm is `ConfirmDialog`.
264
+ 6. **A confirm names its object** in the title and its consequence in the line.
265
+ 7. **A workbench** (a search palette, a catalog) has no Head and carries `ariaLabel`.
266
+
267
+ Held by the `dialog-anatomy` gate in apps and in this package.
268
+
250
269
  ## Motion (the pillar)
251
270
 
252
271
  Motion is one system, not per-component flair. Four rules, all held by
@@ -277,7 +296,9 @@ Motion is one system, not per-component flair. Four rules, all held by
277
296
  lifecycle; hub calls it directly. Light-DOM loops gate on that attribute,
278
297
  widget shadow roots on the inherited `--motion-ambient` (1 live, else 0)
279
298
  or, for a loop that can only pause, `--motion-play` (`running` live, else
280
- `paused`). A wrapper with `data-motion="still"` opts out: thumbnails are
299
+ `paused`). The tokens go live only under `[data-motion-reader]`, which the
300
+ widget realm puts on a widget whose styles name them: a custom property
301
+ written on `html` restyles the whole page. A wrapper with `data-motion="still"` opts out: thumbnails are
281
302
  stills. A mode indicator is not decoration: it may loop for as long
282
303
  as its mode is on, provided the mode itself is bounded (dash leaves edit mode
283
304
  after three idle minutes). `.glass-edge-orbit` is that rim.
@@ -327,7 +348,8 @@ Checklist for a new component:
327
348
  through a pure `lib/` file, never duplicate it.
328
349
  5. Export via `src/solid/index.ts` (components) and root `src/index.ts` (pure
329
350
  recipes needed by SSR).
330
- 6. Register a specimen in the gallery (`dev/groups/*` in this package).
351
+ 6. Register a specimen in the gallery (`dev/groups/*` in this package). A
352
+ component with behaviour also gets a harness folder (`dev/HARNESS.md`).
331
353
  7. Comments: only constraints the code cannot express (rendering bugs worked
332
354
  around, cascade requirements, a11y invariants). One line each.
333
355
 
package/dist/index.js CHANGED
@@ -1,4 +1,4 @@
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";
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-CGN4X-2O.js";
2
2
  //#region src/lib/motion-window.ts
3
3
  var $ = 3e4;
4
4
  function We(e = $) {
@@ -2,7 +2,7 @@ export declare const OVERLAY_BLUR = "backdrop-blur-[var(--glass-blur,var(--mater
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,var(--material-blur,24px))] backdrop-saturate-[calc(var(--_material-vibrancy,1)*1.2)] backdrop-brightness-[calc(1+(var(--_material-vibrancy,1)-1)*0.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-scrim backdrop-blur-md";
5
+ export declare const SCRIM_CLASS = "bg-scrim backdrop-blur-md pointer-coarse:backdrop-blur-none";
6
6
  export declare const PANEL_TAIL: string;
7
7
  export declare const FLOATING_PANEL_SURFACE: string;
8
8
  export declare const FLOATING_PANEL: string;
@@ -1,8 +1,8 @@
1
1
  import { AlertDialog as AlertDialogPrimitive } from "@kobalte/core/alert-dialog";
2
2
  import type { VariantProps } from "cva";
3
- import { type Component, type ComponentProps, type ParentComponent } from "solid-js";
3
+ import { type Component, type ComponentProps, type JSX, type ParentComponent } from "solid-js";
4
4
  import { buttonVariants } from "../lib/button-variants.js";
5
- import { type ModalDismissProps, type ModalSize } from "./dialog-parts.js";
5
+ import { type ModalHeadProps, type ModalDismissProps, type ModalSize } from "./dialog-parts.js";
6
6
  declare const AlertDialog: ParentComponent<ComponentProps<typeof AlertDialogPrimitive>>;
7
7
  declare const AlertDialogTrigger: Component<ComponentProps<typeof AlertDialogPrimitive.Trigger>>;
8
8
  type AlertDialogContentProps = ComponentProps<typeof AlertDialogPrimitive.Content> & {
@@ -11,15 +11,16 @@ type AlertDialogContentProps = ComponentProps<typeof AlertDialogPrimitive.Conten
11
11
  ariaLabel?: string;
12
12
  };
13
13
  declare const AlertDialogContent: ParentComponent<AlertDialogContentProps>;
14
- declare const AlertDialogHeader: Component<import("solid-js").JSX.HTMLAttributes<HTMLDivElement> & {
15
- media?: import("solid-js").JSX.Element;
16
- action?: import("solid-js").JSX.Element;
17
- wrap?: boolean;
18
- }>, AlertDialogBody: Component<import("solid-js").JSX.HTMLAttributes<HTMLDivElement> & {
14
+ declare const AlertDialogHeader: Component<import("./dialog-parts.js").ModalHeaderProps>, AlertDialogBody: Component<JSX.HTMLAttributes<HTMLDivElement> & {
19
15
  as?: import("solid-js").ValidComponent;
20
- }>, AlertDialogFooter: Component<import("solid-js").JSX.HTMLAttributes<HTMLDivElement>>;
16
+ }>, AlertDialogFooter: Component<JSX.HTMLAttributes<HTMLDivElement>>;
21
17
  declare const AlertDialogTitle: Component<ComponentProps<typeof AlertDialogPrimitive.Title>>;
22
18
  declare const AlertDialogDescription: Component<ComponentProps<typeof AlertDialogPrimitive.Description>>;
19
+ /** An alert dialog is read aloud as a description, and the line carries the consequence. */
20
+ type AlertDialogHeadProps = ModalHeadProps & {
21
+ line: JSX.Element;
22
+ };
23
+ declare const AlertDialogHead: Component<AlertDialogHeadProps>;
23
24
  type AlertDialogButtonProps = ModalDismissProps & Partial<Pick<VariantProps<typeof buttonVariants>, "variant" | "size">>;
24
25
  /** Confirming action. Pass `variant` (e.g. "destructive"); layering a second
25
26
  * buttonVariants() call through `class` cannot work, because the variants
@@ -28,4 +29,4 @@ type AlertDialogButtonProps = ModalDismissProps & Partial<Pick<VariantProps<type
28
29
  declare const AlertDialogAction: ParentComponent<AlertDialogButtonProps>;
29
30
  /** This family's Close: the outline button that dismisses without acting. */
30
31
  declare const AlertDialogCancel: ParentComponent<AlertDialogButtonProps>;
31
- export { AlertDialog, AlertDialogAction, AlertDialogBody, AlertDialogCancel, AlertDialogContent, AlertDialogDescription, AlertDialogFooter, AlertDialogHeader, AlertDialogTitle, AlertDialogTrigger, };
32
+ export { AlertDialog, AlertDialogAction, AlertDialogBody, AlertDialogCancel, AlertDialogContent, AlertDialogDescription, AlertDialogFooter, AlertDialogHead, AlertDialogHeader, AlertDialogTitle, AlertDialogTrigger, };
@@ -25,11 +25,7 @@ interface BottomSheetContentProps extends ComponentProps<"div"> {
25
25
  }
26
26
  declare const BottomSheetContent: ParentComponent<BottomSheetContentProps>;
27
27
  declare const BottomSheetHandle: Component<ComponentProps<"div">>;
28
- declare const BottomSheetHeader: Component<JSX.HTMLAttributes<HTMLDivElement> & {
29
- media?: JSX.Element;
30
- action?: JSX.Element;
31
- wrap?: boolean;
32
- }>, BottomSheetBody: Component<JSX.HTMLAttributes<HTMLDivElement> & {
28
+ declare const BottomSheetHeader: Component<import("../dialog-parts.js").ModalHeaderProps>, BottomSheetBody: Component<JSX.HTMLAttributes<HTMLDivElement> & {
33
29
  as?: ValidComponent;
34
30
  }>, BottomSheetFooter: Component<JSX.HTMLAttributes<HTMLDivElement>>;
35
31
  declare const BottomSheetTitle: Component<ComponentProps<"h2">>;
@@ -0,0 +1,22 @@
1
+ import type { JSX } from "solid-js";
2
+ export interface ConfirmDialogProps {
3
+ open: boolean;
4
+ onOpenChange: (open: boolean) => void;
5
+ /** The glyph that tells this confirm from the next. */
6
+ icon: string;
7
+ /** Defaults to destructive red when `destructive`, else the material accent. */
8
+ tone?: string;
9
+ /** The question or the outcome, naming its object: "Remove Anna?". */
10
+ title: string;
11
+ /** The consequence, one line. */
12
+ line: JSX.Element;
13
+ actionLabel: string;
14
+ /** Defaults to true: nearly every confirm is a delete or a removal. */
15
+ destructive?: boolean;
16
+ busy?: boolean;
17
+ onConfirm: () => void;
18
+ /** The thing the confirm is about (avatars, a preview), shown instead of described. */
19
+ children?: JSX.Element;
20
+ }
21
+ /** A yes/no on one object: media, a short question, the consequence, Cancel and the action. */
22
+ export declare function ConfirmDialog(props: ConfirmDialogProps): JSX.Element;
@@ -9,7 +9,7 @@ export declare const ANCHORED_PANEL: string;
9
9
  export declare const MODAL_SCRIM: string;
10
10
  export declare const MODAL_TITLE = "font-semibold text-foreground text-lg leading-none tracking-tight";
11
11
  export declare const MODAL_DESCRIPTION = "text-muted-foreground text-sm";
12
- type ModalHeaderProps = ComponentProps<"div"> & {
12
+ export type ModalHeaderProps = ComponentProps<"div"> & {
13
13
  /** Avatar or icon, rendered ahead of the title column. */
14
14
  media?: JSX.Element;
15
15
  action?: JSX.Element;
@@ -28,6 +28,32 @@ export interface ModalParts {
28
28
  Footer: Component<ComponentProps<"div">>;
29
29
  }
30
30
  export declare function createModalParts(slot: string): ModalParts;
31
+ export type ModalMedia = {
32
+ icon: string;
33
+ tone?: string;
34
+ avatar?: never;
35
+ } | {
36
+ avatar: JSX.Element;
37
+ icon?: never;
38
+ tone?: never;
39
+ };
40
+ export type ModalHeadProps = ModalMedia & {
41
+ /** A few words: the outcome or the question. */
42
+ title: string;
43
+ /** One line under the title; a `Term` goes here. */
44
+ line?: JSX.Element;
45
+ /** Badges after the title. */
46
+ status?: JSX.Element;
47
+ /** The title is a key or an id: mono, breaks anywhere. */
48
+ mono?: boolean;
49
+ /** A step indicator, tabs, a close or a link; the work's buttons live in the Footer. */
50
+ action?: JSX.Element;
51
+ wrap?: boolean;
52
+ };
53
+ /** The header door: media, a title and one line, no free children. A family
54
+ * hands in its own Header, Title and Description so ResponsiveDialog still
55
+ * switches between dialog and sheet parts at render time. */
56
+ export declare function createModalHead<P extends ModalHeadProps = ModalHeadProps>(Header: Component<ModalHeaderProps>, Title: Component<ComponentProps<"h2">>, Description: Component<ComponentProps<"p">>): Component<P>;
31
57
  /** Solid's handler prop is a union: a plain function, or the bound
32
58
  * `[handler, data]` form that calls `handler(data, event)`. A wrapper that
33
59
  * only checks for a function silently drops the bound one. */
@@ -19,13 +19,10 @@ type DialogContentProps = ComponentProps<typeof DialogPrimitive.Content> & {
19
19
  anchor?: HTMLElement;
20
20
  };
21
21
  declare const DialogContent: ParentComponent<DialogContentProps>;
22
- declare const DialogHeader: Component<import("solid-js").JSX.HTMLAttributes<HTMLDivElement> & {
23
- media?: import("solid-js").JSX.Element;
24
- action?: import("solid-js").JSX.Element;
25
- wrap?: boolean;
26
- }>, DialogBody: Component<import("solid-js").JSX.HTMLAttributes<HTMLDivElement> & {
22
+ declare const DialogHeader: Component<import("./dialog-parts.js").ModalHeaderProps>, DialogBody: Component<import("solid-js").JSX.HTMLAttributes<HTMLDivElement> & {
27
23
  as?: import("solid-js").ValidComponent;
28
24
  }>, DialogFooter: Component<import("solid-js").JSX.HTMLAttributes<HTMLDivElement>>;
29
25
  declare const DialogTitle: Component<ComponentProps<typeof DialogPrimitive.Title>>;
30
26
  declare const DialogDescription: Component<ComponentProps<typeof DialogPrimitive.Description>>;
31
- export { Dialog, DialogBody, DialogClose, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogTitle, DialogTrigger, };
27
+ declare const DialogHead: Component<import("./dialog-parts.js").ModalHeadProps>;
28
+ export { Dialog, DialogBody, DialogClose, DialogContent, DialogDescription, DialogFooter, DialogHead, DialogHeader, DialogTitle, DialogTrigger, };
@@ -20,7 +20,7 @@ export declare function createDockReorder(options: ReorderOptions): {
20
20
  onMouseDown: (e: MouseEvent) => void;
21
21
  onClickCapture: (e: MouseEvent) => void;
22
22
  };
23
- /** The grip on a dock's outer edge: carry it toward a screen edge and the three landing zones light up. */
23
+ /** The grip at the start of a dock (its top on a side, its left end at the bottom): carry it toward a screen edge and the three landing zones light up. */
24
24
  export declare function DockMoveGrip(props: {
25
25
  placement: EdgeZone;
26
26
  onMove: (placement: EdgeZone) => void;
@@ -41,8 +41,13 @@ interface DockProps extends ComponentProps<"div"> {
41
41
  onAdd?: () => void;
42
42
  /** The full id order after a drag or an Alt+arrow move. */
43
43
  onReorder?: (ids: string[]) => void;
44
- /** While editing, a grip on the outer edge carries the whole dock to a screen edge; fires once on release over one. */
44
+ /** While editing, a grip at the dock's start carries the whole dock to a screen edge; fires once on release over one. */
45
45
  onMovePlacement?: (placement: DockPlacement) => void;
46
+ /** Sits inside the glass before the strip, never pages away; the strip's room shrinks by it. */
47
+ lead?: JSX.Element;
48
+ /** A second glass unit that grows out of the dock while `companionOpen`: above a bottom dock, under a side dock, which pages to make room. */
49
+ companion?: JSX.Element;
50
+ companionOpen?: boolean;
46
51
  }
47
52
  interface DockIconButtonProps extends ComponentProps<"button"> {
48
53
  icon: Component<{
@@ -7,11 +7,7 @@ export declare function DockedPanel(props: {
7
7
  class?: string;
8
8
  children: JSX.Element;
9
9
  }): JSX.Element;
10
- declare const DockedPanelHeader: import("solid-js").Component<JSX.HTMLAttributes<HTMLDivElement> & {
11
- media?: JSX.Element;
12
- action?: JSX.Element;
13
- wrap?: boolean;
14
- }>, DockedPanelBody: import("solid-js").Component<JSX.HTMLAttributes<HTMLDivElement> & {
10
+ declare const DockedPanelHeader: import("solid-js").Component<import("./dialog-parts.js").ModalHeaderProps>, DockedPanelBody: import("solid-js").Component<JSX.HTMLAttributes<HTMLDivElement> & {
15
11
  as?: import("solid-js").ValidComponent;
16
12
  }>, DockedPanelFooter: import("solid-js").Component<JSX.HTMLAttributes<HTMLDivElement>>;
17
13
  export { DockedPanelBody, DockedPanelFooter, DockedPanelHeader };
@@ -0,0 +1,13 @@
1
+ export declare function trusted(html: string): string;
2
+ export interface BodyParseCache {
3
+ /** Fresh copies of the nodes `parse` makes for `body`; the caller owns them. */
4
+ nodes(body: string): Node[];
5
+ }
6
+ /**
7
+ * Parses each distinct body once and hands every caller its own deep copy, so no two icons
8
+ * share a node. Holds at most `limit` bodies; past that the oldest is dropped and parsed again
9
+ * if asked for later. A `parse` that throws leaves nothing cached.
10
+ */
11
+ export declare function createBodyParseCache(limit: number, parse: (body: string) => Element): BodyParseCache;
12
+ /** The nodes of one icon body, parsed once per distinct body. Needs a DOM. */
13
+ export declare function iconNodes(body: string): Node[];
@@ -8,7 +8,7 @@ export { OVERLAY_SURFACE } from "../lib/overlay-classes.js";
8
8
  export { SECTION_INNER_RADIUS, SECTION_OUTER_RADIUS, SECTION_PADDING, SECTION_ROW_CLASS, } from "../lib/section-tokens.js";
9
9
  export { Accordion, AccordionContent, AccordionItem, AccordionTrigger } from "./accordion.js";
10
10
  export { Alert, AlertDescription, AlertTitle, type AlertTone } from "./alert.js";
11
- export { AlertDialog, AlertDialogAction, AlertDialogBody, AlertDialogCancel, AlertDialogContent, AlertDialogDescription, AlertDialogFooter, AlertDialogHeader, AlertDialogTitle, AlertDialogTrigger, } from "./alert-dialog.js";
11
+ export { AlertDialog, AlertDialogAction, AlertDialogBody, AlertDialogCancel, AlertDialogContent, AlertDialogDescription, AlertDialogFooter, AlertDialogHead, AlertDialogHeader, AlertDialogTitle, AlertDialogTrigger, } from "./alert-dialog.js";
12
12
  export { AreaPicker } from "./area-picker.js";
13
13
  export { AspectRatio } from "./aspect-ratio.js";
14
14
  export { Avatar, AvatarFallback, AvatarImage } from "./avatar.js";
@@ -32,8 +32,9 @@ export { type CopyState, useCopyText } from "./use-copy-text.js";
32
32
  export { CountPill } from "./count-pill.js";
33
33
  export { DashboardPreview, type DashboardPreviewTile } from "./dashboard-preview.js";
34
34
  export { DataTableHead, DataTableRow, type SortDirection, TABLE_BLEED, TABLE_CELL_X, TABLE_HEAD_CELL_CLASS, TABLE_HEAD_CLASS, TABLE_HEAD_LABEL_CLASS, TABLE_NUM_CELL_CLASS, TABLE_ROW_CLASS, TABLE_SCROLL_CLASS, TableBulkBar, TableEmpty, TableError, TableFilterSelect, TableLoadMore, TableSearchInput, TableSkeleton, TableSortHeader, createTableWindow, } from "./data-table.js";
35
- export { Dialog, DialogBody, DialogClose, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogTitle, DialogTrigger, } from "./dialog.js";
36
- export type { ModalSize } from "./dialog-parts.js";
35
+ export { Dialog, DialogBody, DialogClose, DialogContent, DialogDescription, DialogFooter, DialogHead, DialogHeader, DialogTitle, DialogTrigger, } from "./dialog.js";
36
+ export { ConfirmDialog, type ConfirmDialogProps } from "./confirm-dialog.js";
37
+ export type { ModalHeadProps, ModalMedia, ModalSize } from "./dialog-parts.js";
37
38
  export type { DockIconButtonProps, DockItem, DockPlacement, DockProps } from "./dock.js";
38
39
  export { Dock } from "./dock.js";
39
40
  export { DockedPanel, DockedPanelBody, DockedPanelFooter, DockedPanelHeader, } from "./docked-panel.js";
@@ -74,7 +75,7 @@ export { PreviewTile, PreviewTileAction, PreviewTileGroup } from "./preview-tile
74
75
  export { Progress } from "./progress.js";
75
76
  export { RadioGroup, RadioGroupItem } from "./radio-group.js";
76
77
  export { ResizableHandle, ResizablePanel, ResizablePanelGroup } from "./resizable.js";
77
- export { ResponsiveDialog, ResponsiveDialogBody, ResponsiveDialogClose, ResponsiveDialogContent, ResponsiveDialogDescription, ResponsiveDialogFooter, ResponsiveDialogHeader, ResponsiveDialogTitle, ResponsiveDialogTrigger, } from "./responsive-dialog.js";
78
+ export { ResponsiveDialog, ResponsiveDialogBody, ResponsiveDialogClose, ResponsiveDialogContent, ResponsiveDialogDescription, ResponsiveDialogFooter, ResponsiveDialogHead, ResponsiveDialogHeader, ResponsiveDialogTitle, ResponsiveDialogTrigger, } from "./responsive-dialog.js";
78
79
  export { type ExtendedJSONSchema, SCHEMA_FORM_FORM_TYPES, SchemaForm } from "./schema-form.js";
79
80
  export { ScopeIndicator } from "./scope-indicator.js";
80
81
  export { ScrollArea, ScrollBar } from "./scroll-area.js";
@@ -98,6 +99,7 @@ export { SwatchPicker } from "./swatch-picker.js";
98
99
  export { Switch } from "./switch.js";
99
100
  export { TABLE_CELL_INSET, Table, TableBody, TableCaption, TableCell, TableFooter, TableHead, TableHeader, TableRow, } from "./table.js";
100
101
  export { Tabs, TabsContent, TabsList, TabsTrigger } from "./tabs.js";
102
+ export { Term, type TermDefinition } from "./term.js";
101
103
  export { Textarea } from "./textarea.js";
102
104
  export { Toggle, toggleVariants } from "./toggle.js";
103
105
  export { ToggleGroup, ToggleGroupItem } from "./toggle-group.js";