@luxalgo/vela 0.8.1 → 0.8.3
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/README.md +1 -1
- package/dist/{DataProvider-DwFIoV4r.d.ts → DataProvider-oH78tYXL.d.ts} +1 -1
- package/dist/{DataProvider-BrlxntPN.d.cts → DataProvider-wbtJ3-Sa.d.cts} +1 -1
- package/dist/{chunk-DBDXKZUF.js → chunk-2IPXYM4B.js} +306 -177
- package/dist/{chunk-NELQJCGK.js → chunk-G7B7ZCBF.js} +167 -10
- package/dist/{chunk-ATGTCWHJ.js → chunk-HMHA733L.js} +473 -196
- package/dist/{chunk-EZ5FWVLA.js → chunk-KWI3YDBW.js} +343 -17
- package/dist/{chunk-LMBYEGUR.js → chunk-TO3GIK7Z.js} +71 -6
- package/dist/{chunk-BZQM2XO7.js → chunk-VHGACEHO.js} +62 -1
- package/dist/{contributions-tjNExo1o.d.ts → contributions-BhOBRenr.d.cts} +79 -12
- package/dist/{contributions-CtlptxR8.d.cts → contributions-HGqnNb_P.d.ts} +79 -12
- package/dist/index.cjs +733 -113
- package/dist/index.d.cts +34 -14
- package/dist/index.d.ts +34 -14
- package/dist/index.js +5 -5
- package/dist/{options-BnEPUuVV.d.ts → options-lMUwmRwh.d.cts} +69 -4
- package/dist/{options-BnEPUuVV.d.cts → options-lMUwmRwh.d.ts} +69 -4
- package/dist/{plugin-e2WUEtiI.d.ts → plugin-Cr2Pj8q8.d.ts} +4 -4
- package/dist/{plugin-BWxJRKzS.d.cts → plugin-Do5J5xuF.d.cts} +4 -4
- package/dist/plugin.cjs +38 -6
- package/dist/plugin.d.cts +5 -5
- package/dist/plugin.d.ts +5 -5
- package/dist/plugin.js +3 -3
- package/dist/providers/binance.d.cts +2 -2
- package/dist/providers/binance.d.ts +2 -2
- package/dist/providers/coinbase.d.cts +2 -2
- package/dist/providers/coinbase.d.ts +2 -2
- package/dist/providers/hyperliquid.d.cts +2 -2
- package/dist/providers/hyperliquid.d.ts +2 -2
- package/dist/{side-panel-HF0IAzwf.d.cts → side-panel-_2UK1gSm.d.cts} +58 -3
- package/dist/{side-panel-HF0IAzwf.d.ts → side-panel-_2UK1gSm.d.ts} +58 -3
- package/dist/{statusline-model-DFY7tuHj.d.cts → statusline-model-B-2xGlB_.d.cts} +3 -3
- package/dist/{statusline-model-zKXtGIjj.d.ts → statusline-model-CY1wzxHg.d.ts} +3 -3
- package/dist/ui.cjs +298 -13
- package/dist/ui.d.cts +132 -74
- package/dist/ui.d.ts +132 -74
- package/dist/ui.js +3 -3
- package/dist/vela.global.js +734 -114
- package/dist/vela.global.min.js +86 -52
- package/dist/widget.cjs +1227 -211
- package/dist/widget.d.cts +36 -12
- package/dist/widget.d.ts +36 -12
- package/dist/widget.js +7 -7
- package/dist/workspace.cjs +1226 -211
- package/dist/workspace.d.cts +47 -20
- package/dist/workspace.d.ts +47 -20
- package/dist/workspace.js +6 -6
- package/package.json +2 -2
- /package/dist/{chunk-JU4CWEBF.js → chunk-W5YPYZ2P.js} +0 -0
package/dist/ui.d.cts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { c as VelaTheme } from './options-
|
|
1
|
+
import { c as VelaTheme } from './options-lMUwmRwh.cjs';
|
|
2
2
|
import { MachineSchema, Service, Machine } from '@zag-js/core';
|
|
3
3
|
export { a as KeyBindingDescriptor, K as KeymapManager, b as KeymapOptions, R as ResolvedBinding } from './keymap-CGOz5F5f.cjs';
|
|
4
4
|
import * as tooltip from '@zag-js/tooltip';
|
|
@@ -11,77 +11,6 @@ export { normalizeProps, spreadProps } from '@zag-js/vanilla';
|
|
|
11
11
|
* returned unchanged so callers can pass through `transparent`, `currentColor`, etc. */
|
|
12
12
|
declare function withAlpha(color: string, alpha: number): string;
|
|
13
13
|
|
|
14
|
-
/** A ready-to-insert element rendering the icon (empty span when unknown). */
|
|
15
|
-
declare function iconEl(id: string, doc?: Document): HTMLElement;
|
|
16
|
-
|
|
17
|
-
/** Overlay scrollbar used by settings panes, dialog bodies, and similar chrome. */
|
|
18
|
-
declare function overlayScrollbarCss(selector: string, width?: number): string;
|
|
19
|
-
/** Focus ring shared by typeable fields (combo inputs, textareas). */
|
|
20
|
-
declare const FIELD_FOCUS_CSS = "outline:none;transition:border-color .12s ease,box-shadow .12s ease;";
|
|
21
|
-
declare const FIELD_FOCUS_RING = "border-color:var(--vela-focus);box-shadow:0 0 0 3px var(--vela-focus-soft);";
|
|
22
|
-
/** Inject a stylesheet once per root (document or shadow root). Idempotent by id. */
|
|
23
|
-
declare function injectStyles(id: string, css: string, root?: Document | ShadowRoot): void;
|
|
24
|
-
|
|
25
|
-
/** Write the theme-derived custom properties onto a host element (the widget root and
|
|
26
|
-
* every floating layer — menus/tooltips portal outside the root, so layers re-apply). */
|
|
27
|
-
declare function applyThemeTokens(el: HTMLElement, t: VelaTheme): void;
|
|
28
|
-
/** Re-token a chart-overlay host (statusline, watermark, toast — chrome floating OVER
|
|
29
|
-
* the plot) from the LIVE plot surface: a config edit can recolor the plot background
|
|
30
|
-
* independently of the app theme (a white plot typed into settings on the dark theme),
|
|
31
|
-
* and the overlay ink must stay readable either way. `config` is the renderer's
|
|
32
|
-
* `getConfig()` snapshot; a missing/shapeless one falls back to the base app theme.
|
|
33
|
-
* Floating menus and dropdowns do NOT use this — they mount on {@link floatingLayerHost}
|
|
34
|
-
* so their surface follows the app theme alone. */
|
|
35
|
-
declare function applyPlotOverlayTokens(host: HTMLElement, base: VelaTheme, config: unknown): void;
|
|
36
|
-
/** Mark an element as a kit host: static token sheet + the `.vela-ui` class. */
|
|
37
|
-
declare function ensureUIHost(el: HTMLElement, theme?: VelaTheme): void;
|
|
38
|
-
|
|
39
|
-
interface MachineHandle<T extends MachineSchema> {
|
|
40
|
-
service: Service<T>;
|
|
41
|
-
/** Re-run the view projection now (e.g. after external DOM swaps). */
|
|
42
|
-
flush(): void;
|
|
43
|
-
stop(): void;
|
|
44
|
-
}
|
|
45
|
-
/** Start a machine and keep `render(service)` in sync with every transition.
|
|
46
|
-
* `render` runs once immediately (initial projection) and on each machine notification. */
|
|
47
|
-
declare function runMachine<T extends MachineSchema>(machine: Machine<T>, props: Partial<T['props']> | (() => Partial<T['props']>), render: (service: Service<T>) => void): MachineHandle<T>;
|
|
48
|
-
/** Unique ids for machine instances (Zag keys its DOM lookups on them). */
|
|
49
|
-
declare function nextUid(prefix: string): string;
|
|
50
|
-
|
|
51
|
-
interface TooltipControllerOptions {
|
|
52
|
-
placement?: tooltip.Placement;
|
|
53
|
-
/** ms before opening on hover (default 0 — the reference tooltips are instant). */
|
|
54
|
-
openDelay?: number;
|
|
55
|
-
closeDelay?: number;
|
|
56
|
-
/** Keep open while the pointer is over the content (rich tooltips). */
|
|
57
|
-
interactive?: boolean;
|
|
58
|
-
/** Share the trigger's DOM id with other machines composed on the SAME element
|
|
59
|
-
* (each Zag machine otherwise stamps its own id — last one wins and breaks the rest). */
|
|
60
|
-
triggerId?: string;
|
|
61
|
-
}
|
|
62
|
-
type TooltipService = tooltip.Service;
|
|
63
|
-
type TooltipApi = tooltip.Api;
|
|
64
|
-
interface TooltipController {
|
|
65
|
-
machine: typeof tooltip.machine;
|
|
66
|
-
props: Partial<tooltip.Props>;
|
|
67
|
-
connect(service: TooltipService): TooltipApi;
|
|
68
|
-
}
|
|
69
|
-
declare function tooltipController(opts?: TooltipControllerOptions): TooltipController;
|
|
70
|
-
|
|
71
|
-
interface TooltipOptions extends TooltipControllerOptions {
|
|
72
|
-
content: string | Node | (() => Node);
|
|
73
|
-
host?: HTMLElement;
|
|
74
|
-
}
|
|
75
|
-
declare class Tooltip {
|
|
76
|
-
private readonly positioner;
|
|
77
|
-
private readonly content;
|
|
78
|
-
private readonly handle;
|
|
79
|
-
private readonly trigger;
|
|
80
|
-
constructor(trigger: HTMLElement, opts: TooltipOptions);
|
|
81
|
-
setContent(content: string | Node | (() => Node)): void;
|
|
82
|
-
destroy(): void;
|
|
83
|
-
}
|
|
84
|
-
|
|
85
14
|
/** One menu entry. `id` is the selection value reported to `onSelect`. */
|
|
86
15
|
interface MenuItemDescriptor {
|
|
87
16
|
id: string;
|
|
@@ -99,7 +28,8 @@ interface MenuItemDescriptor {
|
|
|
99
28
|
* instead of the selected-row highlight, and keep the menu OPEN on selection —
|
|
100
29
|
* the shape for boolean settings living inside a dropdown. */
|
|
101
30
|
toggle?: boolean;
|
|
102
|
-
/** Icon id (see the `vela/ui` icon registry) rendered before the label.
|
|
31
|
+
/** Icon id (see the `vela/ui` icon registry) rendered before the label. A level where
|
|
32
|
+
* any row has one gives its iconless rows an empty slot, so the labels align. */
|
|
103
33
|
icon?: string;
|
|
104
34
|
/** Favorite-star affordance at the row's right edge: `false` renders an outline
|
|
105
35
|
* star revealed on row hover, `true` a filled star that stays visible. Clicking
|
|
@@ -161,6 +91,13 @@ interface MenuOptions extends MenuControllerOptions {
|
|
|
161
91
|
* edge. Submenus inherit the mode. Dropdown menus (a trigger button opening a
|
|
162
92
|
* picker) keep the default wash. */
|
|
163
93
|
checkmarks?: boolean;
|
|
94
|
+
/** Sit each row's icon in a squared badge (a 24px rounded tile with a faint fill and a soft
|
|
95
|
+
* border) instead of a bare glyph: its glyph brightens on a hovered row, and the tile
|
|
96
|
+
* inverts on the selected one. A
|
|
97
|
+
* level where some rows carry an icon reserves the badge column on all its rows so
|
|
98
|
+
* labels align; a level with no icon keeps its natural left edge. With `checkmarks`,
|
|
99
|
+
* the mark column leads and the badge follows. Submenus inherit the mode. */
|
|
100
|
+
iconBadges?: boolean;
|
|
164
101
|
}
|
|
165
102
|
declare class Menu {
|
|
166
103
|
private readonly root;
|
|
@@ -175,6 +112,91 @@ declare class Menu {
|
|
|
175
112
|
destroy(): void;
|
|
176
113
|
}
|
|
177
114
|
|
|
115
|
+
/** A ready-to-insert element rendering the icon (empty span when unknown). */
|
|
116
|
+
declare function iconEl(id: string, doc?: Document): HTMLElement;
|
|
117
|
+
|
|
118
|
+
/** Overlay scrollbar used by settings panes, dialog bodies, and similar chrome. */
|
|
119
|
+
declare function overlayScrollbarCss(selector: string, width?: number): string;
|
|
120
|
+
/** Focus ring shared by typeable fields (combo inputs, textareas). */
|
|
121
|
+
declare const FIELD_FOCUS_CSS = "outline:none;transition:border-color .12s ease,box-shadow .12s ease;";
|
|
122
|
+
declare const FIELD_FOCUS_RING = "border-color:var(--vela-focus);box-shadow:0 0 0 3px var(--vela-focus-soft);";
|
|
123
|
+
/** Inject a stylesheet once per root (document or shadow root). Idempotent by id. */
|
|
124
|
+
declare function injectStyles(id: string, css: string, root?: Document | ShadowRoot): void;
|
|
125
|
+
|
|
126
|
+
/** Write the theme-derived custom properties onto a host element (the widget root and
|
|
127
|
+
* every floating layer — menus/tooltips portal outside the root, so layers re-apply). */
|
|
128
|
+
declare function applyThemeTokens(el: HTMLElement, t: VelaTheme): void;
|
|
129
|
+
/** Re-token a chart-overlay host (statusline, watermark, toast — chrome floating OVER
|
|
130
|
+
* the plot) from the LIVE plot surface: a config edit can recolor the plot background
|
|
131
|
+
* independently of the app theme (a white plot typed into settings on the dark theme),
|
|
132
|
+
* and the overlay ink must stay readable either way. `config` is the renderer's
|
|
133
|
+
* `getConfig()` snapshot; a missing/shapeless one falls back to the base app theme.
|
|
134
|
+
* Floating menus and dropdowns do NOT use this — they mount on {@link floatingLayerHost}
|
|
135
|
+
* so their surface follows the app theme alone. */
|
|
136
|
+
declare function applyPlotOverlayTokens(host: HTMLElement, base: VelaTheme, config: unknown): void;
|
|
137
|
+
/** Mark an element as a kit host: static token sheet + the `.vela-ui` class. */
|
|
138
|
+
declare function ensureUIHost(el: HTMLElement, theme?: VelaTheme): void;
|
|
139
|
+
|
|
140
|
+
interface MachineHandle<T extends MachineSchema> {
|
|
141
|
+
service: Service<T>;
|
|
142
|
+
/** Re-run the view projection now (e.g. after external DOM swaps). */
|
|
143
|
+
flush(): void;
|
|
144
|
+
stop(): void;
|
|
145
|
+
}
|
|
146
|
+
/** Start a machine and keep `render(service)` in sync with every transition.
|
|
147
|
+
* `render` runs once immediately (initial projection) and on each machine notification. */
|
|
148
|
+
declare function runMachine<T extends MachineSchema>(machine: Machine<T>, props: Partial<T['props']> | (() => Partial<T['props']>), render: (service: Service<T>) => void): MachineHandle<T>;
|
|
149
|
+
/** Unique ids for machine instances (Zag keys its DOM lookups on them). */
|
|
150
|
+
declare function nextUid(prefix: string): string;
|
|
151
|
+
|
|
152
|
+
/** Dispatched on a surface's element once it is shown. */
|
|
153
|
+
declare const SURFACE_OPEN_EVENT = "vela:surface-open";
|
|
154
|
+
/** Dispatched on a surface's element as it starts to close, before it hides or leaves the DOM. */
|
|
155
|
+
declare const SURFACE_CLOSE_EVENT = "vela:surface-close";
|
|
156
|
+
/** What opened or closed: a menu (submenus included), a popover (select lists, color
|
|
157
|
+
* pickers, mark cards, the layout picker), a dialog, a drawer, or a side panel. */
|
|
158
|
+
type SurfaceKind = 'menu' | 'popover' | 'dialog' | 'drawer' | 'panel';
|
|
159
|
+
/** The `detail` of a {@link SURFACE_OPEN_EVENT} / {@link SURFACE_CLOSE_EVENT} event. */
|
|
160
|
+
interface SurfaceEventDetail {
|
|
161
|
+
kind: SurfaceKind;
|
|
162
|
+
/** The element that opened it, when there is one (a menu's button, a popover's trigger). */
|
|
163
|
+
trigger: HTMLElement | null;
|
|
164
|
+
}
|
|
165
|
+
|
|
166
|
+
interface TooltipControllerOptions {
|
|
167
|
+
placement?: tooltip.Placement;
|
|
168
|
+
/** ms before opening on hover (default 0 — the reference tooltips are instant). */
|
|
169
|
+
openDelay?: number;
|
|
170
|
+
closeDelay?: number;
|
|
171
|
+
/** Keep open while the pointer is over the content (rich tooltips). */
|
|
172
|
+
interactive?: boolean;
|
|
173
|
+
/** Share the trigger's DOM id with other machines composed on the SAME element
|
|
174
|
+
* (each Zag machine otherwise stamps its own id — last one wins and breaks the rest). */
|
|
175
|
+
triggerId?: string;
|
|
176
|
+
}
|
|
177
|
+
type TooltipService = tooltip.Service;
|
|
178
|
+
type TooltipApi = tooltip.Api;
|
|
179
|
+
interface TooltipController {
|
|
180
|
+
machine: typeof tooltip.machine;
|
|
181
|
+
props: Partial<tooltip.Props>;
|
|
182
|
+
connect(service: TooltipService): TooltipApi;
|
|
183
|
+
}
|
|
184
|
+
declare function tooltipController(opts?: TooltipControllerOptions): TooltipController;
|
|
185
|
+
|
|
186
|
+
interface TooltipOptions extends TooltipControllerOptions {
|
|
187
|
+
content: string | Node | (() => Node);
|
|
188
|
+
host?: HTMLElement;
|
|
189
|
+
}
|
|
190
|
+
declare class Tooltip {
|
|
191
|
+
private readonly positioner;
|
|
192
|
+
private readonly content;
|
|
193
|
+
private readonly handle;
|
|
194
|
+
private readonly trigger;
|
|
195
|
+
constructor(trigger: HTMLElement, opts: TooltipOptions);
|
|
196
|
+
setContent(content: string | Node | (() => Node)): void;
|
|
197
|
+
destroy(): void;
|
|
198
|
+
}
|
|
199
|
+
|
|
178
200
|
interface DialogControllerOptions {
|
|
179
201
|
/** Trap focus + backdrop (default true). Non-modal = floating panel. */
|
|
180
202
|
modal?: boolean;
|
|
@@ -229,6 +251,23 @@ declare class Dialog {
|
|
|
229
251
|
private readonly handle;
|
|
230
252
|
private readonly ctrl;
|
|
231
253
|
constructor(opts?: DialogOptions);
|
|
254
|
+
private opener;
|
|
255
|
+
private wasOpen;
|
|
256
|
+
/** The panel and scrim's exit animation after a close; a reopen cancels it. */
|
|
257
|
+
private exit;
|
|
258
|
+
private destroyed;
|
|
259
|
+
private setShown;
|
|
260
|
+
/** Keep the just-closed dialog up through its exit animation, then hide it — or
|
|
261
|
+
* remove it, when it was destroyed meanwhile. `spreadProps` re-applies the close
|
|
262
|
+
* props' `hidden` only when its value changes, so lifting it keeps the panel and
|
|
263
|
+
* scrim up until the exit ends. The positioner spans the viewport: inert, it lets
|
|
264
|
+
* clicks through to the page while the panel animates out. */
|
|
265
|
+
private holdExit;
|
|
266
|
+
private detach;
|
|
267
|
+
/** Closing hands focus back to whatever opened it (Escape, the ✕, hide(), or a
|
|
268
|
+
* teardown that outruns the machine's close notification). */
|
|
269
|
+
private restoreOpener;
|
|
270
|
+
private announce;
|
|
232
271
|
get open(): boolean;
|
|
233
272
|
show(): void;
|
|
234
273
|
hide(): void;
|
|
@@ -290,6 +329,23 @@ declare class Drawer {
|
|
|
290
329
|
*/
|
|
291
330
|
private wireGestures;
|
|
292
331
|
setTitle(title: string): void;
|
|
332
|
+
private opener;
|
|
333
|
+
private wasOpen;
|
|
334
|
+
/** The sheet and scrim's exit animation after a close; a reopen cancels it. */
|
|
335
|
+
private exit;
|
|
336
|
+
private destroyed;
|
|
337
|
+
private setShown;
|
|
338
|
+
/** Keep the just-closed sheet up through its exit animation, then hide it — or
|
|
339
|
+
* remove it, when it was destroyed meanwhile. `spreadProps` re-applies the close
|
|
340
|
+
* props' `hidden` only when its value changes, so lifting it keeps the sheet and
|
|
341
|
+
* scrim up until the exit ends. The positioner spans the host: inert, it lets
|
|
342
|
+
* clicks through to the page while the sheet animates out. */
|
|
343
|
+
private holdExit;
|
|
344
|
+
private detach;
|
|
345
|
+
/** Closing hands focus back to whatever opened it (Escape, the ✕, hide(), or a
|
|
346
|
+
* teardown that outruns the machine's close notification). */
|
|
347
|
+
private restoreOpener;
|
|
348
|
+
private announce;
|
|
293
349
|
get open(): boolean;
|
|
294
350
|
show(): void;
|
|
295
351
|
hide(): void;
|
|
@@ -399,6 +455,8 @@ declare class Popover {
|
|
|
399
455
|
private readonly fadeMs;
|
|
400
456
|
/** The pending removal of a fading-out shell; a show() that reuses the shell cancels it. */
|
|
401
457
|
private leaveTimer;
|
|
458
|
+
/** The shell's exit animation before it leaves the DOM; a show() that reuses the shell cancels it. */
|
|
459
|
+
private exit;
|
|
402
460
|
constructor(opts: PopoverOptions);
|
|
403
461
|
get open(): boolean;
|
|
404
462
|
get position(): PopoverPosition;
|
|
@@ -1071,4 +1129,4 @@ declare class DatePicker {
|
|
|
1071
1129
|
private cellEl;
|
|
1072
1130
|
}
|
|
1073
1131
|
|
|
1074
|
-
export { CALLOUT_CSS, CALLOUT_STYLE_ID, CalloutBubble, type CalloutBubbleOptions, type CalloutBubbleSpec, type CalloutPanel, type CalloutPanelItem, type CalloutPanelRow, type ColorCommit, ColorField, type ColorFieldOpts, type ColorFieldShape, type ColorPickerController, type ColorPickerControllerOptions, type ColorPickerOptions, DatePicker, type DatePickerCell, type DatePickerController, type DatePickerControllerOptions, type DatePickerOptions, type DatePickerPanel, Dialog, type DialogApi, type DialogControllerOptions, type DialogOptions, type DialogService, Drawer, type DrawerApi, type DrawerControllerOptions, type DrawerOptions, type DrawerService, FIELD_FOCUS_CSS, FIELD_FOCUS_RING, FIELD_GAP_PX, type FieldControlDesc, type FieldControlHandle, type FieldGridOptions, type FieldGridVariant, type FieldInlineItem, type FieldLabelSize, type FieldRowOptions, type FieldSectionOptions, type FieldToggleOpts, type GlyphOption, GlyphSelect, type GlyphSelectController, type GlyphSelectControllerOptions, type GlyphSelectOptions, type MachineHandle, Menu, type MenuApi, type MenuControllerOptions, type MenuItemDescriptor, type MenuOptions, type MenuService, type NumberCommit, NumberInput, type NumberInputController, type NumberInputControllerOptions, type NumberInputOptions, type NumberSize, type PlaceArgs, type PlaceResult, Popover, type PopoverAlign, type PopoverBoundary, type PopoverController, type PopoverControllerOptions, type PopoverOptions, type PopoverPosition, type Rect, Select, type SelectController, type SelectControllerOptions, type SelectListPopoverOpts, type SelectOption, type SelectOptions, type SelectSize, Switch, type SwitchController, type SwitchControllerOptions, type SwitchOptions, type SwitchSize, type SwitchTone, TextArea, type TextAreaController, type TextAreaControllerOptions, type TextAreaOptions, type TextAreaSize, TextField, type TextFieldController, type TextFieldControllerOptions, type TextFieldOptions, type TextFieldSize, Tooltip, type TooltipApi, type TooltipControllerOptions, type TooltipOptions, type TooltipService, WIDTH_FIELD_OPTIONS, applyPlotOverlayTokens, applyThemeTokens, blendOver, buildColorPicker, buildFieldControl, buildPalette, calloutPanelRows, clampNumber, closeColorPopover, closeOpenPopovers, closeWidthPopover, closesPanel, colorField, colorPickerController, combineColor, datePickerController, decorateSelectScroll, dialogController, drawerController, ensureUIHost, eventDismissedPopover, fieldGrid, fieldGridColumns, fieldRow, fieldSection, fieldSeparator, fillSelectList, glyphSelectController, hslHex, iconEl, injectStyles, insetRect, intersectRects, isPopoverOpen, isoDate, lineWidthGlyph, menuController, nextUid, normalizeDateInput, numberInputController, openPopoverTrigger, openSelectList, overlayScrollbarCss, placePopover, popoverController, runMachine, selectController, snapToStep, splitColor, switchController, textAreaController, textFieldController, toggleSelectList, tooltipController, transparencyChecker, viewportRect, widthField, widthFieldOptions, withAlpha };
|
|
1132
|
+
export { CALLOUT_CSS, CALLOUT_STYLE_ID, CalloutBubble, type CalloutBubbleOptions, type CalloutBubbleSpec, type CalloutPanel, type CalloutPanelItem, type CalloutPanelRow, type ColorCommit, ColorField, type ColorFieldOpts, type ColorFieldShape, type ColorPickerController, type ColorPickerControllerOptions, type ColorPickerOptions, DatePicker, type DatePickerCell, type DatePickerController, type DatePickerControllerOptions, type DatePickerOptions, type DatePickerPanel, Dialog, type DialogApi, type DialogControllerOptions, type DialogOptions, type DialogService, Drawer, type DrawerApi, type DrawerControllerOptions, type DrawerOptions, type DrawerService, FIELD_FOCUS_CSS, FIELD_FOCUS_RING, FIELD_GAP_PX, type FieldControlDesc, type FieldControlHandle, type FieldGridOptions, type FieldGridVariant, type FieldInlineItem, type FieldLabelSize, type FieldRowOptions, type FieldSectionOptions, type FieldToggleOpts, type GlyphOption, GlyphSelect, type GlyphSelectController, type GlyphSelectControllerOptions, type GlyphSelectOptions, type MachineHandle, Menu, type MenuApi, type MenuControllerOptions, type MenuItemDescriptor, type MenuOptions, type MenuService, type NumberCommit, NumberInput, type NumberInputController, type NumberInputControllerOptions, type NumberInputOptions, type NumberSize, type PlaceArgs, type PlaceResult, Popover, type PopoverAlign, type PopoverBoundary, type PopoverController, type PopoverControllerOptions, type PopoverOptions, type PopoverPosition, type Rect, SURFACE_CLOSE_EVENT, SURFACE_OPEN_EVENT, Select, type SelectController, type SelectControllerOptions, type SelectListPopoverOpts, type SelectOption, type SelectOptions, type SelectSize, type SurfaceEventDetail, type SurfaceKind, Switch, type SwitchController, type SwitchControllerOptions, type SwitchOptions, type SwitchSize, type SwitchTone, TextArea, type TextAreaController, type TextAreaControllerOptions, type TextAreaOptions, type TextAreaSize, TextField, type TextFieldController, type TextFieldControllerOptions, type TextFieldOptions, type TextFieldSize, Tooltip, type TooltipApi, type TooltipControllerOptions, type TooltipOptions, type TooltipService, WIDTH_FIELD_OPTIONS, applyPlotOverlayTokens, applyThemeTokens, blendOver, buildColorPicker, buildFieldControl, buildPalette, calloutPanelRows, clampNumber, closeColorPopover, closeOpenPopovers, closeWidthPopover, closesPanel, colorField, colorPickerController, combineColor, datePickerController, decorateSelectScroll, dialogController, drawerController, ensureUIHost, eventDismissedPopover, fieldGrid, fieldGridColumns, fieldRow, fieldSection, fieldSeparator, fillSelectList, glyphSelectController, hslHex, iconEl, injectStyles, insetRect, intersectRects, isPopoverOpen, isoDate, lineWidthGlyph, menuController, nextUid, normalizeDateInput, numberInputController, openPopoverTrigger, openSelectList, overlayScrollbarCss, placePopover, popoverController, runMachine, selectController, snapToStep, splitColor, switchController, textAreaController, textFieldController, toggleSelectList, tooltipController, transparencyChecker, viewportRect, widthField, widthFieldOptions, withAlpha };
|
package/dist/ui.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { c as VelaTheme } from './options-
|
|
1
|
+
import { c as VelaTheme } from './options-lMUwmRwh.js';
|
|
2
2
|
import { MachineSchema, Service, Machine } from '@zag-js/core';
|
|
3
3
|
export { a as KeyBindingDescriptor, K as KeymapManager, b as KeymapOptions, R as ResolvedBinding } from './keymap-CGOz5F5f.js';
|
|
4
4
|
import * as tooltip from '@zag-js/tooltip';
|
|
@@ -11,77 +11,6 @@ export { normalizeProps, spreadProps } from '@zag-js/vanilla';
|
|
|
11
11
|
* returned unchanged so callers can pass through `transparent`, `currentColor`, etc. */
|
|
12
12
|
declare function withAlpha(color: string, alpha: number): string;
|
|
13
13
|
|
|
14
|
-
/** A ready-to-insert element rendering the icon (empty span when unknown). */
|
|
15
|
-
declare function iconEl(id: string, doc?: Document): HTMLElement;
|
|
16
|
-
|
|
17
|
-
/** Overlay scrollbar used by settings panes, dialog bodies, and similar chrome. */
|
|
18
|
-
declare function overlayScrollbarCss(selector: string, width?: number): string;
|
|
19
|
-
/** Focus ring shared by typeable fields (combo inputs, textareas). */
|
|
20
|
-
declare const FIELD_FOCUS_CSS = "outline:none;transition:border-color .12s ease,box-shadow .12s ease;";
|
|
21
|
-
declare const FIELD_FOCUS_RING = "border-color:var(--vela-focus);box-shadow:0 0 0 3px var(--vela-focus-soft);";
|
|
22
|
-
/** Inject a stylesheet once per root (document or shadow root). Idempotent by id. */
|
|
23
|
-
declare function injectStyles(id: string, css: string, root?: Document | ShadowRoot): void;
|
|
24
|
-
|
|
25
|
-
/** Write the theme-derived custom properties onto a host element (the widget root and
|
|
26
|
-
* every floating layer — menus/tooltips portal outside the root, so layers re-apply). */
|
|
27
|
-
declare function applyThemeTokens(el: HTMLElement, t: VelaTheme): void;
|
|
28
|
-
/** Re-token a chart-overlay host (statusline, watermark, toast — chrome floating OVER
|
|
29
|
-
* the plot) from the LIVE plot surface: a config edit can recolor the plot background
|
|
30
|
-
* independently of the app theme (a white plot typed into settings on the dark theme),
|
|
31
|
-
* and the overlay ink must stay readable either way. `config` is the renderer's
|
|
32
|
-
* `getConfig()` snapshot; a missing/shapeless one falls back to the base app theme.
|
|
33
|
-
* Floating menus and dropdowns do NOT use this — they mount on {@link floatingLayerHost}
|
|
34
|
-
* so their surface follows the app theme alone. */
|
|
35
|
-
declare function applyPlotOverlayTokens(host: HTMLElement, base: VelaTheme, config: unknown): void;
|
|
36
|
-
/** Mark an element as a kit host: static token sheet + the `.vela-ui` class. */
|
|
37
|
-
declare function ensureUIHost(el: HTMLElement, theme?: VelaTheme): void;
|
|
38
|
-
|
|
39
|
-
interface MachineHandle<T extends MachineSchema> {
|
|
40
|
-
service: Service<T>;
|
|
41
|
-
/** Re-run the view projection now (e.g. after external DOM swaps). */
|
|
42
|
-
flush(): void;
|
|
43
|
-
stop(): void;
|
|
44
|
-
}
|
|
45
|
-
/** Start a machine and keep `render(service)` in sync with every transition.
|
|
46
|
-
* `render` runs once immediately (initial projection) and on each machine notification. */
|
|
47
|
-
declare function runMachine<T extends MachineSchema>(machine: Machine<T>, props: Partial<T['props']> | (() => Partial<T['props']>), render: (service: Service<T>) => void): MachineHandle<T>;
|
|
48
|
-
/** Unique ids for machine instances (Zag keys its DOM lookups on them). */
|
|
49
|
-
declare function nextUid(prefix: string): string;
|
|
50
|
-
|
|
51
|
-
interface TooltipControllerOptions {
|
|
52
|
-
placement?: tooltip.Placement;
|
|
53
|
-
/** ms before opening on hover (default 0 — the reference tooltips are instant). */
|
|
54
|
-
openDelay?: number;
|
|
55
|
-
closeDelay?: number;
|
|
56
|
-
/** Keep open while the pointer is over the content (rich tooltips). */
|
|
57
|
-
interactive?: boolean;
|
|
58
|
-
/** Share the trigger's DOM id with other machines composed on the SAME element
|
|
59
|
-
* (each Zag machine otherwise stamps its own id — last one wins and breaks the rest). */
|
|
60
|
-
triggerId?: string;
|
|
61
|
-
}
|
|
62
|
-
type TooltipService = tooltip.Service;
|
|
63
|
-
type TooltipApi = tooltip.Api;
|
|
64
|
-
interface TooltipController {
|
|
65
|
-
machine: typeof tooltip.machine;
|
|
66
|
-
props: Partial<tooltip.Props>;
|
|
67
|
-
connect(service: TooltipService): TooltipApi;
|
|
68
|
-
}
|
|
69
|
-
declare function tooltipController(opts?: TooltipControllerOptions): TooltipController;
|
|
70
|
-
|
|
71
|
-
interface TooltipOptions extends TooltipControllerOptions {
|
|
72
|
-
content: string | Node | (() => Node);
|
|
73
|
-
host?: HTMLElement;
|
|
74
|
-
}
|
|
75
|
-
declare class Tooltip {
|
|
76
|
-
private readonly positioner;
|
|
77
|
-
private readonly content;
|
|
78
|
-
private readonly handle;
|
|
79
|
-
private readonly trigger;
|
|
80
|
-
constructor(trigger: HTMLElement, opts: TooltipOptions);
|
|
81
|
-
setContent(content: string | Node | (() => Node)): void;
|
|
82
|
-
destroy(): void;
|
|
83
|
-
}
|
|
84
|
-
|
|
85
14
|
/** One menu entry. `id` is the selection value reported to `onSelect`. */
|
|
86
15
|
interface MenuItemDescriptor {
|
|
87
16
|
id: string;
|
|
@@ -99,7 +28,8 @@ interface MenuItemDescriptor {
|
|
|
99
28
|
* instead of the selected-row highlight, and keep the menu OPEN on selection —
|
|
100
29
|
* the shape for boolean settings living inside a dropdown. */
|
|
101
30
|
toggle?: boolean;
|
|
102
|
-
/** Icon id (see the `vela/ui` icon registry) rendered before the label.
|
|
31
|
+
/** Icon id (see the `vela/ui` icon registry) rendered before the label. A level where
|
|
32
|
+
* any row has one gives its iconless rows an empty slot, so the labels align. */
|
|
103
33
|
icon?: string;
|
|
104
34
|
/** Favorite-star affordance at the row's right edge: `false` renders an outline
|
|
105
35
|
* star revealed on row hover, `true` a filled star that stays visible. Clicking
|
|
@@ -161,6 +91,13 @@ interface MenuOptions extends MenuControllerOptions {
|
|
|
161
91
|
* edge. Submenus inherit the mode. Dropdown menus (a trigger button opening a
|
|
162
92
|
* picker) keep the default wash. */
|
|
163
93
|
checkmarks?: boolean;
|
|
94
|
+
/** Sit each row's icon in a squared badge (a 24px rounded tile with a faint fill and a soft
|
|
95
|
+
* border) instead of a bare glyph: its glyph brightens on a hovered row, and the tile
|
|
96
|
+
* inverts on the selected one. A
|
|
97
|
+
* level where some rows carry an icon reserves the badge column on all its rows so
|
|
98
|
+
* labels align; a level with no icon keeps its natural left edge. With `checkmarks`,
|
|
99
|
+
* the mark column leads and the badge follows. Submenus inherit the mode. */
|
|
100
|
+
iconBadges?: boolean;
|
|
164
101
|
}
|
|
165
102
|
declare class Menu {
|
|
166
103
|
private readonly root;
|
|
@@ -175,6 +112,91 @@ declare class Menu {
|
|
|
175
112
|
destroy(): void;
|
|
176
113
|
}
|
|
177
114
|
|
|
115
|
+
/** A ready-to-insert element rendering the icon (empty span when unknown). */
|
|
116
|
+
declare function iconEl(id: string, doc?: Document): HTMLElement;
|
|
117
|
+
|
|
118
|
+
/** Overlay scrollbar used by settings panes, dialog bodies, and similar chrome. */
|
|
119
|
+
declare function overlayScrollbarCss(selector: string, width?: number): string;
|
|
120
|
+
/** Focus ring shared by typeable fields (combo inputs, textareas). */
|
|
121
|
+
declare const FIELD_FOCUS_CSS = "outline:none;transition:border-color .12s ease,box-shadow .12s ease;";
|
|
122
|
+
declare const FIELD_FOCUS_RING = "border-color:var(--vela-focus);box-shadow:0 0 0 3px var(--vela-focus-soft);";
|
|
123
|
+
/** Inject a stylesheet once per root (document or shadow root). Idempotent by id. */
|
|
124
|
+
declare function injectStyles(id: string, css: string, root?: Document | ShadowRoot): void;
|
|
125
|
+
|
|
126
|
+
/** Write the theme-derived custom properties onto a host element (the widget root and
|
|
127
|
+
* every floating layer — menus/tooltips portal outside the root, so layers re-apply). */
|
|
128
|
+
declare function applyThemeTokens(el: HTMLElement, t: VelaTheme): void;
|
|
129
|
+
/** Re-token a chart-overlay host (statusline, watermark, toast — chrome floating OVER
|
|
130
|
+
* the plot) from the LIVE plot surface: a config edit can recolor the plot background
|
|
131
|
+
* independently of the app theme (a white plot typed into settings on the dark theme),
|
|
132
|
+
* and the overlay ink must stay readable either way. `config` is the renderer's
|
|
133
|
+
* `getConfig()` snapshot; a missing/shapeless one falls back to the base app theme.
|
|
134
|
+
* Floating menus and dropdowns do NOT use this — they mount on {@link floatingLayerHost}
|
|
135
|
+
* so their surface follows the app theme alone. */
|
|
136
|
+
declare function applyPlotOverlayTokens(host: HTMLElement, base: VelaTheme, config: unknown): void;
|
|
137
|
+
/** Mark an element as a kit host: static token sheet + the `.vela-ui` class. */
|
|
138
|
+
declare function ensureUIHost(el: HTMLElement, theme?: VelaTheme): void;
|
|
139
|
+
|
|
140
|
+
interface MachineHandle<T extends MachineSchema> {
|
|
141
|
+
service: Service<T>;
|
|
142
|
+
/** Re-run the view projection now (e.g. after external DOM swaps). */
|
|
143
|
+
flush(): void;
|
|
144
|
+
stop(): void;
|
|
145
|
+
}
|
|
146
|
+
/** Start a machine and keep `render(service)` in sync with every transition.
|
|
147
|
+
* `render` runs once immediately (initial projection) and on each machine notification. */
|
|
148
|
+
declare function runMachine<T extends MachineSchema>(machine: Machine<T>, props: Partial<T['props']> | (() => Partial<T['props']>), render: (service: Service<T>) => void): MachineHandle<T>;
|
|
149
|
+
/** Unique ids for machine instances (Zag keys its DOM lookups on them). */
|
|
150
|
+
declare function nextUid(prefix: string): string;
|
|
151
|
+
|
|
152
|
+
/** Dispatched on a surface's element once it is shown. */
|
|
153
|
+
declare const SURFACE_OPEN_EVENT = "vela:surface-open";
|
|
154
|
+
/** Dispatched on a surface's element as it starts to close, before it hides or leaves the DOM. */
|
|
155
|
+
declare const SURFACE_CLOSE_EVENT = "vela:surface-close";
|
|
156
|
+
/** What opened or closed: a menu (submenus included), a popover (select lists, color
|
|
157
|
+
* pickers, mark cards, the layout picker), a dialog, a drawer, or a side panel. */
|
|
158
|
+
type SurfaceKind = 'menu' | 'popover' | 'dialog' | 'drawer' | 'panel';
|
|
159
|
+
/** The `detail` of a {@link SURFACE_OPEN_EVENT} / {@link SURFACE_CLOSE_EVENT} event. */
|
|
160
|
+
interface SurfaceEventDetail {
|
|
161
|
+
kind: SurfaceKind;
|
|
162
|
+
/** The element that opened it, when there is one (a menu's button, a popover's trigger). */
|
|
163
|
+
trigger: HTMLElement | null;
|
|
164
|
+
}
|
|
165
|
+
|
|
166
|
+
interface TooltipControllerOptions {
|
|
167
|
+
placement?: tooltip.Placement;
|
|
168
|
+
/** ms before opening on hover (default 0 — the reference tooltips are instant). */
|
|
169
|
+
openDelay?: number;
|
|
170
|
+
closeDelay?: number;
|
|
171
|
+
/** Keep open while the pointer is over the content (rich tooltips). */
|
|
172
|
+
interactive?: boolean;
|
|
173
|
+
/** Share the trigger's DOM id with other machines composed on the SAME element
|
|
174
|
+
* (each Zag machine otherwise stamps its own id — last one wins and breaks the rest). */
|
|
175
|
+
triggerId?: string;
|
|
176
|
+
}
|
|
177
|
+
type TooltipService = tooltip.Service;
|
|
178
|
+
type TooltipApi = tooltip.Api;
|
|
179
|
+
interface TooltipController {
|
|
180
|
+
machine: typeof tooltip.machine;
|
|
181
|
+
props: Partial<tooltip.Props>;
|
|
182
|
+
connect(service: TooltipService): TooltipApi;
|
|
183
|
+
}
|
|
184
|
+
declare function tooltipController(opts?: TooltipControllerOptions): TooltipController;
|
|
185
|
+
|
|
186
|
+
interface TooltipOptions extends TooltipControllerOptions {
|
|
187
|
+
content: string | Node | (() => Node);
|
|
188
|
+
host?: HTMLElement;
|
|
189
|
+
}
|
|
190
|
+
declare class Tooltip {
|
|
191
|
+
private readonly positioner;
|
|
192
|
+
private readonly content;
|
|
193
|
+
private readonly handle;
|
|
194
|
+
private readonly trigger;
|
|
195
|
+
constructor(trigger: HTMLElement, opts: TooltipOptions);
|
|
196
|
+
setContent(content: string | Node | (() => Node)): void;
|
|
197
|
+
destroy(): void;
|
|
198
|
+
}
|
|
199
|
+
|
|
178
200
|
interface DialogControllerOptions {
|
|
179
201
|
/** Trap focus + backdrop (default true). Non-modal = floating panel. */
|
|
180
202
|
modal?: boolean;
|
|
@@ -229,6 +251,23 @@ declare class Dialog {
|
|
|
229
251
|
private readonly handle;
|
|
230
252
|
private readonly ctrl;
|
|
231
253
|
constructor(opts?: DialogOptions);
|
|
254
|
+
private opener;
|
|
255
|
+
private wasOpen;
|
|
256
|
+
/** The panel and scrim's exit animation after a close; a reopen cancels it. */
|
|
257
|
+
private exit;
|
|
258
|
+
private destroyed;
|
|
259
|
+
private setShown;
|
|
260
|
+
/** Keep the just-closed dialog up through its exit animation, then hide it — or
|
|
261
|
+
* remove it, when it was destroyed meanwhile. `spreadProps` re-applies the close
|
|
262
|
+
* props' `hidden` only when its value changes, so lifting it keeps the panel and
|
|
263
|
+
* scrim up until the exit ends. The positioner spans the viewport: inert, it lets
|
|
264
|
+
* clicks through to the page while the panel animates out. */
|
|
265
|
+
private holdExit;
|
|
266
|
+
private detach;
|
|
267
|
+
/** Closing hands focus back to whatever opened it (Escape, the ✕, hide(), or a
|
|
268
|
+
* teardown that outruns the machine's close notification). */
|
|
269
|
+
private restoreOpener;
|
|
270
|
+
private announce;
|
|
232
271
|
get open(): boolean;
|
|
233
272
|
show(): void;
|
|
234
273
|
hide(): void;
|
|
@@ -290,6 +329,23 @@ declare class Drawer {
|
|
|
290
329
|
*/
|
|
291
330
|
private wireGestures;
|
|
292
331
|
setTitle(title: string): void;
|
|
332
|
+
private opener;
|
|
333
|
+
private wasOpen;
|
|
334
|
+
/** The sheet and scrim's exit animation after a close; a reopen cancels it. */
|
|
335
|
+
private exit;
|
|
336
|
+
private destroyed;
|
|
337
|
+
private setShown;
|
|
338
|
+
/** Keep the just-closed sheet up through its exit animation, then hide it — or
|
|
339
|
+
* remove it, when it was destroyed meanwhile. `spreadProps` re-applies the close
|
|
340
|
+
* props' `hidden` only when its value changes, so lifting it keeps the sheet and
|
|
341
|
+
* scrim up until the exit ends. The positioner spans the host: inert, it lets
|
|
342
|
+
* clicks through to the page while the sheet animates out. */
|
|
343
|
+
private holdExit;
|
|
344
|
+
private detach;
|
|
345
|
+
/** Closing hands focus back to whatever opened it (Escape, the ✕, hide(), or a
|
|
346
|
+
* teardown that outruns the machine's close notification). */
|
|
347
|
+
private restoreOpener;
|
|
348
|
+
private announce;
|
|
293
349
|
get open(): boolean;
|
|
294
350
|
show(): void;
|
|
295
351
|
hide(): void;
|
|
@@ -399,6 +455,8 @@ declare class Popover {
|
|
|
399
455
|
private readonly fadeMs;
|
|
400
456
|
/** The pending removal of a fading-out shell; a show() that reuses the shell cancels it. */
|
|
401
457
|
private leaveTimer;
|
|
458
|
+
/** The shell's exit animation before it leaves the DOM; a show() that reuses the shell cancels it. */
|
|
459
|
+
private exit;
|
|
402
460
|
constructor(opts: PopoverOptions);
|
|
403
461
|
get open(): boolean;
|
|
404
462
|
get position(): PopoverPosition;
|
|
@@ -1071,4 +1129,4 @@ declare class DatePicker {
|
|
|
1071
1129
|
private cellEl;
|
|
1072
1130
|
}
|
|
1073
1131
|
|
|
1074
|
-
export { CALLOUT_CSS, CALLOUT_STYLE_ID, CalloutBubble, type CalloutBubbleOptions, type CalloutBubbleSpec, type CalloutPanel, type CalloutPanelItem, type CalloutPanelRow, type ColorCommit, ColorField, type ColorFieldOpts, type ColorFieldShape, type ColorPickerController, type ColorPickerControllerOptions, type ColorPickerOptions, DatePicker, type DatePickerCell, type DatePickerController, type DatePickerControllerOptions, type DatePickerOptions, type DatePickerPanel, Dialog, type DialogApi, type DialogControllerOptions, type DialogOptions, type DialogService, Drawer, type DrawerApi, type DrawerControllerOptions, type DrawerOptions, type DrawerService, FIELD_FOCUS_CSS, FIELD_FOCUS_RING, FIELD_GAP_PX, type FieldControlDesc, type FieldControlHandle, type FieldGridOptions, type FieldGridVariant, type FieldInlineItem, type FieldLabelSize, type FieldRowOptions, type FieldSectionOptions, type FieldToggleOpts, type GlyphOption, GlyphSelect, type GlyphSelectController, type GlyphSelectControllerOptions, type GlyphSelectOptions, type MachineHandle, Menu, type MenuApi, type MenuControllerOptions, type MenuItemDescriptor, type MenuOptions, type MenuService, type NumberCommit, NumberInput, type NumberInputController, type NumberInputControllerOptions, type NumberInputOptions, type NumberSize, type PlaceArgs, type PlaceResult, Popover, type PopoverAlign, type PopoverBoundary, type PopoverController, type PopoverControllerOptions, type PopoverOptions, type PopoverPosition, type Rect, Select, type SelectController, type SelectControllerOptions, type SelectListPopoverOpts, type SelectOption, type SelectOptions, type SelectSize, Switch, type SwitchController, type SwitchControllerOptions, type SwitchOptions, type SwitchSize, type SwitchTone, TextArea, type TextAreaController, type TextAreaControllerOptions, type TextAreaOptions, type TextAreaSize, TextField, type TextFieldController, type TextFieldControllerOptions, type TextFieldOptions, type TextFieldSize, Tooltip, type TooltipApi, type TooltipControllerOptions, type TooltipOptions, type TooltipService, WIDTH_FIELD_OPTIONS, applyPlotOverlayTokens, applyThemeTokens, blendOver, buildColorPicker, buildFieldControl, buildPalette, calloutPanelRows, clampNumber, closeColorPopover, closeOpenPopovers, closeWidthPopover, closesPanel, colorField, colorPickerController, combineColor, datePickerController, decorateSelectScroll, dialogController, drawerController, ensureUIHost, eventDismissedPopover, fieldGrid, fieldGridColumns, fieldRow, fieldSection, fieldSeparator, fillSelectList, glyphSelectController, hslHex, iconEl, injectStyles, insetRect, intersectRects, isPopoverOpen, isoDate, lineWidthGlyph, menuController, nextUid, normalizeDateInput, numberInputController, openPopoverTrigger, openSelectList, overlayScrollbarCss, placePopover, popoverController, runMachine, selectController, snapToStep, splitColor, switchController, textAreaController, textFieldController, toggleSelectList, tooltipController, transparencyChecker, viewportRect, widthField, widthFieldOptions, withAlpha };
|
|
1132
|
+
export { CALLOUT_CSS, CALLOUT_STYLE_ID, CalloutBubble, type CalloutBubbleOptions, type CalloutBubbleSpec, type CalloutPanel, type CalloutPanelItem, type CalloutPanelRow, type ColorCommit, ColorField, type ColorFieldOpts, type ColorFieldShape, type ColorPickerController, type ColorPickerControllerOptions, type ColorPickerOptions, DatePicker, type DatePickerCell, type DatePickerController, type DatePickerControllerOptions, type DatePickerOptions, type DatePickerPanel, Dialog, type DialogApi, type DialogControllerOptions, type DialogOptions, type DialogService, Drawer, type DrawerApi, type DrawerControllerOptions, type DrawerOptions, type DrawerService, FIELD_FOCUS_CSS, FIELD_FOCUS_RING, FIELD_GAP_PX, type FieldControlDesc, type FieldControlHandle, type FieldGridOptions, type FieldGridVariant, type FieldInlineItem, type FieldLabelSize, type FieldRowOptions, type FieldSectionOptions, type FieldToggleOpts, type GlyphOption, GlyphSelect, type GlyphSelectController, type GlyphSelectControllerOptions, type GlyphSelectOptions, type MachineHandle, Menu, type MenuApi, type MenuControllerOptions, type MenuItemDescriptor, type MenuOptions, type MenuService, type NumberCommit, NumberInput, type NumberInputController, type NumberInputControllerOptions, type NumberInputOptions, type NumberSize, type PlaceArgs, type PlaceResult, Popover, type PopoverAlign, type PopoverBoundary, type PopoverController, type PopoverControllerOptions, type PopoverOptions, type PopoverPosition, type Rect, SURFACE_CLOSE_EVENT, SURFACE_OPEN_EVENT, Select, type SelectController, type SelectControllerOptions, type SelectListPopoverOpts, type SelectOption, type SelectOptions, type SelectSize, type SurfaceEventDetail, type SurfaceKind, Switch, type SwitchController, type SwitchControllerOptions, type SwitchOptions, type SwitchSize, type SwitchTone, TextArea, type TextAreaController, type TextAreaControllerOptions, type TextAreaOptions, type TextAreaSize, TextField, type TextFieldController, type TextFieldControllerOptions, type TextFieldOptions, type TextFieldSize, Tooltip, type TooltipApi, type TooltipControllerOptions, type TooltipOptions, type TooltipService, WIDTH_FIELD_OPTIONS, applyPlotOverlayTokens, applyThemeTokens, blendOver, buildColorPicker, buildFieldControl, buildPalette, calloutPanelRows, clampNumber, closeColorPopover, closeOpenPopovers, closeWidthPopover, closesPanel, colorField, colorPickerController, combineColor, datePickerController, decorateSelectScroll, dialogController, drawerController, ensureUIHost, eventDismissedPopover, fieldGrid, fieldGridColumns, fieldRow, fieldSection, fieldSeparator, fillSelectList, glyphSelectController, hslHex, iconEl, injectStyles, insetRect, intersectRects, isPopoverOpen, isoDate, lineWidthGlyph, menuController, nextUid, normalizeDateInput, numberInputController, openPopoverTrigger, openSelectList, overlayScrollbarCss, placePopover, popoverController, runMachine, selectController, snapToStep, splitColor, switchController, textAreaController, textFieldController, toggleSelectList, tooltipController, transparencyChecker, viewportRect, widthField, widthFieldOptions, withAlpha };
|
package/dist/ui.js
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export { Drawer, KeymapManager, Tooltip, drawerController, tooltipController } from './chunk-
|
|
2
|
-
export { CALLOUT_CSS, CALLOUT_STYLE_ID, CalloutBubble, ColorField, DatePicker, Dialog, FIELD_GAP_PX, GlyphSelect, Menu, NumberInput, Popover, Select, Switch, TextArea, TextField, WIDTH_FIELD_OPTIONS, applyPlotOverlayTokens, applyThemeTokens, blendOver, buildColorPicker, buildFieldControl, buildPalette, calloutPanelRows, clampNumber, closeColorPopover, closeOpenPopovers, closeWidthPopover, closesPanel, colorField, colorPickerController, combineColor, datePickerController, decorateSelectScroll, dialogController, ensureUIHost, eventDismissedPopover, fieldGrid, fieldGridColumns, fieldRow, fieldSection, fieldSeparator, fillSelectList, glyphSelectController, hslHex, insetRect, intersectRects, isPopoverOpen, isoDate, lineWidthGlyph, menuController, nextUid, normalizeDateInput, normalizeProps, numberInputController, openPopoverTrigger, openSelectList, placePopover, popoverController, runMachine, selectController, snapToStep, splitColor, spreadProps, switchController, textAreaController, textFieldController, toggleSelectList, transparencyChecker, viewportRect, widthField, widthFieldOptions } from './chunk-
|
|
3
|
-
export { FIELD_FOCUS_CSS, FIELD_FOCUS_RING, iconEl, iconMarkup, injectStyles, overlayScrollbarCss, registerIcon, svg16, svg24, withAlpha } from './chunk-
|
|
1
|
+
export { Drawer, KeymapManager, Tooltip, drawerController, tooltipController } from './chunk-TO3GIK7Z.js';
|
|
2
|
+
export { CALLOUT_CSS, CALLOUT_STYLE_ID, CalloutBubble, ColorField, DatePicker, Dialog, FIELD_GAP_PX, GlyphSelect, Menu, NumberInput, Popover, Select, Switch, TextArea, TextField, WIDTH_FIELD_OPTIONS, applyPlotOverlayTokens, applyThemeTokens, blendOver, buildColorPicker, buildFieldControl, buildPalette, calloutPanelRows, clampNumber, closeColorPopover, closeOpenPopovers, closeWidthPopover, closesPanel, colorField, colorPickerController, combineColor, datePickerController, decorateSelectScroll, dialogController, ensureUIHost, eventDismissedPopover, fieldGrid, fieldGridColumns, fieldRow, fieldSection, fieldSeparator, fillSelectList, glyphSelectController, hslHex, insetRect, intersectRects, isPopoverOpen, isoDate, lineWidthGlyph, menuController, nextUid, normalizeDateInput, normalizeProps, numberInputController, openPopoverTrigger, openSelectList, placePopover, popoverController, runMachine, selectController, snapToStep, splitColor, spreadProps, switchController, textAreaController, textFieldController, toggleSelectList, transparencyChecker, viewportRect, widthField, widthFieldOptions } from './chunk-G7B7ZCBF.js';
|
|
3
|
+
export { FIELD_FOCUS_CSS, FIELD_FOCUS_RING, SURFACE_CLOSE_EVENT, SURFACE_OPEN_EVENT, iconEl, iconMarkup, injectStyles, overlayScrollbarCss, registerIcon, svg16, svg24, withAlpha } from './chunk-VHGACEHO.js';
|