@doscientos/ui 0.1.23 → 0.1.26
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.cjs +762 -528
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +221 -32
- package/dist/index.d.ts +221 -32
- package/dist/index.js +728 -504
- package/dist/index.js.map +1 -1
- package/dist/styles.css +1 -1
- package/package.json +4 -2
package/dist/index.d.cts
CHANGED
|
@@ -3,8 +3,8 @@ import { RefCallback, ReactNode, ComponentPropsWithRef } from 'react';
|
|
|
3
3
|
import * as class_variance_authority_types from 'class-variance-authority/types';
|
|
4
4
|
import { ClassValue } from 'clsx';
|
|
5
5
|
import * as react_aria_components from 'react-aria-components';
|
|
6
|
-
import { DisclosureGroupProps, DisclosurePanelProps, DisclosureProps, ButtonProps as ButtonProps$1, LinkProps, Breadcrumb as Breadcrumb$1, Link, Breadcrumbs as Breadcrumbs$1, Separator as Separator$1, CheckboxProps as CheckboxProps$1, ComboBoxProps, Key, Popover as Popover$1, InputProps as InputProps$1, ListBoxItemProps, ListBoxProps, Input as Input$1, ListBox, Dialog as Dialog$1,
|
|
7
|
-
export { ComboBoxProps, ComboBoxValue as ComboboxValue, DialogTriggerProps as PopoverTriggerProps,
|
|
6
|
+
import { DisclosureGroupProps, DisclosurePanelProps, DisclosureProps, ButtonProps as ButtonProps$1, LinkProps, Text, ModalOverlayProps, Heading, Breadcrumb as Breadcrumb$1, Link, Breadcrumbs as Breadcrumbs$1, Separator as Separator$1, CheckboxProps as CheckboxProps$1, ComboBoxProps, Key, Popover as Popover$1, InputProps as InputProps$1, ListBoxItemProps, ListBoxProps, Input as Input$1, ListBox, Dialog as Dialog$1, Menu as Menu$1, MenuSectionProps, MenuItemProps, Header, SubmenuTrigger, MenuTrigger as MenuTrigger$1, TextAreaProps, MenuProps, PopoverProps as PopoverProps$1, DialogTrigger as DialogTrigger$1, NumberFieldProps, SelectProps, SelectValue as SelectValue$1, Modal, DialogTriggerProps as DialogTriggerProps$1, SwitchProps as SwitchProps$1, TabPanelProps as TabPanelProps$1, TabProps as TabProps$1, TabsProps as TabsProps$1, TabListProps, TabPanelsProps, Tooltip as Tooltip$1, TooltipTrigger as TooltipTrigger$1 } from 'react-aria-components';
|
|
7
|
+
export { ComboBoxProps, ComboBoxValue as ComboboxValue, DialogTriggerProps as PopoverTriggerProps, SelectProps, DialogProps as SheetPrimitiveProps, DialogTriggerProps as SheetTriggerPrimitiveProps } from 'react-aria-components';
|
|
8
8
|
import { VariantProps } from 'class-variance-authority';
|
|
9
9
|
|
|
10
10
|
type AutosaveStatus = "idle" | "saving" | "saved" | "error";
|
|
@@ -53,17 +53,84 @@ type TextMatchPart = {
|
|
|
53
53
|
*/
|
|
54
54
|
declare function getTextMatchParts(text: string, query: string): TextMatchPart[];
|
|
55
55
|
|
|
56
|
+
/** Groups related expandable sections and manages their expanded state. */
|
|
56
57
|
declare function Accordion({ className, ...props }: DisclosureGroupProps): React$1.JSX.Element;
|
|
58
|
+
/** A single expandable section within an {@link Accordion}. */
|
|
57
59
|
declare function AccordionItem({ className, ...props }: DisclosureProps): React$1.JSX.Element;
|
|
60
|
+
/** Accessible heading button that expands or collapses its {@link AccordionItem}. */
|
|
58
61
|
declare function AccordionTrigger({ className, children, ...props }: Omit<ButtonProps$1, "children"> & {
|
|
59
62
|
children: React$1.ReactNode;
|
|
60
63
|
}): React$1.JSX.Element;
|
|
64
|
+
/** Panel revealed when its parent {@link AccordionItem} is expanded. */
|
|
61
65
|
declare function AccordionContent({ className, children, ...props }: DisclosurePanelProps): React$1.JSX.Element;
|
|
62
66
|
|
|
67
|
+
declare const buttonVariants: (props?: ({
|
|
68
|
+
variant?: "link" | "default" | "outline" | "secondary" | "ghost" | "destructive" | null | undefined;
|
|
69
|
+
size?: "default" | "xs" | "sm" | "lg" | "icon" | "icon-xs" | "icon-sm" | "icon-lg" | null | undefined;
|
|
70
|
+
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
71
|
+
/** Props for a button that triggers an in-page action. */
|
|
72
|
+
type ButtonProps = Omit<ButtonProps$1, "className"> & React$1.RefAttributes<HTMLButtonElement> & VariantProps<typeof buttonVariants> & {
|
|
73
|
+
/** HTML-compatible alias for `isDisabled`. */
|
|
74
|
+
disabled?: boolean;
|
|
75
|
+
/** Visual treatment for the action's priority and intent. */
|
|
76
|
+
variant?: VariantProps<typeof buttonVariants>["variant"];
|
|
77
|
+
/** Preset height, spacing and icon dimensions. */
|
|
78
|
+
size?: VariantProps<typeof buttonVariants>["size"];
|
|
79
|
+
className?: string;
|
|
80
|
+
};
|
|
81
|
+
/**
|
|
82
|
+
* Accessible button with visual variants and a press ripple.
|
|
83
|
+
* Provide an `aria-label` when it contains only an icon.
|
|
84
|
+
*/
|
|
85
|
+
declare function Button({ className, variant, size, children, disabled, isDisabled, onClick, onPress, ...props }: ButtonProps): React$1.JSX.Element;
|
|
86
|
+
/** Props for a link styled consistently with {@link Button}. */
|
|
87
|
+
type LinkButtonProps = Omit<LinkProps, "className"> & VariantProps<typeof buttonVariants> & {
|
|
88
|
+
/** Visual treatment for the navigation action's priority and intent. */
|
|
89
|
+
variant?: VariantProps<typeof buttonVariants>["variant"];
|
|
90
|
+
/** Preset height, spacing and icon dimensions. */
|
|
91
|
+
size?: VariantProps<typeof buttonVariants>["size"];
|
|
92
|
+
className?: string;
|
|
93
|
+
};
|
|
94
|
+
/**
|
|
95
|
+
* Navigation link styled as a {@link Button}.
|
|
96
|
+
* Provide an `aria-label` when it contains only an icon.
|
|
97
|
+
*/
|
|
98
|
+
declare function LinkButton({ className, variant, size, children, onClick, onPress, ...props }: LinkButtonProps): React$1.JSX.Element;
|
|
99
|
+
|
|
100
|
+
type AlertDialogProps = {
|
|
101
|
+
children: React$1.ReactNode;
|
|
102
|
+
open: boolean;
|
|
103
|
+
onOpenChange: (open: boolean) => void;
|
|
104
|
+
};
|
|
105
|
+
/** Controlled, composable confirmation dialog for domain-specific destructive actions. */
|
|
106
|
+
declare function AlertDialog({ children, open, onOpenChange }: AlertDialogProps): React$1.JSX.Element;
|
|
107
|
+
declare function AlertDialogPortal({ children }: {
|
|
108
|
+
children?: React$1.ReactNode;
|
|
109
|
+
}): React$1.JSX.Element;
|
|
110
|
+
declare function AlertDialogTrigger({ children, ...props }: Omit<React$1.ComponentProps<typeof Button>, "onPress">): React$1.JSX.Element;
|
|
111
|
+
declare function AlertDialogOverlay({ className, ...props }: Omit<ModalOverlayProps, "children" | "className" | "isOpen" | "onOpenChange"> & {
|
|
112
|
+
className?: string;
|
|
113
|
+
}): React$1.JSX.Element | null;
|
|
114
|
+
declare function AlertDialogContent({ className, size, children }: {
|
|
115
|
+
children?: React$1.ReactNode;
|
|
116
|
+
className?: string;
|
|
117
|
+
size?: "default" | "sm";
|
|
118
|
+
}): React$1.JSX.Element | null;
|
|
119
|
+
declare function AlertDialogHeader({ className, ...props }: React$1.ComponentProps<"div">): React$1.JSX.Element;
|
|
120
|
+
declare function AlertDialogFooter({ className, ...props }: React$1.ComponentProps<"div">): React$1.JSX.Element;
|
|
121
|
+
declare function AlertDialogTitle({ className, ...props }: Omit<React$1.ComponentProps<typeof Heading>, "slot">): React$1.JSX.Element;
|
|
122
|
+
declare function AlertDialogDescription({ className, ...props }: Omit<React$1.ComponentProps<typeof Text>, "slot">): React$1.JSX.Element;
|
|
123
|
+
declare function AlertDialogAction({ className, ...props }: React$1.ComponentProps<typeof Button>): React$1.JSX.Element;
|
|
124
|
+
declare function AlertDialogCancel({ children, onClick, ...props }: Omit<React$1.ComponentProps<typeof Button>, "onPress">): React$1.JSX.Element;
|
|
125
|
+
|
|
63
126
|
declare const alertVariants: (props?: ({
|
|
64
|
-
variant?: "default" | "
|
|
127
|
+
variant?: "default" | "destructive" | "info" | "success" | "warning" | null | undefined;
|
|
65
128
|
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
66
|
-
type AlertProps = React$1.ComponentProps<"div"> & VariantProps<typeof alertVariants
|
|
129
|
+
type AlertProps = React$1.ComponentProps<"div"> & VariantProps<typeof alertVariants> & {
|
|
130
|
+
/** Communicates the alert's semantic intent. */
|
|
131
|
+
variant?: VariantProps<typeof alertVariants>["variant"];
|
|
132
|
+
};
|
|
133
|
+
/** Announces a concise status, warning or error message. */
|
|
67
134
|
declare function Alert({ className, variant, ...props }: AlertProps): React$1.JSX.Element;
|
|
68
135
|
declare function AlertTitle({ className, ...props }: React$1.ComponentProps<"div">): React$1.JSX.Element;
|
|
69
136
|
declare function AlertDescription({ className, ...props }: React$1.ComponentProps<"div">): React$1.JSX.Element;
|
|
@@ -74,6 +141,7 @@ type AppShellProps = React$1.ComponentProps<"div"> & {
|
|
|
74
141
|
/** Breakpoint at which the persistent sidebar replaces the mobile header. */
|
|
75
142
|
sidebarBreakpoint?: AppShellBreakpoint;
|
|
76
143
|
};
|
|
144
|
+
/** Application layout foundation for a responsive sidebar, header and content area. */
|
|
77
145
|
declare function AppShell({ className, sidebarBreakpoint, ...props }: AppShellProps): React$1.JSX.Element;
|
|
78
146
|
declare function AppShellSidebar({ className, ...props }: React$1.ComponentProps<"aside">): React$1.JSX.Element;
|
|
79
147
|
declare function AppShellMain({ className, ...props }: React$1.ComponentProps<"main">): React$1.JSX.Element;
|
|
@@ -90,8 +158,10 @@ type AppShellContentProps = React$1.ComponentProps<"div"> & {
|
|
|
90
158
|
declare function AppShellContent({ className, size, padded, scrollable, ...props }: AppShellContentProps): React$1.JSX.Element;
|
|
91
159
|
|
|
92
160
|
type AvatarProps = React.ComponentProps<"div"> & {
|
|
161
|
+
/** Avatar dimensions and fallback text size. */
|
|
93
162
|
size?: "xs" | "sm" | "default" | "lg";
|
|
94
163
|
};
|
|
164
|
+
/** Displays an image or fallback content for a person, organisation or entity. */
|
|
95
165
|
declare function Avatar({ className, size, children, ...props }: AvatarProps): React$1.JSX.Element;
|
|
96
166
|
declare function AvatarImage({ className, src, onError, onLoad, ...props }: React.ComponentProps<"img">): React$1.JSX.Element | null;
|
|
97
167
|
declare function AvatarFallback({ className, ...props }: React.ComponentProps<"span">): React$1.JSX.Element | null;
|
|
@@ -100,15 +170,20 @@ declare function AvatarGroup({ className, ...props }: React.ComponentProps<"div"
|
|
|
100
170
|
declare function AvatarGroupCount({ className, ...props }: React.ComponentProps<"span">): React$1.JSX.Element;
|
|
101
171
|
|
|
102
172
|
declare const badgeVariants: (props?: ({
|
|
103
|
-
variant?: "link" | "default" | "
|
|
173
|
+
variant?: "link" | "default" | "outline" | "secondary" | "ghost" | "destructive" | "info" | "success" | "warning" | "neutral" | "danger" | null | undefined;
|
|
104
174
|
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
105
|
-
type BadgeProps = React$1.ComponentProps<"span"> & VariantProps<typeof badgeVariants
|
|
175
|
+
type BadgeProps = React$1.ComponentProps<"span"> & VariantProps<typeof badgeVariants> & {
|
|
176
|
+
/** Visual intent for a compact status or category label. */
|
|
177
|
+
variant?: VariantProps<typeof badgeVariants>["variant"];
|
|
178
|
+
};
|
|
179
|
+
/** Compact label for statuses, categories and small counts. */
|
|
106
180
|
declare function Badge({ className, variant, ...props }: BadgeProps): React$1.JSX.Element;
|
|
107
181
|
type BadgeLinkProps = Omit<LinkProps, "className"> & VariantProps<typeof badgeVariants> & {
|
|
108
182
|
className?: string;
|
|
109
183
|
};
|
|
110
184
|
declare function BadgeLink({ className, variant, ...props }: BadgeLinkProps): React$1.JSX.Element;
|
|
111
185
|
|
|
186
|
+
/** Accessible navigation trail showing the current page's hierarchy. */
|
|
112
187
|
declare function Breadcrumbs({ className, ...props }: React.ComponentProps<typeof Breadcrumbs$1>): React$1.JSX.Element;
|
|
113
188
|
declare function Breadcrumb({ className, ...props }: React.ComponentProps<typeof Breadcrumb$1>): React$1.JSX.Element;
|
|
114
189
|
declare function BreadcrumbLink({ className, ...props }: React.ComponentProps<typeof Link>): React$1.JSX.Element;
|
|
@@ -116,33 +191,24 @@ declare function BreadcrumbPage({ className, ...props }: React.ComponentProps<"s
|
|
|
116
191
|
declare function BreadcrumbSeparator({ children, className, ...props }: React.ComponentProps<"span">): React$1.JSX.Element;
|
|
117
192
|
|
|
118
193
|
type SeparatorProps = React.ComponentProps<typeof Separator$1>;
|
|
194
|
+
/** Semantic horizontal or vertical divider between related content. */
|
|
119
195
|
declare function Separator({ className, orientation, ...props }: SeparatorProps): React$1.JSX.Element;
|
|
120
196
|
|
|
121
197
|
declare const buttonGroupVariants: (props?: ({
|
|
122
198
|
orientation?: "horizontal" | "vertical" | null | undefined;
|
|
123
199
|
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
200
|
+
/** Groups adjacent actions into a single connected control. */
|
|
124
201
|
declare function ButtonGroup({ className, orientation, ...props }: React$1.ComponentProps<"div"> & VariantProps<typeof buttonGroupVariants>): React$1.JSX.Element;
|
|
125
202
|
declare function ButtonGroupText({ className, render, ...props }: React$1.ComponentProps<"div"> & {
|
|
126
203
|
render?: (props: React$1.HTMLAttributes<HTMLElement>) => React$1.ReactNode;
|
|
127
204
|
}): string | number | bigint | boolean | React$1.JSX.Element | Iterable<React$1.ReactNode> | Promise<string | number | bigint | boolean | React$1.ReactPortal | React$1.ReactElement<unknown, string | React$1.JSXElementConstructor<any>> | Iterable<React$1.ReactNode> | null | undefined> | null | undefined;
|
|
128
205
|
declare function ButtonGroupSeparator({ className, orientation, ...props }: React$1.ComponentProps<typeof Separator>): React$1.JSX.Element;
|
|
129
206
|
|
|
130
|
-
declare const buttonVariants: (props?: ({
|
|
131
|
-
variant?: "link" | "default" | "destructive" | "secondary" | "outline" | "ghost" | null | undefined;
|
|
132
|
-
size?: "default" | "sm" | "lg" | "xs" | "icon" | "icon-xs" | "icon-sm" | "icon-lg" | null | undefined;
|
|
133
|
-
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
134
|
-
type ButtonProps = Omit<ButtonProps$1, "className"> & React$1.RefAttributes<HTMLButtonElement> & VariantProps<typeof buttonVariants> & {
|
|
135
|
-
className?: string;
|
|
136
|
-
};
|
|
137
|
-
declare function Button({ className, variant, size, onClick, children, ...props }: ButtonProps): React$1.JSX.Element;
|
|
138
|
-
type LinkButtonProps = Omit<LinkProps, "className"> & VariantProps<typeof buttonVariants> & {
|
|
139
|
-
className?: string;
|
|
140
|
-
};
|
|
141
|
-
declare function LinkButton({ className, variant, size, onClick, children, ...props }: LinkButtonProps): React$1.JSX.Element;
|
|
142
|
-
|
|
143
207
|
type CardProps = React$1.ComponentProps<"div"> & {
|
|
208
|
+
/** Spacing preset for standard or compact content. */
|
|
144
209
|
size?: "default" | "sm";
|
|
145
210
|
};
|
|
211
|
+
/** Surface for related content with optional header, body, action and footer regions. */
|
|
146
212
|
declare function Card({ className, size, ...props }: CardProps): React$1.JSX.Element;
|
|
147
213
|
declare function CardHeader({ className, ...props }: React$1.ComponentProps<"div">): React$1.JSX.Element;
|
|
148
214
|
declare function CardTitle({ className, ...props }: React$1.ComponentProps<"div">): React$1.JSX.Element;
|
|
@@ -151,11 +217,35 @@ declare function CardAction({ className, ...props }: React$1.ComponentProps<"div
|
|
|
151
217
|
declare function CardContent({ className, ...props }: React$1.ComponentProps<"div">): React$1.JSX.Element;
|
|
152
218
|
declare function CardFooter({ className, ...props }: React$1.ComponentProps<"div">): React$1.JSX.Element;
|
|
153
219
|
|
|
220
|
+
/** Props for an accessible boolean form control. */
|
|
154
221
|
type CheckboxProps = Omit<CheckboxProps$1, "className"> & {
|
|
155
222
|
className?: string;
|
|
156
223
|
};
|
|
224
|
+
/** Checkbox that supports controlled and uncontrolled selection. */
|
|
157
225
|
declare function Checkbox({ className, children, ...props }: CheckboxProps): React$1.JSX.Element;
|
|
158
226
|
|
|
227
|
+
/** Props for the collapsible state container. */
|
|
228
|
+
type CollapsibleProps = React$1.ComponentProps<"div"> & {
|
|
229
|
+
/** Initial state when the component is uncontrolled. */
|
|
230
|
+
defaultOpen?: boolean;
|
|
231
|
+
/** Called after the expanded state changes. */
|
|
232
|
+
onOpenChange?: (open: boolean) => void;
|
|
233
|
+
/** Controlled expanded state. Use with {@link onOpenChange}. */
|
|
234
|
+
open?: boolean;
|
|
235
|
+
};
|
|
236
|
+
/** Groups a trigger and conditional content in a controlled or uncontrolled disclosure. */
|
|
237
|
+
declare function Collapsible({ children, defaultOpen, onOpenChange, open: controlledOpen, ...props }: CollapsibleProps): React$1.JSX.Element;
|
|
238
|
+
/** Props for the control that toggles a {@link Collapsible}. */
|
|
239
|
+
type CollapsibleTriggerProps = React$1.ComponentProps<"button"> & {
|
|
240
|
+
/** Renders and augments the single child element instead of a native button. */
|
|
241
|
+
asChild?: boolean;
|
|
242
|
+
};
|
|
243
|
+
/** Button that toggles its parent {@link Collapsible} and exposes `aria-expanded`. */
|
|
244
|
+
declare function CollapsibleTrigger({ asChild, children, onClick, ...props }: CollapsibleTriggerProps): React$1.JSX.Element;
|
|
245
|
+
type CollapsibleContentProps = React$1.ComponentProps<"div">;
|
|
246
|
+
/** Content that is mounted only while its parent {@link Collapsible} is open. */
|
|
247
|
+
declare function CollapsibleContent({ children, ...props }: CollapsibleContentProps): React$1.JSX.Element | null;
|
|
248
|
+
|
|
159
249
|
declare const Combobox: <T, M extends "multiple" | "single" = "single">(props: ComboBoxProps<T, M> & React.RefAttributes<HTMLDivElement>) => React$1.ReactElement<unknown, string | React.JSXElementConstructor<any>> | null;
|
|
160
250
|
|
|
161
251
|
declare function ComboboxInput({ className, ...props }: InputProps$1): React$1.JSX.Element;
|
|
@@ -188,6 +278,7 @@ type AutocompleteComboboxProps<T extends object> = Omit<ComboBoxProps<T>, "child
|
|
|
188
278
|
/** A safe, keyboard-first autocomplete for users, contracts and other entities. */
|
|
189
279
|
declare function AutocompleteCombobox<T extends object>({ items, getItemKey, getItemLabel, renderItem, inputValue: controlledInputValue, onInputChange, selectedKey, onSelectionChange, label, description, errorMessage, emptyState, suggestion, placeholder, className, onKeyDown: _onKeyDown, ...props }: AutocompleteComboboxProps<T>): React$1.JSX.Element;
|
|
190
280
|
|
|
281
|
+
/** Searchable command palette built from an accessible combobox and option list. */
|
|
191
282
|
declare function Command<T extends object>({ className, ...props }: ComboBoxProps<T>): React$1.JSX.Element;
|
|
192
283
|
declare function CommandInput({ className, ...props }: React.ComponentProps<typeof Input$1>): React$1.JSX.Element;
|
|
193
284
|
declare function CommandContent({ className, ...props }: React.ComponentProps<typeof Popover$1>): React$1.JSX.Element;
|
|
@@ -218,17 +309,25 @@ type DangerZoneProps = {
|
|
|
218
309
|
/** Collapsed-by-default container for actions that are hard to reverse. */
|
|
219
310
|
declare function DangerZone({ title, description, defaultOpen, className, children, }: DangerZoneProps): React$1.JSX.Element;
|
|
220
311
|
|
|
312
|
+
/** Props for a controlled or uncontrolled dialog state container. */
|
|
221
313
|
type DialogProps = {
|
|
222
314
|
children: React$1.ReactNode;
|
|
315
|
+
/** Initial state when the dialog is uncontrolled. */
|
|
223
316
|
defaultOpen?: boolean;
|
|
317
|
+
/** Called after the open state changes. */
|
|
224
318
|
onOpenChange?: (open: boolean) => void;
|
|
319
|
+
/** Controlled open state. Use with {@link onOpenChange}. */
|
|
225
320
|
open?: boolean;
|
|
226
321
|
};
|
|
322
|
+
/** Coordinates the trigger, overlay and content of a modal dialog. */
|
|
227
323
|
declare function Dialog({ children, defaultOpen, onOpenChange, open: controlledOpen }: DialogProps): React$1.JSX.Element;
|
|
228
324
|
type DialogTriggerProps = Omit<React$1.ComponentProps<typeof Button>, "onPress"> & {
|
|
325
|
+
/** Renders and augments the single child instead of rendering a {@link Button}. */
|
|
229
326
|
asChild?: boolean;
|
|
230
327
|
};
|
|
328
|
+
/** Opens the parent {@link Dialog}. */
|
|
231
329
|
declare function DialogTrigger({ asChild, children, onClick, ...props }: DialogTriggerProps): React$1.JSX.Element;
|
|
330
|
+
/** Groups dialog content rendered in the overlay layer. */
|
|
232
331
|
declare function DialogPortal({ children }: {
|
|
233
332
|
children?: React$1.ReactNode;
|
|
234
333
|
}): React$1.JSX.Element;
|
|
@@ -236,6 +335,7 @@ type DialogOverlayProps = Omit<ModalOverlayProps, "children" | "className" | "is
|
|
|
236
335
|
children?: React$1.ReactNode;
|
|
237
336
|
className?: string;
|
|
238
337
|
};
|
|
338
|
+
/** Dismissable backdrop displayed while the parent {@link Dialog} is open. */
|
|
239
339
|
declare function DialogOverlay({ children, className, ...props }: DialogOverlayProps): React$1.JSX.Element | null;
|
|
240
340
|
type DialogContentProps = Omit<React$1.ComponentProps<typeof Dialog$1>, "children" | "className"> & {
|
|
241
341
|
children?: React$1.ReactNode;
|
|
@@ -243,16 +343,23 @@ type DialogContentProps = Omit<React$1.ComponentProps<typeof Dialog$1>, "childre
|
|
|
243
343
|
onOverlayClick?: React$1.MouseEventHandler<HTMLDivElement>;
|
|
244
344
|
showCloseButton?: boolean;
|
|
245
345
|
};
|
|
346
|
+
/** Focus-managed modal content. Include a {@link DialogTitle} to give it an accessible name. */
|
|
246
347
|
declare function DialogContent({ children, className, onOverlayClick, showCloseButton, ...props }: DialogContentProps): React$1.JSX.Element;
|
|
247
348
|
type DialogCloseProps = Omit<React$1.ComponentProps<typeof Button>, "onPress"> & {
|
|
349
|
+
/** Renders and augments the single child instead of rendering a {@link Button}. */
|
|
248
350
|
asChild?: boolean;
|
|
249
351
|
};
|
|
352
|
+
/** Closes the parent {@link Dialog}. */
|
|
250
353
|
declare function DialogClose({ asChild, children, onClick, ...props }: DialogCloseProps): React$1.JSX.Element;
|
|
354
|
+
/** Groups the title and description at the top of a dialog. */
|
|
251
355
|
declare function DialogHeader({ className, ...props }: React$1.ComponentProps<"div">): React$1.JSX.Element;
|
|
356
|
+
/** Groups dialog actions and can add a secondary close action. */
|
|
252
357
|
declare function DialogFooter({ className, showCloseButton, children, ...props }: React$1.ComponentProps<"div"> & {
|
|
253
358
|
showCloseButton?: boolean;
|
|
254
359
|
}): React$1.JSX.Element;
|
|
360
|
+
/** Title used to give the parent {@link DialogContent} an accessible name. */
|
|
255
361
|
declare function DialogTitle({ className, ...props }: Omit<React$1.ComponentProps<typeof Heading>, "slot">): React$1.JSX.Element;
|
|
362
|
+
/** Supporting text announced alongside the parent {@link DialogTitle}. */
|
|
256
363
|
declare function DialogDescription({ className, ...props }: Omit<React$1.ComponentProps<typeof Text>, "slot">): React$1.JSX.Element;
|
|
257
364
|
|
|
258
365
|
type DocPreviewProps = {
|
|
@@ -265,16 +372,19 @@ declare function DocPreview({ url, mimeType, name }: DocPreviewProps): React$1.J
|
|
|
265
372
|
|
|
266
373
|
interface DrawerProps extends Omit<ModalOverlayProps, "children" | "className"> {
|
|
267
374
|
children: React.ReactNode;
|
|
375
|
+
/** Screen edge from which the drawer enters. */
|
|
268
376
|
side?: "left" | "right" | "bottom";
|
|
269
377
|
className?: string;
|
|
270
378
|
}
|
|
379
|
+
/** Dismissable modal panel anchored to an edge of the viewport. */
|
|
271
380
|
declare function Drawer({ children, side, className, ...props }: DrawerProps): React$1.JSX.Element;
|
|
272
381
|
declare function DrawerHeader({ className, ...props }: React.ComponentProps<"div">): React$1.JSX.Element;
|
|
273
382
|
declare function DrawerFooter({ className, ...props }: React.ComponentProps<"div">): React$1.JSX.Element;
|
|
274
|
-
declare function DrawerTitle({ className, ...props }: React.ComponentProps<"
|
|
383
|
+
declare function DrawerTitle({ className, ...props }: Omit<React.ComponentProps<typeof Heading>, "slot">): React$1.JSX.Element;
|
|
275
384
|
declare function DrawerDescription({ className, ...props }: React.ComponentProps<"p">): React$1.JSX.Element;
|
|
276
385
|
|
|
277
386
|
declare function DropdownMenuTrigger({ ...props }: React$1.ComponentProps<typeof MenuTrigger$1>): React$1.JSX.Element;
|
|
387
|
+
/** Floating menu of actions or selections opened by a {@link DropdownMenuTrigger}. */
|
|
278
388
|
declare function DropdownMenu({ "data-slot": dataSlot, placement, offset, crossOffset, className, children, ...props }: Omit<React$1.ComponentProps<typeof Menu$1<object>>, "children" | "className"> & Pick<React$1.ComponentProps<typeof Popover$1>, "placement" | "offset" | "crossOffset"> & {
|
|
279
389
|
"data-slot"?: string;
|
|
280
390
|
className?: string;
|
|
@@ -298,6 +408,7 @@ declare function DropdownMenuSubContent({ placement, crossOffset, offset, classN
|
|
|
298
408
|
declare function DropdownMenuSeparator({ className, ...props }: React$1.ComponentProps<typeof Separator$1>): React$1.JSX.Element;
|
|
299
409
|
declare function DropdownMenuShortcut({ className, ...props }: React$1.ComponentProps<"span">): React$1.JSX.Element;
|
|
300
410
|
|
|
411
|
+
/** Composes an informative empty result with optional media and a recovery action. */
|
|
301
412
|
declare function EmptyState({ className, ...props }: React$1.ComponentProps<"div">): React$1.JSX.Element;
|
|
302
413
|
declare function EmptyStateHeader({ className, ...props }: React$1.ComponentProps<"div">): React$1.JSX.Element;
|
|
303
414
|
declare const emptyStateMediaVariants: (props?: ({
|
|
@@ -308,29 +419,46 @@ declare function EmptyStateTitle({ className, ...props }: React$1.ComponentProps
|
|
|
308
419
|
declare function EmptyStateDescription({ className, ...props }: React$1.ComponentProps<"p">): React$1.JSX.Element;
|
|
309
420
|
declare function EmptyStateContent({ className, ...props }: React$1.ComponentProps<"div">): React$1.JSX.Element;
|
|
310
421
|
|
|
422
|
+
/** Accessible label associated with a React Aria form control. */
|
|
311
423
|
declare const Label: React$1.ForwardRefExoticComponent<Omit<react_aria_components.LabelProps & React$1.RefAttributes<HTMLLabelElement>, "ref"> & React$1.RefAttributes<HTMLLabelElement>>;
|
|
312
424
|
type LabelProps = ComponentPropsWithRef<typeof Label>;
|
|
313
425
|
|
|
426
|
+
/** Semantic fieldset for controls that share a {@link FieldLegend}. */
|
|
314
427
|
declare function FieldSet({ className, ...props }: React$1.ComponentProps<"fieldset">): React$1.JSX.Element;
|
|
428
|
+
/** Label for a {@link FieldSet}, with heading or label styling. */
|
|
315
429
|
declare function FieldLegend({ className, variant, ...props }: React$1.ComponentProps<"legend"> & {
|
|
316
430
|
variant?: "legend" | "label";
|
|
317
431
|
}): React$1.JSX.Element;
|
|
432
|
+
/** Responsive vertical stack for related {@link Field} components. */
|
|
318
433
|
declare function FieldGroup({ className, ...props }: React$1.ComponentProps<"div">): React$1.JSX.Element;
|
|
319
434
|
declare const fieldVariants: (props?: ({
|
|
320
435
|
orientation?: "horizontal" | "vertical" | "responsive" | null | undefined;
|
|
321
436
|
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
322
|
-
|
|
437
|
+
/** Props for the layout wrapper of a labelled form control. */
|
|
438
|
+
type FieldProps = React$1.ComponentProps<"div"> & VariantProps<typeof fieldVariants> & {
|
|
439
|
+
/** Layout of the label and control; `responsive` changes at the field-group container breakpoint. */
|
|
440
|
+
orientation?: VariantProps<typeof fieldVariants>["orientation"];
|
|
441
|
+
};
|
|
442
|
+
/** Groups a form control, its label and descriptive or error text. */
|
|
323
443
|
declare function Field({ className, orientation, ...props }: FieldProps): React$1.JSX.Element;
|
|
444
|
+
/** Stacks the label, description and validation message for a {@link Field}. */
|
|
324
445
|
declare function FieldContent({ className, ...props }: React$1.ComponentProps<"div">): React$1.JSX.Element;
|
|
446
|
+
/** Label associated with the control inside a {@link Field}. */
|
|
325
447
|
declare function FieldLabel({ className, ...props }: React$1.ComponentProps<typeof Label>): React$1.JSX.Element;
|
|
448
|
+
/** Short visible title for a {@link Field} that is not a native label. */
|
|
326
449
|
declare function FieldTitle({ className, ...props }: React$1.ComponentProps<"div">): React$1.JSX.Element;
|
|
450
|
+
/** Helper text that clarifies how to complete a {@link Field}. */
|
|
327
451
|
declare function FieldDescription({ className, ...props }: React$1.ComponentProps<"p">): React$1.JSX.Element;
|
|
452
|
+
/** Visual divider between groups of fields, optionally with a text label. */
|
|
328
453
|
declare function FieldSeparator({ className, children, ...props }: React$1.ComponentProps<"div">): React$1.JSX.Element;
|
|
454
|
+
/** Props for a validation message rendered by {@link FieldError}. */
|
|
329
455
|
type FieldErrorProps = React$1.ComponentProps<"div"> & {
|
|
456
|
+
/** Validation errors whose unique messages are rendered when no children are supplied. */
|
|
330
457
|
errors?: Array<{
|
|
331
458
|
message?: string;
|
|
332
459
|
} | undefined>;
|
|
333
460
|
};
|
|
461
|
+
/** Announced validation message for a {@link Field}. */
|
|
334
462
|
declare function FieldError({ className, children, errors, ...props }: FieldErrorProps): React$1.JSX.Element | null;
|
|
335
463
|
|
|
336
464
|
type FormFeedbackState = {
|
|
@@ -355,22 +483,32 @@ declare function useFormFeedback(options?: {
|
|
|
355
483
|
reset: () => void;
|
|
356
484
|
};
|
|
357
485
|
interface FormFeedbackProps {
|
|
486
|
+
/** Current submission state and optional user-facing result message. */
|
|
358
487
|
state: FormFeedbackState;
|
|
359
488
|
className?: string;
|
|
489
|
+
/** Text announced while the form submission is pending. */
|
|
360
490
|
pendingLabel?: string;
|
|
491
|
+
/** Fallback text used when a successful state has no message. */
|
|
361
492
|
successLabel?: string;
|
|
362
493
|
}
|
|
494
|
+
/** Live status message for pending, successful and failed form submissions. */
|
|
363
495
|
declare function FormFeedback({ state, className, pendingLabel, successLabel }: FormFeedbackProps): React$1.JSX.Element;
|
|
364
496
|
|
|
365
497
|
interface FormRowProps {
|
|
498
|
+
/** Visible label associated with the form control. */
|
|
366
499
|
label: ReactNode;
|
|
500
|
+
/** Identifier of the labelled form control. */
|
|
367
501
|
htmlFor: string;
|
|
502
|
+
/** Marks the label as required for assistive technology. */
|
|
368
503
|
required?: boolean;
|
|
504
|
+
/** Supplementary guidance displayed below the control. */
|
|
369
505
|
hint?: ReactNode;
|
|
506
|
+
/** Validation message announced to the user. */
|
|
370
507
|
error?: ReactNode;
|
|
371
508
|
className?: string;
|
|
372
509
|
children: ReactNode;
|
|
373
510
|
}
|
|
511
|
+
/** Labelled form-control row with optional help text and validation feedback. */
|
|
374
512
|
declare function FormRow({ label, htmlFor, required, hint, error, className, children }: FormRowProps): React$1.JSX.Element;
|
|
375
513
|
|
|
376
514
|
type IconButtonProps = Omit<ButtonProps, "children"> & {
|
|
@@ -386,11 +524,13 @@ declare function IconButton({ label, children, href, className, variant, ...prop
|
|
|
386
524
|
type CompatibleRef$2<T> = ((instance: T | null) => unknown) | {
|
|
387
525
|
readonly current: T | null;
|
|
388
526
|
} | null;
|
|
527
|
+
/** Props for a single-line text input. */
|
|
389
528
|
type InputProps = Omit<InputProps$1, "ref"> & {
|
|
529
|
+
/** Ref compatible with all supported React 19 type releases. */
|
|
390
530
|
ref?: CompatibleRef$2<HTMLInputElement>;
|
|
391
531
|
};
|
|
392
532
|
declare const InputImpl: React$1.ForwardRefExoticComponent<InputProps$1 & React$1.RefAttributes<HTMLInputElement>>;
|
|
393
|
-
/**
|
|
533
|
+
/** Accessible single-line input with a ref type compatible across React 19 type releases. */
|
|
394
534
|
declare const Input: (props: InputProps) => ReturnType<typeof InputImpl>;
|
|
395
535
|
|
|
396
536
|
type CompatibleRef$1<T> = ((instance: T | null) => unknown) | {
|
|
@@ -403,13 +543,14 @@ declare const TextareaImpl: React$1.ForwardRefExoticComponent<TextAreaProps & Re
|
|
|
403
543
|
/** Forward-ref component with a ref type compatible across React 19 type releases. */
|
|
404
544
|
declare const Textarea: (props: TextareaProps) => ReturnType<typeof TextareaImpl>;
|
|
405
545
|
|
|
546
|
+
/** Visually joins an input or textarea with contextual text and actions. */
|
|
406
547
|
declare function InputGroup({ className, ...props }: React.ComponentProps<"div">): React$1.JSX.Element;
|
|
407
548
|
declare const inputGroupAddonVariants: (props?: ({
|
|
408
549
|
align?: "inline-end" | "inline-start" | "block-end" | "block-start" | null | undefined;
|
|
409
550
|
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
410
551
|
declare function InputGroupAddon({ className, align, onClick, ...props }: React.ComponentProps<"div"> & VariantProps<typeof inputGroupAddonVariants>): React$1.JSX.Element;
|
|
411
552
|
declare const inputGroupButtonVariants: (props?: ({
|
|
412
|
-
size?: "
|
|
553
|
+
size?: "xs" | "sm" | "icon-xs" | "icon-sm" | null | undefined;
|
|
413
554
|
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
414
555
|
type InputGroupButtonProps = Omit<ButtonProps, "size"> & VariantProps<typeof inputGroupButtonVariants>;
|
|
415
556
|
declare function InputGroupButton({ className, type, variant, size, ...props }: InputGroupButtonProps): React$1.JSX.Element;
|
|
@@ -417,18 +558,36 @@ declare function InputGroupText({ className, ...props }: React.ComponentProps<"s
|
|
|
417
558
|
declare function InputGroupInput({ className, ...props }: React.ComponentProps<typeof Input>): React$1.JSX.Element;
|
|
418
559
|
declare function InputGroupTextarea({ className, ...props }: React.ComponentProps<typeof Textarea>): React$1.JSX.Element;
|
|
419
560
|
|
|
561
|
+
/** Formats a keyboard key or shortcut with semantic `kbd` markup. */
|
|
420
562
|
declare function Kbd({ className, ...props }: React$1.ComponentProps<"kbd">): React$1.JSX.Element;
|
|
421
563
|
declare function KbdGroup({ className, ...props }: React$1.ComponentProps<"span">): React$1.JSX.Element;
|
|
422
564
|
|
|
565
|
+
/** Busy overlay that keeps the loading state available to assistive technology. */
|
|
423
566
|
declare function LoadingOverlay({ label, className, ...props }: React$1.ComponentProps<"div"> & {
|
|
424
567
|
label?: string;
|
|
425
568
|
}): React$1.JSX.Element;
|
|
426
569
|
|
|
427
570
|
declare const MenuTrigger: typeof MenuTrigger$1;
|
|
428
571
|
declare function MenuContent({ className, ...props }: React.ComponentProps<typeof Popover$1>): React$1.JSX.Element;
|
|
572
|
+
/** Accessible collection of actions or options within a {@link MenuTrigger}. */
|
|
429
573
|
declare function Menu<T extends object>({ className, ...props }: MenuProps<T>): React$1.JSX.Element;
|
|
430
574
|
declare function MenuItem<T extends object>({ className, children, ...props }: MenuItemProps<T>): React$1.JSX.Element;
|
|
431
575
|
|
|
576
|
+
type MetricCardProps = Omit<React$1.ComponentProps<typeof Card>, "children"> & {
|
|
577
|
+
/** Short name of the metric. */
|
|
578
|
+
label: React$1.ReactNode;
|
|
579
|
+
/** Primary metric value. */
|
|
580
|
+
value: React$1.ReactNode;
|
|
581
|
+
/** Optional supporting information, such as freshness or comparison. */
|
|
582
|
+
description?: React$1.ReactNode;
|
|
583
|
+
/** Decorative or labelled visual accompanying the metric. */
|
|
584
|
+
icon?: React$1.ReactNode;
|
|
585
|
+
/** Semantic emphasis without coupling the card to a product status. */
|
|
586
|
+
tone?: "default" | "success" | "warning" | "danger" | "info";
|
|
587
|
+
};
|
|
588
|
+
/** Compact, accessible summary of a labelled metric. */
|
|
589
|
+
declare function MetricCard({ className, label, value, description, icon, tone, ...props }: MetricCardProps): React$1.JSX.Element;
|
|
590
|
+
|
|
432
591
|
declare const sizeClasses: {
|
|
433
592
|
readonly sm: "w-[min(calc(100dvw-2rem),24rem)]";
|
|
434
593
|
readonly md: "w-[min(calc(100dvw-2rem),28rem)]";
|
|
@@ -470,6 +629,7 @@ declare const OtpInputImpl: React$1.ForwardRefExoticComponent<Omit<OtpInputProps
|
|
|
470
629
|
/** A single accessible input visually split into slots for numeric one-time codes. */
|
|
471
630
|
declare const OtpInput: (props: OtpInputProps) => ReturnType<typeof OtpInputImpl>;
|
|
472
631
|
|
|
632
|
+
/** Page-level heading layout with optional description and actions. */
|
|
473
633
|
declare function PageHeader({ className, ...props }: React$1.ComponentProps<"header">): React$1.JSX.Element;
|
|
474
634
|
declare function PageHeaderHeading({ className, ...props }: React$1.ComponentProps<"div">): React$1.JSX.Element;
|
|
475
635
|
declare function PageHeaderTitle({ className, ...props }: React$1.ComponentProps<"h1">): React$1.JSX.Element;
|
|
@@ -477,12 +637,22 @@ declare function PageHeaderDescription({ className, ...props }: React$1.Componen
|
|
|
477
637
|
declare function PageHeaderActions({ className, ...props }: React$1.ComponentProps<"div">): React$1.JSX.Element;
|
|
478
638
|
|
|
479
639
|
type PaginationProps = {
|
|
640
|
+
/** Currently selected page, starting at one. */
|
|
480
641
|
page: number;
|
|
642
|
+
/** Total number of pages available. */
|
|
481
643
|
pageCount: number;
|
|
644
|
+
/** Called with the page selected by the user. */
|
|
482
645
|
onPageChange: (page: number) => void;
|
|
646
|
+
/** Accessible name for the page navigation landmark. */
|
|
647
|
+
ariaLabel?: string;
|
|
648
|
+
/** Optional description of the slice of results currently visible. */
|
|
649
|
+
summary?: React$1.ReactNode;
|
|
650
|
+
/** Number of neighbouring pages shown around the current page. */
|
|
651
|
+
siblingCount?: number;
|
|
483
652
|
className?: string;
|
|
484
653
|
};
|
|
485
|
-
|
|
654
|
+
/** Navigation control for a known number of result pages. */
|
|
655
|
+
declare function Pagination({ page, pageCount, onPageChange, ariaLabel, summary, siblingCount, className, }: PaginationProps): React$1.JSX.Element | null;
|
|
486
656
|
|
|
487
657
|
type PopoverProps = Omit<PopoverProps$1, "className"> & {
|
|
488
658
|
className?: string;
|
|
@@ -491,6 +661,7 @@ type PopoverProps = Omit<PopoverProps$1, "className"> & {
|
|
|
491
661
|
/** Wrap a trigger and Popover surface; React Aria handles focus and positioning. */
|
|
492
662
|
declare const PopoverTrigger: typeof DialogTrigger$1;
|
|
493
663
|
declare function Popover({ className, ...props }: PopoverProps): React$1.JSX.Element;
|
|
664
|
+
/** Floating content positioned and focus-managed by {@link PopoverTrigger}. */
|
|
494
665
|
declare const PopoverContent: typeof Popover;
|
|
495
666
|
|
|
496
667
|
type QuantityInputProps = Omit<NumberFieldProps, "children" | "className"> & {
|
|
@@ -502,23 +673,23 @@ type QuantityInputProps = Omit<NumberFieldProps, "children" | "className"> & {
|
|
|
502
673
|
/** A compact quantity control with accessible stepper buttons and numeric keyboard support. */
|
|
503
674
|
declare function QuantityInput({ className, inputClassName, decrementAriaLabel, incrementAriaLabel, minValue, step, ...props }: QuantityInputProps): React$1.JSX.Element;
|
|
504
675
|
|
|
505
|
-
|
|
506
|
-
|
|
507
|
-
declare function SearchInput({ className, ...props }: InputProps$1): React$1.JSX.Element;
|
|
508
|
-
declare function SearchClearButton({ className, children, ...props }: Omit<ButtonProps$1, "className"> & {
|
|
509
|
-
className?: string;
|
|
510
|
-
}): React$1.JSX.Element;
|
|
511
|
-
|
|
676
|
+
/** State container for an accessible select control and its option collection. */
|
|
512
677
|
declare const Select: <T, M extends "multiple" | "single" = "single">(props: SelectProps<T, M> & React.RefAttributes<HTMLDivElement>) => React.ReactElement<unknown, string | React.JSXElementConstructor<any>> | null;
|
|
513
678
|
|
|
679
|
+
/** Button that opens the option list of its parent {@link Select}. */
|
|
514
680
|
declare function SelectTrigger({ className, children, ...props }: ButtonProps$1): React$1.JSX.Element;
|
|
681
|
+
/** Displays the selected option or its placeholder. */
|
|
515
682
|
declare function SelectValue({ className, ...props }: React.ComponentProps<typeof SelectValue$1>): React$1.JSX.Element;
|
|
683
|
+
/** Floating surface that contains a {@link SelectList}. */
|
|
516
684
|
declare function SelectContent({ className, ...props }: React.ComponentProps<typeof Popover$1>): React$1.JSX.Element;
|
|
685
|
+
/** Scrollable list of {@link SelectItem} options. */
|
|
517
686
|
declare function SelectList<T extends object>({ className, ...props }: ListBoxProps<T>): React$1.JSX.Element;
|
|
687
|
+
/** Selectable option within a {@link SelectList}. */
|
|
518
688
|
declare function SelectItem<T extends object>({ className, children, ...props }: ListBoxItemProps<T>): React$1.JSX.Element;
|
|
519
689
|
|
|
520
690
|
declare function SheetTrigger({ ...props }: DialogTriggerProps$1): React$1.JSX.Element;
|
|
521
691
|
declare function SheetClose({ className, variant, size, ...props }: ButtonProps): React$1.JSX.Element;
|
|
692
|
+
/** Dismissable modal panel that slides in from a screen edge. */
|
|
522
693
|
declare function Sheet({ className, children, side, showCloseButton, ...props }: Omit<ModalOverlayProps, "className" | "children"> & Pick<React$1.ComponentProps<typeof Modal>, "isDismissable"> & {
|
|
523
694
|
className?: string;
|
|
524
695
|
children: React$1.ReactNode;
|
|
@@ -540,10 +711,12 @@ type SidebarContextValue = {
|
|
|
540
711
|
toggle: () => void;
|
|
541
712
|
};
|
|
542
713
|
declare function useSidebar(): SidebarContextValue;
|
|
714
|
+
/** Provides the expanded or collapsed state required by sidebar components. */
|
|
543
715
|
declare function SidebarProvider({ defaultCollapsed, children, }: {
|
|
544
716
|
defaultCollapsed?: boolean;
|
|
545
717
|
children: ReactNode;
|
|
546
718
|
}): React$1.JSX.Element;
|
|
719
|
+
/** Primary application navigation; render it within a {@link SidebarProvider}. */
|
|
547
720
|
declare function Sidebar({ className, ...props }: React.ComponentProps<"aside">): React$1.JSX.Element;
|
|
548
721
|
declare function SidebarHeader({ className, ...props }: React.ComponentProps<"div">): React$1.JSX.Element;
|
|
549
722
|
declare function SidebarSearch({ label, shortcut, className, ...props }: React.ComponentProps<"button"> & {
|
|
@@ -567,13 +740,17 @@ declare function SidebarTrigger({ className, ...props }: ButtonProps): React$1.J
|
|
|
567
740
|
declare function SidebarRail({ className, ...props }: React.ComponentProps<"button">): React$1.JSX.Element;
|
|
568
741
|
declare function SidebarMore({ className, ...props }: ButtonProps): React$1.JSX.Element;
|
|
569
742
|
|
|
743
|
+
/** Decorative placeholder displayed while content is loading. */
|
|
570
744
|
declare function Skeleton({ className, ...props }: React$1.ComponentProps<"div">): React$1.JSX.Element;
|
|
571
745
|
|
|
572
746
|
interface SubmitButtonProps extends Omit<ButtonProps, "type"> {
|
|
747
|
+
/** Text displayed while the parent form is submitting or loading is set. */
|
|
573
748
|
pendingLabel?: string;
|
|
749
|
+
/** Explicit loading state in addition to the parent form status. */
|
|
574
750
|
loading?: boolean;
|
|
575
751
|
children: React.ReactNode;
|
|
576
752
|
}
|
|
753
|
+
/** Submit button that disables itself and announces progress while a form is pending. */
|
|
577
754
|
declare function SubmitButton({ pendingLabel, loading, children, isDisabled, size, ...props }: SubmitButtonProps): React$1.JSX.Element;
|
|
578
755
|
|
|
579
756
|
declare const switchSizes: {
|
|
@@ -625,10 +802,15 @@ declare function TableFooter({ className, ...props }: React$1.ComponentProps<"tf
|
|
|
625
802
|
type TabsProps = TabsProps$1;
|
|
626
803
|
type TabProps = TabProps$1;
|
|
627
804
|
type TabPanelProps = TabPanelProps$1;
|
|
805
|
+
/** State container that coordinates a tab list with its associated panels. */
|
|
628
806
|
declare function Tabs({ className, ...props }: TabsProps$1): React$1.JSX.Element;
|
|
807
|
+
/** Container for the selectable {@link TabsTrigger} elements. */
|
|
629
808
|
declare function TabsList<T extends object>({ className, ...props }: TabListProps<T>): React$1.JSX.Element;
|
|
809
|
+
/** Tab control that selects the {@link TabsContent} with the same identifier. */
|
|
630
810
|
declare function TabsTrigger({ className, ...props }: TabProps$1): React$1.JSX.Element;
|
|
811
|
+
/** Container for the panels associated with a {@link TabsList}. */
|
|
631
812
|
declare function TabsPanels<T extends object>({ className, ...props }: TabPanelsProps<T>): React$1.JSX.Element;
|
|
813
|
+
/** Content panel displayed for the selected {@link TabsTrigger}. */
|
|
632
814
|
declare function TabsContent({ className, ...props }: TabPanelProps$1): React$1.JSX.Element;
|
|
633
815
|
|
|
634
816
|
type ToastVariant = "default" | "success" | "error" | "warning" | "info";
|
|
@@ -675,6 +857,7 @@ declare function useToast(): ((options: ToastOptions) => string) & {
|
|
|
675
857
|
declare function ToastProvider({ children }: {
|
|
676
858
|
children: ReactNode;
|
|
677
859
|
}): React$1.JSX.Element;
|
|
860
|
+
/** Viewport that renders notifications created with {@link toast}. */
|
|
678
861
|
declare function Toaster({ position }: {
|
|
679
862
|
position?: ToastPosition;
|
|
680
863
|
}): React$1.JSX.Element;
|
|
@@ -687,14 +870,20 @@ declare function Toast({ id, title, description, variant, action, state, duratio
|
|
|
687
870
|
onDismiss?: () => void;
|
|
688
871
|
}): null;
|
|
689
872
|
|
|
873
|
+
/** Groups related actions with the toolbar semantic role. */
|
|
690
874
|
declare function Toolbar({ className, ...props }: React$1.ComponentProps<"div">): React$1.JSX.Element;
|
|
691
875
|
declare function ToolbarGroup({ className, ...props }: React$1.ComponentProps<"div">): React$1.JSX.Element;
|
|
692
876
|
declare function ToolbarSpacer({ className, ...props }: React$1.ComponentProps<"div">): React$1.JSX.Element;
|
|
693
877
|
|
|
878
|
+
/** Couples a focusable trigger with its {@link Tooltip} content. */
|
|
694
879
|
declare function TooltipTrigger({ delay, children, ...props }: React$1.ComponentProps<typeof TooltipTrigger$1>): React$1.JSX.Element;
|
|
880
|
+
/**
|
|
881
|
+
* Brief contextual information revealed from a {@link TooltipTrigger}.
|
|
882
|
+
* Do not use it as the only label or as essential content.
|
|
883
|
+
*/
|
|
695
884
|
declare function Tooltip({ className, placement, offset, crossOffset, children, ...props }: Omit<React$1.ComponentProps<typeof Tooltip$1>, "children" | "className"> & {
|
|
696
885
|
className?: string;
|
|
697
886
|
children?: React$1.ReactNode;
|
|
698
887
|
}): React$1.JSX.Element;
|
|
699
888
|
|
|
700
|
-
export { Accordion, AccordionContent, AccordionItem, AccordionTrigger, Alert, AlertAction, AlertDescription, type AlertProps, AlertTitle, AppShell, type AppShellBreakpoint, AppShellContent, type AppShellContentProps, AppShellHeader, AppShellMain, AppShellMobileHeader, type AppShellProps, AppShellSidebar, AutocompleteCombobox, type AutocompleteComboboxProps, type AutosaveStatus, Avatar, AvatarBadge, AvatarFallback, AvatarGroup, AvatarGroupCount, AvatarImage, type AvatarProps, Badge, BadgeLink, type BadgeLinkProps, type BadgeProps, Breadcrumb, BreadcrumbLink, BreadcrumbPage, BreadcrumbSeparator, Breadcrumbs, Button, ButtonGroup, ButtonGroupSeparator, ButtonGroupText, type ButtonProps, Card, CardAction, CardContent, CardDescription, CardFooter, CardHeader, type CardProps, CardTitle, Checkbox, type CheckboxProps, Combobox, ComboboxContent, ComboboxInput, ComboboxItem, ComboboxList, Command, CommandContent, CommandInput, CommandItem, CommandList, ConfirmDialog, type ConfirmDialogProps, DangerZone, type DangerZoneProps, Dialog, DialogClose, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogOverlay, DialogPortal, DialogTitle, DialogTrigger, DocPreview, type DocPreviewProps, Drawer, DrawerDescription, DrawerFooter, DrawerHeader, type DrawerProps, DrawerTitle, DropdownMenu, DropdownMenuGroup, DropdownMenuItem, DropdownMenuLabel, DropdownMenuSeparator, DropdownMenuShortcut, DropdownMenuSub, DropdownMenuSubContent, DropdownMenuSubTrigger, DropdownMenuTrigger, EmptyState, EmptyStateContent, EmptyStateDescription, EmptyStateHeader, EmptyStateMedia, EmptyStateTitle, Field, FieldContent, FieldDescription, FieldError, type FieldErrorProps, FieldGroup, FieldLabel, FieldLegend, type FieldProps, FieldSeparator, FieldSet, FieldTitle, FormFeedback, type FormFeedbackProps, type FormFeedbackState, FormRow, type FormRowProps, HighlightMatch, IconButton, type IconButtonProps, Input, InputGroup, InputGroupAddon, InputGroupButton, type InputGroupButtonProps, InputGroupInput, InputGroupText, InputGroupTextarea, type InputProps, Kbd, KbdGroup, Label, type LabelProps, LinkButton, type LinkButtonProps, LoadingOverlay, Menu, MenuContent, MenuItem, MenuTrigger, ModalDialog, type ModalDialogProps, OtpInput, type OtpInputProps, PageHeader, PageHeaderActions, PageHeaderDescription, PageHeaderHeading, PageHeaderTitle, Pagination, type PaginationProps, Popover, PopoverContent, type PopoverProps, PopoverTrigger, QuantityInput, type QuantityInputProps,
|
|
889
|
+
export { Accordion, AccordionContent, AccordionItem, AccordionTrigger, Alert, AlertAction, AlertDescription, AlertDialog, AlertDialogAction, AlertDialogCancel, AlertDialogContent, AlertDialogDescription, AlertDialogFooter, AlertDialogHeader, AlertDialogOverlay, AlertDialogPortal, type AlertDialogProps, AlertDialogTitle, AlertDialogTrigger, type AlertProps, AlertTitle, AppShell, type AppShellBreakpoint, AppShellContent, type AppShellContentProps, AppShellHeader, AppShellMain, AppShellMobileHeader, type AppShellProps, AppShellSidebar, AutocompleteCombobox, type AutocompleteComboboxProps, type AutosaveStatus, Avatar, AvatarBadge, AvatarFallback, AvatarGroup, AvatarGroupCount, AvatarImage, type AvatarProps, Badge, BadgeLink, type BadgeLinkProps, type BadgeProps, Breadcrumb, BreadcrumbLink, BreadcrumbPage, BreadcrumbSeparator, Breadcrumbs, Button, ButtonGroup, ButtonGroupSeparator, ButtonGroupText, type ButtonProps, Card, CardAction, CardContent, CardDescription, CardFooter, CardHeader, type CardProps, CardTitle, Checkbox, type CheckboxProps, Collapsible, CollapsibleContent, type CollapsibleContentProps, type CollapsibleProps, CollapsibleTrigger, type CollapsibleTriggerProps, Combobox, ComboboxContent, ComboboxInput, ComboboxItem, ComboboxList, Command, CommandContent, CommandInput, CommandItem, CommandList, ConfirmDialog, type ConfirmDialogProps, DangerZone, type DangerZoneProps, Dialog, DialogClose, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogOverlay, DialogPortal, DialogTitle, DialogTrigger, DocPreview, type DocPreviewProps, Drawer, DrawerDescription, DrawerFooter, DrawerHeader, type DrawerProps, DrawerTitle, DropdownMenu, DropdownMenuGroup, DropdownMenuItem, DropdownMenuLabel, DropdownMenuSeparator, DropdownMenuShortcut, DropdownMenuSub, DropdownMenuSubContent, DropdownMenuSubTrigger, DropdownMenuTrigger, EmptyState, EmptyStateContent, EmptyStateDescription, EmptyStateHeader, EmptyStateMedia, EmptyStateTitle, Field, FieldContent, FieldDescription, FieldError, type FieldErrorProps, FieldGroup, FieldLabel, FieldLegend, type FieldProps, FieldSeparator, FieldSet, FieldTitle, FormFeedback, type FormFeedbackProps, type FormFeedbackState, FormRow, type FormRowProps, HighlightMatch, IconButton, type IconButtonProps, Input, InputGroup, InputGroupAddon, InputGroupButton, type InputGroupButtonProps, InputGroupInput, InputGroupText, InputGroupTextarea, type InputProps, Kbd, KbdGroup, Label, type LabelProps, LinkButton, type LinkButtonProps, LoadingOverlay, Menu, MenuContent, MenuItem, MenuTrigger, MetricCard, type MetricCardProps, ModalDialog, type ModalDialogProps, OtpInput, type OtpInputProps, PageHeader, PageHeaderActions, PageHeaderDescription, PageHeaderHeading, PageHeaderTitle, Pagination, type PaginationProps, Popover, PopoverContent, type PopoverProps, PopoverTrigger, QuantityInput, type QuantityInputProps, Select, SelectContent, SelectItem, SelectList, SelectTrigger, SelectValue, Separator, type SeparatorProps, Sheet, SheetClose, SheetContent, SheetDescription, SheetFooter, SheetHeader, SheetTitle, SheetTrigger, Sidebar, SidebarContent, SidebarFooter, SidebarGroup, SidebarHeader, SidebarItem, type SidebarItemProps, SidebarMore, SidebarProvider, SidebarRail, SidebarSearch, SidebarSeparator, SidebarTrigger, Skeleton, SubmitButton, type SubmitButtonProps, Switch, type SwitchProps, type TabPanelProps, type TabProps, Table, TableBody, TableCaption, TableCell, TableFooter, TableHead, TableHeader, TableRow, Tabs, TabsContent, TabsList, TabsPanels, type TabsProps, TabsTrigger, type TextMatchPart, Textarea, type TextareaProps, Toast, type ToastAction, type ToastData, type ToastOptions, type ToastPosition, ToastProvider, type ToastVariant, ToastViewport, Toaster, Toolbar, ToolbarGroup, ToolbarSpacer, Tooltip, TooltipTrigger, type UseAutosaveOptions, type UseFormDirtyResult, actionRipple, alertVariants, badgeVariants, buttonGroupVariants, buttonVariants, cn, emptyStateMediaVariants, fieldVariants, formSnapshot, getTextMatchParts, inputGroupAddonVariants, toast, useAutosave, useDebouncedValue, useFormDirty, useFormFeedback, useSidebar, useToast };
|