@nextlyhq/ui 0.0.2-alpha.7 → 0.0.2-alpha.70

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/dist/index.d.ts CHANGED
@@ -1,35 +1,65 @@
1
- import * as class_variance_authority_types from 'class-variance-authority/types';
2
- import * as react from 'react';
3
- import { ButtonHTMLAttributes, ComponentProps, TextareaHTMLAttributes, HTMLAttributes, ComponentPropsWithoutRef, ReactNode } from 'react';
4
- import * as class_variance_authority from 'class-variance-authority';
5
- import { VariantProps } from 'class-variance-authority';
6
- import * as react_jsx_runtime from 'react/jsx-runtime';
7
- import { Root } from '@radix-ui/react-label';
8
- import * as SeparatorPrimitive from '@radix-ui/react-separator';
9
- import * as CheckboxPrimitive from '@radix-ui/react-checkbox';
10
- import * as RadioGroupPrimitive from '@radix-ui/react-radio-group';
11
- import { Root as Root$1 } from '@radix-ui/react-switch';
12
- import * as CollapsiblePrimitive from '@radix-ui/react-collapsible';
13
- import * as AccordionPrimitive from '@radix-ui/react-accordion';
14
- import { Content, Item, Root as Root$2, Trigger } from '@radix-ui/react-accordion';
15
- import * as _radix_ui_react_tabs from '@radix-ui/react-tabs';
16
- import { Content as Content$1, List, Root as Root$3, Trigger as Trigger$1 } from '@radix-ui/react-tabs';
17
- import * as _radix_ui_react_tooltip from '@radix-ui/react-tooltip';
18
- import * as PopoverPrimitive from '@radix-ui/react-popover';
19
- import * as DialogPrimitive from '@radix-ui/react-dialog';
20
- import * as AlertDialogPrimitive from '@radix-ui/react-alert-dialog';
21
- import * as DropdownMenuPrimitive from '@radix-ui/react-dropdown-menu';
22
- import * as SelectPrimitive from '@radix-ui/react-select';
23
- import { Command as Command$1 } from 'cmdk';
24
- import { LucideProps } from 'lucide-react';
25
- import { ToasterProps } from 'sonner';
26
- export { ToasterProps, toast } from 'sonner';
27
- import { ClassValue } from 'clsx';
28
1
 
2
+ import { VariantProps, cva } from "class-variance-authority";
3
+ import * as React$1 from "react";
4
+ import { ButtonHTMLAttributes, ComponentProps, ComponentPropsWithoutRef, ElementRef, ForwardRefExoticComponent, HTMLAttributes, JSX, PropsWithoutRef, ReactNode, RefAttributes, TextareaHTMLAttributes } from "react";
5
+ import { Root } from "@radix-ui/react-label";
6
+ import { LucideProps } from "lucide-react";
7
+ import { Content, Provider, Root as Root$1, Trigger } from "@radix-ui/react-tooltip";
8
+ import * as SeparatorPrimitive from "@radix-ui/react-separator";
9
+ import * as CheckboxPrimitive from "@radix-ui/react-checkbox";
10
+ import * as RadioGroupPrimitive from "@radix-ui/react-radio-group";
11
+ import { Root as Root$2 } from "@radix-ui/react-switch";
12
+ import * as CollapsiblePrimitive from "@radix-ui/react-collapsible";
13
+ import * as AccordionPrimitive from "@radix-ui/react-accordion";
14
+ import { Content as Content$1, Item, Root as Root$3, Trigger as Trigger$1 } from "@radix-ui/react-accordion";
15
+ import { Content as Content$2, List, Root as Root$4, Trigger as Trigger$2 } from "@radix-ui/react-tabs";
16
+ import * as PopoverPrimitive from "@radix-ui/react-popover";
17
+ import * as DialogPrimitive from "@radix-ui/react-dialog";
18
+ import * as AlertDialogPrimitive from "@radix-ui/react-alert-dialog";
19
+ import * as DropdownMenuPrimitive from "@radix-ui/react-dropdown-menu";
20
+ import * as SelectPrimitive from "@radix-ui/react-select";
21
+ import { Command as Command$1, defaultFilter } from "cmdk";
22
+ import { ToasterProps, ToasterProps as ToasterProps$1, toast } from "sonner";
23
+ import * as ContextMenuPrimitive from "@radix-ui/react-context-menu";
24
+ import * as ResizablePrimitive from "react-resizable-panels";
25
+ import * as SliderPrimitive from "@radix-ui/react-slider";
26
+ /**
27
+ * The function `cva` returns for the variants map `T`: each variant's arms, and
28
+ * `class` or `className`.
29
+ *
30
+ * Every `*Variants` export is annotated with this over the very object its `cva`
31
+ * call is given (`VariantsFn<typeof BUTTON_VARIANT_MAP>`), so the published type
32
+ * is read from the configuration rather than restated beside it. An arm added to
33
+ * a map reaches the type with no second edit; a hand-written union would go on
34
+ * accepting the old set while the function accepted the new one.
35
+ * `variants.test-d.ts` checks each one against its map.
36
+ */
37
+ type VariantsFn<T> = ReturnType<typeof cva<T>>;
38
+ /** @public */
29
39
  interface ButtonProps extends ButtonHTMLAttributes<HTMLButtonElement>, VariantProps<typeof buttonVariants> {
30
- asChild?: boolean;
40
+ asChild?: boolean;
31
41
  }
32
-
42
+ /** The arms `buttonVariants` is built from. Its type is read from them: {@link VariantsFn}. */
43
+ declare const BUTTON_VARIANT_MAP: {
44
+ variant: {
45
+ default: string;
46
+ primary: string;
47
+ destructive: string;
48
+ outline: string;
49
+ secondary: string;
50
+ ghost: string;
51
+ link: string;
52
+ };
53
+ size: {
54
+ default: string;
55
+ sm: string;
56
+ md: string;
57
+ lg: string;
58
+ icon: string;
59
+ "icon-sm": string;
60
+ "icon-lg": string;
61
+ };
62
+ };
33
63
  /**
34
64
  * Button Component - Design System Specification
35
65
  *
@@ -45,13 +75,19 @@ interface ButtonProps extends ButtonHTMLAttributes<HTMLButtonElement>, VariantPr
45
75
  * - link: Link-style button (underlined text)
46
76
  *
47
77
  * Note: 'primary' is a semantic alias for 'default' variant for better code readability
48
- */
49
- declare const buttonVariants: (props?: ({
50
- variant?: "default" | "primary" | "destructive" | "outline" | "secondary" | "ghost" | "link" | null | undefined;
51
- size?: "default" | "sm" | "md" | "lg" | "icon" | "icon-sm" | "icon-lg" | null | undefined;
52
- } & class_variance_authority_types.ClassProp) | undefined) => string;
53
- declare const Button: react.ForwardRefExoticComponent<ButtonProps & react.RefAttributes<HTMLButtonElement>>;
54
-
78
+ * @experimental
79
+ */
80
+ declare const buttonVariants: VariantsFn<typeof BUTTON_VARIANT_MAP>;
81
+ /** @public */
82
+ declare const Button: ForwardRefExoticComponent<PropsWithoutRef<ButtonProps> & RefAttributes<HTMLButtonElement>>;
83
+ /** The arms `inputVariants` is built from. Its type is read from them: {@link VariantsFn}. */
84
+ declare const INPUT_VARIANT_MAP: {
85
+ size: {
86
+ sm: string;
87
+ default: string;
88
+ lg: string;
89
+ };
90
+ };
55
91
  /**
56
92
  * Input Component - Design System Specification
57
93
  *
@@ -66,15 +102,15 @@ declare const Button: react.ForwardRefExoticComponent<ButtonProps & react.RefAtt
66
102
  * - Placeholder text for guidance (not a replacement for labels)
67
103
  *
68
104
  * Design Specs:
69
- * - Height: sm=32px, default=40px, lg=44px
105
+ * - Height: sm=36px, default=40px, lg=44px
70
106
  * - Padding: Horizontal varies by size (sm=10px, default=12px, lg=16px)
71
- * - Border radius: 0px (rounded-none)
107
+ * - Border radius: `rounded-md`, the control step of the `--radius` scale
72
108
  * - Border: 1px solid, changes on focus/error
73
109
  * - Transition: 150ms (consistent with design system)
74
110
  * - Font size: sm/default=14px (text-sm), lg=16px (text-base)
75
111
  *
76
112
  * Size Variants:
77
- * - sm: Height 32px (h-8) - Compact forms, filters
113
+ * - sm: Height 36px - Compact forms and filters, matching a small Button
78
114
  * - default: Height 40px (h-10) - Standard forms
79
115
  * - lg: Height 44px (h-11) - Prominent inputs, marketing forms
80
116
  *
@@ -86,18 +122,39 @@ declare const Button: react.ForwardRefExoticComponent<ButtonProps & react.RefAtt
86
122
  * - tel: Phone number input
87
123
  * - url: URL validation
88
124
  * - search: Search input with clear button
89
- */
90
- declare const inputVariants: (props?: ({
91
- size?: "default" | "sm" | "lg" | null | undefined;
92
- } & class_variance_authority_types.ClassProp) | undefined) => string;
93
- interface InputProps extends Omit<ComponentProps<"input">, "size">, VariantProps<typeof inputVariants> {
125
+ * @experimental
126
+ */
127
+ declare const inputVariants: VariantsFn<typeof INPUT_VARIANT_MAP>;
128
+ /** @public */
129
+ interface InputProps extends Omit<ComponentProps<"input">, "size">, VariantProps<typeof inputVariants> {}
130
+ /** @public */
131
+ declare const Input: ForwardRefExoticComponent<PropsWithoutRef<InputProps> & RefAttributes<HTMLInputElement>>;
132
+ type TextareaProps = TextareaHTMLAttributes<HTMLTextAreaElement>;
133
+ /** @public */
134
+ declare const Textarea: ForwardRefExoticComponent<PropsWithoutRef<TextareaProps> & RefAttributes<HTMLTextAreaElement>>;
135
+ /** @public */
136
+ declare function Label({ className, ...props }: ComponentProps<typeof Root>): JSX.Element;
137
+ /** @public */
138
+ interface FormLabelWithTooltipProps extends React$1.ComponentPropsWithoutRef<typeof Label> {
139
+ label: React$1.ReactNode;
140
+ description?: React$1.ReactNode;
141
+ required?: boolean;
142
+ labelClassName?: string;
143
+ tooltipClassName?: string;
94
144
  }
95
- declare const Input: react.ForwardRefExoticComponent<Omit<InputProps, "ref"> & react.RefAttributes<HTMLInputElement>>;
96
-
97
- declare const Textarea: react.ForwardRefExoticComponent<TextareaHTMLAttributes<HTMLTextAreaElement> & react.RefAttributes<HTMLTextAreaElement>>;
98
-
99
- declare function Label({ className, ...props }: ComponentProps<typeof Root>): react_jsx_runtime.JSX.Element;
100
-
145
+ /** @public */
146
+ export declare const FormLabelWithTooltip: React$1.ForwardRefExoticComponent<React$1.PropsWithoutRef<FormLabelWithTooltipProps> & React$1.RefAttributes<React$1.ElementRef<typeof Label>>>;
147
+ /** The arms `badgeVariants` is built from. Its type is read from them: {@link VariantsFn}. */
148
+ declare const BADGE_VARIANT_MAP: {
149
+ variant: {
150
+ default: string;
151
+ primary: string;
152
+ success: string;
153
+ warning: string;
154
+ destructive: string;
155
+ outline: string;
156
+ };
157
+ };
101
158
  /**
102
159
  * Badge Component - Design System Specification
103
160
  *
@@ -124,15 +181,22 @@ declare function Label({ className, ...props }: ComponentProps<typeof Root>): re
124
181
  * - success: Light green background
125
182
  * - warning: Light amber background
126
183
  * - destructive: Light red background
127
- * - outline: Transparent background with border border-primary/5
128
- */
129
- declare const badgeVariants: (props?: ({
130
- variant?: "default" | "primary" | "destructive" | "outline" | "success" | "warning" | null | undefined;
131
- } & class_variance_authority_types.ClassProp) | undefined) => string;
132
- interface BadgeProps extends HTMLAttributes<HTMLDivElement>, VariantProps<typeof badgeVariants> {
133
- }
134
- declare function Badge({ className, variant, ...props }: BadgeProps): react_jsx_runtime.JSX.Element;
135
-
184
+ * - outline: Transparent background with border border-border
185
+ * @experimental
186
+ */
187
+ declare const badgeVariants: VariantsFn<typeof BADGE_VARIANT_MAP>;
188
+ /** @public */
189
+ interface BadgeProps extends HTMLAttributes<HTMLDivElement>, VariantProps<typeof badgeVariants> {}
190
+ /** @public */
191
+ declare function Badge({ className, variant, ...props }: BadgeProps): JSX.Element;
192
+ /** The arms `cardVariants` is built from. Its type is read from them: {@link VariantsFn}. */
193
+ declare const CARD_VARIANT_MAP: {
194
+ variant: {
195
+ default: string;
196
+ interactive: string;
197
+ elevated: string;
198
+ };
199
+ };
136
200
  /**
137
201
  * Card Component - Design System Specification
138
202
  *
@@ -140,14 +204,14 @@ declare function Badge({ className, variant, ...props }: BadgeProps): react_jsx_
140
204
  * Cards provide a structured layout with header, content, and footer sections.
141
205
  *
142
206
  * Design Specs:
143
- * - Border radius: 0px (rounded-none)
207
+ * - Border radius: `rounded-lg`, the container step of the `--radius` scale
144
208
  * - Padding: 24px (p-6) for header/content, 16px 24px for footer
145
209
  * - Shadow: sm (default), md (hover/elevated)
146
- * - Border: 1px solid border border-primary/5 color
210
+ * - Border: 1px solid border border-border color
147
211
  *
148
212
  * Variants:
149
213
  * - default: Standard card with subtle shadow
150
- * - interactive: Hover effects for clickable cards (border border-primary/5 highlight, shadow increase)
214
+ * - interactive: Hover effects for clickable cards (border border-border highlight, shadow increase)
151
215
  * ⚠️ IMPORTANT: When using the interactive variant, you MUST add appropriate
152
216
  * accessibility attributes:
153
217
  * - Add role="button" or use an actual <button> wrapper
@@ -182,33 +246,92 @@ declare function Badge({ className, variant, ...props }: BadgeProps): react_jsx_
182
246
  * - Interactive cards MUST have role, tabIndex, and keyboard handlers (see above)
183
247
  * - Ensure sufficient color contrast for all text (WCAG 2.2 AA minimum)
184
248
  * - Use aria-label or aria-labelledby for cards without visible text labels
249
+ * @experimental
185
250
  */
186
- declare const cardVariants: (props?: ({
187
- variant?: "default" | "interactive" | "elevated" | null | undefined;
188
- } & class_variance_authority_types.ClassProp) | undefined) => string;
251
+ declare const cardVariants: VariantsFn<typeof CARD_VARIANT_MAP>;
252
+ /** @experimental */
189
253
  type CardProps = HTMLAttributes<HTMLDivElement> & VariantProps<typeof cardVariants>;
190
- declare const Card: react.ForwardRefExoticComponent<HTMLAttributes<HTMLDivElement> & VariantProps<(props?: ({
191
- variant?: "default" | "interactive" | "elevated" | null | undefined;
192
- } & class_variance_authority_types.ClassProp) | undefined) => string> & react.RefAttributes<HTMLDivElement>>;
254
+ /** @experimental */
255
+ declare const Card: ForwardRefExoticComponent<PropsWithoutRef<CardProps> & RefAttributes<HTMLDivElement>>;
256
+ /** @experimental */
193
257
  interface CardHeaderProps extends HTMLAttributes<HTMLDivElement> {
194
- /**
195
- * Whether to hide the bottom border border-primary/5 separator between header and content.
196
- * Default: false (border border-primary/5 is shown per design spec)
197
- */
198
- noBorder?: boolean;
258
+ /**
259
+ * Whether to hide the bottom border border-border separator between header and content.
260
+ * Default: false (border border-border is shown per design spec)
261
+ */
262
+ noBorder?: boolean;
199
263
  }
200
- declare const CardHeader: react.ForwardRefExoticComponent<CardHeaderProps & react.RefAttributes<HTMLDivElement>>;
264
+ /** @experimental */
265
+ declare const CardHeader: ForwardRefExoticComponent<PropsWithoutRef<CardHeaderProps> & RefAttributes<HTMLDivElement>>;
266
+ /** @experimental */
201
267
  type CardTitleProps = HTMLAttributes<HTMLHeadingElement>;
202
- declare const CardTitle: react.ForwardRefExoticComponent<CardTitleProps & react.RefAttributes<HTMLHeadingElement>>;
268
+ /** @experimental */
269
+ declare const CardTitle: ForwardRefExoticComponent<PropsWithoutRef<CardTitleProps> & RefAttributes<HTMLHeadingElement>>;
270
+ /** @experimental */
203
271
  type CardDescriptionProps = HTMLAttributes<HTMLParagraphElement>;
204
- declare const CardDescription: react.ForwardRefExoticComponent<CardDescriptionProps & react.RefAttributes<HTMLParagraphElement>>;
272
+ /** @experimental */
273
+ declare const CardDescription: ForwardRefExoticComponent<PropsWithoutRef<CardDescriptionProps> & RefAttributes<HTMLParagraphElement>>;
274
+ /** @experimental */
205
275
  type CardActionProps = HTMLAttributes<HTMLDivElement>;
206
- declare const CardAction: react.ForwardRefExoticComponent<CardActionProps & react.RefAttributes<HTMLDivElement>>;
276
+ /** @experimental */
277
+ declare const CardAction: ForwardRefExoticComponent<PropsWithoutRef<CardActionProps> & RefAttributes<HTMLDivElement>>;
278
+ /** @experimental */
207
279
  type CardContentProps = HTMLAttributes<HTMLDivElement>;
208
- declare const CardContent: react.ForwardRefExoticComponent<CardContentProps & react.RefAttributes<HTMLDivElement>>;
280
+ /** @experimental */
281
+ declare const CardContent: ForwardRefExoticComponent<PropsWithoutRef<CardContentProps> & RefAttributes<HTMLDivElement>>;
282
+ /** @experimental */
209
283
  type CardFooterProps = HTMLAttributes<HTMLDivElement>;
210
- declare const CardFooter: react.ForwardRefExoticComponent<CardFooterProps & react.RefAttributes<HTMLDivElement>>;
211
-
284
+ /** @experimental */
285
+ declare const CardFooter: ForwardRefExoticComponent<PropsWithoutRef<CardFooterProps> & RefAttributes<HTMLDivElement>>;
286
+ type Gap = 0 | 1 | 2 | 3 | 4 | 6 | 8;
287
+ type Cols = 1 | 2 | 3 | 4 | 6;
288
+ /** @experimental */
289
+ interface StackProps extends HTMLAttributes<HTMLDivElement> {
290
+ /** Main-axis direction. Default `col`. */
291
+ direction?: "col" | "row";
292
+ /** Gap between children (Tailwind spacing step). Default `4`. */
293
+ gap?: Gap;
294
+ }
295
+ /** Flex stack: vertical by default, horizontal with `direction="row"`.
296
+ * @experimental
297
+ */
298
+ export declare const Stack: ForwardRefExoticComponent<PropsWithoutRef<StackProps> & RefAttributes<HTMLDivElement>>;
299
+ /** @experimental */
300
+ interface GridProps extends HTMLAttributes<HTMLDivElement> {
301
+ /** Column count. Default `2`. */
302
+ cols?: Cols;
303
+ /** Gap between cells. Default `4`. */
304
+ gap?: Gap;
305
+ /**
306
+ * Collapse to one column in a narrow container. Off by default so existing
307
+ * callers keep the fixed column count they were written against.
308
+ */
309
+ responsive?: boolean;
310
+ }
311
+ /** Simple fixed-column grid, or a container-responsive one via `responsive`.
312
+ * @experimental
313
+ */
314
+ export declare const Grid: ForwardRefExoticComponent<PropsWithoutRef<GridProps> & RefAttributes<HTMLDivElement>>;
315
+ /** @experimental */
316
+ interface StatProps extends HTMLAttributes<HTMLDivElement> {
317
+ /** Muted label above the value. */
318
+ label: string;
319
+ /** The emphasized value (string or node). */
320
+ value: ReactNode;
321
+ }
322
+ /** Labelled metric block for dashboard-style plugin widgets.
323
+ * @experimental
324
+ */
325
+ export declare const Stat: ForwardRefExoticComponent<PropsWithoutRef<StatProps> & RefAttributes<HTMLDivElement>>;
326
+ /** The arms `alertVariants` is built from. Its type is read from them: {@link VariantsFn}. */
327
+ declare const ALERT_VARIANT_MAP: {
328
+ variant: {
329
+ info: string;
330
+ success: string;
331
+ warning: string;
332
+ destructive: string;
333
+ };
334
+ };
212
335
  /**
213
336
  * Alert Component - Design System Specification
214
337
  *
@@ -217,7 +340,7 @@ declare const CardFooter: react.ForwardRefExoticComponent<CardFooterProps & reac
217
340
  *
218
341
  * Design Specs:
219
342
  * - Padding: 16px (p-4)
220
- * - Border radius: 0px (rounded-none) - intentionally smaller than Card (12px)
343
+ * - Border radius: `rounded-md`, one step tighter than Card's `rounded-lg`
221
344
  * for inline/flow content vs. larger container components
222
345
  * - Border: 1px solid matching variant color
223
346
  * - Shadow: sm (subtle elevation)
@@ -276,10 +399,10 @@ declare const CardFooter: react.ForwardRefExoticComponent<CardFooterProps & reac
276
399
  * - Success: <CheckCircle2 className="h-4 w-4" />
277
400
  * - Warning: <AlertTriangle className="h-4 w-4" />
278
401
  * - Destructive: <XCircle className="h-4 w-4" />
402
+ * @experimental
279
403
  */
280
- declare const alertVariants: (props?: ({
281
- variant?: "destructive" | "success" | "warning" | "info" | null | undefined;
282
- } & class_variance_authority_types.ClassProp) | undefined) => string;
404
+ declare const alertVariants: VariantsFn<typeof ALERT_VARIANT_MAP>;
405
+ /** @experimental */
283
406
  type AlertProps = HTMLAttributes<HTMLDivElement> & VariantProps<typeof alertVariants>;
284
407
  /**
285
408
  * Alert - Root container for alert messages
@@ -292,10 +415,10 @@ type AlertProps = HTMLAttributes<HTMLDivElement> & VariantProps<typeof alertVari
292
415
  * <CheckCircle2 className="h-4 w-4" />
293
416
  * <AlertDescription>Operation completed successfully</AlertDescription>
294
417
  * </Alert>
418
+ * @experimental
295
419
  */
296
- declare const Alert: react.ForwardRefExoticComponent<HTMLAttributes<HTMLDivElement> & VariantProps<(props?: ({
297
- variant?: "destructive" | "success" | "warning" | "info" | null | undefined;
298
- } & class_variance_authority_types.ClassProp) | undefined) => string> & react.RefAttributes<HTMLDivElement>>;
420
+ declare const Alert: ForwardRefExoticComponent<PropsWithoutRef<AlertProps> & RefAttributes<HTMLDivElement>>;
421
+ /** @experimental */
299
422
  type AlertTitleProps = HTMLAttributes<HTMLHeadingElement>;
300
423
  /**
301
424
  * AlertTitle - Heading text for alert message
@@ -305,8 +428,10 @@ type AlertTitleProps = HTMLAttributes<HTMLHeadingElement>;
305
428
  *
306
429
  * @example
307
430
  * <AlertTitle>Payment Successful</AlertTitle>
431
+ * @experimental
308
432
  */
309
- declare const AlertTitle: react.ForwardRefExoticComponent<AlertTitleProps & react.RefAttributes<HTMLHeadingElement>>;
433
+ declare const AlertTitle: ForwardRefExoticComponent<PropsWithoutRef<AlertTitleProps> & RefAttributes<HTMLHeadingElement>>;
434
+ /** @experimental */
310
435
  type AlertDescriptionProps = HTMLAttributes<HTMLDivElement>;
311
436
  /**
312
437
  * AlertDescription - Supporting detail text for alert message
@@ -318,11 +443,11 @@ type AlertDescriptionProps = HTMLAttributes<HTMLDivElement>;
318
443
  * <AlertDescription>
319
444
  * Your changes have been saved. <a href="/view">View details</a>
320
445
  * </AlertDescription>
446
+ * @experimental
321
447
  */
322
- declare const AlertDescription: react.ForwardRefExoticComponent<AlertDescriptionProps & react.RefAttributes<HTMLDivElement>>;
323
-
324
- declare function Separator({ className, orientation, decorative, ...props }: react.ComponentProps<typeof SeparatorPrimitive.Root>): react_jsx_runtime.JSX.Element;
325
-
448
+ declare const AlertDescription: ForwardRefExoticComponent<PropsWithoutRef<AlertDescriptionProps> & RefAttributes<HTMLDivElement>>;
449
+ /** @experimental */
450
+ declare function Separator({ className, orientation, decorative, ...props }: React$1.ComponentProps<typeof SeparatorPrimitive.Root>): JSX.Element;
326
451
  /**
327
452
  * Skeleton Loading Component
328
453
  *
@@ -332,7 +457,7 @@ declare function Separator({ className, orientation, decorative, ...props }: rea
332
457
  * @design_specs
333
458
  * - Background: bg-accent (slate-100 in light mode, slate-800 in dark mode)
334
459
  * - Animation: animate-pulse with motion-reduce:animate-none (respects prefers-reduced-motion)
335
- * - Border-radius: 0px (rounded-none)
460
+ * - Border-radius: `rounded-md` by default; override per placeholder shape
336
461
  * - Contrast: 3:1 minimum for WCAG 1.4.11 (Non-text Contrast) compliance
337
462
  *
338
463
  * @accessibility
@@ -352,13 +477,13 @@ declare function Separator({ className, orientation, decorative, ...props }: rea
352
477
  *
353
478
  * **Avatar Skeleton:**
354
479
  * ```tsx
355
- * <Skeleton className="h-12 w-12 rounded-none" />
480
+ * <Skeleton className="h-12 w-12 rounded-md" />
356
481
  * ```
357
482
  *
358
483
  * **Card Skeleton:**
359
484
  * ```tsx
360
485
  * <div className="space-y-3">
361
- * <Skeleton className="h-[125px] w-[250px] rounded-none" />
486
+ * <Skeleton className="h-[125px] w-[250px] rounded-lg" />
362
487
  * <div className="space-y-2">
363
488
  * <Skeleton className="h-4 w-[250px]" />
364
489
  * <Skeleton className="h-4 w-[200px]" />
@@ -372,7 +497,7 @@ declare function Separator({ className, orientation, decorative, ...props }: rea
372
497
  * {isLoading ? (
373
498
  * <>
374
499
  * <span className="sr-only">Loading user profile...</span>
375
- * <Skeleton className="h-12 w-12 rounded-none" />
500
+ * <Skeleton className="h-12 w-12 rounded-md" />
376
501
  * <Skeleton className="h-4 w-[200px]" />
377
502
  * </>
378
503
  * ) : (
@@ -395,66 +520,76 @@ declare function Separator({ className, orientation, decorative, ...props }: rea
395
520
  *
396
521
  * @see {@link https://ui.shadcn.com/docs/components/skeleton shadcn/ui Skeleton}
397
522
  * @see {@link https://adrianroselli.com/2020/11/more-accessible-skeletons.html More Accessible Skeletons}
398
- */
399
- declare const Skeleton: react.ForwardRefExoticComponent<Omit<react.DetailedHTMLProps<react.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & react.RefAttributes<HTMLDivElement>>;
400
- type SkeletonProps = react.ComponentProps<"div">;
401
-
523
+ * @experimental
524
+ */
525
+ declare const Skeleton: React$1.ForwardRefExoticComponent<React$1.PropsWithoutRef<SkeletonProps> & React$1.RefAttributes<HTMLDivElement>>;
526
+ /** @experimental */
527
+ type SkeletonProps = React$1.ComponentProps<"div">;
528
+ /** The arms `progressVariants` is built from. Its type is read from them: {@link VariantsFn}. */
529
+ declare const PROGRESS_VARIANT_MAP: {
530
+ variant: {
531
+ default: string;
532
+ success: string;
533
+ error: string;
534
+ };
535
+ };
402
536
  /**
403
537
  * Progress variants using CVA
404
538
  *
405
539
  * Defines color variants for different progress states.
540
+ *
541
+ * @experimental
406
542
  */
407
- declare const progressVariants: (props?: ({
408
- variant?: "default" | "success" | "error" | null | undefined;
409
- } & class_variance_authority_types.ClassProp) | undefined) => string;
543
+ export declare const progressVariants: VariantsFn<typeof PROGRESS_VARIANT_MAP>;
410
544
  /**
411
545
  * Progress component props
546
+ * @experimental
412
547
  */
413
548
  type ProgressProps = {
414
- /**
415
- * Current progress value (0-100)
416
- *
417
- * @example
418
- * ```tsx
419
- * <Progress value={45} /> // 45% progress
420
- * ```
421
- */
422
- value: number;
423
- /**
424
- * Maximum value (default: 100)
425
- *
426
- * @example
427
- * ```tsx
428
- * <Progress value={30} max={50} /> // 60% progress (30/50)
429
- * ```
430
- */
431
- max?: number;
432
- /**
433
- * Visual variant for different states
434
- *
435
- * - `default`: Primary blue (bg-primary-500)
436
- * - `success`: Green (bg-green-500)
437
- * - `error`: Red (bg-destructive)
438
- *
439
- * @default "default"
440
- */
441
- variant?: VariantProps<typeof progressVariants>["variant"];
442
- /**
443
- * Optional CSS class name for custom styling
444
- */
445
- className?: string;
446
- /**
447
- * Optional ARIA label for screen readers
448
- *
449
- * If not provided, defaults to "Progress: X%"
450
- *
451
- * @example
452
- * ```tsx
453
- * <Progress value={45} aria-label="Uploading image.jpg: 45%" />
454
- * ```
455
- */
456
- "aria-label"?: string;
457
- } & react.HTMLAttributes<HTMLDivElement>;
549
+ /**
550
+ * Current progress value (0-100)
551
+ *
552
+ * @example
553
+ * ```tsx
554
+ * <Progress value={45} /> // 45% progress
555
+ * ```
556
+ */
557
+ value: number;
558
+ /**
559
+ * Maximum value (default: 100)
560
+ *
561
+ * @example
562
+ * ```tsx
563
+ * <Progress value={30} max={50} /> // 60% progress (30/50)
564
+ * ```
565
+ */
566
+ max?: number;
567
+ /**
568
+ * Visual variant for different states
569
+ *
570
+ * - `default`: Primary blue (bg-primary-500)
571
+ * - `success`: Green (bg-success-500)
572
+ * - `error`: Red (bg-destructive)
573
+ *
574
+ * @default "default"
575
+ */
576
+ variant?: VariantProps<typeof progressVariants>["variant"];
577
+ /**
578
+ * Optional CSS class name for custom styling
579
+ */
580
+ className?: string;
581
+ /**
582
+ * Optional ARIA label for screen readers
583
+ *
584
+ * If not provided, defaults to "Progress: X%"
585
+ *
586
+ * @example
587
+ * ```tsx
588
+ * <Progress value={45} aria-label="Uploading image.jpg: 45%" />
589
+ * ```
590
+ */
591
+ "aria-label"?: string;
592
+ } & React$1.HTMLAttributes<HTMLDivElement>;
458
593
  /**
459
594
  * Progress component
460
595
  *
@@ -476,57 +611,15 @@ type ProgressProps = {
476
611
  * );
477
612
  * }
478
613
  * ```
614
+ * @experimental
479
615
  */
