@slipstream-ui/core 0.3.0 → 0.5.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.d.mts +957 -56
- package/dist/index.d.ts +957 -56
- package/dist/index.js +2554 -777
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +2524 -777
- package/dist/index.mjs.map +1 -1
- package/dist/manifests/app-shell.manifest.json +206 -0
- package/dist/manifests/auth-layout.manifest.json +99 -0
- package/dist/manifests/autocomplete.manifest.json +53 -5
- package/dist/manifests/badge.manifest.json +20 -3
- package/dist/manifests/breadcrumb.manifest.json +6 -0
- package/dist/manifests/button.manifest.json +20 -2
- package/dist/manifests/card.manifest.json +53 -6
- package/dist/manifests/confirm-dialog.manifest.json +132 -0
- package/dist/manifests/data-table.manifest.json +50 -0
- package/dist/manifests/date-picker.manifest.json +87 -0
- package/dist/manifests/dialog.manifest.json +56 -4
- package/dist/manifests/drawer.manifest.json +25 -4
- package/dist/manifests/empty-state.manifest.json +108 -0
- package/dist/manifests/file-upload.manifest.json +103 -0
- package/dist/manifests/filter-bar.manifest.json +100 -0
- package/dist/manifests/link.manifest.json +106 -0
- package/dist/manifests/menu.manifest.json +13 -1
- package/dist/manifests/metric-card.manifest.json +105 -0
- package/dist/manifests/page-header.manifest.json +124 -0
- package/dist/manifests/pagination.manifest.json +68 -34
- package/dist/manifests/password-input.manifest.json +75 -0
- package/dist/manifests/prose.manifest.json +75 -0
- package/dist/manifests/search.manifest.json +41 -9
- package/dist/manifests/section-heading.manifest.json +108 -0
- package/dist/manifests/select-menu.manifest.json +142 -0
- package/dist/manifests/select.manifest.json +55 -12
- package/dist/manifests/site-footer.manifest.json +94 -0
- package/dist/manifests/site-header.manifest.json +130 -0
- package/dist/manifests/stepper.manifest.json +95 -0
- package/dist/manifests/table-card.manifest.json +123 -0
- package/dist/manifests/table-of-contents.manifest.json +87 -0
- package/dist/manifests/time-picker.manifest.json +86 -0
- package/dist/manifests/timeline.manifest.json +69 -0
- package/dist/manifests/toast.manifest.json +101 -25
- package/package.json +2 -2
- package/src/components/alert/Alert.tsx +2 -2
- package/src/components/app-shell/AppShell.test.tsx +148 -0
- package/src/components/app-shell/AppShell.tsx +266 -0
- package/src/components/app-shell/index.ts +1 -0
- package/src/components/auth-layout/AuthLayout.test.tsx +34 -0
- package/src/components/auth-layout/AuthLayout.tsx +47 -0
- package/src/components/auth-layout/index.ts +1 -0
- package/src/components/autocomplete/Autocomplete.test.tsx +53 -0
- package/src/components/autocomplete/Autocomplete.tsx +160 -41
- package/src/components/badge/Badge.test.tsx +35 -0
- package/src/components/badge/Badge.tsx +16 -4
- package/src/components/breadcrumb/Breadcrumb.test.tsx +16 -0
- package/src/components/breadcrumb/Breadcrumb.tsx +10 -5
- package/src/components/button/Button.test.tsx +67 -0
- package/src/components/button/Button.tsx +37 -3
- package/src/components/button-group/ButtonGroup.test.tsx +6 -8
- package/src/components/button-group/ButtonGroup.tsx +17 -9
- package/src/components/card/Card.test.tsx +14 -0
- package/src/components/card/Card.tsx +15 -8
- package/src/components/confirm-dialog/ConfirmDialog.test.tsx +46 -0
- package/src/components/confirm-dialog/ConfirmDialog.tsx +86 -0
- package/src/components/confirm-dialog/index.ts +1 -0
- package/src/components/data-table/DataTable.test.tsx +92 -0
- package/src/components/data-table/DataTable.tsx +98 -7
- package/src/components/date-picker/DatePicker.test.tsx +30 -0
- package/src/components/date-picker/DatePicker.tsx +57 -0
- package/src/components/date-picker/index.ts +1 -0
- package/src/components/dialog/Dialog.test.tsx +71 -1
- package/src/components/dialog/Dialog.tsx +116 -23
- package/src/components/dialog/index.ts +1 -2
- package/src/components/drawer/Drawer.test.tsx +59 -0
- package/src/components/drawer/Drawer.tsx +49 -8
- package/src/components/empty-state/EmptyState.test.tsx +30 -0
- package/src/components/empty-state/EmptyState.tsx +48 -0
- package/src/components/empty-state/index.ts +1 -0
- package/src/components/file-upload/FileUpload.test.tsx +43 -0
- package/src/components/file-upload/FileUpload.tsx +143 -0
- package/src/components/file-upload/index.ts +1 -0
- package/src/components/filter-bar/FilterBar.test.tsx +32 -0
- package/src/components/filter-bar/FilterBar.tsx +71 -0
- package/src/components/filter-bar/index.ts +1 -0
- package/src/components/input/Input.tsx +1 -0
- package/src/components/input-group/InputGroup.test.tsx +6 -3
- package/src/components/input-group/InputGroup.tsx +9 -6
- package/src/components/link/Link.test.tsx +60 -0
- package/src/components/link/Link.tsx +85 -0
- package/src/components/link/index.ts +1 -0
- package/src/components/menu/Menu.test.tsx +21 -0
- package/src/components/menu/Menu.tsx +8 -3
- package/src/components/metric-card/MetricCard.test.tsx +28 -0
- package/src/components/metric-card/MetricCard.tsx +54 -0
- package/src/components/metric-card/index.ts +1 -0
- package/src/components/page-header/PageHeader.test.tsx +48 -0
- package/src/components/page-header/PageHeader.tsx +53 -0
- package/src/components/page-header/index.ts +1 -0
- package/src/components/pagination/Pagination.test.tsx +33 -0
- package/src/components/pagination/Pagination.tsx +69 -18
- package/src/components/password-input/PasswordInput.test.tsx +29 -0
- package/src/components/password-input/PasswordInput.tsx +41 -0
- package/src/components/password-input/index.ts +1 -0
- package/src/components/prose/Prose.test.tsx +35 -0
- package/src/components/prose/Prose.tsx +61 -0
- package/src/components/prose/index.ts +1 -0
- package/src/components/search/Search.test.tsx +16 -0
- package/src/components/search/Search.tsx +11 -2
- package/src/components/section-heading/SectionHeading.test.tsx +32 -0
- package/src/components/section-heading/SectionHeading.tsx +54 -0
- package/src/components/section-heading/index.ts +1 -0
- package/src/components/select/Select.test.tsx +40 -1
- package/src/components/select/Select.tsx +54 -14
- package/src/components/select/index.ts +1 -1
- package/src/components/select-menu/SelectMenu.test.tsx +105 -0
- package/src/components/select-menu/SelectMenu.tsx +368 -0
- package/src/components/select-menu/index.ts +1 -0
- package/src/components/site-footer/SiteFooter.test.tsx +30 -0
- package/src/components/site-footer/SiteFooter.tsx +79 -0
- package/src/components/site-footer/index.ts +1 -0
- package/src/components/site-header/SiteHeader.test.tsx +53 -0
- package/src/components/site-header/SiteHeader.tsx +124 -0
- package/src/components/site-header/index.ts +1 -0
- package/src/components/stepper/Stepper.test.tsx +35 -0
- package/src/components/stepper/Stepper.tsx +91 -0
- package/src/components/stepper/index.ts +1 -0
- package/src/components/switch/Switch.test.tsx +10 -0
- package/src/components/switch/Switch.tsx +8 -3
- package/src/components/table-card/TableCard.test.tsx +59 -0
- package/src/components/table-card/TableCard.tsx +48 -0
- package/src/components/table-card/index.ts +1 -0
- package/src/components/table-of-contents/TableOfContents.test.tsx +31 -0
- package/src/components/table-of-contents/TableOfContents.tsx +100 -0
- package/src/components/table-of-contents/index.ts +1 -0
- package/src/components/textarea/Textarea.tsx +1 -0
- package/src/components/time-picker/TimePicker.test.tsx +30 -0
- package/src/components/time-picker/TimePicker.tsx +56 -0
- package/src/components/time-picker/index.ts +1 -0
- package/src/components/timeline/Timeline.test.tsx +26 -0
- package/src/components/timeline/Timeline.tsx +53 -0
- package/src/components/timeline/index.ts +1 -0
- package/src/components/toast/Toast.test.tsx +5 -0
- package/src/components/toast/Toast.tsx +2 -16
- package/src/components/toast/Toaster.test.tsx +84 -0
- package/src/components/toast/Toaster.tsx +116 -0
- package/src/components/toast/index.ts +4 -0
- package/src/components/toast/toast-store.ts +117 -0
- package/src/index.ts +21 -0
- package/src/manifests/app-shell.manifest.json +206 -0
- package/src/manifests/auth-layout.manifest.json +99 -0
- package/src/manifests/autocomplete.manifest.json +53 -5
- package/src/manifests/badge.manifest.json +20 -3
- package/src/manifests/breadcrumb.manifest.json +6 -0
- package/src/manifests/button.manifest.json +20 -2
- package/src/manifests/card.manifest.json +53 -6
- package/src/manifests/confirm-dialog.manifest.json +132 -0
- package/src/manifests/data-table.manifest.json +50 -0
- package/src/manifests/date-picker.manifest.json +87 -0
- package/src/manifests/dialog.manifest.json +56 -4
- package/src/manifests/drawer.manifest.json +25 -4
- package/src/manifests/empty-state.manifest.json +108 -0
- package/src/manifests/file-upload.manifest.json +103 -0
- package/src/manifests/filter-bar.manifest.json +100 -0
- package/src/manifests/link.manifest.json +106 -0
- package/src/manifests/menu.manifest.json +13 -1
- package/src/manifests/metric-card.manifest.json +105 -0
- package/src/manifests/page-header.manifest.json +124 -0
- package/src/manifests/pagination.manifest.json +68 -34
- package/src/manifests/password-input.manifest.json +75 -0
- package/src/manifests/prose.manifest.json +75 -0
- package/src/manifests/search.manifest.json +41 -9
- package/src/manifests/section-heading.manifest.json +108 -0
- package/src/manifests/select-menu.manifest.json +142 -0
- package/src/manifests/select.manifest.json +55 -12
- package/src/manifests/site-footer.manifest.json +94 -0
- package/src/manifests/site-header.manifest.json +130 -0
- package/src/manifests/stepper.manifest.json +95 -0
- package/src/manifests/table-card.manifest.json +123 -0
- package/src/manifests/table-of-contents.manifest.json +87 -0
- package/src/manifests/time-picker.manifest.json +86 -0
- package/src/manifests/timeline.manifest.json +69 -0
- package/src/manifests/toast.manifest.json +101 -25
- package/src/test/tailwind-v4.test.ts +103 -0
package/dist/index.d.ts
CHANGED
|
@@ -155,18 +155,89 @@ declare function usePresence(open: boolean, animate: boolean, exitMs?: number):
|
|
|
155
155
|
exiting: boolean;
|
|
156
156
|
};
|
|
157
157
|
|
|
158
|
+
type SidebarItem = {
|
|
159
|
+
href: string;
|
|
160
|
+
label: string;
|
|
161
|
+
icon?: React.ReactNode;
|
|
162
|
+
/** Trailing slot — count, status dot, shortcut. */
|
|
163
|
+
badge?: React.ReactNode;
|
|
164
|
+
/** Force the active state (otherwise activeHref is compared). */
|
|
165
|
+
active?: boolean;
|
|
166
|
+
/** Nested items — renders a collapsible group with aria-expanded. */
|
|
167
|
+
children?: SidebarItem[];
|
|
168
|
+
};
|
|
169
|
+
type SidebarSection = {
|
|
170
|
+
title?: string;
|
|
171
|
+
items: SidebarItem[];
|
|
172
|
+
};
|
|
173
|
+
type SidebarProps = Omit<React.HTMLAttributes<HTMLElement>, 'children'> & {
|
|
174
|
+
sections: SidebarSection[];
|
|
175
|
+
/** Brand/mark rendered at the top. */
|
|
176
|
+
heading?: React.ReactNode;
|
|
177
|
+
/** Rendered at the bottom (user menu, upgrade CTA). */
|
|
178
|
+
footer?: React.ReactNode;
|
|
179
|
+
/** Current route — items with a matching href get aria-current="page". */
|
|
180
|
+
activeHref?: string;
|
|
181
|
+
/** Custom link element for routers (react-router `Link`, Next `Link`). */
|
|
182
|
+
linkComponent?: React.ElementType;
|
|
183
|
+
/** Accessible name of the nav landmark. Default 'Primary'. */
|
|
184
|
+
label?: string;
|
|
185
|
+
/** Show the collapse/expand control (icon-only rail when collapsed). */
|
|
186
|
+
collapsible?: boolean;
|
|
187
|
+
/** Initial collapsed state when uncontrolled. */
|
|
188
|
+
defaultCollapsed?: boolean;
|
|
189
|
+
/** Controlled collapsed state. */
|
|
190
|
+
collapsed?: boolean;
|
|
191
|
+
onCollapsedChange?: (collapsed: boolean) => void;
|
|
192
|
+
/** Groups open initially (in addition to groups containing the active route). */
|
|
193
|
+
defaultExpanded?: string[];
|
|
194
|
+
};
|
|
195
|
+
/**
|
|
196
|
+
* Sectioned navigation rail — now with nested groups and a collapsible
|
|
197
|
+
* icon-only mode. Purely presentational: you pass the active route and a
|
|
198
|
+
* router link component, so it stays stateless about routing.
|
|
199
|
+
*/
|
|
200
|
+
declare function Sidebar({ sections, heading, footer, activeHref, linkComponent, label, collapsible, defaultCollapsed, collapsed: collapsedProp, onCollapsedChange, defaultExpanded, className, ...props }: SidebarProps): React.JSX.Element;
|
|
201
|
+
type AppShellProps = React.HTMLAttributes<HTMLDivElement> & {
|
|
202
|
+
/** Desktop rail; also rendered inside a mobile drawer. */
|
|
203
|
+
sidebar?: React.ReactNode;
|
|
204
|
+
/** Sticky top bar content. */
|
|
205
|
+
header?: React.ReactNode;
|
|
206
|
+
/** Hide the built-in mobile menu button (e.g. when the header owns one). */
|
|
207
|
+
hideMobileMenu?: boolean;
|
|
208
|
+
/** Tailwind width class for the desktop rail. Default 'w-64'. */
|
|
209
|
+
sidebarWidth?: string;
|
|
210
|
+
/** Breakpoint at which the rail switches to the mobile drawer. Default 'md'. */
|
|
211
|
+
mobileBreakpoint?: 'sm' | 'md' | 'lg';
|
|
212
|
+
};
|
|
213
|
+
/**
|
|
214
|
+
* Application frame: fixed-height sidebar, sticky header, scrolling main.
|
|
215
|
+
* On small screens the sidebar becomes a left Drawer opened by a burger
|
|
216
|
+
* button, so pages never need their own responsive nav wiring. A collapsed
|
|
217
|
+
* Sidebar (data-collapsed) shrinks the desktop rail automatically.
|
|
218
|
+
*/
|
|
219
|
+
declare function AppShell({ sidebar, header, hideMobileMenu, sidebarWidth, mobileBreakpoint, className, children, ...props }: AppShellProps): React.JSX.Element;
|
|
220
|
+
|
|
158
221
|
declare const buttonVariants: (props?: ({
|
|
159
|
-
variant?: "default" | "destructive" | "success" | "warning" | "info" | "outline" | "
|
|
222
|
+
variant?: "link" | "default" | "primary" | "destructive" | "danger" | "success" | "warning" | "info" | "outline" | "outline-destructive" | "outline-success" | "outline-warning" | "outline-info" | "secondary" | "ghost" | null | undefined;
|
|
160
223
|
size?: "sm" | "lg" | "default" | "icon" | null | undefined;
|
|
161
224
|
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
162
225
|
type ButtonProps = React.ButtonHTMLAttributes<HTMLButtonElement> & VariantProps<typeof buttonVariants> & {
|
|
163
226
|
asChild?: boolean;
|
|
227
|
+
/** Shows a spinner, disables the button and sets aria-busy while an action runs. */
|
|
228
|
+
loading?: boolean;
|
|
229
|
+
/** Screen-reader text while loading (default "Loading"). */
|
|
230
|
+
loadingLabel?: string;
|
|
164
231
|
};
|
|
165
232
|
declare const Button: React.ForwardRefExoticComponent<React.ButtonHTMLAttributes<HTMLButtonElement> & VariantProps<(props?: ({
|
|
166
|
-
variant?: "default" | "destructive" | "success" | "warning" | "info" | "outline" | "
|
|
233
|
+
variant?: "link" | "default" | "primary" | "destructive" | "danger" | "success" | "warning" | "info" | "outline" | "outline-destructive" | "outline-success" | "outline-warning" | "outline-info" | "secondary" | "ghost" | null | undefined;
|
|
167
234
|
size?: "sm" | "lg" | "default" | "icon" | null | undefined;
|
|
168
235
|
} & class_variance_authority_types.ClassProp) | undefined) => string> & {
|
|
169
236
|
asChild?: boolean;
|
|
237
|
+
/** Shows a spinner, disables the button and sets aria-busy while an action runs. */
|
|
238
|
+
loading?: boolean;
|
|
239
|
+
/** Screen-reader text while loading (default "Loading"). */
|
|
240
|
+
loadingLabel?: string;
|
|
170
241
|
} & React.RefAttributes<HTMLButtonElement>>;
|
|
171
242
|
|
|
172
243
|
type ButtonGroupProps = React.HTMLAttributes<HTMLDivElement> & {
|
|
@@ -174,11 +245,16 @@ type ButtonGroupProps = React.HTMLAttributes<HTMLDivElement> & {
|
|
|
174
245
|
orientation?: 'horizontal' | 'vertical';
|
|
175
246
|
};
|
|
176
247
|
/**
|
|
177
|
-
* Joins buttons into one segmented control
|
|
178
|
-
*
|
|
179
|
-
*
|
|
180
|
-
*
|
|
181
|
-
*
|
|
248
|
+
* Joins buttons into one segmented control.
|
|
249
|
+
*
|
|
250
|
+
* The group owns the outline: a single border, one outer radius (children
|
|
251
|
+
* are clipped by overflow-hidden), and 1px separators drawn between
|
|
252
|
+
* segments. Children lose their own borders and radii, so mixed variants
|
|
253
|
+
* (default/outline/secondary/ghost) still read as one instrument — a
|
|
254
|
+
* borderless variant no longer leaves the seam misaligned the way
|
|
255
|
+
* negative-margin border collapsing did.
|
|
256
|
+
*
|
|
257
|
+
* Focus rings render inset so they are never clipped at the edges.
|
|
182
258
|
*/
|
|
183
259
|
declare const ButtonGroup: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLDivElement> & {
|
|
184
260
|
/** Stacked segments share vertical edges (default: side-by-side). */
|
|
@@ -219,12 +295,18 @@ declare const InputGroupAddon: React.ForwardRefExoticComponent<React.HTMLAttribu
|
|
|
219
295
|
} & React.RefAttributes<HTMLDivElement>>;
|
|
220
296
|
|
|
221
297
|
declare const badgeVariants: (props?: ({
|
|
222
|
-
variant?: "default" | "destructive" | "outline" | "secondary" | null | undefined;
|
|
298
|
+
variant?: "default" | "primary" | "destructive" | "danger" | "success" | "warning" | "info" | "outline" | "secondary" | null | undefined;
|
|
223
299
|
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
224
|
-
type BadgeProps = React.HTMLAttributes<HTMLDivElement> & VariantProps<typeof badgeVariants
|
|
300
|
+
type BadgeProps = React.HTMLAttributes<HTMLDivElement> & VariantProps<typeof badgeVariants> & {
|
|
301
|
+
/** Render the child element (e.g. a router Link) with badge styling. */
|
|
302
|
+
asChild?: boolean;
|
|
303
|
+
};
|
|
225
304
|
declare const Badge: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLDivElement> & VariantProps<(props?: ({
|
|
226
|
-
variant?: "default" | "destructive" | "outline" | "secondary" | null | undefined;
|
|
227
|
-
} & class_variance_authority_types.ClassProp) | undefined) => string> &
|
|
305
|
+
variant?: "default" | "primary" | "destructive" | "danger" | "success" | "warning" | "info" | "outline" | "secondary" | null | undefined;
|
|
306
|
+
} & class_variance_authority_types.ClassProp) | undefined) => string> & {
|
|
307
|
+
/** Render the child element (e.g. a router Link) with badge styling. */
|
|
308
|
+
asChild?: boolean;
|
|
309
|
+
} & React.RefAttributes<HTMLDivElement>>;
|
|
228
310
|
|
|
229
311
|
declare const Avatar: React.ForwardRefExoticComponent<Omit<AvatarPrimitive.AvatarProps & React.RefAttributes<HTMLSpanElement>, "ref"> & React.RefAttributes<HTMLSpanElement>>;
|
|
230
312
|
declare const AvatarImage: React.ForwardRefExoticComponent<Omit<AvatarPrimitive.AvatarImageProps & React.RefAttributes<HTMLImageElement>, "ref"> & React.RefAttributes<HTMLImageElement>>;
|
|
@@ -239,6 +321,15 @@ type SpinnerProps = React.HTMLAttributes<HTMLSpanElement> & VariantProps<typeof
|
|
|
239
321
|
};
|
|
240
322
|
declare function Spinner({ className, size, label, ...props }: SpinnerProps): React.JSX.Element;
|
|
241
323
|
|
|
324
|
+
/**
|
|
325
|
+
* Imperative toast store.
|
|
326
|
+
*
|
|
327
|
+
* Components can call `toast(...)` from anywhere — event handlers, data
|
|
328
|
+
* layers, async catch blocks — without threading a hook through the tree.
|
|
329
|
+
* `<Toaster />` subscribes to this store and renders the queue. The
|
|
330
|
+
* provider/hook API in Toast.tsx remains for tree-scoped usage.
|
|
331
|
+
*/
|
|
332
|
+
type ToastVariant = 'default' | 'success' | 'error' | 'warning' | 'info';
|
|
242
333
|
type ToastAction = {
|
|
243
334
|
label: string;
|
|
244
335
|
onClick: () => void;
|
|
@@ -247,12 +338,31 @@ type ToastOptions = {
|
|
|
247
338
|
title: string;
|
|
248
339
|
description?: string;
|
|
249
340
|
action?: ToastAction;
|
|
341
|
+
variant?: ToastVariant;
|
|
250
342
|
/** Auto-dismiss delay in ms; 0 keeps the toast until dismissed. Default 5000. */
|
|
251
343
|
duration?: number;
|
|
252
344
|
};
|
|
253
345
|
type ToastRecord = ToastOptions & {
|
|
254
346
|
id: string;
|
|
255
347
|
};
|
|
348
|
+
type ToastFunction = ((options: ToastOptions) => string) & {
|
|
349
|
+
success: (title: string, description?: string) => string;
|
|
350
|
+
error: (title: string, description?: string) => string;
|
|
351
|
+
warning: (title: string, description?: string) => string;
|
|
352
|
+
info: (title: string, description?: string) => string;
|
|
353
|
+
dismiss: (id?: string) => void;
|
|
354
|
+
clear: () => void;
|
|
355
|
+
};
|
|
356
|
+
/**
|
|
357
|
+
* Fire a toast from anywhere. Variant helpers mirror the sonner/Radix
|
|
358
|
+
* shape most codebases already call:
|
|
359
|
+
*
|
|
360
|
+
* toast.success('Saved')
|
|
361
|
+
* toast.error('Upload failed', 'Check your connection')
|
|
362
|
+
* toast({ title: 'Heads up', duration: 0 })
|
|
363
|
+
*/
|
|
364
|
+
declare const toast: ToastFunction;
|
|
365
|
+
|
|
256
366
|
type ToastContextValue = {
|
|
257
367
|
toasts: ToastRecord[];
|
|
258
368
|
toast: (options: ToastOptions) => string;
|
|
@@ -269,17 +379,54 @@ declare function ToastProvider({ children, label }: {
|
|
|
269
379
|
}): React.JSX.Element;
|
|
270
380
|
declare function useToast(): ToastContextValue;
|
|
271
381
|
|
|
382
|
+
type ToasterPosition = 'top-left' | 'top-center' | 'top-right' | 'bottom-left' | 'bottom-center' | 'bottom-right';
|
|
383
|
+
type ToasterProps = {
|
|
384
|
+
/** Corner/edge the stack renders at. Default 'bottom-right'. */
|
|
385
|
+
position?: ToasterPosition;
|
|
386
|
+
/** Accessible name of the live region. Default 'Notifications'. */
|
|
387
|
+
label?: string;
|
|
388
|
+
/** Tint the toast surface with its status color (neutral by default). */
|
|
389
|
+
richColors?: boolean;
|
|
390
|
+
};
|
|
391
|
+
/**
|
|
392
|
+
* Renders the imperative toast queue. Mount once near the app root:
|
|
393
|
+
*
|
|
394
|
+
* <Toaster />
|
|
395
|
+
* toast.success('Saved')
|
|
396
|
+
*
|
|
397
|
+
* The region is a polite live region, so announcements don't steal focus.
|
|
398
|
+
*/
|
|
399
|
+
declare function Toaster({ position, label, richColors }: ToasterProps): React.JSX.Element;
|
|
400
|
+
|
|
401
|
+
type DialogSize = 'sm' | 'md' | 'lg' | 'xl' | '2xl';
|
|
272
402
|
type DialogProps = {
|
|
273
403
|
open: boolean;
|
|
274
404
|
onOpenChange: (open: boolean) => void;
|
|
275
|
-
title
|
|
405
|
+
/** Accessible name + default header title. Optional when composing a custom header. */
|
|
406
|
+
title?: string;
|
|
276
407
|
description?: string;
|
|
277
408
|
children?: React.ReactNode;
|
|
409
|
+
/** Panel max-width preset (default 'md'). */
|
|
410
|
+
size?: DialogSize;
|
|
411
|
+
/**
|
|
412
|
+
* Replaces the default header row. Compose with `<DialogHeader>` /
|
|
413
|
+
* `<DialogTitle>` / `<DialogDescription>` — those parts pick up the
|
|
414
|
+
* dialog's aria ids automatically.
|
|
415
|
+
*/
|
|
416
|
+
header?: React.ReactNode;
|
|
417
|
+
/** Action row pinned under the body. */
|
|
418
|
+
footer?: React.ReactNode;
|
|
419
|
+
/** Cap the body height and scroll inside the panel. */
|
|
420
|
+
scrollable?: boolean;
|
|
421
|
+
bodyClassName?: string;
|
|
278
422
|
closeOnBackdrop?: boolean;
|
|
279
423
|
/** Hide the close (✕) button in the header; Escape and backdrop still close. */
|
|
280
424
|
showClose?: boolean;
|
|
425
|
+
/** Accessible label for the close button (default "Close dialog"). */
|
|
426
|
+
closeLabel?: string;
|
|
281
427
|
/** Focused when the dialog opens; defaults to the first focusable element. */
|
|
282
428
|
initialFocusRef?: React.RefObject<HTMLElement | null>;
|
|
429
|
+
/** Accessible name when `title` is omitted (required with a custom header). */
|
|
283
430
|
ariaLabel?: string;
|
|
284
431
|
/**
|
|
285
432
|
* Fade the backdrop and panel in on open and out on close (requires
|
|
@@ -288,15 +435,34 @@ type DialogProps = {
|
|
|
288
435
|
*/
|
|
289
436
|
animate?: boolean;
|
|
290
437
|
};
|
|
438
|
+
type DialogHeaderProps = React.HTMLAttributes<HTMLDivElement>;
|
|
439
|
+
/** Header row for composed dialogs. */
|
|
440
|
+
declare function DialogHeader({ className, ...props }: DialogHeaderProps): React.JSX.Element;
|
|
441
|
+
type DialogTitleProps = React.HTMLAttributes<HTMLHeadingElement>;
|
|
442
|
+
/** Dialog heading; automatically wired to aria-labelledby. */
|
|
443
|
+
declare function DialogTitle({ className, ...props }: DialogTitleProps): React.JSX.Element;
|
|
444
|
+
type DialogDescriptionProps = React.HTMLAttributes<HTMLParagraphElement>;
|
|
445
|
+
/** Supporting line; automatically wired to aria-describedby. */
|
|
446
|
+
declare function DialogDescription({ className, ...props }: DialogDescriptionProps): React.JSX.Element;
|
|
447
|
+
type DialogBodyProps = React.HTMLAttributes<HTMLDivElement>;
|
|
448
|
+
/** Body wrapper for composed dialogs. */
|
|
449
|
+
declare function DialogBody({ className, ...props }: DialogBodyProps): React.JSX.Element;
|
|
450
|
+
type DialogFooterProps = React.HTMLAttributes<HTMLDivElement>;
|
|
451
|
+
/** Action row pinned to the bottom of the panel. */
|
|
452
|
+
declare function DialogFooter({ className, ...props }: DialogFooterProps): React.JSX.Element;
|
|
291
453
|
/**
|
|
292
454
|
* Accessible modal dialog: portal, aria-modal + labelled/describedby wiring,
|
|
293
455
|
* Escape and backdrop dismissal, initial focus on open and focus restoration
|
|
294
456
|
* on close, plus a Tab/Shift+Tab focus trap.
|
|
457
|
+
*
|
|
458
|
+
* Use `title`/`description` for the default header, or pass `header` with
|
|
459
|
+
* `<DialogHeader>`/`<DialogTitle>`/`<DialogDescription>` (and an
|
|
460
|
+
* `ariaLabel` fallback) for full control.
|
|
295
461
|
*/
|
|
296
|
-
declare function Dialog({ open, onOpenChange, title, description, children, closeOnBackdrop, showClose, initialFocusRef, animate, }: DialogProps): React.ReactPortal | null;
|
|
462
|
+
declare function Dialog({ open, onOpenChange, title, description, children, size, header, footer, scrollable, bodyClassName, closeOnBackdrop, showClose, closeLabel, initialFocusRef, ariaLabel, animate, }: DialogProps): React.ReactPortal | null;
|
|
297
463
|
|
|
298
464
|
type DrawerSide = 'left' | 'right' | 'top' | 'bottom';
|
|
299
|
-
type DrawerSize = 'sm' | 'md' | 'lg';
|
|
465
|
+
type DrawerSize = 'sm' | 'md' | 'lg' | 'xl' | '2xl';
|
|
300
466
|
type DrawerProps = {
|
|
301
467
|
open: boolean;
|
|
302
468
|
onOpenChange: (open: boolean) => void;
|
|
@@ -305,12 +471,24 @@ type DrawerProps = {
|
|
|
305
471
|
children?: React.ReactNode;
|
|
306
472
|
/** Edge the drawer slides from (default 'right'). */
|
|
307
473
|
side?: DrawerSide;
|
|
308
|
-
/**
|
|
474
|
+
/** Preset extent along the side axis (width for left/right, height for top/bottom). */
|
|
309
475
|
size?: DrawerSize;
|
|
476
|
+
/**
|
|
477
|
+
* Custom extent for left/right drawers: pixels (480) or any CSS length
|
|
478
|
+
* ("70vw"). Overrides `size`.
|
|
479
|
+
*/
|
|
480
|
+
width?: number | string;
|
|
481
|
+
/**
|
|
482
|
+
* Custom extent for top/bottom drawers: pixels (320) or any CSS length
|
|
483
|
+
* ("60vh"). Overrides `size`.
|
|
484
|
+
*/
|
|
485
|
+
height?: number | string;
|
|
310
486
|
/** Clicking the backdrop closes (default true). */
|
|
311
487
|
closeOnBackdrop?: boolean;
|
|
312
488
|
/** Hide the close (✕) button in the header (default true). */
|
|
313
489
|
showClose?: boolean;
|
|
490
|
+
/** Accessible label for the close button (default "Close drawer"). */
|
|
491
|
+
closeLabel?: string;
|
|
314
492
|
/** Focused when the drawer opens; defaults to the first focusable element. */
|
|
315
493
|
initialFocusRef?: React.RefObject<HTMLElement | null>;
|
|
316
494
|
/** Overrides the accessible name (defaults to the title). */
|
|
@@ -329,34 +507,149 @@ type DrawerProps = {
|
|
|
329
507
|
* restoration on close. Renders fixed to the chosen edge with a border
|
|
330
508
|
* against the backdrop.
|
|
331
509
|
*/
|
|
332
|
-
declare function Drawer({ open, onOpenChange, title, description, children, side, size, closeOnBackdrop, showClose, initialFocusRef, ariaLabel, animate, }: DrawerProps): React.ReactPortal | null;
|
|
510
|
+
declare function Drawer({ open, onOpenChange, title, description, children, side, size, width, height, closeOnBackdrop, showClose, closeLabel, initialFocusRef, ariaLabel, animate, }: DrawerProps): React.ReactPortal | null;
|
|
333
511
|
|
|
334
512
|
type SelectOption = {
|
|
335
513
|
value: string;
|
|
336
514
|
label: string;
|
|
337
515
|
disabled?: boolean;
|
|
338
516
|
};
|
|
339
|
-
type
|
|
517
|
+
type SelectOptionGroup = {
|
|
518
|
+
label: string;
|
|
340
519
|
options: SelectOption[];
|
|
520
|
+
};
|
|
521
|
+
type SelectProps = Omit<React.SelectHTMLAttributes<HTMLSelectElement>, 'onChange' | 'value' | 'defaultValue' | 'multiple'> & {
|
|
522
|
+
/** Flat options. Ignored when `groups` is provided. */
|
|
523
|
+
options?: SelectOption[];
|
|
524
|
+
/** Optgroups with a heading per section. */
|
|
525
|
+
groups?: SelectOptionGroup[];
|
|
341
526
|
label?: string;
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
527
|
+
/** Renders a disabled empty option — the native "choose one" affordance. */
|
|
528
|
+
placeholder?: string;
|
|
529
|
+
/** Native multi-select: value/onChange switch to string[]. */
|
|
530
|
+
multiple?: boolean;
|
|
531
|
+
value?: string | string[];
|
|
532
|
+
defaultValue?: string | string[];
|
|
533
|
+
onChange?: (value: string | string[]) => void;
|
|
534
|
+
/** Alias for onChange — the value-based callback used by most codebases. */
|
|
535
|
+
onValueChange?: (value: string | string[]) => void;
|
|
345
536
|
};
|
|
346
537
|
/**
|
|
347
538
|
* Accessible select primitive built on the native <select>: full keyboard,
|
|
348
539
|
* screen-reader and mobile platform behavior comes from the platform rather
|
|
349
|
-
* than a re-implemented listbox.
|
|
350
|
-
*
|
|
540
|
+
* than a re-implemented listbox. Supports flat options, optgroups,
|
|
541
|
+
* placeholder rows and native multi-select (string[] contract).
|
|
351
542
|
*/
|
|
352
|
-
declare const Select: React.ForwardRefExoticComponent<Omit<React.SelectHTMLAttributes<HTMLSelectElement>, "
|
|
353
|
-
options
|
|
543
|
+
declare const Select: React.ForwardRefExoticComponent<Omit<React.SelectHTMLAttributes<HTMLSelectElement>, "defaultValue" | "onChange" | "multiple" | "value"> & {
|
|
544
|
+
/** Flat options. Ignored when `groups` is provided. */
|
|
545
|
+
options?: SelectOption[];
|
|
546
|
+
/** Optgroups with a heading per section. */
|
|
547
|
+
groups?: SelectOptionGroup[];
|
|
354
548
|
label?: string;
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
|
|
549
|
+
/** Renders a disabled empty option — the native "choose one" affordance. */
|
|
550
|
+
placeholder?: string;
|
|
551
|
+
/** Native multi-select: value/onChange switch to string[]. */
|
|
552
|
+
multiple?: boolean;
|
|
553
|
+
value?: string | string[];
|
|
554
|
+
defaultValue?: string | string[];
|
|
555
|
+
onChange?: (value: string | string[]) => void;
|
|
556
|
+
/** Alias for onChange — the value-based callback used by most codebases. */
|
|
557
|
+
onValueChange?: (value: string | string[]) => void;
|
|
358
558
|
} & React.RefAttributes<HTMLSelectElement>>;
|
|
359
559
|
|
|
560
|
+
type TableCardProps = React.HTMLAttributes<HTMLDivElement> & {
|
|
561
|
+
title?: string;
|
|
562
|
+
description?: string;
|
|
563
|
+
/** Right-aligned header actions (create, export, column settings). */
|
|
564
|
+
actions?: React.ReactNode;
|
|
565
|
+
/** Row between the header and the table (filters, bulk actions). */
|
|
566
|
+
toolbar?: React.ReactNode;
|
|
567
|
+
/** Table/DataTable content. */
|
|
568
|
+
children: React.ReactNode;
|
|
569
|
+
/** Rendered under the table (pagination, summary). */
|
|
570
|
+
footer?: React.ReactNode;
|
|
571
|
+
/** Remove the inner padding so table edges reach the card border. */
|
|
572
|
+
flush?: boolean;
|
|
573
|
+
};
|
|
574
|
+
/**
|
|
575
|
+
* Table shell: title/description + actions, an optional toolbar, an
|
|
576
|
+
* edge-to-edge table body and a footer row. Standardizes the chrome every
|
|
577
|
+
* list page grows around a Table or DataTable.
|
|
578
|
+
*/
|
|
579
|
+
declare const TableCard: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLDivElement> & {
|
|
580
|
+
title?: string;
|
|
581
|
+
description?: string;
|
|
582
|
+
/** Right-aligned header actions (create, export, column settings). */
|
|
583
|
+
actions?: React.ReactNode;
|
|
584
|
+
/** Row between the header and the table (filters, bulk actions). */
|
|
585
|
+
toolbar?: React.ReactNode;
|
|
586
|
+
/** Table/DataTable content. */
|
|
587
|
+
children: React.ReactNode;
|
|
588
|
+
/** Rendered under the table (pagination, summary). */
|
|
589
|
+
footer?: React.ReactNode;
|
|
590
|
+
/** Remove the inner padding so table edges reach the card border. */
|
|
591
|
+
flush?: boolean;
|
|
592
|
+
} & React.RefAttributes<HTMLDivElement>>;
|
|
593
|
+
|
|
594
|
+
type SelectMenuItem = {
|
|
595
|
+
value: string;
|
|
596
|
+
label: string;
|
|
597
|
+
/** Muted supporting line under the label. */
|
|
598
|
+
description?: string;
|
|
599
|
+
icon?: React.ReactNode;
|
|
600
|
+
disabled?: boolean;
|
|
601
|
+
/** Section heading the item renders under. */
|
|
602
|
+
group?: string;
|
|
603
|
+
};
|
|
604
|
+
type SelectMenuProps = Omit<React.ButtonHTMLAttributes<HTMLButtonElement>, 'value' | 'defaultValue' | 'onChange' | 'children' | 'type'> & {
|
|
605
|
+
items: SelectMenuItem[];
|
|
606
|
+
/** Selected value(s): a string, or string[] when multiple. */
|
|
607
|
+
value?: string | string[];
|
|
608
|
+
defaultValue?: string | string[];
|
|
609
|
+
onValueChange?: (value: string | string[]) => void;
|
|
610
|
+
/** Allow choosing several items (the listbox stays open). */
|
|
611
|
+
multiple?: boolean;
|
|
612
|
+
placeholder?: string;
|
|
613
|
+
/** Name for hidden form inputs (renders one input per selected value). */
|
|
614
|
+
name?: string;
|
|
615
|
+
/** Custom trigger content for the current selection. */
|
|
616
|
+
renderValue?: (selected: SelectMenuItem[]) => React.ReactNode;
|
|
617
|
+
/** Custom option row. */
|
|
618
|
+
renderItem?: (item: SelectMenuItem, state: {
|
|
619
|
+
selected: boolean;
|
|
620
|
+
active: boolean;
|
|
621
|
+
}) => React.ReactNode;
|
|
622
|
+
emptyText?: string;
|
|
623
|
+
};
|
|
624
|
+
/**
|
|
625
|
+
* Custom dropdown select for rich options: descriptions, icons, grouped
|
|
626
|
+
* headings, multi-select and custom row rendering. Unlike `Select` (native
|
|
627
|
+
* `<select>`), this renders a real listbox, so option content is not limited
|
|
628
|
+
* to text. Keyboard model follows the button/listbox pattern: arrows move the
|
|
629
|
+
* active option, Home/End jump, Enter/Space selects, Escape closes, and
|
|
630
|
+
* first-letter typeahead jumps to matching options.
|
|
631
|
+
*/
|
|
632
|
+
declare const SelectMenu: React.ForwardRefExoticComponent<Omit<React.ButtonHTMLAttributes<HTMLButtonElement>, "children" | "type" | "defaultValue" | "onChange" | "value"> & {
|
|
633
|
+
items: SelectMenuItem[];
|
|
634
|
+
/** Selected value(s): a string, or string[] when multiple. */
|
|
635
|
+
value?: string | string[];
|
|
636
|
+
defaultValue?: string | string[];
|
|
637
|
+
onValueChange?: (value: string | string[]) => void;
|
|
638
|
+
/** Allow choosing several items (the listbox stays open). */
|
|
639
|
+
multiple?: boolean;
|
|
640
|
+
placeholder?: string;
|
|
641
|
+
/** Name for hidden form inputs (renders one input per selected value). */
|
|
642
|
+
name?: string;
|
|
643
|
+
/** Custom trigger content for the current selection. */
|
|
644
|
+
renderValue?: (selected: SelectMenuItem[]) => React.ReactNode;
|
|
645
|
+
/** Custom option row. */
|
|
646
|
+
renderItem?: (item: SelectMenuItem, state: {
|
|
647
|
+
selected: boolean;
|
|
648
|
+
active: boolean;
|
|
649
|
+
}) => React.ReactNode;
|
|
650
|
+
emptyText?: string;
|
|
651
|
+
} & React.RefAttributes<HTMLButtonElement>>;
|
|
652
|
+
|
|
360
653
|
type SearchOption = {
|
|
361
654
|
value: string;
|
|
362
655
|
label: string;
|
|
@@ -368,6 +661,8 @@ type SearchOption = {
|
|
|
368
661
|
type SearchProps = {
|
|
369
662
|
/** The full option set; filtered client-side as the user types. */
|
|
370
663
|
options: SearchOption[];
|
|
664
|
+
/** Controlled selected value (display follows it). null clears the selection. */
|
|
665
|
+
value?: string | null;
|
|
371
666
|
/** Initially selected option value. Selection is reported via onValueChange. */
|
|
372
667
|
defaultValue?: string;
|
|
373
668
|
/** Called with the selected option's value. */
|
|
@@ -388,7 +683,7 @@ type SearchProps = {
|
|
|
388
683
|
* defaultValue). The listbox portals to document.body with fixed
|
|
389
684
|
* positioning, so scrollable containers never clip it.
|
|
390
685
|
*/
|
|
391
|
-
declare function Search({ options, defaultValue, onValueChange, placeholder, emptyText, disabled, id, name, className, 'aria-label': ariaLabel, }: SearchProps): React.JSX.Element;
|
|
686
|
+
declare function Search({ options, value, defaultValue, onValueChange, placeholder, emptyText, disabled, id, name, className, 'aria-label': ariaLabel, }: SearchProps): React.JSX.Element;
|
|
392
687
|
|
|
393
688
|
type ComboboxItem = {
|
|
394
689
|
value: string;
|
|
@@ -441,27 +736,54 @@ type UseComboboxResult = {
|
|
|
441
736
|
*/
|
|
442
737
|
declare function useCombobox({ items, onSelect, onOpenChange, closeOnSubmit, }: UseComboboxOptions): UseComboboxResult;
|
|
443
738
|
|
|
739
|
+
type AutocompleteOption = {
|
|
740
|
+
value: string;
|
|
741
|
+
/** Display label; defaults to the value. */
|
|
742
|
+
label?: string;
|
|
743
|
+
/** Section heading the option renders under. */
|
|
744
|
+
group?: string;
|
|
745
|
+
/** Muted supporting line under the label. */
|
|
746
|
+
description?: string;
|
|
747
|
+
};
|
|
444
748
|
type AutocompleteProps = Omit<React.InputHTMLAttributes<HTMLInputElement>, 'value' | 'defaultValue' | 'onChange' | 'children' | 'size'> & {
|
|
445
749
|
/** Current text — standard controlled-input contract. */
|
|
446
750
|
value?: string;
|
|
447
751
|
/** Initial text when uncontrolled. */
|
|
448
752
|
defaultValue?: string;
|
|
449
|
-
/** Fires on every keystroke AND on suggestion selection
|
|
753
|
+
/** Fires on every keystroke AND on suggestion selection. */
|
|
450
754
|
onValueChange?: (value: string) => void;
|
|
451
|
-
/**
|
|
452
|
-
|
|
453
|
-
/**
|
|
755
|
+
/** Static suggestions (strings or option objects). */
|
|
756
|
+
options?: Array<string | AutocompleteOption>;
|
|
757
|
+
/** @deprecated Use `options`. */
|
|
758
|
+
suggestions?: string[];
|
|
759
|
+
/** Async source; called with the current query (debounced) when provided. */
|
|
760
|
+
loadOptions?: (query: string) => Promise<Array<string | AutocompleteOption>>;
|
|
761
|
+
/** Custom row rendering (receives the normalized option). */
|
|
762
|
+
renderOption?: (option: NormalizedOption, state: {
|
|
763
|
+
active: boolean;
|
|
764
|
+
}) => React.ReactNode;
|
|
765
|
+
/** Show a clear button once there is text. */
|
|
766
|
+
clearable?: boolean;
|
|
767
|
+
/** Shown when no option matches. */
|
|
454
768
|
emptyText?: string;
|
|
769
|
+
/** Shown while async options load. */
|
|
770
|
+
loadingText?: string;
|
|
771
|
+
/** Debounce for `loadOptions`, in ms. Default 200. */
|
|
772
|
+
debounceMs?: number;
|
|
773
|
+
};
|
|
774
|
+
type NormalizedOption = {
|
|
775
|
+
value: string;
|
|
776
|
+
label: string;
|
|
777
|
+
group?: string;
|
|
778
|
+
description?: string;
|
|
455
779
|
};
|
|
456
780
|
/**
|
|
457
781
|
* Type-ahead input following the HTML autocomplete model: users may enter
|
|
458
|
-
* any value (free text is first-class), while matching
|
|
459
|
-
*
|
|
460
|
-
*
|
|
461
|
-
* keep working alongside the custom listbox). The listbox portals with
|
|
462
|
-
* fixed positioning so scrollable containers never clip it.
|
|
782
|
+
* any value (free text is first-class), while matching options appear in a
|
|
783
|
+
* portalled listbox (grouped, optional async loading, custom rows).
|
|
784
|
+
* Arrow keys highlight, Enter accepts, Escape dismisses.
|
|
463
785
|
*/
|
|
464
|
-
declare function Autocomplete({ value, defaultValue, onValueChange, suggestions, emptyText, placeholder, id, name, className, onKeyDown, onFocus, ...inputProps }: AutocompleteProps): React.JSX.Element;
|
|
786
|
+
declare function Autocomplete({ value, defaultValue, onValueChange, options, suggestions, loadOptions, renderOption, clearable, emptyText, loadingText, debounceMs, placeholder, id, name, className, onKeyDown, onFocus, ...inputProps }: AutocompleteProps): React.JSX.Element;
|
|
465
787
|
|
|
466
788
|
type CheckboxProps = Omit<React.InputHTMLAttributes<HTMLInputElement>, 'type' | 'onChange'> & {
|
|
467
789
|
/** Controlled checked state; omit for uncontrolled usage. */
|
|
@@ -514,7 +836,7 @@ type CheckboxGroupItemProps = Omit<React.InputHTMLAttributes<HTMLInputElement>,
|
|
|
514
836
|
label?: string;
|
|
515
837
|
};
|
|
516
838
|
/** A single multi-select option inside a `CheckboxGroup`. */
|
|
517
|
-
declare const CheckboxGroupItem: React.ForwardRefExoticComponent<Omit<React.InputHTMLAttributes<HTMLInputElement>, "name" | "type" | "
|
|
839
|
+
declare const CheckboxGroupItem: React.ForwardRefExoticComponent<Omit<React.InputHTMLAttributes<HTMLInputElement>, "name" | "type" | "onChange" | "checked" | "value"> & {
|
|
518
840
|
/** The value this item contributes to the selection. */
|
|
519
841
|
value: string;
|
|
520
842
|
/** Visible label rendered next to the checkbox. */
|
|
@@ -576,7 +898,7 @@ type RadioGroupItemProps = Omit<RadioProps, 'name' | 'checked' | 'onCheckedChang
|
|
|
576
898
|
label?: string;
|
|
577
899
|
};
|
|
578
900
|
/** A single radio option inside a `RadioGroup`. */
|
|
579
|
-
declare const RadioGroupItem: React.ForwardRefExoticComponent<Omit<RadioProps, "name" | "
|
|
901
|
+
declare const RadioGroupItem: React.ForwardRefExoticComponent<Omit<RadioProps, "name" | "checked" | "value" | "onCheckedChange"> & {
|
|
580
902
|
/** The value this item contributes to the group. */
|
|
581
903
|
value: string;
|
|
582
904
|
/** Visible label rendered next to the radio. */
|
|
@@ -763,6 +1085,8 @@ type SwitchProps = Omit<React.ButtonHTMLAttributes<HTMLButtonElement>, 'onChange
|
|
|
763
1085
|
defaultChecked?: boolean;
|
|
764
1086
|
/** Fired when the user toggles the switch. */
|
|
765
1087
|
onCheckedChange?: (checked: boolean) => void;
|
|
1088
|
+
/** Name for form submission — renders a hidden "on" input while checked. */
|
|
1089
|
+
name?: string;
|
|
766
1090
|
};
|
|
767
1091
|
/**
|
|
768
1092
|
* Toggle switch for binary settings. Rendered as a button with
|
|
@@ -776,6 +1100,8 @@ declare const Switch: React.ForwardRefExoticComponent<Omit<React.ButtonHTMLAttri
|
|
|
776
1100
|
defaultChecked?: boolean;
|
|
777
1101
|
/** Fired when the user toggles the switch. */
|
|
778
1102
|
onCheckedChange?: (checked: boolean) => void;
|
|
1103
|
+
/** Name for form submission — renders a hidden "on" input while checked. */
|
|
1104
|
+
name?: string;
|
|
779
1105
|
} & React.RefAttributes<HTMLButtonElement>>;
|
|
780
1106
|
|
|
781
1107
|
declare const separatorVariants: (props?: ({
|
|
@@ -926,9 +1252,15 @@ type TooltipProps = {
|
|
|
926
1252
|
*/
|
|
927
1253
|
declare const Tooltip: React.ForwardRefExoticComponent<TooltipProps & React.RefAttributes<HTMLDivElement>>;
|
|
928
1254
|
|
|
929
|
-
type CardProps = React.HTMLAttributes<HTMLDivElement
|
|
1255
|
+
type CardProps = React.HTMLAttributes<HTMLDivElement> & {
|
|
1256
|
+
/** Render the child element (e.g. a router Link) with card styling. */
|
|
1257
|
+
asChild?: boolean;
|
|
1258
|
+
};
|
|
930
1259
|
/** Content container with a subtle border and surface styling. */
|
|
931
|
-
declare const Card: React.ForwardRefExoticComponent<
|
|
1260
|
+
declare const Card: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLDivElement> & {
|
|
1261
|
+
/** Render the child element (e.g. a router Link) with card styling. */
|
|
1262
|
+
asChild?: boolean;
|
|
1263
|
+
} & React.RefAttributes<HTMLDivElement>>;
|
|
932
1264
|
type CardHeaderProps = React.HTMLAttributes<HTMLDivElement>;
|
|
933
1265
|
/** Header section of a Card; typically contains CardTitle and CardDescription. */
|
|
934
1266
|
declare const CardHeader: React.ForwardRefExoticComponent<CardHeaderProps & React.RefAttributes<HTMLDivElement>>;
|
|
@@ -945,6 +1277,138 @@ type CardFooterProps = React.HTMLAttributes<HTMLDivElement>;
|
|
|
945
1277
|
/** Footer section of a Card; typically contains actions. */
|
|
946
1278
|
declare const CardFooter: React.ForwardRefExoticComponent<CardFooterProps & React.RefAttributes<HTMLDivElement>>;
|
|
947
1279
|
|
|
1280
|
+
type ConfirmDialogProps = {
|
|
1281
|
+
open: boolean;
|
|
1282
|
+
onOpenChange: (open: boolean) => void;
|
|
1283
|
+
title: string;
|
|
1284
|
+
description?: string;
|
|
1285
|
+
/** Confirm button label. Default 'Confirm'. */
|
|
1286
|
+
confirmLabel?: string;
|
|
1287
|
+
/** Cancel button label. Default 'Cancel'. */
|
|
1288
|
+
cancelLabel?: string;
|
|
1289
|
+
/** Destructive confirmation (red confirm button + destructive panel accent). */
|
|
1290
|
+
destructive?: boolean;
|
|
1291
|
+
/**
|
|
1292
|
+
* Confirm handler. Return a promise to show a pending state; the dialog
|
|
1293
|
+
* closes automatically when it resolves unless `closeOnConfirm` is false.
|
|
1294
|
+
*/
|
|
1295
|
+
onConfirm: () => void | Promise<void>;
|
|
1296
|
+
closeOnConfirm?: boolean;
|
|
1297
|
+
/** Extra body content above the actions. */
|
|
1298
|
+
children?: React.ReactNode;
|
|
1299
|
+
};
|
|
1300
|
+
/**
|
|
1301
|
+
* Accessible confirmation dialog built on Dialog: focus trap, Escape,
|
|
1302
|
+
* backdrop dismissal and focus restoration come from the primitive, plus a
|
|
1303
|
+
* pending state for async confirmations (79 hand-rolled confirm modals in
|
|
1304
|
+
* the audited apps use this exact shape).
|
|
1305
|
+
*/
|
|
1306
|
+
declare function ConfirmDialog({ open, onOpenChange, title, description, confirmLabel, cancelLabel, destructive, onConfirm, closeOnConfirm, children, }: ConfirmDialogProps): React.JSX.Element;
|
|
1307
|
+
|
|
1308
|
+
type TocHeading = {
|
|
1309
|
+
id: string;
|
|
1310
|
+
text: string;
|
|
1311
|
+
level: 2 | 3 | 4;
|
|
1312
|
+
};
|
|
1313
|
+
type TableOfContentsProps = React.HTMLAttributes<HTMLElement> & {
|
|
1314
|
+
headings: TocHeading[];
|
|
1315
|
+
/** Controlled active heading id (otherwise use `useScrollSpy`). */
|
|
1316
|
+
activeId?: string;
|
|
1317
|
+
/** Accessible name. Default 'On this page'. */
|
|
1318
|
+
label?: string;
|
|
1319
|
+
/** Stick to the viewport while the article scrolls (default true). */
|
|
1320
|
+
sticky?: boolean;
|
|
1321
|
+
};
|
|
1322
|
+
/**
|
|
1323
|
+
* "On this page" navigation for long-form content. Renders a nested list
|
|
1324
|
+
* with indentation per heading level and aria-current on the active item.
|
|
1325
|
+
* Pair with `useScrollSpy` (or your own scroll tracking) for the active id.
|
|
1326
|
+
*/
|
|
1327
|
+
declare function TableOfContents({ headings, activeId, label, sticky, className, ...props }: TableOfContentsProps): React.JSX.Element;
|
|
1328
|
+
/**
|
|
1329
|
+
* Tracks which of the given element ids is currently in view. Returns the
|
|
1330
|
+
* active id (the last heading scrolled past) and stays SSR-safe.
|
|
1331
|
+
*/
|
|
1332
|
+
declare function useScrollSpy(ids: string[], options?: {
|
|
1333
|
+
rootMargin?: string;
|
|
1334
|
+
}): string | undefined;
|
|
1335
|
+
|
|
1336
|
+
type ProseProps = React.HTMLAttributes<HTMLDivElement> & {
|
|
1337
|
+
/** Type scale. Default 'md'. */
|
|
1338
|
+
size?: 'sm' | 'md' | 'lg';
|
|
1339
|
+
};
|
|
1340
|
+
/**
|
|
1341
|
+
* Long-form content typography for rendered markdown/MDX output.
|
|
1342
|
+
*
|
|
1343
|
+
* Self-contained (no @tailwindcss/typography dependency): element styles ride
|
|
1344
|
+
* on child selectors, so any MDX/remark renderer can drop its output inside.
|
|
1345
|
+
* Keeps the content pipeline (Shiki, KaTeX, Mermaid) untouched.
|
|
1346
|
+
*/
|
|
1347
|
+
declare const Prose: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLDivElement> & {
|
|
1348
|
+
/** Type scale. Default 'md'. */
|
|
1349
|
+
size?: "sm" | "md" | "lg";
|
|
1350
|
+
} & React.RefAttributes<HTMLDivElement>>;
|
|
1351
|
+
|
|
1352
|
+
type SiteFooterLink = {
|
|
1353
|
+
label: string;
|
|
1354
|
+
href: string;
|
|
1355
|
+
external?: boolean;
|
|
1356
|
+
};
|
|
1357
|
+
type SiteFooterColumn = {
|
|
1358
|
+
title: string;
|
|
1359
|
+
links: SiteFooterLink[];
|
|
1360
|
+
};
|
|
1361
|
+
type SiteFooterProps = React.HTMLAttributes<HTMLElement> & {
|
|
1362
|
+
/** Brand slot (logo/lockup). */
|
|
1363
|
+
brand?: React.ReactNode;
|
|
1364
|
+
/** Short line under the brand. */
|
|
1365
|
+
tagline?: string;
|
|
1366
|
+
columns: SiteFooterColumn[];
|
|
1367
|
+
/** Bottom bar (copyright, legal links). */
|
|
1368
|
+
legal?: React.ReactNode;
|
|
1369
|
+
/** Router link element. */
|
|
1370
|
+
linkComponent?: React.ElementType;
|
|
1371
|
+
};
|
|
1372
|
+
/**
|
|
1373
|
+
* Marketing footer: brand + tagline column, link columns, and a legal bar.
|
|
1374
|
+
* Router-agnostic through `linkComponent`; external links get safe rel.
|
|
1375
|
+
*/
|
|
1376
|
+
declare function SiteFooter({ brand, tagline, columns, legal, linkComponent, className, ...props }: SiteFooterProps): React.JSX.Element;
|
|
1377
|
+
|
|
1378
|
+
type SiteNavItem = {
|
|
1379
|
+
href: string;
|
|
1380
|
+
label: string;
|
|
1381
|
+
/** Render with target=_blank + rel=noopener. */
|
|
1382
|
+
external?: boolean;
|
|
1383
|
+
};
|
|
1384
|
+
type SiteHeaderProps = React.HTMLAttributes<HTMLElement> & {
|
|
1385
|
+
/** Brand slot — logo/lockup or wordmark. Wrapped in a link to "/". */
|
|
1386
|
+
brand: React.ReactNode;
|
|
1387
|
+
/** Primary navigation items. */
|
|
1388
|
+
items: SiteNavItem[];
|
|
1389
|
+
/** Current route for active styling (aria-current="page"). */
|
|
1390
|
+
activeHref?: string;
|
|
1391
|
+
/**
|
|
1392
|
+
* Active matching: 'prefix' highlights /docs when on /docs/installation
|
|
1393
|
+
* (default — marketing), 'exact' only the identical href (app chrome).
|
|
1394
|
+
*/
|
|
1395
|
+
match?: 'prefix' | 'exact';
|
|
1396
|
+
/** Right-aligned actions (theme toggle, GitHub, CTA). */
|
|
1397
|
+
actions?: React.ReactNode;
|
|
1398
|
+
/** Custom link element for routers (Next Link, react-router Link). */
|
|
1399
|
+
linkComponent?: React.ElementType;
|
|
1400
|
+
/** Pin to the top (default true). */
|
|
1401
|
+
sticky?: boolean;
|
|
1402
|
+
/** Title of the mobile navigation drawer. Default 'Menu'. */
|
|
1403
|
+
mobileLabel?: string;
|
|
1404
|
+
};
|
|
1405
|
+
/**
|
|
1406
|
+
* Marketing/site header: sticky bar with brand, horizontal navigation with
|
|
1407
|
+
* prefix-aware active states, right-aligned actions and a mobile drawer.
|
|
1408
|
+
* Router-agnostic through `linkComponent`.
|
|
1409
|
+
*/
|
|
1410
|
+
declare function SiteHeader({ brand, items, activeHref, match, actions, linkComponent, sticky, mobileLabel, className, ...props }: SiteHeaderProps): React.JSX.Element;
|
|
1411
|
+
|
|
948
1412
|
type AccordionProps = {
|
|
949
1413
|
/** Controlled open item ids. */
|
|
950
1414
|
value?: string[];
|
|
@@ -1060,12 +1524,28 @@ type DataTableProps<T> = {
|
|
|
1060
1524
|
pageSize?: number;
|
|
1061
1525
|
/** Controlled page (1-based) when pageSize is set. */
|
|
1062
1526
|
page?: number;
|
|
1527
|
+
/** Total page count (manual/server pagination). */
|
|
1528
|
+
pageCount?: number;
|
|
1529
|
+
/** Total row count across all pages (summary + derived page count). */
|
|
1530
|
+
total?: number;
|
|
1531
|
+
/** Server pagination: render `data` as-is; don't slice or sort client-side. */
|
|
1532
|
+
manualPagination?: boolean;
|
|
1533
|
+
/** Selected row ids (controlled). Enables the leading selection column. */
|
|
1534
|
+
selectedRowIds?: string[];
|
|
1535
|
+
/** Fires with the full selection after a row or select-all toggle. */
|
|
1536
|
+
onSelectedRowIdsChange?: (ids: string[]) => void;
|
|
1537
|
+
/** Disable selection for individual rows. */
|
|
1538
|
+
isRowSelectable?: (row: T) => boolean;
|
|
1539
|
+
/** Rendered above the table while at least one row is selected. */
|
|
1540
|
+
bulkActions?: React.ReactNode;
|
|
1063
1541
|
/** Fires on page change (controlled or not). */
|
|
1064
1542
|
onPageChange?: (page: number) => void;
|
|
1065
1543
|
/** Click/keyboard activation on a row. */
|
|
1066
1544
|
onRowClick?: (row: T) => void;
|
|
1067
1545
|
/** Message shown when data is empty. */
|
|
1068
1546
|
emptyMessage?: string;
|
|
1547
|
+
/** Accessible label for the select-all checkbox (default "Select all rows"). */
|
|
1548
|
+
selectAllLabel?: string;
|
|
1069
1549
|
/** Pin the header while the body scrolls (needs a max-height on the wrapper via className). */
|
|
1070
1550
|
stickyHeader?: boolean;
|
|
1071
1551
|
/** Compact row density. */
|
|
@@ -1088,7 +1568,7 @@ type DataTableProps<T> = {
|
|
|
1088
1568
|
* aria-sort, cursor pagination when `pageSize` is set, and a friendly empty
|
|
1089
1569
|
* state — so most tables never need hand-rolled table code.
|
|
1090
1570
|
*/
|
|
1091
|
-
declare function DataTable<T>({ columns, data, rowId, caption, defaultSort, sortKey, sortDir, onSortChange, renderSortIcon, pageSize, page, onPageChange, onRowClick, emptyMessage, stickyHeader, density, zebra, loading, loadingRows, className, }: DataTableProps<T>): React.JSX.Element;
|
|
1571
|
+
declare function DataTable<T>({ columns, data, rowId, caption, defaultSort, sortKey, sortDir, onSortChange, renderSortIcon, pageSize, page, onPageChange, pageCount: pageCountProp, total, manualPagination, selectedRowIds, onSelectedRowIdsChange, isRowSelectable, bulkActions, onRowClick, emptyMessage, selectAllLabel, stickyHeader, density, zebra, loading, loadingRows, className, }: DataTableProps<T>): React.JSX.Element;
|
|
1092
1572
|
|
|
1093
1573
|
type ListProps = React.HTMLAttributes<HTMLUListElement> & {
|
|
1094
1574
|
/** Hairline dividers between rows. */
|
|
@@ -1147,6 +1627,39 @@ declare const ListItem: React.ForwardRefExoticComponent<React.LiHTMLAttributes<H
|
|
|
1147
1627
|
disabled?: boolean;
|
|
1148
1628
|
} & React.RefAttributes<HTMLLIElement>>;
|
|
1149
1629
|
|
|
1630
|
+
declare const linkVariants: (props?: ({
|
|
1631
|
+
variant?: "default" | "muted" | "underline" | "arrow" | "external" | null | undefined;
|
|
1632
|
+
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
1633
|
+
type LinkProps = React.AnchorHTMLAttributes<HTMLAnchorElement> & VariantProps<typeof linkVariants> & {
|
|
1634
|
+
/** Render the child element (router Link) with link styling. */
|
|
1635
|
+
asChild?: boolean;
|
|
1636
|
+
/**
|
|
1637
|
+
* Force external handling (target=_blank + rel). Absolute http(s) hrefs
|
|
1638
|
+
* are detected automatically; mailto:/tel: links never open a new tab.
|
|
1639
|
+
*/
|
|
1640
|
+
external?: boolean;
|
|
1641
|
+
};
|
|
1642
|
+
/**
|
|
1643
|
+
* Inline link primitive with the project's link variants. Keeps a real
|
|
1644
|
+
* `<a href>` (SEO, modified clicks, middle-click) and adds safe external
|
|
1645
|
+
* handling: absolute URLs get target="_blank" + rel="noopener noreferrer"
|
|
1646
|
+
* and a screen-reader note, unless `external={false}`.
|
|
1647
|
+
*
|
|
1648
|
+
* For client-side routing, wrap your router's link: `<Link asChild><RouterLink …/></Link>`.
|
|
1649
|
+
*/
|
|
1650
|
+
declare const Link: React.ForwardRefExoticComponent<React.AnchorHTMLAttributes<HTMLAnchorElement> & VariantProps<(props?: ({
|
|
1651
|
+
variant?: "default" | "muted" | "underline" | "arrow" | "external" | null | undefined;
|
|
1652
|
+
} & class_variance_authority_types.ClassProp) | undefined) => string> & {
|
|
1653
|
+
/** Render the child element (router Link) with link styling. */
|
|
1654
|
+
asChild?: boolean;
|
|
1655
|
+
/**
|
|
1656
|
+
* Force external handling (target=_blank + rel). Absolute http(s) hrefs
|
|
1657
|
+
* are detected automatically; mailto:/tel: links never open a new tab.
|
|
1658
|
+
*/
|
|
1659
|
+
external?: boolean;
|
|
1660
|
+
} & React.RefAttributes<HTMLAnchorElement>>;
|
|
1661
|
+
type LinkVariant = NonNullable<VariantProps<typeof linkVariants>['variant']>;
|
|
1662
|
+
|
|
1150
1663
|
declare const sizeClasses$1: {
|
|
1151
1664
|
readonly xs: "text-xs";
|
|
1152
1665
|
readonly sm: "text-sm";
|
|
@@ -1217,6 +1730,344 @@ declare const Heading: React.ForwardRefExoticComponent<React.HTMLAttributes<HTML
|
|
|
1217
1730
|
muted?: boolean;
|
|
1218
1731
|
} & React.RefAttributes<HTMLHeadingElement>>;
|
|
1219
1732
|
|
|
1733
|
+
type EmptyStateProps = React.HTMLAttributes<HTMLDivElement> & {
|
|
1734
|
+
/** Icon or illustration shown above the title. */
|
|
1735
|
+
icon?: React.ReactNode;
|
|
1736
|
+
title: string;
|
|
1737
|
+
description?: string;
|
|
1738
|
+
/** Primary action (button/link). */
|
|
1739
|
+
action?: React.ReactNode;
|
|
1740
|
+
/** Secondary action shown beside the primary one. */
|
|
1741
|
+
secondaryAction?: React.ReactNode;
|
|
1742
|
+
/** Compact padding for use inside panels and table bodies. */
|
|
1743
|
+
size?: 'sm' | 'md';
|
|
1744
|
+
};
|
|
1745
|
+
/**
|
|
1746
|
+
* Placeholder for empty collections, zero-result searches and unconfigured
|
|
1747
|
+
* features. Keeps the title/description/action hierarchy consistent across
|
|
1748
|
+
* the product.
|
|
1749
|
+
*/
|
|
1750
|
+
declare const EmptyState: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLDivElement> & {
|
|
1751
|
+
/** Icon or illustration shown above the title. */
|
|
1752
|
+
icon?: React.ReactNode;
|
|
1753
|
+
title: string;
|
|
1754
|
+
description?: string;
|
|
1755
|
+
/** Primary action (button/link). */
|
|
1756
|
+
action?: React.ReactNode;
|
|
1757
|
+
/** Secondary action shown beside the primary one. */
|
|
1758
|
+
secondaryAction?: React.ReactNode;
|
|
1759
|
+
/** Compact padding for use inside panels and table bodies. */
|
|
1760
|
+
size?: "sm" | "md";
|
|
1761
|
+
} & React.RefAttributes<HTMLDivElement>>;
|
|
1762
|
+
|
|
1763
|
+
type PageHeaderProps = React.HTMLAttributes<HTMLDivElement> & {
|
|
1764
|
+
title: string;
|
|
1765
|
+
description?: string;
|
|
1766
|
+
/** Breadcrumbs/eyebrow above the title. */
|
|
1767
|
+
breadcrumbs?: React.ReactNode;
|
|
1768
|
+
/** Right-aligned actions (buttons, menus). */
|
|
1769
|
+
actions?: React.ReactNode;
|
|
1770
|
+
/** Small slot under the title row (tabs, filters). */
|
|
1771
|
+
children?: React.ReactNode;
|
|
1772
|
+
/** Eyebrow/kicker above the title (category, date, overline). */
|
|
1773
|
+
eyebrow?: React.ReactNode;
|
|
1774
|
+
/** Heading scale — 'hero' is for marketing landing pages. */
|
|
1775
|
+
size?: 'sm' | 'md' | 'lg' | 'hero';
|
|
1776
|
+
/** Text alignment; hero marketing pages often center. */
|
|
1777
|
+
align?: 'left' | 'center';
|
|
1778
|
+
};
|
|
1779
|
+
/**
|
|
1780
|
+
* Standard page heading block: optional breadcrumbs, title, description and
|
|
1781
|
+
* a right-aligned action cluster. Pages stop inventing their own spacing
|
|
1782
|
+
* and heading hierarchy.
|
|
1783
|
+
*/
|
|
1784
|
+
declare const PageHeader: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLDivElement> & {
|
|
1785
|
+
title: string;
|
|
1786
|
+
description?: string;
|
|
1787
|
+
/** Breadcrumbs/eyebrow above the title. */
|
|
1788
|
+
breadcrumbs?: React.ReactNode;
|
|
1789
|
+
/** Right-aligned actions (buttons, menus). */
|
|
1790
|
+
actions?: React.ReactNode;
|
|
1791
|
+
/** Small slot under the title row (tabs, filters). */
|
|
1792
|
+
children?: React.ReactNode;
|
|
1793
|
+
/** Eyebrow/kicker above the title (category, date, overline). */
|
|
1794
|
+
eyebrow?: React.ReactNode;
|
|
1795
|
+
/** Heading scale — 'hero' is for marketing landing pages. */
|
|
1796
|
+
size?: "sm" | "md" | "lg" | "hero";
|
|
1797
|
+
/** Text alignment; hero marketing pages often center. */
|
|
1798
|
+
align?: "left" | "center";
|
|
1799
|
+
} & React.RefAttributes<HTMLDivElement>>;
|
|
1800
|
+
|
|
1801
|
+
type SectionHeadingProps = React.HTMLAttributes<HTMLDivElement> & {
|
|
1802
|
+
title: string;
|
|
1803
|
+
description?: string;
|
|
1804
|
+
/** Kicker above the title (category, step, overline). */
|
|
1805
|
+
eyebrow?: React.ReactNode;
|
|
1806
|
+
/** Right-aligned actions (link to all, buttons). */
|
|
1807
|
+
actions?: React.ReactNode;
|
|
1808
|
+
/** Heading level rendered for the title (default h2). */
|
|
1809
|
+
level?: 2 | 3 | 4;
|
|
1810
|
+
align?: 'left' | 'center';
|
|
1811
|
+
size?: 'sm' | 'md' | 'lg';
|
|
1812
|
+
};
|
|
1813
|
+
/**
|
|
1814
|
+
* Marketing/content section heading: eyebrow, title, description and an
|
|
1815
|
+
* actions slot, with heading level and alignment control. Complements
|
|
1816
|
+
* PageHeader (which owns the page's single h1).
|
|
1817
|
+
*/
|
|
1818
|
+
declare const SectionHeading: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLDivElement> & {
|
|
1819
|
+
title: string;
|
|
1820
|
+
description?: string;
|
|
1821
|
+
/** Kicker above the title (category, step, overline). */
|
|
1822
|
+
eyebrow?: React.ReactNode;
|
|
1823
|
+
/** Right-aligned actions (link to all, buttons). */
|
|
1824
|
+
actions?: React.ReactNode;
|
|
1825
|
+
/** Heading level rendered for the title (default h2). */
|
|
1826
|
+
level?: 2 | 3 | 4;
|
|
1827
|
+
align?: "left" | "center";
|
|
1828
|
+
size?: "sm" | "md" | "lg";
|
|
1829
|
+
} & React.RefAttributes<HTMLDivElement>>;
|
|
1830
|
+
|
|
1831
|
+
type MetricTrend = 'up' | 'down' | 'flat';
|
|
1832
|
+
type MetricCardProps = Omit<React.HTMLAttributes<HTMLDivElement>, 'title'> & {
|
|
1833
|
+
label: string;
|
|
1834
|
+
value: string | number;
|
|
1835
|
+
/** Secondary line under the value. */
|
|
1836
|
+
hint?: string;
|
|
1837
|
+
/** Signed change, e.g. "+12.4%" or "-3". */
|
|
1838
|
+
delta?: string;
|
|
1839
|
+
/** Direction colors the delta (green up / red down / muted flat). */
|
|
1840
|
+
trend?: MetricTrend;
|
|
1841
|
+
icon?: React.ReactNode;
|
|
1842
|
+
};
|
|
1843
|
+
/**
|
|
1844
|
+
* Compact KPI tile: label, value, optional delta with direction color and a
|
|
1845
|
+
* supporting hint. Deltas always carry an arrow glyph so the direction is
|
|
1846
|
+
* never communicated by color alone.
|
|
1847
|
+
*/
|
|
1848
|
+
declare const MetricCard: React.ForwardRefExoticComponent<Omit<React.HTMLAttributes<HTMLDivElement>, "title"> & {
|
|
1849
|
+
label: string;
|
|
1850
|
+
value: string | number;
|
|
1851
|
+
/** Secondary line under the value. */
|
|
1852
|
+
hint?: string;
|
|
1853
|
+
/** Signed change, e.g. "+12.4%" or "-3". */
|
|
1854
|
+
delta?: string;
|
|
1855
|
+
/** Direction colors the delta (green up / red down / muted flat). */
|
|
1856
|
+
trend?: MetricTrend;
|
|
1857
|
+
icon?: React.ReactNode;
|
|
1858
|
+
} & React.RefAttributes<HTMLDivElement>>;
|
|
1859
|
+
|
|
1860
|
+
type PasswordInputProps = Omit<InputProps, 'type'> & {
|
|
1861
|
+
/** Accessible labels for the visibility toggle. */
|
|
1862
|
+
showLabel?: string;
|
|
1863
|
+
hideLabel?: string;
|
|
1864
|
+
};
|
|
1865
|
+
/**
|
|
1866
|
+
* Password field with a show/hide toggle. The toggle is a real button with
|
|
1867
|
+
* pressed state, so keyboard and screen-reader users can reveal the value
|
|
1868
|
+
* without losing the focused field.
|
|
1869
|
+
*/
|
|
1870
|
+
declare const PasswordInput: React.ForwardRefExoticComponent<Omit<InputProps, "type"> & {
|
|
1871
|
+
/** Accessible labels for the visibility toggle. */
|
|
1872
|
+
showLabel?: string;
|
|
1873
|
+
hideLabel?: string;
|
|
1874
|
+
} & React.RefAttributes<HTMLInputElement>>;
|
|
1875
|
+
|
|
1876
|
+
type AuthLayoutProps = React.HTMLAttributes<HTMLDivElement> & {
|
|
1877
|
+
title: string;
|
|
1878
|
+
description?: string;
|
|
1879
|
+
/** Brand/mark above the card. */
|
|
1880
|
+
brand?: React.ReactNode;
|
|
1881
|
+
/** Links or legal copy under the card. */
|
|
1882
|
+
footer?: React.ReactNode;
|
|
1883
|
+
/** Rendered inside the card under the heading. */
|
|
1884
|
+
children?: React.ReactNode;
|
|
1885
|
+
/** Card width preset (default 'md'). */
|
|
1886
|
+
size?: 'sm' | 'md' | 'lg';
|
|
1887
|
+
};
|
|
1888
|
+
/**
|
|
1889
|
+
* Centered auth surface: brand mark, title/description, the form card and a
|
|
1890
|
+
* footer slot. Keeps sign-in, sign-up, reset and verify screens visually
|
|
1891
|
+
* identical without each page re-deriving the layout.
|
|
1892
|
+
*/
|
|
1893
|
+
declare const AuthLayout: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLDivElement> & {
|
|
1894
|
+
title: string;
|
|
1895
|
+
description?: string;
|
|
1896
|
+
/** Brand/mark above the card. */
|
|
1897
|
+
brand?: React.ReactNode;
|
|
1898
|
+
/** Links or legal copy under the card. */
|
|
1899
|
+
footer?: React.ReactNode;
|
|
1900
|
+
/** Rendered inside the card under the heading. */
|
|
1901
|
+
children?: React.ReactNode;
|
|
1902
|
+
/** Card width preset (default 'md'). */
|
|
1903
|
+
size?: "sm" | "md" | "lg";
|
|
1904
|
+
} & React.RefAttributes<HTMLDivElement>>;
|
|
1905
|
+
|
|
1906
|
+
type FilterBarProps = React.HTMLAttributes<HTMLDivElement> & {
|
|
1907
|
+
/** Controlled search text. */
|
|
1908
|
+
searchValue?: string;
|
|
1909
|
+
onSearchChange?: (value: string) => void;
|
|
1910
|
+
/** Search placeholder; the search box is hidden when omitted. */
|
|
1911
|
+
searchPlaceholder?: string;
|
|
1912
|
+
/** Rendered after the search box — selects, toggles, date pickers. */
|
|
1913
|
+
children?: React.ReactNode;
|
|
1914
|
+
/** Shows a reset button when provided (pass the active filter count for the label). */
|
|
1915
|
+
onReset?: () => void;
|
|
1916
|
+
activeCount?: number;
|
|
1917
|
+
/** Rendered at the far right (bulk actions, column settings). */
|
|
1918
|
+
trailing?: React.ReactNode;
|
|
1919
|
+
};
|
|
1920
|
+
/**
|
|
1921
|
+
* Horizontal filter strip for list pages: search field, filter controls and
|
|
1922
|
+
* a reset affordance. Scrolls horizontally on narrow screens instead of
|
|
1923
|
+
* wrapping into a tall stack.
|
|
1924
|
+
*/
|
|
1925
|
+
declare const FilterBar: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLDivElement> & {
|
|
1926
|
+
/** Controlled search text. */
|
|
1927
|
+
searchValue?: string;
|
|
1928
|
+
onSearchChange?: (value: string) => void;
|
|
1929
|
+
/** Search placeholder; the search box is hidden when omitted. */
|
|
1930
|
+
searchPlaceholder?: string;
|
|
1931
|
+
/** Rendered after the search box — selects, toggles, date pickers. */
|
|
1932
|
+
children?: React.ReactNode;
|
|
1933
|
+
/** Shows a reset button when provided (pass the active filter count for the label). */
|
|
1934
|
+
onReset?: () => void;
|
|
1935
|
+
activeCount?: number;
|
|
1936
|
+
/** Rendered at the far right (bulk actions, column settings). */
|
|
1937
|
+
trailing?: React.ReactNode;
|
|
1938
|
+
} & React.RefAttributes<HTMLDivElement>>;
|
|
1939
|
+
|
|
1940
|
+
type DatePickerProps = Omit<InputProps, 'type' | 'onChange' | 'value' | 'defaultValue'> & {
|
|
1941
|
+
/** ISO date string (YYYY-MM-DD) — controlled. */
|
|
1942
|
+
value?: string;
|
|
1943
|
+
/** ISO date string — initial value when uncontrolled. */
|
|
1944
|
+
defaultValue?: string;
|
|
1945
|
+
/** Fired with the ISO string ('' when cleared). */
|
|
1946
|
+
onValueChange?: (value: string) => void;
|
|
1947
|
+
/** Show a clear button once a date is selected. */
|
|
1948
|
+
clearable?: boolean;
|
|
1949
|
+
};
|
|
1950
|
+
/**
|
|
1951
|
+
* Native date field with an ISO-string contract. Uses the platform picker
|
|
1952
|
+
* (mobile date wheels, keyboard editing, locale formatting) rather than a
|
|
1953
|
+
* custom calendar, so accessibility and input methods come for free.
|
|
1954
|
+
*/
|
|
1955
|
+
declare const DatePicker: React.ForwardRefExoticComponent<Omit<InputProps, "type" | "defaultValue" | "onChange" | "value"> & {
|
|
1956
|
+
/** ISO date string (YYYY-MM-DD) — controlled. */
|
|
1957
|
+
value?: string;
|
|
1958
|
+
/** ISO date string — initial value when uncontrolled. */
|
|
1959
|
+
defaultValue?: string;
|
|
1960
|
+
/** Fired with the ISO string ('' when cleared). */
|
|
1961
|
+
onValueChange?: (value: string) => void;
|
|
1962
|
+
/** Show a clear button once a date is selected. */
|
|
1963
|
+
clearable?: boolean;
|
|
1964
|
+
} & React.RefAttributes<HTMLInputElement>>;
|
|
1965
|
+
|
|
1966
|
+
type TimePickerProps = Omit<InputProps, 'type' | 'onChange' | 'value' | 'defaultValue'> & {
|
|
1967
|
+
/** "HH:MM" (24h) — controlled. */
|
|
1968
|
+
value?: string;
|
|
1969
|
+
/** "HH:MM" — initial value when uncontrolled. */
|
|
1970
|
+
defaultValue?: string;
|
|
1971
|
+
/** Fired with the time string ('' when cleared). */
|
|
1972
|
+
onValueChange?: (value: string) => void;
|
|
1973
|
+
/** Show a clear button once a time is selected. */
|
|
1974
|
+
clearable?: boolean;
|
|
1975
|
+
};
|
|
1976
|
+
/**
|
|
1977
|
+
* Native time field with an "HH:MM" contract. The platform supplies the
|
|
1978
|
+
* picker, keyboard editing and locale behavior.
|
|
1979
|
+
*/
|
|
1980
|
+
declare const TimePicker: React.ForwardRefExoticComponent<Omit<InputProps, "type" | "defaultValue" | "onChange" | "value"> & {
|
|
1981
|
+
/** "HH:MM" (24h) — controlled. */
|
|
1982
|
+
value?: string;
|
|
1983
|
+
/** "HH:MM" — initial value when uncontrolled. */
|
|
1984
|
+
defaultValue?: string;
|
|
1985
|
+
/** Fired with the time string ('' when cleared). */
|
|
1986
|
+
onValueChange?: (value: string) => void;
|
|
1987
|
+
/** Show a clear button once a time is selected. */
|
|
1988
|
+
clearable?: boolean;
|
|
1989
|
+
} & React.RefAttributes<HTMLInputElement>>;
|
|
1990
|
+
|
|
1991
|
+
type StepperStep = {
|
|
1992
|
+
label: string;
|
|
1993
|
+
description?: string;
|
|
1994
|
+
};
|
|
1995
|
+
type StepperProps = Omit<React.OlHTMLAttributes<HTMLOListElement>, 'onClick'> & {
|
|
1996
|
+
steps: StepperStep[];
|
|
1997
|
+
/** Zero-based index of the active step. */
|
|
1998
|
+
current: number;
|
|
1999
|
+
orientation?: 'horizontal' | 'vertical';
|
|
2000
|
+
/** Makes completed/upcoming steps clickable. */
|
|
2001
|
+
onStepClick?: (index: number) => void;
|
|
2002
|
+
};
|
|
2003
|
+
/**
|
|
2004
|
+
* Progress through a multi-step flow with proper semantics: an ordered list
|
|
2005
|
+
* where the active step carries aria-current="step" and each marker states
|
|
2006
|
+
* complete/current/upcoming in text, not only color.
|
|
2007
|
+
*/
|
|
2008
|
+
declare const Stepper: React.ForwardRefExoticComponent<Omit<React.OlHTMLAttributes<HTMLOListElement>, "onClick"> & {
|
|
2009
|
+
steps: StepperStep[];
|
|
2010
|
+
/** Zero-based index of the active step. */
|
|
2011
|
+
current: number;
|
|
2012
|
+
orientation?: "horizontal" | "vertical";
|
|
2013
|
+
/** Makes completed/upcoming steps clickable. */
|
|
2014
|
+
onStepClick?: (index: number) => void;
|
|
2015
|
+
} & React.RefAttributes<HTMLOListElement>>;
|
|
2016
|
+
|
|
2017
|
+
type FileUploadProps = Omit<React.InputHTMLAttributes<HTMLInputElement>, 'type' | 'value' | 'onChange'> & {
|
|
2018
|
+
/** Controlled selection. */
|
|
2019
|
+
files?: File[];
|
|
2020
|
+
/** Initial selection when uncontrolled. */
|
|
2021
|
+
defaultFiles?: File[];
|
|
2022
|
+
/** Fired whenever the list changes (add, remove, drop, clear). */
|
|
2023
|
+
onFilesChange?: (files: File[]) => void;
|
|
2024
|
+
/** Drag-and-drop area copy. */
|
|
2025
|
+
label?: string;
|
|
2026
|
+
hint?: string;
|
|
2027
|
+
/** Per-file progress (0-100) keyed by file name, rendered as a bar. */
|
|
2028
|
+
progress?: Record<string, number>;
|
|
2029
|
+
};
|
|
2030
|
+
/**
|
|
2031
|
+
* Drag-and-drop file picker with a removable list. The native input drives
|
|
2032
|
+
* selection (keyboard + mobile camera/file dialogs); the drop zone is a
|
|
2033
|
+
* progressive enhancement. Files are plain `File` objects, so you own the
|
|
2034
|
+
* upload transport and can render progress per file.
|
|
2035
|
+
*/
|
|
2036
|
+
declare const FileUpload: React.ForwardRefExoticComponent<Omit<React.InputHTMLAttributes<HTMLInputElement>, "type" | "onChange" | "value"> & {
|
|
2037
|
+
/** Controlled selection. */
|
|
2038
|
+
files?: File[];
|
|
2039
|
+
/** Initial selection when uncontrolled. */
|
|
2040
|
+
defaultFiles?: File[];
|
|
2041
|
+
/** Fired whenever the list changes (add, remove, drop, clear). */
|
|
2042
|
+
onFilesChange?: (files: File[]) => void;
|
|
2043
|
+
/** Drag-and-drop area copy. */
|
|
2044
|
+
label?: string;
|
|
2045
|
+
hint?: string;
|
|
2046
|
+
/** Per-file progress (0-100) keyed by file name, rendered as a bar. */
|
|
2047
|
+
progress?: Record<string, number>;
|
|
2048
|
+
} & React.RefAttributes<HTMLInputElement>>;
|
|
2049
|
+
|
|
2050
|
+
type TimelineItem = {
|
|
2051
|
+
title: string;
|
|
2052
|
+
/** Period/date label (e.g. "2023 — Present"). */
|
|
2053
|
+
period?: string;
|
|
2054
|
+
description?: string;
|
|
2055
|
+
icon?: React.ReactNode;
|
|
2056
|
+
/** Muted items render dimmed (upcoming/archived). */
|
|
2057
|
+
muted?: boolean;
|
|
2058
|
+
};
|
|
2059
|
+
type TimelineProps = Omit<React.OlHTMLAttributes<HTMLOListElement>, 'children'> & {
|
|
2060
|
+
items: TimelineItem[];
|
|
2061
|
+
};
|
|
2062
|
+
/**
|
|
2063
|
+
* Vertical chronology (experience, activity, audit trail). Renders an
|
|
2064
|
+
* ordered list with a connector rule, so the sequence is conveyed
|
|
2065
|
+
* structurally instead of by decoration alone.
|
|
2066
|
+
*/
|
|
2067
|
+
declare const Timeline: React.ForwardRefExoticComponent<Omit<React.OlHTMLAttributes<HTMLOListElement>, "children"> & {
|
|
2068
|
+
items: TimelineItem[];
|
|
2069
|
+
} & React.RefAttributes<HTMLOListElement>>;
|
|
2070
|
+
|
|
1220
2071
|
type BlockElement = 'div' | 'span' | 'section' | 'article' | 'figure' | 'header' | 'footer' | 'nav' | 'main' | 'aside';
|
|
1221
2072
|
type BlockProps = React.HTMLAttributes<HTMLElement> & {
|
|
1222
2073
|
/** Semantic element to render (default 'div'). */
|
|
@@ -1392,11 +2243,15 @@ declare const MenuContent: React.ForwardRefExoticComponent<MenuContentProps & Re
|
|
|
1392
2243
|
type MenuItemProps = React.ButtonHTMLAttributes<HTMLButtonElement> & {
|
|
1393
2244
|
/** Renders the item in a destructive style. */
|
|
1394
2245
|
destructive?: boolean;
|
|
2246
|
+
/** Render the child element (e.g. an <a>) as the menu item. */
|
|
2247
|
+
asChild?: boolean;
|
|
1395
2248
|
};
|
|
1396
2249
|
/** A single action item in the menu. */
|
|
1397
2250
|
declare const MenuItem: React.ForwardRefExoticComponent<React.ButtonHTMLAttributes<HTMLButtonElement> & {
|
|
1398
2251
|
/** Renders the item in a destructive style. */
|
|
1399
2252
|
destructive?: boolean;
|
|
2253
|
+
/** Render the child element (e.g. an <a>) as the menu item. */
|
|
2254
|
+
asChild?: boolean;
|
|
1400
2255
|
} & React.RefAttributes<HTMLButtonElement>>;
|
|
1401
2256
|
type MenuSeparatorProps = React.HTMLAttributes<HTMLDivElement>;
|
|
1402
2257
|
/** Visual divider between menu items. */
|
|
@@ -1462,6 +2317,8 @@ type BreadcrumbProps = React.HTMLAttributes<HTMLElement> & {
|
|
|
1462
2317
|
* (e.g. via a router, state machine, or analytics wrapper).
|
|
1463
2318
|
*/
|
|
1464
2319
|
onItemClick?: (item: BreadcrumbItem, index: number) => void;
|
|
2320
|
+
/** Custom link element for routers (Next Link, react-router Link). */
|
|
2321
|
+
linkComponent?: React.ElementType;
|
|
1465
2322
|
};
|
|
1466
2323
|
/**
|
|
1467
2324
|
* Navigation breadcrumb trail. The last item is rendered as the current
|
|
@@ -1479,6 +2336,8 @@ declare const Breadcrumb: React.ForwardRefExoticComponent<React.HTMLAttributes<H
|
|
|
1479
2336
|
* (e.g. via a router, state machine, or analytics wrapper).
|
|
1480
2337
|
*/
|
|
1481
2338
|
onItemClick?: (item: BreadcrumbItem, index: number) => void;
|
|
2339
|
+
/** Custom link element for routers (Next Link, react-router Link). */
|
|
2340
|
+
linkComponent?: React.ElementType;
|
|
1482
2341
|
} & React.RefAttributes<HTMLElement>>;
|
|
1483
2342
|
|
|
1484
2343
|
type PaginationIcons = {
|
|
@@ -1492,10 +2351,22 @@ type PaginationIcons = {
|
|
|
1492
2351
|
last?: React.ReactNode;
|
|
1493
2352
|
};
|
|
1494
2353
|
type PaginationProps = React.HTMLAttributes<HTMLElement> & {
|
|
1495
|
-
/** Current page number (1-based). */
|
|
1496
|
-
page
|
|
1497
|
-
/** Total number of pages. */
|
|
1498
|
-
pageCount
|
|
2354
|
+
/** Current page number (1-based). Alias: currentPage. */
|
|
2355
|
+
page?: number;
|
|
2356
|
+
/** Total number of pages. Alias: totalPages (or derived from total/pageSize). */
|
|
2357
|
+
pageCount?: number;
|
|
2358
|
+
/** Alias for page (migration-friendly). */
|
|
2359
|
+
currentPage?: number;
|
|
2360
|
+
/** Alias for pageCount. */
|
|
2361
|
+
totalPages?: number;
|
|
2362
|
+
/** Rows per page — with `total`, enables the item-count summary. */
|
|
2363
|
+
pageSize?: number;
|
|
2364
|
+
/** Total item count — with `pageSize`, enables the summary and derives pageCount. */
|
|
2365
|
+
total?: number;
|
|
2366
|
+
/** Noun used in the summary ("Showing 26–50 of 312 classes"). Default "items". */
|
|
2367
|
+
itemLabel?: string;
|
|
2368
|
+
/** Force the summary on/off; defaults to on when total and pageSize are set. */
|
|
2369
|
+
showSummary?: boolean;
|
|
1499
2370
|
/** Called with the new page number. */
|
|
1500
2371
|
onPageChange?: (page: number) => void;
|
|
1501
2372
|
/** How many page buttons to show around the current page (default 1). */
|
|
@@ -1508,19 +2379,40 @@ type PaginationProps = React.HTMLAttributes<HTMLElement> & {
|
|
|
1508
2379
|
showLast?: boolean;
|
|
1509
2380
|
/** Replace the default ‹ › « » glyphs. */
|
|
1510
2381
|
icons?: PaginationIcons;
|
|
2382
|
+
/** Localized landmark and control labels. */
|
|
2383
|
+
labels?: {
|
|
2384
|
+
pagination?: string;
|
|
2385
|
+
first?: string;
|
|
2386
|
+
previous?: string;
|
|
2387
|
+
next?: string;
|
|
2388
|
+
last?: string;
|
|
2389
|
+
page?: (page: number) => string;
|
|
2390
|
+
};
|
|
1511
2391
|
};
|
|
1512
2392
|
/**
|
|
1513
2393
|
* Numeric pagination with prev/next and optional boundary jumps. Renders
|
|
1514
|
-
* as a nav landmark with aria-current="page" on the active button.
|
|
1515
|
-
*
|
|
1516
|
-
*
|
|
1517
|
-
*
|
|
2394
|
+
* as a nav landmark with aria-current="page" on the active button. Accepts
|
|
2395
|
+
* either page/pageCount or the currentPage/totalPages aliases, and can
|
|
2396
|
+
* derive the page count (plus a "Showing X–Y of Z" summary) from
|
|
2397
|
+
* total/pageSize.
|
|
1518
2398
|
*/
|
|
1519
2399
|
declare const Pagination: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLElement> & {
|
|
1520
|
-
/** Current page number (1-based). */
|
|
1521
|
-
page
|
|
1522
|
-
/** Total number of pages. */
|
|
1523
|
-
pageCount
|
|
2400
|
+
/** Current page number (1-based). Alias: currentPage. */
|
|
2401
|
+
page?: number;
|
|
2402
|
+
/** Total number of pages. Alias: totalPages (or derived from total/pageSize). */
|
|
2403
|
+
pageCount?: number;
|
|
2404
|
+
/** Alias for page (migration-friendly). */
|
|
2405
|
+
currentPage?: number;
|
|
2406
|
+
/** Alias for pageCount. */
|
|
2407
|
+
totalPages?: number;
|
|
2408
|
+
/** Rows per page — with `total`, enables the item-count summary. */
|
|
2409
|
+
pageSize?: number;
|
|
2410
|
+
/** Total item count — with `pageSize`, enables the summary and derives pageCount. */
|
|
2411
|
+
total?: number;
|
|
2412
|
+
/** Noun used in the summary ("Showing 26–50 of 312 classes"). Default "items". */
|
|
2413
|
+
itemLabel?: string;
|
|
2414
|
+
/** Force the summary on/off; defaults to on when total and pageSize are set. */
|
|
2415
|
+
showSummary?: boolean;
|
|
1524
2416
|
/** Called with the new page number. */
|
|
1525
2417
|
onPageChange?: (page: number) => void;
|
|
1526
2418
|
/** How many page buttons to show around the current page (default 1). */
|
|
@@ -1533,6 +2425,15 @@ declare const Pagination: React.ForwardRefExoticComponent<React.HTMLAttributes<H
|
|
|
1533
2425
|
showLast?: boolean;
|
|
1534
2426
|
/** Replace the default ‹ › « » glyphs. */
|
|
1535
2427
|
icons?: PaginationIcons;
|
|
2428
|
+
/** Localized landmark and control labels. */
|
|
2429
|
+
labels?: {
|
|
2430
|
+
pagination?: string;
|
|
2431
|
+
first?: string;
|
|
2432
|
+
previous?: string;
|
|
2433
|
+
next?: string;
|
|
2434
|
+
last?: string;
|
|
2435
|
+
page?: (page: number) => string;
|
|
2436
|
+
};
|
|
1536
2437
|
} & React.RefAttributes<HTMLElement>>;
|
|
1537
2438
|
|
|
1538
|
-
export { type AccessibilityRequirement, Accordion, AccordionContent, type AccordionContentProps, AccordionItem, type AccordionItemProps, type AccordionProps, AccordionTrigger, type AccordionTriggerProps, Alert, AlertDescription, type AlertDescriptionProps, type AlertProps, AlertTitle, type AlertTitleProps, type AntiPattern, Autocomplete, type AutocompleteProps, Avatar, AvatarFallback, AvatarImage, Badge, type BadgeProps, Block, type BlockElement, type BlockProps, Breadcrumb, type BreadcrumbItem, type BreadcrumbProps, Button, ButtonGroup, type ButtonGroupProps, type ButtonProps, Card, CardContent, type CardContentProps, CardDescription, type CardDescriptionProps, CardFooter, type CardFooterProps, CardHeader, type CardHeaderProps, type CardProps, CardTitle, type CardTitleProps, Checkbox, CheckboxGroup, CheckboxGroupItem, type CheckboxGroupItemProps, type CheckboxGroupOrientation, type CheckboxGroupProps, type CheckboxProps, type ComboboxItem, type ComponentManifest, type ComponentTier, type CompositionRule, type ContentGuideline, DataTable, type DataTableColumn, type DataTableProps, Dialog, type DialogProps, Divider, Drawer, type DrawerProps, type DrawerSide, type DrawerSize, Fieldset, type FieldsetProps, Flex, FlexItem, type FlexItemProps, type FlexProps, Form, FormField, type FormFieldLabelPlacement, type FormFieldProps, FormLayout, type FormLayoutProps, type FormProps, type FormVariant, type GapValue, Grid, GridItem, type GridItemProps, type GridProps, Heading, type HeadingLevel, type HeadingProps, Input, InputGroup, InputGroupAddon, type InputGroupAddonProps, type InputGroupProps, type InputProps, Label, type LabelProps, List, ListItem, type ListItemProps, type ListProps, Menu, MenuContent, type MenuContentProps, MenuItem, type MenuItemProps, MenuLabel, type MenuLabelProps, type MenuProps, MenuSeparator, type MenuSeparatorProps, MenuTrigger, type MenuTriggerProps, Pagination, type PaginationIcons, type PaginationProps, Popover, PopoverContent, type PopoverContentProps, type PopoverProps, PopoverTrigger, type PopoverTriggerProps, Progress, type ProgressProps, type PropSchema, Radio, RadioCard, type RadioCardProps, RadioGroup, RadioGroupContext, RadioGroupItem, type RadioGroupItemProps, type RadioGroupProps, type RadioProps, Search, type SearchOption, type SearchProps, Select, type SelectOption, type SelectProps, Separator, type SeparatorProps, Skeleton, type SkeletonProps, type SortIconState, Spinner, type SpinnerProps, Switch, type SwitchProps, Table, TableBody, type TableBodyProps, TableCaption, type TableCaptionProps, TableCell, type TableCellProps, TableFooter, type TableFooterProps, TableHead, type TableHeadProps, TableHeader, type TableHeaderProps, type TableProps, TableRow, type TableRowProps, Tabs, TabsContent, type TabsContentProps, TabsList, type TabsListProps, type TabsProps, TabsTrigger, type TabsTriggerProps, Text, type TextProps, Textarea, type TextareaProps, type ToastAction, type ToastContextValue, type ToastOptions, ToastProvider, type ToastRecord, Tooltip, type TooltipProps, type UsageExample, alertVariants, badgeVariants, buttonVariants, cn, isComponentManifest, resolveGap, separatorVariants, spinnerVariants, useCombobox, usePresence, useToast };
|
|
2439
|
+
export { type AccessibilityRequirement, Accordion, AccordionContent, type AccordionContentProps, AccordionItem, type AccordionItemProps, type AccordionProps, AccordionTrigger, type AccordionTriggerProps, Alert, AlertDescription, type AlertDescriptionProps, type AlertProps, AlertTitle, type AlertTitleProps, type AntiPattern, AppShell, type AppShellProps, AuthLayout, type AuthLayoutProps, Autocomplete, type AutocompleteOption, type AutocompleteProps, Avatar, AvatarFallback, AvatarImage, Badge, type BadgeProps, Block, type BlockElement, type BlockProps, Breadcrumb, type BreadcrumbItem, type BreadcrumbProps, Button, ButtonGroup, type ButtonGroupProps, type ButtonProps, Card, CardContent, type CardContentProps, CardDescription, type CardDescriptionProps, CardFooter, type CardFooterProps, CardHeader, type CardHeaderProps, type CardProps, CardTitle, type CardTitleProps, Checkbox, CheckboxGroup, CheckboxGroupItem, type CheckboxGroupItemProps, type CheckboxGroupOrientation, type CheckboxGroupProps, type CheckboxProps, type ComboboxItem, type ComponentManifest, type ComponentTier, type CompositionRule, ConfirmDialog, type ConfirmDialogProps, type ContentGuideline, DataTable, type DataTableColumn, type DataTableProps, DatePicker, type DatePickerProps, Dialog, DialogBody, type DialogBodyProps, DialogDescription, type DialogDescriptionProps, DialogFooter, type DialogFooterProps, DialogHeader, type DialogHeaderProps, type DialogProps, type DialogSize, DialogTitle, type DialogTitleProps, Divider, Drawer, type DrawerProps, type DrawerSide, type DrawerSize, EmptyState, type EmptyStateProps, Fieldset, type FieldsetProps, FileUpload, type FileUploadProps, FilterBar, type FilterBarProps, Flex, FlexItem, type FlexItemProps, type FlexProps, Form, FormField, type FormFieldLabelPlacement, type FormFieldProps, FormLayout, type FormLayoutProps, type FormProps, type FormVariant, type GapValue, Grid, GridItem, type GridItemProps, type GridProps, Heading, type HeadingLevel, type HeadingProps, Input, InputGroup, InputGroupAddon, type InputGroupAddonProps, type InputGroupProps, type InputProps, Label, type LabelProps, Link, type LinkProps, type LinkVariant, List, ListItem, type ListItemProps, type ListProps, Menu, MenuContent, type MenuContentProps, MenuItem, type MenuItemProps, MenuLabel, type MenuLabelProps, type MenuProps, MenuSeparator, type MenuSeparatorProps, MenuTrigger, type MenuTriggerProps, MetricCard, type MetricCardProps, type MetricTrend, PageHeader, type PageHeaderProps, Pagination, type PaginationIcons, type PaginationProps, PasswordInput, type PasswordInputProps, Popover, PopoverContent, type PopoverContentProps, type PopoverProps, PopoverTrigger, type PopoverTriggerProps, Progress, type ProgressProps, type PropSchema, Prose, type ProseProps, Radio, RadioCard, type RadioCardProps, RadioGroup, RadioGroupContext, RadioGroupItem, type RadioGroupItemProps, type RadioGroupProps, type RadioProps, Search, type SearchOption, type SearchProps, SectionHeading, type SectionHeadingProps, Select, SelectMenu, type SelectMenuItem, type SelectMenuProps, type SelectOption, type SelectOptionGroup, type SelectProps, Separator, type SeparatorProps, Sidebar, type SidebarItem, type SidebarProps, type SidebarSection, SiteFooter, type SiteFooterColumn, type SiteFooterLink, type SiteFooterProps, SiteHeader, type SiteHeaderProps, type SiteNavItem, Skeleton, type SkeletonProps, type SortIconState, Spinner, type SpinnerProps, Stepper, type StepperProps, type StepperStep, Switch, type SwitchProps, Table, TableBody, type TableBodyProps, TableCaption, type TableCaptionProps, TableCard, type TableCardProps, TableCell, type TableCellProps, TableFooter, type TableFooterProps, TableHead, type TableHeadProps, TableHeader, type TableHeaderProps, TableOfContents, type TableOfContentsProps, type TableProps, TableRow, type TableRowProps, Tabs, TabsContent, type TabsContentProps, TabsList, type TabsListProps, type TabsProps, TabsTrigger, type TabsTriggerProps, Text, type TextProps, Textarea, type TextareaProps, TimePicker, type TimePickerProps, Timeline, type TimelineItem, type TimelineProps, type ToastAction, type ToastContextValue, type ToastOptions, ToastProvider, type ToastRecord, type ToastVariant, Toaster, type ToasterPosition, type ToasterProps, type TocHeading, Tooltip, type TooltipProps, type UsageExample, alertVariants, badgeVariants, buttonVariants, cn, isComponentManifest, resolveGap, separatorVariants, spinnerVariants, toast, useCombobox, usePresence, useScrollSpy, useToast };
|