@glasshome/ui 1.18.0 → 1.20.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 +84 -2
- package/dist/index.js +2 -2
- package/dist/lib/anchor-placement.d.ts +5 -0
- package/dist/lib/button-variants.d.ts +4 -1
- package/dist/lib/card-classes.d.ts +4 -4
- package/dist/lib/motion-classes.d.ts +2 -0
- package/dist/lib/overlay-classes.d.ts +4 -2
- package/dist/lib/spotlight-geometry.d.ts +22 -0
- package/dist/solid/button.d.ts +8 -3
- package/dist/solid/color-disc.d.ts +33 -0
- package/dist/solid/dashboard-preview.d.ts +24 -0
- package/dist/solid/dialog-parts.d.ts +1 -0
- package/dist/solid/dialog.d.ts +3 -0
- package/dist/solid/dock.d.ts +9 -0
- package/dist/solid/docked-panel.d.ts +11 -0
- package/dist/solid/image-picker.d.ts +3 -0
- package/dist/solid/index.d.ts +9 -3
- package/dist/solid/index.js +6254 -5475
- package/dist/solid/media-store.d.ts +10 -0
- package/dist/solid/option-card.d.ts +2 -1
- package/dist/solid/page-header.d.ts +2 -2
- package/dist/solid/preview-tile.d.ts +35 -0
- package/dist/solid/responsive-dialog.d.ts +2 -0
- package/dist/solid/schema-form.d.ts +6 -1
- package/dist/solid/sliding-indicator.d.ts +2 -0
- package/dist/solid/spotlight.d.ts +14 -0
- package/dist/solid/swatch-picker.d.ts +12 -0
- package/dist/solid/tabs.d.ts +4 -1
- package/dist/solid/toggle-group.d.ts +4 -1
- package/dist/solid/widget-identity.d.ts +2 -0
- package/dist/tokens/index.d.ts +1 -0
- package/dist/tokens/index.js +336 -118
- package/dist/tokens/material.d.ts +40 -0
- package/dist/tokens/presets.d.ts +3 -0
- package/dist/tokens/theme-colors.d.ts +13 -3
- package/dist/tokens/theme-recipe.d.ts +8 -0
- package/dist/{utils-COITV1s9.js → utils-CMk7R3zM.js} +488 -485
- package/package.json +2 -2
- package/scripts/check-ui-drift.mjs +5 -0
- package/src/lib/anchor-placement.ts +30 -0
- package/src/lib/button-variants.ts +13 -12
- package/src/lib/card-classes.ts +4 -3
- package/src/lib/motion-classes.ts +10 -0
- package/src/lib/overlay-classes.ts +10 -2
- package/src/lib/spotlight-geometry.ts +90 -0
- package/src/solid/bottom-sheet/bottom-sheet.tsx +8 -1
- package/src/solid/button.tsx +17 -2
- package/src/solid/color-disc.tsx +253 -0
- package/src/solid/dashboard-preview.tsx +128 -0
- package/src/solid/dialog-parts.tsx +5 -1
- package/src/solid/dialog.tsx +47 -5
- package/src/solid/dock.tsx +67 -9
- package/src/solid/docked-panel.tsx +56 -0
- package/src/solid/entity-selector.tsx +2 -2
- package/src/solid/hero-action.tsx +2 -2
- package/src/solid/image-picker.tsx +232 -147
- package/src/solid/index.ts +20 -2
- package/src/solid/media-store.ts +20 -1
- package/src/solid/option-card.tsx +27 -31
- package/src/solid/page-header.tsx +9 -16
- package/src/solid/preview-tile.tsx +89 -0
- package/src/solid/radio-group.tsx +7 -2
- package/src/solid/responsive-dialog.tsx +10 -2
- package/src/solid/schema-form.tsx +30 -4
- package/src/solid/section-card.tsx +4 -2
- package/src/solid/sliding-indicator.tsx +34 -17
- package/src/solid/spotlight.tsx +179 -0
- package/src/solid/swatch-picker.tsx +47 -0
- package/src/solid/tabs.tsx +20 -4
- package/src/solid/toggle-group.tsx +43 -8
- package/src/solid/widget-identity.tsx +3 -1
- package/src/styles/globals.css +166 -14
- package/src/styles/theme.css +25 -3
- package/src/tokens/index.ts +1 -0
- package/src/tokens/material.ts +116 -0
- package/src/tokens/presets.ts +195 -56
- package/src/tokens/theme-colors.ts +15 -3
- package/src/tokens/theme-recipe.ts +18 -4
package/SPEC.md
CHANGED
|
@@ -54,7 +54,7 @@ border/background/box-shadow on the element: `bg-*`, `border-*`, and `shadow-*`
|
|
|
54
54
|
utilities on a glass element are no-ops. Tune via knobs instead.
|
|
55
55
|
|
|
56
56
|
`backdrop-blur` is not part of the formula. Cards add `CARD_BLUR` and overlays
|
|
57
|
-
`OVERLAY_BLUR` (both read
|
|
57
|
+
`OVERLAY_BLUR` (both read `--material-blur`, with an optional `--glass-blur` override); toasts and other
|
|
58
58
|
transform-animated surfaces must not blur (Chromium renders black
|
|
59
59
|
mid-animation), and a surface that skips the blur takes an opaque fill
|
|
60
60
|
(`CARD_SURFACE_OPAQUE`, `OVERLAY_SURFACE_OPAQUE`) — a translucent fill with
|
|
@@ -64,6 +64,51 @@ Mixing rules: tone washes mix in **srgb** (oklch drags a tone mixed toward
|
|
|
64
64
|
transparent down to mud); tinted text mixes in **oklab** (no hue channel, so a
|
|
65
65
|
tone desaturates without swinging yellow — `glassToneText()`).
|
|
66
66
|
|
|
67
|
+
### The material tier
|
|
68
|
+
|
|
69
|
+
Five inheriting variables, the homeowner's dials, declared once in `theme.css` and
|
|
70
|
+
multiplied into every surface's knobs by the formula. A knob is a surface's
|
|
71
|
+
identity; the tier scales all of them at once, chrome and widgets alike.
|
|
72
|
+
|
|
73
|
+
| Variable | Type | Frosted | Multiplies |
|
|
74
|
+
| --- | --- | --- | --- |
|
|
75
|
+
| `--material-blur` | length | 24px | the backdrop radius (`--glass-blur` overrides it when set) |
|
|
76
|
+
| `--material-clarity` | % | 60% | the card fill's share of `--card` (the rest is wallpaper) |
|
|
77
|
+
| `--material-depth` | number | 1 | `--glass-light`, `--glass-shade`, `--glass-rim`, `--glass-lift` |
|
|
78
|
+
| `--material-tint` | number | 1 | `--glass-wash`, `--glass-wash-2` |
|
|
79
|
+
| `--material-glow` | length | 0px | an outer bloom in `--material-hue` (Neon 18px) |
|
|
80
|
+
| `--material-ink-level` | number | 0 | above 0, the Ink body: every surface hand-inked |
|
|
81
|
+
|
|
82
|
+
Four more are preset terms, inert at their defaults and never a homeowner dial.
|
|
83
|
+
Glow scales with `--glass-lift` (`--material-reach`), so a chip takes about a
|
|
84
|
+
third of what a card takes. `--material-hue` is the surface's own hue,
|
|
85
|
+
opaque: its tone when it has one, the accent otherwise.
|
|
86
|
+
|
|
87
|
+
| Variable | Type | Default | Turns on |
|
|
88
|
+
| --- | --- | --- | --- |
|
|
89
|
+
| `--material-edge-width` | length | 1px | the edge weight (Neon 1.5px) |
|
|
90
|
+
| `--material-edge-ink` | number | 0 | the edge's mix toward `--material-ink` (Paper 0.3) |
|
|
91
|
+
| `--material-ink-lift` | number | 0 | the Ink line's mix toward `--foreground` (Chalk 1) |
|
|
92
|
+
| `--material-edge-accent` | number | 0 | the edge's mix toward `--material-hue` (Neon 1) |
|
|
93
|
+
|
|
94
|
+
`--material-ink` is fixed per mode in theme.css: dark ink in light mode, a mid
|
|
95
|
+
grey in dark mode.
|
|
96
|
+
|
|
97
|
+
**Ink** is the second formula body, selected by a style query while
|
|
98
|
+
`--material-ink-level` is above 0. The surface paints nothing itself and takes
|
|
99
|
+
uneven radii scaled from `--radius`; `::before` lays the fill with its own radii
|
|
100
|
+
and a nudge, so it strays over and under the line, and `::after` draws the line
|
|
101
|
+
(opacity = the level) with two faint offset passes. No images or masks: it
|
|
102
|
+
renders the same in every browser with style queries.
|
|
103
|
+
|
|
104
|
+
A preset is a point in that space (`tokens/material.ts`: Frosted, Paper,
|
|
105
|
+
Neon, Chalk; `resolveMaterial` composes it with the host blur mode); a theme stores the
|
|
106
|
+
preset and any dial it moved, never the resolved values. A look these cannot
|
|
107
|
+
express adds another inert-by-default term here (a ui minor), then, if that is
|
|
108
|
+
not enough, a second formula body selected by a style query on a material
|
|
109
|
+
variable, as Ink is.
|
|
110
|
+
The class name never changes.
|
|
111
|
+
|
|
67
112
|
## Surfaces (the only sanctioned recipes)
|
|
68
113
|
|
|
69
114
|
| Recipe | File | Wear it for |
|
|
@@ -77,6 +122,7 @@ tone desaturates without swinging yellow — `glassToneText()`).
|
|
|
77
122
|
| `INPUT_SURFACE` / `INPUT_CLASS` | lib/input-classes.ts | text fields + pickers (concave) |
|
|
78
123
|
| `FIELD_CHROME` | lib/input-classes.ts | toggle chrome and rails (checkbox box, radio ring, switch track, slider rail, chart wells) |
|
|
79
124
|
| `TRACK_SURFACE` | lib/card-classes.ts | segmented tracks (tabs, toggle groups) |
|
|
125
|
+
| `buttonVariants` / `OUTLINE_SURFACE` | lib/button-variants.ts | buttons and toggles: clear glass, a see-through card fill over a blur scaled from the material tier; opaque under reduce-blur |
|
|
80
126
|
|
|
81
127
|
**Fields are not symmetric across the themes.** The recess is `.glass-sink`'s
|
|
82
128
|
rim, which is theme independent; the fill under it is not. On the dark ground a
|
|
@@ -103,7 +149,7 @@ role clears 4.5:1 against `--background`/`--card`/`--popover`/`--muted` (3:1 for
|
|
|
103
149
|
|---|---|---|
|
|
104
150
|
| a panel | `<Card>` | `border bg-card/NN backdrop-blur` |
|
|
105
151
|
| a floating panel | `<Overlay>` / the overlay-wearing primitive | raw `bg-popover shadow` |
|
|
106
|
-
| a modal | `<ResponsiveDialog>` (desktop dialog + mobile bottom sheet), `<Dialog>` for desktop-only | `<Sheet side="bottom">` as a modal |
|
|
152
|
+
| 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 |
|
|
107
153
|
| an avatar or icon beside a modal title | `<Header media={…}>` | a hand-rolled row inside the header |
|
|
108
154
|
| 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
155
|
| a form inside a modal | `<Body as="form" id="…">` + a footer button with `form="…"` | a `display: contents` form wrapper inside the Body |
|
|
@@ -114,6 +160,10 @@ role clears 4.5:1 against `--background`/`--card`/`--popover`/`--muted` (3:1 for
|
|
|
114
160
|
| a titled group of form rows | `<FieldSet>` + `<FieldLegend>` (+ `<FieldDescription>`) | a tracked uppercase `SectionLabel` eyebrow |
|
|
115
161
|
| rows that belong to the row above them | `<FieldSubGroup>` | a bare `<Separator>` and a left pad |
|
|
116
162
|
| picking one of a few described choices | `<OptionCardGroup>` + `<OptionCard>` | a hand-rolled `role="radio"` card list |
|
|
163
|
+
| picking one of a few results you can see (pictures, shapes, previews) | `<PreviewTileGroup>` + `<PreviewTile>` | a grid of `aria-pressed` buttons by hand |
|
|
164
|
+
| one colour out of a few | `<SwatchPicker>` (+ a picker as its child) | round buttons by hand |
|
|
165
|
+
| an editor that leaves the page live behind it | `<DockedPanel>` + its Header, Body, Footer | a `<Sheet>` with its scrim hidden |
|
|
166
|
+
| tabs above a stack of toggle groups | `<TabsTrigger icon>` | an `<Icon>` placed inside the trigger by hand |
|
|
117
167
|
| picking one area, or several | `<AreaPicker>` (`values` + `onValuesChange` for multi) | a hand-rolled checkbox list of areas |
|
|
118
168
|
| a field-shaped picker's trigger | `<PickerTrigger>` (chevron, clear button, expanded state) | a `PICKER_TRIGGER` button with its own chevron |
|
|
119
169
|
| position inside a multi-step flow | `<StepIndicator count index>` | a hand-rolled row of dots |
|
|
@@ -121,11 +171,41 @@ role clears 4.5:1 against `--background`/`--card`/`--popover`/`--muted` (3:1 for
|
|
|
121
171
|
| a metallic tier chip | `<TierBadge>` | gradients by hand |
|
|
122
172
|
| the ambient motion window | `startMotionWindow()` | an app-local timer writing `data-motion` |
|
|
123
173
|
| a built-in wallpaper | `GEOMETRIC_HOUSES_SVG` from `@glasshome/ui/backgrounds` | an app's own copy of the SVG |
|
|
174
|
+
| 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 |
|
|
124
175
|
|
|
125
176
|
Server-run `.astro` markup imports `@glasshome/ui/solid` too: the `solid`
|
|
126
177
|
export condition hands Astro the source, and a component with no `client:`
|
|
127
178
|
directive renders to static HTML with no runtime shipped.
|
|
128
179
|
|
|
180
|
+
## Composition (the pillar)
|
|
181
|
+
|
|
182
|
+
Nobody reads a screen. A homeowner arrives with one question and hunts for the
|
|
183
|
+
answer; every rule here makes that hunt shorter.
|
|
184
|
+
|
|
185
|
+
1. **Edges place things.** Every element sits on at least two edges: a side of
|
|
186
|
+
its surface, or an edge another element makes (an avatar's bottom, the row
|
|
187
|
+
above). Text leads on the left, values and actions trail on the right;
|
|
188
|
+
centre only what nobody needs to read. Empty space is resolved by moving
|
|
189
|
+
content onto an edge or making a new edge (a `Separator`, an aligned row),
|
|
190
|
+
never by adding content to fill it or hiding actions in an overflow menu.
|
|
191
|
+
2. **Density is fixed by difference.** A long uniform list is
|
|
192
|
+
grouped by what the homeowner looks for (area, day, person) under
|
|
193
|
+
`SectionGroup` / `FieldSet`, and its rows vary with the visual of what they
|
|
194
|
+
name. More spacing only makes the same wall longer.
|
|
195
|
+
3. **Show before you tell.** A concept with a recognizable visual wears it: a
|
|
196
|
+
person is their `Avatar`, an area its icon, a state a `Badge`, a level a
|
|
197
|
+
fill. One visual per concept everywhere, rendered by one component. A label,
|
|
198
|
+
helper line or tooltip added to explain something is the last resort: it
|
|
199
|
+
makes the screen harder to scan, and touch has no hover.
|
|
200
|
+
4. **Emphasis is contrast with neighbours.** A value at its default is quiet
|
|
201
|
+
(`--muted-foreground`, no fill); a changed or active one earns the tone. One
|
|
202
|
+
accent per view. To lift one thing, quiet what surrounds it.
|
|
203
|
+
5. **Glass means a unit.** A glass surface says "this floats on its own". Page
|
|
204
|
+
sections are cards; inside a surface that is already glass (dialog, sheet,
|
|
205
|
+
popover, card), group with `SectionGroup`, `FieldSet` and `Separator`, and
|
|
206
|
+
stop at one bordered row layer (`SectionRow`, `OptionCard`). A `Card` or
|
|
207
|
+
`SectionCard` never goes inside another glass surface.
|
|
208
|
+
|
|
129
209
|
## Motion (the pillar)
|
|
130
210
|
|
|
131
211
|
Motion is one system, not per-component flair. Four rules, all held by
|
|
@@ -165,6 +245,8 @@ Motion is one system, not per-component flair. Four rules, all held by
|
|
|
165
245
|
|
|
166
246
|
`RISE_MOTION`: `MODAL_MOTION`'s twin for a surface that stays mounted; its closed state is a resting style, since a mount door's exit ends and leaves the element showing.
|
|
167
247
|
|
|
248
|
+
`TRAVEL_MOTION`: a mounted surface that follows its subject from place to place, transitioning translate and clip-path (the spotlight's hole and bubble as the target changes).
|
|
249
|
+
|
|
168
250
|
A new component with an open, pick or reveal state uses these doors before it
|
|
169
251
|
gets any motion of its own; a motion need none of them covers is added to
|
|
170
252
|
`motion-classes.ts`, not written inline.
|
package/dist/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { $ as e,
|
|
1
|
+
import { $ as e, $t as t, A as n, At as r, B as i, Bt as a, C as ee, D as te, Dt as o, F as s, Ft as c, G as l, Gt as u, H as d, Ht as f, I as p, It as m, Jt as h, Kt as g, L as _, M as v, Mt as y, N as b, O as x, P as S, Pt as C, Q as w, Qt as T, R as E, Rt as D, S as O, T as k, Tt as A, U as j, V as M, Vt as N, W as P, Wt as F, X as I, Xt as L, Y as R, Yt as z, Z as B, Zt as V, _ as H, at as U, b as W, bt as G, c as K, ct as q, d as J, en as Y, et as ne, f as X, ft as Z, g as re, h as ie, i as ae, it as oe, j as se, jt as ce, k as le, kt as ue, l as de, lt as fe, m as pe, n as me, nt as he, ot as ge, p as _e, q as ve, qt as ye, r as be, rt as xe, s as Se, st as Ce, t as we, tn as Te, tt as Ee, u as De, ut as Oe, v as Q, w as ke, wt as Ae, x as je, xt as Me, y as Ne, yt as Pe, z as Fe, zt as Ie } from "./utils-CMk7R3zM.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 { F as ALERT_CLASS, u as ALERT_CONTENT_CLASS, g as ALERT_DESCRIPTION_CLASS, ye as ALERT_ICON_BG_CLASS, h as ALERT_ICON_CLASS, z as ALERT_ICON_PATHS, L as ALERT_TITLE_CLASS, V as ALERT_TONES, D as BUTTON_DEFAULT_CLASS, Ie as BUTTON_OUTLINE_CLASS, Z as CARD_BLUR, Pe as CARD_SURFACE, G as CARD_SURFACE_BASE, Me as CARD_SURFACE_OPAQUE, I as CAROUSEL_DOTS, B as CAROUSEL_VIEWPORT, ie as CHIP, xe as CONTROL_H, Q as CONTROL_H_TOUCH, oe as FIELD_CHROME, U as FIELD_CONTROL, o as FIELD_MOTION, ge as FIELD_TEXT, je as FLOATING_PANEL, Ce as FOCUS_RING, a as ICON_BUTTON_CLASS, re as ICON_PILL, H as ICON_PILL_TINT, q as INPUT_CLASS, fe as INPUT_SURFACE, Oe as INVALID_RING, S as LOGO_DEFAULT_SIZE, s as LOGO_DEFAULT_SRC, p as LOGO_DEFAULT_SUB, _ as LOGO_MARK_CLASS, E as LOGO_MARK_PX, Fe as LOGO_NAME_CLASS, i as LOGO_ROOT_CLASS, M as LOGO_SIZES, d as LOGO_STACK_CLASS, j as LOGO_SUB_CLASS, le as MENU_ITEM, n as MENU_ITEM_BASE, se as MENU_ITEM_X, v as MENU_LABEL, b as MENU_SEPARATOR, me as MOBILE_BREAKPOINT, ue as MODAL_MOTION, r as MORPH_MOTION, $ as MOTION_WINDOW_MS, N as OUTLINE_SURFACE, O as OVERLAY_BLUR, ce as OVERLAY_MOTION, ee as OVERLAY_SURFACE, ke as OVERLAY_SURFACE_BASE, k as OVERLAY_SURFACE_OPAQUE, Ne as PICKER_LIST, W as PICKER_TRIGGER, Ee as POSITION_BAR, he as POSITION_BAR_LIT, y as PRESS_DIP, te as SCRIM_CLASS, C as SCRIM_MOTION, J as SECTION_INNER_RADIUS, X as SECTION_OUTER_RADIUS, _e as SECTION_PADDING, pe as SECTION_ROW_CLASS, Ae as SECTION_ROW_SURFACE, De as SEGMENT_ITEM, c as SETTLE_MOTION, m as STAGGER, ae as THUMB_CLASS, Se as THUMB_RAIL_BLEED, K as THUMB_RAIL_PAD, de as THUMB_SIZE, A as TRACK_SURFACE, P as Z, l as Z_CLASS, T as alertBorder, t as alertFill, Y as alertIconBgStyle, Te as alertIconFill, x as anchorToTriggerTop, f as buttonVariants, w as carouselDot, e as carouselItem, ne as carouselTrack, we as cn, be as createIsMobile, ve as glassToneText, Le as startMotionWindow, R as toneTextMix };
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import type { JSX } from "solid-js";
|
|
2
|
+
/** A panel that grows out of the element that opened it: its corner on the element's corner, at
|
|
3
|
+
* least as wide as the element, shifted only as far as the screen needs. The --morph-* values
|
|
4
|
+
* start the panel clipped to the element's box (MORPH_MOTION's keyframes), so it unrolls out of it. */
|
|
5
|
+
export declare function overAnchor(anchor: HTMLElement, width: number): JSX.CSSProperties;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export declare const OUTLINE_SURFACE = "glass [--glass-
|
|
1
|
+
export declare const OUTLINE_SURFACE = "glass glass-control [--glass-base:color-mix(in_srgb,var(--card)_calc(var(--material-clarity)*0.6),transparent)] [--glass-light:0.1] backdrop-blur-[calc(var(--material-blur,24px)*0.6)] backdrop-saturate-[1.6] backdrop-brightness-[1.1] [--glass-edge:var(--border)] dark:[--glass-edge:oklch(1_0_0/0.16)] hover:[--glass-light:0.18]";
|
|
2
2
|
export declare const buttonVariants: import("cva").CVAComponent<Omit<{
|
|
3
3
|
base: string;
|
|
4
4
|
variants: {
|
|
@@ -15,6 +15,7 @@ export declare const buttonVariants: import("cva").CVAComponent<Omit<{
|
|
|
15
15
|
sm: string;
|
|
16
16
|
lg: string;
|
|
17
17
|
icon: string;
|
|
18
|
+
xl: string;
|
|
18
19
|
none: string;
|
|
19
20
|
};
|
|
20
21
|
};
|
|
@@ -37,6 +38,7 @@ export declare const buttonVariants: import("cva").CVAComponent<Omit<{
|
|
|
37
38
|
sm: string;
|
|
38
39
|
lg: string;
|
|
39
40
|
icon: string;
|
|
41
|
+
xl: string;
|
|
40
42
|
none: string;
|
|
41
43
|
};
|
|
42
44
|
};
|
|
@@ -58,6 +60,7 @@ export declare const buttonVariants: import("cva").CVAComponent<Omit<{
|
|
|
58
60
|
sm: string;
|
|
59
61
|
lg: string;
|
|
60
62
|
icon: string;
|
|
63
|
+
xl: string;
|
|
61
64
|
none: string;
|
|
62
65
|
};
|
|
63
66
|
}>;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
export declare const CARD_SURFACE_BASE = "glass [--glass-wash:20%] [--glass-rim:0.3] [--glass-lift:0.45] [--glass-shade:0.05] dark:[--glass-shade:0] [--glass-base:color-mix(in_srgb,var(--card)
|
|
2
|
-
export declare const CARD_BLUR = "backdrop-blur-[var(--glass-blur,24px)] backdrop-saturate-[1.8]";
|
|
3
|
-
export declare const CARD_SURFACE = "glass [--glass-wash:20%] [--glass-rim:0.3] [--glass-lift:0.45] [--glass-shade:0.05] dark:[--glass-shade:0] [--glass-base:color-mix(in_srgb,var(--card)
|
|
1
|
+
export declare const CARD_SURFACE_BASE = "glass [--glass-wash:20%] [--glass-rim:0.3] [--glass-lift:0.45] [--glass-shade:0.05] dark:[--glass-shade:0] [--glass-base:color-mix(in_srgb,var(--card)_var(--material-clarity),transparent)]";
|
|
2
|
+
export declare const CARD_BLUR = "backdrop-blur-[var(--glass-blur,var(--material-blur,24px))] backdrop-saturate-[1.8]";
|
|
3
|
+
export declare const CARD_SURFACE = "glass [--glass-wash:20%] [--glass-rim:0.3] [--glass-lift:0.45] [--glass-shade:0.05] dark:[--glass-shade:0] [--glass-base:color-mix(in_srgb,var(--card)_var(--material-clarity),transparent)] backdrop-blur-[var(--glass-blur,var(--material-blur,24px))] backdrop-saturate-[1.8]";
|
|
4
4
|
export declare const CARD_SURFACE_OPAQUE = "glass [--glass-wash:20%] [--glass-rim:0.3] [--glass-lift:0.45] [--glass-shade:0.05] dark:[--glass-shade:0]";
|
|
5
|
-
export declare const SECTION_ROW_SURFACE = "glass [--glass-rim:0.3] [--glass-base:color-mix(in_srgb,var(--card)
|
|
5
|
+
export declare const SECTION_ROW_SURFACE = "glass [--glass-rim:0.3] [--glass-base:color-mix(in_srgb,var(--card)_var(--material-clarity),transparent)]";
|
|
6
6
|
export declare const TRACK_SURFACE = "border border-border/50 bg-card/40 backdrop-blur-sm";
|
|
7
7
|
export declare const CARD_PADDING: {
|
|
8
8
|
readonly slots: "flex flex-col gap-3 p-3 md:gap-4 md:p-4";
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
export declare const OVERLAY_MOTION = "origin-(--kb-popper-content-transform-origin) data-[expanded]:animate-in data-[expanded]:duration-(--duration-expand) data-[expanded]:ease-(--ease-expand) data-[expanded]:fade-in-0 data-[expanded]:zoom-in-90 data-[closed]:animate-out data-[closed]:duration-(--duration-micro) data-[closed]:ease-(--ease-contract) data-[closed]:fade-out-0 data-[closed]:zoom-out-95";
|
|
2
2
|
export declare const FIELD_MOTION = "data-[closed]:animate-select-out data-[expanded]:animate-select-in";
|
|
3
3
|
export declare const MORPH_MOTION = "[--morph-w:var(--kb-popper-anchor-width)] min-w-[var(--kb-popper-anchor-width)] data-[expanded]:animate-morph-in data-[closed]:animate-morph-out";
|
|
4
|
+
export declare const ANCHORED_MOTION = "data-[expanded]:animate-anchored-in data-[closed]:animate-morph-out";
|
|
4
5
|
export declare const STAGGER = "gh-stagger";
|
|
5
6
|
export declare const MODAL_MOTION = "data-[expanded]:animate-in data-[expanded]:duration-(--duration-expand) data-[expanded]:ease-(--ease-expand) data-[expanded]:fade-in-0 data-[expanded]:zoom-in-[0.94] data-[expanded]:slide-in-from-bottom-2 data-[closed]:animate-out data-[closed]:duration-(--duration-micro) data-[closed]:ease-(--ease-contract) data-[closed]:fade-out-0 data-[closed]:zoom-out-[0.96]";
|
|
6
7
|
export declare const SCRIM_MOTION = "data-[expanded]:animate-in data-[expanded]:duration-(--duration-expand) data-[expanded]:ease-(--ease-expand) data-[expanded]:fade-in-0 data-[closed]:animate-out data-[closed]:duration-(--duration-micro) data-[closed]:ease-(--ease-contract) data-[closed]:fade-out-0";
|
|
@@ -8,3 +9,4 @@ export declare const SETTLE_MOTION = "animate-in fade-in-0 slide-in-from-bottom-
|
|
|
8
9
|
export declare const PRESS_DIP = "active:scale-[0.97]";
|
|
9
10
|
export declare const HOLD_MOTION = "scale-0 opacity-0 transition-[scale,opacity] duration-(--duration-state) ease-(--ease-contract) data-[hold]:scale-100 data-[hold]:opacity-100 data-[hold]:duration-(--duration-morph) data-[hold]:ease-linear data-[fired]:scale-100 data-[fired]:opacity-0";
|
|
10
11
|
export declare const RISE_MOTION = "origin-bottom transition-[opacity,scale,translate] data-[expanded]:duration-(--duration-expand) data-[expanded]:ease-(--ease-expand) data-[closed]:duration-(--duration-micro) data-[closed]:ease-(--ease-contract) data-[closed]:pointer-events-none data-[closed]:translate-y-2 data-[closed]:scale-95 data-[closed]:opacity-0";
|
|
12
|
+
export declare const TRAVEL_MOTION = "transition-[translate,clip-path] duration-(--duration-morph) ease-(--ease-expand)";
|
|
@@ -1,8 +1,10 @@
|
|
|
1
|
-
export declare const OVERLAY_BLUR = "backdrop-blur-[var(--glass-blur,24px)] backdrop-saturate-[1.2]";
|
|
1
|
+
export declare const OVERLAY_BLUR = "backdrop-blur-[var(--glass-blur,var(--material-blur,24px))] backdrop-saturate-[1.2]";
|
|
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
|
-
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,24px)] backdrop-saturate-[1.2]";
|
|
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-[1.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
5
|
export declare const SCRIM_CLASS = "bg-scrim backdrop-blur-md";
|
|
6
|
+
export declare const PANEL_TAIL: string;
|
|
7
|
+
export declare const FLOATING_PANEL_SURFACE: string;
|
|
6
8
|
export declare const FLOATING_PANEL: string;
|
|
7
9
|
export declare const anchorToTriggerTop: (anchor?: HTMLElement) => {
|
|
8
10
|
x: number;
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
export interface Box {
|
|
2
|
+
x: number;
|
|
3
|
+
y: number;
|
|
4
|
+
width: number;
|
|
5
|
+
height: number;
|
|
6
|
+
}
|
|
7
|
+
export interface Viewport {
|
|
8
|
+
width: number;
|
|
9
|
+
height: number;
|
|
10
|
+
}
|
|
11
|
+
export declare function holePath(viewport: Viewport, target: Box | null, pad: number, radius: number): string;
|
|
12
|
+
export declare function placeBubble(viewport: Viewport, target: Box | null, bubble: {
|
|
13
|
+
width: number;
|
|
14
|
+
height: number;
|
|
15
|
+
}, gap: number, margin: number): {
|
|
16
|
+
x: number;
|
|
17
|
+
y: number;
|
|
18
|
+
side: "above" | "below" | "center" | "inside";
|
|
19
|
+
tail: {
|
|
20
|
+
x: number;
|
|
21
|
+
} | null;
|
|
22
|
+
};
|
package/dist/solid/button.d.ts
CHANGED
|
@@ -1,7 +1,12 @@
|
|
|
1
1
|
import { Button as KobalteButton } from "@kobalte/core/button";
|
|
2
2
|
import type { VariantProps } from "cva";
|
|
3
|
-
import { type ComponentProps } from "solid-js";
|
|
3
|
+
import { type ComponentProps, type JSX } from "solid-js";
|
|
4
4
|
import { buttonVariants } from "../lib/button-variants.js";
|
|
5
5
|
type ButtonProps = ComponentProps<typeof KobalteButton> & VariantProps<typeof buttonVariants>;
|
|
6
|
-
declare function Button(props: ButtonProps):
|
|
7
|
-
|
|
6
|
+
declare function Button(props: ButtonProps): JSX.Element;
|
|
7
|
+
declare function ButtonWell(props: {
|
|
8
|
+
icon?: string;
|
|
9
|
+
children?: JSX.Element;
|
|
10
|
+
class?: string;
|
|
11
|
+
}): JSX.Element;
|
|
12
|
+
export { Button, ButtonWell, buttonVariants };
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import type { Color } from "@kobalte/core/colors";
|
|
2
|
+
import { type Component } from "solid-js";
|
|
3
|
+
interface ColorDiscProps {
|
|
4
|
+
/** The colour shown and moved: its hue is the direction from the centre, its saturation the distance. */
|
|
5
|
+
value?: Color;
|
|
6
|
+
onChange?: (value: Color) => void;
|
|
7
|
+
onChangeEnd?: (value: Color) => void;
|
|
8
|
+
/** Diameter in px. */
|
|
9
|
+
size?: number;
|
|
10
|
+
disabled?: boolean;
|
|
11
|
+
class?: string;
|
|
12
|
+
"aria-label"?: string;
|
|
13
|
+
}
|
|
14
|
+
/**
|
|
15
|
+
* A colour disc: hue around it, saturation from the white centre to the rim, one thumb for both.
|
|
16
|
+
*/
|
|
17
|
+
declare const ColorDisc: Component<ColorDiscProps>;
|
|
18
|
+
interface TemperatureBarProps {
|
|
19
|
+
/** The white shown, in Kelvin. */
|
|
20
|
+
value: number;
|
|
21
|
+
min?: number;
|
|
22
|
+
max?: number;
|
|
23
|
+
onChange?: (kelvin: number) => void;
|
|
24
|
+
onChangeEnd?: (kelvin: number) => void;
|
|
25
|
+
disabled?: boolean;
|
|
26
|
+
class?: string;
|
|
27
|
+
"aria-label"?: string;
|
|
28
|
+
}
|
|
29
|
+
/** Kelvin to a display colour, for the bar's paint only. */
|
|
30
|
+
export declare function kelvinToCss(kelvin: number): string;
|
|
31
|
+
/** Warm to cool white on one bar, in Kelvin, over the span the lamps can reach. */
|
|
32
|
+
declare const TemperatureBar: Component<TemperatureBarProps>;
|
|
33
|
+
export { ColorDisc, TemperatureBar };
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { type JSX } from "solid-js";
|
|
2
|
+
export interface DashboardPreviewTile {
|
|
3
|
+
key: string;
|
|
4
|
+
x: number;
|
|
5
|
+
y: number;
|
|
6
|
+
w: number;
|
|
7
|
+
h: number;
|
|
8
|
+
/** A render shot at exactly this w x h; never a render of another size. */
|
|
9
|
+
src?: string;
|
|
10
|
+
icon: string;
|
|
11
|
+
label: string;
|
|
12
|
+
description?: string;
|
|
13
|
+
}
|
|
14
|
+
/** A dashboard drawn from widget renders at their true grid positions, scaled to its box. */
|
|
15
|
+
export declare function DashboardPreview(props: {
|
|
16
|
+
columns: number;
|
|
17
|
+
tiles: DashboardPreviewTile[];
|
|
18
|
+
/** Rows shown at most; the rest is cut at the bottom edge. */
|
|
19
|
+
maxRows?: number;
|
|
20
|
+
/** Sit the dashboard in a recessed well, the ground it would stand on. */
|
|
21
|
+
stage?: boolean;
|
|
22
|
+
class?: string;
|
|
23
|
+
style?: JSX.CSSProperties;
|
|
24
|
+
}): JSX.Element;
|
|
@@ -5,6 +5,7 @@ export declare const MODAL_MAX_H = "[--modal-max-h:85dvh] max-h-[var(--modal-max
|
|
|
5
5
|
export declare const MODAL_WIDTH: Record<ModalSize, string>;
|
|
6
6
|
export declare const MODAL_ANCHOR: Record<ModalSize, string>;
|
|
7
7
|
export declare const MODAL_PANEL: string;
|
|
8
|
+
export declare const ANCHORED_PANEL: string;
|
|
8
9
|
export declare const MODAL_SCRIM: string;
|
|
9
10
|
export declare const MODAL_TITLE = "font-semibold text-foreground text-lg leading-none tracking-tight";
|
|
10
11
|
export declare const MODAL_DESCRIPTION = "text-muted-foreground text-sm";
|
package/dist/solid/dialog.d.ts
CHANGED
|
@@ -14,6 +14,9 @@ type DialogContentProps = ComponentProps<typeof DialogPrimitive.Content> & {
|
|
|
14
14
|
size?: ModalSize;
|
|
15
15
|
/** Names a panel that has no `DialogTitle`. A registered Title wins. */
|
|
16
16
|
ariaLabel?: string;
|
|
17
|
+
/** Opens the panel out of this element (the tile it came from): it grows from the element's box
|
|
18
|
+
* over it instead of appearing centred, and closes back into it. */
|
|
19
|
+
anchor?: HTMLElement;
|
|
17
20
|
};
|
|
18
21
|
declare const DialogContent: ParentComponent<DialogContentProps>;
|
|
19
22
|
declare const DialogHeader: Component<import("./dialog-parts.js").ModalHeaderProps>, DialogBody: Component<import("./dialog-parts.js").ModalBodyProps>, DialogFooter: Component<import("solid-js").JSX.HTMLAttributes<HTMLDivElement>>;
|
package/dist/solid/dock.d.ts
CHANGED
|
@@ -9,6 +9,8 @@ interface DockItem {
|
|
|
9
9
|
isActive?: boolean;
|
|
10
10
|
/** Optional count badge on the item (e.g. pending updates). */
|
|
11
11
|
badge?: number;
|
|
12
|
+
/** Something dragged is held over this item and will land here on release. */
|
|
13
|
+
isDropTarget?: boolean;
|
|
12
14
|
}
|
|
13
15
|
interface DockProps extends ComponentProps<"div"> {
|
|
14
16
|
items: DockItem[];
|
|
@@ -21,6 +23,11 @@ interface DockProps extends ComponentProps<"div"> {
|
|
|
21
23
|
} | null;
|
|
22
24
|
/** A rim light that orbits for as long as a mode is on. */
|
|
23
25
|
glow?: boolean;
|
|
26
|
+
/** Where a drag from outside the dock is pointing, in client coordinates. */
|
|
27
|
+
dragPoint?: {
|
|
28
|
+
x: number;
|
|
29
|
+
y: number;
|
|
30
|
+
} | null;
|
|
24
31
|
}
|
|
25
32
|
interface DockIconButtonProps extends ComponentProps<"button"> {
|
|
26
33
|
icon: Component<{
|
|
@@ -28,6 +35,8 @@ interface DockIconButtonProps extends ComponentProps<"button"> {
|
|
|
28
35
|
}> | JSX.Element;
|
|
29
36
|
label: string;
|
|
30
37
|
isActive?: boolean;
|
|
38
|
+
/** Sits on the sliding pill: the active item, or the one a drag would land on. */
|
|
39
|
+
lit?: boolean;
|
|
31
40
|
badge?: number;
|
|
32
41
|
}
|
|
33
42
|
declare const Dock: Component<DockProps>;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { JSX } from "solid-js";
|
|
2
|
+
export declare function DockedPanel(props: {
|
|
3
|
+
open: boolean;
|
|
4
|
+
ariaLabel: string;
|
|
5
|
+
collapsed?: boolean;
|
|
6
|
+
onCollapsedChange?: (collapsed: boolean) => void;
|
|
7
|
+
class?: string;
|
|
8
|
+
children: JSX.Element;
|
|
9
|
+
}): JSX.Element;
|
|
10
|
+
declare const DockedPanelHeader: import("solid-js").Component<import("./dialog-parts.js").ModalHeaderProps>, DockedPanelBody: import("solid-js").Component<import("./dialog-parts.js").ModalBodyProps>, DockedPanelFooter: import("solid-js").Component<JSX.HTMLAttributes<HTMLDivElement>>;
|
|
11
|
+
export { DockedPanelBody, DockedPanelFooter, DockedPanelHeader };
|
|
@@ -1,8 +1,11 @@
|
|
|
1
|
+
import { type ImagePreset } from "./media-store.js";
|
|
1
2
|
export interface ImagePickerProps {
|
|
2
3
|
/** Sits on the trigger so a LabeledField's <Label for> points at a real control. */
|
|
3
4
|
id?: string;
|
|
4
5
|
value: string;
|
|
5
6
|
onChange: (id: string) => void;
|
|
7
|
+
/** Built-in pictures offered before the uploads; picking one stores `presetValue(key)`. */
|
|
8
|
+
presets?: Record<string, ImagePreset>;
|
|
6
9
|
class?: string;
|
|
7
10
|
}
|
|
8
11
|
export declare function ImagePicker(props: ImagePickerProps): import("solid-js").JSX.Element;
|
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 { RISE_MOTION } from "../lib/motion-classes.js";
|
|
3
|
+
export { RISE_MOTION, SETTLE_MOTION, TRAVEL_MOTION } from "../lib/motion-classes.js";
|
|
4
4
|
export { OVERLAY_SURFACE } from "../lib/overlay-classes.js";
|
|
5
5
|
export { SECTION_INNER_RADIUS, SECTION_OUTER_RADIUS, SECTION_PADDING, SECTION_ROW_CLASS, } from "../lib/section-tokens.js";
|
|
6
6
|
export { Accordion, AccordionContent, AccordionItem, AccordionTrigger, } from "./accordion.js";
|
|
@@ -12,7 +12,7 @@ export { Avatar, AvatarFallback, AvatarImage } from "./avatar.js";
|
|
|
12
12
|
export { Badge, TierBadge } from "./badge.js";
|
|
13
13
|
export { BottomSheet, BottomSheetBody, BottomSheetClose, BottomSheetContent, BottomSheetDescription, BottomSheetFooter, BottomSheetHandle, BottomSheetHeader, BottomSheetOverlay, BottomSheetPortal, BottomSheetTitle, BottomSheetTrigger, } from "./bottom-sheet/index.js";
|
|
14
14
|
export { Breadcrumb, BreadcrumbEllipsis, BreadcrumbItem, BreadcrumbLink, BreadcrumbList, BreadcrumbPage, BreadcrumbSeparator, } from "./breadcrumb.js";
|
|
15
|
-
export { Button, buttonVariants } from "./button.js";
|
|
15
|
+
export { Button, ButtonWell, buttonVariants } from "./button.js";
|
|
16
16
|
export { ButtonGroup, ButtonGroupSeparator, ButtonGroupText, buttonGroupVariants, } from "./button-group.js";
|
|
17
17
|
export { Card, CardAction, CardContent, CardDescription, CardFooter, CardHeader, CardTitle, } from "./card.js";
|
|
18
18
|
export type { CarouselApi, CarouselTransition } from "./carousel.js";
|
|
@@ -20,16 +20,19 @@ export { Carousel, CarouselContent, CarouselDots, CarouselItem, CarouselNext, Ca
|
|
|
20
20
|
export { AreaChart, BarList, formatBytes, formatCompact, RangeToggle, StackedBar, } from "./charts.js";
|
|
21
21
|
export { Checkbox } from "./checkbox.js";
|
|
22
22
|
export { Collapsible, CollapsibleContent, CollapsibleTrigger, } from "./collapsible.js";
|
|
23
|
+
export { ColorDisc, kelvinToCss, TemperatureBar, } from "./color-disc.js";
|
|
23
24
|
export { ColorSlider } from "./color-slider.js";
|
|
24
25
|
export { ColorWheel } from "./color-wheel.js";
|
|
25
26
|
export { ContextMenu, ContextMenuCheckboxItem, ContextMenuContent, ContextMenuGroup, ContextMenuItem, ContextMenuLabel, ContextMenuRadioGroup, ContextMenuRadioItem, ContextMenuSeparator, ContextMenuShortcut, ContextMenuSub, ContextMenuSubContent, ContextMenuSubTrigger, ContextMenuTrigger, } from "./context-menu.js";
|
|
26
27
|
export { CopyButton } from "./copy-button.js";
|
|
27
28
|
export { CountPill } from "./count-pill.js";
|
|
29
|
+
export { DashboardPreview, type DashboardPreviewTile } from "./dashboard-preview.js";
|
|
28
30
|
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, TableSearchInput, TableSkeleton, TableSortHeader, } from "./data-table.js";
|
|
29
31
|
export { Dialog, DialogBody, DialogClose, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogTitle, DialogTrigger, } from "./dialog.js";
|
|
30
32
|
export type { ModalSize } from "./dialog-parts.js";
|
|
31
33
|
export type { DockIconButtonProps, DockItem, DockProps } from "./dock.js";
|
|
32
34
|
export { Dock } from "./dock.js";
|
|
35
|
+
export { DockedPanel, DockedPanelBody, DockedPanelFooter, DockedPanelHeader, } from "./docked-panel.js";
|
|
33
36
|
export { DropdownMenu, DropdownMenuCheckboxItem, DropdownMenuContent, DropdownMenuGroup, DropdownMenuItem, DropdownMenuLabel, DropdownMenuRadioGroup, DropdownMenuRadioItem, DropdownMenuSeparator, DropdownMenuShortcut, DropdownMenuSub, DropdownMenuSubContent, DropdownMenuSubTrigger, DropdownMenuTrigger, } from "./dropdown-menu.js";
|
|
34
37
|
export { Empty, EmptyContent, EmptyDescription, EmptyHeader, EmptyMedia, EmptyTitle, } from "./empty.js";
|
|
35
38
|
export { type AreaViewLike, type EntityDataAdapter, EntityDataContext, type EntityViewLike, provideEntityData, useEntityData, } from "./entity-data.js";
|
|
@@ -50,7 +53,7 @@ export { Label } from "./label.js";
|
|
|
50
53
|
export { createListReorder, dragTargetIndex, type ListReorder, type ListReorderOptions, } from "./list-reorder.js";
|
|
51
54
|
export { Logo } from "./logo.js";
|
|
52
55
|
export { mediaIndexErrorCopy, mediaStoreErrorCopy, toMediaStoreError, } from "./media-copy.js";
|
|
53
|
-
export { type BrokenMedia, createBrokenMedia, imageUrl, isMediaImage, MEDIA_PAGE_SIZE, type MediaIndex, type MediaQuotaUsage, type MediaStore, MediaStoreContext, MediaStoreError, type MediaStoreErrorKind, type MediaVariant, mediaUrl, provideMediaStore, type StoredMedia, sortMediaForClearing, useMediaStore, } from "./media-store.js";
|
|
56
|
+
export { type BrokenMedia, createBrokenMedia, type ImagePreset, imagePreset, imageUrl, isMediaImage, MEDIA_PAGE_SIZE, type MediaIndex, type MediaQuotaUsage, type MediaStore, MediaStoreContext, MediaStoreError, type MediaStoreErrorKind, type MediaVariant, mediaUrl, presetValue, provideMediaStore, type StoredMedia, sortMediaForClearing, useMediaStore, } from "./media-store.js";
|
|
54
57
|
export { MediaTile, type MediaTileProps } from "./media-tile.js";
|
|
55
58
|
export { NumberField } from "./number-field.js";
|
|
56
59
|
export { HeroOption, OptionCard, OptionCardGroup, OptionChoice } from "./option-card.js";
|
|
@@ -62,6 +65,7 @@ export { PICKER_ROW_HEIGHT, PickerRow } from "./picker-row.js";
|
|
|
62
65
|
export { PickerSearch, type PickerSearchProps } from "./picker-search.js";
|
|
63
66
|
export { PickerTrigger, type PickerTriggerProps } from "./picker-trigger.js";
|
|
64
67
|
export { Popover, PopoverAnchor, PopoverContent, PopoverTrigger, } from "./popover.js";
|
|
68
|
+
export { PreviewTile, PreviewTileGroup } from "./preview-tile.js";
|
|
65
69
|
export { Progress } from "./progress.js";
|
|
66
70
|
export { RadioGroup, RadioGroupItem } from "./radio-group.js";
|
|
67
71
|
export { ResizableHandle, ResizablePanel, ResizablePanelGroup, } from "./resizable.js";
|
|
@@ -79,7 +83,9 @@ export { Slider } from "./slider.js";
|
|
|
79
83
|
export { SlidingIndicator } from "./sliding-indicator.js";
|
|
80
84
|
export { GlassToast, Toaster, toast } from "./sonner.js";
|
|
81
85
|
export { Spinner } from "./spinner.js";
|
|
86
|
+
export { Spotlight } from "./spotlight.js";
|
|
82
87
|
export { StepIndicator } from "./step-indicator.js";
|
|
88
|
+
export { SwatchPicker } from "./swatch-picker.js";
|
|
83
89
|
export { Switch } from "./switch.js";
|
|
84
90
|
export { TABLE_CELL_INSET, Table, TableBody, TableCaption, TableCell, TableFooter, TableHead, TableHeader, TableRow, } from "./table.js";
|
|
85
91
|
export { Tabs, TabsContent, TabsList, TabsTrigger } from "./tabs.js";
|