@otfdashkit/ui 0.1.4 → 0.1.6
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 +3 -3
- package/dist/index.d.mts +3064 -0
- package/dist/index.d.ts +3064 -0
- package/package.json +11 -4
- package/src/primitives/Chart/Chart.tsx +2 -368
- package/src/primitives/chart.tsx +25 -19
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1,3064 @@
|
|
|
1
|
+
import { ClassValue } from 'clsx';
|
|
2
|
+
import * as React$1 from 'react';
|
|
3
|
+
import React__default from 'react';
|
|
4
|
+
import * as AccordionPrimitive from '@radix-ui/react-accordion';
|
|
5
|
+
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
6
|
+
import * as AlertDialogPrimitive from '@radix-ui/react-alert-dialog';
|
|
7
|
+
import * as class_variance_authority_types from 'class-variance-authority/types';
|
|
8
|
+
import { VariantProps } from 'class-variance-authority';
|
|
9
|
+
import * as AspectRatioPrimitive from '@radix-ui/react-aspect-ratio';
|
|
10
|
+
import * as AvatarPrimitive from '@radix-ui/react-avatar';
|
|
11
|
+
import { DayPicker, DayButton } from 'react-day-picker';
|
|
12
|
+
import useEmblaCarousel, { UseEmblaCarouselType } from 'embla-carousel-react';
|
|
13
|
+
import * as RechartsPrimitive from 'recharts';
|
|
14
|
+
import * as CheckboxPrimitive from '@radix-ui/react-checkbox';
|
|
15
|
+
import * as CollapsiblePrimitive from '@radix-ui/react-collapsible';
|
|
16
|
+
import * as DialogPrimitive from '@radix-ui/react-dialog';
|
|
17
|
+
import { DialogProps } from '@radix-ui/react-dialog';
|
|
18
|
+
import * as ContextMenuPrimitive from '@radix-ui/react-context-menu';
|
|
19
|
+
import * as vaul from 'vaul';
|
|
20
|
+
import { Drawer as Drawer$1 } from 'vaul';
|
|
21
|
+
import * as DropdownMenuPrimitive from '@radix-ui/react-dropdown-menu';
|
|
22
|
+
import * as HoverCardPrimitive from '@radix-ui/react-hover-card';
|
|
23
|
+
import * as input_otp from 'input-otp';
|
|
24
|
+
import * as LabelPrimitive from '@radix-ui/react-label';
|
|
25
|
+
import * as MenubarPrimitive from '@radix-ui/react-menubar';
|
|
26
|
+
import * as NavigationMenuPrimitive from '@radix-ui/react-navigation-menu';
|
|
27
|
+
import * as PopoverPrimitive from '@radix-ui/react-popover';
|
|
28
|
+
import * as ProgressPrimitive from '@radix-ui/react-progress';
|
|
29
|
+
import * as RadioGroupPrimitive from '@radix-ui/react-radio-group';
|
|
30
|
+
import { Separator as Separator$1, Panel, Group } from 'react-resizable-panels';
|
|
31
|
+
import * as ScrollAreaPrimitive from '@radix-ui/react-scroll-area';
|
|
32
|
+
import * as SelectPrimitive from '@radix-ui/react-select';
|
|
33
|
+
import * as SeparatorPrimitive from '@radix-ui/react-separator';
|
|
34
|
+
import * as SliderPrimitive from '@radix-ui/react-slider';
|
|
35
|
+
import * as SwitchPrimitive from '@radix-ui/react-switch';
|
|
36
|
+
import * as TabsPrimitive from '@radix-ui/react-tabs';
|
|
37
|
+
import * as ToggleGroupPrimitive from '@radix-ui/react-toggle-group';
|
|
38
|
+
import * as TogglePrimitive from '@radix-ui/react-toggle';
|
|
39
|
+
import * as TooltipPrimitive from '@radix-ui/react-tooltip';
|
|
40
|
+
import { ColumnDef } from '@tanstack/react-table';
|
|
41
|
+
import * as z from 'zod';
|
|
42
|
+
import { FieldValues, FieldPath, ControllerProps } from 'react-hook-form';
|
|
43
|
+
export { FormProvider as Form } from 'react-hook-form';
|
|
44
|
+
import { TargetAndTransition, HTMLMotionProps } from 'motion/react';
|
|
45
|
+
export { AnimatePresence, Variants, motion, useInView, useMotionValue, useScroll, useSpring, useTransform } from 'motion/react';
|
|
46
|
+
import { PixelCrop } from 'react-image-crop';
|
|
47
|
+
export { Crop, PixelCrop } from 'react-image-crop';
|
|
48
|
+
|
|
49
|
+
declare function cn(...inputs: ClassValue[]): string;
|
|
50
|
+
|
|
51
|
+
declare const Accordion: React$1.ForwardRefExoticComponent<(AccordionPrimitive.AccordionSingleProps | AccordionPrimitive.AccordionMultipleProps) & React$1.RefAttributes<HTMLDivElement>>;
|
|
52
|
+
declare const AccordionItem: React$1.ForwardRefExoticComponent<Omit<AccordionPrimitive.AccordionItemProps & React$1.RefAttributes<HTMLDivElement>, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
|
|
53
|
+
declare const AccordionTrigger: React$1.ForwardRefExoticComponent<Omit<AccordionPrimitive.AccordionTriggerProps & React$1.RefAttributes<HTMLButtonElement>, "ref"> & React$1.RefAttributes<HTMLButtonElement>>;
|
|
54
|
+
declare const AccordionContent: React$1.ForwardRefExoticComponent<Omit<AccordionPrimitive.AccordionContentProps & React$1.RefAttributes<HTMLDivElement>, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
|
|
55
|
+
|
|
56
|
+
declare const AlertDialog: React$1.FC<AlertDialogPrimitive.AlertDialogProps>;
|
|
57
|
+
declare const AlertDialogTrigger: React$1.ForwardRefExoticComponent<AlertDialogPrimitive.AlertDialogTriggerProps & React$1.RefAttributes<HTMLButtonElement>>;
|
|
58
|
+
declare const AlertDialogPortal: React$1.FC<AlertDialogPrimitive.AlertDialogPortalProps>;
|
|
59
|
+
declare const AlertDialogOverlay: React$1.ForwardRefExoticComponent<Omit<AlertDialogPrimitive.AlertDialogOverlayProps & React$1.RefAttributes<HTMLDivElement>, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
|
|
60
|
+
declare const AlertDialogContent: React$1.ForwardRefExoticComponent<Omit<AlertDialogPrimitive.AlertDialogContentProps & React$1.RefAttributes<HTMLDivElement>, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
|
|
61
|
+
declare const AlertDialogHeader: {
|
|
62
|
+
({ className, ...props }: React$1.HTMLAttributes<HTMLDivElement>): react_jsx_runtime.JSX.Element;
|
|
63
|
+
displayName: string;
|
|
64
|
+
};
|
|
65
|
+
declare const AlertDialogFooter: {
|
|
66
|
+
({ className, ...props }: React$1.HTMLAttributes<HTMLDivElement>): react_jsx_runtime.JSX.Element;
|
|
67
|
+
displayName: string;
|
|
68
|
+
};
|
|
69
|
+
declare const AlertDialogTitle: React$1.ForwardRefExoticComponent<Omit<AlertDialogPrimitive.AlertDialogTitleProps & React$1.RefAttributes<HTMLHeadingElement>, "ref"> & React$1.RefAttributes<HTMLHeadingElement>>;
|
|
70
|
+
declare const AlertDialogDescription: React$1.ForwardRefExoticComponent<Omit<AlertDialogPrimitive.AlertDialogDescriptionProps & React$1.RefAttributes<HTMLParagraphElement>, "ref"> & React$1.RefAttributes<HTMLParagraphElement>>;
|
|
71
|
+
declare const AlertDialogAction: React$1.ForwardRefExoticComponent<Omit<AlertDialogPrimitive.AlertDialogActionProps & React$1.RefAttributes<HTMLButtonElement>, "ref"> & React$1.RefAttributes<HTMLButtonElement>>;
|
|
72
|
+
declare const AlertDialogCancel: React$1.ForwardRefExoticComponent<Omit<AlertDialogPrimitive.AlertDialogCancelProps & React$1.RefAttributes<HTMLButtonElement>, "ref"> & React$1.RefAttributes<HTMLButtonElement>>;
|
|
73
|
+
|
|
74
|
+
declare const Alert: React$1.ForwardRefExoticComponent<React$1.HTMLAttributes<HTMLDivElement> & VariantProps<(props?: ({
|
|
75
|
+
variant?: "default" | "destructive" | null | undefined;
|
|
76
|
+
} & class_variance_authority_types.ClassProp) | undefined) => string> & React$1.RefAttributes<HTMLDivElement>>;
|
|
77
|
+
declare const AlertTitle: React$1.ForwardRefExoticComponent<React$1.HTMLAttributes<HTMLHeadingElement> & React$1.RefAttributes<HTMLParagraphElement>>;
|
|
78
|
+
declare const AlertDescription: React$1.ForwardRefExoticComponent<React$1.HTMLAttributes<HTMLParagraphElement> & React$1.RefAttributes<HTMLParagraphElement>>;
|
|
79
|
+
|
|
80
|
+
declare const AspectRatio: React$1.ForwardRefExoticComponent<AspectRatioPrimitive.AspectRatioProps & React$1.RefAttributes<HTMLDivElement>>;
|
|
81
|
+
|
|
82
|
+
declare const Avatar: React__default.ForwardRefExoticComponent<Omit<AvatarPrimitive.AvatarProps & React__default.RefAttributes<HTMLSpanElement>, "ref"> & React__default.RefAttributes<HTMLSpanElement>>;
|
|
83
|
+
declare const AvatarImage: React__default.ForwardRefExoticComponent<Omit<AvatarPrimitive.AvatarImageProps & React__default.RefAttributes<HTMLImageElement>, "ref"> & React__default.RefAttributes<HTMLImageElement>>;
|
|
84
|
+
declare const AvatarFallback: React__default.ForwardRefExoticComponent<Omit<AvatarPrimitive.AvatarFallbackProps & React__default.RefAttributes<HTMLSpanElement>, "ref"> & React__default.RefAttributes<HTMLSpanElement>>;
|
|
85
|
+
interface AvatarGroupProps extends React__default.HTMLAttributes<HTMLDivElement> {
|
|
86
|
+
/** Maximum avatars rendered before collapsing into a "+N" tile. Default 4. */
|
|
87
|
+
max?: number;
|
|
88
|
+
/** Pixel size of each avatar tile. Default 32. */
|
|
89
|
+
size?: number;
|
|
90
|
+
/** Pixel overlap between adjacent avatars. Default size / 3. */
|
|
91
|
+
spacing?: number;
|
|
92
|
+
/** Custom node for the overflow tile. Falls back to "+{remaining}". */
|
|
93
|
+
renderOverflow?: (remaining: number) => React__default.ReactNode;
|
|
94
|
+
}
|
|
95
|
+
declare const AvatarGroup: React__default.ForwardRefExoticComponent<AvatarGroupProps & React__default.RefAttributes<HTMLDivElement>>;
|
|
96
|
+
|
|
97
|
+
declare const badgeVariants: (props?: ({
|
|
98
|
+
variant?: "default" | "secondary" | "outline" | "destructive" | null | undefined;
|
|
99
|
+
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
100
|
+
interface BadgeProps extends React__default.HTMLAttributes<HTMLDivElement>, VariantProps<typeof badgeVariants> {
|
|
101
|
+
}
|
|
102
|
+
declare function Badge({ className, variant, ...props }: BadgeProps): react_jsx_runtime.JSX.Element;
|
|
103
|
+
|
|
104
|
+
declare const buttonVariants: (props?: ({
|
|
105
|
+
variant?: "default" | "secondary" | "outline" | "ghost" | "destructive" | "link" | "gradient" | "texture" | "shimmer" | null | undefined;
|
|
106
|
+
size?: "default" | "sm" | "lg" | "xl" | "icon" | "icon-sm" | null | undefined;
|
|
107
|
+
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
108
|
+
interface ButtonProps extends React__default.ButtonHTMLAttributes<HTMLButtonElement>, VariantProps<typeof buttonVariants> {
|
|
109
|
+
asChild?: boolean;
|
|
110
|
+
}
|
|
111
|
+
declare const Button: React__default.ForwardRefExoticComponent<ButtonProps & React__default.RefAttributes<HTMLButtonElement>>;
|
|
112
|
+
interface IconButtonProps extends React__default.ButtonHTMLAttributes<HTMLButtonElement> {
|
|
113
|
+
icon: React__default.ReactNode;
|
|
114
|
+
/** Accessible name; an icon-only button has no visible text. */
|
|
115
|
+
label: string;
|
|
116
|
+
size?: 'sm' | 'default' | 'lg';
|
|
117
|
+
variant?: VariantProps<typeof buttonVariants>['variant'];
|
|
118
|
+
asChild?: boolean;
|
|
119
|
+
}
|
|
120
|
+
declare const IconButton: React__default.ForwardRefExoticComponent<IconButtonProps & React__default.RefAttributes<HTMLButtonElement>>;
|
|
121
|
+
|
|
122
|
+
declare function Calendar({ className, classNames, showOutsideDays, captionLayout, buttonVariant, formatters, components, ...props }: React$1.ComponentProps<typeof DayPicker> & {
|
|
123
|
+
buttonVariant?: React$1.ComponentProps<typeof Button>["variant"];
|
|
124
|
+
}): react_jsx_runtime.JSX.Element;
|
|
125
|
+
declare function CalendarDayButton({ className, day, modifiers, ...props }: React$1.ComponentProps<typeof DayButton>): react_jsx_runtime.JSX.Element;
|
|
126
|
+
|
|
127
|
+
declare const Card: React__default.ForwardRefExoticComponent<React__default.HTMLAttributes<HTMLDivElement> & React__default.RefAttributes<HTMLDivElement>>;
|
|
128
|
+
declare const CardHeader: React__default.ForwardRefExoticComponent<React__default.HTMLAttributes<HTMLDivElement> & React__default.RefAttributes<HTMLDivElement>>;
|
|
129
|
+
declare const CardTitle: React__default.ForwardRefExoticComponent<React__default.HTMLAttributes<HTMLDivElement> & React__default.RefAttributes<HTMLDivElement>>;
|
|
130
|
+
declare const CardDescription: React__default.ForwardRefExoticComponent<React__default.HTMLAttributes<HTMLDivElement> & React__default.RefAttributes<HTMLDivElement>>;
|
|
131
|
+
declare const CardContent: React__default.ForwardRefExoticComponent<React__default.HTMLAttributes<HTMLDivElement> & React__default.RefAttributes<HTMLDivElement>>;
|
|
132
|
+
declare const CardFooter: React__default.ForwardRefExoticComponent<React__default.HTMLAttributes<HTMLDivElement> & React__default.RefAttributes<HTMLDivElement>>;
|
|
133
|
+
|
|
134
|
+
type CarouselApi = UseEmblaCarouselType[1];
|
|
135
|
+
type UseCarouselParameters = Parameters<typeof useEmblaCarousel>;
|
|
136
|
+
type CarouselOptions = UseCarouselParameters[0];
|
|
137
|
+
type CarouselPlugin = UseCarouselParameters[1];
|
|
138
|
+
type CarouselProps = {
|
|
139
|
+
opts?: CarouselOptions;
|
|
140
|
+
plugins?: CarouselPlugin;
|
|
141
|
+
orientation?: "horizontal" | "vertical";
|
|
142
|
+
setApi?: (api: CarouselApi) => void;
|
|
143
|
+
};
|
|
144
|
+
declare const Carousel: React$1.ForwardRefExoticComponent<React$1.HTMLAttributes<HTMLDivElement> & CarouselProps & React$1.RefAttributes<HTMLDivElement>>;
|
|
145
|
+
declare const CarouselContent: React$1.ForwardRefExoticComponent<React$1.HTMLAttributes<HTMLDivElement> & React$1.RefAttributes<HTMLDivElement>>;
|
|
146
|
+
declare const CarouselItem: React$1.ForwardRefExoticComponent<React$1.HTMLAttributes<HTMLDivElement> & React$1.RefAttributes<HTMLDivElement>>;
|
|
147
|
+
declare const CarouselPrevious: React$1.ForwardRefExoticComponent<Omit<ButtonProps & React$1.RefAttributes<HTMLButtonElement>, "ref"> & React$1.RefAttributes<HTMLButtonElement>>;
|
|
148
|
+
declare const CarouselNext: React$1.ForwardRefExoticComponent<Omit<ButtonProps & React$1.RefAttributes<HTMLButtonElement>, "ref"> & React$1.RefAttributes<HTMLButtonElement>>;
|
|
149
|
+
|
|
150
|
+
type CartLineItemProps = Omit<React__default.HTMLAttributes<HTMLDivElement>, 'onChange'> & {
|
|
151
|
+
/** Product thumbnail URL. */
|
|
152
|
+
image?: string;
|
|
153
|
+
title: string;
|
|
154
|
+
/** Variant summary line, e.g. "Whole bean · 250g". */
|
|
155
|
+
variant?: string;
|
|
156
|
+
/** Unit price in minor units (cents). */
|
|
157
|
+
price: number;
|
|
158
|
+
/** Optional compare-at unit price in minor units. */
|
|
159
|
+
compareAt?: number;
|
|
160
|
+
currency?: string;
|
|
161
|
+
quantity: number;
|
|
162
|
+
onQuantityChange?: (qty: number) => void;
|
|
163
|
+
onRemove?: () => void;
|
|
164
|
+
minQuantity?: number;
|
|
165
|
+
maxQuantity?: number;
|
|
166
|
+
};
|
|
167
|
+
/** Cart row: thumbnail · title · variant · price · quantity stepper · remove. */
|
|
168
|
+
declare const CartLineItem: React__default.ForwardRefExoticComponent<Omit<React__default.HTMLAttributes<HTMLDivElement>, "onChange"> & {
|
|
169
|
+
/** Product thumbnail URL. */
|
|
170
|
+
image?: string;
|
|
171
|
+
title: string;
|
|
172
|
+
/** Variant summary line, e.g. "Whole bean · 250g". */
|
|
173
|
+
variant?: string;
|
|
174
|
+
/** Unit price in minor units (cents). */
|
|
175
|
+
price: number;
|
|
176
|
+
/** Optional compare-at unit price in minor units. */
|
|
177
|
+
compareAt?: number;
|
|
178
|
+
currency?: string;
|
|
179
|
+
quantity: number;
|
|
180
|
+
onQuantityChange?: (qty: number) => void;
|
|
181
|
+
onRemove?: () => void;
|
|
182
|
+
minQuantity?: number;
|
|
183
|
+
maxQuantity?: number;
|
|
184
|
+
} & React__default.RefAttributes<HTMLDivElement>>;
|
|
185
|
+
|
|
186
|
+
declare const THEMES: {
|
|
187
|
+
readonly light: "";
|
|
188
|
+
readonly dark: ".dark";
|
|
189
|
+
};
|
|
190
|
+
type ChartConfig = {
|
|
191
|
+
[k in string]: {
|
|
192
|
+
label?: React$1.ReactNode;
|
|
193
|
+
icon?: React$1.ComponentType;
|
|
194
|
+
} & ({
|
|
195
|
+
color?: string;
|
|
196
|
+
theme?: never;
|
|
197
|
+
} | {
|
|
198
|
+
color?: never;
|
|
199
|
+
theme: Record<keyof typeof THEMES, string>;
|
|
200
|
+
});
|
|
201
|
+
};
|
|
202
|
+
declare const ChartContainer: React$1.ForwardRefExoticComponent<Omit<React$1.ClassAttributes<HTMLDivElement> & React$1.HTMLAttributes<HTMLDivElement> & {
|
|
203
|
+
config: ChartConfig;
|
|
204
|
+
children: React$1.ComponentProps<typeof RechartsPrimitive.ResponsiveContainer>["children"];
|
|
205
|
+
}, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
|
|
206
|
+
declare const ChartStyle: ({ id, config }: {
|
|
207
|
+
id: string;
|
|
208
|
+
config: ChartConfig;
|
|
209
|
+
}) => react_jsx_runtime.JSX.Element | null;
|
|
210
|
+
declare const ChartTooltip: typeof RechartsPrimitive.Tooltip;
|
|
211
|
+
type ChartTooltipContentProps = React$1.ComponentProps<typeof RechartsPrimitive.Tooltip> & React$1.ComponentProps<"div"> & {
|
|
212
|
+
hideLabel?: boolean;
|
|
213
|
+
hideIndicator?: boolean;
|
|
214
|
+
indicator?: "line" | "dot" | "dashed";
|
|
215
|
+
nameKey?: string;
|
|
216
|
+
labelKey?: string;
|
|
217
|
+
};
|
|
218
|
+
declare const ChartTooltipContent: React$1.ForwardRefExoticComponent<React$1.PropsWithoutRef<ChartTooltipContentProps> & React$1.RefAttributes<HTMLDivElement>>;
|
|
219
|
+
declare const ChartLegend: React$1.MemoExoticComponent<(outsideProps: RechartsPrimitive.LegendProps) => React$1.ReactPortal | null>;
|
|
220
|
+
type ChartLegendContentProps = React$1.ComponentProps<"div"> & {
|
|
221
|
+
payload?: ReadonlyArray<RechartsPrimitive.LegendPayload>;
|
|
222
|
+
verticalAlign?: "top" | "middle" | "bottom";
|
|
223
|
+
hideIcon?: boolean;
|
|
224
|
+
nameKey?: string;
|
|
225
|
+
};
|
|
226
|
+
declare const ChartLegendContent: React$1.ForwardRefExoticComponent<React$1.PropsWithoutRef<ChartLegendContentProps> & React$1.RefAttributes<HTMLDivElement>>;
|
|
227
|
+
|
|
228
|
+
declare const Checkbox: React__default.ForwardRefExoticComponent<Omit<CheckboxPrimitive.CheckboxProps & React__default.RefAttributes<HTMLButtonElement>, "ref"> & React__default.RefAttributes<HTMLButtonElement>>;
|
|
229
|
+
|
|
230
|
+
declare const LANGS: readonly ["tsx", "ts", "jsx", "js", "bash", "css", "json", "yaml", "markdown"];
|
|
231
|
+
type CodeBlockProps = Omit<React__default.HTMLAttributes<HTMLDivElement>, 'children'> & {
|
|
232
|
+
/** Source code to render. */
|
|
233
|
+
code: string;
|
|
234
|
+
/** Highlight grammar. Must be in the bundled set. Default 'tsx'. */
|
|
235
|
+
language?: (typeof LANGS)[number];
|
|
236
|
+
/** Theme override. 'auto' (default) follows the closest `dark`/`light` ancestor class. */
|
|
237
|
+
theme?: 'light' | 'dark' | 'auto';
|
|
238
|
+
/** Show 1-indexed line numbers in a gutter. Default false. */
|
|
239
|
+
showLineNumbers?: boolean;
|
|
240
|
+
/** 1-indexed line numbers to highlight (subtle row tint). Default []. */
|
|
241
|
+
highlightLines?: number[];
|
|
242
|
+
/** Optional caption rendered above the code (e.g. file name). */
|
|
243
|
+
filename?: string;
|
|
244
|
+
};
|
|
245
|
+
/**
|
|
246
|
+
* Syntax-highlighted code block with copy-to-clipboard.
|
|
247
|
+
* Uses `shiki` lazy-loaded on mount — first paint shows raw monospace, then upgrades.
|
|
248
|
+
*/
|
|
249
|
+
declare const CodeBlock: React__default.ForwardRefExoticComponent<Omit<React__default.HTMLAttributes<HTMLDivElement>, "children"> & {
|
|
250
|
+
/** Source code to render. */
|
|
251
|
+
code: string;
|
|
252
|
+
/** Highlight grammar. Must be in the bundled set. Default 'tsx'. */
|
|
253
|
+
language?: (typeof LANGS)[number];
|
|
254
|
+
/** Theme override. 'auto' (default) follows the closest `dark`/`light` ancestor class. */
|
|
255
|
+
theme?: "light" | "dark" | "auto";
|
|
256
|
+
/** Show 1-indexed line numbers in a gutter. Default false. */
|
|
257
|
+
showLineNumbers?: boolean;
|
|
258
|
+
/** 1-indexed line numbers to highlight (subtle row tint). Default []. */
|
|
259
|
+
highlightLines?: number[];
|
|
260
|
+
/** Optional caption rendered above the code (e.g. file name). */
|
|
261
|
+
filename?: string;
|
|
262
|
+
} & React__default.RefAttributes<HTMLDivElement>>;
|
|
263
|
+
|
|
264
|
+
declare const Collapsible: React$1.ForwardRefExoticComponent<CollapsiblePrimitive.CollapsibleProps & React$1.RefAttributes<HTMLDivElement>>;
|
|
265
|
+
declare const CollapsibleTrigger: React$1.ForwardRefExoticComponent<CollapsiblePrimitive.CollapsibleTriggerProps & React$1.RefAttributes<HTMLButtonElement>>;
|
|
266
|
+
declare const CollapsibleContent: React$1.ForwardRefExoticComponent<CollapsiblePrimitive.CollapsibleContentProps & React$1.RefAttributes<HTMLDivElement>>;
|
|
267
|
+
|
|
268
|
+
declare const Command: React$1.ForwardRefExoticComponent<Omit<{
|
|
269
|
+
children?: React$1.ReactNode;
|
|
270
|
+
} & Pick<Pick<React$1.DetailedHTMLProps<React$1.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "key" | keyof React$1.HTMLAttributes<HTMLDivElement>> & {
|
|
271
|
+
ref?: React$1.Ref<HTMLDivElement>;
|
|
272
|
+
} & {
|
|
273
|
+
asChild?: boolean;
|
|
274
|
+
}, "asChild" | "key" | keyof React$1.HTMLAttributes<HTMLDivElement>> & {
|
|
275
|
+
label?: string;
|
|
276
|
+
shouldFilter?: boolean;
|
|
277
|
+
filter?: (value: string, search: string, keywords?: string[]) => number;
|
|
278
|
+
defaultValue?: string;
|
|
279
|
+
value?: string;
|
|
280
|
+
onValueChange?: (value: string) => void;
|
|
281
|
+
loop?: boolean;
|
|
282
|
+
disablePointerSelection?: boolean;
|
|
283
|
+
vimBindings?: boolean;
|
|
284
|
+
} & React$1.RefAttributes<HTMLDivElement>, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
|
|
285
|
+
declare const CommandDialog: ({ children, ...props }: DialogProps) => react_jsx_runtime.JSX.Element;
|
|
286
|
+
declare const CommandInput: React$1.ForwardRefExoticComponent<Omit<Omit<Pick<Pick<React$1.DetailedHTMLProps<React$1.InputHTMLAttributes<HTMLInputElement>, HTMLInputElement>, "key" | keyof React$1.InputHTMLAttributes<HTMLInputElement>> & {
|
|
287
|
+
ref?: React$1.Ref<HTMLInputElement>;
|
|
288
|
+
} & {
|
|
289
|
+
asChild?: boolean;
|
|
290
|
+
}, "asChild" | "key" | keyof React$1.InputHTMLAttributes<HTMLInputElement>>, "type" | "value" | "onChange"> & {
|
|
291
|
+
value?: string;
|
|
292
|
+
onValueChange?: (search: string) => void;
|
|
293
|
+
} & React$1.RefAttributes<HTMLInputElement>, "ref"> & React$1.RefAttributes<HTMLInputElement>>;
|
|
294
|
+
declare const CommandList: React$1.ForwardRefExoticComponent<Omit<{
|
|
295
|
+
children?: React$1.ReactNode;
|
|
296
|
+
} & Pick<Pick<React$1.DetailedHTMLProps<React$1.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "key" | keyof React$1.HTMLAttributes<HTMLDivElement>> & {
|
|
297
|
+
ref?: React$1.Ref<HTMLDivElement>;
|
|
298
|
+
} & {
|
|
299
|
+
asChild?: boolean;
|
|
300
|
+
}, "asChild" | "key" | keyof React$1.HTMLAttributes<HTMLDivElement>> & {
|
|
301
|
+
label?: string;
|
|
302
|
+
} & React$1.RefAttributes<HTMLDivElement>, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
|
|
303
|
+
declare const CommandEmpty: React$1.ForwardRefExoticComponent<Omit<{
|
|
304
|
+
children?: React$1.ReactNode;
|
|
305
|
+
} & Pick<Pick<React$1.DetailedHTMLProps<React$1.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "key" | keyof React$1.HTMLAttributes<HTMLDivElement>> & {
|
|
306
|
+
ref?: React$1.Ref<HTMLDivElement>;
|
|
307
|
+
} & {
|
|
308
|
+
asChild?: boolean;
|
|
309
|
+
}, "asChild" | "key" | keyof React$1.HTMLAttributes<HTMLDivElement>> & React$1.RefAttributes<HTMLDivElement>, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
|
|
310
|
+
declare const CommandGroup$1: React$1.ForwardRefExoticComponent<Omit<{
|
|
311
|
+
children?: React$1.ReactNode;
|
|
312
|
+
} & Omit<Pick<Pick<React$1.DetailedHTMLProps<React$1.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "key" | keyof React$1.HTMLAttributes<HTMLDivElement>> & {
|
|
313
|
+
ref?: React$1.Ref<HTMLDivElement>;
|
|
314
|
+
} & {
|
|
315
|
+
asChild?: boolean;
|
|
316
|
+
}, "asChild" | "key" | keyof React$1.HTMLAttributes<HTMLDivElement>>, "value" | "heading"> & {
|
|
317
|
+
heading?: React$1.ReactNode;
|
|
318
|
+
value?: string;
|
|
319
|
+
forceMount?: boolean;
|
|
320
|
+
} & React$1.RefAttributes<HTMLDivElement>, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
|
|
321
|
+
declare const CommandSeparator: React$1.ForwardRefExoticComponent<Omit<Pick<Pick<React$1.DetailedHTMLProps<React$1.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "key" | keyof React$1.HTMLAttributes<HTMLDivElement>> & {
|
|
322
|
+
ref?: React$1.Ref<HTMLDivElement>;
|
|
323
|
+
} & {
|
|
324
|
+
asChild?: boolean;
|
|
325
|
+
}, "asChild" | "key" | keyof React$1.HTMLAttributes<HTMLDivElement>> & {
|
|
326
|
+
alwaysRender?: boolean;
|
|
327
|
+
} & React$1.RefAttributes<HTMLDivElement>, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
|
|
328
|
+
declare const CommandItem$2: React$1.ForwardRefExoticComponent<Omit<{
|
|
329
|
+
children?: React$1.ReactNode;
|
|
330
|
+
} & Omit<Pick<Pick<React$1.DetailedHTMLProps<React$1.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "key" | keyof React$1.HTMLAttributes<HTMLDivElement>> & {
|
|
331
|
+
ref?: React$1.Ref<HTMLDivElement>;
|
|
332
|
+
} & {
|
|
333
|
+
asChild?: boolean;
|
|
334
|
+
}, "asChild" | "key" | keyof React$1.HTMLAttributes<HTMLDivElement>>, "disabled" | "value" | "onSelect"> & {
|
|
335
|
+
disabled?: boolean;
|
|
336
|
+
onSelect?: (value: string) => void;
|
|
337
|
+
value?: string;
|
|
338
|
+
keywords?: string[];
|
|
339
|
+
forceMount?: boolean;
|
|
340
|
+
} & React$1.RefAttributes<HTMLDivElement>, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
|
|
341
|
+
declare const CommandShortcut: {
|
|
342
|
+
({ className, ...props }: React$1.HTMLAttributes<HTMLSpanElement>): react_jsx_runtime.JSX.Element;
|
|
343
|
+
displayName: string;
|
|
344
|
+
};
|
|
345
|
+
|
|
346
|
+
type ComparisonProps = React__default.HTMLAttributes<HTMLDivElement> & {
|
|
347
|
+
/** Image URL shown on the LEFT (or TOP for vertical). */
|
|
348
|
+
before: string;
|
|
349
|
+
/** Image URL shown on the RIGHT (or BOTTOM). */
|
|
350
|
+
after: string;
|
|
351
|
+
beforeAlt?: string;
|
|
352
|
+
afterAlt?: string;
|
|
353
|
+
/** Initial split position 0..100. Default 50. */
|
|
354
|
+
defaultValue?: number;
|
|
355
|
+
/** Controlled split position. */
|
|
356
|
+
value?: number;
|
|
357
|
+
onValueChange?: (value: number) => void;
|
|
358
|
+
/** Slider orientation. Default 'horizontal'. */
|
|
359
|
+
orientation?: 'horizontal' | 'vertical';
|
|
360
|
+
/** Optional captions rendered as small badges in the corners. */
|
|
361
|
+
beforeLabel?: string;
|
|
362
|
+
afterLabel?: string;
|
|
363
|
+
};
|
|
364
|
+
/**
|
|
365
|
+
* Before / after image slider. Drag the handle to reveal one image over the other.
|
|
366
|
+
* Pure CSS clip-path — no re-render on drag (just a CSS variable update).
|
|
367
|
+
*/
|
|
368
|
+
declare const Comparison: React__default.ForwardRefExoticComponent<React__default.HTMLAttributes<HTMLDivElement> & {
|
|
369
|
+
/** Image URL shown on the LEFT (or TOP for vertical). */
|
|
370
|
+
before: string;
|
|
371
|
+
/** Image URL shown on the RIGHT (or BOTTOM). */
|
|
372
|
+
after: string;
|
|
373
|
+
beforeAlt?: string;
|
|
374
|
+
afterAlt?: string;
|
|
375
|
+
/** Initial split position 0..100. Default 50. */
|
|
376
|
+
defaultValue?: number;
|
|
377
|
+
/** Controlled split position. */
|
|
378
|
+
value?: number;
|
|
379
|
+
onValueChange?: (value: number) => void;
|
|
380
|
+
/** Slider orientation. Default 'horizontal'. */
|
|
381
|
+
orientation?: "horizontal" | "vertical";
|
|
382
|
+
/** Optional captions rendered as small badges in the corners. */
|
|
383
|
+
beforeLabel?: string;
|
|
384
|
+
afterLabel?: string;
|
|
385
|
+
} & React__default.RefAttributes<HTMLDivElement>>;
|
|
386
|
+
|
|
387
|
+
declare const ContextMenu: React__default.FC<ContextMenuPrimitive.ContextMenuProps>;
|
|
388
|
+
declare const ContextMenuTrigger: React__default.ForwardRefExoticComponent<ContextMenuPrimitive.ContextMenuTriggerProps & React__default.RefAttributes<HTMLSpanElement>>;
|
|
389
|
+
declare const ContextMenuGroup: React__default.ForwardRefExoticComponent<ContextMenuPrimitive.ContextMenuGroupProps & React__default.RefAttributes<HTMLDivElement>>;
|
|
390
|
+
declare const ContextMenuPortal: React__default.FC<ContextMenuPrimitive.ContextMenuPortalProps>;
|
|
391
|
+
declare const ContextMenuSub: React__default.FC<ContextMenuPrimitive.ContextMenuSubProps>;
|
|
392
|
+
declare const ContextMenuRadioGroup: React__default.ForwardRefExoticComponent<ContextMenuPrimitive.ContextMenuRadioGroupProps & React__default.RefAttributes<HTMLDivElement>>;
|
|
393
|
+
declare const ContextMenuContent: React__default.ForwardRefExoticComponent<Omit<ContextMenuPrimitive.ContextMenuContentProps & React__default.RefAttributes<HTMLDivElement>, "ref"> & React__default.RefAttributes<HTMLDivElement>>;
|
|
394
|
+
declare const ContextMenuItem: React__default.ForwardRefExoticComponent<Omit<ContextMenuPrimitive.ContextMenuItemProps & React__default.RefAttributes<HTMLDivElement>, "ref"> & {
|
|
395
|
+
inset?: boolean;
|
|
396
|
+
} & React__default.RefAttributes<HTMLDivElement>>;
|
|
397
|
+
declare const ContextMenuCheckboxItem: React__default.ForwardRefExoticComponent<Omit<ContextMenuPrimitive.ContextMenuCheckboxItemProps & React__default.RefAttributes<HTMLDivElement>, "ref"> & React__default.RefAttributes<HTMLDivElement>>;
|
|
398
|
+
declare const ContextMenuRadioItem: React__default.ForwardRefExoticComponent<Omit<ContextMenuPrimitive.ContextMenuRadioItemProps & React__default.RefAttributes<HTMLDivElement>, "ref"> & React__default.RefAttributes<HTMLDivElement>>;
|
|
399
|
+
declare const ContextMenuLabel: React__default.ForwardRefExoticComponent<Omit<ContextMenuPrimitive.ContextMenuLabelProps & React__default.RefAttributes<HTMLDivElement>, "ref"> & {
|
|
400
|
+
inset?: boolean;
|
|
401
|
+
} & React__default.RefAttributes<HTMLDivElement>>;
|
|
402
|
+
declare const ContextMenuSeparator: React__default.ForwardRefExoticComponent<Omit<ContextMenuPrimitive.ContextMenuSeparatorProps & React__default.RefAttributes<HTMLDivElement>, "ref"> & React__default.RefAttributes<HTMLDivElement>>;
|
|
403
|
+
declare const ContextMenuSubTrigger: React__default.ForwardRefExoticComponent<Omit<ContextMenuPrimitive.ContextMenuSubTriggerProps & React__default.RefAttributes<HTMLDivElement>, "ref"> & {
|
|
404
|
+
inset?: boolean;
|
|
405
|
+
} & React__default.RefAttributes<HTMLDivElement>>;
|
|
406
|
+
declare const ContextMenuSubContent: React__default.ForwardRefExoticComponent<Omit<ContextMenuPrimitive.ContextMenuSubContentProps & React__default.RefAttributes<HTMLDivElement>, "ref"> & React__default.RefAttributes<HTMLDivElement>>;
|
|
407
|
+
declare const ContextMenuShortcut: ({ className, ...props }: React__default.HTMLAttributes<HTMLSpanElement>) => react_jsx_runtime.JSX.Element;
|
|
408
|
+
|
|
409
|
+
declare const Dialog: React__default.FC<DialogPrimitive.DialogProps>;
|
|
410
|
+
declare const DialogTrigger: React__default.ForwardRefExoticComponent<DialogPrimitive.DialogTriggerProps & React__default.RefAttributes<HTMLButtonElement>>;
|
|
411
|
+
declare const DialogPortal: React__default.FC<DialogPrimitive.DialogPortalProps>;
|
|
412
|
+
declare const DialogClose: React__default.ForwardRefExoticComponent<DialogPrimitive.DialogCloseProps & React__default.RefAttributes<HTMLButtonElement>>;
|
|
413
|
+
declare const DialogOverlay: React__default.ForwardRefExoticComponent<Omit<DialogPrimitive.DialogOverlayProps & React__default.RefAttributes<HTMLDivElement>, "ref"> & React__default.RefAttributes<HTMLDivElement>>;
|
|
414
|
+
declare const DialogContent: React__default.ForwardRefExoticComponent<Omit<DialogPrimitive.DialogContentProps & React__default.RefAttributes<HTMLDivElement>, "ref"> & React__default.RefAttributes<HTMLDivElement>>;
|
|
415
|
+
declare const DialogHeader: {
|
|
416
|
+
({ className, ...props }: React__default.HTMLAttributes<HTMLDivElement>): react_jsx_runtime.JSX.Element;
|
|
417
|
+
displayName: string;
|
|
418
|
+
};
|
|
419
|
+
declare const DialogFooter: {
|
|
420
|
+
({ className, ...props }: React__default.HTMLAttributes<HTMLDivElement>): react_jsx_runtime.JSX.Element;
|
|
421
|
+
displayName: string;
|
|
422
|
+
};
|
|
423
|
+
declare const DialogTitle: React__default.ForwardRefExoticComponent<Omit<DialogPrimitive.DialogTitleProps & React__default.RefAttributes<HTMLHeadingElement>, "ref"> & React__default.RefAttributes<HTMLHeadingElement>>;
|
|
424
|
+
declare const DialogDescription: React__default.ForwardRefExoticComponent<Omit<DialogPrimitive.DialogDescriptionProps & React__default.RefAttributes<HTMLParagraphElement>, "ref"> & React__default.RefAttributes<HTMLParagraphElement>>;
|
|
425
|
+
|
|
426
|
+
declare const Drawer: {
|
|
427
|
+
({ shouldScaleBackground, ...props }: React$1.ComponentProps<typeof Drawer$1.Root>): react_jsx_runtime.JSX.Element;
|
|
428
|
+
displayName: string;
|
|
429
|
+
};
|
|
430
|
+
declare const DrawerTrigger: React$1.ForwardRefExoticComponent<DialogPrimitive.DialogTriggerProps & React$1.RefAttributes<HTMLButtonElement>>;
|
|
431
|
+
declare const DrawerPortal: typeof vaul.Portal;
|
|
432
|
+
declare const DrawerClose: React$1.ForwardRefExoticComponent<DialogPrimitive.DialogCloseProps & React$1.RefAttributes<HTMLButtonElement>>;
|
|
433
|
+
declare const DrawerOverlay: React$1.ForwardRefExoticComponent<Omit<Omit<DialogPrimitive.DialogOverlayProps & React$1.RefAttributes<HTMLDivElement>, "ref"> & React$1.RefAttributes<HTMLDivElement>, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
|
|
434
|
+
declare const DrawerContent: React$1.ForwardRefExoticComponent<Omit<Omit<DialogPrimitive.DialogContentProps & React$1.RefAttributes<HTMLDivElement>, "ref"> & React$1.RefAttributes<HTMLDivElement>, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
|
|
435
|
+
declare const DrawerHeader: {
|
|
436
|
+
({ className, ...props }: React$1.HTMLAttributes<HTMLDivElement>): react_jsx_runtime.JSX.Element;
|
|
437
|
+
displayName: string;
|
|
438
|
+
};
|
|
439
|
+
declare const DrawerFooter: {
|
|
440
|
+
({ className, ...props }: React$1.HTMLAttributes<HTMLDivElement>): react_jsx_runtime.JSX.Element;
|
|
441
|
+
displayName: string;
|
|
442
|
+
};
|
|
443
|
+
declare const DrawerTitle: React$1.ForwardRefExoticComponent<Omit<DialogPrimitive.DialogTitleProps & React$1.RefAttributes<HTMLHeadingElement>, "ref"> & React$1.RefAttributes<HTMLHeadingElement>>;
|
|
444
|
+
declare const DrawerDescription: React$1.ForwardRefExoticComponent<Omit<DialogPrimitive.DialogDescriptionProps & React$1.RefAttributes<HTMLParagraphElement>, "ref"> & React$1.RefAttributes<HTMLParagraphElement>>;
|
|
445
|
+
|
|
446
|
+
declare const DropdownMenu: React__default.FC<DropdownMenuPrimitive.DropdownMenuProps>;
|
|
447
|
+
declare const DropdownMenuTrigger: React__default.ForwardRefExoticComponent<DropdownMenuPrimitive.DropdownMenuTriggerProps & React__default.RefAttributes<HTMLButtonElement>>;
|
|
448
|
+
declare const DropdownMenuGroup: React__default.ForwardRefExoticComponent<DropdownMenuPrimitive.DropdownMenuGroupProps & React__default.RefAttributes<HTMLDivElement>>;
|
|
449
|
+
declare const DropdownMenuPortal: React__default.FC<DropdownMenuPrimitive.DropdownMenuPortalProps>;
|
|
450
|
+
declare const DropdownMenuSub: React__default.FC<DropdownMenuPrimitive.DropdownMenuSubProps>;
|
|
451
|
+
declare const DropdownMenuRadioGroup: React__default.ForwardRefExoticComponent<DropdownMenuPrimitive.DropdownMenuRadioGroupProps & React__default.RefAttributes<HTMLDivElement>>;
|
|
452
|
+
declare const DropdownMenuContent: React__default.ForwardRefExoticComponent<Omit<DropdownMenuPrimitive.DropdownMenuContentProps & React__default.RefAttributes<HTMLDivElement>, "ref"> & React__default.RefAttributes<HTMLDivElement>>;
|
|
453
|
+
declare const DropdownMenuItem: React__default.ForwardRefExoticComponent<Omit<DropdownMenuPrimitive.DropdownMenuItemProps & React__default.RefAttributes<HTMLDivElement>, "ref"> & {
|
|
454
|
+
inset?: boolean;
|
|
455
|
+
} & React__default.RefAttributes<HTMLDivElement>>;
|
|
456
|
+
declare const DropdownMenuCheckboxItem: React__default.ForwardRefExoticComponent<Omit<DropdownMenuPrimitive.DropdownMenuCheckboxItemProps & React__default.RefAttributes<HTMLDivElement>, "ref"> & React__default.RefAttributes<HTMLDivElement>>;
|
|
457
|
+
declare const DropdownMenuRadioItem: React__default.ForwardRefExoticComponent<Omit<DropdownMenuPrimitive.DropdownMenuRadioItemProps & React__default.RefAttributes<HTMLDivElement>, "ref"> & React__default.RefAttributes<HTMLDivElement>>;
|
|
458
|
+
declare const DropdownMenuLabel: React__default.ForwardRefExoticComponent<Omit<DropdownMenuPrimitive.DropdownMenuLabelProps & React__default.RefAttributes<HTMLDivElement>, "ref"> & {
|
|
459
|
+
inset?: boolean;
|
|
460
|
+
} & React__default.RefAttributes<HTMLDivElement>>;
|
|
461
|
+
declare const DropdownMenuSeparator: React__default.ForwardRefExoticComponent<Omit<DropdownMenuPrimitive.DropdownMenuSeparatorProps & React__default.RefAttributes<HTMLDivElement>, "ref"> & React__default.RefAttributes<HTMLDivElement>>;
|
|
462
|
+
declare const DropdownMenuSubTrigger: React__default.ForwardRefExoticComponent<Omit<DropdownMenuPrimitive.DropdownMenuSubTriggerProps & React__default.RefAttributes<HTMLDivElement>, "ref"> & {
|
|
463
|
+
inset?: boolean;
|
|
464
|
+
} & React__default.RefAttributes<HTMLDivElement>>;
|
|
465
|
+
declare const DropdownMenuSubContent: React__default.ForwardRefExoticComponent<Omit<DropdownMenuPrimitive.DropdownMenuSubContentProps & React__default.RefAttributes<HTMLDivElement>, "ref"> & React__default.RefAttributes<HTMLDivElement>>;
|
|
466
|
+
declare const DropdownMenuShortcut: {
|
|
467
|
+
({ className, ...props }: React__default.HTMLAttributes<HTMLSpanElement>): react_jsx_runtime.JSX.Element;
|
|
468
|
+
displayName: string;
|
|
469
|
+
};
|
|
470
|
+
|
|
471
|
+
type EmptyCartProps = React__default.HTMLAttributes<HTMLDivElement> & {
|
|
472
|
+
title?: string;
|
|
473
|
+
description?: string;
|
|
474
|
+
/** CTA label — renders a button only when `onAction` is also provided. */
|
|
475
|
+
actionLabel?: string;
|
|
476
|
+
onAction?: () => void;
|
|
477
|
+
/** Override the default cart icon. */
|
|
478
|
+
icon?: React__default.ReactNode;
|
|
479
|
+
};
|
|
480
|
+
/** Bespoke empty-cart state: soft icon chip, message, and a continue-shopping CTA. */
|
|
481
|
+
declare const EmptyCart: React__default.ForwardRefExoticComponent<React__default.HTMLAttributes<HTMLDivElement> & {
|
|
482
|
+
title?: string;
|
|
483
|
+
description?: string;
|
|
484
|
+
/** CTA label — renders a button only when `onAction` is also provided. */
|
|
485
|
+
actionLabel?: string;
|
|
486
|
+
onAction?: () => void;
|
|
487
|
+
/** Override the default cart icon. */
|
|
488
|
+
icon?: React__default.ReactNode;
|
|
489
|
+
} & React__default.RefAttributes<HTMLDivElement>>;
|
|
490
|
+
|
|
491
|
+
declare const HoverCard: React$1.FC<HoverCardPrimitive.HoverCardProps>;
|
|
492
|
+
declare const HoverCardTrigger: React$1.ForwardRefExoticComponent<HoverCardPrimitive.HoverCardTriggerProps & React$1.RefAttributes<HTMLAnchorElement>>;
|
|
493
|
+
declare const HoverCardContent: React$1.ForwardRefExoticComponent<Omit<HoverCardPrimitive.HoverCardContentProps & React$1.RefAttributes<HTMLDivElement>, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
|
|
494
|
+
|
|
495
|
+
declare const InputOTP: React$1.ForwardRefExoticComponent<(Omit<Omit<React$1.InputHTMLAttributes<HTMLInputElement>, "value" | "onChange" | "maxLength" | "onComplete" | "textAlign" | "containerClassName" | "pushPasswordManagerStrategy" | "pasteTransformer" | "noScriptCSSFallback"> & {
|
|
496
|
+
value?: string;
|
|
497
|
+
onChange?: (newValue: string) => unknown;
|
|
498
|
+
maxLength: number;
|
|
499
|
+
textAlign?: "left" | "center" | "right";
|
|
500
|
+
onComplete?: (...args: any[]) => unknown;
|
|
501
|
+
pushPasswordManagerStrategy?: "increase-width" | "none";
|
|
502
|
+
pasteTransformer?: (pasted: string) => string;
|
|
503
|
+
containerClassName?: string;
|
|
504
|
+
noScriptCSSFallback?: string | null;
|
|
505
|
+
} & {
|
|
506
|
+
render: (props: input_otp.RenderProps) => React$1.ReactNode;
|
|
507
|
+
children?: never;
|
|
508
|
+
} & React$1.RefAttributes<HTMLInputElement>, "ref"> | Omit<Omit<React$1.InputHTMLAttributes<HTMLInputElement>, "value" | "onChange" | "maxLength" | "onComplete" | "textAlign" | "containerClassName" | "pushPasswordManagerStrategy" | "pasteTransformer" | "noScriptCSSFallback"> & {
|
|
509
|
+
value?: string;
|
|
510
|
+
onChange?: (newValue: string) => unknown;
|
|
511
|
+
maxLength: number;
|
|
512
|
+
textAlign?: "left" | "center" | "right";
|
|
513
|
+
onComplete?: (...args: any[]) => unknown;
|
|
514
|
+
pushPasswordManagerStrategy?: "increase-width" | "none";
|
|
515
|
+
pasteTransformer?: (pasted: string) => string;
|
|
516
|
+
containerClassName?: string;
|
|
517
|
+
noScriptCSSFallback?: string | null;
|
|
518
|
+
} & {
|
|
519
|
+
render?: never;
|
|
520
|
+
children: React$1.ReactNode;
|
|
521
|
+
} & React$1.RefAttributes<HTMLInputElement>, "ref">) & React$1.RefAttributes<HTMLInputElement>>;
|
|
522
|
+
declare const InputOTPGroup: React$1.ForwardRefExoticComponent<Omit<React$1.DetailedHTMLProps<React$1.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
|
|
523
|
+
declare const InputOTPSlot: React$1.ForwardRefExoticComponent<Omit<React$1.DetailedHTMLProps<React$1.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
|
|
524
|
+
index: number;
|
|
525
|
+
} & React$1.RefAttributes<HTMLDivElement>>;
|
|
526
|
+
declare const InputOTPSeparator: React$1.ForwardRefExoticComponent<Omit<React$1.DetailedHTMLProps<React$1.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
|
|
527
|
+
|
|
528
|
+
type InputProps = React__default.InputHTMLAttributes<HTMLInputElement>;
|
|
529
|
+
declare const Input: React__default.ForwardRefExoticComponent<InputProps & React__default.RefAttributes<HTMLInputElement>>;
|
|
530
|
+
|
|
531
|
+
declare const Label: React$1.ForwardRefExoticComponent<Omit<LabelPrimitive.LabelProps & React$1.RefAttributes<HTMLLabelElement>, "ref"> & VariantProps<(props?: class_variance_authority_types.ClassProp | undefined) => string> & React$1.RefAttributes<HTMLLabelElement>>;
|
|
532
|
+
|
|
533
|
+
interface LogoCarouselProps extends Omit<React__default.HTMLAttributes<HTMLDivElement>, 'children'> {
|
|
534
|
+
/** Logo nodes (text, <img>, <svg>, or any React element). */
|
|
535
|
+
logos: React__default.ReactNode[];
|
|
536
|
+
/** Travel duration in seconds. Lower = faster. Default 30. */
|
|
537
|
+
duration?: number;
|
|
538
|
+
/** Direction of travel. Default 'left'. */
|
|
539
|
+
direction?: 'left' | 'right';
|
|
540
|
+
/** Pause the marquee when hovering. Default true. */
|
|
541
|
+
pauseOnHover?: boolean;
|
|
542
|
+
/** Gap between logos (any valid CSS length). Default '3rem'. */
|
|
543
|
+
gap?: string | number;
|
|
544
|
+
/** Faded edges so logos enter/exit smoothly. Default true. */
|
|
545
|
+
fadeEdges?: boolean;
|
|
546
|
+
}
|
|
547
|
+
declare const LogoCarousel: React__default.ForwardRefExoticComponent<LogoCarouselProps & React__default.RefAttributes<HTMLDivElement>>;
|
|
548
|
+
|
|
549
|
+
declare const SPEED_DURATION: {
|
|
550
|
+
readonly slow: "60s";
|
|
551
|
+
readonly normal: "40s";
|
|
552
|
+
readonly fast: "20s";
|
|
553
|
+
};
|
|
554
|
+
type MarqueeProps = React__default.HTMLAttributes<HTMLDivElement> & {
|
|
555
|
+
/** Children rendered inside the scrolling track. Cloned once internally for a seamless loop. */
|
|
556
|
+
children: React__default.ReactNode;
|
|
557
|
+
/** Animation speed. */
|
|
558
|
+
speed?: keyof typeof SPEED_DURATION;
|
|
559
|
+
/** Scroll direction. */
|
|
560
|
+
direction?: 'left' | 'right';
|
|
561
|
+
/** Pause animation on hover. */
|
|
562
|
+
pauseOnHover?: boolean;
|
|
563
|
+
/** Soft fade mask at left + right edges. */
|
|
564
|
+
fade?: boolean;
|
|
565
|
+
/** Gap between items, e.g. 'gap-4', 'gap-8'. Default 'gap-8'. */
|
|
566
|
+
gap?: string;
|
|
567
|
+
};
|
|
568
|
+
/**
|
|
569
|
+
* Infinite-scroll row of children. Pure CSS keyframes (no JS animation loop).
|
|
570
|
+
* Honors `prefers-reduced-motion` automatically.
|
|
571
|
+
*/
|
|
572
|
+
declare const Marquee: React__default.ForwardRefExoticComponent<React__default.HTMLAttributes<HTMLDivElement> & {
|
|
573
|
+
/** Children rendered inside the scrolling track. Cloned once internally for a seamless loop. */
|
|
574
|
+
children: React__default.ReactNode;
|
|
575
|
+
/** Animation speed. */
|
|
576
|
+
speed?: keyof typeof SPEED_DURATION;
|
|
577
|
+
/** Scroll direction. */
|
|
578
|
+
direction?: "left" | "right";
|
|
579
|
+
/** Pause animation on hover. */
|
|
580
|
+
pauseOnHover?: boolean;
|
|
581
|
+
/** Soft fade mask at left + right edges. */
|
|
582
|
+
fade?: boolean;
|
|
583
|
+
/** Gap between items, e.g. 'gap-4', 'gap-8'. Default 'gap-8'. */
|
|
584
|
+
gap?: string;
|
|
585
|
+
} & React__default.RefAttributes<HTMLDivElement>>;
|
|
586
|
+
|
|
587
|
+
declare function MenubarMenu({ ...props }: React$1.ComponentProps<typeof MenubarPrimitive.Menu>): react_jsx_runtime.JSX.Element;
|
|
588
|
+
declare function MenubarGroup({ ...props }: React$1.ComponentProps<typeof MenubarPrimitive.Group>): react_jsx_runtime.JSX.Element;
|
|
589
|
+
declare function MenubarPortal({ ...props }: React$1.ComponentProps<typeof MenubarPrimitive.Portal>): react_jsx_runtime.JSX.Element;
|
|
590
|
+
declare function MenubarRadioGroup({ ...props }: React$1.ComponentProps<typeof MenubarPrimitive.RadioGroup>): react_jsx_runtime.JSX.Element;
|
|
591
|
+
declare function MenubarSub({ ...props }: React$1.ComponentProps<typeof MenubarPrimitive.Sub>): react_jsx_runtime.JSX.Element;
|
|
592
|
+
declare const Menubar: React$1.ForwardRefExoticComponent<Omit<MenubarPrimitive.MenubarProps & React$1.RefAttributes<HTMLDivElement>, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
|
|
593
|
+
declare const MenubarTrigger: React$1.ForwardRefExoticComponent<Omit<MenubarPrimitive.MenubarTriggerProps & React$1.RefAttributes<HTMLButtonElement>, "ref"> & React$1.RefAttributes<HTMLButtonElement>>;
|
|
594
|
+
declare const MenubarSubTrigger: React$1.ForwardRefExoticComponent<Omit<MenubarPrimitive.MenubarSubTriggerProps & React$1.RefAttributes<HTMLDivElement>, "ref"> & {
|
|
595
|
+
inset?: boolean;
|
|
596
|
+
} & React$1.RefAttributes<HTMLDivElement>>;
|
|
597
|
+
declare const MenubarSubContent: React$1.ForwardRefExoticComponent<Omit<MenubarPrimitive.MenubarSubContentProps & React$1.RefAttributes<HTMLDivElement>, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
|
|
598
|
+
declare const MenubarContent: React$1.ForwardRefExoticComponent<Omit<MenubarPrimitive.MenubarContentProps & React$1.RefAttributes<HTMLDivElement>, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
|
|
599
|
+
declare const MenubarItem: React$1.ForwardRefExoticComponent<Omit<MenubarPrimitive.MenubarItemProps & React$1.RefAttributes<HTMLDivElement>, "ref"> & {
|
|
600
|
+
inset?: boolean;
|
|
601
|
+
} & React$1.RefAttributes<HTMLDivElement>>;
|
|
602
|
+
declare const MenubarCheckboxItem: React$1.ForwardRefExoticComponent<Omit<MenubarPrimitive.MenubarCheckboxItemProps & React$1.RefAttributes<HTMLDivElement>, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
|
|
603
|
+
declare const MenubarRadioItem: React$1.ForwardRefExoticComponent<Omit<MenubarPrimitive.MenubarRadioItemProps & React$1.RefAttributes<HTMLDivElement>, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
|
|
604
|
+
declare const MenubarLabel: React$1.ForwardRefExoticComponent<Omit<MenubarPrimitive.MenubarLabelProps & React$1.RefAttributes<HTMLDivElement>, "ref"> & {
|
|
605
|
+
inset?: boolean;
|
|
606
|
+
} & React$1.RefAttributes<HTMLDivElement>>;
|
|
607
|
+
declare const MenubarSeparator: React$1.ForwardRefExoticComponent<Omit<MenubarPrimitive.MenubarSeparatorProps & React$1.RefAttributes<HTMLDivElement>, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
|
|
608
|
+
declare const MenubarShortcut: {
|
|
609
|
+
({ className, ...props }: React$1.HTMLAttributes<HTMLSpanElement>): react_jsx_runtime.JSX.Element;
|
|
610
|
+
displayname: string;
|
|
611
|
+
};
|
|
612
|
+
|
|
613
|
+
declare const NavigationMenu: React$1.ForwardRefExoticComponent<Omit<NavigationMenuPrimitive.NavigationMenuProps & React$1.RefAttributes<HTMLElement>, "ref"> & React$1.RefAttributes<HTMLElement>>;
|
|
614
|
+
declare const NavigationMenuList: React$1.ForwardRefExoticComponent<Omit<NavigationMenuPrimitive.NavigationMenuListProps & React$1.RefAttributes<HTMLUListElement>, "ref"> & React$1.RefAttributes<HTMLUListElement>>;
|
|
615
|
+
declare const NavigationMenuItem: React$1.ForwardRefExoticComponent<NavigationMenuPrimitive.NavigationMenuItemProps & React$1.RefAttributes<HTMLLIElement>>;
|
|
616
|
+
declare const navigationMenuTriggerStyle: (props?: class_variance_authority_types.ClassProp | undefined) => string;
|
|
617
|
+
declare const NavigationMenuTrigger: React$1.ForwardRefExoticComponent<Omit<NavigationMenuPrimitive.NavigationMenuTriggerProps & React$1.RefAttributes<HTMLButtonElement>, "ref"> & React$1.RefAttributes<HTMLButtonElement>>;
|
|
618
|
+
declare const NavigationMenuContent: React$1.ForwardRefExoticComponent<Omit<NavigationMenuPrimitive.NavigationMenuContentProps & React$1.RefAttributes<HTMLDivElement>, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
|
|
619
|
+
declare const NavigationMenuLink: React$1.ForwardRefExoticComponent<NavigationMenuPrimitive.NavigationMenuLinkProps & React$1.RefAttributes<HTMLAnchorElement>>;
|
|
620
|
+
declare const NavigationMenuViewport: React$1.ForwardRefExoticComponent<Omit<NavigationMenuPrimitive.NavigationMenuViewportProps & React$1.RefAttributes<HTMLDivElement>, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
|
|
621
|
+
declare const NavigationMenuIndicator: React$1.ForwardRefExoticComponent<Omit<NavigationMenuPrimitive.NavigationMenuIndicatorProps & React$1.RefAttributes<HTMLDivElement>, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
|
|
622
|
+
|
|
623
|
+
declare const Pagination: {
|
|
624
|
+
({ className, ...props }: React$1.ComponentProps<"nav">): react_jsx_runtime.JSX.Element;
|
|
625
|
+
displayName: string;
|
|
626
|
+
};
|
|
627
|
+
declare const PaginationContent: React$1.ForwardRefExoticComponent<Omit<React$1.DetailedHTMLProps<React$1.HTMLAttributes<HTMLUListElement>, HTMLUListElement>, "ref"> & React$1.RefAttributes<HTMLUListElement>>;
|
|
628
|
+
declare const PaginationItem: React$1.ForwardRefExoticComponent<Omit<React$1.DetailedHTMLProps<React$1.LiHTMLAttributes<HTMLLIElement>, HTMLLIElement>, "ref"> & React$1.RefAttributes<HTMLLIElement>>;
|
|
629
|
+
type PaginationLinkProps = {
|
|
630
|
+
isActive?: boolean;
|
|
631
|
+
} & Pick<ButtonProps, "size"> & React$1.ComponentProps<"a">;
|
|
632
|
+
declare const PaginationLink: {
|
|
633
|
+
({ className, isActive, size, ...props }: PaginationLinkProps): react_jsx_runtime.JSX.Element;
|
|
634
|
+
displayName: string;
|
|
635
|
+
};
|
|
636
|
+
declare const PaginationPrevious: {
|
|
637
|
+
({ className, ...props }: React$1.ComponentProps<typeof PaginationLink>): react_jsx_runtime.JSX.Element;
|
|
638
|
+
displayName: string;
|
|
639
|
+
};
|
|
640
|
+
declare const PaginationNext: {
|
|
641
|
+
({ className, ...props }: React$1.ComponentProps<typeof PaginationLink>): react_jsx_runtime.JSX.Element;
|
|
642
|
+
displayName: string;
|
|
643
|
+
};
|
|
644
|
+
declare const PaginationEllipsis: {
|
|
645
|
+
({ className, ...props }: React$1.ComponentProps<"span">): react_jsx_runtime.JSX.Element;
|
|
646
|
+
displayName: string;
|
|
647
|
+
};
|
|
648
|
+
|
|
649
|
+
declare const Popover: React__default.FC<PopoverPrimitive.PopoverProps>;
|
|
650
|
+
declare const PopoverTrigger: React__default.ForwardRefExoticComponent<PopoverPrimitive.PopoverTriggerProps & React__default.RefAttributes<HTMLButtonElement>>;
|
|
651
|
+
declare const PopoverAnchor: React__default.ForwardRefExoticComponent<PopoverPrimitive.PopoverAnchorProps & React__default.RefAttributes<HTMLDivElement>>;
|
|
652
|
+
declare const PopoverContent: React__default.ForwardRefExoticComponent<Omit<PopoverPrimitive.PopoverContentProps & React__default.RefAttributes<HTMLDivElement>, "ref"> & React__default.RefAttributes<HTMLDivElement>>;
|
|
653
|
+
|
|
654
|
+
declare const SIZE$1: {
|
|
655
|
+
readonly sm: {
|
|
656
|
+
readonly price: "text-sm";
|
|
657
|
+
readonly compare: "text-xs";
|
|
658
|
+
};
|
|
659
|
+
readonly md: {
|
|
660
|
+
readonly price: "text-lg";
|
|
661
|
+
readonly compare: "text-sm";
|
|
662
|
+
};
|
|
663
|
+
readonly lg: {
|
|
664
|
+
readonly price: "text-2xl";
|
|
665
|
+
readonly compare: "text-base";
|
|
666
|
+
};
|
|
667
|
+
};
|
|
668
|
+
type PriceTagProps = React__default.HTMLAttributes<HTMLSpanElement> & {
|
|
669
|
+
/** Price in minor units (e.g. cents). */
|
|
670
|
+
amount: number;
|
|
671
|
+
/** Original/compare-at price in minor units — renders struck-through when greater than `amount`. */
|
|
672
|
+
compareAt?: number;
|
|
673
|
+
/** ISO 4217 currency code. Default 'USD'. */
|
|
674
|
+
currency?: string;
|
|
675
|
+
/** BCP-47 locale for formatting. Default 'en-US'. */
|
|
676
|
+
locale?: string;
|
|
677
|
+
/** Size scale. Default 'md'. */
|
|
678
|
+
size?: keyof typeof SIZE$1;
|
|
679
|
+
/** Show the "−N%" discount pill when on sale. Default true. */
|
|
680
|
+
showDiscount?: boolean;
|
|
681
|
+
};
|
|
682
|
+
/**
|
|
683
|
+
* Formatted currency price with an optional compare-at strikethrough and discount pill.
|
|
684
|
+
* Amounts are minor units (cents) so there's no float drift.
|
|
685
|
+
*/
|
|
686
|
+
declare const PriceTag: React__default.ForwardRefExoticComponent<React__default.HTMLAttributes<HTMLSpanElement> & {
|
|
687
|
+
/** Price in minor units (e.g. cents). */
|
|
688
|
+
amount: number;
|
|
689
|
+
/** Original/compare-at price in minor units — renders struck-through when greater than `amount`. */
|
|
690
|
+
compareAt?: number;
|
|
691
|
+
/** ISO 4217 currency code. Default 'USD'. */
|
|
692
|
+
currency?: string;
|
|
693
|
+
/** BCP-47 locale for formatting. Default 'en-US'. */
|
|
694
|
+
locale?: string;
|
|
695
|
+
/** Size scale. Default 'md'. */
|
|
696
|
+
size?: keyof typeof SIZE$1;
|
|
697
|
+
/** Show the "−N%" discount pill when on sale. Default true. */
|
|
698
|
+
showDiscount?: boolean;
|
|
699
|
+
} & React__default.RefAttributes<HTMLSpanElement>>;
|
|
700
|
+
|
|
701
|
+
declare const Progress: React__default.ForwardRefExoticComponent<Omit<ProgressPrimitive.ProgressProps & React__default.RefAttributes<HTMLDivElement>, "ref"> & React__default.RefAttributes<HTMLDivElement>>;
|
|
702
|
+
|
|
703
|
+
type QrCodeProps = Omit<React__default.HTMLAttributes<HTMLDivElement>, 'children'> & {
|
|
704
|
+
/** The text or URL to encode. Required — empty string renders an empty state. */
|
|
705
|
+
value: string;
|
|
706
|
+
/** Pixel size of the rendered QR. Default 192. */
|
|
707
|
+
size?: number;
|
|
708
|
+
/** Error correction level. Higher = more redundancy + bigger QR. */
|
|
709
|
+
level?: 'L' | 'M' | 'Q' | 'H';
|
|
710
|
+
/** Foreground color. Default `currentColor` so it inherits the text token. */
|
|
711
|
+
fgColor?: string;
|
|
712
|
+
/** Background color. Default `transparent`. */
|
|
713
|
+
bgColor?: string;
|
|
714
|
+
/** Add quiet-zone margin around the QR (recommended for printing). */
|
|
715
|
+
includeMargin?: boolean;
|
|
716
|
+
/** Optional center logo / image. */
|
|
717
|
+
imageSettings?: {
|
|
718
|
+
src: string;
|
|
719
|
+
height: number;
|
|
720
|
+
width: number;
|
|
721
|
+
excavate: boolean;
|
|
722
|
+
x?: number;
|
|
723
|
+
y?: number;
|
|
724
|
+
opacity?: number;
|
|
725
|
+
crossOrigin?: 'anonymous' | 'use-credentials' | '';
|
|
726
|
+
};
|
|
727
|
+
};
|
|
728
|
+
/**
|
|
729
|
+
* QR code wrapper around `qrcode.react` (SVG output).
|
|
730
|
+
* The default `currentColor` foreground means the QR inherits the surrounding text color,
|
|
731
|
+
* so it adapts to dark/light themes automatically.
|
|
732
|
+
*/
|
|
733
|
+
declare const QrCode: React__default.ForwardRefExoticComponent<Omit<React__default.HTMLAttributes<HTMLDivElement>, "children"> & {
|
|
734
|
+
/** The text or URL to encode. Required — empty string renders an empty state. */
|
|
735
|
+
value: string;
|
|
736
|
+
/** Pixel size of the rendered QR. Default 192. */
|
|
737
|
+
size?: number;
|
|
738
|
+
/** Error correction level. Higher = more redundancy + bigger QR. */
|
|
739
|
+
level?: "L" | "M" | "Q" | "H";
|
|
740
|
+
/** Foreground color. Default `currentColor` so it inherits the text token. */
|
|
741
|
+
fgColor?: string;
|
|
742
|
+
/** Background color. Default `transparent`. */
|
|
743
|
+
bgColor?: string;
|
|
744
|
+
/** Add quiet-zone margin around the QR (recommended for printing). */
|
|
745
|
+
includeMargin?: boolean;
|
|
746
|
+
/** Optional center logo / image. */
|
|
747
|
+
imageSettings?: {
|
|
748
|
+
src: string;
|
|
749
|
+
height: number;
|
|
750
|
+
width: number;
|
|
751
|
+
excavate: boolean;
|
|
752
|
+
x?: number;
|
|
753
|
+
y?: number;
|
|
754
|
+
opacity?: number;
|
|
755
|
+
crossOrigin?: "anonymous" | "use-credentials" | "";
|
|
756
|
+
};
|
|
757
|
+
} & React__default.RefAttributes<HTMLDivElement>>;
|
|
758
|
+
|
|
759
|
+
type QuantityStepperProps = Omit<React__default.HTMLAttributes<HTMLDivElement>, 'onChange'> & {
|
|
760
|
+
/** Controlled quantity. */
|
|
761
|
+
value?: number;
|
|
762
|
+
/** Uncontrolled initial quantity. Default 1. */
|
|
763
|
+
defaultValue?: number;
|
|
764
|
+
/** Fires with the clamped next quantity. */
|
|
765
|
+
onValueChange?: (value: number) => void;
|
|
766
|
+
/** Minimum (decrement disables here). Default 1. */
|
|
767
|
+
min?: number;
|
|
768
|
+
/** Maximum (increment disables here). Default 99. */
|
|
769
|
+
max?: number;
|
|
770
|
+
/** Increment/decrement step. Default 1. */
|
|
771
|
+
step?: number;
|
|
772
|
+
/** Control size. Default 'md'. */
|
|
773
|
+
size?: 'sm' | 'md';
|
|
774
|
+
disabled?: boolean;
|
|
775
|
+
'aria-label'?: string;
|
|
776
|
+
};
|
|
777
|
+
/** Increment / decrement quantity control with min/max clamping. */
|
|
778
|
+
declare const QuantityStepper: React__default.ForwardRefExoticComponent<Omit<React__default.HTMLAttributes<HTMLDivElement>, "onChange"> & {
|
|
779
|
+
/** Controlled quantity. */
|
|
780
|
+
value?: number;
|
|
781
|
+
/** Uncontrolled initial quantity. Default 1. */
|
|
782
|
+
defaultValue?: number;
|
|
783
|
+
/** Fires with the clamped next quantity. */
|
|
784
|
+
onValueChange?: (value: number) => void;
|
|
785
|
+
/** Minimum (decrement disables here). Default 1. */
|
|
786
|
+
min?: number;
|
|
787
|
+
/** Maximum (increment disables here). Default 99. */
|
|
788
|
+
max?: number;
|
|
789
|
+
/** Increment/decrement step. Default 1. */
|
|
790
|
+
step?: number;
|
|
791
|
+
/** Control size. Default 'md'. */
|
|
792
|
+
size?: "sm" | "md";
|
|
793
|
+
disabled?: boolean;
|
|
794
|
+
'aria-label'?: string;
|
|
795
|
+
} & React__default.RefAttributes<HTMLDivElement>>;
|
|
796
|
+
|
|
797
|
+
declare const RadioGroup: React__default.ForwardRefExoticComponent<Omit<RadioGroupPrimitive.RadioGroupProps & React__default.RefAttributes<HTMLDivElement>, "ref"> & React__default.RefAttributes<HTMLDivElement>>;
|
|
798
|
+
declare const RadioGroupItem: React__default.ForwardRefExoticComponent<Omit<RadioGroupPrimitive.RadioGroupItemProps & React__default.RefAttributes<HTMLButtonElement>, "ref"> & React__default.RefAttributes<HTMLButtonElement>>;
|
|
799
|
+
|
|
800
|
+
declare const SIZE: {
|
|
801
|
+
readonly sm: "h-4 w-4";
|
|
802
|
+
readonly md: "h-5 w-5";
|
|
803
|
+
readonly lg: "h-6 w-6";
|
|
804
|
+
};
|
|
805
|
+
type RatingProps = Omit<React__default.HTMLAttributes<HTMLDivElement>, 'onChange'> & {
|
|
806
|
+
/** Controlled value (0..max, supports halves like 3.5). */
|
|
807
|
+
value?: number;
|
|
808
|
+
/** Uncontrolled initial value. */
|
|
809
|
+
defaultValue?: number;
|
|
810
|
+
/** Fires on user change. */
|
|
811
|
+
onValueChange?: (value: number) => void;
|
|
812
|
+
/** Maximum stars. Default 5. */
|
|
813
|
+
max?: number;
|
|
814
|
+
/** Star size. Default 'md'. */
|
|
815
|
+
size?: keyof typeof SIZE;
|
|
816
|
+
/** Disable interaction (display-only). */
|
|
817
|
+
readOnly?: boolean;
|
|
818
|
+
/** Allow 0.5 increments. Default true. */
|
|
819
|
+
allowHalf?: boolean;
|
|
820
|
+
/** Override empty-state icon. */
|
|
821
|
+
emptyIcon?: React__default.ReactNode;
|
|
822
|
+
/** Override filled-state icon. */
|
|
823
|
+
filledIcon?: React__default.ReactNode;
|
|
824
|
+
/** Accessible label. Default "Rating". */
|
|
825
|
+
'aria-label'?: string;
|
|
826
|
+
};
|
|
827
|
+
/**
|
|
828
|
+
* Interactive 0..N star rating with half-step support.
|
|
829
|
+
* Keyboard: Arrow Left/Right ±0.5 (±1 if allowHalf=false), Home/End jump to 0/max.
|
|
830
|
+
*/
|
|
831
|
+
declare const Rating: React__default.ForwardRefExoticComponent<Omit<React__default.HTMLAttributes<HTMLDivElement>, "onChange"> & {
|
|
832
|
+
/** Controlled value (0..max, supports halves like 3.5). */
|
|
833
|
+
value?: number;
|
|
834
|
+
/** Uncontrolled initial value. */
|
|
835
|
+
defaultValue?: number;
|
|
836
|
+
/** Fires on user change. */
|
|
837
|
+
onValueChange?: (value: number) => void;
|
|
838
|
+
/** Maximum stars. Default 5. */
|
|
839
|
+
max?: number;
|
|
840
|
+
/** Star size. Default 'md'. */
|
|
841
|
+
size?: keyof typeof SIZE;
|
|
842
|
+
/** Disable interaction (display-only). */
|
|
843
|
+
readOnly?: boolean;
|
|
844
|
+
/** Allow 0.5 increments. Default true. */
|
|
845
|
+
allowHalf?: boolean;
|
|
846
|
+
/** Override empty-state icon. */
|
|
847
|
+
emptyIcon?: React__default.ReactNode;
|
|
848
|
+
/** Override filled-state icon. */
|
|
849
|
+
filledIcon?: React__default.ReactNode;
|
|
850
|
+
/** Accessible label. Default "Rating". */
|
|
851
|
+
'aria-label'?: string;
|
|
852
|
+
} & React__default.RefAttributes<HTMLDivElement>>;
|
|
853
|
+
|
|
854
|
+
declare const ResizablePanelGroup: ({ className, ...props }: React.ComponentProps<typeof Group>) => react_jsx_runtime.JSX.Element;
|
|
855
|
+
declare const ResizablePanel: typeof Panel;
|
|
856
|
+
declare const ResizableHandle: ({ withHandle, className, ...props }: React.ComponentProps<typeof Separator$1> & {
|
|
857
|
+
withHandle?: boolean;
|
|
858
|
+
}) => react_jsx_runtime.JSX.Element;
|
|
859
|
+
|
|
860
|
+
declare const ScrollArea: React$1.ForwardRefExoticComponent<Omit<ScrollAreaPrimitive.ScrollAreaProps & React$1.RefAttributes<HTMLDivElement>, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
|
|
861
|
+
declare const ScrollBar: React$1.ForwardRefExoticComponent<Omit<ScrollAreaPrimitive.ScrollAreaScrollbarProps & React$1.RefAttributes<HTMLDivElement>, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
|
|
862
|
+
|
|
863
|
+
declare const Select: React__default.FC<SelectPrimitive.SelectProps>;
|
|
864
|
+
declare const SelectGroup: React__default.ForwardRefExoticComponent<SelectPrimitive.SelectGroupProps & React__default.RefAttributes<HTMLDivElement>>;
|
|
865
|
+
declare const SelectValue: React__default.ForwardRefExoticComponent<SelectPrimitive.SelectValueProps & React__default.RefAttributes<HTMLSpanElement>>;
|
|
866
|
+
declare const SelectTrigger: React__default.ForwardRefExoticComponent<Omit<SelectPrimitive.SelectTriggerProps & React__default.RefAttributes<HTMLButtonElement>, "ref"> & React__default.RefAttributes<HTMLButtonElement>>;
|
|
867
|
+
declare const SelectScrollUpButton: React__default.ForwardRefExoticComponent<Omit<SelectPrimitive.SelectScrollUpButtonProps & React__default.RefAttributes<HTMLDivElement>, "ref"> & React__default.RefAttributes<HTMLDivElement>>;
|
|
868
|
+
declare const SelectScrollDownButton: React__default.ForwardRefExoticComponent<Omit<SelectPrimitive.SelectScrollDownButtonProps & React__default.RefAttributes<HTMLDivElement>, "ref"> & React__default.RefAttributes<HTMLDivElement>>;
|
|
869
|
+
declare const SelectContent: React__default.ForwardRefExoticComponent<Omit<SelectPrimitive.SelectContentProps & React__default.RefAttributes<HTMLDivElement>, "ref"> & React__default.RefAttributes<HTMLDivElement>>;
|
|
870
|
+
declare const SelectLabel: React__default.ForwardRefExoticComponent<Omit<SelectPrimitive.SelectLabelProps & React__default.RefAttributes<HTMLDivElement>, "ref"> & React__default.RefAttributes<HTMLDivElement>>;
|
|
871
|
+
declare const SelectItem: React__default.ForwardRefExoticComponent<Omit<SelectPrimitive.SelectItemProps & React__default.RefAttributes<HTMLDivElement>, "ref"> & React__default.RefAttributes<HTMLDivElement>>;
|
|
872
|
+
declare const SelectSeparator: React__default.ForwardRefExoticComponent<Omit<SelectPrimitive.SelectSeparatorProps & React__default.RefAttributes<HTMLDivElement>, "ref"> & React__default.RefAttributes<HTMLDivElement>>;
|
|
873
|
+
|
|
874
|
+
declare const Separator: React__default.ForwardRefExoticComponent<Omit<SeparatorPrimitive.SeparatorProps & React__default.RefAttributes<HTMLDivElement>, "ref"> & React__default.RefAttributes<HTMLDivElement>>;
|
|
875
|
+
|
|
876
|
+
declare const Sheet: React__default.FC<DialogPrimitive.DialogProps>;
|
|
877
|
+
declare const SheetTrigger: React__default.ForwardRefExoticComponent<DialogPrimitive.DialogTriggerProps & React__default.RefAttributes<HTMLButtonElement>>;
|
|
878
|
+
declare const SheetClose: React__default.ForwardRefExoticComponent<DialogPrimitive.DialogCloseProps & React__default.RefAttributes<HTMLButtonElement>>;
|
|
879
|
+
declare const SheetPortal: React__default.FC<DialogPrimitive.DialogPortalProps>;
|
|
880
|
+
declare const SheetOverlay: React__default.ForwardRefExoticComponent<Omit<DialogPrimitive.DialogOverlayProps & React__default.RefAttributes<HTMLDivElement>, "ref"> & React__default.RefAttributes<HTMLDivElement>>;
|
|
881
|
+
declare const sheetVariants: (props?: ({
|
|
882
|
+
side?: "left" | "top" | "right" | "bottom" | null | undefined;
|
|
883
|
+
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
884
|
+
interface SheetContentProps extends React__default.ComponentPropsWithoutRef<typeof DialogPrimitive.Content>, VariantProps<typeof sheetVariants> {
|
|
885
|
+
}
|
|
886
|
+
declare const SheetContent: React__default.ForwardRefExoticComponent<SheetContentProps & React__default.RefAttributes<HTMLDivElement>>;
|
|
887
|
+
declare const SheetHeader: ({ className, ...props }: React__default.HTMLAttributes<HTMLDivElement>) => react_jsx_runtime.JSX.Element;
|
|
888
|
+
declare const SheetFooter: ({ className, ...props }: React__default.HTMLAttributes<HTMLDivElement>) => react_jsx_runtime.JSX.Element;
|
|
889
|
+
declare const SheetTitle: React__default.ForwardRefExoticComponent<Omit<DialogPrimitive.DialogTitleProps & React__default.RefAttributes<HTMLHeadingElement>, "ref"> & React__default.RefAttributes<HTMLHeadingElement>>;
|
|
890
|
+
declare const SheetDescription: React__default.ForwardRefExoticComponent<Omit<DialogPrimitive.DialogDescriptionProps & React__default.RefAttributes<HTMLParagraphElement>, "ref"> & React__default.RefAttributes<HTMLParagraphElement>>;
|
|
891
|
+
|
|
892
|
+
declare function Skeleton({ className, ...props }: React__default.HTMLAttributes<HTMLDivElement>): react_jsx_runtime.JSX.Element;
|
|
893
|
+
|
|
894
|
+
declare const Slider: React__default.ForwardRefExoticComponent<Omit<SliderPrimitive.SliderProps & React__default.RefAttributes<HTMLSpanElement>, "ref"> & React__default.RefAttributes<HTMLSpanElement>>;
|
|
895
|
+
|
|
896
|
+
declare function Spinner({ className, ...props }: React.ComponentProps<"svg">): react_jsx_runtime.JSX.Element;
|
|
897
|
+
|
|
898
|
+
declare const Switch: React__default.ForwardRefExoticComponent<Omit<SwitchPrimitive.SwitchProps & React__default.RefAttributes<HTMLButtonElement>, "ref"> & React__default.RefAttributes<HTMLButtonElement>>;
|
|
899
|
+
|
|
900
|
+
declare const Table: React$1.ForwardRefExoticComponent<React$1.HTMLAttributes<HTMLTableElement> & React$1.RefAttributes<HTMLTableElement>>;
|
|
901
|
+
declare const TableHeader: React$1.ForwardRefExoticComponent<React$1.HTMLAttributes<HTMLTableSectionElement> & React$1.RefAttributes<HTMLTableSectionElement>>;
|
|
902
|
+
declare const TableBody: React$1.ForwardRefExoticComponent<React$1.HTMLAttributes<HTMLTableSectionElement> & React$1.RefAttributes<HTMLTableSectionElement>>;
|
|
903
|
+
declare const TableFooter: React$1.ForwardRefExoticComponent<React$1.HTMLAttributes<HTMLTableSectionElement> & React$1.RefAttributes<HTMLTableSectionElement>>;
|
|
904
|
+
declare const TableRow: React$1.ForwardRefExoticComponent<React$1.HTMLAttributes<HTMLTableRowElement> & React$1.RefAttributes<HTMLTableRowElement>>;
|
|
905
|
+
declare const TableHead: React$1.ForwardRefExoticComponent<React$1.ThHTMLAttributes<HTMLTableCellElement> & React$1.RefAttributes<HTMLTableCellElement>>;
|
|
906
|
+
declare const TableCell: React$1.ForwardRefExoticComponent<React$1.TdHTMLAttributes<HTMLTableCellElement> & React$1.RefAttributes<HTMLTableCellElement>>;
|
|
907
|
+
declare const TableCaption: React$1.ForwardRefExoticComponent<React$1.HTMLAttributes<HTMLTableCaptionElement> & React$1.RefAttributes<HTMLTableCaptionElement>>;
|
|
908
|
+
|
|
909
|
+
declare const Tabs: React__default.ForwardRefExoticComponent<TabsPrimitive.TabsProps & React__default.RefAttributes<HTMLDivElement>>;
|
|
910
|
+
declare const TabsList: React__default.ForwardRefExoticComponent<Omit<TabsPrimitive.TabsListProps & React__default.RefAttributes<HTMLDivElement>, "ref"> & React__default.RefAttributes<HTMLDivElement>>;
|
|
911
|
+
declare const TabsTrigger: React__default.ForwardRefExoticComponent<Omit<TabsPrimitive.TabsTriggerProps & React__default.RefAttributes<HTMLButtonElement>, "ref"> & React__default.RefAttributes<HTMLButtonElement>>;
|
|
912
|
+
declare const TabsContent: React__default.ForwardRefExoticComponent<Omit<TabsPrimitive.TabsContentProps & React__default.RefAttributes<HTMLDivElement>, "ref"> & React__default.RefAttributes<HTMLDivElement>>;
|
|
913
|
+
|
|
914
|
+
type TextareaProps = React__default.TextareaHTMLAttributes<HTMLTextAreaElement>;
|
|
915
|
+
declare const Textarea: React__default.ForwardRefExoticComponent<TextareaProps & React__default.RefAttributes<HTMLTextAreaElement>>;
|
|
916
|
+
|
|
917
|
+
interface TextureCardProps extends React$1.HTMLAttributes<HTMLDivElement> {
|
|
918
|
+
padding?: boolean;
|
|
919
|
+
}
|
|
920
|
+
declare const TextureCard: React$1.ForwardRefExoticComponent<TextureCardProps & React$1.RefAttributes<HTMLDivElement>>;
|
|
921
|
+
declare const TextureCardHeader: React$1.ForwardRefExoticComponent<React$1.HTMLAttributes<HTMLDivElement> & React$1.RefAttributes<HTMLDivElement>>;
|
|
922
|
+
declare const TextureCardTitle: React$1.ForwardRefExoticComponent<React$1.HTMLAttributes<HTMLHeadingElement> & React$1.RefAttributes<HTMLParagraphElement>>;
|
|
923
|
+
declare const TextureCardDescription: React$1.ForwardRefExoticComponent<React$1.HTMLAttributes<HTMLParagraphElement> & React$1.RefAttributes<HTMLParagraphElement>>;
|
|
924
|
+
|
|
925
|
+
declare const ToggleGroup: React$1.ForwardRefExoticComponent<((Omit<ToggleGroupPrimitive.ToggleGroupSingleProps & React$1.RefAttributes<HTMLDivElement>, "ref"> | Omit<ToggleGroupPrimitive.ToggleGroupMultipleProps & React$1.RefAttributes<HTMLDivElement>, "ref">) & VariantProps<(props?: ({
|
|
926
|
+
variant?: "default" | "outline" | null | undefined;
|
|
927
|
+
size?: "default" | "sm" | "lg" | null | undefined;
|
|
928
|
+
} & class_variance_authority_types.ClassProp) | undefined) => string>) & React$1.RefAttributes<HTMLDivElement>>;
|
|
929
|
+
declare const ToggleGroupItem: React$1.ForwardRefExoticComponent<Omit<ToggleGroupPrimitive.ToggleGroupItemProps & React$1.RefAttributes<HTMLButtonElement>, "ref"> & VariantProps<(props?: ({
|
|
930
|
+
variant?: "default" | "outline" | null | undefined;
|
|
931
|
+
size?: "default" | "sm" | "lg" | null | undefined;
|
|
932
|
+
} & class_variance_authority_types.ClassProp) | undefined) => string> & React$1.RefAttributes<HTMLButtonElement>>;
|
|
933
|
+
|
|
934
|
+
declare const toggleVariants: (props?: ({
|
|
935
|
+
variant?: "default" | "outline" | null | undefined;
|
|
936
|
+
size?: "default" | "sm" | "lg" | null | undefined;
|
|
937
|
+
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
938
|
+
declare const Toggle: React$1.ForwardRefExoticComponent<Omit<TogglePrimitive.ToggleProps & React$1.RefAttributes<HTMLButtonElement>, "ref"> & VariantProps<(props?: ({
|
|
939
|
+
variant?: "default" | "outline" | null | undefined;
|
|
940
|
+
size?: "default" | "sm" | "lg" | null | undefined;
|
|
941
|
+
} & class_variance_authority_types.ClassProp) | undefined) => string> & React$1.RefAttributes<HTMLButtonElement>>;
|
|
942
|
+
|
|
943
|
+
declare const TooltipProvider: typeof TooltipPrimitive.Provider;
|
|
944
|
+
declare const Tooltip: typeof TooltipPrimitive.Root;
|
|
945
|
+
declare const TooltipTrigger: typeof TooltipPrimitive.Trigger;
|
|
946
|
+
declare const TooltipContent: React__default.ForwardRefExoticComponent<Omit<TooltipPrimitive.TooltipContentProps & React__default.RefAttributes<HTMLDivElement>, "ref"> & React__default.RefAttributes<HTMLDivElement>>;
|
|
947
|
+
|
|
948
|
+
type VariantOption = {
|
|
949
|
+
value: string;
|
|
950
|
+
label: string;
|
|
951
|
+
/** Optional color swatch — a CSS color from your product data (not a design token). */
|
|
952
|
+
swatch?: string;
|
|
953
|
+
disabled?: boolean;
|
|
954
|
+
};
|
|
955
|
+
type VariantPickerProps = Omit<React__default.HTMLAttributes<HTMLDivElement>, 'onChange'> & {
|
|
956
|
+
/** Group label, e.g. "Grind" or "Size". */
|
|
957
|
+
label?: string;
|
|
958
|
+
options: VariantOption[];
|
|
959
|
+
/** Controlled selected value. */
|
|
960
|
+
value?: string;
|
|
961
|
+
/** Uncontrolled initial value. */
|
|
962
|
+
defaultValue?: string;
|
|
963
|
+
onValueChange?: (value: string) => void;
|
|
964
|
+
};
|
|
965
|
+
/** Single-select product-option picker (grind, size, color) with selected + out-of-stock states. */
|
|
966
|
+
declare const VariantPicker: React__default.ForwardRefExoticComponent<Omit<React__default.HTMLAttributes<HTMLDivElement>, "onChange"> & {
|
|
967
|
+
/** Group label, e.g. "Grind" or "Size". */
|
|
968
|
+
label?: string;
|
|
969
|
+
options: VariantOption[];
|
|
970
|
+
/** Controlled selected value. */
|
|
971
|
+
value?: string;
|
|
972
|
+
/** Uncontrolled initial value. */
|
|
973
|
+
defaultValue?: string;
|
|
974
|
+
onValueChange?: (value: string) => void;
|
|
975
|
+
} & React__default.RefAttributes<HTMLDivElement>>;
|
|
976
|
+
|
|
977
|
+
declare const bannerVariants: (props?: ({
|
|
978
|
+
variant?: "info" | "success" | "warning" | "error" | "neutral" | null | undefined;
|
|
979
|
+
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
980
|
+
interface BannerAction {
|
|
981
|
+
label: string;
|
|
982
|
+
onClick: () => void;
|
|
983
|
+
icon?: boolean;
|
|
984
|
+
}
|
|
985
|
+
interface BannerProps extends VariantProps<typeof bannerVariants> {
|
|
986
|
+
title?: string;
|
|
987
|
+
description?: string;
|
|
988
|
+
dismissible?: boolean;
|
|
989
|
+
onDismiss?: () => void;
|
|
990
|
+
action?: BannerAction;
|
|
991
|
+
icon?: boolean;
|
|
992
|
+
className?: string;
|
|
993
|
+
children?: React__default.ReactNode;
|
|
994
|
+
}
|
|
995
|
+
declare function Banner({ variant, title, description, dismissible, onDismiss, action, icon, className, children, }: BannerProps): react_jsx_runtime.JSX.Element | null;
|
|
996
|
+
|
|
997
|
+
interface BreadcrumbItemProps {
|
|
998
|
+
href?: string;
|
|
999
|
+
label: string;
|
|
1000
|
+
active?: boolean;
|
|
1001
|
+
className?: string;
|
|
1002
|
+
}
|
|
1003
|
+
declare function BreadcrumbItem({ href, label, active, className }: BreadcrumbItemProps): react_jsx_runtime.JSX.Element;
|
|
1004
|
+
declare function BreadcrumbPage({ children, className }: {
|
|
1005
|
+
children: React__default.ReactNode;
|
|
1006
|
+
className?: string;
|
|
1007
|
+
}): react_jsx_runtime.JSX.Element;
|
|
1008
|
+
declare function BreadcrumbSeparator({ className }: {
|
|
1009
|
+
className?: string;
|
|
1010
|
+
}): react_jsx_runtime.JSX.Element;
|
|
1011
|
+
interface BreadcrumbProps {
|
|
1012
|
+
children: React__default.ReactNode;
|
|
1013
|
+
className?: string;
|
|
1014
|
+
}
|
|
1015
|
+
declare function Breadcrumb({ children, className }: BreadcrumbProps): react_jsx_runtime.JSX.Element;
|
|
1016
|
+
|
|
1017
|
+
interface CommandItemProps {
|
|
1018
|
+
icon?: React__default.ReactNode;
|
|
1019
|
+
label: string;
|
|
1020
|
+
description?: string;
|
|
1021
|
+
shortcut?: string;
|
|
1022
|
+
active?: boolean;
|
|
1023
|
+
onClick?: () => void;
|
|
1024
|
+
className?: string;
|
|
1025
|
+
}
|
|
1026
|
+
declare function CommandItem$1({ icon, label, description, shortcut, active, onClick, className }: CommandItemProps): react_jsx_runtime.JSX.Element;
|
|
1027
|
+
|
|
1028
|
+
interface DataGridProps$1<T extends object> {
|
|
1029
|
+
columns: ColumnDef<T, any>[];
|
|
1030
|
+
data: T[];
|
|
1031
|
+
onDataChange?: (data: T[]) => void;
|
|
1032
|
+
editable?: boolean;
|
|
1033
|
+
className?: string;
|
|
1034
|
+
}
|
|
1035
|
+
declare function DataGrid$1<T extends object>({ columns, data: initialData, onDataChange, editable, className }: DataGridProps$1<T>): react_jsx_runtime.JSX.Element;
|
|
1036
|
+
|
|
1037
|
+
interface DataTableProps<T> {
|
|
1038
|
+
columns: ColumnDef<T>[];
|
|
1039
|
+
data: T[];
|
|
1040
|
+
pageSize?: number;
|
|
1041
|
+
searchable?: boolean;
|
|
1042
|
+
searchColumn?: string;
|
|
1043
|
+
loading?: boolean;
|
|
1044
|
+
}
|
|
1045
|
+
declare function DataTableColumnHeader({ column, title }: {
|
|
1046
|
+
column: any;
|
|
1047
|
+
title: string;
|
|
1048
|
+
}): react_jsx_runtime.JSX.Element;
|
|
1049
|
+
declare function DataTablePagination({ table }: {
|
|
1050
|
+
table: any;
|
|
1051
|
+
}): react_jsx_runtime.JSX.Element;
|
|
1052
|
+
declare function DataTableToolbar({ table, searchColumn }: {
|
|
1053
|
+
table: any;
|
|
1054
|
+
searchColumn?: string;
|
|
1055
|
+
}): react_jsx_runtime.JSX.Element | null;
|
|
1056
|
+
declare function DataTable<T>({ columns, data, pageSize, searchable, searchColumn, loading }: DataTableProps<T>): react_jsx_runtime.JSX.Element;
|
|
1057
|
+
|
|
1058
|
+
declare const EmptyStateIcon: React__default.ForwardRefExoticComponent<React__default.HTMLAttributes<HTMLDivElement> & React__default.RefAttributes<HTMLDivElement>>;
|
|
1059
|
+
interface EmptyStateProps {
|
|
1060
|
+
icon?: React__default.ReactNode;
|
|
1061
|
+
title: string;
|
|
1062
|
+
description?: string;
|
|
1063
|
+
action?: {
|
|
1064
|
+
label: string;
|
|
1065
|
+
onClick: () => void;
|
|
1066
|
+
};
|
|
1067
|
+
secondaryAction?: {
|
|
1068
|
+
label: string;
|
|
1069
|
+
onClick: () => void;
|
|
1070
|
+
};
|
|
1071
|
+
size?: 'sm' | 'default' | 'lg';
|
|
1072
|
+
className?: string;
|
|
1073
|
+
}
|
|
1074
|
+
declare function EmptyState({ icon, title, description, action, secondaryAction, size, className, }: EmptyStateProps): react_jsx_runtime.JSX.Element;
|
|
1075
|
+
|
|
1076
|
+
interface HotkeyBadgeProps {
|
|
1077
|
+
children: React__default.ReactNode;
|
|
1078
|
+
className?: string;
|
|
1079
|
+
}
|
|
1080
|
+
declare function HotkeyBadge({ children, className }: HotkeyBadgeProps): react_jsx_runtime.JSX.Element;
|
|
1081
|
+
interface HotkeysProps {
|
|
1082
|
+
keys: string[];
|
|
1083
|
+
className?: string;
|
|
1084
|
+
}
|
|
1085
|
+
declare function Hotkeys({ keys, className }: HotkeysProps): react_jsx_runtime.JSX.Element;
|
|
1086
|
+
|
|
1087
|
+
type IconBadgeColor = 'default' | 'primary' | 'success' | 'warning' | 'error' | 'purple';
|
|
1088
|
+
type IconBadgeSize = 'sm' | 'md' | 'lg';
|
|
1089
|
+
interface IconBadgeProps {
|
|
1090
|
+
icon: React__default.ReactNode;
|
|
1091
|
+
color?: IconBadgeColor;
|
|
1092
|
+
size?: IconBadgeSize;
|
|
1093
|
+
className?: string;
|
|
1094
|
+
}
|
|
1095
|
+
declare function IconBadge({ icon, color, size, className }: IconBadgeProps): react_jsx_runtime.JSX.Element;
|
|
1096
|
+
|
|
1097
|
+
interface LoadingOverlayProps {
|
|
1098
|
+
loading: boolean;
|
|
1099
|
+
text?: string;
|
|
1100
|
+
fullPage?: boolean;
|
|
1101
|
+
children?: React__default.ReactNode;
|
|
1102
|
+
className?: string;
|
|
1103
|
+
}
|
|
1104
|
+
declare function LoadingOverlay({ loading, text, fullPage, children, className }: LoadingOverlayProps): react_jsx_runtime.JSX.Element | null;
|
|
1105
|
+
|
|
1106
|
+
interface PersonaProps {
|
|
1107
|
+
name: string;
|
|
1108
|
+
subtitle?: string;
|
|
1109
|
+
src?: string;
|
|
1110
|
+
size?: 'sm' | 'md' | 'lg';
|
|
1111
|
+
badge?: React__default.ReactNode;
|
|
1112
|
+
className?: string;
|
|
1113
|
+
}
|
|
1114
|
+
declare function Persona({ name, subtitle, src, size, badge, className }: PersonaProps): react_jsx_runtime.JSX.Element;
|
|
1115
|
+
|
|
1116
|
+
interface PropertyListProps extends React__default.HTMLAttributes<HTMLDListElement> {
|
|
1117
|
+
}
|
|
1118
|
+
declare const PropertyList: React__default.ForwardRefExoticComponent<PropertyListProps & React__default.RefAttributes<HTMLDListElement>>;
|
|
1119
|
+
interface PropertyItemProps {
|
|
1120
|
+
label: string;
|
|
1121
|
+
value: React__default.ReactNode;
|
|
1122
|
+
orientation?: 'horizontal' | 'vertical';
|
|
1123
|
+
className?: string;
|
|
1124
|
+
}
|
|
1125
|
+
declare function PropertyItem({ label, value, orientation, className }: PropertyItemProps): react_jsx_runtime.JSX.Element;
|
|
1126
|
+
|
|
1127
|
+
interface StatProps {
|
|
1128
|
+
label: string;
|
|
1129
|
+
value: string | number;
|
|
1130
|
+
trend?: number;
|
|
1131
|
+
trendLabel?: string;
|
|
1132
|
+
icon?: React__default.ReactNode;
|
|
1133
|
+
description?: string;
|
|
1134
|
+
className?: string;
|
|
1135
|
+
}
|
|
1136
|
+
declare function Stat({ label, value, trend, trendLabel, icon, description, className }: StatProps): react_jsx_runtime.JSX.Element;
|
|
1137
|
+
interface StatGroupProps extends React__default.HTMLAttributes<HTMLDivElement> {
|
|
1138
|
+
}
|
|
1139
|
+
declare function StatGroup({ className, ...props }: StatGroupProps): react_jsx_runtime.JSX.Element;
|
|
1140
|
+
|
|
1141
|
+
interface StepDef {
|
|
1142
|
+
title: string;
|
|
1143
|
+
description?: string;
|
|
1144
|
+
}
|
|
1145
|
+
interface StepperStepProps extends StepDef {
|
|
1146
|
+
index: number;
|
|
1147
|
+
current: number;
|
|
1148
|
+
total: number;
|
|
1149
|
+
}
|
|
1150
|
+
declare function StepperStep({ index, current, total, title, description }: StepperStepProps): react_jsx_runtime.JSX.Element;
|
|
1151
|
+
interface StepperProps {
|
|
1152
|
+
currentStep: number;
|
|
1153
|
+
steps: StepDef[];
|
|
1154
|
+
className?: string;
|
|
1155
|
+
/** 'horizontal' (default) | 'vertical' — vertical stacks steps as rows */
|
|
1156
|
+
direction?: 'horizontal' | 'vertical';
|
|
1157
|
+
}
|
|
1158
|
+
declare function Stepper({ currentStep, steps, className, direction }: StepperProps): react_jsx_runtime.JSX.Element;
|
|
1159
|
+
|
|
1160
|
+
interface StructuredListSectionProps {
|
|
1161
|
+
title?: string;
|
|
1162
|
+
children: React__default.ReactNode;
|
|
1163
|
+
className?: string;
|
|
1164
|
+
}
|
|
1165
|
+
declare function StructuredListSection({ title, children, className }: StructuredListSectionProps): react_jsx_runtime.JSX.Element;
|
|
1166
|
+
interface StructuredListItemProps {
|
|
1167
|
+
left?: React__default.ReactNode;
|
|
1168
|
+
title: string;
|
|
1169
|
+
description?: string;
|
|
1170
|
+
right?: React__default.ReactNode;
|
|
1171
|
+
onClick?: () => void;
|
|
1172
|
+
className?: string;
|
|
1173
|
+
}
|
|
1174
|
+
declare function StructuredListItem({ left, title, description, right, onClick, className }: StructuredListItemProps): react_jsx_runtime.JSX.Element;
|
|
1175
|
+
interface StructuredListProps extends React__default.HTMLAttributes<HTMLDivElement> {
|
|
1176
|
+
}
|
|
1177
|
+
declare const StructuredList: React__default.ForwardRefExoticComponent<StructuredListProps & React__default.RefAttributes<HTMLDivElement>>;
|
|
1178
|
+
|
|
1179
|
+
type TimelineVariant = 'default' | 'success' | 'error' | 'warning';
|
|
1180
|
+
interface TimelineContentProps extends React__default.HTMLAttributes<HTMLDivElement> {
|
|
1181
|
+
}
|
|
1182
|
+
declare const TimelineContent: React__default.ForwardRefExoticComponent<TimelineContentProps & React__default.RefAttributes<HTMLDivElement>>;
|
|
1183
|
+
declare function TimelineConnector({ className }: {
|
|
1184
|
+
className?: string;
|
|
1185
|
+
}): react_jsx_runtime.JSX.Element;
|
|
1186
|
+
interface TimelineItemProps {
|
|
1187
|
+
icon?: React__default.ReactNode;
|
|
1188
|
+
title: string;
|
|
1189
|
+
description?: string;
|
|
1190
|
+
timestamp?: string;
|
|
1191
|
+
variant?: TimelineVariant;
|
|
1192
|
+
isLast?: boolean;
|
|
1193
|
+
className?: string;
|
|
1194
|
+
}
|
|
1195
|
+
declare function TimelineItem({ icon, title, description, timestamp, variant, isLast, className }: TimelineItemProps): react_jsx_runtime.JSX.Element;
|
|
1196
|
+
interface TimelineProps {
|
|
1197
|
+
children: React__default.ReactNode;
|
|
1198
|
+
className?: string;
|
|
1199
|
+
}
|
|
1200
|
+
declare function Timeline({ children, className }: TimelineProps): react_jsx_runtime.JSX.Element;
|
|
1201
|
+
|
|
1202
|
+
interface ChatDetailProps {
|
|
1203
|
+
className?: string;
|
|
1204
|
+
}
|
|
1205
|
+
declare function ChatDetail({ className }: ChatDetailProps): react_jsx_runtime.JSX.Element;
|
|
1206
|
+
|
|
1207
|
+
interface FeedbackModalProps {
|
|
1208
|
+
onSubmit?: (data: {
|
|
1209
|
+
reaction: string;
|
|
1210
|
+
text: string;
|
|
1211
|
+
}) => void;
|
|
1212
|
+
className?: string;
|
|
1213
|
+
}
|
|
1214
|
+
declare function FeedbackModal({ onSubmit, className }: FeedbackModalProps): react_jsx_runtime.JSX.Element;
|
|
1215
|
+
|
|
1216
|
+
interface FileItem {
|
|
1217
|
+
id: string;
|
|
1218
|
+
name: string;
|
|
1219
|
+
type: string;
|
|
1220
|
+
size: string;
|
|
1221
|
+
modified: string;
|
|
1222
|
+
}
|
|
1223
|
+
interface FileCardsProps {
|
|
1224
|
+
files?: FileItem[];
|
|
1225
|
+
className?: string;
|
|
1226
|
+
}
|
|
1227
|
+
declare function FileCards({ files, className }: FileCardsProps): react_jsx_runtime.JSX.Element;
|
|
1228
|
+
|
|
1229
|
+
interface FilesListProps {
|
|
1230
|
+
className?: string;
|
|
1231
|
+
}
|
|
1232
|
+
declare function FilesList({ className }: FilesListProps): react_jsx_runtime.JSX.Element;
|
|
1233
|
+
|
|
1234
|
+
interface IntegrationCardProps {
|
|
1235
|
+
icon?: React__default.ReactNode;
|
|
1236
|
+
name?: string;
|
|
1237
|
+
description?: string;
|
|
1238
|
+
connected?: boolean;
|
|
1239
|
+
className?: string;
|
|
1240
|
+
}
|
|
1241
|
+
declare function IntegrationCard({ icon, name, description, connected, className, }: IntegrationCardProps): react_jsx_runtime.JSX.Element;
|
|
1242
|
+
|
|
1243
|
+
interface InviteModalProps {
|
|
1244
|
+
className?: string;
|
|
1245
|
+
}
|
|
1246
|
+
declare function InviteModal({ className }: InviteModalProps): react_jsx_runtime.JSX.Element;
|
|
1247
|
+
|
|
1248
|
+
interface ManageTagsModalProps {
|
|
1249
|
+
className?: string;
|
|
1250
|
+
}
|
|
1251
|
+
declare function ManageTagsModal({ className }: ManageTagsModalProps): react_jsx_runtime.JSX.Element;
|
|
1252
|
+
|
|
1253
|
+
interface MessagesCardProps {
|
|
1254
|
+
className?: string;
|
|
1255
|
+
}
|
|
1256
|
+
declare function MessagesCard({ className }: MessagesCardProps): react_jsx_runtime.JSX.Element;
|
|
1257
|
+
|
|
1258
|
+
interface MetricCardProps {
|
|
1259
|
+
label?: string;
|
|
1260
|
+
value?: string;
|
|
1261
|
+
change?: string;
|
|
1262
|
+
trend?: 'up' | 'down';
|
|
1263
|
+
className?: string;
|
|
1264
|
+
}
|
|
1265
|
+
declare function MetricCard({ label, value, change, trend, className }: MetricCardProps): react_jsx_runtime.JSX.Element;
|
|
1266
|
+
interface MetricCardWithIconProps extends MetricCardProps {
|
|
1267
|
+
icon?: React__default.ReactNode;
|
|
1268
|
+
iconColor?: string;
|
|
1269
|
+
}
|
|
1270
|
+
declare function MetricCardWithIcon({ icon, iconColor, ...props }: MetricCardWithIconProps): react_jsx_runtime.JSX.Element;
|
|
1271
|
+
interface MetricCardWithButtonProps extends MetricCardProps {
|
|
1272
|
+
actionLabel?: string;
|
|
1273
|
+
onAction?: () => void;
|
|
1274
|
+
}
|
|
1275
|
+
declare function MetricCardWithButton({ actionLabel, onAction, ...props }: MetricCardWithButtonProps): react_jsx_runtime.JSX.Element;
|
|
1276
|
+
|
|
1277
|
+
interface BarListItem {
|
|
1278
|
+
label: string;
|
|
1279
|
+
value: number;
|
|
1280
|
+
color?: string;
|
|
1281
|
+
href?: string;
|
|
1282
|
+
icon?: React__default.ReactNode;
|
|
1283
|
+
meta?: React__default.ReactNode;
|
|
1284
|
+
}
|
|
1285
|
+
interface BarListProps {
|
|
1286
|
+
data: BarListItem[];
|
|
1287
|
+
valueFormatter?: (v: number) => string;
|
|
1288
|
+
sort?: boolean;
|
|
1289
|
+
max?: number;
|
|
1290
|
+
className?: string;
|
|
1291
|
+
emptyMessage?: string;
|
|
1292
|
+
}
|
|
1293
|
+
declare function BarList({ data, valueFormatter, sort, max, className, emptyMessage, }: BarListProps): react_jsx_runtime.JSX.Element;
|
|
1294
|
+
|
|
1295
|
+
interface HeatmapDay {
|
|
1296
|
+
date: string;
|
|
1297
|
+
value: number;
|
|
1298
|
+
}
|
|
1299
|
+
interface HeatmapProps {
|
|
1300
|
+
data: HeatmapDay[];
|
|
1301
|
+
endDate?: Date;
|
|
1302
|
+
weeks?: number;
|
|
1303
|
+
cellSize?: number;
|
|
1304
|
+
gap?: number;
|
|
1305
|
+
colorScale?: string[];
|
|
1306
|
+
className?: string;
|
|
1307
|
+
showMonthLabels?: boolean;
|
|
1308
|
+
showDayLabels?: boolean;
|
|
1309
|
+
showLegend?: boolean;
|
|
1310
|
+
formatTooltip?: (day: HeatmapDay) => string;
|
|
1311
|
+
}
|
|
1312
|
+
declare function Heatmap({ data, endDate, weeks, cellSize, gap, colorScale, className, showMonthLabels, showDayLabels, showLegend, formatTooltip, }: HeatmapProps): react_jsx_runtime.JSX.Element;
|
|
1313
|
+
|
|
1314
|
+
interface FilterOption {
|
|
1315
|
+
value: string;
|
|
1316
|
+
label: string;
|
|
1317
|
+
}
|
|
1318
|
+
interface SummaryStat {
|
|
1319
|
+
label: string;
|
|
1320
|
+
value: string | number;
|
|
1321
|
+
}
|
|
1322
|
+
interface ActivityHeatmapProps {
|
|
1323
|
+
/** The big number above the heatmap (e.g. total events) */
|
|
1324
|
+
total: number | string;
|
|
1325
|
+
/** Caption above the total — e.g. "Activity" */
|
|
1326
|
+
caption?: string;
|
|
1327
|
+
/** Daily values for the heatmap */
|
|
1328
|
+
data: HeatmapDay[];
|
|
1329
|
+
/** Date the heatmap should end on. Defaults to today. */
|
|
1330
|
+
endDate?: Date;
|
|
1331
|
+
/** Number of week columns. Default 53. */
|
|
1332
|
+
weeks?: number;
|
|
1333
|
+
/** Cell size in px. Default 11. */
|
|
1334
|
+
cellSize?: number;
|
|
1335
|
+
/** Gap between cells in px. Default 3. */
|
|
1336
|
+
gap?: number;
|
|
1337
|
+
/** Optional 5-step color scale. Defaults to primary opacity ramp. */
|
|
1338
|
+
colorScale?: string[];
|
|
1339
|
+
/** Optional filter — renders a ToggleGroup at the top right */
|
|
1340
|
+
filters?: FilterOption[];
|
|
1341
|
+
filterValue?: string;
|
|
1342
|
+
onFilterChange?: (value: string) => void;
|
|
1343
|
+
/** 4 summary stats shown below the heatmap (e.g. Most Active Month / Day / Longest / Current Streak) */
|
|
1344
|
+
stats?: SummaryStat[];
|
|
1345
|
+
/** Tooltip formatter passed to Heatmap */
|
|
1346
|
+
formatTooltip?: (day: HeatmapDay) => string;
|
|
1347
|
+
/** Center the heatmap horizontally inside its scroll container. Default true. */
|
|
1348
|
+
centered?: boolean;
|
|
1349
|
+
className?: string;
|
|
1350
|
+
}
|
|
1351
|
+
declare function ActivityHeatmap({ total, caption, data, endDate, weeks, cellSize, gap, colorScale, filters, filterValue, onFilterChange, stats, formatTooltip, centered, className, }: ActivityHeatmapProps): react_jsx_runtime.JSX.Element;
|
|
1352
|
+
|
|
1353
|
+
type FabPosition = 'bottom-right' | 'bottom-left' | 'top-right' | 'top-left';
|
|
1354
|
+
interface FabSection {
|
|
1355
|
+
/** Section heading shown in small-caps above the items. */
|
|
1356
|
+
label: string;
|
|
1357
|
+
/** The content to render inside this section. */
|
|
1358
|
+
content: React__default.ReactNode;
|
|
1359
|
+
}
|
|
1360
|
+
interface FloatingActionButtonProps {
|
|
1361
|
+
/** Icon rendered inside the FAB. Defaults to a palette icon. */
|
|
1362
|
+
icon?: React__default.ReactNode;
|
|
1363
|
+
/** Tooltip / aria-label for the FAB button. */
|
|
1364
|
+
label?: string;
|
|
1365
|
+
/** Panel title shown at the top of the popover. */
|
|
1366
|
+
title?: string;
|
|
1367
|
+
/** Panel subtitle shown below the title. */
|
|
1368
|
+
description?: string;
|
|
1369
|
+
/** Sections of content to render inside the popover panel. */
|
|
1370
|
+
sections?: FabSection[];
|
|
1371
|
+
/** Which corner to anchor the FAB. @default 'bottom-right' */
|
|
1372
|
+
position?: FabPosition;
|
|
1373
|
+
/** Extra className on the root wrapper. */
|
|
1374
|
+
className?: string;
|
|
1375
|
+
}
|
|
1376
|
+
declare function FloatingActionButton({ icon, label, title, description, sections, position, className, }: FloatingActionButtonProps): react_jsx_runtime.JSX.Element;
|
|
1377
|
+
interface ThemePickerOption {
|
|
1378
|
+
/** CSS class applied to <html>. Use '__brand__' for the default brand palette (no class). */
|
|
1379
|
+
value: string;
|
|
1380
|
+
/** Display label shown as tooltip and below the active swatch. */
|
|
1381
|
+
label: string;
|
|
1382
|
+
/** Hex or CSS color used to render the swatch circle. */
|
|
1383
|
+
color: string;
|
|
1384
|
+
}
|
|
1385
|
+
declare const DEFAULT_THEME_OPTIONS: ThemePickerOption[];
|
|
1386
|
+
interface PaletteSwatchesProps {
|
|
1387
|
+
options?: ThemePickerOption[];
|
|
1388
|
+
}
|
|
1389
|
+
declare function PaletteSwatches({ options }: PaletteSwatchesProps): react_jsx_runtime.JSX.Element;
|
|
1390
|
+
interface FloatingThemePickerProps {
|
|
1391
|
+
options?: ThemePickerOption[];
|
|
1392
|
+
position?: FabPosition;
|
|
1393
|
+
className?: string;
|
|
1394
|
+
}
|
|
1395
|
+
declare function FloatingThemePicker({ options, position, className, }: FloatingThemePickerProps): react_jsx_runtime.JSX.Element;
|
|
1396
|
+
|
|
1397
|
+
interface NotificationSettingsProps {
|
|
1398
|
+
className?: string;
|
|
1399
|
+
}
|
|
1400
|
+
declare function NotificationSettings({ className }: NotificationSettingsProps): react_jsx_runtime.JSX.Element;
|
|
1401
|
+
|
|
1402
|
+
interface OrgMenuProps {
|
|
1403
|
+
/** Controlled mode — pass to manage selection externally. If omitted, the menu manages its own state. */
|
|
1404
|
+
currentOrgId?: string;
|
|
1405
|
+
/** Default selection in uncontrolled mode. Defaults to the first org. */
|
|
1406
|
+
defaultOrgId?: string;
|
|
1407
|
+
onSwitch?: (orgId: string) => void;
|
|
1408
|
+
onCreateOrg?: () => void;
|
|
1409
|
+
className?: string;
|
|
1410
|
+
}
|
|
1411
|
+
declare function OrgMenu({ currentOrgId, defaultOrgId, onSwitch, onCreateOrg, className, }: OrgMenuProps): react_jsx_runtime.JSX.Element;
|
|
1412
|
+
|
|
1413
|
+
interface RolesMenuProps {
|
|
1414
|
+
value?: string;
|
|
1415
|
+
onChange?: (role: string) => void;
|
|
1416
|
+
className?: string;
|
|
1417
|
+
}
|
|
1418
|
+
declare function RolesMenu({ value, onChange, className }: RolesMenuProps): react_jsx_runtime.JSX.Element;
|
|
1419
|
+
|
|
1420
|
+
interface SelectUsersModalProps {
|
|
1421
|
+
onConfirm?: (ids: string[]) => void;
|
|
1422
|
+
className?: string;
|
|
1423
|
+
}
|
|
1424
|
+
declare function SelectUsersModal({ onConfirm, className }: SelectUsersModalProps): react_jsx_runtime.JSX.Element;
|
|
1425
|
+
|
|
1426
|
+
interface SidebarLayoutDashboardProps {
|
|
1427
|
+
className?: string;
|
|
1428
|
+
}
|
|
1429
|
+
declare function SidebarLayoutDashboard({ className }: SidebarLayoutDashboardProps): react_jsx_runtime.JSX.Element;
|
|
1430
|
+
|
|
1431
|
+
interface SidebarLayoutGroupsProps {
|
|
1432
|
+
brandName?: string;
|
|
1433
|
+
pageTitle?: string;
|
|
1434
|
+
children?: React__default.ReactNode;
|
|
1435
|
+
className?: string;
|
|
1436
|
+
}
|
|
1437
|
+
declare function SidebarLayoutGroups({ brandName, pageTitle, children, className, }: SidebarLayoutGroupsProps): react_jsx_runtime.JSX.Element;
|
|
1438
|
+
|
|
1439
|
+
interface SidebarLayoutMinimalProps {
|
|
1440
|
+
brandName?: string;
|
|
1441
|
+
pageTitle?: string;
|
|
1442
|
+
children?: React__default.ReactNode;
|
|
1443
|
+
className?: string;
|
|
1444
|
+
}
|
|
1445
|
+
declare function SidebarLayoutMinimal({ brandName, pageTitle, children, className, }: SidebarLayoutMinimalProps): react_jsx_runtime.JSX.Element;
|
|
1446
|
+
|
|
1447
|
+
interface SidebarLayoutSearchProps {
|
|
1448
|
+
brandName?: string;
|
|
1449
|
+
pageTitle?: string;
|
|
1450
|
+
children?: React__default.ReactNode;
|
|
1451
|
+
className?: string;
|
|
1452
|
+
}
|
|
1453
|
+
declare function SidebarLayoutSearch({ brandName, pageTitle, children, className, }: SidebarLayoutSearchProps): react_jsx_runtime.JSX.Element;
|
|
1454
|
+
|
|
1455
|
+
interface SidebarLayoutUserProps {
|
|
1456
|
+
userName?: string;
|
|
1457
|
+
userEmail?: string;
|
|
1458
|
+
userRole?: string;
|
|
1459
|
+
pageTitle?: string;
|
|
1460
|
+
children?: React__default.ReactNode;
|
|
1461
|
+
className?: string;
|
|
1462
|
+
}
|
|
1463
|
+
declare function SidebarLayoutUser({ userName, userEmail, userRole, pageTitle, children, className, }: SidebarLayoutUserProps): react_jsx_runtime.JSX.Element;
|
|
1464
|
+
|
|
1465
|
+
interface SortableTaskListProps {
|
|
1466
|
+
className?: string;
|
|
1467
|
+
}
|
|
1468
|
+
declare function SortableTaskList({ className }: SortableTaskListProps): react_jsx_runtime.JSX.Element;
|
|
1469
|
+
|
|
1470
|
+
interface StackedLayoutBrandedProps {
|
|
1471
|
+
brandName?: string;
|
|
1472
|
+
children?: React__default.ReactNode;
|
|
1473
|
+
className?: string;
|
|
1474
|
+
}
|
|
1475
|
+
declare function StackedLayoutBranded({ brandName, children, className, }: StackedLayoutBrandedProps): react_jsx_runtime.JSX.Element;
|
|
1476
|
+
|
|
1477
|
+
interface StackedLayoutTabsProps {
|
|
1478
|
+
brandName?: string;
|
|
1479
|
+
children?: React__default.ReactNode;
|
|
1480
|
+
className?: string;
|
|
1481
|
+
}
|
|
1482
|
+
declare function StackedLayoutTabs({ brandName, children, className, }: StackedLayoutTabsProps): react_jsx_runtime.JSX.Element;
|
|
1483
|
+
|
|
1484
|
+
interface TaskCardProps {
|
|
1485
|
+
title?: string;
|
|
1486
|
+
description?: string;
|
|
1487
|
+
assigneeInitials?: string;
|
|
1488
|
+
dueDate?: string;
|
|
1489
|
+
priority?: 'High' | 'Medium' | 'Low';
|
|
1490
|
+
className?: string;
|
|
1491
|
+
}
|
|
1492
|
+
declare function TaskCard({ title, description, assigneeInitials, dueDate, priority, className, }: TaskCardProps): react_jsx_runtime.JSX.Element;
|
|
1493
|
+
interface TaskCardWithLabelsProps extends TaskCardProps {
|
|
1494
|
+
labels?: string[];
|
|
1495
|
+
}
|
|
1496
|
+
declare function TaskCardWithLabels({ labels, ...props }: TaskCardWithLabelsProps): react_jsx_runtime.JSX.Element;
|
|
1497
|
+
|
|
1498
|
+
interface UserMenuProps {
|
|
1499
|
+
name?: string;
|
|
1500
|
+
email?: string;
|
|
1501
|
+
initials?: string;
|
|
1502
|
+
onProfile?: () => void;
|
|
1503
|
+
onSettings?: () => void;
|
|
1504
|
+
onBilling?: () => void;
|
|
1505
|
+
onSignOut?: () => void;
|
|
1506
|
+
className?: string;
|
|
1507
|
+
}
|
|
1508
|
+
declare function UserMenu({ name, email, initials, onProfile, onSettings, onBilling, onSignOut, className, }: UserMenuProps): react_jsx_runtime.JSX.Element;
|
|
1509
|
+
|
|
1510
|
+
interface WorkspaceMembersProps {
|
|
1511
|
+
className?: string;
|
|
1512
|
+
}
|
|
1513
|
+
declare function WorkspaceMembers({ className }: WorkspaceMembersProps): react_jsx_runtime.JSX.Element;
|
|
1514
|
+
|
|
1515
|
+
interface ActionDef {
|
|
1516
|
+
label: string;
|
|
1517
|
+
icon?: React__default.ReactNode;
|
|
1518
|
+
onClick: () => void;
|
|
1519
|
+
variant?: 'default' | 'destructive';
|
|
1520
|
+
}
|
|
1521
|
+
interface BulkActionsProps {
|
|
1522
|
+
count: number;
|
|
1523
|
+
actions: ActionDef[];
|
|
1524
|
+
onClear: () => void;
|
|
1525
|
+
className?: string;
|
|
1526
|
+
}
|
|
1527
|
+
declare function BulkActions({ count, actions, onClear, className }: BulkActionsProps): react_jsx_runtime.JSX.Element | null;
|
|
1528
|
+
|
|
1529
|
+
interface UseCommandBarReturn {
|
|
1530
|
+
open: boolean;
|
|
1531
|
+
setOpen: (v: boolean) => void;
|
|
1532
|
+
}
|
|
1533
|
+
declare function useCommandBar(): UseCommandBarReturn;
|
|
1534
|
+
declare function CommandBarEmpty({ children }: {
|
|
1535
|
+
children?: React__default.ReactNode;
|
|
1536
|
+
}): react_jsx_runtime.JSX.Element;
|
|
1537
|
+
declare function CommandBarGroup({ heading, children }: {
|
|
1538
|
+
heading: string;
|
|
1539
|
+
children: React__default.ReactNode;
|
|
1540
|
+
}): react_jsx_runtime.JSX.Element;
|
|
1541
|
+
interface CommandBarItemProps {
|
|
1542
|
+
icon?: React__default.ReactNode;
|
|
1543
|
+
label: string;
|
|
1544
|
+
shortcut?: string;
|
|
1545
|
+
onSelect?: () => void;
|
|
1546
|
+
active?: boolean;
|
|
1547
|
+
className?: string;
|
|
1548
|
+
}
|
|
1549
|
+
declare function CommandBarItem({ icon, label, shortcut, onSelect, active, className }: CommandBarItemProps): react_jsx_runtime.JSX.Element;
|
|
1550
|
+
interface CommandBarProps {
|
|
1551
|
+
open: boolean;
|
|
1552
|
+
onOpenChange: (v: boolean) => void;
|
|
1553
|
+
children: React__default.ReactNode;
|
|
1554
|
+
placeholder?: string;
|
|
1555
|
+
onSearch?: (q: string) => void;
|
|
1556
|
+
}
|
|
1557
|
+
declare function CommandBar({ open, onOpenChange, children, placeholder, onSearch }: CommandBarProps): react_jsx_runtime.JSX.Element;
|
|
1558
|
+
|
|
1559
|
+
interface FilterDef {
|
|
1560
|
+
key: string;
|
|
1561
|
+
label: string;
|
|
1562
|
+
type: 'text' | 'select' | 'date' | 'number';
|
|
1563
|
+
options?: {
|
|
1564
|
+
label: string;
|
|
1565
|
+
value: string;
|
|
1566
|
+
}[];
|
|
1567
|
+
}
|
|
1568
|
+
interface FilterValue {
|
|
1569
|
+
key: string;
|
|
1570
|
+
operator: string;
|
|
1571
|
+
value: string;
|
|
1572
|
+
}
|
|
1573
|
+
declare function FilterBadge({ filter, def, onRemove }: {
|
|
1574
|
+
filter: FilterValue;
|
|
1575
|
+
def?: FilterDef;
|
|
1576
|
+
onRemove: () => void;
|
|
1577
|
+
}): react_jsx_runtime.JSX.Element;
|
|
1578
|
+
declare function FilterItem({ children }: {
|
|
1579
|
+
children: React__default.ReactNode;
|
|
1580
|
+
}): react_jsx_runtime.JSX.Element;
|
|
1581
|
+
interface FiltersProps {
|
|
1582
|
+
filters: FilterDef[];
|
|
1583
|
+
value: FilterValue[];
|
|
1584
|
+
onChange: (v: FilterValue[]) => void;
|
|
1585
|
+
className?: string;
|
|
1586
|
+
}
|
|
1587
|
+
declare function Filters({ filters, value, onChange, className }: FiltersProps): react_jsx_runtime.JSX.Element;
|
|
1588
|
+
|
|
1589
|
+
type GanttItem = {
|
|
1590
|
+
id: string;
|
|
1591
|
+
title: string;
|
|
1592
|
+
start: Date;
|
|
1593
|
+
end: Date;
|
|
1594
|
+
/** 0..100. Default 0. */
|
|
1595
|
+
progress?: number;
|
|
1596
|
+
/** CSS color (e.g. 'hsl(var(--chart-1))' or '#hex'). */
|
|
1597
|
+
color?: string;
|
|
1598
|
+
/** ids of upstream items — render arrows */
|
|
1599
|
+
dependsOn?: string[];
|
|
1600
|
+
/** optional row grouping label */
|
|
1601
|
+
group?: string;
|
|
1602
|
+
};
|
|
1603
|
+
type GanttScale = 'days' | 'weeks' | 'months';
|
|
1604
|
+
type GanttProps = Omit<React__default.HTMLAttributes<HTMLDivElement>, 'onMove'> & {
|
|
1605
|
+
items: GanttItem[];
|
|
1606
|
+
scale?: GanttScale;
|
|
1607
|
+
startDate?: Date;
|
|
1608
|
+
endDate?: Date;
|
|
1609
|
+
rowHeight?: number;
|
|
1610
|
+
/** Omit = read-only. */
|
|
1611
|
+
onItemMove?: (id: string, newStart: Date, newEnd: Date) => void;
|
|
1612
|
+
/** Omit = no resize. */
|
|
1613
|
+
onItemResize?: (id: string, newEnd: Date) => void;
|
|
1614
|
+
onItemClick?: (item: GanttItem) => void;
|
|
1615
|
+
showDependencies?: boolean;
|
|
1616
|
+
showProgress?: boolean;
|
|
1617
|
+
showToday?: boolean;
|
|
1618
|
+
};
|
|
1619
|
+
declare const Gantt: React__default.ForwardRefExoticComponent<Omit<React__default.HTMLAttributes<HTMLDivElement>, "onMove"> & {
|
|
1620
|
+
items: GanttItem[];
|
|
1621
|
+
scale?: GanttScale;
|
|
1622
|
+
startDate?: Date;
|
|
1623
|
+
endDate?: Date;
|
|
1624
|
+
rowHeight?: number;
|
|
1625
|
+
/** Omit = read-only. */
|
|
1626
|
+
onItemMove?: (id: string, newStart: Date, newEnd: Date) => void;
|
|
1627
|
+
/** Omit = no resize. */
|
|
1628
|
+
onItemResize?: (id: string, newEnd: Date) => void;
|
|
1629
|
+
onItemClick?: (item: GanttItem) => void;
|
|
1630
|
+
showDependencies?: boolean;
|
|
1631
|
+
showProgress?: boolean;
|
|
1632
|
+
showToday?: boolean;
|
|
1633
|
+
} & React__default.RefAttributes<HTMLDivElement>>;
|
|
1634
|
+
|
|
1635
|
+
interface KanbanCardDef {
|
|
1636
|
+
id: string;
|
|
1637
|
+
title: string;
|
|
1638
|
+
description?: string;
|
|
1639
|
+
badge?: string;
|
|
1640
|
+
}
|
|
1641
|
+
interface KanbanColumnDef {
|
|
1642
|
+
id: string;
|
|
1643
|
+
title: string;
|
|
1644
|
+
cards: KanbanCardDef[];
|
|
1645
|
+
}
|
|
1646
|
+
declare function KanbanCard({ card, isDragging }: {
|
|
1647
|
+
card: KanbanCardDef;
|
|
1648
|
+
isDragging?: boolean;
|
|
1649
|
+
}): react_jsx_runtime.JSX.Element;
|
|
1650
|
+
declare function KanbanColumn({ column, isOver }: {
|
|
1651
|
+
column: KanbanColumnDef;
|
|
1652
|
+
isOver?: boolean;
|
|
1653
|
+
}): react_jsx_runtime.JSX.Element;
|
|
1654
|
+
interface KanbanProps {
|
|
1655
|
+
columns: KanbanColumnDef[];
|
|
1656
|
+
onMoveCard?: (cardId: string, fromCol: string, toCol: string) => void;
|
|
1657
|
+
className?: string;
|
|
1658
|
+
}
|
|
1659
|
+
declare function Kanban({ columns: initialColumns, onMoveCard, className }: KanbanProps): react_jsx_runtime.JSX.Element;
|
|
1660
|
+
|
|
1661
|
+
type RichEditorToolbarVariant = 'full' | 'minimal' | 'bubble';
|
|
1662
|
+
type RichEditorProps = Omit<React__default.HTMLAttributes<HTMLDivElement>, 'onChange'> & {
|
|
1663
|
+
/** Controlled HTML content. */
|
|
1664
|
+
value?: string;
|
|
1665
|
+
/** Initial uncontrolled HTML content. */
|
|
1666
|
+
defaultValue?: string;
|
|
1667
|
+
/** Fired (debounced 100ms) when the editor's HTML changes. */
|
|
1668
|
+
onChange?: (html: string) => void;
|
|
1669
|
+
/** Placeholder shown when the document is empty. */
|
|
1670
|
+
placeholder?: string;
|
|
1671
|
+
/** Default true. When false the toolbar is visually disabled and content read-only. */
|
|
1672
|
+
editable?: boolean;
|
|
1673
|
+
/** Toolbar layout. Default 'full'. */
|
|
1674
|
+
toolbar?: RichEditorToolbarVariant;
|
|
1675
|
+
/** Optional character cap. Shows a counter and clamps content via onUpdate. */
|
|
1676
|
+
maxLength?: number;
|
|
1677
|
+
};
|
|
1678
|
+
declare const RichEditor: React__default.ForwardRefExoticComponent<Omit<React__default.HTMLAttributes<HTMLDivElement>, "onChange"> & {
|
|
1679
|
+
/** Controlled HTML content. */
|
|
1680
|
+
value?: string;
|
|
1681
|
+
/** Initial uncontrolled HTML content. */
|
|
1682
|
+
defaultValue?: string;
|
|
1683
|
+
/** Fired (debounced 100ms) when the editor's HTML changes. */
|
|
1684
|
+
onChange?: (html: string) => void;
|
|
1685
|
+
/** Placeholder shown when the document is empty. */
|
|
1686
|
+
placeholder?: string;
|
|
1687
|
+
/** Default true. When false the toolbar is visually disabled and content read-only. */
|
|
1688
|
+
editable?: boolean;
|
|
1689
|
+
/** Toolbar layout. Default 'full'. */
|
|
1690
|
+
toolbar?: RichEditorToolbarVariant;
|
|
1691
|
+
/** Optional character cap. Shows a counter and clamps content via onUpdate. */
|
|
1692
|
+
maxLength?: number;
|
|
1693
|
+
} & React__default.RefAttributes<HTMLDivElement>>;
|
|
1694
|
+
|
|
1695
|
+
interface ToggleButtonProps {
|
|
1696
|
+
value: string;
|
|
1697
|
+
pressed?: boolean;
|
|
1698
|
+
onClick?: () => void;
|
|
1699
|
+
disabled?: boolean;
|
|
1700
|
+
children: React__default.ReactNode;
|
|
1701
|
+
className?: string;
|
|
1702
|
+
}
|
|
1703
|
+
declare function ToggleButton({ pressed, onClick, disabled, children, className }: ToggleButtonProps): react_jsx_runtime.JSX.Element;
|
|
1704
|
+
interface ToggleButtonGroupSingle {
|
|
1705
|
+
type?: 'single';
|
|
1706
|
+
value: string;
|
|
1707
|
+
onChange: (v: string) => void;
|
|
1708
|
+
}
|
|
1709
|
+
interface ToggleButtonGroupMultiple {
|
|
1710
|
+
type: 'multiple';
|
|
1711
|
+
value: string[];
|
|
1712
|
+
onChange: (v: string[]) => void;
|
|
1713
|
+
}
|
|
1714
|
+
type ToggleButtonGroupProps = (ToggleButtonGroupSingle | ToggleButtonGroupMultiple) & {
|
|
1715
|
+
children: React__default.ReactNode;
|
|
1716
|
+
className?: string;
|
|
1717
|
+
};
|
|
1718
|
+
declare function ToggleButtonGroup(props: ToggleButtonGroupProps): react_jsx_runtime.JSX.Element;
|
|
1719
|
+
|
|
1720
|
+
interface AreaChartProps {
|
|
1721
|
+
data: Record<string, unknown>[];
|
|
1722
|
+
dataKey: string | string[];
|
|
1723
|
+
xAxisKey?: string;
|
|
1724
|
+
height?: number;
|
|
1725
|
+
colors?: string[];
|
|
1726
|
+
showGrid?: boolean;
|
|
1727
|
+
showTooltip?: boolean;
|
|
1728
|
+
showLegend?: boolean;
|
|
1729
|
+
curved?: boolean;
|
|
1730
|
+
className?: string;
|
|
1731
|
+
}
|
|
1732
|
+
declare function AreaChart({ data, dataKey, xAxisKey, height, colors, showGrid, showTooltip, showLegend, curved, className, }: AreaChartProps): react_jsx_runtime.JSX.Element;
|
|
1733
|
+
|
|
1734
|
+
interface BarChartProps {
|
|
1735
|
+
data: Record<string, unknown>[];
|
|
1736
|
+
dataKey: string | string[];
|
|
1737
|
+
xAxisKey?: string;
|
|
1738
|
+
height?: number;
|
|
1739
|
+
colors?: string[];
|
|
1740
|
+
showGrid?: boolean;
|
|
1741
|
+
showTooltip?: boolean;
|
|
1742
|
+
showLegend?: boolean;
|
|
1743
|
+
layout?: 'vertical' | 'horizontal';
|
|
1744
|
+
stacked?: boolean;
|
|
1745
|
+
/** Exact bar width/height in px. Defaults to 28 for a slim, elegant look. */
|
|
1746
|
+
barSize?: number;
|
|
1747
|
+
/** Maximum bar width/height in px */
|
|
1748
|
+
maxBarSize?: number;
|
|
1749
|
+
/** Gap between bar groups. Defaults to '45%' for generous whitespace. */
|
|
1750
|
+
barCategoryGap?: number | string;
|
|
1751
|
+
/** Optional line overlay key — switches to ComposedChart with second Y axis */
|
|
1752
|
+
lineDataKey?: string;
|
|
1753
|
+
lineColor?: string;
|
|
1754
|
+
lineStrokeWidth?: number;
|
|
1755
|
+
rightAxisFormatter?: (v: number) => string;
|
|
1756
|
+
rightAxisDomain?: [number | string, number | string];
|
|
1757
|
+
className?: string;
|
|
1758
|
+
}
|
|
1759
|
+
declare function BarChart({ data, dataKey, xAxisKey, height, colors, showGrid, showTooltip, showLegend, layout, stacked, barSize, maxBarSize, barCategoryGap, lineDataKey, lineColor, lineStrokeWidth, rightAxisFormatter, rightAxisDomain, className, }: BarChartProps): react_jsx_runtime.JSX.Element;
|
|
1760
|
+
|
|
1761
|
+
interface LineChartProps {
|
|
1762
|
+
data: Record<string, unknown>[];
|
|
1763
|
+
dataKey: string | string[];
|
|
1764
|
+
xAxisKey?: string;
|
|
1765
|
+
height?: number;
|
|
1766
|
+
colors?: string[];
|
|
1767
|
+
showGrid?: boolean;
|
|
1768
|
+
showTooltip?: boolean;
|
|
1769
|
+
showLegend?: boolean;
|
|
1770
|
+
curved?: boolean;
|
|
1771
|
+
dotted?: boolean;
|
|
1772
|
+
strokeWidth?: number;
|
|
1773
|
+
className?: string;
|
|
1774
|
+
}
|
|
1775
|
+
declare function LineChart({ data, dataKey, xAxisKey, height, colors, showGrid, showTooltip, showLegend, curved, dotted, strokeWidth, className, }: LineChartProps): react_jsx_runtime.JSX.Element;
|
|
1776
|
+
|
|
1777
|
+
interface SparklineProps {
|
|
1778
|
+
data: number[];
|
|
1779
|
+
type?: 'line' | 'area';
|
|
1780
|
+
color?: string;
|
|
1781
|
+
height?: number;
|
|
1782
|
+
width?: number;
|
|
1783
|
+
className?: string;
|
|
1784
|
+
}
|
|
1785
|
+
declare function Sparkline({ data, type, color, height, width, className, }: SparklineProps): react_jsx_runtime.JSX.Element | null;
|
|
1786
|
+
|
|
1787
|
+
declare const colorMap: {
|
|
1788
|
+
primary: string;
|
|
1789
|
+
success: string;
|
|
1790
|
+
warning: string;
|
|
1791
|
+
error: string;
|
|
1792
|
+
};
|
|
1793
|
+
declare const sizeMap: {
|
|
1794
|
+
sm: string;
|
|
1795
|
+
md: string;
|
|
1796
|
+
lg: string;
|
|
1797
|
+
};
|
|
1798
|
+
interface BeaconProps {
|
|
1799
|
+
color?: keyof typeof colorMap;
|
|
1800
|
+
size?: keyof typeof sizeMap;
|
|
1801
|
+
children?: React__default.ReactNode;
|
|
1802
|
+
className?: string;
|
|
1803
|
+
}
|
|
1804
|
+
declare function Beacon({ color, size, children, className }: BeaconProps): react_jsx_runtime.JSX.Element;
|
|
1805
|
+
|
|
1806
|
+
interface TourContextValue {
|
|
1807
|
+
currentStep: number;
|
|
1808
|
+
totalSteps: number;
|
|
1809
|
+
isActive: boolean;
|
|
1810
|
+
start: () => void;
|
|
1811
|
+
stop: () => void;
|
|
1812
|
+
next: () => void;
|
|
1813
|
+
prev: () => void;
|
|
1814
|
+
goTo: (step: number) => void;
|
|
1815
|
+
}
|
|
1816
|
+
declare function useTour(): TourContextValue;
|
|
1817
|
+
interface TourProps {
|
|
1818
|
+
totalSteps: number;
|
|
1819
|
+
children: React__default.ReactNode;
|
|
1820
|
+
}
|
|
1821
|
+
declare function Tour({ totalSteps, children }: TourProps): react_jsx_runtime.JSX.Element;
|
|
1822
|
+
interface TourStepProps {
|
|
1823
|
+
step: number;
|
|
1824
|
+
title: string;
|
|
1825
|
+
description: string;
|
|
1826
|
+
placement?: 'top' | 'bottom' | 'left' | 'right';
|
|
1827
|
+
children: React__default.ReactNode;
|
|
1828
|
+
}
|
|
1829
|
+
declare function TourStep({ step, title, description, placement, children }: TourStepProps): react_jsx_runtime.JSX.Element;
|
|
1830
|
+
|
|
1831
|
+
interface ChecklistProps extends React__default.HTMLAttributes<HTMLDivElement> {
|
|
1832
|
+
/** Header title. */
|
|
1833
|
+
title?: string;
|
|
1834
|
+
/** Optional subtitle / description. */
|
|
1835
|
+
description?: string;
|
|
1836
|
+
/** Controlled map of itemId → completed. If omitted, state is internal. */
|
|
1837
|
+
completed?: Record<string, boolean>;
|
|
1838
|
+
/** Called when an item's completion changes. */
|
|
1839
|
+
onItemChange?: (id: string, completed: boolean) => void;
|
|
1840
|
+
/** Fired the first time every item flips to completed. */
|
|
1841
|
+
onComplete?: () => void;
|
|
1842
|
+
/** Whether the body is collapsible. Default true. */
|
|
1843
|
+
collapsible?: boolean;
|
|
1844
|
+
/** Initial open state (uncontrolled). Default true. */
|
|
1845
|
+
defaultOpen?: boolean;
|
|
1846
|
+
/** Hide the progress bar. Default false. */
|
|
1847
|
+
hideProgress?: boolean;
|
|
1848
|
+
}
|
|
1849
|
+
declare const Checklist: React__default.ForwardRefExoticComponent<ChecklistProps & React__default.RefAttributes<HTMLDivElement>>;
|
|
1850
|
+
interface ChecklistItemProps extends Omit<React__default.HTMLAttributes<HTMLDivElement>, 'title' | 'onClick'> {
|
|
1851
|
+
/** Stable id used to track completion. */
|
|
1852
|
+
id: string;
|
|
1853
|
+
/** Item title (required). */
|
|
1854
|
+
title: string;
|
|
1855
|
+
/** Optional description shown under the title. */
|
|
1856
|
+
description?: string;
|
|
1857
|
+
/** Render a CTA on the right (e.g. <Button>Connect</Button>). */
|
|
1858
|
+
action?: React__default.ReactNode;
|
|
1859
|
+
/** Click handler for the entire row (excluding the action slot). */
|
|
1860
|
+
onActivate?: () => void;
|
|
1861
|
+
}
|
|
1862
|
+
declare const ChecklistItem: React__default.ForwardRefExoticComponent<ChecklistItemProps & React__default.RefAttributes<HTMLDivElement>>;
|
|
1863
|
+
|
|
1864
|
+
interface IntroStep {
|
|
1865
|
+
title: string;
|
|
1866
|
+
description: string;
|
|
1867
|
+
media?: React__default.ReactNode;
|
|
1868
|
+
}
|
|
1869
|
+
interface IntroDisclosureProps {
|
|
1870
|
+
/** The steps to walk through, in order. */
|
|
1871
|
+
steps: IntroStep[];
|
|
1872
|
+
/** Controlled open prop. If omitted, falls back to localStorage on mount. */
|
|
1873
|
+
open?: boolean;
|
|
1874
|
+
/** Called when the user dismisses (skip / done / backdrop / escape). */
|
|
1875
|
+
onOpenChange?: (open: boolean) => void;
|
|
1876
|
+
/** localStorage key. Once seen, the component stays closed for that key.
|
|
1877
|
+
* Set to `undefined` to disable persistence (always opens). */
|
|
1878
|
+
storageKey?: string;
|
|
1879
|
+
/** Optional extra label e.g. "What's new in 2.0". */
|
|
1880
|
+
eyebrow?: string;
|
|
1881
|
+
/** Skip button label. Default "Skip". */
|
|
1882
|
+
skipLabel?: string;
|
|
1883
|
+
/** Final-step CTA label. Default "Get started". */
|
|
1884
|
+
finishLabel?: string;
|
|
1885
|
+
}
|
|
1886
|
+
declare function IntroDisclosure({ steps, open: controlledOpen, onOpenChange, storageKey, eyebrow, skipLabel, finishLabel, }: IntroDisclosureProps): react_jsx_runtime.JSX.Element | null;
|
|
1887
|
+
declare namespace IntroDisclosure {
|
|
1888
|
+
var displayName: string;
|
|
1889
|
+
}
|
|
1890
|
+
|
|
1891
|
+
interface ArrayFieldProps<T> {
|
|
1892
|
+
value: T[];
|
|
1893
|
+
onChange: (v: T[]) => void;
|
|
1894
|
+
renderItem: (item: T, index: number, remove: () => void) => React__default.ReactNode;
|
|
1895
|
+
addLabel?: string;
|
|
1896
|
+
maxItems?: number;
|
|
1897
|
+
defaultItem: T;
|
|
1898
|
+
className?: string;
|
|
1899
|
+
}
|
|
1900
|
+
declare function ArrayField<T>({ value, onChange, renderItem, addLabel, maxItems, defaultItem, className, }: ArrayFieldProps<T>): react_jsx_runtime.JSX.Element;
|
|
1901
|
+
|
|
1902
|
+
interface AutoFormProps {
|
|
1903
|
+
schema: z.ZodObject<z.ZodRawShape>;
|
|
1904
|
+
onSubmit: (data: Record<string, unknown>) => void;
|
|
1905
|
+
defaultValues?: Record<string, unknown>;
|
|
1906
|
+
submitLabel?: string;
|
|
1907
|
+
}
|
|
1908
|
+
declare function AutoForm({ schema, onSubmit, defaultValues, submitLabel }: AutoFormProps): react_jsx_runtime.JSX.Element;
|
|
1909
|
+
|
|
1910
|
+
type ColorFormat = 'hex' | 'rgb' | 'hsl';
|
|
1911
|
+
type ColorPickerProps = Omit<React__default.HTMLAttributes<HTMLDivElement>, 'onChange'> & {
|
|
1912
|
+
/** Controlled color value (e.g. '#3b82f6' for hex, 'rgb(59, 130, 246)' for rgb). */
|
|
1913
|
+
value?: string;
|
|
1914
|
+
/** Uncontrolled initial value. */
|
|
1915
|
+
defaultValue?: string;
|
|
1916
|
+
/** Fires whenever the color changes. */
|
|
1917
|
+
onValueChange?: (value: string) => void;
|
|
1918
|
+
/** Format for the text input + picker. Default 'hex'. */
|
|
1919
|
+
format?: ColorFormat;
|
|
1920
|
+
/** Include alpha channel (only meaningful for hex). Default false. */
|
|
1921
|
+
showAlpha?: boolean;
|
|
1922
|
+
/** Optional preset palette displayed as clickable swatches. */
|
|
1923
|
+
swatches?: string[];
|
|
1924
|
+
/** Show the eye-dropper button when the API is available. Default true. */
|
|
1925
|
+
showEyeDropper?: boolean;
|
|
1926
|
+
/** Disable interaction. */
|
|
1927
|
+
disabled?: boolean;
|
|
1928
|
+
};
|
|
1929
|
+
/**
|
|
1930
|
+
* Inline color picker with optional eye-dropper, swatches, and alpha channel.
|
|
1931
|
+
* Wraps `react-colorful` and themes it to OTF's design tokens.
|
|
1932
|
+
*/
|
|
1933
|
+
declare const ColorPicker: React__default.ForwardRefExoticComponent<Omit<React__default.HTMLAttributes<HTMLDivElement>, "onChange"> & {
|
|
1934
|
+
/** Controlled color value (e.g. '#3b82f6' for hex, 'rgb(59, 130, 246)' for rgb). */
|
|
1935
|
+
value?: string;
|
|
1936
|
+
/** Uncontrolled initial value. */
|
|
1937
|
+
defaultValue?: string;
|
|
1938
|
+
/** Fires whenever the color changes. */
|
|
1939
|
+
onValueChange?: (value: string) => void;
|
|
1940
|
+
/** Format for the text input + picker. Default 'hex'. */
|
|
1941
|
+
format?: ColorFormat;
|
|
1942
|
+
/** Include alpha channel (only meaningful for hex). Default false. */
|
|
1943
|
+
showAlpha?: boolean;
|
|
1944
|
+
/** Optional preset palette displayed as clickable swatches. */
|
|
1945
|
+
swatches?: string[];
|
|
1946
|
+
/** Show the eye-dropper button when the API is available. Default true. */
|
|
1947
|
+
showEyeDropper?: boolean;
|
|
1948
|
+
/** Disable interaction. */
|
|
1949
|
+
disabled?: boolean;
|
|
1950
|
+
} & React__default.RefAttributes<HTMLDivElement>>;
|
|
1951
|
+
|
|
1952
|
+
interface DatePickerProps {
|
|
1953
|
+
value?: Date;
|
|
1954
|
+
onChange?: (date: Date) => void;
|
|
1955
|
+
placeholder?: string;
|
|
1956
|
+
disabled?: boolean;
|
|
1957
|
+
className?: string;
|
|
1958
|
+
}
|
|
1959
|
+
declare function DatePicker({ value, onChange, placeholder, disabled, className }: DatePickerProps): react_jsx_runtime.JSX.Element;
|
|
1960
|
+
|
|
1961
|
+
interface FieldProps {
|
|
1962
|
+
label?: string;
|
|
1963
|
+
description?: string;
|
|
1964
|
+
error?: string;
|
|
1965
|
+
required?: boolean;
|
|
1966
|
+
children: React__default.ReactNode;
|
|
1967
|
+
className?: string;
|
|
1968
|
+
}
|
|
1969
|
+
declare function Field({ label, description, error, required, children, className }: FieldProps): react_jsx_runtime.JSX.Element;
|
|
1970
|
+
interface FieldLabelProps extends React__default.LabelHTMLAttributes<HTMLLabelElement> {
|
|
1971
|
+
required?: boolean;
|
|
1972
|
+
}
|
|
1973
|
+
declare const FieldLabel: React__default.ForwardRefExoticComponent<FieldLabelProps & React__default.RefAttributes<HTMLLabelElement>>;
|
|
1974
|
+
declare const FieldDescription: React__default.ForwardRefExoticComponent<React__default.HTMLAttributes<HTMLParagraphElement> & React__default.RefAttributes<HTMLParagraphElement>>;
|
|
1975
|
+
declare const FieldError: React__default.ForwardRefExoticComponent<React__default.HTMLAttributes<HTMLParagraphElement> & React__default.RefAttributes<HTMLParagraphElement>>;
|
|
1976
|
+
|
|
1977
|
+
interface FileUploadProps {
|
|
1978
|
+
accept?: string;
|
|
1979
|
+
multiple?: boolean;
|
|
1980
|
+
maxSize?: number;
|
|
1981
|
+
onFiles?: (files: File[]) => void;
|
|
1982
|
+
className?: string;
|
|
1983
|
+
disabled?: boolean;
|
|
1984
|
+
}
|
|
1985
|
+
declare function FileUpload({ accept, multiple, maxSize, onFiles, className, disabled }: FileUploadProps): react_jsx_runtime.JSX.Element;
|
|
1986
|
+
interface FileUploadPreviewProps {
|
|
1987
|
+
files: File[];
|
|
1988
|
+
onRemove: (index: number) => void;
|
|
1989
|
+
className?: string;
|
|
1990
|
+
}
|
|
1991
|
+
declare function FileUploadPreview({ files, onRemove, className }: FileUploadPreviewProps): react_jsx_runtime.JSX.Element | null;
|
|
1992
|
+
|
|
1993
|
+
/**
|
|
1994
|
+
* FloatingLabelInput — input where the label sits inside the field at rest
|
|
1995
|
+
* and floats up + shrinks when the field is focused OR contains text. Cross-
|
|
1996
|
+
* platform parity with @otfdashkit/ui-native's FloatingLabelInput.
|
|
1997
|
+
*
|
|
1998
|
+
* Reference (visual spec): https://www.grepped.ai/animations/components-ui/floating-label
|
|
1999
|
+
*
|
|
2000
|
+
* Forms pattern, not a primitive — pairs with Form, Field, AutoForm helpers.
|
|
2001
|
+
*/
|
|
2002
|
+
interface FloatingLabelInputProps extends Omit<React__default.InputHTMLAttributes<HTMLInputElement>, 'placeholder'> {
|
|
2003
|
+
/** Label that floats up when focused or filled. */
|
|
2004
|
+
label: string;
|
|
2005
|
+
/** Inline error text shown below the input. */
|
|
2006
|
+
error?: string;
|
|
2007
|
+
/** Helper text shown below the input when there's no error. */
|
|
2008
|
+
hint?: string;
|
|
2009
|
+
/** Wrap the field + label + helper text in this className for layout. */
|
|
2010
|
+
wrapperClassName?: string;
|
|
2011
|
+
}
|
|
2012
|
+
declare const FloatingLabelInput: React__default.ForwardRefExoticComponent<FloatingLabelInputProps & React__default.RefAttributes<HTMLInputElement>>;
|
|
2013
|
+
|
|
2014
|
+
declare function FormField<T extends FieldValues, N extends FieldPath<T>>(props: ControllerProps<T, N>): react_jsx_runtime.JSX.Element;
|
|
2015
|
+
declare function FormItem({ className, ...props }: React__default.HTMLAttributes<HTMLDivElement>): react_jsx_runtime.JSX.Element;
|
|
2016
|
+
interface FormLabelProps extends React__default.LabelHTMLAttributes<HTMLLabelElement> {
|
|
2017
|
+
error?: boolean;
|
|
2018
|
+
}
|
|
2019
|
+
declare const FormLabel: React__default.ForwardRefExoticComponent<FormLabelProps & React__default.RefAttributes<HTMLLabelElement>>;
|
|
2020
|
+
declare const FormControl: React__default.ForwardRefExoticComponent<React__default.HTMLAttributes<HTMLDivElement> & React__default.RefAttributes<HTMLDivElement>>;
|
|
2021
|
+
declare function FormDescription({ className, ...props }: React__default.HTMLAttributes<HTMLParagraphElement>): react_jsx_runtime.JSX.Element;
|
|
2022
|
+
declare function FormMessage({ className, children, name }: React__default.HTMLAttributes<HTMLParagraphElement> & {
|
|
2023
|
+
name?: string;
|
|
2024
|
+
}): react_jsx_runtime.JSX.Element | null;
|
|
2025
|
+
|
|
2026
|
+
interface ObjectFieldProps {
|
|
2027
|
+
title: string;
|
|
2028
|
+
description?: string;
|
|
2029
|
+
collapsible?: boolean;
|
|
2030
|
+
defaultOpen?: boolean;
|
|
2031
|
+
children: React__default.ReactNode;
|
|
2032
|
+
className?: string;
|
|
2033
|
+
}
|
|
2034
|
+
declare function ObjectField({ title, description, collapsible, defaultOpen, children, className, }: ObjectFieldProps): react_jsx_runtime.JSX.Element;
|
|
2035
|
+
|
|
2036
|
+
interface PasswordInputProps extends InputProps {
|
|
2037
|
+
strength?: boolean;
|
|
2038
|
+
}
|
|
2039
|
+
declare const PasswordInput: React__default.ForwardRefExoticComponent<PasswordInputProps & React__default.RefAttributes<HTMLInputElement>>;
|
|
2040
|
+
|
|
2041
|
+
interface SearchInputProps extends Omit<InputProps, 'onChange'> {
|
|
2042
|
+
shortcut?: string;
|
|
2043
|
+
onClear?: () => void;
|
|
2044
|
+
onChange?: (value: string) => void;
|
|
2045
|
+
}
|
|
2046
|
+
declare const SearchInput: React__default.ForwardRefExoticComponent<SearchInputProps & React__default.RefAttributes<HTMLInputElement>>;
|
|
2047
|
+
|
|
2048
|
+
interface StepFormProps {
|
|
2049
|
+
steps: string[];
|
|
2050
|
+
onSubmit: () => void;
|
|
2051
|
+
children: React__default.ReactNode;
|
|
2052
|
+
className?: string;
|
|
2053
|
+
}
|
|
2054
|
+
declare function StepForm({ steps, onSubmit, children, className }: StepFormProps): react_jsx_runtime.JSX.Element;
|
|
2055
|
+
interface StepFormStepProps {
|
|
2056
|
+
title: string;
|
|
2057
|
+
description?: string;
|
|
2058
|
+
children: React__default.ReactNode;
|
|
2059
|
+
}
|
|
2060
|
+
declare function StepFormStep({ title, description, children }: StepFormStepProps): react_jsx_runtime.JSX.Element;
|
|
2061
|
+
interface StepFormNavigationProps {
|
|
2062
|
+
onSubmit?: () => void;
|
|
2063
|
+
submitLabel?: string;
|
|
2064
|
+
}
|
|
2065
|
+
declare function StepFormNavigation({ onSubmit, submitLabel }: StepFormNavigationProps): react_jsx_runtime.JSX.Element;
|
|
2066
|
+
|
|
2067
|
+
type TagsProps = Omit<React__default.HTMLAttributes<HTMLDivElement>, 'onChange'> & {
|
|
2068
|
+
/** Controlled value. */
|
|
2069
|
+
value?: string[];
|
|
2070
|
+
/** Uncontrolled initial value. */
|
|
2071
|
+
defaultValue?: string[];
|
|
2072
|
+
/** Fires whenever the tag list changes. */
|
|
2073
|
+
onValueChange?: (tags: string[]) => void;
|
|
2074
|
+
/** Optional autocomplete pool. */
|
|
2075
|
+
suggestions?: string[];
|
|
2076
|
+
placeholder?: string;
|
|
2077
|
+
/** Cap the total tags. When reached, the input is disabled. */
|
|
2078
|
+
maxTags?: number;
|
|
2079
|
+
/** Return false or an error string to reject a tag. */
|
|
2080
|
+
validate?: (tag: string) => boolean | string;
|
|
2081
|
+
/** Allow duplicate tags. Default false. */
|
|
2082
|
+
allowDuplicates?: boolean;
|
|
2083
|
+
disabled?: boolean;
|
|
2084
|
+
};
|
|
2085
|
+
/**
|
|
2086
|
+
* Multi-select tag input with optional autocomplete.
|
|
2087
|
+
* Enter / Comma / Tab commits the current input, Backspace on empty input removes the last tag.
|
|
2088
|
+
*/
|
|
2089
|
+
declare const Tags: React__default.ForwardRefExoticComponent<Omit<React__default.HTMLAttributes<HTMLDivElement>, "onChange"> & {
|
|
2090
|
+
/** Controlled value. */
|
|
2091
|
+
value?: string[];
|
|
2092
|
+
/** Uncontrolled initial value. */
|
|
2093
|
+
defaultValue?: string[];
|
|
2094
|
+
/** Fires whenever the tag list changes. */
|
|
2095
|
+
onValueChange?: (tags: string[]) => void;
|
|
2096
|
+
/** Optional autocomplete pool. */
|
|
2097
|
+
suggestions?: string[];
|
|
2098
|
+
placeholder?: string;
|
|
2099
|
+
/** Cap the total tags. When reached, the input is disabled. */
|
|
2100
|
+
maxTags?: number;
|
|
2101
|
+
/** Return false or an error string to reject a tag. */
|
|
2102
|
+
validate?: (tag: string) => boolean | string;
|
|
2103
|
+
/** Allow duplicate tags. Default false. */
|
|
2104
|
+
allowDuplicates?: boolean;
|
|
2105
|
+
disabled?: boolean;
|
|
2106
|
+
} & React__default.RefAttributes<HTMLDivElement>>;
|
|
2107
|
+
|
|
2108
|
+
interface AppShellCtxValue {
|
|
2109
|
+
collapsed: boolean;
|
|
2110
|
+
setCollapsed: (v: boolean) => void;
|
|
2111
|
+
mobileOpen: boolean;
|
|
2112
|
+
setMobileOpen: (v: boolean) => void;
|
|
2113
|
+
}
|
|
2114
|
+
declare const useAppShell: () => AppShellCtxValue;
|
|
2115
|
+
interface AppShellProps$1 extends React__default.HTMLAttributes<HTMLDivElement> {
|
|
2116
|
+
defaultCollapsed?: boolean;
|
|
2117
|
+
}
|
|
2118
|
+
declare const AppShell$1: React__default.ForwardRefExoticComponent<AppShellProps$1 & React__default.RefAttributes<HTMLDivElement>>;
|
|
2119
|
+
/**
|
|
2120
|
+
* Sidebar wrapper.
|
|
2121
|
+
* On MOBILE → hidden (display: none) by default; shown as a fixed overlay when mobileOpen=true.
|
|
2122
|
+
* On DESKTOP → always visible as a normal flex child.
|
|
2123
|
+
*
|
|
2124
|
+
* ALWAYS wrap <Sidebar> in <AppShellSidebar> — never put <Sidebar> directly in <AppShell>.
|
|
2125
|
+
* Without this wrapper the sidebar is visible on all screen sizes.
|
|
2126
|
+
*/
|
|
2127
|
+
declare const AppShellSidebar: React__default.ForwardRefExoticComponent<React__default.HTMLAttributes<HTMLDivElement> & React__default.RefAttributes<HTMLDivElement>>;
|
|
2128
|
+
declare const AppShellMain: React__default.ForwardRefExoticComponent<React__default.HTMLAttributes<HTMLDivElement> & React__default.RefAttributes<HTMLDivElement>>;
|
|
2129
|
+
/**
|
|
2130
|
+
* Hamburger/close button — place in your mobile header bar (md:hidden).
|
|
2131
|
+
* Toggles the sidebar overlay on mobile.
|
|
2132
|
+
*/
|
|
2133
|
+
declare const MobileSidebarTrigger: React__default.ForwardRefExoticComponent<React__default.ButtonHTMLAttributes<HTMLButtonElement> & React__default.RefAttributes<HTMLButtonElement>>;
|
|
2134
|
+
|
|
2135
|
+
type ContainerSize = 'sm' | 'md' | 'lg' | 'xl' | 'full';
|
|
2136
|
+
interface ContainerProps extends React__default.HTMLAttributes<HTMLDivElement> {
|
|
2137
|
+
size?: ContainerSize;
|
|
2138
|
+
noPadding?: boolean;
|
|
2139
|
+
}
|
|
2140
|
+
declare const Container: React__default.ForwardRefExoticComponent<ContainerProps & React__default.RefAttributes<HTMLDivElement>>;
|
|
2141
|
+
|
|
2142
|
+
interface NavbarProps extends React__default.HTMLAttributes<HTMLElement> {
|
|
2143
|
+
sticky?: boolean;
|
|
2144
|
+
border?: boolean;
|
|
2145
|
+
}
|
|
2146
|
+
declare const Navbar: React__default.ForwardRefExoticComponent<NavbarProps & React__default.RefAttributes<HTMLElement>>;
|
|
2147
|
+
declare const NavbarBrand: React__default.ForwardRefExoticComponent<React__default.HTMLAttributes<HTMLDivElement> & React__default.RefAttributes<HTMLDivElement>>;
|
|
2148
|
+
type Align$1 = 'start' | 'center' | 'end';
|
|
2149
|
+
interface NavbarContentProps extends React__default.HTMLAttributes<HTMLDivElement> {
|
|
2150
|
+
align?: Align$1;
|
|
2151
|
+
}
|
|
2152
|
+
declare const NavbarContent: React__default.ForwardRefExoticComponent<NavbarContentProps & React__default.RefAttributes<HTMLDivElement>>;
|
|
2153
|
+
declare const NavbarItem: React__default.ForwardRefExoticComponent<React__default.HTMLAttributes<HTMLDivElement> & React__default.RefAttributes<HTMLDivElement>>;
|
|
2154
|
+
|
|
2155
|
+
interface PageProps extends React__default.HTMLAttributes<HTMLDivElement> {
|
|
2156
|
+
maxWidth?: string;
|
|
2157
|
+
}
|
|
2158
|
+
declare const Page: React__default.ForwardRefExoticComponent<PageProps & React__default.RefAttributes<HTMLDivElement>>;
|
|
2159
|
+
declare const PageHeader: React__default.ForwardRefExoticComponent<React__default.HTMLAttributes<HTMLDivElement> & React__default.RefAttributes<HTMLDivElement>>;
|
|
2160
|
+
declare const PageTitle: React__default.ForwardRefExoticComponent<React__default.HTMLAttributes<HTMLHeadingElement> & React__default.RefAttributes<HTMLHeadingElement>>;
|
|
2161
|
+
declare const PageDescription: React__default.ForwardRefExoticComponent<React__default.HTMLAttributes<HTMLParagraphElement> & React__default.RefAttributes<HTMLParagraphElement>>;
|
|
2162
|
+
declare const PageActions: React__default.ForwardRefExoticComponent<React__default.HTMLAttributes<HTMLDivElement> & React__default.RefAttributes<HTMLDivElement>>;
|
|
2163
|
+
declare const PageBody: React__default.ForwardRefExoticComponent<React__default.HTMLAttributes<HTMLDivElement> & React__default.RefAttributes<HTMLDivElement>>;
|
|
2164
|
+
|
|
2165
|
+
interface ResizeBoxProps extends React__default.HTMLAttributes<HTMLDivElement> {
|
|
2166
|
+
resize?: 'horizontal' | 'vertical' | 'both' | 'none';
|
|
2167
|
+
minWidth?: number;
|
|
2168
|
+
minHeight?: number;
|
|
2169
|
+
}
|
|
2170
|
+
declare const ResizeBox: React__default.ForwardRefExoticComponent<ResizeBoxProps & React__default.RefAttributes<HTMLDivElement>>;
|
|
2171
|
+
declare const ResizeHandle: React__default.ForwardRefExoticComponent<React__default.HTMLAttributes<HTMLDivElement> & React__default.RefAttributes<HTMLDivElement>>;
|
|
2172
|
+
|
|
2173
|
+
interface SidebarProps extends React__default.HTMLAttributes<HTMLDivElement> {
|
|
2174
|
+
collapsed?: boolean;
|
|
2175
|
+
onCollapse?: () => void;
|
|
2176
|
+
width?: string;
|
|
2177
|
+
}
|
|
2178
|
+
declare const Sidebar$1: React__default.ForwardRefExoticComponent<SidebarProps & React__default.RefAttributes<HTMLDivElement>>;
|
|
2179
|
+
declare const SidebarHeader$1: React__default.ForwardRefExoticComponent<React__default.HTMLAttributes<HTMLDivElement> & React__default.RefAttributes<HTMLDivElement>>;
|
|
2180
|
+
declare const SidebarContent: React__default.ForwardRefExoticComponent<React__default.HTMLAttributes<HTMLDivElement> & React__default.RefAttributes<HTMLDivElement>>;
|
|
2181
|
+
declare const SidebarFooter$1: React__default.ForwardRefExoticComponent<React__default.HTMLAttributes<HTMLDivElement> & React__default.RefAttributes<HTMLDivElement>>;
|
|
2182
|
+
declare const SidebarGroup: React__default.ForwardRefExoticComponent<React__default.HTMLAttributes<HTMLDivElement> & React__default.RefAttributes<HTMLDivElement>>;
|
|
2183
|
+
declare const SidebarSeparator$1: React__default.ForwardRefExoticComponent<React__default.HTMLAttributes<HTMLDivElement> & React__default.RefAttributes<HTMLDivElement>>;
|
|
2184
|
+
declare const SidebarGroupLabel: React__default.ForwardRefExoticComponent<React__default.HTMLAttributes<HTMLDivElement> & React__default.RefAttributes<HTMLDivElement>>;
|
|
2185
|
+
interface SidebarItemProps$1 extends Omit<React__default.HTMLAttributes<HTMLDivElement>, 'onClick'> {
|
|
2186
|
+
icon?: React__default.ReactNode;
|
|
2187
|
+
label: string;
|
|
2188
|
+
active?: boolean;
|
|
2189
|
+
href?: string;
|
|
2190
|
+
badge?: string | number;
|
|
2191
|
+
onClick?: React__default.MouseEventHandler<HTMLElement>;
|
|
2192
|
+
}
|
|
2193
|
+
declare const SidebarItem$1: React__default.ForwardRefExoticComponent<SidebarItemProps$1 & React__default.RefAttributes<HTMLDivElement>>;
|
|
2194
|
+
|
|
2195
|
+
declare const SplitPage: React__default.ForwardRefExoticComponent<React__default.HTMLAttributes<HTMLDivElement> & React__default.RefAttributes<HTMLDivElement>>;
|
|
2196
|
+
interface SplitPageListProps extends React__default.HTMLAttributes<HTMLDivElement> {
|
|
2197
|
+
width?: string;
|
|
2198
|
+
}
|
|
2199
|
+
declare const SplitPageList: React__default.ForwardRefExoticComponent<SplitPageListProps & React__default.RefAttributes<HTMLDivElement>>;
|
|
2200
|
+
declare const SplitPageDetail: React__default.ForwardRefExoticComponent<React__default.HTMLAttributes<HTMLDivElement> & React__default.RefAttributes<HTMLDivElement>>;
|
|
2201
|
+
|
|
2202
|
+
type Direction = 'row' | 'col' | 'row-reverse' | 'col-reverse';
|
|
2203
|
+
type Align = 'start' | 'center' | 'end' | 'stretch' | 'baseline';
|
|
2204
|
+
type Justify = 'start' | 'center' | 'end' | 'between' | 'around' | 'evenly';
|
|
2205
|
+
interface StackProps extends React__default.HTMLAttributes<HTMLDivElement> {
|
|
2206
|
+
gap?: number;
|
|
2207
|
+
direction?: Direction;
|
|
2208
|
+
align?: Align;
|
|
2209
|
+
justify?: Justify;
|
|
2210
|
+
wrap?: boolean;
|
|
2211
|
+
}
|
|
2212
|
+
declare const Stack: React__default.ForwardRefExoticComponent<StackProps & React__default.RefAttributes<HTMLDivElement>>;
|
|
2213
|
+
declare const HStack: React__default.ForwardRefExoticComponent<Omit<StackProps, "direction"> & React__default.RefAttributes<HTMLDivElement>>;
|
|
2214
|
+
declare const VStack: React__default.ForwardRefExoticComponent<Omit<StackProps, "direction"> & React__default.RefAttributes<HTMLDivElement>>;
|
|
2215
|
+
|
|
2216
|
+
/** Full-viewport flex column layout */
|
|
2217
|
+
declare const PageLayout: React__default.ForwardRefExoticComponent<React__default.HTMLAttributes<HTMLDivElement> & React__default.RefAttributes<HTMLDivElement>>;
|
|
2218
|
+
interface PageHeaderProps {
|
|
2219
|
+
title?: React__default.ReactNode;
|
|
2220
|
+
description?: React__default.ReactNode;
|
|
2221
|
+
actions?: React__default.ReactNode;
|
|
2222
|
+
back?: React__default.ReactNode;
|
|
2223
|
+
children?: React__default.ReactNode;
|
|
2224
|
+
className?: string;
|
|
2225
|
+
}
|
|
2226
|
+
|
|
2227
|
+
/**
|
|
2228
|
+
* PageContainer — responsive max-width ladder.
|
|
2229
|
+
*/
|
|
2230
|
+
declare const PageContainer: React__default.ForwardRefExoticComponent<React__default.HTMLAttributes<HTMLDivElement> & React__default.RefAttributes<HTMLDivElement>>;
|
|
2231
|
+
declare const PageMain: React__default.ForwardRefExoticComponent<React__default.HTMLAttributes<HTMLDivElement> & React__default.RefAttributes<HTMLDivElement>>;
|
|
2232
|
+
|
|
2233
|
+
interface CommandItem {
|
|
2234
|
+
id: string;
|
|
2235
|
+
label: string;
|
|
2236
|
+
icon?: React__default.ReactNode;
|
|
2237
|
+
shortcut?: string;
|
|
2238
|
+
description?: string;
|
|
2239
|
+
onSelect: () => void;
|
|
2240
|
+
}
|
|
2241
|
+
interface CommandGroup {
|
|
2242
|
+
heading: string;
|
|
2243
|
+
items: CommandItem[];
|
|
2244
|
+
}
|
|
2245
|
+
interface CommandPaletteProps {
|
|
2246
|
+
open: boolean;
|
|
2247
|
+
onOpenChange: (open: boolean) => void;
|
|
2248
|
+
groups: CommandGroup[];
|
|
2249
|
+
placeholder?: string;
|
|
2250
|
+
className?: string;
|
|
2251
|
+
}
|
|
2252
|
+
interface CommandPaletteContextValue {
|
|
2253
|
+
open: boolean;
|
|
2254
|
+
setOpen: (open: boolean) => void;
|
|
2255
|
+
toggle: () => void;
|
|
2256
|
+
}
|
|
2257
|
+
declare function CommandPaletteProvider({ children, }: {
|
|
2258
|
+
children: React__default.ReactNode;
|
|
2259
|
+
}): react_jsx_runtime.JSX.Element;
|
|
2260
|
+
declare function useCommandPalette(): CommandPaletteContextValue;
|
|
2261
|
+
declare function CommandPalette({ open, onOpenChange, groups, placeholder, className, }: CommandPaletteProps): react_jsx_runtime.JSX.Element | null;
|
|
2262
|
+
|
|
2263
|
+
interface HotkeyDef {
|
|
2264
|
+
/** Key combo: e.g. 'c', '?', '⌘k', 'g d', 'Escape' */
|
|
2265
|
+
key: string;
|
|
2266
|
+
/** Human-readable label shown in help sheet */
|
|
2267
|
+
label: string;
|
|
2268
|
+
handler: () => void;
|
|
2269
|
+
group?: string;
|
|
2270
|
+
}
|
|
2271
|
+
interface HotkeysContextValue {
|
|
2272
|
+
hotkeys: HotkeyDef[];
|
|
2273
|
+
registerHotkeys: (hotkeys: HotkeyDef[]) => () => void;
|
|
2274
|
+
}
|
|
2275
|
+
declare function HotkeysProvider({ children, hotkeys: initialHotkeys, }: {
|
|
2276
|
+
children: React__default.ReactNode;
|
|
2277
|
+
hotkeys?: HotkeyDef[];
|
|
2278
|
+
}): react_jsx_runtime.JSX.Element;
|
|
2279
|
+
declare function useHotkeys(): HotkeysContextValue;
|
|
2280
|
+
declare function HelpSheet({ open, onClose, }: {
|
|
2281
|
+
open: boolean;
|
|
2282
|
+
onClose: () => void;
|
|
2283
|
+
}): react_jsx_runtime.JSX.Element | null;
|
|
2284
|
+
|
|
2285
|
+
type ToastType = 'default' | 'success' | 'error' | 'warning' | 'info';
|
|
2286
|
+
interface ToastOptions {
|
|
2287
|
+
type?: ToastType;
|
|
2288
|
+
duration?: number;
|
|
2289
|
+
description?: string;
|
|
2290
|
+
id?: string;
|
|
2291
|
+
action?: {
|
|
2292
|
+
label: string;
|
|
2293
|
+
onClick: () => void;
|
|
2294
|
+
};
|
|
2295
|
+
}
|
|
2296
|
+
interface ToastEvent {
|
|
2297
|
+
id: string;
|
|
2298
|
+
message: string;
|
|
2299
|
+
options: ToastOptions;
|
|
2300
|
+
}
|
|
2301
|
+
type Listener = (event: ToastEvent) => void;
|
|
2302
|
+
type DismissListener = (id: string) => void;
|
|
2303
|
+
declare const toastEmitter: {
|
|
2304
|
+
emit(message: string, options?: ToastOptions): string;
|
|
2305
|
+
dismiss(id: string): void;
|
|
2306
|
+
onToast(fn: Listener): () => void;
|
|
2307
|
+
onDismiss(fn: DismissListener): () => void;
|
|
2308
|
+
};
|
|
2309
|
+
declare function toastFn(message: string, opts?: ToastOptions): string;
|
|
2310
|
+
declare namespace toastFn {
|
|
2311
|
+
var success: (message: string, opts?: Omit<ToastOptions, "type">) => string;
|
|
2312
|
+
var error: (message: string, opts?: Omit<ToastOptions, "type">) => string;
|
|
2313
|
+
var warning: (message: string, opts?: Omit<ToastOptions, "type">) => string;
|
|
2314
|
+
var info: (message: string, opts?: Omit<ToastOptions, "type">) => string;
|
|
2315
|
+
var dismiss: (id: string) => void;
|
|
2316
|
+
}
|
|
2317
|
+
|
|
2318
|
+
declare function Toaster(): react_jsx_runtime.JSX.Element;
|
|
2319
|
+
|
|
2320
|
+
type HeadingLevel = 'h1' | 'h2' | 'h3' | 'h4' | 'h5' | 'h6';
|
|
2321
|
+
type GradientPreset = 'primary' | 'slate' | 'warm' | 'cosmic' | 'terminal' | 'aurora' | 'sunset' | 'custom';
|
|
2322
|
+
interface GradientHeadingProps extends React__default.HTMLAttributes<HTMLHeadingElement> {
|
|
2323
|
+
as?: HeadingLevel;
|
|
2324
|
+
preset?: GradientPreset;
|
|
2325
|
+
/** Tailwind gradient `from-` color class e.g. "from-indigo-400" */
|
|
2326
|
+
from?: string;
|
|
2327
|
+
/** Tailwind gradient `via-` color class (optional) */
|
|
2328
|
+
via?: string;
|
|
2329
|
+
/** Tailwind gradient `to-` color class e.g. "to-violet-400" */
|
|
2330
|
+
to?: string;
|
|
2331
|
+
/** Direction — default 'br' (bottom-right) */
|
|
2332
|
+
direction?: 'r' | 'br' | 'b' | 'bl' | 'l';
|
|
2333
|
+
/** Whether to animate the gradient position */
|
|
2334
|
+
animate?: boolean;
|
|
2335
|
+
}
|
|
2336
|
+
declare const GradientHeading: React__default.ForwardRefExoticComponent<GradientHeadingProps & React__default.RefAttributes<HTMLHeadingElement>>;
|
|
2337
|
+
|
|
2338
|
+
interface AnimatedNumberProps extends React__default.HTMLAttributes<HTMLSpanElement> {
|
|
2339
|
+
/** Target value to animate to */
|
|
2340
|
+
value: number;
|
|
2341
|
+
/** Starting value (default 0) */
|
|
2342
|
+
from?: number;
|
|
2343
|
+
/** Animation duration in ms (default 1200) */
|
|
2344
|
+
duration?: number;
|
|
2345
|
+
/** Decimal places (default 0) */
|
|
2346
|
+
decimals?: number;
|
|
2347
|
+
/** Prefix string e.g. "$" */
|
|
2348
|
+
prefix?: string;
|
|
2349
|
+
/** Suffix string e.g. "%" or "k" */
|
|
2350
|
+
suffix?: string;
|
|
2351
|
+
/** Easing function (default easeOutExpo) */
|
|
2352
|
+
easing?: (t: number) => number;
|
|
2353
|
+
/** Whether to start animating immediately or wait for intersection */
|
|
2354
|
+
autoStart?: boolean;
|
|
2355
|
+
/** Locale for number formatting */
|
|
2356
|
+
locale?: string;
|
|
2357
|
+
/** Format with locale grouping (e.g. 1,234) */
|
|
2358
|
+
format?: boolean;
|
|
2359
|
+
}
|
|
2360
|
+
declare const AnimatedNumber: React__default.ForwardRefExoticComponent<AnimatedNumberProps & React__default.RefAttributes<HTMLSpanElement>>;
|
|
2361
|
+
|
|
2362
|
+
interface TextRevealProps {
|
|
2363
|
+
/** The text to reveal */
|
|
2364
|
+
text: string;
|
|
2365
|
+
/** Reveal mode */
|
|
2366
|
+
mode?: 'words' | 'chars' | 'lines';
|
|
2367
|
+
/** Delay between each word/char in ms (default 50) */
|
|
2368
|
+
stagger?: number;
|
|
2369
|
+
/** Individual item animation duration in ms (default 500) */
|
|
2370
|
+
duration?: number;
|
|
2371
|
+
/** Whether to start on intersection (default true) */
|
|
2372
|
+
autoStart?: boolean;
|
|
2373
|
+
/** Base animation delay before first unit starts (ms) */
|
|
2374
|
+
delay?: number;
|
|
2375
|
+
as?: 'p' | 'span' | 'div' | 'h1' | 'h2' | 'h3' | 'h4';
|
|
2376
|
+
className?: string;
|
|
2377
|
+
style?: React__default.CSSProperties;
|
|
2378
|
+
}
|
|
2379
|
+
declare function TextReveal({ text, mode, stagger, duration, autoStart, delay, as: Tag, className, style, }: TextRevealProps): React__default.DetailedReactHTMLElement<{
|
|
2380
|
+
ref: React__default.MutableRefObject<HTMLElement | null>;
|
|
2381
|
+
'data-slot': string;
|
|
2382
|
+
className: string;
|
|
2383
|
+
'aria-label': string;
|
|
2384
|
+
style: React__default.CSSProperties | undefined;
|
|
2385
|
+
}, HTMLElement>;
|
|
2386
|
+
declare namespace TextReveal {
|
|
2387
|
+
var displayName: string;
|
|
2388
|
+
}
|
|
2389
|
+
|
|
2390
|
+
interface TypewriterProps {
|
|
2391
|
+
/** Array of strings to cycle through */
|
|
2392
|
+
words: string[];
|
|
2393
|
+
/** Typing speed in ms per character (default 60) */
|
|
2394
|
+
typeSpeed?: number;
|
|
2395
|
+
/** Deleting speed in ms per character (default 30) */
|
|
2396
|
+
deleteSpeed?: number;
|
|
2397
|
+
/** Pause after finishing a word in ms (default 1800) */
|
|
2398
|
+
pauseAfter?: number;
|
|
2399
|
+
/** Whether to loop (default true) */
|
|
2400
|
+
loop?: boolean;
|
|
2401
|
+
/** Show cursor (default true) */
|
|
2402
|
+
cursor?: boolean;
|
|
2403
|
+
/** Custom cursor character (default '|') */
|
|
2404
|
+
cursorChar?: string;
|
|
2405
|
+
as?: 'span' | 'p' | 'div' | 'h1' | 'h2' | 'h3';
|
|
2406
|
+
className?: string;
|
|
2407
|
+
style?: React__default.CSSProperties;
|
|
2408
|
+
}
|
|
2409
|
+
declare function Typewriter({ words, typeSpeed, deleteSpeed, pauseAfter, loop, cursor, cursorChar, as: Tag, className, style, }: TypewriterProps): React__default.DetailedReactHTMLElement<{
|
|
2410
|
+
'data-slot': string;
|
|
2411
|
+
className: string;
|
|
2412
|
+
'aria-label': string | undefined;
|
|
2413
|
+
style: React__default.CSSProperties | undefined;
|
|
2414
|
+
}, HTMLElement>;
|
|
2415
|
+
declare namespace Typewriter {
|
|
2416
|
+
var displayName: string;
|
|
2417
|
+
}
|
|
2418
|
+
|
|
2419
|
+
declare const headingVariants: (props?: ({
|
|
2420
|
+
size?: "sm" | "lg" | "xl" | "display" | "md" | "xs" | null | undefined;
|
|
2421
|
+
tone?: "default" | "muted" | "accent" | null | undefined;
|
|
2422
|
+
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
2423
|
+
type HeadingTag = 'h1' | 'h2' | 'h3' | 'h4' | 'h5' | 'h6';
|
|
2424
|
+
interface HeadingProps extends React__default.HTMLAttributes<HTMLHeadingElement>, VariantProps<typeof headingVariants> {
|
|
2425
|
+
as?: HeadingTag;
|
|
2426
|
+
}
|
|
2427
|
+
declare const Heading: React__default.ForwardRefExoticComponent<HeadingProps & React__default.RefAttributes<HTMLHeadingElement>>;
|
|
2428
|
+
|
|
2429
|
+
declare const bodyVariants: (props?: ({
|
|
2430
|
+
size?: "sm" | "lg" | "md" | "xs" | null | undefined;
|
|
2431
|
+
tone?: "default" | "muted" | "subtle" | null | undefined;
|
|
2432
|
+
weight?: "medium" | "normal" | "semibold" | null | undefined;
|
|
2433
|
+
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
2434
|
+
type BodyTag = 'p' | 'span' | 'div';
|
|
2435
|
+
interface BodyProps extends React__default.HTMLAttributes<HTMLElement>, VariantProps<typeof bodyVariants> {
|
|
2436
|
+
as?: BodyTag;
|
|
2437
|
+
}
|
|
2438
|
+
declare const Body: React__default.ForwardRefExoticComponent<BodyProps & React__default.RefAttributes<HTMLElement>>;
|
|
2439
|
+
|
|
2440
|
+
declare const captionVariants: (props?: ({
|
|
2441
|
+
tone?: "default" | "accent" | "subtle" | null | undefined;
|
|
2442
|
+
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
2443
|
+
interface CaptionProps extends React__default.HTMLAttributes<HTMLSpanElement>, VariantProps<typeof captionVariants> {
|
|
2444
|
+
}
|
|
2445
|
+
declare const Caption: React__default.ForwardRefExoticComponent<CaptionProps & React__default.RefAttributes<HTMLSpanElement>>;
|
|
2446
|
+
|
|
2447
|
+
interface CodeProps extends React__default.HTMLAttributes<HTMLElement> {
|
|
2448
|
+
/** Render as a block <pre><code> instead of inline */
|
|
2449
|
+
block?: boolean;
|
|
2450
|
+
}
|
|
2451
|
+
declare const Code: React__default.ForwardRefExoticComponent<CodeProps & React__default.RefAttributes<HTMLElement>>;
|
|
2452
|
+
|
|
2453
|
+
type GradientBackgroundPreset = 'slate' | 'warm' | 'cosmic' | 'terminal' | 'aurora' | 'subtle' | 'custom';
|
|
2454
|
+
interface GradientBackgroundProps extends React__default.HTMLAttributes<HTMLDivElement> {
|
|
2455
|
+
/** Full-screen fixed backdrop */
|
|
2456
|
+
fixed?: boolean;
|
|
2457
|
+
preset?: GradientBackgroundPreset;
|
|
2458
|
+
/** Custom gradient CSS string e.g. "radial-gradient(...)" — only when preset='custom' */
|
|
2459
|
+
gradient?: string;
|
|
2460
|
+
/** Additional noise/texture overlay (subtle grain) */
|
|
2461
|
+
noise?: boolean;
|
|
2462
|
+
/** Radial spot blend on top */
|
|
2463
|
+
radial?: boolean;
|
|
2464
|
+
}
|
|
2465
|
+
declare const GradientBackground: React__default.ForwardRefExoticComponent<GradientBackgroundProps & React__default.RefAttributes<HTMLDivElement>>;
|
|
2466
|
+
|
|
2467
|
+
interface AnimatedGradientProps extends React__default.HTMLAttributes<HTMLDivElement> {
|
|
2468
|
+
/** Gradient color stops — at least 2 required */
|
|
2469
|
+
colors?: string[];
|
|
2470
|
+
/** Speed multiplier (default 1) */
|
|
2471
|
+
speed?: number;
|
|
2472
|
+
/** Animation style */
|
|
2473
|
+
variant?: 'mesh' | 'shift' | 'pulse';
|
|
2474
|
+
/** Whether to blur the gradient blobs (mesh only) */
|
|
2475
|
+
blur?: boolean;
|
|
2476
|
+
}
|
|
2477
|
+
/**
|
|
2478
|
+
* AnimatedGradient — CSS-animation-based ambient background.
|
|
2479
|
+
* Three variants:
|
|
2480
|
+
* - mesh: 3 drifting radial blobs (most visual impact)
|
|
2481
|
+
* - shift: linear-gradient that shifts position
|
|
2482
|
+
* - pulse: radial that breathes in/out
|
|
2483
|
+
*
|
|
2484
|
+
* No JS animation loop — all CSS, zero RAF overhead.
|
|
2485
|
+
*/
|
|
2486
|
+
declare const AnimatedGradient: React__default.ForwardRefExoticComponent<AnimatedGradientProps & React__default.RefAttributes<HTMLDivElement>>;
|
|
2487
|
+
|
|
2488
|
+
interface DottedBackgroundProps extends React__default.HTMLAttributes<HTMLDivElement> {
|
|
2489
|
+
/** Dot color (default uses --border token) */
|
|
2490
|
+
color?: string;
|
|
2491
|
+
/** Dot size in px (default 1) */
|
|
2492
|
+
dotSize?: number;
|
|
2493
|
+
/** Gap between dots in px (default 24) */
|
|
2494
|
+
gap?: number;
|
|
2495
|
+
/** Vignette fade at edges */
|
|
2496
|
+
vignette?: boolean;
|
|
2497
|
+
fixed?: boolean;
|
|
2498
|
+
}
|
|
2499
|
+
declare const DottedBackground: React__default.ForwardRefExoticComponent<DottedBackgroundProps & React__default.RefAttributes<HTMLDivElement>>;
|
|
2500
|
+
|
|
2501
|
+
interface NoiseBackgroundProps extends React__default.HTMLAttributes<HTMLDivElement> {
|
|
2502
|
+
/** Noise opacity 0–1 (default 0.04) */
|
|
2503
|
+
opacity?: number;
|
|
2504
|
+
/** Noise grain size — maps to SVG baseFrequency (default 0.65) */
|
|
2505
|
+
frequency?: number;
|
|
2506
|
+
fixed?: boolean;
|
|
2507
|
+
}
|
|
2508
|
+
declare const NoiseBackground: React__default.ForwardRefExoticComponent<NoiseBackgroundProps & React__default.RefAttributes<HTMLDivElement>>;
|
|
2509
|
+
|
|
2510
|
+
interface HeroShaderAProps extends React__default.HTMLAttributes<HTMLDivElement> {
|
|
2511
|
+
/** Three blob colors in 0..1 RGB tuples. Default mixes primary + chart-2 + chart-3. */
|
|
2512
|
+
colors?: [readonly [number, number, number], readonly [number, number, number], readonly [number, number, number]];
|
|
2513
|
+
/** Background color underneath the blobs (0..1 RGB). Default very-dark. */
|
|
2514
|
+
background?: readonly [number, number, number];
|
|
2515
|
+
/** 0..1 — how strongly each blob mixes over the background. Default 0.7. */
|
|
2516
|
+
intensity?: number;
|
|
2517
|
+
/** Animation speed multiplier. Default 1. Set 0 to freeze. */
|
|
2518
|
+
speed?: number;
|
|
2519
|
+
/** Render quality (DPR cap). Default 1.5. */
|
|
2520
|
+
pixelRatio?: number;
|
|
2521
|
+
}
|
|
2522
|
+
declare const HeroShaderA: React__default.ForwardRefExoticComponent<HeroShaderAProps & React__default.RefAttributes<HTMLDivElement>>;
|
|
2523
|
+
|
|
2524
|
+
interface ScrollHeaderProps {
|
|
2525
|
+
/** Title shown large when at top, shrinks on scroll */
|
|
2526
|
+
title: React__default.ReactNode;
|
|
2527
|
+
/** Optional subtitle / description */
|
|
2528
|
+
subtitle?: React__default.ReactNode;
|
|
2529
|
+
/** Actions slot (right side) — always visible */
|
|
2530
|
+
actions?: React__default.ReactNode;
|
|
2531
|
+
/** Left slot (e.g. back button) */
|
|
2532
|
+
left?: React__default.ReactNode;
|
|
2533
|
+
/**
|
|
2534
|
+
* Scroll container to watch — defaults to window.
|
|
2535
|
+
* Pass a ref to an overflow-auto div for in-page scroll.
|
|
2536
|
+
*/
|
|
2537
|
+
scrollRef?: React__default.RefObject<HTMLElement>;
|
|
2538
|
+
/** Scroll offset that triggers the shrink (default 40px) */
|
|
2539
|
+
threshold?: number;
|
|
2540
|
+
/** Whether to show a bottom border when scrolled */
|
|
2541
|
+
bordered?: boolean;
|
|
2542
|
+
/** Sticky positioning (default true) */
|
|
2543
|
+
sticky?: boolean;
|
|
2544
|
+
className?: string;
|
|
2545
|
+
}
|
|
2546
|
+
/**
|
|
2547
|
+
* ScrollHeader — title shrinks + header gains backdrop on scroll.
|
|
2548
|
+
*/
|
|
2549
|
+
declare const ScrollHeader: React__default.ForwardRefExoticComponent<ScrollHeaderProps & React__default.RefAttributes<HTMLDivElement>>;
|
|
2550
|
+
|
|
2551
|
+
type MotionPreset = 'fadeIn' | 'fadeOut' | 'slideUp' | 'slideDown' | 'slideLeft' | 'slideRight' | 'scaleIn' | 'scaleOut' | 'blurIn' | 'blurOut' | 'none';
|
|
2552
|
+
interface MotionVariants {
|
|
2553
|
+
initial: TargetAndTransition;
|
|
2554
|
+
animate: TargetAndTransition;
|
|
2555
|
+
exit: TargetAndTransition;
|
|
2556
|
+
}
|
|
2557
|
+
declare const MOTION_PRESETS: Record<MotionPreset, MotionVariants>;
|
|
2558
|
+
declare const DEFAULT_TRANSITION: {
|
|
2559
|
+
duration: number;
|
|
2560
|
+
ease: readonly [0.16, 1, 0.3, 1];
|
|
2561
|
+
};
|
|
2562
|
+
|
|
2563
|
+
interface FadeInProps extends HTMLMotionProps<'div'> {
|
|
2564
|
+
delay?: number;
|
|
2565
|
+
duration?: number;
|
|
2566
|
+
children: React__default.ReactNode;
|
|
2567
|
+
}
|
|
2568
|
+
declare const FadeIn: React__default.ForwardRefExoticComponent<Omit<FadeInProps, "ref"> & React__default.RefAttributes<HTMLDivElement>>;
|
|
2569
|
+
|
|
2570
|
+
interface SlideInProps extends HTMLMotionProps<'div'> {
|
|
2571
|
+
direction?: 'up' | 'down' | 'left' | 'right';
|
|
2572
|
+
delay?: number;
|
|
2573
|
+
duration?: number;
|
|
2574
|
+
children: React__default.ReactNode;
|
|
2575
|
+
}
|
|
2576
|
+
declare const SlideIn: React__default.ForwardRefExoticComponent<Omit<SlideInProps, "ref"> & React__default.RefAttributes<HTMLDivElement>>;
|
|
2577
|
+
|
|
2578
|
+
interface ScaleInProps extends HTMLMotionProps<'div'> {
|
|
2579
|
+
delay?: number;
|
|
2580
|
+
duration?: number;
|
|
2581
|
+
children: React__default.ReactNode;
|
|
2582
|
+
}
|
|
2583
|
+
declare const ScaleIn: React__default.ForwardRefExoticComponent<Omit<ScaleInProps, "ref"> & React__default.RefAttributes<HTMLDivElement>>;
|
|
2584
|
+
|
|
2585
|
+
interface RevealProps {
|
|
2586
|
+
preset?: MotionPreset;
|
|
2587
|
+
delay?: number;
|
|
2588
|
+
once?: boolean;
|
|
2589
|
+
children: React__default.ReactNode;
|
|
2590
|
+
className?: string;
|
|
2591
|
+
}
|
|
2592
|
+
declare function Reveal({ preset, delay, once, children, className }: RevealProps): react_jsx_runtime.JSX.Element;
|
|
2593
|
+
|
|
2594
|
+
interface StaggerProps {
|
|
2595
|
+
staggerDelay?: number;
|
|
2596
|
+
preset?: 'fadeIn' | 'slideUp' | 'scaleIn';
|
|
2597
|
+
children: React__default.ReactNode;
|
|
2598
|
+
className?: string;
|
|
2599
|
+
once?: boolean;
|
|
2600
|
+
}
|
|
2601
|
+
declare function Stagger({ staggerDelay, preset, children, className, once }: StaggerProps): react_jsx_runtime.JSX.Element;
|
|
2602
|
+
|
|
2603
|
+
interface MorphProps extends HTMLMotionProps<'div'> {
|
|
2604
|
+
layoutId: string;
|
|
2605
|
+
children: React__default.ReactNode;
|
|
2606
|
+
}
|
|
2607
|
+
declare const Morph: React__default.ForwardRefExoticComponent<Omit<MorphProps, "ref"> & React__default.RefAttributes<HTMLDivElement>>;
|
|
2608
|
+
|
|
2609
|
+
interface RippleProps extends Omit<HTMLMotionProps<'div'>, 'onPointerDown'> {
|
|
2610
|
+
/** Ripple color — defaults to current text color at 20% opacity */
|
|
2611
|
+
color?: string;
|
|
2612
|
+
/** Duration in seconds */
|
|
2613
|
+
duration?: number;
|
|
2614
|
+
children: React__default.ReactNode;
|
|
2615
|
+
}
|
|
2616
|
+
declare const Ripple: React__default.ForwardRefExoticComponent<Omit<RippleProps, "ref"> & React__default.RefAttributes<HTMLDivElement>>;
|
|
2617
|
+
|
|
2618
|
+
interface ParallaxProps extends HTMLMotionProps<'div'> {
|
|
2619
|
+
/** Parallax offset in pixels — positive = moves up slower, negative = moves down slower */
|
|
2620
|
+
offset?: number;
|
|
2621
|
+
/** Custom scroll container ref (defaults to viewport) */
|
|
2622
|
+
scrollRef?: React__default.RefObject<HTMLElement | null>;
|
|
2623
|
+
children: React__default.ReactNode;
|
|
2624
|
+
}
|
|
2625
|
+
declare const Parallax: React__default.ForwardRefExoticComponent<Omit<ParallaxProps, "ref"> & React__default.RefAttributes<HTMLDivElement>>;
|
|
2626
|
+
|
|
2627
|
+
declare function useLayoutId(key: string): string;
|
|
2628
|
+
|
|
2629
|
+
interface TransitionProps {
|
|
2630
|
+
show?: boolean;
|
|
2631
|
+
children: React__default.ReactNode;
|
|
2632
|
+
mode?: 'wait' | 'sync' | 'popLayout';
|
|
2633
|
+
}
|
|
2634
|
+
declare function Transition({ show, children, mode }: TransitionProps): react_jsx_runtime.JSX.Element;
|
|
2635
|
+
|
|
2636
|
+
interface DataGridProps<T extends object> {
|
|
2637
|
+
columns: ColumnDef<T, unknown>[];
|
|
2638
|
+
data: T[];
|
|
2639
|
+
/** Enable row checkboxes + bulk selection */
|
|
2640
|
+
selectable?: boolean;
|
|
2641
|
+
/** Called when selection changes */
|
|
2642
|
+
onSelectionChange?: (rows: T[]) => void;
|
|
2643
|
+
/** Enable column sorting */
|
|
2644
|
+
sortable?: boolean;
|
|
2645
|
+
/** Enable column visibility toggle */
|
|
2646
|
+
columnVisibility?: boolean;
|
|
2647
|
+
/** Enable column resize */
|
|
2648
|
+
resizable?: boolean;
|
|
2649
|
+
/** Enable client-side column filtering */
|
|
2650
|
+
filterable?: boolean;
|
|
2651
|
+
/** Virtualise rows for large datasets — enable when rows > ~100 */
|
|
2652
|
+
virtual?: boolean;
|
|
2653
|
+
/** Height of the scroll container when virtual=true (default 480) */
|
|
2654
|
+
virtualHeight?: number;
|
|
2655
|
+
/** Row height estimate for virtualizer (default 40) */
|
|
2656
|
+
rowHeight?: number;
|
|
2657
|
+
/** Slot rendered when data is empty */
|
|
2658
|
+
emptyState?: React__default.ReactNode;
|
|
2659
|
+
/** Slot rendered while loading */
|
|
2660
|
+
loading?: boolean;
|
|
2661
|
+
/** Number of skeleton rows to show while loading (default 5) */
|
|
2662
|
+
skeletonRows?: number;
|
|
2663
|
+
className?: string;
|
|
2664
|
+
/** Called on row click */
|
|
2665
|
+
onRowClick?: (row: T) => void;
|
|
2666
|
+
}
|
|
2667
|
+
declare function DataGrid<T extends object>({ columns, data, selectable, onSelectionChange, sortable, columnVisibility: showColumnVisibility, resizable, filterable, virtual, virtualHeight, rowHeight, emptyState, loading, skeletonRows, className, onRowClick, }: DataGridProps<T>): react_jsx_runtime.JSX.Element;
|
|
2668
|
+
|
|
2669
|
+
/**
|
|
2670
|
+
* DataList — vertical list of rows with left/right slots.
|
|
2671
|
+
* Use for settings rows, notification lists, audit logs, file lists.
|
|
2672
|
+
* Pairs with `DataListItem` for each row.
|
|
2673
|
+
*/
|
|
2674
|
+
interface DataListProps extends React__default.HTMLAttributes<HTMLUListElement> {
|
|
2675
|
+
divided?: boolean;
|
|
2676
|
+
bordered?: boolean;
|
|
2677
|
+
}
|
|
2678
|
+
declare const DataList: React__default.ForwardRefExoticComponent<DataListProps & React__default.RefAttributes<HTMLUListElement>>;
|
|
2679
|
+
interface DataListItemProps extends Omit<React__default.LiHTMLAttributes<HTMLLIElement>, 'title'> {
|
|
2680
|
+
left?: React__default.ReactNode;
|
|
2681
|
+
title?: React__default.ReactNode;
|
|
2682
|
+
description?: React__default.ReactNode;
|
|
2683
|
+
right?: React__default.ReactNode;
|
|
2684
|
+
interactive?: boolean;
|
|
2685
|
+
onSelect?: () => void;
|
|
2686
|
+
}
|
|
2687
|
+
declare const DataListItem: React__default.ForwardRefExoticComponent<DataListItemProps & React__default.RefAttributes<HTMLLIElement>>;
|
|
2688
|
+
|
|
2689
|
+
type CalendarEvent = {
|
|
2690
|
+
id: string;
|
|
2691
|
+
title: string;
|
|
2692
|
+
start: Date;
|
|
2693
|
+
end: Date;
|
|
2694
|
+
/** CSS color string (e.g. 'hsl(var(--chart-1))' or '#6366f1'). */
|
|
2695
|
+
color?: string;
|
|
2696
|
+
data?: unknown;
|
|
2697
|
+
};
|
|
2698
|
+
type EventCalendarView = 'month' | 'week' | 'day';
|
|
2699
|
+
type EventCalendarProps = Omit<React__default.HTMLAttributes<HTMLDivElement>, 'onSelect'> & {
|
|
2700
|
+
events: CalendarEvent[];
|
|
2701
|
+
view?: EventCalendarView;
|
|
2702
|
+
onViewChange?: (view: EventCalendarView) => void;
|
|
2703
|
+
date?: Date;
|
|
2704
|
+
defaultDate?: Date;
|
|
2705
|
+
onDateChange?: (date: Date) => void;
|
|
2706
|
+
onEventClick?: (event: CalendarEvent) => void;
|
|
2707
|
+
/** Omit to disable click-to-create. */
|
|
2708
|
+
onEventCreate?: (range: {
|
|
2709
|
+
start: Date;
|
|
2710
|
+
end: Date;
|
|
2711
|
+
}) => void;
|
|
2712
|
+
/** Omit to disable drag-to-resize. */
|
|
2713
|
+
onEventResize?: (eventId: string, newEnd: Date) => void;
|
|
2714
|
+
/** 0 = Sunday, 1 = Monday, etc. Default 0. */
|
|
2715
|
+
weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6;
|
|
2716
|
+
};
|
|
2717
|
+
declare const EventCalendar: React__default.ForwardRefExoticComponent<Omit<React__default.HTMLAttributes<HTMLDivElement>, "onSelect"> & {
|
|
2718
|
+
events: CalendarEvent[];
|
|
2719
|
+
view?: EventCalendarView;
|
|
2720
|
+
onViewChange?: (view: EventCalendarView) => void;
|
|
2721
|
+
date?: Date;
|
|
2722
|
+
defaultDate?: Date;
|
|
2723
|
+
onDateChange?: (date: Date) => void;
|
|
2724
|
+
onEventClick?: (event: CalendarEvent) => void;
|
|
2725
|
+
/** Omit to disable click-to-create. */
|
|
2726
|
+
onEventCreate?: (range: {
|
|
2727
|
+
start: Date;
|
|
2728
|
+
end: Date;
|
|
2729
|
+
}) => void;
|
|
2730
|
+
/** Omit to disable drag-to-resize. */
|
|
2731
|
+
onEventResize?: (eventId: string, newEnd: Date) => void;
|
|
2732
|
+
/** 0 = Sunday, 1 = Monday, etc. Default 0. */
|
|
2733
|
+
weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6;
|
|
2734
|
+
} & React__default.RefAttributes<HTMLDivElement>>;
|
|
2735
|
+
|
|
2736
|
+
/**
|
|
2737
|
+
* GridList — fluid responsive grid using CSS grid auto-fill + minmax.
|
|
2738
|
+
* Columns reflow automatically based on `minItemWidth`; no breakpoints.
|
|
2739
|
+
* Per OTF UX rule: never hard-code fixed-breakpoint columns.
|
|
2740
|
+
*/
|
|
2741
|
+
interface GridListProps extends React__default.HTMLAttributes<HTMLUListElement> {
|
|
2742
|
+
/** Minimum width per item (px). Columns fill to that, then reflow. */
|
|
2743
|
+
minItemWidth?: number;
|
|
2744
|
+
/** Gap between items in rem (default 1 = 16px) */
|
|
2745
|
+
gap?: number;
|
|
2746
|
+
}
|
|
2747
|
+
declare const GridList: React__default.ForwardRefExoticComponent<GridListProps & React__default.RefAttributes<HTMLUListElement>>;
|
|
2748
|
+
interface GridListItemProps extends React__default.LiHTMLAttributes<HTMLLIElement> {
|
|
2749
|
+
interactive?: boolean;
|
|
2750
|
+
onSelect?: () => void;
|
|
2751
|
+
}
|
|
2752
|
+
declare const GridListItem: React__default.ForwardRefExoticComponent<GridListItemProps & React__default.RefAttributes<HTMLLIElement>>;
|
|
2753
|
+
|
|
2754
|
+
type ImageCropProps = Omit<React__default.HTMLAttributes<HTMLDivElement>, 'onComplete'> & {
|
|
2755
|
+
/** Image URL — required. */
|
|
2756
|
+
src: string;
|
|
2757
|
+
/** Optional aspect-ratio lock, e.g. 16/9, 1, 4/3. */
|
|
2758
|
+
aspect?: number;
|
|
2759
|
+
/** Minimum crop width in pixels. */
|
|
2760
|
+
minWidth?: number;
|
|
2761
|
+
/** Minimum crop height in pixels. */
|
|
2762
|
+
minHeight?: number;
|
|
2763
|
+
/** Initial crop in % values. */
|
|
2764
|
+
defaultCrop?: {
|
|
2765
|
+
x: number;
|
|
2766
|
+
y: number;
|
|
2767
|
+
width: number;
|
|
2768
|
+
height: number;
|
|
2769
|
+
};
|
|
2770
|
+
/** Render a circular crop mask (for avatars). Default false. */
|
|
2771
|
+
circular?: boolean;
|
|
2772
|
+
/** Fired (debounced) after a drag with the cropped data URL + pixel crop. */
|
|
2773
|
+
onComplete?: (result: {
|
|
2774
|
+
croppedSrc: string;
|
|
2775
|
+
crop: PixelCrop;
|
|
2776
|
+
}) => void;
|
|
2777
|
+
/** Output image format. Default 'png'. */
|
|
2778
|
+
outputFormat?: 'png' | 'jpeg' | 'webp';
|
|
2779
|
+
/** Output image quality 0..1 (jpeg/webp only). Default 0.92. */
|
|
2780
|
+
outputQuality?: number;
|
|
2781
|
+
/** Alt text for the source image. */
|
|
2782
|
+
alt?: string;
|
|
2783
|
+
};
|
|
2784
|
+
/**
|
|
2785
|
+
* Drag-to-crop image utility built on `react-image-crop`.
|
|
2786
|
+
* Supports aspect-ratio lock, circular masking, and emits a base64 data URL
|
|
2787
|
+
* of the cropped region via `onComplete` (debounced 200ms).
|
|
2788
|
+
*/
|
|
2789
|
+
declare const ImageCrop: React__default.ForwardRefExoticComponent<Omit<React__default.HTMLAttributes<HTMLDivElement>, "onComplete"> & {
|
|
2790
|
+
/** Image URL — required. */
|
|
2791
|
+
src: string;
|
|
2792
|
+
/** Optional aspect-ratio lock, e.g. 16/9, 1, 4/3. */
|
|
2793
|
+
aspect?: number;
|
|
2794
|
+
/** Minimum crop width in pixels. */
|
|
2795
|
+
minWidth?: number;
|
|
2796
|
+
/** Minimum crop height in pixels. */
|
|
2797
|
+
minHeight?: number;
|
|
2798
|
+
/** Initial crop in % values. */
|
|
2799
|
+
defaultCrop?: {
|
|
2800
|
+
x: number;
|
|
2801
|
+
y: number;
|
|
2802
|
+
width: number;
|
|
2803
|
+
height: number;
|
|
2804
|
+
};
|
|
2805
|
+
/** Render a circular crop mask (for avatars). Default false. */
|
|
2806
|
+
circular?: boolean;
|
|
2807
|
+
/** Fired (debounced) after a drag with the cropped data URL + pixel crop. */
|
|
2808
|
+
onComplete?: (result: {
|
|
2809
|
+
croppedSrc: string;
|
|
2810
|
+
crop: PixelCrop;
|
|
2811
|
+
}) => void;
|
|
2812
|
+
/** Output image format. Default 'png'. */
|
|
2813
|
+
outputFormat?: "png" | "jpeg" | "webp";
|
|
2814
|
+
/** Output image quality 0..1 (jpeg/webp only). Default 0.92. */
|
|
2815
|
+
outputQuality?: number;
|
|
2816
|
+
/** Alt text for the source image. */
|
|
2817
|
+
alt?: string;
|
|
2818
|
+
} & React__default.RefAttributes<HTMLDivElement>>;
|
|
2819
|
+
|
|
2820
|
+
type TreeNode = {
|
|
2821
|
+
id: string;
|
|
2822
|
+
label: string;
|
|
2823
|
+
icon?: React__default.ReactNode;
|
|
2824
|
+
children?: TreeNode[];
|
|
2825
|
+
data?: unknown;
|
|
2826
|
+
};
|
|
2827
|
+
type TreeMovePosition = 'before' | 'after' | 'inside';
|
|
2828
|
+
type TreeProps = Omit<React__default.HTMLAttributes<HTMLDivElement>, 'onSelect'> & {
|
|
2829
|
+
data: TreeNode[];
|
|
2830
|
+
defaultExpandedIds?: string[];
|
|
2831
|
+
/** Controlled expanded ids. */
|
|
2832
|
+
expandedIds?: string[];
|
|
2833
|
+
onExpandedChange?: (ids: string[]) => void;
|
|
2834
|
+
selectedId?: string;
|
|
2835
|
+
onSelect?: (node: TreeNode) => void;
|
|
2836
|
+
/** Define to enable drag-reorder. Omit to disable drag entirely. */
|
|
2837
|
+
onMove?: (sourceId: string, targetId: string, position: TreeMovePosition) => void;
|
|
2838
|
+
/** Show vertical guide lines from caret to children. Default true. */
|
|
2839
|
+
showLines?: boolean;
|
|
2840
|
+
/** Use @tanstack/react-virtual to virtualize visible rows. Default false. */
|
|
2841
|
+
virtualize?: boolean;
|
|
2842
|
+
/** Used when virtualize=true. Default 32. */
|
|
2843
|
+
estimatedRowHeight?: number;
|
|
2844
|
+
};
|
|
2845
|
+
/**
|
|
2846
|
+
* Recursive expandable Tree built from primitives.
|
|
2847
|
+
* - Uncontrolled: pass `defaultExpandedIds`.
|
|
2848
|
+
* - Controlled: pass `expandedIds` + `onExpandedChange`.
|
|
2849
|
+
* - Drag-reorder: provide `onMove`. Omit to disable drag.
|
|
2850
|
+
* - Virtualization: opt-in via `virtualize` (uses @tanstack/react-virtual).
|
|
2851
|
+
*/
|
|
2852
|
+
declare const Tree: React__default.ForwardRefExoticComponent<Omit<React__default.HTMLAttributes<HTMLDivElement>, "onSelect"> & {
|
|
2853
|
+
data: TreeNode[];
|
|
2854
|
+
defaultExpandedIds?: string[];
|
|
2855
|
+
/** Controlled expanded ids. */
|
|
2856
|
+
expandedIds?: string[];
|
|
2857
|
+
onExpandedChange?: (ids: string[]) => void;
|
|
2858
|
+
selectedId?: string;
|
|
2859
|
+
onSelect?: (node: TreeNode) => void;
|
|
2860
|
+
/** Define to enable drag-reorder. Omit to disable drag entirely. */
|
|
2861
|
+
onMove?: (sourceId: string, targetId: string, position: TreeMovePosition) => void;
|
|
2862
|
+
/** Show vertical guide lines from caret to children. Default true. */
|
|
2863
|
+
showLines?: boolean;
|
|
2864
|
+
/** Use @tanstack/react-virtual to virtualize visible rows. Default false. */
|
|
2865
|
+
virtualize?: boolean;
|
|
2866
|
+
/** Used when virtualize=true. Default 32. */
|
|
2867
|
+
estimatedRowHeight?: number;
|
|
2868
|
+
} & React__default.RefAttributes<HTMLDivElement>>;
|
|
2869
|
+
|
|
2870
|
+
type VideoChapter = {
|
|
2871
|
+
/** Chapter start time in seconds. */
|
|
2872
|
+
time: number;
|
|
2873
|
+
title: string;
|
|
2874
|
+
};
|
|
2875
|
+
type VideoPlayerProps = Omit<React__default.VideoHTMLAttributes<HTMLVideoElement>, 'controls'> & {
|
|
2876
|
+
src: string;
|
|
2877
|
+
poster?: string;
|
|
2878
|
+
/** Optional chapter markers + dropdown list. */
|
|
2879
|
+
chapters?: VideoChapter[];
|
|
2880
|
+
/** Default true. False hides the bottom control bar (hero loops). */
|
|
2881
|
+
controls?: boolean;
|
|
2882
|
+
onPlay?: () => void;
|
|
2883
|
+
onPause?: () => void;
|
|
2884
|
+
onTimeUpdate?: (time: number, duration: number) => void;
|
|
2885
|
+
onEnded?: () => void;
|
|
2886
|
+
className?: string;
|
|
2887
|
+
/** Wrapper class — override the default `aspect-video`. */
|
|
2888
|
+
containerClassName?: string;
|
|
2889
|
+
};
|
|
2890
|
+
declare const VideoPlayer: React__default.ForwardRefExoticComponent<Omit<React__default.VideoHTMLAttributes<HTMLVideoElement>, "controls"> & {
|
|
2891
|
+
src: string;
|
|
2892
|
+
poster?: string;
|
|
2893
|
+
/** Optional chapter markers + dropdown list. */
|
|
2894
|
+
chapters?: VideoChapter[];
|
|
2895
|
+
/** Default true. False hides the bottom control bar (hero loops). */
|
|
2896
|
+
controls?: boolean;
|
|
2897
|
+
onPlay?: () => void;
|
|
2898
|
+
onPause?: () => void;
|
|
2899
|
+
onTimeUpdate?: (time: number, duration: number) => void;
|
|
2900
|
+
onEnded?: () => void;
|
|
2901
|
+
className?: string;
|
|
2902
|
+
/** Wrapper class — override the default `aspect-video`. */
|
|
2903
|
+
containerClassName?: string;
|
|
2904
|
+
} & React__default.RefAttributes<HTMLDivElement>>;
|
|
2905
|
+
|
|
2906
|
+
interface ComboboxOption {
|
|
2907
|
+
value: string;
|
|
2908
|
+
label: string;
|
|
2909
|
+
/** Optional supporting text rendered below the label */
|
|
2910
|
+
description?: string;
|
|
2911
|
+
/** Disabled options are rendered but not selectable */
|
|
2912
|
+
disabled?: boolean;
|
|
2913
|
+
}
|
|
2914
|
+
interface ComboboxProps {
|
|
2915
|
+
options: ComboboxOption[];
|
|
2916
|
+
value?: string;
|
|
2917
|
+
onChange?: (value: string) => void;
|
|
2918
|
+
placeholder?: string;
|
|
2919
|
+
searchPlaceholder?: string;
|
|
2920
|
+
emptyMessage?: string;
|
|
2921
|
+
disabled?: boolean;
|
|
2922
|
+
className?: string;
|
|
2923
|
+
/** Width of the popover content. Defaults to match the trigger. */
|
|
2924
|
+
contentWidth?: 'trigger' | 'auto';
|
|
2925
|
+
}
|
|
2926
|
+
declare function Combobox({ options, value, onChange, placeholder, searchPlaceholder, emptyMessage, disabled, className, contentWidth, }: ComboboxProps): react_jsx_runtime.JSX.Element;
|
|
2927
|
+
|
|
2928
|
+
type Mode = 'light' | 'dark' | 'system';
|
|
2929
|
+
interface ThemeSwitchProps {
|
|
2930
|
+
/** Controlled initial mode. Falls back to localStorage + system. */
|
|
2931
|
+
defaultMode?: Mode;
|
|
2932
|
+
onChange?: (mode: Mode) => void;
|
|
2933
|
+
className?: string;
|
|
2934
|
+
/** Render as a three-way segmented control (default) or a single cycling button. */
|
|
2935
|
+
variant?: 'segmented' | 'button';
|
|
2936
|
+
}
|
|
2937
|
+
declare function ThemeSwitch({ defaultMode, onChange, className, variant }: ThemeSwitchProps): react_jsx_runtime.JSX.Element;
|
|
2938
|
+
|
|
2939
|
+
interface ColorSchemeSelectProps {
|
|
2940
|
+
options?: ComboboxOption[];
|
|
2941
|
+
defaultValue?: string;
|
|
2942
|
+
onChange?: (themeClass: string) => void;
|
|
2943
|
+
className?: string;
|
|
2944
|
+
}
|
|
2945
|
+
declare function ColorSchemeSelect({ options, defaultValue, onChange, className, }: ColorSchemeSelectProps): react_jsx_runtime.JSX.Element;
|
|
2946
|
+
|
|
2947
|
+
interface AppShellProps {
|
|
2948
|
+
sidebar: React__default.ReactNode;
|
|
2949
|
+
children: React__default.ReactNode;
|
|
2950
|
+
className?: string;
|
|
2951
|
+
}
|
|
2952
|
+
declare function AppShell({ sidebar, children, className }: AppShellProps): react_jsx_runtime.JSX.Element;
|
|
2953
|
+
|
|
2954
|
+
interface SidebarContextValue {
|
|
2955
|
+
collapsed: boolean;
|
|
2956
|
+
toggleCollapsed: () => void;
|
|
2957
|
+
}
|
|
2958
|
+
declare function useSidebar(): SidebarContextValue;
|
|
2959
|
+
declare function SidebarRoot({ children, storageKey, defaultCollapsed, className }: {
|
|
2960
|
+
children: React__default.ReactNode;
|
|
2961
|
+
storageKey?: string;
|
|
2962
|
+
defaultCollapsed?: boolean;
|
|
2963
|
+
className?: string;
|
|
2964
|
+
}): react_jsx_runtime.JSX.Element;
|
|
2965
|
+
declare function SidebarHeader({ children, className }: {
|
|
2966
|
+
children: React__default.ReactNode;
|
|
2967
|
+
className?: string;
|
|
2968
|
+
}): react_jsx_runtime.JSX.Element;
|
|
2969
|
+
declare function SidebarNav({ children, className }: {
|
|
2970
|
+
children: React__default.ReactNode;
|
|
2971
|
+
className?: string;
|
|
2972
|
+
}): react_jsx_runtime.JSX.Element;
|
|
2973
|
+
interface SidebarItemProps {
|
|
2974
|
+
icon?: React__default.ReactNode;
|
|
2975
|
+
label: string;
|
|
2976
|
+
href?: string;
|
|
2977
|
+
active?: boolean;
|
|
2978
|
+
badge?: React__default.ReactNode;
|
|
2979
|
+
onClick?: () => void;
|
|
2980
|
+
className?: string;
|
|
2981
|
+
}
|
|
2982
|
+
declare function SidebarItem({ icon, label, href, active, badge, onClick, className }: SidebarItemProps): react_jsx_runtime.JSX.Element;
|
|
2983
|
+
declare function SidebarFooter({ children, className }: {
|
|
2984
|
+
children: React__default.ReactNode;
|
|
2985
|
+
className?: string;
|
|
2986
|
+
}): react_jsx_runtime.JSX.Element;
|
|
2987
|
+
declare function SidebarSeparator({ label, className }: {
|
|
2988
|
+
label?: string;
|
|
2989
|
+
className?: string;
|
|
2990
|
+
}): react_jsx_runtime.JSX.Element;
|
|
2991
|
+
declare const Sidebar: typeof SidebarRoot & {
|
|
2992
|
+
Header: typeof SidebarHeader;
|
|
2993
|
+
Nav: typeof SidebarNav;
|
|
2994
|
+
Item: typeof SidebarItem;
|
|
2995
|
+
Footer: typeof SidebarFooter;
|
|
2996
|
+
Separator: typeof SidebarSeparator;
|
|
2997
|
+
};
|
|
2998
|
+
|
|
2999
|
+
interface SidebarResizerProps {
|
|
3000
|
+
/** Min width in px */
|
|
3001
|
+
min?: number;
|
|
3002
|
+
/** Max width in px */
|
|
3003
|
+
max?: number;
|
|
3004
|
+
/** Default width in px */
|
|
3005
|
+
defaultWidth?: number;
|
|
3006
|
+
/** localStorage key for persisting width */
|
|
3007
|
+
storageKey?: string;
|
|
3008
|
+
/** Called when width changes */
|
|
3009
|
+
onWidthChange?: (width: number) => void;
|
|
3010
|
+
/** CSS class for the resize handle */
|
|
3011
|
+
className?: string;
|
|
3012
|
+
}
|
|
3013
|
+
/**
|
|
3014
|
+
* Sidebar drag-to-resize handle. Place as a sibling or absolute child on the trailing edge of the sidebar.
|
|
3015
|
+
* Uses pointer capture for smooth dragging.
|
|
3016
|
+
*/
|
|
3017
|
+
declare function SidebarResizer({ min, max, defaultWidth, storageKey, onWidthChange, className, }: SidebarResizerProps): react_jsx_runtime.JSX.Element;
|
|
3018
|
+
|
|
3019
|
+
interface Workspace {
|
|
3020
|
+
id: string;
|
|
3021
|
+
name: string;
|
|
3022
|
+
logo?: React__default.ReactNode;
|
|
3023
|
+
}
|
|
3024
|
+
interface WorkspacesMenuProps {
|
|
3025
|
+
workspaces: Workspace[];
|
|
3026
|
+
current: string;
|
|
3027
|
+
onSelect: (id: string) => void;
|
|
3028
|
+
className?: string;
|
|
3029
|
+
}
|
|
3030
|
+
declare function WorkspacesMenu({ workspaces, current, onSelect, className }: WorkspacesMenuProps): react_jsx_runtime.JSX.Element;
|
|
3031
|
+
|
|
3032
|
+
interface AppShellUserMenuProps {
|
|
3033
|
+
name: string;
|
|
3034
|
+
email: string;
|
|
3035
|
+
avatar?: string;
|
|
3036
|
+
onSignOut: () => void;
|
|
3037
|
+
onProfile?: () => void;
|
|
3038
|
+
onSettings?: () => void;
|
|
3039
|
+
className?: string;
|
|
3040
|
+
}
|
|
3041
|
+
declare function AppShellUserMenu({ name, email, avatar, onSignOut, onProfile, onSettings, className }: AppShellUserMenuProps): react_jsx_runtime.JSX.Element;
|
|
3042
|
+
|
|
3043
|
+
interface BillingStatusProps {
|
|
3044
|
+
plan: string;
|
|
3045
|
+
/** e.g. "3 of 5 seats" or "12 days left" */
|
|
3046
|
+
usage?: string;
|
|
3047
|
+
/** 0-100 progress percentage */
|
|
3048
|
+
progress?: number;
|
|
3049
|
+
onUpgrade?: () => void;
|
|
3050
|
+
className?: string;
|
|
3051
|
+
}
|
|
3052
|
+
declare function BillingStatus({ plan, usage, progress, onUpgrade, className }: BillingStatusProps): react_jsx_runtime.JSX.Element | null;
|
|
3053
|
+
|
|
3054
|
+
interface SortableNavItem extends SidebarItemProps {
|
|
3055
|
+
id: string;
|
|
3056
|
+
}
|
|
3057
|
+
interface SortableNavProps {
|
|
3058
|
+
items: SortableNavItem[];
|
|
3059
|
+
onReorder: (items: SortableNavItem[]) => void;
|
|
3060
|
+
className?: string;
|
|
3061
|
+
}
|
|
3062
|
+
declare function SortableNav({ items, onReorder, className }: SortableNavProps): react_jsx_runtime.JSX.Element;
|
|
3063
|
+
|
|
3064
|
+
export { Accordion, AccordionContent, AccordionItem, AccordionTrigger, ActivityHeatmap, type ActivityHeatmapProps, DataGrid as AdvancedDataGrid, type DataGridProps as AdvancedDataGridProps, Alert, AlertDescription, AlertDialog, AlertDialogAction, AlertDialogCancel, AlertDialogContent, AlertDialogDescription, AlertDialogFooter, AlertDialogHeader, AlertDialogOverlay, AlertDialogPortal, AlertDialogTitle, AlertDialogTrigger, AlertTitle, AnimatedGradient, type AnimatedGradientProps, AnimatedNumber, type AnimatedNumberProps, AppShell$1 as AppShell, AppShellMain, type AppShellProps$1 as AppShellProps, AppShellSidebar, AppShellUserMenu, type AppShellUserMenuProps, Sidebar as AppSidebar, type SidebarItemProps as AppSidebarItemProps, AreaChart, type AreaChartProps, ArrayField, type ArrayFieldProps, AspectRatio, AutoForm, type AutoFormProps, Avatar, AvatarFallback, AvatarGroup, type AvatarGroupProps, AvatarImage, Badge, type BadgeProps, Banner, type BannerAction, type BannerProps, BarChart, type BarChartProps, BarList, type BarListItem, type BarListProps, Beacon, type BeaconProps, BillingStatus, type BillingStatusProps, Body, type BodyProps, Breadcrumb, BreadcrumbItem, BreadcrumbPage, BreadcrumbSeparator, BulkActions, Button, type ButtonProps, Calendar, CalendarDayButton, type CalendarEvent, Caption, type CaptionProps, Card, CardContent, CardDescription, CardFooter, CardHeader, CardTitle, Carousel, type CarouselApi, CarouselContent, CarouselItem, CarouselNext, CarouselPrevious, CartLineItem, type CartLineItemProps, type ChartConfig, ChartContainer, ChartLegend, ChartLegendContent, type ChartLegendContentProps, ChartStyle, ChartTooltip, ChartTooltipContent, type ChartTooltipContentProps, ChatDetail, type ChatDetailProps, Checkbox, Checklist, ChecklistItem, type ChecklistItemProps, type ChecklistProps, Code, CodeBlock, type CodeBlockProps, type CodeProps, Collapsible, CollapsibleContent, CollapsibleTrigger, ColorPicker, type ColorPickerProps, ColorSchemeSelect, type ColorSchemeSelectProps, Combobox, type ComboboxOption, type ComboboxProps, Command, CommandBar, CommandBarEmpty, CommandBarGroup, CommandBarItem, CommandDialog, CommandEmpty, CommandGroup$1 as CommandGroup, CommandInput, CommandItem$2 as CommandItem, CommandList, CommandItem$1 as CommandListItem, CommandPalette, type CommandPaletteProps, CommandPaletteProvider, CommandSeparator, CommandShortcut, Comparison, type ComparisonProps, Container, type ContainerProps, ContextMenu, ContextMenuCheckboxItem, ContextMenuContent, ContextMenuGroup, ContextMenuItem, ContextMenuLabel, ContextMenuPortal, ContextMenuRadioGroup, ContextMenuRadioItem, ContextMenuSeparator, ContextMenuShortcut, ContextMenuSub, ContextMenuSubContent, ContextMenuSubTrigger, ContextMenuTrigger, DEFAULT_THEME_OPTIONS, DEFAULT_TRANSITION, DataGrid$1 as DataGrid, DataList, DataListItem, type DataListItemProps, type DataListProps, DataTable, DataTableColumnHeader, DataTablePagination, DataTableToolbar, DatePicker, type DatePickerProps, Dialog, DialogClose, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogOverlay, DialogPortal, DialogTitle, DialogTrigger, DottedBackground, type DottedBackgroundProps, Drawer, DrawerClose, DrawerContent, DrawerDescription, DrawerFooter, DrawerHeader, DrawerOverlay, DrawerPortal, DrawerTitle, DrawerTrigger, DropdownMenu, DropdownMenuCheckboxItem, DropdownMenuContent, DropdownMenuGroup, DropdownMenuItem, DropdownMenuLabel, DropdownMenuPortal, DropdownMenuRadioGroup, DropdownMenuRadioItem, DropdownMenuSeparator, DropdownMenuShortcut, DropdownMenuSub, DropdownMenuSubContent, DropdownMenuSubTrigger, DropdownMenuTrigger, EmptyCart, type EmptyCartProps, EmptyState, EmptyStateIcon, EventCalendar, type EventCalendarProps, type EventCalendarView, type FabPosition, type FabSection, FadeIn, type FadeInProps, FeedbackModal, type FeedbackModalProps, Field, FieldDescription, FieldError, FieldLabel, type FieldLabelProps, type FieldProps, FileCards, type FileCardsProps, FileUpload, FileUploadPreview, type FileUploadPreviewProps, type FileUploadProps, FilesList, type FilesListProps, FilterBadge, type FilterDef, FilterItem, type FilterValue, Filters, FloatingActionButton, type FloatingActionButtonProps, FloatingLabelInput, type FloatingLabelInputProps, FloatingThemePicker, type FloatingThemePickerProps, FormControl, FormDescription, FormField, FormItem, FormLabel, FormMessage, Gantt, type GanttItem, type GanttProps, type GanttScale, GradientBackground, type GradientBackgroundPreset, type GradientBackgroundProps, GradientHeading, type GradientHeadingProps, type GradientPreset, GridList, GridListItem, type GridListItemProps, type GridListProps, HStack, Heading, type HeadingProps, Heatmap, type HeatmapDay, type HeatmapProps, HelpSheet, HeroShaderA, type HeroShaderAProps, HotkeyBadge, type HotkeyDef, Hotkeys, HotkeysProvider, HoverCard, HoverCardContent, HoverCardTrigger, IconBadge, IconButton, type IconButtonProps, ImageCrop, type ImageCropProps, Input, InputOTP, InputOTPGroup, InputOTPSeparator, InputOTPSlot, type InputProps, IntegrationCard, type IntegrationCardProps, IntroDisclosure, type IntroDisclosureProps, type IntroStep, InviteModal, type InviteModalProps, Kanban, KanbanCard, type KanbanCardDef, KanbanColumn, type KanbanColumnDef, Label, LineChart, type LineChartProps, LoadingOverlay, LogoCarousel, type LogoCarouselProps, MOTION_PRESETS, ManageTagsModal, type ManageTagsModalProps, Marquee, type MarqueeProps, Menubar, MenubarCheckboxItem, MenubarContent, MenubarGroup, MenubarItem, MenubarLabel, MenubarMenu, MenubarPortal, MenubarRadioGroup, MenubarRadioItem, MenubarSeparator, MenubarShortcut, MenubarSub, MenubarSubContent, MenubarSubTrigger, MenubarTrigger, MessagesCard, type MessagesCardProps, MetricCard, type MetricCardProps, MetricCardWithButton, type MetricCardWithButtonProps, MetricCardWithIcon, type MetricCardWithIconProps, MobileSidebarTrigger, Morph, type MorphProps, type MotionPreset, type MotionVariants, Navbar, NavbarBrand, NavbarContent, type NavbarContentProps, NavbarItem, type NavbarProps, NavigationMenu, NavigationMenuContent, NavigationMenuIndicator, NavigationMenuItem, NavigationMenuLink, NavigationMenuList, NavigationMenuTrigger, NavigationMenuViewport, NoiseBackground, type NoiseBackgroundProps, NotificationSettings, type NotificationSettingsProps, ObjectField, type ObjectFieldProps, OrgMenu, type OrgMenuProps, Page, PageActions, PageBody, PageContainer, PageDescription, PageHeader, type PageHeaderProps, PageLayout, PageMain, type PageProps, PageTitle, Pagination, PaginationContent, PaginationEllipsis, PaginationItem, PaginationLink, PaginationNext, PaginationPrevious, PaletteSwatches, type PaletteSwatchesProps, Parallax, type ParallaxProps, PasswordInput, type PasswordInputProps, Persona, Popover, PopoverAnchor, PopoverContent, PopoverTrigger, PriceTag, type PriceTagProps, Progress, PropertyItem, PropertyList, QrCode, type QrCodeProps, QuantityStepper, type QuantityStepperProps, RadioGroup, RadioGroupItem, Rating, type RatingProps, ResizableHandle, ResizablePanel, ResizablePanelGroup, ResizeBox, type ResizeBoxProps, ResizeHandle, Reveal, type RevealProps, RichEditor, type RichEditorProps, type RichEditorToolbarVariant, Ripple, type RippleProps, RolesMenu, type RolesMenuProps, ScaleIn, type ScaleInProps, ScrollArea, ScrollBar, ScrollHeader, type ScrollHeaderProps, SearchInput, type SearchInputProps, Select, SelectContent, SelectGroup, SelectItem, SelectLabel, SelectScrollDownButton, SelectScrollUpButton, SelectSeparator, SelectTrigger, SelectUsersModal, type SelectUsersModalProps, SelectValue, Separator, Sheet, SheetClose, SheetContent, SheetDescription, SheetFooter, SheetHeader, SheetOverlay, SheetPortal, SheetTitle, SheetTrigger, AppShell as Shell, type AppShellProps as ShellProps, Sidebar$1 as Sidebar, SidebarContent, SidebarFooter$1 as SidebarFooter, SidebarGroup, SidebarGroupLabel, SidebarHeader$1 as SidebarHeader, SidebarItem$1 as SidebarItem, type SidebarItemProps$1 as SidebarItemProps, SidebarLayoutDashboard, type SidebarLayoutDashboardProps, SidebarLayoutGroups, type SidebarLayoutGroupsProps, SidebarLayoutMinimal, type SidebarLayoutMinimalProps, SidebarLayoutSearch, type SidebarLayoutSearchProps, SidebarLayoutUser, type SidebarLayoutUserProps, type SidebarProps, SidebarResizer, type SidebarResizerProps, SidebarSeparator$1 as SidebarSeparator, Skeleton, SlideIn, type SlideInProps, Slider, SortableNav, type SortableNavItem, type SortableNavProps, SortableTaskList, type SortableTaskListProps, Sparkline, type SparklineProps, Spinner, SplitPage, SplitPageDetail, SplitPageList, type SplitPageListProps, Stack, type StackProps, StackedLayoutBranded, type StackedLayoutBrandedProps, StackedLayoutTabs, type StackedLayoutTabsProps, Stagger, type StaggerProps, Stat, StatGroup, StepForm, StepFormNavigation, type StepFormNavigationProps, type StepFormProps, StepFormStep, type StepFormStepProps, Stepper, StepperStep, StructuredList, StructuredListItem, StructuredListSection, Switch, Table, TableBody, TableCaption, TableCell, TableFooter, TableHead, TableHeader, TableRow, Tabs, TabsContent, TabsList, TabsTrigger, Tags, type TagsProps, TaskCard, type TaskCardProps, TaskCardWithLabels, type TaskCardWithLabelsProps, TextReveal, type TextRevealProps, Textarea, type TextareaProps, TextureCard, TextureCardDescription, TextureCardHeader, type TextureCardProps, TextureCardTitle, type ThemePickerOption, ThemeSwitch, type ThemeSwitchProps, Timeline, TimelineConnector, TimelineContent, TimelineItem, type ToastEvent, type ToastOptions, type ToastType, Toaster, Toggle, ToggleButton, ToggleButtonGroup, ToggleGroup, ToggleGroupItem, Tooltip, TooltipContent, TooltipProvider, TooltipTrigger, Tour, type TourProps, TourStep, type TourStepProps, Transition, type TransitionProps, Tree, type TreeMovePosition, type TreeNode, type TreeProps, Typewriter, type TypewriterProps, UserMenu, type UserMenuProps, VStack, type VariantOption, VariantPicker, type VariantPickerProps, type VideoChapter, VideoPlayer, type VideoPlayerProps, type Workspace, WorkspaceMembers, type WorkspaceMembersProps, WorkspacesMenu, type WorkspacesMenuProps, badgeVariants, buttonVariants, cn, navigationMenuTriggerStyle, toastFn as toast, toastEmitter, toggleVariants, useAppShell, useCommandBar, useCommandPalette, useHotkeys, useLayoutId, useSidebar, useTour };
|