480
- declare const Progress: react.ForwardRefExoticComponent<{
481
- /**
482
- * Current progress value (0-100)
483
- *
484
- * @example
485
- * ```tsx
486
- * <Progress value={45} /> // 45% progress
487
- * ```
488
- */
489
- value: number;
490
- /**
491
- * Maximum value (default: 100)
492
- *
493
- * @example
494
- * ```tsx
495
- * <Progress value={30} max={50} /> // 60% progress (30/50)
496
- * ```
497
- */
498
- max?: number;
499
- /**
500
- * Visual variant for different states
501
- *
502
- * - `default`: Primary blue (bg-primary-500)
503
- * - `success`: Green (bg-green-500)
504
- * - `error`: Red (bg-destructive)
505
- *
506
- * @default "default"
507
- */
508
- variant?: VariantProps<typeof progressVariants>["variant"];
509
- /**
510
- * Optional CSS class name for custom styling
511
- */
512
- className?: string;
513
- /**
514
- * Optional ARIA label for screen readers
515
- *
516
- * If not provided, defaults to "Progress: X%"
517
- *
518
- * @example
519
- * ```tsx
520
- * <Progress value={45} aria-label="Uploading image.jpg: 45%" />
521
- * ```
522
- */
523
- "aria-label"?: string;
524
- } & react.HTMLAttributes<HTMLDivElement> & react.RefAttributes<HTMLDivElement>>;
525
-
526
- declare const Checkbox: react.ForwardRefExoticComponent<Omit<CheckboxPrimitive.CheckboxProps & react.RefAttributes<HTMLButtonElement>, "ref"> & {
527
- indeterminate?: boolean;
528
- } & react.RefAttributes<HTMLButtonElement>>;
529
-
616
+ declare const Progress: React$1.ForwardRefExoticComponent<React$1.PropsWithoutRef<ProgressProps> & React$1.RefAttributes<HTMLDivElement>>;
617
+ type CheckboxProps = ComponentPropsWithoutRef<typeof CheckboxPrimitive.Root> & {
618
+ indeterminate?: boolean;
619
+ };
620
+ /** @public */
621
+ declare const Checkbox: ForwardRefExoticComponent<PropsWithoutRef<CheckboxProps> & RefAttributes<ElementRef<typeof CheckboxPrimitive.Root>>>;
622
+ type RadioGroupProps = ComponentPropsWithoutRef<typeof RadioGroupPrimitive.Root>;
530
623
  /**
531
624
  * RadioGroup Component - Design System Specification
532
625
  *
@@ -542,43 +635,70 @@ declare const Checkbox: react.ForwardRefExoticComponent<Omit<CheckboxPrimitive.C
542
635
  * Design Specs:
543
636
  * - Size: 16px (h-4 w-4) - Fixed size matching Checkbox
544
637
  * - Border: 1px solid, expands to 5px when checked (visual indicator)
545
- * - Border radius: Full (rounded-none)
638
+ * - Border radius: `rounded-full`. Round means "pick one" and square means
639
+ * "pick many"; a square radio would announce the wrong behaviour, so the
640
+ * shape is fixed and deliberately outside the `--radius` scale. Checkbox
641
+ * keeps the derived radius for the same reason.
546
642
  * - Transition: 150ms (consistent with design system)
547
643
  * - Focus ring: 2px ring with 2px offset
548
644
  *
549
645
  * Implementation Notes:
550
646
  * - Uses Radix UI primitives for robust accessibility
551
- * - Visual "checked" state achieved via border border-primary/5 expansion (border-[5px])
552
- * - No inner indicator needed - border border-primary/5 expansion provides clear visual feedback
553
- * - Hover state changes border border-primary/5 color for better interactivity
554
- */
555
- declare const RadioGroup: react.ForwardRefExoticComponent<Omit<RadioGroupPrimitive.RadioGroupProps & react.RefAttributes<HTMLDivElement>, "ref"> & react.RefAttributes<HTMLDivElement>>;
556
- declare const RadioGroupItem: react.ForwardRefExoticComponent<Omit<RadioGroupPrimitive.RadioGroupItemProps & react.RefAttributes<HTMLButtonElement>, "ref"> & react.RefAttributes<HTMLButtonElement>>;
557
-
558
- declare function Switch({ className, ...props }: ComponentProps<typeof Root$1>): react_jsx_runtime.JSX.Element;
559
-
560
- declare const Collapsible: react.ForwardRefExoticComponent<CollapsiblePrimitive.CollapsibleProps & react.RefAttributes<HTMLDivElement>>;
561
- declare const CollapsibleTrigger: react.ForwardRefExoticComponent<CollapsiblePrimitive.CollapsibleTriggerProps & react.RefAttributes<HTMLButtonElement>>;
562
- declare const CollapsibleContent: react.ForwardRefExoticComponent<CollapsiblePrimitive.CollapsibleContentProps & react.RefAttributes<HTMLDivElement>>;
563
-
647
+ * - Visual "checked" state achieved via border border-border expansion (border-[5px])
648
+ * - No inner indicator needed - border border-border expansion provides clear visual feedback
649
+ * - Hover state changes border border-border color for better interactivity
650
+ * @public
651
+ */
652
+ declare const RadioGroup: ForwardRefExoticComponent<PropsWithoutRef<RadioGroupProps> & RefAttributes<ElementRef<typeof RadioGroupPrimitive.Root>>>;
653
+ type RadioGroupItemProps = ComponentPropsWithoutRef<typeof RadioGroupPrimitive.Item>;
654
+ /** @public */
655
+ declare const RadioGroupItem: ForwardRefExoticComponent<PropsWithoutRef<RadioGroupItemProps> & RefAttributes<ElementRef<typeof RadioGroupPrimitive.Item>>>;
656
+ /**
657
+ * A pill track carrying a circular thumb is how a toggle is recognised, so both
658
+ * parts use `rounded-full` and stay outside the `--radius` scale: at any theme
659
+ * radius the switch must still read as a switch and not as a small checkbox.
660
+ * @public
661
+ */
662
+ declare function Switch({ className, ...props }: ComponentProps<typeof Root$2>): JSX.Element;
663
+ /** @experimental */
664
+ declare const Collapsible: typeof CollapsiblePrimitive.Root;
665
+ /** @experimental */
666
+ declare const CollapsibleTrigger: typeof CollapsiblePrimitive.CollapsibleTrigger;
667
+ /** @experimental */
668
+ declare const CollapsibleContent: typeof CollapsiblePrimitive.CollapsibleContent;
564
669
  /**
565
670
  * Props for the Accordion root component
566
671
  * @see https://www.radix-ui.com/primitives/docs/components/accordion
672
+ * @experimental
567
673
  */
568
- type AccordionProps = ComponentPropsWithoutRef<typeof Root$2>;
674
+ type AccordionProps = ComponentPropsWithoutRef<typeof Root$3>;
569
675
  /**
570
676
  * Props for the AccordionItem component (container for trigger and content)
677
+ * @experimental
571
678
  */
572
679
  type AccordionItemProps = ComponentPropsWithoutRef<typeof Item>;
680
+ /**
681
+ * Ref type for AccordionItem component
682
+ */
683
+ type AccordionItemRef = ElementRef<typeof Item>;
573
684
  /**
574
685
  * Props for the AccordionTrigger component (clickable header button)
686
+ * @experimental
687
+ */
688
+ type AccordionTriggerProps = ComponentPropsWithoutRef<typeof Trigger$1>;
689
+ /**
690
+ * Ref type for AccordionTrigger component
575
691
  */
576
- type AccordionTriggerProps = ComponentPropsWithoutRef<typeof Trigger>;
692
+ type AccordionTriggerRef = ElementRef<typeof Trigger$1>;
577
693
  /**
578
694
  * Props for the AccordionContent component (collapsible content panel)
695
+ * @experimental
579
696
  */
580
- type AccordionContentProps = ComponentPropsWithoutRef<typeof Content>;
581
-
697
+ type AccordionContentProps = ComponentPropsWithoutRef<typeof Content$1>;
698
+ /**
699
+ * Ref type for AccordionContent component
700
+ */
701
+ type AccordionContentRef = ElementRef<typeof Content$1>;
582
702
  /**
583
703
  * Accordion Component - Design System Specification
584
704
  *
@@ -586,7 +706,7 @@ type AccordionContentProps = ComponentPropsWithoutRef<typeof Content>;
586
706
  * Built on Radix UI primitives with WAI-ARIA compliance.
587
707
  *
588
708
  * Design Specs:
589
- * - AccordionItem border: 1px bottom border border-primary/5 (border-b)
709
+ * - AccordionItem border: 1px bottom border border-border (border-b)
590
710
  * - AccordionTrigger padding: 16px vertical (py-4)
591
711
  * - AccordionTrigger font: font-medium (500 weight)
592
712
  * - AccordionContent padding: 16px bottom, 0 top (pb-4 pt-0)
@@ -671,20 +791,22 @@ type AccordionContentProps = ComponentPropsWithoutRef<typeof Content>;
671
791
  * ```
672
792
  *
673
793
  * @see https://www.radix-ui.com/primitives/docs/components/accordion
794
+ * @experimental
674
795
  */
675
- declare const Accordion: react.ForwardRefExoticComponent<(AccordionPrimitive.AccordionSingleProps | AccordionPrimitive.AccordionMultipleProps) & react.RefAttributes<HTMLDivElement>>;
796
+ declare const Accordion: typeof AccordionPrimitive.Root;
676
797
  /**
677
798
  * AccordionItem - Container for trigger and content
678
799
  *
679
800
  * Design Specs:
680
- * - Border: 1px bottom border border-primary/5 (border-b) for visual separation
801
+ * - Border: 1px bottom border border-border (border-b) for visual separation
681
802
  * - Each item represents a collapsible section
682
803
  *
683
804
  * Accessibility:
684
805
  * - Each item requires a unique value prop for identification
685
806
  * - Disabled state can be set via disabled prop
807
+ * @experimental
686
808
  */
687
- declare const AccordionItem: react.ForwardRefExoticComponent<Omit<AccordionPrimitive.AccordionItemProps & react.RefAttributes<HTMLDivElement>, "ref"> & react.RefAttributes<HTMLDivElement>>;
809
+ declare const AccordionItem: ForwardRefExoticComponent<PropsWithoutRef<AccordionItemProps> & RefAttributes<AccordionItemRef>>;
688
810
  /**
689
811
  * AccordionTrigger - Clickable header button that toggles content visibility
690
812
  *
@@ -707,8 +829,9 @@ declare const AccordionItem: react.ForwardRefExoticComponent<Omit<AccordionPrimi
707
829
  * - The ChevronDown icon is included by default
708
830
  * - Icon rotates 180° when item is expanded ([data-state=open])
709
831
  * - Trigger includes AccordionPrimitive.Header wrapper for proper semantics
832
+ * @experimental
710
833
  */
711
- declare const AccordionTrigger: react.ForwardRefExoticComponent<Omit<AccordionPrimitive.AccordionTriggerProps & react.RefAttributes<HTMLButtonElement>, "ref"> & react.RefAttributes<HTMLButtonElement>>;
834
+ declare const AccordionTrigger: ForwardRefExoticComponent<PropsWithoutRef<AccordionTriggerProps> & RefAttributes<AccordionTriggerRef>>;
712
835
  /**
713
836
  * AccordionContent - Collapsible content panel
714
837
  *
@@ -728,9 +851,63 @@ declare const AccordionTrigger: react.ForwardRefExoticComponent<Omit<AccordionPr
728
851
  * - data-state="open": animate-accordion-down (Tailwind built-in)
729
852
  * - data-state="closed": animate-accordion-up (Tailwind built-in)
730
853
  * - Height transitions smoothly from 0 to auto
854
+ * @experimental
731
855
  */
732
- declare const AccordionContent: react.ForwardRefExoticComponent<Omit<AccordionPrimitive.AccordionContentProps & react.RefAttributes<HTMLDivElement>, "ref"> & react.RefAttributes<HTMLDivElement>>;
733
-
856
+ declare const AccordionContent: ForwardRefExoticComponent<PropsWithoutRef<AccordionContentProps> & RefAttributes<AccordionContentRef>>;
857
+ /**
858
+ * Avatar component props
859
+ *
860
+ * Root container for displaying user avatars with image and fallback support.
861
+ * Extends Radix UI Avatar.Root props with size variants.
862
+ * @experimental
863
+ */
864
+ type AvatarProps = ComponentPropsWithoutRef<"span"> & VariantProps<typeof avatarVariants> & {
865
+ /**
866
+ * Size variant
867
+ * - sm: 32px (h-8 w-8) - For compact layouts, lists
868
+ * - md: 40px (h-10 w-10) - Default size, general use
869
+ * - lg: 48px (h-12 w-12) - For prominent displays, profiles
870
+ * - xl: 64px (h-16 w-16) - For large profile displays, user panels
871
+ * - 2xl: 80px (h-20 w-20) - For profile headers, large avatars
872
+ * @default "md"
873
+ */
874
+ size?: "sm" | "md" | "lg" | "xl" | "2xl";
875
+ };
876
+ /**
877
+ * AvatarImage component props
878
+ *
879
+ * Displays the avatar image with proper fallback handling.
880
+ * Extends standard img element props.
881
+ *
882
+ * Note: Both src and alt are optional to support dynamic loading scenarios.
883
+ * When src is undefined/empty, the AvatarFallback will be displayed instead.
884
+ * @experimental
885
+ */
886
+ type AvatarImageProps = ComponentPropsWithoutRef<"img">;
887
+ /**
888
+ * AvatarFallback component props
889
+ *
890
+ * Displays fallback content (typically user initials) when image fails to load.
891
+ * Extends Radix UI Avatar.Fallback props.
892
+ * @experimental
893
+ */
894
+ type AvatarFallbackProps = ComponentPropsWithoutRef<"span"> & {
895
+ /**
896
+ * Delay in milliseconds before showing fallback
897
+ * @default 600
898
+ */
899
+ delayMs?: number;
900
+ };
901
+ /** The arms `avatarVariants` is built from. Its type is read from them: {@link VariantsFn}. */
902
+ declare const AVATAR_VARIANT_MAP: {
903
+ size: {
904
+ sm: string;
905
+ md: string;
906
+ lg: string;
907
+ xl: string;
908
+ "2xl": string;
909
+ };
910
+ };
734
911
  /**
735
912
  * Avatar Component - Design System Specification
736
913
  *
@@ -750,7 +927,9 @@ declare const AccordionContent: react.ForwardRefExoticComponent<Omit<AccordionPr
750
927
  * - 2xl: 80px (h-20 w-20) - For profile headers, large avatars
751
928
  *
752
929
  * **Design Specs**:
753
- * - Border radius: rounded-none (circular)
930
+ * - Border radius: `rounded-full`. A person's avatar is read as a circle, so it
931
+ * sits outside the `--radius` scale and stays circular at any theme radius.
932
+ * Non-identity content (media thumbnails) overrides back to a scale step.
754
933
  * - Background: bg-accent (slate-100 light, slate-800 dark)
755
934
  * - Text color: text-accent-foreground (slate-900 light, slate-100 dark)
756
935
  * - Fallback text scales with avatar size (text-xs to text-2xl)
@@ -790,22 +969,18 @@ declare const AccordionContent: react.ForwardRefExoticComponent<Omit<AccordionPr
790
969
  *
791
970
  * @see {@link https://www.radix-ui.com/primitives/docs/components/avatar Radix UI Avatar}
792
971
  * @see {@link https://github.com/nextlyhq/nextly/blob/main/ui-revamp/04-design-system-specification.md Design System Specification}
972
+ * @experimental
793
973
  */
794
- declare const avatarVariants: (props?: ({
795
- size?: "sm" | "md" | "lg" | "xl" | "2xl" | null | undefined;
796
- } & class_variance_authority_types.ClassProp) | undefined) => string;
974
+ export declare const avatarVariants: VariantsFn<typeof AVATAR_VARIANT_MAP>;
797
975
  /**
798
976
  * Avatar root component
799
977
  *
800
978
  * Container element for avatar image and fallback. Provides consistent sizing
801
979
  * and styling across the application. Uses React Context to pass size to
802
980
  * AvatarFallback for reliable text scaling.
981
+ * @experimental
803
982
  */
804
- declare const Avatar: react.ForwardRefExoticComponent<Omit<react.DetailedHTMLProps<react.HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, "ref"> & class_variance_authority.VariantProps<(props?: ({
805
- size?: "sm" | "md" | "lg" | "xl" | "2xl" | null | undefined;
806
- } & class_variance_authority_types.ClassProp) | undefined) => string> & {
807
- size?: "sm" | "md" | "lg" | "xl" | "2xl";
808
- } & react.RefAttributes<HTMLSpanElement>>;
983
+ declare const Avatar: ForwardRefExoticComponent<PropsWithoutRef<AvatarProps> & RefAttributes<HTMLSpanElement>>;
809
984
  /**
810
985
  * AvatarImage component
811
986
  *
@@ -819,8 +994,9 @@ declare const Avatar: react.ForwardRefExoticComponent<Omit<react.DetailedHTMLPro
819
994
  *
820
995
  * @example
821
996
  * <AvatarImage src="/users/john-doe.jpg" alt="John Doe" />
997
+ * @experimental
822
998
  */
823
- declare const AvatarImage: react.ForwardRefExoticComponent<Omit<react.DetailedHTMLProps<react.ImgHTMLAttributes<HTMLImageElement>, HTMLImageElement>, "ref"> & react.RefAttributes<HTMLImageElement>>;
999
+ declare const AvatarImage: ForwardRefExoticComponent<PropsWithoutRef<AvatarImageProps> & RefAttributes<HTMLImageElement>>;
824
1000
  /**
825
1001
  * AvatarFallback component
826
1002
  *
@@ -851,71 +1027,42 @@ declare const AvatarImage: react.ForwardRefExoticComponent<Omit<react.DetailedHT
851
1027
  * @example
852
1028
  * // Custom delay before showing fallback
853
1029
  * <AvatarFallback delayMs={300}>AB</AvatarFallback>
1030
+ * @experimental
854
1031
  */
855
- declare const AvatarFallback: react.ForwardRefExoticComponent<Omit<react.DetailedHTMLProps<react.HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, "ref"> & {
856
- delayMs?: number;
857
- } & react.RefAttributes<HTMLSpanElement>>;
858
-
1032
+ declare const AvatarFallback: ForwardRefExoticComponent<PropsWithoutRef<AvatarFallbackProps> & RefAttributes<HTMLSpanElement>>;
859
1033
  /**
860
- * Avatar component props
861
- *
862
- * Root container for displaying user avatars with image and fallback support.
863
- * Extends Radix UI Avatar.Root props with size variants.
1034
+ * Props for the Tabs root component
1035
+ * @see https://www.radix-ui.com/primitives/docs/components/tabs
1036
+ * @public
864
1037
  */
865
- type AvatarProps = ComponentPropsWithoutRef<"span"> & VariantProps<typeof avatarVariants> & {
866
- /**
867
- * Size variant
868
- * - sm: 32px (h-8 w-8) - For compact layouts, lists
869
- * - md: 40px (h-10 w-10) - Default size, general use
870
- * - lg: 48px (h-12 w-12) - For prominent displays, profiles
871
- * - xl: 64px (h-16 w-16) - For large profile displays, user panels
872
- * - 2xl: 80px (h-20 w-20) - For profile headers, large avatars
873
- * @default "md"
874
- */
875
- size?: "sm" | "md" | "lg" | "xl" | "2xl";
876
- };
1038
+ type TabsProps = ComponentPropsWithoutRef<typeof Root$4>;
877
1039
  /**
878
- * AvatarImage component props
879
- *
880
- * Displays the avatar image with proper fallback handling.
881
- * Extends standard img element props.
882
- *
883
- * Note: Both src and alt are optional to support dynamic loading scenarios.
884
- * When src is undefined/empty, the AvatarFallback will be displayed instead.
1040
+ * Props for the TabsList component (container for tab triggers)
1041
+ * @public
885
1042
  */
886
- type AvatarImageProps = ComponentPropsWithoutRef<"img">;
1043
+ type TabsListProps$1 = ComponentPropsWithoutRef<typeof List>;
887
1044
  /**
888
- * AvatarFallback component props
889
- *
890
- * Displays fallback content (typically user initials) when image fails to load.
891
- * Extends Radix UI Avatar.Fallback props.
1045
+ * Ref type for TabsList component
892
1046
  */
893
- type AvatarFallbackProps = ComponentPropsWithoutRef<"span"> & {
894
- /**
895
- * Delay in milliseconds before showing fallback
896
- * @default 600
897
- */
898
- delayMs?: number;
899
- };
900
-
1047
+ type TabsListRef = ElementRef<typeof List>;
901
1048
  /**
902
- * Props for the Tabs root component
903
- * @see https://www.radix-ui.com/primitives/docs/components/tabs
1049
+ * Props for the TabsTrigger component (clickable tab button)
1050
+ * @public
904
1051
  */
905
- type TabsProps = ComponentPropsWithoutRef<typeof Root$3>;
1052
+ type TabsTriggerProps$1 = ComponentPropsWithoutRef<typeof Trigger$2>;
906
1053
  /**
907
- * Props for the TabsList component (container for tab triggers)
1054
+ * Ref type for TabsTrigger component
908
1055
  */
909
- type TabsListProps = ComponentPropsWithoutRef<typeof List>;
1056
+ type TabsTriggerRef = ElementRef<typeof Trigger$2>;
910
1057
  /**
911
- * Props for the TabsTrigger component (clickable tab button)
1058
+ * Props for the TabsContent component (content panel for each tab)
1059
+ * @public
912
1060
  */
913
- type TabsTriggerProps = ComponentPropsWithoutRef<typeof Trigger$1>;
1061
+ type TabsContentProps = ComponentPropsWithoutRef<typeof Content$2>;
914
1062
  /**
915
- * Props for the TabsContent component (content panel for each tab)
1063
+ * Ref type for TabsContent component
916
1064
  */
