@doscientos/ui 0.1.22 → 0.1.25
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 +865 -525
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +239 -33
- package/dist/index.d.ts +239 -33
- package/dist/index.js +797 -464
- package/dist/index.js.map +1 -1
- package/dist/styles.css +1 -1
- package/package.json +2 -1
package/dist/index.d.ts
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";
|
|
@@ -36,8 +36,7 @@ interface UseFormDirtyResult<T extends HTMLFormElement = HTMLFormElement> {
|
|
|
36
36
|
declare function useFormDirty<T extends HTMLFormElement = HTMLFormElement>(): UseFormDirtyResult<T>;
|
|
37
37
|
|
|
38
38
|
/**
|
|
39
|
-
*
|
|
40
|
-
* The effect owns the element's `::after` pseudo-element.
|
|
39
|
+
* Provides the clipping and stacking context for a transient action ripple.
|
|
41
40
|
*/
|
|
42
41
|
declare const actionRipple: (props?: class_variance_authority_types.ClassProp | undefined) => string;
|
|
43
42
|
|
|
@@ -54,17 +53,84 @@ type TextMatchPart = {
|
|
|
54
53
|
*/
|
|
55
54
|
declare function getTextMatchParts(text: string, query: string): TextMatchPart[];
|
|
56
55
|
|
|
56
|
+
/** Groups related expandable sections and manages their expanded state. */
|
|
57
57
|
declare function Accordion({ className, ...props }: DisclosureGroupProps): React$1.JSX.Element;
|
|
58
|
+
/** A single expandable section within an {@link Accordion}. */
|
|
58
59
|
declare function AccordionItem({ className, ...props }: DisclosureProps): React$1.JSX.Element;
|
|
60
|
+
/** Accessible heading button that expands or collapses its {@link AccordionItem}. */
|
|
59
61
|
declare function AccordionTrigger({ className, children, ...props }: Omit<ButtonProps$1, "children"> & {
|
|
60
62
|
children: React$1.ReactNode;
|
|
61
63
|
}): React$1.JSX.Element;
|
|
64
|
+
/** Panel revealed when its parent {@link AccordionItem} is expanded. */
|
|
62
65
|
declare function AccordionContent({ className, children, ...props }: DisclosurePanelProps): React$1.JSX.Element;
|
|
63
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
|
+
|
|
64
126
|
declare const alertVariants: (props?: ({
|
|
65
|
-
variant?: "default" | "
|
|
127
|
+
variant?: "default" | "destructive" | "info" | "success" | "warning" | null | undefined;
|
|
66
128
|
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
67
|
-
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. */
|
|
68
134
|
declare function Alert({ className, variant, ...props }: AlertProps): React$1.JSX.Element;
|
|
69
135
|
declare function AlertTitle({ className, ...props }: React$1.ComponentProps<"div">): React$1.JSX.Element;
|
|
70
136
|
declare function AlertDescription({ className, ...props }: React$1.ComponentProps<"div">): React$1.JSX.Element;
|
|
@@ -75,6 +141,7 @@ type AppShellProps = React$1.ComponentProps<"div"> & {
|
|
|
75
141
|
/** Breakpoint at which the persistent sidebar replaces the mobile header. */
|
|
76
142
|
sidebarBreakpoint?: AppShellBreakpoint;
|
|
77
143
|
};
|
|
144
|
+
/** Application layout foundation for a responsive sidebar, header and content area. */
|
|
78
145
|
declare function AppShell({ className, sidebarBreakpoint, ...props }: AppShellProps): React$1.JSX.Element;
|
|
79
146
|
declare function AppShellSidebar({ className, ...props }: React$1.ComponentProps<"aside">): React$1.JSX.Element;
|
|
80
147
|
declare function AppShellMain({ className, ...props }: React$1.ComponentProps<"main">): React$1.JSX.Element;
|
|
@@ -91,8 +158,10 @@ type AppShellContentProps = React$1.ComponentProps<"div"> & {
|
|
|
91
158
|
declare function AppShellContent({ className, size, padded, scrollable, ...props }: AppShellContentProps): React$1.JSX.Element;
|
|
92
159
|
|
|
93
160
|
type AvatarProps = React.ComponentProps<"div"> & {
|
|
161
|
+
/** Avatar dimensions and fallback text size. */
|
|
94
162
|
size?: "xs" | "sm" | "default" | "lg";
|
|
95
163
|
};
|
|
164
|
+
/** Displays an image or fallback content for a person, organisation or entity. */
|
|
96
165
|
declare function Avatar({ className, size, children, ...props }: AvatarProps): React$1.JSX.Element;
|
|
97
166
|
declare function AvatarImage({ className, src, onError, onLoad, ...props }: React.ComponentProps<"img">): React$1.JSX.Element | null;
|
|
98
167
|
declare function AvatarFallback({ className, ...props }: React.ComponentProps<"span">): React$1.JSX.Element | null;
|
|
@@ -101,15 +170,20 @@ declare function AvatarGroup({ className, ...props }: React.ComponentProps<"div"
|
|
|
101
170
|
declare function AvatarGroupCount({ className, ...props }: React.ComponentProps<"span">): React$1.JSX.Element;
|
|
102
171
|
|
|
103
172
|
declare const badgeVariants: (props?: ({
|
|
104
|
-
variant?: "link" | "default" | "
|
|
173
|
+
variant?: "link" | "default" | "outline" | "secondary" | "ghost" | "destructive" | "info" | "success" | "warning" | "neutral" | "danger" | null | undefined;
|
|
105
174
|
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
106
|
-
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. */
|
|
107
180
|
declare function Badge({ className, variant, ...props }: BadgeProps): React$1.JSX.Element;
|
|
108
181
|
type BadgeLinkProps = Omit<LinkProps, "className"> & VariantProps<typeof badgeVariants> & {
|
|
109
182
|
className?: string;
|
|
110
183
|
};
|
|
111
184
|
declare function BadgeLink({ className, variant, ...props }: BadgeLinkProps): React$1.JSX.Element;
|
|
112
185
|
|
|
186
|
+
/** Accessible navigation trail showing the current page's hierarchy. */
|
|
113
187
|
declare function Breadcrumbs({ className, ...props }: React.ComponentProps<typeof Breadcrumbs$1>): React$1.JSX.Element;
|
|
114
188
|
declare function Breadcrumb({ className, ...props }: React.ComponentProps<typeof Breadcrumb$1>): React$1.JSX.Element;
|
|
115
189
|
declare function BreadcrumbLink({ className, ...props }: React.ComponentProps<typeof Link>): React$1.JSX.Element;
|
|
@@ -117,33 +191,24 @@ declare function BreadcrumbPage({ className, ...props }: React.ComponentProps<"s
|
|
|
117
191
|
declare function BreadcrumbSeparator({ children, className, ...props }: React.ComponentProps<"span">): React$1.JSX.Element;
|
|
118
192
|
|
|
119
193
|
type SeparatorProps = React.ComponentProps<typeof Separator$1>;
|
|
194
|
+
/** Semantic horizontal or vertical divider between related content. */
|
|
120
195
|
declare function Separator({ className, orientation, ...props }: SeparatorProps): React$1.JSX.Element;
|
|
121
196
|
|
|
122
197
|
declare const buttonGroupVariants: (props?: ({
|
|
123
198
|
orientation?: "horizontal" | "vertical" | null | undefined;
|
|
124
199
|
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
200
|
+
/** Groups adjacent actions into a single connected control. */
|
|
125
201
|
declare function ButtonGroup({ className, orientation, ...props }: React$1.ComponentProps<"div"> & VariantProps<typeof buttonGroupVariants>): React$1.JSX.Element;
|
|
126
202
|
declare function ButtonGroupText({ className, render, ...props }: React$1.ComponentProps<"div"> & {
|
|
127
203
|
render?: (props: React$1.HTMLAttributes<HTMLElement>) => React$1.ReactNode;
|
|
128
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;
|
|
129
205
|
declare function ButtonGroupSeparator({ className, orientation, ...props }: React$1.ComponentProps<typeof Separator>): React$1.JSX.Element;
|
|
130
206
|
|
|
131
|
-
declare const buttonVariants: (props?: ({
|
|
132
|
-
variant?: "link" | "default" | "destructive" | "secondary" | "outline" | "ghost" | null | undefined;
|
|
133
|
-
size?: "default" | "sm" | "lg" | "xs" | "icon" | "icon-xs" | "icon-sm" | "icon-lg" | null | undefined;
|
|
134
|
-
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
135
|
-
type ButtonProps = Omit<ButtonProps$1, "className"> & React$1.RefAttributes<HTMLButtonElement> & VariantProps<typeof buttonVariants> & {
|
|
136
|
-
className?: string;
|
|
137
|
-
};
|
|
138
|
-
declare function Button({ className, variant, size, ...props }: ButtonProps): React$1.JSX.Element;
|
|
139
|
-
type LinkButtonProps = Omit<LinkProps, "className"> & VariantProps<typeof buttonVariants> & {
|
|
140
|
-
className?: string;
|
|
141
|
-
};
|
|
142
|
-
declare function LinkButton({ className, variant, size, ...props }: LinkButtonProps): React$1.JSX.Element;
|
|
143
|
-
|
|
144
207
|
type CardProps = React$1.ComponentProps<"div"> & {
|
|
208
|
+
/** Spacing preset for standard or compact content. */
|
|
145
209
|
size?: "default" | "sm";
|
|
146
210
|
};
|
|
211
|
+
/** Surface for related content with optional header, body, action and footer regions. */
|
|
147
212
|
declare function Card({ className, size, ...props }: CardProps): React$1.JSX.Element;
|
|
148
213
|
declare function CardHeader({ className, ...props }: React$1.ComponentProps<"div">): React$1.JSX.Element;
|
|
149
214
|
declare function CardTitle({ className, ...props }: React$1.ComponentProps<"div">): React$1.JSX.Element;
|
|
@@ -152,11 +217,35 @@ declare function CardAction({ className, ...props }: React$1.ComponentProps<"div
|
|
|
152
217
|
declare function CardContent({ className, ...props }: React$1.ComponentProps<"div">): React$1.JSX.Element;
|
|
153
218
|
declare function CardFooter({ className, ...props }: React$1.ComponentProps<"div">): React$1.JSX.Element;
|
|
154
219
|
|
|
220
|
+
/** Props for an accessible boolean form control. */
|
|
155
221
|
type CheckboxProps = Omit<CheckboxProps$1, "className"> & {
|
|
156
222
|
className?: string;
|
|
157
223
|
};
|
|
224
|
+
/** Checkbox that supports controlled and uncontrolled selection. */
|
|
158
225
|
declare function Checkbox({ className, children, ...props }: CheckboxProps): React$1.JSX.Element;
|
|
159
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
|
+
|
|
160
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;
|
|
161
250
|
|
|
162
251
|
declare function ComboboxInput({ className, ...props }: InputProps$1): React$1.JSX.Element;
|
|
@@ -189,6 +278,7 @@ type AutocompleteComboboxProps<T extends object> = Omit<ComboBoxProps<T>, "child
|
|
|
189
278
|
/** A safe, keyboard-first autocomplete for users, contracts and other entities. */
|
|
190
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;
|
|
191
280
|
|
|
281
|
+
/** Searchable command palette built from an accessible combobox and option list. */
|
|
192
282
|
declare function Command<T extends object>({ className, ...props }: ComboBoxProps<T>): React$1.JSX.Element;
|
|
193
283
|
declare function CommandInput({ className, ...props }: React.ComponentProps<typeof Input$1>): React$1.JSX.Element;
|
|
194
284
|
declare function CommandContent({ className, ...props }: React.ComponentProps<typeof Popover$1>): React$1.JSX.Element;
|
|
@@ -209,17 +299,35 @@ type ConfirmDialogProps = {
|
|
|
209
299
|
/** Controlled confirmation dialog for irreversible actions. */
|
|
210
300
|
declare function ConfirmDialog({ open, onOpenChange, title, description, confirmLabel, cancelLabel, destructive, pending, onConfirm, }: ConfirmDialogProps): React$1.JSX.Element;
|
|
211
301
|
|
|
302
|
+
type DangerZoneProps = {
|
|
303
|
+
children: React$1.ReactNode;
|
|
304
|
+
className?: string;
|
|
305
|
+
defaultOpen?: boolean;
|
|
306
|
+
description?: string;
|
|
307
|
+
title?: string;
|
|
308
|
+
};
|
|
309
|
+
/** Collapsed-by-default container for actions that are hard to reverse. */
|
|
310
|
+
declare function DangerZone({ title, description, defaultOpen, className, children, }: DangerZoneProps): React$1.JSX.Element;
|
|
311
|
+
|
|
312
|
+
/** Props for a controlled or uncontrolled dialog state container. */
|
|
212
313
|
type DialogProps = {
|
|
213
314
|
children: React$1.ReactNode;
|
|
315
|
+
/** Initial state when the dialog is uncontrolled. */
|
|
214
316
|
defaultOpen?: boolean;
|
|
317
|
+
/** Called after the open state changes. */
|
|
215
318
|
onOpenChange?: (open: boolean) => void;
|
|
319
|
+
/** Controlled open state. Use with {@link onOpenChange}. */
|
|
216
320
|
open?: boolean;
|
|
217
321
|
};
|
|
322
|
+
/** Coordinates the trigger, overlay and content of a modal dialog. */
|
|
218
323
|
declare function Dialog({ children, defaultOpen, onOpenChange, open: controlledOpen }: DialogProps): React$1.JSX.Element;
|
|
219
324
|
type DialogTriggerProps = Omit<React$1.ComponentProps<typeof Button>, "onPress"> & {
|
|
325
|
+
/** Renders and augments the single child instead of rendering a {@link Button}. */
|
|
220
326
|
asChild?: boolean;
|
|
221
327
|
};
|
|
328
|
+
/** Opens the parent {@link Dialog}. */
|
|
222
329
|
declare function DialogTrigger({ asChild, children, onClick, ...props }: DialogTriggerProps): React$1.JSX.Element;
|
|
330
|
+
/** Groups dialog content rendered in the overlay layer. */
|
|
223
331
|
declare function DialogPortal({ children }: {
|
|
224
332
|
children?: React$1.ReactNode;
|
|
225
333
|
}): React$1.JSX.Element;
|
|
@@ -227,6 +335,7 @@ type DialogOverlayProps = Omit<ModalOverlayProps, "children" | "className" | "is
|
|
|
227
335
|
children?: React$1.ReactNode;
|
|
228
336
|
className?: string;
|
|
229
337
|
};
|
|
338
|
+
/** Dismissable backdrop displayed while the parent {@link Dialog} is open. */
|
|
230
339
|
declare function DialogOverlay({ children, className, ...props }: DialogOverlayProps): React$1.JSX.Element | null;
|
|
231
340
|
type DialogContentProps = Omit<React$1.ComponentProps<typeof Dialog$1>, "children" | "className"> & {
|
|
232
341
|
children?: React$1.ReactNode;
|
|
@@ -234,23 +343,40 @@ type DialogContentProps = Omit<React$1.ComponentProps<typeof Dialog$1>, "childre
|
|
|
234
343
|
onOverlayClick?: React$1.MouseEventHandler<HTMLDivElement>;
|
|
235
344
|
showCloseButton?: boolean;
|
|
236
345
|
};
|
|
346
|
+
/** Focus-managed modal content. Include a {@link DialogTitle} to give it an accessible name. */
|
|
237
347
|
declare function DialogContent({ children, className, onOverlayClick, showCloseButton, ...props }: DialogContentProps): React$1.JSX.Element;
|
|
238
348
|
type DialogCloseProps = Omit<React$1.ComponentProps<typeof Button>, "onPress"> & {
|
|
349
|
+
/** Renders and augments the single child instead of rendering a {@link Button}. */
|
|
239
350
|
asChild?: boolean;
|
|
240
351
|
};
|
|
352
|
+
/** Closes the parent {@link Dialog}. */
|
|
241
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. */
|
|
242
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. */
|
|
243
357
|
declare function DialogFooter({ className, showCloseButton, children, ...props }: React$1.ComponentProps<"div"> & {
|
|
244
358
|
showCloseButton?: boolean;
|
|
245
359
|
}): React$1.JSX.Element;
|
|
360
|
+
/** Title used to give the parent {@link DialogContent} an accessible name. */
|
|
246
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}. */
|
|
247
363
|
declare function DialogDescription({ className, ...props }: Omit<React$1.ComponentProps<typeof Text>, "slot">): React$1.JSX.Element;
|
|
248
364
|
|
|
365
|
+
type DocPreviewProps = {
|
|
366
|
+
/** Signed storage URL, generated by the consuming application. */
|
|
367
|
+
mimeType: string | null;
|
|
368
|
+
name: string;
|
|
369
|
+
url: string | null;
|
|
370
|
+
};
|
|
371
|
+
declare function DocPreview({ url, mimeType, name }: DocPreviewProps): React$1.JSX.Element;
|
|
372
|
+
|
|
249
373
|
interface DrawerProps extends Omit<ModalOverlayProps, "children" | "className"> {
|
|
250
374
|
children: React.ReactNode;
|
|
375
|
+
/** Screen edge from which the drawer enters. */
|
|
251
376
|
side?: "left" | "right" | "bottom";
|
|
252
377
|
className?: string;
|
|
253
378
|
}
|
|
379
|
+
/** Dismissable modal panel anchored to an edge of the viewport. */
|
|
254
380
|
declare function Drawer({ children, side, className, ...props }: DrawerProps): React$1.JSX.Element;
|
|
255
381
|
declare function DrawerHeader({ className, ...props }: React.ComponentProps<"div">): React$1.JSX.Element;
|
|
256
382
|
declare function DrawerFooter({ className, ...props }: React.ComponentProps<"div">): React$1.JSX.Element;
|
|
@@ -258,6 +384,7 @@ declare function DrawerTitle({ className, ...props }: React.ComponentProps<"h2">
|
|
|
258
384
|
declare function DrawerDescription({ className, ...props }: React.ComponentProps<"p">): React$1.JSX.Element;
|
|
259
385
|
|
|
260
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}. */
|
|
261
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"> & {
|
|
262
389
|
"data-slot"?: string;
|
|
263
390
|
className?: string;
|
|
@@ -281,6 +408,7 @@ declare function DropdownMenuSubContent({ placement, crossOffset, offset, classN
|
|
|
281
408
|
declare function DropdownMenuSeparator({ className, ...props }: React$1.ComponentProps<typeof Separator$1>): React$1.JSX.Element;
|
|
282
409
|
declare function DropdownMenuShortcut({ className, ...props }: React$1.ComponentProps<"span">): React$1.JSX.Element;
|
|
283
410
|
|
|
411
|
+
/** Composes an informative empty result with optional media and a recovery action. */
|
|
284
412
|
declare function EmptyState({ className, ...props }: React$1.ComponentProps<"div">): React$1.JSX.Element;
|
|
285
413
|
declare function EmptyStateHeader({ className, ...props }: React$1.ComponentProps<"div">): React$1.JSX.Element;
|
|
286
414
|
declare const emptyStateMediaVariants: (props?: ({
|
|
@@ -291,29 +419,46 @@ declare function EmptyStateTitle({ className, ...props }: React$1.ComponentProps
|
|
|
291
419
|
declare function EmptyStateDescription({ className, ...props }: React$1.ComponentProps<"p">): React$1.JSX.Element;
|
|
292
420
|
declare function EmptyStateContent({ className, ...props }: React$1.ComponentProps<"div">): React$1.JSX.Element;
|
|
293
421
|
|
|
422
|
+
/** Accessible label associated with a React Aria form control. */
|
|
294
423
|
declare const Label: React$1.ForwardRefExoticComponent<Omit<react_aria_components.LabelProps & React$1.RefAttributes<HTMLLabelElement>, "ref"> & React$1.RefAttributes<HTMLLabelElement>>;
|
|
295
424
|
type LabelProps = ComponentPropsWithRef<typeof Label>;
|
|
296
425
|
|
|
426
|
+
/** Semantic fieldset for controls that share a {@link FieldLegend}. */
|
|
297
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. */
|
|
298
429
|
declare function FieldLegend({ className, variant, ...props }: React$1.ComponentProps<"legend"> & {
|
|
299
430
|
variant?: "legend" | "label";
|
|
300
431
|
}): React$1.JSX.Element;
|
|
432
|
+
/** Responsive vertical stack for related {@link Field} components. */
|
|
301
433
|
declare function FieldGroup({ className, ...props }: React$1.ComponentProps<"div">): React$1.JSX.Element;
|
|
302
434
|
declare const fieldVariants: (props?: ({
|
|
303
435
|
orientation?: "horizontal" | "vertical" | "responsive" | null | undefined;
|
|
304
436
|
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
305
|
-
|
|
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. */
|
|
306
443
|
declare function Field({ className, orientation, ...props }: FieldProps): React$1.JSX.Element;
|
|
444
|
+
/** Stacks the label, description and validation message for a {@link Field}. */
|
|
307
445
|
declare function FieldContent({ className, ...props }: React$1.ComponentProps<"div">): React$1.JSX.Element;
|
|
446
|
+
/** Label associated with the control inside a {@link Field}. */
|
|
308
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. */
|
|
309
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}. */
|
|
310
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. */
|
|
311
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}. */
|
|
312
455
|
type FieldErrorProps = React$1.ComponentProps<"div"> & {
|
|
456
|
+
/** Validation errors whose unique messages are rendered when no children are supplied. */
|
|
313
457
|
errors?: Array<{
|
|
314
458
|
message?: string;
|
|
315
459
|
} | undefined>;
|
|
316
460
|
};
|
|
461
|
+
/** Announced validation message for a {@link Field}. */
|
|
317
462
|
declare function FieldError({ className, children, errors, ...props }: FieldErrorProps): React$1.JSX.Element | null;
|
|
318
463
|
|
|
319
464
|
type FormFeedbackState = {
|
|
@@ -338,22 +483,32 @@ declare function useFormFeedback(options?: {
|
|
|
338
483
|
reset: () => void;
|
|
339
484
|
};
|
|
340
485
|
interface FormFeedbackProps {
|
|
486
|
+
/** Current submission state and optional user-facing result message. */
|
|
341
487
|
state: FormFeedbackState;
|
|
342
488
|
className?: string;
|
|
489
|
+
/** Text announced while the form submission is pending. */
|
|
343
490
|
pendingLabel?: string;
|
|
491
|
+
/** Fallback text used when a successful state has no message. */
|
|
344
492
|
successLabel?: string;
|
|
345
493
|
}
|
|
494
|
+
/** Live status message for pending, successful and failed form submissions. */
|
|
346
495
|
declare function FormFeedback({ state, className, pendingLabel, successLabel }: FormFeedbackProps): React$1.JSX.Element;
|
|
347
496
|
|
|
348
497
|
interface FormRowProps {
|
|
498
|
+
/** Visible label associated with the form control. */
|
|
349
499
|
label: ReactNode;
|
|
500
|
+
/** Identifier of the labelled form control. */
|
|
350
501
|
htmlFor: string;
|
|
502
|
+
/** Marks the label as required for assistive technology. */
|
|
351
503
|
required?: boolean;
|
|
504
|
+
/** Supplementary guidance displayed below the control. */
|
|
352
505
|
hint?: ReactNode;
|
|
506
|
+
/** Validation message announced to the user. */
|
|
353
507
|
error?: ReactNode;
|
|
354
508
|
className?: string;
|
|
355
509
|
children: ReactNode;
|
|
356
510
|
}
|
|
511
|
+
/** Labelled form-control row with optional help text and validation feedback. */
|
|
357
512
|
declare function FormRow({ label, htmlFor, required, hint, error, className, children }: FormRowProps): React$1.JSX.Element;
|
|
358
513
|
|
|
359
514
|
type IconButtonProps = Omit<ButtonProps, "children"> & {
|
|
@@ -369,11 +524,13 @@ declare function IconButton({ label, children, href, className, variant, ...prop
|
|
|
369
524
|
type CompatibleRef$2<T> = ((instance: T | null) => unknown) | {
|
|
370
525
|
readonly current: T | null;
|
|
371
526
|
} | null;
|
|
527
|
+
/** Props for a single-line text input. */
|
|
372
528
|
type InputProps = Omit<InputProps$1, "ref"> & {
|
|
529
|
+
/** Ref compatible with all supported React 19 type releases. */
|
|
373
530
|
ref?: CompatibleRef$2<HTMLInputElement>;
|
|
374
531
|
};
|
|
375
532
|
declare const InputImpl: React$1.ForwardRefExoticComponent<InputProps$1 & React$1.RefAttributes<HTMLInputElement>>;
|
|
376
|
-
/**
|
|
533
|
+
/** Accessible single-line input with a ref type compatible across React 19 type releases. */
|
|
377
534
|
declare const Input: (props: InputProps) => ReturnType<typeof InputImpl>;
|
|
378
535
|
|
|
379
536
|
type CompatibleRef$1<T> = ((instance: T | null) => unknown) | {
|
|
@@ -386,13 +543,14 @@ declare const TextareaImpl: React$1.ForwardRefExoticComponent<TextAreaProps & Re
|
|
|
386
543
|
/** Forward-ref component with a ref type compatible across React 19 type releases. */
|
|
387
544
|
declare const Textarea: (props: TextareaProps) => ReturnType<typeof TextareaImpl>;
|
|
388
545
|
|
|
546
|
+
/** Visually joins an input or textarea with contextual text and actions. */
|
|
389
547
|
declare function InputGroup({ className, ...props }: React.ComponentProps<"div">): React$1.JSX.Element;
|
|
390
548
|
declare const inputGroupAddonVariants: (props?: ({
|
|
391
549
|
align?: "inline-end" | "inline-start" | "block-end" | "block-start" | null | undefined;
|
|
392
550
|
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
393
551
|
declare function InputGroupAddon({ className, align, onClick, ...props }: React.ComponentProps<"div"> & VariantProps<typeof inputGroupAddonVariants>): React$1.JSX.Element;
|
|
394
552
|
declare const inputGroupButtonVariants: (props?: ({
|
|
395
|
-
size?: "
|
|
553
|
+
size?: "xs" | "sm" | "icon-xs" | "icon-sm" | null | undefined;
|
|
396
554
|
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
397
555
|
type InputGroupButtonProps = Omit<ButtonProps, "size"> & VariantProps<typeof inputGroupButtonVariants>;
|
|
398
556
|
declare function InputGroupButton({ className, type, variant, size, ...props }: InputGroupButtonProps): React$1.JSX.Element;
|
|
@@ -400,18 +558,36 @@ declare function InputGroupText({ className, ...props }: React.ComponentProps<"s
|
|
|
400
558
|
declare function InputGroupInput({ className, ...props }: React.ComponentProps<typeof Input>): React$1.JSX.Element;
|
|
401
559
|
declare function InputGroupTextarea({ className, ...props }: React.ComponentProps<typeof Textarea>): React$1.JSX.Element;
|
|
402
560
|
|
|
561
|
+
/** Formats a keyboard key or shortcut with semantic `kbd` markup. */
|
|
403
562
|
declare function Kbd({ className, ...props }: React$1.ComponentProps<"kbd">): React$1.JSX.Element;
|
|
404
563
|
declare function KbdGroup({ className, ...props }: React$1.ComponentProps<"span">): React$1.JSX.Element;
|
|
405
564
|
|
|
565
|
+
/** Busy overlay that keeps the loading state available to assistive technology. */
|
|
406
566
|
declare function LoadingOverlay({ label, className, ...props }: React$1.ComponentProps<"div"> & {
|
|
407
567
|
label?: string;
|
|
408
568
|
}): React$1.JSX.Element;
|
|
409
569
|
|
|
410
570
|
declare const MenuTrigger: typeof MenuTrigger$1;
|
|
411
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}. */
|
|
412
573
|
declare function Menu<T extends object>({ className, ...props }: MenuProps<T>): React$1.JSX.Element;
|
|
413
574
|
declare function MenuItem<T extends object>({ className, children, ...props }: MenuItemProps<T>): React$1.JSX.Element;
|
|
414
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
|
+
|
|
415
591
|
declare const sizeClasses: {
|
|
416
592
|
readonly sm: "w-[min(calc(100dvw-2rem),24rem)]";
|
|
417
593
|
readonly md: "w-[min(calc(100dvw-2rem),28rem)]";
|
|
@@ -453,6 +629,7 @@ declare const OtpInputImpl: React$1.ForwardRefExoticComponent<Omit<OtpInputProps
|
|
|
453
629
|
/** A single accessible input visually split into slots for numeric one-time codes. */
|
|
454
630
|
declare const OtpInput: (props: OtpInputProps) => ReturnType<typeof OtpInputImpl>;
|
|
455
631
|
|
|
632
|
+
/** Page-level heading layout with optional description and actions. */
|
|
456
633
|
declare function PageHeader({ className, ...props }: React$1.ComponentProps<"header">): React$1.JSX.Element;
|
|
457
634
|
declare function PageHeaderHeading({ className, ...props }: React$1.ComponentProps<"div">): React$1.JSX.Element;
|
|
458
635
|
declare function PageHeaderTitle({ className, ...props }: React$1.ComponentProps<"h1">): React$1.JSX.Element;
|
|
@@ -460,12 +637,22 @@ declare function PageHeaderDescription({ className, ...props }: React$1.Componen
|
|
|
460
637
|
declare function PageHeaderActions({ className, ...props }: React$1.ComponentProps<"div">): React$1.JSX.Element;
|
|
461
638
|
|
|
462
639
|
type PaginationProps = {
|
|
640
|
+
/** Currently selected page, starting at one. */
|
|
463
641
|
page: number;
|
|
642
|
+
/** Total number of pages available. */
|
|
464
643
|
pageCount: number;
|
|
644
|
+
/** Called with the page selected by the user. */
|
|
465
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;
|
|
466
652
|
className?: string;
|
|
467
653
|
};
|
|
468
|
-
|
|
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;
|
|
469
656
|
|
|
470
657
|
type PopoverProps = Omit<PopoverProps$1, "className"> & {
|
|
471
658
|
className?: string;
|
|
@@ -474,6 +661,7 @@ type PopoverProps = Omit<PopoverProps$1, "className"> & {
|
|
|
474
661
|
/** Wrap a trigger and Popover surface; React Aria handles focus and positioning. */
|
|
475
662
|
declare const PopoverTrigger: typeof DialogTrigger$1;
|
|
476
663
|
declare function Popover({ className, ...props }: PopoverProps): React$1.JSX.Element;
|
|
664
|
+
/** Floating content positioned and focus-managed by {@link PopoverTrigger}. */
|
|
477
665
|
declare const PopoverContent: typeof Popover;
|
|
478
666
|
|
|
479
667
|
type QuantityInputProps = Omit<NumberFieldProps, "children" | "className"> & {
|
|
@@ -485,23 +673,23 @@ type QuantityInputProps = Omit<NumberFieldProps, "children" | "className"> & {
|
|
|
485
673
|
/** A compact quantity control with accessible stepper buttons and numeric keyboard support. */
|
|
486
674
|
declare function QuantityInput({ className, inputClassName, decrementAriaLabel, incrementAriaLabel, minValue, step, ...props }: QuantityInputProps): React$1.JSX.Element;
|
|
487
675
|
|
|
488
|
-
|
|
489
|
-
|
|
490
|
-
declare function SearchInput({ className, ...props }: InputProps$1): React$1.JSX.Element;
|
|
491
|
-
declare function SearchClearButton({ className, children, ...props }: Omit<ButtonProps$1, "className"> & {
|
|
492
|
-
className?: string;
|
|
493
|
-
}): React$1.JSX.Element;
|
|
494
|
-
|
|
676
|
+
/** State container for an accessible select control and its option collection. */
|
|
495
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;
|
|
496
678
|
|
|
679
|
+
/** Button that opens the option list of its parent {@link Select}. */
|
|
497
680
|
declare function SelectTrigger({ className, children, ...props }: ButtonProps$1): React$1.JSX.Element;
|
|
681
|
+
/** Displays the selected option or its placeholder. */
|
|
498
682
|
declare function SelectValue({ className, ...props }: React.ComponentProps<typeof SelectValue$1>): React$1.JSX.Element;
|
|
683
|
+
/** Floating surface that contains a {@link SelectList}. */
|
|
499
684
|
declare function SelectContent({ className, ...props }: React.ComponentProps<typeof Popover$1>): React$1.JSX.Element;
|
|
685
|
+
/** Scrollable list of {@link SelectItem} options. */
|
|
500
686
|
declare function SelectList<T extends object>({ className, ...props }: ListBoxProps<T>): React$1.JSX.Element;
|
|
687
|
+
/** Selectable option within a {@link SelectList}. */
|
|
501
688
|
declare function SelectItem<T extends object>({ className, children, ...props }: ListBoxItemProps<T>): React$1.JSX.Element;
|
|
502
689
|
|
|
503
690
|
declare function SheetTrigger({ ...props }: DialogTriggerProps$1): React$1.JSX.Element;
|
|
504
691
|
declare function SheetClose({ className, variant, size, ...props }: ButtonProps): React$1.JSX.Element;
|
|
692
|
+
/** Dismissable modal panel that slides in from a screen edge. */
|
|
505
693
|
declare function Sheet({ className, children, side, showCloseButton, ...props }: Omit<ModalOverlayProps, "className" | "children"> & Pick<React$1.ComponentProps<typeof Modal>, "isDismissable"> & {
|
|
506
694
|
className?: string;
|
|
507
695
|
children: React$1.ReactNode;
|
|
@@ -523,10 +711,12 @@ type SidebarContextValue = {
|
|
|
523
711
|
toggle: () => void;
|
|
524
712
|
};
|
|
525
713
|
declare function useSidebar(): SidebarContextValue;
|
|
714
|
+
/** Provides the expanded or collapsed state required by sidebar components. */
|
|
526
715
|
declare function SidebarProvider({ defaultCollapsed, children, }: {
|
|
527
716
|
defaultCollapsed?: boolean;
|
|
528
717
|
children: ReactNode;
|
|
529
718
|
}): React$1.JSX.Element;
|
|
719
|
+
/** Primary application navigation; render it within a {@link SidebarProvider}. */
|
|
530
720
|
declare function Sidebar({ className, ...props }: React.ComponentProps<"aside">): React$1.JSX.Element;
|
|
531
721
|
declare function SidebarHeader({ className, ...props }: React.ComponentProps<"div">): React$1.JSX.Element;
|
|
532
722
|
declare function SidebarSearch({ label, shortcut, className, ...props }: React.ComponentProps<"button"> & {
|
|
@@ -550,13 +740,17 @@ declare function SidebarTrigger({ className, ...props }: ButtonProps): React$1.J
|
|
|
550
740
|
declare function SidebarRail({ className, ...props }: React.ComponentProps<"button">): React$1.JSX.Element;
|
|
551
741
|
declare function SidebarMore({ className, ...props }: ButtonProps): React$1.JSX.Element;
|
|
552
742
|
|
|
743
|
+
/** Decorative placeholder displayed while content is loading. */
|
|
553
744
|
declare function Skeleton({ className, ...props }: React$1.ComponentProps<"div">): React$1.JSX.Element;
|
|
554
745
|
|
|
555
746
|
interface SubmitButtonProps extends Omit<ButtonProps, "type"> {
|
|
747
|
+
/** Text displayed while the parent form is submitting or loading is set. */
|
|
556
748
|
pendingLabel?: string;
|
|
749
|
+
/** Explicit loading state in addition to the parent form status. */
|
|
557
750
|
loading?: boolean;
|
|
558
751
|
children: React.ReactNode;
|
|
559
752
|
}
|
|
753
|
+
/** Submit button that disables itself and announces progress while a form is pending. */
|
|
560
754
|
declare function SubmitButton({ pendingLabel, loading, children, isDisabled, size, ...props }: SubmitButtonProps): React$1.JSX.Element;
|
|
561
755
|
|
|
562
756
|
declare const switchSizes: {
|
|
@@ -608,10 +802,15 @@ declare function TableFooter({ className, ...props }: React$1.ComponentProps<"tf
|
|
|
608
802
|
type TabsProps = TabsProps$1;
|
|
609
803
|
type TabProps = TabProps$1;
|
|
610
804
|
type TabPanelProps = TabPanelProps$1;
|
|
805
|
+
/** State container that coordinates a tab list with its associated panels. */
|
|
611
806
|
declare function Tabs({ className, ...props }: TabsProps$1): React$1.JSX.Element;
|
|
807
|
+
/** Container for the selectable {@link TabsTrigger} elements. */
|
|
612
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. */
|
|
613
810
|
declare function TabsTrigger({ className, ...props }: TabProps$1): React$1.JSX.Element;
|
|
811
|
+
/** Container for the panels associated with a {@link TabsList}. */
|
|
614
812
|
declare function TabsPanels<T extends object>({ className, ...props }: TabPanelsProps<T>): React$1.JSX.Element;
|
|
813
|
+
/** Content panel displayed for the selected {@link TabsTrigger}. */
|
|
615
814
|
declare function TabsContent({ className, ...props }: TabPanelProps$1): React$1.JSX.Element;
|
|
616
815
|
|
|
617
816
|
type ToastVariant = "default" | "success" | "error" | "warning" | "info";
|
|
@@ -658,6 +857,7 @@ declare function useToast(): ((options: ToastOptions) => string) & {
|
|
|
658
857
|
declare function ToastProvider({ children }: {
|
|
659
858
|
children: ReactNode;
|
|
660
859
|
}): React$1.JSX.Element;
|
|
860
|
+
/** Viewport that renders notifications created with {@link toast}. */
|
|
661
861
|
declare function Toaster({ position }: {
|
|
662
862
|
position?: ToastPosition;
|
|
663
863
|
}): React$1.JSX.Element;
|
|
@@ -670,14 +870,20 @@ declare function Toast({ id, title, description, variant, action, state, duratio
|
|
|
670
870
|
onDismiss?: () => void;
|
|
671
871
|
}): null;
|
|
672
872
|
|
|
873
|
+
/** Groups related actions with the toolbar semantic role. */
|
|
673
874
|
declare function Toolbar({ className, ...props }: React$1.ComponentProps<"div">): React$1.JSX.Element;
|
|
674
875
|
declare function ToolbarGroup({ className, ...props }: React$1.ComponentProps<"div">): React$1.JSX.Element;
|
|
675
876
|
declare function ToolbarSpacer({ className, ...props }: React$1.ComponentProps<"div">): React$1.JSX.Element;
|
|
676
877
|
|
|
878
|
+
/** Couples a focusable trigger with its {@link Tooltip} content. */
|
|
677
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
|
+
*/
|
|
678
884
|
declare function Tooltip({ className, placement, offset, crossOffset, children, ...props }: Omit<React$1.ComponentProps<typeof Tooltip$1>, "children" | "className"> & {
|
|
679
885
|
className?: string;
|
|
680
886
|
children?: React$1.ReactNode;
|
|
681
887
|
}): React$1.JSX.Element;
|
|
682
888
|
|
|
683
|
-
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, Dialog, DialogClose, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogOverlay, DialogPortal, DialogTitle, DialogTrigger, 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 };
|