@yuhuanowo/yunui 0.1.7 → 0.2.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/README.md +22 -5
- package/dist/ai.d.ts +61 -2
- package/dist/ai.js +1 -1
- package/dist/ai.js.map +1 -1
- package/dist/{chunk-ORS36OUN.js → chunk-N7JHOWGR.js} +2 -2
- package/dist/chunk-N7JHOWGR.js.map +1 -0
- package/dist/{chunk-FYXF43G3.js → chunk-YRITK7CC.js} +556 -38
- package/dist/chunk-YRITK7CC.js.map +1 -0
- package/dist/index.d.ts +365 -4
- package/dist/index.js +2 -2
- package/dist/patterns.d.ts +68 -0
- package/dist/patterns.js +5 -5
- package/dist/patterns.js.map +1 -1
- package/package.json +5 -3
- package/dist/chunk-FYXF43G3.js.map +0 -1
- package/dist/chunk-ORS36OUN.js.map +0 -1
package/dist/index.d.ts
CHANGED
|
@@ -13,6 +13,8 @@ import { LucideIcon } from 'lucide-react';
|
|
|
13
13
|
import * as Primitive from '@radix-ui/react-collapsible';
|
|
14
14
|
import * as PopoverPrimitive from '@radix-ui/react-popover';
|
|
15
15
|
import { ClassValue } from 'clsx';
|
|
16
|
+
import * as AccordionPrimitive from '@radix-ui/react-accordion';
|
|
17
|
+
import * as RadioGroupPrimitive from '@radix-ui/react-radio-group';
|
|
16
18
|
|
|
17
19
|
/**
|
|
18
20
|
* Modal Size Classes
|
|
@@ -134,20 +136,29 @@ declare function DeleteConfirmModal({ itemName, ...props }: DeleteConfirmModalPr
|
|
|
134
136
|
declare function RegenerateConfirmModal({ itemName, ...props }: RegenerateConfirmModalProps): React$1.JSX.Element;
|
|
135
137
|
|
|
136
138
|
interface SheetProps {
|
|
139
|
+
/** Whether the sheet is open (controlled). */
|
|
137
140
|
open: boolean;
|
|
141
|
+
/** Called when the sheet should close (backdrop click, escape, close button). */
|
|
138
142
|
onClose: () => void;
|
|
139
143
|
children: React.ReactNode;
|
|
144
|
+
/** Optional header title. */
|
|
140
145
|
title?: string;
|
|
141
146
|
}
|
|
147
|
+
/** Mobile-only slide-in panel from the right, with a backdrop (hidden on `lg` and up). */
|
|
142
148
|
declare function Sheet({ open, onClose, children, title }: SheetProps): React$1.ReactPortal | null;
|
|
143
149
|
|
|
144
150
|
interface CheckboxProps {
|
|
151
|
+
/** Whether the box is checked (controlled). */
|
|
145
152
|
checked: boolean;
|
|
153
|
+
/** Called with the next checked state when toggled. */
|
|
146
154
|
onCheckedChange: (checked: boolean) => void;
|
|
155
|
+
/** Disable interaction and dim the control. */
|
|
147
156
|
disabled?: boolean;
|
|
148
157
|
className?: string;
|
|
158
|
+
/** Element id (e.g. to pair with a `<label htmlFor>`). */
|
|
149
159
|
id?: string;
|
|
150
160
|
}
|
|
161
|
+
/** Controlled checkbox rendered as an accessible toggle button with a check icon. */
|
|
151
162
|
declare const Checkbox: React$1.ForwardRefExoticComponent<CheckboxProps & React$1.RefAttributes<HTMLButtonElement>>;
|
|
152
163
|
|
|
153
164
|
/**
|
|
@@ -157,8 +168,11 @@ declare const Checkbox: React$1.ForwardRefExoticComponent<CheckboxProps & React$
|
|
|
157
168
|
declare function cn(...inputs: ClassValue[]): string;
|
|
158
169
|
|
|
159
170
|
interface ComboboxOption {
|
|
171
|
+
/** The value reported to `onChange` when selected. */
|
|
160
172
|
value: string;
|
|
173
|
+
/** Display text for the option. */
|
|
161
174
|
label: string;
|
|
175
|
+
/** Optional secondary text for the option. */
|
|
162
176
|
description?: string;
|
|
163
177
|
/**
|
|
164
178
|
* Optional resolved icon URL for the option. The host app resolves this
|
|
@@ -168,89 +182,369 @@ interface ComboboxOption {
|
|
|
168
182
|
iconUrl?: string | null;
|
|
169
183
|
}
|
|
170
184
|
interface ComboboxProps {
|
|
185
|
+
/** The selectable options. */
|
|
171
186
|
options: ComboboxOption[];
|
|
187
|
+
/** Currently selected value (controlled). */
|
|
172
188
|
value: string;
|
|
189
|
+
/** Called with the chosen (or newly created) value. */
|
|
173
190
|
onChange: (value: string) => void;
|
|
191
|
+
/** Placeholder for the input (falls back to i18n default). */
|
|
174
192
|
placeholder?: string;
|
|
175
193
|
className?: string;
|
|
194
|
+
/** Disable interaction and dim the control. */
|
|
176
195
|
disabled?: boolean;
|
|
196
|
+
/** Allow entering a value not in `options` (creatable). @defaultValue true */
|
|
177
197
|
allowCustom?: boolean;
|
|
198
|
+
/** Label template for the "create new" row; `{value}` is replaced with the typed text. */
|
|
178
199
|
creatableText?: string;
|
|
179
200
|
}
|
|
201
|
+
/** Searchable, optionally creatable combobox — type to filter, Enter to pick or create. */
|
|
180
202
|
declare function Combobox({ options, value, onChange, placeholder, className, disabled, allowCustom, creatableText, }: ComboboxProps): React$1.JSX.Element;
|
|
181
203
|
|
|
204
|
+
/**
|
|
205
|
+
* Radix Accordion root — a vertically stacked set of collapsible sections.
|
|
206
|
+
*
|
|
207
|
+
* Set `type="single"` for one-at-a-time panels (optionally `collapsible` so the
|
|
208
|
+
* open one can be closed) or `type="multiple"` to allow several open at once.
|
|
209
|
+
* Full keyboard a11y (arrow keys, Home/End, Enter/Space) comes from Radix.
|
|
210
|
+
*/
|
|
211
|
+
declare const Accordion: React$1.ForwardRefExoticComponent<(AccordionPrimitive.AccordionSingleProps | AccordionPrimitive.AccordionMultipleProps) & React$1.RefAttributes<HTMLDivElement>>;
|
|
212
|
+
/** A single collapsible section. Give each a unique `value`. */
|
|
213
|
+
declare const AccordionItem: React$1.ForwardRefExoticComponent<Omit<AccordionPrimitive.AccordionItemProps & React$1.RefAttributes<HTMLDivElement>, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
|
|
214
|
+
/** Clickable header that toggles its section; shows a chevron that rotates when open. */
|
|
215
|
+
declare const AccordionTrigger: React$1.ForwardRefExoticComponent<Omit<AccordionPrimitive.AccordionTriggerProps & React$1.RefAttributes<HTMLButtonElement>, "ref"> & React$1.RefAttributes<HTMLButtonElement>>;
|
|
216
|
+
/**
|
|
217
|
+
* Collapsible panel body. Animates its height open/closed by transitioning the
|
|
218
|
+
* `grid-template-rows` `0fr` → `1fr` track, driven by Radix's
|
|
219
|
+
* `data-state` attribute. Self-contained (no external keyframes required).
|
|
220
|
+
*/
|
|
221
|
+
declare const AccordionContent: React$1.ForwardRefExoticComponent<Omit<AccordionPrimitive.AccordionContentProps & React$1.RefAttributes<HTMLDivElement>, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
|
|
222
|
+
|
|
223
|
+
/**
|
|
224
|
+
* Radix RadioGroup root — a single-choice set of {@link RadioGroupItem}s.
|
|
225
|
+
*
|
|
226
|
+
* Controlled via `value`/`onValueChange` (or uncontrolled via `defaultValue`).
|
|
227
|
+
* Arrow keys move and select within the group; the whole group is one tab stop.
|
|
228
|
+
*/
|
|
229
|
+
declare const RadioGroup: React$1.ForwardRefExoticComponent<Omit<RadioGroupPrimitive.RadioGroupProps & React$1.RefAttributes<HTMLDivElement>, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
|
|
230
|
+
/**
|
|
231
|
+
* A single radio option. Pair with a `<label htmlFor>` via `id`.
|
|
232
|
+
* Renders a ring outline that fills with the primary accent and a center dot
|
|
233
|
+
* when selected — matching YunUI's Checkbox/Switch visual language.
|
|
234
|
+
*/
|
|
235
|
+
declare const RadioGroupItem: React$1.ForwardRefExoticComponent<Omit<RadioGroupPrimitive.RadioGroupItemProps & React$1.RefAttributes<HTMLButtonElement>, "ref"> & React$1.RefAttributes<HTMLButtonElement>>;
|
|
236
|
+
|
|
237
|
+
/**
|
|
238
|
+
* Supported spacing-scale values (Tailwind's default scale: 1 unit = 0.25rem).
|
|
239
|
+
* A fixed set so the literal classes below are always present for the compiler.
|
|
240
|
+
*/
|
|
241
|
+
type SpacingScale = 0 | 1 | 2 | 3 | 4 | 5 | 6 | 8 | 10 | 12;
|
|
242
|
+
declare const directionMap: {
|
|
243
|
+
readonly row: "flex-row";
|
|
244
|
+
readonly col: "flex-col";
|
|
245
|
+
readonly "row-reverse": "flex-row-reverse";
|
|
246
|
+
readonly "col-reverse": "flex-col-reverse";
|
|
247
|
+
};
|
|
248
|
+
type FlexDirection = keyof typeof directionMap;
|
|
249
|
+
declare const alignMap: {
|
|
250
|
+
readonly start: "items-start";
|
|
251
|
+
readonly center: "items-center";
|
|
252
|
+
readonly end: "items-end";
|
|
253
|
+
readonly stretch: "items-stretch";
|
|
254
|
+
readonly baseline: "items-baseline";
|
|
255
|
+
};
|
|
256
|
+
type Align = keyof typeof alignMap;
|
|
257
|
+
declare const justifyMap: {
|
|
258
|
+
readonly start: "justify-start";
|
|
259
|
+
readonly center: "justify-center";
|
|
260
|
+
readonly end: "justify-end";
|
|
261
|
+
readonly between: "justify-between";
|
|
262
|
+
readonly around: "justify-around";
|
|
263
|
+
readonly evenly: "justify-evenly";
|
|
264
|
+
};
|
|
265
|
+
type Justify = keyof typeof justifyMap;
|
|
266
|
+
/** Supported fixed column/row counts (1–12), mapped to literal grid classes. */
|
|
267
|
+
type GridCount = 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12;
|
|
268
|
+
interface FlexProps extends React$1.HTMLAttributes<HTMLElement> {
|
|
269
|
+
/** Main axis direction. @defaultValue "row" */
|
|
270
|
+
direction?: FlexDirection;
|
|
271
|
+
/** Cross-axis alignment (`align-items`). */
|
|
272
|
+
align?: Align;
|
|
273
|
+
/** Main-axis distribution (`justify-content`). */
|
|
274
|
+
justify?: Justify;
|
|
275
|
+
/** Gap between children, on the spacing scale. */
|
|
276
|
+
gap?: SpacingScale;
|
|
277
|
+
/** Allow children to wrap onto multiple lines. */
|
|
278
|
+
wrap?: boolean;
|
|
279
|
+
/** Padding on all sides, on the spacing scale. */
|
|
280
|
+
padding?: SpacingScale;
|
|
281
|
+
/** Horizontal padding (`px`), on the spacing scale. */
|
|
282
|
+
px?: SpacingScale;
|
|
283
|
+
/** Vertical padding (`py`), on the spacing scale. */
|
|
284
|
+
py?: SpacingScale;
|
|
285
|
+
/** Element/tag to render as. @defaultValue "div" */
|
|
286
|
+
as?: React$1.ElementType;
|
|
287
|
+
}
|
|
288
|
+
/**
|
|
289
|
+
* Flexbox layout primitive. Maps `direction`/`align`/`justify`/`gap`/`wrap`/
|
|
290
|
+
* padding props to literal Tailwind classes via static maps. Purely
|
|
291
|
+
* presentational — extra props are spread onto the rendered element.
|
|
292
|
+
*/
|
|
293
|
+
declare const Flex: React$1.ForwardRefExoticComponent<FlexProps & React$1.RefAttributes<HTMLElement>>;
|
|
294
|
+
interface GridProps extends React$1.HTMLAttributes<HTMLElement> {
|
|
295
|
+
/** Number of equal columns (1–12). */
|
|
296
|
+
columns?: GridCount;
|
|
297
|
+
/** Number of explicit rows (1–12). */
|
|
298
|
+
rows?: GridCount;
|
|
299
|
+
/** Gap between cells, on the spacing scale. */
|
|
300
|
+
gap?: SpacingScale;
|
|
301
|
+
/** Cross-axis alignment of items within their cells (`align-items`). */
|
|
302
|
+
align?: Align;
|
|
303
|
+
/** Padding on all sides, on the spacing scale. */
|
|
304
|
+
padding?: SpacingScale;
|
|
305
|
+
/** Element/tag to render as. @defaultValue "div" */
|
|
306
|
+
as?: React$1.ElementType;
|
|
307
|
+
}
|
|
308
|
+
/**
|
|
309
|
+
* CSS-grid layout primitive. Maps `columns`/`rows`/`gap`/`align`/`padding`
|
|
310
|
+
* to literal Tailwind classes via static maps. Purely presentational.
|
|
311
|
+
*/
|
|
312
|
+
declare const Grid: React$1.ForwardRefExoticComponent<GridProps & React$1.RefAttributes<HTMLElement>>;
|
|
313
|
+
/** Thin wrapper around {@link Flex} fixed to `direction="col"`. */
|
|
314
|
+
declare const Column: React$1.ForwardRefExoticComponent<Omit<FlexProps, "direction"> & React$1.RefAttributes<HTMLElement>>;
|
|
315
|
+
/** Thin wrapper around {@link Flex} fixed to `direction="row"`. */
|
|
316
|
+
declare const Row: React$1.ForwardRefExoticComponent<Omit<FlexProps, "direction"> & React$1.RefAttributes<HTMLElement>>;
|
|
317
|
+
/**
|
|
318
|
+
* Vertical {@link Flex} (`direction="col"`) with a sensible default `gap`.
|
|
319
|
+
* Alias of {@link Column} optimised for stacking content; override `gap` freely.
|
|
320
|
+
*/
|
|
321
|
+
declare const Stack: React$1.ForwardRefExoticComponent<Omit<FlexProps, "direction"> & React$1.RefAttributes<HTMLElement>>;
|
|
322
|
+
|
|
323
|
+
/**
|
|
324
|
+
* Table root — wraps a `<table>` in an overflow container so wide tables scroll
|
|
325
|
+
* horizontally instead of breaking the layout. `className` is applied to the
|
|
326
|
+
* inner `<table>`; pass `containerClassName` to style the scroll wrapper.
|
|
327
|
+
*/
|
|
328
|
+
declare const Table: React$1.ForwardRefExoticComponent<React$1.TableHTMLAttributes<HTMLTableElement> & {
|
|
329
|
+
/** Class applied to the outer scroll/overflow wrapper. */
|
|
330
|
+
containerClassName?: string;
|
|
331
|
+
} & React$1.RefAttributes<HTMLTableElement>>;
|
|
332
|
+
/** Table header group (`<thead>`); contains the column-header row(s). */
|
|
333
|
+
declare const TableHeader: React$1.ForwardRefExoticComponent<React$1.HTMLAttributes<HTMLTableSectionElement> & React$1.RefAttributes<HTMLTableSectionElement>>;
|
|
334
|
+
/** Table body group (`<tbody>`); rows are divided by subtle borders. */
|
|
335
|
+
declare const TableBody: React$1.ForwardRefExoticComponent<React$1.HTMLAttributes<HTMLTableSectionElement> & React$1.RefAttributes<HTMLTableSectionElement>>;
|
|
336
|
+
/** Table footer group (`<tfoot>`); a muted summary row band. */
|
|
337
|
+
declare const TableFooter: React$1.ForwardRefExoticComponent<React$1.HTMLAttributes<HTMLTableSectionElement> & React$1.RefAttributes<HTMLTableSectionElement>>;
|
|
338
|
+
/** Table row (`<tr>`) with a divider and hover highlight. */
|
|
339
|
+
declare const TableRow: React$1.ForwardRefExoticComponent<React$1.HTMLAttributes<HTMLTableRowElement> & React$1.RefAttributes<HTMLTableRowElement>>;
|
|
340
|
+
/** Column header cell (`<th>`): left-aligned, uppercase, muted, small. */
|
|
341
|
+
declare const TableHead: React$1.ForwardRefExoticComponent<React$1.ThHTMLAttributes<HTMLTableCellElement> & React$1.RefAttributes<HTMLTableCellElement>>;
|
|
342
|
+
/** Standard data cell (`<td>`). */
|
|
343
|
+
declare const TableCell: React$1.ForwardRefExoticComponent<React$1.TdHTMLAttributes<HTMLTableCellElement> & React$1.RefAttributes<HTMLTableCellElement>>;
|
|
344
|
+
/** Caption (`<caption>`) rendered below the table; muted helper text. */
|
|
345
|
+
declare const TableCaption: React$1.ForwardRefExoticComponent<React$1.HTMLAttributes<HTMLTableCaptionElement> & React$1.RefAttributes<HTMLTableCaptionElement>>;
|
|
346
|
+
|
|
347
|
+
/** Breadcrumb root: a `<nav>` landmark labelling the trail for screen readers. */
|
|
348
|
+
declare const Breadcrumb: React$1.ForwardRefExoticComponent<Omit<React$1.DetailedHTMLProps<React$1.HTMLAttributes<HTMLElement>, HTMLElement>, "ref"> & {
|
|
349
|
+
/** Accessible name for the navigation landmark. @defaultValue "Breadcrumb" */
|
|
350
|
+
"aria-label"?: string;
|
|
351
|
+
} & React$1.RefAttributes<HTMLElement>>;
|
|
352
|
+
/** Ordered list (`<ol>`) holding the breadcrumb items. */
|
|
353
|
+
declare const BreadcrumbList: React$1.ForwardRefExoticComponent<Omit<React$1.DetailedHTMLProps<React$1.OlHTMLAttributes<HTMLOListElement>, HTMLOListElement>, "ref"> & React$1.RefAttributes<HTMLOListElement>>;
|
|
354
|
+
/** A single breadcrumb item (`<li>`); wrap a link, page, or separator. */
|
|
355
|
+
declare const BreadcrumbItem: React$1.ForwardRefExoticComponent<Omit<React$1.DetailedHTMLProps<React$1.LiHTMLAttributes<HTMLLIElement>, HTMLLIElement>, "ref"> & React$1.RefAttributes<HTMLLIElement>>;
|
|
356
|
+
/**
|
|
357
|
+
* A navigable breadcrumb link. Routes through the host app's `Link` adapter
|
|
358
|
+
* (`useYunUI().Link`) so it integrates with the consumer's router; falls back
|
|
359
|
+
* to a plain `<a>` when no provider is present.
|
|
360
|
+
*/
|
|
361
|
+
declare function BreadcrumbLink({ className, href, ...props }: {
|
|
362
|
+
/** Destination URL. */
|
|
363
|
+
href: string;
|
|
364
|
+
children?: React$1.ReactNode;
|
|
365
|
+
className?: string;
|
|
366
|
+
} & Omit<React$1.AnchorHTMLAttributes<HTMLAnchorElement>, "href">): React$1.JSX.Element;
|
|
367
|
+
declare namespace BreadcrumbLink {
|
|
368
|
+
var displayName: string;
|
|
369
|
+
}
|
|
370
|
+
/**
|
|
371
|
+
* The current page in the trail. Non-interactive and marked
|
|
372
|
+
* `aria-current="page"` for assistive tech.
|
|
373
|
+
*/
|
|
374
|
+
declare const BreadcrumbPage: React$1.ForwardRefExoticComponent<Omit<React$1.DetailedHTMLProps<React$1.HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, "ref"> & React$1.RefAttributes<HTMLSpanElement>>;
|
|
375
|
+
/**
|
|
376
|
+
* Visual separator between items (a chevron by default). Hidden from the
|
|
377
|
+
* accessibility tree since it carries no information for screen readers.
|
|
378
|
+
*/
|
|
379
|
+
declare const BreadcrumbSeparator: {
|
|
380
|
+
({ children, className, ...props }: React$1.ComponentPropsWithoutRef<"li">): React$1.JSX.Element;
|
|
381
|
+
displayName: string;
|
|
382
|
+
};
|
|
383
|
+
/**
|
|
384
|
+
* Ellipsis placeholder for collapsed middle items in a long trail.
|
|
385
|
+
*/
|
|
386
|
+
declare const BreadcrumbEllipsis: {
|
|
387
|
+
({ className, ...props }: React$1.ComponentPropsWithoutRef<"span">): React$1.JSX.Element;
|
|
388
|
+
displayName: string;
|
|
389
|
+
};
|
|
390
|
+
|
|
391
|
+
interface PaginationProps extends Omit<React$1.HTMLAttributes<HTMLElement>, "onChange"> {
|
|
392
|
+
/** The active page (1-based). */
|
|
393
|
+
page: number;
|
|
394
|
+
/** Total number of pages. */
|
|
395
|
+
totalPages: number;
|
|
396
|
+
/** Called with the requested page when a control is activated. */
|
|
397
|
+
onPageChange: (page: number) => void;
|
|
398
|
+
/**
|
|
399
|
+
* How many page buttons to show on each side of the current page before
|
|
400
|
+
* collapsing into an ellipsis.
|
|
401
|
+
* @defaultValue 1
|
|
402
|
+
*/
|
|
403
|
+
siblingCount?: number;
|
|
404
|
+
/** Accessible label for the previous-page button. @defaultValue "Go to previous page" */
|
|
405
|
+
previousLabel?: string;
|
|
406
|
+
/** Accessible label for the next-page button. @defaultValue "Go to next page" */
|
|
407
|
+
nextLabel?: string;
|
|
408
|
+
/** Accessible name for the wrapping nav landmark. @defaultValue "Pagination" */
|
|
409
|
+
ariaLabel?: string;
|
|
410
|
+
}
|
|
411
|
+
/**
|
|
412
|
+
* Controlled pagination control. Renders previous/next arrows plus numbered
|
|
413
|
+
* page buttons with ellipsis truncation. The current page is highlighted with
|
|
414
|
+
* the primary accent and exposes `aria-current="page"`; prev/next are disabled
|
|
415
|
+
* at the bounds.
|
|
416
|
+
*/
|
|
417
|
+
declare const Pagination: React$1.ForwardRefExoticComponent<PaginationProps & React$1.RefAttributes<HTMLElement>>;
|
|
418
|
+
|
|
182
419
|
interface ButtonProps extends React$1.ButtonHTMLAttributes<HTMLButtonElement> {
|
|
183
|
-
|
|
420
|
+
/**
|
|
421
|
+
* Visual style. Options: `primary`, `secondary`, `ghost`, `accent`, `outline`, `amber`, `red`/`destructive`.
|
|
422
|
+
* @defaultValue "default"
|
|
423
|
+
*/
|
|
424
|
+
variant?: /** @deprecated alias of `primary` */ "default" | "primary" | "secondary" | "ghost" | "accent" | "outline" | "amber" | /** @deprecated alias of `destructive` */ "red" | "destructive";
|
|
425
|
+
/** Size: `sm`, `md` (default), `lg`, or `icon` (square 40×40). */
|
|
184
426
|
size?: "sm" | "md" | "lg" | "icon";
|
|
427
|
+
/** Show a spinner before the children and disable the button while busy. */
|
|
185
428
|
loading?: boolean;
|
|
186
429
|
/** Render the single child element with the button styling instead of a <button> (e.g. wrap a <Link>). */
|
|
187
430
|
asChild?: boolean;
|
|
188
431
|
}
|
|
432
|
+
/** Primary action button with style variants, sizes, a loading spinner, and `asChild` slotting. */
|
|
189
433
|
declare const Button: React$1.ForwardRefExoticComponent<ButtonProps & React$1.RefAttributes<HTMLButtonElement>>;
|
|
190
434
|
interface InputProps extends React$1.InputHTMLAttributes<HTMLInputElement> {
|
|
435
|
+
/** Leading icon rendered inside the field on the left. */
|
|
191
436
|
icon?: React$1.ReactNode;
|
|
437
|
+
/** Error message shown below the field; also switches the border to a red error style. */
|
|
192
438
|
error?: string;
|
|
193
439
|
}
|
|
440
|
+
/** Single-line text input with an optional leading icon and inline error message. */
|
|
194
441
|
declare const Input: React$1.ForwardRefExoticComponent<InputProps & React$1.RefAttributes<HTMLInputElement>>;
|
|
195
442
|
interface TextareaProps extends React$1.TextareaHTMLAttributes<HTMLTextAreaElement> {
|
|
443
|
+
/** Error message shown below the field; also switches the border to a red error style. */
|
|
196
444
|
error?: string;
|
|
197
445
|
}
|
|
446
|
+
/** Multi-line text input with an inline error message. */
|
|
198
447
|
declare const Textarea: React$1.ForwardRefExoticComponent<TextareaProps & React$1.RefAttributes<HTMLTextAreaElement>>;
|
|
199
448
|
interface CardProps extends React$1.HTMLAttributes<HTMLDivElement> {
|
|
449
|
+
/** Add a hover lift (border + shadow transition). */
|
|
200
450
|
hover?: boolean;
|
|
201
451
|
}
|
|
452
|
+
/** Surface container rendering the canonical `.card` style. */
|
|
202
453
|
declare const Card: React$1.ForwardRefExoticComponent<CardProps & React$1.RefAttributes<HTMLDivElement>>;
|
|
203
454
|
interface BadgeProps extends React$1.HTMLAttributes<HTMLSpanElement> {
|
|
455
|
+
/** Semantic color: `default` (neutral), `success`, `warning`, `error`, or `info`. */
|
|
204
456
|
variant?: "default" | "success" | "warning" | "error" | "info";
|
|
205
457
|
}
|
|
458
|
+
/** Small inline pill for status/labels, with semantic color variants. */
|
|
206
459
|
declare function Badge({ className, variant, ...props }: BadgeProps): React$1.JSX.Element;
|
|
460
|
+
/** Radix Dialog root — controls open state for a modal dialog. Compose with Dialog* parts. */
|
|
207
461
|
declare const Dialog: React$1.FC<DialogPrimitive.DialogProps>;
|
|
462
|
+
/** Element that opens the dialog when activated. */
|
|
208
463
|
declare const DialogTrigger: React$1.ForwardRefExoticComponent<DialogPrimitive.DialogTriggerProps & React$1.RefAttributes<HTMLButtonElement>>;
|
|
464
|
+
/** Portals dialog content into the document body. */
|
|
209
465
|
declare const DialogPortal: React$1.FC<DialogPrimitive.DialogPortalProps>;
|
|
466
|
+
/** Element that closes the dialog when activated. */
|
|
210
467
|
declare const DialogClose: React$1.ForwardRefExoticComponent<DialogPrimitive.DialogCloseProps & React$1.RefAttributes<HTMLButtonElement>>;
|
|
468
|
+
/** Dimmed, blurred backdrop behind the dialog content. */
|
|
211
469
|
declare const DialogOverlay: React$1.ForwardRefExoticComponent<Omit<DialogPrimitive.DialogOverlayProps & React$1.RefAttributes<HTMLDivElement>, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
|
|
470
|
+
/** Centered, animated dialog panel (includes the overlay and a built-in close button). */
|
|
212
471
|
declare const DialogContent: React$1.ForwardRefExoticComponent<Omit<DialogPrimitive.DialogContentProps & React$1.RefAttributes<HTMLDivElement>, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
|
|
472
|
+
/** Header layout block for the dialog title/description. */
|
|
213
473
|
declare function DialogHeader({ className, ...props }: React$1.HTMLAttributes<HTMLDivElement>): React$1.JSX.Element;
|
|
474
|
+
/** Accessible dialog title (labels the dialog for screen readers). */
|
|
214
475
|
declare const DialogTitle: React$1.ForwardRefExoticComponent<Omit<DialogPrimitive.DialogTitleProps & React$1.RefAttributes<HTMLHeadingElement>, "ref"> & React$1.RefAttributes<HTMLHeadingElement>>;
|
|
476
|
+
/** Accessible dialog description (supplementary text under the title). */
|
|
215
477
|
declare const DialogDescription: React$1.ForwardRefExoticComponent<Omit<DialogPrimitive.DialogDescriptionProps & React$1.RefAttributes<HTMLParagraphElement>, "ref"> & React$1.RefAttributes<HTMLParagraphElement>>;
|
|
478
|
+
/** Footer layout block (right-aligned action buttons) for the dialog. */
|
|
216
479
|
declare function DialogFooter({ className, ...props }: React$1.HTMLAttributes<HTMLDivElement>): React$1.JSX.Element;
|
|
480
|
+
/** Radix Select root — a styled native-feeling single-select. Compose with Select* parts. */
|
|
217
481
|
declare const Select: React$1.FC<SelectPrimitive.SelectProps>;
|
|
482
|
+
/** Renders the selected value (or placeholder) inside the trigger. */
|
|
218
483
|
declare const SelectValue: React$1.ForwardRefExoticComponent<SelectPrimitive.SelectValueProps & React$1.RefAttributes<HTMLSpanElement>>;
|
|
484
|
+
/** Groups related SelectItems together. */
|
|
219
485
|
declare const SelectGroup: React$1.ForwardRefExoticComponent<SelectPrimitive.SelectGroupProps & React$1.RefAttributes<HTMLDivElement>>;
|
|
486
|
+
/** Button that opens the select dropdown and shows the current value. */
|
|
220
487
|
declare const SelectTrigger: React$1.ForwardRefExoticComponent<Omit<SelectPrimitive.SelectTriggerProps & React$1.RefAttributes<HTMLButtonElement>, "ref"> & React$1.RefAttributes<HTMLButtonElement>>;
|
|
488
|
+
/** Portalled, animated dropdown panel holding the SelectItems. */
|
|
221
489
|
declare const SelectContent: React$1.ForwardRefExoticComponent<Omit<SelectPrimitive.SelectContentProps & React$1.RefAttributes<HTMLDivElement>, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
|
|
490
|
+
/** A selectable option in the dropdown (shows a check when selected). */
|
|
222
491
|
declare const SelectItem: React$1.ForwardRefExoticComponent<Omit<SelectPrimitive.SelectItemProps & React$1.RefAttributes<HTMLDivElement>, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
|
|
492
|
+
/** Range slider with a track, filled range, and draggable thumb. */
|
|
223
493
|
declare const Slider: React$1.ForwardRefExoticComponent<Omit<SliderPrimitive.SliderProps & React$1.RefAttributes<HTMLSpanElement>, "ref"> & React$1.RefAttributes<HTMLSpanElement>>;
|
|
494
|
+
/** Horizontal progress bar; `value` is the percent complete (0–100). */
|
|
224
495
|
declare const Progress: React$1.ForwardRefExoticComponent<Omit<ProgressPrimitive.ProgressProps & React$1.RefAttributes<HTMLDivElement>, "ref"> & {
|
|
496
|
+
/** Percent complete, 0–100. */
|
|
225
497
|
value?: number;
|
|
226
498
|
} & React$1.RefAttributes<HTMLDivElement>>;
|
|
499
|
+
/** Radix Tabs root — manages the active tab. Compose with TabsList/TabsTrigger/TabsContent. */
|
|
227
500
|
declare const Tabs: React$1.ForwardRefExoticComponent<TabsPrimitive.TabsProps & React$1.RefAttributes<HTMLDivElement>>;
|
|
501
|
+
/** Horizontal container holding the TabsTriggers. */
|
|
228
502
|
declare const TabsList: React$1.ForwardRefExoticComponent<Omit<TabsPrimitive.TabsListProps & React$1.RefAttributes<HTMLDivElement>, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
|
|
503
|
+
/** Clickable tab that activates its matching TabsContent. */
|
|
229
504
|
declare const TabsTrigger: React$1.ForwardRefExoticComponent<Omit<TabsPrimitive.TabsTriggerProps & React$1.RefAttributes<HTMLButtonElement>, "ref"> & React$1.RefAttributes<HTMLButtonElement>>;
|
|
505
|
+
/** Panel shown when its matching TabsTrigger is active. */
|
|
230
506
|
declare const TabsContent: React$1.ForwardRefExoticComponent<Omit<TabsPrimitive.TabsContentProps & React$1.RefAttributes<HTMLDivElement>, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
|
|
507
|
+
/** Circular avatar container. Compose with AvatarImage + AvatarFallback. */
|
|
231
508
|
declare const Avatar: React$1.ForwardRefExoticComponent<Omit<AvatarPrimitive.AvatarProps & React$1.RefAttributes<HTMLSpanElement>, "ref"> & React$1.RefAttributes<HTMLSpanElement>>;
|
|
509
|
+
/** The avatar's image; falls back to AvatarFallback if it fails to load. */
|
|
232
510
|
declare const AvatarImage: React$1.ForwardRefExoticComponent<Omit<AvatarPrimitive.AvatarImageProps & React$1.RefAttributes<HTMLImageElement>, "ref"> & React$1.RefAttributes<HTMLImageElement>>;
|
|
511
|
+
/** Placeholder (e.g. initials) shown when the avatar image is missing or loading. */
|
|
233
512
|
declare const AvatarFallback: React$1.ForwardRefExoticComponent<Omit<AvatarPrimitive.AvatarFallbackProps & React$1.RefAttributes<HTMLSpanElement>, "ref"> & React$1.RefAttributes<HTMLSpanElement>>;
|
|
513
|
+
/** Wraps tooltips to share open/close timing; place once near the app root. */
|
|
234
514
|
declare const TooltipProvider: React$1.FC<TooltipPrimitive.TooltipProviderProps>;
|
|
515
|
+
/** Radix Tooltip root — pairs a trigger with its content. */
|
|
235
516
|
declare const Tooltip: React$1.FC<TooltipPrimitive.TooltipProps>;
|
|
517
|
+
/** Element that shows the tooltip on hover/focus. */
|
|
236
518
|
declare const TooltipTrigger: React$1.ForwardRefExoticComponent<TooltipPrimitive.TooltipTriggerProps & React$1.RefAttributes<HTMLButtonElement>>;
|
|
519
|
+
/** The floating tooltip bubble. */
|
|
237
520
|
declare const TooltipContent: React$1.ForwardRefExoticComponent<Omit<TooltipPrimitive.TooltipContentProps & React$1.RefAttributes<HTMLDivElement>, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
|
|
521
|
+
/** Pulsing placeholder block for loading states; size it via `className`. */
|
|
238
522
|
declare function Skeleton({ className, ...props }: React$1.HTMLAttributes<HTMLDivElement>): React$1.JSX.Element;
|
|
239
523
|
interface SpinnerProps extends React$1.HTMLAttributes<HTMLDivElement> {
|
|
524
|
+
/** Size: `sm` (16px), `md` (24px, default), or `lg` (32px). */
|
|
240
525
|
size?: "sm" | "md" | "lg";
|
|
241
526
|
}
|
|
527
|
+
/** Animated loading spinner with an accessible "Loading…" label. */
|
|
242
528
|
declare function Spinner({ size, className, ...props }: SpinnerProps): React$1.JSX.Element;
|
|
243
529
|
interface PageLoaderProps extends React$1.HTMLAttributes<HTMLDivElement> {
|
|
530
|
+
/** Primary loading message shown under the spinner. */
|
|
244
531
|
title?: string;
|
|
532
|
+
/** Secondary, lighter message under the title. */
|
|
245
533
|
subtitle?: string;
|
|
246
534
|
}
|
|
535
|
+
/** Full-viewport centered loading screen with a spinner and optional title/subtitle. */
|
|
247
536
|
declare function PageLoader({ title, subtitle, className, ...props }: PageLoaderProps): React$1.JSX.Element;
|
|
248
537
|
interface EmptyStateProps {
|
|
538
|
+
/** Icon/illustration shown above the title. */
|
|
249
539
|
icon?: React$1.ReactNode;
|
|
540
|
+
/** Heading text. */
|
|
250
541
|
title: string;
|
|
542
|
+
/** Supporting text below the title. */
|
|
251
543
|
description?: string;
|
|
544
|
+
/** Action slot (e.g. a primary button) below the text. */
|
|
252
545
|
action?: React$1.ReactNode;
|
|
253
546
|
}
|
|
547
|
+
/** Centered "nothing here" placeholder with an icon, title, description, and action. */
|
|
254
548
|
declare function EmptyState({ icon, title, description, action }: EmptyStateProps): React$1.JSX.Element;
|
|
255
549
|
declare const MotionDiv: framer_motion.ForwardRefComponent<HTMLDivElement, framer_motion.HTMLMotionProps<"div">>;
|
|
256
550
|
declare const MotionSpan: framer_motion.ForwardRefComponent<HTMLSpanElement, framer_motion.HTMLMotionProps<"span">>;
|
|
@@ -289,80 +583,126 @@ declare const staggerItem: {
|
|
|
289
583
|
};
|
|
290
584
|
};
|
|
291
585
|
interface IconButtonProps extends React$1.ButtonHTMLAttributes<HTMLButtonElement> {
|
|
586
|
+
/** The icon to render inside the button. */
|
|
292
587
|
icon: React$1.ReactNode;
|
|
588
|
+
/** Accessible label, also shown as the hover tooltip. */
|
|
293
589
|
label: string;
|
|
294
590
|
}
|
|
591
|
+
/** Icon-only button with a built-in tooltip (uses `label` for both a11y and the tooltip text). */
|
|
295
592
|
declare const IconButton: React$1.ForwardRefExoticComponent<IconButtonProps & React$1.RefAttributes<HTMLButtonElement>>;
|
|
593
|
+
/** Uppercase, muted form-field label. */
|
|
296
594
|
declare function Label({ className, ...props }: React$1.LabelHTMLAttributes<HTMLLabelElement>): React$1.JSX.Element;
|
|
595
|
+
/** Radix DropdownMenu root — a contextual actions menu. Compose with DropdownMenu* parts. */
|
|
297
596
|
declare const DropdownMenu: React$1.FC<DropdownMenuPrimitive.DropdownMenuProps>;
|
|
597
|
+
/** Element that opens the dropdown menu. */
|
|
298
598
|
declare const DropdownMenuTrigger: React$1.ForwardRefExoticComponent<DropdownMenuPrimitive.DropdownMenuTriggerProps & React$1.RefAttributes<HTMLButtonElement>>;
|
|
599
|
+
/** Groups related menu items. */
|
|
299
600
|
declare const DropdownMenuGroup: React$1.ForwardRefExoticComponent<DropdownMenuPrimitive.DropdownMenuGroupProps & React$1.RefAttributes<HTMLDivElement>>;
|
|
601
|
+
/** Portals menu content into the document body. */
|
|
300
602
|
declare const DropdownMenuPortal: React$1.FC<DropdownMenuPrimitive.DropdownMenuPortalProps>;
|
|
603
|
+
/** Wraps a nested submenu (use with DropdownMenuSubTrigger/SubContent). */
|
|
301
604
|
declare const DropdownMenuSub: React$1.FC<DropdownMenuPrimitive.DropdownMenuSubProps>;
|
|
605
|
+
/** Groups DropdownMenuRadioItems into a single-choice set. */
|
|
302
606
|
declare const DropdownMenuRadioGroup: React$1.ForwardRefExoticComponent<DropdownMenuPrimitive.DropdownMenuRadioGroupProps & React$1.RefAttributes<HTMLDivElement>>;
|
|
607
|
+
/** Item that opens a nested submenu. `inset` adds left padding to align with checkable items. */
|
|
303
608
|
declare const DropdownMenuSubTrigger: React$1.ForwardRefExoticComponent<Omit<DropdownMenuPrimitive.DropdownMenuSubTriggerProps & React$1.RefAttributes<HTMLDivElement>, "ref"> & {
|
|
304
609
|
inset?: boolean;
|
|
305
610
|
} & React$1.RefAttributes<HTMLDivElement>>;
|
|
611
|
+
/** The panel for a nested submenu. */
|
|
306
612
|
declare const DropdownMenuSubContent: React$1.ForwardRefExoticComponent<Omit<DropdownMenuPrimitive.DropdownMenuSubContentProps & React$1.RefAttributes<HTMLDivElement>, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
|
|
613
|
+
/** Portalled, animated dropdown menu panel holding the items. */
|
|
307
614
|
declare const DropdownMenuContent: React$1.ForwardRefExoticComponent<Omit<DropdownMenuPrimitive.DropdownMenuContentProps & React$1.RefAttributes<HTMLDivElement>, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
|
|
615
|
+
/** A clickable menu action. `inset` adds left padding to align with checkable items. */
|
|
308
616
|
declare const DropdownMenuItem: React$1.ForwardRefExoticComponent<Omit<DropdownMenuPrimitive.DropdownMenuItemProps & React$1.RefAttributes<HTMLDivElement>, "ref"> & {
|
|
617
|
+
/** Indent to align with checkbox/radio items. */
|
|
309
618
|
inset?: boolean;
|
|
310
619
|
} & React$1.RefAttributes<HTMLDivElement>>;
|
|
620
|
+
/** A toggleable menu item showing a check when `checked`. */
|
|
311
621
|
declare const DropdownMenuCheckboxItem: React$1.ForwardRefExoticComponent<Omit<DropdownMenuPrimitive.DropdownMenuCheckboxItemProps & React$1.RefAttributes<HTMLDivElement>, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
|
|
622
|
+
/** A single-choice menu item; use inside a DropdownMenuRadioGroup. */
|
|
312
623
|
declare const DropdownMenuRadioItem: React$1.ForwardRefExoticComponent<Omit<DropdownMenuPrimitive.DropdownMenuRadioItemProps & React$1.RefAttributes<HTMLDivElement>, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
|
|
624
|
+
/** Non-interactive section heading inside the menu. `inset` indents it to align with items. */
|
|
313
625
|
declare const DropdownMenuLabel: React$1.ForwardRefExoticComponent<Omit<DropdownMenuPrimitive.DropdownMenuLabelProps & React$1.RefAttributes<HTMLDivElement>, "ref"> & {
|
|
626
|
+
/** Indent to align with checkbox/radio items. */
|
|
314
627
|
inset?: boolean;
|
|
315
628
|
} & React$1.RefAttributes<HTMLDivElement>>;
|
|
629
|
+
/** Thin divider between groups of menu items. */
|
|
316
630
|
declare const DropdownMenuSeparator: React$1.ForwardRefExoticComponent<Omit<DropdownMenuPrimitive.DropdownMenuSeparatorProps & React$1.RefAttributes<HTMLDivElement>, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
|
|
631
|
+
/** Right-aligned keyboard-shortcut hint shown inside a menu item. */
|
|
317
632
|
declare const DropdownMenuShortcut: {
|
|
318
633
|
({ className, ...props }: React$1.HTMLAttributes<HTMLSpanElement>): React$1.JSX.Element;
|
|
319
634
|
displayName: string;
|
|
320
635
|
};
|
|
321
636
|
|
|
322
637
|
interface SelectOption {
|
|
638
|
+
/** The value reported to `onChange` when selected. */
|
|
323
639
|
value: string;
|
|
640
|
+
/** Display text for the option. */
|
|
324
641
|
label: string;
|
|
642
|
+
/** Optional leading icon shown next to the label. */
|
|
325
643
|
icon?: React.ReactNode;
|
|
644
|
+
/** Optional secondary line shown under the label. */
|
|
326
645
|
description?: string;
|
|
327
646
|
}
|
|
328
647
|
interface CustomSelectProps {
|
|
648
|
+
/** The selectable options. */
|
|
329
649
|
options: SelectOption[];
|
|
650
|
+
/** Currently selected value (controlled). */
|
|
330
651
|
value: string;
|
|
652
|
+
/** Called with the chosen option's value. */
|
|
331
653
|
onChange: (value: string) => void;
|
|
654
|
+
/** Placeholder shown when nothing is selected (falls back to i18n default). */
|
|
332
655
|
placeholder?: string;
|
|
656
|
+
/** Show an in-dropdown search box that filters options by label/value. */
|
|
333
657
|
searchable?: boolean;
|
|
334
658
|
className?: string;
|
|
659
|
+
/** Disable interaction and dim the control. */
|
|
335
660
|
disabled?: boolean;
|
|
336
661
|
}
|
|
662
|
+
/** Custom dropdown select with optional search, icons, descriptions, and full keyboard support. */
|
|
337
663
|
declare function CustomSelect({ options, value, onChange, placeholder, searchable, className, disabled, }: CustomSelectProps): React$1.JSX.Element;
|
|
338
664
|
|
|
339
665
|
interface SegmentedOption<T = string> {
|
|
666
|
+
/** The value reported to `onChange` when selected. */
|
|
340
667
|
value: T;
|
|
668
|
+
/** Display text for the segment. */
|
|
341
669
|
label: string;
|
|
670
|
+
/** Optional native tooltip (`title`) for the segment. */
|
|
342
671
|
desc?: string;
|
|
672
|
+
/** Optional Lucide icon shown before the label. */
|
|
343
673
|
icon?: LucideIcon;
|
|
344
674
|
}
|
|
345
675
|
interface SegmentedSelectProps<T = string> {
|
|
676
|
+
/** The selectable segments. */
|
|
346
677
|
options: SegmentedOption<T>[];
|
|
678
|
+
/** Currently selected value (controlled). */
|
|
347
679
|
value: T;
|
|
680
|
+
/** Called with the chosen segment's value. */
|
|
348
681
|
onChange: (value: T) => void;
|
|
349
682
|
className?: string;
|
|
683
|
+
/** Disable interaction and dim the control. */
|
|
350
684
|
disabled?: boolean;
|
|
351
685
|
}
|
|
686
|
+
/** Inline segmented control — a row of buttons where one option is active at a time. */
|
|
352
687
|
declare function SegmentedSelect<T = string>({ options, value, onChange, className, disabled, }: SegmentedSelectProps<T>): React$1.JSX.Element;
|
|
353
688
|
|
|
354
689
|
interface NavTab {
|
|
690
|
+
/** Unique key; matched against `activeKey` to mark the active tab. */
|
|
355
691
|
key: string;
|
|
692
|
+
/** Tab label content. */
|
|
356
693
|
label: ReactNode;
|
|
357
694
|
/** When set, the tab renders as a route Link instead of a button. */
|
|
358
695
|
href?: string;
|
|
359
696
|
}
|
|
360
697
|
interface NavTabsProps {
|
|
698
|
+
/** The tabs to render. */
|
|
361
699
|
tabs: NavTab[];
|
|
700
|
+
/** Key of the currently active tab. */
|
|
362
701
|
activeKey: string;
|
|
363
702
|
/** Called for button-mode (in-page) tabs. Ignored when tabs use `href`. */
|
|
364
703
|
onChange?: (key: string) => void;
|
|
365
704
|
className?: string;
|
|
705
|
+
/** Accessible label for the tab `<nav>`. */
|
|
366
706
|
ariaLabel?: string;
|
|
367
707
|
}
|
|
368
708
|
/**
|
|
@@ -373,32 +713,45 @@ interface NavTabsProps {
|
|
|
373
713
|
*/
|
|
374
714
|
declare function NavTabs({ tabs, activeKey, onChange, className, ariaLabel }: NavTabsProps): React$1.JSX.Element;
|
|
375
715
|
|
|
716
|
+
/** CTA button with an animated shimmer sweep and a trailing arrow; renders a Link when `href` is set. */
|
|
376
717
|
declare function ShinyButton({ children, className, href, onClick, }: {
|
|
377
718
|
children: ReactNode;
|
|
378
719
|
className?: string;
|
|
720
|
+
/** When set, renders as a routing Link to this destination instead of a button. */
|
|
379
721
|
href?: string;
|
|
380
722
|
onClick?: () => void;
|
|
381
723
|
}): React$1.JSX.Element;
|
|
382
724
|
|
|
725
|
+
/** Infinitely scrolling row (or column) that repeats its children; supports reverse direction and pause-on-hover. */
|
|
383
726
|
declare function Marquee({ className, reverse, pauseOnHover, children, vertical, repeat, ...props }: {
|
|
384
727
|
className?: string;
|
|
728
|
+
/** Scroll in the opposite direction. */
|
|
385
729
|
reverse?: boolean;
|
|
730
|
+
/** Pause the animation while hovered. */
|
|
386
731
|
pauseOnHover?: boolean;
|
|
387
732
|
children?: React.ReactNode;
|
|
733
|
+
/** Scroll vertically instead of horizontally. */
|
|
388
734
|
vertical?: boolean;
|
|
735
|
+
/** How many times to repeat the children to fill the loop. @defaultValue 4 */
|
|
389
736
|
repeat?: number;
|
|
390
737
|
[key: string]: unknown;
|
|
391
738
|
}): React$1.JSX.Element;
|
|
392
739
|
|
|
740
|
+
/** Responsive bento-style grid container for BentoCard children. */
|
|
393
741
|
declare const BentoGrid: ({ className, children, }: {
|
|
394
742
|
className?: string;
|
|
395
743
|
children?: ReactNode;
|
|
396
744
|
}) => React$1.JSX.Element;
|
|
745
|
+
/** A glass card tile for use inside a BentoGrid, with a header slot, icon, title, and description. */
|
|
397
746
|
declare const BentoCard: ({ className, title, description, header, icon, }: {
|
|
398
747
|
className?: string;
|
|
748
|
+
/** Card title. */
|
|
399
749
|
title?: string | ReactNode;
|
|
750
|
+
/** Card body text. */
|
|
400
751
|
description?: string | ReactNode;
|
|
752
|
+
/** Top media/visual slot above the icon and text. */
|
|
401
753
|
header?: ReactNode;
|
|
754
|
+
/** Icon shown above the title. */
|
|
402
755
|
icon?: ReactNode;
|
|
403
756
|
}) => React$1.JSX.Element;
|
|
404
757
|
|
|
@@ -416,24 +769,32 @@ declare const PopoverContent: React$1.ForwardRefExoticComponent<Omit<PopoverPrim
|
|
|
416
769
|
declare const PopoverClose: React$1.ForwardRefExoticComponent<PopoverPrimitive.PopoverCloseProps & React$1.RefAttributes<HTMLButtonElement>>;
|
|
417
770
|
|
|
418
771
|
interface ThemeToggleProps {
|
|
419
|
-
/** Visual variant */
|
|
772
|
+
/** Visual variant: `icon` (default, icon-only) or `pill`. */
|
|
420
773
|
variant?: "icon" | "pill";
|
|
421
|
-
/** Dropdown alignment */
|
|
774
|
+
/** Dropdown alignment: `left` or `right` (default). */
|
|
422
775
|
align?: "left" | "right";
|
|
423
776
|
/** Additional className */
|
|
424
777
|
className?: string;
|
|
425
778
|
}
|
|
779
|
+
/** Theme switcher dropdown (light / dark / true-black / system) backed by next-themes. */
|
|
426
780
|
declare function ThemeToggle({ variant, align, className }: ThemeToggleProps): React$1.JSX.Element;
|
|
427
781
|
|
|
428
782
|
interface SwitchProps {
|
|
783
|
+
/** Whether the switch is on (controlled). */
|
|
429
784
|
checked: boolean;
|
|
785
|
+
/** Called with the next checked state when toggled. */
|
|
430
786
|
onCheckedChange: (checked: boolean) => void;
|
|
787
|
+
/** Disable interaction and dim the control. */
|
|
431
788
|
disabled?: boolean;
|
|
789
|
+
/** Size: `sm` (default) or `md`. */
|
|
432
790
|
size?: "sm" | "md";
|
|
791
|
+
/** Checked-state color: `default`, `success`, `warning`, or `danger`. */
|
|
433
792
|
variant?: "default" | "success" | "warning" | "danger";
|
|
434
793
|
className?: string;
|
|
794
|
+
/** Element id (e.g. to pair with a `<label htmlFor>`). */
|
|
435
795
|
id?: string;
|
|
436
796
|
}
|
|
797
|
+
/** Controlled on/off toggle rendered as an accessible switch button. */
|
|
437
798
|
declare const Switch: React$1.ForwardRefExoticComponent<SwitchProps & React$1.RefAttributes<HTMLButtonElement>>;
|
|
438
799
|
|
|
439
800
|
interface AnimatedNumberProps {
|
|
@@ -507,4 +868,4 @@ declare function useBodyScrollLock(locked?: boolean): void;
|
|
|
507
868
|
*/
|
|
508
869
|
declare function useModalBehavior(isOpen: boolean, onClose: () => void): void;
|
|
509
870
|
|
|
510
|
-
export { AnimatedNumber, type AnimatedNumberProps, Avatar, AvatarFallback, AvatarImage, Badge, BentoCard, BentoGrid, Button, Card, Checkbox, type CheckboxProps, Collapsible, CollapsibleContent, type CollapsibleContentProps, type CollapsibleProps, CollapsibleTrigger, type CollapsibleTriggerProps, Combobox, type ComboboxOption, ConfirmModal, type ConfirmModalVariant, CustomSelect, DeleteConfirmModal, Dialog, DialogClose, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogOverlay, DialogPortal, DialogTitle, DialogTrigger, DropdownMenu, DropdownMenuCheckboxItem, DropdownMenuContent, DropdownMenuGroup, DropdownMenuItem, DropdownMenuLabel, DropdownMenuPortal, DropdownMenuRadioGroup, DropdownMenuRadioItem, DropdownMenuSeparator, DropdownMenuShortcut, DropdownMenuSub, DropdownMenuSubContent, DropdownMenuSubTrigger, DropdownMenuTrigger, EmptyState, IconButton, Input, Label, Marquee, Modal, MotionDiv, MotionSpan, type NavTab, NavTabs, PageLoader, Popover, PopoverClose, PopoverContent, PopoverTrigger, Progress, RegenerateConfirmModal, type SegmentedOption, SegmentedSelect, Select, SelectContent, SelectGroup, SelectItem, type SelectOption, SelectTrigger, SelectValue, Sheet, ShinyButton, Skeleton, Slider, Spinner, Switch, type SwitchProps, Tabs, TabsContent, TabsList, TabsTrigger, Textarea, ThemeToggle, Toaster, Tooltip, TooltipContent, TooltipProvider, TooltipTrigger, cn, fadeIn, staggerContainer, staggerItem, toast, useBodyScrollLock, useEscapeKey, useModalBehavior };
|
|
871
|
+
export { Accordion, AccordionContent, AccordionItem, AccordionTrigger, AnimatedNumber, type AnimatedNumberProps, Avatar, AvatarFallback, AvatarImage, Badge, BentoCard, BentoGrid, Breadcrumb, BreadcrumbEllipsis, BreadcrumbItem, BreadcrumbLink, BreadcrumbList, BreadcrumbPage, BreadcrumbSeparator, Button, Card, Checkbox, type CheckboxProps, Collapsible, CollapsibleContent, type CollapsibleContentProps, type CollapsibleProps, CollapsibleTrigger, type CollapsibleTriggerProps, Column, Combobox, type ComboboxOption, ConfirmModal, type ConfirmModalVariant, CustomSelect, DeleteConfirmModal, Dialog, DialogClose, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogOverlay, DialogPortal, DialogTitle, DialogTrigger, DropdownMenu, DropdownMenuCheckboxItem, DropdownMenuContent, DropdownMenuGroup, DropdownMenuItem, DropdownMenuLabel, DropdownMenuPortal, DropdownMenuRadioGroup, DropdownMenuRadioItem, DropdownMenuSeparator, DropdownMenuShortcut, DropdownMenuSub, DropdownMenuSubContent, DropdownMenuSubTrigger, DropdownMenuTrigger, EmptyState, Flex, type FlexProps, Grid, type GridCount, type GridProps, IconButton, Input, Label, Marquee, Modal, MotionDiv, MotionSpan, type NavTab, NavTabs, PageLoader, Pagination, type PaginationProps, Popover, PopoverClose, PopoverContent, PopoverTrigger, Progress, RadioGroup, RadioGroupItem, RegenerateConfirmModal, Row, type SegmentedOption, SegmentedSelect, Select, SelectContent, SelectGroup, SelectItem, type SelectOption, SelectTrigger, SelectValue, Sheet, ShinyButton, Skeleton, Slider, type SpacingScale, Spinner, Stack, Switch, type SwitchProps, Table, TableBody, TableCaption, TableCell, TableFooter, TableHead, TableHeader, TableRow, Tabs, TabsContent, TabsList, TabsTrigger, TableBody as Tbody, TableCell as Td, Textarea, TableFooter as Tfoot, TableHead as Th, TableHeader as Thead, ThemeToggle, Toaster, Tooltip, TooltipContent, TooltipProvider, TooltipTrigger, TableRow as Tr, cn, fadeIn, staggerContainer, staggerItem, toast, useBodyScrollLock, useEscapeKey, useModalBehavior };
|