917
- type TabsContentProps = ComponentPropsWithoutRef<typeof Content$1>;
918
-
1065
+ type TabsContentRef = ElementRef<typeof Content$2>;
919
1066
  /**
920
1067
  * Tabs Component - Design System Specification
921
1068
  *
@@ -923,8 +1070,9 @@ type TabsContentProps = ComponentPropsWithoutRef<typeof Content$1>;
923
1070
  * Built on Radix UI primitives with WAI-ARIA compliance.
924
1071
  *
925
1072
  * Design Specs:
926
- * - TabsList border-radius: 0px (rounded-none)
927
- * - TabsTrigger border-radius: 0px (rounded-none)
1073
+ * - TabsList border-radius: square, independent of `--radius`
1074
+ * - TabsTrigger border-radius: square, independent of `--radius`; the active
1075
+ * state is a 2px bottom border that has to stay flush with the tab edges
928
1076
  * - TabsList height: 40px (h-10)
929
1077
  * - TabsTrigger padding: 12px 24px (px-3 py-1.5)
930
1078
  * - Transition duration: 150ms (design system standard)
@@ -992,8 +1140,66 @@ type TabsContentProps = ComponentPropsWithoutRef<typeof Content$1>;
992
1140
  * ```
993
1141
  *
994
1142
  * @see https://www.radix-ui.com/primitives/docs/components/tabs
1143
+ * @public
1144
+ */
1145
+ declare const Tabs: typeof Root$4;
1146
+ /**
1147
+ * The list's own appearance, as variants rather than as classes each caller
1148
+ * repeats.
1149
+ *
1150
+ * `ghost` is the compact, surface-less list used where tabs sit inside another
1151
+ * panel and must not draw a bar of their own. It was spelled `h-8 bg-transparent
1152
+ * p-0` at one call site and `h-7 bg-transparent p-0` at another; naming it here
1153
+ * settles the height rather than leaving two answers in the tree.
1154
+ *
1155
+ * Only APPEARANCE is promoted. Layout a caller chooses -- `w-full`,
1156
+ * `justify-start`, margins -- stays on `className`, because a variant names a
1157
+ * decision this component owns and layout is the caller's.
1158
+ *
1159
+ * Horizontal SCROLLING is the exception, and it moved to the `scrollable` prop
1160
+ * for a reason rather than as tidying: a caller putting `overflow-x-auto` on the
1161
+ * list makes the list itself the scroll container, which breaks the rail
1162
+ * contract this file's other half depends on. See that prop.
1163
+ *
1164
+ * The arms are a named declaration rather than an object literal inside `cva`,
1165
+ * because `cva` does not expose its configuration on the function it returns —
1166
+ * so anything checking which arms exist would otherwise have to restate them,
1167
+ * and the two drift the moment an arm is added.
995
1168
  */
996
- declare const Tabs: react.ForwardRefExoticComponent<_radix_ui_react_tabs.TabsProps & react.RefAttributes<HTMLDivElement>>;
1169
+ declare const TABS_LIST_VARIANTS: {
1170
+ readonly default: "h-10";
1171
+ readonly ghost: "h-8 bg-transparent";
1172
+ };
1173
+ /** The arms `tabsListVariants` is built from. Its type is read from them: {@link VariantsFn}. */
1174
+ declare const TABS_LIST_VARIANT_MAP: {
1175
+ variant: typeof TABS_LIST_VARIANTS;
1176
+ };
1177
+ declare const tabsListVariants: VariantsFn<typeof TABS_LIST_VARIANT_MAP>;
1178
+ /** What `TabsList` is declared to take. `TabsListProps`, below, is read back from the component. */
1179
+ type TabsListOwnProps = TabsListProps$1 & VariantProps<typeof tabsListVariants> & {
1180
+ /**
1181
+ * Let a strip too wide for its container scroll sideways.
1182
+ *
1183
+ * The scroll container is a WRAPPER, never the list, and that is why this
1184
+ * prop exists rather than callers reaching for `overflow-x-auto`
1185
+ * themselves. Two things go wrong when the list is the scroller, and the
1186
+ * second is why the obvious remedy is also wrong:
1187
+ *
1188
+ * - Per the CSS overflow rules, `visible` computes to `auto` when the
1189
+ * other axis is neither `visible` nor `clip`, so `overflow-x` alone
1190
+ * always makes the element a VERTICAL scroll container too.
1191
+ * - `TabsTrigger` carries `-mb-0.5` so its 2px underline lands ON this
1192
+ * list's rail rather than below it. That pull-up puts content past the
1193
+ * content-box edge, which the new scroll container reports as vertical
1194
+ * overflow — so `overflow-y-hidden` would clip the 2px the underline is
1195
+ * made of, silencing a scrollbar by deleting the indicator.
1196
+ *
1197
+ * With the wrapper scrolling instead, the list keeps its rail and
1198
+ * `w-max min-w-full` makes that rail span the full scroll width rather
1199
+ * than stopping where the triggers do.
1200
+ */
1201
+ scrollable?: boolean;
1202
+ };
997
1203
  /**
998
1204
  * TabsList - Container for tab triggers
999
1205
  *
@@ -1002,8 +1208,29 @@ declare const Tabs: react.ForwardRefExoticComponent<_radix_ui_react_tabs.TabsPro
1002
1208
  * - Border-radius: none (for underline style)
1003
1209
  * - Background: transparent
1004
1210
  * - Layout: inline-flex (horizontal by default, use orientation="vertical" on Tabs root for vertical)
1211
+ * @public
1005
1212
  */
1006
- declare const TabsList: react.ForwardRefExoticComponent<Omit<_radix_ui_react_tabs.TabsListProps & react.RefAttributes<HTMLDivElement>, "ref"> & react.RefAttributes<HTMLDivElement>>;
1213
+ declare const TabsList: ForwardRefExoticComponent<PropsWithoutRef<TabsListOwnProps> & RefAttributes<TabsListRef>>;
1214
+ /**
1215
+ * The trigger's own appearance. `size` carries the type scale only: everything
1216
+ * that draws the tab -- the square corners, the 2px underline, the active and
1217
+ * hover colours, the focus ring -- is in the base and is not a caller's to
1218
+ * choose, which is the property the `tab-indicator` lint rule
1219
+ * (`lint/tab-indicator`) holds every call site to.
1220
+ *
1221
+ * Arms declared separately for the same reason as the list's.
1222
+ */
1223
+ declare const TABS_TRIGGER_SIZES: {
1224
+ readonly default: "text-sm";
1225
+ readonly sm: "text-xs";
1226
+ };
1227
+ /** The arms `tabsTriggerVariants` is built from. Its type is read from them: {@link VariantsFn}. */
1228
+ declare const TABS_TRIGGER_VARIANT_MAP: {
1229
+ size: typeof TABS_TRIGGER_SIZES;
1230
+ };
1231
+ declare const tabsTriggerVariants: VariantsFn<typeof TABS_TRIGGER_VARIANT_MAP>;
1232
+ /** What `TabsTrigger` is declared to take. `TabsTriggerProps`, below, is read back from the component. */
1233
+ type TabsTriggerOwnProps = TabsTriggerProps$1 & VariantProps<typeof tabsTriggerVariants>;
1007
1234
  /**
1008
1235
  * TabsTrigger - Clickable tab button
1009
1236
  *
@@ -1012,8 +1239,8 @@ declare const TabsList: react.ForwardRefExoticComponent<Omit<_radix_ui_react_tab
1012
1239
  * - Padding: 6px 16px (px-4 py-2)
1013
1240
  * - Font: text-sm (14px), font-medium (500)
1014
1241
  * - Transition: 150ms (design system standard)
1015
- * - Active state: blue text with blue bottom border border-primary/5 (2px)
1016
- * - Hover: blue text with blue bottom border border-primary/5
1242
+ * - Active state: the accent colour on the text and on the 2px trailing border
1243
+ * - Hover: the same accent, so the target reads before it is chosen
1017
1244
  * - Gmail-inspired clean underline style
1018
1245
  *
1019
1246
  * Accessibility:
@@ -1021,8 +1248,9 @@ declare const TabsList: react.ForwardRefExoticComponent<Omit<_radix_ui_react_tab
1021
1248
  * - Focus ring: 2px with offset (WCAG 2.2 compliant)
1022
1249
  * - Disabled state: pointer-events-none, opacity-50
1023
1250
  * - Data attributes: [data-state="active|inactive"], [data-disabled]
1251
+ * @public
1024
1252
  */
1025
- declare const TabsTrigger: react.ForwardRefExoticComponent<Omit<_radix_ui_react_tabs.TabsTriggerProps & react.RefAttributes<HTMLButtonElement>, "ref"> & react.RefAttributes<HTMLButtonElement>>;
1253
+ declare const TabsTrigger: ForwardRefExoticComponent<PropsWithoutRef<TabsTriggerOwnProps> & RefAttributes<TabsTriggerRef>>;
1026
1254
  /**
1027
1255
  * TabsContent - Content panel for each tab
1028
1256
  *
@@ -1034,19 +1262,46 @@ declare const TabsTrigger: react.ForwardRefExoticComponent<Omit<_radix_ui_react_
1034
1262
  * - Focus indicator when navigating with Tab key
1035
1263
  * - Data attributes: [data-state="active|inactive"], [data-orientation]
1036
1264
  * - Only active content is visible, inactive content is hidden
1037
- */
1038
- declare const TabsContent: react.ForwardRefExoticComponent<Omit<_radix_ui_react_tabs.TabsContentProps & react.RefAttributes<HTMLDivElement>, "ref"> & react.RefAttributes<HTMLDivElement>>;
1039
-
1040
- declare const TooltipProvider: react.FC<_radix_ui_react_tooltip.TooltipProviderProps>;
1041
- declare const Tooltip: react.FC<_radix_ui_react_tooltip.TooltipProps>;
1042
- declare const TooltipTrigger: react.ForwardRefExoticComponent<_radix_ui_react_tooltip.TooltipTriggerProps & react.RefAttributes<HTMLButtonElement>>;
1043
- declare const TooltipContent: react.ForwardRefExoticComponent<Omit<_radix_ui_react_tooltip.TooltipContentProps & react.RefAttributes<HTMLDivElement>, "ref"> & react.RefAttributes<HTMLDivElement>>;
1044
-
1045
- declare const Popover: react.FC<PopoverPrimitive.PopoverProps>;
1046
- declare const PopoverTrigger: react.ForwardRefExoticComponent<PopoverPrimitive.PopoverTriggerProps & react.RefAttributes<HTMLButtonElement>>;
1047
- declare const PopoverAnchor: react.ForwardRefExoticComponent<PopoverPrimitive.PopoverAnchorProps & react.RefAttributes<HTMLDivElement>>;
1048
- declare const PopoverContent: react.ForwardRefExoticComponent<Omit<PopoverPrimitive.PopoverContentProps & react.RefAttributes<HTMLDivElement>, "ref"> & react.RefAttributes<HTMLDivElement>>;
1049
-
1265
+ * @public
1266
+ */
1267
+ declare const TabsContent: ForwardRefExoticComponent<PropsWithoutRef<TabsContentProps> & RefAttributes<TabsContentRef>>;
1268
+ /**
1269
+ * The public prop types, DERIVED from the components rather than restated.
1270
+ *
1271
+ * `../types/tabs` describes the Radix props alone, so an alias taken from there
1272
+ * rejects `variant` and `size` — and a consumer typing a wrapper around
1273
+ * `TabsList` would be told the prop it can see in the signature does not exist.
1274
+ * Reading the component's own props keeps the two from drifting: a variant
1275
+ * added later reaches every consumer without a second edit.
1276
+ */
1277
+ /**
1278
+ * The list's props, including its `variant`.
1279
+ * @public
1280
+ */
1281
+ type TabsListProps = ComponentPropsWithoutRef<typeof TabsList>;
1282
+ /**
1283
+ * The trigger's props, including its `size`.
1284
+ * @public
1285
+ */
1286
+ type TabsTriggerProps = ComponentPropsWithoutRef<typeof TabsTrigger>;
1287
+ /** @experimental */
1288
+ declare const TooltipProvider: typeof Provider;
1289
+ /** @public */
1290
+ declare const Tooltip: typeof Root$1;
1291
+ /** @public */
1292
+ declare const TooltipTrigger: typeof Trigger;
1293
+ type TooltipContentProps = React.ComponentPropsWithoutRef<typeof Content>;
1294
+ /** @public */
1295
+ declare const TooltipContent: ForwardRefExoticComponent<PropsWithoutRef<TooltipContentProps> & RefAttributes<React.ElementRef<typeof Content>>>;
1296
+ /** @experimental */
1297
+ declare const Popover: typeof PopoverPrimitive.Root;
1298
+ /** @experimental */
1299
+ declare const PopoverTrigger: typeof PopoverPrimitive.Trigger;
1300
+ /** @experimental */
1301
+ declare const PopoverAnchor: typeof PopoverPrimitive.Anchor;
1302
+ type PopoverContentProps = React$1.ComponentPropsWithoutRef<typeof PopoverPrimitive.Content>;
1303
+ /** @experimental */
1304
+ declare const PopoverContent: React$1.ForwardRefExoticComponent<React$1.PropsWithoutRef<PopoverContentProps> & React$1.RefAttributes<React$1.ElementRef<typeof PopoverPrimitive.Content>>>;
1050
1305
  /**
1051
1306
  * Dialog (Modal) Component
1052
1307
  *
@@ -1078,9 +1333,9 @@ declare const PopoverContent: react.ForwardRefExoticComponent<Omit<PopoverPrimit
1078
1333
  * ```
1079
1334
  *
1080
1335
  * @design-spec
1081
- * - Border-radius: 0px (rounded-none) per design system spec
1336
+ * - Border-radius: `rounded-lg`, the container step of the `--radius` scale
1082
1337
  * - Max-width: 512px (default), responsive sizes available
1083
- * - Backdrop: black/80 with blur effect
1338
+ * - Backdrop: the `--nx-overlay` scrim with blur effect
1084
1339
  * - Padding: 24px (p-6)
1085
1340
  * - Shadow: xl for prominence (elevation level 4)
1086
1341
  * - Transition: 150ms per design system
@@ -1093,17 +1348,34 @@ declare const PopoverContent: react.ForwardRefExoticComponent<Omit<PopoverPrimit
1093
1348
  * - Includes ARIA labels and descriptions
1094
1349
  * - Screen reader announcements via role="dialog"
1095
1350
  * - Close button has sr-only text for screen readers
1096
- */
1097
- declare const Dialog: react.FC<DialogPrimitive.DialogProps>;
1098
- declare const DialogTrigger: react.ForwardRefExoticComponent<DialogPrimitive.DialogTriggerProps & react.RefAttributes<HTMLButtonElement>>;
1099
- declare const DialogPortal: react.FC<DialogPrimitive.DialogPortalProps>;
1100
- declare const DialogClose: react.ForwardRefExoticComponent<DialogPrimitive.DialogCloseProps & react.RefAttributes<HTMLButtonElement>>;
1351
+ * @public
1352
+ */
1353
+ declare const Dialog: typeof DialogPrimitive.Root;
1354
+ /** @experimental */
1355
+ declare const DialogTrigger: typeof DialogPrimitive.Trigger;
1356
+ /** @experimental */
1357
+ declare const DialogPortal: typeof DialogPrimitive.Portal;
1358
+ /** @experimental */
1359
+ declare const DialogClose: typeof DialogPrimitive.Close;
1360
+ /** @experimental */
1101
1361
  type DialogOverlayProps = ComponentPropsWithoutRef<typeof DialogPrimitive.Overlay>;
1102
1362
  /**
1103
1363
  * DialogOverlay - The backdrop overlay behind the dialog content.
1104
- * Renders with black/80 opacity and blur effect per design spec.
1105
- */
1106
- declare const DialogOverlay: react.ForwardRefExoticComponent<Omit<DialogPrimitive.DialogOverlayProps & react.RefAttributes<HTMLDivElement>, "ref"> & react.RefAttributes<HTMLDivElement>>;
1364
+ * Renders the `--nx-overlay` scrim with a blur effect. The opacity is the
1365
+ * token's, not a literal: it differs by mode and a host can retheme it.
1366
+ * @experimental
1367
+ */
1368
+ declare const DialogOverlay: ForwardRefExoticComponent<PropsWithoutRef<DialogOverlayProps> & RefAttributes<ElementRef<typeof DialogPrimitive.Overlay>>>;
1369
+ /** The arms `dialogContentVariants` is built from. Its type is read from them: {@link VariantsFn}. */
1370
+ declare const DIALOG_CONTENT_VARIANT_MAP: {
1371
+ size: {
1372
+ sm: string;
1373
+ md: string;
1374
+ lg: string;
1375
+ xl: string;
1376
+ full: string;
1377
+ };
1378
+ };
1107
1379
  /**
1108
1380
  * Dialog content size variants using CVA.
1109
1381
  *
@@ -1112,10 +1384,10 @@ declare const DialogOverlay: react.ForwardRefExoticComponent<Omit<DialogPrimitiv
1112
1384
  * @variant lg - Large dialog (672px / max-w-2xl) - complex forms, data tables
1113
1385
  * @variant xl - Extra large dialog (896px / max-w-4xl) - content editors, media galleries
1114
1386
  * @variant full - Full width with margin (responsive) - fullscreen on mobile
1387
+ * @experimental
1115
1388
  */
1116
- declare const dialogContentVariants: (props?: ({
1117
- size?: "sm" | "md" | "lg" | "xl" | "full" | null | undefined;
1118
- } & class_variance_authority_types.ClassProp) | undefined) => string;
1389
+ declare const dialogContentVariants: VariantsFn<typeof DIALOG_CONTENT_VARIANT_MAP>;
1390
+ /** @public */
1119
1391
  type DialogContentProps = ComponentPropsWithoutRef<typeof DialogPrimitive.Content> & VariantProps<typeof dialogContentVariants>;
1120
1392
  /**
1121
1393
  * DialogContent - The main dialog content container.
@@ -1128,16 +1400,18 @@ type DialogContentProps = ComponentPropsWithoutRef<typeof DialogPrimitive.Conten
1128
1400
  * Your content here
1129
1401
  * </DialogContent>
1130
1402
  * ```
1403
+ * @public
1131
1404
  */
1132
- declare const DialogContent: react.ForwardRefExoticComponent<Omit<DialogPrimitive.DialogContentProps & react.RefAttributes<HTMLDivElement>, "ref"> & VariantProps<(props?: ({
1133
- size?: "sm" | "md" | "lg" | "xl" | "full" | null | undefined;
1134
- } & class_variance_authority_types.ClassProp) | undefined) => string> & react.RefAttributes<HTMLDivElement>>;
1405
+ declare const DialogContent: ForwardRefExoticComponent<PropsWithoutRef<DialogContentProps> & RefAttributes<ElementRef<typeof DialogPrimitive.Content>>>;
1406
+ /** @public */
1135
1407
  type DialogHeaderProps = HTMLAttributes<HTMLDivElement>;
1136
1408
  /**
1137
1409
  * DialogHeader - Container for dialog title and description.
1138
1410
  * Provides consistent spacing and alignment (centered on mobile, left-aligned on desktop).
1411
+ * @public
1139
1412
  */
1140
- declare const DialogHeader: react.ForwardRefExoticComponent<DialogHeaderProps & react.RefAttributes<HTMLDivElement>>;
1413
+ declare const DialogHeader: ForwardRefExoticComponent<PropsWithoutRef<DialogHeaderProps> & RefAttributes<HTMLDivElement>>;
1414
+ /** @public */
1141
1415
  type DialogFooterProps = HTMLAttributes<HTMLDivElement>;
1142
1416
  /**
1143
1417
  * DialogFooter - Container for dialog action buttons.
@@ -1150,16 +1424,20 @@ type DialogFooterProps = HTMLAttributes<HTMLDivElement>;
1150
1424
  * <Button type="submit">Save Changes</Button>
1151
1425
  * </DialogFooter>
1152
1426
  * ```
1427
+ * @public
1153
1428
  */
1154
- declare const DialogFooter: react.ForwardRefExoticComponent<DialogFooterProps & react.RefAttributes<HTMLDivElement>>;
1429
+ declare const DialogFooter: ForwardRefExoticComponent<PropsWithoutRef<DialogFooterProps> & RefAttributes<HTMLDivElement>>;
1430
+ /** @public */
1155
1431
  type DialogTitleProps = ComponentPropsWithoutRef<typeof DialogPrimitive.Title>;
1156
1432
  /**
1157
1433
  * DialogTitle - The title of the dialog.
1158
1434
  * Uses text-lg (18px) with semibold weight per design system.
1159
1435
  *
1160
1436
  * @accessibility Required for screen readers. Always include a DialogTitle.
1437
+ * @public
1161
1438
  */
1162
- declare const DialogTitle: react.ForwardRefExoticComponent<Omit<DialogPrimitive.DialogTitleProps & react.RefAttributes<HTMLHeadingElement>, "ref"> & react.RefAttributes<HTMLHeadingElement>>;
1439
+ declare const DialogTitle: ForwardRefExoticComponent<PropsWithoutRef<DialogTitleProps> & RefAttributes<ElementRef<typeof DialogPrimitive.Title>>>;
1440
+ /** @public */
1163
1441
  type DialogDescriptionProps = ComponentPropsWithoutRef<typeof DialogPrimitive.Description>;
1164
1442
  /**
1165
1443
  * DialogDescription - The description text of the dialog.
@@ -1167,225 +1445,178 @@ type DialogDescriptionProps = ComponentPropsWithoutRef<typeof DialogPrimitive.De
1167
1445
  *
1168
1446
  * @accessibility Provides additional context for screen readers.
1169
1447
  * If not needed visually, you can use sr-only class.
1170
- */
1171
- declare const DialogDescription: react.ForwardRefExoticComponent<Omit<DialogPrimitive.DialogDescriptionProps & react.RefAttributes<HTMLParagraphElement>, "ref"> & react.RefAttributes<HTMLParagraphElement>>;
1172
-
1173
- declare const AlertDialog: react.FC<AlertDialogPrimitive.AlertDialogProps>;
1174
- declare const AlertDialogTrigger: react.ForwardRefExoticComponent<AlertDialogPrimitive.AlertDialogTriggerProps & react.RefAttributes<HTMLButtonElement>>;
1175
- declare const AlertDialogPortal: react.FC<AlertDialogPrimitive.AlertDialogPortalProps>;
1448
+ * @public
1449
+ */
1450
+ declare const DialogDescription: ForwardRefExoticComponent<PropsWithoutRef<DialogDescriptionProps> & RefAttributes<ElementRef<typeof DialogPrimitive.Description>>>;
1451
+ /** @experimental */
1452
+ declare const AlertDialog: typeof AlertDialogPrimitive.Root;
1453
+ /** @experimental */
1454
+ declare const AlertDialogTrigger: typeof AlertDialogPrimitive.Trigger;
1455
+ /** @experimental */
1456
+ declare const AlertDialogPortal: typeof AlertDialogPrimitive.Portal;
1457
+ /** @experimental */
1176
1458
  type AlertDialogOverlayProps = ComponentPropsWithoutRef<typeof AlertDialogPrimitive.Overlay>;
1177
1459
  /**
1178
1460
  * AlertDialogOverlay - The backdrop overlay behind the dialog content.
1461
+ * @experimental
1179
1462
  */
1180
- declare const AlertDialogOverlay: react.ForwardRefExoticComponent<Omit<AlertDialogPrimitive.AlertDialogOverlayProps & react.RefAttributes<HTMLDivElement>, "ref"> & react.RefAttributes<HTMLDivElement>>;
1463
+ declare const AlertDialogOverlay: ForwardRefExoticComponent<PropsWithoutRef<AlertDialogOverlayProps> & RefAttributes<ElementRef<typeof AlertDialogPrimitive.Overlay>>>;
1464
+ /** @experimental */
1181
1465
  type AlertDialogContentProps = ComponentPropsWithoutRef<typeof AlertDialogPrimitive.Content>;
1182
1466
  /**
1183
1467
  * AlertDialogContent - The main dialog content container.
1468
+ * @experimental
1184
1469
  */
1185
- declare const AlertDialogContent: react.ForwardRefExoticComponent<Omit<AlertDialogPrimitive.AlertDialogContentProps & react.RefAttributes<HTMLDivElement>, "ref"> & react.RefAttributes<HTMLDivElement>>;
1470
+ declare const AlertDialogContent: ForwardRefExoticComponent<PropsWithoutRef<AlertDialogContentProps> & RefAttributes<ElementRef<typeof AlertDialogPrimitive.Content>>>;
1471
+ /** @experimental */
1186
1472
  type AlertDialogHeaderProps = HTMLAttributes<HTMLDivElement>;
1187
1473
  /**
1188
1474
  * AlertDialogHeader - Container for dialog title and description.
1475
+ * @experimental
1189
1476
  */
1190
- declare const AlertDialogHeader: react.ForwardRefExoticComponent<AlertDialogHeaderProps & react.RefAttributes<HTMLDivElement>>;
1477
+ declare const AlertDialogHeader: ForwardRefExoticComponent<PropsWithoutRef<AlertDialogHeaderProps> & RefAttributes<HTMLDivElement>>;
1478
+ /** @experimental */
1191
1479
  type AlertDialogFooterProps = HTMLAttributes<HTMLDivElement>;
1192
1480
  /**
1193
1481
  * AlertDialogFooter - Container for dialog action buttons.
1482
+ * @experimental
1194
1483
  */
1195
- declare const AlertDialogFooter: react.ForwardRefExoticComponent<AlertDialogFooterProps & react.RefAttributes<HTMLDivElement>>;
1484
+ declare const AlertDialogFooter: ForwardRefExoticComponent<PropsWithoutRef<AlertDialogFooterProps> & RefAttributes<HTMLDivElement>>;
1485
+ /** @experimental */
1196
1486
  type AlertDialogTitleProps = ComponentPropsWithoutRef<typeof AlertDialogPrimitive.Title>;
1197
1487
  /**
1198
1488
  * AlertDialogTitle - The title of the alert dialog.
1489
+ * @experimental
1199
1490
  */
1200
- declare const AlertDialogTitle: react.ForwardRefExoticComponent<Omit<AlertDialogPrimitive.AlertDialogTitleProps & react.RefAttributes<HTMLHeadingElement>, "ref"> & react.RefAttributes<HTMLHeadingElement>>;
1491
+ declare const AlertDialogTitle: ForwardRefExoticComponent<PropsWithoutRef<AlertDialogTitleProps> & RefAttributes<ElementRef<typeof AlertDialogPrimitive.Title>>>;
1492
+ /** @experimental */
1201
1493
  type AlertDialogDescriptionProps = ComponentPropsWithoutRef<typeof AlertDialogPrimitive.Description>;
