@aircall/ds 0.27.0 → 0.28.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/globals.css +1 -1
- package/dist/index.d.ts +2212 -35
- package/dist/index.js +1935 -31
- package/dist/theme.css +30 -0
- package/package.json +1 -1
- package/skills/aircall-ds/adopt-attachment/SKILL.md +5 -6
- package/skills/aircall-ds/migrate-audio-player/SKILL.md +0 -1
- package/skills/aircall-ds/migrate-icons/SKILL.md +0 -1
- package/skills/aircall-ds/migrate-tractor/SKILL.md +2 -1
- package/skills/aircall-ds/migrate-tractor/accordion/SKILL.md +0 -1
- package/skills/aircall-ds/migrate-tractor/alert/SKILL.md +0 -1
- package/skills/aircall-ds/migrate-tractor/avatar/SKILL.md +0 -1
- package/skills/aircall-ds/migrate-tractor/badge/SKILL.md +0 -1
- package/skills/aircall-ds/migrate-tractor/button/SKILL.md +0 -1
- package/skills/aircall-ds/migrate-tractor/card/SKILL.md +0 -1
- package/skills/aircall-ds/migrate-tractor/combobox/SKILL.md +42 -4
- package/skills/aircall-ds/migrate-tractor/data-table/SKILL.md +2 -1
- package/skills/aircall-ds/migrate-tractor/dialog/SKILL.md +0 -1
- package/skills/aircall-ds/migrate-tractor/divider/SKILL.md +0 -1
- package/skills/aircall-ds/migrate-tractor/dropdown-menu/SKILL.md +0 -1
- package/skills/aircall-ds/migrate-tractor/dropzone/SKILL.md +30 -1
- package/skills/aircall-ds/migrate-tractor/form-and-field/SKILL.md +0 -1
- package/skills/aircall-ds/migrate-tractor/gauge/SKILL.md +0 -1
- package/skills/aircall-ds/migrate-tractor/input/SKILL.md +0 -1
- package/skills/aircall-ds/migrate-tractor/item/SKILL.md +0 -1
- package/skills/aircall-ds/migrate-tractor/link/SKILL.md +0 -1
- package/skills/aircall-ds/migrate-tractor/popover/SKILL.md +0 -1
- package/skills/aircall-ds/migrate-tractor/select/SKILL.md +0 -1
- package/skills/aircall-ds/migrate-tractor/sheet-vs-drawer/SKILL.md +0 -1
- package/skills/aircall-ds/migrate-tractor/skeleton/SKILL.md +0 -1
- package/skills/aircall-ds/migrate-tractor/styling/SKILL.md +138 -3
- package/skills/aircall-ds/migrate-tractor/tabs/SKILL.md +0 -1
- package/skills/aircall-ds/migrate-tractor/toast/SKILL.md +0 -1
- package/skills/aircall-ds/migrate-tractor/tooltip/SKILL.md +0 -1
- package/skills/aircall-ds/migrate-tractor/tree/SKILL.md +0 -1
- package/skills/aircall-ds/setup/SKILL.md +33 -1
package/dist/index.d.ts
CHANGED
|
@@ -43,33 +43,75 @@ import * as class_variance_authority_types7 from "class-variance-authority/types
|
|
|
43
43
|
import { CountryCode } from "@aircall/numbers";
|
|
44
44
|
|
|
45
45
|
//#region src/components/accordion.d.ts
|
|
46
|
+
/**
|
|
47
|
+
* Root container for an accordion, wrapping Base UI's `Accordion.Root`.
|
|
48
|
+
* Renders a `<div>` that lays out its `AccordionItem` children in a column.
|
|
49
|
+
*
|
|
50
|
+
* @example
|
|
51
|
+
* ```tsx
|
|
52
|
+
* <Accordion>
|
|
53
|
+
* <AccordionItem value="item-1">
|
|
54
|
+
* <AccordionTrigger>Section one</AccordionTrigger>
|
|
55
|
+
* <AccordionContent>Panel content</AccordionContent>
|
|
56
|
+
* </AccordionItem>
|
|
57
|
+
* </Accordion>
|
|
58
|
+
* ```
|
|
59
|
+
*/
|
|
46
60
|
declare const Accordion: React.ForwardRefExoticComponent<Omit<AccordionProps, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
61
|
+
/** Props for {@link Accordion} — Base UI `Accordion.Root` props. */
|
|
47
62
|
interface AccordionProps extends Accordion$1.Root.Props {}
|
|
48
63
|
declare namespace Accordion {
|
|
49
64
|
type Props = AccordionProps;
|
|
50
65
|
}
|
|
66
|
+
/**
|
|
67
|
+
* A single collapsible section of the accordion, wrapping `Accordion.Item`.
|
|
68
|
+
* Renders a `<div>` grouping one `AccordionTrigger` and one `AccordionContent`.
|
|
69
|
+
*/
|
|
51
70
|
declare const AccordionItem: React.ForwardRefExoticComponent<Omit<AccordionItemProps, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
71
|
+
/** Props for {@link AccordionItem} — Base UI `Accordion.Item` props. */
|
|
52
72
|
interface AccordionItemProps extends Accordion$1.Item.Props {}
|
|
53
73
|
declare namespace AccordionItem {
|
|
54
74
|
type Props = AccordionItemProps;
|
|
55
75
|
}
|
|
76
|
+
/**
|
|
77
|
+
* The clickable heading that toggles its section open or closed, wrapping
|
|
78
|
+
* `Accordion.Trigger`. Renders a `<button>` inside an `Accordion.Header`
|
|
79
|
+
* heading element, with chevron up/down icons reflecting the expanded state.
|
|
80
|
+
*/
|
|
56
81
|
declare const AccordionTrigger: React.ForwardRefExoticComponent<Omit<AccordionTriggerProps, "ref"> & React.RefAttributes<HTMLElement>>;
|
|
82
|
+
/** Props for {@link AccordionTrigger} — Base UI `Accordion.Trigger` props. */
|
|
57
83
|
interface AccordionTriggerProps extends Accordion$1.Trigger.Props {}
|
|
58
84
|
declare namespace AccordionTrigger {
|
|
59
85
|
type Props = AccordionTriggerProps;
|
|
60
86
|
}
|
|
87
|
+
/**
|
|
88
|
+
* The collapsible panel revealed when its section is open, wrapping
|
|
89
|
+
* `Accordion.Panel`. Renders a `<div>` panel (animated via
|
|
90
|
+
* `--accordion-panel-height`) that wraps its children in an inner padded `<div>`.
|
|
91
|
+
*/
|
|
61
92
|
declare const AccordionContent: React.ForwardRefExoticComponent<Omit<AccordionContentProps, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
93
|
+
/** Props for {@link AccordionContent} — Base UI `Accordion.Panel` props. */
|
|
62
94
|
interface AccordionContentProps extends Accordion$1.Panel.Props {}
|
|
63
95
|
declare namespace AccordionContent {
|
|
64
96
|
type Props = AccordionContentProps;
|
|
65
97
|
}
|
|
66
98
|
//#endregion
|
|
67
99
|
//#region src/components/button.d.ts
|
|
100
|
+
/** `cva` variant definitions for {@link Button} — resolves `variant`, `size`, and `block` into class names. */
|
|
68
101
|
declare const buttonVariants: (props?: ({
|
|
69
|
-
variant?: "link" | "default" | "
|
|
102
|
+
variant?: "link" | "default" | "outline" | "secondary" | "ghost" | "destructive" | null | undefined;
|
|
70
103
|
size?: "default" | "icon" | "sm" | "lg" | "icon-sm" | "icon-lg" | null | undefined;
|
|
71
104
|
block?: boolean | null | undefined;
|
|
72
105
|
} & class_variance_authority_types7.ClassProp) | undefined) => string;
|
|
106
|
+
/**
|
|
107
|
+
* Clickable button. Renders a Base UI `Button` primitive as a `<button>` element,
|
|
108
|
+
* styled via `buttonVariants` (variant / size / block).
|
|
109
|
+
*
|
|
110
|
+
* @example
|
|
111
|
+
* ```tsx
|
|
112
|
+
* <Button variant="outline" size="sm">Save</Button>
|
|
113
|
+
* ```
|
|
114
|
+
*/
|
|
73
115
|
declare const Button: React.ForwardRefExoticComponent<Omit<ButtonProps, "ref"> & React.RefAttributes<HTMLButtonElement>>;
|
|
74
116
|
interface ButtonProps extends Button$1.Props, VariantProps<typeof buttonVariants> {
|
|
75
117
|
children?: React.ReactNode;
|
|
@@ -82,6 +124,7 @@ declare namespace Button {
|
|
|
82
124
|
/** Fixed height of the ActionBar (px). Single source of truth — the bar uses it
|
|
83
125
|
* for its own height and consumers (e.g. DataTable) reserve space with it. */
|
|
84
126
|
declare const ActionBarHeight = 48;
|
|
127
|
+
/** Selection state (`count` + `onClear`) an `ActionBar` reads from its surrounding context. */
|
|
85
128
|
interface ActionBarContextValue {
|
|
86
129
|
/** Number of selected items. */
|
|
87
130
|
count: number;
|
|
@@ -119,6 +162,18 @@ interface ActionBarProps extends Omit<React.HTMLAttributes<HTMLDivElement>, 'chi
|
|
|
119
162
|
/** Accessible label for the clear button. Defaults to the localized `actionBar.clearSelection` string. */
|
|
120
163
|
clearLabel?: string;
|
|
121
164
|
}
|
|
165
|
+
/**
|
|
166
|
+
* A selection action bar: shows the selected-item count with a clear button and hosts
|
|
167
|
+
* contextual action buttons on the right. Renders a `<div role="toolbar">`. `count` and
|
|
168
|
+
* `onClear` fall back to `ActionBarContext` (e.g. supplied by `DataTable`) when omitted.
|
|
169
|
+
*
|
|
170
|
+
* @example
|
|
171
|
+
* ```tsx
|
|
172
|
+
* <ActionBar count={3} onClear={clearSelection}>
|
|
173
|
+
* <ActionBarButton>Delete</ActionBarButton>
|
|
174
|
+
* </ActionBar>
|
|
175
|
+
* ```
|
|
176
|
+
*/
|
|
122
177
|
declare const ActionBar: React.ForwardRefExoticComponent<ActionBarProps & React.RefAttributes<HTMLDivElement>>;
|
|
123
178
|
declare namespace ActionBar {
|
|
124
179
|
type Props = ActionBarProps;
|
|
@@ -195,6 +250,26 @@ declare function useAudioPlayer(): AudioPlayerContextValue;
|
|
|
195
250
|
* ```
|
|
196
251
|
*/
|
|
197
252
|
declare function useAudioPlayerTime(): number;
|
|
253
|
+
interface AudioProps extends Omit<React.HTMLAttributes<HTMLDivElement>, 'onError'> {
|
|
254
|
+
/** Audio source URL. When provided, the `<audio>` element is pre-loaded so
|
|
255
|
+
* metadata (duration, readyState) is available before the user presses play.
|
|
256
|
+
* Omit for multi-item layouts where `src` is set imperatively via
|
|
257
|
+
* `player.play({ src })`. */
|
|
258
|
+
src?: string;
|
|
259
|
+
/**
|
|
260
|
+
* Initial playback speed multiplier.
|
|
261
|
+
* @default 1
|
|
262
|
+
*/
|
|
263
|
+
defaultPlaybackRate?: number;
|
|
264
|
+
/**
|
|
265
|
+
* Forwarded to `<audio preload>`. Controls how much the browser buffers on load.
|
|
266
|
+
* @default 'metadata'
|
|
267
|
+
*/
|
|
268
|
+
preload?: 'none' | 'metadata' | 'auto';
|
|
269
|
+
/** Forwarded to `<audio crossOrigin>`. Unset by default so any source works;
|
|
270
|
+
* set to `"anonymous"` if you need Web Audio API access (waveforms, EQ). */
|
|
271
|
+
crossOrigin?: 'anonymous' | 'use-credentials';
|
|
272
|
+
}
|
|
198
273
|
/**
|
|
199
274
|
* Root provider for all AudioPlayer sub-components. Manages a single hidden
|
|
200
275
|
* `<audio>` element and publishes playback state via React context. Renders a
|
|
@@ -217,26 +292,6 @@ declare function useAudioPlayerTime(): number;
|
|
|
217
292
|
* </Audio>
|
|
218
293
|
* ```
|
|
219
294
|
*/
|
|
220
|
-
interface AudioProps extends Omit<React.HTMLAttributes<HTMLDivElement>, 'onError'> {
|
|
221
|
-
/** Audio source URL. When provided, the `<audio>` element is pre-loaded so
|
|
222
|
-
* metadata (duration, readyState) is available before the user presses play.
|
|
223
|
-
* Omit for multi-item layouts where `src` is set imperatively via
|
|
224
|
-
* `player.play({ src })`. */
|
|
225
|
-
src?: string;
|
|
226
|
-
/**
|
|
227
|
-
* Initial playback speed multiplier.
|
|
228
|
-
* @default 1
|
|
229
|
-
*/
|
|
230
|
-
defaultPlaybackRate?: number;
|
|
231
|
-
/**
|
|
232
|
-
* Forwarded to `<audio preload>`. Controls how much the browser buffers on load.
|
|
233
|
-
* @default 'metadata'
|
|
234
|
-
*/
|
|
235
|
-
preload?: 'none' | 'metadata' | 'auto';
|
|
236
|
-
/** Forwarded to `<audio crossOrigin>`. Unset by default so any source works;
|
|
237
|
-
* set to `"anonymous"` if you need Web Audio API access (waveforms, EQ). */
|
|
238
|
-
crossOrigin?: 'anonymous' | 'use-credentials';
|
|
239
|
-
}
|
|
240
295
|
declare function Audio({
|
|
241
296
|
src,
|
|
242
297
|
defaultPlaybackRate,
|
|
@@ -327,10 +382,23 @@ declare const AudioPlayerButton: React.ForwardRefExoticComponent<Omit<AudioPlaye
|
|
|
327
382
|
*/
|
|
328
383
|
type AudioPlayerBarProps = Omit<React.ComponentProps<typeof Slider$1.Root>, 'value' | 'defaultValue' | 'min' | 'max' | 'onValueChange' | 'onValueCommitted'> & {
|
|
329
384
|
/**
|
|
330
|
-
* When set, replaces the default circle thumb with a thin vertical
|
|
385
|
+
* When set, replaces the default circle thumb with a thin vertical playhead of
|
|
331
386
|
* this height (in px). Use when the bar sits above a multi-row timeline (e.g.
|
|
332
387
|
* a speaker waveform) and the cursor should visually fall through the rows
|
|
333
|
-
* below. The
|
|
388
|
+
* below. The playhead is 2 px wide and uses the primary colour.
|
|
389
|
+
*
|
|
390
|
+
* The Root is anchored to 16 px in document flow so a parent `items-center`
|
|
391
|
+
* only sees the primary-bar height. The Control (click-to-seek area) is
|
|
392
|
+
* absolutely positioned and grows **downward** from the track centre,
|
|
393
|
+
* covering the full `playheadHeight` span below it.
|
|
394
|
+
*
|
|
395
|
+
* **Stacking is not handled here.** The playhead escapes its 16 px box purely
|
|
396
|
+
* by absolute positioning (it needs an `overflow-visible` ancestor), and the
|
|
397
|
+
* component sets no `z-index`. Whether the bar and its playhead paint above or
|
|
398
|
+
* below the following siblings is therefore decided by normal document paint
|
|
399
|
+
* order. If you need the bar on top of the rows beneath it, lift it yourself in
|
|
400
|
+
* the consumer — e.g. `relative z-10` on the bar's wrapper (see the `Playhead`
|
|
401
|
+
* Storybook example).
|
|
334
402
|
*/
|
|
335
403
|
playheadHeight?: number;
|
|
336
404
|
};
|
|
@@ -447,63 +515,147 @@ declare function AudioPlayerManager({
|
|
|
447
515
|
}: AudioPlayerManagerProps): React.JSX.Element;
|
|
448
516
|
//#endregion
|
|
449
517
|
//#region src/components/alert-dialog.d.ts
|
|
518
|
+
/**
|
|
519
|
+
* Root of a modal alert dialog that interrupts the user to confirm or
|
|
520
|
+
* acknowledge a critical action. Manages open/close state and renders no DOM
|
|
521
|
+
* element — place `AlertDialogTrigger` and `AlertDialogContent` inside it.
|
|
522
|
+
*
|
|
523
|
+
* Supports controlled (`open` + `onOpenChange`) and uncontrolled
|
|
524
|
+
* (`defaultOpen`) modes.
|
|
525
|
+
*
|
|
526
|
+
* @example
|
|
527
|
+
* ```tsx
|
|
528
|
+
* <AlertDialog>
|
|
529
|
+
* <AlertDialogTrigger render={<Button>Delete</Button>} />
|
|
530
|
+
* <AlertDialogContent>
|
|
531
|
+
* <AlertDialogHeader>
|
|
532
|
+
* <AlertDialogTitle>Are you sure?</AlertDialogTitle>
|
|
533
|
+
* <AlertDialogDescription>This cannot be undone.</AlertDialogDescription>
|
|
534
|
+
* </AlertDialogHeader>
|
|
535
|
+
* <AlertDialogFooter>
|
|
536
|
+
* <AlertDialogCancel>Cancel</AlertDialogCancel>
|
|
537
|
+
* <AlertDialogAction>Confirm</AlertDialogAction>
|
|
538
|
+
* </AlertDialogFooter>
|
|
539
|
+
* </AlertDialogContent>
|
|
540
|
+
* </AlertDialog>
|
|
541
|
+
* ```
|
|
542
|
+
*/
|
|
450
543
|
declare function AlertDialog(componentProps: AlertDialog.Props): React.JSX.Element;
|
|
451
544
|
interface AlertDialogProps extends AlertDialog$1.Root.Props {}
|
|
452
545
|
declare namespace AlertDialog {
|
|
453
546
|
type Props = AlertDialogProps;
|
|
454
547
|
}
|
|
548
|
+
/**
|
|
549
|
+
* The element that opens the alert dialog when activated. Renders a `<button>`
|
|
550
|
+
* element.
|
|
551
|
+
*/
|
|
455
552
|
declare const AlertDialogTrigger: React.ForwardRefExoticComponent<Omit<AlertDialogTriggerProps, "ref"> & React.RefAttributes<HTMLButtonElement>>;
|
|
456
553
|
interface AlertDialogTriggerProps extends AlertDialog$1.Trigger.Props {}
|
|
457
554
|
declare namespace AlertDialogTrigger {
|
|
458
555
|
type Props = AlertDialogTriggerProps;
|
|
459
556
|
}
|
|
557
|
+
/**
|
|
558
|
+
* Renders the alert dialog's overlay and content into a portal outside the DOM
|
|
559
|
+
* hierarchy. Renders no DOM element itself; used internally by
|
|
560
|
+
* `AlertDialogContent`.
|
|
561
|
+
*/
|
|
460
562
|
declare function AlertDialogPortal(componentProps: AlertDialogPortal.Props): React.JSX.Element;
|
|
461
563
|
interface AlertDialogPortalProps extends AlertDialog$1.Portal.Props {}
|
|
462
564
|
declare namespace AlertDialogPortal {
|
|
463
565
|
type Props = AlertDialogPortalProps;
|
|
464
566
|
}
|
|
567
|
+
/**
|
|
568
|
+
* The dimmed, blurred backdrop shown behind the alert dialog content. Renders a
|
|
569
|
+
* fixed-position `<div>` covering the viewport; rendered automatically by
|
|
570
|
+
* `AlertDialogContent`.
|
|
571
|
+
*/
|
|
465
572
|
declare const AlertDialogOverlay: React.ForwardRefExoticComponent<Omit<AlertDialogOverlayProps, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
466
573
|
interface AlertDialogOverlayProps extends AlertDialog$1.Backdrop.Props {}
|
|
467
574
|
declare namespace AlertDialogOverlay {
|
|
468
575
|
type Props = AlertDialogOverlayProps;
|
|
469
576
|
}
|
|
577
|
+
/**
|
|
578
|
+
* The centered popup panel holding the alert dialog's content. Renders the
|
|
579
|
+
* portal, overlay, and a `<div>` popup element positioned in the middle of the
|
|
580
|
+
* viewport.
|
|
581
|
+
*
|
|
582
|
+
* @prop size - Controls the max width of the panel: `'sm'` stays compact while
|
|
583
|
+
* `'default'` widens on larger screens. Default: `'default'`.
|
|
584
|
+
*/
|
|
470
585
|
declare const AlertDialogContent: React.ForwardRefExoticComponent<Omit<AlertDialogContentProps, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
471
586
|
interface AlertDialogContentProps extends AlertDialog$1.Popup.Props {
|
|
587
|
+
/**
|
|
588
|
+
* Max width of the panel: `'sm'` stays compact, `'default'` widens on larger
|
|
589
|
+
* screens.
|
|
590
|
+
* @default 'default'
|
|
591
|
+
*/
|
|
472
592
|
size?: 'default' | 'sm';
|
|
473
593
|
}
|
|
474
594
|
declare namespace AlertDialogContent {
|
|
475
595
|
type Props = AlertDialogContentProps;
|
|
476
596
|
}
|
|
597
|
+
/**
|
|
598
|
+
* Groups the title, description, and optional media at the top of the dialog.
|
|
599
|
+
* Renders a `<div>` with a responsive grid layout.
|
|
600
|
+
*/
|
|
477
601
|
declare const AlertDialogHeader: React.ForwardRefExoticComponent<Omit<AlertDialogHeaderProps, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
478
602
|
interface AlertDialogHeaderProps extends React.ComponentProps<'div'> {}
|
|
479
603
|
declare namespace AlertDialogHeader {
|
|
480
604
|
type Props = AlertDialogHeaderProps;
|
|
481
605
|
}
|
|
606
|
+
/**
|
|
607
|
+
* Container for the dialog's action buttons, pinned to the bottom. Renders a
|
|
608
|
+
* `<div>` that stacks buttons on mobile and aligns them to the right on larger
|
|
609
|
+
* screens.
|
|
610
|
+
*/
|
|
482
611
|
declare const AlertDialogFooter: React.ForwardRefExoticComponent<Omit<AlertDialogFooterProps, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
483
612
|
interface AlertDialogFooterProps extends React.ComponentProps<'div'> {}
|
|
484
613
|
declare namespace AlertDialogFooter {
|
|
485
614
|
type Props = AlertDialogFooterProps;
|
|
486
615
|
}
|
|
616
|
+
/**
|
|
617
|
+
* Optional decorative slot for an icon or illustration shown alongside the
|
|
618
|
+
* title in the header. Renders a `<div>` sized for a small icon.
|
|
619
|
+
*/
|
|
487
620
|
declare const AlertDialogMedia: React.ForwardRefExoticComponent<Omit<AlertDialogMediaProps, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
488
621
|
interface AlertDialogMediaProps extends React.ComponentProps<'div'> {}
|
|
489
622
|
declare namespace AlertDialogMedia {
|
|
490
623
|
type Props = AlertDialogMediaProps;
|
|
491
624
|
}
|
|
625
|
+
/**
|
|
626
|
+
* The accessible title of the alert dialog. Renders an `<h2>` element and is
|
|
627
|
+
* announced to assistive technology when the dialog opens.
|
|
628
|
+
*/
|
|
492
629
|
declare const AlertDialogTitle: React.ForwardRefExoticComponent<Omit<AlertDialogTitleProps, "ref"> & React.RefAttributes<HTMLHeadingElement>>;
|
|
493
630
|
interface AlertDialogTitleProps extends React.ComponentProps<typeof AlertDialog$1.Title> {}
|
|
494
631
|
declare namespace AlertDialogTitle {
|
|
495
632
|
type Props = AlertDialogTitleProps;
|
|
496
633
|
}
|
|
634
|
+
/**
|
|
635
|
+
* Supporting body text explaining the consequences of the action. Renders a
|
|
636
|
+
* `<p>` element linked to the dialog for assistive technology.
|
|
637
|
+
*/
|
|
497
638
|
declare const AlertDialogDescription: React.ForwardRefExoticComponent<Omit<AlertDialogDescriptionProps, "ref"> & React.RefAttributes<HTMLParagraphElement>>;
|
|
498
639
|
interface AlertDialogDescriptionProps extends React.ComponentProps<typeof AlertDialog$1.Description> {}
|
|
499
640
|
declare namespace AlertDialogDescription {
|
|
500
641
|
type Props = AlertDialogDescriptionProps;
|
|
501
642
|
}
|
|
643
|
+
/**
|
|
644
|
+
* The primary confirmation button that carries out the dialog's action. Renders
|
|
645
|
+
* the DS `Button` (a `<button>`); accepts all `Button` props.
|
|
646
|
+
*/
|
|
502
647
|
declare const AlertDialogAction: React.ForwardRefExoticComponent<Omit<AlertDialogActionProps, "ref"> & React.RefAttributes<HTMLButtonElement>>;
|
|
503
648
|
interface AlertDialogActionProps extends React.ComponentProps<typeof Button> {}
|
|
504
649
|
declare namespace AlertDialogAction {
|
|
505
650
|
type Props = AlertDialogActionProps;
|
|
506
651
|
}
|
|
652
|
+
/**
|
|
653
|
+
* The dismiss button that closes the dialog without performing the action.
|
|
654
|
+
* Renders the DS `Button` (a `<button>`) via the primitive's `Close`.
|
|
655
|
+
*
|
|
656
|
+
* @prop variant - Button visual variant. Default: `'outline'`.
|
|
657
|
+
* @prop size - Button size. Default: `'default'`.
|
|
658
|
+
*/
|
|
507
659
|
declare const AlertDialogCancel: React.ForwardRefExoticComponent<Omit<AlertDialogCancelProps, "ref"> & React.RefAttributes<HTMLButtonElement>>;
|
|
508
660
|
interface AlertDialogCancelProps extends AlertDialog$1.Close.Props, Pick<React.ComponentProps<typeof Button>, 'variant' | 'size'> {}
|
|
509
661
|
declare namespace AlertDialogCancel {
|
|
@@ -511,25 +663,81 @@ declare namespace AlertDialogCancel {
|
|
|
511
663
|
}
|
|
512
664
|
//#endregion
|
|
513
665
|
//#region src/components/alert.d.ts
|
|
666
|
+
/**
|
|
667
|
+
* `class-variance-authority` config for the {@link Alert} container. The
|
|
668
|
+
* `variant` option (`default` | `info` | `success` | `warning` | `error`,
|
|
669
|
+
* default `default`) sets the background, border, and icon colour scheme.
|
|
670
|
+
*/
|
|
514
671
|
declare const alertVariants: (props?: ({
|
|
515
672
|
variant?: "default" | "info" | "success" | "warning" | "error" | null | undefined;
|
|
516
673
|
} & class_variance_authority_types7.ClassProp) | undefined) => string;
|
|
674
|
+
/**
|
|
675
|
+
* Callout that draws attention to an important, contextual message.
|
|
676
|
+
*
|
|
677
|
+
* Renders a `<div role="alert">` laid out as a grid for an optional leading
|
|
678
|
+
* icon, `AlertTitle`, `AlertDescription`, and `AlertAction`.
|
|
679
|
+
*
|
|
680
|
+
* @prop variant - Colour scheme: `default` | `info` | `success` | `warning` | `error`. Default: `'default'`.
|
|
681
|
+
*
|
|
682
|
+
* @example
|
|
683
|
+
* ```tsx
|
|
684
|
+
* <Alert variant="info">
|
|
685
|
+
* <InfoIcon />
|
|
686
|
+
* <AlertTitle>Heads up</AlertTitle>
|
|
687
|
+
* <AlertDescription>Your trial ends in 3 days.</AlertDescription>
|
|
688
|
+
* </Alert>
|
|
689
|
+
* ```
|
|
690
|
+
*/
|
|
517
691
|
declare const Alert: React.ForwardRefExoticComponent<Omit<AlertProps, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
692
|
+
/** Props for {@link Alert} — `<div>` props plus the `alertVariants` `variant` option. */
|
|
518
693
|
interface AlertProps extends React.ComponentProps<'div'>, VariantProps<typeof alertVariants> {}
|
|
519
694
|
declare namespace Alert {
|
|
520
695
|
type Props = AlertProps;
|
|
521
696
|
}
|
|
697
|
+
/**
|
|
698
|
+
* Short heading for an {@link Alert}. Renders a `<div>`.
|
|
699
|
+
*
|
|
700
|
+
* @example
|
|
701
|
+
* ```tsx
|
|
702
|
+
* <AlertTitle>Payment failed</AlertTitle>
|
|
703
|
+
* ```
|
|
704
|
+
*/
|
|
522
705
|
declare const AlertTitle: React.ForwardRefExoticComponent<Omit<AlertTitleProps, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
706
|
+
/** Props for {@link AlertTitle} — standard `<div>` props. */
|
|
523
707
|
interface AlertTitleProps extends React.ComponentProps<'div'> {}
|
|
524
708
|
declare namespace AlertTitle {
|
|
525
709
|
type Props = AlertTitleProps;
|
|
526
710
|
}
|
|
711
|
+
/**
|
|
712
|
+
* Body copy for an {@link Alert}. Renders a `<div>` in muted foreground colour
|
|
713
|
+
* that stacks its children vertically.
|
|
714
|
+
*
|
|
715
|
+
* @example
|
|
716
|
+
* ```tsx
|
|
717
|
+
* <AlertDescription>Update your card to keep your subscription.</AlertDescription>
|
|
718
|
+
* ```
|
|
719
|
+
*/
|
|
527
720
|
declare const AlertDescription: React.ForwardRefExoticComponent<Omit<AlertDescriptionProps, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
721
|
+
/** Props for {@link AlertDescription} — standard `<div>` props. */
|
|
528
722
|
interface AlertDescriptionProps extends React.ComponentProps<'div'> {}
|
|
529
723
|
declare namespace AlertDescription {
|
|
530
724
|
type Props = AlertDescriptionProps;
|
|
531
725
|
}
|
|
726
|
+
/**
|
|
727
|
+
* Container for action controls (e.g. buttons) inside an {@link Alert}.
|
|
728
|
+
*
|
|
729
|
+
* Renders a `<div>` positioned by the alert grid to the trailing side on wide
|
|
730
|
+
* layouts and below the content on narrow ones.
|
|
731
|
+
*
|
|
732
|
+
* @example
|
|
733
|
+
* ```tsx
|
|
734
|
+
* <AlertAction>
|
|
735
|
+
* <Button size="sm">Update</Button>
|
|
736
|
+
* </AlertAction>
|
|
737
|
+
* ```
|
|
738
|
+
*/
|
|
532
739
|
declare const AlertAction: React.ForwardRefExoticComponent<Omit<AlertActionProps, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
740
|
+
/** Props for {@link AlertAction} — standard `<div>` props. */
|
|
533
741
|
interface AlertActionProps extends React.ComponentProps<'div'> {}
|
|
534
742
|
declare namespace AlertAction {
|
|
535
743
|
type Props = AlertActionProps;
|
|
@@ -545,6 +753,7 @@ type AttachmentState = 'idle' | 'uploading' | 'processing' | 'error' | 'done';
|
|
|
545
753
|
declare const attachmentVariants: (props?: ({
|
|
546
754
|
size?: "default" | "sm" | "xs" | null | undefined;
|
|
547
755
|
orientation?: "horizontal" | "vertical" | null | undefined;
|
|
756
|
+
block?: boolean | null | undefined;
|
|
548
757
|
} & class_variance_authority_types7.ClassProp) | undefined) => string;
|
|
549
758
|
/**
|
|
550
759
|
* Card displaying a single file or image attachment with its metadata,
|
|
@@ -577,6 +786,11 @@ interface AttachmentProps extends React.ComponentProps<'div'>, VariantProps<type
|
|
|
577
786
|
* @default 'done'
|
|
578
787
|
*/
|
|
579
788
|
state?: AttachmentState;
|
|
789
|
+
/**
|
|
790
|
+
* Expand the card to fill its container's full width.
|
|
791
|
+
* @default false
|
|
792
|
+
*/
|
|
793
|
+
block?: boolean;
|
|
580
794
|
}
|
|
581
795
|
declare namespace Attachment {
|
|
582
796
|
type Props = AttachmentProps;
|
|
@@ -674,6 +888,19 @@ declare namespace AttachmentGroup {
|
|
|
674
888
|
}
|
|
675
889
|
//#endregion
|
|
676
890
|
//#region src/components/avatar.d.ts
|
|
891
|
+
/**
|
|
892
|
+
* Circular container that displays a user or entity image with a text/icon fallback.
|
|
893
|
+
* Renders the Base UI `Avatar.Root` element; place `AvatarImage`, `AvatarFallback`, and
|
|
894
|
+
* an optional `AvatarBadge` inside it.
|
|
895
|
+
*
|
|
896
|
+
* @example
|
|
897
|
+
* ```tsx
|
|
898
|
+
* <Avatar>
|
|
899
|
+
* <AvatarImage src="/jane.jpg" alt="Jane Doe" />
|
|
900
|
+
* <AvatarFallback>JD</AvatarFallback>
|
|
901
|
+
* </Avatar>
|
|
902
|
+
* ```
|
|
903
|
+
*/
|
|
677
904
|
declare const Avatar: React.ForwardRefExoticComponent<Omit<AvatarProps, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
678
905
|
interface AvatarProps extends Avatar$1.Root.Props {
|
|
679
906
|
size?: 'xs' | 'sm' | 'default' | 'lg' | 'xl';
|
|
@@ -681,26 +908,55 @@ interface AvatarProps extends Avatar$1.Root.Props {
|
|
|
681
908
|
declare namespace Avatar {
|
|
682
909
|
type Props = AvatarProps;
|
|
683
910
|
}
|
|
911
|
+
/**
|
|
912
|
+
* The avatar's image. Renders the Base UI `Avatar.Image` (`<img>`) and is hidden
|
|
913
|
+
* automatically when the source fails to load, revealing the `AvatarFallback`.
|
|
914
|
+
*/
|
|
684
915
|
declare const AvatarImage: React.ForwardRefExoticComponent<Omit<AvatarImageProps, "ref"> & React.RefAttributes<HTMLImageElement>>;
|
|
685
916
|
interface AvatarImageProps extends Avatar$1.Image.Props {}
|
|
686
917
|
declare namespace AvatarImage {
|
|
687
918
|
type Props = AvatarImageProps;
|
|
688
919
|
}
|
|
920
|
+
/**
|
|
921
|
+
* Content shown while the image is loading or when it fails to load (typically initials).
|
|
922
|
+
* Renders the Base UI `Avatar.Fallback` element.
|
|
923
|
+
*/
|
|
689
924
|
declare const AvatarFallback: React.ForwardRefExoticComponent<Omit<AvatarFallbackProps, "ref"> & React.RefAttributes<HTMLSpanElement>>;
|
|
690
925
|
interface AvatarFallbackProps extends Avatar$1.Fallback.Props {}
|
|
691
926
|
declare namespace AvatarFallback {
|
|
692
927
|
type Props = AvatarFallbackProps;
|
|
693
928
|
}
|
|
929
|
+
/**
|
|
930
|
+
* Small status indicator overlaid on the bottom-right of an `Avatar` (e.g. presence dot).
|
|
931
|
+
* Renders a `<span>`; its size and inner icon visibility scale with the parent avatar size.
|
|
932
|
+
*/
|
|
694
933
|
declare const AvatarBadge: React.ForwardRefExoticComponent<Omit<AvatarBadgeProps, "ref"> & React.RefAttributes<HTMLSpanElement>>;
|
|
695
934
|
interface AvatarBadgeProps extends React.ComponentProps<'span'> {}
|
|
696
935
|
declare namespace AvatarBadge {
|
|
697
936
|
type Props = AvatarBadgeProps;
|
|
698
937
|
}
|
|
938
|
+
/**
|
|
939
|
+
* Row of overlapping avatars with a ring separating each one. Renders a `<div>`;
|
|
940
|
+
* wrap several `Avatar` elements (and an optional `AvatarGroupCount`) inside it.
|
|
941
|
+
*
|
|
942
|
+
* @example
|
|
943
|
+
* ```tsx
|
|
944
|
+
* <AvatarGroup>
|
|
945
|
+
* <Avatar>…</Avatar>
|
|
946
|
+
* <Avatar>…</Avatar>
|
|
947
|
+
* <AvatarGroupCount>+3</AvatarGroupCount>
|
|
948
|
+
* </AvatarGroup>
|
|
949
|
+
* ```
|
|
950
|
+
*/
|
|
699
951
|
declare const AvatarGroup: React.ForwardRefExoticComponent<Omit<AvatarGroupProps, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
700
952
|
interface AvatarGroupProps extends React.ComponentProps<'div'> {}
|
|
701
953
|
declare namespace AvatarGroup {
|
|
702
954
|
type Props = AvatarGroupProps;
|
|
703
955
|
}
|
|
956
|
+
/**
|
|
957
|
+
* Trailing counter shown at the end of an `AvatarGroup` for the overflow of hidden avatars.
|
|
958
|
+
* Renders a circular `<div>` sized to match the group's avatars.
|
|
959
|
+
*/
|
|
704
960
|
declare const AvatarGroupCount: React.ForwardRefExoticComponent<Omit<AvatarGroupCountProps, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
705
961
|
interface AvatarGroupCountProps extends React.ComponentProps<'div'> {}
|
|
706
962
|
declare namespace AvatarGroupCount {
|
|
@@ -708,9 +964,24 @@ declare namespace AvatarGroupCount {
|
|
|
708
964
|
}
|
|
709
965
|
//#endregion
|
|
710
966
|
//#region src/components/counter-badge.d.ts
|
|
967
|
+
/**
|
|
968
|
+
* `class-variance-authority` config for {@link CounterBadge}. `variant`
|
|
969
|
+
* (`default` | `secondary` | `ghost`, default `default`) sets the colour scheme.
|
|
970
|
+
*/
|
|
711
971
|
declare const counterBadgeVariants: (props?: ({
|
|
712
|
-
variant?: "default" | "
|
|
972
|
+
variant?: "default" | "secondary" | "ghost" | null | undefined;
|
|
713
973
|
} & class_variance_authority_types7.ClassProp) | undefined) => string;
|
|
974
|
+
/**
|
|
975
|
+
* Small pill for surfacing a count or short status, e.g. an unread indicator.
|
|
976
|
+
* Renders a `<span>` (override the element via the `render` prop).
|
|
977
|
+
*
|
|
978
|
+
* @prop variant - Colour scheme: `default` | `secondary` | `ghost`. Default: `'default'`.
|
|
979
|
+
*
|
|
980
|
+
* @example
|
|
981
|
+
* ```tsx
|
|
982
|
+
* <CounterBadge>3</CounterBadge>
|
|
983
|
+
* ```
|
|
984
|
+
*/
|
|
714
985
|
declare const CounterBadge: React.ForwardRefExoticComponent<Omit<CounterBadgeProps, "ref"> & React.RefAttributes<HTMLSpanElement>>;
|
|
715
986
|
type CounterBadgeProps = useRender.ComponentProps<'span'> & VariantProps<typeof counterBadgeVariants>;
|
|
716
987
|
declare namespace CounterBadge {
|
|
@@ -718,13 +989,16 @@ declare namespace CounterBadge {
|
|
|
718
989
|
}
|
|
719
990
|
//#endregion
|
|
720
991
|
//#region src/components/badge.d.ts
|
|
992
|
+
/** `cva` recipe for the Badge/Chip container — drives the `size`, `color`, and `tone` classes. */
|
|
721
993
|
declare const badgeVariants: (props?: ({
|
|
722
994
|
size?: "default" | "lg" | null | undefined;
|
|
723
995
|
color?: "blue" | "green" | "pink" | "purple" | "red" | "yellow" | "charcoal" | null | undefined;
|
|
724
996
|
tone?: "dark" | "light" | "medium-dark" | "medium-light" | null | undefined;
|
|
725
997
|
} & class_variance_authority_types7.ClassProp) | undefined) => string;
|
|
726
998
|
type BadgeVariants = VariantProps<typeof badgeVariants>;
|
|
999
|
+
/** Constrained DS badge fill color (no freeform hex). */
|
|
727
1000
|
type BadgeColor = NonNullable<BadgeVariants['color']>;
|
|
1001
|
+
/** Opacity step of the per-color film overlay, from `dark` (most saturated) to `light`. */
|
|
728
1002
|
type BadgeTone = NonNullable<BadgeVariants['tone']>;
|
|
729
1003
|
/**
|
|
730
1004
|
* A standalone label badge. Read-only by default; render it as an anchor or
|
|
@@ -748,6 +1022,10 @@ interface BadgeProps extends Omit<useRender.ComponentProps<'span'>, 'color'>, Va
|
|
|
748
1022
|
declare namespace Badge {
|
|
749
1023
|
type Props = BadgeProps;
|
|
750
1024
|
}
|
|
1025
|
+
/**
|
|
1026
|
+
* Lays out a set of `Badge`s in a wrapping horizontal row. Renders a `<div>`
|
|
1027
|
+
* (`flex flex-wrap`, `gap-2`); pair with `BadgeGroupCount` to show an overflow tally.
|
|
1028
|
+
*/
|
|
751
1029
|
declare const BadgeGroup: React.ForwardRefExoticComponent<Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
752
1030
|
declare namespace BadgeGroup {
|
|
753
1031
|
type Props = React.ComponentProps<'div'>;
|
|
@@ -755,24 +1033,69 @@ declare namespace BadgeGroup {
|
|
|
755
1033
|
declare const badgeGroupCountVariants: (props?: ({
|
|
756
1034
|
size?: "default" | "lg" | null | undefined;
|
|
757
1035
|
} & class_variance_authority_types7.ClassProp) | undefined) => string;
|
|
1036
|
+
/**
|
|
1037
|
+
* Trailing "+N" overflow counter for a `BadgeGroup`. Renders a ghost `CounterBadge`
|
|
1038
|
+
* sized to match the group's badges (`size` mirrors `Badge`'s `default` / `lg`).
|
|
1039
|
+
*/
|
|
758
1040
|
declare const BadgeGroupCount: React.ForwardRefExoticComponent<Omit<BadgeGroupCount.Props, "ref"> & React.RefAttributes<HTMLSpanElement>>;
|
|
759
1041
|
declare namespace BadgeGroupCount {
|
|
760
1042
|
type Props = Omit<React.ComponentProps<typeof CounterBadge>, 'variant'> & VariantProps<typeof badgeGroupCountVariants>;
|
|
761
1043
|
}
|
|
762
1044
|
//#endregion
|
|
763
1045
|
//#region src/components/banner.d.ts
|
|
1046
|
+
/**
|
|
1047
|
+
* `class-variance-authority` config for the {@link Banner} container. `variant`
|
|
1048
|
+
* (`default` | `info` | `success` | `warning` | `error`, default `default`)
|
|
1049
|
+
* sets the colour scheme; `borderDirection` (`top` | `bottom`) chooses which
|
|
1050
|
+
* edge gets the accent border.
|
|
1051
|
+
*/
|
|
764
1052
|
declare const bannerVariants: (props?: ({
|
|
765
1053
|
variant?: "default" | "info" | "success" | "warning" | "error" | null | undefined;
|
|
766
1054
|
borderDirection?: "bottom" | "top" | null | undefined;
|
|
767
1055
|
} & class_variance_authority_types7.ClassProp) | undefined) => string;
|
|
1056
|
+
/**
|
|
1057
|
+
* Full-width contextual message, typically pinned to the top or bottom of a
|
|
1058
|
+
* view. Like {@link Alert} but edge-to-edge with a single accent border.
|
|
1059
|
+
*
|
|
1060
|
+
* Renders a `<div role="alert">` laid out as a grid for an optional leading
|
|
1061
|
+
* icon, `BannerTitle`, `BannerDescription`, and `BannerAction`.
|
|
1062
|
+
*
|
|
1063
|
+
* @prop variant - Colour scheme: `default` | `info` | `success` | `warning` | `error`. Default: `'default'`.
|
|
1064
|
+
* @prop borderDirection - Which edge carries the accent border: `top` | `bottom`.
|
|
1065
|
+
*
|
|
1066
|
+
* @example
|
|
1067
|
+
* ```tsx
|
|
1068
|
+
* <Banner variant="warning" borderDirection="top">
|
|
1069
|
+
* <WarningIcon />
|
|
1070
|
+
* <BannerTitle>Scheduled maintenance</BannerTitle>
|
|
1071
|
+
* <BannerDescription>The app may be briefly unavailable tonight.</BannerDescription>
|
|
1072
|
+
* </Banner>
|
|
1073
|
+
* ```
|
|
1074
|
+
*/
|
|
768
1075
|
declare const Banner: React.ForwardRefExoticComponent<Omit<BannerProps, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
1076
|
+
/** Props for {@link Banner} — `<div>` props plus the `bannerVariants` `variant` and `borderDirection` options. */
|
|
769
1077
|
interface BannerProps extends React.ComponentProps<'div'>, VariantProps<typeof bannerVariants> {}
|
|
770
1078
|
declare namespace Banner {
|
|
771
1079
|
type Props = BannerProps;
|
|
772
1080
|
}
|
|
773
1081
|
//#endregion
|
|
774
1082
|
//#region src/components/notification-queue.d.ts
|
|
1083
|
+
/** Priority tier of a notification; the highest-priority active entry wins a slot. */
|
|
775
1084
|
type NotificationPriority = 'error' | 'warning' | 'success' | 'info' | 'promotional';
|
|
1085
|
+
/**
|
|
1086
|
+
* Provides the notification queue store (state + dispatch) to descendants so the
|
|
1087
|
+
* `useNotification`/`useNotificationQueue` hooks and `NotificationSlot`s can share it.
|
|
1088
|
+
* Renders no DOM element — wrap your app (or a subtree) and place `NotificationSlot`s
|
|
1089
|
+
* where notifications should appear.
|
|
1090
|
+
*
|
|
1091
|
+
* @example
|
|
1092
|
+
* ```tsx
|
|
1093
|
+
* <NotificationQueueProvider>
|
|
1094
|
+
* <App />
|
|
1095
|
+
* <NotificationSlot slot="page" />
|
|
1096
|
+
* </NotificationQueueProvider>
|
|
1097
|
+
* ```
|
|
1098
|
+
*/
|
|
776
1099
|
declare function NotificationQueueProvider(componentProps: NotificationQueueProvider.Props): React.JSX.Element;
|
|
777
1100
|
interface NotificationQueueProviderProps {
|
|
778
1101
|
children: React.ReactNode;
|
|
@@ -784,6 +1107,7 @@ interface NotificationRenderProps {
|
|
|
784
1107
|
/** Dismisses this notification from the queue. */
|
|
785
1108
|
dismiss: () => void;
|
|
786
1109
|
}
|
|
1110
|
+
/** Describes a notification to register or push into the queue. */
|
|
787
1111
|
interface NotificationOptions {
|
|
788
1112
|
/** Stable identifier — must be unique within a slot. */
|
|
789
1113
|
id: string;
|
|
@@ -811,15 +1135,31 @@ interface NotificationOptions {
|
|
|
811
1135
|
*/
|
|
812
1136
|
render: (props: NotificationRenderProps) => React.ReactNode;
|
|
813
1137
|
}
|
|
1138
|
+
/** Handle returned when registering a notification, exposing a bound `dismiss`. */
|
|
814
1139
|
interface NotificationHandle {
|
|
815
1140
|
/** Dismisses this specific notification. No id/slot required. */
|
|
816
1141
|
dismiss: () => void;
|
|
817
1142
|
}
|
|
1143
|
+
/** Imperative controls returned by `useNotificationQueue`. */
|
|
818
1144
|
interface NotificationQueueControls {
|
|
819
1145
|
push: (options: NotificationOptions) => NotificationHandle;
|
|
820
1146
|
dismiss: (id: string, slot: string) => void;
|
|
821
1147
|
}
|
|
1148
|
+
/**
|
|
1149
|
+
* Imperative notification API for event-driven notifications (a user action occurred,
|
|
1150
|
+
* an async operation completed, a message arrived). Must run under `NotificationQueueProvider`.
|
|
1151
|
+
*
|
|
1152
|
+
* @returns `{ push, dismiss }` — `push(options)` registers a notification and returns a
|
|
1153
|
+
* `NotificationHandle` with a bound `dismiss`; `dismiss(id, slot)` removes one by id + slot.
|
|
1154
|
+
*/
|
|
822
1155
|
declare function useNotificationQueue(): NotificationQueueControls;
|
|
1156
|
+
/**
|
|
1157
|
+
* Declarative, lifecycle-bound notification for persistent state (visible as long as a
|
|
1158
|
+
* condition holds): registers on mount and unregisters on unmount. Must run under
|
|
1159
|
+
* `NotificationQueueProvider`.
|
|
1160
|
+
*
|
|
1161
|
+
* @returns a `NotificationHandle` with a `dismiss` bound to this notification.
|
|
1162
|
+
*/
|
|
823
1163
|
declare function useNotification({
|
|
824
1164
|
id,
|
|
825
1165
|
slot,
|
|
@@ -830,12 +1170,33 @@ interface NotificationSlotProps {
|
|
|
830
1170
|
slot: string;
|
|
831
1171
|
className?: string;
|
|
832
1172
|
}
|
|
1173
|
+
/**
|
|
1174
|
+
* Renders the highest-priority active notification for a given `slot`, or nothing when
|
|
1175
|
+
* the slot is empty. Renders a `<div>` wrapper around the notification content; place it
|
|
1176
|
+
* wherever output should appear (a top-level banner area, or inline in a form/card).
|
|
1177
|
+
*
|
|
1178
|
+
* @example
|
|
1179
|
+
* ```tsx
|
|
1180
|
+
* <NotificationSlot slot="page" />
|
|
1181
|
+
* ```
|
|
1182
|
+
*/
|
|
833
1183
|
declare const NotificationSlot: React.ForwardRefExoticComponent<NotificationSlotProps & React.RefAttributes<HTMLDivElement>>;
|
|
834
1184
|
declare namespace NotificationSlot {
|
|
835
1185
|
type Props = NotificationSlotProps;
|
|
836
1186
|
}
|
|
837
1187
|
//#endregion
|
|
838
1188
|
//#region src/components/separator.d.ts
|
|
1189
|
+
/**
|
|
1190
|
+
* Visual and semantic divider between content. Renders Base UI's `Separator`
|
|
1191
|
+
* primitive as a `<div role="separator">` line.
|
|
1192
|
+
*
|
|
1193
|
+
* @prop orientation - Line direction: `horizontal` | `vertical`. Default: `'horizontal'`.
|
|
1194
|
+
*
|
|
1195
|
+
* @example
|
|
1196
|
+
* ```tsx
|
|
1197
|
+
* <Separator orientation="vertical" />
|
|
1198
|
+
* ```
|
|
1199
|
+
*/
|
|
839
1200
|
declare const Separator: React.ForwardRefExoticComponent<Omit<SeparatorProps, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
840
1201
|
interface SeparatorProps extends Separator$1.Props {}
|
|
841
1202
|
declare namespace Separator {
|
|
@@ -843,19 +1204,40 @@ declare namespace Separator {
|
|
|
843
1204
|
}
|
|
844
1205
|
//#endregion
|
|
845
1206
|
//#region src/components/button-group.d.ts
|
|
1207
|
+
/** `cva` variant definitions for {@link ButtonGroup} — resolves `orientation` (horizontal / vertical) into class names. */
|
|
846
1208
|
declare const buttonGroupVariants: (props?: ({
|
|
847
1209
|
orientation?: "horizontal" | "vertical" | null | undefined;
|
|
848
1210
|
} & class_variance_authority_types7.ClassProp) | undefined) => string;
|
|
1211
|
+
/**
|
|
1212
|
+
* Groups related buttons into a single visual unit with shared borders and merged corners.
|
|
1213
|
+
* Renders a `<div role="group">` and normalizes the radii/borders of its children.
|
|
1214
|
+
*
|
|
1215
|
+
* @example
|
|
1216
|
+
* ```tsx
|
|
1217
|
+
* <ButtonGroup>
|
|
1218
|
+
* <Button variant="outline">Prev</Button>
|
|
1219
|
+
* <Button variant="outline">Next</Button>
|
|
1220
|
+
* </ButtonGroup>
|
|
1221
|
+
* ```
|
|
1222
|
+
*/
|
|
849
1223
|
declare const ButtonGroup: React.ForwardRefExoticComponent<Omit<ButtonGroupProps, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
850
1224
|
interface ButtonGroupProps extends React.ComponentProps<'div'>, VariantProps<typeof buttonGroupVariants> {}
|
|
851
1225
|
declare namespace ButtonGroup {
|
|
852
1226
|
type Props = ButtonGroupProps;
|
|
853
1227
|
}
|
|
1228
|
+
/**
|
|
1229
|
+
* Non-interactive text or label segment inside a {@link ButtonGroup}.
|
|
1230
|
+
* Renders a `<div>` by default (overridable via `render`), styled to match adjacent buttons.
|
|
1231
|
+
*/
|
|
854
1232
|
declare const ButtonGroupText: React.ForwardRefExoticComponent<Omit<ButtonGroupTextProps, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
855
1233
|
type ButtonGroupTextProps = useRender.ComponentProps<'div'>;
|
|
856
1234
|
declare namespace ButtonGroupText {
|
|
857
1235
|
type Props = ButtonGroupTextProps;
|
|
858
1236
|
}
|
|
1237
|
+
/**
|
|
1238
|
+
* Divider between items in a {@link ButtonGroup}. Renders a `Separator` (defaulting to
|
|
1239
|
+
* `orientation="vertical"`) sized to stretch across the group.
|
|
1240
|
+
*/
|
|
859
1241
|
declare const ButtonGroupSeparator: React.ForwardRefExoticComponent<Omit<ButtonGroupSeparatorProps, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
860
1242
|
interface ButtonGroupSeparatorProps extends React.ComponentProps<typeof Separator> {}
|
|
861
1243
|
declare namespace ButtonGroupSeparator {
|
|
@@ -863,6 +1245,16 @@ declare namespace ButtonGroupSeparator {
|
|
|
863
1245
|
}
|
|
864
1246
|
//#endregion
|
|
865
1247
|
//#region src/components/calendar.d.ts
|
|
1248
|
+
/**
|
|
1249
|
+
* Date picker calendar, a themed wrapper around react-day-picker's `DayPicker`.
|
|
1250
|
+
* Renders DayPicker's grid inside a `<div data-slot="calendar">`, styled with DS
|
|
1251
|
+
* tokens and Button-styled nav controls.
|
|
1252
|
+
*
|
|
1253
|
+
* @example
|
|
1254
|
+
* ```tsx
|
|
1255
|
+
* <Calendar mode="single" selected={date} onSelect={setDate} />
|
|
1256
|
+
* ```
|
|
1257
|
+
*/
|
|
866
1258
|
declare function Calendar({
|
|
867
1259
|
className,
|
|
868
1260
|
classNames,
|
|
@@ -875,11 +1267,20 @@ declare function Calendar({
|
|
|
875
1267
|
...props
|
|
876
1268
|
}: Calendar.Props): React.JSX.Element;
|
|
877
1269
|
type CalendarProps = React.ComponentProps<typeof DayPicker> & {
|
|
1270
|
+
/**
|
|
1271
|
+
* `Button` variant applied to the previous/next month nav controls.
|
|
1272
|
+
* @default 'ghost'
|
|
1273
|
+
*/
|
|
878
1274
|
buttonVariant?: React.ComponentProps<typeof Button>['variant'];
|
|
879
1275
|
};
|
|
880
1276
|
declare namespace Calendar {
|
|
881
1277
|
type Props = CalendarProps;
|
|
882
1278
|
}
|
|
1279
|
+
/**
|
|
1280
|
+
* Single day cell within the calendar grid. Renders a ghost icon `Button`
|
|
1281
|
+
* (`<button>`) carrying selection/range data attributes, and auto-focuses
|
|
1282
|
+
* itself when react-day-picker marks the day as focused.
|
|
1283
|
+
*/
|
|
883
1284
|
declare function CalendarDayButton({
|
|
884
1285
|
className: dayClassName,
|
|
885
1286
|
day,
|
|
@@ -888,6 +1289,7 @@ declare function CalendarDayButton({
|
|
|
888
1289
|
...props
|
|
889
1290
|
}: CalendarDayButton.Props): React.JSX.Element;
|
|
890
1291
|
interface CalendarDayButtonProps extends React.ComponentProps<typeof DayButton> {
|
|
1292
|
+
/** Locale used to format the day's `data-day` date string. */
|
|
891
1293
|
locale?: Partial<Locale>;
|
|
892
1294
|
}
|
|
893
1295
|
declare namespace CalendarDayButton {
|
|
@@ -895,38 +1297,80 @@ declare namespace CalendarDayButton {
|
|
|
895
1297
|
}
|
|
896
1298
|
//#endregion
|
|
897
1299
|
//#region src/components/card.d.ts
|
|
1300
|
+
/**
|
|
1301
|
+
* Root container for a card. Renders a `<div data-slot="card">` with border, background, and
|
|
1302
|
+
* vertical spacing; child parts (`CardHeader`, `CardContent`, `CardFooter`, …) compose inside it.
|
|
1303
|
+
*
|
|
1304
|
+
* @example
|
|
1305
|
+
* ```tsx
|
|
1306
|
+
* <Card>
|
|
1307
|
+
* <CardHeader>
|
|
1308
|
+
* <CardTitle>Title</CardTitle>
|
|
1309
|
+
* <CardDescription>Description</CardDescription>
|
|
1310
|
+
* </CardHeader>
|
|
1311
|
+
* <CardContent>Body</CardContent>
|
|
1312
|
+
* <CardFooter>Footer</CardFooter>
|
|
1313
|
+
* </Card>
|
|
1314
|
+
* ```
|
|
1315
|
+
*/
|
|
898
1316
|
declare const Card: React.ForwardRefExoticComponent<Omit<CardProps, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
899
1317
|
interface CardProps extends React.ComponentProps<'div'> {
|
|
1318
|
+
/**
|
|
1319
|
+
* Visual density of the card — `'sm'` tightens padding and gaps.
|
|
1320
|
+
* @default 'default'
|
|
1321
|
+
*/
|
|
900
1322
|
size?: 'default' | 'sm';
|
|
901
1323
|
}
|
|
902
1324
|
declare namespace Card {
|
|
903
1325
|
type Props = CardProps;
|
|
904
1326
|
}
|
|
1327
|
+
/**
|
|
1328
|
+
* Header region of a card. Renders a `<div data-slot="card-header">` that lays out the title,
|
|
1329
|
+
* description, and an optional `CardAction` in a grid.
|
|
1330
|
+
*/
|
|
905
1331
|
declare const CardHeader: React.ForwardRefExoticComponent<Omit<CardHeaderProps, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
906
1332
|
interface CardHeaderProps extends React.ComponentProps<'div'> {}
|
|
907
1333
|
declare namespace CardHeader {
|
|
908
1334
|
type Props = CardHeaderProps;
|
|
909
1335
|
}
|
|
1336
|
+
/**
|
|
1337
|
+
* Card title. Renders a `<div data-slot="card-title">` with emphasized title typography.
|
|
1338
|
+
*/
|
|
910
1339
|
declare const CardTitle: React.ForwardRefExoticComponent<Omit<CardTitleProps, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
911
1340
|
interface CardTitleProps extends React.ComponentProps<'div'> {}
|
|
912
1341
|
declare namespace CardTitle {
|
|
913
1342
|
type Props = CardTitleProps;
|
|
914
1343
|
}
|
|
1344
|
+
/**
|
|
1345
|
+
* Secondary descriptive text for a card. Renders a `<div data-slot="card-description">` in muted
|
|
1346
|
+
* foreground color.
|
|
1347
|
+
*/
|
|
915
1348
|
declare const CardDescription: React.ForwardRefExoticComponent<Omit<CardDescriptionProps, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
916
1349
|
interface CardDescriptionProps extends React.ComponentProps<'div'> {}
|
|
917
1350
|
declare namespace CardDescription {
|
|
918
1351
|
type Props = CardDescriptionProps;
|
|
919
1352
|
}
|
|
1353
|
+
/**
|
|
1354
|
+
* Action slot pinned to the top-right of `CardHeader` (e.g. a button or menu). Renders a
|
|
1355
|
+
* `<div data-slot="card-action">` positioned in the header grid.
|
|
1356
|
+
*/
|
|
920
1357
|
declare const CardAction: React.ForwardRefExoticComponent<Omit<CardActionProps, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
921
1358
|
interface CardActionProps extends React.ComponentProps<'div'> {}
|
|
922
1359
|
declare namespace CardAction {
|
|
923
1360
|
type Props = CardActionProps;
|
|
924
1361
|
}
|
|
1362
|
+
/**
|
|
1363
|
+
* Main body region of a card. Renders a `<div data-slot="card-content">` with horizontal padding.
|
|
1364
|
+
*/
|
|
925
1365
|
declare const CardContent: React.ForwardRefExoticComponent<Omit<CardContentProps, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
926
1366
|
interface CardContentProps extends React.ComponentProps<'div'> {}
|
|
927
1367
|
declare namespace CardContent {
|
|
928
1368
|
type Props = CardContentProps;
|
|
929
1369
|
}
|
|
1370
|
+
/**
|
|
1371
|
+
* Footer region of a card. Renders a `<div data-slot="card-footer">` with a top border and muted
|
|
1372
|
+
* background.
|
|
1373
|
+
*/
|
|
930
1374
|
declare const CardFooter: React.ForwardRefExoticComponent<Omit<CardFooterProps, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
931
1375
|
interface CardFooterProps extends React.ComponentProps<'div'> {}
|
|
932
1376
|
declare namespace CardFooter {
|
|
@@ -934,35 +1378,72 @@ declare namespace CardFooter {
|
|
|
934
1378
|
}
|
|
935
1379
|
//#endregion
|
|
936
1380
|
//#region src/components/carousel.d.ts
|
|
1381
|
+
/** The Embla carousel instance, exposed via `setApi` for imperative control (scroll, subscribe to events). */
|
|
937
1382
|
type CarouselApi = UseEmblaCarouselType[1];
|
|
938
1383
|
type UseCarouselParameters = Parameters<typeof useEmblaCarousel>;
|
|
939
1384
|
type CarouselOptions = UseCarouselParameters[0];
|
|
940
1385
|
type CarouselPlugin = UseCarouselParameters[1];
|
|
941
1386
|
type CarouselProps = {
|
|
942
|
-
opts?: CarouselOptions;
|
|
1387
|
+
/** Embla options object passed through to `useEmblaCarousel`. */opts?: CarouselOptions; /** Embla plugins (e.g. autoplay) passed through to `useEmblaCarousel`. */
|
|
943
1388
|
plugins?: CarouselPlugin;
|
|
944
|
-
|
|
1389
|
+
/**
|
|
1390
|
+
* Scroll axis of the carousel.
|
|
1391
|
+
* @default 'horizontal'
|
|
1392
|
+
*/
|
|
1393
|
+
orientation?: 'horizontal' | 'vertical'; /** Callback invoked with the Embla api once ready, for imperative control. */
|
|
945
1394
|
setApi?: (api: CarouselApi) => void;
|
|
946
1395
|
};
|
|
1396
|
+
/**
|
|
1397
|
+
* Carousel root that sets up Embla and shares state via context with its parts.
|
|
1398
|
+
* Renders a `<div role="region">` and handles left/right arrow-key navigation.
|
|
1399
|
+
*
|
|
1400
|
+
* @example
|
|
1401
|
+
* ```tsx
|
|
1402
|
+
* <Carousel>
|
|
1403
|
+
* <CarouselContent>
|
|
1404
|
+
* <CarouselItem>Slide 1</CarouselItem>
|
|
1405
|
+
* <CarouselItem>Slide 2</CarouselItem>
|
|
1406
|
+
* </CarouselContent>
|
|
1407
|
+
* <CarouselPrevious />
|
|
1408
|
+
* <CarouselNext />
|
|
1409
|
+
* </Carousel>
|
|
1410
|
+
* ```
|
|
1411
|
+
*/
|
|
947
1412
|
declare const Carousel: React.ForwardRefExoticComponent<Omit<Carousel.Props, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
948
1413
|
declare namespace Carousel {
|
|
949
1414
|
type Props = React.ComponentProps<'div'> & CarouselProps;
|
|
950
1415
|
}
|
|
1416
|
+
/**
|
|
1417
|
+
* Scrollable viewport wrapping the slides. Renders an overflow-hidden `<div>`
|
|
1418
|
+
* (the Embla ref holder) containing a flex `<div>` that lays out the items.
|
|
1419
|
+
*/
|
|
951
1420
|
declare const CarouselContent: React.ForwardRefExoticComponent<Omit<CarouselContentProps, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
952
1421
|
interface CarouselContentProps extends React.ComponentProps<'div'> {}
|
|
953
1422
|
declare namespace CarouselContent {
|
|
954
1423
|
type Props = CarouselContentProps;
|
|
955
1424
|
}
|
|
956
|
-
|
|
1425
|
+
/**
|
|
1426
|
+
* A single slide. Renders a full-basis `<div role="group">` that adjusts its
|
|
1427
|
+
* padding based on the carousel orientation.
|
|
1428
|
+
*/
|
|
1429
|
+
declare const CarouselItem: React.ForwardRefExoticComponent<Omit<CarouselItemProps, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
957
1430
|
interface CarouselItemProps extends React.ComponentProps<'div'> {}
|
|
958
1431
|
declare namespace CarouselItem {
|
|
959
1432
|
type Props = CarouselItemProps;
|
|
960
1433
|
}
|
|
1434
|
+
/**
|
|
1435
|
+
* Button that scrolls to the previous slide, auto-disabled at the start.
|
|
1436
|
+
* Renders a rounded icon `Button` (`<button>`) positioned outside the viewport.
|
|
1437
|
+
*/
|
|
961
1438
|
declare const CarouselPrevious: React.ForwardRefExoticComponent<Omit<CarouselPreviousProps, "ref"> & React.RefAttributes<HTMLButtonElement>>;
|
|
962
1439
|
interface CarouselPreviousProps extends React.ComponentProps<typeof Button> {}
|
|
963
1440
|
declare namespace CarouselPrevious {
|
|
964
1441
|
type Props = CarouselPreviousProps;
|
|
965
1442
|
}
|
|
1443
|
+
/**
|
|
1444
|
+
* Button that scrolls to the next slide, auto-disabled at the end.
|
|
1445
|
+
* Renders a rounded icon `Button` (`<button>`) positioned outside the viewport.
|
|
1446
|
+
*/
|
|
966
1447
|
declare const CarouselNext: React.ForwardRefExoticComponent<Omit<CarouselNextProps, "ref"> & React.RefAttributes<HTMLButtonElement>>;
|
|
967
1448
|
interface CarouselNextProps extends React.ComponentProps<typeof Button> {}
|
|
968
1449
|
declare namespace CarouselNext {
|
|
@@ -970,6 +1451,16 @@ declare namespace CarouselNext {
|
|
|
970
1451
|
}
|
|
971
1452
|
//#endregion
|
|
972
1453
|
//#region src/components/checkbox.d.ts
|
|
1454
|
+
/**
|
|
1455
|
+
* A checkbox for toggling a single value, wrapping Base UI's `Checkbox.Root`.
|
|
1456
|
+
* Renders a `<button role="checkbox">` containing a check (checked) or minus
|
|
1457
|
+
* (indeterminate) indicator.
|
|
1458
|
+
*
|
|
1459
|
+
* @example
|
|
1460
|
+
* ```tsx
|
|
1461
|
+
* <Checkbox defaultChecked />
|
|
1462
|
+
* ```
|
|
1463
|
+
*/
|
|
973
1464
|
declare const Checkbox: React.ForwardRefExoticComponent<Omit<CheckboxProps, "ref"> & React.RefAttributes<HTMLButtonElement>>;
|
|
974
1465
|
interface CheckboxProps extends Checkbox$1.Root.Props {}
|
|
975
1466
|
declare namespace Checkbox {
|
|
@@ -1047,16 +1538,39 @@ declare namespace FilterClearAllButton {
|
|
|
1047
1538
|
}
|
|
1048
1539
|
//#endregion
|
|
1049
1540
|
//#region src/components/collapsible.d.ts
|
|
1541
|
+
/**
|
|
1542
|
+
* Root container for a Collapsible. Manages the open/closed state of a single
|
|
1543
|
+
* expandable region and renders a `<div>` wrapping the trigger and content.
|
|
1544
|
+
*
|
|
1545
|
+
* Supports controlled (`open` + `onOpenChange`) and uncontrolled (`defaultOpen`)
|
|
1546
|
+
* modes.
|
|
1547
|
+
*
|
|
1548
|
+
* @example
|
|
1549
|
+
* ```tsx
|
|
1550
|
+
* <Collapsible>
|
|
1551
|
+
* <CollapsibleTrigger>Toggle</CollapsibleTrigger>
|
|
1552
|
+
* <CollapsibleContent>Hidden content</CollapsibleContent>
|
|
1553
|
+
* </Collapsible>
|
|
1554
|
+
* ```
|
|
1555
|
+
*/
|
|
1050
1556
|
declare const Collapsible: React.ForwardRefExoticComponent<Omit<CollapsibleProps, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
1051
1557
|
interface CollapsibleProps extends Collapsible$1.Root.Props {}
|
|
1052
1558
|
declare namespace Collapsible {
|
|
1053
1559
|
type Props = CollapsibleProps;
|
|
1054
1560
|
}
|
|
1561
|
+
/**
|
|
1562
|
+
* The button that toggles the Collapsible open and closed. Renders a
|
|
1563
|
+
* `<button>` element.
|
|
1564
|
+
*/
|
|
1055
1565
|
declare const CollapsibleTrigger: React.ForwardRefExoticComponent<Omit<CollapsibleTriggerProps, "ref"> & React.RefAttributes<HTMLButtonElement>>;
|
|
1056
1566
|
interface CollapsibleTriggerProps extends Collapsible$1.Trigger.Props {}
|
|
1057
1567
|
declare namespace CollapsibleTrigger {
|
|
1058
1568
|
type Props = CollapsibleTriggerProps;
|
|
1059
1569
|
}
|
|
1570
|
+
/**
|
|
1571
|
+
* The collapsible region revealed when the trigger is toggled open. Renders a
|
|
1572
|
+
* `<div>` panel that is hidden while collapsed.
|
|
1573
|
+
*/
|
|
1060
1574
|
declare const CollapsibleContent: React.ForwardRefExoticComponent<Omit<CollapsibleContentProps, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
1061
1575
|
interface CollapsibleContentProps extends Collapsible$1.Panel.Props {}
|
|
1062
1576
|
declare namespace CollapsibleContent {
|
|
@@ -1064,11 +1578,36 @@ declare namespace CollapsibleContent {
|
|
|
1064
1578
|
}
|
|
1065
1579
|
//#endregion
|
|
1066
1580
|
//#region src/components/combobox.d.ts
|
|
1581
|
+
/**
|
|
1582
|
+
* Root of the combobox, aliasing Base UI's `Combobox.Root`. Manages selection, open state, and
|
|
1583
|
+
* filtering, and renders no DOM element — compose the input, content, and items inside it.
|
|
1584
|
+
*
|
|
1585
|
+
* @example
|
|
1586
|
+
* ```tsx
|
|
1587
|
+
* <Combobox items={items}>
|
|
1588
|
+
* <ComboboxInput placeholder="Search…" />
|
|
1589
|
+
* <ComboboxContent>
|
|
1590
|
+
* <ComboboxList>
|
|
1591
|
+
* {(item) => <ComboboxItem key={item} value={item}>{item}</ComboboxItem>}
|
|
1592
|
+
* </ComboboxList>
|
|
1593
|
+
* <ComboboxEmpty>No results</ComboboxEmpty>
|
|
1594
|
+
* </ComboboxContent>
|
|
1595
|
+
* </Combobox>
|
|
1596
|
+
* ```
|
|
1597
|
+
*/
|
|
1067
1598
|
declare const Combobox: typeof Combobox$1.Root;
|
|
1599
|
+
/**
|
|
1600
|
+
* Displays the current selected value(s), wrapping Base UI's `Combobox.Value`. Renders no DOM
|
|
1601
|
+
* element of its own — its children (or render function) produce the output.
|
|
1602
|
+
*/
|
|
1068
1603
|
declare function ComboboxValue(componentProps: ComboboxValue.Props): React.JSX.Element;
|
|
1069
1604
|
declare namespace ComboboxValue {
|
|
1070
1605
|
type Props = Combobox$1.Value.Props;
|
|
1071
1606
|
}
|
|
1607
|
+
/**
|
|
1608
|
+
* Toggles the combobox popup, wrapping Base UI's `Combobox.Trigger`. Renders a `<button>` with a
|
|
1609
|
+
* trailing chevron icon.
|
|
1610
|
+
*/
|
|
1072
1611
|
declare const ComboboxTrigger: React.ForwardRefExoticComponent<Omit<_base_ui_react0.AutocompleteTriggerProps, "ref"> & React.RefAttributes<HTMLButtonElement>>;
|
|
1073
1612
|
declare namespace ComboboxTrigger {
|
|
1074
1613
|
type Props = Combobox$1.Trigger.Props;
|
|
@@ -1076,111 +1615,236 @@ declare namespace ComboboxTrigger {
|
|
|
1076
1615
|
declare namespace ComboboxClear {
|
|
1077
1616
|
type Props = Combobox$1.Clear.Props;
|
|
1078
1617
|
}
|
|
1618
|
+
/**
|
|
1619
|
+
* Text input for filtering combobox items, wrapping Base UI's `Combobox.Input`. Renders a
|
|
1620
|
+
* `<div>` `InputGroup` containing the input plus optional trigger and clear addon buttons.
|
|
1621
|
+
*/
|
|
1079
1622
|
declare const ComboboxInput: React.ForwardRefExoticComponent<ComboboxInputProps & React.RefAttributes<HTMLDivElement>>;
|
|
1080
1623
|
interface ComboboxInputProps extends Omit<Combobox$1.Input.Props, 'ref'> {
|
|
1624
|
+
/**
|
|
1625
|
+
* Whether to render the trailing trigger button that opens the popup.
|
|
1626
|
+
* @default true
|
|
1627
|
+
*/
|
|
1081
1628
|
showTrigger?: boolean;
|
|
1629
|
+
/**
|
|
1630
|
+
* Whether to render the trailing clear button that resets the value.
|
|
1631
|
+
* @default false
|
|
1632
|
+
*/
|
|
1082
1633
|
showClear?: boolean;
|
|
1083
1634
|
}
|
|
1084
1635
|
declare namespace ComboboxInput {
|
|
1085
1636
|
type Props = ComboboxInputProps;
|
|
1086
1637
|
}
|
|
1638
|
+
/**
|
|
1639
|
+
* Floating popup holding the combobox list, wrapping Base UI's `Combobox.Popup` inside a
|
|
1640
|
+
* `Portal` and `Positioner`. Renders a positioned `<div>`.
|
|
1641
|
+
*/
|
|
1087
1642
|
declare const ComboboxContent: React.ForwardRefExoticComponent<Omit<ComboboxContentProps, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
1088
1643
|
interface ComboboxContentProps extends Combobox$1.Popup.Props, Pick<Combobox$1.Positioner.Props, 'side' | 'align' | 'sideOffset' | 'alignOffset' | 'anchor'> {}
|
|
1089
1644
|
declare namespace ComboboxContent {
|
|
1090
1645
|
type Props = ComboboxContentProps;
|
|
1091
1646
|
}
|
|
1647
|
+
/**
|
|
1648
|
+
* Scrollable list wrapper for combobox items, wrapping Base UI's `Combobox.List`. Renders a
|
|
1649
|
+
* scrollable `<div>`.
|
|
1650
|
+
*/
|
|
1092
1651
|
declare const ComboboxList: React.ForwardRefExoticComponent<Omit<_base_ui_react0.AutocompleteListProps, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
1093
1652
|
declare namespace ComboboxList {
|
|
1094
1653
|
type Props = Combobox$1.List.Props;
|
|
1095
1654
|
}
|
|
1655
|
+
/**
|
|
1656
|
+
* Selectable option in the combobox list, wrapping Base UI's `Combobox.Item`. Renders a `<div>`
|
|
1657
|
+
* row with a trailing check indicator when selected.
|
|
1658
|
+
*/
|
|
1096
1659
|
declare const ComboboxItem: React.ForwardRefExoticComponent<Omit<_base_ui_react0.AutocompleteItemProps, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
1097
1660
|
declare namespace ComboboxItem {
|
|
1098
1661
|
type Props = Combobox$1.Item.Props;
|
|
1099
1662
|
}
|
|
1663
|
+
/**
|
|
1664
|
+
* Groups related combobox items under a shared label, wrapping Base UI's `Combobox.Group`.
|
|
1665
|
+
* Renders a `<div>`.
|
|
1666
|
+
*/
|
|
1100
1667
|
declare const ComboboxGroup: React.ForwardRefExoticComponent<Omit<_base_ui_react0.AutocompleteGroupProps, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
1101
1668
|
declare namespace ComboboxGroup {
|
|
1102
1669
|
type Props = Combobox$1.Group.Props;
|
|
1103
1670
|
}
|
|
1671
|
+
/**
|
|
1672
|
+
* Label for a `ComboboxGroup`, wrapping Base UI's `Combobox.GroupLabel`. Renders a muted `<div>`
|
|
1673
|
+
* heading.
|
|
1674
|
+
*/
|
|
1104
1675
|
declare const ComboboxLabel: React.ForwardRefExoticComponent<Omit<_base_ui_react0.AutocompleteGroupLabelProps, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
1105
1676
|
declare namespace ComboboxLabel {
|
|
1106
1677
|
type Props = Combobox$1.GroupLabel.Props;
|
|
1107
1678
|
}
|
|
1679
|
+
/**
|
|
1680
|
+
* Maps a set of items into combobox items, wrapping Base UI's `Combobox.Collection`. Renders no
|
|
1681
|
+
* DOM element of its own — it only iterates over the provided items.
|
|
1682
|
+
*/
|
|
1108
1683
|
declare function ComboboxCollection(componentProps: ComboboxCollection.Props): React.JSX.Element;
|
|
1109
1684
|
declare namespace ComboboxCollection {
|
|
1110
1685
|
type Props = Combobox$1.Collection.Props;
|
|
1111
1686
|
}
|
|
1687
|
+
/**
|
|
1688
|
+
* Message shown when no items match the current query, wrapping Base UI's `Combobox.Empty`.
|
|
1689
|
+
* Renders a `<div>` that is only visible when the list is empty.
|
|
1690
|
+
*/
|
|
1112
1691
|
declare const ComboboxEmpty: React.ForwardRefExoticComponent<Omit<_base_ui_react0.AutocompleteEmptyProps, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
1113
1692
|
declare namespace ComboboxEmpty {
|
|
1114
1693
|
type Props = Combobox$1.Empty.Props;
|
|
1115
1694
|
}
|
|
1695
|
+
/**
|
|
1696
|
+
* Visual divider between combobox items or groups, wrapping Base UI's `Combobox.Separator`.
|
|
1697
|
+
* Renders a thin `<div>` line.
|
|
1698
|
+
*/
|
|
1116
1699
|
declare const ComboboxSeparator: React.ForwardRefExoticComponent<Omit<_base_ui_react0.SeparatorProps, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
1117
1700
|
declare namespace ComboboxSeparator {
|
|
1118
1701
|
type Props = Combobox$1.Separator.Props;
|
|
1119
1702
|
}
|
|
1703
|
+
/**
|
|
1704
|
+
* Container for the selected chips in a multi-select combobox, wrapping Base UI's
|
|
1705
|
+
* `Combobox.Chips`. Renders a bordered, wrapping `<div>` that also holds the chip input.
|
|
1706
|
+
*/
|
|
1120
1707
|
declare const ComboboxChips: React.ForwardRefExoticComponent<Omit<ComboboxChips.Props, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
1121
1708
|
declare namespace ComboboxChips {
|
|
1122
1709
|
type Props = React.ComponentPropsWithoutRef<typeof Combobox$1.Chips> & Combobox$1.Chips.Props;
|
|
1123
1710
|
}
|
|
1711
|
+
/**
|
|
1712
|
+
* A single selected value rendered inside `ComboboxChips`, wrapping Base UI's `Combobox.Chip`.
|
|
1713
|
+
* Renders a `Chip` `<div>` with an optional remove button.
|
|
1714
|
+
*/
|
|
1124
1715
|
declare const ComboboxChip: React.ForwardRefExoticComponent<Omit<ComboboxChipProps, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
1125
1716
|
interface ComboboxChipProps extends Combobox$1.Chip.Props, Pick<Chip.Props, 'color' | 'tone' | 'legacyColor'> {
|
|
1717
|
+
/**
|
|
1718
|
+
* Whether to render the trailing remove button on the chip.
|
|
1719
|
+
* @default true
|
|
1720
|
+
*/
|
|
1126
1721
|
showRemove?: boolean;
|
|
1127
1722
|
}
|
|
1128
1723
|
declare namespace ComboboxChip {
|
|
1129
1724
|
type Props = ComboboxChipProps;
|
|
1130
1725
|
}
|
|
1726
|
+
/**
|
|
1727
|
+
* Text input placed inside `ComboboxChips` for filtering and adding chips, wrapping Base UI's
|
|
1728
|
+
* `Combobox.Input`. Renders an `<input>`.
|
|
1729
|
+
*/
|
|
1131
1730
|
declare const ComboboxChipsInput: React.ForwardRefExoticComponent<Omit<_base_ui_react0.AutocompleteInputProps, "ref"> & React.RefAttributes<HTMLInputElement>>;
|
|
1731
|
+
/**
|
|
1732
|
+
* Returns a stable ref to attach to `ComboboxChips` and pass as `ComboboxContent`'s `anchor`, so
|
|
1733
|
+
* the popup is positioned against the chips container rather than the input.
|
|
1734
|
+
*/
|
|
1132
1735
|
declare function useComboboxAnchor(): React.RefObject<HTMLDivElement | null>;
|
|
1133
1736
|
//#endregion
|
|
1134
1737
|
//#region src/components/dialog.d.ts
|
|
1738
|
+
/**
|
|
1739
|
+
* Root of the dialog, wrapping Base UI's `Dialog.Root`. Manages open/close state and renders no DOM
|
|
1740
|
+
* element — place `DialogTrigger` and `DialogContent` inside it.
|
|
1741
|
+
*
|
|
1742
|
+
* @example
|
|
1743
|
+
* ```tsx
|
|
1744
|
+
* <Dialog>
|
|
1745
|
+
* <DialogTrigger render={<Button />}>Open</DialogTrigger>
|
|
1746
|
+
* <DialogContent>
|
|
1747
|
+
* <DialogHeader>
|
|
1748
|
+
* <DialogTitle>Title</DialogTitle>
|
|
1749
|
+
* <DialogDescription>Description</DialogDescription>
|
|
1750
|
+
* </DialogHeader>
|
|
1751
|
+
* </DialogContent>
|
|
1752
|
+
* </Dialog>
|
|
1753
|
+
* ```
|
|
1754
|
+
*/
|
|
1135
1755
|
declare function Dialog(componentProps: Dialog.Props): React.JSX.Element;
|
|
1136
1756
|
interface DialogProps extends Dialog$1.Root.Props {}
|
|
1137
1757
|
declare namespace Dialog {
|
|
1138
1758
|
type Props = DialogProps;
|
|
1139
1759
|
}
|
|
1760
|
+
/**
|
|
1761
|
+
* Button that opens the dialog, wrapping Base UI's `Dialog.Trigger`. Renders a `<button>` by
|
|
1762
|
+
* default (override with `render`).
|
|
1763
|
+
*/
|
|
1140
1764
|
declare const DialogTrigger: React.ForwardRefExoticComponent<Omit<DialogTriggerProps, "ref"> & React.RefAttributes<HTMLButtonElement>>;
|
|
1141
1765
|
interface DialogTriggerProps extends Dialog$1.Trigger.Props {}
|
|
1142
1766
|
declare namespace DialogTrigger {
|
|
1143
1767
|
type Props = DialogTriggerProps;
|
|
1144
1768
|
}
|
|
1769
|
+
/**
|
|
1770
|
+
* Portals dialog content into the document body, wrapping Base UI's `Dialog.Portal`. Renders no DOM
|
|
1771
|
+
* element of its own.
|
|
1772
|
+
*/
|
|
1145
1773
|
declare function DialogPortal(componentProps: DialogPortal.Props): React.JSX.Element;
|
|
1146
1774
|
interface DialogPortalProps extends Dialog$1.Portal.Props {}
|
|
1147
1775
|
declare namespace DialogPortal {
|
|
1148
1776
|
type Props = DialogPortalProps;
|
|
1149
1777
|
}
|
|
1778
|
+
/**
|
|
1779
|
+
* Button that closes the dialog, wrapping Base UI's `Dialog.Close`. Renders a `<button>` by default
|
|
1780
|
+
* (override with `render`).
|
|
1781
|
+
*/
|
|
1150
1782
|
declare const DialogClose: React.ForwardRefExoticComponent<Omit<DialogCloseProps, "ref"> & React.RefAttributes<HTMLButtonElement>>;
|
|
1151
1783
|
interface DialogCloseProps extends Dialog$1.Close.Props {}
|
|
1152
1784
|
declare namespace DialogClose {
|
|
1153
1785
|
type Props = DialogCloseProps;
|
|
1154
1786
|
}
|
|
1787
|
+
/**
|
|
1788
|
+
* Dimming backdrop rendered behind the dialog, wrapping Base UI's `Dialog.Backdrop`. Renders a
|
|
1789
|
+
* fixed, full-viewport `<div>`. Included automatically by `DialogContent`.
|
|
1790
|
+
*/
|
|
1155
1791
|
declare const DialogOverlay: React.ForwardRefExoticComponent<Omit<DialogOverlayProps, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
1156
1792
|
interface DialogOverlayProps extends Dialog$1.Backdrop.Props {}
|
|
1157
1793
|
declare namespace DialogOverlay {
|
|
1158
1794
|
type Props = DialogOverlayProps;
|
|
1159
1795
|
}
|
|
1796
|
+
/**
|
|
1797
|
+
* Centered dialog panel, wrapping Base UI's `Dialog.Popup`. Renders a fixed `<div>` and
|
|
1798
|
+
* automatically includes its own `DialogPortal` and `DialogOverlay`.
|
|
1799
|
+
*/
|
|
1160
1800
|
declare const DialogContent: React.ForwardRefExoticComponent<Omit<DialogContentProps, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
1161
1801
|
interface DialogContentProps extends Dialog$1.Popup.Props {
|
|
1802
|
+
/**
|
|
1803
|
+
* Whether to render the built-in close (`X`) button in the top-right corner.
|
|
1804
|
+
* @default true
|
|
1805
|
+
*/
|
|
1162
1806
|
showCloseButton?: boolean;
|
|
1163
1807
|
}
|
|
1164
1808
|
declare namespace DialogContent {
|
|
1165
1809
|
type Props = DialogContentProps;
|
|
1166
1810
|
}
|
|
1811
|
+
/**
|
|
1812
|
+
* Header region of a dialog, grouping the title and description. Renders a
|
|
1813
|
+
* `<div data-slot="dialog-header">` stacking its children vertically.
|
|
1814
|
+
*/
|
|
1167
1815
|
declare const DialogHeader: React.ForwardRefExoticComponent<Omit<DialogHeaderProps, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
1168
1816
|
interface DialogHeaderProps extends React.ComponentProps<'div'> {}
|
|
1169
1817
|
declare namespace DialogHeader {
|
|
1170
1818
|
type Props = DialogHeaderProps;
|
|
1171
1819
|
}
|
|
1820
|
+
/**
|
|
1821
|
+
* Footer region of a dialog for action buttons. Renders a `<div data-slot="dialog-footer">` that
|
|
1822
|
+
* right-aligns its children on larger screens.
|
|
1823
|
+
*/
|
|
1172
1824
|
declare const DialogFooter: React.ForwardRefExoticComponent<Omit<DialogFooterProps, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
1173
1825
|
interface DialogFooterProps extends React.ComponentProps<'div'> {
|
|
1826
|
+
/**
|
|
1827
|
+
* Whether to append a built-in outline "Close" button after the footer's children.
|
|
1828
|
+
* @default false
|
|
1829
|
+
*/
|
|
1174
1830
|
showCloseButton?: boolean;
|
|
1175
1831
|
}
|
|
1176
1832
|
declare namespace DialogFooter {
|
|
1177
1833
|
type Props = DialogFooterProps;
|
|
1178
1834
|
}
|
|
1835
|
+
/**
|
|
1836
|
+
* Accessible title of the dialog, wrapping Base UI's `Dialog.Title`. Renders an `<h2>` and is
|
|
1837
|
+
* announced by screen readers as the dialog's label.
|
|
1838
|
+
*/
|
|
1179
1839
|
declare const DialogTitle: React.ForwardRefExoticComponent<Omit<DialogTitleProps, "ref"> & React.RefAttributes<HTMLHeadingElement>>;
|
|
1180
1840
|
interface DialogTitleProps extends Dialog$1.Title.Props {}
|
|
1181
1841
|
declare namespace DialogTitle {
|
|
1182
1842
|
type Props = DialogTitleProps;
|
|
1183
1843
|
}
|
|
1844
|
+
/**
|
|
1845
|
+
* Accessible supporting text for the dialog, wrapping Base UI's `Dialog.Description`. Renders a
|
|
1846
|
+
* `<p>` and is associated with the dialog for screen readers.
|
|
1847
|
+
*/
|
|
1184
1848
|
declare const DialogDescription: React.ForwardRefExoticComponent<Omit<DialogDescriptionProps, "ref"> & React.RefAttributes<HTMLParagraphElement>>;
|
|
1185
1849
|
interface DialogDescriptionProps extends Dialog$1.Description.Props {}
|
|
1186
1850
|
declare namespace DialogDescription {
|
|
@@ -1188,11 +1852,47 @@ declare namespace DialogDescription {
|
|
|
1188
1852
|
}
|
|
1189
1853
|
//#endregion
|
|
1190
1854
|
//#region src/components/command.d.ts
|
|
1855
|
+
/**
|
|
1856
|
+
* Root of a command menu (fast, filterable list of commands built on `cmdk`).
|
|
1857
|
+
* Renders a `<div>` container that holds the input, list, groups, and items.
|
|
1858
|
+
*
|
|
1859
|
+
* @example
|
|
1860
|
+
* ```tsx
|
|
1861
|
+
* <Command>
|
|
1862
|
+
* <CommandInput placeholder="Type a command..." />
|
|
1863
|
+
* <CommandList>
|
|
1864
|
+
* <CommandEmpty>No results found.</CommandEmpty>
|
|
1865
|
+
* <CommandGroup heading="Suggestions">
|
|
1866
|
+
* <CommandItem>Calendar</CommandItem>
|
|
1867
|
+
* </CommandGroup>
|
|
1868
|
+
* </CommandList>
|
|
1869
|
+
* </Command>
|
|
1870
|
+
* ```
|
|
1871
|
+
*/
|
|
1191
1872
|
declare const Command: React.ForwardRefExoticComponent<Omit<CommandProps, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
1192
1873
|
interface CommandProps extends React.ComponentProps<typeof Command$1> {}
|
|
1193
1874
|
declare namespace Command {
|
|
1194
1875
|
type Props = CommandProps;
|
|
1195
1876
|
}
|
|
1877
|
+
/**
|
|
1878
|
+
* A `Command` menu rendered inside a modal `Dialog` — the command-palette
|
|
1879
|
+
* pattern. Renders no DOM element of its own; the visually hidden title and
|
|
1880
|
+
* description keep it accessible.
|
|
1881
|
+
*
|
|
1882
|
+
* @prop title - Screen-reader-only dialog title. Default: `'Command Palette'`.
|
|
1883
|
+
* @prop description - Screen-reader-only dialog description.
|
|
1884
|
+
* Default: `'Search for a command to run...'`.
|
|
1885
|
+
*
|
|
1886
|
+
* @example
|
|
1887
|
+
* ```tsx
|
|
1888
|
+
* <CommandDialog open={open} onOpenChange={setOpen}>
|
|
1889
|
+
* <CommandInput placeholder="Type a command..." />
|
|
1890
|
+
* <CommandList>
|
|
1891
|
+
* <CommandItem>Profile</CommandItem>
|
|
1892
|
+
* </CommandList>
|
|
1893
|
+
* </CommandDialog>
|
|
1894
|
+
* ```
|
|
1895
|
+
*/
|
|
1196
1896
|
declare function CommandDialog(componentProps: CommandDialog.Props): React.JSX.Element;
|
|
1197
1897
|
interface CommandDialogProps extends React.ComponentProps<typeof Dialog> {
|
|
1198
1898
|
title?: string;
|
|
@@ -1201,36 +1901,64 @@ interface CommandDialogProps extends React.ComponentProps<typeof Dialog> {
|
|
|
1201
1901
|
declare namespace CommandDialog {
|
|
1202
1902
|
type Props = CommandDialogProps;
|
|
1203
1903
|
}
|
|
1904
|
+
/**
|
|
1905
|
+
* The search field that filters the command list as the user types. Renders an
|
|
1906
|
+
* `<input>` inside a `<div>` wrapper with a leading search icon.
|
|
1907
|
+
*/
|
|
1204
1908
|
declare const CommandInput: React.ForwardRefExoticComponent<Omit<CommandInputProps, "ref"> & React.RefAttributes<HTMLInputElement>>;
|
|
1205
1909
|
interface CommandInputProps extends React.ComponentProps<typeof Command$1.Input> {}
|
|
1206
1910
|
declare namespace CommandInput {
|
|
1207
1911
|
type Props = CommandInputProps;
|
|
1208
1912
|
}
|
|
1913
|
+
/**
|
|
1914
|
+
* Scrollable container holding the command groups, items, and empty state.
|
|
1915
|
+
* Renders a `<div>` that scrolls vertically when content overflows.
|
|
1916
|
+
*/
|
|
1209
1917
|
declare const CommandList: React.ForwardRefExoticComponent<Omit<CommandListProps, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
1210
1918
|
interface CommandListProps extends React.ComponentProps<typeof Command$1.List> {}
|
|
1211
1919
|
declare namespace CommandList {
|
|
1212
1920
|
type Props = CommandListProps;
|
|
1213
1921
|
}
|
|
1922
|
+
/**
|
|
1923
|
+
* Message shown when the current search matches no items. Renders a centered
|
|
1924
|
+
* `<div>` that is only visible when the list is empty.
|
|
1925
|
+
*/
|
|
1214
1926
|
declare const CommandEmpty: React.ForwardRefExoticComponent<Omit<CommandEmptyProps, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
1215
1927
|
interface CommandEmptyProps extends React.ComponentProps<typeof Command$1.Empty> {}
|
|
1216
1928
|
declare namespace CommandEmpty {
|
|
1217
1929
|
type Props = CommandEmptyProps;
|
|
1218
1930
|
}
|
|
1931
|
+
/**
|
|
1932
|
+
* Groups related command items under an optional `heading`. Renders a `<div>`
|
|
1933
|
+
* that hides itself when none of its items match the search.
|
|
1934
|
+
*/
|
|
1219
1935
|
declare const CommandGroup: React.ForwardRefExoticComponent<Omit<CommandGroupProps, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
1220
1936
|
interface CommandGroupProps extends React.ComponentProps<typeof Command$1.Group> {}
|
|
1221
1937
|
declare namespace CommandGroup {
|
|
1222
1938
|
type Props = CommandGroupProps;
|
|
1223
1939
|
}
|
|
1940
|
+
/**
|
|
1941
|
+
* A thin horizontal divider between command groups or items. Renders a `<div>`
|
|
1942
|
+
* one pixel tall.
|
|
1943
|
+
*/
|
|
1224
1944
|
declare const CommandSeparator: React.ForwardRefExoticComponent<Omit<CommandSeparatorProps, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
1225
1945
|
interface CommandSeparatorProps extends React.ComponentProps<typeof Command$1.Separator> {}
|
|
1226
1946
|
declare namespace CommandSeparator {
|
|
1227
1947
|
type Props = CommandSeparatorProps;
|
|
1228
1948
|
}
|
|
1949
|
+
/**
|
|
1950
|
+
* A single selectable command in the list. Renders a `<div>` that highlights on
|
|
1951
|
+
* hover/keyboard selection and can be disabled.
|
|
1952
|
+
*/
|
|
1229
1953
|
declare const CommandItem: React.ForwardRefExoticComponent<Omit<CommandItemProps, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
1230
1954
|
interface CommandItemProps extends React.ComponentProps<typeof Command$1.Item> {}
|
|
1231
1955
|
declare namespace CommandItem {
|
|
1232
1956
|
type Props = CommandItemProps;
|
|
1233
1957
|
}
|
|
1958
|
+
/**
|
|
1959
|
+
* Right-aligned hint displaying an item's keyboard shortcut. Renders a `<span>`
|
|
1960
|
+
* with muted, spaced-out text.
|
|
1961
|
+
*/
|
|
1234
1962
|
declare const CommandShortcut: React.ForwardRefExoticComponent<Omit<CommandShortcutProps, "ref"> & React.RefAttributes<HTMLSpanElement>>;
|
|
1235
1963
|
interface CommandShortcutProps extends React.ComponentProps<'span'> {}
|
|
1236
1964
|
declare namespace CommandShortcut {
|
|
@@ -1239,6 +1967,18 @@ declare namespace CommandShortcut {
|
|
|
1239
1967
|
//#endregion
|
|
1240
1968
|
//#region src/components/country-flag.d.ts
|
|
1241
1969
|
type FlagSize = 'sm' | 'md' | 'lg' | 'xl';
|
|
1970
|
+
/**
|
|
1971
|
+
* Renders the flag icon for a given country as an inline `<svg>`.
|
|
1972
|
+
* Falls back to the US flag when the ISO code has no matching flag.
|
|
1973
|
+
*
|
|
1974
|
+
* @prop countryIsoCode - ISO country code selecting the flag to render.
|
|
1975
|
+
* @prop size - Flag dimensions: `sm` (12px) | `md` (16px) | `lg` (20px) | `xl` (24px). Default: `'xl'`.
|
|
1976
|
+
*
|
|
1977
|
+
* @example
|
|
1978
|
+
* ```tsx
|
|
1979
|
+
* <CountryFlag countryIsoCode="FR" size="md" />
|
|
1980
|
+
* ```
|
|
1981
|
+
*/
|
|
1242
1982
|
declare const CountryFlag: React.ForwardRefExoticComponent<CountryFlagProps & React.RefAttributes<SVGSVGElement>>;
|
|
1243
1983
|
interface CountryFlagProps {
|
|
1244
1984
|
countryIsoCode: CountryCode;
|
|
@@ -1371,6 +2111,23 @@ interface DataComboboxProps<T> {
|
|
|
1371
2111
|
contentClassName?: string;
|
|
1372
2112
|
'aria-label'?: string;
|
|
1373
2113
|
}
|
|
2114
|
+
/**
|
|
2115
|
+
* Searchable dropdown built on the DS Combobox primitives, driven by an `items`
|
|
2116
|
+
* array plus `getItemValue`/`getItemLabel`. Renders an inline input (single) or
|
|
2117
|
+
* a removable-chips field (multiple) — or a custom `trigger` — anchoring a popup
|
|
2118
|
+
* list, with opt-in server-side search, grouping, infinite scroll, and
|
|
2119
|
+
* loading/empty states.
|
|
2120
|
+
*
|
|
2121
|
+
* @example
|
|
2122
|
+
* ```tsx
|
|
2123
|
+
* <DataCombobox
|
|
2124
|
+
* items={users}
|
|
2125
|
+
* getItemValue={user => user.id}
|
|
2126
|
+
* getItemLabel={user => user.name}
|
|
2127
|
+
* onSelectionChange={setSelectedKeys}
|
|
2128
|
+
* />
|
|
2129
|
+
* ```
|
|
2130
|
+
*/
|
|
1374
2131
|
declare function DataCombobox<T>(componentProps: DataCombobox.Props<T>): React.JSX.Element;
|
|
1375
2132
|
declare namespace DataCombobox {
|
|
1376
2133
|
type Props<T> = DataComboboxProps<T>;
|
|
@@ -1483,6 +2240,13 @@ interface DataTableProps<TData> {
|
|
|
1483
2240
|
* Requires `fillHeight={true}` — the container must scroll internally so the
|
|
1484
2241
|
* virtualizer can track scroll position. Without it, `scrollTop` stays 0 and
|
|
1485
2242
|
* virtualization has no effect.
|
|
2243
|
+
*
|
|
2244
|
+
* Implies `fixedLayout` (`table-layout: fixed`): the virtualizer needs stable
|
|
2245
|
+
* column widths, so every column takes its `size` instead of sizing to
|
|
2246
|
+
* content. Columns with no `size` fall back to TanStack's 150px default — so
|
|
2247
|
+
* a content-sized table (e.g. a narrow icon column) will visibly snap to
|
|
2248
|
+
* 150px when you enable this. Set an explicit `size` on each column def to
|
|
2249
|
+
* preserve the intended widths.
|
|
1486
2250
|
*/
|
|
1487
2251
|
virtualizeRows?: boolean;
|
|
1488
2252
|
/**
|
|
@@ -1499,6 +2263,21 @@ interface DataTableProps<TData> {
|
|
|
1499
2263
|
fixedLayout?: boolean;
|
|
1500
2264
|
className?: string;
|
|
1501
2265
|
}
|
|
2266
|
+
/**
|
|
2267
|
+
* Data grid built on TanStack Table. Renders a `<div>` wrapper around a DS
|
|
2268
|
+
* `<Table>` (`<table>`), driven by `columns` + `data`, with opt-in sorting,
|
|
2269
|
+
* row selection, column resizing, virtualization, infinite scroll, a floating
|
|
2270
|
+
* action bar, and loading/empty states.
|
|
2271
|
+
*
|
|
2272
|
+
* @example
|
|
2273
|
+
* ```tsx
|
|
2274
|
+
* <DataTable
|
|
2275
|
+
* columns={columns}
|
|
2276
|
+
* data={rows}
|
|
2277
|
+
* getRowId={row => row.id}
|
|
2278
|
+
* />
|
|
2279
|
+
* ```
|
|
2280
|
+
*/
|
|
1502
2281
|
declare function DataTable<TData>(componentProps: DataTable.Props<TData>): React.JSX.Element;
|
|
1503
2282
|
declare namespace DataTable {
|
|
1504
2283
|
type Props<TData> = DataTableProps<TData>;
|
|
@@ -1552,157 +2331,361 @@ interface DataTreeProps<T> {
|
|
|
1552
2331
|
declare namespace DataTree {
|
|
1553
2332
|
type Props<T> = DataTreeProps<T>;
|
|
1554
2333
|
}
|
|
2334
|
+
/**
|
|
2335
|
+
* Data-driven tree. Builds and owns the `useTree` state from nested `items` and
|
|
2336
|
+
* renders a `Tree` of `TreeItem`/`TreeItemLabel` rows (with optional icons and
|
|
2337
|
+
* selection checkboxes) — the batteries-included alternative to composing `Tree`
|
|
2338
|
+
* by hand.
|
|
2339
|
+
*
|
|
2340
|
+
* @example
|
|
2341
|
+
* ```tsx
|
|
2342
|
+
* <DataTree
|
|
2343
|
+
* items={data}
|
|
2344
|
+
* getKey={node => node.id}
|
|
2345
|
+
* getLabel={node => node.name}
|
|
2346
|
+
* getChildren={node => node.children}
|
|
2347
|
+
* selectionMode="multiple"
|
|
2348
|
+
* />
|
|
2349
|
+
* ```
|
|
2350
|
+
*/
|
|
1555
2351
|
declare function DataTree<T>(componentProps: DataTree.Props<T>): React.JSX.Element;
|
|
1556
2352
|
//#endregion
|
|
1557
2353
|
//#region src/components/drawer.d.ts
|
|
1558
2354
|
type DrawerPosition = 'right' | 'left' | 'top' | 'bottom';
|
|
2355
|
+
/**
|
|
2356
|
+
* Re-export of Coss UI's `Drawer.createHandle`. Creates an imperative handle
|
|
2357
|
+
* that can be passed to `Drawer`'s `handle` prop to open/close it programmatically.
|
|
2358
|
+
*/
|
|
1559
2359
|
declare const DrawerCreateHandle: typeof DrawerPrimitive.createHandle;
|
|
2360
|
+
/**
|
|
2361
|
+
* Root container for a swipeable drawer (Coss UI's `Drawer.Root`), also
|
|
2362
|
+
* providing drawer `position` via context to its parts. Renders no DOM element
|
|
2363
|
+
* — place `DrawerTrigger` and `DrawerPopup` inside it.
|
|
2364
|
+
*
|
|
2365
|
+
* @example
|
|
2366
|
+
* ```tsx
|
|
2367
|
+
* <Drawer position="right">
|
|
2368
|
+
* <DrawerTrigger render={<Button />}>Open</DrawerTrigger>
|
|
2369
|
+
* <DrawerPopup showCloseButton>
|
|
2370
|
+
* <DrawerHeader>
|
|
2371
|
+
* <DrawerTitle>Title</DrawerTitle>
|
|
2372
|
+
* </DrawerHeader>
|
|
2373
|
+
* <DrawerPanel>Body content</DrawerPanel>
|
|
2374
|
+
* </DrawerPopup>
|
|
2375
|
+
* </Drawer>
|
|
2376
|
+
* ```
|
|
2377
|
+
*/
|
|
1560
2378
|
declare function Drawer({
|
|
1561
2379
|
swipeDirection,
|
|
1562
2380
|
position,
|
|
1563
2381
|
...props
|
|
1564
2382
|
}: Drawer.Props): React.ReactElement;
|
|
1565
2383
|
interface DrawerProps extends DrawerPrimitive.Root.Props {
|
|
2384
|
+
/**
|
|
2385
|
+
* Edge the drawer is anchored to; also sets the default `swipeDirection`.
|
|
2386
|
+
* @default 'bottom'
|
|
2387
|
+
*/
|
|
1566
2388
|
position?: DrawerPosition;
|
|
1567
2389
|
}
|
|
1568
2390
|
declare namespace Drawer {
|
|
1569
2391
|
type Props = DrawerProps;
|
|
1570
2392
|
}
|
|
2393
|
+
/**
|
|
2394
|
+
* Re-export of Coss UI's `Drawer.Portal`. Renders the drawer into a different
|
|
2395
|
+
* part of the DOM (or a `container`); renders no DOM element of its own.
|
|
2396
|
+
*/
|
|
1571
2397
|
declare const DrawerPortal: typeof DrawerPrimitive.Portal;
|
|
2398
|
+
/**
|
|
2399
|
+
* The element that opens the drawer, wrapping `Drawer.Trigger`.
|
|
2400
|
+
* Renders a `<button>` by default; use `render` to swap the element.
|
|
2401
|
+
*/
|
|
1572
2402
|
declare const DrawerTrigger: React.ForwardRefExoticComponent<Omit<DrawerTriggerProps, "ref"> & React.RefAttributes<HTMLButtonElement>>;
|
|
1573
2403
|
interface DrawerTriggerProps extends DrawerPrimitive.Trigger.Props {}
|
|
1574
2404
|
declare namespace DrawerTrigger {
|
|
1575
2405
|
type Props = DrawerTriggerProps;
|
|
1576
2406
|
}
|
|
2407
|
+
/**
|
|
2408
|
+
* An element that closes the drawer when activated, wrapping `Drawer.Close`.
|
|
2409
|
+
* Renders a `<button>` by default; use `render` to swap the element.
|
|
2410
|
+
*/
|
|
1577
2411
|
declare const DrawerClose: React.ForwardRefExoticComponent<Omit<DrawerCloseProps, "ref"> & React.RefAttributes<HTMLButtonElement>>;
|
|
1578
2412
|
interface DrawerCloseProps extends DrawerPrimitive.Close.Props {}
|
|
1579
2413
|
declare namespace DrawerClose {
|
|
1580
2414
|
type Props = DrawerCloseProps;
|
|
1581
2415
|
}
|
|
2416
|
+
/**
|
|
2417
|
+
* Edge-anchored gesture zone that opens the drawer on swipe, wrapping
|
|
2418
|
+
* `Drawer.SwipeArea`. Renders a fixed, touch-only `<div>` pinned to the side
|
|
2419
|
+
* matching `position`.
|
|
2420
|
+
*/
|
|
1582
2421
|
declare const DrawerSwipeArea: React.ForwardRefExoticComponent<Omit<DrawerSwipeAreaProps, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
1583
2422
|
interface DrawerSwipeAreaProps extends DrawerPrimitive.SwipeArea.Props {
|
|
2423
|
+
/**
|
|
2424
|
+
* Edge the swipe area is pinned to; falls back to the `Drawer` context value.
|
|
2425
|
+
* @default 'bottom'
|
|
2426
|
+
*/
|
|
1584
2427
|
position?: DrawerPosition;
|
|
1585
2428
|
}
|
|
1586
2429
|
declare namespace DrawerSwipeArea {
|
|
1587
2430
|
type Props = DrawerSwipeAreaProps;
|
|
1588
2431
|
}
|
|
2432
|
+
/**
|
|
2433
|
+
* Dimmed, blurred overlay rendered behind the drawer, wrapping
|
|
2434
|
+
* `Drawer.Backdrop`. Renders a `<div>` whose opacity tracks the swipe progress.
|
|
2435
|
+
*/
|
|
1589
2436
|
declare const DrawerBackdrop: React.ForwardRefExoticComponent<Omit<DrawerBackdropProps, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
1590
2437
|
interface DrawerBackdropProps extends DrawerPrimitive.Backdrop.Props {
|
|
2438
|
+
/**
|
|
2439
|
+
* Position `absolute` (within a portal `container`) instead of `fixed`.
|
|
2440
|
+
* @default false
|
|
2441
|
+
*/
|
|
1591
2442
|
inContainer?: boolean;
|
|
1592
2443
|
}
|
|
1593
2444
|
declare namespace DrawerBackdrop {
|
|
1594
2445
|
type Props = DrawerBackdropProps;
|
|
1595
2446
|
}
|
|
2447
|
+
/**
|
|
2448
|
+
* Full-screen layout container that positions the drawer popup along the chosen
|
|
2449
|
+
* edge, wrapping `Drawer.Viewport`. Renders a `<div>` (fixed, or `absolute` when
|
|
2450
|
+
* portalled into a `container`).
|
|
2451
|
+
*/
|
|
1596
2452
|
declare const DrawerViewport: React.ForwardRefExoticComponent<Omit<DrawerViewportProps, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
1597
2453
|
interface DrawerViewportProps extends DrawerPrimitive.Viewport.Props {
|
|
2454
|
+
/** Edge the drawer is anchored to; drives the layout direction. */
|
|
1598
2455
|
position?: DrawerPosition;
|
|
2456
|
+
/**
|
|
2457
|
+
* Layout style: `inset` adds outer padding so the drawer floats inside the viewport.
|
|
2458
|
+
* @default 'default'
|
|
2459
|
+
*/
|
|
1599
2460
|
variant?: 'default' | 'straight' | 'inset';
|
|
2461
|
+
/** Position `absolute` (within a portal `container`) instead of `fixed`. */
|
|
1600
2462
|
inContainer?: boolean;
|
|
1601
2463
|
}
|
|
1602
2464
|
declare namespace DrawerViewport {
|
|
1603
2465
|
type Props = DrawerViewportProps;
|
|
1604
2466
|
}
|
|
2467
|
+
/**
|
|
2468
|
+
* Body wrapper of the drawer: composes `DrawerPortal → DrawerBackdrop →
|
|
2469
|
+
* DrawerViewport` around `Drawer.Popup` and renders the sliding `<div>` panel
|
|
2470
|
+
* that holds the drawer content. This is the primary content container placed
|
|
2471
|
+
* inside `Drawer`.
|
|
2472
|
+
*/
|
|
1605
2473
|
declare const DrawerPopup: React.ForwardRefExoticComponent<Omit<DrawerPopupProps, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
1606
2474
|
interface DrawerPopupProps extends DrawerPrimitive.Popup.Props {
|
|
2475
|
+
/**
|
|
2476
|
+
* Render a built-in close button in the top corner.
|
|
2477
|
+
* @default false
|
|
2478
|
+
*/
|
|
1607
2479
|
showCloseButton?: boolean;
|
|
2480
|
+
/** Edge the drawer is anchored to; falls back to the `Drawer` context value. */
|
|
1608
2481
|
position?: DrawerPosition;
|
|
2482
|
+
/**
|
|
2483
|
+
* Visual style of the popup (corner rounding, borders, stacking behaviour).
|
|
2484
|
+
* @default 'default'
|
|
2485
|
+
*/
|
|
1609
2486
|
variant?: 'default' | 'straight' | 'inset';
|
|
2487
|
+
/**
|
|
2488
|
+
* Render the decorative drag-handle `DrawerBar` on the swipe edge.
|
|
2489
|
+
* @default false
|
|
2490
|
+
*/
|
|
1610
2491
|
showBar?: boolean;
|
|
2492
|
+
/** Portal container to render the drawer into instead of the document body. */
|
|
1611
2493
|
container?: DrawerPrimitive.Portal.Props['container'];
|
|
1612
2494
|
}
|
|
1613
2495
|
declare namespace DrawerPopup {
|
|
1614
2496
|
type Props = DrawerPopupProps;
|
|
1615
2497
|
}
|
|
2498
|
+
/**
|
|
2499
|
+
* Header region of the drawer, typically holding the title and description.
|
|
2500
|
+
* Renders a `<div>` (or the `render` element).
|
|
2501
|
+
*/
|
|
1616
2502
|
declare const DrawerHeader: React.ForwardRefExoticComponent<Omit<DrawerHeaderProps, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
1617
2503
|
interface DrawerHeaderProps extends useRender.ComponentProps<'div'> {
|
|
2504
|
+
/**
|
|
2505
|
+
* Allow text selection inside the header (otherwise `cursor-default` is applied).
|
|
2506
|
+
* @default false
|
|
2507
|
+
*/
|
|
1618
2508
|
allowSelection?: boolean;
|
|
1619
2509
|
}
|
|
1620
2510
|
declare namespace DrawerHeader {
|
|
1621
2511
|
type Props = DrawerHeaderProps;
|
|
1622
2512
|
}
|
|
2513
|
+
/**
|
|
2514
|
+
* Footer region of the drawer, typically holding actions.
|
|
2515
|
+
* Renders a `<div>` (or the `render` element).
|
|
2516
|
+
*/
|
|
1623
2517
|
declare const DrawerFooter: React.ForwardRefExoticComponent<Omit<DrawerFooterProps, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
1624
2518
|
interface DrawerFooterProps extends useRender.ComponentProps<'div'> {
|
|
2519
|
+
/**
|
|
2520
|
+
* `default` adds a top border and muted background; `bare` drops both.
|
|
2521
|
+
* @default 'default'
|
|
2522
|
+
*/
|
|
1625
2523
|
variant?: 'default' | 'bare';
|
|
2524
|
+
/**
|
|
2525
|
+
* Allow text selection inside the footer (otherwise `cursor-default` is applied).
|
|
2526
|
+
* @default true
|
|
2527
|
+
*/
|
|
1626
2528
|
allowSelection?: boolean;
|
|
1627
2529
|
}
|
|
1628
2530
|
declare namespace DrawerFooter {
|
|
1629
2531
|
type Props = DrawerFooterProps;
|
|
1630
2532
|
}
|
|
2533
|
+
/**
|
|
2534
|
+
* Accessible title for the drawer, wrapping `Drawer.Title`.
|
|
2535
|
+
* Renders an `<h2>` and labels the drawer for assistive technology.
|
|
2536
|
+
*/
|
|
1631
2537
|
declare const DrawerTitle: React.ForwardRefExoticComponent<Omit<DrawerTitleProps, "ref"> & React.RefAttributes<HTMLHeadingElement>>;
|
|
1632
2538
|
interface DrawerTitleProps extends DrawerPrimitive.Title.Props {}
|
|
1633
2539
|
declare namespace DrawerTitle {
|
|
1634
2540
|
type Props = DrawerTitleProps;
|
|
1635
2541
|
}
|
|
2542
|
+
/**
|
|
2543
|
+
* Accessible supporting text for the drawer, wrapping `Drawer.Description`.
|
|
2544
|
+
* Renders a `<p>` and describes the drawer for assistive technology.
|
|
2545
|
+
*/
|
|
1636
2546
|
declare const DrawerDescription: React.ForwardRefExoticComponent<Omit<DrawerDescriptionProps, "ref"> & React.RefAttributes<HTMLParagraphElement>>;
|
|
1637
2547
|
interface DrawerDescriptionProps extends DrawerPrimitive.Description.Props {}
|
|
1638
2548
|
declare namespace DrawerDescription {
|
|
1639
2549
|
type Props = DrawerDescriptionProps;
|
|
1640
2550
|
}
|
|
2551
|
+
/**
|
|
2552
|
+
* Scrollable body region of the drawer holding its main content. Renders a
|
|
2553
|
+
* `<div>` (or the `render` element), by default wrapped in a `ScrollArea`.
|
|
2554
|
+
*/
|
|
1641
2555
|
declare const DrawerPanel: React.ForwardRefExoticComponent<Omit<DrawerPanelProps, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
1642
2556
|
interface DrawerPanelProps extends useRender.ComponentProps<'div'> {
|
|
2557
|
+
/**
|
|
2558
|
+
* Fade the content at the scroll edges (forwarded to `ScrollArea`).
|
|
2559
|
+
* @default true
|
|
2560
|
+
*/
|
|
1643
2561
|
scrollFade?: boolean;
|
|
2562
|
+
/**
|
|
2563
|
+
* Wrap the content in a `ScrollArea`; when `false`, render the bare panel.
|
|
2564
|
+
* @default true
|
|
2565
|
+
*/
|
|
1644
2566
|
scrollable?: boolean;
|
|
2567
|
+
/**
|
|
2568
|
+
* Allow text selection inside the panel (otherwise `cursor-default` is applied).
|
|
2569
|
+
* @default true
|
|
2570
|
+
*/
|
|
1645
2571
|
allowSelection?: boolean;
|
|
1646
2572
|
}
|
|
1647
2573
|
declare namespace DrawerPanel {
|
|
1648
2574
|
type Props = DrawerPanelProps;
|
|
1649
2575
|
}
|
|
2576
|
+
/**
|
|
2577
|
+
* Decorative drag-handle bar shown on the drawer's swipe edge.
|
|
2578
|
+
* Renders an `aria-hidden` `<div>` (or the `render` element).
|
|
2579
|
+
*/
|
|
1650
2580
|
declare const DrawerBar: React.ForwardRefExoticComponent<Omit<DrawerBarProps, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
1651
2581
|
interface DrawerBarProps extends useRender.ComponentProps<'div'> {
|
|
2582
|
+
/** Edge the bar is pinned to; falls back to the `Drawer` context value. */
|
|
1652
2583
|
position?: DrawerPosition;
|
|
1653
2584
|
}
|
|
1654
2585
|
declare namespace DrawerBar {
|
|
1655
2586
|
type Props = DrawerBarProps;
|
|
1656
2587
|
}
|
|
2588
|
+
/**
|
|
2589
|
+
* Re-export of Coss UI's `Drawer.Content` — wraps a subtree so its text stays
|
|
2590
|
+
* selectable inside an otherwise non-selectable drawer part. Renders no DOM
|
|
2591
|
+
* element of its own.
|
|
2592
|
+
*/
|
|
1657
2593
|
declare const DrawerContent: typeof DrawerPrimitive.Content;
|
|
2594
|
+
/**
|
|
2595
|
+
* Vertical menu container for drawer navigation items.
|
|
2596
|
+
* Renders a `<nav>` (or the `render` element).
|
|
2597
|
+
*/
|
|
1658
2598
|
declare const DrawerMenu: React.ForwardRefExoticComponent<Omit<DrawerMenuProps, "ref"> & React.RefAttributes<HTMLElement>>;
|
|
1659
2599
|
interface DrawerMenuProps extends useRender.ComponentProps<'nav'> {}
|
|
1660
2600
|
declare namespace DrawerMenu {
|
|
1661
2601
|
type Props = DrawerMenuProps;
|
|
1662
2602
|
}
|
|
2603
|
+
/**
|
|
2604
|
+
* Interactive row within a `DrawerMenu`.
|
|
2605
|
+
* Renders a `<button>` (or the `render` element).
|
|
2606
|
+
*/
|
|
1663
2607
|
declare const DrawerMenuItem: React.ForwardRefExoticComponent<Omit<DrawerMenuItemProps, "ref"> & React.RefAttributes<HTMLButtonElement>>;
|
|
1664
2608
|
interface DrawerMenuItemProps extends useRender.ComponentProps<'button'> {
|
|
2609
|
+
/**
|
|
2610
|
+
* `destructive` renders the item in the destructive foreground color.
|
|
2611
|
+
* @default 'default'
|
|
2612
|
+
*/
|
|
1665
2613
|
variant?: 'default' | 'destructive';
|
|
1666
2614
|
}
|
|
1667
2615
|
declare namespace DrawerMenuItem {
|
|
1668
2616
|
type Props = DrawerMenuItemProps;
|
|
1669
2617
|
}
|
|
2618
|
+
/**
|
|
2619
|
+
* Thin horizontal divider between drawer menu items.
|
|
2620
|
+
* Renders a `<div>` (or the `render` element).
|
|
2621
|
+
*/
|
|
1670
2622
|
declare const DrawerMenuSeparator: React.ForwardRefExoticComponent<Omit<DrawerMenuSeparatorProps, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
1671
2623
|
interface DrawerMenuSeparatorProps extends useRender.ComponentProps<'div'> {}
|
|
1672
2624
|
declare namespace DrawerMenuSeparator {
|
|
1673
2625
|
type Props = DrawerMenuSeparatorProps;
|
|
1674
2626
|
}
|
|
2627
|
+
/**
|
|
2628
|
+
* Groups related drawer menu items together.
|
|
2629
|
+
* Renders a `<div>` (or the `render` element).
|
|
2630
|
+
*/
|
|
1675
2631
|
declare const DrawerMenuGroup: React.ForwardRefExoticComponent<Omit<DrawerMenuGroupProps, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
1676
2632
|
interface DrawerMenuGroupProps extends useRender.ComponentProps<'div'> {}
|
|
1677
2633
|
declare namespace DrawerMenuGroup {
|
|
1678
2634
|
type Props = DrawerMenuGroupProps;
|
|
1679
2635
|
}
|
|
2636
|
+
/**
|
|
2637
|
+
* Label heading for a `DrawerMenuGroup`.
|
|
2638
|
+
* Renders a `<div>` (or the `render` element).
|
|
2639
|
+
*/
|
|
1680
2640
|
declare const DrawerMenuGroupLabel: React.ForwardRefExoticComponent<Omit<DrawerMenuGroupLabelProps, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
1681
2641
|
interface DrawerMenuGroupLabelProps extends useRender.ComponentProps<'div'> {}
|
|
1682
2642
|
declare namespace DrawerMenuGroupLabel {
|
|
1683
2643
|
type Props = DrawerMenuGroupLabelProps;
|
|
1684
2644
|
}
|
|
2645
|
+
/**
|
|
2646
|
+
* Menu item that opens a (nested) drawer, wrapping `DrawerTrigger` and appending
|
|
2647
|
+
* a trailing chevron. Renders a `<button>`.
|
|
2648
|
+
*/
|
|
1685
2649
|
declare const DrawerMenuTrigger: React.ForwardRefExoticComponent<Omit<DrawerMenuTriggerProps, "ref"> & React.RefAttributes<HTMLButtonElement>>;
|
|
1686
2650
|
interface DrawerMenuTriggerProps extends DrawerPrimitive.Trigger.Props {}
|
|
1687
2651
|
declare namespace DrawerMenuTrigger {
|
|
1688
2652
|
type Props = DrawerMenuTriggerProps;
|
|
1689
2653
|
}
|
|
2654
|
+
/**
|
|
2655
|
+
* Drawer menu item bound to a boolean state, wrapping `Checkbox.Root`.
|
|
2656
|
+
* Renders a `<button>` with either a checkmark or a switch indicator.
|
|
2657
|
+
*/
|
|
1690
2658
|
declare const DrawerMenuCheckboxItem: React.ForwardRefExoticComponent<Omit<DrawerMenuCheckboxItemProps, "ref"> & React.RefAttributes<HTMLElement>>;
|
|
1691
2659
|
interface DrawerMenuCheckboxItemProps extends Checkbox$1.Root.Props {
|
|
2660
|
+
/**
|
|
2661
|
+
* `switch` renders a toggle indicator; `default` renders a checkmark.
|
|
2662
|
+
* @default 'default'
|
|
2663
|
+
*/
|
|
1692
2664
|
variant?: 'default' | 'switch';
|
|
2665
|
+
/** Element to render the item as instead of the default `<button>`. */
|
|
1693
2666
|
render?: React.ReactElement;
|
|
1694
2667
|
}
|
|
1695
2668
|
declare namespace DrawerMenuCheckboxItem {
|
|
1696
2669
|
type Props = DrawerMenuCheckboxItemProps;
|
|
1697
2670
|
}
|
|
2671
|
+
/**
|
|
2672
|
+
* Radio group container for exclusive selection among drawer menu items,
|
|
2673
|
+
* wrapping `RadioGroup`. Renders a `<div>`.
|
|
2674
|
+
*/
|
|
1698
2675
|
declare const DrawerMenuRadioGroup: React.ForwardRefExoticComponent<Omit<DrawerMenuRadioGroupProps, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
1699
2676
|
interface DrawerMenuRadioGroupProps extends RadioGroup$1.Props {}
|
|
1700
2677
|
declare namespace DrawerMenuRadioGroup {
|
|
1701
2678
|
type Props = DrawerMenuRadioGroupProps;
|
|
1702
2679
|
}
|
|
2680
|
+
/**
|
|
2681
|
+
* Selectable radio item within a `DrawerMenuRadioGroup`, wrapping `Radio.Root`.
|
|
2682
|
+
* Renders a `<button>` with a checkmark indicator when selected.
|
|
2683
|
+
*/
|
|
1703
2684
|
declare const DrawerMenuRadioItem: React.ForwardRefExoticComponent<Omit<DrawerMenuRadioItemProps, "ref"> & React.RefAttributes<HTMLSpanElement>>;
|
|
1704
2685
|
interface DrawerMenuRadioItemProps extends Radio.Root.Props {
|
|
2686
|
+
/** Value submitted by the enclosing radio group when this item is selected. */
|
|
1705
2687
|
value: string;
|
|
2688
|
+
/** Element to render the item as instead of the default `<button>`. */
|
|
1706
2689
|
render?: React.ReactElement;
|
|
1707
2690
|
}
|
|
1708
2691
|
declare namespace DrawerMenuRadioItem {
|
|
@@ -1710,106 +2693,259 @@ declare namespace DrawerMenuRadioItem {
|
|
|
1710
2693
|
}
|
|
1711
2694
|
//#endregion
|
|
1712
2695
|
//#region src/components/dropdown-menu.d.ts
|
|
2696
|
+
/**
|
|
2697
|
+
* Root container for a dropdown menu, wrapping Base UI's `Menu.Root`. Manages
|
|
2698
|
+
* open/close state and renders no DOM element — place `DropdownMenuTrigger` and
|
|
2699
|
+
* `DropdownMenuContent` inside it.
|
|
2700
|
+
*
|
|
2701
|
+
* @example
|
|
2702
|
+
* ```tsx
|
|
2703
|
+
* <DropdownMenu>
|
|
2704
|
+
* <DropdownMenuTrigger render={<Button />}>Open</DropdownMenuTrigger>
|
|
2705
|
+
* <DropdownMenuContent>
|
|
2706
|
+
* <DropdownMenuItem>Profile</DropdownMenuItem>
|
|
2707
|
+
* <DropdownMenuSeparator />
|
|
2708
|
+
* <DropdownMenuItem variant="destructive">Delete</DropdownMenuItem>
|
|
2709
|
+
* </DropdownMenuContent>
|
|
2710
|
+
* </DropdownMenu>
|
|
2711
|
+
* ```
|
|
2712
|
+
*/
|
|
1713
2713
|
declare function DropdownMenu(componentProps: DropdownMenu.Props): React.JSX.Element;
|
|
2714
|
+
/** Props for {@link DropdownMenu} — Base UI `Menu.Root` props. */
|
|
1714
2715
|
interface DropdownMenuProps extends Menu.Root.Props {}
|
|
1715
2716
|
declare namespace DropdownMenu {
|
|
1716
2717
|
type Props = DropdownMenuProps;
|
|
1717
2718
|
}
|
|
2719
|
+
/**
|
|
2720
|
+
* Portals the menu content into a different part of the DOM, wrapping
|
|
2721
|
+
* `Menu.Portal`. Renders no DOM element of its own.
|
|
2722
|
+
*/
|
|
1718
2723
|
declare function DropdownMenuPortal(componentProps: DropdownMenuPortal.Props): React.JSX.Element;
|
|
2724
|
+
/** Props for {@link DropdownMenuPortal} — Base UI `Menu.Portal` props. */
|
|
1719
2725
|
interface DropdownMenuPortalProps extends Menu.Portal.Props {}
|
|
1720
2726
|
declare namespace DropdownMenuPortal {
|
|
1721
2727
|
type Props = DropdownMenuPortalProps;
|
|
1722
2728
|
}
|
|
2729
|
+
/**
|
|
2730
|
+
* The element that opens the dropdown menu, wrapping `Menu.Trigger`.
|
|
2731
|
+
* Renders a `<button>` by default; use `render` to swap the element.
|
|
2732
|
+
*/
|
|
1723
2733
|
declare const DropdownMenuTrigger: React.ForwardRefExoticComponent<Omit<DropdownMenuTriggerProps, "ref"> & React.RefAttributes<HTMLButtonElement>>;
|
|
2734
|
+
/** Props for {@link DropdownMenuTrigger} — Base UI `Menu.Trigger` props. */
|
|
1724
2735
|
interface DropdownMenuTriggerProps extends Menu.Trigger.Props {}
|
|
1725
2736
|
declare namespace DropdownMenuTrigger {
|
|
1726
2737
|
type Props = DropdownMenuTriggerProps;
|
|
1727
2738
|
}
|
|
1728
|
-
|
|
2739
|
+
/**
|
|
2740
|
+
* The floating menu panel shown when open. Composes
|
|
2741
|
+
* `Menu.Portal → Menu.Positioner → Menu.Popup` into a single part and renders a
|
|
2742
|
+
* `<div>` popup. Positioning props (`side`, `sideOffset`, `align`, `alignOffset`)
|
|
2743
|
+
* are forwarded to the positioner; all other props go to the popup.
|
|
2744
|
+
*
|
|
2745
|
+
* @prop side - Which side of the trigger to place the menu. Default: `'bottom'`.
|
|
2746
|
+
* @prop sideOffset - Gap in pixels between the trigger and the menu. Default: `4`.
|
|
2747
|
+
* @prop align - Alignment along the trigger's cross-axis. Default: `'start'`.
|
|
2748
|
+
* @prop alignOffset - Offset in pixels along the cross-axis. Default: `0`.
|
|
2749
|
+
*/
|
|
2750
|
+
declare const DropdownMenuContent: React.ForwardRefExoticComponent<Omit<DropdownMenuContentProps, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
2751
|
+
/** Props for {@link DropdownMenuContent} — Base UI `Menu.Popup` props plus positioner `side`/`sideOffset`/`align`/`alignOffset` and `container`. */
|
|
1729
2752
|
interface DropdownMenuContentProps extends Menu.Popup.Props, Pick<Menu.Positioner.Props, 'align' | 'alignOffset' | 'side' | 'sideOffset'> {
|
|
2753
|
+
/** DOM node (or ref) the menu is portalled into; defaults to the document body. */
|
|
1730
2754
|
container?: Menu.Portal.Props['container'];
|
|
1731
2755
|
}
|
|
1732
2756
|
declare namespace DropdownMenuContent {
|
|
1733
2757
|
type Props = DropdownMenuContentProps;
|
|
1734
2758
|
}
|
|
2759
|
+
/**
|
|
2760
|
+
* Groups related menu items for labelling, wrapping `Menu.Group`.
|
|
2761
|
+
* Renders a `<div>` with `role="group"`; pair with `DropdownMenuLabel`.
|
|
2762
|
+
*/
|
|
1735
2763
|
declare const DropdownMenuGroup: React.ForwardRefExoticComponent<Omit<DropdownMenuGroupProps, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
2764
|
+
/** Props for {@link DropdownMenuGroup} — Base UI `Menu.Group` props. */
|
|
1736
2765
|
interface DropdownMenuGroupProps extends Menu.Group.Props {}
|
|
1737
2766
|
declare namespace DropdownMenuGroup {
|
|
1738
2767
|
type Props = DropdownMenuGroupProps;
|
|
1739
2768
|
}
|
|
2769
|
+
/**
|
|
2770
|
+
* Non-interactive heading for a menu group, wrapping `Menu.GroupLabel`.
|
|
2771
|
+
* Renders a `<div>`.
|
|
2772
|
+
*/
|
|
1740
2773
|
declare const DropdownMenuLabel: React.ForwardRefExoticComponent<Omit<DropdownMenuLabelProps, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
2774
|
+
/** Props for {@link DropdownMenuLabel} — Base UI `Menu.GroupLabel` props plus `inset`. */
|
|
1741
2775
|
interface DropdownMenuLabelProps extends Menu.GroupLabel.Props {
|
|
2776
|
+
/**
|
|
2777
|
+
* Add left padding so the label aligns with items that have a leading icon.
|
|
2778
|
+
* @default false
|
|
2779
|
+
*/
|
|
1742
2780
|
inset?: boolean;
|
|
1743
2781
|
}
|
|
1744
2782
|
declare namespace DropdownMenuLabel {
|
|
1745
2783
|
type Props = DropdownMenuLabelProps;
|
|
1746
2784
|
}
|
|
2785
|
+
/**
|
|
2786
|
+
* A selectable menu action, wrapping `Menu.Item`.
|
|
2787
|
+
* Renders a `<div>` with `role="menuitem"` that closes the menu when activated.
|
|
2788
|
+
*/
|
|
1747
2789
|
declare const DropdownMenuItem: React.ForwardRefExoticComponent<Omit<DropdownMenuItemProps, "ref"> & React.RefAttributes<HTMLElement>>;
|
|
2790
|
+
/** Props for {@link DropdownMenuItem} — Base UI `Menu.Item` props plus `inset` and `variant`. */
|
|
1748
2791
|
interface DropdownMenuItemProps extends Menu.Item.Props {
|
|
2792
|
+
/**
|
|
2793
|
+
* Add left padding so the item aligns with items that have a leading icon.
|
|
2794
|
+
* @default false
|
|
2795
|
+
*/
|
|
1749
2796
|
inset?: boolean;
|
|
2797
|
+
/**
|
|
2798
|
+
* Visual intent; `'destructive'` styles the item in the destructive color.
|
|
2799
|
+
* @default 'default'
|
|
2800
|
+
*/
|
|
1750
2801
|
variant?: 'default' | 'destructive';
|
|
1751
2802
|
}
|
|
1752
2803
|
declare namespace DropdownMenuItem {
|
|
1753
2804
|
type Props = DropdownMenuItemProps;
|
|
1754
2805
|
}
|
|
2806
|
+
/**
|
|
2807
|
+
* Root container for a nested submenu, wrapping `Menu.SubmenuRoot`. Manages the
|
|
2808
|
+
* submenu's open state and renders no DOM element — place a
|
|
2809
|
+
* `DropdownMenuSubTrigger` and `DropdownMenuSubContent` inside it.
|
|
2810
|
+
*/
|
|
1755
2811
|
declare function DropdownMenuSub(componentProps: DropdownMenuSub.Props): React.JSX.Element;
|
|
2812
|
+
/** Props for {@link DropdownMenuSub} — Base UI `Menu.SubmenuRoot` props. */
|
|
1756
2813
|
interface DropdownMenuSubProps extends Menu.SubmenuRoot.Props {}
|
|
1757
2814
|
declare namespace DropdownMenuSub {
|
|
1758
2815
|
type Props = DropdownMenuSubProps;
|
|
1759
2816
|
}
|
|
2817
|
+
/**
|
|
2818
|
+
* A menu item that opens its submenu, wrapping `Menu.SubmenuTrigger`.
|
|
2819
|
+
* Renders a `<div>` menu item with a trailing chevron icon.
|
|
2820
|
+
*/
|
|
1760
2821
|
declare const DropdownMenuSubTrigger: React.ForwardRefExoticComponent<Omit<DropdownMenuSubTriggerProps, "ref"> & React.RefAttributes<HTMLElement>>;
|
|
2822
|
+
/** Props for {@link DropdownMenuSubTrigger} — Base UI `Menu.SubmenuTrigger` props plus `inset`. */
|
|
1761
2823
|
interface DropdownMenuSubTriggerProps extends Menu.SubmenuTrigger.Props {
|
|
2824
|
+
/**
|
|
2825
|
+
* Add left padding so the trigger aligns with items that have a leading icon.
|
|
2826
|
+
* @default false
|
|
2827
|
+
*/
|
|
1762
2828
|
inset?: boolean;
|
|
1763
2829
|
}
|
|
1764
2830
|
declare namespace DropdownMenuSubTrigger {
|
|
1765
2831
|
type Props = DropdownMenuSubTriggerProps;
|
|
1766
2832
|
}
|
|
2833
|
+
/**
|
|
2834
|
+
* The floating panel for a submenu, building on `DropdownMenuContent` with
|
|
2835
|
+
* submenu-appropriate positioning defaults. Renders a `<div>` popup.
|
|
2836
|
+
*
|
|
2837
|
+
* @prop side - Which side of the trigger to place the submenu. Default: `'right'`.
|
|
2838
|
+
* @prop sideOffset - Gap in pixels between the trigger and the submenu. Default: `0`.
|
|
2839
|
+
* @prop align - Alignment along the trigger's cross-axis. Default: `'start'`.
|
|
2840
|
+
* @prop alignOffset - Offset in pixels along the cross-axis. Default: `-3`.
|
|
2841
|
+
*/
|
|
1767
2842
|
declare const DropdownMenuSubContent: React.ForwardRefExoticComponent<Omit<DropdownMenuSubContentProps, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
2843
|
+
/** Props for {@link DropdownMenuSubContent} — same props as {@link DropdownMenuContent}. */
|
|
1768
2844
|
interface DropdownMenuSubContentProps extends React.ComponentProps<typeof DropdownMenuContent> {}
|
|
1769
2845
|
declare namespace DropdownMenuSubContent {
|
|
1770
2846
|
type Props = DropdownMenuSubContentProps;
|
|
1771
2847
|
}
|
|
2848
|
+
/**
|
|
2849
|
+
* A menu item with a toggleable checked state, wrapping `Menu.CheckboxItem`.
|
|
2850
|
+
* Renders a `<div>` menu item with a trailing check indicator when checked.
|
|
2851
|
+
*/
|
|
1772
2852
|
declare const DropdownMenuCheckboxItem: React.ForwardRefExoticComponent<Omit<DropdownMenuCheckboxItemProps, "ref"> & React.RefAttributes<HTMLElement>>;
|
|
2853
|
+
/** Props for {@link DropdownMenuCheckboxItem} — Base UI `Menu.CheckboxItem` props plus `inset`. */
|
|
1773
2854
|
interface DropdownMenuCheckboxItemProps extends Menu.CheckboxItem.Props {
|
|
2855
|
+
/**
|
|
2856
|
+
* Add left padding so the item aligns with items that have a leading icon.
|
|
2857
|
+
* @default false
|
|
2858
|
+
*/
|
|
1774
2859
|
inset?: boolean;
|
|
1775
2860
|
}
|
|
1776
2861
|
declare namespace DropdownMenuCheckboxItem {
|
|
1777
2862
|
type Props = DropdownMenuCheckboxItemProps;
|
|
1778
2863
|
}
|
|
2864
|
+
/**
|
|
2865
|
+
* Groups radio items so only one can be selected, wrapping `Menu.RadioGroup`.
|
|
2866
|
+
* Renders a `<div>`.
|
|
2867
|
+
*/
|
|
1779
2868
|
declare const DropdownMenuRadioGroup: React.ForwardRefExoticComponent<Omit<DropdownMenuRadioGroupProps, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
2869
|
+
/** Props for {@link DropdownMenuRadioGroup} — Base UI `Menu.RadioGroup` props. */
|
|
1780
2870
|
interface DropdownMenuRadioGroupProps extends Menu.RadioGroup.Props {}
|
|
1781
2871
|
declare namespace DropdownMenuRadioGroup {
|
|
1782
2872
|
type Props = DropdownMenuRadioGroupProps;
|
|
1783
2873
|
}
|
|
2874
|
+
/**
|
|
2875
|
+
* A single selectable option within a radio group, wrapping `Menu.RadioItem`.
|
|
2876
|
+
* Renders a `<div>` menu item with a trailing check indicator when selected.
|
|
2877
|
+
*/
|
|
1784
2878
|
declare const DropdownMenuRadioItem: React.ForwardRefExoticComponent<Omit<DropdownMenuRadioItemProps, "ref"> & React.RefAttributes<HTMLElement>>;
|
|
2879
|
+
/** Props for {@link DropdownMenuRadioItem} — Base UI `Menu.RadioItem` props plus `inset`. */
|
|
1785
2880
|
interface DropdownMenuRadioItemProps extends Menu.RadioItem.Props {
|
|
2881
|
+
/**
|
|
2882
|
+
* Add left padding so the item aligns with items that have a leading icon.
|
|
2883
|
+
* @default false
|
|
2884
|
+
*/
|
|
1786
2885
|
inset?: boolean;
|
|
1787
2886
|
}
|
|
1788
2887
|
declare namespace DropdownMenuRadioItem {
|
|
1789
2888
|
type Props = DropdownMenuRadioItemProps;
|
|
1790
2889
|
}
|
|
2890
|
+
/**
|
|
2891
|
+
* A horizontal divider between groups of menu items, wrapping `Menu.Separator`.
|
|
2892
|
+
* Renders a `<div>` with `role="separator"`.
|
|
2893
|
+
*/
|
|
1791
2894
|
declare const DropdownMenuSeparator: React.ForwardRefExoticComponent<Omit<DropdownMenuSeparatorProps, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
2895
|
+
/** Props for {@link DropdownMenuSeparator} — Base UI `Menu.Separator` props. */
|
|
1792
2896
|
interface DropdownMenuSeparatorProps extends Menu.Separator.Props {}
|
|
1793
2897
|
declare namespace DropdownMenuSeparator {
|
|
1794
2898
|
type Props = DropdownMenuSeparatorProps;
|
|
1795
2899
|
}
|
|
2900
|
+
/**
|
|
2901
|
+
* Right-aligned slot for a keyboard shortcut hint on a menu item.
|
|
2902
|
+
* Renders a `<span>`.
|
|
2903
|
+
*/
|
|
1796
2904
|
declare const DropdownMenuShortcut: React.ForwardRefExoticComponent<Omit<DropdownMenuShortcutProps, "ref"> & React.RefAttributes<HTMLSpanElement>>;
|
|
2905
|
+
/** Props for {@link DropdownMenuShortcut} — standard `<span>` props. */
|
|
1797
2906
|
interface DropdownMenuShortcutProps extends React.ComponentProps<'span'> {}
|
|
1798
2907
|
declare namespace DropdownMenuShortcut {
|
|
1799
2908
|
type Props = DropdownMenuShortcutProps;
|
|
1800
2909
|
}
|
|
2910
|
+
/**
|
|
2911
|
+
* Right-aligned slot for arbitrary trailing content (e.g. a badge) on a menu
|
|
2912
|
+
* item, with `ml-auto` and `shrink-0` baked in. Renders a `<span>`.
|
|
2913
|
+
*/
|
|
1801
2914
|
declare const DropdownMenuAddon: React.ForwardRefExoticComponent<Omit<DropdownMenuAddonProps, "ref"> & React.RefAttributes<HTMLSpanElement>>;
|
|
2915
|
+
/** Props for {@link DropdownMenuAddon} — standard `<span>` props. */
|
|
1802
2916
|
interface DropdownMenuAddonProps extends React.ComponentProps<'span'> {}
|
|
1803
2917
|
declare namespace DropdownMenuAddon {
|
|
1804
2918
|
type Props = DropdownMenuAddonProps;
|
|
1805
2919
|
}
|
|
1806
2920
|
//#endregion
|
|
1807
2921
|
//#region src/components/empty.d.ts
|
|
2922
|
+
/**
|
|
2923
|
+
* Empty-state container that centers its content (media, text, and actions).
|
|
2924
|
+
* Renders a `<div>`; compose it with `EmptyHeader`, `EmptyMedia`, `EmptyTitle`,
|
|
2925
|
+
* `EmptyDescription`, and `EmptyContent`.
|
|
2926
|
+
*
|
|
2927
|
+
* @example
|
|
2928
|
+
* ```tsx
|
|
2929
|
+
* <Empty>
|
|
2930
|
+
* <EmptyHeader>
|
|
2931
|
+
* <EmptyMedia variant="icon"><InboxIcon /></EmptyMedia>
|
|
2932
|
+
* <EmptyTitle>No messages</EmptyTitle>
|
|
2933
|
+
* <EmptyDescription>You're all caught up.</EmptyDescription>
|
|
2934
|
+
* </EmptyHeader>
|
|
2935
|
+
* <EmptyContent>
|
|
2936
|
+
* <Button>Refresh</Button>
|
|
2937
|
+
* </EmptyContent>
|
|
2938
|
+
* </Empty>
|
|
2939
|
+
* ```
|
|
2940
|
+
*/
|
|
1808
2941
|
declare const Empty: React.ForwardRefExoticComponent<Omit<EmptyProps, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
1809
2942
|
interface EmptyProps extends React.ComponentProps<'div'> {}
|
|
1810
2943
|
declare namespace Empty {
|
|
1811
2944
|
type Props = EmptyProps;
|
|
1812
2945
|
}
|
|
2946
|
+
/**
|
|
2947
|
+
* Groups the media, title, and description of an empty state. Renders a `<div>`.
|
|
2948
|
+
*/
|
|
1813
2949
|
declare const EmptyHeader: React.ForwardRefExoticComponent<Omit<EmptyHeaderProps, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
1814
2950
|
interface EmptyHeaderProps extends React.ComponentProps<'div'> {}
|
|
1815
2951
|
declare namespace EmptyHeader {
|
|
@@ -1818,21 +2954,35 @@ declare namespace EmptyHeader {
|
|
|
1818
2954
|
declare const emptyMediaVariants: (props?: ({
|
|
1819
2955
|
variant?: "default" | "icon" | null | undefined;
|
|
1820
2956
|
} & class_variance_authority_types7.ClassProp) | undefined) => string;
|
|
2957
|
+
/**
|
|
2958
|
+
* Wrapper for the empty state's icon or illustration. Renders a `<div>`; the `icon`
|
|
2959
|
+
* variant gives it a muted rounded background, while `default` is transparent.
|
|
2960
|
+
*/
|
|
1821
2961
|
declare const EmptyMedia: React.ForwardRefExoticComponent<Omit<EmptyMediaProps, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
1822
2962
|
interface EmptyMediaProps extends React.ComponentProps<'div'>, VariantProps<typeof emptyMediaVariants> {}
|
|
1823
2963
|
declare namespace EmptyMedia {
|
|
1824
2964
|
type Props = EmptyMediaProps;
|
|
1825
2965
|
}
|
|
2966
|
+
/**
|
|
2967
|
+
* Primary heading of the empty state. Renders a `<div>`.
|
|
2968
|
+
*/
|
|
1826
2969
|
declare const EmptyTitle: React.ForwardRefExoticComponent<Omit<EmptyTitleProps, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
1827
2970
|
interface EmptyTitleProps extends React.ComponentProps<'div'> {}
|
|
1828
2971
|
declare namespace EmptyTitle {
|
|
1829
2972
|
type Props = EmptyTitleProps;
|
|
1830
2973
|
}
|
|
2974
|
+
/**
|
|
2975
|
+
* Supporting text below the title; styles any nested anchors as links.
|
|
2976
|
+
* Renders a `<div>`.
|
|
2977
|
+
*/
|
|
1831
2978
|
declare const EmptyDescription: React.ForwardRefExoticComponent<Omit<EmptyDescriptionProps, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
1832
2979
|
interface EmptyDescriptionProps extends React.ComponentProps<'p'> {}
|
|
1833
2980
|
declare namespace EmptyDescription {
|
|
1834
2981
|
type Props = EmptyDescriptionProps;
|
|
1835
2982
|
}
|
|
2983
|
+
/**
|
|
2984
|
+
* Region below the header for actions or extra content (e.g. buttons). Renders a `<div>`.
|
|
2985
|
+
*/
|
|
1836
2986
|
declare const EmptyContent: React.ForwardRefExoticComponent<Omit<EmptyContentProps, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
1837
2987
|
interface EmptyContentProps extends React.ComponentProps<'div'> {}
|
|
1838
2988
|
declare namespace EmptyContent {
|
|
@@ -1842,6 +2992,7 @@ declare namespace EmptyContent {
|
|
|
1842
2992
|
//#region src/components/dropzone.d.ts
|
|
1843
2993
|
/** Error codes — same set as react-dropzone, so consumers can share translation logic. */
|
|
1844
2994
|
type DropzoneErrorCode = 'too-many-files' | 'file-too-large' | 'file-too-small' | 'file-invalid-type' | (string & {});
|
|
2995
|
+
/** A single validation failure for a file: an error `code` plus a human-readable `message`. */
|
|
1845
2996
|
interface FileError {
|
|
1846
2997
|
code: DropzoneErrorCode;
|
|
1847
2998
|
message: string;
|
|
@@ -1899,16 +3050,26 @@ interface DropzoneIconProps extends React.ComponentProps<typeof EmptyMedia> {}
|
|
|
1899
3050
|
declare namespace DropzoneIcon {
|
|
1900
3051
|
type Props = DropzoneIconProps;
|
|
1901
3052
|
}
|
|
3053
|
+
/**
|
|
3054
|
+
* Title line inside a `DropzoneContent`. Wraps DS `EmptyTitle`, pinned to
|
|
3055
|
+
* `text-foreground` so an enclosing invalid `Field` doesn't recolor it.
|
|
3056
|
+
*/
|
|
1902
3057
|
declare const DropzoneTitle: React.ForwardRefExoticComponent<Omit<DropzoneTitleProps, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
1903
3058
|
interface DropzoneTitleProps extends React.ComponentProps<typeof EmptyTitle> {}
|
|
1904
3059
|
declare namespace DropzoneTitle {
|
|
1905
3060
|
type Props = DropzoneTitleProps;
|
|
1906
3061
|
}
|
|
3062
|
+
/** Secondary helper text inside a `DropzoneContent`. Wraps DS `EmptyDescription`. */
|
|
1907
3063
|
declare const DropzoneDescription: React.ForwardRefExoticComponent<Omit<DropzoneDescriptionProps, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
1908
3064
|
interface DropzoneDescriptionProps extends React.ComponentProps<typeof EmptyDescription> {}
|
|
1909
3065
|
declare namespace DropzoneDescription {
|
|
1910
3066
|
type Props = DropzoneDescriptionProps;
|
|
1911
3067
|
}
|
|
3068
|
+
/**
|
|
3069
|
+
* Row for action buttons (e.g. a `DropzoneTrigger`) inside a `DropzoneContent`.
|
|
3070
|
+
* Renders a `<div>` (`flex`, `gap-2`) that stops click / keydown propagation so
|
|
3071
|
+
* pressing a button doesn't also open the file picker via the surrounding card.
|
|
3072
|
+
*/
|
|
1912
3073
|
declare const DropzoneActions: React.ForwardRefExoticComponent<Omit<DropzoneActionsProps, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
1913
3074
|
interface DropzoneActionsProps extends React.ComponentProps<'div'> {}
|
|
1914
3075
|
declare namespace DropzoneActions {
|
|
@@ -1925,31 +3086,71 @@ declare namespace DropzoneTrigger {
|
|
|
1925
3086
|
}
|
|
1926
3087
|
//#endregion
|
|
1927
3088
|
//#region src/components/popover.d.ts
|
|
3089
|
+
/**
|
|
3090
|
+
* Root container for a popover, wrapping Base UI's `Popover.Root`. Manages
|
|
3091
|
+
* open/close state and renders no DOM element — place `PopoverTrigger` and
|
|
3092
|
+
* `PopoverContent` inside it.
|
|
3093
|
+
*
|
|
3094
|
+
* @example
|
|
3095
|
+
* ```tsx
|
|
3096
|
+
* <Popover>
|
|
3097
|
+
* <PopoverTrigger render={<Button variant="outline" />}>Open</PopoverTrigger>
|
|
3098
|
+
* <PopoverContent>Popover body</PopoverContent>
|
|
3099
|
+
* </Popover>
|
|
3100
|
+
* ```
|
|
3101
|
+
*/
|
|
1928
3102
|
declare function Popover(componentProps: Popover.Props): React.JSX.Element;
|
|
1929
3103
|
interface PopoverProps extends Popover$1.Root.Props {}
|
|
1930
3104
|
declare namespace Popover {
|
|
1931
3105
|
type Props = PopoverProps;
|
|
1932
3106
|
}
|
|
3107
|
+
/**
|
|
3108
|
+
* The element that toggles the popover, wrapping `Popover.Trigger`.
|
|
3109
|
+
* Renders a `<button>` by default; use `render` to swap the element.
|
|
3110
|
+
*/
|
|
1933
3111
|
declare const PopoverTrigger: React.ForwardRefExoticComponent<Omit<PopoverTriggerProps, "ref"> & React.RefAttributes<HTMLButtonElement>>;
|
|
1934
3112
|
interface PopoverTriggerProps extends Popover$1.Trigger.Props {}
|
|
1935
3113
|
declare namespace PopoverTrigger {
|
|
1936
3114
|
type Props = PopoverTriggerProps;
|
|
1937
3115
|
}
|
|
3116
|
+
/**
|
|
3117
|
+
* The floating panel shown when the popover is open. Composes
|
|
3118
|
+
* `Popover.Portal → Popover.Positioner → Popover.Popup` into a single part and
|
|
3119
|
+
* renders a `<div>` popup. Positioning props (`side`, `sideOffset`, `align`,
|
|
3120
|
+
* `alignOffset`) are forwarded to the positioner; all other props go to the popup.
|
|
3121
|
+
*
|
|
3122
|
+
* @prop side - Which side of the trigger to place the popover. Default: `'bottom'`.
|
|
3123
|
+
* @prop sideOffset - Gap in pixels between the trigger and the popover. Default: `4`.
|
|
3124
|
+
* @prop align - Alignment along the trigger's cross-axis. Default: `'center'`.
|
|
3125
|
+
* @prop alignOffset - Offset in pixels along the cross-axis. Default: `0`.
|
|
3126
|
+
*/
|
|
1938
3127
|
declare const PopoverContent: React.ForwardRefExoticComponent<Omit<PopoverContentProps, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
1939
3128
|
interface PopoverContentProps extends Popover$1.Popup.Props, Pick<Popover$1.Positioner.Props, 'align' | 'alignOffset' | 'side' | 'sideOffset'> {}
|
|
1940
3129
|
declare namespace PopoverContent {
|
|
1941
3130
|
type Props = PopoverContentProps;
|
|
1942
3131
|
}
|
|
3132
|
+
/**
|
|
3133
|
+
* Optional header region grouping the popover's title and description.
|
|
3134
|
+
* Renders a `<div>`.
|
|
3135
|
+
*/
|
|
1943
3136
|
declare const PopoverHeader: React.ForwardRefExoticComponent<Omit<PopoverHeaderProps, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
1944
3137
|
interface PopoverHeaderProps extends React.ComponentProps<'div'> {}
|
|
1945
3138
|
declare namespace PopoverHeader {
|
|
1946
3139
|
type Props = PopoverHeaderProps;
|
|
1947
3140
|
}
|
|
3141
|
+
/**
|
|
3142
|
+
* Accessible title for the popover, wrapping `Popover.Title`.
|
|
3143
|
+
* Renders an `<h2>` and labels the popup for assistive technology.
|
|
3144
|
+
*/
|
|
1948
3145
|
declare const PopoverTitle: React.ForwardRefExoticComponent<Omit<PopoverTitleProps, "ref"> & React.RefAttributes<HTMLHeadingElement>>;
|
|
1949
3146
|
interface PopoverTitleProps extends Popover$1.Title.Props {}
|
|
1950
3147
|
declare namespace PopoverTitle {
|
|
1951
3148
|
type Props = PopoverTitleProps;
|
|
1952
3149
|
}
|
|
3150
|
+
/**
|
|
3151
|
+
* Accessible supporting text for the popover, wrapping `Popover.Description`.
|
|
3152
|
+
* Renders a `<p>` and describes the popup for assistive technology.
|
|
3153
|
+
*/
|
|
1953
3154
|
declare const PopoverDescription: React.ForwardRefExoticComponent<Omit<PopoverDescriptionProps, "ref"> & React.RefAttributes<HTMLParagraphElement>>;
|
|
1954
3155
|
interface PopoverDescriptionProps extends Popover$1.Description.Props {}
|
|
1955
3156
|
declare namespace PopoverDescription {
|
|
@@ -1957,6 +3158,7 @@ declare namespace PopoverDescription {
|
|
|
1957
3158
|
}
|
|
1958
3159
|
//#endregion
|
|
1959
3160
|
//#region src/components/emoji-picker.d.ts
|
|
3161
|
+
/** Emoji category identifiers, for the `categories` prop of `EmojiPickerContent`. */
|
|
1960
3162
|
declare const EmojiPickerCategories: {
|
|
1961
3163
|
readonly SUGGESTED: Categories.SUGGESTED;
|
|
1962
3164
|
readonly SMILEYS_PEOPLE: Categories.SMILEYS_PEOPLE;
|
|
@@ -1968,6 +3170,7 @@ declare const EmojiPickerCategories: {
|
|
|
1968
3170
|
readonly SYMBOLS: Categories.SYMBOLS;
|
|
1969
3171
|
readonly FLAGS: Categories.FLAGS;
|
|
1970
3172
|
};
|
|
3173
|
+
/** A category to show in the picker: a `category` id paired with its display `name`. */
|
|
1971
3174
|
type EmojiPickerCategory = {
|
|
1972
3175
|
category: (typeof EmojiPickerCategories)[keyof typeof EmojiPickerCategories];
|
|
1973
3176
|
name: string;
|
|
@@ -1976,6 +3179,19 @@ type EmojiPickerProps = {
|
|
|
1976
3179
|
onEmojiSelect?: (emoji: string) => void;
|
|
1977
3180
|
children?: React.ReactNode;
|
|
1978
3181
|
};
|
|
3182
|
+
/**
|
|
3183
|
+
* Root of the emoji picker: manages open/close state and provides the selection callback
|
|
3184
|
+
* to its parts. Renders the Base UI Popover root (context only — no DOM element). Place
|
|
3185
|
+
* `EmojiPickerTrigger` and `EmojiPickerContent` inside it.
|
|
3186
|
+
*
|
|
3187
|
+
* @example
|
|
3188
|
+
* ```tsx
|
|
3189
|
+
* <EmojiPicker onEmojiSelect={setEmoji}>
|
|
3190
|
+
* <EmojiPickerTrigger />
|
|
3191
|
+
* <EmojiPickerContent />
|
|
3192
|
+
* </EmojiPicker>
|
|
3193
|
+
* ```
|
|
3194
|
+
*/
|
|
1979
3195
|
declare function EmojiPicker({
|
|
1980
3196
|
onEmojiSelect,
|
|
1981
3197
|
children
|
|
@@ -1983,6 +3199,16 @@ declare function EmojiPicker({
|
|
|
1983
3199
|
declare namespace EmojiPicker {
|
|
1984
3200
|
type Props = EmojiPickerProps;
|
|
1985
3201
|
}
|
|
3202
|
+
/**
|
|
3203
|
+
* Trigger that opens the `EmojiPicker`. Renders a Base UI `PopoverTrigger` as a `<button>` —
|
|
3204
|
+
* by default an outline icon `Button` with a smile icon; override the element via `render`
|
|
3205
|
+
* and the inner content via `children`.
|
|
3206
|
+
*
|
|
3207
|
+
* @example
|
|
3208
|
+
* ```tsx
|
|
3209
|
+
* <EmojiPickerTrigger />
|
|
3210
|
+
* ```
|
|
3211
|
+
*/
|
|
1986
3212
|
declare const EmojiPickerTrigger: React.ForwardRefExoticComponent<Omit<EmojiPickerTriggerProps, "ref"> & React.RefAttributes<HTMLButtonElement>>;
|
|
1987
3213
|
interface EmojiPickerTriggerProps extends Popover$1.Trigger.Props {}
|
|
1988
3214
|
declare namespace EmojiPickerTrigger {
|
|
@@ -1994,6 +3220,15 @@ type EmojiPickerContentProps = Omit<React.ComponentProps<typeof PopoverContent>,
|
|
|
1994
3220
|
width?: number;
|
|
1995
3221
|
suggestedEmojisMode?: SuggestionMode;
|
|
1996
3222
|
};
|
|
3223
|
+
/**
|
|
3224
|
+
* The floating popover panel of the `EmojiPicker`, containing the searchable emoji grid.
|
|
3225
|
+
* Portal-rendered via `PopoverContent`; the picker theme follows the DS theme provider.
|
|
3226
|
+
*
|
|
3227
|
+
* @example
|
|
3228
|
+
* ```tsx
|
|
3229
|
+
* <EmojiPickerContent width={320} categories={[{ category: EmojiPickerCategories.SMILEYS_PEOPLE, name: 'Smileys' }]} />
|
|
3230
|
+
* ```
|
|
3231
|
+
*/
|
|
1997
3232
|
declare function EmojiPickerContent({
|
|
1998
3233
|
className,
|
|
1999
3234
|
align,
|
|
@@ -2008,10 +3243,29 @@ declare namespace EmojiPickerContent {
|
|
|
2008
3243
|
}
|
|
2009
3244
|
//#endregion
|
|
2010
3245
|
//#region src/components/fab.d.ts
|
|
3246
|
+
/**
|
|
3247
|
+
* `class-variance-authority` config for {@link FAB}. `variant` (`default` |
|
|
3248
|
+
* `outline`, default `default`) sets the colour scheme; `size` (`lg` |
|
|
3249
|
+
* `icon-lg`, default `icon-lg`) sets the dimensions.
|
|
3250
|
+
*/
|
|
2011
3251
|
declare const fabVariants: (props?: ({
|
|
2012
3252
|
variant?: "default" | "outline" | null | undefined;
|
|
2013
3253
|
size?: "lg" | "icon-lg" | null | undefined;
|
|
2014
3254
|
} & class_variance_authority_types7.ClassProp) | undefined) => string;
|
|
3255
|
+
/**
|
|
3256
|
+
* Floating action button — a raised, shadowed button for a primary action.
|
|
3257
|
+
* Renders Base UI's `Button` primitive as a `<button>`.
|
|
3258
|
+
*
|
|
3259
|
+
* @prop variant - Colour scheme: `default` | `outline`. Default: `'default'`.
|
|
3260
|
+
* @prop size - Dimensions: `lg` (label + icon) | `icon-lg` (icon only). Default: `'icon-lg'`.
|
|
3261
|
+
*
|
|
3262
|
+
* @example
|
|
3263
|
+
* ```tsx
|
|
3264
|
+
* <FAB aria-label="Add">
|
|
3265
|
+
* <PlusIcon />
|
|
3266
|
+
* </FAB>
|
|
3267
|
+
* ```
|
|
3268
|
+
*/
|
|
2015
3269
|
declare const FAB: React.ForwardRefExoticComponent<Omit<FABProps, "ref"> & React.RefAttributes<HTMLButtonElement>>;
|
|
2016
3270
|
interface FABProps extends Button$1.Props, VariantProps<typeof fabVariants> {}
|
|
2017
3271
|
declare namespace FAB {
|
|
@@ -2019,6 +3273,16 @@ declare namespace FAB {
|
|
|
2019
3273
|
}
|
|
2020
3274
|
//#endregion
|
|
2021
3275
|
//#region src/components/label.d.ts
|
|
3276
|
+
/**
|
|
3277
|
+
* Caption for a form control. Renders a `<label>` element with design-system
|
|
3278
|
+
* typography and disabled styling that reacts to peer/group `data-disabled`
|
|
3279
|
+
* state.
|
|
3280
|
+
*
|
|
3281
|
+
* @example
|
|
3282
|
+
* ```tsx
|
|
3283
|
+
* <Label htmlFor="email">Email</Label>
|
|
3284
|
+
* ```
|
|
3285
|
+
*/
|
|
2022
3286
|
declare const Label: React.ForwardRefExoticComponent<Omit<LabelProps, "ref"> & React.RefAttributes<HTMLLabelElement>>;
|
|
2023
3287
|
interface LabelProps extends React.ComponentProps<'label'> {}
|
|
2024
3288
|
declare namespace Label {
|
|
@@ -2026,18 +3290,34 @@ declare namespace Label {
|
|
|
2026
3290
|
}
|
|
2027
3291
|
//#endregion
|
|
2028
3292
|
//#region src/components/field.d.ts
|
|
3293
|
+
/**
|
|
3294
|
+
* Groups a set of related fields under a shared `FieldLegend`. Renders a native `<fieldset>` with
|
|
3295
|
+
* vertical spacing between its children.
|
|
3296
|
+
*/
|
|
2029
3297
|
declare const FieldSet: React.ForwardRefExoticComponent<Omit<FieldSetProps, "ref"> & React.RefAttributes<HTMLFieldSetElement>>;
|
|
2030
3298
|
interface FieldSetProps extends React.ComponentProps<'fieldset'> {}
|
|
2031
3299
|
declare namespace FieldSet {
|
|
2032
3300
|
type Props = FieldSetProps;
|
|
2033
3301
|
}
|
|
3302
|
+
/**
|
|
3303
|
+
* Caption for a `FieldSet`, rendering a native `<legend>`. The `variant` prop switches between
|
|
3304
|
+
* section-heading (`'legend'`) and label-sized (`'label'`) typography.
|
|
3305
|
+
*/
|
|
2034
3306
|
declare const FieldLegend: React.ForwardRefExoticComponent<Omit<FieldLegendProps, "ref"> & React.RefAttributes<HTMLLegendElement>>;
|
|
2035
3307
|
interface FieldLegendProps extends React.ComponentProps<'legend'> {
|
|
3308
|
+
/**
|
|
3309
|
+
* Typography of the legend: `'legend'` for a section heading, `'label'` for label-sized text.
|
|
3310
|
+
* @default 'legend'
|
|
3311
|
+
*/
|
|
2036
3312
|
variant?: 'legend' | 'label';
|
|
2037
3313
|
}
|
|
2038
3314
|
declare namespace FieldLegend {
|
|
2039
3315
|
type Props = FieldLegendProps;
|
|
2040
3316
|
}
|
|
3317
|
+
/**
|
|
3318
|
+
* Container that stacks multiple `Field`s or `FieldSet`s and establishes the `@container` context
|
|
3319
|
+
* used by responsive field orientation. Renders a `<div>`.
|
|
3320
|
+
*/
|
|
2041
3321
|
declare const FieldGroup: React.ForwardRefExoticComponent<Omit<FieldGroupProps, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
2042
3322
|
interface FieldGroupProps extends React.ComponentProps<'div'> {}
|
|
2043
3323
|
declare namespace FieldGroup {
|
|
@@ -2046,11 +3326,29 @@ declare namespace FieldGroup {
|
|
|
2046
3326
|
declare const fieldVariants: (props?: ({
|
|
2047
3327
|
orientation?: "horizontal" | "vertical" | "responsive" | null | undefined;
|
|
2048
3328
|
} & class_variance_authority_types7.ClassProp) | undefined) => string;
|
|
3329
|
+
/**
|
|
3330
|
+
* Layout wrapper pairing a control with its label, description, and error. Renders a
|
|
3331
|
+
* `<div role="group">`. The `orientation` variant (`'vertical' | 'horizontal' | 'responsive'`)
|
|
3332
|
+
* controls the axis and defaults to `'vertical'`.
|
|
3333
|
+
*
|
|
3334
|
+
* @example
|
|
3335
|
+
* ```tsx
|
|
3336
|
+
* <Field>
|
|
3337
|
+
* <FieldLabel htmlFor="name">Name</FieldLabel>
|
|
3338
|
+
* <Input id="name" />
|
|
3339
|
+
* <FieldDescription>Your full name.</FieldDescription>
|
|
3340
|
+
* </Field>
|
|
3341
|
+
* ```
|
|
3342
|
+
*/
|
|
2049
3343
|
declare const Field: React.ForwardRefExoticComponent<Omit<FieldProps, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
2050
3344
|
interface FieldProps extends React.ComponentProps<'div'>, VariantProps<typeof fieldVariants> {}
|
|
2051
3345
|
declare namespace Field {
|
|
2052
3346
|
type Props = FieldProps;
|
|
2053
3347
|
}
|
|
3348
|
+
/**
|
|
3349
|
+
* Column wrapper for a field's label and description, typically placed beside a control in a
|
|
3350
|
+
* horizontal field. Renders a `<div>`.
|
|
3351
|
+
*/
|
|
2054
3352
|
declare const FieldContent: React.ForwardRefExoticComponent<Omit<FieldContentProps, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
2055
3353
|
interface FieldContentProps extends React.ComponentProps<'div'> {}
|
|
2056
3354
|
declare namespace FieldContent {
|
|
@@ -2141,11 +3439,20 @@ interface FieldLabelAsideProps extends React.ComponentProps<'span'> {}
|
|
|
2141
3439
|
declare namespace FieldLabelAside {
|
|
2142
3440
|
type Props = FieldLabelAsideProps;
|
|
2143
3441
|
}
|
|
3442
|
+
/**
|
|
3443
|
+
* Non-`<label>` title for a field, used when the title is not tied to a single control. Renders a
|
|
3444
|
+
* `<div>` in medium-weight small text.
|
|
3445
|
+
*/
|
|
2144
3446
|
declare const FieldTitle: React.ForwardRefExoticComponent<Omit<FieldTitleProps, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
2145
3447
|
interface FieldTitleProps extends React.ComponentProps<'div'> {}
|
|
2146
3448
|
declare namespace FieldTitle {
|
|
2147
3449
|
type Props = FieldTitleProps;
|
|
2148
3450
|
}
|
|
3451
|
+
/**
|
|
3452
|
+
* Helper text for a field, rendering a `<p>` in muted text. The `variant` prop selects contextual
|
|
3453
|
+
* vs instructional behavior (see the prop docs); contextual descriptions hide while the field is
|
|
3454
|
+
* invalid so the `FieldError` can take their place.
|
|
3455
|
+
*/
|
|
2149
3456
|
declare const FieldDescription: React.ForwardRefExoticComponent<Omit<FieldDescriptionProps, "ref"> & React.RefAttributes<HTMLParagraphElement>>;
|
|
2150
3457
|
interface FieldDescriptionProps extends React.ComponentProps<'p'> {
|
|
2151
3458
|
/**
|
|
@@ -2164,6 +3471,10 @@ interface FieldDescriptionProps extends React.ComponentProps<'p'> {
|
|
|
2164
3471
|
declare namespace FieldDescription {
|
|
2165
3472
|
type Props = FieldDescriptionProps;
|
|
2166
3473
|
}
|
|
3474
|
+
/**
|
|
3475
|
+
* Divider between fields, optionally labelled with centered content. Renders a `<div>` containing a
|
|
3476
|
+
* `Separator` and, when `children` are provided, a centered text label over the line.
|
|
3477
|
+
*/
|
|
2167
3478
|
declare const FieldSeparator: React.ForwardRefExoticComponent<Omit<FieldSeparatorProps, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
2168
3479
|
interface FieldSeparatorProps extends React.ComponentProps<'div'> {
|
|
2169
3480
|
children?: React.ReactNode;
|
|
@@ -2171,8 +3482,14 @@ interface FieldSeparatorProps extends React.ComponentProps<'div'> {
|
|
|
2171
3482
|
declare namespace FieldSeparator {
|
|
2172
3483
|
type Props = FieldSeparatorProps;
|
|
2173
3484
|
}
|
|
3485
|
+
/**
|
|
3486
|
+
* Displays a field's validation message(s), rendering a `<div role="alert">` in destructive color.
|
|
3487
|
+
* Renders nothing when there is no `children` or `errors` content; multiple errors render as a
|
|
3488
|
+
* bulleted list with duplicates removed.
|
|
3489
|
+
*/
|
|
2174
3490
|
declare const FieldError: React.ForwardRefExoticComponent<Omit<FieldErrorProps, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
2175
3491
|
interface FieldErrorProps extends React.ComponentProps<'div'> {
|
|
3492
|
+
/** Validation errors to display; each `message` is shown (duplicates removed). Ignored when `children` is provided. */
|
|
2176
3493
|
errors?: Array<{
|
|
2177
3494
|
message?: string;
|
|
2178
3495
|
} | undefined>;
|
|
@@ -2189,6 +3506,16 @@ interface GaugeProps extends Omit<React.ComponentProps<'div'>, 'children'> {
|
|
|
2189
3506
|
*/
|
|
2190
3507
|
value: number;
|
|
2191
3508
|
}
|
|
3509
|
+
/**
|
|
3510
|
+
* Segmented signal-strength meter that fills a fixed set of 8 bars up to `value`.
|
|
3511
|
+
* Renders a `<div role="meter">` containing 8 segment `<div>`s whose opacity
|
|
3512
|
+
* ramps (head / trailing / filled) toward the current value.
|
|
3513
|
+
*
|
|
3514
|
+
* @example
|
|
3515
|
+
* ```tsx
|
|
3516
|
+
* <Gauge value={5} />
|
|
3517
|
+
* ```
|
|
3518
|
+
*/
|
|
2192
3519
|
declare const Gauge: React.ForwardRefExoticComponent<Omit<GaugeProps, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
2193
3520
|
declare namespace Gauge {
|
|
2194
3521
|
type Props = GaugeProps;
|
|
@@ -2804,13 +4131,44 @@ declare const InlineEditTextarea: React.ForwardRefExoticComponent<Omit<InlineEdi
|
|
|
2804
4131
|
declare const inputVariants: (props?: ({
|
|
2805
4132
|
block?: boolean | null | undefined;
|
|
2806
4133
|
} & class_variance_authority_types7.ClassProp) | undefined) => string;
|
|
4134
|
+
/**
|
|
4135
|
+
* Single-line text field styled to the design system.
|
|
4136
|
+
*
|
|
4137
|
+
* Renders a native `<input>` with focus ring and `aria-invalid` error styling;
|
|
4138
|
+
* accepts any input `type`.
|
|
4139
|
+
*
|
|
4140
|
+
* @prop block - When `true`, stretches to fill the full width of its container. Default: `false`.
|
|
4141
|
+
*
|
|
4142
|
+
* @example
|
|
4143
|
+
* ```tsx
|
|
4144
|
+
* <Input type="email" placeholder="you@example.com" />
|
|
4145
|
+
* ```
|
|
4146
|
+
*/
|
|
2807
4147
|
declare const Input: React.ForwardRefExoticComponent<Omit<InputProps, "ref"> & React.RefAttributes<HTMLInputElement>>;
|
|
4148
|
+
/** Props for {@link Input} — `<input>` props plus the `inputVariants` `block` option. */
|
|
2808
4149
|
interface InputProps extends React.ComponentProps<'input'>, VariantProps<typeof inputVariants> {}
|
|
2809
4150
|
declare namespace Input {
|
|
2810
4151
|
type Props = InputProps;
|
|
2811
4152
|
}
|
|
2812
4153
|
//#endregion
|
|
2813
4154
|
//#region src/components/input-group.d.ts
|
|
4155
|
+
/**
|
|
4156
|
+
* Bordered flex-row container that groups an input with leading/trailing addons
|
|
4157
|
+
* (icons, buttons, text). Renders a `<div role="group">` and owns the shared
|
|
4158
|
+
* border, height, hover/focus ring, disabled fade, and error halo; place an
|
|
4159
|
+
* `InputGroupInput`/`InputGroupTextarea` control plus `InputGroupAddon`,
|
|
4160
|
+
* `InputGroupButton`, or `InputGroupText` children inside it.
|
|
4161
|
+
*
|
|
4162
|
+
* @example
|
|
4163
|
+
* ```tsx
|
|
4164
|
+
* <InputGroup>
|
|
4165
|
+
* <InputGroupAddon>
|
|
4166
|
+
* <SearchIcon />
|
|
4167
|
+
* </InputGroupAddon>
|
|
4168
|
+
* <InputGroupInput placeholder="Search…" />
|
|
4169
|
+
* </InputGroup>
|
|
4170
|
+
* ```
|
|
4171
|
+
*/
|
|
2814
4172
|
declare const InputGroup: React.ForwardRefExoticComponent<Omit<InputGroupProps, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
2815
4173
|
interface InputGroupProps extends React.ComponentProps<'div'> {}
|
|
2816
4174
|
declare namespace InputGroup {
|
|
@@ -2932,6 +4290,21 @@ declare namespace NumericInputDecrement {
|
|
|
2932
4290
|
}
|
|
2933
4291
|
//#endregion
|
|
2934
4292
|
//#region src/components/input-otp.d.ts
|
|
4293
|
+
/**
|
|
4294
|
+
* Root one-time-password / verification-code input, built on the `input-otp`
|
|
4295
|
+
* `OTPInput`. Renders a container `<div>` wrapping a hidden `<input>`; the
|
|
4296
|
+
* visible cells are composed from `InputOTPGroup` and `InputOTPSlot` children.
|
|
4297
|
+
* `className` styles the input, `containerClassName` styles the wrapper.
|
|
4298
|
+
*
|
|
4299
|
+
* @example
|
|
4300
|
+
* ```tsx
|
|
4301
|
+
* <InputOTP maxLength={6} render={({ slots }) => (
|
|
4302
|
+
* <InputOTPGroup>
|
|
4303
|
+
* {slots.map((_, i) => <InputOTPSlot key={i} index={i} />)}
|
|
4304
|
+
* </InputOTPGroup>
|
|
4305
|
+
* )} />
|
|
4306
|
+
* ```
|
|
4307
|
+
*/
|
|
2935
4308
|
declare const InputOTP: React.ForwardRefExoticComponent<(Omit<Omit<React.InputHTMLAttributes<HTMLInputElement>, "onChange" | "value" | "maxLength" | "textAlign" | "onComplete" | "pushPasswordManagerStrategy" | "pasteTransformer" | "containerClassName" | "noScriptCSSFallback"> & {
|
|
2936
4309
|
value?: string;
|
|
2937
4310
|
onChange?: (newValue: string) => unknown;
|
|
@@ -2969,11 +4342,18 @@ type InputOTPProps = React.ComponentProps<typeof OTPInput> & {
|
|
|
2969
4342
|
declare namespace InputOTP {
|
|
2970
4343
|
type Props = InputOTPProps;
|
|
2971
4344
|
}
|
|
4345
|
+
/**
|
|
4346
|
+
* Groups a run of `InputOTPSlot` cells. Renders a flex `<div>` container.
|
|
4347
|
+
*/
|
|
2972
4348
|
declare const InputOTPGroup: React.ForwardRefExoticComponent<Omit<InputOTPGroupProps, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
2973
4349
|
interface InputOTPGroupProps extends React.ComponentProps<'div'> {}
|
|
2974
4350
|
declare namespace InputOTPGroup {
|
|
2975
4351
|
type Props = InputOTPGroupProps;
|
|
2976
4352
|
}
|
|
4353
|
+
/**
|
|
4354
|
+
* A single character cell. Renders a `<div>` that reads its character, active
|
|
4355
|
+
* state, and fake-caret from the `OTPInputContext` at the given `index`.
|
|
4356
|
+
*/
|
|
2977
4357
|
declare const InputOTPSlot: React.ForwardRefExoticComponent<Omit<InputOTPSlotProps, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
2978
4358
|
interface InputOTPSlotProps extends React.ComponentProps<'div'> {
|
|
2979
4359
|
index: number;
|
|
@@ -2981,6 +4361,10 @@ interface InputOTPSlotProps extends React.ComponentProps<'div'> {
|
|
|
2981
4361
|
declare namespace InputOTPSlot {
|
|
2982
4362
|
type Props = InputOTPSlotProps;
|
|
2983
4363
|
}
|
|
4364
|
+
/**
|
|
4365
|
+
* Visual divider placed between OTP groups. Renders a `<div role="separator">`
|
|
4366
|
+
* containing a minus icon.
|
|
4367
|
+
*/
|
|
2984
4368
|
declare const InputOTPSeparator: React.ForwardRefExoticComponent<Omit<InputOTPSeparatorProps, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
2985
4369
|
interface InputOTPSeparatorProps extends React.ComponentProps<'div'> {}
|
|
2986
4370
|
declare namespace InputOTPSeparator {
|
|
@@ -2989,21 +4373,49 @@ declare namespace InputOTPSeparator {
|
|
|
2989
4373
|
//#endregion
|
|
2990
4374
|
//#region src/components/item.d.ts
|
|
2991
4375
|
interface ItemGroupProps extends React.ComponentProps<'div'> {
|
|
4376
|
+
/**
|
|
4377
|
+
* Collapse the items into a single bordered stack with merged (adjoining) borders instead of
|
|
4378
|
+
* spacing them apart.
|
|
4379
|
+
* @default false
|
|
4380
|
+
*/
|
|
2992
4381
|
stackedItems?: boolean;
|
|
2993
4382
|
}
|
|
4383
|
+
/**
|
|
4384
|
+
* Container listing multiple `Item`s, rendering a `<div role="list">`. Set `stackedItems` to
|
|
4385
|
+
* collapse the items into a single bordered stack; otherwise items are spaced apart.
|
|
4386
|
+
*/
|
|
2994
4387
|
declare const ItemGroup: React.ForwardRefExoticComponent<Omit<ItemGroupProps, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
2995
4388
|
declare namespace ItemGroup {
|
|
2996
4389
|
type Props = ItemGroupProps;
|
|
2997
4390
|
}
|
|
4391
|
+
/**
|
|
4392
|
+
* Horizontal divider between items, wrapping the `Separator` component with vertical margin.
|
|
4393
|
+
* Renders a `<div role="separator">`.
|
|
4394
|
+
*/
|
|
2998
4395
|
declare const ItemSeparator: React.ForwardRefExoticComponent<Omit<ItemSeparatorProps, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
2999
4396
|
interface ItemSeparatorProps extends React.ComponentProps<typeof Separator> {}
|
|
3000
4397
|
declare namespace ItemSeparator {
|
|
3001
4398
|
type Props = ItemSeparatorProps;
|
|
3002
4399
|
}
|
|
3003
4400
|
declare const itemVariants: (props?: ({
|
|
3004
|
-
variant?: "default" | "
|
|
4401
|
+
variant?: "default" | "outline" | "muted" | null | undefined;
|
|
3005
4402
|
size?: "default" | "sm" | "xs" | null | undefined;
|
|
3006
4403
|
} & class_variance_authority_types7.ClassProp) | undefined) => string;
|
|
4404
|
+
/**
|
|
4405
|
+
* Flexible list-item container laying out media, content, and actions on one row. Renders a `<div>`
|
|
4406
|
+
* by default (swap the element via `render`). The `variant` (`'default' | 'outline' | 'muted'`) and
|
|
4407
|
+
* `size` (`'default' | 'sm' | 'xs'`) both default to `'default'`.
|
|
4408
|
+
*
|
|
4409
|
+
* @example
|
|
4410
|
+
* ```tsx
|
|
4411
|
+
* <Item>
|
|
4412
|
+
* <ItemContent>
|
|
4413
|
+
* <ItemTitle>Title</ItemTitle>
|
|
4414
|
+
* <ItemDescription>Supporting text</ItemDescription>
|
|
4415
|
+
* </ItemContent>
|
|
4416
|
+
* </Item>
|
|
4417
|
+
* ```
|
|
4418
|
+
*/
|
|
3007
4419
|
declare const Item: React.ForwardRefExoticComponent<Omit<ItemProps, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
3008
4420
|
interface ItemProps extends useRender.ComponentProps<'div'>, VariantProps<typeof itemVariants> {}
|
|
3009
4421
|
declare namespace Item {
|
|
@@ -3012,36 +4424,58 @@ declare namespace Item {
|
|
|
3012
4424
|
declare const itemMediaVariants: (props?: ({
|
|
3013
4425
|
variant?: "image" | "default" | "icon" | null | undefined;
|
|
3014
4426
|
} & class_variance_authority_types7.ClassProp) | undefined) => string;
|
|
4427
|
+
/**
|
|
4428
|
+
* Leading media slot of an `Item` (icon, image, or avatar). Renders a `<div>`. The `variant`
|
|
4429
|
+
* (`'default' | 'icon' | 'image'`) tunes sizing and styling and defaults to `'default'`.
|
|
4430
|
+
*/
|
|
3015
4431
|
declare const ItemMedia: React.ForwardRefExoticComponent<Omit<ItemMediaProps, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
3016
4432
|
interface ItemMediaProps extends React.ComponentProps<'div'>, VariantProps<typeof itemMediaVariants> {}
|
|
3017
4433
|
declare namespace ItemMedia {
|
|
3018
4434
|
type Props = ItemMediaProps;
|
|
3019
4435
|
}
|
|
4436
|
+
/**
|
|
4437
|
+
* Main content column of an `Item`, stacking its title and description. Renders a `<div>`.
|
|
4438
|
+
*/
|
|
3020
4439
|
declare const ItemContent: React.ForwardRefExoticComponent<Omit<ItemContentProps, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
3021
4440
|
interface ItemContentProps extends React.ComponentProps<'div'> {}
|
|
3022
4441
|
declare namespace ItemContent {
|
|
3023
4442
|
type Props = ItemContentProps;
|
|
3024
4443
|
}
|
|
4444
|
+
/**
|
|
4445
|
+
* Primary title line of an `Item`. Renders a `<div>` in medium-weight text clamped to one line.
|
|
4446
|
+
*/
|
|
3025
4447
|
declare const ItemTitle: React.ForwardRefExoticComponent<Omit<ItemTitleProps, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
3026
4448
|
interface ItemTitleProps extends React.ComponentProps<'div'> {}
|
|
3027
4449
|
declare namespace ItemTitle {
|
|
3028
4450
|
type Props = ItemTitleProps;
|
|
3029
4451
|
}
|
|
4452
|
+
/**
|
|
4453
|
+
* Secondary supporting text of an `Item`. Renders a `<p>` in muted text clamped to two lines.
|
|
4454
|
+
*/
|
|
3030
4455
|
declare const ItemDescription: React.ForwardRefExoticComponent<Omit<ItemDescriptionProps, "ref"> & React.RefAttributes<HTMLParagraphElement>>;
|
|
3031
4456
|
interface ItemDescriptionProps extends React.ComponentProps<'p'> {}
|
|
3032
4457
|
declare namespace ItemDescription {
|
|
3033
4458
|
type Props = ItemDescriptionProps;
|
|
3034
4459
|
}
|
|
4460
|
+
/**
|
|
4461
|
+
* Trailing actions slot of an `Item` (buttons, menus). Renders a `<div>` laying children in a row.
|
|
4462
|
+
*/
|
|
3035
4463
|
declare const ItemActions: React.ForwardRefExoticComponent<Omit<ItemActionsProps, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
3036
4464
|
interface ItemActionsProps extends React.ComponentProps<'div'> {}
|
|
3037
4465
|
declare namespace ItemActions {
|
|
3038
4466
|
type Props = ItemActionsProps;
|
|
3039
4467
|
}
|
|
4468
|
+
/**
|
|
4469
|
+
* Full-width header row spanning the top of an `Item`. Renders a `<div>` with space-between layout.
|
|
4470
|
+
*/
|
|
3040
4471
|
declare const ItemHeader: React.ForwardRefExoticComponent<Omit<ItemHeaderProps, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
3041
4472
|
interface ItemHeaderProps extends React.ComponentProps<'div'> {}
|
|
3042
4473
|
declare namespace ItemHeader {
|
|
3043
4474
|
type Props = ItemHeaderProps;
|
|
3044
4475
|
}
|
|
4476
|
+
/**
|
|
4477
|
+
* Full-width footer row spanning the bottom of an `Item`. Renders a `<div>` with space-between layout.
|
|
4478
|
+
*/
|
|
3045
4479
|
declare const ItemFooter: React.ForwardRefExoticComponent<Omit<ItemFooterProps, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
3046
4480
|
interface ItemFooterProps extends React.ComponentProps<'div'> {}
|
|
3047
4481
|
declare namespace ItemFooter {
|
|
@@ -3076,6 +4510,20 @@ declare namespace Anchor {
|
|
|
3076
4510
|
}
|
|
3077
4511
|
//#endregion
|
|
3078
4512
|
//#region src/components/list.d.ts
|
|
4513
|
+
/**
|
|
4514
|
+
* Vertical list container. Renders a `<div>` with a `flex flex-col` layout that
|
|
4515
|
+
* stacks `ListRow` children.
|
|
4516
|
+
*
|
|
4517
|
+
* @example
|
|
4518
|
+
* ```tsx
|
|
4519
|
+
* <List>
|
|
4520
|
+
* <ListRow>
|
|
4521
|
+
* <ListCol>Icon</ListCol>
|
|
4522
|
+
* <ListCol grow>Label</ListCol>
|
|
4523
|
+
* </ListRow>
|
|
4524
|
+
* </List>
|
|
4525
|
+
* ```
|
|
4526
|
+
*/
|
|
3079
4527
|
declare const List: React.ForwardRefExoticComponent<ListProps & React.RefAttributes<HTMLDivElement>>;
|
|
3080
4528
|
interface ListProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
3081
4529
|
children: React.ReactNode;
|
|
@@ -3083,6 +4531,10 @@ interface ListProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
|
3083
4531
|
declare namespace List {
|
|
3084
4532
|
type Props = ListProps;
|
|
3085
4533
|
}
|
|
4534
|
+
/**
|
|
4535
|
+
* A single row within a `List`. Renders a `<div>` using a two-column CSS grid
|
|
4536
|
+
* (`minmax(0,auto) 1fr`) to lay out its `ListCol` children.
|
|
4537
|
+
*/
|
|
3086
4538
|
declare const ListRow: React.ForwardRefExoticComponent<ListRowProps & React.RefAttributes<HTMLDivElement>>;
|
|
3087
4539
|
interface ListRowProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
3088
4540
|
children: React.ReactNode;
|
|
@@ -3090,6 +4542,10 @@ interface ListRowProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
|
3090
4542
|
declare namespace ListRow {
|
|
3091
4543
|
type Props = ListRowProps;
|
|
3092
4544
|
}
|
|
4545
|
+
/**
|
|
4546
|
+
* A cell within a `ListRow`. Renders a `<div>`; by default it is pinned to grid
|
|
4547
|
+
* row 1, unless `wrap` is set, allowing it to flow onto a new row.
|
|
4548
|
+
*/
|
|
3093
4549
|
declare const ListCol: React.ForwardRefExoticComponent<ListColProps & React.RefAttributes<HTMLDivElement>>;
|
|
3094
4550
|
interface ListColProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
3095
4551
|
grow?: boolean;
|
|
@@ -3101,42 +4557,99 @@ declare namespace ListCol {
|
|
|
3101
4557
|
}
|
|
3102
4558
|
//#endregion
|
|
3103
4559
|
//#region src/components/pagination.d.ts
|
|
4560
|
+
/**
|
|
4561
|
+
* Root navigation container for a set of pagination controls.
|
|
4562
|
+
* Renders a `<nav role="navigation">` with a localized `aria-label`.
|
|
4563
|
+
*
|
|
4564
|
+
* @example
|
|
4565
|
+
* ```tsx
|
|
4566
|
+
* <Pagination>
|
|
4567
|
+
* <PaginationContent>
|
|
4568
|
+
* <PaginationItem>
|
|
4569
|
+
* <PaginationPrevious href="#" />
|
|
4570
|
+
* </PaginationItem>
|
|
4571
|
+
* <PaginationItem>
|
|
4572
|
+
* <PaginationLink href="#" isActive>1</PaginationLink>
|
|
4573
|
+
* </PaginationItem>
|
|
4574
|
+
* <PaginationItem>
|
|
4575
|
+
* <PaginationEllipsis />
|
|
4576
|
+
* </PaginationItem>
|
|
4577
|
+
* <PaginationItem>
|
|
4578
|
+
* <PaginationNext href="#" />
|
|
4579
|
+
* </PaginationItem>
|
|
4580
|
+
* </PaginationContent>
|
|
4581
|
+
* </Pagination>
|
|
4582
|
+
* ```
|
|
4583
|
+
*/
|
|
3104
4584
|
declare const Pagination: React.ForwardRefExoticComponent<Omit<PaginationProps, "ref"> & React.RefAttributes<HTMLElement>>;
|
|
3105
4585
|
interface PaginationProps extends React.ComponentProps<'nav'> {}
|
|
3106
4586
|
declare namespace Pagination {
|
|
3107
4587
|
type Props = PaginationProps;
|
|
3108
4588
|
}
|
|
4589
|
+
/**
|
|
4590
|
+
* Ordered list wrapper for pagination items. Renders a `<ul>`.
|
|
4591
|
+
*/
|
|
3109
4592
|
declare const PaginationContent: React.ForwardRefExoticComponent<Omit<PaginationContentProps, "ref"> & React.RefAttributes<HTMLUListElement>>;
|
|
3110
4593
|
interface PaginationContentProps extends React.ComponentProps<'ul'> {}
|
|
3111
4594
|
declare namespace PaginationContent {
|
|
3112
4595
|
type Props = PaginationContentProps;
|
|
3113
4596
|
}
|
|
4597
|
+
/**
|
|
4598
|
+
* Single list item holding one pagination control. Renders a `<li>`.
|
|
4599
|
+
*/
|
|
3114
4600
|
declare const PaginationItem: React.ForwardRefExoticComponent<Omit<PaginationItemProps, "ref"> & React.RefAttributes<HTMLLIElement>>;
|
|
3115
4601
|
interface PaginationItemProps extends React.ComponentProps<'li'> {}
|
|
3116
4602
|
declare namespace PaginationItem {
|
|
3117
4603
|
type Props = PaginationItemProps;
|
|
3118
4604
|
}
|
|
4605
|
+
/**
|
|
4606
|
+
* Clickable page link styled as a button. Renders an `<a>` via `Button` (outline
|
|
4607
|
+
* when active, ghost otherwise) and sets `aria-current="page"` while active.
|
|
4608
|
+
*/
|
|
3119
4609
|
declare const PaginationLink: React.ForwardRefExoticComponent<Omit<PaginationLinkProps, "ref"> & React.RefAttributes<HTMLButtonElement>>;
|
|
3120
4610
|
interface PaginationLinkProps extends Pick<React.ComponentProps<typeof Button>, 'size'>, React.ComponentProps<'a'> {
|
|
4611
|
+
/**
|
|
4612
|
+
* Marks this link as the current page: applies the outline variant and sets
|
|
4613
|
+
* `aria-current="page"`.
|
|
4614
|
+
* @default false
|
|
4615
|
+
*/
|
|
3121
4616
|
isActive?: boolean;
|
|
3122
4617
|
}
|
|
3123
4618
|
declare namespace PaginationLink {
|
|
3124
4619
|
type Props = PaginationLinkProps;
|
|
3125
4620
|
}
|
|
4621
|
+
/**
|
|
4622
|
+
* "Previous page" control. Renders a `PaginationLink` (`<a>`) with a leading
|
|
4623
|
+
* chevron and a label hidden below the `sm` breakpoint.
|
|
4624
|
+
*/
|
|
3126
4625
|
declare const PaginationPrevious: React.ForwardRefExoticComponent<Omit<PaginationPreviousProps, "ref"> & React.RefAttributes<HTMLButtonElement>>;
|
|
3127
4626
|
interface PaginationPreviousProps extends React.ComponentProps<typeof PaginationLink> {
|
|
4627
|
+
/**
|
|
4628
|
+
* Visible label text. Falls back to the localized "Previous" string when omitted.
|
|
4629
|
+
*/
|
|
3128
4630
|
text?: string;
|
|
3129
4631
|
}
|
|
3130
4632
|
declare namespace PaginationPrevious {
|
|
3131
4633
|
type Props = PaginationPreviousProps;
|
|
3132
4634
|
}
|
|
4635
|
+
/**
|
|
4636
|
+
* "Next page" control. Renders a `PaginationLink` (`<a>`) with a trailing
|
|
4637
|
+
* chevron and a label hidden below the `sm` breakpoint.
|
|
4638
|
+
*/
|
|
3133
4639
|
declare const PaginationNext: React.ForwardRefExoticComponent<Omit<PaginationNextProps, "ref"> & React.RefAttributes<HTMLButtonElement>>;
|
|
3134
4640
|
interface PaginationNextProps extends React.ComponentProps<typeof PaginationLink> {
|
|
4641
|
+
/**
|
|
4642
|
+
* Visible label text. Falls back to the localized "Next" string when omitted.
|
|
4643
|
+
*/
|
|
3135
4644
|
text?: string;
|
|
3136
4645
|
}
|
|
3137
4646
|
declare namespace PaginationNext {
|
|
3138
4647
|
type Props = PaginationNextProps;
|
|
3139
4648
|
}
|
|
4649
|
+
/**
|
|
4650
|
+
* Non-interactive gap indicator for omitted page ranges. Renders an
|
|
4651
|
+
* `aria-hidden` `<span>` with an ellipsis icon and screen-reader-only text.
|
|
4652
|
+
*/
|
|
3140
4653
|
declare const PaginationEllipsis: React.ForwardRefExoticComponent<Omit<PaginationEllipsisProps, "ref"> & React.RefAttributes<HTMLSpanElement>>;
|
|
3141
4654
|
interface PaginationEllipsisProps extends React.ComponentProps<'span'> {}
|
|
3142
4655
|
declare namespace PaginationEllipsis {
|
|
@@ -3144,26 +4657,54 @@ declare namespace PaginationEllipsis {
|
|
|
3144
4657
|
}
|
|
3145
4658
|
//#endregion
|
|
3146
4659
|
//#region src/components/progress.d.ts
|
|
4660
|
+
/**
|
|
4661
|
+
* Progress bar root. Renders the Base UI `Progress.Root` `<div>` and wraps its
|
|
4662
|
+
* children, then appends a default `ProgressTrack`/`ProgressIndicator` pair.
|
|
4663
|
+
*
|
|
4664
|
+
* @example
|
|
4665
|
+
* ```tsx
|
|
4666
|
+
* <Progress value={60}>
|
|
4667
|
+
* <ProgressLabel>Uploading</ProgressLabel>
|
|
4668
|
+
* <ProgressValue />
|
|
4669
|
+
* </Progress>
|
|
4670
|
+
* ```
|
|
4671
|
+
*/
|
|
3147
4672
|
declare const Progress: React.ForwardRefExoticComponent<Omit<ProgressProps, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
3148
4673
|
interface ProgressProps extends Progress$1.Root.Props {}
|
|
3149
4674
|
declare namespace Progress {
|
|
3150
4675
|
type Props = ProgressProps;
|
|
3151
4676
|
}
|
|
4677
|
+
/**
|
|
4678
|
+
* Track (rail) the indicator fills against. Renders the Base UI `Progress.Track`
|
|
4679
|
+
* as a rounded muted `<div>`; place a `ProgressIndicator` inside it.
|
|
4680
|
+
*/
|
|
3152
4681
|
declare const ProgressTrack: React.ForwardRefExoticComponent<Omit<ProgressTrackProps, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
3153
4682
|
interface ProgressTrackProps extends Progress$1.Track.Props {}
|
|
3154
4683
|
declare namespace ProgressTrack {
|
|
3155
4684
|
type Props = ProgressTrackProps;
|
|
3156
4685
|
}
|
|
4686
|
+
/**
|
|
4687
|
+
* Filled portion of the track, sized to the current value. Renders the Base UI
|
|
4688
|
+
* `Progress.Indicator` as a primary-colored `<div>`.
|
|
4689
|
+
*/
|
|
3157
4690
|
declare const ProgressIndicator: React.ForwardRefExoticComponent<Omit<ProgressIndicatorProps, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
3158
4691
|
interface ProgressIndicatorProps extends Progress$1.Indicator.Props {}
|
|
3159
4692
|
declare namespace ProgressIndicator {
|
|
3160
4693
|
type Props = ProgressIndicatorProps;
|
|
3161
4694
|
}
|
|
4695
|
+
/**
|
|
4696
|
+
* Accessible text label for the progress bar. Renders the Base UI
|
|
4697
|
+
* `Progress.Label` as a small medium-weight `<span>`.
|
|
4698
|
+
*/
|
|
3162
4699
|
declare const ProgressLabel: React.ForwardRefExoticComponent<Omit<ProgressLabelProps, "ref"> & React.RefAttributes<HTMLSpanElement>>;
|
|
3163
4700
|
interface ProgressLabelProps extends Progress$1.Label.Props {}
|
|
3164
4701
|
declare namespace ProgressLabel {
|
|
3165
4702
|
type Props = ProgressLabelProps;
|
|
3166
4703
|
}
|
|
4704
|
+
/**
|
|
4705
|
+
* Formatted numeric readout (e.g. the percentage). Renders the Base UI
|
|
4706
|
+
* `Progress.Value` as a muted, right-aligned tabular `<span>`.
|
|
4707
|
+
*/
|
|
3167
4708
|
declare const ProgressValue: React.ForwardRefExoticComponent<Omit<ProgressValueProps, "ref"> & React.RefAttributes<HTMLSpanElement>>;
|
|
3168
4709
|
interface ProgressValueProps extends Progress$1.Value.Props {}
|
|
3169
4710
|
declare namespace ProgressValue {
|
|
@@ -3171,11 +4712,27 @@ declare namespace ProgressValue {
|
|
|
3171
4712
|
}
|
|
3172
4713
|
//#endregion
|
|
3173
4714
|
//#region src/components/radio-group.d.ts
|
|
3174
|
-
|
|
3175
|
-
|
|
3176
|
-
|
|
3177
|
-
|
|
3178
|
-
|
|
4715
|
+
/**
|
|
4716
|
+
* Root container grouping mutually exclusive radio options, wrapping Base UI's `RadioGroup`.
|
|
4717
|
+
* Renders a `<div role="radiogroup">` that lays out its `RadioGroupItem`s in a vertical grid.
|
|
4718
|
+
*
|
|
4719
|
+
* @example
|
|
4720
|
+
* ```tsx
|
|
4721
|
+
* <RadioGroup defaultValue="a">
|
|
4722
|
+
* <RadioGroupItem value="a" />
|
|
4723
|
+
* <RadioGroupItem value="b" />
|
|
4724
|
+
* </RadioGroup>
|
|
4725
|
+
* ```
|
|
4726
|
+
*/
|
|
4727
|
+
declare const RadioGroup: React.ForwardRefExoticComponent<Omit<RadioGroupProps, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
4728
|
+
interface RadioGroupProps extends RadioGroup$1.Props {}
|
|
4729
|
+
declare namespace RadioGroup {
|
|
4730
|
+
type Props = RadioGroupProps;
|
|
4731
|
+
}
|
|
4732
|
+
/**
|
|
4733
|
+
* A single selectable option within a `RadioGroup`, wrapping Base UI's `Radio.Root`.
|
|
4734
|
+
* Renders a `<button role="radio">` with a filled dot indicator shown when selected.
|
|
4735
|
+
*/
|
|
3179
4736
|
declare const RadioGroupItem: React.ForwardRefExoticComponent<Omit<RadioGroupItemProps, "ref"> & React.RefAttributes<HTMLSpanElement>>;
|
|
3180
4737
|
interface RadioGroupItemProps extends Radio.Root.Props {}
|
|
3181
4738
|
declare namespace RadioGroupItem {
|
|
@@ -3183,14 +4740,38 @@ declare namespace RadioGroupItem {
|
|
|
3183
4740
|
}
|
|
3184
4741
|
//#endregion
|
|
3185
4742
|
//#region src/components/scroll-area.d.ts
|
|
4743
|
+
/**
|
|
4744
|
+
* Custom-scrollbar container. Renders the Base UI `ScrollArea.Root` `<div>`
|
|
4745
|
+
* (with `min-h-0` so it can shrink in flex layouts) wrapping a scrollable
|
|
4746
|
+
* viewport, vertical/horizontal scrollbars, and a corner.
|
|
4747
|
+
*
|
|
4748
|
+
* @example
|
|
4749
|
+
* ```tsx
|
|
4750
|
+
* <ScrollArea className="h-72">
|
|
4751
|
+
* <div>Long content…</div>
|
|
4752
|
+
* </ScrollArea>
|
|
4753
|
+
* ```
|
|
4754
|
+
*/
|
|
3186
4755
|
declare const ScrollArea: React.ForwardRefExoticComponent<Omit<ScrollAreaProps, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
3187
4756
|
interface ScrollAreaProps extends ScrollAreaPrimitive.Root.Props {
|
|
4757
|
+
/**
|
|
4758
|
+
* Fade out content near the edges where it overflows, via a mask.
|
|
4759
|
+
* @default false
|
|
4760
|
+
*/
|
|
3188
4761
|
scrollFade?: boolean;
|
|
4762
|
+
/**
|
|
4763
|
+
* Reserve inline padding for the scrollbar so content does not sit under it.
|
|
4764
|
+
* @default false
|
|
4765
|
+
*/
|
|
3189
4766
|
scrollbarGutter?: boolean;
|
|
3190
4767
|
}
|
|
3191
4768
|
declare namespace ScrollArea {
|
|
3192
4769
|
type Props = ScrollAreaProps;
|
|
3193
4770
|
}
|
|
4771
|
+
/**
|
|
4772
|
+
* Draggable scrollbar for one axis, shown on hover/scroll. Renders the Base UI
|
|
4773
|
+
* `ScrollArea.Scrollbar` `<div>` containing a rounded `Thumb`.
|
|
4774
|
+
*/
|
|
3194
4775
|
declare const ScrollBar: React.ForwardRefExoticComponent<Omit<ScrollBarProps, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
3195
4776
|
interface ScrollBarProps extends ScrollAreaPrimitive.Scrollbar.Props {}
|
|
3196
4777
|
declare namespace ScrollBar {
|
|
@@ -3198,50 +4779,107 @@ declare namespace ScrollBar {
|
|
|
3198
4779
|
}
|
|
3199
4780
|
//#endregion
|
|
3200
4781
|
//#region src/components/select.d.ts
|
|
4782
|
+
/** `class-variance-authority` variants for the select trigger; exposes the `size` variant. */
|
|
3201
4783
|
declare const selectTriggerVariants: (props?: ({
|
|
3202
4784
|
size?: "default" | "sm" | null | undefined;
|
|
3203
4785
|
} & class_variance_authority_types7.ClassProp) | undefined) => string;
|
|
4786
|
+
/**
|
|
4787
|
+
* Root of the select, aliasing Base UI's `Select.Root`. Manages open state and the selected value,
|
|
4788
|
+
* and renders no DOM element — place `SelectTrigger` and `SelectContent` inside it.
|
|
4789
|
+
*
|
|
4790
|
+
* @example
|
|
4791
|
+
* ```tsx
|
|
4792
|
+
* <Select>
|
|
4793
|
+
* <SelectTrigger>
|
|
4794
|
+
* <SelectValue placeholder="Pick one" />
|
|
4795
|
+
* </SelectTrigger>
|
|
4796
|
+
* <SelectContent>
|
|
4797
|
+
* <SelectItem value="a">Option A</SelectItem>
|
|
4798
|
+
* <SelectItem value="b">Option B</SelectItem>
|
|
4799
|
+
* </SelectContent>
|
|
4800
|
+
* </Select>
|
|
4801
|
+
* ```
|
|
4802
|
+
*/
|
|
3204
4803
|
declare const Select: typeof Select$1.Root;
|
|
4804
|
+
/**
|
|
4805
|
+
* Groups related items under a shared `SelectLabel`, wrapping Base UI's `Select.Group`. Renders a
|
|
4806
|
+
* `<div role="group">`.
|
|
4807
|
+
*/
|
|
3205
4808
|
declare const SelectGroup: React.ForwardRefExoticComponent<Omit<SelectGroupProps, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
3206
4809
|
interface SelectGroupProps extends Select$1.Group.Props {}
|
|
3207
4810
|
declare namespace SelectGroup {
|
|
3208
4811
|
type Props = SelectGroupProps;
|
|
3209
4812
|
}
|
|
4813
|
+
/**
|
|
4814
|
+
* Displays the currently selected value (or a `placeholder`) inside `SelectTrigger`, wrapping Base
|
|
4815
|
+
* UI's `Select.Value`. Renders no element of its own — it forwards its rendered content.
|
|
4816
|
+
*/
|
|
3210
4817
|
declare function SelectValue(componentProps: SelectValue.Props): React.JSX.Element;
|
|
3211
4818
|
interface SelectValueProps extends Select$1.Value.Props {}
|
|
3212
4819
|
declare namespace SelectValue {
|
|
3213
4820
|
type Props = SelectValueProps;
|
|
3214
4821
|
}
|
|
4822
|
+
/**
|
|
4823
|
+
* Button that opens the select popup and shows the current value, wrapping Base UI's
|
|
4824
|
+
* `Select.Trigger`. Renders a `<button>` with a trailing chevron icon. The `size` variant
|
|
4825
|
+
* (`'default' | 'sm'`) controls height and padding and defaults to `'default'`.
|
|
4826
|
+
*/
|
|
3215
4827
|
declare const SelectTrigger: React.ForwardRefExoticComponent<Omit<SelectTriggerProps, "ref"> & React.RefAttributes<HTMLButtonElement>>;
|
|
3216
4828
|
interface SelectTriggerProps extends Select$1.Trigger.Props, VariantProps<typeof selectTriggerVariants> {}
|
|
3217
4829
|
declare namespace SelectTrigger {
|
|
3218
4830
|
type Props = SelectTriggerProps;
|
|
3219
4831
|
}
|
|
4832
|
+
/**
|
|
4833
|
+
* Popup panel listing the select items, wrapping Base UI's `Select.Popup` (with its own `Portal`
|
|
4834
|
+
* and `Positioner`). Renders a floating `<div>` and includes scroll up/down buttons around the
|
|
4835
|
+
* item list. Positioner-derived props default to: `side` `'bottom'`, `sideOffset` `4`, `align`
|
|
4836
|
+
* `'start'`, `alignOffset` `0`, `alignItemWithTrigger` `false`.
|
|
4837
|
+
*/
|
|
3220
4838
|
declare const SelectContent: React.ForwardRefExoticComponent<Omit<SelectContentProps, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
3221
4839
|
interface SelectContentProps extends Select$1.Popup.Props, Pick<Select$1.Positioner.Props, 'align' | 'alignOffset' | 'side' | 'sideOffset' | 'alignItemWithTrigger'> {}
|
|
3222
4840
|
declare namespace SelectContent {
|
|
3223
4841
|
type Props = SelectContentProps;
|
|
3224
4842
|
}
|
|
4843
|
+
/**
|
|
4844
|
+
* Non-interactive heading for a `SelectGroup`, wrapping Base UI's `Select.GroupLabel`. Renders a
|
|
4845
|
+
* `<div>` in muted, small type.
|
|
4846
|
+
*/
|
|
3225
4847
|
declare const SelectLabel: React.ForwardRefExoticComponent<Omit<SelectLabelProps, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
3226
4848
|
interface SelectLabelProps extends Select$1.GroupLabel.Props {}
|
|
3227
4849
|
declare namespace SelectLabel {
|
|
3228
4850
|
type Props = SelectLabelProps;
|
|
3229
4851
|
}
|
|
4852
|
+
/**
|
|
4853
|
+
* A selectable option inside `SelectContent`, wrapping Base UI's `Select.Item`. Renders a
|
|
4854
|
+
* `<div role="option">` holding the item text plus a trailing check indicator shown when selected.
|
|
4855
|
+
*/
|
|
3230
4856
|
declare const SelectItem: React.ForwardRefExoticComponent<Omit<SelectItemProps, "ref"> & React.RefAttributes<HTMLElement>>;
|
|
3231
4857
|
interface SelectItemProps extends Select$1.Item.Props {}
|
|
3232
4858
|
declare namespace SelectItem {
|
|
3233
4859
|
type Props = SelectItemProps;
|
|
3234
4860
|
}
|
|
4861
|
+
/**
|
|
4862
|
+
* Visual divider between select items or groups, wrapping Base UI's `Select.Separator`. Renders a
|
|
4863
|
+
* `<div>` styled as a thin horizontal rule.
|
|
4864
|
+
*/
|
|
3235
4865
|
declare const SelectSeparator: React.ForwardRefExoticComponent<Omit<SelectSeparatorProps, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
3236
4866
|
interface SelectSeparatorProps extends Select$1.Separator.Props {}
|
|
3237
4867
|
declare namespace SelectSeparator {
|
|
3238
4868
|
type Props = SelectSeparatorProps;
|
|
3239
4869
|
}
|
|
4870
|
+
/**
|
|
4871
|
+
* Button at the top of `SelectContent` that scrolls the list upward when it overflows, wrapping
|
|
4872
|
+
* Base UI's `Select.ScrollUpArrow`. Renders a `<div>` containing an up-chevron icon.
|
|
4873
|
+
*/
|
|
3240
4874
|
declare const SelectScrollUpButton: React.ForwardRefExoticComponent<Omit<SelectScrollUpButtonProps, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
3241
4875
|
interface SelectScrollUpButtonProps extends React.ComponentProps<typeof Select$1.ScrollUpArrow> {}
|
|
3242
4876
|
declare namespace SelectScrollUpButton {
|
|
3243
4877
|
type Props = SelectScrollUpButtonProps;
|
|
3244
4878
|
}
|
|
4879
|
+
/**
|
|
4880
|
+
* Button at the bottom of `SelectContent` that scrolls the list downward when it overflows, wrapping
|
|
4881
|
+
* Base UI's `Select.ScrollDownArrow`. Renders a `<div>` containing a down-chevron icon.
|
|
4882
|
+
*/
|
|
3245
4883
|
declare const SelectScrollDownButton: React.ForwardRefExoticComponent<Omit<SelectScrollDownButtonProps, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
3246
4884
|
interface SelectScrollDownButtonProps extends React.ComponentProps<typeof Select$1.ScrollDownArrow> {}
|
|
3247
4885
|
declare namespace SelectScrollDownButton {
|
|
@@ -3249,16 +4887,41 @@ declare namespace SelectScrollDownButton {
|
|
|
3249
4887
|
}
|
|
3250
4888
|
//#endregion
|
|
3251
4889
|
//#region src/components/sheet.d.ts
|
|
4890
|
+
/**
|
|
4891
|
+
* Root container for a sheet (a Dialog that slides in from a screen edge),
|
|
4892
|
+
* wrapping Base UI's `Dialog.Root`. Manages open/close state and renders no DOM
|
|
4893
|
+
* element — place `SheetTrigger` and `SheetContent` inside it.
|
|
4894
|
+
*
|
|
4895
|
+
* @example
|
|
4896
|
+
* ```tsx
|
|
4897
|
+
* <Sheet>
|
|
4898
|
+
* <SheetTrigger render={<Button />}>Open</SheetTrigger>
|
|
4899
|
+
* <SheetContent side="right">
|
|
4900
|
+
* <SheetHeader>
|
|
4901
|
+
* <SheetTitle>Title</SheetTitle>
|
|
4902
|
+
* </SheetHeader>
|
|
4903
|
+
* </SheetContent>
|
|
4904
|
+
* </Sheet>
|
|
4905
|
+
* ```
|
|
4906
|
+
*/
|
|
3252
4907
|
declare function Sheet(componentProps: Sheet.Props): React.JSX.Element;
|
|
3253
4908
|
interface SheetProps extends Dialog$1.Root.Props {}
|
|
3254
4909
|
declare namespace Sheet {
|
|
3255
4910
|
type Props = SheetProps;
|
|
3256
4911
|
}
|
|
4912
|
+
/**
|
|
4913
|
+
* The element that opens the sheet, wrapping `Dialog.Trigger`.
|
|
4914
|
+
* Renders a `<button>` by default; use `render` to swap the element.
|
|
4915
|
+
*/
|
|
3257
4916
|
declare const SheetTrigger: React.ForwardRefExoticComponent<Omit<SheetTriggerProps, "ref"> & React.RefAttributes<HTMLButtonElement>>;
|
|
3258
4917
|
interface SheetTriggerProps extends Dialog$1.Trigger.Props {}
|
|
3259
4918
|
declare namespace SheetTrigger {
|
|
3260
4919
|
type Props = SheetTriggerProps;
|
|
3261
4920
|
}
|
|
4921
|
+
/**
|
|
4922
|
+
* An element that closes the sheet when activated, wrapping `Dialog.Close`.
|
|
4923
|
+
* Renders a `<button>` by default; use `render` to swap the element.
|
|
4924
|
+
*/
|
|
3262
4925
|
declare const SheetClose: React.ForwardRefExoticComponent<Omit<SheetCloseProps, "ref"> & React.RefAttributes<HTMLButtonElement>>;
|
|
3263
4926
|
interface SheetCloseProps extends Dialog$1.Close.Props {}
|
|
3264
4927
|
declare namespace SheetClose {
|
|
@@ -3272,29 +4935,58 @@ interface SheetOverlayProps extends Dialog$1.Backdrop.Props {}
|
|
|
3272
4935
|
declare namespace SheetOverlay {
|
|
3273
4936
|
type Props = SheetOverlayProps;
|
|
3274
4937
|
}
|
|
4938
|
+
/**
|
|
4939
|
+
* The sliding panel shown when the sheet is open. Composes
|
|
4940
|
+
* `Dialog.Portal → Backdrop → Dialog.Popup` into a single part and renders a
|
|
4941
|
+
* `<div>` popup fixed to the chosen screen edge, optionally with a close button.
|
|
4942
|
+
*/
|
|
3275
4943
|
declare const SheetContent: React.ForwardRefExoticComponent<Omit<SheetContentProps, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
3276
4944
|
interface SheetContentProps extends Dialog$1.Popup.Props, Pick<Dialog$1.Portal.Props, 'container'> {
|
|
4945
|
+
/**
|
|
4946
|
+
* Screen edge the sheet slides in from.
|
|
4947
|
+
* @default 'right'
|
|
4948
|
+
*/
|
|
3277
4949
|
side?: 'top' | 'right' | 'bottom' | 'left';
|
|
4950
|
+
/**
|
|
4951
|
+
* Render a built-in close button in the top-right corner.
|
|
4952
|
+
* @default true
|
|
4953
|
+
*/
|
|
3278
4954
|
showCloseButton?: boolean;
|
|
3279
4955
|
}
|
|
3280
4956
|
declare namespace SheetContent {
|
|
3281
4957
|
type Props = SheetContentProps;
|
|
3282
4958
|
}
|
|
4959
|
+
/**
|
|
4960
|
+
* Header region of the sheet, typically holding the title and description.
|
|
4961
|
+
* Renders a `<div>`.
|
|
4962
|
+
*/
|
|
3283
4963
|
declare const SheetHeader: React.ForwardRefExoticComponent<Omit<SheetHeaderProps, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
3284
4964
|
interface SheetHeaderProps extends React.ComponentProps<'div'> {}
|
|
3285
4965
|
declare namespace SheetHeader {
|
|
3286
4966
|
type Props = SheetHeaderProps;
|
|
3287
4967
|
}
|
|
4968
|
+
/**
|
|
4969
|
+
* Footer region of the sheet, typically holding actions; pinned to the bottom.
|
|
4970
|
+
* Renders a `<div>`.
|
|
4971
|
+
*/
|
|
3288
4972
|
declare const SheetFooter: React.ForwardRefExoticComponent<Omit<SheetFooterProps, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
3289
4973
|
interface SheetFooterProps extends React.ComponentProps<'div'> {}
|
|
3290
4974
|
declare namespace SheetFooter {
|
|
3291
4975
|
type Props = SheetFooterProps;
|
|
3292
4976
|
}
|
|
4977
|
+
/**
|
|
4978
|
+
* Accessible title for the sheet, wrapping `Dialog.Title`.
|
|
4979
|
+
* Renders an `<h2>` and labels the sheet for assistive technology.
|
|
4980
|
+
*/
|
|
3293
4981
|
declare const SheetTitle: React.ForwardRefExoticComponent<Omit<SheetTitleProps, "ref"> & React.RefAttributes<HTMLHeadingElement>>;
|
|
3294
4982
|
interface SheetTitleProps extends Dialog$1.Title.Props {}
|
|
3295
4983
|
declare namespace SheetTitle {
|
|
3296
4984
|
type Props = SheetTitleProps;
|
|
3297
4985
|
}
|
|
4986
|
+
/**
|
|
4987
|
+
* Accessible supporting text for the sheet, wrapping `Dialog.Description`.
|
|
4988
|
+
* Renders a `<p>` and describes the sheet for assistive technology.
|
|
4989
|
+
*/
|
|
3298
4990
|
declare const SheetDescription: React.ForwardRefExoticComponent<Omit<SheetDescriptionProps, "ref"> & React.RefAttributes<HTMLParagraphElement>>;
|
|
3299
4991
|
interface SheetDescriptionProps extends Dialog$1.Description.Props {}
|
|
3300
4992
|
declare namespace SheetDescription {
|
|
@@ -3302,23 +4994,92 @@ declare namespace SheetDescription {
|
|
|
3302
4994
|
}
|
|
3303
4995
|
//#endregion
|
|
3304
4996
|
//#region src/components/tooltip.d.ts
|
|
4997
|
+
/**
|
|
4998
|
+
* Shares delay timing across all tooltips nested inside it, so moving between
|
|
4999
|
+
* neighbouring triggers reuses the open state instead of re-triggering the delay.
|
|
5000
|
+
*
|
|
5001
|
+
* Renders no DOM element — wrap a subtree of `Tooltip` instances in it.
|
|
5002
|
+
*
|
|
5003
|
+
* @prop delay - Milliseconds to wait before showing a tooltip. Default: `0`.
|
|
5004
|
+
*
|
|
5005
|
+
* @example
|
|
5006
|
+
* ```tsx
|
|
5007
|
+
* <TooltipProvider delay={200}>
|
|
5008
|
+
* <Tooltip>…</Tooltip>
|
|
5009
|
+
* <Tooltip>…</Tooltip>
|
|
5010
|
+
* </TooltipProvider>
|
|
5011
|
+
* ```
|
|
5012
|
+
*/
|
|
3305
5013
|
declare function TooltipProvider(componentProps: TooltipProvider.Props): React.JSX.Element;
|
|
5014
|
+
/** Props for {@link TooltipProvider} — extends Base UI `Tooltip.Provider.Props`. */
|
|
3306
5015
|
interface TooltipProviderProps extends Tooltip$1.Provider.Props {}
|
|
3307
5016
|
declare namespace TooltipProvider {
|
|
3308
5017
|
type Props = TooltipProviderProps;
|
|
3309
5018
|
}
|
|
5019
|
+
/**
|
|
5020
|
+
* Root of a single tooltip. Manages its open/close state and connects the
|
|
5021
|
+
* trigger to the content.
|
|
5022
|
+
*
|
|
5023
|
+
* Renders no DOM element — place `TooltipTrigger` and `TooltipContent` inside
|
|
5024
|
+
* it. Supports controlled (`open` + `onOpenChange`) and uncontrolled
|
|
5025
|
+
* (`defaultOpen`) modes.
|
|
5026
|
+
*
|
|
5027
|
+
* @example
|
|
5028
|
+
* ```tsx
|
|
5029
|
+
* <TooltipProvider>
|
|
5030
|
+
* <Tooltip>
|
|
5031
|
+
* <TooltipTrigger render={<Button />}>Hover me</TooltipTrigger>
|
|
5032
|
+
* <TooltipContent side="top">Helpful hint</TooltipContent>
|
|
5033
|
+
* </Tooltip>
|
|
5034
|
+
* </TooltipProvider>
|
|
5035
|
+
* ```
|
|
5036
|
+
*/
|
|
3310
5037
|
declare function Tooltip(componentProps: Tooltip.Props): React.JSX.Element;
|
|
5038
|
+
/** Props for {@link Tooltip} — extends Base UI `Tooltip.Root.Props`. */
|
|
3311
5039
|
interface TooltipProps extends Tooltip$1.Root.Props {}
|
|
3312
5040
|
declare namespace Tooltip {
|
|
3313
5041
|
type Props = TooltipProps;
|
|
3314
5042
|
}
|
|
5043
|
+
/**
|
|
5044
|
+
* The element that opens the tooltip on hover or focus.
|
|
5045
|
+
*
|
|
5046
|
+
* Renders a `<button>` by default; pass `render` to project the behaviour onto
|
|
5047
|
+
* another element or component.
|
|
5048
|
+
*
|
|
5049
|
+
* @example
|
|
5050
|
+
* ```tsx
|
|
5051
|
+
* <TooltipTrigger render={<Button variant="ghost" />}>Info</TooltipTrigger>
|
|
5052
|
+
* ```
|
|
5053
|
+
*/
|
|
3315
5054
|
declare const TooltipTrigger: React.ForwardRefExoticComponent<Omit<TooltipTriggerProps, "ref"> & React.RefAttributes<HTMLButtonElement>>;
|
|
5055
|
+
/** Props for {@link TooltipTrigger} — extends Base UI `Tooltip.Trigger.Props`. */
|
|
3316
5056
|
interface TooltipTriggerProps extends Tooltip$1.Trigger.Props {}
|
|
3317
5057
|
declare namespace TooltipTrigger {
|
|
3318
5058
|
type Props = TooltipTriggerProps;
|
|
3319
5059
|
}
|
|
5060
|
+
/**
|
|
5061
|
+
* The floating panel shown while the trigger is hovered or focused.
|
|
5062
|
+
*
|
|
5063
|
+
* Composes `Tooltip.Portal → Tooltip.Positioner → Tooltip.Popup` into a single
|
|
5064
|
+
* part and renders a `<div>` popup (with a small `Tooltip.Arrow`). Positioning
|
|
5065
|
+
* props (`side`, `sideOffset`, `align`, `alignOffset`) are forwarded to the
|
|
5066
|
+
* positioner; all other props (including `className`) go to the popup element.
|
|
5067
|
+
*
|
|
5068
|
+
* @prop side - Which side of the trigger to place the content. Default: `'top'`.
|
|
5069
|
+
* @prop sideOffset - Gap in pixels between the trigger and the content. Default: `4`.
|
|
5070
|
+
* @prop align - Alignment along the cross-axis. Default: `'center'`.
|
|
5071
|
+
* @prop alignOffset - Offset in pixels along the cross-axis. Default: `0`.
|
|
5072
|
+
* @prop container - Portal container the popup is rendered into.
|
|
5073
|
+
*
|
|
5074
|
+
* @example
|
|
5075
|
+
* ```tsx
|
|
5076
|
+
* <TooltipContent side="bottom" align="start">Helpful hint</TooltipContent>
|
|
5077
|
+
* ```
|
|
5078
|
+
*/
|
|
3320
5079
|
declare const TooltipContent: React.ForwardRefExoticComponent<Omit<TooltipContentProps, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
5080
|
+
/** Props for {@link TooltipContent} — popup props plus positioner placement props and a portal `container`. */
|
|
3321
5081
|
interface TooltipContentProps extends Tooltip$1.Popup.Props, Pick<Tooltip$1.Positioner.Props, 'align' | 'alignOffset' | 'side' | 'sideOffset'> {
|
|
5082
|
+
/** Portal container the popup is rendered into. Defaults to `document.body`. */
|
|
3322
5083
|
container?: Tooltip$1.Portal.Props['container'];
|
|
3323
5084
|
}
|
|
3324
5085
|
declare namespace TooltipContent {
|
|
@@ -3335,90 +5096,192 @@ type SidebarContextProps = {
|
|
|
3335
5096
|
isMobile: boolean;
|
|
3336
5097
|
toggleSidebar: () => void;
|
|
3337
5098
|
};
|
|
5099
|
+
/**
|
|
5100
|
+
* Reads the sidebar context. Must be called inside a `SidebarProvider`.
|
|
5101
|
+
* @returns `{ state, open, setOpen, openMobile, setOpenMobile, isMobile, toggleSidebar }`
|
|
5102
|
+
* — the expanded/collapsed state, the desktop and mobile open flags with their
|
|
5103
|
+
* setters, whether the viewport is mobile, and a toggle helper.
|
|
5104
|
+
* @throws if used outside a `SidebarProvider`.
|
|
5105
|
+
*/
|
|
3338
5106
|
declare function useSidebar(): SidebarContextProps;
|
|
5107
|
+
/**
|
|
5108
|
+
* Root of the sidebar system. Holds open/collapsed state (controlled or
|
|
5109
|
+
* uncontrolled), persists it to a cookie, wires the `Cmd/Ctrl+B` shortcut, and
|
|
5110
|
+
* exposes it via context. Renders a `<div>` wrapper that sets the sidebar CSS
|
|
5111
|
+
* width variables.
|
|
5112
|
+
*
|
|
5113
|
+
* @example
|
|
5114
|
+
* ```tsx
|
|
5115
|
+
* <SidebarProvider>
|
|
5116
|
+
* <Sidebar>
|
|
5117
|
+
* <SidebarContent>
|
|
5118
|
+
* <SidebarMenu>
|
|
5119
|
+
* <SidebarMenuItem>
|
|
5120
|
+
* <SidebarMenuButton>Home</SidebarMenuButton>
|
|
5121
|
+
* </SidebarMenuItem>
|
|
5122
|
+
* </SidebarMenu>
|
|
5123
|
+
* </SidebarContent>
|
|
5124
|
+
* </Sidebar>
|
|
5125
|
+
* <SidebarInset>
|
|
5126
|
+
* <SidebarTrigger />
|
|
5127
|
+
* {children}
|
|
5128
|
+
* </SidebarInset>
|
|
5129
|
+
* </SidebarProvider>
|
|
5130
|
+
* ```
|
|
5131
|
+
*/
|
|
3339
5132
|
declare const SidebarProvider: React.ForwardRefExoticComponent<Omit<SidebarProviderProps, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
3340
5133
|
interface SidebarProviderProps extends React.ComponentProps<'div'> {
|
|
5134
|
+
/**
|
|
5135
|
+
* Initial open state for uncontrolled usage.
|
|
5136
|
+
* @default true
|
|
5137
|
+
*/
|
|
3341
5138
|
defaultOpen?: boolean;
|
|
5139
|
+
/** Open state for controlled usage. */
|
|
3342
5140
|
open?: boolean;
|
|
5141
|
+
/** Called with the new open state when it changes. */
|
|
3343
5142
|
onOpenChange?: (open: boolean) => void;
|
|
3344
5143
|
}
|
|
3345
5144
|
declare namespace SidebarProvider {
|
|
3346
5145
|
type Props = SidebarProviderProps;
|
|
3347
5146
|
}
|
|
5147
|
+
/**
|
|
5148
|
+
* Main sidebar container. On desktop renders the fixed sidebar `<div>` (gap +
|
|
5149
|
+
* container + inner) reacting to the collapsible mode; on mobile renders inside
|
|
5150
|
+
* a `Sheet`; with `collapsible="none"` renders a plain static `<div>`.
|
|
5151
|
+
*/
|
|
3348
5152
|
declare const Sidebar: React.ForwardRefExoticComponent<Omit<SidebarProps, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
3349
5153
|
interface SidebarProps extends React.ComponentProps<'div'> {
|
|
5154
|
+
/**
|
|
5155
|
+
* Edge the sidebar is anchored to.
|
|
5156
|
+
* @default 'left'
|
|
5157
|
+
*/
|
|
3350
5158
|
side?: 'left' | 'right';
|
|
5159
|
+
/**
|
|
5160
|
+
* Visual treatment of the sidebar.
|
|
5161
|
+
* @default 'sidebar'
|
|
5162
|
+
*/
|
|
3351
5163
|
variant?: 'sidebar' | 'floating' | 'inset';
|
|
5164
|
+
/**
|
|
5165
|
+
* How the sidebar collapses: slide off-canvas, shrink to icons, or never.
|
|
5166
|
+
* @default 'offcanvas'
|
|
5167
|
+
*/
|
|
3352
5168
|
collapsible?: 'offcanvas' | 'icon' | 'none';
|
|
3353
5169
|
}
|
|
3354
5170
|
declare namespace Sidebar {
|
|
3355
5171
|
type Props = SidebarProps;
|
|
3356
5172
|
}
|
|
5173
|
+
/**
|
|
5174
|
+
* Ghost icon button that toggles the sidebar open/closed. Renders a `Button`
|
|
5175
|
+
* (`<button>`) with a panel icon.
|
|
5176
|
+
*/
|
|
3357
5177
|
declare const SidebarTrigger: React.ForwardRefExoticComponent<Omit<SidebarTriggerProps, "ref"> & React.RefAttributes<HTMLButtonElement>>;
|
|
3358
5178
|
interface SidebarTriggerProps extends React.ComponentProps<typeof Button> {}
|
|
3359
5179
|
declare namespace SidebarTrigger {
|
|
3360
5180
|
type Props = SidebarTriggerProps;
|
|
3361
5181
|
}
|
|
5182
|
+
/**
|
|
5183
|
+
* Thin draggable-looking rail along the sidebar edge that toggles it on click.
|
|
5184
|
+
* Renders a `<button>`.
|
|
5185
|
+
*/
|
|
3362
5186
|
declare const SidebarRail: React.ForwardRefExoticComponent<Omit<SidebarRailProps, "ref"> & React.RefAttributes<HTMLButtonElement>>;
|
|
3363
5187
|
interface SidebarRailProps extends React.ComponentProps<'button'> {}
|
|
3364
5188
|
declare namespace SidebarRail {
|
|
3365
5189
|
type Props = SidebarRailProps;
|
|
3366
5190
|
}
|
|
5191
|
+
/**
|
|
5192
|
+
* Main content area shown beside the sidebar. Renders a `<main>` that adapts its
|
|
5193
|
+
* margins and rounding for the `inset` variant.
|
|
5194
|
+
*/
|
|
3367
5195
|
declare const SidebarInset: React.ForwardRefExoticComponent<Omit<SidebarInsetProps, "ref"> & React.RefAttributes<HTMLElement>>;
|
|
3368
5196
|
interface SidebarInsetProps extends React.ComponentProps<'main'> {}
|
|
3369
5197
|
declare namespace SidebarInset {
|
|
3370
5198
|
type Props = SidebarInsetProps;
|
|
3371
5199
|
}
|
|
5200
|
+
/**
|
|
5201
|
+
* Search/filter input styled for the sidebar. Renders an `Input` (`<input>`).
|
|
5202
|
+
*/
|
|
3372
5203
|
declare const SidebarInput: React.ForwardRefExoticComponent<Omit<SidebarInputProps, "ref"> & React.RefAttributes<HTMLInputElement>>;
|
|
3373
5204
|
interface SidebarInputProps extends React.ComponentProps<typeof Input> {}
|
|
3374
5205
|
declare namespace SidebarInput {
|
|
3375
5206
|
type Props = SidebarInputProps;
|
|
3376
5207
|
}
|
|
5208
|
+
/**
|
|
5209
|
+
* Header region at the top of the sidebar. Renders a `<div>`.
|
|
5210
|
+
*/
|
|
3377
5211
|
declare const SidebarHeader: React.ForwardRefExoticComponent<Omit<SidebarHeaderProps, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
3378
5212
|
interface SidebarHeaderProps extends React.ComponentProps<'div'> {}
|
|
3379
5213
|
declare namespace SidebarHeader {
|
|
3380
5214
|
type Props = SidebarHeaderProps;
|
|
3381
5215
|
}
|
|
5216
|
+
/**
|
|
5217
|
+
* Footer region at the bottom of the sidebar. Renders a `<div>`.
|
|
5218
|
+
*/
|
|
3382
5219
|
declare const SidebarFooter: React.ForwardRefExoticComponent<Omit<SidebarFooterProps, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
3383
5220
|
interface SidebarFooterProps extends React.ComponentProps<'div'> {}
|
|
3384
5221
|
declare namespace SidebarFooter {
|
|
3385
5222
|
type Props = SidebarFooterProps;
|
|
3386
5223
|
}
|
|
5224
|
+
/**
|
|
5225
|
+
* Divider between sidebar sections. Renders a `Separator` (`<div role="separator">`).
|
|
5226
|
+
*/
|
|
3387
5227
|
declare const SidebarSeparator: React.ForwardRefExoticComponent<Omit<SidebarSeparatorProps, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
3388
5228
|
interface SidebarSeparatorProps extends React.ComponentProps<typeof Separator> {}
|
|
3389
5229
|
declare namespace SidebarSeparator {
|
|
3390
5230
|
type Props = SidebarSeparatorProps;
|
|
3391
5231
|
}
|
|
5232
|
+
/**
|
|
5233
|
+
* Scrollable middle region holding the sidebar's groups and menus. Renders a `<div>`.
|
|
5234
|
+
*/
|
|
3392
5235
|
declare const SidebarContent: React.ForwardRefExoticComponent<Omit<SidebarContentProps, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
3393
5236
|
interface SidebarContentProps extends React.ComponentProps<'div'> {}
|
|
3394
5237
|
declare namespace SidebarContent {
|
|
3395
5238
|
type Props = SidebarContentProps;
|
|
3396
5239
|
}
|
|
5240
|
+
/**
|
|
5241
|
+
* Section wrapper grouping a label, action, and content. Renders a `<div>`.
|
|
5242
|
+
*/
|
|
3397
5243
|
declare const SidebarGroup: React.ForwardRefExoticComponent<Omit<SidebarGroupProps, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
3398
5244
|
interface SidebarGroupProps extends React.ComponentProps<'div'> {}
|
|
3399
5245
|
declare namespace SidebarGroup {
|
|
3400
5246
|
type Props = SidebarGroupProps;
|
|
3401
5247
|
}
|
|
5248
|
+
/**
|
|
5249
|
+
* Heading label for a sidebar group; hidden when collapsed to icons. Renders a
|
|
5250
|
+
* `<div>` by default, or the element passed via `render`.
|
|
5251
|
+
*/
|
|
3402
5252
|
declare const SidebarGroupLabel: React.ForwardRefExoticComponent<Omit<SidebarGroupLabelProps, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
3403
5253
|
type SidebarGroupLabelProps = useRender.ComponentProps<'div'> & React.ComponentProps<'div'>;
|
|
3404
5254
|
declare namespace SidebarGroupLabel {
|
|
3405
5255
|
type Props = SidebarGroupLabelProps;
|
|
3406
5256
|
}
|
|
5257
|
+
/**
|
|
5258
|
+
* Action button in the top-right corner of a sidebar group. Renders a
|
|
5259
|
+
* `<button>` by default, or the element passed via `render`.
|
|
5260
|
+
*/
|
|
3407
5261
|
declare const SidebarGroupAction: React.ForwardRefExoticComponent<Omit<SidebarGroupActionProps, "ref"> & React.RefAttributes<HTMLButtonElement>>;
|
|
3408
5262
|
type SidebarGroupActionProps = useRender.ComponentProps<'button'> & React.ComponentProps<'button'>;
|
|
3409
5263
|
declare namespace SidebarGroupAction {
|
|
3410
5264
|
type Props = SidebarGroupActionProps;
|
|
3411
5265
|
}
|
|
5266
|
+
/**
|
|
5267
|
+
* Body of a sidebar group. Renders a `<div>`.
|
|
5268
|
+
*/
|
|
3412
5269
|
declare const SidebarGroupContent: React.ForwardRefExoticComponent<Omit<SidebarGroupContentProps, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
3413
5270
|
interface SidebarGroupContentProps extends React.ComponentProps<'div'> {}
|
|
3414
5271
|
declare namespace SidebarGroupContent {
|
|
3415
5272
|
type Props = SidebarGroupContentProps;
|
|
3416
5273
|
}
|
|
5274
|
+
/**
|
|
5275
|
+
* List container for menu items. Renders a `<ul>`.
|
|
5276
|
+
*/
|
|
3417
5277
|
declare const SidebarMenu: React.ForwardRefExoticComponent<Omit<SidebarMenuProps, "ref"> & React.RefAttributes<HTMLUListElement>>;
|
|
3418
5278
|
interface SidebarMenuProps extends React.ComponentProps<'ul'> {}
|
|
3419
5279
|
declare namespace SidebarMenu {
|
|
3420
5280
|
type Props = SidebarMenuProps;
|
|
3421
5281
|
}
|
|
5282
|
+
/**
|
|
5283
|
+
* Single menu row wrapping a button plus optional action/badge. Renders a `<li>`.
|
|
5284
|
+
*/
|
|
3422
5285
|
declare const SidebarMenuItem: React.ForwardRefExoticComponent<Omit<SidebarMenuItemProps, "ref"> & React.RefAttributes<HTMLLIElement>>;
|
|
3423
5286
|
interface SidebarMenuItemProps extends React.ComponentProps<'li'> {}
|
|
3424
5287
|
declare namespace SidebarMenuItem {
|
|
@@ -3428,28 +5291,61 @@ declare const sidebarMenuButtonVariants: (props?: ({
|
|
|
3428
5291
|
variant?: "default" | "outline" | null | undefined;
|
|
3429
5292
|
size?: "default" | "sm" | "lg" | null | undefined;
|
|
3430
5293
|
} & class_variance_authority_types7.ClassProp) | undefined) => string;
|
|
5294
|
+
/**
|
|
5295
|
+
* Primary clickable row inside a menu item, with variant/size styles and an
|
|
5296
|
+
* optional tooltip shown only when collapsed. Renders a `<button>` by default,
|
|
5297
|
+
* or the element passed via `render` (wrapped in a `Tooltip` when `tooltip` is set).
|
|
5298
|
+
*/
|
|
3431
5299
|
declare const SidebarMenuButton: React.ForwardRefExoticComponent<Omit<SidebarMenuButtonProps, "ref"> & React.RefAttributes<HTMLButtonElement>>;
|
|
3432
5300
|
type SidebarMenuButtonProps = useRender.ComponentProps<'button'> & React.ComponentProps<'button'> & VariantProps<typeof sidebarMenuButtonVariants> & {
|
|
5301
|
+
/**
|
|
5302
|
+
* Marks the row as the current/selected item.
|
|
5303
|
+
* @default false
|
|
5304
|
+
*/
|
|
3433
5305
|
isActive?: boolean;
|
|
5306
|
+
/**
|
|
5307
|
+
* Tooltip shown only while the sidebar is collapsed (desktop). A string is
|
|
5308
|
+
* used as the tooltip content, or pass full `TooltipContent` props.
|
|
5309
|
+
*/
|
|
3434
5310
|
tooltip?: string | React.ComponentProps<typeof TooltipContent>;
|
|
3435
5311
|
};
|
|
3436
5312
|
declare namespace SidebarMenuButton {
|
|
3437
5313
|
type Props = SidebarMenuButtonProps;
|
|
3438
5314
|
}
|
|
5315
|
+
/**
|
|
5316
|
+
* Secondary action button pinned to the right of a menu item. Renders a
|
|
5317
|
+
* `<button>` by default, or the element passed via `render`.
|
|
5318
|
+
*/
|
|
3439
5319
|
declare const SidebarMenuAction: React.ForwardRefExoticComponent<Omit<SidebarMenuActionProps, "ref"> & React.RefAttributes<HTMLButtonElement>>;
|
|
3440
5320
|
type SidebarMenuActionProps = useRender.ComponentProps<'button'> & React.ComponentProps<'button'> & {
|
|
5321
|
+
/**
|
|
5322
|
+
* Reveal the action only on hover/focus of the menu item (visible always otherwise).
|
|
5323
|
+
* @default false
|
|
5324
|
+
*/
|
|
3441
5325
|
showOnHover?: boolean;
|
|
3442
5326
|
};
|
|
3443
5327
|
declare namespace SidebarMenuAction {
|
|
3444
5328
|
type Props = SidebarMenuActionProps;
|
|
3445
5329
|
}
|
|
5330
|
+
/**
|
|
5331
|
+
* Count/status badge pinned to the right of a menu item; hidden when collapsed
|
|
5332
|
+
* to icons. Renders a `<div>`.
|
|
5333
|
+
*/
|
|
3446
5334
|
declare const SidebarMenuBadge: React.ForwardRefExoticComponent<Omit<SidebarMenuBadgeProps, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
3447
5335
|
interface SidebarMenuBadgeProps extends React.ComponentProps<'div'> {}
|
|
3448
5336
|
declare namespace SidebarMenuBadge {
|
|
3449
5337
|
type Props = SidebarMenuBadgeProps;
|
|
3450
5338
|
}
|
|
5339
|
+
/**
|
|
5340
|
+
* Loading placeholder for a menu row, with a randomized text width. Renders a
|
|
5341
|
+
* `<div>` containing `Skeleton`s.
|
|
5342
|
+
*/
|
|
3451
5343
|
declare const SidebarMenuSkeleton: React.ForwardRefExoticComponent<Omit<SidebarMenuSkeletonProps, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
3452
5344
|
interface SidebarMenuSkeletonProps extends Omit<React.ComponentProps<'div'>, 'width'> {
|
|
5345
|
+
/**
|
|
5346
|
+
* Render a leading icon-sized skeleton alongside the text skeleton.
|
|
5347
|
+
* @default false
|
|
5348
|
+
*/
|
|
3453
5349
|
showIcon?: boolean;
|
|
3454
5350
|
/** Override the randomized skeleton width (e.g. for deterministic stories). */
|
|
3455
5351
|
width?: string;
|
|
@@ -3457,19 +5353,38 @@ interface SidebarMenuSkeletonProps extends Omit<React.ComponentProps<'div'>, 'wi
|
|
|
3457
5353
|
declare namespace SidebarMenuSkeleton {
|
|
3458
5354
|
type Props = SidebarMenuSkeletonProps;
|
|
3459
5355
|
}
|
|
5356
|
+
/**
|
|
5357
|
+
* Nested sub-menu list under a menu item; hidden when collapsed to icons.
|
|
5358
|
+
* Renders a `<ul>`.
|
|
5359
|
+
*/
|
|
3460
5360
|
declare const SidebarMenuSub: React.ForwardRefExoticComponent<Omit<SidebarMenuSubProps, "ref"> & React.RefAttributes<HTMLUListElement>>;
|
|
3461
5361
|
interface SidebarMenuSubProps extends React.ComponentProps<'ul'> {}
|
|
3462
5362
|
declare namespace SidebarMenuSub {
|
|
3463
5363
|
type Props = SidebarMenuSubProps;
|
|
3464
5364
|
}
|
|
5365
|
+
/**
|
|
5366
|
+
* Single row within a sub-menu. Renders a `<li>`.
|
|
5367
|
+
*/
|
|
3465
5368
|
declare const SidebarMenuSubItem: React.ForwardRefExoticComponent<Omit<SidebarMenuSubItemProps, "ref"> & React.RefAttributes<HTMLLIElement>>;
|
|
3466
5369
|
interface SidebarMenuSubItemProps extends React.ComponentProps<'li'> {}
|
|
3467
5370
|
declare namespace SidebarMenuSubItem {
|
|
3468
5371
|
type Props = SidebarMenuSubItemProps;
|
|
3469
5372
|
}
|
|
5373
|
+
/**
|
|
5374
|
+
* Clickable link inside a sub-menu row. Renders an `<a>` by default, or the
|
|
5375
|
+
* element passed via `render`.
|
|
5376
|
+
*/
|
|
3470
5377
|
declare const SidebarMenuSubButton: React.ForwardRefExoticComponent<Omit<SidebarMenuSubButtonProps, "ref"> & React.RefAttributes<HTMLAnchorElement>>;
|
|
3471
5378
|
type SidebarMenuSubButtonProps = useRender.ComponentProps<'a'> & React.ComponentProps<'a'> & {
|
|
5379
|
+
/**
|
|
5380
|
+
* Text size of the sub-button.
|
|
5381
|
+
* @default 'md'
|
|
5382
|
+
*/
|
|
3472
5383
|
size?: 'sm' | 'md';
|
|
5384
|
+
/**
|
|
5385
|
+
* Marks the link as the current/selected item.
|
|
5386
|
+
* @default false
|
|
5387
|
+
*/
|
|
3473
5388
|
isActive?: boolean;
|
|
3474
5389
|
};
|
|
3475
5390
|
declare namespace SidebarMenuSubButton {
|
|
@@ -3477,6 +5392,15 @@ declare namespace SidebarMenuSubButton {
|
|
|
3477
5392
|
}
|
|
3478
5393
|
//#endregion
|
|
3479
5394
|
//#region src/components/skeleton.d.ts
|
|
5395
|
+
/**
|
|
5396
|
+
* Pulsing placeholder shown while content is loading. Renders a `<div>`;
|
|
5397
|
+
* set its dimensions via `className` to match the content it stands in for.
|
|
5398
|
+
*
|
|
5399
|
+
* @example
|
|
5400
|
+
* ```tsx
|
|
5401
|
+
* <Skeleton className="h-4 w-32" />
|
|
5402
|
+
* ```
|
|
5403
|
+
*/
|
|
3480
5404
|
declare const Skeleton: React.ForwardRefExoticComponent<Omit<SkeletonProps, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
3481
5405
|
interface SkeletonProps extends React.ComponentProps<'div'> {}
|
|
3482
5406
|
declare namespace Skeleton {
|
|
@@ -3484,6 +5408,17 @@ declare namespace Skeleton {
|
|
|
3484
5408
|
}
|
|
3485
5409
|
//#endregion
|
|
3486
5410
|
//#region src/components/slider.d.ts
|
|
5411
|
+
/**
|
|
5412
|
+
* Range/value slider built on the Base UI Slider primitive. Renders a `<div>`
|
|
5413
|
+
* root containing a track, a range indicator, and one thumb per value (multiple
|
|
5414
|
+
* thumbs when `value`/`defaultValue` is an array). Supports horizontal and
|
|
5415
|
+
* vertical orientation.
|
|
5416
|
+
*
|
|
5417
|
+
* @example
|
|
5418
|
+
* ```tsx
|
|
5419
|
+
* <Slider defaultValue={50} min={0} max={100} />
|
|
5420
|
+
* ```
|
|
5421
|
+
*/
|
|
3487
5422
|
declare const Slider: React.ForwardRefExoticComponent<Omit<SliderProps, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
3488
5423
|
interface SliderProps extends Slider$1.Root.Props {}
|
|
3489
5424
|
declare namespace Slider {
|
|
@@ -3491,15 +5426,37 @@ declare namespace Slider {
|
|
|
3491
5426
|
}
|
|
3492
5427
|
//#endregion
|
|
3493
5428
|
//#region src/components/sonner.d.ts
|
|
5429
|
+
/**
|
|
5430
|
+
* Toast notification region. Wraps sonner's `Toaster`, syncing its theme with
|
|
5431
|
+
* next-themes and applying DS icons and variant styles (info / success / error / warning).
|
|
5432
|
+
* Mount once near the app root; trigger toasts via the exported `toast` function.
|
|
5433
|
+
*
|
|
5434
|
+
* @example
|
|
5435
|
+
* ```tsx
|
|
5436
|
+
* <Toaster position="bottom-right" />
|
|
5437
|
+
* // elsewhere:
|
|
5438
|
+
* toast.success('Saved');
|
|
5439
|
+
* ```
|
|
5440
|
+
*/
|
|
3494
5441
|
declare const Toaster: (componentProps: Toaster.Props) => React.JSX.Element;
|
|
3495
5442
|
declare namespace Toaster {
|
|
3496
5443
|
type Props = ToasterProps;
|
|
3497
5444
|
}
|
|
3498
5445
|
//#endregion
|
|
3499
5446
|
//#region src/components/spinner.d.ts
|
|
5447
|
+
/** Class variants for `Spinner`, controlling its `size` (`default`, `sm`, `lg`, `xl`). */
|
|
3500
5448
|
declare const spinnerVariants: (props?: ({
|
|
3501
5449
|
size?: "default" | "sm" | "lg" | "xl" | null | undefined;
|
|
3502
5450
|
} & class_variance_authority_types7.ClassProp) | undefined) => string;
|
|
5451
|
+
/**
|
|
5452
|
+
* Animated loading indicator. Renders a spinning `<svg>` (Loader icon) with
|
|
5453
|
+
* `role="status"` and a localized `aria-label` for assistive technology.
|
|
5454
|
+
*
|
|
5455
|
+
* @example
|
|
5456
|
+
* ```tsx
|
|
5457
|
+
* <Spinner size="lg" />
|
|
5458
|
+
* ```
|
|
5459
|
+
*/
|
|
3503
5460
|
declare const Spinner: React.ForwardRefExoticComponent<Omit<SpinnerProps, "ref"> & React.RefAttributes<SVGSVGElement>>;
|
|
3504
5461
|
interface SpinnerProps extends React.ComponentProps<'svg'>, VariantProps<typeof spinnerVariants> {}
|
|
3505
5462
|
declare namespace Spinner {
|
|
@@ -3507,6 +5464,7 @@ declare namespace Spinner {
|
|
|
3507
5464
|
}
|
|
3508
5465
|
//#endregion
|
|
3509
5466
|
//#region src/components/stepper.d.ts
|
|
5467
|
+
/** Describes a single step: a stable `id` plus optional display `title` and `description`. */
|
|
3510
5468
|
type StepDefinition = {
|
|
3511
5469
|
id: string;
|
|
3512
5470
|
title?: string;
|
|
@@ -3518,38 +5476,97 @@ interface StepperContextValue {
|
|
|
3518
5476
|
getIndex: (id: string) => number;
|
|
3519
5477
|
steps: StepDefinition[];
|
|
3520
5478
|
}
|
|
5479
|
+
/**
|
|
5480
|
+
* Reads the current `Stepper` context. Must be called inside a `Stepper`.
|
|
5481
|
+
* @returns `{ activeId, goTo, getIndex, steps }` — the active step id, a setter
|
|
5482
|
+
* to navigate to a step id, an id-to-index lookup, and the full step list.
|
|
5483
|
+
* @throws if used outside a `Stepper`.
|
|
5484
|
+
*/
|
|
3521
5485
|
declare function useStepper(): StepperContextValue;
|
|
5486
|
+
/**
|
|
5487
|
+
* Root of a step-based wizard. Provides step state (controlled or uncontrolled)
|
|
5488
|
+
* to its descendants and renders a `<div>` wrapper.
|
|
5489
|
+
*
|
|
5490
|
+
* @example
|
|
5491
|
+
* ```tsx
|
|
5492
|
+
* const steps = [{ id: 'account' }, { id: 'profile' }, { id: 'done' }];
|
|
5493
|
+
*
|
|
5494
|
+
* <Stepper steps={steps} defaultValue="account">
|
|
5495
|
+
* <StepperProgress />
|
|
5496
|
+
* <StepperCounter />
|
|
5497
|
+
* <StepperContent value="account">…</StepperContent>
|
|
5498
|
+
* <StepperContent value="profile">…</StepperContent>
|
|
5499
|
+
* </Stepper>
|
|
5500
|
+
* ```
|
|
5501
|
+
*/
|
|
3522
5502
|
declare const Stepper: React.ForwardRefExoticComponent<Omit<StepperProps, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
3523
5503
|
interface StepperProps extends React.ComponentProps<'div'> {
|
|
5504
|
+
/** Ordered list of steps in the flow. */
|
|
3524
5505
|
steps: StepDefinition[];
|
|
5506
|
+
/**
|
|
5507
|
+
* Initially active step id for uncontrolled usage.
|
|
5508
|
+
* @default steps[0]?.id
|
|
5509
|
+
*/
|
|
3525
5510
|
defaultValue?: string;
|
|
5511
|
+
/** Active step id for controlled usage. */
|
|
3526
5512
|
value?: string;
|
|
5513
|
+
/** Called with the new step id whenever the active step changes. */
|
|
3527
5514
|
onValueChange?: (value: string) => void;
|
|
3528
5515
|
}
|
|
3529
5516
|
declare namespace Stepper {
|
|
3530
5517
|
type Props = StepperProps;
|
|
3531
5518
|
}
|
|
5519
|
+
/**
|
|
5520
|
+
* Segment-bar progress indicator (the "Step x of y" layout). Renders an
|
|
5521
|
+
* `aria-hidden` `<div>` of `<span>` segments, one per step, marked completed /
|
|
5522
|
+
* active / inactive relative to the active step.
|
|
5523
|
+
*/
|
|
3532
5524
|
declare const StepperProgress: React.ForwardRefExoticComponent<Omit<StepperProgressProps, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
3533
5525
|
interface StepperProgressProps extends React.ComponentProps<'div'> {
|
|
5526
|
+
/**
|
|
5527
|
+
* Subset of root step ids to render segments for (e.g. a conditional branch).
|
|
5528
|
+
* @default all step ids from the stepper context
|
|
5529
|
+
*/
|
|
3534
5530
|
steps?: string[];
|
|
3535
5531
|
}
|
|
3536
5532
|
declare namespace StepperProgress {
|
|
3537
5533
|
type Props = StepperProgressProps;
|
|
3538
5534
|
}
|
|
5535
|
+
/**
|
|
5536
|
+
* "Step x of y" companion line for `StepperProgress`. Renders a `<p>` whose
|
|
5537
|
+
* position is derived from the stepper context.
|
|
5538
|
+
*/
|
|
3539
5539
|
declare const StepperCounter: React.ForwardRefExoticComponent<Omit<StepperCounterProps, "ref"> & React.RefAttributes<HTMLParagraphElement>>;
|
|
3540
5540
|
interface StepperCounterProps extends React.ComponentProps<'p'> {
|
|
5541
|
+
/**
|
|
5542
|
+
* Subset of root step ids used to compute the count (match `StepperProgress`).
|
|
5543
|
+
* @default all step ids from the stepper context
|
|
5544
|
+
*/
|
|
3541
5545
|
steps?: string[];
|
|
3542
5546
|
}
|
|
3543
5547
|
declare namespace StepperCounter {
|
|
3544
5548
|
type Props = StepperCounterProps;
|
|
3545
5549
|
}
|
|
5550
|
+
/**
|
|
5551
|
+
* Container for the step body, tagged with the active step id via `data-state`.
|
|
5552
|
+
* Renders a `<div>`.
|
|
5553
|
+
*/
|
|
3546
5554
|
declare const StepperPanel: React.ForwardRefExoticComponent<Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
3547
5555
|
declare namespace StepperPanel {
|
|
3548
5556
|
type Props = React.ComponentProps<'div'>;
|
|
3549
5557
|
}
|
|
5558
|
+
/**
|
|
5559
|
+
* Body for one step, shown only when its `value` matches the active step.
|
|
5560
|
+
* Renders a `<div>` (or `null` when inactive and not force-mounted).
|
|
5561
|
+
*/
|
|
3550
5562
|
declare const StepperContent: React.ForwardRefExoticComponent<Omit<StepperContentProps, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
3551
5563
|
interface StepperContentProps extends React.ComponentProps<'div'> {
|
|
5564
|
+
/** Step id this content belongs to; shown when it equals the active step. */
|
|
3552
5565
|
value: string;
|
|
5566
|
+
/**
|
|
5567
|
+
* Keep the content mounted (hidden via `hidden`) even when inactive.
|
|
5568
|
+
* @default false
|
|
5569
|
+
*/
|
|
3553
5570
|
forceMount?: boolean;
|
|
3554
5571
|
}
|
|
3555
5572
|
declare namespace StepperContent {
|
|
@@ -3557,6 +5574,15 @@ declare namespace StepperContent {
|
|
|
3557
5574
|
}
|
|
3558
5575
|
//#endregion
|
|
3559
5576
|
//#region src/components/switch.d.ts
|
|
5577
|
+
/**
|
|
5578
|
+
* A toggle switch for an on/off setting, wrapping Base UI's `Switch.Root`.
|
|
5579
|
+
* Renders a `<button role="switch">` containing a sliding thumb.
|
|
5580
|
+
*
|
|
5581
|
+
* @example
|
|
5582
|
+
* ```tsx
|
|
5583
|
+
* <Switch defaultChecked />
|
|
5584
|
+
* ```
|
|
5585
|
+
*/
|
|
3560
5586
|
declare const Switch: React.ForwardRefExoticComponent<Omit<SwitchProps, "ref"> & React.RefAttributes<HTMLElement>>;
|
|
3561
5587
|
interface SwitchProps extends Switch$1.Root.Props {}
|
|
3562
5588
|
declare namespace Switch {
|
|
@@ -3564,6 +5590,25 @@ declare namespace Switch {
|
|
|
3564
5590
|
}
|
|
3565
5591
|
//#endregion
|
|
3566
5592
|
//#region src/components/table.d.ts
|
|
5593
|
+
/**
|
|
5594
|
+
* Root data table. Renders a `<table>` inside a scrollable, bordered `<div>` container.
|
|
5595
|
+
*
|
|
5596
|
+
* @example
|
|
5597
|
+
* ```tsx
|
|
5598
|
+
* <Table>
|
|
5599
|
+
* <TableHeader>
|
|
5600
|
+
* <TableRow>
|
|
5601
|
+
* <TableHead>Name</TableHead>
|
|
5602
|
+
* </TableRow>
|
|
5603
|
+
* </TableHeader>
|
|
5604
|
+
* <TableBody>
|
|
5605
|
+
* <TableRow>
|
|
5606
|
+
* <TableCell>Ada</TableCell>
|
|
5607
|
+
* </TableRow>
|
|
5608
|
+
* </TableBody>
|
|
5609
|
+
* </Table>
|
|
5610
|
+
* ```
|
|
5611
|
+
*/
|
|
3567
5612
|
declare const Table: React.ForwardRefExoticComponent<Omit<TableProps, "ref"> & React.RefAttributes<HTMLTableElement>>;
|
|
3568
5613
|
interface TableProps extends React.ComponentProps<'table'> {
|
|
3569
5614
|
containerClassName?: string;
|
|
@@ -3574,31 +5619,37 @@ interface TableProps extends React.ComponentProps<'table'> {
|
|
|
3574
5619
|
declare namespace Table {
|
|
3575
5620
|
type Props = TableProps;
|
|
3576
5621
|
}
|
|
5622
|
+
/** Table header section. Renders a `<thead>`; place `TableRow`/`TableHead` inside it. */
|
|
3577
5623
|
declare const TableHeader: React.ForwardRefExoticComponent<Omit<TableHeaderProps, "ref"> & React.RefAttributes<HTMLTableSectionElement>>;
|
|
3578
5624
|
interface TableHeaderProps extends React.ComponentProps<'thead'> {}
|
|
3579
5625
|
declare namespace TableHeader {
|
|
3580
5626
|
type Props = TableHeaderProps;
|
|
3581
5627
|
}
|
|
5628
|
+
/** Table body section. Renders a `<tbody>` holding the data `TableRow`s. */
|
|
3582
5629
|
declare const TableBody: React.ForwardRefExoticComponent<Omit<TableBodyProps, "ref"> & React.RefAttributes<HTMLTableSectionElement>>;
|
|
3583
5630
|
interface TableBodyProps extends React.ComponentProps<'tbody'> {}
|
|
3584
5631
|
declare namespace TableBody {
|
|
3585
5632
|
type Props = TableBodyProps;
|
|
3586
5633
|
}
|
|
5634
|
+
/** Table footer section. Renders a muted `<tfoot>`, e.g. for totals or summary rows. */
|
|
3587
5635
|
declare const TableFooter: React.ForwardRefExoticComponent<Omit<TableFooterProps, "ref"> & React.RefAttributes<HTMLTableSectionElement>>;
|
|
3588
5636
|
interface TableFooterProps extends React.ComponentProps<'tfoot'> {}
|
|
3589
5637
|
declare namespace TableFooter {
|
|
3590
5638
|
type Props = TableFooterProps;
|
|
3591
5639
|
}
|
|
5640
|
+
/** A single table row. Renders a `<tr>`; highlights on hover and when `data-state="selected"`. */
|
|
3592
5641
|
declare const TableRow: React.ForwardRefExoticComponent<Omit<TableRowProps, "ref"> & React.RefAttributes<HTMLTableRowElement>>;
|
|
3593
5642
|
interface TableRowProps extends React.ComponentProps<'tr'> {}
|
|
3594
5643
|
declare namespace TableRow {
|
|
3595
5644
|
type Props = TableRowProps;
|
|
3596
5645
|
}
|
|
5646
|
+
/** A header cell. Renders a `<th>` with medium-weight, left-aligned text. */
|
|
3597
5647
|
declare const TableHead: React.ForwardRefExoticComponent<Omit<TableHeadProps, "ref"> & React.RefAttributes<HTMLTableCellElement>>;
|
|
3598
5648
|
interface TableHeadProps extends React.ComponentProps<'th'> {}
|
|
3599
5649
|
declare namespace TableHead {
|
|
3600
5650
|
type Props = TableHeadProps;
|
|
3601
5651
|
}
|
|
5652
|
+
/** A data cell. Renders a `<td>` with middle-aligned content. */
|
|
3602
5653
|
declare const TableCell: React.ForwardRefExoticComponent<Omit<TableCellProps, "ref"> & React.RefAttributes<HTMLTableCellElement>>;
|
|
3603
5654
|
interface TableCellProps extends React.ComponentProps<'td'> {}
|
|
3604
5655
|
declare namespace TableCell {
|
|
@@ -3606,29 +5657,81 @@ declare namespace TableCell {
|
|
|
3606
5657
|
}
|
|
3607
5658
|
//#endregion
|
|
3608
5659
|
//#region src/components/tabs.d.ts
|
|
5660
|
+
/**
|
|
5661
|
+
* Root container for a tabs group, wrapping Base UI's `Tabs.Root`.
|
|
5662
|
+
* Renders a `<div>` that lays out the `TabsList` and `TabsContent` panels.
|
|
5663
|
+
*
|
|
5664
|
+
* @example
|
|
5665
|
+
* ```tsx
|
|
5666
|
+
* <Tabs defaultValue="account">
|
|
5667
|
+
* <TabsList>
|
|
5668
|
+
* <TabsTrigger value="account">Account</TabsTrigger>
|
|
5669
|
+
* <TabsTrigger value="password">Password</TabsTrigger>
|
|
5670
|
+
* </TabsList>
|
|
5671
|
+
* <TabsContent value="account">Account settings</TabsContent>
|
|
5672
|
+
* <TabsContent value="password">Password settings</TabsContent>
|
|
5673
|
+
* </Tabs>
|
|
5674
|
+
* ```
|
|
5675
|
+
*/
|
|
3609
5676
|
declare const Tabs: React.ForwardRefExoticComponent<Omit<TabsProps, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
3610
|
-
|
|
5677
|
+
/** Props for {@link Tabs} — Base UI `Tabs.Root` props plus `orientation`. */
|
|
5678
|
+
interface TabsProps extends Tabs$1.Root.Props {
|
|
5679
|
+
/**
|
|
5680
|
+
* Layout direction of the tab list and keyboard navigation.
|
|
5681
|
+
* @default 'horizontal'
|
|
5682
|
+
*/
|
|
5683
|
+
orientation?: Tabs$1.Root.Props['orientation'];
|
|
5684
|
+
}
|
|
3611
5685
|
declare namespace Tabs {
|
|
3612
5686
|
type Props = TabsProps;
|
|
3613
5687
|
}
|
|
5688
|
+
/**
|
|
5689
|
+
* Container for the tab triggers, wrapping `Tabs.List`.
|
|
5690
|
+
* Renders a `<div>` that arranges the `TabsTrigger` buttons in a row (or column
|
|
5691
|
+
* when the parent `Tabs` is vertical).
|
|
5692
|
+
*/
|
|
3614
5693
|
declare const TabsList: React.ForwardRefExoticComponent<Omit<TabsListProps, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
5694
|
+
/** Props for {@link TabsList} — Base UI `Tabs.List` props. */
|
|
3615
5695
|
interface TabsListProps extends Tabs$1.List.Props {}
|
|
3616
5696
|
declare namespace TabsList {
|
|
3617
5697
|
type Props = TabsListProps;
|
|
3618
5698
|
}
|
|
5699
|
+
/**
|
|
5700
|
+
* A single tab button that activates its matching panel, wrapping `Tabs.Tab`.
|
|
5701
|
+
* Renders a `<button>` with an active-state underline indicator.
|
|
5702
|
+
*/
|
|
3619
5703
|
declare const TabsTrigger: React.ForwardRefExoticComponent<Omit<TabsTriggerProps, "ref"> & React.RefAttributes<HTMLElement>>;
|
|
5704
|
+
/** Props for {@link TabsTrigger} — Base UI `Tabs.Tab` props. */
|
|
3620
5705
|
interface TabsTriggerProps extends Tabs$1.Tab.Props {}
|
|
3621
5706
|
declare namespace TabsTrigger {
|
|
3622
5707
|
type Props = TabsTriggerProps;
|
|
3623
5708
|
}
|
|
5709
|
+
/**
|
|
5710
|
+
* The panel shown when its matching tab is active, wrapping `Tabs.Panel`.
|
|
5711
|
+
* Renders a `<div>` whose `value` must match the corresponding `TabsTrigger`.
|
|
5712
|
+
*/
|
|
3624
5713
|
declare const TabsContent: React.ForwardRefExoticComponent<Omit<TabsContentProps, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
5714
|
+
/** Props for {@link TabsContent} — Base UI `Tabs.Panel` props. */
|
|
3625
5715
|
interface TabsContentProps extends Tabs$1.Panel.Props {}
|
|
3626
5716
|
declare namespace TabsContent {
|
|
3627
5717
|
type Props = TabsContentProps;
|
|
3628
5718
|
}
|
|
3629
5719
|
//#endregion
|
|
3630
5720
|
//#region src/components/textarea.d.ts
|
|
5721
|
+
/**
|
|
5722
|
+
* Multi-line text field styled to the design system.
|
|
5723
|
+
*
|
|
5724
|
+
* Renders a native `<textarea>` that auto-grows with its content
|
|
5725
|
+
* (`field-sizing: content`) and shows focus-ring and `aria-invalid` error
|
|
5726
|
+
* styling.
|
|
5727
|
+
*
|
|
5728
|
+
* @example
|
|
5729
|
+
* ```tsx
|
|
5730
|
+
* <Textarea placeholder="Leave a comment…" rows={4} />
|
|
5731
|
+
* ```
|
|
5732
|
+
*/
|
|
3631
5733
|
declare const Textarea: React.ForwardRefExoticComponent<Omit<TextareaProps, "ref"> & React.RefAttributes<HTMLTextAreaElement>>;
|
|
5734
|
+
/** Props for {@link Textarea} — standard `<textarea>` props. */
|
|
3632
5735
|
interface TextareaProps extends React.ComponentProps<'textarea'> {}
|
|
3633
5736
|
declare namespace Textarea {
|
|
3634
5737
|
type Props = TextareaProps;
|
|
@@ -3636,16 +5739,41 @@ declare namespace Textarea {
|
|
|
3636
5739
|
//#endregion
|
|
3637
5740
|
//#region src/components/theme-provider.d.ts
|
|
3638
5741
|
type ThemeProviderProps$1 = ThemeProviderProps;
|
|
5742
|
+
/**
|
|
5743
|
+
* Provides theme context to the app. Wraps next-themes' `ThemeProvider` with DS defaults
|
|
5744
|
+
* (`data-theme` attribute, `system` default, system detection, no transition flash).
|
|
5745
|
+
* Renders no DOM element — wrap your app root with it.
|
|
5746
|
+
*
|
|
5747
|
+
* @example
|
|
5748
|
+
* ```tsx
|
|
5749
|
+
* <ThemeProvider>
|
|
5750
|
+
* <App />
|
|
5751
|
+
* </ThemeProvider>
|
|
5752
|
+
* ```
|
|
5753
|
+
*/
|
|
3639
5754
|
declare function ThemeProvider(componentProps: ThemeProvider.Props): React.ReactNode;
|
|
3640
5755
|
declare namespace ThemeProvider {
|
|
3641
5756
|
type Props = ThemeProviderProps$1;
|
|
3642
5757
|
}
|
|
3643
5758
|
//#endregion
|
|
3644
5759
|
//#region src/components/toggle.d.ts
|
|
5760
|
+
/**
|
|
5761
|
+
* Class-variance-authority variants for {@link Toggle}: `variant` (`default` | `outline`)
|
|
5762
|
+
* and `size` (`default` | `sm` | `lg`).
|
|
5763
|
+
*/
|
|
3645
5764
|
declare const toggleVariants: (props?: ({
|
|
3646
5765
|
variant?: "default" | "outline" | null | undefined;
|
|
3647
5766
|
size?: "default" | "sm" | "lg" | null | undefined;
|
|
3648
5767
|
} & class_variance_authority_types7.ClassProp) | undefined) => string;
|
|
5768
|
+
/**
|
|
5769
|
+
* A two-state button that can be pressed on or off, wrapping Base UI's `Toggle`.
|
|
5770
|
+
* Renders a `<button aria-pressed>` styled via {@link toggleVariants}.
|
|
5771
|
+
*
|
|
5772
|
+
* @example
|
|
5773
|
+
* ```tsx
|
|
5774
|
+
* <Toggle aria-label="Bold">B</Toggle>
|
|
5775
|
+
* ```
|
|
5776
|
+
*/
|
|
3649
5777
|
declare const Toggle: React.ForwardRefExoticComponent<Omit<ToggleProps, "ref"> & React.RefAttributes<HTMLButtonElement>>;
|
|
3650
5778
|
interface ToggleProps extends Toggle$1.Props, VariantProps<typeof toggleVariants> {}
|
|
3651
5779
|
declare namespace Toggle {
|
|
@@ -3653,6 +5781,19 @@ declare namespace Toggle {
|
|
|
3653
5781
|
}
|
|
3654
5782
|
//#endregion
|
|
3655
5783
|
//#region src/components/toggle-group.d.ts
|
|
5784
|
+
/**
|
|
5785
|
+
* Root container grouping related toggle buttons, wrapping Base UI's `ToggleGroup`.
|
|
5786
|
+
* Renders a `<div role="group">` and shares `variant`, `size` and `spacing` with its
|
|
5787
|
+
* `ToggleGroupItem`s via context.
|
|
5788
|
+
*
|
|
5789
|
+
* @example
|
|
5790
|
+
* ```tsx
|
|
5791
|
+
* <ToggleGroup defaultValue={['left']}>
|
|
5792
|
+
* <ToggleGroupItem value="left">Left</ToggleGroupItem>
|
|
5793
|
+
* <ToggleGroupItem value="center">Center</ToggleGroupItem>
|
|
5794
|
+
* </ToggleGroup>
|
|
5795
|
+
* ```
|
|
5796
|
+
*/
|
|
3656
5797
|
declare const ToggleGroup: React.ForwardRefExoticComponent<Omit<ToggleGroupProps, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
3657
5798
|
type ToggleGroupProps = ToggleGroup$1.Props & VariantProps<typeof toggleVariants> & {
|
|
3658
5799
|
spacing?: number;
|
|
@@ -3665,6 +5806,10 @@ type ToggleGroupProps = ToggleGroup$1.Props & VariantProps<typeof toggleVariants
|
|
|
3665
5806
|
declare namespace ToggleGroup {
|
|
3666
5807
|
type Props = ToggleGroupProps;
|
|
3667
5808
|
}
|
|
5809
|
+
/**
|
|
5810
|
+
* A single toggle button within a `ToggleGroup`, wrapping Base UI's `Toggle`.
|
|
5811
|
+
* Renders a `<button aria-pressed>` that inherits `variant` and `size` from the group context.
|
|
5812
|
+
*/
|
|
3668
5813
|
declare const ToggleGroupItem: React.ForwardRefExoticComponent<Omit<ToggleGroupItemProps, "ref"> & React.RefAttributes<HTMLButtonElement>>;
|
|
3669
5814
|
interface ToggleGroupItemProps extends Toggle$1.Props, VariantProps<typeof toggleVariants> {}
|
|
3670
5815
|
declare namespace ToggleGroupItem {
|
|
@@ -3681,6 +5826,24 @@ interface TreeProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
|
3681
5826
|
declare namespace Tree {
|
|
3682
5827
|
type Props = TreeProps;
|
|
3683
5828
|
}
|
|
5829
|
+
/**
|
|
5830
|
+
* Root tree container. Renders a flex-column `<div>` and provides the tree
|
|
5831
|
+
* context (indentation + the `useTree` instance) to the rows inside it.
|
|
5832
|
+
*
|
|
5833
|
+
* @example
|
|
5834
|
+
* ```tsx
|
|
5835
|
+
* const tree = useTree<Item>({ ... });
|
|
5836
|
+
* return (
|
|
5837
|
+
* <Tree indent={20} tree={tree}>
|
|
5838
|
+
* {tree.getItems().map(item => (
|
|
5839
|
+
* <TreeItem key={item.getId()} item={item}>
|
|
5840
|
+
* <TreeItemLabel />
|
|
5841
|
+
* </TreeItem>
|
|
5842
|
+
* ))}
|
|
5843
|
+
* </Tree>
|
|
5844
|
+
* );
|
|
5845
|
+
* ```
|
|
5846
|
+
*/
|
|
3684
5847
|
declare function Tree({
|
|
3685
5848
|
indent,
|
|
3686
5849
|
tree,
|
|
@@ -3704,6 +5867,11 @@ interface TreeItemProps<T = any> extends React.HTMLAttributes<HTMLDivElement> {
|
|
|
3704
5867
|
declare namespace TreeItem {
|
|
3705
5868
|
type Props<T = any> = TreeItemProps<T>;
|
|
3706
5869
|
}
|
|
5870
|
+
/**
|
|
5871
|
+
* A full-width, highlightable tree row. Renders a `<div role="treeitem">` so a
|
|
5872
|
+
* leading control (e.g. a selection `Checkbox`) shares the row's hover/selected
|
|
5873
|
+
* highlight; drives activation for both mouse and keyboard.
|
|
5874
|
+
*/
|
|
3707
5875
|
declare function TreeItem<T = any>({
|
|
3708
5876
|
item,
|
|
3709
5877
|
className,
|
|
@@ -3721,6 +5889,11 @@ interface TreeItemLabelProps<T = any> extends React.HTMLAttributes<HTMLSpanEleme
|
|
|
3721
5889
|
declare namespace TreeItemLabel {
|
|
3722
5890
|
type Props<T = any> = TreeItemLabelProps<T>;
|
|
3723
5891
|
}
|
|
5892
|
+
/**
|
|
5893
|
+
* A tree row's label. Renders a `<span>` with a fixed-width chevron expand
|
|
5894
|
+
* button for folders (or an aligned spacer for leaves) followed by the label
|
|
5895
|
+
* content, falling back to the item's name.
|
|
5896
|
+
*/
|
|
3724
5897
|
declare function TreeItemLabel<T = any>({
|
|
3725
5898
|
item: propItem,
|
|
3726
5899
|
children,
|
|
@@ -3731,6 +5904,10 @@ interface TreeDragLineProps extends React.HTMLAttributes<HTMLDivElement> {}
|
|
|
3731
5904
|
declare namespace TreeDragLine {
|
|
3732
5905
|
type Props = TreeDragLineProps;
|
|
3733
5906
|
}
|
|
5907
|
+
/**
|
|
5908
|
+
* Drag-and-drop drop indicator. Renders a positioned `<div>` line using the
|
|
5909
|
+
* tree instance's `getDragLineStyle()`; renders nothing when no tree is in context.
|
|
5910
|
+
*/
|
|
3734
5911
|
declare function TreeDragLine({
|
|
3735
5912
|
className,
|
|
3736
5913
|
...props
|