@cloudvoyant/helical-ui 0.23.0 → 0.23.1

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.
@@ -0,0 +1,5 @@
1
+ export { C as ColonCommandColumns, a as ColonCommandProps, b as CommandBreadcrumb, c as CommandContextProps, d as CommandContextValue, e as CommandFlatItem, F as CommandHighlightSegment, G as CommandLevelResolution, f as CommandMenuColumns, g as CommandMenuProps, H as CommandMenuResolution, h as CommandMenuVariants, i as CommandNode, j as CommandPaletteProps, k as CommandPaletteVariants, l as CommandSelectContext, m as CommandStyle, I as announceCommandMessage, J as commandMenuDialogContentBase, L as commandMenuErrorBase, M as commandMenuInputVariants, N as commandMenuItemVariants, O as commandMenuListVariants, P as commandMenuPositionerBase, Q as commandMenuPrefixBase, R as commandMenuPromptBarVariants, r as commandMenuStyles, S as commandMenuVariants, T as commandPaletteBreadcrumbBase, U as commandPaletteDialogContentBase, V as commandPaletteFooterBase, W as commandPaletteHeaderBase, X as commandPaletteInputBase, Y as commandPaletteItemBase, Z as commandPaletteListBase, _ as commandPalettePositionerBase, s as commandPaletteStyles, $ as commandPaletteVariants, t as createCommandTree, a0 as formatCommandMenuCompletionInput, A as matchesCommandHotkey, a1 as resolveCommandLevel, a2 as resolveCommandMenuGridNavigation, a3 as resolveCommandMenuGridStyle, a4 as resolveCommandMenuState, a5 as shouldHandleCommandHotkey, a6 as splitHighlightSegments } from '../index-FoNHRG3R.cjs';
2
+ import '@zag-js/collection';
3
+ import 'class-variance-authority/types';
4
+ import 'class-variance-authority';
5
+ import '@tanstack/hotkeys';
@@ -0,0 +1,5 @@
1
+ export { C as ColonCommandColumns, a as ColonCommandProps, b as CommandBreadcrumb, c as CommandContextProps, d as CommandContextValue, e as CommandFlatItem, F as CommandHighlightSegment, G as CommandLevelResolution, f as CommandMenuColumns, g as CommandMenuProps, H as CommandMenuResolution, h as CommandMenuVariants, i as CommandNode, j as CommandPaletteProps, k as CommandPaletteVariants, l as CommandSelectContext, m as CommandStyle, I as announceCommandMessage, J as commandMenuDialogContentBase, L as commandMenuErrorBase, M as commandMenuInputVariants, N as commandMenuItemVariants, O as commandMenuListVariants, P as commandMenuPositionerBase, Q as commandMenuPrefixBase, R as commandMenuPromptBarVariants, r as commandMenuStyles, S as commandMenuVariants, T as commandPaletteBreadcrumbBase, U as commandPaletteDialogContentBase, V as commandPaletteFooterBase, W as commandPaletteHeaderBase, X as commandPaletteInputBase, Y as commandPaletteItemBase, Z as commandPaletteListBase, _ as commandPalettePositionerBase, s as commandPaletteStyles, $ as commandPaletteVariants, t as createCommandTree, a0 as formatCommandMenuCompletionInput, A as matchesCommandHotkey, a1 as resolveCommandLevel, a2 as resolveCommandMenuGridNavigation, a3 as resolveCommandMenuGridStyle, a4 as resolveCommandMenuState, a5 as shouldHandleCommandHotkey, a6 as splitHighlightSegments } from '../index-FoNHRG3R.js';
2
+ import '@zag-js/collection';
3
+ import 'class-variance-authority/types';
4
+ import 'class-variance-authority';
5
+ import '@tanstack/hotkeys';
@@ -0,0 +1,64 @@
1
+ import {
2
+ announceCommandMessage,
3
+ commandMenuDialogContentBase,
4
+ commandMenuErrorBase,
5
+ commandMenuInputVariants,
6
+ commandMenuItemVariants,
7
+ commandMenuListVariants,
8
+ commandMenuPositionerBase,
9
+ commandMenuPrefixBase,
10
+ commandMenuPromptBarVariants,
11
+ commandMenuStyles,
12
+ commandMenuVariants,
13
+ commandPaletteBreadcrumbBase,
14
+ commandPaletteDialogContentBase,
15
+ commandPaletteFooterBase,
16
+ commandPaletteHeaderBase,
17
+ commandPaletteInputBase,
18
+ commandPaletteItemBase,
19
+ commandPaletteListBase,
20
+ commandPalettePositionerBase,
21
+ commandPaletteStyles,
22
+ commandPaletteVariants,
23
+ createCommandTree,
24
+ formatCommandMenuCompletionInput,
25
+ matchesCommandHotkey,
26
+ resolveCommandLevel,
27
+ resolveCommandMenuGridNavigation,
28
+ resolveCommandMenuGridStyle,
29
+ resolveCommandMenuState,
30
+ shouldHandleCommandHotkey,
31
+ splitHighlightSegments
32
+ } from "../chunk-AFE6BORT.js";
33
+ export {
34
+ announceCommandMessage,
35
+ commandMenuDialogContentBase,
36
+ commandMenuErrorBase,
37
+ commandMenuInputVariants,
38
+ commandMenuItemVariants,
39
+ commandMenuListVariants,
40
+ commandMenuPositionerBase,
41
+ commandMenuPrefixBase,
42
+ commandMenuPromptBarVariants,
43
+ commandMenuStyles,
44
+ commandMenuVariants,
45
+ commandPaletteBreadcrumbBase,
46
+ commandPaletteDialogContentBase,
47
+ commandPaletteFooterBase,
48
+ commandPaletteHeaderBase,
49
+ commandPaletteInputBase,
50
+ commandPaletteItemBase,
51
+ commandPaletteListBase,
52
+ commandPalettePositionerBase,
53
+ commandPaletteStyles,
54
+ commandPaletteVariants,
55
+ createCommandTree,
56
+ formatCommandMenuCompletionInput,
57
+ matchesCommandHotkey,
58
+ resolveCommandLevel,
59
+ resolveCommandMenuGridNavigation,
60
+ resolveCommandMenuGridStyle,
61
+ resolveCommandMenuState,
62
+ shouldHandleCommandHotkey,
63
+ splitHighlightSegments
64
+ };
@@ -0,0 +1,352 @@
1
+ import { TreeCollection } from '@zag-js/collection';
2
+ import * as class_variance_authority_types from 'class-variance-authority/types';
3
+ import { VariantProps } from 'class-variance-authority';
4
+ import { LogicalKey, LetterKey, Modifier, ValidationResult } from '@tanstack/hotkeys';
5
+
6
+ declare const kbdVariants: (props?: ({
7
+ variant?: "solid" | "outline" | "subtle" | null | undefined;
8
+ size?: "sm" | "md" | "lg" | null | undefined;
9
+ invalid?: boolean | null | undefined;
10
+ } & class_variance_authority_types.ClassProp) | undefined) => string;
11
+ declare const kbdGroupBase = "inline-flex items-center gap-1";
12
+ type KbdVariants = VariantProps<typeof kbdVariants>;
13
+ type LowerLetterKey = Lowercase<LetterKey>;
14
+ type CommonKeyAlias = 'Esc' | 'Return' | 'Spacebar' | 'Del' | 'Ins' | 'PgUp' | 'PgDn';
15
+ type CoreModifier = 'Control' | 'Ctrl' | 'Shift' | 'Alt' | 'Option' | 'Meta' | 'Cmd' | 'Mod';
16
+ type KbdKey = LogicalKey | LowerLetterKey | CommonKeyAlias;
17
+ type SequencePrefixChord = LowerLetterKey | LetterKey | 'Space' | `${CoreModifier}+${LowerLetterKey | LetterKey}`;
18
+ /**
19
+ * Type-safe single key or modifier chord backed by `@tanstack/hotkeys`'s `LogicalKey` and `Modifier`,
20
+ * extended with lowercase modal letter bindings (`'g'`, `'Control+w'`) and common aliases.
21
+ */
22
+ type KbdChord = KbdKey | Modifier | `${CoreModifier}+${KbdKey}` | `${CoreModifier}+Shift+${KbdKey}`;
23
+ /**
24
+ * Type-safe hotkey prop accepting a single chord (`'Mod+K'`), a space-separated
25
+ * multi-chord sequence (`'Space w v'`, `'Control+w l'`), or a sequence array (`['Space', '?']`).
26
+ */
27
+ type KbdHotkey = KbdChord | `${SequencePrefixChord} ${string}` | ReadonlyArray<KbdChord>;
28
+ interface KbdStepResult {
29
+ raw: string;
30
+ label: string;
31
+ valid: boolean;
32
+ errors: string[];
33
+ warnings: string[];
34
+ }
35
+ interface KbdProps {
36
+ variant?: KbdVariants['variant'];
37
+ size?: KbdVariants['size'];
38
+ /**
39
+ * Direct hotkey chord or sequence (e.g. `'Mod+K'`, `'Control+w l'`, `['Space', '?']`).
40
+ * Validated via `@tanstack/hotkeys` with automatic platform inference; broken chords trigger a console warning and render in the broken state.
41
+ */
42
+ hotkey?: KbdHotkey;
43
+ useSymbols?: boolean;
44
+ className?: string;
45
+ }
46
+ declare function inferPlatform(): 'mac' | 'windows' | 'linux';
47
+ declare function validateKbdChord(chord: string): ValidationResult;
48
+ declare function validateKbdHotkey(hotkey: string | ReadonlyArray<string>): ValidationResult;
49
+ declare function formatKeyChord(chord: string, options?: {
50
+ useSymbols?: boolean;
51
+ }): string;
52
+ declare function formatKeySequence(hotkey: string | ReadonlyArray<string>, options?: {
53
+ useSymbols?: boolean;
54
+ }): string[];
55
+ declare function resolveKbdSteps(hotkey: string | ReadonlyArray<string>, options?: {
56
+ useSymbols?: boolean;
57
+ warn?: boolean;
58
+ }): {
59
+ steps: KbdStepResult[];
60
+ valid: boolean;
61
+ message: string | undefined;
62
+ };
63
+ /**
64
+ * Checks whether a plain string child passed to `<Kbd>{children}</Kbd>` should be parsed
65
+ * as a hotkey chord/sequence (e.g. `'Mod+K'`, `'Shift+Z'`, `'Space w v'`).
66
+ */
67
+ declare function isChordCommandString(value: string): boolean;
68
+
69
+ type CommandStyle = 'palette' | 'menu' | 'colon';
70
+ interface CommandSelectContext {
71
+ value: string;
72
+ valuePath: string[];
73
+ commandString: string;
74
+ node: CommandNode;
75
+ }
76
+ interface CommandNode {
77
+ value: string;
78
+ label: string;
79
+ description?: string;
80
+ group?: string;
81
+ /** Command token for this level (defaults to `value`, e.g. 'theme' or 'catppuccin'). */
82
+ command?: string;
83
+ /** Alternative command tokens (e.g. ['t', 'colorscheme']). */
84
+ aliases?: string[];
85
+ /** Keyboard shortcut chord(s) rendered via <Kbd>. */
86
+ shortcut?: KbdHotkey;
87
+ /** Extra search terms matched during filtering. */
88
+ keywords?: string[];
89
+ /** Optional status badge (e.g. 'Future' for Search Docs). */
90
+ badge?: string;
91
+ /** Marks the currently active setting option (e.g. current theme, mode, preset, framework). */
92
+ active?: boolean;
93
+ disabled?: boolean;
94
+ closeOnSelect?: boolean;
95
+ onSelect?: (ctx: CommandSelectContext) => void;
96
+ children?: CommandNode[];
97
+ }
98
+ interface CommandBreadcrumb {
99
+ value: string;
100
+ label: string;
101
+ command: string;
102
+ }
103
+ interface CommandFlatItem {
104
+ value: string;
105
+ label: string;
106
+ description?: string;
107
+ group: string;
108
+ command: string;
109
+ fullCommand: string;
110
+ aliases: string[];
111
+ shortcut?: KbdHotkey;
112
+ badge?: string;
113
+ active: boolean;
114
+ disabled: boolean;
115
+ isBranch: boolean;
116
+ valuePath: string[];
117
+ breadcrumbLabels: string[];
118
+ /** Character indices matched by fzf in `label` for fuzzy highlighting. */
119
+ matchPositions?: number[];
120
+ /** Character indices matched by fzf in `command` for command completion highlighting. */
121
+ commandMatchPositions?: number[];
122
+ score?: number;
123
+ node: CommandNode;
124
+ }
125
+ interface CommandLevelResolution {
126
+ /** False when the root command tree has zero registered commands. */
127
+ hasCommands: boolean;
128
+ breadcrumbs: CommandBreadcrumb[];
129
+ items: CommandFlatItem[];
130
+ groups: Array<{
131
+ label: string;
132
+ items: CommandFlatItem[];
133
+ }>;
134
+ }
135
+ interface CommandMenuResolution {
136
+ /** False when the root command tree has zero registered commands. */
137
+ hasCommands: boolean;
138
+ normalizedInput: string;
139
+ completedTokens: string[];
140
+ partialToken: string;
141
+ breadcrumbs: CommandBreadcrumb[];
142
+ suggestions: CommandFlatItem[];
143
+ exactNode: CommandFlatItem | null;
144
+ error: string | null;
145
+ }
146
+ interface CommandHighlightSegment {
147
+ text: string;
148
+ highlight: boolean;
149
+ }
150
+ interface CommandPaletteProps {
151
+ items?: CommandNode[];
152
+ collection?: TreeCollection<CommandNode>;
153
+ open?: boolean;
154
+ defaultOpen?: boolean;
155
+ onOpenChange?: (open: boolean) => void;
156
+ activePath?: string[];
157
+ onActivePathChange?: (path: string[]) => void;
158
+ query?: string;
159
+ onQueryChange?: (query: string) => void;
160
+ onSelectCommand?: (ctx: CommandSelectContext) => void;
161
+ placeholder?: string;
162
+ /** Displayed when commands are registered but none match the search query. @default 'No matching commands.' */
163
+ emptyText?: string;
164
+ /** Displayed in the UI when no commands are registered in the tree. @default 'No commands registered.' */
165
+ noCommandsText?: string;
166
+ size?: 'sm' | 'md' | 'lg';
167
+ /** Render inline inside a container instead of a modal Dialog (useful for docs previews). */
168
+ inline?: boolean;
169
+ /** Global keyboard shortcut to toggle open (e.g. 'Mod+k'), or false to disable. @default 'Mod+k' */
170
+ hotkey?: string | false;
171
+ className?: string;
172
+ }
173
+ type CommandMenuColumns = 'auto' | 1 | 2 | 3 | 4;
174
+ type ColonCommandColumns = CommandMenuColumns;
175
+ interface CommandMenuProps {
176
+ items?: CommandNode[];
177
+ collection?: TreeCollection<CommandNode>;
178
+ open?: boolean;
179
+ defaultOpen?: boolean;
180
+ onOpenChange?: (open: boolean) => void;
181
+ inputValue?: string;
182
+ onInputValueChange?: (value: string) => void;
183
+ onSelectCommand?: (ctx: CommandSelectContext) => void;
184
+ /** Optional input placeholder text (e.g. 'Type a command'). @default '' */
185
+ placeholder?: string;
186
+ /** Displayed when commands are registered but none match the typed filter. @default 'No matching commands.' */
187
+ emptyText?: string;
188
+ /** Displayed in the UI when no commands are registered in the tree. @default 'No commands registered.' */
189
+ noCommandsText?: string;
190
+ /** Number of completion columns above the prompt bar. @default 'auto' */
191
+ columns?: CommandMenuColumns;
192
+ /** Whether to display keyboard shortcut badges next to completion items. @default false */
193
+ showShortcuts?: boolean;
194
+ /** Compactness variant for the completion grid and prompt bar. @default 'md' */
195
+ size?: 'sm' | 'md' | 'lg';
196
+ /** Render inline inside a container instead of a modal Dialog (useful for docs previews). */
197
+ inline?: boolean;
198
+ /** Global keyboard shortcut to open the command menu (e.g. ':'), or false to disable. @default ':' */
199
+ hotkey?: string | false;
200
+ className?: string;
201
+ }
202
+ type ColonCommandProps = CommandMenuProps;
203
+ interface CommandContextProps {
204
+ items?: CommandNode[];
205
+ collection?: TreeCollection<CommandNode>;
206
+ open?: boolean;
207
+ defaultOpen?: boolean;
208
+ onOpenChange?: (open: boolean) => void;
209
+ style?: CommandStyle;
210
+ defaultStyle?: CommandStyle;
211
+ onStyleChange?: (style: CommandStyle) => void;
212
+ onSelectCommand?: (ctx: CommandSelectContext) => void;
213
+ }
214
+ interface CommandContextValue {
215
+ items?: CommandNode[];
216
+ collection?: TreeCollection<CommandNode>;
217
+ tree: TreeCollection<CommandNode>;
218
+ open: boolean;
219
+ setOpen: (open: boolean) => void;
220
+ style: CommandStyle;
221
+ setStyle: (style: CommandStyle) => void;
222
+ openPalette: () => void;
223
+ openMenu: () => void;
224
+ openColon: () => void;
225
+ close: () => void;
226
+ toggle: () => void;
227
+ onSelectCommand?: (ctx: CommandSelectContext) => void;
228
+ }
229
+
230
+ /**
231
+ * Builds a `@zag-js/collection` `TreeCollection` from an array of `CommandNode` items
232
+ * or returns an existing `TreeCollection` unchanged.
233
+ */
234
+ declare function createCommandTree(items?: CommandNode[] | TreeCollection<CommandNode>): TreeCollection<CommandNode>;
235
+ /**
236
+ * Resolves the active command level, breadcrumbs, and fuzzy-ranked (`fzf`) items
237
+ * for `CommandPalette` at a given `activePath` and `query`.
238
+ */
239
+ declare function resolveCommandLevel(tree: TreeCollection<CommandNode>, activePath?: string[], query?: string, options?: {
240
+ deepSearch?: boolean;
241
+ }): CommandLevelResolution;
242
+ /**
243
+ * Tokenizes a raw `:command` input string and resolves branch breadcrumbs,
244
+ * `fzf`-ranked child suggestions, exact node matches, and error messages for `CommandMenu`.
245
+ */
246
+ declare function resolveCommandMenuState(tree: TreeCollection<CommandNode>, rawInput?: string): CommandMenuResolution;
247
+ /**
248
+ * Formats the next `:command` input string when completing or drilling into a suggestion.
249
+ */
250
+ declare function formatCommandMenuCompletionInput(completedTokens: string[], item: CommandFlatItem, appendBranchSpace?: boolean): string;
251
+ /**
252
+ * Splits a label or command string into highlighted and non-highlighted text segments
253
+ * based on `fzf` character match positions.
254
+ */
255
+ declare function splitHighlightSegments(text: string, matchPositions?: number[]): CommandHighlightSegment[];
256
+ /**
257
+ * Announces a polite ARIA live-region status message for command navigation and execution.
258
+ */
259
+ declare function announceCommandMessage(message: string): void;
260
+ /**
261
+ * Checks whether a `KeyboardEvent` matches a configured command hotkey chord (e.g. `'Mod+k'` or `':'`).
262
+ */
263
+ declare function matchesCommandHotkey(event: KeyboardEvent, hotkey: string): boolean;
264
+ /**
265
+ * Determines whether a specific command anchor element should handle a global hotkey
266
+ * when multiple demo previews are mounted on the same page.
267
+ */
268
+ declare function shouldHandleCommandHotkey(anchorEl: HTMLElement | null, selector: string): boolean;
269
+ /**
270
+ * Computes inline CSS grid template properties for a multi-column `CommandMenu` completion list.
271
+ */
272
+ declare function resolveCommandMenuGridStyle(columns: CommandMenuColumns | undefined, itemCount: number): {
273
+ display: 'grid';
274
+ gridAutoFlow: 'column';
275
+ gridTemplateRows: string;
276
+ gridTemplateColumns: string;
277
+ } | undefined;
278
+ /**
279
+ * Computes the next highlighted suggestion index for 2D arrow-key navigation in `CommandMenu`.
280
+ */
281
+ declare function resolveCommandMenuGridNavigation(columns: CommandMenuColumns | undefined, itemCount: number, currentIdx: number, key: 'ArrowDown' | 'ArrowUp' | 'ArrowRight' | 'ArrowLeft'): number;
282
+
283
+ declare const commandPaletteVariants: (props?: ({
284
+ size?: "sm" | "md" | "lg" | null | undefined;
285
+ } & class_variance_authority_types.ClassProp) | undefined) => string;
286
+ type CommandPaletteVariants = VariantProps<typeof commandPaletteVariants>;
287
+ declare const commandPalettePositionerBase = "items-center justify-center p-4";
288
+ declare const commandPaletteDialogContentBase = "my-auto gap-0 overflow-hidden p-0 sm:max-w-xl";
289
+ declare const commandPaletteHeaderBase = "flex items-center gap-2 border-b border-border px-3 py-2.5";
290
+ declare const commandPaletteBreadcrumbBase = "inline-flex shrink-0 items-center gap-1 rounded-md bg-muted px-2 py-0.5 text-xs font-medium text-muted-foreground transition-colors hover:bg-accent hover:text-accent-foreground";
291
+ declare const commandPaletteInputBase = "flex-1 border-0 bg-transparent px-1 py-0.5 text-sm text-foreground outline-none placeholder:text-muted-foreground focus-visible:ring-0";
292
+ declare const commandPaletteListBase = "max-h-80 overflow-y-auto p-1.5 outline-none";
293
+ declare const commandPaletteItemBase = "group relative flex w-full cursor-pointer select-none items-center justify-between gap-3 rounded-lg px-2.5 py-2 text-sm outline-none transition-colors data-[highlighted]:bg-accent data-[highlighted]:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50";
294
+ declare const commandPaletteFooterBase = "flex flex-wrap items-center justify-between gap-2 border-t border-border bg-muted/30 px-3 py-2 text-[11px] text-muted-foreground";
295
+ declare const commandPaletteStyles: {
296
+ readonly root: (props?: ({
297
+ size?: "sm" | "md" | "lg" | null | undefined;
298
+ } & class_variance_authority_types.ClassProp) | undefined) => string;
299
+ readonly positioner: "items-center justify-center p-4";
300
+ readonly dialogContent: "my-auto gap-0 overflow-hidden p-0 sm:max-w-xl";
301
+ readonly header: "flex items-center gap-2 border-b border-border px-3 py-2.5";
302
+ readonly breadcrumb: "inline-flex shrink-0 items-center gap-1 rounded-md bg-muted px-2 py-0.5 text-xs font-medium text-muted-foreground transition-colors hover:bg-accent hover:text-accent-foreground";
303
+ readonly input: "flex-1 border-0 bg-transparent px-1 py-0.5 text-sm text-foreground outline-none placeholder:text-muted-foreground focus-visible:ring-0";
304
+ readonly list: "max-h-80 overflow-y-auto p-1.5 outline-none";
305
+ readonly item: "group relative flex w-full cursor-pointer select-none items-center justify-between gap-3 rounded-lg px-2.5 py-2 text-sm outline-none transition-colors data-[highlighted]:bg-accent data-[highlighted]:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50";
306
+ readonly footer: "flex flex-wrap items-center justify-between gap-2 border-t border-border bg-muted/30 px-3 py-2 text-[11px] text-muted-foreground";
307
+ };
308
+ declare const commandMenuVariants: (props?: ({
309
+ size?: "sm" | "md" | "lg" | null | undefined;
310
+ } & class_variance_authority_types.ClassProp) | undefined) => string;
311
+ type CommandMenuVariants = VariantProps<typeof commandMenuVariants>;
312
+ declare const commandMenuPositionerBase = "items-end justify-stretch p-0!";
313
+ declare const commandMenuDialogContentBase = "fixed inset-x-0 bottom-0 top-auto my-0 w-full max-w-none translate-x-0 translate-y-0 gap-0 overflow-hidden rounded-none border-x-0 border-b-0 border-t border-border p-0 shadow-2xl sm:max-w-none sm:rounded-none";
314
+ declare const commandMenuListVariants: (props?: ({
315
+ columns?: 2 | 1 | 3 | 4 | "auto" | null | undefined;
316
+ size?: "sm" | "md" | "lg" | null | undefined;
317
+ } & class_variance_authority_types.ClassProp) | undefined) => string;
318
+ declare const commandMenuItemVariants: (props?: ({
319
+ size?: "sm" | "md" | "lg" | null | undefined;
320
+ } & class_variance_authority_types.ClassProp) | undefined) => string;
321
+ declare const commandMenuPromptBarVariants: (props?: ({
322
+ size?: "sm" | "md" | "lg" | null | undefined;
323
+ } & class_variance_authority_types.ClassProp) | undefined) => string;
324
+ declare const commandMenuPrefixBase = "select-none font-mono font-bold text-primary";
325
+ declare const commandMenuInputVariants: (props?: ({
326
+ size?: "sm" | "md" | "lg" | null | undefined;
327
+ } & class_variance_authority_types.ClassProp) | undefined) => string;
328
+ declare const commandMenuErrorBase = "flex items-center justify-between gap-2 border-t border-destructive/30 bg-destructive/10 px-3 py-1.5 font-mono text-xs text-destructive";
329
+ declare const commandMenuStyles: {
330
+ readonly root: (props?: ({
331
+ size?: "sm" | "md" | "lg" | null | undefined;
332
+ } & class_variance_authority_types.ClassProp) | undefined) => string;
333
+ readonly positioner: "items-end justify-stretch p-0!";
334
+ readonly dialogContent: "fixed inset-x-0 bottom-0 top-auto my-0 w-full max-w-none translate-x-0 translate-y-0 gap-0 overflow-hidden rounded-none border-x-0 border-b-0 border-t border-border p-0 shadow-2xl sm:max-w-none sm:rounded-none";
335
+ readonly list: (props?: ({
336
+ columns?: 2 | 1 | 3 | 4 | "auto" | null | undefined;
337
+ size?: "sm" | "md" | "lg" | null | undefined;
338
+ } & class_variance_authority_types.ClassProp) | undefined) => string;
339
+ readonly item: (props?: ({
340
+ size?: "sm" | "md" | "lg" | null | undefined;
341
+ } & class_variance_authority_types.ClassProp) | undefined) => string;
342
+ readonly promptBar: (props?: ({
343
+ size?: "sm" | "md" | "lg" | null | undefined;
344
+ } & class_variance_authority_types.ClassProp) | undefined) => string;
345
+ readonly prefix: "select-none font-mono font-bold text-primary";
346
+ readonly input: (props?: ({
347
+ size?: "sm" | "md" | "lg" | null | undefined;
348
+ } & class_variance_authority_types.ClassProp) | undefined) => string;
349
+ readonly error: "flex items-center justify-between gap-2 border-t border-destructive/30 bg-destructive/10 px-3 py-1.5 font-mono text-xs text-destructive";
350
+ };
351
+
352
+ export { commandPaletteVariants as $, matchesCommandHotkey as A, resolveKbdSteps as B, type ColonCommandColumns as C, validateKbdChord as D, validateKbdHotkey as E, type CommandHighlightSegment as F, type CommandLevelResolution as G, type CommandMenuResolution as H, announceCommandMessage as I, commandMenuDialogContentBase as J, type KbdChord as K, commandMenuErrorBase as L, commandMenuInputVariants as M, commandMenuItemVariants as N, commandMenuListVariants as O, commandMenuPositionerBase as P, commandMenuPrefixBase as Q, commandMenuPromptBarVariants as R, commandMenuVariants as S, commandPaletteBreadcrumbBase as T, commandPaletteDialogContentBase as U, commandPaletteFooterBase as V, commandPaletteHeaderBase as W, commandPaletteInputBase as X, commandPaletteItemBase as Y, commandPaletteListBase as Z, commandPalettePositionerBase as _, type ColonCommandProps as a, formatCommandMenuCompletionInput as a0, resolveCommandLevel as a1, resolveCommandMenuGridNavigation as a2, resolveCommandMenuGridStyle as a3, resolveCommandMenuState as a4, shouldHandleCommandHotkey as a5, splitHighlightSegments as a6, type CommandBreadcrumb as b, type CommandContextProps as c, type CommandContextValue as d, type CommandFlatItem as e, type CommandMenuColumns as f, type CommandMenuProps as g, type CommandMenuVariants as h, type CommandNode as i, type CommandPaletteProps as j, type CommandPaletteVariants as k, type CommandSelectContext as l, type CommandStyle as m, type KbdHotkey as n, type KbdProps as o, type KbdStepResult as p, type KbdVariants as q, commandMenuStyles as r, commandPaletteStyles as s, createCommandTree as t, formatKeyChord as u, formatKeySequence as v, inferPlatform as w, isChordCommandString as x, kbdGroupBase as y, kbdVariants as z };