1202
1494
  /**
1203
1495
  * AlertDialogDescription - The description text of the alert dialog.
1496
+ * @experimental
1204
1497
  */
1205
- declare const AlertDialogDescription: react.ForwardRefExoticComponent<Omit<AlertDialogPrimitive.AlertDialogDescriptionProps & react.RefAttributes<HTMLParagraphElement>, "ref"> & react.RefAttributes<HTMLParagraphElement>>;
1498
+ declare const AlertDialogDescription: ForwardRefExoticComponent<PropsWithoutRef<AlertDialogDescriptionProps> & RefAttributes<ElementRef<typeof AlertDialogPrimitive.Description>>>;
1499
+ /** @experimental */
1206
1500
  type AlertDialogActionProps = ComponentPropsWithoutRef<typeof AlertDialogPrimitive.Action>;
1207
1501
  /**
1208
1502
  * AlertDialogAction - The primary action button (e.g., "Delete", "Confirm").
1209
1503
  * Styled as destructive by default.
1504
+ * @experimental
1210
1505
  */
1211
- declare const AlertDialogAction: react.ForwardRefExoticComponent<Omit<AlertDialogPrimitive.AlertDialogActionProps & react.RefAttributes<HTMLButtonElement>, "ref"> & react.RefAttributes<HTMLButtonElement>>;
1506
+ declare const AlertDialogAction: ForwardRefExoticComponent<PropsWithoutRef<AlertDialogActionProps> & RefAttributes<ElementRef<typeof AlertDialogPrimitive.Action>>>;
1507
+ /** @experimental */
1212
1508
  type AlertDialogCancelProps = ComponentPropsWithoutRef<typeof AlertDialogPrimitive.Cancel>;
1213
1509
  /**
1214
1510
  * AlertDialogCancel - The cancel button.
1215
1511
  * Styled as outline variant.
1216
- */
1217
- declare const AlertDialogCancel: react.ForwardRefExoticComponent<Omit<AlertDialogPrimitive.AlertDialogCancelProps & react.RefAttributes<HTMLButtonElement>, "ref"> & react.RefAttributes<HTMLButtonElement>>;
1218
-
1219
- /**
1220
- * DropdownMenu Component
1221
- *
1222
- * A composable dropdown menu component built on Radix UI primitives.
1223
- * Provides context menus, action menus, and navigation menus with full keyboard support.
1224
- *
1225
- * **Design Specifications**:
1226
- * - Border-radius: 0px (rounded-none) - consistent with Dialog, Select
1227
- * - Padding: 4px (p-1) - compact spacing for menu items
1228
- * - Shadow: shadow-md - floating element elevation
1229
- * - Z-index: z-50 - above most content, below modals
1230
- * - Min-width: 8rem (128px) - prevents cramped menus
1231
- * - Item padding: 8px horizontal, 6px vertical (px-2 py-1.5)
1232
- * - Font-size: 14px (text-sm)
1233
- * - Transition: Tailwind animate utilities (fade, zoom, slide)
1234
- *
1235
- * **Accessibility**:
1236
- * - Full keyboard navigation (Arrow keys, Enter, Escape, Tab)
1237
- * - ARIA roles and attributes (menu, menuitem, menuitemcheckbox, menuitemradio)
1238
- * - Focus management (focus trap, auto-focus first item)
1239
- * - Screen reader support (labels, descriptions, indicators)
1240
- * - WCAG 2.2 Level AA compliant
1241
- *
1242
- * **Features**:
1243
- * - Portal rendering via PortalProvider for proper z-index stacking
1244
- * - Checkbox and Radio item variants
1245
- * - Sub-menu support (nested menus)
1246
- * - Keyboard shortcuts display
1247
- * - Customizable positioning (side, align, sideOffset)
1248
- * - Disabled state support
1249
- * - Inset support (for items with icons)
1250
- *
1251
- * @example
1252
- * ```tsx
1253
- * // Basic usage
1254
- * <DropdownMenu>
1255
- * <DropdownMenuTrigger asChild>
1256
- * <Button variant="outline">Open Menu</Button>
1257
- * </DropdownMenuTrigger>
1258
- * <DropdownMenuContent>
1259
- * <DropdownMenuItem>Profile</DropdownMenuItem>
1260
- * <DropdownMenuItem>Settings</DropdownMenuItem>
1261
- * <DropdownMenuSeparator />
1262
- * <DropdownMenuItem>Logout</DropdownMenuItem>
1263
- * </DropdownMenuContent>
1264
- * </DropdownMenu>
1265
- * ```
1266
- *
1267
- * @example
1268
- * ```tsx
1269
- * // With icons and shortcuts
1270
- * <DropdownMenu>
1271
- * <DropdownMenuTrigger asChild>
1272
- * <Button variant="ghost" size="icon">
1273
- * <MoreHorizontal className="h-4 w-4" />
1274
- * </Button>
1275
- * </DropdownMenuTrigger>
1276
- * <DropdownMenuContent align="end">
1277
- * <DropdownMenuLabel>Actions</DropdownMenuLabel>
1278
- * <DropdownMenuItem>
1279
- * <Edit className="h-4 w-4" />
1280
- * Edit
1281
- * <DropdownMenuShortcut>⌘E</DropdownMenuShortcut>
1282
- * </DropdownMenuItem>
1283
- * <DropdownMenuItem>
1284
- * <Trash2 className="h-4 w-4" />
1285
- * Delete
1286
- * <DropdownMenuShortcut>⌘⌫</DropdownMenuShortcut>
1287
- * </DropdownMenuItem>
1288
- * </DropdownMenuContent>
1289
- * </DropdownMenu>
1290
- * ```
1291
- *
1292
- * @example
1293
- * ```tsx
1294
- * // With checkbox items
1295
- * <DropdownMenu>
1296
- * <DropdownMenuTrigger asChild>
1297
- * <Button variant="outline">View Options</Button>
1298
- * </DropdownMenuTrigger>
1299
- * <DropdownMenuContent>
1300
- * <DropdownMenuLabel>Display</DropdownMenuLabel>
1301
- * <DropdownMenuSeparator />
1302
- * <DropdownMenuCheckboxItem checked={showPanel} onCheckedChange={setShowPanel}>
1303
- * Show Panel
1304
- * </DropdownMenuCheckboxItem>
1305
- * <DropdownMenuCheckboxItem checked={showToolbar} onCheckedChange={setShowToolbar}>
1306
- * Show Toolbar
1307
- * </DropdownMenuCheckboxItem>
1308
- * </DropdownMenuContent>
1309
- * </DropdownMenu>
1310
- * ```
1311
- *
1312
- * @see https://www.radix-ui.com/docs/primitives/components/dropdown-menu - Radix UI DropdownMenu
1313
- */
1314
-
1315
- declare const DropdownMenu: react.FC<DropdownMenuPrimitive.DropdownMenuProps>;
1316
- declare const DropdownMenuTrigger: react.ForwardRefExoticComponent<DropdownMenuPrimitive.DropdownMenuTriggerProps & react.RefAttributes<HTMLButtonElement>>;
1317
- declare const DropdownMenuGroup: react.ForwardRefExoticComponent<DropdownMenuPrimitive.DropdownMenuGroupProps & react.RefAttributes<HTMLDivElement>>;
1318
- declare const DropdownMenuPortal: react.FC<DropdownMenuPrimitive.DropdownMenuPortalProps>;
1319
- declare const DropdownMenuSub: react.FC<DropdownMenuPrimitive.DropdownMenuSubProps>;
1320
- declare const DropdownMenuRadioGroup: react.ForwardRefExoticComponent<DropdownMenuPrimitive.DropdownMenuRadioGroupProps & react.RefAttributes<HTMLDivElement>>;
1321
- declare const DropdownMenuSubTrigger: react.ForwardRefExoticComponent<Omit<DropdownMenuPrimitive.DropdownMenuSubTriggerProps & react.RefAttributes<HTMLDivElement>, "ref"> & {
1322
- inset?: boolean;
1323
- } & react.RefAttributes<HTMLDivElement>>;
1324
- declare const DropdownMenuSubContent: react.ForwardRefExoticComponent<Omit<DropdownMenuPrimitive.DropdownMenuSubContentProps & react.RefAttributes<HTMLDivElement>, "ref"> & react.RefAttributes<HTMLDivElement>>;
1325
- declare const DropdownMenuContent: react.ForwardRefExoticComponent<Omit<DropdownMenuPrimitive.DropdownMenuContentProps & react.RefAttributes<HTMLDivElement>, "ref"> & react.RefAttributes<HTMLDivElement>>;
1326
- declare const DropdownMenuItem: react.ForwardRefExoticComponent<Omit<DropdownMenuPrimitive.DropdownMenuItemProps & react.RefAttributes<HTMLDivElement>, "ref"> & {
1327
- inset?: boolean;
1328
- } & react.RefAttributes<HTMLDivElement>>;
1329
- declare const DropdownMenuCheckboxItem: react.ForwardRefExoticComponent<Omit<DropdownMenuPrimitive.DropdownMenuCheckboxItemProps & react.RefAttributes<HTMLDivElement>, "ref"> & react.RefAttributes<HTMLDivElement>>;
1330
- declare const DropdownMenuRadioItem: react.ForwardRefExoticComponent<Omit<DropdownMenuPrimitive.DropdownMenuRadioItemProps & react.RefAttributes<HTMLDivElement>, "ref"> & react.RefAttributes<HTMLDivElement>>;
1331
- declare const DropdownMenuLabel: react.ForwardRefExoticComponent<Omit<DropdownMenuPrimitive.DropdownMenuLabelProps & react.RefAttributes<HTMLDivElement>, "ref"> & {
1332
- inset?: boolean;
1333
- } & react.RefAttributes<HTMLDivElement>>;
1334
- declare const DropdownMenuSeparator: react.ForwardRefExoticComponent<Omit<DropdownMenuPrimitive.DropdownMenuSeparatorProps & react.RefAttributes<HTMLDivElement>, "ref"> & react.RefAttributes<HTMLDivElement>>;
1335
- declare const DropdownMenuShortcut: react.ForwardRefExoticComponent<react.HTMLAttributes<HTMLSpanElement> & react.RefAttributes<HTMLSpanElement>>;
1336
-
1512
+ * @experimental
1513
+ */
1514
+ declare const AlertDialogCancel: ForwardRefExoticComponent<PropsWithoutRef<AlertDialogCancelProps> & RefAttributes<ElementRef<typeof AlertDialogPrimitive.Cancel>>>;
1515
+ /** @public */
1516
+ declare const DropdownMenu: typeof DropdownMenuPrimitive.Root;
1517
+ /** @public */
1518
+ declare const DropdownMenuTrigger: typeof DropdownMenuPrimitive.Trigger;
1519
+ /** @experimental */
1520
+ declare const DropdownMenuGroup: typeof DropdownMenuPrimitive.Group;
1521
+ /** @experimental */
1522
+ declare const DropdownMenuPortal: typeof DropdownMenuPrimitive.Portal;
1523
+ /** @experimental */
1524
+ declare const DropdownMenuSub: typeof DropdownMenuPrimitive.Sub;
1525
+ /** @experimental */
1526
+ declare const DropdownMenuRadioGroup: typeof DropdownMenuPrimitive.RadioGroup;
1527
+ type DropdownMenuSubTriggerProps$1 = React$1.ComponentPropsWithoutRef<typeof DropdownMenuPrimitive.SubTrigger> & {
1528
+ inset?: boolean;
1529
+ };
1530
+ /** @experimental */
1531
+ declare const DropdownMenuSubTrigger: React$1.ForwardRefExoticComponent<React$1.PropsWithoutRef<DropdownMenuSubTriggerProps$1> & React$1.RefAttributes<React$1.ElementRef<typeof DropdownMenuPrimitive.SubTrigger>>>;
1532
+ type DropdownMenuSubContentProps$1 = React$1.ComponentPropsWithoutRef<typeof DropdownMenuPrimitive.SubContent>;
1533
+ /** @experimental */
1534
+ declare const DropdownMenuSubContent: React$1.ForwardRefExoticComponent<React$1.PropsWithoutRef<DropdownMenuSubContentProps$1> & React$1.RefAttributes<React$1.ElementRef<typeof DropdownMenuPrimitive.SubContent>>>;
1535
+ type DropdownMenuContentProps$1 = React$1.ComponentPropsWithoutRef<typeof DropdownMenuPrimitive.Content>;
1536
+ /** @public */
1537
+ declare const DropdownMenuContent: React$1.ForwardRefExoticComponent<React$1.PropsWithoutRef<DropdownMenuContentProps$1> & React$1.RefAttributes<React$1.ElementRef<typeof DropdownMenuPrimitive.Content>>>;
1538
+ type DropdownMenuItemProps$1 = React$1.ComponentPropsWithoutRef<typeof DropdownMenuPrimitive.Item> & {
1539
+ inset?: boolean;
1540
+ };
1541
+ /** @public */
1542
+ declare const DropdownMenuItem: React$1.ForwardRefExoticComponent<React$1.PropsWithoutRef<DropdownMenuItemProps$1> & React$1.RefAttributes<React$1.ElementRef<typeof DropdownMenuPrimitive.Item>>>;
1543
+ type DropdownMenuCheckboxItemProps$1 = React$1.ComponentPropsWithoutRef<typeof DropdownMenuPrimitive.CheckboxItem>;
1544
+ /** @public */
1545
+ declare const DropdownMenuCheckboxItem: React$1.ForwardRefExoticComponent<React$1.PropsWithoutRef<DropdownMenuCheckboxItemProps$1> & React$1.RefAttributes<React$1.ElementRef<typeof DropdownMenuPrimitive.CheckboxItem>>>;
1546
+ type DropdownMenuRadioItemProps$1 = React$1.ComponentPropsWithoutRef<typeof DropdownMenuPrimitive.RadioItem>;
1547
+ /** @experimental */
1548
+ declare const DropdownMenuRadioItem: React$1.ForwardRefExoticComponent<React$1.PropsWithoutRef<DropdownMenuRadioItemProps$1> & React$1.RefAttributes<React$1.ElementRef<typeof DropdownMenuPrimitive.RadioItem>>>;
1549
+ type DropdownMenuLabelProps$1 = React$1.ComponentPropsWithoutRef<typeof DropdownMenuPrimitive.Label> & {
1550
+ inset?: boolean;
1551
+ };
1552
+ /** @experimental */
1553
+ declare const DropdownMenuLabel: React$1.ForwardRefExoticComponent<React$1.PropsWithoutRef<DropdownMenuLabelProps$1> & React$1.RefAttributes<React$1.ElementRef<typeof DropdownMenuPrimitive.Label>>>;
1554
+ type DropdownMenuSeparatorProps$1 = React$1.ComponentPropsWithoutRef<typeof DropdownMenuPrimitive.Separator>;
1555
+ /** @public */
1556
+ declare const DropdownMenuSeparator: React$1.ForwardRefExoticComponent<React$1.PropsWithoutRef<DropdownMenuSeparatorProps$1> & React$1.RefAttributes<React$1.ElementRef<typeof DropdownMenuPrimitive.Separator>>>;
1557
+ type DropdownMenuShortcutProps$1 = React$1.HTMLAttributes<HTMLSpanElement>;
1558
+ /** @experimental */
1559
+ declare const DropdownMenuShortcut: React$1.ForwardRefExoticComponent<React$1.PropsWithoutRef<DropdownMenuShortcutProps$1> & React$1.RefAttributes<HTMLSpanElement>>;
1337
1560
  /**
1338
1561
  * Props for the DropdownMenuSubTrigger component
1562
+ * @experimental
1339
1563
  */
1340
- type DropdownMenuSubTriggerProps = react.ComponentPropsWithoutRef<typeof DropdownMenuPrimitive.SubTrigger> & {
1341
- /**
1342
- * Whether to add left padding (for alignment with items that have icons)
1343
- */
1344
- inset?: boolean;
1564
+ type DropdownMenuSubTriggerProps = React$1.ComponentPropsWithoutRef<typeof DropdownMenuPrimitive.SubTrigger> & {
1565
+ /**
1566
+ * Whether to add left padding (for alignment with items that have icons)
1567
+ */
1568
+ inset?: boolean;
1345
1569
  };
1346
1570
  /**
1347
1571
  * Props for the DropdownMenuSubContent component
1572
+ * @experimental
1348
1573
  */
1349
- type DropdownMenuSubContentProps = react.ComponentPropsWithoutRef<typeof DropdownMenuPrimitive.SubContent>;
1574
+ type DropdownMenuSubContentProps = React$1.ComponentPropsWithoutRef<typeof DropdownMenuPrimitive.SubContent>;
1350
1575
  /**
1351
1576
  * Props for the DropdownMenuContent component
1577
+ * @public
1352
1578
  */
1353
- type DropdownMenuContentProps = react.ComponentPropsWithoutRef<typeof DropdownMenuPrimitive.Content>;
1579
+ type DropdownMenuContentProps = React$1.ComponentPropsWithoutRef<typeof DropdownMenuPrimitive.Content>;
1354
1580
  /**
1355
1581
  * Props for the DropdownMenuItem component
1582
+ * @public
1356
1583
  */
1357
- type DropdownMenuItemProps = react.ComponentPropsWithoutRef<typeof DropdownMenuPrimitive.Item> & {
1358
- /**
1359
- * Whether to add left padding (for alignment with items that have icons)
1360
- */
1361
- inset?: boolean;
1584
+ type DropdownMenuItemProps = React$1.ComponentPropsWithoutRef<typeof DropdownMenuPrimitive.Item> & {
1585
+ /**
1586
+ * Whether to add left padding (for alignment with items that have icons)
1587
+ */
1588
+ inset?: boolean;
1362
1589
  };
1363
1590
  /**
1364
1591
  * Props for the DropdownMenuCheckboxItem component
1592
+ * @public
1365
1593
  */
1366
- type DropdownMenuCheckboxItemProps = react.ComponentPropsWithoutRef<typeof DropdownMenuPrimitive.CheckboxItem>;
1594
+ type DropdownMenuCheckboxItemProps = React$1.ComponentPropsWithoutRef<typeof DropdownMenuPrimitive.CheckboxItem>;
1367
1595
  /**
1368
1596
  * Props for the DropdownMenuRadioItem component
1597
+ * @experimental
1369
1598
  */
1370
- type DropdownMenuRadioItemProps = react.ComponentPropsWithoutRef<typeof DropdownMenuPrimitive.RadioItem>;
1599
+ type DropdownMenuRadioItemProps = React$1.ComponentPropsWithoutRef<typeof DropdownMenuPrimitive.RadioItem>;
1371
1600
  /**
1372
1601
  * Props for the DropdownMenuLabel component
1602
+ * @experimental
1373
1603
  */
1374
- type DropdownMenuLabelProps = react.ComponentPropsWithoutRef<typeof DropdownMenuPrimitive.Label> & {
1375
- /**
1376
- * Whether to add left padding (for alignment with items that have icons)
1377
- */
1378
- inset?: boolean;
1604
+ type DropdownMenuLabelProps = React$1.ComponentPropsWithoutRef<typeof DropdownMenuPrimitive.Label> & {
1605
+ /**
1606
+ * Whether to add left padding (for alignment with items that have icons)
1607
+ */
1608
+ inset?: boolean;
1379
1609
  };
1380
1610
  /**
1381
1611
  * Props for the DropdownMenuSeparator component
1612
+ * @public
1382
1613
  */
1383
- type DropdownMenuSeparatorProps = react.ComponentPropsWithoutRef<typeof DropdownMenuPrimitive.Separator>;
1614
+ type DropdownMenuSeparatorProps = React$1.ComponentPropsWithoutRef<typeof DropdownMenuPrimitive.Separator>;
1384
1615
  /**
1385
1616
  * Props for the DropdownMenuShortcut component
1617
+ * @experimental
1386
1618
  */
1387
- type DropdownMenuShortcutProps = react.HTMLAttributes<HTMLSpanElement>;
1388
-
1619
+ type DropdownMenuShortcutProps = React$1.HTMLAttributes<HTMLSpanElement>;
1389
1620
  /**
1390
1621
  * Select Component - Design System Specification
1391
1622
  *
@@ -1400,15 +1631,15 @@ type DropdownMenuShortcutProps = react.HTMLAttributes<HTMLSpanElement>;
1400
1631
  * - Disabled state support
1401
1632
  *
1402
1633
  * Design Specs:
1403
- * - Height: sm=32px, default=40px, lg=44px (matches Input component)
1634
+ * - Height: sm=36px, default=40px, lg=44px (matches Input component)
1404
1635
  * - Padding: Horizontal 12px, vertical varies by size
1405
- * - Border radius: 0px (rounded-none)
1636
+ * - Border radius: `rounded-md` on the trigger, `rounded-lg` on the panel
1406
1637
  * - Border: 1px solid, changes on focus/error
1407
1638
  * - Transition: 150ms (consistent with design system)
1408
1639
  * - Font size: sm/default=14px (text-sm), lg=16px (text-base)
1409
1640
  *
1410
1641
  * Size Variants:
1411
- * - sm: Height 32px (h-8) - Compact forms, filters
1642
+ * - sm: Height 36px - Compact forms and filters, matching a small Button
1412
1643
  * - default: Height 40px (h-10) - Standard forms
1413
1644
  * - lg: Height 44px (h-11) - Prominent selects
1414
1645
  *
@@ -1419,23 +1650,114 @@ type DropdownMenuShortcutProps = react.HTMLAttributes<HTMLSpanElement>;
1419
1650
  * - Grouping support with labels
1420
1651
  * - Placeholder text support
1421
1652
  * - Error state via aria-invalid
1653
+ * @public
1654
+ */
1655
+ declare function Select({ ...props }: ComponentProps<typeof SelectPrimitive.Root>): JSX.Element;
1656
+ /** @experimental */
1657
+ declare function SelectGroup({ ...props }: ComponentProps<typeof SelectPrimitive.Group>): JSX.Element;
1658
+ /** @public */
1659
+ declare function SelectValue({ ...props }: ComponentProps<typeof SelectPrimitive.Value>): JSX.Element;
1660
+ /** The arms `selectTriggerVariants` is built from. Its type is read from them: {@link VariantsFn}. */
1661
+ declare const SELECT_TRIGGER_VARIANT_MAP: {
1662
+ size: {
1663
+ sm: string;
1664
+ default: string;
1665
+ lg: string;
1666
+ };
1667
+ };
1668
+ /** @experimental */
1669
+ declare const selectTriggerVariants: VariantsFn<typeof SELECT_TRIGGER_VARIANT_MAP>;
1670
+ /** @public */
1671
+ interface SelectTriggerProps extends ComponentProps<typeof SelectPrimitive.Trigger>, VariantProps<typeof selectTriggerVariants> {}
1672
+ /** @public */
1673
+ declare const SelectTrigger: ForwardRefExoticComponent<PropsWithoutRef<SelectTriggerProps> & RefAttributes<React.ElementRef<typeof SelectPrimitive.Trigger>>>;
1674
+ /** @public */
1675
+ declare function SelectContent({ className, children, position, ...props }: ComponentProps<typeof SelectPrimitive.Content>): JSX.Element;
1676
+ /** @experimental */
1677
+ declare function SelectLabel({ className, ...props }: ComponentProps<typeof SelectPrimitive.Label>): JSX.Element;
1678
+ /** @public */
1679
+ declare function SelectItem({ className, children, ...props }: ComponentProps<typeof SelectPrimitive.Item>): JSX.Element;
1680
+ /** @experimental */
1681
+ declare function SelectSeparator({ className, ...props }: ComponentProps<typeof SelectPrimitive.Separator>): JSX.Element;
1682
+ /** @experimental */
1683
+ declare function SelectScrollUpButton({ className, ...props }: ComponentProps<typeof SelectPrimitive.ScrollUpButton>): JSX.Element;
1684
+ /** @experimental */
1685
+ declare function SelectScrollDownButton({ className, ...props }: ComponentProps<typeof SelectPrimitive.ScrollDownButton>): JSX.Element;
1686
+ /**
1687
+ * Sheet root component props
1688
+ * Extends Radix UI Dialog.Root props
1689
+ * @public
1422
1690
  */
1423
- declare function Select({ ...props }: ComponentProps<typeof SelectPrimitive.Root>): react_jsx_runtime.JSX.Element;
1424
- declare function SelectGroup({ ...props }: ComponentProps<typeof SelectPrimitive.Group>): react_jsx_runtime.JSX.Element;
1425
- declare function SelectValue({ ...props }: ComponentProps<typeof SelectPrimitive.Value>): react_jsx_runtime.JSX.Element;
1426
- declare const selectTriggerVariants: (props?: ({
1427
- size?: "default" | "sm" | "lg" | null | undefined;
1428
- } & class_variance_authority_types.ClassProp) | undefined) => string;
1429
- interface SelectTriggerProps extends ComponentProps<typeof SelectPrimitive.Trigger>, VariantProps<typeof selectTriggerVariants> {
1430
- }
1431
- declare const SelectTrigger: react.ForwardRefExoticComponent<Omit<SelectTriggerProps, "ref"> & react.RefAttributes<HTMLButtonElement>>;
1432
- declare function SelectContent({ className, children, position, ...props }: ComponentProps<typeof SelectPrimitive.Content>): react_jsx_runtime.JSX.Element;
1433
- declare function SelectLabel({ className, ...props }: ComponentProps<typeof SelectPrimitive.Label>): react_jsx_runtime.JSX.Element;
1434
- declare function SelectItem({ className, children, ...props }: ComponentProps<typeof SelectPrimitive.Item>): react_jsx_runtime.JSX.Element;
1435
- declare function SelectSeparator({ className, ...props }: ComponentProps<typeof SelectPrimitive.Separator>): react_jsx_runtime.JSX.Element;
1436
- declare function SelectScrollUpButton({ className, ...props }: ComponentProps<typeof SelectPrimitive.ScrollUpButton>): react_jsx_runtime.JSX.Element;
1437
- declare function SelectScrollDownButton({ className, ...props }: ComponentProps<typeof SelectPrimitive.ScrollDownButton>): react_jsx_runtime.JSX.Element;
1438
-
1691
+ type SheetProps = React.ComponentPropsWithoutRef<typeof DialogPrimitive.Root>;
1692
+ /**
1693
+ * Sheet trigger component props
1694
+ * Extends Radix UI Dialog.Trigger props
1695
+ * @experimental
1696
+ */
1697
+ type SheetTriggerProps = React.ComponentPropsWithoutRef<typeof DialogPrimitive.Trigger>;
1698
+ /**
1699
+ * Sheet close component props
1700
+ * Extends Radix UI Dialog.Close props
1701
+ * @experimental
1702
+ */
1703
+ type SheetCloseProps = React.ComponentPropsWithoutRef<typeof DialogPrimitive.Close>;
1704
+ /**
1705
+ * Sheet overlay component props
1706
+ * Extends Radix UI Dialog.Overlay props
1707
+ * @experimental
1708
+ */
1709
+ type SheetOverlayProps = React.ComponentPropsWithoutRef<typeof DialogPrimitive.Overlay>;
1710
+ /**
1711
+ * Sheet content component props
1712
+ * Extends Radix UI Dialog.Content props with side variant
1713
+ */
1714
+ type SheetContentProps$1 = React.ComponentPropsWithoutRef<typeof DialogPrimitive.Content> & {
1715
+ /**
1716
+ * Which edge to slide the sheet in from
1717
+ * @default "right"
1718
+ */
1719
+ side?: "left" | "right" | "top" | "bottom";
1720
+ };
1721
+ /**
1722
+ * Sheet header component props
1723
+ * Standard div props
1724
+ * @public
1725
+ */
1726
+ type SheetHeaderProps = React.HTMLAttributes<HTMLDivElement>;
1727
+ /**
1728
+ * Sheet footer component props
1729
+ * Standard div props
1730
+ * @experimental
1731
+ */
1732
+ type SheetFooterProps = React.HTMLAttributes<HTMLDivElement>;
1733
+ /**
1734
+ * Sheet title component props
1735
+ * Extends Radix UI Dialog.Title props
1736
+ * @public
1737
+ */
1738
+ type SheetTitleProps = React.ComponentPropsWithoutRef<typeof DialogPrimitive.Title>;
1739
+ /**
1740
+ * Sheet description component props
1741
+ * Extends Radix UI Dialog.Description props
1742
+ * @public
1743
+ */
1744
+ type SheetDescriptionProps = React.ComponentPropsWithoutRef<typeof DialogPrimitive.Description>;
1745
+ /**
1746
+ * Sheet component refs
1747
+ * @experimental
1748
+ */
1749
+ type SheetOverlayRef = React.ElementRef<typeof DialogPrimitive.Overlay>;
1750
+ /** @experimental */
1751
+ type SheetContentRef = React.ElementRef<typeof DialogPrimitive.Content>;
1752
+ /** @experimental */
1753
+ type SheetTitleRef = React.ElementRef<typeof DialogPrimitive.Title>;
1754
+ /** @experimental */
1755
+ type SheetDescriptionRef = React.ElementRef<typeof DialogPrimitive.Description>;
1756
+ /** What `Sheet` is: a component taking {@link SheetProps}, with a `displayName`. */
1757
+ type SheetComponent = {
1758
+ (props: SheetProps): React$1.JSX.Element;
1759
+ displayName: string;
1760
+ };
1439
1761
  /**
1440
1762
  * Sheet Component
1441
1763
  *
@@ -1448,7 +1770,7 @@ declare function SelectScrollDownButton({ className, ...props }: ComponentProps<
1448
1770
  *
1449
1771
  * - **Width**: 320px (sm), 400px (default), 512px (lg), 672px (xl), 100% (full)
1450
1772
  * - **Animation**: Slide-in from side (150ms duration)
1451
- * - **Backdrop**: Semi-transparent overlay (50% opacity with backdrop blur)
1773
+ * - **Backdrop**: the `--nx-overlay` scrim, with backdrop blur
1452
1774
  * - **z-index**: 50 (both overlay and content - content renders on top via DOM order)
1453
1775
  * - **Border-radius**: 0 (full-screen edges)
1454
1776
  *
@@ -1488,31 +1810,45 @@ declare function SelectScrollDownButton({ className, ...props }: ComponentProps<
1488
1810
  * ```
1489
1811
  *
1490
1812
  * @see https://www.radix-ui.com/primitives/docs/components/dialog
1813
+ * @public
1491
1814
  */
1492
- declare const Sheet: react.FC<DialogPrimitive.DialogProps>;
1493
- declare const SheetTrigger: react.ForwardRefExoticComponent<DialogPrimitive.DialogTriggerProps & react.RefAttributes<HTMLButtonElement>>;
1494
- declare const SheetClose: react.ForwardRefExoticComponent<DialogPrimitive.DialogCloseProps & react.RefAttributes<HTMLButtonElement>>;
1495
- declare const SheetPortal: react.FC<DialogPrimitive.DialogPortalProps>;
1815
+ declare const Sheet: SheetComponent;
1816
+ /** @experimental */
1817
+ declare const SheetTrigger: typeof DialogPrimitive.Trigger;
1818
+ /** @experimental */
1819
+ declare const SheetClose: typeof DialogPrimitive.Close;
1820
+ /** @experimental */
1821
+ declare const SheetPortal: typeof DialogPrimitive.Portal;
1822
+ type SheetOverlayProps$1 = React$1.ComponentPropsWithoutRef<typeof DialogPrimitive.Overlay>;
1496
1823
  /**
1497
1824
  * SheetOverlay
1498
1825
  *
1499
1826
  * Semi-transparent backdrop that appears behind the sheet.
1500
1827
  *
1501
- * - **Background**: Black with 50% opacity + backdrop blur
1828
+ * - **Background**: the `--nx-overlay` scrim + backdrop blur
1502
1829
  * - **Animation**: Fade in/out (150ms)
1503
1830
  * - **z-index**: 50
1504
- */
1505
- declare const SheetOverlay: react.ForwardRefExoticComponent<Omit<DialogPrimitive.DialogOverlayProps & react.RefAttributes<HTMLDivElement>, "ref"> & react.RefAttributes<HTMLDivElement>>;
1831
+ * @experimental
1832
+ */
1833
+ declare const SheetOverlay: React$1.ForwardRefExoticComponent<React$1.PropsWithoutRef<SheetOverlayProps$1> & React$1.RefAttributes<React$1.ElementRef<typeof DialogPrimitive.Overlay>>>;
1834
+ /** The arms `sheetVariants` is built from. Its type is read from them: {@link VariantsFn}. */
1835
+ declare const SHEET_VARIANT_MAP: {
1836
+ side: {
1837
+ top: string;
1838
+ bottom: string;
1839
+ left: string;
1840
+ right: string;
1841
+ };
1842
+ };
1506
1843
  /**
1507
1844
  * Sheet Content Variants
1508
1845
  *
1509
1846
  * Defines slide-in animations for each side and size options.
1847
+ * @experimental
1510
1848
  */
1511
- declare const sheetVariants: (props?: ({
1512
- side?: "top" | "right" | "bottom" | "left" | null | undefined;
1513
- } & class_variance_authority_types.ClassProp) | undefined) => string;
1514
- interface SheetContentProps extends react.ComponentPropsWithoutRef<typeof DialogPrimitive.Content>, VariantProps<typeof sheetVariants> {
1515
- }
1849
+ declare const sheetVariants: VariantsFn<typeof SHEET_VARIANT_MAP>;
1850
+ /** @public */
1851
+ interface SheetContentProps extends React$1.ComponentPropsWithoutRef<typeof DialogPrimitive.Content>, VariantProps<typeof sheetVariants> {}
1516
1852
  /**
1517
1853
  * SheetContent
1518
1854
  *
@@ -1525,8 +1861,14 @@ interface SheetContentProps extends react.ComponentPropsWithoutRef<typeof Dialog
1525
1861
  * - **Close Button**: Positioned in top-right corner (16px from edges)
1526
1862
  *
1527
1863
  * @param side - Which edge to slide in from: "left", "right", "top", "bottom"
1864
+ * @public
1528
1865
  */
1529
- declare const SheetContent: react.ForwardRefExoticComponent<SheetContentProps & react.RefAttributes<HTMLDivElement>>;
1866
+ declare const SheetContent: React$1.ForwardRefExoticComponent<React$1.PropsWithoutRef<SheetContentProps> & React$1.RefAttributes<React$1.ElementRef<typeof DialogPrimitive.Content>>>;
1867
+ /** What `SheetHeader` and `SheetFooter` are: a `div` component with a `displayName`. */
1868
+ type SheetSectionComponent = {
1869
+ (props: React$1.HTMLAttributes<HTMLDivElement>): React$1.JSX.Element;
1870
+ displayName: string;
1871
+ };
1530
1872
  /**
1531
1873
  * SheetHeader
1532
1874
  *
@@ -1534,11 +1876,9 @@ declare const SheetContent: react.ForwardRefExoticComponent<SheetContentProps &
1534
1876
  *
1535
1877
  * - **Layout**: Flex column with 6px gap
1536
1878
  * - **Text Alignment**: Left (default) or center
1879
+ * @public
1537
1880
  */
1538
- declare const SheetHeader: {
1539
- ({ className, ...props }: react.HTMLAttributes<HTMLDivElement>): react_jsx_runtime.JSX.Element;
1540
- displayName: string;
1541
- };
1881
+ declare const SheetHeader: SheetSectionComponent;
1542
1882
  /**
1543
1883
  * SheetFooter
1544
1884
  *
@@ -1546,11 +1886,10 @@ declare const SheetHeader: {
1546
1886
  *
1547
1887
  * - **Layout**: Flex row on desktop, column on mobile
1548
1888
  * - **Alignment**: Right-aligned on desktop, stretched on mobile
1889
+ * @experimental
1549
1890
  */
1550
- declare const SheetFooter: {
1551
- ({ className, ...props }: react.HTMLAttributes<HTMLDivElement>): react_jsx_runtime.JSX.Element;
1552
- displayName: string;
1553
- };
1891
+ declare const SheetFooter: SheetSectionComponent;
1892
+ type SheetTitleProps$1 = React$1.ComponentPropsWithoutRef<typeof DialogPrimitive.Title>;
1554
1893
  /**
1555
1894
  * SheetTitle
1556
1895
  *
@@ -1559,8 +1898,10 @@ declare const SheetFooter: {
1559
1898
  * - **Font**: text-lg font-semibold
1560
1899
  * - **Color**: text-foreground
1561
1900
  * - **Required**: For accessibility (screen readers)
1901
+ * @public
1562
1902
  */
1563
- declare const SheetTitle: react.ForwardRefExoticComponent<Omit<DialogPrimitive.DialogTitleProps & react.RefAttributes<HTMLHeadingElement>, "ref"> & react.RefAttributes<HTMLHeadingElement>>;
1903
+ declare const SheetTitle: React$1.ForwardRefExoticComponent<React$1.PropsWithoutRef<SheetTitleProps$1> & React$1.RefAttributes<React$1.ElementRef<typeof DialogPrimitive.Title>>>;
1904
+ type SheetDescriptionProps$1 = React$1.ComponentPropsWithoutRef<typeof DialogPrimitive.Description>;
1564
1905
  /**
1565
1906
  * SheetDescription
1566
1907
  *
@@ -1569,63 +1910,9 @@ declare const SheetTitle: react.ForwardRefExoticComponent<Omit<DialogPrimitive.D
1569
1910
  * - **Font**: text-sm
1570
1911
  * - **Color**: text-muted-foreground
1571
1912
  * - **Purpose**: Provide context for screen readers
1913
+ * @public
1572
1914
  */
1573
- declare const SheetDescription: react.ForwardRefExoticComponent<Omit<DialogPrimitive.DialogDescriptionProps & react.RefAttributes<HTMLParagraphElement>, "ref"> & react.RefAttributes<HTMLParagraphElement>>;
1574
-
1575
- /**
1576
- * Sheet Component Types
1577
- *
1578
- * TypeScript type definitions for the Sheet component (Dialog variant).
1579
- */
1580
-
1581
- /**
1582
- * Sheet root component props
1583
- * Extends Radix UI Dialog.Root props
1584
- */
1585
- type SheetProps = React.ComponentPropsWithoutRef<typeof DialogPrimitive.Root>;
1586
- /**
1587
- * Sheet trigger component props
1588
- * Extends Radix UI Dialog.Trigger props
1589
- */
1590
- type SheetTriggerProps = React.ComponentPropsWithoutRef<typeof DialogPrimitive.Trigger>;
1591
- /**
1592
- * Sheet close component props
1593
- * Extends Radix UI Dialog.Close props
1594
- */
1595
- type SheetCloseProps = React.ComponentPropsWithoutRef<typeof DialogPrimitive.Close>;
1596
- /**
1597
- * Sheet overlay component props
1598
- * Extends Radix UI Dialog.Overlay props
1599
- */
1600
- type SheetOverlayProps = React.ComponentPropsWithoutRef<typeof DialogPrimitive.Overlay>;
1601
- /**
1602
- * Sheet header component props
1603
- * Standard div props
1604
- */
1605
- type SheetHeaderProps = React.HTMLAttributes<HTMLDivElement>;
1606
- /**
1607
- * Sheet footer component props
1608
- * Standard div props
1609
- */
1610
- type SheetFooterProps = React.HTMLAttributes<HTMLDivElement>;
1611
- /**
1612
- * Sheet title component props
1613
- * Extends Radix UI Dialog.Title props
1614
- */
1615
- type SheetTitleProps = React.ComponentPropsWithoutRef<typeof DialogPrimitive.Title>;
1616
- /**
1617
- * Sheet description component props
1618
- * Extends Radix UI Dialog.Description props
1619
- */
1620
- type SheetDescriptionProps = React.ComponentPropsWithoutRef<typeof DialogPrimitive.Description>;
1621
- /**
1622
- * Sheet component refs
1623
- */
1624
- type SheetOverlayRef = React.ElementRef<typeof DialogPrimitive.Overlay>;
1625
- type SheetContentRef = React.ElementRef<typeof DialogPrimitive.Content>;
1626
- type SheetTitleRef = React.ElementRef<typeof DialogPrimitive.Title>;
1627
- type SheetDescriptionRef = React.ElementRef<typeof DialogPrimitive.Description>;
1628
-
1915
+ declare const SheetDescription: React$1.ForwardRefExoticComponent<React$1.PropsWithoutRef<SheetDescriptionProps$1> & React$1.RefAttributes<React$1.ElementRef<typeof DialogPrimitive.Description>>>;
1629
1916
  /**
1630
1917
  * Command Component
1631
1918
  *
@@ -1651,7 +1938,7 @@ type SheetDescriptionRef = React.ElementRef<typeof DialogPrimitive.Description>;
1651
1938
  * @design-spec
1652
1939
  * - Input height: 48px (h-12) - larger for prominence
1653
1940
  * - Item height: 36px (h-9) desktop, 44px (h-11) mobile for touch
1654
- * - Border radius: 0px (rounded-none) for items
1941
+ * - Border radius: `rounded-lg` for the panel, `rounded-sm` for items
1655
1942
  * - Max list height: 400px (max-h-[400px])
1656
1943
  * - Transition: 150ms per design system
1657
1944
  *
@@ -1661,30 +1948,40 @@ type SheetDescriptionRef = React.ElementRef<typeof DialogPrimitive.Description>;
1661
1948
  * - Screen reader announcements for results
1662
1949
  * - Focus management and visual focus indicators
1663
1950
  * - WCAG 2.2 AA compliant (verified contrast ratios)
1951
+ * @experimental
1664
1952
  */
1665
1953
  type CommandProps = ComponentPropsWithoutRef<typeof Command$1>;
1666
1954
  /**
1667
1955
  * Command - Root container for the command palette.
1668
1956
  * Handles filtering, keyboard navigation, and accessibility.
1669
- */
1670
- declare const Command: react.ForwardRefExoticComponent<Omit<{
1671
- children?: React.ReactNode;
1672
- } & Pick<Pick<react.DetailedHTMLProps<HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "key" | keyof HTMLAttributes<HTMLDivElement>> & {
1673
- ref?: React.Ref<HTMLDivElement>;
1674
- } & {
1675
- asChild?: boolean;
1676
- }, "asChild" | "key" | keyof HTMLAttributes<HTMLDivElement>> & {
1677
- label?: string;
1678
- shouldFilter?: boolean;
1679
- filter?: (value: string, search: string, keywords?: string[]) => number;
1680
- defaultValue?: string;
1681
- value?: string;
1682
- onValueChange?: (value: string) => void;
1683
- loop?: boolean;
1684
- disablePointerSelection?: boolean;
1685
- vimBindings?: boolean;
1686
- } & react.RefAttributes<HTMLDivElement>, "ref"> & react.RefAttributes<HTMLDivElement>>;
1687
- type CommandDialogProps = DialogPrimitive.DialogProps;
1957
+ * @experimental
1958
+ */
1959
+ declare const Command: ForwardRefExoticComponent<PropsWithoutRef<CommandProps> & RefAttributes<ElementRef<typeof Command$1>>>;
1960
+ /** @experimental */
1961
+ interface CommandDialogProps extends DialogPrimitive.DialogProps {
1962
+ /**
1963
+ * Passed to the command root this dialog renders internally.
1964
+ *
1965
+ * A seam rather than a list of forwarded props, because the settings a caller needs from the
1966
+ * root are the ones this component happens not to have thought of: `label`, which supplies the
1967
+ * search input's accessible name (cmdk renders an EMPTY hidden label without it, and an empty
1968
+ * `aria-labelledby` reference is worse than none — it stops the placeholder naming the field);
1969
+ * `filter` and `shouldFilter`, which decide match order; and `vimBindings`, which claims Ctrl+K
1970
+ * and Ctrl+N inside the list.
1971
+ *
1972
+ * `children` is excluded because this component owns the dialog's contents.
1973
+ */
1974
+ commandProps?: Omit<ComponentPropsWithoutRef<typeof Command>, "children">;
1975
+ /**
1976
+ * Passed to the dialog content this component renders internally.
1977
+ *
1978
+ * The seam that matters here is `onCloseAutoFocus`: this dialog has no trigger, so Radix has
1979
+ * nothing to hand focus back to, and it fires this at the point focus is actually being
1980
+ * returned — after the exit animation, which a timer set at close time cannot know the length
1981
+ * of. `className` is excluded because this component owns the dialog's own layout.
1982
+ */
1983
+ contentProps?: Omit<ComponentPropsWithoutRef<typeof DialogPrimitive.Content>, "children" | "className">;
1984
+ }
1688
1985
  /**
1689
1986
  * CommandDialog - Command palette in a modal dialog.
1690
1987
  * Use this variant for Cmd+K keyboard shortcut pattern.
@@ -1711,101 +2008,127 @@ type CommandDialogProps = DialogPrimitive.DialogProps;
1711
2008
  * </CommandDialog>
1712
2009
  * )
1713
2010
  * ```
2011
+ * @experimental
1714
2012
  */
1715
- declare const CommandDialog: ({ children, ...props }: CommandDialogProps) => react_jsx_runtime.JSX.Element;
2013
+ declare const CommandDialog: ({ children, commandProps, contentProps, ...props }: CommandDialogProps) => JSX.Element;
2014
+ /** @experimental */
1716
2015
  type CommandInputProps = ComponentPropsWithoutRef<typeof Command$1.Input>;
1717
2016
  /**
1718
2017
  * CommandInput - Search input field for filtering commands.
1719
2018
  * Includes search icon and styled per design system.
2019
+ * @experimental
1720
2020
  */
1721
- declare const CommandInput: react.ForwardRefExoticComponent<Omit<Omit<Pick<Pick<react.DetailedHTMLProps<react.InputHTMLAttributes<HTMLInputElement>, HTMLInputElement>, "key" | keyof react.InputHTMLAttributes<HTMLInputElement>> & {
1722
- ref?: React.Ref<HTMLInputElement>;
1723
- } & {
1724
- asChild?: boolean;
1725
- }, "asChild" | "key" | keyof react.InputHTMLAttributes<HTMLInputElement>>, "type" | "value" | "onChange"> & {
1726
- value?: string;
1727
- onValueChange?: (search: string) => void;
1728
- } & react.RefAttributes<HTMLInputElement>, "ref"> & react.RefAttributes<HTMLInputElement>>;
2021
+ declare const CommandInput: ForwardRefExoticComponent<PropsWithoutRef<CommandInputProps> & RefAttributes<ElementRef<typeof Command$1.Input>>>;
2022
+ /** @experimental */
1729
2023
  type CommandListProps = ComponentPropsWithoutRef<typeof Command$1.List>;
1730
2024
  /**
1731
2025
  * CommandList - Scrollable container for command results.
1732
2026
  * Max height 400px per design spec to prevent tall dialogs.
2027
+ * @experimental
1733
2028
  */
1734
- declare const CommandList: react.ForwardRefExoticComponent<Omit<{
1735
- children?: React.ReactNode;
1736
- } & Pick<Pick<react.DetailedHTMLProps<HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "key" | keyof HTMLAttributes<HTMLDivElement>> & {
1737
- ref?: React.Ref<HTMLDivElement>;
1738
- } & {
1739
- asChild?: boolean;
1740
- }, "asChild" | "key" | keyof HTMLAttributes<HTMLDivElement>> & {
1741
- label?: string;
1742
- } & react.RefAttributes<HTMLDivElement>, "ref"> & react.RefAttributes<HTMLDivElement>>;
2029
+ declare const CommandList: ForwardRefExoticComponent<PropsWithoutRef<CommandListProps> & RefAttributes<ElementRef<typeof Command$1.List>>>;
2030
+ /** @experimental */
1743
2031
  type CommandEmptyProps = ComponentPropsWithoutRef<typeof Command$1.Empty>;
1744
2032
  /**
1745
2033
  * CommandEmpty - Empty state message when no results found.
1746
2034
  * Centered text with muted color per design spec.
2035
+ * @experimental
1747
2036
  */
1748
- declare const CommandEmpty: react.ForwardRefExoticComponent<Omit<{
1749
- children?: React.ReactNode;
1750
- } & Pick<Pick<react.DetailedHTMLProps<HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "key" | keyof HTMLAttributes<HTMLDivElement>> & {
1751
- ref?: React.Ref<HTMLDivElement>;
1752
- } & {
1753
- asChild?: boolean;
1754
- }, "asChild" | "key" | keyof HTMLAttributes<HTMLDivElement>> & react.RefAttributes<HTMLDivElement>, "ref"> & react.RefAttributes<HTMLDivElement>>;
2037
+ declare const CommandEmpty: ForwardRefExoticComponent<PropsWithoutRef<CommandEmptyProps> & RefAttributes<ElementRef<typeof Command$1.Empty>>>;
2038
+ /** @experimental */
1755
2039
  type CommandGroupProps = ComponentPropsWithoutRef<typeof Command$1.Group>;
1756
2040
  /**
1757
2041
  * CommandGroup - Grouped section of commands with optional heading.
1758
2042
  * Heading styled as uppercase, small, semibold per design spec.
2043
+ * @experimental
1759
2044
  */
1760
- declare const CommandGroup: react.ForwardRefExoticComponent<Omit<{
1761
- children?: React.ReactNode;
1762
- } & Omit<Pick<Pick<react.DetailedHTMLProps<HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "key" | keyof HTMLAttributes<HTMLDivElement>> & {
1763
- ref?: React.Ref<HTMLDivElement>;
1764
- } & {
1765
- asChild?: boolean;
1766
- }, "asChild" | "key" | keyof HTMLAttributes<HTMLDivElement>>, "value" | "heading"> & {
1767
- heading?: React.ReactNode;
1768
- value?: string;
1769
- forceMount?: boolean;
1770
- } & react.RefAttributes<HTMLDivElement>, "ref"> & react.RefAttributes<HTMLDivElement>>;
2045
+ declare const CommandGroup: ForwardRefExoticComponent<PropsWithoutRef<CommandGroupProps> & RefAttributes<ElementRef<typeof Command$1.Group>>>;
2046
+ /** @experimental */
1771
2047
  type CommandSeparatorProps = ComponentPropsWithoutRef<typeof Command$1.Separator>;
1772
2048
  /**
1773
2049
  * CommandSeparator - Visual divider between command groups.
1774
- * 1px line with border border-primary/5 color, 8px margin top/bottom.
1775
- */
1776
- declare const CommandSeparator: react.ForwardRefExoticComponent<Omit<Pick<Pick<react.DetailedHTMLProps<HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "key" | keyof HTMLAttributes<HTMLDivElement>> & {
1777
- ref?: React.Ref<HTMLDivElement>;
1778
- } & {
1779
- asChild?: boolean;
1780
- }, "asChild" | "key" | keyof HTMLAttributes<HTMLDivElement>> & {
1781
- alwaysRender?: boolean;
1782
- } & react.RefAttributes<HTMLDivElement>, "ref"> & react.RefAttributes<HTMLDivElement>>;
2050
+ * 1px line with border border-border color, 8px margin top/bottom.
2051
+ * @experimental
2052
+ */
2053
+ declare const CommandSeparator: ForwardRefExoticComponent<PropsWithoutRef<CommandSeparatorProps> & RefAttributes<ElementRef<typeof Command$1.Separator>>>;
2054
+ /** @experimental */
1783
2055
  type CommandItemProps = ComponentPropsWithoutRef<typeof Command$1.Item>;
1784
2056
  /**
1785
2057
  * CommandItem - Individual selectable command item.
1786
2058
  * Height: 36px desktop, 44px mobile per design spec.
1787
2059
  * Includes hover, focus, and selected states.
2060
+ * @experimental
1788
2061
  */
1789
- declare const CommandItem: react.ForwardRefExoticComponent<Omit<{
1790
- children?: React.ReactNode;
1791
- } & Omit<Pick<Pick<react.DetailedHTMLProps<HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "key" | keyof HTMLAttributes<HTMLDivElement>> & {
1792
- ref?: React.Ref<HTMLDivElement>;
1793
- } & {
1794
- asChild?: boolean;
1795
- }, "asChild" | "key" | keyof HTMLAttributes<HTMLDivElement>>, "disabled" | "value" | "onSelect"> & {
1796
- disabled?: boolean;
1797
- onSelect?: (value: string) => void;
1798
- value?: string;
1799
- keywords?: string[];
1800
- forceMount?: boolean;
1801
- } & react.RefAttributes<HTMLDivElement>, "ref"> & react.RefAttributes<HTMLDivElement>>;
2062
+ declare const CommandItem: ForwardRefExoticComponent<PropsWithoutRef<CommandItemProps> & RefAttributes<ElementRef<typeof Command$1.Item>>>;
2063
+ /** @experimental */
1802
2064
  type CommandShortcutProps = HTMLAttributes<HTMLSpanElement>;
1803
2065
  /**
1804
2066
  * CommandShortcut - Keyboard shortcut display (e.g., "⌘K", "↵ Enter").
1805
2067
  * Monospace font, subtle background, right-aligned per design spec.
2068
+ * @experimental
1806
2069
  */
1807
- declare const CommandShortcut: react.ForwardRefExoticComponent<CommandShortcutProps & react.RefAttributes<HTMLSpanElement>>;
1808
-
2070
+ declare const CommandShortcut: ForwardRefExoticComponent<PropsWithoutRef<CommandShortcutProps> & RefAttributes<HTMLSpanElement>>;
2071
+ /**
2072
+ * The command palette's default match scorer, re-exported.
2073
+ *
2074
+ * A caller that overrides `filter` — to keep an opaque item value out of the scoring, say — still
2075
+ * wants the ranking that comes for free, and reaching for `cmdk` directly is not open to every
2076
+ * package here.
2077
+ *
2078
+ * Bound to a declaration rather than re-exported with `export { x as y }`: the bundler keeps a doc
2079
+ * comment attached to a declaration and drops one attached to an export statement, so the release
2080
+ * tag would not reach the published types.
2081
+ *
2082
+ * @experimental
2083
+ */
2084
+ export declare const commandDefaultFilter: typeof defaultFilter;
2085
+ /**
2086
+ * The value of the item the palette has HIGHLIGHTED, from a component inside
2087
+ * it.
2088
+ *
2089
+ * The palette owns which item is highlighted, and it moves that highlight for
2090
+ * reasons a caller never sees: a pointer crossing an item, an arrow key, and a
2091
+ * filter that removes the item the highlight was on. Anything outside wanting
2092
+ * to follow it — a preview pane, a description strip, a status line — needs to
2093
+ * read that rather than keep a copy.
2094
+ *
2095
+ * Reading beats mirroring here for a specific reason rather than on principle.
2096
+ * The palette's controlled `value` sets which item is MARKED, and does not move
2097
+ * the internal cursor that `aria-activedescendant` and the scroll follow. So a
2098
+ * caller that writes the value to steer the highlight desynchronises the two:
2099
+ * the item drawn as current and the option announced as current stop agreeing,
2100
+ * and after a filter the announcement can name an element that has been
2101
+ * removed. A read leaves one owner and takes a derived view.
2102
+ *
2103
+ * NARROWED to the one field deliberately. The underlying library exposes its
2104
+ * whole store through a selector — the raw search text, its internal item and
2105
+ * group maps, the id it uses for `aria-activedescendant` — and publishing that
2106
+ * selector would make every one of those part of this kit's public API and its
2107
+ * generated declarations. A dependency upgrade could then reshape what callers
2108
+ * can reach without any export changing name, which is exactly what the
2109
+ * surface snapshot cannot see. This returns a string.
2110
+ *
2111
+ * Empty string means nothing is highlighted, which is the library's own
2112
+ * spelling and a different answer from "an item whose value is unknown".
2113
+ *
2114
+ * Must be called from inside the palette, since that is where the state lives.
2115
+ *
2116
+ * Bound to a declaration rather than re-exported with `export { x as y }`: the
2117
+ * bundler keeps a doc comment attached to a declaration and drops one attached
2118
+ * to an export statement, so the release tag would not reach the published
2119
+ * types.
2120
+ *
2121
+ * @experimental
2122
+ */
2123
+ export declare const useCommandHighlight: () => string;
2124
+ /** The arms `spinnerVariants` is built from. Its type is read from them: {@link VariantsFn}. */
2125
+ declare const SPINNER_VARIANT_MAP: {
2126
+ size: {
2127
+ sm: string;
2128
+ md: string;
2129
+ lg: string;
2130
+ };
2131
+ };
1809
2132
  /**
1810
2133
  * Spinner Component - Design System Specification
1811
2134
  *
@@ -1849,28 +2172,28 @@ declare const CommandShortcut: react.ForwardRefExoticComponent<CommandShortcutPr
1849
2172
  * @example
1850
2173
  * // Custom color
1851
2174
  * <Spinner className="text-primary" />
2175
+ * @experimental
1852
2176
  */
1853
- declare const spinnerVariants: (props?: ({
1854
- size?: "sm" | "md" | "lg" | null | undefined;
1855
- } & class_variance_authority_types.ClassProp) | undefined) => string;
2177
+ declare const spinnerVariants: VariantsFn<typeof SPINNER_VARIANT_MAP>;
1856
2178
  /**
1857
2179
  * Spinner component props
1858
2180
  *
1859
2181
  * Extends LucideProps to support all standard SVG attributes (data-*, id, etc.)
1860
2182
  * while providing size variants and accessibility features.
2183
+ * @experimental
1861
2184
  */
1862
2185
  type SpinnerProps = Omit<LucideProps, "size"> & VariantProps<typeof spinnerVariants> & {
1863
- /**
1864
- * Accessible label for screen readers
1865
- * @default "Loading"
1866
- */
1867
- "aria-label"?: string;
2186
+ /**
2187
+ * Accessible label for screen readers
2188
+ * @default "Loading"
2189
+ */
2190
+ "aria-label"?: string;
1868
2191
  };
1869
2192
  /**
1870
2193
  * Spinner component for loading states
2194
+ * @experimental
1871
2195
  */
1872
- declare const Spinner: react.ForwardRefExoticComponent<Omit<SpinnerProps, "ref"> & react.RefAttributes<SVGSVGElement>>;
1873
-
2196
+ declare const Spinner: ForwardRefExoticComponent<PropsWithoutRef<SpinnerProps> & RefAttributes<SVGSVGElement>>;
1874
2197
  /**
1875
2198
  * Toaster Component - Toast Notification System
1876
2199
  *
@@ -1936,9 +2259,9 @@ declare const Spinner: react.ForwardRefExoticComponent<Omit<SpinnerProps, "ref">
1936
2259
  *
1937
2260
  * Customization:
1938
2261
  * All styling uses CSS variables from the design system:
1939
- * - --normal-bg: Background color (uses --popover with fallback)
1940
- * - --normal-text: Text color (uses --popover-foreground with fallback)
1941
- * - --normal-border: Border color (uses --border with fallback)
2262
+ * - --normal-bg: Background color (uses --nx-popover with fallback)
2263
+ * - --normal-text: Text color (uses --nx-popover-foreground with fallback)
2264
+ * - --normal-border: Border color (uses --nx-border with fallback)
1942
2265
  * - --border-radius: Border radius (uses --radius with fallback)
1943
2266
  *
1944
2267
  * Security:
@@ -1960,34 +2283,50 @@ declare const Spinner: react.ForwardRefExoticComponent<Omit<SpinnerProps, "ref">
1960
2283
  *
1961
2284
  * @see https://sonner.emilkowal.ski/ - Sonner documentation
1962
2285
  * @see https://ui.shadcn.com/docs/components/sonner - shadcn/ui integration guide
1963
- */
1964
- declare function Toaster({ theme, ...props }: ToasterProps): react_jsx_runtime.JSX.Element;
1965
-
1966
- declare const Table: react.ForwardRefExoticComponent<react.HTMLAttributes<HTMLTableElement> & react.RefAttributes<HTMLTableElement>>;
1967
- declare const TableHeader: react.ForwardRefExoticComponent<react.HTMLAttributes<HTMLTableSectionElement> & react.RefAttributes<HTMLTableSectionElement>>;
1968
- declare const TableBody: react.ForwardRefExoticComponent<react.HTMLAttributes<HTMLTableSectionElement> & react.RefAttributes<HTMLTableSectionElement>>;
1969
- declare const TableFooter: react.ForwardRefExoticComponent<react.HTMLAttributes<HTMLTableSectionElement> & react.RefAttributes<HTMLTableSectionElement>>;
1970
- declare const TableRow: react.ForwardRefExoticComponent<react.HTMLAttributes<HTMLTableRowElement> & react.RefAttributes<HTMLTableRowElement>>;
1971
- declare const TableHead: react.ForwardRefExoticComponent<react.ThHTMLAttributes<HTMLTableCellElement> & react.RefAttributes<HTMLTableCellElement>>;
1972
- declare const TableCell: react.ForwardRefExoticComponent<react.TdHTMLAttributes<HTMLTableCellElement> & react.RefAttributes<HTMLTableCellElement>>;
1973
- declare const TableCaption: react.ForwardRefExoticComponent<react.HTMLAttributes<HTMLTableCaptionElement> & react.RefAttributes<HTMLTableCaptionElement>>;
1974
-
2286
+ * @experimental
2287
+ */
2288
+ export declare function Toaster({ theme, ...props }: ToasterProps$1): JSX.Element;
2289
+ type TableProps = React$1.HTMLAttributes<HTMLTableElement>;
2290
+ /** @experimental */
2291
+ declare const Table: React$1.ForwardRefExoticComponent<React$1.PropsWithoutRef<TableProps> & React$1.RefAttributes<HTMLTableElement>>;
2292
+ type TableHeaderProps = React$1.HTMLAttributes<HTMLTableSectionElement>;
2293
+ /** @experimental */
2294
+ declare const TableHeader: React$1.ForwardRefExoticComponent<React$1.PropsWithoutRef<TableHeaderProps> & React$1.RefAttributes<HTMLTableSectionElement>>;
2295
+ type TableBodyProps = React$1.HTMLAttributes<HTMLTableSectionElement>;
2296
+ /** @experimental */
2297
+ declare const TableBody: React$1.ForwardRefExoticComponent<React$1.PropsWithoutRef<TableBodyProps> & React$1.RefAttributes<HTMLTableSectionElement>>;
2298
+ type TableFooterProps = React$1.HTMLAttributes<HTMLTableSectionElement>;
2299
+ /** @experimental */
2300
+ declare const TableFooter: React$1.ForwardRefExoticComponent<React$1.PropsWithoutRef<TableFooterProps> & React$1.RefAttributes<HTMLTableSectionElement>>;
2301
+ type TableRowProps = React$1.HTMLAttributes<HTMLTableRowElement>;
2302
+ /** @experimental */
2303
+ declare const TableRow: React$1.ForwardRefExoticComponent<React$1.PropsWithoutRef<TableRowProps> & React$1.RefAttributes<HTMLTableRowElement>>;
2304
+ type TableHeadProps = React$1.ThHTMLAttributes<HTMLTableCellElement>;
2305
+ /** @experimental */
2306
+ declare const TableHead: React$1.ForwardRefExoticComponent<React$1.PropsWithoutRef<TableHeadProps> & React$1.RefAttributes<HTMLTableCellElement>>;
2307
+ type TableCellProps = React$1.TdHTMLAttributes<HTMLTableCellElement>;
2308
+ /** @experimental */
2309
+ declare const TableCell: React$1.ForwardRefExoticComponent<React$1.PropsWithoutRef<TableCellProps> & React$1.RefAttributes<HTMLTableCellElement>>;
2310
+ type TableCaptionProps = React$1.HTMLAttributes<HTMLTableCaptionElement>;
2311
+ /** @experimental */
2312
+ declare const TableCaption: React$1.ForwardRefExoticComponent<React$1.PropsWithoutRef<TableCaptionProps> & React$1.RefAttributes<HTMLTableCaptionElement>>;
1975
2313
  /**
1976
2314
  * Props for TableSearch component
2315
+ * @experimental
1977
2316
  */
1978
2317
  interface TableSearchProps {
1979
- /** Current search value */
1980
- value: string;
1981
- /** Callback when search value changes */
1982
- onChange: (value: string) => void;
1983
- /** Callback when clear button is clicked */
1984
- onClear: () => void;
1985
- /** Placeholder text for search input */
1986
- placeholder?: string;
1987
- /** Whether data is currently loading */
1988
- isLoading?: boolean;
1989
- /** Ref to the input element */
1990
- inputRef?: React.RefObject<HTMLInputElement | null>;
2318
+ /** Current search value */
2319
+ value: string;
2320
+ /** Callback when search value changes */
2321
+ onChange: (value: string) => void;
2322
+ /** Callback when clear button is clicked */
2323
+ onClear: () => void;
2324
+ /** Placeholder text for search input */
2325
+ placeholder?: string;
2326
+ /** Whether data is currently loading */
2327
+ isLoading?: boolean;
2328
+ /** Ref to the input element */
2329
+ inputRef?: React.RefObject<HTMLInputElement | null>;
1991
2330
  }
1992
2331
  /**
1993
2332
  * Search input component for tables
@@ -2008,312 +2347,996 @@ interface TableSearchProps {
2008
2347
  * isLoading={loading}
2009
2348
  * />
2010
2349
  * ```
2350
+ * @experimental
2011
2351
  */
2012
- declare function TableSearch({ value, onChange, onClear, placeholder, isLoading, inputRef, }: TableSearchProps): react_jsx_runtime.JSX.Element;
2013
-
2352
+ export declare function TableSearch({ value, onChange, onClear, placeholder, isLoading, inputRef }: TableSearchProps): JSX.Element;
2014
2353
  /**
2015
2354
  * Props for TableError component
2355
+ * @experimental
2016
2356
  */
2017
2357
  interface TableErrorProps {
2018
- /** Error message to display */
2019
- message?: string;
2358
+ /** Error message to display */
2359
+ message?: string;
2020
2360
  }
2021
2361
  /**
2022
2362
  * Error state component for tables
2363
+ * @experimental
2023
2364
  */
2024
- declare function TableError({ message, }: TableErrorProps): react_jsx_runtime.JSX.Element;
2365
+ export declare function TableError({ message }: TableErrorProps): JSX.Element;
2025
2366
  /**
2026
2367
  * Loading state component for tables
2368
+ * @experimental
2027
2369
  */
2028
- declare function TableLoading(): react_jsx_runtime.JSX.Element;
2370
+ export declare function TableLoading(): JSX.Element;
2029
2371
  /**
2030
2372
  * Props for TableEmpty component
2373
+ * @experimental
2031
2374
  */
2032
2375
  interface TableEmptyProps {
2033
- /** Custom message to display when no data */
2034
- message?: string;
2376
+ /** Custom message to display when no data */
2377
+ message?: string;
2035
2378
  }
2036
2379
  /**
2037
2380
  * Empty state component for tables
2381
+ * @experimental
2038
2382
  */
2039
- declare function TableEmpty({ message }: TableEmptyProps): react_jsx_runtime.JSX.Element;
2040
-
2383
+ export declare function TableEmpty({ message }: TableEmptyProps): JSX.Element;
2384
+ /** @experimental */
2385
+ interface TableSkeletonProps {
2386
+ columns?: number;
2387
+ rowCount?: number;
2388
+ hideWrapper?: boolean;
2389
+ hideFooter?: boolean;
2390
+ }
2391
+ /** @experimental */
2392
+ export declare const TableSkeleton: React$1.FC<TableSkeletonProps>;
2393
+ /**
2394
+ * One preset a host offers.
2395
+ *
2396
+ * `color` is what the swatch is PAINTED with. `value` is what `onSwatchSelect`
2397
+ * hands back, unread by this component — a host storing design tokens puts its
2398
+ * own token reference there and receives it unchanged, so choosing a swatch
2399
+ * never resolves a token into the colour it currently happens to be. Without
2400
+ * that, re-theming stops moving the values that pointed at it.
2401
+ *
2402
+ * @experimental
2403
+ */
2404
+ interface ColorSwatch<TValue = string> {
2405
+ id: string;
2406
+ label: string;
2407
+ color: string;
2408
+ value?: TValue;
2409
+ }
2410
+ /**
2411
+ * Props for ColorPicker.
2412
+ * @experimental
2413
+ */
2414
+ interface ColorPickerProps<TValue = string> {
2415
+ /** The colour shown on the surface, as hex. */
2416
+ color: string;
2417
+ /** A colour was chosen by editing — surface, hue, alpha or the hex field. */
2418
+ onColorChange: (color: string) => void;
2419
+ /** Presets. Painted from `color`, returned by `value`. */
2420
+ swatches?: ColorSwatch<TValue>[];
2421
+ /**
2422
+ * A preset was chosen. Separate from `onColorChange` because only the host
2423
+ * can say what a swatch MEANS: the two are different events, and collapsing
2424
+ * them is what loses a token reference.
2425
+ */
2426
+ onSwatchSelect?: (swatch: ColorSwatch<TValue>) => void;
2427
+ /**
2428
+ * Recently used colours. Owned by the host, never by this component — the
2429
+ * admin scopes them per user, and a component writing `localStorage` at
2430
+ * render is unusable on a server and untestable without a DOM.
2431
+ */
2432
+ recentColors?: string[];
2433
+ /** Alpha channel. Off by default: most call sites want an opaque colour. */
2434
+ showAlpha?: boolean;
2435
+ className?: string;
2436
+ }
2437
+ /**
2438
+ * A colour control: a saturation square, a hue strip, optional alpha, a hex
2439
+ * field, and any presets the host supplies.
2440
+ *
2441
+ * Deliberately knows nothing about design tokens. A swatch carries an opaque
2442
+ * `value` this component never reads and hands back untouched, so a host can
2443
+ * store a token reference and keep it. That is what lets one component serve
2444
+ * both a plain colour field and a token-aware surface without either learning
2445
+ * about the other.
2446
+ *
2447
+ * @experimental
2448
+ *
2449
+ * @example
2450
+ * ```tsx
2451
+ * <ColorPicker
2452
+ * color={color}
2453
+ * onColorChange={setColor}
2454
+ * swatches={tokens.map(t => ({ id: t.name, label: t.name, color: t.value, value: { $token: t.name } }))}
2455
+ * onSwatchSelect={s => store(s.value)}
2456
+ * />
2457
+ * ```
2458
+ */
2459
+ export declare function ColorPicker<TValue = string>({ color, onColorChange, swatches, onSwatchSelect, recentColors, showAlpha, className }: ColorPickerProps<TValue>): React$1.JSX.Element;
2460
+ /** @experimental */
2041
2461
  interface PaginationMeta {
2042
- total: number;
2043
- page: number;
2044
- limit: number;
2045
- totalPages: number;
2046
- hasNext: boolean;
2047
- hasPrev: boolean;
2462
+ total: number;
2463
+ page: number;
2464
+ limit: number;
2465
+ totalPages: number;
2466
+ hasNext: boolean;
2467
+ hasPrev: boolean;
2048
2468
  }
2469
+ /** @experimental */
2049
2470
  interface SortInfo {
2050
- field: string;
2051
- direction: "asc" | "desc";
2471
+ field: string;
2472
+ direction: "asc" | "desc";
2052
2473
  }
2474
+ /** @experimental */
2053
2475
  interface FilterInfo {
2054
- search?: string;
2055
- filters?: Record<string, unknown>;
2476
+ search?: string;
2477
+ filters?: Record<string, unknown>;
2056
2478
  }
2479
+ /** @experimental */
2057
2480
  interface TableParams {
2058
- pagination: {
2059
- page: number;
2060
- pageSize: number;
2061
- };
2062
- sorting?: SortInfo[];
2063
- filters?: FilterInfo;
2481
+ pagination: {
2482
+ page: number;
2483
+ pageSize: number;
2484
+ };
2485
+ sorting?: SortInfo[];
2486
+ filters?: FilterInfo;
2064
2487
  }
2488
+ /** @experimental */
2065
2489
  interface ListResponse<TData> {
2066
- items: TData[];
2067
- meta: PaginationMeta;
2490
+ items: TData[];
2491
+ meta: PaginationMeta;
2068
2492
  }
2493
+ /** @experimental */
2069
2494
  interface PaginationConfig {
2070
- pageSize?: number;
2071
- pageSizeOptions?: number[];
2072
- showPageSizeSelector?: boolean;
2073
- maxVisiblePages?: number;
2495
+ pageSize?: number;
2496
+ pageSizeOptions?: number[];
2497
+ showPageSizeSelector?: boolean;
2498
+ maxVisiblePages?: number;
2074
2499
  }
2500
+ /** @experimental */
2075
2501
  interface ActionCallbacks<TData = unknown> {
2076
- onEdit?: (item: TData) => void;
2077
- onDelete?: (item: TData) => void;
2078
- onView?: (item: TData) => void;
2502
+ onEdit?: (item: TData) => void;
2503
+ onDelete?: (item: TData) => void;
2504
+ onView?: (item: TData) => void;
2079
2505
  }
2506
+ /** @experimental */
2080
2507
  type DataFetcher<TData> = (params: TableParams) => Promise<ListResponse<TData>>;
2081
-
2508
+ interface PortalProviderProps {
2509
+ /** The DOM element to portal overlay content into. Defaults to document.body (Radix default). */
2510
+ container: HTMLElement | null;
2511
+ children: ReactNode;
2512
+ }
2513
+ /** @public */
2514
+ declare function PortalProvider({ container, children }: PortalProviderProps): JSX.Element;
2515
+ /** @public */
2516
+ declare function usePortalContainer(): HTMLElement | undefined;
2517
+ /** @experimental */
2518
+ declare const ContextMenu: typeof ContextMenuPrimitive.Root;
2519
+ /** @experimental */
2520
+ declare const ContextMenuTrigger: typeof ContextMenuPrimitive.Trigger;
2521
+ /** @experimental */
2522
+ declare const ContextMenuGroup: typeof ContextMenuPrimitive.Group;
2523
+ /** @experimental */
2524
+ declare const ContextMenuSub: typeof ContextMenuPrimitive.Sub;
2525
+ /** @experimental */
2526
+ declare const ContextMenuRadioGroup: typeof ContextMenuPrimitive.RadioGroup;
2527
+ type ContextMenuSubTriggerProps = React$1.ComponentPropsWithoutRef<typeof ContextMenuPrimitive.SubTrigger> & {
2528
+ inset?: boolean;
2529
+ };
2530
+ /** @experimental */
2531
+ declare const ContextMenuSubTrigger: React$1.ForwardRefExoticComponent<React$1.PropsWithoutRef<ContextMenuSubTriggerProps> & React$1.RefAttributes<React$1.ElementRef<typeof ContextMenuPrimitive.SubTrigger>>>;
2532
+ type ContextMenuSubContentProps = React$1.ComponentPropsWithoutRef<typeof ContextMenuPrimitive.SubContent>;
2533
+ /** @experimental */
2534
+ declare const ContextMenuSubContent: React$1.ForwardRefExoticComponent<React$1.PropsWithoutRef<ContextMenuSubContentProps> & React$1.RefAttributes<React$1.ElementRef<typeof ContextMenuPrimitive.SubContent>>>;
2535
+ type ContextMenuContentProps = React$1.ComponentPropsWithoutRef<typeof ContextMenuPrimitive.Content>;
2536
+ /** @experimental */
2537
+ declare const ContextMenuContent: React$1.ForwardRefExoticComponent<React$1.PropsWithoutRef<ContextMenuContentProps> & React$1.RefAttributes<React$1.ElementRef<typeof ContextMenuPrimitive.Content>>>;
2538
+ type ContextMenuItemProps = React$1.ComponentPropsWithoutRef<typeof ContextMenuPrimitive.Item> & {
2539
+ inset?: boolean;
2540
+ };
2541
+ /** @experimental */
2542
+ declare const ContextMenuItem: React$1.ForwardRefExoticComponent<React$1.PropsWithoutRef<ContextMenuItemProps> & React$1.RefAttributes<React$1.ElementRef<typeof ContextMenuPrimitive.Item>>>;
2543
+ type ContextMenuCheckboxItemProps = React$1.ComponentPropsWithoutRef<typeof ContextMenuPrimitive.CheckboxItem>;
2544
+ /** @experimental */
2545
+ declare const ContextMenuCheckboxItem: React$1.ForwardRefExoticComponent<React$1.PropsWithoutRef<ContextMenuCheckboxItemProps> & React$1.RefAttributes<React$1.ElementRef<typeof ContextMenuPrimitive.CheckboxItem>>>;
2546
+ type ContextMenuRadioItemProps = React$1.ComponentPropsWithoutRef<typeof ContextMenuPrimitive.RadioItem>;
2547
+ /** @experimental */
2548
+ declare const ContextMenuRadioItem: React$1.ForwardRefExoticComponent<React$1.PropsWithoutRef<ContextMenuRadioItemProps> & React$1.RefAttributes<React$1.ElementRef<typeof ContextMenuPrimitive.RadioItem>>>;
2549
+ type ContextMenuLabelProps = React$1.ComponentPropsWithoutRef<typeof ContextMenuPrimitive.Label> & {
2550
+ inset?: boolean;
2551
+ };
2552
+ /** @experimental */
2553
+ declare const ContextMenuLabel: React$1.ForwardRefExoticComponent<React$1.PropsWithoutRef<ContextMenuLabelProps> & React$1.RefAttributes<React$1.ElementRef<typeof ContextMenuPrimitive.Label>>>;
2554
+ type ContextMenuSeparatorProps = React$1.ComponentPropsWithoutRef<typeof ContextMenuPrimitive.Separator>;
2555
+ /** @experimental */
2556
+ declare const ContextMenuSeparator: React$1.ForwardRefExoticComponent<React$1.PropsWithoutRef<ContextMenuSeparatorProps> & React$1.RefAttributes<React$1.ElementRef<typeof ContextMenuPrimitive.Separator>>>;
2557
+ /** What `ContextMenuShortcut` is: a `span` component with a `displayName`. */
2558
+ type ContextMenuShortcutComponent = {
2559
+ (props: React$1.HTMLAttributes<HTMLSpanElement>): React$1.JSX.Element;
2560
+ displayName: string;
2561
+ };
2562
+ /**
2563
+ * A keyboard shortcut hint, right-aligned in the item.
2564
+ *
2565
+ * @experimental
2566
+ */
2567
+ declare const ContextMenuShortcut: ContextMenuShortcutComponent;
2568
+ /**
2569
+ * A splitter's accessible name, which the caller must supply one way or the
2570
+ * other.
2571
+ *
2572
+ * REQUIRED rather than documented, because the handle is focusable: a keyboard
2573
+ * user lands on it whether or not anyone remembered, and an unnamed separator
2574
+ * announces its position — "74" — with nothing saying what is at 74. The
2575
+ * caller is the only one who can name it, since only the caller knows what the
2576
+ * two panels hold, so the type is the only place the requirement can live.
2577
+ *
2578
+ * Either attribute satisfies it and neither may be paired with the other: two
2579
+ * names on one element is not a stronger label, it is an ambiguity resolved by
2580
+ * precedence rules nobody writing the call site is thinking about.
2581
+ */
2582
+ type SplitterName = {
2583
+ "aria-label": string;
2584
+ "aria-labelledby"?: never;
2585
+ } | {
2586
+ "aria-labelledby": string;
2587
+ "aria-label"?: never;
2588
+ };
2589
+ /**
2590
+ * A group of resizable panels, laid out horizontally or vertically.
2591
+ *
2592
+ * @experimental
2593
+ */
2594
+ declare const ResizablePanelGroup: ({ className, ...props }: React$1.ComponentProps<typeof ResizablePrimitive.Group>) => JSX.Element;
2595
+ /**
2596
+ * One region of a panel group.
2597
+ *
2598
+ * @experimental
2599
+ */
2600
+ declare const ResizablePanel: typeof ResizablePrimitive.Panel;
2601
+ /**
2602
+ * The draggable divider between two panels.
2603
+ *
2604
+ * The visible line is 1px; the element around it is wider and transparent, so the pointer target
2605
+ * is comfortably larger than the line it appears to grab. `withGrip` adds a visible handle, which
2606
+ * is worth it on a divider people are meant to discover rather than one they already expect.
2607
+ *
2608
+ * @experimental
2609
+ */
2610
+ declare const ResizableHandle: ({ withGrip, className, children, ...props }: Omit<React$1.ComponentProps<typeof ResizablePrimitive.Separator>, "aria-label" | "aria-labelledby"> & SplitterName & {
2611
+ withGrip?: boolean;
2612
+ }) => JSX.Element;
2082
2613
  /**
2083
- * Props for TablePagination component
2084
- */
2085
- interface TablePaginationProps {
2086
- /** Pagination metadata from server */
2087
- meta: PaginationMeta;
2088
- /** Callback when page changes */
2089
- onPageChange: (page: number) => void;
2090
- /** Callback when page size changes */
2091
- onPageSizeChange: (pageSize: number) => void;
2092
- /** Pagination configuration */
2093
- config?: Required<PaginationConfig>;
2094
- /** Whether data is currently loading */
2095
- isLoading?: boolean;
2614
+ * One node of the tree. Children are omitted or empty for a leaf.
2615
+ *
2616
+ * @experimental
2617
+ */
2618
+ interface TreeNode {
2619
+ /** Stable identity. What selection and expansion are keyed by. */
2620
+ id: string;
2621
+ /** What the row shows. A string also feeds typeahead; anything else needs `textValue`. */
2622
+ label: React$1.ReactNode;
2623
+ /**
2624
+ * The text typeahead matches on, when `label` is not a string.
2625
+ *
2626
+ * Without it a row rendered as markup cannot be typed to, and a keyboard user loses the fastest
2627
+ * way through a long tree.
2628
+ */
2629
+ textValue?: string;
2630
+ /** Children, if any. An empty array still marks the node as a parent. */
2631
+ children?: readonly TreeNode[];
2632
+ /** Shown before the label, after the twisty. */
2633
+ icon?: React$1.ReactNode;
2634
+ /** Skipped by every keyboard move and not selectable. */
2635
+ disabled?: boolean;
2096
2636
  }
2097
2637
  /**
2098
- * Pagination controls for tables
2638
+ * Which gesture a row's modifiers meant.
2639
+ *
2640
+ * Named by the same three words the rest of the system uses, so a caller maps
2641
+ * them onto its own selection rules without translating. Both Meta and Control
2642
+ * mean toggle: a Mac author presses Command and a Windows author presses
2643
+ * Control, and neither ever presses the other's.
2644
+ *
2645
+ * Shift outranks the toggle modifier — a shift+mod click is a slip rather than
2646
+ * a fourth gesture, and extending is the one whose result is visible and undone
2647
+ * by a plain click.
2648
+ *
2649
+ * @experimental
2650
+ */
2651
+ type TreeSelectionMode = "replace" | "toggle" | "extend";
2652
+ /**
2653
+ * Read the gesture from the event that carried it.
2654
+ *
2655
+ * @experimental
2656
+ */
2657
+ declare function treeSelectionMode(modifiers: {
2658
+ shiftKey: boolean;
2659
+ metaKey: boolean;
2660
+ ctrlKey: boolean;
2661
+ }): TreeSelectionMode;
2662
+ /**
2663
+ * Whether a row is in the selection at all.
2664
+ *
2665
+ * A helper rather than an expression inside the render, so the multi-select
2666
+ * branch is one call there instead of a condition — a small edit to a large
2667
+ * function is what pushes it across a complexity threshold.
2668
+ *
2669
+ * `selectedIds` when the caller owns a set, the single id otherwise, so a
2670
+ * caller that has not adopted the set keeps exactly the behaviour it had.
2671
+ *
2672
+ * @experimental
2673
+ */
2674
+ declare function isRowSelected(id: string, primary: string | null | undefined, selectedIds: readonly string[] | undefined): boolean;
2675
+ /** @experimental */
2676
+ interface TreeViewProps extends Omit<React$1.HTMLAttributes<HTMLDivElement>, "onSelect"> {
2677
+ /** The roots of the tree. */
2678
+ nodes: readonly TreeNode[];
2679
+ /** Expanded node ids, if the caller owns them. */
2680
+ expandedIds?: readonly string[];
2681
+ /** Which ids start expanded when the caller does not own expansion. */
2682
+ defaultExpandedIds?: readonly string[];
2683
+ /** Called with the full next set whenever a branch opens or closes. */
2684
+ onExpandedChange?: (ids: string[]) => void;
2685
+ /**
2686
+ * The selected node id, if the caller owns it.
2687
+ *
2688
+ * With `selectedIds` also supplied this is the PRIMARY — the row a detail
2689
+ * panel answers for. Drawn at a heavier weight so a reader can tell which
2690
+ * member of a multi-row selection the rest of the screen describes.
2691
+ */
2692
+ selectedId?: string | null;
2693
+ /**
2694
+ * Every selected id, when the caller holds more than one.
2695
+ *
2696
+ * Additive: omit it and the tree behaves exactly as it did. Supplying it also
2697
+ * makes the tree announce itself as `aria-multiselectable`, which is why it
2698
+ * is a separate prop rather than inferred — a single-select tree claiming to
2699
+ * be multi-selectable is wrong in a way a screen-reader user acts on.
2700
+ */
2701
+ selectedIds?: readonly string[];
2702
+ /** Which id starts selected when the caller does not own selection. */
2703
+ defaultSelectedId?: string | null;
2704
+ /** Called when a row is chosen, by pointer or by Enter. */
2705
+ onSelectedChange?: (id: string, mode: TreeSelectionMode) => void;
2706
+ /**
2707
+ * Names the tree for a screen reader. One of this or `aria-labelledby` is required: a tree
2708
+ * announced only as "tree" tells a user nothing about which one they are in.
2709
+ */
2710
+ "aria-label"?: string;
2711
+ }
2712
+ /**
2713
+ * A virtualized tree.
2714
+ *
2715
+ * @experimental
2099
2716
  */
2100
- declare function TablePagination({ meta, onPageChange, onPageSizeChange, config, isLoading, }: TablePaginationProps): react_jsx_runtime.JSX.Element;
2101
-
2717
+ declare const TreeView: React$1.ForwardRefExoticComponent<React$1.PropsWithoutRef<TreeViewProps> & React$1.RefAttributes<HTMLDivElement>>;
2102
2718
  /**
2103
- * TableSkeleton Component
2719
+ * The assistive-technology attributes a single thumb can carry.
2104
2720
  *
2105
- * Generic loading skeleton for data tables.
2106
- * Renders header, body, and footer skeleton bars inside a card.
2107
- * Unified with EntryTable skeleton pattern for consistency across all tables.
2721
+ * @experimental
2108
2722
  */
2109
-
2110
- interface TableSkeletonProps {
2111
- columns?: number;
2112
- rowCount?: number;
2113
- hideWrapper?: boolean;
2114
- hideFooter?: boolean;
2723
+ interface SliderThumbProps {
2724
+ /** The thumb's accessible name. */
2725
+ "aria-label"?: string;
2726
+ /** An element naming the thumb, when the name is already on screen. */
2727
+ "aria-labelledby"?: string;
2728
+ /**
2729
+ * What the value MEANS, when the number alone does not say it — "40
2730
+ * percent", "Medium". Announced in place of the raw number.
2731
+ */
2732
+ "aria-valuetext"?: string;
2733
+ /** An element carrying help text for this thumb. */
2734
+ "aria-describedby"?: string;
2735
+ }
2736
+ /**
2737
+ * The slider's props, mirroring the Radix root.
2738
+ *
2739
+ * @experimental
2740
+ */
2741
+ type SliderProps = Omit<React$1.ComponentPropsWithoutRef<typeof SliderPrimitive.Root>, "asChild"> & {
2742
+ /**
2743
+ * Assistive-technology attributes per thumb, in value order.
2744
+ *
2745
+ * The reason this exists at all: the focusable element with the `slider`
2746
+ * role is the THUMB, and none of these attributes are inherited from the
2747
+ * root. Anything a caller puts on the root is therefore announced by
2748
+ * nothing, and the thumbs are generated internally so they cannot be
2749
+ * reached any other way.
2750
+ *
2751
+ * Deliberately a curated set rather than the thumb's full prop type. This
2752
+ * is the surface assistive technology reads; opening it to arbitrary props
2753
+ * would let a caller replace the class names or the role the control
2754
+ * depends on, and every escape hatch in a design system eventually gets
2755
+ * used that way.
2756
+ *
2757
+ * Required for a RANGE: two thumbs sharing one name are announced
2758
+ * identically, so nothing says which end is held. A single thumb falls back
2759
+ * to the root's `aria-label`/`aria-labelledby`, so the one-thumb API stays
2760
+ * as documented.
2761
+ */
2762
+ thumbs?: readonly SliderThumbProps[];
2763
+ };
2764
+ /**
2765
+ * A bounded numeric value chosen by dragging.
2766
+ *
2767
+ * @experimental
2768
+ */
2769
+ declare const Slider: React$1.ForwardRefExoticComponent<React$1.PropsWithoutRef<SliderProps> & React$1.RefAttributes<React$1.ElementRef<typeof SliderPrimitive.Root>>>;
2770
+ /**
2771
+ * One shortcut and what it does.
2772
+ *
2773
+ * @experimental
2774
+ */
2775
+ interface ShortcutBinding {
2776
+ /** The keys, as understood by `parseKeys` — `"mod+s"`, `"Escape"`, `"g d"`. */
2777
+ keys: string;
2778
+ /**
2779
+ * What this does, in words, for a shortcuts help panel. Required because an undiscoverable
2780
+ * shortcut helps only the person who wrote it.
2781
+ */
2782
+ description: string;
2783
+ /** Runs when the shortcut fires. */
2784
+ run: (event: KeyboardEvent) => void;
2785
+ /** Checked at press time; a binding whose condition is false is skipped and passes the key on. */
2786
+ when?: () => boolean;
2787
+ /**
2788
+ * Whether this fires while the user is typing in a field.
2789
+ *
2790
+ * Defaults to true for bindings whose FIRST chord carries a non-shift modifier or is Escape,
2791
+ * and false otherwise — the rule nearly every application converges on. `mod+s` must save
2792
+ * mid-sentence and Escape must dismiss, while a bare `n` must be able to be the letter n.
2793
+ *
2794
+ * The first chord decides because it is the keystroke that has to be taken from the field.
2795
+ * `mod+k c` is a command from its opening chord, so its bare `c` completes it in an input. A
2796
+ * sequence that OPENS on a plain character cannot fire while typing whatever it ends with:
2797
+ * allowing `g Escape` would mean swallowing the `g` of every word containing one.
2798
+ */
2799
+ whenTyping?: boolean;
2800
+ /** Whether to call `preventDefault()` when it fires. Defaults to true. */
2801
+ preventDefault?: boolean;
2802
+ }
2803
+ /**
2804
+ * How a layer behaves for keys it does not bind.
2805
+ *
2806
+ * @experimental
2807
+ */
2808
+ interface ShortcutLayerOptions {
2809
+ /** Identifies the layer in diagnostics and in a help panel. */
2810
+ name: string;
2811
+ /** Precedence: deeper layers are offered keystrokes first. */
2812
+ depth: number;
2813
+ /**
2814
+ * Whether unmatched keys stop here instead of reaching layers beneath.
2815
+ *
2816
+ * The reason a drag can be interrupted safely: everything below is inert for as long as this
2817
+ * is set, so no other context can act on a keystroke aimed at this one.
2818
+ */
2819
+ blocking?: boolean;
2820
+ /**
2821
+ * Sorted ABOVE depth, so a layer can outrank one nested deeper than itself.
2822
+ *
2823
+ * Depth alone cannot express a modal. A modal wants to sit above every ordinary layer, but the
2824
+ * host chooses how deeply its own shortcuts are scoped, so any depth a modal picks can be tied
2825
+ * or beaten by a scope the host nests one level further. Priority is the axis the host does not
2826
+ * control: ordinary layers leave it at 0 and a modal raises it.
2827
+ *
2828
+ * KNOWN LIMIT, stated so it is not discovered: layers at EQUAL priority still compare depth
2829
+ * before registration order. Two modals therefore stack by how deeply each is scoped rather
2830
+ * than by which opened last, so a modal opened later at a shallower depth can sit under one
2831
+ * opened earlier and nested deeper — while whatever renders them puts the newer on top.
2832
+ *
2833
+ * Fixing it needs the manager to record when a layer is ACTIVATED, which registration order
2834
+ * does not capture: `useShortcuts` registers once at mount and updates its options in place, so
2835
+ * a layer enabled later still carries its mount-time sequence. Not attempted here because
2836
+ * nothing reaches it yet: the layers that raise priority are modal HOLDS, and a hold blocks the
2837
+ * keystroke that would open the next one — the command palette cannot be summoned over a dialog
2838
+ * that is already holding, so two of them are not both active for a keystroke to be resolved
2839
+ * between.
2840
+ */
2841
+ priority?: number;
2842
+ /** Whether the layer participates at all. A disabled layer neither matches nor blocks. */
2843
+ enabled?: boolean;
2115
2844
  }
2116
- declare const TableSkeleton: react.FC<TableSkeletonProps>;
2117
-
2118
2845
  /**
2119
- * Column definition for ResponsiveTable
2846
+ * A layer's registration, held by whoever created it.
2120
2847
  *
2121
- * Provides type-safe column definitions with proper type narrowing for render functions.
2848
+ * @experimental
2849
+ */
2850
+ interface ShortcutRegistration {
2851
+ /** Replace this layer's bindings and options without changing its precedence. */
2852
+ update: (bindings: readonly ShortcutBinding[], options: ShortcutLayerOptions) => void;
2853
+ /** Remove the layer. */
2854
+ dispose: () => void;
2855
+ }
2856
+ /**
2857
+ * Options for creating a manager.
2122
2858
  *
2123
- * @template T - The data type of items in the table
2124
- * @template K - The specific key from T (defaults to any key of T)
2859
+ * @experimental
2860
+ */
2861
+ interface ShortcutManagerOptions {
2862
+ /** Whether `mod` means Command. Detected from the platform when omitted. */
2863
+ isApple?: boolean;
2864
+ /** How long a partially typed sequence waits for its next key, in milliseconds. */
2865
+ sequenceTimeoutMs?: number;
2866
+ /** Clock source, for tests that need to control sequence expiry. */
2867
+ now?: () => number;
2868
+ }
2869
+ /**
2870
+ * A shortcut manager: the registry, the matcher, and the one listener.
2871
+ *
2872
+ * @experimental
2873
+ */
2874
+ interface ShortcutManager {
2875
+ /** Add a layer. */
2876
+ register: (bindings: readonly ShortcutBinding[], options: ShortcutLayerOptions) => ShortcutRegistration;
2877
+ /**
2878
+ * Offer a keystroke to the stack. Returns whether it was consumed.
2879
+ *
2880
+ * Public so the behaviour can be tested without a DOM, and so a host that already owns its
2881
+ * event plumbing can drive the manager itself.
2882
+ */
2883
+ handle: (event: KeyboardEvent) => boolean;
2884
+ /** Install the single listener on a target, returning a function that removes it. */
2885
+ attach: (target: Pick<EventTarget, "addEventListener" | "removeEventListener">) => () => void;
2886
+ /**
2887
+ * Every active binding, most-precedent layer first, for a shortcuts help panel.
2888
+ *
2889
+ * The same array is returned until the layer stack changes, so it is safe to use as an external
2890
+ * store snapshot without re-rendering on every read.
2891
+ */
2892
+ activeBindings: () => readonly ActiveShortcut[];
2893
+ /**
2894
+ * Watch for changes to the layer stack.
2895
+ *
2896
+ * A help panel mounting alongside the components that register shortcuts would otherwise read
2897
+ * BEFORE their effects run and show nothing, with no later render to correct it.
2898
+ */
2899
+ subscribe: (onChange: () => void) => () => void;
2900
+ }
2901
+ /**
2902
+ * A binding as presented to a help panel, with the layer it came from.
2125
2903
  *
2126
- * @example
2127
- * ```tsx
2128
- * interface User {
2129
- * id: string;
2130
- * name: string;
2131
- * age: number;
2132
- * }
2904
+ * @experimental
2905
+ */
2906
+ interface ActiveShortcut {
2907
+ keys: string;
2908
+ description: string;
2909
+ layer: string;
2910
+ }
2911
+ /**
2912
+ * Create a shortcut manager.
2133
2913
  *
2134
- * // Type-safe column definition with proper inference
2135
- * const columns: Column<User>[] = [
2136
- * {
2137
- * key: "name",
2138
- * label: "Name",
2139
- * // value is inferred as string, not string | number
2140
- * render: (value, user) => <strong>{value}</strong>
2141
- * },
2142
- * {
2143
- * key: "age",
2144
- * label: "Age",
2145
- * // value is inferred as number, not string | number
2146
- * render: (value) => `${value} years old`
2147
- * }
2148
- * ];
2149
- * ```
2914
+ * @experimental
2150
2915
  */
2151
- type Column<T, K extends keyof T = keyof T> = {
2152
- /** Unique key for the column (must match a property in T) */
2153
- key: K;
2154
- /** Display label for the column header */
2155
- label: react.ReactNode;
2156
- /** Optional custom renderer for cell content with type-safe value */
2157
- render?: (value: T[K], item: T) => react.ReactNode;
2158
- /** Hide column on mobile card view (optional, default: false) */
2159
- hideOnMobile?: boolean;
2160
- /** Hide the label on mobile card view (optional, default: false) */
2161
- hideLabelOnMobile?: boolean;
2162
- /** Optional custom className for the table header cell */
2163
- headerClassName?: string;
2164
- /** Optional custom className for the table body cell */
2165
- cellClassName?: string;
2166
- };
2916
+ export declare function createShortcutManager(options?: ShortcutManagerOptions): ShortcutManager;
2167
2917
  /**
2168
- * Props for ResponsiveTable component
2169
- *
2170
- * @template T - The data type of items in the table, must have an 'id' property
2171
- */
2172
- type ResponsiveTableProps<T extends {
2173
- id: string;
2174
- }> = {
2175
- /** Array of data items to display */
2176
- data: T[];
2177
- /** Array of column definitions */
2178
- columns: Column<T>[];
2179
- /** Optional callback when a row/card is clicked */
2180
- onRowClick?: (item: T) => void;
2181
- /** Optional custom renderer for mobile card view */
2182
- renderMobileCard?: (item: T, columns: Column<T>[]) => react.ReactNode;
2183
- /** Optional custom className for the container */
2184
- className?: string;
2185
- /** Optional empty state message */
2186
- emptyMessage?: string;
2187
- /** Optional ARIA label for the table (improves screen reader experience) */
2188
- ariaLabel?: string;
2189
- /** Optional custom className for the internal desktop table wrapper */
2190
- tableWrapperClassName?: string;
2191
- /** Optional footer content rendered inside the table card (e.g. Pagination) */
2192
- footer?: react.ReactNode;
2193
- };
2918
+ * Props for {@link ShortcutProvider}.
2919
+ *
2920
+ * @experimental
2921
+ */
2922
+ interface ShortcutProviderProps extends ShortcutManagerOptions {
2923
+ children?: React$1.ReactNode;
2924
+ /**
2925
+ * Where the listener is installed. Defaults to `document`.
2926
+ *
2927
+ * The bubble phase is deliberate: a component that handles its own keys and calls
2928
+ * `stopPropagation` wins without knowing this exists, because React attaches its handlers
2929
+ * below `document`.
2930
+ */
2931
+ target?: Pick<EventTarget, "addEventListener" | "removeEventListener"> | null;
2932
+ }
2933
+ /**
2934
+ * Installs the application's one keydown listener and roots the layer stack.
2935
+ *
2936
+ * @experimental
2937
+ */
2938
+ export declare function ShortcutProvider({ children, target, ...managerOptions }: ShortcutProviderProps): React$1.JSX.Element;
2194
2939
  /**
2195
- * Ref type for ResponsiveTable component
2940
+ * Raises the precedence of everything inside it by one level.
2941
+ *
2942
+ * @experimental
2196
2943
  */
2197
- type ResponsiveTableRef = HTMLDivElement;
2198
-
2199
- declare const ResponsiveTable: <T extends {
2200
- id: string;
2201
- }>(props: ResponsiveTableProps<T> & {
2202
- ref?: react.ForwardedRef<HTMLDivElement>;
2203
- }) => react.ReactElement;
2204
-
2205
- interface PortalProviderProps {
2206
- /** The DOM element to portal overlay content into. Defaults to document.body (Radix default). */
2207
- container: HTMLElement | null;
2208
- children: ReactNode;
2944
+ export declare function ShortcutScope({ children }: {
2945
+ children?: React$1.ReactNode;
2946
+ }): React$1.JSX.Element;
2947
+ /**
2948
+ * Options for {@link useShortcuts}, minus the depth, which comes from the tree.
2949
+ *
2950
+ * @experimental
2951
+ */
2952
+ interface UseShortcutsOptions {
2953
+ /** Identifies this layer in a help panel. */
2954
+ name: string;
2955
+ /** Whether the layer participates. A disabled layer neither matches nor blocks. */
2956
+ enabled?: boolean;
2957
+ /**
2958
+ * Whether unmatched keys stop here rather than reaching layers beneath.
2959
+ *
2960
+ * Set this while a drag or a modal interaction owns the keyboard.
2961
+ */
2962
+ blocking?: boolean;
2963
+ /**
2964
+ * Sorted ABOVE depth, so a layer can outrank one nested deeper than itself.
2965
+ *
2966
+ * For a modal, whose hold must not be tied or beaten by a host scoping its own shortcuts one
2967
+ * level further. Ordinary layers leave this alone.
2968
+ */
2969
+ priority?: number;
2209
2970
  }
2210
- declare function PortalProvider({ container, children }: PortalProviderProps): react_jsx_runtime.JSX.Element;
2211
- declare function usePortalContainer(): HTMLElement | undefined;
2212
-
2213
2971
  /**
2214
- * Utility function to merge class names with Tailwind CSS support.
2972
+ * Register shortcuts for as long as the calling component is mounted.
2215
2973
  *
2216
- * Combines clsx for conditional class names with tailwind-merge
2217
- * to properly handle Tailwind CSS class conflicts.
2974
+ * The bindings array may be rebuilt on every render; it is re-read in place rather than
2975
+ * re-registered, so inline closures are fine and the layer keeps its position in the stack.
2218
2976
  *
2219
- * @example
2220
- * ```typescript
2221
- * cn('px-2 py-1', 'px-4') // => 'py-1 px-4'
2222
- * cn('text-red-500', condition && 'text-blue-500')
2223
- * ```
2977
+ * @experimental
2224
2978
  */
2225
- declare function cn(...inputs: ClassValue[]): string;
2226
-
2979
+ export declare function useShortcuts(bindings: readonly ShortcutBinding[], options: UseShortcutsOptions): void;
2227
2980
  /**
2228
- * Tailwind CSS preset for @nextlyhq/ui components.
2229
- *
2230
- * Defines the CSS custom property contract that all UI components expect.
2231
- * Consumers must provide the actual CSS variable values in their stylesheets.
2232
- *
2233
- * Usage (Tailwind v3):
2234
- * // tailwind.config.ts
2235
- * import uiPreset from "@nextlyhq/ui/tailwind-preset";
2236
- * export default { presets: [uiPreset], ... };
2237
- *
2238
- * Usage (Tailwind v4 with @config):
2239
- * Consumers define the equivalent @theme tokens in their CSS.
2240
- * This file serves as the reference contract.
2241
- */
2242
- declare const uiPreset: {
2243
- theme: {
2244
- extend: {
2245
- colors: {
2246
- border: string;
2247
- input: string;
2248
- ring: string;
2249
- background: string;
2250
- foreground: string;
2251
- primary: {
2252
- DEFAULT: string;
2253
- foreground: string;
2254
- };
2255
- secondary: {
2256
- DEFAULT: string;
2257
- foreground: string;
2258
- };
2259
- destructive: {
2260
- DEFAULT: string;
2261
- foreground: string;
2262
- };
2263
- success: {
2264
- DEFAULT: string;
2265
- foreground: string;
2266
- };
2267
- warning: {
2268
- DEFAULT: string;
2269
- foreground: string;
2270
- };
2271
- muted: {
2272
- DEFAULT: string;
2273
- foreground: string;
2274
- };
2275
- accent: {
2276
- DEFAULT: string;
2277
- foreground: string;
2278
- };
2279
- popover: {
2280
- DEFAULT: string;
2281
- foreground: string;
2282
- };
2283
- card: {
2284
- DEFAULT: string;
2285
- foreground: string;
2286
- };
2287
- };
2288
- borderRadius: {
2289
- lg: string;
2290
- md: string;
2291
- sm: string;
2292
- };
2293
- keyframes: {
2294
- "accordion-down": {
2295
- from: {
2296
- height: string;
2297
- };
2298
- to: {
2299
- height: string;
2300
- };
2301
- };
2302
- "accordion-up": {
2303
- from: {
2304
- height: string;
2305
- };
2306
- to: {
2307
- height: string;
2308
- };
2309
- };
2310
- };
2311
- animation: {
2312
- "accordion-down": string;
2313
- "accordion-up": string;
2314
- };
2315
- };
2316
- };
2317
- };
2318
-
2319
- export { Accordion, AccordionContent, type AccordionContentProps, AccordionItem, type AccordionItemProps, type AccordionProps, AccordionTrigger, type AccordionTriggerProps, type ActionCallbacks, Alert, AlertDescription, type AlertDescriptionProps, AlertDialog, AlertDialogAction, type AlertDialogActionProps, AlertDialogCancel, type AlertDialogCancelProps, AlertDialogContent, type AlertDialogContentProps, AlertDialogDescription, type AlertDialogDescriptionProps, AlertDialogFooter, type AlertDialogFooterProps, AlertDialogHeader, type AlertDialogHeaderProps, AlertDialogOverlay, type AlertDialogOverlayProps, AlertDialogPortal, AlertDialogTitle, type AlertDialogTitleProps, AlertDialogTrigger, type AlertProps, AlertTitle, type AlertTitleProps, Avatar, AvatarFallback, type AvatarFallbackProps, AvatarImage, type AvatarImageProps, type AvatarProps, Badge, type BadgeProps, Button, type ButtonProps, Card, CardAction, type CardActionProps, CardContent, type CardContentProps, CardDescription, type CardDescriptionProps, CardFooter, type CardFooterProps, CardHeader, type CardHeaderProps, type CardProps, CardTitle, type CardTitleProps, Checkbox, Collapsible, CollapsibleContent, CollapsibleTrigger, type Column, Command, CommandDialog, type CommandDialogProps, CommandEmpty, type CommandEmptyProps, CommandGroup, type CommandGroupProps, CommandInput, type CommandInputProps, CommandItem, type CommandItemProps, CommandList, type CommandListProps, type CommandProps, CommandSeparator, type CommandSeparatorProps, CommandShortcut, type CommandShortcutProps, type DataFetcher, Dialog, DialogClose, DialogContent, type DialogContentProps, DialogDescription, type DialogDescriptionProps, DialogFooter, type DialogFooterProps, DialogHeader, type DialogHeaderProps, DialogOverlay, type DialogOverlayProps, DialogPortal, DialogTitle, type DialogTitleProps, DialogTrigger, DropdownMenu, DropdownMenuCheckboxItem, type DropdownMenuCheckboxItemProps, DropdownMenuContent, type DropdownMenuContentProps, DropdownMenuGroup, DropdownMenuItem, type DropdownMenuItemProps, DropdownMenuLabel, type DropdownMenuLabelProps, DropdownMenuPortal, DropdownMenuRadioGroup, DropdownMenuRadioItem, type DropdownMenuRadioItemProps, DropdownMenuSeparator, type DropdownMenuSeparatorProps, DropdownMenuShortcut, type DropdownMenuShortcutProps, DropdownMenuSub, DropdownMenuSubContent, type DropdownMenuSubContentProps, DropdownMenuSubTrigger, type DropdownMenuSubTriggerProps, DropdownMenuTrigger, type FilterInfo, Input, type InputProps, Label, type ListResponse, type PaginationConfig, type PaginationMeta, Popover, PopoverAnchor, PopoverContent, PopoverTrigger, PortalProvider, Progress, type ProgressProps, RadioGroup, RadioGroupItem, ResponsiveTable, type ResponsiveTableProps, type ResponsiveTableRef, Select, SelectContent, SelectGroup, SelectItem, SelectLabel, SelectScrollDownButton, SelectScrollUpButton, SelectSeparator, SelectTrigger, type SelectTriggerProps, SelectValue, Separator, Sheet, SheetClose, type SheetCloseProps, SheetContent, type SheetContentProps, type SheetContentRef, SheetDescription, type SheetDescriptionProps, type SheetDescriptionRef, SheetFooter, type SheetFooterProps, SheetHeader, type SheetHeaderProps, SheetOverlay, type SheetOverlayProps, type SheetOverlayRef, SheetPortal, type SheetProps, SheetTitle, type SheetTitleProps, type SheetTitleRef, SheetTrigger, type SheetTriggerProps, Skeleton, type SkeletonProps, type SortInfo, Spinner, type SpinnerProps, Switch, Table, TableBody, TableCaption, TableCell, TableEmpty, type TableEmptyProps, TableError, type TableErrorProps, TableFooter, TableHead, TableHeader, TableLoading, TablePagination, type TablePaginationProps, type TableParams, TableRow, TableSearch, type TableSearchProps, TableSkeleton, type TableSkeletonProps, Tabs, TabsContent, type TabsContentProps, TabsList, type TabsListProps, type TabsProps, TabsTrigger, type TabsTriggerProps, Textarea, Toaster, Tooltip, TooltipContent, TooltipProvider, TooltipTrigger, alertVariants, avatarVariants, badgeVariants, buttonVariants, cardVariants, cn, dialogContentVariants, inputVariants, progressVariants, selectTriggerVariants, sheetVariants, spinnerVariants, uiPreset, usePortalContainer };
2981
+ * The manager itself, for a help panel that lists what is currently bound.
2982
+ *
2983
+ * @experimental
2984
+ */
2985
+ export declare function useShortcutManager(): ShortcutManager;
2986
+ /**
2987
+ * The shortcuts currently in effect, most precedent first.
2988
+ *
2989
+ * SUBSCRIBED rather than read once. A help panel mounting alongside the components that register
2990
+ * shortcuts reads before their effects have run, so a one-time read returns an empty list and no
2991
+ * later render corrects it — the panel simply shows nothing. The same applies whenever a layer is
2992
+ * enabled, disabled or replaced while the panel is open.
2993
+ *
2994
+ * The manager returns the same array until its stack changes, so this re-renders when the
2995
+ * shortcuts change and not on every read.
2996
+ *
2997
+ * @experimental
2998
+ */
2999
+ export declare function useActiveShortcuts(): readonly ActiveShortcut[];
3000
+ /**
3001
+ * A layout effect in the browser, a plain effect where there is no DOM.
3002
+ *
3003
+ * These components are client code, but a consumer may still PRERENDER them,
3004
+ * and React warns that `useLayoutEffect` does nothing on the server. Layout
3005
+ * timing is what the browser needs wherever an effect has to be settled before
3006
+ * anything else can observe it — a registration that must exist before the
3007
+ * first frame, or a native listener that must be the current one before the
3008
+ * next event reaches it. Neither effect runs during a server render, so
3009
+ * choosing between them by environment loses nothing and silences a warning
3010
+ * that reports no real problem.
3011
+ *
3012
+ * Published rather than kept beside its first caller, because a second one
3013
+ * arrived: two spellings of this choice would drift the first time either
3014
+ * learned something about a new environment. A third now lives in another
3015
+ * package, which is why it leaves this one through the barrel.
3016
+ *
3017
+ * @experimental
3018
+ */
3019
+ export declare const useIsomorphicLayoutEffect: typeof React$1.useLayoutEffect;
3020
+ /**
3021
+ * Parsing and matching for keyboard shortcut specifications.
3022
+ *
3023
+ * A spec is written the way it is spoken: `"mod+s"`, `"Escape"`, `"shift+alt+f"`, and — for a
3024
+ * sequence — `"g d"`, meaning `g` then `d`. Steps are separated by spaces; within a step,
3025
+ * modifiers are joined to the key with `+`.
3026
+ *
3027
+ * The space bar is written `"Space"`, because the character the browser reports for it is `" "`
3028
+ * and a spec split on whitespace has no way to carry that.
3029
+ *
3030
+ * **`mod` is the point of this module.** It resolves to Command on Apple platforms and Control
3031
+ * everywhere else, so a binding is written once. Writing `ctrl` or `meta` explicitly is still
3032
+ * possible and then means exactly that, which is what lets a platform-specific binding coexist
3033
+ * with a portable one — a distinction lost by any implementation that treats the two as
3034
+ * interchangeable.
3035
+ *
3036
+ * @module lib/shortcuts/key-spec
3037
+ */
3038
+ /**
3039
+ * One keystroke: a key plus the modifier state required with it.
3040
+ *
3041
+ * @experimental
3042
+ */
3043
+ interface KeyChord {
3044
+ /** The `KeyboardEvent.key` value, normalized to lower case for single characters. */
3045
+ readonly key: string;
3046
+ /** Command on Apple platforms, Control elsewhere. */
3047
+ readonly mod: boolean;
3048
+ readonly ctrl: boolean;
3049
+ readonly meta: boolean;
3050
+ readonly alt: boolean;
3051
+ readonly shift: boolean;
3052
+ }
3053
+ /**
3054
+ * A shortcut: one chord, or several pressed in order.
3055
+ *
3056
+ * @experimental
3057
+ */
3058
+ type KeySequence = readonly KeyChord[];
3059
+ /**
3060
+ * Whether shift is part of what a caller can meaningfully require for this key.
3061
+ *
3062
+ * On a US layout `?` is already Shift+/, so the browser reports `key: "?"` with `shiftKey: true`.
3063
+ * A spec of `"?"` must therefore match an event that carries shift, or the most natural way to
3064
+ * write the binding would never fire. For letters and named keys the opposite holds: `"s"` must
3065
+ * NOT match Shift+S, or a binding would swallow a keystroke its author never claimed.
3066
+ *
3067
+ * The dividing line is whether the character itself already encodes the shift.
3068
+ */
3069
+ declare function shiftIsMeaningful(key: string): boolean;
3070
+ /**
3071
+ * Parse a spec into the sequence of chords it describes.
3072
+ *
3073
+ * @param spec - For example `"mod+s"`, `"Escape"`, or `"g d"`.
3074
+ * @throws If the spec is empty, or a step names modifiers but no key.
3075
+ *
3076
+ * @experimental
3077
+ */
3078
+ export declare function parseKeys(spec: string): KeySequence;
3079
+ /**
3080
+ * The modifier state an event carries, with `mod` already resolved for the platform.
3081
+ *
3082
+ * @experimental
3083
+ */
3084
+ interface ModifierState {
3085
+ readonly ctrlKey: boolean;
3086
+ readonly metaKey: boolean;
3087
+ readonly altKey: boolean;
3088
+ readonly shiftKey: boolean;
3089
+ /** Optional, so a caller driving the matcher by hand need not synthesise one. */
3090
+ readonly getModifierState?: (key: string) => boolean;
3091
+ }
3092
+ /**
3093
+ * Whether a chord describes the given keystroke.
3094
+ *
3095
+ * Modifiers are matched EXACTLY rather than as a minimum: a binding for `s` must not fire on
3096
+ * `mod+s`, which is a different shortcut and very often a destructive one.
3097
+ *
3098
+ * @param chord - The chord to test.
3099
+ * @param key - The event's `key`.
3100
+ * @param state - The event's modifier flags.
3101
+ * @param isApple - Whether `mod` should resolve to Command rather than Control.
3102
+ *
3103
+ * @experimental
3104
+ */
3105
+ export declare function chordMatches(chord: KeyChord, key: string, state: ModifierState, isApple: boolean): boolean;
3106
+ /**
3107
+ * Whether this platform uses Command as its primary modifier.
3108
+ *
3109
+ * Reads the modern `userAgentData` hint before the deprecated `navigator.platform`, and answers
3110
+ * `false` when neither exists — the non-Apple default is also the correct answer for a server
3111
+ * render, where no keystroke can arrive.
3112
+ *
3113
+ * @experimental
3114
+ */
3115
+ export declare function detectApplePlatform(): boolean;
3116
+ /**
3117
+ * How wide a field's CONTROL may grow.
3118
+ *
3119
+ * Named rather than measured so a page cannot invent a one-off width, which is
3120
+ * how the eight admin forms diverged. The caps read from custom properties with
3121
+ * literal fallbacks, so a theme can retune them centrally without this file
3122
+ * changing and without a page overriding them locally.
3123
+ * @experimental
3124
+ */
3125
+ type FieldWidth = "half" | "full" | "fill";
3126
+ /**
3127
+ * The wiring `FieldShell` computes for its control: the id to attach, the
3128
+ * composed `aria-describedby` (`undefined` when nothing is rendered to point
3129
+ * at), and whether a rendered `error` forces the control invalid (`undefined`
3130
+ * when there is no error to force one way or the other).
3131
+ *
3132
+ * A render-function `children` (see `FieldShellProps`) receives exactly this
3133
+ * object — the SAME computation the element-clone path derives its
3134
+ * `cloneElement` overrides from — so a caller wiring a compound control (a
3135
+ * Radix `Select`'s trigger, for example) gets precisely the values the
3136
+ * simple, single-element case would have applied.
3137
+ * @experimental
3138
+ */
3139
+ interface FieldShellRenderProps {
3140
+ id: string;
3141
+ describedBy: string | undefined;
3142
+ invalid: boolean | undefined;
3143
+ }
3144
+ /** @experimental */
3145
+ interface FieldShellProps {
3146
+ label?: React.ReactNode;
3147
+ /** Helper text under the control. Rendered only when present. */
3148
+ description?: React.ReactNode;
3149
+ /** Validation message under the control. Rendered only when present. */
3150
+ error?: React.ReactNode;
3151
+ /** Defaults to "half": most admin inputs are short values. */
3152
+ width?: FieldWidth;
3153
+ htmlFor?: string;
3154
+ className?: string;
3155
+ /**
3156
+ * Either a single element to clone, or a function that receives the
3157
+ * computed wiring and applies it itself.
3158
+ *
3159
+ * The element form is `FieldShell` cloning it with `cloneElement` to
3160
+ * attach the id, `aria-describedby` and `aria-invalid` it computes —
3161
+ * unchanged from before, and still the right choice for an atomic control
3162
+ * (`Input`, `Textarea`, `Switch`) that spreads its own props onto a real
3163
+ * DOM node. Typing this branch as `ReactNode` would let a composite field
3164
+ * (two inputs with a unit between them, for example) compile and then
3165
+ * crash on mount, so it stays a single `ReactElement` — wrap several
3166
+ * elements in one real element, a `<div>`, not a `<Fragment>`: a Fragment
3167
+ * forwards none of those props to what is inside it.
3168
+ *
3169
+ * The function form exists for a compound control built on a Radix `Root`
3170
+ * (`Select`, and by the same shape `RadioGroup`): `Root` destructures a
3171
+ * fixed, named prop list and never spreads the remainder, so `id` handed
3172
+ * to it via `cloneElement` is silently dropped rather than reaching the
3173
+ * actual focusable element two levels down (`Select` > `SelectTrigger` >
3174
+ * `SelectValue`). A render function is called with `FieldShellRenderProps`
3175
+ * and applies `id`/`describedBy`/`invalid` to whichever nested element is
3176
+ * the real control, instead of relying on a single top-level clone that
3177
+ * can never reach it.
3178
+ */
3179
+ children: React.ReactElement | ((field: FieldShellRenderProps) => React.ReactNode);
3180
+ }
3181
+ /** @experimental */
3182
+ interface FormActionsProps {
3183
+ /**
3184
+ * Whether the form has unsaved changes. Supplied by the page from the form
3185
+ * state that already tracks it; never computed here.
3186
+ */
3187
+ dirty?: boolean;
3188
+ className?: string;
3189
+ children: React.ReactNode;
3190
+ }
3191
+ /** @experimental */
3192
+ export declare function FieldShell({ label, description, error, width, htmlFor, className, children }: FieldShellProps): JSX.Element;
3193
+ /** @experimental */
3194
+ interface FormSectionProps {
3195
+ /** Short label above the card, rendered uppercase. */
3196
+ label: string;
3197
+ /** Optional sentence under the label. */
3198
+ description?: React$1.ReactNode;
3199
+ className?: string;
3200
+ children: React$1.ReactNode;
3201
+ }
3202
+ /**
3203
+ * A labelled card holding a group of fields.
3204
+ *
3205
+ * Composes `Card` rather than hand-rolling its own border and background, so
3206
+ * a section carries the CONTAINER radius tier `Card` already defines instead
3207
+ * of a second, drifting copy of the same chrome. There is deliberately no
3208
+ * footer slot. A form commits as one document, so its action belongs to the
3209
+ * page rather than to a section.
3210
+ * @experimental
3211
+ */
3212
+ export declare function FormSection({ label, description, className, children }: FormSectionProps): JSX.Element;
3213
+ /**
3214
+ * One action bar per form, at the end of the page's measure.
3215
+ *
3216
+ * A form commits as a single document, so there is one place to commit it. The
3217
+ * dirty flag arrives from the page because the form state already answers that
3218
+ * question, and a second implementation of it here would disagree with the
3219
+ * first as soon as either changed.
3220
+ * @experimental
3221
+ */
3222
+ export declare function FormActions({ dirty, className, children }: FormActionsProps): JSX.Element;
3223
+ /** @experimental */
3224
+ interface PageShellProps extends HTMLAttributes<HTMLDivElement> {
3225
+ /**
3226
+ * Which measure the content column is bounded to. `full` removes the cap so
3227
+ * the column takes whatever the panel gives it, while KEEPING the gutter — a
3228
+ * full-width page is still inset from the panel's edge.
3229
+ */
3230
+ width?: "form" | "wide" | "full";
3231
+ }
3232
+ /**
3233
+ * What each named width resolves to, owned here because this is what applies it.
3234
+ *
3235
+ * Declared as a lookup rather than branched at the call site so the three arms
3236
+ * are one list. A `switch` here would let a fourth width be added to the type
3237
+ * and forgotten in the mapping, which the checker cannot see through a
3238
+ * `default` arm.
3239
+ *
3240
+ * Exported because a caller whose CONTENT carries the measure needs the same
3241
+ * value as a length, and the alternative is a second table naming the same
3242
+ * tokens — which drifts silently, since both look correct beside their own
3243
+ * neighbours. Reading it here means there is one answer rather than two that
3244
+ * agree today.
3245
+ *
3246
+ * @experimental
3247
+ */
3248
+ export declare const SHELL_MEASURE: Record<NonNullable<PageShellProps["width"]>, string>;
3249
+ /**
3250
+ * The page's inset and measure, owned in one place and spent as GRID COLUMNS.
3251
+ *
3252
+ * This replaces a pairing in which an outer container padded the panel and an
3253
+ * inner one padded again while capping the width. That shape had three
3254
+ * defects, and all three are structural rather than cosmetic:
3255
+ *
3256
+ * - The two insets ADDED, because padding is not something a descendant can
3257
+ * cancel. Measured on the settings page, the header sat at x=360 and the
3258
+ * form card at x=384 — a 24px disagreement between two elements that are
3259
+ * supposed to share a left edge. Here the inset is a column, so there is one
3260
+ * declaration and no second site to disagree with it.
3261
+ * - A measure applied INSIDE a form component lets anything the page renders
3262
+ * beside that form escape it. With the page owning the shell, a sibling is
3263
+ * inside the measure by default and leaves it only by saying `Bleed`.
3264
+ * - Centring by `mx-auto` on a max-width box does nothing at panel widths
3265
+ * where the cap does not bind. Here the two outer tracks are equal and
3266
+ * flexible, so the content column is centred at every width and no
3267
+ * `justify-content` is declared — with flexible tracks the grid fills its
3268
+ * container and there is no free space for one to distribute.
3269
+ *
3270
+ * Vertical padding stays ordinary `padding-block`: it is not in tension with
3271
+ * the columns, and keeping it here means one component answers the whole of
3272
+ * "how far is content from the panel's edge".
3273
+ * @experimental
3274
+ */
3275
+ export declare const PageShell: ForwardRefExoticComponent<PropsWithoutRef<PageShellProps> & RefAttributes<HTMLDivElement>>;
3276
+ /** @experimental */
3277
+ type BleedProps = HTMLAttributes<HTMLDivElement>;
3278
+ /**
3279
+ * Opts one child out of the measure, edge to edge across the shell's gutter.
3280
+ *
3281
+ * The sanctioned form of something that previously only happened by accident.
3282
+ * A wide data table, a delivery log or a toolbar declares that it wants the
3283
+ * full panel, so a reviewer can see the intent — and, just as usefully, a block
3284
+ * that is merely in the wrong place no longer LOOKS like a deliberate
3285
+ * full-bleed.
3286
+ *
3287
+ * Valid only as a DIRECT child of `PageShell`. The `full-start`/`full-end`
3288
+ * lines are named on the shell's own grid, so they are in scope for its
3289
+ * children and nowhere else; nested inside a `FormSection` this renders a plain
3290
+ * block and the `grid-column` is inert. That is a real constraint rather than a
3291
+ * stylistic preference, and `page-shell.test.tsx` pins both halves: that a
3292
+ * `Bleed` rendered directly under the shell is its child, and that one nested a
3293
+ * level deeper does NOT receive the full column.
3294
+ *
3295
+ * It forwards its ref and any div attributes for the same reason: a consumer
3296
+ * cannot reach for the usual remedy of wrapping it, because a wrapper is
3297
+ * precisely what makes it stop working.
3298
+ * @experimental
3299
+ */
3300
+ export declare const Bleed: ForwardRefExoticComponent<PropsWithoutRef<BleedProps> & RefAttributes<HTMLDivElement>>;
3301
+ /** @experimental */
3302
+ interface PageHeaderProps extends Omit<HTMLAttributes<HTMLElement>, "title"> {
3303
+ /** The page's name, rendered as its `h1`. */
3304
+ title: string;
3305
+ /**
3306
+ * A sentence under the title. A `ReactNode` rather than a string because a
3307
+ * description carrying a link or an inline code span is ordinary here, and
3308
+ * typing it narrowly would push those pages back to hand-rolling the header.
3309
+ */
3310
+ description?: ReactNode;
3311
+ /** The trail above the title. The page supplies it; this only places it. */
3312
+ breadcrumbs?: ReactNode;
3313
+ /** Page-level actions, trailing the title on one line where there is room. */
3314
+ actions?: ReactNode;
3315
+ }
3316
+ /**
3317
+ * A page's own identity — its trail, its name, its one-line summary and its
3318
+ * actions — rendered once instead of at every page that needs one.
3319
+ *
3320
+ * Every value arrives as a PROP, and that is the point rather than an
3321
+ * implementation detail. The markup this replaces was written out by hand on 22
3322
+ * pages, and the settings pages took their title from a ~130-line chain that
3323
+ * matched `window.location.pathname` in a file none of them import. Both are
3324
+ * the same defect from opposite ends: a page knows what it is, and nothing let
3325
+ * it say so — so the title lived either in 22 copies or in one foreign file
3326
+ * that had to be edited whenever a route was added.
3327
+ *
3328
+ * The route registry already made this decision for the sidebar. A private
3329
+ * route must DECLARE the rail section it belongs to, because the sidebar reads
3330
+ * that declaration rather than matching the URL, which makes a route added
3331
+ * without one a compile error instead of a page that silently highlights the
3332
+ * wrong entry. A title derived from a pathname is the same defect in the half
3333
+ * nobody had covered.
3334
+ *
3335
+ * It also makes a plugin's page indistinguishable from a first-party one: a
3336
+ * plugin cannot add a branch to an if-chain it does not ship, but it can pass a
3337
+ * prop.
3338
+ * @experimental
3339
+ */
3340
+ export declare const PageHeader: ForwardRefExoticComponent<PropsWithoutRef<PageHeaderProps> & RefAttributes<HTMLElement>>;
3341
+ export { Accordion, AccordionContent, type AccordionContentProps, AccordionItem, type AccordionItemProps, type AccordionProps, AccordionTrigger, type AccordionTriggerProps, type ActionCallbacks, type ActiveShortcut, Alert, AlertDescription, type AlertDescriptionProps, AlertDialog, AlertDialogAction, type AlertDialogActionProps, AlertDialogCancel, type AlertDialogCancelProps, AlertDialogContent, type AlertDialogContentProps, AlertDialogDescription, type AlertDialogDescriptionProps, AlertDialogFooter, type AlertDialogFooterProps, AlertDialogHeader, type AlertDialogHeaderProps, AlertDialogOverlay, type AlertDialogOverlayProps, AlertDialogPortal, AlertDialogTitle, type AlertDialogTitleProps, AlertDialogTrigger, type AlertProps, AlertTitle, type AlertTitleProps, Avatar, AvatarFallback, type AvatarFallbackProps, AvatarImage, type AvatarImageProps, type AvatarProps, Badge, type BadgeProps, type BleedProps, Button, type ButtonProps, Card, CardAction, type CardActionProps, CardContent, type CardContentProps, CardDescription, type CardDescriptionProps, CardFooter, type CardFooterProps, CardHeader, type CardHeaderProps, type CardProps, CardTitle, type CardTitleProps, Checkbox, Collapsible, CollapsibleContent, CollapsibleTrigger, type ColorPickerProps, type ColorSwatch, Command, CommandDialog, type CommandDialogProps, CommandEmpty, type CommandEmptyProps, CommandGroup, type CommandGroupProps, CommandInput, type CommandInputProps, CommandItem, type CommandItemProps, CommandList, type CommandListProps, type CommandProps, CommandSeparator, type CommandSeparatorProps, CommandShortcut, type CommandShortcutProps, ContextMenu, ContextMenuCheckboxItem, ContextMenuContent, ContextMenuGroup, ContextMenuItem, ContextMenuLabel, ContextMenuRadioGroup, ContextMenuRadioItem, ContextMenuSeparator, ContextMenuShortcut, ContextMenuSub, ContextMenuSubContent, ContextMenuSubTrigger, ContextMenuTrigger, type DataFetcher, Dialog, DialogClose, DialogContent, type DialogContentProps, DialogDescription, type DialogDescriptionProps, DialogFooter, type DialogFooterProps, DialogHeader, type DialogHeaderProps, DialogOverlay, type DialogOverlayProps, DialogPortal, DialogTitle, type DialogTitleProps, DialogTrigger, DropdownMenu, DropdownMenuCheckboxItem, type DropdownMenuCheckboxItemProps, DropdownMenuContent, type DropdownMenuContentProps, DropdownMenuGroup, DropdownMenuItem, type DropdownMenuItemProps, DropdownMenuLabel, type DropdownMenuLabelProps, DropdownMenuPortal, DropdownMenuRadioGroup, DropdownMenuRadioItem, type DropdownMenuRadioItemProps, DropdownMenuSeparator, type DropdownMenuSeparatorProps, DropdownMenuShortcut, type DropdownMenuShortcutProps, DropdownMenuSub, DropdownMenuSubContent, type DropdownMenuSubContentProps, DropdownMenuSubTrigger, type DropdownMenuSubTriggerProps, DropdownMenuTrigger, type FieldShellProps, type FieldShellRenderProps, type FieldWidth, type FilterInfo, type FormActionsProps, type FormLabelWithTooltipProps, type FormSectionProps, type GridProps, Input, type InputProps, type KeyChord, type KeySequence, Label, type ListResponse, type ModifierState, type PageHeaderProps, type PageShellProps, type PaginationConfig, type PaginationMeta, Popover, PopoverAnchor, PopoverContent, PopoverTrigger, PortalProvider, Progress, type ProgressProps, RadioGroup, RadioGroupItem, ResizableHandle, ResizablePanel, ResizablePanelGroup, Select, SelectContent, SelectGroup, SelectItem, SelectLabel, SelectScrollDownButton, SelectScrollUpButton, SelectSeparator, SelectTrigger, type SelectTriggerProps, SelectValue, Separator, Sheet, SheetClose, type SheetCloseProps, SheetContent, type SheetContentProps, type SheetContentRef, SheetDescription, type SheetDescriptionProps, type SheetDescriptionRef, SheetFooter, type SheetFooterProps, SheetHeader, type SheetHeaderProps, SheetOverlay, type SheetOverlayProps, type SheetOverlayRef, SheetPortal, type SheetProps, SheetTitle, type SheetTitleProps, type SheetTitleRef, SheetTrigger, type SheetTriggerProps, type ShortcutBinding, type ShortcutLayerOptions, type ShortcutManager, type ShortcutManagerOptions, type ShortcutProviderProps, type ShortcutRegistration, Skeleton, type SkeletonProps, Slider, type SliderProps, type SliderThumbProps, type SortInfo, Spinner, type SpinnerProps, type StackProps, type StatProps, Switch, Table, TableBody, TableCaption, TableCell, type TableEmptyProps, type TableErrorProps, TableFooter, TableHead, TableHeader, type TableParams, TableRow, type TableSearchProps, type TableSkeletonProps, Tabs, TabsContent, type TabsContentProps, TabsList, type TabsListProps, type TabsProps, TabsTrigger, type TabsTriggerProps, Textarea, type ToasterProps, Tooltip, TooltipContent, TooltipProvider, TooltipTrigger, type TreeNode, TreeView, type TreeViewProps, type UseShortcutsOptions, alertVariants, badgeVariants, buttonVariants, cardVariants, dialogContentVariants, inputVariants, selectTriggerVariants, sheetVariants, spinnerVariants, toast, usePortalContainer };
3342
+ //# sourceMappingURL=index.d.ts.map